System.register(["./index-legacy.2562bdba.js","./index-legacy.1f1e6dc3.js","./index-legacy.a3bb139e.js","./index-legacy.039d11bf.js","./header-legacy.b1128080.js","./music-legacy.161b0e26.js","./hooks-legacy.4a4d2e12.js","./index-legacy.da89f2f1.js","./index-legacy.e6740abe.js","./use-tab-status-legacy.f4341042.js","./index-legacy.b85658dd.js","./index-legacy.b550cfe2.js","./index-legacy.2eb6777c.js","./use-id-legacy.d6f0d8ea.js","./use-refs-legacy.7602bd51.js","./index-legacy.c90df848.js","./index-legacy.af0efc4c.js","./index-legacy.5831e2a1.js","./select-subject-legacy.0ea59b19.js","./index-legacy.6018f988.js","./index-legacy.a6dcab41.js","./index-legacy.76921e21.js","./index-legacy.523bef85.js","./icon-xin-legacy.34fb9986.js","./index-legacy.83ebfae8.js","./index-legacy.71094bb0.js","./index-legacy.427d5c45.js","./select-tag-legacy.3a92c1c8.js","./index-legacy.62fda932.js","./index-legacy.c495ac4d.js","./index-legacy.6e10cd37.js","./index-legacy.c08b825f.js","./index-legacy.9ca4eeac.js","./icon_uploader-legacy.b178a553.js","./icon_album-legacy.27017c0f.js","./icon_album_active-legacy.fcd6f4c0.js","./icon_exquisite-legacy.80eb242a.js","./icon_music_active-legacy.77693573.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var n,c,a,i,u,l,f,t,s,o,d,g,r,j,y;return{setters:[function(e){n=e.d,c=e.O,a=e.P,i=e.S,u=e.U,l=e.bD,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(){},function(){},function(){}],execute:function(){e("default",n({name:"MusicSearch",emits:["confirm"],setup:function(){localStorage.setItem("behaviorId",r());var e=c(),n=a(),b=i(e.query.keyword||""),v=i(e.query.tagids||""),m=i(),x=i(!1),h=t("music-search",[]),S=i("songe"),I=j(y.SEARCH);m.value=I.id;var p=function(e){var n,c;b.value=e;var a=h.value.indexOf(e);a>-1&&h.value.splice(a,1),e&&(h.value.unshift(e),h.value.length=Math.min(h.value.length,5)),null===(n=(c=("album"===S.value?C:T).value).onSearch)||void 0===n||n.call(c,e)},_=function(e){var n,c,a=Object.values(e).flat().filter(Boolean).join(",");v.value=a,null===(n=(c=("album"===S.value?C:T).value).onComfirm)||void 0===n||n.call(c,e),x.value=!1},q=function(e){var n,c;m.value=e.id,null===(n=(c=("album"===S.value?C:T).value).onComfirmSubject)||void 0===n||n.call(c,e)},C=i(null),T=i(null),k=function(e){S.value=e};return u((function(){d.on("changeTab",k),d.on("search",p),d.on("confirm",_),d.on("confirmSubject",q)})),l((function(){d.off("changeTab",k),d.off("search",p),d.off("confirm",_),d.off("confirmSubject",q)})),function(){return f("div",{class:g.search},["album"===S.value?f(s,{hideSearch:!0,ref:C,defauleParams:{search:b.value,tagids:v.value,albumTagIds:v.value,subjectIds:m.value}},null):f(o,{hideSearch:!0,ref:T,onItemClick:function(c){n.push({path:"/music-detail",query:{id:c.id,albumId:e.params.id}})},defauleParams:{search:b.value,tagids:v.value,musicTagIds:v.value,subjectIds:m.value}},null)])}}}))}}}));
