photos/js/photos-src_views_SharedAlbu...

2 lines
7.0 KiB
JavaScript
Raw Permalink Normal View History

"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["src_views_SharedAlbumContent_vue"],{61248:(t,e,o)=>{o.d(e,{Z:()=>s});var l=o(87537),a=o.n(l),n=o(23645),i=o.n(n)()(a());i.push([t.id,".album[data-v-3ba35108]{display:flex;flex-direction:column}.album__title[data-v-3ba35108]{width:100%}.album__name[data-v-3ba35108]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.album__location[data-v-3ba35108]{margin-left:-4px;display:flex;color:var(--color-text-lighter)}","",{version:3,sources:["webpack://./src/views/SharedAlbumContent.vue"],names:[],mappings:"AAEA,wBACC,YAAA,CACA,qBAAA,CAEA,+BACC,UAAA,CAGD,8BACC,eAAA,CACA,kBAAA,CACA,sBAAA,CAGD,kCACC,gBAAA,CACA,YAAA,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.album {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t&__title {\n\t\twidth: 100%;\n\t}\n\n\t&__name {\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&__location {\n\t\tmargin-left: -4px;\n\t\tdisplay: flex;\n\t\tcolor: var(--color-text-lighter);\n\t}\n}\n'],sourceRoot:""}]);const s=i},66202:(t,e,o)=>{o.r(e),o.d(e,{default:()=>Z});var l=o(20629),a=o(64882),n=o(41922),i=o(31352),s=o(41316),c=o(5352),r=o(42588),m=o(85109),u=o(44893),d=o(66951),h=o(60213),b=o(34343),A=o(19550),p=o(74101);const C={name:"SharedAlbumContent",components:{MapMarker:s.Z,Plus:c.Z,Close:u.Z,Delete:r.Z,ImagePlus:m.Z,NcEmptyContent:a.SL,NcActions:a.O3,NcActionButton:a.Js,NcActionSeparator:a.rr,NcButton:a.P2,NcUserBubble:a.uq,CollectionContent:b.Z,PhotosPicker:p.Z,HeaderNavigation:A.Z},mixins:[h.Z,d.Z,a.tq],props:{albumName:{type:String,default:"/"}},data:()=>({showAddPhotosModal:!1,loadingCount:0,loadingAddFilesToAlbum:!1,collaboratorTypes:n.D}),computed:{...(0,l.Se)(["files","sharedAlbumsFiles"]),album(){return this.$store.getters.getSharedAlbum(this.albumName)},albumFileIds(){return this.$store.getters.getSharedAlbumFiles(this.albumName)},albumOriginalName(){return this.albumName.replace(new RegExp("\\(".concat(this.album.collaborators[0].id,"\\)$")),"")},albumFileName(){return this.$store.getters.getSharedAlbumName(this.albumName)}},async mounted(){this.fetchAlbum(),this.fetchAlbumContent()},methods:{...(0,l.nv)(["addFilesToCollection","removeFilesFromCollection","deleteCollection"]),async fetchAlbum(){await this.fetchCollection(this.albumFileName,["<nc:location />","<nc:dateRange />","<nc:collaborators />"])},async fetchAlbumContent(){await this.fetchCollectionFiles(this.albumFileName)},async handleFilesPicked(t){this.showAddPhotosModal=!1,await this.addFilesToCollection({collectionFileName:this.album.filename,fileIdsToAdd:t}),await this.fetchAlbumContent()},async handleRemoveFilesFromAlbum(t){this.$refs.collectionContent.onUncheckFiles(t),await this.removeFilesFromCollection({collectionFileName:this.album.filename,fileIdsToRemove:t})},async handleDeleteAlbum(){await this.deleteCollection({collectionFileName:this.album.filename}),this.$router.push("/sharedalbums")},t:i.Iu}};var g=o(93379),_=o.n(g),f=o(7795),v=o.n(f),N=o(90569),y=o.n(N),F=o(3565),w=o.n(F),k=o(19216),T=o.n(k),P=o(44589),S=o.n(P),x=o(61248),B={};B.styleTagTransform=S(),B.setAttributes=w(),B.insert=y().bind(null,"head"),B.domAPI=v(),B.insertStyleElement=T();_()(x.Z,B);x.Z&&x.Z.locals&&x.Z.locals;const Z=(0,o(51900).Z)(C,(function(){var t=this,e=t._self._c;return e("div",[e("CollectionContent",{ref:"collectionContent",attrs:{collection:t.album,"collection-file-ids":t.albumFileIds,loading:t.loadingCollection||t.loadingCollectionFiles,error:t.errorFetchingCollection||t.errorFetchingCollection
//# sourceMappingURL=photos-src_views_SharedAlbumContent_vue.js.map?v=5143544d69dea3c55283