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,KAAKjB,MAAM8F,QAC5D,CAEA,MAAAlF,GACI,MAAM,eAAEwoB,EAAc,OAAEtjB,EAAM,aAAErD,GAAiBxB,KAAKjB,MAChDs1B,EAAY,CACdlM,iBACAtjB,SACArD,gBAGJ,OACI,kBAAC3C,EAAkB,CAACG,gBAAiBwC,GAAgB,CAAC,GACjDxB,KAAKjB,MAAM8F,OAAOyvB,QACf,kBAAC,GAAW,MAAKD,IAEjB,kBAAC,GAAU,MAAKA,IAIhC,GA1BEJ,G,mIAAN,GAFC,OhHf2B,CACxB,eACA,sBACA,gBACA,WACA,0BACA,aACA,kBACA,oBACA,OACA,8BACA,YACA,UACA,mBACA,gBACA,sBACA,mBACA,aACA,qBACA,gBACA,2BACA,SACA,cACA,+BACA,qCACA,sCACA,kCACA,8BACA,+BACA,0BACA,2BACA,aACA,wBACA,eACA,YACA,WACA,mBACA,YACA,YACA,sBACA,mBACA,gBACA,oBACA,kBACA,iBACA,aACA,cACA,kBACA,mCACA,6BACA,qBACA,eACA,0BACA,eACA,uBACA,gBACA,sBACA,uBgHzCJ,YACMA,IA4BN,W","sources":["webpack://pg-service-cart/./src/internal/views/Shared/Providers/Translations/AllTranslations.ts","webpack://pg-service-cart/./src/internal/views/Shared/Providers/Translations/TranslationsContext.tsx","webpack://pg-service-cart/./src/internal/utils/ClassNames.ts","webpack://pg-service-cart/./src/internal/views/ImageWrapper/ImageWrapper.tsx","webpack://pg-service-cart/./src/internal/theme/default-theme.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimer/ReplenishmentDisclaimerStyles.ts","webpack://pg-service-cart/./src/internal/views/Shared/Providers/Translations/TranslationsHook.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimer/ReplenishmentDisclaimer.tsx","webpack://pg-service-cart/./src/api/ReplenismentAPI/hooks/ReplenishmentHook.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModalHook/ReplenishmentDIsclaimerModalContext.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDropdown/ReplenishmentDropdown.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentComponent.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/EngravingComponent/EngravingComponentStyles.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemPriceWrapper/CartItemPriceWrapperStyles.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemPriceWrapper/PriceItem/PriceItem.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/EngravingComponent/EngravingHook.ts","webpack://pg-service-cart/./src/api/Engraving/DeleteEngraving.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/EngravingComponent/EngravingComponent.tsx","webpack://pg-service-cart/./src/internal/views/Collection/CollectionStyles.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemStyles.ts","webpack://pg-service-cart/./src/internal/views/Collection/CollectionButton/CollectionButtonController.ts","webpack://pg-service-cart/./src/internal/views/Collection/CollectionButton/CollectionButton.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemPriceWrapper/TotalPriceItem/TotalPriceItem.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemPriceWrapper/CartItemPriceWrapper.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/QuantityItem/QuantityItem.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/KitDetails/KitDetailComponents/DefaultKitItemStyles.tsx","webpack://pg-service-cart/./src/internal/views/Shared/FlexRow/FlexRow.tsx","webpack://pg-service-cart/./src/internal/utils/ToHexCode.ts","webpack://pg-service-cart/./src/internal/views/Shared/ShadeComponent/ShadeComponent.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/KitDetails/KitDetails.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/KitDetails/KitDetailComponents/DefaultKitItem.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/CartItemDescriptionStyles.ts","webpack://pg-service-cart/./src/internal/views/Shared/TextLabel/TextLabel.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/CartItemDescription.tsx","webpack://pg-service-cart/./src/internal/utils/LoyaltyPoints.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/RemoveButton/RemoveButton.tsx","webpack://pg-service-cart/./src/service-setup/constants.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/CartItem.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/RemoveButton/hook/RemoveButtonHook.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/MessagingPanel/MessagingPanelStyles.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/MessagingPanel/MessagingPanel.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModalHook/ReplenishmentDisclaimerModalHook.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModal/ReplenishmentDisclaimerModalStyles.ts","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModal/ReplenishmentDisclaimerModal.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/CartSidebarItems/CartSidebarItems.tsx","webpack://pg-service-cart/./src/internal/views/EmptyCart/EmptyCartStyles.ts","webpack://pg-service-cart/./src/internal/views/EmptyCart/EmptyCart.tsx","webpack://pg-service-cart/./src/api/CartAPI/CartHook.ts","webpack://pg-service-cart/./src/api/DonationsAPI/hooks/DonationsHook.ts","webpack://pg-service-cart/./src/internal/views/DonationsPanel/DonationsSelector/DonationsSelector.tsx","webpack://pg-service-cart/./src/internal/views/DonationsPanel/PriceSelector/PriceSelector.tsx","webpack://pg-service-cart/./src/internal/views/DonationsPanel/DonationsPanel.tsx","webpack://pg-service-cart/./src/internal/views/DonationsExpander/DonationsExpander.tsx","webpack://pg-service-cart/./src/internal/views/Shared/SpinnerWrapper/SpinnerWrapper.tsx","webpack://pg-service-cart/./src/internal/views/Collection/CollectionCarousel/CollectionCarouselController.ts","webpack://pg-service-cart/./src/api/GraphQLClient/GraphQlClient.ts","webpack://pg-service-cart/./src/api/ProductAPI/ProductAPIs.ts","webpack://pg-service-cart/./src/internal/views/Shared/PriceComponent/PriceComponentStyles.ts","webpack://pg-service-cart/./src/internal/views/Shared/PriceComponent/PriceComponent.tsx","webpack://pg-service-cart/./src/internal/views/Shared/SizeComponent/SizeComponent.tsx","webpack://pg-service-cart/./src/internal/views/Shared/TruncatedDescription/TruncatedDescription.tsx","webpack://pg-service-cart/./src/internal/views/Shared/Divider/DividerComponent.ts","webpack://pg-service-cart/./src/internal/views/Collection/CollectionCarousel/ListItem/ListItemStyles.ts","webpack://pg-service-cart/./src/internal/views/Collection/CollectionCarousel/ListItem/ListItem.tsx","webpack://pg-service-cart/./src/api/ProductAPI/GetSkuHook.ts","webpack://pg-service-cart/./src/api/ProductAPI/utils.ts","webpack://pg-service-cart/./src/internal/views/Collection/CollectionCarousel/NoItemsInCollection.tsx","webpack://pg-service-cart/./src/internal/views/Collection/CollectionCarousel/CollectionCarousel.tsx","webpack://pg-service-cart/./src/SharedComponents/ExternalReference/common/getActionName.ts","webpack://pg-service-cart/./src/SharedComponents/ExternalReference/common/addListeners.ts","webpack://pg-service-cart/./src/SharedComponents/ExternalReference/ImportExternal.tsx","webpack://pg-service-cart/./src/SharedComponents/ExternalReference/common/bindToDOMElement.ts","webpack://pg-service-cart/./src/internal/views/OfferCodeModule/OfferCodeModule.tsx","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItem/RecommendedImage/RecommendedImage.tsx","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItem/RecommendedItemDescription/RecommendedItemDescriptionStyles.ts","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItem/RecommendedItemDescription/RecommendedItemDescription.tsx","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItem/RecommendedItemStyles.ts","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItem/RecommendedItem.tsx","webpack://pg-service-cart/./src/api/ProductAPI/GetProductHook.ts","webpack://pg-service-cart/./src/internal/views/CartSidebarFooter/CartSidebarFooterStyles.ts","webpack://pg-service-cart/./src/internal/views/Shared/ActionButton/ActionButton.tsx","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/EmptyRecommendedItem/EmptyRecommendedItem.tsx","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItemsCarouselHook.ts","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItemsCarousel.tsx","webpack://pg-service-cart/./src/internal/views/RecommendedForYouModule/RecommendedForYouModule.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagOffers/ShoppingBagOffers.tsx","webpack://pg-service-cart/./src/internal/views/ShoppingBagTab/ShoppingBagTab.tsx","webpack://pg-service-cart/./src/SharedComponents/expander/Expander.tsx","webpack://pg-service-cart/./src/SharedComponents/expander/Header.tsx","webpack://pg-service-cart/./src/SharedComponents/expander/Body.tsx","webpack://pg-service-cart/./src/SharedComponents/expander/Footer.tsx","webpack://pg-service-cart/./src/internal/views/DiscountView/DiscountViewStyles.ts","webpack://pg-service-cart/./src/internal/views/DiscountView/DiscountView.tsx","webpack://pg-service-cart/./src/internal/views/CartSidebarFooter/CartSidebarFooter.tsx","webpack://pg-service-cart/./src/SharedComponents/expander/useExpander.ts","webpack://pg-service-cart/./src/internal/views/EmptyCart/EmptyCartSidebarFooter/EmptyCartSidebarFooter.tsx","webpack://pg-service-cart/./src/internal/views/CartSidebarFooterComponent/CartSidebarFooterComponent.tsx","webpack://pg-service-cart/./src/api/DrupalAPI/DrupalAPI.ts","webpack://pg-service-cart/./src/api/DrupalAPI/hooks/useDrupalNodes.ts","webpack://pg-service-cart/./src/internal/views/Shared/DrupalNode/DrupalNode.tsx","webpack://pg-service-cart/./src/internal/views/CartOverlay/CartOverlayStyles.ts","webpack://pg-service-cart/./src/internal/views/CartTabs/TabHeadersComponent/CartTabHeader/ItemAddedAlert/ItemAddedAlert.tsx","webpack://pg-service-cart/./src/internal/views/CartOverlay/CartOverlay.tsx","webpack://pg-service-cart/./src/internal/views/CartOverlay/useOverlay.ts","webpack://pg-service-cart/./src/internal/views/CartOverlayLoading/CartSidebarLoading.tsx","webpack://pg-service-cart/./src/internal/views/CartTabs/CartTabsStyles.ts","webpack://pg-service-cart/./src/internal/views/CartTabs/TabHeadersComponent/CartTabHeader/CartTabHeader.tsx","webpack://pg-service-cart/./src/internal/views/CartTabs/TabHeadersComponent/TabHeadersComponent.tsx","webpack://pg-service-cart/./src/internal/views/CartTabs/CartTabs.tsx","webpack://pg-service-cart/./src/internal/utils/CartEnums.ts","webpack://pg-service-cart/./src/internal/views/OffersTab/OffersTab.tsx","webpack://pg-service-cart/./src/internal/views/CartDrawer/CartDrawer.tsx","webpack://pg-service-cart/./src/exported/CartSidebar/CartSidebar.tsx"],"sourcesContent":["export const translations = [\n 'contactLabel',\n 'addToBagButtonLabel',\n 'checkoutLabel',\n 'discount',\n 'discountDisclaimerLabel',\n 'donationTo',\n 'goShoppingLabel',\n 'orderSummaryTitle',\n 'item',\n 'itemDiscountPercentageLabel',\n 'learnMore',\n 'loading',\n 'furtherInfoLabel',\n 'makeADonation',\n 'noItemsInCollection',\n 'noResultsMessage',\n 'outOfStock',\n 'productSampleLabel',\n 'quantityLabel',\n 'recommendedProductsTitle',\n 'remove',\n 'removeLabel',\n 'replenishmentCancelErrorText',\n 'replenishmentDisclaimerAgreeButton',\n 'replenishmentDisclaimerCancelButton',\n 'replenishmentDisclaimerInfoText',\n 'replenishmentDisclaimerText',\n 'replenishmentDisclaimerTitle',\n 'replenishmentFailedText',\n 'replenishmentSuccessText',\n 'retryLabel',\n 'samplesAndOffersLabel',\n 'saveForLater',\n 'sizeLabel',\n 'subtotal',\n 'shoppingBagTitle',\n 'cartEmpty',\n 'editLabel',\n 'cartEmptyTitleLabel',\n 'addedToCartLabel',\n 'cartPageTitle',\n 'actionButtonLabel',\n 'editButtonLabel',\n 'offerCodeLabel',\n 'applyLabel',\n 'addingLabel',\n 'applyOfferLabel',\n 'congratulationsCartTabOfferLabel',\n 'congratulationsOffersLabel',\n 'failedToApplyOffer',\n 'loadingLabel',\n 'notQualifiedOffersLabel',\n 'offerApplied',\n 'qualifiedOffersLabel',\n 'productsTitle',\n 'productPPMultiplier',\n 'loyaltyPointsLabel'\n];\n","import { observer } from 'mobx-react';\nimport React from 'react';\n\nexport type TTranslations = { [key: string]: string };\ntype TranslationContextProps = { allTranslations: TTranslations; children?: React.ReactChild };\n\nconst defaultContext = {};\n\nexport const TranslationContextProvider = React.createContext({});\n\nexport const TranslationContext: React.FC = observer((props) => {\n const { allTranslations, children } = props;\n\n return (\n \n {children}\n \n );\n});\n","import classnames from 'classnames';\n\nexport const classes = (component: string, ...classNames: (string | undefined)[]) =>\n classnames(`elc-${component}`, `js-${component}`, classNames);\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { ContentSpacing } from '@estee/elc-base-theme';\nimport IImageWrapper from './IImageWrapper';\nimport { classes } from '~utils/ClassNames';\nimport { observer } from 'mobx-react';\n\nconst Container = styled.a`\n max-width: 30%;\n border-bottom: none;\n margin-right: ${ContentSpacing.space12};\n cursor: pointer;\n position: relative;\n\n [dir='rtl'] & {\n margin-left: ${ContentSpacing.space12};\n }\n`;\n\nconst Image = styled.img`\n max-height: 100%;\n max-width: 100%;\n margin: auto;\n user-select: none;\n`;\n\n@observer\nexport class ImageWrapper extends React.PureComponent {\n public render() {\n const { className, thumb, alt, productUrl } = this.props;\n const imageClass = classes('cart-item-image', className);\n\n return (\n \n {alt}\n \n );\n }\n}\n","import styled from 'styled-components';\n\nimport { Colors, ContentSpacing, breakpoint } from '@estee/elc-base-theme';\nimport { Subtitle2 } from '@estee/elc-typography';\nimport { RemoveIcon } from '@estee/elc-icons';\n\nimport { ImageWrapper } from '~views/ImageWrapper/ImageWrapper';\n\nconst { space8, space12, space16, space24 } = ContentSpacing;\n\nexport const inheritBaseFont = `\n font-family: inherit;\n color: inherit;\n`;\n\nexport const cartItemCloseIconTheme = `\n stroke: ${Colors.primary600};\n`;\n\nexport const cartItemActionLinkTheme = `\n text-decoration: underline;\n text-transform: uppercase;\n`;\n\nexport const baseRemoveIcon = `\n min-width: 14px;\n min-height: 14px;\n background-color: ${Colors.primary700};\n`;\n\nexport const Title = styled(Subtitle2)`\n animation: fadeIn 5s;\n text-transform: uppercase;\n word-wrap: break-word;\n white-space: nowrap;\n max-width: 200px;\n ${inheritBaseFont};\n overflow: hidden;\n`;\n\nexport const defaultCTA = `\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin: ${space8} ${space16} ${space24} ${space16};\n max-height: 48px;\n flex: 1;\n flex-shrink: 0;\n`;\n\nexport const StyledFooter = styled.div`\n display: flex;\n flex-direction: column;\n flex: 0 1 auto;\n flex-shrink: 0;\n border-radius: 1%;\n margin-bottom: -${space12};\n box-shadow: 0 -8px 6px -6px ${Colors.primary300};\n z-index: 1;\n`;\n\nexport const StyledImageWrapper = styled(ImageWrapper)`\n width: 90px;\n min-width: 90px;\n`;\n\nexport const TabContentContainer = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n min-height: 112px;\n overflow: auto;\n ${breakpoint('largeScreen')`\n max-width: 400px;\n width: 400px;\n `};\n`;\n\nexport const RemoveButton = styled.a`\n display: flex;\n justify-content: center;\n align-items: center;\n width: 20px;\n max-height: 20px;\n padding-bottom: 0;\n border: none;\n background: transparent;\n text-align: right;\n cursor: pointer;\n\n [dir='rtl'] & {\n text-align: left;\n }\n\n &:hover,\n &:focus {\n text-decoration: none;\n }\n`;\n\nexport const RemoveIconWrapper = styled(RemoveIcon)`\n min-width: 14px;\n min-height: 14px;\n background-color: ${Colors.primary700};\n`;\n\nexport const Price = styled(Subtitle2)`\n font-family: inherit;\n`;\n","import styled from 'styled-components';\n\nimport { Caption } from '@estee/elc-typography';\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\nimport { InfoIcon } from '@estee/elc-icons';\n\nimport { inheritBaseFont } from '~theme/default-theme';\n\nconst { space12 } = ContentSpacing;\n\nexport const DisclaimerWrapper = styled.div`\n display: flex;\n flex-direction: row;\n margin-top: ${space12};\n justify-content: flex-start;\n align-items: flex-start;\n`;\nexport const ReplenishmentLabel = styled(Caption)`\n max-width: 220px;\n text-wrap: normal;\n ${inheritBaseFont};\n`;\n\nexport const StyledInfoIcon = styled(InfoIcon)`\n background-color: ${Colors.black}54;\n`;\n","import { useContext } from 'react';\n\nimport { TranslationContextProvider, TTranslations } from './TranslationsContext';\n\nexport const useTranslation = (translations: string | string[] = []): TTranslations => {\n const translationsContext = useContext(TranslationContextProvider);\n const translationsArray = [translations].flat();\n\n const translationArray: TTranslations = translationsArray.reduce((acc, translation) => {\n if (!translationsContext[translation] && translationsContext[translation] !== '') {\n console.warn('No Translation found for', { translation });\n }\n\n return {\n ...acc,\n [translation]: translationsContext[translation]\n };\n }, {});\n\n return translationArray.length ? translationArray : translationsContext;\n};\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport {\n DisclaimerWrapper,\n ReplenishmentLabel,\n StyledInfoIcon\n} from './ReplenishmentDisclaimerStyles';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translationsList = ['itemReplenishedDisclaimer'];\n\nexport const ReplenishmentDisclaimer = observer(() => {\n const { itemReplenishedDisclaimer } = useTranslation(translationsList);\n\n return (\n \n {itemReplenishedDisclaimer}\n \n \n );\n});\n","import { useCallback, useEffect } from 'react';\n\nimport ReplenishmentViewController from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentViewController';\n\nimport ICartItem from '~domain/entities/CartItem/ICartItem';\n\nexport const useReplenishment = (\n controller: ReplenishmentViewController,\n cartItem: ICartItem,\n defaultVal: string = '1'\n) => {\n const {\n selectedValue,\n isLoading,\n getReplenishmentFrequency,\n updateReplenishment,\n setSelected\n } = controller;\n\n const fetchCollectionInfo = () => {\n setSelected(defaultVal);\n const collectionId = cartItem?.replenishmentInfo?.collectionId?.toString();\n if (collectionId) {\n getReplenishmentFrequency({ collectionId });\n }\n };\n\n const onChange = useCallback(\n (selectedFrequency: string) => updateReplenishment({ cartItem, selectedFrequency }),\n [cartItem, selectedValue]\n );\n\n useEffect(fetchCollectionInfo, []);\n\n return {\n selectedValue,\n isLoading,\n onChange,\n setSelected\n };\n};\n","import { createContext } from 'react';\nimport { IReplenishmentModalContext } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModal/IReplenishmentDisclaimerModal';\n\nexport const ReplenishmentModalContext = createContext(\n {} as IReplenishmentModalContext\n);\n","import React, { useContext, useEffect } from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\n\nimport { Dropdown } from '@estee/elc-dropdown';\nimport { Colors } from '@estee/elc-base-theme';\n\nimport ReplenishmentViewController from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentViewController';\nimport { useReplenishment } from '~api/ReplenismentAPI/hooks/ReplenishmentHook';\n\nimport ICartItem from '~domain/entities/CartItem/ICartItem';\nimport { AgreementTypes } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModal/IReplenishmentDisclaimerModal';\nimport { ReplenishmentModalContext } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModalHook/ReplenishmentDIsclaimerModalContext';\n\nconst StyledDropdown = styled(Dropdown)`\n border: 1px solid ${Colors.black};\n border-radius: 4px;\n`;\n\ninterface IReplenishmentDropdownProps {\n cartItem: ICartItem;\n replenishmentOptions: { label: string; value: string }[];\n controller: ReplenishmentViewController;\n}\n\nexport const ReplenishmentDropdown = observer(\n ({ cartItem, replenishmentOptions, controller }: IReplenishmentDropdownProps) => {\n const defaultSelection = replenishmentOptions[0]?.value ?? '';\n\n const { onChange, selectedValue, setSelected, isLoading } = useReplenishment(\n controller,\n cartItem,\n defaultSelection\n );\n const { agreement, setDisplayModal, setAgreement, displayModal, setMessage } = useContext(\n ReplenishmentModalContext\n );\n\n const onDropdownChange = (inputValue: string, val: string) =>\n selectedValue !== val && setSelected(val);\n\n useEffect(() => {\n const updateReplenishment = async () => {\n if (!isLoading) {\n const result = await onChange(selectedValue);\n setMessage(result?.type);\n }\n };\n\n if (!!selectedValue && !displayModal) {\n if (agreement === AgreementTypes.REJECTED) {\n setSelected(defaultSelection);\n setAgreement(null);\n } else if (agreement === AgreementTypes.ACCEPTED) {\n updateReplenishment();\n } else if (selectedValue !== defaultSelection) {\n setDisplayModal(true);\n }\n }\n }, [agreement, selectedValue]);\n\n return (\n \n );\n }\n);\n","import React, { useState } from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\n\nimport { ContentSpacing } from '@estee/elc-base-theme';\n\nimport { ReplenishmentDisclaimer } from './ReplenishmentDisclaimer/ReplenishmentDisclaimer';\nimport { ReplenishmentDropdown } from './ReplenishmentDropdown/ReplenishmentDropdown';\nimport { useReplenishment } from '~api/ReplenismentAPI/hooks/ReplenishmentHook';\n\nimport { IReplenishmentModule } from './IReplenishmentComponent';\nimport ReplenishmentViewController from './ReplenishmentViewController';\n\nconst ReplenishmentWrapper = styled.div`\n margin-top: ${ContentSpacing.space12};\n`;\n\nexport const ReplenishmentModule = observer(({ cartItem, config }: IReplenishmentModule) => {\n const [controller] = useState(new ReplenishmentViewController());\n const defaultVal = config.replenishmentOptions[0].value;\n const { selectedValue } = useReplenishment(controller, cartItem, defaultVal);\n const displayDisclaimer = selectedValue !== defaultVal;\n\n return (\n \n \n {displayDisclaimer && }\n \n );\n});\n","import styled from 'styled-components';\n\nimport { Subtitle2 } from '@estee/elc-typography';\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\n\nexport const Container = styled.div`\n width: 100%;\n margin-top: ${ContentSpacing.space10};\n`;\n\nexport const PriceWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n font-weight: bold;\n font-size: ${ContentSpacing.space12};\n`;\n\nexport const EngraveMessage = styled.div`\n width: 100%;\n height: ${ContentSpacing.space32};\n display: flex;\n align-items: center;\n justify-content: center;\n margin: ${ContentSpacing.space10} 0;\n padding: 0 ${ContentSpacing.space10};\n background-color: ${Colors.blackLightEmphasis};\n`;\n\nexport const Label = styled(Subtitle2)`\n font-size: ${ContentSpacing.space12};\n font-family: inherit;\n`;\n\nexport const StyledButton = styled.button`\n margin: 0;\n border: unset;\n height: unset;\n text-align: left;\n background: unset;\n line-height: unset;\n width: fit-content;\n text-transform: uppercase;\n padding: ${ContentSpacing.space6};\n font-size: ${ContentSpacing.space12};\n`;\n\nexport const StyledButtonBorder = styled(StyledButton)`\n border-right: 1px solid ${Colors.black};\n`;\n\nexport const EngravingDisclaimer = styled(Subtitle2)`\n text-align: justify;\n text-justify: inter-word;\n font-family: inherit;\n font-size: ${ContentSpacing.space12};\n`;\n","import styled from 'styled-components';\n\nimport { Subtitle2 } from '@estee/elc-typography';\nimport { ContentSpacing, breakpoint } from '@estee/elc-base-theme';\n\nimport { inheritBaseFont } from '~theme/default-theme';\n\nimport { IEmphasis } from '~theme/IEmphasis';\n\nexport const TotalPrice = styled(Subtitle2)`\n ${inheritBaseFont};\n`;\n\nexport const PriceContainer = styled.div`\n display: flex;\n justify-content: space-between;\n width: 100%;\n flex-direction: row-reverse;\n`;\n\nexport const FreeItemLabel = styled(Subtitle2)`\n ${inheritBaseFont};\n`;\n\nexport const FreeSampleItemLabel = styled(Subtitle2)`\n order: 1;\n display: flex;\n font-weight: 700;\n ${inheritBaseFont};\n`;\n\nexport const Container = styled.div`\n display: flex;\n flex-flow: row wrap;\n justify-content: flex-end;\n align-items: center;\n flex-direction: row;\n padding-top: ${ContentSpacing.space2};\n`;\n\nexport const PriceItemWrapper = styled.div`\n order: 1;\n display: flex;\n align-items: center;\n ${breakpoint('desktop')`\n margin: 0;\n `};\n`;\n\nexport const TotalPriceItemWrapper = styled.div`\n order: 0;\n display: flex;\n align-items: center;\n ${breakpoint('desktop')`\n margin: 0;\n `};\n`;\n\nexport const Price = styled(Subtitle2)`\n ${inheritBaseFont};\n`;\n\nexport const DiscountedPrice = styled(Subtitle2)`\n display: inline-block;\n padding: 0 ${ContentSpacing.space2};\n\n ${inheritBaseFont};\n`;\n\nexport const OldPrice = styled(Subtitle2)`\n display: inline-block;\n text-decoration: line-through;\n opacity: 0.4;\n padding: 0 ${ContentSpacing.space2};\n ${inheritBaseFont};\n`;\n\nexport const PercentDiscount = styled(Subtitle2)`\n display: inline-block;\n opacity: 0.4;\n font-style: italic;\n padding: 0 ${ContentSpacing.space2};\n ::before {\n content: '(-';\n }\n ::after {\n content: ')';\n }\n\n ${inheritBaseFont};\n`;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { Emphasis } from '@estee/elc-base-theme';\n\nimport {\n PriceItemWrapper,\n OldPrice,\n DiscountedPrice,\n Price,\n PercentDiscount,\n FreeItemLabel\n} from '~views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemPriceWrapper/CartItemPriceWrapperStyles';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { classes } from '~utils/ClassNames';\n\nimport IPriceItem from './IPriceItem';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nexport const priceWrapperClass = classes('cart-item-price-wrapper');\nexport const priceClass = classes('cart-item-price');\nexport const discountedClass = classes('cart-item-price', 'discounted');\nexport const oldPriceClass = classes('cart-item-old-price');\nexport const percentClass = classes('cart-item-percent');\nexport const markDownClass = classes('cart-item-markdown-price');\nexport const markDownDiscountedClass = 'elc-cart-item-markdown-discounted-price';\n\nconst maxDiscountAmount = 100;\n\nconst PriceItem: React.FC = observer(\n ({\n productDiscount,\n discountedPrice = 0,\n originalPrice,\n showDiscountedTotal,\n hasMarkDownPrice\n }) => {\n const { config } = diContainer.get(serviceNames.config);\n const priceFormatter = diContainer.get(serviceNames.priceFormatter);\n const { productFreeLabel } = useTranslation(['productFreeLabel']);\n\n const displayProductFreeLabel = config?.cartConfig?.displayProductFreeLabel;\n\n const hasOldPrice = originalPrice > discountedPrice;\n const hasFullDiscount = productDiscount === maxDiscountAmount;\n const showDiscounts = showDiscountedTotal && (hasOldPrice || !!productDiscount);\n\n const priceFormatted = priceFormatter.formatPriceWithCurrency(originalPrice);\n const discountedFormattedPrice = priceFormatter.formatPriceWithCurrency(\n discountedPrice ?? originalPrice\n );\n const discountedMarkDownItem = hasMarkDownPrice && showDiscounts;\n const discountedMarkDownItemClass = discountedMarkDownItem ? markDownDiscountedClass : '';\n\n return (\n \n {showDiscounts ? (\n <>\n \n {priceFormatted}\n \n {!!productDiscount && (\n \n {`${productDiscount}%`}\n \n )}\n {hasFullDiscount && displayProductFreeLabel ? (\n \n {productFreeLabel}\n \n ) : (\n \n {discountedFormattedPrice}\n \n )}\n \n ) : hasMarkDownPrice ? (\n <>\n \n {priceFormatted}\n \n \n {discountedFormattedPrice}\n \n \n ) : (\n \n {priceFormatted}\n \n )}\n \n );\n }\n);\n\nexport default PriceItem;\n","import { useState } from 'react';\nimport { ICartEngraving, IKitInfo } from '~domain/entities/CartItem/ICartItem';\nimport { deleteEngraving } from '~api/Engraving/DeleteEngraving';\n\ninterface IEngravingHook {\n engraving: ICartEngraving;\n kitInfo: IKitInfo;\n}\n\nexport const useEngraving = ({ engraving, kitInfo }: IEngravingHook) => {\n const {\n selectedFont,\n message,\n price: originalPrice,\n discountedUnitPriceWithTax: discountedPrice,\n discountPercent: productDiscount\n } = engraving;\n\n const { cartId, collection } = kitInfo;\n const selectedFontClassName = `engrave-choice-${selectedFont?.toLocaleLowerCase()}`;\n\n const [isLoading, setIsLoading] = useState(false);\n\n const removeItem = async () => {\n setIsLoading(true);\n await deleteEngraving({\n cartId,\n engraving,\n collection\n });\n setIsLoading(false);\n // @ts-ignore\n emit(events.CART_UPDATED, { newDisplayState: true, newVisibility: true });\n };\n\n return {\n message,\n isLoading,\n removeItem,\n priceDetails: { originalPrice: originalPrice ?? 0, discountedPrice, productDiscount },\n selectedFontClassName\n };\n};\n","import { makeRPCPost } from '~api/RpcAPI/RpcAPI';\nimport { ICartEngraving, IKitCollection } from '~domain/entities/CartItem/ICartItem';\n\ninterface IDeleteEngraving {\n cartId: number;\n engraving: ICartEngraving;\n collection: IKitCollection;\n}\n\nexport const deleteEngraving = ({\n cartId,\n engraving: { engravedSkuId, message, selectedFont, engravingType },\n collection: { id, name }\n}: IDeleteEngraving) => {\n return makeRPCPost([\n {\n method: 'form.rpc',\n params: [\n {\n _SUBMIT: 'alter_monogram',\n cmode: 'del',\n action: 'delete',\n add_sku_demo: 1,\n CART_ID: cartId,\n SAVED_MONOGRAM_PATTERN: '',\n SAVED_MONOGRAM_TEXT: message,\n SAVED_MONOGRAM_FONT: selectedFont,\n engraved_sku_id: engravedSkuId,\n SKU_BASE_ID: engravedSkuId,\n COLLECTION_NAME: name,\n ENGRAVING_TYPE: engravingType,\n COLLECTION_ID: id,\n CART_SKU_ITEM_ID: ''\n }\n ]\n }\n ]);\n};\n","import React from 'react';\nimport { observer } from 'mobx-react';\nimport { ITranslationsCollection, translate } from '@estee/elc-service';\n\nimport {\n Container,\n Label,\n PriceWrapper,\n EngraveMessage,\n EngravingDisclaimer\n} from '~views/ShoppingBagTab/CartSidebarItems/CartItem/EngravingComponent/EngravingComponentStyles';\n\nimport { classes } from '~utils/ClassNames';\nimport PriceItem from '~views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemPriceWrapper/PriceItem/PriceItem';\nimport { IEngravingKitItem } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/EngravingComponent/IEngravingComponent';\nimport { useEngraving } from './EngravingHook';\n\nconst engraveName = 'cart-item-engrave';\nexport const engraveClass = classes(engraveName);\nexport const messageClass = classes(`${engraveName}-message`);\nexport const priceClass = classes(`${engraveName}-price`);\nexport const disclaimerClass = classes(`${engraveName}-disclaimer`);\nexport const engravingLabelClass = classes(`${engraveName}-label`);\n\nexport const EngravingComponent = translate(['engravingLabel', 'engravingDisclaimerLabel'])(\n observer(({ engraving, kitInfo, translations }: IEngravingKitItem) => {\n const { message, priceDetails, selectedFontClassName } = useEngraving({\n engraving,\n kitInfo\n });\n\n const {\n engravingLabel,\n engravingDisclaimerLabel\n } = translations as ITranslationsCollection;\n\n return (\n \n \n \n \n \n \n {message.map((messageLine, i) => (\n

