"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["src_views_Albums_vue"],{71277:(n,t,o)=>{o.d(t,{Z:()=>i});var e=o(87537),a=o.n(e),s=o(23645),l=o.n(s)()(a());l.push([n.id,".albums-list[data-v-4377a492]{display:flex;flex-direction:column}.albums-list .album__name[data-v-4377a492]{font-weight:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}","",{version:3,sources:["webpack://./src/views/Albums.vue"],names:[],mappings:"AAqIA,8BACC,YAAA,CACA,qBAAA,CAEA,2CACC,kBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA",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.albums-list {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t.album__name {\n\t\tfont-weight: normal;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n'],sourceRoot:""}]);const i=l},24931:(n,t,o)=>{o.r(t),o.d(t,{default:()=>Z});var e=o(40502),a=o(65322),s=o(79753),l=o(33476),i=o(12945),r=o(39981),m=o(88843),u=o(27248),c=o(99954);const p={name:"Albums",components:{Plus:e.Z,FolderMultipleImage:a.Z,NcModal:l.NcModal,NcButton:l.NcButton,NcEmptyContent:l.NcEmptyContent,CollectionsList:r.Z,CollectionCover:m.Z,HeaderNavigation:u.Z,AlbumForm:c.Z},filters:{coverUrl:function(n){return-1===n?"":(0,s.generateUrl)("/apps/photos/api/v1/preview/".concat(n,"?x=",512,"&y=",512))}},mixins:[i.Z],data:function(){return{showAlbumCreationForm:!1}},methods:{handleAlbumCreated:function(n){var t=n.album;this.showAlbumCreationForm=!1,this.$router.push("albums/".concat(t.basename))},onRefresh:function(){this.fetchAlbums()}}};var A=o(93379),b=o.n(A),h=o(7795),d=o.n(h),v=o(90569),C=o.n(v),g=o(3565),f=o.n(g),_=o(19216),w=o.n(_),y=o(44589),N=o.n(y),k=o(71277),T={};T.styleTagTransform=N(),T.setAttributes=f(),T.insert=C().bind(null,"head"),T.domAPI=d(),T.insertStyleElement=w();b()(k.Z,T);k.Z&&k.Z.locals&&k.Z.locals;const Z=(0,o(51900).Z)(p,(function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",[o("CollectionsList",{staticClass:"albums-list",attrs:{collections:n.albums,loading:n.loadingAlbums,error:n.errorFetchingAlbums},scopedSlots:n._u([{key:"default",fn:function(t){var e=t.collection;return o("CollectionCover",{key:e.basename,attrs:{link:"/albums/"+e.basename,"alt-img":n.t("photos","Cover photo for album {albumName}",{albumName:e.basename}),"cover-url":n._f("coverUrl")(e.lastPhoto)}},[o("h2",{staticClass:"album__name"},[n._v("\n\t\t\t\t"+n._s(e.basename)+"\n\t\t\t")]),n._v(" "),o("div",{staticClass:"album__details",attrs:{slot:"subtitle"},slot:"subtitle"},[n._v("\n\t\t\t\t"+n._s(e.date)+" ⸱ "+n._s(n.n("photos","%n item","%n photos and videos",e.nbItems))+"\n\t\t\t")])])}}])},[o("HeaderNavigation",{key:"navigation",attrs:{slot:"header",loading:n.loadingAlbums,title:n.t("photos","Albums"),"root-title":n.t("photos","Albums")},on:{refresh:n.onRefresh},slot:"header"},[o("NcButton",{attrs:{"aria-label":n.t("photos","Create a new album.")},on:{click:function(t){n.showAlbumCreationForm=!0}},scopedSlots:n._u([{key:"icon",fn:function(){return[o("Plus")]},proxy:!0}])},[n._v("\n\t\t\t\t"+n._s(n.t("photos","New album"))+"\n\t\t\t")])],1),n._v(" "),n._v(" "),o("NcEmptyContent",{attrs:{slot:"empty-collections-list",title:n.t("photos","There is no album yet!")},slot:"empty-collections-list"},[o("FolderMultipleImage",{attrs:{slot:"icon"},slot:"icon"})],1)],1),n._v(" "),n.showAlbumCreationForm?o("NcModal",{attrs:{title:n.t("photos","New album")},on:{close:function(t){n.showAlbumCreationForm=!1}}},[o("AlbumForm",{on:{done:n.handleAlbumCreated}})],1):n._e()],1)}),[],!1,null,"4377a492",null).exports}}]);
//# sourceMappingURL=photos-src_views_Albums_vue.js.map?v=f90f739d357d0a08e340