%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps/photos/js/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps/photos/js/photos-src_views_SharedAlbums_vue.js

"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["src_views_SharedAlbums_vue"],{58637:(t,n,e)=>{e.d(n,{A:()=>o});const o={name:"AbortControllerMixin",data:()=>({abortController:new AbortController}),beforeDestroy(){this.abortController.abort()},beforeRouteLeave(t,n,e){this.abortController.abort(),this.abortController=new AbortController,e()}}},82314:(t,n,e)=>{e.d(n,{A:()=>l});var o=e(95353),a=e(58637),i=e(32041);const l={name:"FetchCollectionsMixin",data:()=>({errorFetchingCollections:null,loadingCollections:!1}),mixins:[a.A],methods:{...(0,o.i0)(["addCollections"]),async fetchCollections(t,n,e){if(this.loadingCollections)return[];try{this.loadingCollections=!0,this.errorFetchingCollections=null;const o=await(0,i.An)(t,{signal:this.abortController.signal},n,e);return this.addCollections({collections:o}),o}catch(t){404===t.response?.status?this.errorFetchingCollections=404:this.errorFetchingCollections=t}finally{this.loadingCollections=!1}return[]}}}},32041:(t,n,e)=>{e.d(n,{An:()=>p,et:()=>m,t9:()=>d});var o=e(67057),a=e.n(o),i=e(53334),l=e(59006),r=e(63360),s=e(83984);function c(){return`<?xml version="1.0"?>\n\t\t\t<d:propfind 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:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<d:prop>\n\t\t\t\t\t<nc:last-photo />\n\t\t\t\t\t<nc:nbItems />\n\t\t\t\t\t${(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).join("")}\n\t\t\t\t</d:prop>\n\t\t\t</d:propfind>`}function A(){return`<?xml version="1.0"?>\n\t\t\t<d:propfind 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:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<d:prop>\n\t\t\t\t\t<d:getcontentlength />\n\t\t\t\t\t<d:getcontenttype />\n\t\t\t\t\t<d:getetag />\n\t\t\t\t\t<d:getlastmodified />\n\t\t\t\t\t<d:resourcetype />\n\t\t\t\t\t<nc:metadata-photos-size />\n\t\t\t\t\t<nc:metadata-photos-original_date_time />\n\t\t\t\t\t<nc:metadata-files-live-photo />\n\t\t\t\t\t<nc:has-preview />\n\t\t\t\t\t<nc:hidden />\n\t\t\t\t\t<oc:favorite />\n\t\t\t\t\t<oc:fileid />\n\t\t\t\t\t<oc:permissions />\n\t\t\t\t\t${(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).join("")}\n\t\t\t\t</d:prop>\n\t\t\t</d:propfind>`}async function d(t,n){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.Ay;try{const a=await o.stat(t,{data:c(e),details:!0,...n});return r.A.debug("[Collections] Fetched a collection: ",{data:a.data}),g(a.data)}catch(t){if("ERR_CANCELED"===t.code)return null;throw t}}async function p(t,n){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.Ay;try{const a=await o.getDirectoryContents(t,{data:c(e),details:!0,...n});return r.A.debug(`[Collections] Fetched ${a.data.length} collections: `,{data:a.data}),a.data.filter((n=>n.filename!==t)).map(g)}catch(t){if("ERR_CANCELED"===t.code)return[];throw t}}function g(t){void 0===t.props.collaborators||""===t.props.collaborators?t.props.collaborators=[]:"object"==typeof t.props.collaborators.collaborator&&(Array.isArray(t.props.collaborators.collaborator)?t.props.collaborators=t.props.collaborators.collaborator:t.props.collaborators=[t.props.collaborators.collaborator]),t=(0,s.JR)(t);const n=JSON.parse(t.dateRange?.replace(/&quot;/g,'"')??"{}");null===n.start&&(n.start=a()().unix(),n.end=a()().unix());const e={startDate:a().unix(n.start).format("MMMM YYYY"),endDate:a().unix(n.end).format("MMMM YYYY")};return t.date=e.startDate===e.endDate?e.startDate:(0,i.Tl)("photos","{startDate} to {endDate}",e),t}async function m(t,n){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.Ay;try{const a=(await o.getDirectoryContents(t,{data:A(e),details:!0,...n})).data.map((t=>(0,s.JR)(t))).filter((t=>t.fileid));return r.A.debug(`[Collections] Fetched ${a.length} new files: `,a),a}catch(t){if("ERR_CANCELED"===t.code)return[];throw r.A.error("Error fetching collection files",{error:t}),console.error(t),t}}},48626:(t,n,e)=>{e.d(n,{A:()=>r});var o=e(71354),a=e.n(o),i=e(76314),l=e.n(i)()(a());l.push([t.id,".collection-cover[data-v-ed2d700e]{display:flex;flex-direction:column;padding:16px;border-radius:var(--border-radius-large)}.collection-cover[data-v-ed2d700e]:hover,.collection-cover[data-v-ed2d700e]:focus{background:var(--color-background-dark)}.collection-cover__image[data-v-ed2d700e]{width:350px;height:350px;object-fit:cover;border-radius:var(--border-radius-large)}@media only screen and (max-width: 1200px){.collection-cover__image[data-v-ed2d700e]{width:250px;height:250px}}.collection-cover__image--placeholder[data-v-ed2d700e]{background:var(--color-primary-element-light)}.collection-cover__image--placeholder[data-v-ed2d700e] .material-design-icon{width:100%;height:100%}.collection-cover__image--placeholder[data-v-ed2d700e] .material-design-icon .material-design-icon__svg{fill:var(--color-primary-element)}.collection-cover__details[data-v-ed2d700e]{display:flex;flex-direction:column;margin-top:16px;width:350px}@media only screen and (max-width: 1200px){.collection-cover__details[data-v-ed2d700e]{width:250px}}.collection-cover__details__title[data-v-ed2d700e]{display:flex}.collection-cover__details__subtitle[data-v-ed2d700e]{display:flex;color:var(--color-text-lighter)}","",{version:3,sources:["webpack://./src/components/Collection/CollectionCover.vue"],names:[],mappings:"AAEA,mCACC,YAAA,CACA,qBAAA,CACA,YAAA,CACA,wCAAA,CAEA,kFACC,uCAAA,CAGD,0CACC,WAAA,CACA,YAAA,CACA,gBAAA,CACA,wCAAA,CAEA,2CAND,0CAOE,WAAA,CACA,YAAA,CAAA,CAGD,uDACC,6CAAA,CAEA,6EACC,UAAA,CACA,WAAA,CAEA,wGACC,iCAAA,CAMJ,4CACC,YAAA,CACA,qBAAA,CACA,eAAA,CACA,WAAA,CAEA,2CAND,4CAOE,WAAA,CAAA,CAGD,mDACC,YAAA,CAGD,sDACC,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.collection-cover {\n\tdisplay: flex;\n\tflex-direction: column;\n\tpadding: 16px;\n\tborder-radius: var(--border-radius-large);\n\n\t&:hover, &:focus {\n\t\tbackground: var(--color-background-dark);\n\t}\n\n\t&__image {\n\t\twidth: 350px;\n\t\theight: 350px;\n\t\tobject-fit: cover;\n\t\tborder-radius: var(--border-radius-large);\n\n\t\t@media only screen and (max-width: 1200px) {\n\t\t\twidth: 250px;\n\t\t\theight: 250px;\n\t\t}\n\n\t\t&--placeholder {\n\t\t\tbackground: var(--color-primary-element-light);\n\n\t\t\t:deep .material-design-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\n\t\t\t\t.material-design-icon__svg {\n\t\t\t\t\tfill: var(--color-primary-element);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t&__details {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmargin-top: 16px;\n\t\twidth: 350px;\n\n\t\t@media only screen and (max-width: 1200px) {\n\t\t\twidth: 250px;\n\t\t}\n\n\t\t&__title {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t&__subtitle {\n\t\t\tdisplay: flex;\n\t\t\tcolor: var(--color-text-lighter);\n\t\t}\n\t}\n\n}\n'],sourceRoot:""}]);const r=l},22908:(t,n,e)=>{e.d(n,{A:()=>r});var o=e(71354),a=e.n(o),i=e(76314),l=e.n(i)()(a());l.push([t.id,".collections[data-v-5c125700]{display:flex;flex-direction:column;height:100%}.collections__list[data-v-5c125700]{padding:32px 48px;flex-grow:1;display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;height:calc(100% - 60px);overflow-x:scroll}@media only screen and (max-width: 1200px){.collections__list[data-v-5c125700]{padding:32px 12px;justify-content:center}}","",{version:3,sources:["webpack://./src/components/Collection/CollectionsList.vue"],names:[],mappings:"AAEA,8BACC,YAAA,CACA,qBAAA,CACA,WAAA,CAEA,oCACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,cAAA,CACA,QAAA,CACA,sBAAA,CACA,wBAAA,CACA,iBAAA,CAEA,2CAVD,oCAWE,iBAAA,CACA,sBAAA,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.collections {\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\n\t&__list {\n\t\tpadding: 32px 48px;\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 16px;\n\t\talign-items: flex-start;\n\t\theight: calc(100% - 60px);\n\t\toverflow-x: scroll;\n\n\t\t@media only screen and (max-width: 1200px) {\n\t\t\tpadding: 32px 12px;\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const r=l},8351:(t,n,e)=>{e.d(n,{A:()=>r});var o=e(71354),a=e.n(o),i=e(76314),l=e.n(i)()(a());l.push([t.id,".photos-navigation[data-v-544b8840]{position:sticky;z-index:20;top:0;display:flex;flex-wrap:wrap;gap:calc(2*var(--app-navigation-padding));align-items:center;justify-content:flex-start;width:100%;padding-inline:calc(var(--default-clickable-area) + 2*var(--app-navigation-padding)) var(--app-navigation-padding);padding-block:var(--app-navigation-padding);background:var(--color-main-background)}.photos-navigation__back[data-v-544b8840]{position:absolute !important;left:var(--app-navigation-padding)}.photos-navigation__title[data-v-544b8840]{max-width:45%;display:flex;flex-direction:column}.photos-navigation__title__main[data-v-544b8840]{cursor:pointer;font-weight:700;font-size:20px;line-height:44px}.photos-navigation__title__main[data-v-544b8840],.photos-navigation__title__sub[data-v-544b8840]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.photos-navigation__loader[data-v-544b8840]{margin-inline-start:32px}.photos-navigation__content-right[data-v-544b8840]{display:flex;align-items:center;justify-content:center;margin-inline-start:auto}","",{version:3,sources:["webpack://./src/components/HeaderNavigation.vue"],names:[],mappings:"AAEA,oCACC,eAAA,CACA,UAAA,CACA,KAAA,CACA,YAAA,CAEA,cAAA,CACA,yCAAA,CACA,kBAAA,CACA,0BAAA,CACA,UAAA,CAEA,kHAAA,CAEA,2CAAA,CACA,uCAAA,CAEA,0CAEC,4BAAA,CACA,kCAAA,CAGD,2CACC,aAAA,CACA,YAAA,CACA,qBAAA,CAEA,iDACC,cAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CAGD,iGACC,eAAA,CACA,kBAAA,CACA,sBAAA,CAIF,4CACC,wBAAA,CAGD,mDACC,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,wBAAA",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.photos-navigation {\n\tposition: sticky;\n\tz-index: 20;\n\ttop: 0;\n\tdisplay: flex;\n\t// We need to wrap on small devices for accessibility\n\tflex-wrap: wrap;\n\tgap: calc(2 * var(--app-navigation-padding));\n\talign-items: center;\n\tjustify-content: flex-start;\n\twidth: 100%;\n\t// Ensure to not overlap with app navigation toggle\n\tpadding-inline: calc(var(--default-clickable-area) + 2 * var(--app-navigation-padding)) var(--app-navigation-padding);\n\t// Align with app navigation toggle\n\tpadding-block: var(--app-navigation-padding);\n\tbackground: var(--color-main-background);\n\n\t&__back {\n\t\t// Replaces the app navigation button\n\t\tposition: absolute !important;\n\t\tleft: var(--app-navigation-padding);\n\t}\n\n\t&__title {\n\t\tmax-width: 45%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t&__main {\n\t\t\tcursor: pointer;\n\t\t\tfont-weight: 700;\n\t\t\tfont-size: 20px;\n\t\t\tline-height: 44px;\n\t\t}\n\n\t\t&__main, &__sub {\n\t\t\toverflow: hidden;\n\t\t\twhite-space: nowrap;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\t}\n\n\t&__loader {\n\t\tmargin-inline-start: 32px;\n\t}\n\n\t&__content-right {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tmargin-inline-start: auto;\n\t}\n}\n\n'],sourceRoot:""}]);const r=l},17448:(t,n,e)=>{e.d(n,{A:()=>r});var o=e(71354),a=e.n(o),i=e(76314),l=e.n(i)()(a());l.push([t.id,".albums-list[data-v-eece3294]{display:flex;flex-direction:column}.albums-list .album__name[data-v-eece3294]{font-weight:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:20px;margin-bottom:12px;line-height:30px;color:var(--color-main-text)}","",{version:3,sources:["webpack://./src/views/SharedAlbums.vue"],names:[],mappings:"AAEA,8BACC,YAAA,CACA,qBAAA,CAEA,2CACC,kBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CACA,cAAA,CACA,kBAAA,CACA,gBAAA,CACA,4BAAA",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\tfont-size: 20px;\n\t\tmargin-bottom: 12px;\n\t\tline-height: 30px;\n\t\tcolor: var(--color-main-text);\n\t}\n}\n'],sourceRoot:""}]);const r=l},15897:(t,n,e)=>{e.d(n,{A:()=>a});const o={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const a=(0,e(14486).A)(o,(function(){var t=this,n=t._self._c;return n("span",t._b({staticClass:"material-design-icon alert-circle-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},55028:(t,n,e)=>{e.d(n,{A:()=>a});const o={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const a=(0,e(14486).A)(o,(function(){var t=this,n=t._self._c;return n("span",t._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},35929:(t,n,e)=>{e.d(n,{A:()=>a});const o={name:"FolderMultipleImageIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const a=(0,e(14486).A)(o,(function(){var t=this,n=t._self._c;return n("span",t._b({staticClass:"material-design-icon folder-multiple-image-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M7,15L11.5,9L15,13.5L17.5,10.5L21,15M22,4H14L12,2H6A2,2 0 0,0 4,4V16A2,2 0 0,0 6,18H22A2,2 0 0,0 24,16V6A2,2 0 0,0 22,4M2,6H0V11H0V20A2,2 0 0,0 2,22H20V20H2V6Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},85986:(t,n,e)=>{e.d(n,{A:()=>a});const o={name:"ImageMultipleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const a=(0,e(14486).A)(o,(function(){var t=this,n=t._self._c;return n("span",t._b({staticClass:"material-design-icon image-multiple-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("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?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},19003:(t,n,e)=>{e.d(n,{A:()=>v});const o={name:"CollectionCover",components:{ImageMultiple:e(85986).A},props:{coverUrl:{type:String,required:!0},altImg:{type:String,required:!0},link:{type:String,required:!0}}};var a=e(85072),i=e.n(a),l=e(97825),r=e.n(l),s=e(77659),c=e.n(s),A=e(55056),d=e.n(A),p=e(10540),g=e.n(p),m=e(41113),u=e.n(m),C=e(48626),h={};h.styleTagTransform=u(),h.setAttributes=d(),h.insert=c().bind(null,"head"),h.domAPI=r(),h.insertStyleElement=g();i()(C.A,h);C.A&&C.A.locals&&C.A.locals;const v=(0,e(14486).A)(o,(function(){var t=this,n=t._self._c;return n("li",[n("router-link",{staticClass:"collection-cover",attrs:{to:t.link}},[""!==t.coverUrl?n("img",{staticClass:"collection-cover__image",attrs:{src:t.coverUrl,alt:t.altImg}}):n("div",{staticClass:"collection-cover__image collection-cover__image--placeholder"},[n("ImageMultiple",{attrs:{size:128}})],1),t._v(" "),n("div",{staticClass:"collection-cover__details"},[n("div",{staticClass:"collection-cover__details__title"},[t._t("default")],2),t._v(" "),n("div",{staticClass:"collection-cover__details__subtitle"},[t._t("subtitle")],2)])])],1)}),[],!1,null,"ed2d700e",null).exports},97377:(t,n,e)=>{e.d(n,{A:()=>b});var o=e(15897),a=e(76333),i=e(53334);const l={name:"CollectionsList",components:{AlertCircle:o.A,NcEmptyContent:a.yI},props:{collections:{type:Object,required:!0},loading:{type:Boolean,default:!1},error:{type:Error,default:null}},computed:{noCollection(){return 0===Object.keys(this.collections).length}},methods:{t:i.Tl}};var r=e(85072),s=e.n(r),c=e(97825),A=e.n(c),d=e(77659),p=e.n(d),g=e(55056),m=e.n(g),u=e(10540),C=e.n(u),h=e(41113),v=e.n(h),_=e(22908),f={};f.styleTagTransform=v(),f.setAttributes=m(),f.insert=p().bind(null,"head"),f.domAPI=A(),f.insertStyleElement=C();s()(_.A,f);_.A&&_.A.locals&&_.A.locals;const b=(0,e(14486).A)(l,(function(){var t=this,n=t._self._c;return t.error?n("NcEmptyContent",{attrs:{name:t.t("photos","An error occurred")}},[n("AlertCircle",{attrs:{slot:"icon"},slot:"icon"})],1):n("div",{staticClass:"collections"},[t._t("header"),t._v(" "),t.noCollection&&!t.loading?t._t("empty-collections-list"):t.noCollection?t._e():n("ul",{staticClass:"collections__list"},[t._l(t.collections,(function(n){return t._t("default",null,{collection:n})}))],2)],2)}),[],!1,null,"5c125700",null).exports},16482:(n,e,o)=>{o.d(e,{A:()=>b});var a=o(55028),i=o(76333);const l={name:"HeaderNavigation",components:{ArrowLeft:a.A,NcButton:i.x1,NcLoadingIcon:i.ne},inheritAttrs:!1,props:{loading:{type:Boolean,default:!1},path:{type:String,default:"/"},title:{type:String,required:!0},rootTitle:{type:String,default:t("photos","Photos")},params:{type:Object,default:null}},computed:{isRoot(){const t="/"===this.path;return this.toggleNavigationButton(!t),t},name(){return this.isRoot?this.rootTitle:this.title},parentPath(){const t=this.path.split("/");t.pop();const n=t.join("/");return this.isRoot||""===n.trim()?"/":t.join("/")},parentName(){return this.parentPath&&this.parentPath.split("/").pop()},backToText(){return"/"===this.parentPath?t("photos","Back to {folder}",{folder:this.rootTitle}):t("photos","Back to {folder}",{folder:this.parentName})},to(){const t=/^\/?(.*)/i.exec(this.parentPath)[1],{name:n,params:e}=Object.assign({},this.$route,{params:this.params||{path:t}});return""===t?{name:n}:decodeURIComponent(this.$router.resolve({name:n,params:e}).resolved.path)}},methods:{folderUp(){this.$router.push(this.to)},refresh(){this.$emit("refresh")},toggleNavigationButton(t){const n=document.querySelector("button.app-navigation-toggle");null!==n&&(n.style.display=t?"none":null)}}};var r=o(85072),s=o.n(r),c=o(97825),A=o.n(c),d=o(77659),p=o.n(d),g=o(55056),m=o.n(g),u=o(10540),C=o.n(u),h=o(41113),v=o.n(h),_=o(8351),f={};f.styleTagTransform=v(),f.setAttributes=m(),f.insert=p().bind(null,"head"),f.domAPI=A(),f.insertStyleElement=C();s()(_.A,f);_.A&&_.A.locals&&_.A.locals;const b=(0,o(14486).A)(l,(function(){var t=this,n=t._self._c;return n("div",{staticClass:"photos-navigation",class:{"photos-navigation--root":t.isRoot},attrs:{role:"toolbar"}},[t.isRoot?t._e():n("NcButton",{staticClass:"photos-navigation__back",attrs:{"aria-label":t.t("photos","Go back"),type:"tertiary"},on:{click:t.folderUp},scopedSlots:t._u([{key:"icon",fn:function(){return[n("ArrowLeft",{attrs:{size:20}})]},proxy:!0}],null,!1,1821202730)}),t._v(" "),n("div",{staticClass:"photos-navigation__title"},[n("h1",{staticClass:"photos-navigation__title__main",on:{click:t.refresh}},[t._v("\n\t\t\t"+t._s(t.name)+"\n\t\t")]),t._v(" "),n("div",{staticClass:"photos-navigation__title__sub"}),t._v(" "),t._t("subtitle")],2),t._v(" "),t.$slots.default?n("div",{staticClass:"photos-navigation__content"},[t._t("default")],2):t._e(),t._v(" "),n("NcLoadingIcon",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"photos-navigation__loader"}),t._v(" "),n("div",{staticClass:"photos-navigation__content-right"},[t._t("right")],2)],1)}),[],!1,null,"544b8840",null).exports},54134:(t,n,e)=>{e.r(n),e.d(n,{default:()=>W});var o=e(35929),a=e(63814),i=e(76333),l=e(53334),r=e(21777),s=e(97377),c=e(19003),A=e(16482),d=e(82314);const p={name:"SharedAlbums",components:{FolderMultipleImage:o.A,NcEmptyContent:i.yI,CollectionsList:s.A,CollectionCover:c.A,HeaderNavigation:A.A,NcUserBubble:i.Z9},filters:{coverUrl:t=>-1===t?"":(0,a.Jv)(`/apps/photos/api/v1/preview/${t}?x=512&y=512`),albumOriginalName:t=>t.basename.replace(new RegExp(`\\(${t.collaborators[0].id}\\)$`),"")},mixins:[d.A],computed:{sharedAlbums(){return this.$store.getters.sharedAlbums}},async beforeMount(){this.fetchSharedAlbums()},methods:{fetchSharedAlbums(){this.fetchCollections(`/photos/${(0,r.HW)()?.uid}/sharedalbums`,["<nc:location />","<nc:dateRange />","<nc:collaborators />"])},t:l.Tl,n:l.zw}};var g=e(85072),m=e.n(g),u=e(97825),C=e.n(u),h=e(77659),v=e.n(h),_=e(55056),f=e.n(_),b=e(10540),x=e.n(b),y=e(41113),w=e.n(y),k=e(17448),T={};T.styleTagTransform=w(),T.setAttributes=f(),T.insert=v().bind(null,"head"),T.domAPI=C(),T.insertStyleElement=x();m()(k.A,T);k.A&&k.A.locals&&k.A.locals;const W=(0,e(14486).A)(p,(function(){var t=this,n=t._self._c;return n("CollectionsList",{staticClass:"albums-list",attrs:{collections:t.sharedAlbums,loading:t.loadingCollections,error:t.errorFetchingCollections},scopedSlots:t._u([{key:"default",fn:function(e){let{collection:o}=e;return n("CollectionCover",{key:o.basename,attrs:{link:`/sharedalbums/${o.basename}`,"alt-img":t.t("photos","Cover photo for shared album {albumName}.",{albumName:o.basename}),"data-test":o.basename,"cover-url":t._f("coverUrl")(o.lastPhoto)}},[n("span",{staticClass:"album__name"},[t._v("\n\t\t\t"+t._s(t._f("albumOriginalName")(o))+"\n\t\t")]),t._v(" "),n("div",{staticClass:"album__details",attrs:{slot:"subtitle"},slot:"subtitle"},[t._v("\n\t\t\t"+t._s(o.date)+" ⸱ "+t._s(t.n("photos","%n item","%n photos and videos",o.nbItems))+"\n\t\t\t"),n("br"),t._v("\n\t\t\t"+t._s(t.t("photos","Shared by"))+" "),n("NcUserBubble",{attrs:{"display-name":o.collaborators[0].label,user:o.collaborators[0].id}})],1)])}}])},[n("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(" "),n("NcEmptyContent",{attrs:{slot:"empty-collections-list",name:t.t("photos","There is no album yet!")},slot:"empty-collections-list"},[n("FolderMultipleImage",{attrs:{slot:"icon"},slot:"icon"})],1)],1)}),[],!1,null,"eece3294",null).exports}}]);
//# sourceMappingURL=photos-src_views_SharedAlbums_vue.js.map?v=f553bfb40364ef235ad5

Zerion Mini Shell 1.0