\n {`${messageLine}`}\n

\n ))}\n
\n \n {engravingDisclaimerLabel}\n \n
\n );\n })\n);\n","import styled from 'styled-components';\n\nimport { Colors } from '@estee/elc-base-theme';\n\nconst { black } = Colors;\n\nexport const StyledButton = styled.button`\n padding: 0;\n margin: 0;\n text-align: left;\n height: unset;\n line-height: unset;\n font-size: 14px;\n width: fit-content;\n background: unset;\n border: unset;\n border-bottom: 1px solid ${black};\n`;\n","import styled from 'styled-components';\nimport { ContentSpacing, breakpoint, Colors } from '@estee/elc-base-theme';\nimport { cartItemActionLinkTheme } from '~theme/default-theme';\nimport { StyledButton } from '~views/Collection/CollectionStyles';\n\nconst { space4, space8, space16, space12 } = ContentSpacing;\n\nexport const CartItemPanel = styled.div`\n display: flex;\n flex: 1;\n justify-content: center;\n align-items: center;\n flex-direction: row;\n min-height: 112px;\n border-bottom: 1px solid ${Colors.primary300};\n padding: ${space8} ${space16} ${space12} ${space16};\n`;\n\nexport const DetailsWrapper = styled.div`\n width: 70%;\n display: flex;\n flex-direction: column;\n\n [dir='rtl'] & {\n padding: ${space4} ${space4} 0 0;\n }\n`;\n\nexport const DescriptionWrapper = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nexport const SaveForLaterActionLink = styled.a`\n cursor: pointer;\n padding-top: ${space12};\n ${breakpoint('desktop')`\n display: block;\n `};\n ${cartItemActionLinkTheme};\n`;\n\nexport const StyledDetailsWrapper = styled(DetailsWrapper)`\n width: 70%;\n`;\n\nexport const StyledButtonsContainer = styled.div`\n display: flex;\n justify-content: flex-start;\n`;\n\nexport const RemoveLabel = styled(StyledButton)`\n margin-right: ${space8};\n`;\n","import { action, computed, observable } from 'mobx';\n\nimport {\n addToCollection,\n removeFromCollection\n} from '~api/CollectionsAPI/handlers/CollectionsHandlers';\nimport { CollectionRepository } from '~repositories/CollectionRepository/CollectionRepository';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport RemoveItemUseCase from '~use-cases/RemoveItemUseCase';\n\nexport interface ICollectionButtonControllerProps {\n collectionName: string;\n sku: string;\n}\n\nexport class CollectionButtonController {\n private _sku: string;\n private _collectionName: string;\n\n @observable private _isLoading: boolean = false;\n @observable private _collectionRepository: CollectionRepository = diContainer.get(\n serviceNames.collectionRepository\n );\n\n constructor({ collectionName, sku }: ICollectionButtonControllerProps) {\n this._sku = sku;\n this._collectionName = collectionName;\n }\n\n @action public addItem = async () => {\n this._isLoading = true;\n await addToCollection(this._collectionName, this._sku);\n\n this._collectionRepository.updateCollectionByName(this._collectionName);\n new RemoveItemUseCase({ skus: [this._sku?.toString()] }).execute();\n\n this._isLoading = false;\n };\n\n @action public removeItem = async () => {\n this._isLoading = true;\n await removeFromCollection(this._collectionName, this._sku);\n await this._collectionRepository.updateCollectionByName(this._collectionName);\n this._isLoading = false;\n };\n\n @action public isInCollection = () => {\n const collection = this._collectionRepository.getCollection(this._collectionName);\n\n return !!collection?.skus?.find(({ path }) => path.includes(this._sku));\n };\n\n @computed public get isLoading() {\n return this._isLoading || this._collectionRepository.isLoading;\n }\n}\n","import { observer } from 'mobx-react';\nimport React, { useState } from 'react';\n\nimport { CollectionButtonController } from './CollectionButtonController';\nimport { CollectionButtonProps } from './ICollectionButton';\nimport { StyledButton } from '../CollectionStyles';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translationArray = ['loading', 'saveForLater', 'remove'];\n\nexport const CollectionButton: React.FC = observer(\n (props: CollectionButtonProps) => {\n const { collectionName, sku } = props;\n const { loading, saveForLater, remove } = useTranslation(translationArray);\n\n const [controller] = useState(new CollectionButtonController({ collectionName, sku }));\n\n const { isLoading, addItem, removeItem, isInCollection } = controller;\n\n const inCollection = isInCollection();\n const showAddItem = !isLoading && !inCollection;\n const showRemoveItem =\n !isLoading && inCollection && remove && remove.substring(0, 2) !== '::';\n\n return (\n <>\n {isLoading &&
{loading}
}\n {showRemoveItem && (\n \n {remove}\n \n )}\n {showAddItem && (\n \n {saveForLater}\n \n )}\n \n );\n }\n);\n","import React from 'react';\nimport { observer } from 'mobx-react';\nimport { Emphasis } from '@estee/elc-base-theme';\n\nimport {\n TotalPriceItemWrapper,\n FreeItemLabel,\n TotalPrice,\n DiscountedPrice,\n OldPrice,\n PercentDiscount\n} from '~views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemPriceWrapper/CartItemPriceWrapperStyles';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nimport { classes } from '~utils/ClassNames';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport ITotalPriceItem from './ITotalPriceItem';\nimport { TTranslations } from '~views/Shared/Providers/Translations/TranslationsContext';\n\nconst cartClass = 'cart-item';\nexport const totalClass = classes('cart-item-total');\nexport const totalPriceWrapperClass = classes(`${cartClass}-total-price-wrapper`);\nexport const oldPriceClass = classes(`${cartClass}-old-total-price`);\nexport const freeClass = classes(`${cartClass}-free-price`);\nexport const sampleClass = classes(`${cartClass}-sample-price`);\nexport const percentClass = classes(`${cartClass}-percent`);\nexport const originalTotalClass = classes(`${cartClass}-original-total`);\n\nconst _translations = ['productFreeLabel', 'productSampleLabel'];\n\nconst TotalPriceItem: React.FC = observer((props: ITotalPriceItem) => {\n const {\n skuId,\n productDiscount,\n discountedPrice = 0,\n originalPrice = 0,\n freeItem,\n freeSample,\n showDiscountedTotal\n } = props;\n\n const { config } = diContainer.get(serviceNames.config);\n const priceFormatter = diContainer.get(serviceNames.priceFormatter);\n const displayProductFreeLabel = config?.cartConfig?.displayProductFreeLabel;\n const displayProductSampleLabel = config?.cartConfig?.displayProductSampleLabel;\n const translations = useTranslation(_translations);\n const { productFreeLabel, productSampleLabel } = translations || ({} as TTranslations);\n const hasOldPrice = originalPrice > discountedPrice;\n const priceFormatted = priceFormatter.formatPriceWithCurrency(originalPrice);\n\n return (\n \n {displayProductFreeLabel && freeItem ? (\n \n {productFreeLabel}\n \n ) : displayProductSampleLabel && freeSample ? (\n \n {productSampleLabel}\n \n ) : showDiscountedTotal && (productDiscount || hasOldPrice) ? (\n <>\n \n {priceFormatted}\n \n \n {priceFormatter.formatPriceWithCurrency(discountedPrice)}\n \n {productDiscount && (\n \n {`(${productDiscount}%)`}\n \n )}\n \n ) : (\n \n {priceFormatted}\n \n )}\n \n );\n});\n\nexport default TotalPriceItem;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { classes } from '~utils/ClassNames';\nimport { DiscountTypes } from '~api/utils/getOfferDiscountType';\n\nimport PriceItem from './PriceItem/PriceItem';\nimport TotalPriceItem from './TotalPriceItem/TotalPriceItem';\nimport { ICartItemPriceWrapper } from './ICartItemPriceWrapper';\nimport { Container, PriceContainer } from './CartItemPriceWrapperStyles';\n\nconst priceClass = classes('cart-item-price');\n\nconst CartItemPriceWrapper: React.FC = observer(\n ({ cartItem, className }) => {\n const priceWrapperClass = classes('cart-item-price-wrapper', className);\n\n const {\n unitPriceWithTax: originalPrice,\n appliedPriceWithTax: discountedTotalPrice,\n discountedUnitPriceWithTax: discountedPrice,\n discountPercent: productDiscount,\n product: { price: productPrice, isSample },\n discountType,\n appliedPrice: totalPrice,\n hasDiscount\n } = cartItem;\n\n const freeSample = discountedTotalPrice === 0 && isSample;\n const freeItem = discountedTotalPrice === 0 && !isSample;\n const showDiscountedTotal =\n !!discountType &&\n (discountType === DiscountTypes.dynamic || discountType === DiscountTypes.percentage);\n\n return (\n \n \n {(productPrice || productPrice === 0) && (\n \n )}\n \n \n \n );\n }\n);\n\nexport default CartItemPriceWrapper;\n","import React, { useState } from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\n\nimport { NumberSpinner } from '@estee/elc-number-spinner';\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\nimport { Body2 } from '@estee/elc-typography';\nimport { SpinnerIcon } from '@estee/elc-icons';\n\nimport { inheritBaseFont } from '~theme/default-theme';\nimport { classes } from '~utils/ClassNames';\nimport IQuantityItem from './IQuantityItem';\n\nconst Quantity = styled.div`\n display: flex;\n align-items: center;\n padding-top: ${ContentSpacing.space8};\n`;\nconst QtyLabel = styled(Body2)`\n color: ${Colors.primary700};\n font-size: ${ContentSpacing.space12};\n ${inheritBaseFont};\n`;\n\nconst quantityLabelClass = classes('cart-item-description-product-quantity-label');\nconst numberSpinnerClass = classes('cart-item-description-product-quantity-spinner-selector');\n\nconst QuantityItem: React.FC = observer(\n ({\n className,\n onQuantitySelect,\n skuId,\n readOnly,\n quantityLabel,\n quantity,\n maxQuantity,\n isSample,\n isKitItem,\n isDropdownDisabled\n }) => {\n const [loading, setLoading] = useState(false);\n const quantityClass = classes('cart-item-description-product-quantity', className);\n const isDisplayOnly = readOnly || isSample || isKitItem;\n const qtyLabel = quantityLabel ? `${quantityLabel}:${quantity}` : quantity;\n\n const onQuantitySelected = (value: number) => {\n if (onQuantitySelect != null) {\n setLoading(true);\n onQuantitySelect(value)?.then(() => {\n setLoading(false);\n });\n }\n };\n\n return (\n \n {loading ? (\n \n ) : isDisplayOnly ? (\n \n {qtyLabel}\n \n ) : (\n \n )}\n \n );\n }\n);\nexport default QuantityItem;\n","import styled from 'styled-components';\n\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\nimport { Body2, Caption } from '@estee/elc-typography';\n\nimport { ImageWrapper } from '~views/ImageWrapper/ImageWrapper';\nimport { inheritBaseFont } from '~theme/default-theme';\n\nimport IProduct from '~domain/entities/Product/IProduct';\n\nconst { space16, space12, space8, space4 } = ContentSpacing;\n\nexport const DefaultKitItemWrapper = styled.div`\n display: flex;\n flex-direction: row;\n border-bottom: 1px solid ${Colors.primary300};\n`;\n\nexport const StyledDefaultKitDescription = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n margin-bottom: ${ContentSpacing.space8};\n margin-left: ${ContentSpacing.space12};\n`;\n\nexport const StyledImageWrapper = styled(ImageWrapper)`\n min-width: ${ContentSpacing.space24};\n margin: 0;\n`;\n\nexport const StyledProductSub = styled(Body2)`\n font-size: ${space12};\n line-height: normal;\n cursor: pointer;\n text-overflow: ellipsis;\n white-space: break-spaces;\n width: inherit;\n overflow: hidden;\n ${inheritBaseFont};\n`;\n\nexport const StyledShade = styled(Caption)`\n padding-right: 17px;\n padding-top: ${space4};\n padding-bottom: ${space4};\n color: ${Colors.primary700};\n [dir='rtl'] & {\n padding-left: 17px;\n padding-right: 0;\n }\n\n &::before {\n content: '';\n display: block;\n border-radius: 50%;\n width: ${({ shadeCode }: Partial) => (shadeCode ? space16 : '0px')};\n height: ${({ shadeCode }: Partial) => (shadeCode ? space16 : '0px')};\n background: ${({ shadeCode }: Partial) => shadeCode};\n float: left;\n margin-right: ${space8};\n\n [dir='rtl'] & {\n float: right;\n margin-left: ${space8};\n margin-right: 0;\n }\n }\n\n ${inheritBaseFont};\n`;\n","import styled from 'styled-components';\n\nexport const FlexRow = styled.div`\n display: flex;\n flex-direction: row;\n\n [dir='rtl'] & {\n flex-direction: row-reverse;\n }\n`;\n","export const toHexCode = (val: string) => (!val || val?.match(/^#/gm) ? val : `#${val}`);\n","import React from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\n\nimport { Colors, ContentSpacing, Emphasis } from '@estee/elc-base-theme';\nimport { Caption } from '@estee/elc-typography';\n\nimport { FlexRow } from '../FlexRow/FlexRow';\n\nimport { IEmphasis } from '~theme/IEmphasis';\nimport { toHexCode } from '~utils/ToHexCode';\n\nconst { space4, space16 } = ContentSpacing;\n\nconst ShadeText = styled(Caption)`\n padding-right: 17px;\n padding-top: ${space4};\n padding-bottom: ${space4};\n color: ${Colors.primary700};\n`;\n\nconst ShadeSample = styled.div`\n display: block;\n border-radius: 50%;\n width: ${space16};\n height: ${space16};\n background: ${({ shadeCode }: { shadeCode: string }) => shadeCode};\n align-self: center;\n`;\n\nexport interface IShadeComponentProps {\n _shadeCode: string;\n shade: string;\n}\n\nexport const ShadeComponent = observer(({ _shadeCode, shade }: IShadeComponentProps) => {\n const shadeCode = toHexCode(_shadeCode);\n\n return !shadeCode ? null : (\n \n \n {shade}\n \n \n \n );\n});\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport DefaultKitItem from '~views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/KitDetails/KitDetailComponents/DefaultKitItem';\n\nimport ICartItem from '~domain/entities/CartItem/ICartItem';\nimport { IKitItem } from '~api/KitsAPI/utils/IKits';\n\ninterface IKitDetailsProps {\n cartItem: ICartItem;\n}\n\nconst kitItemComponentMap = {\n default: DefaultKitItem\n};\n\nexport const KitDetails = observer(({ cartItem }: IKitDetailsProps) => {\n const { kitInfo } = cartItem;\n\n return (\n
\n {kitInfo?.kitItems.map((item: IKitItem) => {\n const kitItemType = item?.type as keyof typeof kitItemComponentMap;\n const KitItemComponent = kitItemComponentMap[kitItemType];\n\n return ;\n })}\n
\n );\n});\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport {\n DefaultKitItemWrapper,\n StyledDefaultKitDescription,\n StyledImageWrapper,\n StyledProductSub\n} from './DefaultKitItemStyles';\n\nimport { IKitItem } from '~api/KitsAPI/utils/IKits';\nimport { ShadeComponent } from '~views/Shared/ShadeComponent/ShadeComponent';\n\ninterface IDefaultKitItem {\n kitItem: IKitItem;\n}\n\nconst DefaultKitItem = observer(({ kitItem }: IDefaultKitItem) => {\n const { name, shade, image, shadeCode } = kitItem;\n\n return (\n \n \n \n {name}\n {shade && }\n \n \n );\n});\n\nexport default DefaultKitItem;\n","import styled from 'styled-components';\n\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\nimport { Subtitle2, Caption, Body2 } from '@estee/elc-typography';\n\nimport { inheritBaseFont } from '~theme/default-theme';\n\nimport IProduct from '~domain/entities/Product/IProduct';\n\nconst { space4, space8, space16 } = ContentSpacing;\n\nexport const Description = styled.div`\n //flex: 1;\n width: 70%;\n`;\n\nexport const ProductName = styled(Subtitle2)`\n cursor: pointer;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: inherit;\n overflow: hidden;\n ${inheritBaseFont};\n`;\n\nexport const ProductSub = styled(Body2)`\n cursor: pointer;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: inherit;\n overflow: hidden;\n ${inheritBaseFont};\n`;\n\nexport const Size = styled(Caption)>`\n display: inline-block;\n padding-top: ${space4};\n padding-bottom: ${space4};\n padding-left: ${({ shadeCode }: Partial) => shadeCode && '17px'};\n [dir='rtl'] & {\n padding-left: 0;\n padding-right: ${({ shadeCode }: Partial) => shadeCode && '17px'};\n }\n\n ${inheritBaseFont};\n`;\n\nexport const Shade = styled(Caption)>`\n padding-right: 17px;\n padding-top: ${space4};\n padding-bottom: ${space4};\n color: ${Colors.primary700};\n border-right: 1px solid ${Colors.primary300};\n [dir='rtl'] & {\n padding-left: 17px;\n padding-right: 0;\n border-left: 1px solid ${Colors.primary300};\n border-right: 0;\n }\n\n &::before {\n content: '';\n display: block;\n border-radius: 50%;\n width: ${({ shadeCode }: Partial) => (shadeCode ? space16 : '0px')};\n height: ${({ shadeCode }: Partial) => (shadeCode ? space16 : '0px')};\n background: ${({ shadeCode }: Partial) => shadeCode};\n float: left;\n margin-right: ${space8};\n\n [dir='rtl'] & {\n float: right;\n margin-left: ${space8};\n margin-right: 0;\n }\n }\n\n ${inheritBaseFont};\n`;\n\nexport const ProductLink = styled.a`\n text-decoration: none;\n display: flex;\n flex-direction: column;\n border-bottom: none;\n padding-bottom: ${space8};\n &:hover,\n &:focus {\n text-decoration: none;\n }\n`;\n\nexport const ShadeSizeWrapper = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nexport const ProductDescriptionWrapper = styled.div`\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n flex-direction: column;\n width: 100%;\n padding-bottom: ${space8};\n`;\n\nexport const ProductPoints = styled(Body2)`\n text-overflow: ellipsis;\n width: inherit;\n overflow: hidden;\n ${inheritBaseFont};\n`;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\ninterface ITextLabel {\n text: string;\n}\n\nconst TextLabel = observer(({ text }: ITextLabel) => {\n const isHTML = text && text.match(/(<([^>]+)>)/gi);\n\n return isHTML ?
: <>{text};\n});\n\nexport default TextLabel;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport QuantityItem from '~views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/QuantityItem/QuantityItem';\nimport { KitDetails } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/CartItemDescription/KitDetails/KitDetails';\nimport { classes } from '~utils/ClassNames';\nimport { toHexCode } from '~utils/ToHexCode';\nimport {\n Description,\n ProductLink,\n ProductName,\n ProductPoints,\n ProductSub,\n ProductDescriptionWrapper,\n ShadeSizeWrapper,\n Shade,\n Size\n} from './CartItemDescriptionStyles';\n\nimport { ICartItemConfig } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ICartItem';\nimport ICartItemDescription from './ICartItemDescription';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\nimport TextLabel from '~sharedComponents/TextLabel/TextLabel';\nimport { calculatePoints } from '~utils/LoyaltyPoints';\n\nconst descriptionName = 'cart-item-description';\nconst descriptionClass = classes(`${descriptionName}`);\nconst nameClass = classes(`${descriptionName}-name`);\nconst subClass = classes(`${descriptionName}-sku-description`);\nconst pointsClass = classes(`${descriptionName}-points`);\nconst linkClass = classes(`${descriptionName}-link`);\nconst productDescriptionClass = classes(`${descriptionName}-product`);\nconst shadeSizeClass = classes(`${descriptionName}-product-wrapper`);\nconst sizeClass = classes(`${descriptionName}-product-wrapper-size`);\nconst shadeClass = classes(`${descriptionName}-product-wrapper-shade`);\n\nconst translationList = ['sizeLabel', 'quantityLabel', 'productPPMultiplier', 'loyaltyPointsLabel'];\n\nconst CartItemDescription: React.FC = observer(\n ({ cartItem, config, onQuantitySelect }: ICartItemDescription) => {\n const { product, isKitItem, quantity, skuId, hasEngraving } = cartItem;\n const { name, description, shadeCode: _shadeCode, shade, size, url, price } = product;\n\n const {\n drawerIsReadOnly = true,\n pageIsReadOnly = true,\n itemMaxQuantity = 6,\n enableKitDetails = false,\n displayLoyaltyPoints = false\n } = config as ICartItemConfig;\n const {\n sizeLabel,\n quantityLabel,\n productPPMultiplier,\n loyaltyPointsLabel\n } = useTranslation(translationList);\n\n const isReadOnly = drawerIsReadOnly || pageIsReadOnly;\n const displayKitDetailedList = isKitItem && enableKitDetails && !hasEngraving;\n const productPointsLabel = `${calculatePoints({\n price,\n multiplier: productPPMultiplier\n })} ${loyaltyPointsLabel}`;\n const shadeCode = toHexCode(_shadeCode);\n\n return (\n \n \n \n \n \n \n {description}\n \n \n {displayKitDetailedList && }\n \n \n {shadeCode && (\n \n {shade}\n \n )}\n {size && (\n \n {`${sizeLabel}: ${size}`}\n \n )}\n \n {displayLoyaltyPoints && (\n {productPointsLabel}\n )}\n \n \n \n );\n }\n);\nexport default CartItemDescription;\n","export const calculatePoints = ({ price, multiplier }: { price: number; multiplier: string }) =>\n Math.round(parseInt(multiplier, 10) * price);\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { RemoveLabel } from '../CartItemStyles';\nimport { classes } from '~utils/ClassNames';\nimport { RemoveIconWrapper } from '~theme/default-theme';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\nimport { TTranslations } from '~sharedComponents/Providers/Translations/TranslationsContext';\n\ninterface IRemoveButton {\n productName: string;\n removeTextButton: boolean;\n onClick(): void;\n onKeyPress(event: React.KeyboardEvent): void;\n}\n\nexport const removeClass = classes('cart-item-remove');\n\nconst RemoveButton = observer(\n ({ productName, removeTextButton, onClick, onKeyPress }: IRemoveButton) => {\n const translations = useTranslation(['removeLabel']);\n const { removeLabel } = translations || ({} as TTranslations);\n\n return (\n
\n {removeTextButton && removeLabel ? (\n \n {removeLabel}\n \n ) : (\n \n )}\n
\n );\n }\n);\n\nexport default RemoveButton;\n","export const SERVICE_NAME = 'pg-service-cart';\n\nexport const FAVORITES_LIST = 'FAVORITES_LIST';\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { SpinnerIcon } from '@estee/elc-icons';\n\nimport { ReplenishmentModule } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentComponent';\nimport { EngravingComponent } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/EngravingComponent/EngravingComponent';\nimport {\n CartItemPanel,\n StyledDetailsWrapper,\n DescriptionWrapper,\n StyledButtonsContainer\n} from './CartItemStyles';\nimport { CollectionButton } from '~views/Collection/CollectionButton/CollectionButton';\nimport CartItemPriceWrapper from './CartItemPriceWrapper/CartItemPriceWrapper';\nimport CartItemDescription from './CartItemDescription/CartItemDescription';\nimport { StyledImageWrapper } from '~theme/default-theme';\nimport { classes } from '~utils/ClassNames';\n\nimport { ICartItem, ICartItemConfig } from './ICartItem';\nimport { useRemove } from './RemoveButton/hook/RemoveButtonHook';\nimport RemoveButton from './RemoveButton/RemoveButton';\nimport { FAVORITES_LIST } from '~setup/constants';\n\nconst cartItemName = 'cart-item';\nexport const removeClass = classes(`${cartItemName}-remove`);\nexport const removeIconClass = classes(`${cartItemName}-remove-icon`);\nexport const descriptionWrapperClass = classes(`${cartItemName}-description-wrapper`);\nexport const detailsWrapperClass = classes('elc-cart-item-details-wrapper');\nconst buttonsContainerClass = classes(`${cartItemName}-buttons-container`);\n\nconst CartItem: React.FC = observer(\n ({ cartItem, config, onRemoveItem, onQuantitySelect }: ICartItem) => {\n const { skuId, product, isReplenishable, hasEngraving, engraving, kitInfo } = cartItem;\n\n const {\n enableReplenishment = false,\n collection: {\n enabled: collectionEnabled = false,\n collectionName = FAVORITES_LIST\n } = {},\n removeTextButton = false,\n removeFreeItems = false,\n productFreeLabel = false\n } = config as ICartItemConfig;\n\n const { showRemove, isRemoving, onKeyPress, onRemovedItem } = useRemove({\n cartItem,\n removeFreeItems,\n onRemoveItem\n });\n\n const onQuantitySelected = async (val: number) =>\n onQuantitySelect?.({ skus: [skuId], quantity: val });\n\n const showReplenishmentModule = enableReplenishment && isReplenishable;\n const displayEngraving = hasEngraving && !!engraving && !!kitInfo;\n const isReadOnly = config?.drawerIsReadOnly || config?.pageIsReadOnly;\n const showAddToCollectionButton = collectionEnabled && !product.isSample;\n const cartItemPanelClass = classes(\n `${cartItemName}-panel`,\n product.isSample ? 'sample' : ''\n );\n\n return (\n \n \n \n \n \n \n \n {showReplenishmentModule && (\n \n )}\n \n {isRemoving ? (\n \n ) : (\n showRemove && (\n \n )\n )}\n {showAddToCollectionButton && (\n \n )}\n \n {displayEngraving && (\n \n )}\n \n \n );\n }\n);\nexport default CartItem;\n","import { useState } from 'react';\nimport ICartItem from '~domain/entities/CartItem/ICartItem';\n\nexport interface IUseRemove {\n cartItem: ICartItem;\n removeFreeItems: boolean;\n onRemoveItem?(cartItem: ICartItem): Promise;\n}\n\nexport const useRemove = (props: IUseRemove) => {\n const { cartItem, removeFreeItems, onRemoveItem } = props;\n const [isRemoving, setIsRemoving] = useState(false);\n const { product } = cartItem;\n\n const showRemove =\n removeFreeItems ||\n (!product.isSample && !cartItem.isGiftItem && cartItem.unitPriceWithTax !== 0);\n\n const onRemovedItem = () => {\n if (onRemoveItem) {\n setIsRemoving(true);\n onRemoveItem(cartItem).then(() => {\n setIsRemoving(false);\n });\n }\n };\n\n const onKeyPress = (e: React.KeyboardEvent) => {\n const enterKeyCode = 13;\n if (e.which === enterKeyCode) {\n onRemovedItem();\n }\n };\n\n return {\n isRemoving,\n onKeyPress,\n onRemovedItem,\n showRemove\n };\n};\n","import styled from 'styled-components';\n\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\n\nimport { IMessagingProps } from '~views/ShoppingBagTab/CartSidebarItems/MessagingPanel/IMessagingPanel';\n\nconst { space4, space8, space12 } = ContentSpacing;\n\nexport const MessagingPanelWrapper = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n border-bottom: 1px solid ${Colors.primary300};\n`;\n\nexport const MessagingPanelMessageWrapper = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border: 1px solid ${({ color }: IMessagingProps) => color};\n border-radius: ${space4};\n background: ${({ color }: IMessagingProps) => color}19;\n padding: ${space12};\n width: 86%;\n margin: ${space12};\n`;\nexport const MessagingText = styled.div`\n color: ${({ color }: IMessagingProps) => color};\n font-family: inherit;\n margin: 0 0 0 ${space8};\n`;\n","import React, { useContext } from 'react';\nimport { observer } from 'mobx-react';\n\nimport { Colors } from '@estee/elc-base-theme';\n\nimport {\n MessagingPanelWrapper,\n MessagingPanelMessageWrapper,\n MessagingText\n} from './MessagingPanelStyles';\n\nimport { MessageTypes } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModal/IReplenishmentDisclaimerModal';\nimport { ReplenishmentModalContext } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModalHook/ReplenishmentDIsclaimerModalContext';\n\nconst MessagingPanel = observer(() => {\n const { messaging } = useContext(ReplenishmentModalContext);\n const displayPanel = !!messaging;\n const isError = messaging?.type === MessageTypes.ERROR;\n const isSuccess = messaging?.type === MessageTypes.SUCCESS;\n const color = isError ? Colors.danger : isSuccess ? Colors.success : '';\n const message = messaging?.msg;\n\n return (\n <>\n {displayPanel && (\n \n \n {message && {message}}\n \n \n )}\n \n );\n});\n\nexport default MessagingPanel;\n","import { useState } from 'react';\n\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\nimport { IMessaging } from '~views/ShoppingBagTab/CartSidebarItems/MessagingPanel/IMessagingPanel';\nimport {\n IReplenishmentDisclaimer,\n AgreementTypes,\n MessageTypes\n} from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModal/IReplenishmentDisclaimerModal';\n\nconst translations = [\n 'replenishmentDisclaimerDeclined',\n 'itemCartScheduledForReplenishment',\n 'replenishmentNotApplied'\n];\n\nexport const ReplenishmentDisclaimerCookie = 'replenishmentDisclaimerAgreement';\n\nexport default (replenishmentDisclaimer: IReplenishmentDisclaimer) => {\n const { agreementStatus } = replenishmentDisclaimer;\n const [messaging, setMessaging] = useState(null);\n const [displayModal, setDisplayModal] = useState(false);\n const [agreement, setAgreement] = useState(\n AgreementTypes[agreementStatus as keyof typeof AgreementTypes] || null\n );\n\n const {\n replenishmentDisclaimerDeclined,\n itemCartScheduledForReplenishment,\n replenishmentNotApplied\n } = useTranslation(translations);\n\n const setMessage = (type: MessageTypes) => {\n const messages = {\n success: itemCartScheduledForReplenishment,\n error: replenishmentNotApplied,\n rejected: replenishmentDisclaimerDeclined\n };\n setMessaging({ type: type, msg: messages[type] });\n };\n\n const onClickAgreementAccepted = () => {\n setAgreement(AgreementTypes.ACCEPTED);\n localStorage.setItem(ReplenishmentDisclaimerCookie, AgreementTypes.ACCEPTED.toString());\n setDisplayModal(false);\n };\n\n const onClickCloseModal = () => {\n setAgreement(AgreementTypes.REJECTED);\n setMessage(MessageTypes.REJECTED);\n localStorage.setItem(ReplenishmentDisclaimerCookie, AgreementTypes.REJECTED.toString());\n setDisplayModal(false);\n };\n\n return {\n agreement,\n displayModal,\n messaging,\n setMessage,\n setAgreement,\n setDisplayModal,\n onClickAgreementAccepted,\n onClickCloseModal\n };\n};\n","import styled from 'styled-components';\n\nimport { ResponsiveModal } from '@estee/elc-responsive-modal';\nimport { RemoveIcon } from '@estee/elc-icons';\nimport { Button, OutlinedButton } from '@estee/elc-buttons';\nimport { Heading2, Body1 } from '@estee/elc-typography';\nimport { breakpoint, ContentSpacing } from '@estee/elc-base-theme';\n\nconst { space16, space20, space48 } = ContentSpacing;\n\nexport const ReplenishmentModalWrapper = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-end;\n`;\n\nexport const ReplenishmentModalButtonsWrapper = styled.div`\n display: flex;\n flex-direction: column;\n width: 95%;\n justify-content: space-between;\n margin: 14px;\n\n ${breakpoint('largeScreen')`{\n flex-direction: row; \n }`}\n`;\n\nexport const ResponsiveModalWrapper = styled(ResponsiveModal)`\n padding: ${space16};\n`;\n\nexport const StyledRemoveIcon = styled(RemoveIcon)`\n width: 14px;\n height: 14px;\n`;\n\nexport const StyledButton = styled(Button)`\n display: flex;\n align-items: center;\n justify-content: center;\n max-height: ${space48};\n width: 273px;\n`;\n\nexport const StyledOutlinedButton = styled(OutlinedButton)`\n display: flex;\n align-items: center;\n justify-content: center;\n max-height: ${space48};\n width: 273px;\n`;\n\nexport const StyledHeading2 = styled(Heading2)`\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 14px;\n`;\n\nexport const StyledParagraph = styled(Body1)`\n padding: ${space20};\n`;\n","import React, { useContext } from 'react';\nimport { observer } from 'mobx-react';\n\nimport {\n StyledButton,\n ResponsiveModalWrapper,\n ReplenishmentModalWrapper,\n StyledOutlinedButton,\n ReplenishmentModalButtonsWrapper,\n StyledHeading2,\n StyledParagraph\n} from './ReplenishmentDisclaimerModalStyles';\n\nimport { IReplenishmentModalProps } from './IReplenishmentDisclaimerModal';\nimport { RemoveIconWrapper, RemoveButton } from '~theme/default-theme';\nimport {\n removeClass,\n removeIconClass\n} from '~views/ShoppingBagTab/CartSidebarItems/CartItem/CartItem';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\nimport { classes } from '~utils/ClassNames';\nimport { ReplenishmentModalContext } from '../ReplenishmentDisclaimerModalHook/ReplenishmentDIsclaimerModalContext';\n\nconst translationFields = [\n 'agreeLabel',\n 'cancelLabel',\n 'replenishmentDisclaimer',\n 'replenishmentDisclaimerConfirmation'\n];\n\nconst replenishmentModalClass = classes('cart-sidebar-replenishment-modal');\n\nexport const ReplenishmentDisclaimerModal = observer(\n ({ displayModal }: IReplenishmentModalProps) => {\n const {\n agreeLabel,\n cancelLabel,\n replenishmentDisclaimer,\n replenishmentDisclaimerConfirmation\n } = useTranslation(translationFields);\n\n const { onClickCloseModal, onClickAgreementAccepted } = useContext(\n ReplenishmentModalContext\n );\n\n return (\n \n \n \n \n \n \n {replenishmentDisclaimerConfirmation}\n \n {replenishmentDisclaimer}\n \n {cancelLabel}\n \n {agreeLabel}\n \n \n \n \n );\n }\n);\n","import React from 'react';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\n\nimport { classes } from '~utils/ClassNames';\nimport CartItem from './CartItem/CartItem';\n\nimport ICartSidebarItems from './ICartSidebarItems';\n\nimport MessagingPanel from '~views/ShoppingBagTab/CartSidebarItems/MessagingPanel/MessagingPanel';\nimport useReplenishmentDisclaimerModal, {\n ReplenishmentDisclaimerCookie\n} from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModalHook/ReplenishmentDisclaimerModalHook';\nimport { ReplenishmentModalContext } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModalHook/ReplenishmentDIsclaimerModalContext';\nimport { ReplenishmentDisclaimerModal } from '~views/ShoppingBagTab/CartSidebarItems/CartItem/ReplenishmentComponent/ReplenishmentDisclaimerModal/ReplenishmentDisclaimerModal';\n\nconst ItemsContainer = styled.div`\n flex-grow: 1;\n`;\n\nconst ItemsList = styled.div`\n width: 100%;\n`;\n\nconst cartOverlaySidebarItemsClass = classes('cart-sidebar-sidebar-items');\n\nconst CartSidebarItems: React.FC = observer(\n ({ cartItems, onRemoveItem, onQuantitySelect, config, translations }) => {\n const agreementStatus = localStorage.getItem(ReplenishmentDisclaimerCookie);\n const replenishmentModalProps = useReplenishmentDisclaimerModal({\n agreementStatus\n });\n\n return (\n \n \n \n \n {cartItems.map((item) => (\n \n ))}\n \n \n \n {({ agreement, displayModal }) =>\n !agreement && \n }\n \n \n );\n }\n);\n\nexport default CartSidebarItems;\n","import styled from 'styled-components';\nimport { Body2, Heading6 } from '@estee/elc-typography';\nimport { ContentSpacing } from '@estee/elc-base-theme';\nimport { Button } from '@estee/elc-buttons';\n\nimport { defaultCTA, inheritBaseFont, StyledFooter } from '~theme/default-theme';\n\nexport const StyledContent = styled.div`\n display: flex;\n flex-direction: column;\n height: 100%;\n align-items: flex-start;\n justify-content: center;\n`;\n\nexport const EmptyCartContent = styled.div`\n display: flex;\n flex-direction: column;\n height: 100%;\n align-items: flex-start;\n justify-content: flex-start;\n min-width: 380px;\n min-height: 112px;\n padding: ${ContentSpacing.space32} ${ContentSpacing.space16} 0 ${ContentSpacing.space16};\n`;\n\nexport const TitleLabel = styled(Heading6)`\n margin-top: 16px;\n margin-bottom: 16px;\n ${inheritBaseFont};\n`;\n\nexport const CartErrorsContent = styled(Body2)`\n text-align: justify;\n margin-bottom: 24px;\n display: flex;\n flex-direction: column;\n ${inheritBaseFont};\n`;\n\nexport const GoShoppingButton = styled(Button)`\n ${defaultCTA};\n ${inheritBaseFont};\n`;\n\nexport const EmptyCartStyledFooter = styled(StyledFooter)`\n width: 100%;\n`;\n","import React from 'react';\nimport { observer } from 'mobx-react';\nimport { EmptyCartIcon } from '@estee/elc-icons';\nimport IEmptyCart from '~views/EmptyCart/IEmptyCart';\nimport { StyledContent, EmptyCartContent, TitleLabel, CartErrorsContent } from './EmptyCartStyles';\n\nconst EmptyCart: React.FC = observer(({ cartEmpty, cartEmptyTitleLabel }) => {\n return (\n \n \n \n {cartEmptyTitleLabel}\n {cartEmpty}\n \n \n );\n});\n\nexport default EmptyCart;\n","import { useState } from 'react';\n\nimport CartRepository from '~repositories/CartRepository/CartRepository';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport UpdateCartUseCase from '~use-cases/UpdateCartUseCase';\nimport FetchedCartInfoUseCase from '~use-cases/FetchedCartInfoUseCase';\n\nexport const useCart = (baseSkuId?: number | string) => {\n const { cart }: CartRepository = diContainer.get(serviceNames.cartRepository);\n const [isLoading, setIsLoading] = useState(false);\n\n const fetchCart = () => {\n setIsLoading(true);\n new FetchedCartInfoUseCase().execute().finally(() => {\n setIsLoading(false);\n });\n };\n\n const addToCart = async () => {\n setIsLoading(true);\n await new UpdateCartUseCase({ skus: [baseSkuId?.toString() || ''], quantity: 1 }).execute();\n setIsLoading(false);\n };\n\n const removeFromCart = async () => {\n setIsLoading(true);\n await new UpdateCartUseCase({ skus: [baseSkuId?.toString() || ''], quantity: 0 }).execute();\n setIsLoading(false);\n };\n\n const isInCart = () => cart.cartItems.find(({ skuId }) => skuId === baseSkuId);\n\n return { addToCart, removeFromCart, isInCart, fetchCart, isLoading };\n};\n","import { useEffect, useState } from 'react';\n\nimport DonationsController from '~views/DonationsExpander/DonationsController';\nimport { diContainer } from '~setup/diContainer';\nimport { useCart } from '~api/CartAPI/CartHook';\nimport serviceNames from '~setup/CartService';\n\nexport const useDonations = () => {\n const [controller] = useState(diContainer.get(serviceNames.donationsViewController));\n const [{ config }] = useState(diContainer.get(serviceNames.config));\n const { learnMoreUrl } = config?.cartConfig?.donationsConfigs || '#';\n const {\n selectedDonation,\n donations,\n selectedPrice,\n fetchDonations,\n setSelectedDonation,\n setSelectedPrice\n } = controller as DonationsController;\n\n const { addToCart } = useCart(selectedPrice?.skuId || '');\n\n useEffect(fetchDonations, []);\n\n return {\n donations,\n selectedDonation,\n selectedPrice,\n learnMoreUrl,\n setSelectedDonation,\n setSelectedPrice,\n addToCart\n };\n};\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\nimport styled from 'styled-components';\n\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\n\nimport { useDonations } from '~api/DonationsAPI/hooks/DonationsHook';\n\nimport { IDonation } from '~domain/entities/Donation/IDonation';\nimport { ImageWrapper } from '~views/ImageWrapper/ImageWrapper';\nimport { classes } from '~utils/ClassNames';\n\ninterface IDonationsSelectorProps {\n donations: IDonation[];\n}\n\nconst { space8, space4 } = ContentSpacing;\nconst { white, black, primary900 } = Colors;\n\nconst StyledSelectorWrapper = styled.div`\n display: flex;\n flex-direction: row;\n overflow-x: scroll;\n`;\n\nconst StyledButton = styled.button`\n margin: ${space8};\n max-width: 125px;\n min-width: 125px;\n max-height: 70px;\n background: ${white};\n box-shadow: 0 0 ${space4} 0 ${black}24;\n border-radius: 5px;\n\n &:hover {\n background: ${white};\n }\n\n &.selected {\n border: 2px solid ${primary900};\n }\n`;\n\nexport const selectorWrapper = 'donations-selector-wrapper';\nexport const selectorButton = 'donations-selector-button';\nexport const selectorImage = 'donations-selector-image';\n\nconst DonationsSelector = observer(({ donations }: IDonationsSelectorProps) => {\n const { selectedDonation, setSelectedDonation } = useDonations();\n\n const onClick = (id: IDonation['id']) => {\n const newDonation = donations?.find((donation) => donation.id === id);\n setSelectedDonation(newDonation);\n };\n\n return (\n \n {donations?.map(({ id, name, imageUrl }: IDonation) => {\n const selectedClass = selectedDonation?.id === id ? 'selected' : '';\n\n return (\n onClick(id)}\n key={id}\n className={classes(selectorButton, selectedClass)}\n data-testid={`${selectorButton}-${id}`}\n >\n \n \n );\n })}\n \n );\n});\n\nexport default DonationsSelector;\n","import React, { ChangeEvent } from 'react';\nimport { observer } from 'mobx-react-lite';\nimport styled from 'styled-components';\n\nimport { ContentSpacing } from '@estee/elc-base-theme';\n\nimport { useDonations } from '~api/DonationsAPI/hooks/DonationsHook';\nimport { classes } from '~utils/ClassNames';\n\nimport { IDonationPriceRange } from '~domain/entities/Donation/IDonation';\n\nconst StyledSelectorWrapper = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nconst StyledLabel = styled.label`\n margin: ${ContentSpacing.space8};\n`;\n\nconst StyledInput = styled.input`\n margin-right: ${ContentSpacing.space8};\n`;\n\ninterface IPriceSelectorProps {\n prices: IDonationPriceRange[];\n}\n\nexport const priceSelector = 'donations-panel-price-selector';\nexport const priceSelectorLabel = 'donations-panel-price-selector-label';\nexport const priceSelectorOption = 'donations-panel-price-selector-option';\n\nconst PriceSelector = observer(({ prices }: IPriceSelectorProps) => {\n const { selectedPrice, setSelectedPrice, selectedDonation } = useDonations();\n\n const onDonationPriceChange = (e: ChangeEvent) => {\n const newPrice = selectedDonation?.prices.find(\n ({ price }) => price.toString() === e.target.value.toString()\n ) as IDonationPriceRange;\n setSelectedPrice(newPrice);\n };\n\n return (\n \n {prices.map(({ price, skuId }, i) => {\n const isChecked = price?.toString() === selectedPrice?.price?.toString();\n\n return (\n \n \n {price}\n \n );\n })}\n \n );\n});\n\nexport default PriceSelector;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\nimport styled from 'styled-components';\n\nimport { useDonations } from '~api/DonationsAPI/hooks/DonationsHook';\nimport { Button } from '@estee/elc-buttons';\nimport { Caption } from '@estee/elc-typography';\nimport DonationsSelector from '~views/DonationsPanel/DonationsSelector/DonationsSelector';\nimport PriceSelector from '~views/DonationsPanel/PriceSelector/PriceSelector';\nimport { classes } from '~utils/ClassNames';\nimport { useTranslation } from '~views/Shared/Providers/Translations/TranslationsHook';\n\nconst translationsList = ['donationTo', 'learnMore', 'addToBagButtonLabel'];\n\nconst StyledDonationsWrapper = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport const donationsPanelName = 'donations-panel';\nexport const charityTitle = `${donationsPanelName}-title`;\nexport const charityName = `${donationsPanelName}-selected-name`;\nexport const charityDesc = `${donationsPanelName}-selected-description`;\nexport const learnMoreName = `${donationsPanelName}-learn-more`;\nexport const addToBagBtn = `${donationsPanelName}-add-to-bag`;\n\nconst DonationsPanel = observer(() => {\n const { donationTo, learnMore, addToBagButtonLabel } = useTranslation(translationsList);\n const { selectedDonation, donations, addToCart, learnMoreUrl } = useDonations();\n const showSelectMultipleTitle = !donations?.length;\n const showPriceSelector = donations && selectedDonation;\n\n return (\n \n {showSelectMultipleTitle && (\n

