(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{231:function(n,t,e){function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}
/**
 * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var i=e(301),s=i.prepareRequestOptions;i.prepareRequestOptions=function(n,t){t.cancelToken&&"object"===r(t.cancelToken)&&(n.cancelToken=t.cancelToken),s(n,t),t.method&&"string"==typeof t.method&&(n.method=t.method)},n.exports=i},257:function(n,t,e){"use strict";var r=e(300),i=e.n(r),s=e(56),a=e.n(s),o=e(291),c=e.n(o),d=e(11);i.a.getPatcher().patch("request",a.a);var p=Object(d.generateRemoteUrl)("dav"),u=i.a.createClient(p);c()(p).pathname;t.a=u},293:function(n,t,e){"use strict";e.d(t,"a",(function(){return r}));
/**
 * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var r="\n\t<oc:fileid />\n\t<d:getlastmodified />\n\t<d:getetag />\n\t<d:getcontenttype />\n\t<d:getcontentlength />\n\t<nc:has-preview />\n\t<oc:favorite />\n\t<d:resourcetype />";'<?xml version="1.0"?>\n\t\t\t<d:propfind xmlns:d="DAV:"\n\t\t\t\txmlns:oc="http://owncloud.org/ns"\n\t\t\t\txmlns:nc="http://nextcloud.org/ns"\n\t\t\t\txmlns:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<d:prop>\n\t\t\t\t\t'.concat(r,"\n\t\t\t\t</d:prop>\n\t\t\t</d:propfind>")},317:function(n,t){},318:function(n,t){},327:function(n,t){},328:function(n,t){},348:function(n,t){},350:function(n,t){},351:function(n,t){},354:function(n,t){},355:function(n,t){},360:function(n,t){},361:function(n,t){},368:function(n,t){},371:function(n,t){},377:function(n,t){},380:function(n,t){},666:function(n,t,e){var r={"./af":385,"./af.js":385,"./ar":386,"./ar-dz":387,"./ar-dz.js":387,"./ar-kw":388,"./ar-kw.js":388,"./ar-ly":389,"./ar-ly.js":389,"./ar-ma":390,"./ar-ma.js":390,"./ar-sa":391,"./ar-sa.js":391,"./ar-tn":392,"./ar-tn.js":392,"./ar.js":386,"./az":393,"./az.js":393,"./be":394,"./be.js":394,"./bg":395,"./bg.js":395,"./bm":396,"./bm.js":396,"./bn":397,"./bn-bd":398,"./bn-bd.js":398,"./bn.js":397,"./bo":399,"./bo.js":399,"./br":400,"./br.js":400,"./bs":401,"./bs.js":401,"./ca":402,"./ca.js":402,"./cs":403,"./cs.js":403,"./cv":404,"./cv.js":404,"./cy":405,"./cy.js":405,"./da":406,"./da.js":406,"./de":407,"./de-at":408,"./de-at.js":408,"./de-ch":409,"./de-ch.js":409,"./de.js":407,"./dv":410,"./dv.js":410,"./el":411,"./el.js":411,"./en-au":412,"./en-au.js":412,"./en-ca":413,"./en-ca.js":413,"./en-gb":414,"./en-gb.js":414,"./en-ie":415,"./en-ie.js":415,"./en-il":416,"./en-il.js":416,"./en-in":417,"./en-in.js":417,"./en-nz":418,"./en-nz.js":418,"./en-sg":419,"./en-sg.js":419,"./eo":420,"./eo.js":420,"./es":421,"./es-do":422,"./es-do.js":422,"./es-mx":423,"./es-mx.js":423,"./es-us":424,"./es-us.js":424,"./es.js":421,"./et":425,"./et.js":425,"./eu":426,"./eu.js":426,"./fa":427,"./fa.js":427,"./fi":428,"./fi.js":428,"./fil":429,"./fil.js":429,"./fo":430,"./fo.js":430,"./fr":431,"./fr-ca":432,"./fr-ca.js":432,"./fr-ch":433,"./fr-ch.js":433,"./fr.js":431,"./fy":434,"./fy.js":434,"./ga":435,"./ga.js":435,"./gd":436,"./gd.js":436,"./gl":437,"./gl.js":437,"./gom-deva":438,"./gom-deva.js":438,"./gom-latn":439,"./gom-latn.js":439,"./gu":440,"./gu.js":440,"./he":441,"./he.js":441,"./hi":442,"./hi.js":442,"./hr":443,"./hr.js":443,"./hu":444,"./hu.js":444,"./hy-am":445,"./hy-am.js":445,"./id":446,"./id.js":446,"./is":447,"./is.js":447,"./it":448,"./it-ch":449,"./it-ch.js":449,"./it.js":448,"./ja":450,"./ja.js":450,"./jv":451,"./jv.js":451,"./ka":452,"./ka.js":452,"./kk":453,"./kk.js":453,"./km":454,"./km.js":454,"./kn":455,"./kn.js":455,"./ko":456,"./ko.js":456,"./ku":457,"./ku.js":457,"./ky":458,"./ky.js":458,"./lb":459,"./lb.js":459,"./lo":460,"./lo.js":460,"./lt":461,"./lt.js":461,"./lv":462,"./lv.js":462,"./me":463,"./me.js":463,"./mi":464,"./mi.js":464,"./mk":465,"./mk.js":465,"./ml":466,"./ml.js":466,"./mn":467,"./mn.js":467,"./mr":468,"./mr.js":468,"./ms":469,"./ms-my":470,"./ms-my.js":470,"./ms.js":469,"./mt":471,"./mt.js":471,"./my":472,"./my.js":472,"./nb":473,"./nb.js":473,"./ne":474,"./ne.js":474,"./nl":475,"./nl-be":476,"./nl-be.js":476,"./nl.js":475,"./nn":477,"./nn.js":477,"./oc-lnc":478,"./oc-lnc.js":478,"./pa-in":479,"./pa-in.js":479,"./pl":480,"./pl.js":480,"./pt":481,"./pt-br":482,"./pt-br.js":482,"./pt.js":481,"./ro":483,"./ro.js":483,"./ru":484,"./ru.js":484,"./sd":485,"./sd.js":485,"./se":486,"./se.js":486,"./si":487,"./si.js":487,"./sk":488,"./sk.js":488,"./sl":489,"./sl.js":489,"./sq":490,"./sq.js":490,"./sr":491,"./sr-cyrl":492,"./sr-cyrl.js":492,"./sr.js":491,"./ss":493,"./ss.js":493,"./sv":494,"./sv.js":494,"./sw":495,"./sw.js":495,"./ta":496,"./ta.js":496,"./te":497,"./te.js":497,"./tet":498,"./tet.js":498,"./tg":499,"./tg.js":499,"./th":500,"./th.js":500,"./tk":501,"./tk.js":501,"./tl-ph":502,"./tl-ph.js":502,"./tlh":503,"./tlh.js":503,"./tr":504,"./tr.js":504,"./tzl":505,"./tzl.js":505,"./tzm":506,"./tzm-latn":507,"./tzm-latn.js":507,"./tzm.js":506,"./ug-cn":508,"./ug-cn.js":508,"./uk":509,"./uk.js":509,"./ur":510,"./ur.js":510,"./uz":511,"./uz-latn":512,"./uz-latn.js":512,"./uz.js":511,"./vi":513,"./vi.js":513,"./x-pseudo":514,"./x-pseudo.js":514,"./yo":515,"./yo.js":515,"./zh-cn":516,"./zh-cn.js":516,"./zh-hk":517,"./zh-hk.js":517,"./zh-mo":518,"./zh-mo.js":518,"./zh-tw":519,"./zh-tw.js":519};function i(n){var t=s(n);return e(t)}function s(n){if(!e.o(r,n)){var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}return r[n]}i.keys=function(){return Object.keys(r)},i.resolve=s,n.exports=i,i.id=666},667:function(n,t,e){"use strict";var r=e(87),i=e.n(r)()(!0);i.push([n.i,".grid-title[data-v-3f8ebca0]{grid-column:1/8;padding:48px 0 12px 0;margin:0}.grid-title span[data-v-3f8ebca0]{font-weight:normal}.grid-title.first-title[data-v-3f8ebca0]{padding:0 0 12px 0}\n","",{version:3,sources:["webpack://src/components/SeparatorVirtualGrid.vue"],names:[],mappings:"AA6CA,6BACC,eAAgB,CAChB,qBAAsB,CACtB,QAAS,CAHV,kCAKE,kBAAmB,CALrB,yCAQE,kBAAmB",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.grid-title {\n\tgrid-column: 1/8;\n\tpadding: 48px 0 12px 0;\n\tmargin: 0;\n\tspan {\n\t\tfont-weight: normal;\n\t}\n\t&.first-title {\n\t\tpadding: 0 0 12px 0;\n\t}\n}\n"],sourceRoot:""}]),t.a=i},668:function(n,t,e){"use strict";var r=e(87),i=e.n(r)()(!0);i.push([n.i,".loader{display:grid;height:60px}\n","",{version:3,sources:["webpack://src/components/Loader.vue"],names:[],mappings:"AAqCA,QACC,YAAa,CACb,WAAY",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.loader {\n\tdisplay: grid;\n\theight: 60px;\n}\n"],sourceRoot:""}]),t.a=i},669:function(n,t,e){"use strict";var r=e(87),i=e.n(r)()(!0);i.push([n.i,"@media (min-width: 0px) and (max-width: 400px){.grid-container[data-v-56a58566]{padding:0px 8px 256px 8px}}@media (min-width: 400px) and (max-width: 700px){.grid-container[data-v-56a58566]{padding:0px 8px 256px 8px}}@media (min-width: 700px) and (max-width: 1024px){.grid-container[data-v-56a58566]{padding:0px 44px 256px 44px}}@media (min-width: 1024px) and (max-width: 1280px){.grid-container[data-v-56a58566]{padding:0px 44px 256px 44px}}@media (min-width: 1280px) and (max-width: 1440px){.grid-container[data-v-56a58566]{padding:0px 66px 256px 66px}}@media (min-width: 1440px) and (max-width: 1600px){.grid-container[data-v-56a58566]{padding:0px 66px 256px 66px}}@media (min-width: 1600px) and (max-width: 2048px){.grid-container[data-v-56a58566]{padding:0px 66px 256px 66px}}@media (min-width: 2048px) and (max-width: 2560px){.grid-container[data-v-56a58566]{padding:0px 88px 256px 88px}}@media (min-width: 2560px) and (max-width: 3440px){.grid-container[data-v-56a58566]{padding:0px 88px 256px 88px}}@media (min-width: 3440px){.grid-container[data-v-56a58566]{padding:0px 88px 256px 88px}}\n","",{version:3,sources:["webpack://src/views/Timeline.vue"],names:[],mappings:"AAkTC,+CACC,iCACC,yBAAkD,CAClD,CAHF,iDACC,iCACC,yBAAkD,CAClD,CAHF,kDACC,iCACC,2BAAkD,CAClD,CAHF,mDACC,iCACC,2BAAkD,CAClD,CAHF,mDACC,iCACC,2BAAkD,CAClD,CAHF,mDACC,iCACC,2BAAkD,CAClD,CAHF,mDACC,iCACC,2BAAkD,CAClD,CAHF,mDACC,iCACC,2BAAkD,CAClD,CAHF,mDACC,iCACC,2BAAkD,CAClD,CAHF,2BACC,iCACC,2BAAkD,CAClD",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$previous: 0;\n@each $size, $config in get('sizes') {\n\t$marginTop: map-get($config, 'marginTop');\n\t$marginW: map-get($config, 'marginW');\n\t// if this is the last entry, only use min-width\n\t$rule: '(min-width: #{$previous}px) and (max-width: #{$size}px)';\n\t@if $size == 'max' {\n\t\t$rule: '(min-width: #{$previous}px)';\n\t}\n\t@media #{$rule} {\n\t\t.grid-container {\n\t\t\tpadding: 0px #{$marginW}px 256px #{$marginW}px;\n\t\t}\n\t}\n\t$previous: $size;\n}\n"],sourceRoot:""}]),t.a=i},673:function(n,t,e){"use strict";e.r(t);var r=e(227),i=e(57),s=e(33),a=e(20),o=e(88),c=e(257),d=e(293),p=e(299);function u(n,t,e,r,i,s,a){try{var o=n[s](a),c=o.value}catch(n){return void e(n)}o.done?t(c):Promise.resolve(c).then(r,i)}function l(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var s=n.apply(t,e);function a(n){u(s,r,i,a,o,"next",n)}function o(n){u(s,r,i,a,o,"throw",n)}a(void 0)}))}}
/**
 * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var m=function(){return h.apply(this,arguments)};function h(){return(h=l(regeneratorRuntime.mark((function n(){var t,e,r,i,u,l,m=arguments;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=m.length>0&&void 0!==m[0]&&m[0],e=m.length>1&&void 0!==m[1]?m[1]:{},e=Object.assign({},{page:0,perPage:10*p.sizes.max.count,mimesType:o.a},e),r="/files/".concat(Object(a.getCurrentUser)().uid),i=e.mimesType.reduce((function(n,t){return"".concat(n,"\n\t\t<d:eq>\n\t\t\t<d:prop>\n\t\t\t\t<d:getcontenttype/>\n\t\t\t</d:prop>\n\t\t\t<d:literal>").concat(t,"</d:literal>\n\t\t</d:eq>\n\t")}),""),u=t?"<d:eq>\n\t\t\t\t<d:prop>\n\t\t\t\t\t<oc:favorite/>\n\t\t\t\t</d:prop>\n\t\t\t\t<d:literal>1</d:literal>\n\t\t\t</d:eq>":"",e=Object.assign({method:"SEARCH",headers:{"content-Type":"text/xml"},data:'<?xml version="1.0" encoding="UTF-8"?>\n\t\t\t<d:searchrequest xmlns:d="DAV:"\n\t\t\t\txmlns:oc="http://owncloud.org/ns"\n\t\t\t\txmlns:nc="http://nextcloud.org/ns"\n\t\t\t\txmlns:ns="https://github.com/icewind1991/SearchDAV/ns"\n\t\t\t\txmlns:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<d:basicsearch>\n\t\t\t\t\t<d:select>\n\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t'.concat(d.a,"\n\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t</d:select>\n\t\t\t\t\t<d:from>\n\t\t\t\t\t\t<d:scope>\n\t\t\t\t\t\t\t<d:href>").concat(r,"</d:href>\n\t\t\t\t\t\t\t<d:depth>infinity</d:depth>\n\t\t\t\t\t\t</d:scope>\n\t\t\t\t\t</d:from>\n\t\t\t\t\t<d:where>\n\t\t\t\t\t\t<d:and>\n\t\t\t\t\t\t\t<d:or>\n\t\t\t\t\t\t\t\t").concat(i,"\n\t\t\t\t\t\t\t</d:or>\n\t\t\t\t\t\t\t").concat(u,"\n\t\t\t\t\t\t\t<d:eq>\n\t\t\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t\t\t<oc:owner-id/>\n\t\t\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t\t\t<d:literal>").concat(Object(a.getCurrentUser)().uid,"</d:literal>\n\t\t\t\t\t\t\t</d:eq>\n\t\t\t\t\t\t</d:and>\n\t\t\t\t\t</d:where>\n\t\t\t\t\t<d:orderby>\n\t\t\t\t\t\t<d:order>\n\t\t\t\t\t\t\t<d:prop><d:getlastmodified/></d:prop>\n\t\t\t\t\t\t\t<d:descending/>\n\t\t\t\t\t\t</d:order>\n\t\t\t\t\t</d:orderby>\n\t\t\t\t\t<d:limit>\n\t\t\t\t\t\t<d:nresults>").concat(e.perPage,"</d:nresults>\n\t\t\t\t\t\t<ns:firstresult>").concat(e.page*e.perPage,"</ns:firstresult>\n\t\t\t\t\t</d:limit>\n\t\t\t\t</d:basicsearch>\n\t\t\t</d:searchrequest>"),deep:!0,details:!0},e),n.next=9,c.a.getDirectoryContents("",e);case 9:return l=n.sent,n.abrupt("return",l.data.map((function(n){return Object(s.b)(n)})).map((function(n){return Object.assign({},n,{filename:n.filename.replace(r,"")})})));case 11:case"end":return n.stop()}}),n)})))).apply(this,arguments)}var g=e(294),f=e(295),j={name:"SeparatorVirtualGrid",inheritAttrs:!1,props:{item:{type:Object,required:!0}}},C=e(86),v=e.n(C),x=e(667),A={insert:"head",singleton:!1},b=(v()(x.a,A),x.a.locals,e(38)),y=Object(b.a)(j,(function(){var n=this.$createElement,t=this._self._c||n;return t("h2",{staticClass:"grid-title",style:{height:this.item.height+"px"}},[this._v("\n\t"+this._s(this.item.injected.month)+"\n\t"),t("span",[this._v(this._s(this.item.injected.year))])])}),[],!1,null,"3f8ebca0",null).exports,w=e(266),k=e.n(w),D=e(296),O={name:"Loader"},z=e(668),$={insert:"head",singleton:!1},q=(v()(z.a,$),z.a.locals,Object(b.a)(O,(function(){var n=this.$createElement,t=this._self._c||n;return t("div",{staticClass:"loader"},[this._t("icon",[t("span",{staticClass:"icon-loading"})])],2)}),[],!1,null,null,null).exports),B=e(251),S=e(298);function T(n,t,e,r,i,s,a){try{var o=n[s](a),c=o.value}catch(n){return void e(n)}o.done?t(c):Promise.resolve(c).then(r,i)}function _(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var s=n.apply(t,e);function a(n){T(s,r,i,a,o,"next",n)}function o(n){T(s,r,i,a,o,"throw",n)}a(void 0)}))}}function R(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function P(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?R(Object(e),!0).forEach((function(t){F(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):R(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function F(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var E={name:"Timeline",components:{EmptyContent:g.a,VirtualGrid:k.a,Navigation:D.a},mixins:[S.a],props:{loading:{type:Boolean,required:!0},onlyFavorites:{type:Boolean,default:!1},mimesType:{type:Array,default:function(){return o.a}},rootTitle:{type:String,required:!0},path:{type:String,default:""}},data:function(){return{cancelRequest:null,done:!1,error:null,page:0,lastSection:"",loaderComponent:q}},computed:P(P({},Object(i.c)(["files","timeline"])),{},{fileList:function(){var n=this;return this.timeline.map((function(t){return n.files[t]}))},contentList:function(){var n=this;return this.fileList.flatMap((function(t,e){var r=[],i=n.getFormatedDate(t.lastmod,"YYYY MMMM");return n.lastSection!==i&&(r.push({id:"title-".concat(e),injected:{year:n.getFormatedDate(t.lastmod,"YYYY"),month:n.getFormatedDate(t.lastmod,"MMMM")},height:90,columnSpan:0,newRow:!0,renderComponent:y}),n.lastSection=i),r.push({id:"img-".concat(t.fileid),injected:P(P({},t),{},{list:n.fileList,loadMore:n.getContent,canLoop:!1}),width:256,height:256,columnSpan:1,renderComponent:f.a}),r}))},isEmpty:function(){return 0===this.fileList.length}}),watch:{onlyFavorites:function(){var n=this;return _(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.resetState(),n.getContent();case 2:case"end":return t.stop()}}),t)})))()},mimesType:function(){var n=this;return _(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.resetState(),n.getContent();case 2:case"end":return t.stop()}}),t)})))()}},beforeMount:function(){this.getContent()},beforeDestroy:function(){this.cancelRequest&&this.cancelRequest("Changed view"),this.resetState()},methods:{getContent:function(n){var t=this;return _(regeneratorRuntime.mark((function e(){var r,i,s,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.done){e.next=2;break}return e.abrupt("return",Promise.resolve(!0));case 2:return t.cancelRequest&&t.cancelRequest("Changed view"),0===t.timeline.length&&t.$emit("update:loading",!0),r=Object(B.a)(m),i=r.request,s=r.cancel,t.cancelRequest=s,a=5*t.gridConfig.count,e.prev=7,e.next=10,i(t.onlyFavorites,{page:t.page,perPage:a,mimesType:t.mimesType});case 10:if((o=e.sent).length!==a&&(t.done=!0),t.$store.dispatch("updateTimeline",o),t.$store.dispatch("appendFiles",o),t.page+=1,!n){e.next=17;break}return e.abrupt("return",Promise.resolve(o));case 17:return e.abrupt("return",Promise.resolve(!1));case 20:return e.prev=20,e.t0=e.catch(7),e.t0.response&&e.t0.response.status&&(404===e.t0.response.status?(t.error=404,setTimeout((function(){t.$router.push({name:t.$route.name})}),3e3)):t.error=e.t0),console.error("Error fetching timeline",e.t0),e.abrupt("return",Promise.resolve(!0));case 25:return e.prev=25,t.$emit("update:loading",!1),t.cancelRequest=null,e.finish(25);case 29:case"end":return e.stop()}}),e,null,[[7,20,25,29]])})))()},resetState:function(){this.$store.dispatch("resetTimeline"),this.done=!1,this.error=null,this.page=0,this.lastSection="",this.$emit("update:loading",!0),this.$refs.virtualgrid.resetGrid()},getFormatedDate:function(n,t){return r(n).format(t)}}},M=e(669),H={insert:"head",singleton:!1},L=(v()(M.a,H),M.a.locals,Object(b.a)(E,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return 404===n.error?e("EmptyContent",{attrs:{"illustration-name":"folder"}},[n._v("\n\t"+n._s(n.t("photos","This folder does not exists"))+"\n")]):n.error?e("EmptyContent",[n._v("\n\t"+n._s(n.t("photos","An error occurred"))+"\n")]):n.loading?n._e():e("div",[n.isEmpty?e("Navigation",{key:"navigation",attrs:{basename:n.path,filename:"/","root-title":n.rootTitle}}):n._e(),n._v(" "),n.isEmpty?e("EmptyContent",{attrs:{"illustration-name":"empty"}},[n._v("\n\t\t"+n._s(n.t("photos","No photos in here"))+"\n\t")]):n._e(),n._v(" "),e("div",{staticClass:"grid-container"},[e("VirtualGrid",{ref:"virtualgrid",attrs:{items:n.contentList,"update-function":n.getContent,"get-column-count":function(){return n.gridConfig.count},"get-grid-gap":function(){return n.gridConfig.gap},"update-trigger-margin":700,loader:n.loaderComponent}})],1)],1)}),[],!1,null,"56a58566",null));t.default=L.exports}}]);
//# sourceMappingURL=photos-5.js.map?v=e81539504a83192dbc4d