1 |
- System.register(["./index-legacy-e5c1e202-1726219372904.js","./index-legacy-07b6971b-1726219372904.js"],(function(e,t){"use strict";var a,s,l,n,u,o,d,r,i,p,v;return{setters:[e=>{a=e.A},e=>{s=e.d,l=e.aQ,n=e.A,u=e.q,o=e.T,d=e.f,r=e.l,i=e.m,p=e.F,v=e.G}],execute:function(){var t=document.createElement("style");t.textContent="._previewWindow_1jnin_1{width:100%;height:100%}\n",document.head.appendChild(t);const c="_previewWindow_1jnin_1";e("P",s({name:"preview-window",props:{show:{type:Boolean,default:!1},type:{type:String,default:""},params:{type:Object,default:()=>({})}},emit:["update:show"],setup(e,{emit:t}){const{show:s,type:m,params:w}=l(e);n((()=>e.show),(()=>{s.value=e.show})),n((()=>e.type),(()=>{m.value=e.type})),n((()=>e.params),(()=>{w.value=e.params}));const h=e=>{"iframe_exit"===e.data.api&&t("update:show",!1)};return u((()=>{window.addEventListener("message",h)})),o((()=>{window.removeEventListener("message",h)})),()=>d(p,null,[d(r,{maskClosable:i,show:s.value,"onUpdate:show":[e=>s.value=e,()=>{t("update:show",s.value)}],class:c,showIcon:!1,displayDirective:"show"},{default:()=>[d(p,null,[s.value?"attend"==m.value?d(a,{type:w.value.type||"",instrumentId:w.value.instrumentId||"",courseId:w.value.courseId||"",detailId:w.value.detailId||"",classGroupId:w.value.classGroupId||"",lessonCourseId:w.value.lessonCourseId||"",classId:w.value.classId||"",preStudentNum:w.value.preStudentNum,onClose:()=>t("update:show",!1)},null):"notation"==m.value?d("iframe",{src:w.value.src,onLoad:e=>{v(e.target)}},null):"music"==m.value?d("iframe",{src:w.value.src,onLoad:e=>{v(e.target)},style:{height:"100vh"}},null):"":""])]})])}}))}}}));
|