import{S as M}from"./SettingSidebar-2SIJiENY.js";import{A as v,B,a as E,_ as O}from"./AdminPageHeader-4nW0e2pw.js";import{E as R}from"./Edit-BUp9ALDt.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-D7zH3Nl5.js";import{M as N}from"./SolutionOutlined-CvF8m6TT.js";import{S as T}from"./SaveOutlined-jkHaLNj1.js";import{S as V}from"./index-_ApNSgqk.js";import{B as D}from"./useFlexGapSupport-CpBR-RD-.js";import{a as j,_ as q}from"./index-Cv7zOydE.js";import"./FilePdfOutlined-B2fn7V0M.js";import"./AppstoreOutlined-De50NR7n.js";import"./BankOutlined-CQJX1h6X.js";import"./ToolOutlined-D00buhbF.js";import"./EnvironmentOutlined-CgN6iVOU.js";import"./FormOutlined--y701tZW.js";import"./FolderOpenOutlined-tH0_VpKZ.js";import"./DollarOutlined-6OFmZBXH.js";import"./TranslationOutlined-CUSjLTfi.js";import"./UserOutlined-CsojJWfF.js";import"./index-BUzTR6QN.js";import"./dropdown-C-HKHQ-f.js";import"./move-DTmUXir3.js";import"./index-BUQyFFfI.js";import"./transButton--XrRgMTg.js";import"./useDestroyed-B0Qhtgc6.js";import"./index-B1-dW-7G.js";import"./apiAdmin-B6-2qm0d.js";import"./SendOutlined-cbnRcgNy.js";import"./index-fjGxdX_x.js";import"./index-BKYjjoqg.js";import"./pickAttrs-1XPwZpL6.js";import"./index-DZxk72Vu.js";import"./TextArea-C1mL3q5m.js";import"./index-Cu62pBdq.js";import"./index-Dp3l5p__.js";import"./SendMailSetting-CDBa5DJU.js";import"./Title-CbcIkIIo.js";import"./Base-Dri4L_EE.js";import"./EditOutlined-Corvrvzt.js";import"./index-DkTJbm8y.js";import"./Checkbox-BT3Ug64z.js";import"./index-C9qHVBGP.js";import"./index-DnrvHM6n.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};
