System.register(["./index-legacy-932d7415-1742362401929.js","./utils-legacy-116b088e-1742362401929.js"],(function(e,t){"use strict";var r,a,o,n,l,s,i,u,d,_,c,v,m,w,p;return{setters:[e=>{r=e.d,a=e.r,o=e.c,n=e.q,l=e.ap,s=e.f,i=e.l,u=e.m,d=e.a9,_=e.k,c=e.x,v=e.j,m=e.b9,w=e.a7},e=>{p=e.g}],execute:function(){var t=document.createElement("style");t.textContent="._wrap_rryzt_1{width:100%;height:100%;background-color:#fff;border-radius:.78125vw}._wrap_rryzt_1 iframe{width:100%;height:100%;border:none}._previewWindow_rryzt_12{width:100vw;height:100vh}._previewWindow_rryzt_12 ._previewIframe_rryzt_16{width:100vw;height:100vh;background-color:#fff}._removeVisiable_rryzt_21{width:22.5vw}._removeVisiable_rryzt_21 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27{padding:1.04166667vw 2.08333333vw 0}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27 p{font-size:max(.9375rem,14Px);color:#777;line-height:1.5625vw;text-align:center}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27 p span{color:#ea4132}._removeVisiable_rryzt_21 ._btnGroupModal_rryzt_39{padding:1.66666667vw 0}._removeVisiable_rryzt_21 ._btnGroupModal_rryzt_39 .n-button{height:2.44791667vw;min-width:8.125vw}\n",document.head.appendChild(t);const h="_wrap_rryzt_1",y="_previewWindow_rryzt_12",z="_previewIframe_rryzt_16",f="_removeVisiable_rryzt_21",g="_studentRemove_rryzt_27",b="_btnGroupModal_rryzt_39";e("default",r({name:"notation-a",setup(){const e=a(!1),t=(new Date).getTime(),r=a(!1),k=a({}),x=a(!1),R=o().getToken||"",q=a(),F="1"==sessionStorage.getItem("notation-open-create")?"&addShow=1":"";sessionStorage.removeItem("notation-open-create");const V={src:`${/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":p()}/notation/?t=${Date.now()}#/create?v=${Date.now()}&Authorization=${R}${F}`},C=t=>{"notation_open"===t.data.api?window.matchMedia("(display-mode: standalone)").matches?(e.value=!0,r.value=!0,k.value={url:t.data.url},(()=>{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()||e.mozRequestFullScreen&&e.mozRequestFullScreen()||e.webkitRequestFullscreen&&e.webkitRequestFullscreen()||e.msRequestFullscreen&&e.msRequestFullscreen()})()):window.open(t.data.url):"notation_exit"===t.data.api?x.value=!0:"onAuthNotInstalled"===t.data.api&&w.emit("auth-not-installed")};return n((()=>{window.addEventListener("message",C)})),l((()=>{window.removeEventListener("message",C)})),()=>s("div",{class:h},[s("iframe",{ref:q,src:V.src,key:t},null),s(i,{maskClosable:u,show:r.value,"onUpdate:show":e=>r.value=e,class:y,showIcon:!1,displayDirective:"show"},{default:()=>[s(d,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[s("iframe",{class:z,onLoad:()=>{e.value=!1},frameborder:"0",src:k.value.url},null)]})]}),s(i,{maskClosable:u,show:x.value,"onUpdate:show":e=>x.value=e,preset:"card",class:["modalTitle",f],title:"退出制谱"},{default:()=>[s("div",{class:g},[s("p",null,[_("是否退出制谱功能？")]),s(c,{class:b,justify:"center"},{default:()=>[s(v,{round:!0,type:"primary",onClick:()=>{r.value=!1,k.value.url="",x.value=!1,q.value.contentWindow.postMessage({api:"reload"},"*"),m()}},{default:()=>[_("确定")]}),s(v,{round:!0,onClick:()=>x.value=!1},{default:()=>[_("取消")]})]})])]})])}}))}}}));
