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esComparisonItem.js","webpack://_N_E/"],"sourcesContent":["/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import {SeriesComparisonItemConstants} from '../../adapters/helpers/Constants';\nimport C from 'classnames';\nimport dynamic from 'next/dynamic';\nimport {getColorStyle, stripHtml} from '../../adapters/helpers/Utils';\nimport { getReviewAndRatingId } from '../../adapters/helpers/Utils';\nimport { addBVCollectionPageCallback } from '../../adapters/helpers/Utils';\nimport PropTypes from 'prop-types';\nimport React, {useEffect, useState} from 'react';\nimport {handleColorNameFormat} from '../../adapters/helpers/Utils';\nconst Button = dynamic(() => import('../Button/Button'));\nconst Image = dynamic(() => import('../Image/Image'));\nconst MarkdownText = dynamic(() => import('../MarkdownText/MarkdownText'));\nimport DOMPurify from 'isomorphic-dompurify';\n\nexport default function SeriesComparisonItem(props) {\n const {document: doc, product, onClickCallback} = props;\n\n const handleColorLabel = doc.fields.handleColorLabel;\n\n const [selectedVariantIndex, setSelectedVariant] = useState(0);\n\n const productOptions = product.fields.options;\n const productVariants = product.fields.productVariants;\n const productVariant = productVariants[selectedVariantIndex];\n\n const productImage = productVariant && productVariant?.fields?.mainAsset || product.fields.mainAsset;\n\n const buyNowLabel = product.fields.buyNowLabel;\n const buyNowDataActionDetail = product.fields.buyNowDataActionDetail;\n\n const title = product?.fields?.shortTitle || product.fields.title;\n const comingSoonText = product?.fields?.comingSoonLabel?.fields?.text || '';\n const comingSoonLink = product?.fields?.comingSoonLink || '';\n const comingSoonLinkAriaLabel = productVariant?.fields?.comingSoonLinkAriaLabel;\n const comingSoonLinktitle = productVariant?.fields?.comingSoonLinktitle;\n const buyNowDeactivated = product?.fields?.deactivateBuyNowButton || false;\n\n const reviewAndRatingId = getReviewAndRatingId(product);\n\n useEffect(() => {\n addBVCollectionPageCallback();\n });\n\n return (\n
\n
\n {!!productImage && (\n
\n \n
\n )}\n
\n\n
\n

\n \n \n

\n\n\n {(productVariants && productVariants.length > 0) && (\n
\n
\n \n
\n
\n\n {buyNowLabel && !buyNowDeactivated &&\n onClickCallback(event)}\n sku={productVariants[selectedVariantIndex]?.fields?.sku}\n className={'event_buy_now'}\n ariaLabel={stripHtml(title)}\n title={stripHtml(title)}\n dataActionDetail={`open_ps_panel_${stripHtml(product?.fields?.title)}`} size='medium'>\n {buyNowLabel.fields.text}\n \n }\n\n {buyNowDeactivated &&\n \n {comingSoonText}\n \n }\n\n {(productVariants.some(variant => variant?.fields?.color !== undefined)) &&\n

\n {handleColorLabel.fields.text}\n

\n }\n\n
    \n {productVariants.map((variant, i) => {\n const color = variant?.fields?.color;\n if (color) {\n return (\n
  • \n \n {color.fields &&(
    \n \n
    )}\n
  • \n )\n }\n })}\n
\n
\n )}\n\n {!!productOptions && (\n \n )}\n
\n
\n );\n}\n\nSeriesComparisonItem.propTypes = {\n document: PropTypes.any,\n product: PropTypes.any,\n onClickCallback: PropTypes.func,\n};\n","/*! For license information please see 6468.125196f8e1a08051.js.LICENSE */\n(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6468],{94184:function(e,i){var n;!function(){\"use strict\";var l={}.hasOwnProperty;function o(){for(var e=[],i=0;i0&&(0,p.jsxs)(\"div\",{className:\"ob-series-comparison__product-colors\",children:[(0,p.jsxs)(\"div\",{itemScope:!0,itemType:s.f5.itemType,children:[(0,p.jsx)(\"meta\",{itemProp:y.fields.title,content:s.f5.ProductName}),(0,p.jsx)(\"div\",{\"data-bv-show\":s.f5.ratingSummary,\"data-bv-product-id\":M})]}),B&&!I&&(0,p.jsx)(b,{onClick:function(e){return w(e)},sku:null==(N=P[V])||null==(j=N.fields)?void 0:j.sku,className:\"event_buy_now\",ariaLabel:(0,d.Vt)(D),title:(0,d.Vt)(D),dataActionDetail:\"open_ps_panel_\".concat((0,d.Vt)(null==y||null==(g=y.fields)?void 0:g.title)),size:\"medium\",children:B.fields.text}),I&&(0,p.jsx)(b,{tag:\"a\",disabled:\"\"===G,href:G,size:\"medium\",target:\"_blank\",ariaLabel:q||(0,d.Vt)(\"\".concat(s.f5.comingSoonText,\"-\").concat(y.fields.title)),title:H||\"\",rel:\"noopener noreferrer\",children:E}),P.some((function(e){var i;return void 0!==(null==e||null==(i=e.fields)?void 0:i.color)}))&&(0,p.jsx)(\"h3\",{className:\"ob-series-comparison__product-subheading\",children:L.fields.text}),(0,p.jsx)(\"ul\",{className:\"ob-series-comparison__product-colors-list\",children:P.map((function(e,i){var n,l=null==e||null==(n=e.fields)?void 0:n.color;if(l)return(0,p.jsxs)(\"li\",{className:\"ob-series-comparison__product-colors-item\",children:[(0,p.jsx)(\"button\",{\"aria-label\":l.fields.name,type:s.f5.button,className:a()(\"ob-series__color ob-series__color--large-mobile event_buy_now_choose_product\",o()({},\"ob-series__color--active\",i===V)),style:(0,d.Nt)(l),\"data-action-detail\":\"\".concat(l.fields.name,\"_\").concat((0,d.Vt)(D)),onClick:function(){return A(i)},\"aria-pressed\":i===V,children:l.fields.name}),l.fields&&(0,p.jsx)(\"div\",{className:\"color-container\",children:(0,p.jsx)(\"label\",{className:i===V?\"ob-color-name-highlighted\":\"ob-color-name\",children:(0,d.CB)(l.fields.name)})})]},i)}))})]}),!!C&&(0,p.jsx)(h,{className:\"ob-series-comparison__product-options-text\",value:C})]})]})}}}]);"],"names":["self","webpackChunk_N_E","push","e","i","n","l","hasOwnProperty","o","arguments","length","s","Array","isArray","t","apply","a","call","join","exports","default","r","d","v","c","u","f","m","p","b","then","bind","loadableGenerated","webpack","_","h","Promise","all","x","N","j","g","k","document","y","product","w","onClickCallback","L","fields","handleColorLabel","S","useState","V","A","C","options","P","productVariants","T","z","mainAsset","B","buyNowLabel","D","buyNowDataActionDetail","shortTitle","title","E","comingSoonLabel","text","G","comingSoonLink","q","comingSoonLinkAriaLabel","H","comingSoonLinktitle","I","deactivateBuyNowButton","M","VP","useEffect","Aq","jsxs","className","children","jsx","image","Vt","concat","href","slug","dangerouslySetInnerHTML","__html","sanitize","itemScope","itemType","f5","itemProp","content","ProductName","ratingSummary","onClick","sku","ariaLabel","dataActionDetail","size","tag","disabled","target","comingSoonText","rel","some","color","map","name","type","button","style","Nt","CB","value"],"sourceRoot":""}