import{S as x}from"./SettingSidebar-ByclBWuv.js";import{A as y,B,a as $,_ as A}from"./AdminPageHeader-BbLazqh2.js";import{S as v}from"./SendMailSetting-DzkYSpmd.js";import{_ as C,b as o,c as O,o as d,g as t,w as e,i as m,t as r,n as w,e as H,h as N,F as P,k as V,a as z,T as E}from"./app-CgV11GBz.js";import{M as F}from"./SolutionOutlined-Cz6y1Tps.js";import{S as T}from"./SaveOutlined-NNV7kkji.js";import{B as D}from"./useFlexGapSupport-CWWB0EO1.js";import{a as R,_ as j}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"./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-4wtx7HnJ.js";import"./index-MBDGOAKp.js";import"./apiAdmin-CiAsr8eb.js";import"./Title-p64jezvO.js";import"./Base-CoAoxKFd.js";import"./TextArea-CiAld6jk.js";import"./EditOutlined-CDoHc2FT.js";import"./index-DEQO-jTQ.js";import"./Checkbox-tUwuA94o.js";import"./index-Cj--B_iU.js";const q={components:{SaveOutlined:T,MailOutlined:F,SettingSidebar:x,AdminPageHeader:y,SendMailSetting:v},setup(){const n=V([]),{themeMode:i}=z();return E(()=>{axiosAdmin.get("settings/email").then(l=>{n.value=l.data.sendMailSettings})}),{sendMailSettings:n,themeMode:i}}};function G(n,i,l,a,I,J){const _=o("MailOutlined"),c=D,u=A,g=o("router-link"),s=$,f=B,S=o("AdminPageHeader"),b=o("SettingSidebar"),p=R,M=o("SendMailSetting"),h=o("admin-page-table-content"),k=j;return d(),O(P,null,[t(S,null,{header:e(()=>[t(u,{title:n.$t("menu.email_settings"),class:"p-0"},{extra:e(()=>[t(c,{type:"primary",onClick:i[0]||(i[0]=K=>n.$router.push({name:"admin.settings.email_templates.index"}))},{icon:e(()=>[t(_)]),default:e(()=>[m(" "+r(n.$t("menu.email_templates")),1)]),_:1})]),_:1},8,["title"])]),breadcrumb:e(()=>[t(f,{separator:"-",style:{"font-size":"12px"}},{default:e(()=>[t(s,null,{default:e(()=>[t(g,{to:{name:"admin.dashboard.index"}},{default:e(()=>[m(r(n.$t("menu.dashboard")),1)]),_:1})]),_:1}),t(s,null,{default:e(()=>[m(r(n.$t("menu.settings")),1)]),_:1}),t(s,null,{default:e(()=>[m(r(n.$t("menu.email_settings")),1)]),_:1})]),_:1})]),_:1}),t(k,null,{default:e(()=>[t(p,{xs:24,sm:24,md:24,lg:4,xl:4,style:w({background:a.themeMode=="dark"?"#141414":"#fff",borderRight:a.themeMode=="dark"?"1px solid #303030":"1px solid #f0f0f0"})},{default:e(()=>[t(b)]),_:1},8,["style"]),t(p,{xs:24,sm:24,md:24,lg:20,xl:20},{default:e(()=>[t(h,null,{default:e(()=>[a.sendMailSettings&&a.sendMailSettings.xid?(d(),H(M,{key:0,sendMailSettings:a.sendMailSettings,class:"mt-20 mb-20"},null,8,["sendMailSettings"])):N("",!0)]),_:1})]),_:1})]),_:1})],64)}const vt=C(q,[["render",G]]);export{vt as default};
