photos/js/photos-src_views_SharedAlbu...

2 lines
4.0 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["src_views_SharedAlbums_vue"],{20319:(t,e,o)=>{o.d(e,{Z:()=>r});var a=o(87537),n=o.n(a),s=o(23645),l=o.n(s)()(n());l.push([t.id,".albums-list[data-v-7c8c63b3]{display:flex;flex-direction:column}.albums-list .album__name[data-v-7c8c63b3]{font-weight:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}","",{version:3,sources:["webpack://./src/views/SharedAlbums.vue"],names:[],mappings:"AAEA,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.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 r=l},96528:(t,e,o)=>{o.r(e),o.d(e,{default:()=>N});var a=o(91522),n=o(79753),s=o(15961),l=o(31352),r=o(77958),i=o(37378),c=o(47210),m=o(10849),u=o(49568);const b={name:"SharedAlbums",components:{FolderMultipleImage:a.Z,NcEmptyContent:s.SL,CollectionsList:i.Z,CollectionCover:c.Z,HeaderNavigation:m.Z,NcUserBubble:s.uq},filters:{coverUrl:t=>-1===t?"":(0,n.generateUrl)("/apps/photos/api/v1/preview/".concat(t,"?x=",512,"&y=",512)),albumOriginalName:t=>t.basename.replace(new RegExp("\\(".concat(t.collaborators[0].id,"\\)$")),"")},mixins:[u.Z],computed:{sharedAlbums(){return this.$store.getters.sharedAlbums}},async beforeMount(){this.fetchSharedAlbums()},methods:{fetchSharedAlbums(){var t;this.fetchCollections("/photos/".concat(null===(t=(0,r.ts)())||void 0===t?void 0:t.uid,"/sharedalbums"),["<nc:location />","<nc:dateRange />","<nc:collaborators />"])},t:l.Iu,n:l.uN}};var d=o(93379),p=o.n(d),h=o(7795),A=o.n(h),g=o(90569),v=o.n(g),C=o(3565),f=o.n(C),_=o(19216),w=o.n(_),y=o(44589),T=o.n(y),k=o(20319),x={};x.styleTagTransform=T(),x.setAttributes=f(),x.insert=v().bind(null,"head"),x.domAPI=A(),x.insertStyleElement=w();p()(k.Z,x);k.Z&&k.Z.locals&&k.Z.locals;const N=(0,o(51900).Z)(b,(function(){var t=this,e=t._self._c;return e("CollectionsList",{staticClass:"albums-list",attrs:{collections:t.sharedAlbums,loading:t.loadingCollections,error:t.errorFetchingCollections},scopedSlots:t._u([{key:"default",fn:function(o){let{collection:a}=o;return e("CollectionCover",{key:a.basename,attrs:{link:"/sharedalbums/".concat(a.basename),"alt-img":t.t("photos","Cover photo for shared album {albumName}.",{albumName:a.basename}),"data-test":a.basename,"cover-url":t._f("coverUrl")(a.lastPhoto)}},[e("h2",{staticClass:"album__name"},[t._v("\n\t\t\t"+t._s(t._f("albumOriginalName")(a))+"\n\t\t")]),t._v(" "),e("div",{staticClass:"album__details",attrs:{slot:"subtitle"},slot:"subtitle"},[t._v("\n\t\t\t"+t._s(a.date)+" ⸱ "+t._s(t.n("photos","%n item","%n photos and videos",a.nbItems))+"\n\t\t\t"),e("br"),t._v("\n\t\t\t"+t._s(t.t("photos","Shared by"))+" "),e("NcUserBubble",{attrs:{"display-name":a.collaborators[0].label,user:a.collaborators[0].id}})],1)])}}])},[e("HeaderNavigation",{key:"navigation",attrs:{slot:"header",loading:t.loadingCollections,title:t.t("photos","Collaborative albums"),"root-title":t.t("photos","Collaborative albums")},on:{refresh:t.fetchSharedAlbums},slot:"header"}),t._v(" "),t._v(" "),e("NcEmptyContent",{attrs:{slot:"empty-collections-list",title:t.t("photos","There is no album yet!")},slot:"empty-collections-list"},[e("FolderMultipleImage",{attrs:{slot:"icon"},slot:"icon"})],1)],1)}),[],!1,null,"7c8c63b3",null).exports}}]);
//# sourceMappingURL=photos-src_views_SharedAlbums_vue.js.map?v=6f31b10150af0629c614