import{S as x}from"./SettingSidebar-BWJn6cnk.js";import{A as y,B,a as $,_ as A}from"./AdminPageHeader-WwDCl03o.js";import{S as v}from"./SendMailSetting-Dvc4Si7O.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-Bei_nIK3.js";import{M as F}from"./SolutionOutlined-CGiuXnaV.js";import{S as T}from"./SaveOutlined-BL7Iw8CQ.js";import{B as D}from"./useFlexGapSupport-I9-A4OAO.js";import{a as R,_ as j}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"./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-BSQT_3Ti.js";import"./index-BE0aTWss.js";import"./apiAdmin-DKbjyhIh.js";import"./Title-D3e07DZH.js";import"./Base-B7aUwkBZ.js";import"./TextArea-BzmabrVb.js";import"./EditOutlined-C24c-ELW.js";import"./index-Cjf_Tk6m.js";import"./Checkbox-B6oQ4UO2.js";import"./index-DgoYCtcs.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};
