index-legacy.cb1fff2e.js 3.3 KB

1
  1. System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.bbc2b10e.js","./index-legacy.8dc03ed3.js","./index-legacy.096e9cc4.js","./header-legacy.c9f714d5.js","./music-legacy.33d8b690.js","./hooks-legacy.f81762aa.js","./index-legacy.c07bb851.js","./use-tab-status-legacy.1f35f332.js","./index-legacy.6a5df59c.js","./index-legacy.7e047c4c.js","./index-legacy.183eabe8.js","./use-id-legacy.54528695.js","./use-refs-legacy.82f31dee.js","./index-legacy.897f3849.js","./index-legacy.610f0a70.js","./index-legacy.78ce4f6b.js","./select-subject-legacy.71ec8501.js","./index-legacy.a85d660d.js","./index-legacy.fc9acec5.js","./index-legacy.b6bb491f.js","./index-legacy.4a75d877.js","./icon-xin-legacy.4bf69856.js","./index-legacy.87bcd48f.js","./index-legacy.4f8bc5f4.js","./index-legacy.97f6ac87.js","./select-tag-legacy.60962399.js","./index-legacy.5e551733.js","./index-legacy.4e5c868b.js","./index-legacy.6e10cd37.js","./index-legacy.af745e4d.js","./index-legacy.c6de691c.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 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(),v=i(e.query.keyword||""),b=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;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=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:v.value,tagids:b.value,albumTagIds:b.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:v.value,tagids:b.value,musicTagIds:b.value,subjectIds:m.value}},null)])}}}))}}}));