import{_ as w,aB as F,a as h,r as v,e as o,o as p,g as x,c as n,w as t,i as s,t as r,f as _,J as c,F as E,az as C,aD as I,aE as L,n as D,B as H,m as N,v as P}from"./app-DGDivIsO.js";import{S as V}from"./SettingSidebar-CHvaoh8x.js";import{A as z}from"./AdminPageHeader-ff2SFNbk.js";import{T as R}from"./index-BuC3lpL3.js";import{L as J}from"./AddButton-DxLUKFHI.js";import{I as j}from"./Import-BDGxQ5tB.js";import"./TranslationOutlined-BagSv0t3.js";import"./UserOutlined-Cz46sReQ.js";import"./ShoppingCartOutlined-BJIcmyJ0.js";import"./ScheduleOutlined-CPLAH6Jp.js";import"./AppstoreAddOutlined-C6X3YU8a.js";import"./MailOutlined-BkPJOQow.js";import"./HistoryOutlined-_8ag_Mv5.js";import"./FormOutlined-YMDYF7hD.js";import"./index-C2QBqMxH.js";import"./apiAdmin-D4J8O5cP.js";import"./AddEdit-BjGWjTsQ.js";import"./Upload-DinpFMlS.js";import"./SaveOutlined-saF8VQQc.js";import"./UploadFile-BWxMf9-v.js";import"./CloudDownloadOutlined-BbYr1R9k.js";const q={components:{EyeOutlined:F,SettingSidebar:V,AdminPageHeader:z,TranslationsSettings:R,LangAddButton:J,ImportTranslation:j},setup(){const{permsArray:e,appType:l}=h(),i=v(null),a=window.config.translatioins_sample_file;return{langAdded:()=>{i.value.getData()},appType:l,permsArray:e,transSettingRef:i,sampleFileUrl:a}}};function G(e,l,i,a,u,K){const g=C,f=o("router-link"),m=I,S=L,b=o("AdminPageHeader"),y=o("SettingSidebar"),d=D,A=o("LangAddButton"),T=o("ImportTranslation"),B=o("EyeOutlined"),k=H,O=N,U=o("TranslationsSettings"),$=P;return p(),x(E,null,[n(b,null,{header:t(()=>[n(g,{title:e.$t("menu.translations"),class:"p-0"},null,8,["title"])]),breadcrumb:t(()=>[n(S,{separator:"-",style:{"font-size":"12px"}},{default:t(()=>[n(m,null,{default:t(()=>[n(f,{to:{name:"admin.dashboard.index"}},{default:t(()=>[s(r(e.$t("menu.dashboard")),1)]),_:1})]),_:1}),n(m,null,{default:t(()=>[s(r(e.$t("menu.settings")),1)]),_:1}),n(m,null,{default:t(()=>[s(r(e.$t("menu.translations")),1)]),_:1})]),_:1})]),_:1}),n($,null,{default:t(()=>[n(d,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:t(()=>[n(y)]),_:1}),n(d,{xs:24,sm:24,md:24,lg:20,xl:20},{default:t(()=>[n(U,{ref:"transSettingRef"},{actionButtons:t(()=>[n(O,null,{default:t(()=>[a.permsArray.includes("translations_create")||a.permsArray.includes("admin")?(p(),_(A,{key:0,onOnAddSuccess:a.langAdded,btnType:"primary",tooltip:!1},{default:t(()=>[s(r(e.$t("langs.add")),1)]),_:1},8,["onOnAddSuccess"])):c("",!0),a.appType=="non-saas"?(p(),_(T,{key:1,pageTitle:e.$t("translations.import_translations"),sampleFileUrl:a.sampleFileUrl,importUrl:"translations/import",onOnUploadSuccess:a.langAdded},null,8,["pageTitle","sampleFileUrl","onOnUploadSuccess"])):c("",!0),n(k,{type:"primary",onClick:l[0]||(l[0]=M=>e.$router.push({name:"admin.settings.langs.index"}))},{default:t(()=>[n(B),s(" "+r(e.$t("langs.view_all_langs")),1)]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})],64)}const Sn=w(q,[["render",G]]);export{Sn as default};
