1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[867],{1488:(e,t,l)=>{"use strict";l.d(t,{K0:()=>r.IconButton});var r=l(83985)},2968:e=>{e.exports={"product-details-section":"style_product-details-section__jW4sE","product-details-section__info":"style_product-details-section__info__6vDrX","product-details-section__info--description":"style_product-details-section__info--description__xVeix","product-details-section__info--description-text":"style_product-details-section__info--description-text__tuP7y","product-details-section__info--features":"style_product-details-section__info--features__QeNIS","product-details-section__info--applications":"style_product-details-section__info--applications__g5E3l","product-details-section__resources":"style_product-details-section__resources__1LC88","product-details-section__resources-tiles":"style_product-details-section__resources-tiles__Xk3YU","product-details-section__resources--pdf":"style_product-details-section__resources--pdf__mQDaT","product-details-section__resources--empty-body":"style_product-details-section__resources--empty-body__LKqiE","product-details-section__resources--empty-message":"style_product-details-section__resources--empty-message__TSKgU","product-details-section__resources--empty-tip":"style_product-details-section__resources--empty-tip__VIsXx","product-details-section__resources--link":"style_product-details-section__resources--link__hDwll"}},7649:(e,t,l)=>{"use strict";l.d(t,{i:()=>r});let r=e=>{var t,l,r;let a=null==e||null==(t=e.metafields)?void 0:t.edges;if(!(null==a?void 0:a.length))return!0;let n=a.find(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.key)==="showAisleNumber"});return"false"!==(null==n||null==(r=n.node)||null==(l=r.value)?void 0:l.trim().toLowerCase())}},9601:(e,t,l)=>{"use strict";l.d(t,{u:()=>d});var r=l(54568),a=l(10790),n=l(63897),i=l(66056),s=l(79222),o=l.n(s);let d=()=>{let e=(0,i.c3)();return(0,r.jsx)(n.Fc,{type:"info",variant:"inline",CustomIcon:a.WarrantySolid,message:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"body-s-bold",children:e.rich("royalServicePromise.title",{royal:e=>(0,r.jsx)("span",{className:o()["royal-service-bold"],children:e})})}),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"body-s-regular",children:e("royalServicePromise.description")})]}),disableFocus:!0})}},11716:(e,t,l)=>{"use strict";l.d(t,{O:()=>d});var r=l(14878),a=l(97101),n=l(41159),i=l(47799),s=l(98722),o=l(61214);let d=(e,t,l)=>{let d=(0,n.jL)(),u=(0,a.rd)(),c=(0,n.GV)(s.UW),{handleTrackItem:p}=(0,o.A)(e,t);return{handleItemTracking:p,handleItemVariantSelection:()=>{d((0,i.rC)({id:Number.isNaN(Number(e))?null:Number(e),trackingContext:null==l?void 0:l.trackingContext})),d((0,i.th)())},handleLocalStoreNotification:()=>{if(c)return void u.push(r.b.STORE_DETAILS.set(c.toString()));d((0,s.JK)())}}}},12144:(e,t,l)=>{"use strict";l.d(t,{K:()=>a,f:()=>r}),l(40459);let r={GIFTCARD_SKU:{get:()=>"9999991"},GIFTCARD_PRODUCT_ID:{get:()=>"giftcard"}},a="https://media-endpoint-prod-dvdgaaehgmc5dsa3.a01.azurefd.net/media-assets-prod/documents"},12866:e=>{e.exports={"product-panel__track-button":"styles_product-panel__track-button__GfYna","product-panel__error":"styles_product-panel__error__fx_w_","product-panel__counter":"styles_product-panel__counter__EiOb7","product-panel__floating-error":"styles_product-panel__floating-error__sGKzE"}},13201:e=>{e.exports={"product-actions":"styles_product-actions__pPrPA","product-actions__shopping":"styles_product-actions__shopping__hSBO1","product-actions__actions":"styles_product-actions__actions__Q1PbX","product-actions__add-to-cart":"styles_product-actions__add-to-cart__tV5vJ","product-actions__action-btn":"styles_product-actions__action-btn__TSEbu"}},16306:(e,t,l)=>{"use strict";l.d(t,{j:()=>r});let r={ATC:"add_to_cart",ADD_TO_WISHLIST:"add_to_wishlist",CONTACT_LOCAL_STORE:"contact_local_store",ADD_TO_COMPARE:"add_to_compare",TRACK_THE_ITEM:"track_the_item",SELECT_OPTION:"select_option",VIEW_DETAILS:"view_details",PLACE_ORDER:"place_order"}},16551:(e,t,l)=>{"use strict";l.d(t,{Bj:()=>i,OD:()=>u,ProductContextProvider:()=>d,hM:()=>c});var r=l(54568),a=l(7620);let n=(0,a.createContext)(null),i=()=>{let e=(0,a.useContext)(n);if(!e)throw Error("useProduct must be used within a ProductProvider");return e},s=(0,a.createContext)(null),o=(0,a.createContext)(null),d=e=>{let{children:t}=e,[l,n]=(0,a.useState)(null),i=(0,a.useCallback)(e=>n(e),[]);return(0,r.jsx)(s.Provider,{value:i,children:(0,r.jsx)(o.Provider,{value:l,children:t})})},u=()=>(0,a.useContext)(o),c=e=>{let{value:t,children:l}=e,i=(0,a.useContext)(s),o=(0,a.useMemo)(()=>t,[t.productNode,t.variantSku,t.productLocale,t.unavailable,t.enrichedRelatedProducts,t.loading,t.setLoading]);return(0,a.useEffect)(()=>(null==i||i(o),()=>null==i?void 0:i(null)),[o,i]),(0,r.jsx)(n.Provider,{value:o,children:l})}},18130:e=>{e.exports={"postal-code__content":"styles_postal-code__content__nxsZs","postal-code__actions":"styles_postal-code__actions__59zQw","postal-code__action-link":"styles_postal-code__action-link__J_J8M"}},18278:(e,t,l)=>{"use strict";l.d(t,{v:()=>a,W:()=>n});var r=l(74737);let a={min:1,max:500},n=(e,t)=>{let l=e("giftCard.amountSelector.valueRangeInfo.label",{min:a.min,max:a.max}),n=e("giftCard.recipientForm.validation.message.required.field");return r.Ik({amount:t?r.KC([r.ai({message:l}),r.Vx()]).refine(e=>void 0!==e,{message:l}).refine(e=>e>=a.min&&e<=a.max,{message:l}):r.ai().optional(),senderName:r.Yj().min(1,n),recipientName:r.Yj().min(1,n),recipientEmail:r.Yj().min(1,n).email(e("giftCard.recipientForm.validation.message.invali
1dEmail")),message:r.Yj().optional(),scheduleForLater:r.zM().optional(),scheduledDate:r.p6().optional(),scheduledTime:r.Yj().optional()}).refine(e=>!e.scheduleForLater||!!e.scheduledDate,{message:n,path:["scheduledDate"]}).refine(e=>{if(!e.scheduleForLater||!e.scheduledDate)return!0;let t=new Date;return t.setHours(0,0,0,0),e.scheduledDate>=t},{message:e("giftCard.recipientForm.validation.message.pastDate"),path:["scheduledDate"]}).refine(e=>!e.scheduleForLater||!!e.scheduledTime,{message:n,path:["scheduledTime"]}).refine(e=>!e.scheduleForLater||!e.scheduledTime||!((e,t)=>{var l,r,a,n,i;let{selectedDate:s=new Date,now:o=new Date,maxAdvanceMinutes:d=30}=t;if(!e)return!0;let[u,c]=e.split(":"),p=Number(u),m=Number(c);if(Number.isNaN(p)||Number.isNaN(m)||p<0||p>23||m<0||m>59)return!0;let v=null!=(r=null==(l=window)?void 0:l.Date)?r:Date;return new v(null!=(a=null==s?void 0:s.getFullYear())?a:o.getFullYear(),null!=(n=null==s?void 0:s.getMonth())?n:o.getMonth(),null!=(i=null==s?void 0:s.getDate())?i:o.getDate(),p,m,0,0)<new v(o.getTime()+60*d*1e3)})(e.scheduledTime,{selectedDate:e.scheduledDate,maxAdvanceMinutes:60}
1),{message:e("giftCard.recipientForm.validation.message.invalidDate.label"),path:["scheduledTime"]})}},25150:(e,t)=>{var l;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var l=arguments[t];l&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var l in e)r.call(e,l)&&e[l]&&(t=n(t,l));return t}(l)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(l=(function(){return a}).apply(t,[]))||(e.exports=l)}()},26265:(e,t,l)=>{"use strict";l.d(t,{hb:()=>s});var r=l(54568),a=l(78641);let n=(e,t)=>e.toLocaleDateString("en-US",{timeZone:t,weekday:"long"}).toLowerCase(),i=(e,t)=>{var l,r;let a=((e,t)=>{let l=e.toLocaleDateString("en-US",{timeZone:t,year:"numeric"}),r=e.toLocaleDateString("en-US",{timeZone:t,month:"2-digit"}),a=e.toLocaleDateString("en-US",{timeZone:t,day:"2-digit"});return"".concat(l,"-").concat(r,"-").concat(a)})(t,e.timeZone||"UTC");return null!=(r=null==(l=e.specialHours)?void 0:l.some(e=>(e=>{if(!e)return"";let t=String(e);return t.length>=10?t.slice(0,10):""})(e.opening)===a&&(!e.open||e.opening===e.closing)))&&r},s=e=>{let t=(0,a.c)("product.availability.pickup");if(!e)return null;let l=new Date,s=e.timeZone||"UTC";if(!e.operatingHours)return null;if(!i(e,l)){let a=n(l,s),u=e.operatingHours[a];if(u){var o,d;let[a=21]=(null==u||null==(o=u.closing)?void 0:o.split(":").map(Number))||[],[c=10]=(null==u||null==(d=u.opening)?void 0:d.split(":").map(Number))||[],[p=10]=l.toLocaleTimeString("en-US",{timeZone:s,hour12:!1,hour:"2-digit",minute:"2-digit"}).split(":").map(Number),m=a-5;if(p>m&&p<24){let a=new Date(l.getTime()+864e5),o=n(a,s),d=e.operatingHours&&e.operatingHours[o];if((null==d?void 0:d.open)&&!i(e,a)){let e=new Date("1970-01-01T".concat(d.opening)).toLocaleTimeString("en-US",{hour:"numeric",hour12:!0});return t.rich("ready_at",{strong:e=>(0,r.jsx)("strong",{children:e}),time:e})}}else if(p<=c){let e=new Date("1970-01-01T".concat(u.opening)).toLocaleTimeString("en-US",{hour:"numeric",hour12:!0});return t.rich("today",{strong:e=>(0,r.jsx)("strong",{children:e}),time:e})}else if(p<=m&&p>c)return t.rich("ready_in_hours",{strong:e=>(0,r.jsx)("strong",{children:e}),hours:4})}}let u=((e,t)=>{let l=e.timeZone||"UTC";for(let r=1;r<=30;r++){let a=new Date(t.getTime()+864e5*r),s=n(a,l),o=e.operatingHours&&e.operatingHours[s];if(!(!(null==o?void 0:o.open)||i(e,a)))return{time:new Date("1970-01-01T".concat(o.opening)).toLocaleTimeString("en-US",{hour:"numeric",hour12:!0}),daysAway:r,dayName:s.charAt(0).toUpperCase()+s.slice(1)}}return null})(e,l);return u?1===u.daysAway?t.rich("ready_at",{strong:e=>(0,r.jsx)("strong",{children:e}),time:u.time}):t.rich("ready_at_day",{strong:e=>(0,r.jsx)("strong",{children:e}),time:u.time,day:u.dayName}):null}},27910:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ProductDetailsPageClient:()=>eX});var r=l(54568),a=l(72276),n=l(83985),i=l(32536),s=l(78641),o=l(7620),d=l(36531),u=l(88180),c=l(87275),p=l(41159),m=l(98722),v=l(85084),_=l(57192),g=l(16551),f=l(10790),h=l(25150),b=l.n(h),y=l(50854),x=l(63771),j=l(87812),N=l(46910),k=l.n(N);let C=e=>{let{reviews:t}=e,l=(0,g.Bj)(),a=(0,j.VG)(l),i=(0,j.uc)(l),o=(0,s.c)(),d=(0,j.TN)(l),u=(0,j.vn)(l),c=(0,x.g_)(u),p=o("pdp.tabs.sku.label",{defaultMessage:"SKU"});return(0,r.jsx)("div",{className:k()["product-info"],children:(0,r.jsxs)("div",{className:k()["product-info--details"],children:[(0,r.jsx)("h2",{children:a}),c&&(0,r.jsx)("div",{className:k()["product-info--hazardous-indicator"],children:(0,r.jsx)(n.HazardousIndicator,{label:o("product.labels.hazardousGoods"),size:"md"})}),(0,r.jsxs)("div",{className:k()["product-info--meta-data"],children:[t,!d&&i&&(0,r.jsxs)("p",{className:"body-s-regular",children:[p,": ",i]})]})]})})},S=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(!l||0===t.length||r&&(null==(e=t[0])?void 0:e.url)===r)return t;let a=t.findIndex(e=>{var t;return null==e||null==(t=e.url)?void 0:t.toLowerCase().includes(l.toLowerCase())});if(a<=0)return t;let n=t.slice(),[i]=n.splice(a,1);return[i,...n]},w={mobile:{width:328,height:230},tablet:{width:328,height:230},desktop:{width:456,height:360},desktopLg:{width:631,height:456}},P={mobile:328,desktop:456,desktopLg:630},I={mobile:56,desktop:72},T={mobile:12,desktop:12,desktopLg:16},A=(e,t,l)=>Math.floor((e-(t+l)+l)/(t+l)),L=(0,o.memo)(()=>{let e=(0,s.c)(),t=(0,g.Bj)(),l=(0,j.SP)(t),d=(0,j.yj)(t),u=(0,j.fn)(t),c=(0,j.N7)(t),p=(0,n.useMediaQuery)("(min-width: ".concat(a.FcH,")")),m=(0,n.useMediaQuery)("(min-width: ".concat(a.AXY,")")),v=(0,n.useMediaQuery)("(min-width: ".concat(a.aSD,")")),{width:_,height:f}=(0,o.useMemo)(()=>p?w.desktopLg:m?w.desktop:v?w.tablet:w.mobile,[p,m,v]),{thumbnailWidth:h,maxVisibleThumbnails:b}=(0,o.useMemo)(()=>p?{thumbnailWidth:I.desktop,maxVisibleThumbnails:A(P.desktopLg,I.desktop,T.desktopLg)}:m?{thumbnailWidth:I.desktop,maxVisibleThumbnails:A(P.desktop,I.desktop,T.desktop)}:{thumbnailWidth:I.mobile,maxVisibleThumbnails:A(P.mobile,I.mobile,T.mobile)},[p,m]),y=(0,o.useMemo)(()=>S(l,u,c),[l,u,c]),x=(0,o.useMemo)(()=>{let e=Math.min(y.length,3),t=e=>({type:"Image",src:e.url,alt:e.altText||"Product image",width:_,height:f,thumbnail:e.url});return[...y.slice(0,e).map(t),...d.map(e=>({type:"Video",src:e.url,alt:e.title||"Product video",width:_,height:f,thumbnail:"/images/default-img.svg",controls:!0,muted:!0}
1)),...y.slice(e).map(t)]},[y,d,_,f]);return x.length>0?(0,r.jsx)(n.PdpImageCarousel,{images:x,maxVisibleThumbnails:b,thumbnailWidth:h,thumbnailHeight:h,expandedGalleryTitle:e("product.galleryTitle.label",{default:"Product Images & Videos"}),circular:!0}):(0,r.jsx)(i.default,{src:"/images/default-img.svg",alt:"Default product image",width:_,height:f})});L.displayName="ProductGallery";var D=l(72935),E=l(83631),R=l(67533),O=l(18278),M=l(76762);let V=(0,o.forwardRef)((e,t)=>{let l=(0,s.c)(),a=(0,O.W)(l,!0),{amount:n,setAmount:i}=(0,M.f)(),{control:d,setValue:u,watch:c,trigger:p}=(0,E.mN)({resolver:(0,D.u)(a),defaultValues:{amount:n},mode:"onChange"});(0,o.useEffect)(()=>{n!==c("amount")&&u("amount",n)},[n,u,c]);let m=c("amount");return(0,o.useEffect)(()=>{m!==n&&i(m)},[m,n,i]),(0,o.useImperativeHandle)(t,()=>({validateAmount:async()=>await p("amount")})),(0,r.jsx)(E.xI,{name:"amount",control:d,render:e=>{let{field:t,fieldState:{error:l}}=e;return(0,r.jsx)(R.k,{amount:t.value,setGiftCardAmount:t.onChange,errorMessage:null==l?void 0:l.message})}})});V.displayName="GiftCardAmountForm";var F=l(86777),G=l(58736),B=l(53077),U=l(47799),z=l(44550),W=l(96926),Z=l.n(W);let H=e=>{var t,l,a,i,u;let{amountFormRef:c}=e,[v,h]=(0,o.useState)(!1),b=(0,p.GV)(z.Ep),y=(0,g.Bj)(),{productNode:x}=y,N=(0,p.GV)(m.UW),k=(0,p.GV)(_.qf),C=(0,p.GV)(e=>e.user.firstName),S=(0,p.GV)(e=>e.user.email),w=(0,o.useRef)(null),{addToCart:P}=(0,G.AP)(),[I,T]=(0,o.useState)({}),A=(0,p.jL)(),L=(0,s.c)(),{amount:D}=(0,M.f)(),E=L.rich("giftCard.alertMessage.label",{trigger:()=>(0,r.jsx)("span",{className:"body-s-bold",children:S})}),R=async()=>{var e,t,l,r,a,n,i,s,o,u,p,m,v,_,g;if(!await (null==c||null==(e=c.current)?void 0:e.validateAmount()))return;let f=null==x||null==(l=x.variants.edges)||null==(t=l.find(e=>{let{node:{sku:t}}=e;return t===(null==x?void 0:x.sku)}))?void 0:t.node.entityId;if(!x||!x.entityId||!f)return;let h={productEntityId:x.entityId,variantEntityId:f,quantity:1};try{if(w.current){if(!await w.current.validateForm())return void w.current.getFormErrors();{let e=w.current.getFormData();h.giftCardDetails={amount:null!=D?D:0,senderName:e.senderName,recipientName:e.recipientName,recipientEmail:e.recipientEmail,...e.message&&{message:e.message},...e.scheduledDate&&{deliveryDate:e.scheduledDate.toISOString()},...e.scheduledTime&&{deliveryTime:e.scheduledTime}}}}else h.giftCardDetails={amount:null!=D?D:0,senderName:C||"",recipientName:C||"",recipientEmail:S||""};if((null==(r=h.giftCardDetails)?void 0:r.senderName)&&(null==(a=h.giftCardDetails)?void 0:a.recipientName)&&(null==(n=h.giftCardDetails)?void 0:n.recipientEmail)){await P({payload:h});let e=null==x||null==(s=x.variants.edges)||null==(i=s.find(e=>{let{node:{sku:t}}=e;return t===(null==x?void 0:x.sku)}))?void 0:i.node.sku,[t,l,r,a]=(null==x||null==(_=x.categories)||null==(v=_.edges)||null==(m
1=v[0])||null==(p=m.node)||null==(u=p.breadcrumbs)||null==(o=u.edges)?void 0:o.map(e=>e.node.name))||[];(0,d.Ml)({itemId:(0,j.vZ)(y)||(null==x?void 0:x.sku)||"",itemName:(null==x?void 0:x.name)||"",itemBrand:null==x||null==(g=x.brand)?void 0:g.name,itemCategory:t,itemCategory2:l,itemCategory3:r,itemCategory4:a,...e&&{itemVariant:e},price:null!=D?D:0,quantity:1,itemListId:k.listId||"gift-card",itemListName:k.listName||"Gift Card",...N&&{preferredStoreId:N},sourcePage:"gift_card"}),A((0,U.N6)()),A((0,B.XL)())}}catch(e){console.error("Failed to add product to cart:",e)}};return(0,o.useEffect)(()=>{C&&!I.senderName&&T({...I,senderName:C||""})},[C,I]),(0,r.jsxs)("div",{className:Z()["product-details-card__gift-price-section"],children:[D?(0,r.jsx)(n.SalePrice,{regularPrice:D,size:"lg"}):(0,r.jsx)(n.PriceRange,{maxPrice:500,minPrice:1,size:"lg",variant:"regular"}),(0,r.jsx)(n.Divider,{type:"tertiary",orientation:"horizontal"}),b&&(0,r.jsx)(n.Checkbox,{checked:v,onChange:e=>{let t=e.target.checked;!t&&(null==w?void 0:w.current)&&T(null==w?void 0:w.current.getFormData()),h(t)},label:L("giftCard.checkbox.label")}),(!b||v)&&(0,r.jsx)("div",{className:Z()["product-details-card__form-wrapper"],children:(0,r.jsxs)("div",{className:Z()["product-details-card__form-inner"],children:[(0,r.jsx)("h4",{id:"recipient-title",className:Z()["product-details-card__form-title"],children:L("giftCard.recipient.details.label")}),(0,r.jsx)(F.I,{onSubmit:()=>{},ref:w,defaultValues:{senderName:null!=(t=I.senderName)?t:"",recipientName:null!=(l=I.recipientName)?l:"",recipientEmail:null!=(a=I.recipientEmail)?a:"",message:null!=(i=I.message)?i:"",scheduleForLater:null!=(u=I.scheduleForLater)&&u,scheduledDate:I.scheduledDate,scheduledTime:I.scheduledTime}})]})}),b&&!v&&(0,r.jsx)(n.Alert,{message:E,type:"info",variant:"inline"}),(0,r.jsx)(n.Button,{onClick:R,variant:"primary",size:"lg",IconLeft:f.ShoppingCartSolid,"aria-label":L("product.addToCart.label"),className:Z()["product-details-card__add-to-cart-button"],type:"submit",form:"gift-card-form",children:L("product.addToCart.label")})]})};H.displayName="GiftCardPriceSection";var K=l(96553),Q=l.n(K);let q=()=>{let e=(0,g.Bj)(),t=(0,j.vZ)(e),l=(0,s.c)(),{reviewData:a}=(0,y.O8)(t),[i,d]=(0,o.useState)(!1),u=(0,o.useRef)(null),c=(0,o.useRef)(null),p=(0,o.useMemo)(()=>{var e,t,l;let r=null==a||null==(l=a.Results)||null==(t=l[0])||null==(e=t.ProductStatistics)?void 0:e.ReviewStatistics;return{averageOverallRating:null==r?void 0:r.AverageOverallRating,totalReviewCount:null==r?void 0:r.TotalReviewCount}},[a]),m=(0,o.useCallback)(()=>{let e=document.getElementById("reviews-section");if(e){let t=e.getBoundingClientRect().top+window.scrollY-173;window.scrollTo({top:t,behavior:"smooth"})}},[]);(0,o.useEffect)(()=>{if("#reviews-section"===globalThis.location.hash){let e=setTimeout(()=>{m()},500);return()=>clearTimeout(e)}},[m]);let v=(0,o.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m())},[m]),_=(0,o.useCallback)(()=>{d(!1)},[]),h=(0,o.useMemo)(()=>{let{averageOverallRating:e,totalReviewCount:t}=p;return null==t||null==e||0===t?(0,r.jsx)("p",{className:b()("body-s-regular",Q()["product-details-card--no-rating"]),children:l("pdp.noReviews.label")}):(0,r.jsx)("button",{"aria-label":l("pdp.jumpToReviews.label"),onClick:m,onKeyDown:v,className:Q()["product-details-card--reviews"],children:(0,r.jsx)(n.Reviews,{rating:Number(e),reviewCount:Number(t),averageRating:Number(e)})})},[p,l,m,v]),x=(0,r.jsx)("div",{className:Q()["product-details-card--price-section"],children:(0,r.jsx)(V,{ref:c})}),N=(0,o.useMemo)(()=>i&&u.current?(0,r.jsx)(n.Alert,{message:l("product.noVariantSelected.label"),type:"error",variant:"floating",CustomIcon:f.ErrorSolid,container:u.current,onClose:_,className:Q()["product-details-card--alert"]}):null,[i,l,_]);return(0,r.jsxs)(n.FluidContainer,{className:Q()["product-details-card"],children:[(0,r.jsx)("div",{className:Q()["product-details-card--header"],children:(0,r.jsx)(C,{reviews:h})}),(0,r.jsx)("div",{className:Q()["product-details-card--left-panel"],children:(0,r.jsx)(L,{})}),(0,r.jsxs)("div",{className:Q()["product-details-card--right-panel"],children:[(0,r.jsx)("div",{className:Q()["product-details-card--info"],children:(0,r.jsx)(C,{reviews:h})}),(0,r.jsx)("div",{ref:u,style:{display:"contents"}}),N,x,(0,r.jsx)(H,{amountFormRef:c})]})]})};var Y=l(9601),J=l(83665),$=l(13185),X=l(42635),ee=l.n(X);let et=(0,o.memo)(e=>{let{providedSaveText:t}=e,l=(0,s.c)(),a=(0,J.ZC)(),n=(0,g.Bj)(),i=(0,j.r3)(n),d=(0,j.TN)(n),u=(0,j.K0)(n),c=(0,j.aF)(n),p=(0,o.useMemo)(()=>
1{if(t)return t;if(!i)return;let{salePrice:e}=i,r=null==i?void 0:i.basePrice;if(r&&e&&r.value>e.value){let t=r.value-e.value,n=Math.round(t/r.value*100);n=0===n?0:Number.parseFloat(n.toFixed(2));let i=l("products.price.save.label",{amount:a(t),savePercentage:n});return c&&(i+=l("products.price.through.label",{endDate:c})),i}return""},[i,t,c,a,l]),m=(0,o.useMemo)(()=>u?(0,r.jsxs)("div",{className:ee()["product-price__levy-info"],role:"region",children:[(0,r.jsx)(f.CircleInfoOutline,{className:ee()["product-price__icon"]}),(0,r.jsx)("p",{className:ee()["product-price__label"],children:l("products.price.levyInfo")})]}):null,[u,l]);return i?(0,r.jsxs)("div",{className:ee()["product-price"],children:[(0,r.jsx)($.c,{prices:i,size:"lg",isBaseProduct:d,saveText:p,align:"left"}),m]}):null});et.displayName="ProductPrice";var el=l(86258),er=l(65935),ea=l(7712);let en=function(e){var t;let{variants:l,sku:r,isBaseProduct:a}=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=(0,s.c)("product.availability");if(a){let e=null==l?void 0:l.every(e=>{var t;let{inventory:l}=e;return null==(t=(0,x.g9)(l,n))?void 0:t.isInStock}),t=null==l?void 0:l.some(e=>{var t;let{inventory:l}=e;return null==(t=(0,x.g9)(l,n))?void 0:t.isInStock}),r=null==l?void 0:l.every(e=>{let{inventory:t}=e,l=(0,x.g9)(t,n);return!l||0===l.availableToSell});return e?{dotVariant:"positive",isInStock:!0,message:i("all")}:t?{dotVariant:"warning",isInStock:!0,message:i("some")}:r?{dotVariant:"negative",isInStock:!1,message:i("outofstock.label")}:{dotVariant:"warning",isInStock:!0,message:i("some")}}let o=null==l||null==(t=l.find(e=>{let{sku:t}=e;return t===r}))?void 0:t.inventory,d=(0,x.g9)(o,n),u=Number((null==d?void 0:d.availableToSell)||0);return 0===u?{dotVariant:"negative",isInStock:!1,message:i("outofstock.label")}:u>0&&u<=5?{dotVariant:"warning",isInStock:!0,message:i("lowstock.label")}:u>5&&u<=10?{dotVariant:"brand",isInStock:!0,message:i.rich("limitedstock",{count:u})}:{dotVariant:"positive",isInStock:!0,message:i("available.label")}};var ei=l(26265),es=l(74680),eo=l(7649),ed=l(50043),eu=l(64620),ec=l.n(eu);let ep=e=>{let{daysUntilAvailable:t,formattedAvailableDate:l}=e,a=(0,s.c)("productcard.availability");return(0,r.jsx)(n.AvailabilityCard,{dotVariant:"brand",icon:f.CalendarOutline,statusLabel:a("comingSoon.label"),title:(0,r.jsxs)("div",{className:ec()["product-availability-info"],children:[(0,r.jsx)("div",{className:ec()["product-availability-info-date"],children:(0,r.jsxs)("span",{className:"body-s-bold",children:[a("availableOn.label")," ",(0,r.jsx)("span",{className:"body-s-regular",children:l})]})}),(0,r.jsxs)(n.InfoLabel,{size:"md",children:[t," ",a("daysLeft.label")]})]})})};var em=l(14878),ev=l(97101);let e_=()=>{let e=(0,s.c)("productcard.availability"),t=(0,p.GV)(m.UW),l=(0,p.jL)(),a=(0,ev.rd)(),i=e=>{e.preventDefault(),t?a.push(em.b.STORE_DETAILS.set(String(t))):l((0,m.JK)())},o=e.rich("checkLocalStoreMessage.label",{trigger:()=>(0,r.jsx)(n.Link,{className:ec()["special-order-link"],href:"/store-locator",onClick:i,children:e("yourLocalStore.label")})}),d=e.rich("clickForDetailsMessage.label",{trigger:t=>(0,r.jsx)(n.Link,{className:ec()["special-order-link"],target:"_blank",rel:"noopener noreferrer",href:String(t),children:e("clickHere.label")})});return(0,r.jsx)(n.AvailabilityCard,{icon:f.ShoppingCartSpecialSolid,iconSize:"lg",specialText:(0,r.jsxs)("span",{children:[o," ",d]}),title:e("specialOrder.label")})};var eg=l(92033),ef=l.n(eg);let eh=function(e){let{isExclusive:t,className:l="",variant:a="inline"}=e,n=(0,s.c)("product.availability");if(!t)return null;let i=b()(ef()["exclusive-availability"],ef()["exclusive-availability--".concat(a)],l);return(0,r.jsx)("span",{className:i,"data-testid":"exclusive-winnipeg-east",children:n("winnipegEastOnly.label")})};var eb=l(76257),ey=l(2661);let ex=e=>{let{storeStatus:t,onlineStatus:l,placement:a,pickupMessage:i,isInStock:o,isInStoreOnly:d=!1,isExclusive:u=!1,currentStoreLabel:c=null,pdpInventoryItems:v}=e,_=(0,s.c)("productcard.availability"),g=(0,s.c)("product.availability"),h=(0,p.jL)(),b=(0,p.GV)(m.Vn),y=null==b?void 0:b.label,x=c===ey.RP,j=u&&!!c&&!x;return(0,r.jsxs)("div",{className:ec()["product-availability"],children:[u&&(0,r.jsx)(eh,{isExclusive:u,variant:"full",className:ec()["exclusive-availability-banner"]}),(0,r.jsx)(n.AvailabilityCard,{dotVariant:j?"negative":null==t?void 0:t.dotVariant,icon:f.StoreSolid,iconSize:"lg",location:a&&o&&!j&&(0,r.jsxs)("span",{children:[(0,r.jsxs)("span",{children:[_.rich("location.place.label",{location:()=>""})," "]}),a]}
1),pickupTime:o&&!j?i:null,statusLabel:j?g("notStockedAtStore.label"):null==t?void 0:t.message,title:_.rich("title.pickup.label",{trigger:()=>(0,r.jsx)(n.Link,{className:ec()["action-link"],href:"#",onClick:()=>h((0,m.JK)({pdpInventoryItems:null!=v?v:null})),children:y||_("storeSelector.selectStore.link.label")})})}),d?(0,r.jsx)(n.AvailabilityCard,{dotVariant:"negative",icon:f.TruckSolid,statusLabel:_("shippingUnavailable.label"),title:_("inStoreOnly.label")}):(0,r.jsx)(n.AvailabilityCard,{icon:f.TruckSolid,dotVariant:l.dotVariant,statusLabel:l.message,title:_.rich("title.ship.label",{trigger:()=>(0,r.jsx)(eb.o,{})})})]})};var ej=l(20895);let eN=()=>{var e,t,l,a,n;let[i,s]=(0,o.useState)(),d=(0,g.Bj)(),c=(0,j.vn)(d),v=(0,j.uc)(d),_=(0,j.TN)(d),f=(0,j.er)(d),{quantity:h}=(0,ed.useQuantityContext)(),b=null!=(n=null==(e=d.productNode)?void 0:e.entityId)?n:null,y=null==(t=c.find(e=>{let{sku:t}=e;return t===v}))?void 0:t.entityId,N=b&&y&&!_?[{productId:b,variantId:y,quantity:h}]:null,k=(0,ea.useFeatureFlag)("winnipeg-east-store"),C=(0,p.GV)(m.Vn),S=null==C?void 0:C.entity
1Id,w=null==C?void 0:C.label,P=(0,o.useMemo)(()=>(0,eo.i)(C),[C]),I=(0,x.GL)(v,d),T=_?c.every(e=>{var t,l,r,a;let n=null==(a=e.metafields)||null==(r=a.edges)||null==(l=r.find(e=>{var t;return(null==(t=e.node)?void 0:t.key)==="shippable"}))||null==(t=l.node)?void 0:t.value;return(0,ej.r)(n)}):(0,ej.r)(I),A=(0,o.useMemo)(()=>k&&(0,x.yn)(v,d),[k,v,d]),L=(0,u.G)({mode:"language"}),D=en({variants:c,sku:v,isBaseProduct:_},1),E=en({variants:c,sku:v,isBaseProduct:_},S),R=(0,o.useMemo)(()=>{var e,t,l,r;return null==(r=c.find(e=>{let{sku:t}=e;return t===v}))||null==(l=r.inventory)||null==(t=l.byLocation)||null==(e=t.edges)?void 0:e.find(e=>e.node.locationEntityId===S)},[c,v,S]),O=(0,ei.hb)(C);(0,o.useEffect)(()=>{(async()=>{if(!v||!S||!P){P||s(void 0);return}try{let e=await fetch("/api/products/".concat(v,"/getPlacementDetails/").concat(S)),{data:t}=await e.json();s(t[null!=L?L:"en"])}catch(e){console.error("Error fetching placement details:",e)}})()},[v,L,S,P]);let{daysUntilAvailable:M,formattedAvailableDate:V,productAvailableDate:F}=(0,o.useMemo)(()=>{var e,t,l,r,a,n;let i=(0,es.Ke)(null==(t=d.productNode)||null==(e=t.metafields)?void 0:e.edges),s=(0,es.by)(null==(r=d.productNode)||null==(l=r.metafields)?void 0:l.edges),o=(0,es.Pl)(c,v),u=(0,es.mj)(c,v,"skuStatus"),p=(0,es.Mh)({productStatus:i,skuStatus:u,variantArrivalDate:o,productArrivalDate:s});if(!p.isComingSoon||!p.arrivalDate)return{daysUntilAvailable:null,formattedAvailableDate:null,productAvailableDate:null};let m=p.arrivalDate,_=null!=(n=null!=(a=p.formattedArrivalDate)?a:(e=>{let t=(e=>{let t=e.includes("/")?e.split("/"):e.split("-");if(3!==t.length)return null;let[l,r,a]=t,n=Number(l),i=Number(r),s=Number(a);return isNaN(n)||isNaN(i)||isNaN(s)||n<1||n>31||i<1||i>12?null:new Date(s,i-1,n)})(e);if(!t)return;let l=t.getDate(),r=t.toLocaleString("en-US",{month:"short"}).toUpperCase(),a=t.getFullYear();return"".concat(l," ").concat(r," ").concat(a)})(m))?n:null;return{daysUntilAvailable:p.daysUntilArrival,formattedAvailableDate:_,productAvailableDate:m}},[null==(a=d.productNode)||null==(l=a.metafields)?void 0:l.edges,v,c]);return f?(0,r.jsx)(e_,{}):F&&V&&"number"==typeof M?(0,r.jsx)(ep,{daysUntilAvailable:M,formattedAvailableDate:V}):(0,r.jsx)(ex,{storeStatus:S?E:void 0,onlineStatus:D,placement:S&&P&&i?(0,r.jsx)(er.W,{aisles:i}):void 0,pickupMessage:S?O:void 0,isInStock:null==R?void 0:R.node.isInStock,isInStoreOnly:T,isExclusive:A,currentStoreLabel:null!=w?w:null,pdpInventoryItems:N})};var ek=l(43768),eC=l(62e3),eS=l.n(eC);let ew=e=>{let{quantityInCart:t=0}=e,l=(0,s.c)("product.labels"),[a,i]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),c=(0,g.Bj)(),p=(0,j.vn)(c),m=(0,j.fn)(c),v=(0,j.D8)(c)-t,_=v>0&&v<5?v:null;return(0,o.useEffect)(()=>{let e=(0,ek.dP)(p,null!=m?m:void 0),t=(0,ek.I2)(p,null!=m?m:void 0);i(e),u(t)},[m,p]),(0,r.jsxs)("div",{className:eS()["product-labels"],children:[a&&(0,r.jsx)(n.HotBuyLabel,{label:l("hotBuy")},"hot-buy"),d&&(0,r.jsx)(n.ClearanceLabel,{label:l("clearance")},"clearance"),null!==_&&(0,r.jsx)(n.LimitedStockLabel,{label:l("limitedStock",{quantity:_})},"limited-stock")]})};var eP=l(16306),eI=l(11716),eT=l(88366),eA=l(30800),eL=l(79778),eD=l(13201),eE=l.n(eD);let eR=e=>{var t,l,a,i,c,h,b,y,x,N,k,C,S,w,P,I,T,A,L,D,E;let{onChange:R,selectedOutOfStock:O=!1,selectedButtonGroup:M,setValidation:V,setHasAddToCartAttempted:F,validation:U,setIsOutOfStock:z,setWishlistError:W,setIsBackendPurchaseCapped:Z,clearAlerts:H,setCompareError:K}=e,Q=(0,s.c)(),q=(0,u.G)({mode:"language"}),Y=(0,ev.rd)(),[J,$]=(0,o.useState)(!1),[X,ee]=(0,o.useState)(!1),et=(0,p.jL)(),{addToCart:er,isLoading:ea}=(0,G.AP)(),en=(0,p.GV)(m.UW),ei=(0,p.GV)(v.cy),eo=(0,p.GV)(v.Dm),eu=(0,p.GV)(v.NG),ec=(0,p.GV)(_.qf),ep=(0,g.Bj)(),e_=(0,j.eJ)(ep),{quantity:eg,setQuantity:ef}=(0,ed.useQuantityContext)(),eh=(0,j.fn)(ep),eb=(0,j.HC)(ep),ey=(0,j.TN)(ep),ex=(0,j.VG)(ep),ej=(0,j.yy)(ep),eN=(null!=(D=null==ej?void 0:ej.length)?D:0)>0?Object.entries(M).length!==(null==ej?void 0:ej.length):ey,eC=(0,j.er)(ep),eS=null==(t=ep.productNode)?void 0:t.entityId,ew=(0,j.vn)(ep),eD=(0,j.D8)(ep,en),eR=(0,j.FG)(ep),eO=O||!ey&&eD<=0,eM=(0,o.useMemo)(()=>{var e,t;return ey||1!==ew.length?eb?null==e_?void 0:e_.entityId:null==(e=ew.find(e=>{let{sku:t}=e;return t===eh}))?void 0:e.entityId:null==(t=ew[0])?void 0:t.entityId},[ey,ew,eb,e_,eh]),eV=(0,el.Q)(eS,eM),eF=(0,p.GV)(e=>ey?(0,eA.EW)(e,eS):(0,eA.EW)(e,eM)),eG=null!=(E=null!=eh?eh:null==(l=ep.productNode)?void 0:l.sku)?E:"",eB=(0,es.Pl)(ew,eG),eU=(0,es.Ke)(null==e_||null==(a=e_.metafields)?void 0:a.edges),ez=(0,es.by)(null==e_||null==(i=e_.metafields)?void 0:i.edges),eW=(0,es.mj)(ew,eG,"skuStatus"),eZ=(0,o.useMemo)(()=>(0,es.Mh)({productStatus:eU,skuStatus:eW,variantArrivalDate:eB,productArrivalDate:ez}).arrivalDate,[eB,ez,eU,eW]),eH=Math.max(0,eD-eV),eK=null===eR?null:Math.max(0,eR-eV),eQ=Math.max(1,null===eK?eH:Math.min(eH,eK)),eq=X||null!==eR&&eg+eV>eR,eY=(null==e_||null==(h=e_.prices)||null==(c=h.basePrice)?void 0:c.value)||0,eJ=(null==e_||null==(y=e_.prices)||null==(b=y.salePrice)?void 0:b.value)||0,e$=eJ>0?eJ:eY,eX=eJ>0?eY-eJ:0,[e0,e1,e6,e5]=(null==e_||null==(w=e_.categories)||null==(S=w.edges)||null==(C=S[0])||null==(k=C.node)||null==(N=k.breadcrumbs)||null==(x=N.edges)?void 0:x.map(e=>e.node.name))||[],{toggle:e7,isInWishlist:e8,isLoading:e2}=(0,eT.z)({productId:eS,variantId:eM,productName:ex||"",imageUrl:(null==e_||null==(A=e_.images)||null==(T=A.edges)||null==(I=T[0])||null==(P=I.node)?void 0:P.url)||"",quantity:eg,sku:eh||"",analyticsProductId:(0,j.vZ)(ep),trackingContext:{pageContext:"pdp",price:e$,...eX>0&&{discount:Number(eX.toFixed(2))},brand:null==e_||null==(L=e_.brand)?void 0:L.name,itemCategory:e0,itemCategory2:e1,itemCategory3:e6,itemCategory4:e5,...(null==ec?void 0:ec.listId)&&{listId:ec.listId},...(null==ec?void 0:ec.listName)&&{listName:ec.listName},...ei&&Object.keys(ei).length>0&&{appliedFilters:JSON.stringify(ei)},sourcePage:"pdp"}}),e3=async()=>{var e,t;null==F||F(!0);let l=!(null==e_||null==(e=e_.inventory)?void 0:e.isInStock),r=eg+eV>eD;if($(!1),ee(!1),null==Z||Z(!1),null==H||H(),V(!1),z(!1),eN)return void V(!0);if(l){V(!0),z(!0);return}if(eq||r)return void V(!0);if(eS&&eM)try{await er({payload:{productEntityId:eS,variantEntityId:eM,quantity:eg},language:q}),null==F||F(!1);let e=(0,ek.dP)(ew,eh||""),l=(0,ek.I2)(ew,eh||"");(0,d.Ml)((e=>{let{palId:t,sku:l,productName:r,itemBrand:a,pdpCategory:n,pdpCategory2:i,pdpCategory3:s,pdpCategory4:o,variantSKU:d,pdpFinalPrice
1:u,quantity:c,pdpDiscount:p,productType:m,preferredStoreId:v,activeFilters:_,searchSort:g,searchQuery:f,plpContext:h}=e,b=Object.keys(_).length>0?JSON.stringify(_):void 0,y="relevance"===g.field?void 0:"".concat(g.field,"_").concat(g.order),x=f&&!f.includes("group_id:")?f:void 0;return{itemId:null!=t?t:l,itemName:r,itemBrand:a,itemCategory:n,itemCategory2:i,itemCategory3:s,itemCategory4:o,...d&&{itemVariant:d},price:u,quantity:c,...p>0&&{discount:p},productType:m,...v&&{preferredStoreId:v},filtersApplied:b,sortApplied:y,searchTerm:x,...h.listId&&{itemListId:h.listId},...h.listName&&{itemListName:h.listName},sourcePage:"pdp"}})({palId:(0,j.vZ)(ep),sku:(null==e_?void 0:e_.sku)||"",productName:ex||"",itemBrand:null==e_||null==(t=e_.brand)?void 0:t.name,pdpCategory:e0,pdpCategory2:e1,pdpCategory3:e6,pdpCategory4:e5,variantSKU:eh,pdpFinalPrice:e$,quantity:eg,pdpDiscount:eX,productType:e?"Hot Buy":l?"Clearance":void 0,preferredStoreId:en,activeFilters:ei,searchSort:eu,searchQuery:eo,plpContext:ec})),et((0,B.XL)())}catch(e){(0,eL.Q)(e)?(ee(!0),null==Z||Z(!0)):z(!0),V(!0),console.error("Failed to add product to cart:",e)}},e9=J||eq||eg+eV>eD,{handleItemTracking:e4}=(0,eI.O)(eS,eM);return(0,r.jsxs)("div",{className:eE()["product-actions"],children:[!eb&&!eC&&!eO&&!eZ&&(0,r.jsxs)("div",{className:eE()["product-actions__shopping"],children:[(0,r.jsx)(n.Counter,{value:eg,onChange:e=>{if(/[eE]/.test(e.target.value))return;let t=Number.parseInt(e.target.value,10);if(!Number.isNaN(t)&&!(t<0)){if(t>eQ){$(!0),V(!0);return}$(!1),ef(t),V(!1),R(e)}},onKeyDown:e=>{("e"===e.key||"E"===e.key)&&e.preventDefault()},maximumValue:eQ,onMaximumValueExceeded:e=>{let t=Number.parseInt(e.target.value,10);!Number.isNaN(t)&&t>eQ&&($(!0),V(!0))},state:e9&&U&&!eN?"error":void 0,validationMessage:"".concat(String(eQ)," ").concat(Q("product.quantity.error")),liveRegionText:e=>Q("product.quantity.announcement",{count:e})}),(0,r.jsx)(n.Button,{variant:"primary",size:"lg",className:eE()["product-actions__add-to-cart"],IconLeft:f.ShoppingCartSolid,onClick:e3,disabled:ea,"aria-label":Q("product.addToCart.label"),"data-cnstrc-btn":eP.j.ATC,children:ea?Q("product.addToCartLoading.label"):Q("product.addToCart.label")})]}),(0,r.jsxs)("div",{className:eE()["product-actions__actions"],children:[!eb&&!eC&&(eO||eZ)&&(0,r.jsx)(n.Button,{variant:"secondary",IconLeft:f.LetterOutline,size:"lg",onClick:e4,"data-cnstrc-btn":eP.j.TRACK_THE_ITEM,children:Q("product.trackTheItem.label")}),!eb&&eC&&(0,r.jsx)(n.Button,{variant:"secondary",size:"lg",onClick:()=>{if(en)return void Y.push(em.b.STORE_DETAILS.set(en.toString()));et((0,m.JK)())},"data-cnstrc-btn":eP.j.CONTACT_LOCAL_STORE,children:Q("product.contactLocalStore.label")}),!eb&&(0,r.jsx)(n.Button,{variant:"text",IconLeft:e8?f.FavoriteSolid:f.FavoriteOutline,size:"lg",className:eE()["product-actions__action-btn"],onClick:()=>{if(eN){null==H||H(),W(!0);return}W(!1),(0,o.startTransition)(()=>{e7()})},disabled:e2,"data-cnstrc-btn":eP.j.ADD_TO_WISHLIST,children:e8?Q("product.wishlist.savedToWishlist.label"):Q("product.wishlist.saveToWishlist.label")}),(0,r.jsx)(n.Button,{variant:"text",IconLeft:eF?f.CompareSolid:f.CompareOutline,size:"lg",className:eE()["product-actions__action-btn"],onClick:()=>{if(eF){let e=ey?eS:eM;et((0,eA.Rz)(e));return}if(eN&&!eb){null==H||H(),null==K||K(!0);return}eM&&ep.productNode&&et((0,eA.$t)({productNode:ep.productNode,variantEntityId:eM,availability:eb?"unavailable":"available"}))},"data-cnstrc-btn":eP.j.ADD_TO_COMPARE,children:eF?Q("product.compare.added.label"):Q("product.compare.label")})]}),(0,r.jsx)(n.Divider,{})]})};var eO=l(51679),eM=l.n(eO);let eV=()=>{var e;let t=(0,s.c)(),l=(0,g.Bj)(),o=(0,j.o7)(l);return o?(0,r.jsx)("div",{className:eM()["product-brand"],children:(0,r.jsxs)(n.Link,{href:"/brands/".concat(o.path,"/").concat(o.entityId).replaceAll(/\/{2,}/g,"/"),className:eM()["product-brand--link"],children:[(0,r.jsxs)("div",{className:eM()["product-brand--info"],children:[(null==(e=o.defaultImage)?void 0:e.url)&&(0,r.jsx)(i.default,{src:o.defaultImage.url,alt:o.name||"Brand Image",width:90,style:{objectFit:"contain"},height:30}),(0,r.jsxs)("p",{className:b()("body-s-bold",eM()["product-brand--name"]),children:[t("product.shopByBrand")," ",o.name]})]}),(0,r.jsx)(n.IconWrapper,{Icon:f.ArrowRight,size:a.KO9,color:a.sD5})]})}):null};var eF=l(8227);let eG=(0,o.memo)(eF.l),eB=e=>{let{setSelectedOutOfStock:t,setSelectedButtonGroup:l,onSelectVariant:a,setValidation:n,clearAlerts:i}=e,s=(0,p.jL)(),d=(0,g.Bj)(),c=(0,u.G)({mode:"language"}),m=(0,j.vn)(d),v=(0,j.fn)(d),_=(0,j.yy)(d),f=(0,j.ZK)(d),h=(0,j.vZ)(d),b=(0,ev.rd)(),y=(0,o.useMemo)(()=>
1{if(1===m.length){var e,t;return!(null==(t=m[0])||null==(e=t.inventory)?void 0:e.isInStock)}return!1},[m]);(0,o.useEffect)(()=>{1===m.length&&t(y)},[m.length,y,t]);let x=(0,o.useCallback)((e,t,l)=>{var r,a;let n=e.node;if(n.displayName!==t)return!1;let i=null==(r=n.values)?void 0:r.edges;return null!=(a=null==i?void 0:i.some(e=>e.node.label===l))&&a},[]),N=(0,o.useCallback)((e,t,l)=>{let r=e.options.edges;return!!r&&r.some(e=>x(e,t.displayName,l))},[x]),k=(0,o.useCallback)(e=>_&&m?m.filter(t=>_.every(l=>{let r=e[l.displayName];return!!r&&N(t,l,r)})):[],[_,m,N]),C=(0,o.useMemo)(()=>e=>{if(m&&1===m.length)return y;if(!_||!m)return!1;let t=k(e);return 0!==t.length&&!t.some(e=>{var t;return null==(t=e.inventory)?void 0:t.isInStock})},[m,y,_,k]),S=(0,o.useCallback)(e=>{l(e),t(C(e)),null==i||i(),n(!1),s((0,eA.Nh)(""))},[l,C,t,n,i,s]),w=(0,o.useMemo)(()=>f.replace(/^\/|\/$/g,""),[f]),P=(0,o.useCallback)(e=>{if(e){var t,l;d.setLoading(!0);let r=(null==(t=e.sku)?void 0:t.startsWith("PA"))?em.b.PDP.set(w,e.sku):em.b.PDP.set(w,h,e.sku);null==(l=history)||l.replaceState({},"","/".concat("fr"===c?"fr_CA":"en").concat(r)),b.replace(r,{scroll:!1})}null==a||a(e),d.setLoading(!1)},[a,d,w,h,c,b]),I=(0,o.useMemo)(()=>({variantSKU:v,productOptions:_||null,variants:m,onSelectedOptionsChange:S,onSelectVariant:P}),[v,_,m,S,P]);return _&&0!==_.length?(0,r.jsx)(eG,{...I}):null};eB.displayName="ProductOptions";let eU=(0,o.memo)(eB);var ez=l(41706),eW=l.n(ez);let eZ=e=>{let{message:t,onClose:l}=e;return(0,r.jsx)(n.Alert,{message:t,type:"error",variant:"inline",showCloseButton:!0,CustomIcon:f.ErrorSolid,onClose:l})},eH=()=>{var e,t,l,a,i;let d=(0,g.Bj)(),u=(0,j.vZ)(d),c=(0,j.HC)(d),p=null==(e=d.productNode)?void 0:e.entityId,m=(0,j.TN)(d),v=(0,j.vn)(d),_=(0,j.fn)(d),f=(0,o.useMemo)(()=>{var e,t;return m||1!==v.length?null==(e=v.find(e=>{let{sku:t}=e;return t===_}))?void 0:e.entityId:null==(t=v[0])?void 0:t.entityId},[m,v,_]),[h,x]=(0,o.useState)(!1),N=(0,s.c)(),{productNode:k}=d,S=(0,j.VG)(d),w=(0,j.TN)(d),{reviewData:P}=(0,y.O8)(u),{quantity:I}=(0,ed.useQuantityContext)(),T=(0,j.D8)(d),A=(0,j.FG)(d),D=(0,el.Q)(p,f),[E,R]=(0,o.useState)({}),[O,M]=(0,o.useState)(!1),[V,F]=(0,o.useState)(!1),[G,B]=(0,o.useState)(!1),[U,z]=(0,o.useState)(!1),[W,Z]=(0,o.useState)(!1),H=(0,o.useMemo)(()=>{var e,t,l;let r=null==P||null==(l=P.Results)||null==(t=l[0])||null==(e=t.ProductStatistics)?void 0:e.ReviewStatistics;return{averageOverallRating:null==r?void 0:r.AverageOverallRating,totalReviewCount:null==r?void 0:r.TotalReviewCount}},[P]),K=(0,o.useCallback)(e=>{console.info(e)},[]),Q=(0,o.useCallback)(()=>{let e=document.getElementById("reviews-section");if(e){let t=e.getBoundingClientRect().top+window.scrollY-173;window.scrollTo({top:t,behavior:"smooth"})}},[]);(0,o.useEffect)(()=>{if("#reviews-section"===globalThis.location.hash){let e=setTimeout(()=>{Q()},500);return()=>clearTimeout(e)}},[Q]);let q=(0,o.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),Q())},[Q]),J=(0,o.useCallback)(()=>{M(!1),B(!1),z(!1)},[]),$=(0,o.useCallback)(()=>{J(),F(!1),Z(!1)},[J]),X=(0,o.useMemo)(()=>{let{averageOverallRating:e,totalReviewCount:t}=H;return null==t||null==e||0===t?(0,r.jsx)("p",{className:b()("body-s-regular",eW()["product-details-card--no-rating"]),children:N("pdp.noReviews.label")}):(0,r.jsx)("button",{"aria-label":(e=>{let{actionLabel:t,reviewCount:l,rating:r,averageRating:a}=e,n="Review summary: ".concat(l," reviews, rated ").concat(r," out of ").concat(5," review stars"),i=a?", average rating ".concat(a.toFixed(1)," out of ").concat(5):"";return"".concat(t,". ").concat(n).concat(i)})({actionLabel:N("pdp.jumpToReviews.label"),reviewCount:Number(t),rating:Number(e),averageRating:Number(e)}),onClick:Q,onKeyDown:q,className:eW()["product-details-card--reviews"],children:(0,r.jsx)(n.Reviews,{rating:Number(e),reviewCount:Number(t),averageRating:Number(e)})})},[H,N,Q,q]),ee=(0,o.useMemo)(()=>(0,r.jsxs)("div",{className:eW()["product-details-card--price-section"],children:[c&&(0,r.jsx)("p",{className:b()("heading-level-4-special",eW()["product-details-card--unavailable-text"]),children:N("product.unavailable.label")}),!c&&(0,r.jsx)(ew,{quantityInCart:D}),!c&&(0,r.jsx)(et,{}),(0,r.jsx)(eR,{onChange:K,selectedOutOfStock:h,selectedButtonGroup:E,setValidation:M,setHasAddToCartAttempted:F,validation:O,setIsOutOfStock:x,setWishlistError:B,setIsBacken
1dPurchaseCapped:Z,setCompareError:z,clearAlerts:J})]}),[c,N,K,h,E,O,D,J]),er=(0,o.useMemo)(()=>{var e,t,l,r,a,n;let i="",s=null!=A?A:0,o=I+D,d=O;return W||null!==A&&o>A?(i=N("product.warning.purchaseCapped",{number:s}),d=V):o>T&&T>0?i=N("product.warning.insufficientStock"):((null!=(n=null==k||null==(t=k.productOptions)||null==(e=t.edges)?void 0:e.length)?n:0)>0?Object.entries(E).length!==(null==k||null==(r=k.productOptions)||null==(l=r.edges)?void 0:l.length):w)?i=N("product.warning.noVariantSelected"):(null==k||null==(a=k.inventory)?void 0:a.isInStock)&&!h||(i=N("product.warning.outOfStock")),d&&i?i:null},[T,A,I,D,w,E,h,O,V,W,N,null==k||null==(t=k.inventory)?void 0:t.isInStock,null==k||null==(a=k.productOptions)||null==(l=a.edges)?void 0:l.length]),ea=(0,o.useMemo)(()=>G?N("product.warning.wishlistNoVariantSelected"):U?N("compare.error.variant.label"):er,[G,U,er,N]),en=!c;return(0,r.jsxs)(n.FluidContainer,{className:eW()["product-details-card"],"data-cnstrc-product-detail":!0,"data-cnstrc-item-id":u,"data-cnstrc-item-name":S,"data-cnstrc-item-variation-id":null!=_?_:String(null!=p?p:""),...en&&{"data-cnstrc-item-price":null==k||null==(i=k.prices)?void 0:i.price.value},children:[(0,r.jsxs)("div",{className:eW()["product-details-card--header"],children:[(0,r.jsx)(C,{reviews:X}),(0,r.jsx)(eV,{})]}),(0,r.jsx)("div",{className:eW()["product-details-card--left-panel"],children:(0,r.jsx)(L,{})}),(0,r.jsxs)("div",{className:eW()["product-details-card--right-panel"],children:[(0,r.jsxs)("div",{className:eW()["product-details-card--info"],children:[(0,r.jsx)(C,{reviews:X}),(0,r.jsx)(eV,{})]}),ea&&(0,r.jsx)(eZ,{message:ea,onClose:$}),!c&&(0,r.jsx)(eU,{setValidation:M,setSelectedOutOfStock:x,setSelectedButtonGroup:R,clearAlerts:J}),ee,!c&&(0,r.jsx)(eN,{}),!c&&(0,r.jsx)(Y.u,{})]})]})};eH.displayName="ProductCard";let eK=(0,o.memo)(eH);var eQ=l(97583),eq=l(96556);let eY=()=>{let e=(0,ev.rd)(),t=(0,u.G)({mode:"language"}),l=(0,g.Bj)(),a=(0,j.vZ)(l),n=(0,j.ZK)(l),i=(0,j.vn)(l),s=(0,o.useMemo)(()=>i.map(e=>{let{sku:t}=e;return t}),[i]);return(0,o.useEffect)(()=>{s.forEach(t=>{if(a){let l=em.b.PDP.set(n,a,t);e.prefetch(l,{kind:eq.PrefetchKind.FULL})}})},[t,a,n,s,e]),(0,r.jsx)(r.Fragment,{})};var eJ=l(30434),e$=l.n(eJ);let eX=(0,o.memo)(e=>{var t,l;let{productNode:f,exploreMoreBannerProps:h,VariantSKUParam:b,enrichRelatedProducts:y,productLocale:j,unavailable:N=!1,tabs:k,similarProductCarouselProps:C,isGiftcard:S=!1,isAmmunition:w=!1,recentProductCarouselProps:P,children:I}=e,T=(0,s.c)(),[A,L]=(0,o.useState)(!1),D=(0,p.jL)(),E=(0,u.G)({mode:"language"}),R=(0,p.GV)(m.UW),O=(0,p.GV)(_.qf),M=(0,o.useRef)(!1);(0,o.useEffect)(()=>{D((0,v.hi)())},[D]),(0,c.f)("print-pdp-only");let V=null!=(l=null!=(t=(0,x.$P)("externalProductNumber",f))?t:(0,x.$P)("product_external_id",f))?l:"";(0,o.useEffect)(()=>{if(!M.current&&f&&!A){var e,t,l,r,a,n,i,s,o,u;M.current=!0;let c=b?null==(l=f.variants)||null==(t=l.edges)||null==(e=t.find(e=>{var t;return(null==(t=e.node)?void 0:t.sku)===b}))?void 0:e.node:null,{prices:p}=f,m=(null==p||null==(r=p.salePrice)?void 0:r.value)||(null==p||null==(a=p.price)?void 0:a.value)||0,v=(null==p||null==(n=p.basePrice)?void 0:n.value)||(null==p||null==(i=p.price)?void 0:i.value)||0,_=v>m?v-m:0,g=null==(o=f.categories)||null==(s=o.edges)?void 0:s.map(e=>{var t;return null==(t=e.node)?void 0:t.name}).filter(Boolean),h=[];"true"===(0,x.$P)("clearance_product",f)&&h.push("Clearance"),"true"===(0,x.$P)("hot_buy",f)&&h.push("Hot Buy"),(0,d.AS)({productId:V||String(f.entityId),productName:f.name||"",price:m,sku:(null==c?void 0:c.sku)||f.sku||null,quantity:1,discount:_>0?_:null,promotionName:null,promotionId:null,brand:(null==(u=f.brand)?void 0:u.name)||null,categoryHierarchy:(null==g?void 0:g.join(" > "))||null,productFlags:h.length>0?h:null,preferredStore:R||null,sourceId:(null==O?void 0:O.listId)||null,sourceName:(null==O?void 0:O.listName)||null})}},[f,b,V,A,R,O]);let F=!(0,n.useMediaQuery)("(min-width: ".concat(a.mVu,")")),G=(0,o.useCallback)(e=>{L(e)},[]);return(0,r.jsx)(g.hM,{value:{productNode:f,variantSku:null!=b?b:null,productLocale:E||j,unavailable:N,enrichedRelatedProducts:y,loading:A,setLoading:G},children:(0,r.jsxs)("div",{className:e$()["product-details-page"],"aria-busy":A,children:[(0,r.jsx)("div",{className:e$()["print-header"],"aria-hidden":"true",children:(0,r.jsx)(i.default,{src:"/images/princessauto-logo.svg",alt:"Princess Auto",width:183,height:36})}),(0,r.jsx)(n.LoadingOverlayMask,{isLoading:A}),w&&(0,r.jsx)("div",{className:e$()["pal-disclaimer"],children:(0,r.jsx)(n.Alert,{type:"info",variant:"inline",message:T("product.ammunition.palDisclaimer.label")})}),(0,r.jsx)(n.StickyPanelTrigger,{offset:F?0:-110,children:S?(0,r.jsx)(q,{}):(0,r.jsx)(eK,{})}),null!=I?I:(0,r.jsx)(eQ.DeferredProductDetailsPageSections,{enrichRelatedProducts:y,exploreMoreBannerProps:h,isGiftcard:S,productId:V,recentProductCarouselProps:P,similarProductCarouselProps:C,tabs:k}),(0,r.jsx)(eY,{})]})})});eX.displayName="ProductDetailsPageClient"},30434:e=>{e.exports={"product-details-page":"styles_product-details-page__jDDW9","pal-disclaimer":"styles_pal-disclaimer__4eU5u","print-header":"styles_print-header__j8Yh2"}},30494:(e,t,l)=>{"use strict";l.d(t,{USER_POSTAL_CODE_STORAGE_KEY:()=>n,i:()=>s,q:()=>i});var r=l(7620);let a="AIzaSyDs6QPbSIpuoIh0XihQXZnD_ZNzGY-Ktc0",n="user_postal_code",i=/^[A-Za-z]\d[A-Za-z]\s?\d[A-Za-z]\d$/,s=()=>{let[e,t]=(0,r.useState)({storageValue:"",currentValue:"",error:!1}),l=(0,r.useCallback)(e=>{let l=e.trim().toUpperCase();if(!i.test(l))return!1;t({error:!1,currentValue:l,storageValue:l});try{window.sessionStorage.setItem(n,l)}catch(e){console.error(e,"er")}return!0},[t]),s=(0,r.useCallback)(l=>{i.test(l)?t({...e,currentValue:l,error:!1}):t({...e,currentValue:l,error:!0})},[e,t]);return(0,r.useEffect)(()=>{let r=window.sessionStorage.getItem(n);if(r)return void t({...e,storageValue:r});navigator.geolocation&&a&&navigator.geolocation.getCurrentPosition(async e=>{try{var t,r,n,s,o;let{latitude:d,longitude:u}
1=e.coords,c="".concat("https://maps.googleapis.com/maps/api/geocode/json","?latlng=").concat(d,",").concat(u,"&result_type=postal_code&key=").concat(a),p=await fetch(c,{method:"GET",mode:"cors",referrerPolicy:"origin",headers:{"Accept-Language":"en-CA,fr-CA;q=0.9"}}),m=await p.json(),v=null==m||null==(n=m.results)||null==(r=n[0])||null==(t=r.address_components)?void 0:t.find(e=>Array.isArray(e.types)&&e.types.includes("postal_code")),_=(null!=(o=null!=(s=null==v?void 0:v.long_name)?s:null==v?void 0:v.short_name)?o:"").toString().toUpperCase();_&&i.test(_)&&l(_)}catch(e){console.error(e,"er")}})},[]),(0,r.useMemo)(()=>({postalCodeState:e,setStorageValue:l,setCurrentValue:s}),[e,l,s])}},35613:(e,t,l)=>{"use strict";l.d(t,{Ic:()=>a,KZ:()=>n,iF:()=>r});let r=[10,25,50,100,250,500],a=500,n=1},37625:e=>{e.exports={"gift-card-amount-selector":"styles_gift-card-amount-selector__D9HcB","gift-card-amount-selector__amount-options-group":"styles_gift-card-amount-selector__amount-options-group__zQe7n","gift-card-amount-selector__price-input-wrapper":"styles_gift-card-amount-selector__price-input-wrapper__NlOWE","gift-card-amount-selector__price-input-info":"styles_gift-card-amount-selector__price-input-info__j3wqc","gift-card-amount-selector__price-input-info-text":"styles_gift-card-amount-selector__price-input-info-text__jGIyp","gift-card-amount-selector__price-field":"styles_gift-card-amount-selector__price-field__qZEA1","gift-card-amount-selector__not-selected":"styles_gift-card-amount-selector__not-selected__rHHQF"}},41008:(e,t,l)=>{"use strict";l.d(t,{q:()=>a});let r=null,a=()=>{if(!r){var e;let t=l(93709);r=null!=(e=t.default)?e:t}return r}},41048:e=>{e.exports={separator:"styles_separator__PL2td"}},41706:e=>{e.exports={"product-details-card":"styles_product-details-card__Ym5qo","product-details-card--header":"styles_product-details-card--header__ZjBMZ","product-details-card--left-panel":"styles_product-details-card--left-panel__g0Dxa","product-details-card--info":"styles_product-details-card--info__MGwne","product-details-card--right-panel":"styles_product-details-card--right-panel__M1quA","product-details-card--no-rating":"styles_product-details-card--no-rating__M18tV","product-details-card--reviews":"styles_product-details-card--reviews__FMuPD","product-details-card--price-section":"styles_product-details-card--price-section__4uwPJ","product-details-card--alert":"styles_product-details-card--alert__rg8ge","product-details-card--unavailable-text":"styles_product-details-card--unavailable-text__4QSrE"}},42635:e=>{e.exports={"product-price__levy-info":"styles_product-price__levy-info__wNOyp","product-price__icon":"styles_product-price__icon__W5D6R","product-price__label":"styles_product-price__label__k2V7g"}},46910:e=>{e.exports={"product-info":"styles_product-info__61sid","product-info--details":"styles_product-info--details__EasEZ","product-info--hazardous-indicator":"styles_product-info--hazardous-indicator__RNvO8","product-info--image-link":"styles_product-info--image-link__Cr596","product-info--meta-data":"styles_product-info--meta-data__SBtNy"}},47347:e=>{e.exports={"panel-layout__image-link":"styles_panel-layout__image-link__QEthi","panel-layout__image":"styles_panel-layout__image__ly78b","panel-layout__first-block":"styles_panel-layout__first-block__1SN2Z",spawn:"styles_spawn__OUm0v","panel-layout__left":"styles_panel-layout__left__m7bvR","panel-layout__summary":"styles_panel-layout__summary__0ZP_x","panel-layout__product-link":"styles_panel-layout__product-link__n3ZWW","panel-layout__options":"styles_panel-layout__options__JqDWi","panel-layout__option--unselected":"styles_panel-layout__option--unselected__iW27y","panel-layout__availability":"styles_panel-layout__availability__e9H8g","panel-layout__price":"styles_panel-layout__price__22trI","panel-layout__right":"styles_panel-layout__right__Qsfwm","panel-layout__second-block":"styles_panel-layout__second-block___M5_A"}},50043:(e,t,l)=>{"use strict";l.r(t),l.d(t,{QuantityContext:()=>n,QuantityProvider:()=>s,useQuantityContext:()=>i});var r=l(54568),a=l(7620);let n=(0,a.createContext)(null),i=()=>{let e=(0,a.useContext)(n);if(!e)throw Error("useQuantityContext must be used within a QuantityProvi
1der");return e},s=e=>{let{children:t}=e,[l,i]=(0,a.useState)(1),s=(0,a.useMemo)(()=>({quantity:l,setQuantity:i}),[l,i]);return(0,r.jsx)(n.Provider,{value:s,children:t})}},51679:e=>{e.exports={"product-brand":"styles_product-brand__LE7pv","product-brand--link":"styles_product-brand--link__sKhvX","product-brand--info":"styles_product-brand--info__YuiOT","product-brand--name":"styles_product-brand--name__f_woT"}},53044:e=>{e.exports={parts__container:"styles_parts__container__Aosy9",parts__link:"styles_parts__link__aptJf",parts__card:"styles_parts__card__cvfnY","related-products__card":"styles_related-products__card__uvEOo","parts__load-more":"styles_parts__load-more__Mwyd3","parts__load-more-button":"styles_parts__load-more-button___bYKF"}},55757:(e,t,l)=>{"use strict";l.d(t,{L:()=>o});var r=l(54568),a=l(83985),n=l(7620),i=l(83631);let s=e=>{let{errorMessage:t,delayErrorMs:l,label:i,nativeRequired:s,...o}=e,[d,u]=(0,n.useState)(!!t),c=(0,n.useRef)(null),p=!!t;(0,n.useEffect)(()=>(c.current&&(globalThis.clearTimeout(c.current),c.current=null),p)?!l||l<=0?void u(!0):(c.current=globalThis.setTimeout(()=>{u(!0),c.current=null},l),()=>{c.current&&(globalThis.clearTimeout(c.current),c.current=null)}):void u(!1),[p,l]);let m=d&&p?"error":void 0,v=d&&p?t:void 0;return(0,r.jsx)(a.TextField,{...o,label:i,validationMessage:v,nativeRequired:s,state:m})},o=e=>{let{control:t,name:l,label:a,delayErrorMs:n,...o}=e;return(0,r.jsx)(i.xI,{name:l,control:t,render:e=>{let{field:t,fieldState:{error:l}}=e;return(0,r.jsx)(s,{...o,...t,label:a,errorMessage:null==l?void 0:l.message,delayErrorMs:n,nativeRequired:o.nativeRequired})}})}},62e3:e=>{e.exports={"product-labels":"styles_product-labels__4lw8k","product-labels__label":"styles_product-labels__label__JnAnk","product-labels__label--clearance":"styles_product-labels__label--clearance__uvDjN","product-labels__label--hot_buy":"styles_product-labels__label--hot_buy__Qn98a"}},62241:e=>{e.exports={"tab-links":"styles_tab-links__uvPOM","tab-links__tab":"styles_tab-links__tab__TDojO","tab-links__star-icon":"styles_tab-links__star-icon__rir3z"}},64620:e=>{e.exports={"product-availability":"styles_product-availability__cQXuQ","action-link":"styles_action-link__rJw_2","product-availability-info":"styles_product-availability-info__JvgAd","product-availability-info-date":"styles_product-availability-info-date__hKHfB","special-order-link":"styles_special-order-link__4EhZJ","exclusive-availability-banner":"styles_exclusive-availability-banner__P142L"}},64675:(e,t,l)=>{"use strict";l.d(t,{ProductJsonLdWithReviews:()=>p});var r=l(54568),a=l(83985),n=l(7620),i=l(74737),s=l(2375);let o=i.Ik({Results:i.YO(s.LC)}),d={baseUrl:"https://www.princessauto.com/".replace(/\/$/,""),locales:["en-US","fr"],maxEntriesPerSitemap:5e4,changeFrequency:{home:"daily",page:"weekly",product:"daily",category:"weekly",featured:"daily",showcase:"monthly",guide:"monthly",tip:"monthly",brand:"monthly"},priority:{home:1,page:.8,product:.9,category:.8,featured:.9,showcase:.7,guide:.7,tip:.6,brand:.7}},u={"en-US":"/en",fr:"/fr_CA"};var c=l(63771);let p=e=>{var t,l,i,s,p,m,v,_,g,f,h,b,y,x,j,N,k,C,S,w,P,I,T,A,L,D;let{productNode:E,productName:R,productNameSlug:O,ProductSKUParam:M,VariantSKUParam:V,locale:F,variantPrices:G=new Map}=e,{reviewData:B,reviewsList:U,isPending:z}=(e=>{let[t,l]=(0,n.useState)(null),[r,a]=(0,n.useState)({Results:[]}),[i,s]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{if(!e){l(null),a({Results:[]}),s(!1);return}(async()=>{s(!0);try{let[t,r]=await Promise.all([fetch("/api/products/".concat(e,"/reviews")),fetch("/api/products/".concat(e,"/reviews-list"))]);if(t.ok){let e=await t.json();l(e.data)}else l(null);if(r.ok){let e=await r.json(),t=o.safeParse(e.data);t.success?a(t.data):(console.error("Reviews list validation failed:",t.error),a({Results:[]}))}else a({Results:[]})}catch(e){console.error("Error fetching product reviews:",e),l(null),a({Results:[]})}finally{s(!1)}})()},[e]),{isPending:i,reviewData:t,reviewsList:r}})(null!=(N=null!=(j=null!=(x=(0,c.$P)("externalProductNumber",E))?x:(0,c.$P)("product_external_id",E))?j:E.sku)?N:""),W=null!=(C=null!=(k=null==(l=E.prices)||null==(t=l.salePrice)?void 0:t.value)?k:null==(s=E.prices)||null==(i=s.basePrice)?void 0:i.value)?C:null,Z=null!=(w=null!=(S=null==(m=E.prices)||null==(p=m.salePrice)?void 0:p.currencyCode)?S:null==(_=E.prices)||null==(v=_.basePrice)?void 0:v.currencyCode)?w:null,H=null==(f=E.images)||null==(g=f.edges)?void 0:g.map(e=>{var t;return null==e||null==(t=e.node)?void 0:t.url}
1).filter(Boolean),K=null;E.path&&(K=((e,t)=>{let l=t.startsWith("/")?t.slice(1):t,r=u[e];return r?d.baseUrl?l?"".concat(d.baseUrl).concat(r,"/").concat(l):"".concat(d.baseUrl).concat(r):(console.error("[Sitemap] BASE_URL is undefined. Please set NEXT_PUBLIC_BASE_URL environment variable."),""):(console.error("[Sitemap] Invalid locale: ".concat(e)),"")})(F,"product/".concat(O,"/").concat(M).concat(V?"/".concat(V):"")));let Q=null==(b=E.variants)||null==(h=b.edges)?void 0:h.map(e=>{var t,l,r,a;let n=null==e?void 0:e.node;if(!n||!K||!n.sku)return null;let i=G.get(n.sku),s=null!=(l=null==i?void 0:i.price)?l:W,o=null!=(r=null==i?void 0:i.basePrice)?r:null,d=null!=(a=null==i?void 0:i.currency)?a:Z;return{name:n.sku,sku:n.sku,price:s,basePrice:o,priceCurrency:d||"",availability:(null==(t=n.inventory)?void 0:t.isInStock)?"InStock":"OutOfStock",url:n.sku?"".concat(K,"/").concat(n.sku):K}}).filter(e=>null!==e),{ratingValue:q,reviewCount:Y,bestRating:J,worstRating:$,reviews:X}=(0,n.useMemo)(()=>{var e,t,l;let r=null==B||null==(l=B.Results)||null==(t=l[0])||null==(e=t.ProductStatistics)?void 0:e.ReviewStatistics,a=null==U?void 0:U.Results,n=null==a?void 0:a.map(e=>({author:e.UserNickname||"Anonymous",rating:e.Rating||0,reviewBody:e.ReviewText||"",datePublished:e.SubmissionTime||"",bestRating:5,worstRating:1}));return{ratingValue:null==r?void 0:r.AverageOverallRating,reviewCount:null==r?void 0:r.TotalReviewCount,bestRating:5*(null!=r&&!!r.TotalReviewCount),worstRating:+(null!=r&&!!r.TotalReviewCount),reviews:n&&n.length>0?n:null}},[B,U]);return z?null:(0,r.jsx)(a.ProductJsonLd,{name:R,description:null!=(P=E.seo.metaDescription)?P:"",image:null!=H?H:"",brand:null!=(I=null==(y=E.brand)?void 0:y.name)?I:"",sku:null!=(T=E.sku)?T:"",price:null!=W?W:0,priceCurrency:Z||"",availability:E.inventory.isInStock?"InStock":"OutOfStock",url:null!=K?K:"",priceValidUntil:"",ratingValue:q,reviewCount:Y,bestRating:J,worstRating:$,reviews:X,variants:Q,id:"product-".concat(E.entityId),upc:null!=(A=E.upc)?A:null,mpn:null!=(L=E.mpn)?L:null,gtin:null!=(D=E.gtin)?D:null})}},65935:(e,t,l)=>{"use strict";l.d(t,{W:()=>o});var r=l(54568),a=l(78641),n=l(7620),i=l(41048),s=l.n(i);let o=e=>{let{aisles:t,className:l}=e,i=(0,a.c)("product.availability"),o=(0,n.useMemo)(()=>{let e=(Array.isArray(t)?t.flatMap(e=>e.split(",").map(e=>e.replaceAll('"',"").trim())):t.split(",").map(e=>e.replaceAll('"',"").trim())).map(e=>e.trim()).filter(e=>e&&'""'!==e);if(0===e.length)return null;let l=[];return e.forEach((t,a)=>{l.push((0,r.jsx)("strong",{children:t},"aisle-".concat(t))),a<e.length-1&&l.push((0,r.jsx)("span",{className:s().separator,children:i("or.label")},"separator-".concat(t)))}),l},[t,i]);return o?(0,r.jsx)("span",{className:l,children:o}):null};o.displayName="AisleLocationLabel"},67533:(e,t,l)=>{"use strict";l.d(t,{k:()=>p});var r=l(54568),a=l(83985),n=l(25150),i=l.n(n),s=l(7620),o=l(66056),d=l(35613),u=l(37625),c=l.n(u);let p=e=>{let{amount:t,setGiftCardAmount:l,errorMessage:n}=e,u=(0,o.c3)(),p=(0,a.usePriceFormatter)(),[m,v]=(0,s.useState)(void 0===t?void 0:null!=t?t:d.KZ),[_,g]=(0,s.useState)(!1);return(0,r.jsxs)("section",{className:c()["gift-card-amount-selector"],children:[(0,r.jsx)(a.ButtonGroup,{groupTitle:(0,r.jsxs)("span",{children:["".concat(u("giftCard.amountSelector.selectDollarAmount.label"),": "),(0,r.jsx)("span",{className:i()({"body-m-bold":!0,[c()["gift-card-amount-selector__not-selected"]]:void 0===m}),children:void 0===m?u("product.option.notSelected"):p(m)})]}),buttonList:d.iF.map(e=>({content:p(e),type:"available"})),unavailableBtnTooltip:"",onSelect:e=>{let t=d.iF.findIndex(t=>p(t)===e.content);if(-1===t)return;let r="number"==typeof d.iF[t]?d.iF[t]:null;null!==r&&(v(r),null==l||l(r),g(!1))},className:c()["gift-card-amount-selector__amount-options-group"],hideSelected:_,hideSelectedLabel:!0,"aria-label":u("giftCard.amountSelector.selectDollarAmount.label")}),(0,r.jsx)("div",{className:c()["gift-card-amount-selector__price-input-wrapper"],children:(0,r.jsx)(a.TextField,{type:"number",label:u("giftCard.amountSelector.enterDifferentAmount.label"),inputClassName:c()["gift-card-amount-selector__price-field"],value:m,onChange:e=>{let t=e.target.value;if(""===t){v(void 0),null==l||l(void 0),g(!0);return}v(Number(t)),null==l||l(Number(t)),g(!0)},state:n?"error":void 0,validationMessage:n})})]})};p.displayName="GiftCardAmountSelector"},68599:e=>{e.exports={"specifications-table":"styles_specifications-table__yZZHf","specifications-table__table-content":"styles_specifications-table__table-content__1_Ew1","specifications-table__header-row":"styles_specifications-table__header-row__TNwmH","specifications-table__body-row-wrapper":"styles_specifications-table__body-row-wrapper__QYu9L","specifications-table__mb-32":"styles_specifications-table__mb-32__RJPuk"}},72276:(e,t,l)=>{"use strict";l.d(t,{$Jh:()=>W,AXY:()=>n,AXu:()=>M,Bnp:()=>p,Eec:()=>U,FYT:()=>D,FcH:()=>i,H7e:()=>N,HT2:()=>G,IF8:()=>R,KO9:()=>x,Kp_:()=>v,Kz1:()=>j,LEW:()=>P,OGO:()=>w,PAC:()=>V,PWN:()=>F,Rwp:()=>y,Y6Q:()=>K,Y_C:()=>b,ZRI:()=>I,aSD:()=>a,ehg:()=>B,enE:()=>Z,eqz:()=>h,gP6:()=>m,gg9:()=>A,h$L:()=>_,iN9:()=>C,jss:()=>H,k36:()=>f,kS6:()=>o,mDK:()=>Q,mVu:()=>r,n7E:()=>S,n9S:()=>q,oyE:()=>c,pR2:()=>d,pkn:()=>k,s3S:()=>L,sD5:()=>u,sJv:()=>s,sZk:()=>g,tCt:()=>O,xck:()=>z,zFR:()=>T,zy0:()=>E}
1);let r="360px",a="768px",n="1024px",i="1440px",s="1920px",o="#00a9e8",d="#2279b9",u="#285882",c="#002c4e",p="#ffffff",m="#c0c6d6",v="#757982",_="#000000",g="#ffe052",f="#cb1218",h="#758821",b="16px",y="20px",x="24px",j="32px",N="48px",k="950",C="400",S="700",w="100",P="#000000",I="#717276",T="#cb1218",A="#2279b9",L="#285882",D="#002c4e",E="#ffffff",R="#ba8c2e",O="#285882",M="#ffffff",V="#ffd200",F="#f1f2f3",G="#285882",B="#00a9e8",U="#cde3f3",z="#e8edce",W="#ffcacc",Z="#ffe9ab",H="16px",K="20px",Q="24px",q="32px"},72409:(e,t,l)=>{"use strict";l.d(t,{ew:()=>r.Link});var r=l(83985)},72935:(e,t,l)=>{"use strict";l.d(t,{u:()=>c});var r=l(83631);let a=(e,t,l)=>{if(e&&"reportValidity"in e){let a=(0,r.Jt)(l,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},n=(e,t)=>{for(let l in t.fields){let r=t.fields[l];r&&r.ref&&"reportValidity"in r.ref?a(r.ref,l,e):r&&r.refs&&r.refs.forEach(t=>a(t,l,e))}},i=(e,t)=>{t.shouldUseNativeValidation&&n(e,t);let l={};for(let a in e){let n=(0,r.Jt)(t.fields,a),i=Object.assign(e[a]||{},{ref:n&&n.refs?n.refs[0]:n&&n.ref});if(s(t.names||Object.keys(e),a)){let e=Object.assign({},(0,r.Jt)(l,a));(0,r.hZ)(e,"root",i),(0,r.hZ)(l,a,e)}else(0,r.hZ)(l,a,i)}return l},s=(e,t)=>{let l=o(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>o(e).match(`^${l}\\.\\d+`))};function o(e){return e.replace(/[\[\]]/g,"")}function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(null,arguments)}function u(e,t){try{var l=e()}catch(e){return t(e)}return l&&l.then?l.then(void 0,t):l}function c(e,t,l){if(void 0===l&&(l={}),"_zod"in e&&"object"==typeof e._zod)return function(a,s,o){try{return Promise.resolve(u(function(){function r(e){return o.shouldUseNativeValidation&&n({},o),{errors:{},values:l.raw?Object.assign({},a):e}}return"sync"===l.mode?r(e.parse(a,t)):Promise.resolve(e.parseAsync(a,t)).then(r)},function(e){var t;if(!(null==e||null==(t=e._zod)||null==(t=t.traits)||!t.has("$ZodError")))return{values:{},errors:i(function(e,t){for(var l=Object.create(null);e.length;)!function(){var a=e[0],n=a.code,i=a.message,s=a.path.join(".");if(!l[s])if("invalid_union"===a.code&&a.errors.length>0){var o,u,c=a.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];l[s]={message:null!=(o=null==c?void 0:c.message)?o:i,type:null!=(u=null==c?void 0:c.code)?u:n}}else l[s]={message:i,type:n};if("invalid_union"===a.code&&a.errors.forEach(function(t){return t.forEach(function(t){return e.push(d({},t,{path:[].concat(a.path,t.path)}))})}),t){var p=l[s].types,m=p&&p[a.code];l[s]=(0,r.Gb)(s,t,l,n,m?[].concat(m,a.message):a.message)}e.shift()}();return l}(e.issues,!o.shouldUseNativeValidation&&"all"===o.criteriaMode),o)};throw e}))}catch(e){return Promise.reject(e)}};if("_def"in e&&"object"==typeof e._def)return function(a,s,o){try{return Promise.resolve(u(function(){return Promise.resolve(e["sync"===l.mode?"parse":"parseAsync"](a,t)).then(function(e){return o.shouldUseNativeValidation&&n({},o),{errors:{},values:l.raw?Object.assign({},a):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:i(function(e,t){for(var l=Object.create(null);e.length;){var a=e[0],n=a.code,i=a.message,s=a.path.join(".");if(!l[s])if("unionErrors"in a){var o,d,u=a.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];l[s]={message:null!=(o=null==u?void 0:u.message)?o:i,type:null!=(d=null==u?void 0:u.code)?d:n}}else l[s]={message:i,type:n};if("unionErrors"in a&&a.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=l[s].types,p=c&&c[a.code];l[s]=(0,r.Gb)(s,t,l,n,p?[].concat(p,a.message):a.message)}e.shift()}return l}(e.errors,!o.shouldUseNativeValidation&&"all"===o.criteriaMode),o)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}},76257:(e,t,l)=>{"use strict";l.d(t,{o:()=>m});var r=l(54568),a=l(10790),n=l(83985),i=l(25150),s=l.n(i),o=l(7620),d=l(66056),u=l(30494),c=l(18130),p=l.n(c);let m=e=>{let{value:t,onApplyClick:l,className:i}=e,c=(0,d.c3)(),{postalCodeState:m,setStorageValue:v,setCurrentValue:_}=(0,u.i)(),g=(0,o.useRef)(null),f=(0,o.useId)(),h=!!m.currentValue&&m.error;return(0,r.jsx)("span",{className:p()["postal-code"],children:(0,r.jsx)(n.Popover,{placement:"bottom",isReturnFocus:!0,trigger:e=>{let{ref:l,...o}=e,{onClick:d,...u}=o;return(0,r.jsx)(n.Button,{...u,ref:l,variant:"text",className:s()(p()["postal-code__action-link"],i),IconRight:a.ChevronDown,onClick:e=>{_(m.storageValue),null==d||d(e)},children:t||m.storageValue||c("mycart.orderSummary.selectPostalCode.label")})},content:e=>{let{closePopover:a}=e;
1return(0,r.jsxs)("div",{className:p()["postal-code__content"],children:[(0,r.jsxs)("div",{className:p()["postal-code__actions"],children:[(0,r.jsx)(n.TextField,{ref:g,variant:"default",name:"postalCode","aria-label":c("mycart.orderSummary.postalCode.label"),placeholder:c("mycart.orderSummary.enterPostalCode.label"),onChange:e=>_(e.target.value),defaultValue:t||m.storageValue,...h&&{state:"error","aria-describedby":f}}),(0,r.jsx)(n.Button,{variant:"primary",onClick:()=>{if(m.error){var e;null==(e=g.current)||e.focus();return}v(m.currentValue),null==l||l(m.currentValue),a()},children:c("mycart.orderSummary.PostalCodeApply.label")})]}),h&&(0,r.jsx)(n.InputStateMessage,{id:f,message:c("mycart.orderSummary.PostalCodeErrorMessage.label"),state:"error"})]})}})})};m.displayName="PostalCodePopover"},76762:(e,t,l)=>{"use strict";l.d(t,{GiftCardAmountProvider:()=>s,f:()=>i});var r=l(54568),a=l(7620);let n=(0,a.createContext)(null),i=()=>{let e=(0,a.useContext)(n);if(!e)throw Error("useGiftCardAmountContext must be used within a GiftCardAmountProvider");return e},s=e=>{let{children:t}=e,[l,i]=(0,a.useState)(void 0),s=(0,a.useMemo)(()=>({amount:l,setAmount:i}),[l,i]);return(0,r.jsx)(n.Provider,{value:s,children:t})}},79222:e=>{e.exports={"royal-service-bold":"styles_royal-service-bold__UnW8P"}},79778:(e,t,l)=>{"use strict";l.d(t,{Q:()=>r});let r=e=>{var t,l;if(!e||"object"!=typeof e)return!1;let r=e.data,a=null!=(t=null==r?void 0:r.errorCode)?t:e.errorCode,n=null!=(l=null==r?void 0:r.message)?l:e.message;return"CART_004_NOT_FOUND"===a&&"string"==typeof n&&n.includes("Maximum Purchase: You can only purchase a maximum of")}},83665:(e,t,l)=>{"use strict";l.d(t,{ZC:()=>r.usePriceFormatter});var r=l(83985)},86507:e=>{e.exports={"product-tabs__wrapper":"styles_product-tabs__wrapper__r3y1f","product-tabs__accordion":"styles_product-tabs__accordion___jaYK","product-tabs__shadow":"styles_product-tabs__shadow__StPHE","product-tabs__content":"styles_product-tabs__content__8puSU","product-tabs__divider":"styles_product-tabs__divider__gch0E","product-tabs__desktop-content":"styles_product-tabs__desktop-content__7rybf","product-tabs__title-margin":"styles_product-tabs__title-margin__Itg1J","product-tabs__title":"styles_product-tabs__title__A0OgW","product-tabs__title-extra":"styles_product-tabs__title-extra__xvdRI"}},86777:(e,t,l)=>{"use strict";l.d(t,{I:()=>g});var r=l(54568),a=l(72935),n=l(83985),i=l(7620),s=l(83631),o=l(66056),d=l(55757),u=l(35613),c=l(67533),p=l(18278),m=l(92437),v=l.n(m);let _={amount:p.v.min,senderName:"",recipientName:"",recipientEmail:"",message:"",scheduleForLater:!1,scheduledDate:new Date,scheduledTime:""},g=(0,i.forwardRef)((e,t)=>{let{defaultValues:l,onSubmit:m,showSchedules:g=!1,showAmountSelector:f=!1}=e,h=(0,o.c3)(),b=(0,p.W)(h,f),{control:y,handleSubmit:x,watch:j,formState:N,getValues:k,trigger:C}=(0,s.mN)({resolver:(0,a.u)(b),defaultValues:{..._,...l},mode:"onChange",reValidateMode:"onChange"}),S=j("scheduleForLater");(0,i.useImperativeHandle)(t,()=>({validateForm:async()=>await C(),getFormData:()=>k(),getFormErrors:()=>N.errors}));let w=(e,t)=>h("products.time.zone.label",{abbr:e,offsetStr:t});return(0,r.jsxs)("form",{id:"gift-card-form",className:v()["gift-card-recipient-form"],onSubmit:m?x(m):void 0,children:[f&&(0,r.jsx)(s.xI,{name:"amount",control:y,render:e=>{let{field:t,fieldState:{error:l}}=e;return(0,r.jsx)(c.k,{amount:t.value,setGiftCardAmount:t.onChange,errorMessage:null==l?void 0:l.message})}}),(0,r.jsx)(d.L,{control:y,name:"senderName",type:"text",label:h("giftCard.recipientForm.senderName.label"),className:v()["gift-card-recipient-form__text-field"],required:!0,nativeRequired:!1}),(0,r.jsx)(d.L,{control:y,name:"recipientName",type:"text",label:h("giftCard.recipientForm.recipientName.label"),className:v()["gift-card-recipient-form__text-field"],required:!0,nativeRequired:!1}),(0,r.jsx)(d.L,{control:y,name:"recipientEmail",type:"email",label:h("giftCard.recipientForm.recipientEmail.label"),className:v()["gift-card-recipient-form__text-field"],required:!0,nativeRequired:!1}),(0,r.jsx)(s.xI,{name:"message",control:y,render:e=>{let{field:t}=e;return(0,r.jsx)(n.TextArea,{label:h("giftCard.recipientForm.message.label"),value:t.value||"",maxCharacterLimit:u.Ic,maxCharacterText:h("giftCard.recipientForm.remainingCharacters.label"),onChange:e=>{let{target:{value:l}}=e;return t.onChange(l)},className:v()["gift-card-recipient-form__message-field"],"aria-label":h("giftCard.recipientForm.message.label")})}}),g&&(0,r.jsxs)("div",{className:v()["gift-card-recipient-form__schedule-section"],children:[(0,r.jsx)(s.xI,{name:"scheduleForLater",control:y,render:e=>{let{field:t}=e;return(0,r.jsx)(n.Checkbox,{label:h("giftCard.recipientForm.scheduleForLater.label"),checked:t.value,onChange:e=>t.onChange(e.target.checked),className:v()["gift-card-recipient-form__schedule-checkbox"]})}}),S&&(0,r.jsxs)("div",{className:v()["gift-card-recipient-form__schedule-fields"],children:[(0,r.jsx)(s.xI,{name:"scheduledDate",control:y,render:e=>{var t;let{field:l,fieldState:a}=e;return(0,r.jsx)(n.DatePicker,{label:h("giftCard.recipientForm.deliveryDate.label"),value:l.value,onChange:l.onChange,validate:()=>!!a.error,error:null==(t=a.error)?void 0:t.message,required:!0,nativeRequired:!1})}}),(0,r.jsx)(s.xI,{name:"scheduledTime",control:y,render:e=>{var t;let{field:l,fieldState:a}=e;return(0,r.jsx)(n.TimePicker,{label:h("giftCard.recipientForm.deliveryTime.label"),value:l.value,onChange:l.onChange,getHelperText:w,validate:()=>!!a.error,error:null==(t=a.error)?void 0:t.message,required:!0})}})]})]})]})});g.displayName="GiftCardRecipientForm"},87275:(e,t,l)=>{"use strict";l.d(t,{f:()=>a});var r=l(7620);let a=e=>{(0,r.useEffect)(()=>{let t=()=>document.body.classList.add(e),l=()=>document.body.classList.remove(e);return globalThis.addEventListener("beforeprint",t),globalThis.addEventListener("afterprint",l),()=>{globalThis.removeEventListener("beforeprint",t),globalThis.removeEventListener("afterprint",l),document.body.classList.remove(e)}},[e])}},87812:(e,t,l)=>{"use strict";l.d(t,{D8:()=>V,FG:()=>M,GN:()=>h,HC:()=>o,K0:()=>R,N7:()=>I,Ny:()=>S,SP:()=>P,Sz:()=>y,TI:()=>g,TN:()=>x,VG:()=>p,WL:()=>b,ZK:()=>N,_b:()=>d,aF:()=>O,bG:()=>j,eJ:()=>i,er:()=>D,fH:()=>v,fY:()=>f,fn:()=>s,o7:()=>T,pW:()=>m,r3:()=>E,uI:()=>w,uc:()=>u,vZ:()=>c,vn:()=>L,yj:()=>A,yy:()=>_});var r=l(20895),a=l(63771);let n=e=>{var t,l,r;let{productNode:a,variantSku:n}=e,i=(null==a||null==(t=a.variants)?void 0:t.edges)||[],s=i.length>1&&!n,o=(null==a||null==(l=a.metafields)?void 0:l.edges)||[],d=s?[]:(null==(r=i.find(e=>
1e.node.sku===n))?void 0:r.node.metafields.edges)||[];return{productNode:a,variantSku:n,isBaseProduct:s,productAttributes:o,variantAttributes:d,variants:i}},i=e=>e.productNode,s=e=>e.variantSku,o=e=>e.unavailable,d=e=>e.enrichedRelatedProducts,u=e=>{var t,l;return null!=(l=null==(t=e.productNode)?void 0:t.sku)?l:null},c=e=>{var t;let{productNode:l}=e;if(l)return null!=(t=(0,a.$P)("externalProductNumber",l))?t:(0,a.$P)("product_external_id",l)},p=e=>{let{productNode:t,productLocale:l}=e;if(!t)return null;let{productAttributes:r,variantAttributes:i}=n(e);return(0,a.c)(r,i,"displayName_".concat(l))||t.name},m=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:r,variantAttributes:i,variants:s,isBaseProduct:o}=n(e),d="sharedApplications_".concat(l),u=(0,a.c)(r,i,d);return u||(o?(0,a.$A)(s.map(e=>e.node),d):"")},v=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:r,variantAttributes:i,variants:s,isBaseProduct:o}=n(e),d="sharedFeatures_".concat(l),u=(0,a.c)(r,i,d);return u||(o?(0,a.$A)(s.map(e=>e.node),d):"")},_=e=>{var t,l;let{productNode:r}=e;return r?(null==(l=r.productOptions)||null==(t=l.edges)?void 0:t.map(e=>e.node).filter(e=>!!e.__typename).filter(e=>(null==e?void 0:e.__typename)==="MultipleChoiceOption"))||[]:null},g=e=>{var t,l;let{productNode:r,variantSku:a}=e;if(!r||!a)return{};let n=_(e);if(!n||0===n.length)return{};let i=((null==(t=r.variants)?void 0:t.edges)||[]).find(e=>e.node.sku===a);return(null==i||null==(l=i.node.options)?void 0:l.edges)?Object.fromEntries(n.map(e=>{var t,l,r,a;return[e.displayName,(null==(a=(i.node.options.edges||[]).find(t=>t.node.displayName===e.displayName))||null==(r=a.node.values)||null==(l=r.edges)||null==(t=l[0])?void 0:t.node.label)||""]})):{}},f=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:r,variantAttributes:i,variants:s,isBaseProduct:o}=n(e),d="longDescription_".concat(l),u=(0,a.c)(r,i,d);return u||(o?(0,a.$A)(s.map(e=>e.node),d):"")},h=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:r,variantAttributes:i}=n(e);return(0,a.c)(r,i,"product_attributes_".concat(l))||""},b=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:r,variantAttributes:i}=n(e);return(0,a.c)(r,i,"variant_attributes_".concat(l))||""},y=e=>{let{productNode:t}=e;if(!t)return"";let{productAttributes:l,variantAttributes:r}=n(e);return(0,a.c)(l,r,"related_products")||""},x=e=>{var t,l;return((null==(l=e.productNode)||null==(t=l.variants)?void 0:t.edges)||[]).length>1&&!e.variantSku},j=e=>{var t,l,r;let{productNode:n,variantSku:i}=e;if(!n)return null;let s=(null==n||null==(t=n.variants)?void 0:t.edges)||[],o=s.length>1&&!i,d=(null==n||null==(l=n.metafields)?void 0:l.edges)||[],u=o?[]:(null==(r=s.find(e=>e.node.sku===i))?void 0:r.node.metafields.edges)||[];return{webLinks:(0,a.f7)({productAttributes:d,variantAttributes:u,variants:s.map(e=>e.node),key:"webLinks",isBaseProduct:o})||"",manualPdfs:(0,a.wf)({productAttributes:d,variantAttributes:u,variants:s.map(e=>e.node),key:"manual_pdfs",isBaseProduct:o})||""}},N=e=>{let{productNode:t,productLocale:l}=e;return t&&((0,a.$P)("slug_".concat(l),t)||t.path)||""},k="/images/default-img.svg",C=(e,t,l)=>{var r,a;return null!=(a=null!=(r=null!=e?e:t)?r:l)?a:k},S=e=>{var t,l,r,a,n,i,s,o,d,u,c;let{productNode:p,variantSku:m}=e;if(!p)return k;let v=null==(t=p.defaultImage)?void 0:t.url,_=null==(a=p.images)||null==(r=a.edges)||null==(l=r[0])?void 0:l.node.url;if(m){let e=null==(u=p.variants)||null==(d=u.edges)?void 0:d.find(e=>{let{node:{sku:t}}=e;return t===m});return C(null==e||null==(c=e.node.defaultImage)?void 0:c.url,v,_)}return C(null==(o=p.variants)||null==(s=o.edges)||null==(i=s[0])||null==(n=i.node.defaultImage)?void 0:n.url,v,_)},w=(e,t)=>{var l,r,a,n,i;let s=(null==e||null==(r=e.images)||null==(l=r.edges)?void 0:l.map(e=>e.node))||[];if(!t||!e)return s;let o=null==(i=e.variants)||null==(n=i.edges)||null==(a=n.find(e=>{let{node:{sku:l}}=e;return l===t}))?void 0:a.node,d=null==o?void 0:o.defaultImage;if(!(null==d?void 0:d.url))return s;let u=s.filter(e=>e.url!==d.url);return[d,...u]},P=e=>w(e.productNode,s(e)),I=e=>{var t,l,r,a;let n=s(e);if(!n||!e.productNode)return;let i=null==(r=e.productNode.variants)||null==(l=r.edges)||null==(t=l.find(e=>{let{node:{sku:t}}=e;return t===n}))?void 0:t.node,o=null==i||null==(a=i.defaultImage)?void 0:a.url;if(o)return o},T=e=>{var t;return null==(t=e.productNode)?void 0:t.brand},A=e=>{var t,l,r,a,n,i,s,o,d;let u=(null==(r=e.productNode)||null==(l=r.videos)||null==(t=l.edges)?void 0:t.map(e=>e.node))||[],{productNode:c,variantSku:p,productLocale:m}=e,v=(null==c||null==(a=c.variants)?void 0:a.edges)||[],_=null;p?_=v.find(e=>e.node.sku===p):1===v.length&&([_]=v);let g=null==_||null==(s=_.node.metafields.edges)||null==(i=s.find(e=>{var t;return(null==(t=e.node)?void 0:t.key)==="videos"}))||null==(n=i.node)?void 0:n.value;if(!g)return u;try{let e=JSON.parse(g),t=(null!=(d=null!=(o=e["fr"===m?"videos_fr":"videos_en"])?o:e.videos_en)?d:[]).filter(e=>{var t;return!!(null==(t=e.url)?void 0:t.trim())}).sort((e,t)=>
1{var l,r;return(null!=(l=e.order)?l:0)-(null!=(r=t.order)?r:0)}).map(e=>{var t;return{__typename:"Video",title:"",url:null!=(t=e.url)?t:""}});return[...u,...t]}catch(e){return u}},L=e=>{var t,l,r;return(null==(r=e.productNode)||null==(l=r.variants)||null==(t=l.edges)?void 0:t.map(e=>e.node))||[]},D=e=>{let{productNode:t}=e;return t?"true"===(0,a.$P)("specialOrder",t):null},E=e=>{var t;return null==(t=e.productNode)?void 0:t.prices},R=e=>{let{productNode:t}=e;return!!t&&"true"===(0,a.$P)("levy",t)},O=e=>{let{productAttributes:t,variantAttributes:l}=n(e),{productLocale:r}=e;return(0,a.c)(t,l,"saleDates_".concat(r))||""},M=e=>{var t,l;let r=null!=(l=null==(t=e.productNode)?void 0:t.maxPurchaseQuantity)?l:null;return r&&r>0?r:null},V=(e,t)=>{var l,n;let{productNode:i,variantSku:s}=e;if(!i)return 0;let o=(null==(l=i.variants)?void 0:l.edges)||[];if(o.length>1&&!s)return 0;let d=null;if(1===o.length)d=null==(n=o[0])?void 0:n.node.inventory;else{let e=o.find(e=>e.node.sku===s);d=null==e?void 0:e.node.inventory}if(!d)return 0;let u=(0,a.$P)("shippable",i);return(0,a.X6)(d,t,(0,r.r)(u))}},89262:(e,t,l)=>{Promise.resolve().then(l.bind(l,35245)),Promise.resolve().then(l.bind(l,98631)),Promise.resolve().then(l.bind(l,76762)),Promise.resolve().then(l.bind(l,50043)),Promise.resolve().then(l.bind(l,97583)),Promise.resolve().then(l.bind(l,27910)),Promise.resolve().then(l.bind(l,64675)),Promise.resolve().then(l.bind(l,83985))},90725:(e,t,l)=>{"use strict";l.d(t,{$n:()=>r.Button,ph:()=>r.Counter});var r=l(83985)},92033:e=>{e.exports={"exclusive-availability":"styles_exclusive-availability__GKpDa","exclusive-availability--inline":"styles_exclusive-availability--inline__RceRQ","exclusive-availability--badge":"styles_exclusive-availability--badge__RBxtU","exclusive-availability--full":"styles_exclusive-availability--full__lVQ9z","exclusive-availability--other-store":"styles_exclusive-availability--other-store__GGv3v","exclusive-availability__label":"styles_exclusive-availability__label__5aRhD","exclusive-availability__description":"styles_exclusive-availability__description__SeM_S","exclusive-availability__icon":"styles_exclusive-availability__icon__FXWET"}},92437:e=>{e.exports={"gift-card-recipient-form":"styles_gift-card-recipient-form___bAT4","gift-card-recipient-form__text-field":"styles_gift-card-recipient-form__text-field__XzCMk","gift-card-recipient-form__message-field":"styles_gift-card-recipient-form__message-field__kJ9Hs","gift-card-recipient-form__schedule-section":"styles_gift-card-recipient-form__schedule-section__lRjY9","gift-card-recipient-form__schedule-checkbox":"styles_gift-card-recipient-form__schedule-checkbox__9mjYA","gift-card-recipient-form__schedule-fields":"styles_gift-card-recipient-form__schedule-fields__HmMCN"}},96553:e=>{e.exports={"product-details-card":"styles_product-details-card__rrFbw","product-details-card--header":"styles_product-details-card--header__F80Em","product-details-card--left-panel":"styles_product-details-card--left-panel__oLqxw","product-details-card--info":"styles_product-details-card--info__v9zrZ","product-details-card--right-panel":"styles_product-details-card--right-panel__O9cZd","product-details-card--no-rating":"styles_product-details-card--no-rating__3yPVD","product-details-card--reviews":"styles_product-details-card--reviews__rba2_","product-details-card--price-section":"styles_product-details-card--price-section__57Sg2","product-details-card--alert":"styles_product-details-card--alert__3yINE","product-details-card--unavailable-text":"styles_product-details-card--unavailable-text__3BHYg"}},96926:e=>{e.exports={"product-details-card__gift-price-section":"styles_product-details-card__gift-price-section__9cV_0","product-details-card__add-to-cart-button":"styles_product-details-card__add-to-cart-button__d9_Z6","product-details-card__form-wrapper":"styles_product-details-card__form-wrapper__XRB88","product-details-card__form-inner":"styles_product-details-card__form-inner__ZCPZp","product-details-card__form-title":"styles_product-details-card__form-title__ddNQS"}},97101:(e,t,l)=>{"use strict";l.d(t,{N_:()=>n,a8:()=>s,rd:()=>o});var r=l(97868);let a=(0,l(61431).A)({locales:["en-US","fr"],defaultLocale:"en-US",localePrefix:{mode:"always",prefixes:{"en-US":"/en",fr:"/fr_CA"}},pathnames:{"/category/sale":{en:"/category/sale",fr:"/cat\xe9gorie/sale"},"/category/[...path]":{en:"/category/[...path]",fr:"/cat\xe9gorie/[...path]"},"/category/landing/[...path]":{en:"/category/landing/[...path]",fr:"/cat\xe9gorie/page-de-renvoi/[...path]"},"/project-showcases":{en:"/project-showcases",fr:"/demonstration-de-projets"},"/project-showcases/[slug]":{en:"/project-showcases/[slug]",fr:"/demonstration-de-projets/[slug]"},"/project-showcases/submit-project":{en:"/project-showcases/submit-project",fr:"/demonstration-de-projets/soumettre-projet"},"/resources":{en:"/resources",fr:"/ressources"},"/mycart":{en:"/mycart",fr:"/panier"},"/order-status":{en:"/order-status",fr:"/suivi-commande"},"/brands":{en:"/brands",fr:"/marques"},"/gift-cards":{en:"/gift-cards",fr:"/cartes-cadeaux"},"/contact-us":{en:"/contact-us",fr:"/nous-joindre"},"/compare":{en:"/compare",fr:"/comparer"},"/buying-guides":{en:"/buying-guides",fr:"/guide-d-achat"},"/buying-guides/[slug]":{en:"/buying-guides/[slug]",fr:"/guide-d-achat/[slug]"},"/tech-tips":{en:"/tech-tips",fr:"/conseils-techniques"},"/tech-tips/[slug]":{en:"/tech-tips/[slug]",fr:"/conseils-techniques/[slug]"},"/order-status/[orderId]":{en:"/order-status/[orderId]",fr:"/suivi-commande/[orderId]"},"/brands/[path]/[slug]":{en:"/brands/[path]/[slug]",fr:"/marques/[path]/[slug]"},"/store-locator":{en:"/store-locator",fr:"/trouver-magasin"},"/store-locator/store/[slug]":{en:"/store-locator/store/[slug]",fr:"/trouver-magasin/magasin/[slug]"},"/recycling-information":{en:"/recycling-information",fr:"/information-recyclage"},"/sign-in-newsletter":{en:"/sign-in-newsletter",fr:"/inscription-infolettre"},"/flyersView":{en:"/flyersView",fr:"/circulaires"}}}),{Link:n,redirect:i,usePathname:s,useRouter:o,getPathname:d}=(0,r.A)(a)},97583:(e,t,l)=>{"use strict";l.d(t,{DeferredProductDetailsPageSections:()=>eP});var r=l(54568),a=l(83985),n=l(96442),i=l(16551),s=l(87812),o=l(72276),d=l(78641),u=l(7620),c=l(10790),p=l(36531),m=l(88180),v=l(11716),_=l(86258),g=l(58736),f=l(41159),h=l(53077),b=l(98722),y=l(57192),x=l(74680),j=l(50043),N=l(32536),k=l(75981),C=l(50854);let S=e=>{let{key:t,baseText:l,reviewData:a,className:n}=e,i=l,s=null;if("reviews"===t&&a){let e=(0,C.$B)(a),t=(null==e?void 0:e.TotalReviewCount)||0,l=(null==e?void 0:e.AverageOverallRating)||0;t&&(i+=" (".concat(t,")"),s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.StarSolid,{className:n})," ",l.toPrecision(2)]}))}if("qna"===t&&a){let e=(0,C.tp)(a),t=(null==e?void 0:e.TotalQuestionCount)||0;t&&(i+=" (".concat(t,")"))}return{text:i,extra:s}};var w=l(62241),P=l.n(w);let I=e=>{let{tabs:t,handleTabClickAction:l}=e,a=(0,d.c)(),n=(0,i.Bj)(),o=(0,s.vZ)(n),{reviewData:u}=(0,C.O8)(o);return(0,r.jsx)("div",{className:P()["tab-links"],children:t.map(e=>{let{text:t,extra:n}=S({key:e,baseText:a("pdp.tabs.".concat(e,".label")),reviewData:u,className:P()["tab-links__star-icon"]});return(0,r.jsxs)(k.$n,{variant:"text",onClick:()=>l(e),className:P()["tab-links__tab"],children:[t,n]},e)})})};var T=l(47347),A=l.n(T);let L=e=>{let{tabs:t,handleTabClickAction:l,productName:n,imageSrc:i,optionsSlot:s,priceSlot:d,actionsSlot:u,floatingAlert:c}=e,p=(0,a.useMediaQuery)("(min-width: ".concat(o.aSD,")"));return(0,r.jsxs)(r.Fragment,{children:[c,(0,r.jsx)(a.StickyPanel,{className:A()["panel-layout__sticky"],children:(0,r.jsxs)("div",{className:A()["panel-layout"],children:[(0,r.jsxs)("div",{className:A()["panel-layout__first-block"],children:[(0,r.jsxs)("div",{className:A()["panel-layout__left"],children:[p&&(0,r.jsx)("button",{type:"button","aria-label":n,className:A()["panel-layout__image-link"],onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:(0,r.jsx)(N.default,{src:i,alt:"",width:72,height:72,className:A()["panel-layout__image"]})}),(0,r.jsxs)("div",{className:A()["panel-layout__summary"],children:[(0,r.jsx)("button",{type:"button",className:A()["panel-layout__product-link"],onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:n}),s]})]}),(0,r.jsx)("div",{className:A()["panel-layout__price"],children:d}),(0,r.jsx)("div",{className:A()["panel-layout__right"],children:u})]}),p&&(0,r.jsx)(a.Divider,{type:"tertiary"}),(0,r.jsx)("div",{className:A()["panel-layout__second-block"],children:(0,r.jsx)(I,{tabs:t,handleTabClickAction:l})})]})})]})},D=A()["panel-layout__availability"],E=e=>{let{options:t,notSelectedLabel:l}=e;return 0===Object.keys(t).length?null:(0,r.jsx)("div",{className:A()["panel-layout__options"],children:Object.entries(t).map(e=>
1{let[t,a]=e;return(0,r.jsxs)("span",{className:A()["panel-layout__option"],children:[t,":"," ",a||(0,r.jsx)("span",{className:A()["panel-layout__option--unselected"],children:l})]},t)})})},R=e=>{var t,l;return!(null!=(l=null==(t=e.inventory)?void 0:t.isInStock)&&l)};var O=l(79778),M=l(63897),V=l(12866),F=l.n(V);let G=e=>{let{message:t,onClose:l}=e;return(0,r.jsx)("div",{className:F()["product-panel__floating-error"],role:"alert",children:(0,r.jsx)(M.Fc,{message:t,type:"error",variant:"inline",showCloseButton:!0,CustomIcon:c.ErrorSolid,onClose:l})})};var B=l(90725);function U(e){var t,l,n,N,k,C,S,w,P,I,T,A,M,V,U,z,W,Z,H,K,Q,q,Y,J,$,X,ee;let{tabs:et,handleTabClickAction:el}=e,er=(0,f.jL)(),ea=(0,d.c)(),en=(0,a.useMediaQuery)("(min-width: ".concat(o.aSD,")")),ei=(0,i.Bj)(),es=(0,s.vn)(ei),eo=(0,m.G)({mode:"language"}),{quantity:ed,setQuantity:eu}=(0,j.useQuantityContext)(),{addToCart:ec,isLoading:ep}=(0,g.AP)(),em=(0,f.GV)(b.UW),ev=(0,f.GV)(y.qf),[e_,eg]=(0,u.useState)(!1),[ef,eh]=(0,u.useState)(!1),[eb,ey]=(0,u.useState)(!1),[ex,ej]=(0,u.useState)(!1),eN=null==(t=ei.productNode)?void 0:t.entityId,ek=null==(N=ei.productNode)||null==(n=N.variants.edges)||null==(l=n.find(e=>{let{node:{sku:t}}=e;return t===ei.variantSku}))?void 0:l.node.entityId,eC=((e,t)=>{if(1===e.length)return!!e[0]&&R(e[0]);let l=e.find(e=>e.entityId===t);return!!l&&R(l)})(es,Number(ek)),eS=null!=(Q=(0,s.VG)(ei))?Q:"",ew=(0,s.TI)(ei),eP=(0,s.er)(ei),eI=(0,s.D8)(ei,em),eT=(0,s.FG)(ei),eA=(0,s.TN)(ei),eL=!eA&&eI<=0,eD=eC||eL,eE=(0,x.Ke)(null==(C=ei.productNode)||null==(k=C.metafields)?void 0:k.edges),eR=(0,x.by)(null==(w=ei.productNode)||null==(S=w.metafields)?void 0:S.edges),eO=(0,x.Pl)(null!=(q=null==(T=ei.productNode)||null==(I=T.variants)||null==(P=I.edges)?void 0:P.map(e=>e.node))?q:[],null!=(Y=ei.variantSku)?Y:""),eM=(0,x.mj)(null!=(J=null==(V=ei.productNode)||null==(M=V.variants)||null==(A=M.edges)?void 0:A.map(e=>e.node))?J:[],null!=($=ei.variantSku)?$:"","skuStatus"),{isComingSoon:eV}=(0,x.Mh)({productStatus:eE,skuStatus:eM,variantArrivalDate:eO,productArrivalDate:eR}),eF=(0,_.Q)(eN,ek),eG=Math.max(0,eI-eF),eB=null===eT?null:Math.max(0,eT-eF),eU=Math.max(1,null===eB?eG:Math.min(eG,eB)),ez=(0,u.useMemo)(()=>ed+eF>eI,[ed,eF,eI]),eW=(0,u.useMemo)(()=>ex||null!==eT&&ed+eF>eT,[ex,eT,ed,eF]),eZ=(0,u.useCallback)(()=>eg(!1),[]),eH=async()=>{if(eh(!0),ey(!1),ej(!1),eN&&ek){if(eW||ez&&eI>0||eV||eD)return void eg(!0);try{var e,t,l,r,a,n,i,o,d,u,c,m,v,_,g,f;await ec({payload:{productEntityId:eN,variantEntityId:ek,quantity:ed},language:eo});let b=(null==(l=ei.productNode)||null==(t=l.prices)||null==(e=t.basePrice)?void 0:e.value)||0,y=(null==(n=ei.productNode)||null==(a=n.prices)||null==(r=a.salePrice)?void 0:r.value)||0,x=y>0?b-y:0,[j,N,k,C]=(null==(v=ei.productNode)||null==(m=v.categories)||null==(c=m.edges)||null==(u=c[0])||null==(d=u.node)||null==(o=d.breadcrumbs)||null==(i=o.edges)?void 0:i.map(e=>e.node.name))||[];(0,p.Ml)({itemId:(0,s.vZ)(ei)||(null==(_=ei.productNode)?void 0:_.sku)||"",itemName:eS,itemBrand:null==(f=ei.productNode)||null==(g=f.brand)?void 0:g.name,itemCategory:j,itemCategory2:N,itemCategory3:k,itemCategory4:C,...ei.variantSku&&{itemVariant:ei.variantSku},price:y>0?y:b,quantity:ed,...x>0&&{discount:x},...em&&{preferredStoreId:em},...ev.listId&&{itemListId:ev.listId},...ev.listName&&{itemListName:ev.listName},sourcePage:"pdp"}),er((0,h.XL)())}catch(e){(0,O.Q)(e)&&ej(!0),eg(!0),console.error("Failed to add product to cart:",e)}}},eK=null!=(X=null==(W=ei.productNode)||null==(z=W.prices)||null==(U=z.basePrice)?void 0:U.value)?X:null,eQ=null!=(ee=null==(K=ei.productNode)||null==(H=K.prices)||null==(Z=H.salePrice)?void 0:Z.value)?ee:null,eq=(0,s.HC)(ei),eY=(0,s.Ny)(ei),{handleItemTracking:eJ,handleLocalStoreNotification:e$}=(0,v.O)(eN,ek),eX=(0,u.useMemo)(()=>(e=>{let{validation:t,hasAddToCartAttempted:l,isExceedingStock:r,isPurchaseCapped:a,maxPurchaseQuantity:n,maxAvailableQuantity:i,outOfStock:s,translate:o,hasCounterLimitError:d}=e;return t?a&&null!==n?(e=>{let{hasAddToCartAttempted:t,hasCounterLimitError:l}=e;return t&&!l})({hasAddToCartAttempted:l,hasCounterLimitError:d})?o("product.warning.purchaseCapped",{number:n}):null:r&&i>0?o("product.warning.insufficientStock"):s?o("product.warning.outOfStock"):null:null})({validation:e_,hasAddToCartAttempted:ef,isExceedingStock:ez,isPurchaseCapped:eW,maxPurchaseQuantity:eT,maxAvailableQuantity:eI,outOfStock:eD,translate:ea,hasCounterLimitError:eb}),[e_,ef,ez,eW,eT,eI,eD,ea,eb]),e0=eD?{IconLeft:en?c.LetterSolid:c.LetterOutline}:{},e1={size:"sm",...null!==eK&&{regularPrice:eK},...null!==eQ&&{salePrice:eQ}},e6=(e=>{let{outOfStock:t,isComingSoon:l,specialOrder:a,quantity:n,onChangeQuantity:i,onMaximumValueExceeded:s,showCounterError:o,maximumSelectableQuantity:d,isLoading:u,onAddToCart:p,trackButtonIcon:m,handleLocalStoreNotification:v,handleItemTracking:_,translate:g}=e;return!1!==t||l||a?(0,r.jsx)(B.$n,{variant:"secondary",...m,size:"lg",className:F()["product-panel__track-button"],onClick:a?v:_,children:g(a?"product.contactLocalStore.label":"product.trackTheItem.label")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.ph,{value:n,onChange:i,onMaximumValueExceeded:s,className:F()["product-panel__counter"],maximumValue:d,state:o?"error":void 0,validationMessage:"".concat(String(d)," ").concat(g("product.quantity.error"))}),(0,r.jsx)(B.$n,{variant:"primary",size:"lg",IconLeft:c.ShoppingCartSolid,disabled:u,onClick:p,children:g(u?"product.addToCartLoading.label":"product.addToCart.label")})]})})({outOfStock:eD,isComingSoon:eV,specialOrder:eP,quantity:ed,onChangeQuantity:e=>{let t=Number.parseInt(e.target.value,10);!Number.isNaN(t)&&t>=0&&(eh(!1),t>eU?(ey(!0),eg(!0)):(ey(!1),eu(t),eg(!1))),e.preventDefault(),e.stopPropagation()},onMaximumValueExceeded:e=>{let t=Number.parseInt(e.target.value,10);!Number.isNaN(t)&&t>eU&&(eh(!1),ey(!0),eg(!0))},showCounterError:e_&&(eb||ez||eW),maximumSelectableQuantity:eU,isLoading:ep,onAddToCart:eH,trackButtonIcon:e0,handleLocalStoreNotification:e$,handleItemTracking:eJ,translate:ea}),e5=(e=>{let{isUnavailable:t,isComingSoon:l,outOfStock:a,specialOrder:n,translate:i,selectedVariantOptions:s}=e;return t?(0,r.jsx)("span",{className:D,children:i("product.unavailable.label")}):l?(0,r.jsx)("span",{className:D,children:i("product.availability.comingSoon.label")}):a?(0,r.jsx)("span",{className:D,children:i("product.availability.outofstock.label")}):n?(0,r.jsx)("span",{className:D,children:i("productcard.availability.specialOrder.label")}):(0,r.jsx)(E,{options:s,notSelectedLabel:i("product.option.notSelected")})})({isUnavailable:eq,isComingSoon:eV,outOfStock:eD,specialOrder:eP,translate:ea,selectedVariantOptions:ew});return(0,r.jsx)(L,{tabs:et,handleTabClickAction:el,productName:eS,imageSrc:eY,optionsSlot:e5,priceSlot:(0,r.jsx)(a.SalePrice,{...e1}),actionsSlot:eq||eA?null:e6,floatingAlert:eX?(0,r.jsx)(G,{message:eX,onClose:eZ}):null})}var z=l(76762),W=l(98088),Z=l.n(W);function H(e){var t;let{tabs:l,handleTabClickAction:n}=e,o=(0,d.c)(),u=(0,a.usePriceFormatter)(),p=(0,i.Bj)(),{amount:m}=(0,z.f)(),v=null!=(t=(0,s.VG)(p))?t:"",_=(0,s.Ny)(p),g=p.unavailable,f=async()=>{},h=o("giftCard.amountSelector.selectDollarAmount.label"),b=void 0!==m,y=b?u(m):"",x=(0,r.jsx)(E,{options:{[h]:y},notSelectedLabel:o("product.option.notSelected")}),j=b?(0,r.jsx)(a.SalePrice,{regularPrice:Number(m),size:"sm"}):null,N=g?null:(0,r.jsx)(a.Button,{variant:"primary",size:"lg",IconLeft:c.ShoppingCartSolid,className:Z()["gift-card-panel__add-to-cart"],onClick:f,children:o("product.addToCart.label")});return(0,r.jsx)(L,{tabs:l,handleTabClickAction:n,productName:v,imageSrc:_,optionsSlot:x,priceSlot:j,actionsSlot:N})}let K=(e,t)=>{let l="fr"===t?"fr-CA":"en-CA";if("number"==typeof e)return Number.isNaN(e)?String(e):e.toLocaleStr
1ing(l);let r=String(e).trim().replaceAll(/\s/g,"");if(!r||/[a-zA-Z]/.test(r)||!/^-?\d+(?:\.\d*)?$|^-?\.\d+$/.test(r))return String(e);let a=Number.parseFloat(r);return Number.isNaN(a)||!Number.isFinite(a)?String(e):a.toLocaleString(l)};var Q=l(25150),q=l.n(Q),Y=l(87832),J=l(12144),$=l(41008),X=l(2968),ee=l.n(X);let et=e=>{let{sharedApplications:t,sharedFeatures:l,description:n,tileData:u=[]}=e,p=(0,d.c)(),m=(0,i.Bj)(),v=(0,s.TN)(m),_=(0,s.vn)(m),g=u.filter(e=>"link"===e.type),f=u.filter(e=>"pdf"===e.type),h=e=>{try{return JSON.parse(e)}catch(e){return null}},b={replace:e=>{if(e instanceof Y.Hg&&"a"===e.name){let{href:t,...l}=e.attribs;return(null==t?void 0:t.startsWith("http"))||(null==t?void 0:t.startsWith("//"))?(0,r.jsx)(a.Link,{href:t,openInNewTab:!0,rel:"noopener noreferrer",...l,children:(0,Y.zd)(e.children,b)}):(0,r.jsx)(a.Link,{href:t||"#",...l,children:(0,Y.zd)(e.children,b)})}}},y=e=>{let t=(0,$.q)().sanitize(e,{ALLOWED_TAGS:["ul","li","p","br","strong","em","b","i","a"],ALLOWED_ATTR:["href","target","rel"]});return(0,Y.Ay)(t,b)};return(0,r.jsx)("section",{className:ee()["product-details-section"],children:(0,r.jsxs)("div",{className:ee()["product-details-section__info"],children:[(0,r.jsx)("div",{className:ee()["product-details-section__info--description"],children:t||l||n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:q()("body-l-bold",ee()["product-details-section__info--description-text"]),children:n?y(n):null}),l&&(0,r.jsxs)("div",{className:ee()["product-details-section__info--features"],children:[(0,r.jsx)("h4",{className:"heading-level-4-special",children:p("product.feature.label")}),(()=>{if(!l)return null;let e=h(l);return Array.isArray(e)?(0,r.jsx)("ul",{children:e.map((e,t)=>(0,r.jsx)("li",{children:e},t))}):l.includes("<ul>")||l.includes("<li>")?(0,r.jsx)("div",{children:y(l)}):(0,r.jsx)("ul",{children:(0,r.jsx)("li",{children:y(l)})})})()]}),t&&(0,r.jsxs)("div",{className:ee()["product-details-section__info--applications"],children:[(0,r.jsx)("h4",{className:"heading-level-4-special",children:p("product.application.label")}),(()=>{if(!t)return null;let e=h(t);return Array.isArray(e)?(0,r.jsx)("ul",{children:e.map((e,t)=>(0,r.jsx)("li",{children:e},t))}):t.includes("<ul>")||t.includes("<li>")?(0,r.jsx)("div",{children:y(t)}):(0,r.jsx)("ul",{children:(0,r.jsx)("li",{children:y(t)})})})()]})]}):(0,r.jsx)(a.Alert,{type:"info",variant:"inline",message:p("pdp.tabs.productDetails.noAvailable.label")})}),(0,r.jsxs)("div",{className:ee()["product-details-section__resources"],children:[f.length>0?(0,r.jsxs)("div",{className:ee()["product-details-section__resources--pdf"],children:[(0,r.jsx)("h4",{className:"heading-level-4-special",children:p("product.downloadAndManual.label")}),(0,r.jsx)("div",{className:ee()["product-details-section__resources-tiles"],children:f.map((e,t)=>(0,r.jsx)(a.Tile,{type:"pdf",content:e.content,href:e.href?"".concat(J.K,"/").concat(e.href):"#",openInNewTab:e.openInNewTab},t))})]}):v&&_.length>1&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"heading-level-4-special",children:p("pdp.pdf.download.guide.label")}),(0,r.jsxs)("div",{className:ee()["product-details-section__resources--empty-body"],children:[(0,r.jsx)("div",{children:(0,r.jsx)(c.ListSheetOutline,{color:o.ZRI,width:o.Kz1,height:o.Kz1})}),(0,r.jsxs)("div",{className:ee()["product-details-section__resources--empty-text"],children:[(0,r.jsx)("p",{className:q()("body-l-regular",ee()["product-details-section__resources--empty-message"]),children:p("pdp.pdf.general.guides.label")}),(0,r.jsx)("p",{className:q()("body-l-regular",ee()["product-details-section__resources--empty-tip"]),children:p("pdp.pdf.select.guides.label")})]})]})]}),g.length>0&&(0,r.jsxs)("div",{className:ee()["product-details-section__resources--link"],children:[(0,r.jsx)("h4",{className:"heading-level-4-special",children:p("product.link.label")}),(0,r.jsx)("div",{className:ee()["product-details-section__resources-tiles"],children:g.map((e,t)=>(0,r.jsx)(a.Tile,{type:"link",content:e.content,href:e.href,openInNewTab:e.openInNewTab},t))})]})]})]})})};var el=l(14878),er=l(63771),ea=l(13185),en=l(86352),ei=l(1488),es=l(67679),eo=l(71652);let ed=e=>{let{isInStock:t,isBaseProduct:l,productEntityId:a,variantEntityId:n,trackingData:i}=e,s=(0,es.z)(ei.K0),d=(0,eo.O)(ei.K0);return t||l?(0,r.jsx)(s,{Icon:()=>(0,r.jsx)(c.ShoppingCartSolid,{color:o.FYT}),size:"lg",productEntityId:a,variantEntityId:n,isAvailable:t,isBaseProduct:!!l,"aria-label":"Add to Cart",addToCartLabel:"",addToCartLoadingLabel:"",trackingData:i}):(0,r.jsx)(d,{productEntityId:a,variantEntityId:n,size:"lg",addToTrackLabel:"",Icon:()=>(0,r.jsx)(c.LetterOutline,{color:o.FYT})})},eu=e=>{var t,l,n,i,s,o,d,u,c,v,_,g,f,h,b,y,x,j,N,k,C,S,w,P,I,T,A,L,D,E,R,O,M,V;let{productNode:F,showReview:G=!1,openInNewTab:B=!1,saveToWishListButton:U,variant:z="default",className:W,selectItemTrackingContext:Z,addToCartTrackingContext:H,...K}=e,Q=(0,m.G)({mode:"language"}),q=null!=(C=null!=(k=(0,er.$P)("externalProductNumber",F))?k:(0,er.$P)("product_external_id",F))?C:"",Y=(null==F||null==(t=F.sku)?void 0:t.startsWith("PA"))&&Number(null==F||null==(n=F.variants)||null==(l=n.edges)?void 0:l.length)>1,J=(null==F||null==(s=F.metafields.edges)||null==(i=s.find(e=>{let{node:{key:t}}=e;return t==="displayName_".concat(Q)}))?void 0:i.node.value)||(null==F?void 0:F.name)||"",$=null==F?void 0:F.defaultImage,X=(0,r.jsx)(ea.c,{isBaseProduct:Y,prices:null==F?void 0:F.prices}),ee=("en"===Q?null!=(S=null==F?void 0:F.path)?S:"":null!=(P=null!=(w=(0,er.$P)("slug_fr",F))?w:null==F?void 0:F.path)?P:"").replace(/(?:^\/+)|(?:\/+$)/g,""),et=el.b.PDP.set(ee,q,null!=(I=null==F?void 0:F.sku)?I:""),ei=null==F||null==(d=F.variants.edges)||null==(o=d.find(e=>{let{node:{sku:t}}=e;return t===(null==F?void 0:F.sku)}))?void 0:o.node.entityId,es=null==F?void 0:F.sku,eo=null!=(T=null==F||null==(g=F.variants)||null==(_=g.edges)||null==(v=_[0])||null==(c=v.n
1ode)||null==(u=c.inventory)?void 0:u.isInStock)&&T;Y||(null==F||null==(h=F.variants)||null==(f=h.edges)?void 0:f.length)!==1||(ei=null!=(R=null==F||null==(E=F.variants)||null==(D=E.edges)||null==(L=D[0])||null==(A=L.node)?void 0:A.entityId)?R:ei);let eu=null!=(M=null!=(O=null==F||null==(y=F.prices)||null==(b=y.salePrice)?void 0:b.value)?O:null==F||null==(j=F.prices)||null==(x=j.price)?void 0:x.value)?M:0,ec=H?{itemId:null!=es?es:"",itemName:J,price:eu,quantity:1,...H}:null;return(0,r.jsx)(a.EngagementProductCard,{imageSrc:null!=(V=null==$?void 0:$.url)?V:"/images/default-img.svg",imageAlt:null==$?void 0:$.altText,productName:J,productLink:et,openInNewTab:B,priceDisplay:X,...(null==F||null==(N=F.sku)?void 0:N.startsWith("PA"))===!1?{SKU:"SKU: ".concat(es)}:{},review:G&&(0,r.jsx)(en.A,{PALProductId:q}),actionButton:(0,r.jsx)(ed,{isInStock:eo,isBaseProduct:Y,variantEntityId:ei,productEntityId:null==F?void 0:F.entityId,...ec&&{trackingData:ec}}),saveToWishListButton:U,variant:z,isOutOfStock:!eo,className:W,onProductClick:()=>{var e,t,l,r,a,n;if(!Z)return;let i=null!=(n=null!=(a=null==F||null==(t=F.prices)||null==(e=t.salePrice)?void 0:e.value)?a:null==F||null==(r=F.prices)||null==(l=r.price)?void 0:l.value)?n:0;(0,p.Vd)({productId:null!=q?q:"",productName:J,price:i,...Z})},...K})};var ec=l(53044),ep=l.n(ec);let em=e=>{let{data:t,type:l}=e,[n,i]=(0,u.useState)(!1),s=(0,d.c)(),o=(0,f.GV)(b.UW),p=n?t:t.slice(0,6),m="sparepart"===l?"pdp-parts":"pdp-accessories",v="sparepart"===l?"PDP Parts":"PDP Accessories";return(0,r.jsxs)("div",{className:ep().parts,children:[(0,r.jsxs)("div",{className:ep().parts__container,children:["sparepart"===l.toLowerCase()&&0===p.length&&(0,r.jsx)(a.Alert,{message:s.rich("pdp.tabs.parts.alert.label",{a:e=>(0,r.jsx)(a.Link,{className:ep().parts__link,href:"object"==typeof e?"":"tel:".concat(e),openInNewTab:!0,children:e})}),type:"info",variant:"inline"}),p.map((e,t)=>{var a,n,i;let s={...(null==(a=e.productNode)?void 0:a.sku)&&{sku:e.productNode.sku},discount:null,promotionName:null,promotionId:null,brand:null,categoryHierarchy:null,positionInList:t+1,preferredStore:o||null,appliedFilters:null,appliedSort:null,sourceId:m,sourceName:v},d={...(null==(n=e.productNode)?void 0:n.sku)&&{itemVariant:e.productNode.sku},index:t+1,...o&&{preferredStoreId:o},itemListId:m,itemListName:v,sourcePage:"sparepart"===l?"pdp-parts":"pdp-accessories"};return(0,r.jsx)("div",{className:ep().parts__card,children:(0,r.jsx)(eu,{showReview:"accessories"===l.toLowerCase(),productNode:e.productNode,selectItemTrackingContext:s,addToCartTrackingContext:d})},null==(i=e.productNode)?void 0:i.sku)})]}),t.length>6&&!n&&(0,r.jsx)("div",{className:ep()["parts__load-more"],children:(0,r.jsx)(a.LoadMore,{content:"".concat(s("pdp.noReviews.load.all.label")," ").concat(s("pdp.tabs.".concat("accessories"===l?"accessories":"parts",".label"))),onClick:()=>i(!0),IconLeft:c.Loading,className:ep()["parts__load-more-button"]})})]})};var ev=l(68599),e_=l.n(ev);function eg(e){let{generalInfoData:t=[],detailsData:l=[]}=e,n=(0,d.c)(),u=(0,i.Bj)(),c=(0,s.TN)(u),p=(0,s.VG)(u),m="".concat(p," - ").concat(n("pdp.tabs.specifications.generalInfo.label")),v="".concat(p," - ").concat(n("pdp.tabs.specifications.details.label")),_=(0,a.useMediaQuery)("(max-width: ".concat(o.AXY,")"));return(0,r.jsxs)("div",{className:e_()["specifications-table"],children:[t.length||l.length?(0,r.jsxs)("div",{children:[t&&t.length?(0,r.jsx)(a.Table,{data:t,columns:[{header:n("pdp.tabs.specifications.generalInfo.label"),field:"label",isPrimary:!0,isRowHeader:!0,width:_?"40%":"30%"},{header:"",width:_?"60%":"70%",field:"value"}],caption:m,className:q()(e_()["specifications-table__table-content"],e_()["specifications-table__mb-32"]),tableHeaderClassName:e_()["specifications-table__header-row"],tableBodyRowClassName:e_()["specifications-table__body-row-wrapper"]}):"",l&&l.length>0&&(0,r.jsx)(a.Table,{data:l,columns:[{header:n("pdp.tabs.specifications.details.label"),field:"label",isPrimary:!0,isRowHeader:!0,width:_?"40%":"30%"},{header:"",field:"value",width:_?"60%":"70%"}],caption:v,className:e_()["specifications-table__table-content"],tableHeaderClassName:e_()["specifications-table__header-row"],tableBodyRowClassName:e_()["specifications-table__body-row-wrapper"]}),(!l||0===l.length)&&c&&(0,r.jsx)("div",{className:e_()["specifications-table__mb-32"],children:(0,r.jsx)(a.Alert,{type:"info",variant:"inline",message:(0,r.jsx)("span",{children:n("pdp.tabs.specifications.selectVariant.label")})})})]}):(0,r.jsx)("div",{className:e_()["specifications-table__mb-32"],children:(0,r.jsx)(a.Alert,{type:"info",variant:"inline",message:(0,r.jsx)("span",{children:n("pdp.tabs.specifications.noAvailable.label")})})}),(0,r.jsx)("div",{})]})}let ef=e=>{let{palProductId:t}=e;return t&&""!==t.trim()?(0,r.jsx)("div",{"data-bv-show":"questions","data-bv-product-id":t}):null};ef.displayName="QnaComponent";let eh=(0,u.memo)(ef),eb=e=>{let{palProductId:t}=e;return t&&""!==t.trim()?(0,r.jsx)("div",{"data-bv-show":"reviews","data-bv-product-id":t,id:"reviews-section"}):null};eb.displayName="ReviewsComponent";let ey=(0,u.memo)(eb),ex=()=>(0,r.jsx)("div",{children:"Product Details Content"});var ej=l(86507),eN=l.n(ej);let ek=e=>{var t,l,n,c,p;let{tabs:v=[],relatedProductsData:_,isGiftcard:g}=e,f=(0,d.c)(),h=(0,a.useMediaQuery)("(max-width: ".concat(o.aSD,")")),b=(0,i.Bj)(),y=null!=(t=(0,s.vZ)(b))?t:"",{reviewData:x}=(0,C.O8)(y),j=(0,u.useRef)({}),N=e=>{let t=j.current[e];if(!t)return;let l=t.getBoundingClientRect().top+window.scrollY-250;window.scrollTo({top:l,behavior:"smooth"})},k=null!=(l=(0,s.pW)(b))?l:"",w=null!=(n=(0,s.fH)(b))?n:"",P=null!=(c=(0,s.fY)(b))?c:"",T=(0,s.bG)(b)||null,A=null!=(p=(0,s.GN)(b))?p:"",L=(0,s.WL)(b),D=(0,s.fn)(b),E=(0,s.vn)(b),{getTileData:R,getDetailsData:O,getGeneralInfoData:M}=(e=>{let{tileDataRaw:t,productDetailsDataRaw:l,productGeneralInfoRaw:r,variant:a}=e,n=(0,d.c)(),o=(0,m.G)({mode:"language"}),c=(0,i.Bj)(),p=(0,s.TN)(c),v=(0,u.useCallback)(()=>
1{if(!t)return[];try{let e=JSON.parse(t.webLinks||"[]"),l=JSON.parse(t.manualPdfs||"[]"),r=Array.isArray(l)?l.filter(e=>e&&"string"==typeof e.filename).map(e=>({type:"pdf",content:e.description||e.filename,href:e.filename,openInNewTab:!0})):[],a=Array.isArray(e)?e.flatMap(e=>Object.values(e||{}).filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>({type:"link",content:(e=>{try{let{hostname:t}=new URL(e);return t.startsWith("www.")?t:"www.".concat(t)}catch(e){return""}})(e),href:e,openInNewTab:!0}))):[];return[...r,...a]}catch(e){return console.error("Failed to parse tile data:",{error:e instanceof Error?e.message:"Unknown error",tileDataRaw:t}),[]}},[t]),_=(0,u.useCallback)(()=>{if(!l&&!r)return[];try{let e=JSON.parse(l||"[]"),t=JSON.parse(r||"[]").slice(1),a=[];if(Array.isArray(e)?a=[...e,...Array.isArray(t)?t:[]]:Array.isArray(t)&&(a=t),!Array.isArray(a))return[];return a.filter(e=>e&&e.label&&e.value).map(e=>({label:String(e.label),value:e.label===n("product.forUseWith.label")?e.value:K(e.value,o)}))}catch(e){return console.error("Failed to parse product details data:",{error:e instanceof Error?e.message:"Unknown error",productDetailsDataRaw:l}),[]}},[l,r,o]),g=(0,u.useCallback)(()=>{let e=[];r||(e=[]);let t=null===a?{dimensions:[],weight:""}:["depth","width","height","weight"].reduce((e,t)=>{let l=a[t];if(!l)return e;if(["depth","width","height"].includes(t)&&"number"==typeof l.value){var r;null==(r=e.dimensions)||r.push("".concat(K(null==l?void 0:l.value,o)).concat((null==l?void 0:l.unit)?null==l?void 0:l.unit:""," "))}return"weight"===t&&"number"==typeof(null==l?void 0:l.value)&&(e.weight="".concat(K(null==l?void 0:l.value,o)," ").concat((null==l?void 0:l.unit)?null==l?void 0:l.unit:"")),e},{dimensions:[],weight:""});try{try{e=JSON.parse(null!=r?r:"[]").slice(0,1,1)}catch(t){e=[]}let l=["dimensions","weight"].map(e=>({label:n("product.general_info.".concat(e,".label")),value:Array.isArray(t[e])?t[e].join("x "):t[e]}));return[...e,...p?[]:[{label:n("product.sku.label"),value:null==a?void 0:a.sku}],...l].filter(e=>e&&e.label&&e.value).map(e=>({label:String(e.label),value:e.label===n("product.sku.label")?e.value:K(e.value,o)}))}catch(e){return console.error("Failed to parse general info data:",{error:e instanceof Error?e.message:"Unknown error",productGeneralInfoRaw:r}),[]}},[r,a,o,p,n]);return{getTileData:v,getDetailsData:_,getGeneralInfoData:g}})({tileDataRaw:T,productDetailsDataRaw:L||null,productGeneralInfoRaw:A,variant:(0,u.useMemo)(()=>1===E.length?E[0]:E.find(e=>e.sku===D),[E,D])||null}),V=(e=>{let{sharedApplications:t,sharedFeatures:l,description:a,isGiftcard:n,getTileData:i,getDetailsData:s,getGeneralInfoData:o,palProductId:d,relatedProductsData:c}=e,p=(0,u.useMemo)(()=>{let e=()=>(0,r.jsx)(et,{sharedApplications:t,sharedFeatures:l,description:a,tileData:n?[]:i()});return e.displayName="DetailsTabContent",e},[t,l,a,n,i]),m=(0,u.useMemo)(()=>{let e=()=>(0,r.jsx)(eg,{detailsData:s(),generalInfoData:o()});return e.displayName="SpecificationsContent",e},[s,o]),v=(0,u.useMemo)(()=>{let e=()=>(0,r.jsx)(ey,{palProductId:d});return e.displayName="ReviewsContent",e},[d]),_=(0,u.useMemo)(()=>{let e=()=>(0,r.jsx)(em,{data:Array.from((null==c?void 0:c.sparepart.values())||[]),type:"sparepart"});return e.displayName="PartsContent",e},[null==c?void 0:c.sparepart]),g=(0,u.useMemo)(()=>{let e=()=>(0,r.jsx)(eh,{palProductId:d});return e.displayName="QnaContent",e},[d]),f=(0,u.useMemo)(()=>{let e=()=>(0,r.jsx)(em,{data:Array.from((null==c?void 0:c.accessories.values())||[]),type:"accessories"});return e.displayName="AccessoriesContent",e},[null==c?void 0:c.accessories]);return(0,u.useMemo)(()=>({details:p,specifications:m,reviews:v,parts:_,qna:g,accessories:f,default:ex}),[p,m,v,_,g,f])})({sharedApplications:k,sharedFeatures:w,description:P,isGiftcard:g,getTileData:R,getDetailsData:O,getGeneralInfoData:M,palProductId:y,relatedProductsData:_}),F=(0,u.useMemo)(()=>v.map(e=>{let t=V[e]||V.default,{text:l,extra:a}=S({key:e,baseText:f("pdp.tabs.".concat(e,".label")),reviewData:x});return{key:e,title:(0,r.jsxs)("span",{className:eN()["product-tabs__title"],children:[l,a&&(0,r.jsx)("span",{className:eN()["product-tabs__title-extra"],children:a})]}),Content:t}}),[v,V,f,x]);return(0,r.jsxs)("div",{className:eN()["product-tabs"],children:[g?(0,r.jsx)(H,{tabs:v,handleTabClickAction:N}):(0,r.jsx)(U,{tabs:v,handleTabClickAction:N}),!h&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:eN()["product-tabs__wrapper"],children:(0,r.jsx)(a.FluidContainer,{children:(0,r.jsx)(I,{tabs:v,handleTabClickAction:N})})}),(0,r.jsx)("div",{children:(0,r.jsx)(a.Divider,{type:"tertiary",orientation:"horizontal",className:eN()["product-tabs__divider"]})})]}),(0,r.jsx)(a.FluidContainer,{children:(0,r.jsx)("div",{className:eN()["product-tabs__content"],
1children:F.map(e=>{let{key:t,title:l,Content:n}=e;return h?(0,r.jsx)("div",{"data-section":t,children:(0,r.jsx)(a.Accordion,{title:(0,r.jsx)("h3",{className:"heading-level-4",children:l}),isDefaultExpanded:null===t,className:eN()["product-tabs__accordion"],children:(0,r.jsx)(n,{})})},t):(0,r.jsxs)("div",{"data-section":t,ref:e=>{j.current[t]=e},className:eN()["product-tabs__desktop-content"],children:[(0,r.jsx)("h3",{className:"".concat(eN()["product-tabs__title-margin"]," heading-level-3"),children:l}),(0,r.jsx)(n,{})]},t)})})})]})},eC=e=>{let{tabs:t=[],isGiftcard:l,enrichedRelatedProducts:a}=e,n={sparepart:new Map,accessories:new Map},o=(0,i.Bj)(),d=null!=a?a:(0,s._b)(o),u=(0,s.Sz)(o);try{let e=JSON.parse(u||"[]");d&&d.forEach(t=>{let{node:l}=t;e.filter(e=>e.product_id===l.entityId).forEach(e=>{e.type&&n[e.type.toLowerCase()]&&n[e.type.toLowerCase()].set(l.sku,{productNode:l})})})}catch(e){console.error("Error processing related products:",e)}let c=t.filter(e=>"accessories"!==e||n.accessories.size>0);return(0,r.jsx)(ek,{tabs:c,relatedProductsData:n,isGiftcard:l})},eS=(0,n.default)(()=>Promise.all([l.e(7555),l.e(4909),l.e(5667),l.e(6799),l.e(9375),l.e(8497),l.e(9319),l.e(231)]).then(l.bind(l,9556)).then(e=>e.SimilarProductCarousel),{loadableGenerated:{webpack:()=>[9556]},ssr:!1}),ew=(0,n.default)(()=>Promise.all([l.e(7555),l.e(5667),l.e(6799),l.e(9375),l.e(8497),l.e(9319),l.e(1500)]).then(l.bind(l,7413)).then(e=>e.RecentProductsCarousel),{loadableGenerated:{webpack:()=>[7413]},ssr:!1}),eP=e=>{let{enrichRelatedProducts:t,exploreMoreBannerProps:l,isGiftcard:n,productId:i,recentProductCarouselProps:s,similarProductCarouselProps:o,tabs:d}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eC,{enrichedRelatedProducts:t,isGiftcard:n,tabs:d}),l&&(0,r.jsx)(a.InlineBanner,{...l}),o&&(0,r.jsx)(eS,{productId:i,similarProductCarouselProps:o}),s&&(0,r.jsx)(ew,{productId:i,recentProductCarouselProps:s})]})}},98088:e=>{e.exports={"gift-card-panel__add-to-cart":"style_gift-card-panel__add-to-cart__HIDRR"}}},e=>{e.O(0,[9646,2301,7555,3917,9664,1376,6056,9966,9773,1058,4737,3631,5308,5140,6531,8736,1612,9967,3365,8992,587,18,7358],()=>e(e.s=89262)),_N_E=e.O()}]);
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.