import{i as w}from"./icon_back-c5ec0a72-1716977058336.js";import{P as h,T as S,i as C,a as T,b as I,c as N}from"./index-ac3f97d9-1716977058336.js";import{i as k}from"./icon_default-d1bcaf5f-1716977058336.js";import{i as A}from"./icon_separator-e0f6c575-1716977058336.js";import{i as P,a as L,b as z}from"./icon-plus-t-35f4cdeb-1716977058336.js";import{d as B,a as W,u as b,e as m,T as x,p as E,f as s,w as U,aO as M,aP as _,v as g,k as p,j as D,D as F}from"./index-70c8ab8f-1716977058336.js";import{T as G}from"./index-32c8a13d-1716977058336.js";import{e as R}from"./api-41353e77-1716977058336.js";import{N as j}from"./Slider-b7891db6-1716977058336.js";const q="_container_1ndgs_1",$="_iconBack_1ndgs_6",V="_separator_1ndgs_36",H="_wrap_1ndgs_41",O="_wrapBottom_1ndgs_47",J="_content_1ndgs_50",K="_tools_1ndgs_57",Q="_contentWrap_1ndgs_71",X="_musicList_1ndgs_79",Y="_instrumentGroup_1ndgs_93",Z="_instrumentImg_1ndgs_101",tt="_otherImg_1ndgs_107",st="_instrumentName_1ndgs_114",nt="_instrumentTag_1ndgs_122",et="_wrapList_1ndgs_127",it="_titlec_1ndgs_137",at="_icon2_1ndgs_147",ot="_empty_1ndgs_154",lt="_itemContainer_1ndgs_160",ct="_item_1ndgs_160",rt="_active_1ndgs_182",dt="_arrow_1ndgs_185",ut="_img_1ndgs_188",mt="_title_1ndgs_137",_t="_titleName_1ndgs_217",gt="_titleDes_1ndgs_224",pt="_btn_1ndgs_234",ft="_showPlayLoading_1ndgs_258",yt="_loadingWrap_1ndgs_261",vt="_musicStaff_1ndgs_266",wt="_musicTitle_1ndgs_281",ht="_icon1_1ndgs_290",St="_icon3_1ndgs_291",Ct="_musicContent_1ndgs_303",Tt="_staffImgs_1ndgs_316",It="_changeSizeSection_1ndgs_333",Nt="_iconT_1ndgs_346",kt="_iconAddT_1ndgs_350",At="_iconPlusT_1ndgs_351",n={container:q,iconBack:$,separator:V,wrap:H,wrapBottom:O,content:J,tools:K,contentWrap:Q,musicList:X,instrumentGroup:Y,instrumentImg:Z,otherImg:tt,instrumentName:st,instrumentTag:nt,wrapList:et,titlec:it,icon2:at,empty:ot,itemContainer:lt,item:ct,active:rt,arrow:dt,img:ut,title:mt,titleName:_t,titleDes:gt,btn:pt,showPlayLoading:ft,loadingWrap:yt,musicStaff:vt,musicTitle:wt,icon1:ht,icon3:St,musicContent:Ct,staffImgs:Tt,changeSizeSection:It,iconT:Nt,iconAddT:kt,iconPlusT:At},Mt=B({name:"instrument-detail",setup(){const r=W(),d=b(),o=m({page:1,rows:20,status:!0,name:"",type:r.query.type}),t=m({loading:!1,finshed:!1,reshing:!1,details:{},list:[],listActive:0,playState:"pause",showPlayer:!1,showPreivew:!1,previewUrl:"",showCloseBtn:!0,fontSize:18}),f=x(()=>t.list[t.listActive]||{}),c=i=>{const a=t.list.findIndex(e=>e.id===i.id);a>-1&&(t.listActive===a?t.playState=t.playState==="play"?"pause":"play":t.playState="play",t.showPlayer=!0,t.listActive=a)},y=i=>{i==="play"?t.playState="play":i==="pause"?t.playState="pause":i==="pre"?t.list[t.listActive-1]&&c(t.list[t.listActive-1]):i==="next"&&t.list[t.listActive+1]&&c(t.list[t.listActive+1])},v=async()=>{t.loading=!0;let i={};try{i=await R({id:r.query.id})}catch(e){console.log(e)}t.reshing&&(t.list=[],t.reshing=!1),t.finshed=!0,t.list=i.data.knowledgeWikiResources||[],t.list.forEach(e=>{e.audioFileUrl=e.url,e.musicSheetName=e.name});const a=i.data.knowledgeWikiCategories||[];i.data.knowledgeName=a.length>0?a[0].knowledgeWikiCategoryTypeName:"",i.data.intros=i.data.intros.replace(/