import{f as t,D as u}from"./entry.9e31e8a4.js";import{a as l}from"./index.dff89205.js";const p=500;function h(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"}],a=t("isCommandPalletOpen"),d=t("isSettingsOpen"),o=t("reloadTemplate"),c=l("horizontalSplit",!1),s=l("email",""),f=l("previewMode",i[0]),r=l("editorCodes",n[0]);return u(o,async()=>{typeof e?.onReload>"u"&&typeof e?.onReload!="function"&&!o.value||(typeof e?.onReload=="function"&&await e.onReload(),setTimeout(()=>{o.value=!1},p))}),{isCommandPalletOpen:a,isSettingsOpen:d,reloadTemplate:o,horizontalSplit:c,email:s,previewMode:f,previewModes:i,editorCode:r,editorCodes:n}}export{h as u};
