diff --git a/package.json b/package.json index ecef678..8d42582 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deemix-webui", - "version": "1.8.10", + "version": "1.8.11", "scripts": { "clean": "rimraf public/js/bundle.js public/js/bundle.temp.js public/js/bundle.js.map", "clean-temp": "rimraf public/js/bundle.temp.js", diff --git a/public/js/bundle.js b/public/js/bundle.js index c90215c..0a0df0a 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -3011,7 +3011,7 @@ a { `+e._s(e.$t("about.appStatus."+(e.isOnline?"online":"offline")))+` `)])]),e._v(" "),n("ul",[n("li",[e._v(` `+e._s(e.$t("about.updates.currentWebuiVersion"))+`: - `),n("span",[e._v(e._s("1.8.10"))])]),e._v(" "),n("li",[e._v(` + `),n("span",[e._v(e._s("1.8.11"))])]),e._v(" "),n("li",[e._v(` `+e._s(e.$t("about.updates.currentVersion"))+`: `),n("span",[e._v(e._s(e.current||e.$t("about.updates.versionNotAvailable")))])]),e._v(" "),n("li",[e._v(e._s(e.$t("about.updates.deemixVersion"))+": "+e._s(e.deemixVersion))]),e._v(" "),e.updateAvailable&&e.latest?n("li",[e._v(e._s(e.$t("about.updates.updateAvailable",{version:e.latest})))]):e._e()]),e._v(" "),n("ul",[n("li",{domProps:{innerHTML:e._s(e.$t("about.usesLibrary"))}}),e._v(" "),n("li",{domProps:{innerHTML:e._s(e.$t("about.thanks"))}}),e._v(" "),n("i18n",{attrs:{path:"about.upToDate.text",tag:"li"},scopedSlots:e._u([{key:"newsChannel",fn:function(){return[n("a",{attrs:{href:"https://tg.deemix.app",target:"_blank"}},[e._v(e._s(e.$t("about.upToDate.newsChannel")))])]},proxy:!0}])})],1),e._v(" "),n("h2",[e._v(e._s(e.$t("about.titles.usefulLinks")))]),e._v(" "),n("ul",{staticClass:"no-dots"},[n("li",[n("a",{attrs:{href:"https://git.freezer.life/RemixDev/deemix-js",target:"_blank"}},[e._v("\u{1F680} "+e._s(e.$t("about.officialRepo")))])]),e._v(" "),n("li",[n("a",{attrs:{href:"https://gitlab.com/RemixDev/deemix-webui",target:"_blank"}},[e._v(" \u{1F4BB} "+e._s(e.$t("about.officialWebuiRepo"))+" ")])]),e._v(" "),n("li",[n("a",{attrs:{href:"https://www.reddit.com/r/deemix",target:"_blank"}},[e._v("\u{1F916} "+e._s(e.$t("about.officialSubreddit")))])]),e._v(" "),n("li",[n("a",{attrs:{href:"https://tg.deemix.app",target:"_blank"}},[e._v("\u{1F4F0} "+e._s(e.$t("about.newsChannel")))])]),e._v(" "),n("li",[n("a",{attrs:{href:"https://t.me/RemixDevNews",target:"_blank"}},[e._v("\u{1F4BE} "+e._s(e.$t("about.devlogChannel")))])])]),e._v(" "),n("h2",[e._v(` `+e._s(e.$t("about.titles.bugReports"))+` @@ -3037,7 +3037,7 @@ a { `+e._s(e.$t("about.subtitles.donations"))+` `)])]),e._v(" "),n("ul",[n("li",{domProps:{innerHTML:e._s(e.$t("about.itsFree"))}}),e._v(" "),n("li",[e._v(` `+e._s(e.$t("about.notObligated"))+` - `)])]),e._v(" "),n("ul",[n("li",[n("i",{domProps:{innerHTML:e._s(e.paypal)}}),e._v(" "),n("strong",[e._v("PayPal:")]),e._v(" "),n("a",{attrs:{href:"https://paypal.me/RemixDev",target:"_blank"}},[e._v("PayPal.me/RemixDev")])])]),e._v(" "),n("h2",[e._v(e._s(e.$t("about.titles.license")))]),e._v(" "),e._m(0),e._v(" "),n("i18n",{attrs:{path:"about.lincensedUnder.text",tag:"p"},scopedSlots:e._u([{key:"gpl3",fn:function(){return[n("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[e._v(e._s(e.$t("about.lincensedUnder.gpl3")))])]},proxy:!0}])})],1)},__vue_staticRenderFns__$m=[function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("p",[n("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[n("img",{staticStyle:{"border-width":"0"},attrs:{alt:"GNU General Public License",src:"https://www.gnu.org/graphics/gplv3-127x51.png"}})])])}];const __vue_inject_styles__$m=function(e){!e||e("data-v-07a81feb_0",{source:`@charset "UTF-8";a[data-v-07a81feb],li[data-v-07a81feb],p[data-v-07a81feb]{letter-spacing:.4px;font-size:20px;line-height:1.2}i[data-v-07a81feb]{vertical-align:middle}i[data-v-07a81feb] svg{fill:#fff;width:20px}.ethereum[data-v-07a81feb] svg{fill:var(--foreground)}[data-v-07a81feb]:link{text-decoration:none}#about_tab[data-v-07a81feb]{margin-bottom:40px}h2[data-v-07a81feb]{text-transform:capitalize}h2[data-v-07a81feb]:not(.page_heading){font-size:2rem;border-bottom:1px solid rgba(51,51,51,.25);padding-top:2rem;padding-bottom:1rem}h2 .subheading[data-v-07a81feb]{display:block;font-size:.5em;margin-top:.5em;font-weight:400;opacity:.8;text-transform:none}p[data-v-07a81feb]{margin:0!important}ul li[data-v-07a81feb]{margin-bottom:7px}h2+ul[data-v-07a81feb]{margin-top:1rem}ul+ul[data-v-07a81feb]{margin-top:1.25rem}ul.no-dots[data-v-07a81feb]{list-style-type:none}ul[data-v-07a81feb]:not(.no-dots){list-style-type:none}ul:not(.no-dots) li[data-v-07a81feb]{position:relative}ul:not(.no-dots) li[data-v-07a81feb]::before{content:'\u2014';position:absolute;left:-30px;opacity:.25}`,map:void 0,media:void 0})},__vue_scope_id__$m="data-v-07a81feb",__vue_module_identifier__$4=void 0,__vue_is_functional_template__$m=!1;function __vue_normalize__$m(e,a,n,i,r,l,o,c){const s=(typeof n=="function"?n.options:n)||{};s.__file="About.vue",s.render||(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0,r&&(s.functional=!0)),s._scopeId=i;{let d;if(a&&(d=function(u){a.call(this,o(u))}),d!==void 0)if(s.functional){const u=s.render;s.render=function(v,f){return d.call(f),u(v,f)}}else{const u=s.beforeCreate;s.beforeCreate=u?[].concat(u,d):[d]}}return s}function __vue_create_injector__$4(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$4.styles||(__vue_create_injector__$4.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,l){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const o=n?l.media||"default":r,c=a[o]||(a[o]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let s=l.source,d=c.ids.length;if(c.ids.push(r),l.map&&(s+=` + `)])]),e._v(" "),n("ul",[n("li",[n("i",{domProps:{innerHTML:e._s(e.paypal)}}),e._v(" "),n("strong",[e._v("PayPal:")]),e._v(" "),n("a",{attrs:{href:"https://paypal.me/RemixDev",target:"_blank"}},[e._v("PayPal.me/RemixDev")])])]),e._v(" "),n("h2",[e._v(e._s(e.$t("about.titles.license")))]),e._v(" "),e._m(0),e._v(" "),n("i18n",{attrs:{path:"about.lincensedUnder.text",tag:"p"},scopedSlots:e._u([{key:"gpl3",fn:function(){return[n("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[e._v(e._s(e.$t("about.lincensedUnder.gpl3")))])]},proxy:!0}])})],1)},__vue_staticRenderFns__$m=[function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("p",[n("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[n("img",{staticStyle:{"border-width":"0"},attrs:{alt:"GNU General Public License",src:"https://www.gnu.org/graphics/gplv3-127x51.png"}})])])}];const __vue_inject_styles__$m=function(e){!e||e("data-v-e799ef6c_0",{source:`@charset "UTF-8";a[data-v-e799ef6c],li[data-v-e799ef6c],p[data-v-e799ef6c]{letter-spacing:.4px;font-size:20px;line-height:1.2}i[data-v-e799ef6c]{vertical-align:middle}i[data-v-e799ef6c] svg{fill:#fff;width:20px}.ethereum[data-v-e799ef6c] svg{fill:var(--foreground)}[data-v-e799ef6c]:link{text-decoration:none}#about_tab[data-v-e799ef6c]{margin-bottom:40px}h2[data-v-e799ef6c]{text-transform:capitalize}h2[data-v-e799ef6c]:not(.page_heading){font-size:2rem;border-bottom:1px solid rgba(51,51,51,.25);padding-top:2rem;padding-bottom:1rem}h2 .subheading[data-v-e799ef6c]{display:block;font-size:.5em;margin-top:.5em;font-weight:400;opacity:.8;text-transform:none}p[data-v-e799ef6c]{margin:0!important}ul li[data-v-e799ef6c]{margin-bottom:7px}h2+ul[data-v-e799ef6c]{margin-top:1rem}ul+ul[data-v-e799ef6c]{margin-top:1.25rem}ul.no-dots[data-v-e799ef6c]{list-style-type:none}ul[data-v-e799ef6c]:not(.no-dots){list-style-type:none}ul:not(.no-dots) li[data-v-e799ef6c]{position:relative}ul:not(.no-dots) li[data-v-e799ef6c]::before{content:'\u2014';position:absolute;left:-30px;opacity:.25}`,map:void 0,media:void 0})},__vue_scope_id__$m="data-v-e799ef6c",__vue_module_identifier__$4=void 0,__vue_is_functional_template__$m=!1;function __vue_normalize__$m(e,a,n,i,r,l,o,c){const s=(typeof n=="function"?n.options:n)||{};s.__file="About.vue",s.render||(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0,r&&(s.functional=!0)),s._scopeId=i;{let d;if(a&&(d=function(u){a.call(this,o(u))}),d!==void 0)if(s.functional){const u=s.render;s.render=function(v,f){return d.call(f),u(v,f)}}else{const u=s.beforeCreate;s.beforeCreate=u?[].concat(u,d):[d]}}return s}function __vue_create_injector__$4(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$4.styles||(__vue_create_injector__$4.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,l){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const o=n?l.media||"default":r,c=a[o]||(a[o]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let s=l.source,d=c.ids.length;if(c.ids.push(r),l.map&&(s+=` /*# sourceURL=`+l.map.sources[0]+" */",s+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(l.map))))+" */"),n&&(c.element=c.element||document.querySelector("style[data-group="+o+"]")),!c.element){const u=c.element=document.createElement("style");u.type="text/css",l.media&&u.setAttribute("media",l.media),n&&(u.setAttribute("data-group",o),u.setAttribute("data-next-index","0")),e.appendChild(u)}if(n&&(d=parseInt(c.element.getAttribute("data-next-index")),c.element.setAttribute("data-next-index",d+1)),c.element.styleSheet)c.parts.push(s),c.element.styleSheet.cssText=c.parts.filter(Boolean).join(` `);else{const u=document.createTextNode(s),h=c.element.childNodes;h[d]&&c.element.removeChild(h[d]),h.length?c.element.insertBefore(u,h[d]):c.element.appendChild(u)}}}}var About=__vue_normalize__$m({render:__vue_render__$m,staticRenderFns:__vue_staticRenderFns__$m},__vue_inject_styles__$m,__vue_script__$m,__vue_scope_id__$m,__vue_is_functional_template__$m,__vue_module_identifier__$4,__vue_create_injector__$4),script$l={};const __vue_script__$l=script$l;var __vue_render__$l=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",[n("h1",{staticClass:"mb-8 text-5xl"},[e._v(e._s(e.$t("settings.login.arl.question")))]),e._v(" "),e._m(0),e._v(" "),n("h3",{staticClass:"mt-6 text-3xl"},[e._v("Chrome (Easy way)")]),e._v(" "),e._m(1),e._v(" "),n("h3",{staticClass:"mt-6 text-3xl"},[e._v("Chrome")]),e._v(" "),e._m(2),e._v(" "),e._m(3),e._v(" "),n("h3",{staticClass:"mt-6 text-3xl"},[e._v("Firefox")]),e._v(" "),e._m(4)])},__vue_staticRenderFns__$l=[function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("p",{staticClass:"mb-2 text-base"},[e._v(` @@ -3073,7 +3073,7 @@ a { `+e._s(e.$tc("globals.listTabs."+i.releaseType))+` `)])])]),e._v(" "),n("td",{staticClass:"w-32 text-center xl:w-40"},[e._v(e._s(i.releaseDate))]),e._v(" "),n("td",{staticClass:"w-20 text-center xl:w-32"},[e._v(e._s(i.releaseTracksNumber))]),e._v(" "),n("td",{staticClass:"w-8 cursor-pointer",attrs:{"data-cm-link":i.releaseLink},on:{click:function(r){return r.stopPropagation(),e.sendAddToQueue(i.releaseLink)}}},[n("i",{staticClass:"material-icons hover:text-primary",attrs:{title:e.$t("globals.download_hint")}},[e._v("file_download")])])],1)}),0)])],1)},__vue_staticRenderFns__$j=[];const __vue_inject_styles__$j=void 0,__vue_scope_id__$j=void 0,__vue_is_functional_template__$j=!1;function __vue_normalize__$j(e,a,n,i,r,l,o,c){const s=(typeof n=="function"?n.options:n)||{};return s.__file="Artist.vue",s.render||(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0,r&&(s.functional=!0)),s._scopeId=i,s}var Artist=__vue_normalize__$j({render:__vue_render__$j,staticRenderFns:__vue_staticRenderFns__$j},__vue_inject_styles__$j,__vue_script__$j,__vue_scope_id__$j,__vue_is_functional_template__$j);function getChartsData(){return fetchData("getCharts")}function getChartTracks(e){return fetchData("getChartTracks",{id:e})}var script$i={methods:{previewMouseEnter,previewMouseLeave}};const __vue_script__$i=script$i;var __vue_render__$i=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("i",{staticClass:"absolute top-0 right-0 flex items-center justify-center w-full h-full text-center text-white transition-opacity duration-200 ease-in-out bg-black bg-opacity-50 rounded opacity-0 material-icons preview_controls",attrs:{title:e.$t("globals.play_hint")},on:{mouseenter:e.previewMouseEnter,mouseleave:e.previewMouseLeave}},[e._v(` play_arrow -`)])},__vue_staticRenderFns__$i=[];const __vue_inject_styles__$i=void 0,__vue_scope_id__$i=void 0,__vue_is_functional_template__$i=!1;function __vue_normalize__$i(e,a,n,i,r,l,o,c){const s=(typeof n=="function"?n.options:n)||{};return s.__file="PreviewControls.vue",s.render||(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0,r&&(s.functional=!0)),s._scopeId=i,s}var PreviewControls=__vue_normalize__$i({render:__vue_render__$i,staticRenderFns:__vue_staticRenderFns__$i},__vue_inject_styles__$i,__vue_script__$i,__vue_scope_id__$i,__vue_is_functional_template__$i),script$h={components:{PreviewControls},data(){return{country:"",id:0,countries:[],chart:[]}},computed:{worldwideRelease(){return this.countries.filter(a=>a.title==="Worldwide")[0]}},watch:{id(e){e!==0&&getChartTracks(e).then(n=>this.setTracklist(n.data))}},async created(){let{data:e}=await getChartsData(),a;e=e.filter(n=>(n.title==="Worldwide"&&(a=n),n.title!=="Worldwide")),e.unshift(a),this.initCharts(e)},methods:{convertDuration,playPausePreview,addToQueue(e){e.stopPropagation(),sendAddToQueue(e.currentTarget.dataset.link)},getTrackList(e){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:a,id:n}}}=e;this.country=a,localStorage.setItem("chart",this.country),this.id=n},setTracklist(e){this.chart=e},onChangeCountry(){this.country="",this.id=0},initCharts(e){if(this.countries=e,this.country=localStorage.getItem("chart")||"",!this.country)return;let a=0;for(;aa.title==="Worldwide")[0]}},watch:{id(e){e!==0&&(this.setTracklist([]),getChartTracks(e).then(n=>this.setTracklist(n.data)))}},async created(){let{data:e}=await getChartsData(),a;e=e.filter(n=>(n.title==="Worldwide"&&(a=n),n.title!=="Worldwide")),e.unshift(a),this.initCharts(e)},methods:{convertDuration,playPausePreview,addToQueue(e){e.stopPropagation(),sendAddToQueue(e.currentTarget.dataset.link)},getTrackList(e){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:a,id:n}}}=e;this.country=a,localStorage.setItem("chart",this.country),this.id=n},setTracklist(e){this.chart=e},onChangeCountry(){this.country="",this.id=0},initCharts(e){if(this.countries=e,this.country=localStorage.getItem("chart")||"",!this.country)return;let a=0;for(;an==="TOP_RESULT"?this.viewInfo[n].length===0:this.viewInfo[n].data.length===0)}},methods:{convertDuration,upperCaseFirstLowerCaseRest,standardizeData,formatSingleTrack,formatAlbums,formatArtist,formatPlaylist,checkSectionResults(e){return e==="TOP_RESULT"?!!this.viewInfo.TOP_RESULT[0]:!!this.viewInfo[e].data[0]}}};const __vue_script__$5=script$5;var __vue_render__$5=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("section",[e.thereAreResults?e._l(e.viewInfo.ORDER,function(i){return n("section",{key:i,staticClass:"float-none py-5 border-t border-grayscale-500 first:border-t-0"},[e.checkSectionResults(i)?[n("h2",{staticClass:"mb-6 capitalize",class:{"text-4xl text-center":i==="TOP_RESULT","inline-block cursor-pointer text-3xl hover:text-primary transition-colors duration-200 ease-in-out":i!=="TOP_RESULT"},on:{click:function(r){return e.$emit("change-search-tab",i)}}},[e._v(` `+e._s(e.$tc("globals.listTabs."+i.toLowerCase(),2))+` - `)]),e._v(" "),i==="TOP_RESULT"?n("TopResult",{attrs:{info:e.viewInfo.TOP_RESULT[0]},on:{"add-to-queue":function(r){return e.$emit("add-to-queue",r)}}}):i==="TRACK"?n("ResultsTracks",{attrs:{"view-info":e.standardizeData(e.viewInfo.TRACK,e.formatSingleTrack)},on:{"add-to-queue":function(r){return e.$emit("add-to-queue",r)}}}):i==="ALBUM"?n("ResultsAlbums",{attrs:{"view-info":e.standardizeData(e.viewInfo.ALBUM,e.formatAlbums)},on:{"add-to-queue":function(r){return e.$emit("add-to-queue",r)}}}):i==="PLAYLIST"?n("ResultsPlaylists",{attrs:{"view-info":e.standardizeData(e.viewInfo.PLAYLIST,e.formatPlaylist)},on:{"add-to-queue":function(r){return e.$emit("add-to-queue",r)}}}):i==="ARTIST"?n("ResultsArtists",{attrs:{"view-info":e.standardizeData(e.viewInfo.ARTIST,e.formatArtist)},on:{"add-to-queue":function(r){return e.$emit("add-to-queue",r)}}}):e._e()]:e._e()],2)}):n("div",[n("h1",[e._v(e._s(e.$t("search.noResults")))])])],2)},__vue_staticRenderFns__$5=[];const __vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_is_functional_template__$5=!1;function __vue_normalize__$5(e,a,n,i,r,l,o,c){const s=(typeof n=="function"?n.options:n)||{};return s.__file="ResultsAll.vue",s.render||(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0,r&&(s.functional=!0)),s._scopeId=i,s}var ResultsAll=__vue_normalize__$5({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5);const searchResult=ref({});function performMainSearch(e){fetchData("mainSearch",{term:e}).then(a=>{searchResult.value=a})}function useMainSearch(){return{searchResult,performMainSearch}}const result=ref({});function performSearch({term:e,type:a,start:n=0,nb:i=30}){fetchData("search",{term:e,type:a,start:n,nb:i}).then(r=>{result.value=r})}function useSearch(){return{result,performSearch}}const resetObj={data:[],next:0,total:0,hasLoaded:!1},lastTab=ref(null);var script$4=defineComponent({components:{BaseLoadingPlaceholder,BaseTabs,BaseTab},props:{performScrolledSearch:{type:Boolean,required:!1}},setup(e,a){const n=reactive({currentTab:{name:"",searchType:"",component:{},viewInfo:"",formatFunc:()=>{}},results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{hasLoaded:!1},ARTIST:{hasLoaded:!1},TRACK:{hasLoaded:!1},PLAYLIST:{hasLoaded:!1}},trackTab:{...resetObj},albumTab:{...resetObj},artistTab:{...resetObj},playlistTab:{...resetObj}},tabs:[{name:a.root.$i18n.t("globals.listTabs.all"),searchType:"all",component:ResultsAll,viewInfo:"allTab"},{name:a.root.$i18n.tc("globals.listTabs.track",2),searchType:"track",component:ResultsTracks,viewInfo:"trackTab",formatFunc:formatSingleTrack},{name:a.root.$i18n.tc("globals.listTabs.album",2),searchType:"album",component:ResultsAlbums,viewInfo:"albumTab",formatFunc:formatAlbums},{name:a.root.$i18n.tc("globals.listTabs.artist",2),searchType:"artist",component:ResultsArtists,viewInfo:"artistTab",formatFunc:formatArtist},{name:a.root.$i18n.tc("globals.listTabs.playlist",2),searchType:"playlist",component:ResultsPlaylists,viewInfo:"playlistTab",formatFunc:formatPlaylist}]}),{searchResult:i,performMainSearch:r}=useMainSearch(),{result:l,performSearch:o}=useSearch(),c=computed(()=>a.root.$route.query.term),s=computed(()=>n.results.query===""),d=ref(!1),u=computed(()=>Object.keys(i.value).length!==0),h=computed(()=>i.value.QUERY!==c.value);u.value&&!h.value&&onMounted(()=>{v(i.value)}),c.value&&(!u.value||h.value)&&(r(c.value),d.value=!0);function v(f){d.value=!1,n.results.query=f.QUERY,n.results.allTab=f,n.results.allTab.TRACK.hasLoaded=!0,n.results.allTab.ALBUM.hasLoaded=!0,n.results.allTab.ARTIST.hasLoaded=!0,n.results.allTab.PLAYLIST.hasLoaded=!0,lastTab.value&&lastTab.value.searchType!=="all"?(n.currentTab=lastTab.value,o({term:f.QUERY,type:n.currentTab.searchType})):n.currentTab=n.tabs.find(g=>g.searchType==="all")}return watch(i,v),watch(l,f=>{const{next:g,total:y,type:_,data:w}=f,z=`${_}Tab`;let S=y;if(g&&(S=parseInt(g.match(/index=(\d*)/)[1])),n.results[z].total!==y&&(n.results[z].total=y),n.results[z].next!==S){n.results[z].next=S;const C=n.results[z].data.concat(w),P=uniqWith(C,(T,M)=>T.id===M.id);n.results[z].data=P}n.results[z].hasLoaded=!0}),n.currentTab=n.tabs.find(f=>f.searchType==="all"),{...toRefs(n),isSearching:d,isQueryEmpty:s,searchResult:i,performMainSearch:r,performSearch:o}},computed:{loadedTabs(){const e=[];for(const a in this.results)this.results.hasOwnProperty(a)&&a!=="query"&&this.results[a].hasLoaded&&e.push(a.replace(/Tab/g,""));return e}},watch:{performScrolledSearch(e){!e||this.scrolledSearch(e)},currentTab(e){this.isTabLoaded(e)||this.performSearch({term:this.results.query,type:e.searchType,start:this.results[`${e.searchType}Tab`].next})}},methods:{numberWithDots,convertDuration,addToQueue(e){sendAddToQueue(e.currentTarget.dataset.link)},getViewInfo(){return this.currentTab.searchType==="all"?this.results.allTab:standardizeData(this.results[this.currentTab.viewInfo],this.currentTab.formatFunc)},changeSearchTab(e){e=e.toLowerCase();const a=this.tabs.find(n=>n.searchType===e);if(!a){console.error(`No tab ${e} found`);return}window.scrollTo(0,0),this.currentTab=a,lastTab.value=a},scrolledSearch(){if(this.currentTab.searchType==="all")return;const e=`${this.currentTab.searchType}Tab`;this.results[e].next{searchResult.value=a})}function useMainSearch(){return{searchResult,performMainSearch}}const result=ref({});function performSearch({term:e,type:a,start:n=0,nb:i=30}){fetchData("search",{term:e,type:a,start:n,nb:i}).then(r=>{result.value=r})}function useSearch(){return{result,performSearch}}const resetObj={data:[],next:0,total:0,hasLoaded:!1},lastTab=ref(null);var script$4=defineComponent({components:{BaseLoadingPlaceholder,BaseTabs,BaseTab},props:{performScrolledSearch:{type:Boolean,required:!1}},setup(e,a){const n=reactive({currentTab:{name:"",searchType:"",component:{},viewInfo:"",formatFunc:()=>{}},results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{hasLoaded:!1},ARTIST:{hasLoaded:!1},TRACK:{hasLoaded:!1},PLAYLIST:{hasLoaded:!1}},trackTab:{...resetObj},albumTab:{...resetObj},artistTab:{...resetObj},playlistTab:{...resetObj}},tabs:[{name:a.root.$i18n.t("globals.listTabs.all"),searchType:"all",component:ResultsAll,viewInfo:"allTab"},{name:a.root.$i18n.tc("globals.listTabs.track",2),searchType:"track",component:ResultsTracks,viewInfo:"trackTab",formatFunc:formatSingleTrack},{name:a.root.$i18n.tc("globals.listTabs.album",2),searchType:"album",component:ResultsAlbums,viewInfo:"albumTab",formatFunc:formatAlbums},{name:a.root.$i18n.tc("globals.listTabs.artist",2),searchType:"artist",component:ResultsArtists,viewInfo:"artistTab",formatFunc:formatArtist},{name:a.root.$i18n.tc("globals.listTabs.playlist",2),searchType:"playlist",component:ResultsPlaylists,viewInfo:"playlistTab",formatFunc:formatPlaylist}]}),{searchResult:i,performMainSearch:r}=useMainSearch(),{result:l,performSearch:o}=useSearch(),c=computed(()=>i.value.QUERY),s=computed(()=>a.root.$route.query.term||c.value),d=computed(()=>n.results.query===""),u=ref(!1),h=computed(()=>Object.keys(i.value).length!==0),v=computed(()=>c.value!==s.value);h.value&&!v.value&&onMounted(()=>{f(i.value)}),s.value&&(!h.value||v.value)&&(r(s.value),u.value=!0);function f(g){u.value=!1,n.results.query=g.QUERY,n.results.allTab=g,n.results.allTab.TRACK.hasLoaded=!0,n.results.allTab.ALBUM.hasLoaded=!0,n.results.allTab.ARTIST.hasLoaded=!0,n.results.allTab.PLAYLIST.hasLoaded=!0,lastTab.value&&lastTab.value.searchType!=="all"?(n.currentTab=lastTab.value,o({term:g.QUERY,type:n.currentTab.searchType})):n.currentTab=n.tabs.find(y=>y.searchType==="all")}return watch(i,f),watch(l,g=>{const{next:y,total:_,type:w,data:z}=g,S=`${w}Tab`;let C=_;if(y&&(C=parseInt(y.match(/index=(\d*)/)[1])),n.results[S].total!==_&&(n.results[S].total=_),n.results[S].next!==C){n.results[S].next=C;const P=n.results[S].data.concat(z),T=uniqWith(P,(M,F)=>M.id===F.id);n.results[S].data=T}n.results[S].hasLoaded=!0}),n.currentTab=n.tabs.find(g=>g.searchType==="all"),{...toRefs(n),isSearching:u,isQueryEmpty:d,searchResult:i,performMainSearch:r,performSearch:o}},computed:{loadedTabs(){const e=[];for(const a in this.results)this.results.hasOwnProperty(a)&&a!=="query"&&this.results[a].hasLoaded&&e.push(a.replace(/Tab/g,""));return e}},watch:{performScrolledSearch(e){!e||this.scrolledSearch(e)},currentTab(e){this.isTabLoaded(e)||this.performSearch({term:this.results.query,type:e.searchType,start:this.results[`${e.searchType}Tab`].next})}},methods:{numberWithDots,convertDuration,addToQueue(e){sendAddToQueue(e.currentTarget.dataset.link)},getViewInfo(){return this.currentTab.searchType==="all"?this.results.allTab:standardizeData(this.results[this.currentTab.viewInfo],this.currentTab.formatFunc)},changeSearchTab(e){e=e.toLowerCase();const a=this.tabs.find(n=>n.searchType===e);if(!a){console.error(`No tab ${e} found`);return}window.scrollTo(0,0),this.currentTab=a,lastTab.value=a},scrolledSearch(){if(this.currentTab.searchType==="all")return;const e=`${this.currentTab.searchType}Tab`;this.results[e].nextsummary::marker{display:none}details.with-arrow>summary::marker{display:initial;vertical-align:var(--arrow-v-align,super)}",map:void 0,media:void 0})},__vue_scope_id__$3=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$3=!0;function __vue_normalize__$3(e,a,n,i,r,l,o,c){const s=(typeof n=="function"?n.options:n)||{};s.__file="BaseAccordion.vue",s.render||(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0,r&&(s.functional=!0)),s._scopeId=i;{let d;if(a&&(d=function(u){a.call(this,o(u))}),d!==void 0)if(s.functional){const u=s.render;s.render=function(v,f){return d.call(f),u(v,f)}}else{const u=s.beforeCreate;s.beforeCreate=u?[].concat(u,d):[d]}}return s}function __vue_create_injector__$1(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$1.styles||(__vue_create_injector__$1.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,l){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const o=n?l.media||"default":r,c=a[o]||(a[o]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let s=l.source,d=c.ids.length;if(c.ids.push(r),l.map&&(s+=` /*# sourceURL=`+l.map.sources[0]+" */",s+=`