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AAAmD,EAAAzC,EAAAoH,EAAA,CAAAoC,QAAA,CAAAxJ,EAAAoH,EAAA,CAAAqC,KAAA,EAAA5C,SAAAzD,EAAA8J,SAAA,IAAA5M,EAAAgG,GAAA,EAAA1F,EAAA,CAAA8K,MAAAtI,EAAA8J,SAAA,CAAAU,WAAA,QAAAtN,EAAAgG,GAAA,EAAA1F,EAAA,CAAA8K,MAAArM,EAAAiE,MAAA,CAAA4J,SAAA,CAAAU,WAAA,MAAAtO,EAAA,MAAAgB,EAAAgG,GAAA,QAAAO,SAAA,GAAAvG,EAAAgG,GAAA,EAAA1F,EAAA,CAAA8K,MAAAtI,EAAA8J,SAAA,CAAAU,WAAA,UAAAzL,GAAAoJ,KAAA,KAAApJ,GAAAoJ,KAAA,KAAAjM,EAAAsH,OAAA,IAAApH,EAAA6O,EAAA,EAAAjN,GAAA,IAAAzB,EAAAyB,CAAA","sources":["webpack://_N_E/./components/LegacyProductHighlightsBlock/LegacyProductHighlightsBlock.js","webpack://_N_E/"],"sourcesContent":["import React, { useEffect, useRef, useState, Suspense } from 'react';\nimport PropTypes from 'prop-types';\nimport {createHtmlFriendlyId, getReviewAndRatingId, stripHtml} from '../../adapters/helpers/Utils';\nimport { LegacyProductHighlightsConstants, ProductHighlightsConstants } from '../../adapters/helpers/Constants';\nimport { mediaQueryHOC, updateCurrentProductIndex } from '../../adapters/helpers/Hooks';\nimport { getColorStyle } from '../../adapters/helpers/Utils';\nimport {handleColorNameFormat, handleClickToScrollToRnR} from '../../adapters/helpers/Utils';\nimport { parseAnchorFromURL } from '../../adapters/helpers/Anchor';\nimport dynamic from 'next/dynamic';\nconst Heading = dynamic(() => import('../Heading/Heading'));\nconst Image = dynamic(() => import('../Image/Image'));\nconst ObLink = dynamic(() => import('../ObLink/ObLink'));\nconst Icon = dynamic(() => import('../Icon/Icon'));\nconst RichText = dynamic(() => import('../RichText/RichText'));\nconst Button = dynamic(() => import('../Button/Button'))\nimport Loader from '../../adapters/helpers/Loader';\nimport DOMPurify from 'isomorphic-dompurify';\n\nfunction LegacyProductHighlights(props) {\n const {extraAttributes, isMedium, document:doc} = props;\n const [selectedVariantIndex, setSelectedVariantIndex] = useState(0);\n const [currentCarouselImageIndex, setCurrentCarouselImageIndex] = useState(0);\n // eslint-disable-next-line no-unused-vars\n const [_, setGlobalState] = updateCurrentProductIndex();\n const entity = extraAttributes.entity;\n const productOverview = entity.productOverview.fields;\n const productVariants = productOverview?.productVariants;\n const legacyAssets = entity?.legacyAssets || [];\n const [carouselAssets, setCarouselAssets] = useState(legacyAssets);\n const productHighlights = entity.productHighlights;\n const labels = doc.fields;\n const pressQuote = productOverview?.pressQuote?.fields;\n const backgroundImage = doc.fields.background;\n const startingAtButtonLabel = productOverview?.buyNowLabel?.fields.text;\n const anchorId = doc.fields.anchorId;\n let reviewAndRatingId = getReviewAndRatingId(entity.productOverview);\n const seeLessLabel = doc?.fields?.seeLessLabel?.fields?.text.toUpperCase();\n const seeMoreLabel = doc?.fields?.seeMoreLabel?.fields?.text.toUpperCase();\n const nextLabel = doc?.fields?.nextLabel?.fields?.text;\n const previousLabel = doc?.fields?.previousLabel?.fields?.text.toUpperCase();\n const productVariantAttributeTypes = entity?.productVariantAttributeTypes || [];\n const thumbnailCarouselRef = useRef();\n const comingSoonText = productOverview?.comingSoonLabel?.fields?.text || '';\n const comingSoonLink = productOverview?.comingSoonLink || '';\n const buyNowDeactivated = productOverview?.deactivateBuyNowButton || false;\n const [isPageLoaded, setIsPageLoaded] = useState(false);\n\n const TruncatedDescription = ({className, text}) => {\n const [seeLess, setSeeLess] = useState(true);\n const firstPeriodIndex = text.indexOf('.');\n\n // If there is no period or the text contains a single sentence.\n if (firstPeriodIndex === -1 || firstPeriodIndex + 1 === text.length) {\n return
;\n }\n\n return (\n }>\n
\n
\n\n setSeeLess(!seeLess)} tag={LegacyProductHighlightsConstants.button}>\n \n {seeLess ? seeMoreLabel : seeLessLabel}\n \n
\n
\n );\n };\n\n function handleHashChange() {\n const anchor = parseAnchorFromURL(window.location.hash);\n for (let i = 0; i < productVariants.length; i++) {\n const variantColor = productVariants[i]?.fields?.color?.fields?.name;\n if (variantColor) {\n if (anchor?.color?.toLowerCase() === variantColor?.toLowerCase()) {\n setSelectedVariantIndex(i);\n }\n if (anchor?.color?.toLowerCase() === LegacyProductHighlightsConstants.undefinedStr) {\n setSelectedVariantIndex(0);\n }\n }\n }\n }\n\n useEffect(() => {\n setIsPageLoaded(true);\n handleHashChange();\n\n window.addEventListener('hashchange', handleHashChange);\n\n return () => {\n window.removeEventListener('hashchange', handleHashChange);\n }\n }, [isPageLoaded]);\n\n const renderHighlightsHeader = () => {\n let ele ='';\n if(isMedium) {\n ele = document.getElementById('ob-product-subnav-scroll'); \n }\n return (\n
\n {productOverview.title}\n \n
\n )\n };\n\n useEffect(() => {\n setIsPageLoaded(true);\n setGlobalState({currentProductId: selectedVariantIndex})\n if (window) {\n const colorName = productVariants[selectedVariantIndex]?.fields?.color?.fields?.name?.toLowerCase();\n window.location.hash = `color=${encodeURIComponent(colorName)}`;\n }\n if (productVariants[selectedVariantIndex]?.fields?.legacyAssets) {\n setCarouselAssets(productVariants[selectedVariantIndex]?.fields?.legacyAssets);\n } else if (legacyAssets.length > 1) {\n setCarouselAssets(legacyAssets);\n }\n }, [selectedVariantIndex, isPageLoaded]);\n\n const renderColorButtons = () => {\n return (\n
\n {(productVariants.some(variant => variant?.fields?.color !== undefined)) &&\n

{labels?.colorLabel}

\n }\n \n
\n )\n };\n\n const [showMore, setShowMore] = useState(false);\n\n const highlightList = (productHighlights) ? Object.keys(productHighlights).slice(0, 3).map(key => {\n return (\n
  • \n \n
  • \n )}\n ) : [];\n\n const highlightListMore = (productHighlights) ? Object.keys(productHighlights).slice(3).map(key => {\n return (\n
  • \n \n
  • \n )}\n ) : [];\n\n const highlightLength = () => {\n // Return true if highlight is superior than 2 to display see more button\n return productHighlights && Object.keys(productHighlights).length > 3;\n };\n\n const showMoreButton = () => {\n let button;\n\n if (showMore) {\n button = (\n \n \n {seeLessLabel.toUpperCase()}\n {LegacyProductHighlightsConstants.highlights}\n \n )\n } else {\n button = (\n \n \n {seeMoreLabel.toUpperCase()}\n {LegacyProductHighlightsConstants.highlights}\n \n );\n }\n\n return button;\n };\n\n\n const handleShowMore = () => {\n setShowMore(!showMore);\n };\n\n const renderShopByPack = (productVariants) => {\n return (\n
    \n \n
    \n )\n };\n\n const handleCarouselSlideChange = ({position = '', index = -1}) => {\n if(thumbnailCarouselRef.current) {\n let carouselIndex = currentCarouselImageIndex;\n if (position === LegacyProductHighlightsConstants.prev && carouselIndex > 0) {\n carouselIndex--;\n } else if (position === LegacyProductHighlightsConstants.next && carouselIndex < carouselAssets?.length - 1) {\n carouselIndex++;\n } else if (index > -1) {\n carouselIndex = index;\n }\n setCurrentCarouselImageIndex(carouselIndex);\n\n const thumbnailChildren = thumbnailCarouselRef.current.children;\n scrollElemIntoView(thumbnailChildren[carouselIndex]);\n\n }\n };\n\n const scrollElemIntoView = (elem) => {\n if (!elem) {\n return;\n }\n elem.scrollIntoView({\n behavior: LegacyProductHighlightsConstants.smooth,\n block: LegacyProductHighlightsConstants.nearest,\n inline: LegacyProductHighlightsConstants.center\n })\n };\n\n let startTouchPoint = null;\n let endTouchPoint = null;\n\n const onTouchStart = event => {\n endTouchPoint = null;\n\n if (event.touches) {\n startTouchPoint = event.touches[0];\n }\n };\n\n const onTouchEnd = () => {\n if (endTouchPoint != null && startTouchPoint != null) {\n let deltaX = startTouchPoint.screenX - endTouchPoint.screenX;\n let deltaY = startTouchPoint.screenY - endTouchPoint.screenY;\n\n if (deltaX > 0 && !isVerticalScroll(deltaX, deltaY)) {\n handleCarouselSlideChange({position: LegacyProductHighlightsConstants.next})\n } else {\n handleCarouselSlideChange({position: LegacyProductHighlightsConstants.prev})\n }\n }\n };\n\n const onTouchMove = event => {\n if (event.touches) {\n endTouchPoint = event.touches[0];\n }\n };\n\n const isVerticalScroll = (deltaX, deltaY, deltaThreshold = 10) => {\n let moveX = Math.abs(deltaX) > deltaThreshold ? Math.abs(deltaX) : 0;\n let moveY = Math.abs(deltaY) > deltaThreshold ? Math.abs(deltaY) : 0;\n\n return moveY > moveX;\n };\n\n const renderCarousel = () => {\n return (\n }>\n
    \n
      \n { carouselAssets.map((carouselMainAsset, index) => (\n \n }>{carouselAssets?.[index]?.fields?.alternateText}\n \n ))}\n
    \n\n
    \n
      \n { carouselAssets.map((carouselThumbnailItem, index) => (\n \n handleCarouselSlideChange({index: index})}\n >\n }>\n \n \n ))}\n
    \n handleCarouselSlideChange({ position: LegacyProductHighlightsConstants.prev })}\n aria-label={previousLabel}\n tabIndex={currentCarouselImageIndex === 0 ? -1 : null}\n disabled={currentCarouselImageIndex === 0 ? true : false} \n >\n \n \n handleCarouselSlideChange({ position: LegacyProductHighlightsConstants.next })}\n aria-label={nextLabel}\n tabIndex={currentCarouselImageIndex === carouselAssets?.length - 1 ? -1 : null}\n disabled={currentCarouselImageIndex === carouselAssets?.length - 1 ? true : false}\n >\n \n \n
    \n
    \n
    \n )\n };\n\n const renderTextContent = () => {\n return (\n
    \n {!isMedium && renderHighlightsHeader()}\n {isMedium && productVariants && renderColorButtons()}\n \n {pressQuote &&\n
    \n {pressQuote.quote}\n \n
    \n }\n {productHighlights &&\n
    \n

    {labels.highlightsLabel}

    \n
      \n {highlightList}\n {showMore &&\n highlightListMore\n }\n
    \n {highlightLength() && showMoreButton()}\n
    \n }\n {!isMedium && productVariants && productVariants?.some(variant => variant?.fields?.color !== undefined) && renderColorButtons()}\n\n { productVariants && productVariantAttributeTypes.length > 0 && productVariants[selectedVariantIndex]?.fields?.productVariantAttributes && renderShopByPack(productVariants) }\n\n { startingAtButtonLabel && !buyNowDeactivated && productVariants[selectedVariantIndex]?.fields?.sku &&\n \n }\n\n {buyNowDeactivated &&\n \n {comingSoonText}\n \n }\n
    \n )\n };\n\n if(productVariants && productVariants[0]?.fields?.mainAsset?.fields){\n productVariants[0].fields.mainAsset.fields['isProductPage'] = true;\n }else if(productOverview?.mainAsset?.fields){\n productOverview.mainAsset.fields['isProductPage'] = true;\n }\n return (\n }>\n
    \n \n
    \n {/* Below code structure have implemented for pagespeed. */}\n {\n isPageLoaded ?\n isMedium && renderHighlightsHeader()\n :\n isMedium &&
    \n {renderHighlightsHeader()}\n
    \n }\n {carouselAssets.length > 1 ? (\n renderCarousel()\n ) : (\n
      \n { productVariants ?\n productVariants.map((variant, index) => (\n
    • \n {productOverview.mainAsset ? (\n \n ) : (\n \n )}\n
    • \n )) : (\n
    • \n \n
    • \n )}\n
    \n )}\n {!isMedium && renderTextContent()}\n
    \n \n {isMedium && renderTextContent()}\n
    \n
    \n )\n}\n\nexport default mediaQueryHOC(LegacyProductHighlights);\n// This export is for unit testing (do not remove) :\nexport const LegacyProductHighlightsTest = LegacyProductHighlights;\n\nLegacyProductHighlights.propTypes = {\n extraAttributes: PropTypes.object,\n isMedium: PropTypes.bool,\n document: PropTypes.object,\n onClickCallback: PropTypes.func,\n className: PropTypes.string,\n text: PropTypes.string,\n};\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1970],{81970:function(l,e,n){n.r(e),n.d(e,{LegacyProductHighlightsTest:function(){return w}});var i=n(85696),t=n.n(i),s=n(67294),o=n(8996),a=n(24036),r=n(71357),u=n(97020),c=n(5152),d=n.n(c),h=n(47322),g=n(29238),b=n.n(g),m=n(85893),v=d()((function(){return n.e(2116).then(n.bind(n,92116))}),{loadableGenerated:{webpack:function(){return[92116]}}}),p=d()((function(){return Promise.resolve().then(n.bind(n,48084))}),{loadableGenerated:{webpack:function(){return[48084]}}}),f=d()((function(){return Promise.all([n.e(1664),n.e(1769)]).then(n.bind(n,61769))}),{loadableGenerated:{webpack:function(){return[61769]}}}),x=d()((function(){return Promise.resolve().then(n.bind(n,80713))}),{loadableGenerated:{webpack:function(){return[80713]}}}),_=d()((function(){return Promise.all([n.e(5208),n.e(7539)]).then(n.bind(n,67539))}),{loadableGenerated:{webpack:function(){return[67539]}}}),j=d()((function(){return n.e(9246).then(n.bind(n,99246))}),{loadableGenerated:{webpack:function(){return[99246]}}});function N(l){var e,n,i,c,d,g,N,w,y,P,k,L,A,C,S,T,I,V,z,E,G=l.extraAttributes,M=l.isMedium,B=l.document,U=(0,s.useState)(0),H=U[0],R=U[1],O=(0,s.useState)(0),q=O[0],D=O[1],F=(0,r.y3)(),X=t()(F,2),Y=(X[0],X[1]),Q=G.entity,W=Q.productOverview.fields,J=null==W?void 0:W.productVariants,K=(null==Q?void 0:Q.legacyAssets)||[],Z=(0,s.useState)(K),$=Z[0],ll=Z[1],el=Q.productHighlights,nl=B.fields,il=null==W||null==(e=W.pressQuote)?void 0:e.fields,tl=B.fields.background,sl=null==W||null==(n=W.buyNowLabel)?void 0:n.fields.text,ol=B.fields.anchorId,al=(0,o.VP)(Q.productOverview),rl=null==B||null==(i=B.fields)||null==(c=i.seeLessLabel)||null==(d=c.fields)?void 0:d.text.toUpperCase(),ul=null==B||null==(g=B.fields)||null==(N=g.seeMoreLabel)||null==(w=N.fields)?void 0:w.text.toUpperCase(),cl=null==B||null==(y=B.fields)||null==(P=y.nextLabel)||null==(k=P.fields)?void 0:k.text,dl=null==B||null==(L=B.fields)||null==(A=L.previousLabel)||null==(C=A.fields)?void 0:C.text.toUpperCase(),hl=(null==Q?void 0:Q.productVariantAttributeTypes)||[],gl=(0,s.useRef)(),bl=(null==W||null==(S=W.comingSoonLabel)||null==(T=S.fields)?void 0:T.text)||\"\",ml=(null==W?void 0:W.comingSoonLink)||\"\",vl=(null==W?void 0:W.deactivateBuyNowButton)||!1,pl=(0,s.useState)(!1),fl=pl[0],xl=pl[1],_l=function(l){var e=l.className,n=l.text,i=(0,s.useState)(!0),t=i[0],o=i[1],r=n.indexOf(\".\");return-1===r||r+1===n.length?(0,m.jsx)(\"div\",{className:e,dangerouslySetInnerHTML:{__html:b().sanitize(n)}}):(0,m.jsx)(s.Suspense,{fallback:(0,m.jsx)(h.default,{}),children:(0,m.jsxs)(\"div\",{className:e,children:[(0,m.jsx)(\"div\",{dangerouslySetInnerHTML:{__html:b().sanitize(t?\"\".concat(n.slice(0,r+1)):n)}}),(0,m.jsxs)(f,{ariaExpanded:!t,className:\"primaryGrey ob-product-highlights__see-more\",onClick:function(){return o(!t)},tag:a.P8.button,children:[(0,m.jsx)(x,{name:t?a.P8.plus:a.P8.minus6,roundedIcon:a.P8.blue,viewBox:t?10:6,\"aria-hidden\":!0}),t?ul:rl]})]})})};function jl(){for(var l=(0,u.Wq)(window.location.hash),e=0;e1&&ll(K)}),[H,fl]);var wl=function(){return(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__color-ctn\",children:[J.some((function(l){var e;return void 0!==(null==l||null==(e=l.fields)?void 0:e.color)}))&&(0,m.jsx)(\"p\",{className:\"ob-product-highlights__label\",children:null==nl?void 0:nl.colorLabel}),(0,m.jsx)(\"ul\",{className:\"ob-product-highlights__colors\",children:J.map((function(l,e){var n,i,t,s,r,u,c,d,h,g,b;return(null==l||null==(n=l.fields)?void 0:n.color)?(0,m.jsxs)(\"li\",{className:\"ob-product-highlights__selected-colors-item\",children:[(0,m.jsx)(\"button\",{style:(0,o.Nt)(l.fields.color),className:\"ob-product-highlights__color event_buy_now_choose_product \".concat(e===H?a.P8.isActive:a.P8.empty),onClick:function(){return R(e)},\"data-action-detail\":\"\".concat(null==l||null==(i=l.fields)||null==(t=i.color)||null==(s=t.fields)?void 0:s.name,\"_\").concat((0,o.Vt)(null==W?void 0:W.title)),\"aria-pressed\":e===H,children:(0,m.jsx)(\"span\",{className:\"visuallyhidden\",children:null==l||null==(r=l.fields)||null==(u=r.color)||null==(c=u.fields)?void 0:c.name})}),(null==l||null==(d=l.fields)?void 0:d.color)&&(0,m.jsx)(\"div\",{className:\"color-container-pdp\",children:(0,m.jsx)(\"p\",{className:e===H?\"ob-accessibility-highlighted\":\"ob-accessibility\",children:(0,o.CB)(null==l||null==(h=l.fields)||null==(g=h.color)||null==(b=g.fields)?void 0:b.name)})})]},e):\"\"}))})]})},yl=(0,s.useState)(!1),Pl=yl[0],kl=yl[1],Ll=el?Object.keys(el).slice(0,3).map((function(l){return(0,m.jsx)(\"li\",{className:\"ob-product-highlights__highlights-list-item\",children:(0,m.jsx)(_,{document:el[l]})},l)})):[],Al=el?Object.keys(el).slice(3).map((function(l){return(0,m.jsx)(\"li\",{className:\"ob-product-highlights__highlights-list-item more \".concat(Pl),children:(0,m.jsx)(_,{document:el[l]})},l)})):[],Cl=function(){kl(!Pl)},Sl=function(l){return(0,m.jsx)(\"div\",{className:\"ob-product-highlights__dropdown-ctn\",children:(0,m.jsx)(\"ul\",{className:\"ob-product-highlights__dropdown-list\",children:hl.map((function(e,n){var i,t,s,a,r;return(0,m.jsxs)(\"li\",{className:\"ob-product-highlights__dropdown-list-item\",children:[(0,m.jsx)(\"label\",{htmlFor:(0,o.vG)(null==e||null==(i=e.fields)?void 0:i.name),className:\"ob-product-highlights__label ob-product-highlights__dropdown-label\",children:null==e||null==(t=e.fields)||null==(s=t.description)||null==(a=s.fields)?void 0:a.text}),(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__dropdown-list-item-ctn\",children:[(0,m.jsx)(\"select\",{id:(0,o.vG)(null==e||null==(r=e.fields)?void 0:r.name),className:\"ob-product-highlights__dropdown-select\",onBlur:function(l){return R(parseInt(l.currentTarget.value,10))},children:l.map((function(l,i){var t,s,o,a,r,u,c,d,h,g,b,v,p,f=null==l||null==(t=l.fields)?void 0:t.productVariantAttributes;return null!=f&&f.length>n?(null==e||null==(a=e.fields)?void 0:a.name)===(null==(r=f[n])||null==(u=r.fields)||null==(c=u.productVariantAttributeTypeReference)||null==(d=c.fields)?void 0:d.name)?(0,m.jsx)(\"option\",{value:i,children:null==l||null==(h=l.fields)||null==(g=h.productVariantAttributes[n])||null==(b=g.fields)||null==(v=b.description)||null==(p=v.fields)?void 0:p.text},i):void 0:(console.info(\"Product Variant Attr Type \"+(null==e||null==(s=e.fields)?void 0:s.name)+\" missing at index \"+n+\" for variant \"+(null==l||null==(o=l.fields)?void 0:o.name)),\"\")}))}),(0,m.jsx)(\"div\",{className:\"ob-product-highlights__dropdown-icon\",children:(0,m.jsx)(x,{name:\"chevronDown\",size:2})})]})]},n)}))})})},Tl=function(l){var e=l.position,n=void 0===e?\"\":e,i=l.index,t=void 0===i?-1:i;if(gl.current){var s=q;n===a.P8.prev&&s>0?s--:n===a.P8.next&&s<(null==$?void 0:$.length)-1?s++:t>-1&&(s=t),D(s);var o=gl.current.children;Il(o[s])}},Il=function(l){l&&l.scrollIntoView({behavior:a.P8.smooth,block:a.P8.nearest,inline:a.P8.center})},Vl=null,zl=null,El=function(l){zl=null,l.touches&&(Vl=l.touches[0])},Gl=function(){if(null!=zl&&null!=Vl){var l=Vl.screenX-zl.screenX,e=Vl.screenY-zl.screenY;l>0&&!Bl(l,e)?Tl({position:a.P8.next}):Tl({position:a.P8.prev})}},Ml=function(l){l.touches&&(zl=l.touches[0])},Bl=function(l,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=Math.abs(l)>n?Math.abs(l):0,t=Math.abs(e)>n?Math.abs(e):0;return t>i},Ul=function(){var e,n,i,t,s,r;return(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__text-content\",children:[!M&&Nl(),M&&J&&wl(),(0,m.jsx)(_l,{className:\"ob-product-highlights__description\",text:W.description}),il&&(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__quote\",children:[(0,m.jsx)(\"span\",{className:\"ob-product-highlights__quote-text\",children:il.quote}),(0,m.jsx)(p,{image:il.pressLogo})]}),el&&(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__highlights-ctn\",children:[(0,m.jsx)(\"h3\",{className:\"ob-product-highlights__label\",children:nl.highlightsLabel}),(0,m.jsxs)(\"ul\",{className:\"ob-product-highlights__highlights-list\",id:\"ob-highlights-ctn\",children:[Ll,Pl&&Al]}),el&&Object.keys(el).length>3&&(Pl?(0,m.jsxs)(f,{ariaExpanded:!0,className:\"primaryGrey ob-product-highlights__see-more event_button_click\",tag:a.P8.button,dataActionDetail:rl,onClick:Cl,ariaLabel:\"\".concat(rl,\" \").concat(a.P8.highlights),children:[(0,m.jsx)(x,{name:a.P8.minus6,roundedIcon:a.P8.blue,viewBox:6}),rl.toUpperCase(),(0,m.jsx)(\"span\",{className:\"visuallyhidden\",children:a.P8.highlights})]}):(0,m.jsxs)(f,{ariaExpanded:!1,className:\"primaryGrey ob-product-highlights__see-more event_button_click\",tag:a.P8.button,dataActionDetail:ul,onClick:Cl,ariaLabel:\"\".concat(ul,\" \").concat(a.P8.highlights),children:[(0,m.jsx)(x,{name:a.P8.plus,roundedIcon:a.P8.blue,viewBox:10}),ul.toUpperCase(),(0,m.jsx)(\"span\",{className:\"visuallyhidden\",children:a.P8.highlights})]}))]}),!M&&J&&(null==J?void 0:J.some((function(l){var e;return void 0!==(null==l||null==(e=l.fields)?void 0:e.color)})))&&wl(),J&&hl.length>0&&(null==(e=J[H])||null==(n=e.fields)?void 0:n.productVariantAttributes)&&Sl(J),sl&&!vl&&(null==(i=J[H])||null==(t=i.fields)?void 0:t.sku)&&(0,m.jsx)(j,{size:\"medium-long\",className:\"event_buy_now\",dataActionDetail:(0,o.Vt)(W.title),onClick:function(e){return l.onClickCallback(e)},sku:null==(s=J[H])||null==(r=s.fields)?void 0:r.sku,children:sl}),vl&&(0,m.jsx)(j,{tag:\"a\",disabled:\"\"===ml,href:ml,size:\"medium-long\",target:\"_blank\",rel:\"noopener noreferrer\",children:bl})]})};return J&&(null==(I=J[0])||null==(V=I.fields)||null==(z=V.mainAsset)?void 0:z.fields)?J[0].fields.mainAsset.fields.isProductPage=!0:(null==W||null==(E=W.mainAsset)?void 0:E.fields)&&(W.mainAsset.fields.isProductPage=!0),(0,m.jsx)(s.Suspense,{fallback:(0,m.jsx)(h.default,{}),children:(0,m.jsxs)(\"div\",{className:\"ob-product-highlights ob-legacy-product-highlights\",id:ol,children:[(0,m.jsx)(p,{image:tl,children:(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__ctn\",children:[fl?M&&Nl():M&&(0,m.jsx)(\"div\",{className:\"ob-mobile-legacy-product-highlights-header\",children:Nl()}),$.length>1?(0,m.jsx)(s.Suspense,{fallback:(0,m.jsx)(h.default,{}),children:(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__carousel\",children:[(0,m.jsx)(\"ul\",{className:\"ob-product-highlights__carousel-main-list\",onTouchStart:El,onTouchEnd:Gl,onTouchMove:Ml,children:$.map((function(l,e){var n,i;return(0,m.jsx)(\"li\",{\"data-index\":e,className:\"ob-product-highlights__carousel-main-list-item \".concat(q===e?\"--is-active\":\"\"),children:(0,m.jsx)(s.Suspense,{fallback:(0,m.jsx)(h.default,{}),children:(0,m.jsx)(p,{image:l,alt:null==$||null==(n=$[e])||null==(i=n.fields)?void 0:i.alternateText,noLazyLoad:!0})})},e)}))}),(0,m.jsxs)(\"div\",{className:\"ob-product-highlights__carousel-thumbnail-ctn\",children:[(0,m.jsx)(\"ul\",{className:\"ob-product-highlights__carousel-thumbnail-list\",ref:gl,children:$.map((function(l,e){var n,i,t;return(0,m.jsx)(\"li\",{className:\"ob-product-highlights__carousel-thumbnail-list-item \".concat(1!==(null==l||null==(n=l.imageRendition)?void 0:n.aspectRatio)?\"ob-product-highlights__carousel-thumbnail-list-item--not-square\":\"\",\" \").concat((null==$?void 0:$.length)<=3?\"ob-product-highlights__carousel-thumbnail-list-item--not-full\":\"\"),children:(0,m.jsx)(\"button\",{type:\"button\",\"aria-label\":null==$||null==(i=$[e])||null==(t=i.fields)?void 0:t.alternateText,className:\"ob-product-highlights__carousel-thumbnail-button \".concat(q===e?\"--is-active\":\"\"),onClick:function(){return Tl({index:e})},children:(0,m.jsx)(s.Suspense,{fallback:(0,m.jsx)(h.default,{}),children:(0,m.jsx)(p,{image:l,noAltText:!0})})})},e)}))}),(0,m.jsx)(\"button\",{type:\"button\",className:\"ob-product-highlights__carousel-btn ob-product-highlights__carousel-btn--prev \".concat(0===q?\"--is-disabled\":\"\"),onClick:function(){return Tl({position:a.P8.prev})},\"aria-label\":dl,tabIndex:0===q?-1:null,disabled:0===q,children:(0,m.jsx)(x,{name:\"ovalArrowRight\",rotate:180,size:2.8,ariaHidden:\"true\"})}),(0,m.jsx)(\"button\",{type:\"button\",className:\"ob-product-highlights__carousel-btn ob-product-highlights__carousel-btn--next \".concat(q===(null==$?void 0:$.length)-1?\"--is-disabled\":\"\"),onClick:function(){return Tl({position:a.P8.next})},\"aria-label\":cl,tabIndex:q===(null==$?void 0:$.length)-1?-1:null,disabled:q===(null==$?void 0:$.length)-1,children:(0,m.jsx)(x,{name:\"ovalArrowRight\",size:2.8,ariaHidden:\"true\"})})]})]})}):(0,m.jsx)(\"ul\",{className:\"ob-product-highlights__img-ctn\",children:J?J.map((function(l,e){return(0,m.jsx)(\"li\",{className:\"ob-product-highlights__img \".concat(e===H?a.P8.isActive:a.P8.empty),children:W.mainAsset?(0,m.jsx)(p,{image:W.mainAsset,noLazyLoad:!0}):(0,m.jsx)(p,{image:l.fields.mainAsset,noLazyLoad:!0})},e)})):(0,m.jsx)(\"li\",{children:(0,m.jsx)(p,{image:W.mainAsset,noLazyLoad:!0})})}),!M&&Ul()]})}),M&&Ul()]})})}e.default=(0,r.Ui)(N);var w=N}}]);"],"names":["self","webpackChunk_N_E","push","l","e","n","r","d","LegacyProductHighlightsTest","w","i","t","s","o","a","u","c","h","g","b","m","v","then","bind","loadableGenerated","webpack","p","Promise","resolve","f","all","x","_","j","N","y","P","k","L","A","C","S","T","I","V","z","E","G","extraAttributes","M","isMedium","B","document","U","useState","H","R","O","q","D","F","y3","X","Y","Q","entity","W","productOverview","fields","J","productVariants","K","legacyAssets","Z","$","ll","el","productHighlights","nl","il","pressQuote","tl","background","sl","buyNowLabel","text","ol","anchorId","al","VP","rl","seeLessLabel","toUpperCase","ul","seeMoreLabel","cl","nextLabel","dl","previousLabel","hl","productVariantAttributeTypes","gl","useRef","bl","comingSoonLabel","ml","comingSoonLink","vl","deactivateBuyNowButton","pl","fl","xl","_l","className","indexOf","length","jsx","dangerouslySetInnerHTML","__html","sanitize","Suspense","fallback","default","children","jsxs","concat","slice","ariaExpanded","onClick","tag","P8","button","name","plus","minus6","roundedIcon","blue","viewBox","jl","Wq","window","location","hash","color","toLowerCase","undefinedStr","useEffect","addEventListener","removeEventListener","Nl","getElementById","style","marginTop","offsetHeight","title","Vt","F2","rating","lU","currentProductId","encodeURIComponent","wl","some","colorLabel","map","Nt","isActive","empty","CB","yl","Pl","kl","Ll","Object","keys","Al","Cl","Tl","position","index","current","prev","next","Il","scrollIntoView","behavior","smooth","block","nearest","inline","center","Vl","zl","Bl","arguments","Math","abs","Ul","description","quote","image","pressLogo","highlightsLabel","id","dataActionDetail","ariaLabel","highlights","productVariantAttributes","htmlFor","vG","onBlur","parseInt","currentTarget","value","productVariantAttributeTypeReference","console","info","size","sku","onClickCallback","disabled","href","target","rel","mainAsset","isProductPage","onTouchStart","touches","onTouchEnd","screenX","screenY","onTouchMove","alt","alternateText","noLazyLoad","ref","imageRendition","aspectRatio","type","noAltText","tabIndex","rotate","ariaHidden","Ui"],"sourceRoot":""}