1import{i as e}from"./DWWJRJjC.js";import{$ as t,Zt as n,bt as r,in as i,mt as a}from"./BfEYEY7z.js";import{t as o}from"./Ch7_Ti4G.js";import{t as s}from"./RrXCK_5d.js";import{t as c}from"./YcsONWY42.js";var l=()=>{let e=o(`isEditing`,()=>!1),t=o(`disableActions`,()=>!0);return{isEditing:e,isEditingEnabled:o(`isEditingEnabled`,()=>!1),disableActions:t}};n(),a();var u=()=>{if(typeof window>`u`)return i(`desktop`);let e=window;return e.__editorPreviewDevice||=i(`desktop`),e.__editorPreviewDevice},d=()=>{let e=c(),n=u();return{device:n,setDevice:t=>{n.value=t,r(()=>{if(t===`mobile`)e.breakpoint.value=`xs`;else if(t===`tablet`)e.breakpoint.value=`md`;else for(let[t,{mediaQuery:n}]of Object.entries(e.queries.value))if(window.matchMedia(n).matches){e.breakpoint.value=t;break}})},width:t(()=>n.value===`mobile`?`375px`:n.value===`tablet`?`768px`:`100%`)}};a(),n();var f=()=>{let{$isEditor:n,$isPreview:r}=e(),{disableActions:a}=l(),{device:o,width:c}=d(),u=t(()=>!!n),f=t(()=>!!n&&a.value),p=t(()=>!!n&&!a.value||!!r),m=t(()=>!n&&!r),h=t(()=>f.value),g=t(()=>f.value),_=t(()=>f.value),v=t(()=>p.value||m.value),y=i(!1);return s(()=>{y.value=!!n}),{isInEditor:u,isEditMode:f,isPreviewMode:p,isLiveMode:m,shouldShowEditorUI:h,shouldUseFakeData:_,shouldHideZeroValues:v,shouldEnableEditorFeatures:g,isInEditorClient:y,device:o,isMobilePreview:t(()=>y.value&&o.value!==`desktop`),previewWidth:c}};export{d as n,l as r,f as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.