1import{a as P}from"./chunk-FHG6OR5Q.js";import"./chunk-5OCGW736.js";import"./chunk-L5KTRORV.js";import"./chunk-4AGIG3ST.js";import"./chunk-ZRWRVIEI.js";import{a as A}from"./chunk-BUQEC5XV.js";import{b as L}from"./chunk-RUUG6MKU.js";import"./chunk-V4FXS3WF.js";import"./chunk-OG72OGV2.js";import"./chunk-F6KOIFYB.js";import"./chunk-KP34NQOC.js";import"./chunk-44ARBP7W.js";import"./chunk-GDN2HO6H.js";import"./chunk-O5IMFKMD.js";import"./chunk-BTSY4A5X.js";import"./chunk-TF7FLE3B.js";import{a as D}from"./chunk-3CXFU3CK.js";import"./chunk-DEE7AJTB.js";import"./chunk-HGMA3T7K.js";import{b as k,c as C}from"./chunk-ARXJEGOS.js";import{l as y}from"./chunk-WXFH2LIM.js";import{Ha as v,Ma as o,Ra as g,S as l,T as h,Ta as x,Ua as O,Va as _,Wa as s,Xa as c,Ya as d,db as m,f,ra as u,ub as w,uc as b,vc as M,wa as n}from"./chunk-FQWTLGMI.js";function E(e,p){if(e&1&&(s(0,"section",0),d(1,"mat-spinner",2),c()),e&2){let t=m();o("navbarColor",t.navbarColor),n(),o("diameter",85)}}function R(e,p){if(e&1&&(s(0,"div",4)(1,"h3",5)(2,"a",6),d(3,"span",7),c()(),d(4,"slider",8),c()),e&2){let t=p.$implicit,i=m(2);n(2),o("routerLink",i.getLink(t)),n(),o("innerHTML",t.wpItem.title,u),n(),o("slides",t.products)("slidesPerView",1)("breakpoints",i.breakpoints)("showDots",!0)("loop",!1)("origin","auto")("fullHeight",!1)("dotsUnder",!0)("dotsDark",!0)("showArrows",!0)}}function S(e,p){if(e&1&&(s(0,"section",1)(1,"div",3),O(2,R,5,12,"div",4,x),c()()),e&2){let t=m();o("navbarColor",t.navbarColor),n(2),_(t.collections)}}
1var r=function(e){return e[e.LOADING=0]="LOADING",e[e.ERROR=1]="ERROR",e[e.LOADED=2]="LOADED",e[e.NOT_FOUND=3]="NOT_FOUND",e}(r||{}),B=(()=>{class e{constructor(){this.collectionService=l(A),this.languageService=l(y),this.router=l(b),this.indexabilityService=l(L),this.state=r.LOADING,this.collections=[],this.PageState=r,this.navbarColor={background:C.offwhite,text:C.black},this.breakpoints={"(min-width: 768px)":{slides:{perView:2}},"(min-width: 1200px)":{slides:{perView:3}}}}ngOnInit(){this.loadCollections(),this.indexabilityService.setMetaTags()}loadCollections(){return f(this,null,function*(){this.state=r.LOADING;try{this.collections=yield this.collectionService.loadCollections(),this.state=r.LOADED}catch{this.state=r.ERROR,this.collections=[];return}})}getLink(t){return`/${this.languageService.currentLanguage()}/collection/${t.wpItem.slug}`}goToCollection(t){this.router.navigate([this.getLink(t)])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=h({type:e,selectors:[["app-collections"]],standalone:!0,features:[w],decls:2,vars:2,consts:[["id","loader",1,"full-height",3,"navbarColor"],["id","collections",3,"navbarColor"],["strokeWidth","2",3,"diameter"],[1,"container","max-width"],[1,"collection"],[1,"title"],[3,"routerLink"],[3,"innerHTML"],[3,"slides","slidesPerView","breakpoints","showDots","loop","origin","fullHeight","dotsUnder","dotsDark","showArrows"]],template:function(i,a){i&1&&v(0,E,2,2,"section",0)(1,S,4,1,"section",1),i&2&&(g(a.state==a.PageState.LOADING?0:-1),n(),g(a.state==a.PageState.LOADED?1:-1))},dependencies:[k,D,M,P],styles:["#collections[_ngcontent-%COMP%]{background-color:#f8f4f3;width:100%;box-sizing:border-box;padding:7rem 1rem;display:flex;flex-direction:column;align-items:center;overflow-x:hidden}.container[_ngcontent-%COMP%]{margin:0 auto;box-sizing:border-box;gap:6rem;display:flex;flex-direction:column;align-items:center}#loader[_ngcontent-%COMP%]{display:grid;place-items:center}.collection[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:2rem}.collection[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:0}.collection[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:flex-start;cursor:pointer}.collection[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{font-weight:700}@media (min-width: 992px){.collection[_ngcontent-%COMP%] slider[_ngcontent-%COMP%]{padding:0 2rem}}@media (min-width: 992px){.collection[_ngcontent-%COMP%] slider[_ngcontent-%COMP%] .arrow--left{left:-1rem}.collection[_ngcontent-%COMP%] slider[_ngcontent-%COMP%] .arrow--right{right:-1rem}}"]})}}return e})();export{B as CollectionsComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.