import{_ as x,Z as F,a as P,r as h,e as o,o as p,g as w,c as t,w as n,F as C,v as U,i as s,t as r,f as u,J as c,az as L,aD as v,aE as H,n as N,B as O,m as V}from"./app-DGDivIsO.js";import{S as z}from"./SettingSidebar-CHvaoh8x.js";import{A as D}from"./AdminPageHeader-ff2SFNbk.js";import{L as E}from"./index-DMVxaGQr.js";import{I as R}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"./crud-CjEsxyNP.js";import"./datatable-Cnt5bvOi.js";import"./filter-_TPdNMe8.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 J={components:{PlusOutlined:F,SettingSidebar:z,AdminPageHeader:D,LanguageSettings:E,ImportTranslation:R},setup(){const{permsArray:e,appType:i}=P(),m=h(null),a=window.config.translatioins_sample_file;return{permsArray:e,appType:i,langSettingRef:m,addItem:()=>{m.value.addItem()},sampleFileUrl:a}}};function Z(e,i,m,a,g,j){const f=L,_=o("router-link"),l=v,b=H,S=o("AdminPageHeader"),y=o("SettingSidebar"),d=N,k=o("PlusOutlined"),B=O,I=o("ImportTranslation"),T=V,A=o("LanguageSettings"),$=U;return p(),w(C,null,[t(S,null,{header:n(()=>[t(f,{title:e.$t("menu.languages"),onBack:i[0]||(i[0]=()=>e.$router.push({name:"admin.settings.translations.index"})),class:"p-0"},null,8,["title"])]),breadcrumb:n(()=>[t(b,{separator:"-",style:{"font-size":"12px"}},{default:n(()=>[t(l,null,{default:n(()=>[t(_,{to:{name:"admin.dashboard.index"}},{default:n(()=>[s(r(e.$t("menu.dashboard")),1)]),_:1})]),_:1}),t(l,null,{default:n(()=>[s(r(e.$t("menu.settings")),1)]),_:1}),t(l,null,{default:n(()=>[t(_,{to:{name:"admin.settings.translations.index"}},{default:n(()=>[s(r(e.$t("menu.translations")),1)]),_:1})]),_:1}),t(l,null,{default:n(()=>[s(r(e.$t("menu.languages")),1)]),_:1})]),_:1})]),_:1}),t($,null,{default:n(()=>[t(d,{xs:24,sm:24,md:24,lg:4,xl:4,class:"bg-setting-sidebar"},{default:n(()=>[t(y)]),_:1}),t(d,{xs:24,sm:24,md:24,lg:20,xl:20},{default:n(()=>[t(A,{ref:"langSettingRef"},{actionButtons:n(()=>[a.permsArray.includes("translations_create")||a.permsArray.includes("admin")?(p(),u(T,{key:0},{default:n(()=>[t(B,{type:"primary",onClick:a.addItem},{default:n(()=>[t(k),s(" "+r(e.$t("langs.add")),1)]),_:1},8,["onClick"]),a.appType=="non-saas"?(p(),u(I,{key:0,pageTitle:e.$t("translations.import_translations"),sampleFileUrl:a.sampleFileUrl,importUrl:"translations/import"},null,8,["pageTitle","sampleFileUrl"])):c("",!0)]),_:1})):c("",!0)]),_:1},512)]),_:1})]),_:1})],64)}const gt=x(J,[["render",Z]]);export{gt as default};
