1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fff39438-eda5-49b6-8bc2-ae5f1805e758",e._sentryDebugIdIdentifier="sentry-dbid-fff39438-eda5-49b6-8bc2-ae5f1805e758")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3869],{13869:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>I});var a=o(37876),r=o(69241),n=o(15809),d=o.n(n),i=o(89099),l=o(80614),c=o(34796),s=o(14232),u=o(55626),p=o(54666),b=o(54750),g=o(59209),f=o(18847),_=o.n(f),h=o(14301),S=o(75910),m=o(46645);let k=_()(()=>Promise.resolve().then(o.bind(o,10936)),{loadableGenerated:{webpack:()=>[10936]}}),I=function(e){let{currentProduct:t,productVariants:o}=e,n=(0,h.A)(),{isDesktop:f}=(0,m.A)(),_=(0,i.useRouter)(),[I,y]=(0,s.useState)(t),{getLocalizedUrl:v}=(0,u.A)(),V=v("/product/:slug");if((0,s.useEffect)(()=>{I!==t&&y(t)},[t,I]),!o||o.length<=1||n&&f)return null;let w=o.map(e=>{var t,o;return{value:e.id,label:null==e||null==(o=e.variantParametrics)||null==(t=o.find(e=>g.P.ColorText===e.code))?void 0:t.value,...e}});return(0,a.jsx)("div",{children:n&&(0,a.jsx)(k,{"aria-label":"Select Product Variant",options:w,openMenuOnFocus:!0,tabSelectsValue:!1,styles:{valueContainer:e=>({...e,height:"100%"}),control:(e,t)=>({...e,height:56,marginBottom:8,border:"".concat(S.Tj.grey200),boxShadow:"0 0 0 1px ".concat(S.Tj.grey200),"&:hover":{border:"".concat(S.Tj.grey200),backgroundColor:"none"},cursor:"pointer",padding:0,marginTop:10,borderBottomLeftRadius:4*!t.menuIsOpen,borderBottomRightRadius:4*!t.menuIsOpen}),menu:e=>({...e,zIndex:101,marginTop:0,borderTopLeftRadius:0,borderTopRightRadius:0,border:"1px solid ".concat(S.Tj.grey200),width:"calc(100% + 2px)",marginLeft:-1,boxShadow:"none",padding:0}),menuList:e=>({...e,padding:0}),option:(e,t)=>({...e,height:56,tabIndex:0,borderBottom:"1px solid ".concat(S.Tj.grey200),backgroundColor:t.isFocused?S.Tj.grey100:"transparent","&:last-child":{borderBottom:"none"},"&:hover":{backgroundColor:S.Tj.grey100}}),indicatorSeparator:e=>({...e,display:"none"})},defaultValue:w.find(e=>e.id===I),components:{DropdownIndicator:b.K},hideSelectedOptions:!0,value:w.find(e=>e.id===I),isSearchable:!1,className:d().variantSelector,formatOptionLabel:e=>{let t=e.data||e;return(0,a.jsxs)("div",{className:(0,r.A)(d().options,!e.data&&d().selectOptions),...e.innerProps,children:[(0,a.jsx)("div",{className:d().productImageWrapper,children:(0,a.jsx)(c.A,{src:t.productImage.url?t.productImage.url:"/img/noimage.svg",loader:p.A,width:40,height:40,alt:t.label})}),(0,a.jsx)("p",{className:d().productOptionLabel,children:t.label}),I!==(null==e?void 0:e.id)&&(0,a.jsx)(l.A,{onHandValue:t.onHand.value,classes:{wrapper:d().stockStatus,stockIndicator:d().stockIndicator,label:d().stockStatusLabel},hideLabel:!t,displayShortLabel:!!t,flagStockCustomsVariant:"plp",flags:null==e?void 0:e.originalStormFlags})]})},onChange:e=>{y(e.id),_.push(V.replace(":slug",e.uniqueName))}})})}},15809:e=>{e.exports={options:"ProductVariantSelect_options__LYAjV",selectOptions:"ProductVariantSelect_selectOptions__RkD7W",dropdownIndicator:"ProductVariantSelect_dropdownIndicator__PhnUP",stockStatus:"ProductVariantSelect_stockStatus__o7V1e",stockIndicator:"ProductVariantSelect_stockIndicator__GHKVN",stockStatusLabel:"ProductVariantSelect_stockStatusLabel__nirAX",outOfStock:"ProductVariantSelect_outOfStock__5KRas",inStock:"ProductVariantSelect_inStock__Ipdcq",fewInStock:"ProductVariantSelect_fewInStock__iFHMc",productImageWrapper:"ProductVariantSelect_productImageWrapper__y9AQl",productOptionLabel:"ProductVariantSelect_productOptionLabel__27Iom"}}}]);
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.