From 8d72a247d92e965dc5352694ec4225ebe9908c58 Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 5 Jun 2019 14:11:13 +0200 Subject: [PATCH 01/27] update changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 589a3763ad..5db9bb9e8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## Unreleased + +#### New Features + +#### Improvements + +#### Fixes + +----- + ## 0.3.2 (2019-06-05) #### New Features From 16020fb87532e0a6c00ffbe54b5317c89acb6b8b Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 5 Jun 2019 14:11:25 +0200 Subject: [PATCH 02/27] yarn dev --- themes/dark/assets/js/app.js | 17 +- themes/dark/assets/js/index.js | 17 +- themes/dark/assets/js/medusa-runtime.js | 3159 +++++++++++++++++++++- themes/dark/assets/js/vendors.js | 1694 +++++++++++- themes/light/assets/js/app.js | 17 +- themes/light/assets/js/index.js | 17 +- themes/light/assets/js/medusa-runtime.js | 3159 +++++++++++++++++++++- themes/light/assets/js/vendors.js | 1694 +++++++++++- 8 files changed, 9534 insertions(+), 240 deletions(-) diff --git a/themes/dark/assets/js/app.js b/themes/dark/assets/js/app.js index 264b2d8e49..34594debbb 100644 --- a/themes/dark/assets/js/app.js +++ b/themes/dark/assets/js/app.js @@ -1,2 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{178:function(o,n,e){"use strict";e.r(n);var a=e(6),t=e(1),c=e(16),s=e(55),i=e(56),d=e(57),p=e(15),u=e(9),l=e(2);a.a.config.devtools=!0,a.a.config.performance=!0,a.a.use(t.b),a.a.use(c.a),a.a.use(s.a),a.a.use(i.a),[l.b,l.c,l.d,l.e,l.f,l.g,l.l,l.n,l.p,l.q,l.t,l.u,l.v,l.w,l.x,l.B].forEach(o=>{a.a.component(o.name,o)}),window.components.forEach(o=>{Object.keys(a.a.options.components).includes(o.name)||(u.c&&console.debug("Registering ".concat(o.name)),a.a.component(o.name,o))});const m=new a.a({name:"App",store:d.a,router:p.a,components:{},data:()=>({globalLoading:!1,pageComponent:!1}),mounted(){if(u.c&&console.log("App Mounted!"),!document.location.pathname.includes("/login")){const{$store:o}=this;Promise.all([o.dispatch("login",{username:window.username}),o.dispatch("getConfig")]).then(([o,n])=>{u.c&&console.log("App Loaded!");const e=new CustomEvent("medusa-config-loaded",{detail:n.main});window.dispatchEvent(e)}).catch(o=>{console.debug(o),alert("Unable to connect to Medusa!")})}}}).$mount("#vue-wrap");n.default=m}},[[178,1,0]]]); -//# sourceMappingURL=app.js.map \ No newline at end of file +(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app"],{ + +/***/ "./src/app.js": +/*!********************!*\ + !*** ./src/app.js ***! + \********************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-router */ \"./node_modules/vue-router/dist/vue-router.esm.js\");\n/* harmony import */ var vue_async_computed__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-async-computed */ \"./node_modules/vue-async-computed/dist/vue-async-computed.esm.js\");\n/* harmony import */ var vue_snotify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-snotify */ \"./node_modules/vue-snotify/vue-snotify.esm.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./store */ \"./src/store/index.js\");\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./router */ \"./src/router.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components */ \"./src/components/index.js\");\n\n\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].config.devtools = true;\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].config.performance = true;\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vuex__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vue_router__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vue_async_computed__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vue_snotify__WEBPACK_IMPORTED_MODULE_4__[\"default\"]); // Global components\n\nconst globalComponents = [_components__WEBPACK_IMPORTED_MODULE_8__[\"AnidbReleaseGroupUi\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"AppHeader\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"AppLink\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"Asset\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"Backstretch\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"Config\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"FileBrowser\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"LanguageSelect\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"NamePattern\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"PlotInfo\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"RootDirs\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"ScrollButtons\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"SelectList\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"Show\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"ShowSelector\"], _components__WEBPACK_IMPORTED_MODULE_8__[\"SubMenu\"]];\nglobalComponents.forEach(component => {\n vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].component(component.name, component);\n}); // Load x-template components\n\nwindow.components.forEach(component => {\n // Skip already registered components\n if (!Object.keys(vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].options.components).includes(component.name)) {\n if (_utils__WEBPACK_IMPORTED_MODULE_7__[\"isDevelopment\"]) {\n console.debug(\"Registering \".concat(component.name));\n }\n\n vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].component(component.name, component);\n }\n});\nconst app = new vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n name: 'App',\n store: _store__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n router: _router__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n components: {},\n\n data() {\n return {\n globalLoading: false,\n pageComponent: false\n };\n },\n\n mounted() {\n if (_utils__WEBPACK_IMPORTED_MODULE_7__[\"isDevelopment\"]) {\n console.log('App Mounted!');\n }\n\n if (!document.location.pathname.includes('/login')) {\n const {\n $store\n } = this;\n Promise.all([$store.dispatch('login', {\n username: window.username\n }), $store.dispatch('getConfig')]).then(([_, config]) => {\n if (_utils__WEBPACK_IMPORTED_MODULE_7__[\"isDevelopment\"]) {\n console.log('App Loaded!');\n } // Legacy - send config.main to jQuery (received by index.js)\n\n\n const event = new CustomEvent('medusa-config-loaded', {\n detail: config.main\n });\n window.dispatchEvent(event);\n }).catch(error => {\n console.debug(error);\n alert('Unable to connect to Medusa!'); // eslint-disable-line no-alert\n });\n }\n }\n\n}).$mount('#vue-wrap');\n/* harmony default export */ __webpack_exports__[\"default\"] = (app);\n\n//# sourceURL=webpack:///./src/app.js?"); + +/***/ }) + +},[["./src/app.js","vendors","medusa-runtime"]]]); \ No newline at end of file diff --git a/themes/dark/assets/js/index.js b/themes/dark/assets/js/index.js index e6b4d58e15..c3a0fc204c 100644 --- a/themes/dark/assets/js/index.js +++ b/themes/dark/assets/js/index.js @@ -1,2 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{85:function(n,o,e){"use strict";e.r(o);var w=e(4),i=e.n(w),t=(e(86),e(99),e(100),e(101),e(109),e(6)),d=e(1),s=e(80),c=e.n(s),p=e(16),u=e(54),a=e.n(u),m=e(55),r=e(11),h=e(56),l=e(17),b=e.n(l),f=e(14),g=e.n(f),v=e(57),y=e(15),S=e(9),k=e(3),A=e(2);function E(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}window&&(window.isDevelopment=S.c,window.$=i.a,window.jQuery=i.a,window.Vue=t.a,window.Vuex=d.b,window.VueMeta=c.a,window.VueRouter=p.a,window.VueNativeSock=a.a,window.AsyncComputed=m.a,window.ToggleButton=r.ToggleButton,window.Snotify=h.a,window.axios=b.a,window._={debounce:g()},window.store=v.a,window.router=y.a,window.apiRoute=k.c,window.apiv1=k.d,window.api=k.a,window.MEDUSA={common:{},config:{},home:{},addShows:{}},window.webRoot=k.e,window.apiKey=k.b,window.apiRoot=k.e+"/api/v2/",window.components=[],window.components.push(A.a),window.components.push(A.b),window.components.push(A.c),window.components.push(A.d),window.components.push(A.e),window.components.push(A.f),window.components.push(A.h),window.components.push(A.i),window.components.push(A.j),window.components.push(A.k),window.components.push(A.l),window.components.push(A.m),window.components.push(A.n),window.components.push(A.o),window.components.push(A.p),window.components.push(A.q),window.components.push(A.r),window.components.push(A.s),window.components.push(A.t),window.components.push(A.u),window.components.push(A.v),window.components.push(A.w),window.components.push(A.x),window.components.push(A.y),window.components.push(A.z),window.components.push(A.A),window.components.push(A.B));const O={exec(n,o){const e=MEDUSA;o=void 0===o?"init":o,""!==n&&e[n]&&"function"==typeof e[n][o]&&e[n][o]()},init(){i()("[v-cloak]").removeAttr("v-cloak");const{body:n}=document,o=n.getAttribute("data-controller"),e=n.getAttribute("data-action");O.exec("common"),O.exec(o),O.exec(o,e),window.dispatchEvent(new Event("medusa-loaded"))}},{pathname:j}=window.location;if(!j.includes("/login")&&!j.includes("/apibuilder")){const n=n=>{const o=n.detail,e="dark"===o.themeName?"-dark":"";MEDUSA.config=function(n){for(var o=1;o'}),i()(document).ready(O.init)};window.addEventListener("medusa-config-loaded",n,{once:!0})}}},[[85,1,0]]]); -//# sourceMappingURL=index.js.map \ No newline at end of file +(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["index"],{ + +/***/ "./src/index.js": +/*!**********************!*\ + !*** ./src/index.js ***! + \**********************/ +/*! no exports provided */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\");\n/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! bootstrap */ \"./node_modules/bootstrap/dist/js/npm.js\");\n/* harmony import */ var bootstrap__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(bootstrap__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var bootstrap_dist_css_bootstrap_min_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! bootstrap/dist/css/bootstrap.min.css */ \"./node_modules/bootstrap/dist/css/bootstrap.min.css\");\n/* harmony import */ var bootstrap_dist_css_bootstrap_min_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(bootstrap_dist_css_bootstrap_min_css__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var vue_snotify_styles_material_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-snotify/styles/material.css */ \"./node_modules/vue-snotify/styles/material.css\");\n/* harmony import */ var vue_snotify_styles_material_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_snotify_styles_material_css__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _vendor_js_tablesorter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vendor/js/tablesorter */ \"./vendor/js/tablesorter.js\");\n/* harmony import */ var _vendor_css_open_sans_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vendor/css/open-sans.css */ \"./vendor/css/open-sans.css\");\n/* harmony import */ var _vendor_css_open_sans_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_vendor_css_open_sans_css__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var vue_meta__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue-meta */ \"./node_modules/vue-meta/lib/vue-meta.js\");\n/* harmony import */ var vue_meta__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue_meta__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vue-router */ \"./node_modules/vue-router/dist/vue-router.esm.js\");\n/* harmony import */ var vue_native_websocket__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! vue-native-websocket */ \"./node_modules/vue-native-websocket/dist/build.js\");\n/* harmony import */ var vue_native_websocket__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(vue_native_websocket__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var vue_async_computed__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vue-async-computed */ \"./node_modules/vue-async-computed/dist/vue-async-computed.esm.js\");\n/* harmony import */ var vue_js_toggle_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! vue-js-toggle-button */ \"./node_modules/vue-js-toggle-button/dist/index.js\");\n/* harmony import */ var vue_js_toggle_button__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(vue_js_toggle_button__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var vue_snotify__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-snotify */ \"./node_modules/vue-snotify/vue-snotify.esm.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./store */ \"./src/store/index.js\");\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./router */ \"./src/router.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./utils */ \"./src/utils.js\");\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./api */ \"./src/api.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components */ \"./src/components/index.js\");\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/* eslint-disable import/no-unassigned-import */\n\n\n\n\n\n\n/* eslint-enable import/no-unassigned-import */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nif (window) {\n window.isDevelopment = _utils__WEBPACK_IMPORTED_MODULE_18__[\"isDevelopment\"]; // Adding libs to window so mako files can use them\n\n window.$ = jquery__WEBPACK_IMPORTED_MODULE_0___default.a;\n window.jQuery = jquery__WEBPACK_IMPORTED_MODULE_0___default.a;\n window.Vue = vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n window.Vuex = vuex__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\n window.VueMeta = vue_meta__WEBPACK_IMPORTED_MODULE_8___default.a;\n window.VueRouter = vue_router__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\n window.VueNativeSock = vue_native_websocket__WEBPACK_IMPORTED_MODULE_10___default.a;\n window.AsyncComputed = vue_async_computed__WEBPACK_IMPORTED_MODULE_11__[\"default\"];\n window.ToggleButton = vue_js_toggle_button__WEBPACK_IMPORTED_MODULE_12__[\"ToggleButton\"];\n window.Snotify = vue_snotify__WEBPACK_IMPORTED_MODULE_13__[\"default\"];\n window.axios = axios__WEBPACK_IMPORTED_MODULE_14___default.a;\n window._ = {\n debounce: (lodash_debounce__WEBPACK_IMPORTED_MODULE_15___default())\n };\n window.store = _store__WEBPACK_IMPORTED_MODULE_16__[\"default\"];\n window.router = _router__WEBPACK_IMPORTED_MODULE_17__[\"default\"];\n window.apiRoute = _api__WEBPACK_IMPORTED_MODULE_19__[\"apiRoute\"];\n window.apiv1 = _api__WEBPACK_IMPORTED_MODULE_19__[\"apiv1\"];\n window.api = _api__WEBPACK_IMPORTED_MODULE_19__[\"api\"];\n window.MEDUSA = {\n common: {},\n config: {},\n home: {},\n addShows: {}\n };\n window.webRoot = _api__WEBPACK_IMPORTED_MODULE_19__[\"webRoot\"];\n window.apiKey = _api__WEBPACK_IMPORTED_MODULE_19__[\"apiKey\"];\n window.apiRoot = _api__WEBPACK_IMPORTED_MODULE_19__[\"webRoot\"] + '/api/v2/'; // Push pages that load via a vue file but still use `el` for mounting\n\n window.components = [];\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"AddShowOptions\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"AnidbReleaseGroupUi\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"AppHeader\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"AppLink\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"Asset\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"Backstretch\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"ConfigTemplate\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"ConfigTextbox\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"ConfigTextboxNumber\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"ConfigToggleSlider\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"FileBrowser\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"Home\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"LanguageSelect\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"ManualPostProcess\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"NamePattern\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"PlotInfo\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"QualityChooser\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"QualityPill\"]); // This component is also used in a hack/workaround in `./static/js/ajax-episode-search.js`\n\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"RootDirs\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"ScrollButtons\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"SelectList\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"Show\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"ShowSelector\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"SnatchSelection\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"StateSwitch\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"Status\"]);\n window.components.push(_components__WEBPACK_IMPORTED_MODULE_20__[\"SubMenu\"]);\n}\n\nconst UTIL = {\n exec(controller, action) {\n const ns = MEDUSA;\n action = action === undefined ? 'init' : action;\n\n if (controller !== '' && ns[controller] && typeof ns[controller][action] === 'function') {\n ns[controller][action]();\n }\n },\n\n init() {\n jquery__WEBPACK_IMPORTED_MODULE_0___default()('[v-cloak]').removeAttr('v-cloak');\n const {\n body\n } = document;\n const controller = body.getAttribute('data-controller');\n const action = body.getAttribute('data-action');\n UTIL.exec('common'); // Load common\n\n UTIL.exec(controller); // Load MEDUSA[controller]\n\n UTIL.exec(controller, action); // Load MEDUSA[controller][action]\n\n window.dispatchEvent(new Event('medusa-loaded'));\n }\n\n};\nconst {\n pathname\n} = window.location;\n\nif (!pathname.includes('/login') && !pathname.includes('/apibuilder')) {\n const configLoaded = event => {\n const data = event.detail;\n const themeSpinner = data.themeName === 'dark' ? '-dark' : '';\n MEDUSA.config = _objectSpread({}, MEDUSA.config, data, {\n themeSpinner,\n loading: ''\n });\n jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(UTIL.init);\n };\n\n window.addEventListener('medusa-config-loaded', configLoaded, {\n once: true\n });\n}\n\n//# sourceURL=webpack:///./src/index.js?"); + +/***/ }) + +},[["./src/index.js","vendors","medusa-runtime"]]]); \ No newline at end of file diff --git a/themes/dark/assets/js/medusa-runtime.js b/themes/dark/assets/js/medusa-runtime.js index 08643297cc..dc9e9cb782 100644 --- a/themes/dark/assets/js/medusa-runtime.js +++ b/themes/dark/assets/js/medusa-runtime.js @@ -1,2 +1,3157 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,,function(e,t,n){"use strict";n(58);var s=n(1),a=n(3),i=n(9),o=n(5),r={name:"anidb-release-group-ui",props:{blacklist:{type:Array,default:()=>[]},whitelist:{type:Array,default:()=>[]},allGroups:{type:Array,default:()=>[]}},data:()=>({index:0,allReleaseGroups:[],newGroup:""}),mounted(){this.createIndexedObjects(this.blacklist,"blacklist"),this.createIndexedObjects(this.whitelist,"whitelist"),this.createIndexedObjects(this.allGroups,"releasegroups")},methods:{toggleItem(e){this.allReleaseGroups=this.allReleaseGroups.map(t=>(t.id===e.id&&(t.toggled=!t.toggled),t))},createIndexedObjects(e,t){for(let n of e){"string"==typeof n&&(n={name:n});const e=Object.assign({id:this.index,toggled:!1,memberOf:t},n);0===this.allReleaseGroups.filter(n=>n.name===e.name&&n.memberOf===t).length&&(this.allReleaseGroups.push(e),this.index+=1)}},moveToList(e){for(const t of this.allReleaseGroups){const n=void 0!==this.allReleaseGroups.find(n=>n.memberOf===e&&n.name===t.name);t.toggled&&!n&&(t.toggled=!1,t.memberOf=e)}this.newGroup&&"releasegroups"!==e&&(this.allReleaseGroups.push({id:this.index,name:this.newGroup,toggled:!1,memberOf:e}),this.index+=1,this.newGroup="")},deleteFromList(e){this.allReleaseGroups=this.allReleaseGroups.filter(t=>t.memberOf!==e||!t.toggled)}},computed:{itemsWhitelist(){return this.allReleaseGroups.filter(e=>"whitelist"===e.memberOf)},itemsBlacklist(){return this.allReleaseGroups.filter(e=>"blacklist"===e.memberOf)},itemsReleaseGroups(){return this.allReleaseGroups.filter(e=>"releasegroups"===e.memberOf)},showDeleteFromWhitelist(){return 0!==this.allReleaseGroups.filter(e=>"whitelist"===e.memberOf&&!0===e.toggled).length},showDeleteFromBlacklist(){return 0!==this.allReleaseGroups.filter(e=>"blacklist"===e.memberOf&&!0===e.toggled).length}},watch:{allReleaseGroups:{handler(){this.$emit("change",this.allReleaseGroups)},deep:!0},allGroups:{handler(e){this.createIndexedObjects(e,"releasegroups")}}}},l=(n(158),n(0)),c=Object(l.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"anidb-release-group-ui-wrapper top-10 max-width"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-4 left-whitelist"},[n("span",[e._v("Whitelist")]),e.showDeleteFromWhitelist?n("img",{staticClass:"deleteFromWhitelist",attrs:{src:"images/no16.png"},on:{click:function(t){return e.deleteFromList("whitelist")}}}):e._e(),e._v(" "),n("ul",[e._l(e.itemsWhitelist,function(t){return n("li",{key:t.id,class:{active:t.toggled},on:{click:function(e){t.toggled=!t.toggled}}},[e._v(e._s(t.name))])}),e._v(" "),n("div",{staticClass:"arrow",on:{click:function(t){return e.moveToList("whitelist")}}},[n("img",{attrs:{src:"images/curved-arrow-left.png"}})])],2)]),e._v(" "),n("div",{staticClass:"col-sm-4 center-available"},[n("span",[e._v("Release groups")]),e._v(" "),n("ul",[e._l(e.itemsReleaseGroups,function(t){return n("li",{key:t.id,staticClass:"initial",class:{active:t.toggled},on:{click:function(e){t.toggled=!t.toggled}}},[e._v(e._s(t.name))])}),e._v(" "),n("div",{staticClass:"arrow",on:{click:function(t){return e.moveToList("releasegroups")}}},[n("img",{attrs:{src:"images/curved-arrow-left.png"}})])],2)]),e._v(" "),n("div",{staticClass:"col-sm-4 right-blacklist"},[n("span",[e._v("Blacklist")]),e.showDeleteFromBlacklist?n("img",{staticClass:"deleteFromBlacklist",attrs:{src:"images/no16.png"},on:{click:function(t){return e.deleteFromList("blacklist")}}}):e._e(),e._v(" "),n("ul",[e._l(e.itemsBlacklist,function(t){return n("li",{key:t.id,class:{active:t.toggled},on:{click:function(e){t.toggled=!t.toggled}}},[e._v(e._s(t.name))])}),e._v(" "),n("div",{staticClass:"arrow",on:{click:function(t){return e.moveToList("blacklist")}}},[n("img",{attrs:{src:"images/curved-arrow-left.png"}})])],2)])]),e._v(" "),n("div",{staticClass:"row",attrs:{id:"add-new-release-group"}},[n("div",{staticClass:"col-md-4"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newGroup,expression:"newGroup"}],staticClass:"form-control input-sm",attrs:{type:"text",placeholder:"add custom group"},domProps:{value:e.newGroup},on:{input:function(t){t.target.composing||(e.newGroup=t.target.value)}}})]),e._v(" "),e._m(0)])])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col-md-8"},[t("p",[this._v("Use the input to add custom whitelist / blacklist release groups. Click on the "),t("img",{attrs:{src:"images/curved-arrow-left.png"}}),this._v(" to add it to the correct list.")])])}],!1,null,"10f4092b",null).exports;function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={name:"add-show-options",components:{AnidbReleaseGroupUi:c,ConfigToggleSlider:o.f,QualityChooser:o.k},props:{showName:{type:String,default:"",required:!1},enableAnimeOptions:{type:Boolean,default:!1}},data:()=>({saving:!1,selectedStatus:null,selectedStatusAfter:null,quality:{allowed:[],preferred:[]},selectedSubtitleEnabled:!1,selectedSeasonFoldersEnabled:!1,selectedAnimeEnabled:!1,selectedSceneEnabled:!1,release:{blacklist:[],whitelist:[],allgroups:[]}}),mounted(){const{defaultConfig:e,update:t}=this;this.selectedStatus=e.status,this.selectedStatusAfter=e.statusAfter,this.$nextTick(()=>t()),this.$watch(e=>[e.selectedStatus,e.selectedStatusAfter,e.selectedSubtitleEnabled,e.selectedSeasonFoldersEnabled,e.selectedSceneEnabled,e.selectedAnimeEnabled].join(),()=>{this.update()})},methods:{getReleaseGroups(e){const t={series_name:e};return a.c.get("home/fetch_releasegroups",{params:t,timeout:3e4}).then(e=>e.data).catch(t=>(this.$snotify.warning('Error while trying to fetch release groups for show "'.concat(e,'": ').concat(t||"Unknown"),"Error"),console.warn(t),null))},update(){const{selectedSubtitleEnabled:e,selectedStatus:t,selectedStatusAfter:n,selectedSeasonFoldersEnabled:s,selectedAnimeEnabled:a,selectedSceneEnabled:i,release:o,quality:r}=this;this.$nextTick(()=>{this.$emit("change",{subtitles:e,status:t,statusAfter:n,seasonFolders:s,anime:a,scene:i,release:o,quality:r})})},onChangeReleaseGroupsAnime(e){this.release.whitelist=e.filter(e=>"whitelist"===e.memberOf).map(e=>e.name),this.release.blacklist=e.filter(e=>"blacklist"===e.memberOf).map(e=>e.name),this.update()},saveDefaults(){const{$store:e,selectedStatus:t,selectedStatusAfter:n,combinedQualities:s,selectedSubtitleEnabled:a,selectedSeasonFoldersEnabled:i,selectedAnimeEnabled:o,selectedSceneEnabled:r}=this,l={showDefaults:{status:t,statusAfter:n,quality:s,subtitles:a,seasonFolders:i,anime:o,scene:r}};this.saving=!0,e.dispatch("setConfig",{section:"main",config:l}).then(()=>{this.$snotify.success('Your "add show" defaults have been set to your current selections.',"Saved Defaults")}).catch(e=>{this.$snotify.error('Error while trying to save "add show" defaults: '+(e.message||"Unknown"),"Error")}).finally(()=>{this.saving=!1})}},computed:function(e){for(var t=1;te.config.showDefaults,namingForceFolders:e=>e.config.namingForceFolders,subtitlesEnabled:e=>e.config.subtitles.enabled,episodeStatuses:e=>e.consts.statuses}),Object(s.d)(["getStatus"]),{defaultEpisodeStatusOptions(){return 0===this.episodeStatuses.length?[]:["skipped","wanted","ignored"].map(e=>this.getStatus({key:e}))},combinedQualities(){const{quality:e}=this,{allowed:t,preferred:n}=e;return Object(i.a)(t,n)},saveDefaultsDisabled(){const{enableAnimeOptions:e,defaultConfig:t,namingForceFolders:n,selectedStatus:s,selectedStatusAfter:a,combinedQualities:i,selectedSeasonFoldersEnabled:o,selectedSubtitleEnabled:r,selectedAnimeEnabled:l,selectedSceneEnabled:c}=this;return[s===t.status,a===t.statusAfter,i===t.quality,o===(t.seasonFolders||n),r===t.subtitles,!e||l===t.anime,c===t.scene].every(Boolean)}}),asyncComputed:{releaseGroups(){const{selectedAnimeEnabled:e,showName:t}=this;return e&&t?this.getReleaseGroups(t).then(e=>{if(e.groups)return e.groups}):Promise.resolve([])}},watch:{releaseGroups(e){this.release.allgroups=e},release:{handler(){this.$emit("refresh"),this.update()},deep:!0,immediate:!1},quality:{handler(){this.$emit("refresh"),this.update()},deep:!0,immediate:!1},selectedAnimeEnabled(){this.$emit("refresh"),this.update()},defaultConfig(e){const{namingForceFolders:t}=this;this.selectedStatus=e.status,this.selectedStatusAfter=e.statusAfter,this.selectedSubtitleEnabled=e.subtitles,this.selectedAnimeEnabled=e.anime,this.selectedSeasonFoldersEnabled=e.seasonFolders||t,this.selectedSceneEnabled=e.scene}}},p=Object(l.a)(d,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"add-show-options-content"}},[n("fieldset",{staticClass:"component-group-list"},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[e._m(0),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("quality-chooser",{attrs:{"overall-quality":e.defaultConfig.quality},on:{"update:quality:allowed":function(t){e.quality.allowed=t},"update:quality:preferred":function(t){e.quality.preferred=t}}})],1)])]),e._v(" "),e.subtitlesEnabled?n("div",{attrs:{id:"use-subtitles"}},[n("config-toggle-slider",{attrs:{label:"Subtitles",id:"subtitles",value:e.selectedSubtitleEnabled,explanations:["Download subtitles for this show?"]},on:{input:function(t){e.selectedSubtitleEnabled=t}}})],1):e._e(),e._v(" "),n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[e._m(1),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedStatus,expression:"selectedStatus"}],staticClass:"form-control form-control-inline input-sm",attrs:{id:"defaultStatus"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedStatus=t.target.multiple?n:n[0]}}},e._l(e.defaultEpisodeStatusOptions,function(t){return n("option",{key:t.value,domProps:{value:t.value}},[e._v(e._s(t.name))])}),0)])])]),e._v(" "),n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[e._m(2),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedStatusAfter,expression:"selectedStatusAfter"}],staticClass:"form-control form-control-inline input-sm",attrs:{id:"defaultStatusAfter"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedStatusAfter=t.target.multiple?n:n[0]}}},e._l(e.defaultEpisodeStatusOptions,function(t){return n("option",{key:t.value,domProps:{value:t.value}},[e._v(e._s(t.name))])}),0)])])]),e._v(" "),n("config-toggle-slider",{attrs:{label:"Season Folders",id:"season_folders",value:e.selectedSeasonFoldersEnabled,disabled:e.namingForceFolders,explanations:["Group episodes by season folders?"]},on:{input:function(t){e.selectedSeasonFoldersEnabled=t}}}),e._v(" "),e.enableAnimeOptions?n("config-toggle-slider",{attrs:{label:"Anime",id:"anime",explanations:["Is this show an Anime?"],value:e.selectedAnimeEnabled},on:{input:function(t){e.selectedAnimeEnabled=t}}}):e._e(),e._v(" "),e.enableAnimeOptions&&e.selectedAnimeEnabled?n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[e._m(3),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("anidb-release-group-ui",{staticClass:"max-width",attrs:{blacklist:e.release.blacklist,whitelist:e.release.whitelist,"all-groups":e.release.allgroups},on:{change:e.onChangeReleaseGroupsAnime}})],1)])]):e._e(),e._v(" "),n("config-toggle-slider",{attrs:{label:"Scene Numbering",id:"scene",value:e.selectedSceneEnabled,explanations:["Is this show scene numbered?"]},on:{input:function(t){e.selectedSceneEnabled=t}}}),e._v(" "),n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[e._m(4),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("button",{staticClass:"btn-medusa btn-inline",attrs:{type:"button",disabled:e.saving||e.saveDefaultsDisabled},on:{click:function(t){return t.preventDefault(),e.saveDefaults(t)}}},[e._v("Save Defaults")])])])])],1)])},[function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"customQuality"}},[t("span",[this._v("Quality")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"defaultStatus"}},[t("span",[this._v("Status for previously aired episodes")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"defaultStatusAfter"}},[t("span",[this._v("Status for all future episodes")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"anidbReleaseGroup"}},[t("span",[this._v("Release Groups")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"saveDefaultsButton"}},[t("span",[this._v("Use current values as the defaults")])])}],!1,null,null,null).exports,h=(n(59),n(35).a),m=(n(160),Object(l.a)(h,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"navbar navbar-default navbar-fixed-top hidden-print",attrs:{role:"navigation"}},[n("div",{staticClass:"container-fluid"},[n("div",{staticClass:"navbar-header"},[n("button",{staticClass:"navbar-toggle collapsed",attrs:{type:"button","data-toggle":"collapse","data-target":"#main_nav"}},[e.toolsBadgeCount>0?n("span",{class:"floating-badge"+e.toolsBadgeClass},[e._v(e._s(e.toolsBadgeCount))]):e._e(),e._v(" "),n("span",{staticClass:"sr-only"},[e._v("Toggle navigation")]),e._v(" "),n("span",{staticClass:"icon-bar"}),e._v(" "),n("span",{staticClass:"icon-bar"}),e._v(" "),n("span",{staticClass:"icon-bar"})]),e._v(" "),n("app-link",{staticClass:"navbar-brand",attrs:{href:"home/",title:"Medusa"}},[n("img",{staticClass:"img-responsive pull-left",staticStyle:{height:"50px"},attrs:{alt:"Medusa",src:"images/medusa.png"}})])],1),e._v(" "),e.isAuthenticated?n("div",{staticClass:"collapse navbar-collapse",attrs:{id:"main_nav"}},[n("ul",{staticClass:"nav navbar-nav navbar-right"},[n("li",{staticClass:"navbar-split dropdown",class:{active:"home"===e.topMenu},attrs:{id:"NAVhome"}},[n("app-link",{staticClass:"dropdown-toggle",attrs:{href:"home/","aria-haspopup":"true","data-toggle":"dropdown","data-hover":"dropdown"}},[n("span",[e._v("Shows")]),e._v(" "),n("b",{staticClass:"caret"})]),e._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"home/"}},[n("i",{staticClass:"menu-icon-home"}),e._v(" Show List")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"addShows/"}},[n("i",{staticClass:"menu-icon-addshow"}),e._v(" Add Shows")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"addRecommended/"}},[n("i",{staticClass:"menu-icon-addshow"}),e._v(" Add Recommended Shows")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"home/postprocess/"}},[n("i",{staticClass:"menu-icon-postprocess"}),e._v(" Manual Post-Processing")])],1),e._v(" "),e.recentShows.length>0?[n("li",{staticClass:"divider",attrs:{role:"separator"}}),e._v(" "),e._l(e.recentShows,function(t){return n("li",{key:t.link},[n("app-link",{attrs:{href:t.link}},[n("i",{staticClass:"menu-icon-addshow"}),e._v(" "+e._s(t.name)+"\n ")])],1)})]:e._e()],2),e._v(" "),n("div",{staticStyle:{clear:"both"}})],1),e._v(" "),n("li",{class:{active:"schedule"===e.topMenu},attrs:{id:"NAVschedule"}},[n("app-link",{attrs:{href:"schedule/"}},[e._v("Schedule")])],1),e._v(" "),n("li",{class:{active:"history"===e.topMenu},attrs:{id:"NAVhistory"}},[n("app-link",{attrs:{href:"history/"}},[e._v("History")])],1),e._v(" "),n("li",{staticClass:"navbar-split dropdown",class:{active:"manage"===e.topMenu},attrs:{id:"NAVmanage"}},[n("app-link",{staticClass:"dropdown-toggle",attrs:{href:"manage/episodeStatuses/","aria-haspopup":"true","data-toggle":"dropdown","data-hover":"dropdown"}},[n("span",[e._v("Manage")]),e._v(" "),n("b",{staticClass:"caret"})]),e._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"manage/"}},[n("i",{staticClass:"menu-icon-manage"}),e._v(" Mass Update")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"manage/backlogOverview/"}},[n("i",{staticClass:"menu-icon-backlog-view"}),e._v(" Backlog Overview")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"manage/manageSearches/"}},[n("i",{staticClass:"menu-icon-manage-searches"}),e._v(" Manage Searches")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"manage/episodeStatuses/"}},[n("i",{staticClass:"menu-icon-manage2"}),e._v(" Episode Status Management")])],1),e._v(" "),e.linkVisible.plex?n("li",[n("app-link",{attrs:{href:"home/updatePLEX/"}},[n("i",{staticClass:"menu-icon-plex"}),e._v(" Update PLEX")])],1):e._e(),e._v(" "),e.linkVisible.kodi?n("li",[n("app-link",{attrs:{href:"home/updateKODI/"}},[n("i",{staticClass:"menu-icon-kodi"}),e._v(" Update KODI")])],1):e._e(),e._v(" "),e.linkVisible.emby?n("li",[n("app-link",{attrs:{href:"home/updateEMBY/"}},[n("i",{staticClass:"menu-icon-emby"}),e._v(" Update Emby")])],1):e._e(),e._v(" "),e.linkVisible.manageTorrents?n("li",[n("app-link",{attrs:{href:"manage/manageTorrents/",target:"_blank"}},[n("i",{staticClass:"menu-icon-bittorrent"}),e._v(" Manage Torrents")])],1):e._e(),e._v(" "),e.linkVisible.failedDownloads?n("li",[n("app-link",{attrs:{href:"manage/failedDownloads/"}},[n("i",{staticClass:"menu-icon-failed-download"}),e._v(" Failed Downloads")])],1):e._e(),e._v(" "),e.linkVisible.subtitleMissed?n("li",[n("app-link",{attrs:{href:"manage/subtitleMissed/"}},[n("i",{staticClass:"menu-icon-backlog"}),e._v(" Missed Subtitle Management")])],1):e._e(),e._v(" "),e.linkVisible.subtitleMissedPP?n("li",[n("app-link",{attrs:{href:"manage/subtitleMissedPP/"}},[n("i",{staticClass:"menu-icon-backlog"}),e._v(" Missed Subtitle in Post-Process folder")])],1):e._e()]),e._v(" "),n("div",{staticStyle:{clear:"both"}})],1),e._v(" "),n("li",{staticClass:"navbar-split dropdown",class:{active:"config"===e.topMenu},attrs:{id:"NAVconfig"}},[n("app-link",{staticClass:"dropdown-toggle",attrs:{href:"config/","aria-haspopup":"true","data-toggle":"dropdown","data-hover":"dropdown"}},[n("span",{staticClass:"visible-xs-inline"},[e._v("Config")]),n("img",{staticClass:"navbaricon hidden-xs",attrs:{src:"images/menu/system18.png"}}),e._v(" "),n("b",{staticClass:"caret"})]),e._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"config/"}},[n("i",{staticClass:"menu-icon-help"}),e._v(" Help & Info")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/general/"}},[n("i",{staticClass:"menu-icon-config"}),e._v(" General")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/backuprestore/"}},[n("i",{staticClass:"menu-icon-backup"}),e._v(" Backup & Restore")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/search/"}},[n("i",{staticClass:"menu-icon-manage-searches"}),e._v(" Search Settings")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/providers/"}},[n("i",{staticClass:"menu-icon-provider"}),e._v(" Search Providers")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/subtitles/"}},[n("i",{staticClass:"menu-icon-backlog"}),e._v(" Subtitles Settings")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/postProcessing/"}},[n("i",{staticClass:"menu-icon-postprocess"}),e._v(" Post Processing")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/notifications/"}},[n("i",{staticClass:"menu-icon-notification"}),e._v(" Notifications")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"config/anime/"}},[n("i",{staticClass:"menu-icon-anime"}),e._v(" Anime")])],1)]),e._v(" "),n("div",{staticStyle:{clear:"both"}})],1),e._v(" "),n("li",{staticClass:"navbar-split dropdown",class:{active:"system"===e.topMenu},attrs:{id:"NAVsystem"}},[n("app-link",{staticClass:"padding-right-15 dropdown-toggle",attrs:{href:"home/status/","aria-haspopup":"true","data-toggle":"dropdown","data-hover":"dropdown"}},[n("span",{staticClass:"visible-xs-inline"},[e._v("Tools")]),n("img",{staticClass:"navbaricon hidden-xs",attrs:{src:"images/menu/system18-2.png"}}),e._v(" "),e.toolsBadgeCount>0?n("span",{class:"badge"+e.toolsBadgeClass},[e._v(e._s(e.toolsBadgeCount))]):e._e(),e._v(" "),n("b",{staticClass:"caret"})]),e._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"news/"}},[n("i",{staticClass:"menu-icon-news"}),e._v(" News "),e.config.news.unread>0?n("span",{staticClass:"badge"},[e._v(e._s(e.config.news.unread))]):e._e()])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"IRC/"}},[n("i",{staticClass:"menu-icon-irc"}),e._v(" IRC")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"changes/"}},[n("i",{staticClass:"menu-icon-changelog"}),e._v(" Changelog")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:e.config.donationsUrl}},[n("i",{staticClass:"menu-icon-support"}),e._v(" Support Medusa")])],1),e._v(" "),n("li",{staticClass:"divider",attrs:{role:"separator"}}),e._v(" "),e.config.logs.numErrors>0?n("li",[n("app-link",{attrs:{href:"errorlogs/"}},[n("i",{staticClass:"menu-icon-error"}),e._v(" View Errors "),n("span",{staticClass:"badge btn-danger"},[e._v(e._s(e.config.logs.numErrors))])])],1):e._e(),e._v(" "),e.config.logs.numWarnings>0?n("li",[n("app-link",{attrs:{href:"errorlogs/?level="+e.warningLevel}},[n("i",{staticClass:"menu-icon-viewlog-errors"}),e._v(" View Warnings "),n("span",{staticClass:"badge btn-warning"},[e._v(e._s(e.config.logs.numWarnings))])])],1):e._e(),e._v(" "),n("li",[n("app-link",{attrs:{href:"errorlogs/viewlog/"}},[n("i",{staticClass:"menu-icon-viewlog"}),e._v(" View Log")])],1),e._v(" "),n("li",{staticClass:"divider",attrs:{role:"separator"}}),e._v(" "),n("li",[n("app-link",{attrs:{href:"home/updateCheck?pid="+e.config.pid}},[n("i",{staticClass:"menu-icon-update"}),e._v(" Check For Updates")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"home/restart/?pid="+e.config.pid},nativeOn:{click:function(t){return t.preventDefault(),e.confirmDialog(t,"restart")}}},[n("i",{staticClass:"menu-icon-restart"}),e._v(" Restart")])],1),e._v(" "),n("li",[n("app-link",{attrs:{href:"home/shutdown/?pid="+e.config.pid},nativeOn:{click:function(t){return t.preventDefault(),e.confirmDialog(t,"shutdown")}}},[n("i",{staticClass:"menu-icon-shutdown"}),e._v(" Shutdown")])],1),e._v(" "),e.username?n("li",[n("app-link",{attrs:{href:"logout"},nativeOn:{click:function(t){return t.preventDefault(),e.confirmDialog(t,"logout")}}},[n("i",{staticClass:"menu-icon-shutdown"}),e._v(" Logout")])],1):e._e(),e._v(" "),n("li",{staticClass:"divider",attrs:{role:"separator"}}),e._v(" "),n("li",[n("app-link",{attrs:{href:"home/status/"}},[n("i",{staticClass:"menu-icon-info"}),e._v(" Server Status")])],1)]),e._v(" "),n("div",{staticStyle:{clear:"both"}})],1)])]):e._e()])])},[],!1,null,null,null).exports),v=n(53),f=n(60),g=(n(65),n(40).a),_=Object(l.a)(g,void 0,void 0,!1,null,null,null).exports,b=(n(61),n(62),n(63),n(43).a),w=Object(l.a)(b,void 0,void 0,!1,null,null,null).exports,y=n(44).a,S=(n(168),Object(l.a)(y,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"root-dirs-wrapper"}},[n("div",{staticClass:"root-dirs-selectbox"},[n("select",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.selectedRootDir,expression:"selectedRootDir"}],ref:"rootDirs",attrs:{name:"rootDir",id:"rootDirs",size:"6"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedRootDir=t.target.multiple?n:n[0]}}},"select",e.$attrs,!1),e.$listeners),e._l(e.rootDirs,function(t){return n("option",{key:t.path,domProps:{value:t.path}},[e._v("\n "+e._s(e._f("markDefault")(t))+"\n ")])}),0)]),e._v(" "),n("div",{staticClass:"root-dirs-controls"},[n("button",{staticClass:"btn-medusa",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.add(t)}}},[e._v("New")]),e._v(" "),n("button",{staticClass:"btn-medusa",attrs:{type:"button",disabled:!e.selectedRootDir},on:{click:function(t){return t.preventDefault(),e.edit(t)}}},[e._v("Edit")]),e._v(" "),n("button",{staticClass:"btn-medusa",attrs:{type:"button",disabled:!e.selectedRootDir},on:{click:function(t){return t.preventDefault(),e.remove(t)}}},[e._v("Delete")]),e._v(" "),n("button",{staticClass:"btn-medusa",attrs:{type:"button",disabled:!e.selectedRootDir},on:{click:function(t){return t.preventDefault(),e.setDefault(t)}}},[e._v("Set as Default *")])])])},[],!1,null,null,null).exports),k=n(46).a,C=Object(l.a)(k,void 0,void 0,!1,null,null,null).exports,x=(n(13),n(49).a),E=Object(l.a)(x,void 0,void 0,!1,null,null,null).exports,P=n(50).a,O=Object(l.a)(P,void 0,void 0,!1,null,null,null).exports,A=n(51).a,N=(n(176),Object(l.a)(A,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.subMenu.length>0?n("div",{attrs:{id:"sub-menu-wrapper"}},[n("div",{staticClass:"row shadow",attrs:{id:"sub-menu-container"}},[n("div",{staticClass:"submenu-default hidden-print col-md-12",attrs:{id:"sub-menu"}},[e._l(e.subMenu,function(t){return n("app-link",{key:"sub-menu-"+t.title,staticClass:"btn-medusa top-5 bottom-5",attrs:{href:t.path},nativeOn:e._d({},[e.clickEventCond(t),function(n){return n.preventDefault(),e.confirmDialog(n,t.confirm)}])},[n("span",{class:["pull-left",t.icon]}),e._v(" "+e._s(t.title)+"\n ")])}),e._v(" "),e.showSelectorVisible?n("show-selector",{attrs:{"show-slug":e.curShowSlug,"follow-selection":""}}):e._e()],2)]),e._v(" "),n("div",{staticClass:"btn-group"})]):e._e()},[],!1,null,"9e86e9fe",null).exports);n(64);n.d(t,"a",function(){return p}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return m}),n.d(t,"f",function(){return v.a}),n.d(t,"g",function(){return f.default}),n.d(t,"m",function(){return _}),n.d(t,"o",function(){return w}),n.d(t,"t",function(){return S}),n.d(t,"w",function(){return C}),n.d(t,"y",function(){return E}),n.d(t,"A",function(){return O}),n.d(t,"B",function(){return N}),n.d(t,"d",function(){return o.a}),n.d(t,"e",function(){return o.b}),n.d(t,"h",function(){return o.c}),n.d(t,"j",function(){return o.e}),n.d(t,"i",function(){return o.d}),n.d(t,"k",function(){return o.f}),n.d(t,"l",function(){return o.g}),n.d(t,"n",function(){return o.h}),n.d(t,"p",function(){return o.i}),n.d(t,"q",function(){return o.j}),n.d(t,"r",function(){return o.k}),n.d(t,"s",function(){return o.l}),n.d(t,"u",function(){return o.m}),n.d(t,"v",function(){return o.n}),n.d(t,"x",function(){return o.o}),n.d(t,"z",function(){return o.p})},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return c});var s=n(17),a=n.n(s);const i=document.body.getAttribute("web-root"),o=document.body.getAttribute("api-key"),r=a.a.create({baseURL:i+"/",timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json"}}),l=a.a.create({baseURL:i+"/api/v1/"+o+"/",timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json"}}),c=a.a.create({baseURL:i+"/api/v2/",timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json","X-Api-Key":o}})},,function(e,t,n){"use strict";var s=n(1),a=n(15);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o={name:"app-link",props:{to:[String,Object],href:String,indexerId:{type:String},placeholder:{type:String,default:"indexer-to-name"}},computed:function(e){for(var t=1;tdocument.querySelectorAll("base")[0].getAttribute("href"),computedHref(){const{href:e,indexerId:t,placeholder:n,indexerName:s}=this;return t&&n?e.replace(n,s):e},isIRC(){if(this.computedHref)return this.computedHref.startsWith("irc://")},isAbsolute(){const e=this.computedHref;if(e)return/^[a-z][a-z0-9+.-]*:/.test(e)},isExternal(){const e=this.computedBase,t=this.computedHref;if(t)return!t.startsWith(e)&&!t.startsWith("webcal://")},isHashPath(){if(this.computedHref)return this.computedHref.startsWith("#")},anonymisedHref(){const{anonRedirect:e}=this.config,t=this.computedHref;if(t)return e?e+t:t},matchingVueRoute(){const e=e=>e?e.replace(/^\/+|\/+$/g,""):"";return a.a.options.routes.find(({path:t})=>e(t)===e(this.href))},linkProperties(){const{to:e,isIRC:t,isAbsolute:n,isExternal:s,isHashPath:a,anonymisedHref:i,matchingVueRoute:o}=this,r=this.computedBase,l=this.computedHref;return e?{is:"router-link",to:(()=>"object"==typeof e?e:{name:e})()}:l?o&&this.$route&&o.meta.converted&&this.$route.meta.converted&&window.loadMainApp?{is:"router-link",to:{name:o.name}}:{is:"a",target:n&&s?"_blank":"_self",href:(()=>{if(a){const{location:e}=window;if(0===e.hash.length){const t=e.href.endsWith("#")?l.substr(1):l;return e.href+t}return e.href.replace(e.hash,"")+l}return t?l:n?s?i:l:new URL(l,r).href})(),rel:n&&s?"noreferrer":void 0}:{is:"a",falseLink:Boolean(this.$attrs.name)||void 0}}})},r=(n(136),n(0)),l=Object(r.a)(o,function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.linkProperties.is,{tag:"component",class:{"router-link":"router-link"===e.linkProperties.is},attrs:{to:e.linkProperties.to,href:e.linkProperties.href,target:e.linkProperties.target,rel:e.linkProperties.rel,"false-link":e.linkProperties.falseLink}},[e._t("default")],2)},[],!1,null,null,null).exports,c=n(3),u={name:"asset",components:{AppLink:l},props:{showSlug:{type:String},type:{type:String,required:!0},default:{type:String,required:!0},link:{type:Boolean,default:!1},cls:{type:String}},data:()=>({error:!1}),computed:{src(){const{error:e,showSlug:t,type:n}=this;return!e&&t&&n?c.e+"/api/v2/series/"+t+"/asset/"+n+"?api_key="+c.b:this.default},href(){if(this.link)return this.src.replace("Thumb","")}}},d=Object(r.a)(u,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.link?n("app-link",{attrs:{href:e.href}},[n("img",{class:e.cls,attrs:{src:e.src},on:{error:function(t){e.error=!0}}})]):n("img",{class:e.cls,attrs:{src:e.src},on:{error:function(t){e.error=!0}}})},[],!1,null,null,null).exports,p={name:"config-template",props:{label:{type:String,required:!0},labelFor:{type:String,required:!0}}},h=Object(r.a)(p,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"config-template-content"}},[t("div",{staticClass:"form-group"},[t("div",{staticClass:"row"},[t("label",{staticClass:"col-sm-2 control-label",attrs:{for:this.labelFor}},[t("span",[this._v(this._s(this.label))])]),this._v(" "),t("div",{staticClass:"col-sm-10 content"},[this._t("default")],2)])])])},[],!1,null,null,null).exports,m={name:"config-textbox-number",props:{label:{type:String,required:!0},id:{type:String,required:!0},explanations:{type:Array,default:()=>[]},value:{type:Number,default:10},inputClass:{type:String,default:"form-control input-sm input75"},min:{type:Number,default:10},max:{type:Number,default:null},step:{type:Number,default:1},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1}},data:()=>({localValue:null}),mounted(){const{value:e}=this;this.localValue=e},watch:{value(){const{value:e}=this;this.localValue=e}},methods:{updateValue(){const{localValue:e}=this;this.$emit("input",Number(e))}}},v=(n(138),Object(r.a)(m,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"config-textbox-number-content"}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[n("label",{staticClass:"col-sm-2 control-label",attrs:{for:e.id}},[n("span",[e._v(e._s(e.label))])]),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],attrs:{type:"number"},domProps:{value:e.localValue},on:{input:[function(t){t.target.composing||(e.localValue=t.target.value)},function(t){return e.updateValue()}]}},"input",{min:e.min,max:e.max,step:e.step,id:e.id,name:e.id,class:e.inputClass,placeholder:e.placeholder,disabled:e.disabled},!1)),e._v(" "),e._l(e.explanations,function(t,s){return n("p",{key:s},[e._v(e._s(t))])}),e._v(" "),e._t("default")],2)])])])},[],!1,null,null,null).exports),f={name:"config-textbox",props:{label:{type:String,required:!0},id:{type:String,required:!0},explanations:{type:Array,default:()=>[]},value:{type:String,default:""},type:{type:String,default:"text"},disabled:{type:Boolean,default:!1},inputClass:{type:String,default:"form-control input-sm max-input350"},placeholder:{type:String,default:""}},data:()=>({localValue:null}),mounted(){const{value:e}=this;this.localValue=e},watch:{value(){const{value:e}=this;this.localValue=e}},methods:{updateValue(){const{localValue:e}=this;this.$emit("input",e)}}},g=(n(140),Object(r.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"config-textbox"}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[n("label",{staticClass:"col-sm-2 control-label",attrs:{for:e.id}},[n("span",[e._v(e._s(e.label))])]),e._v(" "),n("div",{staticClass:"col-sm-10 content"},["checkbox"===[e.id,e.type,e.id,e.inputClass,e.placeholder,e.disabled][1]?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.localValue)?e._i(e.localValue,null)>-1:e.localValue},on:{input:function(t){return e.updateValue()},change:function(t){var n=e.localValue,s=t.target,a=!!s.checked;if(Array.isArray(n)){var i=e._i(n,null);s.checked?i<0&&(e.localValue=n.concat([null])):i>-1&&(e.localValue=n.slice(0,i).concat(n.slice(i+1)))}else e.localValue=a}}},"input",{id:e.id,type:e.type,name:e.id,class:e.inputClass,placeholder:e.placeholder,disabled:e.disabled},!1)):"radio"===[e.id,e.type,e.id,e.inputClass,e.placeholder,e.disabled][1]?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],attrs:{type:"radio"},domProps:{checked:e._q(e.localValue,null)},on:{input:function(t){return e.updateValue()},change:function(t){e.localValue=null}}},"input",{id:e.id,type:e.type,name:e.id,class:e.inputClass,placeholder:e.placeholder,disabled:e.disabled},!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],attrs:{type:[e.id,e.type,e.id,e.inputClass,e.placeholder,e.disabled][1]},domProps:{value:e.localValue},on:{input:[function(t){t.target.composing||(e.localValue=t.target.value)},function(t){return e.updateValue()}]}},"input",{id:e.id,type:e.type,name:e.id,class:e.inputClass,placeholder:e.placeholder,disabled:e.disabled},!1)),e._v(" "),e._l(e.explanations,function(t,s){return n("p",{key:s},[e._v(e._s(t))])}),e._v(" "),e._t("default")],2)])])])},[],!1,null,null,null).exports),_={name:"config-toggle-slider",components:{ToggleButton:n(11).ToggleButton},props:{label:{type:String,required:!0},id:{type:String,required:!0},value:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},explanations:{type:Array,default:()=>[]}},data:()=>({localChecked:null}),mounted(){const{value:e}=this;this.localChecked=e},watch:{value(){const{value:e}=this;this.localChecked=e}},methods:{updateValue(){const{localChecked:e}=this;this.$emit("input",e)}}},b=(n(142),Object(r.a)(_,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"config-toggle-slider-content"}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[n("label",{staticClass:"col-sm-2 control-label",attrs:{for:e.id}},[n("span",[e._v(e._s(e.label))])]),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("toggle-button",e._b({attrs:{width:45,height:22,sync:""},on:{input:function(t){return e.updateValue()}},model:{value:e.localChecked,callback:function(t){e.localChecked=t},expression:"localChecked"}},"toggle-button",{id:e.id,name:e.id,disabled:e.disabled},!1)),e._v(" "),e._l(e.explanations,function(t,s){return n("p",{key:s},[e._v(e._s(t))])}),e._v(" "),e._t("default")],2)])])])},[],!1,null,null,null).exports),w=n(22).a,y=(n(144),Object(r.a)(w,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-browser max-width"},[n("div",{class:e.showBrowseButton?"input-group":"input-group-no-btn"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.currentPath,expression:"currentPath"}],ref:"locationInput",staticClass:"form-control input-sm fileBrowserField",attrs:{name:e.name,type:"text"},domProps:{value:e.currentPath},on:{input:function(t){t.target.composing||(e.currentPath=t.target.value)}}}),e._v(" "),e.showBrowseButton?n("div",{staticClass:"input-group-btn",attrs:{title:e.title,alt:e.title},on:{click:function(t){return t.preventDefault(),e.openDialog(t)}}},[e._m(0)]):e._e()]),e._v(" "),n("div",{ref:"fileBrowserDialog",staticClass:"fileBrowserDialog",staticStyle:{display:"none"}}),e._v(" "),n("input",{ref:"fileBrowserSearchBox",staticClass:"form-control",staticStyle:{display:"none"},attrs:{type:"text"},domProps:{value:e.currentPath},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.browse(t.target.value)}}}),e._v(" "),n("ul",{ref:"fileBrowserFileList",staticStyle:{display:"none"}},e._l(e.files,function(t){return n("li",{key:t.name,staticClass:"ui-state-default ui-corner-all"},[n("a",{on:{mouseover:function(n){return e.toggleFolder(t,n)},mouseout:function(n){return e.toggleFolder(t,n)},click:function(n){return e.fileClicked(t)}}},[n("span",{class:"ui-icon "+(t.isFile?"ui-icon-blank":"ui-icon-folder-collapsed")}),e._v(" "+e._s(t.name)+"\n ")])])}),0)])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"btn btn-default input-sm",staticStyle:{"font-size":"14px"}},[t("i",{staticClass:"glyphicon glyphicon-open"})])}],!1,null,"5a327762",null).exports),S=n(24).a,k=Object(r.a)(S,function(){var e=this.$createElement;return(this._self._c||e)("select")},[],!1,null,null,null).exports,C=n(25).a,x=Object(r.a)(C,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"name-pattern-wrapper"}},[e.type?n("div",{staticClass:"form-group"},[n("label",{staticClass:"col-sm-2 control-label",attrs:{for:"enable_naming_custom"}},[n("span",[e._v("Custom "+e._s(e.type))])]),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("toggle-button",{attrs:{width:45,height:22,id:"enable_naming_custom",name:"enable_naming_custom",sync:""},on:{input:function(t){return e.update()}},model:{value:e.isEnabled,callback:function(t){e.isEnabled=t},expression:"isEnabled"}}),e._v(" "),n("span",[e._v("Name "+e._s(e.type)+" shows differently than regular shows?")])],1)]):e._e(),e._v(" "),!e.type||e.isEnabled?n("div",{staticClass:"episode-naming"},[n("div",{staticClass:"form-group"},[e._m(0),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedNamingPattern,expression:"selectedNamingPattern"}],staticClass:"form-control input-sm",attrs:{id:"name_presets"},on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedNamingPattern=t.target.multiple?n:n[0]},e.updatePatternSamples],input:function(t){return e.update()}}},e._l(e.presets,function(t){return n("option",{key:t.pattern,attrs:{id:t.pattern}},[e._v(e._s(t.example))])}),0)])]),e._v(" "),n("div",{attrs:{id:"naming_custom"}},[e.isCustom?n("div",{staticClass:"form-group",staticStyle:{"padding-top":"0"}},[e._m(1),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.customName,expression:"customName"}],staticClass:"form-control-inline-max input-sm max-input350",attrs:{type:"text",name:"naming_pattern",id:"naming_pattern"},domProps:{value:e.customName},on:{change:e.updatePatternSamples,input:[function(t){t.target.composing||(e.customName=t.target.value)},function(t){return e.update()}]}}),e._v(" "),n("img",{staticClass:"legend",attrs:{src:"images/legend16.png",width:"16",height:"16",alt:"[Toggle Key]",id:"show_naming_key",title:"Toggle Naming Legend"},on:{click:function(t){e.showLegend=!e.showLegend}}})])]):e._e(),e._v(" "),e.showLegend&&e.isCustom?n("div",{staticClass:"nocheck",attrs:{id:"naming_key"}},[n("table",{staticClass:"Key"},[e._m(2),e._v(" "),e._m(3),e._v(" "),n("tbody",[e._m(4),e._v(" "),e._m(5),e._v(" "),e._m(6),e._v(" "),e._m(7),e._v(" "),e._m(8),e._v(" "),e._m(9),e._v(" "),e._m(10),e._v(" "),e._m(11),e._v(" "),e._m(12),e._v(" "),e._m(13),e._v(" "),e._m(14),e._v(" "),e._m(15),e._v(" "),e._m(16),e._v(" "),e._m(17),e._v(" "),e._m(18),e._v(" "),e._m(19),e._v(" "),n("tr",[e._m(20),e._v(" "),n("td",[e._v("%M")]),e._v(" "),n("td",[e._v(e._s(e.getDateFormat("M")))])]),e._v(" "),n("tr",{staticClass:"even"},[n("td",[e._v(" ")]),e._v(" "),n("td",[e._v("%D")]),e._v(" "),n("td",[e._v(e._s(e.getDateFormat("d")))])]),e._v(" "),n("tr",[n("td",[e._v(" ")]),e._v(" "),n("td",[e._v("%Y")]),e._v(" "),n("td",[e._v(e._s(e.getDateFormat("yyyy")))])]),e._v(" "),n("tr",[e._m(21),e._v(" "),n("td",[e._v("%CM")]),e._v(" "),n("td",[e._v(e._s(e.getDateFormat("M")))])]),e._v(" "),n("tr",{staticClass:"even"},[n("td",[e._v(" ")]),e._v(" "),n("td",[e._v("%CD")]),e._v(" "),n("td",[e._v(e._s(e.getDateFormat("d")))])]),e._v(" "),n("tr",[n("td",[e._v(" ")]),e._v(" "),n("td",[e._v("%CY")]),e._v(" "),n("td",[e._v(e._s(e.getDateFormat("yyyy")))])]),e._v(" "),e._m(22),e._v(" "),e._m(23),e._v(" "),e._m(24),e._v(" "),e._m(25),e._v(" "),e._m(26),e._v(" "),e._m(27),e._v(" "),e._m(28),e._v(" "),e._m(29),e._v(" "),e._m(30)])])]):e._e()]),e._v(" "),e.selectedMultiEpStyle?n("div",{staticClass:"form-group"},[e._m(31),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedMultiEpStyle,expression:"selectedMultiEpStyle"}],staticClass:"form-control input-sm",attrs:{id:"naming_multi_ep",name:"naming_multi_ep"},on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedMultiEpStyle=t.target.multiple?n:n[0]},e.updatePatternSamples],input:function(t){return e.update(t)}}},e._l(e.availableMultiEpStyles,function(t){return n("option",{key:t.value,attrs:{id:"multiEpStyle"},domProps:{value:t.value}},[e._v(e._s(t.text))])}),0)])]):e._e(),e._v(" "),n("div",{staticClass:"form-group row"},[n("h3",{staticClass:"col-sm-12"},[e._v("Single-EP Sample:")]),e._v(" "),n("div",{staticClass:"example col-sm-12"},[n("span",{staticClass:"jumbo",attrs:{id:"naming_example"}},[e._v(e._s(e.namingExample))])])]),e._v(" "),e.isMulti?n("div",{staticClass:"form-group row"},[n("h3",{staticClass:"col-sm-12"},[e._v("Multi-EP sample:")]),e._v(" "),n("div",{staticClass:"example col-sm-12"},[n("span",{staticClass:"jumbo",attrs:{id:"naming_example_multi"}},[e._v(e._s(e.namingExampleMulti))])])]):e._e(),e._v(" "),e.animeType>0?n("div",{staticClass:"form-group"},[e._m(32),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.animeType,expression:"animeType"}],attrs:{type:"radio",name:"naming_anime",id:"naming_anime",value:"1"},domProps:{checked:e._q(e.animeType,"1")},on:{change:[function(t){e.animeType="1"},e.updatePatternSamples],input:function(t){return e.update()}}}),e._v(" "),n("span",[e._v("Add the absolute number to the season/episode format?")]),e._v(" "),n("p",[e._v("Only applies to animes. (e.g. S15E45 - 310 vs S15E45)")])])]):e._e(),e._v(" "),e.animeType>0?n("div",{staticClass:"form-group"},[e._m(33),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.animeType,expression:"animeType"}],attrs:{type:"radio",name:"naming_anime",id:"naming_anime_only",value:"2"},domProps:{checked:e._q(e.animeType,"2")},on:{change:[function(t){e.animeType="2"},e.updatePatternSamples],input:function(t){return e.update()}}}),e._v(" "),n("span",[e._v("Replace season/episode format with absolute number")]),e._v(" "),n("p",[e._v("Only applies to animes.")])])]):e._e(),e._v(" "),e.animeType>0?n("div",{staticClass:"form-group"},[e._m(34),e._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.animeType,expression:"animeType"}],attrs:{type:"radio",name:"naming_anime",id:"naming_anime_none",value:"3"},domProps:{checked:e._q(e.animeType,"3")},on:{change:[function(t){e.animeType="3"},e.updatePatternSamples],input:function(t){return e.update()}}}),e._v(" "),n("span",[e._v("Don't include the absolute number")]),e._v(" "),n("p",[e._v("Only applies to animes.")])])]):e._e()]):e._e()])},[function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"name_presets"}},[t("span",[this._v("Name Pattern:")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label"},[t("span",[this._v(" ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("thead",[t("tr",[t("th",{staticClass:"align-right"},[this._v("Meaning")]),this._v(" "),t("th",[this._v("Pattern")]),this._v(" "),t("th",{attrs:{width:"60%"}},[this._v("Result")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tfoot",[t("tr",[t("th",{attrs:{colspan:"3"}},[this._v("Use lower case if you want lower case names (eg. %sn, %e.n, %q_n etc)")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",{staticClass:"align-right"},[t("b",[this._v("Show Name:")])]),this._v(" "),t("td",[this._v("%SN")]),this._v(" "),t("td",[this._v("Show Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%S.N")]),this._v(" "),t("td",[this._v("Show.Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%S_N")]),this._v(" "),t("td",[this._v("Show_Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("b",[this._v("Season Number:")])]),this._v(" "),t("td",[this._v("%S")]),this._v(" "),t("td",[this._v("2")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%0S")]),this._v(" "),t("td",[this._v("02")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("b",[this._v("XEM Season Number:")])]),this._v(" "),t("td",[this._v("%XS")]),this._v(" "),t("td",[this._v("2")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%0XS")]),this._v(" "),t("td",[this._v("02")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("b",[this._v("Episode Number:")])]),this._v(" "),t("td",[this._v("%E")]),this._v(" "),t("td",[this._v("3")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%0E")]),this._v(" "),t("td",[this._v("03")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("b",[this._v("XEM Episode Number:")])]),this._v(" "),t("td",[this._v("%XE")]),this._v(" "),t("td",[this._v("3")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%0XE")]),this._v(" "),t("td",[this._v("03")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("b",[this._v("Absolute Episode Number:")])]),this._v(" "),t("td",[this._v("%AB")]),this._v(" "),t("td",[this._v("003")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",{staticClass:"align-right"},[t("b",[this._v("Xem Absolute Episode Number:")])]),this._v(" "),t("td",[this._v("%XAB")]),this._v(" "),t("td",[this._v("003")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("b",[this._v("Episode Name:")])]),this._v(" "),t("td",[this._v("%EN")]),this._v(" "),t("td",[this._v("Episode Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%E.N")]),this._v(" "),t("td",[this._v("Episode.Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%E_N")]),this._v(" "),t("td",[this._v("Episode_Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("td",{staticClass:"align-right"},[t("b",[this._v("Air Date:")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("td",{staticClass:"align-right"},[t("b",[this._v("Post-Processing Date:")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",{staticClass:"align-right"},[t("b",[this._v("Quality:")])]),this._v(" "),t("td",[this._v("%QN")]),this._v(" "),t("td",[this._v("720p BluRay")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%Q.N")]),this._v(" "),t("td",[this._v("720p.BluRay")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%Q_N")]),this._v(" "),t("td",[this._v("720p_BluRay")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",{staticClass:"align-right"},[t("b",[this._v("Scene Quality:")])]),this._v(" "),t("td",[this._v("%SQN")]),this._v(" "),t("td",[this._v("720p HDTV x264")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%SQ.N")]),this._v(" "),t("td",[this._v("720p.HDTV.x264")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v(" ")]),this._v(" "),t("td",[this._v("%SQ_N")]),this._v(" "),t("td",[this._v("720p_HDTV_x264")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("i",{staticClass:"glyphicon glyphicon-info-sign",attrs:{title:"Multi-EP style is ignored"}}),this._v(" "),t("b",[this._v("Release Name:")])]),this._v(" "),t("td",[this._v("%RN")]),this._v(" "),t("td",[this._v("Show.Name.S02E03.HDTV.x264-RLSGROUP")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",{staticClass:"align-right"},[t("i",{staticClass:"glyphicon glyphicon-info-sign",attrs:{title:"UNKNOWN_RELEASE_GROUP is used in place of RLSGROUP if it could not be properly detected"}}),this._v(" "),t("b",[this._v("Release Group:")])]),this._v(" "),t("td",[this._v("%RG")]),this._v(" "),t("td",[this._v("RLSGROUP")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("tr",{staticClass:"even"},[t("td",{staticClass:"align-right"},[t("i",{staticClass:"glyphicon glyphicon-info-sign",attrs:{title:"If episode is proper/repack add 'proper' to name."}}),this._v(" "),t("b",[this._v("Release Type:")])]),this._v(" "),t("td",[this._v("%RT")]),this._v(" "),t("td",[this._v("PROPER")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_multi_ep"}},[t("span",[this._v("Multi-Episode Style:")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_anime"}},[t("span",[this._v("Add Absolute Number")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_anime_only"}},[t("span",[this._v("Only Absolute Number")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_anime_none"}},[t("span",[this._v("No Absolute Number")])])}],!1,null,null,null).exports,E=n(26).a,P=(n(146),Object(r.a)(E,function(){var e=this.$createElement;return(this._self._c||e)("img",{class:this.plotInfoClass,attrs:{src:"images/info32.png",width:"16",height:"16",alt:""}})},[],!1,null,null,null).exports),O=n(9);function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N={name:"quality-chooser",components:{AppLink:l},props:{overallQuality:{type:Number,default:window.qualityChooserInitialQuality},keep:{type:String,default:null,validator:e=>["keep","show"].includes(e)},showSlug:{type:String}},data:()=>({lock:!1,allowedQualities:[],preferredQualities:[],selectedQualityPreset:null,archive:!1,archivedStatus:"",archiveButton:{text:"Archive episodes",disabled:!1}}),computed:function(e){for(var t=1;te.consts.qualities.values,qualityPresets:e=>e.consts.qualities.presets,defaultQuality:e=>e.config.showDefaults.quality}),Object(s.d)(["getQualityPreset","splitQuality"]),{initialQuality(){return void 0===this.overallQuality?this.defaultQuality:this.overallQuality},explanation(){const{allowedQualities:e,preferredQualities:t,qualityValues:n}=this;return n.reduce((n,{value:s,name:a})=>{const i=t.includes(s);return(e.includes(s)||i)&&n.allowed.push(a),i&&n.preferred.push(a),n},{allowed:[],preferred:[]})},validQualities(){return this.qualityValues.filter(({key:e})=>"na"!==e)}}),asyncComputed:{async backloggedEpisodes(){const{showSlug:e,allowedQualities:t,preferredQualities:n}=this;if(!e)return{};if(0===t.length&&0===n.length)return{};const s="series/".concat(e,"/legacy/backlogged"),a={allowed:t.join(","),preferred:n.join(",")};let i,o=!1;try{i=await c.a.get(s,{params:a})}catch(e){return{status:o,html:"Failed to get backlog prediction
"+String(e)}}const r=i.data.new,l=i.data.existing,u=Math.abs(r-l);let d="Current backlog: "+l+" episodes
";if(-1===r||-1===l)d="No qualities selected";else if(r===l)d+="This change won't affect your backlogged episodes",o=!0;else{d+="
New backlog: "+r+" episodes",d+="

