!function(){function i(i,t,e,l,n,a,s){try{var c=i[a](s),o=c.value}catch(d){return void e(d)}c.done?t(o):Promise.resolve(o).then(l,n)}System.register(["./index-legacy-1cbe5d00.js","./index-legacy-aa4fa626.js","./index-legacy-89a037b4.js","./index.module-legacy-85a925e3.js","./index-legacy-b247850e.js","./index-legacy-dbc3358b.js","./index-legacy-77b39e83.js","./browser-legacy-794fdde3.js","./index-legacy-1d7cfb55.js","./index-legacy-c566e52e.js"],(function(t,e){"use strict";var l,n,a,s,c,o,d,r,u,m,g,p,v,y,f,x,b;return{setters:[i=>{l=i.d,n=i.P,a=i.x,s=i.y,c=i.a,o=i.W,d=i.A,r=i.a7,u=i.D},i=>{m=i.M},i=>{g=i.u,p=i.a},i=>{v=i.s},i=>{y=i.m,f=i.A},i=>{x=i.I},i=>{b=i.N},null,null,null],execute:function(){t("default",l({name:"instrument-detail",setup(){const t=n(),e=a({titleOpacity:0,background:"transparent",detail:{},musicList:[],loading:!1}),l=function(){var l,n=(l=function*(){e.loading=!0;try{const{data:i}=yield u.get("/edu-app/knowledgeWiki/detail/"+t.query.id);i.intros=i.intros.replace(/<video/gi,'<video style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'),e.detail=i||{},e.musicList=i.knowledgeWikiResources.map((i=>({id:i.id,name:i.name,url:i.url})))}catch(i){}e.loading=!1},function(){var t=this,e=arguments;return new Promise((function(n,a){var s=l.apply(t,e);function c(t){i(s,n,a,c,o,"next",t)}function o(t){i(s,n,a,c,o,"throw",t)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();return s((()=>{g(document,"scroll",(()=>{const{y:i}=p();e.titleOpacity=i.value>100?1:i.value/100})),l()})),()=>c("div",{class:v.detail},[c("div",{class:v.bgSection},[c("img",{class:v.bg,src:e.detail.avatar||y},null)]),c(m,{position:"top"},{default:()=>[c(o,{border:!1,background:`rgba(255,255,255, ${e.titleOpacity})`,color:`rgba(51,51,51, ${e.titleOpacity})`,title:e.detail.name||""},null)]}),c("div",{class:v.container},[c("div",{class:v.musicHeader},[c("div",{class:v.imgSection},[c(x,{class:v.img,src:e.detail.avatar||y,fit:"cover"},null),c("div",{class:v.pan},[c("img",{src:e.detail.avatar||y},null)])]),c("div",{class:v.musicContent},[c("div",{class:[v.musicTitle,"van-multi-ellipsis--l2"]},[c(b,{scrollable:e.detail.name>=13,background:"transparent",text:e.detail.name||"--"},null)]),c("div",{class:v.musicInto},[e.detail.lyricists&&c("span",null,[d("作词："),e.detail.lyricists]),e.detail.composers&&c("span",null,[d("作曲："),e.detail.composers])])])]),e.detail.intros?c("div",{class:v.content,innerHTML:e.detail.intros},null):"",!e.loading&&!e.detail.intros&&c("div",{class:v.content},[c(r,{description:"暂无内容"},null)])]),c(m,{position:"bottom"},{default:()=>[e.musicList.length>0&&c(f,{musicList:e.musicList},null)]})])}}))}}}))}();
