System.register(["./index-legacy.c4ab9154.js","./index-legacy.caffb068.js","./index-legacy.8349c4e9.js","./header-legacy.b8b4153a.js","./index-legacy.088d07fe.js","./music-legacy.9249ee25.js","./hooks-legacy.dea977fc.js","./index-legacy.9aa10d4d.js","./index-legacy.3abdbbf5.js","./use-tab-status-legacy.b0470cbd.js","./index-legacy.7027cde5.js","./index-legacy.162d13ca.js","./use-id-legacy.a726c7df.js","./use-refs-legacy.28371c35.js","./index-legacy.82775a91.js","./index-legacy.958bfabf.js","./index-legacy.fc0040e4.js","./select-subject-legacy.6e758e61.js","./index-legacy.47f904f4.js","./index-legacy.cb581011.js","./index-legacy.55bc6c4c.js","./index-legacy.d77a1394.js","./icon-xin-legacy.74dde3a9.js","./select-tag-legacy.b1a7483d.js","./index-legacy.ab524b39.js","./index-legacy.062d49e9.js","./index-legacy.6e10cd37.js","./index-legacy.8097d188.js","./index.module-legacy.7ae59c2a.js","./index-legacy.119cfae5.js","./icon_uploader-legacy.bc9240d0.js","./icon_exquisite-legacy.474c5c17.js","./icon_album_active-legacy.fe16b618.js","./icon_music_active-legacy.3c4f03a5.js","./index-legacy.6168d53d.js","./index-legacy.e7620068.js","./use-height-legacy.166530e2.js","./index-legacy.c610561c.js"],(function(e){"use strict";var n,c,a,u,i,l,t,s,f,o,d,g,r,j,y;return{setters:[function(e){n=e.c},function(e){c=e.default},function(e){a=e.default},function(e){u=e.m,i=e.s},function(e){l=e.d,t=e.L,s=e.M,f=e.O,o=e.P,d=e.bz,g=e.i},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(){}],execute:function(){e("default",l({name:"MusicSearch",emits:["confirm"],setup:function(){localStorage.setItem("behaviorId",r());var e=t(),l=s(),v=f(e.query.keyword||""),b=f(e.query.tagids||""),m=f(),x=f(!1),h=n("music-search",[]),S=f("songe"),I=j(y.SEARCH);m.value=I.id;var p=function(e){var n,c;v.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(",");b.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=f(null),T=f(null),k=function(e){S.value=e};return o((function(){u.on("changeTab",k),u.on("search",p),u.on("confirm",_),u.on("confirmSubject",q)})),d((function(){u.off("changeTab",k),u.off("search",p),u.off("confirm",_),u.off("confirmSubject",q)})),function(){return g("div",{class:i.search},["album"===S.value?g(c,{hideSearch:!0,ref:C,defauleParams:{search:v.value,tagids:b.value,albumTagIds:b.value,subjectIds:m.value}},null):g(a,{hideSearch:!0,ref:T,onItemClick:function(n){l.push({path:"/music-detail",query:{id:n.id,albumId:e.params.id}})},defauleParams:{search:v.value,tagids:b.value,musicTagIds:b.value,subjectIds:m.value}},null)])}}}))}}}));
