import{d as Z,x as Q,r as N,y as re,Q as pe,a as t,R as G,A as w,F as V,C as T,P as ge,K as J,e as K,w as he,U as q,z as ve,an as ye,I as we,L as Ie,a2 as Se,aq as be,a8 as ae,ar as xe,N as D,ao as Ce,E as ke,G as Me,as as Ve,at as Ne,D as Ae}from"./index-869d77fb.js";import{M as Be}from"./index-d315d9dc.js";import{i as Le}from"./icon_back-6f7c496c.js";import{h as We}from"./html2canvas.esm-9945d45c.js";import{b as qe,c as Ee,d as _e}from"./api-b637a269.js";import{g as E,s as v,a as Re,b as Te}from"./api-939e8a82.js";import{T as ne}from"./index-1c48197c.js";import{P as Y}from"./index-4645603e.js";import{N as ie}from"./index-09c5ac7f.js";import"./index-0153d173.js";import"./index-1c6c2ec0.js";const Pe="_back_1of4c_1",Fe="_musicCFixed_1of4c_16",Ue="_musicName_1of4c_21",je="_subjectListContainer_1of4c_27",Qe="_popoverMusic_1of4c_32",Ge="_container_1of4c_41",Oe="_content_1of4c_47",ze="_opacityBg_1of4c_52",Je="_leftContent_1of4c_57",Ke="_leftBg_1of4c_62",De="_leftBg2_1of4c_73",Ye="_types_1of4c_83",Ze="_type_1of4c_83",Xe="_typeActive_1of4c_103",He="_typeImg_1of4c_103",$e="_scaleBtn_1of4c_1",et="_typeIcon_1of4c_117",tt="_center_1of4c_137",st="_centerSearch_1of4c_144",ot="_subjects_1of4c_147",ct="_subjectName_1of4c_147",at="_active_1of4c_154",nt="_musicContent_1of4c_208",it="_searchNotice_1of4c_200",rt="_searchNoticeShow_1of4c_228",lt="_musicItem_1of4c_231",ut="_disableNotic_1of4c_244",mt="_musicActive_1of4c_248",dt="_musicAvtor_1of4c_258",ft="_musicInfo_1of4c_272",pt="_noticeBar_1of4c_280",gt="_musicDes_1of4c_284",ht="_musicFavitor_1of4c_289",vt="_musicAuthor_1of4c_301",yt="_musicIcon_1of4c_309",wt="_right_1of4c_313",It="_staff_1of4c_329",St="_rightBox_1of4c_332",bt="_iconTransfer_1of4c_339",xt="_rightBtns_1of4c_362",Ct="_rightBtnsRight_1of4c_388",kt="_loadingWrap_1of4c_414",Mt="_empty_1of4c_419",Vt="_displayIcon_1of4c_1",n={back:Pe,musicCFixed:Fe,musicName:Ue,subjectListContainer:je,popoverMusic:Qe,container:Ge,content:Oe,opacityBg:ze,leftContent:Je,leftBg:Ke,leftBg2:De,types:Ye,type:Ze,typeActive:Xe,typeImg:He,scaleBtn:$e,typeIcon:et,center:tt,centerSearch:st,subjects:ot,subjectName:ct,active:at,musicContent:nt,searchNotice:it,searchNoticeShow:rt,musicItem:lt,disableNotic:ut,musicActive:mt,musicAvtor:dt,musicInfo:ft,noticeBar:pt,musicDes:gt,musicFavitor:ht,musicAuthor:vt,musicIcon:yt,right:wt,"right-musicName":"_right-musicName_1of4c_321",staff:It,rightBox:St,iconTransfer:bt,rightBtns:xt,rightBtnsRight:Ct,loadingWrap:kt,empty:Mt,displayIcon:Vt},Nt=""+new URL("icon_down-27184904.svg",import.meta.url).href,At=""+new URL("icon_jianpuActive-17580202.svg",import.meta.url).href,Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAA8CAMAAAAt4rT4AAAC61BMVEUAAAA+vP9Dyf8nn/9Fyv9Cwf9Eyf8mnv8oof9Fy/9FzP8mnv9Cxv8mnv9Dyf9Eyv8nn/8pov9Izf8roP9Eyv9Gzf8ooP8on/8oov9Gy/8nnv8pn/8qo/9Bx/9Fzf9GzP9Cx/////8mn/8oof9Dyf8rpv8yr/4pov0qpP88vv49wP4sqP83t/8wrP40s/47vf86vP4sp/05uv4tqf81tP82tf8+wv84uP5Eyv8uqv8xrv82tv0vq/8lnf8zsf08v/89v/8/xP5Bxf86u/9Bx/5Fy/8/xP8ysP/n+P89wP/w+//q+f/e9f/b9P/X8/84uP/h9v9Cx//j9/9Bxv/4/v8wrf/s+v84uf80sv/z/P/p+f/Z8/85u/8ek+r2/f87vfwqpPkhl+8zsf8uqvonoPAjmu/l9/8sqPi+4fsxrvk0svggler1/f8ooPrh8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iL+tEJKumiUrvee2aCD3GTMjjIhW2sLDR6rf55p4nqIAiS0MRQSYI0dnZCG8NAs9D1uqXiizZc6EAl0bIKc7OespNFiPbZYjlIUxyuQCVRpXAQUS59WWjcE04Y0412u91DtRvUFIAQhPEEzxeg5hVJGpSjNDVlGJw4oV+BStIsW4TGFBp8B1UqzEQFKsmKPSPNWYlylYN31OUkjXBcNAhxCXguVpA0+tRv4JNDamgnaWZSBNRBSbSIko+bFSRN8EGQZVsGdZWk/SlJ8+BGTJK6qGoDwC4c47NJwJJiGmeLbnEZptwTkJM62QyDCh05CbfmdRGSezIGNMVoUM49lSEn6Wj5nqGYZDnU+og7vNqldDVKoXHxKrBWP8M7egdVHC2UrMFgCvmqxvig9MZFSs3oatplbgWlFrICfEpnC2bZ81ZAraUIMu0yBBTCUMy3cIkqt4upuNllw4UmSAO7gN65rqpcFJVTalswi7wuAVC0z1ZsGejIghLsKZT56YkI8t2AcR8uAyXDLRXG4VJVkkjmbuV2bdb1tlWLG1fshH7jIvZkpwy6FZRauBWbRulOCGD87nj/k3Wy8HxJA0kTHLINF6crBYTIPSWAUE1myxF/ERasJBg1tYvt9y3tSV63MFxTE1thKd5/y48xaBd0kUKOrdBHS1FJHy18k1ITSbyca51JQEl+wastGS3dMtLTk7F3rkpzVluFsRXe+mOMf11rnoZKh2qbAAAAAElFTkSuQmCC",Lt={icon_start:Bt},Wt=Z({name:"coai-guide",emits:["close"],setup(d,{emit:p}){const a=Q({box:{},show:!1,steps:[{ele:"",eleRect:{},img:E("coai-1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:"1.5rem",width:"6.55rem",height:"2.76rem"},btnsStyle:{top:"4.7rem",left:"2.0rem",transform:"scale(1.2)"},boxStyle:{borderRadius:"40px",transform:"scale(1)"}},{ele:"",img:E("coai-2.png"),handStyle:{top:"-1.39rem",left:"0.15rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem"},btnsStyle:{top:"-1.3rem",left:"1.3rem"}},{ele:"",img:E("coai-3.png"),handStyle:{top:"-1.39rem",left:"0.17rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem"},btnsStyle:{top:"-1.3rem",left:"1.3rem"}},{ele:"",img:E("coai-4.png"),handStyle:{top:"-1.39rem",left:"1.4rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem",left:"-3.7rem",width:"6.00rem",height:"2.53rem"},boxStyle:{borderRadius:"40px",transform:"scale(1.1)"},btnsStyle:{top:"-1.1rem",left:"-3.8rem","justify-content":"center",padding:0}}],step:0}),e=N(!1),u=N({});(async()=>{var r;try{const g=await Re({guideTag:"guideInfo"});g.data?u.value=JSON.parse((r=g.data)==null?void 0:r.guideValue)||null:u.value={},u.value&&u.value.coaiGuide?e.value=!1:e.value=!0}catch(g){console.log(g)}})();const I=()=>{console.log(`coai-${a.step}`);const r=document.getElementById(`coai-${a.step}`);if(r){const g=r.getBoundingClientRect();a.box={left:g.x+"px",top:g.y+"px",width:g.width+"px",height:g.height+"px"}}else A()};re(()=>{I(),window.addEventListener("resize",P)});const P=()=>{I()};pe(()=>{window.removeEventListener("resize",P)});const A=()=>{if(a.step>=3){B();return}a.step=a.step+1,I()},B=async()=>{u.value?u.value.coaiGuide=!0:u.value={coaiGuide:!0};try{const r=await Te({guideTag:"guideInfo",guideValue:JSON.stringify(u.value)})}catch(r){console.log(r)}e.value=!1};return()=>t(G,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",v.guidePopup],show:e.value,"onUpdate:show":r=>e.value=r},{default:()=>[t("div",{class:v.content,onClick:()=>A()},[a.step!=a.steps.length-1&&t("div",{class:v.backBtn,onClick:r=>{r.stopPropagation(),B()}},[w("跳过")]),t("div",{class:v.box,style:{...a.box,...a.steps[a.step].boxStyle},id:`modeType-${a.step}`},[a.steps.map((r,g)=>{var S,k;return t("div",{onClick:L=>L.stopPropagation(),class:v.item,style:{display:g===a.step?"":"none",left:`${(S=r.eleRect)==null?void 0:S.left}px`,top:`${(k=r.eleRect)==null?void 0:k.top}px`}},[t("img",{class:v.img,style:r.imgStyle,src:r.img},null),t("img",{class:v.iconHead,style:r.handStyle,src:E("indexDot.png")},null),t("div",{class:v.btns,style:r.btnsStyle},[a.step+1==a.steps.length?t(V,null,[t(T,{class:[v.btn],round:!0,type:"primary",onClick:()=>B()},{default:()=>[w("完成")]}),t(T,{class:[v.btn,v.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{a.step=0,I()}},{default:()=>[w("再看一遍")]})]):t(T,{class:v.btn,round:!0,type:"primary",onClick:()=>A()},{default:()=>[w("下一步 ("),a.step+1,w("/"),a.steps.length,w(")")]})])])})])])]})}}),_=""+new URL("logoWatermark-270788fc.png",import.meta.url).href,qt=async d=>{try{const p=d.getContext("2d"),a=document.createElement("img");a.setAttribute("crossOrigin","anonymous"),_&&typeof _=="string"&&_.includes("data:image"),a.src=_,await new Promise(I=>a.onload=I);const e=document.createElement("canvas");e.width=280,e.height=220;const u=e.getContext("2d");u.clearRect(0,0,e.width,e.height),u.drawImage(a,80,80);const C=p.createPattern(e,"repeat");return p.fillStyle=C,p.fillRect(0,0,d.width,d.height),d}catch(p){console.log(p)}},Et=(d,p=1)=>d.toDataURL("image/png",p),_t="_changeVoice_1kdd6_1",Rt="_changeVoiceContainer_1kdd6_7",Tt="_item_1kdd6_16",Pt="_active_1kdd6_25",Ft="_btnGroups_1kdd6_28",R={changeVoice:_t,changeVoiceContainer:Rt,item:Tt,active:Pt,btnGroups:Ft},Ut=Z({name:"change-voice",props:{musicalInstruments:{type:Array,default:()=>[]},musicalInstrumentIndex:{type:Number,default:0}},emits:["close","confirm"],setup(d,{emit:p}){const a=N(d.musicalInstrumentIndex);return()=>{var e;return t("div",{class:R.changeVoice},[t("div",{class:R.changeVoiceContainer},[(e=d.musicalInstruments)==null?void 0:e.map((u,C)=>t("div",{class:[R.item,a.value===u.value&&R.active],onClick:()=>{a.value=u.value}},[u.text]))]),t("div",{class:R.btnGroups},[t(T,{round:!0,block:!0,onClick:()=>{p("close")}},{default:()=>[w("取消")]}),t(T,{type:"primary",block:!0,round:!0,color:"linear-gradient(90deg, #44C9FF 0%, #259CFE 100%)",onClick:()=>{p("confirm",a.value)}},{default:()=>[w("确认")]})])])}}}),Ht=Z({name:"co-ai",setup(){var X,H;const d=ge(),p=Q({page:1,rows:999,subjectId:((X=J.user.data)==null?void 0:X.subjectId)||"",musicTagIds:d.query.musicTagId?[d.query.musicTagId]:[]}),a=Q({page:1,rows:20,status:1,keyword:"",musicSheetCategoriesId:d.query.id,musicalInstrumentId:""}),e=Q({musicSheetCategoriesName:d.query.name,typeIndex:0,musicIndex:0,showMusicImg:"staff",popoverShow:!1,popoverMusicShow:!1,types:[],musics:[],loading:!0,finshed:!1,showChangeVoice:!1,selectMusicInstrumentIndex:0,iframeSrc:"",searchNoticeShow:!1,searchNotice:{left:"",top:"",width:"",height:""},showVip:!1,vipMember:(H=J.user.data)==null?void 0:H.vipMember,subjectStatus:!1,subjectList:[],subjectItem:{},trackList:[],showTransBtn:!0}),u=N(),C=N(!1),I=K(()=>[{value:"staff",text:"五线谱"},{value:"first",text:"首调"},{value:"fixed",text:"固定调"}].map((o,c)=>({...o,color:e.showMusicImg===o.value?"var(--van-primary-color)":"",className:e.showMusicImg===o.value?"fontBlod":""}))),P=K(()=>e.types.map(o=>({...o,color:a.musicSheetCategoriesId==o.value?"var(--van-primary-color)":"",className:a.musicSheetCategoriesId==o.value?"fontBlod":""}))),A=()=>{q({api:"goBack"})},B=()=>{var i;if(!e.vipMember){e.showVip=!0;return}let o="staff";e.showMusicImg==="first"?o="firstTone":e.showMusicImg==="fixed"?o="fixedTone":e.showMusicImg==="staff"&&(o="staff");let c=`${ae()}/instrument?id=${(i=e.musics[e.musicIndex])==null?void 0:i.id}&musicRenderType=${o}&showGuide=true&part-index=${e.selectMusicInstrumentIndex}`;q({api:"openAccompanyWebView",content:{url:c,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}})},r=async()=>{xe({message:"正在保存",duration:0});try{We(u.value,{backgroundColor:"#fff",allowTaint:!0,useCORS:!0}).then(async o=>{const c=await qt(o),i=await Et(c);console.log(i,"dataURL"),setTimeout(()=>{D("已保存到相册")},500),await Ce({api:"savePicture",content:{base64:i}})}).catch(()=>{setTimeout(()=>{D("保存失败")},500)})}catch(o){setTimeout(()=>{D("保存失败")},500)}},g=async()=>{var o;try{const c=await qe({...p});if(c.code===200&&Array.isArray((o=c==null?void 0:c.data)==null?void 0:o.rows)){const i=[];c.data.rows.forEach(l=>{i.push({value:l.id,text:l.name})}),e.types=i}}catch(c){console.log("🚀 ~ error:",c)}},S=async()=>{var o;e.loading=!0;try{const c=await Ee({...a,musicalInstrumentId:e.subjectItem.value||null});c.code===200?Array.isArray((o=c==null?void 0:c.data)==null?void 0:o.rows)?(e.musics=[...e.musics,...c.data.rows],e.finshed=!c.data.next):e.finshed=!0:C.value=!0}catch(c){console.log("🚀 ~ error:",c)}e.loading=!1},k=()=>{a.page=1,e.musics=[],S()},L=N(),le=()=>{e.loading||e.finshed||(a.page=a.page+1,S())},W=()=>{const o=ke.get(Me),c=e.musics[e.musicIndex],i=e.showMusicImg==="first"?"firstTone":e.showMusicImg==="fixed"?"fixedTone":(e.showMusicImg==="staff","staff");e.iframeSrc=`${ae()}/instrument/?id=${c.id}&modelType=practise&modeType=json&Authorization=${o}&isPreView=true&part-index=${e.selectMusicInstrumentIndex}&musicRenderType=${i}`},ue=()=>{const o=document.querySelector(".searchNotice .van-field__control");if(o){const c=o.getBoundingClientRect();e.searchNotice.left=c.x+"px",e.searchNotice.top=c.y+"px",e.searchNotice.width=c.width+"px",e.searchNotice.height=c.height+"px"}},O=K(()=>{var c;const o=(c=e.musics[e.musicIndex])==null?void 0:c.musicalInstruments;if(o&&o.length){let i=[];o.forEach(l=>{i.push({name:l.name,code:l.code})})}return!!(o&&o.length>1)}),me=async()=>{var o;try{let c=((o=J.user.data)==null?void 0:o.subjectId)||"";c=c.split(",");const i=c[0]||"",l=await _e({enableFlag:!0,delFlag:0,page:1,subjectId:i||"",rows:999});if(i){const h=l.data||[];let s=[];h.forEach(f=>{const y=f.instruments||[];Number(i)===f.id&&y.length>0&&y.forEach((b,F)=>{s.push({text:b.name,value:b.id,className:F===0?"selected":""})})}),e.subjectList=s,s.length>0&&(e.subjectItem=s[0])}}catch(c){}},z=async()=>{var c;const o=e.musics[e.musicIndex];if(((c=o==null?void 0:o.musicalInstruments)==null?void 0:c.length)>1){if(o.xmlFileUrl){const i=await fetch(o.xmlFileUrl).then(l=>l.text());de(i)}}else{const{defaultScore:i,transferFlag:l}=o.musicalInstruments[0]||{};let h="staff";h=i==="STAVE"?"staff":i==="JIAN"?"fixed":i==="FIRST"?"first":"staff",e.showMusicImg=h,e.showTransBtn=l}},de=o=>{var $,ee,U,te,se,oe,ce;const c=new DOMParser().parseFromString(o,"text/xml"),i=((ee=($=c.getElementsByTagName("part-list"))==null?void 0:$[0])==null?void 0:ee.getElementsByTagName("score-part"))||[],l=Array.from(i).map(m=>{var x,j,M;return((M=(j=(x=m.getElementsByTagName("part-name"))==null?void 0:x[0])==null?void 0:j.textContent)==null?void 0:M.trim())||""});c.getElementsByTagName("part"),((te=(U=l[0])==null?void 0:U.toLocaleUpperCase)==null?void 0:te.call(U))==="COMMON"&&l.shift();const h=(se=e.musics[e.musicIndex])==null?void 0:se.multiTracksSelection,s=h?h==null?void 0:h.split(","):[];console.log(s,l);const f=l.map((m,x)=>{const j=!!(s.length==0||s.includes(m)),M=Ve(m),fe=Ne(M,x);return{text:m+(M?`(${M})`:""),value:x,sortId:fe,canselect:j,track:m}}).filter(m=>m.canselect).sort((m,x)=>m.sortId-x.sortId);e.trackList=f;let y=(oe=f.find(m=>m.value===e.selectMusicInstrumentIndex))==null?void 0:oe.track;y=y.replace(/[0-9]+/g,"").replace(/\s/g,"").toLocaleLowerCase();let b="staff",F=!0;(ce=e.musics[e.musicIndex])==null||ce.musicalInstruments.forEach(m=>{m.code.toLocaleLowerCase()===y&&(b=m.defaultScore==="STAVE"?"staff":m.defaultScore==="JIAN"?"fixed":(m.defaultScore==="FIRST","first"),F=m.transferFlag)}),e.showTransBtn=F,e.showMusicImg=b};return he(()=>e.musicIndex,async()=>{e.selectMusicInstrumentIndex=0,z()}),re(async()=>{q({api:"setStatusBarVisibility",content:{isVisibility:0}}),await me(),await g(),await S();const o=new IntersectionObserver(i=>{i[0].intersectionRatio>0&&le()});ve(()=>{L.value&&o.observe(L.value)});const c=async()=>{const i=await Ae.get("/edu-app/user/getUserInfo",{initRequest:!0,requestType:"form",hideLoading:!0});(i==null?void 0:i.code)===200&&(e.vipMember=i.data.vipMember)};ye("webViewOnResume",()=>{console.log("页面显示",e.iframeSrc),c(),e.typeIndex=0,e.musicIndex=0,k()}),ue(),W()}),()=>{var o,c,i,l,h;return t("div",{class:n.container},[t("div",{class:n.back,onClick:A},[t("img",{src:Le},null)]),t("div",{class:n.musicCFixed},[t(Y,{show:e.popoverMusicShow,"onUpdate:show":s=>e.popoverMusicShow=s,class:n.popoverMusic,actions:P.value,placement:"bottom",showArrow:!1,onSelect:s=>{s.value!=a.musicSheetCategoriesId&&(e.musics=[],a.musicSheetCategoriesId=s.value,e.musicSheetCategoriesName=s.text,e.popoverMusicShow=!1,S())}},{reference:()=>t("span",{class:n.musicName},[e.musicSheetCategoriesName,t(we,{name:"arrow-down"},null)])})]),t("div",{class:n.content},[t("div",{class:[n.leftContent]},[t("div",{class:n.leftBg2},null),t("div",{class:n.center},[t("div",{class:n.centerSearch},[t("div",{id:"coai-0"},[t(Be,{class:["searchNotice",e.searchNoticeShow?n.searchNoticeShow:""],shape:"round",clearable:!1,placeholder:"请输入关键字",modelValue:a.keyword,onFocus:()=>e.searchNoticeShow=!1,onBlur:s=>{a.keyword=(s==null?void 0:s.trim())||"",requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.keyword&&(e.searchNoticeShow=!0)})})},onSearch:s=>{e.loading||(a.keyword=s,k())}},{left:()=>e.subjectItem.value&&e.subjectList.length>1&&t("div",{class:n.subjects},[t(Y,{show:e.subjectStatus,"onUpdate:show":s=>e.subjectStatus=s,offset:[0,18],actions:e.subjectList,placement:"bottom-start",class:n.subjectListContainer,onSelect:s=>{e.subjectList.forEach(f=>{f.className=""}),e.subjectItem={...s,className:"selected"},k()}},{reference:()=>t("div",{class:[n.subjectName,e.subjectStatus&&n.active]},[t("span",null,[e.subjectItem.text]),w(" "),t("i",null,null)])})])})])]),t("div",{class:n.musicContent},[e.musics.map((s,f)=>t("div",{class:[n.musicItem,e.musicIndex===f?n.musicActive:n.disableNotic],onClick:()=>{e.musicIndex=f,W()}},[t("img",{class:n.musicAvtor,src:s.titleImg,onLoad:y=>{y.target.setAttribute("loaded","true")}},null),t("div",{class:n.musicInfo},[t("div",{class:n.musicName},[t(ie,{text:s.musicSheetName,class:n.noticeBar,background:"none"},null)]),t("div",{class:n.musicDes},[t("div",{class:n.musicFavitor},[s.usedNum]),t("div",{class:[n.musicAuthor,"van-ellipsis"]},[s.composer||"佚名"])])])])),!e.finshed&&t("div",{ref:L,class:n.loadingWrap},[t(Ie,{color:"#259CFE"},null)]),!e.loading&&e.musics.length===0&&t("div",{class:n.empty},[t(Se,{description:"暂无曲谱"},null)])])])]),t("div",{class:[n.opacityBg,n.right]},[t("div",{class:n.rightBox},[O.value&&t("div",{class:n.iconTransfer,onClick:()=>e.showChangeVoice=!0},[w("切换声轨")]),t("div",{ref:u},[t("div",{class:n["right-musicName"]},[(o=e.musics[e.musicIndex])==null?void 0:o.musicSheetName]),O.value?t("div",null,[t(V,null,[t("iframe",{id:"staffIframeRef",style:{width:"100%"},src:e.iframeSrc,onLoad:async()=>{await z(),W()}},null)])]):t(V,null,[e.showMusicImg==="first"?t(V,null,[(i=(c=e.musics[e.musicIndex])==null?void 0:c.musicFirstImg)==null?void 0:i.split(",").map((s,f)=>t("img",{class:n.staff,src:s+"?v="+Date.now(),key:s,crossorigin:"anonymous"},null))]):e.showMusicImg==="fixed"?t(V,null,[t(be,{name:"van-fade"},{default:()=>{var s,f;return[(f=(s=e.musics[e.musicIndex])==null?void 0:s.musicJianImg)==null?void 0:f.split(",").map((y,b)=>t("img",{class:n.staff,src:y+"?v="+Date.now(),key:y,crossorigin:"anonymous"},null))]}})]):t(V,null,[(h=(l=e.musics[e.musicIndex])==null?void 0:l.musicImg)==null?void 0:h.split(",").map((s,f)=>t("img",{class:n.staff,src:s+"?v="+Date.now(),key:s,crossorigin:"anonymous"},null))])])])]),t("div",{class:n.rightBtns},[e.showTransBtn&&t(Y,{show:e.popoverShow,"onUpdate:show":s=>e.popoverShow=s,class:n.popover,actions:I.value,placement:"top-start",onSelect:s=>{e.showMusicImg=s.value,e.popoverShow=!1,W()}},{reference:()=>t("img",{id:"coai-1",src:At},null)}),!O.value&&t("img",{id:"coai-2",src:Nt,onClick:r},null),t("div",{class:n.rightBtnsRight,id:"coai-3"},[t("img",{src:Lt.icon_start,onClick:()=>B()},null)])])])]),e.searchNotice.width&&e.searchNoticeShow&&t("div",{class:n.searchNotice,style:{...e.searchNotice}},[t(ie,{text:a.keyword,color:"#333",background:"none"},null)]),C.value&&t(Wt,null,null),t(G,{class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:e.showVip,"onUpdate:show":s=>e.showVip=s},{default:()=>[t(ne,{onClose:s=>{s&&q({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),e.showVip=!1}},null)]}),t(G,{class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:e.showVip,"onUpdate:show":s=>e.showVip=s},{default:()=>[t(ne,{onClose:s=>{s&&q({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),e.showVip=!1}},null)]}),e.showChangeVoice&&t(G,{class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:e.showChangeVoice,"onUpdate:show":s=>e.showChangeVoice=s},{default:()=>[t(Ut,{musicalInstruments:e.trackList||[],musicalInstrumentIndex:e.selectMusicInstrumentIndex,onClose:()=>e.showChangeVoice=!1,onConfirm:async s=>{e.selectMusicInstrumentIndex=s,await z(),W(),e.showChangeVoice=!1}},null)]})])}}});export{Ht as default};