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