index-legacy-d5174055.js 1.5 KB

1
  1. System.register(["./index-legacy-e12eff60.js","./state-legacy-0da3f7c5.js"],(function(e,t){"use strict";var a,o,n,i,r,l,s,d,c;return{setters:[e=>{a=e.d,o=e.r,n=e.c,i=e.e,r=e.n,l=e.f,s=e.t,d=e.A},e=>{c=e.s}],execute:function(){var t=document.createElement("style");t.textContent="._wrap_11e0p_1{width:100%;height:100%;background-color:#fff;border-radius:.78125vw}._wrap_11e0p_1 iframe{width:100%;height:100%;border:none}._previewWindow_11e0p_12{width:100vw;height:100vh}._previewWindow_11e0p_12 ._previewIframe_11e0p_16{width:100vw;height:100vh;background-color:#fff}\n",document.head.appendChild(t);const u="_wrap_11e0p_1",p="_previewWindow_11e0p_12",w="_previewIframe_11e0p_16";e("default",a({name:"notation-a",setup(){const e=o(!1),t=o(!1),a=o({}),_=n().getToken||"";console.log(_);const v=i({src:`${/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":location.origin}/notation/#/create?Authorization=${_}`}),h=o=>{console.log(o.data,"data"),"notation_open"===o.data.api?c.application?(e.value=!0,t.value=!0,a.value={url:o.data.url}):window.open(o.data.url):"notation_exit"===o.data.api&&(t.value=!1,a.value.url="")};return r((()=>{window.addEventListener("message",h)})),()=>l("div",{class:u},[l("iframe",{src:v.src},null),l(s,{show:t.value,"onUpdate:show":e=>t.value=e,class:p,showIcon:!1,displayDirective:"show"},{default:()=>[l(d,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[l("iframe",{class:w,onLoad:()=>{e.value=!1},frameborder:"0",src:a.value.url},null)]})]})])}}))}}}));