import{d as v,H as w,q as L,s as T,F as f,t as B,f as c,h as i,i as t,c as s,x as m,v as e,y,C as I,R,Q as F,G as b,X as H,D as M,V as z}from"./index-C5GbdPxY.js";import{l as A}from"./logo-Cqa1j7dW.js";import{u as D,S as n}from"./settingSection-DV-y8DO-.js";import{a as V,V as G}from"./VAvatar-RkAR0u0e.js";import{c as k,V as h,a as q}from"./VCard-DptrO3GI.js";import{V as E,a as P}from"./VList-C3dIUnee.js";import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./VImg-BlqLjeEy.js";import"./index-XcTykuv2.js";const X={class:"d-flex align-center gap-2"},j=["innerHTML"],J={class:"text-h6 font-weight-bold mb-0"},K=v({__name:"setting",setup(O){const d=[{key:n.General,title:"setting::settings.sections.general",routeName:"admin.settings.general",icon:"tabler-settings-cog"},{key:n.Application,title:"setting::settings.sections.application",routeName:"admin.settings.application",icon:"tabler-settings-2"},{key:n.Currency,title:"setting::settings.sections.currency",routeName:"admin.settings.currency",icon:"tabler-currency-euro"},{key:n.Mail,title:"setting::settings.sections.mail",routeName:"admin.settings.mail",icon:"tabler-mail-cog"},{key:n.Filesystem,title:"setting::settings.sections.filesystem",routeName:"admin.settings.filesystem",icon:"tabler-database-cog"}],{store:p}=D(),{t:o}=w(),N=L(),r=T(),x=f(()=>r.name==="admin.settings"),l=f(()=>d.find(u=>u.routeName===r.name));return(u,U)=>{const C=B("router-view");return i(),c(G,null,{default:t(()=>[s(V,{cols:"12",md:"3"},{default:t(()=>[s(k,null,{default:t(()=>[s(h,{class:"border-b pb-2"},{default:t(()=>[m("div",X,[m("div",{class:"app-logo",innerHTML:e(A)},null,8,j),m("p",J,y(e(o)("setting::settings.header_title",{app_name:e(N).appName})),1)])]),_:1}),s(E,null,{default:t(()=>[(i(),I(R,null,F(d,(a,S)=>{var g;return s(P,{key:S,disabled:e(p).loading&&((g=e(l))==null?void 0:g.key)!==a.key,"prepend-icon":a.icon,title:e(o)(a.title),to:{name:a.routeName}},{append:t(()=>{var _;return[e(p).loading&&((_=e(l))==null?void 0:_.key)===a.key?(i(),c(H,{key:0,color:"primary",indeterminate:"",size:"18",width:"2"})):b("",!0)]}),_:2},1032,["disabled","prepend-icon","title","to"])}),64))]),_:1})]),_:1})]),_:1}),s(V,{cols:"12",md:"9"},{default:t(()=>[e(x)?b("",!0):(i(),c(k,{key:0},{default:t(()=>[s(h,{class:"border-b pb-2 mb-4 d-flex align-center gap-1 font-weight-bold text-h6"},{default:t(()=>{var a;return[s(z,{icon:(a=e(l))==null?void 0:a.icon,size:"20"},null,8,["icon"]),M(" "+y(e(o)(e(r).meta.title)),1)]}),_:1}),s(q,null,{default:t(()=>[s(C)]),_:1})]),_:1}))]),_:1})]),_:1})}}}),ie=Q(K,[["__scopeId","data-v-2fea1a30"]]);export{ie as default};
