From 1cd84d39e9e02e6bf202abf89e1d967ef4a1dc3f Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Mon, 2 Nov 2020 22:53:21 +0100 Subject: [PATCH] fix: incorrect style --- public/js/bundle.js | 2 +- src/components/pages/Settings.vue | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/js/bundle.js b/public/js/bundle.js index 1c25e14..999e54a 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -27,4 +27,4 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:a});else * vue-router v3.4.8 * (c) 2020 Evan You * @license MIT - */function vc(e,t){for(var a in t)e[a]=t[a];return e}var bc=/[!'()*]/g,yc=function(e){return"%"+e.charCodeAt(0).toString(16)},kc=/%2C/g,_c=function(e){return encodeURIComponent(e).replace(bc,yc).replace(kc,",")};function wc(e){try{return decodeURIComponent(e)}catch(e){}return e}var Ac=function(e){return null==e||"object"==typeof e?e:String(e)};function xc(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var a=e.replace(/\+/g," ").split("="),n=wc(a.shift()),i=a.length>0?wc(a.join("=")):null;void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]})),t):t}function zc(e){var t=e?Object.keys(e).map((function(t){var a=e[t];if(void 0===a)return"";if(null===a)return _c(t);if(Array.isArray(a)){var n=[];return a.forEach((function(e){void 0!==e&&(null===e?n.push(_c(t)):n.push(_c(t)+"="+_c(e)))})),n.join("&")}return _c(t)+"="+_c(a)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var Cc=/\/?$/;function Sc(e,t,a,n){var i=n&&n.options.stringifyQuery,r=t.query||{};try{r=Tc(r)}catch(e){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:r,params:t.params||{},fullPath:Dc(t,i),matched:e?Fc(e):[]};return a&&(s.redirectedFrom=Dc(a,i)),Object.freeze(s)}function Tc(e){if(Array.isArray(e))return e.map(Tc);if(e&&"object"==typeof e){var t={};for(var a in e)t[a]=Tc(e[a]);return t}return e}var Mc=Sc(null,{path:"/"});function Fc(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Dc(e,t){var a=e.path,n=e.query;void 0===n&&(n={});var i=e.hash;return void 0===i&&(i=""),(a||"/")+(t||zc)(n)+i}function Pc(e,t){return t===Mc?e===t:!!t&&(e.path&&t.path?e.path.replace(Cc,"")===t.path.replace(Cc,"")&&e.hash===t.hash&&Nc(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&Nc(e.query,t.query)&&Nc(e.params,t.params)))}function Nc(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var a=Object.keys(e).sort(),n=Object.keys(t).sort();return a.length===n.length&&a.every((function(a,i){var r=e[a];if(n[i]!==a)return!1;var s=t[a];return null==r||null==s?r===s:"object"==typeof r&&"object"==typeof s?Nc(r,s):String(r)===String(s)}))}function Lc(e){for(var t=0;t=0&&(t=e.slice(n),e=e.slice(0,n));var i=e.indexOf("?");return i>=0&&(a=e.slice(i+1),e=e.slice(0,i)),{path:e,query:a,hash:t}}(i.path||""),c=t&&t.path||"/",d=l.path?Rc(l.path,c,a||i.append):c,u=function(e,t,a){void 0===t&&(t={});var n,i=a||xc;try{n=i(e||"")}catch(e){n={}}for(var r in t){var s=t[r];n[r]=Array.isArray(s)?s.map(Ac):Ac(s)}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 rd,sd=function(){},od={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(e){var t=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,m=null==this.activeClass?u:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,f=s.redirectedFrom?Sc(null,id(s.redirectedFrom),null,a):s;l[h]=Pc(n,f),l[m]=this.exact?l[h]:function(e,t){return 0===e.path.replace(Cc,"/").indexOf(t.path.replace(Cc,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var a in t)if(!(a in e))return!1;return!0}(e.query,t.query)}(n,f);var g=l[h]?this.ariaCurrentValue:null,v=function(e){ld(e)&&(t.replace?a.replace(r,sd):a.push(r,sd))},b={click:ld};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=v})):b[this.event]=v;var y={class:l},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:v,isActive:l[m],isExactActive:l[h]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)y.on=b,y.attrs={href:o,"aria-current":g};else{var _=cd(this.$slots.default);if(_){_.isStatic=!1;var w=_.data=vc({},_.data);for(var A in w.on=w.on||{},w.on){var x=w.on[A];A in b&&(w.on[A]=Array.isArray(x)?x:[x])}for(var z in b)z in w.on?w.on[z].push(b[z]):w.on[z]=v;var C=_.data.attrs=vc({},_.data.attrs);C.href=o,C["aria-current"]=g}else y.on=b}return e(this.tag,y,this.$slots.default)}};function ld(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cd(e){if(e)for(var t,a=0;a-1&&(o.params[p]=a.params[p]);return o.path=nd(d.path,o.params),l(d,o,s)}if(o.path){o.params={};for(var m=0;m=e.length?a():e[i]?t(e[i],(function(){n(i+1)})):n(i+1)};n(0)}var $d={redirected:2,aborted:4,cancelled:8,duplicated:16};function Rd(e,t){return jd(e,t,$d.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Od.forEach((function(a){a in e&&(t[a]=e[a])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function Id(e,t){return jd(e,t,$d.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function jd(e,t,a,n){var i=new Error(n);return i._isRouter=!0,i.from=e,i.to=t,i.type=a,i}var Od=["params","query","hash"];function Ed(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Bd(e,t){return Ed(e)&&e._isRouter&&(null==t||e.type===t)}function qd(e){return function(t,a,n){var i=!1,r=0,s=null;Vd(e,(function(e,t,a,o){if("function"==typeof e&&void 0===e.cid){i=!0,r++;var l,c=Wd((function(t){var i;((i=t).__esModule||Hd&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:rd.extend(t),a.components[o]=t,--r<=0&&n()})),d=Wd((function(e){var t="Failed to resolve async component "+o+": "+e;s||(s=Ed(e)?e:new Error(t),n(s))}));try{l=e(c,d)}catch(e){d(e)}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 Vd(e,t){return Gd(e.map((function(e){return Object.keys(e.components).map((function(a){return t(e.components[a],e.instances[a],e,a)}))})))}function Gd(e){return Array.prototype.concat.apply([],e)}var Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Wd(e){var t=!1;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];if(!t)return t=!0,e.apply(this,a)}}var Kd=function(e,t){this.router=e,this.base=function(e){if(!e)if(dd){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=Mc,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Yd(e,t,a,n){var i=Vd(e,(function(e,n,i,r){var s=function(e,t){"function"!=typeof e&&(e=rd.extend(e));return e.options[t]}(e,t);if(s)return Array.isArray(s)?s.map((function(e){return a(e,n,i,r)})):a(s,n,i,r)}));return Gd(n?i.reverse():i)}function Qd(e,t){if(t)return function(){return e.apply(t,arguments)}}Kd.prototype.listen=function(e){this.cb=e},Kd.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Kd.prototype.onError=function(e){this.errorCbs.push(e)},Kd.prototype.transitionTo=function(e,t,a){var n,i=this;try{n=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var r=this.current;this.confirmTransition(n,(function(){i.updateRoute(n),t&&t(n),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(n,r)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(n)})))}),(function(e){a&&a(e),e&&!i.ready&&(Bd(e,$d.redirected)&&r===Mc||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},Kd.prototype.confirmTransition=function(e,t,a){var n=this,i=this.current;this.pending=e;var r=function(e){!Bd(e)&&Ed(e)&&(n.errorCbs.length?n.errorCbs.forEach((function(t){t(e)})):console.error(e)),a&&a(e)},s=e.matched.length-1,o=i.matched.length-1;if(Pc(e,i)&&s===o&&e.matched[s]===i.matched[o])return this.ensureURL(),r(function(e,t){var a=jd(e,t,$d.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return a.name="NavigationDuplicated",a}(i,e));var l=function(e,t){var a,n=Math.max(e.length,t.length);for(a=0;a0)){var t=this.router,a=t.options.scrollBehavior,n=Pd&&a;n&&this.listeners.push(wd());var i=function(){var a=e.current,i=Zd(e.base);e.current===Mc&&i===e._startLocation||e.transitionTo(i,(function(e){n&&Ad(t,e,a,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){Nd(Ic(n.base+e.fullPath)),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.replace=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){Ld(Ic(n.base+e.fullPath)),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.ensureURL=function(e){if(Zd(this.base)!==this.current.fullPath){var t=Ic(this.base+this.current.fullPath);e?Nd(t):Ld(t)}},t.prototype.getCurrentLocation=function(){return Zd(this.base)},t}(Kd);function Zd(e){var t=window.location.pathname;return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Xd=function(e){function t(t,a,n){e.call(this,t,a),n&&function(e){var t=Zd(e);if(!/^\/#/.test(t))return window.location.replace(Ic(e+"/#"+t)),!0}(this.base)||eu()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,a=Pd&&t;a&&this.listeners.push(wd());var n=function(){var t=e.current;eu()&&e.transitionTo(tu(),(function(n){a&&Ad(e.router,n,t,!0),Pd||iu(n.fullPath)}))},i=Pd?"popstate":"hashchange";window.addEventListener(i,n),this.listeners.push((function(){window.removeEventListener(i,n)}))}},t.prototype.push=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){nu(e.fullPath),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.replace=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){iu(e.fullPath),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;tu()!==t&&(e?nu(t):iu(t))},t.prototype.getCurrentLocation=function(){return tu()},t}(Kd);function eu(){var e=tu();return"/"===e.charAt(0)||(iu("/"+e),!1)}function tu(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function au(e){var t=window.location.href,a=t.indexOf("#");return(a>=0?t.slice(0,a):t)+"#"+e}function nu(e){Pd?Nd(au(e)):window.location.hash=e}function iu(e){Pd?Ld(au(e)):window.location.replace(au(e))}var ru=function(e){function t(t,a){e.call(this,t,a),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,a){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index+1).concat(e),n.index++,t&&t(e)}),a)},t.prototype.replace=function(e,t,a){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index).concat(e),t&&t(e)}),a)},t.prototype.go=function(e){var t=this,a=this.index+e;if(!(a<0||a>=this.stack.length)){var n=this.stack[a];this.confirmTransition(n,(function(){var e=t.current;t.index=a,t.updateRoute(n),t.router.afterHooks.forEach((function(t){t&&t(n,e)}))}),(function(e){Bd(e,$d.duplicated)&&(t.index=a)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Kd),su=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=hd(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Pd&&!1!==e.fallback,this.fallback&&(t="hash"),dd||(t="abstract"),this.mode=t,t){case"history":this.history=new Jd(this,e.base);break;case"hash":this.history=new Xd(this,e.base,this.fallback);break;case"abstract":this.history=new ru(this,e.base)}},ou={currentRoute:{configurable:!0}};function lu(e,t){return e.push(t),function(){var a=e.indexOf(t);a>-1&&e.splice(a,1)}}su.prototype.match=function(e,t,a){return this.matcher.match(e,t,a)},ou.currentRoute.get=function(){return this.history&&this.history.current},su.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var a=t.apps.indexOf(e);a>-1&&t.apps.splice(a,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var a=this.history;if(a instanceof Jd||a instanceof Xd){var n=function(e){a.setupListeners(),function(e){var n=a.current,i=t.options.scrollBehavior;Pd&&i&&"fullPath"in e&&Ad(t,e,n,!1)}(e)};a.transitionTo(a.getCurrentLocation(),n,n)}a.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},su.prototype.beforeEach=function(e){return lu(this.beforeHooks,e)},su.prototype.beforeResolve=function(e){return lu(this.resolveHooks,e)},su.prototype.afterEach=function(e){return lu(this.afterHooks,e)},su.prototype.onReady=function(e,t){this.history.onReady(e,t)},su.prototype.onError=function(e){this.history.onError(e)},su.prototype.push=function(e,t,a){var n=this;if(!t&&!a&&"undefined"!=typeof Promise)return new Promise((function(t,a){n.history.push(e,t,a)}));this.history.push(e,t,a)},su.prototype.replace=function(e,t,a){var n=this;if(!t&&!a&&"undefined"!=typeof Promise)return new Promise((function(t,a){n.history.replace(e,t,a)}));this.history.replace(e,t,a)},su.prototype.go=function(e){this.history.go(e)},su.prototype.back=function(){this.go(-1)},su.prototype.forward=function(){this.go(1)},su.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},su.prototype.resolve=function(e,t,a){var n=id(e,t=t||this.history.current,a,this),i=this.match(n,t),r=i.redirectedFrom||i.fullPath;return{location:n,route:i,href:function(e,t,a){var n="hash"===a?"#"+t:t;return e?Ic(e+"/"+n):n}(this.history.base,r,this.mode),normalizedTo:n,resolved:i}},su.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Mc&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(su.prototype,ou),su.install=function e(t){if(!e.installed||rd!==t){e.installed=!0,rd=t;var a=function(e){return void 0!==e},n=function(e,t){var n=e.$options._parentVnode;a(n)&&a(n=n.data)&&a(n=n.registerRouteInstance)&&n(e,t)};t.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.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(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",Uc),t.component("RouterLink",od);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},su.version="3.4.8",su.isNavigationFailure=Bd,su.NavigationFailureType=$d,dd&&window.Vue&&window.Vue.use(su);var cu=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="About.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",attrs:{id:"about_tab"}},[a("h1",{staticClass:"mb-8 text-5xl capitalize"},[e._v(e._s(e.$t("sidebar.about")))]),e._v(" "),a("ul",[a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.updates.currentVersion"))+":\n\t\t\t"),a("span",[e._v(e._s(e.current||e.$t("about.updates.versionNotAvailable")))])]),e._v(" "),a("li",[e._v(e._s(e.$t("about.updates.deemixVersion"))+": "+e._s(e.deemixVersion))]),e._v(" "),e.updateAvailable&&e.latest?a("li",[e._v(e._s(e.$t("about.updates.updateAvailable",{version:e.latest})))]):e._e()]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.usesLibrary"))}}),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.thanks"))}}),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.upToDate"))}})]),e._v(" "),a("h2",[e._v(e._s(e.$t("about.titles.usefulLinks")))]),e._v(" "),a("ul",{staticClass:"no-dots"},[a("li",[a("a",{attrs:{href:"https://git.fuwafuwa.moe/RemixDev/deemix",target:"_blank"}},[e._v("🚀 "+e._s(e.$t("about.officialRepo")))])]),e._v(" "),a("li",[a("a",{attrs:{href:"https://git.fuwafuwa.moe/RemixDev/deemix-webui",target:"_blank"}},[e._v("\n\t\t\t\t💻 "+e._s(e.$t("about.officialWebuiRepo"))+"\n\t\t\t")])]),e._v(" "),a("li",[a("a",{attrs:{href:"https://www.reddit.com/r/deemix",target:"_blank"}},[e._v("🤖 "+e._s(e.$t("about.officialSubreddit")))])]),e._v(" "),a("li",[a("a",{attrs:{href:"https://t.me/RemixDevNews",target:"_blank"}},[e._v("📰 "+e._s(e.$t("about.newsChannel")))])])]),e._v(" "),a("h2",[e._v("\n\t\t"+e._s(e.$t("about.titles.bugReports"))+"\n\t\t"),a("span",{staticClass:"subheading"},[e._v("\n\t\t\t"+e._s(e.$t("about.subtitles.bugReports"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.questions"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.beforeReporting"))+"\n\t\t")]),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.beSure"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.duplicateReports"))+"\n\t\t")]),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.dontOpenIssues"))}})]),e._v(" "),a("h2",[e._v("\n\t\t"+e._s(e.$t("about.titles.contributing"))+"\n\t\t"),a("span",{staticClass:"subheading"},[e._v("\n\t\t\t"+e._s(e.$t("about.subtitles.contributing"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.newUI"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.acceptFeatures"))+"\n\t\t")]),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.contributeWebUI"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.otherLanguages"))+"\n\t\t")]),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.understandingCode"))+"\n\t\t")])]),e._v(" "),a("h2",[e._v("\n\t\t"+e._s(e.$t("about.titles.donations"))+"\n\t\t"),a("span",{staticClass:"subheading"},[e._v("\n\t\t\t"+e._s(e.$t("about.subtitles.donations"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.itsFree"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.notObligated"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",[a("i",{domProps:{innerHTML:e._s(e.paypal)}}),e._v(" "),a("strong",[e._v("PayPal:")]),e._v(" "),a("a",{attrs:{href:"https://paypal.me/RemixDev",target:"_blank"}},[e._v("PayPal.me/RemixDev")])]),e._v(" "),a("li",[a("i",{staticClass:"ethereum",domProps:{innerHTML:e._s(e.ethereum)}}),e._v(" "),a("strong",[e._v("Ethereum:")]),e._v(" 0x1d2aa67e671485CD4062289772B662e0A6Ff976c\n\t\t")])]),e._v(" "),a("h2",[e._v(e._s(e.$t("about.titles.license")))]),e._v(" "),e._m(0),e._v(" "),a("p",{domProps:{innerHTML:e._s(e.$t("about.lincensedUnder"))}})])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[t("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[t("img",{staticStyle:{"border-width":"0"},attrs:{alt:"GNU General Public License",src:"https://www.gnu.org/graphics/gplv3-127x51.png"}})])])}]},(function(e){e&&e("data-v-209eee54_0",{source:"@charset \"UTF-8\";a[data-v-209eee54],li[data-v-209eee54],p[data-v-209eee54]{letter-spacing:.4px;font-size:20px;line-height:1.2}i[data-v-209eee54]{vertical-align:middle}i[data-v-209eee54] svg{fill:#fff;width:20px}.ethereum[data-v-209eee54] svg{fill:var(--foreground)}[data-v-209eee54]:link{text-decoration:none}#about_tab[data-v-209eee54]{margin-bottom:40px}h2[data-v-209eee54]{text-transform:capitalize}h2[data-v-209eee54]:not(.page_heading){font-size:2rem;border-bottom:1px solid rgba(51,51,51,.25);padding-top:2rem;padding-bottom:1rem}h2 .subheading[data-v-209eee54]{display:block;font-size:.5em;margin-top:.5em;font-weight:400;opacity:.8;text-transform:none}p[data-v-209eee54]{margin:0!important}ul li[data-v-209eee54]{margin-bottom:7px}h2+ul[data-v-209eee54]{margin-top:1rem}ul+ul[data-v-209eee54]{margin-top:1.25rem}ul.no-dots[data-v-209eee54]{list-style-type:none}ul[data-v-209eee54]:not(.no-dots){list-style-type:none}ul:not(.no-dots) li[data-v-209eee54]{position:relative}ul:not(.no-dots) li[data-v-209eee54]::before{content:'—';position:absolute;left:-30px;opacity:.25}",map:void 0,media:void 0})}),{data:()=>({paypal:'\r\n\x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n',ethereum:'',current:null,latest:null,updateAvailable:!1,deemixVersion:null}),computed:{...Fo(["getAboutInfo"])},methods:{initUpdate(e){const{currentCommit:t,latestCommit:a,updateAvailable:n,deemixVersion:i}=e;this.current=t,this.latest=a,this.updateAvailable=n,this.deemixVersion=i}},mounted(){this.initUpdate(this.getAboutInfo)}},"data-v-209eee54",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),i.map&&(a+="\n/*# sourceURL="+i.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}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 e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}})),du="object"==typeof global&&global&&global.Object===Object&&global,uu="object"==typeof self&&self&&self.Object===Object&&self,pu=du||uu||Function("return this")(),mu=pu.Symbol,hu=Object.prototype,fu=hu.hasOwnProperty,gu=hu.toString,vu=mu?mu.toStringTag:void 0;var bu=Object.prototype.toString;var yu=mu?mu.toStringTag:void 0;function ku(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yu&&yu in Object(e)?function(e){var t=fu.call(e,vu),a=e[vu];try{e[vu]=void 0;var n=!0}catch(e){}var i=gu.call(e);return n&&(t?e[vu]=a:delete e[vu]),i}(e):function(e){return bu.call(e)}(e)}function _u(e){return null!=e&&"object"==typeof e}function wu(e){return"symbol"==typeof e||_u(e)&&"[object Symbol]"==ku(e)}function Au(e,t){for(var a=-1,n=null==e?0:e.length,i=Array(n);++a-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Ku(e){return null!=e&&Wu(e.length)&&!Fu(e)}var Yu=Object.prototype;function Qu(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yu)}function Ju(e){return _u(e)&&"[object Arguments]"==ku(e)}var Zu=Object.prototype,Xu=Zu.hasOwnProperty,ep=Zu.propertyIsEnumerable,tp=Ju(function(){return arguments}())?Ju:function(e){return _u(e)&&Xu.call(e,"callee")&&!ep.call(e,"callee")};var ap="object"==typeof exports&&exports&&!exports.nodeType&&exports,np=ap&&"object"==typeof module&&module&&!module.nodeType&&module,ip=np&&np.exports===ap?pu.Buffer:void 0,rp=(ip?ip.isBuffer:void 0)||function(){return!1},sp={};function op(e){return function(t){return e(t)}}sp["[object Float32Array]"]=sp["[object Float64Array]"]=sp["[object Int8Array]"]=sp["[object Int16Array]"]=sp["[object Int32Array]"]=sp["[object Uint8Array]"]=sp["[object Uint8ClampedArray]"]=sp["[object Uint16Array]"]=sp["[object Uint32Array]"]=!0,sp["[object Arguments]"]=sp["[object Array]"]=sp["[object ArrayBuffer]"]=sp["[object Boolean]"]=sp["[object DataView]"]=sp["[object Date]"]=sp["[object Error]"]=sp["[object Function]"]=sp["[object Map]"]=sp["[object Number]"]=sp["[object Object]"]=sp["[object RegExp]"]=sp["[object Set]"]=sp["[object String]"]=sp["[object WeakMap]"]=!1;var lp="object"==typeof exports&&exports&&!exports.nodeType&&exports,cp=lp&&"object"==typeof module&&module&&!module.nodeType&&module,dp=cp&&cp.exports===lp&&du.process,up=function(){try{var e=cp&&cp.require&&cp.require("util").types;return e||dp&&dp.binding&&dp.binding("util")}catch(e){}}(),pp=up&&up.isTypedArray,mp=pp?op(pp):function(e){return _u(e)&&Wu(e.length)&&!!sp[ku(e)]},hp=Object.prototype.hasOwnProperty;function fp(e,t){var a=xu(e),n=!a&&tp(e),i=!a&&!n&&rp(e),r=!a&&!n&&!i&&mp(e),s=a||n||i||r,o=s?function(e,t){for(var a=-1,n=Array(e);++a-1},Dp.prototype.set=function(e,t){var a=this.__data__,n=Mp(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this};var Pp=Bu(pu,"Map");function Np(e,t){var a,n,i=e.__data__;return("string"==(n=typeof(a=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?i["string"==typeof t?"string":"hash"]:i.map}function Lp(e){var t=-1,a=null==e?0:e.length;for(this.clear();++to))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var d=-1,u=!0,p=2&a?new im:void 0;for(r.set(e,t),r.set(t,e);++dt||r&&s&&l&&!o&&!c||n&&s&&l||!a&&l||!i)return 1;if(!n&&!r&&!c&&e=o?l:l*("desc"==a[n]?-1:1)}return e.index-t.index}(e,t,a)}))}function Fm(e,t,a,n){return null==e?[]:(xu(t)||(t=null==t?[]:[t]),xu(a=n?void 0:a)||(a=null==a?[]:[a]),Mm(e,t,a))}var Dm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Artist.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"relative image-header",attrs:{id:"artist_tab"}},[a("header",{staticClass:"flex items-center",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[a("h1",{staticClass:"m-0"},[e._v(e._s(e.title))]),e._v(" "),a("div",{staticClass:"rounded-full bg-primary text-grayscale-870 cursor-pointer w-16 h-16 grid place-items-center ml-auto",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"material-icons text-4xl",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),a("div",{staticClass:"my-4"},e._l(e.body,(function(t,n){return a("button",{key:n,staticClass:"mr-2 btn bg-background-main",class:{"btn-primary":n===e.currentTab},attrs:{href:"#artist_"+n},on:{click:function(t){return e.changeTab(n)}}},[e._v("\n\t\t\t"+e._s(e.$tc("globals.listTabs."+n,2))+"\n\t\t")])})),0),e._v(" "),a("table",{staticClass:"table"},[a("thead",[a("tr",e._l(e.head,(function(t){return a("th",{class:{"sort-asc":t.sortKey==e.sortKey&&"asc"==e.sortOrder,"sort-desc":t.sortKey==e.sortKey&&"desc"==e.sortOrder,sortable:t.sortKey,clickable:t.sortKey},style:{width:t.width?t.width:"auto"},on:{click:function(a){t.sortKey&&e.sortBy(t.sortKey)}}},[e._v("\n\t\t\t\t\t"+e._s(t.title)+"\n\t\t\t\t")])})),0)]),e._v(" "),a("tbody",e._l(e.showTable,(function(t){return a("tr",{key:t.id},[a("router-link",{staticClass:"flex items-center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.id}}}},[a("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:t.cover_small}}),e._v(" "),t.explicit_lyrics?a("i",{staticClass:"material-icons explicit-icon"},[e._v(" explicit ")]):e._e(),e._v("\n\t\t\t\t\t"+e._s(t.title)+"\n\t\t\t\t\t"),e.checkNewRelease(t.release_date)?a("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[e._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):e._e()]),e._v(" "),a("td",[e._v(e._s(t.release_date))]),e._v(" "),a("td",[e._v(e._s(t.nb_song))]),e._v(" "),a("td",{staticClass:"clickable",attrs:{"data-link":t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v(" file_download ")])])],1)})),0)])])},staticRenderFns:[]},0,{data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),computed:{showTable(){return this.body?"nb_song"==this.sortKey?Fm(this.body[this.currentTab],(function(e){return new Number(e.nb_song)}),this.sortOrder):Fm(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){Go.on("show_artist",this.showArtist),il.$on("artistTab:updateSelected",this.updateSelected),il.$on("artistTab:changeTab",this.changeTab)},methods:{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(e){e.stopPropagation(),Ko.sendAddToQueue(e.currentTarget.dataset.link)},sortBy(e){e==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=e,this.sortOrder="asc")},changeTab(e){this.currentTab=e},updateSelected(){},checkNewRelease(e){let t=new Date,a=new Date(e);return a.setDate(a.getDate()+3),t.setHours(0,0,0,0),t.getTime()<=a.getTime()},showArtist(e){this.reset();const{name:t,picture_xl:a,id:n,releases:i}=e;this.title=t,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"}],Sm(i)?this.body=null:this.body=i}}},undefined,!1);let Pm={},Nm=!1;function Lm(){return Nm?Pm:(Go.emit("get_charts_data"),new Promise(((e,t)=>{Go.on("init_charts",(t=>{Pm=t,Nm=!0,Go.off("init_charts"),e(t)}))})))}var Um=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="PreviewControls.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{staticClass:"absolute top-0 right-0 flex items-center justify-center w-full h-full text-center transition-opacity duration-200 ease-in-out bg-black bg-opacity-50 rounded opacity-0 material-icons preview_controls",attrs:{title:e.$t("globals.play_hint")},on:{mouseenter:e.previewMouseEnter,mouseleave:e.previewMouseLeave}},[e._v("\n\tplay_arrow\n")])},staticRenderFns:[]},0,{methods:{previewMouseEnter(e){il.$emit("trackPreview:previewMouseEnter",e)},previewMouseLeave(e){il.$emit("trackPreview:previewMouseLeave",e)}}},undefined,!1);var $m=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Charts.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h1",{staticClass:"mb-8 text-5xl"},[e._v(e._s(e.$t("charts.title")))]),e._v(" "),""===e.country?a("div",[a("div",{staticClass:"release_grid charts_grid"},e._l(e.countries,(function(t){return a("div",{key:t.id,staticClass:"w-40 h-40 release clickable",attrs:{role:"button","aria-label":t.title,"data-title":t.title,"data-id":t.id},on:{click:e.getTrackList}},[a("img",{staticClass:"w-full rounded coverart",attrs:{src:t.picture_medium}})])})),0)]):a("div",[a("button",{staticClass:"btn btn-primary",on:{click:e.onChangeCountry}},[e._v(e._s(e.$t("charts.changeCountry")))]),e._v(" "),a("button",{staticClass:"btn btn-primary",attrs:{"data-link":"https://www.deezer.com/playlist/"+e.id},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(e.$t("charts.download"))+"\n\t\t")]),e._v(" "),a("table",{staticClass:"table table--charts"},[a("tbody",e._l(e.chart,(function(t){return a("tr",{staticClass:"track_row"},[a("td",{staticClass:"p-3 text-center cursor-default",class:{first:1===t.position}},[e._v("\n\t\t\t\t\t\t"+e._s(t.position)+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__icon table__icon--big"},[a("a",{staticClass:"rounded",class:{"single-cover":t.preview},attrs:{href:"#","data-preview":t.preview},on:{click:e.playPausePreview}},[t.preview?a("PreviewControls"):e._e(),e._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:t.album.cover_small}})],1)]),e._v(" "),a("td",{staticClass:"table__cell--large"},[e._v("\n\t\t\t\t\t\t"+e._s(t.title+(t.title_version&&-1==t.title.indexOf(t.title_version)?" "+t.title_version:""))+"\n\t\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artist.id}}}},[e._v("\n\t\t\t\t\t\t"+e._s(t.artist.name)+"\n\t\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.album.id}}}},[e._v("\n\t\t\t\t\t\t"+e._s(t.album.title)+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__cell--small table__cell--center"},[e._v("\n\t\t\t\t\t\t"+e._s(e.convertDuration(t.duration))+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"cursor-pointer group",attrs:{"data-link":t.link,role:"button","aria-label":"download"},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"transition-colors duration-150 ease-in-out material-icons group-hover:text-primary",attrs:{title:e.$t("globals.download_hint")}},[e._v("\n\t\t\t\t\t\t\tget_app\n\t\t\t\t\t\t")])])],1)})),0)])])])},staticRenderFns:[]},0,{components:{PreviewControls:Um},data:()=>({country:"",id:0,countries:[],chart:[]}),computed:{worldwideRelease(){return this.countries.filter((e=>"Worldwide"===e.title))[0]}},async created(){Go.on("setChartTracks",this.setTracklist),this.$on("hook:destroyed",(()=>{Go.off("setChartTracks")}));let e,t=await Lm();t=t.filter((t=>("Worldwide"===t.title&&(e=t),"Worldwide"!==t.title))),t.unshift(e),this.initCharts(t)},methods:{convertDuration:Qo,playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)},addToQueue(e){e.stopPropagation(),Wo(e.currentTarget.dataset.link)},getTrackList(e){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:t}},currentTarget:{dataset:{id:a}}}=e;this.country=t,localStorage.setItem("chart",this.country),this.id=a,Go.emit("getChartTracks",this.id)},setTracklist(e){this.chart=e},onChangeCountry(){this.country="",this.id=0},initCharts(e){if(this.countries=e,this.country=localStorage.getItem("chart")||"",!this.country)return;let t=0;for(;t{Go.on("init_favorites",(t=>{Im=t,jm=!0,Go.off("init_favorites"),e(t)}))})))}var Em=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="CoverContainer.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cover_container"},[a("img",{staticClass:"coverart",class:{rounded:e.isRounded,circle:e.isCircle},attrs:{"aria-hidden":"true",src:e.cover}}),e._v(" "),a("button",e._g({staticClass:"bg-black download_overlay hover:bg-primary",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"}},e.$listeners),[a("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])])},staticRenderFns:[]},0,{inheritAttrs:!1,props:{cover:{type:String,reqired:!0},isRounded:{type:Boolean,required:!1},isCircle:{type:Boolean,required:!1},link:{type:String,reqired:!0}}},undefined,!1);var Bm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="Favorites.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h1",{staticClass:"mb-8 text-5xl"},[e._v("\n\t\t"+e._s(e.$t("favorites.title"))+"\n\t\t"),a("div",{ref:"reloadButton",staticClass:"inline-block clickable reload-button",attrs:{role:"button","aria-label":"reload"},on:{click:e.reloadTabs}},[a("i",{staticClass:"material-icons"},[e._v("sync")])])]),e._v(" "),a("ul",{staticClass:"section-tabs"},e._l(e.tabs,(function(t){return a("li",{key:t,staticClass:"section-tabs__tab favorites_tablinks",class:{active:e.activeTab===t},on:{click:function(a){e.activeTab=t}}},[e._v("\n\t\t\t"+e._s(e.$tc("globals.listTabs."+t,2))+"\n\t\t")])})),0),e._v(" "),e.activeTabEmpty?e._e():a("button",{staticClass:"btn btn-primary",staticStyle:{"margin-bottom":"2rem"},on:{click:e.downloadAllOfType}},[e._v("\n\t\t"+e._s(e.$t("globals.download",{thing:e.$tc("globals.listTabs."+e.activeTab+"N",e.getTabLenght())}))+"\n\t")]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"playlist"===e.activeTab}},[0==e.playlists.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noPlaylists")))])]):e._e(),e._v(" "),e.playlists.length>0||e.spotifyPlaylists>0?a("div",{staticClass:"release_grid"},[e._l(e.playlists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Playlist",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.creator.name})+" - "+e.$tc("globals.listTabs.trackN",t.nb_tracks))+"\n\t\t\t\t")])],1)})),e._v(" "),e._l(e.spotifyPlaylists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Spotify Playlist",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.creator.name})+" - "+e.$tc("globals.listTabs.trackN",t.nb_tracks))+"\n\t\t\t\t")])],1)}))],2):e._e()]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"album"===e.activeTab}},[0==e.albums.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noAlbums")))])]):e._e(),e._v(" "),e.albums.length>0?a("div",{staticClass:"release_grid"},[e._l(e.albums,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Album",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.cover_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))])],1)})),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v(e._s(""+e.$t("globals.by",{artist:e.release.artist.name})))])],2):e._e()]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"artist"===e.activeTab}},[0==e.artists.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noArtists")))])]):e._e(),e._v(" "),e.artists.length>0?a("div",{staticClass:"release_grid"},e._l(e.artists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Artist",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-circle":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.name))])],1)})),1):e._e()]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"track"===e.activeTab}},[0==e.tracks.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noTracks")))])]):e._e(),e._v(" "),e.tracks.length>0?a("table",{staticClass:"table"},e._l(e.tracks,(function(t){return a("tr",{staticClass:"track_row"},[a("td",{staticClass:"p-3 text-center cursor-default",class:{first:1===t.position}},[e._v("\n\t\t\t\t\t"+e._s(t.position)+"\n\t\t\t\t")]),e._v(" "),a("td",[a("a",{staticClass:"rounded",class:{"single-cover":!!t.preview},attrs:{href:"#","data-preview":t.preview},on:{click:e.playPausePreview}},[t.preview?a("PreviewControls"):e._e(),e._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:t.album.cover_small}})],1)]),e._v(" "),a("td",{staticClass:"table__cell--large"},[e._v("\n\t\t\t\t\t"+e._s(t.title+(t.title_version&&-1==t.title.indexOf(t.title_version)?" "+t.title_version:""))+"\n\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artist.id}}}},[e._v("\n\t\t\t\t\t"+e._s(t.artist.name)+"\n\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.album.id}}}},[e._v("\n\t\t\t\t\t"+e._s(t.album.title)+"\n\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__cell--small"},[e._v("\n\t\t\t\t\t"+e._s(e.convertDuration(t.duration))+"\n\t\t\t\t")]),e._v(" "),a("td",{staticClass:"cursor-pointer group",attrs:{"data-link":t.link,role:"button","aria-label":"download"},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",{staticClass:"transition-colors duration-150 ease-in-out material-icons group-hover:text-primary",attrs:{title:e.$t("globals.download_hint")}},[e._v("\n\t\t\t\t\t\t\tget_app\n\t\t\t\t\t\t")])])])],1)})),0):e._e()])])},staticRenderFns:[]},(function(e){e&&e("data-v-d90a7276_0",{source:".favorites_tabcontent[data-v-d90a7276]{display:none}.favorites_tabcontent--active[data-v-d90a7276]{display:block}.reload-button.spin i[data-v-d90a7276]{animation:spin .5s infinite ease-out reverse}",map:void 0,media:void 0})}),{components:{PreviewControls:Um,CoverContainer:Em},data:()=>({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[],activeTab:"playlist",tabs:["playlist","album","artist","track"]}),computed:{activeTabEmpty(){return 0===this.getActiveRelease().length}},async created(){const e=await Om();0!==Object.entries(e).length&&this.setFavorites(e)},mounted(){Go.on("updated_userFavorites",this.updated_userFavorites),Go.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),Go.on("updated_userPlaylists",this.updated_userPlaylists),Go.on("updated_userAlbums",this.updated_userAlbums),Go.on("updated_userArtist",this.updated_userArtist),Go.on("updated_userTracks",this.updated_userTracks),this.$on("hook:destroyed",(()=>{Go.off("updated_userFavorites"),Go.off("updated_userSpotifyPlaylists"),Go.off("updated_userPlaylists"),Go.off("updated_userAlbums"),Go.off("updated_userArtist"),Go.off("updated_userTracks")}))},methods:{playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)},convertDuration:Qo,downloadAllOfType(){try{let e=this.getActiveRelease();if("track"===this.activeTab){Wo(this.getLovedTracksPlaylist().link)}else Wo(function(e){let t=[];return e.forEach((e=>{t.push(e.link)})),t.join(";")}(e))}catch(e){console.error(e.message)}},addToQueue(e){Wo(e.currentTarget.dataset.link)},updated_userSpotifyPlaylists(e){this.spotifyPlaylists=e},updated_userPlaylists(e){this.playlists=e},updated_userAlbums(e){this.albums=e},updated_userArtist(e){this.artists=e},updated_userTracks(e){this.tracks=e},reloadTabs(){this.$refs.reloadButton.classList.add("spin"),Go.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&Go.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(e){this.setFavorites(e),this.$refs.reloadButton.addEventListener("animationiteration",(()=>{this.$refs.reloadButton.classList.remove("spin"),bl(this.$t("toasts.refreshFavs"),"done",!0)}),{once:!0})},setFavorites(e){const{tracks:t,albums:a,artists:n,playlists:i}=e;this.tracks=t,this.albums=a,this.artists=n,this.playlists=i},getActiveRelease(e=this.activeTab){let t;switch(e){case"playlist":t=this.playlists;break;case"album":t=this.albums;break;case"artist":t=this.artists;break;case"track":t=this.tracks}return t},getTabLenght(e=this.activeTab){return this[e+"s"].length},getLovedTracksPlaylist(){let e=this.playlists.filter((e=>e.is_loved_track));if(0!==e.length)return e[0];throw new Error("No loved tracks playlist!")}}},"data-v-d90a7276",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),i.map&&(a+="\n/*# sourceURL="+i.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}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 e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));let qm={},Vm=!1;function Gm(){return Vm?qm:(Go.emit("get_home_data"),new Promise(((e,t)=>{Go.on("init_home",(t=>{qm=t,Vm=!0,Go.off("init_home"),e(t)}))})))}var Hm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Home.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"home_tab"}},[a("h1",{staticClass:"mb-8 text-5xl"},[e._v(e._s(e.$t("globals.welcome")))]),e._v(" "),e.isLoggedIn?e._e():a("section",{ref:"notLogged",staticClass:"py-6 border-0 border-t border-solid border-grayscale-500"},[a("p",{staticClass:"mb-4",attrs:{id:"home_not_logged_text"}},[e._v(e._s(e.$t("home.needTologin")))]),e._v(" "),a("router-link",{staticClass:"btn btn-primary",attrs:{tag:"button",name:"button",to:{name:"Settings"}}},[e._v("\n\t\t\t"+e._s(e.$t("home.openSettings"))+"\n\t\t")])],1),e._v(" "),e.playlists.length?a("section",{staticClass:"py-6 border-0 border-t border-solid border-grayscale-500"},[a("h2",{staticClass:"mb-6 text-3xl"},[e._v(e._s(e.$t("home.sections.popularPlaylists")))]),e._v(" "),a("div",{staticClass:"release_grid"},e._l(e.playlists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Playlist",params:{id:t.id}},tabindex:"0"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.$router.push({name:"Playlist",params:{id:t.id}})}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.user.name})+" - "+e.$tc("globals.listTabs.trackN",t.nb_tracks))+"\n\t\t\t\t")])],1)})),1)]):e._e(),e._v(" "),e.albums.length?a("section",{staticClass:"py-6 border-0 border-t border-solid border-grayscale-500"},[a("h2",{staticClass:"mb-6 text-3xl"},[e._v(e._s(e.$t("home.sections.popularAlbums")))]),e._v(" "),a("div",{staticClass:"release_grid"},e._l(e.albums,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Album",params:{id:t.id}},"data-id":t.id,tabindex:"0"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.$router.push({name:"Album",params:{id:t.id}})}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.cover_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v(e._s(""+e.$t("globals.by",{artist:t.artist.name})))])],1)})),1)]):e._e()])},staticRenderFns:[]},0,{components:{CoverContainer:Em},data:()=>({playlists:[],albums:[]}),async created(){const e=await Gm();this.initHome(e)},computed:{...Fo(["isLoggedIn"])},methods:{addToQueue(e){Wo(e.currentTarget.dataset.link)},initHome(e){const{playlists:{data:t},albums:{data:a}}=e;this.playlists=t,this.albums=a}}},undefined,!1);const Wm={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"};var Km=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="LinkAnalyzer.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"image-header",attrs:{id:"analyzer_tab"}},[a("h1",{staticClass:"mb-8 text-5xl capitalize"},[e._v(e._s(e.$t("sidebar.linkAnalyzer")))]),e._v(" "),""===e.link?a("div",[a("p",[e._v("\n\t\t\t"+e._s(e.$t("linkAnalyzer.info"))+"\n\t\t")]),e._v(" "),a("p",[e._v("\n\t\t\t"+e._s(e.$t("linkAnalyzer.useful"))+"\n\t\t")])]):"error"===e.link?a("div",[a("h2",[e._v(e._s(e.$t("linkAnalyzer.linkNotSupported")))]),e._v(" "),a("p",[e._v(e._s(e.$t("linkAnalyzer.linkNotSupportedYet")))])]):a("div",[a("header",{staticClass:"flex items-center",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[a("div",[a("h1",{staticClass:"m-0"},[e._v(e._s(e.title))]),e._v(" "),"track"===e.type?a("h2",{staticClass:"m-0 mb-3 text-lg"},[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("router-link",{staticClass:"clickable",attrs:{tag:"span",place:"artist",to:{name:"Artist",params:{id:e.data.artist.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.data.artist.name)+"\n\t\t\t\t\t\t")])],1),e._v("\n\t\t\t\t\t•\n\t\t\t\t\t"),a("i18n",{attrs:{path:"globals.in",tag:"span"}},[a("router-link",{staticClass:"clickable",attrs:{tag:"span",place:"album",to:{name:"Album",params:{id:e.data.album.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.data.album.title)+"\n\t\t\t\t\t\t")])],1)],1):"album"===e.type?a("h2",{staticClass:"m-0 mb-3 text-lg"},[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("router-link",{staticClass:"clickable",attrs:{tag:"span",place:"artist",to:{name:"Artist",params:{id:e.data.artist.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.data.artist.name)+"\n\t\t\t\t\t\t")])],1),e._v("\n\t\t\t\t\t"+e._s(" • "+e.$tc("globals.listTabs.trackN",e.data.nb_tracks))+"\n\t\t\t\t")],1):e._e()]),e._v(" "),a("div",{staticClass:"rounded-full bg-primary text-grayscale-870 cursor-pointer w-16 h-16 grid place-items-center ml-auto",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)},click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"material-icons text-4xl",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),a("table",{staticClass:"table"},[e.data.id?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.id")))]),e._v(" "),a("td",[e._v(e._s(e.data.id))])]):e._e(),e._v(" "),e.data.isrc?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.isrc")))]),e._v(" "),a("td",[e._v(e._s(e.data.isrc))])]):e._e(),e._v(" "),e.data.upc?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.upc")))]),e._v(" "),a("td",[e._v(e._s(e.data.upc))])]):e._e(),e._v(" "),e.data.duration?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.duration")))]),e._v(" "),a("td",[e._v(e._s(e.convertDuration(e.data.duration)))])]):e._e(),e._v(" "),e.data.disk_number?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.diskNumber")))]),e._v(" "),a("td",[e._v(e._s(e.data.disk_number))])]):e._e(),e._v(" "),e.data.track_position?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.trackNumber")))]),e._v(" "),a("td",[e._v(e._s(e.data.track_position))])]):e._e(),e._v(" "),e.data.release_date?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.releaseDate")))]),e._v(" "),a("td",[e._v(e._s(e.data.release_date))])]):e._e(),e._v(" "),e.data.bpm?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.bpm")))]),e._v(" "),a("td",[e._v(e._s(e.data.bpm))])]):e._e(),e._v(" "),e.data.label?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.label")))]),e._v(" "),a("td",[e._v(e._s(e.data.label))])]):e._e(),e._v(" "),e.data.record_type?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.recordType")))]),e._v(" "),a("td",[e._v(e._s(e.$tc("globals.listTabs."+e.data.record_type,1)))])]):e._e(),e._v(" "),e.data.genres&&e.data.genres.data.length?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.genres")))]),e._v(" "),a("td",[e._v(e._s(e.data.genres.data.map((function(e){return e.name})).join("; ")))])]):e._e()]),e._v(" "),"album"==e.type?a("div",[a("router-link",{staticClass:"btn btn-primary",attrs:{tag:"button",name:"button",to:{name:"Album",params:{id:e.id}}}},[e._v("\n\t\t\t\t"+e._s(e.$t("linkAnalyzer.table.tracklist"))+"\n\t\t\t")])],1):e._e(),e._v(" "),e.countries.length?a("div",e._l(e.countries,(function(t){return a("p",[e._v(e._s(t[0])+" - "+e._s(t[1]))])})),0):e._e()])])},staticRenderFns:[]},0,{data:()=>({link:"",title:"",subtitle:"",image:"",data:{},type:"",id:"0",countries:[]}),methods:{convertDuration:Qo,reset(){this.title="Loading...",this.subtitle="",this.image="",this.data={},this.type="",this.link="",this.countries=[]},showTrack(e){this.reset();const{title:t,title_version:a,album:{cover_xl:n},link:i,available_countries:r,id:s}=e;this.title=t+(a&&-1==t.indexOf(a)?" "+a:""),this.image=n,this.type="track",this.link=i,this.id=s,r.forEach((e=>{let t=[],a=[...e].map((e=>e.charCodeAt()+127397));t.push(String.fromCodePoint(...a)),t.push(Wm[e]),this.countries.push(t)})),this.data=e},showAlbum(e){this.reset();const{title:t,cover_xl:a,link:n,id:i}=e;this.title=t,this.image=a,this.type="album",this.link=n,this.data=e,this.id=i},notSupported(){this.link="error"},addToQueue(e){Wo(e.currentTarget.dataset.link)}},mounted(){il.$on("linkAnalyzerTab:reset",this.reset),Go.on("analyze_track",this.showTrack),Go.on("analyze_album",this.showAlbum),Go.on("analyze_notSupported",this.notSupported)}},undefined,!1);const Ym=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var Qm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="TopResult.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex flex-col items-center justify-center"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:e.upperCaseFirstLowerCaseRest(e.$attrs.info.type),params:{id:e.$attrs.info.id}}}},[a("CoverContainer",{staticClass:"w-40 h-40",attrs:{"is-rounded":"artist"!==e.$attrs.info.type,"is-circle":"artist"===e.$attrs.info.type,cover:e.$attrs.info.picture,link:e.$attrs.info.link},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("p",{staticClass:"mt-4 mb-1 text-xl text-center transition-colors duration-200 ease-in-out hover:text-primary"},[e._v("\n\t\t\t"+e._s(e.$attrs.info.title)+"\n\t\t")])],1),e._v(" "),a("p",{staticClass:"mb-3 text-center secondary-text"},[e._v("\n\t\t"+e._s(e.fansNumber)+"\n\t")]),e._v(" "),a("span",{staticClass:"p-1 px-2 text-xs text-center capitalize bg-primary rounded-xl"},[e._v("\n\t\t"+e._s(e.$tc("globals.listTabs."+e.$attrs.info.type,1))+"\n\t")])],1)},staticRenderFns:[]},0,{components:{CoverContainer:Em},methods:{upperCaseFirstLowerCaseRest:Ym},computed:{fansNumber(){let e;try{e=this.$n(this.$attrs.info.nb_fan)}catch(t){e=this.$n(this.$attrs.info.nb_fan,{locale:"en"})}return"artist"==this.$attrs.info.type?this.$t("search.fans",{n:e}):this.$t("globals.by",{artist:this.$attrs.info.artist})+" - "+this.$tc("globals.listTabs.trackN",this.$attrs.info.nb_song)}}},undefined,!1);function Jm(e,t){if(e.hasLoaded){const{data:a}=e,n=[];for(const e of a){let a=t(e);n.push(a)}return{data:n,hasLoaded:e.hasLoaded}}return null}function Zm(e){let t=el(e,"explicit_lyrics","EXPLICIT_LYRICS");return"string"==typeof t&&(t="0"!==t),{trackTitle:el(e,"title","SNG_TITLE"),trackTitleVersion:el(e,"title_version","VERSION"),trackPreview:el(e,"preview"),trackDuration:el(e,"duration","DURATION"),trackLink:el(e,"link")||"https://www.deezer.com/track/"+e.SNG_ID,isTrackExplicit:t,artistID:el(e,"artist.id","ART_ID"),artistName:el(e,"artist.name","ART_NAME"),albumID:el(e,"album.id","ALB_ID"),albumTitle:el(e,"album.title","ALB_TITLE"),albumPicture:el(e,"album.cover_small")||`https://e-cdns-images.dzcdn.net/images/cover/${e.ALB_PICTURE}/32x32-000000-80-0-0.jpg`}}function Xm(e){let t=el(e,"explicit_lyrics","EXPLICIT_ALBUM_CONTENT.EXPLICIT_LYRICS_STATUS");return"number"==typeof t&&(t=1===t),{albumID:el(e,"id","ALB_ID"),albumTitle:el(e,"title","ALB_TITLE"),albumCoverMedium:el(e,"cover_medium")||`https://e-cdns-images.dzcdn.net/images/cover/${e.ALB_PICTURE}/156x156-000000-80-0-0.jpg`,albumLink:el(e,"link")||"https://deezer.com/album/"+e.ALB_ID,albumTracks:el(e,"nb_tracks","NUMBER_TRACK"),isAlbumExplicit:t,artistName:el(e,"artist.name","ART_NAME")}}function eh(e){return{artistID:el(e,"id","ART_ID"),artistName:el(e,"name","ART_NAME"),artistPictureMedium:el(e,"picture_medium")||`https://e-cdns-images.dzcdn.net/images/artist/${e.ART_PICTURE}/156x156-000000-80-0-0.jpg`,artistLink:el(e,"link")||"https://deezer.com/artist/"+e.ART_ID,artistAlbumsNumber:el(e,"nb_album","NB_FAN")}}function th(e){return{playlistID:el(e,"id","PLAYLIST_ID"),playlistTitle:el(e,"title","TITLE"),playlistPictureMedium:el(e,"picture_medium")||`https://e-cdns-images.dzcdn.net/images/${e.PICTURE_TYPE}/${e.PLAYLIST_PICTURE}/156x156-000000-80-0-0.jpg`,playlistLink:el(e,"link")||"https://deezer.com/playlist/"+e.PLAYLIST_ID,playlistTracksNumber:el(e,"nb_tracks","NB_SONG"),artistName:el(e,"user.name")}}var ah=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsTracks.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsTrack")))])]):a("table",{staticClass:"table w-full table--tracks"},[e.wantHeaders?a("thead",[a("tr",{staticClass:"capitalize"},[a("th",{staticClass:"h-12 pb-3",attrs:{colspan:"2"}},[e._v(e._s(e.$tc("globals.listTabs.title",1)))]),e._v(" "),a("th",{staticClass:"h-12 pb-3"},[e._v(e._s(e.$tc("globals.listTabs.artist",1)))]),e._v(" "),a("th",{staticClass:"h-12 pb-3"},[e._v(e._s(e.$tc("globals.listTabs.album",1)))]),e._v(" "),a("th",{staticClass:"h-12 pb-3"},[a("i",{staticClass:"material-icons"},[e._v("timer")])]),e._v(" "),a("th",{staticClass:"h-12 pb-3",staticStyle:{width:"3.5rem"}})])]):e._e(),e._v(" "),a("tbody",e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("tr",{key:t.trackLink},[a("td",{staticClass:"table__icon table__icon--big"},[a("a",{staticClass:"rounded",class:{"single-cover":!!t.trackPreview},attrs:{href:"#","data-preview":t.trackPreview},on:{click:function(t){return e.playPausePreview(t)}}},[t.trackPreview?a("PreviewControls"):e._e(),e._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:t.albumPicture}})],1)]),e._v(" "),a("td",{staticClass:"table__cell table__cell--large"},[a("div",{staticClass:"break-words table__cell-content table__cell-content--vertical-center"},[t.isTrackExplicit?a("i",{staticClass:"material-icons explicit-icon"},[e._v("explicit")]):e._e(),e._v("\n\t\t\t\t\t\t\t"+e._s(e.formatTitle(t))+"\n\t\t\t\t\t\t")])]),e._v(" "),a("router-link",{staticClass:"break-words table__cell table__cell--medium table__cell--center",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artistID}}}},[a("span",{staticClass:"cursor-pointer hover:underline"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.artistName)+"\n\t\t\t\t\t\t")])]),e._v(" "),a("router-link",{staticClass:"break-words table__cell table__cell--medium table__cell--center",attrs:{tag:"td",to:{name:"Album",params:{id:t.albumID}}}},[a("span",{staticClass:"cursor-pointer hover:underline"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.albumTitle)+"\n\t\t\t\t\t\t")])]),e._v(" "),a("td",{staticClass:"table__cell table__cell--small table__cell--center"},[e._v("\n\t\t\t\t\t\t"+e._s(e.convertDuration(t.trackDuration))+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"cursor-pointer table__cell--center group",attrs:{"data-link":t.trackLink,"aria-label":"download"},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}},[a("i",{staticClass:"transition-colors duration-150 ease-in-out material-icons group-hover:text-primary",attrs:{title:e.$t("globals.download_hint")}},[e._v("\n\t\t\t\t\t\t\tget_app\n\t\t\t\t\t\t")])])],1)})),0)])]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,PreviewControls:Um},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}},methods:{convertDuration:Qo,formatTitle:function(e){const t=e.trackTitleVersion&&-1===e.trackTitle.indexOf(e.trackTitleVersion);return`${e.trackTitle}${t?" "+e.trackTitleVersion:""}`},playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)}}},undefined,!1);var nh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsAlbums.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsAlbum")))])]):a("div",{staticClass:"release_grid"},e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("div",{key:t.albumID,staticClass:"w-40 release"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:"Album",params:{id:t.albumID}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.albumCoverMedium,link:t.albumLink},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("span",{staticClass:"mb-1 transition-colors duration-200 ease-in-out hover:text-primary"},[t.isAlbumExplicit?a("i",{staticClass:"material-icons explicit-icon"},[e._v("explicit")]):e._e(),e._v("\n\t\t\t\t\t\t"+e._s(t.albumTitle)+"\n\t\t\t\t\t")])],1),e._v(" "),a("p",{staticClass:"mb-1 text-sm opacity-75"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.artistName})+" - "+e.$tc("globals.listTabs.trackN",t.albumTracks))+"\n\t\t\t\t")])],1)})),0)]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,CoverContainer:Em},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}}},undefined,!1);var ih=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsArtists.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsArtist")))])]):a("div",{staticClass:"release_grid"},e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("div",{key:t.artistID,staticClass:"w-40 release"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:"Artist",params:{id:t.artistID}}}},[a("CoverContainer",{attrs:{"is-circle":"",cover:t.artistPictureMedium,link:t.artistLink},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("span",{staticClass:"mb-1 transition-colors duration-200 ease-in-out hover:text-primary"},[e._v("\n\t\t\t\t\t\t"+e._s(t.artistName)+"\n\t\t\t\t\t")])],1)],1)})),0)]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,CoverContainer:Em},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}}},undefined,!1);var rh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsPlaylists.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsPlaylist")))])]):a("div",{staticClass:"release_grid"},e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("div",{key:t.playlistID,staticClass:"w-40 release"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:"Playlist",params:{id:t.playlistID}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.playlistPictureMedium,link:t.playlistLink},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("span",{staticClass:"mb-1 transition-colors duration-200 ease-in-out hover:text-primary"},[e._v("\n\t\t\t\t\t\t"+e._s(t.playlistTitle)+"\n\t\t\t\t\t")])],1),e._v(" "),a("p",{staticClass:"mb-1 text-sm opacity-75"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.artistName})+" - "+e.$tc("globals.listTabs.trackN",t.playlistTracksNumber))+"\n\t\t\t\t")])],1)})),0)]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,CoverContainer:Em},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}}},undefined,!1);var sh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsAll.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.thereAreResults?e._l(e.viewInfo.ORDER,(function(t){return a("section",{key:t,staticClass:"float-none py-5 border-t border-grayscale-500 first:border-t-0"},[e.checkSectionResults(t)?[a("h2",{staticClass:"mb-6 capitalize",class:{"text-4xl text-center":"TOP_RESULT"===t,"inline-block cursor-pointer text-3xl hover:text-primary transition-colors duration-200 ease-in-out":"TOP_RESULT"!==t},on:{click:function(a){return e.$emit("change-search-tab",t)}}},[e._v("\n\t\t\t\t\t"+e._s(e.$tc("globals.listTabs."+t.toLowerCase(),2))+"\n\t\t\t\t")]),e._v(" "),"TOP_RESULT"===t?a("TopResult",{attrs:{info:e.viewInfo.TOP_RESULT[0]},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"TRACK"===t?a("ResultsTracks",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.TRACK,e.formatSingleTrack),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"ALBUM"==t?a("ResultsAlbums",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.ALBUM,e.formatAlbums),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"PLAYLIST"==t?a("ResultsPlaylists",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.PLAYLIST,e.formatPlaylist),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"ARTIST"===t?a("ResultsArtists",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.ARTIST,e.formatArtist),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):e._e()]:e._e()],2)})):a("div",[a("h1",[e._v(e._s(e.$t("search.noResults")))])])],2)},staticRenderFns:[]},0,{components:{TopResult:Qm,ResultsTracks:ah,ResultsAlbums:nh,ResultsArtists:ih,ResultsPlaylists:rh},props:{viewInfo:{type:Object,required:!1}},computed:{thereAreResults(){return!!this.viewInfo&&!this.viewInfo.ORDER.every((e=>"TOP_RESULT"===e?0===this.viewInfo[e].length:0===this.viewInfo[e].data.length))}},methods:{convertDuration:Qo,upperCaseFirstLowerCaseRest:Ym,formatSearchResults:Jm,formatSingleTrack:Zm,formatAlbums:Xm,formatArtist:eh,formatPlaylist:th,checkSectionResults(e){return"TOP_RESULT"===e?!!this.viewInfo.TOP_RESULT[0]:!!this.viewInfo[e].data[0]}}},undefined,!1);const oh={data:[],next:0,total:0,hasLoaded:!1};var lh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Search.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",attrs:{id:"search_tab"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:!e.showSearchTab,expression:"!showSearchTab"}]},[a("h2",[e._v(e._s(e.$t("search.startSearching")))]),e._v(" "),a("p",[e._v(e._s(e.$t("search.description")))])]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearchTab,expression:"showSearchTab"}]},[a("ul",{staticClass:"section-tabs"},e._l(e.tabs,(function(t){return a("li",{key:t.name,staticClass:"section-tabs__tab",class:{active:e.currentTab.name===t.name},on:{click:function(a){e.currentTab=t}}},[e._v("\n\t\t\t\t"+e._s(t.name)+"\n\t\t\t")])})),0),e._v(" "),a("keep-alive",[a(e.currentTab.component,{tag:"component",attrs:{viewInfo:e.getViewInfo(),"want-headers":""},on:{"add-to-queue":e.addToQueue,"change-search-tab":e.changeSearchTab}})],1)],1)])},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho},props:{performScrolledSearch:{type:Boolean,required:!1}},data(){const e=this.$t.bind(this),t=this.$tc.bind(this);return{currentTab:{name:"",searchType:"",component:{},viewInfo:"",formatFunc:()=>{}},tabs:[{name:e("globals.listTabs.all"),searchType:"all",component:sh,viewInfo:"allTab"},{name:t("globals.listTabs.track",2),searchType:"track",component:ah,viewInfo:"trackTab",formatFunc:Zm},{name:t("globals.listTabs.album",2),searchType:"album",component:nh,viewInfo:"albumTab",formatFunc:Xm},{name:t("globals.listTabs.artist",2),searchType:"artist",component:ih,viewInfo:"artistTab",formatFunc:eh},{name:t("globals.listTabs.playlist",2),searchType:"playlist",component:rh,viewInfo:"playlistTab",formatFunc:th}],results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{hasLoaded:!1},ARTIST:{hasLoaded:!1},TRACK:{hasLoaded:!1},PLAYLIST:{hasLoaded:!1}},trackTab:{...oh},albumTab:{...oh},artistTab:{...oh},playlistTab:{...oh}}}},computed:{showSearchTab(){return""!==this.results.query},loadedTabs(){const e=[];for(const t in this.results)if(this.results.hasOwnProperty(t)){this.results[t].hasLoaded&&e.push(t.replace(/Tab/g,""))}return e}},created(){this.currentTab=this.tabs[0]},mounted(){this.$root.$on("mainSearch:showNewResults",this.checkIfPerformNewMainSearch),this.$root.$on("mainSearch:updateResults",this.checkIfUpdateResults),Go.on("mainSearch",this.saveMainSearchResult),Go.on("search",this.handleSearch)},methods:{numberWithDots:Jo,convertDuration:Qo,addToQueue(e){Wo(e.currentTarget.dataset.link)},getViewInfo(){return"all"===this.currentTab.searchType?this.results.allTab:Jm(this.results[this.currentTab.viewInfo],this.currentTab.formatFunc)},changeSearchTab(e){e=e.toLowerCase();const t=this.tabs.find((t=>t.searchType===e));t?(window.scrollTo(0,0),this.currentTab=t):console.error(`No tab ${e} found`)},checkIfPerformNewMainSearch(e){e!==this.results.query&&this.performNewMainSearch(e)},performNewMainSearch(e){Go.emit("mainSearch",{term:e}),this.$root.$emit("updateSearchLoadingState",!0),this.currentTab=this.tabs[0]},checkIfUpdateResults(e){e===this.results.query&&"all"!==this.currentTab.searchType&&(this.results[this.currentTab.searchType+"Tab"]={...oh},this.search(this.currentTab.searchType))},search(e){Go.emit("search",{term:this.results.query,type:e,start:this.results[e+"Tab"].next,nb:30})},scrolledSearch(){if("all"===this.currentTab.searchType)return;const e=this.currentTab.searchType+"Tab";this.results[e].next{Go.on("init_settings",((t,a,n)=>{ch=t,dh=n,uh=a,Go.off("init_settings"),e({settingsData:ch,defaultSettingsData:dh,spotifyCredentials:uh})}))}))}const mh={it:'\n \n \n \n \n \n',en:'\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',de:'\n \n \n \n',fr:'\n \n \n \n \n \n',id:'\n \n \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',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',ru:'\n \n \n \n \n \n',tr:'\n \n \n \n \n \n \n',vn:'\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',ar:'\r\n\r\n \r\n \r\n \r\n image/svg+xml\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n',ko:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n',ph:'\n \n \n \n \n \n \n \n',zh_tw:'\n \n \n \n \n \n \n \n \n \n \n \n \n',pl:'\n \n \n \n \n'};var hh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="Settings.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"fixed-footer",attrs:{id:"settings_tab"}},[a("h1",{staticClass:"mb-8 text-5xl"},[e._v(e._s(e.$t("settings.title")))]),e._v(" "),e.isLoggedIn?a("div",{ref:"loggedInInfo",attrs:{id:"logged_in_info"}},[a("img",{ref:"userpicture",staticClass:"circle",attrs:{id:"settings_picture",src:e.pictureHref,alt:"Profile Picture"}}),e._v(" "),a("i18n",{attrs:{path:"settings.login.loggedIn",tag:"p"}},[a("strong",{ref:"username",attrs:{place:"username",id:"settings_username"}},[e._v(e._s(e.user.name||"not logged"))])]),e._v(" "),a("button",{staticClass:"btn btn-primary",attrs:{id:"settings_btn_logout"},on:{click:e.logout}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.logout"))+"\n\t\t")]),e._v(" "),e.accounts.length?a("select",{directives:[{name:"model",rawName:"v-model",value:e.accountNum,expression:"accountNum"}],attrs:{id:"family_account"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.accountNum=t.target.multiple?a:a[0]},e.changeAccount]}},e._l(e.accounts,(function(t,n){return a("option",{key:t,domProps:{value:n.toString()}},[e._v(e._s(t.BLOG_NAME))])})),0):e._e()],1):e._e(),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("person")]),e._v(e._s(e.$t("settings.login.title"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"flex items-center"},[a("input",{ref:"loginInput",attrs:{autocomplete:"off",type:"password",id:"login_input_arl",placeholder:"ARL"},domProps:{value:e.arl}}),e._v(" "),a("button",{staticClass:"ml-2 btn btn-primary btn-only-icon",attrs:{id:"settings_btn_copyArl"},on:{click:e.copyARLtoClipboard}},[a("i",{staticClass:"material-icons"},[e._v("assignment")])])]),e._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Getting-your-own-ARL",target:"_blank"}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.arl.question"))+"\n\t\t")]),e._v(" "),e.clientMode?a("a",{attrs:{id:"settings_btn_applogin",href:"#"},on:{click:e.appLogin}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.login"))+"\n\t\t")]):e._e(),e._v(" "),a("button",{staticClass:"btn btn-primary",staticStyle:{width:"100%"},attrs:{id:"settings_btn_updateArl"},on:{click:e.login}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.arl.update"))+"\n\t\t")])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("language")]),e._v(e._s(e.$t("settings.languages"))+"\n\t\t")]),e._v(" "),a("div",e._l(e.locales,(function(t){return a("span",{key:t,staticClass:"locale-flag",class:{"locale-flag--current":e.currentLocale===t},attrs:{title:t},domProps:{innerHTML:e._s(e.flags[t])},on:{click:function(a){return e.changeLocale(t)}}})})),0)]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("web")]),e._v(e._s(e.$t("settings.appearance.title"))+"\n\t\t")]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.changeSlimDownloads,expression:"changeSlimDownloads"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.changeSlimDownloads)?e._i(e.changeSlimDownloads,null)>-1:e.changeSlimDownloads},on:{change:function(t){var a=e.changeSlimDownloads,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.changeSlimDownloads=a.concat([null])):r>-1&&(e.changeSlimDownloads=a.slice(0,r).concat(a.slice(r+1)))}else e.changeSlimDownloads=i}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.appearance.slimDownloadTab")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.changeSlimSidebar,expression:"changeSlimSidebar"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.changeSlimSidebar)?e._i(e.changeSlimSidebar,null)>-1:e.changeSlimSidebar},on:{change:function(t){var a=e.changeSlimSidebar,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.changeSlimSidebar=a.concat([null])):r>-1&&(e.changeSlimSidebar=a.slice(0,r).concat(a.slice(r+1)))}else e.changeSlimSidebar=i}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.appearance.slimSidebar")))])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("folder")]),e._v(e._s(e.$t("settings.downloadPath.title"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"flex items-center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.downloadLocation,expression:"settings.downloadLocation"}],attrs:{autocomplete:"off",type:"text"},domProps:{value:e.settings.downloadLocation},on:{input:function(t){t.target.composing||e.$set(e.settings,"downloadLocation",t.target.value)}}}),e._v(" "),e.clientMode?a("button",{staticClass:"ml-2 btn btn-primary btn-only-icon",attrs:{id:"select_downloads_folder"},on:{click:e.selectDownloadFolder}},[a("i",{staticClass:"material-icons"},[e._v("folder")])]):e._e()])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("font_download")]),e._v(e._s(e.$t("settings.templates.title"))+"\n\t\t")]),e._v(" "),a("p",[e._v(e._s(e.$t("settings.templates.tracknameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tracknameTemplate,expression:"settings.tracknameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.tracknameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"tracknameTemplate",t.target.value)}}}),e._v(" "),a("p",[e._v(e._s(e.$t("settings.templates.albumTracknameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.albumTracknameTemplate,expression:"settings.albumTracknameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.albumTracknameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"albumTracknameTemplate",t.target.value)}}}),e._v(" "),a("p",[e._v(e._s(e.$t("settings.templates.playlistTracknameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.playlistTracknameTemplate,expression:"settings.playlistTracknameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.playlistTracknameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"playlistTracknameTemplate",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("create_new_folder")]),e._v(e._s(e.$t("settings.folders.title"))+"\n\t\t")]),e._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:e.settings.createPlaylistFolder,expression:"settings.createPlaylistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createPlaylistFolder)?e._i(e.settings.createPlaylistFolder,null)>-1:e.settings.createPlaylistFolder},on:{change:function(t){var a=e.settings.createPlaylistFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createPlaylistFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createPlaylistFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createPlaylistFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createPlaylistFolder")))])]),e._v(" "),e.settings.createPlaylistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.folders.playlistNameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.playlistNameTemplate,expression:"settings.playlistNameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.playlistNameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"playlistNameTemplate",t.target.value)}}})]):e._e()]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createArtistFolder,expression:"settings.createArtistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createArtistFolder)?e._i(e.settings.createArtistFolder,null)>-1:e.settings.createArtistFolder},on:{change:function(t){var a=e.settings.createArtistFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createArtistFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createArtistFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createArtistFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createArtistFolder")))])]),e._v(" "),e.settings.createArtistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.folders.artistNameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.artistNameTemplate,expression:"settings.artistNameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.artistNameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"artistNameTemplate",t.target.value)}}})]):e._e()]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createAlbumFolder,expression:"settings.createAlbumFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createAlbumFolder)?e._i(e.settings.createAlbumFolder,null)>-1:e.settings.createAlbumFolder},on:{change:function(t){var a=e.settings.createAlbumFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createAlbumFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createAlbumFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createAlbumFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createAlbumFolder")))])]),e._v(" "),e.settings.createAlbumFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.folders.albumNameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.albumNameTemplate,expression:"settings.albumNameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.albumNameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"albumNameTemplate",t.target.value)}}})]):e._e()])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createCDFolder,expression:"settings.createCDFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createCDFolder)?e._i(e.settings.createCDFolder,null)>-1:e.settings.createCDFolder},on:{change:function(t){var a=e.settings.createCDFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createCDFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createCDFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createCDFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createCDFolder")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createStructurePlaylist,expression:"settings.createStructurePlaylist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createStructurePlaylist)?e._i(e.settings.createStructurePlaylist,null)>-1:e.settings.createStructurePlaylist},on:{change:function(t){var a=e.settings.createStructurePlaylist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createStructurePlaylist",a.concat([null])):r>-1&&e.$set(e.settings,"createStructurePlaylist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createStructurePlaylist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createStructurePlaylist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createSingleFolder,expression:"settings.createSingleFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createSingleFolder)?e._i(e.settings.createSingleFolder,null)>-1:e.settings.createSingleFolder},on:{change:function(t){var a=e.settings.createSingleFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createSingleFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createSingleFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createSingleFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createSingleFolder")))])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("title")]),e._v(e._s(e.$t("settings.trackTitles.title"))+"\n\t\t")]),e._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:e.settings.padTracks,expression:"settings.padTracks"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.padTracks)?e._i(e.settings.padTracks,null)>-1:e.settings.padTracks},on:{change:function(t){var a=e.settings.padTracks,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"padTracks",a.concat([null])):r>-1&&e.$set(e.settings,"padTracks",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"padTracks",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.trackTitles.padTracks")))])])]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.trackTitles.paddingSize")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.paddingSize,expression:"settings.paddingSize"}],attrs:{max:"10",type:"number"},domProps:{value:e.settings.paddingSize},on:{input:function(t){t.target.composing||e.$set(e.settings,"paddingSize",t.target.value)}}})])]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.trackTitles.illegalCharacterReplacer")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.illegalCharacterReplacer,expression:"settings.illegalCharacterReplacer"}],attrs:{type:"text"},domProps:{value:e.settings.illegalCharacterReplacer},on:{input:function(t){t.target.composing||e.$set(e.settings,"illegalCharacterReplacer",t.target.value)}}})])])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("get_app")]),e._v(e._s(e.$t("settings.downloads.title"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.queueConcurrency")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.queueConcurrency,expression:"settings.queueConcurrency",modifiers:{number:!0}}],attrs:{type:"number",min:"1"},domProps:{value:e.settings.queueConcurrency},on:{input:function(t){t.target.composing||e.$set(e.settings,"queueConcurrency",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.maxBitrate.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.maxBitrate,expression:"settings.maxBitrate"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"maxBitrate",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"9"}},[e._v(e._s(e.$t("settings.downloads.maxBitrate.9")))]),e._v(" "),a("option",{attrs:{value:"3"}},[e._v(e._s(e.$t("settings.downloads.maxBitrate.3")))]),e._v(" "),a("option",{attrs:{value:"1"}},[e._v(e._s(e.$t("settings.downloads.maxBitrate.1")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.overwriteFile.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.overwriteFile,expression:"settings.overwriteFile"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"overwriteFile",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"y"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.y")))]),e._v(" "),a("option",{attrs:{value:"n"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.n")))]),e._v(" "),a("option",{attrs:{value:"e"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.e")))]),e._v(" "),a("option",{attrs:{value:"b"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.b")))]),e._v(" "),a("option",{attrs:{value:"t"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.t")))])])]),e._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:e.settings.fallbackBitrate,expression:"settings.fallbackBitrate"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.fallbackBitrate)?e._i(e.settings.fallbackBitrate,null)>-1:e.settings.fallbackBitrate},on:{change:function(t){var a=e.settings.fallbackBitrate,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"fallbackBitrate",a.concat([null])):r>-1&&e.$set(e.settings,"fallbackBitrate",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"fallbackBitrate",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.fallbackBitrate")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.fallbackSearch,expression:"settings.fallbackSearch"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.fallbackSearch)?e._i(e.settings.fallbackSearch,null)>-1:e.settings.fallbackSearch},on:{change:function(t){var a=e.settings.fallbackSearch,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"fallbackSearch",a.concat([null])):r>-1&&e.$set(e.settings,"fallbackSearch",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"fallbackSearch",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.fallbackSearch")))])])]),e._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:e.settings.logErrors,expression:"settings.logErrors"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.logErrors)?e._i(e.settings.logErrors,null)>-1:e.settings.logErrors},on:{change:function(t){var a=e.settings.logErrors,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"logErrors",a.concat([null])):r>-1&&e.$set(e.settings,"logErrors",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"logErrors",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.logErrors")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.logSearched,expression:"settings.logSearched"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.logSearched)?e._i(e.settings.logSearched,null)>-1:e.settings.logSearched},on:{change:function(t){var a=e.settings.logSearched,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"logSearched",a.concat([null])):r>-1&&e.$set(e.settings,"logSearched",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"logSearched",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.logSearched")))])])]),e._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:e.settings.syncedLyrics,expression:"settings.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.syncedLyrics)?e._i(e.settings.syncedLyrics,null)>-1:e.settings.syncedLyrics},on:{change:function(t){var a=e.settings.syncedLyrics,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"syncedLyrics",a.concat([null])):r>-1&&e.$set(e.settings,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"syncedLyrics",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.syncedLyrics")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createM3U8File,expression:"settings.createM3U8File"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createM3U8File)?e._i(e.settings.createM3U8File,null)>-1:e.settings.createM3U8File},on:{change:function(t){var a=e.settings.createM3U8File,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createM3U8File",a.concat([null])):r>-1&&e.$set(e.settings,"createM3U8File",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createM3U8File",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.createM3U8File")))])])])]),e._v(" "),e.settings.createM3U8File?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.playlistFilenameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.playlistFilenameTemplate,expression:"settings.playlistFilenameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.playlistFilenameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"playlistFilenameTemplate",t.target.value)}}})]):e._e(),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.saveDownloadQueue,expression:"settings.saveDownloadQueue"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.saveDownloadQueue)?e._i(e.settings.saveDownloadQueue,null)>-1:e.settings.saveDownloadQueue},on:{change:function(t){var a=e.settings.saveDownloadQueue,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"saveDownloadQueue",a.concat([null])):r>-1&&e.$set(e.settings,"saveDownloadQueue",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"saveDownloadQueue",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.saveDownloadQueue")))])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("album")]),e._v(e._s(e.$t("settings.covers.title"))+"\n\t\t")]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.saveArtwork,expression:"settings.saveArtwork"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.saveArtwork)?e._i(e.settings.saveArtwork,null)>-1:e.settings.saveArtwork},on:{change:function(t){var a=e.settings.saveArtwork,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"saveArtwork",a.concat([null])):r>-1&&e.$set(e.settings,"saveArtwork",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"saveArtwork",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.saveArtwork")))])]),e._v(" "),e.settings.saveArtwork?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.coverImageTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.coverImageTemplate,expression:"settings.coverImageTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.coverImageTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"coverImageTemplate",t.target.value)}}})]):e._e(),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.saveArtworkArtist,expression:"settings.saveArtworkArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.saveArtworkArtist)?e._i(e.settings.saveArtworkArtist,null)>-1:e.settings.saveArtworkArtist},on:{change:function(t){var a=e.settings.saveArtworkArtist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"saveArtworkArtist",a.concat([null])):r>-1&&e.$set(e.settings,"saveArtworkArtist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"saveArtworkArtist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.saveArtworkArtist")))])]),e._v(" "),e.settings.saveArtworkArtist?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.artistImageTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.artistImageTemplate,expression:"settings.artistImageTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.artistImageTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"artistImageTemplate",t.target.value)}}})]):e._e(),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.localArtworkSize")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.localArtworkSize,expression:"settings.localArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:e.settings.localArtworkSize},on:{input:function(t){t.target.composing||e.$set(e.settings,"localArtworkSize",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.settings.localArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[e._v("\n\t\t\t\t⚠️ "+e._s(e.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):e._e()]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.embeddedArtworkSize")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.embeddedArtworkSize,expression:"settings.embeddedArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:e.settings.embeddedArtworkSize},on:{input:function(t){t.target.composing||e.$set(e.settings,"embeddedArtworkSize",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.settings.embeddedArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[e._v("\n\t\t\t\t⚠️ "+e._s(e.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):e._e()]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.localArtworkFormat,expression:"settings.localArtworkFormat"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"localArtworkFormat",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"jpg"}},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.jpg")))]),e._v(" "),a("option",{attrs:{value:"png"}},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.png")))]),e._v(" "),a("option",{attrs:{value:"jpg,png"}},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.both")))])])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.embeddedArtworkPNG,expression:"settings.embeddedArtworkPNG"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.embeddedArtworkPNG)?e._i(e.settings.embeddedArtworkPNG,null)>-1:e.settings.embeddedArtworkPNG},on:{change:function(t){var a=e.settings.embeddedArtworkPNG,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"embeddedArtworkPNG",a.concat([null])):r>-1&&e.$set(e.settings,"embeddedArtworkPNG",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"embeddedArtworkPNG",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.embeddedArtworkPNG")))])]),e._v(" "),e.settings.embeddedArtworkPNG?a("p",{staticStyle:{opacity:"0.75",color:"#ffcc22"}},[e._v("\n\t\t\t⚠️ "+e._s(e.$t("settings.covers.embeddedPNGWarning"))+"\n\t\t")]):e._e(),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.coverDescriptionUTF8,expression:"settings.tags.coverDescriptionUTF8"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.coverDescriptionUTF8)?e._i(e.settings.tags.coverDescriptionUTF8,null)>-1:e.settings.tags.coverDescriptionUTF8},on:{change:function(t){var a=e.settings.tags.coverDescriptionUTF8,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"coverDescriptionUTF8",a.concat([null])):r>-1&&e.$set(e.settings.tags,"coverDescriptionUTF8",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"coverDescriptionUTF8",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.coverDescriptionUTF8")))])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.jpegImageQuality")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.jpegImageQuality,expression:"settings.jpegImageQuality",modifiers:{number:!0}}],attrs:{type:"number",min:"1",max:"100"},domProps:{value:e.settings.jpegImageQuality},on:{input:function(t){t.target.composing||e.$set(e.settings,"jpegImageQuality",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})])]),e._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"}},[e._v("bookmarks")]),e._v(e._s(e.$t("settings.tags.head"))+"\n\t\t")]),e._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:e.settings.tags.title,expression:"settings.tags.title"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.title)?e._i(e.settings.tags.title,null)>-1:e.settings.tags.title},on:{change:function(t){var a=e.settings.tags.title,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"title",a.concat([null])):r>-1&&e.$set(e.settings.tags,"title",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"title",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.title")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.artist,expression:"settings.tags.artist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.artist)?e._i(e.settings.tags.artist,null)>-1:e.settings.tags.artist},on:{change:function(t){var a=e.settings.tags.artist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"artist",a.concat([null])):r>-1&&e.$set(e.settings.tags,"artist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"artist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.artist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.album,expression:"settings.tags.album"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.album)?e._i(e.settings.tags.album,null)>-1:e.settings.tags.album},on:{change:function(t){var a=e.settings.tags.album,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"album",a.concat([null])):r>-1&&e.$set(e.settings.tags,"album",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"album",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.album")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.cover,expression:"settings.tags.cover"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.cover)?e._i(e.settings.tags.cover,null)>-1:e.settings.tags.cover},on:{change:function(t){var a=e.settings.tags.cover,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"cover",a.concat([null])):r>-1&&e.$set(e.settings.tags,"cover",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"cover",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.cover")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.trackNumber,expression:"settings.tags.trackNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.trackNumber)?e._i(e.settings.tags.trackNumber,null)>-1:e.settings.tags.trackNumber},on:{change:function(t){var a=e.settings.tags.trackNumber,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"trackNumber",a.concat([null])):r>-1&&e.$set(e.settings.tags,"trackNumber",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"trackNumber",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.trackNumber")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.trackTotal,expression:"settings.tags.trackTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.trackTotal)?e._i(e.settings.tags.trackTotal,null)>-1:e.settings.tags.trackTotal},on:{change:function(t){var a=e.settings.tags.trackTotal,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"trackTotal",a.concat([null])):r>-1&&e.$set(e.settings.tags,"trackTotal",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"trackTotal",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.trackTotal")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.discNumber,expression:"settings.tags.discNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.discNumber)?e._i(e.settings.tags.discNumber,null)>-1:e.settings.tags.discNumber},on:{change:function(t){var a=e.settings.tags.discNumber,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"discNumber",a.concat([null])):r>-1&&e.$set(e.settings.tags,"discNumber",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"discNumber",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.discNumber")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.discTotal,expression:"settings.tags.discTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.discTotal)?e._i(e.settings.tags.discTotal,null)>-1:e.settings.tags.discTotal},on:{change:function(t){var a=e.settings.tags.discTotal,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"discTotal",a.concat([null])):r>-1&&e.$set(e.settings.tags,"discTotal",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"discTotal",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.discTotal")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.albumArtist,expression:"settings.tags.albumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.albumArtist)?e._i(e.settings.tags.albumArtist,null)>-1:e.settings.tags.albumArtist},on:{change:function(t){var a=e.settings.tags.albumArtist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"albumArtist",a.concat([null])):r>-1&&e.$set(e.settings.tags,"albumArtist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"albumArtist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.albumArtist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.genre,expression:"settings.tags.genre"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.genre)?e._i(e.settings.tags.genre,null)>-1:e.settings.tags.genre},on:{change:function(t){var a=e.settings.tags.genre,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"genre",a.concat([null])):r>-1&&e.$set(e.settings.tags,"genre",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"genre",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.genre")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.year,expression:"settings.tags.year"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.year)?e._i(e.settings.tags.year,null)>-1:e.settings.tags.year},on:{change:function(t){var a=e.settings.tags.year,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"year",a.concat([null])):r>-1&&e.$set(e.settings.tags,"year",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"year",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.year")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.date,expression:"settings.tags.date"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.date)?e._i(e.settings.tags.date,null)>-1:e.settings.tags.date},on:{change:function(t){var a=e.settings.tags.date,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"date",a.concat([null])):r>-1&&e.$set(e.settings.tags,"date",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"date",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.date")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.explicit,expression:"settings.tags.explicit"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.explicit)?e._i(e.settings.tags.explicit,null)>-1:e.settings.tags.explicit},on:{change:function(t){var a=e.settings.tags.explicit,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"explicit",a.concat([null])):r>-1&&e.$set(e.settings.tags,"explicit",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"explicit",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.explicit")))])])]),e._v(" "),a("div",{staticClass:"settings-container__half"},[a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.isrc,expression:"settings.tags.isrc"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.isrc)?e._i(e.settings.tags.isrc,null)>-1:e.settings.tags.isrc},on:{change:function(t){var a=e.settings.tags.isrc,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"isrc",a.concat([null])):r>-1&&e.$set(e.settings.tags,"isrc",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"isrc",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.isrc")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.length,expression:"settings.tags.length"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.length)?e._i(e.settings.tags.length,null)>-1:e.settings.tags.length},on:{change:function(t){var a=e.settings.tags.length,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"length",a.concat([null])):r>-1&&e.$set(e.settings.tags,"length",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"length",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.length")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.barcode,expression:"settings.tags.barcode"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.barcode)?e._i(e.settings.tags.barcode,null)>-1:e.settings.tags.barcode},on:{change:function(t){var a=e.settings.tags.barcode,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"barcode",a.concat([null])):r>-1&&e.$set(e.settings.tags,"barcode",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"barcode",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.barcode")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.bpm,expression:"settings.tags.bpm"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.bpm)?e._i(e.settings.tags.bpm,null)>-1:e.settings.tags.bpm},on:{change:function(t){var a=e.settings.tags.bpm,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"bpm",a.concat([null])):r>-1&&e.$set(e.settings.tags,"bpm",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"bpm",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.bpm")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.replayGain,expression:"settings.tags.replayGain"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.replayGain)?e._i(e.settings.tags.replayGain,null)>-1:e.settings.tags.replayGain},on:{change:function(t){var a=e.settings.tags.replayGain,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"replayGain",a.concat([null])):r>-1&&e.$set(e.settings.tags,"replayGain",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"replayGain",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.replayGain")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.label,expression:"settings.tags.label"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.label)?e._i(e.settings.tags.label,null)>-1:e.settings.tags.label},on:{change:function(t){var a=e.settings.tags.label,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"label",a.concat([null])):r>-1&&e.$set(e.settings.tags,"label",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"label",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.label")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.lyrics,expression:"settings.tags.lyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.lyrics)?e._i(e.settings.tags.lyrics,null)>-1:e.settings.tags.lyrics},on:{change:function(t){var a=e.settings.tags.lyrics,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"lyrics",a.concat([null])):r>-1&&e.$set(e.settings.tags,"lyrics",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"lyrics",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.lyrics")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.syncedLyrics,expression:"settings.tags.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.syncedLyrics)?e._i(e.settings.tags.syncedLyrics,null)>-1:e.settings.tags.syncedLyrics},on:{change:function(t){var a=e.settings.tags.syncedLyrics,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"syncedLyrics",a.concat([null])):r>-1&&e.$set(e.settings.tags,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"syncedLyrics",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.syncedLyrics")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.copyright,expression:"settings.tags.copyright"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.copyright)?e._i(e.settings.tags.copyright,null)>-1:e.settings.tags.copyright},on:{change:function(t){var a=e.settings.tags.copyright,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"copyright",a.concat([null])):r>-1&&e.$set(e.settings.tags,"copyright",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"copyright",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.copyright")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.composer,expression:"settings.tags.composer"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.composer)?e._i(e.settings.tags.composer,null)>-1:e.settings.tags.composer},on:{change:function(t){var a=e.settings.tags.composer,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"composer",a.concat([null])):r>-1&&e.$set(e.settings.tags,"composer",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"composer",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.composer")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.involvedPeople,expression:"settings.tags.involvedPeople"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.involvedPeople)?e._i(e.settings.tags.involvedPeople,null)>-1:e.settings.tags.involvedPeople},on:{change:function(t){var a=e.settings.tags.involvedPeople,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"involvedPeople",a.concat([null])):r>-1&&e.$set(e.settings.tags,"involvedPeople",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"involvedPeople",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.involvedPeople")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.source,expression:"settings.tags.source"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.source)?e._i(e.settings.tags.source,null)>-1:e.settings.tags.source},on:{change:function(t){var a=e.settings.tags.source,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"source",a.concat([null])):r>-1&&e.$set(e.settings.tags,"source",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"source",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.source")))])])])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("list")]),e._v(e._s(e.$t("settings.other.title"))+"\n\t\t")]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.savePlaylistAsCompilation,expression:"settings.tags.savePlaylistAsCompilation"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.savePlaylistAsCompilation)?e._i(e.settings.tags.savePlaylistAsCompilation,null)>-1:e.settings.tags.savePlaylistAsCompilation},on:{change:function(t){var a=e.settings.tags.savePlaylistAsCompilation,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"savePlaylistAsCompilation",a.concat([null])):r>-1&&e.$set(e.settings.tags,"savePlaylistAsCompilation",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"savePlaylistAsCompilation",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.savePlaylistAsCompilation")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.useNullSeparator,expression:"settings.tags.useNullSeparator"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.useNullSeparator)?e._i(e.settings.tags.useNullSeparator,null)>-1:e.settings.tags.useNullSeparator},on:{change:function(t){var a=e.settings.tags.useNullSeparator,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"useNullSeparator",a.concat([null])):r>-1&&e.$set(e.settings.tags,"useNullSeparator",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"useNullSeparator",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.useNullSeparator")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.saveID3v1,expression:"settings.tags.saveID3v1"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.saveID3v1)?e._i(e.settings.tags.saveID3v1,null)>-1:e.settings.tags.saveID3v1},on:{change:function(t){var a=e.settings.tags.saveID3v1,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"saveID3v1",a.concat([null])):r>-1&&e.$set(e.settings.tags,"saveID3v1",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"saveID3v1",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.saveID3v1")))])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.multiArtistSeparator,expression:"settings.tags.multiArtistSeparator"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings.tags,"multiArtistSeparator",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.nothing")))]),e._v(" "),a("option",{attrs:{value:"default"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.default")))]),e._v(" "),a("option",{attrs:{value:"andFeat"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.andFeat")))]),e._v(" "),a("option",{attrs:{value:" & "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:" & "})))]),e._v(" "),a("option",{attrs:{value:","}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:","})))]),e._v(" "),a("option",{attrs:{value:", "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:", "})))]),e._v(" "),a("option",{attrs:{value:"/"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:"/"})))]),e._v(" "),a("option",{attrs:{value:" / "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:" / "})))]),e._v(" "),a("option",{attrs:{value:";"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:";"})))]),e._v(" "),a("option",{attrs:{value:"; "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:"; "})))])])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.singleAlbumArtist,expression:"settings.tags.singleAlbumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.singleAlbumArtist)?e._i(e.settings.tags.singleAlbumArtist,null)>-1:e.settings.tags.singleAlbumArtist},on:{change:function(t){var a=e.settings.tags.singleAlbumArtist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"singleAlbumArtist",a.concat([null])):r>-1&&e.$set(e.settings.tags,"singleAlbumArtist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"singleAlbumArtist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.singleAlbumArtist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.albumVariousArtists,expression:"settings.albumVariousArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.albumVariousArtists)?e._i(e.settings.albumVariousArtists,null)>-1:e.settings.albumVariousArtists},on:{change:function(t){var a=e.settings.albumVariousArtists,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"albumVariousArtists",a.concat([null])):r>-1&&e.$set(e.settings,"albumVariousArtists",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"albumVariousArtists",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.albumVariousArtists")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.removeAlbumVersion,expression:"settings.removeAlbumVersion"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.removeAlbumVersion)?e._i(e.settings.removeAlbumVersion,null)>-1:e.settings.removeAlbumVersion},on:{change:function(t){var a=e.settings.removeAlbumVersion,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"removeAlbumVersion",a.concat([null])):r>-1&&e.$set(e.settings,"removeAlbumVersion",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"removeAlbumVersion",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.removeAlbumVersion")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.removeDuplicateArtists,expression:"settings.removeDuplicateArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.removeDuplicateArtists)?e._i(e.settings.removeDuplicateArtists,null)>-1:e.settings.removeDuplicateArtists},on:{change:function(t){var a=e.settings.removeDuplicateArtists,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"removeDuplicateArtists",a.concat([null])):r>-1&&e.$set(e.settings,"removeDuplicateArtists",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"removeDuplicateArtists",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.removeDuplicateArtists")))])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.dateFormat.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.dateFormat,expression:"settings.dateFormat"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"dateFormat",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"Y-M-D"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.year")+"-"+e.$t("settings.other.dateFormat.month")+"-"+e.$t("settings.other.dateFormat.day"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"Y-D-M"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.year")+"-"+e.$t("settings.other.dateFormat.day")+"-"+e.$t("settings.other.dateFormat.month"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"D-M-Y"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.day")+"-"+e.$t("settings.other.dateFormat.month")+"-"+e.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"M-D-Y"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.month")+"-"+e.$t("settings.other.dateFormat.day")+"-"+e.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"Y"}},[e._v(e._s(e.$t("settings.other.dateFormat.year")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.featuredToTitle.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.featuredToTitle,expression:"settings.featuredToTitle"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"featuredToTitle",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"0"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.0")))]),e._v(" "),a("option",{attrs:{value:"1"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.1")))]),e._v(" "),a("option",{attrs:{value:"3"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.3")))]),e._v(" "),a("option",{attrs:{value:"2"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.2")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.titleCasing")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.titleCasing,expression:"settings.titleCasing"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"titleCasing",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[e._v(e._s(e.$t("settings.other.casing.nothing")))]),e._v(" "),a("option",{attrs:{value:"lower"}},[e._v(e._s(e.$t("settings.other.casing.lower")))]),e._v(" "),a("option",{attrs:{value:"upper"}},[e._v(e._s(e.$t("settings.other.casing.upper")))]),e._v(" "),a("option",{attrs:{value:"start"}},[e._v(e._s(e.$t("settings.other.casing.start")))]),e._v(" "),a("option",{attrs:{value:"sentence"}},[e._v(e._s(e.$t("settings.other.casing.sentence")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.artistCasing")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.artistCasing,expression:"settings.artistCasing"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"artistCasing",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[e._v(e._s(e.$t("settings.other.casing.nothing")))]),e._v(" "),a("option",{attrs:{value:"lower"}},[e._v(e._s(e.$t("settings.other.casing.lower")))]),e._v(" "),a("option",{attrs:{value:"upper"}},[e._v(e._s(e.$t("settings.other.casing.upper")))]),e._v(" "),a("option",{attrs:{value:"start"}},[e._v(e._s(e.$t("settings.other.casing.start")))]),e._v(" "),a("option",{attrs:{value:"sentence"}},[e._v(e._s(e.$t("settings.other.casing.sentence")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.previewVolume")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.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:e.previewVolume.preview_max_volume},on:{change:e.updateMaxVolume,__r:function(t){e.$set(e.previewVolume,"preview_max_volume",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),a("span",[e._v(e._s(e.previewVolume.preview_max_volume)+"%")])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.executeCommand.title")))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v(e._s(e.$t("settings.other.executeCommand.description")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.executeCommand,expression:"settings.executeCommand"}],attrs:{type:"text"},domProps:{value:e.settings.executeCommand},on:{input:function(t){t.target.composing||e.$set(e.settings,"executeCommand",t.target.value)}}})])]),e._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"}})]),e._v("\n\t\t\t"+e._s(e.$t("settings.spotify.title"))+"\n\t\t")]),e._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Enabling-Spotify-Features",target:"_blank"}},[e._v("\n\t\t\t"+e._s(e.$t("settings.spotify.question"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.spotify.clientID")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.spotifyFeatures.clientId,expression:"spotifyFeatures.clientId"}],attrs:{type:"text"},domProps:{value:e.spotifyFeatures.clientId},on:{input:function(t){t.target.composing||e.$set(e.spotifyFeatures,"clientId",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.spotify.clientSecret")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.spotifyFeatures.clientSecret,expression:"spotifyFeatures.clientSecret"}],attrs:{type:"password"},domProps:{value:e.spotifyFeatures.clientSecret},on:{input:function(t){t.target.composing||e.$set(e.spotifyFeatures,"clientSecret",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.spotify.username")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.spotifyUser,expression:"spotifyUser"}],attrs:{type:"text"},domProps:{value:e.spotifyUser},on:{input:function(t){t.target.composing||(e.spotifyUser=t.target.value)}}})])]),e._v(" "),a("footer",{staticClass:"bg-background-main"},[a("button",{staticClass:"mr-2 btn btn-primary",on:{click:e.resetSettings}},[e._v(e._s(e.$t("settings.reset")))]),e._v(" "),a("button",{staticClass:"btn btn-primary",on:{click:e.saveSettings}},[e._v(e._s(e.$t("settings.save")))])])])},staticRenderFns:[]},(function(e){e&&e("data-v-1431c158_0",{source:"#logged_in_info{height:250px;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.locale-flag{width:60px;display:flex items-center;justify-content:center;align-items:center;cursor:pointer}.locale-flag:not(:last-child){margin-right:10px}.locale-flag.locale-flag--current svg{filter:brightness(1)}.locale-flag svg{width:40px!important;height:40px!important;filter:brightness(.5)}",map:void 0,media:void 0})}),{data(){return{flags:mh,currentLocale:this.$i18n.locale,locales:this.$i18n.availableLocales,settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,slimSidebar:!1,previewVolume:window.vol,accountNum:0,accounts:[]}},computed:{...Fo({arl:"getARL",user:"getUser",isLoggedIn:"isLoggedIn",clientMode:"getClientMode"}),needToWait(){return 0===Object.keys(this.getSettings).length},changeSlimDownloads:{get(){return this.slimDownloads},set(e){this.slimDownloads=e,document.getElementById("download_list").classList.toggle("slim",e),localStorage.setItem("slimDownloads",e)}},changeSlimSidebar:{get(){return this.slimSidebar},set(e){this.slimSidebar=e,document.getElementById("sidebar").classList.toggle("slim",e),localStorage.setItem("slimSidebar",e)}},pictureHref(){return`https://e-cdns-images.dzcdn.net/images/user/${this.user.picture}/125x125-000000-80-0-0.jpg`}},async mounted(){const{settingsData:e,defaultSettingsData:t,spotifyCredentials:a}=await ph();this.defaultSettings=t,this.initSettings(e,a);let n=localStorage.getItem("accountNum");n&&(this.accountNum=n);let i=localStorage.getItem("spotifyUser");i&&(this.lastUser=i,this.spotifyUser=i,Go.emit("update_userSpotifyPlaylists",i)),this.changeSlimDownloads="true"===localStorage.getItem("slimDownloads"),this.changeSlimSidebar="true"===localStorage.getItem("slimSidebar");let r=parseInt(localStorage.getItem("previewVolume"));isNaN(r)&&(r=80,localStorage.setItem("previewVolume",r)),window.vol.preview_max_volume=r,Go.on("updateSettings",this.updateSettings),Go.on("accountChanged",this.accountChanged),Go.on("familyAccounts",this.initAccounts),Go.on("downloadFolderSelected",this.downloadFolderSelected),Go.on("applogin_arl",this.loggedInViaDeezer),this.$on("hook:destroyed",(()=>{Go.off("updateSettings"),Go.off("accountChanged"),Go.off("familyAccounts"),Go.off("downloadFolderSelected"),Go.off("applogin_arl")}))},methods:{...Do({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 e=this.$refs.loginInput;e.setAttribute("type","text"),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.setAttribute("type","password"),bl(this.$t("settings.toasts.ARLcopied"),"assignment")},changeLocale(e){this.$i18n.locale=e,this.currentLocale=e,localStorage.setItem("locale",e)},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 e=!1;this.lastUser!=this.spotifyUser&&(this.lastUser=(" "+this.spotifyUser).slice(1),localStorage.setItem("spotifyUser",this.lastUser),e=!0),Go.emit("saveSettings",this.lastSettings,this.lastCredentials,!!e&&this.lastUser)},selectDownloadFolder(){Go.emit("selectDownloadFolder")},downloadFolderSelected(e){this.$set(this.settings,"downloadLocation",e)},loadSettings(e){this.lastSettings=JSON.parse(JSON.stringify(e)),this.settings=JSON.parse(JSON.stringify(e))},loadCredentials(e){this.lastCredentials=JSON.parse(JSON.stringify(e)),this.spotifyFeatures=JSON.parse(JSON.stringify(e))},loggedInViaDeezer(e){this.dispatchARL({arl:e}),Go.emit("login",e,!0,this.accountNum)},login(){let e=this.$refs.loginInput.value.trim();e&&e!==this.arl&&Go.emit("login",e,!0,this.accountNum)},appLogin(e){Go.emit("applogin")},changeAccount(){Go.emit("changeAccount",this.accountNum)},accountChanged(e,t){this.$refs.username.innerText=e.name,this.$refs.userpicture.src=`https://e-cdns-images.dzcdn.net/images/user/${e.picture}/125x125-000000-80-0-0.jpg`,this.accountNum=t,localStorage.setItem("accountNum",this.accountNum)},initAccounts(e){this.accounts=e},logout(){Go.emit("logout")},initSettings(e,t){this.loadSettings(e),this.loadCredentials(t),bl(this.$t("settings.toasts.init"),"settings")},updateSettings(e,t){this.loadSettings(e),this.loadCredentials(t),bl(this.$t("settings.toasts.update"),"settings")},resetSettings(){this.settings=JSON.parse(JSON.stringify(this.defaultSettings))}}},undefined,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),i.map&&(a+="\n/*# sourceURL="+i.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}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 e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));var fh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Tracklist.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"relative fixed-footer bg-background-main image-header"},[a("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[a("h1",{staticClass:"flex items-center m-0 text-5xl"},[e._v("\n\t\t\t"+e._s(e.title)+" "),e.explicit?a("i",{staticClass:"material-icons explicit-icon explicit-icon--right"},[e._v("explicit")]):e._e()]),e._v(" "),a("h2",{staticClass:"m-0 mb-3 text-lg"},[e.metadata?a("p",[e._v(e._s(e.metadata))]):e._e(),e._v(" "),e.release_date?a("p",[e._v(e._s(e.release_date))]):e._e()])]),e._v(" "),a("table",{staticClass:"table table--tracklist"},[a("thead",[a("tr",[e._m(0),e._v(" "),a("th",[e._v("#")]),e._v(" "),a("th",[e._v(e._s(e.$tc("globals.listTabs.title",1)))]),e._v(" "),a("th",[e._v(e._s(e.$tc("globals.listTabs.artist",1)))]),e._v(" "),"playlist"===e.type?a("th",[e._v(e._s(e.$tc("globals.listTabs.album",1)))]):e._e(),e._v(" "),e._m(1),e._v(" "),a("th",{staticClass:"table__icon table__cell--center clickable"},[a("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:e.toggleAll}})])])]),e._v(" "),a("tbody",["spotifyPlaylist"!==e.type?[e._l(e.body,(function(t,n){return["track"==t.type?a("tr",{on:{click:function(a){return e.selectRow(n,t)}}},[a("td",{staticClass:"table__cell--x-small table__cell--center"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",e._g({staticClass:"material-icons",class:{preview_playlist_controls:t.preview,"cursor-pointer":t.preview,disabled:!t.preview},attrs:{"data-preview":t.preview,title:e.$t("globals.play_hint")}},{click:!!t.preview&&e.playPausePreview}),[e._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),e._v(" "),a("td",{staticClass:"table__cell--small table__cell--center track_position"},[e._v("\n\t\t\t\t\t\t\t"+e._s("album"===e.type?t.track_position:e.body.indexOf(t)+1)+"\n\t\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__cell--large table__cell--with-icon"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[t.explicit_lyrics?a("i",{staticClass:"material-icons explicit-icon"},[e._v(" explicit ")]):e._e(),e._v("\n\t\t\t\t\t\t\t\t"+e._s(t.title+(t.title_version&&-1==t.title.indexOf(t.title_version)?" "+t.title_version:""))+"\n\t\t\t\t\t\t\t")])]),e._v(" "),a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artist.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.artist.name)+"\n\t\t\t\t\t\t")]),e._v(" "),"playlist"===e.type?a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.album.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.album.title)+"\n\t\t\t\t\t\t")]):e._e(),e._v(" "),a("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===e.type,"table__cell--x-small":"playlist"===e.type}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.convertDuration(t.duration))+"\n\t\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__icon table__cell--center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?e._i(t.selected,null)>-1:t.selected},on:{change:function(a){var n=t.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=e._i(n,null);i.checked?s<0&&e.$set(t,"selected",n.concat([null])):s>-1&&e.$set(t,"selected",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(t,"selected",r)}}})])],1):"disc_separator"==t.type?a("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[e._m(2,!0),e._v(" "),a("td",{staticClass:"table__cell--center"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.number)+"\n\t\t\t\t\t\t")]),e._v(" "),a("td",{attrs:{colspan:"4"}})]):e._e()]}))]:e._l(e.body,(function(t,n){return a("tr",[a("td",[t.preview_url?a("i",{staticClass:"material-icons",class:{preview_playlist_controls:t.preview_url,"cursor-pointer":t.preview_url},attrs:{"data-preview":t.preview_url,title:e.$t("globals.play_hint")},on:{click:e.playPausePreview}},[e._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):a("i",{staticClass:"material-icons disabled"},[e._v("play_arrow")])]),e._v(" "),a("td",[e._v(e._s(n+1))]),e._v(" "),a("td",{staticClass:"flex items-center"},[t.explicit?a("i",{staticClass:"material-icons explicit-icon"},[e._v("explicit")]):e._e(),e._v("\n\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t")]),e._v(" "),a("td",[e._v(e._s(t.artists[0].name))]),e._v(" "),a("td",[e._v(e._s(t.album.name))]),e._v(" "),a("td",[e._v(e._s(e.convertDuration(Math.floor(t.duration_ms/1e3))))]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?e._i(t.selected,null)>-1:t.selected},on:{change:function(a){var n=t.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=e._i(n,null);i.checked?s<0&&e.$set(t,"selected",n.concat([null])):s>-1&&e.$set(t,"selected",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(t,"selected",r)}}})])])}))],2)]),e._v(" "),e.label?a("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[e._v(e._s(e.label))]):e._e(),e._v(" "),a("footer",{staticClass:"bg-background-main"},[a("button",{staticClass:"mr-2 btn btn-primary",attrs:{"data-link":e.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(""+e.$t("globals.download",{thing:e.$tc("globals.listTabs."+e.type,1)}))+"\n\t\t")]),e._v(" "),a("button",{staticClass:"flex items-center btn btn-primary",attrs:{"data-link":e.selectedLinks()},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(e.$t("tracklist.downloadSelection"))),a("i",{staticClass:"ml-2 material-icons"},[e._v("file_download")])])])])},staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",[a("i",{staticClass:"material-icons"},[e._v("music_note")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",[a("i",{staticClass:"material-icons"},[e._v("timer")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[a("i",{staticClass:"material-icons"},[e._v("album")])])])}]},0,{data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),mounted(){il.$on("tracklistTab:selectRow",this.selectRow),Go.on("show_album",this.showAlbum),Go.on("show_playlist",this.showPlaylist),Go.on("show_spotifyplaylist",this.showSpotifyPlaylist)},methods:{playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)},reset(){this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(e){Ko.sendAddToQueue(e.currentTarget.dataset.link)},toggleAll(e){this.body.forEach((t=>{"track"==t.type&&(t.selected=e.currentTarget.checked)}))},selectedLinks(){var e=[];return this.body&&this.body.forEach((t=>{"track"==t.type&&t.selected&&e.push("spotifyPlaylist"==this.type?t.uri:t.link)})),e.join(";")},convertDuration:tl.convertDuration,showAlbum(e){this.reset();const{id:t,title:a,explicit_lyrics:n,label:i,artist:{name:r},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=e;this.type="album",this.link="https://www.deezer.com/album/"+t,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,Sm(s)?this.body=null:this.body=s},showPlaylist(e){this.reset();const{id:t,title:a,picture_xl:n,creation_date:i,creator:{name:r},tracks:s,tracks:{length:o}}=e;this.type="playlist",this.link="https://www.deezer.com/playlist/"+t,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)}`,Sm(s)?this.body=null:this.body=s},showSpotifyPlaylist(e){this.reset();const{uri:t,name:a,images:n,images:{length:i},owner:{display_name:r},tracks:s,tracks:{length:o}}=e;this.type="spotifyPlaylist",this.link=t,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)}`,Sm(s)?this.body=null:this.body=s},selectRow(e,t){t.selected=!t.selected}}},undefined,!1);xa.use(su);const gh=new su({mode:"history",routes:[{path:"/",name:"Home",component:Hm,meta:{notKeepAlive:!0}},{path:"/tracklist/:type/:id",name:"Tracklist",component:fh},{path:"/artist/:id",name:"Artist",component:Dm},{path:"/album/:id",name:"Album",component:fh},{path:"/playlist/:id",name:"Playlist",component:fh},{path:"/spotify-playlist/:id",name:"Spotify Playlist",component:fh},{path:"/charts",name:"Charts",component:$m,meta:{notKeepAlive:!0}},{path:"/favorites",name:"Favorites",component:Bm,meta:{notKeepAlive:!0}},{path:"/errors",name:"Errors",component:Rm},{path:"/link-analyzer",name:"Link Analyzer",component:Km},{path:"/about",name:"About",component:cu},{path:"/settings",name:"Settings",component:hh},{path:"/search",name:"Search",component:lh},{path:"*",component:Hm}],scrollBehavior:(e,t,a)=>({x:0,y:0})});gh.beforeEach(((e,t,a)=>{let n=null;switch(e.name){case"Artist":n={type:"artist",id:e.params.id};break;case"Tracklist":n={type:e.params.type,id:e.params.id};break;case"Album":n={type:"album",id:e.params.id};break;case"Playlist":n={type:"playlist",id:e.params.id};break;case"Spotify Playlist":n={type:"spotifyplaylist",id:e.params.id}}n&&Go.emit("getTracklist",n),a()})),window.vol={preview_max_volume:100},document.addEventListener("DOMContentLoaded",(function(){new xa({store:Vo,router:gh,i18n:gc,render:e=>e(yl)}).$mount("#app")})),window.addEventListener("pywebviewready",(function(){Vo.dispatch("setClientMode",!0),document.addEventListener("keyup",(e=>{e.altKey&&"ArrowLeft"===e.key&&gh.back(),e.altKey&&"ArrowRight"===e.key&&gh.forward()}))})),document.addEventListener("paste",(e=>{if("input"===e.target.localName)return;let t=e.clipboardData.getData("Text");if(Yo(t))"Link Analyzer"===gh.currentRoute.name?Go.emit("analyzeLink",t):Wo(t);else{let e=document.querySelector("#searchbar");e.select(),e.setSelectionRange(0,99999)}})),Go.on("message",(function(e){console.log(e)})),Go.on("logging_in",(function(){bl(gc.t("toasts.loggingIn"),"loading",!1,"login-toast")})),Go.on("init_autologin",(function(){let e=localStorage.getItem("arl"),t=localStorage.getItem("accountNum");e&&(e=e.trim(),0!=t?Go.emit("login",e,!0,t):Go.emit("login",e))})),Go.on("logged_in",(function(e){const{status:t,user:a}=e;switch(t){case 1:case 3:bl(gc.t("toasts.loggedIn"),"done",!0,"login-toast"),Vo.dispatch("login",e);break;case 2:bl(gc.t("toasts.alreadyLogged"),"done",!0,"login-toast"),Vo.dispatch("setUser",a);break;case 0:bl(gc.t("toasts.loginFailed"),"close",!0,"login-toast"),Vo.dispatch("removeARL");break;case-1:return void bl(gc.t("toasts.deezerNotAvailable"),"close",!0,"login-toast")}})),Go.on("logged_out",(function(){bl(gc.t("toasts.loggedOut"),"done",!0,"login-toast"),Vo.dispatch("logout")})),Go.on("restoringQueue",(function(){bl(gc.t("toasts.restoringQueue"),"loading",!1,"restoring_queue")})),Go.on("cancellingCurrentItem",(function(e){bl(gc.t("toasts.cancellingCurrentItem"),"loading",!1,"cancelling_"+e)})),Go.on("currentItemCancelled",(function(e){bl(gc.t("toasts.currentItemCancelled"),"done",!0,"cancelling_"+e)})),Go.on("startAddingArtist",(function(e){bl(gc.t("toasts.startAddingArtist",{artist:e.name}),"loading",!1,"artist_"+e.id)})),Go.on("finishAddingArtist",(function(e){bl(gc.t("toasts.finishAddingArtist",{artist:e.name}),"done",!0,"artist_"+e.id)})),Go.on("startConvertingSpotifyPlaylist",(function(e){bl(gc.t("toasts.startConvertingSpotifyPlaylist"),"loading",!1,"spotifyplaylist_"+e)})),Go.on("finishConvertingSpotifyPlaylist",(function(e){bl(gc.t("toasts.finishConvertingSpotifyPlaylist"),"done",!0,"spotifyplaylist_"+e)})),Go.on("errorMessage",(function(e){bl(e,"error")})),Go.on("queueError",(function(e){e.errid?bl(e.link+" - "+gc.t("errors.ids."+e.errid),"error"):bl(e.link+" - "+e.error,"error")})),Go.on("alreadyInQueue",(function(e){bl(gc.t("toasts.alreadyInQueue",{item:e.title}),"playlist_add_check")})),Go.on("loginNeededToDownload",(function(e){bl(gc.t("toasts.loginNeededToDownload"),"report")})),Go.on("startGeneratingItems",(function(e){bl(gc.t("toasts.startGeneratingItems",{n:e.total}),"loading",!1,"batch_"+e.uuid)})),Go.on("finishGeneratingItems",(function(e){bl(gc.t("toasts.finishGeneratingItems",{n:e.total}),"done",!0,"batch_"+e.uuid)})); + */function vc(e,t){for(var a in t)e[a]=t[a];return e}var bc=/[!'()*]/g,yc=function(e){return"%"+e.charCodeAt(0).toString(16)},kc=/%2C/g,_c=function(e){return encodeURIComponent(e).replace(bc,yc).replace(kc,",")};function wc(e){try{return decodeURIComponent(e)}catch(e){}return e}var Ac=function(e){return null==e||"object"==typeof e?e:String(e)};function xc(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var a=e.replace(/\+/g," ").split("="),n=wc(a.shift()),i=a.length>0?wc(a.join("=")):null;void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]})),t):t}function zc(e){var t=e?Object.keys(e).map((function(t){var a=e[t];if(void 0===a)return"";if(null===a)return _c(t);if(Array.isArray(a)){var n=[];return a.forEach((function(e){void 0!==e&&(null===e?n.push(_c(t)):n.push(_c(t)+"="+_c(e)))})),n.join("&")}return _c(t)+"="+_c(a)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var Cc=/\/?$/;function Sc(e,t,a,n){var i=n&&n.options.stringifyQuery,r=t.query||{};try{r=Tc(r)}catch(e){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:r,params:t.params||{},fullPath:Dc(t,i),matched:e?Fc(e):[]};return a&&(s.redirectedFrom=Dc(a,i)),Object.freeze(s)}function Tc(e){if(Array.isArray(e))return e.map(Tc);if(e&&"object"==typeof e){var t={};for(var a in e)t[a]=Tc(e[a]);return t}return e}var Mc=Sc(null,{path:"/"});function Fc(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Dc(e,t){var a=e.path,n=e.query;void 0===n&&(n={});var i=e.hash;return void 0===i&&(i=""),(a||"/")+(t||zc)(n)+i}function Pc(e,t){return t===Mc?e===t:!!t&&(e.path&&t.path?e.path.replace(Cc,"")===t.path.replace(Cc,"")&&e.hash===t.hash&&Nc(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&Nc(e.query,t.query)&&Nc(e.params,t.params)))}function Nc(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var a=Object.keys(e).sort(),n=Object.keys(t).sort();return a.length===n.length&&a.every((function(a,i){var r=e[a];if(n[i]!==a)return!1;var s=t[a];return null==r||null==s?r===s:"object"==typeof r&&"object"==typeof s?Nc(r,s):String(r)===String(s)}))}function Lc(e){for(var t=0;t=0&&(t=e.slice(n),e=e.slice(0,n));var i=e.indexOf("?");return i>=0&&(a=e.slice(i+1),e=e.slice(0,i)),{path:e,query:a,hash:t}}(i.path||""),c=t&&t.path||"/",d=l.path?Rc(l.path,c,a||i.append):c,u=function(e,t,a){void 0===t&&(t={});var n,i=a||xc;try{n=i(e||"")}catch(e){n={}}for(var r in t){var s=t[r];n[r]=Array.isArray(s)?s.map(Ac):Ac(s)}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 rd,sd=function(){},od={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(e){var t=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,m=null==this.activeClass?u:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,f=s.redirectedFrom?Sc(null,id(s.redirectedFrom),null,a):s;l[h]=Pc(n,f),l[m]=this.exact?l[h]:function(e,t){return 0===e.path.replace(Cc,"/").indexOf(t.path.replace(Cc,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var a in t)if(!(a in e))return!1;return!0}(e.query,t.query)}(n,f);var g=l[h]?this.ariaCurrentValue:null,v=function(e){ld(e)&&(t.replace?a.replace(r,sd):a.push(r,sd))},b={click:ld};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=v})):b[this.event]=v;var y={class:l},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:v,isActive:l[m],isExactActive:l[h]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)y.on=b,y.attrs={href:o,"aria-current":g};else{var _=cd(this.$slots.default);if(_){_.isStatic=!1;var w=_.data=vc({},_.data);for(var A in w.on=w.on||{},w.on){var x=w.on[A];A in b&&(w.on[A]=Array.isArray(x)?x:[x])}for(var z in b)z in w.on?w.on[z].push(b[z]):w.on[z]=v;var C=_.data.attrs=vc({},_.data.attrs);C.href=o,C["aria-current"]=g}else y.on=b}return e(this.tag,y,this.$slots.default)}};function ld(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cd(e){if(e)for(var t,a=0;a-1&&(o.params[p]=a.params[p]);return o.path=nd(d.path,o.params),l(d,o,s)}if(o.path){o.params={};for(var m=0;m=e.length?a():e[i]?t(e[i],(function(){n(i+1)})):n(i+1)};n(0)}var $d={redirected:2,aborted:4,cancelled:8,duplicated:16};function Rd(e,t){return jd(e,t,$d.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Od.forEach((function(a){a in e&&(t[a]=e[a])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function Id(e,t){return jd(e,t,$d.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function jd(e,t,a,n){var i=new Error(n);return i._isRouter=!0,i.from=e,i.to=t,i.type=a,i}var Od=["params","query","hash"];function Ed(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Bd(e,t){return Ed(e)&&e._isRouter&&(null==t||e.type===t)}function qd(e){return function(t,a,n){var i=!1,r=0,s=null;Vd(e,(function(e,t,a,o){if("function"==typeof e&&void 0===e.cid){i=!0,r++;var l,c=Wd((function(t){var i;((i=t).__esModule||Hd&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:rd.extend(t),a.components[o]=t,--r<=0&&n()})),d=Wd((function(e){var t="Failed to resolve async component "+o+": "+e;s||(s=Ed(e)?e:new Error(t),n(s))}));try{l=e(c,d)}catch(e){d(e)}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 Vd(e,t){return Gd(e.map((function(e){return Object.keys(e.components).map((function(a){return t(e.components[a],e.instances[a],e,a)}))})))}function Gd(e){return Array.prototype.concat.apply([],e)}var Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Wd(e){var t=!1;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];if(!t)return t=!0,e.apply(this,a)}}var Kd=function(e,t){this.router=e,this.base=function(e){if(!e)if(dd){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=Mc,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Yd(e,t,a,n){var i=Vd(e,(function(e,n,i,r){var s=function(e,t){"function"!=typeof e&&(e=rd.extend(e));return e.options[t]}(e,t);if(s)return Array.isArray(s)?s.map((function(e){return a(e,n,i,r)})):a(s,n,i,r)}));return Gd(n?i.reverse():i)}function Qd(e,t){if(t)return function(){return e.apply(t,arguments)}}Kd.prototype.listen=function(e){this.cb=e},Kd.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Kd.prototype.onError=function(e){this.errorCbs.push(e)},Kd.prototype.transitionTo=function(e,t,a){var n,i=this;try{n=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var r=this.current;this.confirmTransition(n,(function(){i.updateRoute(n),t&&t(n),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(n,r)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(n)})))}),(function(e){a&&a(e),e&&!i.ready&&(Bd(e,$d.redirected)&&r===Mc||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},Kd.prototype.confirmTransition=function(e,t,a){var n=this,i=this.current;this.pending=e;var r=function(e){!Bd(e)&&Ed(e)&&(n.errorCbs.length?n.errorCbs.forEach((function(t){t(e)})):console.error(e)),a&&a(e)},s=e.matched.length-1,o=i.matched.length-1;if(Pc(e,i)&&s===o&&e.matched[s]===i.matched[o])return this.ensureURL(),r(function(e,t){var a=jd(e,t,$d.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return a.name="NavigationDuplicated",a}(i,e));var l=function(e,t){var a,n=Math.max(e.length,t.length);for(a=0;a0)){var t=this.router,a=t.options.scrollBehavior,n=Pd&&a;n&&this.listeners.push(wd());var i=function(){var a=e.current,i=Zd(e.base);e.current===Mc&&i===e._startLocation||e.transitionTo(i,(function(e){n&&Ad(t,e,a,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){Nd(Ic(n.base+e.fullPath)),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.replace=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){Ld(Ic(n.base+e.fullPath)),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.ensureURL=function(e){if(Zd(this.base)!==this.current.fullPath){var t=Ic(this.base+this.current.fullPath);e?Nd(t):Ld(t)}},t.prototype.getCurrentLocation=function(){return Zd(this.base)},t}(Kd);function Zd(e){var t=window.location.pathname;return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Xd=function(e){function t(t,a,n){e.call(this,t,a),n&&function(e){var t=Zd(e);if(!/^\/#/.test(t))return window.location.replace(Ic(e+"/#"+t)),!0}(this.base)||eu()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,a=Pd&&t;a&&this.listeners.push(wd());var n=function(){var t=e.current;eu()&&e.transitionTo(tu(),(function(n){a&&Ad(e.router,n,t,!0),Pd||iu(n.fullPath)}))},i=Pd?"popstate":"hashchange";window.addEventListener(i,n),this.listeners.push((function(){window.removeEventListener(i,n)}))}},t.prototype.push=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){nu(e.fullPath),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.replace=function(e,t,a){var n=this,i=this.current;this.transitionTo(e,(function(e){iu(e.fullPath),Ad(n.router,e,i,!1),t&&t(e)}),a)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;tu()!==t&&(e?nu(t):iu(t))},t.prototype.getCurrentLocation=function(){return tu()},t}(Kd);function eu(){var e=tu();return"/"===e.charAt(0)||(iu("/"+e),!1)}function tu(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function au(e){var t=window.location.href,a=t.indexOf("#");return(a>=0?t.slice(0,a):t)+"#"+e}function nu(e){Pd?Nd(au(e)):window.location.hash=e}function iu(e){Pd?Ld(au(e)):window.location.replace(au(e))}var ru=function(e){function t(t,a){e.call(this,t,a),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,a){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index+1).concat(e),n.index++,t&&t(e)}),a)},t.prototype.replace=function(e,t,a){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index).concat(e),t&&t(e)}),a)},t.prototype.go=function(e){var t=this,a=this.index+e;if(!(a<0||a>=this.stack.length)){var n=this.stack[a];this.confirmTransition(n,(function(){var e=t.current;t.index=a,t.updateRoute(n),t.router.afterHooks.forEach((function(t){t&&t(n,e)}))}),(function(e){Bd(e,$d.duplicated)&&(t.index=a)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Kd),su=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=hd(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Pd&&!1!==e.fallback,this.fallback&&(t="hash"),dd||(t="abstract"),this.mode=t,t){case"history":this.history=new Jd(this,e.base);break;case"hash":this.history=new Xd(this,e.base,this.fallback);break;case"abstract":this.history=new ru(this,e.base)}},ou={currentRoute:{configurable:!0}};function lu(e,t){return e.push(t),function(){var a=e.indexOf(t);a>-1&&e.splice(a,1)}}su.prototype.match=function(e,t,a){return this.matcher.match(e,t,a)},ou.currentRoute.get=function(){return this.history&&this.history.current},su.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var a=t.apps.indexOf(e);a>-1&&t.apps.splice(a,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var a=this.history;if(a instanceof Jd||a instanceof Xd){var n=function(e){a.setupListeners(),function(e){var n=a.current,i=t.options.scrollBehavior;Pd&&i&&"fullPath"in e&&Ad(t,e,n,!1)}(e)};a.transitionTo(a.getCurrentLocation(),n,n)}a.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},su.prototype.beforeEach=function(e){return lu(this.beforeHooks,e)},su.prototype.beforeResolve=function(e){return lu(this.resolveHooks,e)},su.prototype.afterEach=function(e){return lu(this.afterHooks,e)},su.prototype.onReady=function(e,t){this.history.onReady(e,t)},su.prototype.onError=function(e){this.history.onError(e)},su.prototype.push=function(e,t,a){var n=this;if(!t&&!a&&"undefined"!=typeof Promise)return new Promise((function(t,a){n.history.push(e,t,a)}));this.history.push(e,t,a)},su.prototype.replace=function(e,t,a){var n=this;if(!t&&!a&&"undefined"!=typeof Promise)return new Promise((function(t,a){n.history.replace(e,t,a)}));this.history.replace(e,t,a)},su.prototype.go=function(e){this.history.go(e)},su.prototype.back=function(){this.go(-1)},su.prototype.forward=function(){this.go(1)},su.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},su.prototype.resolve=function(e,t,a){var n=id(e,t=t||this.history.current,a,this),i=this.match(n,t),r=i.redirectedFrom||i.fullPath;return{location:n,route:i,href:function(e,t,a){var n="hash"===a?"#"+t:t;return e?Ic(e+"/"+n):n}(this.history.base,r,this.mode),normalizedTo:n,resolved:i}},su.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Mc&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(su.prototype,ou),su.install=function e(t){if(!e.installed||rd!==t){e.installed=!0,rd=t;var a=function(e){return void 0!==e},n=function(e,t){var n=e.$options._parentVnode;a(n)&&a(n=n.data)&&a(n=n.registerRouteInstance)&&n(e,t)};t.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.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(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",Uc),t.component("RouterLink",od);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},su.version="3.4.8",su.isNavigationFailure=Bd,su.NavigationFailureType=$d,dd&&window.Vue&&window.Vue.use(su);var cu=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="About.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",attrs:{id:"about_tab"}},[a("h1",{staticClass:"mb-8 text-5xl capitalize"},[e._v(e._s(e.$t("sidebar.about")))]),e._v(" "),a("ul",[a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.updates.currentVersion"))+":\n\t\t\t"),a("span",[e._v(e._s(e.current||e.$t("about.updates.versionNotAvailable")))])]),e._v(" "),a("li",[e._v(e._s(e.$t("about.updates.deemixVersion"))+": "+e._s(e.deemixVersion))]),e._v(" "),e.updateAvailable&&e.latest?a("li",[e._v(e._s(e.$t("about.updates.updateAvailable",{version:e.latest})))]):e._e()]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.usesLibrary"))}}),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.thanks"))}}),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.upToDate"))}})]),e._v(" "),a("h2",[e._v(e._s(e.$t("about.titles.usefulLinks")))]),e._v(" "),a("ul",{staticClass:"no-dots"},[a("li",[a("a",{attrs:{href:"https://git.fuwafuwa.moe/RemixDev/deemix",target:"_blank"}},[e._v("🚀 "+e._s(e.$t("about.officialRepo")))])]),e._v(" "),a("li",[a("a",{attrs:{href:"https://git.fuwafuwa.moe/RemixDev/deemix-webui",target:"_blank"}},[e._v("\n\t\t\t\t💻 "+e._s(e.$t("about.officialWebuiRepo"))+"\n\t\t\t")])]),e._v(" "),a("li",[a("a",{attrs:{href:"https://www.reddit.com/r/deemix",target:"_blank"}},[e._v("🤖 "+e._s(e.$t("about.officialSubreddit")))])]),e._v(" "),a("li",[a("a",{attrs:{href:"https://t.me/RemixDevNews",target:"_blank"}},[e._v("📰 "+e._s(e.$t("about.newsChannel")))])])]),e._v(" "),a("h2",[e._v("\n\t\t"+e._s(e.$t("about.titles.bugReports"))+"\n\t\t"),a("span",{staticClass:"subheading"},[e._v("\n\t\t\t"+e._s(e.$t("about.subtitles.bugReports"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.questions"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.beforeReporting"))+"\n\t\t")]),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.beSure"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.duplicateReports"))+"\n\t\t")]),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.dontOpenIssues"))}})]),e._v(" "),a("h2",[e._v("\n\t\t"+e._s(e.$t("about.titles.contributing"))+"\n\t\t"),a("span",{staticClass:"subheading"},[e._v("\n\t\t\t"+e._s(e.$t("about.subtitles.contributing"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.newUI"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.acceptFeatures"))+"\n\t\t")]),e._v(" "),a("li",{domProps:{innerHTML:e._s(e.$t("about.contributeWebUI"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.otherLanguages"))+"\n\t\t")]),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.understandingCode"))+"\n\t\t")])]),e._v(" "),a("h2",[e._v("\n\t\t"+e._s(e.$t("about.titles.donations"))+"\n\t\t"),a("span",{staticClass:"subheading"},[e._v("\n\t\t\t"+e._s(e.$t("about.subtitles.donations"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",{domProps:{innerHTML:e._s(e.$t("about.itsFree"))}}),e._v(" "),a("li",[e._v("\n\t\t\t"+e._s(e.$t("about.notObligated"))+"\n\t\t")])]),e._v(" "),a("ul",[a("li",[a("i",{domProps:{innerHTML:e._s(e.paypal)}}),e._v(" "),a("strong",[e._v("PayPal:")]),e._v(" "),a("a",{attrs:{href:"https://paypal.me/RemixDev",target:"_blank"}},[e._v("PayPal.me/RemixDev")])]),e._v(" "),a("li",[a("i",{staticClass:"ethereum",domProps:{innerHTML:e._s(e.ethereum)}}),e._v(" "),a("strong",[e._v("Ethereum:")]),e._v(" 0x1d2aa67e671485CD4062289772B662e0A6Ff976c\n\t\t")])]),e._v(" "),a("h2",[e._v(e._s(e.$t("about.titles.license")))]),e._v(" "),e._m(0),e._v(" "),a("p",{domProps:{innerHTML:e._s(e.$t("about.lincensedUnder"))}})])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[t("a",{attrs:{rel:"license",href:"https://www.gnu.org/licenses/gpl-3.0.en.html",target:"_blank"}},[t("img",{staticStyle:{"border-width":"0"},attrs:{alt:"GNU General Public License",src:"https://www.gnu.org/graphics/gplv3-127x51.png"}})])])}]},(function(e){e&&e("data-v-209eee54_0",{source:"@charset \"UTF-8\";a[data-v-209eee54],li[data-v-209eee54],p[data-v-209eee54]{letter-spacing:.4px;font-size:20px;line-height:1.2}i[data-v-209eee54]{vertical-align:middle}i[data-v-209eee54] svg{fill:#fff;width:20px}.ethereum[data-v-209eee54] svg{fill:var(--foreground)}[data-v-209eee54]:link{text-decoration:none}#about_tab[data-v-209eee54]{margin-bottom:40px}h2[data-v-209eee54]{text-transform:capitalize}h2[data-v-209eee54]:not(.page_heading){font-size:2rem;border-bottom:1px solid rgba(51,51,51,.25);padding-top:2rem;padding-bottom:1rem}h2 .subheading[data-v-209eee54]{display:block;font-size:.5em;margin-top:.5em;font-weight:400;opacity:.8;text-transform:none}p[data-v-209eee54]{margin:0!important}ul li[data-v-209eee54]{margin-bottom:7px}h2+ul[data-v-209eee54]{margin-top:1rem}ul+ul[data-v-209eee54]{margin-top:1.25rem}ul.no-dots[data-v-209eee54]{list-style-type:none}ul[data-v-209eee54]:not(.no-dots){list-style-type:none}ul:not(.no-dots) li[data-v-209eee54]{position:relative}ul:not(.no-dots) li[data-v-209eee54]::before{content:'—';position:absolute;left:-30px;opacity:.25}",map:void 0,media:void 0})}),{data:()=>({paypal:'\r\n\x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n',ethereum:'',current:null,latest:null,updateAvailable:!1,deemixVersion:null}),computed:{...Fo(["getAboutInfo"])},methods:{initUpdate(e){const{currentCommit:t,latestCommit:a,updateAvailable:n,deemixVersion:i}=e;this.current=t,this.latest=a,this.updateAvailable=n,this.deemixVersion=i}},mounted(){this.initUpdate(this.getAboutInfo)}},"data-v-209eee54",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),i.map&&(a+="\n/*# sourceURL="+i.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}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 e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}})),du="object"==typeof global&&global&&global.Object===Object&&global,uu="object"==typeof self&&self&&self.Object===Object&&self,pu=du||uu||Function("return this")(),mu=pu.Symbol,hu=Object.prototype,fu=hu.hasOwnProperty,gu=hu.toString,vu=mu?mu.toStringTag:void 0;var bu=Object.prototype.toString;var yu=mu?mu.toStringTag:void 0;function ku(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yu&&yu in Object(e)?function(e){var t=fu.call(e,vu),a=e[vu];try{e[vu]=void 0;var n=!0}catch(e){}var i=gu.call(e);return n&&(t?e[vu]=a:delete e[vu]),i}(e):function(e){return bu.call(e)}(e)}function _u(e){return null!=e&&"object"==typeof e}function wu(e){return"symbol"==typeof e||_u(e)&&"[object Symbol]"==ku(e)}function Au(e,t){for(var a=-1,n=null==e?0:e.length,i=Array(n);++a-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Ku(e){return null!=e&&Wu(e.length)&&!Fu(e)}var Yu=Object.prototype;function Qu(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yu)}function Ju(e){return _u(e)&&"[object Arguments]"==ku(e)}var Zu=Object.prototype,Xu=Zu.hasOwnProperty,ep=Zu.propertyIsEnumerable,tp=Ju(function(){return arguments}())?Ju:function(e){return _u(e)&&Xu.call(e,"callee")&&!ep.call(e,"callee")};var ap="object"==typeof exports&&exports&&!exports.nodeType&&exports,np=ap&&"object"==typeof module&&module&&!module.nodeType&&module,ip=np&&np.exports===ap?pu.Buffer:void 0,rp=(ip?ip.isBuffer:void 0)||function(){return!1},sp={};function op(e){return function(t){return e(t)}}sp["[object Float32Array]"]=sp["[object Float64Array]"]=sp["[object Int8Array]"]=sp["[object Int16Array]"]=sp["[object Int32Array]"]=sp["[object Uint8Array]"]=sp["[object Uint8ClampedArray]"]=sp["[object Uint16Array]"]=sp["[object Uint32Array]"]=!0,sp["[object Arguments]"]=sp["[object Array]"]=sp["[object ArrayBuffer]"]=sp["[object Boolean]"]=sp["[object DataView]"]=sp["[object Date]"]=sp["[object Error]"]=sp["[object Function]"]=sp["[object Map]"]=sp["[object Number]"]=sp["[object Object]"]=sp["[object RegExp]"]=sp["[object Set]"]=sp["[object String]"]=sp["[object WeakMap]"]=!1;var lp="object"==typeof exports&&exports&&!exports.nodeType&&exports,cp=lp&&"object"==typeof module&&module&&!module.nodeType&&module,dp=cp&&cp.exports===lp&&du.process,up=function(){try{var e=cp&&cp.require&&cp.require("util").types;return e||dp&&dp.binding&&dp.binding("util")}catch(e){}}(),pp=up&&up.isTypedArray,mp=pp?op(pp):function(e){return _u(e)&&Wu(e.length)&&!!sp[ku(e)]},hp=Object.prototype.hasOwnProperty;function fp(e,t){var a=xu(e),n=!a&&tp(e),i=!a&&!n&&rp(e),r=!a&&!n&&!i&&mp(e),s=a||n||i||r,o=s?function(e,t){for(var a=-1,n=Array(e);++a-1},Dp.prototype.set=function(e,t){var a=this.__data__,n=Mp(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this};var Pp=Bu(pu,"Map");function Np(e,t){var a,n,i=e.__data__;return("string"==(n=typeof(a=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?i["string"==typeof t?"string":"hash"]:i.map}function Lp(e){var t=-1,a=null==e?0:e.length;for(this.clear();++to))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var d=-1,u=!0,p=2&a?new im:void 0;for(r.set(e,t),r.set(t,e);++dt||r&&s&&l&&!o&&!c||n&&s&&l||!a&&l||!i)return 1;if(!n&&!r&&!c&&e=o?l:l*("desc"==a[n]?-1:1)}return e.index-t.index}(e,t,a)}))}function Fm(e,t,a,n){return null==e?[]:(xu(t)||(t=null==t?[]:[t]),xu(a=n?void 0:a)||(a=null==a?[]:[a]),Mm(e,t,a))}var Dm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Artist.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"relative image-header",attrs:{id:"artist_tab"}},[a("header",{staticClass:"flex items-center",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[a("h1",{staticClass:"m-0"},[e._v(e._s(e.title))]),e._v(" "),a("div",{staticClass:"rounded-full bg-primary text-grayscale-870 cursor-pointer w-16 h-16 grid place-items-center ml-auto",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"material-icons text-4xl",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),a("div",{staticClass:"my-4"},e._l(e.body,(function(t,n){return a("button",{key:n,staticClass:"mr-2 btn bg-background-main",class:{"btn-primary":n===e.currentTab},attrs:{href:"#artist_"+n},on:{click:function(t){return e.changeTab(n)}}},[e._v("\n\t\t\t"+e._s(e.$tc("globals.listTabs."+n,2))+"\n\t\t")])})),0),e._v(" "),a("table",{staticClass:"table"},[a("thead",[a("tr",e._l(e.head,(function(t){return a("th",{class:{"sort-asc":t.sortKey==e.sortKey&&"asc"==e.sortOrder,"sort-desc":t.sortKey==e.sortKey&&"desc"==e.sortOrder,sortable:t.sortKey,clickable:t.sortKey},style:{width:t.width?t.width:"auto"},on:{click:function(a){t.sortKey&&e.sortBy(t.sortKey)}}},[e._v("\n\t\t\t\t\t"+e._s(t.title)+"\n\t\t\t\t")])})),0)]),e._v(" "),a("tbody",e._l(e.showTable,(function(t){return a("tr",{key:t.id},[a("router-link",{staticClass:"flex items-center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.id}}}},[a("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:t.cover_small}}),e._v(" "),t.explicit_lyrics?a("i",{staticClass:"material-icons explicit-icon"},[e._v(" explicit ")]):e._e(),e._v("\n\t\t\t\t\t"+e._s(t.title)+"\n\t\t\t\t\t"),e.checkNewRelease(t.release_date)?a("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[e._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):e._e()]),e._v(" "),a("td",[e._v(e._s(t.release_date))]),e._v(" "),a("td",[e._v(e._s(t.nb_song))]),e._v(" "),a("td",{staticClass:"clickable",attrs:{"data-link":t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v(" file_download ")])])],1)})),0)])])},staticRenderFns:[]},0,{data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),computed:{showTable(){return this.body?"nb_song"==this.sortKey?Fm(this.body[this.currentTab],(function(e){return new Number(e.nb_song)}),this.sortOrder):Fm(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){Go.on("show_artist",this.showArtist),il.$on("artistTab:updateSelected",this.updateSelected),il.$on("artistTab:changeTab",this.changeTab)},methods:{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(e){e.stopPropagation(),Ko.sendAddToQueue(e.currentTarget.dataset.link)},sortBy(e){e==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=e,this.sortOrder="asc")},changeTab(e){this.currentTab=e},updateSelected(){},checkNewRelease(e){let t=new Date,a=new Date(e);return a.setDate(a.getDate()+3),t.setHours(0,0,0,0),t.getTime()<=a.getTime()},showArtist(e){this.reset();const{name:t,picture_xl:a,id:n,releases:i}=e;this.title=t,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"}],Sm(i)?this.body=null:this.body=i}}},undefined,!1);let Pm={},Nm=!1;function Lm(){return Nm?Pm:(Go.emit("get_charts_data"),new Promise(((e,t)=>{Go.on("init_charts",(t=>{Pm=t,Nm=!0,Go.off("init_charts"),e(t)}))})))}var Um=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="PreviewControls.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{staticClass:"absolute top-0 right-0 flex items-center justify-center w-full h-full text-center transition-opacity duration-200 ease-in-out bg-black bg-opacity-50 rounded opacity-0 material-icons preview_controls",attrs:{title:e.$t("globals.play_hint")},on:{mouseenter:e.previewMouseEnter,mouseleave:e.previewMouseLeave}},[e._v("\n\tplay_arrow\n")])},staticRenderFns:[]},0,{methods:{previewMouseEnter(e){il.$emit("trackPreview:previewMouseEnter",e)},previewMouseLeave(e){il.$emit("trackPreview:previewMouseLeave",e)}}},undefined,!1);var $m=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Charts.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h1",{staticClass:"mb-8 text-5xl"},[e._v(e._s(e.$t("charts.title")))]),e._v(" "),""===e.country?a("div",[a("div",{staticClass:"release_grid charts_grid"},e._l(e.countries,(function(t){return a("div",{key:t.id,staticClass:"w-40 h-40 release clickable",attrs:{role:"button","aria-label":t.title,"data-title":t.title,"data-id":t.id},on:{click:e.getTrackList}},[a("img",{staticClass:"w-full rounded coverart",attrs:{src:t.picture_medium}})])})),0)]):a("div",[a("button",{staticClass:"btn btn-primary",on:{click:e.onChangeCountry}},[e._v(e._s(e.$t("charts.changeCountry")))]),e._v(" "),a("button",{staticClass:"btn btn-primary",attrs:{"data-link":"https://www.deezer.com/playlist/"+e.id},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(e.$t("charts.download"))+"\n\t\t")]),e._v(" "),a("table",{staticClass:"table table--charts"},[a("tbody",e._l(e.chart,(function(t){return a("tr",{staticClass:"track_row"},[a("td",{staticClass:"p-3 text-center cursor-default",class:{first:1===t.position}},[e._v("\n\t\t\t\t\t\t"+e._s(t.position)+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__icon table__icon--big"},[a("a",{staticClass:"rounded",class:{"single-cover":t.preview},attrs:{href:"#","data-preview":t.preview},on:{click:e.playPausePreview}},[t.preview?a("PreviewControls"):e._e(),e._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:t.album.cover_small}})],1)]),e._v(" "),a("td",{staticClass:"table__cell--large"},[e._v("\n\t\t\t\t\t\t"+e._s(t.title+(t.title_version&&-1==t.title.indexOf(t.title_version)?" "+t.title_version:""))+"\n\t\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artist.id}}}},[e._v("\n\t\t\t\t\t\t"+e._s(t.artist.name)+"\n\t\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.album.id}}}},[e._v("\n\t\t\t\t\t\t"+e._s(t.album.title)+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__cell--small table__cell--center"},[e._v("\n\t\t\t\t\t\t"+e._s(e.convertDuration(t.duration))+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"cursor-pointer group",attrs:{"data-link":t.link,role:"button","aria-label":"download"},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"transition-colors duration-150 ease-in-out material-icons group-hover:text-primary",attrs:{title:e.$t("globals.download_hint")}},[e._v("\n\t\t\t\t\t\t\tget_app\n\t\t\t\t\t\t")])])],1)})),0)])])])},staticRenderFns:[]},0,{components:{PreviewControls:Um},data:()=>({country:"",id:0,countries:[],chart:[]}),computed:{worldwideRelease(){return this.countries.filter((e=>"Worldwide"===e.title))[0]}},async created(){Go.on("setChartTracks",this.setTracklist),this.$on("hook:destroyed",(()=>{Go.off("setChartTracks")}));let e,t=await Lm();t=t.filter((t=>("Worldwide"===t.title&&(e=t),"Worldwide"!==t.title))),t.unshift(e),this.initCharts(t)},methods:{convertDuration:Qo,playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)},addToQueue(e){e.stopPropagation(),Wo(e.currentTarget.dataset.link)},getTrackList(e){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:t}},currentTarget:{dataset:{id:a}}}=e;this.country=t,localStorage.setItem("chart",this.country),this.id=a,Go.emit("getChartTracks",this.id)},setTracklist(e){this.chart=e},onChangeCountry(){this.country="",this.id=0},initCharts(e){if(this.countries=e,this.country=localStorage.getItem("chart")||"",!this.country)return;let t=0;for(;t{Go.on("init_favorites",(t=>{Im=t,jm=!0,Go.off("init_favorites"),e(t)}))})))}var Em=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="CoverContainer.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cover_container"},[a("img",{staticClass:"coverart",class:{rounded:e.isRounded,circle:e.isCircle},attrs:{"aria-hidden":"true",src:e.cover}}),e._v(" "),a("button",e._g({staticClass:"bg-black download_overlay hover:bg-primary",attrs:{role:"button","aria-label":"download","data-link":e.link,tabindex:"0"}},e.$listeners),[a("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])])},staticRenderFns:[]},0,{inheritAttrs:!1,props:{cover:{type:String,reqired:!0},isRounded:{type:Boolean,required:!1},isCircle:{type:Boolean,required:!1},link:{type:String,reqired:!0}}},undefined,!1);var Bm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="Favorites.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h1",{staticClass:"mb-8 text-5xl"},[e._v("\n\t\t"+e._s(e.$t("favorites.title"))+"\n\t\t"),a("div",{ref:"reloadButton",staticClass:"inline-block clickable reload-button",attrs:{role:"button","aria-label":"reload"},on:{click:e.reloadTabs}},[a("i",{staticClass:"material-icons"},[e._v("sync")])])]),e._v(" "),a("ul",{staticClass:"section-tabs"},e._l(e.tabs,(function(t){return a("li",{key:t,staticClass:"section-tabs__tab favorites_tablinks",class:{active:e.activeTab===t},on:{click:function(a){e.activeTab=t}}},[e._v("\n\t\t\t"+e._s(e.$tc("globals.listTabs."+t,2))+"\n\t\t")])})),0),e._v(" "),e.activeTabEmpty?e._e():a("button",{staticClass:"btn btn-primary",staticStyle:{"margin-bottom":"2rem"},on:{click:e.downloadAllOfType}},[e._v("\n\t\t"+e._s(e.$t("globals.download",{thing:e.$tc("globals.listTabs."+e.activeTab+"N",e.getTabLenght())}))+"\n\t")]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"playlist"===e.activeTab}},[0==e.playlists.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noPlaylists")))])]):e._e(),e._v(" "),e.playlists.length>0||e.spotifyPlaylists>0?a("div",{staticClass:"release_grid"},[e._l(e.playlists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Playlist",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.creator.name})+" - "+e.$tc("globals.listTabs.trackN",t.nb_tracks))+"\n\t\t\t\t")])],1)})),e._v(" "),e._l(e.spotifyPlaylists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Spotify Playlist",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.creator.name})+" - "+e.$tc("globals.listTabs.trackN",t.nb_tracks))+"\n\t\t\t\t")])],1)}))],2):e._e()]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"album"===e.activeTab}},[0==e.albums.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noAlbums")))])]):e._e(),e._v(" "),e.albums.length>0?a("div",{staticClass:"release_grid"},[e._l(e.albums,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Album",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.cover_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))])],1)})),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v(e._s(""+e.$t("globals.by",{artist:e.release.artist.name})))])],2):e._e()]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"artist"===e.activeTab}},[0==e.artists.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noArtists")))])]):e._e(),e._v(" "),e.artists.length>0?a("div",{staticClass:"release_grid"},e._l(e.artists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Artist",params:{id:t.id}}}},[a("CoverContainer",{attrs:{"is-circle":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.name))])],1)})),1):e._e()]),e._v(" "),a("div",{staticClass:"favorites_tabcontent",class:{"favorites_tabcontent--active":"track"===e.activeTab}},[0==e.tracks.length?a("div",[a("h1",[e._v(e._s(e.$t("favorites.noTracks")))])]):e._e(),e._v(" "),e.tracks.length>0?a("table",{staticClass:"table"},e._l(e.tracks,(function(t){return a("tr",{staticClass:"track_row"},[a("td",{staticClass:"p-3 text-center cursor-default",class:{first:1===t.position}},[e._v("\n\t\t\t\t\t"+e._s(t.position)+"\n\t\t\t\t")]),e._v(" "),a("td",[a("a",{staticClass:"rounded",class:{"single-cover":!!t.preview},attrs:{href:"#","data-preview":t.preview},on:{click:e.playPausePreview}},[t.preview?a("PreviewControls"):e._e(),e._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:t.album.cover_small}})],1)]),e._v(" "),a("td",{staticClass:"table__cell--large"},[e._v("\n\t\t\t\t\t"+e._s(t.title+(t.title_version&&-1==t.title.indexOf(t.title_version)?" "+t.title_version:""))+"\n\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artist.id}}}},[e._v("\n\t\t\t\t\t"+e._s(t.artist.name)+"\n\t\t\t\t")]),e._v(" "),a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.album.id}}}},[e._v("\n\t\t\t\t\t"+e._s(t.album.title)+"\n\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__cell--small"},[e._v("\n\t\t\t\t\t"+e._s(e.convertDuration(t.duration))+"\n\t\t\t\t")]),e._v(" "),a("td",{staticClass:"cursor-pointer group",attrs:{"data-link":t.link,role:"button","aria-label":"download"},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",{staticClass:"transition-colors duration-150 ease-in-out material-icons group-hover:text-primary",attrs:{title:e.$t("globals.download_hint")}},[e._v("\n\t\t\t\t\t\t\tget_app\n\t\t\t\t\t\t")])])])],1)})),0):e._e()])])},staticRenderFns:[]},(function(e){e&&e("data-v-d90a7276_0",{source:".favorites_tabcontent[data-v-d90a7276]{display:none}.favorites_tabcontent--active[data-v-d90a7276]{display:block}.reload-button.spin i[data-v-d90a7276]{animation:spin .5s infinite ease-out reverse}",map:void 0,media:void 0})}),{components:{PreviewControls:Um,CoverContainer:Em},data:()=>({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[],activeTab:"playlist",tabs:["playlist","album","artist","track"]}),computed:{activeTabEmpty(){return 0===this.getActiveRelease().length}},async created(){const e=await Om();0!==Object.entries(e).length&&this.setFavorites(e)},mounted(){Go.on("updated_userFavorites",this.updated_userFavorites),Go.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),Go.on("updated_userPlaylists",this.updated_userPlaylists),Go.on("updated_userAlbums",this.updated_userAlbums),Go.on("updated_userArtist",this.updated_userArtist),Go.on("updated_userTracks",this.updated_userTracks),this.$on("hook:destroyed",(()=>{Go.off("updated_userFavorites"),Go.off("updated_userSpotifyPlaylists"),Go.off("updated_userPlaylists"),Go.off("updated_userAlbums"),Go.off("updated_userArtist"),Go.off("updated_userTracks")}))},methods:{playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)},convertDuration:Qo,downloadAllOfType(){try{let e=this.getActiveRelease();if("track"===this.activeTab){Wo(this.getLovedTracksPlaylist().link)}else Wo(function(e){let t=[];return e.forEach((e=>{t.push(e.link)})),t.join(";")}(e))}catch(e){console.error(e.message)}},addToQueue(e){Wo(e.currentTarget.dataset.link)},updated_userSpotifyPlaylists(e){this.spotifyPlaylists=e},updated_userPlaylists(e){this.playlists=e},updated_userAlbums(e){this.albums=e},updated_userArtist(e){this.artists=e},updated_userTracks(e){this.tracks=e},reloadTabs(){this.$refs.reloadButton.classList.add("spin"),Go.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&Go.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(e){this.setFavorites(e),this.$refs.reloadButton.addEventListener("animationiteration",(()=>{this.$refs.reloadButton.classList.remove("spin"),bl(this.$t("toasts.refreshFavs"),"done",!0)}),{once:!0})},setFavorites(e){const{tracks:t,albums:a,artists:n,playlists:i}=e;this.tracks=t,this.albums=a,this.artists=n,this.playlists=i},getActiveRelease(e=this.activeTab){let t;switch(e){case"playlist":t=this.playlists;break;case"album":t=this.albums;break;case"artist":t=this.artists;break;case"track":t=this.tracks}return t},getTabLenght(e=this.activeTab){return this[e+"s"].length},getLovedTracksPlaylist(){let e=this.playlists.filter((e=>e.is_loved_track));if(0!==e.length)return e[0];throw new Error("No loved tracks playlist!")}}},"data-v-d90a7276",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),i.map&&(a+="\n/*# sourceURL="+i.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}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 e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));let qm={},Vm=!1;function Gm(){return Vm?qm:(Go.emit("get_home_data"),new Promise(((e,t)=>{Go.on("init_home",(t=>{qm=t,Vm=!0,Go.off("init_home"),e(t)}))})))}var Hm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Home.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"home_tab"}},[a("h1",{staticClass:"mb-8 text-5xl"},[e._v(e._s(e.$t("globals.welcome")))]),e._v(" "),e.isLoggedIn?e._e():a("section",{ref:"notLogged",staticClass:"py-6 border-0 border-t border-solid border-grayscale-500"},[a("p",{staticClass:"mb-4",attrs:{id:"home_not_logged_text"}},[e._v(e._s(e.$t("home.needTologin")))]),e._v(" "),a("router-link",{staticClass:"btn btn-primary",attrs:{tag:"button",name:"button",to:{name:"Settings"}}},[e._v("\n\t\t\t"+e._s(e.$t("home.openSettings"))+"\n\t\t")])],1),e._v(" "),e.playlists.length?a("section",{staticClass:"py-6 border-0 border-t border-solid border-grayscale-500"},[a("h2",{staticClass:"mb-6 text-3xl"},[e._v(e._s(e.$t("home.sections.popularPlaylists")))]),e._v(" "),a("div",{staticClass:"release_grid"},e._l(e.playlists,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Playlist",params:{id:t.id}},tabindex:"0"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.$router.push({name:"Playlist",params:{id:t.id}})}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.picture_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.user.name})+" - "+e.$tc("globals.listTabs.trackN",t.nb_tracks))+"\n\t\t\t\t")])],1)})),1)]):e._e(),e._v(" "),e.albums.length?a("section",{staticClass:"py-6 border-0 border-t border-solid border-grayscale-500"},[a("h2",{staticClass:"mb-6 text-3xl"},[e._v(e._s(e.$t("home.sections.popularAlbums")))]),e._v(" "),a("div",{staticClass:"release_grid"},e._l(e.albums,(function(t){return a("router-link",{key:t.id,staticClass:"release clickable",attrs:{tag:"div",to:{name:"Album",params:{id:t.id}},"data-id":t.id,tabindex:"0"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.$router.push({name:"Album",params:{id:t.id}})}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.cover_medium,link:t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}}),e._v(" "),a("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v(e._s(""+e.$t("globals.by",{artist:t.artist.name})))])],1)})),1)]):e._e()])},staticRenderFns:[]},0,{components:{CoverContainer:Em},data:()=>({playlists:[],albums:[]}),async created(){const e=await Gm();this.initHome(e)},computed:{...Fo(["isLoggedIn"])},methods:{addToQueue(e){Wo(e.currentTarget.dataset.link)},initHome(e){const{playlists:{data:t},albums:{data:a}}=e;this.playlists=t,this.albums=a}}},undefined,!1);const Wm={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"};var Km=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="LinkAnalyzer.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"image-header",attrs:{id:"analyzer_tab"}},[a("h1",{staticClass:"mb-8 text-5xl capitalize"},[e._v(e._s(e.$t("sidebar.linkAnalyzer")))]),e._v(" "),""===e.link?a("div",[a("p",[e._v("\n\t\t\t"+e._s(e.$t("linkAnalyzer.info"))+"\n\t\t")]),e._v(" "),a("p",[e._v("\n\t\t\t"+e._s(e.$t("linkAnalyzer.useful"))+"\n\t\t")])]):"error"===e.link?a("div",[a("h2",[e._v(e._s(e.$t("linkAnalyzer.linkNotSupported")))]),e._v(" "),a("p",[e._v(e._s(e.$t("linkAnalyzer.linkNotSupportedYet")))])]):a("div",[a("header",{staticClass:"flex items-center",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[a("div",[a("h1",{staticClass:"m-0"},[e._v(e._s(e.title))]),e._v(" "),"track"===e.type?a("h2",{staticClass:"m-0 mb-3 text-lg"},[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("router-link",{staticClass:"clickable",attrs:{tag:"span",place:"artist",to:{name:"Artist",params:{id:e.data.artist.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.data.artist.name)+"\n\t\t\t\t\t\t")])],1),e._v("\n\t\t\t\t\t•\n\t\t\t\t\t"),a("i18n",{attrs:{path:"globals.in",tag:"span"}},[a("router-link",{staticClass:"clickable",attrs:{tag:"span",place:"album",to:{name:"Album",params:{id:e.data.album.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.data.album.title)+"\n\t\t\t\t\t\t")])],1)],1):"album"===e.type?a("h2",{staticClass:"m-0 mb-3 text-lg"},[a("i18n",{attrs:{path:"globals.by",tag:"span"}},[a("router-link",{staticClass:"clickable",attrs:{tag:"span",place:"artist",to:{name:"Artist",params:{id:e.data.artist.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.data.artist.name)+"\n\t\t\t\t\t\t")])],1),e._v("\n\t\t\t\t\t"+e._s(" • "+e.$tc("globals.listTabs.trackN",e.data.nb_tracks))+"\n\t\t\t\t")],1):e._e()]),e._v(" "),a("div",{staticClass:"rounded-full bg-primary text-grayscale-870 cursor-pointer w-16 h-16 grid place-items-center ml-auto",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)},click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[a("i",{staticClass:"material-icons text-4xl",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),a("table",{staticClass:"table"},[e.data.id?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.id")))]),e._v(" "),a("td",[e._v(e._s(e.data.id))])]):e._e(),e._v(" "),e.data.isrc?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.isrc")))]),e._v(" "),a("td",[e._v(e._s(e.data.isrc))])]):e._e(),e._v(" "),e.data.upc?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.upc")))]),e._v(" "),a("td",[e._v(e._s(e.data.upc))])]):e._e(),e._v(" "),e.data.duration?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.duration")))]),e._v(" "),a("td",[e._v(e._s(e.convertDuration(e.data.duration)))])]):e._e(),e._v(" "),e.data.disk_number?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.diskNumber")))]),e._v(" "),a("td",[e._v(e._s(e.data.disk_number))])]):e._e(),e._v(" "),e.data.track_position?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.trackNumber")))]),e._v(" "),a("td",[e._v(e._s(e.data.track_position))])]):e._e(),e._v(" "),e.data.release_date?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.releaseDate")))]),e._v(" "),a("td",[e._v(e._s(e.data.release_date))])]):e._e(),e._v(" "),e.data.bpm?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.bpm")))]),e._v(" "),a("td",[e._v(e._s(e.data.bpm))])]):e._e(),e._v(" "),e.data.label?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.label")))]),e._v(" "),a("td",[e._v(e._s(e.data.label))])]):e._e(),e._v(" "),e.data.record_type?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.recordType")))]),e._v(" "),a("td",[e._v(e._s(e.$tc("globals.listTabs."+e.data.record_type,1)))])]):e._e(),e._v(" "),e.data.genres&&e.data.genres.data.length?a("tr",[a("td",[e._v(e._s(e.$t("linkAnalyzer.table.genres")))]),e._v(" "),a("td",[e._v(e._s(e.data.genres.data.map((function(e){return e.name})).join("; ")))])]):e._e()]),e._v(" "),"album"==e.type?a("div",[a("router-link",{staticClass:"btn btn-primary",attrs:{tag:"button",name:"button",to:{name:"Album",params:{id:e.id}}}},[e._v("\n\t\t\t\t"+e._s(e.$t("linkAnalyzer.table.tracklist"))+"\n\t\t\t")])],1):e._e(),e._v(" "),e.countries.length?a("div",e._l(e.countries,(function(t){return a("p",[e._v(e._s(t[0])+" - "+e._s(t[1]))])})),0):e._e()])])},staticRenderFns:[]},0,{data:()=>({link:"",title:"",subtitle:"",image:"",data:{},type:"",id:"0",countries:[]}),methods:{convertDuration:Qo,reset(){this.title="Loading...",this.subtitle="",this.image="",this.data={},this.type="",this.link="",this.countries=[]},showTrack(e){this.reset();const{title:t,title_version:a,album:{cover_xl:n},link:i,available_countries:r,id:s}=e;this.title=t+(a&&-1==t.indexOf(a)?" "+a:""),this.image=n,this.type="track",this.link=i,this.id=s,r.forEach((e=>{let t=[],a=[...e].map((e=>e.charCodeAt()+127397));t.push(String.fromCodePoint(...a)),t.push(Wm[e]),this.countries.push(t)})),this.data=e},showAlbum(e){this.reset();const{title:t,cover_xl:a,link:n,id:i}=e;this.title=t,this.image=a,this.type="album",this.link=n,this.data=e,this.id=i},notSupported(){this.link="error"},addToQueue(e){Wo(e.currentTarget.dataset.link)}},mounted(){il.$on("linkAnalyzerTab:reset",this.reset),Go.on("analyze_track",this.showTrack),Go.on("analyze_album",this.showAlbum),Go.on("analyze_notSupported",this.notSupported)}},undefined,!1);const Ym=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var Qm=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="TopResult.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex flex-col items-center justify-center"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:e.upperCaseFirstLowerCaseRest(e.$attrs.info.type),params:{id:e.$attrs.info.id}}}},[a("CoverContainer",{staticClass:"w-40 h-40",attrs:{"is-rounded":"artist"!==e.$attrs.info.type,"is-circle":"artist"===e.$attrs.info.type,cover:e.$attrs.info.picture,link:e.$attrs.info.link},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("p",{staticClass:"mt-4 mb-1 text-xl text-center transition-colors duration-200 ease-in-out hover:text-primary"},[e._v("\n\t\t\t"+e._s(e.$attrs.info.title)+"\n\t\t")])],1),e._v(" "),a("p",{staticClass:"mb-3 text-center secondary-text"},[e._v("\n\t\t"+e._s(e.fansNumber)+"\n\t")]),e._v(" "),a("span",{staticClass:"p-1 px-2 text-xs text-center capitalize bg-primary rounded-xl"},[e._v("\n\t\t"+e._s(e.$tc("globals.listTabs."+e.$attrs.info.type,1))+"\n\t")])],1)},staticRenderFns:[]},0,{components:{CoverContainer:Em},methods:{upperCaseFirstLowerCaseRest:Ym},computed:{fansNumber(){let e;try{e=this.$n(this.$attrs.info.nb_fan)}catch(t){e=this.$n(this.$attrs.info.nb_fan,{locale:"en"})}return"artist"==this.$attrs.info.type?this.$t("search.fans",{n:e}):this.$t("globals.by",{artist:this.$attrs.info.artist})+" - "+this.$tc("globals.listTabs.trackN",this.$attrs.info.nb_song)}}},undefined,!1);function Jm(e,t){if(e.hasLoaded){const{data:a}=e,n=[];for(const e of a){let a=t(e);n.push(a)}return{data:n,hasLoaded:e.hasLoaded}}return null}function Zm(e){let t=el(e,"explicit_lyrics","EXPLICIT_LYRICS");return"string"==typeof t&&(t="0"!==t),{trackTitle:el(e,"title","SNG_TITLE"),trackTitleVersion:el(e,"title_version","VERSION"),trackPreview:el(e,"preview"),trackDuration:el(e,"duration","DURATION"),trackLink:el(e,"link")||"https://www.deezer.com/track/"+e.SNG_ID,isTrackExplicit:t,artistID:el(e,"artist.id","ART_ID"),artistName:el(e,"artist.name","ART_NAME"),albumID:el(e,"album.id","ALB_ID"),albumTitle:el(e,"album.title","ALB_TITLE"),albumPicture:el(e,"album.cover_small")||`https://e-cdns-images.dzcdn.net/images/cover/${e.ALB_PICTURE}/32x32-000000-80-0-0.jpg`}}function Xm(e){let t=el(e,"explicit_lyrics","EXPLICIT_ALBUM_CONTENT.EXPLICIT_LYRICS_STATUS");return"number"==typeof t&&(t=1===t),{albumID:el(e,"id","ALB_ID"),albumTitle:el(e,"title","ALB_TITLE"),albumCoverMedium:el(e,"cover_medium")||`https://e-cdns-images.dzcdn.net/images/cover/${e.ALB_PICTURE}/156x156-000000-80-0-0.jpg`,albumLink:el(e,"link")||"https://deezer.com/album/"+e.ALB_ID,albumTracks:el(e,"nb_tracks","NUMBER_TRACK"),isAlbumExplicit:t,artistName:el(e,"artist.name","ART_NAME")}}function eh(e){return{artistID:el(e,"id","ART_ID"),artistName:el(e,"name","ART_NAME"),artistPictureMedium:el(e,"picture_medium")||`https://e-cdns-images.dzcdn.net/images/artist/${e.ART_PICTURE}/156x156-000000-80-0-0.jpg`,artistLink:el(e,"link")||"https://deezer.com/artist/"+e.ART_ID,artistAlbumsNumber:el(e,"nb_album","NB_FAN")}}function th(e){return{playlistID:el(e,"id","PLAYLIST_ID"),playlistTitle:el(e,"title","TITLE"),playlistPictureMedium:el(e,"picture_medium")||`https://e-cdns-images.dzcdn.net/images/${e.PICTURE_TYPE}/${e.PLAYLIST_PICTURE}/156x156-000000-80-0-0.jpg`,playlistLink:el(e,"link")||"https://deezer.com/playlist/"+e.PLAYLIST_ID,playlistTracksNumber:el(e,"nb_tracks","NB_SONG"),artistName:el(e,"user.name")}}var ah=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsTracks.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsTrack")))])]):a("table",{staticClass:"table w-full table--tracks"},[e.wantHeaders?a("thead",[a("tr",{staticClass:"capitalize"},[a("th",{staticClass:"h-12 pb-3",attrs:{colspan:"2"}},[e._v(e._s(e.$tc("globals.listTabs.title",1)))]),e._v(" "),a("th",{staticClass:"h-12 pb-3"},[e._v(e._s(e.$tc("globals.listTabs.artist",1)))]),e._v(" "),a("th",{staticClass:"h-12 pb-3"},[e._v(e._s(e.$tc("globals.listTabs.album",1)))]),e._v(" "),a("th",{staticClass:"h-12 pb-3"},[a("i",{staticClass:"material-icons"},[e._v("timer")])]),e._v(" "),a("th",{staticClass:"h-12 pb-3",staticStyle:{width:"3.5rem"}})])]):e._e(),e._v(" "),a("tbody",e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("tr",{key:t.trackLink},[a("td",{staticClass:"table__icon table__icon--big"},[a("a",{staticClass:"rounded",class:{"single-cover":!!t.trackPreview},attrs:{href:"#","data-preview":t.trackPreview},on:{click:function(t){return e.playPausePreview(t)}}},[t.trackPreview?a("PreviewControls"):e._e(),e._v(" "),a("img",{staticClass:"rounded coverart",attrs:{src:t.albumPicture}})],1)]),e._v(" "),a("td",{staticClass:"table__cell table__cell--large"},[a("div",{staticClass:"break-words table__cell-content table__cell-content--vertical-center"},[t.isTrackExplicit?a("i",{staticClass:"material-icons explicit-icon"},[e._v("explicit")]):e._e(),e._v("\n\t\t\t\t\t\t\t"+e._s(e.formatTitle(t))+"\n\t\t\t\t\t\t")])]),e._v(" "),a("router-link",{staticClass:"break-words table__cell table__cell--medium table__cell--center",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artistID}}}},[a("span",{staticClass:"cursor-pointer hover:underline"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.artistName)+"\n\t\t\t\t\t\t")])]),e._v(" "),a("router-link",{staticClass:"break-words table__cell table__cell--medium table__cell--center",attrs:{tag:"td",to:{name:"Album",params:{id:t.albumID}}}},[a("span",{staticClass:"cursor-pointer hover:underline"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.albumTitle)+"\n\t\t\t\t\t\t")])]),e._v(" "),a("td",{staticClass:"table__cell table__cell--small table__cell--center"},[e._v("\n\t\t\t\t\t\t"+e._s(e.convertDuration(t.trackDuration))+"\n\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"cursor-pointer table__cell--center group",attrs:{"data-link":t.trackLink,"aria-label":"download"},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}},[a("i",{staticClass:"transition-colors duration-150 ease-in-out material-icons group-hover:text-primary",attrs:{title:e.$t("globals.download_hint")}},[e._v("\n\t\t\t\t\t\t\tget_app\n\t\t\t\t\t\t")])])],1)})),0)])]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,PreviewControls:Um},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}},methods:{convertDuration:Qo,formatTitle:function(e){const t=e.trackTitleVersion&&-1===e.trackTitle.indexOf(e.trackTitleVersion);return`${e.trackTitle}${t?" "+e.trackTitleVersion:""}`},playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)}}},undefined,!1);var nh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsAlbums.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsAlbum")))])]):a("div",{staticClass:"release_grid"},e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("div",{key:t.albumID,staticClass:"w-40 release"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:"Album",params:{id:t.albumID}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.albumCoverMedium,link:t.albumLink},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("span",{staticClass:"mb-1 transition-colors duration-200 ease-in-out hover:text-primary"},[t.isAlbumExplicit?a("i",{staticClass:"material-icons explicit-icon"},[e._v("explicit")]):e._e(),e._v("\n\t\t\t\t\t\t"+e._s(t.albumTitle)+"\n\t\t\t\t\t")])],1),e._v(" "),a("p",{staticClass:"mb-1 text-sm opacity-75"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.artistName})+" - "+e.$tc("globals.listTabs.trackN",t.albumTracks))+"\n\t\t\t\t")])],1)})),0)]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,CoverContainer:Em},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}}},undefined,!1);var ih=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsArtists.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsArtist")))])]):a("div",{staticClass:"release_grid"},e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("div",{key:t.artistID,staticClass:"w-40 release"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:"Artist",params:{id:t.artistID}}}},[a("CoverContainer",{attrs:{"is-circle":"",cover:t.artistPictureMedium,link:t.artistLink},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("span",{staticClass:"mb-1 transition-colors duration-200 ease-in-out hover:text-primary"},[e._v("\n\t\t\t\t\t\t"+e._s(t.artistName)+"\n\t\t\t\t\t")])],1)],1)})),0)]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,CoverContainer:Em},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}}},undefined,!1);var rh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsPlaylists.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.isLoading?a("BaseLoadingPlaceholder"):[0===e.viewInfo.data.length?a("div",[a("h1",[e._v(e._s(e.$t("search.noResultsPlaylist")))])]):a("div",{staticClass:"release_grid"},e._l(e.viewInfo.data.slice(0,e.itemsToShow),(function(t){return a("div",{key:t.playlistID,staticClass:"w-40 release"},[a("router-link",{staticClass:"cursor-pointer",attrs:{tag:"div",to:{name:"Playlist",params:{id:t.playlistID}}}},[a("CoverContainer",{attrs:{"is-rounded":"",cover:t.playlistPictureMedium,link:t.playlistLink},on:{click:function(t){return t.stopPropagation(),e.$emit("add-to-queue",t)}}}),e._v(" "),a("span",{staticClass:"mb-1 transition-colors duration-200 ease-in-out hover:text-primary"},[e._v("\n\t\t\t\t\t\t"+e._s(t.playlistTitle)+"\n\t\t\t\t\t")])],1),e._v(" "),a("p",{staticClass:"mb-1 text-sm opacity-75"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",{artist:t.artistName})+" - "+e.$tc("globals.listTabs.trackN",t.playlistTracksNumber))+"\n\t\t\t\t")])],1)})),0)]],2)},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho,CoverContainer:Em},props:{viewInfo:{validator:function(e){let t=Object.is(e,null),a="[object Object]"===Object.prototype.toString.call(e);return t||a},required:!0},itemsToShow:{type:Number,required:!1},wantHeaders:{type:Boolean,required:!1,default:!1}},computed:{isLoading(){return!this.viewInfo||!this.viewInfo.hasLoaded}}},undefined,!1);var sh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="ResultsAll.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e.thereAreResults?e._l(e.viewInfo.ORDER,(function(t){return a("section",{key:t,staticClass:"float-none py-5 border-t border-grayscale-500 first:border-t-0"},[e.checkSectionResults(t)?[a("h2",{staticClass:"mb-6 capitalize",class:{"text-4xl text-center":"TOP_RESULT"===t,"inline-block cursor-pointer text-3xl hover:text-primary transition-colors duration-200 ease-in-out":"TOP_RESULT"!==t},on:{click:function(a){return e.$emit("change-search-tab",t)}}},[e._v("\n\t\t\t\t\t"+e._s(e.$tc("globals.listTabs."+t.toLowerCase(),2))+"\n\t\t\t\t")]),e._v(" "),"TOP_RESULT"===t?a("TopResult",{attrs:{info:e.viewInfo.TOP_RESULT[0]},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"TRACK"===t?a("ResultsTracks",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.TRACK,e.formatSingleTrack),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"ALBUM"==t?a("ResultsAlbums",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.ALBUM,e.formatAlbums),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"PLAYLIST"==t?a("ResultsPlaylists",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.PLAYLIST,e.formatPlaylist),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):"ARTIST"===t?a("ResultsArtists",{attrs:{viewInfo:e.formatSearchResults(e.viewInfo.ARTIST,e.formatArtist),itemsToShow:6},on:{"add-to-queue":function(t){return e.$emit("add-to-queue",t)}}}):e._e()]:e._e()],2)})):a("div",[a("h1",[e._v(e._s(e.$t("search.noResults")))])])],2)},staticRenderFns:[]},0,{components:{TopResult:Qm,ResultsTracks:ah,ResultsAlbums:nh,ResultsArtists:ih,ResultsPlaylists:rh},props:{viewInfo:{type:Object,required:!1}},computed:{thereAreResults(){return!!this.viewInfo&&!this.viewInfo.ORDER.every((e=>"TOP_RESULT"===e?0===this.viewInfo[e].length:0===this.viewInfo[e].data.length))}},methods:{convertDuration:Qo,upperCaseFirstLowerCaseRest:Ym,formatSearchResults:Jm,formatSingleTrack:Zm,formatAlbums:Xm,formatArtist:eh,formatPlaylist:th,checkSectionResults(e){return"TOP_RESULT"===e?!!this.viewInfo.TOP_RESULT[0]:!!this.viewInfo[e].data[0]}}},undefined,!1);const oh={data:[],next:0,total:0,hasLoaded:!1};var lh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Search.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",attrs:{id:"search_tab"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:!e.showSearchTab,expression:"!showSearchTab"}]},[a("h2",[e._v(e._s(e.$t("search.startSearching")))]),e._v(" "),a("p",[e._v(e._s(e.$t("search.description")))])]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearchTab,expression:"showSearchTab"}]},[a("ul",{staticClass:"section-tabs"},e._l(e.tabs,(function(t){return a("li",{key:t.name,staticClass:"section-tabs__tab",class:{active:e.currentTab.name===t.name},on:{click:function(a){e.currentTab=t}}},[e._v("\n\t\t\t\t"+e._s(t.name)+"\n\t\t\t")])})),0),e._v(" "),a("keep-alive",[a(e.currentTab.component,{tag:"component",attrs:{viewInfo:e.getViewInfo(),"want-headers":""},on:{"add-to-queue":e.addToQueue,"change-search-tab":e.changeSearchTab}})],1)],1)])},staticRenderFns:[]},0,{components:{BaseLoadingPlaceholder:Ho},props:{performScrolledSearch:{type:Boolean,required:!1}},data(){const e=this.$t.bind(this),t=this.$tc.bind(this);return{currentTab:{name:"",searchType:"",component:{},viewInfo:"",formatFunc:()=>{}},tabs:[{name:e("globals.listTabs.all"),searchType:"all",component:sh,viewInfo:"allTab"},{name:t("globals.listTabs.track",2),searchType:"track",component:ah,viewInfo:"trackTab",formatFunc:Zm},{name:t("globals.listTabs.album",2),searchType:"album",component:nh,viewInfo:"albumTab",formatFunc:Xm},{name:t("globals.listTabs.artist",2),searchType:"artist",component:ih,viewInfo:"artistTab",formatFunc:eh},{name:t("globals.listTabs.playlist",2),searchType:"playlist",component:rh,viewInfo:"playlistTab",formatFunc:th}],results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{hasLoaded:!1},ARTIST:{hasLoaded:!1},TRACK:{hasLoaded:!1},PLAYLIST:{hasLoaded:!1}},trackTab:{...oh},albumTab:{...oh},artistTab:{...oh},playlistTab:{...oh}}}},computed:{showSearchTab(){return""!==this.results.query},loadedTabs(){const e=[];for(const t in this.results)if(this.results.hasOwnProperty(t)){this.results[t].hasLoaded&&e.push(t.replace(/Tab/g,""))}return e}},created(){this.currentTab=this.tabs[0]},mounted(){this.$root.$on("mainSearch:showNewResults",this.checkIfPerformNewMainSearch),this.$root.$on("mainSearch:updateResults",this.checkIfUpdateResults),Go.on("mainSearch",this.saveMainSearchResult),Go.on("search",this.handleSearch)},methods:{numberWithDots:Jo,convertDuration:Qo,addToQueue(e){Wo(e.currentTarget.dataset.link)},getViewInfo(){return"all"===this.currentTab.searchType?this.results.allTab:Jm(this.results[this.currentTab.viewInfo],this.currentTab.formatFunc)},changeSearchTab(e){e=e.toLowerCase();const t=this.tabs.find((t=>t.searchType===e));t?(window.scrollTo(0,0),this.currentTab=t):console.error(`No tab ${e} found`)},checkIfPerformNewMainSearch(e){e!==this.results.query&&this.performNewMainSearch(e)},performNewMainSearch(e){Go.emit("mainSearch",{term:e}),this.$root.$emit("updateSearchLoadingState",!0),this.currentTab=this.tabs[0]},checkIfUpdateResults(e){e===this.results.query&&"all"!==this.currentTab.searchType&&(this.results[this.currentTab.searchType+"Tab"]={...oh},this.search(this.currentTab.searchType))},search(e){Go.emit("search",{term:this.results.query,type:e,start:this.results[e+"Tab"].next,nb:30})},scrolledSearch(){if("all"===this.currentTab.searchType)return;const e=this.currentTab.searchType+"Tab";this.results[e].next{Go.on("init_settings",((t,a,n)=>{ch=t,dh=n,uh=a,Go.off("init_settings"),e({settingsData:ch,defaultSettingsData:dh,spotifyCredentials:uh})}))}))}const mh={it:'\n \n \n \n \n \n',en:'\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',de:'\n \n \n \n',fr:'\n \n \n \n \n \n',id:'\n \n \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',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',ru:'\n \n \n \n \n \n',tr:'\n \n \n \n \n \n \n',vn:'\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',ar:'\r\n\r\n \r\n \r\n \r\n image/svg+xml\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n',ko:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n',ph:'\n \n \n \n \n \n \n \n',zh_tw:'\n \n \n \n \n \n \n \n \n \n \n \n \n',pl:'\n \n \n \n \n'};var hh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="Settings.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"fixed-footer",attrs:{id:"settings_tab"}},[a("h1",{staticClass:"mb-8 text-5xl"},[e._v(e._s(e.$t("settings.title")))]),e._v(" "),e.isLoggedIn?a("div",{ref:"loggedInInfo",attrs:{id:"logged_in_info"}},[a("img",{ref:"userpicture",staticClass:"circle",attrs:{id:"settings_picture",src:e.pictureHref,alt:"Profile Picture"}}),e._v(" "),a("i18n",{attrs:{path:"settings.login.loggedIn",tag:"p"}},[a("strong",{ref:"username",attrs:{place:"username",id:"settings_username"}},[e._v(e._s(e.user.name||"not logged"))])]),e._v(" "),a("button",{staticClass:"btn btn-primary",attrs:{id:"settings_btn_logout"},on:{click:e.logout}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.logout"))+"\n\t\t")]),e._v(" "),e.accounts.length?a("select",{directives:[{name:"model",rawName:"v-model",value:e.accountNum,expression:"accountNum"}],attrs:{id:"family_account"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.accountNum=t.target.multiple?a:a[0]},e.changeAccount]}},e._l(e.accounts,(function(t,n){return a("option",{key:t,domProps:{value:n.toString()}},[e._v(e._s(t.BLOG_NAME))])})),0):e._e()],1):e._e(),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("person")]),e._v(e._s(e.$t("settings.login.title"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"flex items-center"},[a("input",{ref:"loginInput",attrs:{autocomplete:"off",type:"password",id:"login_input_arl",placeholder:"ARL"},domProps:{value:e.arl}}),e._v(" "),a("button",{staticClass:"ml-2 btn btn-primary btn-only-icon",attrs:{id:"settings_btn_copyArl"},on:{click:e.copyARLtoClipboard}},[a("i",{staticClass:"material-icons"},[e._v("assignment")])])]),e._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Getting-your-own-ARL",target:"_blank"}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.arl.question"))+"\n\t\t")]),e._v(" "),e.clientMode?a("a",{attrs:{id:"settings_btn_applogin",href:"#"},on:{click:e.appLogin}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.login"))+"\n\t\t")]):e._e(),e._v(" "),a("button",{staticClass:"btn btn-primary",staticStyle:{width:"100%"},attrs:{id:"settings_btn_updateArl"},on:{click:e.login}},[e._v("\n\t\t\t"+e._s(e.$t("settings.login.arl.update"))+"\n\t\t")])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("language")]),e._v(e._s(e.$t("settings.languages"))+"\n\t\t")]),e._v(" "),a("div",e._l(e.locales,(function(t){return a("span",{key:t,staticClass:"flex items-center locale-flag",class:{"locale-flag--current":e.currentLocale===t},attrs:{title:t},domProps:{innerHTML:e._s(e.flags[t])},on:{click:function(a){return e.changeLocale(t)}}})})),0)]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("web")]),e._v(e._s(e.$t("settings.appearance.title"))+"\n\t\t")]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.changeSlimDownloads,expression:"changeSlimDownloads"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.changeSlimDownloads)?e._i(e.changeSlimDownloads,null)>-1:e.changeSlimDownloads},on:{change:function(t){var a=e.changeSlimDownloads,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.changeSlimDownloads=a.concat([null])):r>-1&&(e.changeSlimDownloads=a.slice(0,r).concat(a.slice(r+1)))}else e.changeSlimDownloads=i}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.appearance.slimDownloadTab")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.changeSlimSidebar,expression:"changeSlimSidebar"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.changeSlimSidebar)?e._i(e.changeSlimSidebar,null)>-1:e.changeSlimSidebar},on:{change:function(t){var a=e.changeSlimSidebar,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.changeSlimSidebar=a.concat([null])):r>-1&&(e.changeSlimSidebar=a.slice(0,r).concat(a.slice(r+1)))}else e.changeSlimSidebar=i}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.appearance.slimSidebar")))])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("folder")]),e._v(e._s(e.$t("settings.downloadPath.title"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"flex items-center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.downloadLocation,expression:"settings.downloadLocation"}],attrs:{autocomplete:"off",type:"text"},domProps:{value:e.settings.downloadLocation},on:{input:function(t){t.target.composing||e.$set(e.settings,"downloadLocation",t.target.value)}}}),e._v(" "),e.clientMode?a("button",{staticClass:"ml-2 btn btn-primary btn-only-icon",attrs:{id:"select_downloads_folder"},on:{click:e.selectDownloadFolder}},[a("i",{staticClass:"material-icons"},[e._v("folder")])]):e._e()])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("font_download")]),e._v(e._s(e.$t("settings.templates.title"))+"\n\t\t")]),e._v(" "),a("p",[e._v(e._s(e.$t("settings.templates.tracknameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tracknameTemplate,expression:"settings.tracknameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.tracknameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"tracknameTemplate",t.target.value)}}}),e._v(" "),a("p",[e._v(e._s(e.$t("settings.templates.albumTracknameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.albumTracknameTemplate,expression:"settings.albumTracknameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.albumTracknameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"albumTracknameTemplate",t.target.value)}}}),e._v(" "),a("p",[e._v(e._s(e.$t("settings.templates.playlistTracknameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.playlistTracknameTemplate,expression:"settings.playlistTracknameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.playlistTracknameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"playlistTracknameTemplate",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("create_new_folder")]),e._v(e._s(e.$t("settings.folders.title"))+"\n\t\t")]),e._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:e.settings.createPlaylistFolder,expression:"settings.createPlaylistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createPlaylistFolder)?e._i(e.settings.createPlaylistFolder,null)>-1:e.settings.createPlaylistFolder},on:{change:function(t){var a=e.settings.createPlaylistFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createPlaylistFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createPlaylistFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createPlaylistFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createPlaylistFolder")))])]),e._v(" "),e.settings.createPlaylistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.folders.playlistNameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.playlistNameTemplate,expression:"settings.playlistNameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.playlistNameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"playlistNameTemplate",t.target.value)}}})]):e._e()]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createArtistFolder,expression:"settings.createArtistFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createArtistFolder)?e._i(e.settings.createArtistFolder,null)>-1:e.settings.createArtistFolder},on:{change:function(t){var a=e.settings.createArtistFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createArtistFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createArtistFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createArtistFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createArtistFolder")))])]),e._v(" "),e.settings.createArtistFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.folders.artistNameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.artistNameTemplate,expression:"settings.artistNameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.artistNameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"artistNameTemplate",t.target.value)}}})]):e._e()]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createAlbumFolder,expression:"settings.createAlbumFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createAlbumFolder)?e._i(e.settings.createAlbumFolder,null)>-1:e.settings.createAlbumFolder},on:{change:function(t){var a=e.settings.createAlbumFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createAlbumFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createAlbumFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createAlbumFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createAlbumFolder")))])]),e._v(" "),e.settings.createAlbumFolder?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.folders.albumNameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.albumNameTemplate,expression:"settings.albumNameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.albumNameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"albumNameTemplate",t.target.value)}}})]):e._e()])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createCDFolder,expression:"settings.createCDFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createCDFolder)?e._i(e.settings.createCDFolder,null)>-1:e.settings.createCDFolder},on:{change:function(t){var a=e.settings.createCDFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createCDFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createCDFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createCDFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createCDFolder")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createStructurePlaylist,expression:"settings.createStructurePlaylist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createStructurePlaylist)?e._i(e.settings.createStructurePlaylist,null)>-1:e.settings.createStructurePlaylist},on:{change:function(t){var a=e.settings.createStructurePlaylist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createStructurePlaylist",a.concat([null])):r>-1&&e.$set(e.settings,"createStructurePlaylist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createStructurePlaylist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createStructurePlaylist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createSingleFolder,expression:"settings.createSingleFolder"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createSingleFolder)?e._i(e.settings.createSingleFolder,null)>-1:e.settings.createSingleFolder},on:{change:function(t){var a=e.settings.createSingleFolder,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createSingleFolder",a.concat([null])):r>-1&&e.$set(e.settings,"createSingleFolder",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createSingleFolder",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.folders.createSingleFolder")))])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("title")]),e._v(e._s(e.$t("settings.trackTitles.title"))+"\n\t\t")]),e._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:e.settings.padTracks,expression:"settings.padTracks"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.padTracks)?e._i(e.settings.padTracks,null)>-1:e.settings.padTracks},on:{change:function(t){var a=e.settings.padTracks,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"padTracks",a.concat([null])):r>-1&&e.$set(e.settings,"padTracks",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"padTracks",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.trackTitles.padTracks")))])])]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.trackTitles.paddingSize")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.paddingSize,expression:"settings.paddingSize"}],attrs:{max:"10",type:"number"},domProps:{value:e.settings.paddingSize},on:{input:function(t){t.target.composing||e.$set(e.settings,"paddingSize",t.target.value)}}})])]),e._v(" "),a("div",{staticClass:"settings-container__third"},[a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.trackTitles.illegalCharacterReplacer")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.illegalCharacterReplacer,expression:"settings.illegalCharacterReplacer"}],attrs:{type:"text"},domProps:{value:e.settings.illegalCharacterReplacer},on:{input:function(t){t.target.composing||e.$set(e.settings,"illegalCharacterReplacer",t.target.value)}}})])])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("get_app")]),e._v(e._s(e.$t("settings.downloads.title"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.queueConcurrency")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.queueConcurrency,expression:"settings.queueConcurrency",modifiers:{number:!0}}],attrs:{type:"number",min:"1"},domProps:{value:e.settings.queueConcurrency},on:{input:function(t){t.target.composing||e.$set(e.settings,"queueConcurrency",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.maxBitrate.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.maxBitrate,expression:"settings.maxBitrate"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"maxBitrate",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"9"}},[e._v(e._s(e.$t("settings.downloads.maxBitrate.9")))]),e._v(" "),a("option",{attrs:{value:"3"}},[e._v(e._s(e.$t("settings.downloads.maxBitrate.3")))]),e._v(" "),a("option",{attrs:{value:"1"}},[e._v(e._s(e.$t("settings.downloads.maxBitrate.1")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.overwriteFile.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.overwriteFile,expression:"settings.overwriteFile"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"overwriteFile",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"y"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.y")))]),e._v(" "),a("option",{attrs:{value:"n"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.n")))]),e._v(" "),a("option",{attrs:{value:"e"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.e")))]),e._v(" "),a("option",{attrs:{value:"b"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.b")))]),e._v(" "),a("option",{attrs:{value:"t"}},[e._v(e._s(e.$t("settings.downloads.overwriteFile.t")))])])]),e._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:e.settings.fallbackBitrate,expression:"settings.fallbackBitrate"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.fallbackBitrate)?e._i(e.settings.fallbackBitrate,null)>-1:e.settings.fallbackBitrate},on:{change:function(t){var a=e.settings.fallbackBitrate,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"fallbackBitrate",a.concat([null])):r>-1&&e.$set(e.settings,"fallbackBitrate",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"fallbackBitrate",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.fallbackBitrate")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.fallbackSearch,expression:"settings.fallbackSearch"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.fallbackSearch)?e._i(e.settings.fallbackSearch,null)>-1:e.settings.fallbackSearch},on:{change:function(t){var a=e.settings.fallbackSearch,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"fallbackSearch",a.concat([null])):r>-1&&e.$set(e.settings,"fallbackSearch",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"fallbackSearch",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.fallbackSearch")))])])]),e._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:e.settings.logErrors,expression:"settings.logErrors"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.logErrors)?e._i(e.settings.logErrors,null)>-1:e.settings.logErrors},on:{change:function(t){var a=e.settings.logErrors,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"logErrors",a.concat([null])):r>-1&&e.$set(e.settings,"logErrors",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"logErrors",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.logErrors")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.logSearched,expression:"settings.logSearched"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.logSearched)?e._i(e.settings.logSearched,null)>-1:e.settings.logSearched},on:{change:function(t){var a=e.settings.logSearched,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"logSearched",a.concat([null])):r>-1&&e.$set(e.settings,"logSearched",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"logSearched",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.logSearched")))])])]),e._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:e.settings.syncedLyrics,expression:"settings.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.syncedLyrics)?e._i(e.settings.syncedLyrics,null)>-1:e.settings.syncedLyrics},on:{change:function(t){var a=e.settings.syncedLyrics,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"syncedLyrics",a.concat([null])):r>-1&&e.$set(e.settings,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"syncedLyrics",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.syncedLyrics")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.createM3U8File,expression:"settings.createM3U8File"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.createM3U8File)?e._i(e.settings.createM3U8File,null)>-1:e.settings.createM3U8File},on:{change:function(t){var a=e.settings.createM3U8File,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"createM3U8File",a.concat([null])):r>-1&&e.$set(e.settings,"createM3U8File",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"createM3U8File",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.createM3U8File")))])])])]),e._v(" "),e.settings.createM3U8File?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.downloads.playlistFilenameTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.playlistFilenameTemplate,expression:"settings.playlistFilenameTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.playlistFilenameTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"playlistFilenameTemplate",t.target.value)}}})]):e._e(),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.saveDownloadQueue,expression:"settings.saveDownloadQueue"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.saveDownloadQueue)?e._i(e.settings.saveDownloadQueue,null)>-1:e.settings.saveDownloadQueue},on:{change:function(t){var a=e.settings.saveDownloadQueue,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"saveDownloadQueue",a.concat([null])):r>-1&&e.$set(e.settings,"saveDownloadQueue",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"saveDownloadQueue",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.downloads.saveDownloadQueue")))])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("album")]),e._v(e._s(e.$t("settings.covers.title"))+"\n\t\t")]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.saveArtwork,expression:"settings.saveArtwork"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.saveArtwork)?e._i(e.settings.saveArtwork,null)>-1:e.settings.saveArtwork},on:{change:function(t){var a=e.settings.saveArtwork,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"saveArtwork",a.concat([null])):r>-1&&e.$set(e.settings,"saveArtwork",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"saveArtwork",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.saveArtwork")))])]),e._v(" "),e.settings.saveArtwork?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.coverImageTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.coverImageTemplate,expression:"settings.coverImageTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.coverImageTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"coverImageTemplate",t.target.value)}}})]):e._e(),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.saveArtworkArtist,expression:"settings.saveArtworkArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.saveArtworkArtist)?e._i(e.settings.saveArtworkArtist,null)>-1:e.settings.saveArtworkArtist},on:{change:function(t){var a=e.settings.saveArtworkArtist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"saveArtworkArtist",a.concat([null])):r>-1&&e.$set(e.settings,"saveArtworkArtist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"saveArtworkArtist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.saveArtworkArtist")))])]),e._v(" "),e.settings.saveArtworkArtist?a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.artistImageTemplate")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.artistImageTemplate,expression:"settings.artistImageTemplate"}],attrs:{type:"text"},domProps:{value:e.settings.artistImageTemplate},on:{input:function(t){t.target.composing||e.$set(e.settings,"artistImageTemplate",t.target.value)}}})]):e._e(),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.localArtworkSize")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.localArtworkSize,expression:"settings.localArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:e.settings.localArtworkSize},on:{input:function(t){t.target.composing||e.$set(e.settings,"localArtworkSize",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.settings.localArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[e._v("\n\t\t\t\t⚠️ "+e._s(e.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):e._e()]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.embeddedArtworkSize")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.embeddedArtworkSize,expression:"settings.embeddedArtworkSize",modifiers:{number:!0}}],attrs:{type:"number",min:"100",max:"10000",step:"100"},domProps:{value:e.settings.embeddedArtworkSize},on:{input:function(t){t.target.composing||e.$set(e.settings,"embeddedArtworkSize",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.settings.embeddedArtworkSize>1200?a("p",{staticClass:"input_group_text",staticStyle:{opacity:"0.75",color:"#ffcc22"}},[e._v("\n\t\t\t\t⚠️ "+e._s(e.$t("settings.covers.imageSizeWarning"))+"\n\t\t\t")]):e._e()]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.localArtworkFormat,expression:"settings.localArtworkFormat"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"localArtworkFormat",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"jpg"}},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.jpg")))]),e._v(" "),a("option",{attrs:{value:"png"}},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.png")))]),e._v(" "),a("option",{attrs:{value:"jpg,png"}},[e._v(e._s(e.$t("settings.covers.localArtworkFormat.both")))])])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.embeddedArtworkPNG,expression:"settings.embeddedArtworkPNG"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.embeddedArtworkPNG)?e._i(e.settings.embeddedArtworkPNG,null)>-1:e.settings.embeddedArtworkPNG},on:{change:function(t){var a=e.settings.embeddedArtworkPNG,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"embeddedArtworkPNG",a.concat([null])):r>-1&&e.$set(e.settings,"embeddedArtworkPNG",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"embeddedArtworkPNG",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.embeddedArtworkPNG")))])]),e._v(" "),e.settings.embeddedArtworkPNG?a("p",{staticStyle:{opacity:"0.75",color:"#ffcc22"}},[e._v("\n\t\t\t⚠️ "+e._s(e.$t("settings.covers.embeddedPNGWarning"))+"\n\t\t")]):e._e(),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.coverDescriptionUTF8,expression:"settings.tags.coverDescriptionUTF8"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.coverDescriptionUTF8)?e._i(e.settings.tags.coverDescriptionUTF8,null)>-1:e.settings.tags.coverDescriptionUTF8},on:{change:function(t){var a=e.settings.tags.coverDescriptionUTF8,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"coverDescriptionUTF8",a.concat([null])):r>-1&&e.$set(e.settings.tags,"coverDescriptionUTF8",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"coverDescriptionUTF8",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.covers.coverDescriptionUTF8")))])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.covers.jpegImageQuality")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.settings.jpegImageQuality,expression:"settings.jpegImageQuality",modifiers:{number:!0}}],attrs:{type:"number",min:"1",max:"100"},domProps:{value:e.settings.jpegImageQuality},on:{input:function(t){t.target.composing||e.$set(e.settings,"jpegImageQuality",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})])]),e._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"}},[e._v("bookmarks")]),e._v(e._s(e.$t("settings.tags.head"))+"\n\t\t")]),e._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:e.settings.tags.title,expression:"settings.tags.title"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.title)?e._i(e.settings.tags.title,null)>-1:e.settings.tags.title},on:{change:function(t){var a=e.settings.tags.title,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"title",a.concat([null])):r>-1&&e.$set(e.settings.tags,"title",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"title",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.title")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.artist,expression:"settings.tags.artist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.artist)?e._i(e.settings.tags.artist,null)>-1:e.settings.tags.artist},on:{change:function(t){var a=e.settings.tags.artist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"artist",a.concat([null])):r>-1&&e.$set(e.settings.tags,"artist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"artist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.artist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.album,expression:"settings.tags.album"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.album)?e._i(e.settings.tags.album,null)>-1:e.settings.tags.album},on:{change:function(t){var a=e.settings.tags.album,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"album",a.concat([null])):r>-1&&e.$set(e.settings.tags,"album",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"album",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.album")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.cover,expression:"settings.tags.cover"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.cover)?e._i(e.settings.tags.cover,null)>-1:e.settings.tags.cover},on:{change:function(t){var a=e.settings.tags.cover,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"cover",a.concat([null])):r>-1&&e.$set(e.settings.tags,"cover",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"cover",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.cover")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.trackNumber,expression:"settings.tags.trackNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.trackNumber)?e._i(e.settings.tags.trackNumber,null)>-1:e.settings.tags.trackNumber},on:{change:function(t){var a=e.settings.tags.trackNumber,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"trackNumber",a.concat([null])):r>-1&&e.$set(e.settings.tags,"trackNumber",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"trackNumber",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.trackNumber")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.trackTotal,expression:"settings.tags.trackTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.trackTotal)?e._i(e.settings.tags.trackTotal,null)>-1:e.settings.tags.trackTotal},on:{change:function(t){var a=e.settings.tags.trackTotal,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"trackTotal",a.concat([null])):r>-1&&e.$set(e.settings.tags,"trackTotal",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"trackTotal",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.trackTotal")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.discNumber,expression:"settings.tags.discNumber"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.discNumber)?e._i(e.settings.tags.discNumber,null)>-1:e.settings.tags.discNumber},on:{change:function(t){var a=e.settings.tags.discNumber,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"discNumber",a.concat([null])):r>-1&&e.$set(e.settings.tags,"discNumber",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"discNumber",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.discNumber")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.discTotal,expression:"settings.tags.discTotal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.discTotal)?e._i(e.settings.tags.discTotal,null)>-1:e.settings.tags.discTotal},on:{change:function(t){var a=e.settings.tags.discTotal,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"discTotal",a.concat([null])):r>-1&&e.$set(e.settings.tags,"discTotal",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"discTotal",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.discTotal")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.albumArtist,expression:"settings.tags.albumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.albumArtist)?e._i(e.settings.tags.albumArtist,null)>-1:e.settings.tags.albumArtist},on:{change:function(t){var a=e.settings.tags.albumArtist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"albumArtist",a.concat([null])):r>-1&&e.$set(e.settings.tags,"albumArtist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"albumArtist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.albumArtist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.genre,expression:"settings.tags.genre"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.genre)?e._i(e.settings.tags.genre,null)>-1:e.settings.tags.genre},on:{change:function(t){var a=e.settings.tags.genre,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"genre",a.concat([null])):r>-1&&e.$set(e.settings.tags,"genre",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"genre",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.genre")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.year,expression:"settings.tags.year"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.year)?e._i(e.settings.tags.year,null)>-1:e.settings.tags.year},on:{change:function(t){var a=e.settings.tags.year,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"year",a.concat([null])):r>-1&&e.$set(e.settings.tags,"year",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"year",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.year")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.date,expression:"settings.tags.date"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.date)?e._i(e.settings.tags.date,null)>-1:e.settings.tags.date},on:{change:function(t){var a=e.settings.tags.date,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"date",a.concat([null])):r>-1&&e.$set(e.settings.tags,"date",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"date",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.date")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.explicit,expression:"settings.tags.explicit"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.explicit)?e._i(e.settings.tags.explicit,null)>-1:e.settings.tags.explicit},on:{change:function(t){var a=e.settings.tags.explicit,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"explicit",a.concat([null])):r>-1&&e.$set(e.settings.tags,"explicit",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"explicit",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.explicit")))])])]),e._v(" "),a("div",{staticClass:"settings-container__half"},[a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.isrc,expression:"settings.tags.isrc"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.isrc)?e._i(e.settings.tags.isrc,null)>-1:e.settings.tags.isrc},on:{change:function(t){var a=e.settings.tags.isrc,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"isrc",a.concat([null])):r>-1&&e.$set(e.settings.tags,"isrc",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"isrc",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.isrc")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.length,expression:"settings.tags.length"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.length)?e._i(e.settings.tags.length,null)>-1:e.settings.tags.length},on:{change:function(t){var a=e.settings.tags.length,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"length",a.concat([null])):r>-1&&e.$set(e.settings.tags,"length",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"length",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.length")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.barcode,expression:"settings.tags.barcode"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.barcode)?e._i(e.settings.tags.barcode,null)>-1:e.settings.tags.barcode},on:{change:function(t){var a=e.settings.tags.barcode,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"barcode",a.concat([null])):r>-1&&e.$set(e.settings.tags,"barcode",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"barcode",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.barcode")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.bpm,expression:"settings.tags.bpm"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.bpm)?e._i(e.settings.tags.bpm,null)>-1:e.settings.tags.bpm},on:{change:function(t){var a=e.settings.tags.bpm,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"bpm",a.concat([null])):r>-1&&e.$set(e.settings.tags,"bpm",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"bpm",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.bpm")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.replayGain,expression:"settings.tags.replayGain"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.replayGain)?e._i(e.settings.tags.replayGain,null)>-1:e.settings.tags.replayGain},on:{change:function(t){var a=e.settings.tags.replayGain,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"replayGain",a.concat([null])):r>-1&&e.$set(e.settings.tags,"replayGain",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"replayGain",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.replayGain")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.label,expression:"settings.tags.label"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.label)?e._i(e.settings.tags.label,null)>-1:e.settings.tags.label},on:{change:function(t){var a=e.settings.tags.label,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"label",a.concat([null])):r>-1&&e.$set(e.settings.tags,"label",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"label",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.label")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.lyrics,expression:"settings.tags.lyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.lyrics)?e._i(e.settings.tags.lyrics,null)>-1:e.settings.tags.lyrics},on:{change:function(t){var a=e.settings.tags.lyrics,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"lyrics",a.concat([null])):r>-1&&e.$set(e.settings.tags,"lyrics",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"lyrics",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.lyrics")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.syncedLyrics,expression:"settings.tags.syncedLyrics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.syncedLyrics)?e._i(e.settings.tags.syncedLyrics,null)>-1:e.settings.tags.syncedLyrics},on:{change:function(t){var a=e.settings.tags.syncedLyrics,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"syncedLyrics",a.concat([null])):r>-1&&e.$set(e.settings.tags,"syncedLyrics",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"syncedLyrics",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.syncedLyrics")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.copyright,expression:"settings.tags.copyright"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.copyright)?e._i(e.settings.tags.copyright,null)>-1:e.settings.tags.copyright},on:{change:function(t){var a=e.settings.tags.copyright,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"copyright",a.concat([null])):r>-1&&e.$set(e.settings.tags,"copyright",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"copyright",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.copyright")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.composer,expression:"settings.tags.composer"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.composer)?e._i(e.settings.tags.composer,null)>-1:e.settings.tags.composer},on:{change:function(t){var a=e.settings.tags.composer,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"composer",a.concat([null])):r>-1&&e.$set(e.settings.tags,"composer",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"composer",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.composer")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.involvedPeople,expression:"settings.tags.involvedPeople"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.involvedPeople)?e._i(e.settings.tags.involvedPeople,null)>-1:e.settings.tags.involvedPeople},on:{change:function(t){var a=e.settings.tags.involvedPeople,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"involvedPeople",a.concat([null])):r>-1&&e.$set(e.settings.tags,"involvedPeople",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"involvedPeople",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.involvedPeople")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.source,expression:"settings.tags.source"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.source)?e._i(e.settings.tags.source,null)>-1:e.settings.tags.source},on:{change:function(t){var a=e.settings.tags.source,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"source",a.concat([null])):r>-1&&e.$set(e.settings.tags,"source",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"source",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.tags.source")))])])])])]),e._v(" "),a("div",{staticClass:"settings-group"},[a("h3",{staticClass:"settings-group__header settings-group__header--with-icon"},[a("i",{staticClass:"material-icons"},[e._v("list")]),e._v(e._s(e.$t("settings.other.title"))+"\n\t\t")]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.savePlaylistAsCompilation,expression:"settings.tags.savePlaylistAsCompilation"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.savePlaylistAsCompilation)?e._i(e.settings.tags.savePlaylistAsCompilation,null)>-1:e.settings.tags.savePlaylistAsCompilation},on:{change:function(t){var a=e.settings.tags.savePlaylistAsCompilation,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"savePlaylistAsCompilation",a.concat([null])):r>-1&&e.$set(e.settings.tags,"savePlaylistAsCompilation",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"savePlaylistAsCompilation",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.savePlaylistAsCompilation")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.useNullSeparator,expression:"settings.tags.useNullSeparator"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.useNullSeparator)?e._i(e.settings.tags.useNullSeparator,null)>-1:e.settings.tags.useNullSeparator},on:{change:function(t){var a=e.settings.tags.useNullSeparator,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"useNullSeparator",a.concat([null])):r>-1&&e.$set(e.settings.tags,"useNullSeparator",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"useNullSeparator",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.useNullSeparator")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.saveID3v1,expression:"settings.tags.saveID3v1"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.saveID3v1)?e._i(e.settings.tags.saveID3v1,null)>-1:e.settings.tags.saveID3v1},on:{change:function(t){var a=e.settings.tags.saveID3v1,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"saveID3v1",a.concat([null])):r>-1&&e.$set(e.settings.tags,"saveID3v1",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"saveID3v1",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.saveID3v1")))])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.multiArtistSeparator,expression:"settings.tags.multiArtistSeparator"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings.tags,"multiArtistSeparator",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.nothing")))]),e._v(" "),a("option",{attrs:{value:"default"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.default")))]),e._v(" "),a("option",{attrs:{value:"andFeat"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.andFeat")))]),e._v(" "),a("option",{attrs:{value:" & "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:" & "})))]),e._v(" "),a("option",{attrs:{value:","}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:","})))]),e._v(" "),a("option",{attrs:{value:", "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:", "})))]),e._v(" "),a("option",{attrs:{value:"/"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:"/"})))]),e._v(" "),a("option",{attrs:{value:" / "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:" / "})))]),e._v(" "),a("option",{attrs:{value:";"}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:";"})))]),e._v(" "),a("option",{attrs:{value:"; "}},[e._v(e._s(e.$t("settings.other.multiArtistSeparator.using",{separator:"; "})))])])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.tags.singleAlbumArtist,expression:"settings.tags.singleAlbumArtist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.tags.singleAlbumArtist)?e._i(e.settings.tags.singleAlbumArtist,null)>-1:e.settings.tags.singleAlbumArtist},on:{change:function(t){var a=e.settings.tags.singleAlbumArtist,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings.tags,"singleAlbumArtist",a.concat([null])):r>-1&&e.$set(e.settings.tags,"singleAlbumArtist",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings.tags,"singleAlbumArtist",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.singleAlbumArtist")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.albumVariousArtists,expression:"settings.albumVariousArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.albumVariousArtists)?e._i(e.settings.albumVariousArtists,null)>-1:e.settings.albumVariousArtists},on:{change:function(t){var a=e.settings.albumVariousArtists,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"albumVariousArtists",a.concat([null])):r>-1&&e.$set(e.settings,"albumVariousArtists",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"albumVariousArtists",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.albumVariousArtists")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.removeAlbumVersion,expression:"settings.removeAlbumVersion"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.removeAlbumVersion)?e._i(e.settings.removeAlbumVersion,null)>-1:e.settings.removeAlbumVersion},on:{change:function(t){var a=e.settings.removeAlbumVersion,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"removeAlbumVersion",a.concat([null])):r>-1&&e.$set(e.settings,"removeAlbumVersion",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"removeAlbumVersion",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.removeAlbumVersion")))])]),e._v(" "),a("label",{staticClass:"with-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.removeDuplicateArtists,expression:"settings.removeDuplicateArtists"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settings.removeDuplicateArtists)?e._i(e.settings.removeDuplicateArtists,null)>-1:e.settings.removeDuplicateArtists},on:{change:function(t){var a=e.settings.removeDuplicateArtists,n=t.target,i=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&e.$set(e.settings,"removeDuplicateArtists",a.concat([null])):r>-1&&e.$set(e.settings,"removeDuplicateArtists",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.settings,"removeDuplicateArtists",i)}}}),e._v(" "),a("span",{staticClass:"checkbox_text"},[e._v(e._s(e.$t("settings.other.removeDuplicateArtists")))])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.dateFormat.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.dateFormat,expression:"settings.dateFormat"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"dateFormat",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"Y-M-D"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.year")+"-"+e.$t("settings.other.dateFormat.month")+"-"+e.$t("settings.other.dateFormat.day"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"Y-D-M"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.year")+"-"+e.$t("settings.other.dateFormat.day")+"-"+e.$t("settings.other.dateFormat.month"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"D-M-Y"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.day")+"-"+e.$t("settings.other.dateFormat.month")+"-"+e.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"M-D-Y"}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("settings.other.dateFormat.month")+"-"+e.$t("settings.other.dateFormat.day")+"-"+e.$t("settings.other.dateFormat.year"))+"\n\t\t\t\t")]),e._v(" "),a("option",{attrs:{value:"Y"}},[e._v(e._s(e.$t("settings.other.dateFormat.year")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.featuredToTitle.title")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.featuredToTitle,expression:"settings.featuredToTitle"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"featuredToTitle",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"0"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.0")))]),e._v(" "),a("option",{attrs:{value:"1"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.1")))]),e._v(" "),a("option",{attrs:{value:"3"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.3")))]),e._v(" "),a("option",{attrs:{value:"2"}},[e._v(e._s(e.$t("settings.other.featuredToTitle.2")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.titleCasing")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.titleCasing,expression:"settings.titleCasing"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"titleCasing",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[e._v(e._s(e.$t("settings.other.casing.nothing")))]),e._v(" "),a("option",{attrs:{value:"lower"}},[e._v(e._s(e.$t("settings.other.casing.lower")))]),e._v(" "),a("option",{attrs:{value:"upper"}},[e._v(e._s(e.$t("settings.other.casing.upper")))]),e._v(" "),a("option",{attrs:{value:"start"}},[e._v(e._s(e.$t("settings.other.casing.start")))]),e._v(" "),a("option",{attrs:{value:"sentence"}},[e._v(e._s(e.$t("settings.other.casing.sentence")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.artistCasing")))]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.settings.artistCasing,expression:"settings.artistCasing"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.settings,"artistCasing",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"nothing"}},[e._v(e._s(e.$t("settings.other.casing.nothing")))]),e._v(" "),a("option",{attrs:{value:"lower"}},[e._v(e._s(e.$t("settings.other.casing.lower")))]),e._v(" "),a("option",{attrs:{value:"upper"}},[e._v(e._s(e.$t("settings.other.casing.upper")))]),e._v(" "),a("option",{attrs:{value:"start"}},[e._v(e._s(e.$t("settings.other.casing.start")))]),e._v(" "),a("option",{attrs:{value:"sentence"}},[e._v(e._s(e.$t("settings.other.casing.sentence")))])])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.previewVolume")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.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:e.previewVolume.preview_max_volume},on:{change:e.updateMaxVolume,__r:function(t){e.$set(e.previewVolume,"preview_max_volume",e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),a("span",[e._v(e._s(e.previewVolume.preview_max_volume)+"%")])]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.other.executeCommand.title")))]),e._v(" "),a("p",{staticClass:"secondary-text"},[e._v(e._s(e.$t("settings.other.executeCommand.description")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.settings.executeCommand,expression:"settings.executeCommand"}],attrs:{type:"text"},domProps:{value:e.settings.executeCommand},on:{input:function(t){t.target.composing||e.$set(e.settings,"executeCommand",t.target.value)}}})])]),e._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"}})]),e._v("\n\t\t\t"+e._s(e.$t("settings.spotify.title"))+"\n\t\t")]),e._v(" "),a("a",{attrs:{href:"https://codeberg.org/RemixDev/deemix/wiki/Enabling-Spotify-Features",target:"_blank"}},[e._v("\n\t\t\t"+e._s(e.$t("settings.spotify.question"))+"\n\t\t")]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.spotify.clientID")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.spotifyFeatures.clientId,expression:"spotifyFeatures.clientId"}],attrs:{type:"text"},domProps:{value:e.spotifyFeatures.clientId},on:{input:function(t){t.target.composing||e.$set(e.spotifyFeatures,"clientId",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.spotify.clientSecret")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.spotifyFeatures.clientSecret,expression:"spotifyFeatures.clientSecret"}],attrs:{type:"password"},domProps:{value:e.spotifyFeatures.clientSecret},on:{input:function(t){t.target.composing||e.$set(e.spotifyFeatures,"clientSecret",t.target.value)}}})]),e._v(" "),a("div",{staticClass:"input_group"},[a("p",{staticClass:"input_group_text"},[e._v(e._s(e.$t("settings.spotify.username")))]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.spotifyUser,expression:"spotifyUser"}],attrs:{type:"text"},domProps:{value:e.spotifyUser},on:{input:function(t){t.target.composing||(e.spotifyUser=t.target.value)}}})])]),e._v(" "),a("footer",{staticClass:"bg-background-main"},[a("button",{staticClass:"mr-2 btn btn-primary",on:{click:e.resetSettings}},[e._v(e._s(e.$t("settings.reset")))]),e._v(" "),a("button",{staticClass:"btn btn-primary",on:{click:e.saveSettings}},[e._v(e._s(e.$t("settings.save")))])])])},staticRenderFns:[]},(function(e){e&&e("data-v-1719b5f3_0",{source:"#logged_in_info{height:250px;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.locale-flag{width:60px;justify-content:center;cursor:pointer}.locale-flag:not(:last-child){margin-right:10px}.locale-flag.locale-flag--current svg{filter:brightness(1)}.locale-flag svg{width:40px!important;height:40px!important;filter:brightness(.5)}",map:void 0,media:void 0})}),{data(){return{flags:mh,currentLocale:this.$i18n.locale,locales:this.$i18n.availableLocales,settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,slimSidebar:!1,previewVolume:window.vol,accountNum:0,accounts:[]}},computed:{...Fo({arl:"getARL",user:"getUser",isLoggedIn:"isLoggedIn",clientMode:"getClientMode"}),needToWait(){return 0===Object.keys(this.getSettings).length},changeSlimDownloads:{get(){return this.slimDownloads},set(e){this.slimDownloads=e,document.getElementById("download_list").classList.toggle("slim",e),localStorage.setItem("slimDownloads",e)}},changeSlimSidebar:{get(){return this.slimSidebar},set(e){this.slimSidebar=e,document.getElementById("sidebar").classList.toggle("slim",e),localStorage.setItem("slimSidebar",e)}},pictureHref(){return`https://e-cdns-images.dzcdn.net/images/user/${this.user.picture}/125x125-000000-80-0-0.jpg`}},async mounted(){const{settingsData:e,defaultSettingsData:t,spotifyCredentials:a}=await ph();this.defaultSettings=t,this.initSettings(e,a);let n=localStorage.getItem("accountNum");n&&(this.accountNum=n);let i=localStorage.getItem("spotifyUser");i&&(this.lastUser=i,this.spotifyUser=i,Go.emit("update_userSpotifyPlaylists",i)),this.changeSlimDownloads="true"===localStorage.getItem("slimDownloads"),this.changeSlimSidebar="true"===localStorage.getItem("slimSidebar");let r=parseInt(localStorage.getItem("previewVolume"));isNaN(r)&&(r=80,localStorage.setItem("previewVolume",r)),window.vol.preview_max_volume=r,Go.on("updateSettings",this.updateSettings),Go.on("accountChanged",this.accountChanged),Go.on("familyAccounts",this.initAccounts),Go.on("downloadFolderSelected",this.downloadFolderSelected),Go.on("applogin_arl",this.loggedInViaDeezer),this.$on("hook:destroyed",(()=>{Go.off("updateSettings"),Go.off("accountChanged"),Go.off("familyAccounts"),Go.off("downloadFolderSelected"),Go.off("applogin_arl")}))},methods:{...Do({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 e=this.$refs.loginInput;e.setAttribute("type","text"),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.setAttribute("type","password"),bl(this.$t("settings.toasts.ARLcopied"),"assignment")},changeLocale(e){this.$i18n.locale=e,this.currentLocale=e,localStorage.setItem("locale",e)},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 e=!1;this.lastUser!=this.spotifyUser&&(this.lastUser=(" "+this.spotifyUser).slice(1),localStorage.setItem("spotifyUser",this.lastUser),e=!0),Go.emit("saveSettings",this.lastSettings,this.lastCredentials,!!e&&this.lastUser)},selectDownloadFolder(){Go.emit("selectDownloadFolder")},downloadFolderSelected(e){this.$set(this.settings,"downloadLocation",e)},loadSettings(e){this.lastSettings=JSON.parse(JSON.stringify(e)),this.settings=JSON.parse(JSON.stringify(e))},loadCredentials(e){this.lastCredentials=JSON.parse(JSON.stringify(e)),this.spotifyFeatures=JSON.parse(JSON.stringify(e))},loggedInViaDeezer(e){this.dispatchARL({arl:e}),Go.emit("login",e,!0,this.accountNum)},login(){let e=this.$refs.loginInput.value.trim();e&&e!==this.arl&&Go.emit("login",e,!0,this.accountNum)},appLogin(e){Go.emit("applogin")},changeAccount(){Go.emit("changeAccount",this.accountNum)},accountChanged(e,t){this.$refs.username.innerText=e.name,this.$refs.userpicture.src=`https://e-cdns-images.dzcdn.net/images/user/${e.picture}/125x125-000000-80-0-0.jpg`,this.accountNum=t,localStorage.setItem("accountNum",this.accountNum)},initAccounts(e){this.accounts=e},logout(){Go.emit("logout")},initSettings(e,t){this.loadSettings(e),this.loadCredentials(t),bl(this.$t("settings.toasts.init"),"settings")},updateSettings(e,t){this.loadSettings(e),this.loadCredentials(t),bl(this.$t("settings.toasts.update"),"settings")},resetSettings(){this.settings=JSON.parse(JSON.stringify(this.defaultSettings))}}},undefined,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),i.map&&(a+="\n/*# sourceURL="+i.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}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 e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));var fh=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="Tracklist.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"root",staticClass:"relative fixed-footer bg-background-main image-header"},[a("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[a("h1",{staticClass:"flex items-center m-0 text-5xl"},[e._v("\n\t\t\t"+e._s(e.title)+" "),e.explicit?a("i",{staticClass:"material-icons explicit-icon explicit-icon--right"},[e._v("explicit")]):e._e()]),e._v(" "),a("h2",{staticClass:"m-0 mb-3 text-lg"},[e.metadata?a("p",[e._v(e._s(e.metadata))]):e._e(),e._v(" "),e.release_date?a("p",[e._v(e._s(e.release_date))]):e._e()])]),e._v(" "),a("table",{staticClass:"table table--tracklist"},[a("thead",[a("tr",[e._m(0),e._v(" "),a("th",[e._v("#")]),e._v(" "),a("th",[e._v(e._s(e.$tc("globals.listTabs.title",1)))]),e._v(" "),a("th",[e._v(e._s(e.$tc("globals.listTabs.artist",1)))]),e._v(" "),"playlist"===e.type?a("th",[e._v(e._s(e.$tc("globals.listTabs.album",1)))]):e._e(),e._v(" "),e._m(1),e._v(" "),a("th",{staticClass:"table__icon table__cell--center clickable"},[a("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:e.toggleAll}})])])]),e._v(" "),a("tbody",["spotifyPlaylist"!==e.type?[e._l(e.body,(function(t,n){return["track"==t.type?a("tr",{on:{click:function(a){return e.selectRow(n,t)}}},[a("td",{staticClass:"table__cell--x-small table__cell--center"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[a("i",e._g({staticClass:"material-icons",class:{preview_playlist_controls:t.preview,"cursor-pointer":t.preview,disabled:!t.preview},attrs:{"data-preview":t.preview,title:e.$t("globals.play_hint")}},{click:!!t.preview&&e.playPausePreview}),[e._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),e._v(" "),a("td",{staticClass:"table__cell--small table__cell--center track_position"},[e._v("\n\t\t\t\t\t\t\t"+e._s("album"===e.type?t.track_position:e.body.indexOf(t)+1)+"\n\t\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__cell--large table__cell--with-icon"},[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[t.explicit_lyrics?a("i",{staticClass:"material-icons explicit-icon"},[e._v(" explicit ")]):e._e(),e._v("\n\t\t\t\t\t\t\t\t"+e._s(t.title+(t.title_version&&-1==t.title.indexOf(t.title_version)?" "+t.title_version:""))+"\n\t\t\t\t\t\t\t")])]),e._v(" "),a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Artist",params:{id:t.artist.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.artist.name)+"\n\t\t\t\t\t\t")]),e._v(" "),"playlist"===e.type?a("router-link",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{tag:"td",to:{name:"Album",params:{id:t.album.id}}}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.album.title)+"\n\t\t\t\t\t\t")]):e._e(),e._v(" "),a("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===e.type,"table__cell--x-small":"playlist"===e.type}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.convertDuration(t.duration))+"\n\t\t\t\t\t\t")]),e._v(" "),a("td",{staticClass:"table__icon table__cell--center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?e._i(t.selected,null)>-1:t.selected},on:{change:function(a){var n=t.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=e._i(n,null);i.checked?s<0&&e.$set(t,"selected",n.concat([null])):s>-1&&e.$set(t,"selected",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(t,"selected",r)}}})])],1):"disc_separator"==t.type?a("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[e._m(2,!0),e._v(" "),a("td",{staticClass:"table__cell--center"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.number)+"\n\t\t\t\t\t\t")]),e._v(" "),a("td",{attrs:{colspan:"4"}})]):e._e()]}))]:e._l(e.body,(function(t,n){return a("tr",[a("td",[t.preview_url?a("i",{staticClass:"material-icons",class:{preview_playlist_controls:t.preview_url,"cursor-pointer":t.preview_url},attrs:{"data-preview":t.preview_url,title:e.$t("globals.play_hint")},on:{click:e.playPausePreview}},[e._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):a("i",{staticClass:"material-icons disabled"},[e._v("play_arrow")])]),e._v(" "),a("td",[e._v(e._s(n+1))]),e._v(" "),a("td",{staticClass:"flex items-center"},[t.explicit?a("i",{staticClass:"material-icons explicit-icon"},[e._v("explicit")]):e._e(),e._v("\n\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t")]),e._v(" "),a("td",[e._v(e._s(t.artists[0].name))]),e._v(" "),a("td",[e._v(e._s(t.album.name))]),e._v(" "),a("td",[e._v(e._s(e.convertDuration(Math.floor(t.duration_ms/1e3))))]),e._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?e._i(t.selected,null)>-1:t.selected},on:{change:function(a){var n=t.selected,i=a.target,r=!!i.checked;if(Array.isArray(n)){var s=e._i(n,null);i.checked?s<0&&e.$set(t,"selected",n.concat([null])):s>-1&&e.$set(t,"selected",n.slice(0,s).concat(n.slice(s+1)))}else e.$set(t,"selected",r)}}})])])}))],2)]),e._v(" "),e.label?a("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[e._v(e._s(e.label))]):e._e(),e._v(" "),a("footer",{staticClass:"bg-background-main"},[a("button",{staticClass:"mr-2 btn btn-primary",attrs:{"data-link":e.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(""+e.$t("globals.download",{thing:e.$tc("globals.listTabs."+e.type,1)}))+"\n\t\t")]),e._v(" "),a("button",{staticClass:"flex items-center btn btn-primary",attrs:{"data-link":e.selectedLinks()},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(e.$t("tracklist.downloadSelection"))),a("i",{staticClass:"ml-2 material-icons"},[e._v("file_download")])])])])},staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",[a("i",{staticClass:"material-icons"},[e._v("music_note")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",[a("i",{staticClass:"material-icons"},[e._v("timer")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("td",[a("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[a("i",{staticClass:"material-icons"},[e._v("album")])])])}]},0,{data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),mounted(){il.$on("tracklistTab:selectRow",this.selectRow),Go.on("show_album",this.showAlbum),Go.on("show_playlist",this.showPlaylist),Go.on("show_spotifyplaylist",this.showSpotifyPlaylist)},methods:{playPausePreview(e){il.$emit("trackPreview:playPausePreview",e)},reset(){this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(e){Ko.sendAddToQueue(e.currentTarget.dataset.link)},toggleAll(e){this.body.forEach((t=>{"track"==t.type&&(t.selected=e.currentTarget.checked)}))},selectedLinks(){var e=[];return this.body&&this.body.forEach((t=>{"track"==t.type&&t.selected&&e.push("spotifyPlaylist"==this.type?t.uri:t.link)})),e.join(";")},convertDuration:tl.convertDuration,showAlbum(e){this.reset();const{id:t,title:a,explicit_lyrics:n,label:i,artist:{name:r},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=e;this.type="album",this.link="https://www.deezer.com/album/"+t,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,Sm(s)?this.body=null:this.body=s},showPlaylist(e){this.reset();const{id:t,title:a,picture_xl:n,creation_date:i,creator:{name:r},tracks:s,tracks:{length:o}}=e;this.type="playlist",this.link="https://www.deezer.com/playlist/"+t,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)}`,Sm(s)?this.body=null:this.body=s},showSpotifyPlaylist(e){this.reset();const{uri:t,name:a,images:n,images:{length:i},owner:{display_name:r},tracks:s,tracks:{length:o}}=e;this.type="spotifyPlaylist",this.link=t,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)}`,Sm(s)?this.body=null:this.body=s},selectRow(e,t){t.selected=!t.selected}}},undefined,!1);xa.use(su);const gh=new su({mode:"history",routes:[{path:"/",name:"Home",component:Hm,meta:{notKeepAlive:!0}},{path:"/tracklist/:type/:id",name:"Tracklist",component:fh},{path:"/artist/:id",name:"Artist",component:Dm},{path:"/album/:id",name:"Album",component:fh},{path:"/playlist/:id",name:"Playlist",component:fh},{path:"/spotify-playlist/:id",name:"Spotify Playlist",component:fh},{path:"/charts",name:"Charts",component:$m,meta:{notKeepAlive:!0}},{path:"/favorites",name:"Favorites",component:Bm,meta:{notKeepAlive:!0}},{path:"/errors",name:"Errors",component:Rm},{path:"/link-analyzer",name:"Link Analyzer",component:Km},{path:"/about",name:"About",component:cu},{path:"/settings",name:"Settings",component:hh},{path:"/search",name:"Search",component:lh},{path:"*",component:Hm}],scrollBehavior:(e,t,a)=>({x:0,y:0})});gh.beforeEach(((e,t,a)=>{let n=null;switch(e.name){case"Artist":n={type:"artist",id:e.params.id};break;case"Tracklist":n={type:e.params.type,id:e.params.id};break;case"Album":n={type:"album",id:e.params.id};break;case"Playlist":n={type:"playlist",id:e.params.id};break;case"Spotify Playlist":n={type:"spotifyplaylist",id:e.params.id}}n&&Go.emit("getTracklist",n),a()})),window.vol={preview_max_volume:100},document.addEventListener("DOMContentLoaded",(function(){new xa({store:Vo,router:gh,i18n:gc,render:e=>e(yl)}).$mount("#app")})),window.addEventListener("pywebviewready",(function(){Vo.dispatch("setClientMode",!0),document.addEventListener("keyup",(e=>{e.altKey&&"ArrowLeft"===e.key&&gh.back(),e.altKey&&"ArrowRight"===e.key&&gh.forward()}))})),document.addEventListener("paste",(e=>{if("input"===e.target.localName)return;let t=e.clipboardData.getData("Text");if(Yo(t))"Link Analyzer"===gh.currentRoute.name?Go.emit("analyzeLink",t):Wo(t);else{let e=document.querySelector("#searchbar");e.select(),e.setSelectionRange(0,99999)}})),Go.on("message",(function(e){console.log(e)})),Go.on("logging_in",(function(){bl(gc.t("toasts.loggingIn"),"loading",!1,"login-toast")})),Go.on("init_autologin",(function(){let e=localStorage.getItem("arl"),t=localStorage.getItem("accountNum");e&&(e=e.trim(),0!=t?Go.emit("login",e,!0,t):Go.emit("login",e))})),Go.on("logged_in",(function(e){const{status:t,user:a}=e;switch(t){case 1:case 3:bl(gc.t("toasts.loggedIn"),"done",!0,"login-toast"),Vo.dispatch("login",e);break;case 2:bl(gc.t("toasts.alreadyLogged"),"done",!0,"login-toast"),Vo.dispatch("setUser",a);break;case 0:bl(gc.t("toasts.loginFailed"),"close",!0,"login-toast"),Vo.dispatch("removeARL");break;case-1:return void bl(gc.t("toasts.deezerNotAvailable"),"close",!0,"login-toast")}})),Go.on("logged_out",(function(){bl(gc.t("toasts.loggedOut"),"done",!0,"login-toast"),Vo.dispatch("logout")})),Go.on("restoringQueue",(function(){bl(gc.t("toasts.restoringQueue"),"loading",!1,"restoring_queue")})),Go.on("cancellingCurrentItem",(function(e){bl(gc.t("toasts.cancellingCurrentItem"),"loading",!1,"cancelling_"+e)})),Go.on("currentItemCancelled",(function(e){bl(gc.t("toasts.currentItemCancelled"),"done",!0,"cancelling_"+e)})),Go.on("startAddingArtist",(function(e){bl(gc.t("toasts.startAddingArtist",{artist:e.name}),"loading",!1,"artist_"+e.id)})),Go.on("finishAddingArtist",(function(e){bl(gc.t("toasts.finishAddingArtist",{artist:e.name}),"done",!0,"artist_"+e.id)})),Go.on("startConvertingSpotifyPlaylist",(function(e){bl(gc.t("toasts.startConvertingSpotifyPlaylist"),"loading",!1,"spotifyplaylist_"+e)})),Go.on("finishConvertingSpotifyPlaylist",(function(e){bl(gc.t("toasts.finishConvertingSpotifyPlaylist"),"done",!0,"spotifyplaylist_"+e)})),Go.on("errorMessage",(function(e){bl(e,"error")})),Go.on("queueError",(function(e){e.errid?bl(e.link+" - "+gc.t("errors.ids."+e.errid),"error"):bl(e.link+" - "+e.error,"error")})),Go.on("alreadyInQueue",(function(e){bl(gc.t("toasts.alreadyInQueue",{item:e.title}),"playlist_add_check")})),Go.on("loginNeededToDownload",(function(e){bl(gc.t("toasts.loginNeededToDownload"),"report")})),Go.on("startGeneratingItems",(function(e){bl(gc.t("toasts.startGeneratingItems",{n:e.total}),"loading",!1,"batch_"+e.uuid)})),Go.on("finishGeneratingItems",(function(e){bl(gc.t("toasts.finishGeneratingItems",{n:e.total}),"done",!0,"batch_"+e.uuid)})); diff --git a/src/components/pages/Settings.vue b/src/components/pages/Settings.vue index 00a0ae1..20a11c3 100644 --- a/src/components/pages/Settings.vue +++ b/src/components/pages/Settings.vue @@ -54,7 +54,7 @@