{"version":3,"sources":["webpack:///./node_modules/styled-components-breakpoint/dist/cjs/core.js","webpack:///./node_modules/styled-components-breakpoint/dist/cjs/index.js","webpack:///./src/internal/views/product-brief/ShopNowButton.tsx","webpack:///./src/internal/views/product-brief/CTALink.tsx","webpack:///./src/internal/views/product-brief/AddToCollectionButton.tsx","webpack:///./src/internal/views/common/LimitedRemainingMessage.tsx","webpack:///./src/exported/product-cta/ProductCTA.tsx","webpack:///./src/internal/views/product-brief/ProductName.tsx","webpack:///./src/internal/views/product-carousel/ProductCarousel.tsx","webpack:///./src/internal/views/common/ProductItemWrapper.tsx","webpack:///./src/internal/views/product-brief/ProductDescription.tsx","webpack:///./src/internal/views/common/ProductPriceRangeRow.tsx","webpack:///./src/internal/views/product-quickview/ProductQuickViewButton.tsx","webpack:///./src/internal/views/product-quickview/ProductQuickViewContent.tsx","webpack:///./src/internal/views/product-quickview/ProductQuickView.tsx","webpack:///./src/internal/views/product-brief/ProductBriefDetail.tsx","webpack:///./src/internal/views/product-benefit-type/ProductBenefitType.tsx","webpack:///./src/internal/views/product-brief/ProductBrief.tsx","webpack:///./src/internal/views/product-grid/CollectionItem.tsx","webpack:///./src/internal/views/product-tout/ProductTout.tsx"],"names":["Object","defineProperty","exports","value","_typeof","Symbol","iterator","obj","constructor","prototype","_templateObject","_taggedTemplateLiteral","_templateObject2","_gt","_gte","_lt","_lte","_between","_breakpoint","_map","_styledComponents","strings","raw","freeze","defineProperties","_toConsumableArray","arr","Array","isArray","i","arr2","length","from","convertPxToEm","pixels","getValueFromName","breakpoints","name","withSingleCriteria","operator","offset","arguments","undefined","_len","interpolations","_key","css","apply","concat","_len2","_key2","gte","lt","gteValue","ltValue","_len3","_key3","mapValueToCSS","values","keys","map","tag","val","createStatic","_core","defaultBreakpoints","mobile","tablet","desktop","breakpoint","_ref","_ref$theme","theme","_ref2","_ref2$theme","reduce","accum","default","StyledAnchor","space16","ShopNowButton","props","ShopNowButtonClassNames","classnames","onShopNowClick","productUrl","className","onClick","label","StyledProductDetailsLink","a","space20","CTALink","CTALinkClassNames","handleClick","event","preventDefault","onCTALinkClick","href","title","emphasis","medium","StyledButton","buttonLabel","config","initialStateLabel","onAddToCollectionClick","clickedStateLabel","this","isDisabled","addToCollectionDataTestId","addToCollectionButtonClassNames","disabled","StyledBlock","div","space24","buildMessageText","skuCountRemaining","translations","aFewLeftLabel","aFewLeftThresholdRange","onlyCountLeftLabel","onlyCountLeftThresholdLimit","onlyCountLeftNum","Number","message","replace","toString","thresholdRange","split","min","max","LimitedRemainingMessage","limitedRemainingBlockClassNames","limitedRemainingMessageClassNames","CTAButtonWrapper","StyledCTALink","space8","preorderAvailabilityLabel","preorderMessage","preorderDate","formattedDate","day","month","navigateToProduct","positionIndex","viewController","onAddToBagClick","skuId","quantity","replenishment","showSuccessLabel","appliedShowSuccessLabel","addToBag","closeModalAction","setTimeout","onAddToCollectionButtonClick","addSkuToCollection","initialize","customAddToBagLabel","addToBagButtonLabel","outOfStockButtonLabel","soldOutButtonLabel","comingSoonButtonLabel","preOrder","Active","TempOutOfStock","ComingSoon","SoldOut","FreePromo","PreOrder","buttonConfig","selectedSku","data","hasStickyButtonVariation","showToosTitle","showToosMessage","addToBagDataTestId","isDisplayedOnSticky","showPriceOnStickyAddToBag","translationsOverwrites","inventoryStatus","shades","isPreorderable","isPreorderEnabled","isShoppable","isProductShaded","addedToCartLabel","availableOn","inventoryConfig","isShowingSuccessLabel","addingToCart","disableAddToCart","addToBagButtonLabels","getAddToBagButtonLabels","isPreorderDisabled","isButtonDisabled","addToBagButtonClassNames","addToBagButtonDataTestId","CTAButtonLabel","productCTAButtonLabel","processedCtaLabel","ctaButtonLabel","priceObject","priceFormatted","addToCollectionButtonLabel","customCtaLabel","addToCollectionConfig","pressedCtaButtonLabel","findInStoreClassNames","selectedSkuId","ctaType","isCoreSite","ctaButton","ctaConfig","shopNowButtonLabel","enableNotifyMe","waitlist","ctaButtonType","getCTAType","partialParentProduct","shopNowLabel","isProductAvailable","enabledByStatus","showNotifyMeButton","enabled","includes","enableByInventoryStatus","CTAButtonWrapperClassNames","getNotifyMeCTA","getAddToCollectionButton","getAddToBagButton","getFindInStoreButton","compliance","notifyMeCTAProps","NotifyMeCTA","ctaLinkLabel","highVelocityQuantity","enableProductDetailLink","features","enableLimitedRemaining","limitedRemaining","productCTAWrapperClassNames","displayCTAButton","getCTAButton","getCTALink","getLimitedRemainingMessage","displayName","ProductNameWrapper","space12","ProductSubheader","ProductDisplayName","isRenderedOnProductFull","SublineName","ProductName","productDisplayNameClassNames","productSubDisplayNameClassNames","productSubheaderClassNames","subDisplayName","showSubDisplayName","onProductNameClick","subHeader","tabIndex","dangerouslySetInnerHTML","__html","SliderViewStyled","space4","disableFullHeight","ProductCarousel","overrideCarouselSettings","carouselSettings","defaultCarouselSettings","responsiveDefault","responsive","responsiveOverrideSettings","restSettings","restDefaultProperties","restOverrideProperties","settings","responsiveSettings","index","finalSettings","renderProductItem","product","key","productId","id","collectionItem","PRODUCT","productBriefProps","getBriefProps","item","hideProductBadge","hideProductPrice","hideProductPriceRange","hideProductRating","enableQuickView","enableMobileQuickView","hideReadReviewsLink","hideReviewsNumber","enableAutoReplenishment","enableHoverInteraction","enableShadePicker","enableSizePicker","shortDescriptionLocation","enableQuickViewShortcut","enableLearnMoreLink","autoReplenishOptions","autoReplenishToggleType","productGridHideReadReviewsLink","showProductQuantitySelector","hideProductPricePerUnit","itemType","featuredProduct","itemId","TOUT","gridItems","products","carouselItems","accumulator","push","renderGridItems","sliderSettings","items","component","children","ProductDescriptionWrapper","LearnMoreLink","ProductDescription","ProductDescriptionClassNames","learnMoreLinkClassNames","onProductDescriptionClick","learnMoreLabel","description","ProductPriceRangeRowWrapper","ProductPriceRange","ProductPriceRangeRow","productPriceRangeRowWrapperClassNames","productPriceRangeClassNames","priceRange","formattedMinPrice","formattedMaxPrice","EyeButtonWrapper","StyledButtonWrapper","EyeIconButton","button","ProductQuickViewButton","productQuickViewButtonWrapperClassNames","productQuickViewButtonClassNames","productQuickViewIconButtonClassNames","productQuickViewShortcutIconClassNames","onQuickViewButtonClick","ProductQuickViewContentWrapper","primary200","ProductQuickViewDetailsWrapper","space48","ProductSizePickerWrapper","ProductRatingWrapper","space36","ProductShortDescriptionWrapper","ProductQuantitySelectorWrapper","ProductBadgeImageWrapper","QuantitySelectorAutoReplenishWrapper","AutoReplenishWrapper","StyledProductBadge","ProductBadge","StyledPricesWrapper","FavoriteButtonWrapper","dots","ProductPricePerUnitRowWrapper","arrows","slidesToShow","slidesToScroll","appendDots","setCarouselRef","productImagesCarousel","carouselRef","setThumbnailsCarouselRef","thumbnailImagesCarousel","thumbnailsCarouselRef","getShadeSwatches","quickViewConfig","productShadePickerProps","onShadeSelect","shadeSwatches","shadeSwatcesProductQuickshop","overrides","productQuickshop","shadeSwatchesConfig","shadePickerType","type","shadePickerProps","selectedShade","separator","GRID","CAROUSEL","ProductShadePicker","diContainer","get","productShadePickerViewController","dropdownComponentConfig","componentType","ComponentTypes","PRODUCT_QUICKSHOP","shadeDropdownProps","productShadePickerComponentViewController","ProductShadePickerComponent","largeImages","productImageProps","imageSliderImagesWrapperClassNames","quickViewImageCarouselSettings","imageCarouselSettings","hideImageBadge","image","showProductBadge","src","imgPath","altText","alt","productPriceRowProps","formattedPrice","formattedOriginalPrice","ProductPriceFormatted","productPricePerUnitRowWrapperClassNames","productPricePerUnitClassNames","formattedPricePerUnit","productInstallmentPriceProps","defaultPrice","originalPrice","ProductInstallmentsPrice","ratingPropsConfig","PreorderMessage","isPreorderActive","notifyMeConfig","customNotifyMeLabel","notifyWhenAvailable","productSizePickerProps","productShortDescriptionProps","productNameProps","productQuickViewImageCarouselSettings","isImageCarouselDisabled","isThumbnailsCarouselEnabled","thumbnailsCarouselSettings","productAutoReplenishProps","productHasSizes","sizes","some","size","productHasShadesName","shade","productHasShades","imageSliderImages","getProductSliderImages","productAddToBagProps","onCloseButtonClick","enableFavorites","favorites","favoriteButtonWrapperClass","shadeSwatchesProductQuickshop","shadesConfig","shadeSwatchesEnabled","displayShadePicker","ratingsEnabled","displayInvMessage","isThumbnailsSliderVertical","vertical","thumbnailsCarouselConfig","autoReplenishmentConfig","autoReplenishmentEnabled","productQuickViewContentClassNames","quickViewContentPricesWrapperClassNames","carouselWrapperClassNames","showCarousel","displayNotifyMeLink","showThumbnails","ProductThumbnailsCarousel","sliderImages","desktopCarouselSettings","sliderItems","quickshop","getProductRating","productRatingProps","ProductSizePicker","getProductShadePickerComponent","minWidth","ProductQuantitySelector","productQuantitySelectorProps","isProductReplenishable","ProductAutoReplenish","getProductPriceRow","getProductPricePerUnit","FavoriteButton","isFavorite","handleFavoriteClick","ProductCTA","productCTAViewController","getPreorderMessage","getNotifyMeLink","getProductInstallmentsPrice","InventoryStatusMessage","Wrapper","ProductQuickViewWrapper","ProductQuickViewCloseButton","productQuickViewWrapperClassNames","productQuickViewCloseButtonClassNames","productQuickViewCloseButtonIconClassNames","productQuickViewContainerWrapperClassNames","goToProduct","goToSPP","handleShadeSelect","selectShade","handleSizeSelect","onSizeSelect","selectSize","closeProductQuickView","onProductQuickViewClose","productQuickViewController","setProduct","setSelectedSkuId","closeQuickShopAriaLabel","productUpdateQuantity","setAutoReplenishOption","setAutoReplenishSelection","toggleAutoReplenishSelection","selectedAutoReplenishOption","isAutoReplenishSelected","productQuickViewThumbnailsCarouselSettings","shortDescription","currentQuantity","isShaded","hasMultipleSizes","isSized","sizePicker","popUpCTALabel","pressedPopUpCTALabel","isReplenishable","selectedSize","invStatusProps","itemMaxQuantity","hideSizeWhenSingular","autoReplenishment","customImages","getCustomSizeImages","defaultImage","customSizeImages","images","productDisplayName","numberOfStars","productLink","onReadReviewsClick","selectedHexValue","hexVal","onSelect","options","product_quickshop","maxQuantity","onQuantitySelect","popUpCTAType","autoReplenishmentProductQuickshop","selectedOption","isSelected","isOpen","deactivateModal","onMaskClick","underlayClickExits","CartLimitReachedModal","ProductBriefDetailWrapper","space10","space6","RatingContainer","ProductShadesNumber","SizePickerContainer","StyledProductItemWrapper","ProductQuickViewShortcut","productBriefDetailWrapperClassNames","getProductRatingService","renderQuickViewButton","productQuickViewShortcutClassNames","quickViewButtonLabel","productBriefConfig","hideEmptyStars","hideStars","hideReviewsLabel","briefConfig","shadeSwatchesProductBrief","productBrief","isCarousel","shadesLabel","numShades","shadeOutput","product_grid","briefDetailsConfig","ctaProps","PRODUCT_BRIEF","maxWidth","sizePickerImages","quickViewProps","enableNumberShades","isProductQuickViewOpen","enforceShowPrice","getProductName","product_brief","getShortDescription","getProductPrice","getNumberOfShadesOutput","getShadePicker","getSizePicker","getQuickViewCTA","getQuickView","getCTA","benefitTypeClassName","ProductBenefitType","benefitTypes","benefitType","hiddenComponentsStyle","hoverComponentsStyle","InitialWrapper","maxHeight","FavoritesIconWrapper","isItemInView","styledProductImagesContainer","productBriefImageSliderImagesWrapper","productImageBadgeWrapper","navToProd","productBriefViewController","onVisible","getSliderImages","imgCommonProps","gridImageCarouselSettings","productBadgeComponent","PRODUCT_GRID","isFirstImage","renderImage","alternateImage","productBriefImageCarouselSettings","isMobileImageCarouselEnabled","isDesktopImageCarouselEnabled","onImageLoaded","imageOverride","isFeatured","productImages","enableLazyLoadGridImages","lazyload","productImageDesktop","productImageMobile","productImgCommonProps","lazyLoad","productGrid","altImgPath","prevProps","briefWrapperClassNames","isUpdatedInventorySource","useInitialRepositoryInventory","isLoaded","productBenefitTypes","productBriefClassNames","briefFavoritesIconWrapperClass","featuresConfig","skuBaseId","perlgem","SKU_BASE_ID","FavoritesIcon","lazyLoadGridItem","__ssr","renderBrief","renderBriefWrapper","defaultProps","CollectionItemType","ProductToutWrapper","ProductTout","productToutClassNames","ProductContent","nid","briefProps"],"mappings":"8MAEAA,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAGT,IAAIC,EAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,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BpF,QAAS,IACTK,gBAAgB,EAChBgF,iBAAiB,EACjBC,uBAAuB,EACvBK,mBAAmB,EACnBC,kBAAkB,EAClBC,yBAA0B,CACtByS,eAAe,GAEnB3W,yBAAyB,EACzB8Z,+BAA+B,EAC/BzV,qBAAsB,GACtBnI,iBAAiB,EACjBD,eAAe,G,ICrjBP4e,G,uDCQNC,GAAqB,IAAO1iB,IAAV,kFAAG,CAAH,wLAqBX2iB,GAAc,oBAAS,SAAC5kB,GACjC,IAAM6kB,EAAwB,YAAQ,wBAEtC,OACI,gBAACF,GAAkB,CAACtkB,UAAWwkB,GAC3B,gBAACC,GAAA,EAAc,CAACC,IAAK/kB,EAAM+kB,U,4eDlCvC,SAAYL,GACR,oBACA,cACA,8BAHJ,CAAYA,QAAkB,KAa9B,IAAa,GAAb,sIAGU,MAC6B/iB,KAAK3B,MAA5B8M,EADN,EACMA,eAAgBD,EADtB,EACsBA,GAClBmY,EAAarjB,KAAK3B,MAAMgN,kBAE9B,OAAQF,GACJ,KAAK4X,GAAmB3X,QACpB,OAAO,gBAAC,GAAY,iBAAKiY,IAC7B,KAAKN,GAAmBhW,KACpB,OAAO,gBAACkW,GAAW,CAACG,IAAKlY,IAC7B,QACI,OAAO,UAbvB,GAAoC,cAAvB,GAAc,sBAD1B,YACY,KAkBEvC,YAAc","file":"ProductCrossSell~ProductGrid.a3ddba08b39ef1d52751.bundle.js","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _templateObject = _taggedTemplateLiteral(['@media (', ': ', 'em) {\\n ', '\\n }'], ['@media (', ': ', 'em) {\\n ', '\\n }']),\n _templateObject2 = _taggedTemplateLiteral(['@media (min-width: ', 'em) and (max-width: ', 'em) {\\n ', '\\n }'], ['@media (min-width: ', 'em) and (max-width: ', 'em) {\\n ', '\\n }']);\n\nexports._gt = _gt;\nexports._gte = _gte;\nexports._lt = _lt;\nexports._lte = _lte;\nexports._between = _between;\nexports._breakpoint = _breakpoint;\nexports._map = _map;\n\nvar _styledComponents = require('styled-components');\n\nfunction _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n/* global process */\n\n\n// eslint-disable-line no-undef\n\nfunction convertPxToEm(pixels) {\n // @media is always calculated off 16px regardless of whether the root font size is the default or not\n return pixels / 16;\n}\n\nfunction getValueFromName(breakpoints, name) {\n var value = breakpoints[name];\n if (process.env.NODE_ENV !== 'production' && typeof value === 'undefined') {\n console.error('A breakpoint named \"' + name + '\" does not exist.'); // eslint-disable-line no-console\n return 0;\n }\n return value;\n}\n\nfunction withSingleCriteria(breakpoints, name, operator) {\n var offset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n\n var value = getValueFromName(breakpoints, name);\n\n // special case for 0 to avoid wrapping styles in an unnecessary @media block\n // FIXME: typings\n // if (operator === 'max-width' && value === 0) {\n // return () => '';\n // }\n\n // special case for 0 to avoid wrapping styles in an unnecessary @media block\n if (operator === 'min-width' && value === 0) {\n return function (strings) {\n for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n return _styledComponents.css.apply(undefined, [strings].concat(_toConsumableArray(interpolations)));\n };\n }\n\n return function (strings) {\n for (var _len2 = arguments.length, interpolations = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n interpolations[_key2 - 1] = arguments[_key2];\n }\n\n return (0, _styledComponents.css)(_templateObject, operator, convertPxToEm(value + offset), _styledComponents.css.apply(undefined, [strings].concat(_toConsumableArray(interpolations))));\n };\n}\n\nfunction _gt(breakpoints, name) {\n return withSingleCriteria(breakpoints, name, 'min-width', +1);\n}\n\nfunction _gte(breakpoints, name) {\n return withSingleCriteria(breakpoints, name, 'min-width');\n}\n\nfunction _lt(breakpoints, name) {\n return withSingleCriteria(breakpoints, name, 'max-width', -1);\n}\n\nfunction _lte(breakpoints, name) {\n return withSingleCriteria(breakpoints, name, 'max-width');\n}\n\nfunction _between(breakpoints, gte, lt) {\n var gteValue = getValueFromName(breakpoints, gte);\n var ltValue = getValueFromName(breakpoints, lt);\n return function (strings) {\n for (var _len3 = arguments.length, interpolations = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n interpolations[_key3 - 1] = arguments[_key3];\n }\n\n return (0, _styledComponents.css)(_templateObject2, convertPxToEm(gteValue), convertPxToEm(ltValue - 1), _styledComponents.css.apply(undefined, [strings].concat(_toConsumableArray(interpolations))));\n };\n}\n\nfunction _breakpoint(breakpoints, gte, lt) {\n if (typeof lt === 'undefined') {\n return _gte(breakpoints, gte);\n } else {\n return _between(breakpoints, gte, lt);\n }\n};\n\n// TODO: allow the operator to be customised\nfunction _map(breakpoints, value, mapValueToCSS) {\n var values = value;\n\n if (values === null || (typeof values === 'undefined' ? 'undefined' : _typeof(values)) !== 'object') {\n return mapValueToCSS(values);\n }\n\n return [\n // eslint-disable-next-line no-undefined\n mapValueToCSS(undefined)].concat(_toConsumableArray(Object.keys(values).map(function (name) {\n var tag = _gte(breakpoints, name);\n var val = values[name];\n var styles = tag([], [].concat(mapValueToCSS(val)));\n return styles;\n })));\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.map = map;\nexports.createStatic = createStatic;\n\nvar _core = require('./core');\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nvar defaultBreakpoints = {\n mobile: 0, // targeting all devices\n tablet: 737, // targeting devices that are LARGER than the iPhone 6 Plus (which is 736px in landscape mode)\n desktop: 1025 // targeting devices that are LARGER than the iPad (which is 1024px in landscape mode)\n};\n\nfunction breakpoint(gte, lt) {\n return function (strings) {\n for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n return function (_ref) {\n var _ref$theme = _ref.theme,\n theme = _ref$theme === undefined ? {} : _ref$theme;\n\n return (0, _core._breakpoint)(theme.breakpoints || defaultBreakpoints, gte, lt).apply(undefined, [strings].concat(_toConsumableArray(interpolations)));\n };\n };\n}\n\nfunction map(value, mapValueToCSS) {\n return function (_ref2) {\n var _ref2$theme = _ref2.theme,\n theme = _ref2$theme === undefined ? {} : _ref2$theme;\n\n return (0, _core._map)(theme.breakpoints || defaultBreakpoints, value, mapValueToCSS);\n };\n}\n\nfunction createStatic() {\n var breakpoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBreakpoints;\n\n return Object.keys(breakpoints).reduce(function (accum, name) {\n accum[name] = (0, _core._breakpoint)(breakpoints, name);\n return accum;\n }, {\n breakpoint: function breakpoint(gte, lt) {\n return (0, _core._breakpoint)(breakpoints, gte, lt);\n },\n map: function map(value, mapValueToCSS) {\n return (0, _core._map)(breakpoints, value, mapValueToCSS);\n }\n });\n}\n\nexports.default = breakpoint;","import * as React from 'react';\nimport * as classnames from 'classnames';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\nimport { Button } from 'elc-buttons';\nimport { ContentSpacing } from 'elc-base-theme';\n\nexport interface IShopNowButton {\n label: string;\n productUrl: string;\n onShopNowClick(productUrl: string): void;\n}\n\nconst StyledAnchor = styled(Button)`\n width: 100%;\n margin-right: ${ContentSpacing.space16};\n height: 40px;\n\n [dir='rtl'] & {\n margin-left: ${ContentSpacing.space16};\n margin-right: 0;\n }\n`;\n\nexport const ShopNowButton = observer((props: IShopNowButton) => {\n const ShopNowButtonClassNames = classnames('elc-shop-now-button', 'js-shop-now-button');\n\n const onShopNowClick = () => {\n props.onShopNowClick(props.productUrl);\n };\n\n return (\n \n {props.label}\n \n );\n});\n","import * as React from 'react';\nimport * as classnames from 'classnames';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\nimport { Subtitle3 } from 'elc-typography';\nimport { Emphasis, ContentSpacing } from 'elc-base-theme';\nimport { SecondaryTextTheme } from '../../../theme/default-theme';\nimport { MPP_PRODUCT_DETAILS } from '../../constants/DataTestIdAttributes';\n\nexport interface ICTALink {\n label: string;\n productUrl?: string;\n onCTALinkClick(): void;\n}\n\nconst StyledProductDetailsLink = styled.a`\n display: block;\n text-transform: uppercase;\n text-decoration: underline;\n cursor: pointer;\n margin-top: ${ContentSpacing.space20};\n overflow-x: hidden;\n ${SecondaryTextTheme};\n`;\n\nexport const CTALink = observer((props: ICTALink) => {\n const CTALinkClassNames = classnames('elc-cta-link', 'js-cta-link');\n\n const handleClick = (event: React.MouseEvent) => {\n event.preventDefault();\n props.onCTALinkClick();\n };\n\n return (\n \n \n {props.label}\n \n \n );\n});\n","import * as React from 'react';\nimport * as classnames from 'classnames';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\nimport { Button } from 'elc-buttons';\nimport { ContentSpacing } from 'elc-base-theme';\nimport { observable } from 'mobx';\n\nexport interface IAddToCollectionConfig {\n isDisabled?: boolean;\n addToCollectionDataTestId?: string;\n initialStateLabel?: string;\n clickedStateLabel?: string;\n}\n\nexport interface IAddToCollectionButton {\n onAddToCollectionClick(): void;\n config: IAddToCollectionConfig;\n}\n\nconst StyledButton = styled(Button)`\n margin-right: ${ContentSpacing.space16};\n height: 40px;\n\n [dir='rtl'] & {\n margin-left: ${ContentSpacing.space16};\n margin-right: 0;\n }\n`;\n\n@observer\nexport class AddToCollectionButton extends React.Component {\n @observable private buttonLabel = this.props.config.initialStateLabel;\n\n private onAddToCollectionClick = () => {\n this.props.onAddToCollectionClick();\n this.buttonLabel = this.props.config.clickedStateLabel;\n };\n\n public render() {\n const { isDisabled, addToCollectionDataTestId } = this.props.config;\n\n const addToCollectionButtonClassNames = classnames(\n 'elc-add-to-collection-button',\n 'js-add-to-collection-button',\n {\n 'elc-add-to-collection-button-disabled': isDisabled,\n 'js-add-to-collection-button-disabled': isDisabled\n }\n );\n\n return (\n \n {this.buttonLabel}\n \n );\n }\n}\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport { ITranslationsCollection, translate } from 'elc-service';\nimport { classes } from '../../utils/Classes';\nimport styled from 'styled-components';\nimport { ContentSpacing } from 'elc-base-theme';\nimport { Body2 } from 'elc-typography';\n\nexport interface ILimitedRemainingMessage {\n skuCountRemaining: number;\n translations?: ITranslationsCollection;\n}\n\nconst StyledBlock = styled.div`\n margin: ${ContentSpacing.space24} 0;\n`;\n\nconst buildMessageText = (props: ILimitedRemainingMessage) => {\n const { skuCountRemaining } = props;\n const {\n aFewLeftLabel,\n aFewLeftThresholdRange,\n onlyCountLeftLabel,\n onlyCountLeftThresholdLimit\n } = props.translations as ITranslationsCollection;\n\n const onlyCountLeftNum = Number(onlyCountLeftThresholdLimit) || 0;\n let message = '';\n\n if (onlyCountLeftNum && skuCountRemaining <= onlyCountLeftNum) {\n message = onlyCountLeftLabel.replace(/::COUNT::/gi, skuCountRemaining.toString());\n } else if (aFewLeftThresholdRange) {\n // threshold range is in the format MAX,MIN\n const thresholdRange = aFewLeftThresholdRange.split(',');\n const min = Number(thresholdRange[1]) || 0;\n const max = Number(thresholdRange[0]) || 0;\n\n if (thresholdRange.length === 2 && skuCountRemaining <= max && skuCountRemaining >= min) {\n message = aFewLeftLabel;\n }\n }\n\n return message;\n};\n\nexport const LimitedRemainingMessage: React.FunctionComponent = translate(\n ['aFewLeftLabel', 'aFewLeftThresholdRange', 'onlyCountLeftLabel', 'onlyCountLeftThresholdLimit']\n)(\n observer((props: ILimitedRemainingMessage) => {\n const limitedRemainingBlockClassNames = classes('limited-remaining-block');\n const limitedRemainingMessageClassNames = classes('limited-remaining-message');\n const message = buildMessageText(props);\n\n if (!message) {\n return null;\n }\n\n return (\n \n {message}\n \n );\n })\n);\n","import * as React from 'react';\nimport * as classnames from 'classnames';\nimport styled from 'styled-components';\nimport { ShopNowButton } from '../../internal/views/product-brief/ShopNowButton';\nimport { CTALink } from '../../internal/views/product-brief/CTALink';\nimport { observer } from 'mobx-react';\nimport { InventoryStatus } from '../../internal/constants/InventoryStatuses';\nimport { ServiceView, translate, ITranslationsCollection, config } from 'elc-service';\nimport { FIND_IN_STORE_BUTTON } from 'elc-service-view-names';\nimport {\n SHOP_NOW,\n HIDE_CTA,\n ADD_TO_COLLECTION,\n FIND_IN_STORE,\n ADD_TO_BAG,\n PREORDER\n} from '../../internal/constants/CTATypes';\nimport { ContentSpacing } from 'elc-base-theme';\nimport { Sku } from '../../internal/domain/entities/Sku';\nimport { IAsset } from '../../internal/domain/entities/Asset';\nimport { ProductCTAViewController } from '../../internal/controllers/ProductCTAViewController';\nimport { Button } from 'elc-buttons';\nimport { ISizePickerImages, IShortDescriptionConfig } from '../../internal/interfaces/IProdcat';\nimport { AddToCollectionButton } from '../../internal/views/product-brief/AddToCollectionButton';\nimport { ITranslationsOverwrites } from '../product-grid-wrapper/ProductGridWrapper';\nimport { LimitedRemainingMessage } from '../../internal/views/common/LimitedRemainingMessage';\nimport { IFeatures } from '../../internal/constants/Features';\nimport {\n NotifyMeCTA,\n IProductNotifyMeCTA\n} from '../../internal/views/product-notify-me/NotifyMeCTA';\nimport { formatDateFromString } from '../../internal/utils/DateFormat';\nimport {\n ADD_TO_BAG_BUTTON,\n PREORDER_BUTTON,\n PREORDER_BUTTON_DISABLED\n} from '../../internal/constants/DataTestIdAttributes';\nimport { classes } from '../../internal/utils/Classes';\n\nexport interface IMapping {\n [key: string]: string;\n}\n\nexport interface IStickyButton {\n isProductShaded?: boolean;\n}\n\nexport interface IWaitlist {\n enabled?: boolean;\n enabledByStatus?: string[];\n}\n\nexport interface IProductCTAConfig {\n selectedSku?: Sku;\n skuId: string;\n quantity?: number;\n replenishment?: number;\n enableProductDetailLink?: boolean;\n enableNotifyMe?: boolean;\n waitlist?: IWaitlist;\n ctaType?: string;\n enableQuickView?: boolean;\n enableMobileQuickView?: boolean;\n enableQuickViewShortcut?: boolean;\n hideProductRating?: boolean;\n productGridHideReadReviewsLink?: boolean;\n enableLearnMoreLink?: boolean;\n compliance?: { gdpr: boolean };\n showToosTitle?: boolean;\n showToosMessage?: boolean;\n showSuccessLabel?: boolean;\n hasStickyButtonVariation?: boolean;\n disabled?: boolean;\n closeModalAction?(): void;\n largeImages?: IAsset[];\n autoReplenishOptions: number[];\n customAddToBagLabel?: string;\n className?: string;\n addToBagWrapperClassName?: string;\n addToBagDataTestId?: string;\n addToCollectionDataTestId?: string;\n isUpdatedInventorySource?: boolean;\n sizePickerImages?: ISizePickerImages;\n hideProductPricePerUnit?: boolean;\n showProductQuantitySelector?: boolean;\n shortDescriptionLocation?: IShortDescriptionConfig;\n showPriceOnStickyAddToBag?: boolean;\n isDisplayedOnSticky?: boolean;\n enableAutoReplenishment?: boolean;\n translationsOverwrites?: ITranslationsOverwrites;\n positionIndex?: number;\n features?: IFeatures;\n isCoreSite?: boolean;\n}\n\nexport interface IProductCTA {\n config: IProductCTAConfig;\n translations?: ITranslationsCollection;\n viewController: ProductCTAViewController;\n}\n\nexport interface IProductCTAProps {\n config: IProductCTAConfig;\n translations?: ITranslationsCollection;\n}\n\nexport interface IProductAddToBag {\n config: {\n skuId: string;\n inventoryStatus: string;\n customAddToBagLabel?: string;\n addToBagDataTestId?: string;\n disabled?: boolean;\n quantity?: number;\n showSuccessLabel?: boolean;\n replenishment?: number;\n showToosTitle?: boolean;\n showToosMessage?: boolean;\n isProductShaded?: boolean;\n hasStickyButtonVariation?: boolean;\n showPriceOnStickyAddToBag?: boolean;\n };\n className?: string;\n addToBagWrapperClassName?: string;\n translations?: ITranslationsCollection;\n closeModalAction?(): void;\n}\n\nexport interface IProductFullAddToBagButtonConfig {\n showToosTitle?: boolean;\n showToosMessage?: boolean;\n enableNotifyMe?: boolean;\n waitlist?: IWaitlist;\n complianceGdpr?: boolean;\n}\n\nexport interface IProductFullAddToBagButton {\n isUpdatedInventorySource?: boolean;\n config: IProductFullAddToBagButtonConfig;\n quantity?: number;\n showSuccessLabel?: boolean;\n translations?: ITranslationsCollection;\n className?: string;\n customAddToBagLabel?: string;\n disabled?: boolean;\n addToBagWrapperClassName?: string;\n autoReplenishOptions: number[];\n selectedSku: Sku;\n}\n\nconst CTAButtonWrapper = styled.div`\n width: 100%;\n`;\n\nconst StyledCTALink = styled(CTALink)`\n margin-top: ${ContentSpacing.space8};\n`;\n\nconst StyledButton = styled(Button)`\n width: 100%;\n border: none;\n padding: 0 ${ContentSpacing.space16};\n overflow-x: hidden;\n cursor: pointer;\n`;\n\n@config(['waitlist', 'features', 'isCoreSite'])\n@translate([\n 'shopNowButtonLabel',\n 'ctaLinkLabel',\n 'addToBagButtonLabel',\n 'outOfStockButtonLabel',\n 'soldOutButtonLabel',\n 'comingSoonButtonLabel',\n 'addedToCartLabel',\n 'availableOn',\n 'preOrder'\n])\n@observer\nclass ProductCTA extends React.Component {\n public static displayName: string;\n\n constructor(props: IProductCTA) {\n super(props);\n props.viewController.initialize(props.config);\n }\n\n public componentWillReceiveProps(props: IProductCTA) {\n props.viewController.initialize(props.config);\n }\n\n private preorderAvailabilityLabel = (preorderMessage: string, preorderDate: string) => {\n const formattedDate = formatDateFromString(preorderDate);\n const { day, month } = formattedDate;\n\n return preorderMessage.replace(/::PREORDER_DATE::/gi, `${day}/${month}`);\n };\n\n private navigateToProduct = async () => {\n const { positionIndex } = this.props.config;\n await this.props.viewController.navigateToProduct(positionIndex as number);\n };\n\n private onAddToBagClick = async () => {\n const { skuId, quantity, replenishment, showSuccessLabel } = this.props.config;\n const appliedShowSuccessLabel = showSuccessLabel !== undefined ? showSuccessLabel : true;\n\n await this.props.viewController.addToBag(\n skuId,\n quantity,\n appliedShowSuccessLabel,\n replenishment\n );\n\n if (this.props.config.closeModalAction) {\n setTimeout(this.props.config.closeModalAction, 500);\n }\n };\n\n private onAddToCollectionButtonClick = async () => {\n const { quantity, skuId } = this.props.config;\n\n await this.props.viewController.addSkuToCollection(skuId, quantity);\n };\n\n private getAddToBagButtonLabels(): IMapping {\n const { customAddToBagLabel } = this.props.config;\n const {\n addToBagButtonLabel,\n outOfStockButtonLabel,\n soldOutButtonLabel,\n comingSoonButtonLabel,\n preOrder\n } = this.props.translations as ITranslationsCollection;\n\n return {\n [InventoryStatus.Active]: customAddToBagLabel\n ? customAddToBagLabel\n : addToBagButtonLabel,\n [InventoryStatus.TempOutOfStock]: outOfStockButtonLabel,\n [InventoryStatus.ComingSoon]: comingSoonButtonLabel,\n [InventoryStatus.SoldOut]: soldOutButtonLabel,\n [InventoryStatus.FreePromo]: customAddToBagLabel\n ? customAddToBagLabel\n : addToBagButtonLabel,\n [InventoryStatus.PreOrder]: preOrder\n };\n }\n\n private getAddToBagButton() {\n const { config: buttonConfig, viewController, translations } = this.props;\n const selectedSku: Sku = buttonConfig.selectedSku || viewController.data.selectedSku;\n\n const {\n quantity,\n replenishment,\n hasStickyButtonVariation,\n showToosTitle,\n showToosMessage,\n showSuccessLabel,\n customAddToBagLabel,\n disabled,\n addToBagDataTestId,\n isDisplayedOnSticky,\n showPriceOnStickyAddToBag,\n translationsOverwrites,\n skuId\n } = buttonConfig;\n\n const {\n inventoryStatus,\n shades,\n preorderDate,\n isPreorderable,\n isPreorderEnabled,\n isShoppable\n } = selectedSku;\n\n const isProductShaded = shades.length > 0;\n\n const { addedToCartLabel, availableOn } = translations as ITranslationsCollection;\n\n const inventoryConfig = {\n skuId,\n inventoryStatus,\n quantity,\n replenishment,\n isProductShaded,\n hasStickyButtonVariation,\n showToosTitle,\n showToosMessage,\n showSuccessLabel,\n customAddToBagLabel,\n disabled,\n addToBagDataTestId\n };\n\n const { isShowingSuccessLabel, addingToCart, disableAddToCart } = viewController.data;\n\n const addToBagButtonLabels = this.getAddToBagButtonLabels();\n const isPreorderDisabled = isPreorderEnabled && !isShoppable;\n const isButtonDisabled =\n !selectedSku.isShoppable || addingToCart || disableAddToCart || isPreorderDisabled;\n const isDisabled = disabled || isButtonDisabled;\n\n const addToBagButtonClassNames = classnames({\n 'elc-add-to-bag-button': true,\n 'js-add-to-bag-button': true,\n 'elc-add-to-bag-button-disabled': isDisabled,\n 'js-add-to-bag-button-disabled': isDisabled,\n 'elc-preorder-button': isPreorderable,\n 'js-preorder-button': isPreorderable,\n 'elc-preorder-button-disabled': isPreorderDisabled,\n 'js-preorder-button-disabled': isPreorderDisabled\n });\n\n const addToBagButtonDataTestId =\n addToBagDataTestId ||\n (isPreorderDisabled && PREORDER_BUTTON_DISABLED) ||\n (isPreorderable && PREORDER_BUTTON) ||\n ADD_TO_BAG_BUTTON;\n\n const CTAButtonLabel = isPreorderDisabled\n ? this.preorderAvailabilityLabel(availableOn, preorderDate)\n : addToBagButtonLabels[inventoryStatus];\n const productCTAButtonLabel = isShowingSuccessLabel ? addedToCartLabel : CTAButtonLabel;\n\n let processedCtaLabel =\n translationsOverwrites && translationsOverwrites.ctaButtonLabel\n ? translationsOverwrites.ctaButtonLabel\n : productCTAButtonLabel;\n if (isDisplayedOnSticky && showPriceOnStickyAddToBag && !isPreorderDisabled) {\n const priceObject = selectedSku.priceObject;\n if (!!priceObject) {\n processedCtaLabel = `${processedCtaLabel} - ${priceObject.priceFormatted}`;\n }\n }\n\n return (\n
\n \n {processedCtaLabel}\n \n
\n );\n }\n\n private getAddToCollectionButton() {\n const selectedSku = this.props.viewController.data.selectedSku;\n const {\n disabled,\n addToCollectionDataTestId,\n translationsOverwrites,\n className\n } = this.props.config;\n\n const { inventoryStatus } = selectedSku;\n\n const {\n addToCollectionButtonLabel,\n outOfStockButtonLabel,\n soldOutButtonLabel,\n comingSoonButtonLabel\n } = this.props.translations as ITranslationsCollection;\n\n const customCtaLabel = translationsOverwrites && translationsOverwrites.ctaButtonLabel;\n const addToCollectionButtonLabels: IMapping = {\n [InventoryStatus.Active]: customCtaLabel ? customCtaLabel : addToCollectionButtonLabel,\n [InventoryStatus.TempOutOfStock]: outOfStockButtonLabel,\n [InventoryStatus.ComingSoon]: comingSoonButtonLabel,\n [InventoryStatus.SoldOut]: soldOutButtonLabel,\n [InventoryStatus.FreePromo]: customCtaLabel\n ? customCtaLabel\n : addToCollectionButtonLabel\n };\n const initialStateLabel = addToCollectionButtonLabels[inventoryStatus];\n\n const isButtonDisabled = !selectedSku.isShoppable;\n const isDisabled = disabled || isButtonDisabled;\n\n const clickedStateLabel =\n translationsOverwrites && translationsOverwrites.pressedCtaButtonLabel;\n\n const addToCollectionConfig = {\n isDisabled,\n addToCollectionDataTestId,\n initialStateLabel,\n clickedStateLabel\n };\n\n return (\n
\n \n
\n );\n }\n\n private getFindInStoreButton() {\n const findInStoreClassNames = classes('find-in-store-button');\n const selectedSkuId = this.props.config.skuId;\n\n return (\n
\n \n
\n );\n }\n\n private getCTAType() {\n const { ctaType, isCoreSite } = this.props.config;\n\n return isCoreSite &&\n (ctaType === ADD_TO_COLLECTION ||\n ctaType === ADD_TO_BAG ||\n typeof ctaType === 'undefined')\n ? FIND_IN_STORE\n : ctaType;\n }\n\n private getCTAButton() {\n const { config: ctaConfig, translations, viewController } = this.props;\n const { shopNowButtonLabel } = translations as ITranslationsCollection;\n const { enableNotifyMe, waitlist, translationsOverwrites } = ctaConfig;\n const selectedSku = ctaConfig.selectedSku || viewController.data.selectedSku;\n\n const ctaButtonType = this.getCTAType();\n const { inventoryStatus, partialParentProduct } = selectedSku;\n\n const { productUrl } = partialParentProduct;\n\n const customCtaLabel = translationsOverwrites && translationsOverwrites.ctaButtonLabel;\n\n const shopNowLabel = customCtaLabel ? customCtaLabel : shopNowButtonLabel;\n\n const isProductAvailable = inventoryStatus === InventoryStatus.Active;\n const enabledByStatus =\n waitlist && waitlist.enabledByStatus ? waitlist.enabledByStatus : [];\n\n const notifyMeEnabled = enableNotifyMe || (waitlist && waitlist.enabled);\n\n const enableByInventoryStatus = () => {\n return (\n enabledByStatus.includes(inventoryStatus) ||\n (enabledByStatus.length === 0 && inventoryStatus !== InventoryStatus.SoldOut)\n );\n };\n\n const showNotifyMeButton =\n notifyMeEnabled && !isProductAvailable && enableByInventoryStatus();\n\n const CTAButtonWrapperClassNames = classnames({\n 'elc-product-cta-button-wrapper': true,\n 'js-product-cta-button-wrapper': true\n });\n\n let ctaButton: JSX.Element | null;\n\n switch (ctaButtonType) {\n case HIDE_CTA:\n ctaButton = null;\n break;\n case SHOP_NOW:\n ctaButton = (\n \n );\n break;\n case ADD_TO_COLLECTION:\n ctaButton = showNotifyMeButton\n ? this.getNotifyMeCTA()\n : this.getAddToCollectionButton();\n break;\n case PREORDER:\n ctaButton = this.getAddToBagButton();\n break;\n case FIND_IN_STORE:\n ctaButton = this.getFindInStoreButton();\n break;\n default:\n // ADD_TO_BAG\n // if this gets refactored and the default will no longer come from here, make sure to update the inv status conditions across all files\n ctaButton = showNotifyMeButton ? this.getNotifyMeCTA() : this.getAddToBagButton();\n }\n\n return (\n {ctaButton}\n );\n }\n\n private getNotifyMeCTA() {\n const { enableNotifyMe, waitlist, compliance } = this.props.config;\n const selectedSku =\n this.props.config.selectedSku || this.props.viewController.data.selectedSku;\n\n const notifyMeCTAProps: IProductNotifyMeCTA = {\n selectedSku: selectedSku,\n config: {\n enableNotifyMe,\n waitlist,\n compliance\n }\n };\n\n return ;\n }\n\n private getCTALink() {\n const selectedSku = this.props.viewController.data.selectedSku;\n const { translations } = this.props;\n\n const { ctaLinkLabel } = translations as ITranslationsCollection;\n\n const { productUrl } = selectedSku.partialParentProduct;\n\n return (\n \n );\n }\n\n private getLimitedRemainingMessage() {\n const { highVelocityQuantity = 0 } = this.props.viewController.data.selectedSku;\n\n return (\n highVelocityQuantity > 0 && (\n \n )\n );\n }\n\n public render() {\n const { enableProductDetailLink, ctaType, features } = this.props.config;\n const enableLimitedRemaining =\n features && features.limitedRemaining && features.limitedRemaining.enabled;\n\n const productCTAWrapperClassNames = classnames({\n 'elc-product-cta-wrapper': true,\n 'js-product-cta-wrapper': true\n });\n\n const displayCTAButton = ctaType !== HIDE_CTA;\n\n return (\n
\n {displayCTAButton && this.getCTAButton()}\n {enableProductDetailLink && this.getCTALink()}\n {enableLimitedRemaining && this.getLimitedRemainingMessage()}\n
\n );\n }\n}\n\nProductCTA.displayName = 'ProductCTA';\n\nexport default ProductCTA;\n","import * as classnames from 'classnames';\nimport * as React from 'react';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\nimport { classes } from '../../utils/Classes';\nimport { Heading4, Heading5, heading3Theme } from 'elc-typography';\nimport { breakpoint, ContentSpacing } from 'elc-base-theme';\nimport { ProductDisplayNameTheme, ProductSublineNameTheme } from '../../../theme/default-theme';\nimport { PRODUCT_BRIEF_NAME } from '../../constants/DataTestIdAttributes';\n\nexport interface IConfig {\n productId: string;\n}\n\nexport interface IProductName {\n className?: string;\n productUrl?: string;\n displayName: string;\n subDisplayName?: string;\n showSubDisplayName?: boolean;\n subHeader?: string;\n isRenderedOnProductFull?: boolean;\n onProductNameClick?(): void;\n}\n\nconst ProductNameWrapper = styled.div`\n margin: ${ContentSpacing.space12} 0;\n ${breakpoint('desktop')`\n margin: ${ContentSpacing.space12} 0 0;\n `};\n`;\n\nconst ProductSubheader = styled(Heading4)`\n ${ProductSublineNameTheme}\n margin: ${ContentSpacing.space8} 0;\n`;\n\nconst ProductDisplayName = styled.a`\n ${heading3Theme}\n ${ProductDisplayNameTheme}\n margin: ${ContentSpacing.space16} 0;\n ${breakpoint('desktop')`\n text-align: ${(props: IProductName) => (props.isRenderedOnProductFull ? 'left' : 'center')};\n `};\n\n &:hover {\n text-decoration: underline;\n }\n`;\n\nconst SublineName = styled(Heading5)`\n ${ProductSublineNameTheme}\n margin: ${ContentSpacing.space8} 0;\n ${breakpoint('desktop')`\n text-align: ${(props: IProductName) => (props.isRenderedOnProductFull ? 'left' : 'center')};\n `};\n`;\n\nexport const ProductName = observer((props: IProductName) => {\n const productDisplayNameClassNames = classnames(\n 'elc-product-display-name',\n 'js-product-display-name'\n );\n\n const productSubDisplayNameClassNames = classnames(\n 'elc-product-sub-display-name',\n 'js-product-sub-display-name'\n );\n\n const productSubheaderClassNames = classes('product-subheader');\n\n const {\n subDisplayName,\n showSubDisplayName,\n displayName,\n onProductNameClick,\n subHeader\n } = props;\n\n const handleClick = (event: React.MouseEvent) => {\n event.preventDefault();\n if (onProductNameClick) {\n onProductNameClick();\n }\n };\n\n return (\n \n \n {subHeader && (\n \n )}\n {showSubDisplayName && subDisplayName && (\n \n )}\n \n );\n});\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport { SliderView, ISliderSettings } from 'elc-slider';\nimport { Container } from 'elc-grid';\nimport styled from 'styled-components';\nimport { ContentSpacing } from 'elc-base-theme';\nimport {\n IContentItem,\n ITranslationsOverwrites\n} from '../../../exported/product-grid-wrapper/ProductGridWrapper';\nimport { Product } from '../../domain/entities/Product';\nimport { GridItem } from '../../domain/entities/GridItem';\nimport { DEFAULT_CAROUSEL_SETTINGS, gridItemType } from '../../constants/ProductGrid';\nimport { CollectionItem, CollectionItemType } from '../product-grid/CollectionItem';\nimport { IShortDescriptionConfig } from '../../interfaces/IProdcat';\nimport { TOGGLE_TYPE } from '../../constants/AutoReplenish';\n\nexport interface IProductCarousel {\n config: {\n products?: Product[];\n gridItems?: GridItem[];\n content?: IContentItem[];\n carouselSettings?: ISliderSettings;\n defaultCarouselSettings?: ISliderSettings;\n hideProductPrice?: boolean;\n hideProductPriceRange?: boolean;\n hideProductBadge?: boolean;\n showSubDisplayName?: boolean;\n hideProductRating?: boolean;\n toutWidth?: number;\n toutHeight?: number;\n ctaType?: string;\n enableNotifyMe?: boolean;\n enableQuickView?: boolean;\n enableMobileQuickView?: boolean;\n hideReadReviewsLink?: boolean;\n enableHoverInteraction?: boolean;\n hideReviewsNumber?: boolean;\n enableAutoReplenishment?: boolean;\n enableShadePicker?: boolean;\n enableSizePicker?: boolean;\n shortDescriptionLocation?: IShortDescriptionConfig;\n enableProductDetailLink?: boolean;\n enableQuickViewShortcut?: boolean;\n enableLearnMoreLink?: boolean;\n autoReplenishOptions: number[];\n autoReplenishToggleType?: TOGGLE_TYPE;\n showToosTitle?: boolean;\n showToosMessage?: boolean;\n showProductQuantitySelector?: boolean;\n hideProductPricePerUnit?: boolean;\n translationsOverwrites?: ITranslationsOverwrites;\n };\n className?: string;\n disableFullHeight?: boolean;\n}\n\nconst SliderViewStyled = styled.div`\n margin-bottom: ${ContentSpacing.space20};\n\n .slick-track {\n margin-left: 0;\n padding: ${ContentSpacing.space4} 0;\n display: flex;\n }\n\n .slick-slide {\n & > div {\n height: ${props => (props.theme.disableFullHeight ? 'auto' : '100%')};\n }\n\n height: auto;\n float: none;\n margin: 0 ${ContentSpacing.space4};\n }\n\n [dir='rtl'] .slick-track {\n margin-right: 0;\n margin-left: auto;\n }\n\n .elc-slider-arrow-wrapper {\n &::before {\n content: none;\n }\n &.slick-prev {\n left: -15px;\n }\n\n [dir='rtl'] &.slick-prev {\n left: 0;\n right: -15px;\n }\n }\n`;\n\n@observer\nexport class ProductCarousel extends React.Component {\n public static displayName: string;\n\n public overrideCarouselSettings = () => {\n if (!this.props.config.carouselSettings) {\n return this.props.config.defaultCarouselSettings || DEFAULT_CAROUSEL_SETTINGS;\n }\n\n const {\n responsive: responsiveDefault,\n ...restDefaultProperties\n } = DEFAULT_CAROUSEL_SETTINGS;\n\n const {\n responsive: responsiveOverrideSettings,\n ...restOverrideProperties\n } = this.props.config.carouselSettings;\n\n const restSettings = {\n ...restDefaultProperties,\n ...restOverrideProperties\n };\n\n if (!responsiveOverrideSettings) {\n const settings = {\n ...restSettings,\n responsive: responsiveDefault\n };\n\n return { ...settings };\n }\n\n const responsiveSettings = responsiveDefault.map((responsive, index) => ({\n ...responsive,\n ...responsiveOverrideSettings[index],\n settings: {\n ...responsive.settings,\n ...responsiveOverrideSettings[index].settings\n }\n }));\n\n const finalSettings = {\n ...restSettings,\n responsive: responsiveSettings\n };\n\n return { ...finalSettings };\n };\n\n private getBriefProps(item: Product | GridItem) {\n const {\n hideProductBadge,\n showSubDisplayName,\n hideProductPrice,\n hideProductPriceRange,\n hideProductRating,\n ctaType,\n enableNotifyMe,\n enableQuickView,\n enableMobileQuickView,\n hideReadReviewsLink,\n hideReviewsNumber,\n enableAutoReplenishment,\n enableHoverInteraction,\n enableShadePicker,\n enableSizePicker,\n shortDescriptionLocation,\n enableProductDetailLink,\n enableQuickViewShortcut,\n enableLearnMoreLink,\n autoReplenishOptions,\n autoReplenishToggleType,\n showToosTitle,\n showToosMessage,\n showProductQuantitySelector,\n hideProductPricePerUnit,\n translationsOverwrites\n } = this.props.config;\n\n const briefProps = {\n hideProductBadge,\n showSubDisplayName,\n hideProductPrice,\n hideProductPriceRange,\n hideProductRating,\n ctaType,\n enableNotifyMe,\n enableQuickView,\n enableMobileQuickView,\n productGridHideReadReviewsLink: hideReadReviewsLink,\n hideReviewsNumber,\n enableHoverInteraction,\n enableShadePicker,\n enableSizePicker,\n enableAutoReplenishment,\n shortDescriptionLocation,\n enableProductDetailLink,\n enableQuickViewShortcut,\n enableLearnMoreLink,\n autoReplenishOptions,\n autoReplenishToggleType,\n showProductQuantitySelector,\n showToosTitle,\n showToosMessage,\n hideProductPricePerUnit,\n translationsOverwrites\n };\n\n return briefProps;\n }\n\n private renderProductItem = (product: Product) =>\n product && (\n \n );\n\n private renderGridItems(item: GridItem) {\n switch (item.itemType) {\n case gridItemType.product:\n case gridItemType.featuredProduct:\n return item.product ? (\n \n ) : (\n <>\n );\n default:\n return (\n \n );\n }\n }\n\n public render() {\n const carouselSettings = this.overrideCarouselSettings();\n const {\n disableFullHeight,\n config: { gridItems, products }\n } = this.props;\n\n let carouselItems: React.ReactElement[] = [];\n\n if (gridItems && gridItems.length > 0) {\n carouselItems = gridItems.reduce((accumulator: React.ReactElement[], item) => {\n if (item.itemType !== gridItemType.featuredProduct) {\n accumulator.push(this.renderGridItems(item));\n }\n\n return accumulator;\n }, []);\n } else if (products && products.length > 0) {\n carouselItems = products.map(product => this.renderProductItem(product));\n }\n\n return (\n carouselItems.length > 0 && (\n \n \n \n \n \n )\n );\n }\n}\n\nProductCarousel.displayName = 'ProductCarousel';\n","import * as React from 'react';\n\ninterface IProductItemWrapper {\n component: string;\n children: JSX.Element;\n}\n\nexport const ProductItemWrapper = (props: IProductItemWrapper) => (\n
\n {props.children}\n
\n);\n","import * as React from 'react';\nimport * as classnames from 'classnames';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\nimport { ContentSpacing } from 'elc-base-theme';\nimport { ProductDescriptionTheme } from '../../../theme/default-theme';\nimport { subtitle2Theme } from 'elc-typography';\nimport { ITranslationsCollection, translate } from 'elc-service';\nimport {\n PRODUCT_BRIEF_DESCRIPTION,\n PRODUCT_LEARN_MORE_LINK\n} from '../../constants/DataTestIdAttributes';\n\nexport interface IProductDescription {\n description: string;\n productUrl: string;\n onProductDescriptionClick(): void;\n enableLearnMoreLink?: boolean;\n translations?: ITranslationsCollection;\n}\n\nconst ProductDescriptionWrapper = styled.a`\n ${subtitle2Theme}\n ${ProductDescriptionTheme}\n margin: ${ContentSpacing.space12} 0;\n cursor: pointer;\n`;\n\nconst LearnMoreLink = styled.a`\n ${subtitle2Theme}\n ${ProductDescriptionTheme}\n margin-left: ${ContentSpacing.space4};\n text-decoration: underline;\n\n [dir='rtl'] & {\n margin-left: 0;\n margin-right: ${ContentSpacing.space4};\n }\n`;\n\nexport const ProductDescription = translate(['learnMoreLabel'])(\n observer((props: IProductDescription) => {\n const ProductDescriptionClassNames = classnames(\n 'elc-product-description-wrapper',\n 'js-product-description-wrapper'\n );\n\n const learnMoreLinkClassNames = classnames(\n 'elc-product-learn-more-link',\n 'js-product-learn-more-link'\n );\n\n const handleClick = (event: React.MouseEvent) => {\n event.preventDefault();\n props.onProductDescriptionClick();\n };\n\n const { learnMoreLabel } = props.translations as ITranslationsCollection;\n\n return (\n <>\n \n {props.enableLearnMoreLink && (\n \n {learnMoreLabel}\n \n )}\n \n );\n })\n);\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\nimport * as classnames from 'classnames';\nimport { ContentSpacing, breakpoint } from 'elc-base-theme';\nimport { Subtitle1 } from 'elc-typography';\nimport { ProductPriceTheme } from '../../../theme/default-theme';\n\nexport interface IProductPriceRangeRowWrapper {\n className?: string;\n}\n\nexport interface IProductPriceRangeRow extends IProductPriceRangeRowWrapper {\n priceRange: {\n formattedMinPrice: string;\n formattedMaxPrice: string;\n };\n}\n\nconst ProductPriceRangeRowWrapper = styled.div`\n margin: ${ContentSpacing.space16} 0;\n ${breakpoint('desktop')`\n margin: 0;\n `};\n`;\n\nconst ProductPriceRange = styled(Subtitle1)`\n ${ProductPriceTheme};\n`;\n\nexport const ProductPriceRangeRow = observer((props: IProductPriceRangeRow) => {\n const productPriceRangeRowWrapperClassNames = classnames(\n 'elc-product-price-range-row-wrapper',\n 'js-product-price-range-row-wrapper'\n );\n\n const productPriceRangeClassNames = classnames(\n 'elc-product-price-range',\n 'js-product-price-range'\n );\n\n const { priceRange } = props;\n\n return (\n \n \n {priceRange.formattedMinPrice} - {priceRange.formattedMaxPrice}\n \n \n );\n});\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\nimport breakpoint from 'styled-components-breakpoint';\nimport { Button } from 'elc-buttons';\nimport { EyeIcon } from 'elc-icons';\nimport { ContentSpacing } from 'elc-base-theme';\nimport { classes } from '../../utils/Classes';\n\nexport interface IProductQuickViewButton {\n label: string;\n onQuickViewButtonClick?(): void;\n enableQuickViewShortcut?: boolean;\n}\n\nconst StyledButton = styled(Button)`\n display: none;\n ${breakpoint('desktop')`\n width: 100%;\n display: inline-block;\n margin-right: ${ContentSpacing.space16};\n height: 40px;\n border: none;\n padding: 0 15px;\n cursor: pointer;\n\n [dir='rtl'] & {\n margin-left: ${ContentSpacing.space16};\n margin-right: 0;\n }\n `};\n`;\n\nconst EyeButtonWrapper = styled.div`\n text-align: right;\n\n [dir='rtl'] & {\n text-align: left;\n }\n`;\n\nconst StyledButtonWrapper = styled.div`\n min-height: 20px;\n`;\n\nconst EyeIconButton = styled.button`\n display: inline-block;\n padding: 0;\n margin: auto;\n`;\n\nexport const ProductQuickViewButton = observer((props: IProductQuickViewButton) => {\n const productQuickViewButtonWrapperClassNames = classes('product-quick-view-button-wrapper');\n const productQuickViewButtonClassNames = classes('product-quick-view-button');\n const productQuickViewIconButtonClassNames = classes('product-quick-view-icon-wrapper');\n const productQuickViewShortcutIconClassNames = classes('product-quick-view-shortcut-icon');\n\n if (props.enableQuickViewShortcut) {\n return (\n \n \n \n \n \n );\n }\n\n return (\n \n \n {props.label}\n \n \n );\n});\n","import * as React from 'react';\nimport { observable } from 'mobx';\nimport { observer } from 'mobx-react';\nimport Slider from 'react-slick';\nimport styled from 'styled-components';\nimport { PRODUCT_RATING_WRAPPER, PRODUCT_RATING } from 'elc-service-view-names';\nimport { ProductImages, IProductImages } from 'elc-images';\nimport { PriceFormatted } from 'elc-formatters';\nimport { SliderView } from 'elc-slider';\nimport { Desktop } from 'elc-layouts';\nimport { ServiceView, config, ITranslationsCollection } from 'elc-service';\nimport { ContentSpacing, Colors, Breakpoints, breakpoint } from 'elc-base-theme';\nimport { diContainer, serviceNames } from '../../../service-setup/diContainer';\nimport { IProductRatingConfig } from '../../../exported/product-rating/ProductRatingWrapper';\nimport {\n ProductQuantitySelector,\n IProductQuantitySelector\n} from '../../../exported/product-quantity-selector/ProductQuantitySelector';\nimport ProductCTA, {\n IProductAddToBag,\n IProductCTAConfig\n} from '../../../exported/product-cta/ProductCTA';\nimport ProductShadePicker from '../../../exported/product-shade-picker/ProductShadePicker';\nimport { IAsset } from '../../domain/entities/Asset';\nimport { Sku } from '../../domain/entities/Sku';\nimport {\n IShadeSwatches,\n IShadePickerDropdown,\n IShadePickerConfig\n} from '../../interfaces/IShadePicker';\nimport {\n IImageCarouselSettings,\n ICarouselSettings,\n IShortDescriptionConfig\n} from '../../interfaces/IProdcat';\nimport { ProductPriceFormatted } from '../common/ProductPriceFormatted';\nimport { ProductShadePickerComponent } from '../common/ProductShadePickerComponent';\nimport { ProductItemWrapper } from '../common/ProductItemWrapper';\nimport {\n DEFAULT_IMAGE_CAROUSEL_SETTINGS,\n DEFAULT_THUMBNAILS_CAROUSEL_SETTINGS\n} from '../../constants/ImageThumbnailCarouselSettings';\nimport { SHADE_PICKER_TYPE } from '../../constants/ShadePickerType';\nimport { ComponentTypes } from '../../constants/ComponentTypes';\nimport { InventoryStatusMessage } from '../common/InventoryStatusMessage';\nimport { ADD_TO_BAG, LINK } from '../../constants/CTATypes';\nimport { TOGGLE_TYPE } from '../../constants/AutoReplenish';\nimport { IFeatures } from '../../constants/Features';\nimport { StyledSliderSection } from '../product-full/ProductFullCarousel';\nimport ProductInstallmentsPrice, {\n IProductInstallmentsPrice\n} from '../product-installments-price/ProductInstallmentsPrice';\nimport { ProductThumbnailsCarousel } from '../product-full/ProductThumbnailsCarousel';\nimport { FavoriteButton } from '../product-favorites/FavoriteButton';\nimport { ProductName, IProductName } from '../product-brief/ProductName';\nimport { ProductDescription, IProductDescription } from '../product-brief/ProductDescription';\nimport { ProductSizePicker, ISizePicker } from '../product-size-picker/ProductSizePicker';\nimport { ProductBadge, IProductBadge } from '../product-badge/ProductBadge';\nimport {\n ProductAutoReplenish,\n IProductAutoReplenish\n} from '../product-auto-replenish/ProductAutoReplenish';\nimport { classes } from '../../utils/Classes';\nimport { PreorderMessage } from '../common/PreorderMessage';\nimport { IProductNotifyMeCTA, NotifyMeCTA } from '../product-notify-me/NotifyMeCTA';\n\nexport interface IProductQuickViewContentConfig {\n features?: IFeatures;\n shadeSwatches?: IShadeSwatches;\n showProductPriceInstallments?: boolean;\n ratingsEnabled?: boolean;\n imageCarouselSettings?: IImageCarouselSettings;\n showToosTitle?: boolean;\n showToosMessage?: boolean;\n hideProductBadge?: boolean;\n enableNotifyMe?: boolean;\n isCoreSite?: boolean;\n}\n\nexport interface IProductPriceRowWrapper {\n className?: string;\n}\n\nexport interface IProductPriceRow extends IProductPriceRowWrapper {\n selectedSku: Sku;\n}\n\nexport interface IProductPriceRowWrapper {\n className?: string;\n}\n\nexport interface IProductPriceRow extends IProductPriceRowWrapper {\n selectedSku: Sku;\n}\n\nexport interface IProductQuickViewContent extends IProductBadge {\n onCloseButtonClick(): void;\n handleFavoriteClick(): void;\n isProductShaded: boolean;\n productImageProps: IProductImages;\n productNameProps: IProductName;\n shortDescriptionLocation: IShortDescriptionConfig;\n productShortDescriptionProps: IProductDescription;\n productRatingProps: IProductRatingConfig;\n productShadePickerProps: IShadePickerDropdown;\n productSizePickerProps: ISizePicker;\n productQuantitySelectorProps: IProductQuantitySelector;\n productPriceRowProps: IProductPriceRow;\n productAddToBagProps: IProductAddToBag;\n hideProductRating?: boolean;\n isProductReplenishable: boolean;\n productAutoReplenishProps: IProductAutoReplenish;\n customSizeImages: IAsset[];\n largeImages: IAsset[];\n selectedSku: Sku;\n autoReplenishOptions: number[];\n autoReplenishToggleType?: TOGGLE_TYPE;\n hideProductPricePerUnit?: boolean;\n showProductQuantitySelector?: boolean;\n enableAutoReplenishment?: boolean;\n config?: IProductQuickViewContentConfig;\n translations?: ITranslationsCollection;\n productQuickViewImageCarouselSettings: ICarouselSettings;\n thumbnailsCarouselSettings: ICarouselSettings;\n isImageCarouselDisabled: boolean;\n ctaType?: string;\n isThumbnailsCarouselEnabled: boolean;\n}\n\nconst ProductQuickViewContentWrapper = styled('div')`\n display: flex;\n align-items: center;\n flex-direction: column;\n clear: both;\n ${breakpoint('desktop')`\n flex-direction: row;\n clear: none;\n `};\n .elc-product-images-wrapper {\n height: 100%;\n background-color: ${Colors.primary200};\n img {\n width: 100%;\n height: 100%;\n }\n }\n`;\n\nconst ProductQuickViewDetailsWrapper = styled.div`\n display: flex;\n flex-direction: column;\n align-self: flex-start;\n width: 88%;\n margin: 0 auto;\n ${breakpoint('desktop')`\n width: 50%;\n margin: ${ContentSpacing.space48} 0 ${ContentSpacing.space48} ${ContentSpacing.space24};\n `};\n`;\n\nconst ProductSizePickerWrapper = styled(ProductItemWrapper)`\n [dir='rtl'] & {\n text-align: right;\n }\n`;\n\nconst ProductRatingWrapper = styled(ProductItemWrapper)`\n margin-bottom: ${ContentSpacing.space36};\n`;\n\nconst ProductNameWrapper = styled(ProductItemWrapper)`\n text-align: left;\n [dir='rtl'] & {\n text-align: right;\n }\n`;\n\nconst ProductShortDescriptionWrapper = styled(ProductItemWrapper)`\n text-align: left;\n [dir='rtl'] & {\n text-align: right;\n }\n`;\n\nconst ProductQuantitySelectorWrapper = styled(ProductItemWrapper)`\n width: fit-content;\n margin-bottom: ${ContentSpacing.space36};\n [dir='rtl'] & {\n text-align: right;\n }\n`;\n\nconst ProductBadgeImageWrapper = styled.div`\n position: relative;\n width: 50%;\n margin: ${ContentSpacing.space48} 0 ${ContentSpacing.space48} 64px;\n [dir='rtl'] & {\n margin: ${ContentSpacing.space48} 64px ${ContentSpacing.space48} 0;\n }\n`;\n\nconst QuantitySelectorAutoReplenishWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n`;\n\nconst AutoReplenishWrapper = styled.div`\n width: 40%;\n`;\n\nconst StyledProductBadge = styled(ProductBadge)`\n z-index: 1;\n`;\n\nconst StyledPricesWrapper = styled.div`\n display: flex;\n align-items: center;\n align-self: flex-start;\n`;\n\nconst FavoriteButtonWrapper = styled.div`\n width: 100%;\n display: flex;\n justify-content: flex-end;\n`;\n\nconst appendDots = (dots: React.ReactChildren) => {\n return
    {dots}
;\n};\n\nconst ProductPricePerUnitRowWrapper = styled.div`\n margin: 0 ${ContentSpacing.space8} 0;\n ${breakpoint('desktop')`\n margin: 0;\n `};\n`;\n\n// @todo: delete these hardcoded settings once new configs make it to drupal PROD/master\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst sliderSettings: { [k: string]: any } = {\n dots: true,\n arrows: false,\n slidesToShow: 1,\n slidesToScroll: 1,\n responsive: [\n {\n breakpoint: Breakpoints.desktop,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1\n }\n }\n ],\n appendDots: appendDots\n};\n\n@config(['features', 'shadeSwatches', 'ratingsEnabled', 'imageCarouselSettings', 'isCoreSite'])\n@observer\nexport class ProductQuickViewContent extends React.Component {\n public static displayName: string;\n @observable private carouselRef: Slider;\n @observable private thumbnailsCarouselRef: Slider;\n\n public setCarouselRef = (productImagesCarousel: Slider) => {\n if (!this.carouselRef) {\n this.carouselRef = productImagesCarousel;\n }\n\n return this.carouselRef;\n };\n\n public setThumbnailsCarouselRef = (thumbnailImagesCarousel: Slider) => {\n if (!this.thumbnailsCarouselRef) {\n this.thumbnailsCarouselRef = thumbnailImagesCarousel;\n }\n\n return this.thumbnailsCarouselRef;\n };\n\n private getShadeSwatches = () => {\n const { config: quickViewConfig, productShadePickerProps } = this.props;\n const { shades, onShadeSelect, productId } = productShadePickerProps;\n const shadeSwatches = quickViewConfig && quickViewConfig.shadeSwatches;\n const shadeSwatcesProductQuickshop =\n shadeSwatches && shadeSwatches.overrides && shadeSwatches.overrides.productQuickshop;\n const shadeSwatchesConfig = { ...shadeSwatches, ...shadeSwatcesProductQuickshop };\n const shadePickerType = shadeSwatchesConfig && shadeSwatchesConfig.type;\n const shadePickerProps: IShadePickerConfig = {\n shades,\n selectedShade: this.props.selectedSku.selectedShade,\n onShadeSelect,\n separator: ' ',\n productId,\n shadeSwatchesConfig\n };\n\n if (\n shadeSwatchesConfig &&\n shadeSwatchesConfig.enabled &&\n (shadePickerType === SHADE_PICKER_TYPE.GRID ||\n shadePickerType === SHADE_PICKER_TYPE.CAROUSEL)\n ) {\n return (\n \n );\n }\n };\n\n private getProductShadePickerComponent() {\n const { productShadePickerProps, isProductShaded } = this.props;\n\n const dropdownComponentConfig = {\n componentType: ComponentTypes.PRODUCT_QUICKSHOP,\n shadeDropdownProps: {\n ...productShadePickerProps\n },\n viewController: diContainer.get(serviceNames.productShadePickerComponentViewController)\n };\n\n return isProductShaded && ;\n }\n\n private getProductSliderImages() {\n const { largeImages, productImageProps, product, selectedSku } = this.props;\n const imageSliderImagesWrapperClassNames = classes('image-slider-images-wrapper');\n const { config: quickViewConfig } = this.props;\n const quickViewImageCarouselSettings =\n quickViewConfig &&\n quickViewConfig.imageCarouselSettings &&\n quickViewConfig.imageCarouselSettings.productQuickshop;\n const hideImageBadge =\n quickViewImageCarouselSettings && quickViewImageCarouselSettings.hideImageBadge;\n\n return largeImages.map((image: IAsset, index: number) => {\n const isFirstImage = index === 0;\n const showProductBadge = !hideImageBadge && isFirstImage;\n\n return (\n
\n {showProductBadge && (\n \n )}\n \n
\n );\n });\n }\n\n private getProductPriceRow() {\n const {\n formattedPrice,\n formattedOriginalPrice\n } = this.props.productPriceRowProps.selectedSku;\n\n return (\n \n );\n }\n\n private getProductPricePerUnit() {\n const productPricePerUnitRowWrapperClassNames = classes(\n 'product-price-per-unit-row-wrapper'\n );\n const productPricePerUnitClassNames = classes('product-price-per-unit');\n\n const { formattedPricePerUnit } = this.props.selectedSku;\n\n return (\n \n \n \n );\n }\n\n private getProductInstallmentsPrice() {\n const { selectedSku } = this.props;\n\n const productInstallmentPriceProps: IProductInstallmentsPrice = {\n defaultPrice: Number(selectedSku.originalPrice),\n componentType: ComponentTypes.PRODUCT_QUICKSHOP\n };\n\n return ;\n }\n\n private getProductRating(ratingPropsConfig: IProductRatingConfig) {\n return ;\n }\n\n private getPreorderMessage() {\n const {\n selectedSku: { preorderDate, isPreorderable },\n translations\n } = this.props;\n\n return (\n \n );\n }\n\n private getNotifyMeLink() {\n const { selectedSku, config: notifyMeConfig, translations } = this.props;\n const { enableNotifyMe } = notifyMeConfig as IProductQuickViewContentConfig;\n const { notifyWhenAvailable } = translations as ITranslationsCollection;\n const ctaType = LINK;\n\n const notifyMeCTAProps: IProductNotifyMeCTA = {\n selectedSku: selectedSku,\n config: {\n enableNotifyMe,\n customNotifyMeLabel: notifyWhenAvailable,\n ctaType\n }\n };\n\n return ;\n }\n\n /* eslint-disable complexity */\n render() {\n const {\n productSizePickerProps,\n productShadePickerProps,\n productImageProps,\n shortDescriptionLocation,\n productShortDescriptionProps,\n productNameProps,\n config: quickViewConfig,\n selectedSku,\n productQuickViewImageCarouselSettings,\n isImageCarouselDisabled,\n isThumbnailsCarouselEnabled,\n largeImages,\n thumbnailsCarouselSettings,\n productAutoReplenishProps,\n product,\n ...props\n } = this.props;\n\n const { features } = this.props.config as IProductQuickViewContentConfig;\n\n const productHasSizes =\n productSizePickerProps.sizes.length > 0 &&\n productSizePickerProps.sizes.some(size => size.value !== '');\n\n const productHasShadesName = productShadePickerProps.shades.some(shade => shade.name);\n const productHasShades = props.isProductShaded ? productHasShadesName : false;\n\n const imageSliderImages = this.getProductSliderImages();\n\n const ctaConfig: IProductCTAConfig = {\n ...props.productAddToBagProps.config,\n closeModalAction: props.onCloseButtonClick,\n skuId: selectedSku.skuId,\n autoReplenishOptions: props.autoReplenishOptions\n };\n\n const enableFavorites = features && features.favorites && features.favorites.enabled;\n const favoriteButtonWrapperClass = classes('favorite-button-wrapper');\n\n const shadeSwatches = quickViewConfig && quickViewConfig.shadeSwatches;\n const shadeSwatchesProductQuickshop =\n shadeSwatches && shadeSwatches.overrides && shadeSwatches.overrides.productQuickshop;\n const shadesConfig = { ...shadeSwatches, ...shadeSwatchesProductQuickshop };\n const shadeSwatchesEnabled = shadesConfig && shadesConfig.enabled;\n\n const displayShadePicker =\n shadeSwatchesEnabled && productHasShades\n ? shadeSwatchesEnabled && productHasShades\n : productHasShades;\n\n const ratingsEnabled = quickViewConfig && quickViewConfig.ratingsEnabled;\n\n const imageCarouselSettings = {\n ...DEFAULT_IMAGE_CAROUSEL_SETTINGS,\n ...sliderSettings, // will be removed once new config reaches PROD\n ...productQuickViewImageCarouselSettings\n };\n const isCoreSite = quickViewConfig && quickViewConfig.isCoreSite;\n const displayInvMessage =\n !isCoreSite && (!ctaConfig.ctaType || ctaConfig.ctaType === ADD_TO_BAG);\n\n const isThumbnailsSliderVertical = thumbnailsCarouselSettings\n ? thumbnailsCarouselSettings.vertical\n : DEFAULT_THUMBNAILS_CAROUSEL_SETTINGS.vertical;\n\n const thumbnailsCarouselConfig = {\n imageCarouselSettings\n };\n\n const { autoReplenishmentConfig } = productAutoReplenishProps;\n\n const autoReplenishmentEnabled =\n autoReplenishmentConfig && autoReplenishmentConfig.enabled !== undefined\n ? autoReplenishmentConfig.enabled\n : props.enableAutoReplenishment;\n\n const productQuickViewContentClassNames = classes('product-quick-view-content');\n const quickViewContentPricesWrapperClassNames = classes('quickview-content-prices-wrapper');\n const carouselWrapperClassNames = classes('carousel-section-wrapper');\n const showCarousel = !isThumbnailsCarouselEnabled && !isImageCarouselDisabled;\n\n const displayNotifyMeLink = selectedSku.isPreorderEnabled && !selectedSku.isShoppable;\n\n return (\n \n \n \n {showCarousel && (\n \n )}\n {isThumbnailsCarouselEnabled && (\n \n \n \n )}\n \n\n \n \n \n \n {shortDescriptionLocation &&\n shortDescriptionLocation.quickshop &&\n productShortDescriptionProps &&\n productShortDescriptionProps.description && (\n \n \n \n )}\n {!props.hideProductRating && (\n // @todo refactor the naming of the Power Reviews component: https://jira.esteeonline.com/browse/SPPSELTO-2930\n \n {ratingsEnabled ? (\n this.getProductRating(props.productRatingProps)\n ) : (\n \n )}\n \n )}\n\n {productHasSizes && (\n \n \n \n )}\n\n {displayShadePicker && this.getShadeSwatches()}\n {this.getProductShadePickerComponent()}\n\n \n {props.showProductQuantitySelector && (\n \n {() => (\n <>\n \n \n \n \n )}\n \n )}\n {props.isProductReplenishable && autoReplenishmentEnabled && (\n \n \n \n )}\n \n\n \n \n {this.getProductPriceRow()}\n \n {!props.hideProductPricePerUnit && (\n \n {this.getProductPricePerUnit()}\n \n )}\n \n\n {enableFavorites && (\n \n \n \n )}\n \n \n \n {selectedSku.isPreorderEnabled && this.getPreorderMessage()}\n {displayNotifyMeLink && this.getNotifyMeLink()}\n {this.getProductInstallmentsPrice()}\n {displayInvMessage && (\n \n )}\n \n \n );\n }\n}\n\nProductQuickViewContent.displayName = 'ProductQuickViewContent';\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport { ResponsiveModal } from 'elc-responsive-modal';\nimport styled from 'styled-components';\nimport { RemoveIcon } from 'elc-icons';\nimport { ITranslationsCollection, translate, config } from 'elc-service';\nimport { ProductQuickViewContent, IProductQuickViewContentConfig } from './ProductQuickViewContent';\nimport { CartLimitReachedModal } from '../common/CartLimitReachedModal';\nimport { DEFAULT_NUMBER_OF_STARS } from '../../constants/ProductReview';\nimport {\n IProductAutoReplenish,\n IProductAutoReplenishOptions\n} from '../product-auto-replenish/ProductAutoReplenish';\nimport { classes } from '../../utils/Classes';\nimport { MPP_ADD_TO_BAG } from '../../constants/DataTestIdAttributes';\nimport { ISizePicker, ISizePickerConfigs } from '../product-size-picker/ProductSizePicker';\nimport { TOGGLE_TYPE } from '../../constants/AutoReplenish';\nimport { ISizePickerImages, IShortDescriptionConfig } from '../../interfaces/IProdcat';\nimport { IProductRatingConfig } from '../../../exported/product-rating/ProductRatingWrapper';\nimport { ADD_TO_COLLECTION } from '../../constants/CTATypes';\nimport { ComponentTypes } from '../../constants/ComponentTypes';\nimport { ProductQuickViewController } from '../../controllers/ProductQuickViewController';\nimport { diContainer, serviceNames } from '../../../service-setup/diContainer';\nimport { DEFAULT_THUMBNAILS_CAROUSEL_SETTINGS } from '../../constants/ImageThumbnailCarouselSettings';\nimport { IShadePickerDropdown } from '../../interfaces/IShadePicker';\nimport { Product } from '../../domain/entities/Product';\nimport { Sku } from '../../domain/entities/Sku';\n\nexport interface IConfig {\n itemMaxQuantity?: number;\n hideSizeWhenSingular?: boolean;\n hideProductRating?: boolean;\n productGridHideReadReviewsLink?: boolean;\n enableLearnMoreLink?: boolean;\n autoReplenishOptions: number[];\n autoReplenishToggleType?: TOGGLE_TYPE;\n showToosTitle?: boolean;\n showToosMessage?: boolean;\n sizePickerImages?: ISizePickerImages;\n hideProductPricePerUnit?: boolean;\n showProductQuantitySelector?: boolean;\n className?: string;\n shortDescriptionLocation: IShortDescriptionConfig;\n enableAutoReplenishment?: boolean;\n sizePicker?: ISizePickerConfigs;\n customLabel?: string;\n popUpCTALabel?: string;\n pressedPopUpCTALabel?: string;\n enableNotifyMe?: boolean;\n ctaType?: string;\n autoReplenishment?: IProductAutoReplenishOptions;\n positionIndex?: number;\n}\n\nexport interface IProductQuickView {\n config: IConfig;\n translations?: ITranslationsCollection;\n onShadeSelect(name: string): void;\n onSizeSelect(name: string): void;\n onProductQuickViewClose(): void;\n product: Product;\n selectedSku: Sku;\n}\n\nconst Wrapper = styled.div`\n margin-top: 25px;\n display: inline-block;\n width: 100%;\n`;\n\nconst ProductQuickViewWrapper = styled(ResponsiveModal)`\n padding: 0;\n width: 96%;\n`;\n\nconst ProductQuickViewCloseButton = styled.button`\n cursor: pointer;\n float: right;\n border: none;\n outline: none;\n margin: 10px;\n [dir='rtl'] & {\n float: left;\n }\n`;\n\n@config([\n 'itemMaxQuantity',\n 'hideSizeWhenSingular',\n 'sizePicker',\n 'autoReplenishment',\n 'ctaType',\n 'installments'\n])\n@translate([\n 'autoReplenishLabel',\n 'subscribeLabel',\n 'subscribeCopyLabel',\n 'selectFrequencyLabel',\n 'closeQuickShopAriaLabel',\n 'notifyWhenAvailable'\n])\n@observer\nexport class ProductQuickView extends React.Component {\n private productQuickViewWrapperClassNames: string = classes('product-quick-view-wrapper');\n private productQuickViewCloseButtonClassNames: string = classes(\n 'product-quick-view-close-button'\n );\n private productQuickViewCloseButtonIconClassNames: string = classes(\n 'product-quick-view-close-button-icon'\n );\n private productQuickViewContainerWrapperClassNames: string = classes(\n 'product-quick-view-container-wrapper'\n );\n public static displayName: string;\n private viewController: ProductQuickViewController;\n\n constructor(props: IProductQuickView) {\n super(props);\n\n this.viewController = diContainer.get(serviceNames.productQuickViewController);\n this.viewController.setProduct(props.product);\n this.viewController.setSelectedSkuId(props.selectedSku.skuId);\n }\n\n private goToProduct = async () => {\n const { goToSPP } = this.viewController;\n const { positionIndex = 0 } = this.props.config;\n\n await goToSPP(positionIndex);\n };\n\n private handleShadeSelect = (name: string) => {\n this.props.onShadeSelect(name);\n this.viewController.selectShade(name);\n };\n\n private handleSizeSelect = (name: string) => {\n this.props.onSizeSelect(name);\n this.viewController.selectSize(name);\n };\n\n private closeProductQuickView = () => {\n this.props.onProductQuickViewClose();\n };\n\n public render() {\n const translations = this.props.translations as ITranslationsCollection;\n const { closeQuickShopAriaLabel } = translations;\n\n const {\n data,\n productUpdateQuantity,\n setAutoReplenishOption,\n setAutoReplenishSelection,\n toggleAutoReplenishSelection,\n largeImages,\n handleFavoriteClick\n } = this.viewController;\n\n const {\n product,\n sizes,\n shades,\n selectedAutoReplenishOption,\n isAutoReplenishSelected,\n productUrl,\n productQuickViewImageCarouselSettings,\n productQuickViewThumbnailsCarouselSettings,\n isImageCarouselDisabled,\n isThumbnailsCarouselEnabled\n } = data;\n\n const {\n displayName,\n subDisplayName,\n subHeader,\n shortDescription,\n quantity: currentQuantity,\n isShaded: isProductShaded,\n hasMultipleSizes,\n isSized\n } = product;\n\n const {\n enableLearnMoreLink,\n autoReplenishOptions,\n autoReplenishToggleType,\n showToosTitle,\n showToosMessage,\n hideProductPricePerUnit,\n showProductQuantitySelector,\n shortDescriptionLocation,\n enableAutoReplenishment,\n sizePicker,\n enableNotifyMe,\n popUpCTALabel,\n hideProductRating,\n pressedPopUpCTALabel,\n ctaType\n } = this.props.config;\n\n const selectedSku = this.props.selectedSku;\n\n const {\n skuId,\n inventoryStatus,\n isReplenishable,\n selectedShade,\n selectedSize\n } = selectedSku;\n\n const invStatusProps: IProductQuickViewContentConfig = {\n showToosTitle,\n showToosMessage,\n enableNotifyMe\n };\n const productId = selectedSku.partialParentProduct.productId;\n const { itemMaxQuantity, hideSizeWhenSingular, autoReplenishment } = this.props\n .config as IConfig;\n\n const customImages = this.viewController.getCustomSizeImages(\n ComponentTypes.PRODUCT_QUICKSHOP\n );\n const defaultImage = customImages.desktop.defaultImage;\n const customSizeImages = customImages.desktop.images;\n\n const productImageProps = {\n imgPath: defaultImage.src,\n altText: defaultImage.alt,\n productUrl,\n productDisplayName: displayName,\n onClick: this.goToProduct\n };\n\n const productNameProps = {\n displayName,\n productUrl,\n subDisplayName,\n subHeader,\n onProductNameClick: this.goToProduct\n };\n\n const productShortDescriptionProps = {\n productUrl,\n description: shortDescription,\n onProductDescriptionClick: this.goToProduct,\n enableLearnMoreLink\n };\n\n const productRatingProps = {\n isDisabled: true,\n numberOfStars: DEFAULT_NUMBER_OF_STARS,\n productLink: productUrl,\n onReadReviewsClick: this.goToProduct,\n productId,\n hideReviewsNumber: false,\n productGridHideReadReviewsLink: false\n };\n\n const productShadePickerProps: IShadePickerDropdown = {\n selectedShade: selectedShade,\n selectedHexValue: selectedShade.hexVal,\n shades,\n onShadeSelect: this.handleShadeSelect,\n productId: product.productId\n };\n\n const productSizePickerProps: ISizePicker = {\n sizes,\n selectedSize,\n onSelect: this.handleSizeSelect,\n hasMultipleSizes,\n isSized,\n hideSizeWhenSingular,\n productId,\n options: sizePicker ? sizePicker.product_quickshop : {}\n };\n\n const productQuantitySelectorProps = {\n config: {\n maxQuantity: itemMaxQuantity || 0,\n skuId,\n currentQuantity\n },\n\n onQuantitySelect: productUpdateQuantity\n };\n\n const productPriceRowProps = {\n selectedSku\n };\n\n const popUpCTAType = ctaType === ADD_TO_COLLECTION ? ctaType : undefined;\n\n const productAddToBagProps = {\n config: {\n skuId,\n inventoryStatus,\n quantity: currentQuantity,\n replenishment: selectedAutoReplenishOption,\n addToBagDataTestId: MPP_ADD_TO_BAG,\n showToosTitle,\n showToosMessage,\n enableNotifyMe,\n ctaType: popUpCTAType,\n translationsOverwrites: {\n ctaButtonLabel: popUpCTALabel,\n pressedCtaButtonLabel: pressedPopUpCTALabel\n }\n }\n };\n\n const autoReplenishmentProductQuickshop =\n autoReplenishment &&\n autoReplenishment.overrides &&\n autoReplenishment.overrides.productQuickshop;\n const autoReplenishmentConfig = {\n ...autoReplenishment,\n ...autoReplenishmentProductQuickshop\n };\n\n const productAutoReplenishProps: IProductAutoReplenish = {\n autoReplenishOptions,\n autoReplenishToggleType,\n onSelect: setAutoReplenishOption,\n toggleAutoReplenishSelection,\n setAutoReplenishSelection,\n selectedOption: selectedAutoReplenishOption,\n isSelected: isAutoReplenishSelected,\n translations,\n autoReplenishmentConfig\n };\n\n const thumbnailsCarouselSettings = {\n ...DEFAULT_THUMBNAILS_CAROUSEL_SETTINGS,\n ...productQuickViewThumbnailsCarouselSettings\n };\n\n return (\n \n \n \n \n \n\n \n \n \n \n );\n }\n}\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\nimport { Row } from 'elc-grid';\nimport { translate, ITranslationsCollection, ServiceView, config } from 'elc-service';\nimport { ContentSpacing, breakpoint, Breakpoints } from 'elc-base-theme';\nimport { DEFAULT_NUMBER_OF_STARS } from '../../constants/ProductReview';\nimport {\n ProductSizePicker,\n ISizePicker,\n ISizePickerConfigs\n} from '../product-size-picker/ProductSizePicker';\nimport { classes } from '../../utils/Classes';\nimport { Sku } from '../../domain/entities/Sku';\nimport { IAsset } from '../../domain/entities/Asset';\nimport { ProductItemWrapper } from '../../views/common/ProductItemWrapper';\nimport { ProductName } from './ProductName';\nimport { ProductDescription } from './ProductDescription';\nimport { ISizePickerImages, IShortDescriptionConfig } from '../../interfaces/IProdcat';\nimport { TOGGLE_TYPE } from '../../constants/AutoReplenish';\nimport { PRODUCT_RATING, PRODUCT_RATING_WRAPPER } from 'elc-service-view-names';\nimport { ITranslationsOverwrites } from '../../../exported/product-grid-wrapper/ProductGridWrapper';\nimport { ProductPriceFormatted } from '../common/ProductPriceFormatted';\nimport { ProductPriceRangeRow } from '../common/ProductPriceRangeRow';\nimport { PriceFormatted } from 'elc-formatters';\nimport ProductInstallmentsPrice, {\n IProductInstallmentsPrice\n} from '../../../internal/views/product-installments-price/ProductInstallmentsPrice';\nimport { ComponentTypes } from '../../constants/ComponentTypes';\nimport ProductShadePicker from '../../../exported/product-shade-picker/ProductShadePicker';\nimport { IShadePickerConfig, IShadeSwatches } from '../../interfaces/IShadePicker';\nimport ProductCTA from '../../../exported/product-cta/ProductCTA';\nimport { diContainer, serviceNames } from '../../../service-setup/diContainer';\nimport { Desktop, Mobile } from 'elc-layouts';\nimport { ProductQuickViewButton } from '../product-quickview/ProductQuickViewButton';\nimport { InventoryStatusMessage } from '../common/InventoryStatusMessage';\nimport { ADD_TO_BAG } from '../../constants/CTATypes';\nimport { IProductRatingConfig } from '../../../exported/product-rating/ProductRatingWrapper';\nimport { Product } from '../../domain/entities/Product';\nimport { ProductQuickView } from '../product-quickview/ProductQuickView';\n\nexport interface IProductBriefDetail {\n selectedSku: Sku;\n showSubDisplayName?: boolean;\n hideProductPrice?: boolean;\n hideProductPriceRange?: boolean;\n hideProductRating?: boolean;\n hideReviewsNumber?: boolean;\n productGridHideReadReviewsLink?: boolean;\n ctaType?: string;\n enableNotifyMe?: boolean;\n enableQuickView?: boolean;\n enableMobileQuickView?: boolean;\n enableShadePicker?: boolean;\n enableNumberShades?: boolean;\n enableSizePicker?: boolean;\n shortDescriptionLocation?: IShortDescriptionConfig;\n enableProductDetailLink?: boolean;\n useInitialRepositoryInventory?: boolean;\n isUpdatedInventorySource?: boolean;\n enableQuickViewShortcut?: boolean;\n translations?: ITranslationsCollection;\n largeImages: IAsset[];\n enableLearnMoreLink?: boolean;\n autoReplenishOptions: number[];\n autoReplenishToggleType?: TOGGLE_TYPE;\n addToBagDataTestId?: string;\n showToosMessage?: boolean;\n showToosTitle?: boolean;\n sizePickerImages?: ISizePickerImages;\n hideProductPricePerUnit?: boolean;\n showProductQuantitySelector?: boolean;\n hideEmptyStars?: boolean;\n enableAutoReplenishment?: boolean;\n config?: {\n sizePicker?: ISizePickerConfigs;\n ratingsEnabled?: boolean;\n shadeSwatches?: IShadeSwatches;\n };\n translationsOverwrites?: ITranslationsOverwrites;\n productUrl: string;\n positionIndex?: number;\n product: Product;\n isProductQuickViewOpen: boolean;\n onShopNowClick(productUrl: string): void;\n onProductDescriptionClick(): void;\n onQuickViewButtonClick(skyId: string, positionIndex?: number): void;\n handleShadeSelect(name: string): void;\n handleSizeSelect(name: string): void;\n onProductQuickViewClose(): void;\n}\n\nconst ProductBriefDetailWrapper = styled.div`\n margin-top: ${ContentSpacing.space10};\n padding: ${ContentSpacing.space6};\n padding-bottom: ${ContentSpacing.space16};\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n box-sizing: border-box;\n`;\n\nconst RatingContainer = styled(Row)`\n justify-content: space-between;\n`;\n\nconst ProductShadesNumber = styled(Row)`\n display: flex;\n`;\n\nconst SizePickerContainer = styled(ProductSizePicker)`\n margin: 0;\n`;\n\nconst StyledProductItemWrapper = styled(ProductItemWrapper)`\n position: 1;\n flex: 1;\n`;\n\nconst ProductPricePerUnitRowWrapper = styled.div`\n margin: 0 ${ContentSpacing.space8} 0;\n ${breakpoint('desktop')`\n margin: 0;\n `};\n`;\n\nconst ProductQuickViewShortcut = styled.div`\n display: contents;\n`;\n\n@config(['sizePicker', 'ratingsEnabled', 'shadeSwatches'])\n@translate(['shadesLabel', 'quickViewButtonLabel'])\n@observer\nexport class ProductBriefDetail extends React.Component {\n private productBriefDetailWrapperClassNames: string = classes('product-brief-detail-wrapper');\n\n public static displayName: string;\n private getProductName() {\n const { product, productUrl } = this.props;\n const { displayName, subDisplayName, subHeader } = product;\n\n return (\n \n \n \n );\n }\n\n private getShortDescription() {\n const {\n productUrl,\n product: { shortDescription }\n } = this.props;\n\n return (\n \n \n \n );\n }\n\n private getProductPrice() {\n const { priceRange } = this.props.product;\n const { formattedPrice, formattedOriginalPrice } = this.props.selectedSku;\n const { hideProductPricePerUnit } = this.props;\n const { formattedPricePerUnit } = this.props.selectedSku;\n\n const productPricePerUnitRowWrapperClassNames = classes(\n 'product-price-per-unit-row-wrapper'\n );\n const productPricePerUnitClassNames = classes('product-price-per-unit');\n\n return (\n \n <>\n {(this.props.hideProductPriceRange || !priceRange) && (\n \n )}\n {!this.props.hideProductPriceRange && priceRange && (\n \n )}\n {!hideProductPricePerUnit && (\n \n \n \n )}\n \n \n );\n }\n\n private getProductRating() {\n const productBriefConfig = this.props.config;\n const ratingsEnabled = productBriefConfig && productBriefConfig.ratingsEnabled;\n const { productUrl, hideProductRating, hideReviewsNumber, hideEmptyStars } = this.props;\n\n if (hideProductRating) {\n return null;\n }\n\n const ratingPropsConfig = {\n hideStars: hideEmptyStars,\n hideReviewsLabel: true,\n isDisabled: true,\n productLink: productUrl,\n numberOfStars: DEFAULT_NUMBER_OF_STARS,\n productId: this.props.product.productId,\n hideReviewsNumber,\n hideReadReviewsLink: false\n };\n\n return (\n \n \n {ratingsEnabled ? (\n this.getProductRatingService(ratingPropsConfig)\n ) : (\n \n )}\n \n \n );\n }\n\n getProductRatingService = (ratingPropsConfig: IProductRatingConfig) => (\n \n );\n\n private getShadePicker() {\n const {\n product: { shades, productId },\n selectedSku\n } = this.props;\n const { config: briefConfig } = this.props;\n const shadeSwatches = briefConfig && briefConfig.shadeSwatches;\n const shadeSwatchesProductBrief =\n shadeSwatches && shadeSwatches.overrides && shadeSwatches.overrides.productBrief;\n const shadeSwatchesConfig = { ...shadeSwatches, ...shadeSwatchesProductBrief };\n\n const productShadePickerProps: IShadePickerConfig = {\n shades,\n selectedShade: selectedSku.selectedShade,\n onShadeSelect: this.props.handleShadeSelect,\n separator: ' ',\n isCarousel: true,\n productId,\n shadeSwatchesConfig\n };\n\n return (\n \n \n \n );\n }\n\n private getNumberOfShadesOutput() {\n const { shades } = this.props.product;\n const { shadesLabel } = this.props.translations as ITranslationsCollection;\n const numShades = shades.length;\n const shadeOutput = `${numShades} ${shadesLabel}`;\n\n if (numShades <= 1) {\n return null;\n }\n\n return (\n \n \n {shadeOutput}\n \n \n );\n }\n\n private getSizePicker() {\n // TO ADD - IS_SIZED, IS_SHADED, REVIEWS WHEN AVAILABLE IN THE DATA\n const { handleSizeSelect, hideProductPricePerUnit, product, selectedSku } = this.props;\n const productBriefConfig = this.props.config;\n let options = {};\n if (productBriefConfig && productBriefConfig.sizePicker) {\n options = productBriefConfig.sizePicker.product_grid;\n }\n if (hideProductPricePerUnit) {\n options = { ...options, hideProductPricePerUnit };\n }\n\n const productSizePickerProps: ISizePicker = {\n sizes: product.sizes,\n selectedSize: selectedSku.selectedSize,\n onSelect: handleSizeSelect,\n productId: product.productId,\n options\n };\n\n return (\n \n \n \n );\n }\n\n private getCTA() {\n // ProductCTA has its own translations and doesn't inherit from here\n const { translations, selectedSku, ...ctaProps } = this.props;\n\n const briefDetailsConfig = {\n selectedSku,\n skuId: selectedSku.skuId,\n ...ctaProps\n };\n\n return (\n \n \n \n );\n }\n\n private getProductInstallmentsPrice() {\n const { selectedSku } = this.props;\n\n const productInstallmentPriceProps: IProductInstallmentsPrice = {\n defaultPrice: Number(selectedSku.originalPrice),\n componentType: ComponentTypes.PRODUCT_BRIEF\n };\n\n return (\n \n \n \n );\n }\n\n public onQuickViewButtonClick = () => {\n this.props.onQuickViewButtonClick(this.props.selectedSku.skuId, this.props.positionIndex);\n };\n\n private renderQuickViewButton = () => {\n const { enableQuickViewShortcut } = this.props;\n const productQuickViewShortcutClassNames = classes(\n 'product-quick-view-shortcut',\n 'elc-product-item-wrapper',\n 'elc-product-cta-wrapper'\n );\n const { quickViewButtonLabel } = this.props.translations as ITranslationsCollection;\n\n return (\n \n \n \n );\n };\n\n private getQuickViewCTA() {\n const { enableQuickView, enableQuickViewShortcut } = this.props;\n\n if (!enableQuickView && !enableQuickViewShortcut) {\n return null;\n }\n\n return (\n <>\n \n {() => (enableQuickView ? this.renderQuickViewButton() : null)}\n \n \n {() =>\n enableQuickView && this.props.enableMobileQuickView\n ? this.renderQuickViewButton()\n : null\n }\n \n \n );\n }\n\n private getQuickView() {\n const quickViewConfig = {\n hideProductRating: this.props.hideProductRating,\n productGridHideReadReviewsLink: this.props.productGridHideReadReviewsLink,\n enableLearnMoreLink: this.props.enableLearnMoreLink,\n autoReplenishOptions: this.props.autoReplenishOptions,\n autoReplenishToggleType: this.props.autoReplenishToggleType,\n showToosMessage: this.props.showToosMessage,\n showToosTitle: this.props.showToosTitle,\n sizePickerImages: this.props.sizePickerImages,\n hideProductPricePerUnit: this.props.hideProductPricePerUnit,\n showProductQuantitySelector: this.props.showProductQuantitySelector,\n enableAutoReplenishment: this.props.enableAutoReplenishment,\n enableNotifyMe: this.props.enableNotifyMe,\n shortDescriptionLocation: this.props.shortDescriptionLocation || {}\n };\n\n const quickViewProps = {\n product: this.props.product,\n onShadeSelect: this.props.handleShadeSelect,\n onSizeSelect: this.props.handleSizeSelect,\n onProductQuickViewClose: this.props.onProductQuickViewClose,\n selectedSku: this.props.selectedSku\n };\n\n return ;\n }\n\n public render() {\n const {\n shortDescriptionLocation,\n hideProductPrice,\n enableShadePicker,\n enableNumberShades,\n enableSizePicker,\n product,\n hideProductPricePerUnit,\n ctaType,\n isProductQuickViewOpen\n } = this.props;\n\n // for a case where we have a product that is not sized and the price is hidden\n // but the pricePerUnit is true because of legal agreement, we will enforce it\n const enforceShowPrice = enableSizePicker && !product.isSized && !hideProductPricePerUnit;\n const displayInvMessage = ctaType && ctaType === ADD_TO_BAG;\n\n return (\n \n {this.getProductName()}\n {shortDescriptionLocation &&\n shortDescriptionLocation.product_brief &&\n product.shortDescription &&\n this.getShortDescription()}\n {(!hideProductPrice || enforceShowPrice) && this.getProductPrice()}\n {enableNumberShades && product.isShaded && this.getNumberOfShadesOutput()}\n {this.getProductRating()}\n {enableShadePicker && product.isShaded && this.getShadePicker()}\n {enableSizePicker && product.isSized && this.getSizePicker()}\n {this.getQuickViewCTA()}\n {isProductQuickViewOpen && this.getQuickView()}\n {this.getCTA()}\n {this.getProductInstallmentsPrice()}\n {displayInvMessage && (\n \n )}\n \n );\n }\n}\n\nProductBriefDetail.displayName = 'ProductBriefDetail';\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport { Body1 } from 'elc-typography';\nimport { classes } from '../../utils/Classes';\nimport { IProductBenefitTypes } from '../../interfaces/IProdcat';\n\nexport interface IProductBenefitType {\n productId: string;\n skuId: string | number;\n benefitTypes?: IProductBenefitTypes;\n}\n\nconst benefitTypeClassName = classes('product-benefit-type');\n\nexport const ProductBenefitType = observer((props: IProductBenefitType) => {\n const { productId, skuId, benefitTypes } = props;\n\n const benefitType = benefitTypes && (benefitTypes[skuId] || benefitTypes[productId]);\n\n return <>{benefitType && {benefitType}};\n});\n","import * as React from 'react';\nimport { ProductImages } from 'elc-images';\nimport { observer } from 'mobx-react';\nimport styled, { css } from 'styled-components';\nimport { ContentSpacing, Breakpoints } from 'elc-base-theme';\nimport { root } from 'elc-universal-utils';\nimport { serviceNames, diContainer } from '../../../service-setup/diContainer';\nimport { ProductBriefViewController } from '../../controllers/ProductBriefViewController';\nimport { ProductItemWrapper } from '../common/ProductItemWrapper';\nimport { Desktop, Mobile } from 'elc-layouts';\nimport { classes } from '../../utils/Classes';\nimport { ADD_TO_BAG } from '../../constants/CTATypes';\nimport { ProductBadge } from '../product-badge/ProductBadge';\nimport { ProductBriefDetail } from './ProductBriefDetail';\nimport { MPP_ADD_TO_BAG } from '../../constants/DataTestIdAttributes';\nimport { TOGGLE_TYPE } from '../../constants/AutoReplenish';\nimport { BackgroundWhiteTheme, ProductBriefShadowTheme } from '../../../theme/default-theme';\nimport {\n IProductImages,\n ITranslationsOverwrites\n} from '../../../exported/product-grid-wrapper/ProductGridWrapper';\nimport { IFeatures } from '../../constants/Features';\nimport { config, translate } from 'elc-service';\nimport { FavoritesIcon } from '../product-favorites/FavoritesIcon';\nimport { ComponentTypes } from '../../constants/ComponentTypes';\nimport { action, observable } from 'mobx';\nimport { CheckVisibility } from 'elc-check-visibility';\nimport { IProductInstallmentsConfig } from '../../../internal/views/product-installments-price/ProductInstallmentsPrice';\nimport { DEFAULT_IMAGE_CAROUSEL_SETTINGS } from '../../constants/ImageThumbnailCarouselSettings';\nimport { SliderView } from 'elc-slider';\nimport { IAsset } from '../../domain/entities/Asset';\nimport { IShadeSwatches } from '../../interfaces/IShadePicker';\nimport {\n ISizePickerImages,\n IShortDescriptionConfig,\n IImageCarouselSettings,\n IProductBenefitTypes\n} from '../../interfaces/IProdcat';\nimport { Product } from '../../domain/entities/Product';\nimport { ProductBenefitType } from '../product-benefit-type/ProductBenefitType';\nimport { IProductImageBadge } from '../product-image-badge/ProductImageBadge';\n\nexport interface IProductBriefDefaulProps {\n productId: string;\n hideProductPrice?: boolean;\n hideProductPriceRange?: boolean;\n showSubDisplayName?: boolean;\n hideProductRating?: boolean;\n ctaType?: string;\n enableNotifyMe?: boolean;\n enableQuickView?: boolean;\n enableMobileQuickView?: boolean;\n enableShadePicker?: boolean;\n enableNumberShades?: boolean;\n enableSizePicker?: boolean;\n shortDescriptionLocation?: IShortDescriptionConfig;\n enableProductDetailLink?: boolean;\n useInitialRepositoryInventory?: boolean;\n autoReplenishOptions: number[];\n showToosMessage?: boolean;\n showToosTitle?: boolean;\n}\n\nexport interface IProductBriefConfig {\n features?: IFeatures;\n installments?: IProductInstallmentsConfig;\n imageCarouselSettings?: IImageCarouselSettings;\n shadeSwatches?: IShadeSwatches;\n}\n\nexport interface IProductBrief extends IProductImageBadge {\n className?: string;\n hideProductPrice?: boolean;\n hideProductPriceRange?: boolean;\n showSubDisplayName?: boolean;\n hideProductRating?: boolean;\n ctaType?: string;\n enableNotifyMe?: boolean;\n enableQuickView?: boolean;\n enableMobileQuickView?: boolean;\n enableHoverInteraction?: boolean;\n hideReviewsNumber?: boolean;\n productGridHideReadReviewsLink?: boolean;\n enableShadePicker?: boolean;\n enableNumberShades?: boolean;\n enableSizePicker?: boolean;\n shortDescriptionLocation?: IShortDescriptionConfig;\n enableProductDetailLink?: boolean;\n onImageLoaded?(): void;\n useInitialRepositoryInventory?: boolean;\n enableQuickViewShortcut?: boolean;\n imageOverride?: string;\n isFeatured?: boolean;\n enableLearnMoreLink?: boolean;\n autoReplenishOptions: number[];\n autoReplenishToggleType?: TOGGLE_TYPE;\n showToosTitle?: boolean;\n showToosMessage?: boolean;\n viewableInventoryStatuses?: string[];\n sizePickerImages?: ISizePickerImages;\n hideProductPricePerUnit?: boolean;\n showProductQuantitySelector?: boolean;\n hideEmptyStars?: boolean;\n enableAutoReplenishment?: boolean;\n translationsOverwrites?: ITranslationsOverwrites;\n isLoaded?: boolean;\n maxHeight?: number;\n lazyLoadGridItem?: boolean;\n config?: IProductBriefConfig;\n productImages?: IProductImages;\n positionIndex?: number;\n translations?: IProductBriefTranslations;\n product: Product;\n productBenefitTypes?: IProductBenefitTypes;\n}\n\ninterface IProductBriefTranslations {\n quickViewButtonLabel: string;\n}\n\ninterface IWrapperProps {\n maxHeight: number;\n}\n\ninterface IImgCommonProps {\n onClick(): Promise;\n onImageLoaded?(): void;\n lazyLoad?: boolean;\n}\n\nconst hiddenComponentsStyle = css`\n .elc-product-quick-view-button,\n .elc-product-description-wrapper,\n .elc-product-shades-number-wrapper,\n .elc-product-quick-view-shortcut {\n display: none;\n }\n`;\n\nconst hoverComponentsStyle = css`\n .elc-product-product-name-wrapper,\n .elc-product-price-wrapper {\n display: none;\n }\n .elc-rating,\n .elc-product-quick-view-button,\n .elc-product-description-wrapper,\n .elc-product-shades-number-wrapper,\n .elc-product-quick-view-shortcut {\n display: initial;\n }\n`;\n\nconst StyledProductItemWrapper = styled(ProductItemWrapper)`\n position: 1;\n flex: 1;\n`;\n\nconst Wrapper = styled.div`\n max-width: 770px;\n height: 100%;\n text-align: center;\n transition: 0.1s;\n padding: ${ContentSpacing.space8};\n margin: 0 auto;\n position: relative;\n border-radius: 4px;\n box-sizing: border-box;\n ${ProductBriefShadowTheme};\n ${BackgroundWhiteTheme};\n display: flex;\n flex-direction: column;\n\n .elc-product-images-wrapper {\n height: auto;\n }\n\n .elc-product-detail-wrapper {\n flex: 1;\n height: auto;\n }\n\n &.elc-hover-interaction {\n /* smartphones, touchscreens */\n @media (hover: none) and (pointer: coarse) {\n ${hiddenComponentsStyle}\n .elc-rating {\n display: block;\n }\n }\n\n /* mouse, touch pad */\n @media (hover: hover) and (pointer: fine) {\n ${hiddenComponentsStyle}\n .elc-rating {\n display: none;\n }\n\n &:hover,\n &:focus,\n &:focus-within {\n ${hoverComponentsStyle}\n }\n }\n }\n\n &.elc-product-brief-wrapper:hover .elc-product-brief-favorites-icon-wrapper {\n display: block;\n }\n`;\n\nconst InitialWrapper = styled(Wrapper)`\n min-height: 500px;\n height: ${props => (props.maxHeight ? `${props.maxHeight}px` : '100%')};\n`;\n\nconst FavoritesIconWrapper = styled.div`\n /* smartphones, touchscreens */\n @media (hover: none) and (pointer: coarse) {\n display: block;\n }\n\n display: none;\n position: absolute;\n right: 0;\n\n [dir='rtl'] & {\n left: 0;\n }\n`;\n\n@config(['features', 'imageCarouselSettings', 'installments'])\n@translate(['quickViewButtonLabel'])\n@observer\nexport class ProductBrief extends React.Component {\n @observable private isItemInView: boolean = false;\n public static defaultProps: IProductBriefDefaulProps;\n private productBriefViewController: ProductBriefViewController;\n private styledProductImagesContainer: string = classes('styled-product-image-container');\n private productBriefImageSliderImagesWrapper = classes(\n 'product-brief-image-slider-images-wrapper'\n );\n private productImageBadgeWrapper = classes('product-image-badge-wrapper');\n\n public constructor(props: IProductBrief) {\n super(props);\n this.productBriefViewController = diContainer.get(serviceNames.productBriefViewController);\n this.productBriefViewController.setProduct(this.props.product);\n }\n\n public componentDidUpdate(prevProps: IProductBrief) {\n if (this.props.product.productId !== prevProps.product.productId) {\n this.productBriefViewController.setProduct(this.props.product);\n }\n }\n\n private navToProd = async () => {\n const { positionIndex } = this.props;\n await this.productBriefViewController.navigateToProduct(positionIndex as number);\n };\n\n @action\n private onVisible = () => {\n this.isItemInView = true;\n };\n\n private getSliderImages = (images: IAsset[], imgCommonProps: IImgCommonProps) => {\n const { product } = this.props;\n const { selectedSku } = this.productBriefViewController.data;\n\n const gridImageCarouselSettings =\n this.props.config && this.props.config.imageCarouselSettings;\n\n const hideImageBadge =\n gridImageCarouselSettings &&\n gridImageCarouselSettings[ComponentTypes.PRODUCT_GRID].hideImageBadge;\n\n const productBadgeComponent = !hideImageBadge && (\n \n );\n\n return images.map((image: IAsset, index: number) => {\n const isFirstImage = index === 0;\n\n return (\n \n {isFirstImage && productBadgeComponent}\n \n \n );\n });\n };\n\n private renderImage = () => {\n const {\n alternateImage,\n largeImages,\n productBriefImageCarouselSettings,\n isMobileImageCarouselEnabled,\n isDesktopImageCarouselEnabled\n } = this.productBriefViewController.data;\n const { onImageLoaded, imageOverride, isFeatured, productImages } = this.props;\n const enableLazyLoadGridImages =\n productImages && productImages.product_grid && productImages.product_grid.lazyload;\n const customSizeImages = this.productBriefViewController.getCustomSizeImages(\n ComponentTypes.PRODUCT_GRID\n );\n const productImageDesktop = customSizeImages.desktop.defaultImage;\n const productImageMobile = customSizeImages.mobile.defaultImage;\n\n const productImgCommonProps: IImgCommonProps = {\n onClick: this.navToProd,\n onImageLoaded: onImageLoaded,\n lazyLoad: enableLazyLoadGridImages\n };\n\n const sliderImages = this.getSliderImages(largeImages, productImgCommonProps);\n\n const imageCarouselSettings = {\n ...DEFAULT_IMAGE_CAROUSEL_SETTINGS,\n ...productBriefImageCarouselSettings\n };\n\n const { product } = this.props;\n const { selectedSku } = this.productBriefViewController.data;\n\n const gridImageCarouselSettings =\n this.props.config && this.props.config.imageCarouselSettings;\n const hideImageBadge =\n gridImageCarouselSettings && gridImageCarouselSettings.productGrid.hideImageBadge;\n\n const productBadgeComponent = !hideImageBadge && (\n \n );\n\n return (\n <>\n \n {() =>\n isMobileImageCarouselEnabled ? (\n \n ) : (\n
\n \n {productBadgeComponent}\n
\n )\n }\n
\n \n {() =>\n isDesktopImageCarouselEnabled ? (\n \n ) : (\n
\n \n {productBadgeComponent}\n
\n )\n }\n
\n \n );\n };\n\n private renderBriefWrapper() {\n const { maxHeight = 0 } = this.props;\n const briefWrapperClassNames = classes('product-brief-wrapper');\n\n return (\n \n \n \n );\n }\n\n private renderBrief() {\n const {\n data,\n selectShade,\n selectSize,\n handleFavoriteClick\n } = this.productBriefViewController;\n\n const {\n productUrl,\n isUpdatedInventorySource,\n largeImages,\n selectedSku,\n isProductQuickViewOpen\n } = data;\n\n const {\n hideProductPrice,\n hideProductPriceRange,\n hideProductRating,\n ctaType,\n enableNotifyMe,\n enableQuickView,\n enableMobileQuickView,\n enableHoverInteraction,\n hideReviewsNumber,\n productGridHideReadReviewsLink,\n enableShadePicker,\n enableNumberShades,\n enableSizePicker,\n shortDescriptionLocation,\n enableProductDetailLink,\n useInitialRepositoryInventory,\n enableQuickViewShortcut,\n enableLearnMoreLink,\n autoReplenishOptions,\n autoReplenishToggleType,\n showToosTitle,\n showToosMessage,\n className,\n sizePickerImages,\n hideProductPricePerUnit,\n showProductQuantitySelector,\n hideEmptyStars,\n enableAutoReplenishment,\n translationsOverwrites,\n product,\n isLoaded,\n positionIndex,\n productBenefitTypes\n } = this.props;\n const briefConfig = this.props.config as IProductBriefConfig;\n\n const { productId, displayName } = product;\n const productBriefClassNames = classes(\n 'product-brief-wrapper',\n className,\n enableHoverInteraction ? 'elc-hover-interaction' : '',\n isLoaded ? 'product-brief-data-loaded' : ''\n );\n\n const briefFavoritesIconWrapperClass = classes('product-brief-favorites-icon-wrapper');\n\n const featuresConfig = briefConfig && briefConfig.features;\n const enableFavorites =\n featuresConfig && featuresConfig.favorites && featuresConfig.favorites.enabled;\n\n const skuBaseId = selectedSku.perlgem.SKU_BASE_ID || selectedSku.skuId;\n\n return (\n \n {!!productBenefitTypes && (\n \n )}\n {enableFavorites && (\n \n \n \n )}\n \n {this.renderImage()}\n \n \n \n \n \n );\n }\n\n public render() {\n return this.props.lazyLoadGridItem && !this.isItemInView && !root.__ssr\n ? this.renderBriefWrapper()\n : this.renderBrief();\n }\n}\n\nProductBrief.defaultProps = {\n productId: '39778',\n hideProductPrice: false,\n hideProductPriceRange: false,\n showSubDisplayName: false,\n hideProductRating: false,\n ctaType: ADD_TO_BAG,\n enableNotifyMe: false,\n enableQuickView: false,\n enableMobileQuickView: false,\n enableShadePicker: true,\n enableSizePicker: true,\n shortDescriptionLocation: {\n product_brief: true\n },\n enableProductDetailLink: true,\n useInitialRepositoryInventory: true,\n autoReplenishOptions: [],\n showToosMessage: false,\n showToosTitle: false\n};\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport { ProductBrief, IProductBrief } from '../product-brief/ProductBrief';\nimport { ProductTout } from '../product-tout/ProductTout';\n\nexport enum CollectionItemType {\n PRODUCT = 'product',\n TOUT = 'tout',\n FEATURED_PRODUCT = 'featured'\n}\n\nexport interface ICollectionItemProps {\n collectionItem: CollectionItemType;\n productBriefProps?: IProductBrief;\n id: number | string;\n}\n\n@observer\nexport class CollectionItem extends React.Component {\n public static displayName: string;\n\n render() {\n const { collectionItem, id } = this.props;\n const briefProps = this.props.productBriefProps as IProductBrief;\n\n switch (collectionItem) {\n case CollectionItemType.PRODUCT:\n return ;\n case CollectionItemType.TOUT:\n return ;\n default:\n return null;\n }\n }\n}\n\nCollectionItem.displayName = 'CollectionItem';\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\nimport { classes } from '../../utils/Classes';\nimport { ProductContent } from '../common/ProductContent';\n\nexport interface IProductToutProps {\n toutWidth?: number;\n toutHeight?: number;\n className?: string;\n nid: number;\n}\n\nconst ProductToutWrapper = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n\n /*\n Fallback for touts with no content displayed\n */\n .elc-service-view-renderer {\n width: 100%;\n height: 100%;\n\n & > div:empty {\n height: 100%;\n background-color: #eee;\n }\n }\n`;\n\nexport const ProductTout = observer((props: IProductToutProps) => {\n const productToutClassNames = classes('product-tout-wrapper');\n\n return (\n \n \n \n );\n});\n"],"sourceRoot":""}