From 53735647f9828c8dcafaae9582b14d13704857d2 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 23 Sep 2020 18:00:52 +0200 Subject: [PATCH] Changed all download_overlay buttons to actual buttons --- public/js/bundle.js | 2 +- src/components/TheFavoritesTab.vue | 20 ++++++++++++-------- src/components/search/ResultsAlbums.vue | 7 ++++--- src/components/search/ResultsAll.vue | 22 +++++++++++++--------- src/components/search/ResultsArtists.vue | 7 ++++--- src/components/search/ResultsPlaylists.vue | 7 ++++--- 6 files changed, 38 insertions(+), 27 deletions(-) diff --git a/public/js/bundle.js b/public/js/bundle.js index 0009f19..8ced078 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -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 Ec(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function jc(t,e){return Ec(t)&&t._isRouter&&(null==e||t.type===e)}function Oc(t,e){for(var a in e)t[a]=e[a];return t}var Bc={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&&qc(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&&(Oc(c[o],{route:l,configProps:v}),qc(f,r,l,v)),s(f,r,n)}};function qc(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=Oc({},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 Uc=/[!'()*]/g,Vc=function(t){return"%"+t.charCodeAt(0).toString(16)},Gc=/%2C/g,Wc=function(t){return encodeURIComponent(t).replace(Uc,Vc).replace(Gc,",")},Hc=decodeURIComponent;function Kc(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var a=t.replace(/\+/g," ").split("="),n=Hc(a.shift()),i=a.length>0?Hc(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 Qc(t){var e=t?Object.keys(t).map((function(e){var a=t[e];if(void 0===a)return"";if(null===a)return Wc(e);if(Array.isArray(a)){var n=[];return a.forEach((function(t){void 0!==t&&(null===t?n.push(Wc(e)):n.push(Wc(e)+"="+Wc(t)))})),n.join("&")}return Wc(e)+"="+Wc(a)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var Yc=/\/?$/;function Jc(t,e,a,n){var i=n&&n.options.stringifyQuery,r=e.query||{};try{r=Zc(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:ed(e,i),matched:t?td(t):[]};return a&&(s.redirectedFrom=ed(a,i)),Object.freeze(s)}function Zc(t){if(Array.isArray(t))return t.map(Zc);if(t&&"object"==typeof t){var e={};for(var a in t)e[a]=Zc(t[a]);return e}return t}var Xc=Jc(null,{path:"/"});function td(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function ed(t,e){var a=t.path,n=t.query;void 0===n&&(n={});var i=t.hash;return void 0===i&&(i=""),(a||"/")+(e||Qc)(n)+i}function ad(t,e){return e===Xc?t===e:!!e&&(t.path&&e.path?t.path.replace(Yc,"")===e.path.replace(Yc,"")&&t.hash===e.hash&&nd(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&nd(t.query,e.query)&&nd(t.params,e.params)))}function nd(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?nd(n,i):String(n)===String(i)}))}function id(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?id(l.path,c,a||i.append):c,u=function(t,e,a){void 0===e&&(e={});var n,i=a||Kc;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 Td,Sd=function(){},zd={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?Jc(null,xd(s.redirectedFrom),null,a):s;l[m]=ad(n,g),l[h]=this.exact?l[m]:function(t,e){return 0===t.path.replace(Yc,"/").indexOf(e.path.replace(Yc,"/"))&&(!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){Md(t)&&(e.replace?a.replace(r,Sd):a.push(r,Sd))},b={click:Md};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=Cd(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 eu(t){return function(e,a,n){var i=!1,r=0,s=null;au(t,(function(t,e,a,o){if("function"==typeof t&&void 0===t.cid){i=!0,r++;var l,c=ru((function(e){var i;((i=e).__esModule||iu&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Td.extend(e),a.components[o]=e,--r<=0&&n()})),d=ru((function(t){var e="Failed to resolve async component "+o+": "+t;s||(s=Ec(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 au(t,e){return nu(t.map((function(t){return Object.keys(t.components).map((function(a){return e(t.components[a],t.instances[a],t,a)}))})))}function nu(t){return Array.prototype.concat.apply([],t)}var iu="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function ru(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 su=1,ou=2,lu=3,cu=4;function du(t,e){return pu(t,e,su,'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 hu.forEach((function(a){a in t&&(e[a]=t[a])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function uu(t,e){return pu(t,e,lu,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function pu(t,e,a,n){var i=new Error(n);return i._isRouter=!0,i.from=t,i.to=e,i.type=a,i}var hu=["params","query","hash"];var mu=function(t,e){this.router=t,this.base=function(t){if(!t)if(Pd){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=Xc,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function gu(t,e,a,n){var i=au(t,(function(t,n,i,r){var s=function(t,e){"function"!=typeof t&&(t=Td.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 nu(n?i.reverse():i)}function fu(t,e){if(e)return function(){return t.apply(e,arguments)}}mu.prototype.listen=function(t){this.cb=t},mu.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},mu.prototype.onError=function(t){this.errorCbs.push(t)},mu.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,jc(t,su)?n.readyCbs.forEach((function(t){t(i)})):n.readyErrorCbs.forEach((function(e){e(t)})))}))},mu.prototype.confirmTransition=function(t,e,a){var n,i=this,r=this.current,s=function(t){!jc(t)&&Ec(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(ad(t,r)&&o===l&&t.matched[o]===r.matched[l])return this.ensureURL(),s(pu(n=r,t,cu,'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=Jd&&a;n&&this.listeners.push(Bd());var i=function(){var a=t.current,i=bu(t.base);t.current===Xc&&i===t._startLocation||t.transitionTo(i,(function(t){n&&qd(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){Zd(rd(n.base+t.fullPath)),qd(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){Xd(rd(n.base+t.fullPath)),qd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.ensureURL=function(t){if(bu(this.base)!==this.current.fullPath){var e=rd(this.base+this.current.fullPath);t?Zd(e):Xd(e)}},e.prototype.getCurrentLocation=function(){return bu(this.base)},e}(mu);function bu(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 yu=function(t){function e(e,a,n){t.call(this,e,a),n&&function(t){var e=bu(t);if(!/^\/#/.test(e))return window.location.replace(rd(t+"/#"+e)),!0}(this.base)||_u()}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=Jd&&e;a&&this.listeners.push(Bd());var n=function(){var e=t.current;_u()&&t.transitionTo(ku(),(function(n){a&&qd(t.router,n,e,!0),Jd||Cu(n.fullPath)}))},i=Jd?"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){wu(t.fullPath),qd(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){Cu(t.fullPath),qd(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;ku()!==e&&(t?wu(e):Cu(e))},e.prototype.getCurrentLocation=function(){return ku()},e}(mu);function _u(){var t=ku();return"/"===t.charAt(0)||(Cu("/"+t),!1)}function ku(){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 Au(t){var e=window.location.href,a=e.indexOf("#");return(a>=0?e.slice(0,a):e)+"#"+t}function wu(t){Jd?Zd(Au(t)):window.location.hash=t}function Cu(t){Jd?Xd(Au(t)):window.location.replace(Au(t))}var xu=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){jc(t,cu)&&(e.index=a)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(mu),Tu=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Nd(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Jd&&!1!==t.fallback,this.fallback&&(e="hash"),Pd||(e="abstract"),this.mode=e,e){case"history":this.history=new vu(this,t.base);break;case"hash":this.history=new yu(this,t.base,this.fallback);break;case"abstract":this.history=new xu(this,t.base)}},Su={currentRoute:{configurable:!0}};function zu(t,e){return t.push(e),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}Tu.prototype.match=function(t,e,a){return this.matcher.match(t,e,a)},Su.currentRoute.get=function(){return this.history&&this.history.current},Tu.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 vu||a instanceof yu){var n=function(){a.setupListeners()};a.transitionTo(a.getCurrentLocation(),n,n)}a.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Tu.prototype.beforeEach=function(t){return zu(this.beforeHooks,t)},Tu.prototype.beforeResolve=function(t){return zu(this.resolveHooks,t)},Tu.prototype.afterEach=function(t){return zu(this.afterHooks,t)},Tu.prototype.onReady=function(t,e){this.history.onReady(t,e)},Tu.prototype.onError=function(t){this.history.onError(t)},Tu.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)},Tu.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)},Tu.prototype.go=function(t){this.history.go(t)},Tu.prototype.back=function(){this.go(-1)},Tu.prototype.forward=function(){this.go(1)},Tu.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]}))}))):[]},Tu.prototype.resolve=function(t,e,a){var n=xd(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?rd(t+"/"+n):n}(this.history.base,r,this.mode),normalizedTo:n,resolved:i}},Tu.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Xc&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Tu.prototype,Su),Tu.install=function t(e){if(!t.installed||Td!==e){t.installed=!0,Td=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",Bc),e.component("RouterLink",zd);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Tu.version="3.3.4",Pd&&window.Vue&&window.Vue.use(Tu);var Mu="object"==typeof global&&global&&global.Object===Object&&global,Pu="object"==typeof self&&self&&self.Object===Object&&self,Du=Mu||Pu||Function("return this")(),$u=Du.Symbol,Nu=Object.prototype,Lu=Nu.hasOwnProperty,Ru=Nu.toString,Iu=$u?$u.toStringTag:void 0;var Fu=Object.prototype.toString;var Eu=$u?$u.toStringTag:void 0;function ju(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Eu&&Eu in Object(t)?function(t){var e=Lu.call(t,Iu),a=t[Iu];try{t[Iu]=void 0;var n=!0}catch(t){}var i=Ru.call(t);return n&&(e?t[Iu]=a:delete t[Iu]),i}(t):function(t){return Fu.call(t)}(t)}function Ou(t){return null!=t&&"object"==typeof t}function Bu(t){return"symbol"==typeof t||Ou(t)&&"[object Symbol]"==ju(t)}function qu(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 hp(t){return null!=t&&pp(t.length)&&!Qu(t)}var mp=Object.prototype;function gp(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||mp)}function fp(t){return Ou(t)&&"[object Arguments]"==ju(t)}var vp=Object.prototype,bp=vp.hasOwnProperty,yp=vp.propertyIsEnumerable,_p=fp(function(){return arguments}())?fp:function(t){return Ou(t)&&bp.call(t,"callee")&&!yp.call(t,"callee")};var kp="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ap=kp&&"object"==typeof module&&module&&!module.nodeType&&module,wp=Ap&&Ap.exports===kp?Du.Buffer:void 0,Cp=(wp?wp.isBuffer:void 0)||function(){return!1},xp={};function Tp(t){return function(e){return t(e)}}xp["[object Float32Array]"]=xp["[object Float64Array]"]=xp["[object Int8Array]"]=xp["[object Int16Array]"]=xp["[object Int32Array]"]=xp["[object Uint8Array]"]=xp["[object Uint8ClampedArray]"]=xp["[object Uint16Array]"]=xp["[object Uint32Array]"]=!0,xp["[object Arguments]"]=xp["[object Array]"]=xp["[object ArrayBuffer]"]=xp["[object Boolean]"]=xp["[object DataView]"]=xp["[object Date]"]=xp["[object Error]"]=xp["[object Function]"]=xp["[object Map]"]=xp["[object Number]"]=xp["[object Object]"]=xp["[object RegExp]"]=xp["[object Set]"]=xp["[object String]"]=xp["[object WeakMap]"]=!1;var Sp="object"==typeof exports&&exports&&!exports.nodeType&&exports,zp=Sp&&"object"==typeof module&&module&&!module.nodeType&&module,Mp=zp&&zp.exports===Sp&&Mu.process,Pp=function(){try{var t=zp&&zp.require&&zp.require("util").types;return t||Mp&&Mp.binding&&Mp.binding("util")}catch(t){}}(),Dp=Pp&&Pp.isTypedArray,$p=Dp?Tp(Dp):function(t){return Ou(t)&&pp(t.length)&&!!xp[ju(t)]},Np=Object.prototype.hasOwnProperty;function Lp(t,e){var a=Uu(t),n=!a&&_p(t),i=!a&&!n&&Cp(t),r=!a&&!n&&!i&&$p(t),s=a||n||i||r,o=s?function(t,e){for(var a=-1,n=Array(t);++a-1},Yp.prototype.set=function(t,e){var a=this.__data__,n=Kp(a,t);return n<0?(++this.size,a.push([t,e])):a[n][1]=e,this};var Jp=op(Du,"Map");function Zp(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 Xp(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 wh: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 Qh(t,e,a,n){return null==t?[]:(Uu(e)||(e=null==e?[]:[e]),Uu(a=n?void 0:a)||(a=null==a?[]:[a]),Kh(t,e,a))}function Yh(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:Zh,albumView:Jh.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(),ll.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"}],Wh(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?"nb_song"==this.sortKey?Qh(this.body[this.currentTab],(function(t){return new Number(t.nb_song)}),this.sortOrder):Qh(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){sl.on("show_artist",this.showArtist),po.$on("artistTab:updateSelected",this.updateSelected),po.$on("artistTab:changeTab",this.changeTab)}};var tm=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")))])])])};tm._withStripped=!0;var em=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:tm,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})}),Xh,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={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:Zh,artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playPausePreview(t){po.$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){ll.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:uo.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,Wh(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)}`,Wh(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)}`,Wh(s)?this.body=null:this.body=s},selectRow(t,e){e.selected=!e.selected}},mounted(){po.$on("tracklistTab:selectRow",this.selectRow),sl.on("show_album",this.showAlbum),sl.on("show_playlist",this.showPlaylist),sl.on("show_spotifyplaylist",this.showSpotifyPlaylist)}};var nm=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")))])])])};nm._withStripped=!0;var im=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:nm,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})}),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)}}}}));let rm={},sm=!1;function om(){return sm?rm:(sl.emit("get_home_data"),new Promise((t,e)=>{sl.on("init_home",e=>{rm=e,sm=!0,sl.off("init_home"),t(e)})}))}const lm={data:()=>({playlists:[],albums:[]}),async created(){const t=await om();this.initHome(t)},computed:{...Go(["isLoggedIn"]),needToWait(){return 0===this.getHomeData.albums.data.length&&0===this.getHomeData.playlists.data.length}},methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playlistView:Jh.bind(null,"playlist"),addToQueue(t){ol(t.currentTarget.dataset.link)},initHome(t){const{playlists:{data:e},albums:{data:a}}=t;this.playlists=e,this.albums=a}}};var cm=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}},[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}},[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()])};cm._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/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:cm,staticRenderFns:[]},(function(t){t&&t("data-v-4258c182_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",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),lm,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 um={},pm=!1;function hm(){return pm?um:(sl.emit("get_charts_data"),new Promise((t,e)=>{sl.on("init_charts",e=>{um=e,pm=!0,sl.off("init_charts"),t(e)})}))}const mm={data:()=>({country:"",id:0,countries:[],chart:[]}),async created(){sl.on("setChartTracks",this.setTracklist),this.$on("hook:destroyed",()=>{sl.off("setChartTracks")});const t=await hm();this.initCharts(t)},methods:{convertDuration:so,artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playPausePreview(t){po.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){po.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){po.$emit("trackPreview:previewMouseLeave",t)},addToQueue(t){t.stopPropagation(),ol(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,sl.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{sl.on("init_favorites",e=>{vm=e,bm=!0,sl.off("init_favorites"),t(e)})}))}const _m={data:()=>({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[],activeTab:"playlist",tabs:["playlist","album","artist","track"]}),async created(){const t=await ym();0!==Object.entries(t).length&&this.setFavorites(t)},mounted(){sl.on("updated_userFavorites",this.updated_userFavorites),sl.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),sl.on("updated_userPlaylists",this.updated_userPlaylists),sl.on("updated_userAlbums",this.updated_userAlbums),sl.on("updated_userArtist",this.updated_userArtist),sl.on("updated_userTracks",this.updated_userTracks),this.$on("hook:destroyed",()=>{sl.off("updated_userFavorites"),sl.off("updated_userSpotifyPlaylists"),sl.off("updated_userPlaylists"),sl.off("updated_userAlbums"),sl.off("updated_userArtist"),sl.off("updated_userTracks")})},methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playlistView:Jh.bind(null,"playlist"),spotifyPlaylistView:Jh.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:so,addToQueue(t){ol(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"),sl.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&sl.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(t){this.setFavorites(t),this.$refs.reloadButton.addEventListener("animationiteration",()=>{this.$refs.reloadButton.classList.remove("spin"),Al(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 km=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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","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("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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","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("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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","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("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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","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("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()])])};km._withStripped=!0;var Am=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:km,staticRenderFns:[]},(function(t){t&&t("data-v-2ce3c2ae_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:"AA0MA;EACA,aAAA;AAAA;AAEA;IACA,cAAA;AAAA;;ACzMA,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})}),_m,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 wm={computed:{...Go(["getErrors"]),title(){return`${this.getErrors.artist} - ${this.getErrors.title}`},errors(){return this.getErrors.errors}}};var Cm=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)])};Cm._withStripped=!0;var xm=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:Cm,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})}),wm,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 Tm={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 Sm={data:()=>({link:"",title:"",subtitle:"",image:"",data:{},type:"",id:"0",countries:[]}),methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),convertDuration:so,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(Tm[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){ol(t.currentTarget.dataset.link)}},mounted(){po.$on("linkAnalyzerTab:reset",this.reset),sl.on("analyze_track",this.showTrack),sl.on("analyze_album",this.showAlbum),sl.on("analyze_notSupported",this.notSupported)}};var zm=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()])])};zm._withStripped=!0;var Mm=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:zm,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})}),Sm,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 Pm={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:{...Go(["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 Dm=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"))}})])};Dm._withStripped=!0;var $m=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:Dm,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})}),Pm,"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)}}}})),Nm={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 Lm={},Rm={},Im={};function Fm(){return sl.emit("get_settings_data"),new Promise((t,e)=>{sl.on("init_settings",(e,a,n)=>{Lm=e,Rm=n,Im=a,sl.off("init_settings"),t({settingsData:Lm,defaultSettingsData:Rm,spotifyCredentials:Im})})})}const Em={data:()=>({flags:Nm,currentLocale:"en",locales:[],settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,previewVolume:window.vol,accountNum:0,accounts:[]}),computed:{...Go({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 Fm();this.defaultSettings=e,this.initSettings(t,a);let n=localStorage.getItem("locale");n&&(this.$i18n.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,sl.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,sl.on("updateSettings",this.updateSettings),sl.on("accountChanged",this.accountChanged),sl.on("familyAccounts",this.initAccounts),sl.on("downloadFolderSelected",this.downloadFolderSelected),sl.on("applogin_arl",this.loggedInViaDeezer),this.$on("hook:destroyed",()=>{sl.off("updateSettings"),sl.off("accountChanged"),sl.off("familyAccounts"),sl.off("downloadFolderSelected"),sl.off("applogin_arl")})},methods:{...Wo({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"),Al(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),sl.emit("saveSettings",this.lastSettings,this.lastCredentials,!!t&&this.lastUser)},selectDownloadFolder(){sl.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))},login(){let t=this.$refs.loginInput.value.trim();t&&t!==this.arl&&sl.emit("login",t,!0,this.accountNum)},appLogin(t){sl.emit("applogin")},loggedInViaDeezer(t){this.dispatchARL({arl:t}),this.login()},changeAccount(){sl.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(){sl.emit("logout")},initSettings(t,e){this.loadSettings(t),this.loadCredentials(e),Al(this.$t("settings.toasts.init"),"settings")},updateSettings(t,e){this.loadSettings(t),this.loadCredentials(e),Al(this.$t("settings.toasts.update"),"settings")},resetSettings(){this.settings=JSON.parse(JSON.stringify(this.defaultSettings))}}};var jm=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")))])])])};jm._withStripped=!0;var Om=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:jm,staticRenderFns:[]},(function(t){t&&t("data-v-fea69716_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})}),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)}}}}));const Bm={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:so}};var qm=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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":t.results.allTab.TOP_RESULT[0].link},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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/artist/"+e.ART_ID},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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/album/"+e.ALB_ID},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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":"https://deezer.com/playlist/"+e.PLAYLIST_ID},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)};qm._withStripped=!0;var Um=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:qm,staticRenderFns:[]},0,Bm,void 0,!1);const Vm={props:["results"],components:{BaseLoadingPlaceholder:go}};var Gm=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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},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)};Gm._withStripped=!0;var Wm=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:Gm,staticRenderFns:[]},0,Vm,void 0,!1);const Hm={props:["results"],components:{BaseLoadingPlaceholder:go}};var Km=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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},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)};Km._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/ResultsArtists.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Km,staticRenderFns:[]},0,Hm,void 0,!1);const Ym={props:["results"],components:{BaseLoadingPlaceholder:go}};var Jm=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("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},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)};Jm._withStripped=!0;var Zm=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:Jm,staticRenderFns:[]},0,Ym,void 0,!1);const Xm={props:["results"],components:{BaseLoadingPlaceholder:go},methods:{convertDuration:so,artistView(t){this.$emit("artist-view",t)},albumView(t){this.$emit("album-view",t)},playlistView(t){this.$emit("playlist-view",t)},playPausePreview(t){po.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){po.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){po.$emit("trackPreview:previewMouseLeave",t)}}};var tg=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)};tg._withStripped=!0;var eg=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:tg,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v(" timer ")])])}]},0,Xm,void 0,!1);const ag={components:{BaseLoadingPlaceholder:go},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:Um},{name:e("globals.listTabs.track",2),searchType:"track",component:eg},{name:e("globals.listTabs.album",2),searchType:"album",component:Wm},{name:e("globals.listTabs.artist",2),searchType:"artist",component:Qm},{name:e("globals.listTabs.playlist",2),searchType:"playlist",component:Zm}],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(){po.$on("mainSearch:checkLoadMoreContent",this.checkLoadMoreContent),this.$root.$on("mainSearch:showNewResults",this.checkIfShowNewResults),sl.on("mainSearch",this.handleMainSearch),sl.on("search",this.handleSearch)},methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playlistView:Jh.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)},showNewResults(t){sl.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){ol(t.currentTarget.dataset.link)},numberWithDots:oo,convertDuration:so,search(t){sl.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})});rg.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&&sl.emit("getTracklist",n),po.$emit("trackPreview:stopStackedTabsPreview"),a()}),window.vol={preview_max_volume:100},document.addEventListener("DOMContentLoaded",(function(){new ka({store:rl,router:rg,i18n:Fc,render:t=>t(Pl)}).$mount("#app"),Yh(document.getElementById("main_home_tablink"),"main","home_tab")})),window.addEventListener("pywebviewready",(function(){rl.dispatch("setClientMode",!0)})),document.addEventListener("paste",t=>{let e=t.clipboardData.getData("Text");if("input"!=t.target.localName)if(ro(e))"analyzer_tab"===window.main_selected?(po.$emit("linkAnalyzerTab:reset"),sl.emit("analyzeLink",e)):ll.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())}),sl.on("message",(function(t){console.log(t)})),sl.on("logging_in",(function(){Al(Fc.t("toasts.loggingIn"),"loading",!1,"login-toast")})),sl.on("init_autologin",(function(){let t=localStorage.getItem("arl"),e=localStorage.getItem("accountNum");t&&(t=t.trim(),0!=e?sl.emit("login",t,!0,e):sl.emit("login",t))})),sl.on("logged_in",(function(t){const{status:e,user:a}=t;switch(e){case 1:case 3:Al(Fc.t("toasts.loggedIn"),"done",!0,"login-toast"),rl.dispatch("login",t);break;case 2:Al(Fc.t("toasts.alreadyLogged"),"done",!0,"login-toast"),rl.dispatch("setUser",a);break;case 0:Al(Fc.t("toasts.loginFailed"),"close",!0,"login-toast"),rl.dispatch("removeARL");break;case-1:Al(Fc.t("toasts.deezerNotAvailable"),"close",!0,"login-toast"),$("#open_login_prompt").show(),document.getElementById("logged_in_info").classList.add("hide"),$("#settings_username").text("Not Logged"),$("#settings_picture").attr("src","https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg"),document.getElementById("home_not_logged_in").classList.remove("hide")}})),sl.on("logged_out",(function(){Al(Fc.t("toasts.loggedOut"),"done",!0,"login-toast"),rl.dispatch("logout")})),sl.on("restoringQueue",(function(){Al(Fc.t("toasts.restoringQueue"),"loading",!1,"restoring_queue")})),sl.on("cancellingCurrentItem",(function(t){Al(Fc.t("toasts.cancellingCurrentItem"),"loading",!1,"cancelling_"+t)})),sl.on("currentItemCancelled",(function(t){Al(Fc.t("toasts.currentItemCancelled"),"done",!0,"cancelling_"+t)})),sl.on("startAddingArtist",(function(t){Al(Fc.t("toasts.startAddingArtist",{artist:t.name}),"loading",!1,"artist_"+t.id)})),sl.on("finishAddingArtist",(function(t){Al(Fc.t("toasts.finishAddingArtist",{artist:t.name}),"done",!0,"artist_"+t.id)})),sl.on("startConvertingSpotifyPlaylist",(function(t){Al(Fc.t("toasts.startConvertingSpotifyPlaylist"),"loading",!1,"spotifyplaylist_"+t)})),sl.on("finishConvertingSpotifyPlaylist",(function(t){Al(Fc.t("toasts.finishConvertingSpotifyPlaylist"),"done",!0,"spotifyplaylist_"+t)})),sl.on("errorMessage",(function(t){Al(t,"error")})),sl.on("queueError",(function(t){t.errid?Al(Fc.t("errors.ids."+t.errid),"error"):Al(t.error,"error")})),sl.on("alreadyInQueue",(function(t){Al(Fc.t("toasts.alreadyInQueue",{item:t.title}),"playlist_add_check")})),sl.on("loginNeededToDownload",(function(t){Al(Fc.t("toasts.loginNeededToDownload"),"report")})); +function Ec(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function jc(t,e){return Ec(t)&&t._isRouter&&(null==e||t.type===e)}function Oc(t,e){for(var a in e)t[a]=e[a];return t}var Bc={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&&qc(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&&(Oc(c[o],{route:l,configProps:v}),qc(f,r,l,v)),s(f,r,n)}};function qc(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=Oc({},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 Uc=/[!'()*]/g,Vc=function(t){return"%"+t.charCodeAt(0).toString(16)},Gc=/%2C/g,Wc=function(t){return encodeURIComponent(t).replace(Uc,Vc).replace(Gc,",")},Hc=decodeURIComponent;function Kc(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var a=t.replace(/\+/g," ").split("="),n=Hc(a.shift()),i=a.length>0?Hc(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 Qc(t){var e=t?Object.keys(t).map((function(e){var a=t[e];if(void 0===a)return"";if(null===a)return Wc(e);if(Array.isArray(a)){var n=[];return a.forEach((function(t){void 0!==t&&(null===t?n.push(Wc(e)):n.push(Wc(e)+"="+Wc(t)))})),n.join("&")}return Wc(e)+"="+Wc(a)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var Yc=/\/?$/;function Jc(t,e,a,n){var i=n&&n.options.stringifyQuery,r=e.query||{};try{r=Zc(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:ed(e,i),matched:t?td(t):[]};return a&&(s.redirectedFrom=ed(a,i)),Object.freeze(s)}function Zc(t){if(Array.isArray(t))return t.map(Zc);if(t&&"object"==typeof t){var e={};for(var a in t)e[a]=Zc(t[a]);return e}return t}var Xc=Jc(null,{path:"/"});function td(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function ed(t,e){var a=t.path,n=t.query;void 0===n&&(n={});var i=t.hash;return void 0===i&&(i=""),(a||"/")+(e||Qc)(n)+i}function ad(t,e){return e===Xc?t===e:!!e&&(t.path&&e.path?t.path.replace(Yc,"")===e.path.replace(Yc,"")&&t.hash===e.hash&&nd(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&nd(t.query,e.query)&&nd(t.params,e.params)))}function nd(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?nd(n,i):String(n)===String(i)}))}function id(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?id(l.path,c,a||i.append):c,u=function(t,e,a){void 0===e&&(e={});var n,i=a||Kc;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 Td,Sd=function(){},zd={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?Jc(null,xd(s.redirectedFrom),null,a):s;l[m]=ad(n,g),l[h]=this.exact?l[m]:function(t,e){return 0===t.path.replace(Yc,"/").indexOf(e.path.replace(Yc,"/"))&&(!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){Md(t)&&(e.replace?a.replace(r,Sd):a.push(r,Sd))},b={click:Md};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=Cd(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 eu(t){return function(e,a,n){var i=!1,r=0,s=null;au(t,(function(t,e,a,o){if("function"==typeof t&&void 0===t.cid){i=!0,r++;var l,c=ru((function(e){var i;((i=e).__esModule||iu&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Td.extend(e),a.components[o]=e,--r<=0&&n()})),d=ru((function(t){var e="Failed to resolve async component "+o+": "+t;s||(s=Ec(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 au(t,e){return nu(t.map((function(t){return Object.keys(t.components).map((function(a){return e(t.components[a],t.instances[a],t,a)}))})))}function nu(t){return Array.prototype.concat.apply([],t)}var iu="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function ru(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 su=1,ou=2,lu=3,cu=4;function du(t,e){return pu(t,e,su,'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 hu.forEach((function(a){a in t&&(e[a]=t[a])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function uu(t,e){return pu(t,e,lu,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function pu(t,e,a,n){var i=new Error(n);return i._isRouter=!0,i.from=t,i.to=e,i.type=a,i}var hu=["params","query","hash"];var mu=function(t,e){this.router=t,this.base=function(t){if(!t)if(Pd){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=Xc,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function gu(t,e,a,n){var i=au(t,(function(t,n,i,r){var s=function(t,e){"function"!=typeof t&&(t=Td.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 nu(n?i.reverse():i)}function fu(t,e){if(e)return function(){return t.apply(e,arguments)}}mu.prototype.listen=function(t){this.cb=t},mu.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},mu.prototype.onError=function(t){this.errorCbs.push(t)},mu.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,jc(t,su)?n.readyCbs.forEach((function(t){t(i)})):n.readyErrorCbs.forEach((function(e){e(t)})))}))},mu.prototype.confirmTransition=function(t,e,a){var n,i=this,r=this.current,s=function(t){!jc(t)&&Ec(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(ad(t,r)&&o===l&&t.matched[o]===r.matched[l])return this.ensureURL(),s(pu(n=r,t,cu,'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=Jd&&a;n&&this.listeners.push(Bd());var i=function(){var a=t.current,i=bu(t.base);t.current===Xc&&i===t._startLocation||t.transitionTo(i,(function(t){n&&qd(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){Zd(rd(n.base+t.fullPath)),qd(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){Xd(rd(n.base+t.fullPath)),qd(n.router,t,i,!1),e&&e(t)}),a)},e.prototype.ensureURL=function(t){if(bu(this.base)!==this.current.fullPath){var e=rd(this.base+this.current.fullPath);t?Zd(e):Xd(e)}},e.prototype.getCurrentLocation=function(){return bu(this.base)},e}(mu);function bu(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 yu=function(t){function e(e,a,n){t.call(this,e,a),n&&function(t){var e=bu(t);if(!/^\/#/.test(e))return window.location.replace(rd(t+"/#"+e)),!0}(this.base)||_u()}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=Jd&&e;a&&this.listeners.push(Bd());var n=function(){var e=t.current;_u()&&t.transitionTo(ku(),(function(n){a&&qd(t.router,n,e,!0),Jd||Cu(n.fullPath)}))},i=Jd?"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){wu(t.fullPath),qd(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){Cu(t.fullPath),qd(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;ku()!==e&&(t?wu(e):Cu(e))},e.prototype.getCurrentLocation=function(){return ku()},e}(mu);function _u(){var t=ku();return"/"===t.charAt(0)||(Cu("/"+t),!1)}function ku(){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 Au(t){var e=window.location.href,a=e.indexOf("#");return(a>=0?e.slice(0,a):e)+"#"+t}function wu(t){Jd?Zd(Au(t)):window.location.hash=t}function Cu(t){Jd?Xd(Au(t)):window.location.replace(Au(t))}var xu=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){jc(t,cu)&&(e.index=a)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(mu),Tu=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Nd(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Jd&&!1!==t.fallback,this.fallback&&(e="hash"),Pd||(e="abstract"),this.mode=e,e){case"history":this.history=new vu(this,t.base);break;case"hash":this.history=new yu(this,t.base,this.fallback);break;case"abstract":this.history=new xu(this,t.base)}},Su={currentRoute:{configurable:!0}};function zu(t,e){return t.push(e),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}Tu.prototype.match=function(t,e,a){return this.matcher.match(t,e,a)},Su.currentRoute.get=function(){return this.history&&this.history.current},Tu.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 vu||a instanceof yu){var n=function(){a.setupListeners()};a.transitionTo(a.getCurrentLocation(),n,n)}a.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Tu.prototype.beforeEach=function(t){return zu(this.beforeHooks,t)},Tu.prototype.beforeResolve=function(t){return zu(this.resolveHooks,t)},Tu.prototype.afterEach=function(t){return zu(this.afterHooks,t)},Tu.prototype.onReady=function(t,e){this.history.onReady(t,e)},Tu.prototype.onError=function(t){this.history.onError(t)},Tu.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)},Tu.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)},Tu.prototype.go=function(t){this.history.go(t)},Tu.prototype.back=function(){this.go(-1)},Tu.prototype.forward=function(){this.go(1)},Tu.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]}))}))):[]},Tu.prototype.resolve=function(t,e,a){var n=xd(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?rd(t+"/"+n):n}(this.history.base,r,this.mode),normalizedTo:n,resolved:i}},Tu.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Xc&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Tu.prototype,Su),Tu.install=function t(e){if(!t.installed||Td!==e){t.installed=!0,Td=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",Bc),e.component("RouterLink",zd);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Tu.version="3.3.4",Pd&&window.Vue&&window.Vue.use(Tu);var Mu="object"==typeof global&&global&&global.Object===Object&&global,Pu="object"==typeof self&&self&&self.Object===Object&&self,Du=Mu||Pu||Function("return this")(),$u=Du.Symbol,Nu=Object.prototype,Lu=Nu.hasOwnProperty,Ru=Nu.toString,Iu=$u?$u.toStringTag:void 0;var Fu=Object.prototype.toString;var Eu=$u?$u.toStringTag:void 0;function ju(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Eu&&Eu in Object(t)?function(t){var e=Lu.call(t,Iu),a=t[Iu];try{t[Iu]=void 0;var n=!0}catch(t){}var i=Ru.call(t);return n&&(e?t[Iu]=a:delete t[Iu]),i}(t):function(t){return Fu.call(t)}(t)}function Ou(t){return null!=t&&"object"==typeof t}function Bu(t){return"symbol"==typeof t||Ou(t)&&"[object Symbol]"==ju(t)}function qu(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 hp(t){return null!=t&&pp(t.length)&&!Qu(t)}var mp=Object.prototype;function gp(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||mp)}function fp(t){return Ou(t)&&"[object Arguments]"==ju(t)}var vp=Object.prototype,bp=vp.hasOwnProperty,yp=vp.propertyIsEnumerable,_p=fp(function(){return arguments}())?fp:function(t){return Ou(t)&&bp.call(t,"callee")&&!yp.call(t,"callee")};var kp="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ap=kp&&"object"==typeof module&&module&&!module.nodeType&&module,wp=Ap&&Ap.exports===kp?Du.Buffer:void 0,Cp=(wp?wp.isBuffer:void 0)||function(){return!1},xp={};function Tp(t){return function(e){return t(e)}}xp["[object Float32Array]"]=xp["[object Float64Array]"]=xp["[object Int8Array]"]=xp["[object Int16Array]"]=xp["[object Int32Array]"]=xp["[object Uint8Array]"]=xp["[object Uint8ClampedArray]"]=xp["[object Uint16Array]"]=xp["[object Uint32Array]"]=!0,xp["[object Arguments]"]=xp["[object Array]"]=xp["[object ArrayBuffer]"]=xp["[object Boolean]"]=xp["[object DataView]"]=xp["[object Date]"]=xp["[object Error]"]=xp["[object Function]"]=xp["[object Map]"]=xp["[object Number]"]=xp["[object Object]"]=xp["[object RegExp]"]=xp["[object Set]"]=xp["[object String]"]=xp["[object WeakMap]"]=!1;var Sp="object"==typeof exports&&exports&&!exports.nodeType&&exports,zp=Sp&&"object"==typeof module&&module&&!module.nodeType&&module,Mp=zp&&zp.exports===Sp&&Mu.process,Pp=function(){try{var t=zp&&zp.require&&zp.require("util").types;return t||Mp&&Mp.binding&&Mp.binding("util")}catch(t){}}(),Dp=Pp&&Pp.isTypedArray,$p=Dp?Tp(Dp):function(t){return Ou(t)&&pp(t.length)&&!!xp[ju(t)]},Np=Object.prototype.hasOwnProperty;function Lp(t,e){var a=Uu(t),n=!a&&_p(t),i=!a&&!n&&Cp(t),r=!a&&!n&&!i&&$p(t),s=a||n||i||r,o=s?function(t,e){for(var a=-1,n=Array(t);++a-1},Yp.prototype.set=function(t,e){var a=this.__data__,n=Kp(a,t);return n<0?(++this.size,a.push([t,e])):a[n][1]=e,this};var Jp=op(Du,"Map");function Zp(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 Xp(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 wh: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 Qh(t,e,a,n){return null==t?[]:(Uu(e)||(e=null==e?[]:[e]),Uu(a=n?void 0:a)||(a=null==a?[]:[a]),Kh(t,e,a))}function Yh(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:Zh,albumView:Jh.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(),ll.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"}],Wh(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?"nb_song"==this.sortKey?Qh(this.body[this.currentTab],(function(t){return new Number(t.nb_song)}),this.sortOrder):Qh(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){sl.on("show_artist",this.showArtist),po.$on("artistTab:updateSelected",this.updateSelected),po.$on("artistTab:changeTab",this.changeTab)}};var tm=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")))])])])};tm._withStripped=!0;var em=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:tm,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})}),Xh,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={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:Zh,artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playPausePreview(t){po.$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){ll.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:uo.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,Wh(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)}`,Wh(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)}`,Wh(s)?this.body=null:this.body=s},selectRow(t,e){e.selected=!e.selected}},mounted(){po.$on("tracklistTab:selectRow",this.selectRow),sl.on("show_album",this.showAlbum),sl.on("show_playlist",this.showPlaylist),sl.on("show_spotifyplaylist",this.showSpotifyPlaylist)}};var nm=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")))])])])};nm._withStripped=!0;var im=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:nm,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})}),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)}}}}));let rm={},sm=!1;function om(){return sm?rm:(sl.emit("get_home_data"),new Promise((t,e)=>{sl.on("init_home",e=>{rm=e,sm=!0,sl.off("init_home"),t(e)})}))}const lm={data:()=>({playlists:[],albums:[]}),async created(){const t=await om();this.initHome(t)},computed:{...Go(["isLoggedIn"]),needToWait(){return 0===this.getHomeData.albums.data.length&&0===this.getHomeData.playlists.data.length}},methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playlistView:Jh.bind(null,"playlist"),addToQueue(t){ol(t.currentTarget.dataset.link)},initHome(t){const{playlists:{data:e},albums:{data:a}}=t;this.playlists=e,this.albums=a}}};var cm=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}},[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}},[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()])};cm._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/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:cm,staticRenderFns:[]},(function(t){t&&t("data-v-4258c182_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",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),lm,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 um={},pm=!1;function hm(){return pm?um:(sl.emit("get_charts_data"),new Promise((t,e)=>{sl.on("init_charts",e=>{um=e,pm=!0,sl.off("init_charts"),t(e)})}))}const mm={data:()=>({country:"",id:0,countries:[],chart:[]}),async created(){sl.on("setChartTracks",this.setTracklist),this.$on("hook:destroyed",()=>{sl.off("setChartTracks")});const t=await hm();this.initCharts(t)},methods:{convertDuration:so,artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playPausePreview(t){po.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){po.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){po.$emit("trackPreview:previewMouseLeave",t)},addToQueue(t){t.stopPropagation(),ol(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,sl.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{sl.on("init_favorites",e=>{vm=e,bm=!0,sl.off("init_favorites"),t(e)})}))}const _m={data:()=>({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[],activeTab:"playlist",tabs:["playlist","album","artist","track"]}),async created(){const t=await ym();0!==Object.entries(t).length&&this.setFavorites(t)},mounted(){sl.on("updated_userFavorites",this.updated_userFavorites),sl.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),sl.on("updated_userPlaylists",this.updated_userPlaylists),sl.on("updated_userAlbums",this.updated_userAlbums),sl.on("updated_userArtist",this.updated_userArtist),sl.on("updated_userTracks",this.updated_userTracks),this.$on("hook:destroyed",()=>{sl.off("updated_userFavorites"),sl.off("updated_userSpotifyPlaylists"),sl.off("updated_userPlaylists"),sl.off("updated_userAlbums"),sl.off("updated_userArtist"),sl.off("updated_userTracks")})},methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playlistView:Jh.bind(null,"playlist"),spotifyPlaylistView:Jh.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:so,addToQueue(t){ol(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"),sl.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&sl.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(t){this.setFavorites(t),this.$refs.reloadButton.addEventListener("animationiteration",()=>{this.$refs.reloadButton.classList.remove("spin"),Al(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 km=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()])])};km._withStripped=!0;var Am=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:km,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})}),_m,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 wm={computed:{...Go(["getErrors"]),title(){return`${this.getErrors.artist} - ${this.getErrors.title}`},errors(){return this.getErrors.errors}}};var Cm=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)])};Cm._withStripped=!0;var xm=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:Cm,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})}),wm,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 Tm={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 Sm={data:()=>({link:"",title:"",subtitle:"",image:"",data:{},type:"",id:"0",countries:[]}),methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),convertDuration:so,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(Tm[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){ol(t.currentTarget.dataset.link)}},mounted(){po.$on("linkAnalyzerTab:reset",this.reset),sl.on("analyze_track",this.showTrack),sl.on("analyze_album",this.showAlbum),sl.on("analyze_notSupported",this.notSupported)}};var zm=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()])])};zm._withStripped=!0;var Mm=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:zm,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})}),Sm,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 Pm={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:{...Go(["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 Dm=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"))}})])};Dm._withStripped=!0;var $m=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:Dm,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})}),Pm,"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)}}}})),Nm={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 Lm={},Rm={},Im={};function Fm(){return sl.emit("get_settings_data"),new Promise((t,e)=>{sl.on("init_settings",(e,a,n)=>{Lm=e,Rm=n,Im=a,sl.off("init_settings"),t({settingsData:Lm,defaultSettingsData:Rm,spotifyCredentials:Im})})})}const Em={data:()=>({flags:Nm,currentLocale:"en",locales:[],settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,previewVolume:window.vol,accountNum:0,accounts:[]}),computed:{...Go({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 Fm();this.defaultSettings=e,this.initSettings(t,a);let n=localStorage.getItem("locale");n&&(this.$i18n.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,sl.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,sl.on("updateSettings",this.updateSettings),sl.on("accountChanged",this.accountChanged),sl.on("familyAccounts",this.initAccounts),sl.on("downloadFolderSelected",this.downloadFolderSelected),sl.on("applogin_arl",this.loggedInViaDeezer),this.$on("hook:destroyed",()=>{sl.off("updateSettings"),sl.off("accountChanged"),sl.off("familyAccounts"),sl.off("downloadFolderSelected"),sl.off("applogin_arl")})},methods:{...Wo({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"),Al(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),sl.emit("saveSettings",this.lastSettings,this.lastCredentials,!!t&&this.lastUser)},selectDownloadFolder(){sl.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))},login(){let t=this.$refs.loginInput.value.trim();t&&t!==this.arl&&sl.emit("login",t,!0,this.accountNum)},appLogin(t){sl.emit("applogin")},loggedInViaDeezer(t){this.dispatchARL({arl:t}),this.login()},changeAccount(){sl.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(){sl.emit("logout")},initSettings(t,e){this.loadSettings(t),this.loadCredentials(e),Al(this.$t("settings.toasts.init"),"settings")},updateSettings(t,e){this.loadSettings(t),this.loadCredentials(e),Al(this.$t("settings.toasts.update"),"settings")},resetSettings(){this.settings=JSON.parse(JSON.stringify(this.defaultSettings))}}};var jm=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")))])])])};jm._withStripped=!0;var Om=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:jm,staticRenderFns:[]},(function(t){t&&t("data-v-fea69716_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})}),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)}}}}));const Bm={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:so}};var qm=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)};qm._withStripped=!0;var Um=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:qm,staticRenderFns:[]},0,Bm,void 0,!1);const Vm={props:["results"],components:{BaseLoadingPlaceholder:go}};var Gm=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)};Gm._withStripped=!0;var Wm=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:Gm,staticRenderFns:[]},0,Vm,void 0,!1);const Hm={props:["results"],components:{BaseLoadingPlaceholder:go}};var Km=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)};Km._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/ResultsArtists.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Km,staticRenderFns:[]},0,Hm,void 0,!1);const Ym={props:["results"],components:{BaseLoadingPlaceholder:go}};var Jm=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)};Jm._withStripped=!0;var Zm=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:Jm,staticRenderFns:[]},0,Ym,void 0,!1);const Xm={props:["results"],components:{BaseLoadingPlaceholder:go},methods:{convertDuration:so,artistView(t){this.$emit("artist-view",t)},albumView(t){this.$emit("album-view",t)},playlistView(t){this.$emit("playlist-view",t)},playPausePreview(t){po.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){po.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){po.$emit("trackPreview:previewMouseLeave",t)}}};var tg=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)};tg._withStripped=!0;var eg=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:tg,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v(" timer ")])])}]},0,Xm,void 0,!1);const ag={components:{BaseLoadingPlaceholder:go},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:Um},{name:e("globals.listTabs.track",2),searchType:"track",component:eg},{name:e("globals.listTabs.album",2),searchType:"album",component:Wm},{name:e("globals.listTabs.artist",2),searchType:"artist",component:Qm},{name:e("globals.listTabs.playlist",2),searchType:"playlist",component:Zm}],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(){po.$on("mainSearch:checkLoadMoreContent",this.checkLoadMoreContent),this.$root.$on("mainSearch:showNewResults",this.checkIfShowNewResults),sl.on("mainSearch",this.handleMainSearch),sl.on("search",this.handleSearch)},methods:{artistView:Jh.bind(null,"artist"),albumView:Jh.bind(null,"album"),playlistView:Jh.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)},showNewResults(t){sl.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){ol(t.currentTarget.dataset.link)},numberWithDots:oo,convertDuration:so,search(t){sl.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})});rg.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&&sl.emit("getTracklist",n),po.$emit("trackPreview:stopStackedTabsPreview"),a()}),window.vol={preview_max_volume:100},document.addEventListener("DOMContentLoaded",(function(){new ka({store:rl,router:rg,i18n:Fc,render:t=>t(Pl)}).$mount("#app"),Yh(document.getElementById("main_home_tablink"),"main","home_tab")})),window.addEventListener("pywebviewready",(function(){rl.dispatch("setClientMode",!0)})),document.addEventListener("paste",t=>{let e=t.clipboardData.getData("Text");if("input"!=t.target.localName)if(ro(e))"analyzer_tab"===window.main_selected?(po.$emit("linkAnalyzerTab:reset"),sl.emit("analyzeLink",e)):ll.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())}),sl.on("message",(function(t){console.log(t)})),sl.on("logging_in",(function(){Al(Fc.t("toasts.loggingIn"),"loading",!1,"login-toast")})),sl.on("init_autologin",(function(){let t=localStorage.getItem("arl"),e=localStorage.getItem("accountNum");t&&(t=t.trim(),0!=e?sl.emit("login",t,!0,e):sl.emit("login",t))})),sl.on("logged_in",(function(t){const{status:e,user:a}=t;switch(e){case 1:case 3:Al(Fc.t("toasts.loggedIn"),"done",!0,"login-toast"),rl.dispatch("login",t);break;case 2:Al(Fc.t("toasts.alreadyLogged"),"done",!0,"login-toast"),rl.dispatch("setUser",a);break;case 0:Al(Fc.t("toasts.loginFailed"),"close",!0,"login-toast"),rl.dispatch("removeARL");break;case-1:Al(Fc.t("toasts.deezerNotAvailable"),"close",!0,"login-toast"),$("#open_login_prompt").show(),document.getElementById("logged_in_info").classList.add("hide"),$("#settings_username").text("Not Logged"),$("#settings_picture").attr("src","https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg"),document.getElementById("home_not_logged_in").classList.remove("hide")}})),sl.on("logged_out",(function(){Al(Fc.t("toasts.loggedOut"),"done",!0,"login-toast"),rl.dispatch("logout")})),sl.on("restoringQueue",(function(){Al(Fc.t("toasts.restoringQueue"),"loading",!1,"restoring_queue")})),sl.on("cancellingCurrentItem",(function(t){Al(Fc.t("toasts.cancellingCurrentItem"),"loading",!1,"cancelling_"+t)})),sl.on("currentItemCancelled",(function(t){Al(Fc.t("toasts.currentItemCancelled"),"done",!0,"cancelling_"+t)})),sl.on("startAddingArtist",(function(t){Al(Fc.t("toasts.startAddingArtist",{artist:t.name}),"loading",!1,"artist_"+t.id)})),sl.on("finishAddingArtist",(function(t){Al(Fc.t("toasts.finishAddingArtist",{artist:t.name}),"done",!0,"artist_"+t.id)})),sl.on("startConvertingSpotifyPlaylist",(function(t){Al(Fc.t("toasts.startConvertingSpotifyPlaylist"),"loading",!1,"spotifyplaylist_"+t)})),sl.on("finishConvertingSpotifyPlaylist",(function(t){Al(Fc.t("toasts.finishConvertingSpotifyPlaylist"),"done",!0,"spotifyplaylist_"+t)})),sl.on("errorMessage",(function(t){Al(t,"error")})),sl.on("queueError",(function(t){t.errid?Al(Fc.t("errors.ids."+t.errid),"error"):Al(t.error,"error")})),sl.on("alreadyInQueue",(function(t){Al(Fc.t("toasts.alreadyInQueue",{item:t.title}),"playlist_add_check")})),sl.on("loginNeededToDownload",(function(t){Al(Fc.t("toasts.loginNeededToDownload"),"report")})); diff --git a/src/components/TheFavoritesTab.vue b/src/components/TheFavoritesTab.vue index 0038aec..955cdaa 100644 --- a/src/components/TheFavoritesTab.vue +++ b/src/components/TheFavoritesTab.vue @@ -32,15 +32,16 @@
-
get_app -
+

{{ release.title }}

@@ -60,15 +61,16 @@ >

-
get_app -
+

{{ release.title }}

@@ -91,15 +93,16 @@

-
get_app -
+

{{ release.title }}

{{ `${$t('globals.by', { artist: release.artist.name })}` }}

@@ -115,15 +118,16 @@
-
get_app -
+

{{ release.name }}

diff --git a/src/components/search/ResultsAlbums.vue b/src/components/search/ResultsAlbums.vue index 4cbdbef..8f99868 100644 --- a/src/components/search/ResultsAlbums.vue +++ b/src/components/search/ResultsAlbums.vue @@ -13,15 +13,16 @@ >
-
get_app -
+

explicit @@ -48,4 +49,4 @@ export default { BaseLoadingPlaceholder } } - \ No newline at end of file + diff --git a/src/components/search/ResultsAll.vue b/src/components/search/ResultsAll.vue index 6face7a..7fed0ac 100644 --- a/src/components/search/ResultsAll.vue +++ b/src/components/search/ResultsAll.vue @@ -27,15 +27,16 @@ :src="results.allTab.TOP_RESULT[0].picture" :class="(results.allTab.TOP_RESULT[0].type == 'artist' ? 'circle' : 'rounded') + ' coverart'" /> -

get_app -
+

{{ results.allTab.TOP_RESULT[0].title }}

@@ -118,15 +119,16 @@ 'https://e-cdns-images.dzcdn.net/images/artist/' + release.ART_PICTURE + '/156x156-000000-80-0-0.jpg' " /> -
get_app -
+

{{ release.ART_NAME }}

{{ $t('search.fans', { n: $n(release.NB_FAN) }) }}

@@ -147,15 +149,16 @@ 'https://e-cdns-images.dzcdn.net/images/cover/' + release.ALB_PICTURE + '/156x156-000000-80-0-0.jpg' " /> -
get_app -
+

-

get_app -
+

{{ release.TITLE }}

{{ $tc('globals.listTabs.trackN', release.NB_SONG) }}

@@ -231,4 +235,4 @@ export default { convertDuration } } - \ No newline at end of file + diff --git a/src/components/search/ResultsArtists.vue b/src/components/search/ResultsArtists.vue index 4b1cf01..a914bd4 100644 --- a/src/components/search/ResultsArtists.vue +++ b/src/components/search/ResultsArtists.vue @@ -13,15 +13,16 @@ >
-
get_app -
+

{{ release.name }}

{{ $tc('globals.listTabs.releaseN', release.nb_album) }}

@@ -39,4 +40,4 @@ export default { BaseLoadingPlaceholder } } - \ No newline at end of file + diff --git a/src/components/search/ResultsPlaylists.vue b/src/components/search/ResultsPlaylists.vue index be9497f..dfad848 100644 --- a/src/components/search/ResultsPlaylists.vue +++ b/src/components/search/ResultsPlaylists.vue @@ -13,15 +13,16 @@ >
-
get_app -
+

{{ release.title }}

@@ -43,4 +44,4 @@ export default { BaseLoadingPlaceholder } } - \ No newline at end of file +