diff --git a/public/js/bundle.js b/public/js/bundle.js index 53ce4cd..3ed11e3 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -16,7 +16,7 @@ var t=Object.freeze({});function e(t){return null==t}function a(t){return null!= * * Copyright (C) 2018 Varun A P */ -!function(e,a){t.exports?t.exports=a():e.Toastify=a()}(bl,(function(t){var e=function(t){return new e.lib.init(t)};function a(t,e){return!(!t||"string"!=typeof e)&&!!(t.className&&t.className.trim().split(/\s+/gi).indexOf(e)>-1)}return e.lib=e.prototype={toastify:"1.8.0",constructor:e,init:function(t){return t||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||"Hi there!",this.options.node=t.node,this.options.duration=0===t.duration?0:t.duration||3e3,this.options.selector=t.selector,this.options.callback=t.callback||function(){},this.options.destination=t.destination,this.options.newWindow=t.newWindow||!1,this.options.close=t.close||!1,this.options.gravity="bottom"===t.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=t.positionLeft||!1,this.options.position=t.position||"",this.options.backgroundColor=t.backgroundColor,this.options.avatar=t.avatar||"",this.options.className=t.className||"",this.options.stopOnFocus=void 0===t.stopOnFocus||t.stopOnFocus,this.options.onClick=t.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var t=document.createElement("div");if(t.className="toastify on "+this.options.className,this.options.position?t.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(t.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):t.className+=" toastify-right",t.className+=" "+this.options.gravity,this.options.backgroundColor&&(t.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(t.innerHTML=this.options.text,""!==this.options.avatar){var e=document.createElement("img");e.src=this.options.avatar,e.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?t.appendChild(e):t.insertAdjacentElement("beforeend",e)}if(!0===this.options.close){var a=document.createElement("span");a.innerHTML="✖",a.className="toast-close",a.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var n=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&n>360?t.insertAdjacentElement("afterbegin",a):t.appendChild(a)}if(this.options.stopOnFocus&&this.options.duration>0){const e=this;t.addEventListener("mouseover",(function(e){window.clearTimeout(t.timeOutValue)})),t.addEventListener("mouseleave",(function(){t.timeOutValue=window.setTimeout((function(){e.removeElement(t)}),e.options.duration)}))}return void 0!==this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),t},showToast:function(){var t;if(this.toastElement=this.buildToast(),!(t=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return t.insertBefore(this.toastElement,t.firstChild),e.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),e.reposition()}.bind(this),400)}},e.reposition=function(){for(var t,e={top:15,bottom:15},n={top:15,bottom:15},i={top:15,bottom:15},r=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(r[s].style[t]=i[t]+"px",i[t]+=o+15):!0===a(r[s],"toastify-left")?(r[s].style[t]=e[t]+"px",e[t]+=o+15):(r[s].style[t]=n[t]+"px",n[t]+=o+15)}return this},e.lib.init.prototype=e.lib,e}))}));let _l={};const kl=function(t,e=null,a=!0,n=null){if(_l[n]){let i=_l[n],r=document.querySelectorAll(`div.toastify[toast_id=${n}]`);t&&r.forEach(e=>{e.querySelectorAll(".toast-message").forEach(e=>{e.innerHTML=t})}),e&&(e="loading"==e?'
':`${e}`,r.forEach(t=>{t.querySelectorAll(".toast-icon").forEach(t=>{t.innerHTML=e})})),null!==a&&a&&(r.forEach(t=>{t.classList.add("dismissable")}),setTimeout(()=>{i.hideToast(),delete _l[n]},3e3))}else{let i=yl({text:`${e=null==e?"":"loading"==e?'
':`${e}`}
${t}`,duration:a?3e3:0,gravity:"bottom",position:"left",className:a?"dismissable":"",onClick:function(){let t=!0;if(n){let e=document.querySelector(`div.toastify[toast_id=${n}]`).classList;e&&(t=-1!=Array.prototype.slice.call(e).indexOf("dismissable"))}i&&t&&(i.hideToast(),n&&delete _l[n])}}).showToast();n&&(_l[n]=i,i.toastElement.setAttribute("toast_id",n))}};rl.on("toast",t=>{const{msg:e,icon:a,dismiss:n,id:i}=t;kl(e,a||null,void 0===n||n,i||null)});const Al={components:{QueueItem:vl},data:()=>({cachedTabWidth:parseInt(localStorage.getItem("downloadTabWidth"))||300,queue:[],queueList:{},queueComplete:[]}),computed:{...Vo({clientMode:"getClientMode"})},mounted(){rl.on("startDownload",this.startDownload),rl.on("startConversion",this.startConversion),rl.on("init_downloadQueue",this.initQueue),rl.on("addedToQueue",this.addToQueue),rl.on("updateQueue",this.updateQueue),rl.on("removedFromQueue",this.removeFromQueue),rl.on("finishDownload",this.finishDownload),rl.on("removedAllDownloads",this.removeAllDownloads),rl.on("removedFinishedDownloads",this.removedFinishedDownloads),"true"===localStorage.getItem("slimDownloads")&&this.$refs.list.classList.add("slim"),"true"===localStorage.getItem("downloadTabOpen")&&(this.$refs.container.classList.remove("tab_hidden"),this.setTabWidth(this.cachedTabWidth)),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",this.handleDrag)}),window.addEventListener("beforeunload",()=>{localStorage.setItem("downloadTabWidth",this.cachedTabWidth)})},methods:{...Go(["setErrors"]),onRemoveItem(t){rl.emit("removeFromQueue",t)},setTabWidth(t){void 0===t?(this.$refs.container.style.width="",this.$refs.list.style.width=""):(this.$refs.container.style.width=t+"px",this.$refs.list.style.width=t+"px")},initQueue(t){const{queue:e,queueComplete:a,currentItem:n,queueList:i,restored:r}=t;a.length&&a.forEach(t=>{i[t].silent=!0,this.addToQueue(i[t])}),n&&(i[n].silent=!0,this.addToQueue(i[n],!0)),e.forEach(t=>{i[t].silent=!0,this.addToQueue(i[t])}),r&&(kl(this.$t("toasts.queueRestored"),"done",!0,"restoring_queue"),rl.emit("queueRestored"))},addToQueue(t,e=!1){if(Array.isArray(t)){if(t.length>1)return t.forEach((t,e)=>{t.silent=!0,this.addToQueue(t)}),void kl(this.$t("toasts.addedMoreToQueue",{n:t.length}),"playlist_add_check");t=t[0]}this.$set(t,"current",e),this.$set(this.queueList,t.uuid,t);if(t.downloaded+t.failed==t.size){const e=-1==this.queueComplete.indexOf(t.uuid);this.$set(this.queueList[t.uuid],"status","download finished"),e&&this.queueComplete.push(t.uuid)}else{-1==this.queue.indexOf(t.uuid)&&this.queue.push(t.uuid)}(t.progress>0&&t.progress<100||e)&&this.startDownload(t.uuid),t.silent||kl(this.$t("toasts.addedToQueue",{item:t.title}),"playlist_add_check")},updateQueue(t){const{uuid:e,downloaded:a,failed:n,progress:i,conversion:r,error:s,data:o,errid:l}=t;e&&this.queue.indexOf(e)>-1&&(a&&this.queueList[e].downloaded++,n&&(this.queueList[e].failed++,this.queueList[e].errors.push({message:s,data:o,errid:l})),i&&(this.queueList[e].progress=i),r&&(this.queueList[e].conversion=r))},removeFromQueue(t){let e=this.queue.indexOf(t);e>-1&&(this.$delete(this.queue,e),this.$delete(this.queueList,t))},removeAllDownloads(t){if(this.queueComplete=[],t){this.queue=[t];let e=this.queueList[t];this.queueList={},this.queueList[t]=e}else this.queue=[],this.queueList={}},removedFinishedDownloads(){this.queueComplete.forEach(t=>{this.$delete(this.queueList,t)}),this.queueComplete=[]},toggleDownloadTab(t){this.setTabWidth(),this.$refs.container.style.transition="all 250ms ease-in-out";let e=this.$refs.container.classList.toggle("tab_hidden");e||this.setTabWidth(this.cachedTabWidth),localStorage.setItem("downloadTabOpen",!e)},cleanQueue(){rl.emit("removeFinishedDownloads")},cancelQueue(){rl.emit("cancelAllDownloads")},openDownloadsFolder(){rl.emit("openDownloadsFolder")},handleDrag(t){let e=window.innerWidth-t.pageX+2;e<250?e=250:e>500&&(e=500),this.cachedTabWidth=e,this.setTabWidth(e)},startDrag(){document.addEventListener("mousemove",this.handleDrag)},startDownload(t){this.$set(this.queueList[t],"status","downloading")},finishDownload(t){if(!(this.queue.indexOf(t)>-1))return;this.$set(this.queueList[t],"status","download finished"),kl(this.$t("toasts.finishDownload",{item:this.queueList[t].title}),"done");let e=this.queue.indexOf(t);e>-1&&(this.queue.splice(e,1),this.queueComplete.push(t)),this.queue.length<=0&&kl(this.$t("toasts.allDownloaded"),"done_all")},startConversion(t){this.$set(this.queueList[t],"status","converting"),this.$set(this.queueList[t],"conversion",0)},async showErrorsTab(t){await this.setErrors(t),this.$router.push({name:"Errors"})}}};var wl=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"container",staticClass:"tab_hidden",attrs:{id:"download_tab_container","data-label":t.$t("downloads"),"aria-label":"downloads"},on:{transitionend:function(e){t.$refs.container.style.transition=""}}},[a("div",{ref:"dragHandler",attrs:{id:"download_tab_drag_handler"},on:{mousedown:function(e){return e.preventDefault(),t.startDrag(e)}}}),t._v(" "),a("i",{ref:"toggler",staticClass:"material-icons download_bar_icon",attrs:{id:"toggle_download_tab",title:t.$t("globals.toggle_download_tab_hint")},on:{click:function(e){return e.preventDefault(),t.toggleDownloadTab(e)}}}),t._v(" "),a("div",{attrs:{id:"queue_buttons"}},[t.clientMode?a("i",{staticClass:"material-icons download_bar_icon",attrs:{id:"open_downloads_folder",title:t.$t("globals.open_downloads_folder")},on:{click:t.openDownloadsFolder}},[t._v("\n\t\t\tfolder_open\n\t\t")]):t._e(),t._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{id:"clean_queue",title:t.$t("globals.clean_queue_hint")},on:{click:t.cleanQueue}},[t._v("\n\t\t\tclear_all\n\t\t")]),t._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{id:"cancel_queue",title:t.$t("globals.cancel_queue_hint")},on:{click:t.cancelQueue}},[t._v("\n\t\t\tdelete_sweep\n\t\t")])]),t._v(" "),a("div",{ref:"list",attrs:{id:"download_list"}},t._l(t.queueList,(function(e){return a("QueueItem",{key:e.uuid,attrs:{"queue-item":e},on:{"show-errors":t.showErrorsTab,"remove-item":t.onRemoveItem}})})),1)])};wl._withStripped=!0;var Cl=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheDownloadTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:wl,staticRenderFns:[]},(function(t){t&&t("data-v-1c6e94be_0",{source:"#download_tab_container[data-v-1c6e94be] {\n height: 100vh;\n}\n\n/*# sourceMappingURL=TheDownloadTab.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheDownloadTab.vue","TheDownloadTab.vue"],names:[],mappings:"AAyDA;EACA,aAAA;AAAA;;ACvDA,6CAA6C",file:"TheDownloadTab.vue",sourcesContent:[null,"#download_tab_container {\n height: 100vh; }\n\n/*# sourceMappingURL=TheDownloadTab.vue.map */"]},media:void 0})}),Al,"data-v-1c6e94be",!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const xl={data:()=>({lastTextSearch:""}),mounted(){document.addEventListener("keyup",t=>{"Backspace"==t.key&&t.ctrlKey&&t.shiftKey&&(this.$refs.searchbar.value="",this.$refs.searchbar.focus())})},methods:{test(){console.log("test passato")},async handleSearchBarKeyup(t){if(!(13===t.keyCode))return;let e=this.$refs.searchbar.value;if(""===e)return;let a=no(e),n=t.ctrlKey,i="Link Analyzer"===this.$route.name,r="Search"===this.$route.name,s=e===this.lastTextSearch;if(a)n?this.$root.$emit("QualityModal:open",e):i?rl.emit("analyzeLink",e):ol.sendAddToQueue(e);else{if(r&&s)return void this.$root.$emit("mainSearch:updateResults",e,window.main_selected);r||await this.$router.push({name:"Search"}),s||(this.$root.$emit("updateSearchLoadingState",!0),this.lastTextSearch=e),this.$root.$emit("mainSearch:showNewResults",e,window.main_selected)}}}};var Tl=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header",{attrs:{id:"search","aria-label":"searchbar"}},[t._m(0),t._v(" "),a("input",{ref:"searchbar",attrs:{id:"searchbar",autocomplete:"off",type:"search",name:"searchbar",value:"",placeholder:t.$t("searchbar"),autofocus:""},on:{keyup:function(e){return t.handleSearchBarKeyup(e)}}})])};Tl._withStripped=!0;const Sl={components:{TheSidebar:ao,TheSearchBar:function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheSearchBar.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Tl,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"search__icon"},[e("i",{staticClass:"material-icons"},[this._v("search")])])}]},(function(t){t&&t("data-v-e6816144_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheSearchBar.vue"},media:void 0})}),xl,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}})),TheMiddleSection:yo,TheDownloadTab:Cl,TheTrackPreview:Co,TheQualityModal:dl,BaseLoadingPlaceholder:mo,TheContextMenu:ml}};var zl=function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("TheSidebar"),this._v(" "),e("div",{staticClass:"app-container"},[e("div",{staticClass:"content-container"},[e("TheSearchBar"),this._v(" "),e("TheMiddleSection")],1),this._v(" "),e("TheDownloadTab",{staticClass:"downlaods"})],1),this._v(" "),e("BaseLoadingPlaceholder",{attrs:{id:"start_app_placeholder",text:"Connecting to the server..."}}),this._v(" "),e("TheTrackPreview"),this._v(" "),e("TheQualityModal"),this._v(" "),e("TheContextMenu")],1)};zl._withStripped=!0;var Ml=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/App.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:zl,staticRenderFns:[]},(function(t){t&&t("data-v-c274bafe_0",{source:".app-container {\n display: flex;\n}\n.content-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-left: 48px;\n}\n.downlaods {\n flex-basis: 32px;\n}\n\n/*# sourceMappingURL=App.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/App.vue","App.vue"],names:[],mappings:"AAsBA;EACA,aAAA;AAAA;AAGA;EACA,WAAA;EACA,aAAA;EACA,sBAAA;EACA,iBAAA;AAAA;AAGA;EACA,gBAAA;AAAA;;ACtBA,kCAAkC",file:"App.vue",sourcesContent:[null,".app-container {\n display: flex; }\n\n.content-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-left: 48px; }\n\n.downlaods {\n flex-basis: 32px; }\n\n/*# sourceMappingURL=App.vue.map */"]},media:void 0})}),Sl,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}})),Pl=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"]; +!function(e,a){t.exports?t.exports=a():e.Toastify=a()}(bl,(function(t){var e=function(t){return new e.lib.init(t)};function a(t,e){return!(!t||"string"!=typeof e)&&!!(t.className&&t.className.trim().split(/\s+/gi).indexOf(e)>-1)}return e.lib=e.prototype={toastify:"1.8.0",constructor:e,init:function(t){return t||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||"Hi there!",this.options.node=t.node,this.options.duration=0===t.duration?0:t.duration||3e3,this.options.selector=t.selector,this.options.callback=t.callback||function(){},this.options.destination=t.destination,this.options.newWindow=t.newWindow||!1,this.options.close=t.close||!1,this.options.gravity="bottom"===t.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=t.positionLeft||!1,this.options.position=t.position||"",this.options.backgroundColor=t.backgroundColor,this.options.avatar=t.avatar||"",this.options.className=t.className||"",this.options.stopOnFocus=void 0===t.stopOnFocus||t.stopOnFocus,this.options.onClick=t.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var t=document.createElement("div");if(t.className="toastify on "+this.options.className,this.options.position?t.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(t.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):t.className+=" toastify-right",t.className+=" "+this.options.gravity,this.options.backgroundColor&&(t.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(t.innerHTML=this.options.text,""!==this.options.avatar){var e=document.createElement("img");e.src=this.options.avatar,e.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?t.appendChild(e):t.insertAdjacentElement("beforeend",e)}if(!0===this.options.close){var a=document.createElement("span");a.innerHTML="✖",a.className="toast-close",a.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var n=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&n>360?t.insertAdjacentElement("afterbegin",a):t.appendChild(a)}if(this.options.stopOnFocus&&this.options.duration>0){const e=this;t.addEventListener("mouseover",(function(e){window.clearTimeout(t.timeOutValue)})),t.addEventListener("mouseleave",(function(){t.timeOutValue=window.setTimeout((function(){e.removeElement(t)}),e.options.duration)}))}return void 0!==this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),t},showToast:function(){var t;if(this.toastElement=this.buildToast(),!(t=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return t.insertBefore(this.toastElement,t.firstChild),e.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),e.reposition()}.bind(this),400)}},e.reposition=function(){for(var t,e={top:15,bottom:15},n={top:15,bottom:15},i={top:15,bottom:15},r=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(r[s].style[t]=i[t]+"px",i[t]+=o+15):!0===a(r[s],"toastify-left")?(r[s].style[t]=e[t]+"px",e[t]+=o+15):(r[s].style[t]=n[t]+"px",n[t]+=o+15)}return this},e.lib.init.prototype=e.lib,e}))}));let _l={};const kl=function(t,e=null,a=!0,n=null){if(_l[n]){let i=_l[n],r=document.querySelectorAll(`div.toastify[toast_id=${n}]`);t&&r.forEach(e=>{e.querySelectorAll(".toast-message").forEach(e=>{e.innerHTML=t})}),e&&(e="loading"==e?'
':`${e}`,r.forEach(t=>{t.querySelectorAll(".toast-icon").forEach(t=>{t.innerHTML=e})})),null!==a&&a&&(r.forEach(t=>{t.classList.add("dismissable")}),setTimeout(()=>{i.hideToast(),delete _l[n]},3e3))}else{let i=yl({text:`${e=null==e?"":"loading"==e?'
':`${e}`}
${t}`,duration:a?3e3:0,gravity:"bottom",position:"left",className:a?"dismissable":"",onClick:function(){let t=!0;if(n){let e=document.querySelector(`div.toastify[toast_id=${n}]`).classList;e&&(t=-1!=Array.prototype.slice.call(e).indexOf("dismissable"))}i&&t&&(i.hideToast(),n&&delete _l[n])}}).showToast();n&&(_l[n]=i,i.toastElement.setAttribute("toast_id",n))}};rl.on("toast",t=>{const{msg:e,icon:a,dismiss:n,id:i}=t;kl(e,a||null,void 0===n||n,i||null)});const Al={components:{QueueItem:vl},data:()=>({cachedTabWidth:parseInt(localStorage.getItem("downloadTabWidth"))||300,queue:[],queueList:{},queueComplete:[]}),computed:{...Vo({clientMode:"getClientMode"})},mounted(){rl.on("startDownload",this.startDownload),rl.on("startConversion",this.startConversion),rl.on("init_downloadQueue",this.initQueue),rl.on("addedToQueue",this.addToQueue),rl.on("updateQueue",this.updateQueue),rl.on("removedFromQueue",this.removeFromQueue),rl.on("finishDownload",this.finishDownload),rl.on("removedAllDownloads",this.removeAllDownloads),rl.on("removedFinishedDownloads",this.removedFinishedDownloads),"true"===localStorage.getItem("slimDownloads")&&this.$refs.list.classList.add("slim"),"true"===localStorage.getItem("downloadTabOpen")&&(this.$refs.container.classList.remove("tab_hidden"),this.setTabWidth(this.cachedTabWidth)),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",this.handleDrag)}),window.addEventListener("beforeunload",()=>{localStorage.setItem("downloadTabWidth",this.cachedTabWidth)})},methods:{...Go(["setErrors"]),onRemoveItem(t){rl.emit("removeFromQueue",t)},setTabWidth(t){void 0===t?(this.$refs.container.style.width="",this.$refs.list.style.width=""):(this.$refs.container.style.width=t+"px",this.$refs.list.style.width=t+"px")},initQueue(t){const{queue:e,queueComplete:a,currentItem:n,queueList:i,restored:r}=t;a.length&&a.forEach(t=>{i[t].silent=!0,this.addToQueue(i[t])}),n&&(i[n].silent=!0,this.addToQueue(i[n],!0)),e.forEach(t=>{i[t].silent=!0,this.addToQueue(i[t])}),r&&(kl(this.$t("toasts.queueRestored"),"done",!0,"restoring_queue"),rl.emit("queueRestored"))},addToQueue(t,e=!1){if(Array.isArray(t)){if(t.length>1)return t.forEach((t,e)=>{t.silent=!0,this.addToQueue(t)}),void kl(this.$t("toasts.addedMoreToQueue",{n:t.length}),"playlist_add_check");t=t[0]}this.$set(t,"current",e),this.$set(this.queueList,t.uuid,t);if(t.downloaded+t.failed==t.size){const e=-1==this.queueComplete.indexOf(t.uuid);this.$set(this.queueList[t.uuid],"status","download finished"),e&&this.queueComplete.push(t.uuid)}else{-1==this.queue.indexOf(t.uuid)&&this.queue.push(t.uuid)}(t.progress>0&&t.progress<100||e)&&this.startDownload(t.uuid),t.silent||kl(this.$t("toasts.addedToQueue",{item:t.title}),"playlist_add_check")},updateQueue(t){const{uuid:e,downloaded:a,failed:n,progress:i,conversion:r,error:s,data:o,errid:l}=t;e&&this.queue.indexOf(e)>-1&&(a&&this.queueList[e].downloaded++,n&&(this.queueList[e].failed++,this.queueList[e].errors.push({message:s,data:o,errid:l})),i&&(this.queueList[e].progress=i),r&&(this.queueList[e].conversion=r))},removeFromQueue(t){let e=this.queue.indexOf(t);e>-1&&(this.$delete(this.queue,e),this.$delete(this.queueList,t))},removeAllDownloads(t){if(this.queueComplete=[],t){this.queue=[t];let e=this.queueList[t];this.queueList={},this.queueList[t]=e}else this.queue=[],this.queueList={}},removedFinishedDownloads(){this.queueComplete.forEach(t=>{this.$delete(this.queueList,t)}),this.queueComplete=[]},toggleDownloadTab(t){this.setTabWidth(),this.$refs.container.style.transition="all 250ms ease-in-out";let e=this.$refs.container.classList.toggle("tab_hidden");e||this.setTabWidth(this.cachedTabWidth),localStorage.setItem("downloadTabOpen",!e)},cleanQueue(){rl.emit("removeFinishedDownloads")},cancelQueue(){rl.emit("cancelAllDownloads")},openDownloadsFolder(){rl.emit("openDownloadsFolder")},handleDrag(t){let e=window.innerWidth-t.pageX+2;e<250?e=250:e>500&&(e=500),this.cachedTabWidth=e,this.setTabWidth(e)},startDrag(){document.addEventListener("mousemove",this.handleDrag)},startDownload(t){this.$set(this.queueList[t],"status","downloading")},finishDownload(t){if(!(this.queue.indexOf(t)>-1))return;this.$set(this.queueList[t],"status","download finished"),kl(this.$t("toasts.finishDownload",{item:this.queueList[t].title}),"done");let e=this.queue.indexOf(t);e>-1&&(this.queue.splice(e,1),this.queueComplete.push(t)),this.queue.length<=0&&kl(this.$t("toasts.allDownloaded"),"done_all")},startConversion(t){this.$set(this.queueList[t],"status","converting"),this.$set(this.queueList[t],"conversion",0)},async showErrorsTab(t){await this.setErrors(t),this.$router.push({name:"Errors"})}}};var wl=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"container",staticClass:"tab_hidden",attrs:{id:"download_tab_container","data-label":t.$t("downloads"),"aria-label":"downloads"},on:{transitionend:function(e){t.$refs.container.style.transition=""}}},[a("div",{ref:"dragHandler",attrs:{id:"download_tab_drag_handler"},on:{mousedown:function(e){return e.preventDefault(),t.startDrag(e)}}}),t._v(" "),a("i",{ref:"toggler",staticClass:"material-icons download_bar_icon",attrs:{id:"toggle_download_tab",title:t.$t("globals.toggle_download_tab_hint")},on:{click:function(e){return e.preventDefault(),t.toggleDownloadTab(e)}}}),t._v(" "),a("div",{attrs:{id:"queue_buttons"}},[t.clientMode?a("i",{staticClass:"material-icons download_bar_icon",attrs:{id:"open_downloads_folder",title:t.$t("globals.open_downloads_folder")},on:{click:t.openDownloadsFolder}},[t._v("\n\t\t\tfolder_open\n\t\t")]):t._e(),t._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{id:"clean_queue",title:t.$t("globals.clean_queue_hint")},on:{click:t.cleanQueue}},[t._v("\n\t\t\tclear_all\n\t\t")]),t._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{id:"cancel_queue",title:t.$t("globals.cancel_queue_hint")},on:{click:t.cancelQueue}},[t._v("\n\t\t\tdelete_sweep\n\t\t")])]),t._v(" "),a("div",{ref:"list",attrs:{id:"download_list"}},t._l(t.queueList,(function(e){return a("QueueItem",{key:e.uuid,attrs:{"queue-item":e},on:{"show-errors":t.showErrorsTab,"remove-item":t.onRemoveItem}})})),1)])};wl._withStripped=!0;var Cl=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheDownloadTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:wl,staticRenderFns:[]},(function(t){t&&t("data-v-1c6e94be_0",{source:"#download_tab_container[data-v-1c6e94be] {\n height: 100vh;\n}\n\n/*# sourceMappingURL=TheDownloadTab.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheDownloadTab.vue","TheDownloadTab.vue"],names:[],mappings:"AAyDA;EACA,aAAA;AAAA;;ACvDA,6CAA6C",file:"TheDownloadTab.vue",sourcesContent:[null,"#download_tab_container {\n height: 100vh; }\n\n/*# sourceMappingURL=TheDownloadTab.vue.map */"]},media:void 0})}),Al,"data-v-1c6e94be",!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const xl={data:()=>({lastTextSearch:""}),mounted(){document.addEventListener("keyup",t=>{"Backspace"==t.key&&t.ctrlKey&&t.shiftKey&&(this.$refs.searchbar.value="",this.$refs.searchbar.focus())})},methods:{test(){console.log("test passato")},async handleSearchBarKeyup(t){if(!(13===t.keyCode))return;let e=this.$refs.searchbar.value;if(""===e)return;let a=no(e),n=t.ctrlKey,i="Link Analyzer"===this.$route.name,r="Search"===this.$route.name,s=e===this.lastTextSearch;if(a)n?this.$root.$emit("QualityModal:open",e):i?rl.emit("analyzeLink",e):ol.sendAddToQueue(e);else{if(r&&s)return void this.$root.$emit("mainSearch:updateResults",e);r||await this.$router.push({name:"Search"}),s||(this.$root.$emit("updateSearchLoadingState",!0),this.lastTextSearch=e),this.$root.$emit("mainSearch:showNewResults",e,window.main_selected)}}}};var Tl=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header",{attrs:{id:"search","aria-label":"searchbar"}},[t._m(0),t._v(" "),a("input",{ref:"searchbar",attrs:{id:"searchbar",autocomplete:"off",type:"search",name:"searchbar",value:"",placeholder:t.$t("searchbar"),autofocus:""},on:{keyup:function(e){return t.handleSearchBarKeyup(e)}}})])};Tl._withStripped=!0;const Sl={components:{TheSidebar:ao,TheSearchBar:function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheSearchBar.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Tl,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"search__icon"},[e("i",{staticClass:"material-icons"},[this._v("search")])])}]},(function(t){t&&t("data-v-79300907_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheSearchBar.vue"},media:void 0})}),xl,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}})),TheMiddleSection:yo,TheDownloadTab:Cl,TheTrackPreview:Co,TheQualityModal:dl,BaseLoadingPlaceholder:mo,TheContextMenu:ml}};var zl=function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("TheSidebar"),this._v(" "),e("div",{staticClass:"app-container"},[e("div",{staticClass:"content-container"},[e("TheSearchBar"),this._v(" "),e("TheMiddleSection")],1),this._v(" "),e("TheDownloadTab",{staticClass:"downlaods"})],1),this._v(" "),e("BaseLoadingPlaceholder",{attrs:{id:"start_app_placeholder",text:"Connecting to the server..."}}),this._v(" "),e("TheTrackPreview"),this._v(" "),e("TheQualityModal"),this._v(" "),e("TheContextMenu")],1)};zl._withStripped=!0;var Ml=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/App.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:zl,staticRenderFns:[]},(function(t){t&&t("data-v-c274bafe_0",{source:".app-container {\n display: flex;\n}\n.content-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-left: 48px;\n}\n.downlaods {\n flex-basis: 32px;\n}\n\n/*# sourceMappingURL=App.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/App.vue","App.vue"],names:[],mappings:"AAsBA;EACA,aAAA;AAAA;AAGA;EACA,WAAA;EACA,aAAA;EACA,sBAAA;EACA,iBAAA;AAAA;AAGA;EACA,gBAAA;AAAA;;ACtBA,kCAAkC",file:"App.vue",sourcesContent:[null,".app-container {\n display: flex; }\n\n.content-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-left: 48px; }\n\n.downlaods {\n flex-basis: 32px; }\n\n/*# sourceMappingURL=App.vue.map */"]},media:void 0})}),Sl,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}})),Pl=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"]; /*! * vue-i18n v8.18.2 * (c) 2020 kazuya kawaguchi @@ -27,4 +27,4 @@ var t=Object.freeze({});function e(t){return null==t}function a(t){return null!= * (c) 2020 Evan You * @license MIT */ -function Fc(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Ec(t,e){return Fc(t)&&t._isRouter&&(null==e||t.type===e)}function jc(t,e){for(var a in e)t[a]=e[a];return t}var Oc={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var a=e.props,n=e.children,i=e.parent,r=e.data;r.routerView=!0;for(var s=i.$createElement,o=a.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),d=0,u=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&d++,p.keepAlive&&i._directInactive&&i._inactive&&(u=!0),i=i.$parent}if(r.routerViewDepth=d,u){var h=c[o],m=h&&h.component;return m?(h.configProps&&Bc(m,r,h.route,h.configProps),s(m,r,n)):s()}var g=l.matched[d],f=g&&g.components[o];if(!g||!f)return c[o]=null,s();c[o]={component:f},r.registerRouteInstance=function(t,e){var a=g.instances[o];(e&&a!==t||!e&&a===t)&&(g.instances[o]=e)},(r.hook||(r.hook={})).prepatch=function(t,e){g.instances[o]=e.componentInstance},r.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[o]&&(g.instances[o]=t.componentInstance)};var v=g.props&&g.props[o];return v&&(jc(c[o],{route:l,configProps:v}),Bc(f,r,l,v)),s(f,r,n)}};function Bc(t,e,a,n){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(a,n);if(i){i=e.props=jc({},i);var r=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(r[s]=i[s],delete i[s])}}var qc=/[!'()*]/g,Uc=function(t){return"%"+t.charCodeAt(0).toString(16)},Vc=/%2C/g,Gc=function(t){return encodeURIComponent(t).replace(qc,Uc).replace(Vc,",")},Wc=decodeURIComponent;function Hc(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var a=t.replace(/\+/g," ").split("="),n=Wc(a.shift()),i=a.length>0?Wc(a.join("=")):null;void 0===e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}function Kc(t){var e=t?Object.keys(t).map((function(e){var a=t[e];if(void 0===a)return"";if(null===a)return Gc(e);if(Array.isArray(a)){var n=[];return a.forEach((function(t){void 0!==t&&(null===t?n.push(Gc(e)):n.push(Gc(e)+"="+Gc(t)))})),n.join("&")}return Gc(e)+"="+Gc(a)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var Qc=/\/?$/;function Yc(t,e,a,n){var i=n&&n.options.stringifyQuery,r=e.query||{};try{r=Jc(r)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:r,params:e.params||{},fullPath:td(e,i),matched:t?Xc(t):[]};return a&&(s.redirectedFrom=td(a,i)),Object.freeze(s)}function Jc(t){if(Array.isArray(t))return t.map(Jc);if(t&&"object"==typeof t){var e={};for(var a in t)e[a]=Jc(t[a]);return e}return t}var Zc=Yc(null,{path:"/"});function Xc(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function td(t,e){var a=t.path,n=t.query;void 0===n&&(n={});var i=t.hash;return void 0===i&&(i=""),(a||"/")+(e||Kc)(n)+i}function ed(t,e){return e===Zc?t===e:!!e&&(t.path&&e.path?t.path.replace(Qc,"")===e.path.replace(Qc,"")&&t.hash===e.hash&&ad(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&ad(t.query,e.query)&&ad(t.params,e.params)))}function ad(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var a=Object.keys(t),n=Object.keys(e);return a.length===n.length&&a.every((function(a){var n=t[a],i=e[a];return"object"==typeof n&&"object"==typeof i?ad(n,i):String(n)===String(i)}))}function nd(t,e,a){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var i=e.split("/");a&&i[i.length-1]||i.pop();for(var r=t.replace(/^\//,"").split("/"),s=0;s=0&&(e=t.slice(n),t=t.slice(0,n));var i=t.indexOf("?");return i>=0&&(a=t.slice(i+1),t=t.slice(0,i)),{path:t,query:a,hash:e}}(i.path||""),c=e&&e.path||"/",d=l.path?nd(l.path,c,a||i.append):c,u=function(t,e,a){void 0===e&&(e={});var n,i=a||Hc;try{n=i(t||"")}catch(t){n={}}for(var r in e)n[r]=e[r];return n}(l.query,i.query,n&&n.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:u,hash:p}}var xd,Td=function(){},Sd={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,a=this.$router,n=this.$route,i=a.resolve(this.to,n,this.append),r=i.location,s=i.route,o=i.href,l={},c=a.options.linkActiveClass,d=a.options.linkExactActiveClass,u=null==c?"router-link-active":c,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?u:this.activeClass,m=null==this.exactActiveClass?p:this.exactActiveClass,g=s.redirectedFrom?Yc(null,Cd(s.redirectedFrom),null,a):s;l[m]=ed(n,g),l[h]=this.exact?l[m]:function(t,e){return 0===t.path.replace(Qc,"/").indexOf(e.path.replace(Qc,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var a in e)if(!(a in t))return!1;return!0}(t.query,e.query)}(n,g);var f=l[m]?this.ariaCurrentValue:null,v=function(t){zd(t)&&(e.replace?a.replace(r,Td):a.push(r,Td))},b={click:zd};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=v})):b[this.event]=v;var y={class:l},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:v,isActive:l[h],isExactActive:l[m]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)y.on=b,y.attrs={href:o,"aria-current":f};else{var k=function t(e){var a;if(e)for(var n=0;n-1&&(o.params[p]=a.params[p]);return o.path=wd(d.path,o.params),l(d,o,s)}if(o.path){o.params={};for(var h=0;h=t.length?a():t[i]?e(t[i],(function(){n(i+1)})):n(i+1)};n(0)}function tu(t){return function(e,a,n){var i=!1,r=0,s=null;eu(t,(function(t,e,a,o){if("function"==typeof t&&void 0===t.cid){i=!0,r++;var l,c=iu((function(e){var i;((i=e).__esModule||nu&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:xd.extend(e),a.components[o]=e,--r<=0&&n()})),d=iu((function(t){var e="Failed to resolve async component "+o+": "+t;s||(s=Fc(t)?t:new Error(e),n(s))}));try{l=t(c,d)}catch(t){d(t)}if(l)if("function"==typeof l.then)l.then(c,d);else{var u=l.component;u&&"function"==typeof u.then&&u.then(c,d)}}})),i||n()}}function eu(t,e){return au(t.map((function(t){return Object.keys(t.components).map((function(a){return e(t.components[a],t.instances[a],t,a)}))})))}function au(t){return Array.prototype.concat.apply([],t)}var nu="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function iu(t){var e=!1;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];if(!e)return e=!0,t.apply(this,a)}}var ru=1,su=2,ou=3,lu=4;function cu(t,e){return uu(t,e,ru,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return pu.forEach((function(a){a in t&&(e[a]=t[a])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function du(t,e){return uu(t,e,ou,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function uu(t,e,a,n){var i=new Error(n);return i._isRouter=!0,i.from=t,i.to=e,i.type=a,i}var pu=["params","query","hash"];var hu=function(t,e){this.router=t,this.base=function(t){if(!t)if(Md){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Zc,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function mu(t,e,a,n){var i=eu(t,(function(t,n,i,r){var s=function(t,e){"function"!=typeof t&&(t=xd.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return a(t,n,i,r)})):a(s,n,i,r)}));return au(n?i.reverse():i)}function gu(t,e){if(e)return function(){return t.apply(e,arguments)}}hu.prototype.listen=function(t){this.cb=t},hu.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},hu.prototype.onError=function(t){this.errorCbs.push(t)},hu.prototype.transitionTo=function(t,e,a){var n=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){var t=n.current;n.updateRoute(i),e&&e(i),n.ensureURL(),n.router.afterHooks.forEach((function(e){e&&e(i,t)})),n.ready||(n.ready=!0,n.readyCbs.forEach((function(t){t(i)})))}),(function(t){a&&a(t),t&&!n.ready&&(n.ready=!0,Ec(t,ru)?n.readyCbs.forEach((function(t){t(i)})):n.readyErrorCbs.forEach((function(e){e(t)})))}))},hu.prototype.confirmTransition=function(t,e,a){var n,i=this,r=this.current,s=function(t){!Ec(t)&&Fc(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):console.error(t)),a&&a(t)},o=t.matched.length-1,l=r.matched.length-1;if(ed(t,r)&&o===l&&t.matched[o]===r.matched[l])return this.ensureURL(),s(uu(n=r,t,lu,'Avoided redundant navigation to current location: "'+n.fullPath+'".'));var c=function(t,e){var a,n=Math.max(t.length,e.length);for(a=0;a0)){var e=this.router,a=e.options.scrollBehavior,n=Yd&&a;n&&this.listeners.push(Od());var i=function(){var a=t.current,i=vu(t.base);t.current===Zc&&i===t._startLocation||t.transitionTo(i,(function(t){n&&Bd(e,t,a,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){Jd(id(n.base+t.fullPath)),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.replace=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){Zd(id(n.base+t.fullPath)),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.ensureURL=function(t){if(vu(this.base)!==this.current.fullPath){var e=id(this.base+this.current.fullPath);t?Jd(e):Zd(e)}},e.prototype.getCurrentLocation=function(){return vu(this.base)},e}(hu);function vu(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var bu=function(t){function e(e,a,n){t.call(this,e,a),n&&function(t){var e=vu(t);if(!/^\/#/.test(e))return window.location.replace(id(t+"/#"+e)),!0}(this.base)||yu()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,a=Yd&&e;a&&this.listeners.push(Od());var n=function(){var e=t.current;yu()&&t.transitionTo(_u(),(function(n){a&&Bd(t.router,n,e,!0),Yd||wu(n.fullPath)}))},i=Yd?"popstate":"hashchange";window.addEventListener(i,n),this.listeners.push((function(){window.removeEventListener(i,n)}))}},e.prototype.push=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){Au(t.fullPath),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.replace=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){wu(t.fullPath),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;_u()!==e&&(t?Au(e):wu(e))},e.prototype.getCurrentLocation=function(){return _u()},e}(hu);function yu(){var t=_u();return"/"===t.charAt(0)||(wu("/"+t),!1)}function _u(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var a=(t=t.slice(e+1)).indexOf("?");if(a<0){var n=t.indexOf("#");t=n>-1?decodeURI(t.slice(0,n))+t.slice(n):decodeURI(t)}else t=decodeURI(t.slice(0,a))+t.slice(a);return t}function ku(t){var e=window.location.href,a=e.indexOf("#");return(a>=0?e.slice(0,a):e)+"#"+t}function Au(t){Yd?Jd(ku(t)):window.location.hash=t}function wu(t){Yd?Zd(ku(t)):window.location.replace(ku(t))}var Cu=function(t){function e(e,a){t.call(this,e,a),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,a){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)}),a)},e.prototype.replace=function(t,e,a){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)}),a)},e.prototype.go=function(t){var e=this,a=this.index+t;if(!(a<0||a>=this.stack.length)){var n=this.stack[a];this.confirmTransition(n,(function(){e.index=a,e.updateRoute(n)}),(function(t){Ec(t,lu)&&(e.index=a)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(hu),xu=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=$d(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Yd&&!1!==t.fallback,this.fallback&&(e="hash"),Md||(e="abstract"),this.mode=e,e){case"history":this.history=new fu(this,t.base);break;case"hash":this.history=new bu(this,t.base,this.fallback);break;case"abstract":this.history=new Cu(this,t.base)}},Tu={currentRoute:{configurable:!0}};function Su(t,e){return t.push(e),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}xu.prototype.match=function(t,e,a){return this.matcher.match(t,e,a)},Tu.currentRoute.get=function(){return this.history&&this.history.current},xu.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var a=e.apps.indexOf(t);a>-1&&e.apps.splice(a,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var a=this.history;if(a instanceof fu||a instanceof bu){var n=function(){a.setupListeners()};a.transitionTo(a.getCurrentLocation(),n,n)}a.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},xu.prototype.beforeEach=function(t){return Su(this.beforeHooks,t)},xu.prototype.beforeResolve=function(t){return Su(this.resolveHooks,t)},xu.prototype.afterEach=function(t){return Su(this.afterHooks,t)},xu.prototype.onReady=function(t,e){this.history.onReady(t,e)},xu.prototype.onError=function(t){this.history.onError(t)},xu.prototype.push=function(t,e,a){var n=this;if(!e&&!a&&"undefined"!=typeof Promise)return new Promise((function(e,a){n.history.push(t,e,a)}));this.history.push(t,e,a)},xu.prototype.replace=function(t,e,a){var n=this;if(!e&&!a&&"undefined"!=typeof Promise)return new Promise((function(e,a){n.history.replace(t,e,a)}));this.history.replace(t,e,a)},xu.prototype.go=function(t){this.history.go(t)},xu.prototype.back=function(){this.go(-1)},xu.prototype.forward=function(){this.go(1)},xu.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},xu.prototype.resolve=function(t,e,a){var n=Cd(t,e=e||this.history.current,a,this),i=this.match(n,e),r=i.redirectedFrom||i.fullPath;return{location:n,route:i,href:function(t,e,a){var n="hash"===a?"#"+e:e;return t?id(t+"/"+n):n}(this.history.base,r,this.mode),normalizedTo:n,resolved:i}},xu.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Zc&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xu.prototype,Tu),xu.install=function t(e){if(!t.installed||xd!==e){t.installed=!0,xd=e;var a=function(t){return void 0!==t},n=function(t,e){var n=t.$options._parentVnode;a(n)&&a(n=n.data)&&a(n=n.registerRouteInstance)&&n(t,e)};e.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Oc),e.component("RouterLink",Sd);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},xu.version="3.3.4",Md&&window.Vue&&window.Vue.use(xu);var zu="object"==typeof global&&global&&global.Object===Object&&global,Mu="object"==typeof self&&self&&self.Object===Object&&self,Pu=zu||Mu||Function("return this")(),Du=Pu.Symbol,$u=Object.prototype,Nu=$u.hasOwnProperty,Lu=$u.toString,Ru=Du?Du.toStringTag:void 0;var Iu=Object.prototype.toString;var Fu=Du?Du.toStringTag:void 0;function Eu(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Fu&&Fu in Object(t)?function(t){var e=Nu.call(t,Ru),a=t[Ru];try{t[Ru]=void 0;var n=!0}catch(t){}var i=Lu.call(t);return n&&(e?t[Ru]=a:delete t[Ru]),i}(t):function(t){return Iu.call(t)}(t)}function ju(t){return null!=t&&"object"==typeof t}function Ou(t){return"symbol"==typeof t||ju(t)&&"[object Symbol]"==Eu(t)}function Bu(t,e){for(var a=-1,n=null==t?0:t.length,i=Array(n);++a-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function pp(t){return null!=t&&up(t.length)&&!Ku(t)}var hp=Object.prototype;function mp(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||hp)}function gp(t){return ju(t)&&"[object Arguments]"==Eu(t)}var fp=Object.prototype,vp=fp.hasOwnProperty,bp=fp.propertyIsEnumerable,yp=gp(function(){return arguments}())?gp:function(t){return ju(t)&&vp.call(t,"callee")&&!bp.call(t,"callee")};var _p="object"==typeof exports&&exports&&!exports.nodeType&&exports,kp=_p&&"object"==typeof module&&module&&!module.nodeType&&module,Ap=kp&&kp.exports===_p?Pu.Buffer:void 0,wp=(Ap?Ap.isBuffer:void 0)||function(){return!1},Cp={};function xp(t){return function(e){return t(e)}}Cp["[object Float32Array]"]=Cp["[object Float64Array]"]=Cp["[object Int8Array]"]=Cp["[object Int16Array]"]=Cp["[object Int32Array]"]=Cp["[object Uint8Array]"]=Cp["[object Uint8ClampedArray]"]=Cp["[object Uint16Array]"]=Cp["[object Uint32Array]"]=!0,Cp["[object Arguments]"]=Cp["[object Array]"]=Cp["[object ArrayBuffer]"]=Cp["[object Boolean]"]=Cp["[object DataView]"]=Cp["[object Date]"]=Cp["[object Error]"]=Cp["[object Function]"]=Cp["[object Map]"]=Cp["[object Number]"]=Cp["[object Object]"]=Cp["[object RegExp]"]=Cp["[object Set]"]=Cp["[object String]"]=Cp["[object WeakMap]"]=!1;var Tp="object"==typeof exports&&exports&&!exports.nodeType&&exports,Sp=Tp&&"object"==typeof module&&module&&!module.nodeType&&module,zp=Sp&&Sp.exports===Tp&&zu.process,Mp=function(){try{var t=Sp&&Sp.require&&Sp.require("util").types;return t||zp&&zp.binding&&zp.binding("util")}catch(t){}}(),Pp=Mp&&Mp.isTypedArray,Dp=Pp?xp(Pp):function(t){return ju(t)&&up(t.length)&&!!Cp[Eu(t)]},$p=Object.prototype.hasOwnProperty;function Np(t,e){var a=qu(t),n=!a&&yp(t),i=!a&&!n&&wp(t),r=!a&&!n&&!i&&Dp(t),s=a||n||i||r,o=s?function(t,e){for(var a=-1,n=Array(t);++a-1},Qp.prototype.set=function(t,e){var a=this.__data__,n=Hp(a,t);return n<0?(++this.size,a.push([t,e])):a[n][1]=e,this};var Yp=sp(Pu,"Map");function Jp(t,e){var a,n,i=t.__data__;return("string"==(n=typeof(a=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?i["string"==typeof e?"string":"hash"]:i.map}function Zp(t){var e=-1,a=null==t?0:t.length;for(this.clear();++eo))return!1;var c=r.get(t);if(c&&r.get(e))return c==e;var d=-1,u=!0,p=2&a?new Ah:void 0;for(r.set(t,e),r.set(e,t);++de||r&&s&&l&&!o&&!c||n&&s&&l||!a&&l||!i)return 1;if(!n&&!r&&!c&&t=o?l:l*("desc"==a[n]?-1:1)}return t.index-e.index}(t,e,a)}))}function Kh(t,e,a,n){return null==t?[]:(qu(e)||(e=null==e?[]:[e]),qu(a=n?void 0:a)||(a=null==a?[]:[a]),Hh(t,e,a))}function Qh(t,e,a){window.windows_stack=[],window.currentStack={},function(t){if("main"==t)return;const e=document.getElementsByClassName(t+"_tablinks");for(let t=0;t({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{backTab:Jh,albumView:Yh.bind(null,"album"),reset(){this.title="Loading...",this.image="",this.type="",this.currentTab="",this.sortKey="release_date",this.sortOrder="desc",this.link="",this.head=[],this.body=null},addToQueue(t){t.stopPropagation(),ol.sendAddToQueue(t.currentTarget.dataset.link)},sortBy(t){t==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=t,this.sortOrder="asc")},changeTab(t){this.currentTab=t},getCurrentTab(){return this.currentTab},updateSelected(){window.currentStack.selected=this.currentTab},checkNewRelease(t){let e=new Date,a=new Date(t);return a.setDate(a.getDate()+3),e.setHours(0,0,0,0),e.getTime()<=a.getTime()},showArtist(t){this.reset();const{name:e,picture_xl:a,id:n,releases:i}=t;this.title=e,this.image=a,this.type="Artist",this.link="https://www.deezer.com/artist/"+n,""===this.currentTab&&(this.currentTab=Object.keys(i)[0]),this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:this.$tc("globals.listTabs.title",1),sortKey:"title"},{title:this.$t("globals.listTabs.releaseDate"),sortKey:"release_date"},{title:this.$tc("globals.listTabs.track",2),sortKey:"nb_song"},{title:"",width:"32px"}],Gh(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?"nb_song"==this.sortKey?Kh(this.body[this.currentTab],(function(t){return new Number(t.nb_song)}),this.sortOrder):Kh(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){rl.on("show_artist",this.showArtist),uo.$on("artistTab:updateSelected",this.updateSelected),uo.$on("artistTab:changeTab",this.changeTab)}};var Xh=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"artist_tab"}},[a("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[a("h1",[t._v(t._s(t.title))]),t._v(" "),a("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("div",{staticClass:"tab"},t._l(t.body,(function(e,n){return a("button",{key:n,staticClass:"selective",class:{active:n===t.currentTab},attrs:{href:"#artist_"+n},on:{click:function(e){return t.changeTab(n)}}},[t._v("\n\t\t\t"+t._s(t.$tc("globals.listTabs."+n,2))+"\n\t\t")])})),0),t._v(" "),a("table",{staticClass:"table"},[a("thead",[a("tr",t._l(t.head,(function(e){return a("th",{class:{"sort-asc":e.sortKey==t.sortKey&&"asc"==t.sortOrder,"sort-desc":e.sortKey==t.sortKey&&"desc"==t.sortOrder,sortable:e.sortKey,clickable:e.sortKey},style:{width:e.width?e.width:"auto"},on:{click:function(a){e.sortKey&&t.sortBy(e.sortKey)}}},[t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t")])})),0)]),t._v(" "),a("tbody",t._l(t.showTable,(function(e){return a("tr",{key:e.id},[a("td",{staticClass:"inline-flex clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[a("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:e.cover_small}}),t._v(" "),e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t"),t.checkNewRelease(e.release_date)?a("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[t._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):t._e()]),t._v(" "),a("td",[t._v(t._s(e.release_date))]),t._v(" "),a("td",[t._v(t._s(e.nb_song))]),t._v(" "),a("td",{staticClass:"clickable",attrs:{"data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v(" file_download ")])])])})),0)]),t._v(" "),a("footer",[a("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};Xh._withStripped=!0;var tm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/ArtistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Xh,staticRenderFns:[]},(function(t){t&&t("data-v-3b523be2_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"ArtistTab.vue"},media:void 0})}),Zh,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const em={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:Jh,artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playPausePreview(t){uo.$emit("trackPreview:playPausePreview",t)},reset(){this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(t){ol.sendAddToQueue(t.currentTarget.dataset.link)},toggleAll(t){this.body.forEach(e=>{"track"==e.type&&(e.selected=t.currentTarget.checked)})},selectedLinks(){var t=[];return this.body&&this.body.forEach(e=>{"track"==e.type&&e.selected&&t.push("spotifyPlaylist"==this.type?e.uri:e.link)}),t.join(";")},convertDuration:co.convertDuration,showAlbum(t){this.reset();const{id:e,title:a,explicit_lyrics:n,label:i,artist:{name:r},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=t;this.type="album",this.link="https://www.deezer.com/album/"+e,this.title=a,this.explicit=n,this.label=i,this.metadata=`${r} • ${this.$tc("globals.listTabs.trackN",o)}`,this.release_date=l.substring(0,10),this.image=c,Gh(s)?this.body=null:this.body=s},showPlaylist(t){this.reset();const{id:e,title:a,picture_xl:n,creation_date:i,creator:{name:r},tracks:s,tracks:{length:o}}=t;this.type="playlist",this.link="https://www.deezer.com/playlist/"+e,this.title=a,this.image=n,this.release_date=i.substring(0,10),this.metadata=`${this.$t("globals.by",{artist:r})} • ${this.$tc("globals.listTabs.trackN",o)}`,Gh(s)?this.body=null:this.body=s},showSpotifyPlaylist(t){this.reset();const{uri:e,name:a,images:n,images:{length:i},owner:{display_name:r},tracks:s,tracks:{length:o}}=t;this.type="spotifyPlaylist",this.link=e,this.title=a,this.image=i?n[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`${this.$t("globals.by",{artist:r})} • ${this.$tc("globals.listTabs.trackN",o)}`,Gh(s)?this.body=null:this.body=s},selectRow(t,e){e.selected=!e.selected}},mounted(){uo.$on("tracklistTab:selectRow",this.selectRow),rl.on("show_album",this.showAlbum),rl.on("show_playlist",this.showPlaylist),rl.on("show_spotifyplaylist",this.showSpotifyPlaylist)}};var am=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"tracklist_tab"}},[a("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[a("h1",{staticClass:"inline-flex"},[t._v("\n\t\t\t"+t._s(t.title)+" "),t.explicit?a("i",{staticClass:"material-icons explicit_icon explicit_icon--right"},[t._v("explicit")]):t._e()]),t._v(" "),a("h2",{staticClass:"inline-flex"},[t.metadata?a("span",[t._v(t._s(t.metadata))]):t._e(),t._v(" "),t.release_date?a("span",{staticClass:"right"},[t._v(t._s(t.release_date))]):t._e()])]),t._v(" "),a("table",{staticClass:"table table--tracklist"},[a("thead",[a("tr",[t._m(0),t._v(" "),a("th",[t._v("#")]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),"playlist"===t.type?a("th",[t._v(t._s(t.$tc("globals.listTabs.album",1)))]):t._e(),t._v(" "),t._m(1),t._v(" "),a("th",{staticClass:"table__icon table__cell--center clickable"},[a("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:t.toggleAll}})])])]),t._v(" "),a("tbody",["spotifyPlaylist"!==t.type?[t._l(t.body,(function(e,n){return["track"==e.type?a("tr",{on:{click:function(a){return t.selectRow(n,e)}}},[a("td",{staticClass:"table__cell--x-small table__cell--center"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",t._g({staticClass:"material-icons",class:{preview_playlist_controls:e.preview,disabled:!e.preview},attrs:{"data-preview":e.preview,title:t.$t("globals.play_hint")}},{click:!!e.preview&&t.playPausePreview}),[t._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),t._v(" "),a("td",{staticClass:"table__cell--small table__cell--center track_position"},[t._v("\n\t\t\t\t\t\t\t"+t._s("album"===t.type?e.track_position:t.body.indexOf(e)+1)+"\n\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--large table__cell--with-icon"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.artist.id},on:{click:t.artistView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t\t\t")]),t._v(" "),"playlist"==t.type?a("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.album.id},on:{click:t.albumView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),a("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===t.type,"table__cell--x-small":"playlist"===t.type}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__icon table__cell--center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(a){var n=e.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=t._i(n,null);i.checked?s<0&&t.$set(e,"selected",n.concat([null])):s>-1&&t.$set(e,"selected",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(e,"selected",r)}}})])]):"disc_separator"==e.type?a("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[t._m(2,!0),t._v(" "),a("td",{staticClass:"table__cell--center"},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.number)+"\n\t\t\t\t\t\t")]),t._v(" "),a("td",{attrs:{colspan:"4"}})]):t._e()]}))]:t._l(t.body,(function(e,n){return a("tr",[a("td",[e.preview_url?a("i",{class:"material-icons"+(e.preview_url?" preview_playlist_controls":""),attrs:{"data-preview":e.preview_url,title:t.$t("globals.play_hint")},on:{click:t.playPausePreview}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):a("i",{staticClass:"material-icons disabled"},[t._v("play_arrow")])]),t._v(" "),a("td",[t._v(t._s(n+1))]),t._v(" "),a("td",{staticClass:"inline-flex"},[e.explicit?a("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")]),t._v(" "),a("td",[t._v(t._s(e.artists[0].name))]),t._v(" "),a("td",[t._v(t._s(e.album.name))]),t._v(" "),a("td",[t._v(t._s(t.convertDuration(Math.floor(e.duration_ms/1e3))))]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(a){var n=e.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=t._i(n,null);i.checked?s<0&&t.$set(e,"selected",n.concat([null])):s>-1&&t.$set(e,"selected",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(e,"selected",r)}}})])])}))],2)]),t._v(" "),t.label?a("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[t._v(t._s(t.label))]):t._e(),t._v(" "),a("footer",[a("button",{attrs:{"data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(""+t.$t("globals.download",{thing:t.$tc("globals.listTabs."+t.type,1)}))+"\n\t\t")]),t._v(" "),a("button",{staticClass:"with_icon",attrs:{"data-link":t.selectedLinks()},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(t.$t("tracklist.downloadSelection"))),a("i",{staticClass:"material-icons"},[t._v("file_download")])]),t._v(" "),a("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};am._withStripped=!0;var nm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TracklistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:am,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("music_note")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("timer")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[e("i",{staticClass:"material-icons"},[this._v("album")])])])}]},(function(t){t&&t("data-v-0dcbed64_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TracklistTab.vue"},media:void 0})}),em,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));let im={},rm=!1;function sm(){return rm?im:(rl.emit("get_home_data"),new Promise((t,e)=>{rl.on("init_home",e=>{im=e,rm=!0,rl.off("init_home"),t(e)})}))}const om={data:()=>({playlists:[],albums:[]}),async created(){const t=await sm();this.initHome(t)},computed:{...Vo(["isLoggedIn"]),needToWait(){return 0===this.getHomeData.albums.data.length&&0===this.getHomeData.playlists.data.length}},methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playlistView:Yh.bind(null,"playlist"),addToQueue(t){sl(t.currentTarget.dataset.link)},initHome(t){const{playlists:{data:e},albums:{data:a}}=t;this.playlists=e,this.albums=a}}};var lm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"home_tab"}},[a("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("globals.welcome")))]),t._v(" "),t.isLoggedIn?t._e():a("section",{ref:"notLogged",staticClass:"home_section"},[a("p",{attrs:{id:"home_not_logged_text"}},[t._v(t._s(t.$t("home.needTologin")))]),t._v(" "),a("router-link",{attrs:{tag:"button",name:"button",to:{name:"Settings"}}},[t._v("\n\t\t\t"+t._s(t.$t("home.openSettings"))+"\n\t\t")])],1),t._v(" "),t.playlists.length?a("section",{staticClass:"home_section"},[a("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularPlaylists")))]),t._v(" "),a("div",{staticClass:"release_grid"},t._l(t.playlists,(function(e){return a("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id,tabindex:"0"},on:{click:t.playlistView,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.playlistView(e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.user.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])})),0)]):t._e(),t._v(" "),t.albums.length?a("section",{staticClass:"home_section"},[a("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularAlbums")))]),t._v(" "),a("div",{staticClass:"release_grid"},t._l(t.albums,(function(e){return a("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id,tabindex:"0"},on:{click:t.albumView,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.albumView(e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(""+t.$t("globals.by",{artist:e.artist.name})))])])})),0)]):t._e()])};lm._withStripped=!0;var cm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheHomeTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:lm,staticRenderFns:[]},(function(t){t&&t("data-v-26f3965a_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),om,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));let dm={},um=!1;function pm(){return um?dm:(rl.emit("get_charts_data"),new Promise((t,e)=>{rl.on("init_charts",e=>{dm=e,um=!0,rl.off("init_charts"),t(e)})}))}const hm={data:()=>({country:"",id:0,countries:[],chart:[]}),async created(){rl.on("setChartTracks",this.setTracklist),this.$on("hook:destroyed",()=>{rl.off("setChartTracks")});const t=await pm();this.initCharts(t)},methods:{convertDuration:ro,artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playPausePreview(t){uo.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){uo.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){uo.$emit("trackPreview:previewMouseLeave",t)},addToQueue(t){t.stopPropagation(),sl(t.currentTarget.dataset.link)},getTrackList(t){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:e}},currentTarget:{dataset:{id:a}}}=t;this.country=e,localStorage.setItem("chart",this.country),this.id=a,rl.emit("getChartTracks",this.id)},setTracklist(t){this.chart=t},onChangeCountry(){this.country="",this.id=0},initCharts(t){if(this.countries=t,this.country=localStorage.getItem("chart")||"",!this.country)return;let e=0;for(;e{rl.on("init_favorites",e=>{fm=e,vm=!0,rl.off("init_favorites"),t(e)})}))}const ym={data:()=>({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[],activeTab:"playlist",tabs:["playlist","album","artist","track"]}),async created(){const t=await bm();0!==Object.entries(t).length&&this.setFavorites(t)},mounted(){rl.on("updated_userFavorites",this.updated_userFavorites),rl.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),rl.on("updated_userPlaylists",this.updated_userPlaylists),rl.on("updated_userAlbums",this.updated_userAlbums),rl.on("updated_userArtist",this.updated_userArtist),rl.on("updated_userTracks",this.updated_userTracks),this.$on("hook:destroyed",()=>{rl.off("updated_userFavorites"),rl.off("updated_userSpotifyPlaylists"),rl.off("updated_userPlaylists"),rl.off("updated_userAlbums"),rl.off("updated_userArtist"),rl.off("updated_userTracks")})},methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playlistView:Yh.bind(null,"playlist"),spotifyPlaylistView:Yh.bind(null,"spotifyplaylist"),playPausePreview(t){EventBus.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){EventBus.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){EventBus.$emit("trackPreview:previewMouseLeave",t)},convertDuration:ro,addToQueue(t){sl(t.currentTarget.dataset.link)},updated_userSpotifyPlaylists(t){this.spotifyPlaylists=t},updated_userPlaylists(t){this.playlists=t},updated_userAlbums(t){this.albums=t},updated_userArtist(t){this.artists=t},updated_userTracks(t){this.tracks=t},reloadTabs(){this.$refs.reloadButton.classList.add("spin"),rl.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&rl.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(t){this.setFavorites(t),this.$refs.reloadButton.addEventListener("animationiteration",()=>{this.$refs.reloadButton.classList.remove("spin"),kl(this.$t("toasts.refreshFavs"),"done",!0)},{once:!0})},setFavorites(t){const{tracks:e,albums:a,artists:n,playlists:i}=t;this.tracks=e,this.albums=a,this.artists=n,this.playlists=i}}};var _m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main_tabcontent",attrs:{id:"favorites_tab"}},[a("h2",{staticClass:"page_heading"},[t._v("\n\t\t"+t._s(t.$t("favorites.title"))+"\n\t\t"),a("div",{ref:"reloadButton",staticClass:"clickable reload-button reload-button--inline",attrs:{role:"button","aria-label":"reload"},on:{click:t.reloadTabs}},[a("i",{staticClass:"material-icons"},[t._v("sync")])])]),t._v(" "),a("div",{staticClass:"section-tabs"},t._l(t.tabs,(function(e){return a("div",{key:e,staticClass:"section-tabs__tab favorites_tablinks",class:{active:t.activeTab===e},on:{click:function(a){t.activeTab=e}}},[t._v("\n\t\t\t"+t._s(t.$tc("globals.listTabs."+e,2))+"\n\t\t")])})),0),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"playlist"===t.activeTab}},[0==t.playlists.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noPlaylists")))])]):t._e(),t._v(" "),t.playlists.length>0||t.spotifyPlaylists>0?a("div",{staticClass:"release_grid"},[t._l(t.playlists,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.playlistView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.creator.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])})),t._v(" "),t._l(t.spotifyPlaylists,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.spotifyPlaylistView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.creator.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])}))],2):t._e()]),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"album"===t.activeTab}},[0==t.albums.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noAlbums")))])]):t._e(),t._v(" "),t.albums.length>0?a("div",{staticClass:"release_grid"},t._l(t.albums,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(""+t.$t("globals.by",{artist:e.artist.name})))])])})),0):t._e()]),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"artist"===t.activeTab}},[0==t.artists.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noArtists")))])]):t._e(),t._v(" "),t.artists.length>0?a("div",{staticClass:"release_grid"},t._l(t.artists,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.artistView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"circle coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.name))])])})),0):t._e()]),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"track"===t.activeTab}},[0==t.tracks.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noTracks")))])]):t._e(),t._v(" "),t.tracks.length>0?a("table",{staticClass:"table"},t._l(t.tracks,(function(e){return a("tr",{staticClass:"track_row"},[a("td",{staticClass:"top-tracks-position",class:{first:1===e.position}},[t._v("\n\t\t\t\t\t"+t._s(e.position)+"\n\t\t\t\t")]),t._v(" "),a("td",[a("a",{staticClass:"rounded",class:{"single-cover":!!e.preview},attrs:{href:"#","data-preview":e.preview},on:{click:t.playPausePreview}},[e.preview?a("i",{staticClass:"material-icons preview_controls",attrs:{title:t.$t("globals.play_hint")},on:{mouseenter:t.previewMouseEnter,mouseleave:t.previewMouseLeave}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):t._e(),t._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:e.album.cover_small}})])]),t._v(" "),a("td",{staticClass:"table__cell--large breakline"},[t._v("\n\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.artist.id},on:{click:t.artistView}},[t._v("\n\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.album.id},on:{click:t.albumView}},[t._v("\n\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--small"},[t._v("\n\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--download clickable",attrs:{"data-link":e.link,role:"button","aria-label":"download"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])])])})),0):t._e()])])};_m._withStripped=!0;var km=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheFavoritesTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:_m,staticRenderFns:[]},(function(t){t&&t("data-v-779bfa9c_0",{source:".favorites_tabcontent {\n display: none;\n}\n.favorites_tabcontent--active {\n display: block;\n}\n\n/*# sourceMappingURL=TheFavoritesTab.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheFavoritesTab.vue","TheFavoritesTab.vue"],names:[],mappings:"AA8MA;EACA,aAAA;AAAA;AAEA;IACA,cAAA;AAAA;;AC7MA,8CAA8C",file:"TheFavoritesTab.vue",sourcesContent:[null,".favorites_tabcontent {\n display: none; }\n .favorites_tabcontent--active {\n display: block; }\n\n/*# sourceMappingURL=TheFavoritesTab.vue.map */"]},media:void 0})}),ym,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const Am={computed:{...Vo(["getErrors"]),title(){return`${this.getErrors.artist} - ${this.getErrors.title}`},errors(){return this.getErrors.errors}}};var wm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main_tabcontent",attrs:{id:"errors_tab"}},[a("h1",[t._v(t._s(t.$t("errors.title",{name:t.title})))]),t._v(" "),a("table",{staticClass:"table table--tracklist"},[a("tr",[a("th",[t._v("ID")]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.error",1)))])]),t._v(" "),t._l(t.errors,(function(e){return a("tr",{key:e.data.id},[a("td",[t._v(t._s(e.data.id))]),t._v(" "),a("td",[t._v(t._s(e.data.artist))]),t._v(" "),a("td",[t._v(t._s(e.data.title))]),t._v(" "),a("td",[t._v(t._s(e.errid?t.$t("errors.ids."+e.errid):e.message))])])}))],2)])};wm._withStripped=!0;var Cm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheErrorsTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:wm,staticRenderFns:[]},(function(t){t&&t("data-v-0a6b5468_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheErrorsTab.vue"},media:void 0})}),Am,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const xm={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};const Tm={data:()=>({link:"",title:"",subtitle:"",image:"",data:{},type:"",id:"0",countries:[]}),methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),convertDuration:ro,reset(){this.title="Loading...",this.subtitle="",this.image="",this.data={},this.type="",this.link="",this.countries=[]},showTrack(t){this.reset();const{title:e,title_version:a,album:{cover_xl:n},link:i,available_countries:r,id:s}=t;this.title=e+(a&&-1==e.indexOf(a)?" "+a:""),this.image=n,this.type="track",this.link=i,this.id=s,r.forEach(t=>{let e=[],a=[...t].map(t=>t.charCodeAt()+127397);e.push(String.fromCodePoint(...a)),e.push(xm[t]),this.countries.push(e)}),this.data=t},showAlbum(t){this.reset();const{title:e,cover_xl:a,link:n,id:i}=t;this.title=e,this.image=a,this.type="album",this.link=n,this.data=t,this.id=i},notSupported(){this.link="error"},addToQueue(t){sl(t.currentTarget.dataset.link)}},mounted(){uo.$on("linkAnalyzerTab:reset",this.reset),rl.on("analyze_track",this.showTrack),rl.on("analyze_album",this.showAlbum),rl.on("analyze_notSupported",this.notSupported)}};var Sm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent image_header",attrs:{id:"analyzer_tab"}},[a("h2",{staticClass:"page_heading page_heading--capitalize"},[t._v(t._s(t.$t("sidebar.linkAnalyzer")))]),t._v(" "),""===t.link?a("div",[a("p",[t._v("\n\t\t\t"+t._s(t.$t("linkAnalyzer.info"))+"\n\t\t")]),t._v(" "),a("p",[t._v("\n\t\t\t"+t._s(t.$t("linkAnalyzer.useful"))+"\n\t\t")])]):"error"===t.link?a("div",[a("h2",[t._v(t._s(t.$t("linkAnalyzer.linkNotSupported")))]),t._v(" "),a("p",[t._v(t._s(t.$t("linkAnalyzer.linkNotSupportedYet")))])]):a("div",[a("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[a("div",[a("h1",[t._v(t._s(t.title))]),t._v(" "),"track"==t.type?a("h2",[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("span",{staticClass:"clickable",attrs:{place:"artist","data-id":t.data.artist.id},on:{click:t.artistView}},[t._v(t._s(t.data.artist.name))])]),t._v("\n\t\t\t\t\t•\n\t\t\t\t\t"),a("i18n",{attrs:{path:"globals.in",tag:"span"}},[a("span",{staticClass:"clickable",attrs:{place:"album","data-id":t.data.album.id},on:{click:t.albumView}},[t._v(t._s(t.data.album.title))])])],1):"album"==t.type?a("h2",[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("span",{staticClass:"clickable",attrs:{place:"artist","data-id":t.data.artist.id},on:{click:t.artistView}},[t._v(t._s(t.data.artist.name))])]),t._v("\n\t\t\t\t\t"+t._s(" • "+t.$tc("globals.listTabs.trackN",t.data.nb_tracks))+"\n\t\t\t\t")],1):t._e()]),t._v(" "),a("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)},click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("table",{staticClass:"table"},[t.data.id?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.id")))]),t._v(" "),a("td",[t._v(t._s(t.data.id))])]):t._e(),t._v(" "),t.data.isrc?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.isrc")))]),t._v(" "),a("td",[t._v(t._s(t.data.isrc))])]):t._e(),t._v(" "),t.data.upc?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.upc")))]),t._v(" "),a("td",[t._v(t._s(t.data.upc))])]):t._e(),t._v(" "),t.data.duration?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.duration")))]),t._v(" "),a("td",[t._v(t._s(t.convertDuration(t.data.duration)))])]):t._e(),t._v(" "),t.data.disk_number?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.diskNumber")))]),t._v(" "),a("td",[t._v(t._s(t.data.disk_number))])]):t._e(),t._v(" "),t.data.track_position?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.trackNumber")))]),t._v(" "),a("td",[t._v(t._s(t.data.track_position))])]):t._e(),t._v(" "),t.data.release_date?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.releaseDate")))]),t._v(" "),a("td",[t._v(t._s(t.data.release_date))])]):t._e(),t._v(" "),t.data.bpm?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.bpm")))]),t._v(" "),a("td",[t._v(t._s(t.data.bpm))])]):t._e(),t._v(" "),t.data.label?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.label")))]),t._v(" "),a("td",[t._v(t._s(t.data.label))])]):t._e(),t._v(" "),t.data.record_type?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.recordType")))]),t._v(" "),a("td",[t._v(t._s(t.$tc("globals.listTabs."+t.data.record_type,1)))])]):t._e(),t._v(" "),t.data.genres&&t.data.genres.data.length?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.genres")))]),t._v(" "),a("td",[t._v(t._s(t.data.genres.data.map((function(t){return t.name})).join("; ")))])]):t._e()]),t._v(" "),"album"==t.type?a("div",[a("button",{attrs:{"data-id":t.id},on:{click:t.albumView}},[t._v(t._s(t.$t("linkAnalyzer.table.tracklist")))])]):t._e(),t._v(" "),t.countries.length?a("div",t._l(t.countries,(function(e){return a("p",[t._v(t._s(e[0])+" - "+t._s(e[1]))])})),0):t._e()])])};Sm._withStripped=!0;var zm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheLinkAnalyzerTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Sm,staticRenderFns:[]},(function(t){t&&t("data-v-3990b79a_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheLinkAnalyzerTab.vue"},media:void 0})}),Tm,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const Mm={data:()=>({paypal:'\n\x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ethereum:'',current:null,latest:null,updateAvailable:!1,deemixVersion:null}),computed:{...Vo(["getAboutInfo"])},methods:{initUpdate(t){const{currentCommit:e,latestCommit:a,updateAvailable:n,deemixVersion:i}=t;this.current=e,this.latest=a,this.updateAvailable=n,this.deemixVersion=i}},mounted(){this.initUpdate(this.getAboutInfo)}};var Pm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"about_tab"}},[a("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("sidebar.about")))]),t._v(" "),a("ul",[a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.updates.currentVersion"))+":\n\t\t\t"),a("span",[t._v(t._s(t.current||t.$t("about.updates.versionNotAvailable")))])]),t._v(" "),a("li",[t._v(t._s(t.$t("about.updates.deemixVersion"))+": "+t._s(t.deemixVersion))]),t._v(" "),t.updateAvailable&&t.latest?a("li",[t._v(t._s(t.$t("about.updates.updateAvailable",{version:t.latest})))]):t._e()]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.usesLibrary"))}}),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.thanks"))}}),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.upToDate"))}})]),t._v(" "),a("h2",[t._v(t._s(t.$t("about.titles.usefulLinks")))]),t._v(" "),a("ul",{staticClass:"no-dots"},[a("li",[a("a",{attrs:{href:"https://deemix.app",target:"_blank"}},[t._v("🌍 "+t._s(t.$t("about.officialWebsite")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix",target:"_blank"}},[t._v("🚀 "+t._s(t.$t("about.officialRepo")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix-webui",target:"_blank"}},[t._v("💻 "+t._s(t.$t("about.officialWebuiRepo")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://www.reddit.com/r/deemix",target:"_blank"}},[t._v("🤖 "+t._s(t.$t("about.officialSubreddit")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://t.me/RemixDevNews",target:"_blank"}},[t._v("📰 "+t._s(t.$t("about.newsChannel")))])])]),t._v(" "),a("h2",[t._v("\n\t\t"+t._s(t.$t("about.titles.bugReports"))+"\n\t\t"),a("span",{staticClass:"subheading"},[t._v("\n\t\t\t"+t._s(t.$t("about.subtitles.bugReports"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.questions"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.beforeReporting"))+"\n\t\t")]),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.beSure"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.duplicateReports"))+"\n\t\t")]),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.dontOpenIssues"))}})]),t._v(" "),a("h2",[t._v("\n\t\t"+t._s(t.$t("about.titles.contributing"))+"\n\t\t"),a("span",{staticClass:"subheading"},[t._v("\n\t\t\t"+t._s(t.$t("about.subtitles.contributing"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.newUI"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.acceptFeatures"))+"\n\t\t")]),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.contributeWebUI"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.otherLanguages"))+"\n\t\t")]),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.understandingCode"))+"\n\t\t")])]),t._v(" "),a("h2",[t._v("\n\t\t"+t._s(t.$t("about.titles.donations"))+"\n\t\t"),a("span",{staticClass:"subheading"},[t._v("\n\t\t\t"+t._s(t.$t("about.subtitles.donations"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.itsFree"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.notObligated"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",[a("i",{domProps:{innerHTML:t._s(t.paypal)}}),t._v(" "),a("strong",[t._v("PayPal:")]),t._v(" "),a("a",{attrs:{href:"https://paypal.me/RemixDev",target:"_blank"}},[t._v("PayPal.me/RemixDev")])]),t._v(" "),a("li",[a("i",{staticClass:"ethereum",domProps:{innerHTML:t._s(t.ethereum)}}),t._v(" "),a("strong",[t._v("Ethereum:")]),t._v(" 0x1d2aa67e671485CD4062289772B662e0A6Ff976c\n\t\t")])]),t._v(" "),a("h2",[t._v(t._s(t.$t("about.titles.license")))]),t._v(" "),t._m(0),t._v(" "),a("p",{domProps:{innerHTML:t._s(t.$t("about.lincensedUnder"))}})])};Pm._withStripped=!0;var Dm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheAboutTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Pm,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[e("img",{staticStyle:{"border-width":"0"},attrs:{alt:"GNU General Public License",src:"https://www.gnu.org/graphics/gplv3-127x51.png"}})])])}]},(function(t){t&&t("data-v-c6d4c79c_0",{source:"@charset \"UTF-8\";\nli[data-v-c6d4c79c],\np[data-v-c6d4c79c],\na[data-v-c6d4c79c] {\n letter-spacing: 0.4px;\n font-size: 20px;\n line-height: 1.2;\n}\ni[data-v-c6d4c79c] {\n vertical-align: middle;\n}\ni[data-v-c6d4c79c] svg {\n fill: white;\n width: 20px;\n}\n.ethereum[data-v-c6d4c79c] svg {\n fill: var(--foreground);\n}\n[data-v-c6d4c79c]:link {\n text-decoration: none;\n}\n#about_tab[data-v-c6d4c79c] {\n margin-bottom: 40px;\n}\nh2[data-v-c6d4c79c] {\n text-transform: capitalize;\n}\nh2[data-v-c6d4c79c]:not(.page_heading) {\n font-size: 2rem;\n border-bottom: 1px solid rgba(51, 51, 51, 0.25);\n padding-top: 2rem;\n padding-bottom: 1rem;\n}\nh2 .subheading[data-v-c6d4c79c] {\n display: block;\n font-size: 0.5em;\n margin-top: 0.5em;\n font-weight: normal;\n opacity: 0.8;\n text-transform: none;\n}\np[data-v-c6d4c79c] {\n margin: 0 !important;\n}\nul li[data-v-c6d4c79c] {\n margin-bottom: 7px;\n}\nh2 + ul[data-v-c6d4c79c] {\n margin-top: 1rem;\n}\nul + ul[data-v-c6d4c79c] {\n margin-top: 1.25rem;\n}\nul.no-dots[data-v-c6d4c79c] {\n list-style-type: none;\n}\nul[data-v-c6d4c79c]:not(.no-dots) {\n list-style-type: none;\n}\nul:not(.no-dots) li[data-v-c6d4c79c] {\n position: relative;\n}\nul:not(.no-dots) li[data-v-c6d4c79c]::before {\n content: '—';\n position: absolute;\n left: -30px;\n opacity: 0.25;\n}\n\n/*# sourceMappingURL=TheAboutTab.vue.map */",map:{version:3,sources:["TheAboutTab.vue","/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheAboutTab.vue"],names:[],mappings:"AAAA,gBAAgB;ACkHhB;;;EAGA,qBAAA;EACA,eAAA;EACA,gBAAA;AAAA;AAGA;EACA,sBAAA;AAAA;AAGA;EACA,WAAA;EACA,WAAA;AAAA;AAGA;EACA,uBAAA;AAAA;AAGA;EACA,qBAAA;AAAA;AAGA;EACA,mBAAA;AAAA;AAGA;EACA,0BAAA;AAAA;AADA;IAIA,eAAA;IACA,+CAAA;IAEA,iBAAA;IACA,oBAAA;AAAA;AARA;IAaA,cAAA;IACA,gBAAA;IACA,iBAAA;IACA,mBAAA;IACA,YAAA;IACA,oBAAA;AAAA;AAIA;EACA,oBAAA;AAAA;AAGA;EAEA,kBAAA;AAAA;AAGA;EACA,gBAAA;AAAA;AAGA;EACA,mBAAA;AAAA;AAVA;EAcA,qBAAA;AAAA;AAdA;EAkBA,qBAAA;AAAA;AAlBA;IAqBA,kBAAA;AAAA;AArBA;MAwBA,YAAA;MACA,kBAAA;MACA,WAAA;MACA,aAAA;AAAA;;ADpIA,0CAA0C",file:"TheAboutTab.vue",sourcesContent:["@charset \"UTF-8\";\nli,\np,\na {\n letter-spacing: 0.4px;\n font-size: 20px;\n line-height: 1.2; }\n\ni {\n vertical-align: middle; }\n\ni /deep/ svg {\n fill: white;\n width: 20px; }\n\n.ethereum /deep/ svg {\n fill: var(--foreground); }\n\n:link {\n text-decoration: none; }\n\n#about_tab {\n margin-bottom: 40px; }\n\nh2 {\n text-transform: capitalize; }\n h2:not(.page_heading) {\n font-size: 2rem;\n border-bottom: 1px solid rgba(51, 51, 51, 0.25);\n padding-top: 2rem;\n padding-bottom: 1rem; }\n h2 .subheading {\n display: block;\n font-size: 0.5em;\n margin-top: 0.5em;\n font-weight: normal;\n opacity: 0.8;\n text-transform: none; }\n\np {\n margin: 0 !important; }\n\nul li {\n margin-bottom: 7px; }\n\nh2 + ul {\n margin-top: 1rem; }\n\nul + ul {\n margin-top: 1.25rem; }\n\nul.no-dots {\n list-style-type: none; }\n\nul:not(.no-dots) {\n list-style-type: none; }\n ul:not(.no-dots) li {\n position: relative; }\n ul:not(.no-dots) li::before {\n content: '—';\n position: absolute;\n left: -30px;\n opacity: 0.25; }\n\n/*# sourceMappingURL=TheAboutTab.vue.map */",null]},media:void 0})}),Mm,"data-v-c6d4c79c",!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}})),$m={it:'\n\n\n\n',en:'\n\n\n\n\n\n\n\n\n',es:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',de:'\nFlag of Germany\n\n\n\n',fr:'\n\n\n\n',id:'\n\n\n',pt:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',pt_br:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ru:'\n\n\n\n',tr:'\n\n\n\n\n',vn:'\n\n\n\n\n\n\n\n\n\n\n',hr:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ar:'\n\x3c!-- Creator: CorelDRAW --\x3e\nimage/svg+xml\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',ko:'\nFlag of South Korea\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ph:'\nFlag of the Philippines\nCoding according to the official "description and specification of the FILIPINO flag" in Executive Order No. 23 from 1936\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'};let Nm={},Lm={},Rm={};function Im(){return rl.emit("get_settings_data"),new Promise((t,e)=>{rl.on("init_settings",(e,a,n)=>{Nm=e,Lm=n,Rm=a,rl.off("init_settings"),t({settingsData:Nm,defaultSettingsData:Lm,spotifyCredentials:Rm})})})}const Fm={data:()=>({flags:$m,currentLocale:"en",locales:[],settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,previewVolume:window.vol,accountNum:0,accounts:[]}),computed:{...Vo({arl:"getARL",user:"getUser",isLoggedIn:"isLoggedIn",clientMode:"getClientMode"}),needToWait(){return 0===Object.keys(this.getSettings).length},changeSlimDownloads:{get(){return this.slimDownloads},set(t){this.slimDownloads=t,document.getElementById("download_list").classList.toggle("slim",t),localStorage.setItem("slimDownloads",t)}},pictureHref(){return`https://e-cdns-images.dzcdn.net/images/user/${this.user.picture}/125x125-000000-80-0-0.jpg`}},async mounted(){this.locales=this.$i18n.availableLocales;const{settingsData:t,defaultSettingsData:e,spotifyCredentials:a}=await Im();this.defaultSettings=e,this.initSettings(t,a);let n=localStorage.getItem("locale");n&&(this.currentLocale=n);let i=localStorage.getItem("accountNum");i&&(this.accountNum=i);let r=localStorage.getItem("spotifyUser");r&&(this.lastUser=r,this.spotifyUser=r,rl.emit("update_userSpotifyPlaylists",r)),this.changeSlimDownloads="true"===localStorage.getItem("slimDownloads");let s=parseInt(localStorage.getItem("previewVolume"));isNaN(s)&&(s=80,localStorage.setItem("previewVolume",s)),window.vol.preview_max_volume=s,rl.on("updateSettings",this.updateSettings),rl.on("accountChanged",this.accountChanged),rl.on("familyAccounts",this.initAccounts),rl.on("downloadFolderSelected",this.downloadFolderSelected),rl.on("applogin_arl",this.loggedInViaDeezer),this.$on("hook:destroyed",()=>{rl.off("updateSettings"),rl.off("accountChanged"),rl.off("familyAccounts"),rl.off("downloadFolderSelected"),rl.off("applogin_arl")})},methods:{...Go({dispatchARL:"setARL"}),revertSettings(){this.settings=JSON.parse(JSON.stringify(this.lastSettings))},revertCredentials(){this.spotifyCredentials=JSON.parse(JSON.stringify(this.lastCredentials)),this.spotifyUser=(" "+this.lastUser).slice(1)},copyARLtoClipboard(){let t=this.$refs.loginInput;t.setAttribute("type","text"),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),t.setAttribute("type","password"),kl(this.$t("settings.toasts.ARLcopied"),"assignment")},changeLocale(t){this.$i18n.locale=t,this.currentLocale=t,localStorage.setItem("locale",t)},updateMaxVolume(){localStorage.setItem("previewVolume",this.previewVolume.preview_max_volume)},saveSettings(){this.lastSettings=JSON.parse(JSON.stringify(this.settings)),this.lastCredentials=JSON.parse(JSON.stringify(this.spotifyFeatures));let t=!1;this.lastUser!=this.spotifyUser&&(this.lastUser=(" "+this.spotifyUser).slice(1),localStorage.setItem("spotifyUser",this.lastUser),t=!0),rl.emit("saveSettings",this.lastSettings,this.lastCredentials,!!t&&this.lastUser)},selectDownloadFolder(){rl.emit("selectDownloadFolder")},downloadFolderSelected(t){this.$set(this.settings,"downloadLocation",t)},loadSettings(t){this.lastSettings=JSON.parse(JSON.stringify(t)),this.settings=JSON.parse(JSON.stringify(t))},loadCredentials(t){this.lastCredentials=JSON.parse(JSON.stringify(t)),this.spotifyFeatures=JSON.parse(JSON.stringify(t))},loggedInViaDeezer(t){this.dispatchARL({arl:t}),rl.emit("login",t,!0,this.accountNum)},login(){let t=this.$refs.loginInput.value.trim();t&&t!==this.arl&&rl.emit("login",t,!0,this.accountNum)},appLogin(t){rl.emit("applogin")},changeAccount(){rl.emit("changeAccount",this.accountNum)},accountChanged(t,e){this.$refs.username.innerText=t.name,this.$refs.userpicture.src=`https://e-cdns-images.dzcdn.net/images/user/${t.picture}/125x125-000000-80-0-0.jpg`,this.accountNum=e,localStorage.setItem("accountNum",this.accountNum)},initAccounts(t){this.accounts=t},logout(){rl.emit("logout")},initSettings(t,e){this.loadSettings(t),this.loadCredentials(e),kl(this.$t("settings.toasts.init"),"settings")},updateSettings(t,e){this.loadSettings(t),this.loadCredentials(e),kl(this.$t("settings.toasts.update"),"settings")},resetSettings(){this.settings=JSON.parse(JSON.stringify(this.defaultSettings))}}};var Em=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent fixed_footer",attrs:{id:"settings_tab"}},[a("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("settings.title")))]),t._v(" "),t.isLoggedIn?a("div",{ref:"loggedInInfo",attrs:{id:"logged_in_info"}},[a("img",{ref:"userpicture",staticClass:"circle",attrs:{id:"settings_picture",src:t.pictureHref,alt:"Profile Picture"}}),t._v(" "),a("i18n",{attrs:{path:"settings.login.loggedIn",tag:"p"}},[a("strong",{ref:"username",attrs:{place:"username",id:"settings_username"}},[t._v(t._s(t.user.name||"not logged"))])]),t._v(" "),a("button",{attrs:{id:"settings_btn_logout"},on:{click:t.logout}},[t._v(t._s(t.$t("settings.login.logout")))]),t._v(" "),t.accounts.length?a("select",{directives:[{name:"model",rawName:"v-model",value:t.accountNum,expression:"accountNum"}],attrs:{id:"family_account"},on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.accountNum=e.target.multiple?a:a[0]},t.changeAccount]}},t._l(t.accounts,(function(e,n){return a("option",{key:e,domProps:{value:n.toString()}},[t._v(t._s(e.BLOG_NAME))])})),0):t._e()],1):t._e(),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("person")]),t._v(t._s(t.$t("settings.login.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"inline-flex"},[a("input",{ref:"loginInput",attrs:{autocomplete:"off",type:"password",id:"login_input_arl",placeholder:"ARL"},domProps:{value:t.arl}}),t._v(" "),a("button",{staticClass:"only_icon",attrs:{id:"settings_btn_copyArl"},on:{click:t.copyARLtoClipboard}},[a("i",{staticClass:"material-icons"},[t._v("assignment")])])]),t._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Getting-your-own-ARL",target:"_blank"}},[t._v("\n\t\t\t"+t._s(t.$t("settings.login.arl.question"))+"\n\t\t")]),t._v(" "),t.clientMode?a("a",{attrs:{id:"settings_btn_applogin",href:"#"},on:{click:t.appLogin}},[t._v("\n\t\t\t"+t._s(t.$t("settings.login.login"))+"\n\t\t")]):t._e(),t._v(" "),a("button",{staticStyle:{width:"100%"},attrs:{id:"settings_btn_updateArl"},on:{click:t.login}},[t._v("\n\t\t\t"+t._s(t.$t("settings.login.arl.update"))+"\n\t\t")])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("language")]),t._v(t._s(t.$t("settings.languages"))+"\n\t\t")]),t._v(" "),a("div",t._l(t.locales,(function(e){return a("span",{key:e,staticClass:"locale-flag",class:{"locale-flag--current":t.currentLocale===e},attrs:{title:e},domProps:{innerHTML:t._s(t.flags[e])},on:{click:function(a){return t.changeLocale(e)}}})})),0)]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("web")]),t._v(t._s(t.$t("settings.appearance.title"))+"\n\t\t")]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.changeSlimDownloads,expression:"changeSlimDownloads"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.changeSlimDownloads)?t._i(t.changeSlimDownloads,null)>-1:t.changeSlimDownloads},on:{change:function(e){var a=t.changeSlimDownloads,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&(t.changeSlimDownloads=a.concat([null])):r>-1&&(t.changeSlimDownloads=a.slice(0,r).concat(a.slice(r+1)))}else t.changeSlimDownloads=i}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.appearance.slimDownloadTab")))])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("folder")]),t._v(t._s(t.$t("settings.downloadPath.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"inline-flex"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.downloadLocation,expression:"settings.downloadLocation"}],attrs:{autocomplete:"off",type:"text"},domProps:{value:t.settings.downloadLocation},on:{input:function(e){e.target.composing||t.$set(t.settings,"downloadLocation",e.target.value)}}}),t._v(" "),t.clientMode?a("button",{staticClass:"only_icon",attrs:{id:"select_downloads_folder"},on:{click:t.selectDownloadFolder}},[a("i",{staticClass:"material-icons"},[t._v("folder")])]):t._e()])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("font_download")]),t._v(t._s(t.$t("settings.templates.title"))+"\n\t\t")]),t._v(" "),a("p",[t._v(t._s(t.$t("settings.templates.tracknameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tracknameTemplate,expression:"settings.tracknameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.tracknameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"tracknameTemplate",e.target.value)}}}),t._v(" "),a("p",[t._v(t._s(t.$t("settings.templates.albumTracknameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.albumTracknameTemplate,expression:"settings.albumTracknameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.albumTracknameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"albumTracknameTemplate",e.target.value)}}}),t._v(" "),a("p",[t._v(t._s(t.$t("settings.templates.playlistTracknameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.playlistTracknameTemplate,expression:"settings.playlistTracknameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.playlistTracknameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"playlistTracknameTemplate",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("create_new_folder")]),t._v(t._s(t.$t("settings.folders.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createPlaylistFolder,expression:"settings.createPlaylistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createPlaylistFolder)?t._i(t.settings.createPlaylistFolder,null)>-1:t.settings.createPlaylistFolder},on:{change:function(e){var a=t.settings.createPlaylistFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createPlaylistFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createPlaylistFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createPlaylistFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createPlaylistFolder")))])]),t._v(" "),t.settings.createPlaylistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.folders.playlistNameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.playlistNameTemplate,expression:"settings.playlistNameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.playlistNameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"playlistNameTemplate",e.target.value)}}})]):t._e()]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createArtistFolder,expression:"settings.createArtistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createArtistFolder)?t._i(t.settings.createArtistFolder,null)>-1:t.settings.createArtistFolder},on:{change:function(e){var a=t.settings.createArtistFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createArtistFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createArtistFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createArtistFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createArtistFolder")))])]),t._v(" "),t.settings.createArtistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.folders.artistNameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.artistNameTemplate,expression:"settings.artistNameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.artistNameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"artistNameTemplate",e.target.value)}}})]):t._e()]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createAlbumFolder,expression:"settings.createAlbumFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createAlbumFolder)?t._i(t.settings.createAlbumFolder,null)>-1:t.settings.createAlbumFolder},on:{change:function(e){var a=t.settings.createAlbumFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createAlbumFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createAlbumFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createAlbumFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createAlbumFolder")))])]),t._v(" "),t.settings.createAlbumFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.folders.albumNameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.albumNameTemplate,expression:"settings.albumNameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.albumNameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"albumNameTemplate",e.target.value)}}})]):t._e()])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createCDFolder,expression:"settings.createCDFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createCDFolder)?t._i(t.settings.createCDFolder,null)>-1:t.settings.createCDFolder},on:{change:function(e){var a=t.settings.createCDFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createCDFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createCDFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createCDFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createCDFolder")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createStructurePlaylist,expression:"settings.createStructurePlaylist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createStructurePlaylist)?t._i(t.settings.createStructurePlaylist,null)>-1:t.settings.createStructurePlaylist},on:{change:function(e){var a=t.settings.createStructurePlaylist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createStructurePlaylist",a.concat([null])):r>-1&&t.$set(t.settings,"createStructurePlaylist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createStructurePlaylist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createStructurePlaylist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createSingleFolder,expression:"settings.createSingleFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createSingleFolder)?t._i(t.settings.createSingleFolder,null)>-1:t.settings.createSingleFolder},on:{change:function(e){var a=t.settings.createSingleFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createSingleFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createSingleFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createSingleFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createSingleFolder")))])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("title")]),t._v(t._s(t.$t("settings.trackTitles.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.padTracks,expression:"settings.padTracks"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.padTracks)?t._i(t.settings.padTracks,null)>-1:t.settings.padTracks},on:{change:function(e){var a=t.settings.padTracks,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"padTracks",a.concat([null])):r>-1&&t.$set(t.settings,"padTracks",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"padTracks",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.trackTitles.padTracks")))])])]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.trackTitles.paddingSize")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.paddingSize,expression:"settings.paddingSize"}],attrs:{max:"10",type:"number"},domProps:{value:t.settings.paddingSize},on:{input:function(e){e.target.composing||t.$set(t.settings,"paddingSize",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.trackTitles.illegalCharacterReplacer")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.illegalCharacterReplacer,expression:"settings.illegalCharacterReplacer"}],attrs:{type:"text"},domProps:{value:t.settings.illegalCharacterReplacer},on:{input:function(e){e.target.composing||t.$set(t.settings,"illegalCharacterReplacer",e.target.value)}}})])])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("get_app")]),t._v(t._s(t.$t("settings.downloads.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.queueConcurrency")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.queueConcurrency,expression:"settings.queueConcurrency",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:t.settings.queueConcurrency},on:{input:function(e){e.target.composing||t.$set(t.settings,"queueConcurrency",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.maxBitrate.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.maxBitrate,expression:"settings.maxBitrate"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"maxBitrate",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"9"}},[t._v(t._s(t.$t("settings.downloads.maxBitrate.9")))]),t._v(" "),a("option",{attrs:{value:"3"}},[t._v(t._s(t.$t("settings.downloads.maxBitrate.3")))]),t._v(" "),a("option",{attrs:{value:"1"}},[t._v(t._s(t.$t("settings.downloads.maxBitrate.1")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.overwriteFile.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.overwriteFile,expression:"settings.overwriteFile"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"overwriteFile",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"y"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.y")))]),t._v(" "),a("option",{attrs:{value:"n"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.n")))]),t._v(" "),a("option",{attrs:{value:"e"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.e")))]),t._v(" "),a("option",{attrs:{value:"b"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.b")))]),t._v(" "),a("option",{attrs:{value:"t"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.t")))])])]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.fallbackBitrate,expression:"settings.fallbackBitrate"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.fallbackBitrate)?t._i(t.settings.fallbackBitrate,null)>-1:t.settings.fallbackBitrate},on:{change:function(e){var a=t.settings.fallbackBitrate,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"fallbackBitrate",a.concat([null])):r>-1&&t.$set(t.settings,"fallbackBitrate",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"fallbackBitrate",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.fallbackBitrate")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.fallbackSearch,expression:"settings.fallbackSearch"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.fallbackSearch)?t._i(t.settings.fallbackSearch,null)>-1:t.settings.fallbackSearch},on:{change:function(e){var a=t.settings.fallbackSearch,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"fallbackSearch",a.concat([null])):r>-1&&t.$set(t.settings,"fallbackSearch",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"fallbackSearch",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.fallbackSearch")))])])]),t._v(" "),a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.logErrors,expression:"settings.logErrors"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.logErrors)?t._i(t.settings.logErrors,null)>-1:t.settings.logErrors},on:{change:function(e){var a=t.settings.logErrors,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"logErrors",a.concat([null])):r>-1&&t.$set(t.settings,"logErrors",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"logErrors",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.logErrors")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.logSearched,expression:"settings.logSearched"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.logSearched)?t._i(t.settings.logSearched,null)>-1:t.settings.logSearched},on:{change:function(e){var a=t.settings.logSearched,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"logSearched",a.concat([null])):r>-1&&t.$set(t.settings,"logSearched",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"logSearched",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.logSearched")))])])]),t._v(" "),a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.syncedLyrics,expression:"settings.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.syncedLyrics)?t._i(t.settings.syncedLyrics,null)>-1:t.settings.syncedLyrics},on:{change:function(e){var a=t.settings.syncedLyrics,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"syncedLyrics",a.concat([null])):r>-1&&t.$set(t.settings,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"syncedLyrics",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.syncedLyrics")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createM3U8File,expression:"settings.createM3U8File"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createM3U8File)?t._i(t.settings.createM3U8File,null)>-1:t.settings.createM3U8File},on:{change:function(e){var a=t.settings.createM3U8File,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createM3U8File",a.concat([null])):r>-1&&t.$set(t.settings,"createM3U8File",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createM3U8File",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.createM3U8File")))])])])]),t._v(" "),t.settings.createM3U8File?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.playlistFilenameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.playlistFilenameTemplate,expression:"settings.playlistFilenameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.playlistFilenameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"playlistFilenameTemplate",e.target.value)}}})]):t._e(),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.saveDownloadQueue,expression:"settings.saveDownloadQueue"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.saveDownloadQueue)?t._i(t.settings.saveDownloadQueue,null)>-1:t.settings.saveDownloadQueue},on:{change:function(e){var a=t.settings.saveDownloadQueue,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"saveDownloadQueue",a.concat([null])):r>-1&&t.$set(t.settings,"saveDownloadQueue",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"saveDownloadQueue",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.saveDownloadQueue")))])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("album")]),t._v(t._s(t.$t("settings.covers.title"))+"\n\t\t")]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.saveArtwork,expression:"settings.saveArtwork"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.saveArtwork)?t._i(t.settings.saveArtwork,null)>-1:t.settings.saveArtwork},on:{change:function(e){var a=t.settings.saveArtwork,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"saveArtwork",a.concat([null])):r>-1&&t.$set(t.settings,"saveArtwork",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"saveArtwork",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.saveArtwork")))])]),t._v(" "),t.settings.saveArtwork?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.coverImageTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.coverImageTemplate,expression:"settings.coverImageTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.coverImageTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"coverImageTemplate",e.target.value)}}})]):t._e(),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.saveArtworkArtist,expression:"settings.saveArtworkArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.saveArtworkArtist)?t._i(t.settings.saveArtworkArtist,null)>-1:t.settings.saveArtworkArtist},on:{change:function(e){var a=t.settings.saveArtworkArtist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"saveArtworkArtist",a.concat([null])):r>-1&&t.$set(t.settings,"saveArtworkArtist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"saveArtworkArtist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.saveArtworkArtist")))])]),t._v(" "),t.settings.saveArtworkArtist?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.artistImageTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.artistImageTemplate,expression:"settings.artistImageTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.artistImageTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"artistImageTemplate",e.target.value)}}})]):t._e(),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.localArtworkSize")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.localArtworkSize,expression:"settings.localArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:t.settings.localArtworkSize},on:{input:function(e){e.target.composing||t.$set(t.settings,"localArtworkSize",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),t.settings.localArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[t._v("\n\t\t\t\t⚠️ "+t._s(t.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):t._e()]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.embeddedArtworkSize")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.embeddedArtworkSize,expression:"settings.embeddedArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:t.settings.embeddedArtworkSize},on:{input:function(e){e.target.composing||t.$set(t.settings,"embeddedArtworkSize",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),t.settings.embeddedArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[t._v("\n\t\t\t\t⚠️ "+t._s(t.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):t._e()]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.localArtworkFormat,expression:"settings.localArtworkFormat"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"localArtworkFormat",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"jpg"}},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.jpg")))]),t._v(" "),a("option",{attrs:{value:"png"}},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.png")))]),t._v(" "),a("option",{attrs:{value:"jpg,png"}},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.both")))])])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.embeddedArtworkPNG,expression:"settings.embeddedArtworkPNG"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.embeddedArtworkPNG)?t._i(t.settings.embeddedArtworkPNG,null)>-1:t.settings.embeddedArtworkPNG},on:{change:function(e){var a=t.settings.embeddedArtworkPNG,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"embeddedArtworkPNG",a.concat([null])):r>-1&&t.$set(t.settings,"embeddedArtworkPNG",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"embeddedArtworkPNG",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.embeddedArtworkPNG")))])]),t._v(" "),t.settings.embeddedArtworkPNG?a("p",{staticStyle:{opacity:"0.75",color:"#ffcc22"}},[t._v("\n\t\t\t⚠️ "+t._s(t.$t("settings.covers.embeddedPNGWarning"))+"\n\t\t")]):t._e(),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.coverDescriptionUTF8,expression:"settings.tags.coverDescriptionUTF8"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.coverDescriptionUTF8)?t._i(t.settings.tags.coverDescriptionUTF8,null)>-1:t.settings.tags.coverDescriptionUTF8},on:{change:function(e){var a=t.settings.tags.coverDescriptionUTF8,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"coverDescriptionUTF8",a.concat([null])):r>-1&&t.$set(t.settings.tags,"coverDescriptionUTF8",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"coverDescriptionUTF8",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.coverDescriptionUTF8")))])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.jpegImageQuality")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.jpegImageQuality,expression:"settings.jpegImageQuality",modifiers:{number:!0}}],attrs:{type:"number",min:"1",max:"100"},domProps:{value:t.settings.jpegImageQuality},on:{input:function(e){e.target.composing||t.$set(t.settings,"jpegImageQuality",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons",staticStyle:{width:"1em",height:"1em"}},[t._v("bookmarks")]),t._v(t._s(t.$t("settings.tags.head"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__half"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.title,expression:"settings.tags.title"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.title)?t._i(t.settings.tags.title,null)>-1:t.settings.tags.title},on:{change:function(e){var a=t.settings.tags.title,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"title",a.concat([null])):r>-1&&t.$set(t.settings.tags,"title",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"title",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.title")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.artist,expression:"settings.tags.artist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.artist)?t._i(t.settings.tags.artist,null)>-1:t.settings.tags.artist},on:{change:function(e){var a=t.settings.tags.artist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"artist",a.concat([null])):r>-1&&t.$set(t.settings.tags,"artist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"artist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.artist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.album,expression:"settings.tags.album"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.album)?t._i(t.settings.tags.album,null)>-1:t.settings.tags.album},on:{change:function(e){var a=t.settings.tags.album,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"album",a.concat([null])):r>-1&&t.$set(t.settings.tags,"album",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"album",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.album")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.cover,expression:"settings.tags.cover"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.cover)?t._i(t.settings.tags.cover,null)>-1:t.settings.tags.cover},on:{change:function(e){var a=t.settings.tags.cover,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"cover",a.concat([null])):r>-1&&t.$set(t.settings.tags,"cover",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"cover",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.cover")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.trackNumber,expression:"settings.tags.trackNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.trackNumber)?t._i(t.settings.tags.trackNumber,null)>-1:t.settings.tags.trackNumber},on:{change:function(e){var a=t.settings.tags.trackNumber,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"trackNumber",a.concat([null])):r>-1&&t.$set(t.settings.tags,"trackNumber",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"trackNumber",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.trackNumber")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.trackTotal,expression:"settings.tags.trackTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.trackTotal)?t._i(t.settings.tags.trackTotal,null)>-1:t.settings.tags.trackTotal},on:{change:function(e){var a=t.settings.tags.trackTotal,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"trackTotal",a.concat([null])):r>-1&&t.$set(t.settings.tags,"trackTotal",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"trackTotal",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.trackTotal")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.discNumber,expression:"settings.tags.discNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.discNumber)?t._i(t.settings.tags.discNumber,null)>-1:t.settings.tags.discNumber},on:{change:function(e){var a=t.settings.tags.discNumber,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"discNumber",a.concat([null])):r>-1&&t.$set(t.settings.tags,"discNumber",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"discNumber",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.discNumber")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.discTotal,expression:"settings.tags.discTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.discTotal)?t._i(t.settings.tags.discTotal,null)>-1:t.settings.tags.discTotal},on:{change:function(e){var a=t.settings.tags.discTotal,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"discTotal",a.concat([null])):r>-1&&t.$set(t.settings.tags,"discTotal",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"discTotal",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.discTotal")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.albumArtist,expression:"settings.tags.albumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.albumArtist)?t._i(t.settings.tags.albumArtist,null)>-1:t.settings.tags.albumArtist},on:{change:function(e){var a=t.settings.tags.albumArtist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"albumArtist",a.concat([null])):r>-1&&t.$set(t.settings.tags,"albumArtist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"albumArtist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.albumArtist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.genre,expression:"settings.tags.genre"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.genre)?t._i(t.settings.tags.genre,null)>-1:t.settings.tags.genre},on:{change:function(e){var a=t.settings.tags.genre,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"genre",a.concat([null])):r>-1&&t.$set(t.settings.tags,"genre",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"genre",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.genre")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.year,expression:"settings.tags.year"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.year)?t._i(t.settings.tags.year,null)>-1:t.settings.tags.year},on:{change:function(e){var a=t.settings.tags.year,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"year",a.concat([null])):r>-1&&t.$set(t.settings.tags,"year",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"year",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.year")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.date,expression:"settings.tags.date"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.date)?t._i(t.settings.tags.date,null)>-1:t.settings.tags.date},on:{change:function(e){var a=t.settings.tags.date,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"date",a.concat([null])):r>-1&&t.$set(t.settings.tags,"date",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"date",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.date")))])])]),t._v(" "),a("div",{staticClass:"settings-container__half"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.explicit,expression:"settings.tags.explicit"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.explicit)?t._i(t.settings.tags.explicit,null)>-1:t.settings.tags.explicit},on:{change:function(e){var a=t.settings.tags.explicit,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"explicit",a.concat([null])):r>-1&&t.$set(t.settings.tags,"explicit",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"explicit",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.explicit")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.isrc,expression:"settings.tags.isrc"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.isrc)?t._i(t.settings.tags.isrc,null)>-1:t.settings.tags.isrc},on:{change:function(e){var a=t.settings.tags.isrc,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"isrc",a.concat([null])):r>-1&&t.$set(t.settings.tags,"isrc",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"isrc",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.isrc")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.length,expression:"settings.tags.length"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.length)?t._i(t.settings.tags.length,null)>-1:t.settings.tags.length},on:{change:function(e){var a=t.settings.tags.length,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"length",a.concat([null])):r>-1&&t.$set(t.settings.tags,"length",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"length",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.length")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.barcode,expression:"settings.tags.barcode"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.barcode)?t._i(t.settings.tags.barcode,null)>-1:t.settings.tags.barcode},on:{change:function(e){var a=t.settings.tags.barcode,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"barcode",a.concat([null])):r>-1&&t.$set(t.settings.tags,"barcode",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"barcode",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.barcode")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.bpm,expression:"settings.tags.bpm"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.bpm)?t._i(t.settings.tags.bpm,null)>-1:t.settings.tags.bpm},on:{change:function(e){var a=t.settings.tags.bpm,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"bpm",a.concat([null])):r>-1&&t.$set(t.settings.tags,"bpm",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"bpm",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.bpm")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.replayGain,expression:"settings.tags.replayGain"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.replayGain)?t._i(t.settings.tags.replayGain,null)>-1:t.settings.tags.replayGain},on:{change:function(e){var a=t.settings.tags.replayGain,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"replayGain",a.concat([null])):r>-1&&t.$set(t.settings.tags,"replayGain",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"replayGain",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.replayGain")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.label,expression:"settings.tags.label"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.label)?t._i(t.settings.tags.label,null)>-1:t.settings.tags.label},on:{change:function(e){var a=t.settings.tags.label,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"label",a.concat([null])):r>-1&&t.$set(t.settings.tags,"label",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"label",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.label")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.lyrics,expression:"settings.tags.lyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.lyrics)?t._i(t.settings.tags.lyrics,null)>-1:t.settings.tags.lyrics},on:{change:function(e){var a=t.settings.tags.lyrics,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"lyrics",a.concat([null])):r>-1&&t.$set(t.settings.tags,"lyrics",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"lyrics",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.lyrics")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.syncedLyrics,expression:"settings.tags.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.syncedLyrics)?t._i(t.settings.tags.syncedLyrics,null)>-1:t.settings.tags.syncedLyrics},on:{change:function(e){var a=t.settings.tags.syncedLyrics,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"syncedLyrics",a.concat([null])):r>-1&&t.$set(t.settings.tags,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"syncedLyrics",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.syncedLyrics")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.copyright,expression:"settings.tags.copyright"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.copyright)?t._i(t.settings.tags.copyright,null)>-1:t.settings.tags.copyright},on:{change:function(e){var a=t.settings.tags.copyright,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"copyright",a.concat([null])):r>-1&&t.$set(t.settings.tags,"copyright",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"copyright",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.copyright")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.composer,expression:"settings.tags.composer"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.composer)?t._i(t.settings.tags.composer,null)>-1:t.settings.tags.composer},on:{change:function(e){var a=t.settings.tags.composer,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"composer",a.concat([null])):r>-1&&t.$set(t.settings.tags,"composer",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"composer",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.composer")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.involvedPeople,expression:"settings.tags.involvedPeople"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.involvedPeople)?t._i(t.settings.tags.involvedPeople,null)>-1:t.settings.tags.involvedPeople},on:{change:function(e){var a=t.settings.tags.involvedPeople,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"involvedPeople",a.concat([null])):r>-1&&t.$set(t.settings.tags,"involvedPeople",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"involvedPeople",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.involvedPeople")))])])])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("list")]),t._v(t._s(t.$t("settings.other.title"))+"\n\t\t")]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.savePlaylistAsCompilation,expression:"settings.tags.savePlaylistAsCompilation"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.savePlaylistAsCompilation)?t._i(t.settings.tags.savePlaylistAsCompilation,null)>-1:t.settings.tags.savePlaylistAsCompilation},on:{change:function(e){var a=t.settings.tags.savePlaylistAsCompilation,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"savePlaylistAsCompilation",a.concat([null])):r>-1&&t.$set(t.settings.tags,"savePlaylistAsCompilation",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"savePlaylistAsCompilation",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.savePlaylistAsCompilation")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.useNullSeparator,expression:"settings.tags.useNullSeparator"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.useNullSeparator)?t._i(t.settings.tags.useNullSeparator,null)>-1:t.settings.tags.useNullSeparator},on:{change:function(e){var a=t.settings.tags.useNullSeparator,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"useNullSeparator",a.concat([null])):r>-1&&t.$set(t.settings.tags,"useNullSeparator",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"useNullSeparator",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.useNullSeparator")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.saveID3v1,expression:"settings.tags.saveID3v1"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.saveID3v1)?t._i(t.settings.tags.saveID3v1,null)>-1:t.settings.tags.saveID3v1},on:{change:function(e){var a=t.settings.tags.saveID3v1,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"saveID3v1",a.concat([null])):r>-1&&t.$set(t.settings.tags,"saveID3v1",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"saveID3v1",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.saveID3v1")))])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.multiArtistSeparator,expression:"settings.tags.multiArtistSeparator"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings.tags,"multiArtistSeparator",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.nothing")))]),t._v(" "),a("option",{attrs:{value:"default"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.default")))]),t._v(" "),a("option",{attrs:{value:"andFeat"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.andFeat")))]),t._v(" "),a("option",{attrs:{value:" & "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:" & "})))]),t._v(" "),a("option",{attrs:{value:","}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:","})))]),t._v(" "),a("option",{attrs:{value:", "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:", "})))]),t._v(" "),a("option",{attrs:{value:"/"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:"/"})))]),t._v(" "),a("option",{attrs:{value:" / "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:" / "})))]),t._v(" "),a("option",{attrs:{value:";"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:";"})))]),t._v(" "),a("option",{attrs:{value:"; "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:"; "})))])])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.singleAlbumArtist,expression:"settings.tags.singleAlbumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.singleAlbumArtist)?t._i(t.settings.tags.singleAlbumArtist,null)>-1:t.settings.tags.singleAlbumArtist},on:{change:function(e){var a=t.settings.tags.singleAlbumArtist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"singleAlbumArtist",a.concat([null])):r>-1&&t.$set(t.settings.tags,"singleAlbumArtist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"singleAlbumArtist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.singleAlbumArtist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.albumVariousArtists,expression:"settings.albumVariousArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.albumVariousArtists)?t._i(t.settings.albumVariousArtists,null)>-1:t.settings.albumVariousArtists},on:{change:function(e){var a=t.settings.albumVariousArtists,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"albumVariousArtists",a.concat([null])):r>-1&&t.$set(t.settings,"albumVariousArtists",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"albumVariousArtists",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.albumVariousArtists")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.removeAlbumVersion,expression:"settings.removeAlbumVersion"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.removeAlbumVersion)?t._i(t.settings.removeAlbumVersion,null)>-1:t.settings.removeAlbumVersion},on:{change:function(e){var a=t.settings.removeAlbumVersion,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"removeAlbumVersion",a.concat([null])):r>-1&&t.$set(t.settings,"removeAlbumVersion",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"removeAlbumVersion",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.removeAlbumVersion")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.removeDuplicateArtists,expression:"settings.removeDuplicateArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.removeDuplicateArtists)?t._i(t.settings.removeDuplicateArtists,null)>-1:t.settings.removeDuplicateArtists},on:{change:function(e){var a=t.settings.removeDuplicateArtists,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"removeDuplicateArtists",a.concat([null])):r>-1&&t.$set(t.settings,"removeDuplicateArtists",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"removeDuplicateArtists",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.removeDuplicateArtists")))])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.dateFormat.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.dateFormat,expression:"settings.dateFormat"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"dateFormat",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"Y-M-D"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.year")+"-"+t.$t("settings.other.dateFormat.month")+"-"+t.$t("settings.other.dateFormat.day"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"Y-D-M"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.year")+"-"+t.$t("settings.other.dateFormat.day")+"-"+t.$t("settings.other.dateFormat.month"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"D-M-Y"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.day")+"-"+t.$t("settings.other.dateFormat.month")+"-"+t.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"M-D-Y"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.month")+"-"+t.$t("settings.other.dateFormat.day")+"-"+t.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"Y"}},[t._v(t._s(t.$t("settings.other.dateFormat.year")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.featuredToTitle.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.featuredToTitle,expression:"settings.featuredToTitle"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"featuredToTitle",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"0"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.0")))]),t._v(" "),a("option",{attrs:{value:"1"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.1")))]),t._v(" "),a("option",{attrs:{value:"3"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.3")))]),t._v(" "),a("option",{attrs:{value:"2"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.2")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.titleCasing")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.titleCasing,expression:"settings.titleCasing"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"titleCasing",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[t._v(t._s(t.$t("settings.other.casing.nothing")))]),t._v(" "),a("option",{attrs:{value:"lower"}},[t._v(t._s(t.$t("settings.other.casing.lower")))]),t._v(" "),a("option",{attrs:{value:"upper"}},[t._v(t._s(t.$t("settings.other.casing.upper")))]),t._v(" "),a("option",{attrs:{value:"start"}},[t._v(t._s(t.$t("settings.other.casing.start")))]),t._v(" "),a("option",{attrs:{value:"sentence"}},[t._v(t._s(t.$t("settings.other.casing.sentence")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.artistCasing")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.artistCasing,expression:"settings.artistCasing"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"artistCasing",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[t._v(t._s(t.$t("settings.other.casing.nothing")))]),t._v(" "),a("option",{attrs:{value:"lower"}},[t._v(t._s(t.$t("settings.other.casing.lower")))]),t._v(" "),a("option",{attrs:{value:"upper"}},[t._v(t._s(t.$t("settings.other.casing.upper")))]),t._v(" "),a("option",{attrs:{value:"start"}},[t._v(t._s(t.$t("settings.other.casing.start")))]),t._v(" "),a("option",{attrs:{value:"sentence"}},[t._v(t._s(t.$t("settings.other.casing.sentence")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.previewVolume")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.previewVolume.preview_max_volume,expression:"previewVolume.preview_max_volume",modifiers:{number:!0}}],staticClass:"slider",attrs:{type:"range",min:"0",max:"100",step:"1"},domProps:{value:t.previewVolume.preview_max_volume},on:{change:t.updateMaxVolume,__r:function(e){t.$set(t.previewVolume,"preview_max_volume",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),a("span",[t._v(t._s(t.previewVolume.preview_max_volume)+"%")])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.executeCommand.title")))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$t("settings.other.executeCommand.description")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.executeCommand,expression:"settings.executeCommand"}],attrs:{type:"text"},domProps:{value:t.settings.executeCommand},on:{input:function(e){e.target.composing||t.$set(t.settings,"executeCommand",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("svg",{attrs:{id:"spotify_icon","enable-background":"new 0 0 24 24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"m12 24c6.624 0 12-5.376 12-12s-5.376-12-12-12-12 5.376-12 12 5.376 12 12 12zm4.872-6.344v.001c-.807 0-3.356-2.828-10.52-1.36-.189.049-.436.126-.576.126-.915 0-1.09-1.369-.106-1.578 3.963-.875 8.013-.798 11.467 1.268.824.526.474 1.543-.265 1.543zm1.303-3.173c-.113-.03-.08.069-.597-.203-3.025-1.79-7.533-2.512-11.545-1.423-.232.063-.358.126-.576.126-1.071 0-1.355-1.611-.188-1.94 4.716-1.325 9.775-.552 13.297 1.543.392.232.547.533.547.953-.005.522-.411.944-.938.944zm-13.627-7.485c4.523-1.324 11.368-.906 15.624 1.578 1.091.629.662 2.22-.498 2.22l-.001-.001c-.252 0-.407-.063-.625-.189-3.443-2.056-9.604-2.549-13.59-1.436-.175.048-.393.125-.625.125-.639 0-1.127-.499-1.127-1.142 0-.657.407-1.029.842-1.155z"}})]),t._v("\n\t\t\t"+t._s(t.$t("settings.spotify.title"))+"\n\t\t")]),t._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Enabling-Spotify-Features",target:"_blank"}},[t._v("\n\t\t\t"+t._s(t.$t("settings.spotify.question"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.spotify.clientID")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.spotifyFeatures.clientId,expression:"spotifyFeatures.clientId"}],attrs:{type:"text"},domProps:{value:t.spotifyFeatures.clientId},on:{input:function(e){e.target.composing||t.$set(t.spotifyFeatures,"clientId",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.spotify.clientSecret")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.spotifyFeatures.clientSecret,expression:"spotifyFeatures.clientSecret"}],attrs:{type:"password"},domProps:{value:t.spotifyFeatures.clientSecret},on:{input:function(e){e.target.composing||t.$set(t.spotifyFeatures,"clientSecret",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.spotify.username")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.spotifyUser,expression:"spotifyUser"}],attrs:{type:"text"},domProps:{value:t.spotifyUser},on:{input:function(e){e.target.composing||(t.spotifyUser=e.target.value)}}})])]),t._v(" "),a("footer",[a("button",{on:{click:t.resetSettings}},[t._v(t._s(t.$t("settings.reset")))]),t._v(" "),a("button",{on:{click:t.saveSettings}},[t._v(t._s(t.$t("settings.save")))])])])};Em._withStripped=!0;var jm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheSettingsTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Em,staticRenderFns:[]},(function(t){t&&t("data-v-1961c05a_0",{source:"#logged_in_info {\n height: 250px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n}\n.locale-flag {\n width: 60px;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.locale-flag:not(:last-child) {\n margin-right: 10px;\n}\n.locale-flag.locale-flag--current svg {\n filter: brightness(1);\n}\n.locale-flag svg {\n width: 40px;\n height: 40px;\n filter: brightness(0.5);\n}\n\n/*# sourceMappingURL=TheSettingsTab.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheSettingsTab.vue","TheSettingsTab.vue"],names:[],mappings:"AA4mBA;EACA,aAAA;EACA,aAAA;EACA,sBAAA;EACA,6BAAA;EACA,mBAAA;AAAA;AAGA;EACA,WAAA;EACA,oBAAA;EACA,uBAAA;EACA,mBAAA;EACA,eAAA;AAAA;AALA;IAQA,kBAAA;AAAA;AARA;IAaA,qBAAA;AAAA;AAbA;IAkBA,WAAA;IACA,YAAA;IACA,uBAAA;AAAA;;AClnBA,6CAA6C",file:"TheSettingsTab.vue",sourcesContent:[null,"#logged_in_info {\n height: 250px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center; }\n\n.locale-flag {\n width: 60px;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer; }\n .locale-flag:not(:last-child) {\n margin-right: 10px; }\n .locale-flag.locale-flag--current svg {\n filter: brightness(1); }\n .locale-flag svg {\n width: 40px;\n height: 40px;\n filter: brightness(0.5); }\n\n/*# sourceMappingURL=TheSettingsTab.vue.map */"]},media:void 0})}),Fm,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const Om={props:["results"],computed:{topResultType(){return this.results.allTab.TOP_RESULT[0].type},noResults(){return this.results.allTab.ORDER.every(t=>"TOP_RESULT"==t?0==this.results.allTab[t].length:0==this.results.allTab[t].data.length)}},methods:{convertDuration:ro}};var Bm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"main_search"}},[t._l(t.results.allTab.ORDER,(function(e){return["TOP_RESULT"!=e&&t.results.allTab[e].data.length>0||t.results.allTab[e].length>0?a("section",{staticClass:"search_section"},[a("h2",{staticClass:"search_header",class:{top_result_header:"TOP_RESULT"===e},on:{click:function(a){return t.$emit("change-search-tab",e)}}},[t._v("\n\t\t\t\t"+t._s(t.$tc("globals.listTabs."+e.toLowerCase(),2))+"\n\t\t\t")]),t._v(" "),"TOP_RESULT"==e?a("div",{staticClass:"top_result clickable",attrs:{"data-id":t.results.allTab.TOP_RESULT[0].id},on:{click:function(e){return e.stopPropagation(),t.$emit(t.topResultType+"-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{class:("artist"==t.results.allTab.TOP_RESULT[0].type?"circle":"rounded")+" coverart",attrs:{"aria-hidden":"true",src:t.results.allTab.TOP_RESULT[0].picture}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":t.results.allTab.TOP_RESULT[0].link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("div",{staticClass:"info_box"},[a("p",{staticClass:"primary-text"},[t._v(t._s(t.results.allTab.TOP_RESULT[0].title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t\t"+t._s("artist"==t.results.allTab.TOP_RESULT[0].type?t.$t("search.fans",{n:t.$n(t.results.allTab.TOP_RESULT[0].nb_fan)}):t.$t("globals.by",{artist:t.results.allTab.TOP_RESULT[0].artist})+" - "+t.$tc("globals.listTabs.trackN",t.results.allTab.TOP_RESULT[0].nb_song))+"\n\t\t\t\t\t")]),t._v(" "),a("span",{staticClass:"tag"},[t._v(t._s(t.$tc("globals.listTabs."+t.results.allTab.TOP_RESULT[0].type,1)))])])]):"TRACK"==e?a("div",[a("table",{staticClass:"table table--tracks"},[a("tbody",t._l(t.results.allTab.TRACK.data.slice(0,6),(function(e){return a("tr",[a("td",{staticClass:"table__icon",attrs:{"aria-hidden":"true"}},[a("img",{staticClass:"rounded coverart",attrs:{src:"https://e-cdns-images.dzcdn.net/images/cover/"+e.ALB_PICTURE+"/32x32-000000-80-0-0.jpg"}})]),t._v(" "),a("td",{staticClass:"table__cell table__cell--large breakline"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[1==e.EXPLICIT_LYRICS?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.SNG_TITLE+(e.VERSION?" "+e.VERSION:""))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),a("td",{staticClass:"table__cell table__cell--medium table__cell--center breakline"},t._l(e.ARTISTS,(function(e){return a("span",{key:e.ART_ID,staticClass:"clickable",attrs:{"data-id":e.ART_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("artist-view",e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.ART_NAME)+"\n\t\t\t\t\t\t\t\t")])})),0),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.ALB_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("album-view",e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.ALB_TITLE)+"\n\t\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell table__cell--center"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.convertDuration(e.DURATION))+"\n\t\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--download table__cell--center clickable",attrs:{"data-link":"https://www.deezer.com/track/"+e.SNG_ID,role:"button","aria-label":"download"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v(" get_app ")])])])})),0)])]):"ARTIST"==e?a("div",{staticClass:"release_grid firstrow_only"},t._l(t.results.allTab.ARTIST.data.slice(0,10),(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.ART_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("artist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"circle coverart",attrs:{"aria-hidden":"true",src:"https://e-cdns-images.dzcdn.net/images/artist/"+e.ART_PICTURE+"/156x156-000000-80-0-0.jpg"}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/artist/"+e.ART_ID,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.ART_NAME))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$t("search.fans",{n:t.$n(e.NB_FAN)})))])])})),0):"ALBUM"==e?a("div",{staticClass:"release_grid firstrow_only"},t._l(t.results.allTab.ALBUM.data.slice(0,10),(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.ALB_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("album-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:"https://e-cdns-images.dzcdn.net/images/cover/"+e.ALB_PICTURE+"/156x156-000000-80-0-0.jpg"}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/album/"+e.ALB_ID,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text inline-flex"},[-1!=[1,4].indexOf(e.EXPLICIT_ALBUM_CONTENT.EXPLICIT_LYRICS_STATUS)?a("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.ALB_TITLE)+"\n\t\t\t\t\t")]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t\t"+t._s(e.ART_NAME+" - "+t.$tc("globals.listTabs.trackN",e.NUMBER_TRACK))+"\n\t\t\t\t\t")])])})),0):"PLAYLIST"==e?a("div",{staticClass:"release_grid firstrow_only"},t._l(t.results.allTab.PLAYLIST.data.slice(0,10),(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.PLAYLIST_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("playlist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:"https://e-cdns-images.dzcdn.net/images/"+e.PICTURE_TYPE+"/"+e.PLAYLIST_PICTURE+"/156x156-000000-80-0-0.jpg"}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/playlist/"+e.PLAYLIST_ID,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.TITLE))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$tc("globals.listTabs.trackN",e.NB_SONG)))])])})),0):t._e()]):t._e()]})),t._v(" "),t.noResults?a("div",[a("h1",[t._v(t._s(t.$t("search.noResults")))])]):t._e()],2)};Bm._withStripped=!0;var qm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsAll.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Bm,staticRenderFns:[]},0,Om,void 0,!1);const Um={props:["results"],components:{BaseLoadingPlaceholder:mo}};var Vm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"album_search"}},[t.results.albumTab.loaded?0==t.results.albumTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsAlbum")))])]):t._e():a("BaseLoadingPlaceholder"),t._v(" "),t.results.albumTab.data.length>0?a("div",{staticClass:"release_grid"},t._l(t.results.albumTab.data,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:function(e){return e.stopPropagation(),t.$emit("album-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text inline-flex"},[e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t"+t._s(e.title)+"\n\t\t\t")]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.artist.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t")])])})),0):t._e()],1)};Vm._withStripped=!0;var Gm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsAlbums.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Vm,staticRenderFns:[]},0,Um,void 0,!1);const Wm={props:["results"],components:{BaseLoadingPlaceholder:mo}};var Hm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"artist_search"}},[t.results.artistTab.loaded?0==t.results.artistTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsArtist")))])]):t._e():a("base-loading-placeholder"),t._v(" "),t.results.artistTab.data.length>0?a("div",{staticClass:"release_grid"},t._l(t.results.artistTab.data,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:function(e){return e.stopPropagation(),t.$emit("artist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"circle coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.name))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$tc("globals.listTabs.releaseN",e.nb_album)))])])})),0):t._e()],1)};Hm._withStripped=!0;var Km=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsArtists.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Hm,staticRenderFns:[]},0,Wm,void 0,!1);const Qm={props:["results"],components:{BaseLoadingPlaceholder:mo}};var Ym=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"playlist_search"}},[t.results.playlistTab.loaded?0==t.results.playlistTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsPlaylist")))])]):t._e():a("BaseLoadingPlaceholder"),t._v(" "),t.results.playlistTab.data.length>0?a("div",{staticClass:"release_grid"},t._l(t.results.playlistTab.data,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:function(e){return e.stopPropagation(),t.$emit("playlist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.user.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t")])])})),0):t._e()],1)};Ym._withStripped=!0;var Jm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsPlaylists.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Ym,staticRenderFns:[]},0,Qm,void 0,!1);const Zm={props:["results"],components:{BaseLoadingPlaceholder:mo},methods:{convertDuration:ro,artistView(t){this.$emit("artist-view",t)},albumView(t){this.$emit("album-view",t)},playlistView(t){this.$emit("playlist-view",t)},playPausePreview(t){uo.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){uo.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){uo.$emit("trackPreview:previewMouseLeave",t)}}};var Xm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"track_search"}},[t.results.trackTab.loaded?0==t.results.trackTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsTrack")))])]):t._e():a("BaseLoadingPlaceholder"),t._v(" "),t.results.trackTab.data.length>0?a("table",{staticClass:"table table--tracks"},[a("thead",[a("tr",[a("th",{attrs:{colspan:"2"}},[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.album",1)))]),t._v(" "),t._m(0),t._v(" "),a("th",{staticStyle:{width:"56px"}})])]),t._v(" "),a("tbody",t._l(t.results.trackTab.data,(function(e){return a("tr",[a("td",{staticClass:"table__icon table__icon--big"},[a("a",{class:"rounded"+(e.preview?" single-cover":""),attrs:{href:"#","data-preview":e.preview},on:{click:t.playPausePreview}},[e.preview?a("i",{staticClass:"material-icons preview_controls",attrs:{title:t.$t("globals.play_hint")},on:{mouseenter:t.previewMouseEnter,mouseleave:t.previewMouseLeave}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):t._e(),t._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:e.album.cover_small}})])]),t._v(" "),a("td",{staticClass:"table__cell table__cell--large breakline"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t\t")])]),t._v(" "),a("td",{staticClass:"table__cell table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.artist.id},on:{click:function(e){return e.stopPropagation(),t.artistView(e)}}},[t._v("\n\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.album.id},on:{click:function(e){return e.stopPropagation(),t.albumView(e)}}},[t._v("\n\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell table__cell--small table__cell--center"},[t._v("\n\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--download table__cell--center clickable",attrs:{"data-link":e.link,role:"button","aria-label":"download"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v(" get_app ")])])])})),0)]):t._e()],1)};Xm._withStripped=!0;var tg=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsTracks.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Xm,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v(" timer ")])])}]},0,Zm,void 0,!1);const eg={components:{BaseLoadingPlaceholder:mo},data(){const t=this.$t.bind(this),e=this.$tc.bind(this);return{currentTab:{name:"",component:{}},tabs:[{name:t("globals.listTabs.all"),searchType:"all",component:qm},{name:e("globals.listTabs.track",2),searchType:"track",component:tg},{name:e("globals.listTabs.album",2),searchType:"album",component:Gm},{name:e("globals.listTabs.artist",2),searchType:"artist",component:Km},{name:e("globals.listTabs.playlist",2),searchType:"playlist",component:Jm}],results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{},ARTIST:{},TRACK:{},PLAYLIST:{}},trackTab:{data:[],next:0,total:0,loaded:!1},albumTab:{data:[],next:0,total:0,loaded:!1},artistTab:{data:[],next:0,total:0,loaded:!1},playlistTab:{data:[],next:0,total:0,loaded:!1}}}},computed:{showSearchTab(){return""!==this.results.query},loadedTabs(){const t=[];for(const e in this.results)if(this.results.hasOwnProperty(e)){this.results[e].loaded&&t.push(e.replace(/Tab/g,""))}return t}},props:{performScrolledSearch:{type:Boolean,required:!1}},created(){this.currentTab=this.tabs[0]},mounted(){uo.$on("mainSearch:checkLoadMoreContent",this.checkLoadMoreContent),this.$root.$on("mainSearch:showNewResults",this.checkIfShowNewResults),this.$root.$on("mainSearch:updateResults",this.checkIfUpdateResults),rl.on("mainSearch",this.handleMainSearch),rl.on("search",this.handleSearch)},methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playlistView:Yh.bind(null,"playlist"),changeSearchTab(t){t=t.toLowerCase();let e=this.tabs.find(e=>e.searchType===t);e?(window.scrollTo(0,0),this.currentTab=e):console.error(`No tab ${t} found`)},checkIfShowNewResults(t,e){(t!==this.results.query||"search_tab"==e)&&this.showNewResults(t)},checkIfUpdateResults(t,e){if(t===this.results.query&&"all"!==this.currentTab.searchType){let t={data:[],next:0,total:0,loaded:!1};this.results[this.currentTab.searchType+"Tab"]={...t},this.search(this.currentTab.searchType)}},showNewResults(t){rl.emit("mainSearch",{term:t}),this.$root.$emit("updateSearchLoadingState",!0),this.currentTab=this.tabs[0]},checkLoadMoreContent(t){0===this.results[t.split("_")[0]+"Tab"].data.length&&this.search(t.split("_")[0])},addToQueue(t){sl(t.currentTarget.dataset.link)},numberWithDots:so,convertDuration:ro,search(t){rl.emit("search",{term:this.results.query,type:t,start:this.results[t+"Tab"].next,nb:30})},scrolledSearch(){if("all"===this.currentTab.searchType)return;let t=this.currentTab.searchType+"Tab";this.results[t].next({x:0,y:0})});ig.beforeEach((t,e,a)=>{let n=null;switch(t.name){case"Artist":n={type:"artist",id:t.params.id};break;case"Tracklist":n={type:t.params.type,id:t.params.id}}n&&rl.emit("getTracklist",n),uo.$emit("trackPreview:stopStackedTabsPreview"),a()}),window.vol={preview_max_volume:100},document.addEventListener("DOMContentLoaded",(function(){!function(){let t=localStorage.getItem("locale");t&&(Ic.locale=t)}(),new _a({store:il,router:ig,i18n:Ic,render:t=>t(Ml)}).$mount("#app"),Qh(document.getElementById("main_home_tablink"),"main","home_tab")})),window.addEventListener("pywebviewready",(function(){il.dispatch("setClientMode",!0)})),document.addEventListener("paste",t=>{let e=t.clipboardData.getData("Text");if("input"!=t.target.localName)if(no(e))"analyzer_tab"===window.main_selected?(uo.$emit("linkAnalyzerTab:reset"),rl.emit("analyzeLink",e)):ol.sendAddToQueue(e);else{let t=document.querySelector("#searchbar");t.select(),t.setSelectionRange(0,99999)}}),document.addEventListener("keydown",t=>{70==t.keyCode&&t.ctrlKey&&(t.preventDefault(),document.querySelector("#searchbar").focus())}),rl.on("message",(function(t){console.log(t)})),rl.on("logging_in",(function(){kl(Ic.t("toasts.loggingIn"),"loading",!1,"login-toast")})),rl.on("init_autologin",(function(){let t=localStorage.getItem("arl"),e=localStorage.getItem("accountNum");t&&(t=t.trim(),0!=e?rl.emit("login",t,!0,e):rl.emit("login",t))})),rl.on("logged_in",(function(t){const{status:e,user:a}=t;switch(e){case 1:case 3:kl(Ic.t("toasts.loggedIn"),"done",!0,"login-toast"),il.dispatch("login",t);break;case 2:kl(Ic.t("toasts.alreadyLogged"),"done",!0,"login-toast"),il.dispatch("setUser",a);break;case 0:kl(Ic.t("toasts.loginFailed"),"close",!0,"login-toast"),il.dispatch("removeARL");break;case-1:return void kl(Ic.t("toasts.deezerNotAvailable"),"close",!0,"login-toast")}})),rl.on("logged_out",(function(){kl(Ic.t("toasts.loggedOut"),"done",!0,"login-toast"),il.dispatch("logout")})),rl.on("restoringQueue",(function(){kl(Ic.t("toasts.restoringQueue"),"loading",!1,"restoring_queue")})),rl.on("cancellingCurrentItem",(function(t){kl(Ic.t("toasts.cancellingCurrentItem"),"loading",!1,"cancelling_"+t)})),rl.on("currentItemCancelled",(function(t){kl(Ic.t("toasts.currentItemCancelled"),"done",!0,"cancelling_"+t)})),rl.on("startAddingArtist",(function(t){kl(Ic.t("toasts.startAddingArtist",{artist:t.name}),"loading",!1,"artist_"+t.id)})),rl.on("finishAddingArtist",(function(t){kl(Ic.t("toasts.finishAddingArtist",{artist:t.name}),"done",!0,"artist_"+t.id)})),rl.on("startConvertingSpotifyPlaylist",(function(t){kl(Ic.t("toasts.startConvertingSpotifyPlaylist"),"loading",!1,"spotifyplaylist_"+t)})),rl.on("finishConvertingSpotifyPlaylist",(function(t){kl(Ic.t("toasts.finishConvertingSpotifyPlaylist"),"done",!0,"spotifyplaylist_"+t)})),rl.on("errorMessage",(function(t){kl(t,"error")})),rl.on("queueError",(function(t){t.errid?kl(Ic.t("errors.ids."+t.errid),"error"):kl(t.error,"error")})),rl.on("alreadyInQueue",(function(t){kl(Ic.t("toasts.alreadyInQueue",{item:t.title}),"playlist_add_check")})),rl.on("loginNeededToDownload",(function(t){kl(Ic.t("toasts.loginNeededToDownload"),"report")})); +function Fc(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Ec(t,e){return Fc(t)&&t._isRouter&&(null==e||t.type===e)}function jc(t,e){for(var a in e)t[a]=e[a];return t}var Oc={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var a=e.props,n=e.children,i=e.parent,r=e.data;r.routerView=!0;for(var s=i.$createElement,o=a.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),d=0,u=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&d++,p.keepAlive&&i._directInactive&&i._inactive&&(u=!0),i=i.$parent}if(r.routerViewDepth=d,u){var h=c[o],m=h&&h.component;return m?(h.configProps&&Bc(m,r,h.route,h.configProps),s(m,r,n)):s()}var g=l.matched[d],f=g&&g.components[o];if(!g||!f)return c[o]=null,s();c[o]={component:f},r.registerRouteInstance=function(t,e){var a=g.instances[o];(e&&a!==t||!e&&a===t)&&(g.instances[o]=e)},(r.hook||(r.hook={})).prepatch=function(t,e){g.instances[o]=e.componentInstance},r.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[o]&&(g.instances[o]=t.componentInstance)};var v=g.props&&g.props[o];return v&&(jc(c[o],{route:l,configProps:v}),Bc(f,r,l,v)),s(f,r,n)}};function Bc(t,e,a,n){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(a,n);if(i){i=e.props=jc({},i);var r=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(r[s]=i[s],delete i[s])}}var qc=/[!'()*]/g,Uc=function(t){return"%"+t.charCodeAt(0).toString(16)},Vc=/%2C/g,Gc=function(t){return encodeURIComponent(t).replace(qc,Uc).replace(Vc,",")},Wc=decodeURIComponent;function Hc(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var a=t.replace(/\+/g," ").split("="),n=Wc(a.shift()),i=a.length>0?Wc(a.join("=")):null;void 0===e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}function Kc(t){var e=t?Object.keys(t).map((function(e){var a=t[e];if(void 0===a)return"";if(null===a)return Gc(e);if(Array.isArray(a)){var n=[];return a.forEach((function(t){void 0!==t&&(null===t?n.push(Gc(e)):n.push(Gc(e)+"="+Gc(t)))})),n.join("&")}return Gc(e)+"="+Gc(a)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var Qc=/\/?$/;function Yc(t,e,a,n){var i=n&&n.options.stringifyQuery,r=e.query||{};try{r=Jc(r)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:r,params:e.params||{},fullPath:td(e,i),matched:t?Xc(t):[]};return a&&(s.redirectedFrom=td(a,i)),Object.freeze(s)}function Jc(t){if(Array.isArray(t))return t.map(Jc);if(t&&"object"==typeof t){var e={};for(var a in t)e[a]=Jc(t[a]);return e}return t}var Zc=Yc(null,{path:"/"});function Xc(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function td(t,e){var a=t.path,n=t.query;void 0===n&&(n={});var i=t.hash;return void 0===i&&(i=""),(a||"/")+(e||Kc)(n)+i}function ed(t,e){return e===Zc?t===e:!!e&&(t.path&&e.path?t.path.replace(Qc,"")===e.path.replace(Qc,"")&&t.hash===e.hash&&ad(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&ad(t.query,e.query)&&ad(t.params,e.params)))}function ad(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var a=Object.keys(t),n=Object.keys(e);return a.length===n.length&&a.every((function(a){var n=t[a],i=e[a];return"object"==typeof n&&"object"==typeof i?ad(n,i):String(n)===String(i)}))}function nd(t,e,a){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var i=e.split("/");a&&i[i.length-1]||i.pop();for(var r=t.replace(/^\//,"").split("/"),s=0;s=0&&(e=t.slice(n),t=t.slice(0,n));var i=t.indexOf("?");return i>=0&&(a=t.slice(i+1),t=t.slice(0,i)),{path:t,query:a,hash:e}}(i.path||""),c=e&&e.path||"/",d=l.path?nd(l.path,c,a||i.append):c,u=function(t,e,a){void 0===e&&(e={});var n,i=a||Hc;try{n=i(t||"")}catch(t){n={}}for(var r in e)n[r]=e[r];return n}(l.query,i.query,n&&n.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:u,hash:p}}var xd,Td=function(){},Sd={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,a=this.$router,n=this.$route,i=a.resolve(this.to,n,this.append),r=i.location,s=i.route,o=i.href,l={},c=a.options.linkActiveClass,d=a.options.linkExactActiveClass,u=null==c?"router-link-active":c,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?u:this.activeClass,m=null==this.exactActiveClass?p:this.exactActiveClass,g=s.redirectedFrom?Yc(null,Cd(s.redirectedFrom),null,a):s;l[m]=ed(n,g),l[h]=this.exact?l[m]:function(t,e){return 0===t.path.replace(Qc,"/").indexOf(e.path.replace(Qc,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var a in e)if(!(a in t))return!1;return!0}(t.query,e.query)}(n,g);var f=l[m]?this.ariaCurrentValue:null,v=function(t){zd(t)&&(e.replace?a.replace(r,Td):a.push(r,Td))},b={click:zd};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=v})):b[this.event]=v;var y={class:l},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:v,isActive:l[h],isExactActive:l[m]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)y.on=b,y.attrs={href:o,"aria-current":f};else{var k=function t(e){var a;if(e)for(var n=0;n-1&&(o.params[p]=a.params[p]);return o.path=wd(d.path,o.params),l(d,o,s)}if(o.path){o.params={};for(var h=0;h=t.length?a():t[i]?e(t[i],(function(){n(i+1)})):n(i+1)};n(0)}function tu(t){return function(e,a,n){var i=!1,r=0,s=null;eu(t,(function(t,e,a,o){if("function"==typeof t&&void 0===t.cid){i=!0,r++;var l,c=iu((function(e){var i;((i=e).__esModule||nu&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:xd.extend(e),a.components[o]=e,--r<=0&&n()})),d=iu((function(t){var e="Failed to resolve async component "+o+": "+t;s||(s=Fc(t)?t:new Error(e),n(s))}));try{l=t(c,d)}catch(t){d(t)}if(l)if("function"==typeof l.then)l.then(c,d);else{var u=l.component;u&&"function"==typeof u.then&&u.then(c,d)}}})),i||n()}}function eu(t,e){return au(t.map((function(t){return Object.keys(t.components).map((function(a){return e(t.components[a],t.instances[a],t,a)}))})))}function au(t){return Array.prototype.concat.apply([],t)}var nu="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function iu(t){var e=!1;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];if(!e)return e=!0,t.apply(this,a)}}var ru=1,su=2,ou=3,lu=4;function cu(t,e){return uu(t,e,ru,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return pu.forEach((function(a){a in t&&(e[a]=t[a])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function du(t,e){return uu(t,e,ou,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function uu(t,e,a,n){var i=new Error(n);return i._isRouter=!0,i.from=t,i.to=e,i.type=a,i}var pu=["params","query","hash"];var hu=function(t,e){this.router=t,this.base=function(t){if(!t)if(Md){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Zc,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function mu(t,e,a,n){var i=eu(t,(function(t,n,i,r){var s=function(t,e){"function"!=typeof t&&(t=xd.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return a(t,n,i,r)})):a(s,n,i,r)}));return au(n?i.reverse():i)}function gu(t,e){if(e)return function(){return t.apply(e,arguments)}}hu.prototype.listen=function(t){this.cb=t},hu.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},hu.prototype.onError=function(t){this.errorCbs.push(t)},hu.prototype.transitionTo=function(t,e,a){var n=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){var t=n.current;n.updateRoute(i),e&&e(i),n.ensureURL(),n.router.afterHooks.forEach((function(e){e&&e(i,t)})),n.ready||(n.ready=!0,n.readyCbs.forEach((function(t){t(i)})))}),(function(t){a&&a(t),t&&!n.ready&&(n.ready=!0,Ec(t,ru)?n.readyCbs.forEach((function(t){t(i)})):n.readyErrorCbs.forEach((function(e){e(t)})))}))},hu.prototype.confirmTransition=function(t,e,a){var n,i=this,r=this.current,s=function(t){!Ec(t)&&Fc(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):console.error(t)),a&&a(t)},o=t.matched.length-1,l=r.matched.length-1;if(ed(t,r)&&o===l&&t.matched[o]===r.matched[l])return this.ensureURL(),s(uu(n=r,t,lu,'Avoided redundant navigation to current location: "'+n.fullPath+'".'));var c=function(t,e){var a,n=Math.max(t.length,e.length);for(a=0;a0)){var e=this.router,a=e.options.scrollBehavior,n=Yd&&a;n&&this.listeners.push(Od());var i=function(){var a=t.current,i=vu(t.base);t.current===Zc&&i===t._startLocation||t.transitionTo(i,(function(t){n&&Bd(e,t,a,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){Jd(id(n.base+t.fullPath)),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.replace=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){Zd(id(n.base+t.fullPath)),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.ensureURL=function(t){if(vu(this.base)!==this.current.fullPath){var e=id(this.base+this.current.fullPath);t?Jd(e):Zd(e)}},e.prototype.getCurrentLocation=function(){return vu(this.base)},e}(hu);function vu(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var bu=function(t){function e(e,a,n){t.call(this,e,a),n&&function(t){var e=vu(t);if(!/^\/#/.test(e))return window.location.replace(id(t+"/#"+e)),!0}(this.base)||yu()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,a=Yd&&e;a&&this.listeners.push(Od());var n=function(){var e=t.current;yu()&&t.transitionTo(_u(),(function(n){a&&Bd(t.router,n,e,!0),Yd||wu(n.fullPath)}))},i=Yd?"popstate":"hashchange";window.addEventListener(i,n),this.listeners.push((function(){window.removeEventListener(i,n)}))}},e.prototype.push=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){Au(t.fullPath),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.replace=function(t,e,a){var n=this,i=this.current;this.transitionTo(t,(function(t){wu(t.fullPath),Bd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;_u()!==e&&(t?Au(e):wu(e))},e.prototype.getCurrentLocation=function(){return _u()},e}(hu);function yu(){var t=_u();return"/"===t.charAt(0)||(wu("/"+t),!1)}function _u(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var a=(t=t.slice(e+1)).indexOf("?");if(a<0){var n=t.indexOf("#");t=n>-1?decodeURI(t.slice(0,n))+t.slice(n):decodeURI(t)}else t=decodeURI(t.slice(0,a))+t.slice(a);return t}function ku(t){var e=window.location.href,a=e.indexOf("#");return(a>=0?e.slice(0,a):e)+"#"+t}function Au(t){Yd?Jd(ku(t)):window.location.hash=t}function wu(t){Yd?Zd(ku(t)):window.location.replace(ku(t))}var Cu=function(t){function e(e,a){t.call(this,e,a),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,a){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)}),a)},e.prototype.replace=function(t,e,a){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)}),a)},e.prototype.go=function(t){var e=this,a=this.index+t;if(!(a<0||a>=this.stack.length)){var n=this.stack[a];this.confirmTransition(n,(function(){e.index=a,e.updateRoute(n)}),(function(t){Ec(t,lu)&&(e.index=a)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(hu),xu=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=$d(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Yd&&!1!==t.fallback,this.fallback&&(e="hash"),Md||(e="abstract"),this.mode=e,e){case"history":this.history=new fu(this,t.base);break;case"hash":this.history=new bu(this,t.base,this.fallback);break;case"abstract":this.history=new Cu(this,t.base)}},Tu={currentRoute:{configurable:!0}};function Su(t,e){return t.push(e),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}xu.prototype.match=function(t,e,a){return this.matcher.match(t,e,a)},Tu.currentRoute.get=function(){return this.history&&this.history.current},xu.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var a=e.apps.indexOf(t);a>-1&&e.apps.splice(a,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var a=this.history;if(a instanceof fu||a instanceof bu){var n=function(){a.setupListeners()};a.transitionTo(a.getCurrentLocation(),n,n)}a.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},xu.prototype.beforeEach=function(t){return Su(this.beforeHooks,t)},xu.prototype.beforeResolve=function(t){return Su(this.resolveHooks,t)},xu.prototype.afterEach=function(t){return Su(this.afterHooks,t)},xu.prototype.onReady=function(t,e){this.history.onReady(t,e)},xu.prototype.onError=function(t){this.history.onError(t)},xu.prototype.push=function(t,e,a){var n=this;if(!e&&!a&&"undefined"!=typeof Promise)return new Promise((function(e,a){n.history.push(t,e,a)}));this.history.push(t,e,a)},xu.prototype.replace=function(t,e,a){var n=this;if(!e&&!a&&"undefined"!=typeof Promise)return new Promise((function(e,a){n.history.replace(t,e,a)}));this.history.replace(t,e,a)},xu.prototype.go=function(t){this.history.go(t)},xu.prototype.back=function(){this.go(-1)},xu.prototype.forward=function(){this.go(1)},xu.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},xu.prototype.resolve=function(t,e,a){var n=Cd(t,e=e||this.history.current,a,this),i=this.match(n,e),r=i.redirectedFrom||i.fullPath;return{location:n,route:i,href:function(t,e,a){var n="hash"===a?"#"+e:e;return t?id(t+"/"+n):n}(this.history.base,r,this.mode),normalizedTo:n,resolved:i}},xu.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Zc&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xu.prototype,Tu),xu.install=function t(e){if(!t.installed||xd!==e){t.installed=!0,xd=e;var a=function(t){return void 0!==t},n=function(t,e){var n=t.$options._parentVnode;a(n)&&a(n=n.data)&&a(n=n.registerRouteInstance)&&n(t,e)};e.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Oc),e.component("RouterLink",Sd);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},xu.version="3.3.4",Md&&window.Vue&&window.Vue.use(xu);var zu="object"==typeof global&&global&&global.Object===Object&&global,Mu="object"==typeof self&&self&&self.Object===Object&&self,Pu=zu||Mu||Function("return this")(),Du=Pu.Symbol,$u=Object.prototype,Nu=$u.hasOwnProperty,Lu=$u.toString,Ru=Du?Du.toStringTag:void 0;var Iu=Object.prototype.toString;var Fu=Du?Du.toStringTag:void 0;function Eu(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Fu&&Fu in Object(t)?function(t){var e=Nu.call(t,Ru),a=t[Ru];try{t[Ru]=void 0;var n=!0}catch(t){}var i=Lu.call(t);return n&&(e?t[Ru]=a:delete t[Ru]),i}(t):function(t){return Iu.call(t)}(t)}function ju(t){return null!=t&&"object"==typeof t}function Ou(t){return"symbol"==typeof t||ju(t)&&"[object Symbol]"==Eu(t)}function Bu(t,e){for(var a=-1,n=null==t?0:t.length,i=Array(n);++a-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function pp(t){return null!=t&&up(t.length)&&!Ku(t)}var hp=Object.prototype;function mp(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||hp)}function gp(t){return ju(t)&&"[object Arguments]"==Eu(t)}var fp=Object.prototype,vp=fp.hasOwnProperty,bp=fp.propertyIsEnumerable,yp=gp(function(){return arguments}())?gp:function(t){return ju(t)&&vp.call(t,"callee")&&!bp.call(t,"callee")};var _p="object"==typeof exports&&exports&&!exports.nodeType&&exports,kp=_p&&"object"==typeof module&&module&&!module.nodeType&&module,Ap=kp&&kp.exports===_p?Pu.Buffer:void 0,wp=(Ap?Ap.isBuffer:void 0)||function(){return!1},Cp={};function xp(t){return function(e){return t(e)}}Cp["[object Float32Array]"]=Cp["[object Float64Array]"]=Cp["[object Int8Array]"]=Cp["[object Int16Array]"]=Cp["[object Int32Array]"]=Cp["[object Uint8Array]"]=Cp["[object Uint8ClampedArray]"]=Cp["[object Uint16Array]"]=Cp["[object Uint32Array]"]=!0,Cp["[object Arguments]"]=Cp["[object Array]"]=Cp["[object ArrayBuffer]"]=Cp["[object Boolean]"]=Cp["[object DataView]"]=Cp["[object Date]"]=Cp["[object Error]"]=Cp["[object Function]"]=Cp["[object Map]"]=Cp["[object Number]"]=Cp["[object Object]"]=Cp["[object RegExp]"]=Cp["[object Set]"]=Cp["[object String]"]=Cp["[object WeakMap]"]=!1;var Tp="object"==typeof exports&&exports&&!exports.nodeType&&exports,Sp=Tp&&"object"==typeof module&&module&&!module.nodeType&&module,zp=Sp&&Sp.exports===Tp&&zu.process,Mp=function(){try{var t=Sp&&Sp.require&&Sp.require("util").types;return t||zp&&zp.binding&&zp.binding("util")}catch(t){}}(),Pp=Mp&&Mp.isTypedArray,Dp=Pp?xp(Pp):function(t){return ju(t)&&up(t.length)&&!!Cp[Eu(t)]},$p=Object.prototype.hasOwnProperty;function Np(t,e){var a=qu(t),n=!a&&yp(t),i=!a&&!n&&wp(t),r=!a&&!n&&!i&&Dp(t),s=a||n||i||r,o=s?function(t,e){for(var a=-1,n=Array(t);++a-1},Qp.prototype.set=function(t,e){var a=this.__data__,n=Hp(a,t);return n<0?(++this.size,a.push([t,e])):a[n][1]=e,this};var Yp=sp(Pu,"Map");function Jp(t,e){var a,n,i=t.__data__;return("string"==(n=typeof(a=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?i["string"==typeof e?"string":"hash"]:i.map}function Zp(t){var e=-1,a=null==t?0:t.length;for(this.clear();++eo))return!1;var c=r.get(t);if(c&&r.get(e))return c==e;var d=-1,u=!0,p=2&a?new Ah:void 0;for(r.set(t,e),r.set(e,t);++de||r&&s&&l&&!o&&!c||n&&s&&l||!a&&l||!i)return 1;if(!n&&!r&&!c&&t=o?l:l*("desc"==a[n]?-1:1)}return t.index-e.index}(t,e,a)}))}function Kh(t,e,a,n){return null==t?[]:(qu(e)||(e=null==e?[]:[e]),qu(a=n?void 0:a)||(a=null==a?[]:[a]),Hh(t,e,a))}function Qh(t,e,a){window.windows_stack=[],window.currentStack={},function(t){if("main"==t)return;const e=document.getElementsByClassName(t+"_tablinks");for(let t=0;t({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{backTab:Jh,albumView:Yh.bind(null,"album"),reset(){this.title="Loading...",this.image="",this.type="",this.currentTab="",this.sortKey="release_date",this.sortOrder="desc",this.link="",this.head=[],this.body=null},addToQueue(t){t.stopPropagation(),ol.sendAddToQueue(t.currentTarget.dataset.link)},sortBy(t){t==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=t,this.sortOrder="asc")},changeTab(t){this.currentTab=t},getCurrentTab(){return this.currentTab},updateSelected(){window.currentStack.selected=this.currentTab},checkNewRelease(t){let e=new Date,a=new Date(t);return a.setDate(a.getDate()+3),e.setHours(0,0,0,0),e.getTime()<=a.getTime()},showArtist(t){this.reset();const{name:e,picture_xl:a,id:n,releases:i}=t;this.title=e,this.image=a,this.type="Artist",this.link="https://www.deezer.com/artist/"+n,""===this.currentTab&&(this.currentTab=Object.keys(i)[0]),this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:this.$tc("globals.listTabs.title",1),sortKey:"title"},{title:this.$t("globals.listTabs.releaseDate"),sortKey:"release_date"},{title:this.$tc("globals.listTabs.track",2),sortKey:"nb_song"},{title:"",width:"32px"}],Gh(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?"nb_song"==this.sortKey?Kh(this.body[this.currentTab],(function(t){return new Number(t.nb_song)}),this.sortOrder):Kh(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){rl.on("show_artist",this.showArtist),uo.$on("artistTab:updateSelected",this.updateSelected),uo.$on("artistTab:changeTab",this.changeTab)}};var Xh=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"artist_tab"}},[a("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[a("h1",[t._v(t._s(t.title))]),t._v(" "),a("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("div",{staticClass:"tab"},t._l(t.body,(function(e,n){return a("button",{key:n,staticClass:"selective",class:{active:n===t.currentTab},attrs:{href:"#artist_"+n},on:{click:function(e){return t.changeTab(n)}}},[t._v("\n\t\t\t"+t._s(t.$tc("globals.listTabs."+n,2))+"\n\t\t")])})),0),t._v(" "),a("table",{staticClass:"table"},[a("thead",[a("tr",t._l(t.head,(function(e){return a("th",{class:{"sort-asc":e.sortKey==t.sortKey&&"asc"==t.sortOrder,"sort-desc":e.sortKey==t.sortKey&&"desc"==t.sortOrder,sortable:e.sortKey,clickable:e.sortKey},style:{width:e.width?e.width:"auto"},on:{click:function(a){e.sortKey&&t.sortBy(e.sortKey)}}},[t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t")])})),0)]),t._v(" "),a("tbody",t._l(t.showTable,(function(e){return a("tr",{key:e.id},[a("td",{staticClass:"inline-flex clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[a("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:e.cover_small}}),t._v(" "),e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t"),t.checkNewRelease(e.release_date)?a("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[t._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):t._e()]),t._v(" "),a("td",[t._v(t._s(e.release_date))]),t._v(" "),a("td",[t._v(t._s(e.nb_song))]),t._v(" "),a("td",{staticClass:"clickable",attrs:{"data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v(" file_download ")])])])})),0)]),t._v(" "),a("footer",[a("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};Xh._withStripped=!0;var tm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/ArtistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Xh,staticRenderFns:[]},(function(t){t&&t("data-v-3b523be2_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"ArtistTab.vue"},media:void 0})}),Zh,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const em={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:Jh,artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playPausePreview(t){uo.$emit("trackPreview:playPausePreview",t)},reset(){this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(t){ol.sendAddToQueue(t.currentTarget.dataset.link)},toggleAll(t){this.body.forEach(e=>{"track"==e.type&&(e.selected=t.currentTarget.checked)})},selectedLinks(){var t=[];return this.body&&this.body.forEach(e=>{"track"==e.type&&e.selected&&t.push("spotifyPlaylist"==this.type?e.uri:e.link)}),t.join(";")},convertDuration:co.convertDuration,showAlbum(t){this.reset();const{id:e,title:a,explicit_lyrics:n,label:i,artist:{name:r},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=t;this.type="album",this.link="https://www.deezer.com/album/"+e,this.title=a,this.explicit=n,this.label=i,this.metadata=`${r} • ${this.$tc("globals.listTabs.trackN",o)}`,this.release_date=l.substring(0,10),this.image=c,Gh(s)?this.body=null:this.body=s},showPlaylist(t){this.reset();const{id:e,title:a,picture_xl:n,creation_date:i,creator:{name:r},tracks:s,tracks:{length:o}}=t;this.type="playlist",this.link="https://www.deezer.com/playlist/"+e,this.title=a,this.image=n,this.release_date=i.substring(0,10),this.metadata=`${this.$t("globals.by",{artist:r})} • ${this.$tc("globals.listTabs.trackN",o)}`,Gh(s)?this.body=null:this.body=s},showSpotifyPlaylist(t){this.reset();const{uri:e,name:a,images:n,images:{length:i},owner:{display_name:r},tracks:s,tracks:{length:o}}=t;this.type="spotifyPlaylist",this.link=e,this.title=a,this.image=i?n[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`${this.$t("globals.by",{artist:r})} • ${this.$tc("globals.listTabs.trackN",o)}`,Gh(s)?this.body=null:this.body=s},selectRow(t,e){e.selected=!e.selected}},mounted(){uo.$on("tracklistTab:selectRow",this.selectRow),rl.on("show_album",this.showAlbum),rl.on("show_playlist",this.showPlaylist),rl.on("show_spotifyplaylist",this.showSpotifyPlaylist)}};var am=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"tracklist_tab"}},[a("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[a("h1",{staticClass:"inline-flex"},[t._v("\n\t\t\t"+t._s(t.title)+" "),t.explicit?a("i",{staticClass:"material-icons explicit_icon explicit_icon--right"},[t._v("explicit")]):t._e()]),t._v(" "),a("h2",{staticClass:"inline-flex"},[t.metadata?a("span",[t._v(t._s(t.metadata))]):t._e(),t._v(" "),t.release_date?a("span",{staticClass:"right"},[t._v(t._s(t.release_date))]):t._e()])]),t._v(" "),a("table",{staticClass:"table table--tracklist"},[a("thead",[a("tr",[t._m(0),t._v(" "),a("th",[t._v("#")]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),"playlist"===t.type?a("th",[t._v(t._s(t.$tc("globals.listTabs.album",1)))]):t._e(),t._v(" "),t._m(1),t._v(" "),a("th",{staticClass:"table__icon table__cell--center clickable"},[a("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:t.toggleAll}})])])]),t._v(" "),a("tbody",["spotifyPlaylist"!==t.type?[t._l(t.body,(function(e,n){return["track"==e.type?a("tr",{on:{click:function(a){return t.selectRow(n,e)}}},[a("td",{staticClass:"table__cell--x-small table__cell--center"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",t._g({staticClass:"material-icons",class:{preview_playlist_controls:e.preview,disabled:!e.preview},attrs:{"data-preview":e.preview,title:t.$t("globals.play_hint")}},{click:!!e.preview&&t.playPausePreview}),[t._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),t._v(" "),a("td",{staticClass:"table__cell--small table__cell--center track_position"},[t._v("\n\t\t\t\t\t\t\t"+t._s("album"===t.type?e.track_position:t.body.indexOf(e)+1)+"\n\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--large table__cell--with-icon"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.artist.id},on:{click:t.artistView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t\t\t")]),t._v(" "),"playlist"==t.type?a("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.album.id},on:{click:t.albumView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),a("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===t.type,"table__cell--x-small":"playlist"===t.type}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__icon table__cell--center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(a){var n=e.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=t._i(n,null);i.checked?s<0&&t.$set(e,"selected",n.concat([null])):s>-1&&t.$set(e,"selected",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(e,"selected",r)}}})])]):"disc_separator"==e.type?a("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[t._m(2,!0),t._v(" "),a("td",{staticClass:"table__cell--center"},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.number)+"\n\t\t\t\t\t\t")]),t._v(" "),a("td",{attrs:{colspan:"4"}})]):t._e()]}))]:t._l(t.body,(function(e,n){return a("tr",[a("td",[e.preview_url?a("i",{class:"material-icons"+(e.preview_url?" preview_playlist_controls":""),attrs:{"data-preview":e.preview_url,title:t.$t("globals.play_hint")},on:{click:t.playPausePreview}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):a("i",{staticClass:"material-icons disabled"},[t._v("play_arrow")])]),t._v(" "),a("td",[t._v(t._s(n+1))]),t._v(" "),a("td",{staticClass:"inline-flex"},[e.explicit?a("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")]),t._v(" "),a("td",[t._v(t._s(e.artists[0].name))]),t._v(" "),a("td",[t._v(t._s(e.album.name))]),t._v(" "),a("td",[t._v(t._s(t.convertDuration(Math.floor(e.duration_ms/1e3))))]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(a){var n=e.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=t._i(n,null);i.checked?s<0&&t.$set(e,"selected",n.concat([null])):s>-1&&t.$set(e,"selected",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(e,"selected",r)}}})])])}))],2)]),t._v(" "),t.label?a("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[t._v(t._s(t.label))]):t._e(),t._v(" "),a("footer",[a("button",{attrs:{"data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(""+t.$t("globals.download",{thing:t.$tc("globals.listTabs."+t.type,1)}))+"\n\t\t")]),t._v(" "),a("button",{staticClass:"with_icon",attrs:{"data-link":t.selectedLinks()},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(t.$t("tracklist.downloadSelection"))),a("i",{staticClass:"material-icons"},[t._v("file_download")])]),t._v(" "),a("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};am._withStripped=!0;var nm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TracklistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:am,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("music_note")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("timer")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[e("i",{staticClass:"material-icons"},[this._v("album")])])])}]},(function(t){t&&t("data-v-0dcbed64_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TracklistTab.vue"},media:void 0})}),em,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));let im={},rm=!1;function sm(){return rm?im:(rl.emit("get_home_data"),new Promise((t,e)=>{rl.on("init_home",e=>{im=e,rm=!0,rl.off("init_home"),t(e)})}))}const om={data:()=>({playlists:[],albums:[]}),async created(){const t=await sm();this.initHome(t)},computed:{...Vo(["isLoggedIn"]),needToWait(){return 0===this.getHomeData.albums.data.length&&0===this.getHomeData.playlists.data.length}},methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playlistView:Yh.bind(null,"playlist"),addToQueue(t){sl(t.currentTarget.dataset.link)},initHome(t){const{playlists:{data:e},albums:{data:a}}=t;this.playlists=e,this.albums=a}}};var lm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"home_tab"}},[a("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("globals.welcome")))]),t._v(" "),t.isLoggedIn?t._e():a("section",{ref:"notLogged",staticClass:"home_section"},[a("p",{attrs:{id:"home_not_logged_text"}},[t._v(t._s(t.$t("home.needTologin")))]),t._v(" "),a("router-link",{attrs:{tag:"button",name:"button",to:{name:"Settings"}}},[t._v("\n\t\t\t"+t._s(t.$t("home.openSettings"))+"\n\t\t")])],1),t._v(" "),t.playlists.length?a("section",{staticClass:"home_section"},[a("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularPlaylists")))]),t._v(" "),a("div",{staticClass:"release_grid"},t._l(t.playlists,(function(e){return a("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id,tabindex:"0"},on:{click:t.playlistView,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.playlistView(e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.user.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])})),0)]):t._e(),t._v(" "),t.albums.length?a("section",{staticClass:"home_section"},[a("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularAlbums")))]),t._v(" "),a("div",{staticClass:"release_grid"},t._l(t.albums,(function(e){return a("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id,tabindex:"0"},on:{click:t.albumView,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.albumView(e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(""+t.$t("globals.by",{artist:e.artist.name})))])])})),0)]):t._e()])};lm._withStripped=!0;var cm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheHomeTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:lm,staticRenderFns:[]},(function(t){t&&t("data-v-26f3965a_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),om,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));let dm={},um=!1;function pm(){return um?dm:(rl.emit("get_charts_data"),new Promise((t,e)=>{rl.on("init_charts",e=>{dm=e,um=!0,rl.off("init_charts"),t(e)})}))}const hm={data:()=>({country:"",id:0,countries:[],chart:[]}),async created(){rl.on("setChartTracks",this.setTracklist),this.$on("hook:destroyed",()=>{rl.off("setChartTracks")});const t=await pm();this.initCharts(t)},methods:{convertDuration:ro,artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playPausePreview(t){uo.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){uo.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){uo.$emit("trackPreview:previewMouseLeave",t)},addToQueue(t){t.stopPropagation(),sl(t.currentTarget.dataset.link)},getTrackList(t){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:e}},currentTarget:{dataset:{id:a}}}=t;this.country=e,localStorage.setItem("chart",this.country),this.id=a,rl.emit("getChartTracks",this.id)},setTracklist(t){this.chart=t},onChangeCountry(){this.country="",this.id=0},initCharts(t){if(this.countries=t,this.country=localStorage.getItem("chart")||"",!this.country)return;let e=0;for(;e{rl.on("init_favorites",e=>{fm=e,vm=!0,rl.off("init_favorites"),t(e)})}))}const ym={data:()=>({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[],activeTab:"playlist",tabs:["playlist","album","artist","track"]}),async created(){const t=await bm();0!==Object.entries(t).length&&this.setFavorites(t)},mounted(){rl.on("updated_userFavorites",this.updated_userFavorites),rl.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),rl.on("updated_userPlaylists",this.updated_userPlaylists),rl.on("updated_userAlbums",this.updated_userAlbums),rl.on("updated_userArtist",this.updated_userArtist),rl.on("updated_userTracks",this.updated_userTracks),this.$on("hook:destroyed",()=>{rl.off("updated_userFavorites"),rl.off("updated_userSpotifyPlaylists"),rl.off("updated_userPlaylists"),rl.off("updated_userAlbums"),rl.off("updated_userArtist"),rl.off("updated_userTracks")})},methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playlistView:Yh.bind(null,"playlist"),spotifyPlaylistView:Yh.bind(null,"spotifyplaylist"),playPausePreview(t){EventBus.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){EventBus.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){EventBus.$emit("trackPreview:previewMouseLeave",t)},convertDuration:ro,addToQueue(t){sl(t.currentTarget.dataset.link)},updated_userSpotifyPlaylists(t){this.spotifyPlaylists=t},updated_userPlaylists(t){this.playlists=t},updated_userAlbums(t){this.albums=t},updated_userArtist(t){this.artists=t},updated_userTracks(t){this.tracks=t},reloadTabs(){this.$refs.reloadButton.classList.add("spin"),rl.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&rl.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(t){this.setFavorites(t),this.$refs.reloadButton.addEventListener("animationiteration",()=>{this.$refs.reloadButton.classList.remove("spin"),kl(this.$t("toasts.refreshFavs"),"done",!0)},{once:!0})},setFavorites(t){const{tracks:e,albums:a,artists:n,playlists:i}=t;this.tracks=e,this.albums=a,this.artists=n,this.playlists=i}}};var _m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main_tabcontent",attrs:{id:"favorites_tab"}},[a("h2",{staticClass:"page_heading"},[t._v("\n\t\t"+t._s(t.$t("favorites.title"))+"\n\t\t"),a("div",{ref:"reloadButton",staticClass:"clickable reload-button reload-button--inline",attrs:{role:"button","aria-label":"reload"},on:{click:t.reloadTabs}},[a("i",{staticClass:"material-icons"},[t._v("sync")])])]),t._v(" "),a("div",{staticClass:"section-tabs"},t._l(t.tabs,(function(e){return a("div",{key:e,staticClass:"section-tabs__tab favorites_tablinks",class:{active:t.activeTab===e},on:{click:function(a){t.activeTab=e}}},[t._v("\n\t\t\t"+t._s(t.$tc("globals.listTabs."+e,2))+"\n\t\t")])})),0),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"playlist"===t.activeTab}},[0==t.playlists.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noPlaylists")))])]):t._e(),t._v(" "),t.playlists.length>0||t.spotifyPlaylists>0?a("div",{staticClass:"release_grid"},[t._l(t.playlists,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.playlistView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.creator.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])})),t._v(" "),t._l(t.spotifyPlaylists,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.spotifyPlaylistView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.creator.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])}))],2):t._e()]),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"album"===t.activeTab}},[0==t.albums.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noAlbums")))])]):t._e(),t._v(" "),t.albums.length>0?a("div",{staticClass:"release_grid"},t._l(t.albums,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(""+t.$t("globals.by",{artist:e.artist.name})))])])})),0):t._e()]),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"artist"===t.activeTab}},[0==t.artists.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noArtists")))])]):t._e(),t._v(" "),t.artists.length>0?a("div",{staticClass:"release_grid"},t._l(t.artists,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.artistView}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"circle coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.name))])])})),0):t._e()]),t._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"track"===t.activeTab}},[0==t.tracks.length?a("div",[a("h1",[t._v(t._s(t.$t("favorites.noTracks")))])]):t._e(),t._v(" "),t.tracks.length>0?a("table",{staticClass:"table"},t._l(t.tracks,(function(e){return a("tr",{staticClass:"track_row"},[a("td",{staticClass:"top-tracks-position",class:{first:1===e.position}},[t._v("\n\t\t\t\t\t"+t._s(e.position)+"\n\t\t\t\t")]),t._v(" "),a("td",[a("a",{staticClass:"rounded",class:{"single-cover":!!e.preview},attrs:{href:"#","data-preview":e.preview},on:{click:t.playPausePreview}},[e.preview?a("i",{staticClass:"material-icons preview_controls",attrs:{title:t.$t("globals.play_hint")},on:{mouseenter:t.previewMouseEnter,mouseleave:t.previewMouseLeave}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):t._e(),t._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:e.album.cover_small}})])]),t._v(" "),a("td",{staticClass:"table__cell--large breakline"},[t._v("\n\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.artist.id},on:{click:t.artistView}},[t._v("\n\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.album.id},on:{click:t.albumView}},[t._v("\n\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--small"},[t._v("\n\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--download clickable",attrs:{"data-link":e.link,role:"button","aria-label":"download"},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])])])})),0):t._e()])])};_m._withStripped=!0;var km=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheFavoritesTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:_m,staticRenderFns:[]},(function(t){t&&t("data-v-779bfa9c_0",{source:".favorites_tabcontent {\n display: none;\n}\n.favorites_tabcontent--active {\n display: block;\n}\n\n/*# sourceMappingURL=TheFavoritesTab.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheFavoritesTab.vue","TheFavoritesTab.vue"],names:[],mappings:"AA8MA;EACA,aAAA;AAAA;AAEA;IACA,cAAA;AAAA;;AC7MA,8CAA8C",file:"TheFavoritesTab.vue",sourcesContent:[null,".favorites_tabcontent {\n display: none; }\n .favorites_tabcontent--active {\n display: block; }\n\n/*# sourceMappingURL=TheFavoritesTab.vue.map */"]},media:void 0})}),ym,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const Am={computed:{...Vo(["getErrors"]),title(){return`${this.getErrors.artist} - ${this.getErrors.title}`},errors(){return this.getErrors.errors}}};var wm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main_tabcontent",attrs:{id:"errors_tab"}},[a("h1",[t._v(t._s(t.$t("errors.title",{name:t.title})))]),t._v(" "),a("table",{staticClass:"table table--tracklist"},[a("tr",[a("th",[t._v("ID")]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.error",1)))])]),t._v(" "),t._l(t.errors,(function(e){return a("tr",{key:e.data.id},[a("td",[t._v(t._s(e.data.id))]),t._v(" "),a("td",[t._v(t._s(e.data.artist))]),t._v(" "),a("td",[t._v(t._s(e.data.title))]),t._v(" "),a("td",[t._v(t._s(e.errid?t.$t("errors.ids."+e.errid):e.message))])])}))],2)])};wm._withStripped=!0;var Cm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheErrorsTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:wm,staticRenderFns:[]},(function(t){t&&t("data-v-0a6b5468_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheErrorsTab.vue"},media:void 0})}),Am,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const xm={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};const Tm={data:()=>({link:"",title:"",subtitle:"",image:"",data:{},type:"",id:"0",countries:[]}),methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),convertDuration:ro,reset(){this.title="Loading...",this.subtitle="",this.image="",this.data={},this.type="",this.link="",this.countries=[]},showTrack(t){this.reset();const{title:e,title_version:a,album:{cover_xl:n},link:i,available_countries:r,id:s}=t;this.title=e+(a&&-1==e.indexOf(a)?" "+a:""),this.image=n,this.type="track",this.link=i,this.id=s,r.forEach(t=>{let e=[],a=[...t].map(t=>t.charCodeAt()+127397);e.push(String.fromCodePoint(...a)),e.push(xm[t]),this.countries.push(e)}),this.data=t},showAlbum(t){this.reset();const{title:e,cover_xl:a,link:n,id:i}=t;this.title=e,this.image=a,this.type="album",this.link=n,this.data=t,this.id=i},notSupported(){this.link="error"},addToQueue(t){sl(t.currentTarget.dataset.link)}},mounted(){uo.$on("linkAnalyzerTab:reset",this.reset),rl.on("analyze_track",this.showTrack),rl.on("analyze_album",this.showAlbum),rl.on("analyze_notSupported",this.notSupported)}};var Sm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent image_header",attrs:{id:"analyzer_tab"}},[a("h2",{staticClass:"page_heading page_heading--capitalize"},[t._v(t._s(t.$t("sidebar.linkAnalyzer")))]),t._v(" "),""===t.link?a("div",[a("p",[t._v("\n\t\t\t"+t._s(t.$t("linkAnalyzer.info"))+"\n\t\t")]),t._v(" "),a("p",[t._v("\n\t\t\t"+t._s(t.$t("linkAnalyzer.useful"))+"\n\t\t")])]):"error"===t.link?a("div",[a("h2",[t._v(t._s(t.$t("linkAnalyzer.linkNotSupported")))]),t._v(" "),a("p",[t._v(t._s(t.$t("linkAnalyzer.linkNotSupportedYet")))])]):a("div",[a("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[a("div",[a("h1",[t._v(t._s(t.title))]),t._v(" "),"track"==t.type?a("h2",[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("span",{staticClass:"clickable",attrs:{place:"artist","data-id":t.data.artist.id},on:{click:t.artistView}},[t._v(t._s(t.data.artist.name))])]),t._v("\n\t\t\t\t\t•\n\t\t\t\t\t"),a("i18n",{attrs:{path:"globals.in",tag:"span"}},[a("span",{staticClass:"clickable",attrs:{place:"album","data-id":t.data.album.id},on:{click:t.albumView}},[t._v(t._s(t.data.album.title))])])],1):"album"==t.type?a("h2",[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("span",{staticClass:"clickable",attrs:{place:"artist","data-id":t.data.artist.id},on:{click:t.artistView}},[t._v(t._s(t.data.artist.name))])]),t._v("\n\t\t\t\t\t"+t._s(" • "+t.$tc("globals.listTabs.trackN",t.data.nb_tracks))+"\n\t\t\t\t")],1):t._e()]),t._v(" "),a("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)},click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("table",{staticClass:"table"},[t.data.id?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.id")))]),t._v(" "),a("td",[t._v(t._s(t.data.id))])]):t._e(),t._v(" "),t.data.isrc?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.isrc")))]),t._v(" "),a("td",[t._v(t._s(t.data.isrc))])]):t._e(),t._v(" "),t.data.upc?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.upc")))]),t._v(" "),a("td",[t._v(t._s(t.data.upc))])]):t._e(),t._v(" "),t.data.duration?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.duration")))]),t._v(" "),a("td",[t._v(t._s(t.convertDuration(t.data.duration)))])]):t._e(),t._v(" "),t.data.disk_number?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.diskNumber")))]),t._v(" "),a("td",[t._v(t._s(t.data.disk_number))])]):t._e(),t._v(" "),t.data.track_position?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.trackNumber")))]),t._v(" "),a("td",[t._v(t._s(t.data.track_position))])]):t._e(),t._v(" "),t.data.release_date?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.releaseDate")))]),t._v(" "),a("td",[t._v(t._s(t.data.release_date))])]):t._e(),t._v(" "),t.data.bpm?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.bpm")))]),t._v(" "),a("td",[t._v(t._s(t.data.bpm))])]):t._e(),t._v(" "),t.data.label?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.label")))]),t._v(" "),a("td",[t._v(t._s(t.data.label))])]):t._e(),t._v(" "),t.data.record_type?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.recordType")))]),t._v(" "),a("td",[t._v(t._s(t.$tc("globals.listTabs."+t.data.record_type,1)))])]):t._e(),t._v(" "),t.data.genres&&t.data.genres.data.length?a("tr",[a("td",[t._v(t._s(t.$t("linkAnalyzer.table.genres")))]),t._v(" "),a("td",[t._v(t._s(t.data.genres.data.map((function(t){return t.name})).join("; ")))])]):t._e()]),t._v(" "),"album"==t.type?a("div",[a("button",{attrs:{"data-id":t.id},on:{click:t.albumView}},[t._v(t._s(t.$t("linkAnalyzer.table.tracklist")))])]):t._e(),t._v(" "),t.countries.length?a("div",t._l(t.countries,(function(e){return a("p",[t._v(t._s(e[0])+" - "+t._s(e[1]))])})),0):t._e()])])};Sm._withStripped=!0;var zm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheLinkAnalyzerTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Sm,staticRenderFns:[]},(function(t){t&&t("data-v-3990b79a_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheLinkAnalyzerTab.vue"},media:void 0})}),Tm,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const Mm={data:()=>({paypal:'\n\x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ethereum:'',current:null,latest:null,updateAvailable:!1,deemixVersion:null}),computed:{...Vo(["getAboutInfo"])},methods:{initUpdate(t){const{currentCommit:e,latestCommit:a,updateAvailable:n,deemixVersion:i}=t;this.current=e,this.latest=a,this.updateAvailable=n,this.deemixVersion=i}},mounted(){this.initUpdate(this.getAboutInfo)}};var Pm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"about_tab"}},[a("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("sidebar.about")))]),t._v(" "),a("ul",[a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.updates.currentVersion"))+":\n\t\t\t"),a("span",[t._v(t._s(t.current||t.$t("about.updates.versionNotAvailable")))])]),t._v(" "),a("li",[t._v(t._s(t.$t("about.updates.deemixVersion"))+": "+t._s(t.deemixVersion))]),t._v(" "),t.updateAvailable&&t.latest?a("li",[t._v(t._s(t.$t("about.updates.updateAvailable",{version:t.latest})))]):t._e()]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.usesLibrary"))}}),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.thanks"))}}),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.upToDate"))}})]),t._v(" "),a("h2",[t._v(t._s(t.$t("about.titles.usefulLinks")))]),t._v(" "),a("ul",{staticClass:"no-dots"},[a("li",[a("a",{attrs:{href:"https://deemix.app",target:"_blank"}},[t._v("🌍 "+t._s(t.$t("about.officialWebsite")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix",target:"_blank"}},[t._v("🚀 "+t._s(t.$t("about.officialRepo")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix-webui",target:"_blank"}},[t._v("💻 "+t._s(t.$t("about.officialWebuiRepo")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://www.reddit.com/r/deemix",target:"_blank"}},[t._v("🤖 "+t._s(t.$t("about.officialSubreddit")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"https://t.me/RemixDevNews",target:"_blank"}},[t._v("📰 "+t._s(t.$t("about.newsChannel")))])])]),t._v(" "),a("h2",[t._v("\n\t\t"+t._s(t.$t("about.titles.bugReports"))+"\n\t\t"),a("span",{staticClass:"subheading"},[t._v("\n\t\t\t"+t._s(t.$t("about.subtitles.bugReports"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.questions"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.beforeReporting"))+"\n\t\t")]),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.beSure"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.duplicateReports"))+"\n\t\t")]),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.dontOpenIssues"))}})]),t._v(" "),a("h2",[t._v("\n\t\t"+t._s(t.$t("about.titles.contributing"))+"\n\t\t"),a("span",{staticClass:"subheading"},[t._v("\n\t\t\t"+t._s(t.$t("about.subtitles.contributing"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.newUI"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.acceptFeatures"))+"\n\t\t")]),t._v(" "),a("li",{domProps:{innerHTML:t._s(t.$t("about.contributeWebUI"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.otherLanguages"))+"\n\t\t")]),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.understandingCode"))+"\n\t\t")])]),t._v(" "),a("h2",[t._v("\n\t\t"+t._s(t.$t("about.titles.donations"))+"\n\t\t"),a("span",{staticClass:"subheading"},[t._v("\n\t\t\t"+t._s(t.$t("about.subtitles.donations"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",{domProps:{innerHTML:t._s(t.$t("about.itsFree"))}}),t._v(" "),a("li",[t._v("\n\t\t\t"+t._s(t.$t("about.notObligated"))+"\n\t\t")])]),t._v(" "),a("ul",[a("li",[a("i",{domProps:{innerHTML:t._s(t.paypal)}}),t._v(" "),a("strong",[t._v("PayPal:")]),t._v(" "),a("a",{attrs:{href:"https://paypal.me/RemixDev",target:"_blank"}},[t._v("PayPal.me/RemixDev")])]),t._v(" "),a("li",[a("i",{staticClass:"ethereum",domProps:{innerHTML:t._s(t.ethereum)}}),t._v(" "),a("strong",[t._v("Ethereum:")]),t._v(" 0x1d2aa67e671485CD4062289772B662e0A6Ff976c\n\t\t")])]),t._v(" "),a("h2",[t._v(t._s(t.$t("about.titles.license")))]),t._v(" "),t._m(0),t._v(" "),a("p",{domProps:{innerHTML:t._s(t.$t("about.lincensedUnder"))}})])};Pm._withStripped=!0;var Dm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheAboutTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Pm,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[e("img",{staticStyle:{"border-width":"0"},attrs:{alt:"GNU General Public License",src:"https://www.gnu.org/graphics/gplv3-127x51.png"}})])])}]},(function(t){t&&t("data-v-c6d4c79c_0",{source:"@charset \"UTF-8\";\nli[data-v-c6d4c79c],\np[data-v-c6d4c79c],\na[data-v-c6d4c79c] {\n letter-spacing: 0.4px;\n font-size: 20px;\n line-height: 1.2;\n}\ni[data-v-c6d4c79c] {\n vertical-align: middle;\n}\ni[data-v-c6d4c79c] svg {\n fill: white;\n width: 20px;\n}\n.ethereum[data-v-c6d4c79c] svg {\n fill: var(--foreground);\n}\n[data-v-c6d4c79c]:link {\n text-decoration: none;\n}\n#about_tab[data-v-c6d4c79c] {\n margin-bottom: 40px;\n}\nh2[data-v-c6d4c79c] {\n text-transform: capitalize;\n}\nh2[data-v-c6d4c79c]:not(.page_heading) {\n font-size: 2rem;\n border-bottom: 1px solid rgba(51, 51, 51, 0.25);\n padding-top: 2rem;\n padding-bottom: 1rem;\n}\nh2 .subheading[data-v-c6d4c79c] {\n display: block;\n font-size: 0.5em;\n margin-top: 0.5em;\n font-weight: normal;\n opacity: 0.8;\n text-transform: none;\n}\np[data-v-c6d4c79c] {\n margin: 0 !important;\n}\nul li[data-v-c6d4c79c] {\n margin-bottom: 7px;\n}\nh2 + ul[data-v-c6d4c79c] {\n margin-top: 1rem;\n}\nul + ul[data-v-c6d4c79c] {\n margin-top: 1.25rem;\n}\nul.no-dots[data-v-c6d4c79c] {\n list-style-type: none;\n}\nul[data-v-c6d4c79c]:not(.no-dots) {\n list-style-type: none;\n}\nul:not(.no-dots) li[data-v-c6d4c79c] {\n position: relative;\n}\nul:not(.no-dots) li[data-v-c6d4c79c]::before {\n content: '—';\n position: absolute;\n left: -30px;\n opacity: 0.25;\n}\n\n/*# sourceMappingURL=TheAboutTab.vue.map */",map:{version:3,sources:["TheAboutTab.vue","/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheAboutTab.vue"],names:[],mappings:"AAAA,gBAAgB;ACkHhB;;;EAGA,qBAAA;EACA,eAAA;EACA,gBAAA;AAAA;AAGA;EACA,sBAAA;AAAA;AAGA;EACA,WAAA;EACA,WAAA;AAAA;AAGA;EACA,uBAAA;AAAA;AAGA;EACA,qBAAA;AAAA;AAGA;EACA,mBAAA;AAAA;AAGA;EACA,0BAAA;AAAA;AADA;IAIA,eAAA;IACA,+CAAA;IAEA,iBAAA;IACA,oBAAA;AAAA;AARA;IAaA,cAAA;IACA,gBAAA;IACA,iBAAA;IACA,mBAAA;IACA,YAAA;IACA,oBAAA;AAAA;AAIA;EACA,oBAAA;AAAA;AAGA;EAEA,kBAAA;AAAA;AAGA;EACA,gBAAA;AAAA;AAGA;EACA,mBAAA;AAAA;AAVA;EAcA,qBAAA;AAAA;AAdA;EAkBA,qBAAA;AAAA;AAlBA;IAqBA,kBAAA;AAAA;AArBA;MAwBA,YAAA;MACA,kBAAA;MACA,WAAA;MACA,aAAA;AAAA;;ADpIA,0CAA0C",file:"TheAboutTab.vue",sourcesContent:["@charset \"UTF-8\";\nli,\np,\na {\n letter-spacing: 0.4px;\n font-size: 20px;\n line-height: 1.2; }\n\ni {\n vertical-align: middle; }\n\ni /deep/ svg {\n fill: white;\n width: 20px; }\n\n.ethereum /deep/ svg {\n fill: var(--foreground); }\n\n:link {\n text-decoration: none; }\n\n#about_tab {\n margin-bottom: 40px; }\n\nh2 {\n text-transform: capitalize; }\n h2:not(.page_heading) {\n font-size: 2rem;\n border-bottom: 1px solid rgba(51, 51, 51, 0.25);\n padding-top: 2rem;\n padding-bottom: 1rem; }\n h2 .subheading {\n display: block;\n font-size: 0.5em;\n margin-top: 0.5em;\n font-weight: normal;\n opacity: 0.8;\n text-transform: none; }\n\np {\n margin: 0 !important; }\n\nul li {\n margin-bottom: 7px; }\n\nh2 + ul {\n margin-top: 1rem; }\n\nul + ul {\n margin-top: 1.25rem; }\n\nul.no-dots {\n list-style-type: none; }\n\nul:not(.no-dots) {\n list-style-type: none; }\n ul:not(.no-dots) li {\n position: relative; }\n ul:not(.no-dots) li::before {\n content: '—';\n position: absolute;\n left: -30px;\n opacity: 0.25; }\n\n/*# sourceMappingURL=TheAboutTab.vue.map */",null]},media:void 0})}),Mm,"data-v-c6d4c79c",!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}})),$m={it:'\n\n\n\n',en:'\n\n\n\n\n\n\n\n\n',es:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',de:'\nFlag of Germany\n\n\n\n',fr:'\n\n\n\n',id:'\n\n\n',pt:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',pt_br:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ru:'\n\n\n\n',tr:'\n\n\n\n\n',vn:'\n\n\n\n\n\n\n\n\n\n\n',hr:'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ar:'\n\x3c!-- Creator: CorelDRAW --\x3e\nimage/svg+xml\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',ko:'\nFlag of South Korea\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',ph:'\nFlag of the Philippines\nCoding according to the official "description and specification of the FILIPINO flag" in Executive Order No. 23 from 1936\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'};let Nm={},Lm={},Rm={};function Im(){return rl.emit("get_settings_data"),new Promise((t,e)=>{rl.on("init_settings",(e,a,n)=>{Nm=e,Lm=n,Rm=a,rl.off("init_settings"),t({settingsData:Nm,defaultSettingsData:Lm,spotifyCredentials:Rm})})})}const Fm={data:()=>({flags:$m,currentLocale:"en",locales:[],settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,previewVolume:window.vol,accountNum:0,accounts:[]}),computed:{...Vo({arl:"getARL",user:"getUser",isLoggedIn:"isLoggedIn",clientMode:"getClientMode"}),needToWait(){return 0===Object.keys(this.getSettings).length},changeSlimDownloads:{get(){return this.slimDownloads},set(t){this.slimDownloads=t,document.getElementById("download_list").classList.toggle("slim",t),localStorage.setItem("slimDownloads",t)}},pictureHref(){return`https://e-cdns-images.dzcdn.net/images/user/${this.user.picture}/125x125-000000-80-0-0.jpg`}},async mounted(){this.locales=this.$i18n.availableLocales;const{settingsData:t,defaultSettingsData:e,spotifyCredentials:a}=await Im();this.defaultSettings=e,this.initSettings(t,a);let n=localStorage.getItem("locale");n&&(this.currentLocale=n);let i=localStorage.getItem("accountNum");i&&(this.accountNum=i);let r=localStorage.getItem("spotifyUser");r&&(this.lastUser=r,this.spotifyUser=r,rl.emit("update_userSpotifyPlaylists",r)),this.changeSlimDownloads="true"===localStorage.getItem("slimDownloads");let s=parseInt(localStorage.getItem("previewVolume"));isNaN(s)&&(s=80,localStorage.setItem("previewVolume",s)),window.vol.preview_max_volume=s,rl.on("updateSettings",this.updateSettings),rl.on("accountChanged",this.accountChanged),rl.on("familyAccounts",this.initAccounts),rl.on("downloadFolderSelected",this.downloadFolderSelected),rl.on("applogin_arl",this.loggedInViaDeezer),this.$on("hook:destroyed",()=>{rl.off("updateSettings"),rl.off("accountChanged"),rl.off("familyAccounts"),rl.off("downloadFolderSelected"),rl.off("applogin_arl")})},methods:{...Go({dispatchARL:"setARL"}),revertSettings(){this.settings=JSON.parse(JSON.stringify(this.lastSettings))},revertCredentials(){this.spotifyCredentials=JSON.parse(JSON.stringify(this.lastCredentials)),this.spotifyUser=(" "+this.lastUser).slice(1)},copyARLtoClipboard(){let t=this.$refs.loginInput;t.setAttribute("type","text"),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),t.setAttribute("type","password"),kl(this.$t("settings.toasts.ARLcopied"),"assignment")},changeLocale(t){this.$i18n.locale=t,this.currentLocale=t,localStorage.setItem("locale",t)},updateMaxVolume(){localStorage.setItem("previewVolume",this.previewVolume.preview_max_volume)},saveSettings(){this.lastSettings=JSON.parse(JSON.stringify(this.settings)),this.lastCredentials=JSON.parse(JSON.stringify(this.spotifyFeatures));let t=!1;this.lastUser!=this.spotifyUser&&(this.lastUser=(" "+this.spotifyUser).slice(1),localStorage.setItem("spotifyUser",this.lastUser),t=!0),rl.emit("saveSettings",this.lastSettings,this.lastCredentials,!!t&&this.lastUser)},selectDownloadFolder(){rl.emit("selectDownloadFolder")},downloadFolderSelected(t){this.$set(this.settings,"downloadLocation",t)},loadSettings(t){this.lastSettings=JSON.parse(JSON.stringify(t)),this.settings=JSON.parse(JSON.stringify(t))},loadCredentials(t){this.lastCredentials=JSON.parse(JSON.stringify(t)),this.spotifyFeatures=JSON.parse(JSON.stringify(t))},loggedInViaDeezer(t){this.dispatchARL({arl:t}),rl.emit("login",t,!0,this.accountNum)},login(){let t=this.$refs.loginInput.value.trim();t&&t!==this.arl&&rl.emit("login",t,!0,this.accountNum)},appLogin(t){rl.emit("applogin")},changeAccount(){rl.emit("changeAccount",this.accountNum)},accountChanged(t,e){this.$refs.username.innerText=t.name,this.$refs.userpicture.src=`https://e-cdns-images.dzcdn.net/images/user/${t.picture}/125x125-000000-80-0-0.jpg`,this.accountNum=e,localStorage.setItem("accountNum",this.accountNum)},initAccounts(t){this.accounts=t},logout(){rl.emit("logout")},initSettings(t,e){this.loadSettings(t),this.loadCredentials(e),kl(this.$t("settings.toasts.init"),"settings")},updateSettings(t,e){this.loadSettings(t),this.loadCredentials(e),kl(this.$t("settings.toasts.update"),"settings")},resetSettings(){this.settings=JSON.parse(JSON.stringify(this.defaultSettings))}}};var Em=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"root",staticClass:"main_tabcontent fixed_footer",attrs:{id:"settings_tab"}},[a("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("settings.title")))]),t._v(" "),t.isLoggedIn?a("div",{ref:"loggedInInfo",attrs:{id:"logged_in_info"}},[a("img",{ref:"userpicture",staticClass:"circle",attrs:{id:"settings_picture",src:t.pictureHref,alt:"Profile Picture"}}),t._v(" "),a("i18n",{attrs:{path:"settings.login.loggedIn",tag:"p"}},[a("strong",{ref:"username",attrs:{place:"username",id:"settings_username"}},[t._v(t._s(t.user.name||"not logged"))])]),t._v(" "),a("button",{attrs:{id:"settings_btn_logout"},on:{click:t.logout}},[t._v(t._s(t.$t("settings.login.logout")))]),t._v(" "),t.accounts.length?a("select",{directives:[{name:"model",rawName:"v-model",value:t.accountNum,expression:"accountNum"}],attrs:{id:"family_account"},on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.accountNum=e.target.multiple?a:a[0]},t.changeAccount]}},t._l(t.accounts,(function(e,n){return a("option",{key:e,domProps:{value:n.toString()}},[t._v(t._s(e.BLOG_NAME))])})),0):t._e()],1):t._e(),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("person")]),t._v(t._s(t.$t("settings.login.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"inline-flex"},[a("input",{ref:"loginInput",attrs:{autocomplete:"off",type:"password",id:"login_input_arl",placeholder:"ARL"},domProps:{value:t.arl}}),t._v(" "),a("button",{staticClass:"only_icon",attrs:{id:"settings_btn_copyArl"},on:{click:t.copyARLtoClipboard}},[a("i",{staticClass:"material-icons"},[t._v("assignment")])])]),t._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Getting-your-own-ARL",target:"_blank"}},[t._v("\n\t\t\t"+t._s(t.$t("settings.login.arl.question"))+"\n\t\t")]),t._v(" "),t.clientMode?a("a",{attrs:{id:"settings_btn_applogin",href:"#"},on:{click:t.appLogin}},[t._v("\n\t\t\t"+t._s(t.$t("settings.login.login"))+"\n\t\t")]):t._e(),t._v(" "),a("button",{staticStyle:{width:"100%"},attrs:{id:"settings_btn_updateArl"},on:{click:t.login}},[t._v("\n\t\t\t"+t._s(t.$t("settings.login.arl.update"))+"\n\t\t")])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("language")]),t._v(t._s(t.$t("settings.languages"))+"\n\t\t")]),t._v(" "),a("div",t._l(t.locales,(function(e){return a("span",{key:e,staticClass:"locale-flag",class:{"locale-flag--current":t.currentLocale===e},attrs:{title:e},domProps:{innerHTML:t._s(t.flags[e])},on:{click:function(a){return t.changeLocale(e)}}})})),0)]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("web")]),t._v(t._s(t.$t("settings.appearance.title"))+"\n\t\t")]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.changeSlimDownloads,expression:"changeSlimDownloads"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.changeSlimDownloads)?t._i(t.changeSlimDownloads,null)>-1:t.changeSlimDownloads},on:{change:function(e){var a=t.changeSlimDownloads,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&(t.changeSlimDownloads=a.concat([null])):r>-1&&(t.changeSlimDownloads=a.slice(0,r).concat(a.slice(r+1)))}else t.changeSlimDownloads=i}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.appearance.slimDownloadTab")))])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("folder")]),t._v(t._s(t.$t("settings.downloadPath.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"inline-flex"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.downloadLocation,expression:"settings.downloadLocation"}],attrs:{autocomplete:"off",type:"text"},domProps:{value:t.settings.downloadLocation},on:{input:function(e){e.target.composing||t.$set(t.settings,"downloadLocation",e.target.value)}}}),t._v(" "),t.clientMode?a("button",{staticClass:"only_icon",attrs:{id:"select_downloads_folder"},on:{click:t.selectDownloadFolder}},[a("i",{staticClass:"material-icons"},[t._v("folder")])]):t._e()])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("font_download")]),t._v(t._s(t.$t("settings.templates.title"))+"\n\t\t")]),t._v(" "),a("p",[t._v(t._s(t.$t("settings.templates.tracknameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tracknameTemplate,expression:"settings.tracknameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.tracknameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"tracknameTemplate",e.target.value)}}}),t._v(" "),a("p",[t._v(t._s(t.$t("settings.templates.albumTracknameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.albumTracknameTemplate,expression:"settings.albumTracknameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.albumTracknameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"albumTracknameTemplate",e.target.value)}}}),t._v(" "),a("p",[t._v(t._s(t.$t("settings.templates.playlistTracknameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.playlistTracknameTemplate,expression:"settings.playlistTracknameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.playlistTracknameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"playlistTracknameTemplate",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("create_new_folder")]),t._v(t._s(t.$t("settings.folders.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createPlaylistFolder,expression:"settings.createPlaylistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createPlaylistFolder)?t._i(t.settings.createPlaylistFolder,null)>-1:t.settings.createPlaylistFolder},on:{change:function(e){var a=t.settings.createPlaylistFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createPlaylistFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createPlaylistFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createPlaylistFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createPlaylistFolder")))])]),t._v(" "),t.settings.createPlaylistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.folders.playlistNameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.playlistNameTemplate,expression:"settings.playlistNameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.playlistNameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"playlistNameTemplate",e.target.value)}}})]):t._e()]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createArtistFolder,expression:"settings.createArtistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createArtistFolder)?t._i(t.settings.createArtistFolder,null)>-1:t.settings.createArtistFolder},on:{change:function(e){var a=t.settings.createArtistFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createArtistFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createArtistFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createArtistFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createArtistFolder")))])]),t._v(" "),t.settings.createArtistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.folders.artistNameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.artistNameTemplate,expression:"settings.artistNameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.artistNameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"artistNameTemplate",e.target.value)}}})]):t._e()]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createAlbumFolder,expression:"settings.createAlbumFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createAlbumFolder)?t._i(t.settings.createAlbumFolder,null)>-1:t.settings.createAlbumFolder},on:{change:function(e){var a=t.settings.createAlbumFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createAlbumFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createAlbumFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createAlbumFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createAlbumFolder")))])]),t._v(" "),t.settings.createAlbumFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.folders.albumNameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.albumNameTemplate,expression:"settings.albumNameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.albumNameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"albumNameTemplate",e.target.value)}}})]):t._e()])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createCDFolder,expression:"settings.createCDFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createCDFolder)?t._i(t.settings.createCDFolder,null)>-1:t.settings.createCDFolder},on:{change:function(e){var a=t.settings.createCDFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createCDFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createCDFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createCDFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createCDFolder")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createStructurePlaylist,expression:"settings.createStructurePlaylist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createStructurePlaylist)?t._i(t.settings.createStructurePlaylist,null)>-1:t.settings.createStructurePlaylist},on:{change:function(e){var a=t.settings.createStructurePlaylist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createStructurePlaylist",a.concat([null])):r>-1&&t.$set(t.settings,"createStructurePlaylist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createStructurePlaylist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createStructurePlaylist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createSingleFolder,expression:"settings.createSingleFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createSingleFolder)?t._i(t.settings.createSingleFolder,null)>-1:t.settings.createSingleFolder},on:{change:function(e){var a=t.settings.createSingleFolder,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createSingleFolder",a.concat([null])):r>-1&&t.$set(t.settings,"createSingleFolder",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createSingleFolder",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.folders.createSingleFolder")))])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("title")]),t._v(t._s(t.$t("settings.trackTitles.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.padTracks,expression:"settings.padTracks"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.padTracks)?t._i(t.settings.padTracks,null)>-1:t.settings.padTracks},on:{change:function(e){var a=t.settings.padTracks,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"padTracks",a.concat([null])):r>-1&&t.$set(t.settings,"padTracks",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"padTracks",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.trackTitles.padTracks")))])])]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.trackTitles.paddingSize")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.paddingSize,expression:"settings.paddingSize"}],attrs:{max:"10",type:"number"},domProps:{value:t.settings.paddingSize},on:{input:function(e){e.target.composing||t.$set(t.settings,"paddingSize",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.trackTitles.illegalCharacterReplacer")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.illegalCharacterReplacer,expression:"settings.illegalCharacterReplacer"}],attrs:{type:"text"},domProps:{value:t.settings.illegalCharacterReplacer},on:{input:function(e){e.target.composing||t.$set(t.settings,"illegalCharacterReplacer",e.target.value)}}})])])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("get_app")]),t._v(t._s(t.$t("settings.downloads.title"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.queueConcurrency")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.queueConcurrency,expression:"settings.queueConcurrency",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:t.settings.queueConcurrency},on:{input:function(e){e.target.composing||t.$set(t.settings,"queueConcurrency",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.maxBitrate.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.maxBitrate,expression:"settings.maxBitrate"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"maxBitrate",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"9"}},[t._v(t._s(t.$t("settings.downloads.maxBitrate.9")))]),t._v(" "),a("option",{attrs:{value:"3"}},[t._v(t._s(t.$t("settings.downloads.maxBitrate.3")))]),t._v(" "),a("option",{attrs:{value:"1"}},[t._v(t._s(t.$t("settings.downloads.maxBitrate.1")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.overwriteFile.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.overwriteFile,expression:"settings.overwriteFile"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"overwriteFile",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"y"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.y")))]),t._v(" "),a("option",{attrs:{value:"n"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.n")))]),t._v(" "),a("option",{attrs:{value:"e"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.e")))]),t._v(" "),a("option",{attrs:{value:"b"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.b")))]),t._v(" "),a("option",{attrs:{value:"t"}},[t._v(t._s(t.$t("settings.downloads.overwriteFile.t")))])])]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.fallbackBitrate,expression:"settings.fallbackBitrate"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.fallbackBitrate)?t._i(t.settings.fallbackBitrate,null)>-1:t.settings.fallbackBitrate},on:{change:function(e){var a=t.settings.fallbackBitrate,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"fallbackBitrate",a.concat([null])):r>-1&&t.$set(t.settings,"fallbackBitrate",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"fallbackBitrate",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.fallbackBitrate")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.fallbackSearch,expression:"settings.fallbackSearch"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.fallbackSearch)?t._i(t.settings.fallbackSearch,null)>-1:t.settings.fallbackSearch},on:{change:function(e){var a=t.settings.fallbackSearch,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"fallbackSearch",a.concat([null])):r>-1&&t.$set(t.settings,"fallbackSearch",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"fallbackSearch",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.fallbackSearch")))])])]),t._v(" "),a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.logErrors,expression:"settings.logErrors"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.logErrors)?t._i(t.settings.logErrors,null)>-1:t.settings.logErrors},on:{change:function(e){var a=t.settings.logErrors,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"logErrors",a.concat([null])):r>-1&&t.$set(t.settings,"logErrors",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"logErrors",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.logErrors")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.logSearched,expression:"settings.logSearched"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.logSearched)?t._i(t.settings.logSearched,null)>-1:t.settings.logSearched},on:{change:function(e){var a=t.settings.logSearched,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"logSearched",a.concat([null])):r>-1&&t.$set(t.settings,"logSearched",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"logSearched",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.logSearched")))])])]),t._v(" "),a("div",{staticClass:"settings-container__third settings-container__third--only-checkbox"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.syncedLyrics,expression:"settings.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.syncedLyrics)?t._i(t.settings.syncedLyrics,null)>-1:t.settings.syncedLyrics},on:{change:function(e){var a=t.settings.syncedLyrics,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"syncedLyrics",a.concat([null])):r>-1&&t.$set(t.settings,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"syncedLyrics",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.syncedLyrics")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.createM3U8File,expression:"settings.createM3U8File"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.createM3U8File)?t._i(t.settings.createM3U8File,null)>-1:t.settings.createM3U8File},on:{change:function(e){var a=t.settings.createM3U8File,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"createM3U8File",a.concat([null])):r>-1&&t.$set(t.settings,"createM3U8File",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"createM3U8File",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.createM3U8File")))])])])]),t._v(" "),t.settings.createM3U8File?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.downloads.playlistFilenameTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.playlistFilenameTemplate,expression:"settings.playlistFilenameTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.playlistFilenameTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"playlistFilenameTemplate",e.target.value)}}})]):t._e(),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.saveDownloadQueue,expression:"settings.saveDownloadQueue"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.saveDownloadQueue)?t._i(t.settings.saveDownloadQueue,null)>-1:t.settings.saveDownloadQueue},on:{change:function(e){var a=t.settings.saveDownloadQueue,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"saveDownloadQueue",a.concat([null])):r>-1&&t.$set(t.settings,"saveDownloadQueue",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"saveDownloadQueue",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.downloads.saveDownloadQueue")))])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("album")]),t._v(t._s(t.$t("settings.covers.title"))+"\n\t\t")]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.saveArtwork,expression:"settings.saveArtwork"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.saveArtwork)?t._i(t.settings.saveArtwork,null)>-1:t.settings.saveArtwork},on:{change:function(e){var a=t.settings.saveArtwork,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"saveArtwork",a.concat([null])):r>-1&&t.$set(t.settings,"saveArtwork",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"saveArtwork",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.saveArtwork")))])]),t._v(" "),t.settings.saveArtwork?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.coverImageTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.coverImageTemplate,expression:"settings.coverImageTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.coverImageTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"coverImageTemplate",e.target.value)}}})]):t._e(),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.saveArtworkArtist,expression:"settings.saveArtworkArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.saveArtworkArtist)?t._i(t.settings.saveArtworkArtist,null)>-1:t.settings.saveArtworkArtist},on:{change:function(e){var a=t.settings.saveArtworkArtist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"saveArtworkArtist",a.concat([null])):r>-1&&t.$set(t.settings,"saveArtworkArtist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"saveArtworkArtist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.saveArtworkArtist")))])]),t._v(" "),t.settings.saveArtworkArtist?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.artistImageTemplate")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.artistImageTemplate,expression:"settings.artistImageTemplate"}],attrs:{type:"text"},domProps:{value:t.settings.artistImageTemplate},on:{input:function(e){e.target.composing||t.$set(t.settings,"artistImageTemplate",e.target.value)}}})]):t._e(),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.localArtworkSize")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.localArtworkSize,expression:"settings.localArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:t.settings.localArtworkSize},on:{input:function(e){e.target.composing||t.$set(t.settings,"localArtworkSize",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),t.settings.localArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[t._v("\n\t\t\t\t⚠️ "+t._s(t.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):t._e()]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.embeddedArtworkSize")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.embeddedArtworkSize,expression:"settings.embeddedArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:t.settings.embeddedArtworkSize},on:{input:function(e){e.target.composing||t.$set(t.settings,"embeddedArtworkSize",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),t.settings.embeddedArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[t._v("\n\t\t\t\t⚠️ "+t._s(t.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):t._e()]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.localArtworkFormat,expression:"settings.localArtworkFormat"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"localArtworkFormat",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"jpg"}},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.jpg")))]),t._v(" "),a("option",{attrs:{value:"png"}},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.png")))]),t._v(" "),a("option",{attrs:{value:"jpg,png"}},[t._v(t._s(t.$t("settings.covers.localArtworkFormat.both")))])])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.embeddedArtworkPNG,expression:"settings.embeddedArtworkPNG"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.embeddedArtworkPNG)?t._i(t.settings.embeddedArtworkPNG,null)>-1:t.settings.embeddedArtworkPNG},on:{change:function(e){var a=t.settings.embeddedArtworkPNG,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"embeddedArtworkPNG",a.concat([null])):r>-1&&t.$set(t.settings,"embeddedArtworkPNG",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"embeddedArtworkPNG",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.embeddedArtworkPNG")))])]),t._v(" "),t.settings.embeddedArtworkPNG?a("p",{staticStyle:{opacity:"0.75",color:"#ffcc22"}},[t._v("\n\t\t\t⚠️ "+t._s(t.$t("settings.covers.embeddedPNGWarning"))+"\n\t\t")]):t._e(),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.coverDescriptionUTF8,expression:"settings.tags.coverDescriptionUTF8"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.coverDescriptionUTF8)?t._i(t.settings.tags.coverDescriptionUTF8,null)>-1:t.settings.tags.coverDescriptionUTF8},on:{change:function(e){var a=t.settings.tags.coverDescriptionUTF8,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"coverDescriptionUTF8",a.concat([null])):r>-1&&t.$set(t.settings.tags,"coverDescriptionUTF8",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"coverDescriptionUTF8",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.covers.coverDescriptionUTF8")))])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.covers.jpegImageQuality")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.settings.jpegImageQuality,expression:"settings.jpegImageQuality",modifiers:{number:!0}}],attrs:{type:"number",min:"1",max:"100"},domProps:{value:t.settings.jpegImageQuality},on:{input:function(e){e.target.composing||t.$set(t.settings,"jpegImageQuality",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons",staticStyle:{width:"1em",height:"1em"}},[t._v("bookmarks")]),t._v(t._s(t.$t("settings.tags.head"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"settings-container"},[a("div",{staticClass:"settings-container__half"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.title,expression:"settings.tags.title"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.title)?t._i(t.settings.tags.title,null)>-1:t.settings.tags.title},on:{change:function(e){var a=t.settings.tags.title,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"title",a.concat([null])):r>-1&&t.$set(t.settings.tags,"title",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"title",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.title")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.artist,expression:"settings.tags.artist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.artist)?t._i(t.settings.tags.artist,null)>-1:t.settings.tags.artist},on:{change:function(e){var a=t.settings.tags.artist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"artist",a.concat([null])):r>-1&&t.$set(t.settings.tags,"artist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"artist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.artist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.album,expression:"settings.tags.album"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.album)?t._i(t.settings.tags.album,null)>-1:t.settings.tags.album},on:{change:function(e){var a=t.settings.tags.album,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"album",a.concat([null])):r>-1&&t.$set(t.settings.tags,"album",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"album",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.album")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.cover,expression:"settings.tags.cover"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.cover)?t._i(t.settings.tags.cover,null)>-1:t.settings.tags.cover},on:{change:function(e){var a=t.settings.tags.cover,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"cover",a.concat([null])):r>-1&&t.$set(t.settings.tags,"cover",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"cover",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.cover")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.trackNumber,expression:"settings.tags.trackNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.trackNumber)?t._i(t.settings.tags.trackNumber,null)>-1:t.settings.tags.trackNumber},on:{change:function(e){var a=t.settings.tags.trackNumber,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"trackNumber",a.concat([null])):r>-1&&t.$set(t.settings.tags,"trackNumber",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"trackNumber",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.trackNumber")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.trackTotal,expression:"settings.tags.trackTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.trackTotal)?t._i(t.settings.tags.trackTotal,null)>-1:t.settings.tags.trackTotal},on:{change:function(e){var a=t.settings.tags.trackTotal,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"trackTotal",a.concat([null])):r>-1&&t.$set(t.settings.tags,"trackTotal",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"trackTotal",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.trackTotal")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.discNumber,expression:"settings.tags.discNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.discNumber)?t._i(t.settings.tags.discNumber,null)>-1:t.settings.tags.discNumber},on:{change:function(e){var a=t.settings.tags.discNumber,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"discNumber",a.concat([null])):r>-1&&t.$set(t.settings.tags,"discNumber",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"discNumber",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.discNumber")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.discTotal,expression:"settings.tags.discTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.discTotal)?t._i(t.settings.tags.discTotal,null)>-1:t.settings.tags.discTotal},on:{change:function(e){var a=t.settings.tags.discTotal,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"discTotal",a.concat([null])):r>-1&&t.$set(t.settings.tags,"discTotal",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"discTotal",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.discTotal")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.albumArtist,expression:"settings.tags.albumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.albumArtist)?t._i(t.settings.tags.albumArtist,null)>-1:t.settings.tags.albumArtist},on:{change:function(e){var a=t.settings.tags.albumArtist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"albumArtist",a.concat([null])):r>-1&&t.$set(t.settings.tags,"albumArtist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"albumArtist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.albumArtist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.genre,expression:"settings.tags.genre"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.genre)?t._i(t.settings.tags.genre,null)>-1:t.settings.tags.genre},on:{change:function(e){var a=t.settings.tags.genre,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"genre",a.concat([null])):r>-1&&t.$set(t.settings.tags,"genre",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"genre",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.genre")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.year,expression:"settings.tags.year"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.year)?t._i(t.settings.tags.year,null)>-1:t.settings.tags.year},on:{change:function(e){var a=t.settings.tags.year,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"year",a.concat([null])):r>-1&&t.$set(t.settings.tags,"year",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"year",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.year")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.date,expression:"settings.tags.date"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.date)?t._i(t.settings.tags.date,null)>-1:t.settings.tags.date},on:{change:function(e){var a=t.settings.tags.date,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"date",a.concat([null])):r>-1&&t.$set(t.settings.tags,"date",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"date",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.date")))])])]),t._v(" "),a("div",{staticClass:"settings-container__half"},[a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.explicit,expression:"settings.tags.explicit"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.explicit)?t._i(t.settings.tags.explicit,null)>-1:t.settings.tags.explicit},on:{change:function(e){var a=t.settings.tags.explicit,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"explicit",a.concat([null])):r>-1&&t.$set(t.settings.tags,"explicit",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"explicit",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.explicit")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.isrc,expression:"settings.tags.isrc"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.isrc)?t._i(t.settings.tags.isrc,null)>-1:t.settings.tags.isrc},on:{change:function(e){var a=t.settings.tags.isrc,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"isrc",a.concat([null])):r>-1&&t.$set(t.settings.tags,"isrc",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"isrc",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.isrc")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.length,expression:"settings.tags.length"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.length)?t._i(t.settings.tags.length,null)>-1:t.settings.tags.length},on:{change:function(e){var a=t.settings.tags.length,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"length",a.concat([null])):r>-1&&t.$set(t.settings.tags,"length",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"length",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.length")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.barcode,expression:"settings.tags.barcode"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.barcode)?t._i(t.settings.tags.barcode,null)>-1:t.settings.tags.barcode},on:{change:function(e){var a=t.settings.tags.barcode,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"barcode",a.concat([null])):r>-1&&t.$set(t.settings.tags,"barcode",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"barcode",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.barcode")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.bpm,expression:"settings.tags.bpm"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.bpm)?t._i(t.settings.tags.bpm,null)>-1:t.settings.tags.bpm},on:{change:function(e){var a=t.settings.tags.bpm,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"bpm",a.concat([null])):r>-1&&t.$set(t.settings.tags,"bpm",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"bpm",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.bpm")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.replayGain,expression:"settings.tags.replayGain"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.replayGain)?t._i(t.settings.tags.replayGain,null)>-1:t.settings.tags.replayGain},on:{change:function(e){var a=t.settings.tags.replayGain,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"replayGain",a.concat([null])):r>-1&&t.$set(t.settings.tags,"replayGain",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"replayGain",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.replayGain")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.label,expression:"settings.tags.label"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.label)?t._i(t.settings.tags.label,null)>-1:t.settings.tags.label},on:{change:function(e){var a=t.settings.tags.label,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"label",a.concat([null])):r>-1&&t.$set(t.settings.tags,"label",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"label",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.label")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.lyrics,expression:"settings.tags.lyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.lyrics)?t._i(t.settings.tags.lyrics,null)>-1:t.settings.tags.lyrics},on:{change:function(e){var a=t.settings.tags.lyrics,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"lyrics",a.concat([null])):r>-1&&t.$set(t.settings.tags,"lyrics",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"lyrics",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.lyrics")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.syncedLyrics,expression:"settings.tags.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.syncedLyrics)?t._i(t.settings.tags.syncedLyrics,null)>-1:t.settings.tags.syncedLyrics},on:{change:function(e){var a=t.settings.tags.syncedLyrics,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"syncedLyrics",a.concat([null])):r>-1&&t.$set(t.settings.tags,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"syncedLyrics",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.syncedLyrics")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.copyright,expression:"settings.tags.copyright"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.copyright)?t._i(t.settings.tags.copyright,null)>-1:t.settings.tags.copyright},on:{change:function(e){var a=t.settings.tags.copyright,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"copyright",a.concat([null])):r>-1&&t.$set(t.settings.tags,"copyright",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"copyright",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.copyright")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.composer,expression:"settings.tags.composer"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.composer)?t._i(t.settings.tags.composer,null)>-1:t.settings.tags.composer},on:{change:function(e){var a=t.settings.tags.composer,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"composer",a.concat([null])):r>-1&&t.$set(t.settings.tags,"composer",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"composer",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.composer")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.involvedPeople,expression:"settings.tags.involvedPeople"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.involvedPeople)?t._i(t.settings.tags.involvedPeople,null)>-1:t.settings.tags.involvedPeople},on:{change:function(e){var a=t.settings.tags.involvedPeople,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"involvedPeople",a.concat([null])):r>-1&&t.$set(t.settings.tags,"involvedPeople",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"involvedPeople",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.tags.involvedPeople")))])])])])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[t._v("list")]),t._v(t._s(t.$t("settings.other.title"))+"\n\t\t")]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.savePlaylistAsCompilation,expression:"settings.tags.savePlaylistAsCompilation"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.savePlaylistAsCompilation)?t._i(t.settings.tags.savePlaylistAsCompilation,null)>-1:t.settings.tags.savePlaylistAsCompilation},on:{change:function(e){var a=t.settings.tags.savePlaylistAsCompilation,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"savePlaylistAsCompilation",a.concat([null])):r>-1&&t.$set(t.settings.tags,"savePlaylistAsCompilation",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"savePlaylistAsCompilation",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.savePlaylistAsCompilation")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.useNullSeparator,expression:"settings.tags.useNullSeparator"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.useNullSeparator)?t._i(t.settings.tags.useNullSeparator,null)>-1:t.settings.tags.useNullSeparator},on:{change:function(e){var a=t.settings.tags.useNullSeparator,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"useNullSeparator",a.concat([null])):r>-1&&t.$set(t.settings.tags,"useNullSeparator",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"useNullSeparator",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.useNullSeparator")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.saveID3v1,expression:"settings.tags.saveID3v1"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.saveID3v1)?t._i(t.settings.tags.saveID3v1,null)>-1:t.settings.tags.saveID3v1},on:{change:function(e){var a=t.settings.tags.saveID3v1,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"saveID3v1",a.concat([null])):r>-1&&t.$set(t.settings.tags,"saveID3v1",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"saveID3v1",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.saveID3v1")))])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.multiArtistSeparator,expression:"settings.tags.multiArtistSeparator"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings.tags,"multiArtistSeparator",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.nothing")))]),t._v(" "),a("option",{attrs:{value:"default"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.default")))]),t._v(" "),a("option",{attrs:{value:"andFeat"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.andFeat")))]),t._v(" "),a("option",{attrs:{value:" & "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:" & "})))]),t._v(" "),a("option",{attrs:{value:","}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:","})))]),t._v(" "),a("option",{attrs:{value:", "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:", "})))]),t._v(" "),a("option",{attrs:{value:"/"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:"/"})))]),t._v(" "),a("option",{attrs:{value:" / "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:" / "})))]),t._v(" "),a("option",{attrs:{value:";"}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:";"})))]),t._v(" "),a("option",{attrs:{value:"; "}},[t._v(t._s(t.$t("settings.other.multiArtistSeparator.using",{separator:"; "})))])])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.tags.singleAlbumArtist,expression:"settings.tags.singleAlbumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.tags.singleAlbumArtist)?t._i(t.settings.tags.singleAlbumArtist,null)>-1:t.settings.tags.singleAlbumArtist},on:{change:function(e){var a=t.settings.tags.singleAlbumArtist,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings.tags,"singleAlbumArtist",a.concat([null])):r>-1&&t.$set(t.settings.tags,"singleAlbumArtist",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings.tags,"singleAlbumArtist",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.singleAlbumArtist")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.albumVariousArtists,expression:"settings.albumVariousArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.albumVariousArtists)?t._i(t.settings.albumVariousArtists,null)>-1:t.settings.albumVariousArtists},on:{change:function(e){var a=t.settings.albumVariousArtists,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"albumVariousArtists",a.concat([null])):r>-1&&t.$set(t.settings,"albumVariousArtists",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"albumVariousArtists",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.albumVariousArtists")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.removeAlbumVersion,expression:"settings.removeAlbumVersion"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.removeAlbumVersion)?t._i(t.settings.removeAlbumVersion,null)>-1:t.settings.removeAlbumVersion},on:{change:function(e){var a=t.settings.removeAlbumVersion,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"removeAlbumVersion",a.concat([null])):r>-1&&t.$set(t.settings,"removeAlbumVersion",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"removeAlbumVersion",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.removeAlbumVersion")))])]),t._v(" "),a("label",{staticClass:"with_checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.removeDuplicateArtists,expression:"settings.removeDuplicateArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.settings.removeDuplicateArtists)?t._i(t.settings.removeDuplicateArtists,null)>-1:t.settings.removeDuplicateArtists},on:{change:function(e){var a=t.settings.removeDuplicateArtists,n=e.target,i=!!n.checked;if(Array.isArray(a)){var r=t._i(a,null);n.checked?r<0&&t.$set(t.settings,"removeDuplicateArtists",a.concat([null])):r>-1&&t.$set(t.settings,"removeDuplicateArtists",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.settings,"removeDuplicateArtists",i)}}}),t._v(" "),a("span",{staticClass:"checkbox_text"},[t._v(t._s(t.$t("settings.other.removeDuplicateArtists")))])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.dateFormat.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.dateFormat,expression:"settings.dateFormat"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"dateFormat",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"Y-M-D"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.year")+"-"+t.$t("settings.other.dateFormat.month")+"-"+t.$t("settings.other.dateFormat.day"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"Y-D-M"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.year")+"-"+t.$t("settings.other.dateFormat.day")+"-"+t.$t("settings.other.dateFormat.month"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"D-M-Y"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.day")+"-"+t.$t("settings.other.dateFormat.month")+"-"+t.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"M-D-Y"}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("settings.other.dateFormat.month")+"-"+t.$t("settings.other.dateFormat.day")+"-"+t.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),t._v(" "),a("option",{attrs:{value:"Y"}},[t._v(t._s(t.$t("settings.other.dateFormat.year")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.featuredToTitle.title")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.featuredToTitle,expression:"settings.featuredToTitle"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"featuredToTitle",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"0"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.0")))]),t._v(" "),a("option",{attrs:{value:"1"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.1")))]),t._v(" "),a("option",{attrs:{value:"3"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.3")))]),t._v(" "),a("option",{attrs:{value:"2"}},[t._v(t._s(t.$t("settings.other.featuredToTitle.2")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.titleCasing")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.titleCasing,expression:"settings.titleCasing"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"titleCasing",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[t._v(t._s(t.$t("settings.other.casing.nothing")))]),t._v(" "),a("option",{attrs:{value:"lower"}},[t._v(t._s(t.$t("settings.other.casing.lower")))]),t._v(" "),a("option",{attrs:{value:"upper"}},[t._v(t._s(t.$t("settings.other.casing.upper")))]),t._v(" "),a("option",{attrs:{value:"start"}},[t._v(t._s(t.$t("settings.other.casing.start")))]),t._v(" "),a("option",{attrs:{value:"sentence"}},[t._v(t._s(t.$t("settings.other.casing.sentence")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.artistCasing")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.settings.artistCasing,expression:"settings.artistCasing"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.settings,"artistCasing",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[t._v(t._s(t.$t("settings.other.casing.nothing")))]),t._v(" "),a("option",{attrs:{value:"lower"}},[t._v(t._s(t.$t("settings.other.casing.lower")))]),t._v(" "),a("option",{attrs:{value:"upper"}},[t._v(t._s(t.$t("settings.other.casing.upper")))]),t._v(" "),a("option",{attrs:{value:"start"}},[t._v(t._s(t.$t("settings.other.casing.start")))]),t._v(" "),a("option",{attrs:{value:"sentence"}},[t._v(t._s(t.$t("settings.other.casing.sentence")))])])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.previewVolume")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.previewVolume.preview_max_volume,expression:"previewVolume.preview_max_volume",modifiers:{number:!0}}],staticClass:"slider",attrs:{type:"range",min:"0",max:"100",step:"1"},domProps:{value:t.previewVolume.preview_max_volume},on:{change:t.updateMaxVolume,__r:function(e){t.$set(t.previewVolume,"preview_max_volume",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),a("span",[t._v(t._s(t.previewVolume.preview_max_volume)+"%")])]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.other.executeCommand.title")))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$t("settings.other.executeCommand.description")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.settings.executeCommand,expression:"settings.executeCommand"}],attrs:{type:"text"},domProps:{value:t.settings.executeCommand},on:{input:function(e){e.target.composing||t.$set(t.settings,"executeCommand",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("svg",{attrs:{id:"spotify_icon","enable-background":"new 0 0 24 24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"m12 24c6.624 0 12-5.376 12-12s-5.376-12-12-12-12 5.376-12 12 5.376 12 12 12zm4.872-6.344v.001c-.807 0-3.356-2.828-10.52-1.36-.189.049-.436.126-.576.126-.915 0-1.09-1.369-.106-1.578 3.963-.875 8.013-.798 11.467 1.268.824.526.474 1.543-.265 1.543zm1.303-3.173c-.113-.03-.08.069-.597-.203-3.025-1.79-7.533-2.512-11.545-1.423-.232.063-.358.126-.576.126-1.071 0-1.355-1.611-.188-1.94 4.716-1.325 9.775-.552 13.297 1.543.392.232.547.533.547.953-.005.522-.411.944-.938.944zm-13.627-7.485c4.523-1.324 11.368-.906 15.624 1.578 1.091.629.662 2.22-.498 2.22l-.001-.001c-.252 0-.407-.063-.625-.189-3.443-2.056-9.604-2.549-13.59-1.436-.175.048-.393.125-.625.125-.639 0-1.127-.499-1.127-1.142 0-.657.407-1.029.842-1.155z"}})]),t._v("\n\t\t\t"+t._s(t.$t("settings.spotify.title"))+"\n\t\t")]),t._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Enabling-Spotify-Features",target:"_blank"}},[t._v("\n\t\t\t"+t._s(t.$t("settings.spotify.question"))+"\n\t\t")]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.spotify.clientID")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.spotifyFeatures.clientId,expression:"spotifyFeatures.clientId"}],attrs:{type:"text"},domProps:{value:t.spotifyFeatures.clientId},on:{input:function(e){e.target.composing||t.$set(t.spotifyFeatures,"clientId",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.spotify.clientSecret")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.spotifyFeatures.clientSecret,expression:"spotifyFeatures.clientSecret"}],attrs:{type:"password"},domProps:{value:t.spotifyFeatures.clientSecret},on:{input:function(e){e.target.composing||t.$set(t.spotifyFeatures,"clientSecret",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[t._v(t._s(t.$t("settings.spotify.username")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.spotifyUser,expression:"spotifyUser"}],attrs:{type:"text"},domProps:{value:t.spotifyUser},on:{input:function(e){e.target.composing||(t.spotifyUser=e.target.value)}}})])]),t._v(" "),a("footer",[a("button",{on:{click:t.resetSettings}},[t._v(t._s(t.$t("settings.reset")))]),t._v(" "),a("button",{on:{click:t.saveSettings}},[t._v(t._s(t.$t("settings.save")))])])])};Em._withStripped=!0;var jm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheSettingsTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(a,n){return t.call(n),e(a,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Em,staticRenderFns:[]},(function(t){t&&t("data-v-1961c05a_0",{source:"#logged_in_info {\n height: 250px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n}\n.locale-flag {\n width: 60px;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.locale-flag:not(:last-child) {\n margin-right: 10px;\n}\n.locale-flag.locale-flag--current svg {\n filter: brightness(1);\n}\n.locale-flag svg {\n width: 40px;\n height: 40px;\n filter: brightness(0.5);\n}\n\n/*# sourceMappingURL=TheSettingsTab.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/TheSettingsTab.vue","TheSettingsTab.vue"],names:[],mappings:"AA4mBA;EACA,aAAA;EACA,aAAA;EACA,sBAAA;EACA,6BAAA;EACA,mBAAA;AAAA;AAGA;EACA,WAAA;EACA,oBAAA;EACA,uBAAA;EACA,mBAAA;EACA,eAAA;AAAA;AALA;IAQA,kBAAA;AAAA;AARA;IAaA,qBAAA;AAAA;AAbA;IAkBA,WAAA;IACA,YAAA;IACA,uBAAA;AAAA;;AClnBA,6CAA6C",file:"TheSettingsTab.vue",sourcesContent:[null,"#logged_in_info {\n height: 250px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center; }\n\n.locale-flag {\n width: 60px;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer; }\n .locale-flag:not(:last-child) {\n margin-right: 10px; }\n .locale-flag.locale-flag--current svg {\n filter: brightness(1); }\n .locale-flag svg {\n width: 40px;\n height: 40px;\n filter: brightness(0.5); }\n\n/*# sourceMappingURL=TheSettingsTab.vue.map */"]},media:void 0})}),Fm,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],a=t.styles||(t.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=n?i.media||"default":t,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let a=i.source,o=s.ids.length;if(s.ids.push(t),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),n&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(a),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const Om={props:["results"],computed:{topResultType(){return this.results.allTab.TOP_RESULT[0].type},noResults(){return this.results.allTab.ORDER.every(t=>"TOP_RESULT"==t?0==this.results.allTab[t].length:0==this.results.allTab[t].data.length)}},methods:{convertDuration:ro}};var Bm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"main_search"}},[t._l(t.results.allTab.ORDER,(function(e){return["TOP_RESULT"!=e&&t.results.allTab[e].data.length>0||t.results.allTab[e].length>0?a("section",{staticClass:"search_section"},[a("h2",{staticClass:"search_header",class:{top_result_header:"TOP_RESULT"===e},on:{click:function(a){return t.$emit("change-search-tab",e)}}},[t._v("\n\t\t\t\t"+t._s(t.$tc("globals.listTabs."+e.toLowerCase(),2))+"\n\t\t\t")]),t._v(" "),"TOP_RESULT"==e?a("div",{staticClass:"top_result clickable",attrs:{"data-id":t.results.allTab.TOP_RESULT[0].id},on:{click:function(e){return e.stopPropagation(),t.$emit(t.topResultType+"-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{class:("artist"==t.results.allTab.TOP_RESULT[0].type?"circle":"rounded")+" coverart",attrs:{"aria-hidden":"true",src:t.results.allTab.TOP_RESULT[0].picture}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":t.results.allTab.TOP_RESULT[0].link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("div",{staticClass:"info_box"},[a("p",{staticClass:"primary-text"},[t._v(t._s(t.results.allTab.TOP_RESULT[0].title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t\t"+t._s("artist"==t.results.allTab.TOP_RESULT[0].type?t.$t("search.fans",{n:t.$n(t.results.allTab.TOP_RESULT[0].nb_fan)}):t.$t("globals.by",{artist:t.results.allTab.TOP_RESULT[0].artist})+" - "+t.$tc("globals.listTabs.trackN",t.results.allTab.TOP_RESULT[0].nb_song))+"\n\t\t\t\t\t")]),t._v(" "),a("span",{staticClass:"tag"},[t._v(t._s(t.$tc("globals.listTabs."+t.results.allTab.TOP_RESULT[0].type,1)))])])]):"TRACK"==e?a("div",[a("table",{staticClass:"table table--tracks"},[a("tbody",t._l(t.results.allTab.TRACK.data.slice(0,6),(function(e){return a("tr",[a("td",{staticClass:"table__icon",attrs:{"aria-hidden":"true"}},[a("img",{staticClass:"rounded coverart",attrs:{src:"https://e-cdns-images.dzcdn.net/images/cover/"+e.ALB_PICTURE+"/32x32-000000-80-0-0.jpg"}})]),t._v(" "),a("td",{staticClass:"table__cell table__cell--large breakline"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[1==e.EXPLICIT_LYRICS?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.SNG_TITLE+(e.VERSION?" "+e.VERSION:""))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),a("td",{staticClass:"table__cell table__cell--medium table__cell--center breakline"},t._l(e.ARTISTS,(function(e){return a("span",{key:e.ART_ID,staticClass:"clickable",attrs:{"data-id":e.ART_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("artist-view",e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.ART_NAME)+"\n\t\t\t\t\t\t\t\t")])})),0),t._v(" "),a("td",{staticClass:"table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.ALB_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("album-view",e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.ALB_TITLE)+"\n\t\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell table__cell--center"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.convertDuration(e.DURATION))+"\n\t\t\t\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--download table__cell--center clickable",attrs:{"data-link":"https://www.deezer.com/track/"+e.SNG_ID,role:"button","aria-label":"download"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v(" get_app ")])])])})),0)])]):"ARTIST"==e?a("div",{staticClass:"release_grid firstrow_only"},t._l(t.results.allTab.ARTIST.data.slice(0,10),(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.ART_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("artist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"circle coverart",attrs:{"aria-hidden":"true",src:"https://e-cdns-images.dzcdn.net/images/artist/"+e.ART_PICTURE+"/156x156-000000-80-0-0.jpg"}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/artist/"+e.ART_ID,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.ART_NAME))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$t("search.fans",{n:t.$n(e.NB_FAN)})))])])})),0):"ALBUM"==e?a("div",{staticClass:"release_grid firstrow_only"},t._l(t.results.allTab.ALBUM.data.slice(0,10),(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.ALB_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("album-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:"https://e-cdns-images.dzcdn.net/images/cover/"+e.ALB_PICTURE+"/156x156-000000-80-0-0.jpg"}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/album/"+e.ALB_ID,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text inline-flex"},[-1!=[1,4].indexOf(e.EXPLICIT_ALBUM_CONTENT.EXPLICIT_LYRICS_STATUS)?a("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.ALB_TITLE)+"\n\t\t\t\t\t")]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t\t"+t._s(e.ART_NAME+" - "+t.$tc("globals.listTabs.trackN",e.NUMBER_TRACK))+"\n\t\t\t\t\t")])])})),0):"PLAYLIST"==e?a("div",{staticClass:"release_grid firstrow_only"},t._l(t.results.allTab.PLAYLIST.data.slice(0,10),(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.PLAYLIST_ID},on:{click:function(e){return e.stopPropagation(),t.$emit("playlist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:"https://e-cdns-images.dzcdn.net/images/"+e.PICTURE_TYPE+"/"+e.PLAYLIST_PICTURE+"/156x156-000000-80-0-0.jpg"}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/playlist/"+e.PLAYLIST_ID,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.TITLE))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$tc("globals.listTabs.trackN",e.NB_SONG)))])])})),0):t._e()]):t._e()]})),t._v(" "),t.noResults?a("div",[a("h1",[t._v(t._s(t.$t("search.noResults")))])]):t._e()],2)};Bm._withStripped=!0;var qm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsAll.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Bm,staticRenderFns:[]},0,Om,void 0,!1);const Um={props:["results"],components:{BaseLoadingPlaceholder:mo}};var Vm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"album_search"}},[t.results.albumTab.loaded?0==t.results.albumTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsAlbum")))])]):t._e():a("BaseLoadingPlaceholder"),t._v(" "),t.results.albumTab.data.length>0?a("div",{staticClass:"release_grid"},t._l(t.results.albumTab.data,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:function(e){return e.stopPropagation(),t.$emit("album-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text inline-flex"},[e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t"+t._s(e.title)+"\n\t\t\t")]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.artist.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t")])])})),0):t._e()],1)};Vm._withStripped=!0;var Gm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsAlbums.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Vm,staticRenderFns:[]},0,Um,void 0,!1);const Wm={props:["results"],components:{BaseLoadingPlaceholder:mo}};var Hm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"artist_search"}},[t.results.artistTab.loaded?0==t.results.artistTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsArtist")))])]):t._e():a("base-loading-placeholder"),t._v(" "),t.results.artistTab.data.length>0?a("div",{staticClass:"release_grid"},t._l(t.results.artistTab.data,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:function(e){return e.stopPropagation(),t.$emit("artist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"circle coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.name))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v(t._s(t.$tc("globals.listTabs.releaseN",e.nb_album)))])])})),0):t._e()],1)};Hm._withStripped=!0;var Km=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsArtists.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Hm,staticRenderFns:[]},0,Wm,void 0,!1);const Qm={props:["results"],components:{BaseLoadingPlaceholder:mo}};var Ym=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"playlist_search"}},[t.results.playlistTab.loaded?0==t.results.playlistTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsPlaylist")))])]):t._e():a("BaseLoadingPlaceholder"),t._v(" "),t.results.playlistTab.data.length>0?a("div",{staticClass:"release_grid"},t._l(t.results.playlistTab.data,(function(e){return a("div",{staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:function(e){return e.stopPropagation(),t.$emit("playlist-view",e)}}},[a("div",{staticClass:"cover_container"},[a("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),a("button",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),a("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),a("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t"+t._s(t.$t("globals.by",{artist:e.user.name})+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t")])])})),0):t._e()],1)};Ym._withStripped=!0;var Jm=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsPlaylists.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Ym,staticRenderFns:[]},0,Qm,void 0,!1);const Zm={props:["results"],components:{BaseLoadingPlaceholder:mo},methods:{convertDuration:ro,artistView(t){this.$emit("artist-view",t)},albumView(t){this.$emit("album-view",t)},playlistView(t){this.$emit("playlist-view",t)},playPausePreview(t){uo.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){uo.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){uo.$emit("trackPreview:previewMouseLeave",t)}}};var Xm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"search_tabcontent",attrs:{id:"track_search"}},[t.results.trackTab.loaded?0==t.results.trackTab.data.length?a("div",[a("h1",[t._v(t._s(t.$t("search.noResultsTrack")))])]):t._e():a("BaseLoadingPlaceholder"),t._v(" "),t.results.trackTab.data.length>0?a("table",{staticClass:"table table--tracks"},[a("thead",[a("tr",[a("th",{attrs:{colspan:"2"}},[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),a("th",[t._v(t._s(t.$tc("globals.listTabs.album",1)))]),t._v(" "),t._m(0),t._v(" "),a("th",{staticStyle:{width:"56px"}})])]),t._v(" "),a("tbody",t._l(t.results.trackTab.data,(function(e){return a("tr",[a("td",{staticClass:"table__icon table__icon--big"},[a("a",{class:"rounded"+(e.preview?" single-cover":""),attrs:{href:"#","data-preview":e.preview},on:{click:t.playPausePreview}},[e.preview?a("i",{staticClass:"material-icons preview_controls",attrs:{title:t.$t("globals.play_hint")},on:{mouseenter:t.previewMouseEnter,mouseleave:t.previewMouseLeave}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):t._e(),t._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:e.album.cover_small}})])]),t._v(" "),a("td",{staticClass:"table__cell table__cell--large breakline"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[e.explicit_lyrics?a("i",{staticClass:"material-icons explicit_icon"},[t._v(" explicit ")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t\t")])]),t._v(" "),a("td",{staticClass:"table__cell table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.artist.id},on:{click:function(e){return e.stopPropagation(),t.artistView(e)}}},[t._v("\n\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell table__cell--medium table__cell--center breakline clickable",attrs:{"data-id":e.album.id},on:{click:function(e){return e.stopPropagation(),t.albumView(e)}}},[t._v("\n\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell table__cell--small table__cell--center"},[t._v("\n\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t")]),t._v(" "),a("td",{staticClass:"table__cell--download table__cell--center clickable",attrs:{"data-link":e.link,role:"button","aria-label":"download"},on:{click:function(e){return e.stopPropagation(),t.$emit("add-to-queue",e)}}},[a("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v(" get_app ")])])])})),0)]):t._e()],1)};Xm._withStripped=!0;var tg=function(t,e,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/search/ResultsTracks.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Xm,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v(" timer ")])])}]},0,Zm,void 0,!1);const eg={components:{BaseLoadingPlaceholder:mo},data(){const t=this.$t.bind(this),e=this.$tc.bind(this);return{currentTab:{name:"",component:{}},tabs:[{name:t("globals.listTabs.all"),searchType:"all",component:qm},{name:e("globals.listTabs.track",2),searchType:"track",component:tg},{name:e("globals.listTabs.album",2),searchType:"album",component:Gm},{name:e("globals.listTabs.artist",2),searchType:"artist",component:Km},{name:e("globals.listTabs.playlist",2),searchType:"playlist",component:Jm}],results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{},ARTIST:{},TRACK:{},PLAYLIST:{}},trackTab:{data:[],next:0,total:0,loaded:!1},albumTab:{data:[],next:0,total:0,loaded:!1},artistTab:{data:[],next:0,total:0,loaded:!1},playlistTab:{data:[],next:0,total:0,loaded:!1}}}},computed:{showSearchTab(){return""!==this.results.query},loadedTabs(){const t=[];for(const e in this.results)if(this.results.hasOwnProperty(e)){this.results[e].loaded&&t.push(e.replace(/Tab/g,""))}return t}},props:{performScrolledSearch:{type:Boolean,required:!1}},created(){this.currentTab=this.tabs[0]},mounted(){uo.$on("mainSearch:checkLoadMoreContent",this.checkLoadMoreContent),this.$root.$on("mainSearch:showNewResults",this.checkIfShowNewResults),this.$root.$on("mainSearch:updateResults",this.checkIfUpdateResults),rl.on("mainSearch",this.handleMainSearch),rl.on("search",this.handleSearch)},methods:{artistView:Yh.bind(null,"artist"),albumView:Yh.bind(null,"album"),playlistView:Yh.bind(null,"playlist"),changeSearchTab(t){t=t.toLowerCase();let e=this.tabs.find(e=>e.searchType===t);e?(window.scrollTo(0,0),this.currentTab=e):console.error(`No tab ${t} found`)},checkIfShowNewResults(t,e){(t!==this.results.query||"search_tab"==e)&&this.showNewResults(t)},checkIfUpdateResults(t){if(t===this.results.query&&"all"!==this.currentTab.searchType){let t={data:[],next:0,total:0,loaded:!1};this.results[this.currentTab.searchType+"Tab"]={...t},this.search(this.currentTab.searchType)}},showNewResults(t){rl.emit("mainSearch",{term:t}),this.$root.$emit("updateSearchLoadingState",!0),this.currentTab=this.tabs[0]},checkLoadMoreContent(t){0===this.results[t.split("_")[0]+"Tab"].data.length&&this.search(t.split("_")[0])},addToQueue(t){sl(t.currentTarget.dataset.link)},numberWithDots:so,convertDuration:ro,search(t){rl.emit("search",{term:this.results.query,type:t,start:this.results[t+"Tab"].next,nb:30})},scrolledSearch(){if("all"===this.currentTab.searchType)return;let t=this.currentTab.searchType+"Tab";this.results[t].next({x:0,y:0})});ig.beforeEach((t,e,a)=>{let n=null;switch(t.name){case"Artist":n={type:"artist",id:t.params.id};break;case"Tracklist":n={type:t.params.type,id:t.params.id}}n&&rl.emit("getTracklist",n),uo.$emit("trackPreview:stopStackedTabsPreview"),a()}),window.vol={preview_max_volume:100},document.addEventListener("DOMContentLoaded",(function(){!function(){let t=localStorage.getItem("locale");t&&(Ic.locale=t)}(),new _a({store:il,router:ig,i18n:Ic,render:t=>t(Ml)}).$mount("#app"),Qh(document.getElementById("main_home_tablink"),"main","home_tab")})),window.addEventListener("pywebviewready",(function(){il.dispatch("setClientMode",!0)})),document.addEventListener("paste",t=>{let e=t.clipboardData.getData("Text");if("input"!=t.target.localName)if(no(e))"analyzer_tab"===window.main_selected?(uo.$emit("linkAnalyzerTab:reset"),rl.emit("analyzeLink",e)):ol.sendAddToQueue(e);else{let t=document.querySelector("#searchbar");t.select(),t.setSelectionRange(0,99999)}}),document.addEventListener("keydown",t=>{70==t.keyCode&&t.ctrlKey&&(t.preventDefault(),document.querySelector("#searchbar").focus())}),rl.on("message",(function(t){console.log(t)})),rl.on("logging_in",(function(){kl(Ic.t("toasts.loggingIn"),"loading",!1,"login-toast")})),rl.on("init_autologin",(function(){let t=localStorage.getItem("arl"),e=localStorage.getItem("accountNum");t&&(t=t.trim(),0!=e?rl.emit("login",t,!0,e):rl.emit("login",t))})),rl.on("logged_in",(function(t){const{status:e,user:a}=t;switch(e){case 1:case 3:kl(Ic.t("toasts.loggedIn"),"done",!0,"login-toast"),il.dispatch("login",t);break;case 2:kl(Ic.t("toasts.alreadyLogged"),"done",!0,"login-toast"),il.dispatch("setUser",a);break;case 0:kl(Ic.t("toasts.loginFailed"),"close",!0,"login-toast"),il.dispatch("removeARL");break;case-1:return void kl(Ic.t("toasts.deezerNotAvailable"),"close",!0,"login-toast")}})),rl.on("logged_out",(function(){kl(Ic.t("toasts.loggedOut"),"done",!0,"login-toast"),il.dispatch("logout")})),rl.on("restoringQueue",(function(){kl(Ic.t("toasts.restoringQueue"),"loading",!1,"restoring_queue")})),rl.on("cancellingCurrentItem",(function(t){kl(Ic.t("toasts.cancellingCurrentItem"),"loading",!1,"cancelling_"+t)})),rl.on("currentItemCancelled",(function(t){kl(Ic.t("toasts.currentItemCancelled"),"done",!0,"cancelling_"+t)})),rl.on("startAddingArtist",(function(t){kl(Ic.t("toasts.startAddingArtist",{artist:t.name}),"loading",!1,"artist_"+t.id)})),rl.on("finishAddingArtist",(function(t){kl(Ic.t("toasts.finishAddingArtist",{artist:t.name}),"done",!0,"artist_"+t.id)})),rl.on("startConvertingSpotifyPlaylist",(function(t){kl(Ic.t("toasts.startConvertingSpotifyPlaylist"),"loading",!1,"spotifyplaylist_"+t)})),rl.on("finishConvertingSpotifyPlaylist",(function(t){kl(Ic.t("toasts.finishConvertingSpotifyPlaylist"),"done",!0,"spotifyplaylist_"+t)})),rl.on("errorMessage",(function(t){kl(t,"error")})),rl.on("queueError",(function(t){t.errid?kl(Ic.t("errors.ids."+t.errid),"error"):kl(t.error,"error")})),rl.on("alreadyInQueue",(function(t){kl(Ic.t("toasts.alreadyInQueue",{item:t.title}),"playlist_add_check")})),rl.on("loginNeededToDownload",(function(t){kl(Ic.t("toasts.loginNeededToDownload"),"report")})); diff --git a/src/components/TheMainSearch.vue b/src/components/TheMainSearch.vue index 1473beb..0354476 100644 --- a/src/components/TheMainSearch.vue +++ b/src/components/TheMainSearch.vue @@ -187,7 +187,7 @@ export default { this.showNewResults(term) } }, - checkIfUpdateResults(term, mainSelected) { + checkIfUpdateResults(term) { let needToUpdateSearch = term === this.results.query && this.currentTab.searchType !== 'all' if (needToUpdateSearch) { diff --git a/src/components/TheSearchBar.vue b/src/components/TheSearchBar.vue index 27af8b4..18411a1 100644 --- a/src/components/TheSearchBar.vue +++ b/src/components/TheSearchBar.vue @@ -76,7 +76,7 @@ export default { } } else { if (isShowingSearch && sameAsLastSearch){ - this.$root.$emit('mainSearch:updateResults', term, window.main_selected) + this.$root.$emit('mainSearch:updateResults', term) return }