detail-legacy-e1aa0e89-1728473459135.js 21 KB

1
  1. System.register(["./index-legacy-8efc6d37-1728473459135.js","./index-legacy-1be20fc9-1728473459135.js","./catchData-legacy-44b11601-1728473459135.js","./contants-legacy-5abbabb7-1728473459135.js","./index-legacy-820bfebb-1728473459135.js","./index-legacy-ccf08e62-1728473459135.js","./index-legacy-11f410ec-1728473459135.js","./api-legacy-c5c1ebc3-1728473459135.js","./Scrollbar-legacy-c1891762-1728473459135.js","./index-legacy-608abb0b-1728473459135.js"],(function(e,t){"use strict";var a,n,i,r,o,s,l,c,m,_,d,A,g,h,p,u,v,f,b,w,q,C,y,S,E,I,B,x;return{setters:[e=>{a=e.C},e=>{n=e.d,i=e.e,r=e.q,o=e.f,s=e.N,l=e.g,c=e.x,m=e.ay,_=e.D,d=e.aR,A=e.r,g=e.A,h=e.F,p=e.a,u=e.U,v=e.t,f=e.v,b=e.k,w=e.E},e=>{q=e.u},e=>{C=e.a},e=>{y=e.a,S=e.f},e=>{E=e.T},e=>{I=e.T},e=>{B=e.c},e=>{x=e.N},null],execute:function(){var t=document.createElement("style");t.textContent='._xiaokuDetail_qrm60_1{min-height:100%;display:flex;flex-direction:column}._detailContainer_qrm60_6{flex:1 auto;background:#ffffff;border-radius:1.04166667vw}._detailContainer_qrm60_6 .n-tabs-tab-pad{width:2.08333333vw!important}._detailContainer_qrm60_6 .n-tabs-nav{padding:1.14583333vw 1.66666667vw .9375vw}._detailContainer_qrm60_6 .n-tabs-tab{color:#8b8d98;font-size:1.04166667rem;padding-top:.41666667vw;padding-bottom:.41666667vw;line-height:1.45833333vw}._detailContainer_qrm60_6 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._detailContainer_qrm60_6 .n-tabs-tab__label{z-index:10}._detailContainer_qrm60_6 .n-tabs-bar{height:.52083333vw;background:linear-gradient(90deg,#77bbff 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.41666667vw;transition-duration:.03}._detailContainer_qrm60_6 .n-tabs-bar--disabled{background-color:#fff!important}._detailContainer_qrm60_6 .n-tab-pane{padding-top:0!important}._detailContainer_qrm60_6 ._inputSearch_qrm60_44{width:25vw}._detailContainer_qrm60_6 ._searchSection_qrm60_47{position:relative;margin:0 1.66666667vw}._detailContainer_qrm60_6 ._searchSectionHide_qrm60_51{visibility:hidden;opacity:0;height:0!important;line-height:0!important}._searchGroup_qrm60_57{background:#f7f8f9;border-radius:.625vw;padding:1.25vw 1.25vw 1.77083333vw;position:relative}._searchGroup_qrm60_57 ._hideItem_qrm60_63{visibility:hidden;opacity:0;height:0!important;line-height:0!important}._searchGroup_qrm60_57 ._btnType_qrm60_69{gap:0px 1.25vw!important}._searchGroup_qrm60_57 ._btnType_qrm60_69 .n-button{height:1.92708333vw;padding:0 1.25vw;font-size:.9375rem;color:rgba(0,0,0,.6)}._searchGroup_qrm60_57 ._btnType_qrm60_69 .n-button.n-button--primary-type{font-weight:700;color:#fff}._searchGroup_qrm60_57 .n-form{position:relative}._searchGroup_qrm60_57 .n-form-item .n-form-item-label{font-size:.88541667rem;font-weight:600;color:#131415;line-height:1.25vw}._searchGroup_qrm60_57 .n-form-item .n-button{height:1.66666667vw;font-size:.88541667rem;border-radius:.41666667vw;color:rgba(0,0,0,.6)}._searchGroup_qrm60_57 .n-form-item .n-button--primary-type{color:#131415;background-color:#d2ecff!important}._searchGroup_qrm60_57 .n-form-item-feedback-wrapper{min-height:.72916667vw}._searchGroup_qrm60_57 ._moreSearch_qrm60_104{position:absolute;bottom:0;left:50%;transform:translate(-50%);font-size:.88541667rem;color:#000;cursor:pointer;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbwAAABECAYAAAD6BoAfAAAAAXNSR0IArs4c6QAAB99JREFUeF7t3U2IJHcZx/HnqZ6Zdcbtru7q6hbxEJDdEIM3FeMp8WBQETcbNav4rqigl+hBUDYQyKLgQXNRUPFd0fVtsyIq8WByMhK9SZRkEXIQcbr6pbrX2ezsdD1SG3MQ12R6+qnqmqnvwJym6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Z+zS8bTH/AB80WIeSwCCCCAgLdA/oH0uNN6d/45vf3O3nfhmdnxwSj9poi8Y7/DeRwCCCCAAAIFCvykF4UfUtXL+1ljX4U3mExeJXP9oYmd3M9QHoMAAggggEAZAir6lDTsXb12+08vtN7zFp6ZBclodq+ofd7MNl5oGD9HAAEEEECgbAFV3RXTz8RR80FVzf7f+jcsvOtFN56eEZOzJnZr2eFZDwEEEEAAgUUFVPQJUTkXd1rnb1R8/1V4Zvbi4WT2dsvssyZ286KL8XgEEEAAAQRWLaCiT2qgn+u2mz9V1X89l0e30/SkZPLm698qt4vZsVWHZX0EEEAAAQSWFlC9KiaPSiC/yr//DWfDJFQS7eTVAAAAAElFTkSuQmCC) no-repeat center;background-size:contain;width:11.5625vw;line-height:1.77083333vw;display:flex;align-items:center;justify-content:center}._searchGroup_qrm60_57 ._moreSearch_qrm60_104:after{content:"";display:inline-block;width:.625vw;height:.625vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAaCAYAAACtv5zzAAAAAXNSR0IArs4c6QAAATFJREFUSEvtlL1KBDEUhe8JiGBtu434ACJ2Wuh72Oyd2YDPYyFqkul8jEXQUgtfQAtLn0B2yJX9mXEWJ5tEWEHYVAO5Od89JzcDWvPCmvVpA4gm/HcRFUVxTERH3u/cVdXlR7S1ngKt9W5d+3Mi9eTczeO0ZOZAa304mdTPizPvwPapc1evORDmiz2Rz3siGgDwSmHfGPM2AzDzmQiNO4JZkK54owFsHTh3/dLewXBY3BJJmQvpEyeCqSo7aiOafogImEtDJJwKCYg750wJQJYAuZAU8R+AVEiqeC8gBpnvz6flO0osxdKdvuBDC93J4nCSeNBB00EA0mkw3Hk7rrHHFIbExaMOQk4AstbaUTOKq5rM+tkx6xOlPIwxDzHnyRGlCoXqshz8BrYBRFP7/xF9AcGCthtufYPzAAAAAElFTkSuQmCC) no-repeat center;background-size:contain;margin-left:.3125vw}._searchGroup_qrm60_57 ._moreSearch_qrm60_104._activeSearch_qrm60_129:after{transform:rotate(180deg)}._teachingModal_qrm60_132{width:57.29166667vw}._spaceSection_qrm60_135{width:100%;transition:1s all ease-in}._spaceSection_qrm60_135>div{height:1.77083333vw!important;display:flex!important;align-items:center;line-height:var(--n-blank-height)}._collapseWrap_qrm60_145{width:98%;display:flex;flex-direction:row;align-items:flex-end}._collaoseGroup_qrm60_151{position:absolute;display:flex;align-items:center;padding-left:.41666667vw}._collaoseBtn_qrm60_157{width:1.66666667vw;height:1.66666667vw;cursor:pointer}._collaoseBtn_qrm60_157._isStart_qrm60_162{transform:rotate(-180deg)}._isHidden_qrm60_165{overflow:hidden;transition:1s all ease-in}._hideButton_qrm60_169{visibility:hidden;height:0!important;line-height:0!important}._popSelect_qrm60_174{font-size:.83333333rem;width:10.41666667vw;box-shadow:0 .10416667vw .83333333vw rgba(0,0,0,.08);border-radius:.57291667vw;--n-option-height: 1.77083333vw}._popSelect_qrm60_174 .n-base-select-option__content{width:80%!important}._spaceSection2_qrm60_184{width:100%;transition:1s all ease-in;padding-right:2.08333333vw}._textBtn_qrm60_189{background:transparent;border-radius:.41666667vw;padding:.20833333vw 1.04166667vw;font-size:.88541667rem;color:rgba(0,0,0,.6);cursor:pointer;display:flex;align-items:center;font-weight:500;line-height:1.25vw}._textBtn_qrm60_189 ._iconArrow_qrm60_201{display:inline-block;margin-left:.41666667vw;width:.41666667vw;height:.26041667vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAQBJREFUKFOVkbFOAkEQhuffCx3l7VwsNCY8wnZUNNjwCMbnMBRWJob3MD4CjTRUdvsIJEYLs7NX0pHbMUdOgnocMN1kvvlmMgM6Esx8UyMi8tqFoquYM99q0ueagcFdKfJyiD8oYuZxlXRORL2meZMZTERk0SZrFeX5hSNUS1Xt7zcBWJNmo7L88n9l/0TMPEhKb6rKrZMBMaChiKx+DdlPiqLgKmktGXQeFlhlBsMQgvxwu42stX1VWiqRO/bJ7fGJPECjGOO6yYmcc733j885qY5PkewYYHF9dTnx3m+2G1lbzJKm+7MkDWxgZjGGaSOy06T0SETZmbJkYB5iDE/f85tbC9QPlh0AAAAASUVORK5CYII=) no-repeat center center / contain;transform:rotate(180deg)}._textBtn_qrm60_189:hover,._textBtn_qrm60_189._textBtnActive_qrm60_210{background:#d2ecff;font-weight:500;color:#131415}._textBtn_qrm60_189:hover ._iconArrow_qrm60_201{transform:rotate(0)}._sectionContainer_qrm60_218{padding:1.25vw 1.66666667vw;gap:1.25vw;flex:1 auto;display:flex;flex-wrap:wrap}._sectionContainer_qrm60_218._noSearchContainer_qrm60_225{padding-top:0}._wrapList_qrm60_228{min-height:100%;height:calc(100vh - 13.75vw)}._wrapList_qrm60_228._wrapListEmpty_qrm60_232 .n-scrollbar-content{min-height:100%;display:flex;flex-direction:column}._wrapList_qrm60_228._wrapListEmpty_qrm60_232 ._empty_qrm60_237{height:100%;flex:1 auto}._empty_qrm60_237{display:flex;align-items:center;justify-content:center}._loadingWrap_qrm60_246{display:flex;justify-content:center;min-height:4.16666667vw}._loadingWrap_qrm60_246._showLoading_qrm60_251{height:0;opacity:0;min-height:0;display:none}._sectionItem_qrm60_257{display:flex;align-items:center;padding:1.04166667vw;border-radius:.625vw;width:20.9375vw;background:#f7f8f9;cursor:pointer}._sectionItem_qrm60_257 ._img_qrm60_266{width:3.125vw;height:3.125vw;background:#ddf2ff;border-radius:.41666667vw;overflow:hidden;margin-right:.83333333vw}._sectionItem_qrm60_257 ._img_qrm60_266 img{width:inherit;height:inherit}._sectionItem_qrm60_257 ._infos_qrm60_278{display:flex;flex-direction:column}._sectionItem_qrm60_257 ._infos_qrm60_278 ._topName_qrm60_282{font-weight:600;font-size:1.04166667rem;color:#131415;line-height:1.45833333vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:14.0625vw}._sectionItem_qrm60_257 ._infos_qrm60_278 ._topName_qrm60_282 span{color:#198cfe;font-weight:700}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296{display:flex;padding-top:.20833333vw}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296>div{margin-right:.20833333vw}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._hot_qrm60_303{background:#fff3f3;border-radius:.15625vw;border:1px solid rgba(254,67,67,.5);font-size:.625rem;color:#fe4343;padding:0 .26041667vw}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._hot_qrm60_303:before{content:"";display:inline-block;width:.52083333vw;height:.625vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA9lBMVEUAAAD/bGb/Ul7/bnr/VF3/Q17/TF//X1//Tl7/P1//b1n/Ol//P1//a1r/alr/OWD/UV3/Z1r/WF7/SWD/OmD/b1v/XVz/UWH/SWb/VF3/Y1v/YFr/alv/QF//ZFr/YVz/WF3/aVr/SF7/XFz/TF7/ZVr/VF3/T1z/aFr/cVn/XVz/P17/UV3/d1j/S13/c1n/V1z/aFz/OGD/XVv/Tl3/WV3/SV3/dVn/cFr/b1n/cV3/OGH/X1r/VFz/T1z/Z1n/Wlv/WFv/XFv/ZFr/V1z/UVz/Ylr/SF3/Ol//RV7/Pl7/Ql7/YVr/bFn/aVn/TF3/Sl3/cFgC4AhdAAAAPHRSTlMACjwF9qFbF/Hq593NsaOaj4BaU1NCLR8R+vr29fLr6ufm49XPx8XBvb23s62tqqaYjo2MhnlwbWBTNDJyAgToAAABBklEQVQY02XR13KDMBAF0AUb3LvjOL333ptAVCPAYPz/P5NVYSaO90lz5nLZkUBO5e5Dg7V5WDY/1/BqmWXd/+FmluW0s2ob3Kg/WMFOnlN/Ntup/bEvbv6ckBcAXTV/71LMzYnnncBjVVrtqDTHfbMUdrkR4jmOG1hhuIk0mFBfGpIV2vYrLkMv8VNhrrBFXYMnWlogrYhGcIYmCOvQiiiKDdhXdcF5H2Pc4jZsl3U69KWle3Cg6m4B4F5Y0oBruV2dbzc9jtM0SVowlL81gY/JjfVAO8ScfaFepYHGfgD0LdzEBDk3jLFnfhhW7YWu0GCsVxGnyWnxrrDdGkM5I0Ne+XQsYr8qIkCzZAWpZAAAAABJRU5ErkJggg==) no-repeat center;background-size:contain;margin-right:.15625vw;vertical-align:middle}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._hot_qrm60_303 span{line-height:1;vertical-align:text-bottom}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._sing_qrm60_325,._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._song_qrm60_326{background:#ffffff;font-size:.625rem;border-radius:.15625vw;padding:0 .20833333vw;line-height:1;display:flex;align-items:center}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._sing_qrm60_325{border:1px solid rgba(243,130,26,.5);color:#f3821a}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._song_qrm60_326{border:1px solid rgba(21,178,253,.5);color:#00adff}._sectionItem_qrm60_257 ._infos_qrm60_278 ._types_qrm60_296 ._author_qrm60_343{color:#777;font-size:.72916667rem}\n',document.head.appendChild(t);const F={xiaokuDetail:"_xiaokuDetail_qrm60_1",detailContainer:"_detailContainer_qrm60_6",inputSearch:"_inputSearch_qrm60_44",searchSection:"_searchSection_qrm60_47",searchSectionHide:"_searchSectionHide_qrm60_51",searchGroup:"_searchGroup_qrm60_57",hideItem:"_hideItem_qrm60_63",btnType:"_btnType_qrm60_69",moreSearch:"_moreSearch_qrm60_104",activeSearch:"_activeSearch_qrm60_129",teachingModal:"_teachingModal_qrm60_132",spaceSection:"_spaceSection_qrm60_135",collapseWrap:"_collapseWrap_qrm60_145",collaoseGroup:"_collaoseGroup_qrm60_151",collaoseBtn:"_collaoseBtn_qrm60_157",isStart:"_isStart_qrm60_162",isHidden:"_isHidden_qrm60_165",hideButton:"_hideButton_qrm60_169",popSelect:"_popSelect_qrm60_174",spaceSection2:"_spaceSection2_qrm60_184",textBtn:"_textBtn_qrm60_189",iconArrow:"_iconArrow_qrm60_201",textBtnActive:"_textBtnActive_qrm60_210",sectionContainer:"_sectionContainer_qrm60_218",noSearchContainer:"_noSearchContainer_qrm60_225",wrapList:"_wrapList_qrm60_228",wrapListEmpty:"_wrapListEmpty_qrm60_232",empty:"_empty_qrm60_237",loadingWrap:"_loadingWrap_qrm60_246",showLoading:"_showLoading_qrm60_251",sectionItem:"_sectionItem_qrm60_257",img:"_img_qrm60_266",infos:"_infos_qrm60_278",topName:"_topName_qrm60_282",types:"_types_qrm60_296",hot:"_hot_qrm60_303",sing:"_sing_qrm60_325",song:"_song_qrm60_326",author:"_author_qrm60_343"};function T(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!_(e)}const Q=n({name:"ChildNodeSearch",props:{activeRow:{type:Object,default:()=>({})},list:{type:Array,default:()=>[]}},emits:["selectChildTag"],setup(e,{emit:t}){const{activeRow:a}=d(e),n=A({});return g((()=>e.activeRow),(()=>{a.value=e.activeRow,n.value={}})),()=>o(h,null,[a.value?.id&&o(h,null,[o(l,{label:a.value.columnName+":"},{default:()=>[o(c,{class:F.spaceSection},{default:()=>[a.value?.children.map((e=>o("span",{class:[F.textBtn,(a.value.activeIndex||"")==e.id&&F.textBtnActive],onClick:()=>{let i;a.value.activeIndex=e.id;let r="";e.children?(i=[{columnName:e.children[0].columnName,name:"全部",id:""},...e.children],r=e.children[0].columnName,n.value={...e,columnName:r,activeIndex:"",children:i}):n.value={},t("selectChildTag",a.value.activeIndex)}},[e.name])))]})]}),o(Q,{activeRow:n.value,onSelectChildTag:e=>{t("selectChildTag",e||a.value.activeIndex)}},null)])])}}),N=n({name:"search-group",emits:["search","add"],expose:["init"],setup(e,{emit:t}){const a=q(),n=i({musicTagIds:"",audioPlayTypes:"",bookVersionId:null,subjectId:null}),_=i({showMore:!1,tempSubjectId:null}),d=i({audioPlayTypeList:[],selectParents:{},newTags:[],tags:[],tagActiveId:"",tagActive:{},childSelectId:null}),A=()=>{t("search",{...n,subjectId:"SING"!==n.audioPlayTypes?n.subjectId:null,audioPlayTypes:n.audioPlayTypes?"PLAY_SING"===n.audioPlayTypes?["PLAY","SING"]:[n.audioPlayTypes]:[],bookVersionId:d.childSelectId||d.tagActiveId})},g=()=>{_.showMore=!_.showMore},h=e=>{const t={};return e?.forEach((e=>{e.id===n.subjectId&&(t.selected=!0,t.name=e.name)})),t};return r((async()=>{const e=Object.keys(C).map((e=>({value:e,name:C[e]})));d.audioPlayTypeList=[{name:"全部",value:""},...e],await(async()=>{try{const e=(await y()).data||[];d.newTags=[{name:"全部",id:""},...e.map((e=>({name:e.name,id:e.id})))]}catch{}})(),await a.getMusicTagTreeApi(),(()=>{const e=a.getMusicTagTree;d.tags=[{columnName:e[0].columnName,name:"全部",id:""},...e],d.tagActiveId=d.tags[0].id})(),await a.getSubjects(),(()=>{const e=a.getSubjectInstrumentOnly;if(e.length>0){const t=e[0];t.instruments&&t.instruments.length>1?(_.tempSubjectId=t.instruments[0]?.value,n.subjectId=t.instruments[0]?.value):n.subjectId=t.value}})(),A()})),()=>{let e,t,i,r;return o("div",{class:F.searchGroup},[o(s,{labelAlign:"left",labelPlacement:"left"},{default:()=>[d.newTags.length>0&&o(l,{label:"标签:"},{default:()=>[o(c,{class:F.spaceSection},T(e=d.newTags.map((e=>o("span",{class:[F.textBtn,n.musicTagIds===e.id&&F.textBtnActive],onClick:()=>{n.musicTagIds=e.id,A()}},[e.name]))))?e:{default:()=>[e]})]}),d.tags.length>0&&o(l,{label:d.tags[0]?.columnName+":"},{default:()=>[o(c,{class:F.spaceSection},T(t=d.tags.map((e=>o("span",{class:[F.textBtn,d.tagActiveId===e.id&&F.textBtnActive],onClick:()=>{(e=>{let t;d.tagActiveId=e.id,d.childSelectId=null;let a="";e.children?(t=[{columnName:e.children[0].columnName,name:"全部",id:""},...e.children],a=e.children[0].columnName,d.selectParents={...e,columnName:a,activeIndex:"",children:t}):d.selectParents={},A()})(e)}},[e.name]))))?t:{default:()=>[t]})]}),o(Q,{activeRow:d.selectParents,onSelectChildTag:e=>{d.childSelectId=e,A()}},null),o(l,{label:"场景:",class:!_.showMore&&F.hideItem},{default:()=>[o(c,{class:F.spaceSection},T(i=d.audioPlayTypeList.map((e=>o("span",{class:[F.textBtn,n.audioPlayTypes===e.value&&F.textBtnActive],onClick:()=>{n.audioPlayTypes=e.value,A()}},[e.name]))))?i:{default:()=>[i]})]}),"SING"!==n.audioPlayTypes&&o(l,{label:"乐器:",class:!_.showMore&&F.hideItem},{default:()=>[o(c,{class:F.spaceSection},T(r=a.getSubjectInstrumentOnly.map((e=>e.instruments&&e.instruments.length>1?o(m,{options:e.instruments,trigger:"hover",scrollable:!0,value:_.tempSubjectId,"onUpdate:value":[e=>_.tempSubjectId=e,()=>{n.subjectId=_.tempSubjectId,A()}],key:e.value,class:[F.popSelect]},{default:()=>[o("span",{class:[F.textBtn,h(e.instruments).selected&&F.textBtnActive]},[h(e.instruments).name||e.name,o("i",{class:F.iconArrow},null)])]}):o("span",{class:[F.textBtn,n.subjectId===e.value&&F.textBtnActive],onClick:()=>{n.subjectId=e.value,_.tempSubjectId=null,A()}},[e.name]))))?r:{default:()=>[r]})]})]}),o("div",{class:[F.moreSearch,_.showMore?F.activeSearch:""],onClick:g},[_.showMore?"收起选项":"展开更多"])])}}});e("default",n({name:"xiaoku-detail",setup(){p();const e=A([{name:"AI学练",path:"/xiaoku-list"},{name:"全部曲目",path:""}]),t=i({page:1,rows:24,status:!0,searchType:""}),n=i({loading:!0,finshed:!1,reshing:!1,tabName:"",list:[],allSearch:{name:"",musicTagIds:"",audioPlayTypes:null,bookVersionId:null,subjectId:null},hotSearch:{name:""},newSearch:{name:""},recommendSearch:{name:""}}),s=u((()=>"RECOMMEND"===n.tabName?n.recommendSearch.name:"HOT"===n.tabName?n.hotSearch.name:"NEW"===n.tabName?n.newSearch.name:n.allSearch.name)),l=A(),c=async()=>{n.loading=!0;let e={};try{const{...a}=t;let i={...a,searchType:n.tabName};if("RECOMMEND"===n.tabName)i=Object.assign(i,n.recommendSearch);else if("HOT"===n.tabName)i=Object.assign(i,n.hotSearch);else if("NEW"===n.tabName)i=Object.assign(i,n.newSearch);else{i.name=n.allSearch.name;const{audioPlayTypes:e,...t}=n.allSearch;i=Object.assign(i,{...t}),i.audioPlayTypes=e?"PLAY_SING"===e?["PLAY","SING"]:[e]:[]}e=await B(i)}catch(a){console.log(a)}n.reshing&&(n.list=[],n.reshing=!1),200===e?.code&&Array.isArray(e?.data?.rows)?((e?.data?.rows||[]).forEach((e=>{e.audioPlayTypeArray=e.audioPlayTypes?e.audioPlayTypes.split(","):[]})),n.list=[...n.list,...e.data.rows],n.finshed=t.page>=e.data.pages):n.finshed=!0,n.loading=!1},m=()=>{new IntersectionObserver((e=>{e[0].intersectionRatio>0&&(n.loading||n.finshed||(t.page=t.page+1,c()))})).observe(l.value)};return r((async()=>{m()})),()=>o("div",{class:F.xiaokuDetail},[o(a,{list:e.value},null),o("div",{class:F.detailContainer},[o(v,{paneClass:F.paneTitle,justifyContent:"start",paneWrapperClass:F.paneWrapperContainer,value:n.tabName,"onUpdate:value":[e=>n.tabName=e,e=>{t.page=1,n.finshed=!1,n.reshing=!0,n.list=[],c(),m()}]},{default:()=>[o(f,{name:"",tab:"全部曲目"},null),o(f,{name:"RECOMMEND",tab:"推荐曲目"},null),o(f,{name:"HOT",tab:"热门曲目"},null),o(f,{name:"NEW",tab:"最新曲目"},null)],suffix:()=>o(E,{placeholder:"请输入曲目名称",round:!0,value:s.value,class:F.inputSearch,onSearch:e=>{"RECOMMEND"===n.tabName?n.recommendSearch.name=e:"HOT"===n.tabName?n.hotSearch.name=e:"NEW"===n.tabName?n.newSearch.name=e:n.allSearch.name=e,t.page=1,n.finshed=!1,n.list=[],c()}},null)}),o(x,{class:[[F.wrapList,!n.loading&&0===n.list.length&&F.wrapListEmpty]]},{default:()=>[o("div",{class:[F.searchSection,n.tabName?F.searchSectionHide:""]},[o(N,{onSearch:e=>{(async e=>{t.page=1,n.reshing=!0,n.finshed=!1;const{subjectId:a,...i}=e;n.allSearch=Object.assign(n.allSearch,{...i,musicalInstrumentId:a,subjectId:null}),c()})(e)}},null)]),n.list.length>0&&o("div",{class:[F.sectionContainer,n.tabName&&F.noSearchContainer]},[n.list.map((e=>o("div",{class:F.sectionItem},[o("div",{class:F.img},[o("img",{referrerpolicy:"no-referrer",src:e.titleImg},null)]),o("div",{class:F.infos},[o("div",{class:F.topName},[e.musicSheetName]),o("div",{class:F.types},[o("div",{class:F.hot},[o("span",null,[S(e.usedNum)])]),e.audioPlayTypes?.includes("SING")&&o("div",{class:F.sing},[b("演唱")]),e.audioPlayTypes?.includes("PLAY")&&o("div",{class:F.song},[b("演奏")]),o("div",{class:F.author},[e.composer])])])])))]),o("div",{ref:l,class:[F.loadingWrap,n.finshed&&F.showLoading]},[o(w,{show:!0},null)]),!n.loading&&0===n.list.length&&o("div",{class:F.empty},[o(I,null,null)])]})])])}}))}}}));