1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-16 15:12:32 +01:00
flox/public/assets/app.js

3 lines
69 KiB
JavaScript
Raw Normal View History

2017-02-08 11:41:42 +01:00
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!");
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=fu
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"},[