import{d as r,j as n,c as s,t as i}from"./preload-helper-BKveOr2o.chunk.mjs";import{L as a}from"./video-CODLAaTx.chunk.mjs";import{I as u,n as c,A as _}from"./icons-DBfG8RnV.chunk.mjs";import{N as p}from"./NcEmptyContent-Bix1E0zN.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 I=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 O=h.exports;export{I as C,O as a};
//# sourceMappingURL=CollectionsList-DxlASzGz.chunk.mjs.map
