System.register(["./index-legacy-a16f343f-1715787996172.js","./index-legacy-8a6633e6-1715787996172.js"],(function(e,t){"use strict";var a,s,n,u,l,o,d,r,i,p;return{setters:[e=>{a=e.A},e=>{s=e.d,n=e.b6,u=e.y,l=e.p,o=e.R,d=e.f,r=e.l,i=e.F,p=e.D}],execute:function(){var t=document.createElement("style");t.textContent="._previewWindow_1jnin_1{width:100%;height:100%}\n",document.head.appendChild(t);const v="_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:c,params:w}=n(e);u((()=>e.show),(()=>{s.value=e.show})),u((()=>e.type),(()=>{c.value=e.type})),u((()=>e.params),(()=>{w.value=e.params}));const m=e=>{"iframe_exit"===e.data.api&&t("update:show",!1)};return l((()=>{window.addEventListener("message",m)})),o((()=>{window.removeEventListener("message",m)})),()=>d(i,null,[d(r,{show:s.value,"onUpdate:show":[e=>s.value=e,()=>{t("update:show",s.value)}],class:v,showIcon:!1,displayDirective:"show"},{default:()=>[d(i,null,[s.value?"attend"==c.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"==c.value?d("iframe",{src:w.value.src,onLoad:e=>{p(e.target)}},null):"music"==c.value?d("iframe",{src:w.value.src,onLoad:e=>{p(e.target)},style:{height:"100vh"}},null):"":""])]})])}}))}}}));
