import{d as r,b as n,q as s,t as i}from"./vue.runtime.esm-Ct3_M7aQ.chunk.mjs";import{L as a}from"./video-BrTIeaIo.chunk.mjs";import{j as u,n as c,z as _}from"./icons-VGG7keIQ.chunk.mjs";import{N as p}from"./NcEmptyContent-fSEzv6W7.chunk.mjs";const m=r({__name:"CollectionCover",props:{coverUrl:null,altImg:null,parentRoute:null,collectionName:null},setup(t){const o=t,e=n(!1),l=s(()=>`${o.parentRoute}/${encodeURIComponent(o.collectionName)}`);return{__sfc:!0,props:o,coverLoadingError:e,link:l,RouterLink:a,ImageMultipleOutline:u}}});var d=function(){var t=this,o=t._self._c,e=t._self._setupProxy;return o(e.RouterLink,{staticClass:"collection-cover",attrs:{to:e.link}},[t.coverUrl!==""&&e.coverLoadingError===!1?o("img",{staticClass:"collection-cover__image",attrs:{src:t.coverUrl,alt:t.altImg},on:{error:function(l){e.coverLoadingError=!0}}}):o("div",{staticClass:"collection-cover__image collection-cover__image--placeholder"},[o(e.ImageMultipleOutline,{attrs:{size:128}})],1),o("div",{staticClass:"collection-cover__details"},[o("div",{staticClass:"collection-cover__details__title"},[t._t("default")],2),o("div",{staticClass:"collection-cover__details__subtitle"},[t._t("subtitle")],2)])])},v=[],C=c(m,d,v,!1,null,"719cd191");const O=C.exports,f={name:"CollectionsList",components:{AlertCircleOutline:_,NcEmptyContent:p},props:{collections:{type:Object,required:!0},loading:{type:Boolean,default:!1},error:{type:Error,default:null}},computed:{noCollection(){return Object.keys(this.collections).length===0}},methods:{t:i}};var g=function(){var t=this,o=t._self._c;return t.error?o("NcEmptyContent",{attrs:{name:t.t("photos","An error occurred")}},[o("AlertCircleOutline",{attrs:{slot:"icon"},slot:"icon"})],1):o("div",{staticClass:"collections"},[t._t("header"),t.noCollection&&!t.loading?t._t("empty-collections-list"):t.noCollection?t._e():o("ul",{staticClass:"collections__list"},t._l(t.collections,function(e){return o("li",{key:e.basename,attrs:{"data-cy-collections-list-collection":e.basename}},[t._t("default",null,{collection:e})],2)}),0)],2)},y=[],h=c(f,g,y,!1,null,"b585220f");const R=h.exports;export{O as C,R as a};
//# sourceMappingURL=CollectionsList-ASW5SCXU.chunk.mjs.map
