PageSourceSearch

https://www.princessauto.com/_next/static/chunks/app/%5Blocale%5D/…/%5B...slug%5D/page-3627adba40564aef.js

js princessauto.com collected 2026-09-25 18:53:15 UTC 108,828 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[867],{1488:(e,t,l)=>{"use strict";l.d(t,{K0:()=>a.IconButton});var a=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:()=>a});let a=e=>{var t,l,a;let r=null==e||null==(t=e.metafields)?void 0:t.edges;if(!(null==r?void 0:r.length))return!0;let n=r.find(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.key)==="showAisleNumber"});return"false"!==(null==n||null==(a=n.node)||null==(l=a.value)?void 0:l.trim().toLowerCase())}},9601:(e,t,l)=>{"use strict";l.d(t,{u:()=>d});var a=l(54568),r=l(10790),n=l(63897),i=l(66056),s=l(79222),o=l.n(s);let d=()=>{let e=(0,i.c3)();return(0,a.jsx)(n.Fc,{type:"info",variant:"inline",CustomIcon:r.WarrantySolid,message:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"body-s-bold",children:e.rich("royalServicePromise.title",{royal:e=>(0,a.jsx)("span",{className:o()["royal-service-bold"],children:e})})}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"body-s-regular",children:e("royalServicePromise.description")})]})})}},11716:(e,t,l)=>{"use strict";l.d(t,{O:()=>d});var a=l(14878),r=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,r.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(a.b.STORE_DETAILS.set(c.toString()));d((0,s.JK)())}}}},12144:(e,t,l)=>{"use strict";l.d(t,{K:()=>r,f:()=>a}),l(40459);let a={GIFTCARD_SKU:{get:()=>"9999991"},GIFTCARD_PRODUCT_ID:{get:()=>"giftcard"}},r="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:()=>a});let a={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 a=l(54568),r=l(7620);let n=(0,r.createContext)(null),i=()=>{let e=(0,r.useContext)(n);if(!e)throw Error("useProduct must be used within a ProductProvider");return e},s=(0,r.createContext)(null),o=(0,r.createContext)(null),d=e=>{let{children:t}=e,[l,n]=(0,r.useState)(null),i=(0,r.useCallback)(e=>n(e),[]);return(0,a.jsx)(s.Provider,{value:i,children:(0,a.jsx)(o.Provider,{value:l,children:t})})},u=()=>(0,r.useContext)(o),c=e=>{let{value:t,children:l}=e,i=(0,r.useContext)(s),o=(0,r.useMemo)(()=>t,[t.productNode,t.variantSku,t.productLocale,t.unavailable,t.enrichedRelatedProducts,t.loading,t.setLoading]);return(0,r.useEffect)(()=>(null==i||i(o),()=>null==i?void 0:i(null)),[o,i]),(0,a.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:()=>r,W:()=>n});var a=l(24407);let r={min:1,max:500},n=(e,t)=>{let l=e("giftCard.amountSelector.valueRangeInfo.label",{min:r.min,max:r.max}),n=e("giftCard.recipientForm.validation.message.required.field");return a.z.object({amount:t?a.z.union([a.z.number({message:l}),a.z.undefined()]).refine(e=>void 0!==e,{message:l}).refine(e=>e>=r.min&&e<=r.max,{message:l}):a.z.number().optional(),senderName:a.z.string().min(1,n),recipientName:a.z.string().min(1,n),recipientEmail:a.z.string().min(1,n).email(e("giftCard.recipientForm.validation.message.invali
1dEmail")),message:a.z.string().optional(),scheduleForLater:a.z.boolean().optional(),scheduledDate:a.z.date().optional(),scheduledTime:a.z.string().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,a,r,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 _=null!=(a=null==(l=window)?void 0:l.Date)?a:Date;return new _(null!=(r=null==s?void 0:s.getFullYear())?r: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
1)<new _(o.getTime()+60*d*1e3)})(e.scheduledTime,{selectedDate:e.scheduledDate,maxAdvanceMinutes:60}),{message:e("giftCard.recipientForm.validation.message.invalidDate.label"),path:["scheduledTime"]})}},25150:(e,t)=>{var l;!function(){"use strict";var a={}.hasOwnProperty;function r(){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 r.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)a.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?(r.default=r,e.exports=r):void 0===(l=(function(){return r}).apply(t,[]))||(e.exports=l)}()},26265:(e,t,l)=>{"use strict";l.d(t,{hb:()=>s});var a=l(54568),r=l(97066);let n=(e,t)=>e.toLocaleDateString("en-US",{timeZone:t,weekday:"long"}).toLowerCase(),i=(e,t)=>{var l,a;let r=((e,t)=>{let l=e.toLocaleDateString("en-US",{timeZone:t,year:"numeric"}),a=e.toLocaleDateString("en-US",{timeZone:t,month:"2-digit"}),r=e.toLocaleDateString("en-US",{timeZone:t,day:"2-digit"});return"".concat(l,"-").concat(a,"-").concat(r)})(t,e.timeZone||"UTC");return null!=(a=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)===r&&(!e.open||e.opening===e.closing)))&&a},s=e=>{let t=(0,r.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 r=n(l,s),u=e.operatingHours[r];if(u){var o,d;let[r=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=r-5;if(p>m&&p<24){let r=new Date(l.getTime()+864e5),o=n(r,s),d=e.operatingHours&&e.operatingHours[o];if((null==d?void 0:d.open)&&!i(e,r)){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,a.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,a.jsx)("strong",{children:e}),time:e})}else if(p<=m&&p>c)return t.rich("ready_in_hours",{strong:e=>(0,a.jsx)("strong",{children:e}),hours:4})}}let u=((e,t)=>{let l=e.timeZone||"UTC";for(let a=1;a<=30;a++){let r=new Date(t.getTime()+864e5*a),s=n(r,l),o=e.operatingHours&&e.operatingHours[s];if(!(!(null==o?void 0:o.open)||i(e,r)))return{time:new Date("1970-01-01T".concat(o.opening)).toLocaleTimeString("en-US",{hour:"numeric",hour12:!0}),daysAway:a,dayName:s.charAt(0).toUpperCase()+s.slice(1)}}return null})(e,l);return u?1===u.daysAway?t.rich("ready_at",{strong:e=>(0,a.jsx)("strong",{children:e}),time:u.time}):t.rich("ready_at_day",{strong:e=>(0,a.jsx)("strong",{children:e}),time:u.time,day:u.dayName}):null}},26767:(e,t,l)=>{"use strict";l.d(t,{DeferredProductDetailsPageSections:()=>eP});var a=l(54568),r=l(83985),n=l(96442),i=l(16551),s=l(87812),o=l(72276),d=l(97066),u=l(7620),c=l(10790),p=l(47266),m=l(88180),_=l(11716),v=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:r,className:n}=e,i=l,s=null;if("reviews"===t&&r){let e=(0,C.$B)(r),t=(null==e?void 0:e.TotalReviewCount)||0,l=(null==e?void 0:e.AverageOverallRating)||0;t&&(i+=" (".concat(t,")"),s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.StarSolid,{className:n})," ",l.toPrecision(2)]}))}if("qna"===t&&r){let e=(0,C.tp)(r),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,r=(0,d.c)(),n=(0,i.Bj)(),o=(0,s.vZ)(n),{reviewData:u}=(0,C.O8)(o);return(0,a.jsx)("div",{className:P()["tab-links"],children:t.map(e=>{let{text:t,extra:n}=S({key:e,baseText:r("pdp.tabs.".concat(e,".label")),reviewData:u,className:P()["tab-links__star-icon"]});return(0,a.jsxs)(k.$n,{variant:"text",onClick:()=>l(e),className:P()["tab-links__tab"],children:[t,n]},e)})})};var T=l(47347),L=l.n(T);let A=e=>{let{tabs:t,handleTabClickAction:l,productLink:n,productName:i,imageSrc:s,optionsSlot:d,priceSlot:u,actionsSlot:c,floatingAlert:p}=e,m=(0,r.useMediaQuery)("(min-width: ".concat(o.aSD,")"));return(0,a.jsxs)(a.Fragment,{children:[p,(0,a.jsx)(r.StickyPanel,{className:L()["panel-layout__sticky"],children:(0,a.jsxs)("div",{className:L()["panel-layout"],children:[(0,a.jsxs)("div",{className:L()["panel-layout__first-block"],children:[(0,a.jsxs)("div",{className:L()["panel-layout__left"],children:[m&&(0,a.jsx)(r.Link,{href:n,"aria-label":i,className:L()["panel-layout__image-link"],children:(0,a.jsx)(N.default,{src:s,alt:"".concat(i," image"),width:72,height:72,className:L()["panel-layout__image"]})}),(0,a.jsxs)("div",{className:L()["panel-layout__summary"],children:[(0,a.jsx)(r.Link,{href:n,weight:"bold",className:L()["panel-layout__product-link"],children:i}),d]})]}),(0,a.jsx)("div",{className:L()["panel-layout__price"],children:u}),(0,a.jsx)("div",{className:L()["panel-layout__right"],children:c})]}
1),m&&(0,a.jsx)(r.Divider,{type:"tertiary"}),(0,a.jsx)("div",{className:L()["panel-layout__second-block"],children:(0,a.jsx)(I,{tabs:t,handleTabClickAction:l})})]})})]})},D=L()["panel-layout__availability"],E=e=>{let{options:t,notSelectedLabel:l}=e;return 0===Object.keys(t).length?null:(0,a.jsx)("div",{className:L()["panel-layout__options"],children:Object.entries(t).map(e=>{let[t,r]=e;return(0,a.jsxs)("span",{className:L()["panel-layout__option"],children:[t,":"," ",r||(0,a.jsx)("span",{className:L()["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 M=l(79778),O=l(63897),F=l(12866),V=l.n(F);let B=e=>{let{message:t,onClose:l}=e;return(0,a.jsx)("div",{className:V()["product-panel__floating-error"],role:"alert",children:(0,a.jsx)(O.Fc,{message:t,type:"error",variant:"inline",showCloseButton:!0,CustomIcon:c.ErrorSolid,onClose:l})})};var G=l(90725);function z(e){var t,l,n,N,k,C,S,w,P,I,T,L,O,F,z,U,W,H,Z,K,Q,q,J,$,Y,X,ee;let{tabs:et,handleTabClickAction:el}=e,ea=(0,f.jL)(),er=(0,d.c)(),en=(0,r.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),e_=(0,f.GV)(y.qf),[ev,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.ZK)(ei)||"#",eP=(0,s.TI)(ei),eI=(0,s.er)(ei),eT=(0,s.D8)(e
1i,em),eL=(0,s.FG)(ei),eA=(0,s.TN)(ei),eD=!eA&&eT<=0,eE=eC||eD,eR=(0,x.Ke)(null==(C=ei.productNode)||null==(k=C.metafields)?void 0:k.edges),eM=(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!=(J=ei.variantSku)?J:""),eF=(0,x.mj)(null!=($=null==(F=ei.productNode)||null==(O=F.variants)||null==(L=O.edges)?void 0:L.map(e=>e.node))?$:[],null!=(Y=ei.variantSku)?Y:"","skuStatus"),{isComingSoon:eV}=(0,x.Mh)({productStatus:eR,skuStatus:eF,variantArrivalDate:eO,productArrivalDate:eM}),eB=(0,v.Q)(eN,ek),eG=Math.max(0,eT-eB),ez=null===eL?null:Math.max(0,eL-eB),eU=Math.max(1,null===ez?eG:Math.min(eG,ez)),eW=(0,u.useMemo)(()=>ed+eB>eT,[ed,eB,eT]),eH=(0,u.useMemo)(()=>ex||null!==eL&&ed+eB>eL,[ex,eL,ed,eB]),eZ=(0,u.useCallback)(()=>eg(!1),[]),eK=async()=>{if(eh(!0),ey(!1),ej(!1),eN&&ek){if(eH||eW&&eT>0||eV||eE)return void eg(!0);try{var e,t,l,a,r,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==(r=n.prices)||null==(a=r.salePrice)?void 0:a.value)||0,x=y>0?b-y:0,[j,N,k,C]=(null==(_=ei.productNode)||null==(m=_.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==(v=ei.productNode)?void 0:v.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},...e_.listId&&{itemListId:e_.listId},...e_.listName&&{itemListName:e_.listName},sourcePage:"pdp"}),ea((0,h.XL)())}catch(e){(0,M.Q)(e)&&ej(!0),eg(!0),console.error("Failed to add product to cart:",e)}}},eQ=null!=(X=null==(W=ei.productNode)||null==(U=W.prices)||null==(z=U.basePrice)?void 0:z.value)?X:null,eq=null!=(ee=null==(K=ei.productNode)||null==(Z=K.prices)||null==(H=Z.salePrice)?void 0:H.value)?ee:null,eJ=(0,s.HC)(ei),e$=(0,s.Ny)(ei),{handleItemTracking:eY,handleLocalStoreNotification:eX}=(0,_.O)(eN,ek),e0=(0,u.useMemo)(()=>(e=>{let{validation:t,hasAddToCartAttempted:l,isExceedingStock:a,isPurchaseCapped:r,maxPurchaseQuantity:n,maxAvailableQuantity:i,outOfStock:s,translate:o,hasCounterLimitError:d}=e;return t?r&&null!==n?(e=>{let{hasAddToCartAttempted:t,hasCounterLimitError:l}=e;return t&&!l})({hasAddToCartAttempted:l,hasCounterLimitError:d})?o("product.warning.purchaseCapped",{number:n}):null:a&&i>0?o("product.warning.insufficientStock"):s?o("product.warning.outOfStock"):null:null})({validation:ev,hasAddToCartAttempted:ef,isExceedingStock:eW,isPurchaseCapped:eH,maxPurchaseQuantity:eL,maxAvailableQuantity:eT,outOfStock:eE,translate:er,hasCounterLimitError:eb}),[ev,ef,eW,eH,eL,eT,eE,er,eb]),e1=eE?{IconLeft:en?c.LetterSolid:c.LetterOutline}:{},e6={size:"sm",...null!==eQ&&{regularPrice:eQ},...null!==eq&&{salePrice:eq}},e7=(e=>{let{outOfStock:t,isComingSoon:l,specialOrder:r,quantity:n,onChangeQuantity:i,onMaximumValueExceeded:s,showCounterError:o,maximumSelectableQuantity:d,isLoading:u,onAddToCart:p,trackButtonIcon:m,handleLocalStoreNotification:_,handleItemTracking:v,translate:g}=e;return!1!==t||l||r?(0,a.jsx)(G.$n,{variant:"secondary",...m,size:"lg",className:V()["product-panel__track-button"],onClick:r?_:v,children:g(r?"product.contactLocalStore.label":"product.trackTheItem.label")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(G.ph,{value:n,onChange:i,onMaximumValueExceeded:s,className:V()["product-panel__counter"],maximumValue:d,state:o?"error":void 0,validationMessage:"".concat(String(d)," ").concat(g("product.quantity.error"))}),(0,a.jsx)(G.$n,{variant:"primary",size:"lg",IconLeft:c.ShoppingCartSolid,disabled:u,onClick:p,children:g(u?"product.addToCartLoading.label":"product.addToCart.label")})]})})({outOfStock:eE,isComingSoon:eV,specialOrder:eI,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:ev&&(eb||eW||eH),maximumSelectableQuantity:eU,isLoading:ep,onAddToCart:eK,trackButtonIcon:e1,handleLocalStoreNotification:eX,handleItemTracking:eY,translate:er}),e2=(e=>{let{isUnavailable:t,isComingSoon:l,outOfStock:r,specialOrder:n,translate:i,selectedVariantOptions:s}=e;return t?(0,a.jsx)("span",{className:D,children:i("product.unavailable.label")}):l?(0,a.jsx)("span",{className:D,children:i("product.availability.comingSoon.label")}):r?(0,a.jsx)("span",{className:D,children:i("product.availability.outofstock.label")}):n?(0,a.jsx)("span",{className:D,children:i("productcard.availability.specialOrder.label")}):(0,a.jsx)(E,{options:s,notSelectedLabel:i("product.option.notSelected")})})({isUnavailable:eJ,isComingSoon:eV,outOfStock:eE,specialOrder:eI,translate:er,selectedVariantOptions:eP});return(0,a.jsx)(A,{tabs:et,handleTabClickAction:el,productLink:ew,productName:eS,imageSrc:e$,optionsSlot:e2,priceSlot:(0,a.jsx)(r.SalePrice,{...e6}),actionsSlot:eJ||eA?null:e7,floatingAlert:e0?(0,a.jsx)(B,{message:e0,onClose:eZ}):null})}var U=l(76762),W=l(98088),H=l.n(W);function Z(e){var t;let{tabs:l,handleTabClickAction:n}=e,o=(0,d.c)(),u=(0,r.usePriceFormatter)(),p=(0,i.Bj)(),{amount:m}=(0,U.f)(),_=null!=(t=(0,s.VG)(p))?t:"",v=(0,s.ZK)(p)||"#",g=(0,s.Ny)(p),f=p.unavailable,h=async()=>{},b=o("giftCard.amountSelector.selectDollarAmount.label"),y=void 0!==m,x=y?u(m):"",j=(0,a.jsx)(E,{options:{[b]:x},notSelectedLabel:o("product.option.notSelected")}),N=y?(0,a.jsx)(r.SalePrice,{regularPrice:Number(m),size:"sm"}):null,k=f?null:(0,a.jsx)(r.Button,{variant:"primary",size:"lg",IconLeft:c.ShoppingCartSolid,className:H()["gift-card-panel__add-to-cart"],onClick:h,children:o("product.addToCart.label")});return(0,a.jsx)(A,{tabs:l,handleTabClickAction:n,productLink:v,productName:_,imageSrc:g,optionsSlot:j,priceSlot:N,actionsSlot:k})}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 a=String(e).trim().replaceAll(/\s/g,"");if(!a||/[a-zA-Z]/.test(a)||!/^-?\d+(?:\.\d*)?$|^-?\.\d+$/.test(a))return String(e);let r=Number.parseFloat(a);return Number.isNaN(r)||!Number.isFinite(r)?String(e):r.toLocaleString(l)};var Q=l(25150),q=l.n(Q),J=l(87832),$=l(12144),Y=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)(),_=(0,s.TN)(m),v=(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 J.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,a.jsx)(r.Link,{href:t,openInNewTab:!0,rel:"noopener noreferrer",...l,children:(0,J.zd)(e.children,b)}):(0,a.jsx)(r.Link,{href:t||"#",...l,children:(0,J.zd)(e.children,b)})}}},y=e=>{let t=(0,Y.q)().sanitize(e,{ALLOWED_TAGS:["ul","li","p","br","strong","em","b","i","a"],ALLOWED_ATTR:["href","target","rel"]});return(0,J.Ay)(t,b)};return(0,a.jsx)("section",{className:ee()["product-details-section"],children:(0,a.jsxs)("div",{className:ee()["product-details-section__info"],children:[(0,a.jsx)("div",{className:ee()["product-details-section__info--description"],children:t||l||n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:q()("body-l-bold",ee()["product-details-section__info--description-text"]),children:n?y(n):null}),l&&(0,a.jsxs)("div",{className:ee()["product-details-section__info--features"],children:[(0,a.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,a.jsx)("ul",{children:e.map((e,t)=>(0,a.jsx)("li",{children:e},t))}):l.includes("<ul>")||l.includes("<li>")?(0,a.jsx)("div",{children:y(l)}):(0,a.jsx)("ul",{children:(0,a.jsx)("li",{children:y(l)})})})()]}),t&&(0,a.jsxs)("div",{className:ee()["product-details-section__info--applications"],children:[(0,a.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,a.jsx)("ul",{children:e.map((e,t)=>(0,a.jsx)("li",{children:e},t))}):t.includes("<ul>")||t.includes("<li>")?(0,a.jsx)("div",{children:y(t)}):(0,a.jsx)("ul",{children:(0,a.jsx)("li",{children:y(t)})})})()]})]}):(0,a.jsx)(r.Alert,{type:"info",variant:"inline",message:p("pdp.tabs.productDetails.noAvailable.label")})}),(0,a.jsxs)("div",{className:ee()["product-details-section__resources"],children:[f.length>0?(0,a.jsxs)("div",{className:ee()["product-details-section__resources--pdf"],children:[(0,a.jsx)("h4",{className:"heading-level-4-special",children:p("product.downloadAndManual.label")}),(0,a.jsx)("div",{className:ee()["product-details-section__resources-tiles"],children:f.map((e,t)=>(0,a.jsx)(r.Tile,{type:"pdf",content:e.content,href:e.href?"".concat($.K,"/").concat(e.href):"#",openInNewTab:e.openInNewTab},t))})]}):_&&v.length>1&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"heading-level-4-special",children:p("pdp.pdf.download.guide.label")}),(0,a.jsxs)("div",{className:ee()["product-details-section__resources--empty-body"],children:[(0,a.jsx)("div",{children:(0,a.jsx)(c.ListSheetOutline,{color:o.ZRI,width:o.Kz1,height:o.Kz1})}),(0,a.jsxs)("div",{className:ee()["product-details-section__resources--empty-text"],children:[(0,a.jsx)("p",{className:q()("body-l-regular",ee()["product-details-section__resources--empty-message"]),children:p("pdp.pdf.general.guides.label")}),(0,a.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,a.jsxs)("div",{className:ee()["product-details-section__resources--link"],children:[(0,a.jsx)("h4",{className:"heading-level-4-special",children:p("product.link.label")}),(0,a.jsx)("div",{className:ee()["product-details-section__resources-tiles"],children:g.map((e,t)=>(0,a.jsx)(r.Tile,{type:"link",content:e.content,href:e.href,openInNewTab:e.openInNewTab},t))})]})]})]})})};var el=l(14878),ea=l(63771),er=l(13185),en=l(86352),ei=l(1488),es=l(67679),eo=l(71652);let ed=e=>{let{isInStock:t,isBaseProduct:l,productEntityId:r,variantEntityId:n,trackingData:i}=e,s=(0,es.z)(ei.K0),d=(0,eo.O)(ei.K0);return t||l?(0,a.jsx)(s,{Icon:()=>(0,a.jsx)(c.ShoppingCartSolid,{color:o.FYT}),size:"lg",productEntityId:r,variantEntityId:n,isAvailable:t,isBaseProduct:!!l,"aria-label":"Add to Cart",addToCartLabel:"",addToCartLoadingLabel:"",trackingData:i}):(0,a.jsx)(d,{productEntityId:r,variantEntityId:n,size:"lg",addToTrackLabel:"",Icon:()=>(0,a.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,L,A,D,E,R,M,O,F;let{productNode:V,showReview:B=!1,openInNewTab:G=!1,saveToWishListButton:z,variant:U="default",className:W,selectItemTrackingContext:H,addToCartTrackingContext:Z,...K}=e,Q=(0,m.G)({mode:"language"}),q=null!=(C=null!=(k=(0,ea.$P)("externalProductNumber",V))?k:(0,ea.$P)("product_external_id",V))?C:"",J=(null==V||null==(t=V.sku)?void 0:t.startsWith("PA"))&&Number(null==V||null==(n=V.variants)||null==(l=n.edges)?void 0:l.length)>1,$=(null==V||null==(s=V.metafields.edges)||null==(i=s.find(e=>{let{node:{key:t}}=e;return t==="displayName_".concat(Q)}))?void 0:i.node.value)||(null==V?void 0:V.name)||"",Y=null==V?void 0:V.defaultImage,X=(0,a.jsx)(er.c,{isBaseProduct:J,prices:null==V?void 0:V.prices}),ee=("en"===Q?null!=(S=null==V?void 0:V.path)?S:"":null!=(P=null!=(w=(0,ea.$P)("slug_fr",V))?w:null==V?void 0:V.path)?P:"").replace(/(?:^\/+)|(?:\/+$)/g,""),et=el.b.PDP.set(ee,q,null!=(I=null==V?void 0:V.sku)?I:""),ei=null==V||null==(d=V.variants.edges)||null==(o=d.find(e=>{let{node:{sku:t}}=e;return t===(null==V?void 0:V.sku)}))?void 0:o.node.entityId,es=null==V?void 0:V.sku,eo=null!=(T=null==V||null==(g=V.variants)||null==(v=g.edges)||null==(_=v[0])||null==(c=_.node)||null==(u=c.inventory)?void 0:u.isInStock)&&T;J||(null==V||null==(h=V.variants)||null==(f=h.edges)?void 0:f.length)!==1||(ei=null!=(R=null==V||null==(E=V.variants)||null==(D=E.edges)||null==(A=D[0])||null==(L=A.node)?void 0:L.entity
1Id)?R:ei);let eu=null!=(O=null!=(M=null==V||null==(y=V.prices)||null==(b=y.salePrice)?void 0:b.value)?M:null==V||null==(j=V.prices)||null==(x=j.price)?void 0:x.value)?O:0,ec=Z?{itemId:null!=es?es:"",itemName:$,price:eu,quantity:1,...Z}:null;return(0,a.jsx)(r.EngagementProductCard,{imageSrc:null!=(F=null==Y?void 0:Y.url)?F:"/images/default-img.svg",imageAlt:null==Y?void 0:Y.altText,productName:$,productLink:et,openInNewTab:G,priceDisplay:X,...(null==V||null==(N=V.sku)?void 0:N.startsWith("PA"))===!1?{SKU:"SKU: ".concat(es)}:{},review:B&&(0,a.jsx)(en.A,{PALProductId:q}),actionButton:(0,a.jsx)(ed,{isInStock:eo,isBaseProduct:J,variantEntityId:ei,productEntityId:null==V?void 0:V.entityId,...ec&&{trackingData:ec}}),saveToWishListButton:z,variant:U,isOutOfStock:!eo,className:W,onProductClick:()=>{var e,t,l,a,r,n;if(!H)return;let i=null!=(n=null!=(r=null==V||null==(t=V.prices)||null==(e=t.salePrice)?void 0:e.value)?r:null==V||null==(a=V.prices)||null==(l=a.price)?void 0:l.value)?n:0;(0,p.Vd)({productId:null!=q?q:"",productName:$,price:i,...H})},...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",_="sparepart"===l?"PDP Parts":"PDP Accessories";return(0,a.jsxs)("div",{className:ep().parts,children:[(0,a.jsxs)("div",{className:ep().parts__container,children:["sparepart"===l.toLowerCase()&&0===p.length&&(0,a.jsx)(r.Alert,{message:s.rich("pdp.tabs.parts.alert.label",{a:e=>(0,a.jsx)(r.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 r,n,i;let s={...(null==(r=e.productNode)?void 0:r.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:_},d={...(null==(n=e.productNode)?void 0:n.sku)&&{itemVariant:e.productNode.sku},index:t+1,...o&&{preferredStoreId:o},itemListId:m,itemListName:_,sourcePage:"sparepart"===l?"pdp-parts":"pdp-accessories"};return(0,a.jsx)("div",{className:ep().parts__card,children:(0,a.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,a.jsx)("div",{className:ep()["parts__load-more"],children:(0,a.jsx)(r.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 e_=l(68599),ev=l.n(e_);function eg(e){let{generalInfoData:t=[],detailsData:l=[]}=e,n=(0,d.c)(),u=(0,i.Bj)(),c=(0,s.TN)(u),p=(0,r.useMediaQuery)("(max-width: ".concat(o.AXY,")"));return(0,a.jsxs)("div",{className:ev()["specifications-table"],children:[t.length||l.length?(0,a.jsxs)("div",{children:[t&&t.length?(0,a.jsx)(r.Table,{data:t,columns:[{header:"General Info",field:"label",isPrimary:!0,width:p?"40%":"30%"},{header:"",width:p?"60%":"70%",field:"value"}],className:q()(ev()["specifications-table__table-content"],ev()["specifications-table__mb-32"]),tableHeaderClassName:ev()["specifications-table__header-row"],tableBodyRowClassName:ev()["specifications-table__body-row-wrapper"]}):"",l&&l.length>0&&(0,a.jsx)(r.Table,{data:l,columns:[{header:"Details",field:"label",isPrimary:!0,width:p?"40%":"30%"},{header:"",field:"value",width:p?"60%":"70%"}],className:ev()["specifications-table__table-content"],tableHeaderClassName:ev()["specifications-table__header-row"],tableBodyRowClassName:ev()["specifications-table__body-row-wrapper"]}),(!l||0===l.length)&&c&&(0,a.jsx)("div",{className:ev()["specifications-table__mb-32"],children:(0,a.jsx)(r.Alert,{type:"info",variant:"inline",message:(0,a.jsx)("span",{children:n("pdp.tabs.specifications.selectVariant.label")})})})]}):(0,a.jsx)("div",{className:ev()["specifications-table__mb-32"],children:(0,a.jsx)(r.Alert,{type:"info",variant:"inline",message:(0,a.jsx)("span",{children:n("pdp.tabs.specifications.noAvailable.label")})})}),(0,a.jsx)("div",{})]})}let ef=e=>{let{palProductId:t}=e;return t&&""!==t.trim()?(0,a.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,a.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,a.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:_=[],relatedProductsData:v,isGiftcard:g}=e,f=(0,d.c)(),h=(0,r.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,L=null!=(p=(0,s.GN)(b))?p:"",A=(0,s.WL)(b),D=(0,s.fn)(b),E=(0,s.vn)(b),{getTileData:R,getDetailsData:M,getGeneralInfoData:O}=(e=>{let{tileDataRaw:t,productDetailsDataRaw:l,productGeneralInfoRaw:a,variant:r}=e,n=(0,d.c)(),o=(0,m.G)({mode:"language"}),c=(0,i.Bj)(),p=(0,s.TN)(c),_=(0,u.useCallback)(()=>
1{if(!t)return[];try{let e=JSON.parse(t.webLinks||"[]"),l=JSON.parse(t.manualPdfs||"[]"),a=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})):[],r=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[...a,...r]}catch(e){return console.error("Failed to parse tile data:",{error:e instanceof Error?e.message:"Unknown error",tileDataRaw:t}),[]}},[t]),v=(0,u.useCallback)(()=>{if(!l&&!a)return[];try{let e=JSON.parse(l||"[]"),t=JSON.parse(a||"[]").slice(1),r=[];if(Array.isArray(e)?r=[...e,...Array.isArray(t)?t:[]]:Array.isArray(t)&&(r=t),!Array.isArray(r))return[];return r.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,a,o]),g=(0,u.useCallback)(()=>{let e=[];a||(e=[]);let t=null===r?{dimensions:[],weight:""}:["depth","width","height","weight"].reduce((e,t)=>{let l=r[t];if(!l)return e;if(["depth","width","height"].includes(t)&&"number"==typeof l.value){var a;null==(a=e.dimensions)||a.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!=a?a:"[]").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==r?void 0:r.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:a}),[]}},[a,r,o,p,n]);return{getTileData:_,getDetailsData:v,getGeneralInfoData:g}})({tileDataRaw:T,productDetailsDataRaw:A||null,productGeneralInfoRaw:L,variant:(0,u.useMemo)(()=>1===E.length?E[0]:E.find(e=>e.sku===D),[E,D])||null}),F=(e=>{let{sharedApplications:t,sharedFeatures:l,description:r,isGiftcard:n,getTileData:i,getDetailsData:s,getGeneralInfoData:o,palProductId:d,relatedProductsData:c}=e,p=(0,u.useMemo)(()=>{let e=()=>(0,a.jsx)(et,{sharedApplications:t,sharedFeatures:l,description:r,tileData:n?[]:i()});return e.displayName="DetailsTabContent",e},[t,l,r,n,i]),m=(0,u.useMemo)(()=>{let e=()=>(0,a.jsx)(eg,{detailsData:s(),generalInfoData:o()});return e.displayName="SpecificationsContent",e},[s,o]),_=(0,u.useMemo)(()=>{let e=()=>(0,a.jsx)(ey,{palProductId:d});return e.displayName="ReviewsContent",e},[d]),v=(0,u.useMemo)(()=>{let e=()=>(0,a.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,a.jsx)(eh,{palProductId:d});return e.displayName="QnaContent",e},[d]),f=(0,u.useMemo)(()=>{let e=()=>(0,a.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:_,parts:v,qna:g,accessories:f,default:ex}),[p,m,_,v,g,f])})({sharedApplications:k,sharedFeatures:w,description:P,isGiftcard:g,getTileData:R,getDetailsData:M,getGeneralInfoData:O,palProductId:y,relatedProductsData:v}),V=(0,u.useMemo)(()=>_.map(e=>{let t=F[e]||F.default,{text:l,extra:r}=S({key:e,baseText:f("pdp.tabs.".concat(e,".label")),reviewData:x});return{key:e,title:(0,a.jsxs)("span",{className:eN()["product-tabs__title"],children:[l,r&&(0,a.jsx)("span",{className:eN()["product-tabs__title-extra"],children:r})]}),Content:t}}),[_,F,f,x]);return(0,a.jsxs)("div",{className:eN()["product-tabs"],children:[g?(0,a.jsx)(Z,{tabs:_,handleTabClickAction:N}):(0,a.jsx)(z,{tabs:_,handleTabClickAction:N}),!h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:eN()["product-tabs__wrapper"],children:(0,a.jsx)(r.FluidContainer,{children:(0,a.jsx)(I,{tabs:_,handleTabClickAction:N})})}
1),(0,a.jsx)("div",{children:(0,a.jsx)(r.Divider,{type:"tertiary",orientation:"horizontal",className:eN()["product-tabs__divider"]})})]}),(0,a.jsx)(r.FluidContainer,{children:(0,a.jsx)("div",{className:eN()["product-tabs__content"],children:V.map(e=>{let{key:t,title:l,Content:n}=e;return h?(0,a.jsx)("div",{"data-section":t,children:(0,a.jsx)(r.Accordion,{title:(0,a.jsx)("h3",{className:"heading-level-4",children:l}),isDefaultExpanded:null===t,className:eN()["product-tabs__accordion"],children:(0,a.jsx)(n,{})})},t):(0,a.jsxs)("div",{"data-section":t,ref:e=>{j.current[t]=e},className:eN()["product-tabs__desktop-content"],children:[(0,a.jsx)("h3",{className:"".concat(eN()["product-tabs__title-margin"]," heading-level-3"),children:l}),(0,a.jsx)(n,{})]},t)})})})]})},eC=e=>{let{tabs:t=[],isGiftcard:l,enrichedRelatedProducts:r}=e,n={sparepart:new Map,accessories:new Map},o=(0,i.Bj)(),d=null!=r?r:(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,a.jsx)(ek,{tabs:c,relatedProductsData:n,isGiftcard:l})},eS=(0,n.default)(()=>Promise.all([l.e(6750),l.e(4909),l.e(6626),l.e(6664),l.e(6799),l.e(9375),l.e(9323),l.e(9319),l.e(2728)]).then(l.bind(l,9556)).then(e=>e.SimilarProductCarousel),{loadableGenerated:{webpack:()=>[9556]},ssr:!1}),ew=(0,n.default)(()=>Promise.all([l.e(6750),l.e(6626),l.e(6664),l.e(6799),l.e(9375),l.e(9323),l.e(9319),l.e(7343)]).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,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eC,{enrichedRelatedProducts:t,isGiftcard:n,tabs:d}),l&&(0,a.jsx)(r.InlineBanner,{...l}),o&&(0,a.jsx)(eS,{productId:i,similarProductCarouselProps:o}),s&&(0,a.jsx)(ew,{productId:i,recentProductCarouselProps:s})]})}},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 a=l(7620);let r="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,a.useState)({storageValue:"",currentValue:"",error:!1}),l=(0,a.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,a.useCallback)(l=>{i.test(l)?t({...e,currentValue:l,error:!1}):t({...e,currentValue:l,error:!0})},[e,t]);return(0,a.useEffect)(()=>{let a=window.sessionStorage.getItem(n);if(a)return void t({...e,storageValue:a});navigator.geolocation&&r&&navigator.geolocation.getCurrentPosition(async e=>{try{var t,a,n,s,o;let{latitude:d,longitude:u}=e.coords,c="".concat("https://maps.googleapis.com/maps/api/geocode/json","?latlng=").concat(d,",").concat(u,"&result_type=postal_code&key=").concat(r),p=await fetch(c,{method:"GET",mode:"cors",referrerPolicy:"origin",headers:{"Accept-Language":"en-CA,fr-CA;q=0.9"}}),m=await p.json(),_=null==m||null==(n=m.results)||null==(a=n[0])||null==(t=a.address_components)?void 0:t.find(e=>Array.isArray(e.types)&&e.types.includes("postal_code")),v=(null!=(o=null!=(s=null==_?void 0:_.long_name)?s:null==_?void 0:_.short_name)?o:"").toString().toUpperCase();v&&i.test(v)&&l(v)}catch(e){console.error(e,"er")}})},[]),(0,a.useMemo)(()=>({postalCodeState:e,setStorageValue:l,setCurrentValue:s}),[e,l,s])}},35613:(e,t,l)=>{"use strict";l.d(t,{Ic:()=>r,KZ:()=>n,iF:()=>a});let a=[10,25,50,100,250,500],r=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"}},39327:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ProductDetailsPageClient:()=>eX});var a=l(54568),r=l(72276),n=l(83985),i=l(32536),s=l(97066),o=l(7620),d=l(47266),u=l(88180),c=l(87275),p=l(41159),m=l(98722),_=l(85084),v=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)(),r=(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,a.jsx)("div",{className:k()["product-info"],children:(0,a.jsxs)("div",{className:k()["product-info--detail
1s"],children:[(0,a.jsx)("h2",{children:r}),c&&(0,a.jsx)("div",{className:k()["product-info--hazardous-indicator"],children:(0,a.jsx)(n.HazardousIndicator,{label:o("product.labels.hazardousGoods"),size:"md"})}),(0,a.jsxs)("div",{className:k()["product-info--meta-data"],children:[t,!d&&i&&(0,a.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,a=arguments.length>2?arguments[2]:void 0;if(!l||0===t.length||a&&(null==(e=t[0])?void 0:e.url)===a)return t;let r=t.findIndex(e=>{var t;return null==e||null==(t=e.url)?void 0:t.toLowerCase().includes(l.toLowerCase())});if(r<=0)return t;let n=t.slice(),[i]=n.splice(r,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},L=(e,t,l)=>Math.floor((e-(t+l)+l)/(t+l)),A=(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(r.FcH,")")),m=(0,n.useMediaQuery)("(min-width: ".concat(r.AXY,")")),_=(0,n.useMediaQuery)("(min-width: ".concat(r.aSD,")")),{width:v,height:f}=(0,o.useMemo)(()=>p?w.desktopLg:m?w.desktop:_?w.tablet:w.mobile,[p,m,_]),{thumbnailWidth:h,maxVisibleThumbnails:b}=(0,o.useMemo)(()=>p?{thumbnailWidth:I.desktop,maxVisibleThumbnails:L(P.desktopLg,I.desktop,T.desktopLg)}:m?{thumbnailWidth:I.desktop,maxVisibleThumbnails:L(P.desktop,I.desktop,T.desktop)}:{thumbnailWidth:I.mobile,maxVisibleThumbnails:L(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:v,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:v,height:f,thumbnail:"/images/default-img.svg",controls:!0,muted:!0})),...y.slice(e).map(t)]},[y,d,v,f]);return x.length>0?(0,a.jsx)(n.PdpImageCarousel,{images:x,maxVisibleThumbnails:b,thumbnailWidth:h,thumbnailHeight:h,expandedGalleryTitle:e("product.galleryTitle.label",{default:"Product Images & Videos"}),circular:!0}):(0,a.jsx)(i.default,{src:"/images/default-img.svg",alt:"Default product image",width:v,height:f})});A.displayName="ProductGallery";var D=l(8534),E=l(83631),R=l(67533),M=l(18278),O=l(76762);let F=(0,o.forwardRef)((e,t)=>{let l=(0,s.c)(),r=(0,M.W)(l,!0),{amount:n,setAmount:i}=(0,O.f)(),{control:d,setValue:u,watch:c,trigger:p}=(0,E.mN)({resolver:(0,D.u)(r),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,a.jsx)(E.xI,{name:"amount",control:d,render:e=>{let{field:t,fieldState:{error:l}}=e;return(0,a.jsx)(R.k,{amount:t.value,setGiftCardAmount:t.onChange,errorMessage:null==l?void 0:l.message})}})});F.displayName="GiftCardAmountForm";var V=l(86777),B=l(58736),G=l(53077),z=l(47799),U=l(44550),W=l(96926),H=l.n(W);let Z=e=>{var t,l,r,i,u;let{amountFormRef:c}=e,[_,h]=(0,o.useState)(!1),b=(0,p.GV)(U.Ep),y=(0,g.Bj)(),{productNode:x}=y,N=(0,p.GV)(m.UW),k=(0,p.GV)(v.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,B.AP)(),[I,T]=(0,o.useState)({}),L=(0,p.jL)(),A=(0,s.c)(),{amount:D}=(0,O.f)(),E=A.rich("giftCard.alertMessage.label",{trigger:()=>(0,a.jsx)("span",{className:"body-s-bold",children:S})}),R=async()=>{var e,t,l,a,r,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();
1h.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==(a=h.giftCardDetails)?void 0:a.senderName)&&(null==(r=h.giftCardDetails)?void 0:r.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,a,r]=(null==x||null==(v=x.categories)||null==(_=v.edges)||null==(m=_[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:a,itemCategory4:r,...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"}),L((0,z.N6)()),L((0,G.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,a.jsxs)("div",{className:H()["product-details-card__gift-price-section"],children:[D?(0,a.jsx)(n.SalePrice,{regularPrice:D,size:"lg"}):(0,a.jsx)(n.PriceRange,{maxPrice:500,minPrice:1,size:"lg",variant:"regular"}),(0,a.jsx)(n.Divider,{type:"tertiary",orientation:"horizontal"}),b&&(0,a.jsx)(n.Checkbox,{checked:_,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:A("giftCard.checkbox.label")}),(!b||_)&&(0,a.jsx)("div",{className:H()["product-details-card__form-wrapper"],children:(0,a.jsxs)("div",{className:H()["product-details-card__form-inner"],children:[(0,a.jsx)("h4",{id:"recipient-title",className:H()["product-details-card__form-title"],children:A("giftCard.recipient.details.label")}),(0,a.jsx)(V.I,{onSubmit:()=>{},ref:w,defaultValues:{senderName:null!=(t=I.senderName)?t:"",recipientName:null!=(l=I.recipientName)?l:"",recipientEmail:null!=(r=I.recipientEmail)?r:"",message:null!=(i=I.message)?i:"",scheduleForLater:null!=(u=I.scheduleForLater)&&u,scheduledDate:I.scheduledDate,scheduledTime:I.scheduledTime}})]})}),b&&!_&&(0,a.jsx)(n.Alert,{message:E,type:"info",variant:"inline"}),(0,a.jsx)(n.Button,{onClick:R,variant:"primary",size:"lg",IconLeft:f.ShoppingCartSolid,"aria-label":A("product.addToCart.label"),className:H()["product-details-card__add-to-cart-button"],type:"submit",form:"gift-card-form",children:A("product.addToCart.label")})]})};Z.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:r}=(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 a=null==r||null==(l=r.Results)||null==(t=l[0])||null==(e=t.ProductStatistics)?void 0:e.ReviewStatistics;return{averageOverallRating:null==a?void 0:a.AverageOverallRating,totalReviewCount:null==a?void 0:a.TotalReviewCount}},[r]),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 _=(0,o.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m())},[m]),v=(0,o.useCallback)(()=>{d(!1)},[]),h=(0,o.useMemo)(()=>{let{averageOverallRating:e,totalReviewCount:t}=p;return null==t||null==e||0===t?(0,a.jsx)("p",{className:b()("body-s-regular",Q()["product-details-card--no-rating"]),children:l("pdp.noReviews.label")}):(0,a.jsx)("button",{"aria-label":l("pdp.jumpToReviews.label"),onClick:m,onKeyDown:_,className:Q()["product-details-card--reviews"],children:(0,a.jsx)(n.Reviews,{rating:Number(e),reviewCount:Number(t),averageRating:Number(e)})})},[p,l,m,_]),x=(0,a.jsx)("div",{className:Q()["product-details-card--price-section"],children:(0,a.jsx)(F,{ref:c})}),N=(0,o.useMemo)(()=>i&&u.current?(0,a.jsx)(n.Alert,{message:l("product.noVariantSelected.label"),type:"error",variant:"floating",CustomIcon:f.ErrorSolid,container:u.current,onClose:v,className:Q()["product-details-card--alert"]}
1):null,[i,l,v]);return(0,a.jsxs)(n.FluidContainer,{className:Q()["product-details-card"],children:[(0,a.jsx)("div",{className:Q()["product-details-card--header"],children:(0,a.jsx)(C,{reviews:h})}),(0,a.jsx)("div",{className:Q()["product-details-card--left-panel"],children:(0,a.jsx)(A,{})}),(0,a.jsxs)("div",{className:Q()["product-details-card--right-panel"],children:[(0,a.jsx)("div",{className:Q()["product-details-card--info"],children:(0,a.jsx)(C,{reviews:h})}),(0,a.jsx)("div",{ref:u,style:{display:"contents"}}),N,x,(0,a.jsx)(Z,{amountFormRef:c})]})]})};var J=l(9601),$=l(83665),Y=l(13185),X=l(42635),ee=l.n(X);let et=(0,o.memo)(e=>{let{providedSaveText:t}=e,l=(0,s.c)(),r=(0,$.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)(()=>{if(t)return t;if(!i)return;let{salePrice:e}=i,a=null==i?void 0:i.basePrice;if(a&&e&&a.value>e.value){let t=a.value-e.value,n=Math.round(t/a.value*100);n=0===n?0:Number.parseFloat(n.toFixed(2));let i=l("products.price.save.label",{amount:r(t),savePercentage:n});return c&&(i+=l("products.price.through.label",{endDate:c})),i}return""},[i,t,c,r,l]),m=(0,o.useMemo)(()=>u?(0,a.jsxs)("div",{className:ee()["product-price__levy-info"],role:"region",children:[(0,a.jsx)(f.CircleInfoOutline,{className:ee()["product-price__icon"]}),(0,a.jsx)("p",{className:ee()["product-price__label"],children:l("products.price.levyInfo")})]}):null,[u,l]);return i?(0,a.jsxs)("div",{className:ee()["product-price"],children:[(0,a.jsx)(Y.c,{prices:i,size:"lg",isBaseProduct:d,saveText:p,align:"left"}),m]}):null});et.displayName="ProductPrice";var el=l(86258),ea=l(30800),er=l(65935),en=l(7712);let ei=function(e){var t;let{variants:l,sku:a,isBaseProduct:r}=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=(0,s.c)("product.availability");if(r){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}),a=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")}:a?{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===a}))?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 es=l(26265),eo=l(74680),ed=l(7649),eu=l(50043),ec=l(64620),ep=l.n(ec);let em=e=>{let{daysUntilAvailable:t,formattedAvailableDate:l}=e,r=(0,s.c)("productcard.availability");return(0,a.jsx)(n.AvailabilityCard,{dotVariant:"brand",icon:f.CalendarOutline,statusLabel:r("comingSoon.label"),title:(0,a.jsxs)("div",{className:ep()["product-availability-info"],children:[(0,a.jsx)("div",{className:ep()["product-availability-info-date"],children:(0,a.jsxs)("span",{className:"body-s-bold",children:[r("availableOn.label")," ",(0,a.jsx)("span",{className:"body-s-regular",children:l})]})}),(0,a.jsxs)(n.InfoLabel,{size:"md",children:[t," ",r("daysLeft.label")]})]})})};var e_=l(14878),ev=l(97101);let eg=()=>{let e=(0,s.c)("productcard.availability"),t=(0,p.GV)(m.UW),l=(0,p.jL)(),r=(0,ev.rd)(),i=e=>{e.preventDefault(),t?r.push(e_.b.STORE_DETAILS.set(String(t))):l((0,m.JK)())},o=e.rich("checkLocalStoreMessage.label",{trigger:()=>(0,a.jsx)(n.Link,{className:ep()["special-order-link"],href:"/store-locator",onClick:i,children:e("yourLocalStore.label")})}),d=e.rich("clickForDetailsMessage.label",{trigger:t=>(0,a.jsx)(n.Link,{className:ep()["special-order-link"],target:"_blank",rel:"noopener noreferrer",href:String(t),children:e("clickHere.label")})});return(0,a.jsx)(n.AvailabilityCard,{icon:f.ShoppingCartSpecialSolid,iconSize:"lg",specialText:(0,a.jsxs)("span",{children:[o," ",d]}),title:e("specialOrder.label")})};var ef=l(92033),eh=l.n(ef);let eb=function(e){let{isExclusive:t,className:l="",variant:r="inline"}=e,n=(0,s.c)("product.availability");if(!t)return null;let i=b()(eh()["exclusive-availability"],eh()["exclusive-availability--".concat(r)],l);return(0,a.jsx)("span",{className:i,"data-testid":"exclusive-winnipeg-east",children:n("winnipegEastOnly.label")})};var ey=l(76257),ex=l(2661);let ej=e=>{let{storeStatus:t,onlineStatus:l,placement:r,pickupMessage:i,isInStock:o,isInStoreOnly:d=!1,isExclusive:u=!1,currentStoreLabel:c=null,pdpInventoryItems:_}=e,v=(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===ex.RP,j=u&&!!c&&!x;return(0,a.jsxs)("div",{className:ep()["product-availability"],children:[u&&(0,a.jsx)(eb,{isExclusive:u,variant:"full",className:ep()["exclusive-availability-banner"]}),(0,a.jsx)(n.AvailabilityCard,{dotVariant:j?"negative":null==t?void 0:t.dotVariant,icon:f.StoreSolid,iconSize:"lg",location:r&&o&&!j&&(0,a.jsxs)("span",{children:[(0,a.jsxs)("span",{children:[v.rich("location.place.label",{location:()=>""})," "]}),r]}
1),pickupTime:o&&!j?i:null,statusLabel:j?g("notStockedAtStore.label"):null==t?void 0:t.message,title:v.rich("title.pickup.label",{trigger:()=>(0,a.jsx)(n.Link,{className:ep()["action-link"],href:"#",onClick:()=>h((0,m.JK)({pdpInventoryItems:null!=_?_:null})),children:y||v("storeSelector.selectStore.link.label")})})}),d?(0,a.jsx)(n.AvailabilityCard,{dotVariant:"negative",icon:f.TruckSolid,statusLabel:v("shippingUnavailable.label"),title:v("inStoreOnly.label")}):(0,a.jsx)(n.AvailabilityCard,{icon:f.TruckSolid,dotVariant:l.dotVariant,statusLabel:l.message,title:v.rich("title.ship.label",{trigger:()=>(0,a.jsx)(ey.o,{})})})]})};var eN=l(20895);let ek=()=>{var e,t,l,r,n;let[i,s]=(0,o.useState)(),d=(0,g.Bj)(),c=(0,j.vn)(d),_=(0,j.uc)(d),v=(0,j.TN)(d),f=(0,j.er)(d),{quantity:h}=(0,eu.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===_}))?void 0:t.entityId,N=b&&y&&!v?[{productId:b,variantId:y,quantity:h}]:null,k=(0,en.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,ed.i)(C),[C]),I=(0,x.GL)(_,d),T=v?c.every(e=>{var t,l,a,r;let n=null==(r=e.metafields)||null==(a=r.edges)||null==(l=a.find(e=>{var t;return(null==(t=e.node)?void 0:t.key)==="shippable"}))||null==(t=l.node)?void 0:t.value;return(0,eN.r)(n)}):(0,eN.r)(I),L=(0,o.useMemo)(()=>k&&(0,x.yn)(_,d),[k,_,d]),A=(0,u.G)({mode:"language"}),D=ei({variants:c,sku:_,isBaseProduct:v},1),E=ei({variants:c,sku:_,isBaseProduct:v},S),R=(0,o.useMemo)(()=>{var e,t,l,a;return null==(a=c.find(e=>{let{sku:t}=e;return t===_}))||null==(l=a.inventory)||null==(t=l.byLocation)||null==(e=t.edges)?void 0:e.find(e=>e.node.locationEntityId===S)},[c,_,S]),M=(0,es.hb)(C);(0,o.useEffect)(()=>{(async()=>{if(!_||!S||!P){P||s(void 0);return}try{let e=await fetch("/api/products/".concat(_,"/getPlacementDetails/").concat(S)),{data:t}=await e.json();s(t[null!=A?A:"en"])}catch(e){console.error("Error fetching placement details:",e)}})()},[_,A,S,P]);let{daysUntilAvailable:O,formattedAvailableDate:F,productAvailableDate:V}=(0,o.useMemo)(()=>{var e,t,l,a,r,n;let i=(0,eo.Ke)(null==(t=d.productNode)||null==(e=t.metafields)?void 0:e.edges),s=(0,eo.by)(null==(a=d.productNode)||null==(l=a.metafields)?void 0:l.edges),o=(0,eo.Pl)(c,_),u=(0,eo.mj)(c,_,"skuStatus"),p=(0,eo.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,v=null!=(n=null!=(r=p.formattedArrivalDate)?r:(e=>{let t=(e=>{let t=e.includes("/")?e.split("/"):e.split("-");if(3!==t.length)return null;let[l,a,r]=t,n=Number(l),i=Number(a),s=Number(r);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(),a=t.toLocaleString("en-US",{month:"short"}).toUpperCase(),r=t.getFullYear();return"".concat(l," ").concat(a," ").concat(r)})(m))?n:null;return{daysUntilAvailable:p.daysUntilArrival,formattedAvailableDate:v,productAvailableDate:m}},[null==(r=d.productNode)||null==(l=r.metafields)?void 0:l.edges,_,c]);return f?(0,a.jsx)(eg,{}):V&&F&&"number"==typeof O?(0,a.jsx)(em,{daysUntilAvailable:O,formattedAvailableDate:F}):(0,a.jsx)(ej,{storeStatus:S?E:void 0,onlineStatus:D,placement:S&&P&&i?(0,a.jsx)(er.W,{aisles:i}):void 0,pickupMessage:S?M:void 0,isInStock:null==R?void 0:R.node.isInStock,isInStoreOnly:T,isExclusive:L,currentStoreLabel:null!=w?w:null,pdpInventoryItems:N})};var eC=l(43768),eS=l(62e3),ew=l.n(eS);let eP=e=>{let{quantityInCart:t=0}=e,l=(0,s.c)("product.labels"),[r,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),_=(0,j.D8)(c)-t,v=_>0&&_<5?_:null;return(0,o.useEffect)(()=>{let e=(0,eC.dP)(p,null!=m?m:void 0),t=(0,eC.I2)(p,null!=m?m:void 0);i(e),u(t)},[m,p]),(0,a.jsxs)("div",{className:ew()["product-labels"],children:[r&&(0,a.jsx)(n.HotBuyLabel,{label:l("hotBuy")},"hot-buy"),d&&(0,a.jsx)(n.ClearanceLabel,{label:l("clearance")},"clearance"),null!==v&&(0,a.jsx)(n.LimitedStockLabel,{label:l("limitedStock",{quantity:v})},"limited-stock")]})};var eI=l(16306),eT=l(11716),eL=l(88366),eA=l(79778),eD=l(13201),eE=l.n(eD);let eR=e=>{var t,l,r,i,c,h,b,y,x,N,k,C,S,w,P,I,T,L,A,D,E;let{onChange:R,selectedOutOfStock:M=!1,selectedButtonGroup:O,setValidation:F,setHasAddToCartAttempted:V,validation:z,setIsOutOfStock:U,setWishlistError:W,setIsBackendPurchaseCapped:H}=e,Z=(0,s.c)(),K=(0,u.G)({mode:"language"}),Q=(0,ev.rd)(),[q,J]=(0,o.useState)(!1),[$,Y]=(0,o.useState)(!1),X=(0,p.jL)(),{addToCart:ee,isLoading:et}=(0,B.AP)(),er=(0,p.GV)(m.UW),en=(0,p.GV)(_.cy),ei=(0,p.GV)(_.Dm),es=(0,p.GV)(_.NG),ed=(0,p.GV)(v.qf),ec=(0,g.Bj)(),ep=(0,j.eJ)(ec),{quantity:em,setQuantity:eg}=(0,eu.useQuantityContext)(),ef=(0,j.fn)(ec),eh=(0,j.HC)(ec),eb=(0,j.TN)(ec),ey=(0,j.VG)(ec),ex=(0,j.yy)(ec),ej=(null!=(D=null==ex?void 0:ex.length)?D:0)>0?Object.entries(O).length!==(null==ex?void 0:ex.length):eb,eN=(0,j.er)(ec),ek=null==(t=ec.productNode)?void 0:t.entityId,eS=(0,j.vn)(ec),ew=(0,j.D8)(ec,er),eP=(0,j.FG)(ec),eD=M||!eb&&ew<=0,eR=(0,o.useMemo)(()=>{var e,t;
1return eb||1!==eS.length?eh?null==ep?void 0:ep.entityId:null==(e=eS.find(e=>{let{sku:t}=e;return t===ef}))?void 0:e.entityId:null==(t=eS[0])?void 0:t.entityId},[eb,eS,eh,ep,ef]),eM=(0,el.Q)(ek,eR),eO=(0,p.GV)(e=>eb?(0,ea.EW)(e,ek):(0,ea.EW)(e,eR)),eF=null!=(E=null!=ef?ef:null==(l=ec.productNode)?void 0:l.sku)?E:"",eV=(0,eo.Pl)(eS,eF),eB=(0,eo.Ke)(null==ep||null==(r=ep.metafields)?void 0:r.edges),eG=(0,eo.by)(null==ep||null==(i=ep.metafields)?void 0:i.edges),ez=(0,eo.mj)(eS,eF,"skuStatus"),eU=(0,o.useMemo)(()=>(0,eo.Mh)({productStatus:eB,skuStatus:ez,variantArrivalDate:eV,productArrivalDate:eG}).arrivalDate,[eV,eG,eB,ez]),eW=Math.max(0,ew-eM),eH=null===eP?null:Math.max(0,eP-eM),eZ=Math.max(1,null===eH?eW:Math.min(eW,eH)),eK=$||null!==eP&&em+eM>eP,eQ=(null==ep||null==(h=ep.prices)||null==(c=h.basePrice)?void 0:c.value)||0,eq=(null==ep||null==(y=ep.prices)||null==(b=y.salePrice)?void 0:b.value)||0,eJ=eq>0?eq:eQ,e$=eq>0?eQ-eq:0,[eY,eX,e0,e1]=(null==ep||null==(w=ep.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:e6,isInWishlist:e7,isLoading:e2}=(0,eL.z)({productId:ek,variantId:eR,productName:ey||"",imageUrl:(null==ep||null==(L=ep.images)||null==(T=L.edges)||null==(I=T[0])||null==(P=I.node)?void 0:P.url)||"",quantity:em,sku:ef||"",analyticsProductId:(0,j.vZ)(ec),trackingContext:{pageContext:"pdp",price:eJ,...e$>0&&{discount:Number(e$.toFixed(2))},brand:null==ep||null==(A=ep.brand)?void 0:A.name,itemCategory:eY,itemCategory2:eX,itemCategory3:e0,itemCategory4:e1,...(null==ed?void 0:ed.listId)&&{listId:ed.listId},...(null==ed?void 0:ed.listName)&&{listName:ed.listName},...en&&Object.keys(en).length>0&&{appliedFilters:JSON.stringify(en)},sourcePage:"pdp"}}),e5=async()=>{var e,t;null==V||V(!0);let l=!(null==ep||null==(e=ep.inventory)?void 0:e.isInStock),a=em+eM>ew;if(J(!1),Y(!1),null==H||H(!1),F(!1),U(!1),ej)return void F(!0);if(l){F(!0),U(!0);return}if(eK||a)return void F(!0);if(ek&&eR)try{await ee({payload:{productEntityId:ek,variantEntityId:eR,quantity:em},language:K}),null==V||V(!1);let e=(0,eC.dP)(eS,ef||""),l=(0,eC.I2)(eS,ef||"");(0,d.Ml)((e=>{let{palId:t,sku:l,productName:a,itemBrand:r,pdpCategory:n,pdpCategory2:i,pdpCategory3:s,pdpCategory4:o,variantSKU:d,pdpFinalPrice:u,quantity:c,pdpDiscount:p,productType:m,preferredStoreId:_,activeFilters:v,searchSort:g,searchQuery:f,plpContext:h}=e,b=Object.keys(v).length>0?JSON.stringify(v):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:a,itemBrand:r,itemCategory:n,itemCategory2:i,itemCategory3:s,itemCategory4:o,...d&&{itemVariant:d},price:u,quantity:c,...p>0&&{discount:p},productType:m,..._&&{preferredStoreId:_},filtersApplied:b,sortApplied:y,searchTerm:x,...h.listId&&{itemListId:h.listId},...h.listName&&{itemListName:h.listName},sourcePage:"pdp"}})({palId:(0,j.vZ)(ec),sku:(null==ep?void 0:ep.sku)||"",productName:ey||"",itemBrand:null==ep||null==(t=ep.brand)?void 0:t.name,pdpCategory:eY,pdpCategory2:eX,pdpCategory3:e0,pdpCategory4:e1,variantSKU:ef,pdpFinalPrice:eJ,quantity:em,pdpDiscount:e$,productType:e?"Hot Buy":l?"Clearance":void 0,preferredStoreId:er,activeFilters:en,searchSort:es,searchQuery:ei,plpContext:ed})),X((0,G.XL)())}catch(e){(0,eA.Q)(e)?(Y(!0),null==H||H(!0)):U(!0),F(!0),console.error("Failed to add product to cart:",e)}},e3=q||eK||em+eM>ew,{handleItemTracking:e8}=(0,eT.O)(ek,eR);return(0,a.jsxs)("div",{className:eE()["product-actions"],children:[!eh&&!eN&&!eD&&!eU&&(0,a.jsxs)("div",{className:eE()["product-actions__shopping"],children:[(0,a.jsx)(n.Counter,{value:em,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>eZ){J(!0),F(!0);return}J(!1),eg(t),F(!1),R(e)}},onKeyDown:e=>{("e"===e.key||"E"===e.key)&&e.preventDefault()},maximumValue:eZ,onMaximumValueExceeded:e=>{let t=Number.parseInt(e.target.value,10);!Number.isNaN(t)&&t>eZ&&(J(!0),F(!0))},state:e3&&z&&!ej?"error":void 0,validationMessage:"".concat(String(eZ)," ").concat(Z("product.quantity.error"))}),(0,a.jsx)(n.Button,{variant:"primary",size:"lg",className:eE()["product-actions__add-to-cart"],IconLeft:f.ShoppingCartSolid,onClick:e5,disabled:et,"aria-label":Z("product.addToCart.label"),"data-cnstrc-btn":eI.j.ATC,children:Z(et?"product.addToCartLoading.label":"product.addToCart.label")})]}),(0,a.jsxs)("div",{className:eE()["product-actions__actions"],children:[!eh&&!eN&&(eD||eU)&&(0,a.jsx)(n.Button,{variant:"secondary",IconLeft:f.LetterOutline,size:"lg",onClick:e8,"data-cnstrc-btn":eI.j.TRACK_THE_ITEM,children:Z("product.trackTheItem.label")}),!eh&&eN&&(0,a.jsx)(n.Button,{variant:"secondary",size:"lg",onClick:()=>
1{if(er)return void Q.push(e_.b.STORE_DETAILS.set(er.toString()));X((0,m.JK)())},"data-cnstrc-btn":eI.j.CONTACT_LOCAL_STORE,children:Z("product.contactLocalStore.label")}),!eh&&(0,a.jsx)(n.Button,{variant:"text",IconLeft:e7?f.FavoriteSolid:f.FavoriteOutline,size:"lg",className:eE()["product-actions__action-btn"],onClick:()=>{if(ej)return void W(!0);W(!1),(0,o.startTransition)(()=>{e6()})},disabled:e2,"data-cnstrc-btn":eI.j.ADD_TO_WISHLIST,children:Z(e7?"product.wishlist.savedToWishlist.label":"product.wishlist.saveToWishlist.label")}),(0,a.jsx)(n.Button,{variant:"text",IconLeft:eO?f.CompareSolid:f.CompareOutline,size:"lg",className:eE()["product-actions__action-btn"],onClick:()=>{if(eO){let e=eb?ek:eR;X((0,ea.Rz)(e));return}if(ej&&!eh)return void X((0,ea.Nh)("compare.error.variant.label"));eR&&ec.productNode&&X((0,ea.$t)({productNode:ec.productNode,variantEntityId:eR,availability:eh?"unavailable":"available"}))},"data-cnstrc-btn":eI.j.ADD_TO_COMPARE,children:Z(eO?"product.compare.added.label":"product.compare.label")})]}),(0,a.jsx)(n.Divider,{})]})};var eM=l(51679),eO=l.n(eM);let eF=()=>{var e;let t=(0,s.c)(),l=(0,g.Bj)(),o=(0,j.o7)(l);return o?(0,a.jsx)("div",{className:eO()["product-brand"],children:(0,a.jsxs)(n.Link,{href:"/brands/".concat(o.path,"/").concat(o.entityId).replaceAll(/\/{2,}/g,"/"),className:eO()["product-brand--link"],children:[(0,a.jsxs)("div",{className:eO()["product-brand--info"],children:[(null==(e=o.defaultImage)?void 0:e.url)&&(0,a.jsx)(i.default,{src:o.defaultImage.url,alt:o.name||"Brand Image",width:90,style:{objectFit:"contain"},height:30}),(0,a.jsxs)("p",{className:b()("body-s-bold",eO()["product-brand--name"]),children:[t("product.shopByBrand")," ",o.name]})]}),(0,a.jsx)(n.IconWrapper,{Icon:f.ArrowRight,size:r.KO9,color:r.sD5})]})}):null};var eV=l(8227);let eB=(0,o.memo)(eV.l),eG=e=>{let{setSelectedOutOfStock:t,setSelectedButtonGroup:l,onSelectVariant:r,setValidation:n}=e,i=(0,p.jL)(),s=(0,g.Bj)(),d=(0,u.G)({mode:"language"}),c=(0,j.vn)(s),m=(0,j.fn)(s),_=(0,j.yy)(s),v=(0,j.ZK)(s),f=(0,j.vZ)(s),h=(0,ev.rd)(),b=(0,o.useMemo)(()=>{if(1===c.length){var e,t;return!(null==(t=c[0])||null==(e=t.inventory)?void 0:e.isInStock)}return!1},[c]);(0,o.useEffect)(()=>{1===c.length&&t(b)},[c.length,b,t]);let y=(0,o.useCallback)((e,t,l)=>{var a,r;let n=e.node;if(n.displayName!==t)return!1;let i=null==(a=n.values)?void 0:a.edges;return null!=(r=null==i?void 0:i.some(e=>e.node.label===l))&&r},[]),x=(0,o.useCallback)((e,t,l)=>{let a=e.options.edges;return!!a&&a.some(e=>y(e,t.displayName,l))},[y]),N=(0,o.useCallback)(e=>_&&c?c.filter(t=>_.every(l=>{let a=e[l.displayName];return!!a&&x(t,l,a)})):[],[_,c,x]),k=(0,o.useMemo)(()=>e=>{if(c&&1===c.length)return b;if(!_||!c)return!1;let t=N(e);return 0!==t.length&&!t.some(e=>{var t;return null==(t=e.inventory)?void 0:t.isInStock})},[c,b,_,N]),C=(0,o.useCallback)(e=>{l(e),t(k(e)),n(!1),i((0,ea.Nh)(""))},[l,k,t,n,i]),S=(0,o.useMemo)(()=>v.replace(/^\/|\/$/g,""),[v]),w=(0,o.useCallback)(e=>{if(e){var t,l;s.setLoading(!0);let a=(null==(t=e.sku)?void 0:t.startsWith("PA"))?e_.b.PDP.set(S,e.sku):e_.b.PDP.set(S,f,e.sku);null==(l=history)||l.replaceState({},"","/".concat("fr"===d?"fr_CA":"en").concat(a)),h.replace(a,{scroll:!1})}null==r||r(e),s.setLoading(!1)},[r,s,S,f,d,h]),P=(0,o.useMemo)(()=>({variantSKU:m,productOptions:_||null,variants:c,onSelectedOptionsChange:C,onSelectVariant:w}),[m,_,c,C,w]);return _&&0!==_.length?(0,a.jsx)(eB,{...P}):null};eG.displayName="ProductOptions";let ez=(0,o.memo)(eG);var eU=l(41706),eW=l.n(eU);let eH=e=>{let{message:t,onClose:l}=e;return(0,a.jsx)(n.Alert,{message:t,type:"error",variant:"inline",showCloseButton:!0,CustomIcon:f.ErrorSolid,onClose:l})},eZ=()=>{var e,t,l,r,i;let d=(0,p.jL)(),u=(0,g.Bj)(),c=(0,j.vZ)(u),m=(0,j.HC)(u),_=null==(e=u.productNode)?void 0:e.entityId,v=(0,j.TN)(u),f=(0,j.vn)(u),h=(0,j.fn)(u),x=(0,o.useMemo)(()=>{var e,t;return v||1!==f.length?null==(e=f.find(e=>{let{sku:t}=e;return t===h}))?void 0:e.entityId:null==(t=f[0])?void 0:t.entityId},[v,f,h]),[N,k]=(0,o.useState)(!1),S=(0,s.c)(),{productNode:w}=u,P=(0,j.VG)(u),I=(0,j.TN)(u),{reviewData:T}=(0,y.O8)(c),{quantity:L}=(0,eu.useQuantityContext)(),D=(0,p.GV)(ea.ts),E=(0,j.D8)(u),R=(0,j.FG)(u),M=(0,el.Q)(_,x),[O,F]=(0,o.useState)({}),[V,B]=(0,o.useState)(!1),[G,z]=(0,o.useState)(!1),[U,W]=(0,o.useState)(!1),[H,Z]=(0,o.useState)(!1),K=(0,o.useMemo)(()=>{var e,t,l;let a=null==T||null==(l=T.Results)||null==(t=l[0])||null==(e=t.ProductStatistics)?void 0:e.ReviewStatistics;return{averageOverallRating:null==a?void 0:a.AverageOverallRating,totalReviewCount:null==a?void 0:a.TotalReviewCount}},[T]),Q=(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)(()=>
1{if("#reviews-section"===globalThis.location.hash){let e=setTimeout(()=>{q()},500);return()=>clearTimeout(e)}},[q]);let $=(0,o.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),q())},[q]),Y=(0,o.useCallback)(()=>{B(!1),z(!1),Z(!1)},[]),X=(0,o.useMemo)(()=>{let{averageOverallRating:e,totalReviewCount:t}=K;return null==t||null==e||0===t?(0,a.jsx)("p",{className:b()("body-s-regular",eW()["product-details-card--no-rating"]),children:S("pdp.noReviews.label")}):(0,a.jsx)("button",{"aria-label":S("pdp.jumpToReviews.label"),onClick:q,onKeyDown:$,className:eW()["product-details-card--reviews"],children:(0,a.jsx)(n.Reviews,{rating:Number(e),reviewCount:Number(t),averageRating:Number(e)})})},[K,S,q,$]),ee=(0,o.useMemo)(()=>(0,a.jsxs)("div",{className:eW()["product-details-card--price-section"],children:[m&&(0,a.jsx)("p",{className:b()("heading-level-4-special",eW()["product-details-card--unavailable-text"]),children:S("product.unavailable.label")}),!m&&(0,a.jsx)(eP,{quantityInCart:M}),!m&&(0,a.jsx)(et,{}),(0,a.jsx)(eR,{onChange:Q,selectedOutOfStock:N,selectedButtonGroup:O,setValidation:B,setHasAddToCartAttempted:z,validation:V,setIsOutOfStock:k,setWishlistError:W,setIsBackendPurchaseCapped:Z})]}),[m,S,Q,N,O,V,M]),er=(0,o.useMemo)(()=>{var e,t,l,r,n,i;let s="",o=null!=R?R:0,d=L+M,u=V;return(H||null!==R&&d>R?(s=S("product.warning.purchaseCapped",{number:o}),u=G):d>E&&E>0?s=S("product.warning.insufficientStock"):((null!=(i=null==w||null==(t=w.productOptions)||null==(e=t.edges)?void 0:e.length)?i:0)>0?Object.entries(O).length!==(null==w||null==(r=w.productOptions)||null==(l=r.edges)?void 0:l.length):I)?s=S("product.warning.noVariantSelected"):(null==w||null==(n=w.inventory)?void 0:n.isInStock)&&!N||(s=S("product.warning.outOfStock")),u&&s)?(0,a.jsx)(eH,{message:s,onClose:Y}):null},[E,R,L,M,I,O,N,V,G,H,Y,S,null==w||null==(t=w.inventory)?void 0:t.isInStock,null==w||null==(r=w.productOptions)||null==(l=r.edges)?void 0:l.length]),en=!m;return(0,a.jsxs)(n.FluidContainer,{className:eW()["product-details-card"],"data-cnstrc-product-detail":!0,"data-cnstrc-item-id":c,"data-cnstrc-item-name":P,"data-cnstrc-item-variation-id":null!=h?h:String(null!=_?_:""),...en&&{"data-cnstrc-item-price":null==w||null==(i=w.prices)?void 0:i.price.value},children:[(0,a.jsxs)("div",{className:eW()["product-details-card--header"],children:[(0,a.jsx)(C,{reviews:X}),(0,a.jsx)(eF,{})]}),(0,a.jsx)("div",{className:eW()["product-details-card--left-panel"],children:(0,a.jsx)(A,{})}),(0,a.jsxs)("div",{className:eW()["product-details-card--right-panel"],children:[(0,a.jsxs)("div",{className:eW()["product-details-card--info"],children:[(0,a.jsx)(C,{reviews:X}),(0,a.jsx)(eF,{})]}),er,D&&(0,a.jsx)(eH,{message:S(D),onClose:()=>d((0,ea.ET)())}),U&&(0,a.jsx)(eH,{message:S("product.warning.wishlistNoVariantSelected"),onClose:()=>W(!1)}),!m&&(0,a.jsx)(ez,{setValidation:B,setSelectedOutOfStock:k,setSelectedButtonGroup:F}),ee,!m&&(0,a.jsx)(ek,{}),!m&&(0,a.jsx)(J.u,{})]})]})};eZ.displayName="ProductCard";let eK=(0,o.memo)(eZ);var eQ=l(26767),eq=l(96556);let eJ=()=>{let e=(0,ev.rd)(),t=(0,u.G)({mode:"language"}),l=(0,g.Bj)(),r=(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(r){let l=e_.b.PDP.set(n,r,t);e.prefetch(l,{kind:eq.PrefetchKind.FULL})}})},[t,r,n,s,e]),(0,a.jsx)(a.Fragment,{})};var e$=l(30434),eY=l.n(e$);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)(),[L,A]=(0,o.useState)(!1),D=(0,p.jL)(),E=(0,u.G)({mode:"language"}),R=(0,p.GV)(m.UW),M=(0,p.GV)(v.qf),O=(0,o.useRef)(!1);(0,o.useEffect)(()=>{D((0,_.hi)())},[D]),(0,c.f)("print-pdp-only");let F=null!=(l=null!=(t=(0,x.$P)("externalProductNumber",f))?t:(0,x.$P)("product_external_id",f))?l:"";(0,o.useEffect)(()=>{if(!O.current&&f&&!L){var e,t,l,a,r,n,i,s,o,u;O.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==(a=p.salePrice)?void 0:a.value)||(null==p||null==(r=p.price)?void 0:r.value)||0,_=(null==p||null==(n=p.basePrice)?void 0:n.value)||(null==p||null==(i=p.price)?void 0:i.value)||0,v=_>m?_-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}
1).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:F||String(f.entityId),productName:f.name||"",price:m,sku:(null==c?void 0:c.sku)||f.sku||null,quantity:1,discount:v>0?v: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==M?void 0:M.listId)||null,sourceName:(null==M?void 0:M.listName)||null})}},[f,b,F,L,R,M]);let V=!(0,n.useMediaQuery)("(min-width: ".concat(r.mVu,")")),B=(0,o.useCallback)(e=>{A(e)},[]);return(0,a.jsx)(g.hM,{value:{productNode:f,variantSku:null!=b?b:null,productLocale:E||j,unavailable:N,enrichedRelatedProducts:y,loading:L,setLoading:B},children:(0,a.jsxs)("div",{className:eY()["product-details-page"],"aria-busy":L,children:[(0,a.jsx)("div",{className:eY()["print-header"],"aria-hidden":"true",children:(0,a.jsx)(i.default,{src:"/images/princessauto-logo.svg",alt:"Princess Auto",width:183,height:36})}),(0,a.jsx)(n.LoadingOverlayMask,{isLoading:L}),w&&(0,a.jsx)("div",{className:eY()["pal-disclaimer"],children:(0,a.jsx)(n.Alert,{type:"info",variant:"inline",message:T("product.ammunition.palDisclaimer.label")})}),(0,a.jsx)(n.StickyPanelTrigger,{offset:V?0:-110,children:S?(0,a.jsx)(q,{}):(0,a.jsx)(eK,{})}),null!=I?I:(0,a.jsx)(eQ.DeferredProductDetailsPageSections,{enrichRelatedProducts:y,exploreMoreBannerProps:h,isGiftcard:S,productId:F,recentProductCarouselProps:P,similarProductCarouselProps:C,tabs:k}),(0,a.jsx)(eJ,{})]})})});eX.displayName="ProductDetailsPageClient"},41008:(e,t,l)=>{"use strict";l.d(t,{q:()=>r});let a=null,r=()=>{if(!a){var e;let t=l(93709);a=null!=(e=t.default)?e:t}return a}},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"}},48482:(e,t,l)=>{Promise.resolve().then(l.bind(l,76762)),Promise.resolve().then(l.bind(l,50043)),Promise.resolve().then(l.bind(l,26767)),Promise.resolve().then(l.bind(l,39327)),Promise.resolve().then(l.bind(l,64675)),Promise.resolve().then(l.bind(l,30634)),Promise.resolve().then(l.bind(l,60174)),Promise.resolve().then(l.bind(l,83985))},50043:(e,t,l)=>{"use strict";l.r(t),l.d(t,{QuantityContext:()=>
1n,QuantityProvider:()=>s,useQuantityContext:()=>i});var a=l(54568),r=l(7620);let n=(0,r.createContext)(null),i=()=>{let e=(0,r.useContext)(n);if(!e)throw Error("useQuantityContext must be used within a QuantityProvider");return e},s=e=>{let{children:t}=e,[l,i]=(0,r.useState)(1),s=(0,r.useMemo)(()=>({quantity:l,setQuantity:i}),[l,i]);return(0,a.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 a=l(54568),r=l(83985),n=l(7620),i=l(83631);let s=e=>{let{errorMessage:t,delayErrorMs:l,label:i,nativeRequired:s,...o}
1=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,_=d&&p?t:void 0;return(0,a.jsx)(r.TextField,{...o,label:i,validationMessage:_,nativeRequired:s,state:m})},o=e=>{let{control:t,name:l,label:r,delayErrorMs:n,...o}=e;return(0,a.jsx)(i.xI,{name:l,control:t,render:e=>{let{field:t,fieldState:{error:l}}=e;return(0,a.jsx)(s,{...o,...t,label:r,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 a=l(54568),r=l(83985),n=l(7620),i=l(24407),s=l(2375);let o=i.z.object({Results:i.z.array(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,L,A,D;let{productNode:E,productName:R,productNameSlug:M,ProductSKUParam:O,VariantSKUParam:F,locale:V,variantPrices:B=new Map}=e,{reviewData:G,reviewsList:z,isPending:U}=(e=>{let[t,l]=(0,n.useState)(null),[a,r]=(0,n.useState)({Results:[]}),[i,s]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{if(!e){l(null),r({Results:[]}),s(!1);return}(async()=>{s(!0);try{let[t,a]=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(a.ok){let e=await a.json(),t=o.safeParse(e.data);t.success?r(t.data):(console.error("Reviews list validation failed:",t.error),r({Results:[]}))}else r({Results:[]})}catch(e){console.error("Error fetching product reviews:",e),l(null),r({Results:[]})}finally{s(!1)}})()},[e]),{isPending:i,reviewData:t,reviewsList:a}})(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,H=null!=(w=null!=(S=null==(m=E.prices)||null==(p=m.salePrice)?void 0:p.currencyCode)?S:null==(v=E.prices)||null==(_=v.basePrice)?void 0:_.currencyCode)?w:null,Z=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}).filter(Boolean),K=null;E.path&&(K=((e,t)=>{let l=t.startsWith("/")?t.slice(1):t,a=u[e];return a?d.baseUrl?l?"".concat(d.baseUrl).concat(a,"/").concat(l):"".concat(d.baseUrl).concat(a):(console.error("[Sitemap] BASE_URL is undefined. Please set NEXT_PUBLIC_BASE_URL environment variable."),""):(console.error("[Sitemap] Invalid locale: ".concat(e)),"")})(V,"product/".concat(M,"/").concat(O).concat(F?"/".concat(F):"")));let Q=null==(b=E.variants)||null==(h=b.edges)?void 0:h.map(e=>{var t,l,a,r;let n=null==e?void 0:e.node;if(!n||!K||!n.sku)return null;let i=B.get(n.sku),s=null!=(l=null==i?void 0:i.price)?l:W,o=null!=(a=null==i?void 0:i.basePrice)?a:null,d=null!=(r=null==i?void 0:i.currency)?r:H;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=>
1null!==e),{ratingValue:q,reviewCount:J,bestRating:$,worstRating:Y,reviews:X}=(0,n.useMemo)(()=>{var e,t,l;let a=null==G||null==(l=G.Results)||null==(t=l[0])||null==(e=t.ProductStatistics)?void 0:e.ReviewStatistics,r=null==z?void 0:z.Results,n=null==r?void 0:r.map(e=>({author:e.UserNickname||"Anonymous",rating:e.Rating||0,reviewBody:e.ReviewText||"",datePublished:e.SubmissionTime||"",bestRating:5,worstRating:1}));return{ratingValue:null==a?void 0:a.AverageOverallRating,reviewCount:null==a?void 0:a.TotalReviewCount,bestRating:5*(null!=a&&!!a.TotalReviewCount),worstRating:+(null!=a&&!!a.TotalReviewCount),reviews:n&&n.length>0?n:null}},[G,z]);return U?null:(0,a.jsx)(r.ProductJsonLd,{name:R,description:null!=(P=E.seo.metaDescription)?P:"",image:null!=Z?Z:"",brand:null!=(I=null==(y=E.brand)?void 0:y.name)?I:"",sku:null!=(T=E.sku)?T:"",price:null!=W?W:0,priceCurrency:H||"",availability:E.inventory.isInStock?"InStock":"OutOfStock",url:null!=K?K:"",priceValidUntil:"",ratingValue:q,reviewCount:J,bestRating:$,worstRating:Y,reviews:X,variants:Q,id:"product-".concat(E.entityId),upc:null!=(L=E.upc)?L:null,mpn:null!=(A=E.mpn)?A:null,gtin:null!=(D=E.gtin)?D:null})}},65935:(e,t,l)=>{"use strict";l.d(t,{W:()=>o});var a=l(54568),r=l(97066),n=l(7620),i=l(41048),s=l.n(i);let o=e=>{let{aisles:t,className:l}=e,i=(0,r.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,r)=>{l.push((0,a.jsx)("strong",{children:t},"aisle-".concat(t))),r<e.length-1&&l.push((0,a.jsx)("span",{className:s().separator,children:i("or.label")},"separator-".concat(t)))}),l},[t,i]);return o?(0,a.jsx)("span",{className:l,children:o}):null};o.displayName="AisleLocationLabel"},67533:(e,t,l)=>{"use strict";l.d(t,{k:()=>p});var a=l(54568),r=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,r.usePriceFormatter)(),[m,_]=(0,s.useState)(void 0===t?void 0:null!=t?t:d.KZ),[v,g]=(0,s.useState)(!1);return(0,a.jsxs)("section",{className:c()["gift-card-amount-selector"],children:[(0,a.jsx)(r.ButtonGroup,{groupTitle:(0,a.jsxs)("span",{children:["".concat(u("giftCard.amountSelector.selectDollarAmount.label"),": "),(0,a.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 a="number"==typeof d.iF[t]?d.iF[t]:null;null!==a&&(_(a),null==l||l(a),g(!1))},className:c()["gift-card-amount-selector__amount-options-group"],hideSelected:v,hideSelectedLabel:!0,"aria-label":u("giftCard.amountSelector.selectDollarAmount.label")}),(0,a.jsx)("div",{className:c()["gift-card-amount-selector__price-input-wrapper"],children:(0,a.jsx)(r.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){_(void 0),null==l||l(void 0),g(!0);return}_(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:()=>O,Bnp:()=>p,Eec:()=>z,FYT:()=>D,FcH:()=>i,H7e:()=>N,HT2:()=>B,IF8:()=>R,KO9:()=>x,Kp_:()=>_,Kz1:()=>j,LEW:()=>P,OGO:()=>w,PAC:()=>F,PWN:()=>V,Rwp:()=>y,Y6Q:()=>K,Y_C:()=>b,ZRI:()=>I,aSD:()=>r,ehg:()=>G,enE:()=>H,eqz:()=>h,gP6:()=>m,gg9:()=>L,h$L:()=>v,iN9:()=>C,jss:()=>Z,k36:()=>f,kS6:()=>o,mDK:()=>Q,mVu:()=>a,n7E:()=>S,n9S:()=>q,oyE:()=>c,pR2:()=>d,pkn:()=>k,s3S:()=>A,sD5:()=>u,sJv:()=>s,sZk:()=>g,tCt:()=>M,xck:()=>U,zFR:()=>T,zy0:()=>E}
1);let a="360px",r="768px",n="1024px",i="1440px",s="1920px",o="#368dcc",d="#2279b9",u="#035a96",c="#092e4c",p="#ffffff",m="#c5c6ce",_="#717276",v="#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",L="#2279b9",A="#035a96",D="#092e4c",E="#ffffff",R="#ba8c2e",M="#035a96",O="#ffffff",F="#ffd100",V="#f1f2f3",B="#035a96",G="#368dcc",z="#cde3f3",U="#e8edce",W="#ffcacc",H="#ffe9ab",Z="16px",K="20px",Q="24px",q="32px"},72409:(e,t,l)=>{"use strict";l.d(t,{ew:()=>a.Link});var a=l(83985)},76257:(e,t,l)=>{"use strict";l.d(t,{o:()=>p});var a=l(54568),r=l(10790),n=l(83985),i=l(25150),s=l.n(i);l(7620);var o=l(66056),d=l(30494),u=l(18130),c=l.n(u);let p=e=>{let{value:t,onApplyClick:l,className:i}=e,u=(0,o.c3)(),{postalCodeState:p,setStorageValue:m,setCurrentValue:_}=(0,d.i)(),v=!!p.currentValue&&p.error;return(0,a.jsx)("span",{className:c()["postal-code"],children:(0,a.jsx)(n.Popover,{placement:"bottom",trigger:e=>{let{ref:l,...o}=e,{onClick:d,...m}=o;return(0,a.jsx)(n.Button,{...m,ref:l,variant:"text",className:s()(c()["postal-code__action-link"],i),IconRight:r.ChevronDown,onClick:e=>{_(p.storageValue),null==d||d(e)},children:t||p.storageValue||u("mycart.orderSummary.selectPostalCode.label")})},content:e=>{let{closePopover:r}=e;return(0,a.jsxs)("div",{className:c()["postal-code__content"],children:[(0,a.jsxs)("div",{className:c()["postal-code__actions"],children:[(0,a.jsx)(n.TextField,{variant:"default",name:"postalCode",placeholder:u("mycart.orderSummary.enterPostalCode.label"),onChange:e=>_(e.target.value),defaultValue:t||p.storageValue,state:v?"error":void 0}),(0,a.jsx)(n.Button,{variant:"primary",onClick:()=>{p.error||(m(p.currentValue),null==l||l(p.currentValue),r())},children:u("mycart.orderSummary.PostalCodeApply.label")})]}),v&&(0,a.jsx)(n.InputStateMessage,{message:u("mycart.orderSummary.PostalCodeErrorMessage.label"),state:"error"})]})}})})};p.displayName="PostalCodePopover"},76762:(e,t,l)=>{"use strict";l.d(t,{GiftCardAmountProvider:()=>s,f:()=>i});var a=l(54568),r=l(7620);let n=(0,r.createContext)(null),i=()=>{let e=(0,r.useContext)(n);if(!e)throw Error("useGiftCardAmountContext must be used within a GiftCardAmountProvider");return e},s=e=>{let{children:t}=e,[l,i]=(0,r.useState)(void 0),s=(0,r.useMemo)(()=>({amount:l,setAmount:i}),[l,i]);return(0,a.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:()=>a});let a=e=>{var t,l;if(!e||"object"!=typeof e)return!1;let a=e.data,r=null!=(t=null==a?void 0:a.errorCode)?t:e.errorCode,n=null!=(l=null==a?void 0:a.message)?l:e.message;return"CART_004_NOT_FOUND"===r&&"string"==typeof n&&n.includes("Maximum Purchase: You can only purchase a maximum of")}},83665:(e,t,l)=>{"use strict";l.d(t,{ZC:()=>a.usePriceFormatter});var a=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 a=l(54568),r=l(8534),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),_=l.n(m);let v={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,r.u)(b),defaultValues:{...v,...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,a.jsxs)("form",{id:"gift-card-form",className:_()["gift-card-recipient-form"],onSubmit:m?x(m):void 0,children:[f&&(0,a.jsx)(s.xI,{name:"amount",control:y,render:e=>{let{field:t,fieldState:{error:l}}=e;return(0,a.jsx)(c.k,{amount:t.value,setGiftCardAmount:t.onChange,errorMessage:null==l?void 0:l.message})}}),(0,a.jsx)(d.L,{control:y,name:"senderName",type:"text",label:h("giftCard.recipientForm.senderName.label"),className:_()["gift-card-recipient-form__text-field"],required:!0,nativeRequired:!1}),(0,a.jsx)(d.L,{control:y,name:"recipientName",type:"text",label:h("giftCard.recipientForm.recipientName.label"),className:_()["gift-card-recipient-form__text-field"],required:!0,nativeRequired:!1}),(0,a.jsx)(d.L,{control:y,name:"recipientEmail",type:"email",label:h("giftCard.recipientForm.recipientEmail.label"),className:_()["gift-card-recipient-form__text-field"],required:!0,nativeRequired:!1}),(0,a.jsx)(s.xI,{name:"message",control:y,render:e=>{let{field:t}=e;return(0,a.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:_()["gift-card-recipient-form__message-field"],"aria-label":h("giftCard.recipientForm.message.label")})}}),g&&(0,a.jsxs)("div",{className:_()["gift-card-recipient-form__schedule-section"],children:[(0,a.jsx)(s.xI,{name:"scheduleForLater",control:y,render:e=>{let{field:t}=e;return(0,a.jsx)(n.Checkbox,{label:h("giftCard.recipientForm.scheduleForLater.label"),checked:t.value,onChange:e=>t.onChange(e.target.checked),className:_()["gift-card-recipient-form__schedule-checkbox"]})}}),S&&(0,a.jsxs)("div",{className:_()["gift-card-recipient-form__schedule-fields"],children:[(0,a.jsx)(s.xI,{name:"scheduledDate",control:y,render:e=>{var t;let{field:l,fieldState:r}=e;return(0,a.jsx)(n.DatePicker,{label:h("giftCard.recipientForm.deliveryDate.label"),value:l.value,onChange:l.onChange,validate:()=>!!r.error,error:null==(t=r.error)?void 0:t.message,required:!0,nativeRequired:!1})}}),(0,a.jsx)(s.xI,{name:"scheduledTime",control:y,render:e=>{var t;let{field:l,fieldState:r}=e;return(0,a.jsx)(n.TimePicker,{label:h("giftCard.recipientForm.deliveryTime.label"),value:l.value,onChange:l.onChange,getHelperText:w,validate:()=>!!r.error,error:null==(t=r.error)?void 0:t.message,required:!0})}})]})]})]})});g.displayName="GiftCardRecipientForm"},87275:(e,t,l)=>{"use strict";l.d(t,{f:()=>r});var a=l(7620);let r=e=>{(0,a.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:()=>F,FG:()=>O,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:()=>M,bG:()=>j,eJ:()=>i,er:()=>D,fH:()=>_,fY:()=>f,fn:()=>s,o7:()=>T,pW:()=>m,r3:()=>E,uI:()=>w,uc:()=>u,vZ:()=>c,vn:()=>A,yj:()=>L,yy:()=>v});var a=l(20895),r=l(63771);let n=e=>{var t,l,a;let{productNode:r,variantSku:n}=e,i=(null==r||null==(t=r.variants)?void 0:t.edges)||[],s=i.length>1&&!n,o=(null==r||null==(l=r.metafields)?void 0:l.edges)||[],d=s?[]:(null==(a=i.find(e=>e.node.sku===n))?void 0:a.node.metafields.edges)||[];return{productNode:r,variantSku:n,isBaseProduct:s,productAttributes:o,variantAttributes:d,variants:i}},i=e=>e.productNode,s=e=>e.variantSku,o=e=>
1e.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,r.$P)("externalProductNumber",l))?t:(0,r.$P)("product_external_id",l)},p=e=>{let{productNode:t,productLocale:l}=e;if(!t)return null;let{productAttributes:a,variantAttributes:i}=n(e);return(0,r.c)(a,i,"displayName_".concat(l))||t.name},m=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:a,variantAttributes:i,variants:s,isBaseProduct:o}=n(e),d="sharedApplications_".concat(l),u=(0,r.c)(a,i,d);return u||(o?(0,r.$A)(s.map(e=>e.node),d):"")},_=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:a,variantAttributes:i,variants:s,isBaseProduct:o}=n(e),d="sharedFeatures_".concat(l),u=(0,r.c)(a,i,d);return u||(o?(0,r.$A)(s.map(e=>e.node),d):"")},v=e=>{var t,l;let{productNode:a}=e;return a?(null==(l=a.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:a,variantSku:r}=e;if(!a||!r)return{};let n=v(e);if(!n||0===n.length)return{};let i=((null==(t=a.variants)?void 0:t.edges)||[]).find(e=>e.node.sku===r);return(null==i||null==(l=i.node.options)?void 0:l.edges)?Object.fromEntries(n.map(e=>{var t,l,a,r;return[e.displayName,(null==(r=(i.node.options.edges||[]).find(t=>t.node.displayName===e.displayName))||null==(a=r.node.values)||null==(l=a.edges)||null==(t=l[0])?void 0:t.node.label)||""]})):{}},f=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:a,variantAttributes:i,variants:s,isBaseProduct:o}=n(e),d="longDescription_".concat(l),u=(0,r.c)(a,i,d);return u||(o?(0,r.$A)(s.map(e=>e.node),d):"")},h=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:a,variantAttributes:i}=n(e);return(0,r.c)(a,i,"product_attributes_".concat(l))||""},b=e=>{let{productNode:t,productLocale:l}=e;if(!t)return"";let{productAttributes:a,variantAttributes:i}=n(e);return(0,r.c)(a,i,"variant_attributes_".concat(l))||""},y=e=>{let{productNode:t}=e;if(!t)return"";let{productAttributes:l,variantAttributes:a}=n(e);return(0,r.c)(l,a,"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,a;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==(a=s.find(e=>e.node.sku===i))?void 0:a.node.metafields.edges)||[];return{webLinks:(0,r.f7)({productAttributes:d,variantAttributes:u,variants:s.map(e=>e.node),key:"webLinks",isBaseProduct:o})||"",manualPdfs:(0,r.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,r.$P)("slug_".concat(l),t)||t.path)||""},k="/images/default-img.svg",C=(e,t,l)=>{var a,r;return null!=(r=null!=(a=null!=e?e:t)?a:l)?r:k},S=e=>{var t,l,a,r,n,i,s,o,d,u,c;let{productNode:p,variantSku:m}=e;if(!p)return k;let _=null==(t=p.defaultImage)?void 0:t.url,v=null==(r=p.images)||null==(a=r.edges)||null==(l=a[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,a,r,n,i;let s=(null==e||null==(a=e.images)||null==(l=a.edges)?void 0:l.map(e=>e.node))||[];if(!t||!e)return s;let o=null==(i=e.variants)||null==(n=i.edges)||null==(r=n.find(e=>{let{node:{sku:l}}=e;return l===t}))?void 0:r.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,a,r;let n=s(e);if(!n||!e.productNode)return;let i=null==(a=e.productNode.variants)||null==(l=a.edges)||null==(t=l.find(e=>{let{node:{sku:t}}=e;return t===n}))?void 0:t.node,o=null==i||null==(r=i.defaultImage)?void 0:r.url;if(o)return o},T=e=>{var t;return null==(t=e.productNode)?void 0:t.brand},L=e=>{var t,l,a,r,n,i,s,o,d;let u=(null==(a=e.productNode)||null==(l=a.videos)||null==(t=l.edges)?void 0:t.map(e=>e.node))||[],{productNode:c,variantSku:p,productLocale:m}=e,_=(null==c||null==(r=c.variants)?void 0:r.edges)||[],v=null;p?v=_.find(e=>e.node.sku===p):1===_.length&&([v]=_);let g=null==v||null==(s=v.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,a;return(null!=(l=e.order)?l:0)-(null!=(a=t.order)?a:0)}).map(e=>{var t;return{__typename:"Video",title:"",url:null!=(t=e.url)?t:""}});return[...u,...t]}catch(e){return u}},A=e=>{var t,l,a;return(null==(a=e.productNode)||null==(l=a.variants)||null==(t=l.edges)?void 0:t.map(e=>e.node))||[]},D=e=>{let{productNode:t}=e;return t?"true"===(0,r.$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,r.$P)("levy",t)},M=e=>{let{productAttributes:t,variantAttributes:l}=n(e),{productLocale:a}=e;return(0,r.c)(t,l,"saleDates_".concat(a))||""},O=e=>{var t,l;let a=null!=(l=null==(t=e.productNode)?void 0:t.maxPurchaseQuantity)?l:null;return a&&a>0?a:null},F=(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,r.$P)("shippable",i);return(0,r.X6)(d,t,(0,a.r)(u))}},90725:(e,t,l)=>{"use strict";l.d(t,{$n:()=>a.Button,ph:()=>a.Counter});var a=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 a=l(13732);let r=(0,l(98318).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,a.A)(r)},98088:e=>{e.exports={"gift-card-panel__add-to-cart":"style_gift-card-panel__add-to-cart__HIDRR"}}},e=>{e.O(0,[472,2301,6750,3917,9664,1923,6056,9966,9773,1058,4407,3631,8534,2915,5140,7266,8736,7392,9967,3365,8992,587,18,7358],()=>e(e.s=48482)),_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.