!function(){function t(t,e,i,n,l,a,o){try{var s=t[a](o),r=s.value}catch(c){return void i(c)}s.done?e(r):Promise.resolve(r).then(n,l)}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,i){"use strict";var n,l,a,o,s,r,c,d,u,g,y,m,p,v;return{setters:[t=>{n=t.d,l=t.P,a=t.x,o=t.y,s=t.a,r=t.W,c=t.a7,d=t.D},t=>{u=t.M},t=>{g=t.u,y=t.a},t=>{m=t.s},t=>{p=t.A},t=>{v=t.I},null,null,null],execute:function(){e("default",n({name:"instrument-detail",setup(){const e=l(),i=a({titleOpacity:0,background:"transparent",color:"#fff",detail:{},musicList:[],loading:!1}),n=function(){var n,l=(n=function*(){i.loading=!0;try{const{data:t}=yield d.get("/edu-app/knowledgeWiki/detail/"+e.query.id);t.intros=t.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),i.detail=t||{},i.musicList=t.knowledgeWikiResources.map((t=>({id:t.id,name:t.name,url:t.url})))}catch(t){}i.loading=!1},function(){var e=this,i=arguments;return new Promise((function(l,a){var o=n.apply(e,i);function s(e){t(o,l,a,s,r,"next",e)}function r(e){t(o,l,a,s,r,"throw",e)}s(void 0)}))});return function(){return l.apply(this,arguments)}}();return o((()=>{g(document,"scroll",(()=>{const{y:t}=y();i.titleOpacity=t.value>100?1:t.value/100})),n()})),()=>s("div",{class:m.detail},[s(u,{position:"top"},{default:()=>[s(r,{border:!1,background:`rgba(255,255,255, ${i.titleOpacity})`,color:`rgba(51,51,51, ${i.titleOpacity})`,title:i.detail.name||""},null)]}),s("div",{class:m.container},[s("div",{class:m.instrumentLogo},[s(v,{class:m.logo,fit:"cover",src:i.detail.avatar},null)]),s("div",{class:m.title},[i.detail.name]),s("div",{class:m.content,innerHTML:i.detail.intros},null),!i.loading&&!i.detail.intros&&s(c,{description:"暂无内容"},null)]),s(u,{position:"bottom"},{default:()=>[i.musicList.length>0&&s(p,{musicList:i.musicList},null)]})])}}))}}}))}();
