System.register(["./index-legacy-1cbe5d00.js","./index-legacy-aa4fa626.js","./index-legacy-89a037b4.js","./index.module-legacy-80b22a8c.js","./index-legacy-b247850e.js","./index-legacy-dbc3358b.js","./browser-legacy-794fdde3.js","./index-legacy-1d7cfb55.js","./index-legacy-c566e52e.js"],(function(e,t){"use strict";var i,a,s,l,n,o,d,c,r,u,g,m,p,y;return{setters:[e=>{i=e.d,a=e.P,s=e.x,l=e.y,n=e.z,o=e.a,d=e.W,c=e.a7},e=>{r=e.M},e=>{u=e.u,g=e.a},e=>{m=e.s},e=>{p=e.A},e=>{y=e.I},null,null,null],execute:function(){e("default",i({name:"instrument-detail",setup(){a();const e=s({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),t=t=>{if("parent-notes"===t.data.api){var i,a;const s=t.data.message?JSON.parse(t.data.message):{};e.detail=s||{},e.detail.intros=null===(i=e.detail.intros)||void 0===i?void 0:i.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),e.musicList=null===(a=s.knowledgeWikiResources)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,url:e.url})))}};return l((()=>{u(document,"scroll",(()=>{const{y:t}=g();e.titleOpacity=t.value>100?1:t.value/100})),n((()=>{window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")})),window.addEventListener("message",t)})),()=>o("div",{class:m.detail},[o(r,{position:"top"},{default:()=>[o(d,{isBack:!1,border:!1,background:`rgba(255,255,255, ${e.titleOpacity})`,color:`rgba(51,51,51, ${e.titleOpacity})`,title:e.detail.name||""},null)]}),o("div",{class:m.container},[o("div",{class:m.instrumentLogo},[o(y,{class:m.logo,fit:"cover",src:e.detail.avatar},null)]),o("div",{class:m.title},[e.detail.name]),o("div",{class:m.content,innerHTML:e.detail.intros},null),!e.loading&&!e.detail.intros&&o(c,{description:"暂无内容"},null)]),e.musicList.length>0&&o(r,{position:"bottom",style:{background:"#fff"}},{default:()=>[o(p,{musicList:e.musicList},null)]})])}}))}}}));
