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-D7zH3Nl5.js";import{S as E}from"./SettingSidebar-2SIJiENY.js";import{A as I,B as L,a as H,_ as M}from"./AdminPageHeader-4nW0e2pw.js";import{T as P}from"./index-vEEBxB56.js";import{L as R}from"./AddButton-X2ur4gXq.js";import{I as V}from"./Import-CJjpxWuG.js";import{c as z}from"./index-Cu62pBdq.js";import{S as D}from"./index-_ApNSgqk.js";import{B as j}from"./useFlexGapSupport-CpBR-RD-.js";import{a as q,_ as G}from"./index-Cv7zOydE.js";import"./FilePdfOutlined-B2fn7V0M.js";import"./AppstoreOutlined-De50NR7n.js";import"./BankOutlined-CQJX1h6X.js";import"./ToolOutlined-D00buhbF.js";import"./EnvironmentOutlined-CgN6iVOU.js";import"./SolutionOutlined-CvF8m6TT.js";import"./FormOutlined--y701tZW.js";import"./FolderOpenOutlined-tH0_VpKZ.js";import"./DollarOutlined-6OFmZBXH.js";import"./TranslationOutlined-CUSjLTfi.js";import"./UserOutlined-CsojJWfF.js";import"./index-BUzTR6QN.js";import"./dropdown-C-HKHQ-f.js";import"./move-DTmUXir3.js";import"./index-BUQyFFfI.js";import"./transButton--XrRgMTg.js";import"./useDestroyed-B0Qhtgc6.js";import"./index-B1-dW-7G.js";import"./apiAdmin-B6-2qm0d.js";import"./TextArea-C1mL3q5m.js";import"./EditOutlined-Corvrvzt.js";import"./index-DnrvHM6n.js";import"./pickAttrs-1XPwZpL6.js";import"./index-Bso6TOMG.js";import"./index-Q5rqE8AL.js";import"./index-DTmsoxos.js";import"./index-DkTJbm8y.js";import"./Checkbox-BT3Ug64z.js";import"./index-twmpq7Gp.js";import"./RadioButton-BeQscLER.js";import"./MinusSquareOutlined-CjNBof4X.js";import"./AddEdit-DEiWezUX.js";import"./Upload-CxH51srU.js";import"./index-DU6PIWVv.js";import"./DeleteOutlined-DI2CK1gU.js";import"./DownloadOutlined-BNxYRljn.js";import"./index-BbfnE6xp.js";import"./index-DZxk72Vu.js";import"./SaveOutlined-jkHaLNj1.js";import"./index-fjGxdX_x.js";import"./index-BKYjjoqg.js";import"./UploadFile-Ca-Decpi.js";import"./Link-0ASqNusS.js";import"./Base-Dri4L_EE.js";import"./index-Be6Dwq6s.js";import"./Paragraph-C5nJBCuV.js";import"./Text-BYGZwHPp.js";import"./Title-CbcIkIIo.js";import"./index-ClJ_H-9Y.js";import"./PdfDownload-DofsuVGi.js";import"./CloudDownloadOutlined-DVcr5vp1.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};
