/*! For license information please see photos-src_views_Timeline_vue.js.LICENSE.txt */ "use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["src_views_Timeline_vue"],{2161:(n,t,e)=>{e.d(t,{N:()=>r});var r="\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t";'\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t'.concat(r,"\n\t\t\t\t\n\t\t\t")},78504:(n,t,e)=>{e.d(t,{Z:()=>s});var r=e(87537),i=e.n(r),o=e(23645),a=e.n(o)()(i());a.push([n.id,".loader{display:grid;height:60px}","",{version:3,sources:["webpack://./src/components/Loader.vue"],names:[],mappings:"AAsCA,QACC,YAAA,CACA,WAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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:""}]);const s=a},95732:(n,t,e)=>{e.d(t,{Z:()=>s});var r=e(87537),i=e.n(r),o=e(23645),a=e.n(o)()(i());a.push([n.id,".photos-header[data-v-ef246676]{display:flex;margin:16px 0;padding-left:32px}.photos-header>*[data-v-ef246676]{margin:0 16px}.photos-header .loading-icon[data-v-ef246676] svg{-webkit-animation:rotate var(--animation-duration, 0.8s) linear infinite;animation:rotate var(--animation-duration, 0.8s) linear infinite;color:var(--color-loading-dark)}","",{version:3,sources:["webpack://./src/components/PhotosHeader.vue"],names:[],mappings:"AA8LA,gCACC,YAAA,CACA,aAAA,CACA,iBAAA,CAEA,kCACC,aAAA,CAGD,kDACC,wEAAA,CAAA,gEAAA,CACA,+BAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.photos-header {\n\tdisplay: flex;\n\tmargin: 16px 0;\n\tpadding-left: 32px;\n\n\t& > * {\n\t\tmargin: 0 16px;\n\t}\n\n\t.loading-icon::v-deep svg {\n\t\tanimation: rotate var(--animation-duration, 0.8s) linear infinite;\n\t\tcolor: var(--color-loading-dark);\n\t}\n}\n'],sourceRoot:""}]);const s=a},19593:(n,t,e)=>{e.d(t,{Z:()=>s});var r=e(87537),i=e.n(r),o=e(23645),a=e.n(o)()(i());a.push([n.id,".photos-header[data-v-0a4c3fdc]{height:50px}.tiled-container[data-v-0a4c3fdc]{margin:0 24px}.tiled-container .tiled-row[data-v-0a4c3fdc]{display:flex;justify-content:space-around;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}","",{version:3,sources:["webpack://./src/components/TiledLayout.vue"],names:[],mappings:"AAuFA,gCACC,WAAA,CAGD,kCACC,aAAA,CAEA,6CACC,YAAA,CACA,4BAAA,CACA,yBAAA,CAAA,sBAAA,CAAA,iBAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.photos-header {\n\theight: 50px;\n}\n\n.tiled-container {\n\tmargin: 0 24px;\n\n\t.tiled-row {\n\t\tdisplay: flex;\n\t\tjustify-content: space-around;\n\t\twidth: fit-content; // Prevent solitary image to be rendered in the middle because of the flex layout.\n\t}\n}\n'],sourceRoot:""}]);const s=a},40321:(n,t,e)=>{e.d(t,{Z:()=>s});var r=e(87537),i=e.n(r),o=e(23645),a=e.n(o)()(i());a.push([n.id,".tiled-row[data-v-452165e4]{display:flex}","",{version:3,sources:["webpack://./src/components/TiledRows.vue"],names:[],mappings:"AAsCA,4BACC,YAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.tiled-row {\n\tdisplay: flex;\n}\n'],sourceRoot:""}]);const s=a},28600:(n,t,e)=>{e.d(t,{Z:()=>s});var r=e(87537),i=e.n(r),o=e(23645),a=e.n(o)()(i());a.push([n.id,".vs-container[data-v-00c0e180]{overflow-y:scroll;height:100%}","",{version:3,sources:["webpack://./src/components/VirtualScrolling.vue"],names:[],mappings:"AAuRA,+BACC,iBAAA,CACA,WAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vs-container {\n\toverflow-y: scroll;\n\theight: 100%;\n}\n'],sourceRoot:""}]);const s=a},31060:(n,t,e)=>{e.d(t,{Z:()=>s});var r=e(87537),i=e.n(r),o=e(23645),a=e.n(o)()(i());a.push([n.id,".section-header[data-v-f605719e]{padding:32px 0 16px 2px}","",{version:3,sources:["webpack://./src/views/Timeline.vue"],names:[],mappings:"AAuYA,iCACC,uBAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.section-header {\n\tpadding: 32px 0 16px 2px;\n}\n'],sourceRoot:""}]);const s=a},77670:(n,t,e)=>{e.r(t),e.d(t,{default:()=>In});var r=e(20629),i=e(80351),o=e.n(i),a=e(4615),s=e(99588),c=e(22200),l=e(3301),u=e(81067),d=e(2161);function f(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;t0&&void 0!==h[0]&&h[0],e=h.length>1&&void 0!==h[1]?h[1]:{},e=p({firstResult:0,nbResults:200,mimesType:l.Oj,onThisDay:!1},e),r="/files/".concat((0,c.getCurrentUser)().uid),i=e.mimesType.reduce((function(n,t){return"".concat(n,"\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t").concat(t,"\n\t\t\n\t")}),""),a=t?"\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t1\n\t\t\t":"",f=e.onThisDay?"".concat(Array(20).fill(1).map((function(n,t){var e=o()(Date.now()).startOf("day").subtract(3,"d").subtract(t+1,"y"),r=o()(Date.now()).endOf("day").add(3,"d").subtract(t+1,"y");return"\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t".concat(e.format(o().defaultFormatUtc),"\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t").concat(r.format(o().defaultFormatUtc),"\n\t\t\t\t\n\t\t\t")})).join("\n"),""):"",e=Object.assign({method:"SEARCH",headers:{"content-Type":"text/xml"},data:'\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t'.concat(d.N,"\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t").concat(r,"\n\t\t\t\t\t\t\tinfinity\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t").concat(i,"\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t").concat(a,"\n\t\t\t\t\t\t\t").concat(f,"\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t").concat(e.nbResults,"\n\t\t\t\t\t\t").concat(e.firstResult,"\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t"),deep:!0,details:!0},e),n.next=10,u.Z.getDirectoryContents("",e);case 10:return m=n.sent,n.abrupt("return",m.data.map((function(n){return(0,s.AX)(n)})).map((function(n){return Object.assign({},n,{filename:n.filename.replace(r,"")})})));case 12:case"end":return n.stop()}}),n)})))).apply(this,arguments)}var b=e(59537);function w(n){return n.map((function(n){return 200*n.ratio})).reduce((function(n,t){return n+t}))}function A(n,t,e){if(1===n.length&&n[0].sectionHeader)return n[0].height;var r=t/n.map((function(n){return n.ratio})).reduce((function(n,t){return n+t}));return 1===n.length&&n[0].width>t&&(r=t/n[0].ratio),e&&(r=Math.min(220,r)),r}var C=e(93379),T=e.n(C),O=e(7795),x=e.n(O),S=e(90569),_=e.n(S),W=e(3565),j=e.n(W),P=e(19216),k=e.n(P),R=e(44589),Z=e.n(R),E=e(40321),H={};H.styleTagTransform=Z(),H.setAttributes=j(),H.insert=_().bind(null,"head"),H.domAPI=x(),H.insertStyleElement=k();T()(E.Z,H);E.Z&&E.Z.locals&&E.Z.locals;var D=e(51900);const L=(0,D.Z)({},(function(n,t){var e=t._c;return e("ul",t._l(t.props.rows,(function(n){return e("div",{key:n.key,staticClass:"tiled-row",style:{height:n.height+"px"}},t._l(n.items,(function(r){return e("li",{key:r.id,style:{width:r.ratio?n.height*r.ratio+"px":"100%",height:n.height+"px"}},[t._t("default",null,{row:n,item:r})],2)})),0)})),0)}),[],!0,null,"452165e4",null).exports;function $(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=function(n,t){if(!n)return;if("string"==typeof n)return z(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return z(n,t)}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return a=n.done,n},e:function(n){s=!0,o=n},f:function(){try{a||null==e.return||e.return()}finally{if(s)throw o}}}}function z(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);e=this.rowsHeight-n},container:function(){return null!==this.containerElement?this.containerElement:this.useWindow?window:this.$refs.container}},watch:{isNearBottom:function(n){n&&this.$emit("need-content")},rows:function(){this.isNearBottom&&this.$emit("need-content")}},mounted:function(){var n=this;this.resizeObserver=new ResizeObserver((function(t){var e,r=function(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=U(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return a=n.done,n},e:function(n){s=!0,o=n},f:function(){try{a||null==e.return||e.return()}finally{if(s)throw o}}}}(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.contentRect;i.target.classList.contains("vs-container")&&(n.containerHeight=o.height),i.target.classList.contains("vs-rows-container")&&(n.rowsContainerHeight=o.height)}}catch(n){r.e(n)}finally{r.f()}})),this.useWindow?(window.addEventListener("resize",this.updateContainerSize),this.containerHeight=window.innerHeight):this.resizeObserver.observe(this.container),this.resizeObserver.observe(this.$refs.rowsContainer),this.container.addEventListener("scroll",this.updateScrollPosition)},beforeDestroy:function(){this.useWindow&&window.removeEventListener("resize",this.updateContainerSize),this.resizeObserver.disconnect(),this.container.removeEventListener("scroll",this.updateScrollPosition)},methods:{updateScrollPosition:function(){this.scrollPosition=this.container.scrollY},updateContainerSize:function(){this.containerHeight=window.innerHeight}}};var X=e(28600),J={};J.styleTagTransform=Z(),J.setAttributes=j(),J.insert=_().bind(null,"head"),J.domAPI=x(),J.insertStyleElement=k();T()(X.Z,J);X.Z&&X.Z.locals&&X.Z.locals;const K=(0,D.Z)(Q,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.useWindow||null!==n.containerElement?e("div",{ref:"rowsContainer",staticClass:"vs-rows-container",style:n.rowsContainerStyle},[n._t("default",null,{renderedRows:n.visibleRows})],2):e("div",{ref:"container",staticClass:"vs-container"},[e("div",{ref:"rowsContainer",staticClass:"vs-rows-container",style:n.rowsContainerStyle},[n._t("default",null,{renderedRows:n.visibleRows})],2)])}),[],!1,null,"00c0e180",null).exports;const nn={name:"PlusIcon",props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const tn=(0,D.Z)(nn,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",n._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":!n.title,"aria-label":n.title,role:"img"},on:{click:function(t){return n.$emit("click",t)}}},"span",n.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.fillColor,width:n.size,height:n.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[n.title?e("title",[n._v(n._s(n.title))]):n._e()])])])}),[],!1,null,null,null).exports;const en={name:"TrashCanIcon",props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const rn=(0,D.Z)(en,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",n._b({staticClass:"material-design-icon trash-can-icon",attrs:{"aria-hidden":!n.title,"aria-label":n.title,role:"img"},on:{click:function(t){return n.$emit("click",t)}}},"span",n.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.fillColor,width:n.size,height:n.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z"}},[n.title?e("title",[n._v(n._s(n.title))]):n._e()])])])}),[],!1,null,null,null).exports;var on=e(46405);const an={name:"DownloadOutlineIcon",props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const sn=(0,D.Z)(an,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",n._b({staticClass:"material-design-icon download-outline-icon",attrs:{"aria-hidden":!n.title,"aria-label":n.title,role:"img"},on:{click:function(t){return n.$emit("click",t)}}},"span",n.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.fillColor,width:n.size,height:n.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M13,5V11H14.17L12,13.17L9.83,11H11V5H13M15,3H9V9H5L12,16L19,9H15V3M19,18H5V20H19V18Z"}},[n.title?e("title",[n._v(n._s(n.title))]):n._e()])])])}),[],!1,null,null,null).exports;const cn={name:"LoadingIcon",props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const ln=(0,D.Z)(cn,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",n._b({staticClass:"material-design-icon loading-icon",attrs:{"aria-hidden":!n.title,"aria-label":n.title,role:"img"},on:{click:function(t){return n.$emit("click",t)}}},"span",n.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.fillColor,width:n.size,height:n.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"}},[n.title?e("title",[n._v(n._s(n.title))]):n._e()])])])}),[],!1,null,null,null).exports;var un=e(33476);function dn(n,t,e,r,i,o,a){try{var s=n[o](a),c=s.value}catch(n){return void e(n)}s.done?t(c):Promise.resolve(c).then(r,i)}function fn(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(n){dn(o,r,i,a,s,"next",n)}function s(n){dn(o,r,i,a,s,"throw",n)}a(void 0)}))}}function pn(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 mn(n){for(var t=1;t0?e("Loading",{staticClass:"loading-icon"}):n._e()],2)}),[],!1,null,"ef246676",null).exports;var wn=e(66533),An=e(91474),Cn=e(82390);const Tn={name:"Loader"};var On=e(78504),xn={};xn.styleTagTransform=Z(),xn.setAttributes=j(),xn.insert=_().bind(null,"head"),xn.domAPI=x(),xn.insertStyleElement=k();T()(On.Z,xn);On.Z&&On.Z.locals&&On.Z.locals;const Sn=(0,D.Z)(Tn,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"loader"},[n._t("icon",(function(){return[e("span",{staticClass:"icon-loading"})]}))],2)}),[],!1,null,null,null).exports;var _n=e(32114);function Wn(n,t,e,r,i,o,a){try{var s=n[o](a),c=s.value}catch(n){return void e(n)}s.done?t(c):Promise.resolve(c).then(r,i)}function jn(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(n){Wn(o,r,i,a,s,"next",n)}function s(n){Wn(o,r,i,a,s,"throw",n)}a(void 0)}))}}function Pn(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==e)return;var r,i,o=[],a=!0,s=!1;try{for(e=e.call(n);!(a=(r=e.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(n){s=!0,i=n}finally{try{a||null==e.return||e.return()}finally{if(s)throw i}}return o}(n,t)||Rn(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(n){return function(n){if(Array.isArray(n))return Zn(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||Rn(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rn(n,t){if(n){if("string"==typeof n)return Zn(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Zn(n,t):void 0}}function Zn(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return a=n.done,n},e:function(n){s=!0,o=n},f:function(){try{a||null==e.return||e.return()}finally{if(s)throw o}}}}(this.fileList);try{for(e.s();!(n=e.n()).done;){var r,i=n.value;t[this.files[i.id].month]=null!==(r=t[this.files[i.id].month])&&void 0!==r?r:[],t[this.files[i.id].month].push(i)}}catch(n){e.e(n)}finally{e.f()}return t},itemsList:function(){var n=this,t=this.fileListByMonth;return Object.keys(t).sort((function(n,t){return n>t?-1:1})).flatMap((function(e){return[{id:e,sectionHeader:!0,height:75}].concat(kn(t[e].sort((function(t,e){return n.files[t.id].timestamp>n.files[e.id].timestamp?-1:1}))))}))},isEmpty:function(){return 0===this.fileList.length},selectedSections:function(){var n=this;return Object.entries(this.fileListByMonth).reduce((function(t,e){var r=Pn(e,2),i=r[0],o=r[1];return Hn(Hn({},t),{},Dn({},i,!o.some((function(t){return!0!==n.selectedItems[t.id]}))))}),{})},selection:function(){var n=this;return Object.keys(this.selectedItems).filter((function(t){return n.selectedItems[t]}))}}),watch:{$route:function(n,t){this.cancelRequest&&this.cancelRequest("Changed view"),this.resetState(),this.getContent()},onThisDay:function(){var n=this;return jn(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)})))()}},mounted:function(){this.getContent()},beforeDestroy:function(){this.cancelRequest&&this.cancelRequest("Changed view")},methods:{getContent:function(){var n=this;return jn(regeneratorRuntime.mark((function t(){var e,r,i,o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.done&&!n.loading){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,n.loading=!0,t.next=6,n.semaphore.acquire((function(){return 0}),"timeline");case 6:return n.semaphoreSymbol=t.sent,e=(0,a.Z)(v),r=e.request,i=e.cancel,n.cancelRequest=i,o=1e3,t.next=12,r(n.onlyFavorites,{firstResult:n.nbFetchedFiles,nbResults:o,mimesType:n.mimesType,onThisDay:n.onThisDay});case 12:(s=t.sent).length!==o&&(n.done=!0),n.nbFetchedFiles+=s.length,n.$store.dispatch("appendFiles",s),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(2),t.t0.response&&t.t0.response.status&&(404===t.t0.response.status?(n.error=404,setTimeout((function(){n.$router.push({name:n.$route.name})}),3e3)):n.error=t.t0),b.Z.error("Error fetching timeline",t.t0);case 22:return t.prev=22,n.loading=!1,n.cancelRequest=null,t.next=27,n.semaphore.release(n.semaphoreSymbol);case 27:return n.semaphoreSymbol=null,t.finish(22);case 29:case"end":return t.stop()}}),t,null,[[2,18,22,29]])})))()},resetState:function(){var n;this.done=!1,this.error=null,this.lastSection="",this.loading=!1,this.nbFetchedFiles=0,null===(n=this.$refs.tiledLayout)||void 0===n||n.$el.scrollTo(0,0)},onItemSelectToggle:function(n){var t=n.id,e=n.value;this.$set(this.selectedItems,t,e)},onUncheckItems:function(n){var t=this;n.forEach((function(n){return t.$set(t.selectedItems,n,!1)}))},openViewer:function(n){var t=this,e=this.files[n];OCA.Viewer.open({path:e.filename,list:this.itemsList.filter((function(n){return!n.sectionHeader})).map((function(n){return t.files[n.id]})),loadMore:e.loadMore?jn(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.loadMore(!0);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))):function(){return[]},canLoop:e.canLoop})}}};var $n=e(31060),zn={};zn.styleTagTransform=Z(),zn.setAttributes=j(),zn.insert=_().bind(null,"head"),zn.domAPI=x(),zn.insertStyleElement=k();T()($n.Z,zn);$n.Z&&$n.Z.locals&&$n.Z.locals;const In=(0,D.Z)(Ln,(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 exist"))+"\n")]):n.error?e("EmptyContent",[n._v("\n\t"+n._s(n.t("photos","An error occurred"))+"\n")]):e("div",[n.isEmpty?e("Navigation",{key:"navigation",attrs:{basename:n.path,filename:"/","root-title":n.rootTitle}}):e("div",{staticClass:"photos-container"},[e("PhotosHeader",{attrs:{selection:n.selection},on:{"uncheck-items":n.onUncheckItems}}),n._v(" "),0===n.nbFetchedFiles&&n.loading?e("Loader"):n._e(),n._v(" "),e("TiledLayout",{ref:"tiledLayout",attrs:{items:n.itemsList},scopedSlots:n._u([{key:"default",fn:function(t){var r=t.rows;return e("VirtualScrolling",{attrs:{"use-window":!0,rows:r},on:{"need-content":n.getContent},scopedSlots:n._u([{key:"default",fn:function(t){var r=t.renderedRows;return e("TiledRows",{attrs:{rows:r},scopedSlots:n._u([{key:"default",fn:function(t){var r=t.row,i=t.item;return[i.sectionHeader?e("h3",{staticClass:"section-header"},[e("b",[n._v(n._s(n._f("dateMonth")(i.id)))]),n._v("\n\t\t\t\t\t\t\t"+n._s(n._f("dateYear")(i.id))+"\n\t\t\t\t\t\t\t")]):e("File",{attrs:{item:n.files[i.id],"allow-selection":!0,selected:!0===n.selectedItems[i.id],visibility:r.visibility,semaphore:n.semaphore},on:{click:n.openViewer,"select-toggled":n.onItemSelectToggle}})]}}],null,!0)})}}])})}}])}),n._v(" "),n.loading?e("Loader"):n._e(),n._v(" "),n.isEmpty?e("EmptyContent",{attrs:{"illustration-name":"empty"}},[n._v("\n\t\t\t"+n._s(n.t("photos","No photos in here"))+"\n\t\t")]):n._e()],1)],1)}),[],!1,null,"f605719e",null).exports}}]); //# sourceMappingURL=photos-src_views_Timeline_vue.js.map?v=932d93bcf9845cd93046