diff --git a/themes/dark/assets/js/medusa-runtime.js b/themes/dark/assets/js/medusa-runtime.js index d8af8a74f0..8785317c53 100644 --- a/themes/dark/assets/js/medusa-runtime.js +++ b/themes/dark/assets/js/medusa-runtime.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,function(t,e,n){"use strict";n(56);var s=n(2),a=n(4),i=n(10),o=n(5),r={name:"anidb-release-group-ui",props:{blacklist:{type:Array,default:function(){return[]}},whitelist:{type:Array,default:function(){return[]}},allGroups:{type:Array,default:function(){return[]}}},data:function(){return{index:0,allReleaseGroups:[],newGroup:""}},mounted:function(){this.createIndexedObjects(this.blacklist,"blacklist"),this.createIndexedObjects(this.whitelist,"whitelist"),this.createIndexedObjects(this.allGroups,"releasegroups")},methods:{toggleItem:function(t){this.allReleaseGroups=this.allReleaseGroups.map(function(e){return e.id===t.id&&(e.toggled=!e.toggled),e})},createIndexedObjects:function(t,e){var n=this,s=!0,a=!1,i=void 0;try{for(var o,r=function(){var t=o.value;"string"==typeof t&&(t={name:t});var s=Object.assign({id:n.index,toggled:!1,memberOf:e},t);0===n.allReleaseGroups.filter(function(t){return t.name===s.name&&t.memberOf===e}).length&&(n.allReleaseGroups.push(s),n.index+=1)},l=t[Symbol.iterator]();!(s=(o=l.next()).done);s=!0)r()}catch(t){a=!0,i=t}finally{try{s||null==l.return||l.return()}finally{if(a)throw i}}},moveToList:function(t){var e=this,n=!0,s=!1,a=void 0;try{for(var i,o=function(){var n=i.value,s=void 0!==e.allReleaseGroups.find(function(e){return e.memberOf===t&&e.name===n.name});n.toggled&&!s&&(n.toggled=!1,n.memberOf=t)},r=this.allReleaseGroups[Symbol.iterator]();!(n=(i=r.next()).done);n=!0)o()}catch(t){s=!0,a=t}finally{try{n||null==r.return||r.return()}finally{if(s)throw a}}this.newGroup&&"releasegroups"!==t&&(this.allReleaseGroups.push({id:this.index,name:this.newGroup,toggled:!1,memberOf:t}),this.index+=1,this.newGroup="")},deleteFromList:function(t){this.allReleaseGroups=this.allReleaseGroups.filter(function(e){return e.memberOf!==t||!e.toggled})}},computed:{itemsWhitelist:function(){return this.allReleaseGroups.filter(function(t){return"whitelist"===t.memberOf})},itemsBlacklist:function(){return this.allReleaseGroups.filter(function(t){return"blacklist"===t.memberOf})},itemsReleaseGroups:function(){return this.allReleaseGroups.filter(function(t){return"releasegroups"===t.memberOf})},showDeleteFromWhitelist:function(){return 0!==this.allReleaseGroups.filter(function(t){return"whitelist"===t.memberOf&&!0===t.toggled}).length},showDeleteFromBlacklist:function(){return 0!==this.allReleaseGroups.filter(function(t){return"blacklist"===t.memberOf&&!0===t.toggled}).length}},watch:{allReleaseGroups:{handler:function(){this.$emit("change",this.allReleaseGroups)},deep:!0},allGroups:{handler:function(t){this.createIndexedObjects(t,"releasegroups")}}}},l=(n(167),n(0)),c=Object(l.a)(r,function(){var t=this,e=t.$createElement,n=t._self._c||e;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",[t._v("Whitelist")]),t.showDeleteFromWhitelist?n("img",{staticClass:"deleteFromWhitelist",attrs:{src:"images/no16.png"},on:{click:function(e){return t.deleteFromList("whitelist")}}}):t._e(),t._v(" "),n("ul",[t._l(t.itemsWhitelist,function(e){return n("li",{key:e.id,class:{active:e.toggled},on:{click:function(t){e.toggled=!e.toggled}}},[t._v(t._s(e.name))])}),t._v(" "),n("div",{staticClass:"arrow",on:{click:function(e){return t.moveToList("whitelist")}}},[n("img",{attrs:{src:"images/curved-arrow-left.png"}})])],2)]),t._v(" "),n("div",{staticClass:"col-sm-4 center-available"},[n("span",[t._v("Release groups")]),t._v(" "),n("ul",[t._l(t.itemsReleaseGroups,function(e){return n("li",{key:e.id,staticClass:"initial",class:{active:e.toggled},on:{click:function(t){e.toggled=!e.toggled}}},[t._v(t._s(e.name))])}),t._v(" "),n("div",{staticClass:"arrow",on:{click:function(e){return t.moveToList("releasegroups")}}},[n("img",{attrs:{src:"images/curved-arrow-left.png"}})])],2)]),t._v(" "),n("div",{staticClass:"col-sm-4 right-blacklist"},[n("span",[t._v("Blacklist")]),t.showDeleteFromBlacklist?n("img",{staticClass:"deleteFromBlacklist",attrs:{src:"images/no16.png"},on:{click:function(e){return t.deleteFromList("blacklist")}}}):t._e(),t._v(" "),n("ul",[t._l(t.itemsBlacklist,function(e){return n("li",{key:e.id,class:{active:e.toggled},on:{click:function(t){e.toggled=!e.toggled}}},[t._v(t._s(e.name))])}),t._v(" "),n("div",{staticClass:"arrow",on:{click:function(e){return t.moveToList("blacklist")}}},[n("img",{attrs:{src:"images/curved-arrow-left.png"}})])],2)])]),t._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:t.newGroup,expression:"newGroup"}],staticClass:"form-control input-sm",attrs:{type:"text",placeholder:"add custom group"},domProps:{value:t.newGroup},on:{input:function(e){e.target.composing||(t.newGroup=e.target.value)}}})]),t._v(" "),t._m(0)])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-8"},[e("p",[this._v("Use the input to add custom whitelist / blacklist release groups. Click on the "),e("img",{attrs:{src:"images/curved-arrow-left.png"}}),this._v(" to add it to the correct list.")])])}],!1,null,"10f4092b",null).exports;function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={name:"add-show-options",components:{AnidbReleaseGroupUi:c,ConfigToggleSlider:o.f},props:{showName:{type:String,default:"",required:!1},enableAnimeOptions:{type:Boolean,default:!1}},data:function(){return{saving:!1,selectedStatus:null,selectedStatusAfter:null,quality:{allowed:[],preferred:[]},selectedSubtitleEnabled:!1,selectedSeasonFoldersEnabled:!1,selectedAnimeEnabled:!1,selectedSceneEnabled:!1,release:{blacklist:[],whitelist:[],allgroups:[]}}},mounted:function(){var t=this,e=this.defaultConfig,n=this.update;this.selectedStatus=e.status,this.selectedStatusAfter=e.statusAfter,this.$nextTick(function(){return n()}),this.$watch(function(t){return[t.selectedStatus,t.selectedStatusAfter,t.selectedSubtitleEnabled,t.selectedSeasonFoldersEnabled,t.selectedSceneEnabled,t.selectedAnimeEnabled].join()},function(){t.update()})},methods:{getReleaseGroups:function(t){var e=this,n={series_name:t};return a.c.get("home/fetch_releasegroups",{params:n,timeout:3e4}).then(function(t){return t.data}).catch(function(n){return e.$snotify.warning('Error while trying to fetch release groups for show "'.concat(t,'": ').concat(n||"Unknown"),"Error"),console.warn(n),null})},update:function(){var t=this,e=this.selectedSubtitleEnabled,n=this.selectedStatus,s=this.selectedStatusAfter,a=this.selectedSeasonFoldersEnabled,i=this.selectedAnimeEnabled,o=this.selectedSceneEnabled,r=this.release,l=this.quality;this.$nextTick(function(){t.$emit("change",{subtitles:e,status:n,statusAfter:s,seasonFolders:a,anime:i,scene:o,release:r,quality:l})})},onChangeReleaseGroupsAnime:function(t){this.release.whitelist=t.filter(function(t){return"whitelist"===t.memberOf}).map(function(t){return t.name}),this.release.blacklist=t.filter(function(t){return"blacklist"===t.memberOf}).map(function(t){return t.name}),this.update()},saveDefaults:function(){var t=this,e=this.$store,n={showDefaults:{status:this.selectedStatus,statusAfter:this.selectedStatusAfter,quality:this.combinedQualities,subtitles:this.selectedSubtitleEnabled,seasonFolders:this.selectedSeasonFoldersEnabled,anime:this.selectedAnimeEnabled,scene:this.selectedSceneEnabled}};this.saving=!0,e.dispatch("setConfig",{section:"main",config:n}).then(function(){t.$snotify.success('Your "add show" defaults have been set to your current selections.',"Saved Defaults")}).catch(function(e){t.$snotify.error('Error while trying to save "add show" defaults: '+(e.message||"Unknown"),"Error")}).finally(function(){t.saving=!1})}},computed:function(t){for(var e=1;e0?n("span",{class:"floating-badge"+t.toolsBadgeClass},[t._v(t._s(t.toolsBadgeCount))]):t._e(),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Toggle navigation")]),t._v(" "),n("span",{staticClass:"icon-bar"}),t._v(" "),n("span",{staticClass:"icon-bar"}),t._v(" "),n("span",{staticClass:"icon-bar"})]),t._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),t._v(" "),t.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"===t.topMenu},attrs:{id:"NAVhome"}},[n("app-link",{staticClass:"dropdown-toggle",attrs:{href:"home/","aria-haspopup":"true","data-toggle":"dropdown","data-hover":"dropdown"}},[n("span",[t._v("Shows")]),t._v(" "),n("b",{staticClass:"caret"})]),t._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"home/"}},[n("i",{staticClass:"menu-icon-home"}),t._v(" Show List")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"addShows/"}},[n("i",{staticClass:"menu-icon-addshow"}),t._v(" Add Shows")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"addRecommended/"}},[n("i",{staticClass:"menu-icon-addshow"}),t._v(" Add Recommended Shows")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"home/postprocess/"}},[n("i",{staticClass:"menu-icon-postprocess"}),t._v(" Manual Post-Processing")])],1),t._v(" "),t.recentShows.length>0?[n("li",{staticClass:"divider",attrs:{role:"separator"}}),t._v(" "),t._l(t.recentShows,function(e){return n("li",{key:e.link},[n("app-link",{attrs:{href:e.link}},[n("i",{staticClass:"menu-icon-addshow"}),t._v(" "+t._s(e.name)+"\n ")])],1)})]:t._e()],2),t._v(" "),n("div",{staticStyle:{clear:"both"}})],1),t._v(" "),n("li",{class:{active:"schedule"===t.topMenu},attrs:{id:"NAVschedule"}},[n("app-link",{attrs:{href:"schedule/"}},[t._v("Schedule")])],1),t._v(" "),n("li",{class:{active:"history"===t.topMenu},attrs:{id:"NAVhistory"}},[n("app-link",{attrs:{href:"history/"}},[t._v("History")])],1),t._v(" "),n("li",{staticClass:"navbar-split dropdown",class:{active:"manage"===t.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",[t._v("Manage")]),t._v(" "),n("b",{staticClass:"caret"})]),t._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"manage/"}},[n("i",{staticClass:"menu-icon-manage"}),t._v(" Mass Update")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"manage/backlogOverview/"}},[n("i",{staticClass:"menu-icon-backlog-view"}),t._v(" Backlog Overview")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"manage/manageSearches/"}},[n("i",{staticClass:"menu-icon-manage-searches"}),t._v(" Manage Searches")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"manage/episodeStatuses/"}},[n("i",{staticClass:"menu-icon-manage2"}),t._v(" Episode Status Management")])],1),t._v(" "),t.linkVisible.plex?n("li",[n("app-link",{attrs:{href:"home/updatePLEX/"}},[n("i",{staticClass:"menu-icon-plex"}),t._v(" Update PLEX")])],1):t._e(),t._v(" "),t.linkVisible.kodi?n("li",[n("app-link",{attrs:{href:"home/updateKODI/"}},[n("i",{staticClass:"menu-icon-kodi"}),t._v(" Update KODI")])],1):t._e(),t._v(" "),t.linkVisible.emby?n("li",[n("app-link",{attrs:{href:"home/updateEMBY/"}},[n("i",{staticClass:"menu-icon-emby"}),t._v(" Update Emby")])],1):t._e(),t._v(" "),t.linkVisible.manageTorrents?n("li",[n("app-link",{attrs:{href:"manage/manageTorrents/",target:"_blank"}},[n("i",{staticClass:"menu-icon-bittorrent"}),t._v(" Manage Torrents")])],1):t._e(),t._v(" "),t.linkVisible.failedDownloads?n("li",[n("app-link",{attrs:{href:"manage/failedDownloads/"}},[n("i",{staticClass:"menu-icon-failed-download"}),t._v(" Failed Downloads")])],1):t._e(),t._v(" "),t.linkVisible.subtitleMissed?n("li",[n("app-link",{attrs:{href:"manage/subtitleMissed/"}},[n("i",{staticClass:"menu-icon-backlog"}),t._v(" Missed Subtitle Management")])],1):t._e(),t._v(" "),t.linkVisible.subtitleMissedPP?n("li",[n("app-link",{attrs:{href:"manage/subtitleMissedPP/"}},[n("i",{staticClass:"menu-icon-backlog"}),t._v(" Missed Subtitle in Post-Process folder")])],1):t._e()]),t._v(" "),n("div",{staticStyle:{clear:"both"}})],1),t._v(" "),n("li",{staticClass:"navbar-split dropdown",class:{active:"config"===t.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"},[t._v("Config")]),n("img",{staticClass:"navbaricon hidden-xs",attrs:{src:"images/menu/system18.png"}}),t._v(" "),n("b",{staticClass:"caret"})]),t._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"config/"}},[n("i",{staticClass:"menu-icon-help"}),t._v(" Help & Info")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/general/"}},[n("i",{staticClass:"menu-icon-config"}),t._v(" General")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/backuprestore/"}},[n("i",{staticClass:"menu-icon-backup"}),t._v(" Backup & Restore")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/search/"}},[n("i",{staticClass:"menu-icon-manage-searches"}),t._v(" Search Settings")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/providers/"}},[n("i",{staticClass:"menu-icon-provider"}),t._v(" Search Providers")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/subtitles/"}},[n("i",{staticClass:"menu-icon-backlog"}),t._v(" Subtitles Settings")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/postProcessing/"}},[n("i",{staticClass:"menu-icon-postprocess"}),t._v(" Post Processing")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/notifications/"}},[n("i",{staticClass:"menu-icon-notification"}),t._v(" Notifications")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"config/anime/"}},[n("i",{staticClass:"menu-icon-anime"}),t._v(" Anime")])],1)]),t._v(" "),n("div",{staticStyle:{clear:"both"}})],1),t._v(" "),n("li",{staticClass:"navbar-split dropdown",class:{active:"system"===t.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"},[t._v("Tools")]),n("img",{staticClass:"navbaricon hidden-xs",attrs:{src:"images/menu/system18-2.png"}}),t._v(" "),t.toolsBadgeCount>0?n("span",{class:"badge"+t.toolsBadgeClass},[t._v(t._s(t.toolsBadgeCount))]):t._e(),t._v(" "),n("b",{staticClass:"caret"})]),t._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("app-link",{attrs:{href:"news/"}},[n("i",{staticClass:"menu-icon-news"}),t._v(" News "),t.config.news.unread>0?n("span",{staticClass:"badge"},[t._v(t._s(t.config.news.unread))]):t._e()])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"IRC/"}},[n("i",{staticClass:"menu-icon-irc"}),t._v(" IRC")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"changes/"}},[n("i",{staticClass:"menu-icon-changelog"}),t._v(" Changelog")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:t.config.donationsUrl}},[n("i",{staticClass:"menu-icon-support"}),t._v(" Support Medusa")])],1),t._v(" "),n("li",{staticClass:"divider",attrs:{role:"separator"}}),t._v(" "),t.config.logs.numErrors>0?n("li",[n("app-link",{attrs:{href:"errorlogs/"}},[n("i",{staticClass:"menu-icon-error"}),t._v(" View Errors "),n("span",{staticClass:"badge btn-danger"},[t._v(t._s(t.config.logs.numErrors))])])],1):t._e(),t._v(" "),t.config.logs.numWarnings>0?n("li",[n("app-link",{attrs:{href:"errorlogs/?level="+t.warningLevel}},[n("i",{staticClass:"menu-icon-viewlog-errors"}),t._v(" View Warnings "),n("span",{staticClass:"badge btn-warning"},[t._v(t._s(t.config.logs.numWarnings))])])],1):t._e(),t._v(" "),n("li",[n("app-link",{attrs:{href:"errorlogs/viewlog/"}},[n("i",{staticClass:"menu-icon-viewlog"}),t._v(" View Log")])],1),t._v(" "),n("li",{staticClass:"divider",attrs:{role:"separator"}}),t._v(" "),n("li",[n("app-link",{attrs:{href:"home/updateCheck?pid="+t.config.pid}},[n("i",{staticClass:"menu-icon-update"}),t._v(" Check For Updates")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"home/restart/?pid="+t.config.pid},nativeOn:{click:function(e){return e.preventDefault(),t.confirmDialog(e,"restart")}}},[n("i",{staticClass:"menu-icon-restart"}),t._v(" Restart")])],1),t._v(" "),n("li",[n("app-link",{attrs:{href:"home/shutdown/?pid="+t.config.pid},nativeOn:{click:function(e){return e.preventDefault(),t.confirmDialog(e,"shutdown")}}},[n("i",{staticClass:"menu-icon-shutdown"}),t._v(" Shutdown")])],1),t._v(" "),t.username?n("li",[n("app-link",{attrs:{href:"logout"},nativeOn:{click:function(e){return e.preventDefault(),t.confirmDialog(e,"logout")}}},[n("i",{staticClass:"menu-icon-shutdown"}),t._v(" Logout")])],1):t._e(),t._v(" "),n("li",{staticClass:"divider",attrs:{role:"separator"}}),t._v(" "),n("li",[n("app-link",{attrs:{href:"home/status/"}},[n("i",{staticClass:"menu-icon-info"}),t._v(" Server Status")])],1)]),t._v(" "),n("div",{staticStyle:{clear:"both"}})],1)])]):t._e()])])},[],!1,null,null,null).exports),f=n(36).a,v=Object(l.a)(f,function(){var t=this.$createElement;return(this._self._c||t)("div")},[],!1,null,null,null).exports,g=n(58),_=(n(62),n(39).a),b=Object(l.a)(_,void 0,void 0,!1,null,null,null).exports,w=(n(59),n(60),n(41).a),y=Object(l.a)(w,void 0,void 0,!1,null,null,null).exports,S=n(42).a,x=(n(175),Object(l.a)(S,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"root-dirs-wrapper"}},[n("div",{staticClass:"root-dirs-selectbox"},[n("select",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.selectedRootDir,expression:"selectedRootDir"}],ref:"rootDirs",attrs:{name:"rootDir",id:"rootDirs",size:"6"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedRootDir=e.target.multiple?n:n[0]}}},"select",t.$attrs,!1),t.$listeners),t._l(t.rootDirs,function(e){return n("option",{key:e.path,domProps:{value:e.path}},[t._v("\n "+t._s(t._f("markDefault")(e))+"\n ")])}),0)]),t._v(" "),n("div",{staticClass:"root-dirs-controls"},[n("button",{staticClass:"btn-medusa",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.add(e)}}},[t._v("New")]),t._v(" "),n("button",{staticClass:"btn-medusa",attrs:{type:"button",disabled:!t.selectedRootDir},on:{click:function(e){return e.preventDefault(),t.edit(e)}}},[t._v("Edit")]),t._v(" "),n("button",{staticClass:"btn-medusa",attrs:{type:"button",disabled:!t.selectedRootDir},on:{click:function(e){return e.preventDefault(),t.remove(e)}}},[t._v("Delete")]),t._v(" "),n("button",{staticClass:"btn-medusa",attrs:{type:"button",disabled:!t.selectedRootDir},on:{click:function(e){return e.preventDefault(),t.setDefault(e)}}},[t._v("Set as Default *")])])])},[],!1,null,null,null).exports),C=n(44).a,k=Object(l.a)(C,void 0,void 0,!1,null,null,null).exports,P=(n(13),n(47).a),E=Object(l.a)(P,void 0,void 0,!1,null,null,null).exports,O=n(48).a,A=Object(l.a)(O,void 0,void 0,!1,null,null,null).exports;n(61);n.d(e,"a",function(){return p}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return m}),n.d(e,"f",function(){return v}),n.d(e,"g",function(){return g.default}),n.d(e,"m",function(){return b}),n.d(e,"o",function(){return y}),n.d(e,"s",function(){return x}),n.d(e,"v",function(){return k}),n.d(e,"x",function(){return E}),n.d(e,"z",function(){return A}),n.d(e,"d",function(){return o.a}),n.d(e,"e",function(){return o.b}),n.d(e,"h",function(){return o.c}),n.d(e,"j",function(){return o.e}),n.d(e,"i",function(){return o.d}),n.d(e,"k",function(){return o.f}),n.d(e,"l",function(){return o.g}),n.d(e,"n",function(){return o.h}),n.d(e,"p",function(){return o.i}),n.d(e,"q",function(){return o.j}),n.d(e,"r",function(){return o.k}),n.d(e,"t",function(){return o.l}),n.d(e,"u",function(){return o.m}),n.d(e,"w",function(){return o.n}),n.d(e,"y",function(){return o.o})},,,function(t,e,n){"use strict";n.d(e,"e",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return l}),n.d(e,"a",function(){return c});var s=n(16),a=n.n(s),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(t,e,n){"use strict";var s=n(2),a=n(14);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r={name:"app-link",props:{to:[String,Object],href:String,indexerId:{type:String},placeholder:{type:String,default:"indexer-to-name"}},computed:function(t){for(var e=1;e-1:t.localValue},on:{input:function(e){return t.updateValue()},change:function(e){var n=t.localValue,s=e.target,a=!!s.checked;if(Array.isArray(n)){var i=t._i(n,null);s.checked?i<0&&(t.localValue=n.concat([null])):i>-1&&(t.localValue=n.slice(0,i).concat(n.slice(i+1)))}else t.localValue=a}}},"input",{id:t.id,type:t.type,name:t.id,class:t.inputClass,placeholder:t.placeholder,disabled:t.disabled},!1)):"radio"===[t.id,t.type,t.id,t.inputClass,t.placeholder,t.disabled][1]?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.localValue,expression:"localValue"}],attrs:{type:"radio"},domProps:{checked:t._q(t.localValue,null)},on:{input:function(e){return t.updateValue()},change:function(e){t.localValue=null}}},"input",{id:t.id,type:t.type,name:t.id,class:t.inputClass,placeholder:t.placeholder,disabled:t.disabled},!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.localValue,expression:"localValue"}],attrs:{type:[t.id,t.type,t.id,t.inputClass,t.placeholder,t.disabled][1]},domProps:{value:t.localValue},on:{input:[function(e){e.target.composing||(t.localValue=e.target.value)},function(e){return t.updateValue()}]}},"input",{id:t.id,type:t.type,name:t.id,class:t.inputClass,placeholder:t.placeholder,disabled:t.disabled},!1)),t._v(" "),t._l(t.explanations,function(e,s){return n("p",{key:s},[t._v(t._s(e))])}),t._v(" "),t._t("default")],2)])])])},[],!1,null,null,null).exports),b={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:function(){return[]}}},data:function(){return{localChecked:null}},mounted:function(){var t=this.value;this.localChecked=t},watch:{value:function(){var t=this.value;this.localChecked=t}},methods:{updateValue:function(){var t=this.localChecked;this.$emit("input",t)}}},w=(n(140),Object(l.a)(b,function(){var t=this,e=t.$createElement,n=t._self._c||e;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:t.id}},[n("span",[t._v(t._s(t.label))])]),t._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("toggle-button",t._b({attrs:{width:45,height:22,sync:""},on:{input:function(e){return t.updateValue()}},model:{value:t.localChecked,callback:function(e){t.localChecked=e},expression:"localChecked"}},"toggle-button",{id:t.id,name:t.id,disabled:t.disabled},!1)),t._v(" "),t._l(t.explanations,function(e,s){return n("p",{key:s},[t._v(t._s(e))])}),t._v(" "),t._t("default")],2)])])])},[],!1,null,null,null).exports),y=n(22).a,S=(n(142),Object(l.a)(y,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"file-browser max-width"},[n("div",{class:t.showBrowseButton?"input-group":"input-group-no-btn"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPath,expression:"currentPath"}],ref:"locationInput",staticClass:"form-control input-sm fileBrowserField",attrs:{name:t.name,type:"text"},domProps:{value:t.currentPath},on:{input:function(e){e.target.composing||(t.currentPath=e.target.value)}}}),t._v(" "),t.showBrowseButton?n("div",{staticClass:"input-group-btn",attrs:{title:t.title,alt:t.title},on:{click:function(e){return e.preventDefault(),t.openDialog(e)}}},[t._m(0)]):t._e()]),t._v(" "),n("div",{ref:"fileBrowserDialog",staticClass:"fileBrowserDialog",staticStyle:{display:"none"}}),t._v(" "),n("input",{ref:"fileBrowserSearchBox",staticClass:"form-control",staticStyle:{display:"none"},attrs:{type:"text"},domProps:{value:t.currentPath},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.browse(e.target.value)}}}),t._v(" "),n("ul",{ref:"fileBrowserFileList",staticStyle:{display:"none"}},t._l(t.files,function(e){return n("li",{key:e.name,staticClass:"ui-state-default ui-corner-all"},[n("a",{on:{mouseover:function(n){return t.toggleFolder(e,n)},mouseout:function(n){return t.toggleFolder(e,n)},click:function(n){return t.fileClicked(e)}}},[n("span",{class:"ui-icon "+(e.isFile?"ui-icon-blank":"ui-icon-folder-collapsed")}),t._v(" "+t._s(e.name)+"\n ")])])}),0)])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"btn btn-default input-sm",staticStyle:{"font-size":"14px"}},[e("i",{staticClass:"glyphicon glyphicon-open"})])}],!1,null,"5a327762",null).exports),x=n(24).a,C=Object(l.a)(x,function(){var t=this.$createElement;return(this._self._c||t)("select")},[],!1,null,null,null).exports,k=n(25).a,P=Object(l.a)(k,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"name-pattern-wrapper"}},[t.type?n("div",{staticClass:"form-group"},[n("label",{staticClass:"col-sm-2 control-label",attrs:{for:"enable_naming_custom"}},[n("span",[t._v("Custom "+t._s(t.type))])]),t._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(e){return t.update()}},model:{value:t.isEnabled,callback:function(e){t.isEnabled=e},expression:"isEnabled"}}),t._v(" "),n("span",[t._v("Name "+t._s(t.type)+" shows differently than regular shows?")])],1)]):t._e(),t._v(" "),!t.type||t.isEnabled?n("div",{staticClass:"episode-naming"},[n("div",{staticClass:"form-group"},[t._m(0),t._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedNamingPattern,expression:"selectedNamingPattern"}],staticClass:"form-control input-sm",attrs:{id:"name_presets"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedNamingPattern=e.target.multiple?n:n[0]},t.updatePatternSamples],input:function(e){return t.update()}}},t._l(t.presets,function(e){return n("option",{key:e.pattern,attrs:{id:e.pattern}},[t._v(t._s(e.example))])}),0)])]),t._v(" "),n("div",{attrs:{id:"naming_custom"}},[t.isCustom?n("div",{staticClass:"form-group",staticStyle:{"padding-top":"0"}},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.customName,expression:"customName"}],staticClass:"form-control-inline-max input-sm max-input350",attrs:{type:"text",name:"naming_pattern",id:"naming_pattern"},domProps:{value:t.customName},on:{change:t.updatePatternSamples,input:[function(e){e.target.composing||(t.customName=e.target.value)},function(e){return t.update()}]}}),t._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(e){t.showLegend=!t.showLegend}}})])]):t._e(),t._v(" "),t.showLegend&&t.isCustom?n("div",{staticClass:"nocheck",attrs:{id:"naming_key"}},[n("table",{staticClass:"Key"},[t._m(2),t._v(" "),t._m(3),t._v(" "),n("tbody",[t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),t._m(8),t._v(" "),t._m(9),t._v(" "),t._m(10),t._v(" "),t._m(11),t._v(" "),t._m(12),t._v(" "),t._m(13),t._v(" "),t._m(14),t._v(" "),t._m(15),t._v(" "),t._m(16),t._v(" "),t._m(17),t._v(" "),t._m(18),t._v(" "),t._m(19),t._v(" "),n("tr",[t._m(20),t._v(" "),n("td",[t._v("%M")]),t._v(" "),n("td",[t._v(t._s(t.getDateFormat("M")))])]),t._v(" "),n("tr",{staticClass:"even"},[n("td",[t._v(" ")]),t._v(" "),n("td",[t._v("%D")]),t._v(" "),n("td",[t._v(t._s(t.getDateFormat("D")))])]),t._v(" "),n("tr",[n("td",[t._v(" ")]),t._v(" "),n("td",[t._v("%Y")]),t._v(" "),n("td",[t._v(t._s(t.getDateFormat("YY")))])]),t._v(" "),n("tr",[t._m(21),t._v(" "),n("td",[t._v("%CM")]),t._v(" "),n("td",[t._v(t._s(t.getDateFormat("M")))])]),t._v(" "),n("tr",{staticClass:"even"},[n("td",[t._v(" ")]),t._v(" "),n("td",[t._v("%CD")]),t._v(" "),n("td",[t._v(t._s(t.getDateFormat("D")))])]),t._v(" "),n("tr",[n("td",[t._v(" ")]),t._v(" "),n("td",[t._v("%CY")]),t._v(" "),n("td",[t._v(t._s(t.getDateFormat("YY")))])]),t._v(" "),t._m(22),t._v(" "),t._m(23),t._v(" "),t._m(24),t._v(" "),t._m(25),t._v(" "),t._m(26),t._v(" "),t._m(27),t._v(" "),t._m(28),t._v(" "),t._m(29),t._v(" "),t._m(30)])])]):t._e()]),t._v(" "),t.selectedMultiEpStyle?n("div",{staticClass:"form-group"},[t._m(31),t._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedMultiEpStyle,expression:"selectedMultiEpStyle"}],staticClass:"form-control input-sm",attrs:{id:"naming_multi_ep",name:"naming_multi_ep"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedMultiEpStyle=e.target.multiple?n:n[0]},t.updatePatternSamples],input:function(e){return t.update(e)}}},t._l(t.availableMultiEpStyles,function(e){return n("option",{key:e.value,attrs:{id:"multiEpStyle"},domProps:{value:e.value}},[t._v(t._s(e.text))])}),0)])]):t._e(),t._v(" "),n("div",{staticClass:"form-group row"},[n("h3",{staticClass:"col-sm-12"},[t._v("Single-EP Sample:")]),t._v(" "),n("div",{staticClass:"example col-sm-12"},[n("span",{staticClass:"jumbo",attrs:{id:"naming_example"}},[t._v(t._s(t.namingExample))])])]),t._v(" "),t.isMulti?n("div",{staticClass:"form-group row"},[n("h3",{staticClass:"col-sm-12"},[t._v("Multi-EP sample:")]),t._v(" "),n("div",{staticClass:"example col-sm-12"},[n("span",{staticClass:"jumbo",attrs:{id:"naming_example_multi"}},[t._v(t._s(t.namingExampleMulti))])])]):t._e(),t._v(" "),t.animeType>0?n("div",{staticClass:"form-group"},[t._m(32),t._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.animeType,expression:"animeType"}],attrs:{type:"radio",name:"naming_anime",id:"naming_anime",value:"1"},domProps:{checked:t._q(t.animeType,"1")},on:{change:[function(e){t.animeType="1"},t.updatePatternSamples],input:function(e){return t.update()}}}),t._v(" "),n("span",[t._v("Add the absolute number to the season/episode format?")]),t._v(" "),n("p",[t._v("Only applies to animes. (e.g. S15E45 - 310 vs S15E45)")])])]):t._e(),t._v(" "),t.animeType>0?n("div",{staticClass:"form-group"},[t._m(33),t._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.animeType,expression:"animeType"}],attrs:{type:"radio",name:"naming_anime",id:"naming_anime_only",value:"2"},domProps:{checked:t._q(t.animeType,"2")},on:{change:[function(e){t.animeType="2"},t.updatePatternSamples],input:function(e){return t.update()}}}),t._v(" "),n("span",[t._v("Replace season/episode format with absolute number")]),t._v(" "),n("p",[t._v("Only applies to animes.")])])]):t._e(),t._v(" "),t.animeType>0?n("div",{staticClass:"form-group"},[t._m(34),t._v(" "),n("div",{staticClass:"col-sm-10 content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.animeType,expression:"animeType"}],attrs:{type:"radio",name:"naming_anime",id:"naming_anime_none",value:"3"},domProps:{checked:t._q(t.animeType,"3")},on:{change:[function(e){t.animeType="3"},t.updatePatternSamples],input:function(e){return t.update()}}}),t._v(" "),n("span",[t._v("Don't include the absolute number")]),t._v(" "),n("p",[t._v("Only applies to animes.")])])]):t._e()]):t._e()])},[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-2 control-label",attrs:{for:"name_presets"}},[e("span",[this._v("Name Pattern:")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-2 control-label"},[e("span",[this._v(" ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",{staticClass:"align-right"},[this._v("Meaning")]),this._v(" "),e("th",[this._v("Pattern")]),this._v(" "),e("th",{attrs:{width:"60%"}},[this._v("Result")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tfoot",[e("tr",[e("th",{attrs:{colspan:"3"}},[this._v("Use lower case if you want lower case names (eg. %sn, %e.n, %q_n etc)")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",{staticClass:"align-right"},[e("b",[this._v("Show Name:")])]),this._v(" "),e("td",[this._v("%SN")]),this._v(" "),e("td",[this._v("Show Name")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%S.N")]),this._v(" "),e("td",[this._v("Show.Name")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%S_N")]),this._v(" "),e("td",[this._v("Show_Name")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("b",[this._v("Season Number:")])]),this._v(" "),e("td",[this._v("%S")]),this._v(" "),e("td",[this._v("2")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%0S")]),this._v(" "),e("td",[this._v("02")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("b",[this._v("XEM Season Number:")])]),this._v(" "),e("td",[this._v("%XS")]),this._v(" "),e("td",[this._v("2")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%0XS")]),this._v(" "),e("td",[this._v("02")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("b",[this._v("Episode Number:")])]),this._v(" "),e("td",[this._v("%E")]),this._v(" "),e("td",[this._v("3")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%0E")]),this._v(" "),e("td",[this._v("03")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("b",[this._v("XEM Episode Number:")])]),this._v(" "),e("td",[this._v("%XE")]),this._v(" "),e("td",[this._v("3")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%0XE")]),this._v(" "),e("td",[this._v("03")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("b",[this._v("Absolute Episode Number:")])]),this._v(" "),e("td",[this._v("%AB")]),this._v(" "),e("td",[this._v("003")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",{staticClass:"align-right"},[e("b",[this._v("Xem Absolute Episode Number:")])]),this._v(" "),e("td",[this._v("%XAB")]),this._v(" "),e("td",[this._v("003")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("b",[this._v("Episode Name:")])]),this._v(" "),e("td",[this._v("%EN")]),this._v(" "),e("td",[this._v("Episode Name")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%E.N")]),this._v(" "),e("td",[this._v("Episode.Name")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%E_N")]),this._v(" "),e("td",[this._v("Episode_Name")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"align-right"},[e("b",[this._v("Air Date:")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"align-right"},[e("b",[this._v("Post-Processing Date:")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",{staticClass:"align-right"},[e("b",[this._v("Quality:")])]),this._v(" "),e("td",[this._v("%QN")]),this._v(" "),e("td",[this._v("720p BluRay")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%Q.N")]),this._v(" "),e("td",[this._v("720p.BluRay")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%Q_N")]),this._v(" "),e("td",[this._v("720p_BluRay")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",{staticClass:"align-right"},[e("b",[this._v("Scene Quality:")])]),this._v(" "),e("td",[this._v("%SQN")]),this._v(" "),e("td",[this._v("720p HDTV x264")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%SQ.N")]),this._v(" "),e("td",[this._v("720p.HDTV.x264")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",[this._v(" ")]),this._v(" "),e("td",[this._v("%SQ_N")]),this._v(" "),e("td",[this._v("720p_HDTV_x264")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("i",{staticClass:"glyphicon glyphicon-info-sign",attrs:{title:"Multi-EP style is ignored"}}),this._v(" "),e("b",[this._v("Release Name:")])]),this._v(" "),e("td",[this._v("%RN")]),this._v(" "),e("td",[this._v("Show.Name.S02E03.HDTV.x264-RLSGROUP")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",{staticClass:"align-right"},[e("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(" "),e("b",[this._v("Release Group:")])]),this._v(" "),e("td",[this._v("%RG")]),this._v(" "),e("td",[this._v("RLSGROUP")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"even"},[e("td",{staticClass:"align-right"},[e("i",{staticClass:"glyphicon glyphicon-info-sign",attrs:{title:"If episode is proper/repack add 'proper' to name."}}),this._v(" "),e("b",[this._v("Release Type:")])]),this._v(" "),e("td",[this._v("%RT")]),this._v(" "),e("td",[this._v("PROPER")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_multi_ep"}},[e("span",[this._v("Multi-Episode Style:")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_anime"}},[e("span",[this._v("Add Absolute Number")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_anime_only"}},[e("span",[this._v("Only Absolute Number")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-2 control-label",attrs:{for:"naming_anime_none"}},[e("span",[this._v("No Absolute Number")])])}],!1,null,null,null).exports,E=n(26).a,O=(n(157),Object(l.a)(E,function(){var t=this.$createElement;return(this._self._c||t)("img",{class:this.plotInfoClass,attrs:{src:"images/info32.png",width:"16",height:"16",alt:""}})},[],!1,null,null,null).exports);function A(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e>>0>=0}},showTitle:{type:Boolean,default:!1},override:{type:Object,default:function(){return{}},validator:function(t){return Object.keys(t).every(function(t){return["class","title","text"].includes(t)})}}},computed:function(t){for(var e=1;e>>0;e===t>>16>>>0&&(t=e);var n=this.isSubsetOf,s=this.qualities,a=this.qualityAnySets,i=this.qualityAnySetStrings,o=this.qualityCssClassStrings,r=this.qualityPresets,l=this.qualityPresetStrings,c=this.qualityValues,u=this.qualityValueStrings,d=this.setHDTV,p=this.setWEBDL,h=this.setBluRay,m=this.set720p,f=this.set1080p,v=this.setUHD4K,g=this.setUHD8K,_={class:"Custom",text:"Custom"};return Object.values(r).includes(t)?(_.class=l[t],_.text=l[t]):Object.values(a).includes(t)?(_.class=o[t],_.text=i[t]):Object.values(c).includes(t)?(_.class=o[t],_.text=u[t]):n(s.allowed,d)&&n(s.preferred,d)?(_.class=o[a.anyhdtv],_.text="HDTV"):n(s.allowed,p)&&n(s.preferred,p)?(_.class=o[a.anywebdl],_.text="WEB-DL"):n(s.allowed,h)&&n(s.preferred,h)?(_.class=o[a.anybluray],_.text="BluRay"):n(s.allowed,m)&&n(s.preferred,m)?(_.class=o[c.hdbluray],_.text="720p"):n(s.allowed,f)&&n(s.preferred,f)?(_.class=o[c.fullhdbluray],_.text="1080p"):n(s.allowed,v)&&n(s.preferred,v)?(_.class=o[c.uhd4kbluray],_.text="UHD-4K"):n(s.allowed,g)&&n(s.preferred,g)&&(_.class=o[c.uhd8kbluray],_.text="UHD-8K"),_}}),methods:{splitQuality:function(t){var e=this.qualityValues;return A(Object.values(e)).sort(function(t,e){return t-e}).reduce(function(e,n){return n&(t>>>=0)&&e.allowed.push(n),n<<16&t&&e.preferred.push(n),e},{allowed:[],preferred:[]})},makeQualitySet:function(){for(var t=this,e=arguments.length,n=new Array(e),s=0;s0?n("div",{staticClass:"new-item-help"},[t._v("\n Click "),n("i",{staticClass:"glyphicon glyphicon-plus"}),t._v(" to finish adding the value.\n ")]):t._e()],2)])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"btn btn-default input-sm",staticStyle:{"font-size":"14px"}},[e("i",{staticClass:"glyphicon glyphicon-remove",attrs:{title:"Remove"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"btn btn-default input-sm",staticStyle:{"font-size":"14px"}},[e("i",{staticClass:"glyphicon glyphicon-plus",attrs:{title:"Add"}})])}],!1,null,"ac609192",null).exports);function R(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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:function(){return{selectedShowSlug:this.showSlug||this.placeholder,lock:!1}},computed:function(t){for(var e=1;es?1:0})}),a}},whichList:function(){var t=this.showLists,e=0!==t[0].shows.length,n=0!==t[1].shows.length;return e&&n?-1:n?1:0}}),watch:{showSlug:function(t){this.lock=!0,this.selectedShowSlug=t},selectedShowSlug:function(t){if(this.lock)this.lock=!1;else if(this.followSelection){var e=this.shows.find(function(e){return e.id.slug===t});if(e){var n=e.indexer,s=e.id[n],a=document.querySelectorAll("base")[0].getAttribute("href"),i="home/displayShow?indexername="+n+"&seriesid="+s;window.location.href=a+i}}}}},L=(n(165),Object(l.a)(I,function(){var t=this,e=t.$createElement,n=t._self._c||e;return 0===t.shows.length?n("span",[t._v("Loading...")]):n("div",{staticClass:"show-selector form-inline hidden-print"},[n("div",{staticClass:"select-show-group pull-left top-5 bottom-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedShowSlug,expression:"selectedShowSlug"}],class:t.selectClass,on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedShowSlug=e.target.multiple?n:n[0]},function(e){return t.$emit("change",t.selectedShowSlug)}]}},[t.placeholder?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:t.placeholder,selected:!t.selectedShowSlug}},[t._v(t._s(t.placeholder))]):t._e(),t._v(" "),-1===t.whichList?t._l(t.showLists,function(e){return n("optgroup",{key:e.type,attrs:{label:e.type}},t._l(e.shows,function(e){return n("option",{key:e.id.slug,domProps:{value:e.id.slug}},[t._v(t._s(e.title))])}),0)}):t._l(t.showLists[t.whichList].shows,function(e){return n("option",{key:e.id.slug,domProps:{value:e.id.slug}},[t._v(t._s(e.title))])})],2)])])},[],!1,null,null,null).exports),F={name:"state-switch",props:{theme:{type:String,default:"dark",validator:function(t){return["dark","light"].includes(t)}},state:{required:!0,validator:function(t){return["yes","no","loading","true","false","null"].includes(String(t))}}},computed:{src:function(){var t=this.theme,e=this.realState;return"loading"===e?"images/loading16-".concat(t||"dark",".gif"):"images/".concat(e,"16.png")},alt:function(){var t=this.realState;return t.charAt(0).toUpperCase()+t.substr(1)},realState:function(){var t=this.state;return["null","true","false"].includes(String(t))?{null:"loading",true:"yes",false:"no"}[String(t)]:t}}},q=Object(l.a)(F,function(){var t=this.$createElement;return(this._self._c||t)("img",this._b({attrs:{height:"16",width:"16"}},"img",{src:this.src,alt:this.alt},!1))},[],!1,null,null,null).exports;n.d(e,"a",function(){return c}),n.d(e,"b",function(){return p}),n.d(e,"c",function(){return m}),n.d(e,"e",function(){return v}),n.d(e,"d",function(){return _}),n.d(e,"f",function(){return w}),n.d(e,"g",function(){return S}),n.d(e,"h",function(){return C}),n.d(e,"i",function(){return P}),n.d(e,"j",function(){return O}),n.d(e,"k",function(){return T}),n.d(e,"l",function(){return M}),n.d(e,"m",function(){return B}),n.d(e,"n",function(){return L}),n.d(e,"o",function(){return q})},,,,,function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return s});var s=!1,a=function(t,e){var n=function(t,e){return t|e};return(t.reduce(n,0)|e.reduce(n,0)<<16)>>>0},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0!==t){var n=e?1e3:1024;if(Math.abs(t)=n&&a=1?n("div",{staticClass:"pull-right",attrs:{id:"show-specials-and-seasons"}},[t.show.seasons.find(function(t){return function(t){return 0===t.season}})?n("span",{staticClass:"h2footer display-specials"},[t._v("\n Display Specials: "),n("a",{staticClass:"inner",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.toggleSpecials()}}},[t._v(t._s(t.displaySpecials?"Hide":"Show"))])]):t._e(),t._v(" "),n("div",{staticClass:"h2footer display-seasons clear"},[n("span",[t.show.seasons.length>=15?n("select",{directives:[{name:"model",rawName:"v-model",value:t.jumpToSeason,expression:"jumpToSeason"}],staticClass:"form-control input-sm",staticStyle:{position:"relative"},attrs:{id:"seasonJump"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.jumpToSeason=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"jump"}},[t._v("Jump to Season")]),t._v(" "),t._l(t.show.seasons,function(e){return n("option",{key:"jumpToSeason-"+e[0].season,attrs:{"data-season":e[0].season},domProps:{value:"#season-"+e[0].season}},[t._v("\n "+t._s(0===e[0].season?"Specials":"Season "+e[0].season)+"\n ")])})],2):t.show.seasons.length>=1?[t._v("\n Season:\n "),t._l(t.reverse(t.show.seasons),function(e,s){return[n("app-link",{key:"jumpToSeason-"+e[0].season,attrs:{href:"#season-"+e[0].season}},[t._v(t._s(0===e[0].season?"Specials":e[0].season))]),t._v(" "),t._t("default"),t._v(" "),s!==t.show.seasons.length-1?n("span",{key:"separator-"+s,staticClass:"separator"},[t._v("| ")]):t._e()]})]:t._e()],2)])]):t._e()]):t._e()]),t._v(" "),t._l(t.activeShowQueueStatuses,function(e){return n("div",{key:e.action,staticClass:"row"},[n("div",{staticClass:"alert alert-info"},[t._v("\n "+t._s(e.message)+"\n ")])])}),t._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":t.show.id.slug,type:"posterThumb",cls:"show-image shadow",link:!0}})],1)])]),t._v(" "),n("div",{staticClass:"ver-spacer"}),t._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":t.show.id.slug,type:"banner",cls:"show-banner pull-right shadow",link:!0}})],1),t._v(" "),n("div",{staticClass:"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12",attrs:{id:"show-rating"}},[t.show.rating.imdb&&t.show.rating.imdb.rating?n("span",{staticClass:"imdbstars",attrs:{"qtip-content":t.show.rating.imdb.rating+" / 10 Stars
"+t.show.rating.imdb.votes+" Votes"}},[n("span",{style:{width:12*Number(t.show.rating.imdb.rating)+"%"}})]):t._e(),t._v(" "),t.show.id.imdb?[t._l(t.show.countryCodes,function(t){return n("img",{key:"flag-"+t,class:["country-flag","flag-"+t],staticStyle:{"margin-left":"3px","vertical-align":"middle"},attrs:{src:"images/blank.png",width:"16",height:"11"}})}),t._v(" "),t.show.imdbInfo.year?n("span",[t._v("\n ("+t._s(t.show.imdbInfo.year)+") -\n ")]):t._e(),t._v(" "),n("span",[t._v("\n "+t._s(t.show.imdbInfo.runtimes||t.show.runtime)+" minutes\n ")]),t._v(" "),n("app-link",{attrs:{href:"https://www.imdb.com/title/"+t.show.id.imdb,title:"https://www.imdb.com/title/"+t.show.id.imdb}},[n("img",{staticStyle:{"margin-top":"-1px","vertical-align":"middle"},attrs:{alt:"[imdb]",height:"16",width:"16",src:"images/imdb.png"}})])]:[t.show.year.start?n("span",[t._v("("+t._s(t.show.year.start)+") - "+t._s(t.show.runtime)+" minutes - ")]):t._e()],t._v(" "),t.show.id.trakt?n("app-link",{attrs:{href:"https://trakt.tv/shows/"+t.show.id.trakt,title:"https://trakt.tv/shows/"+t.show.id.trakt}},[n("img",{attrs:{alt:"[trakt]",height:"16",width:"16",src:"images/trakt.png"}})]):t._e(),t._v(" "),t.showIndexerUrl&&t.indexerConfig[t.show.indexer].icon?n("app-link",{attrs:{href:t.showIndexerUrl,title:t.showIndexerUrl}},[n("img",{staticStyle:{"margin-top":"-1px","vertical-align":"middle"},attrs:{alt:t.indexerConfig[t.show.indexer].name,height:"16",width:"16",src:"images/"+t.indexerConfig[t.show.indexer].icon}})]):t._e(),t._v(" "),t.show.xemNumbering?n("app-link",{attrs:{href:"http://thexem.de/search?q="+t.show.title,title:"http://thexem.de/search?q="+t.show.title}},[n("img",{staticStyle:{"margin-top":"-1px","vertical-align":"middle"},attrs:{alt:"[xem]",height:"16",width:"16",src:"images/xem.png"}})]):t._e(),t._v(" "),t.show.id.tvdb?n("app-link",{attrs:{href:"https://fanart.tv/series/"+t.show.id.tvdb,title:"https://fanart.tv/series/"+t.show.id[t.show.indexer]}},[n("img",{staticClass:"fanart",attrs:{alt:"[fanart.tv]",height:"16",width:"16",src:"images/fanart.tv.png"}})]):t._e()],2),t._v(" "),n("div",{staticClass:"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12",attrs:{id:"tags"}},[t.show.genres?n("ul",{staticClass:"tags"},t._l(t.dedupeGenres(t.show.genres),function(e){return n("app-link",{key:e.toString(),attrs:{href:"https://trakt.tv/shows/popular/?genres="+e.toLowerCase().replace(" ","-"),title:"View other popular "+e+" shows on trakt.tv"}},[n("li",[t._v(t._s(e))])])}),1):n("ul",{staticClass:"tags"},t._l(t.showGenres,function(e){return n("app-link",{key:e.toString(),attrs:{href:"https://www.imdb.com/search/title?count=100&title_type=tv_series&genres="+e.toLowerCase().replace(" ","-"),title:"View other popular "+e+" shows on IMDB"}},[n("li",[t._v(t._s(e))])])}),1)])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12",attrs:{id:"summary"}},[n("div",{class:[{summaryFanArt:t.config.fanartBackground},"col-lg-9","col-md-8","col-sm-8","col-xs-12"],attrs:{id:"show-summary"}},[n("table",{staticClass:"summaryTable pull-left"},[t.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:t.show.plot},on:{toggle:function(e){return t.$emit("reflow")}}})],1)]):t._e(),t._v(" "),t.getPreset(t.combineQualities(t.show.config.qualities.allowed)).length>0?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Quality: ")]),n("td",[n("quality-pill",{attrs:{quality:t.combineQualities(t.show.config.qualities.allowed)}})],1)]):t._e(),t._v(" "),!t.getPreset(t.combineQualities(t.show.config.qualities.allowed)).length>0&&t.show.config.qualities.allowed?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Quality allowed:")]),n("td",[t._l(t.show.config.qualities.allowed,function(e,s){return[s>0?[t._v(",")]:t._e(),t._v(" "),n("quality-pill",{key:"allowed-"+e,attrs:{quality:e}})]})],2)]):t._e(),t._v(" "),!t.getPreset(t.combineQualities(t.show.config.qualities.allowed)).length>0&&t.combineQualities(t.show.config.qualities.preferred).length>0?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Quality preferred:")]),n("td",[t._l(t.show.config.qualities.preferred,function(e,s){return[s>0?[t._v(",")]:t._e(),t._v(" "),n("quality-pill",{key:"preferred-"+e,attrs:{quality:e}})]})],2)]):t._e(),t._v(" "),t.show.network&&t.show.airs?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Originally Airs: ")]),n("td",[t._v(t._s(t.show.airs)+" "),t.show.airsFormatValid?t._e():n("font",{attrs:{color:"#FF0000"}},[n("b",[t._v("(invalid Timeformat)")])]),t._v(" on "+t._s(t.show.network))],1)]):t.show.network?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Originally Airs: ")]),n("td",[t._v(t._s(t.show.network))])]):t.show.airs?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Originally Airs: ")]),n("td",[t._v(t._s(t.show.airs)+" "),t.show.airsFormatValid?t._e():n("font",{attrs:{color:"#FF0000"}},[n("b",[t._v("(invalid Timeformat)")])])],1)]):t._e(),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Show Status: ")]),n("td",[t._v(t._s(t.show.status))])]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Default EP Status: ")]),n("td",[t._v(t._s(t.show.config.defaultEpisodeStatus))])]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[n("span",{class:{"location-invalid":!t.show.config.locationValid}},[t._v("Location: ")])]),n("td",[n("span",{class:{"location-invalid":!t.show.config.locationValid}},[t._v(t._s(t.show.config.location))]),t._v(t._s(t.show.config.locationValid?"":" (Missing)"))])]),t._v(" "),t.show.config.aliases.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[t._v("Scene Name:")]),t._v(" "),n("td",[t._v(t._s(t.show.config.aliases.join(",")))])]):t._e(),t._v(" "),t.show.config.release.requiredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[t._v("Required Words: ")]),t._v(" "),n("td",[n("span",{staticClass:"break-word",class:{required:"snatch-selection"===t.type}},[t._v(t._s(t.show.config.release.requiredWords.join(",")))])])]):t._e(),t._v(" "),t.show.config.release.ignoredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[t._v("Ignored Words: ")]),t._v(" "),n("td",[n("span",{staticClass:"break-word",class:{ignored:"snatch-selection"===t.type}},[t._v(t._s(t.show.config.release.ignoredWords.join(",")))])])]):t._e(),t._v(" "),t.preferredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[t._v("Preferred Words: ")]),t._v(" "),n("td",[n("span",{staticClass:"break-word",class:{preferred:"snatch-selection"===t.type}},[t._v(t._s(t.preferredWords.join(",")))])])]):t._e(),t._v(" "),t.undesiredWords.length>0?n("tr",[n("td",{staticClass:"showLegend",staticStyle:{"vertical-align":"top"}},[t._v("Undesired Words: ")]),t._v(" "),n("td",[n("span",{staticClass:"break-word",class:{undesired:"snatch-selection"===t.type}},[t._v(t._s(t.undesiredWords.join(",")))])])]):t._e(),t._v(" "),t.show.config.release.whitelist&&t.show.config.release.whitelist.length>0?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Wanted Groups:")]),t._v(" "),n("td",[t._v(t._s(t.show.config.release.whitelist.join(",")))])]):t._e(),t._v(" "),t.show.config.release.blacklist&&t.show.config.release.blacklist.length>0?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Unwanted Groups:")]),t._v(" "),n("td",[t._v(t._s(t.show.config.release.blacklist.join(",")))])]):t._e(),t._v(" "),0!==t.show.config.airdateOffset?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Daily search offset:")]),t._v(" "),n("td",[t._v(t._s(t.show.config.airdateOffset)+" hours")])]):t._e(),t._v(" "),t.show.config.locationValid&&t.show.size>-1?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Size:")]),t._v(" "),n("td",[t._v(t._s(t.humanFileSize(t.show.size)))])]):t._e()])]),t._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"},[t.show.language?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Info Language:")]),n("td",[n("img",{attrs:{src:"images/subtitles/flags/"+t.getCountryISO2ToISO3(t.show.language)+".png",width:"16",height:"11",alt:t.show.language,title:t.show.language,onError:"this.onerror=null;this.src='images/flags/unknown.png';"}})])]):t._e(),t._v(" "),t.config.subtitles.enabled?n("tr",[n("td",{staticClass:"showLegend"},[t._v("Subtitles: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.subtitlesEnabled}})],1)]):t._e(),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Season Folders: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.seasonFolders||t.config.namingForceFolders}})],1)]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Paused: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.paused}})],1)]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Air-by-Date: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.airByDate}})],1)]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Sports: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.sports}})],1)]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Anime: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.anime}})],1)]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("DVD Order: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.dvdOrder}})],1)]),t._v(" "),n("tr",[n("td",{staticClass:"showLegend"},[t._v("Scene Numbering: ")]),n("td",[n("state-switch",{attrs:{theme:t.config.themeName,state:t.show.config.scene}})],1)])])])])])])])]),t._v(" "),t.show?n("div",{staticClass:"row",attrs:{id:"row-show-episodes-controls"}},[n("div",{staticClass:"col-md-12",attrs:{id:"col-show-episodes-controls"}},["show"===t.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"}},[t.show.seasons?n("label",{attrs:{for:"wanted"}},[n("span",{staticClass:"wanted"},[n("input",{attrs:{type:"checkbox",id:"wanted",checked:"checked"},on:{input:function(e){return t.showHideRows("wanted")}}}),t._v(" Wanted: "),n("b",[t._v(t._s(t.episodeSummary.Wanted))])])]):t._e(),t._v(" "),t.show.seasons?n("label",{attrs:{for:"qual"}},[n("span",{staticClass:"qual"},[n("input",{attrs:{type:"checkbox",id:"qual",checked:"checked"},on:{input:function(e){return t.showHideRows("qual")}}}),t._v(" Allowed: "),n("b",[t._v(t._s(t.episodeSummary.Allowed))])])]):t._e(),t._v(" "),t.show.seasons?n("label",{attrs:{for:"good"}},[n("span",{staticClass:"good"},[n("input",{attrs:{type:"checkbox",id:"good",checked:"checked"},on:{input:function(e){return t.showHideRows("good")}}}),t._v(" Preferred: "),n("b",[t._v(t._s(t.episodeSummary.Preferred))])])]):t._e(),t._v(" "),t.show.seasons?n("label",{attrs:{for:"skipped"}},[n("span",{staticClass:"skipped"},[n("input",{attrs:{type:"checkbox",id:"skipped",checked:"checked"},on:{input:function(e){return t.showHideRows("skipped")}}}),t._v(" Skipped: "),n("b",[t._v(t._s(t.episodeSummary.Skipped))])])]):t._e(),t._v(" "),t.show.seasons?n("label",{attrs:{for:"snatched"}},[n("span",{staticClass:"snatched"},[n("input",{attrs:{type:"checkbox",id:"snatched",checked:"checked"},on:{input:function(e){return t.showHideRows("snatched")}}}),t._v(" Snatched: "),n("b",[t._v(t._s(t.episodeSummary.Snatched+t.episodeSummary["Snatched (Proper)"]+t.episodeSummary["Snatched (Best)"]))])])]):t._e(),t._v(" "),n("button",{staticClass:"btn-medusa seriesCheck",on:{click:t.selectEpisodesClicked}},[t._v("Select Episodes")]),t._v(" "),n("button",{staticClass:"btn-medusa clearAll",on:{click:t.clearEpisodeSelectionClicked}},[t._v("Clear")])]),t._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"}},t._l(t.changeStatusOptions,function(e){return n("option",{key:e.value,domProps:{value:e.value}},[t._v("\n "+t._s(e.text)+"\n ")])}),0),t._v(" "),n("select",{staticClass:"form-control form-control-inline input-sm-custom input-sm-smallfont",attrs:{id:"qualitySelect"}},t._l(t.changeQualityOptions,function(e){return n("option",{key:e.value,domProps:{value:e.value}},[t._v("\n "+t._s(e.text)+"\n ")])}),0),t._v(" "),n("input",{attrs:{type:"hidden",id:"series-slug"},domProps:{value:t.show.id.slug}}),t._v(" "),n("input",{attrs:{type:"hidden",id:"series-id"},domProps:{value:t.show.id[t.show.indexer]}}),t._v(" "),n("input",{attrs:{type:"hidden",id:"indexer"},domProps:{value:t.show.indexer}}),t._v(" "),n("input",{staticClass:"btn-medusa",attrs:{type:"button",id:"changeStatus",value:"Go"},on:{click:t.changeStatusClicked}})])])]):n("div")])]):t._e()],2)},[],!1,null,"e712fe74",null);e.a=i.exports},function(t,e,n){"use strict";var s=n(15),a=[].concat([{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"}},{path:"/home/snatchSelection",name:"snatchSelection",meta:{topMenu:"home"}},{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",converted:!0},component:function(){return Promise.resolve().then(n.bind(null,58))}},{path:"/config/anime",name:"configAnime",meta:{title:"Config - Anime",header:"Anime",topMenu:"config"}},{path:"/config/backuprestore",name:"configBackupRestore",meta:{title:"Config - Backup/Restore",header:"Backup/Restore",topMenu:"config"}},{path:"/config/general",name:"configGeneral",meta:{title:"Config - General",header:"General Configuration",topMenu:"config"}},{path:"/config/notifications",name:"configNotifications",meta:{title:"Config - Notifications",header:"Notifications",topMenu:"config"}},{path:"/config/postProcessing",name:"configPostProcessing",meta:{title:"Config - Post Processing",header:"Post Processing",topMenu:"config"},component:function(){return Promise.resolve().then(n.bind(null,62))}},{path:"/config/providers",name:"configSearchProviders",meta:{title:"Config - Providers",header:"Search Providers",topMenu:"config"}},{path:"/config/search",name:"configSearchSettings",meta:{title:"Config - Episode Search",header:"Search Settings",topMenu:"config"}},{path:"/config/subtitles",name:"configSubtitles",meta:{title:"Config - Subtitles",header:"Subtitles",topMenu:"config"}}],[{path:"/addShows",name:"addShows",meta:{title:"Add Shows",header:"Add Shows",topMenu:"home",converted:!0},component:function(){return Promise.resolve().then(n.bind(null,57))}},{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:function(){return Promise.resolve().then(n.bind(null,60))}},{path:"/addRecommended",name:"addRecommended",meta:{title:"Add Recommended Shows",header:"Add Recommended Shows",topMenu:"home"},component:function(){return Promise.resolve().then(n.bind(null,56))}},{path:"/schedule",name:"schedule",meta:{title:"Schedule",header:"Schedule",topMenu:"schedule"}},{path:"/history",name:"history",meta:{title:"History",header:"History",topMenu:"history"}}],[{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 Downlaods",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"}},{path:"/errorlogs/viewlog",name:"viewlog",meta:{title:"Logs",header:"Log File",topMenu:"system"}}],[{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"},component:function(){return Promise.resolve().then(n.bind(null,59))}},{path:"/not-found",name:"not-found",meta:{title:"404",header:"404 - page not found"},component:function(){return Promise.resolve().then(n.bind(null,61))}}]),i=new s.a({base:document.body.getAttribute("web-root")+"/",mode:"history",routes:a});i.beforeEach(function(t,e,n){var s=t.meta.title;s&&(document.title="".concat(s," | Medusa")),n()}),e.a=i},,,,function(t,e,n){var s=n(135);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("53f5e432",s,!1,{})},function(t,e,n){var s=n(137);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("8d1653e8",s,!1,{})},function(t,e,n){var s=n(139);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("3ca8845c",s,!1,{})},function(t,e,n){var s=n(141);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("1bcb1e12",s,!1,{})},function(t,e,n){"use strict";(function(t){var s=n(4);e.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:function(){return{lock:!1,unwatchProp:null,files:[],currentPath:this.initialDir,lastPath:"",url:"browser/",autocompleteUrl:"browser/complete",fileBrowserDialog:null,localStorageSupport:function(){try{return Boolean(localStorage.getItem),!0}catch(t){return console.log(t),!1}}()}},created:function(){var t=this;this.unwatchProp=this.$watch("initialDir",function(e){t.unwatchProp(),t.lock=!0,t.currentPath=e,t.$nextTick(function(){t.lock=!1})})},mounted:function(){var t=this,e=this.autocomplete,n=this.fileBrowser,s=this.storedPath;n(this.$refs.locationInput,e).on("autocompleteselect",function(e,n){t.currentPath=n.item.value}),!this.currentPath&&s&&(this.currentPath=s)},computed:{storedPath:{get:function(){var t=this.localStorageSupport,e=this.localStorageKey;return t&&e?localStorage["fileBrowser-"+e]:null},set:function(t){var e=this.localStorageSupport,n=this.localStorageKey;e&&n&&(localStorage["fileBrowser-"+n]=t)}}},methods:{toggleFolder:function(t,e){if(!t.isFile){var n=e.target.children[0]||e.target;n.classList.toggle("ui-icon-folder-open"),n.classList.toggle("ui-icon-folder-collapsed")}},fileClicked:function(e){e.isFile?(this.currentPath=e.path,t(this.$el).find('.browserDialog .ui-button:contains("Ok")').click()):this.browse(e.path)},browse:function(e){var n=this,a=this.url,i=this.includeFiles,o=this.fileBrowserDialog;t(this.$refs.fileBrowserSearchBox).autocomplete("close"),console.debug("Browsing to "+e),o.dialog("option","dialogClass","browserDialog busy"),o.dialog("option","closeText","");var r={path:e,includeFiles:Number(i)};s.c.get(a,{params:r}).then(function(t){var e=t.data;n.currentPath=e.shift().currentPath,n.files=e,o.dialog("option","dialogClass","browserDialog")}).catch(function(t){console.warning("Unable to browse to: ".concat(e,"\nError: ").concat(t.message),t)})},openFileBrowser:function(e){var n=this,s=n.browse,a=n.title,i=n.fileBrowser,o=n.$refs,r=o.fileBrowserSearchBox,l=o.fileBrowserFileList;n.fileBrowserDialog||(n.fileBrowserDialog=t(o.fileBrowserDialog).dialog({dialogClass:"browserDialog",title:a,position:{my:"center top",at:"center top+100",of:window},minWidth:Math.min(t(document).width()-80,650),height:Math.min(t(document).height()-120,t(window).height()-120),maxHeight:Math.min(t(document).height()-120,t(window).height()-120),maxWidth:t(document).width()-80,modal:!0,autoOpen:!1}),r.removeAttribute("style"),n.fileBrowserDialog.append(r),i(r,!0).on("autocompleteselect",function(t,e){s(e.item.value)})),n.fileBrowserDialog.dialog("option","buttons",[{text:"Ok",class:"medusa-btn",click:function(){e(n.currentPath),t(this).dialog("close")}},{text:"Cancel",class:"medusa-btn",click:function(){n.currentPath=n.lastPath,t(this).dialog("close")}}]),n.fileBrowserDialog.dialog("open"),s(n.currentPath),n.lastPath=n.currentPath,l.removeAttribute("style"),n.fileBrowserDialog.append(l)},fileBrowser:function(e,n){var s=this,a=s.autocompleteUrl,i=s.includeFiles,o=t(e);if(n&&o.autocomplete&&a){var r="";o.autocomplete({position:{my:"top",at:"bottom",collision:"flipfit"},source:function(e,n){r=t.ui.autocomplete.escapeRegex(e.term),e.includeFiles=Number(i),t.ajax({url:a,data:e,dataType:"json"}).done(function(e){var s=new RegExp("^"+r,"i"),a=t.grep(e,function(t){return s.test(t)});n(a)})},open:function(){t(s.$el).find(".ui-autocomplete li.ui-menu-item a").removeClass("ui-corner-all")}}).data("ui-autocomplete")._renderItem=function(e,n){var s=n.label,a=new RegExp("(?![^&;]+;)(?!<[^<>]*)("+r+")(?![^<>]*>)(?![^&;]+;)","gi");return s=s.replace(a,function(t){return""+t+""}),t("
  • ").data("ui-autocomplete-item",n).append(''+s+"").appendTo(e)}}return o},openDialog:function(){var t=this,e=this.openFileBrowser,n=this.currentPath;e(function(e){t.storedPath=e||n})}},watch:{currentPath:function(){this.lock||this.$emit("update",this.currentPath)}}}}).call(this,n(3))},function(t,e,n){var s=n(143);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("6ca3076c",s,!1,{})},function(t,e,n){"use strict";(function(t){e.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:function(){var e=this;t(this.$el).bfhlanguages({flags:this.flags,language:this.language,available:this.available,blank:this.blank}),t(this.$el).on("change",function(t){e.$emit("update-language",t.currentTarget.value)})},watch:{language:function(){t(this.$el).val(this.language)}}}}).call(this,n(3))},function(t,e,n){"use strict";(function(t){var s=n(77),a=n.n(s),i=n(11),o=n(4);e.a={name:"name-pattern",components:{ToggleButton:i.ToggleButton},props:{namingPattern:{type:String,default:""},namingPresets:{type:Array,default:function(){return[]}},multiEpStyle:{type:Number},multiEpStyles:{type:Array,default:function(){return[]}},animeNamingType:{type:Number,default:0},type:{type:String,default:""},enabled:{type:Boolean,default:!0},flagLoaded:{type:Boolean,default:!1}},data:function(){return{presets:[],availableMultiEpStyles:[],pattern:"",customName:"",showLegend:!1,namingExample:"",namingExampleMulti:"",isEnabled:!1,selectedMultiEpStyle:1,animeType:0,lastSelectedPattern:""}},methods:{getDateFormat:function(t){return a()(new Date,t)},testNaming:function(t,e,n){console.debug("Test pattern ".concat(t," for ").concat(e?"multi":"single ep"));var s={pattern:t,anime_type:n};e&&(s.multi=e);try{return o.c.get("config/postProcessing/testNaming",{params:s,timeout:2e4}).then(function(t){return t.data})}catch(t){return console.warn(t),""}},updatePatternSamples:function(){var t=this;this.customName||(this.customName=this.lastSelectedPattern);var e=this.isCustom?this.customName:this.pattern;e&&null!==this.animeType&&null!==this.selectedMultiEpStyle&&(this.testNaming(e,!1,this.animeType).then(function(e){t.namingExample=e+".ext"}),console.debug("Result of naming pattern check: "+this.namingExample),this.checkNaming(e,!1,this.animeType),this.isMulti&&(this.testNaming(e,this.selectedMultiEpStyle,this.animeType).then(function(e){t.namingExampleMulti=e+".ext"}),this.checkNaming(e,this.selectedMultiEpStyle,this.animeType)))},update:function(){var t=this;this.flagLoaded&&this.$nextTick(function(){t.$emit("change",{pattern:t.isCustom?t.customName:t.pattern,type:t.type,multiEpStyle:t.selectedMultiEpStyle,custom:t.isCustom,enabled:t.isEnabled,animeNamingType:Number(t.animeType)})})},checkNaming:function(e,n,s){if(e){var a={pattern:e,anime_type:s};n&&(a.multi=n);var i=this.$el,r=t(i);o.c.get("config/postProcessing/isNamingValid",{params:a,timeout:2e4}).then(function(t){"invalid"===t.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"===t.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(function(t){console.warn(t)})}},updateCustomName:function(){this.presetsPatterns.includes(this.pattern)||(this.customName=this.pattern),this.customName||(this.customName=this.lastSelectedPattern)}},computed:{isCustom:function(){return!!this.pattern&&(!this.presetsPatterns.includes(this.pattern)||"Custom..."===this.pattern)},selectedNamingPattern:{get:function(){var t,e=this;return this.isCustom?"Custom...":(t=e.presets.filter(function(t){return t.pattern===e.pattern})).length>0&&t[0].example},set:function(t){this.pattern=this.presets.filter(function(e){return e.example===t})[0].pattern}},presetsPatterns:function(){return this.presets.map(function(t){return t.pattern})},isMulti:function(){return Boolean(this.multiEpStyle)}},mounted:function(){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:function(){this.isEnabled=this.enabled},namingPattern:function(t,e){this.lastSelectedPattern=t||e,this.pattern=this.namingPattern,this.updateCustomName(),this.updatePatternSamples()},namingPresets:function(){this.presets=this.namingPresets},multiEpStyle:function(){this.selectedMultiEpStyle=this.multiEpStyle,this.updatePatternSamples()},multiEpStyles:function(){this.availableMultiEpStyles=this.multiEpStyles},animeNamingType:function(){this.animeType=this.animeNamingType,this.updatePatternSamples()},type:function(){this.isEnabled=!this.type&&this.enabled}}}}).call(this,n(3))},function(t,e,n){"use strict";(function(t){var s=n(4);e.a={name:"plot-info",props:{hasPlot:Boolean,showSlug:{type:String,required:!0},season:{type:String,required:!0},episode:{type:String,required:!0}},computed:{plotInfoClass:function(){return this.hasPlot?"plotInfo":"plotInfoNone"}},mounted:function(){var e=this.$el,n=this.hasPlot,a=this.showSlug,i=this.season,o=this.episode;if(!n)return!1;t(e).qtip({content:{text:function(t,e){return s.a.get("series/"+a+"/episodes/s"+i+"e"+o+"/description").then(function(t){e.set("content.text",t.data)}).catch(function(t){var n=t.response,s=n.status,a=n.statusText;e.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(3))},function(t,e,n){var s=n(158);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("2286310c",s,!1,{})},function(t,e,n){var s=n(160);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("64323d3c",s,!1,{})},function(t,e,n){"use strict";(function(t){e.a={name:"scroll-buttons",data:function(){return{showToTop:!1,showLeftRight:!1}},methods:{scrollTop:function(){(0,this.scrollTo)(t("body"))},scrollLeft:function(){t("div.horizontal-scroll").animate({scrollLeft:"-=153"},1e3,"easeOutQuad")},scrollRight:function(){t("div.horizontal-scroll").animate({scrollLeft:"+=153"},1e3,"easeOutQuad")},scrollTo:function(e){t("html, body").animate({scrollTop:t(e).offset().top},500,"linear")},initHorizontalScroll:function(){var e=t("div.horizontal-scroll").get();if(0!==e.length){var n=e.map(function(t){return t.scrollWidth>t.clientWidth}).indexOf(!0);this.showLeftRight=n>=0}}},mounted:function(){var e=this,n=this.initHorizontalScroll;n(),t(window).on("resize",function(){n()}),t(document).on("scroll",function(){t(window).scrollTop()>100?e.showToTop=!0:e.showToTop=!1})}}}).call(this,n(3))},function(t,e,n){var s=n(162);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("0faefb92",s,!1,{})},function(t,e,n){var s=n(164);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("2c8af634",s,!1,{})},function(t,e,n){var s=n(166);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("ea8d60b8",s,!1,{})},function(t,e,n){var s=n(168);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("f314dbbc",s,!1,{})},function(t,e,n){"use strict";(function(t){var s=n(2),a=n(5);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.a={name:"app-header",components:{AppLink:a.a},computed:function(t){for(var e=1;e0?" btn-danger":t.numWarnings>0?" btn-warning":""},linkVisible:function(){var t=this.config,e=this.notifiers,n=t.torrents,s=t.failedDownloads,a=t.subtitles,i=t.postProcessing,o=e.kodi,r=e.plex,l=e.emby;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:function(){var e=this.$el;t(e).on({mouseenter:function(e){var n=t(e.currentTarget);n.find(".dropdown-menu").stop(!0,!0).delay(200).fadeIn(500,function(){n.find(".dropdown-toggle").attr("aria-expanded","true")})},mouseleave:function(e){var n=t(e.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&&t(e).on("click",".dropdown-toggle",function(e){var n=t(e.currentTarget);"true"===n.attr("aria-expanded")&&(window.location.href=n.attr("href"))})},methods:{confirmDialog:function(e,n){var s={confirmButton:"Yes",cancelButton:"Cancel",dialogClass:"modal-dialog",post:!1,button:t(e.currentTarget),confirm:function(t){window.location.href=t[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?"}t.confirm(s,e)}}}}).call(this,n(3))},function(t,e,n){var s=n(170);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("ef1315ea",s,!1,{})},function(t,e,n){"use strict";(function(t){var s=n(4);e.a={name:"backstretch",props:{opacity:{type:Number},indexer:{type:String},id:{type:[String,Number]}},computed:{offset:function(){var e="90px";return 0===t("#sub-menu-container").length&&(e="50px"),t(window).width()<1280&&(e="50px"),e}},mounted:function(){var e=this.$el,n=this.opacity,a=this.indexer,i=this.id,o=this.offset,r=t(e),l=a+String(i);a&&i&&(t.backstretch(s.e+"/api/v2/series/"+l+"/asset/fanart?api_key="+s.b),r.css("top",o),r.css("opacity",n).fadeIn(500))}}}).call(this,n(3))},function(t,e,n){var s=n(172);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(8).default)("8bcb52aa",s,!1,{})},function(t,e,n){"use strict";(function(t){var s=n(2),a=n(11),i=n(5);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){if(null==t)return{};var n,s,a=function(t,e){if(null==t)return{};var n,s,a={},i=Object.keys(t);for(s=0;s=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}e.a={name:"config-post-processing",components:{AppLink:i.a,FileBrowser:i.g,NamePattern:i.i,SelectList:i.m,ToggleButton:a.ToggleButton},data:function(){return{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:function(t){this.postProcessing.syncFiles=t.map(function(t){return t.value})},onChangeAllowedExtensions:function(t){this.postProcessing.allowedExtensions=t.map(function(t){return t.value})},onChangeExtraScripts:function(t){this.postProcessing.extraScripts=t.map(function(t){return t.value})},saveNaming:function(t){this.configLoaded&&(this.postProcessing.naming.pattern=t.pattern,this.postProcessing.naming.multiEp=t.multiEpStyle)},saveNamingSports:function(t){this.configLoaded&&(this.postProcessing.naming.patternSports=t.pattern,this.postProcessing.naming.enableCustomNamingSports=t.enabled)},saveNamingAbd:function(t){this.configLoaded&&(this.postProcessing.naming.patternAirByDate=t.pattern,this.postProcessing.naming.enableCustomNamingAirByDate=t.enabled)},saveNamingAnime:function(t){this.configLoaded&&(this.postProcessing.naming.patternAnime=t.pattern,this.postProcessing.naming.animeMultiEp=t.multiEpStyle,this.postProcessing.naming.animeNamingType=t.animeNamingType,this.postProcessing.naming.enableCustomNamingAnime=t.enabled)},save:function(){var t=this,e=this.$store,n=this.postProcessing,s=this.metadataProviders;if(this.configLoaded){this.saving=!0;var a=Object.assign({},{postProcessing:n,metadata:{metadataProviders:s}});null===a.postProcessing.showDownloadDir&&(a.postProcessing.showDownloadDir="");var i=a.postProcessing,o=(i.multiEpStrings,i.reflinkAvailable,r(i,["multiEpStrings","reflinkAvailable"]));a.postProcessing=o;e.dispatch("setConfig",{section:"main",config:a}).then(function(){t.$snotify.success("Saved Post-Processing config","Saved",{timeout:5e3})}).catch(function(){t.$snotify.error("Error while trying to save Post-Processing config","Error")})}},getFirstEnabledMetadataProvider:function(){var t=this.metadataProviders,e=Object.values(t).find(function(t){return t.showMetadata||t.episodeMetadata});return void 0===e?"kodi":e.id}},computed:function(t){for(var e=1;e-1}})},500)),t(document.body).on("change","#postersort",function(){t(".show-grid").isotope({sortBy:t(this).val()}),t.get(t(this).find("option[value="+t(this).val()+"]").attr("data-sort"))}),t(document.body).on("change","#postersortdirection",function(){t(".show-grid").isotope({sortAscending:"1"===t(this).val()}),t.get(t(this).find("option[value="+t(this).val()+"]").attr("data-sort"))}),t(document.body).on("change","#showRootDir",function(){o.a.patch("config/main",{selectedRootIndex:parseInt(t(this).val(),10)}).then(function(t){console.info(t),window.location.reload()}).catch(function(t){console.info(t)})});var n=new LazyLoad({threshold:500});window.addEventListener("load",function(){t("#showTabs").tabs({activate:function(){t(".show-grid").isotope("layout")}}),t(".progressbar").each(function(){var e=t(this).data("progress-percentage"),n=100===e?100:e>80?80:e>60?60:e>40?40:20;t(this).progressbar({value:e}),t(this).data("progress-text")&&t(this).append('
    '+t(this).data("progress-text")+"
    "),t(this).find(".ui-progressbar-value").addClass("progress-"+n)}),t("img#network").on("error",function(){t(this).parent().text(t(this).attr("alt")),t(this).remove()}),t("#showListTableSeries:has(tbody tr), #showListTableAnime:has(tbody tr)").tablesorter({debug:!1,sortList:[[7,1],[2,0]],textExtraction:{0:function(e){return t(e).find("time").attr("datetime")},1:function(e){return t(e).find("time").attr("datetime")},3:function(e){return t(e).find("span").prop("title").toLowerCase()},4:function(e){return t(e).find("a[data-indexer-name]").attr("data-indexer-name")},5:function(e){return t(e).find("span").text().toLowerCase()},6:function(e){return t(e).find("span:first").text()},7:function(e){return t(e).data("show-size")},8:function(e){return t(e).find("img").attr("alt")},10:function(e){return t(e).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:function(t,e,n){var s=!1,a=Math.floor(e%1*1e3);if(""===n)s=!0;else{var i=n.match(/(<|<=|>=|>)\s+(\d+)/i);i&&("<"===i[1]?a="===i[1]?a>=parseInt(i[2],10)&&(s=!0):">"===i[1]&&a>parseInt(i[2],10)&&(s=!0)),(i=n.match(/(\d+)\s(-|to)\s+(\d+)/i))&&("-"!==i[2]&&"to"!==i[2]||a>=parseInt(i[1],10)&&a<=parseInt(i[3],10)&&(s=!0)),(i=n.match(/(=)?\s?(\d+)\s?(=)?/i))&&("="!==i[1]&&"="!==i[3]||parseInt(i[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",function(){n.handleScroll()}).bind("filterEnd",function(){n.handleScroll()}),t(".show-grid").imagesLoaded(function(){e.initializePosterSizeSlider(),t(".loading-spinner").hide(),t(".show-grid").show().isotope({itemSelector:".show-container",sortBy:MEDUSA.config.posterSortby,sortAscending:MEDUSA.config.posterSortdir,layoutMode:"masonry",masonry:{isFitWidth:!0},getSortData:{name:function(e){var n=t(e).attr("data-name")||"";return(MEDUSA.config.sortArticle?n:n.replace(/^((?:The|A|An)\s)/i,"")).toLowerCase()},network:"[data-network]",date:function(e){var n=t(e).attr("data-date");return n.length&&parseInt(n,10)||Number.POSITIVE_INFINITY},progress:function(e){var n=t(e).attr("data-progress");return n.length&&parseInt(n,10)||Number.NEGATIVE_INFINITY},indexer:function(e){var n=t(e).attr("data-indexer");return void 0===n?Number.NEGATIVE_INFINITY:n.length&&parseInt(n,10)||Number.NEGATIVE_INFINITY}}}).on("layoutComplete arrangeComplete removeComplete",function(){n.update(),n.handleScroll()});var s=null;t(".show-container").on("mouseenter",function(){var e=t(this);"none"===e.find(".show-details").css("display")&&(s=setTimeout(function(){s=null,t("#posterPopup").remove();var n=e.clone().attr({id:"posterPopup"}),a=e.offset().left,i=e.offset().top;n.css({position:"absolute",margin:0,top:i,left:a}),n.find(".show-details").show(),n.on("mouseleave",function(){t(this).remove()}),n.css({zIndex:"9999"}),n.appendTo("body");var o=i+e.height()/2-219,r=a+e.width()/2-125,l=t(window).scrollTop(),c=t(window).scrollLeft(),u=l+t(window).innerHeight(),d=c+t(window).innerWidth();ou&&(o=u-438-5),r+250+5>d&&(r=d-250-5),n.animate({top:o,left:r,width:250,height:438})},300))}).on("mouseleave",function(){null!==s&&clearTimeout(s)}),n.update(),n.handleScroll()}),t("#popover").popover({placement:"bottom",html:!0,content:'
    '}).on("shown.bs.popover",function(){t.tablesorter.columnSelector.attachTo(t("#showListTableSeries"),"#popover-target"),MEDUSA.config.animeSplitHome&&t.tablesorter.columnSelector.attachTo(t("#showListTableAnime"),"#popover-target")});var s=MEDUSA.config.rootDirs,a=MEDUSA.config.selectedRootIndex;if(s){var i=s.slice(1);if(i.length>=2){t("#showRoot").show();var r=["All Folders"].concat(i);t.each(r,function(e,n){t("#showRootDir").append(t("