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,CAACC,gBAAiB1Q,GAAgB,CAAC,GAClD,kBAACgM,E,yHAAA,IAAcwE,IAG3B,GA/BE1B,G,mIAAN,GAFC,OAAU,KACX,YACMA,IAkCN,W","sources":["webpack://pg-service-cart/./src/internal/views/EmptyCart/EmptyCart.tsx","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/Shared/Expander/Expander.tsx","webpack://pg-service-cart/./src/internal/views/Shared/Expander/Header.tsx","webpack://pg-service-cart/./src/internal/views/Shared/Expander/Body.tsx","webpack://pg-service-cart/./src/internal/views/Shared/Expander/useExpander.ts","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/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/FlexRow/FlexRow.tsx","webpack://pg-service-cart/./src/internal/views/Shared/ShadeComponent/ShadeComponent.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/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/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/internal/views/Shared/Expander/Footer.tsx","webpack://pg-service-cart/./src/internal/views/CartSidebarFooter/CartSidebarFooter.tsx","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/internal/views/CartOverlay/useOverlay.ts","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/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/internal/utils/IsMobile.ts","webpack://pg-service-cart/./src/internal/utils/CartItemCount.ts","webpack://pg-service-cart/./src/exported/CartSidebar/CartSidebar.tsx"],"sourcesContent":["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 cartEmptyContent = 'cart-empty-content';\nconst emptyCartContentWrapperClass = `elc-${cartEmptyContent}-wrapper`;\nconst emptyCartContentClass = `elc-${cartEmptyContent}`;\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 { 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 styled from 'styled-components';\nimport { observer } from 'mobx-react';\n\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.div`\n height: auto;\n margin: ${space4} 0 0;\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 1px 10px 0 rgba(0, 0, 0, 0.14),\n 0 2px 4px -1px rgba(0, 0, 0, 0.12);\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 { 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-lite';\n\nimport DonationsPanel from '~views/DonationsPanel/DonationsPanel';\nimport { useTranslation } from '~sharedComponents/Providers/Translations/TranslationsHook';\nimport { Expander } from '~sharedComponents/Expander/Expander';\nimport { Header } from '~sharedComponents/Expander/Header';\nimport { Body } from '~sharedComponents/Expander/Body';\nimport { useExpander } from '~sharedComponents/Expander/useExpander';\n\nconst translationsList = ['makeADonation'];\n\nconst DonationsExpander = observer(() => {\n const { makeADonation } = useTranslation(translationsList);\n const expanderProps = useExpander({ isExpandable: true });\n\n return (\n \n
{makeADonation}
\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 { query, serviceQueries } from '@estee/elc-service-bus';\nimport { debounceAggregator } from 'src/utils/debounceAggregator';\nimport { ISDProduct } from './IProductAPIs';\n\nconst localQuery = (productIds: string[]) =>\n query(serviceQueries.GET_PRODUCT_DATA, {\n filterBy: { productIds, skus: { skuIds: productIds } }\n }) as Promise;\n\nexport const getProductDataByProductId = debounceAggregator({\n callback: localQuery,\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 { formatPriceWithCurrency } from '~utils/PriceFormatter';\nimport { PriceComponentWrapper, OldPrice, DiscountedPrice, Price } from './PriceComponentStyles';\n\nimport IPriceComponent from './IPriceComponent';\n\nexport const 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 hasOldPrice = originalPrice > (discountedPrice || 0);\n const priceFormatted = formatPriceWithCurrency(originalPrice);\n const discountedPriceFormatted = discountedPrice\n ? 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 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","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';\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\n// TODO: revisit when Vulcan endpoints are ready.\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 =\n //@ts-ignore\n productData.products.items.reduce(reduceProductToSkus([baseSkuId]), [])[0] ||\n {};\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 =\n (skuToFind: string[]) =>\n (acc: ISDProductSku[], { skus }: ISDProduct) =>\n [\n ...acc,\n // TODO: revisit when Vulcan APIs are ready.\n //@ts-ignore\n ...skus.items.filter(\n //@ts-ignore\n ({ skuId, perlgem = {} }: ISDProductSku) =>\n skuToFind.includes(perlgem?.SKU_BASE_ID?.toString()) ||\n 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 { 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';\nimport { Expander } from '~sharedComponents/Expander/Expander';\nimport { Header } from '~sharedComponents/Expander/Header';\nimport { Body } from '~sharedComponents/Expander/Body';\nimport { useExpander } from '~sharedComponents/Expander/useExpander';\n\nexport interface ICollectionCarouselProps {\n collectionName: string;\n translations?: { [key: string]: string };\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 expanderProps = useExpander({ isExpandable: true });\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
{labelText}
\n \n \n {!skus.length ? (\n \n ) : (\n <>\n {...skus.map((sku) => (\n \n ))}\n \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 {\n addToCart,\n removeFromCart,\n isInCart,\n isLoading: isCartLoading\n } = useCart(SKU_BASE_ID);\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 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 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';\nimport { useExpander } from '~sharedComponents/Expander/useExpander';\nimport { Expander } from '~sharedComponents/Expander/Expander';\nimport { Header } from '~sharedComponents/Expander/Header';\nimport { Body } from '~sharedComponents/Expander/Body';\n\nconst translationsList = ['recommendedProductsTitle'];\n\nexport type IRecommendedForYouExpander = {\n isExpander: boolean;\n};\n\nexport const RecommendedForYouModule = observer(\n ({ isExpander: isExpandable = 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 expanderProps = useExpander({ isExpandable });\n\n return (\n \n
{recommendedProductsTitle}
\n \n \n \n
\n );\n }\n);\n","import React from 'react';\nimport { observer } from 'mobx-react-lite';\n\nimport { useTranslation } from '~views/Shared/Providers/Translations/TranslationsHook';\nimport { diContainer } from '~setup/diContainer';\nimport { serviceNames } from '~setup/CartService';\n// @ts-ignore\nimport CartSidebarCartOffers from 'pg_service_offers/cart-sidebar-cart-offers';\n\nconst ShoppingBagOffers = observer(() => {\n const { config } = diContainer.get(serviceNames.config);\n\n return ;\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 { observer } from 'mobx-react';\n\nexport const Footer: React.FC = observer(({ children }) =>
{children}
);\n","import React from 'react';\nimport { observer } from 'mobx-react';\n\nimport { SpacedWrapper } from '~theme/default-theme';\nimport ICartSidebarFooter from '~views/CartSidebarFooter/ICartSidebarFooter';\nimport { classes } from '~utils/ClassNames';\nimport { formatPriceWithCurrency } from '~utils/PriceFormatter';\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 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 translations = ['totalEstimate', 'subtotal', 'checkoutLabel'];\n\nconst CartSidebarFooter: React.FC = observer(\n ({\n subtotalValue = 0,\n onActionButtonClicked,\n isExpandable,\n enableDiscountModule,\n enableEditButton,\n editButtonLabel,\n enableSubtotal\n }) => {\n const expanderProps = useExpander({ isExpandable });\n const { totalEstimate, subtotal, checkoutLabel } = useTranslation(translations);\n const subtotalLabel = enableDiscountModule ? totalEstimate : subtotal;\n\n return (\n \n {enableSubtotal && (\n
\n \n {subtotalLabel}\n \n {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 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', 'editLabel'];\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 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 { 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 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 footerNodeClass = classes(`${sidebarName}-footer-drupal-node`);\nconst headerTitleClass = classes(`${sidebarName}-header-title`);\n\nconst CartOverlay = observer(({ config, viewController, translations }: ICartSidebar) => {\n const {\n drawerCheckoutUrl,\n drawerGoShoppingUrl,\n overlayFooterDrupalNodeId: nodeId,\n overlayFooterDrupalNodePositionOnTop: displayNodeOnTop\n } = 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 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 nodeIds = Array.isArray(nodeId) ? nodeId : [nodeId];\n\n const drupalNode = ;\n\n const { shoppingBagTitle, editLabel, 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 {displayNodeOnTop && drupalNode}\n \n {!displayNodeOnTop && drupalNode}\n
\n \n );\n});\n\nexport default CartOverlay;\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 { 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 Row = styled.div`\n margin: 0;\n width: 100%;\n min-width: 0;\n display: flex;\n flex-wrap: wrap;\n box-sizing: border-box;\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', 'editLabel'];\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';\nimport { TabContentContainer } from '~theme/default-theme';\nimport { useTranslation } from '~views/Shared/Providers/Translations/TranslationsHook';\nimport { isVulcan } from '~utils/isVulcan';\n// @ts-ignore\nimport CartSidebarOffersTab from 'pg_service_offers/cart-sidebar-offers-tab';\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 { shoppingBagTitle, addedToCartLabel, samplesAndOffersLabel, 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 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 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","export const isMobile = () => {\n const mQ = window?.matchMedia('(pointer:coarse)');\n const hasTouchScreen = navigator?.maxTouchPoints > 0 || mQ?.matches;\n\n return hasTouchScreen && screen?.width <= 480;\n};\n","export const getCartItemCountCookie = () => {\n const regex = new RegExp('(^| )FE_USER_CART=([^;]+)');\n const feUserCartCookie = document.cookie.match(regex) || '';\n if (feUserCartCookie) {\n const cookies = decodeURIComponent(feUserCartCookie[2]).split('&');\n const itemCountCookie = cookies.find((cookie) => cookie.includes('item_count'));\n\n return itemCountCookie ? itemCountCookie.split(':')?.[1] || '0' : '';\n }\n\n return feUserCartCookie;\n};\n\nexport const getCartItemCountHTML = (target: HTMLButtonElement) => {\n const hasCount = target?.getAttribute('data-cart-target');\n const countNode = hasCount\n ? target\n : target?.parentNode?.querySelector('[data-cart-target=\"itemsCount\"]');\n\n return countNode?.innerHTML || '';\n};\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';\nimport { isVulcan } from '~utils/isVulcan';\nimport { isMobile } from '~utils/IsMobile';\nimport { getCartItemCountCookie, getCartItemCountHTML } from '~utils/CartItemCount';\nimport { getConfig } from '../../SharedComponents/configs';\n\nfunction searchForDrawer() {\n const onClickEvent = (event: { target: HTMLButtonElement } & MouseEvent) =>\n document.dispatchEvent(\n new CustomEvent('cart.overlay.icon_click', {\n detail: {\n isMobile: isMobile(),\n itemsQty: getCartItemCountCookie() || getCartItemCountHTML(event?.target) || '0'\n }\n })\n );\n\n const bindAction = (records: MutationRecord[], obs: MutationObserver) => {\n records.forEach((record) => {\n record.addedNodes.forEach((_node) => {\n const actionNode = window.document.querySelector(\n '[data-behaviour-action=\"cart-drawer\"]'\n );\n\n if (actionNode) {\n actionNode.addEventListener('click', onClickEvent);\n obs.disconnect();\n }\n });\n });\n };\n\n const mutationObs = new MutationObserver(bindAction);\n const configs = { attributes: true, childList: true, subtree: true };\n mutationObs.observe(window.document, configs);\n}\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 config = this.props.config || getConfig();\n\n const configRepository = diContainer.get(serviceNames.configRepository);\n configRepository.updateConfigs({ cartConfig: config });\n\n if (isVulcan()) {\n searchForDrawer();\n }\n }\n\n render() {\n const { viewController, translations } = this.props;\n const config = this.props.config || getConfig();\n const cartProps = {\n viewController,\n config,\n translations\n };\n\n const Component = config.overlay ? CartOverlay : CartDrawer;\n\n return (\n \n \n \n );\n }\n}\n\nexport default CartSidebar;\n"],"names":["cartEmptyContent","emptyCartContentWrapperClass","emptyCartContentClass","observer","cartEmpty","cartEmptyTitleLabel","className","EmptyCartIcon","useDonations","controller","useState","diContainer","config","learnMoreUrl","cartConfig","donationsConfigs","selectedDonation","donations","selectedPrice","fetchDonations","setSelectedDonation","setSelectedPrice","addToCart","skuId","useEffect","space8","space4","ContentSpacing","white","black","primary900","Colors","StyledSelectorWrapper","StyledButton","selectorWrapper","selectorButton","selectorImage","map","id","name","imageUrl","selectedClass","onClick","newDonation","find","donation","key","ImageWrapper","thumb","StyledLabel","StyledInput","priceSelector","priceSelectorLabel","priceSelectorOption","prices","onDonationPriceChange","e","newPrice","price","toString","target","value","i","isChecked","type","checked","onChange","translationsList","StyledDonationsWrapper","donationsPanelName","charityTitle","charityName","charityDesc","learnMoreName","addToBagBtn","donationTo","learnMore","addToBagButtonLabel","showSelectMultipleTitle","length","showPriceSelector","description","href","Button","ExpanderWrapper","Expander","children","space16","RotatedIcon","CartIconSet","ChildrenWrapper","props","IconWrapper","Header","onExpansionClick","isExpanded","isExpandable","role","Body","useExpander","setIsExpanded","makeADonation","expanderProps","StyledWrapper","StyledChildren","StyledSpinner","spinnerName","SpinnerWrapper","isLoading","SpinnerIcon","CollectionCarouselController","constructor","collectionName","_isLoading","_collectionRepository","removeItem","path","this","baseSkuId","match","groups","baseSku","_collectionName","updateCollectionByName","getSkuList","getCollection","getProductDataByProductId","callback","productIds","query","serviceQueries","filterBy","skus","skuIds","reducer","acc","time","PriceComponentWrapper","Price","DiscountedPrice","OldPrice","priceClass","oldPriceClass","hasDiscount","discountedPrice","originalPrice","hasOldPrice","priceFormatted","discountedPriceFormatted","emphasis","Emphasis","FlexRow","ShadeText","ShadeSample","shadeCode","ShadeComponent","_shadeCode","shade","sizeClass","Size","SizeComponent","size","itemSizeLabel","TextHolder","lines","TruncatedDescription","primary300","Divider","redLightEmphasis","StyledItem","StyledImage","DetailsArea","StyledOutOfStockIcon","ErrorIcon","OutOfStockStyles","ShadeAndSize","translationArray","ListItem","sku","removeFromCollection","outOfStock","remove","isSkuLoading","isInStock","setIsLoading","error","setError","setSku","productId","fetchSku","then","productData","foundSku","products","items","reduce","skuToFind","filter","perlgem","includes","SKU_BASE_ID","catch","finally","reFetch","inventoryStatus","toLowerCase","inventory_status","useGetSku","isDiscounted","media","small","src","alt","shades","shadeName","hexVal","shadeHex","parentProduct","displayName","sizes","_addToCart","isInCart","isCartLoading","showAddToBag","S","NoItemsInCollection","noItemsInCollection","CollectionCarousel","saveForLater","labelText","SKU_ID","defaultImage","StyledImg","RecommendedImage","danger","RecommendedItemDescriptionWrapper","InteractionBagButton","StyledSpinnerWrapper","translations","RecommendedItemDescription","removeLabel","itemOutOfStock","removeFromCart","itemInCart","showRemoveFromBag","product","setProduct","foundProduct","_productId","useGetProduct","defaultSku","emptyRecommendedTranslations","EmptyRecommendedItem","getRecommendedProductIds","retryLabel","noResultsMessage","ActionButton","fn","label","useRecommendedCarouselHook","setLoading","recommendedProductIds","setRecommendedProductIds","fetchRecommended","defaultSliderSettings","arrows","infinite","slidesToScroll","slidesToShow","dots","sliderSettings","responsive","breakpoint","settings","vertical","SliderView","RecommendedForYouModule","isExpander","recommendedProductsTitle","RecommendedItemsViewController","cartRepo","recommendedRepo","tabContentClass","ShoppingBagTab","viewController","data","cartItems","itemsQuantity","displayCartOffersComponent","updateCart","drawerEnableOfferCodeModule","enableOfferCodeField","enableOffersTab","drawerEnableRecommendedForYou","enableRecommendedForYou","enableDonationsPanel","collection","enabled","enableCollection","cartHasItems","showOfferCodeModule","showCollectionCarousel","showInCartOffers","CartSidebarItems","onRemoveItem","onQuantitySelect","OfferCodeModule","Footer","subTotalClass","buttonsWrapperClass","checkoutButtonClass","editButtonClass","lockIconClass","footerClass","subtotalValue","onActionButtonClicked","enableDiscountModule","enableEditButton","editButtonLabel","enableSubtotal","totalEstimate","subtotal","checkoutLabel","subtotalLabel","DiscountView","goShoppingLabel","redirectClick","expandableEstimatedTotals","totalPrice","splitPaymentLabel","splitPaymentInstallments","hasSplitPaymentOption","splitPaymentBrand","goShoppingUrl","checkoutUrl","setVisibility","editLabel","OverlayContainer","isVisible","HeaderContainer","OuterOverlay","itemAddedText","disableItemAddedText","setTimeout","sidebarName","headerClass","shoppingTabClass","closeIconClass","editCartClass","outerOverlayClass","footerNodeClass","headerTitleClass","CartOverlay","drawerCheckoutUrl","drawerGoShoppingUrl","overlayFooterDrupalNodeId","nodeId","overlayFooterDrupalNodePositionOnTop","displayNodeOnTop","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","nodeIds","Array","isArray","drupalNode","DrupalNode","shoppingBagTitle","addedToCartLabel","Spinner","Icon","CartSidebarLoading","classBaseName","space2","primary700","TabsContainer","TabContent","HeadersContainer","hasMultipleTabs","Row","CloseIconContainer","TitleContainer","CounterIconContainer","HeaderTitle","EditButton","cartSidebarCounterIconClass","title","selectedItemsCounter","changeTab","tabIndex","isActive","samplesAndOffersLabel","CounterIcon","generateCounterIcon","counterIconClass","tabTitleClass","tabComponents","activeTab","index","initial","headerProps","cartOverlaySidebarHeaderClass","cartOverlaySidebarCloseClass","headerContainerClass","editClass","Component","component","tabId","emit","events","CartEnums","ServiceViewContainer","isVulcan","cartDrawerClass","CartDrawer","drawerEditButton","drawerProductTitle","productsTitle","offerCount","userHidOverlayProps","cartLocation","push","offersLocation","isOverlayVisible","disableScroll","overlayTransition","shadowTransition","isMobile","mQ","window","matchMedia","navigator","maxTouchPoints","matches","screen","width","getCartItemCountCookie","regex","RegExp","feUserCartCookie","document","cookie","itemCountCookie","decodeURIComponent","split","getCartItemCountHTML","countNode","getAttribute","parentNode","querySelector","innerHTML","CartSidebar","componentDidMount","checkSentryInit","updateConfigs","onClickEvent","event","dispatchEvent","CustomEvent","detail","itemsQty","MutationObserver","records","obs","forEach","record","addedNodes","_node","actionNode","addEventListener","disconnect","observe","attributes","childList","subtree","searchForDrawer","render","cartProps","overlay","allTranslations"],"sourceRoot":""}