1import{c as B}from"./chunk-ENZKLJTZ.js";import{a as q}from"./chunk-57KLB3CQ.js";import{F as D,f as A,ia as j,ja as N}from"./chunk-6R2JHVBU.js";import{b as I,c as Q}from"./chunk-QPPOOVXJ.js";import{e as $}from"./chunk-FMQZIYHL.js";import{i as Z}from"./chunk-F63AVT2H.js";import{D as E,x as z}from"./chunk-CSUY57Y7.js";import{$c as F,Ac as R,Hb as g,Jb as h,Mb as b,Nb as V,Ob as a,Pb as l,Qb as p,Rb as d,Vb as w,Xc as T,bb as c,bc as f,cc as s,gc as v,hc as P,ic as S,ja as x,nc as y,oa as m,ob as O,pa as _,qc as C,sc as L,xb as k,zb as M}from"./chunk-FD4NMBEK.js";var K=["sliderRef"],H=["slideRef"],J=(e,o)=>o["@id"];function U(e,o){if(e&1&&d(0,"app-generic-product-preview",9),e&2){let i=s().$implicit,t=s();a("product",i)("sizes",t.sizes())}}function W(e,o){if(e&1&&d(0,"img",12),e&2){let i=s(2).$implicit;a("ngSrc",i.getPicture().url)("alt",i.name)}}function X(e,o){if(e&1&&(d(0,"fa-icon",16),C(1," Brouillon ")),e&2){let i=s(3);a("icon",i.faCircle)}}function Y(e,o){if(e&1&&(d(0,"fa-icon",17),C(1," En cours de validation ")),e&2){let i=s(3);a("icon",i.faCircle)}}function ee(e,o){if(e&1&&(d(0,"fa-icon",18),C(1," En ligne ")),e&2){let i=s(3);a("icon",i.faCircle)}}function te(e,o){if(e&1){let i=w();l(0,"a",10)(1,"div",11),f("click",function(){m(i);let n=s().$implicit,r=s();return _(r.openProduct(n))}),g(2,W,1,2,"img",12),p(),l(3,"a",13),f("click",function(){m(i);let n=s().$implicit,r=s();return _(r.openProduct(n))}),C(4),p(),l(5,"div",14),g(6,X,2,1)(7,Y,2,1)(8,ee,2,1),d(9,"fa-icon",15),p()()}if(e&2){let i,t=s().$implicit,n=s();c(2),h(t.getPicture()?2:-1),c(2),L(" ",t.name," "),c(),a("routerLink",R("/mon-espace-pro/mes-prestations/",t.uuid,"/modifier")),c(),h((i=t.status)===n.ProductStatus.Draft?6:i===n.ProductStatus.V
1alidation?7:i===n.ProductStatus.Published?8:-1),c(3),a("icon",n.faPencil)}}function ie(e,o){if(e&1&&(l(0,"div",4,1),g(2,U,1,2,"app-generic-product-preview",9)(3,te,10,6,"a",10),p()),e&2){let i=s();c(2),h(i.crossContentView?2:3)}}var he=(()=>{let o=class o{constructor(){this.products=[],this.crossContentView=!0,this.sizes=T(),this.currentSlide=0,this.maxSlide=0,this.defaultSpacing=16,this.ProductStatus=$,this.faCircle=D,this.cdr=x(F),this.ngZone=x(k),this.faChevronLeft=j,this.faChevronRight=N,this.faPencil=A,M(()=>{this.initSlider(),this.slideChildren.changes.subscribe(()=>{this.ngZone.runOutsideAngular(()=>{this.initSlider()}),this.cdr.detectChanges()})})}initSlider(){this.sliderRef&&this.products.length>0&&this.ngZone.runOutsideAngular(()=>{this.slider&&this.slider.destroy(),this.slider=new q(this.sliderRef.nativeElement,{slides:{perView:1,spacing:this.defaultSpacing},breakpoints:{"(min-width: 576px)":{slides:{perView:2,spacing:this.defaultSpacing}},"(min-width: 768px)":{slides:{perView:3,spacing:this.defaultSpacing}},"(min-width: 992px)":{slides:{perView:4,spacing:this.defaultSpacing}}},slideChanged:t=>{this.ngZone.run(()=>{this.currentSlide=t.track.details.rel,this.cdr.detectChanges()})},mode:"snap",updated:t=>{this.ngZone.run(()=>{this.maxSlide=t.track.details?.maxIdx||0,this.currentSlide>this.maxSlide&&(t.moveToIdx(0),this.currentSlide=0),this.cdr.detectChanges()})},created:t=>{this.ngZone.run(()=>{this.maxSlide=t.track.details?.maxIdx||0,this.cdr.detectChanges()})}})})}ngOnDestroy(){this.slider&&this.slider.destroy()}prevSlide(){this.slider&&this.currentSlide>0&&this.ngZone.run(()=>{this.slider?.prev()})}nextSlide(){this.slider&&this.currentSlide<this.maxSlide&&this.ngZone.run(()=>{this.slider?.next()})}openProduct(t){window.open(this.getProductLink(t),"_blank")}getProductLink(t){if(!t)return"";let n="/lieu/";return(t["@type"]==="ProductAnimationOnsite"||t["@type"]==="ProductAnimationOnline")&&(n="/team-building/"),`${n}${t.slug}`}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=O({type:o,selectors:[["app-product-list-carousel"]],viewQuery:function(n,r){if(n&1&&(v(K,5),v(H,5)),n&2){let u;P(u=S())&&(r.sliderRef=u.first),P(u=S())&&(r.slideChildren=u)}},inputs:{products:"products",crossContentView:"crossContentView",sizes:[1,"sizes"]},decls:11,vars:6,consts:[["sliderRef",""],["slideRef",""],[1,"wrapper"],[1,"keen-slider","product-list"],[1,"keen-slider__slide"],[1,"arrow","arrow-left"],[1,"arrow-icon",3,"click"],[3,"icon"],[1,"arrow","arrow-right"],[3,"product","sizes"],[1,"product"],[1,"product-image-wrapper",3,"click"],["fill","",1,"product-image",3,"ngSrc","alt"],[1,"product-title",3,"click"],[1,"product-status","position-relative",3,"routerLink"],[2,"position","absolute","right","0","top","0",3,"icon"],[2,"color","var(--bs-danger)",3,"icon"],[2,"color","var(--bs-warning)",3,"icon"],[2,"color","var(--bs-green)",3,"icon"]],template:function(n,r){if(n&1){let u=w();l(0,"div",2)(1,"div",3,0),b(3,ie,4,1,"div",4,J),p(),l(5,"div",5)(6,"div",6),f("click",function(){return m(u),_(r.prevSlide())}),d(7,"fa-icon",7),p()(),l(8,"div",8)(9,"div",6),f("click",function(){return m(u),_(r.nextSlide())}),d(10,"fa-icon",7),p()()()}n&2&&(c(3),V(r.products),c(3),y("d-none",r.currentSlide===0),c(),a("icon",r.faChevronLeft),c(2),y("d-none",r.currentSlide===r.maxSlide),c(),a("icon",r.faChevronRight))},dependencies:[B,Z,Q,I,z,E],styles:[".wrapper[_ngcontent-%COMP%]{position:relative}.arrow[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;height:100%;top:0;cursor:pointer;pointer-events:none}.arrow-left[_ngcontent-%COMP%]{left:0;padding-left:.5rem}@media (min-width: 576px){.arrow-left[_ngcontent-%COMP%]{left:-20px}}.arrow-right[_ngcontent-%COMP%]{right:0;padding-right:.5rem}@media (min-width: 576px){.arrow-right[_ngcontent-%COMP%]{right:-20px}}.arrow-icon[_ngcontent-%COMP%]{pointer-events:auto;-webkit-user-select:none;user-select:none;background-color:#fff;color:#000;aspect-ratio:1;display:flex;justify-content:center;align-items:center;height:2.5rem;font-size:1.375rem;border-radius:2.5rem;margin-right:.25rem;box-shadow:#00000040 0 3px 4px;transition:transform .3s ease-out}.arrow-icon[_ngcontent-%COMP%]:hover{transform:scale(1.15)}.product-list[_ngcontent-%COMP%]{display:flex;margin:auto}.product-list[_ngcontent-%COMP%] .product[_ngcontent-%COMP%]{text-decoration:none;cursor:pointer;
1width:200px}.product-list[_ngcontent-%COMP%] .product-image-wrapper[_ngcontent-%COMP%]{aspect-ratio:16/11;position:relative;border-radius:15px;background-color:var(--bs-gray-300)}.product-list[_ngcontent-%COMP%] .product-image[_ngcontent-%COMP%]{object-fit:cover;position:absolute;border-radius:15px}.product-list[_ngcontent-%COMP%] .product-title[_ngcontent-%COMP%]{display:block;margin-top:.5rem;font-weight:600;text-decoration:none;color:var(--bs-dark);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.product-list[_ngcontent-%COMP%] .product-status[_ngcontent-%COMP%]{font-size:.875rem}@media (max-width: 576px){.product-list[_ngcontent-%COMP%] .product[_ngcontent-%COMP%]{width:110px}.product-list[_ngcontent-%COMP%] .product-title[_ngcontent-%COMP%], .product-list[_ngcontent-%COMP%] .product-status[_ngcontent-%COMP%]{font-size:xx-small}}"]});let e=o;return e})();export{he as a};
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.