\n {donationTo}\n

\n )}\n {donations && }\n

\n {selectedDonation?.name}\n

\n \n {selectedDonation?.description}\n \n \n {learnMore}\n \n {showPriceSelector && }\n \n \n );\n});\n\nexport default DonationsPanel;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { Accordion, LabelSlide } from '@estee/elc-accordion';\n\nimport DonationsPanel from '~views/DonationsPanel/DonationsPanel';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translationsList = ['makeADonation'];\n\nconst DonationsExpander = observer(() => {\n const { makeADonation } = useTranslation(translationsList);\n\n return (\n \n \n \n \n \n );\n});\n\nexport default DonationsExpander;\n","import { observer } from 'mobx-react';\nimport React from 'react';\nimport styled from 'styled-components';\n\nimport { SpinnerIcon } from '@estee/elc-icons';\nimport { Colors } from '@estee/elc-base-theme';\nimport { classes } from '~utils/ClassNames';\n\nconst { black } = Colors;\n\nexport interface ISpinnerWrapperProps {\n isLoading: boolean;\n children: React.ReactChild;\n className?: string;\n}\n\nconst StyledWrapper = styled.div`\n position: relative;\n`;\n\nconst StyledChildren = styled.div``;\n\nconst StyledSpinner = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background: ${black};\n opacity: 0.3;\n display: flex;\n align-items: center;\n justify-content: space-around;\n`;\n\nconst spinnerName = 'spinner-wrapper';\nconst styledSpinnerName = 'styled-spinner';\nconst spinnerIconName = 'spinner-icon';\n\nexport const SpinnerWrapper: React.FC = observer(\n ({ children, isLoading, className }: ISpinnerWrapperProps) => (\n \n \n {children}\n \n {isLoading && (\n \n \n \n )}\n \n )\n);\n","import { action, computed, observable } from 'mobx';\n\nimport { removeFromCollection } from '~api/CollectionsAPI/handlers/CollectionsHandlers';\nimport { CollectionRepository } from '~repositories/CollectionRepository/CollectionRepository';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\n\nexport interface ICollectionCarouselControllerProps {\n collectionName: string;\n}\n\nexport class CollectionCarouselController {\n private _collectionName: string;\n\n @observable private _isLoading: boolean = false;\n @observable private _collectionRepository: CollectionRepository = diContainer.get(\n serviceNames.collectionRepository\n );\n\n constructor({ collectionName }: ICollectionCarouselControllerProps) {\n this._collectionName = collectionName;\n }\n\n @action public removeItem = (path: string) => async () => {\n this._isLoading = true;\n const baseSkuId = path.match(/(?:SKU)(?[\\d]*)/)?.groups?.baseSku || '';\n\n await removeFromCollection(this._collectionName, baseSkuId);\n await this._collectionRepository.updateCollectionByName(this._collectionName);\n this._isLoading = false;\n };\n\n @action public getSkuList = () => {\n return this._collectionRepository.getCollection(this._collectionName);\n };\n\n @computed public get isLoading() {\n return this._isLoading || this._collectionRepository.isLoading;\n }\n}\n","import { Buffer } from 'buffer';\nimport { request, gql } from 'graphql-request';\nimport { diContainer } from '~setup/diContainer';\n\nimport serviceNames from '~setup/CartService';\nimport { ISDProduct } from '~api/ProductAPI/IProductAPIs';\n\n//const GQLEndpoint = 'https://uat.ncsa.sdapi.io/stardust-prodcat-product-v3/graphql/core/v1/extension/v1'\nconst GQLEndpoint = '/productAPI';\n\nconst getGQLHeaders = () => {\n const buid = diContainer.get(serviceNames.config)?.businessUnitId;\n\n return {\n authorizationtoken: Buffer.from(`${buid}:${window.location.origin}`).toString('base64'),\n 'business-unit': buid,\n clientid: 'drupal-be-client'\n };\n};\n\nconst query = gql`\n query product($skuIds: [String!]!) {\n products(\n filter: [\n { product_id: { in: $skuIds } }\n { skus: { filter: [{ sku_id: { in: $skuIds } }] } }\n ]\n ) {\n items {\n default_category {\n id\n key\n value\n }\n description\n display_name\n indexable_keywords {\n value\n }\n is_hazmat\n is_product_published\n is_search_suppressed\n last_modified\n media {\n large {\n alt\n height\n position\n src\n type\n width\n }\n responsive {\n alt\n height\n position\n src\n type\n width\n }\n }\n parent_category {\n id\n position\n value\n }\n product_badge\n product_id\n product_title_tag\n product_url\n reviews {\n average_rating\n number_of_reviews\n }\n skus {\n items {\n perlgem {\n SKU_BASE_ID\n }\n engraving_options {\n value\n }\n iln_listing\n iln_version_number\n inventory_status\n inventory_status\n inventory_status\n is_default_sku\n is_discountable\n is_engravable\n is_giftwrap\n is_search_suppressed\n is_under_weight_hazmat\n life_of_product\n material_code\n media {\n large {\n alt\n height\n position\n src\n type\n width\n }\n medium {\n alt\n height\n position\n src\n type\n width\n }\n responsive {\n alt\n height\n position\n src\n type\n width\n }\n small {\n alt\n height\n position\n src\n type\n width\n }\n }\n prices {\n currency\n exclude_tax {\n original_price\n original_price_formatted\n price\n price_formatted\n price_per_unit\n price_per_unit_formatted\n }\n include_tax {\n original_price\n original_price_formatted\n price\n price_formatted\n price_per_unit\n price_per_unit_formatted\n }\n is_discounted\n }\n set_components {\n product {\n display_name\n }\n quantity\n sku {\n prices {\n currency\n exclude_tax {\n price\n }\n include_tax {\n price\n }\n }\n shades {\n description\n hex_val\n name\n }\n sku_id\n }\n }\n sku_display_order\n sku_id\n sku_type\n tags {\n items {\n id\n key\n key\n }\n }\n unit_size_formatted\n upc\n }\n }\n tags {\n items {\n id\n key\n key\n }\n }\n }\n }\n }\n`;\n\nexport const getGQLClient = (skuIds: string[]): Promise =>\n request(GQLEndpoint, query, { skuIds }, getGQLHeaders());\n","import { query, serviceQueries } from '@estee/elc-service-bus';\n\nimport { debounceAggregator } from 'src/utils/debounceAggregator';\nimport { isVulcan } from '~utils/isVulcan';\n\nimport { ISDProduct } from './IProductAPIs';\nimport { getGQLClient } from '../GraphQLClient/GraphQlClient';\n\nconst localQuery = (productIds: string[]) =>\n query(serviceQueries.GET_PRODUCT_DATA, {\n filterBy: { productIds, skus: { skuIds: productIds } }\n }) as Promise;\n\n/// getGQLClient is not compatible with ServiceBus\nconst callback = isVulcan() ? getGQLClient : localQuery;\n\nexport const getProductDataByProductId = debounceAggregator({\n callback,\n reducer: (acc, value) => [...acc, value],\n time: 150\n});\n","import styled from 'styled-components';\n\nimport { Subtitle2 } from '@estee/elc-typography';\nimport { breakpoint, ContentSpacing } from '@estee/elc-base-theme';\n\nimport { inheritBaseFont } from '~theme/default-theme';\n\nimport { IEmphasis } from '~theme/IEmphasis';\n\nexport const PriceComponentWrapper = styled.div`\n display: flex;\n align-items: center;\n ${breakpoint('desktop')`\n margin: 0;\n `};\n`;\n\nexport const Price = styled(Subtitle2)`\n ${inheritBaseFont};\n`;\n\nexport const DiscountedPrice = styled(Subtitle2)`\n display: inline-block;\n padding-left: ${ContentSpacing.space8};\n\n [dir='rtl'] & {\n padding-left: 0;\n padding-right: ${ContentSpacing.space8};\n }\n\n ${inheritBaseFont};\n`;\n\nexport const OldPrice = styled(Subtitle2)`\n display: inline-block;\n text-decoration: line-through;\n opacity: 0.4;\n ${inheritBaseFont};\n`;\n","import * as React from 'react';\nimport classNames from 'classnames/bind';\nimport { observer } from 'mobx-react';\n\nimport { Emphasis } from '@estee/elc-base-theme';\n\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { PriceComponentWrapper, OldPrice, DiscountedPrice, Price } from './PriceComponentStyles';\n\nimport IPriceComponent from './IPriceComponent';\n\nconst priceClass = classNames('elc-cart-item-price', 'js-cart-item-price');\nconst oldPriceClass = classNames('elc-cart-item-old-price', 'js-cart-item-old-price');\n\nconst PriceComponent: React.FC = observer(\n ({ hasDiscount, discountedPrice, originalPrice }) => {\n const priceFormatter = diContainer.get(serviceNames.priceFormatter);\n\n const hasOldPrice = originalPrice > (discountedPrice || 0);\n const priceFormatted = priceFormatter.formatPriceWithCurrency(originalPrice);\n const discountedPriceFormatted = discountedPrice\n ? priceFormatter.formatPriceWithCurrency(discountedPrice)\n : priceFormatted;\n\n return (\n \n {hasDiscount || hasOldPrice ? (\n <>\n \n {priceFormatted}\n \n \n {discountedPriceFormatted}\n \n \n ) : (\n {priceFormatted}\n )}\n \n );\n }\n);\n\nexport default PriceComponent;\n","import React from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\n\nimport { Caption } from '@estee/elc-typography';\nimport { ContentSpacing, Emphasis } from '@estee/elc-base-theme';\n\nimport { inheritBaseFont } from '~theme/default-theme';\nimport { classes } from '~utils/ClassNames';\n\nimport { IEmphasis } from '~theme/IEmphasis';\nimport { ISDProductSize } from '~api/ProductAPI/IProductAPIs';\n\nconst { space4 } = ContentSpacing;\n\nconst sizeClass = classes('cart-item-description-product-wrapper-size');\n\nconst Size = styled(Caption)`\n display: inline-block;\n padding-top: ${space4};\n padding-bottom: ${space4};\n ${inheritBaseFont};\n`;\n\nexport interface SizeComponentProps {\n size: ISDProductSize | undefined;\n itemSizeLabel?: string;\n}\n\nexport const SizeComponent = observer((props: SizeComponentProps) => {\n const { size: { value: size } = {}, itemSizeLabel } = props;\n\n return (\n \n {itemSizeLabel ? `${itemSizeLabel}: ` : ''}\n {size}\n \n );\n});\n","/* eslint-disable @typescript-eslint/no-explicit-any*/\n/* stylelint-disable */\nimport React from 'react';\nimport { observer } from 'mobx-react';\nimport styled from 'styled-components';\n\nexport interface ITruncatedDescriptionProps {\n lines?: number;\n}\n\nconst TextHolder = styled.div`\n text-overflow: ellipsis;\n overflow: hidden;\n height: ${({ lines }: Partial) => lines};\n display: -webkit-box !important;\n -webkit-line-clamp: ${({ lines }: Partial) => lines};\n -webkit-box-orient: vertical;\n white-space: normal;\n`;\n\nexport const TruncatedDescription: React.FC = observer(\n ({ children, lines = 2 }) => {\n return {children};\n }\n);\n/* stylelint-enable */\n","import styled from 'styled-components';\n\nimport { Colors, ContentSpacing } from '@estee/elc-base-theme';\n\nconst { primary300 } = Colors;\nconst { space8 } = ContentSpacing;\n\nexport const Divider = styled.div`\n height: 100%;\n background-color: ${primary300};\n width: 1px;\n margin: 0 ${space8};\n`;\n","import styled from 'styled-components';\n\nimport { ErrorIcon } from '@estee/elc-icons';\nimport { TextButton } from '@estee/elc-buttons';\nimport { Colors } from '@estee/elc-base-theme';\n\nconst { redLightEmphasis } = Colors;\n\nexport const StyledTextButton = styled(TextButton)`\n text-align: left;\n padding: 0;\n`;\n\nexport const StyledItem = styled.div`\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n height: 100px;\n align-items: center;\n width: 320px;\n`;\n\nexport const StyledImage = styled.img`\n max-width: 33%;\n`;\n\nexport const DetailsArea = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n`;\n\nexport const StyledOutOfStockIcon = styled(ErrorIcon)`\n background: ${redLightEmphasis};\n`;\n\nexport const OutOfStockStyles = styled.div`\n display: flex;\n color: ${redLightEmphasis};\n`;\n\nexport const ShadeAndSize = styled.div`\n display: flex;\n height: 1.6em;\n overflow: hidden;\n flex-direction: row;\n\n [dir='rtl'] & {\n flex-direction: row-reverse;\n }\n`;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { useCart } from '~api/CartAPI/CartHook';\nimport { useGetSku } from '~api/ProductAPI/GetSkuHook';\nimport { ICollectionSKU } from '~domain/entities/Collection/ICollection';\nimport PriceComponent from '~sharedComponents/PriceComponent/PriceComponent';\nimport { ShadeComponent } from '~sharedComponents/ShadeComponent/ShadeComponent';\nimport { SpinnerWrapper } from '~sharedComponents/SpinnerWrapper/SpinnerWrapper';\nimport { SizeComponent } from '~sharedComponents/SizeComponent/SizeComponent';\nimport { TruncatedDescription } from '~sharedComponents/TruncatedDescription/TruncatedDescription';\nimport { Divider } from '~sharedComponents/Divider/DividerComponent';\nimport { FlexRow } from '~sharedComponents/FlexRow/FlexRow';\nimport { StyledButton } from '~views/Collection/CollectionStyles';\n\nimport {\n DetailsArea,\n OutOfStockStyles,\n StyledImage,\n StyledItem,\n StyledOutOfStockIcon,\n ShadeAndSize\n} from './ListItemStyles';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nexport interface IListItemProps {\n sku: ICollectionSKU;\n removeFromCollection(): void;\n translations?: { [key: string]: string };\n}\n\nconst translationArray = ['addToBagButtonLabel', 'outOfStock', 'remove'];\n\nexport const ListItem: React.FC = observer((props: IListItemProps) => {\n const {\n sku: { path },\n removeFromCollection\n } = props;\n\n const { addToBagButtonLabel, outOfStock, remove } = useTranslation(translationArray);\n\n const { sku, isLoading: isSkuLoading, isInStock } = useGetSku(path);\n\n const {\n prices: [{ originalPrice = null, price = undefined, isDiscounted = undefined } = {}] = [],\n media: { small: [{ src = '', alt = 'image not found' } = {}] = [] } = {},\n shades: [{ name: shadeName = '', hexVal: shadeHex = '' } = {}] = [],\n parentProduct: { displayName = '' } = {},\n perlgem: { SKU_BASE_ID = '' } = {},\n sizes: [size] = []\n } = sku || {};\n\n const { addToCart: _addToCart, isInCart, isLoading: isCartLoading } = useCart(SKU_BASE_ID);\n\n const itemInCart = isInCart();\n const showAddToBag = !itemInCart && isInStock;\n const isLoading = isSkuLoading || isCartLoading;\n\n const addToCart = () => {\n _addToCart();\n removeFromCollection();\n };\n\n return (\n \n \n \n \n {displayName}\n \n {shadeHex && }\n {shadeHex && size && }\n {size && }\n \n \n
\n {!isInStock && (\n \n \n {outOfStock}\n \n )}\n\n \n {remove}\n {showAddToBag && }\n {showAddToBag && (\n \n {addToBagButtonLabel}\n \n )}\n \n
\n
\n
\n
\n );\n});\n","import { useEffect, useState } from 'react';\n\nimport { ISDProductSku } from './IProductAPIs';\nimport { getProductDataByProductId } from './ProductAPIs';\nimport { reduceProductToSkus } from './utils';\n\nexport const useGetSku = (path: string) => {\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState(null);\n const [sku, setSku] = useState();\n\n const baseSkuId = path.match(/(?:SKU)(?[\\d]*)/)?.groups?.baseSku || '';\n const productId = path.match(/(?:PROD)(?[\\d]*)/)?.groups?.productId || '';\n\n const fetchSku = () => {\n setIsLoading(true);\n getProductDataByProductId(productId)\n .then((productData) => {\n const foundSku = productData.reduce(reduceProductToSkus([baseSkuId]), [])[0] || {};\n setSku(foundSku);\n })\n .catch(setError)\n .finally(() => {\n setIsLoading(false);\n });\n };\n\n useEffect(fetchSku, []);\n\n return {\n isLoading,\n sku,\n error,\n reFetch: fetchSku,\n isInStock:\n sku?.inventoryStatus?.toLowerCase() === 'active' ||\n sku?.inventory_status?.toLowerCase() === 'active'\n };\n};\n","import { ISDProduct, ISDProductSku } from './IProductAPIs';\n\nexport const reduceProductToSkus = (skuToFind: string[]) => (\n acc: ISDProductSku[],\n { skus }: ISDProduct\n) => [\n ...acc,\n ...skus.filter(\n ({ skuId, perlgem }: ISDProductSku) =>\n skuToFind.includes(perlgem?.SKU_BASE_ID?.toString()) || skuToFind.includes(skuId)\n )\n];\n\nexport const reduceToRecommendedProducts = (acc: ISDProduct[], value: ISDProduct) => [\n ...acc,\n value\n];\n","import { observer } from 'mobx-react';\nimport React from 'react';\n\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translationArray = ['noItemsInCollection'];\n\nexport const NoItemsInCollection = observer(() => {\n const { noItemsInCollection } = useTranslation(translationArray);\n\n return
{noItemsInCollection}
;\n});\n","import { observer } from 'mobx-react';\nimport React, { useState } from 'react';\n\nimport { Accordion, LabelSlide } from '@estee/elc-accordion';\n\nimport { SpinnerWrapper } from '~sharedComponents/SpinnerWrapper/SpinnerWrapper';\nimport { CollectionCarouselController } from './CollectionCarouselController';\nimport { ListItem } from './ListItem/ListItem';\nimport { NoItemsInCollection } from './NoItemsInCollection';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\n// TODO: revisit and fix slider component in Vulcan\nexport interface ICollectionCarouselProps {\n collectionName: string;\n translations?: { [key: string]: string };\n}\n\n// const sliderSettings: ISliderSettings = {\n// arrows: true,\n// infinite: true,\n// slidesToScroll: 1,\n// slidesToShow: 1,\n// dots: false,\n// variableWidth: true\n// };\n\nconst translationArray = ['saveForLater'];\n\nexport const CollectionCarousel: React.FC = observer(\n (props: ICollectionCarouselProps) => {\n const { collectionName } = props;\n const { saveForLater = 'Save for Later' } = useTranslation(translationArray);\n\n const [{ getSkuList, removeItem, isLoading }] = useState(\n new CollectionCarouselController({ collectionName })\n );\n\n const { skus = [] } = getSkuList();\n\n const labelText = `${saveForLater}(${isLoading ? '...' : skus?.length?.toString()})`;\n\n return (\n \n \n \n {!skus.length ? (\n \n ) : (\n <>\n {...skus.map((sku) => (\n \n ))}\n \n // (\n // \n // ))}\n // />\n )}\n \n \n \n );\n }\n);\n","/**\n * How it works.\n * At the current time there are 3 events, Bind, Bound, and Ready\n * bind: this calls the component and has a node to attach itself to\n * bound: this is a call made by the component once it binds itself\n * ready: this is a call the component makes when it is loaded.\n */\n\nexport const getActionName = {\n ready: (componentName: string) => `exportedComponent.ready.${componentName}`,\n bind: (componentName: string) => `exportedComponent.bind.${componentName}`,\n bound: (componentName: string) => `exportedComponent.bound.${componentName}`\n};\n","import { TAddListenerProps } from '~sharedComponents/ExternalReference/common/types/types';\n\nexport const addListeners = ({ eventName, listener }: TAddListenerProps) => {\n addEventListener(eventName, listener);\n window.addEventListener(eventName, listener);\n window.document.addEventListener(eventName, listener);\n\n return () => {\n removeEventListener(eventName, listener);\n window.removeEventListener(eventName, listener);\n window.document.removeEventListener(eventName, listener);\n };\n};\n","/* eslint-disable */\nimport React, { useRef, useState, useEffect } from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { bindToDomElement } from '~sharedComponents/ExternalReference/common/bindToDOMElement';\n\nimport { TBoundComponentProps } from '~sharedComponents/ExternalReference/common/types/types';\n\nexport const ImportExternal = observer((boundComponentProps: TBoundComponentProps) => {\n const {\n componentName,\n config,\n translations,\n onBind,\n rootNode: _rootNode\n } = boundComponentProps;\n\n const [isBound, setIsBound] = useState(false);\n const [rootNode] = useState(_rootNode || document.createElement('div'));\n const ref = useRef(null);\n\n const _onBind = (e: CustomEvent) => {\n setIsBound(true);\n onBind?.(e);\n };\n\n useEffect(() => {\n bindToDomElement({ config, translations, rootNode, onBind: _onBind, componentName });\n if (!isBound) {\n //@ts-ignore\n ref.current?.append(rootNode);\n }\n }, [ref]);\n\n return
;\n});\n/* eslint-disable */\n","/* eslint-disable */\nimport { getActionName } from '~sharedComponents/ExternalReference/common/getActionName';\nimport { addListeners } from '~sharedComponents/ExternalReference/common/addListeners';\n\nimport { TBoundComponentProps } from '~sharedComponents/ExternalReference/common/types/types';\n\nexport const bindToDomElement = (props: TBoundComponentProps) => {\n const { config, translations, rootNode, onBind, componentName } = props;\n\n const detail = { config, translations, rootNode };\n const callToBind = new CustomEvent(getActionName.bind(componentName), { detail });\n const bindElement = (componentName: string) => {\n const boundEventName = getActionName.bound(componentName);\n\n dispatchEvent(callToBind);\n\n return addListeners({ eventName: boundEventName, listener: onBindListener });\n };\n\n const onBindListener = (event: CustomEvent) => {\n const { detail: incomingDetail } = event;\n if (incomingDetail === detail) {\n onBind?.(event);\n }\n };\n\n const bindOnReady = (componentName: string) => () => {\n const callback = () => dispatchEvent(callToBind);\n const eventName = getActionName['ready'](componentName);\n\n return addListeners({ eventName, listener: callback });\n };\n\n bindElement(componentName);\n bindOnReady(componentName);\n};\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { ServiceView } from '@estee/elc-service';\nimport { CART_SIDEBAR_OFFER_CODE_MODULE } from '@estee/elc-service-view-names';\n\nimport { SERVICE_NAME } from '~setup/constants';\n\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\nimport { ImportExternal } from '~sharedComponents/ExternalReference/ImportExternal';\nimport { ICartSidebarConfig } from '~exported/CartSidebar/ICartSidebar';\nimport { isVulcan } from '~utils/isVulcan';\n\nexport const OfferCodeModule = observer(({ config }: { config: ICartSidebarConfig }) => {\n return (\n <>\n {isVulcan() ? (\n \n ) : (\n \n )}\n \n );\n});\n","import { observer } from 'mobx-react';\nimport React from 'react';\nimport styled from 'styled-components';\n\ninterface IRecommendedImageProps {\n src?: string;\n alt?: string;\n}\n\nconst defaultImage: IRecommendedImageProps = {\n alt: '',\n src: ''\n};\n\nconst StyledImg = styled.img`\n max-width: 33%;\n`;\n\nexport const RecommendedImage: React.FC = observer((props) => {\n const { src, alt } = { ...defaultImage, ...props };\n\n return ;\n});\n","import styled from 'styled-components';\n\nimport { ErrorIcon } from '@estee/elc-icons';\nimport { Colors } from '@estee/elc-base-theme';\n\nconst { danger, black } = Colors;\n\nexport const RecommendedItemDescriptionWrapper = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n height: 100%;\n`;\n\nexport const InteractionBagButton = styled.button`\n padding: 0;\n margin: 0;\n text-align: left;\n height: unset;\n line-height: unset;\n font-size: 14px;\n width: fit-content;\n background: unset;\n border: unset;\n border-bottom: 1px solid ${black};\n`;\n\nexport const StyledOutOfStockIcon = styled(ErrorIcon)`\n background: ${danger};\n`;\n\nexport const OutOfStockStyles = styled.div`\n display: flex;\n color: ${danger};\n`;\n\nexport const StyledSpinnerWrapper = styled.div`\n position: absolute;\n z-index: 10;\n`;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { SpinnerIcon } from '@estee/elc-icons';\n\nimport {\n RecommendedItemDescriptionWrapper,\n InteractionBagButton,\n OutOfStockStyles,\n StyledOutOfStockIcon,\n StyledSpinnerWrapper\n} from './RecommendedItemDescriptionStyles';\nimport { TruncatedDescription } from '~views/Shared/TruncatedDescription/TruncatedDescription';\nimport { FlexRow } from '~views/Shared/FlexRow/FlexRow';\nimport { ShadeComponent } from '~views/Shared/ShadeComponent/ShadeComponent';\nimport { Divider } from '~views/Shared/Divider/DividerComponent';\nimport { SizeComponent } from '~views/Shared/SizeComponent/SizeComponent';\nimport PriceComponent from '~views/Shared/PriceComponent/PriceComponent';\nimport { useCart } from '~api/CartAPI/CartHook';\n\nimport { ISDProductSku } from '~api/ProductAPI/IProductAPIs';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translations = ['addToBagButtonLabel', 'removeLabel', 'itemOutOfStock'];\n\ninterface IRecommendedItemDescriptionProps {\n sku: ISDProductSku | undefined;\n isLoading: boolean;\n}\n\nexport const RecommendedItemDescription = observer(\n ({ sku, isLoading: isSkuLoading }: IRecommendedItemDescriptionProps) => {\n const {\n prices: [\n { originalPrice = null, price = undefined, isDiscounted = undefined } = {}\n ] = [],\n shades: [{ name: shadeName = '', hexVal: shadeHex = '' } = {}] = [],\n parentProduct: { displayName = '' } = {},\n perlgem: { SKU_BASE_ID = '' } = {},\n sizes: [size] = []\n } = sku || {};\n\n const { addToBagButtonLabel, removeLabel, itemOutOfStock } = useTranslation(translations);\n const { addToCart, removeFromCart, isInCart, isLoading: isCartLoading } = useCart(\n SKU_BASE_ID\n );\n\n const itemInCart = !!isInCart();\n const isInStock = sku?.inventoryStatus?.toLowerCase() === 'active';\n const isLoading = isSkuLoading || isCartLoading;\n const showAddToBag = !itemInCart && isInStock && !isLoading;\n const showRemoveFromBag = !showAddToBag && isInStock && !isLoading;\n\n return (\n \n {displayName}\n \n {shadeHex && }\n {shadeHex && size && }\n {size && }\n \n \n
\n {!isInStock && (\n \n \n {itemOutOfStock}\n \n )}\n {isLoading && (\n \n \n \n )}\n {showAddToBag && (\n \n {addToBagButtonLabel}\n \n )}\n {showRemoveFromBag && (\n \n {removeLabel}\n \n )}\n
\n
\n );\n }\n);\n","import styled from 'styled-components';\n\nexport const StyledWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n height: 100px;\n align-items: center;\n width: 320px;\n`;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { RecommendedImage } from './RecommendedImage/RecommendedImage';\nimport { RecommendedItemDescription } from './RecommendedItemDescription/RecommendedItemDescription';\nimport { StyledWrapper } from './RecommendedItemStyles';\nimport { useGetProduct } from '~api/ProductAPI/GetProductHook';\n\nimport { IRecommendedItem } from './IRecommendedItem';\n\nconst RecommendedItem = observer(({ productId }: IRecommendedItem) => {\n const { isLoading, product } = useGetProduct(productId);\n\n const src = product?.defaultImage?.src || '';\n const alt = product?.defaultImage?.alt || '';\n\n return (\n \n \n \n \n );\n});\n\nexport default RecommendedItem;\n","import { useEffect, useState } from 'react';\nimport { ISDProduct } from '~api/ProductAPI/IProductAPIs';\nimport { getProductDataByProductId } from '~api/ProductAPI/ProductAPIs';\n\nexport const useGetProduct = (productId: string) => {\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState(null);\n const [product, setProduct] = useState();\n\n const fetchProduct = () => {\n setIsLoading(true);\n getProductDataByProductId(productId)\n .then((productData) => {\n const foundProduct = productData.find(\n ({ productId: _productId }) => _productId === productId\n );\n setProduct(foundProduct);\n })\n .catch(setError)\n .finally(() => {\n setIsLoading(false);\n });\n };\n\n useEffect(fetchProduct, []);\n\n return {\n isLoading,\n product,\n error\n };\n};\n","import styled from 'styled-components';\n\nimport { ContentSpacing, Colors } from '@estee/elc-base-theme';\nimport { Subtitle2 } from '@estee/elc-typography';\nimport { LockIcon } from '@estee/elc-icons';\nimport { Button } from '@estee/elc-buttons';\n\nimport { defaultCTA, inheritBaseFont } from '~theme/default-theme';\n\nconst { space16, space8, space4 } = ContentSpacing;\n\nexport const LockIconWrapper = styled(LockIcon)`\n width: 14px;\n height: 14px;\n background-color: ${Colors.white};\n margin-right: ${space8};\n margin-bottom: ${space4};\n`;\n\nexport const SubTotalWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: ${ContentSpacing.space8};\n`;\n\nexport const SubtotalValueWrapper = styled(Subtitle2)`\n margin-right: ${space16};\n ${inheritBaseFont};\n`;\n\nexport const SubtotalLabelWrapper = styled(Subtitle2)`\n margin-left: ${space16};\n ${inheritBaseFont};\n`;\n\nexport const StyledCheckoutLabel = styled(Subtitle2)`\n ${inheritBaseFont};\n color: ${Colors.white};\n`;\n\nexport const CheckoutButtonWrapper = styled.div`\n display: flex;\n`;\n\nexport const StyledButton = styled(Button)`\n ${defaultCTA};\n ${inheritBaseFont};\n`;\n\nexport const StyledActionButton = styled.input`\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n max-height: 48px;\n flex: 1;\n flex-shrink: 0;\n ${inheritBaseFont};\n`;\n","import React from 'react';\nimport {\n StyledActionButton,\n CheckoutButtonWrapper\n} from '~views/CartSidebarFooter/CartSidebarFooterStyles';\nimport CartSidebarViewController from '~exported/CartSidebar/CartSidebarViewController';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { observer } from 'mobx-react-lite';\n\ninterface IActionButton {\n url?: string;\n label: string;\n children?: React.ReactChild;\n //eslint-disable-next-line\n fn?(): any;\n}\n\nconst ActionButton = observer(({ url, label, fn }: IActionButton) => {\n const { redirectClick }: CartSidebarViewController = diContainer.get(\n serviceNames.cartSidebarViewController\n );\n\n const onClick = async () => {\n if (url) {\n const _url = fn ? await fn?.() : url;\n redirectClick(_url);\n } else if (fn) {\n await fn?.();\n }\n };\n\n return (\n \n \n \n );\n});\n\nexport default ActionButton;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport RecommendedItemsViewController from '~views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItemsViewController';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\nimport ActionButton from '~views/Shared/ActionButton/ActionButton';\n\ninterface IEmptyRecommendedItemProps {\n controller: RecommendedItemsViewController;\n}\n\nconst emptyRecommendedTranslations = ['noResultsMessage', 'retryLabel'];\n\nexport const EmptyRecommendedItem = observer(\n ({ controller: { getRecommendedProductIds } }: IEmptyRecommendedItemProps) => {\n const { retryLabel, noResultsMessage } = useTranslation(emptyRecommendedTranslations);\n\n return (\n
\n

{noResultsMessage}

\n \n
\n );\n }\n);\n","import { useEffect, useState } from 'react';\n\nimport RecommendedItemsViewController from '~views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItemsViewController';\n\nexport const useRecommendedCarouselHook = ({\n getRecommendedProductIds\n}: RecommendedItemsViewController) => {\n const [isLoading, setLoading] = useState(false);\n const [recommendedProductIds, setRecommendedProductIds] = useState([]);\n\n const fetchRecommended = async () => {\n setLoading(true);\n const productIds = await getRecommendedProductIds();\n setRecommendedProductIds(productIds);\n };\n\n useEffect(() => {\n fetchRecommended().finally(() => setLoading(false));\n }, []);\n\n return { isLoading, recommendedProductIds, setLoading, fetchRecommended };\n};\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { ISliderSettings, SliderView } from '@estee/elc-slider';\n\nimport RecommendedItem from './RecommendedItem/RecommendedItem';\nimport { EmptyRecommendedItem } from './EmptyRecommendedItem/EmptyRecommendedItem';\nimport RecommendedItemsViewController from './RecommendedItemsViewController';\nimport { useRecommendedCarouselHook } from './RecommendedItemsCarouselHook';\nimport { SpinnerWrapper } from '~views/Shared/SpinnerWrapper/SpinnerWrapper';\n\nconst defaultSliderSettings = {\n arrows: true,\n infinite: true,\n slidesToScroll: 1,\n slidesToShow: 1,\n dots: false\n};\n\nconst sliderSettings: ISliderSettings = {\n ...defaultSliderSettings,\n responsive: [\n { breakpoint: 1200, settings: defaultSliderSettings },\n { breakpoint: 400, settings: { ...defaultSliderSettings, infinite: false } }\n ]\n};\n\ninterface IRecommendedItemsCarouselProps {\n controller: RecommendedItemsViewController;\n vertical?: boolean;\n}\n\nconst RecommendedItemsCarousel = observer(\n ({ controller, vertical }: IRecommendedItemsCarouselProps) => {\n const { isLoading, recommendedProductIds } = useRecommendedCarouselHook(controller);\n\n return (\n \n {!!recommendedProductIds?.length ? (\n (\n \n ))}\n />\n ) : (\n \n )}\n \n );\n }\n);\n\nexport default RecommendedItemsCarousel;\n","import React, { useState } from 'react';\nimport { observer } from 'mobx-react';\n\nimport { Accordion, LabelSlide } from '@estee/elc-accordion';\n\nimport RecommendedItemsCarousel from '~views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItemsCarousel';\n\nimport RecommendedItemsViewController from '~views/RecommendedForYouModule/RecommendedItemsCarousel/RecommendedItemsViewController';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translationsList = ['recommendedProductsTitle'];\n\nexport type IRecommendedForYouExpander = {\n isExpander: boolean;\n};\ntype ITitleProps = { title: string; children: React.ReactChild };\n\nconst NoWrap = observer(({ title, children }: ITitleProps) => (\n
\n

{title}

\n {children}\n
\n));\n\nexport const RecommendedForYouModule = observer(\n ({ isExpander = true }: IRecommendedForYouExpander) => {\n const { recommendedProductsTitle } = useTranslation(translationsList);\n const [controller] = useState(\n new RecommendedItemsViewController({\n cartRepo: diContainer.get(serviceNames.cartRepository),\n recommendedRepo: diContainer.get(serviceNames.recommendedItemsRepository)\n })\n );\n const Wrapper = isExpander ? LabelSlide : NoWrap;\n const props = {\n title: recommendedProductsTitle,\n id: isExpander ? recommendedProductsTitle : ''\n };\n\n return (\n \n \n \n \n \n );\n }\n);\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { ServiceView } from '@estee/elc-service';\nimport { CART_SIDEBAR_CART_OFFERS } from '@estee/elc-service-view-names';\n\nimport { SERVICE_NAME } from '~setup/constants';\nimport { useTranslation } from '~views/Shared/Providers/Translations/TranslationsHook';\nimport { ImportExternal } from '~sharedComponents/ExternalReference/ImportExternal';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { isVulcan } from '~utils/isVulcan';\n\nconst ShoppingBagOffers = observer(() => {\n const config = diContainer.get(serviceNames.config);\n const vulcan = isVulcan();\n\n return (\n <>\n {vulcan ? (\n \n ) : (\n \n )}\n \n );\n});\n\nexport default ShoppingBagOffers;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { ITranslationsCollection } from '@estee/elc-service';\n\nimport CartSidebarItems from '~views/ShoppingBagTab/CartSidebarItems/CartSidebarItems';\nimport EmptyCart from '~views/EmptyCart/EmptyCart';\nimport DonationsExpander from '~views/DonationsExpander/DonationsExpander';\nimport { TabContentContainer } from '~theme/default-theme';\n\nimport { CollectionCarousel } from '~views/Collection/CollectionCarousel/CollectionCarousel';\nimport { FAVORITES_LIST } from '~setup/constants';\nimport { OfferCodeModule } from '~views/OfferCodeModule/OfferCodeModule';\nimport { RecommendedForYouModule } from '~views/RecommendedForYouModule/RecommendedForYouModule';\nimport ShoppingBagOffers from '~views/ShoppingBagOffers/ShoppingBagOffers';\nimport ICartSidebar from '~exported/CartSidebar/ICartSidebar';\nimport { classes } from '~utils/ClassNames';\n\nconst tabContentClass = classes('shopping-tab-content');\n\nconst ShoppingBagTab: React.FC = observer(\n ({ translations, viewController, config }) => {\n const { cartEmpty, cartEmptyTitleLabel } = translations as ITranslationsCollection;\n const {\n data: { cartItems, itemsQuantity, displayCartOffersComponent },\n removeItem,\n updateCart\n } = viewController;\n\n const {\n drawerEnableOfferCodeModule,\n enableOfferCodeField,\n enableOffersTab,\n drawerEnableRecommendedForYou,\n enableRecommendedForYou,\n enableDonationsPanel = false,\n collection: {\n enabled: enableCollection = false,\n collectionName: _collectionName = FAVORITES_LIST\n } = {}\n } = config || {};\n\n const cartHasItems = itemsQuantity > 0 || !!cartItems.length;\n const showOfferCodeModule =\n (drawerEnableOfferCodeModule || enableOfferCodeField) && cartHasItems;\n const showCollectionCarousel = enableCollection;\n const collectionName = _collectionName || FAVORITES_LIST;\n const showInCartOffers = enableOffersTab && displayCartOffersComponent && cartHasItems;\n\n return (\n \n {cartHasItems ? (\n \n ) : (\n \n )}\n {(enableRecommendedForYou || drawerEnableRecommendedForYou) && (\n \n )}\n {showCollectionCarousel && }\n {enableDonationsPanel && }\n {showOfferCodeModule && }\n {showInCartOffers && }\n \n );\n }\n);\n\nexport default ShoppingBagTab;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\n\nimport { Shadow4dp } from '@estee/elc-layouts';\nimport { ContentSpacing } from '@estee/elc-base-theme';\n\nconst { space4 } = ContentSpacing;\ninterface IExpanderProps {\n children: React.ReactNode;\n className?: string;\n}\n\nconst ExpanderWrapper = styled(Shadow4dp)`\n height: auto;\n margin: ${space4} 0 0;\n`;\n\nexport const Expander = observer(({ children, className }: IExpanderProps) => (\n {children}\n));\n","import React from 'react';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\n\nimport { CartIconSet, cartIconNames } from '@estee/elc-icons';\nimport { ContentSpacing } from '@estee/elc-base-theme';\n\nconst { space16 } = ContentSpacing;\n\nconst RotatedIcon = styled(CartIconSet)`\n transform: rotate(180deg);\n`;\n\nconst ChildrenWrapper = styled.div`\n width: calc(100% - ${(props) => (props['aria-haspopup'] ? space16 : '0px')});\n display: inline-block;\n`;\n\nconst IconWrapper = styled.div`\n width: ${space16};\n display: inline-block;\n`;\n\nexport interface IExpanderHeaderProps {\n onExpansionClick(): void;\n isExpanded: boolean;\n isExpandable: boolean;\n}\n\nexport const Header: React.FC = observer((props: React.PropsWithChildren) => {\n const { children, onExpansionClick, isExpanded, isExpandable } = props;\n const onClick = isExpandable ? onExpansionClick : () => {};\n\n return (\n
\n {children}\n\n {isExpandable && (\n \n {isExpanded ? (\n \n ) : (\n \n )}\n \n )}\n
\n );\n});\n","import { observer } from 'mobx-react';\nimport React from 'react';\n\ninterface IBodyProps {\n children: React.ReactChild;\n isExpanded: boolean;\n}\n\nexport const Body: React.FC = observer(({ children, isExpanded }: IBodyProps) => (\n
{isExpanded ? children : null}
\n));\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nexport const Footer: React.FC = observer(({ children }) =>
{children}
);\n","import styled from 'styled-components';\n\nimport { Colors } from '@estee/elc-base-theme';\n\nconst { blackLightEmphasis } = Colors;\n\nexport const ViewWrapper = styled.div`\n border-top: 1px solid ${blackLightEmphasis};\n font-size: 14px;\n line-height: 25px;\n`;\n\nexport const LineItem = styled.div`\n display: flex;\n justify-content: space-between;\n`;\n\nexport const ItemLabel = styled.div``;\nexport const Price = styled.div``;\n\nexport const Disclaimer = styled.div`\n font-size: 12px;\n padding: 10px 0 0;\n`;\n","import { observer } from 'mobx-react-lite';\nimport React from 'react';\n\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { ICartRepository } from '~repositories/CartRepository/ICartRepository';\nimport { ViewWrapper, LineItem, Disclaimer } from './DiscountViewStyles';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translations = ['subtotal', 'item', 'discount', 'discountDisclaimerLabel'];\n\nexport const DiscountView = observer(() => {\n const cartRepository: ICartRepository = diContainer.get(serviceNames.cartRepository);\n\n const { discountAmount, totalPrice, isDiscounted } =\n cartRepository.cart.cartTotals.discount || {};\n\n const { subtotal, item, discount, discountDisclaimerLabel } = useTranslation(translations);\n\n const itemCount = cartRepository.cart.totalQty?.toString() || '';\n const itemCountText = item ? `(${itemCount} ${item})` : '';\n\n return (\n \n \n

\n {subtotal} {itemCountText}\n

\n

{totalPrice}

\n
\n\n {!!isDiscounted && (\n \n

{discount}

\n

{discountAmount}

\n
\n )}\n\n {discountDisclaimerLabel}\n
\n );\n});\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport ICartSidebarFooter from '~views/CartSidebarFooter/ICartSidebarFooter';\nimport { classes } from '~utils/ClassNames';\nimport { Expander } from '~sharedComponents/expander/Expander';\nimport { Header } from '~sharedComponents/expander/Header';\nimport { Body } from '~sharedComponents/expander/Body';\nimport { Footer } from '~sharedComponents/expander/Footer';\nimport { useExpander } from '~sharedComponents/expander/useExpander';\nimport { DiscountView } from '~views/DiscountView/DiscountView';\n\nimport {\n SubTotalWrapper,\n SubtotalLabelWrapper,\n SubtotalValueWrapper,\n CheckoutButtonWrapper,\n LockIconWrapper,\n StyledCheckoutLabel,\n StyledButton\n} from './CartSidebarFooterStyles';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst subTotalClass = classes('cart-sidebar-sub-total');\nconst buttonsWrapperClass = classes('cart-sidebar-footer-buttons');\nconst checkoutButtonClass = classes('cart-sidebar-checkout-button');\nconst editButtonClass = classes('cart-sidebar-edit-button');\nconst lockIconClass = classes('cart-sidebar-checkout-button-icon-lock');\nconst footerClass = classes('cart-sidebar-footer');\n\nconst CartSidebarFooter: React.FC = observer(\n ({\n subtotalValue = 0,\n priceFormatter,\n onActionButtonClicked,\n isExpandable,\n enableDiscountModule,\n enableEditButton,\n editButtonLabel,\n enableSubtotal\n }) => {\n const expanderProps = useExpander({ isExpandable });\n const { totalEstimate, subtotal, checkoutLabel } = useTranslation([\n 'totalEstimate',\n 'subtotal',\n 'checkoutLabel'\n ]);\n const subtotalLabel = enableDiscountModule ? totalEstimate : subtotal;\n\n return (\n \n {enableSubtotal && (\n
\n \n {subtotalLabel}\n \n {priceFormatter?.formatPriceWithCurrency(subtotalValue as number)}\n \n \n
\n )}\n {enableDiscountModule && }\n
\n \n {enableEditButton && (\n \n {editButtonLabel}\n \n )}\n \n \n {checkoutLabel}\n \n \n
\n
\n );\n }\n);\nexport default CartSidebarFooter;\n","import { useState } from 'react';\n\ninterface useExpanderProps {\n isExpandable?: boolean;\n}\n\nexport const useExpander = ({ isExpandable = false }: useExpanderProps = {}) => {\n const [isExpanded, setIsExpanded] = useState(false);\n\n const onExpansionClick = () => {\n setIsExpanded(!isExpanded);\n };\n\n return { isExpanded, onExpansionClick, isExpandable };\n};\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { classes } from '~utils/ClassNames';\nimport ICartSidebarFooter from '~views/CartSidebarFooter/ICartSidebarFooter';\nimport { EmptyCartStyledFooter, GoShoppingButton } from '~views/EmptyCart/EmptyCartStyles';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst checkoutButtonClass = classes('cart-sidebar-go-shopping-button');\nconst footerClass = classes('cart-sidebar-footer');\n\nconst EmptyCartSidebarFooter = observer(({ onActionButtonClicked }: ICartSidebarFooter) => {\n const { goShoppingLabel } = useTranslation(['goShoppingLabel']);\n\n return (\n \n \n {goShoppingLabel}\n \n \n );\n});\n\nexport default EmptyCartSidebarFooter;\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\n\nimport CartSidebarFooter from '~views/CartSidebarFooter/CartSidebarFooter';\nimport EmptyCartSidebarFooter from '~views/EmptyCart/EmptyCartSidebarFooter/EmptyCartSidebarFooter';\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { ICartSidebarFooterComponent } from './ICartSidebarFooterComponent';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst translations = ['subtotal', 'checkoutLabel', 'goShoppingLabel'];\n\nconst CartSidebarFooterComponent: React.FC = observer(\n (props: ICartSidebarFooterComponent) => {\n const {\n redirectClick,\n data: { cartItems }\n } = diContainer.get(serviceNames.cartSidebarViewController);\n const {\n itemsQuantity,\n expandableEstimatedTotals,\n priceFormatter,\n totalPrice,\n splitPaymentLabel,\n splitPaymentInstallments,\n hasSplitPaymentOption,\n splitPaymentBrand,\n enableDiscountModule,\n goShoppingUrl,\n checkoutUrl,\n setVisibility,\n enableEditButton,\n enableSubtotal\n } = props;\n\n const cartHasItems = itemsQuantity > 0 || !!cartItems.length;\n const { editLabel } = useTranslation(translations);\n\n const cartFooterActionClick = () => redirectClick(checkoutUrl);\n const emptyCartFooterActionClick = () =>\n setVisibility && !!goShoppingUrl ? setVisibility() : redirectClick(goShoppingUrl);\n\n return (\n <>\n {cartHasItems ? (\n \n ) : (\n \n )}\n \n );\n }\n);\n\nexport default CartSidebarFooterComponent;\n","import he from 'he';\n\nconst restHeaders = {\n headers: { 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8' }\n};\n\ninterface INode {\n [key: number]: {\n title: string;\n language: string;\n seo_title: string;\n seo_canonical: string;\n };\n rendered: string;\n}\n\nconst decodeResponse = (data: INode = { rendered: '' }) => he.decode(data.rendered);\n\nexport const fetchNode = async (drupalNodeId: number) => {\n const url = `/elc_api/node/${drupalNodeId}/all/api`;\n const fetchData = await fetch(url, { ...restHeaders });\n const response = await fetchData.json();\n\n return decodeResponse(response);\n};\n","import { useEffect, useState } from 'react';\nimport { fetchNode } from '~api/DrupalAPI/DrupalAPI';\n\nexport const useDrupalNodes = (nodeId: number) => {\n const [nodeHTML, setNodeHTML] = useState('');\n const [fetched, setFetched] = useState(false);\n\n const fetchNodeData = async () => setNodeHTML(await fetchNode(nodeId));\n\n useEffect(() => {\n if (!fetched) {\n fetchNodeData()\n .catch(console.error)\n .finally(() => setFetched(true));\n }\n }, [nodeId]);\n\n return { nodeHTML };\n};\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { classes } from '~utils/ClassNames';\nimport { useDrupalNodes } from '~api/DrupalAPI/hooks/useDrupalNodes';\n\ninterface IDrupalNode {\n nodeId: number;\n className?: string;\n}\n\nconst drupalNodeClass = classes('drupal-node');\n\nexport const DrupalNodeComponent = observer((props: IDrupalNode) => {\n const { nodeHTML } = useDrupalNodes(props.nodeId);\n\n return (\n
\n
\n
\n );\n});\n","import styled from 'styled-components';\n\nexport const OverlayContainer = styled.div<{ isVisible: boolean }>`\n max-width: 320px;\n position: absolute;\n top: 40px;\n right: 0;\n border: 1px solid black;\n background: white;\n display: ${(props) => (props.isVisible ? 'flex' : 'none')};\n flex-direction: column;\n`;\n\nexport const HeaderContainer = styled.div`\n display: flex;\n justify-content: space-between;\n padding: 15px;\n`;\n\nexport const OuterOverlay = styled.div`\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n z-index: 9;\n width: 100%;\n height: 100%;\n position: fixed;\n`;\n","import React, { useEffect } from 'react';\nimport { Title } from '~theme/default-theme';\nimport IItemAddedAlert from '~views/CartTabs/TabHeadersComponent/CartTabHeader/ItemAddedAlert/IItemAddedAlert';\nimport { observer } from 'mobx-react';\n\nconst ItemAddedAlert: React.FC = observer(\n ({ itemAddedText, disableItemAddedText }) => {\n useEffect(() => {\n setTimeout(() => {\n disableItemAddedText();\n }, 5000);\n }, []);\n\n return {itemAddedText};\n }\n);\n\nexport default ItemAddedAlert;\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { ITranslationsCollection } from '@estee/elc-service';\n\nimport { classes } from '~utils/ClassNames';\nimport { RemoveIconWrapper } from '~theme/default-theme';\nimport ShoppingBagTab from '~views/ShoppingBagTab/ShoppingBagTab';\nimport CartSidebarFooterComponent from '~views/CartSidebarFooterComponent/CartSidebarFooterComponent';\n\nimport ICartSidebar from '~exported/CartSidebar/ICartSidebar';\nimport { SpinnerWrapper } from '~views/Shared/SpinnerWrapper/SpinnerWrapper';\nimport { DrupalNodeComponent } from '~sharedComponents/DrupalNode/DrupalNode';\n\nimport { useOverlay } from './useOverlay';\nimport { HeaderContainer, OuterOverlay, OverlayContainer } from './CartOverlayStyles';\nimport ItemAddedAlert from '~views/CartTabs/TabHeadersComponent/CartTabHeader/ItemAddedAlert/ItemAddedAlert';\n\nconst sidebarName = 'cart-sidebar';\nconst headerClass = classes(`${sidebarName}-header`);\nconst shoppingTabClass = `${sidebarName}-shopping-tab`;\nconst closeIconClass = classes(`${sidebarName}-close-icon`);\nconst editCartClass = classes(`${sidebarName}-edit-button`);\nconst outerOverlayClass = classes(`${sidebarName}-outer-overlay`);\nconst footerDrupalNodeClass = classes(`${sidebarName}-footer-drupal-node`);\nconst headerTitleClass = classes(`${sidebarName}-header-title`);\n\nconst CartOverlay = observer(({ config, viewController, translations }: ICartSidebar) => {\n const { drawerCheckoutUrl, drawerGoShoppingUrl, overlayFooterDrupalNodeId } = config;\n const {\n setVisibility,\n isCartLoading,\n redirectClick,\n data: { isVisible, autoClose, displayMiniOverlay, itemsQuantity, displayItemAddedText },\n cartSidebar: { setDisplayMiniOverlay },\n disableItemAddedText\n } = viewController;\n\n const handleClose = () => {\n setVisibility({ newState: false, isUserEvent: true });\n setDisplayMiniOverlay(false);\n };\n const checkoutOnClick = () => redirectClick(drawerCheckoutUrl);\n\n const { animationClass, eventHandlers } = useOverlay({\n autoClose: autoClose && isVisible,\n onClose: handleClose\n });\n\n const enableSubtotal =\n !(config?.miniOverlay && !config?.miniOverlaySubtotal) || !displayMiniOverlay;\n\n const footerProps = {\n itemsQuantity: viewController?.data?.itemsQuantity,\n totalPrice: viewController?.data?.totalPrice,\n priceFormatter: viewController?.priceFormatter,\n expandableEstimatedTotals: config?.expandableEstimatedTotals,\n splitPaymentLabel: config?.splitPaymentLabel,\n splitPaymentInstallments: config?.splitPaymentInstallments,\n hasSplitPaymentOption: config?.hasSplitPaymentOption,\n splitPaymentBrand: config?.splitPaymentBrand,\n enableDiscountModule: config?.enableDiscountModule,\n checkoutUrl: drawerCheckoutUrl,\n goShoppingUrl: drawerGoShoppingUrl,\n enableSubtotal\n };\n\n const miniOverlayClass = config?.miniOverlay && autoClose ? 'mini' : '';\n const overlayClass = classes(`${sidebarName}-overlay`, animationClass, miniOverlayClass);\n const hideOverlay = config?.redirectToCheckoutOnEmpty && !itemsQuantity;\n const displayDrupalNodeContent = !!(\n overlayFooterDrupalNodeId && overlayFooterDrupalNodeId !== 0\n );\n\n const {\n shoppingBagTitle,\n editLabel,\n addedToCartLabel\n } = translations as ITranslationsCollection;\n\n return hideOverlay ? null : (\n <>\n {isVisible && }\n \n \n

\n {displayItemAddedText ? (\n \n ) : (\n (shoppingBagTitle as ITranslationsCollection)\n )}\n

\n
\n {editLabel as ITranslationsCollection}\n
\n
\n \n
\n
\n \n \n \n \n {!!displayDrupalNodeContent && (\n \n )}\n
\n \n );\n});\n\nexport default CartOverlay;\n","import { useState, useMemo, useEffect } from 'react';\n\ninterface useOverlayProps {\n autoClose: boolean;\n onClose(): void;\n delayTime?: number;\n}\n\nexport const useOverlay = ({ autoClose, onClose, delayTime = 2800 }: useOverlayProps) => {\n const [hovered, setHovered] = useState(false);\n const [timer, setTimer] = useState(0);\n const animationClass = autoClose && !hovered ? 'animate' : '';\n\n const eventHandlers = useMemo(\n () => ({\n onMouseOver() {\n setHovered(true);\n },\n onMouseOut() {\n setHovered(false);\n }\n }),\n []\n );\n\n useEffect(() => {\n if (autoClose) {\n if (hovered) {\n clearTimeout(timer);\n } else {\n setTimer(setTimeout(onClose, delayTime));\n }\n }\n }, [hovered, autoClose]);\n\n return { animationClass, eventHandlers };\n};\n","import { SpinnerIcon } from '@estee/elc-icons';\nimport { observer } from 'mobx-react';\nimport React from 'react';\nimport styled from 'styled-components';\n\nimport { classes } from '~utils/ClassNames';\n\nconst Spinner = styled.div`\n position: absolute;\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n background: rgba(0, 0, 0, 0.5);\n z-index: 500;\n`;\n\nconst Icon = styled.div`\n align-self: center;\n`;\n\nexport const CartSidebarLoading = observer(({ classBaseName = '' }) => (\n \n \n \n \n \n));\n","import styled from 'styled-components';\nimport { Row } from '@estee/elc-grid';\nimport { breakpoint, Colors, ContentSpacing } from '@estee/elc-base-theme';\n\nimport { ITabHeaderStylesProps } from '~views/CartTabs/ICartTabs';\nimport { inheritBaseFont } from '~theme/default-theme';\n\nconst { space2 } = ContentSpacing;\nconst { primary300, primary700 } = Colors;\n\nexport const TabsContainer = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 20%;\n max-width: 100vw;\n`;\n\nexport const TabContent = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n`;\n\nexport const HeadersContainer = styled.div`\n display: flex;\n flex-direction: ${({ hasMultipleTabs }: ITabHeaderStylesProps) =>\n hasMultipleTabs ? 'column' : 'row-reverse'};\n border-bottom: ${({ hasMultipleTabs }: ITabHeaderStylesProps) =>\n hasMultipleTabs ? '0' : `1px solid ${Colors.primary300}`};\n margin: 0;\n padding: 0;\n z-index: 1;\n`;\n\nexport const HeaderContainer = styled(Row)`\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: row;\n flex-shrink: ${({ hasMultipleTabs }: ITabHeaderStylesProps) => (hasMultipleTabs ? 0 : 1)};\n ${breakpoint('largeScreen')`\n max-width: 400px;\n`};\n`;\n\nexport const CloseIconContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n flex-grow: 1;\n width: ${({ hasMultipleTabs }: ITabHeaderStylesProps) => (hasMultipleTabs ? '100%' : '50%')};\n padding-top: ${ContentSpacing.space8};\n padding-right: ${ContentSpacing.space8};\n margin-top: 16px;\n margin-bottom: 16px;\n`;\n\nexport const TitleContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: ${({ hasMultipleTabs }: ITabHeaderStylesProps) =>\n hasMultipleTabs ? 'center' : 'flex-start'};\n flex-direction: row;\n flex: 1;\n border-bottom: ${(props) =>\n props['aria-selected']\n ? `${space2} solid ${primary700}`\n : props.hasMultipleTabs\n ? `1px solid ${primary300};`\n : 'none'};\n cursor: pointer;\n overflow: hidden;\n`;\n\nexport const CounterIconContainer = styled.div`\n margin-left: ${ContentSpacing.space8};\n`;\n\nexport const generateCounterIcon = (label: string, isActive: boolean) => styled.span`\n content: '';\n display: block;\n border-radius: 50%;\n width: 16px;\n height: 16px;\n text-align: center;\n line-height: ${ContentSpacing.space16};\n border: 1px solid\n ${(props) =>\n props['aria-controls'] === label && !isActive ? Colors.success : Colors.black};\n background: ${(props) =>\n props['aria-controls'] === label && !isActive ? Colors.success : Colors.white};\n color: ${(props) =>\n props['aria-controls'] === label && !isActive ? Colors.white : Colors.black};\n ${inheritBaseFont};\n`;\n\nexport const HeaderTitle = styled.div`\n width: 90%;\n`;\n\nexport const EditButton = styled.div``;\n","import * as React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { classes } from '~utils/ClassNames';\nimport { Title } from '~theme/default-theme';\nimport ItemAddedAlert from '~views/CartTabs/TabHeadersComponent/CartTabHeader/ItemAddedAlert/ItemAddedAlert';\nimport {\n generateCounterIcon,\n TitleContainer,\n CounterIconContainer\n} from '~views/CartTabs/CartTabsStyles';\n\nimport ICartTabHeader from './ICartTabHeader';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nconst cartSidebarCounterIconClass = classes('cart-sidebar-counter-icon');\n\nconst CartTabHeader: React.FC = observer(\n ({\n title,\n itemAddedText = '',\n displayItemAddedText = false,\n disableItemAddedText = () => {},\n selectedItemsCounter,\n changeTab,\n tabIndex,\n isActive = false,\n hasMultipleTabs = false\n }: ICartTabHeader) => {\n const { samplesAndOffersLabel } = useTranslation(['samplesAndOffersLabel']);\n const CounterIcon = generateCounterIcon(samplesAndOffersLabel, isActive);\n const setNewSelectedTab = () => changeTab?.(tabIndex);\n\n const counterIconClass = classes('cart-sidebar-counter', `counter-${tabIndex}`);\n const tabTitleClass = classes('cart-sidebar-title', `tab-${tabIndex}`);\n\n return (\n \n {displayItemAddedText ? (\n \n ) : (\n {title}\n )}\n \n \n {selectedItemsCounter}\n \n \n \n );\n }\n);\n\nexport default CartTabHeader;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport CartTabHeader from '~views/CartTabs/TabHeadersComponent/CartTabHeader/CartTabHeader';\nimport ITabHeadersComponent from '~views/CartTabs/TabHeadersComponent/ITabHeadersComponent';\n\nconst TabHeadersComponent = observer(\n ({ tabComponents, changeTab, activeTab }: ITabHeadersComponent) => (\n <>\n {tabComponents.map(({ props }, index, initial) => (\n 1}\n hasMultipleTabs={initial.length > 1}\n title={props.headerProps.title}\n translations={props.translations}\n {...props.headerProps}\n />\n ))}\n \n )\n);\n\nexport default TabHeadersComponent;\n","import React from 'react';\nimport { observer } from 'mobx-react';\nimport ICartTabs from '~views/CartTabs/ICartTabs';\nimport { emit, events } from '@estee/elc-service-bus';\n\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\nimport { classes } from '~utils/ClassNames';\nimport { RemoveIconWrapper } from '~theme/default-theme';\nimport TabHeadersComponent from '~views/CartTabs/TabHeadersComponent/TabHeadersComponent';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\n\nimport {\n TabsContainer,\n HeadersContainer,\n CloseIconContainer,\n HeaderContainer,\n TabContent,\n HeaderTitle,\n EditButton\n} from './CartTabsStyles';\n\nconst cartOverlaySidebarHeaderClass = classes('cart-sidebar-header');\nconst cartOverlaySidebarCloseClass = classes('cart-sidebar-close');\nconst closeIconClass = classes('cart-sidebar-close-icon');\nconst headerContainerClass = classes('cart-sidebar-header-container');\nconst tabContentClass = classes('cart-sidebar-tab-content');\nconst headerTitleClass = classes('cart-sidebar-header-title');\nconst editClass = classes('cart-sidebar-edit-btn');\n\nconst translations = ['editButtonLabel'];\n\nconst CartTabs: React.FC = observer(\n ({\n activeTab,\n changeTab,\n setVisibility,\n tabComponents,\n title,\n enableEditButton,\n checkoutUrl\n }) => {\n const { redirectClick } = diContainer.get(serviceNames.cartSidebarViewController);\n\n const Component = tabComponents[activeTab].component;\n const props = tabComponents[activeTab].props;\n const hasMultipleTabs = tabComponents.length > 1;\n\n const { editLabel } = useTranslation(translations);\n\n const editActionClick = () => redirectClick(checkoutUrl);\n\n const _changeTab = (id: number) => {\n const tabId = tabComponents[id].tabId;\n emit(events.CART_OVERLAY_TAB_CLICKED, { tabId });\n changeTab(id);\n };\n\n return (\n \n \n \n
\n {hasMultipleTabs && (\n {title}\n )}\n {enableEditButton && (\n \n {editLabel}\n \n )}\n
\n
\n \n
\n \n \n \n \n
\n {} \n
\n );\n }\n);\n\nexport default CartTabs;\n","export enum CartEnums {\n cartLocation = 'cart',\n offersLocation = 'offers'\n}\n","import React from 'react';\nimport styled from 'styled-components';\nimport { observer } from 'mobx-react';\n\nimport { ServiceView } from '@estee/elc-service';\nimport { CART_SIDEBAR_OFFERS_TAB } from '@estee/elc-service-view-names';\n\nimport { SERVICE_NAME } from '~setup/constants';\nimport { TabContentContainer } from '~theme/default-theme';\nimport { ImportExternal } from '~sharedComponents/ExternalReference/ImportExternal';\nimport { useTranslation } from '~views/Shared/Providers/Translations/TranslationsHook';\nimport { isVulcan } from '~utils/isVulcan';\n\nimport { ITabElement } from '~views/CartTabs/ICartTabs';\nimport { classes } from '~utils/ClassNames';\n\nconst ServiceViewContainer = styled.div`\n display: flex;\n width: 100%;\n`;\n\nconst tabContentClass = classes('offers-tab-content');\n\nconst OffersTab: React.FC = observer(({ config }) => (\n \n {isVulcan() ? (\n \n ) : (\n \n \n \n )}\n \n));\n\nexport default OffersTab;\n","import React from 'react';\nimport { CartSidebarLoading } from '~views/CartOverlayLoading/CartSidebarLoading';\nimport CartTabs from '~views/CartTabs/CartTabs';\nimport CartSidebarFooterComponent from '~views/CartSidebarFooterComponent/CartSidebarFooterComponent';\nimport { Overlay as Drawer } from '@estee/elc-overlay';\nimport { ICartOverlayVisibilityProps } from '~domain/entities/CartSidebar/ICartSidebar';\nimport { observer } from 'mobx-react-lite';\nimport ICartSidebar from '~exported/CartSidebar/ICartSidebar';\nimport { ITabComponent } from '~views/CartTabs/ICartTabs';\nimport ShoppingBagTab from '~views/ShoppingBagTab/ShoppingBagTab';\nimport { CartEnums } from '~utils/CartEnums';\nimport OffersTab from '~views/OffersTab/OffersTab';\nimport { ITranslationsCollection } from '@estee/elc-service';\nimport { classes } from '~utils/ClassNames';\n\nconst cartDrawerClass = classes('cart-drawer');\n\nconst CartDrawer = observer(({ config, viewController, translations }: ICartSidebar) => {\n const {\n enableOffersTab = false,\n splitPaymentLabel,\n splitPaymentInstallments,\n hasSplitPaymentOption,\n splitPaymentBrand,\n expandableEstimatedTotals,\n enableDiscountModule,\n drawerCheckoutUrl,\n drawerGoShoppingUrl,\n drawerEditButton,\n drawerProductTitle = false\n } = config;\n\n const {\n shoppingBagTitle,\n addedToCartLabel,\n samplesAndOffersLabel,\n productsTitle\n } = translations as ITranslationsCollection;\n\n const {\n data: {\n isVisible,\n activeTab,\n itemsQuantity,\n displayItemAddedText,\n displayCartOffersComponent,\n offerCount,\n totalPrice\n },\n setVisibility,\n disableItemAddedText,\n changeTab,\n priceFormatter,\n isCartLoading\n } = viewController;\n\n const userHidOverlayProps: ICartOverlayVisibilityProps = {\n isUserEvent: true,\n newState: false\n };\n const hideOverlay = () => setVisibility(userHidOverlayProps);\n\n const footerProps = {\n itemsQuantity,\n expandableEstimatedTotals,\n priceFormatter,\n totalPrice,\n splitPaymentLabel,\n splitPaymentInstallments,\n hasSplitPaymentOption,\n splitPaymentBrand,\n enableDiscountModule,\n enableSubtotal: true,\n checkoutUrl: drawerCheckoutUrl,\n goShoppingUrl: drawerGoShoppingUrl,\n enableEditButton: drawerEditButton\n };\n\n const tabComponents: ITabComponent[] = [\n {\n component: ShoppingBagTab,\n tabId: CartEnums.cartLocation,\n props: {\n translations,\n viewController,\n config,\n headerProps: {\n title: drawerProductTitle ? productsTitle : shoppingBagTitle,\n itemAddedText: addedToCartLabel,\n displayItemAddedText,\n displayCartOffersComponent,\n selectedItemsCounter: itemsQuantity,\n disableItemAddedText: disableItemAddedText\n }\n }\n }\n ];\n if (enableOffersTab) {\n tabComponents.push({\n component: OffersTab,\n tabId: CartEnums.offersLocation,\n props: {\n translations,\n viewController,\n config,\n headerProps: {\n title: samplesAndOffersLabel,\n selectedItemsCounter: offerCount\n }\n }\n });\n }\n\n return (\n \n {isCartLoading && }\n \n \n \n );\n});\n\nexport default CartDrawer;\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { translate } from '@estee/elc-service';\n\nimport { diContainer } from '~setup/diContainer';\nimport serviceNames from '~setup/CartService';\n\nimport { translations as _translations } from '~sharedComponents/Providers/Translations/AllTranslations';\nimport { TranslationContext } from '~sharedComponents/Providers/Translations/TranslationsContext';\nimport CartOverlay from '~views/CartOverlay/CartOverlay';\nimport CartDrawer from '~views/CartDrawer/CartDrawer';\n\nimport ICartSidebar from '~exported/CartSidebar/ICartSidebar';\n\n@translate(_translations)\n@observer\nclass CartSidebar extends React.Component {\n componentDidMount() {\n const sentry = diContainer.get(serviceNames.sentryService);\n sentry.checkSentryInit();\n\n const configRepository = diContainer.get(serviceNames.configRepository);\n configRepository.updateConfigs({ cartConfig: this.props.config });\n }\n\n render() {\n const { viewController, config, translations } = this.props;\n const cartProps = {\n viewController,\n config,\n translations\n };\n\n return (\n \n {this.props.config.overlay ? (\n \n ) : (\n \n )}\n \n );\n }\n}\nexport default CartSidebar;\n"],"names":["defaultContext","TranslationContextProvider","TranslationContext","observer","props","allTranslations","children","Provider","value","classes","component","classNames","Container","ContentSpacing","Image","ImageWrapper","render","className","thumb","alt","productUrl","this","imageClass","href","tabIndex","src","space8","space12","space16","space24","inheritBaseFont","Title","Colors","defaultCTA","StyledFooter","StyledImageWrapper","TabContentContainer","RemoveButton","RemoveIconWrapper","RemoveIcon","DisclaimerWrapper","ReplenishmentLabel","StyledInfoIcon","InfoIcon","useTranslation","translations","translationsContext","useContext","translationArray","flat","reduce","acc","translation","console","warn","length","translationsList","ReplenishmentDisclaimer","itemReplenishedDisclaimer","useReplenishment","controller","cartItem","defaultVal","selectedValue","isLoading","getReplenishmentFrequency","updateReplenishment","setSelected","onChange","useCallback","selectedFrequency","useEffect","collectionId","replenishmentInfo","toString","ReplenishmentModalContext","createContext","StyledDropdown","Dropdown","ReplenishmentDropdown","replenishmentOptions","defaultSelection","agreement","setDisplayModal","setAgreement","displayModal","setMessage","result","type","dataTestId","isDisabled","options","name","inputValue","val","isRequired","ReplenishmentWrapper","ReplenishmentModule","config","useState","ReplenishmentViewController","displayDisclaimer","PriceWrapper","EngraveMessage","Label","StyledButton","EngravingDisclaimer","TotalPrice","PriceContainer","FreeItemLabel","PriceItemWrapper","TotalPriceItemWrapper","DiscountedPrice","OldPrice","PercentDiscount","priceWrapperClass","priceClass","discountedClass","oldPriceClass","percentClass","markDownClass","productDiscount","discountedPrice","originalPrice","showDiscountedTotal","hasMarkDownPrice","diContainer","priceFormatter","productFreeLabel","displayProductFreeLabel","cartConfig","hasFullDiscount","showDiscounts","priceFormatted","formatPriceWithCurrency","discountedFormattedPrice","discountedMarkDownItemClass","emphasis","Emphasis","useEngraving","engraving","kitInfo","selectedFont","message","price","discountedUnitPriceWithTax","discountPercent","cartId","collection","selectedFontClassName","toLocaleLowerCase","setIsLoading","removeItem","engravedSkuId","engravingType","id","method","params","_SUBMIT","cmode","action","add_sku_demo","CART_ID","SAVED_MONOGRAM_PATTERN","SAVED_MONOGRAM_TEXT","SAVED_MONOGRAM_FONT","engraved_sku_id","SKU_BASE_ID","COLLECTION_NAME","ENGRAVING_TYPE","COLLECTION_ID","CART_SKU_ITEM_ID","deleteEngraving","emit","events","CART_UPDATED","newDisplayState","newVisibility","priceDetails","engraveName","engraveClass","messageClass","disclaimerClass","engravingLabelClass","EngravingComponent","engravingLabel","engravingDisclaimerLabel","map","messageLine","i","key","black","space4","CartItemPanel","DetailsWrapper","DescriptionWrapper","StyledDetailsWrapper","StyledButtonsContainer","RemoveLabel","CollectionButtonController","constructor","collectionName","sku","_isLoading","_collectionRepository","addItem","_collectionName","_sku","updateCollectionByName","RemoveItemUseCase","skus","execute","isInCollection","getCollection","find","path","includes","CollectionButton","loading","saveForLater","remove","inCollection","showAddItem","showRemoveItem","substring","onKeyPress","onClick","cartClass","totalClass","totalPriceWrapperClass","freeClass","sampleClass","_translations","TotalPriceItem","skuId","freeItem","freeSample","displayProductSampleLabel","productSampleLabel","hasOldPrice","CartItemPriceWrapper","unitPriceWithTax","appliedPriceWithTax","discountedTotalPrice","product","productPrice","isSample","discountType","appliedPrice","totalPrice","hasDiscount","Quantity","QtyLabel","quantityLabelClass","numberSpinnerClass","onQuantitySelect","readOnly","quantityLabel","quantity","maxQuantity","isKitItem","isDropdownDisabled","setLoading","quantityClass","isDisplayOnly","qtyLabel","SpinnerIcon","NumberSpinner","defaultValue","minValue","maxValue","then","DefaultKitItemWrapper","StyledDefaultKitDescription","StyledProductSub","FlexRow","shadeCode","toHexCode","match","ShadeText","ShadeSample","ShadeComponent","_shadeCode","shade","kitItemComponentMap","default","kitItem","image","KitDetails","kitItems","item","kitItemType","KitItemComponent","Description","ProductName","ProductSub","Size","Shade","ProductLink","ShadeSizeWrapper","ProductDescriptionWrapper","ProductPoints","text","dangerouslySetInnerHTML","__html","descriptionName","descriptionClass","nameClass","subClass","pointsClass","linkClass","productDescriptionClass","shadeSizeClass","sizeClass","shadeClass","translationList","hasEngraving","description","size","url","drawerIsReadOnly","pageIsReadOnly","itemMaxQuantity","enableKitDetails","displayLoyaltyPoints","sizeLabel","productPPMultiplier","loyaltyPointsLabel","isReadOnly","displayKitDetailedList","productPointsLabel","multiplier","Math","round","parseInt","calculatePoints","readonly","removeClass","productName","removeTextButton","removeLabel","role","SERVICE_NAME","FAVORITES_LIST","cartItemName","removeIconClass","descriptionWrapperClass","detailsWrapperClass","buttonsContainerClass","onRemoveItem","isReplenishable","enableReplenishment","enabled","collectionEnabled","removeFreeItems","showRemove","isRemoving","onRemovedItem","setIsRemoving","isGiftItem","e","which","useRemove","showReplenishmentModule","displayEngraving","showAddToCollectionButton","cartItemPanelClass","displayFreeLabel","MessagingPanelWrapper","MessagingPanelMessageWrapper","color","MessagingText","messaging","displayPanel","isError","isSuccess","msg","ReplenishmentDisclaimerCookie","space20","space48","ReplenishmentModalWrapper","ReplenishmentModalButtonsWrapper","ResponsiveModalWrapper","ResponsiveModal","Button","StyledOutlinedButton","StyledHeading2","StyledParagraph","translationFields","replenishmentModalClass","ReplenishmentDisclaimerModal","agreeLabel","cancelLabel","replenishmentDisclaimer","replenishmentDisclaimerConfirmation","onClickCloseModal","onClickAgreementAccepted","title","onMaskClick","isOpen","underlayClassName","ItemsContainer","ItemsList","cartOverlaySidebarItemsClass","CartSidebarItems","cartItems","replenishmentModalProps","agreementStatus","setMessaging","replenishmentDisclaimerDeclined","itemCartScheduledForReplenishment","replenishmentNotApplied","success","error","rejected","localStorage","setItem","getItem","Consumer","StyledContent","EmptyCartContent","TitleLabel","CartErrorsContent","GoShoppingButton","EmptyCartStyledFooter","cartEmpty","cartEmptyTitleLabel","EmptyCartIcon","useCart","baseSkuId","cart","addToCart","UpdateCartUseCase","removeFromCart","isInCart","fetchCart","FetchedCartInfoUseCase","finally","useDonations","learnMoreUrl","donationsConfigs","selectedDonation","donations","selectedPrice","fetchDonations","setSelectedDonation","setSelectedPrice","white","primary900","StyledSelectorWrapper","selectorWrapper","selectorButton","selectorImage","imageUrl","selectedClass","newDonation","donation","StyledLabel","StyledInput","priceSelector","priceSelectorLabel","priceSelectorOption","prices","onDonationPriceChange","newPrice","target","isChecked","checked","StyledDonationsWrapper","donationsPanelName","charityTitle","charityName","charityDesc","learnMoreName","addToBagBtn","donationTo","learnMore","addToBagButtonLabel","showSelectMultipleTitle","showPriceSelector","makeADonation","Accordion","LabelSlide","StyledWrapper","StyledChildren","StyledSpinner","spinnerName","SpinnerWrapper","CollectionCarouselController","groups","baseSku","getSkuList","query","gql","callback","isVulcan","skuIds","request","buid","businessUnitId","authorizationtoken","window","location","origin","clientid","getGQLHeaders","productIds","serviceQueries","filterBy","getProductDataByProductId","debounceAggregator","reducer","time","PriceComponentWrapper","discountedPriceFormatted","SizeComponent","itemSizeLabel","TextHolder","lines","TruncatedDescription","primary300","Divider","redLightEmphasis","StyledItem","StyledImage","DetailsArea","StyledOutOfStockIcon","ErrorIcon","OutOfStockStyles","ShadeAndSize","ListItem","removeFromCollection","outOfStock","isSkuLoading","isInStock","setError","setSku","productId","fetchSku","productData","foundSku","skuToFind","filter","perlgem","catch","reFetch","inventoryStatus","toLowerCase","inventory_status","useGetSku","isDiscounted","media","small","shades","shadeName","hexVal","shadeHex","parentProduct","displayName","sizes","_addToCart","isCartLoading","showAddToBag","NoItemsInCollection","noItemsInCollection","CollectionCarousel","labelText","SKU_ID","getActionName","componentName","addListeners","eventName","listener","addEventListener","document","removeEventListener","ImportExternal","boundComponentProps","onBind","rootNode","_rootNode","isBound","setIsBound","createElement","ref","useRef","_onBind","detail","callToBind","CustomEvent","onBindListener","event","incomingDetail","boundEventName","dispatchEvent","bindElement","bindToDomElement","current","append","OfferCodeModule","ServiceView","serviceName","defaultImage","StyledImg","RecommendedImage","danger","RecommendedItemDescriptionWrapper","InteractionBagButton","StyledSpinnerWrapper","RecommendedItemDescription","itemOutOfStock","itemInCart","showRemoveFromBag","RecommendedItem","setProduct","foundProduct","_productId","useGetProduct","defaultSku","LockIconWrapper","LockIcon","SubTotalWrapper","SubtotalValueWrapper","SubtotalLabelWrapper","StyledCheckoutLabel","CheckoutButtonWrapper","StyledActionButton","label","fn","redirectClick","_url","emptyRecommendedTranslations","EmptyRecommendedItem","getRecommendedProductIds","retryLabel","noResultsMessage","useRecommendedCarouselHook","recommendedProductIds","setRecommendedProductIds","fetchRecommended","defaultSliderSettings","arrows","infinite","slidesToScroll","slidesToShow","dots","sliderSettings","responsive","breakpoint","settings","vertical","SliderView","items","NoWrap","RecommendedForYouModule","isExpander","recommendedProductsTitle","RecommendedItemsViewController","cartRepo","recommendedRepo","Wrapper","vulcan","tabContentClass","ShoppingBagTab","viewController","data","itemsQuantity","displayCartOffersComponent","updateCart","drawerEnableOfferCodeModule","enableOfferCodeField","enableOffersTab","drawerEnableRecommendedForYou","enableRecommendedForYou","enableDonationsPanel","enableCollection","cartHasItems","showOfferCodeModule","showCollectionCarousel","showInCartOffers","ExpanderWrapper","Expander","RotatedIcon","CartIconSet","ChildrenWrapper","IconWrapper","Header","onExpansionClick","isExpanded","isExpandable","Body","Footer","blackLightEmphasis","ViewWrapper","LineItem","Disclaimer","DiscountView","cartRepository","discountAmount","cartTotals","discount","subtotal","discountDisclaimerLabel","itemCount","totalQty","itemCountText","subTotalClass","buttonsWrapperClass","checkoutButtonClass","editButtonClass","lockIconClass","footerClass","subtotalValue","onActionButtonClicked","enableDiscountModule","enableEditButton","editButtonLabel","enableSubtotal","expanderProps","setIsExpanded","useExpander","totalEstimate","checkoutLabel","subtotalLabel","goShoppingLabel","expandableEstimatedTotals","splitPaymentLabel","splitPaymentInstallments","hasSplitPaymentOption","splitPaymentBrand","goShoppingUrl","checkoutUrl","setVisibility","editLabel","restHeaders","headers","fetchNode","drupalNodeId","fetchData","fetch","rendered","decodeResponse","json","useDrupalNodes","nodeId","nodeHTML","setNodeHTML","fetched","setFetched","fetchNodeData","drupalNodeClass","DrupalNodeComponent","OverlayContainer","isVisible","HeaderContainer","OuterOverlay","itemAddedText","disableItemAddedText","setTimeout","sidebarName","headerClass","shoppingTabClass","closeIconClass","editCartClass","outerOverlayClass","footerDrupalNodeClass","headerTitleClass","CartOverlay","drawerCheckoutUrl","drawerGoShoppingUrl","overlayFooterDrupalNodeId","autoClose","displayMiniOverlay","displayItemAddedText","cartSidebar","setDisplayMiniOverlay","handleClose","newState","isUserEvent","animationClass","eventHandlers","onClose","delayTime","hovered","setHovered","timer","setTimer","useMemo","onMouseOver","onMouseOut","clearTimeout","useOverlay","miniOverlay","miniOverlaySubtotal","footerProps","miniOverlayClass","overlayClass","hideOverlay","redirectToCheckoutOnEmpty","displayDrupalNodeContent","shoppingBagTitle","addedToCartLabel","Spinner","Icon","CartSidebarLoading","classBaseName","space2","primary700","TabsContainer","TabContent","HeadersContainer","hasMultipleTabs","Row","CloseIconContainer","TitleContainer","CounterIconContainer","HeaderTitle","EditButton","cartSidebarCounterIconClass","selectedItemsCounter","changeTab","isActive","samplesAndOffersLabel","CounterIcon","generateCounterIcon","counterIconClass","tabTitleClass","tabComponents","activeTab","index","initial","headerProps","cartOverlaySidebarHeaderClass","cartOverlaySidebarCloseClass","headerContainerClass","editClass","Component","tabId","CartEnums","ServiceViewContainer","cartDrawerClass","CartDrawer","drawerEditButton","drawerProductTitle","productsTitle","offerCount","userHidOverlayProps","cartLocation","push","offersLocation","isOverlayVisible","disableScroll","overlayTransition","shadowTransition","CartSidebar","componentDidMount","checkSentryInit","updateConfigs","cartProps","overlay"],"sourceRoot":""}