System.register(["./index-legacy.77fd7daf.js","./index-legacy.3aa427b0.js","./index-legacy.3ac334c0.js","./index-legacy.7f5ff43e.js","./header-legacy.df077dbf.js","./music-legacy.571c53b0.js","./hooks-legacy.eeb437e3.js","./index-legacy.5fb6b8d3.js","./use-tab-status-legacy.f1ce0ec9.js","./index-legacy.c6503c7a.js","./index-legacy.d57a9644.js","./index-legacy.78f6e587.js","./use-id-legacy.4a1010a1.js","./use-refs-legacy.1266fefa.js","./index-legacy.be62956a.js","./index-legacy.2393a936.js","./index-legacy.33c6b81d.js","./select-subject-legacy.fb2a28ab.js","./index-legacy.586e7b6f.js","./index-legacy.fde28a96.js","./index-legacy.b8a6c89b.js","./index-legacy.16d6e7da.js","./icon-xin-legacy.576942b1.js","./index-legacy.6d038ac6.js","./index-legacy.140ee8f4.js","./select-tag-legacy.c05bc12b.js","./index-legacy.74c71eea.js","./index-legacy.8742752a.js","./index-legacy.6e10cd37.js","./index-legacy.a27f9f23.js","./index-legacy.af8bd716.js","./icon_uploader-legacy.2d017c5c.js","./icon_album-legacy.dfe53748.js","./icon_album_active-legacy.14486289.js","./icon_exquisite-legacy.37947ae4.js","./icon_music_active-legacy.78521af9.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var n,a,c,u,i,l,f,t,s,o,d,g,r,j,y;return{setters:[function(e){n=e.d,a=e.O,c=e.P,u=e.S,i=e.U,l=e.bC,f=e.j},function(e){t=e.d},function(e){s=e.default},function(e){o=e.default},function(e){d=e.m,g=e.s},function(e){r=e.g},function(e){j=e.a,y=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",n({name:"MusicSearch",emits:["confirm"],setup:function(){localStorage.setItem("behaviorId",r());var e=a(),n=c(),v=u(e.query.keyword||""),b=u(e.query.tagids||""),m=u(),x=u(!1),h=t("music-search",[]),S=u("songe"),I=j(y.SEARCH);m.value=I.id;var p=function(e){var n,a;v.value=e;var c=h.value.indexOf(e);c>-1&&h.value.splice(c,1),e&&(h.value.unshift(e),h.value.length=Math.min(h.value.length,5)),null===(n=(a=("album"===S.value?q:T).value).onSearch)||void 0===n||n.call(a,e)},_=function(e){var n,a,c=Object.values(e).flat().filter(Boolean).join(",");b.value=c,null===(n=(a=("album"===S.value?q:T).value).onComfirm)||void 0===n||n.call(a,e),x.value=!1},C=function(e){var n,a;m.value=e.id,null===(n=(a=("album"===S.value?q:T).value).onComfirmSubject)||void 0===n||n.call(a,e)},q=u(null),T=u(null),k=function(e){S.value=e};return i((function(){d.on("changeTab",k),d.on("search",p),d.on("confirm",_),d.on("confirmSubject",C)})),l((function(){d.off("changeTab",k),d.off("search",p),d.off("confirm",_),d.off("confirmSubject",C)})),function(){return f("div",{class:g.search},["album"===S.value?f(s,{hideSearch:!0,ref:q,defauleParams:{search:v.value,tagids:b.value,albumTagIds:b.value,subjectIds:m.value}},null):f(o,{hideSearch:!0,ref:T,onItemClick:function(a){n.push({path:"/music-detail",query:{id:a.id,albumId:e.params.id}})},defauleParams:{search:v.value,tagids:b.value,musicTagIds:b.value,subjectIds:m.value}},null)])}}}))}}}));
