1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9875],{17289:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(58168),a=n(10467),o=n(54705),l=n(80045),i=n(96540),c=n(5556),s=n.n(c),d=n(60967),u=n(20954);const m=["styles","onLoad","onError","onLoadingComplete","mainImage","mobileImage","altText","lazyLoad","fallback"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const g=i.forwardRef(((e,t)=>{let{styles:n,onLoad:c,onError:s,onLoadingComplete:g,mainImage:v,mobileImage:f,altText:y,lazyLoad:b,fallback:h}=e,E=(0,l.A)(e,m);const w=v,A=f,I=y,C=b?{loading:"lazy"}:{};let _="",S="";if(w&&w.image){let e=(0,u.bv)(w.image,w);_=e,S=`${e} 1920w`}if(A&&A.image){let e=(0,u.bv)(A.image,A);_=e,S=`${e} 429w, ${S}`}const x=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({src:_,srcSet:S,sizes:"100vw",htmlWidth:(null==A?void 0:A.htmlWidth)||(null==w?void 0:w.htmlWidth)||null,htmlHeight:(null==A?void 0:A.htmlHeight)||(null==w?void 0:w.htmlHeight)||null},E),k=i.useRef(null);i.useImperativeHandle(t,(()=>k.current));const P=i.useRef(!1),M=i.useCallback((e=>{P.current||(P.current=!0,"function"==typeof g&&g(e))}),[g]),O=i.useCallback(function(){var e=(0,a.A)((function*(e){const t=null==e?void 0:e.target;try{t&&"function"==typeof t.decode&&(yield t.decode())}catch(e){}"function"==typeof c&&c(e),M(t)}));return function(t){return e.apply(this,arguments)}}(),[c,M]),T=i.useCallback((e=>{"function"==typeof s&&s(e)}),[s]);return i.useEffect((()=>{const e=k.current;e&&(P.current=!1,e.complete&&e.naturalWidth>0&&Promise.resolve().then((()=>{"function"==typeof c&&c({target:e}),M(e)})))}),[x.src,x.srcSet,c,M]),i.createElement(d._,(0,r.A)({ref:k,fallback:h},x,{__css:n,alt:I||""},C,{onLoad:O,onError:T}))}));g.propTypes={altText:s().string,lazyLoad:s().bool,fallback:s().node,mainImage:s().object,mobileImage:s().object,styles:s().object,onLoad:s().func,onError:s().func,onLoadingComplete:s().func},g.displayName="AmplienceImage";const v=g},34771:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(96540),a=n(59146),o=n(40541),l=n(25296),i=n(20954),c=n(40669),s=n(12519);const d=o.A,u=l.A,m=({section:e,sectionIndex:t,parentPageMeta:n=null,rtvActive:o,children:l,childrenByAnchorId:m})=>{var p;const{client:g}=(0,r.useContext)(s.W),v=null==e?void 0:e.slots,f=(Array.isArray(v)?v:[]).filter(c.at),y=m||{},b=Object.values(y).some(Boolean);if(0===f.length&&!l&&!b)return null;const h=new Set(f.map((e=>null==e?void 0:e["anchor-id"])).filter((e=>"string"==typeof e))),E=Object.keys(y).filter((e=>y[e]&&!h.has(e))).map((e=>r.createElement(r.Fragment,{key:`unplaced-${e}`},y[e]))),w=(null==e?void 0:e.anchorId)||`generic-section-${t}`,A=(e=>{const t=(null==e?void 0:e.margins)||{};return{marginTop:{base:`${t.marginTopMobile??40}px`,lg:`${t.marginTop??40}px`},marginBottom:{base:`${t.marginBottomMobile??40}px`,lg:`${t.marginBottom??40}px`}}})(null==e?void 0:e.spacing),I=null==e||null===(p=e.background)||void 0===p?void 0:p.style,C=null==e?void 0:e.backgroundColor,_=(e=>{if(!e)return;const t=(0,i.AH)(e,{mobile:{format:"webp"},desktop:{format:"webp"}});return t.url||t.urlMobile?{base:t.urlMobile||t.url||void 0,md:t.url||void 0}:void 0})(null==e?void 0:e.backgroundImage),S="sticky"===(null==I?void 0:I.position),x="transitionTop"===(null==I?void 0:I.position),k={base:null!=_&&_.base?`url(${_.base})`:void 0,md:null!=_&&_.md?`url(${_.md})`:void 0},P="none"===(M=null==I?void 0:I.repeat)?"no-repeat":M||"no-repeat";var M;const O=S||x?"center top":"center",T=(null==I?void 0:I.size)||"cover",D=!S&&!x;return r.createElement(a.a,{id:w,position:"static",scrollMarginTop:"var(--anchor-scroll-offset, 72px)",overflow:"visible",width:"100%",maxWidth:"2560px",marginLeft:"auto",marginRight:"auto",marginTop:A.marginTop,marginBottom:A.marginBottom},x&&((null==_?void 0:_.base)||(null==_?void 0:_.md))&&r.createElement(a.a,{position:"relative",height:0},r.createElement(a.a,{id:`${w}-transition-top`,position:"absolute",left:0,right:0,top:0,transform:"translateY(-90%)",zIndex:1,pointerEvents:"none",lineHeight:0},r.createElement(a.a,{as:"picture",display:"block"}
1,(null==_?void 0:_.base)&&(null==_?void 0:_.md)&&r.createElement("source",{media:"(max-width: 767px)",srcSet:_.base}),r.createElement(a.a,{as:"img",width:"100%",display:"block",src:(null==_?void 0:_.md)||(null==_?void 0:_.base),alt:"",objectFit:T})))),r.createElement(a.a,{position:"static",overflow:"clip",backgroundColor:C,backgroundImage:D?k:void 0,backgroundRepeat:D?P:void 0,backgroundPosition:D?O:void 0,backgroundSize:D?T:void 0,display:S?"grid":"flex",flexDirection:S?void 0:"column",gridTemplateColumns:S?"minmax(0, 1fr)":void 0},S&&r.createElement(a.a,{gridColumn:1,gridRow:1,pointerEvents:"none"},r.createElement(a.a,{position:"sticky",top:"0",height:"100dvh",backgroundImage:k,backgroundRepeat:P,backgroundPosition:O,backgroundSize:T})),r.createElement(a.a,{gridColumn:S?1:void 0,gridRow:S?1:void 0,position:"static"},f.map(((e,t)=>{var l,i;return r.createElement(r.Fragment,{key:(null==e||null===(l=e._meta)||void 0===l?void 0:l.deliveryId)||(null==e||null===(i=e._meta)||void 0===i?void 0:i.name)||t},r.createElement(a.a,{position:x?"relative":"static",zIndex:x?2:void 0},null!=g&&g.vse?r.createElement(u,{content:e,parentPageMeta:n,rtvActive:o}):r.createElement(d,{content:e,parentPageMeta:n})),y[String(null==e?void 0:e["anchor-id"])])})),E,l)))};m.displayName="GenericSection";const p=m},38511:(e,t,n)=>{n.d(t,{t:()=>a});var r=n(96540);const a=(0,n(37513).w)({displayName:"RightArrowIcon",viewBox:"0 0 24 24",path:r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.43494 2.43934C7.01487 1.85355 7.95511 1.85355 8.53503 2.43934L18 12L8.53503 21.5607C7.95511 22.1464 7.01487 22.1464 6.43494 21.5607C5.85502 20.9749 5.85502 20.0251 6.43494 19.4393L13.7998 12L6.43494 4.56066C5.85502 3.97487 5.85502 3.02513 6.43494 2.43934Z",fill:"currentColor"})})},40292:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(96540);const a=(e,t,n)=>{(0,r.useEffect)((()=>{if(e.current){const r=new MutationObserver(t);return r.observe(e.current,n),()=>r.disconnect()}}),[t,n])}},40897:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var r=n(54705),a=n(58168),o=n(96540),l=n(5556),i=n.n(l),c=n(67234),s=n(75828),d=n(9e4),u=n(3411),m=n(54183),p=n(77182),g=n(85353),v=n(85248),f=n(73784),y=n(40541),b=n(25296),h=n(84819),E=n(11987),w=n(12519);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const C=(e,t)=>{var n;return"v2"===e?null==t||null===(n=t.image)||void 0===n?void 0:n.content:null==t?void 0:t.image},_=(e,t)=>{var n;return"v2"===e?null==t||null===(n=t.image)||void 0===n?void 0:n.color:null==t?void 0:t.color},S=({size:e,variant:t,pdpContent:n,rtvActive:r,products:l})=>{var i,A,S,x,k,P,M,O,T,D,j,L,B;const R=(0,p.o)("ProductSetPartial",{variant:t,size:e}),F=(0,m.A)({base:"mobile",lg:"desktop"}),W=null==n||null===(i=n.productSet)||void 0===i?void 0:i.background,N=!(null==n||null===(A=n.productSet)||void 0===A||null===(S=A.logo)||void 0===S||!S.content),z=null==n||null===(x=n.productSet)||void 0===x||null===(k=x.description)||void 0===k?void 0:k.content,H=null==n||null===(P=n.productSet)||void 0===P||null===(M=P.title)||void 0===M?void 0:M.text,G=(0,h.WM)(n),{client:q}=(0,o.useContext)(w.W),V={main:{width:"1320"},mobile:{width:"1240"}};return o.createElement(c.s,{flexDirection:"column"},!!H&&o.createElement(g.D,(0,a.A)({as:"h6",color:null!=n&&null!==(O=n.productSet)&&void 0!==O&&null!==(T=O.title)&&void 0!==T&&T.color?null==n||null===(D=n.productSet)||void 0===D||null===(j=D.title)||void 0===j?void 0:j.color:"white",textAlign:"center",size:"h7"},R.title),H),o.createElement(s.x,R.gridContainer,G&&W&&o.createElement(d.E,(0,a.A)({bgColor:_(G,W),display:"flex"},R.backgroundGridItem),null!=q&&q.vse?o.createElement(b.A,{content:I(I({},C(G,W)),{},{customMainImageTransformations:V.main,customMobileImageTransformations:V.mobile}),wrapperStyles:I({},R.backgroundGridItemImage),styles:{height:"100%",width:"100%",objectFit:"cover",borderRadius:"16px"},rtvActive:r}):o.createElement(y.A,{content:I(I({},C(G,W)),{},{customMainImageTransformations:V.main,customMobileImageTransformations:V.mobile}),wrapperStyles:I({},R.backgroundGridItemImage),styles:{height:"100%",width:"100%",objectFit:"cover",borderRadius:"16px"}})),o.createElement(d.E,R.contentGridItem,o.createElement(c.s,R.contentContainer,N&&o.createElement(o.Fragment,null,null!=q&&q.vse?o.createElement(b.A,{content:I(I({},n.productSet.logo.content),{},{customMainImageTransformations:V.main,customMobileImageTransformations:V.mobile}),wrapperStyles:I({},R.contentContainerImage),rtvActive:r}):o.createElement(y.A,{content:I(I({},n.productSet.logo.content),{},{customMainImageTransformations:V.main,customMobileImageTransformations:V.mobile}),wrapperStyles:I({},R.contentContainerImage)})),!!z&&o.createElement(E.A,{color:(null==n||null===(L=n.productSet)||void 0===L||null===(B=L.description)||void 0===B?void 0:B.color)||"white",content:z}))),!!l&&o.createElement(d.E,R.productGridItem,"desktop"===F&&o.createElement(u.r,{columns:{base:2,xl:3},spacingX:6,spacingY:8,placeItems:"start center",maxWidth:"1122px",margin:"0 auto"},l),"desktop"!==F&&o.createElement(v.A,{sx:{".sc-indicators":{justifyContent:"center",marginTop:"4"}},showControls:!1},l.map(((e,t)=>o.createElement(f.A,{key:null!=e&&e.id?null==e?void 0:e.id:t},e)))))))};
1S.propTypes={pdpContent:i().object,products:i().node,size:i().oneOf(["default","full"]),variant:i().oneOf(["default","full"]),rtvActive:i().bool};const x=S},55759:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Hr});var r=n(10467),a=n(54705),o=n(96540),l=n(22254),i=n(5556),c=n.n(i),s=n(6442),d=n(71073),u=n(46329),m=n(54721),p=n(58168),g=n(58065),v=n(56347),f=n(77182),y=n(79637),b=n(59146),h=n(65958),E=n(62345),w=n(77950),A=n(59326),I=n(68072),C=n(57751),_=n(40544),S=n(41806),x=n(60320),k=n(31843),P=n(17287),M=n(40292),O=n(57204);const T=({product:e})=>{var t,n,r,a,l;const{yotpoReviewsEnabled:i}=(0,o.useContext)(x.d),c=(0,s.A)(),d=(0,P.A)(),u=o.useRef(),m=void 0===(null==e?void 0:e.c_showReviews)||(null==e?void 0:e.c_showReviews),p=(0,k.c)(),[g,v]=o.useState(!0);(0,M.A)(u,(function(){return!!u.current.querySelector(".write-question-review-button")&&(v(!1),!0)}),{attributes:!0,childList:!0,subtree:!0}),(0,o.useEffect)((()=>{if(g||!i||!m)return;if(void 0===d.customerId)return;if(null==d?void 0:d.isRegistered)return;const e=u.current;if(!e)return;const t=e.querySelector(".write-question-review-button");t&&t.remove()}),[g,i,m,d,u]),(0,o.useEffect)((()=>()=>{}),[]);const[f,y]=(0,o.useState)(void 0);return(0,o.useEffect)((()=>{let t;null!=e&&e.c_anticipatedShipDate&&(t=(0,O.i)(e.c_anticipatedShipDate)),y(t)}),[e]),!i||!m||e&&(null!=e&&e.c_isCFItem||null!=e&&e.c_isPOItem)||f&&new Date<=f?null:!f||new Date>f?o.createElement(b.a,{layerStyle:"responsiveContainer",overflowY:"auto",overflowX:"hidden",backgroundColor:"celestialSky"},o.createElement(b.a,{position:"relative",fontWeight:"700",fontSize:"22px",lineHeight:"24px",color:"white",top:{base:"36px",lg:"96px"}},c.formatMessage({defaultMessage:[{type:0,value:"Reviews"}],id:"product_detail.accordion.button.reviews"})),o.createElement("div",{id:"yotpo-reviews-widget",ref:u,suppressHydrationWarning:!0,className:"yotpo yotpo-main-widget","data-product-id":(null==e||null===(t=e.master)||void 0===t?void 0:t.masterId)??(null==e?void 0:e.id),"data-price":(null==e||null===(n=e.master)||void 0===n?void 0:n.price)??(null==e?void 0:e.price),"data-currency":null==e?void 0:e.currency,"data-name":null==e?void 0:e.name,"data-url":p?"":null===(r=window)||void 0===r||null===(a=r.location)||void 0===a||null===(l=a.href)||void 0===l?void 0:l.split("?")[0],"data-image-url":(()=>{if(null!=e&&e.imageGroups){let t=e.imageGroups.find((t=>{var n;return(null===(n=t.images)||void 0===n?void 0:n.length)&&(!e.master||!t.variationAttributes)}));if(t)return t.images[0].link}return""})(),"data-description":null==e?void 0:e.shortDescription,"data-lang":c.locale.substring(0,2),style:{scrollMarginTop:"65px"}})):null};T.propTypes={product:c().object};const D=T;var j=n(40541),L=n(25296),B=n(12519),R=n(77714),F=n(66658),W=n(38621),N=n(2468),z=n(38221),H=n.n(z),G=n(77102),q=n(72176),V=n(75158),$=n(60967),U=n(21052),Q=n(67234),K=n(54284),Y=n(72607);const Z=e=>{var t;let n=!1,r=!!e.displayName,a=!!e.attributeIconSrc,l=!!e.value;const i=(0,f.o)("ProductDetailContent",{variant:"layout"}),c=(null===(t=e.attributeId)||void 0===t?void 0:t.length)>2&&"c_"===e.attributeId.substr(0,2)?e.attributeId.slice(2):e.attributeId,{formatMessage:d}=(0,s.A)();return e.layout===R.mt.NO_TAG&&(r=!1,n=!!e.displayName),o.createElement(o.Fragment,null,"spec"===e.specType?o.createElement(q.ck,null,r?o.createElement(b.a,i.contentWrapper,o.createElement(V.vw,(0,p.A)({variant:"outline"},i.tag),a&&o.createElement($._,(0,p.A)({},i.icon,{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAA",htmlWidth:"120",htmlHeight:"120",loading:"lazy"})),o.createElement(V.d1,null,Y.ND[c]?d(Y.ND[c]):e.displayName)),l&&o.createElement(U.E,(0,p.A)({},i.copyContainer,{size:"sm"}),n&&o.createElement(o.Fragment,null,Y.ND[c]?d(Y.ND[c]):e.displayName,": "),"boolean"==typeof e.value?e.value?"Yes":"No":e.value)):l&&o.createElement(b.a,{color:"white",borderTop:"none",paddingBottom:"0"},o.createElement(U.E,(0,p.A)({},i.copyContainer,{size:"sm"}),n&&o.createElement(o.Fragment,null,Y.ND[c]?d(Y.ND[c]):e.displayName,": "),"boolean"==typeof e.value?e.value?"Yes":"No":e.value))):Y.Dv[c]&&o.createElement(q.ck,null,o.createElement(b.a,{color:"white",borderTop:"none",paddingBottom:"0"},o.createElement(U.E,(0,p.A)({},i.copyContainer,{size:"sm"}),d(Y.Dv[c])))))};Z.propTypes={layout:c().oneOf([R.mt.NO_TAG,R.mt.STACK]),attributeId:c().any,specType:c().any,displayName:c().string,attributeDetails:c().string,attributeIconSrc:c().string,value:c().any};const J=({product:e})=>{const{formatMessage:t,formatNumber:n,locale:r}=(0,s.A)(),a=(0,o.useRef)(null),[l,i]=(0,o.useState)(!0),[c,d]=(0,o.useState)(!1),u=(0,f.o)("ProductDetailContent");
1if(e&&e.imageGroups&&e.imageGroups.length>0)for(let t=0;t<e.imageGroups.length&&(!e.imageGroups[t].images||0===e.imageGroups[t].images.length||"large"!==e.imageGroups[t].viewType);t++);(0,o.useEffect)((()=>{var e;(null==a||null===(e=a.current)||void 0===e?void 0:e.offsetHeight)>400&&d(!0)}),[a]);const m=null!=e&&e.c_productSpecs?(null==e?void 0:e.c_productSpecs.length)>0&&(null==e?void 0:e.c_productSpecs.filter((e=>"ageRange"!==e.attributeId&&"dimLengthMM"!==e.attributeId&&"dimLengthIN"!==e.attributeId&&"dimWidthMM"!==e.attributeId&&"dimWidthIN"!==e.attributeId&&"dimHeightMM"!==e.attributeId&&"dimHeightIN"!==e.attributeId&&"dimWeightKG"!==e.attributeId&&"dimWeightLB"!==e.attributeId&&"batteryInfo"!==e.attributeId&&"electricalInfo"!==e.attributeId?e:null))):null,g={};for(const t of(null==e?void 0:e.c_productSpecs)||[]){const{attributeId:e,value:n}=t;g[e]=n}return e&&(Object.keys(g).length>0||m&&m.length>0)?o.createElement(Q.s,(0,p.A)({id:"product-specs"},u.productSpecsContainer,{alignItems:"flex-start"}),o.createElement(b.a,(0,p.A)({},u.productSpecsContentContainer,{position:"relative"}),o.createElement(b.a,(0,p.A)({},u.clampContainer,{className:c&&l?"collapse":"full",ref:a}),(null==e?void 0:e.c_productIncludes)&&o.createElement(b.a,u.contentWrapper,o.createElement(V.vw,(0,p.A)({variant:"outline"},u.tag),o.createElement(E.uQ,{marginRight:"8.75px",marginTop:"0.75px",height:"16.5px",width:"16.5px"}),o.createElement(V.d1,null,t({id:"product_detail.product_specifications.includes",defaultMessage:[{type:0,value:"Includes"}]}))),o.createElement(U.E,(0,p.A)({},u.copyContainer,{size:"sm"}),null==e?void 0:e.c_productIncludes)),(Object.keys(g).length>0||m&&m.length>0)&&o.createElement(b.a,u.contentWrapper,o.createElement(V.vw,(0,p.A)({variant:"outline"},u.tag),o.createElement(E.j4,{marginRight:"8.75px",marginTop:"0.75px",height:"16.5px",width:"16.5px"}),o.createElement(V.d1,null,t({id:"product_detail.product_specifications.product_specifications",defaultMessage:[{type:0,value:"Product Specifications"}]}))),o.createElement(q.Xy,(0,p.A)({},u.copyContainer,{paddingInlineStart:4}),g&&g.ageRange&&o.createElement(q.ck,null,o.createElement(b.a,{color:"white",borderTop:"none",paddingBottom:"0"},o.createElement(U.E,(0,p.A)({},u.copyContainer,{size:"sm"}),t({defaultMessage:[{type:0,value:"Ages "},{type:1,value:"age"},{type:0,value:"+"}],id:"product_specs.ages"},{age:g.ageRange})))),g&&(g.dimLengthMM||g.dimLengthIN)&&o.createElement(q.ck,null,o.createElement(b.a,{color:"white",borderTop:"none",paddingBottom:"0"},o.createElement(U.E,(0,p.A)({},u.copyContainer,{size:"sm"}),t({defaultMessage:[{type:0,value:"Length IN: "},{type:1,value:"inches"},{type:0,value:" / Length MM: "},{type:1,value:"millimeters"}],id:"product_specs.dim.lengthINandMM"},{inches:n(g.dimLengthIN,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2}),millimeters:n(g.dimLengthMM,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2})})))),g&&(g.dimWidthIN||g.dimWidthMM)&&o.createElement(q.ck,null,o.createElement(b.a,{color:"white",borderTop:"none",paddingBottom:"0"},o.createElement(U.E,(0,p.A)({},u.copyContainer,{size:"sm"}),t({defaultMessage:[{type:0,value:"Width IN: "},{type:1,value:"inches"},{type:0,value:" / Width MM: "},{type:1,value:"millimeters"}],id:"product_specs.dim.widthINandMM"},{inches:n(g.dimWidthIN,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2}),millimeters:n(g.dimWidthMM,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2})})))),g&&(g.dimHeightIN||g.dimHeightMM)&&o.createElement(q.ck,null,o.createElement(b.a,{color:"white",borderTop:"none",paddingBottom:"0"},o.createElement(U.E,(0,p.A)({},u.copyContainer,{size:"sm"}),t({defaultMessage:[{type:0,value:"Height IN: "},{type:1,value:"inches"},{type:0,value:" / Height MM: "},{type:1,value:"millimeters"}],id:"product_specs.dim.heightINandMM"},{inches:n(g.dimHeightIN,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2}),millimeters:n(g.dimHeightMM,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2})})))),g&&(g.dimWeightLB||g.dimWeightKG)&&o.createElement(q.ck,null,o.createElement(b.a,{color:"white",borderTop:"none",paddingBottom:"0"},o.createElement(U.E,(0,p.A)({},u.copyContainer,{size:"sm"}),t({defaultMessage:[{type:0,value:"Weight LB: "},{type:1,value:"pounds"},{type:0,value:" / Weight KG: "},{type:1,value:"kilograms"}],id:"product_specs.dim.weightLBandKG"},{pounds:n(g.dimWeightLB,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2}),kilograms:n(g.dimWeightKG,{locale:r||"en-US",minimumFractionDigits:2,maximumFractionDigits:2})})))),m&&(null==m?void 0:m.length)>0&&(null==m?void 0:m.map(((e,t)=>o.createElement(Z,(0,p.A)({key:t,layout:R.mt.NO_TAG},e)))))))),c&&l?o.createElement(b.a,u.showMoreContainer,o.createElement(K.N,{variant:"underline",fontWeight:"medium",onClick:e=>{e.preventDefault(),i(!1)}},t({defaultMessage:[{type:0,value:"Show More"}],id:"content.product_details.show_more"}))):c&&!l&&o.createElement(b.a,u.showLessContainer,o.createElement(K.N,{variant:"underline",fontWeight:"medium",onClick:e=>{e.preventDefault(),i(!0)}},t({defaultMessage:[{type:0,value:"Show Less"}],id:"content.product_details.show_less"}))))):o.createElement(o.Fragment,null)};J.propTypes={product:c().object};const X=J;var ee=n(20459),te=n(61903),ne=n(68946),re=n(90522);function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ae(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const le=({category:e,product:t,isLoading:n,rtvActive:a,pdpContent:l,pdpBodyContent:i})=>{var c,u,x,k,P,M;const O=(0,f.o)("ProductDetail"),{displayWishlistIcon:T}=(0,W.$9)(),z=(0,A.A)(),q=(0,d.Bj)(t),{formatMessage:V}=(0,s.A)(),[$,U]=(0,o.useState)(void 0),[Q,K]=(0,o.useState)(!1),Y=(0,N.d)(),Z=o.useRef(),{wishlist:J,addToWishlist:ae,removeFromWishlist:le}=(0,I.A)(),ie=(0,v.zy)(),ce=!!J.findItemByProductId(null==t?void 0:t.id),[se,de]=(0,o.useState)({}),[ue,me]=(0,o.useState)(!1),pe=(0,y.j)(),{isOpen:ge,onOpen:ve,onClose:fe}=(0,y.j)(),ye=oe(oe({},R.Ov),{},{onPrimaryAction:F.lQ}),{gtmDataLayer:be}=(0,o.useContext)(G.q),{eventClient:he}=(0,ee.Jr)(),{buildUrl:Ee}=(0,m.A)(),[we,Ae]=(0,o.useState)(null==t?void 0:t.c_redirectAction),[Ie,Ce]=(0,o.useState)(!1),{client:_e}=(0,o.useContext)(B.W);(0,o.useEffect)((()=>{void 0!==(null==z?void 0:z.basketId)&&Ce(!0)}),[null==z?void 0:z.basketId]);const Se=function(){var e=(0,r.A)((function*(e,n,r){try{if(null==e||!e.orderable||!n)return;const a=[{productId:e.productId,quantity:n,price:e.price}],o=(0,ne.u)(t,"pdp");return be(o),null==he||he.cart.logAddToCart((0,te.LR)({location:ie,products:[t],quantity:n,cartId:z.basketId,itemListId:"pdp",itemListName:"pdp",placementIndex:0,isWishlisted:ce,clickTarget:"primary_cart_button"})),yield z.addItemToBasket(a,q,r)}catch(e){return{success:!1,message:(null==e?void 0:e.message)||V(R.gS)}}}));return function(t,n,r){return e.apply(this,arguments)}}(),xe=e=>{Z.current=Y({render:()=>o.createElement(w.A,{title:(null==e?void 0:e.message)||V(R.gS),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{Y.close(Z.current)}})})},ke=function(){var e=(0,r.A)((function*(e){U(t),K(!0);try{const n=z.productItems.filter((t=>t.productId===e.id)),r=(0,re.o)(n[0],"pdp");be(r),null==he||he.cart.logRemoveFromCart((0,te.rb)({products:[t],quantity:n[0].quantity,cartId:z.basketId})),yield z.removeItemFromBasket(n[0].itemId),Z.current=Y({render:()=>o.createElement(w.A,{title:V({defaultMessage:[{type:0,value:"Item removed from cart"}],id:"cart.info.removed_from_cart"}),status:"success",icon:E.Te,isClosable:!0,onClose:()=>{Y.close(Z.current)}})})}catch{xe()}finally{U(void 0),K(!1)}}));return function(t){return e.apply(this,arguments)}}(),Pe=H()(function(){var e=(0,r.A)((function*(e,n){de(oe(oe({},se),{},{[n.id]:e})),U(n);try{const r={productId:n.id,quantity:parseInt(e)},a=z.productItems.filter((e=>e.productId===n.id));null==he||he.cart.logChangeQuantity((0,te.co)({location:"pdp",products:[t],quantity:e,cartId:z.basketId}));const l=yield z.updateItemInBasket(r,a[0].itemId,n);!l.success&&l.quantityRestriction&&(Z.current=Y({render:()=>o.createElement(w.A,{title:V({id:"product.quantity.limit.exceeded",defaultMessage:[{type:0,value:"Quantity Limit exceeded"}]}),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{Y.close(Z.current)}})}))}catch{xe()}finally{U(void 0),de(oe(oe({},se),{},{[n.id]:void 0})),me(1===e)}}));return function(t,n){return e.apply(this,arguments)}}(),750),Me=function(){var e=(0,r.A)((function*(e,t){const{stockLevel:n}=z._productItemsDetail[e.id].inventory;return 0===t?(Pe.flush(),U(e),pe.onOpen(),!1):(Pe.cancel(),t>n||t===e.quantity||void Pe(t,e))}));return function(t,n){return e.apply(this,arguments)}}();if((0,o.useEffect)((()=>{null!=t&&t.c_redirectAction&&Ae(null==t?void 0:t.c_redirectAction)}),[null==t?void 0:t.c_redirectAction]),(0,o.useEffect)((()=>()=>{}),[]),we){const e=Ee(we);return o.createElement(v.rd,{to:{pathname:e}})}return o.createElement(b.a,(0,p.A)({className:"sf-product-detail-page","data-testid":"product-details-page",backgroundImage:null==q?void 0:q.backgroundImage,layerStyle:"page"},O.container),o.createElement(h.B,{layerStyle:"responsiveContainer"},o.createElement(_.A,{product:t,category:(null==e?void 0:e.parentCategoryTree)||[],addToCart:(e,t,n)=>Se(e,t,n),handleRemoveItem:ke,addToWishlist:()=>ae(t.id,{pageType:"PDP",changedItemProduct:t,source:"pdp"}).catch((()=>{})),removeFromWishlist:()=>le(t.id,{pageType:"PDP",changedItemProduct:t}).catch((()=>{})),isInWishlist:ce,isProductLoading:n,isCustomerProductListLoading:!J.isInitialized,pdpContent:l,onItemQuantityChange:Me.bind(void 0,t),itemHasBeenRemoved:Q,showTrash:ue,selectedItem:$,
1isOpen:ge,onOpen:ve,onClose:fe,showStickyBar:!0,rtvActive:a,PDPCTAEnabled:Ie,enableWishlist:!!T})),o.createElement(S.A,(0,p.A)({},ye,{onPrimaryAction:()=>{ke($)},onAlternateAction:()=>{}},pe)),o.createElement(h.B,{spacing:{base:4,lg:8}},o.createElement(b.a,null,null==i?void 0:i.map(((e,t)=>{var n;if(e)return o.createElement(b.a,{key:null==e||null===(n=e._meta)||void 0===n?void 0:n.deliveryId,mt:0===t?0:{base:"4",lg:"8"}},null!=_e&&_e.vse?o.createElement(L.A,{content:e,parentPageMeta:null!=l&&l._meta?l._meta:null,rtvActive:a}):o.createElement(j.A,{content:e,parentPageMeta:null!=l&&l._meta?l._meta:null,data_creative_index:t}))})),o.createElement(X,{product:t}),o.createElement(D,{product:t}),l&&(null==l||null===(c=l.promoSlot)||void 0===c||null===(u=c.content)||void 0===u?void 0:u.id)&&o.createElement(b.a,null,null!=_e&&_e.vse?o.createElement(L.A,{fetch:{id:null===(x=l.promoSlot)||void 0===x||null===(k=x.content)||void 0===k?void 0:k.id},parentPageMeta:null!=l&&l._meta?l._meta:null,rtvActive:a}):o.createElement(j.A,{fetch:[{id:null===(P=l.promoSlot)||void 0===P||null===(M=P.content)||void 0===M?void 0:M.id}],parentPageMeta:null!=l&&l._meta?l._meta:null}))),o.createElement(h.B,{layerStyle:"responsiveContainer"},o.createElement(C.A,(0,p.A)({title:o.createElement(g.A,{defaultMessage:[{type:0,value:"You May Also Like"}],id:"add_to_cart_modal.recommended_products.title.may_also_like"}),zone:"pdp-recommender",products:t&&[t],shouldFetch:()=>null==t?void 0:t.id},O.recommenderContainer)))))};le.propTypes={category:c().object,product:c().object,isLoading:c().bool,match:c().object,rtvActive:c().bool,pdpContent:c().object,pdpBodyContent:c().array};const ie=le;var ce=n(61892),se=n(80045),de=n(46419),ue=n(26938),me=n(18456),pe=n(77440),ge=n(83275),ve=n(42591),fe=n(54183),ye=n(28137),be=n(86161),he=n(58059),Ee=n(42504),we=n(6322),Ae=n(90955),Ie=n(83323),Ce=n(71),_e=n(63668),Se=n(28146),xe=n(51400),ke=n(90438),Pe=n(5768),Me=n(16146),Oe=n(85248),Te=n(73784),De=n(88247),je=n(27871),Le=n(99326);function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}c().bool;const Fe=({imageGroups:e=[],selectedVariationAttributes:t={},size:n,heroClickHandler:r,lazy:a=!0,setSelectedImageIndex:l,children:i})=>{const[c,s]=(0,o.useState)(0),d=(0,f.o)("MediaGallery",{size:n}),u=(0,v.zy)(),{enable360Viewer:m}=(0,je.L)(),g=(0,Se.D)(),[y]=(0,xe.U)(`(min-width: ${g.breakpoints.lg})`),h=y?"desktop":"mobile",{heroImages:w,thumbnailImages:A,markUnavailable:I}=(0,ke.M)({imageGroups:e,selectedVariationAttributes:t,includeAllVideos:!0,videoPosition:"second"}),C=m?(0,Le.LZ)({imageGroups:e,selectedVariationAttributes:t,isMobile:!y,heroImages:w,thumbnailImages:A,setSelectedImageIndex:l}):null,_=(null==C?void 0:C.galleryHeroImages)??w,S=(null==C?void 0:C.galleryThumbnailImages)??A,x=(null==C?void 0:C.reportSelectedIndex)??l;(0,o.useEffect)((()=>{s(0),l(0)}),[u.pathname,u.search]),(0,o.useEffect)((()=>{_.length&&c>_.length-1&&(s(0),l(0))}),[_.length,c,l]);const k=(null==_?void 0:_[c])??(null==_?void 0:_[0]),P=(0,Le.iM)(k),M=a?"lazy":"eager";return o.createElement(Q.s,{className:"mg-wrapper",direction:"row",alignItems:"center",justifyContent:"space-around",gap:5},"desktop"===h?o.createElement(o.Fragment,null,S.length>1&&o.createElement(b.a,{className:"mg-thumbs-wrapper",height:"284px",maxWidth:"68px",position:"relative",sx:{".sc-controls":{flexDirection:"column",position:"absolute",left:"50%",transform:"translateX(-50%)",top:"-40px",bottom:"-40px",justifyContent:"space-between"},".sc-control-prev":{transform:"rotate(90deg)"},".sc-control-next":{transform:"rotate(90deg) scaleX(-1)"},".sc-container":{zIndex:"1"},".sc-item":{_hover:{}},".sc-list":{"--sc-spacing":".25rem"},".sc-control-disabled":{display:"none"}}},o.createElement(Oe.A,{autoHeight:!1,slidesToShow:4,slideDirection:"vertical",showIndicator:!1,controlsVariant:"icon",controlsIcon:o.createElement(E.YJ,{color:"white",width:"32px",height:"32px"})},S.map(((e,t)=>o.createElement(Te.A,{key:t,display:"flex",alignItems:"center",justifyContent:"center",sx:{".mg-thumb-wrapper":{p:"5px",borderColor:"transparent",borderWidth:"1px",borderRadius:"8","&.selected":{backgroundColor:"hasbroShade.400",borderColor:"hasbroShade.500",borderWidth:"1px"},_hover:{backgroundColor:"hasbroShade.400",borderColor:"hasbroShade.500",borderWidth:"1px"}}}},o.createElement(b.a,{className:t===c?"mg-thumb-wrapper selected":"mg-thumb-wrapper"},(0,Le.iM)(e)?o.createElement(Le.$H,{item:e,enabled:m,onClick:()=>{s(t),x(t)},onKeyDown:e=>{if(13===e.keyCode)return x(t),s(t)}}):o.createElement(Pe.A,{src:null==e?void 0:e.link,srcOptions:{w:"100"},imageProps:Re(Re({alt:null==e?void 0:e.alt,loading:M,className:"mg-thumb-img"},d.thumbnailImageItem),{},{sx:{aspectRatio:"1 / 1"},maxHeight:"100%"}),tabIndex:0,onClick:()=>{s(t),x(t)},onKeyDown:e=>{if(13===e.keyCode)return x(t),s(t)}}))))))),k&&o.createElement(b.a,{display:"block",width:"full"},o.createElement(b.a,d.heroImageGroup,_.map(((e,t)=>(0,Le.iM)(e)&&o.createElement(_e.g,(0,p.A)({key:`product-360-${t}`,marginX:"auto"},d.newHeroImage,{ratio:1,display:c===t?"block":"none"}),o.createElement(Le.eC,{item:e,enabled:m,galleryIndex:t,isActive:c===t})))),P?null:"video"!==(null==k?void 0:k.media)?o.createElement(_e.g,(0,p.A)({marginX:"auto"},d.newHeroImage,{ratio:1,onClick:r||(()=>{})}),o.createElement(De.A,{src:k.link,widths:{base:"100vw"},imageProps:{alt:k.alt,loading:M,objectFit:"contain",sx:{aspectRatio:"1/1","@media screen and (max-width: 1024px) and (orientation: portrait)":{height:"auto"}}},_hover:{cursor:"pointer"}})):o.createElement(Q.s,(0,p.A)({marginX:"auto",alignItems:"center",sx:{".video-player-wrapper":{flex:"1"},aspectRatio:"1 / 1"}},d.newHeroImage),o.createElement(Me.Ay,{key:`hero-video-${k.src||c}`,sources:[{src:k.src,type:k.type}],poster:k.poster,onError:()=>I(k.src)}))),i)):o.createElement(b.a,{w:"full"},o.createElement(Oe.A,{autoHeight:!1,slidesToShow:1,onIndexChange:e=>{s(e),x(e)},showControls:!1,sx:{width:"full",".sc-indicators":{justifyContent:"center",marginTop:"4"}}},_.map(((e,t)=>o.createElement(Te.A,{key:t,display:"flex",alignItems:"center",justifyContent:"center"},(0,Le.iM)(e)?o.createElement(b.a,{width:"100%",position:"relative",sx:{aspectRatio:"1 / 1"}},o.createElement(Le.eC,{item:e,enabled:m,galleryIndex:t,isActive:c===t}),t>0&&o.createElement(Le.im,{side:"left"}),t<_.length-1&&o.createElement(Le.im,{side:"right"})):"video"===(null==e?void 0:e.media)?o.createElement(o.Fragment,null,o.createElement(Q.s,(0,p.A)({width:"100%",alignItems:"center",sx:{".video-player-wrapper":{flex:"1"},aspectRatio:"1 / 1"}},d.newHeroImage),o.createElement(Me.Ay,{key:`slide-video-${e.src||t}`,isActive:c===t,sources:[{src:e.src,type:e.type}],poster:e.poster,onError:()=>I(e.src)}))):o.createElement(De.A,{src:null==e?void 0:e.link,imageProps:Re(Re({alt:null==e?void 0:e.alt,loading:"lazy",className:"mg-thumb-img"},d.thumbnailImageItem),{},{sx:{aspectRatio:"1/1"},objectFit:"contain",maxHeight:"100%"}),sx:{width:"100%"},_hover:{cursor:"pointer"},tabIndex:0,onClick:()=>{s(t),x(t),r&&r()}}))))),i))};Fe.propTypes={imageGroups:c().array,selectedVariationAttributes:c().object,size:c().string,heroClickHandler:c().func,lazy:c().bool,setSelectedImageIndex:c().func,children:c().any};const We=Fe;var Ne=n(2298),ze=n(98452),He=n(70122),Ge=n(15860),qe=n(63621),Ve=n(10633),$e=n(9745),Ue=n(85692),Qe
1=n(97491),Ke=n(90161),Ye=n(61263),Ze=n(36191),Je=n(80107),Xe=n(17452);const et=["children"],tt=["isQuickView","productId"],nt=({toggle:e,isOpen:t})=>{const n=(0,s.A)(),[r,a]=o.useState(!1);return t?null:o.createElement(Je.K,{accessibilityLabel:n.formatMessage({defaultMessage:[{type:0,value:"Share"}],id:"product_detail.share"}),borderColor:r?"linkFocusRing":"transparent",borderStyle:"solid",borderWidth:2,color:"textPrimary",icon:o.createElement(Xe.SY,null),onPress:e,pressableProps:{onBlur:()=>a(!1),onFocus:()=>a(!0),testID:"social-share-toggle-button"},size:"sm",variant:"transparent"})};nt.propTypes={toggle:c().func,isOpen:c().bool};const rt=({isOpen:e,productId:t})=>e?o.createElement(Ze.A,{productID:t,justifyContent:{base:"center",lg:"left"},mb:0}):null;rt.propTypes={isOpen:c().bool,productId:c().string};const at=e=>{let{children:t}=e,n=(0,se.A)(e,et);return o.createElement(Qe.a,(0,p.A)({display:"flex",ml:"2"},n),t)};at.propTypes={children:c().node};const ot=e=>{let{isQuickView:t,productId:n}=e,r=(0,se.A)(e,tt);const[a,l]=o.useState(!1);return t?null:o.createElement(at,r,o.createElement(nt,{toggle:()=>l((e=>!e)),isOpen:a}),o.createElement(rt,{isOpen:a,productId:n}))};ot.propTypes={isQuickView:c().bool,productId:c().string};const lt=ot;var it=n(8666);const ct=["currency","prices"],st=e=>{let{currency:t,prices:n={}}=e,r=(0,se.A)(e,ct);const a=(0,s.A)(),{currency:l}=(0,d.H2)(),i=t||l,{price:c,priceMax:u,setPrice:m}=n,g=m??n.salePrice??c,v=g!==n.listPrice?n.listPrice:void 0,f=g??v,y=e=>a.formatNumber(e,{style:"currency",currency:i}),b=a.formatMessage({id:"product_item.label.price",defaultMessage:[{type:0,value:"Price"}]});let h,E,w;return void 0===m&&void 0!==c&&c>=0&&void 0!==u&&u>c?(h=`${y(c)} - ${y(u)}`,w=`${b} ${h}`):void 0===f?(h=a.formatMessage({id:"product_item.label.not_available",defaultMessage:[{type:0,value:"N/A"}]}),w=h):(h=y(f),void 0!==g&&void 0!==v&&v>=0&&g<v?(E=y(v),w=[b,a.formatMessage({id:"product_tile.badge.onSale",defaultMessage:[{type:0,value:"Outlet"}]}),h,a.formatMessage({id:"product_item.label.previous_price",defaultMessage:[{type:0,value:"previous price"}]}),E].join(" ")):w=`${b} ${h}`),o.createElement(Qe.a,(0,p.A)({alignItems:"center",flexDirection:"row",gap:2,testID:"product-price-container"},r),o.createElement(it.hU,{accessibilityLabel:w,color:"textPrimary",testID:"product-price"},h),E?o.createElement(Ye.E,{accessibilityElementsHidden:!0,"aria-hidden":!0,color:"neutral300",importantForAccessibility:"no-hide-descendants",testID:"product-list-price",textDecorationLine:"line-through",variant:"l"},E):null)},dt=({currency:e,prices:t,name:n,sku:r,suppressSocialShare:a,isQuickView:l=!1})=>{const i=(0,s.A)(),c=(0,f.o)("ProductDetail");return o.createElement(Q.s,{flexDirection:"column",rowGap:"1",align:"flex-start",as:"header"},n?o.createElement(Ke.D,{ariaLevel:l?2:1,testID:"product-name",variant:"h5"},n):o.createElement(ce.E,(0,p.A)({isLoaded:n},c.newProductName)),r?o.createElement(Ye.E,{accessibilityRole:"header","aria-level":3,color:"neutral300",testID:"product-sku",textTransform:"uppercase",variant:"s"},i.formatMessage({id:"product_view.sku",defaultMessage:[{type:0,value:"SKU. "},{type:1,value:"sku"}]},{sku:r})):o.createElement(ce.E,(0,p.A)({isLoaded:r},c.productSku)),e?o.createElement(Qe.a,{alignItems:"center",flexDirection:"row",justifyContent:"space-between",width:"100%"},o.createElement(st,{currency:e,prices:t,marginTop:3}),!a&&o.createElement(lt,{isQuickView:l,productId:r})):o.createElement(ce.E,{isLoaded:e}))};dt.propTypes={name:c().string,prices:c().shape({price:c().number||c().undefined,priceMax:c().number||c().undefined,setPrice:c().number||c().undefined,salePrice:c().number||c().undefined,listPrice:c().number||c().undefined}),sku:c().string,currency:c().string,isQuickView:c().bool,suppressSocialShare:c().bool||c().undefined};const ut=dt;var mt=n(52666),pt=n(50660),gt=n(21923),vt=n(24667);const ft=({content:e,testID:t})=>o.createElement(Ye.E,{color:"textPrimary",testID:t,variant:"sHeavy"},o.createElement("div",{className:"product-details-html",dangerouslySetInnerHTML:{__html:e}})),yt=({children:e,icon:t,isExpanded:n,label:r,onPress:a,testID:l})=>{const i={accessibilityLabel:r,accessibilityRole:"button",accessibilityState:{expanded:n},"aria-controls":`${l}-content`,"aria-expanded":n,testID:`${l}-toggle`};return o.createElement(vt.n,{collapsedHeight:60,contentProps:{nativeID:`${l}-content`,testID:`${l}-content-wrapper`},iconOptions:{color:"textPrimary",isCircle:!1,size:20,testID:"chevron-icon"},isExpanded:n,label:o.createElement(Qe.a,{alignItems:"center",flexDirection:"row",gap:2},t,o.createElement(Ye.E,{accessibilityRole:"header","aria-level":4,color:"textPrimary",variant:"mBold"},r)),labelButtonProps:i,noDivider:!0,onPress:a,py:0,width:"100%"},e)};function bt({product:e,handleReadMoreClick:t}
1){const n=(0,s.A)(),[r,a]=o.useState(!1),l=n.formatMessage({defaultMessage:[{type:0,value:"Product Features"}],id:"product_features.label.header"}),i=()=>{r?a(!1):(t(l),a(!0))};return o.createElement(o.Fragment,null,(()=>{if(void 0===e)return null;{const t=[];for(let n=0;n<10;n++){const r="c_productFeature"+(n+1);void 0!==e[r]&&r in e==1&&t.push(e[r])}return t.length>0?1===t.length?o.createElement(Qe.a,{width:"100%"},o.createElement(Ye.E,{accessibilityRole:"header","aria-level":2,color:"textPrimary",variant:"sHeavy"},(0,gt._)(t[0]))):o.createElement(yt,{icon:o.createElement(Xe.O5,{color:"textPrimary",size:20}),isExpanded:r,label:l,onPress:i,testID:"product-features"},o.createElement(Qe.a,{gap:1,role:"list",width:"100%"},t.map(((e,t)=>o.createElement(Qe.a,{flexDirection:"row",gap:2,key:t,role:"listitem"},o.createElement(Ye.E,{color:"textPrimary",variant:"sHeavy"},"â¢"),o.createElement(Qe.a,{flex:1},o.createElement(Ye.E,{color:"textPrimary",variant:"sHeavy"},(0,gt._)(e)))))))):null}})())}bt.propTypes={product:c().object,handleReadMoreClick:c().func};const ht=bt;var Et=n(96089),wt=n(22994),At=n(55952),It=n(24542),Ct=n(93334),_t=n(77176),St=n(47817);const xt=["top","targetId","targetSelector","targetRef","offset","behavior","onTrack","ariaLabelMessage","icon","iconProps"];function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Mt=e=>{let{top:t=0,targetId:n,targetSelector:r,targetRef:a,offset:l=0,behavior:i="smooth",onTrack:c,ariaLabelMessage:d={id:"footer.link.back_to_top",defaultMessage:"Back to top"},icon:u,iconProps:m}=e,g=(0,se.A)(e,xt);const v=(0,s.A)(),f=()=>{if("undefined"==typeof window||"undefined"==typeof document)return 0;const e=null==a?void 0:a.current;if(e&&"getBoundingClientRect"in e)return e.getBoundingClientRect().top+window.scrollY-e.offsetHeight+l;if(r){const e=document.querySelector(r);if(e)return window.pageYOffset+e.getBoundingClientRect().top+l}if(n){const e=n.startsWith("#")?n.slice(1):n,t=document.getElementById(e);if(t)return window.pageYOffset+t.getBoundingClientRect().top+l}return Math.max(0,(t??0)+l)},y=()=>{try{null==c||c()}catch{}"undefined"!=typeof window&&"scrollTo"in window&&window.scrollTo({top:f(),behavior:i})};return u?o.createElement(_t.K,(0,p.A)({"aria-label":v.formatMessage(d),onClick:y,variant:"unstyled",icon:o.cloneElement(u,Pt({},m))},g)):o.createElement(St.$,(0,p.A)({"aria-label":v.formatMessage(d),onPress:y,title:v.formatMessage({defaultMessage:[{type:0,value:"Back to Top"}],id:"footer.link.back_to_top"}),variant:"tertiary",size:"md"},(e=>{const t=["variant","size","onPress","title"];return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))})(g)))};function Ot({campaignFailed:e}){const t=(0,s.A)(),n=e?t.formatMessage({id:"crowdfund_ended_failed",defaultMessage:[{type:0,value:"Campaign did not meet goal"}]}):t.formatMessage({id:"crowdfund_ended",defaultMessage:[{type:0,value:"This campaign has ended"}]});return o.createElement(St.$,{disabled:!0,leftIcon:e?o.createElement(Qe.a,{accessibilityElementsHidden:!0,accessibilityRole:"none",accessible:!1,importantForAccessibility:"no-hide-descendants",testID:"haslab-ended-warning-icon"},o.createElement(Xe.z,null)):void 0,size:"lg",testID:"haslab-ended-button",title:n,variant:"primary",width:"100%"})}const Tt={root:{component:"haslab-sticky",slot:"tracker"},productSummary:{component:"haslab-sticky",slot:"product-summary"},productName:{component:"haslab-sticky",slot:"product-name"},action:{component:"haslab-sticky",slot:"action"}},Dt=({campaignActive:e,name:t,image:n,goalValue:r,goalType:a,endDate:l,fundingStatus:i,currentValue:c,targetRef
1:s,shippingDate:d,tiers:u,offset:m=0})=>{var p;const g=(null==u?void 0:u.length)||null,v=(null==u||null===(p=u.filter((e=>e.status===R.PC.FUNDED)))||void 0===p?void 0:p.length)??null,f=t?`haslab-tracker-back-${t.replace(/\s+/g,"-").toLowerCase()}`:"haslab-tracker-back";return o.createElement(Qe.a,{dataSet:Tt.root,testID:"haslab-sticky-tracker"},o.createElement(Qe.a,{alignItems:"center",dataSet:Tt.productSummary,flexDirection:"row",gap:2,testID:"haslab-sticky-product-summary"},o.createElement(Qe.a,{flexShrink:0,width:64,height:64,borderRadius:"round",overflow:"hidden"},o.createElement(Pe.A,{src:(null==n?void 0:n.disBaseLink)||(null==n?void 0:n.absURL)||(null==n?void 0:n.link),srcOptions:{w:"108"},maxWidth:"64px",imageProps:{alt:null==n?void 0:n.alt,loading:"lazy"},rounded:"full"})),t?o.createElement(Ye.E,{dataSet:Tt.productName,numberOfLines:1,testID:"haslab-sticky-product-name",variant:"mBold"},t):null),o.createElement(Ct.A,{active:e,anticipatedShipDate:d,campaignEndDate:l,currentValue:c,goalValue:r,status:i,tiersUnlocked:v,tiersTotal:g,containerTestID:"haslab-sticky-funding",goalType:a,layout:"sticky"}),o.createElement(Qe.a,{alignItems:"center",dataSet:Tt.action,flexDirection:"row",gap:4,flexShrink:0,testID:"haslab-sticky-action"},e?s&&o.createElement(Mt,{flexBasis:"100%",targetRef:s,offset:m,testID:f}):o.createElement(Ot,{campaignFailed:"failed"===i})))};Dt.propTypes={campaignActive:c().bool,name:c().string,fundingStatus:c().string,image:c().object,shippingDate:c().string,ctaButton:c().array,goalType:c().string,goalValue:c().number,endDate:c().number,currentValue:c().number,targetRef:c().object,tiers:c().array,offset:c().number};const jt=Dt;function Lt({product:e,handleReadMoreClick:t}){const n=(0,s.A)(),[r,a]=o.useState(!1),l=n.formatMessage({defaultMessage:[{type:0,value:"Product Description"}],id:"product_detail.accordion.button.product_detail"});return null!=e&&e.c_useLegacyDescription?o.createElement(yt,{icon:o.createElement(Xe.VY,{color:"textPrimary",size:20}),isExpanded:r,label:l,onPress:()=>{r?a(!1):(t(l),a(!0))},testID:"product-description"},o.createElement(ft,{content:e.longDescription,testID:"product-description-content"})):o.createElement(Qe.a,{width:"100%"},o.createElement(ft,{content:e.longDescription,testID:"product-description-content"}))}Lt.propTypes={product:c().object,handleReadMoreClick:c().func};const Bt=Lt;var Rt=n(14044),Ft=n(10697),Wt=n(71658),Nt=n(1194),zt=n(5444),Ht=n(95323),Gt=n(1870);function qt({legalLines:e,testID:t="product-warnings-link"}){const n=(0,f.o)("ProductDetail"),r=(0,s.A)(),[a,l]=o.useState(!1);return e?o.createElement(o.Fragment,null,o.createElement(Gt.N,{accessibilityRole:"button","aria-expanded":a,"aria-haspopup":"dialog",onPress:()=>l(!0),size:"small",testID:t,underline:!0},r.formatMessage({id:"product_detail.product_specifications.warnings",defaultMessage:[{type:0,value:"Warnings"}]})),o.createElement(Rt.aF,{isOpen:a,onClose:()=>l(!1)},o.createElement(Ft.m,null),o.createElement(Wt.$,(0,p.A)({},n.modalContainer,{ml:{base:"32px"},mr:{base:"32px"},sx:{"::-webkit-scrollbar":{display:"none"}},overflowY:"scroll"}),o.createElement(b.a,n.modalCloseButtonContainer,o.createElement(Nt.s,(0,p.A)({},n.modalCloseButton,{color:"white",position:"absolute",top:"-20px",right:"-30px",borderRadius:"50%"}))),o.createElement(zt.r,n.modalHeader,o.createElement(Q.s,(0,p.A)({flexDirection:"row",alignItems:"center"},n.modalHeaderText),o.createElement(E.YE,null),o.createElement(U.E,{color:"white"},r.formatMessage({id:"product_detail.product_specifications.warnings",defaultMessage:[{type:0,value:"Warnings"}]})))),o.createElement(Ht.c,n.modalContentContainer,o.createElement(b.a,(0,p.A)({},n.productDescModalContent,{dangerouslySetInnerHTML:{__html:e}})))))):null}qt.propTypes={legalLines:c().string,testID:c().string};const Vt=qt;function $t({additionalTitle:e,additionalCopy:t,linkText:n=null,testID:r="product-additional-copy-link"}){const a=(0,s.A)(),l=(0,f.o)("ProductDetail"),[i,c]=o.useState(!1),d=n||e||a.formatMessage({defaultMessage:[{type:0,value:"Learn More"}],id:"account_pulsepremium.nonmember.button.learn_more"});return t||e?o.createElement(o.Fragment,null,o.createElement(Gt.N,{accessibilityRole:"button","aria-expanded":i,"aria-haspopup":"dialog",onPress:e=>{var t,n;null===(t=e.preventDefault)||void 0===t||t.call(e),null===(n=e.stopPropagation)||void 0===n||n.call(e),c(!0)},size:"small",testID:r,underline:!0},d),o.createElement(Rt.aF,{isOpen:i,onClose:()=>c(!1)},o.createElement(Ft.m,null),o.createElement(Wt.$,(0,p.A)({},l.modalContainer,{ml:{base:"32px"},mr:{base:"32px"},sx:{"::-webkit-scrollbar":{display:"none"}},overflowY:"scroll"}),o.createElement(b.a,l.modalCloseButtonContainer,o.createElement(Nt.s,(0,p.A)({},l.modalCloseButton,{color:"white",position:"absolute",top:"-20px",right:"-30px",borderRadius:"50%"}))),o.createElement(zt.r,l.modalHeader,o.createElement(Q.s,(0,p.A)({flexDirection:"row",alignItems:"center"},l.modalHeaderText),o.createElement(U.E,{color:"white"},e||n))),o.createElement(Ht.c,l.modalContentContainer,o.createElement(b.a,(0,p.A)({},l.productDescModalContent,{dangerouslySetInnerHTML:{__html:t}})))))):null}
1$t.propTypes={additionalTitle:c().string,additionalCopy:c().string,linkText:c().node,testID:c().string};const Ut=$t,Qt={marginLeft:-2,marginVertical:-2,paddingHorizontal:0,paddingVertical:0};function Kt({product:e,handleReadMoreClick:t}){var n;const r=(0,s.A)(),[a,l]=(0,o.useState)(!1),i=(null===(n=(0,gt._)(null==e?void 0:e.shortDescription))||void 0===n?void 0:n.length)>=300,c=o.createElement(Ye.E,{color:"textPrimary",flexWrap:"wrap",mb:i?0:2,mt:2,numberOfLines:i&&!a?3:void 0,testID:"product-short-description",variant:"s"},o.createElement("div",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.shortDescription}}));return i?o.createElement(Qe.a,{alignItems:"flex-start",width:"100%"},c,a?null:o.createElement(Gt.N,{accessibilityRole:"button",onPress:()=>{l(!0),t(r.formatMessage({defaultMessage:[{type:0,value:"Product Features"}],id:"product_features.label.header"}))},size:"small",style:Qt,testID:"product-short-description-read-more",underline:!0,variant:"primary"},r.formatMessage({defaultMessage:[{type:0,value:"Read More"}],id:"read_more.label.header"}))):o.createElement(Qe.a,{alignItems:"flex-start",width:"100%"},c)}Kt.propTypes={product:c().object,handleReadMoreClick:c().func};const Yt=Kt;var Zt=n(54264),Jt=n(81495),Xt=n(22772),en=n(12726),tn=n(11702),nn=n(8968),rn=n(8752),an=n(65503);const on=["productAttributes","client","rtvActive"];function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const sn={component:"haslab-sticky",slot:"bar"},dn=e=>{let{productAttributes:t,client:n,rtvActive:r}=e,a=(0,se.A)(e,on);return null==t?null:null!=n&&n.vse?o.createElement(L.A,(0,p.A)({content:t,rtvActive:r},a)):o.createElement(j.A,(0,p.A)({content:t},a))};dn.propTypes={productAttributes:c().object,client:c().object,rtvActive:c().bool};const un=({product:e,category:t,imageSize:n="md",addToCart:a,updateCart:l,addToWishlist:i,removeFromWishlist:c,isInWishlist:u,enableWishlist:h=!1,isProductLoading:I,onSwatchChange:C=F.lQ,onItemQuantityChange:_=F.lQ,itemHasBeenRemoved:S=!1,isQuickView:x=!1,selectedProductId:k,showStickyBar:M=!1,pdpContent:T=null,rtvActive:D,PDPCTAEnabled:W})=>{var z,q,V,$,K,Y,Z,J,X;const{site:ee,locale:te}=(0,m.A)(),ne=(0,s.A)(),{formatMessage:re}=(0,s.A)(),ae=(0,v.W6)(),oe=(0,v.zy)(),le=(0,Ae.B)(),ie=(0,f.o)("ProductDetail"),[se,_e]=(0,o.useState)(!1),[Se,xe]=(0,o.useState)(!1),[ke,Pe]=(0,o.useState)(!1),[Me,Oe]=(0,o.useState)(!1),[Te,De]=(0,o.useState)([]),je=(0,O.i)((0,an.kz)(e)),[Le,Be]=(0,o.useState)(),{isOpen:Re,onClose:Fe,onOpen:Ke}=(0,y.j)(),{isOpen:Ye,onOpen:Ze,onClose:Je}=(0,y.j)(),[Xe,et]=(0,o.useState)(0),[tt,nt]=(0,o.useState)({showLimitMessage:!1}),rt=(0,A.A)(),at=(0,At.A)(),ot=o.useRef(),lt=(0,fe.A)({base:!1,lg:!0}),{client:it}=(0,o.useContext)(B.W),{klaviyoPublicKey:ct}=(0,o.useContext)(ue.f),st=null===(z=(0,de.F)(null==e?void 0:e.imageGroups,{viewType:"small",selectedVariationAttributes:null==e?void 0:e.variationValues}))||void 0===z||null===(q=z.images)||void 0===q?void 0:q[0],{showLoading:dt,showInventoryMessage:gt,quantity:vt,setQuantity:ft,variant:yt,variationParams:bt,variationAttributes:Ct,stockStatus:_t,stepQuantity:St,ageRange:xt,masterQuantityRestriction:kt,variantRestriction:Pt,BISNotifyMe:Mt,isMaster:Tt,isSet:Dt}=(0,d.Bj)(e),Lt=rt.getProductQuantityInBasket(yt?null==yt?void 0:yt.productId:null==e?void 0:e.id),Rt=Pt||kt,Ft=(null==e||null===(V=e.master)||void 0===V?void 0:V.masterId)??(null==e?void 0:e.id),Wt=(0,P.A)(),Nt=null==Wt?void 0:Wt.c_isPulsePremiumMember,zt=null==e?void 0:e.c_isPremiumOnly,Ht=(0,an.XV)(e),qt=(0,an.A6)(e),$t=(0,an.oE)(e),Qt=(0,an.PW)(e),Kt=Ht?null==e?void 0:e.c_cfTimerDate:null==e?void 0:e.c_timerDate,on=Ht?"endsin":null==e?void 0:e.c_timerType,{hasEnded:ln}=(0,en.L4)(Number(Kt)||0),un=!!Kt&&"startsin"===on&&!ln,mn=!!Kt&&"endsin"===on&&ln,pn=qt,gn="startsin"===on?pn?ne.formatMessage({defaultMessage:[{type:0,value:"Funding Starts In"}],id:"countdown.fundingStartsIn"}):ne.formatMessage({defaultMessage:[{type:0,value:"Starts In"}],id:"countdown.startsIn"}):pn?ne.formatMessage({defaultMessage:[{type:0,value:"Funding Ends In"}],id:"countdown.fundingEndsIn"}):ne.formatMessage({defaultMessage:[{type:0,value:"Ends In"}],id:"countdown.endsIn"}),vn=pn?ne.formatMessage({defaultMessage:[{type:0,value:"FUNDING ENDED"}],id:"countdown.fundingEnded"}):(null==e?void 0:e.c_timerEndedContent)||ne.formatMessage({defaultMessage:[{type:0,value:"Purchase Window Ended"}],id:"product_view.timer.purchase_window_ended"}),fn={day:ne.formatMessage({defaultMessage:[{type:0,value:"Day"}],id:"countdown.days"}),days:ne.formatMessage({defaultMessage:[{type:0,value:"Days"}],id:"countdown.days"}),hour:ne.formatMessage({defaultMessage:[{type:0,value:"Hour"}],id:"countdown.hours"}),hours:ne.formatMessage({defaultMessage:[{type:0,value:"Hours"}],id:"countdown.hours"}),minute:ne.formatMessage({defaultMessage:[{type:0,value:"Min"}],id:"countdown.min"}),minutes:ne.formatMessage({defaultMessage:[{type:0,value:"Min"}],id:"countdown.min"}),second:ne.formatMessage({defaultMessage:[{type:0,value:"sec"}],id:"countdown.sec"}),seconds:ne.formatMessage({defaultMessage:[{type:0,value:"sec"}],id:"countdown.sec"})};let yn=!1;yn=Dt?!I&&(null==yt?void 0:yt.orderable)&&parseInt(vt)>0:!I&&(null==yt?void 0:yt.orderable)&&parseInt(vt)>0&&"OUT_OF_STOCK"!==_t,zt&&!Nt&&(yn=!1),null!=e&&e.c_isComingSoon&&(yn=!1);const bn=(0,N.d)(),hn=o.useRef(),En=()=>
1{hn.current=bn({render:()=>o.createElement(w.A,{title:re({id:"product.quantity.limit.exceeded",defaultMessage:[{type:0,value:"Quantity Limit exceeded"}]}),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{bn.close(hn.current)}})})},wn=()=>{hn.current=bn({render:()=>o.createElement(w.A,{title:re({id:"product.addtocart.success",defaultMessage:[{type:0,value:"Item added to cart"}]}),status:"success",icon:E.P8,isClosable:!0,onClose:()=>{bn.close(hn.current)}})})},An=e=>{var t;const n="ProductInventoryNotAvailableException"===(null==e||null===(t=e.fault)||void 0===t?void 0:t.type),r=re(n?{id:"product.addtocart.error.inventory_unavailable",defaultMessage:[{type:0,value:"Not enough stock available â please reduce the quantity and try again."}]}:{id:"global.error.something_went_wrong",defaultMessage:[{type:0,value:"Something went wrong. Try again!"}]});hn.current=bn({render:()=>o.createElement(w.A,{title:r,status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{bn.close(hn.current)}})})},In=t=>{t.preventDefault();const n=(null==yt?void 0:yt.productId)||(null==e?void 0:e.id),r=(null==yt?void 0:yt.productName)||(null==e?void 0:e.name);at("/login","push",{directedFrom:(0,It.ec)({id:n,name:r})})},[Cn,_n]=(0,o.useState)(!1),[Sn,xn]=(0,o.useState)(null),kn=(t,n)=>{const i=[],c=H()(function(){var t=(0,r.A)((function*(t){t.target.disabled=!0;const n=(0,ve.H)();if(n<500?setTimeout((()=>{_e(!1)}),n+1e3):_e(!1),!1===x&&(0,Et.b)(oe,ae),!yn)return Oe(!0),null;if(!a&&!l)return null;if(l)yield l(yt,vt);else{if(Dt){if(Array.isArray(null==e?void 0:e.setProducts))for(const t of e.setProducts){let e=yield a(t,1);null!=e&&e.success?wn():null!=e&&e.quantityRestriction?En():An(e)}}else{let t=yield a(yt,1,null==e?void 0:e.c_isMembershipProduct);null!=t&&t.success?wn():null!=t&&t.quantityRestriction?En():null!=t&&t.existingPremiumMember?hn.current=bn({render:()=>o.createElement(w.A,{title:re({id:"product.premium.existing.member",defaultMessage:[{type:0,value:"You are already a Hasbro Pulse Premium member"}]}),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{bn.close(hn.current)}})}):null!=t&&t.message?(e=>{hn.current=bn({render:()=>o.createElement(w.A,{title:e,status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{bn.close(hn.current)}})})})(null==t?void 0:t.message):An(t)}t.target.disabled=!1}}));return function(e){return t.apply(this,arguments)}}(),75);let s=!0;if(Dt&&Array.isArray(null==e?void 0:e.setProducts))for(const t of e.setProducts){var d;!1===(null===(d=t.inventory)||void 0===d?void 0:d.ats)&&(s=!1)}const u=$t,m=qt,p=(null==e?void 0:e.c_isCFCampaignActive)||!1,g=Ht&&!p;return null!=e&&e.c_isMembershipProduct&&Wt.isGuest?i.push(o.createElement(ye.$,{onClick:In,width:"100%",variant:"primary",padding:"slim"===t?2:"15px 32px","data-testid":"login-to-purchase-button"},ne.formatMessage({defaultMessage:[{type:0,value:"Become a Member"}],id:"product_view.pulepremium.become_member"}),o.createElement(E.vK,{"aria-label":"chevron right",ml:"10px"}))):m&&!p?i.push(o.createElement(Ot,{campaignFailed:"failed"===e.c_cfCampaignStatus})):(a||l)&&i.push(o.createElement(pt.A,{key:"add-to-cart",label:l?ne.formatMessage({defaultMessage:[{type:0,value:"Update"}],id:"product_view.button.update"}):zt&&!Nt?ne.formatMessage({defaultMessage:[{type:0,value:"Premium Members Only"}],id:"product_view.premium.only"}):un||null!=e&&e.c_isComingSoon?ne.formatMessage({id:"product_tile.badge.coming-soon",defaultMessage:[{type:0,value:"Coming Soon"}]}):u&&"OUT_OF_STOCK"!==_t?ne.formatMessage({defaultMessage:[{type:0,value:"Pre-Order"}],id:"product_view.button.pre_order"}):Dt&&s?ne.formatMessage({defaultMessage:[{type:0,value:"Buy the Set"}],id:"product_view.button.set"}):m?ne.formatMessage({defaultMessage:[{type:0,value:"Back this project"}],id:"product_view.back.this.project"}):"OUT_OF_STOCK"===_t||gt?ne.formatMessage({defaultMessage:[{type:0,value:"Sold Out"}],id:"product_view.button.sold_out"}):ne.formatMessage({defaultMessage:[{type:0,value:"Add to Cart"}],id:"product_view.button.add_to_cart"}),dataTestId:l?"update-cart-button":u&&"OUT_OF_STOCK"!==_t?"pre-order-button":Dt&&s?"buy-the-set-button":"OUT_OF_STOCK"!==_t?"add-to-cart-button":m?"back-this-project-button":"sold-out-button",maxQuantity:Rt,minQuantity:0,displayPDPATCSpinner:se,dis
1playPDPATCLessIconSpinner:Se,displayPDPATCPlusIconSpinner:ke,onClick:e=>{!m||Cn?(_e(!0),c(e)):xn(!0)},onChange:(e,t)=>{t>Lt&&m&&!Cn?xn(!0):t>=0&&Lt!=t?_(t).then((e=>{t>Lt?Pe(!0):0!=t&&xe(!0),e&&ft(t)})):""===e&&ft(e)},quantity:Lt,showQuantity:Lt>0&&!(null!=e&&e.c_isMembershipProduct)&&!gt,showTrash:1==Lt,stepQuantity:St,variant:t,size:n,disabled:gt||!yn||!W||un||mn||g,restrictedMessage:null==e?void 0:e.c_restrictedMessage})),(Mt&&"OUT_OF_STOCK"===_t&&!Tt&&!Dt&&!u||Dt&&Mt&&!1===s||Mt&>)&&("slim"===t&&(i.length=0),i.push(o.createElement(b.a,{key:"out-of-stock-box"},o.createElement(ye.$,{key:"notify-me-button",onClick:Ze,width:"100%",variant:"primary",padding:"slim"===t?2:"15px 32px","data-testid":"notify-me-button"},ne.formatMessage({defaultMessage:[{type:0,value:"Notify Me"}],id:"product_view.button.notify_me"}),o.createElement(E.r4,{ml:"10px"})),o.createElement(Ge.A,{isOpen:Ye,onClose:Je,productName:null==e?void 0:e.name,image:st,productID:null==e?void 0:e.id,klaviyoAPIKey:ct})))),null!=e&&e.c_isComingSoon&&null!=e&&e.c_klaviyoComingSoonMetric&&("slim"===t&&(i.length=0),i.push(o.createElement(b.a,{key:"coming-soon-box"},o.createElement(ye.$,{key:"coming-soon-button",onClick:Ke,width:"100%",variant:"primary",padding:"slim"===t?2:"15px 32px","data-testid":"coming-soon-button"},ne.formatMessage({defaultMessage:[{type:0,value:"Notify Me"}],id:"product_view.button.notify_me"}),o.createElement(E.r4,{ml:"10px"})),o.createElement(qe.A,{isOpen:Re,onClose:Fe,productName:null==e?void 0:e.name,image:st,metric:null==e?void 0:e.c_klaviyoComingSoonMetric,klaviyoAPIKey:ct})))),i},{gtmDataLayer:Pn}=(0,o.useContext)(G.q),Mn=e=>{const t=(0,wt.I)(e);Pn(t)};(0,o.useEffect)((()=>{On()}),[]),(0,o.useEffect)((()=>{yn&&Oe(!1)}),[null==yt?void 0:yt.productId]),(0,o.useEffect)((()=>{On()}),[k]),(0,o.useEffect)((()=>{const e=(0,ve.H)();S?xe(!0):e<500?setTimeout((()=>{xe(!1)}),e+1e3):xe(!1)}),[S]),(0,o.useEffect)((()=>{const e=(0,ve.H)();e<500?setTimeout((()=>{xe(!1),Pe(!1)}),e+1e3):(xe(!1),Pe(!1))}),[_]),(0,o.useEffect)((()=>{const t=[];if(null!=e&&e.c_productPromotionsDetail){const n=JSON.parse(null==e?void 0:e.c_productPromotionsDetail);null==n||n.map((e=>{"showProductBadge"in e&&!1===e.showProductBadge&&(null!=e&&e.calloutMsg||null!=e&&e.details)&&!e.isEmployeeDiscount&&t.push(e)}))}De(t)}),[null==e?void 0:e.productPromotions]);const On=()=>{if(e){let t=e.id;if(null!=k&&(t=k),void 0!==e.c_variantInventoryRestriction){const n=JSON.parse(e.c_variantInventoryRestriction),r={showLimitMessage:!1};n.filter((e=>{e.id===t&&(r.showLimitMessage=!0,r.id=e.id,r.inventoryRestriction=e.inventoryRestriction)})),nt(r)}}},{ref:Tn,inView:Dn,entry:jn}=(0,Ue.Wx)(),{footerHeight:Ln,footerInView:Bn}=(0,o.useContext)(pe.k),{buildUrl:Rn}=(0,m.A)();let Fn=Rn();null!=e&&e.id&&(Fn=Fn+(0,It.ec)(e)+"#product-specs");const[Wn,Nn]=(0,o.useState)(null);(0,o.useEffect)((()=>{Nn(null!=e&&e.c_legalLines?e.c_legalLines.length>0&&e.c_legalLines:null)}),[null==e?void 0:e.c_legalLines]),(0,o.useEffect)((()=>{const t=[];if(null!=e&&e.c_productPromotionsDetail){const n=JSON.parse(null==e?void 0:e.c_productPromotionsDetail);null==n||n.map((e=>{!("showProductBadge"in e)||!1!==e.showProductBadge||!(null!=e&&e.calloutMsg||null!=e&&e.details)||null!=e&&e.isEmployeeDiscount||t.push(e)}))}De(t)}),[null==e?void 0:e.c_productPromotionsDetail]);const zn=(0,o.useRef)(null),Hn=!1===(null==e?void 0:e.c_cfDemandGoal)?R.$0.NUMBER:R.$0.CURRENCY,Gn=Hn==R.$0.NUMBER?null==e?void 0:e.c_cfBackerGoal:null==e?void 0:e.c_cfDemandGoal,qn=Hn==R.$0.NUMBER?null==e?void 0:e.c_cfCurrentBackers:null==e?void 0:e.c_cfCurrentDemand,Vn=void 0!==(null==e?void 0:e.longDescription)&&"none"!==(null==e?void 0:e.longDescription)&&""!==(null==e?void 0:e.longDescription),$n=void 0!==(null==e?void 0:e.c_productFeature1)||void 0!==(null==e?void 0:e.c_productFeature2)||void 0!==(null==e?void 0:e.c_productFeature3)||void 0!==(null==e?void 0:e.c_productFeature4)||void 0!==(null==e?void 0:e.c_productFeature5)||void 0!==(null==e?void 0:e.c_productFeature6)||void 0!==(null==e?void 0:e.c_productFeature7)||void 0!==(null==e?void 0:e.c_productFeature8)||void 0!==(null==e?void 0:e.c_productFeature9)||void 0!==(null==e?void 0:e.c_productFeature10),Un=(null==T||null===($=T.openingSection)||void 0===$?void 0:$.logo.content)??(null==T||null===(K=T.logo)||void 0===K?void 0:K.content),Qn=null==T||null===(Y=T.productFields)||void 0===Y?void 0:Y.productAttributes,Kn=null!=Qn;return o.createElement(b.a,null,o.createElement(b.a,null,t&&e&&o.createElement(ce.E,(0,p.A)({position:"relative",isLoaded:t},ie.breadCrumbContainer),o.createElement(Ne.A,{categories:t,productName:null==e?void 0:e.name}))),o.createElement(Q.s,(0,p.A)({"data-testid":"product-view",direction:{base:"column",lg:"row"},gap:4},ie.productViewContainer),o.createElement(b.a,{flex:.6,textAlign:"center"},e?o.createElement(o.Fragment,null,o.createElement(We,{size:n,imageGroups:e.imageGroups,selectedVariationAttributes:bt,selectedIndexProps:[Xe,et],heroClickHandler:le.onOpen,setSelectedImageIndex:e=>(e=>{et(e)})(e)},x&&e&&o.createElement(ye.$,{as:ze.A,variant:"tertiary",onClick:t=>((e,t)=>{const n=(0,me.g)(t,"Quick View");Pn(n)})(0,e),to:Rn((0,It.ec)(e))},ne.formatMessage({defaultMessage:[{type:0,value:"View product details"}],id:"product_view.link.full_details"})))):o.createElement(He.E,null),lt&&Kn?o.createElement(b.a,{justifyItems:"center",marginTop:"8px",marginLeft:{base:"calc(68px + var(--chakra-space-10))",xl:"calc(68px + var(--chakra-space-20))"}},o.createElement(dn,{productAttributes:Qn,client:it,rtvActive:D,showPillBackgroun
1ds:!0,showScrollbar:!0})):null),o.createElement(Q.s,(0,p.A)({flexDirection:"column",align:"stretch"},ie.productVariations,{flex:.4,marginBottom:[16,16,16,0,0],background:x?"hasbroShade.600":"hasbroShade.700",position:"relative",justifyContent:"center"}),Un&&o.createElement(b.a,{alignSelf:"flex-end",paddingBottom:8},null!=it&&it.vse?o.createElement(L.A,{content:Un,styles:ie.newAmplienceLogo,rtvActive:D}):o.createElement(j.A,{content:Un,styles:ie.newAmplienceLogo})),o.createElement(Q.s,{flowdirection:"row",justifyContent:"space-between",alignItems:"flex-end",ref:zn},o.createElement(Q.s,{width:"100%",justifyContent:"space-between"},qt?o.createElement(o.Fragment,null,null!=e&&e.c_isCFCampaignActive?o.createElement(Ve.A,{stockBadgeType:"crowdfund-campaign-active",paddingBottom:0}):o.createElement(o.Fragment,null,"funded"===(null==e?void 0:e.c_cfCampaignStatus)?o.createElement(Ve.A,{stockBadgeType:"crowdfund-funded",paddingBottom:0}):o.createElement(Ve.A,{bulletOverride:!0,stockBadgeType:"crowdfund-notfunded",paddingBottom:0}))):o.createElement(Ve.A,{stockBadgeType:Qt,customStockMessage:null==e?void 0:e.c_customStockMessage}),o.createElement(Xt.Pc,null,o.createElement(tn.Ay,{item:e,ageRangeMin:xt||(null==e?void 0:e.c_ageRange),enableAgeRange:!0,enableOwnedBadge:!0,badgeSize:"large",useWrapper:!1})))),o.createElement(ut,{name:null==e?void 0:e.name,sku:null==e?void 0:e.id,prices:{price:(null==e?void 0:e.price)||void 0,priceMax:(null==e?void 0:e.priceMax)||void 0,setPrice:null==e?void 0:e.c_productSetPrice,salePrice:null==e?void 0:e.c_salePrice,listPrice:null==e?void 0:e.c_listPrice},currency:null==e?void 0:e.currency,isQuickView:x,suppressSocialShare:null==e?void 0:e.c_suppressSocialShare}),!lt&&Kn?o.createElement(b.a,null,o.createElement(dn,{productAttributes:Qn,client:it,rtvActive:D,showPillBackgrounds:!0,showScrollbar:!1})):null,null!=e&&e.shortDescription?o.createElement(Yt,{product:e,handleReadMoreClick:Mn}):null,o.createElement(Q.s,null,!1!==(null==e?void 0:e.c_showReviews)&&void 0!==(null==e?void 0:e.id)&&o.createElement($e.A,{yotpoProductId:Ft,productId:null==e?void 0:e.id,productName:null==e?void 0:e.name,view:x?"quick-view":"product"})),Kt&&on&&!("startsin"===on&&ln)&&o.createElement(b.a,{width:"100%"},o.createElement(Zt.G,{variant:on,targetInMilliseconds:Number(Kt)||0,label:gn,endLabel:vn,labelTranslations:fn,width:"100%",alignItems:"center"})),(null==Ct?void 0:Ct.length)>0&&o.createElement(Q.s,{flexDirection:"column",align:"stretch",rowGap:"4",pb:"2"},dt?o.createElement(o.Fragment,null,o.createElement(ce.E,{height:6,width:32}),o.createElement(ce.E,{height:20,width:64}),o.createElement(ce.E,{height:6,width:32}),o.createElement(ce.E,{height:20,width:64})):o.createElement(o.Fragment,null,Ct.map((t=>{const{id:n,name:r,selectedValue:a,values:l=[]}=t;return o.createElement(Ie.A,{key:n,onChange:(t,n)=>{n&&(x||ae.replace(n),C(e,n))},variant:"circle",value:null==a?void 0:a.value,displayName:(null==a?void 0:a.name)||"",label:r},l.map((({href:e,name:t,image:n,value:r,orderable:a})=>{var l;return o.createElement(Ce.A,{key:r,href:e,disabled:!a,value:r,name:t},n?o.createElement(b.a,{height:"100%",width:"100%",backgroundColor:`#${null===(l=(null==n?void 0:n.disBaseLink)||(null==n?void 0:n.link))||void 0===l?void 0:l.split("/").pop()}`}):t)})))}))),!dt&&Me&&o.createElement(b.a,null,o.createElement(be.z,{in:!0},o.createElement(U.E,{color:"orange.600",fontWeight:600},ne.formatMessage({id:"lCPCxk",defaultMessage:[{type:0,value:"Please select all your options above"}]}))))),"LIMITED"===_t&&o.createElement(Q.s,(0,p.A)({},ie.productLowStockHeader,{flexDirection:"column",rowGap:"1"}),o.createElement(U.E,(0,p.A)({as:"h4"},ie.productInfoLowStockText),void 0!==e.c_lowStockCustomMessage?o.createElement(o.Fragment,null,o.createElement(U.E,null,e.c_lowStockCustomMessage)):o.createElement(o.Fragment,null,ne.formatMessage({defaultMessage:[{type:0,value:"Limited quantity available"}],id:"use_product.message.limited_quantity"})))),o.createElement(ce.E,{isLoaded:!dt},"in-progress"===(null==e?void 0:e.c_cfCampaignStatus)&&qt?o.createElement(Q.s,{flexDirection:"column",mb:4},o.createElement(he.S,(0,p.A)({},ie.termsCheckbox,!0===Sn?ie.termsStylesErrorState:ie.termsStylesNormalState,!0===Cn?{sx:cn(cn({},ie.termsCheckbox.sx),{},{"animation-iteration-count":"0"})}:{sx:cn(cn({},ie.termsCheckbox.sx),{},{"animation-iteration-count":"infinite"})},{isChecked:Cn,onChange:()=>{!1===Cn&&xn(!1),_n(!Cn)}}),o.createElement(g.A,{defaultMessage:[{type:0,value:"I agree to the "},{type:8,value:"terms",children:[{type:0,value:"Campaign Terms of Service"}]},{type:0,value:"."}],id:"haslab.label.terms_agree",values:{terms:t=>o.createElement(Ut,{linkText:t,additionalCopy:null==e?void 0:e.c_cfAdditionalCopy,additionalTitle:null==e?void 0:e.c_cfAdditionalTitle,testID:"campaign-terms-link"})}})),Sn&&o.createElement(U.E,ie.termsErrorText,ne.formatMessage({defaultMessage:[{type:0,value:"Please agree to continue."}],id:"haslab.label.terms_error"}))):null,o.createElement(Q.s,{gap:"8px",width:"100%",alignItems:"flex-start"},o.createElement(Q.s,{flexDirection:"column",rowGap:"4",ref:Tn,flex:"1"},kn()),h&&o.createElement(nn.A,{isWishlisted:!!u,onToggle:t=>{!t&&c?c():t&&i&&i(e,1)},"data-testid":"pdp-wishlist-button",size:"lg",iconSize:24,iconColor:rn.A.black,backgroundColor:rn.A.white,backgroundColorActive:rn.A.white,centered:!1})),(null==e?void 0:e.c_isComingSoon)&&(null==e?void 0:e.c_comingSoonMessage)&&o.createElement(Q.s,(0,p.A)({},ie.messagesContainer,{flexDirection:"column",rowGap:"2"}),o.createElement(Q.s,ie.messagesContainerItem,o.createElement(b.a,{dangerouslySetInnerHTML:{__html:null==e?void 0:e.c_comingSoonMessage}}))),o.createElement(Qe.a,{alignItems:"center",flexDirection:"row",gap:2,justifyContent:"space-evenly",flexWrap:"wrap",mt:3,testID:"product-policy-links",width:"100%"},o.createElement(Ut,{additionalCopy:null==e?void 0:e.c_cfAdditionalCopy,additionalTitle:null==e?void 0:e.c_cfAdditionalTitle,testID:"campaign-details-link"}),o.createElement(Vt,{legalLines:Wn}),o.createElement(Gt.N,{href:Rn("/pages/returns-policy"),hrefAttrs:{target:"_blank",rel:"noopener noreferrer"},size:"small",testID:"return-policy-link",underline:!0},ne.formatMessage({id:"product_detail.product_return_policy",defaultMessage:[{type:0,value:"Return Policy"}]})),o.createElement(Gt.N,{href:Rn("en-US"===ne.locale?"/pages/shipping-policy":"/pages/delivery-policy"),hrefAttrs:{target:"_blank",rel:"noopener noreferrer"},size:"small",testID:"shipping-policy-link",underline:!0},ne.formatMessage({id:"product_detail.product_shipping_policy",defaultMessage:[{type:0,value:"Shipping Policy"}]})),o.createElement(ge.A,{isOpen:Re,onClose:Fe,btnRef:ot,contentId:Le}))),!1!==tt.showLimitMessage&&o.createElement(Q.s,(0,p.A)({},ie.messagesContainer,{flexDirection:"column",rowGap:"2"}),o.createElement(Q.s,ie.messagesContainerItem,o.createElement(E.Pr,ie.messagesContainerItemImage),o.createElement(b.a,null,o.createElement(U.E,{color:"white"},ne.formatMessage({defaultMessage:[{type:0,value:"Limit of "},{type:1,value:"variantQuantityRestriction"},{type:0,value:" per Customer"}],id:"quantity.restriction_message_variant"},{variantQuantityRestriction:tt.inventoryRestriction}))))),((null==e||null===(Z=e.bundledProducts)||void 0===Z?void 0:Z.length)>0||void 0!==(null==e?void 0:e.c_regionRestrictionString)||je||void 0!==(null==e?void 0:e.c_anticipatedRestockDateMsg))&&!1===x&&!1===tt.showLimitMessage?o.createElement(Q.s,(0,p.A)({},ie.messagesContainer,{flexDirection:"column",rowGap:"4"}),(null==e||null===(J=e.bundledProducts)||void 0===J?void 0:J.length)>0&&o.createElement(Q.s,ie.messagesContainerItem,o.createElement(E.Zk,ie.messagesContainerItemImage),o.createElement(U.E,null,ne.formatMessage({defaultMessage:[{type:0,value:"Bundle Includes"}],id:"product_bundle.includes.message"})),o.createElement(Ee.h,null),o.createElement(ye.$,(0,p.A)({as:"a"},ie.productSpecsButton,{justifyContent:"left",href:Fn}),o.createElement(E.D3,ie.messagesContainerItemImage))),void 0!==(null==e?void 0:e.c_regionRestrictionString)&&o.createElement(Q.s,ie.messagesContainerItem,o.createElement(E.Fn,ie.messagesContainerItemImage),o.createElement(b.a,null,o.createElement(U.E,{color:"white"},ne.formatMessage({defaultMessage:[{type:0,value:"Not available for shipping to "},{type:1,value:"regionRestriction"}],id:"product_detail.region.restriction"},{regionRestriction:null==e?void 0:e.c_regionRestrictionString})))),je&&o.createElement(Q.s,ie.messagesContainerItem,o.createElement(E.O4,ie.messagesContainerItemImage),o.createElement(U.E,{as:"div"},o.createElement("p",{dangerouslySetInnerHTML:{__html:(0,F.q7)({id:"product_detail.anticipated_ship_date_msg",defaultMessage:"This pre-order item will be available to ship on approximately {anticipatedShipDate}"},ee,te,{anticipatedShipDate:je.toLocaleDateString(null==te?void 0:te.id,{year:"numeric",month:"long",day:"numeric"})})}}))),void 0!==(null==e?void 0:e.c_anticipatedRestockDateMsg)&&o.createElement(Q.s,ie.messagesContainerItem,o.createElement(E.O4,ie.messagesContainerItemImage),o.createElement(U.E,{as:"div"},o.createElement("p",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.c_anticipatedRestockDateMsg}})))):null,!1===x&&(Vn||$n)&&o.createElement(Jt.j,{accessibilityLabel:ne.formatMessage({defaultMessage:[{type:0,value:"Product information"}],id:"product_detail.product_information"}),alignItems:"stretch",borderRadius:"card",flexDirection:"column",gap:4,px:5,py:5,role:"region",showIcon:!1,testID:"product-details-panel"},$n?o.createElement(ht,{product:e,handleReadMoreClick:Mn}):null,Vn?o.createElement(Bt,{product:e,handleReadMoreClick:Mn}):null),Te.length>0&&!qt?o.createElement(Q.s,(0,p.A)({},ie.promoContainer,{flexDirection:"column",rowGap:"4"}),Te.map((e=>o.createElement(Q.s,(0,p.A)({key:null==e?void 0:e.id,direction:"row",alignItems:"flex-start"},ie.messagesContainerItem),(null==e?void 0:e.isFreeShipping)&&o.createElement(E.Fn,ie.messagesContainerItemImage),o.createElement(Q.s,{direction:"column"},o.createElement(b.a,null,null==e?void 0:e.calloutMsg),o.createElement(b.a,null,null==e?void 0:e.details)))))):null)),e?o.createElement(Ae.Y,(0,p.A)({imageGroups:e.imageGroups,includeAllVideos:!0,selectedVariationAttributes:bt},le,{selectedIndex:Xe,videoPosition:"second"})):o.createElement(o.Fragment,null),e&&M&&!qt&&o.createElement(we.q,{direction:"bottom",in:!Dn&&(null==jn||null===(X=jn.boundingClientRect)||void 0===X?void 0:X.top)<=0||Bn,style:cn({zIndex:10},Bn?{position:"absolute",bottom:Ln}:{})},o.createElement(b.a,{p:"2",color:"white",mx:"4",mb:"16",bg:"hasbroShade.700",rounded:"90px",boxShadow:"0px 16px 32px rgba(0, 0, 0, 0.2)"},o.createElement(mt.A,{name:null==e?void 0:e.name,setPrice:null==e?void 0:e.c_productSetPrice,salePrice:null==e?void 0:e.c_salePrice,currency:null==e?void 0:e.currency,listPrice:null==e?void 0:e.c_listPrice,image:st,isPreOrder:$t,isDisabled:gt,ctaButton:kn("slim","slim"),stockBadge:o.createElement(Ve.A,{stockBadgeType:Qt,customStockMessage:null==e?void 0:e.c_customStockMessage,mx:"4",mb:"0"})}))),e&&M&&qt?o.createElement(Qe.a,{backgroundColor:"bgInfoPanelDefault",bottom:Bn?0:5,dataSet:sn,elevation:5,left:0,marginBottom:1,padding:4,position:Bn?"absolute":"fixed",shadowColor:"darkMagic",shadowOffset:{width:0,height:16},shadowOpacity:.2,shadowRadius:32,testID:"haslab-sticky-bar",width:"100%",zIndex:"above"},o.createElement(jt,{name:null==e?void 0:e.name,image:st,shippingDate:null==e?void 0:e.c_anticipatedShipDateValue,goalValue:Gn,tiers:null==e?void 0:e.c_cfTiers,currentValue:qn,endDate:null==e?void 0:e.c_cfTimerDate,fundingStatus:null==e?void 0:e.c_cfCampaignStatus,campaignActive:null==e?void 0:e.c_isCFCampaignActive,targetRef
1:zn,offset:-80,goalType:Hn})):null)};un.propTypes={product:c().object,onItemQuantityChange:c().func,itemHasBeenRemoved:c().bool,onSwatchChange:c().func,category:c().array,isProductLoading:c().bool,addToCart:c().func,addToWishlist:c().func,removeFromWishlist:c().func,updateCart:c().func,imageSize:c().oneOf(["sm","md"]),showTrash:c().bool,isInWishlist:c().bool,isQuickView:c().bool,enableWishlist:c().bool,selectedProductId:c().string,showStickyBar:c().bool,pdpContent:c().object,rtvActive:c().bool,PDPCTAEnabled:c().bool};const mn=un;var pn=n(34771),gn=n(85353),vn=n(75828),fn=n(30239),yn=n(9e4),bn=n(20688),hn=n(44985);const En=({tierStatus:e,backerGoal:t,demandGoal:n,timestamp:r,name:a,description:l,image:i,currency:c,scrollToTier:u})=>{var m;const p=(0,s.A)();function g(e){return e.toString().padStart(2,"0")}var v;if(r){let e=new Date(r);v=[g(e.getMonth()+1),g(e.getDate()),e.getFullYear()].join("/")}const{currency:f}=(0,d.H2)(),y=a.replace(/\s+/g,"-").toLowerCase();return o.createElement(yn.E,{backgroundImage:"funded"===e?(0,hn.sU)("static/img/pdp-bg/corner-tag.png"):(0,hn.sU)("static/img/pdp-bg/lock2.png"),backgroundRepeat:"no-repeat",backgroundPosition:"top right",borderRadius:"1rem",bgColor:"celestialSky",cursor:"pointer",onClick:()=>u(y)},o.createElement(yn.E,{padding:"32px",backgroundImage:"funded"===e&&(0,hn.sU)("static/img/pdp-bg/check.png"),backgroundRepeat:"no-repeat",backgroundPosition:"top 10px right 10px"},o.createElement(Q.s,{direction:"row"},o.createElement($._,{mr:4,height:"73px",width:"73px",htmlWidth:"73",htmlHeight:"73",src:i,alt:a||"",loading:"lazy"}),o.createElement(b.a,null,t&&o.createElement(U.E,{pb:2,fontWeight:700,fontSize:"18px",color:"white"},p.formatMessage({id:"crowdfund_backer_goal",defaultMessage:[{type:1,value:"backerGoal"},{type:0,value:" Backers"}]},{backerGoal:new Intl.NumberFormat((null===(m=p.locale)||void 0===m?void 0:m.id)||p.defaultLocale||"en-US").format(t)})),!t&&n&&o.createElement(U.E,{pb:2,fontWeight:700,fontSize:"18px",color:"white"},p.formatNumber(n,{style:"currency",notation:"compact",currency:c||f})),"funded"===e?o.createElement(bn.E,{pb:2,src:(0,hn.sU)("static/img/pdp-bg/green-bar.png"),alt:p.formatMessage({id:"crowdfund.funded",defaultMessage:[{type:0,value:"Funded"}]})}):o.createElement(bn.E,{pb:2,src:(0,hn.sU)("static/img/pdp-bg/inprogress-bar.png"),alt:p.formatMessage({id:"crowdfund.in_progress",defaultMessage:[{type:0,value:"In Progress"}]})}),o.createElement(Q.s,{align:"center"},"funded"===e?o.createElement(E.ac,{mr:2,size:"sm"}):o.createElement(E.vI,{mr:2,size:"sm"}),"funded"===e?o.createElement(U.E,{fontSize:"12px",fontWeight:700,color:"white"},p.formatMessage({id:"crowdfund_unlocked",defaultMessage:[{type:0,value:"UNLOCKED"}]}),o.createElement(U.E,{color:"hasbroShade.300",as:"span"}," ",p.formatMessage({id:"crowdfund_on_date",defaultMessage:[{type:0,value:"ON "},{type:1,value:"formattedDate"}]},{formattedDate:v}))):o.createElement(U.E,{fontSize:"12px",fontWeight:700,color:"white"},p.formatMessage({id:"crowdfund_locked",defaultMessage:[{type:0,value:"LOCKED"}]}))))),o.createElement(b.a,null,o.createElement(U.E,{mt:"32px",fontSize:"22px",fontWeight:700,color:"white"},a),l&&o.createElement(U.E,{mt:4,fontSize:"16px",fontWeight:500,color:"white"},l))))};En.propTypes={tierStatus:c().string,backerGoal:c().number,demandGoal:c().number,timestamp:c().string,name:c().string,description:c().string,image:c().string,currency:c().string,scrollToTier:c().func};const wn=En;var An=n(17289);const In=({product:e,dividerImage:t,background:n="darkMagic"})=>{var r;const a=(0,s.A)(),l=(0,fe.A)({base:1,lg:2,xl:3}),i=(0,fe.A)({base:!0,lg:!1}),c=(0,fe.A)({base:!1,lg:!0}),d=(0,fe.A)({base:2,xl:3}),[u,m]=(0,o.useState)(!1),[p,g]=(0,o.useState)("See more unlocks");if(!e.c_cfTiers)return null;const v=o.useRef(null),[f,y]=(0,o.useState)(null),[h,w]=(0,o.useState)(null);(0,o.useEffect)((()=>{if(f&&h){let e,t=f;const n=5;for(let r=0;r<n&&(e=t.offsetTop-100,!(e>0));r++)t.parentElement&&(t=t.parentElement);if(Math.abs(h-e)<=100)return void y(null);window.scrollTo({top:e,behavior:"smooth"})}}),[f,h]),(0,o.useEffect)((()=>
1{if("undefined"!=typeof window){const e=()=>{w(window.scrollY)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}}),[v.current]);const A=e=>{if("undefined"!=typeof window){const t=document.getElementById(e);t&&y(t)}};return(null==e?void 0:e.c_cfTiers)&&o.createElement(o.Fragment,null,o.createElement(An.A,{mainImage:{image:t},styles:{width:"100%",objectFit:"cover"}}),o.createElement(b.a,{bg:n,py:{base:"14",lg:"100px"}},o.createElement(b.a,{textAlign:"center"},(null==e?void 0:e.c_cfTierUnlocksTitle)&&o.createElement(U.E,{mb:4,color:"white",fontSize:"18PX",fontWeight:700},null==e?void 0:e.c_cfTierUnlocksTitle),(null==e?void 0:e.c_cfTierUnlocksHeadline)&&o.createElement(gn.D,{mb:4,color:"white",fontSize:"48px",fontWeight:700},null==e?void 0:e.c_cfTierUnlocksHeadline),(null==e?void 0:e.c_cfTierUnlocksAdditionalCopy)&&o.createElement(U.E,{color:"hasbroShade.300",fontSize:"18px",fontWeight:400},null==e?void 0:e.c_cfTierUnlocksAdditionalCopy)),o.createElement(b.a,{ref:v},o.createElement(fn.qX,null,o.createElement(vn.x,{mx:"15",mt:{base:"10",lg:"72px"},gap:"6",templateColumns:`repeat(${d}, 1fr)`,borderRadius:"1rem"},(null==e?void 0:e.c_cfTiers)&&(null==e?void 0:e.c_cfTiers.slice(0,6).map(((t,n)=>o.createElement(wn,{key:n,tierStatus:null==t?void 0:t.status,backerGoal:null==t?void 0:t.backerGoal,description:null==t?void 0:t.description,name:null==t?void 0:t.name,timestamp:null==t?void 0:t.unlockTimestamp,demandGoal:null==t?void 0:t.demandGoal,image:`${null==t?void 0:t.imageURL}?q=75&fmt=auto`,currency:null==e?void 0:e.currency,scrollToTier:A}))))),u&&o.createElement(vn.x,{mt:"6",mx:"15",gap:"6",templateColumns:`repeat(${d}, 1fr)`,borderRadius:"1rem"},(null==e?void 0:e.c_cfTiers)&&(null==e?void 0:e.c_cfTiers.slice(6).map(((t,n)=>o.createElement(wn,{key:n,tierStatus:null==t?void 0:t.status,backerGoal:null==t?void 0:t.backerGoal,description:null==t?void 0:t.description,name:null==t?void 0:t.name,timestamp:null==t?void 0:t.unlockTimestamp,demandGoal:null==t?void 0:t.demandGoal,image:`${null==t?void 0:t.imageURL}?q=75&fmt=auto&$medium$`,currency:null==e?void 0:e.currency,scrollToTier:A}))))),o.createElement(Q.s,{justify:"center"},(null==e||null===(r=e.c_cfTiers)||void 0===r?void 0:r.length)>6&&o.createElement(ye.$,{mt:"14",_hover:{background:"transparent"},onClick:()=>(g(u?"See more unlocks":"See less unlocks"),void m(!u)),size:"md",borderRadius:"50px",variant:"outline"},u?o.createElement(U.E,{color:"white"},a.formatMessage({id:"haslab_seeless",defaultMessage:[{type:1,value:"buttonText"}]},{buttonText:p})):o.createElement(U.E,{color:"white"},a.formatMessage({id:"haslab_seemore",defaultMessage:[{type:1,value:"buttonText"}]},{buttonText:p}))))),o.createElement(fn.cD,null,o.createElement(Oe.A,{flex:"1",autoHeight:!1,scrollAnimationEnabled:!0,showPartialSlide:!1,slidesToShow:l,showIndicator:i,showControls:c,slideDirection:"horizontal",infiniteScroll:!1,controlsIcon:o.createElement(E.YJ,{color:"hasbroShade.300",width:"32px",height:"32px"}),controlsVariant:"plain",sx:{".sc-controls":{position:"absolute",left:"-65px",bottom:"50%",width:"calc(100% + 115px + var(--sc-spacing))",justifyContent:"space-between"},".sc-control":{padding:"16px",width:"64px",height:"64px",borderRadius:"50%",border:"2px solid var(--chakra-colors-hasbroShade-300)",background:"transparent"},".sc-item":{display:"flex",flexDirection:"column",alignItems:"center"},".sc-indicators":{justifyContent:"center",marginTop:"0"}}},(null==e?void 0:e.c_cfTiers)&&(null==e?void 0:e.c_cfTiers.map(((t,n)=>o.createElement(Te.A,{key:n,display:"flex",alignItems:"center",py:6,px:2},o.createElement(wn,{key:n,tierStatus:null==t?void 0:t.status,backerGoal:null==t?void 0:t.backerGoal,demandGoal:null==t?void 0:t.demandGoal,description:null==t?void 0:t.description,name:null==t?void 0:t.name,timestamp:null==t?void 0:t.unlockTimestamp,image:`${null==t?void 0:t.imageURL}?q=75&fmt=auto&$medium$`,currency:null==e?void 0:e.currency}))))))))))};In.propTypes={product:c().object,dividerImage:c().object,background:c().string};const Cn=In;var _n=n(84819),Sn=n(40669);const xn="haslab-buybox",kn="haslab-tiers",Pn=(e,t)=>((null==e?void 0:e.slots)||[]).some((e=>(null==e?void 0:e["anchor-id"])===t)),Mn=[],On={content:{id:"tiers-section-auto-insert",_meta:{schema:"http://bigcontent.io/cms/schema/v1/core#/definitions/content-reference"},contentType:"https://content.hasbro.com/models/tiers-section"},hideOnMobileWeb:!1,hideOnMobileApp:!1};function Tn({content:e,parentContent:t,idx:n,rtvActive:r,product:a}){var l,i;const{client:c}=(0,o.useContext)(B.W);if(!e)return null;const s=!(null==e||null===(l=e._meta)||void 0===l||!l.schema),d=(null==e?void 0:e.id)??(null===(i=e.content)||void 0===i?void 0:i.id);return d===On.content.id?o.createElement(b.a,{mt:0===n?0:{base:"4",lg:"8"},key:d},o.createElement(Cn,{product:a,background:"hasbroShade.700"})):o.createElement(b.a,{mt:0===n?0:{base:"4",lg:"8"},id:d,key:d},null!=c&&c.vse?o.createElement(L.A,{fetch:s?void 0:{id:d},content:s?e:void 0,parentPageMeta:null!=t&&t._meta?t._meta:null,rtvActive:r}):o.createElement(j.A,{fetch:s?void 0:[{id:d}],content:s?e:void 0,parentPageMeta:null!=t&&t._meta?t._meta:null,data_creative_index:n}))}Tn.propTypes={content:c().object,parentContent:c().object,idx:c().number,rtvActive:c().bool,product:c().object};const Dn=Tn;function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?jn(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bn=({category:e,product:t,isLoading:n,rtvActive:a,pdpContent:i,pdpBodyContent:c,preSectionContent:u})=>{var _,x,k,P,M,O;const T=(0,f.o)("ProductDetail"),{displayWishlistIcon:z}=(0,W.$9)(),q=(0,A.A)(),[V,$]=(0,o.useState)(!1),U=(0,d.Bj)(t),{formatMessage:Q}=(0,s.A)(),[K,Y]=(0,o.useState)(void 0),[Z,J]=(0,o.useState)(!1),ae=(0,N.d)(),oe=o.useRef(),{wishlist:le,addToWishlist:ie,removeFromWishlist:se}=(0,I.A)(),de=(0,v.zy)(),ue=!!le.findItemByProductId(null==t?void 0:t.id),[me,pe]=(0,o.useState)({}),[ge,ve]=(0,o.useState)(!1),fe=(0,y.j)(),{isOpen:ye,onOpen:be,onClose:he}=(0,y.j)(),Ee=Ln(Ln({},R.Ov),{},{onPrimaryAction:F.lQ}),{gtmDataLayer:we}=(0,o.useContext)(G.q),{eventClient:Ae}=(0,ee.Jr)(),{buildUrl:Ie}=(0,m.A)(),[Ce,_e]=(0,o.useState)(null==t?void 0:t.c_redirectAction),Se=(0,an.A6)(t),{client:xe}=(0,o.useContext)(B.W),{sections:ke,buyboxSection:Pe,buyboxIndex:Me,tiersSection:Oe,hasV2Sections:Te}=((e,t)=>{const{client:n}=(0,o.useContext)(B.W),{site:r}=(0,m.A)(),{locale:a}=(0,s.A)(),i=(0,o.useMemo)((()=>(0,Sn.co)(e)),[e]),c=(0,o.useMemo)((()=>(0,Sn.e8)(i).map((e=>({id:e})))),[i]),{isSuccess:d,data:u}=(0,l.I)({queryKey:["haslab-page-sections",c,a,null==n?void 0:n.vse,(null==n?void 0:n.groups)||[]],queryFn:()=>(0,_n.am)(n,r,a,c),refetchOnWindowFocus:!1,initialData:null!=n&&n.vse||null==t||!t.length?void 0:t,enabled:c.length>0,staleTime:12e4}),p=(d?u:Mn)||Mn,g=(0,o.useMemo)((()=>(0,Sn.mS)(i,p)),[i,p]);return(0,o.useMemo)((()=>{if(!g.some((e=>e.slots.some(Sn.at))))return{sections:Mn,buyboxSection:void 0,buyboxIndex:-1,tiersSection:void 0,hasV2Sections:!1};const e=g.findIndex((e=>Pn(e,xn)));return{sections:g,buyboxSection:-1===e?void 0:g[e],buyboxIndex:e,tiersSection:g.find((e=>Pn(e,kn))),hasV2Sections:!0}}),[g])})((0,an.A6)(t)?i:void 0,u);(0,o.useEffect)((()=>{void 0!==(null==q?void 0:q.basketId)&&$(!0)}),[null==q?void 0:q.basketId]);const De=function(){var e=(0,r.A)((function*(e,n,r){try{if(null==e||!e.orderable||!n)return;const a=[{productId:e.productId,quantity:n,price:e.price}];null==Ae||Ae.cart.logAddToCart((0,te.LR)({location:de,products:[t],quantity:n,cartId:q.basketId,itemListId:"pdp",itemListName:"pdp",placementIndex:0,isWishlisted:ue,clickTarget:"primary_cart_button"}));const o=(0,ne.u)(t,"pdp");return we(o),yield q.addItemToBasket(a,U,r)}catch(e){return{success:!1,message:(null==e?void 0:e.message)||Q(R.gS)}}}));return function(t,n,r){return e.apply(this,arguments)}}(),je=e=>{oe.current=ae({render:()=>o.createElement(w.A,{title:(null==e?void 0:e.message)||Q(R.gS),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{ae.close(oe.current)}})})},Le=function(){var e=(0,r.A)((function*(e){Y(t),J(!0);try{const n=q.productItems.filter((t=>t.productId===e.id)),r=(0,re.o)(n[0],"pdp");we(r),null==Ae||Ae.cart.logRemoveFromCart((0,te.rb)({products:[t],quantity:n[0].quantity,cartId:q.basketId})),yield q.removeItemFromBasket(n[0].itemId),oe.current=ae({render:()=>o.createElement(w.A,{title:Q({defaultMessage:[{type:0,value:"Item removed from cart"}],id:"cart.info.removed_from_cart"}),status:"success",icon:E.Te,isClosable:!0,onClose:()=>{ae.close(oe.current)}})})}catch{je()}finally{Y(void 0),J(!1)}}));return function(t){return e.apply(this,arguments)}}(),Be=H()(function(){var e=(0,r.A)((function*(e,n){pe(Ln(Ln({},me),{},{[n.id]:e})),Y(n);try{const r={productId:n.id,quantity:parseInt(e)},a=q.productItems.filter((e=>e.productId===n.id));null==Ae||Ae.cart.logChangeQuantity((0,te.co)({location:"pdp",products:[t],quantity:e,cartId:q.basketId}));const l=yield q.updateItemInBasket(r,a[0].itemId,n);!l.success&&l.quantityRestriction&&(oe.current=ae({render:()=>o.createElement(w.A,{title:Q({id:"product.quantity.limit.exceeded",defaultMessage:[{type:0,value:"Quantity Limit exceeded"}]}),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{ae.close(oe.current)}})}))}catch{je()}finally{Y(void 0),pe(Ln(Ln({},me),{},{[n.id]:void 0})),ve(1===e)}}));return function(t,n){return e.apply(this,arguments)}}(),750),Re=function(){var e=(0,r.A)((function*(e,t){var n;const r=(null===(n=q._productItemsDetail[e.id].inventory)||void 0===n?void 0:n.stockLevel)||"OUT_OF_STOCK";return 0===t?(Be.flush(),Y(e),fe.onOpen(),!1):(Be.cancel(),t===e.quantity||!("OUT_OF_STOCK"===r&&t>e.quantity)&&void Be(t,e))}));return function(t,n){return e.apply(this,arguments)}}();(0,o.useEffect)((()=>{null!=t&&t.c_redirectAction&&_e(null==t?void 0:t.c_redirectAction)}),[null==t?void 0:t.c_redirectAction]),(0,o.useEffect)((()=>()=>{}),[]);const Fe=o.useMemo((()=>
1{if(void 0===i)return[];var e;if(!(0,an.A6)(t))return(null==c?void 0:c.length)>0?c:(0,an.gS)(t)?(null==i||null===(e=i.additionalBodyContent)||void 0===e?void 0:e.contents)??[]:[];const n=(null==i?void 0:i.tierLocation)||"Product View",r=null==i?void 0:i.variantsSection,a=null==i?void 0:i.campaignSection,o=null==i?void 0:i.additionalBodyContent;return[...void 0===n||"Campaign Section"===n||"Opening Section"===n||"Product View"===n?[On]:[],...null!=a&&a.contents?a.contents:[],..."Product Variants Section"===n?[On]:[],...(null==r?void 0:r.flatMap((e=>e.contents??[])))??[],..."Additional Body Content"===n?[On]:[],...null!=o&&o.contents?o.contents:[]]}),[i,c,t]);if(Ce){const e=Ie(Ce);return o.createElement(v.rd,{to:{pathname:e}})}const We=Te&&(0,an.A6)(t)&&(null==t?void 0:t.c_cfTiers)&&o.createElement(b.a,{mt:{base:"4",lg:"8"}},o.createElement(Cn,{product:t,background:"hasbroShade.700"})),ze=(null==e?void 0:e.parentCategoryTree)||[],He=Te&&t&&o.createElement(h.B,{layerStyle:"responsiveContainer"},o.createElement(ce.E,(0,p.A)({position:"relative",isLoaded:!!ze},T.breadCrumbContainer),o.createElement(Ne.A,{categories:ze,productName:null==t?void 0:t.name}))),Ge=o.createElement(h.B,{layerStyle:"responsiveContainer"},o.createElement(mn,{product:t,category:Te?void 0:ze,addToCart:(e,t,n)=>De(e,t,n),handleRemoveItem:Le,addToWishlist:()=>ie(t.id,{pageType:"PDP",changedItemProduct:t,source:"pdp"}),removeFromWishlist:()=>se(t.id,{pageType:"PDP",changedItemProduct:t}),isInWishlist:ue,isProductLoading:n,isCustomerProductListLoading:!le.isInitialized,pdpContent:i,onItemQuantityChange:Re.bind(void 0,t),itemHasBeenRemoved:Z,showTrash:ge,selectedItem:K,isOpen:ye,onOpen:be,onClose:he,showStickyBar:Se,rtvActive:a,PDPCTAEnabled:V,enableWishlist:!!z})),qe=(e,t)=>{const n={};return e===Pe&&(n[xn]=Ge),e===Oe&&(n[kn]=We),o.createElement(pn.A,{key:e.anchorId||t,section:e,sectionIndex:t,parentPageMeta:null!=i&&i._meta?i._meta:null,rtvActive:a,childrenByAnchorId:n})},Ve=-1===Me?0:Me+1,$e=-1===Me?[]:ke.slice(0,Me),Ue=ke.slice(Ve);return o.createElement(b.a,(0,p.A)({className:"sf-product-detail-page","data-testid":"product-details-page",backgroundImage:null==U?void 0:U.backgroundImage,layerStyle:"page",position:"relative"},T.container),He,$e.map(((e,t)=>qe(e,t))),Pe?qe(Pe,Me):Ge,o.createElement(S.A,(0,p.A)({},Ee,{onPrimaryAction:()=>{Le(K)},onAlternateAction:()=>{}},fe)),o.createElement(h.B,{spacing:{base:4,lg:8}},o.createElement(b.a,null,Te?o.createElement(b.a,null,!Oe&&We,Ue.map(((e,t)=>qe(e,Ve+t)))):(null==Fe?void 0:Fe.length)>0&&o.createElement(b.a,null,Fe.map(((e,n)=>o.createElement(Dn,{key:n,idx:n,content:e,parentContent:i,rtvActive:a,product:t})))),o.createElement(X,{product:t}),o.createElement(D,{product:t}),(null==i||null===(_=i.promoSlot)||void 0===_||null===(x=_.content)||void 0===x?void 0:x.id)&&o.createElement(b.a,null,null!=xe&&xe.vse?o.createElement(L.A,{fetch:{id:null===(k=i.promoSlot)||void 0===k||null===(P=k.content)||void 0===P?void 0:P.id},parentPageMeta:null!=i&&i._meta?i._meta:null,rtvActive:a}):o.createElement(j.A,{fetch:[{id:null===(M=i.promoSlot)||void 0===M||null===(O=M.content)||void 0===O?void 0:O.id}],parentPageMeta:null!=i&&i._meta?i._meta:null}))),null!=t&&t.c_hideRecommendedProducts?null:o.createElement(h.B,{layerStyle:"responsiveContainer"},o.createElement(C.A,(0,p.A)({title:o.createElement(g.A,{defaultMessage:[{type:0,value:"You May Also Like"}],id:"add_to_cart_modal.recommended_products.title.may_also_like"}),zone:"pdp-recommender",products:t&&[t],shouldFetch:()=>null==t?void 0:t.id,paddingBottom:{base:Se?16:0,xl:0}},T.compactRecommenderContainer)))))};Bn.propTypes={preSectionContent:c().array,category:c().object,product:c().object,isLoading:c().bool,match:c().object,rtvActive:c().bool,pdpContent:c().object,pdpBodyContent:c().array};const Rn=Bn;var Fn=n(40897),Wn=n(11747),Nn=n(30954),zn=n(41738),Hn=n(32127),Gn=n(64704),qn=n(21651);const Vn=["product","category","enableWishlist","isWishlisted","onWishlistToggle","dynamicImageProps","tileSource","imageGroups","variant"];function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?$n(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qn=()=>{const e=(0,f.o)("ProductTile");return o.createElement(b.a,{"data-testid":"sf-product-tile-skeleton"},o.createElement(h.B,{spacing:2},o.createElement(b.a,e.imageWrapper,o.createElement(_e.g,(0,p.A)({ratio:1},e.image),o.createElement(ce.E,null))),o.createElement(ce.E,{width:"80px",height:"20px"}),o.createElement(ce.E,{width:{base:"120px",md:"220px"},height:"12px"})))},Kn=e=>{var t;const n=(0,s.A)(),a=(0,A.A)(),l=(0,P.A)(),{isOpen:i,onClose:c,onOpen:d}=(0,y.j)(),{product:u,category:m,enableWishlist:g=!1,isWishlisted:v,onWishlistToggle:h,dynamicImageProps:I,tileSource:C,imageGroups:_=[],variant:S}=e,x=(0,se.A)(e,Vn),{currency:k,id:M}=u,O=u.name??u.productName,T="brand"===S,D="set"===C?(0,o.useMemo)((()=>(0,de.F)(_,{viewType:"set",product:u})),[u]):_,j=null==D?void 0:D.images[0],[L,B]=(0,o.useState)(!1),[F,W]=(0,o.useState)(!1),z=(0,f.o)("ProductTile"),{klaviyoPublicKey:q}=(0,o.useContext)(ue.f),V=!(u.c_hideProductTileCTA||(0,an.A6)(u)||(0,an.XV)(u)&&!1===u.c_isCFCampaignActive),$=(0,N.d)(),K=o.useRef(),{formatMessage:Y}=(0,s.A)(),{gtmDataLayer:Z}=(0,o.useContext)(G.q),J=H()(function(){var e=(0,r.A)((function*(e,t){try{var n;if(null==e||!e.inventory.orderable||!t)return;const c=(0,ne.u)(e,"set"===C&&m?m.name:C);Z(c);const s=e.id,d=a.productItems&&a.productItems.filter((e=>e.productId===s))||[];var r,l;if(d.length>0){var i;const t=parseInt((null===(i=d[0])||void 0===i?void 0:i.quantity)||0)+1,n={productId:s,quantity:t};r=yield a.updateItemInBasket(n,d[0].itemId,e)}else{const n=[{productId:s,quantity:t,price:null==e?void 0:e.c_salePrice}];r=yield a.addItemToBasket(n,e)}null!==(n=r)&&void 0!==n&&n.success?K.current=$({render:()=>o.createElement(w.A,{title:Y({id:"product.addtocart.success",defaultMessage:[{type:0,value:"Item added to cart"}]}),status:"success",icon:E.P8,isClosable:!0,onClose:()=>{$.close(K.current)}})}):null!==(l=r)&&void 0!==l&&l.quantityRestriction?K.current=$({render:()=>o.createElement(w.A,{title:Y({id:"product.quantity.limit.exceeded",defaultMessage:[{type:0,value:"Quantity Limit exceeded"}]}),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{$.close(K.current)}})}):K.current=$({render:()=>o.createElement(w.A,{title:Y(R.gS),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{$.close(K.current)}})})}catch(e){K.current=$({render:()=>o.createElement(w.A,{title:Y(R.gS),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{$.close(K.current)}})})}}));return function(t,n){return e.apply(this,arguments)}}(),75);return o.createElement(b.a,{maxW:{base:"100%",lg:T?"424px":"350px"}},o.createElement(b.a,z.container,o.createElement(ze.A,(0,p.A)({"data-testid":"product-tile",to:(0,It.ec)({id:M,name:O,categoryId:null==m?void 0:m.id},n.local)},x),o.createElement(b.a,(0,p.A)({},z.imageWrapper,{background:"darkMagic",borderRadius:"16px"}),o.createElement(_e.g,(0,p.A)({},z.tileImage,{ratio:1}),o.createElement(Pe.A,{src:`${(null==j?void 0:j.disBaseLink)||(null==j?void 0:j.link)}?sw={width}&q=60&fmt=auto&$medium$`,widths:null==I?void 0:I.widths,imageProps:Un(Un({alt:null==j?void 0:j.alt,loading:"lazy"},null==I?void 0:I.imageProps),{},{borderRadius:"16px"})})),!T&&o.createElement(b.a,{onClick:e=>{e.preventDefault()},position:"absolute",top:"2",right:"2",columnGap:"1"},g&&o.createElement(Hn.q$,{isWishlisted:v,isWishlistLoading:L,setWishlistLoading:B,onWishlistToggle:h,customer:l}))))),o.createElement(vn.x,{gridTemplate:"1fr auto / auto auto",mt:"16px"},o.createElement(yn.E,{order:"1",gridColumn:T?"span 2":"span 1",textAlign:T?"center":"unset"},o.createElement(ze.A,(0,p.A)({"data-testid":"product-tile",to:(0,It.ec)({id:M,name:O,categoryId:null==m?void 0:m.id},n.locale)},x),o.createElement(U.E,z.title,O))),V&&o.createElement(yn.E,{order:T?3:2},o.createElement(Q.s,null,!(null!=u&&null!==(t=u.inventory)&&void 0!==t&&t.orderable)&&(null==u?void 0:u.c_BISnotifyMe)&&o.createElement(o.Fragment,null,o.createElement(Nn.E,(0,p.A)({variant:"outline",borderColor:"white",onClick:d},z.notifyMeBadge),n.formatMessage({defaultMessage:[{type:0,value:"Notify Me"}],id:"product_view.button.notify_me"}),o.createElement(E.r4,{width:"20px",height:"16px",ml:"5px"})),o.createElement(Ge.A,{isOpen:i,onClose:c,productName:null==u?void 0:u.name,image:j,productID:null==u?void 0:u.id,klaviyoAPIKey:q})),u.inventory.orderable&&(F?o.createElement(zn.y,{size:"xl",borderColor:"black",borderBottomColor:"white",borderLeftColor:"white"}):o.createElement(_t.K,{onClick:function(){var e=(0,r.A)((function*(e){W(!0);const t=(0,Gn.Y)(e,!0,!0,!1,J(u,1));t<500?setTimeout((()=>{W(!1)}),t+1e3):W(!1)}));return function(t){return e.apply(this,arguments)}}(),width:"0",height:"35px",icon:o.createElement(E.QK,null),variant:"unstyled"})))),o.createElement(yn.E,{order:T?2:3,gridColumn:T?"span 1":"span 2",placeSelf:T?"end":""},o.createElement(qn.A,{"data-testid":"product-brand-tile-price",currency:k,prices:{price:(null==u?void 0:u.price)||void 0,priceMax:(null==u?void 0:u.priceMax)||void 0,setPrice:null==u?void 0:u.c_productSetPrice,salePrice:null==u?void 0:u.c_salePrice,listPrice:null==u?void 0:u.c_listPrice},productType:null==u?void 0:u.type,isBrandTile:T,variant:"brandTile"}))))};Kn.displayName="ProductTileSet",Kn.propTypes={product:Wn.u6,category:c().object,enableWishlist:c().bool,isWishlisted:c().bool,onWishlistToggle:c().func,dynamicImageProps:c().object,imageGroups:c().any,tileSource:c().oneOf(["category","re
1commendations","search","clp","set","featuredCollection","featuredProducts"]),variant:c().string};const Yn=Kn;function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xn=({category:e,product:t,isLoading:n,pdpContent:a,pdpBodyContent:l,rtvActive:i})=>{var c,u,m;const v=(0,f.o)("ProductDetail"),x=(0,A.A)(),k=(0,d.Bj)(t),{formatMessage:P}=(0,s.A)(),[M,O]=(0,o.useState)(void 0),T=(0,N.d)(),z=o.useRef(),{wishlist:q,addToWishlist:V,removeFromWishlist:$}=(0,I.A)(),{displayWishlistIcon:U}=(0,W.$9)()??{},K=!!q.findItemByProductId(null==t?void 0:t.id),[Y,Z]=(0,o.useState)({}),[J,ae]=(0,o.useState)(!1),oe=(0,y.j)(),{isOpen:le,onOpen:ie,onClose:ce}=(0,y.j)(),se=Jn(Jn({},R.Ov),{},{onPrimaryAction:F.lQ}),{gtmDataLayer:de}=(0,o.useContext)(G.q),{client:ue}=(0,o.useContext)(B.W),{eventClient:me}=(0,o.useContext)(ee.be),pe=(e,t)=>V((null==t?void 0:t.productId)||(null==e?void 0:e.id),{pageType:"PDP",changedItemProduct:t||e,variantId:null==t?void 0:t.productId,source:"pdpSet"}).catch((()=>{})),ge=function(){var e=(0,r.A)((function*(e,n){try{if(null==e||!e.inventory.orderable||!n)return;const a=(0,ne.u)(t,"pdpSet");de(a);const o=e.id,l=x.productItems&&x.productItems.filter((e=>e.productId===o))||[];if(l.length>0){var r;const t=parseInt((null===(r=l[0])||void 0===r?void 0:r.quantity)||0)+1,n={productId:o,quantity:t};return yield x.updateItemInBasket(n,l[0].itemId,e)}{const e=[{productId:o,quantity:n,price:null==t?void 0:t.c_salePrice}];return yield x.addItemToBasket(e,k)}}catch(e){ve(e)}}));return function(t,n){return e.apply(this,arguments)}}(),ve=()=>{z.current=T({render:()=>o.createElement(w.A,{title:P(R.gS),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{T.close(z.current)}})})},fe=function(){var e=(0,r.A)((function*(e){O(t);try{const n=x.productItems.filter((t=>t.productId===e.id)),r=(0,re.o)(n[0],"pdp");de(r),null==me||me.cart.logRemoveFromCart((0,te.rb)({products:[t],quantity:n[0].quantity,cartId:x.basketId})),yield x.removeItemFromBasket(n[0].itemId),z.current=T({render:()=>o.createElement(w.A,{title:P({defaultMessage:[{type:0,value:"Item removed from cart"}],id:"cart.info.removed_from_cart"}),status:"success",icon:E.Te,isClosable:!0,onClose:()=>{T.close(z.current)}})})}catch{ve()}finally{O(void 0)}}));return function(t){return e.apply(this,arguments)}}(),ye=H()(function(){var e=(0,r.A)((function*(e,t){Z(Jn(Jn({},Y),{},{[t.id]:e})),O(t);try{const n={productId:t.id,quantity:parseInt(e)},r=x.productItems.filter((e=>e.productId===t.id));yield x.updateItemInBasket(n,r[0].itemId,t)}catch{ve()}finally{O(void 0),Z(Jn(Jn({},Y),{},{[t.id]:void 0})),ae(1===e)}}));return function(t,n){return e.apply(this,arguments)}}(),750),be=function(){var e=(0,r.A)((function*(e,t){var n;const r=(null===(n=x._productItemsDetail[e.id].inventory)||void 0===n?void 0:n.stockLevel)||"OUT_OF_STOCK";return 0===t?(ye.flush(),O(e),oe.onOpen(),!1):(ye.cancel(),t===e.quantity||!("OUT_OF_STOCK"===r&&t>e.quantity)&&(ye(t,e),!0))}));return function(t,n){return e.apply(this,arguments)}}();return o.createElement(b.a,(0,p.A)({className:"sf-product-detail-page","data-testid":"product-details-page",backgroundImage:null==k?void 0:k.backgroundImage,layerStyle:"page"},v.container),o.createElement(Q.s,(0,p.A)({layerStyle:"responsiveContainer"},v.topContainer),o.createElement(_.A,{product:t,category:(null==e?void 0:e.parentCategoryTree)||[],addToCart:(e,t)=>ge(e,t),handleRemoveItem:fe,addToWishlist:e=>pe(e,null),removeFromWishlist:()=>$(t.id,{pageType:"PDP",changedItemProduct:t}).catch((()=>{})),isInWishlist:K,enableWishlist:!!U,isProductLoading:n,isCustomerProductListLoading:!q.isInitialized,onItemQuantityChange:be.bind(void 0,t),showTrash:J,selectedItem:M,isOpen:le,onOpen:ie,onClose:ce,showStickyBar:!0,pdpContent:a})),o.createElement(Fn.default,{size:"full",variant:"full",pdpContent:a,rtvActive:i,products:n||null==t||!t.setProducts?new Array(3).fill(0).map(((e,t)=>o.createElement(Qn,{key:t}
1))):null==t||null===(c=t.setProducts)||void 0===c?void 0:c.map((t=>{const n=!!q.findItemByProductId(t.id);return o.createElement(Yn,{"data-testid":`sf-product-tile-${t.id}`,key:t.id,product:t,category:e,enableWishlist:!!U,isWishlisted:n,onWishlistToggle:function(){var e=(0,r.A)((function*(e){e?yield pe(t,null):yield $(t.id,{pageType:"PDP",changedItemProduct:t})}));return function(t){return e.apply(this,arguments)}}(),tileSource:"set",imageGroups:t.imageGroups})}))}),null==l?void 0:l.map(((e,t)=>{var n;if(e)return o.createElement(b.a,{mt:0===t?0:{base:"4",lg:"8"},key:null==e||null===(n=e._meta)||void 0===n?void 0:n.deliveryId},null!=ue&&ue.vse?o.createElement(L.A,{content:e,parentPageMeta:null!=a&&a._meta?a._meta:null,rtvActive:i}):o.createElement(j.A,{content:e,parentPageMeta:null!=a&&a._meta?a._meta:null,data_creative_index:t}))})),o.createElement(S.A,(0,p.A)({},se,{onPrimaryAction:()=>{fe(M)},onAlternateAction:()=>{}},oe)),o.createElement(X,{product:t}),o.createElement(D,{product:t}),a&&null!=a&&null!==(u=a.promoSlot)&&void 0!==u&&null!==(m=u.content)&&void 0!==m&&m.id?o.createElement(b.a,null,null!=ue&&ue.vse?o.createElement(L.A,{fetch:{id:a.promoSlot.content.id},rtvActive:i}):o.createElement(j.A,{fetch:[{id:a.promoSlot.content.id}]})):o.createElement(o.Fragment,null),o.createElement(h.B,{spacing:16},o.createElement(C.A,{title:o.createElement(g.A,{defaultMessage:[{type:0,value:"You May Also Like"}],id:"add_to_cart_modal.recommended_products.title.may_also_like"}),zone:"pdp-recommender",products:t&&[t],shouldFetch:()=>null==t?void 0:t.id})))};Xn.propTypes={category:c().object,product:c().object,isLoading:c().bool,match:c().object,pdpContent:c().object,pdpBodyContent:c().array,rtvActive:c().bool};const er=Xn;var tr=n(78704);const nr=({variant:e,currency:t,wrapperStyles:n={},scrollRef:a,fundingStatus:l})=>{var i,c,u;const m=(0,f.o)("ProductTile",{variant:"crowdfund"}),[g,v]=(0,o.useState)(!1),[h,w]=(0,o.useState)(!1),A=(0,tr.A)(e,1,"hasLab"),I=(0,s.A)(),{currency:C}=(0,d.H2)(),{isOpen:_,onOpen:S,onClose:x}=(0,y.j)(),k=o.useRef();return o.createElement(b.a,(0,p.A)({},m.box,n),o.createElement(Q.s,{flexDirection:"column",height:"100%"},(null==e||null===(i=e.images)||void 0===i?void 0:i.medium)&&!(null==e||null===(c=e.images)||void 0===c||!c.medium.length)&&(null==e||null===(u=e.images)||void 0===u?void 0:u.medium.map((e=>o.createElement(bn.E,{key:e.index,alt:e.alt||"",src:(null==e?void 0:e.url)&&`${null==e?void 0:e.url}?q=60&fmt=auto&$medium$`,title:e.title,htmlWidth:"100%",htmlHeight:"100%",borderRadius:"base",loading:"lazy"})))),o.createElement(U.E,m.name,null==e?void 0:e.name),o.createElement(U.E,m.price,I.formatNumber(null==e?void 0:e.price,{style:"currency",currency:t||C})),o.createElement(b.a,(0,p.A)({},m.desc,{dangerouslySetInnerHTML:{__html:null==e?void 0:e.longDescription}})),o.createElement(Q.s,{flexDirection:"column",gap:"6",mt:4},null!=e&&e.c_isCampaignEnded?o.createElement(Ot,{campaignFailed:"failed"===l}):o.createElement(o.Fragment,null,o.createElement(Q.s,{gap:"1",fontSize:"sm",fontWeight:"bold",lineHeight:4,flexWrap:"wrap",ref:a},o.createElement(he.S,{alignItems:"center",id:"agreeTerms",checked:g,onChange:e=>{v(e.target.checked),e.target.checked&&w(!1)}},I.formatMessage({id:"crowdfund_product_tile.agree.terms",defaultMessage:[{type:0,value:"I agree to the"}]})),o.createElement(ye.$,{onClick:S,variant:"underline",p:"0",whiteSpace:"normal",minWidth:"0px",fontSize:"14px",height:"auto",ref:k},I.formatMessage({defaultMessage:[{type:0,value:"Terms of Service"}],id:"crowdfund_product_tile.terms.service"}),o.createElement(E.mo,{boxSize:4,color:"white",ml:1})),o.createElement(ge.A,{isOpen:_,onClose:x,btnRef:k,contentId:"terms-haslab"}),h?o.createElement(U.E,{style:{color:"#EA3757",width:"100%",fontSize:"12px",fontWeight:"400",lineHeight:"18px"},marginTop:"4px",tabIndex:0},I.formatMessage({defaultMessage:[{type:0,value:"Agree to the Terms of Service to proceed."}],id:"crowdfund_product_tile.terms.service.error"})):""),o.createElement(ye.$,{variant:"primary",onClick:function(){var e=(0,r.A)((function*(e){g?(e.preventDefault(),e.target.disabled=!0,yield A(),e.target.disabled=!1,w(!1)):w(!0)}));return function(t){return e.apply(this,arguments)}}(),px:"0",minWidth:"0px",whiteSpace:"unset",width:"100%","data-testid":`haslab-back-${null==e?void 0:e.id}`},I.formatMessage({defaultMessage:[{type:0,value:"BACK THIS PROJECT"}],id:"crowdfund_product_tile.button.back"}))))))};nr.propTypes={currency:c().string,variant:c().object,wrapperStyles:c().object,scrollRef:c().object,fundingStatus:c().string};const rr=nr;function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ar(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const lr=({campaignActive:e,name:t,image:n,goalValue:r,goalType:a,endDate:l,fundingStatus:i,currentValue:c,scrollRef:d,shippingDate:u,tiers:m,currency:p,prices:g})=>{var v;const f=(0,s.A)(),y=(null==m?void 0:m.length)||null,h=(null==m||null===(v=m.filter((e=>e.status===R.PC.FUNDED)))||void 0===v?void 0:v.length)??null;return(0,o.useEffect)((()=>{const e=document.createElement("style");return e.innerHTML="\n #usntA40Toggle {\n bottom: 110px !important;\n }\n @media (max-width: 769px) {\n #usntA40Toggle {\n bottom: 200px !important;\n }\n }\n ",document.head.appendChild(e),()=>{document.head.removeChild(e)}}),[]),o.createElement(Q.s,{flexDirection:{base:"column",xl:"row"},columnGap:{base:0,xl:2},rowGap:"4",justifyContent:{base:"center",xl:"space-between"}},o.createElement(Q.s,{alignItems:"center",columnGap:{base:0,xl:2},display:{base:"none",xl:"flex"}},o.createElement(b.a,{flexShrink:"0",width:"54px",height:"54px"},o.createElement(Pe.A,{src:(null==n?void 0:n.disBaseLink)||(null==n?void 0:n.absURL)||(null==n?void 0:n.link),srcOptions:{w:"108"},maxWidth:"54px",imageProps:{alt:null==n?void 0:n.alt,loading:"lazy"},rounded:"full"})),o.createElement(ce.E,{isLoaded:t},o.createElement(U.E,{fontWeight:700,noOfLines:1},`${t}`))),o.createElement(Ct.A,{active:e,anticipatedShipDate:u,campaignEndDate:l,currentValue:c,goalValue:r,status:i,tiersUnlocked:h,tiersTotal:y,containerTestID:"haslab-sticky-funding",goalType:a,layout:"sticky"}),o.createElement(Q.s,{alignItems:"center",gap:"4",flexShrink:"0",justifyContent:{base:"space-between",lg:"unset"}},e?o.createElement(o.Fragment,null,o.createElement(qn.A,{"data-testid":"product-teaser-price",currency:p,prices:or({},g),isFullProduct:!1}),o.createElement(ye.$,{onClick:()=>{if("undefined"!=typeof window){const e=d.current,t=e.getBoundingClientRect().top+window.scrollY-e.offsetHeight-200;window.scrollTo({top:t,behavior:"smooth"})}},variant:"primary",flexBasis:"100%",sx:{textTransform:"uppercase"},"data-testid":`haslab-tracker-back-${t.replace(/\s+/g,"-").toLowerCase()}`},f.formatMessage({id:"crowdfund_back_project",defaultMessage:[{type:0,value:"BACK THIS PROJECT"}]}))):o.createElement(Ot,{campaignFailed:"failed"===i})))};lr.propTypes={campaignActive:c().bool,name:c().string,fundingStatus:c().string,image:c().object,shippingDate:c().string,ctaButton:c().array,goalType:c().string,goalValue:c().number,endDate:c().number,currentValue:c().number,scrollRef:c().object,stockBadge:c().object,tiers:c().array,prices:c().object,currency:c().string};const ir=lr;function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const dr=({product:e,showStickyBar:t=!1})=>{var n,r;const{showLoading:a}=(0,d.Bj)(e),l=(0,fe.A)({base:"mobile",lg:"desktop"}),{ref:i}=(0,Ue.Wx)({threshold:.25}),c=(0,o.useRef)(null),u=null===(n=(0,de.F)(null==e?void 0:e.imageGroups,{viewType:"small",selectedVariationAttributes:null==e?void 0:e.variationValues}))||void 0===n||null===(r=n.images)||void 0===r?void 0:r[0],m=(0,s.A)(),{footerHeight:g,footerInView:v}=(0,o.useContext)(pe.k),y=!1===(null==e?void 0:e.c_cfDemandGoal)?R.$0.NUMBER:R.$0.CURRENCY,h=y==R.$0.NUMBER?null==e?void 0:e.c_cfBackerGoal:null==e?void 0:e.c_cfDemandGoal,E=y==R.$0.NUMBER?null==e?void 0:e.c_cfCurrentBackers:null==e?void 0:e.c_cfCurrentDemand,w=(0,f.o)("ProductTile",{variant:"crowdfund"});return o.createElement(o.Fragment,null,o.createElement(Q.s,{mt:{base:"7",lg:"72px"},textAlign:"center",flexDirection:"column",alignItems:"center",gap:"2"},null!=e&&e.c_isCFCampaignActive?o.createElement(o.Fragment,null):"funded"===(null==e?void 0:e.c_cfCampaignStatus)?o.createElement(U.E,(0,p.A)({},w.badge,w.funded),m.formatMessage({id:"crowdfund.funded",defaultMessage:[{type:0,value:"Funded"}]})):o.createElement(U.E,(0,p.A)({},w.badge,w.notfunded),m.formatMessage({id:"crowdfund.modal.not_funded.heading",defaultMessage:[{type:0,value:"Not Funded"}]})),o.createElement(gn.D,{color:"white",as:"h3",size:"desktop"===l?"h2":"h3"},(null==e?void 0:e.c_isCFCampaignActive)&&(null==e?void 0:e.c_cfAdditionalTitle)&&o.createElement(b.a,null,null==e?void 0:e.c_cfAdditionalTitle),!(null!=e&&e.c_isCFCampaignActive)&&"funded"===(null==e?void 0:e.c_cfCampaignStatus)&&m.formatMessage({id:"crowdfund.pdp.funded.heading",defaultMessage:[{type:0,value:"This campaign has ended and was successfully backed!"}]}),!(null!=e&&e.c_isCFCampaignActive)&&"funded"!==(null==e?void 0:e.c_cfCampaignStatus)&&m.formatMessage({id:"crowdfund.pdp.not_funded.heading",defaultMessage:[{type:0,value:"Unfortunately, this project did not meet its backer goal."}]})),o.createElement(Q.s,w.desc,o.createElement(b.a,{dangerouslySetInnerHTML:{__html:null==e?void 0:e.c_cfAdditionalCopy}}),null!=e&&e.c_isCFCampaignActive?null:"funded"===(null==e?void 0:e.c_cfCampaignStatus)?(null==e?void 0:e.c_anticipatedShipDate)&&o.createElement(U.E,null,m.formatMessage({id:"crowdfund.pdp.funded.desc",defaultMessage:[{type:0,value:"It will now move into production."}]})):o.createElement(U.E,null,m.formatMessage({id:"crowdfund.pdp.not_funded.desc",defaultMessage:[{type:0,value:"It will not go into production"}]})))),o.createElement(Q.s,{ref:i,alignItems:"center",justifyContent:"center",py:"10"},a?o.createElement(o.Fragment,null,o.createElement(ce.E,{height:20,width:96}),o.createElement(ce.E,{height:20,width:96})):o.createElement(b.a,{width:"100%"},"desktop"===l?o.createElement(b.a,null,o.createElement(Q.s,{align:"center",justifyContent:"center",flexWrap:"wrap",gap:"4"},(null==e?void 0:e.c_cfVaraints)&&(null==e?void 0:e.c_cfVaraints.map((t=>o.createElement(rr,{key:t.name,variant:t,currency:null==e?void 0:e.currency,wrapperStyles:{width:"45%"},scrollRef:c,fundingStatus:null==e?void 0:e.c_cfCampaignStatus})))))):o.createElement(Oe.A,{flex:"1",showPartialSlide:!0,showControls:!1,controlsVariant:"plain",sx:{"--sc-slide-measurement":"85%",".sc-controls":{position:"absolute",left:"-65px",bottom:"50%",width:"calc(100% + 115px + var(--sc-spacing))",justifyContent:"space-between"},".sc-control":{padding:"16px",width:"64px",height:"64px",borderRadius:"50%",border:"2px s
1olid var(--chakra-colors-hasbroShade-300)",background:"transparent"},".sc-item":{display:"flex",flexDirection:"column",alignItems:"center"},".sc-indicators":{justifyContent:"center",marginTop:"0"}}},(null==e?void 0:e.c_cfVaraints)&&(null==e?void 0:e.c_cfVaraints.map(((t,n)=>o.createElement(Te.A,{key:null!=t&&t.id?null==t?void 0:t.id:n,display:"flex",alignItems:"center"},o.createElement(rr,{key:t.name,variant:t,currency:null==e?void 0:e.currency,wrapperStyles:{height:"100%"},scrollRef:c,fundingStatus:null==e?void 0:e.c_cfCampaignStatus})))))))),e&&t&&(null==e?void 0:e.c_isCFItem)&&o.createElement(b.a,{p:"4",color:"white",mb:"16",bg:"#1B1C1D",borderRadius:{base:"16px 16px 0 0",xl:"90px"},boxShadow:"0px 16px 32px rgba(0, 0, 0, 0.2)",marginBottom:"1",style:sr({zIndex:10,bottom:5,left:0,width:"100%"},v?{position:"absolute",bottom:g}:{position:"fixed"})},o.createElement(ir,{name:null==e?void 0:e.name,image:u,shippingDate:null==e?void 0:e.c_anticipatedShipDateValue,goalValue:h,tiers:null==e?void 0:e.c_cfTiers,currentValue:E,endDate:null==e?void 0:e.c_cfTimerDate,fundingStatus:null==e?void 0:e.c_cfCampaignStatus,campaignActive:null==e?void 0:e.c_isCFCampaignActive,scrollRef:c,goalType:y,currency:(null==e?void 0:e.currency)||void 0,prices:{price:(null==e?void 0:e.price)||void 0,priceMax:(null==e?void 0:e.priceMax)||void 0,setPrice:(null==e?void 0:e.c_productSetPrice)||void 0,salePrice:(null==e?void 0:e.c_salePrice)||void 0,listPrice:(null==e?void 0:e.c_listPrice)||void 0}})))};dr.propTypes={product:c().object,showStickyBar:c().bool};const ur=dr;var mr=n(97820);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vr=(e,t)=>{var n;return gr({},"v2"===e?null==t||null===(n=t.image)||void 0===n?void 0:n.content:t)},fr=({category:e,product:t,isLoading:n,rtvActive:a,pdpContent:i})=>{var c,u,g,E;const I=(0,f.o)("ProductDetail"),C=(0,s.A)(),_=(0,A.A)(),x=(0,d.Bj)(t),{formatMessage:k}=(0,s.A)(),[P,M]=(0,o.useState)(void 0),O=(0,N.d)(),T=o.useRef(),[D,W]=(0,o.useState)({}),[z,q]=(0,o.useState)(!1),V=(0,y.j)(),{isOpen:$,onOpen:Y,onClose:Z}=(0,y.j)(),J=gr(gr({},R.Ov),{},{onPrimaryAction:F.lQ}),{gtmDataLayer:X}=(0,o.useContext)(G.q),re=(0,v.zy)(),{eventClient:ae}=(0,ee.Jr)(),{ownedProductIds:oe}=(0,mr.A)(),{site:le,buildUrl:ie}=(0,m.A)(),[se,de]=(0,o.useState)(null==t?void 0:t.c_redirectAction),ue=C.locale,{client:me}=(0,o.useContext)(B.W),pe=null==i?void 0:i.openingSection,ge=null==i?void 0:i.dividerImage,ve=null==i?void 0:i.campaignSection,fe=null==i?void 0:i.variantsSection,ye=null==i?void 0:i.enableJumpLinkNav,be=(null==i?void 0:i.tierLocation)||"Product View",he=(0,_n.WM)(i),{isSuccess:Ee,data:we}=(0,l.I)({queryKey:[null==i||null===(c=i.additionalBodyContent)||void 0===c?void 0:c.contents,(null==me?void 0:me.groups)||[]],queryFn:()=>{var e;return(0,_n.am)(me,le,ue,null==i||null===(e=i.additionalBodyContent)||void 0===e?void 0:e.contents)},refetchOnWindowFocus:!1,enabled:(null==i||null===(u=i.additionalBodyContent)||void 0===u||null===(g=u.contents)||void 0===g?void 0:g.length)>0,staleTime:12e4}),Ae=Ee?we:[],Ie=function(){var e=(0,r.A)((function*(e,n,r){try{if(null==e||!e.orderable||!n)return;const a=[{productId:e.productId,quantity:n,price:e.price}];null==ae||ae.cart.logAddToCart((0,te.LR)({location:re,products:[t],quantity:n,cartId:_.basketId,itemListId:"pdp",itemListName:"pdp",placementIndex:0,ownedProductIds:oe,clickTarget:"primary_cart_button"}));const o=(0,ne.u)(t,"pdp");return X(o),yield _.addItemToBasket(a,x,r)}catch(e){Ce(e)}}));return function(t,n,r){return e.apply(this,arguments)}}(),Ce=()=>{T.current=O({render:()=>o.createElement(w.A,{title:k(R.gS),status:"error",isClosable:!0,onClose:()=>{O.close(T.current)}})})},_e=function(){var e=(0,r.A)((function*(e){M(t);try{const t=_.productItems.filter((t=>t.productId===e.id));yield _.removeItemFromBasket(t[0].itemId),T.current=O({render:()=>o.createElement(w.A,{title:k({defaultMessage:[{type:0,value:"Item removed from cart"}],id:"cart.info.removed_from_cart"}),status:"success",isClosable:!0,onClose:()=>{O.close(T.current)}})})}catch{Ce()}finally{M(void 0)}}));return function(t){return e.apply(this,arguments)}}(),Se=H()(function(){var e=(0,r.A)((function*(e,t){W(gr(gr({},D),{},{[t.id]:e})),M(t);try{const n={productId:t.id,quantity:parseInt(e)},r=_.productItems.filter((e=>e.productId===t.id));yield _.updateItemInBasket(n,r[0].itemId,t)}catch{Ce()}finally{M(void 0),W(gr(gr({},D),{},{[t.id]:void 0})),q(1===e)}}));return function(t,n){return e.apply(this,arguments)}}(),750),xe=function(){var e=(0,r.A)((function*(e,t){const{stockLevel:n}=_._productItemsDetail[e.id].inventory;return 0===t?(Se.flush(),M(e),V.onOpen(),!1):(Se.cancel(),t>n||e.quantity,!0)}));return function(t,n){return e.apply(this,arguments)}}();if((0,o.useEffect)((()=>{null!=t&&t.c_redirectAction&&de(null==t?void 0:t.c_redirectAction)}),[null==t?void 0:t.c_redirectAction]),se){const e=ie(se);return o.createElement(v.rd,{to:{pathname:e}})}return o.createElement(b.a,(0,p.A)({className:"sf-product-detail-page","data-testid":"product-details-page",layerStyle:"page"},I.container),o.createElement(vn.x,I.openingSectionContainer,o.createElement(yn.E,I.openingSectionBackgroun
1d,he&&(null==pe?void 0:pe.mainImage)&&o.createElement(o.Fragment,null,null!=me&&me.vse?o.createElement(L.A,{content:vr(he,pe.mainImage),rtvActive:a,styles:{width:"100%"},wrapperStyles:{height:"100%",display:"flex",alignItems:"flex-end",justifyContent:"center"}}):o.createElement(j.A,{styles:{width:"100%"},wrapperStyles:{height:"100%",display:"flex",alignItems:"flex-end",justifyContent:"center"},content:vr(he,pe.mainImage)}))),o.createElement(yn.E,I.openingSectionContent,o.createElement(b.a,{ml:"60px"},e&&t&&o.createElement(ce.E,(0,p.A)({position:"relative",isLoaded:e},I.breadCrumbContainer),o.createElement(Ne.A,{categories:(null==e?void 0:e.parentCategoryTree)||[],productName:null==t?void 0:t.name}))),o.createElement(b.a,{px:"4"},pe&&(null==pe||null===(E=pe.logo)||void 0===E?void 0:E.content)&&o.createElement(Q.s,{justify:"center"},null!=me&&me.vse?o.createElement(L.A,{content:pe.logo.content,rtvActive:a,styles:{width:"300px"}}):o.createElement(j.A,{content:pe.logo.content,styles:{width:"300px"}})),o.createElement(Q.s,I.haslabHeaderContainer,o.createElement(gn.D,(0,p.A)({as:"h1"},I.haslabHeader),null==t?void 0:t.name)),o.createElement(Q.s,{justify:"center"},o.createElement(Zt.G,{label:k({id:"countdown.fundingEndsIn",defaultMessage:[{type:0,value:"Funding Ends In"}]}),endLabel:k({id:"countdown.fundingEnded",defaultMessage:[{type:0,value:"Funding Ended"}]}),labelTranslations:{day:k({id:"countdown.days",defaultMessage:[{type:0,value:"Day"}]}),days:k({id:"countdown.days",defaultMessage:[{type:0,value:"Days"}]}),hour:k({id:"countdown.hours",defaultMessage:[{type:0,value:"Hour"}]}),hours:k({id:"countdown.hours",defaultMessage:[{type:0,value:"Hours"}]}),minute:k({id:"countdown.min",defaultMessage:[{type:0,value:"Min"}]}),minutes:k({id:"countdown.min",defaultMessage:[{type:0,value:"Min"}]}),second:k({id:"countdown.sec",defaultMessage:[{type:0,value:"Sec"}]}),seconds:k({id:"countdown.sec",defaultMessage:[{type:0,value:"Sec"}]})},marginTop:8,targetInMilliseconds:new Date(null==t?void 0:t.c_cfTimerDate).getTime(),testID:"countdown",variant:"endsin",alignSelf:"center"}))),"Opening Section"==be&&o.createElement(Cn,{product:t,dividerImage:ge}))),ye&&i&&[i].map(((e,t)=>{const{campaignSection:n,additionalBodyContent:r,variantsSection:a}=e;var l=[];if(null!=n&&n.contents&&(l=[...l,...n.contents]),a&&a.length&&a.forEach((e=>l=[...l,...e.contents])),null!=r&&r.contents&&(l=[...l,...r.contents]),l.length>0)return o.createElement(Q.s,(0,p.A)({key:t},I.sectionNavJumpLinksContainer,{className:"hidden-scrollbar"}),l&&l.map(((e,t)=>e&&e.sectionTitle&&e.content&&o.createElement(K.N,(0,p.A)({key:t,href:`#${e.content.id}`},I.sectionNavJumpLinks),o.createElement(U.E,null,e.sectionTitle)))))})),ve&&(null==ve?void 0:ve.contents)&&(null==ve?void 0:ve.contents.map((e=>{let t=null==e?void 0:e.content,n={};return t&&"https://content.hasbro.com/models/generic-content-block"===t.contentType&&(n={fontSize:{base:"16px",lg:"22px"},fontWeight:{base:"400",lg:"500"},maxWidth:"1096px",mx:"auto",p:7,textAlign:"center"}),t&&o.createElement(b.a,{id:null==t?void 0:t.id,key:null==t?void 0:t.id},null!=me&&me.vse?o.createElement(L.A,{fetch:{id:null==t?void 0:t.id},rtvActive:a,wrapperStyles:n}):o.createElement(j.A,{fetch:[{id:null==t?void 0:t.id}],wrapperStyles:n}))}))),"Campaign Section"==be&&o.createElement(Cn,{product:t,dividerImage:ge}),o.createElement(h.B,{layerStyle:"responsiveContainer"},o.createElement(ur,{product:t,addToCart:(e,t,n)=>Ie(e,t,n),handleRemoveItem:_e,isProductLoading:n,pdpContent:i,onItemQuantityChange:xe.bind(void 0,t),showTrash:z,selectedItem:P,isOpen:$,onOpen:Y,onClose:Z,showStickyBar:!0})),"Product View"==be&&o.createElement(Cn,{product:t,dividerImage:ge}),fe&&fe.map(((e,t)=>o.createElement(o.Fragment,{key:t},o.createElement(An.A,{mainImage:{image:ge},styles:{width:"100%",objectFit:"cover"}}),o.createElement(b.a,{key:null==e?void 0:e.title},o.createElement(U.E,{fontSize:"18px",fontWeight:700,textAlign:"center",color:"#FFF"},null==e?void 0:e.title),e.contents.map((e=>{var t;let n=null==e||null===(t=e.content)||void 0===t?void 0:t.id;return n&&o.createElement(b.a,{id:n,key:n},null!=me&&me.vse?o.createElement(L.A,{fetch:{id:n},rtvActive:a}):o.createElement(j.A,{fetch:[{id:n}]}))})))))),"Product Variants Section"==be&&o.createElement(Cn,{product:t,dividerImage:ge}),null==Ae?void 0:Ae.map(((e,t)=>{var n;if(e)return o.createElement(o.Fragment,{key:`${null==e||null===(n=e._meta)||void 0===n?void 0:n.deliveryId}-${t}`},o.createElement(An.A,{mainImage:{image:ge},styles:{width:"100%",objectFit:"cover"}}),o.createElement(b.a,{id:null==e?void 0:e.id},null!=me&&me.vse?o.createElement(L.A,{content:e,rtvActive:a}):o.createElement(j.A,{content:e})))})),"Additional Body Content"==be&&o.createElement(Cn,{product:t,dividerImage:ge}),o.createElement(S.A,(0,p.A)({},J,{onPrimaryAction:()=>{_e(P)},onAlternateAction:()=>{}},V)))};
1fr.propTypes={category:c().object,product:c().object,isLoading:c().bool,match:c().object,rtvActive:c().bool,pdpContent:c().object};const yr=fr;var br=n(38511);const hr=({name:e})=>{const t=(0,f.o)("ProductDetail"),n=(0,s.A)();return o.createElement(Q.s,{flexDirection:"column",rowGap:"4",align:"flex-start"},o.createElement(ce.E,{isLoaded:e},o.createElement(gn.D,(0,p.A)({as:"h2",size:"h2"},t.productName,{fontSize:"3rem"}),`${e}`)),o.createElement(gn.D,{as:"h5",size:"h5",color:"white",fontWeight:"400",fontSize:"1.375rem"},o.createElement(U.E,{as:"span",fontWeight:400},n.formatMessage({defaultMessage:[{type:0,value:"It PAYS to be Premium! Here are just some of the perks you will enjoy as a Hasbro Pulse Premium Member for a year!"}],id:"pulse_premium.free_shipping_callout"}))))};hr.propTypes={name:c().string,description:c().string,prices:c().shape({setPrice:c().number||c().undefined,salePrice:c().number||c().undefined,listPrice:c().number||c().undefined}),sku:c().string,currency:c().string,productType:c().shape({set:c().bool})};const Er=hr;var wr=n(54625);const Ar=(e,t)=>{var n;return"v2"===e?null==t||null===(n=t.image)||void 0===n?void 0:n.content:t},Ir=({product:e,category:t,showFullLink:n=!1,imageSize:a="md",addToCart:l,updateCart:i,isProductLoading:c,onItemQuantityChange:u=F.lQ,showStickyBar:h=!1,pdpContent:I=null,rtvActive:C,PPCTAEnabled:_})=>{var S,x,k;const M=(0,s.A)(),{site:O,locale:T,buildUrl:D}=(0,m.A)(),{formatMessage:W}=(0,s.A)(),z=(0,v.W6)(),G=(0,v.zy)(),V=(0,Ae.B)(),$=(0,f.o)("ProductDetail"),Y=(0,f.o)("PulsePremium"),[Z,J]=(0,o.useState)(!1),{onOpen:X}=(0,y.j)(),[ee,te]=(0,o.useState)(0),ne=(0,A.A)(),re=(0,At.A)(),[ae,oe]=(0,o.useState)(!1),{client:le}=(0,o.useContext)(B.W),ie=null===(S=(0,de.F)(null==e?void 0:e.imageGroups,{viewType:"small",selectedVariationAttributes:null==e?void 0:e.variationValues}))||void 0===S||null===(x=S.images)||void 0===x?void 0:x[0],{showLoading:se,showInventoryMessage:ue,quantity:me,setQuantity:pe,variant:ge,variationParams:fe,stockStatus:he,stepQuantity:Ee,masterQuantityRestriction:Ie,variantRestriction:Ce,BISNotifyMe:_e,isMaster:Se,isSet:xe}=(0,d.Bj)(e),ke=ne.getProductQuantityInBasket(ge?null==ge?void 0:ge.productId:null==e?void 0:e.id),Pe=Ce||Ie;var Me;const Oe=(0,P.A)(),Te=(0,_n.WM)(I);Me=xe?!c&&(null==ge?void 0:ge.orderable)&&parseInt(me)>0:!c&&(null==ge?void 0:ge.orderable)&&parseInt(me)>0&&"OUT_OF_STOCK"!==he;const De=(0,N.d)(),je=o.useRef(),Le=()=>{je.current=De({render:()=>o.createElement(w.A,{title:W(R.gS),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{De.close(je.current)}})})},Be=()=>{je.current=De({render:()=>o.createElement(w.A,{title:W({id:"product.quantity.limit.exceeded",defaultMessage:[{type:0,value:"Quantity Limit exceeded"}]}),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{De.close(je.current)}})})},Re=()=>{je.current=De({render:()=>o.createElement(w.A,{title:W({id:"product.addtocart.success",defaultMessage:[{type:0,value:"Item added to cart"}]}),status:"success",icon:E.P8,isClosable:!0,onClose:()=>{De.close(je.current)}})})},Fe=e=>{e.preventDefault(),re("/login","push",{directedFrom:G.pathname})},We=(t,n)=>{const a=[],c=H()(function(){var t=(0,r.A)((function*(t){t.target.disabled=!0;const n=(0,ve.H)();if(n<500?setTimeout((()=>{oe(!1)}),n+1e3):oe(!1),(0,Et.b)(G,z),!Me)return J(!0),null;if(!l&&!i)return null;if(i)yield i(ge,me);else{if(xe)for(const t of(null==e?void 0:e.setProducts)||[]){var r,a,c=yield l(t,1);null!==(r=c)&&void 0!==r&&r.success?Re():null!==(a=c)&&void 0!==a&&a.quantityRestriction?Be():Le()}else{let t=yield l(ge,1,null==e?void 0:e.c_isMembershipProduct);null!=t&&t.success?Re():null!=t&&t.quantityRestriction?Be():null!=t&&t.existingPremiumMember?je.current=De({render:()=>o.createElement(w.A,{title:W({id:"product.premium.existing.member",defaultMessage:[{type:0,value:"You are already a Hasbro Pulse Premium member"}]}),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{De.close(je.current)}})}):null!=t&&t.message?(null==t||t.message,je.current=De({render:()=>o.createElement(w.A,{title:"<p dangerouslySetInnerHTML={{__html: message}}></p>",status:"error",icon:E.fZ,isClosable:!0,onClose:()=>{De.close(je.current)}})})):Le()}t.target.disabled=!1}}));return function(e){return t.apply(this,arguments)}}(),75);if(null!=e&&e.c_isMembershipProduct&&Oe.isGuest)a.push(o.createElement(ye.$,{onClick:Fe,width:"100%",variant:"pulsePremiumAddToCart",padding:"slim"===t?2:"15px 32px",h:"66px","data-testid":"login-to-purchase"},M.formatMessage({defaultMessage:[{type:0,value:"Become a Member"}],id:"product_view.pulepremium.become_member"}),o.createElement(E.vK,{"aria-label":"chevron right",ml:"10px"})));else if(l||i){const t=null==e?void 0:e.c_isPOItem,r=null==e?void 0:e.c_isCFItem;a.push(o.createElement(pt.A,{key:"add-to-cart",label:i?M.formatMessage({defaultMessage:[{type:0,value:"Update"}],id:"product_view.button.update"}):t&&"OUT_OF_STOCK"!==he?M.formatMessage({defaultMessage:[{type:0,value:"Pre-Order"}],id:"product_view.button.pre_order"}):xe?M.formatMessage({defaultMessage:[{type:0,value:"Buy the Set"}],id:"product_view.button.set"}):"OUT_OF_STOCK"!==he?M.formatMessage({defaultMessage:[{type:0,value:"Become a Member"}],id:"product_view.pulepremium.become_member"}):r?M.formatMessage({defaultMessage:[{type:0,value:"Back this project"}],id:"product_view.back.this.project"}):M.formatMessage({defaultMessage:[{type:0,value:"Sold Out"}],id:"product_view.button.sold_out"}),dataTestId:i?"update-cart-button":t&&"OUT_OF_STOCK"!==he?"pre-order-button":xe?"buy-the-set-button":"OUT_OF_STOCK"!==he?"add-to-cart-button":r?"back-this-project-button":"sold-out-button",maxQuantity:Pe,minQuantity:0,displayPDPATCSpinner:ae,onClick:e=>{oe(!0),c(e)},onChange:(e,t)=>
1{t>=0&&ke!=t?u(t).then((e=>e&&pe(t))):""===e&&pe(e)},quantity:ke,showQuantity:ke>0&&!(null!=e&&e.c_isMembershipProduct),showTrash:1==ke,stepQuantity:Ee,variant:"pulsePremiumAddToCart",size:n,h:"66px",disabled:ue||!_,restrictedMessage:null==e?void 0:e.c_restrictedMessage}))}return _e&&"OUT_OF_STOCK"===he&&!Se&&("slim"===t&&(a.length=0),a.push(o.createElement(b.a,{key:"out-of-stock-box"},o.createElement(ye.$,{key:"notify-me-button",onClick:X,width:"100%",variant:"primary",padding:"slim"===t?2:"15px 32px","data-testid":"notify-me-button"},M.formatMessage({defaultMessage:[{type:0,value:"Notify Me"}],id:"product_view.button.notify_me"}),o.createElement(E.r4,{ml:"10px"}))))),a};(0,o.useEffect)((()=>{Me&&J(!1)}),[null==ge?void 0:ge.productId]);const{ref:Ge,inView:qe,entry:$e}=(0,Ue.Wx)();return o.createElement(o.Fragment,null,o.createElement(b.a,null,t&&e&&o.createElement(ce.E,(0,p.A)({position:"relative",isLoaded:t},$.breadCrumbContainer),o.createElement(Ne.A,{categories:t,productName:null==e?void 0:e.name}))),o.createElement(Q.s,(0,p.A)({"data-testid":"product-view",direction:{base:"column",lg:"row"}},$.productViewContainer),o.createElement(b.a,{flex:1,mr:[0,0,0,0,6,20],pt:{base:"0",lg:"50px"},paddingBottom:{base:8,lg:0},textAlign:"center"},e?o.createElement(o.Fragment,null,o.createElement(He.A,{size:a,imageGroups:e.imageGroups,selectedVariationAttributes:fe,selectedIndexProps:[ee,te],heroClickHandler:V.onOpen,setSelectedImageIndex:e=>(e=>{te(e)})(e)},n&&e&&o.createElement(ye.$,{as:ze.A,variant:"tertiary",to:(0,It.ec)(e),"data-testid":"full-details-button"},M.formatMessage({defaultMessage:[{type:0,value:"View product details"}],id:"product_view.link.full_details"})))):o.createElement(He.E,null)),o.createElement(Q.s,(0,p.A)({flexDirection:"column",align:"stretch"},$.productVariations,{flex:1,marginBottom:[16,16,16,0,0],maxW:{base:"100%",lg:"324px",xl:"536px"},background:"transparent",boxShadow:"none",padding:"0"}),o.createElement(Q.s,{alignItems:"center",columnGap:"6",rowGap:"4",flexWrap:"wrap",justifyContent:null!=I&&I.logo?"space-between":"end"},Te&&null!=I&&I.logo?o.createElement(b.a,null,null!=le&&le.vse?o.createElement(L.A,{content:Ar(Te,I.logo),styles:$.amplienceLogo,rtvActive:C}):o.createElement(j.A,{content:Ar(Te,I.logo),styles:$.amplienceLogo})):o.createElement(o.Fragment,null)),o.createElement(Er,{name:null==e?void 0:e.name,prices:{price:(null==e?void 0:e.price)||void 0,priceMax:(null==e?void 0:e.priceMax)||void 0,setPrice:null==e?void 0:e.c_productSetPrice,salePrice:null==e?void 0:e.c_salePrice,listPrice:null==e?void 0:e.c_listPrice},currency:null==e?void 0:e.currency,productType:null==e?void 0:e.type}),e&&o.createElement(Ve.A,{stockBadgeType:null==e?void 0:e.c_stockBadge,customStockMessage:null==e?void 0:e.c_customStockMessage,mt:"4",mb:"0"}),o.createElement(b.a,{background:"#395777",borderRadius:"16px",boxShadow:"0px 16px 32px rgba(0, 0, 0, 0.2)",padding:{base:"24px",lg:"32px"}},o.createElement(Q.s,{justify:"flex-start",w:"100%"},o.createElement(Q.s,{w:"100%"},o.createElement(q.B8,{w:"100%",spacing:4},o.createElement(q.ck,Y.premiumNonmemberListItem,o.createElement(b.a,null,o.createElement(q.kp,{color:"white",as:E.aW,w:"20px",h:"20px"}),o.createElement(g.A,{id:"pulse_premium.early_access",defaultMessage:[{type:8,value:"early",children:[{type:0,value:"EARLY ACCESS"}]},{type:0,value:" "},{type:8,value:"specials",children:[{type:0,value:"to select product drops & back-in-stocks"}]}],values:{early:e=>o.createElement(U.E,{as:"span",fontWeight:"700"},e,"Â "),specials:e=>o.createElement(U.E,{as:"span",fontWeight:"500"},e)}})),o.createElement(b.a,null,o.createElement(br.t,{w:"12px",color:"white"}))),o.createElement(q.ck,Y.premiumNonmemberListItem,o.createElement(b.a,null,o.createElement(q.kp,{color:"white",as:E.xK,w:"20px",h:"20px"}),o.createElement(g.A,{id:"pulse_premium.member_benefits",defaultMessage:[{type:8,value:"member",children:[{type:0,value:"MEMBER-ONLY SAVINGS"}]},{type:0,value:" "},{type:8,value:"benefits",children:[{type:0,value:"on seasonal promotions & discounts"}]}],values:{member:e=>o.createElement(U.E,{as:"span",fontWeight:"700"},e,"Â "),benefits:e=>o.createElement(U.E,{as:"span",fontWeight:"500"},e)}})),o.createElement(b.a,null,o.createElement(br.t,{w:"12px",color:"white"}))),o.createElement(q.ck,Y.premiumNonmemberListItem,o.createElement(b.a,null,o.createElement(q.kp,{color:"white",as:E.wD,w:"20px",h:"20px"}),(null==O?void 0:O.id)===R.dB.EU&&"en-GB"===(null==T?void 0:T.id)?o.createElement(g.A,{id:"pulse_premium.free_shipping.hasbroeu",defaultMessage:[{type:8,value:"free",children:[{type:0,value:"FREE STANDARD DELIVERY"}]},{type:8,value:"shipping",children:[]}],values:{free:e=>o.createElement(U.E,{as:"span",fontWeight:"700"},e),shipping:e=>o.createElement(U.E,{as:"span",fontWeight:"500"},e)}}):o.createElement(g.A,{id:"pulse_premium.free_shipping",defaultMessage:[{type:8,value:"free",children:[{type:0,value:"FREE STANDARD SHIPPING"}]},{type:0,value:" "},{type:8,value:"shipping",children:[{type:0,value:"to the contiguous U.S. and Canada"}]}],values:{free:e=>o.createElement(U.E,{as:"span",fontWeight:"700"},e,"Â "),shipping:e=>o.createElement(U.E,{as:"span",fontWeight:"500"},e)}})),o.createElement(b.a,null,o.createElement(br.t,{w:"12px",color:"white"}))),o.createElement(q.ck,Y.premiumNonmemberListItem,o.createElement(b.a,null,o.createElement(q.kp,{color:"white",as:E.jK,w:"20px",h:"20px"}),o.createElement(g.A,{id:"pulse_premium.access_to_exclusives",defaultMessage:[{type:8,value:"exclusive",children:[{type:0,value:"EXCLUSIVE"}
1]},{type:0,value:" "},{type:8,value:"content",children:[{type:0,value:"Hasbro Pulse content & events"}]}],values:{exclusive:e=>o.createElement(U.E,{as:"span",fontWeight:"700"},e,"Â "),content:e=>o.createElement(U.E,{as:"span",fontWeight:"500"},e)}})),o.createElement(b.a,null,o.createElement(br.t,{w:"12px",color:"white"}))))))),o.createElement(b.a,null,o.createElement(U.E,(0,p.A)({as:"span"},Y.pulsePremiumDisclaimer),o.createElement(g.A,{id:"pulse_premium.accept_terms_policy",defaultMessage:[{type:0,value:"By clicking âBecome a memberâ, you are agreeing to the full Hasbro Pulse Premium Terms: "},{type:8,value:"terms",children:[{type:0,value:"Read here"}]},{type:0,value:". Be the first to know about can't miss product drops, back in stock items, and more by signing up for our Newsletter! "},{type:8,value:"return",children:[{type:0,value:"Return Policy"}]},{type:0,value:" "},{type:8,value:"shipping",children:[{type:0,value:"Shipping Policy"}]}],values:{terms:e=>o.createElement(K.N,{as:ze.A,to:"/pages/hasbro-pulse-premium-terms",color:"hasbroShade.100"},e),return:e=>o.createElement(K.N,{as:ze.A,to:D("/pages/returns-policy"),color:"hasbroShade.100"},e),shipping:e=>o.createElement(wr.Link,{as:ze.A,to:D("en-US"===M.locale?"/pages/shipping-policy":"/pages/delivery-policy"),color:"hasbroShade.100"},e)}}))),o.createElement(ce.E,{isLoaded:!se},o.createElement(Q.s,{flexDirection:{base:"column",xl:"row"},gap:"4",ref:Ge,alignItems:"center"},o.createElement(b.a,null,o.createElement(qn.A,{currency:null==e?void 0:e.currency,prices:{price:(null==e?void 0:e.price)||void 0,priceMax:(null==e?void 0:e.priceMax)||void 0,setPrice:null==e?void 0:e.c_productSetPrice,salePrice:null==e?void 0:e.c_salePrice,listPrice:null==e?void 0:e.c_listPrice},productType:null==e?void 0:e.type,variant:"pulsePremium"})),We())),!se&&Z&&o.createElement(b.a,null,o.createElement(be.z,{in:!0},o.createElement(U.E,{color:"orange.600",fontWeight:600},M.formatMessage({id:"pulse_premium.cannot_order",defaultMessage:[{type:0,value:"Cannot order product at this time"}]})))))),e?o.createElement(Ae.Y,(0,p.A)({imageGroups:e.imageGroups,selectedVariationAttributes:fe},V,{selectedIndex:ee})):o.createElement(o.Fragment,null),e&&h&&!(null!=e&&e.c_isCFItem)&&o.createElement(we.q,{direction:"bottom",in:!qe&&(null==$e||null===(k=$e.boundingClientRect)||void 0===k?void 0:k.top)<=0,style:{zIndex:10}},o.createElement(b.a,{p:"2",color:"white",mx:"4",mb:"16",bg:"hasbroShade.700",rounded:"90px",boxShadow:"0px 16px 32px rgba(0, 0, 0, 0.2)"},o.createElement(mt.A,{name:null==e?void 0:e.name,setPrice:null==e?void 0:e.c_productSetPrice,salePrice:null==e?void 0:e.c_salePrice,currency:null==e?void 0:e.currency,listPrice:null==e?void 0:e.c_listPrice,image:ie,isPreOrder:null==e?void 0:e.c_isPOItem,isDisabled:ue,ctaButton:We("slim","slim"),stockBadge:o.createElement(Ve.A,{stockBadgeType:null==e?void 0:e.c_stockBadge,customStockMessage:null==e?void 0:e.c_customStockMessage,mx:"4",mb:"0"})}))))};Ir.propTypes={product:c().object,onItemQuantityChange:c().func,category:c().array,isProductLoading:c().bool,addToCart:c().func,updateCart:c().func,showFullLink:c().bool,imageSize:c().oneOf(["sm","md"]),showTrash:c().bool,isQuickView:c().bool,showStickyBar:c().bool,pdpContent:c().object,rtvActive:c().bool,PPCTAEnabled:c().bool};const Cr=Ir;function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xr=({category:e,product:t,isLoading:n,rtvActive:a,pdpContent:l,pdpBodyContent:i})=>{var c;const u=(0,f.o)("ProductDetail"),I=(0,A.A)(),_=(0,d.Bj)(t),{formatMessage:x}=(0,s.A)(),[k,P]=(0,o.useState)(void 0),M=(0,N.d)(),O=o.useRef(),T=(0,v.zy)(),[W,z]=(0,o.useState)({}),[q,V]=(0,o.useState)(!1),$=(0,y.j)(),{isOpen:U,onOpen:Q,onClose:K}=(0,y.j)(),Y=Sr(Sr({},R.Ov),{},{onPrimaryAction:F.lQ}),{gtmDataLayer:Z}=(0,o.useContext)(G.q),{eventClient:J}=(0,ee.Jr)(),{ownedProductIds:X}=(0,mr.A)(),{buildUrl:ae}=(0,m.A)(),[oe,le]=(0,o.useState)(null==t?void 0:t.c_redirectAction),{client:ie}=(0,o.useContext)(B.W),[ce,se]=(0,o.useState)(!1);(0,o.useEffect)((()=>{null!=(null==I?void 0:I.basketId)&&se(!0)}),[null==I?void 0:I.basketId]);const de=function(){var e=(0,r.A)((function*(e,n,r){try{if(null==e||!e.orderable||!n)return;const a=[{productId:e.productId,quantity:n,price:e.price}];null==J||J.cart.logAddToCart((0,te.LR)({location:T,products:[t],quantity:n,cartId:I.basketId,itemListId:"pdp",itemListName:"pdp",placementIndex:0,ownedProductIds:X,clickTarget:"primary_cart_button"}));const o=(0,ne.u)(t,"pdp");return Z(o),yield I.addItemToBasket(a,_,r)}catch(e){ue(e)}}));return function(t,n,r){return e.apply(this,arguments)}}(),ue=()=>{O.current=M({render:()=>o.createElement(w.A,{title:x(R.gS),status:"error",icon:E.fZ,isClosable:!0,onClose:()=>
1{M.close(O.current)}})})},me=function(){var e=(0,r.A)((function*(e){P(t);try{const n=I.productItems.filter((t=>t.productId===e.id)),r=(0,re.o)(n[0],"pdp");Z(r),null==J||J.cart.logRemoveFromCart((0,te.rb)({products:[t],quantity:n[0].quantity,cartId:I.basketId})),yield I.removeItemFromBasket(n[0].itemId),O.current=M({render:()=>o.createElement(w.A,{title:x({defaultMessage:[{type:0,value:"Item removed from cart"}],id:"cart.info.removed_from_cart"}),status:"success",icon:E.Te,isClosable:!0,onClose:()=>{M.close(O.current)}})})}catch{ue()}finally{P(void 0)}}));return function(t){return e.apply(this,arguments)}}(),pe=H()(function(){var e=(0,r.A)((function*(e,t){z(Sr(Sr({},W),{},{[t.id]:e})),P(t);try{const n={productId:t.id,quantity:parseInt(e)},r=I.productItems.filter((e=>e.productId===t.id));yield I.updateItemInBasket(n,r[0].itemId,t)}catch{ue()}finally{P(void 0),z(Sr(Sr({},W),{},{[t.id]:void 0})),V(1===e)}}));return function(t,n){return e.apply(this,arguments)}}(),750),ge=function(){var e=(0,r.A)((function*(e,t){const{stockLevel:n}=I._productItemsDetail[e.id].inventory;return 0===t?(pe.flush(),P(e),$.onOpen(),!1):(pe.cancel(),t>n||t===e.quantity||void pe(t,e))}));return function(t,n){return e.apply(this,arguments)}}();if((0,o.useEffect)((()=>{null!=t&&t.c_redirectAction&&le(null==t?void 0:t.c_redirectAction)}),[null==t?void 0:t.c_redirectAction]),(0,o.useEffect)((()=>()=>{}),[]),oe){const e=ae(oe);return o.createElement(v.rd,{to:{pathname:e}})}return o.createElement(b.a,(0,p.A)({className:"sf-product-detail-page","data-testid":"product-details-page",backgroundImage:null==_?void 0:_.backgroundImage,layerStyle:"page"},u.container,{background:"linear-gradient(99.05deg, #2B5490 1.79%, #7EB9E0 98.43%)"}),o.createElement(h.B,{layerStyle:"responsiveContainer"},o.createElement(Cr,{product:t,category:(null==e?void 0:e.parentCategoryTree)||[],addToCart:(e,t,n)=>de(e,t,n),handleRemoveItem:me,isProductLoading:n,pdpContent:l,onItemQuantityChange:ge.bind(void 0,t),showTrash:q,selectedItem:k,isOpen:U,onOpen:Q,onClose:K,showStickyBar:!0,rtvActive:a,PPCTAEnabled:ce})),o.createElement(S.A,(0,p.A)({},Y,{onPrimaryAction:()=>{me(k)},onAlternateAction:()=>{}},$)),null==i?void 0:i.map(((e,t)=>{var n;if(e)return o.createElement(b.a,{mt:0===t?0:{base:"4",lg:"8"},key:null==e||null===(n=e._meta)||void 0===n?void 0:n.deliveryId},null!=ie&&ie.vse?o.createElement(L.A,{content:e,parentPageMeta:null!=l&&l._meta?l._meta:null,rtvActive:a}):o.createElement(j.A,{content:e,parentPageMeta:null!=l&&l._meta?l._meta:null,data_creative_index:t}))})),o.createElement(D,{product:t}),l&&null!=l&&null!==(c=l.promoSlot)&&void 0!==c&&c.id?o.createElement(b.a,null,null!=ie&&ie.vse?o.createElement(L.A,{fetch:{key:l.promoSlot.id},rtvActive:a}):o.createElement(j.A,{fetch:[{id:l.promoSlot.id}]})):o.createElement(o.Fragment,null),o.createElement(b.a,{paddingTop:8,maxWidth:"full",layerStyle:"responsiveContainer"},o.createElement(h.B,{spacing:16},o.createElement(C.A,{title:o.createElement(g.A,{defaultMessage:[{type:0,value:"You May Also Like"}],id:"add_to_cart_modal.recommended_products.title.may_also_like"}),zone:"pdp-recommender",products:t&&[t],shouldFetch:()=>null==t?void 0:t.id}))))};xr.propTypes={category:c().object,product:c().object,isLoading:c().bool,match:c().object,rtvActive:c().bool,pdpContent:c().object,pdpBodyContent:c().array};const kr=xr;var Pr=n(79465),Mr=n(17364),Or=n(48608),Tr=n(70337),Dr=n(33232),jr=n(12046),Lr=n(38506),Br=n(3284),Rr=n(77536),Fr=n(52050);function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zr=({isProductFound:e=!0,category:t,product:n,isLoading:r,preAmplienceContent:a,preSectionContent:i})=>{var c,p,g,f,y,b,h,E,w;const A=(0,v.W6)(),I=(0,u.A)(),C=(0,d.rn)(n),[_,S]=(0,o.useState)(t),{buildUrl:x,site:k}=(0,m.A)(),P=(0,s.A)().locale,{client:M}=(0,o.useContext)(B.W),O=(0,v.zy)(),{eventClient:T}=(0,ee.Jr)(),{appOrigin:D}=(0,o.useContext)(Lr.J),{ownedProductIds:j}=(0,mr.A)(),L=(0,o.useRef)(null),[R,F]=(0,o.useState)(!1),W=null!=a&&null!==(c=a[0])&&void 0!==c&&null!==(p=c._meta)&&void 0!==p&&p.schema?a:void 0,[N,z]=(0,o.useState)((null==W?void 0:W[0])??null);(0,o.useEffect)((()=>{t&&S(t)}),[t]);const H=e=>{const t=document.getElementById(e);let n=setTimeout((()=>{t&&t.hasChildNodes()?t.scrollIntoView({behavior:"smooth"}):H(e)}),250);return()=>{n&&clearTimeout(n)}};(0,o.useEffect)((()=>
1{if("undefined"!=typeof window){const e=window.location.hash.slice(1);e&&H(e)}}),[]);const G=null!=n&&n.master?null==n||null===(g=n.master)||void 0===g?void 0:g.masterId:null==n?void 0:n.id,q=(0,l.I)({queryKey:["amplience-pdp-content",G,null==M?void 0:M.vse,(null==M?void 0:M.groups)||[]],queryFn:()=>(0,_n.Ke)(M,k,P,G),initialData:null!=M&&M.vse?void 0:W,refetchOnWindowFocus:!1,staleTime:12e4}),{isSuccess:V,data:$}=(0,l.I)({queryKey:[null==N||null===(f=N.body)||void 0===f?void 0:f.contents,(null==M?void 0:M.groups)||[]],queryFn:()=>{var e;return(0,_n.am)(M,k,P,null==N||null===(e=N.body)||void 0===e?void 0:e.contents)},refetchOnWindowFocus:!1,enabled:(null==N||null===(y=N.body)||void 0===y||null===(b=y.contents)||void 0===b?void 0:b.length)>0,staleTime:12e4}),U=V?$:[];if((0,o.useEffect)((()=>{q.isFetched&&!q.isError&&null!=q&&q.data&&z(q.data[0])}),[null==q?void 0:q.data]),null!=M&&M.isTimeMachineVse()||(0,Br.ah)((e=>{z(e.content),F(!0)})),(0,o.useEffect)((()=>{if(!(0,an.A6)(n)){const e=(0,It.tE)(`${O.pathname}${O.search}`,{pid:null==C?void 0:C.productId});A.replace(e)}}),[C]),(0,o.useEffect)((()=>{var e,t;if(n&&!r&&T){var a,o;I.sendViewProduct(n);const r=n.c_isCFItem?"pdpCrowdFund":null!==(a=n.type)&&void 0!==a&&a.bundle?"pdpBundle":null!==(o=n.type)&&void 0!==o&&o.set?"pdpSet":"pdp";let l;switch(r){case"pdpBundle":l=null===(e=n.bundledProducts)||void 0===e?void 0:e.map((e=>Nr({quantity:e.quantity||1},e.product)));break;case"pdpSet":l=null===(t=n.setProducts)||void 0===t?void 0:t.map((e=>Nr({productName:null==e?void 0:e.name},e)));break;default:l=[n]}L.current!==n.id&&(L.current=n.id,null==T||T.nav.logViewItem((0,Fr.lk)({products:l,itemListId:"pdp",itemListName:r,ownedProductIds:j})))}}),[n,T]),!r&&!e)return o.createElement(Rr.A,{code:"404"});let Q=ie;switch(!0){case(0,an.gS)(n):Q=Rn;break;case(0,an.A6)(n)&&!n.c_useNewPDP:Q=yr;break;case null==n?void 0:n.type.set:Q=er;break;case null==n?void 0:n.c_isMembershipProduct:Q=kr;break;case null==n?void 0:n.c_useNewPDP:Q=Rn;break;default:Q=ie}const K=(null==n?void 0:n.pageTitle)||(null==n?void 0:n.name),Y={id:(null==n||null===(h=n.master)||void 0===h?void 0:h.masterId)??(null==n?void 0:n.id),name:null==n?void 0:n.name},Z=new URL(x((0,It.ec)(Y)),D).toString(),J=null==n||null===(E=n.imageGroups)||void 0===E||null===(w=E.find((e=>{var t;return null==e||null===(t=e.images)||void 0===t?void 0:t.length})))||void 0===w?void 0:w.images[0].link,X=(0,jr.M)(Z,(0,jr.R)(K),(null==n?void 0:n.pageDescription)||(null==n?void 0:n.shortDescription),J);return o.createElement(o.Fragment,null,o.createElement(Pr.A,{data:(0,Dr.jV)(D,x,n)}),o.createElement(Mr.A,{title:K,description:null==n?void 0:n.pageDescription,keywords:null==n?void 0:n.pageKeywords,ogMetaTags:X,canonicalUrl:Z}),o.createElement(Q,{product:n,category:_,isLoading:r,rtvActive:R,pdpContent:N,pdpBodyContent:U,preSectionContent:i}))};zr.getTemplateName=()=>"product-detail",zr.shouldGetProps=({previousLocation:e,location:t})=>{const n=new URLSearchParams((null==e?void 0:e.search)||""),r=new URLSearchParams(t.search);return(null==e?void 0:e.pathname)!==t.pathname||n.get("pid")!==r.get("pid")},zr.getProps=function(){var e=(0,r.A)((function*({req:e,res:t,params:n,location:r,api:a,ampClient:o}){var l,i,c,{productId:s}=n;let d,u;s=s.replace(".html","");const m=new URLSearchParams((null==r?void 0:r.search)||"");if(u=yield a.shopperProducts.getProduct({parameters:{id:m.get("pid")||s,allImages:!0,perPricebook:!0}}),m.get("cgid")&&m.get("cgid").length)d=yield a.shopperProducts.getCategory({parameters:{id:m.get("cgid"),levels:1}});else if(null!==(l=u)&&void 0!==l&&l.primaryCategoryId){var p;d=yield a.shopperProducts.getCategory({parameters:{id:null===(p=u)||void 0===p?void 0:p.primaryCategoryId,levels:1}})}const g=!("string"==typeof(null===(i=u)||void 0===i?void 0:i.type)||"string"==typeof(null===(c=d)||void 0===c?void 0:c.type));if(t&&!g&&t.status(404),t&&(null==e||!e.query.vse)&&g){var v,f;const e=null!=(null===(v=u)||void 0===v?void 0:v.c_pdpCacheOverride)?null===(f=u)||void 0===f?void 0:f.c_pdpCacheOverride:R.kB;t.set("Cache-Control",`max-age=${e}`)}let y,b;if(g&&o&&(null==e||!e.query.vse)&&(0,an.A6)(u)){var h,E,w,A,I,C;const e=(0,Or.N_)(r.pathname),t=(0,Tr.yY)({getUserPreferredLocales:()=>{const{locale:e}=a.getConfig();return[e]},l10nConfig:e.l10n}),n=null!==(h=u)&&void 0!==h&&h.master?null===(E=u)||void 0===E||null===(w=E.master)||void 0===w?void 0:w.masterId:null===(A=u)||void 0===A?void 0:A.id;y=yield(0,_n.Ke)(o,e,t,n);const l=null!==(I=u)&&void 0!==I&&I.c_useNewPDP?(0,Sn.e8)((0,Sn.co)(null===(C=y)||void 0===C?void 0:C[0])).map((e=>({id:e}))):[];b=l.length?yield(0,_n.am)(o,e,t,l):[]}return{isProductFound:g,category:d,product:u,preAmplienceContent:y,preSectionContent:b}}));return function(t){return e.apply(this,arguments)}}
1(),zr.propTypes={isProductFound:c().bool,category:c().object,product:c().object,isLoading:c().bool,match:c().object,preAmplienceContent:c().array,preSectionContent:c().array};const Hr=zr}}]);
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.