photos/js/photos-src_components_Album...

3 lines
23 KiB
JavaScript
Raw Normal View History

/*! For license information please see photos-src_components_Albums_AlbumForm_vue.js.LICENSE.txt */
"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["src_components_Albums_AlbumForm_vue"],{60213:(t,a,o)=>{o.d(a,{Z:()=>c});var l=o(20629),e=o(64024),n=o(69363),i=o(87076),r=o(59537),s=o(32114);const c={name:"FetchCollectionContentMixin",data:()=>({fetchSemaphore:new s.Z(1),loadingCollection:!1,loadingCollectionFiles:!1,errorFetchingCollection:null,errorFetchingCollectionFiles:null}),mixins:[n.Z],methods:{...(0,l.nv)(["appendFiles","addCollections","setCollectionFiles"]),async fetchCollection(t,a,o){if(this.loadingCollection)return null;try{this.loadingCollection=!0,this.errorFetchingCollection=null;const l=await(0,i.lA)(t,{signal:this.abortController.signal},a,o);return this.addCollections({collections:[l]}),l}catch(t){var l;if(404===(null===(l=t.response)||void 0===l?void 0:l.status))return this.errorFetchingCollection=404,null;this.errorFetchingCollection=t,r.Z.error("[PublicCollectionContent] Error fetching collection",{error:t}),(0,e.x2)(this.t("photos","Failed to fetch collection."))}finally{this.loadingCollection=!1}return null},async fetchCollectionFiles(t,a,o){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(this.loadingCollectionFiles)return[];const n=await this.fetchSemaphore.acquire();try{this.errorFetchingCollectionFiles=null,this.loadingCollectionFiles=!0;let e=await(0,i.dB)(t,{signal:this.abortController.signal},a,o);const n=e.map((t=>t.fileid.toString()));return l.forEach((t=>e=e.map(t))),this.appendFiles(e),e.length>0&&await this.$store.commit("setCollectionFiles",{collectionFileName:t,fileIds:n}),e}catch(t){var s;if(404===(null===(s=t.response)||void 0===s?void 0:s.status))return this.errorFetchingCollectionFiles=404,[];this.errorFetchingCollectionFiles=t,(0,e.x2)(this.t("photos","Failed to fetch collections list.")),r.Z.error("[PublicCollectionContent] Error fetching collection files",{error:t})}finally{this.loadingCollectionFiles=!1,this.fetchSemaphore.release(n)}return[]}}}},74054:(t,a,o)=>{o.d(a,{Z:()=>r});var l=o(87537),e=o.n(l),n=o(23645),i=o.n(n)()(e());i.push([t.id,".album-form[data-v-2e6bf1a2]{display:flex;flex-direction:column;height:350px;padding:calc(var(--default-grid-baseline)*4)}.album-form .form-title[data-v-2e6bf1a2]{font-weight:bold}.album-form .form-subtitle[data-v-2e6bf1a2]{color:var(--color-text-lighter)}.album-form .form-inputs[data-v-2e6bf1a2]{flex:1;display:flex;flex-direction:column;gap:calc(var(--default-grid-baseline)*4)}.album-form .form-buttons[data-v-2e6bf1a2]{display:flex;justify-content:space-between;flex-direction:column}.album-form .form-buttons .left-buttons[data-v-2e6bf1a2],.album-form .form-buttons .right-buttons[data-v-2e6bf1a2]{display:flex;gap:calc(var(--default-grid-baseline)*4)}.album-form .form-buttons .right-buttons[data-v-2e6bf1a2]{justify-content:flex-end}.left-buttons[data-v-2e6bf1a2]{flex-grow:1}@media only screen and (max-width: 1020px){.right-buttons[data-v-2e6bf1a2]{justify-content:flex-end;flex-direction:column}}","",{version:3,sources:["webpack://./src/components/Albums/AlbumForm.vue"],names:[],mappings:"AAEA,6BACC,YAAA,CACA,qBAAA,CACA,YAAA,CACA,4CAAA,CAEA,yCACC,gBAAA,CAGD,4CACC,+BAAA,CAGD,0CACC,MAAA,CACA,YAAA,CACA,qBAAA,CACA,wCAAA,CAGD,2CACC,YAAA,CACA,6BAAA,CACA,qBAAA,CAEA,mHACC,YAAA,CACA,wCAAA,CAGD,0DACC,wBAAA,CAKH,+BACC,WAAA,CAGD,2CACC,gCACC,wBAAA,CACA,qBAAA,CAAA",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-form {\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 350px;\n\tpadding: calc(var(--default-grid-baseline) * 4);\n\n\t.form-title {\n\t\tfont-weight: bold;\n\t}\n\n\t.form-sub
//# sourceMappingURL=photos-src_components_Albums_AlbumForm_vue.js.map?v=034244759e8ce7f31508