import{_ as w,c as x,g as t,w as o,b as r,i as a,t as i,n as F,e as c,h as u,F as v,a as N,k as C,o as p}from"./app-CgV11GBz.js";import{S as E}from"./SettingSidebar-ByclBWuv.js";import{A as I,B as L,a as H,_ as M}from"./AdminPageHeader-BbLazqh2.js";import{T as P}from"./index-vPg2zOr8.js";import{L as R}from"./AddButton-EMuSy9XO.js";import{I as V}from"./Import-BcTZHnE1.js";import{c as z}from"./index-CJx7RGCD.js";import{S as D}from"./index-4wtx7HnJ.js";import{B as j}from"./useFlexGapSupport-CWWB0EO1.js";import{a as q,_ as G}from"./index-CyQQxPex.js";import"./FilePdfOutlined-BauvwZfY.js";import"./AppstoreOutlined-BLpyLRTk.js";import"./BankOutlined-By_QQ9iI.js";import"./ToolOutlined-C-rv50H1.js";import"./EnvironmentOutlined-C4yfkGM9.js";import"./SolutionOutlined-Cz6y1Tps.js";import"./FormOutlined-DtSJZeKh.js";import"./FolderOpenOutlined-5lmK0J8L.js";import"./DollarOutlined-N_PUECzw.js";import"./TranslationOutlined-B2Vx90lH.js";import"./UserOutlined-B_QmeIKt.js";import"./index-B7-RTJOc.js";import"./dropdown-C8TPWlvJ.js";import"./move-DC4W0EQt.js";import"./index-BnFAf-Nu.js";import"./transButton-BBsxYOSm.js";import"./useDestroyed-DU9zWypE.js";import"./index-MBDGOAKp.js";import"./apiAdmin-CiAsr8eb.js";import"./TextArea-CiAld6jk.js";import"./EditOutlined-CDoHc2FT.js";import"./index-GcUTOa9d.js";import"./pickAttrs-6g5FyZe9.js";import"./index-vRSySr5e.js";import"./index-E6lmxuug.js";import"./index-DtCc1bFm.js";import"./index-DEQO-jTQ.js";import"./Checkbox-tUwuA94o.js";import"./index-DFoCNTvZ.js";import"./RadioButton-BPv4-qI8.js";import"./MinusSquareOutlined-Cd4pIAZ_.js";import"./AddEdit-DxPv8thv.js";import"./Upload-CYrHetkO.js";import"./index-BRlPehkT.js";import"./DeleteOutlined-CzplmvFG.js";import"./DownloadOutlined-CuI9rWeW.js";import"./index-CLTMvEe8.js";import"./index-DX5UyTUL.js";import"./SaveOutlined-NNV7kkji.js";import"./index-CNlVDwHo.js";import"./index-CJZF9DeS.js";import"./UploadFile-CQNwa4uf.js";import"./Link-KYcQwxj2.js";import"./Base-CoAoxKFd.js";import"./index-B74H0RZb.js";import"./Paragraph-vUn64w3A.js";import"./Text-BEWt5-6S.js";import"./Title-p64jezvO.js";import"./index-Oi0DGWnW.js";import"./PdfDownload-CKONaoGj.js";import"./CloudDownloadOutlined-DcY3Ga42.js";const J={components:{EyeOutlined:z,SettingSidebar:E,AdminPageHeader:I,TranslationsSettings:P,LangAddButton:R,ImportTranslation:V},setup(){const{permsArray:n,appType:m,themeMode:l}=N(),e=C(null),d=window.config.translatioins_sample_file;return{langAdded:()=>{e.value.getData()},permsArray:n,appType:m,transSettingRef:e,sampleFileUrl:d,themeMode:l}}};function K(n,m,l,e,d,f){const g=M,y=r("router-link"),s=H,S=L,b=r("AdminPageHeader"),A=r("SettingSidebar"),_=q,T=r("LangAddButton"),k=r("ImportTranslation"),B=r("EyeOutlined"),h=j,O=D,U=r("TranslationsSettings"),$=G;return p(),x(v,null,[t(b,null,{header:o(()=>[t(g,{title:n.$t("menu.translations"),class:"p-0"},null,8,["title"])]),breadcrumb:o(()=>[t(S,{separator:"-",style:{"font-size":"12px"}},{default:o(()=>[t(s,null,{default:o(()=>[t(y,{to:{name:"admin.dashboard.index"}},{default:o(()=>[a(i(n.$t("menu.dashboard")),1)]),_:1})]),_:1}),t(s,null,{default:o(()=>[a(i(n.$t("menu.settings")),1)]),_:1}),t(s,null,{default:o(()=>[a(i(n.$t("menu.translations")),1)]),_:1})]),_:1})]),_:1}),t($,null,{default:o(()=>[t(_,{xs:24,sm:24,md:24,lg:4,xl:4,style:F({background:e.themeMode=="dark"?"#141414":"#fff",borderRight:e.themeMode=="dark"?"1px solid #303030":"1px solid #f0f0f0"})},{default:o(()=>[t(A)]),_:1},8,["style"]),t(_,{xs:24,sm:24,md:24,lg:20,xl:20},{default:o(()=>[t(U,{ref:"transSettingRef"},{actionButtons:o(()=>[t(O,null,{default:o(()=>[e.permsArray.includes("translations_create")||e.permsArray.includes("admin")?(p(),c(T,{key:0,onOnAddSuccess:e.langAdded,btnType:"primary",tooltip:!1},{default:o(()=>[a(i(n.$t("langs.add")),1)]),_:1},8,["onOnAddSuccess"])):u("",!0),e.appType=="non-saas"?(p(),c(k,{key:1,pageTitle:n.$t("translations.import_translations"),sampleFileUrl:e.sampleFileUrl,importUrl:"translations/import",onOnUploadSuccess:e.langAdded,url:"langs-static-csv",fileName:n.$t("common.sample_lang_file"),buttonType:!0},null,8,["pageTitle","sampleFileUrl","onOnUploadSuccess","fileName"])):u("",!0),t(h,{type:"primary",onClick:m[0]||(m[0]=Q=>n.$router.push({name:"admin.settings.langs.index"}))},{default:o(()=>[t(B),a(" "+i(n.$t("langs.view_all_langs")),1)]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})],64)}const eo=w(J,[["render",K]]);export{eo as default};
