PageSourceSearch

https://www.princessauto.com/_next/static/chunks/3791-9bb620d1ea5d3d90.js

js princessauto.com collected 2026-10-03 21:39:06 UTC 23,336 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3791],{1223:(l,e,a)=>{"use strict";a.d(e,{FloatingNotificationAlert:()=>u});var t=a(54568),n=a(7620),o=a(91541),i=a(26160),r=a.n(i);let u=(0,n.memo)(l=>{let{keyId:e,delay:a,onClose:i,className:u,clearOnUnmount:d=!0}=l,s=(0,n.useRef)(null);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:r()["floating-alert-container"],ref:s}),(0,t.jsx)(o.Y,{keyId:e,variant:"floating",delay:a,className:u,clearOnUnmount:d,onClose:i,containerRef:s})]})});u.displayName="FloatingNotificationAlert"},10146:l=>{l.exports={content:"styles_content__Trqnu","product-card":"styles_product-card__fp_Bj","product-selection":"styles_product-selection__S7OBP"}},26160:l=>{l.exports={"floating-alert-container":"styles_floating-alert-container__mjmB6"}},28515:(l,e,a)=>{"use strict";a.d(e,{v:()=>o});var t=a(14878),n=a(63771);let o=(l,e,a)=>{var o,i,r,u,d,s,c,p;let b=null!=(i=l&&(null!=(o=(0,n.$P)("externalProductNumber",l))?o:(0,n.$P)("product_external_id",l)))?i:"",m=(null!=(s=l&&("en"===a?null!=(r=null==l?void 0:l.path)?r:"":null!=(d=null!=(u=(0,n.$P)("slug_fr",l))?u:null==l?void 0:l.path)?d:""))?s:"").replaceAll(/(?:^\/+)|(?:\/+$)/g,""),f=null!=(p=null!=(c=null==e?void 0:e.sku)?c:null==l?void 0:l.sku)?p:"";return b===f?t.b.PDP.set(m,b):t.b.PDP.set(m,b,f)}},33745:(l,e,a)=>{"use strict";a.d(e,{I:()=>n});var t=a(12247);let n=(0,t.createServerReference)("7f8f211f7453c3dd7e8446cd7ef7eda2be12bd613a",t.callServer,void 0,t.findSourceMapURL,"getProductBySKU")},39402:(l,e,a)=>{"use strict";a.d(e,{ky:()=>T});var t=a(81058),n=a(9660),o=a(74737);let i=o.Ik({url:o.Yj().optional().nullable(),altText:o.Yj().optional().nullable(),urlTemplate:o.Yj().optional().nullable()}),r=o.Ik({node:i}),u=o.Ik({edges:o.YO(r).optional().nullable()}),d=o.Ik({title:o.Yj().optional().nullable(),url:o.Yj().optional().nullable()}),s=o.Ik({node:d}),c=o.Ik({edges:o.YO(s).optional().nullable()}),p=o.Ik({currencyCode:o.Yj().optional().nullable(),value:o.ai().optional().nullable(),formattedV2:o.Yj().optional().nullable()}),b=o.Ik({min:p.optional().nullable(),max:p.optional().nullable()}),m=o.Ik({price:p.optional().nullable(),salePrice:p.optional().nullable(),basePrice:p.optional().nullable(),retailPrice:p.optional().nullable(),mapPrice:p.optional().nullable(),priceRange:b.optional().nullable(),retailPriceRange:b.optional().nullable(),saved:p.optional().nullable(),bulkPricing:o.YO(o.Ik({minimumQuantity:o.ai().optional().nullable(),maximumQuantity:o.ai().optional().nullable()})).optional().nullable()}),f=o.Ik({pageTitle:o.Yj().optional().nullable(),metaDescription:o.Yj().optional().nullable(),metaKeywords:o.Yj().optional().nullable()}),v=o.Ik({isInStock:o.zM().optional().nullable(),hasVariantInventory:o.zM().optional().nullable(),aggregated:o.Ik({availableToSell:o.ai().optional().nullable(),warningLevel:o.ai().optional().nullable()}).optional().nullable()}),y=o.Ik({aggregated:o.Ik({availableToSell:o.ai().optional().nullable(),warningLevel:o.ai().optional().nullable()}).optional().nullable(),isInStock:o.zM().optional().nullable(),byLocation:o.Ik({edges:o.YO(o.Ik({node:o.Ik({locationEntityId:o.ai().optional().nullable(),availableToSell:o.ai().optional().nullable(),warningLevel:o.ai().optional().nullable(),isInStock:o.zM().optional().nullable(),locationEntityTypeId:o.bz().optional().nullable(),locationEntityCode:o.Yj().optional().nullable()})})).optional().nullable()}).optional().nullable()}),I=o.Ik({value:o.ai().optional().nullable(),unit:o.Yj().optional().nullable()}),g=o.Ik({entityId:o.ai().optional().nullable(),displayName:o.Yj().optional().nullable(),isRequired:o.zM().optional().nullable(),values:o.Ik({edges:o.YO(o.Ik({node:o.Ik({label:o.Yj().optional().nullable(),isDefault:o.zM().optional().nullable()})})).optional().nullable()})}),k=o.Ik({entityId:o.ai().optional().nullable(),displayName:o.Yj().optional().nullable(),isRequired:o.zM().optional().nullable()}),j=o.Ik({label:o.Yj().optional().nullable(),isDefault:o.zM().optional().nullable(),hexColors:o.YO(o.Yj()).optional().nullable(),imageUrl:o.Yj().optional().nullable()}),h=o.Ik({key:o.Yj(),value:o.Yj()}),P=o.Ik({node:h}),Y=o.Ik({name:o.Yj().optional().nullable(),path:o.Yj().optional().nullable(),defaultImage:o.Ik({urlTemplate:o.Yj().optional().nullable(),url:o.Yj().optional().nullable()}).optional().nullable()}),_=o.Ik({name:o.Yj().optional().nullable(),path:o.Yj().optional().nullable(),breadcrumbs:o.Ik({edges:o.YO(o.Ik({node:o.Ik({name:o.Yj().optional().nullable(),path:o.Yj().optional().nullable()})})).optional().nullable()}).optional().nullable()}),S=o.Ik({node:_}),x=o.Ik({name:o.Yj().optional().nullable(),value:o.Yj().optional().nullable()}),O=o.Ik({node:x}),N=o.Ik({entityId:o.ai().optional().nullable(),sku:o.Yj().optional().nullable(),weight:I.optional().nullable(),height:I.optional().nullable(),width:I.optional().nullable(),depth:I.optional().nullable(),metafields:o.Ik({edges:o.YO(P).optional().nullable()}).optional().nullable(),options:o.Ik({edges:o.YO(o.Ik({node:g})).optional().nullable()}).optional().nullable(),productOptions:o.Ik({edges:o.YO(o.Ik({node:k})).optional().nullable()}).optional().nullable(),defaultImage:i.optional().nullable(),inventory:y.optional().nullable()}).passthrough(),C=o.Ik({node:N}),E=o.RZ(()=>o.Ik({id:o.Yj().optional().nullable(),name:o.Yj().optional().nullable(),path:o.Yj().optional().nullable(),sku:o.Yj().optional().nullable(),entityId:o.ai().optional().nullable(),brand:Y.optional().nullable(),defaultImage:i.optional().nullable(),customFields:o.Ik({edges:o.YO(O).optional().nullable()}
1).optional().nullable(),seo:f.optional().nullable(),prices:m.optional().nullable(),metafields:o.Ik({edges:o.YO(P).optional().nullable()}).optional().nullable(),variants:o.Ik({edges:o.YO(o.Ik({node:o.Ik({inventory:o.Ik({isInStock:o.zM().optional().nullable()}).optional().nullable()})})).optional().nullable()}).optional().nullable()})),w=o.Ik({id:o.Yj().optional().nullable(),name:o.Yj().optional().nullable(),entityId:o.ai().optional().nullable(),images:u.optional().nullable(),defaultImage:i.optional().nullable(),path:o.Yj().optional().nullable(),videos:c.optional().nullable(),customFields:o.Ik({edges:o.YO(O).optional().nullable()}).optional().nullable(),upc:o.Yj().optional().nullable(),mpn:o.Yj().optional().nullable(),gtin:o.Yj().optional().nullable(),sku:o.Yj().optional().nullable(),prices:m.optional().nullable(),seo:f.optional().nullable(),metafields:o.Ik({edges:o.YO(P).optional().nullable()}),inventory:v.optional().nullable(),variants:o.Ik({edges:o.YO(C).optional().nullable()}),relatedProducts:o.Ik({edges:o.YO(o.Ik({node:E})).optional().nullable()}).optional().nullable(),productOptions:o.Ik({edges:o.YO(o.Ik({node:o.KC([o.Ik({__typename:o.eu("CheckboxOption"),entityId:o.ai().optional().nullable(),displayName:o.Yj().optional().nullable(),isRequired:o.zM().optional().nullable(),checkedByDefault:o.zM().optional().nullable()}),o.Ik({__typename:o.eu("MultipleChoiceOption"),entityId:o.ai().optional().nullable(),displayName:o.Yj().optional().nullable(),isRequired:o.zM().optional().nullable(),values:o.Ik({edges:o.YO(o.Ik({node:j})).optional().nullable()}).optional().nullable()}),o.Ik({__typename:o.Yj(),entityId:o.ai().optional().nullable(),displayName:o.Yj().optional().nullable(),isRequired:o.zM().optional().nullable()})])})).optional().nullable()}).optional().nullable(),brand:Y.optional().nullable(),categories:o.Ik({edges:o.YO(S).optional().nullable()}).optional().nullable()}).passthrough();a(2375);let A=o.Ik({en:o.Yj(),fr:o.Yj()}),T=(0,t.xP)({reducerPath:"productDetailsApi",baseQuery:(0,n.cw)({baseUrl:"/api/products/",credentials:"same-origin"}),tagTypes:["Product","ProductPlacement"],keepUnusedDataFor:600,refetchOnMountOrArgChange:600,endpoints:l=>({fetchProductDetailsBySKU:l.query({query:l=>"".concat(l,"/getProductDetailsBySKU"),providesTags:(l,e,a)=>[{type:"Product",id:"sku-".concat(a)},{type:"Product",id:"LIST"}],keepUnusedDataFor:900,serializeQueryArgs:l=>{let{queryArgs:e}=l;return{sku:e}},merge:(l,e)=>e,forceRefetch:l=>{let{currentArg:e,previousArg:a}=l;return e!==a},transformResponse:l=>{if(!l.success||!l.data)throw Error("Invalid response format from API");let e=w.safeParse(l.data);if(!e.success)throw console.error("Product validation failed:",e.error.format()),Error("Product validation failed: ".concat(e.error.message));return e.data}}),fetchProductDetailsById:l.query({query:l=>"".concat(l,"/getProductDetailsById"),providesTags:(l,e,a)=>[{type:"Product",id:"id-".concat(a)},{type:"Product",id:"LIST"}],keepUnusedDataFor:900,serializeQueryArgs:l=>{let{queryArgs:e}=l;return{id:e}},merge:(l,e)=>e,forceRefetch:l=>{let{currentArg:e,previousArg:a}=l;return e!==a},transformResponse:l=>{if(!l.success||!l.data)throw Error("Invalid response format from API");let e=w.safeParse(l.data);if(!e.success)throw console.error("Product validation failed:",e.error.format()),Error("Product validation failed: ".concat(e.error.message));return e.data}}),fetchProductPlacementInStore:l.query({query:l=>{let{sku:e,storeId:a}=l;return"".concat(e,"/getProductPlacementInStore/").concat(a)},providesTags:(l,e,a)=>{let{sku:t,storeId:n}=a;return[{type:"ProductPlacement",id:"".concat(t,"-").concat(n)}]},keepUnusedDataFor:600,serializeQueryArgs:l=>{let{queryArgs:e}=l,{sku:a,storeId:t}=e;return{sku:a,storeId:t}},transformResponse:l=>{if(!l.success||!l.data)throw Error("Invalid response format from API");let e=A.safeParse(l.data);if(!e.success)throw console.error("Product validation failed:",e.error.format()),Error("Product validation failed: ".concat(e.error.message));return e.data}})})}),{useFetchProductDetailsBySKUQuery:V,useFetchProductDetailsByIdQuery:L,useFetchProductPlacementInStoreQuery:R,useLazyFetchProductDetailsBySKUQuery:M,useLazyFetchProductDetailsByIdQuery:z,useLazyFetchProductPlacementInStoreQuery:F}=T},40104:(l,e,a)=>{"use strict";a.d(e,{Zx:()=>t.Zx,ky:()=>n.ky});var t=a(86679),n=a(39402);n.ky,t.Zx},70092:(l,e,a)=>{"use strict";a.d(e,{O:()=>d});var t=a(54568),n=a(10790),o=a(78641),i=a(33745),r=a(41159),u=a(30800);let d=l=>{let e=e=>{let{productNode:a,variantEntityId:d,sku:s,...c}=e,p=(0,r.GV)(l=>(0,u.EW)(l,d)),b=(0,r.jL)(),m=(0,o.c)();if(!d)return null;let f=async()=>{var l,e;let t=a;if(!s&&!a)return void console.warn("withAddToCompare: SKU or productNode must be provided");
1if(!a&&s&&(t=await (0,i.I)(s)),!t)return;let n=null==(e=t.variants.edges)||null==(l=e.find(l=>l.node.entityId===d))?void 0:l.node.sku;if(!n)return;let o=await (0,i.I)(n);p&&o?b((0,u.Rz)(d)):o&&d&&b((0,u.$t)({productNode:o,variantEntityId:d}))},v={...c,onClick:f};return(0,t.jsx)(l,{...v,IconLeft:p?n.CompareSolid:n.CompareOutline,children:m(p?"product.compare.added.label":"product.compare.label")})};return e.displayName="withAddToCompare(".concat(l.displayName||l.name||"Component",")"),e}},78962:l=>{l.exports={footer:"styles_footer____dVV",footer__btn:"styles_footer__btn__QyTMM","footer__btn--view-details":"styles_footer__btn--view-details__94yIq"}},84373:(l,e,a)=>{"use strict";a.d(e,{ProductSelectorSidebar:()=>z});var t=a(54568),n=a(83985),o=a(78641),i=a(7620),r=a(20895),u=a(63771),d=a(88180),s=a(30800),c=a(47799),p=a(40104),b=a(41159),m=a(98722),f=a(13185),v=a(86352),y=a(8227),I=a(97101),g=a(34993),k=a(85084),j=a(10790),h=a(63897);let P=l=>{let{showError:e,failureMessage:a}=l,n=(0,o.c)();return e||a?(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(h.Fc,{variant:"inline",CustomIcon:j.ErrorSolid,showCloseButton:!0,type:"error",message:n("product.sidebar.options.required.label")}),a&&(0,t.jsx)(h.Fc,{variant:"inline",CustomIcon:j.ErrorSolid,showCloseButton:!0,type:"error",message:a})]}):null};var Y=a(10146),_=a.n(Y);let S=l=>{var e,a,r,u,d;let{productNode:s,variantProductNode:c,selectedVariant:p,selectedVariantImage:m,productName:j,route:h,PALProductId:Y,showError:S,failureMessage:x,onSelectVariant:O,onProductClick:N}=l,C=(0,o.c)(),E=(0,I.a8)(),w=(0,b.GV)(k.rh),A=(0,i.useMemo)(()=>!!E&&(0,g.m)(E),[E]),T=null===p,V=(0,i.useMemo)(()=>{var l,e,a,t,n;let o={...null!=(l=null==c?void 0:c.prices)?l:null==s?void 0:s.prices};if(A&&!c&&T){let l=w.find(l=>l.data.product_entity_id===(null==s?void 0:s.entityId)),i=null!=(a=null==l||null==(e=l.variations)?void 0:e.map(l=>{var e,a;return null!=(a=null!=(e=l.data.facet_price)?e:l.data.list_price)?a:0}))?a:[];if(i.length>0){let l=Math.min(...i),e=Math.max(...i);o.priceRange={...o.priceRange,min:{...null==(t=o.priceRange)?void 0:t.min,value:l},max:{...null==(n=o.priceRange)?void 0:n.max,value:e}}}}return o},[c,s,A,T,w]),L=(0,t.jsx)(f.c,{isBaseProduct:T,prices:V});return(0,t.jsxs)("div",{className:_().content,children:[(0,t.jsx)("div",{className:_()["product-card"],children:(0,t.jsx)(n.EngagementProductCard,{imageSrc:null!=(u=null==m?void 0:m.url)?u:"/images/default-img.svg",imageAlt:null==m?void 0:m.altText,productName:j,productLink:h,priceDisplay:L,review:(0,t.jsx)(v.A,{PALProductId:Y}),actionButton:null,enableOutOfStockLabel:!0,isOutOfStock:(null==c||null==(e=c.inventory)?void 0:e.isInStock)===!1,outOfStockLabel:C("productcard.availability.outofstock.label"),onProductClick:N})}),(0,t.jsxs)("div",{className:_()["product-selection"],children:[(0,t.jsx)(P,{showError:S,failureMessage:x}),(0,t.jsx)(n.InputLabel,{htmlFor:"product-options",label:C("product.form.required.label"),required:!0,asteriskAtStart:!0}),(0,t.jsx)(y.l,{variantSKU:null!=(d=null==p?void 0:p.sku)?d:null,productSku:null==s?void 0:s.sku,productOptions:(null==s||null==(a=s.productOptions.edges)?void 0:a.map(l=>l.node))||[],variants:(null==s||null==(r=s.variants.edges)?void 0:r.map(l=>l.node))||[],showRequired:!0,onSelectVariant:O})]})]})};var x=a(75981),O=a(25150),N=a.n(O),C=a(67679),E=a(70092),w=a(71652),A=a(89285),T=a(36531),V=a(78962),L=a.n(V);let R=l=>{let{mode:e,isAvailable:a,productEntityId:n,selectedVariantEntityId:r,quantity:u,lineItemId:s,productNode:p,route:f,productName:v,onValidationError:y,onActionFailure:g,productStockLevel:k,PALProductId:j}=l,h=(0,o.c)(),P=(0,C.z)(x.$n),Y=(0,w.O)(x.$n),_=(l=>{let e=e=>{let{onClick:a,onSaveFailure:n,productEntityId:i,variantEntityId:r,quantity:u,lineItemId:s,isAvailable:p,onValidation:f,onValidationFunction:v,...y}=e,I=(0,b.jL)(),g=(0,o.c)(),[k]=(0,A._1)(),j=(0,b.GV)(m.UW),h=(0,d.G)({mode:"language"}),P=async l=>{if(f&&v)return void v();if(s&&r&&i&&u)try{var e;if(!p){null==n||n(g("product.sidebar.options.outOfStock.label"));return}await k({lineItemId:s,payload:{productEntityId:i,variantEntityId:r,quantity:u},language:h,storeId:null!=(e=null==j?void 0:j.toString())?e:""}).unwrap(),I((0,c.N6)()),null==a||a(l)}catch(l){null==n||n(l)}},Y={...y,onClick:P};return(0,t.jsx)(l,{...Y})};return e.displayName="SaveActionButton",e})(x.$n),S=(0,E.O)(x.$n),O=(0,b.jL)(),V=(0,b.GV)(m.UW),R=(0,b.GV)(c.fU),M=(0,I.rd)(),z=(0,i.useMemo)(()=>{var l,e,a,t,n,o,i,u,d,s,c,b,m;
1if(!p)return{};let f=(null==(e=p.prices)||null==(l=e.basePrice)?void 0:l.value)||0,y=(null==(t=p.prices)||null==(a=t.salePrice)?void 0:a.value)||0,I=y>0?f-y:0,g=null==(o=p.variants)||null==(n=o.edges)?void 0:n.find(l=>l.node.entityId===r),[k,h,P,Y]=(null==(b=p.categories)||null==(c=b.edges)||null==(s=c[0])||null==(d=s.node)||null==(u=d.breadcrumbs)||null==(i=u.edges)?void 0:i.map(l=>l.node.name))||[];return{itemId:j||"",itemName:v||p.name||"",itemBrand:null==(m=p.brand)?void 0:m.name,itemCategory:k,itemCategory2:h,itemCategory3:P,itemCategory4:Y,...(null==g?void 0:g.node.sku)&&{itemVariant:g.node.sku},price:y>0?y:f,quantity:1,...I>0&&{discount:I},...V&&{preferredStoreId:V},sourcePage:(null==R?void 0:R.sourcePage)||"variant_selector",...(null==R?void 0:R.itemListId)&&{itemListId:R.itemListId},...(null==R?void 0:R.itemListName)&&{itemListName:R.itemListName},...(null==R?void 0:R.filtersApplied)&&{filtersApplied:R.filtersApplied}}},[p,r,V,R]);return(0,t.jsxs)("div",{className:L().footer,children:[(0,t.jsx)(x.$n,{className:N()(L().footer__btn,L()["footer__btn--view-details"]),size:"lg",variant:"secondary",onClick:()=>{var l,e,a,t,n,o,i,u,d,s,b,m,y;let I=(null==p||null==(e=p.prices)||null==(l=e.basePrice)?void 0:l.value)||0,g=(null==p||null==(t=p.prices)||null==(a=t.salePrice)?void 0:a.value)||0,k=g>0?I-g:0,h=null==p||null==(o=p.variants)||null==(n=o.edges)?void 0:n.find(l=>
1l.node.entityId===r),[P,Y,_,S]=(null==p||null==(m=p.categories)||null==(b=m.edges)||null==(s=b[0])||null==(d=s.node)||null==(u=d.breadcrumbs)||null==(i=u.edges)?void 0:i.map(l=>l.node.name))||[],x=[P,Y,_,S].filter(Boolean).join(" > ");(0,T.Vd)({productId:j||"",productName:v||(null==p?void 0:p.name)||"",price:g>0?g:I,sku:(null==h?void 0:h.node.sku)||(null==p?void 0:p.sku)||"",...k>0&&{discount:k},...(null==p||null==(y=p.brand)?void 0:y.name)&&{brand:p.brand.name},...x&&{categoryHierarchy:x},...V&&{preferredStore:V},sourceId:"variant_sidebar",sourceName:"Variant Sidebar"}),M.push(f),O((0,c.N6)())},children:h("pdp.related.viewAllDetails.label")}),"add"===e&&a?(0,t.jsx)(P,{className:L().footer__btn,size:"lg",variant:"primary",isAvailable:a,productEntityId:n,variantEntityId:r,onValidation:!r,onValidationFunction:y,onAddToCartFailure:g,addToCartLabel:h("product.addToCart.label"),isBaseProduct:!1,productStockLevel:k,trackingData:z}):"compare"!==e&&"edit"!==e&&!a&&(0,t.jsx)(Y,{className:L().footer__btn,size:"lg",productEntityId:n,variantEntityId:r}),"edit"===e&&(0,t.jsx)(_,{className:L().footer__btn,size:"lg",variant:"primary",productEntityId:n,variantEntityId:r,lineItemId:s,quantity:u,isAvailable:a,onValidation:!r,onValidationFunction:y,onSaveFailure:g,children:h("pdp.related.save.label")}),"compare"===e&&(0,t.jsx)(S,{productNode:p,className:L().footer__btn,size:"lg",variant:"primary",variantEntityId:r})]})};var M=a(28515);let z=()=>{let l=(0,o.c)(),{isOpen:e,productNode:a,variantProductNode:f,selectedVariant:v,selectedVariantEntityId:y,isLoading:I,showError:g,failureMessage:k,isAvailable:j,mode:h,quantity:P,lineItemId:Y,language:_,PALProductId:x,selectedVariantImage:O,productName:N,productStockLevel:C,handleClose:E,handleVariantSelect:w,handleActionFailure:A,handleValidationError:T}=(()=>{var l,e,a,t,n,f,v;let y=(0,b.GV)(c.Vz),I=(0,b.jL)(),g=(0,b.GV)(c.z9),k=(0,b.GV)(c.Kb),j=(0,b.GV)(c.yU),h=(0,b.GV)(c.ti),P=(0,b.GV)(c.bs),Y=(0,b.GV)(m.UW),_=(0,o.c)(),S=(0,d.G)({mode:"language"}),x=(0,b.GV)(s.s6),[O,N]=(0,i.useState)(null),[C,E]=(0,i.useState)(!1),[w,A]=(0,i.useState)(!1),[T,V]=(0,i.useState)(""),[L,R]=(0,i.useState)(null),[M,z]=(0,i.useState)(null),F=null!=(a=null!=(e=null==L?void 0:L.entityId)?e:P)?a:null,[U,q]=(0,i.useState)(null!=(t=null==L||null==(l=L.inventory)?void 0:l.isInStock)?t:null===L),D=null!=(f=O&&(null!=(n=(0,u.$P)("externalProductNumber",O))?n:(0,u.$P)("product_external_id",O)))?f:"",B=null!=(v=null==M?void 0:M.defaultImage)?v:null==O?void 0:O.defaultImage,G=(0,u.c)((null==O?void 0:O.metafields.edges)||[],(null==L?void 0:L.metafields.edges)||[],"displayName_".concat(S)),$=(0,i.useMemo)(()=>{if(!(null==L?void 0:L.inventory))return 0;let l=O?(0,u.$P)("shippable",O):void 0;return(0,u.X6)(L.inventory,null!=Y?Y:null,(0,r.r)(l))},[null==L?void 0:L.inventory,O,Y]);return(0,i.useEffect)(()=>{O&&(R(null),z(null),A(!1),V(""))},[O]),(0,i.useEffect)(()=>{y||(N(null),R(null),z(null),A(!1),V(""),E(!1))},[y]),(0,i.useEffect)(()=>{R(null),z(null)},[g]),(0,i.useEffect)(()=>{let l;return"compare"===k&&(x?(V(_(x)),l=setTimeout(()=>{I((0,s.ET)()),V("")},6e3)):V("")),()=>{clearTimeout(l)}},[x,I,k,_]),(0,i.useEffect)(()=>{(async()=>{if(y&&g){E(!0);try{let l=await I(p.ky.endpoints.fetchProductDetailsById.initiate(g,{forceRefetch:!1}));l.data&&N(l.data)}finally{E(!1)}}})()},[y,g,I]),(0,i.useEffect)(()=>{if(P&&O){var l,e,a;R(null!=(a=null==O||null==(e=O.variants.edges)||null==(l=e.find(l=>{let{node:e}=l;return e.entityId===P}))?void 0:l.node)?a:null)}},[P,O]),(0,i.useEffect)(()=>{(async()=>{if(L){let l=await I(p.ky.endpoints.fetchProductDetailsBySKU.initiate(L.sku,{forceRefetch:!1}));l.data&&z(l.data)}})()},[L,I]),{isOpen:y,productNode:O,variantProductNode:M,selectedVariant:L,selectedVariantEntityId:F,isLoading:C,showError:w,failureMessage:T,isAvailable:U,mode:k,quantity:j,lineItemId:h,language:S,PALProductId:D,selectedVariantImage:B,productName:G,productStockLevel:$,handleClose:()=>{A(!1),V(""),I((0,c.N6)())},handleVariantSelect:l=>{var e,a;A(!1),V(""),q(null!=(a=null==l||null==(e=l.inventory)?void 0:e.isInStock)?a:null===l),R(l)},handleActionFailure:l=>{let e=(l=>{if(!l||"object"!=typeof l)return null;if("data"in l&&l.data&&"object"==typeof l.data)return l.data;if("error"in l&&l.error&&"object"==typeof l.error){let e=l.error;if(e.data&&"object"==typeof e.data)return e.data}return null})(l);if(e){if(e.errorCode){let l=e.errorCode.includes("OUT_OF_STOCK")?(q(!1),_("product.sidebar.options.outOfStock.label")):null;if(l)return void V(l)}if(e.message)return void V(e.message)}if(l&&"object"==typeof l&&"error"in l&&"string"==typeof l.error)return void V(l.error);"string"==typeof l&&V(l)},handleValidationError:()=>{A(!0)}}})(),V=a?(0,M.v)(a,f,_):"",L=(0,t.jsx)(R,{mode:h,productName:N,isAvailable:j,productNode:a,productEntityId:null==a?void 0:a.entityId,selectedVariantEntityId:y,quantity:P,lineItemId:Y,route:V,onValidationError:T,onActionFailure:A,productStockLevel:C,PALProductId:x});return(0,t.jsxs)(n.Sidebar,{title:l("pdp.related.selectProductOptions.label"),isOpen:e,onClose:E,footer:L,isFocusLockEnabled:!0,children:[(0,t.jsx)(n.LoadingOverlayMask,{isLoading:I}),a&&(0,t.jsx)(S,{productNode:a,variantProductNode:f,selectedVariant:v,selectedVariantImage:O,productName:N,route:V,PALProductId:x,showError:g,failureMessage:k,onSelectVariant:w,onProductClick:E})]})}},86679:(l,e,a)=>{"use strict";a.d(e,{Zx:()=>o});var t=a(81058),n=a(9660);let o=(0,t.xP)({reducerPath:"categoriesApi",baseQuery:(0,n.cw)({baseUrl:"/api/categories/",credentials:"same-origin"}
1),tagTypes:["CategoryTree"],keepUnusedDataFor:600,refetchOnMountOrArgChange:600,endpoints:l=>({fetchCategorySubtree:l.query({query:l=>{let{categoryId:e,enrichChildren:a}=l;return"".concat(e,"/tree?enrichChildren=").concat(a)},providesTags:(l,e,a)=>{let{categoryId:t}=a;return[{type:"CategoryTree",id:"subtree-".concat(t)},{type:"CategoryTree",id:"LIST"}]},keepUnusedDataFor:900,serializeQueryArgs:l=>{let{queryArgs:e}=l;return{categoryId:e}},merge:(l,e)=>e,forceRefetch:l=>{let{currentArg:e,previousArg:a}=l;return e!==a},transformResponse:l=>{if(!Array.isArray(l))throw Error("Invalid response format from category tree API");return l}})})}),{useFetchCategorySubtreeQuery:i,useLazyFetchCategorySubtreeQuery:r}=o},91541:(l,e,a)=>{"use strict";a.d(e,{A:()=>s,Y:()=>d});var t=a(54568),n=a(63897),o=a(7620),i=a(97101),r=a(41159),u=a(11258);let d=l=>{let{keyId:e,variant:a="inline",delay:d,clearOnUnmount:s,onClose:c,containerRef:p,className:b}=l,m=(0,r.jL)(),f=(0,r.GV)(l=>l.notification),v=f&&(null==f?void 0:f[e]),y=(0,o.useCallback)(()=>{m((0,u.XR)({key:e})),c&&c()},[m,e,c]);return((0,o.useEffect)(()=>{if(v&&d){let l=setTimeout(()=>{y()},d);return()=>clearTimeout(l)}},[v,d,y]),(0,o.useEffect)(()=>{if(!s)return;let l=performance.now();return()=>{performance.now()-l<100||m((0,u.XR)({key:e}))}},[m,s,e]),v)?(0,t.jsx)(n.Fc,{onClose:y,variant:a,type:v.type,message:(l=>"string"==typeof l?l:"object"==typeof l&&null!==l&&"text"in l?l.link?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.N_,{href:l.link.href,children:l.link.text})," ",l.text]}):l.text:l)(v.message),container:null==p?void 0:p.current,className:b}):null},s=(0,o.memo)(d)}}]);

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.