index-legacy.a4aa0d35.js 3.3 KB

1
  1. System.register(["./ResizeObserver.es-legacy.9ef5ac8c.js","./index-legacy.91eef022.js","./index-legacy.a506f939.js","./index-legacy.e7d0a67a.js","./header-legacy.2839c4aa.js","./music-legacy.bce575bd.js","./hooks-legacy.b4b15558.js","./index-legacy.63f64e9b.js","./use-tab-status-legacy.257600f9.js","./index-legacy.49dc34f1.js","./index-legacy.68eb7f39.js","./index-legacy.75e14135.js","./use-id-legacy.4538a8e2.js","./use-refs-legacy.c67c62a4.js","./index-legacy.46228add.js","./index-legacy.e9381954.js","./index-legacy.b5b73462.js","./select-subject-legacy.269d1651.js","./index-legacy.31c9aada.js","./index-legacy.345f7a0c.js","./index-legacy.75981fe0.js","./index-legacy.8802e914.js","./icon-xin-legacy.785d3d33.js","./index-legacy.402479d8.js","./index-legacy.3c7372ae.js","./index-legacy.c8a6f2fa.js","./select-tag-legacy.27bb95b8.js","./index-legacy.cb998bd0.js","./index-legacy.5893ff71.js","./index-legacy.6e10cd37.js","./index-legacy.40bbaa1c.js","./index-legacy.894a9ef9.js","./icon_uploader-legacy.99fa0203.js","./icon_album-legacy.498b9a9b.js","./icon_album_active-legacy.890b9402.js","./icon_exquisite-legacy.ccb5dcc0.js","./icon_music_active-legacy.aba070d7.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.P,c=e.Q,u=e.U,i=e.V,l=e.bE,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.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=a(),n=c(),b=u(e.query.keyword||""),v=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;b.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?C:T).value).onSearch)||void 0===n||n.call(a,e)},_=function(e){var n,a,c=Object.values(e).flat().filter(Boolean).join(",");v.value=c,null===(n=(a=("album"===S.value?C:T).value).onComfirm)||void 0===n||n.call(a,e),x.value=!1},q=function(e){var n,a;m.value=e.id,null===(n=(a=("album"===S.value?C:T).value).onComfirmSubject)||void 0===n||n.call(a,e)},C=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",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:b.value,tagids:v.value,albumTagIds:v.value,subjectIds:m.value}},null):t(o,{hideSearch:!0,ref:T,onItemClick:function(a){n.push({path:"/music-detail",query:{id:a.id,albumId:e.params.id}})},defauleParams:{search:b.value,tagids:v.value,musicTagIds:v.value,subjectIds:m.value}},null)])}}}))}}}));