";let e="";r>l?(d+="WARNING: ",e="increase",this.archive=!0):e="decrease",d+="Backlog will "+e+" by "+u+" episodes."}return{status:o,html:d}}},async mounted(){await Object(O.d)(()=>this.qualityValues.length>0,100,3e3);const{isQualityPreset:e,keep:t,initialQuality:n}=this;this.selectedQualityPreset="keep"===t?"keep":e(n)?n:0,this.setQualityFromPreset(this.selectedQualityPreset,n)},methods:{isQualityPreset(e){return void 0!==this.getQualityPreset({value:e})},async archiveEpisodes(){this.archivedStatus="Archiving...";const e="series/".concat(this.showSlug,"/operation"),t=await c.a.post(e,{type:"ARCHIVE_EPISODES"});201===t.status?(this.archivedStatus="Successfully archived episodes",this.$asyncComputed.backloggedEpisodes.update()):204===t.status&&(this.archivedStatus="No episodes to be archived"),this.archiveButton.text="Finished",this.archiveButton.disabled=!0},setQualityFromPreset(e,t){if(null==e)return;[e,t].some(e=>"keep"===e)?e=this.initialQuality:0!==e&&this.isQualityPreset(e)||null===t||(e=t);const{allowed:n,preferred:s}=this.splitQuality(e);this.allowedQualities=n,this.preferredQualities=s}},watch:{async overallQuality(e){if(this.lock)return;await Object(O.d)(()=>this.qualityValues.length>0,100,3e3);const{isQualityPreset:t,keep:n,setQualityFromPreset:s}=this;this.selectedQualityPreset="keep"===n?"keep":t(e)?e:0,s(this.selectedQualityPreset,e)},selectedQualityPreset(e,t){this.setQualityFromPreset(e,t)},allowedQualities(e){0===e.length&&this.preferredQualities.length>0&&(this.preferredQualities=[]),this.lock=!0,this.$emit("update:quality:allowed",e),this.$nextTick(()=>{this.lock=!1})},preferredQualities(e){this.lock=!0,this.$emit("update:quality:preferred",e),this.$nextTick(()=>{this.lock=!1})}}},D=(n(148),Object(r.a)(N,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("select",{directives:[{name:"model",rawName:"v-model.number",value:e.selectedQualityPreset,expression:"selectedQualityPreset",modifiers:{number:!0}}],staticClass:"form-control form-control-inline input-sm",attrs:{name:"quality_preset"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(t){var n="_value"in t?t._value:t.value;return e._n(n)});e.selectedQualityPreset=t.target.multiple?n:n[0]}}},[e.keep?n("option",{attrs:{value:"keep"}},[e._v("< Keep >")]):e._e(),e._v(" "),n("option",{domProps:{value:0}},[e._v("Custom")]),e._v(" "),e._l(e.qualityPresets,function(t){return n("option",{key:"quality-preset-"+t.key,domProps:{value:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.selectedQualityPreset,expression:"selectedQualityPreset === 0"}],attrs:{id:"customQualityWrapper"}},[e._m(0),e._v(" "),n("div",[n("h5",[e._v("Allowed")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model.number",value:e.allowedQualities,expression:"allowedQualities",modifiers:{number:!0}}],staticClass:"form-control form-control-inline input-sm",attrs:{name:"allowed_qualities",multiple:"multiple",size:e.validQualities.length},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(t){var n="_value"in t?t._value:t.value;return e._n(n)});e.allowedQualities=t.target.multiple?n:n[0]}}},e._l(e.validQualities,function(t){return n("option",{key:"quality-list-"+t.key,domProps:{value:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])}),0)]),e._v(" "),n("div",[n("h5",[e._v("Preferred")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model.number",value:e.preferredQualities,expression:"preferredQualities",modifiers:{number:!0}}],staticClass:"form-control form-control-inline input-sm",attrs:{name:"preferred_qualities",multiple:"multiple",size:e.validQualities.length,disabled:0===e.allowedQualities.length},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(t){var n="_value"in t?t._value:t.value;return e._n(n)});e.preferredQualities=t.target.multiple?n:n[0]}}},e._l(e.validQualities,function(t){return n("option",{key:"quality-list-"+t.key,domProps:{value:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])}),0)])]),e._v(" "),"keep"!==e.selectedQualityPreset?n("div",[e.allowedQualities.length+e.preferredQualities.length>=1?n("div",{attrs:{id:"qualityExplanation"}},[e._m(1),e._v(" "),0===e.preferredQualities.length?n("h5",[e._v("\n This will download "),n("b",[e._v("any")]),e._v(" of these qualities and then stops searching:\n "),n("label",{attrs:{id:"allowedExplanation"}},[e._v(e._s(e.explanation.allowed.join(", ")))])]):[n("h5",[e._v("\n Downloads "),n("b",[e._v("any")]),e._v(" of these qualities:\n "),n("label",{attrs:{id:"allowedPreferredExplanation"}},[e._v(e._s(e.explanation.allowed.join(", ")))])]),e._v(" "),n("h5",[e._v("\n But it will stop searching when one of these is downloaded:\n "),n("label",{attrs:{id:"preferredExplanation"}},[e._v(e._s(e.explanation.preferred.join(", ")))])])]],2):n("div",[e._v("Please select at least one allowed quality.")])]):e._e(),e._v(" "),e.showSlug&&e.allowedQualities.length+e.preferredQualities.length>=1?n("div",[n("h5",{staticClass:"{ 'red-text': !backloggedEpisodes.status }",domProps:{innerHTML:e._s(e.backloggedEpisodes.html)}})]):e._e(),e._v(" "),e.archive?n("div",{attrs:{id:"archive"}},[n("h5",[n("b",[e._v("Archive downloaded episodes that are not currently in\n "),n("app-link",{staticClass:"backlog-link",attrs:{href:"manage/backlogOverview/",target:"_blank"}},[e._v("backlog")]),e._v(".")],1),e._v(" "),n("br"),e._v("Avoids unnecessarily increasing your backlog\n "),n("br")]),e._v(" "),n("button",{staticClass:"btn-medusa btn-inline",attrs:{disabled:e.archiveButton.disabled},on:{click:function(t){return t.preventDefault(),e.archiveEpisodes(t)}}},[e._v("\n "+e._s(e.archiveButton.text)+"\n ")]),e._v(" "),n("h5",[e._v(e._s(e.archivedStatus))])]):e._e()])},[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[t("b",[t("strong",[this._v("Preferred")])]),this._v(" qualities will replace those in "),t("b",[t("strong",[this._v("allowed")])]),this._v(", even if they are lower.\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("h5",[t("b",[this._v("Quality setting explanation:")])])}],!1,null,"0e16bd5b",null).exports);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $={name:"quality-pill",props:{quality:{type:Number,required:!0,validator:e=>e>>>0>=0},showTitle:{type:Boolean,default:!1},override:{type:Object,default:()=>({}),validator:e=>Object.keys(e).every(e=>["class","title","text"].includes(e))}},computed:function(e){for(var t=1;te.consts.qualities.values}),Object(s.d)(["getQuality","getQualityAnySet","getQualityPreset","splitQuality"]),{qualities(){const{quality:e,splitQuality:t}=this;return t(e)},title(){const{override:e,qualities:t,getQuality:n,showTitle:s}=this;if(e.title)return e.title;if(!s)return;const a=e=>n({value:e}).name;let i="";return i+="Allowed Qualities:\n",0===t.allowed.length?i+=" None":i+=t.allowed.map(e=>" ".concat(a(e))).join("\n"),i+="\n\nPreferred Qualities:\n",0===t.preferred.length?i+=" None":i+=t.preferred.map(e=>" ".concat(a(e))).join("\n"),i},pill(){let{quality:e}=this;const t=(65535&e)>>>0;t===e>>16>>>0&&(e=t);const n=this.getQualityPreset({value:e})||this.getQualityAnySet({value:e})||this.getQuality({value:e});if(void 0!==n)return n;const s=[{name:"HDTV",key:"anyhdtv",elements:["hdtv","rawhdtv","fullhdtv","uhd4ktv","uhd8ktv"]},{name:"WEB-DL",key:"anywebdl",elements:["hdwebdl","fullhdwebdl","uhd4kwebdl","uhd8kwebdl"]},{name:"BluRay",key:"anybluray",elements:["hdbluray","fullhdbluray","uhd4kbluray","uhd8kbluray"]},{name:"720p",key:"hd720p",elements:["hdtv","rawhdtv","hdwebdl","hdbluray"]},{name:"1080p",key:"hd1080p",elements:["fullhdtv","fullhdwebdl","fullhdbluray"]},{name:"UHD-4K",key:"anyuhd4k",elements:["uhd4ktv","uhd4kwebdl","uhd4kbluray"]},{name:"UHD-8K",key:"anyuhd8k",elements:["uhd8ktv","uhd8kwebdl","uhd8kbluray"]}],{isSubsetOf:a,qualities:i,makeQualitySet:o}=this;for(const e of s){const{name:t,key:n,elements:s}=e,r=o(s);if(a(i.allowed,r)&&a(i.preferred,r))return{name:t,key:n}}return{key:"custom",name:"Custom"}}}),methods:{makeQualitySet(e){return this.qualityValues.reduce((t,{key:n,value:s})=>e.includes(n)?t.concat(s):t,[])},isSubsetOf:(e,t)=>e.every(e=>t.includes(e))}},M=(n(150),Object(r.a)($,function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.override.class||["quality",this.pill.key],attrs:{title:this.title}},[this._v(this._s(this.override.text||this.pill.name))])},[],!1,null,"9f56cf6c",null).exports),R=n(30).a,j=(n(152),Object(r.a)(R,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"scroll-buttons-wrapper"}},[n("div",{staticClass:"scroll-wrapper top",class:{show:e.showToTop},on:{click:function(t){return t.preventDefault(),e.scrollTop(t)}}},[e._m(0)]),e._v(" "),n("div",{staticClass:"scroll-wrapper left",class:{show:e.showLeftRight}},[n("span",{staticClass:"scroll-left-inner"},[n("i",{staticClass:"glyphicon glyphicon-circle-arrow-left",on:{click:function(t){return t.preventDefault(),e.scrollLeft(t)}}})])]),e._v(" "),n("div",{staticClass:"scroll-wrapper right",class:{show:e.showLeftRight}},[n("span",{staticClass:"scroll-right-inner"},[n("i",{staticClass:"glyphicon glyphicon-circle-arrow-right",on:{click:function(t){return t.preventDefault(),e.scrollRight(t)}}})])])])},[function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"scroll-top-inner"},[t("i",{staticClass:"glyphicon glyphicon-circle-arrow-up"})])}],!1,null,null,null).exports),L={name:"select-list",props:{listItems:{type:Array,default:()=>[],required:!0},unique:{type:Boolean,default:!0,required:!1},csvEnabled:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1}},data(){return{editItems:[],newItem:"",indexCounter:0,csv:"",csvMode:this.csvEnabled}},created(){const e=this.$watch("listItems",()=>{e(),this.editItems=this.sanitize(this.listItems),this.csv=this.editItems.map(e=>e.value).join(", ")})},methods:{addItem(e){this.unique&&this.editItems.find(t=>t.value===e)||(this.editItems.push({id:this.indexCounter,value:e}),this.indexCounter+=1)},addNewItem(){const{newItem:e,editItems:t}=this;""!==this.newItem&&(this.addItem(e),this.newItem="",this.$emit("change",t))},deleteItem(e){this.editItems=this.editItems.filter(t=>t!==e),this.$refs.newItemInput.focus(),this.$emit("change",this.editItems)},removeEmpty(e){return""===e.value&&this.deleteItem(e)},sanitize(e){return e?e.map(e=>"string"==typeof e?(this.indexCounter+=1,{id:this.indexCounter-1,value:e}):e):[]},syncValues(){this.csvMode?(this.editItems=[],this.csv.split(",").forEach(e=>{e.trim()&&this.addItem(e.trim())}),this.$emit("change",this.editItems)):this.csv=this.editItems.map(e=>e.value).join(", ")},switchFields(){this.syncValues(),this.csvMode=!this.csvMode}},watch:{csv(){this.syncValues()},listItems(){this.editItems=this.sanitize(this.listItems),this.newItem=""}}},B=(n(154),Object(r.a)(L,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._b({staticClass:"select-list max-width"},"div",{disabled:e.disabled},!1),[n("i",{staticClass:"switch-input glyphicon glyphicon-refresh",attrs:{title:"Switch between a list and comma separated values"},on:{click:function(t){return e.switchFields()}}}),e._v(" "),e.csvMode?n("div",{staticClass:"csv"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.csv,expression:"csv"}],staticClass:"form-control input-sm",attrs:{type:"text",placeholder:"add values comma separated"},domProps:{value:e.csv},on:{input:function(t){t.target.composing||(e.csv=t.target.value)}}})]):n("ul",[e._l(e.editItems,function(t){return n("li",{key:t.id},[n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"item.value"}],staticClass:"form-control input-sm",attrs:{type:"text"},domProps:{value:t.value},on:{input:[function(n){n.target.composing||e.$set(t,"value",n.target.value)},function(n){return e.removeEmpty(t)}]}}),e._v(" "),n("div",{staticClass:"input-group-btn",on:{click:function(n){return e.deleteItem(t)}}},[e._m(0,!0)])])])}),e._v(" "),n("div",{staticClass:"new-item"},[n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newItem,expression:"newItem"}],ref:"newItemInput",staticClass:"form-control input-sm",attrs:{type:"text",placeholder:"add new values per line"},domProps:{value:e.newItem},on:{input:function(t){t.target.composing||(e.newItem=t.target.value)}}}),e._v(" "),n("div",{staticClass:"input-group-btn",on:{click:function(t){return e.addNewItem()}}},[e._m(1)])])]),e._v(" "),e.newItem.length>0?n("div",{staticClass:"new-item-help"},[e._v("\n Click "),n("i",{staticClass:"glyphicon glyphicon-plus"}),e._v(" to finish adding the value.\n ")]):e._e()],2)])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"btn btn-default input-sm",staticStyle:{"font-size":"14px"}},[t("i",{staticClass:"glyphicon glyphicon-remove",attrs:{title:"Remove"}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"btn btn-default input-sm",staticStyle:{"font-size":"14px"}},[t("i",{staticClass:"glyphicon glyphicon-plus",attrs:{title:"Add"}})])}],!1,null,"44414aac",null).exports);function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={name:"show-selector",props:{showSlug:String,followSelection:{type:Boolean,default:!1},placeholder:String,selectClass:{type:String,default:"select-show form-control input-sm-custom"}},data(){return{selectedShowSlug:this.showSlug||this.placeholder,lock:!1}},computed:function(e){for(var t=1;te.shows.shows}),{showLists(){const{config:e,shows:t}=this,{animeSplitHome:n,sortArticle:s}=e,a=[{type:"Shows",shows:[]},{type:"Anime",shows:[]}];if(0===t.length)return;t.forEach(e=>{const t=Number(n&&e.config.anime);a[t].shows.push(e)});const i=e=>(s?e:e.replace(/^((?:The|A|An)\s)/i,"")).toLowerCase();return a.forEach(e=>{e.shows.sort((e,t)=>{const n=i(e.title),s=i(t.title);return ns?1:0})}),a},whichList(){const{showLists:e}=this,t=0!==e[0].shows.length,n=0!==e[1].shows.length;return t&&n?-1:n?1:0}}),watch:{showSlug(e){this.lock=!0,this.selectedShowSlug=e},selectedShowSlug(e){if(this.lock)return void(this.lock=!1);if(!this.followSelection)return;const{shows:t}=this,n=t.find(t=>t.id.slug===e);if(!n)return;const s=n.indexer,a=n.id[s],i=document.querySelectorAll("base")[0].getAttribute("href"),o="home/displayShow?indexername="+s+"&seriesid="+a;window.location.href=i+o}}},q=(n(156),Object(r.a)(I,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"show-selector form-inline hidden-print"},[n("div",{staticClass:"select-show-group pull-left top-5 bottom-5"},[0===e.shows.length?n("select",{class:e.selectClass,attrs:{disabled:""}},[n("option",[e._v("Loading...")])]):n("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedShowSlug,expression:"selectedShowSlug"}],class:e.selectClass,on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedShowSlug=t.target.multiple?n:n[0]},function(t){return e.$emit("change",e.selectedShowSlug)}]}},[e.placeholder?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:e.placeholder,selected:!e.selectedShowSlug}},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),-1===e.whichList?e._l(e.showLists,function(t){return n("optgroup",{key:t.type,attrs:{label:t.type}},e._l(t.shows,function(t){return n("option",{key:t.id.slug,domProps:{value:t.id.slug}},[e._v(e._s(t.title))])}),0)}):e._l(e.showLists[e.whichList].shows,function(t){return n("option",{key:t.id.slug,domProps:{value:t.id.slug}},[e._v(e._s(t.title))])})],2)])])},[],!1,null,null,null).exports),U={name:"state-switch",props:{theme:{type:String,default:"dark",validator:e=>["dark","light"].includes(e)},state:{required:!0,validator:e=>["yes","no","loading","true","false","null"].includes(String(e))}},computed:{src(){const{theme:e,realState:t}=this;return"loading"===t?"images/loading16-".concat(e||"dark",".gif"):"images/".concat(t,"16.png")},alt(){const{realState:e}=this;return e.charAt(0).toUpperCase()+e.substr(1)},realState(){const{state:e}=this;return["null","true","false"].includes(String(e))?{null:"loading",true:"yes",false:"no"}[String(e)]:e}}},Q=Object(r.a)(U,function(){var e=this.$createElement;return(this._self._c||e)("img",this._b({attrs:{height:"16",width:"16"}},"img",{src:this.src,alt:this.alt},!1))},[],!1,null,null,null).exports;n.d(t,"a",function(){return l}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"e",function(){return v}),n.d(t,"d",function(){return g}),n.d(t,"f",function(){return b}),n.d(t,"g",function(){return y}),n.d(t,"h",function(){return k}),n.d(t,"i",function(){return x}),n.d(t,"j",function(){return P}),n.d(t,"k",function(){return D}),n.d(t,"l",function(){return M}),n.d(t,"m",function(){return j}),n.d(t,"n",function(){return B}),n.d(t,"o",function(){return q}),n.d(t,"p",function(){return Q})},,,,function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return r});const s=!1,a=(e,t=[])=>{const n=(e,t)=>e|t;return(e.reduce(n,0)|t.reduce(n,0)<<16)>>>0},i=(e,t=!1)=>{if(void 0===e)return;const n=t?1e3:1024;if(Math.abs(e)=n&&anew Promise(t=>setTimeout(t,e)),r=async(e,t=100,n=3e3)=>{let s=0;for(;!e();)if(await o(t),(s+=t)>n)throw new Error("waitFor timed out (".concat(n,"ms)"));return s}},,,,function(e,t,n){"use strict";var s=n(47).a,a=(n(174),n(0)),i=Object(a.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"show-header-container"},[n("div",{staticClass:"row"},[e.show?n("div",{staticClass:"col-lg-12",attrs:{id:"showtitle","data-showname":e.show.title}},[n("div",[n("h1",{staticClass:"title",attrs:{"data-indexer-name":e.show.indexer,"data-series-id":e.show.id[e.show.indexer],id:"scene_exception_"+e.show.id[e.show.indexer]}},[n("app-link",{staticClass:"snatchTitle",attrs:{href:"home/displayShow?indexername="+e.show.indexer+"&seriesid="+e.show.id[e.show.indexer]}},[e._v(e._s(e.show.title))])],1)]),e._v(" "),"snatch-selection"===e.type?n("div",{staticClass:"pull-right",attrs:{id:"show-specials-and-seasons"}},[n("span",{staticClass:"h2footer display-specials"},[e._v("\n Manual search for:"),n("br"),e._v(" "),n("app-link",{staticClass:"snatchTitle",attrs:{href:"home/displayShow?indexername="+e.show.indexer+"&seriesid="+e.show.id[e.show.indexer]}},[e._v(e._s(e.show.title))]),e._v(" / Season "+e._s(e.season)),e.episode&&"season"!==e.manualSearchType?[e._v(" Episode "+e._s(e.episode))]:e._e()],2)]):e._e(),e._v(" "),"snatch-selection"!==e.type&&e.show.seasons&&e.show.seasons.length>=1?n("div",{staticClass:"pull-right",attrs:{id:"show-specials-and-seasons"}},[e.show.seasons.find(function(e){return function(e){return 0===e.season}})?n("span",{staticClass:"h2footer display-specials"},[e._v("\n Display Specials: "),n("a",{staticClass:"inner",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.toggleSpecials()}}},[e._v(e._s(e.displaySpecials?"Hide":"Show"))])]):e._e(),e._v(" "),n("div",{staticClass:"h2footer display-seasons clear"},[n("span",[e.show.seasons.length>=15?n("select",{directives:[{name:"model",rawName:"v-model",value:e.jumpToSeason,expression:"jumpToSeason"}],staticClass:"form-control input-sm",staticStyle:{position:"relative"},attrs:{id:"seasonJump"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.jumpToSeason=t.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"jump"}},[e._v("Jump to Season")]),e._v(" "),e._l(e.show.seasons,function(t){return n("option",{key:"jumpToSeason-"+t[0].season,attrs:{"data-season":t[0].season},domProps:{value:"#season-"+t[0].season}},[e._v("\n "+e._s(0===t[0].season?"Specials":"Season "+t[0].season)+"\n ")])})],2):e.show.seasons.length>=1?[e._v("\n Season:\n "),e._l(e.reverse(e.show.seasons),function(t,s){return[n("app-link",{key:"jumpToSeason-"+t[0].season,attrs:{href:"#season-"+t[0].season}},[e._v(e._s(0===t[0].season?"Specials":t[0].season))]),e._v(" "),e._t("default"),e._v(" "),s!==e.show.seasons.length-1?n("span",{key:"separator-"+s,staticClass:"separator"},[e._v("| ")]):e._e()]})]:e._e()],2)])]):e._e()]):e._e()]),e._v(" "),e._l(e.activeShowQueueStatuses,function(t){return n("div",{key:t.action,staticClass:"row"},[n("div",{staticClass:"alert alert-info"},[e._v("\n "+e._s(t.message)+"\n ")])])}),e._v(" "),n("div",{staticClass:"row",attrs:{id:"row-show-summary"}},[n("div",{staticClass:"col-md-12",attrs:{id:"col-show-summary"}},[n("div",{staticClass:"show-poster-container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"image-flex-container col-md-12"},[n("asset",{attrs:{default:"images/poster.png","show-slug":e.show.id.slug,type:"posterThumb",cls:"show-image shadow",link:!0}})],1)])]),e._v(" "),n("div",{staticClass:"ver-spacer"}),e._v(" "),n("div",{staticClass:"show-info-container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"pull-right col-lg-3 col-md-3 hidden-sm hidden-xs"},[n("asset",{attrs:{default:"images/banner.png","show-slug":e.show.id.slug,type:"banner",cls:"show-banner pull-right shadow",link:!0}})],1),e._v(" "),n("div",{staticClass:"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12",attrs:{id:"show-rating"}},[e.show.rating.imdb&&e.show.rating.imdb.rating?n("span",{staticClass:"imdbstars",attrs:{"qtip-content":e.show.rating.imdb.rating+" / 10 Stars
"+e.show.rating.imdb.votes+" Votes"}},[n("span",{style:{width:12*Number(e.show.rating.imdb.rating)+"%"}})]):e._e(),e._v(" "),e.show.id.imdb?[e._l(e.show.countryCodes,function(e){return n("img",{key:"flag-"+e,class:["country-flag","flag-"+e],staticStyle:{"margin-left":"3px","vertical-align":"middle"},attrs:{src:"images/blank.png",width:"16",height:"11"}})}),e._v(" "),e.show.imdbInfo.year?n("span",[e._v("\n ("+e._s(e.show.imdbInfo.year)+") -\n ")]):e._e(),e._v(" "),n("span",[e._v("\n "+e._s(e.show.imdbInfo.runtimes||e.show.runtime)+" minutes\n ")]),e._v(" "),n("app-link",{attrs:{href:"https://www.imdb.com/title/"+e.show.id.imdb,title:"https://www.imdb.com/title/"+e.show.id.imdb}},[n("img",{staticStyle:{"margin-top":"-1px","vertical-align":"middle"},attrs:{alt:"[imdb]",height:"16",width:"16",src:"images/imdb.png"}})])]:[e.show.year.start?n("span",[e._v("("+e._s(e.show.year.start)+") - "+e._s(e.show.runtime)+" minutes - ")]):e._e()],e._v(" "),e.show.id.trakt?n("app-link",{attrs:{href:"https://trakt.tv/shows/"+e.show.id.trakt,title:"https://trakt.tv/shows/"+e.show.id.trakt}},[n("img",{attrs:{alt:"[trakt]",height:"16",width:"16",src:"images/trakt.png"}})]):e._e(),e._v(" "),e.showIndexerUrl&&e.indexerConfig[e.show.indexer].icon?n("app-link",{attrs:{href:e.showIndexerUrl,title:e.showIndexerUrl}},[n("img",{staticStyle:{"margin-top":"-1px","vertical-align":"middle"},attrs:{alt:e.indexerConfig[e.show.indexer].name,height:"16",width:"16",src:"images/"+e.indexerConfig[e.show.indexer].icon}})]):e._e(),e._v(" "),e.show.xemNumbering?n("app-link",{attrs:{href:"http://thexem.de/search?q="+e.show.title,title:"http://thexem.de/search?q="+e.show.title}},[n("img",{staticStyle:{"margin-top":"-1px","vertical-align":"middle"},attrs:{alt:"[xem]",height:"16",width:"16",src:"images/xem.png"}})]):e._e(),e._v(" "),e.show.id.tvdb?n("app-link",{attrs:{href:"https://fanart.tv/series/"+e.show.id.tvdb,title:"https://fanart.tv/series/"+e.show.id[e.show.indexer]}},[n("img",{staticClass:"fanart",attrs:{alt:"[fanart.tv]",height:"16",width:"16",src:"images/fanart.tv.png"}})]):e._e()],2),e._v(" "),n("div",{staticClass:"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12",attrs:{id:"tags"}},[e.show.genres?n("ul",{staticClass:"tags"},e._l(e.dedupeGenres(e.show.genres),function(t){return n("app-link",{key:t.toString(),attrs:{href:"https://trakt.tv/shows/popular/?genres="+t.toLowerCase().replace(" ","-"),title:"View other popular "+t+" shows on trakt.tv"}},[n("li",[e._v(e._s(t))])])}),1):n("ul",{staticClass:"tags"},e._l(e.showGenres,function(t){return n("app-link",{key:t.toString(),attrs:{href:"https://www.imdb.com/search/title?count=100&title_type=tv_series&genres="+t.toLowerCase().replace(" ","-"),title:"View other popular "+t+" shows on IMDB"}},[n("li",[e._v(e._s(t))])])}),1)])]),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12",attrs:{id:"summary"}},[n("div",{class:[{summaryFanArt:e.config.fanartBackground},"col-lg-9","col-md-8","col-sm-8","col-xs-12"],attrs:{id:"show-summary"}},[n("table",{staticClass:"summaryTable pull-left"},[e.show.plot?n("tr",[n("td",{staticStyle:{"padding-bottom":"15px"},attrs:{colspan:"2"}},[n("truncate",{attrs:{length:250,clamp:"show more...",less:"show less...",text:e.show.plot},on:{toggle:function(t){return e.$emit("reflow")}}})],1)]):e._e(),e._v(" "),void 0!==e.getQualityPreset({value:e.combinedQualities})?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Quality:")]),e._v(" "),n("td",[n("quality-pill",{attrs:{quality:e.combinedQualities}})],1)]):[e.combineQualities(e.show.config.qualities.allowed)>0?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Allowed Qualities:")]),e._v(" "),n("td",[e._l(e.show.config.qualities.allowed,function(t,s){return[e._v(e._s(s>0?", ":"")),n("quality-pill",{key:"allowed-"+t,attrs:{quality:t}})]})],2)]):e._e(),e._v(" "),e.combineQualities(e.show.config.qualities.preferred)>0?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Preferred Qualities:")]),e._v(" "),n("td",[e._l(e.show.config.qualities.preferred,function(t,s){return[e._v(e._s(s>0?", ":"")),n("quality-pill",{key:"preferred-"+t,attrs:{quality:t}})]})],2)]):e._e()],e._v(" "),e.show.network&&e.show.airs?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Originally Airs: ")]),n("td",[e._v(e._s(e.show.airs)+" "),e.show.airsFormatValid?e._e():n("font",{attrs:{color:"#FF0000"}},[n("b",[e._v("(invalid Timeformat)")])]),e._v(" on "+e._s(e.show.network))],1)]):e.show.network?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Originally Airs: ")]),n("td",[e._v(e._s(e.show.network))])]):e.show.airs?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Originally Airs: ")]),n("td",[e._v(e._s(e.show.airs)+" "),e.show.airsFormatValid?e._e():n("font",{attrs:{color:"#FF0000"}},[n("b",[e._v("(invalid Timeformat)")])])],1)]):e._e(),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Show Status: ")]),n("td",[e._v(e._s(e.show.status))])]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Default EP Status: ")]),n("td",[e._v(e._s(e.show.config.defaultEpisodeStatus))])]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[n("span",{class:{"location-invalid":!e.show.config.locationValid}},[e._v("Location: ")])]),n("td",[n("span",{class:{"location-invalid":!e.show.config.locationValid}},[e._v(e._s(e.show.config.location))]),e._v(e._s(e.show.config.locationValid?"":" (Missing)"))])]),e._v(" "),e.show.config.aliases.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[e._v("Scene Name:")]),e._v(" "),n("td",[e._v(e._s(e.show.config.aliases.join(",")))])]):e._e(),e._v(" "),e.show.config.release.requiredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[e._v("Required Words: ")]),e._v(" "),n("td",[n("span",{staticClass:"break-word",class:{required:"snatch-selection"===e.type}},[e._v(e._s(e.show.config.release.requiredWords.join(",")))])])]):e._e(),e._v(" "),e.show.config.release.ignoredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[e._v("Ignored Words: ")]),e._v(" "),n("td",[n("span",{staticClass:"break-word",class:{ignored:"snatch-selection"===e.type}},[e._v(e._s(e.show.config.release.ignoredWords.join(",")))])])]):e._e(),e._v(" "),e.preferredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[e._v("Preferred Words: ")]),e._v(" "),n("td",[n("span",{staticClass:"break-word",class:{preferred:"snatch-selection"===e.type}},[e._v(e._s(e.preferredWords.join(",")))])])]):e._e(),e._v(" "),e.undesiredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[e._v("Undesired Words: ")]),e._v(" "),n("td",[n("span",{staticClass:"break-word",class:{undesired:"snatch-selection"===e.type}},[e._v(e._s(e.undesiredWords.join(",")))])])]):e._e(),e._v(" "),e.show.config.release.whitelist&&e.show.config.release.whitelist.length>0?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Wanted Groups:")]),e._v(" "),n("td",[e._v(e._s(e.show.config.release.whitelist.join(",")))])]):e._e(),e._v(" "),e.show.config.release.blacklist&&e.show.config.release.blacklist.length>0?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Unwanted Groups:")]),e._v(" "),n("td",[e._v(e._s(e.show.config.release.blacklist.join(",")))])]):e._e(),e._v(" "),0!==e.show.config.airdateOffset?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Daily search offset:")]),e._v(" "),n("td",[e._v(e._s(e.show.config.airdateOffset)+" hours")])]):e._e(),e._v(" "),e.show.config.locationValid&&e.show.size>-1?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Size:")]),e._v(" "),n("td",[e._v(e._s(e.humanFileSize(e.show.size)))])]):e._e()],2)]),e._v(" "),n("div",{staticClass:"col-lg-3 col-md-4 col-sm-4 col-xs-12 pull-xs-left",attrs:{id:"show-status"}},[n("table",{staticClass:"pull-xs-left pull-md-right pull-sm-right pull-lg-right"},[e.show.language?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Info Language:")]),n("td",[n("img",{attrs:{src:"images/subtitles/flags/"+e.getCountryISO2ToISO3(e.show.language)+".png",width:"16",height:"11",alt:e.show.language,title:e.show.language,onError:"this.onerror=null;this.src='images/flags/unknown.png';"}})])]):e._e(),e._v(" "),e.config.subtitles.enabled?n("tr",[n("td",{staticClass:"showLegend"},[e._v("Subtitles: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.subtitlesEnabled}})],1)]):e._e(),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Season Folders: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.seasonFolders||e.config.namingForceFolders}})],1)]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Paused: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.paused}})],1)]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Air-by-Date: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.airByDate}})],1)]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Sports: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.sports}})],1)]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Anime: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.anime}})],1)]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("DVD Order: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.dvdOrder}})],1)]),e._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[e._v("Scene Numbering: ")]),n("td",[n("state-switch",{attrs:{theme:e.config.themeName,state:e.show.config.scene}})],1)])])])])])])])]),e._v(" "),e.show?n("div",{staticClass:"row",attrs:{id:"row-show-episodes-controls"}},[n("div",{staticClass:"col-md-12",attrs:{id:"col-show-episodes-controls"}},["show"===e.type?n("div",{staticClass:"row key"},[n("div",{staticClass:"col-lg-12",attrs:{id:"checkboxControls"}},[n("div",{staticClass:"pull-left top-5",attrs:{id:"key-padding"}},[e.show.seasons?n("label",{attrs:{for:"wanted"}},[n("span",{staticClass:"wanted"},[n("input",{attrs:{type:"checkbox",id:"wanted",checked:"checked"},on:{input:function(t){return e.showHideRows("wanted")}}}),e._v(" Wanted: "),n("b",[e._v(e._s(e.episodeSummary.Wanted))])])]):e._e(),e._v(" "),e.show.seasons?n("label",{attrs:{for:"qual"}},[n("span",{staticClass:"qual"},[n("input",{attrs:{type:"checkbox",id:"qual",checked:"checked"},on:{input:function(t){return e.showHideRows("qual")}}}),e._v(" Allowed: "),n("b",[e._v(e._s(e.episodeSummary.Allowed))])])]):e._e(),e._v(" "),e.show.seasons?n("label",{attrs:{for:"good"}},[n("span",{staticClass:"good"},[n("input",{attrs:{type:"checkbox",id:"good",checked:"checked"},on:{input:function(t){return e.showHideRows("good")}}}),e._v(" Preferred: "),n("b",[e._v(e._s(e.episodeSummary.Preferred))])])]):e._e(),e._v(" "),e.show.seasons?n("label",{attrs:{for:"skipped"}},[n("span",{staticClass:"skipped"},[n("input",{attrs:{type:"checkbox",id:"skipped",checked:"checked"},on:{input:function(t){return e.showHideRows("skipped")}}}),e._v(" Skipped: "),n("b",[e._v(e._s(e.episodeSummary.Skipped))])])]):e._e(),e._v(" "),e.show.seasons?n("label",{attrs:{for:"snatched"}},[n("span",{staticClass:"snatched"},[n("input",{attrs:{type:"checkbox",id:"snatched",checked:"checked"},on:{input:function(t){return e.showHideRows("snatched")}}}),e._v(" Snatched: "),n("b",[e._v(e._s(e.episodeSummary.Snatched+e.episodeSummary["Snatched (Proper)"]+e.episodeSummary["Snatched (Best)"]))])])]):e._e(),e._v(" "),n("button",{staticClass:"btn-medusa seriesCheck",on:{click:e.selectEpisodesClicked}},[e._v("Select Episodes")]),e._v(" "),n("button",{staticClass:"btn-medusa clearAll",on:{click:e.clearEpisodeSelectionClicked}},[e._v("Clear")])]),e._v(" "),n("div",{staticClass:"pull-lg-right top-5"},[n("select",{staticClass:"form-control form-control-inline input-sm-custom input-sm-smallfont",attrs:{id:"statusSelect"}},[n("option",[e._v("Change status to:")]),e._v(" "),e._l(e.changeStatusOptions,function(t){return n("option",{key:t.key,domProps:{value:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})],2),e._v(" "),n("select",{staticClass:"form-control form-control-inline input-sm-custom input-sm-smallfont",attrs:{id:"qualitySelect"}},[n("option",[e._v("Change quality to:")]),e._v(" "),e._l(e.qualities,function(t){return n("option",{key:t.key,domProps:{value:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})],2),e._v(" "),n("input",{attrs:{type:"hidden",id:"series-slug"},domProps:{value:e.show.id.slug}}),e._v(" "),n("input",{attrs:{type:"hidden",id:"series-id"},domProps:{value:e.show.id[e.show.indexer]}}),e._v(" "),n("input",{attrs:{type:"hidden",id:"indexer"},domProps:{value:e.show.indexer}}),e._v(" "),n("input",{staticClass:"btn-medusa",attrs:{type:"button",id:"changeStatus",value:"Go"},on:{click:e.changeStatusClicked}})])])]):n("div")])]):e._e()],2)},[],!1,null,"6e3d4106",null);t.a=i.exports},,function(e,t,n){"use strict";const s=function(){const{$route:e,$store:t}=this,{config:n,notifiers:s}=t.state,a=e.params.indexer||e.query.indexername,i=e.params.id||e.query.seriesid,o=t.getters.getCurrentShow,{showQueueStatus:r}=o,l=e=>!!r&&Boolean(r.find(t=>t.action===e&&!0===t.active)),c=l("isBeingAdded"),u=l("isBeingUpdated"),d=l("isBeingSubtitled");let p=[{title:"Edit",path:"home/editShow?indexername=".concat(a,"&seriesid=").concat(i),icon:"ui-icon ui-icon-pencil"}];return c||u||(p=p.concat([{title:o.config.paused?"Resume":"Pause",path:"home/togglePause?indexername=".concat(a,"&seriesid=").concat(i),icon:"ui-icon ui-icon-".concat(o.config.paused?"play":"pause")},{title:"Remove",path:"home/deleteShow?indexername=".concat(a,"&seriesid=").concat(i),confirm:"removeshow",icon:"ui-icon ui-icon-trash"},{title:"Re-scan files",path:"home/refreshShow?indexername=".concat(a,"&seriesid=").concat(i),icon:"ui-icon ui-icon-refresh"},{title:"Force Full Update",path:"home/updateShow?indexername=".concat(a,"&seriesid=").concat(i),icon:"ui-icon ui-icon-transfer-e-w"},{title:"Update show in KODI",path:"home/updateKODI?indexername=".concat(a,"&seriesid=").concat(i),requires:s.kodi.enabled&&s.kodi.update.library,icon:"menu-icon-kodi"},{title:"Update show in Emby",path:"home/updateEMBY?indexername=".concat(a,"&seriesid=").concat(i),requires:s.emby.enabled,icon:"menu-icon-emby"},{title:"Preview Rename",path:"home/testRename?indexername=".concat(a,"&seriesid=").concat(i),icon:"ui-icon ui-icon-tag"},{title:"Download Subtitles",path:"home/subtitleShow?indexername=".concat(a,"&seriesid=").concat(i),requires:n.subtitles.enabled&&!d&&o.config.subtitlesEnabled,icon:"menu-icon-backlog"}])),p},a=[{title:"General",path:"config/general/",icon:"menu-icon-config"},{title:"Backup/Restore",path:"config/backuprestore/",icon:"menu-icon-backup"},{title:"Search Settings",path:"config/search/",icon:"menu-icon-manage-searches"},{title:"Search Providers",path:"config/providers/",icon:"menu-icon-provider"},{title:"Subtitles Settings",path:"config/subtitles/",icon:"menu-icon-backlog"},{title:"Post Processing",path:"config/postProcessing/",icon:"menu-icon-postprocess"},{title:"Notifications",path:"config/notifications/",icon:"menu-icon-notification"},{title:"Anime",path:"config/anime/",icon:"menu-icon-anime"}],i=[...[{path:"/home",name:"home",meta:{title:"Home",header:"Show List",topMenu:"home"}},{path:"/home/editShow",name:"editShow",meta:{topMenu:"home"}},{path:"/home/displayShow",name:"show",meta:{topMenu:"home",subMenu:s}},{path:"/home/snatchSelection",name:"snatchSelection",meta:{topMenu:"home",subMenu:s}},{path:"/home/testRename",name:"testRename",meta:{title:"Preview Rename",header:"Preview Rename",topMenu:"home"}},{path:"/home/postprocess",name:"postprocess",meta:{title:"Manual Post-Processing",header:"Manual Post-Processing",topMenu:"home"}},{path:"/home/status",name:"status",meta:{title:"Status",topMenu:"system"}},{path:"/home/restart",name:"restart",meta:{title:"Restarting...",header:"Performing Restart",topMenu:"system"}},{path:"/home/shutdown",name:"shutdown",meta:{header:"Shutting down",topMenu:"system"}},{path:"/home/update",name:"update",meta:{topMenu:"system"}}],...[{path:"/config",name:"config",meta:{title:"Help & Info",header:"Medusa Configuration",topMenu:"config",subMenu:a,converted:!0},component:()=>Promise.resolve().then(n.bind(null,60))},{path:"/config/anime",name:"configAnime",meta:{title:"Config - Anime",header:"Anime",topMenu:"config",subMenu:a}},{path:"/config/backuprestore",name:"configBackupRestore",meta:{title:"Config - Backup/Restore",header:"Backup/Restore",topMenu:"config",subMenu:a}},{path:"/config/general",name:"configGeneral",meta:{title:"Config - General",header:"General Configuration",topMenu:"config",subMenu:a}},{path:"/config/notifications",name:"configNotifications",meta:{title:"Config - Notifications",header:"Notifications",topMenu:"config",subMenu:a}},{path:"/config/postProcessing",name:"configPostProcessing",meta:{title:"Config - Post Processing",header:"Post Processing",topMenu:"config",subMenu:a,converted:!0},component:()=>Promise.resolve().then(n.bind(null,65))},{path:"/config/providers",name:"configSearchProviders",meta:{title:"Config - Providers",header:"Search Providers",topMenu:"config",subMenu:a}},{path:"/config/search",name:"configSearchSettings",meta:{title:"Config - Episode Search",header:"Search Settings",topMenu:"config",subMenu:a}},{path:"/config/subtitles",name:"configSubtitles",meta:{title:"Config - Subtitles",header:"Subtitles",topMenu:"config",subMenu:a}}],...[{path:"/addShows",name:"addShows",meta:{title:"Add Shows",header:"Add Shows",topMenu:"home",converted:!0},component:()=>Promise.resolve().then(n.bind(null,59))},{path:"/addShows/addExistingShows",name:"addExistingShows",meta:{title:"Add Existing Shows",header:"Add Existing Shows",topMenu:"home"}},{path:"/addShows/newShow",name:"addNewShow",meta:{title:"Add New Show",header:"Add New Show",topMenu:"home"}},{path:"/addShows/trendingShows",name:"addTrendingShows",meta:{topMenu:"home"}},{path:"/addShows/popularShows",name:"addPopularShows",meta:{title:"Popular Shows",header:"Popular Shows",topMenu:"home"}},{path:"/addShows/popularAnime",name:"addPopularAnime",meta:{title:"Popular Anime Shows",header:"Popular Anime Shows",topMenu:"home"}}],{path:"/login",name:"login",meta:{title:"Login"},component:()=>Promise.resolve().then(n.bind(null,62))},{path:"/addRecommended",name:"addRecommended",meta:{title:"Add Recommended Shows",header:"Add Recommended Shows",topMenu:"home",converted:!0},component:()=>Promise.resolve().then(n.bind(null,58))},{path:"/schedule",name:"schedule",meta:{title:"Schedule",header:"Schedule",topMenu:"schedule"}},{path:"/history",name:"history",meta:{title:"History",header:"History",topMenu:"history",subMenu:[{title:"Clear History",path:"history/clearHistory",icon:"ui-icon ui-icon-trash",confirm:"clearhistory"},{title:"Trim History",path:"history/trimHistory",icon:"menu-icon-cut",confirm:"trimhistory"}]}},...[{path:"/manage",name:"manage",meta:{title:"Mass Update",header:"Mass Update",topMenu:"manage"}},{path:"/manage/backlogOverview",name:"manageBacklogOverview",meta:{title:"Backlog Overview",header:"Backlog Overview",topMenu:"manage"}},{path:"/manage/episodeStatuses",name:"manageEpisodeOverview",meta:{title:"Episode Overview",header:"Episode Overview",topMenu:"manage"}},{path:"/manage/failedDownloads",name:"manageFailedDownloads",meta:{title:"Failed Downloads",header:"Failed Downloads",topMenu:"manage"}},{path:"/manage/manageSearches",name:"manageManageSearches",meta:{title:"Manage Searches",header:"Manage Searches",topMenu:"manage"}},{path:"/manage/massEdit",name:"manageMassEdit",meta:{title:"Mass Edit",topMenu:"manage"}},{path:"/manage/subtitleMissed",name:"manageSubtitleMissed",meta:{title:"Missing Subtitles",header:"Missing Subtitles",topMenu:"manage"}},{path:"/manage/subtitleMissedPP",name:"manageSubtitleMissedPP",meta:{title:"Missing Subtitles in Post-Process folder",header:"Missing Subtitles in Post-Process folder",topMenu:"manage"}}],...[{path:"/errorlogs",name:"errorlogs",meta:{title:"Logs & Errors",topMenu:"system",subMenu:function(){const{$route:e,$store:t}=this,n=e.params.level||e.query.level,{config:s}=t.state,{loggingLevels:a,numErrors:i,numWarnings:o}=s.logs;if(0===Object.keys(a).length)return[];const r=void 0===n||Number(n)===a.error;return[{title:"Clear Errors",path:"errorlogs/clearerrors/",requires:i>=1&&r,icon:"ui-icon ui-icon-trash"},{title:"Clear Warnings",path:"errorlogs/clearerrors/?level=".concat(a.warning),requires:o>=1&&Number(n)===a.warning,icon:"ui-icon ui-icon-trash"},{title:"Submit Errors",path:"errorlogs/submit_errors/",requires:i>=1&&r,confirm:"submiterrors",icon:"ui-icon ui-icon-arrowreturnthick-1-n"}]}}},{path:"/errorlogs/viewlog",name:"viewlog",meta:{title:"Logs",header:"Log File",topMenu:"system",converted:!0},component:()=>Promise.resolve().then(n.bind(null,63))}],{path:"/news",name:"news",meta:{title:"News",header:"News",topMenu:"system"}},{path:"/changes",name:"changes",meta:{title:"Changelog",header:"Changelog",topMenu:"system"}},{path:"/IRC",name:"IRC",meta:{title:"IRC",topMenu:"system",converted:!0},component:()=>Promise.resolve().then(n.bind(null,61))},{path:"/not-found",name:"not-found",meta:{title:"404",header:"404 - page not found"},component:()=>Promise.resolve().then(n.bind(null,64))}],o=new(n(16).a)({base:document.body.getAttribute("web-root")+"/",mode:"history",routes:i});o.beforeEach((e,t,n)=>{const{meta:s}=e,{title:a}=s;a&&(document.title="".concat(a," | Medusa")),n()}),t.a=o},,,function(e,t,n){var s=n(137);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("53f5e432",s,!1,{})},function(e,t,n){var s=n(139);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("8d1653e8",s,!1,{})},function(e,t,n){var s=n(141);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("3ca8845c",s,!1,{})},function(e,t,n){var s=n(143);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("1bcb1e12",s,!1,{})},function(e,t,n){"use strict";(function(e){var s=n(3);t.a={name:"file-browser",props:{name:{type:String,default:"proc_dir"},title:{type:String,default:"Choose Directory"},includeFiles:{type:Boolean,default:!1},showBrowseButton:{type:Boolean,default:!0},autocomplete:{type:Boolean,default:!1},localStorageKey:{type:String,default:""},initialDir:{type:String,default:""}},data(){return{lock:!1,unwatchProp:null,files:[],currentPath:this.initialDir,lastPath:"",url:"browser/",autocompleteUrl:"browser/complete",fileBrowserDialog:null,localStorageSupport:(()=>{try{return Boolean(localStorage.getItem),!0}catch(e){return console.log(e),!1}})()}},created(){this.unwatchProp=this.$watch("initialDir",e=>{this.unwatchProp(),this.lock=!0,this.currentPath=e,this.$nextTick(()=>{this.lock=!1})})},mounted(){const{autocomplete:e,fileBrowser:t,storedPath:n,$refs:s}=this;t(s.locationInput,e).on("autocompleteselect",(e,t)=>{this.currentPath=t.item.value}),!this.currentPath&&n&&(this.currentPath=n)},computed:{storedPath:{get(){const{localStorageSupport:e,localStorageKey:t}=this;return e&&t?localStorage["fileBrowser-"+t]:null},set(e){const{localStorageSupport:t,localStorageKey:n}=this;t&&n&&(localStorage["fileBrowser-"+n]=e)}}},methods:{toggleFolder(e,t){if(e.isFile)return;const n=t.target.children[0]||t.target;n.classList.toggle("ui-icon-folder-open"),n.classList.toggle("ui-icon-folder-collapsed")},fileClicked(t){t.isFile?(this.currentPath=t.path,e(this.$el).find('.browserDialog .ui-button:contains("Ok")').click()):this.browse(t.path)},browse(t){const{url:n,includeFiles:a,fileBrowserDialog:i}=this;e(this.$refs.fileBrowserSearchBox).autocomplete("close"),console.debug("Browsing to "+t),i.dialog("option","dialogClass","browserDialog busy"),i.dialog("option","closeText","");const o={path:t,includeFiles:Number(a)};s.c.get(n,{params:o}).then(e=>{const{data:t}=e;this.currentPath=t.shift().currentPath,this.files=t,i.dialog("option","dialogClass","browserDialog")}).catch(e=>{console.warning("Unable to browse to: ".concat(t,"\nError: ").concat(e.message),e)})},openFileBrowser(t){const n=this,{browse:s,title:a,fileBrowser:i,$refs:o}=n,{fileBrowserSearchBox:r,fileBrowserFileList:l}=o;n.fileBrowserDialog||(n.fileBrowserDialog=e(o.fileBrowserDialog).dialog({dialogClass:"browserDialog",title:a,position:{my:"center top",at:"center top+100",of:window},minWidth:Math.min(e(document).width()-80,650),height:Math.min(e(document).height()-120,e(window).height()-120),maxHeight:Math.min(e(document).height()-120,e(window).height()-120),maxWidth:e(document).width()-80,modal:!0,autoOpen:!1}),r.removeAttribute("style"),n.fileBrowserDialog.append(r),i(r,!0).on("autocompleteselect",(e,t)=>{s(t.item.value)})),n.fileBrowserDialog.dialog("option","buttons",[{text:"Ok",class:"medusa-btn",click(){t(n.currentPath),e(this).dialog("close")}},{text:"Cancel",class:"medusa-btn",click(){n.currentPath=n.lastPath,e(this).dialog("close")}}]),n.fileBrowserDialog.dialog("open"),s(n.currentPath),n.lastPath=n.currentPath,l.removeAttribute("style"),n.fileBrowserDialog.append(l)},fileBrowser(t,n){const s=this,{autocompleteUrl:a,includeFiles:i}=s,o=e(t);if(n&&o.autocomplete&&a){let t="";o.autocomplete({position:{my:"top",at:"bottom",collision:"flipfit"},source(n,s){t=e.ui.autocomplete.escapeRegex(n.term),n.includeFiles=Number(i),e.ajax({url:a,data:n,dataType:"json"}).done(n=>{const a=new RegExp("^"+t,"i"),i=e.grep(n,e=>a.test(e));s(i)})},open(){e(s.$el).find(".ui-autocomplete li.ui-menu-item a").removeClass("ui-corner-all")}}).data("ui-autocomplete")._renderItem=((n,s)=>{let a=s.label;const i=new RegExp("(?![^&;]+;)(?!<[^<>]*)("+t+")(?![^<>]*>)(?![^&;]+;)","gi");return a=a.replace(i,e=>""+e+""),e("
  • ").data("ui-autocomplete-item",s).append(''+a+"").appendTo(n)})}return o},openDialog(){const{openFileBrowser:e,currentPath:t}=this;e(e=>{this.storedPath=e||t})}},watch:{currentPath(){this.lock||this.$emit("update",this.currentPath)}}}}).call(this,n(4))},function(e,t,n){var s=n(145);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("6ca3076c",s,!1,{})},function(e,t,n){"use strict";(function(e){t.a={name:"language-select",props:{language:{type:String,default:"en"},available:{type:String,default:"en"},blank:{type:Boolean,default:!1},flags:{type:Boolean,default:!1}},mounted(){const t=this;e(this.$el).bfhlanguages({flags:this.flags,language:this.language,available:this.available,blank:this.blank}),e(this.$el).on("change",e=>{t.$emit("update-language",e.currentTarget.value)})},watch:{language(){e(this.$el).val(this.language)}}}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var s=n(84),a=n(11),i=n(3);t.a={name:"name-pattern",components:{ToggleButton:a.ToggleButton},props:{namingPattern:{type:String,default:""},namingPresets:{type:Array,default:()=>[]},multiEpStyle:{type:Number},multiEpStyles:{type:Array,default:()=>[]},animeNamingType:{type:Number,default:0},type:{type:String,default:""},enabled:{type:Boolean,default:!0},flagLoaded:{type:Boolean,default:!1}},data:()=>({presets:[],availableMultiEpStyles:[],pattern:"",customName:"",showLegend:!1,namingExample:"",namingExampleMulti:"",isEnabled:!1,selectedMultiEpStyle:1,animeType:0,lastSelectedPattern:""}),methods:{getDateFormat:e=>Object(s.a)(new Date,e),testNaming(e,t,n){console.debug("Test pattern ".concat(e," for ").concat(t?"multi":"single ep"));const s={pattern:e,anime_type:n};t&&(s.multi=t);try{return i.c.get("config/postProcessing/testNaming",{params:s,timeout:2e4}).then(e=>e.data)}catch(e){return console.warn(e),""}},updatePatternSamples(){this.customName||(this.customName=this.lastSelectedPattern);const e=this.isCustom?this.customName:this.pattern;e&&null!==this.animeType&&null!==this.selectedMultiEpStyle&&(this.testNaming(e,!1,this.animeType).then(e=>{this.namingExample=e+".ext"}),this.checkNaming(e,!1,this.animeType),this.isMulti&&(this.testNaming(e,this.selectedMultiEpStyle,this.animeType).then(e=>{this.namingExampleMulti=e+".ext"}),this.checkNaming(e,this.selectedMultiEpStyle,this.animeType)))},update(){this.flagLoaded&&this.$nextTick(()=>{this.$emit("change",{pattern:this.isCustom?this.customName:this.pattern,type:this.type,multiEpStyle:this.selectedMultiEpStyle,custom:this.isCustom,enabled:this.isEnabled,animeNamingType:Number(this.animeType)})})},checkNaming(t,n,s){if(!t)return;const a={pattern:t,anime_type:s};n&&(a.multi=n);const{$el:o}=this,r=e(o);i.c.get("config/postProcessing/isNamingValid",{params:a,timeout:2e4}).then(e=>{"invalid"===e.data?(r.find("#naming_pattern").qtip("option",{"content.text":"This pattern is invalid.","style.classes":"qtip-rounded qtip-shadow qtip-red"}),r.find("#naming_pattern").qtip("toggle",!0),r.find("#naming_pattern").css("background-color","#FFDDDD")):"seasonfolders"===e.data?(r.find("#naming_pattern").qtip("option",{"content.text":'This pattern would be invalid without the folders, using it will force "Flatten" off for all shows.',"style.classes":"qtip-rounded qtip-shadow qtip-red"}),r.find("#naming_pattern").qtip("toggle",!0),r.find("#naming_pattern").css("background-color","#FFFFDD")):(r.find("#naming_pattern").qtip("option",{"content.text":"This pattern is valid.","style.classes":"qtip-rounded qtip-shadow qtip-green"}),r.find("#naming_pattern").qtip("toggle",!1),r.find("#naming_pattern").css("background-color","#FFFFFF"))}).catch(e=>{console.warn(e)})},updateCustomName(){this.presetsPatterns.includes(this.pattern)||(this.customName=this.pattern),this.customName||(this.customName=this.lastSelectedPattern)}},computed:{isCustom(){return!!this.pattern&&(!this.presetsPatterns.includes(this.pattern)||"Custom..."===this.pattern)},selectedNamingPattern:{get(){return this.isCustom?"Custom...":(()=>{const e=this.presets.filter(e=>e.pattern===this.pattern);return e.length>0&&e[0].example})()},set(e){this.pattern=this.presets.filter(t=>t.example===e)[0].pattern}},presetsPatterns(){return this.presets.map(e=>e.pattern)},isMulti(){return Boolean(this.multiEpStyle)}},mounted(){this.pattern=this.namingPattern,this.presets=this.namingPresets.concat({pattern:"Custom...",example:"Custom..."}),this.updateCustomName(),this.availableMultiEpStyles=this.multiEpStyles,this.selectedMultiEpStyle=this.multiEpStyle,this.animeType=this.animeNamingType,this.isEnabled=!this.type&&this.enabled,this.updatePatternSamples()},watch:{enabled(){this.isEnabled=this.enabled},namingPattern(e,t){this.lastSelectedPattern=e||t,this.pattern=this.namingPattern,this.updateCustomName(),this.updatePatternSamples()},namingPresets(){this.presets=this.namingPresets},multiEpStyle(){this.selectedMultiEpStyle=this.multiEpStyle,this.updatePatternSamples()},multiEpStyles(){this.availableMultiEpStyles=this.multiEpStyles},animeNamingType(){this.animeType=this.animeNamingType,this.updatePatternSamples()},type(){this.isEnabled=!this.type&&this.enabled}}}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var s=n(3);t.a={name:"plot-info",props:{hasPlot:Boolean,showSlug:{type:String,required:!0},season:{type:String,required:!0},episode:{type:String,required:!0}},computed:{plotInfoClass(){return this.hasPlot?"plotInfo":"plotInfoNone"}},mounted(){const{$el:t,hasPlot:n,showSlug:a,season:i,episode:o}=this;if(!n)return!1;e(t).qtip({content:{text:(e,t)=>(s.a.get("series/"+a+"/episodes/s"+i+"e"+o+"/description").then(e=>{t.set("content.text",e.data)}).catch(e=>{const{response:n}=e,{status:s,statusText:a}=n;t.set("content.text","Error while loading plot: "+s+": "+a)}),"Loading...")},show:{solo:!0},position:{my:"left center",adjust:{y:-10,x:2}},style:{tip:{corner:!0,method:"polygon"},classes:"qtip-rounded qtip-shadow ui-tooltip-sb"}})}}}).call(this,n(4))},function(e,t,n){var s=n(147);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("2286310c",s,!1,{})},function(e,t,n){var s=n(149);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("a8c428f4",s,!1,{})},function(e,t,n){var s=n(151);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("0d4dcec1",s,!1,{})},function(e,t,n){"use strict";(function(e){t.a={name:"scroll-buttons",data:()=>({showToTop:!1,showLeftRight:!1}),methods:{scrollTop(){const{scrollTo:t}=this;t(e("body"))},scrollLeft(){e("div.horizontal-scroll").animate({scrollLeft:"-=153"},1e3,"easeOutQuad")},scrollRight(){e("div.horizontal-scroll").animate({scrollLeft:"+=153"},1e3,"easeOutQuad")},scrollTo(t){e("html, body").animate({scrollTop:e(t).offset().top},500,"linear")},initHorizontalScroll(){const t=e("div.horizontal-scroll").get();if(0===t.length)return;const n=t.map(e=>e.scrollWidth>e.clientWidth).indexOf(!0);this.showLeftRight=n>=0}},mounted(){const{initHorizontalScroll:t}=this;t(),e(window).on("resize",()=>{t()}),e(document).on("scroll",()=>{e(window).scrollTop()>100?this.showToTop=!0:this.showToTop=!1})}}}).call(this,n(4))},function(e,t,n){var s=n(153);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("0faefb92",s,!1,{})},function(e,t,n){var s=n(155);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("64d4f9f2",s,!1,{})},function(e,t,n){var s=n(157);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("ea8d60b8",s,!1,{})},function(e,t,n){var s=n(159);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("f314dbbc",s,!1,{})},function(e,t,n){"use strict";(function(e){var s=n(1),a=n(5);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a={name:"app-header",components:{AppLink:a.a},computed:function(e){for(var t=1;te.auth.isAuthenticated,username:e=>e.auth.user.username,warningLevel:e=>e.config.logs.loggingLevels.warning}),{recentShows(){const{config:e}=this,{recentShows:t}=e;return t.map(e=>{const{name:t,indexerName:n,showId:s}=e;return{name:t,link:"home/displayShow?indexername=".concat(n,"&seriesid=").concat(s)}})},topMenu(){return this.$route.meta.topMenu},toolsBadgeCount(){const{config:e}=this,{news:t,logs:n}=e;return n.numErrors+n.numWarnings+t.unread},toolsBadgeClass(){const{config:e}=this,{logs:t}=e;return t.numErrors>0?" btn-danger":t.numWarnings>0?" btn-warning":""},linkVisible(){const{config:e,notifiers:t}=this,{torrents:n,failedDownloads:s,subtitles:a,postProcessing:i}=e,{kodi:o,plex:r,emby:l}=t;return{plex:r.server.enabled&&0!==r.server.host.length,kodi:o.enabled&&0!==o.host.length,emby:l.enabled&&l.host,manageTorrents:n.enabled&&"blackhole"!==n.method,failedDownloads:s.enabled,subtitleMissed:a.enabled,subtitleMissedPP:i.postponeIfNoSubs}}}),mounted(){const{$el:t}=this;t.clickCloseMenus=(t=>{const{target:n}=t;if(n.matches("#main_nav a.router-link, #main_nav a.router-link *")){const t=n.closest(".dropdown");t.querySelector(".dropdown-toggle").setAttribute("aria-expanded",!1),t.querySelector(".dropdown-menu").style.display="none",e("#main_nav").collapse("hide")}}),t.addEventListener("click",t.clickCloseMenus,{passive:!0}),e(t).on({mouseenter(t){const n=e(t.currentTarget);n.find(".dropdown-menu").stop(!0,!0).delay(200).fadeIn(500,()=>{n.find(".dropdown-toggle").attr("aria-expanded","true")})},mouseleave(t){const n=e(t.currentTarget);n.find(".dropdown-toggle").attr("aria-expanded","false"),n.find(".dropdown-menu").stop(!0,!0).delay(200).fadeOut(500)}},"ul.nav li.dropdown"),(navigator.maxTouchPoints||0)<2&&e(t).on("click",".dropdown-toggle",t=>{const n=e(t.currentTarget);"true"===n.attr("aria-expanded")&&(window.location.href=n.attr("href"))})},destroyed(){const{$el:t}=this;t.removeEventListener("click",t.clickCloseMenus),e(t).off("mouseenter mouseleave","ul.nav li.dropdown"),(navigator.maxTouchPoints||0)<2&&e(t).off("click",".dropdown-toggle")},methods:{confirmDialog(t,n){const s={confirmButton:"Yes",cancelButton:"Cancel",dialogClass:"modal-dialog",post:!1,button:e(t.currentTarget),confirm(e){window.location.href=e[0].href}};if("restart"===n)s.title="Restart",s.text="Are you sure you want to restart Medusa?";else if("shutdown"===n)s.title="Shutdown",s.text="Are you sure you want to shutdown Medusa?";else{if("logout"!==n)return;s.title="Logout",s.text="Are you sure you want to logout from Medusa?"}e.confirm(s,t)}}}}).call(this,n(4))},function(e,t,n){var s=n(161);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("ef1315ea",s,!1,{})},function(e,t,n){"use strict";(function(e){var s=n(1),a=n(3),i=n(9);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a={name:"backstretch",render:e=>e(),props:{slug:String},data:()=>({created:!1}),computed:function(e){for(var t=1;te.config.fanartBackground,opacity:e=>e.config.fanartBackgroundOpacity}),{offset(){let t="90px";return 0===e("#sub-menu-container").length&&(t="50px"),e(window).width()<1280&&(t="50px"),t}}),async mounted(){try{await Object(i.d)(()=>null!==this.enabled)}catch(e){}if(!this.enabled)return;const{opacity:t,slug:n,offset:s}=this;if(n){const i="".concat(a.e,"/api/v2/series/").concat(n,"/asset/fanart?api_key=").concat(a.b),{$wrap:o}=e.backstretch(i);o.css("top",s),o.css("opacity",t).fadeIn(500),this.created=!0}},destroyed(){this.created&&e.backstretch("destroy")},watch:{opacity(t){if(this.created){const{$wrap:n}=e("body").data("backstretch");n.css("opacity",t).fadeIn(500)}}}}}).call(this,n(4))},function(e,t,n){var s=n(163);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);(0,n(8).default)("68bc6464",s,!1,{})},function(e,t,n){"use strict";(function(e){var s=n(1),a=n(11),i=n(5);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(null==e)return{};var n,s,a=function(e,t){if(null==e)return{};var n,s,a={},i=Object.keys(e);for(s=0;s=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}t.a={name:"config-post-processing",components:{AppLink:i.a,FileBrowser:i.g,NamePattern:i.i,SelectList:i.n,ToggleButton:a.ToggleButton},data:()=>({presets:[{pattern:"%SN - %Sx%0E - %EN",example:"Show Name - 2x03 - Ep Name"},{pattern:"%S.N.S%0SE%0E.%E.N",example:"Show.Name.S02E03.Ep.Name"},{pattern:"%Sx%0E - %EN",example:"2x03 - Ep Name"},{pattern:"S%0SE%0E - %EN",example:"S02E03 - Ep Name"},{pattern:"Season %0S/%S.N.S%0SE%0E.%Q.N-%RG",example:"Season 02/Show.Name.S02E03.720p.HDTV-RLSGROUP"}],processMethods:[{value:"copy",text:"Copy"},{value:"move",text:"Move"},{value:"hardlink",text:"Hard Link"},{value:"symlink",text:"Symbolic Link"}],timezoneOptions:[{value:"local",text:"Local"},{value:"network",text:"Network"}],postProcessing:{naming:{pattern:null,multiEp:null,enableCustomNamingSports:null,enableCustomNamingAirByDate:null,patternSports:null,patternAirByDate:null,enableCustomNamingAnime:null,patternAnime:null,animeMultiEp:null,animeNamingType:null,stripYear:null},showDownloadDir:null,processAutomatically:null,processMethod:null,deleteRarContent:null,unpack:null,noDelete:null,reflinkAvailable:null,postponeIfSyncFiles:null,autoPostprocessorFrequency:10,airdateEpisodes:null,moveAssociatedFiles:null,allowedExtensions:[],addShowsWithoutDir:null,createMissingShowDirs:null,renameEpisodes:null,postponeIfNoSubs:null,nfoRename:null,syncFiles:[],fileTimestampTimezone:"local",extraScripts:[],extraScriptsUrl:null,multiEpStrings:{}},metadataProviders:{},metadataProviderSelected:null}),methods:{onChangeSyncFiles(e){this.postProcessing.syncFiles=e.map(e=>e.value)},onChangeAllowedExtensions(e){this.postProcessing.allowedExtensions=e.map(e=>e.value)},onChangeExtraScripts(e){this.postProcessing.extraScripts=e.map(e=>e.value)},saveNaming(e){this.configLoaded&&(this.postProcessing.naming.pattern=e.pattern,this.postProcessing.naming.multiEp=e.multiEpStyle)},saveNamingSports(e){this.configLoaded&&(this.postProcessing.naming.patternSports=e.pattern,this.postProcessing.naming.enableCustomNamingSports=e.enabled)},saveNamingAbd(e){this.configLoaded&&(this.postProcessing.naming.patternAirByDate=e.pattern,this.postProcessing.naming.enableCustomNamingAirByDate=e.enabled)},saveNamingAnime(e){this.configLoaded&&(this.postProcessing.naming.patternAnime=e.pattern,this.postProcessing.naming.animeMultiEp=e.multiEpStyle,this.postProcessing.naming.animeNamingType=e.animeNamingType,this.postProcessing.naming.enableCustomNamingAnime=e.enabled)},save(){const{$store:e,postProcessing:t,metadataProviders:n}=this;if(!this.configLoaded)return;this.saving=!0;const s=Object.assign({},{postProcessing:t,metadata:{metadataProviders:n}}),a=s.postProcessing,{multiEpStrings:i,reflinkAvailable:o}=a,l=r(a,["multiEpStrings","reflinkAvailable"]);s.postProcessing=l;e.dispatch("setConfig",{section:"main",config:s}).then(()=>{this.$snotify.success("Saved Post-Processing config","Saved",{timeout:5e3})}).catch(()=>{this.$snotify.error("Error while trying to save Post-Processing config","Error")})},getFirstEnabledMetadataProvider(){const{metadataProviders:e}=this,t=Object.values(e).find(e=>e.showMetadata||e.episodeMetadata);return void 0===t?"kodi":t.id}},computed:function(e){for(var t=1;t({value:Number(e),text:this.postProcessing.multiEpStrings[e]})):[]}}),created(){const{config:e,metadata:t,getFirstEnabledMetadataProvider:n}=this;this.postProcessing=Object.assign({},this.postProcessing,e.postProcessing),this.metadataProviders=Object.assign({},this.metadataProviders,t.metadataProviders),this.metadataProviderSelected=n()},beforeMount(){this.$nextTick(()=>{e("#config-components").tabs()})},watch:{"config.postProcessing":{handler(e){this.postProcessing=Object.assign({},this.postProcessing,e)},deep:!0,immediate:!1},"metadata.metadataProviders":{handler(e){this.metadataProviders=Object.assign({},this.metadataProviders,e)},deep:!0,immediate:!1}}}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var s=n(1),a=n(14),i=n.n(a),o=n(3),r=n(5);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a={name:"home",template:"#home-template",components:{AppLink:r.a},computed:function(e){for(var t=1;t{let n,s,a,i;t<125?(a=3,i=4):t<175?(n=9,s=40,a=4,i=5):(n=11,s=50,a=6,i=6),e("#posterPopup").remove(),void 0===n?e(".show-details").hide():(e(".show-details").show(),e(".show-dlstats, .show-quality").css("fontSize",n),e(".show-network-image").css("width",s)),e(".show-container").css({width:t,borderWidth:i,borderRadius:a})};let n;"undefined"!=typeof Storage&&(n=parseInt(localStorage.getItem("posterSize"),10)),("number"!=typeof n||isNaN(n))&&(n=188),t(n),e("#posterSizeSlider").slider({min:75,max:250,value:n,change(n,s){"undefined"!=typeof Storage&&localStorage.setItem("posterSize",s.value),t(s.value),e(".show-grid").isotope("layout")}})}},mounted(){e(document.body).on("click",".resetsorting",()=>{e("table").trigger("filterReset")}),e(document.body).on("input","#filterShowName",i()(()=>{e(".show-grid").isotope({filter(){return e(this).attr("data-name").toLowerCase().includes(e("#filterShowName").val().toLowerCase())}})},500)),e(document.body).on("change","#postersort",function(){e(".show-grid").isotope({sortBy:e(this).val()}),e.get(e(this).find("option[value="+e(this).val()+"]").attr("data-sort"))}),e(document.body).on("change","#postersortdirection",function(){e(".show-grid").isotope({sortAscending:"1"===e(this).val()}),e.get(e(this).find("option[value="+e(this).val()+"]").attr("data-sort"))}),e(document.body).on("change","#showRootDir",function(){o.a.patch("config/main",{selectedRootIndex:parseInt(e(this).val(),10)}).then(e=>{console.info(e),window.location.reload()}).catch(e=>{console.info(e)})});const t=new LazyLoad({threshold:500});window.addEventListener("load",()=>{e("#showTabs").tabs({activate(){e(".show-grid").isotope("layout")}}),e(".progressbar").each(function(){const t=e(this).data("progress-percentage"),n=100===t?100:t>80?80:t>60?60:t>40?40:20;e(this).progressbar({value:t}),e(this).data("progress-text")&&e(this).append('
    '+e(this).data("progress-text")+"
    "),e(this).find(".ui-progressbar-value").addClass("progress-"+n)}),e("img#network").on("error",function(){e(this).parent().text(e(this).attr("alt")),e(this).remove()}),e("#showListTableSeries:has(tbody tr), #showListTableAnime:has(tbody tr)").tablesorter({debug:!1,sortList:[[7,1],[2,0]],textExtraction:{0:t=>e(t).find("time").attr("datetime"),1:t=>e(t).find("time").attr("datetime"),3:t=>e(t).find("span").prop("title").toLowerCase(),4:t=>e(t).find("a[data-indexer-name]").attr("data-indexer-name"),5:t=>e(t).find("span").text().toLowerCase(),6:t=>e(t).find("span:first").text(),7:t=>e(t).data("show-size"),8:t=>e(t).find("img").attr("alt"),10:t=>e(t).find("img").attr("alt")},widgets:["saveSort","zebra","stickyHeaders","filter","columnSelector"],headers:{0:{sorter:"realISODate"},1:{sorter:"realISODate"},2:{sorter:"showNames"},4:{sorter:"text"},5:{sorter:"quality"},6:{sorter:"eps"},7:{sorter:"digit"},8:{filter:"parsed"},10:{filter:"parsed"}},widgetOptions:{filter_columnFilters:!0,filter_hideFilters:!0,filter_saveFilters:!0,filter_functions:{5(e,t,n){let s=!1;const a=Math.floor(t%1*1e3);if(""===n)s=!0;else{let e=n.match(/(<|<=|>=|>)\s+(\d+)/i);e&&("<"===e[1]?a="===e[1]?a>=parseInt(e[2],10)&&(s=!0):">"===e[1]&&a>parseInt(e[2],10)&&(s=!0)),(e=n.match(/(\d+)\s(-|to)\s+(\d+)/i))&&("-"!==e[2]&&"to"!==e[2]||a>=parseInt(e[1],10)&&a<=parseInt(e[3],10)&&(s=!0)),(e=n.match(/(=)?\s?(\d+)\s?(=)?/i))&&("="!==e[1]&&"="!==e[3]||parseInt(e[2],10)===a&&(s=!0)),!isNaN(parseFloat(n))&&isFinite(n)&&parseInt(n,10)===a&&(s=!0)}return s}},columnSelector_mediaquery:!1},sortStable:!0,sortAppend:[[2,0]]}).bind("sortEnd",()=>{t.handleScroll()}).bind("filterEnd",()=>{t.handleScroll()}),e(".show-grid").imagesLoaded(()=>{this.initializePosterSizeSlider(),e(".loading-spinner").hide(),e(".show-grid").show().isotope({itemSelector:".show-container",sortBy:MEDUSA.config.posterSortby,sortAscending:MEDUSA.config.posterSortdir,layoutMode:"masonry",masonry:{isFitWidth:!0},getSortData:{name(t){const n=e(t).attr("data-name")||"";return(MEDUSA.config.sortArticle?n:n.replace(/^((?:The|A|An)\s)/i,"")).toLowerCase()},network:"[data-network]",date(t){const n=e(t).attr("data-date");return n.length&&parseInt(n,10)||Number.POSITIVE_INFINITY},progress(t){const n=e(t).attr("data-progress");return n.length&&parseInt(n,10)||Number.NEGATIVE_INFINITY},indexer(t){const n=e(t).attr("data-indexer");return void 0===n?Number.NEGATIVE_INFINITY:n.length&&parseInt(n,10)||Number.NEGATIVE_INFINITY}}}).on("layoutComplete arrangeComplete removeComplete",()=>{t.update(),t.handleScroll()});let n=null;e(".show-container").on("mouseenter",function(){const t=e(this);"none"===t.find(".show-details").css("display")&&(n=setTimeout(()=>{n=null,e("#posterPopup").remove();const s=t.clone().attr({id:"posterPopup"}),a=t.offset().left,i=t.offset().top;s.css({position:"absolute",margin:0,top:i,left:a}),s.find(".show-details").show(),s.on("mouseleave",function(){e(this).remove()}),s.css({zIndex:"9999"}),s.appendTo("body");let o=i+t.height()/2-219,r=a+t.width()/2-125;const l=e(window).scrollTop(),c=e(window).scrollLeft(),u=l+e(window).innerHeight(),d=c+e(window).innerWidth();ou&&(o=u-438-5),r+250+5>d&&(r=d-250-5),s.animate({top:o,left:r,width:250,height:438})},300))}).on("mouseleave",()=>{null!==n&&clearTimeout(n)}),t.update(),t.handleScroll()}),e("#popover").popover({placement:"bottom",html:!0,content:'
    '}).on("shown.bs.popover",()=>{e.tablesorter.columnSelector.attachTo(e("#showListTableSeries"),"#popover-target"),MEDUSA.config.animeSplitHome&&e.tablesorter.columnSelector.attachTo(e("#showListTableAnime"),"#popover-target")});const n=MEDUSA.config.rootDirs,s=MEDUSA.config.selectedRootIndex;if(n){const t=n.slice(1);if(t.length>=2){e("#showRoot").show();const n=["All Folders"].concat(t);e.each(n,(t,n)=>{e("#showRootDir").append(e(""))return c;if(e.isArray(c))s=c;else if("object"===e.type(l)&&c&&null===(s=c(n,r,a)))return null}return!1===s&&(s=t.getOptions(n,r,a)),t.processOptions(n,r,s)},processOptions:function(t,n,r){if(!e.isArray(r))return!1;var a,o,s,l,u,c,d=(t=e(t)[0]).config,f=null!=n&&0<=n&&n'+(y.data("placeholder")||y.attr("data-placeholder")||v.filter_placeholder.select||"")+"",b=g.$table.find("thead").find("select."+r.filter+'[data-column="'+a+'"]').val();if(void 0!==o&&""!==o||null!==(o=t.getOptionSource(i,a,l))){if(e.isArray(o)){for(u=0;u"}else""+h!="[object Object]"&&(0<=(c=d=h=(""+h).replace(n.quote,""")).indexOf(v.filter_selectSourceSeparator)&&(c=(f=d.split(v.filter_selectSourceSeparator))[0],d=f[1]),_+=""!==h?"":"");o=[]}p=(g.$filters?g.$filters:g.$table.children("thead")).find("."+r.filter),v.filter_$externalFilters&&(p=p&&p.length?p.add(v.filter_$externalFilters):v.filter_$externalFilters),(m=p.filter('select[data-column="'+a+'"]')).length&&(m[s?"html":"append"](_),e.isArray(o)||m.append(o).val(b),m.val(b))}}},buildDefault:function(e,n){var r,a,o,s=e.config,l=s.widgetOptions,u=s.columns;for(r=0;r=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(111),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(12))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,r,a,o,s,l=1,u={},c=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){m(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){m(e.data)},i=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&m(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(o+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n - * @license MIT - */ -e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var i=n(10),r=n(69),a=n(115),o=n(116),s=n(74);function l(e){this.defaults=e,this.interceptors={request:new a,response:new a}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=l},function(e,t,n){"use strict";var i=n(10);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";var i=n(10),r=n(117),a=n(70),o=n(71),s=n(124),l=n(125);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return u(e),t.data=r(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(u(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var i=n(10);e.exports=function(e,t,n){return i.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var i=n(10);e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},function(e,t,n){"use strict";var i=n(73);e.exports=function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(i("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var i=n(10),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(i.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}},function(e,t,n){"use strict";var i=n(10);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var i=n(10);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var i=n(75);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new i(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){var i=n(77);e.exports=function(){return i.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(12))},function(e,t,n){var i=n(76),r=n(131),a=NaN,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){var i=n(132),r=n(135),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||r(e)&&i(e)==a}},function(e,t,n){var i=n(78),r=n(133),a=n(134),o="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:o:l&&l in Object(e)?r(e):a(e)}},function(e,t,n){var i=n(78),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var r=o.call(e);return i&&(t?e[s]=n:delete e[s]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e,t,n){var i,r,a,o,s,l=10>t?t:10,u=["img","br"],c=[],d=0,f="",p='([\\w|-]+\\s*(=\\s*"[^"]*")?\\s*)*',m=new RegExp("<\\/?\\w+\\s*"+p+"\\s*\\/\\s*>"),h=new RegExp("<\\/?\\w+\\s*"+p+"\\s*\\/?\\s*>"),g=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w\-]+@([\w][\w\-]+\.)+[a-zA-Z]{2,3})/g,v=new RegExp(""),y=new RegExp("\\W+","g"),_=!0;function b(e){var t=e.indexOf(" ");if(-1===t&&-1===(t=e.indexOf(">")))throw new Error("HTML tag is not well-formed : "+e);return e.substring(1,t)}function C(e,i){var r,a,o=t-d,s=o,l=o=t)break;if(!(_=g.exec(e))||_.index>=t){f+=e.substring(0,C(e));break}for(;_;)i=_[0],r=_.index,f+=e.substring(0,r+i.length-d),e=e.substring(r+i.length),_=g.exec(e);break}if(i=_[0],r=_.index,d+r>t){f+=e.substring(0,C(e,r));break}d+=r,f+=e.substring(0,r),"/"===i[1]?(c.pop(),o=null):(o=m.exec(i))||(a=b(i),c.push(a)),f+=o?o[0]:i,e=e.substring(r+i.length)}return e.length>t-d&&n.ellipsis&&(f+=n.ellipsis),f+=(s="",c.reverse().forEach(function(e,t){-1===u.indexOf(e)&&(s+="")}),s),n.keepImageTag||(f=function(e){var t,n,i=v.exec(e);return i?(t=i.index,n=i[0].length,e.substring(0,t)+e.substring(t+n)):e}(f)),f}},function(e,t,n){var i,r,a,o,s,l,u,c,d,f;d=n(79),e.exports={deepKeys:s=function(e){if(!u(e))throw new Error("deepKeys must be called on an object, not '"+e+"'");return d.flatten(d.map(e,function(e,t){return u(e)&&!d.isEmpty(e)?d.map(s(e),function(e){return t+"."+e}):[t]}))},deepClone:i=function(e){var t,n,r,a;if(null==e)return e;for(n=0,r=(a=[Date,Number,String,Boolean]).length;n