1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95573],{3276:(e,t,r)=>{"use strict";function i(e){var t,r;if(!(null==e?void 0:e.content))return{content:null,offer:null};let i=e.content[0],l=e.content[1];return{content:(null==i||null==(t=i.content)?void 0:t[0])&&"value"in i.content[0]?i.content[0].value:null,offer:(null==l||null==(r=l.content)?void 0:r[0])&&"value"in l.content[0]?l.content[0].value:null}}r.d(t,{m:()=>i})},5981:()=>{},7944:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var i=r(73365);r(44581),r(56326);var l=r(37023),c=r(92373),s=r(81411),n=r(18197),a=r.n(n),o=r(40417),d=r(58592),u=r(1521),p=r(62287),m=r(19091),h=r(76608),f=r(52088),v=r(8425),_=r(38153),g=r(54614),x=r(98522),N=r(35599),C=r(17165),j=r(34801),P=r.n(j);function w(e){let t,{special:r,className:l}=e;return r.specialImage||r.specialContent?(0,i.jsx)("li",{className:P()("c-productListGrid__special",l),children:r.specialContent?(0,i.jsxs)("div",{className:"c-productListGrid__specialContent",children:[(0,i.jsx)("p",{className:"c-productListGrid__specialTitle",children:r.specialContent.title}),(0,i.jsx)(C.default,{style:"link",icon:"icon-arrow-right",iconPosition:"right",isLink:!0,href:"#",children:r.specialContent.action})]}):r.specialImage?(0,i.jsx)(a(),{href:r.specialImage.url,className:"c-productListGrid__specialContent",children:(0,i.jsx)(N.A,{src:Array.isArray(t=r.specialImage.image)?t[0]:t,alt:r.specialImage.imageAlt,width:r.specialImage.width,height:r.specialImage.height,priority:!0})}):null}):null}function y(e){let{index:t,specialData:r}=e;return(0,i.jsx)(w,{special:r})}var k=r(10341),L=r(30786),b=r(94633),A=r(80331);let T=e=>{let{src:t,alt:r}=e;return(0,i.jsx)(N.A,{src:t,alt:r,width:764,height:484,fill:!0,style:{objectFit:"cover"},placeholder:"blur",blurDataURL:"/img/desktop/product/placeholder.jpg"})},S=e=>{var t,r;let{product:l,alt:c}=e,s=(0,u.useMemo)(()=>(0,k.JX)(l),[l]),{validImages:n}=(0,L.N)(s,1);return(0,i.jsx)(T,{src:null!=(r=null!=(t=n[0])?t:l.img)?r:"",alt:c})};function E(e){var t,r,n,N,C,j,P,w;let{data:L,id:E,position:F=0,enableTracking:I=!1,isFirstItem:O,showOnlyFirstImage:D,resolveBestImage:R,hidePromotionTag:z,onClick:M}=e,{operations:H}=(0,p.Wt)(),[B,G]=(0,u.useState)(L),[W,q]=(0,u.useState)(null),U=(0,p.i$)(e=>e.pushProductClickEvent);(0,u.useEffect)(()=>{G(L)},[L]);let V="S057 - EXTERIEUR"===L.productSubFamily,K=L.piecePrice&&V;(0,u.useEffect)(()=>{let e=(0,h.lD)(B.sku);q((0,m.Hj)({qc:e,qct:B.sku,hasFluxPromo:!!B.promo,subFamily:B.productSubFamily,activeOperations:H}))},[B,H]);let Q=()=>{if(L.prediggoTrackingCode&&(0,_.p3)(L.prediggoTrackingCode),I)try{U([(0,x.SW)(L)],F+1)}catch(e){g.v.warn("Failed to send GTM product click event",{error:e,sku:L.sku,position:F})}null==M||M()};if(L.type!==f.SP.product){let e={index:F,specialData:{specialImage:{index:F,image:B.img?[B.img]:[],imageAlt:B.text||"",url:B.url||"#",width:null==(P=B.dims)?void 0:P.width,height:null==(w=B.dims)?void 0:w.height},specialContent:void 0}};return(0,i.jsx)(y,{...e},"special-".concat(F))}let X=(0,d.Ch)(null==B?void 0:B.promoTag)&&!!W,$=null!=(r=null==(t=B.prixPose)?void 0:t.currentPrice)?r:0,{priceUnit:J,priceSub:Y}=(0,A.Q$)($),Z="Prix Pos\xe9 : ".concat(J,",").concat(Y,"* â¬/").concat(K?"pi\xe8ce":"m\xb2");return(0,i.jsxs)("li",{className:"c-productListCard__item",id:E,children:[(0,i.jsx)(a(),{href:null!=(n=B.url)?n:"#",className:"c-productListCard__itemLink",onClick:Q,children:(0,i.jsxs)("div",{className:"c-productListCard__itemOverlay",children:[B.img&&(D?R?(0,i.jsx)(S,{product:B,alt:null!=(N=B.text)?N:""}):(0,i.jsx)(T,{src:B.img,alt:null!=(C=B.text)?C:""}):L.colors&&(0,i.jsx)(b.A,{images:(0,k.JX)(B),isFirstItem:O})),B.prixPose?(0,i.jsx)(o.A,{className:"c-productListCard__tag--floating",isNew:L.isNew||!1,isBanner:!1,title:Z,promoTag:["prixpose"],stickers:B.stickers,currentOffer:W}):(0,i.jsx)(o.A,{className:"c-productListCard__tag--floating",showTooltip:!!W,isNew:B.isNew,stickers:B.stickers,promoTag:z||X?null:null==B?void 0:B.promoTag,currentOffer:W,isBanner:String(null==B?void 0:B.type)===(null===f.SP||void 0===f.SP?void 0:f.SP.banner)})]})}),(0,i.jsxs)("div",{className:"c-productListCard__itemContent",children:[(0,i.jsxs)(a(),{href:B.url||"#",className:"c-productListCard__itemLink",onClick:Q,children:[(0,i.jsx)("p",{className:"c-productListCard__itemTitle",children:B.text}),(0,i.jsx)("p",{className:"c-productListCard__itemDescription"})]}),(0,i.jsxs)("div",{className:"c-productListCard__footer",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(c.A,{url:null!=(j=null==B?void 0:B.url)?j:"#",colors:L.colors,onColorChange:e=>{G({...L,...e,sku:e.id||L.sku})}}),B.stickers&&(0,d.gZ)(null==B?void 0:B.stickers).madeInFrance&&(0,i.jsxs)("div",{className:"c-productListCard__tagFrance",children:[(0,i.jsx)(s.A,{illustration:!0,name:"french-flag",size:"20"}),(0,i.jsx)("p",{children:"Fabriqu\xe9 en France"})]})]}),B.price&&(0,i.jsxs)("div",{className:"c-productListCard__priceBlock",children:[(0,i.jsx)(l.A,{unit:K?"le m\xb2":B.unit,hasDiscount:Number(B.promo)!==Number(B.price),data:(0,v.$)(B,K)}),X&&!z&&(0,i.jsx)(o.A,{isNew:!1,isBanner:!1,isPriceBlock:!0,promoTag:null==B?void 0:B.promoTag,stickers:[],currentOffer:null})]})]})]})]})}},8108:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});let i=r(27456).sV.PROD,l={width:"frz-w",height:"frz-h"},c=new Set(["width","height"]),s=e=>{let{src:t,...r}=e,s=new URL(t,i);if(s.origin!==i)return console.warn("Trying to process an external URL with Fasterize CDN: %s",t),s.href;for(let[e,t]of Object.entries(r)){if(null==t)continue;let r=l[e];r&&(s.searchParams.set(r,String(t)),c.has(e)&&s.searchParams.set("frz-resizeimgs","true"))}return s.href}},8425:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,J:()=>s});var i=r(92799),l=r(29774);function c(e,t){var r,l;
1return{amount:e.price,fromPrice:e.fromPrice,isPiecePrice:t||void 0,piecePrice:e.piecePrice,lowestPrice:e.fromPrice?e.lowestPrice:"",currency:"â¬",type:"",isPromo:Number(e.promo)!==Number(e.price),promotion:{type:"",value:t?e.promoPiecePrice:e.promo,discountedPiecePrice:e.promoPiecePrice!==e.piecePrice?(0,i.do)(String(e.piecePrice),null!=(r=null==e?void 0:e.promoPiecePrice)?r:""):null,discountedPrice:e.promo!==e.price?(0,i.do)(e.price,null!=(l=null==e?void 0:e.promo)?l:""):null}}}function s(e,t,r){var c,s,n,a,o;let d=null!=(a=null==r?void 0:r.currentPrice)?a:e.currentPrice,u=null!=(o=null==r?void 0:r.type)?o:e.type,p=d.defaultPrice.toString(),m=null==(c=d.promoPiecePrice)?void 0:c.toString(),h=t?m:null==(s=d.promoPrice)?void 0:s.toString(),f=null==(n=d.piecePrice)?void 0:n.toString(),v=r?r.isPromo:e.isPromo||!1,_=(u===l.sM.UNIT||u===l.po.PIECE)&&f&&m?(0,i.do)(f,m):null,g=d.promoTag&&p&&h?(0,i.do)(p,h):null;return{amount:p,fromPrice:!1,isPiecePrice:t||void 0,piecePrice:f,lowestPrice:p,currency:"â¬",type:u,isPromo:v,promotion:{type:"",value:h,discountedPiecePrice:_,discountedPrice:g}}}},10341:(e,t,r)=>{"use strict";r.d(t,{JX:()=>i}),r(27646);let i=e=>{let t=e.img;if(!t)return[];let r=t.match(/^(.+?)_(A\d|P\d)(\.\w+)$/);if(!r)return[t];let[,i,,l]=r;return["A1","P1","A2","P2","A3","P3"].map(e=>"".concat(i,"_").concat(e).concat(l))}},19091:(e,t,r)=>{"use strict";r.d(t,{Hj:()=>s});var i=r(35592);r(92944),r(57582);var l=r(10986);function c(e,t){if(!t)throw Error("[CTF] : Missing env variable for Contentful: ".concat(e));return t}function s(e){let{qc:t,qct:r,hasFluxPromo:l,subFamily:c,activeOperations:s}=e;if(!s||0===s.length)return null;let n=s.flatMap(e=>{var t,r;return null!=(r=null==(t=e.offersConditions)?void 0:t.conditions)?r:[]}).filter(e=>"object"==typeof e&&null!==e&&"all"in e&&(e.all||e.componentType===i.I5.OffersConditions&&!!e.subFamily&&e.subFamily.includes(c)||!!e.skuList&&(e.skuList.includes(t)||e.skuList.includes(r))));if(!n.length)return null;let a=n.find(e=>!e.isPromoShopify);if(l&&a)return a;let o=n.find(e=>e.isPromoShopify);return o||null}c("CTF_SPACE_ID","xsconitadydd"),c("CTF_CDA_TOKEN","MoD-9z1FVYsggPbXgrV2tAlrDHSxrGNOMqeGmlVIua4"),c("CTF_ENVIRONMENT","master"),l.env.CTF_MANAGEMENT_TOKEN,r(51581),r(54614),r(76608)},21171:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,a:()=>c});var i=r(1521);function l(){let[e,t]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let e=()=>t(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}let c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1024,t=l();return"number"==typeof t&&t<=e}},21609:()=>{},22647:()=>{},27741:()=>{},30786:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var i=r(1521),l=r(8108);let c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,[r,c]=(0,i.useState)([]),[s,n]=(0,i.useState)(new Set),a=(0,i.useRef)([]),o=(0,i.useRef)(new Map);(0,i.useEffect)(()=>{if(!e||0===e.length){c([]),n(new Set);return}(e.length!==a.current.length||e.some((e,t)=>e!==a.current[t]))&&(c([]),n(new Set),(async()=>{let r=[],i=0;for(let c=0;c<e.length&&i<t;c++){let t=e[c],s=(0,l.Q)({src:t,width:764,height:484});try{await new Promise((e,r)=>{let i=new Image;i.src=s,i.onload=()=>{o.current.set(t,i),e()},i.onerror=()=>{r()}}),r.push(t),i++}catch(e){continue}}c(r),r.length>0&&n(new Set([0])),a.current=e})())},[e,t]);let d=(0,i.useCallback)(e=>{if(e<0||e>=r.length||s.has(e))return;let t=r[e];if(o.current.has(t))return void n(t=>new Set([...t,e]));let i=new Image;i.src=(0,l.Q)({src:t,width:764,height:484}),i.onload=()=>{o.current.set(t,i),n(t=>new Set([...t,e]))},i.onerror=()=>{}},[r,s]),u=(0,i.useCallback)(e=>{if(!r||0===r.length)return;let t=e.activeIndex;for(let e=t;e<=t+1&&e<r.length;e++)d(e)},[r,d]);return(0,i.useEffect)(()=>{if(0!==r.length)for(let e=0;e<Math.min(2,r.length);e++)d(e)},[r,d]),{validImages:r,loadedIndices:s,onSlideChange:u}}},31207:()=>{},35103:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(73365),l=r(1521),c=r(34801),s=r.n(c),n=r(6306),a=r.n(n),o=r(17165);r(5981);{let e=document.querySelector("#app-root")||document.body;a().setAppElement(e)}let d=(0,l.forwardRef)((e,t)=>{let{children:r,title:c="Titre modal",variant:n="",size:d="",noHeader:u=!1,modalBack:p=!1,modalClose:m=!0,headerIcon:h="",headerIconSize:f="",headerIconColor:v="",className:_="",startOpen:g=!1,isHeaderSticky:x=!1,isFooterSticky:N=!1,isAnimated:C=!0,isSecondLevel:j=!1,footerContent:P,renderFooterContent:w,shouldCloseOnEsc:y=!0,shouldCloseOnOverlayClick:k=!0,render:L,notifyOnClose
1:b,notifyOnOpen:A,hasSeoContent:T=!1,...S}=e,[E,F]=(0,l.useState)(g);(0,l.useImperativeHandle)(t,()=>({open(){F(!0)},close(){F(!1)}})),(0,l.useEffect)(()=>{!E&&b&&b(),E&&A&&A()},[E]);let I=s()(["c-icon--left",h&&"c-icon-".concat(h),f&&"c-icon--".concat(f),v&&"u-color-".concat(v)]),O=s()(["c-modal",n&&"c-modal--".concat(n),d&&"c-modal--".concat(d),u&&"c-modal--noHeader",p&&"c-modal--modalBack"],_),D=s()("c-modal__footer",{"c-modal__footer-sticky":N}),R=s()("c-modal__header",{"c-modal__header-sticky":x});function z(){F(!1)}return(0,i.jsxs)(i.Fragment,{children:[T&&!E&&r&&(0,i.jsx)("div",{className:"c-modal__seo","aria-hidden":"true",children:r}),(0,i.jsx)(a(),{isOpen:E,onRequestClose:z,overlayClassName:s()(C&&"isAnimated",j&&"c-modal__overlay--secondLevel","c-modal__overlay"),overlayRef:e=>null==e?void 0:e.setAttribute("data-lenis-prevent",""),className:O,shouldCloseOnEsc:y,shouldCloseOnOverlayClick:k,closeTimeoutMS:300,...S,children:(0,i.jsxs)("div",{className:"c-modal__wrapper","data-lenis-prevent":!0,children:[(0,i.jsxs)("div",{className:R,children:[p&&(0,i.jsx)(o.default,{className:"c-modal__back",size:"xl",variant:"secondary",style:"ghost",icon:"icon-chevron-left",onClick:z,children:"Retour"}),h&&!u&&(0,i.jsx)("span",{"aria-hidden":"true",className:I}),c&&(0,i.jsx)("h1",{className:"c-modal__title",children:c}),m&&(0,i.jsxs)(o.default,{className:"c-modal__close",size:"tooltip"!=n?"md":"sm",variant:"secondary",style:"opacity",icon:"icon-cross",onClick:z,children:["Fermer la modal : ",c]})]}),(0,i.jsx)("div",{className:"c-modal__content",children:L?L({handleClose:z}):r}),(P||w)&&(0,i.jsx)("div",{className:D,children:w?w({handleClose:z}):P})]})})]})});d.displayName="ModalComponent";let u=d},35599:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(73365),l=r(42869),c=r(8108),s=r(1521);function n(e){let{src:t,width:r,height:n,...a}=e,o=(0,s.useCallback)(e=>(0,c.Q)({...e,height:n,width:Math.min(1920,r)}),[r,n,t]);return(0,i.jsx)(l.default,{loader:o,src:t,width:a.fill?void 0:r,height:a.fill?void 0:n,...a})}},37023:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var i=r(73365),l=r(34801),c=r.n(l);r(31207);var s=r(80331),n=r(40417),a=r(1521),o=r(76608),d=r(19091),u=r(62287);function p(e){var t;let{product:r,data:l,variant:p,hasDiscount:m,unit:h,discountValue:f}=e,{operations:v}=(0,u.Wt)(),[_,g]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(!(null==r?void 0:r.sku))return void g(null);let e=(0,o.lD)(r.sku);g((0,d.Hj)({qc:e,qct:r.sku,hasFluxPromo:r.isPromo,subFamily:r.subFamily,activeOperations:v}))},[r]);let x=c()("c-cardPrice",{"c-cardPrice--hasDiscount":l.isPromo,"c-cardPrice--reverse":"reverse"===p,"c-cardPrice--productDetail":"fp"===p});return(0,i.jsxs)("div",{className:x,children:["fp"===p&&(0,i.jsx)(n.A,{className:"c-cardPrice__tag",isNew:!1,isBanner:!1,promoTag:f?Array.of("".concat(f.toString(),"%")):[],stickers:[],currentOffer:null,showTooltip:!1,isPriceBlock:!0}),(0,i.jsxs)("div",{className:"c-cardPrice__original",children:[(0,s.rc)(l.isPiecePrice?l.piecePrice:l.fromPrice&&l.lowestPrice?l.lowestPrice:l.amount),!m&&h&&(0,i.jsx)("span",{className:"c-priceCard__suffix",children:h})]}),m&&(0,i.jsxs)("div",{className:"c-cardPrice__discounted",children:[(0,s.rc)((null==l||null==(t=l.promotion)?void 0:t.value)||""),h&&(0,i.jsx)("span",{className:"c-priceCard__suffix",children:h})]})]})}},40417:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(73365),l=r(34801),c=r.n(l),s=r(96163),n=r(81411);r(27741);var a=r(58592),o=r(3276),d=r(90964);function u(e){let{children:t,type:r,className:l,title:u,isBanner:p,isNew:m,promoTag:h,stickers:f,currentOffer:v,icon:_,iconSize:g,noCapitalized:x,size:N,showTooltip:C=!1,fpVariant:j,isPriceBlock:P,isCTFExclusive:w,linkLabel:y,openOnClick:k,hasSeparator:L}=e,b=e=>(null==e?void 0:e.content)?(0,i.jsx)(d.A,{content:e}):null,{content:A,offer:T}=(0,o.m)(null==v?void 0:v.content),S=C&&A&&y?A:"CONTENT"===j?b(null==v?void 0:v.content):(0,a.UI)(h,m,f,v),E=null!=t?t:S,F=b(null==v?void 0:v.content),I="CONTENT"===j?"offre":p?"":"prixpose"===E?"prixPose":(0,a.Ch)(h)?"percentage":v?"currentOffer":m||"Exclusivit\xe9"===E||w?"offre":"Soldes",O=null!=r?r:I,D="CONTENT"!==j?null==v?void 0:v.color:void 0,R=c()(l,"c-productListCard__tag",{"c-productListCard__tag--promotion":"percentage"===O,"c-productListCard__tag--currentOffer":"currentOffer"===O,"c-productListCard__tag--offer":"offre"===O,"c-productListCard__tag--prixPose":"prixPose"===O,"c-productListCard__tag--noCapitalized":x,["c-productListCard__tag--".concat(N)]:N});if(!E)return null;let z=C?T:null;return(0,i.jsx)("div",{className:c()(R),style:D?{backgroundColor:D}:void 0,children:(0,i.jsxs)("div",{className:c()("c-productListCard__tagContent"),children:[L&&(0,i.jsx)("span",{className:"c-productListCard__tagSeparator"}),y&&z&&C?(0,i.jsx)("div",{className:"c-productListCard__tagTextWrapper",children:(0,i.jsxs)("p",{className:"c-productListCard__tagText",children:[E,(0,i.jsx)(s.A,{content:z,title:u,place:"bottom",variant:"light",openOnClick:k,children:(0,i.jsx)("span",{className:"c-productListCard__tagLink",children:"En\xa0savoir\xa0plus"})})]})}):C&&F?(0,i.jsx)(s.A,{content:F||E,title:u,place:"bottom",variant:"light",children:(0,i.jsxs)("div",{className:"c-productListCard__tagWrapper",children:[(0,i.jsx)("span",{className:"c-productListCard__tagText",children:E}),_&&(0,i.jsx)(n.A,{name:_,size:g||"16",className:"c-productListCard__tagIcon"})]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"c-productListCard__tagText",children:["percentage"===O&&P&&"-","prixpose"===E?u:E]}),_&&(0,i.jsx)(n.A,{name:_,size:g||"16",className:"c-productListCard__tagIcon"})]})]})})}},42431:(e,t,r)=>{"use strict";r.d(t,{F:()=>c,t:()=>l});let i=/^(https?:\/\/|\/(?!\/))/;function l(e){return!(e.startsWith("/")||e.startsWith("https://www.saint-maclou.com"))}function c(e){return i.test(e)}},43966:()=>{},44581:()=>{},56326:()=>{},90964:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var i=r(73365),l=r(1521),c=r(18197),s=r.n(c),n=r(42660),a=r(41723),o=r(92799),d=r(42431);let u={renderText:o.lN,renderNode:{[a.INLINES.HYPERLINK]:(e,t)=>{let r=e.data.uri;return(0,d.t)(r)?(0,i.jsx)("a",{className:"c-link",href:r,target:r.match(/^mailto:|^tel:/)?"_self":"_blank",rel:"noopener noreferrer",children:t}):(0,i.jsx)(s(),{className:"c-link",href:r,children:t})}}};
1function p(e){let{content:t,options:r={},renderers:c}=e,s={preserveWhitespace:r.preserveWhitespace||!1,renderMark:r.renderMark,renderText:r.renderText||u.renderText,renderNode:{...u.renderNode,...r.renderNode}};return c&&(s.renderNode={...s.renderNode||{}},s.renderNode[a.BLOCKS.PARAGRAPH||a.BLOCKS.HEADING_5]=(e,t)=>{let r=l.Children.toArray(t);return(0,i.jsx)("p",{children:r.map((e,t)=>{if("string"!=typeof e)return e;for(let[r,s]of Object.entries(c))if(e.includes(r))return(0,i.jsx)(l.Fragment,{children:s()},"".concat(r,":").concat(t));return(0,i.jsx)(l.Fragment,{children:e},t)})})}),(0,n.i)(t,s)}},92373:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(73365),l=r(1521),c=r(35599),s=r(18197),n=r.n(s);r(22647);var a=r(34801),o=r.n(a);function d(e){var t,r;let{colors:s,url:a,onColorChange:d,variant:u,modalRef:p,selectedColorData:m,prixPose:h=!1}=e,f=(0,l.useId)(),v="filter-item-name-".concat(f),[_,g]=(0,l.useState)(m||null);if("productDetail"===u&&(null!=(t=null==s?void 0:s.length)?t:0)<=1)return null;let x="productDetail"===u?5:4,N=(null!=(r=null==s?void 0:s.length)?r:0)-x,C=o()("c-cardColors",{"c-cardColors--productDetailList":"productDetail"===u,"c-cardColors--prixPose":h}),j=()=>{if("productDetail"===u&&p){var e;null==(e=p.current)||e.open()}},P=()=>{let e=h?1:2;if(!s||s.length<e)return null;let t=s&&s.length>x;return(0,i.jsxs)("ul",{className:C,children:[s.slice(0,x).map((e,t)=>{let r="".concat(f,"-").concat(t);return(0,i.jsxs)("li",{className:o()("c-cardColors__option",{"c-cardColors__option--compactHidden":"productDetail"===u&&4===t,"c-cardColors__option--smallHidden":"productDetail"===u&&4===t}),children:[(0,i.jsx)("input",{type:"radio",className:"c-cardColors__input",name:v,id:r,value:e.imgHover||e.img,defaultChecked:e.active,onChange:()=>{d&&(d(e),g(e))}}),(0,i.jsx)("label",{className:"c-cardColors__label",htmlFor:r,children:(0,i.jsx)(c.A,{src:e.imgHover||e.img||e.imageUrl,alt:e.text||"color option",width:32,height:32,className:"c-cardColors__item"})})]},r)}),t&&("productDetail"===u?(0,i.jsx)("button",{type:"button",className:"c-cardColors__item c-cardColors__item--more",onClick:j,"aria-label":"Voir les autres couleurs","data-count":"+".concat(N),"data-compact-count":"+".concat(N+1),"data-small-count":"+".concat(N+1)}):(0,i.jsx)(n(),{href:null!=a?a:"#",className:"c-productListCard__itemLink",children:(0,i.jsxs)("span",{className:"c-cardColors__item c-cardColors__item--more",children:["+",s.length-x]})}))]})};return"productDetail"===u?(0,i.jsxs)("div",{className:"c-cardColors--productDetail",children:[P(),(0,i.jsxs)("p",{className:"c-cardColors__aspect",children:[(0,i.jsx)("span",{children:"Aspect\xa0: "}),null==_?void 0:_.colorName]})]}):P()}},94633:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(73365),l=r(72457),c=r(28460),s=r(17165),n=r(1521);r(28676),r(64648),r(66596);var a=r(35599),o=r(30786);function d(e){let{images:t,isFirstItem:r}=e,d=(0,n.useRef)(null),[u,p]=(0,n.useState)(0),{validImages:m,loadedIndices:h,onSlideChange:f}=(0,o.N)(t,3),v=m.length>0?m:t.slice(0,1);return((0,n.useEffect)(()=>{p(0)},[m]),(0,n.useEffect)(()=>{u===m.length&&d.current&&m.length>0&&d.current.swiper.update()},[u,m.length]),(0,n.useEffect)(()=>{if(r&&1===u&&d.current){let e=d.current.swiper.wrapperEl;if(e){e.classList.add("swipe-hint");let t=setTimeout(()=>{e.classList.remove("swipe-hint")},2200);return()=>clearTimeout(t)}}},[r,u]),0===v.length)?null:(0,i.jsx)("div",{className:"tile-slider",children:(0,i.jsxs)(l.RC,{modules:[c.Vx,c.Ze],loop:!1,slidesPerView:1,speed:700,scrollbar:{hide:!1},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},onSlideChange:f,className:"swiper-container",ref:d,children:[v.map((e,t)=>(0,i.jsx)(l.qr,{children:(0===m.length||h.has(t))&&(0,i.jsx)(a.A,{src:e,alt:"Image ".concat(t+1),width:764,height:484,onLoad:()=>p(e=>e+1),className:"slider-image",placeholder:"blur",blurDataURL:e})},t)),(0,i.jsx)("div",{className:"swiper-button-prev",children:(0,i.jsx)(s.default,{variant:"secondary",style:"solid",size:"sm",icon:"icon-chevron-left","aria-label":"swiper-button-prev"})}),(0,i.jsx)("div",{className:"swiper-button-next",children:(0,i.jsx)(s.default,{variant:"secondary",style:"solid",size:"sm",icon:"icon-chevron-right","aria-label":"swiper-button-next"})})]})})}r(95595)},95595:()=>{},96163:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(73365),l=r(1521),c=r(84974);r(1719);var s=r(34801),n=r.n(s),a=r(35103),o=r(21171),d=r(17165);
1function u(e){let{className:t,title:r,content:s,children:u,place:p="top",variant:m,richContent:h,openOnClick:f}=e,v=(0,l.useId)(),_=(0,o.A)(),g=null!==_&&_<=768,[x,N]=(0,l.useState)(!0),[C,j]=(0,l.useState)(!1),P=(0,l.useRef)(null),w=()=>{N(!1),setTimeout(()=>N(!0),100),j(!1)},y=()=>{if("function"==typeof s)return s({close:w});if("string"==typeof s){let e=s.replace(/\\n/g,"\n");return(0,i.jsx)("span",{className:"c-tooltip__contentItem",children:e})}return s},k=n()("c-tooltip",m&&"c-tooltip--".concat(m),h&&"c-tooltip--richContent",t&&t);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"data-tooltip-id":g?void 0:v,"data-tooltip-place":p,className:"c-tooltip__item",onClick:()=>{g&&(j(!0),setTimeout(()=>{var e;return null==(e=P.current)?void 0:e.open()},0))},children:u}),!g&&x&&s&&(0,i.jsxs)(c.m_,{id:v,clickable:!0,className:k,disableStyleInjection:!0,openOnClick:f,children:[r&&(0,i.jsxs)("div",{className:"c-tooltip__header",children:[(0,i.jsx)("strong",{className:"c-tooltip__title",children:r}),h&&(0,i.jsx)(d.default,{variant:"secondary",style:"ghost",size:"sm",icon:"icon-cross",onClick:w,"aria-label":"Fermer le tooltip",className:"c-tooltip__close",children:"Fermer le tooltip"})]}),s&&y()]}),g&&(0,i.jsx)(a.A,{title:r,size:"xs",ref:P,variant:"tooltip",className:"c-modal--tooltip",children:(0,i.jsx)("div",{className:"c-tooltip__content",children:y()})})]})}r(21609)}}]);
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.