mirror of
https://github.com/devfake/flox.git
synced 2024-11-16 15:12:32 +01:00
3 lines
69 KiB
JavaScript
3 lines
69 KiB
JavaScript
webpackJsonp([1],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(3),i=r(o),a=n(20),s=r(a),c=n(1),u=n(155),l=r(u),f=n(159),d=r(f),p=n(154),v=r(p),h=n(156),m=r(h),_=n(157),g=r(_),y=n(76),S=r(y),A=n(41),b=r(A);n(143);var E=new s.default({store:b.default,router:S.default,created:function(){this.checkForUserColorScheme()},computed:(0,i.default)({},(0,c.mapState)({colorScheme:function(t){return t.colorScheme}})),components:{SiteHeader:l.default,Search:d.default,SiteFooter:v.default,Login:m.default,Modal:g.default},methods:(0,i.default)({},(0,c.mapActions)(["setColorScheme"]),{checkForUserColorScheme:function(){localStorage.getItem("color")||localStorage.setItem("color","dark"),this.setColorScheme(localStorage.getItem("color"))}})});E.$mount("#app")},,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{scrollToTop:function(){function t(i){r+=Math.PI/(e/(i-o)),r>=Math.PI&&window.scrollTo(0,0),0!==window.scrollY&&(window.scrollTo(0,Math.round(n+n*Math.cos(r))),o=i,window.requestAnimationFrame(t))}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=window.scrollY/2,r=0,o=performance.now();window.requestAnimationFrame(t)},addZero:function(t){return t<10?"0"+t:t},lang:function(t){var e=JSON.parse(config.language);return e[t]}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(97),i=r(o);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},,,function(t,e,n){var r=n(52)("wks"),o=n(54),i=n(7).Symbol,a="function"==typeof i,s=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};s.store=r},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){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(18);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(25)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(12),o=n(26);t.exports=n(10)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(9),o=n(113),i=n(131),a=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(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 r=n(22);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(7),o=n(8),i=n(13),a=n(11),s="prototype",c=function(t,e,n){var u,l,f,d=t&c.F,p=t&c.G,v=t&c.S,h=t&c.P,m=t&c.B,_=t&c.W,g=p?o:o[e]||(o[e]={}),y=g[s],S=p?r:v?r[e]:(r[e]||{})[s];p&&(n=e);for(u in n)l=!d&&S&&void 0!==S[u],l&&u in g||(f=l?S[u]:n[u],g[u]=p&&"function"!=typeof S[u]?n[u]:m&&l?i(f,r):_&&S[u]==f?function(t){var e=function(e,n,r){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,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(f):h&&"function"==typeof f?i(Function.call,f):f,h&&((g.virtual||(g.virtual={}))[u]=f,t&c.R&&y&&!y[u]&&a(y,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},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 r=n(18),o=n(7).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},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,n){var r=n(12).f,o=n(17),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(52)("keys"),o=n(54);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(45),o=n(23);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(29),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(23);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(42),o=n(6)("iterator"),i=n(15);t.exports=n(8).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(129)(!0);n(48)(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=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r,o;r=n(81);var i=n(170);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},,,,,,function(t,e,n){"use strict";function r(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}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(20),a=o(i),s=n(1),c=o(s),u=n(77),l=r(u),f=n(78),d=o(f);a.default.use(c.default),e.default=new c.default.Store({state:{items:[],searchTitle:"",userFilter:"",loading:!1,clickedMoreLoading:!1,paginator:null,colorScheme:"",overlay:!1,modalData:{},loadingModalData:!0,seasonActiveModal:1,modalType:""},mutations:d.default,actions:l})},function(t,e,n){var r=n(16),o=n(6)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=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=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(7).document&&document.documentElement},function(t,e,n){var r=n(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(15),o=n(6)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(9);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(50),o=n(14),i=n(126),a=n(11),s=n(17),c=n(15),u=n(115),l=n(27),f=n(122),d=n(6)("iterator"),p=!([].keys&&"next"in[].keys()),v="@@iterator",h="keys",m="values",_=function(){return this};t.exports=function(t,e,n,g,y,S,A){u(n,e,g);var b,E,T,M=function(t){if(!p&&t in I)return I[t];switch(t){case h:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",w=y==m,O=!1,I=t.prototype,C=I[d]||I[v]||y&&I[y],L=C||M(y),R=y?w?M("entries"):L:void 0,D="Array"==e?I.entries||C:C;if(D&&(T=f(D.call(new t)),T!==Object.prototype&&(l(T,x,!0),r||s(T,d)||a(T,d,_))),w&&C&&C.name!==m&&(O=!0,L=function(){return C.call(this)}),r&&!A||!p&&!O&&I[d]||a(I,d,L),c[e]=L,c[x]=_,y)if(b={values:w?L:M(m),keys:S?L:M(h),entries:R},A)for(E in b)E in I||i(I,E,b[E]);else o(o.P+o.F*(p||O),e,b);return b}},function(t,e,n){var r=n(6)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e){t.exports=!0},function(t,e,n){var r=n(123),o=n(43);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(7),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r,o,i,a=n(13),s=n(114),c=n(44),u=n(24),l=n(7),f=l.process,d=l.setImmediate,p=l.clearImmediate,v=l.MessageChannel,h=0,m={},_="onreadystatechange",g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},y=function(t){g.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++h]=function(){s("function"==typeof t?t:Function(t),e)},r(h),h},p=function(t){delete m[t]},"process"==n(16)(f)?r=function(t){f.nextTick(a(g,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=y,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):r=_ in u("script")?function(t){c.appendChild(u("script"))[_]=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:d,clear:p}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){n(134);for(var r=n(7),o=n(11),i=n(15),a=n(6)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&o(f,a,u),i[u]=i.Array}},,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=r(o);i.default.defaults.headers.common["X-CSRF-TOKEN"]=document.querySelector("#token").getAttribute("content");var a=document.body.dataset,s=a.url,c=a.uri,u=a.auth,l=a.scoutDriver,f=a.language,d={uri:c,url:s,auth:u,language:f,scoutDriver:l,poster:s+"/assets/poster",posterTMDB:"http://image.tmdb.org/t/p/w185",api:s+"/api"};window.config=d,e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(20),i=r(o),a=n(56),s=r(a),c=n(75),u=r(c),l=n(146),f=r(l),d=n(147),p=r(d),v=n(149),h=r(v),m=n(153),_=r(m);i.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:"/search",component:p.default,name:"search"},{path:"/settings",component:h.default,name:"settings"},{path:"/suggestions",component:_.default,name:"suggestions"},{path:"/trending",component:_.default,name:"trending"},{path:"/upcoming",component:_.default,name:"upcoming"},{path:"*",component:f.default}]})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=t.commit;n("SET_LOADING",!0),(0,l.default)(config.api+"/items/"+e.name+"/"+e.filter).then(function(t){var e=t.data,r=e.data,o=e.next_page_url;n("SET_ITEMS",r),n("SET_PAGINATOR",o),setTimeout(function(){n("SET_LOADING",!1)},500)},function(t){404==t.status&&(window.location.href=config.url)})}function i(t,e){var n=t.commit;n("SET_CLICKED_LOADING",!0),(0,l.default)(e).then(function(t){var e=t.data,r=e.data,o=e.next_page_url;n("SET_PAGINATOR",o),setTimeout(function(){n("PUSH_TO_ITEMS",r),n("SET_CLICKED_LOADING",!1)},500)})}function a(t,e){var n=t.commit;n("SET_SEARCH_TITLE",e)}function s(t,e){var n=t.commit;localStorage.setItem("color",e),n("SET_COLOR_SCHEME",e)}function c(t,e){var n=t.commit;n("SET_LOADING_MODAL_DATA",!0),(0,l.default)(config.api+"/episodes/"+e.tmdb_id).then(function(t){n("SET_MODAL_DATA",{title:e.title,episodes:t.data.episodes,spoiler:t.data.spoiler}),setTimeout(function(){n("SET_LOADING_MODAL_DATA",!1)},300)})}Object.defineProperty(e,"__esModule",{value:!0}),e.loadItems=o,e.loadMoreItems=i,e.setSearchTitle=a,e.setColorScheme=s,e.fetchEpisodes=c;var u=n(4),l=r(u)},function(t,e,n){"use strict";function r(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}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(101),s=o(a),c=n(102),u=o(c),l=n(79),f=r(l);e.default=(i={},(0,s.default)(i,f.SET_SEARCH_TITLE,function(t,e){t.searchTitle=e}),(0,s.default)(i,f.SET_USER_FILTER,function(t,e){t.userFilter=e}),(0,s.default)(i,f.SET_ITEMS,function(t,e){t.items=e}),(0,s.default)(i,f.PUSH_TO_ITEMS,function(t,e){var n;(n=t.items).push.apply(n,(0,u.default)(e))}),(0,s.default)(i,f.SET_LOADING,function(t,e){t.loading=e}),(0,s.default)(i,f.SET_PAGINATOR,function(t,e){t.paginator=e}),(0,s.default)(i,f.SET_CLICKED_LOADING,function(t,e){t.clickedMoreLoading=e}),(0,s.default)(i,f.SET_COLOR_SCHEME,function(t,e){t.colorScheme=e}),(0,s.default)(i,f.CLOSE_MODAL,function(t){t.modalType=!1,t.overlay=!1,t.seasonActiveModal=1,document.body.classList.remove("open-modal")}),(0,s.default)(i,f.OPEN_MODAL,function(t,e){t.overlay=!0,t.modalType=e.type,t.modalData=e.data,document.body.classList.add("open-modal")}),(0,s.default)(i,f.SET_LOADING_MODAL_DATA,function(t,e){t.loadingModalData=e}),(0,s.default)(i,f.SET_SEASON_ACTIVE_MODAL,function(t,e){t.seasonActiveModal=e}),(0,s.default)(i,f.SET_MODAL_DATA,function(t,e){t.modalData=e}),i)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SET_SEARCH_TITLE="SET_SEARCH_TITLE",e.SET_USER_FILTER="SET_USER_FILTER",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"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(35),s=r(a),c=n(1),u=n(2),l=r(u),f=n(4),d=r(f);e.default={mixins:[l.default],created:function(){this.fetchData(),this.fetchSettings()},data:function(){return{displayGenre:null,displayDate:null}},computed:(0,i.default)({},(0,c.mapState)({loading:function(t){return t.loading},items:function(t){return t.items},userFilter:function(t){return t.userFilter},clickedMoreLoading:function(t){return t.clickedMoreLoading},paginator:function(t){return t.paginator}})),methods:(0,i.default)({},(0,c.mapActions)(["loadItems","loadMoreItems","setSearchTitle"]),{fetchData:function(){var t=this.$route.name;this.loadItems({name:t,filter:this.userFilter}),this.setSearchTitle("")},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})},loadMore:function(){this.loadMoreItems(this.paginator)}}),components:{Item:s.default},watch:{$route:function(){this.fetchData()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(4),s=r(a),c=n(19),u=r(c),l=n(2),f=r(l),d=n(1),p=700;e.default={mixins:[f.default],props:["item","genre","date"],created:function(){this.saveNewRating=(0,u.default)(this.saveNewRating,p)},data:function(){return{localItem:this.item,latestEpisode:this.item.latest_episode,auth:config.auth,prevRating:null,rated:!1,disabled:!1}},computed:{poster:function(){return this.localItem.rating?config.poster+this.localItem.poster:config.posterTMDB+this.localItem.poster},suggestions:function(){return"/suggestions?for="+this.localItem.tmdb_id+"&type="+this.localItem.media_type},noImage:function(){return config.url+"/assets/img/no-image.png"},released:function t(){var e=this.$route.path,t=new Date(1e3*this.localItem.released);if("/upcoming"==e){var n=navigator.language||navigator.userLanguage;return t.toLocaleDateString(n,{year:"numeric",month:"numeric",day:"numeric"})}return t.getFullYear()},youtube:function(){return"https://www.youtube.com/results?search_query="+this.localItem.title+" "+this.released+" Trailer"},season:function(){return this.latestEpisode?this.addZero(this.latestEpisode.season_number):"01"},episode:function(){return this.latestEpisode?this.addZero(this.latestEpisode.episode_number):"0"}},methods:(0,i.default)({},(0,d.mapMutations)(["OPEN_MODAL"]),(0,d.mapActions)(["fetchEpisodes"]),{editEpisodes:function(){this.fetchEpisodes({tmdb_id:this.localItem.tmdb_id,title:this.localItem.title}),this.openModal()},openModal:function(){this.auth&&this.OPEN_MODAL({type:"season",data:{tmdb_id:this.localItem.tmdb_id,title:this.localItem.title}})},changeRating:function(){this.auth&&(this.prevRating=this.localItem.rating,this.localItem.rating=3==this.prevRating?1:+this.prevRating+1,this.saveNewRating())},saveNewRating:function(){var t=this;s.default.patch(config.api+"/change-rating/"+this.localItem.id,{rating:this.localItem.rating}).catch(function(e){t.localItem.rating=t.prevRating,alert("Error in saveNewRating()")})},addNewItem:function(){var t=this;this.auth&&(this.disabled=!0,this.rated=!0,s.default.post(config.api+"/add",{item:this.localItem}).then(function(e){t.localItem=e.data,t.disabled=!1,t.rated=!1},function(e){409==e.status&&alert(t.localItem.title+" already exists!")}))},removeItem:function(){var t=this;if(this.auth){var e=window.confirm(this.lang("confirm delete"));e&&s.default.delete(config.api+"/remove/"+this.localItem.id).then(function(e){t.localItem.rating=null},function(t){alert("Error in removeItem()")})}}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(141),i=r(o),a=n(100),s=r(a),c=n(3),u=r(c),l=n(35),f=r(l),d=n(2),p=r(d),v=n(4),h=r(v),m=n(1);e.default={mixins:[p.default],created:function(){this.initSearch()},data:function(){return{floxItems:[],tmdbItems:[]}},computed:(0,u.default)({},(0,m.mapState)({searchTitle:function(t){return t.searchTitle},loading:function(t){return t.loading}})),methods:(0,u.default)({},(0,m.mapMutations)(["SET_SEARCH_TITLE","SET_LOADING"]),{initSearch:function(){var t=this;this.SET_SEARCH_TITLE(this.$route.query.q),this.SET_LOADING(!0),this.searchFlox(),this.searchTMDB().then(function(){setTimeout(function(){t.SET_LOADING(!1)},500)})},searchFlox:function(){var t=this;(0,h.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)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!config.auth){e.next=3;break}return e.next=3,(0,h.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){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(1),s=n(2),c=r(s),u=n(4),l=r(u);e.default={mixins:[c.default],data:function(){return{uploadSuccess:!1,uploadedFile:null}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}}),{exportLink:function(){return config.api+"/export"}}),methods:(0,i.default)({},(0,a.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){var e=window.confirm(this.lang("import warn"));e&&(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";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(152),s=r(a),c=n(151),u=r(c),l=n(148),f=r(l),d=n(150),p=r(d),v=n(1),h=n(2),m=r(h);e.default={mixins:[m.default],components:{User:s.default,Options:u.default,Backup:f.default,Misc:p.default},data:function(){return{activeTab:"user"}},computed:(0,i.default)({},(0,v.mapState)({loading:function(t){return t.loading}})),methods:{changeActiveTab:function(t){this.activeTab=t}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(1),s=n(2),c=r(s),u=n(4),l=r(u);e.default={mixins:[c.default],created:function(){this.checkUpdate(),this.fetchVersion()},data:function(){return{version:"",isUpdate:null}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}}),{updateMessage:function(){return this.isUpdate===!1?this.lang("no update"):this.lang("checking update")}}),methods:(0,i.default)({},(0,a.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})},updateGenre:function(){var t=this;this.SET_LOADING(!0),l.default.patch(config.api+"/update-genre").then(function(){t.SET_LOADING(!1)})},updateAlternativeTitles:function(){var t=this;this.SET_LOADING(!0),l.default.patch(config.api+"/update-alternative-titles").then(function(){t.SET_LOADING(!1)})},syncScout:function(){var t=this;this.SET_LOADING(!0),(0,l.default)(config.api+"/sync-scout").then(function(){t.SET_LOADING(!1)})}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(1),s=n(2),c=r(s),u=n(4),l=r(u),f=n(19),d=r(f),p=700;e.default={mixins:[c.default],created:function(){this.fetchOptions(),this.updateOptions=(0,d.default)(this.updateOptions,p)},data:function(){return{genre:null,date:null,spoiler:null}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}})),methods:(0,i.default)({},(0,a.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),t.genre=n.genre,t.date=n.date,t.spoiler=n.spoiler})},updateOptions:function(){var t=this.date,e=this.genre,n=this.spoiler;l.default.patch(config.api+"/settings",{date:t,genre:e,spoiler:n}).catch(function(){alert("Error")})}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(1),s=n(2),c=r(s),u=n(4),l=r(u),f=n(19),d=r(f),p=2e3;e.default={mixins:[c.default],created:function(){this.fetchUserData(),this.clearSuccessMessage=(0,d.default)(this.clearSuccessMessage,p)},data:function(){return{username:"",password:"",success:!1}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}})),methods:(0,i.default)({},(0,a.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";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(35),s=r(a),c=n(2),u=r(c),l=n(4),f=r(l),d=n(1);e.default={mixins:[u.default],created:function(){this.init()},data:function(){return{items:[]}},computed:(0,i.default)({},(0,d.mapState)({loading:function(t){return t.loading}})),methods:(0,i.default)({},(0,d.mapMutations)(["SET_LOADING"]),{init:function(){this.SET_LOADING(!0);var t=this.$route.path;"/trending"==t?this.initTrending():"/suggestions"==t?this.initSuggestions():"/upcoming"==t&&this.initUpcoming()},initSuggestions:function(){var t=this,e=this.$route.query.for,n=this.$route.query.type;(0,f.default)(config.api+"/suggestions/"+e+"/"+n).then(function(e){t.items=e.data,t.SET_LOADING(!1)})},initTrending:function(){var t=this;(0,f.default)(config.api+"/trending").then(function(e){t.items=e.data,t.SET_LOADING(!1)})},initUpcoming:function(){var t=this;(0,f.default)(config.api+"/upcoming").then(function(e){t.items=e.data,t.SET_LOADING(!1)})}}),components:{Item:s.default},watch:{$route:function(){this.scrollToTop(),this.init()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(1),s=n(2),c=r(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,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}}))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(2),s=r(a),c=n(41),u=(r(c),n(1));e.default={mixins:[s.default],created:function(){this.checkForUserFilter()},computed:(0,i.default)({},(0,u.mapState)({userFilter:function(t){return t.userFilter},colorScheme:function(t){return t.colorScheme}}),{root:function(){return config.uri}}),methods:(0,i.default)({},(0,u.mapActions)(["setColorScheme","loadItems"]),(0,u.mapMutations)(["SET_USER_FILTER"]),{toggleColorScheme:function(){var t="light"==this.colorScheme?"dark":"light";this.setColorScheme(t)},checkForUserFilter:function(){localStorage.getItem("filter")||localStorage.setItem("filter","created_at"),this.SET_USER_FILTER(localStorage.getItem("filter"))},setUserFilter:function(t){var e=this.$route.name;localStorage.setItem("filter",t),this.SET_USER_FILTER(t),this.loadItems({name:e,filter:t})}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=r(o),a=n(2),s=r(a);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;i.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";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(158),s=r(a),c=n(1);e.default={computed:(0,i.default)({},(0,c.mapState)({overlay:function(t){return t.overlay}})),methods:(0,i.default)({},(0,c.mapMutations)(["CLOSE_MODAL"])),components:{Season:s.default}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(96),i=r(o),a=n(3),s=r(a),c=n(1),u=n(4),l=r(u),f=n(2),d=r(f);e.default={mixins:[d.default],computed:(0,s.default)({},(0,c.mapState)({modalType:function(t){return t.modalType},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"]),{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],r=!0,o=!1,a=void 0;try{for(var s,c=(0,i.default)(n);!(r=(s=c.next()).done);r=!0){var u=s.value;u.seen=!e}}catch(t){o=!0,a=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}},toggleEpisode:function(t){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,r=!1,o=void 0;try{for(var a,s=(0,i.default)(e);!(n=(a=s.next()).done);n=!0){var c=a.value;if(!c.seen)return!1}}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return!0}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),i=r(o);e.default={mixins:[i.default],mounted:function(){this.initSticky()},data:function(){return{sticky:!1}},computed:{algolia:function(){return"algolia"==config.scoutDriver&&this.$route.query.q},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:{initSticky:function(){var t=this,e=document.querySelector("header").scrollHeight;window.onscroll=function(){t.sticky=document.body.scrollTop+document.documentElement.scrollTop>e}},search:function(){""!=this.title&&this.$router.push({path:"/search?q="+this.title})}}}},function(t,e,n){t.exports={default:n(103),__esModule:!0}},function(t,e,n){t.exports={default:n(104),__esModule:!0}},function(t,e,n){t.exports={default:n(105),__esModule:!0}},function(t,e,n){t.exports={default:n(106),__esModule:!0}},function(t,e,n){t.exports={default:n(107),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(99),i=r(o);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){function r(o,a){try{var s=e[o](a),c=s.value}catch(t){return void n(t)}return s.done?void t(c):i.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)})}return r("next")})}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(98),i=r(o);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(95),i=r(o);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,i.default)(t)}},function(t,e,n){n(34),n(133),t.exports=n(8).Array.from},function(t,e,n){n(55),n(34),t.exports=n(132)},function(t,e,n){n(135),t.exports=n(8).Object.assign},function(t,e,n){n(136);var r=n(8).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(137),n(34),n(55),n(138),t.exports=n(8).Promise},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(30),o=n(31),i=n(130);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),l=i(a,u);if(t&&n!=n){for(;u>l;)if(s=c[l++],
|
|
s!=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){"use strict";var r=n(12),o=n(26);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(13),o=n(47),i=n(46),a=n(9),s=n(31),c=n(33),u={},l={},e=t.exports=function(t,e,n,f,d){var p,v,h,m,_=d?function(){return t}:c(t),g=r(n,f,e?2:1),y=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(i(_)){for(p=s(t.length);p>y;y++)if(m=e?g(a(v=t[y])[0],v[1]):g(t[y]),m===u||m===l)return m}else for(h=_.call(t);!(v=h.next()).done;)if(m=o(h,g,v.value,e),m===u||m===l)return m};e.BREAK=u,e.RETURN=l},function(t,e,n){t.exports=!n(10)&&!n(25)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?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){"use strict";var r=n(119),o=n(26),i=n(27),a={};n(11)(a,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(7),o=n(53).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(16)(a);t.exports=function(){var t,e,n,u=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(i){var l=!0,f=document.createTextNode("");new i(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(){o.call(r,u)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(51),o=n(121),i=n(124),a=n(32),s=n(45),c=Object.assign;t.exports=!c||n(25)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,u=1,l=o.f,f=i.f;c>u;)for(var d,p=s(arguments[u++]),v=l?r(p).concat(l(p)):r(p),h=v.length,m=0;h>m;)f.call(p,d=v[m++])&&(n[d]=p[d]);return n}:c},function(t,e,n){var r=n(9),o=n(120),i=n(43),a=n(28)("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,e=n(24)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(44).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;r--;)delete u[c][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(12),o=n(9),i=n(51);t.exports=n(10)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(17),o=n(32),i=n(28)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(17),o=n(30),i=n(110)(!1),a=n(28)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){t.exports=n(11)},function(t,e,n){"use strict";var r=n(7),o=n(8),i=n(12),a=n(10),s=n(6)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(9),o=n(22),i=n(6)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(29),o=n(23);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var r=n(29),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(18);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(9),o=n(33);t.exports=n(8).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){"use strict";var r=n(13),o=n(14),i=n(32),a=n(47),s=n(46),c=n(31),u=n(111),l=n(33);o(o.S+o.F*!n(49)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,d=i(t),p="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,m=void 0!==h,_=0,g=l(d);if(m&&(h=r(h,v>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,_,m?h(d[_],_):d[_]);else for(f=g.call(d),n=new p;!(o=f.next()).done;_++)u(n,_,m?a(f,h,[o.value,_],!0):o.value);return n.length=_,n}})},function(t,e,n){"use strict";var r=n(108),o=n(116),i=n(15),a=n(30);t.exports=n(48)(Array,"Array",function(t,e){this._t=a(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,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(14);r(r.S+r.F,"Object",{assign:n(118)})},function(t,e,n){var r=n(14);r(r.S+r.F*!n(10),"Object",{defineProperty:n(12).f})},function(t,e){},function(t,e,n){"use strict";var r,o,i,a=n(50),s=n(7),c=n(13),u=n(42),l=n(14),f=n(18),d=n(22),p=n(109),v=n(112),h=n(128),m=n(53).set,_=n(117)(),g="Promise",y=s.TypeError,S=s.process,A=s[g],S=s.process,b="process"==u(S),E=function(){},T=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n(6)("species")]=function(t){t(E,E)};return(b||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e}catch(t){}}(),M=function(t,e){return t===e||t===A&&e===i},x=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},w=function(t){return M(A,t)?new O(t):new o(t)},O=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw y("Bad Promise constructor");e=t,n=r}),this.resolve=d(e),this.reject=d(n)},I=function(t){try{t()}catch(t){return{error:t}}},C=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a=o?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{a?(o||(2==t._h&&D(t),t._h=1),a===!0?n=r:(u&&u.enter(),n=a(r),u&&u.exit()),n===e.promise?c(y("Promise-chain cycle")):(i=x(n))?i.call(n,s,c):s(n)):c(r)}catch(t){c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){m.call(s,function(){var e,n,r,o=t._v;if(R(t)&&(e=I(function(){b?S.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=b||R(t)?2:1),t._a=void 0,e)throw e.error})},R=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!R(e.promise))return!1;return!0},D=function(t){m.call(s,function(){var e;b?S.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},k=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()),C(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw y("Promise can't be resolved itself");(e=x(t))?_(function(){var r={_w:n,_d:!1};try{e.call(t,c(F,r,1),c(k,r,1))}catch(t){k.call(r,t)}}):(n._v=t,n._s=1,C(n,!1))}catch(t){k.call({_w:n,_d:!1},t)}}};T||(A=function(t){p(this,A,g,"_h"),d(t),r.call(this);try{t(c(F,this,1),c(k,this,1))}catch(t){k.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(125)(A.prototype,{then:function(t,e){var n=w(h(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=b?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),O=function(){var t=new r;this.promise=t,this.resolve=c(F,t,1),this.reject=c(k,t,1)}),l(l.G+l.W+l.F*!T,{Promise:A}),n(27)(A,g),n(127)(g),i=n(8)[g],l(l.S+l.F*!T,g,{reject:function(t){var e=w(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(a||!T),g,{resolve:function(t){if(t instanceof A&&M(t.constructor,this))return t;var e=w(this),n=e.resolve;return n(t),e.promise}}),l(l.S+l.F*!(T&&n(49)(function(t){A.all(t).catch(E)})),g,{all:function(t){var e=this,n=w(e),r=n.resolve,o=n.reject,i=I(function(){var n=[],i=0,a=1;v(t,!1,function(t){var s=i++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=w(e),r=n.reject,o=I(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){(function(e){var r="object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this,o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(140),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}).call(e,function(){return this}())},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new p(r||[]);return a._invoke=l(t,n,s),a}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function a(){}function s(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function e(n,r,i,a){var s=o(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,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(u).then(function(t){c.value=t,i(c)},a)}a(s.arg)}function r(t,n){function r(){return new Promise(function(r,o){e(t,n,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var i;this._invoke=r}function l(t,e,n){var r=T;return function(i,a){if(r===x)throw new Error("Generator is already running");if(r===w){if("throw"===i)throw a;return h()}for(;;){var s=n.delegate;if(s){if("return"===i||"throw"===i&&s.iterator[i]===m){n.delegate=null;var c=s.iterator.return;if(c){var u=o(c,s.iterator,a);if("throw"===u.type){i="throw",a=u.arg;continue}}if("return"===i)continue}var u=o(s.iterator[i],s.iterator,a);if("throw"===u.type){n.delegate=null,i="throw",a=u.arg;continue}i="next",a=m;var l=u.arg;if(!l.done)return r=M,l;n[s.resultName]=l.value,n.next=s.nextLoc,n.delegate=null}if("next"===i)n.sent=n._sent=a;else if("throw"===i){if(r===T)throw r=w,a;n.dispatchException(a)&&(i="next",a=m)}else"return"===i&&n.abrupt("return",a);r=x;var u=o(t,e,n);if("normal"===u.type){r=n.done?w:M;var l={value:u.arg,done:n.done};if(u.arg!==O)return l;n.delegate&&"next"===i&&(a=m)}else"throw"===u.type&&(r=w,i="throw",a=u.arg)}}}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 v(t){if(t){var e=t[S];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:h}}function h(){return{value:m,done:!0}}var m,_=Object.prototype,g=_.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},S=y.iterator||"@@iterator",A=y.toStringTag||"@@toStringTag",b="object"==typeof t,E=e.regeneratorRuntime;if(E)return void(b&&(t.exports=E));E=e.regeneratorRuntime=b?t.exports:{},E.wrap=r;var T="suspendedStart",M="suspendedYield",x="executing",w="completed",O={},I={};I[S]=function(){return this};var C=Object.getPrototypeOf,L=C&&C(C(v([])));L&&L!==_&&g.call(L,S)&&(I=L);var R=s.prototype=i.prototype=Object.create(I);a.prototype=R.constructor=s,s.constructor=a,s[A]=a.displayName="GeneratorFunction",E.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},E.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,A in t||(t[A]="GeneratorFunction")),t.prototype=Object.create(R),t},E.awrap=function(t){return{__await:t}},c(u.prototype),E.AsyncIterator=u,E.async=function(t,e,n,o){var i=new u(r(t,e,n,o));return E.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},c(R),R[A]="Generator",R.toString=function(){return"[object Generator]"},E.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},E.values=v,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.tryEntries.forEach(d),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},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,r){return i.type="throw",i.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),s=g.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),O},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},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),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},O}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(57))},function(t,e,n){t.exports=n(139)},,function(t,e){},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){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){var r,o;r=n(80);var i=n(165);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(82);var i=n(162);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(83);var i=n(160);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(84);var i=n(164);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(85);var i=n(171);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(86);var i=n(173);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(87);var i=n(167);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(88);var i=n(168);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(89);var i=n(169);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(90);var i=n(174);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(91);var i=n(161);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(92);var i=n(172);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(93);var i=n(163);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(94);var i=n(166);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e){t.exports={render: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:"export-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")}})])])},staticRenderFns:[]}},function(t,e,n){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("span",{staticClass:"top-bar"}),t._v(" "),r("div",{staticClass:"login-wrap"},[r("img",{staticClass:"logo-login",attrs:{src:n(144),alt:"Flox",width:"108",height:"32"}}),t._v(" "),r("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.login()}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",placeholder:t.lang("username"),autofocus:""},domProps:{value:t._s(t.username)},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}}),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:t.lang("password")},domProps:{value:t._s(t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),r("span",{staticClass:"login-error"},[t.error?r("span",[t._v(t._s(t.lang("login error")))]):t._e()]),t._v(" "),r("input",{class:t.errorShake?"shake-horizontal shake-constant":"",attrs:{type:"submit"},domProps:{value:t.lang("login button")}})])])])},staticRenderFns:[]}},function(t,e){t.exports={render: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()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return"season"==t.modalType?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,r){return n("span",{staticClass:"season-number",class:{active:r==t.seasonActiveModal,completed:t.seasonCompleted(r)},on:{click:function(e){t.SET_SEASON_ACTIVE_MODAL(r)}}},[t._v("\n S"+t._s(t.addZero(r))+"\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(" "),n("span",{staticClass:"header-seen",on:{click:function(e){t.toggleAll()}}},[t._v("Toggle all")])]),t._v(" "),t.loadingModalData?t._e():n("div",{staticClass:"modal-content"},t._l(t.episodes[t.seasonActiveModal],function(e,r){return n("div",{staticClass:"modal-item",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(" "),n("span",{staticClass:"episode-seen",class:{seen:e.seen}},[n("i")])])}))]):t._e()},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"loader fullsize-loader"},[n("i")])}]}},function(t,e){t.exports={render: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:"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(" "),n("span",{class:{active:"misc"==t.activeTab},on:{click:function(e){t.changeActiveTab("misc")}}},[t._v(t._s(t.lang("tab misc")))])]),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)])},staticRenderFns:[]}},function(t,e){t.exports={render: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.items,function(e,r){return n("Item",{key:r,attrs:{item:e,genre:t.displayGenre,date:t.displayDate}})}),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()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"search-wrap",class:{sticky:t.sticky}},[n("div",{staticClass:"wrap"},[n("form",{staticClass:"search-form",on:{submit:function(e){e.preventDefault(),t.search()}}},[n("router-link",{attrs:{to:"/"}},[n("i",{staticClass:"icon-logo-small",on:{click:function(e){t.scrollToTop()}}})]),t._v(" "),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._s(t.title)},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}}),t._v(" "),t.algolia?n("i",{staticClass:"icon-algolia"}):t._e()],1)])])},staticRenderFns:[]}},function(t,e){t.exports={render: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._s(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._s(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")}})])])},staticRenderFns:[]}},function(t,e){t.exports={render: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.items,function(t,e){return n("Item",{key:e,attrs:{item:t,genre:!0,date:!0}})})),t._v(" "),t.loading?n("span",{staticClass:"loader fullsize-loader"},[n("i")]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render: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("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")])])])])},staticRenderFns:[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 ")])}]}},function(t,e){t.exports={render: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"},[n("div",{staticClass:"item-image-wrap"},[t.localItem.rating?n("span",{class:"item-rating rating-"+t.localItem.rating,on:{click:function(e){t.changeRating()}}},[n("i",{staticClass:"icon-rating"})]):t._e(),t._v(" "),t.localItem.rating?t._e():n("span",{staticClass:"item-rating item-new",class:{disabled:t.disabled},on:{click:function(e){t.addNewItem()}}},[t.rated?n("span",{staticClass:"loader smallsize-loader"},[n("i")]):t._e(),t._v(" "),t.rated?t._e():n("i",{staticClass:"icon-add"})]),t._v(" "),t.localItem.tmdb_id?n("router-link",{staticClass:"recommend-item",attrs:{to:t.suggestions}},[t._v(t._s(t.lang("suggestions")))]):t._e(),t._v(" "),t.localItem.rating&&t.auth?n("span",{staticClass:"remove-item",on:{click:function(e){t.removeItem()}}},[t._v(t._s(t.lang("delete movie")))]):t._e(),t._v(" "),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(" "),"tv"==t.localItem.media_type&&t.localItem.rating&&t.localItem.tmdb_id?n("span",{staticClass:"show-episode",on:{click:function(e){t.editEpisodes()}}},[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))]):t._e(),t._v(" "),n("a",{staticClass:"item-title",attrs:{href:t.youtube,target:"_blank",title:t.localItem.title}},[t._v(t._s(t.localItem.title))]),t._v(" "),1==t.genre?n("span",{staticClass:"item-genre"},[t._v(t._s(t.localItem.genre))]):t._e()])])])},staticRenderFns:[]}},function(t,e){t.exports={render: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("div",{staticClass:"misc-btn-wrap"},[n("button",{staticClass:"export-btn",on:{click:function(e){t.fetchFiles()}}},[t._v("Update files")]),t._v(" "),n("button",{staticClass:"export-btn",on:{click:function(e){t.updateGenre()}}},[t._v(t._s(t.lang("update genre")))]),t._v(" "),n("button",{staticClass:"export-btn",on:{click:function(e){t.updateAlternativeTitles()}}},[t._v("Update alternative titles")]),t._v(" "),n("button",{staticClass:"export-btn",on:{click:function(e){t.syncScout()}}},[t._v(t._s(t.lang("sync scout")))])])])},staticRenderFns:[]}},function(t,e){t.exports={render: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"}},[n("season")],1),t._v(" "),t.overlay?n("span",{staticClass:"overlay",on:{click:function(e){t.CLOSE_MODAL()}}}):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",{staticClass:"settings-box no-select"},[n("div",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.genre,expression:"genre"}],attrs:{type:"checkbox",value:"genre",id:"genre"},domProps:{checked:Array.isArray(t.genre)?t._i(t.genre,"genre")>-1:t.genre},on:{change:t.updateOptions,click:function(e){var n=t.genre,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i="genre",a=t._i(n,i);o?a<0&&(t.genre=n.concat(i)):a>-1&&(t.genre=n.slice(0,a).concat(n.slice(a+1)))}else t.genre=o}}}),n("label",{attrs:{for:"genre"}},[t._v(t._s(t.lang("display genre")))])]),t._v(" "),n("div",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.date,expression:"date"}],attrs:{type:"checkbox",value:"date",id:"date"},domProps:{checked:Array.isArray(t.date)?t._i(t.date,"date")>-1:t.date},on:{change:t.updateOptions,click:function(e){var n=t.date,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i="date",a=t._i(n,i);o?a<0&&(t.date=n.concat(i)):a>-1&&(t.date=n.slice(0,a).concat(n.slice(a+1)))}else t.date=o}}}),n("label",{attrs:{for:"date"}},[t._v(t._s(t.lang("display date")))])]),t._v(" "),n("div",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.spoiler,expression:"spoiler"}],attrs:{type:"checkbox",value:"spoiler",id:"spoiler"},domProps:{checked:Array.isArray(t.spoiler)?t._i(t.spoiler,"spoiler")>-1:t.spoiler},on:{change:t.updateOptions,click:function(e){var n=t.spoiler,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i="spoiler",a=t._i(n,i);o?a<0&&(t.spoiler=n.concat(i)):a>-1&&(t.spoiler=n.slice(0,a).concat(n.slice(a+1)))}else t.spoiler=o}}}),n("label",{attrs:{for:"spoiler"}},[t._v(t._s(t.lang("spoiler")))])])])},staticRenderFns:[]}},function(t,e,n){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",[r("div",{staticClass:"wrap"},[r("router-link",{staticClass:"logo",attrs:{to:"/"}},[r("img",{attrs:{src:n(145),alt:"Flox",width:"108",height:"32"}})]),t._v(" "),r("span",{staticClass:"sort-wrap"},[r("i",{staticClass:"icon-sort-time",class:{active:"created_at"==t.userFilter},attrs:{title:t.lang("last seen")},on:{click:function(e){t.setUserFilter("created_at")}}}),t._v(" "),r("i",{staticClass:"icon-sort-star",class:{active:"rating"==t.userFilter},attrs:{title:t.lang("best rated")},on:{click:function(e){t.setUserFilter("rating")}}}),t._v(" "),r("span",{staticClass:"icon-constrast",attrs:{title:t.lang("change color")},on:{click:function(e){t.toggleColorScheme()}}},[r("i")])]),t._v(" "),r("ul",{staticClass:"site-nav"},[r("li",[r("router-link",{attrs:{to:"/trending"}},[t._v(t._s(t.lang("trending")))])],1),t._v(" "),r("li",[r("router-link",{attrs:{to:"/upcoming"}},[t._v(t._s(t.lang("upcoming")))])],1)]),t._v(" "),r("ul",{staticClass:"site-nav-second"},[r("li",[r("router-link",{attrs:{to:"/tv"}},[t._v(t._s(t.lang("tv")))])],1),t._v(" "),r("li",[r("router-link",{attrs:{to:"/movies"}},[t._v(t._s(t.lang("movies")))])],1)])],1)])},staticRenderFns:[]}}]); |