import{ag as t,W as b}from"./entry.2xM5grDS.js";import{a as l}from"./index.xpopmiYL.js";const h=500;function v(e){const i=[{id:"both",label:"Both",icon:"i-fluent-arrow-bidirectional-left-right-24-filled"},{id:"code",label:"Code",icon:"i-fluent-code-24-filled"},{id:"iframe",label:"Iframe",icon:"i-fluent-earth-24-filled"}],n=[{id:"all",label:"All",icon:"i-ph-code-block-bold"},{id:"vue",label:"Vue",icon:"i-ph-file-vue-bold"},{id:"html",label:"HTML",icon:"i-ph-file-html-bold"},{id:"txt",label:"Text",icon:"i-ph-text-t-bold"}],d=t("isCommandPalletOpen"),c=t("isSettingsOpen"),o=t("reloadTemplate"),f=l("horizontalSplit",!1),u=l("email",""),a=l("previewMode",i[0]),s=l("editorCodes",n[0]);return b(o,async()=>{typeof(e==null?void 0:e.onReload)>"u"&&typeof(e==null?void 0:e.onReload)!="function"&&!o.value||(typeof(e==null?void 0:e.onReload)=="function"&&await e.onReload(),setTimeout(()=>{o.value=!1},h))}),{isCommandPalletOpen:d,isSettingsOpen:c,reloadTemplate:o,horizontalSplit:f,email:u,previewMode:a,previewModes:i,editorCode:s,editorCodes:n}}export{v as u};
