System.register(["./ResizeObserver.es-legacy.5b47f92b.js","./index-legacy.40a7d43e.js","./index-legacy.18f626d0.js","./index-legacy.b893103c.js","./header-legacy.76776e1b.js","./music-legacy.395436bb.js","./hooks-legacy.8425e14f.js","./index-legacy.d82effde.js","./use-tab-status-legacy.3c2ae760.js","./index-legacy.baada8e3.js","./index-legacy.3c9ddca0.js","./index-legacy.9245a6f9.js","./use-id-legacy.06255fee.js","./use-refs-legacy.4d303b22.js","./index-legacy.c3464ae8.js","./index-legacy.81d1573d.js","./index-legacy.4ffeb408.js","./select-subject-legacy.c41ba10a.js","./index-legacy.239a53d5.js","./index-legacy.cd326cc2.js","./index-legacy.ee67a162.js","./index-legacy.933dc860.js","./icon-xin-legacy.18ed4a9d.js","./index-legacy.5dda57aa.js","./index-legacy.ab1c8461.js","./select-tag-legacy.19a3434f.js","./index-legacy.17d6478d.js","./index-legacy.a53b994a.js","./index-legacy.6e10cd37.js","./index-legacy.036e8e39.js","./index-legacy.ceacfd1b.js","./icon_uploader-legacy.db3a8c90.js","./icon_album-legacy.d489a774.js","./icon_album_active-legacy.d2829e23.js","./icon_exquisite-legacy.178b582f.js","./icon_music_active-legacy.cc68af68.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var n,a,c,u,i,l,t,s,f,o,d,g,r,j,y;return{setters:[function(e){n=e.d,a=e.Q,c=e.S,u=e.V,i=e.W,l=e.bk,t=e.j},function(e){s=e.d},function(e){f=e.default},function(e){o=e.default},function(e){d=e.m,g=e.s},function(e){r=e.g},function(e){j=e.b,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=s("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:C).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:C).value).onComfirm)||void 0===n||n.call(a,e),x.value=!1},k=function(e){var n,a;m.value=e.id,null===(n=(a=("album"===S.value?q:C).value).onComfirmSubject)||void 0===n||n.call(a,e)},q=u(null),C=u(null),T=function(e){S.value=e};return i((function(){d.on("changeTab",T),d.on("search",p),d.on("confirm",_),d.on("confirmSubject",k)})),l((function(){d.off("changeTab",T),d.off("search",p),d.off("confirm",_),d.off("confirmSubject",k)})),function(){return t("div",{class:g.search},["album"===S.value?t(f,{hideSearch:!0,ref:q,defauleParams:{search:v.value,tagids:b.value,albumTagIds:b.value,subjectIds:m.value}},null):t(o,{hideSearch:!0,ref:C,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)])}}}))}}}));
