1import{k as g,u as w,bl as p,n as c,U as h}from"./D6qU-WXZ.js";import{Q as r}from"./BJhQhrjU.js";const T=()=>{const a=g("isPcIframe"),l=w(),o=e=>{window.parent!==window&&window.parent.postMessage(e,"*")},n=(e,s)=>{o({type:"Creality-Message-ShowMessage",msgType:e,msgText:s})};return{isPcIframe:a,proxyMessage:n,toOauthLogin:()=>{a.value?o({type:"Creality-Message-ToLogin"}):h()},toLogout:()=>{a.value&&o({type:"Creality-Message-Logout"})},showMessage:(e,s)=>{var t,i;a.value?(n(e,s),r.closeAll()):(i=(t=r)[e])==null||i.call(t,s)},showDeleteDialog:e=>{o({type:"Creality-Message-ShowDeleteDialog",...e})},showReport:e=>{o({type:"Creality-Message-ShowReport",...e})},showImageMessage:e=>{o({type:"Creality-Message-ShowImageMessage",...e})},showVideoPreview:e=>{o({type:"Creality-Message-ShowVideoPreview",...e})},postToParent:o,iframeNavigateTo:(e,s="",t={})=>{if(!e&&!s)return;const i=window.self!==window.top;a.value||i?window.parent.postMessage({type:"Creality-Message-NavigateTo",path:s||e},"*"):c(l(e),t)},iframeBlankTo:(e,s="")=>{const t=window.self!==window.top;a.value||t?window.parent.postMessage({type:"Creality-Message-openBlankWindow",url:s||e},"*"):p({route:e,isExternal:!0})}}};export{T as u};
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.