1 |
- System.register(["./index-legacy-4b013233-1711617551545.js","./index-legacy-4dc00e35-1711617551545.js"],(function(e,t){"use strict";var a,s,u,l,n,d,o,r,i;return{setters:[e=>{a=e.A},e=>{s=e.d,u=e.bG,l=e.y,n=e.p,d=e.Q,o=e.f,r=e.l,i=e.F}],execute:function(){var t=document.createElement("style");t.textContent="._previewWindow_1jnin_1{width:100%;height:100%}\n",document.head.appendChild(t);const p="_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:v,params:c}=u(e);l((()=>e.show),(()=>{s.value=e.show})),l((()=>e.type),(()=>{v.value=e.type})),l((()=>e.params),(()=>{c.value=e.params}));const w=e=>{"iframe_exit"===e.data.api&&t("update:show",!1)};return n((()=>{window.addEventListener("message",w)})),d((()=>{window.removeEventListener("message",w)})),()=>o(i,null,[o(r,{show:s.value,"onUpdate:show":[e=>s.value=e,()=>{t("update:show",s.value)}],class:p,showIcon:!1,displayDirective:"show"},{default:()=>[o(i,null,[s.value?"attend"==v.value?o(a,{type:c.value.type||"",subjectId:c.value.subjectId||"",courseId:c.value.courseId||"",detailId:c.value.detailId||"",classGroupId:c.value.classGroupId||"",lessonCourseId:c.value.lessonCourseId||"",classId:c.value.classId||"",preStudentNum:c.value.preStudentNum,onClose:()=>t("update:show",!1)},null):"notation"==v.value?o("iframe",{src:c.value.src},null):"music"==v.value?o("iframe",{src:c.value.src,style:{height:"100vh"}},null):"":""])]})])}}))}}}));
|