System.register(["./index-legacy-26fae7cb-1706882452509.js","./state-legacy-8ade60ca-1706882452509.js"],(function(e,t){"use strict";var r,o,n,a,l,i,s,u,c,d,_,v,m,w;return{setters:[e=>{r=e.d,o=e.u,n=e.r,a=e.c,l=e.e,i=e.p,s=e.O,u=e.f,c=e.l,d=e.A,_=e.k,v=e.w,m=e.j},e=>{w=e.s}],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 p="_wrap_rryzt_1",h="_previewWindow_rryzt_12",y="_previewIframe_rryzt_16",z="_removeVisiable_rryzt_21",f="_studentRemove_rryzt_27",g="_btnGroupModal_rryzt_39";e("default",r({name:"notation-a",setup(){o();const e=n(!1),t=n(!1),r=n({}),b=n(!1),F=a().getToken||"",x=n(),k="1"==sessionStorage.getItem("notation-open-create")?"&addShow=1":"";sessionStorage.removeItem("notation-open-create");const R=l({src:`${/(192|localhost)/.test(location.origin)?"http://localhost:3050":location.origin}/notation/?t=${Date.now()}#/create?v=${Date.now()}&Authorization=${F}${k}`}),q=o=>{console.log(o.data,"data"),"notation_open"===o.data.api?w.application?(e.value=!0,t.value=!0,r.value={url:o.data.url},(()=>{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()||e.mozRequestFullScreen&&e.mozRequestFullScreen()||e.webkitRequestFullscreen&&e.webkitRequestFullscreen()||e.msRequestFullscreen&&e.msRequestFullscreen()})()):window.open(o.data.url):"notation_exit"===o.data.api&&(console.log("进来"),b.value=!0)};return i((()=>{window.addEventListener("message",q)})),s((()=>{window.removeEventListener("message",q)})),()=>u("div",{class:p},[u("iframe",{ref:x,src:R.src,key:Date.now()},null),u(c,{show:t.value,"onUpdate:show":e=>t.value=e,class:h,showIcon:!1,displayDirective:"show"},{default:()=>[u(d,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[u("iframe",{class:y,onLoad:()=>{e.value=!1},frameborder:"0",src:r.value.url},null)]})]}),u(c,{show:b.value,"onUpdate:show":e=>b.value=e,preset:"card",class:["modalTitle",z],title:"退出制谱"},{default:()=>[u("div",{class:f},[u("p",null,[_("是否退出制谱功能？")]),u(v,{class:g,justify:"center"},{default:()=>[u(m,{round:!0,type:"primary",onClick:()=>{t.value=!1,r.value.url="",b.value=!1,x.value.contentWindow.postMessage({api:"reload"},"*"),w.application&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}},{default:()=>[_("确定")]}),u(m,{round:!0,onClick:()=>b.value=!1},{default:()=>[_("取消")]})]})])]})])}}))}}}));
