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-Bei_nIK3.js";import{S as E}from"./SettingSidebar-BWJn6cnk.js";import{A as I,B as L,a as H,_ as M}from"./AdminPageHeader-WwDCl03o.js";import{T as P}from"./index-DLjpUEzo.js";import{L as R}from"./AddButton-Du3cWyKv.js";import{I as V}from"./Import-D0W5CI05.js";import{c as z}from"./index-Cx28gitG.js";import{S as D}from"./index-BSQT_3Ti.js";import{B as j}from"./useFlexGapSupport-I9-A4OAO.js";import{a as q,_ as G}from"./index-DxFi17QQ.js";import"./FilePdfOutlined-B0_-PQE6.js";import"./AppstoreOutlined-QhK0XBWp.js";import"./BankOutlined-BehJ4siX.js";import"./ToolOutlined-BCaSOO-v.js";import"./EnvironmentOutlined-BfJgaKN3.js";import"./SolutionOutlined-CGiuXnaV.js";import"./FormOutlined-gPxzdFuy.js";import"./FolderOpenOutlined-DEQuly_h.js";import"./DollarOutlined-BmYmmxQ0.js";import"./TranslationOutlined-DNRJO33D.js";import"./UserOutlined-US7O06sq.js";import"./index-DFCCKFU7.js";import"./dropdown-tYpzS8tQ.js";import"./move-DBemPNhW.js";import"./index-GfpYLola.js";import"./transButton-ukl3COpm.js";import"./useDestroyed-C4XoNj3j.js";import"./index-BE0aTWss.js";import"./apiAdmin-DKbjyhIh.js";import"./TextArea-BzmabrVb.js";import"./EditOutlined-C24c-ELW.js";import"./index-CEPCv2e6.js";import"./pickAttrs-CZ9Y5KtR.js";import"./index-CxUMr-Uk.js";import"./index-DjXFZler.js";import"./index-D-beVDG-.js";import"./index-Cjf_Tk6m.js";import"./Checkbox-B6oQ4UO2.js";import"./index-NeuLv1Cr.js";import"./RadioButton-CUjJYpWn.js";import"./MinusSquareOutlined-Dt9SF9dS.js";import"./AddEdit-CQC3Enp6.js";import"./Upload-5PIaULp6.js";import"./index-BdzfonJJ.js";import"./DeleteOutlined-nnS6HyhI.js";import"./DownloadOutlined-ChwRUfyF.js";import"./index-DetEwlxK.js";import"./index-CvmHj1Ev.js";import"./SaveOutlined-BL7Iw8CQ.js";import"./index-BV9s-9gS.js";import"./index-DfQdBPPx.js";import"./UploadFile-VVfMhFHM.js";import"./Link-ciHiWye7.js";import"./Base-B7aUwkBZ.js";import"./index-C53-ipA5.js";import"./Paragraph-CJFej98T.js";import"./Text-BCxJY8y8.js";import"./Title-D3e07DZH.js";import"./index-DSkyyvpT.js";import"./PdfDownload-Bl_a57u_.js";import"./CloudDownloadOutlined-Cl_zT9aY.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};
