index-legacy-75064b68-1694078809672.js 3.3 KB

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