-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
photos-node_modules_vue-material-design-icons_ArrowLeft_vue-src_views_Timeline_vue.js
3 lines (3 loc) · 24.5 KB
/
photos-node_modules_vue-material-design-icons_ArrowLeft_vue-src_views_Timeline_vue.js
1
2
3
/*! For license information please see photos-node_modules_vue-material-design-icons_ArrowLeft_vue-src_views_Timeline_vue.js.LICENSE.txt */
"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["node_modules_vue-material-design-icons_ArrowLeft_vue-src_views_Timeline_vue"],{49568:(t,e,n)=>{n.d(e,{Z:()=>a});var i=n(20629),o=n(69363),l=n(87076);const a={name:"FetchCollectionsMixin",data:()=>({errorFetchingCollections:null,loadingCollections:!1}),mixins:[o.Z],methods:{...(0,i.nv)(["addCollections"]),async fetchCollections(t,e,n){if(this.loadingCollections)return[];try{this.loadingCollections=!0,this.errorFetchingCollections=null;const i=await(0,l.XK)(t,{signal:this.abortController.signal},e,n);return this.addCollections({collections:i}),i}catch(t){var i;404===(null===(i=t.response)||void 0===i?void 0:i.status)?this.errorFetchingCollections=404:this.errorFetchingCollections=t}finally{this.loadingCollections=!1}return[]}}}},66951:(t,e,n)=>{n.d(e,{Z:()=>m});var i=n(59537),o=n(94236),l=n(77958),a=n(3301),s=n(81067),r=n(2161),c=n(80351),d=n.n(c);var u=n(32114);const m={name:"FetchFilesMixin",mixins:[n(69363).Z],data:()=>({errorFetchingFiles:null,loadingFiles:!1,doneFetchingFiles:!1,fetchSemaphore:new u.Z(1),fetchedFileIds:[]}),watch:{"$route.path"(){this.resetFetchFilesState()}},methods:{async fetchFiles(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.doneFetchingFiles&&!c||this.loadingFiles)return[];const u=await this.fetchSemaphore.acquire();try{this.errorFetchingFiles=null,this.loadingFiles=!0;const c=200,u=await async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e={firstResult:0,nbResults:200,mimesType:a.Oj,onThisDay:!1,onlyFavorites:!1,...e};const n="/files/".concat((0,l.ts)().uid),i=e.mimesType.reduce(((t,e)=>"".concat(t,"\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(e,"</d:literal>\n\t\t</d:eq>\n\t")),""),c=e.onlyFavorites?"<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>":"",u=e.onThisDay?"<d:or>".concat(Array(20).fill(1).map(((t,e)=>{const n=d()(Date.now()).startOf("day").subtract(3,"d").subtract(e+1,"y"),i=d()(Date.now()).endOf("day").add(3,"d").subtract(e+1,"y");return"<d:and>\n\t\t\t\t<d:gt>\n\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t<d:getlastmodified />\n\t\t\t\t\t</d:prop>\n\t\t\t\t\t<d:literal>".concat(n.format(d().defaultFormatUtc),"</d:literal>\n\t\t\t\t</d:gt>\n\t\t\t\t<d:lt>\n\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t<d:getlastmodified />\n\t\t\t\t\t</d:prop>\n\t\t\t\t\t<d:literal>").concat(i.format(d().defaultFormatUtc),"</d:literal>\n\t\t\t\t</d:lt>\n\t\t\t</d:and>")})).join("\n"),"</d:or>"):"";return 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(r.N,"\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(n,"/").concat(t,"</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(c,"\n\t\t\t\t\t\t\t").concat(u,"\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><nc:metadata-photos-original_date_time/></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.nbResults,"</d:nresults>\n\t\t\t\t\t\t<ns:firstresult>").concat(e.firstResult,"</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),(await s.ZP.getDirectoryContents("",e)).data.map((t=>(0,o.AX)(t)))}(t,{firstResult:this.fetchedFileIds.length,nbResults:c,...e,signal:this.abortController.signal});u.length!==c&&(this.doneFetchingFiles=!0);const m=u.map((t=>t.fileid)).filter((t=>!this.fetchedFileIds.includes(t.toString())));return this.fetchedFileIds.push(...m.map((t=>t.toString())).filter((t=>!n.includes(t)))),this.$store.dispatch("appendFiles",u),i.Z.debug("[FetchFilesMixin] Fetched ".concat(m.length," new files: "),m),m}catch(t){var m;if(404===(null===(m=t.response)||void 0===m?void 0:m.status))this.errorFetchingFiles=404;else{if("ERR_CANCELED"===t.code)return[];this.errorFetchingFiles=t}i.Z.error("Error fetching files",{error:t}),console.error(t)}finally{this.loadingFiles=!1,this.fetchSemaphore.release(u)}return[]},resetFetchFilesState(){this.doneFetchingFiles=!1,this.errorFetchingFiles=null,this.loadingFiles=!1,this.fetchedFileIds=[]}}}},28391:(t,e,n)=>{n.d(e,{Z:()=>i});const i={name:"FilesByMonthMixin",computed:{fileIdsByMonth(){const t={};for(const n of this.fetchedFileIds){const i=this.files[n];var e;if(i)t[i.month]=null!==(e=t[i.month])&&void 0!==e?e:[],t[i.month].push(i.fileid)}return Object.keys(t).forEach((e=>t[e].sort(this.sortFilesByTimestamp))),t},monthsList(){return Object.keys(this.fileIdsByMonth).sort(((t,e)=>t>e?-1:1))}},methods:{sortFilesByTimestamp(t,e){return this.files[t].timestamp>this.files[e].timestamp?-1:1}}}},19124:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(87537),o=n.n(i),l=n(23645),a=n.n(l)()(o());a.push([t.id,".album-picker[data-v-20d6fa8c]{padding:32px;padding-top:16px}.album-picker h2[data-v-20d6fa8c]{display:flex;align-items:center;height:60px}.album-picker h2 .loading-icon[data-v-20d6fa8c]{margin-left:32px}.album-picker .albums-container[data-v-20d6fa8c]{min-height:150px;max-height:350px;overflow-x:scroll;padding:2px}.album-picker .albums-container .album[data-v-20d6fa8c] .list-item{padding:8px 16px;box-sizing:border-box}.album-picker .albums-container .album[data-v-20d6fa8c]:not(:last-child){margin-bottom:16px}.album-picker .albums-container .album__image[data-v-20d6fa8c]{width:40px;height:40px;object-fit:none;border-radius:var(--border-radius)}.album-picker .albums-container .album__image--placeholder[data-v-20d6fa8c]{background:var(--color-primary-element-light)}.album-picker .albums-container .album__image--placeholder[data-v-20d6fa8c] .material-design-icon{width:100%;height:100%}.album-picker .albums-container .album__image--placeholder[data-v-20d6fa8c] .material-design-icon .material-design-icon__svg{fill:var(--color-primary-element)}.album-picker .new-album-button[data-v-20d6fa8c]{margin-top:32px}","",{version:3,sources:["webpack://./src/components/Albums/AlbumPicker.vue"],names:[],mappings:"AAEA,+BACC,YAAA,CACA,gBAAA,CAEA,kCACC,YAAA,CACA,kBAAA,CACA,WAAA,CAEA,gDACC,gBAAA,CAIF,iDACC,gBAAA,CACA,gBAAA,CACA,iBAAA,CACA,WAAA,CAIC,mEACC,gBAAA,CACA,qBAAA,CAGD,yEACC,kBAAA,CAGD,+DACC,UAAA,CACA,WAAA,CACA,eAAA,CACA,kCAAA,CAEA,4EACC,6CAAA,CAEA,kGACC,UAAA,CACA,WAAA,CAEA,6HACC,iCAAA,CAQN,iDACC,eAAA",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.album-picker {\n\tpadding: 32px;\n\tpadding-top: 16px;\n\n\th2 {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\theight: 60px;\n\n\t\t.loading-icon {\n\t\t\tmargin-left: 32px;\n\t\t}\n\t}\n\n\t.albums-container {\n\t\tmin-height: 150px;\n\t\tmax-height: 350px;\n\t\toverflow-x: scroll;\n\t\tpadding: 2px;\n\n\t\t.album {\n\n\t\t\t:deep .list-item {\n\t\t\t\tpadding: 8px 16px;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\n\t\t\t&:not(:last-child) {\n\t\t\t\tmargin-bottom: 16px;\n\t\t\t}\n\n\t\t\t&__image {\n\t\t\t\twidth: 40px;\n\t\t\t\theight: 40px;\n\t\t\t\tobject-fit: none;\n\t\t\t\tborder-radius: var(--border-radius);\n\n\t\t\t\t&--placeholder {\n\t\t\t\t\tbackground: var(--color-primary-element-light);\n\n\t\t\t\t\t:deep .material-design-icon {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\theight: 100%;\n\n\t\t\t\t\t\t.material-design-icon__svg {\n\t\t\t\t\t\t\tfill: var(--color-primary-element);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.new-album-button {\n\t\tmargin-top: 32px;\n\t}\n}\n'],sourceRoot:""}]);const s=a},4245:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(87537),o=n.n(i),l=n(23645),a=n.n(l)()(o());a.push([t.id,".timeline[data-v-00180761]{display:flex;flex-direction:column}.timeline__header__left[data-v-00180761]{display:flex;gap:4px}.timeline__heading[data-v-00180761]{padding:calc(var(--default-grid-baseline)*4);margin-bottom:0px;padding-bottom:0px}.timeline__file-list[data-v-00180761]{padding:0 64px}@media only screen and (max-width: 1200px){.timeline__file-list[data-v-00180761]{padding:0 4px}}.timeline__file-list[data-v-00180761] .files-list-viewer__section-header{top:var(--photos-navigation-height)}","",{version:3,sources:["webpack://./src/views/Timeline.vue"],names:[],mappings:"AAEA,2BACC,YAAA,CACA,qBAAA,CAGC,yCACC,YAAA,CACA,OAAA,CAIF,oCACC,4CAAA,CACA,iBAAA,CACA,kBAAA,CAGD,sCACC,cAAA,CAEA,2CAHD,sCAIE,aAAA,CAAA,CAGD,yEACC,mCAAA",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.timeline {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t&__header {\n\t\t&__left {\n\t\t\tdisplay: flex;\n\t\t\tgap: 4px;\n\t\t}\n\t}\n\n\t&__heading {\n\t\tpadding: calc(var(--default-grid-baseline) * 4);\n\t\tmargin-bottom: 0px;\n\t\tpadding-bottom: 0px;\n\t}\n\n\t&__file-list {\n\t\tpadding: 0 64px;\n\n\t\t@media only screen and (max-width: 1200px) {\n\t\t\tpadding: 0 4px;\n\t\t}\n\n\t\t:deep .files-list-viewer__section-header {\n\t\t\ttop: var(--photos-navigation-height);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},32219:(t,e,n)=>{n.d(e,{Z:()=>o});const i={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const o=(0,n(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},41293:(t,e,n)=>{n.d(e,{Z:()=>o});const i={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const o=(0,n(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon download-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},57048:(t,e,n)=>{n.d(e,{Z:()=>o});const i={name:"ImageMultipleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const o=(0,n(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon image-multiple-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M22,16V4A2,2 0 0,0 20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16M11,12L13.03,14.71L16,11L20,16H8M2,6V20A2,2 0 0,0 4,22H18V20H4V6"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},69014:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(20629),o=n(4777),l=n(12806);const a={name:"ActionFavorite",components:{Star:o.Z,NcActionButton:l.Js},props:{selectedFileIds:{type:Array,required:!0}},computed:{...(0,i.Se)(["files"]),shouldFavoriteSelection(){return this.selectedFileIds.some((t=>0===this.files[t].favorite))}},methods:{...(0,i.nv)(["toggleFavoriteForFiles"]),async favoriteSelection(){await this.toggleFavoriteForFiles({fileIds:this.selectedFileIds,favoriteState:1})},async unFavoriteSelection(){await this.toggleFavoriteForFiles({fileIds:this.selectedFileIds,favoriteState:0})}}};const s=(0,n(51900).Z)(a,(function(){var t=this,e=t._self._c;return t.shouldFavoriteSelection?e("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Mark selection as favorite")},on:{click:t.favoriteSelection}},[t._v("\n\t"+t._s(t.t("photos","Add selection to favorites"))+"\n\t"),e("Star",{attrs:{slot:"icon"},slot:"icon"})],1):e("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Remove selection from favorites")},on:{click:t.unFavoriteSelection}},[t._v("\n\t"+t._s(t.t("photos","Remove selection from favorites"))+"\n\t"),e("Star",{attrs:{slot:"icon"},slot:"icon"})],1)}),[],!1,null,null,null).exports},90201:(t,e,n)=>{n.r(e),n.d(e,{default:()=>G});var i=n(20629),o=n(61149),l=n(57612);const a={name:"PlusBoxMultipleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var s=n(51900);const r=(0,s.Z)(a,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon plus-box-multiple-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,11H15V15H13V11H9V9H13V5H15V9H19M20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16V4A2,2 0 0,0 20,2M4,6H2V20A2,2 0 0,0 4,22H18V20H4V6Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var c=n(41293),d=n(82675),u=n(12806),m=n(80351),p=n.n(m),h=n(3301),A=n(66951),f=n(28391),g=n(98171),b=n(58063),C=n(84969),v=n(83562),_=n(57048),y=n(79753),F=n(31352),x=n(77958),w=n(49568);const k={name:"AlbumPicker",components:{Plus:o.Z,ImageMultiple:_.Z,NcButton:u.P2,NcListItem:u.hx,NcLoadingIcon:u.lb,NcUserBubble:u.uq,AlbumForm:v.Z},filters:{toCoverUrl:t=>(0,y.nu)("/apps/photos/api/v1/preview/".concat(t,"?x=",64,"&y=",64))},mixins:[w.Z],data:()=>({showAlbumCreationForm:!1}),computed:{...(0,i.Se)(["albums","sharedAlbums"]),allAlbums(){return[...Object.values(this.albums),...Object.values(this.sharedAlbums)]}},mounted(){this.fetchAlbumList()},methods:{async fetchAlbumList(){var t,e;await this.fetchCollections("/photos/".concat(null===(t=(0,x.ts)())||void 0===t?void 0:t.uid,"/albums"),["<nc:location />","<nc:dateRange />","<nc:collaborators />"]),await this.fetchCollections("/photos/".concat(null===(e=(0,x.ts)())||void 0===e?void 0:e.uid,"/sharedalbums"),["<nc:location />","<nc:dateRange />","<nc:collaborators />"])},albumCreatedHandler(){this.showAlbumCreationForm=!1,this.fetchAlbumList()},pickAlbum(t){this.$emit("album-picked",t)},isSharedAlbum:t=>null!==t.filename.match(/^\/photos\/.+\/sharedalbums\//),originalName(t){return this.isSharedAlbum(t)?t.basename.replace(new RegExp("\\(".concat(t.collaborators[0].id,"\\)$")),""):t.basename},t:F.Iu,n:F.uN}};var S=n(93379),T=n.n(S),Z=n(7795),I=n.n(Z),N=n(90569),B=n.n(N),M=n(3565),L=n.n(M),D=n(19216),H=n.n(D),V=n(44589),P=n.n(V),E=n(19124),W={};W.styleTagTransform=P(),W.setAttributes=L(),W.insert=B().bind(null,"head"),W.domAPI=I(),W.insertStyleElement=H();T()(E.Z,W);E.Z&&E.Z.locals&&E.Z.locals;const R=(0,s.Z)(k,(function(){var t=this,e=t._self._c;return t.showAlbumCreationForm?e("AlbumForm",{attrs:{"display-back-button":!0,title:t.t("photos","New album")},on:{back:function(e){t.showAlbumCreationForm=!1},done:t.albumCreatedHandler}}):e("div",{staticClass:"album-picker"},[e("h2",[t._v("\n\t\t"+t._s(t.t("photos","Add to Album"))+"\n\t\t"),t.loadingCollections?e("NcLoadingIcon",{staticClass:"loading-icon"}):t._e()],1),t._v(" "),e("ul",{staticClass:"albums-container"},t._l(t.allAlbums,(function(n){return e("NcListItem",{key:n.filename,staticClass:"album",attrs:{name:t.originalName(n),"aria-label":t.t("photos","Add selection to album {albumName}",{albumName:n.basename})},on:{click:function(e){return t.pickAlbum(n)}},scopedSlots:t._u([{key:"subname",fn:function(){return[t._v("\n\t\t\t\t"+t._s(t.n("photos","%n item","%n photos and videos",n.nbItems))+"\n\t\t\t\t"),t.isSharedAlbum(n)?[t._v("\n\t\t\t\t\t⸱ "+t._s(t.t("photos","Shared by"))+" "),e("NcUserBubble",{attrs:{"display-name":n.collaborators[0].label,user:n.collaborators[0].id}})]:t._e()]},proxy:!0}],null,!0)},[e("template",{slot:"icon"},[-1!==n.lastPhoto?e("img",{staticClass:"album__image",attrs:{src:t._f("toCoverUrl")(n.lastPhoto)}}):e("div",{staticClass:"album__image album__image--placeholder"},[e("ImageMultiple",{attrs:{size:32}})],1)])],2)})),1),t._v(" "),e("NcButton",{staticClass:"new-album-button",attrs:{"aria-label":t.t("photos","Create a new album."),type:"tertiary"},on:{click:function(e){t.showAlbumCreationForm=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Plus")]},proxy:!0}],null,!1,1489515321)},[t._v("\n\t\t"+t._s(t.t("photos","Create new album"))+"\n\t")])],1)}),[],!1,null,"20d6fa8c",null).exports;var Y=n(69014);const z={name:"ActionDownload",components:{NcActionLink:u.ih},props:{title:{type:String,required:!0},selectedFileIds:{type:Array,required:!0}},computed:{...(0,i.Se)(["files"]),downloadUrl(){const t=new URLSearchParams,e=this.fileNames.map((t=>"/"+t.split("/").splice(3).join("/")));return t.append("files",JSON.stringify(e)),(0,y.nu)("/apps/files/ajax/download.php?".concat(t))},fileNames(){return this.selectedFileIds.map((t=>this.files[t].filename))}}};const U=(0,s.Z)(z,(function(){var t=this;return(0,t._self._c)("NcActionLink",{attrs:{"close-after-click":!0,href:t.downloadUrl,download:t.downloadUrl,"aria-label":t.title}},[t._v("\n\t"+t._s(t.title)+"\n\t"),t._t("icon",null,{slot:"icon"})],2)}),[],!1,null,null,null).exports;var q=n(72868);const O={name:"Timeline",components:{Delete:l.Z,PlusBoxMultiple:r,Download:c.Z,Close:d.Z,Plus:o.Z,NcEmptyContent:u.SL,NcModal:u.Jc,NcActions:u.O3,NcActionButton:u.Js,NcButton:u.P2,AlbumForm:v.Z,AlbumPicker:R,FilesListViewer:b.Z,File:C.Z,ActionFavorite:Y.Z,ActionDownload:U,HeaderNavigation:q.Z},filters:{dateMonth:t=>p()(t,"YYYYMM").format("MMMM"),dateYear:t=>p()(t,"YYYYMM").format("YYYY")},mixins:[A.Z,g.Z,f.Z,u.tq],beforeRouteLeave(t,e,n){window.scrollTo(0,0),n()},props:{onlyFavorites:{type:Boolean,default:!1},mimesType:{type:Array,default:()=>h.Oj},onThisDay:{type:Boolean,default:!1},rootTitle:{type:String,required:!0}},data:()=>({loadingCount:0,showAlbumCreationForm:!1,showAlbumPicker:!1,appContent:document.getElementById("app-content-vue")}),computed:{...(0,i.Se)(["files"])},methods:{...(0,i.nv)(["deleteFiles","addFilesToCollection"]),getContent(){this.fetchFiles("",{mimesType:this.mimesType,onThisDay:this.onThisDay,onlyFavorites:this.onlyFavorites})},openViewer(t){const e=this.files[t];OCA.Viewer.open({fileInfo:e,list:Object.values(this.fileIdsByMonth).flat().map((t=>this.files[t])),loadMore:e.loadMore?async()=>await e.loadMore(!0):()=>[],canLoop:e.canLoop})},openUploader(){},async addSelectionToAlbum(t){this.showAlbumPicker=!1,await this.addFilesToCollection({collectionFileName:t.filename,fileIdsToAdd:this.selectedFileIds})},async deleteSelection(){const t=this.selectedFileIds;this.onUncheckFiles(t),this.fetchedFileIds=this.fetchedFileIds.filter((e=>!t.includes(e))),await this.deleteFiles(t)},t:F.Iu}};var $=n(4245),j={};j.styleTagTransform=P(),j.setAttributes=L(),j.insert=B().bind(null,"head"),j.domAPI=I(),j.insertStyleElement=H();T()($.Z,j);$.Z&&$.Z.locals&&$.Z.locals;const G=(0,s.Z)(O,(function(){var t=this,e=t._self._c;return t.errorFetchingFiles?e("NcEmptyContent",[t._v("\n\t"+t._s(t.t("photos","An error occurred"))+"\n")]):e("div",{staticClass:"timeline"},[e("HeaderNavigation",{key:"navigation",attrs:{loading:t.loadingCount>0,path:"/",title:t.rootTitle,"root-title":t.rootTitle},on:{refresh:t.resetFetchFilesState}},[e("div",{staticClass:"timeline__header__left"},[0===t.selectedFileIds.length?e("NcActions",{attrs:{"force-menu":!0,"menu-name":t.t("photos","Add")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Plus")]},proxy:!0}],null,!1,1489515321)},[t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Create new album")},on:{click:function(e){t.showAlbumCreationForm=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("PlusBoxMultiple")]},proxy:!0}],null,!1,2640725948)},[t._v("\n\t\t\t\t\t"+t._s(t.t("photos","Create new album"))+"\n\t\t\t\t\t")])],1):[e("NcButton",{attrs:{"close-after-click":!0,type:"primary","aria-label":t.t("photos","Add to album")},on:{click:function(e){t.showAlbumPicker=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Plus")]},proxy:!0},t.isMobile?null:{key:"default",fn:function(){return[t._v("\n\t\t\t\t\t\t"+t._s(t.t("photos","Add to album"))+"\n\t\t\t\t\t")]},proxy:!0}],null,!0)}),t._v(" "),t.selectedFileIds.length>0?e("NcButton",{attrs:{"aria-label":t.t("photos","Unselect all")},on:{click:t.resetSelection},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close")]},proxy:!0},t.isMobile?null:{key:"default",fn:function(){return[t._v("\n\t\t\t\t\t\t"+t._s(t.t("photos","Unselect all"))+"\n\t\t\t\t\t")]},proxy:!0}],null,!0)}):t._e(),t._v(" "),e("NcActions",{attrs:{"aria-label":t.t("photos","Open actions menu")}},[e("ActionDownload",{attrs:{"selected-file-ids":t.selectedFileIds,title:t.t("photos","Download selected files")}},[e("Download",{attrs:{slot:"icon"},slot:"icon"})],1),t._v(" "),e("ActionFavorite",{attrs:{"selected-file-ids":t.selectedFileIds}}),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Delete selection")},on:{click:t.deleteSelection},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}])},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("photos","Delete selection"))+"\n\t\t\t\t\t\t")])],1)]],2)]),t._v(" "),e("FilesListViewer",{ref:"filesListViewer",staticClass:"timeline__file-list",attrs:{"container-element":t.appContent,"file-ids-by-section":t.fileIdsByMonth,sections:t.monthsList,loading:t.loadingFiles,"base-height":t.isMobile?120:200,"empty-message":t.t("photos","No photos or videos in here")},on:{"need-content":t.getContent},scopedSlots:t._u([{key:"default",fn:function(n){let{file:i,isHeader:o,distance:l}=n;return[o?e("h2",{staticClass:"section-header",attrs:{id:"file-picker-section-header-".concat(i.id)}},[e("b",[t._v(t._s(t._f("dateMonth")(i.id)))]),t._v("\n\t\t\t\t"+t._s(t._f("dateYear")(i.id))+"\n\t\t\t")]):e("File",{attrs:{file:t.files[i.id],"allow-selection":!0,selected:!0===t.selection[i.id],distance:l},on:{click:t.openViewer,"select-toggled":t.onFileSelectToggle}})]}}])}),t._v(" "),t.showAlbumCreationForm?e("NcModal",{key:"albumCreationForm",on:{close:function(e){t.showAlbumCreationForm=!1}}},[e("h2",{staticClass:"timeline__heading"},[t._v("\n\t\t\t"+t._s(t.t("photos","New album"))+"\n\t\t")]),t._v(" "),e("AlbumForm",{on:{done:function(e){t.showAlbumCreationForm=!1}}})],1):t._e(),t._v(" "),t.showAlbumPicker?e("NcModal",{key:"albumPicker",on:{close:function(e){t.showAlbumPicker=!1}}},[e("AlbumPicker",{on:{"album-picked":t.addSelectionToAlbum}})],1):t._e()],1)}),[],!1,null,"00180761",null).exports}}]);
//# sourceMappingURL=photos-node_modules_vue-material-design-icons_ArrowLeft_vue-src_views_Timeline_vue.js.map?v=890ad2576f780ab40718