System.register(["./ResizeObserver.es-legacy.bb3fc8a7.js","./index-legacy.8785c82f.js","./index-legacy.a61d6919.js","./index-legacy.b4fec800.js","./header-legacy.39548ddf.js","./music-legacy.b22571da.js","./hooks-legacy.4ded6f98.js","./index-legacy.149f3f64.js","./use-tab-status-legacy.3bc0fa08.js","./index-legacy.4ffb1bc3.js","./index-legacy.80ef726b.js","./index-legacy.9d80b290.js","./use-id-legacy.dfefd685.js","./use-refs-legacy.5e8345f3.js","./index-legacy.b8f5f1f3.js","./index-legacy.b5d1f27c.js","./index-legacy.67c7d1bf.js","./select-subject-legacy.0a108e8c.js","./index-legacy.1838cb67.js","./index-legacy.9135426b.js","./index-legacy.e2dd8185.js","./index-legacy.f3ef216d.js","./icon-xin-legacy.18db2827.js","./index-legacy.42480338.js","./index-legacy.980e36ce.js","./index-legacy.13113367.js","./select-tag-legacy.3bc07a35.js","./index-legacy.bd5e393f.js","./index-legacy.8c26c903.js","./index-legacy.6e10cd37.js","./index-legacy.984b93a5.js","./index-legacy.37e60549.js","./icon_uploader-legacy.09ab66b0.js","./icon_album-legacy.0b7fa6a4.js","./icon_album_active-legacy.dd76f79c.js","./icon_exquisite-legacy.33a94348.js","./icon_music_active-legacy.86ed23f9.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.P,a=e.Q,i=e.U,u=e.V,l=e.bi,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(){}],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)])}}}))}}}));
