index-legacy.d9d76e14.js 3.3 KB

1
  1. System.register(["./index-legacy.fba2875c.js","./index-legacy.33680739.js","./index-legacy.974e0a25.js","./index-legacy.245d2f05.js","./header-legacy.c11a5491.js","./music-legacy.4cbbd879.js","./hooks-legacy.148eb332.js","./index-legacy.edb65d0c.js","./index-legacy.a7012d0a.js","./use-tab-status-legacy.8752ccde.js","./index-legacy.af00a324.js","./index-legacy.5aeab789.js","./use-id-legacy.db87b112.js","./use-refs-legacy.2affcb61.js","./index-legacy.fc679d65.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./select-subject-legacy.38c54f06.js","./index-legacy.78361179.js","./index-legacy.e6c10c75.js","./index-legacy.1c1cdc6c.js","./index-legacy.d92f7da7.js","./icon-xin-legacy.18ed4a9d.js","./select-tag-legacy.467b7514.js","./index-legacy.45490234.js","./index-legacy.32d1c54d.js","./index-legacy.6e10cd37.js","./index-legacy.94e5c17b.js","./index.module-legacy.7ae59c2a.js","./index-legacy.da4067bb.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","./index-legacy.e7460ea1.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./mitt-legacy.d2fe1d8d.js"],(function(e){"use strict";var c,n,a,u,i,l,t,s,o,f,d,g,j,r,y;return{setters:[function(e){c=e.d,n=e.O,a=e.P,u=e.S,i=e.U,l=e.bC,t=e.j},function(e){s=e.c},function(e){o=e.default},function(e){f=e.default},function(e){d=e.m,g=e.s},function(e){j=e.g},function(e){r=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(){},function(){},function(){}],execute:function(){e("default",c({name:"MusicSearch",emits:["confirm"],setup:function(){localStorage.setItem("behaviorId",j());var e=n(),c=a(),v=u(e.query.keyword||""),b=u(e.query.tagids||""),m=u(),x=u(!1),h=s("music-search",[]),S=u("songe"),I=r(y.SEARCH);m.value=I.id;var p=function(e){var c,n;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===(c=(n=("album"===S.value?q:T).value).onSearch)||void 0===c||c.call(n,e)},_=function(e){var c,n,a=Object.values(e).flat().filter(Boolean).join(",");b.value=a,null===(c=(n=("album"===S.value?q:T).value).onComfirm)||void 0===c||c.call(n,e),x.value=!1},C=function(e){var c,n;m.value=e.id,null===(c=(n=("album"===S.value?q:T).value).onComfirmSubject)||void 0===c||c.call(n,e)},q=u(null),T=u(null),k=function(e){S.value=e};return i((function(){d.on("changeTab",k),d.on("search",p),d.on("confirm",_),d.on("confirmSubject",C)})),l((function(){d.off("changeTab",k),d.off("search",p),d.off("confirm",_),d.off("confirmSubject",C)})),function(){return t("div",{class:g.search},["album"===S.value?t(o,{hideSearch:!0,ref:q,defauleParams:{search:v.value,tagids:b.value,albumTagIds:b.value,subjectIds:m.value}},null):t(f,{hideSearch:!0,ref:T,onItemClick:function(n){c.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)])}}}))}}}));