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