1 |
- System.register(["./index-legacy-07b6971b-1726219372904.js"],(function(e,t){"use strict";var r,a,n,o,l,i,s,u,d,c,_,m,v,w,p;return{setters:[e=>{r=e.d,a=e.u,n=e.r,o=e.c,l=e.q,i=e.T,s=e.f,u=e.l,d=e.m,c=e.E,_=e.k,m=e.x,v=e.j,w=e.z,p=e.C}],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(){a();const e=n(!1),t=(new Date).getTime(),r=n(!1),x=n({}),F=n(!1),k=o().getToken||"",R=n(),q="1"==sessionStorage.getItem("notation-open-create")?"&addShow=1":"";sessionStorage.removeItem("notation-open-create");const C={src:`${/(192|localhost)/.test(location.origin)?"http://localhost:3050":location.origin}/notation/?t=${Date.now()}#/create?v=${Date.now()}&Authorization=${k}${q}`},S=t=>{"notation_open"===t.data.api?w.application?(e.value=!0,r.value=!0,x.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?F.value=!0:"onAuthNotInstalled"===t.data.api&&p.emit("auth-not-installed")};return l((()=>{window.addEventListener("message",S)})),i((()=>{window.removeEventListener("message",S)})),()=>s("div",{class:h},[s("iframe",{ref:R,src:C.src,key:t},null),s(u,{maskClosable:d,show:r.value,"onUpdate:show":e=>r.value=e,class:y,showIcon:!1,displayDirective:"show"},{default:()=>[s(c,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[s("iframe",{class:z,onLoad:()=>{e.value=!1},frameborder:"0",src:x.value.url},null)]})]}),s(u,{maskClosable:d,show:F.value,"onUpdate:show":e=>F.value=e,preset:"card",class:["modalTitle",f],title:"退出制谱"},{default:()=>[s("div",{class:g},[s("p",null,[_("是否退出制谱功能?")]),s(m,{class:b,justify:"center"},{default:()=>[s(v,{round:!0,type:"primary",onClick:()=>{r.value=!1,x.value.url="",F.value=!1,R.value.contentWindow.postMessage({api:"reload"},"*"),w.application&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}},{default:()=>[_("确定")]}),s(v,{round:!0,onClick:()=>F.value=!1},{default:()=>[_("取消")]})]})])]})])}}))}}}));
|