1 |
- System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.4bad5b90.js","./index-legacy.35786fdc.js","./index-legacy.299ac30b.js","./header-legacy.ea8daf51.js","./music-legacy.67d06212.js","./hooks-legacy.5cc9e329.js","./index-legacy.43e69380.js","./use-tab-status-legacy.d7434e0b.js","./index-legacy.3ccba950.js","./index-legacy.9d5cae73.js","./index-legacy.cf09c997.js","./use-id-legacy.ef8b5e97.js","./use-refs-legacy.d925b49f.js","./index-legacy.bdbc14c4.js","./index-legacy.c8c5bc4e.js","./index-legacy.cae55a25.js","./select-subject-legacy.3ce6058e.js","./index-legacy.9d25098b.js","./index-legacy.356b35d8.js","./index-legacy.0b3e1f8d.js","./index-legacy.4be048cf.js","./icon-xin-legacy.4bf69856.js","./index-legacy.6ac2a941.js","./index-legacy.9696a579.js","./index-legacy.404bfef6.js","./select-tag-legacy.b87b4746.js","./index-legacy.39123961.js","./index-legacy.23131301.js","./index-legacy.6e10cd37.js","./index-legacy.b257cee5.js","./index-legacy.ecec5f0d.js","./icon_uploader-legacy.6fd22d7f.js","./icon_album-legacy.06fe8c1c.js","./icon_album_active-legacy.4391adb4.js","./icon_exquisite-legacy.24bc10bb.js","./icon_music_active-legacy.51780227.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var c,n,a,i,u,l,t,s,f,o,d,g,r,b,j;return{setters:[function(e){c=e.d,n=e.P,a=e.Q,i=e.U,u=e.V,l=e.bi,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){b=e.a,j=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",c({name:"MusicSearch",emits:["confirm"],setup:function(){localStorage.setItem("behaviorId",r());var e=n(),c=a(),y=i(e.query.keyword||""),v=i(e.query.tagids||""),m=i(),x=i(!1),h=s("music-search",[]),S=i("songe"),I=b(j.SEARCH);m.value=I.id;var p=function(e){var c,n;y.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===(c=(n=("album"===S.value?C:T).value).onSearch)||void 0===c||c.call(n,e)},_=function(e){var c,n,a=Object.values(e).flat().filter(Boolean).join(",");v.value=a,null===(c=(n=("album"===S.value?C:T).value).onComfirm)||void 0===c||c.call(n,e),x.value=!1},q=function(e){var c,n;m.value=e.id,null===(c=(n=("album"===S.value?C:T).value).onComfirmSubject)||void 0===c||c.call(n,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 t("div",{class:g.search},["album"===S.value?t(f,{hideSearch:!0,ref:C,defauleParams:{search:y.value,tagids:v.value,albumTagIds:v.value,subjectIds:m.value}},null):t(o,{hideSearch:!0,ref:T,onItemClick:function(n){c.push({path:"/music-detail",query:{id:n.id,albumId:e.params.id}})},defauleParams:{search:y.value,tagids:v.value,musicTagIds:v.value,subjectIds:m.value}},null)])}}}))}}}));
|