1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,544105,74415,e=>{"use strict";var t=e.i(391398),r=e.i(191788);let n=(0,r.createContext)(null);function i(){return(0,r.useContext)(n)}e.s(["default",0,e=>{let{children:r,productHandle:i,description:o,title:s,relatedProductIds:l,upsellProducts:a,productId:c,productVideoContainer:u}=e;return(0,t.jsx)(n.Provider,{value:{productHandle:i,description:o,title:s,relatedProductIds:l,upsellProducts:a,productId:c,productVideoContainer:u},children:r})},"useCMSProductContext",()=>i,"useCMSProductHandle",0,()=>{let e=(0,r.useContext)(n);return e?.productHandle}],74415),e.s([],544105)},310384,291525,784295,e=>{"use strict";var t=e.i(391398),r=e.i(269153),n=e.i(920047),i=e.i(598427),o=e.i(272043),s=e.i(203828),l=e.i(407654);e.i(588745);var a=e.i(721591);let c={a:({children:e,href:r})=>(0,t.jsx)(a.Hyperlink,{href:r,children:e})},u=({components:e,children:r})=>(0,t.jsx)(l.default,{components:{...c,...e},children:r});e.s(["LongText",0,u],291525),e.s([],784295);let d=({color:e,text:r,textClassName:n})=>(0,t.jsx)(u,{components:{p:({children:r})=>(0,t.jsx)("p",{style:{color:e},className:(0,o.default)("font-medium leading-custom-150 tracking-[.22px] m-0 px-0!",n),children:r}),a:({children:r,href:n})=>(0,t.jsx)(a.Hyperlink,{style:{color:e},href:n,children:r}),strong:({children:e})=>(0,t.jsx)("strong",{className:"font-extrabold text-inherit",children:e})},children:r}),f=({className:e,promoBadgeContent:r,textClassName:n})=>{let i=(0,s.useRouter)();if(!r?.displayText)return null;let l=i.pathname.includes("/products");return(0,t.jsxs)("div",{className:(0,o.default)("promo-badge flex w-fit items-center justify-center py-0.5 normal-case",{"px-1":r?.backgroundColorPicker?.value?.toUpperCase()!=="#FFFFFF","mb-3":l,"mb-1":!l},e),style:{backgroundColor:r?.backgroundColorPicker?.value},children:[(0,t.jsx)("span",{className:(0,o.default)(r?.displayTextMobile?"lg:inline hidden":"inline"),children:(0,t.jsx)(d,{color:r?.textColorPicker?.value,textClassName:n,text:r?.displayText})}),r?.displayTextMobile&&(0,t.jsx)("span",{className:"inline lg:hidden",children:(0,t.jsx)(d,{color:r?.textColorPicker?.value,textClassName:n,text:r?.displayTextMobile})})]})};var p=e.i(887382);e.s(["PromoBadgeExperience",0,({className:e,promoBadgeTags:o,textClassName:s})=>{let l=(0,i.useCMSPromoBadges)(),a=o?.[0]?.split(":")?.[1],c=l?.find(e=>o?.find(t=>t?.includes(e?.badgeTag)))?.badgeTag||a,u=l?.find(e=>e.badgeTag===c);if(!u)return null;let d=(u?.nt_experiences||[]).filter(r.ExperienceMapper.isExperienceEntry).map(e=>r.ExperienceMapper.mapCustomExperience(e,e=>({id:e?.sys?.id,promoBadgeContent:(0,p.toAtomic)(e)})));return d?.length>0?(0,t.jsx)(n.Experience,{id:u?.id,component:f,passthroughProps:{promoBadgeContent:u,className:e,textClassName:s},experiences:d}):(0,t.jsx)(f,{promoBadgeContent:u,className:e,textClassName:s})}],310384)},605972,165406,e=>{"use strict";var t=e.i(391398);e.i(544105);var r=e.i(74415),n=e.i(191788),i=e.i(203828),o=e.i(272043),s=e.i(268923);e.i(49249);var l=e.i(146686);e.i(222095);var a=e.i(803002),c=e.i(526752),u=e.i(310384);e.i(100508);var d=e.i(629248),f=e.i(914359),p=e.i(365780),m=e.i(934905),h=e.i(682897),x=e.i(601527);e.i(511210);var g=e.i(668098);function b({isDesktop:e,isLastSlide:r,handleSlideClick:i,result:b,isStacked:y,imageClassName:v,containerClassName:w}){let j=(0,c.useLocale)(),[S,C]=(0,n.useState)(!1),{rating:N,name:R,uid:k,imageUrl:P,handle:I,daysSincePublished:E,purchases:O,sunsetDate:A,activeVariant:T,tags:M,recommendationStrategy:D,url:L,collectionIds:F}=b,{autoapplyDiscount:_}=(0,p.useAutoDiscountContext)(),B=(0,m.validateAutoapplyDiscountRules)({discount:_?.discount,collectionIds:F}),$=!!T?.compare_at_price||!!B,[z,U]=(0,h.getProductTitleParts)({title:R,locale:j}),H=M?.filter(e=>e?.includes("promo_badge")),V=P?.replace("_600x900.jpg",".jpg"),K=(0,d.getFinalSaleBadge)(M,j),G=T?.available,W={"data-rec-handle":I,"data-amp-item":"recommendation",...{"data-cnstrc-item":"recommendation","data-cnstrc-item-id":k,"data-cnstrc-item-name":R,"data-cnstrc-item-variation-id":T?.id,"data-cnstrc-item-price":T?.price,"data-cnstrc-strategy-id":D}},q=(0,x.formatFavoriteButtonData)({...b,cnstrc:!0});return(0,t.jsxs)(l.Link,{...W,onClick:()=>i(b),href:L,className:(0,o.default)("constructor-product-recs-swiper-option group relative flex w-full flex-col",w,{"mr-8":!e&&r}),onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[(0,t.jsxs)("div",{className:(0,o.default)("relative mx-auto mb-2 overflow-hidden",{"w-[200px] nav_desktop:mx-4":!y,"w-full":y}),children:[(0,t.jsx)(a.Image,{src:V,width:y?336:200,height:y?420:300,className:(0,o.default)("aspect-2/3 object-scale-down ease-out duration-500 bg-[#F7F7F7]",v,{"scale-105":S}),alt:R,loaderType:"shopify",sizes:y?"336px":"200px"}),(0,t.jsx)(f.ProductImageBadge,{tags:M,locale:j,daysSincePublished:E,availableForSale:G,purchases:O,sunsetDate:A,isOnSale:$,imageBadgeClasses:"z-30 top-2",textBadgeClasses:"z-30 top-3",height:"max-h-[45px]",location:"recom"}),(0,t.jsx)(g.FavoriteButton,{product:q,buttonClassName:(0,o.default)("favorite-button-wrapper","absolute top-0 right-0 flex-none z-30","bg-center bg-no-repeat cursor-pointer")})]}),(0,t.jsxs)("div",{className:(0,o.default)("flex flex-col",{"nav_desktop:ml-4":!y}),children:[(0,t.jsxs)("div",{className:"leading-snug max-w-custom-320 mb-1.25",children:[(0,t.jsx)("p",{className:"text-custom-13",children:z}),U&&(0,t.jsx)("p",{className:"normal-case text-disclaimer",children:U})]}),(0,t.jsx)(u.PromoBadgeExperience,{className:(0,o.default)("text-center mb-0!",{"mt-0":!N}),promoBadgeTags:H,locale:j,textClassName:"text-custom-13"}),(0,t.jsx)(s.default,{price:T?.price,compareAtPrice:T?.compare_at_price,showPriceRange:!!T?.showPriceRange,priceRange:T?.priceRange,compareAtPriceRange:T?.compareAtPriceRange,autoapplyDiscountMatchingRule:B}),K&&(0,t.jsx)("p",{className:"text-red-medium text-custom-13",children:K})]})]})}e.s(["ProductCarouselSlide",()=>b],165406);let y=({results:e,resultsCount:r,handleSlideClick:n,isStacked:i,isUsingTabs:s})=>(0,t.jsx)("div",{className:(0,o.default)("relative flex flex-row items-start justify-center w-full",{"min-h-[410px]":s}),children:(0,t.jsx)("div",{className:"flex gap-4 overflow-x-auto",children:e.map((e,o)=>(0,t.jsx)(b,{result:e,handleSlideClick:n,isFirstSlide:0===o,isLastSlide:o===r-1,isDesktop:!1,isStacked:i},e.id))})});var v=e.i(24297),w=e.i(229091),j=e.i(143723);function S({className:e,children:r,...n}){return(0,t.jsx)("button",{...n,className:e,children:r})}e.i(545137);var C=e.i(974749);function N({results:e,resultsCount:r,handleSlideClick:i,isPLP:s,isUsingTabs:l}
1){let[a,c]=(0,n.useState)(!0),[u,d]=(0,n.useState)(!1),f=(0,n.useRef)(void 0),p=a&&u,m=(0,o.default)("swiper-button","absolute top-0 z-10 hidden h-12 w-12 items-center justify-center md:flex","translate-y-[45px] transform md:translate-y-[132px]","rounded-sm border-1 border-grey-veryLight bg-white-lightest","transition-opacity");return(0,t.jsxs)(C.SpacingContainer,{className:(0,o.default)("relative mx-auto flex w-full flex-row items-start justify-center",{"max-w-360 lg:w-11/12":!s,"max-w-full":s,"min-h-102.5":l}),children:[(0,t.jsx)(S,{onClick:()=>f.current?.slidePrev(),disabled:a,className:(0,o.default)(m,"left-0",{"cursor-pointer opacity-60 hover:border-black-primary hover:opacity-100 active:bg-beige":!a,"cursor-not-allowed opacity-40":a,"hidden!":p}),id:"constructor-product-recs-swiper-previous","aria-label":"left-arrow",children:(0,t.jsx)(j.IconAngleLeft,{size:18.5})}),(0,t.jsx)(C.SpacingContainer,{className:"w-full overflow-x-auto",children:(0,t.jsx)(v.Swiper,{slidesPerView:6.25,spaceBetween:0,style:{paddingRight:"4px",paddingLeft:"4px"},breakpoints:{1024:{slidesPerView:4.5,slidesPerGroup:4},1208:{slidesPerView:5.25,slidesPerGroup:5},1272:{slidesPerView:5.5},1408:{slidesPerView:r<=6?6:6.25,slidesPerGroup:6}},onBeforeInit:e=>{f.current=e},onAfterInit:()=>{e?.length<=6&&f.current?.isEnd&&(c(f.current?.isBeginning),d(f.current?.isEnd))},onSlideChange:()=>{c(f.current?.isBeginning),d(f.current?.isEnd)},onResize:()=>{e?.length<=6&&(c(f?.current?.isBeginning),d(f?.current?.isEnd))},className:"constructor-product-recs-swiper",children:e?.map((e,n)=>(0,t.jsx)(v.SwiperSlide,{children:(0,t.jsx)(b,{result:e,handleSlideClick:i,isDesktop:!0,isFirstSlide:0===n,isLastSlide:n===r-1})},e.id))})}),(0,t.jsx)(S,{onClick:()=>f.current?.slideNext(),disabled:u,className:(0,o.default)(m,"right-0",{"cursor-pointer opacity-60 hover:border-black-primary hover:opacity-100 active:bg-beige":!u,"cursor-not-allowed opacity-40":u,"hidden!":p}),id:"constructor-product-recs-swiper-next","aria-label":"right-arrow",children:(0,t.jsx)(w.IconAngleRight,{size:18.5})})]})}var R=e.i(305368),k=e.i(228299),P=e.i(114168),I=Object.defineProperty,E=(e,t)=>I(e,"name",{value:t,configurable:!0}),O=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function A(e,t,{checkForDefaultPrevented:r=!0}={}){return E(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function T(e){if(!O)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function M(e){return"IFRAME"===e.tagName}E(A,"composeEventHandlers"),E(function(e){if(!O)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),E(T,"getOwnerDocument"),E(function e(t,r=!1){let{activeElement:n}=T(t);if(!n?.nodeName)return null;if(M(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=T(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),E(M,"isFrame");var D=Object.defineProperty,L=(e,t)=>D(e,"name",{value:t,configurable:!0});function F(e,r=[]){let i=[];function o(r,o){let s=n.createContext(o);s.displayName=r+"Context";let l=i.length;i=[...i,o];let a=L(r=>{let{scope:i,children:o,...a}=r,c=i?.[e]?.[l]||s,u=n.useMemo(()=>a,Object.values(a));return(0,t.jsx)(c.Provider,{value:u,children:o})},"Provider");function c(t,i,a={}){let{optional:u=!1}=a,d=i?.[e]?.[l]||s,f=n.useContext(d);if(f)return f;if(void 0!==o)return o;if(!u)throw Error(`\`${t}\` must be used within \`${r}\``)}return a.displayName=r+"Provider",L(c,"useContext"),[a,c]}L(o,"createContext");let s=L(()=>{let t=i.map(e=>n.createContext(e));return L(function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])},"useScope")},"createScope");return s.scopeName=e,[o,_(s,...r)]}function _(...e){let t=e[0];if(1===e.length)return t;let r=L(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return L(function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}L(function(e,r){let i=n.createContext(r);i.displayName=e+"Context";let o=L(e=>{let{children:r,...o}=e,s=n.useMemo(()=>o,Object.values(o));return(0,t.jsx)(i.Provider,{value:s,children:r})},"Provider");function s(t,o={}){let{optional:l=!1}=o,a=n.useContext(i);if(a)return a;
1if(void 0!==r)return r;if(!l)throw Error(`\`${t}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",L(s,"useContext"),[o,s]},"createContext"),L(F,"createContextScope"),L(_,"composeContextScopes");var B=Object.defineProperty,$=(e,t)=>B(e,"name",{value:t,configurable:!0});function z(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function U(...e){return t=>{let r=!1,n=e.map(e=>{let n=z(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():z(e[t],null)}}}}function H(...e){return n.useCallback(U(...e),e)}$(z,"setRef"),$(U,"composeRefs"),$(H,"useComposedRefs");var V=Object.defineProperty,K=(e,t)=>V(e,"name",{value:t,configurable:!0});function G(e){let t=n.forwardRef((t,r)=>{let{children:i,...o}=t,s=null,l=!1,a=[];J(i)&&"function"==typeof en&&(i=en(i._payload)),n.Children.forEach(i,e=>{if(Y(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;J(t)&&"function"==typeof en&&(t=en(t._payload)),s=q(e,t),a.push(s?.props?.children)}else a.push(e)}),s?s=n.cloneElement(s,void 0,a):!l&&1===n.Children.count(i)&&n.isValidElement(i)&&(s=i);let c=s?X(s):void 0,u=H(r,c);if(!s){if(i||0===i)throw Error(l?er(e):et(e));return i}let d=Q(o,s.props??{});return s.type!==n.Fragment&&(d.ref=r?u:c),n.cloneElement(s,d)});return t.displayName=`${e}.Slot`,t}K(G,"createSlot");var W=Symbol.for("radix.slottable");K(function(e){let t=K(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=W,t},"createSlottable");var q=K((e,t)=>{if("child"in e.props){let t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Q(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function X(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function Y(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===W}K(Q,"mergeProps"),K(X,"getElementRef"),K(Y,"isSlottable");var Z=Symbol.for("react.lazy");function J(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Z&&"_payload"in e&&ee(e._payload)}function ee(e){return"object"==typeof e&&null!==e&&"then"in e}K(J,"isLazyComponent"),K(ee,"isPromiseLike");var et=K(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),er=K(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),en=n[" use ".trim().toString()],ei=Object.defineProperty,eo=(e,t)=>ei(e,"name",{value:t,configurable:!0});function es(e){let r=e+"CollectionProvider",[i,o]=F(r),[s,l]=i(r,{collectionRef:{current:null},itemMap:new Map}),a=eo(e=>{let{scope:r,children:i}=e,o=n.useRef(null),l=n.useRef(new Map).current;return(0,t.jsx)(s,{scope:r,itemMap:l,collectionRef:o,children:i})},"CollectionProvider");a.displayName=r;let c=e+"CollectionSlot",u=G(c),d=n.forwardRef((e,r)=>{let{scope:n,children:i}=e,o=H(r,l(c,n).collectionRef);return(0,t.jsx)(u,{ref:o,children:i})});d.displayName=c;let f=e+"CollectionItemSlot",p="data-radix-collection-item",m=G(f),h=n.forwardRef((e,r)=>{let{scope:i,children:o,...s}=e,a=n.useRef(null),c=H(r,a),u=l(f,i);return n.useEffect(()=>(u.itemMap.set(a,{ref:a,...s}),()=>void u.itemMap.delete(a))),(0,t.jsx)(m,{...{[p]:""},ref:c,children:o})});function x(t){let r=l(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return h.displayName=f,eo(x,"useCollection"),[{Provider:a,Slot:d,ItemSlot:h},x,o]}eo(es,"createCollection");var el=new WeakMap,ea=class e extends Map{static{eo(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],el.set(this,!0)}set(e,t){return el.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,s=ed(e),l=s>=0?s:o+s,a=l<0||l>=o?-1:l;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(t,r),this;let c=this.size+ +!i;s<0&&l++;let u=[...this.#e],d=!1;for(let e=l;e<c;e++)if(l===e){let o=u[e];u[e]===t&&(o=u[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||u[e-1]!==t||(d=!0);let r=u[d?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=ec(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=ec(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return ec(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function ec(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=eu(e,t);return -1===r?void 0:e[r]}function eu(e,t){let r=e.length,n=ed(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}function ed(e){return e!=e||0===e?0:Math.trunc(e)}function ef(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function ep(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function em(e,t){return e[1].element&&t[1].element?ep(e[1].element,t[1].element)?-1:1:0}function eh(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}eo(ec,"at"),eo(eu,"toSafeIndex"),eo(ed,"toSafeInteger"),eo(function(e){let r=e+"CollectionProvider",[i,o]=F(r),[s,l]=i(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ea,setItemMap:eo(()=>void 0,"setItemMap")}),a=eo(({state:e,...r})=>e?(0,t.jsx)(u,{...r,state:e}):(0,t.jsx)(c,{...r}),"CollectionProvider");a.displayName=r;let c=eo(e=>{let r=g();return(0,t.jsx)(u,{...e,state:r})},"CollectionInit");c.displayName=r+"Init";let u=eo(e=>{let{scope:r,children:i,state:o}=e,l=n.useRef(null),[a,c]=n.useState(null),u=H(l,c),[d,f]=o;return n.useEffect(()=>{if(!a)return;let e=eh(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,t.jsx)(s,{scope:r,itemMap:d,setItemMap:f,collectionRef:u,collectionRefObject:l,collectionElement:a,children:i})},"CollectionProviderImpl");u.displayName=r+"Impl";let d=e+"CollectionSlot",f=G(d),p=n.forwardRef((e,r)=>{let{scope:n,children:i}=e,o=H(r,l(d,n).collectionRef);return(0,t.jsx)(f,{ref:o,children:i})});p.displayName=d;let m=e+"CollectionItemSlot",h=G(m),x=n.forwardRef((e,r)=>{let{scope:i,children:o,...s}=e,a=n.useRef(null),[c,u]=n.useState(null),d=H(r,a,u),{setItemMap:f}=l(m,i),p=n.useRef(s);ef(p.current,s)||(p.current=s);let x=p.current;return n.useEffect(()=>(f(e=>c?e.has(c)?e.set(c,{...x,element:c}).toSorted(em):(e.set(c,{...x,element:c}),e.toSorted(em)):e),()=>{f(e=>c&&e.has(c)?(e.delete(c),new ea(e)):e)}),[c,x,f]),(0,t.jsx)(h,{"data-radix-collection-item":"",ref:d,children:o})});function g(){return n.useState(new ea)}function b(t){let{itemMap:r}=l(e+"CollectionConsumer",t);return r}return x.displayName=m,eo(g,"useInitCollection"),eo(b,"useCollection"),[{Provider:a,Slot:p,ItemSlot:x},{createCollectionScope:o,useCollection:b,useInitCollection:g}]},"createCollection"),eo(ef,"shallowEqual"),eo(ep,"isElementPreceding"),eo(em,"sortByDocumentPosition"),eo(eh,"getChildListObserver");var ex=globalThis?.document?n.useLayoutEffect:()=>{},eg=Object.defineProperty,eb=n[" useId ".trim().toString()]||(()=>void 0),ey=0;function ev(e){let[t,r]=n.useState(eb());return ex(()=>{e||r(e=>e??String(ey++))},[e]),e||(t?`radix-${t}`:"")}eg(ev,"name",{value:"useId",configurable:!0});var ew=e.i(730943),ej=Object.defineProperty,eS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let i=G(`Primitive.${r}`),o=n.forwardRef((e,n)=>{let{asChild:o,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?i:r,{...s,ref:n})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});function eC(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}ej(function(e,t){e&&ew.flushSync(()=>
1e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(eC,"name",{value:"useCallbackRef",configurable:!0});var eN=Object.defineProperty,eR=n[" useEffectEvent ".trim().toString()],ek=n[" useInsertionEffect ".trim().toString()];function eP(e){if("function"==typeof eR)return eR(e);let t=n.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof ek?ek(()=>{t.current=e}):ex(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}eN(eP,"name",{value:"useEffectEvent",configurable:!0});var eI=Object.defineProperty,eE=(e,t)=>eI(e,"name",{value:t,configurable:!0}),eO=n[" useInsertionEffect ".trim().toString()]||ex;function eA({prop:e,defaultProp:t,onChange:r=eE(()=>{},"onChange"),caller:i}){let[o,s,l]=eT({defaultProp:t,onChange:r}),a=void 0!==e,c=a?e:o;return[c,n.useCallback(t=>{if(a){let r=eM(t)?t(e):t;r!==e&&l.current?.(r)}else s(t)},[a,e,s,l])]}function eT({defaultProp:e,onChange:t}){let[r,i]=n.useState(e),o=n.useRef(r),s=n.useRef(t);return eO(()=>{s.current=t},[t]),n.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,i,s]}function eM(e){return"function"==typeof e}eE(eA,"useControllableState"),eE(eT,"useUncontrolledState"),eE(eM,"isFunction");var eD=Symbol("RADIX:SYNC_STATE");eE(function(e,t,r,i){let{prop:o,defaultProp:s,onChange:l,caller:a}=t,c=void 0!==o,u=eP(l),d=[{...r,state:s}];i&&d.push(i);let[f,p]=n.useReducer((t,r)=>{if(r.type===eD)return{...t,state:r.state};let n=e(t,r);return c&&!Object.is(n.state,t.state)&&u(n.state),n},...d),m=f.state,h=n.useRef(m);n.useEffect(()=>{h.current!==m&&(h.current=m,c||u(m))},[m,h,c]);let x=n.useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return n.useEffect(()=>{c&&!Object.is(o,f.state)&&p({type:eD,state:o})},[o,f.state,c]),[x,p]},"useControllableStateReducer");var eL=Object.defineProperty,eF=n.createContext(void 0);function e_(e){let t=n.useContext(eF);return e||t||"ltr"}eL(e_,"name",{value:"useDirection",configurable:!0});var eB=Object.defineProperty,e$=(e,t)=>eB(e,"name",{value:t,configurable:!0}),ez=!1;function eU(){let[e,t]=n.useState(ez);return n.useEffect(()=>{ez||(ez=!0,t(!0))},[]),e}e$(eU,"useIsHydrated");var eH=n[" useSyncExternalStore ".trim().toString()];function eV(){return()=>{}}function eK(){return eH(eV,()=>!0,()=>!1)}e$(eV,"subscribe"),e$(eK,"useIsHydratedModern");var eG="function"==typeof eH?eK:eU,eW=Object.defineProperty,eq=(e,t)=>eW(e,"name",{value:t,configurable:!0}),eQ="rovingFocusGroup.onEntryFocus",eX={bubbles:!1,cancelable:!0},eY="RovingFocusGroup",[eZ,eJ,e0]=es(eY),[e1,e2]=F(eY,[e0]),[e4,e3]=e1(eY),e5=n.forwardRef(eq(function(e,r){return(0,t.jsx)(eZ.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(eZ.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(e8,{...e,ref:r})})})},"RovingFocusGroup")),e8=n.forwardRef(eq(function(e,r){let{__scopeRovingFocusGroup:i,orientation:o,loop:s=!1,dir:l,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=n.useRef(null),h=H(r,m),x=e_(l),[g,b]=eA({prop:a,defaultProp:c??null,onChange:u,caller:eY}),[y,v]=n.useState(!1),w=eC(d),j=eJ(i),S=n.useRef(!1),[C,N]=n.useState(0);return n.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(eQ,w),()=>e.removeEventListener(eQ,w)},[w]),(0,t.jsx)(e4,{scope:i,orientation:o,dir:x,loop:s,currentTabStopId:g,onItemFocus:n.useCallback(e=>b(e),[b]),onItemShiftTab:n.useCallback(()=>v(!0),[]),onFocusableItemAdd:n.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>N(e=>e-1),[]),children:(0,t.jsx)(eS.div,{tabIndex:y||0===C?-1:0,"data-orientation":o,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{S.current=!0}),onFocus:A(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(eQ,eX);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);tt([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),f)}}S.current=!1}),onBlur:A(e.onBlur,()=>v(!1))})})},"RovingFocusGroupImpl")),e6=n.forwardRef(eq(function(e,r){let{__scopeRovingFocusGroup:i,focusable:o=!0,active:s=!1,tabStopId:l,children:a,...c}=e,u=ev(),d=l||u,f=e3("RovingFocusGroupItem",i),p=f.currentTabStopId===d,m=eJ(i),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:g}
1=f,b=eG();return ex(()=>{if(b&&o)return h(),()=>x()},[b,o,h,x]),n.useEffect(()=>{if(!b&&o)return h(),()=>x()},[b,o,h,x]),(0,t.jsx)(eZ.ItemSlot,{scope:i,id:d,focusable:o,active:s,children:(0,t.jsx)(eS.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:r,onMouseDown:A(e.onMouseDown,e=>{o?f.onItemFocus(d):e.preventDefault()}),onFocus:A(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:A(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=te(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=f.loop?tr(r,n+1):r.slice(n+1)}setTimeout(()=>tt(r))}}),children:"function"==typeof a?a({isCurrentTabStop:p,hasTabStop:null!=g}):a})})},"RovingFocusGroupItem")),e9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e7(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function te(e,t,r){let n=e7(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return e9[n]}function tt(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function tr(e,t){return e.map((r,n)=>e[(t+n)%e.length])}eq(e7,"getDirectionAwareKey"),eq(te,"getFocusIntent"),eq(tt,"focusFirst"),eq(tr,"wrapArray");var tn=Object.defineProperty,ti=(e,t)=>tn(e,"name",{value:t,configurable:!0});function to(e,t){return n.useReducer((e,r)=>t[e][r]??e,e)}ti(to,"useStateMachine");var ts=ti(e=>{let{present:t,children:r}=e,i=tl(t),o="function"==typeof r?r({present:i.isPresent}):n.Children.only(r),s=tc(i.ref,td(o));return"function"==typeof r||i.isPresent?n.cloneElement(o,{ref:s}):null},"Presence");function tl(e){let[t,r]=n.useState(),i=n.useRef(null),o=n.useRef(e),s=n.useRef("none"),l=n.useRef(void 0),[a,c]=to(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect(()=>{"mounted"===a?(s.current=l.current??tu(i.current),l.current=void 0):s.current="none"},[a]),ex(()=>{let t=i.current,r=o.current;if(r!==e){let n=s.current,i=tu(t);e?(l.current=i,c("MOUNT")):"none"===i||t?.display==="none"?c("UNMOUNT"):r&&n!==i?c("ANIMATION_OUT"):c("UNMOUNT"),o.current=e}},[e,c]),ex(()=>{if(t){let e,r=t.ownerDocument.defaultView??window,n=ti(n=>{let s=tu(i.current).includes(CSS.escape(n.animationName));if(n.target===t&&s&&(c("ANIMATION_END"),!o.current)){let n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),l=ti(e=>{e.target===t&&(s.current=tu(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",n),t.addEventListener("animationend",n),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",n),t.removeEventListener("animationend",n)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:n.useCallback(e=>{if(e){let t=getComputedStyle(e);i.current=t,l.current=tu(t)}else i.current=null;r(e)},[])}}function ta(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tc(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let r=t.current,n=!1,i=r.map(t=>{let r=ta(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():ta(r[e],null)}}},[])}function tu(e){return e?.animationName||"none"}function td(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}ti(tl,"usePresence"),ti(ta,"setRef"),ti(tc,"useStableComposedRefs"),ti(tu,"getAnimationName"),ti(td,"getElementRef");var tf=Object.defineProperty,tp=(e,t)=>tf(e,"name",{value:t,configurable:!0}),tm="Tabs",[th,tx]=F(tm,[e2]),tg=e2(),[tb,ty]=th(tm),tv=n.forwardRef(tp(function(e,r){let{__scopeTabs:n,value:i,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:a,activationMode:c="automatic",...u}=e,d=e_(a),[f,p]=eA({prop:i,onChange:o,defaultProp:s??"",caller:tm});return(0,t.jsx)(tb,{scope:n,baseId:ev(),value:f,onValueChange:p,orientation:l,dir:d,activationMode:c,children:(0,t.jsx)(eS.div,{dir:d,"data-orientation":l,...u,ref:r})})},"Tabs")),tw=n.forwardRef(tp(function(e,r){let{__scopeTabs:n,loop:i=!0,...o}=e,s=ty("TabsList",n),l=tg(n);return(0,t.jsx)(e5,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:i,children:(0,t.jsx)(eS.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:r})})},"TabsList")),tj=n.forwardRef(tp(function(e,r){let{__scopeTabs:n,value:i,disabled:o=!1,...s}=e,l=ty("TabsTrigger",n),a=tg(n),c=tC(l.baseId,i),u=tN(l.baseId,i),d=i===l.value;return(0,t.jsx)(e6,{asChild:!0,...a,focusable:!o,active:d,children:(0,t.jsx)(eS.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:r,onMouseDown:A(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(i)}),onKeyDown:A(e.onKeyDown,e=>
1{!o&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&l.onValueChange(i)}),onFocus:A(e.onFocus,()=>{let e="manual"!==l.activationMode;d||o||!e||l.onValueChange(i)})})})},"TabsTrigger")),tS=n.forwardRef(tp(function(e,r){let{__scopeTabs:i,value:o,forceMount:s,children:l,...a}=e,c=ty("TabsContent",i),u=tC(c.baseId,o),d=tN(c.baseId,o),f=o===c.value,p=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(ts,{present:s||f,children:({present:n})=>(0,t.jsx)(eS.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...a,ref:r,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&l})})},"TabsContent"));function tC(e,t){return`${e}-trigger-${t}`}function tN(e,t){return`${e}-content-${t}`}tp(tC,"makeTriggerId"),tp(tN,"makeContentId");let tR=({condition:e,wrapper:t,children:r})=>e?t(r):r;var tk=e.i(474290),tP=e.i(27114);function tI({results:e,resultsCount:r,handleSlideClick:n,isPLP:i}){let s=r>6&&r<=12,l=r>12,a=r>16,c=s?`grid-cols-${Math.round(r/2)}`:l?"grid-cols-4":"";return(0,t.jsx)(C.SpacingContainer,{className:(0,o.default)("constructor-product-recs-stacked-desktop","relative justify-center mx-auto w-full gap-8 px-8",{grid:r>6,"grid-rows-2":s,"grid-rows-4":l&&!a,"grid-rows-5":a,"flex flex-row":!s&&!l&&!a,"max-w-[1440px]":!i,"max-w-full":i},c),children:e?.map(e=>(0,t.jsx)("div",{className:"h-full max-w-[336px]",children:(0,t.jsx)(b,{result:e,handleSlideClick:n,isDesktop:!0,isFirstSlide:!1,isLastSlide:!1,isStacked:!0})},e.id))})}let tE=({results:e,resultsCount:r,handleSlideClick:n})=>(0,t.jsx)(C.SpacingContainer,{className:(0,o.default)("constructor-product-recs-stacked-mobile","relative justify-center mx-auto w-fit","grid grid-auto-rows-fr gap-4 px-6",{"grid-cols-2":r>1,"grid-cols-1":1===r}),children:e?.map(e=>(0,t.jsx)("div",{className:"sm:max-w-[250px]",children:(0,t.jsx)(b,{result:e,handleSlideClick:n,isDesktop:!0,isFirstSlide:!1,isLastSlide:!1,isStacked:!0})},e.id))});var tO=e.i(671238);function tA({paddingClasses:e}){return(0,t.jsxs)("div",{className:(0,o.default)("flex flex-col items-center h-[450px] md:h-[550px]",e),children:[(0,t.jsx)(tO.LoadingSkeleton,{height:"h-[50px]",width:"w-[350px]",className:"mt-10 mb-10 lg:mb-2"}),(0,t.jsxs)("div",{className:"h-[372px] flex items-center justify-center w-full gap-4",children:[(0,t.jsx)(tO.LoadingSkeleton,{height:"h-[300px]",width:"w-[200px]"}),(0,t.jsx)(tO.LoadingSkeleton,{height:"h-[300px]",width:"w-[200px]"}),(0,t.jsx)(tO.LoadingSkeleton,{height:"h-[300px]",width:"w-[200px]",className:"hidden md:block"}),(0,t.jsx)(tO.LoadingSkeleton,{height:"h-[300px]",width:"w-[200px]",className:"hidden lg:block"}),(0,t.jsx)(tO.LoadingSkeleton,{height:"h-[300px]",width:"w-[200px]",className:"hidden lg:block"})]})]})}var tT=e.i(924311);e.i(678137);var tM=e.i(268539),tD=e.i(331022);let tL=e=>{let t=Number(e?.mobileFeaturedPosition);return 1===t||2===t?t:null};function tF({tabs:e,currentTab:r,setCurrentTab:i,cta:s,ctaList:l,setCurrentCta:a}){let c=e?.slice(0,3)?.filter(e=>e?.podId)||[],u=c.find(e=>1===tL(e)),d=c.find(e=>2===tL(e)),f=new Set([u?.podId,d?.podId].filter(Boolean)),p=c.filter(e=>!f.has(e?.podId)),m=[u||p.shift(),d||p.shift()],h=m.map(e=>e?.podId),x=(0,tD.useMediaQuery)("(max-width: 767px)");return(0,n.useEffect)(()=>{let[e]=m;!x||!e||h.includes(r?.podId)||(i(e),a(l?.[c.indexOf(e)]||l?.[0]||s))},[x,r?.podId,h[0]]),(0,t.jsx)(tw,{className:"flex justify-center w-full gap-4 mt-2 mb-4 md:gap-12 product-carousel-tabs",children:c?.map((e,n)=>{let c=e?.podId===r?.podId,u=h.indexOf(e?.podId);return(0,t.jsx)(tj,{value:e?.podId,className:(0,o.default)("cursor-pointer text-center text-tiny md:text-sm font-extrabold font-manrope","tracking-[15%] md:tracking-custom-2.25 uppercase border-b-2 pb-2.5",{"max_md:hidden":-1===u,"max_md:order-1":0===u,"max_md:order-2":1===u,"text-black-primary border-b-sage":c,"text-grey-greyScaleMedium border-b-white-lightest hover:border-b-grey-greyScaleMedium":!c}),onClick:()=>{i(e),a(l?.[n]||l?.[0]||s)},children:e?.label},e?.podId)})})}function t_({eyebrow:e,isPLP:r,mobileSubcopy:n,mobileLineSpacing:i,subcopy:s,desktopLineSpacing:l,sectionTitle:a,tabs:c,shouldUseTabs:u,currentTab:d,setCurrentTab:f,cta:p,ctaList:m,setCurrentCta:h}){return(0,t.jsxs)("div",{className:"flex flex-col items-center mb-2 product-carou
1sel-header",children:[e&&(0,t.jsx)("p",{className:"text-sm font-extrabold uppercase tracking-[15%] mb-2",children:e}),n&&(0,t.jsx)("div",{className:(0,o.default)("default-text-spacing text-center lg:hidden",{}),children:(0,t.jsx)(tT.RichTextRenderer,{document:n,options:{renderNode:{[tM.BLOCKS.HEADING_2]:(e,r)=>(0,t.jsx)("h2",{className:"mb-2!",style:{lineHeight:`${i}%`||`${l}%`},children:r}),[tM.BLOCKS.HEADING_3]:(e,r)=>(0,t.jsx)("h3",{className:"mb-2!",style:{lineHeight:`${i}%`||`${l}%`},children:r}),[tM.BLOCKS.PARAGRAPH]:(e,r)=>(0,t.jsx)("p",{className:"mb-2!",style:{lineHeight:`${i}%`||`${l}%`},children:r})}}})}),s?(0,t.jsx)("div",{className:(0,o.default)("default-text-spacing",{"text-center":!r,"text-center lg:w-full lg:text-start lg:pl-5":r,"lg:block hidden":n}),children:(0,t.jsx)(tT.RichTextRenderer,{document:s,options:{renderNode:{[tM.BLOCKS.HEADING_2]:(e,r)=>(0,t.jsx)("h2",{className:"mb-2!",style:{lineHeight:`${l}%`},children:r}),[tM.BLOCKS.HEADING_3]:(e,r)=>(0,t.jsx)("h3",{className:"mb-2!",style:{lineHeight:`${l}%`},children:r}),[tM.BLOCKS.PARAGRAPH]:(e,r)=>(0,t.jsx)("p",{className:"mb-2!",style:{lineHeight:`${l}%`},children:r})}}})}):(0,t.jsx)("h2",{className:(0,o.default)("mb-2",{"text-center":!r,"lg:w-full lg:text-start lg:pl-5":r}),children:a}),u&&(0,t.jsx)(tF,{tabs:c,currentTab:d,setCurrentTab:f,cta:p,ctaList:m,setCurrentCta:h})]})}function tB({model:{podId:e,eyebrow:r,mobileSubcopy:s,mobileLineSpacing:a,subcopy:u,desktopLineSpacing:d,tabs:f,numberOfProducts:p,showStackedProductsDesktop:m,showStackedProductsMobile:h,cta:x,ctaList:g,sectionTitle:b},shopifyProduct:v}){let[w,j]=(0,n.useState)(!1),S=(0,tP.parseShopifyId)(v?.id||""),C=!!f?.[0]?.podId&&!!f?.[1]?.podId,[I,E]=(0,n.useState)(C?f[0]:null),[O,A]=(0,n.useState)(g?.[0]||x),[T]=(0,k.useSelectCart)(),M=(0,c.useLocale)(),D=(0,tP.parseShopifyId)((0,k.useSelectCurrentProductVariantId)()),{pathname:L}=(0,i.useRouter)(),F=L?.includes("collections"),_="sm:pt-12 pt-8 sm:pb-12 pb-8",B=I?.podId||e,{status:$,recommendationsResponse:z}=(0,tk.useConstructorRecommendations)({podId:B,numResults:p<21?p:20,locale:M,itemId:S,section:"Products",variationId:D}),{ref:U,inView:H}=(0,P.useInView)({initialInView:!1});if(!function({podId:e,isProductRecomSectionInView:t}){let[r,i]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(e){let n=new URL(window.location.href),o=n?.pathname?.includes("products")?"PDP":n?.pathname?.includes("pages")?"LP":n?.pathname==="/"||n?.pathname===""?"Home":"";t&&!r&&(i(!0),(0,R.sendTrackingEvent)("productRecommendationViewed",{podId:e,pageType:o}))}},[t])}({podId:B,isProductRecomSectionInView:H}),(0,n.useEffect)(()=>{"succeeded"===$&&j(!0)},[$]),"succeeded"!==$&&!w)return(0,t.jsx)(tA,{paddingClasses:_});let V=z?.productSuggestions||[],K=(V||[]).length;if(K<1)return null;let G={"data-cnstrc-recommendations":"","data-cnstrc-recommendations-pod-id":B,"data-cnstrc-result-id":z?.resultId,"data-cnstrc-num-results":z?.totalNumResults},W=e=>{(0,R.sendTrackingEvent)("productClicked",{product:e,cart:T,source:"constructor-recommendation",productClickType:"Product Recommendations",productRecommendationsId:B})};return(0,t.jsxs)("div",{className:(0,o.default)("product-carousel-section","product-recommendations-section flex flex-col items-center min-h-60 lg:min-h-137.5 px-4",_),...G,ref:U,children:[(0,t.jsxs)(tR,{condition:C,wrapper:e=>(0,t.jsx)(tv,{className:"contents",defaultValue:B,children:e}),children:[(0,t.jsx)(t_,{isPLP:F,eyebrow:r,mobileSubcopy:s,mobileLineSpacing:a,subcopy:u,desktopLineSpacing:d,sectionTitle:b,tabs:f,shouldUseTabs:C,currentTab:I,setCurrentTab:E,ctaList:g,cta:x,setCurrentCta:A}),(0,t.jsx)("div",{className:(0,o.default)("lg:contents","hidden"),children:(0,t.jsx)(tR,{condition:C,wrapper:e=>(0,t.jsx)(tS,{className:"contents",value:B,forceMount:!0,children:e}),children:m?(0,t.jsx)(tI,{results:V,resultsCount:K,handleSlideClick:W}):(0,t.jsx)(N,{results:V,resultsCount:K,handleSlideClick:W,isUsingTabs:C})})}),(0,t.jsx)("div",{className:(0,o.default)("lg:hidden","contents"),children:(0,t.jsx)(tR,{condition:C,wrapper:e=>
1(0,t.jsx)(tS,{className:"contents",value:B,forceMount:!0,children:e}),children:h?(0,t.jsx)(tE,{results:V,resultsCount:K,handleSlideClick:W}):(0,t.jsx)(y,{results:V,resultsCount:K,handleSlideClick:W,isUsingTabs:C})})})]}),O&&(0,t.jsx)(l.Link,{href:O?.linkTarget,className:"w-full mt-4 lg:mt-8",variant:"button",overrideStyles:{color:O?.textColorPickerOverride?.value,backgroundColor:O?.backgroundColorPickerOverride?.value},children:O?.displayText})]})}function t$({model:e,contentType:n,paddingClassName:i}){let o=(0,k.useSelectCurrentProductHandle)(),s=(0,r.useCMSProductHandle)(),[l,a]=(0,k.useSelectShopifyProductByHandle)(o||s);return"product"!==n||"succeeded"===l&&a?(0,t.jsx)(tB,{model:e,shopifyProduct:a,paddingClassName:i}):(0,t.jsx)(tO.LoadingSkeleton,{height:"h-60 lg:h-[550px]"})}e.s(["ProductCarousel",()=>t$],605972)},184354,438107,e=>{"use strict";var t=e.i(391398),r=e.i(284848);e.s(["UnhandledSection",0,()=>(r.log.warn("UnhandledSection is rendered when a section is not handled by our framework"),(0,t.jsx)("section",{className:"unhandled-section hidden"}))],438107),e.s([],184354)}]);
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.