1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 22:52:32 +01:00
flox/public/assets/app.js
2018-04-25 18:41:34 +02:00

1 line
101 KiB
JavaScript

webpackJsonp([0],[,function(t,e){t.exports=function(t,e,n,i,r,a){var o,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(o=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=i),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:o,exports:s,options:u}}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(77),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{scrollToTop:function(){function t(a){i+=Math.PI/(e/(a-r)),i>=Math.PI&&window.scrollTo(0,0),0!==window.scrollY&&(window.scrollTo(0,Math.round(n+n*Math.cos(i))),r=a,window.requestAnimationFrame(t))}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=window.scrollY/2,i=0,r=performance.now();window.requestAnimationFrame(t)},suggestionsUri:function(t){return"/suggestions?for="+t.tmdb_id+"&name="+t.title+"&type="+t.media_type},lang:function(t){return JSON.parse(config.language)[t]||t},formatLocaleDate:function(t){var e=navigator.language||navigator.userLanguage;return t.toLocaleDateString(e,{year:"2-digit",month:"2-digit",day:"2-digit"})},isSubpage:function(){return this.$route.name.includes("subpage")}},computed:{displayHeader:function(){return!this.isSubpage()||this.itemLoadedSubpage}}}},,function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(36)("wks"),r=n(24),a=n(5).Symbol,o="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:r)("Symbol."+t))}).store=i},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},,function(t,e,n){var i=n(10),r=n(49),a=n(31),o=Object.defineProperty;e.f=n(12)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),r)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(15);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(5),r=n(7),a=n(17),o=n(13),s=function(t,e,n){var c,u,l,f=t&s.F,d=t&s.G,p=t&s.S,h=t&s.P,m=t&s.B,v=t&s.W,_=d?r:r[e]||(r[e]={}),g=_.prototype,b=d?i:p?i[e]:(i[e]||{}).prototype;d&&(n=e);for(c in n)(u=!f&&b&&void 0!==b[c])&&c in _||(l=u?b[c]:n[c],_[c]=d&&"function"!=typeof b[c]?n[c]:m&&u?a(l,i):v&&b[c]==l?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?a(Function.call,l):l,h&&((_.virtual||(_.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&o(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){t.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(9),r=n(19);t.exports=n(12)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(51),r=n(32);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(22);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(50),r=n(37);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},,function(t,e,n){"use strict";var i=n(122)(!0);n(60)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){t.exports=!0},function(t,e,n){var i=n(9).f,r=n(14),a=n(6)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){var i=n(15),r=n(5).document,a=i(r)&&i(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},function(t,e,n){var i=n(15);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(34),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(36)("keys"),r=n(24);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(5),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(32);t.exports=function(t){return Object(i(t))}},,function(t,e,n){var i=n(66),r=n(6)("iterator"),a=n(21);t.exports=n(7).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||a[i(t)]}},function(t,e,n){n(144);for(var i=n(5),r=n(13),a=n(21),o=n(6)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=i[u],f=l&&l.prototype;f&&!f[o]&&r(f,o,u),a[u]=a.Array}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(148),a=i(r),o=n(4),s=i(o);e.default={methods:{addToWatchlist:function(t){var e=this;this.auth&&(this.rated=!0,s.default.post(config.api+"/watchlist",{item:t}).then(function(t){e.setItem(t.data),e.rated=!1},function(t){alert(t.message),e.rated=!1}))},genreAsString:function(t){return"object"==(void 0===t?"undefined":(0,a.default)(t))?t.map(function(t){return t.name}).join(", "):t},displaySeason:function(t){return"tv"==t.media_type&&null!=t.rating&&t.tmdb_id&&!t.watchlist},openSeasonModal:function(t){var e={tmdb_id:t.tmdb_id,title:t.title};this.fetchEpisodes(e),this.OPEN_MODAL({type:"season",data:e})},addZero:function(t){return t<10?"0"+t:t},intToFloat:function(t){return t?parseFloat(t).toFixed(1):null}},computed:{season:function(){return this.latestEpisode?this.addZero(this.latestEpisode.season_number):"01"},episode:function(){return this.latestEpisode?this.addZero(this.latestEpisode.episode_number):"01"}}}},function(t,e,n){e.f=n(6)},function(t,e,n){var i=n(5),r=n(7),a=n(28),o=n(44),s=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(170),r=n.n(i),a=n(173),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},,function(t,e,n){"use strict";function i(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=r(e),this.reject=r(n)}var r=n(22);t.exports.f=function(t){return new i(t)}},function(t,e,n){t.exports=!n(12)&&!n(18)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(14),r=n(16),a=n(81)(!1),o=n(35)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),c=0,u=[];for(n in s)n!=o&&i(s,n)&&u.push(n);for(;e.length>c;)i(s,n=e[c++])&&(~a(u,n)||u.push(n));return u}},function(t,e,n){var i=n(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},,,function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),a=i(r),o=n(0),s=i(o),c=n(94),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c),l=n(114),f=i(l);a.default.use(s.default),e.default=new s.default.Store({state:{filters:["last seen","own rating","title","release","tmdb rating","imdb rating"],showFilters:!1,items:[],searchTitle:"",userFilter:"",userSortDirection:"",loading:!1,clickedMoreLoading:!1,paginator:null,colorScheme:"",overlay:!1,modalData:{},loadingModalData:!0,seasonActiveModal:1,modalType:"",itemLoadedSubpage:!1},mutations:f.default,actions:u})},,,,,,function(t,e,n){"use strict";var i=n(28),r=n(11),a=n(61),o=n(13),s=n(14),c=n(21),u=n(123),l=n(29),f=n(125),d=n(6)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,m,v,_,g){u(n,e,m);var b,y,S,E=function(t){if(!p&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",T="values"==v,O=!1,A=t.prototype,x=A[d]||A["@@iterator"]||v&&A[v],C=x||E(v),M=v?T?E("entries"):C:void 0,I="Array"==e?A.entries||x:x;if(I&&(S=f(I.call(new t)))!==Object.prototype&&S.next&&(l(S,w,!0),i||s(S,d)||o(S,d,h)),T&&x&&"values"!==x.name&&(O=!0,C=function(){return x.call(this)}),i&&!g||!p&&!O&&A[d]||o(A,d,C),c[e]=C,c[w]=h,v)if(b={values:T?C:E("values"),keys:_?C:E("keys"),entries:M},g)for(y in b)y in A||a(A,y,b[y]);else r(r.P+r.F*(p||O),e,b);return b}},function(t,e,n){t.exports=n(13)},function(t,e,n){var i=n(10),r=n(124),a=n(37),o=n(35)("IE_PROTO"),s=function(){},c=function(){var t,e=n(30)("iframe"),i=a.length;for(e.style.display="none",n(63).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c.prototype[a[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[o]=t):n=c(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(5).document;t.exports=i&&i.documentElement},function(t,e,n){var i=n(10);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&i(a.call(t)),e}}},function(t,e,n){var i=n(21),r=n(6)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[r]===t)}},function(t,e,n){var i=n(20),r=n(6)("toStringTag"),a="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),r))?n:a?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var i=n(6)("iterator"),r=!1;try{var a=[7][i]();a.return=function(){r=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var a=[7],o=a[i]();o.next=function(){return{done:n=!0}},a[i]=function(){return o},t(a)}catch(t){}return n}},function(t,e,n){var i=n(50),r=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e){},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(171),r=n.n(i),a=n(172),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){var i=n(10),r=n(22),a=n(6)("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},function(t,e,n){var i,r,a,o=n(17),s=n(186),c=n(63),u=n(30),l=n(5),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,m=l.Dispatch,v=0,_={},g=function(){var t=+this;if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},b=function(t){g.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++v]=function(){s("function"==typeof t?t:Function(t),e)},i(v),v},p=function(t){delete _[t]},"process"==n(20)(f)?i=function(t){f.nextTick(o(g,t,1))}:m&&m.now?i=function(t){m.now(o(g,t,1))}:h?(r=new h,a=r.port2,r.port1.onmessage=b,i=o(a.postMessage,a,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(i=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):i="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(o(g,t,1),0)}),t.exports={set:d,clear:p}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(10),r=n(15),a=n(48);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=n(2),a=i(r),o=n(83),s=(i(o),n(84)),c=i(s);n(86);var u=n(26),l=i(u),f=n(0),d=n(89),p=i(d),h=n(131),m=i(h),v=n(134),_=i(v),g=n(138),b=i(g),y=n(166),S=i(y),E=n(54),w=i(E);n(214),l.default.use(c.default),new l.default({store:w.default,router:S.default,created:function(){var t=this;this.checkForUserColorScheme(),this.checkForUserFilter(),this.checkForUserSortDirection(),document.body.onclick=function(e){e.target!==document.querySelector(".current-filter")&&t.showFilters&&t.SET_SHOW_FILTERS(!1)}},computed:(0,a.default)({},(0,f.mapState)({colorScheme:function(t){return t.colorScheme},filters:function(t){return t.filters},showFilters:function(t){return t.showFilters}})),components:{SiteHeader:p.default,SiteFooter:m.default,Login:_.default,Modal:b.default},methods:(0,a.default)({},(0,f.mapActions)(["setColorScheme"]),(0,f.mapMutations)(["SET_USER_FILTER","SET_SHOW_FILTERS","SET_USER_SORT_DIRECTION"]),{checkForUserColorScheme:function(){localStorage.getItem("color")||localStorage.setItem("color","dark"),this.setColorScheme(localStorage.getItem("color"))},checkForUserFilter:function(){var t=localStorage.getItem("filter");t&&this.filters.includes(t)||localStorage.setItem("filter",this.filters[0]),this.SET_USER_FILTER(localStorage.getItem("filter"))},checkForUserSortDirection:function(){localStorage.getItem("sort-direction")||localStorage.setItem("sort-direction","desc"),this.SET_USER_SORT_DIRECTION(localStorage.getItem("sort-direction"))}})}).$mount("#app")},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79),t.exports=n(7).Object.assign},function(t,e,n){var i=n(11);i(i.S+i.F,"Object",{assign:n(80)})},function(t,e,n){"use strict";var i=n(23),r=n(38),a=n(25),o=n(39),s=n(51),c=Object.assign;t.exports=!c||n(18)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i})?function(t,e){for(var n=o(t),c=arguments.length,u=1,l=r.f,f=a.f;c>u;)for(var d,p=s(arguments[u++]),h=l?i(p).concat(l(p)):i(p),m=h.length,v=0;m>v;)f.call(p,d=h[v++])&&(n[d]=p[d]);return n}:c},function(t,e,n){var i=n(16),r=n(33),a=n(82);t.exports=function(t){return function(e,n,o){var s,c=i(e),u=r(c.length),l=a(o,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(34),r=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):a(t,e)}},function(t,e){},function(t,e,n){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=137)}({0:function(t,e){t.exports=function(t,e,n,i,r,a){var o,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(o=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=i),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:o,exports:s,options:u}}},1:function(t,e){t.exports=n(85)},137:function(t,e,n){t.exports=n(138)},138:function(t,e,n){"use strict";e.__esModule=!0;var i=n(139),r=function(t){return t&&t.__esModule?t:{default:t}}(i);r.default.install=function(t){t.component(r.default.name,r.default)},e.default=r.default},139:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(140),r=n.n(i),a=n(141),o=n(0),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},140:function(t,e,n){"use strict";e.__esModule=!0;var i=n(1),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ElCheckbox",mixins:[r.default],inject:{elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled:this.disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup?this._checkboxGroup.checkboxGroupSize||t:t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick(function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)}}},141:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{role:"checkbox","aria-checked":t.indeterminate?"mixed":t.isChecked,"aria-disabled":t.isDisabled,id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{"aria-checked":"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,i=e.target,r=i.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.model=n.concat([null])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=r},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,i=e.target,r=!!i.checked;if(Array.isArray(n)){var a=t.label,o=t._i(n,a);i.checked?o<0&&(t.model=n.concat([a])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=r},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])},r=[],a={render:i,staticRenderFns:r};e.a=a}})},function(t,e,n){"use strict";function i(t,e,n){this.$children.forEach(function(r){r.$options.componentName===t?r.$emit.apply(r,[e].concat(n)):i.apply(r,[t,e].concat([n]))})}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){for(var i=this.$parent||this.$root,r=i.$options.componentName;i&&(!r||r!==t);)(i=i.$parent)&&(r=i.$options.componentName);i&&i.$emit.apply(i,[e].concat(n))},broadcast:function(t,e,n){i.call(this,t,e,n)}}}},function(t,e){},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(90),r=n.n(i),a=n(129),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(91),s=i(o),c=n(3),u=i(c),l=n(54),f=(i(l),n(0));e.default={mixins:[u.default],data:function(){return{sticky:!1,enableStickyOn:100}},mounted:function(){this.initSticky()},computed:(0,a.default)({},(0,f.mapState)({itemLoadedSubpage:function(t){return t.itemLoadedSubpage}}),{root:function(){return config.uri}}),methods:(0,a.default)({},(0,f.mapActions)(["loadItems"]),{initSticky:function(){var t=this;window.onscroll=function(){t.sticky=document.body.scrollTop+document.documentElement.scrollTop>t.enableStickyOn}},refresh:function(t){var e=this.$route.name;e===t&&this.loadItems({name:e})}}),components:{Search:s.default}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(92),r=n.n(i),a=n(93),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(3),s=i(o),c=n(0);e.default={mixins:[s.default],computed:(0,a.default)({},(0,c.mapState)({itemLoadedSubpage:function(t){return t.itemLoadedSubpage}}),{suggestionsFor:function(){return this.$route.query.name},title:{get:function(){return this.$store.state.searchTitle},set:function(t){this.$store.commit("SET_SEARCH_TITLE",t)}},placeholder:function(){return config.auth?this.lang("search or add"):this.lang("search")}}),methods:{search:function(){""!==this.title&&this.$router.push({path:"/search?q="+this.title})}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"search-wrap"},[n("div",{staticClass:"wrap"},[n("form",{staticClass:"search-form",on:{submit:function(e){e.preventDefault(),t.search()}}},[n("i",{staticClass:"icon-search"}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,autofocus:""},domProps:{value:t.title},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})])]),t._v(" "),t.suggestionsFor?n("div",{staticClass:"suggestions-for"},[n("div",{staticClass:"wrap"},[t._v("\n "+t._s(t.lang("suggestions for"))+" "),n("router-link",{attrs:{to:{name:"subpage-"+t.$route.query.type,params:{tmdbId:t.$route.query.for,slug:t.$route.query.name}}}},[t._v(t._s(t.suggestionsFor))])],1)]):t._e()])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=t.state,i=t.commit;i("SET_LOADING",!0),(0,p.default)(config.api+"/items/"+e.name+"/"+n.userFilter+"/"+n.userSortDirection).then(function(t){var e=t.data,n=e.data,r=e.next_page_url;i("SET_ITEMS",n),i("SET_PAGINATOR",r),setTimeout(function(){i("SET_LOADING",!1)},500)},function(t){404===t.status&&(window.location.href=config.url)})}function a(t,e){var n=t.commit;n("SET_CLICKED_LOADING",!0),(0,p.default)(e).then(function(t){var e=t.data,i=e.data,r=e.next_page_url;n("SET_PAGINATOR",r),setTimeout(function(){n("PUSH_TO_ITEMS",i),n("SET_CLICKED_LOADING",!1)},500)})}function o(t,e){(0,t.commit)("SET_SEARCH_TITLE",e)}function s(t,e){var n=t.commit;document.body.classList.remove("dark","light"),localStorage.setItem("color",e),document.body.classList.add(e),n("SET_COLOR_SCHEME",e)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,f.default)(t),document.title=e?e+" - Flox":"Flox"}function u(t,e){var n=t.commit;n("SET_LOADING_MODAL_DATA",!0),(0,p.default)(config.api+"/episodes/"+e.tmdb_id).then(function(t){var i=t.data.next_episode;n("SET_MODAL_DATA",{title:e.title,episodes:t.data.episodes,spoiler:t.data.spoiler}),n("SET_LOADING_MODAL_DATA",!1),i&&(n("SET_SEASON_ACTIVE_MODAL",i.season_number),setTimeout(function(){var t=document.querySelector(".modal-content"),e=document.querySelector("[data-episode='"+i.episode_number+"']");t.scrollTop=e.offsetTop-e.offsetHeight},10))})}Object.defineProperty(e,"__esModule",{value:!0});var l=n(95),f=i(l);e.loadItems=r,e.loadMoreItems=a,e.setSearchTitle=o,e.setColorScheme=s,e.setPageTitle=c,e.fetchEpisodes=u;var d=n(4),p=i(d)},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){if(null==t)throw new TypeError("Cannot destructure undefined")}},,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r,a=n(115),o=i(a),s=n(119),c=i(s),u=n(128),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(u);e.default=(r={},(0,o.default)(r,l.SET_SEARCH_TITLE,function(t,e){t.searchTitle=e}),(0,o.default)(r,l.SET_USER_FILTER,function(t,e){t.userFilter=e}),(0,o.default)(r,l.SET_USER_SORT_DIRECTION,function(t,e){t.userSortDirection=e}),(0,o.default)(r,l.SET_ITEMS,function(t,e){t.items=e}),(0,o.default)(r,l.PUSH_TO_ITEMS,function(t,e){var n;(n=t.items).push.apply(n,(0,c.default)(e))}),(0,o.default)(r,l.SET_LOADING,function(t,e){t.loading=e}),(0,o.default)(r,l.SET_PAGINATOR,function(t,e){t.paginator=e}),(0,o.default)(r,l.SET_CLICKED_LOADING,function(t,e){t.clickedMoreLoading=e}),(0,o.default)(r,l.SET_COLOR_SCHEME,function(t,e){t.colorScheme=e}),(0,o.default)(r,l.CLOSE_MODAL,function(t){t.modalType=!1,t.overlay=!1,t.seasonActiveModal=1,document.body.classList.remove("open-modal")}),(0,o.default)(r,l.OPEN_MODAL,function(t,e){t.overlay=!0,t.modalType=e.type,t.modalData=e.data,document.body.classList.add("open-modal")}),(0,o.default)(r,l.SET_LOADING_MODAL_DATA,function(t,e){t.loadingModalData=e}),(0,o.default)(r,l.SET_SEASON_ACTIVE_MODAL,function(t,e){t.seasonActiveModal=e}),(0,o.default)(r,l.SET_MODAL_DATA,function(t,e){t.modalData=e}),(0,o.default)(r,l.SET_ITEM_LOADED_SUBPAGE,function(t,e){t.itemLoadedSubpage=e}),(0,o.default)(r,l.SET_SHOW_FILTERS,function(t,e){t.showFilters=e}),r)},function(t,e,n){"use strict";e.__esModule=!0;var i=n(116),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(117),__esModule:!0}},function(t,e,n){n(118);var i=n(7).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(11);i(i.S+i.F*!n(12),"Object",{defineProperty:n(9).f})},function(t,e,n){"use strict";e.__esModule=!0;var i=n(120),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,r.default)(t)}},function(t,e,n){t.exports={default:n(121),__esModule:!0}},function(t,e,n){n(27),n(126),t.exports=n(7).Array.from},function(t,e,n){var i=n(34),r=n(32);t.exports=function(t){return function(e,n){var a,o,s=String(r(e)),c=i(n),u=s.length;return c<0||c>=u?t?"":void 0:(a=s.charCodeAt(c),a<55296||a>56319||c+1===u||(o=s.charCodeAt(c+1))<56320||o>57343?t?s.charAt(c):a:t?s.slice(c,c+2):o-56320+(a-55296<<10)+65536)}}},function(t,e,n){"use strict";var i=n(62),r=n(19),a=n(29),o={};n(13)(o,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var i=n(9),r=n(10),a=n(23);t.exports=n(12)?Object.defineProperties:function(t,e){r(t);for(var n,o=a(e),s=o.length,c=0;s>c;)i.f(t,n=o[c++],e[n]);return t}},function(t,e,n){var i=n(14),r=n(39),a=n(35)("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},function(t,e,n){"use strict";var i=n(17),r=n(11),a=n(39),o=n(64),s=n(65),c=n(33),u=n(127),l=n(41);r(r.S+r.F*!n(67)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,f,d=a(t),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,_=0,g=l(d);if(v&&(m=i(m,h>2?arguments[2]:void 0,2)),void 0==g||p==Array&&s(g))for(e=c(d.length),n=new p(e);e>_;_++)u(n,_,v?m(d[_],_):d[_]);else for(f=g.call(d),n=new p;!(r=f.next()).done;_++)u(n,_,v?o(f,m,[r.value,_],!0):r.value);return n.length=_,n}})},function(t,e,n){"use strict";var i=n(9),r=n(19);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SET_SEARCH_TITLE="SET_SEARCH_TITLE",e.SET_USER_FILTER="SET_USER_FILTER",e.SET_USER_SORT_DIRECTION="SET_USER_SORT_DIRECTION",e.SET_ITEMS="SET_ITEMS",e.PUSH_TO_ITEMS="PUSH_TO_ITEMS",e.SET_LOADING="SET_LOADING",e.SET_PAGINATOR="SET_PAGINATOR",e.SET_CLICKED_LOADING="SET_CLICKED_LOADING",e.SET_COLOR_SCHEME="SET_COLOR_SCHEME",e.CLOSE_MODAL="CLOSE_MODAL",e.OPEN_MODAL="OPEN_MODAL",e.SET_SEASON_ACTIVE_MODAL="SET_SEASON_ACTIVE_MODAL",e.SET_LOADING_MODAL_DATA="SET_LOADING_MODAL_DATA",e.SET_MODAL_DATA="SET_MODAL_DATA",e.SET_ITEM_LOADED_SUBPAGE="SET_ITEM_LOADED_SUBPAGE",e.SET_SHOW_FILTERS="SET_SHOW_FILTERS"},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header-wrap",class:{active:t.displayHeader,sticky:t.sticky}},[i("header",[i("div",{staticClass:"wrap"},[i("router-link",{staticClass:"logo",attrs:{to:"/"},nativeOn:{click:function(e){t.refresh("home")}}},[i("img",{attrs:{src:n(130),alt:"Flox",width:"108",height:"32"}})]),t._v(" "),i("ul",{staticClass:"site-nav"},[i("li",[i("router-link",{attrs:{to:"/trending"},nativeOn:{click:function(e){t.refresh("trending")}}},[t._v(t._s(t.lang("trending")))])],1),t._v(" "),i("li",[i("router-link",{attrs:{to:"/now-playing"},nativeOn:{click:function(e){t.refresh("now-playing")}}},[t._v(t._s(t.lang("now playing")))])],1),t._v(" "),i("li",[i("router-link",{attrs:{to:"/upcoming"},nativeOn:{click:function(e){t.refresh("upcoming")}}},[t._v(t._s(t.lang("upcoming")))])],1)]),t._v(" "),i("ul",{staticClass:"site-nav-second"},[i("li",[i("router-link",{attrs:{to:"/watchlist",exact:""},nativeOn:{click:function(e){t.refresh("watchlist")}}},[t._v(t._s(t.lang("watchlist")))])],1),t._v(" "),i("li",[i("router-link",{attrs:{to:"/tv",exact:""},nativeOn:{click:function(e){t.refresh("tv")}}},[t._v(t._s(t.lang("tv")))])],1),t._v(" "),i("li",[i("router-link",{attrs:{to:"/movies",exact:""},nativeOn:{click:function(e){t.refresh("movie")}}},[t._v(t._s(t.lang("movies")))])],1)])],1)]),t._v(" "),i("search")],1)},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAgCAMAAADAIm3oAAAAilBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2N2iNAAAALXRSTlMA3VUzEYcLwLuZj0R37swdFCks88gh69G2q19TA8M5+Ahm2KiinWg75n597FBo4OziAAACOklEQVRIx71Xf3eqMAxtocUCFlDHlCnqfvq29/L9v947FtLMyCadx90/PBporklvL0H8EMlsrZvVcrlq9HqWiFuielstwGOxeqvErVB9SGCQHyPpcnkG3YXFINZPMICnNd1RyJStia3M3ZcIzqBdeJAsyeALZIlPDRCdriqgp4/ARgzxl2SlAY+7V61f7+i3KfGuKdj686oUpEIylvWbcOlz32fzxFU6z+49u2czYAQhB8hFMJlqMe9kTtH5BKOt6kO1hSmtkqBFMNnmGbO+JCf7+ILx500fegSIqcxChJNNfV0JUw3WRvU0UHheW4eTbRe4X9hDtS37TuK+LbbUuxSl+SiCyTYTL3IMzUDqrsjMF71hqiigEeFkD5hvN/NesgOYKEe7w6sPeFGDVcdPqcLJ1NL/+T3G/vk6977spaKTbLC+QDIqDFLPXxx//im7c0ulkZFMcecCycgqtCOqVVSAg9OEJmM5Ua/kWUEyjCA77FCbnKz9bImQczIOOaKNNYp9qI0kSDCczMYMFwWCYv9WIEpCg7Z1pfQrl35Q+mRTaFtXH+pESxg81CSPGG3rCrv625/q8nAoeythdoU2hbZ1jRGb/emFvWFG3B1pVEmEsRs9YkQKVuG3ENcnVJcenhWthpzVeLOxoLZup8i2gsn4wNMeB56WDTwdDC4mXQaQBY1ylJ241QUybixqxJDK+0ZdvUDGoVEm7+fj93snDbQpc54swvF73FSuR75YaClrni2V2MjfemX6D0AKmiHCtfAOAAAAAElFTkSuQmCC"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(132),r=n.n(i),a=n(133),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(0),s=n(3),c=i(s);e.default={mixins:[c.default],data:function(){return{auth:config.auth,logout:config.api+"/logout",login:config.url+"/login",settings:config.url+"/settings"}},computed:(0,a.default)({},(0,o.mapState)({colorScheme:function(t){return t.colorScheme},loading:function(t){return t.loading}})),methods:(0,a.default)({},(0,o.mapActions)(["setColorScheme"]),{toggleColorScheme:function(){var t="light"==this.colorScheme?"dark":"light";this.setColorScheme(t)}})}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:" ! loading"}]},[n("div",{staticClass:"wrap"},[t._m(0),t._v(" "),n("span",{staticClass:"footer-actions"},[n("span",{staticClass:"icon-constrast",attrs:{title:t.lang("change color")},on:{click:function(e){t.toggleColorScheme()}}},[n("i")]),t._v(" "),n("a",{staticClass:"icon-github",attrs:{href:"https://github.com/devfake/flox",target:"_blank"}})]),t._v(" "),n("div",{staticClass:"sub-links"},[t.auth?n("a",{staticClass:"login-btn",attrs:{href:t.settings}},[t._v(t._s(t.lang("settings")))]):t._e(),t._v(" "),t.auth?n("a",{staticClass:"login-btn",attrs:{href:t.logout}},[t._v(t._s(t.lang("logout")))]):t._e(),t._v(" "),t.auth?t._e():n("a",{staticClass:"login-btn",attrs:{href:t.login}},[t._v("Login")])])])])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"attribution"},[n("a",{attrs:{href:"https://www.themoviedb.org/",target:"_blank"}},[n("i",{staticClass:"icon-tmdb"})]),t._v("\n This product uses the TMDb API but is not endorsed or certified by TMDb\n ")])}],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(135),r=n.n(i),a=n(136),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),a=i(r),o=n(3),s=i(o);e.default={mixins:[s.default],created:function(){document.body.classList.add("dark")},data:function(){return{username:"",password:"",error:!1,errorShake:!1}},methods:{login:function(){var t=this;this.error=!1;var e=this.username,n=this.password;a.default.post(config.api+"/login",{username:e,password:n}).then(function(t){window.location.href=config.url},function(e){t.error=!0,t.errorShake=!0,setTimeout(function(){t.errorShake=!1},500)})}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("span",{staticClass:"top-bar"}),t._v(" "),i("div",{staticClass:"login-wrap"},[i("img",{staticClass:"logo-login",attrs:{src:n(137),alt:"Flox",width:"108",height:"32"}}),t._v(" "),i("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.login()}}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",placeholder:t.lang("username"),autofocus:""},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}}),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:t.lang("password")},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),i("span",{staticClass:"login-error"},[t.error?i("span",[t._v(t._s(t.lang("login error")))]):t._e()]),t._v(" "),i("input",{class:t.errorShake?"shake-horizontal shake-constant":"",attrs:{type:"submit"},domProps:{value:t.lang("login button")}})])])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAgCAMAAADAIm3oAAACE1BMVEUAAACKW/+cU+yaVO6KW/7GQsSQWPnnNKToNKOSV/e8Rs7QPruMWv2PWfqhUejGQsXEQsaqTeDoNKS7Rs+TV/bkNae/RcvtMZ6+RczGQsWVVvSlT+SrTd7sMp/wMJvtMZ7nNKS/RcvNP77QPrvTPbjNP73uMZ2RWPigUenhN6u6RtDSPbnGQsSwStqxStnARMrPPrvVPLbLQL/GQsTqM6LRPbrGQsTwMJy4R9LLQL/TPLe0SdbKQMHWO7XnNKStTN3eOK7QPruSV/fEQ8azSdfjNqjoNKPARMvmNaXmNKXEQsbdOK+6RtDuMZ29Rc3sMp/ARMnrM6DiNqntMZ3vMJy5R9HTPbiwS9m/RcvbObCKW/66R9DRPbnLQL+JW//IQcKtTNzdOK7oNKPfN6zXO7PJQcHYOrLKQMC1SdTqM6LEQ8axStjZOrG8Rs25R9HjNqjmNKWWVvLTPbi6R9CwS9m8Rs3PPrvlNabrMqDjNqivS9rNP73cOa/ARMrARMnGQsPBRMicU+zEQ8bfOKztMZ23SNPVPLa1SdXYOrPKQMG6R9GbU+2JW//RPbq8Rs7EQ8fBRMnPPrzWO7SwS9rGQsOyStfIQcLTPbixStjFQsXZOrHLQL/vMZyTV/boNKPrM6HtMZ6MWv2+RczbObDiNqmPWPm/RcvNP73cOa/lNafmNKWtTN2KW/6kUOaeUurdOK6pTeCVJkKBAAAAhXRSTlMAVd1V3QszETNVER3d3TMDhzMhFN27U0QpCN3d3d3dzEQsLCkU7+7d3d3b29HIwsG/vrarq56dmY+Pj4eHendfX1NEOh3u7uvdzMvBwLu4mY+Hd3dV+Pjz8/Pu7Ovm3d3R0czKyMbDwLu7tqioopmZmYeHfXdoaGZmVTk5OSH4+PPu3Ydmpzv5zwAAAydJREFUSMe9l+dX01AYxl+R0lpUakspRQsFBCx7FMosIntPF25w4QInoOJmCwVBFI1J1DqSovInmqQ3F9rGtoFTfx96evIhv3Pf3PvkCWwRRWyMpuBaZmZ+QXlVsgJCie5+24mFBYdjdXllevpjSv6DgxAqdHfT579835D9WFzMqAhSd+RsePhujj0caWnR0dFxcbf5y2FhIElM+sy8t2xuLqMKMP2WQfBElRpvAJ4dr9fWPvN84/gkwMt2zkrKFMXjM1KydxOlCnxrp3MUPEggbIBkvTsEdmEi/imruTqOZU1FGk3RJSybyIsERJezVgubsBHxSlEWDr5Iy2qyJpGsviNRIaw0qSQFyd5cxDa9Uw8bGAjCALJl6uxJJMtJBExSLpJNXVaiS9paxg4iShPRCbJlUdffItlNhcdzLESyqRtR6NIww6gA0UongHzZvfdI1oJc2JaLZB8qAGFlGtG/ETpVK1/28DiSnRJnqK6ORJM8jWQnH4uza2CH3FuTpl+BbFlU9hKSFQMidvlcuXuRpUj2tVkcpJllzcKup60gX1a5hGRHY3GWPF2ZvqIGjuRjSPbzMCA62Tol90uZlPJl6vOirMWIw4Q/1CXAYcwTZRfwvRvJATBTlAHkyypdouwW9jfxsjPCcysUZX/w0lQkaTdR7bAFWRaWlQmiMXVMkzuuHgHHHSzrBxE7SVIm8JKteQdxELLqJ88cDklZM2D6SI8hSgZxXBBjHKvng9jvGMHMrWzAW9Yb4UUwG6SDl/ndIMoG0lpHdQNsf+vrcniZn60PerIPRihKBbD9Q63QvFj1c6jBzpKcx0qhYNxyXKFTHVktxlWyT1yBimWHhcin2wG2E8RtRvDA6BvE0MjqgcdA0z0AIX3FwCBTh3ZKu7zUx+gCvTxxxxplGDMuIHQrAISiFuA39RCIqGiiW6bMt/DkSBQe3EEaYINuglAFlMmvcrhdOT1OV2vgdvV8L2KfG3Xgkop7YxdsRptK2ALIZn9z/OJZX193uVxlQdZvpUUscpgegugR6zf4INTvsEMc+3kO8JQF+WHx0mLRghe2eDTI//bJ9BcGDf91+LWedQAAAABJRU5ErkJggg=="},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(139),r=n.n(i),a=n(165),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(140),s=i(o),c=n(162),u=i(c),l=n(0);e.default={computed:(0,a.default)({},(0,l.mapState)({overlay:function(t){return t.overlay},modalType:function(t){return t.modalType}})),methods:(0,a.default)({},(0,l.mapMutations)(["CLOSE_MODAL"])),components:{Season:s.default,Trailer:u.default}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(141),r=n.n(i),a=n(161),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(142),a=i(r),o=n(2),s=i(o),c=n(0),u=n(4),l=i(u),f=n(3),d=i(f),p=n(43),h=i(p);e.default={mixins:[d.default,h.default],data:function(){return{auth:config.auth}},computed:(0,s.default)({},(0,c.mapState)({modalData:function(t){return t.modalData},loadingModalData:function(t){return t.loadingModalData},seasonActiveModal:function(t){return t.seasonActiveModal}}),{episodes:function(){return this.modalData.episodes},spoiler:function(){return this.modalData.spoiler}}),methods:(0,s.default)({},(0,c.mapMutations)(["SET_SEASON_ACTIVE_MODAL","CLOSE_MODAL","SET_LOADING_MODAL_DATA","SET_MODAL_DATA"]),{released:function(t){var e=new Date(1e3*t);return this.formatLocaleDate(e)},toggleAll:function(){var t=this.seasonActiveModal,e=this.modalData.episodes[1][0].tmdb_id,n=this.seasonCompleted(t);this.markAllEpisodes(t,n),l.default.patch(config.api+"/toggle-season",{tmdb_id:e,season:t,seen:!n})},markAllEpisodes:function(t,e){var n=this.episodes[t],i=!0,r=!1,o=void 0;try{for(var s,c=(0,a.default)(n);!(i=(s=c.next()).done);i=!0){s.value.seen=!e}}catch(t){r=!0,o=t}finally{try{!i&&c.return&&c.return()}finally{if(r)throw o}}},toggleEpisode:function(t){this.auth&&(t.seen=!t.seen,l.default.patch(config.api+"/toggle-episode/"+t.id).catch(function(e){t.seen=!t.seen}))},seasonCompleted:function(t){var e=this.episodes[t],n=!0,i=!1,r=void 0;try{for(var o,s=(0,a.default)(e);!(n=(o=s.next()).done);n=!0){if(!o.value.seen)return!1}}catch(t){i=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw r}}return!0}})}},function(t,e,n){t.exports={default:n(143),__esModule:!0}},function(t,e,n){n(42),n(27),t.exports=n(147)},function(t,e,n){"use strict";var i=n(145),r=n(146),a=n(21),o=n(16);t.exports=n(60)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var i=n(10),r=n(41);t.exports=n(7).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(149),a=i(r),o=n(151),s=i(o),c="function"==typeof s.default&&"symbol"==typeof a.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(a.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){t.exports={default:n(150),__esModule:!0}},function(t,e,n){n(27),n(42),t.exports=n(44).f("iterator")},function(t,e,n){t.exports={default:n(152),__esModule:!0}},function(t,e,n){n(153),n(69),n(159),n(160),t.exports=n(7).Symbol},function(t,e,n){"use strict";var i=n(5),r=n(14),a=n(12),o=n(11),s=n(61),c=n(154).KEY,u=n(18),l=n(36),f=n(29),d=n(24),p=n(6),h=n(44),m=n(45),v=n(155),_=n(156),g=n(10),b=n(16),y=n(31),S=n(19),E=n(62),w=n(157),T=n(158),O=n(9),A=n(23),x=T.f,C=O.f,M=w.f,I=i.Symbol,L=i.JSON,k=L&&L.stringify,D=p("_hidden"),R=p("toPrimitive"),P={}.propertyIsEnumerable,N=l("symbol-registry"),F=l("symbols"),G=l("op-symbols"),j=Object.prototype,U="function"==typeof I,W=i.QObject,q=!W||!W.prototype||!W.prototype.findChild,$=a&&u(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=x(j,e);i&&delete j[e],C(t,e,n),i&&t!==j&&C(j,e,i)}:C,H=function(t){var e=F[t]=E(I.prototype);return e._k=t,e},B=U&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},K=function(t,e,n){return t===j&&K(G,e,n),g(t),e=y(e,!0),g(n),r(F,e)?(n.enumerable?(r(t,D)&&t[D][e]&&(t[D][e]=!1),n=E(n,{enumerable:S(0,!1)})):(r(t,D)||C(t,D,S(1,{})),t[D][e]=!0),$(t,e,n)):C(t,e,n)},z=function(t,e){g(t);for(var n,i=v(e=b(e)),r=0,a=i.length;a>r;)K(t,n=i[r++],e[n]);return t},Q=function(t,e){return void 0===e?E(t):z(E(t),e)},V=function(t){var e=P.call(this,t=y(t,!0));return!(this===j&&r(F,t)&&!r(G,t))&&(!(e||!r(this,t)||!r(F,t)||r(this,D)&&this[D][t])||e)},J=function(t,e){if(t=b(t),e=y(e,!0),t!==j||!r(F,e)||r(G,e)){var n=x(t,e);return!n||!r(F,e)||r(t,D)&&t[D][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=M(b(t)),i=[],a=0;n.length>a;)r(F,e=n[a++])||e==D||e==c||i.push(e);return i},X=function(t){for(var e,n=t===j,i=M(n?G:b(t)),a=[],o=0;i.length>o;)!r(F,e=i[o++])||n&&!r(j,e)||a.push(F[e]);return a};U||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===j&&e.call(G,n),r(this,D)&&r(this[D],t)&&(this[D][t]=!1),$(this,t,S(1,n))};return a&&q&&$(j,t,{configurable:!0,set:e}),H(t)},s(I.prototype,"toString",function(){return this._k}),T.f=J,O.f=K,n(68).f=w.f=Z,n(25).f=V,n(38).f=X,a&&!n(28)&&s(j,"propertyIsEnumerable",V,!0),h.f=function(t){return H(p(t))}),o(o.G+o.W+o.F*!U,{Symbol:I});for(var Y="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Y.length>tt;)p(Y[tt++]);for(var et=A(p.store),nt=0;et.length>nt;)m(et[nt++]);o(o.S+o.F*!U,"Symbol",{for:function(t){return r(N,t+="")?N[t]:N[t]=I(t)},keyFor:function(t){if(!B(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),o(o.S+o.F*!U,"Object",{create:Q,defineProperty:K,defineProperties:z,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),L&&o(o.S+o.F*(!U||u(function(){var t=I();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!B(t)){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);return e=i[1],"function"==typeof e&&(n=e),!n&&_(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!B(e))return e}),i[1]=e,k.apply(L,i)}}}),I.prototype[R]||n(13)(I.prototype,R,I.prototype.valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)},function(t,e,n){var i=n(24)("meta"),r=n(15),a=n(14),o=n(9).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(18)(function(){return c(Object.preventExtensions({}))}),l=function(t){o(t,i,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[i].i},d=function(t,e){if(!a(t,i)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[i].w},p=function(t){return u&&h.NEED&&c(t)&&!a(t,i)&&l(t),t},h=t.exports={KEY:i,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},function(t,e,n){var i=n(23),r=n(38),a=n(25);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var o,s=n(t),c=a.f,u=0;s.length>u;)c.call(t,o=s[u++])&&e.push(o);return e}},function(t,e,n){var i=n(20);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(16),r=n(68).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?s(t):r(i(t))}},function(t,e,n){var i=n(25),r=n(19),a=n(16),o=n(31),s=n(14),c=n(49),u=Object.getOwnPropertyDescriptor;e.f=n(12)?u:function(t,e){if(t=a(t),e=o(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){n(45)("asyncIterator")},function(t,e,n){n(45)("observable")},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal-wrap"},[n("div",{staticClass:"modal-header"},[n("span",[t._v(t._s(t.modalData.title))]),t._v(" "),n("span",{staticClass:"close-modal",on:{click:function(e){t.CLOSE_MODAL()}}},[n("i",{staticClass:"icon-close"})])]),t._v(" "),t.loadingModalData?n("div",{staticClass:"modal-content modal-content-loading"},[t._m(0)]):t._e(),t._v(" "),t.loadingModalData?t._e():n("div",{staticClass:"season-tabs"},t._l(t.episodes,function(e,i){return n("span",{staticClass:"season-number no-select",class:{active:i==t.seasonActiveModal,completed:t.seasonCompleted(i)},on:{click:function(e){t.SET_SEASON_ACTIVE_MODAL(i)}}},[t._v("\n S"+t._s(t.addZero(i))+"\n ")])})),t._v(" "),t.loadingModalData?t._e():n("div",{staticClass:"item-header no-select"},[n("span",{staticClass:"header-episode"},[t._v("#")]),t._v(" "),n("span",{staticClass:"header-name"},[t._v("Name")]),t._v(" "),t.auth?n("span",{staticClass:"header-seen",on:{click:function(e){t.toggleAll()}}},[t._v("Toggle all")]):t._e()]),t._v(" "),t.loadingModalData?t._e():n("div",{staticClass:"modal-content"},t._l(t.episodes[t.seasonActiveModal],function(e,i){return n("div",{staticClass:"modal-item",attrs:{"data-episode":e.episode_number},on:{click:function(n){t.toggleEpisode(e)}}},[n("span",{staticClass:"modal-episode no-select"},[t._v("E"+t._s(t.addZero(e.episode_number)))]),t._v(" "),n("span",{staticClass:"modal-name",class:{"spoiler-protect":t.spoiler&&!e.seen}},[t._v(t._s(e.name))]),t._v(" "),e.src?n("i",{staticClass:"item-has-src"}):t._e(),t._v(" "),e.release_episode_human_format?n("span",{staticClass:"modal-release-episode",attrs:{title:t.released(e.release_episode)}},[n("i"),t._v(" "+t._s(e.release_episode_human_format))]):t._e(),t._v(" "),e.release_episode?t._e():n("span",{staticClass:"modal-release-episode"},[n("i"),t._v(" "+t._s(t.lang("no release")))]),t._v(" "),n("span",{staticClass:"episode-seen",class:{seen:e.seen}},[n("i")])])}))])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"loader fullsize-loader"},[n("i")])}],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(163),r=n.n(i),a=n(164),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(0),s=n(3),c=i(s);e.default={mixins:[c.default],computed:(0,a.default)({},(0,o.mapState)({modalData:function(t){return t.modalData}}),{trailerSrc:function(){return"https://www.youtube.com/embed/"+this.modalData.youtubeKey}}),methods:(0,a.default)({},(0,o.mapMutations)(["CLOSE_MODAL"]))}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal-wrap modal-wrap-big"},[n("div",{staticClass:"modal-header"},[n("span",[t._v(t._s(t.lang("trailer for"))+" "+t._s(t.modalData.title))]),t._v(" "),n("span",{staticClass:"close-modal",on:{click:function(e){t.CLOSE_MODAL()}}},[n("i",{staticClass:"icon-close"})])]),t._v(" "),n("div",{staticClass:"modal-content"},[n("iframe",{attrs:{width:"100%",height:"100%",src:t.trailerSrc,frameborder:"0",allowfullscreen:""}})])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"all-modals"},[n("transition",{attrs:{mode:"out-in",name:"fade"}},["season"==t.modalType?n("season"):t._e(),t._v(" "),"trailer"==t.modalType?n("trailer"):t._e()],1),t._v(" "),t.overlay?n("span",{staticClass:"overlay",on:{click:function(e){t.CLOSE_MODAL()}}}):t._e()],1)},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),a=i(r),o=n(70),s=i(o),c=n(167),u=i(c),l=n(168),f=i(l),d=n(175),p=i(d),h=n(193),m=i(h),v=n(208),_=i(v),g=n(211),b=i(g);a.default.use(s.default),e.default=new s.default({mode:"history",base:u.default.uri,routes:[{path:"/",component:f.default,name:"home"},{path:"/movies",component:f.default,name:"movie"},{path:"/tv",component:f.default,name:"tv"},{path:"/watchlist/:type?",component:f.default,name:"watchlist"},{path:"/movies/:tmdbId/:slug?",component:b.default,name:"subpage-movie",props:{mediaType:"movie"}},{path:"/tv/:tmdbId/:slug?",component:b.default,name:"subpage-tv",props:{mediaType:"tv"}},{path:"/search",component:p.default,name:"search"},{path:"/settings",component:m.default,name:"settings"},{path:"/suggestions",component:_.default,name:"suggestions"},{path:"/trending",component:_.default,name:"trending"},{path:"/upcoming",component:_.default,name:"upcoming"},{path:"/now-playing",component:_.default,name:"now-playing"},{path:"/genre/:genre",component:_.default,name:"genre"},{path:"*",redirect:"/"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4);(function(t){return t&&t.__esModule?t:{default:t}})(i).default.defaults.headers.common["X-CSRF-TOKEN"]=document.querySelector("#token").getAttribute("content");var r=document.body.dataset,a=r.url,o=r.uri,s=r.auth,c=r.language,u=r.posterTmdb,l=r.posterSubpageTmdb,f=r.backdropTmdb,d={uri:o,url:a,auth:s,language:c,poster:a+"/assets/poster",backdrop:a+"/assets/backdrop",posterSubpage:a+"/assets/poster/subpage",posterTMDB:u,posterSubpageTMDB:l,backdropTMDB:f,api:a+"/api"};window.config=d,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(169),r=n.n(i),a=n(174),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(46),s=i(o),c=n(0),u=n(3),l=i(u),f=n(4),d=i(f);e.default={mixins:[l.default],created:function(){this.fetchData(),this.fetchSettings()},data:function(){return{displayGenre:null,displayDate:null,displayRatings:null}},computed:(0,a.default)({},(0,c.mapState)({filters:function(t){return t.filters},showFilters:function(t){return t.showFilters},loading:function(t){return t.loading},items:function(t){return t.items},userFilter:function(t){return t.userFilter},userSortDirection:function(t){return t.userSortDirection},clickedMoreLoading:function(t){return t.clickedMoreLoading},paginator:function(t){return t.paginator}})),methods:(0,a.default)({},(0,c.mapActions)(["loadItems","loadMoreItems","setSearchTitle","setPageTitle"]),(0,c.mapMutations)(["SET_USER_FILTER","SET_SHOW_FILTERS","SET_USER_SORT_DIRECTION"]),{fetchData:function(){var t=this.$route.name;this.setTitle(t),this.loadItems({name:t}),this.setSearchTitle("")},setTitle:function(t){switch(t){case"home":return this.setPageTitle();case"tv":case"movie":case"watchlist":return this.setPageTitle(this.lang(t))}},fetchSettings:function(){var t=this;(0,d.default)(config.api+"/settings").then(function(e){var n=e.data;t.displayGenre=n.genre,t.displayDate=n.date,t.displayRatings=n.ratings})},loadMore:function(){this.loadMoreItems(this.paginator)},toggleShowFilters:function(){this.SET_SHOW_FILTERS(!this.showFilters)},setUserFilter:function(t){this.SET_SHOW_FILTERS(!1),localStorage.setItem("filter",t),this.SET_USER_FILTER(t),this.fetchData()},setUserSortDirection:function(){var t="asc"===this.userSortDirection?"desc":"asc";localStorage.setItem("sort-direction",t),this.SET_USER_SORT_DIRECTION(t),this.fetchData()}}),components:{Item:s.default},watch:{$route:function(){this.fetchData()}}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(71),s=i(o),c=n(4),u=i(c),l=n(3),f=i(l),d=n(43),p=i(d),h=n(0);e.default={mixins:[f.default,p.default],props:["item","genre","date","ratings"],data:function(){return{localItem:this.item,latestEpisode:this.item.latest_episode,prevRating:null,auth:config.auth,rated:!1}},computed:{hasSrc:function(){return this.localItem.src||this.localItem.episodes_with_src_count>0},poster:function(){return this.localItem.rating?config.poster+this.localItem.poster:config.posterTMDB+this.localItem.poster},noImage:function(){return config.url+"/assets/img/no-image.png"},released:function(){var t=this.$route.path,e=new Date(1e3*this.localItem.released);return"/upcoming"===t||"/now-playing"===t?this.formatLocaleDate(e):e.getFullYear()}},methods:(0,a.default)({},(0,h.mapMutations)(["OPEN_MODAL","SET_RATED"]),(0,h.mapActions)(["fetchEpisodes"]),{setItem:function(t){this.localItem=t},setRated:function(t){this.rated=t},removeItem:function(){var t=this;this.rated=!0,u.default.delete(config.api+"/remove/"+this.localItem.id).then(function(e){t.rated=!1,t.localItem.rating=null,t.localItem.watchlist=null},function(e){alert(e),t.rated=!1})},editItem:function(){}}),components:{Rating:s.default}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(47),a=i(r),o=n(4),s=i(o);e.default={props:["item","set-item","rated","set-rated"],data:function(){return{auth:config.auth}},computed:{localRated:function(){return this.rated}},created:function(){this.saveNewRating=(0,a.default)(this.saveNewRating,700),this.addNewItem=(0,a.default)(this.addNewItem,200,!0)},methods:{changeRating:function(){this.auth&&(this.item.watchlist?this.rating=0:(this.prevRating=this.item.rating,this.item.rating=3==this.prevRating?1:+this.prevRating+1),this.item.watchlist=!1,this.saveNewRating())},saveNewRating:function(){var t=this;s.default.patch(config.api+"/change-rating/"+this.item.id,{rating:this.item.rating}).catch(function(e){t.item.rating=t.prevRating,alert("Error in saveNewRating()")})},addNewItem:function(){var t=this;this.auth&&(this.setRated(!0),s.default.post(config.api+"/add",{item:this.item}).then(function(e){t.setItem(e.data),t.setRated(!1)},function(e){409==e.status&&alert(t.item.title+" already exists!")}))}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[null==t.item.rating||t.item.watchlist?t._e():n("span",{class:"item-rating rating-"+t.item.rating,on:{click:function(e){t.changeRating()}}},[n("i",{staticClass:"icon-rating"})]),t._v(" "),null==t.item.rating&&!t.item.watchlist&&t.item.tmdb_id&&t.auth&&!t.localRated?n("span",{staticClass:"item-rating item-new",on:{click:function(e){t.addNewItem()}}},[n("i",{staticClass:"icon-add"})]):t._e(),t._v(" "),t.item.watchlist?n("span",{staticClass:"item-rating item-new",on:{click:function(e){t.changeRating()}}},[n("i",{staticClass:"icon-add"})]):t._e(),t._v(" "),null==t.item.rating&&t.item.tmdb_id&&t.localRated?n("span",{staticClass:"item-rating item-new item-rating-loader"},[t._m(0)]):t._e()])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"loader smallsize-loader"},[n("i")])}],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{mode:"out-in",name:"fade"}},[n("div",{staticClass:"item-wrap",class:"show-ratings-"+t.ratings},[n("div",{staticClass:"item-image-wrap no-select"},[n("rating",{attrs:{rated:t.rated,"set-rated":t.setRated,item:t.localItem,"set-item":t.setItem}}),t._v(" "),t.localItem.tmdb_id?n("router-link",{staticClass:"recommend-item",attrs:{to:t.suggestionsUri(t.localItem)}},[t._v(t._s(t.lang("suggestions")))]):t._e(),t._v(" "),t.localItem.watchlist?n("span",{staticClass:"is-on-watchlist"},[n("i",{staticClass:"icon-watchlist"})]):t._e(),t._v(" "),t.auth&&null==t.localItem.rating&&!t.rated?n("span",{staticClass:"add-to-watchlist",on:{click:function(e){t.addToWatchlist(t.localItem)}}},[t._v(t._s(t.lang("add to watchlist")))]):t._e(),t._v(" "),t.auth&&t.localItem.watchlist&&!t.rated?n("span",{staticClass:"remove-from-watchlist",on:{click:function(e){t.removeItem()}}},[t._v(t._s(t.lang("remove from watchlist")))]):t._e(),t._v(" "),t.auth&&!t.localItem.tmdb_id?n("span",{staticClass:"edit-item",on:{click:function(e){t.editItem()}}},[t._v("Edit")]):t._e(),t._v(" "),n("router-link",{attrs:{to:{name:"subpage-"+t.localItem.media_type,params:{tmdbId:t.localItem.tmdb_id,slug:t.localItem.slug}}}},[t.localItem.poster?n("img",{staticClass:"item-image",attrs:{src:t.poster,width:"185",height:"278"}}):t._e(),t._v(" "),t.localItem.poster?t._e():n("img",{staticClass:"item-image",attrs:{src:t.noImage,width:"185",height:"278"}})]),t._v(" "),t.displaySeason(t.localItem)?n("span",{staticClass:"show-episode",on:{click:function(e){t.openSeasonModal(t.localItem)}}},[n("span",{staticClass:"season-item"},[n("i",[t._v("S")]),t._v(t._s(t.season))]),t._v(" "),n("span",{staticClass:"episode-item"},[n("i",[t._v("E")]),t._v(t._s(t.episode))])]):t._e()],1),t._v(" "),n("div",{staticClass:"item-content"},[1==t.date?n("span",{staticClass:"item-year"},[t._v(t._s(t.released)+" "),n("i",[t._v(t._s(t.lang(t.localItem.media_type)))])]):t._e(),t._v(" "),n("router-link",{staticClass:"item-title",attrs:{to:{name:"subpage-"+t.localItem.media_type,params:{tmdbId:t.localItem.tmdb_id}},title:t.localItem.title}},[t.hasSrc?n("i",{staticClass:"item-has-src"}):t._e(),t._v("\n "+t._s(t.localItem.title)+"\n ")]),t._v(" "),1==t.genre?n("span",{staticClass:"item-genre"},[t._v(t._s(t.genreAsString(t.localItem.genre)))]):t._e()],1)])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",[!t.loading&&t.items.length?n("div",{staticClass:"content-submenu"},[n("div",{staticClass:"sort-wrap no-select"},[n("div",{staticClass:"sort-direction",on:{click:function(e){t.setUserSortDirection()}}},["asc"==t.userSortDirection?n("i",[t._v("↑")]):t._e(),t._v(" "),"desc"==t.userSortDirection?n("i",[t._v("↓")]):t._e()]),t._v(" "),n("div",{staticClass:"filter-wrap"},[n("span",{staticClass:"current-filter",on:{click:function(e){t.toggleShowFilters()}}},[t._v(t._s(t.lang(t.userFilter))+" "),n("span",{staticClass:"arrow-down"})]),t._v(" "),n("ul",{staticClass:"all-filters",class:{active:t.showFilters}},t._l(t.filters,function(e){return e!==t.userFilter?n("li",{on:{click:function(n){t.setUserFilter(e)}}},[t._v(t._s(t.lang(e)))]):t._e()}))])])]):t._e(),t._v(" "),t.loading?t._e():n("div",{staticClass:"wrap-content"},[t._l(t.items,function(e,i){return n("Item",{key:i,attrs:{item:e,genre:t.displayGenre,date:t.displayDate,ratings:t.displayRatings}})}),t._v(" "),t.items.length?t._e():n("span",{staticClass:"nothing-found"},[t._v(t._s(t.lang("nothing found")))]),t._v(" "),n("div",{staticClass:"load-more-wrap"},[!t.clickedMoreLoading&&t.paginator?n("span",{staticClass:"load-more",on:{click:function(e){t.loadMore()}}},[t._v(t._s(t.lang("load more")))]):t._e(),t._v(" "),t.clickedMoreLoading?n("span",{staticClass:"loader"},[n("i")]):t._e()])],2),t._v(" "),t.loading?n("span",{staticClass:"loader fullsize-loader"},[n("i")]):t._e()])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(176),r=n.n(i),a=n(192),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(177),a=i(r),o=n(180),s=i(o),c=n(2),u=i(c),l=n(46),f=i(l),d=n(3),p=i(d),h=n(4),m=i(h),v=n(0);e.default={mixins:[p.default],created:function(){this.initSearch()},data:function(){return{floxItems:[],tmdbItems:[]}},computed:(0,u.default)({},(0,v.mapState)({searchTitle:function(t){return t.searchTitle},loading:function(t){return t.loading}})),methods:(0,u.default)({},(0,v.mapMutations)(["SET_SEARCH_TITLE","SET_LOADING"]),(0,v.mapActions)(["setPageTitle"]),{initSearch:function(){var t=this;this.SET_SEARCH_TITLE(this.$route.query.q),this.SET_LOADING(!0),this.setPageTitle(this.lang("search for")+" "+this.$route.query.q),this.searchFlox(),this.searchTMDB().then(function(){setTimeout(function(){t.SET_LOADING(!1)},500)})},searchFlox:function(){var t=this;(0,m.default)(config.api+"/search-items?q="+this.searchTitle).then(function(e){t.floxItems=e.data},function(t){console.log(t)})},searchTMDB:function(){var t=this;return(0,s.default)(a.default.mark(function e(){return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!config.auth){e.next=3;break}return e.next=3,(0,m.default)(config.api+"/search-tmdb?q="+t.searchTitle).then(function(e){var n=t.floxItems.map(function(t){return t.tmdb_id});t.tmdbItems=e.data.filter(function(t){return!n.includes(t.tmdb_id)})}).catch(function(t){alert("Error in searchTMDB(): "+t)});case 3:case"end":return e.stop()}},e,t)}))()}}),components:{Item:f.default},watch:{$route:function(){this.scrollToTop(),this.initSearch()}}}},function(t,e,n){t.exports=n(178)},function(t,e,n){var i=function(){return this}()||Function("return this")(),r=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,a=r&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,t.exports=n(179),r)i.regeneratorRuntime=a;else try{delete i.regeneratorRuntime}catch(t){i.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function n(t,e,n,i){var a=e&&e.prototype instanceof r?e:r,o=Object.create(a.prototype),s=new p(i||[]);return o._invoke=u(t,n,s),o}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function r(){}function a(){}function o(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(n,r,a,o){var s=i(t[n],t,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&g.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,a,o)},function(t){e("throw",t,a,o)}):Promise.resolve(u).then(function(t){c.value=t,a(c)},o)}o(s.arg)}function n(t,n){function i(){return new Promise(function(i,r){e(t,n,i,r)})}return r=r?r.then(i,i):i()}var r;this._invoke=n}function u(t,e,n){var r=O;return function(a,o){if(r===x)throw new Error("Generator is already running");if(r===C){if("throw"===a)throw o;return m()}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var c=l(s,n);if(c){if(c===M)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===O)throw r=C,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=x;var u=i(t,e,n);if("normal"===u.type){if(r=n.done?C:A,u.arg===M)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=C,n.method="throw",n.arg=u.arg)}}}function l(t,e){var n=t.iterator[e.method];if(n===v){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=v,l(t,e),"throw"===e.method))return M;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return M}var r=i(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,M;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=v),e.delegate=null,M):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,M)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function d(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function h(t){if(t){var e=t[y];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=v,e.done=!0,e};return i.next=i}}return{next:m}}function m(){return{value:v,done:!0}}var v,_=Object.prototype,g=_.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},y=b.iterator||"@@iterator",S=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag",w="object"==typeof t,T=e.regeneratorRuntime;if(T)return void(w&&(t.exports=T));T=e.regeneratorRuntime=w?t.exports:{},T.wrap=n;var O="suspendedStart",A="suspendedYield",x="executing",C="completed",M={},I={};I[y]=function(){return this};var L=Object.getPrototypeOf,k=L&&L(L(h([])));k&&k!==_&&g.call(k,y)&&(I=k);var D=o.prototype=r.prototype=Object.create(I);a.prototype=D.constructor=o,o.constructor=a,o[E]=a.displayName="GeneratorFunction",T.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},T.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,o):(t.__proto__=o,E in t||(t[E]="GeneratorFunction")),t.prototype=Object.create(D),t},T.awrap=function(t){return{__await:t}},s(c.prototype),c.prototype[S]=function(){return this},T.AsyncIterator=c,T.async=function(t,e,i,r){var a=new c(n(t,e,i,r));return T.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},s(D),D[E]="Generator",D[y]=function(){return this},D.toString=function(){return"[object Generator]"},T.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},T.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(d),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,i){return a.type="throw",a.arg=t,n.next=e,i&&(n.method="next",n.arg=v),!!i}if(this.done)throw t;for(var n=this,i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],a=r.completion;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.prev){var o=g.call(r,"catchLoc"),s=g.call(r,"finallyLoc");if(o&&s){if(this.prev<r.catchLoc)return e(r.catchLoc,!0);if(this.prev<r.finallyLoc)return e(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return e(r.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return e(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&g.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,M):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),M},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),M}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;d(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=v),M}}}(function(){return this}()||Function("return this")())},function(t,e,n){"use strict";e.__esModule=!0;var i=n(181),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t){return function(){var e=t.apply(this,arguments);return new r.default(function(t,n){function i(a,o){try{var s=e[a](o),c=s.value}catch(t){return void n(t)}if(!s.done)return r.default.resolve(c).then(function(t){i("next",t)},function(t){i("throw",t)});t(c)}return i("next")})}}},function(t,e,n){t.exports={default:n(182),__esModule:!0}},function(t,e,n){n(69),n(27),n(42),n(183),n(190),n(191),t.exports=n(7).Promise},function(t,e,n){"use strict";var i,r,a,o,s=n(28),c=n(5),u=n(17),l=n(66),f=n(11),d=n(15),p=n(22),h=n(184),m=n(185),v=n(72),_=n(73).set,g=n(187)(),b=n(48),y=n(74),S=n(75),E=c.TypeError,w=c.process,T=c.Promise,O="process"==l(w),A=function(){},x=r=b.f,C=!!function(){try{var t=T.resolve(1),e=(t.constructor={})[n(6)("species")]=function(t){t(A,A)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e}catch(t){}}(),M=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var i=t._v,r=1==t._s,a=0;n.length>a;)!function(e){var n,a,o=r?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{o?(r||(2==t._h&&D(t),t._h=1),!0===o?n=i:(u&&u.enter(),n=o(i),u&&u.exit()),n===e.promise?c(E("Promise-chain cycle")):(a=M(n))?a.call(n,s,c):s(n)):c(i)}catch(t){c(t)}}(n[a++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){_.call(c,function(){var e,n,i,r=t._v,a=k(t);if(a&&(e=y(function(){O?w.emit("unhandledRejection",r,t):(n=c.onunhandledrejection)?n({promise:t,reason:r}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=O||k(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},k=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,i=0;n.length>i;)if(e=n[i++],e.fail||!k(e.promise))return!1;return!0},D=function(t){_.call(c,function(){var e;O?w.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},P=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=M(t))?g(function(){var i={_w:n,_d:!1};try{e.call(t,u(P,i,1),u(R,i,1))}catch(t){R.call(i,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};C||(T=function(t){h(this,T,"Promise","_h"),p(t),i.call(this);try{t(u(P,this,1),u(R,this,1))}catch(t){R.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(188)(T.prototype,{then:function(t,e){var n=x(v(this,T));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=u(P,t,1),this.reject=u(R,t,1)},b.f=x=function(t){return t===T||t===o?new a(t):r(t)}),f(f.G+f.W+f.F*!C,{Promise:T}),n(29)(T,"Promise"),n(189)("Promise"),o=n(7).Promise,f(f.S+f.F*!C,"Promise",{reject:function(t){var e=x(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!C),"Promise",{resolve:function(t){return S(s&&this===o?T:this,t)}}),f(f.S+f.F*!(C&&n(67)(function(t){T.all(t).catch(A)})),"Promise",{all:function(t){var e=this,n=x(e),i=n.resolve,r=n.reject,a=y(function(){var n=[],a=0,o=1;m(t,!1,function(t){var s=a++,c=!1;n.push(void 0),o++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--o||i(n))},r)}),--o||i(n)});return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=x(e),i=n.reject,r=y(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(17),r=n(64),a=n(65),o=n(10),s=n(33),c=n(41),u={},l={},e=t.exports=function(t,e,n,f,d){var p,h,m,v,_=d?function(){return t}:c(t),g=i(n,f,e?2:1),b=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(a(_)){for(p=s(t.length);p>b;b++)if((v=e?g(o(h=t[b])[0],h[1]):g(t[b]))===u||v===l)return v}else for(m=_.call(t);!(h=m.next()).done;)if((v=r(m,g,h.value,e))===u||v===l)return v};e.BREAK=u,e.RETURN=l},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var i=n(5),r=n(73).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,c="process"==n(20)(o);t.exports=function(){var t,e,n,u=function(){var i,r;for(c&&(i=o.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(c)n=function(){o.nextTick(u)};else if(a){var l=!0,f=document.createTextNode("");new a(u).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(s&&s.resolve){var d=s.resolve();n=function(){d.then(u)}}else n=function(){r.call(i,u)};return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){var i=n(13);t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},function(t,e,n){"use strict";var i=n(5),r=n(7),a=n(9),o=n(12),s=n(6)("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];o&&e&&!e[s]&&a.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var i=n(11),r=n(7),a=n(5),o=n(72),s=n(75);i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,r.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var i=n(11),r=n(48),a=n(74);i(i.S,"Promise",{try:function(t){var e=r.f(this),n=a(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",[t.loading?t._e():n("div",{staticClass:"wrap-content"},[t._l(t.floxItems,function(t,e){return n("Item",{key:e,attrs:{item:t,genre:!0,date:!0}})}),t._v(" "),t._l(t.tmdbItems,function(t,e){return n("Item",{key:e,attrs:{item:t,genre:!0,date:!0}})}),t._v(" "),t.floxItems.length||t.tmdbItems.length?t._e():n("span",{staticClass:"nothing-found"},[t._v(t._s(t.lang("nothing found")))])],2),t._v(" "),t.loading?n("span",{staticClass:"loader fullsize-loader"},[n("i")]):t._e()])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(194),r=n.n(i),a=n(207),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(195),s=i(o),c=n(198),u=i(c),l=n(201),f=i(l),d=n(204),p=i(d),h=n(0),m=n(3),v=i(m);e.default={mixins:[v.default],created:function(){this.setPageTitle(this.lang("settings"))},components:{User:s.default,Options:u.default,Backup:f.default,Misc:p.default},data:function(){return{activeTab:"misc"}},computed:(0,a.default)({},(0,h.mapState)({loading:function(t){return t.loading}})),methods:(0,a.default)({},(0,h.mapActions)(["setPageTitle"]),{changeActiveTab:function(t){this.activeTab=t}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(196),r=n.n(i),a=n(197),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(0),s=n(3),c=i(s),u=n(4),l=i(u),f=n(47),d=i(f);e.default={mixins:[c.default],created:function(){this.fetchUserData(),this.clearSuccessMessage=(0,d.default)(this.clearSuccessMessage,2e3)},data:function(){return{username:"",password:"",success:!1}},computed:(0,a.default)({},(0,o.mapState)({loading:function(t){return t.loading}})),methods:(0,a.default)({},(0,o.mapMutations)(["SET_LOADING"]),{fetchUserData:function(){var t=this;this.SET_LOADING(!0),(0,l.default)(config.api+"/settings").then(function(e){t.SET_LOADING(!1),t.username=e.data.username})},editUser:function(){var t=this,e=this.username,n=this.password;""!=e&&l.default.patch(config.api+"/userdata",{username:e,password:n}).then(function(){t.success=!0,t.clearSuccessMessage()})},clearSuccessMessage:function(){this.success=!1}})}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",{staticClass:"settings-box"},[n("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.editUser()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",placeholder:t.lang("username")},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:t.lang("password"),autocomplete:"off"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),n("span",{staticClass:"userdata-info"},[t._v(t._s(t.lang("password message")))]),t._v(" "),n("span",{staticClass:"userdata-changed"},[t.success?n("span",[t._v(t._s(t.lang("success message")))]):t._e()]),t._v(" "),n("input",{attrs:{type:"submit"},domProps:{value:t.lang("save button")}})])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(199),r=n.n(i),a=n(200),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(0),s=n(3),c=i(s),u=n(4),l=i(u);e.default={mixins:[c.default],created:function(){this.fetchOptions()},data:function(){return{genre:null,date:null,spoiler:null,watchlist:null,ratings:null}},computed:(0,a.default)({},(0,o.mapState)({loading:function(t){return t.loading}})),methods:(0,a.default)({},(0,o.mapMutations)(["SET_LOADING"]),{fetchOptions:function(){var t=this;this.SET_LOADING(!0),(0,l.default)(config.api+"/settings").then(function(e){var n=e.data;t.SET_LOADING(!1),console.log(n),t.genre=n.genre,t.date=n.date,t.spoiler=n.spoiler,t.watchlist=n.watchlist,t.ratings=n.ratings})},updateOptions:function(){var t=this;this.SET_LOADING(!0);var e=this.date,n=this.genre,i=this.spoiler,r=this.watchlist,a=this.ratings;l.default.patch(config.api+"/settings",{date:e,genre:n,spoiler:i,watchlist:r,ratings:a}).then(function(e){t.SET_LOADING(!1)},function(t){alert(t.message)})}})}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",{staticClass:"settings-box element-ui-checkbox no-select"},[n("div",{staticClass:"setting-box"},[n("el-checkbox",{on:{change:t.updateOptions},model:{value:t.genre,callback:function(e){t.genre=e},expression:"genre"}},[t._v(t._s(t.lang("display genre")))])],1),t._v(" "),n("div",{staticClass:"setting-box"},[n("el-checkbox",{on:{change:t.updateOptions},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},[t._v(t._s(t.lang("display date")))])],1),t._v(" "),n("div",{staticClass:"setting-box"},[n("el-checkbox",{on:{change:t.updateOptions},model:{value:t.spoiler,callback:function(e){t.spoiler=e},expression:"spoiler"}},[t._v(t._s(t.lang("spoiler")))])],1),t._v(" "),n("div",{staticClass:"setting-box"},[n("el-checkbox",{on:{change:t.updateOptions},model:{value:t.watchlist,callback:function(e){t.watchlist=e},expression:"watchlist"}},[t._v(t._s(t.lang("show watchlist")))])],1),t._v(" "),n("div",{staticClass:"setting-box select-box"},[n("label",{attrs:{for:"ratings"}},[t._v(t._s(t.lang("show own ratings")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.ratings,expression:"ratings"}],attrs:{id:"ratings"},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.ratings=e.target.multiple?n:n[0]},t.updateOptions]}},[n("option",{attrs:{value:"always"}},[t._v(t._s(t.lang("always")))]),t._v(" "),n("option",{attrs:{value:"hover"}},[t._v(t._s(t.lang("on hover")))]),t._v(" "),n("option",{attrs:{value:"never"}},[t._v(t._s(t.lang("never")))])])])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(202),r=n.n(i),a=n(203),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(0),s=n(3),c=i(s),u=n(4),l=i(u);e.default={mixins:[c.default],data:function(){return{uploadSuccess:!1,uploadedFile:null}},computed:(0,a.default)({},(0,o.mapState)({loading:function(t){return t.loading}}),{exportLink:function(){return config.api+"/export"}}),methods:(0,a.default)({},(0,o.mapMutations)(["SET_LOADING"]),{upload:function(t){var e=t.target.files||t.dataTransfer.files;this.uploadedFile=new FormData,this.uploadedFile.append("import",e[0])},importMovies:function(){var t=this;if(this.uploadedFile){window.confirm(this.lang("import warn"))&&(this.SET_LOADING(!0),l.default.post(config.api+"/import",this.uploadedFile).then(function(){t.SET_LOADING(!1),t.uploadSuccess=!0},function(e){t.SET_LOADING(!1),alert("Error: "+e.response.data)}))}}})}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",{staticClass:"settings-box"},[n("a",{staticClass:"setting-btn",attrs:{href:t.exportLink}},[t._v(t._s(t.lang("export button")))]),t._v(" "),n("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.importMovies()}}},[n("span",{staticClass:"import-info"},[t._v(t._s(t.lang("or divider")))]),t._v(" "),n("input",{staticClass:"file-btn",attrs:{type:"file",required:""},on:{change:t.upload}}),t._v(" "),n("span",{staticClass:"userdata-changed"},[t.uploadSuccess?n("span",[t._v(t._s(t.lang("success import")))]):t._e()]),t._v(" "),n("input",{attrs:{type:"submit"},domProps:{value:t.lang("import button")}})])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(205),r=n.n(i),a=n(206),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(0),s=n(3),c=i(s),u=n(4),l=i(u);e.default={mixins:[c.default],created:function(){this.checkUpdate(),this.fetchVersion()},data:function(){return{version:"",isUpdate:null,refreshAllClicked:!1}},computed:(0,a.default)({},(0,o.mapState)({loading:function(t){return t.loading}}),{updateMessage:function(){return!1===this.isUpdate?this.lang("no update"):this.lang("checking update")}}),methods:(0,a.default)({},(0,o.mapMutations)(["SET_LOADING"]),{fetchFiles:function(){var t=this;this.SET_LOADING(!0),l.default.post(config.api+"/fetch-files").then(function(){t.SET_LOADING(!1)}).catch(function(e){t.SET_LOADING(!1),alert(e.response.data)})},checkUpdate:function(){var t=this;(0,l.default)(config.api+"/check-update").then(function(e){t.isUpdate=e.data})},fetchVersion:function(){var t=this;this.SET_LOADING(!0),(0,l.default)(config.api+"/version").then(function(e){t.SET_LOADING(!1),t.version=e.data.version})},refreshAll:function(){var t=this;this.refreshAllClicked=!0,(0,l.default)(config.api+"/refresh-kickstart-all").then(function(){t.refreshAllClicked=!1}).catch(function(e){t.refreshAllClicked=!1,alert(e.response.data)})}})}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",{staticClass:"settings-box"},[n("div",{staticClass:"version-wrap"},[n("span",{staticClass:"current-version"},[t._v(t._s(t.lang("current version"))+" "),n("span",[t._v(t._s(t.version))])]),t._v(" "),t.isUpdate?t._e():n("span",{staticClass:"update-check"},[t._v(t._s(t.updateMessage))]),t._v(" "),t.isUpdate?n("span",{staticClass:"update-check"},[n("a",{staticClass:"new-update",attrs:{href:"https://github.com/devfake/flox/releases",target:"_blank"}},[t._v(t._s(t.lang("new update")))])]):t._e(),t._v(" "),n("span",{staticClass:"update-check"},[t._v(t._s(t.lang("feedback"))+" "),n("a",{attrs:{href:"https://github.com/devfake/flox/issues",target:"_blank"}},[t._v("GitHub")])])]),t._v(" "),n("div",{staticClass:"misc-btn-wrap"},[n("button",{staticClass:"setting-btn",on:{click:function(e){t.fetchFiles()}}},[t._v(t._s(t.lang("call file-parser")))]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:!t.refreshAllClicked,expression:" ! refreshAllClicked"}],staticClass:"setting-btn",on:{click:function(e){t.refreshAll()}}},[t._v(t._s(t.lang("refresh all infos")))])])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",[n("div",{staticClass:"wrap-content"},[n("div",{staticClass:"navigation-tab no-select"},[n("span",{class:{active:"misc"==t.activeTab},on:{click:function(e){t.changeActiveTab("misc")}}},[t._v(t._s(t.lang("tab misc")))]),t._v(" "),n("span",{class:{active:"user"==t.activeTab},on:{click:function(e){t.changeActiveTab("user")}}},[t._v(t._s(t.lang("tab user")))]),t._v(" "),n("span",{class:{active:"options"==t.activeTab},on:{click:function(e){t.changeActiveTab("options")}}},[t._v(t._s(t.lang("tab options")))]),t._v(" "),n("span",{class:{active:"backup"==t.activeTab},on:{click:function(e){t.changeActiveTab("backup")}}},[t._v(t._s(t.lang("tab backup")))])]),t._v(" "),t.loading?n("span",{staticClass:"loader fullsize-loader"},[n("i")]):t._e(),t._v(" "),"user"==t.activeTab?n("user"):t._e(),t._v(" "),"options"==t.activeTab?n("options"):t._e(),t._v(" "),"backup"==t.activeTab?n("backup"):t._e(),t._v(" "),"misc"==t.activeTab?n("misc"):t._e()],1)])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(209),r=n.n(i),a=n(210),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(46),s=i(o),c=n(3),u=i(c),l=n(4),f=i(l),d=n(0);e.default={mixins:[u.default],created:function(){this.fetchSettings(),this.init()},data:function(){return{items:[],genres:[],isGenrePage:!1,currentGenre:"",showWatchlistItems:!1,path:"",displayRatings:null}},computed:(0,a.default)({},(0,d.mapState)({loading:function(t){return t.loading},showFilters:function(t){return t.showFilters}})),methods:(0,a.default)({},(0,d.mapMutations)(["SET_LOADING","SET_SHOW_FILTERS"]),(0,d.mapActions)(["setPageTitle"]),{init:function(){switch(this.SET_LOADING(!0),this.path=this.$route.name,this.path){case"suggestions":return this.initSuggestions();case"genre":return this.isGenrePage=!0,this.initContentByGenre();case"trending":case"upcoming":case"now-playing":return this.initContent(this.path)}},toggleWatchlistItems:function(){this.showWatchlistItems=!this.showWatchlistItems},toggleShowGenres:function(){this.SET_SHOW_FILTERS(!this.showFilters)},initAllGenres:function(){var t=this;(0,f.default)(config.api+"/genres").then(function(e){t.genres=e.data},function(t){console.log(t)})},initContentByGenre:function(){var t=this;this.initAllGenres(),this.currentGenre=this.$route.params.genre,this.setPageTitle(this.lang("genre")),(0,f.default)(config.api+"/genre/"+this.currentGenre).then(function(e){t.items=e.data,t.SET_LOADING(!1)},function(e){console.log(e),t.$router.push("/")})},initSuggestions:function(){var t=this,e=this.$route.query.for,n=this.$route.query.type;this.setPageTitle(this.lang("suggestions for")+" "+this.$route.query.name),(0,f.default)(config.api+"/suggestions/"+e+"/"+n).then(function(e){t.items=e.data,t.SET_LOADING(!1)})},initContent:function(t){var e=this;this.setPageTitle(this.lang(t)),(0,f.default)(config.api+"/"+t).then(function(t){e.items=t.data,e.SET_LOADING(!1)})},fetchSettings:function(){var t=this;(0,f.default)(config.api+"/settings").then(function(e){t.displayRatings=e.data.ratings})}}),components:{Item:s.default},watch:{$route:function(){this.scrollToTop(),this.init()}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{class:{"display-suggestions":"suggestions"===t.path}},[!t.loading&&t.items.length?n("div",{staticClass:"content-submenu"},[t.isGenrePage?n("div",{staticClass:"sort-wrap no-select"},[n("div",{staticClass:"filter-wrap"},[n("span",{staticClass:"current-filter",on:{click:function(e){t.toggleShowGenres()}}},[t._v(t._s(t.currentGenre)+" "),n("span",{staticClass:"arrow-down"})]),t._v(" "),n("ul",{staticClass:"all-filters",class:{active:t.showFilters}},t._l(t.genres,function(e){return e.name!==t.currentGenre?n("router-link",{key:e.id,attrs:{to:"/genre/"+e.name}},[t._v(t._s(e.name))]):t._e()}))]),t._v(" "),n("div",{staticClass:"show-watchlist-items element-ui-checkbox",on:{click:function(e){t.toggleWatchlistItems()}}},[n("el-checkbox",{model:{value:t.showWatchlistItems,callback:function(e){t.showWatchlistItems=e},expression:"showWatchlistItems"}},[t._v("Watchlist")])],1)]):t._e()]):t._e(),t._v(" "),t.loading?t._e():n("div",{staticClass:"wrap-content"},[n("div",{staticClass:"items-wrap"},t._l(t.items,function(e,i){return!e.watchlist||t.showWatchlistItems&&e.watchlist?n("Item",{key:i,attrs:{item:e,genre:!0,date:!0,ratings:t.displayRatings}}):t._e()}))]),t._v(" "),t.loading?n("span",{staticClass:"loader fullsize-loader"},[n("i")]):t._e()])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(212),r=n.n(i),a=n(213),o=n(1),s=o(r.a,a.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=i(r),o=n(71),s=i(o),c=n(0),u=n(3),l=i(u),f=n(43),d=i(f),p=n(4),h=i(p);e.default={mixins:[l.default,d.default],props:["mediaType"],created:function(){document.body.classList.add("subpage-open"),window.scrollTo(0,0),this.fetchSettings(),this.fetchData()},destroyed:function(){document.body.classList.remove("subpage-open"),this.SET_ITEM_LOADED_SUBPAGE(!1),this.CLOSE_MODAL()},data:function(){return{item:{},latestEpisode:null,loadingImdb:!1,auth:config.auth,rated:!1,displayRatings:null}},computed:(0,a.default)({},(0,c.mapState)({loading:function(t){return t.loading},itemLoadedSubpage:function(t){return t.itemLoadedSubpage}}),{overview:function(){return this.item.overview?this.item.overview:"-"},backdropImage:function(){var t=config.backdropTMDB;return null!=this.item.rating&&(t=config.backdrop),{backgroundImage:"url("+t+this.item.backdrop+")"}},posterImage:function(){return this.item.poster?null!=this.item.rating?config.posterSubpage+this.item.poster:config.posterSubpageTMDB+this.item.poster:this.noImage},noImage:function(){return config.url+"/assets/img/no-image-subpage.png"},released:function(){return new Date(1e3*this.item.released).getFullYear()}}),methods:(0,a.default)({},(0,c.mapMutations)(["SET_LOADING","SET_ITEM_LOADED_SUBPAGE","OPEN_MODAL","CLOSE_MODAL","SET_RATED"]),(0,c.mapActions)(["setPageTitle","fetchEpisodes"]),{openTrailer:function(){this.OPEN_MODAL({type:"trailer",data:{youtubeKey:this.item.youtube_key,title:this.item.title}})},fetchImdbRating:function(){var t=this;this.item.imdb_id&&null==this.item.rating&&(this.loadingImdb=!0,(0,h.default)(config.api+"/imdb-rating/"+this.item.imdb_id).then(function(e){var n=t.intToFloat(e.data);t.$set(t.item,"imdb_rating",n),t.loadingImdb=!1},function(e){alert(e),t.loadingImdb=!1}))},fetchSettings:function(){var t=this;(0,h.default)(config.api+"/settings").then(function(e){t.displayRatings=e.data.ratings})},fetchData:function(){var t=this,e=this.$route.params.tmdbId;this.SET_LOADING(!0),(0,h.default)(config.api+"/item/"+e+"/"+this.mediaType).then(function(e){t.item=e.data,t.item.tmdb_rating=t.intToFloat(e.data.tmdb_rating),t.latestEpisode=t.item.latest_episode,t.setPageTitle(t.item.title),t.disableLoading(),t.fetchImdbRating()},function(e){console.log(e),t.SET_LOADING(!1),t.$router.push("/")})},disableLoading:function(){var t=this;setTimeout(function(){t.SET_LOADING(!1),t.displayItem()},100)},displayItem:function(){var t=this;setTimeout(function(){t.SET_ITEM_LOADED_SUBPAGE(!0)},50)},setItem:function(t){this.item=t},setRated:function(t){this.rated=t},removeItem:function(){var t=this;this.rated=!0,h.default.delete(config.api+"/remove/"+this.item.id).then(function(e){t.rated=!1,t.item.rating=null,t.item.watchlist=null},function(e){alert(e),t.rated=!1})},refreshInfos:function(){var t=this;this.SET_LOADING(!0),this.SET_ITEM_LOADED_SUBPAGE(!1),h.default.patch(config.api+"/refresh/"+this.item.id).then(function(t){location.reload()},function(e){alert(e),t.SET_LOADING(!1)})}}),components:{Rating:s.default}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",[n("div",{staticClass:"bigsize-header"},[n("section",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:" ! loading"}],staticClass:"big-teaser-wrap",class:{active:t.itemLoadedSubpage}},[n("div",{staticClass:"big-teaser-image",style:t.backdropImage}),t._v(" "),n("div",{staticClass:"wrap"},[n("div",{staticClass:"big-teaser-content"},[n("div",{staticClass:"big-teaser-data-wrap"},[n("div",{staticClass:"subpage-poster-wrap-mobile",class:"show-ratings-"+t.displayRatings},[n("rating",{attrs:{rated:t.rated,item:t.item,"set-item":t.setItem,"set-rated":t.setRated}}),t._v(" "),n("img",{staticClass:"base",attrs:{src:t.noImage,width:"120",height:"180"}}),t._v(" "),n("img",{staticClass:"real",attrs:{src:t.posterImage,width:"120",height:"180"}})],1),t._v(" "),n("div",{staticClass:"big-teaser-item-data"},[n("span",{staticClass:"item-year"},[t._v(t._s(t.released)+", "),n("i",[t._v(t._s(t.lang(t.item.media_type)))])]),t._v(" "),n("span",{staticClass:"item-title"},[t._v(t._s(t.item.title))]),t._v(" "),n("span",{staticClass:"item-genre"},t._l(t.item.genre,function(e){return n("router-link",{key:e.id,attrs:{to:"/genre/"+e.name}},[t._v(t._s(e.name))])}))]),t._v(" "),n("div",{staticClass:"big-teaser-buttons no-select",class:{"without-watchlist":null!=t.item.rating||!t.auth}},[t.item.youtube_key?n("span",{staticClass:"button-trailer",on:{click:function(e){t.openTrailer()}}},[n("i",{staticClass:"icon-trailer"}),t._v(" "+t._s(t.lang("watch trailer")))]):t._e(),t._v(" "),null==t.item.rating&&t.auth&&!t.rated?n("span",{staticClass:"button-watchlist",on:{click:function(e){t.addToWatchlist(t.item)}}},[n("i",{staticClass:"icon-watchlist"}),t._v(" "+t._s(t.lang("add to watchlist")))]):t._e(),t._v(" "),t.item.watchlist&&t.auth&&!t.rated?n("span",{staticClass:"button-watchlist",on:{click:function(e){t.removeItem()}}},[n("i",{staticClass:"icon-watchlist-remove"}),t._v(" "+t._s(t.lang("remove from watchlist")))]):t._e(),t._v(" "),n("a",{staticClass:"button-tmdb-rating",attrs:{href:"https://www.themoviedb.org/"+t.item.media_type+"/"+t.item.tmdb_id,target:"_blank"}},[t.item.tmdb_rating&&0!=t.item.tmdb_rating?n("i",[n("b",[t._v(t._s(t.item.tmdb_rating))]),t._v(" TMDb")]):n("i",[t._v(t._s(t.lang("no tmdb rating")))])]),t._v(" "),t.item.imdb_id?n("a",{staticClass:"button-imdb-rating",attrs:{href:"http://www.imdb.com/title/"+t.item.imdb_id,target:"_blank"}},[t.loadingImdb?n("i",[t._v(t._s(t.lang("loading imdb rating")))]):t._e(),t._v(" "),t.item.imdb_rating&&!t.loadingImdb?n("i",[n("b",[t._v(t._s(t.item.imdb_rating))]),t._v(" IMDb")]):t._e(),t._v(" "),t.item.imdb_rating||t.loadingImdb?t._e():n("i",[t._v(t._s(t.lang("no imdb rating")))])]):t._e()])])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:" ! loading"}],staticClass:"subpage-content",class:{active:t.itemLoadedSubpage}},[n("div",{staticClass:"wrap"},[n("div",{staticClass:"subpage-overview"},[n("h2",[t._v(t._s(t.lang("overview")))]),t._v(" "),n("p",[t._v(t._s(t.overview))])]),t._v(" "),n("div",{staticClass:"subpage-sidebar"},[n("div",{staticClass:"subpage-poster-wrap",class:"show-ratings-"+t.displayRatings},[n("rating",{attrs:{rated:t.rated,item:t.item,"set-item":t.setItem,"set-rated":t.setRated}}),t._v(" "),n("img",{staticClass:"base",attrs:{src:t.noImage,width:"272",height:"408"}}),t._v(" "),n("img",{staticClass:"real",attrs:{src:t.posterImage,width:"272",height:"408"}}),t._v(" "),t.item.tmdb_id?n("router-link",{staticClass:"recommend-item",attrs:{to:t.suggestionsUri(t.item)}},[t._v(t._s(t.lang("suggestions")))]):t._e(),t._v(" "),t.displaySeason(t.item)?n("span",{staticClass:"show-episode",on:{click:function(e){t.openSeasonModal(t.item)}}},[n("span",{staticClass:"season-item"},[n("i",[t._v("S")]),t._v(t._s(t.season))]),t._v(" "),n("span",{staticClass:"episode-item"},[n("i",[t._v("E")]),t._v(t._s(t.episode))])]):t._e()],1),t._v(" "),null!=t.item.rating&&t.auth?n("div",{staticClass:"subpage-sidebar-buttons no-select"},[n("span",{staticClass:"refresh-infos",on:{click:function(e){t.refreshInfos()}}},[t._v(t._s(t.lang("refresh infos")))]),t._v(" "),t.item.watchlist?t._e():n("span",{staticClass:"remove-item",on:{click:function(e){t.removeItem()}}},[t._v(t._s(t.lang("delete item")))])]):t._e()])])]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"loader fullsize-loader"},[n("i")])])},r=[],a={render:i,staticRenderFns:r};e.a=a},function(t,e){}],[76]);