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ACE1F,IAAAA,cAAAA,IAAAA,SAAA,KACEA,IAAAA,cAACyC,EAAAA,aAAY,CACXpC,OAAO,2BACPqC,KAAK,OACLE,QAASkF,EACTnF,QAAQ,YACRwF,WAAYrI,QAAoBd,IAElCgB,IAAAA,cAACoI,EAAS,CAAClE,OAAQwB,EAAiBlF,aAAcsH,EAAiBnH,0BAvB5C,WACzBgF,GAAmB,GACnBS,EAASH,EAAOoC,UAClB,IAuBF,EAUA,SARA,WACE,OACErI,IAAAA,cAACsI,GAAAA,EAAa,CAACC,UAAQ,EAACC,iBAAe,GACrCxI,IAAAA,cAACyF,GAAe,MAGtB,C,mECzHIgD,E,MAA0B,GAA4B,KAE1DA,EAAwBtG,KAAK,CAACuG,EAAO/B,GAAI,mkFAAokF,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uoBAAuoB,6DAA6D,2kHAA2kH,MAAQ,GAAG,SAAW,06BAA06B,WAAa,MAEp2P8B,EAAwB1J,OAAS,CAChC,QAAW,OACX,aAAgB,OAChB,OAAU,IACV,OAAU,MACV,sBAAuB,wCACvB,aAAc,+BACd,mBAAoB,qCACpB,aAAc,+BACd,oBAAqB,sCACrB,cAAe,gCACf,qBAAsB,uCACtB,gCAAiC,kDACjC,mBAAoB,qCACpB,0BAA2B,4CAC3B,0BAA2B,4CAC3B,sBAAuB,wCACvB,qCAAsC,uDACtC,gDAAiD,kEACjD,6BAA8B,+CAC9B,qBAAsB,wCAEvB,S,mEC1BI0J,E,MAA0B,GAA4B,KAE1DA,EAAwBtG,KAAK,CAACuG,EAAO/B,GAAI,0SAA2S,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,MAAQ,GAAG,SAAW,yEAAyE,WAAa,MAEniB8B,EAAwB1J,OAAS,CAChC,mBAAoB,qCACpB,0BAA2B,4CAC3B,0BAA2B,6CAE5B,S","sources":["webpack://cart-mfe/./src/components/CartPanelTitle/CartPanelTitle.module.scss?a835","webpack://cart-mfe/./src/components/CartPanelTitle/CartPanelTitle.tsx","webpack://cart-mfe/./src/components/CartPanel/CartPanel.module.scss?2998","webpack://cart-mfe/./src/components/CartPanel/CartPanel.tsx","webpack://cart-mfe/./src/components/CartPanelToggle/CartPanelToggle.tsx","webpack://cart-mfe/./src/components/CartPanel/CartPanel.module.scss","webpack://cart-mfe/./src/components/CartPanelTitle/CartPanelTitle.module.scss"],"sourcesContent":["\n import API from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_sass@1.80.5_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.38_typescript@5.5.3_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/postcss-loader/dist/cjs.js!./CartPanelTitle.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_sass@1.80.5_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.38_typescript@5.5.3_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/postcss-loader/dist/cjs.js!./CartPanelTitle.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { CartStore } from '@rc-d2c/context-manager';\nimport { useIsFetchingCartPriceDetails } from '@rc-d2c/shared-behavior/hooks/data/cart/useIsFetchingCartPriceDetails';\nimport { useFormattedPrice } from '@rc-d2c/shared-behavior/hooks/useFormattedPrice';\nimport { RcLoader } from '@rc-d2c/shared-ui/RcLoader';\nimport classNames from 'classnames/bind';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useStore } from 'zustand';\n\nimport { useNumberOfProducts } from '../../hooks';\nimport styles from './CartPanelTitle.module.scss';\n\nconst cx = classNames.bind(styles);\n\nconst CartPanelTitle = () => {\n const { t } = useTranslation();\n const { totalPrice } = useStore(CartStore, (state) => state);\n const { formatPrice } = useFormattedPrice();\n\n const isFetchingPrice = useIsFetchingCartPriceDetails();\n\n const numberOfProducts = useNumberOfProducts();\n\n return (\n

\n {numberOfProducts > 0 ? (\n <>\n \n {t('cart.yourCart')}\n \n {` (${numberOfProducts}) - `}\n \n {isFetchingPrice ? : formatPrice(totalPrice)}\n \n \n ) : (\n {t('cart.cartPanelTitle.empty')}\n )}\n

\n );\n};\n\nexport default CartPanelTitle;\n","\n import API from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_sass@1.80.5_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.38_typescript@5.5.3_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/postcss-loader/dist/cjs.js!./CartPanel.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_sass@1.80.5_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.38_typescript@5.5.3_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/postcss-loader/dist/cjs.js!./CartPanel.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import * as Dialog from '@radix-ui/react-dialog';\nimport { ANALYTIC_EVENTS, CartStore, isUserLoggedIn, ShopConfig } from '@rc-d2c/context-manager';\nimport { useAddProductToCartMutationState } from '@rc-d2c/shared-behavior/hooks/data/cart/useAddProductToCartMutationState';\nimport { useIsFetchingCartProducts } from '@rc-d2c/shared-behavior/hooks/data/cart/useIsFetchingCartProducts';\nimport { useNotifications } from '@rc-d2c/shared-behavior/hooks/useNotifications';\nimport { hasPendingMutation } from '@rc-d2c/shared-behavior/utils/mutationsUtils';\nimport { RcButtonIcon } from '@rc-d2c/shared-ui/RcButtonIcon';\nimport { RcLoader } from '@rc-d2c/shared-ui/RcLoader';\nimport { RcOverlay } from '@rc-d2c/shared-ui/RcOverlay';\nimport { MutationState } from '@tanstack/react-query';\nimport classNames from 'classnames/bind';\nimport React, { useEffect, useRef } from 'react';\nimport { Trans, useTranslation } from 'react-i18next';\nimport { useInView } from 'react-intersection-observer';\nimport { useStore } from 'zustand';\n\nimport { CartButton } from '../CartButton/CartButton';\nimport CartCardList from '../CartCardList/CartCardList';\nimport CartCheckoutButton from '../CartCheckoutButton/CartCheckoutButton';\nimport CartPanelTitle from '../CartPanelTitle/CartPanelTitle';\nimport CartReinsurance from '../CartReinsurance/CartReinsurance';\nimport CartTotal from '../CartTotal/CartTotal';\nimport styles from './CartPanel.module.scss';\n\nconst cx = classNames.bind(styles);\n\ntype CartPanelProps = {\n isOpen: boolean;\n toggleIsOpen: () => void;\n onGoToCartPageButtonClick: () => void;\n};\n\nconst CartPanel = ({ isOpen = false, toggleIsOpen, onGoToCartPageButtonClick }: CartPanelProps) => {\n const dialogRef = useRef(null);\n const { ref: inViewRef, inView } = useInView({\n threshold: 0,\n root: dialogRef.current,\n });\n\n const { renderNotifications } = useNotifications(true);\n\n // Fix closing Dialog with Escape key adding\n // \"pointerEvents: none\" to the body and not removing it\n // making the body unclickable\n useEffect(\n function removePointerEvent() {\n if (isOpen) {\n // Pushing the change to the end of the call stack\n const timer = setTimeout(() => {\n document.body.style.pointerEvents = '';\n }, 0);\n\n return () => clearTimeout(timer);\n } else {\n document.body.style.pointerEvents = 'auto';\n }\n },\n [isOpen],\n );\n\n return (\n \n \n \n \n {renderNotifications()}\n \n \n \n \n );\n};\n\nexport const CartPanelContent = ({\n toggleIsOpen,\n inView,\n inViewRef,\n onGoToCartPageButtonClick,\n}: CartPanelProps & { inView: boolean; inViewRef: (node?: Element | null | undefined) => void }) => {\n const { t } = useTranslation();\n const { products, deliveryFees, shippingDiscount } = useStore(CartStore, (state) => state);\n const { isGuestCheckoutEnabled } = ShopConfig.ShopStore.getState();\n const hasProductWithSubscription = products.some((product) => product.isSubscriptionChecked);\n\n const showFreeShippingMsg = deliveryFees === 0 || shippingDiscount - deliveryFees === 0;\n\n // ----- queries / mutations -----\n\n const addProductToCartMutationState = useAddProductToCartMutationState() as MutationState[];\n const isFetchingCartProducts = useIsFetchingCartProducts();\n\n // ----- rendering -----\n\n const shouldDisplayGlobalLoader = !hasPendingMutation(addProductToCartMutationState) && isFetchingCartProducts;\n\n const handleOnClickViewCart = () => {\n window.dataLayer?.push({\n event: ANALYTIC_EVENTS.CART_BUTTON_CLICK,\n [ANALYTIC_EVENTS.CART_BUTTON_CLICK]: {\n item: 'View cart',\n },\n });\n\n onGoToCartPageButtonClick();\n };\n\n return (\n <>\n
\n
\n \n \n
\n
\n {shouldDisplayGlobalLoader && (\n \n \n \n )}\n
\n {products.length > 0 && showFreeShippingMsg && (\n

\n }}\n />\n

\n )}\n \n {products.length > 0 && (\n <>\n \n \n \n )}\n
\n {products.length > 0 && !inView && (\n
\n \n {handleOnClickViewCart && (\n \n )}\n {!isUserLoggedIn() && isGuestCheckoutEnabled && !hasProductWithSubscription && (\n \n )}\n
\n )}\n \n );\n};\n\nexport default CartPanel;\n","import '../../index.scss';\n\nimport { ANALYTIC_EVENTS, CartConfig, CartStore, isUserLoggedIn, syncCartProducer, UserStore } from '@rc-d2c/context-manager';\nimport { useAddProductToCartMutationState } from '@rc-d2c/shared-behavior/hooks/data/cart/useAddProductToCartMutationState';\nimport { useIsFetchingCartPriceDetails } from '@rc-d2c/shared-behavior/hooks/data/cart/useIsFetchingCartPriceDetails';\nimport { useIsFetchingCartProducts } from '@rc-d2c/shared-behavior/hooks/data/cart/useIsFetchingCartProducts';\nimport { useFrequencyList } from '@rc-d2c/shared-behavior/hooks/useFrequencyList';\nimport { useRouting } from '@rc-d2c/shared-behavior/hooks/useRouting';\nimport { hasPendingMutation } from '@rc-d2c/shared-behavior/utils/mutationsUtils';\nimport { RcButtonIcon } from '@rc-d2c/shared-ui/RcButtonIcon';\nimport { MutationState } from '@tanstack/react-query';\nimport React, { useEffect } from 'react';\nimport { useStore } from 'zustand';\n\nimport { useNumberOfProducts } from '../../hooks';\nimport { getFrequencyFromProduct, getPriceFromProduct, getSizeFromProduct } from '../../utils/analyticsUtils';\nimport CartPanel from '../CartPanel/CartPanel';\nimport CartProviders from '../CartProviders/CartProviders';\n\nlet didTriggerCartViewAnalytic = false;\n\nconst CartPanelToggle = () => {\n const { isCartPanelOpen, setIsCartPanelOpen, products } = useStore(CartStore, (state) => state);\n const isFetchingPrice = useIsFetchingCartPriceDetails();\n const isFetchingCartProducts = useIsFetchingCartProducts();\n const addProductToCartMutationState = useAddProductToCartMutationState() as MutationState[];\n const isAddingProduct = hasPendingMutation(addProductToCartMutationState);\n const { currentFrequencyList } = useFrequencyList();\n\n const { d2cToken } = useStore(UserStore, (state) => state);\n\n const numberOfProducts = useNumberOfProducts();\n const { routes } = useStore(CartConfig.CartConfigStore);\n const { navigate } = useRouting();\n\n useEffect(\n function syncCartOnUserConnection() {\n if (d2cToken || isUserLoggedIn()) {\n syncCartProducer();\n }\n },\n [d2cToken],\n );\n\n useEffect(() => {\n if (!isCartPanelOpen) {\n didTriggerCartViewAnalytic = false;\n }\n }, [isCartPanelOpen]);\n\n useEffect(() => {\n if (isCartPanelOpen && !isFetchingPrice && !isFetchingCartProducts && !isAddingProduct && !didTriggerCartViewAnalytic) {\n // We need to trigger analytics only once when cart panel is open and the data is ready, and not when the user updates the cart\n didTriggerCartViewAnalytic = true;\n\n window.dataLayer?.push({\n event: ANALYTIC_EVENTS.CART_VIEW,\n [ANALYTIC_EVENTS.CART_VIEW]: {\n products: products.map((product) => ({\n mainItemCode: product.id,\n price: getPriceFromProduct(product.skuList, product.skuId),\n specie: product.petType === 'cat' ? 'Cat' : 'Dog',\n name: product.productName,\n SKU: product.skuId,\n subscription: product.isSubscriptionChecked ? 'Subscription' : 'Single purchase',\n subscriptionFrequency:\n product.frequencyId && product.isSubscriptionChecked\n ? getFrequencyFromProduct(currentFrequencyList, product.frequencyId)\n : undefined,\n technology: 'Dry',\n size: getSizeFromProduct(product.skuList, product.skuId),\n quantity: product.quantity,\n pillar: product.pillar,\n range: product.range,\n })),\n },\n _clear: true,\n });\n }\n }, [isCartPanelOpen, isFetchingPrice, isFetchingCartProducts, isAddingProduct]);\n\n const toggleCartPanel = () => {\n /* In disconnected mode, we trigger cart sync to refresh prices and stocks when the panel is opened */\n if (!isCartPanelOpen && !isUserLoggedIn()) {\n syncCartProducer();\n }\n triggerAnalytics();\n setIsCartPanelOpen(!isCartPanelOpen);\n };\n\n const handleGoToCartPage = () => {\n setIsCartPanelOpen(false);\n navigate(routes.CART_PAGE);\n };\n\n const triggerAnalytics = () => {\n window.dataLayer?.push({\n event: ANALYTIC_EVENTS.CART_PANEL_DISPLAY,\n [ANALYTIC_EVENTS.CART_PANEL_DISPLAY]: {\n action: !isCartPanelOpen ? 'Open' : 'Close',\n },\n });\n };\n\n return (\n <>\n \n \n \n );\n};\n\nfunction CartPanelToggleContainer() {\n return (\n \n \n \n );\n}\n\nexport default CartPanelToggleContainer;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.rc-d2c__cart-panel__overlay--YRj49xJo{background:rgb(var(--rc-d2c-neutral-900-rgb)/0.5);display:grid;inset:0;overflow-y:auto;position:fixed}.rc-d2c__cart-panel--JjxuLlo1{background-color:var(--rc-d2c-neutral-200);height:100svh;position:fixed;right:0;top:0;width:100%;z-index:1100}@media screen and (min-width: 1200px){.rc-d2c__cart-panel--JjxuLlo1{width:450px}}.rc-d2c__cart-panel__overlay--YRj49xJo{z-index:1000}.rc-d2c__cart-panel--open--RmKvS4Xa{animation:rc-d2c__open-panel--l6ARNH7h .5s ease-in-out}.rc-d2c__cart-panel--close--DQiNaIC3{animation:rc-d2c__close-panel--R82hCTjp .5s ease-in-out}.rc-d2c__cart-panel__button--lU23Ur4x{width:100%}.rc-d2c__cart-panel__button__view-cart--jczLNhU6{display:none;margin-top:var(--rc-d2c-space-12)}@media screen and (min-width: 1200px){.rc-d2c__cart-panel__button__view-cart--jczLNhU6{display:block}}.rc-d2c__cart-panel__head--GnKx7Hid{position:relative}.rc-d2c__cart-panel__head__inner--b0zgEi6g{align-items:center;display:flex;height:50px;justify-content:space-between;padding:var(--rc-d2c-space-12) var(--rc-d2c-space-16) var(--rc-d2c-space-16);position:relative;z-index:30}.rc-d2c__cart-panel__head--GnKx7Hid::before{background-color:var(--rc-d2c-neutral-100);content:\"\";display:block;inset:0;position:absolute;z-index:20}.rc-d2c__cart-panel__head--GnKx7Hid::after{bottom:0;box-shadow:0 2px 12px 3px rgb(var(--rc-d2c-neutral-900-rgb)/0.23);content:\"\";display:block;left:10%;position:absolute;right:10%;z-index:10}.rc-d2c__cart-panel__head__price--M8RzvPgi{color:var(--rc-d2c-primary-500)}.rc-d2c__cart-panel__content--PI4sqis6{display:grid;height:calc(100svh - 50px);justify-items:center;list-style:none;overflow-y:scroll;padding:var(--rc-d2c-space-16)}.rc-d2c__cart-panel__content__free-shipping--aGpiKJ6n{font-size:var(--rc-d2c-text-18);margin-bottom:var(--rc-d2c-space-24)}.rc-d2c__cart-panel__content__free-shipping--highlight--s_DEdqoJ{font-weight:500}@media screen and (min-width: 1200px){.rc-d2c__cart-panel__content--PI4sqis6{padding:var(--rc-d2c-space-24)}}.rc-d2c__cart-panel__content__total--H38jiDST{margin-top:var(--rc-d2c-space-24)}.rc-d2c__cart-panel__footer--BOfT_hYR{align-items:center;background-color:var(--rc-d2c-neutral-100);bottom:0;box-shadow:0 -2px 15px rgb(var(--rc-d2c-neutral-900-rgb)/0.25);display:flex;flex-direction:column;justify-content:center;left:0;padding:var(--rc-d2c-space-16) var(--rc-d2c-space-24);position:absolute;right:0;z-index:99}@keyframes rc-d2c__open-panel--l6ARNH7h{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes rc-d2c__close-panel--R82hCTjp{from{transform:translateX(0)}to{transform:translateX(100%)}}`, \"\",{\"version\":3,\"sources\":[\"data:;charset=utf-8,%25overlay%20%7B%0A%20%20background:%20rgb(var(--rc-d2c-neutral-900-rgb)%20/%200.5);%0A%20%20display:%20grid;%0A%20%20inset:%200;%0A%20%20overflow-y:%20auto;%0A%20%20position:%20fixed;%0A%7D%0A%0A%25separator%20%7B%0A%20%20border:%201px%20solid%20var(--rc-d2c-secondary-200);%0A%20%20width:%20100%25;%0A%7D%0A%0A%25clickable-area%20%7B%0A%20%20position:%20static;%0A%0A%20%20&::after%20%7B%0A%20%20%20%20content:%20'';%0A%20%20%20%20display:%20block;%0A%20%20%20%20height:%20100%25;%0A%20%20%20%20inset:%200;%0A%20%20%20%20position:%20absolute;%0A%20%20%20%20width:%20100%25;%0A%20%20%20%20z-index:%200;%0A%20%20%7D%0A%7D%0A\",\"webpack://./src/components/CartPanel/CartPanel.module.scss\",\"data:;charset=utf-8,@use%20'sass:map';%0A@use%20'sass:list';%0A@use%20'sass:string';%0A@use%20'../variables/breakpoints'%20as%20*;%0A@use%20'functions'%20as%20*;%0A%0A@mixin%20font-face($name,%20$path,%20$weight:%20null,%20$style:%20null,%20$exts:%20eot%20woff2%20woff%20ttf%20svg)%20%7B%0A%20%20$src:%20null;%0A%20%20$extmods:%20(%0A%20%20%20%20eot:%20'?',%0A%20%20%20%20svg:%20'%23'%20+%20strReplace($name,%20'%20',%20'_'),%0A%20%20);%0A%20%20$formats:%20(%0A%20%20%20%20otf:%20'opentype',%0A%20%20%20%20ttf:%20'truetype',%0A%20%20);%0A%0A%20%20@each%20$ext%20in%20$exts%20%7B%0A%20%20%20%20$extmod:%20if(map.has-key($extmods,%20$ext),%20$ext%20+%20map.get($extmods,%20$ext),%20$ext);%0A%20%20%20%20$format:%20if(map.has-key($formats,%20$ext),%20map.get($formats,%20$ext),%20$ext);%0A%20%20%20%20$src:%20list.append($src,%20url(string.quote($path%20+%20'.'%20+%20$extmod))%20format(string.quote($format)),%20comma);%0A%20%20%7D%0A%0A%20%20@font-face%20%7B%0A%20%20%20%20font-family:%20string.quote($name);%0A%20%20%20%20font-style:%20$style;%0A%20%20%20%20font-weight:%20$weight;%0A%20%20%20%20src:%20$src;%0A%20%20%7D%0A%7D%0A%0A@mixin%20from($device:%20mobile)%20%7B%0A%20%20@if%20$device%20==%20tablet%20%7B%0A%20%20%20%20@media%20screen%20and%20(min-width:%20$tablet)%20%7B%0A%20%20%20%20%20%20@content;%0A%20%20%20%20%7D%0A%20%20%7D%20@else%20if%20$device%20==%20desktop%20%7B%0A%20%20%20%20@media%20screen%20and%20(min-width:%20$desktop)%20%7B%0A%20%20%20%20%20%20@content;%0A%20%20%20%20%7D%0A%20%20%7D%20@else%20if%20$device%20==%20large-desktop%20%7B%0A%20%20%20%20@media%20screen%20and%20(min-width:%20$large-desktop)%20%7B%0A%20%20%20%20%20%20@content;%0A%20%20%20%20%7D%0A%20%20%7D%20@else%20if%20$device%20==%20tablet-only%20%7B%0A%20%20%20%20@media%20screen%20and%20(min-width:%20$tablet)%20and%20(width%20%3C=%20calc($desktop%20-%201px))%20%7B%0A%20%20%20%20%20%20@content;%0A%20%20%20%20%7D%0A%20%20%7D%20@else%20if%20$device%20==%20desktop-only%20%7B%0A%20%20%20%20@media%20screen%20and%20(min-width:%20$desktop)%20and%20(width%20%3C=%20calc($large-desktop%20-%201px))%20%7B%0A%20%20%20%20%20%20@content;%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A%0A@mixin%20asterisk($position:%20after)%20%7B%0A%20%20@if%20$position%20==%20before%20%7B%0A%20%20%20%20&::before%20%7B%0A%20%20%20%20%20%20color:%20var(--rc-d2c-primary-600);%0A%20%20%20%20%20%20content:%20'*';%0A%20%20%20%20%20%20margin-right:%202px;%0A%20%20%20%20%7D%0A%20%20%7D%20@else%20%7B%0A%20%20%20%20&::after%20%7B%0A%20%20%20%20%20%20color:%20var(--rc-d2c-primary-600);%0A%20%20%20%20%20%20content:%20'*';%0A%20%20%20%20%20%20margin-right:%200.2px;%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A%0A@mixin%20square($size)%20%7B%0A%20%20height:%20$size;%0A%20%20width:%20$size;%0A%7D%0A%0A@mixin%20truncate($width:%20100%25)%20%7B%0A%20%20overflow:%20hidden;%0A%20%20text-overflow:%20ellipsis;%0A%20%20white-space:%20nowrap;%0A%20%20width:%20$width;%0A%7D%0A%0A@mixin%20dot($color:%20var(--rc-d2c-success),%20$size:%208px)%20%7B%0A%20%20&::before%20%7B%0A%20%20%20%20background-color:%20$color;%0A%20%20%20%20border-radius:%20$size;%0A%20%20%20%20content:%20'';%0A%20%20%20%20display:%20inline-block;%0A%20%20%20%20margin-right:%20var(--rc-d2c-space-4);%0A%0A%20%20%20%20@include%20square($size);%0A%20%20%7D%0A%7D%0A%0A@mixin%20sr-only%20%7B%0A%20%20border:%200;%0A%20%20clip:%20rect(0,%200,%200,%200);%0A%20%20height:%201px;%0A%20%20margin:%20-1px;%0A%20%20overflow:%20hidden;%0A%20%20padding:%20o;%0A%20%20position:%20absolute;%0A%20%20white-space:%20nowrap;%0A%20%20width:%201px;%0A%7D%0A%0A@mixin%20disabled-state%20%7B%0A%20%20outline:%20none;%0A%20%20pointer-events:%20none;%0A%7D%0A\"],\"names\":[],\"mappings\":\"AAAA,uCACE,iDAAA,CACA,YAAA,CACA,OAAA,CACA,eAAA,CACA,cAAA,CCDF,8BACE,0CAAA,CACA,aAAA,CACA,cAAA,CACA,OAAA,CACA,KAAA,CACA,UAAA,CAGA,YAAA,CCwBE,sCDjCJ,8BAYI,WAAA,CAAA,CAGF,uCAEE,YAAA,CAGF,oCACE,sDAAA,CAGF,qCACE,uDAAA,CAGF,sCACE,UAAA,CAEA,iDACE,YAAA,CACA,iCAAA,CAAA,sCAFF,iDAKI,aAAA,CAAA,CAKN,oCACE,iBAAA,CAEA,2CACE,kBAAA,CACA,YAAA,CACA,WAjDQ,CAkDR,6BAAA,CACA,4EAAA,CACA,iBAAA,CACA,UAAA,CAGF,4CACE,0CAAA,CACA,UAAA,CACA,aAAA,CACA,OAAA,CACA,iBAAA,CACA,UAAA,CAGF,2CACE,QAAA,CACA,iEAAA,CACA,UAAA,CACA,aAAA,CACA,QAAA,CACA,iBAAA,CACA,SAAA,CACA,UAAA,CAGF,2CACE,+BAAA,CAIJ,uCACE,YAAA,CACA,0BAAA,CACA,oBAAA,CACA,eAAA,CACA,iBAAA,CACA,8BAAA,CAEA,sDACE,+BAAA,CACA,oCAAA,CAEA,iEACE,eAAA,CC3DJ,sCD8CF,uCAkBI,8BAAA,CAAA,CAGF,8CACE,iCAAA,CAIJ,sCACE,kBAAA,CACA,0CAAA,CACA,QAAA,CACA,8DAAA,CACA,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,MAAA,CACA,qDAAA,CACA,iBAAA,CACA,OAAA,CACA,UAAA,CAIJ,wCACE,KACE,0BAAA,CAGF,GACE,uBAAA,CAAA,CAIJ,yCACE,KACE,uBAAA,CAGF,GACE,0BAAA,CAAA\",\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"desktop\": `1200`,\n\t\"largeDesktop\": `1800`,\n\t\"mobile\": `0`,\n\t\"tablet\": `600`,\n\t\"cart-panel__overlay\": `rc-d2c__cart-panel__overlay--YRj49xJo`,\n\t\"cart-panel\": `rc-d2c__cart-panel--JjxuLlo1`,\n\t\"cart-panel--open\": `rc-d2c__cart-panel--open--RmKvS4Xa`,\n\t\"open-panel\": `rc-d2c__open-panel--l6ARNH7h`,\n\t\"cart-panel--close\": `rc-d2c__cart-panel--close--DQiNaIC3`,\n\t\"close-panel\": `rc-d2c__close-panel--R82hCTjp`,\n\t\"cart-panel__button\": `rc-d2c__cart-panel__button--lU23Ur4x`,\n\t\"cart-panel__button__view-cart\": `rc-d2c__cart-panel__button__view-cart--jczLNhU6`,\n\t\"cart-panel__head\": `rc-d2c__cart-panel__head--GnKx7Hid`,\n\t\"cart-panel__head__inner\": `rc-d2c__cart-panel__head__inner--b0zgEi6g`,\n\t\"cart-panel__head__price\": `rc-d2c__cart-panel__head__price--M8RzvPgi`,\n\t\"cart-panel__content\": `rc-d2c__cart-panel__content--PI4sqis6`,\n\t\"cart-panel__content__free-shipping\": `rc-d2c__cart-panel__content__free-shipping--aGpiKJ6n`,\n\t\"cart-panel__content__free-shipping--highlight\": `rc-d2c__cart-panel__content__free-shipping--highlight--s_DEdqoJ`,\n\t\"cart-panel__content__total\": `rc-d2c__cart-panel__content__total--H38jiDST`,\n\t\"cart-panel__footer\": `rc-d2c__cart-panel__footer--BOfT_hYR`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.pnpm/css-loader@7.1.1_webpack@5.91.0_webpack-cli@5.1.4_/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.rc-d2c__cart-panel-title--KGyijmFk{font-size:var(--rc-d2c-text-20);font-weight:400;line-height:var(--rc-d2c-text-24)}.rc-d2c__cart-panel-title__label--hLKssSHz,.rc-d2c__cart-panel-title__price--LhmlqN1_{font-weight:500}.rc-d2c__cart-panel-title__price--LhmlqN1_{color:var(--rc-d2c-primary-500)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/CartPanelTitle/CartPanelTitle.module.scss\"],\"names\":[],\"mappings\":\"AAAA,oCACE,+BAAA,CACA,eAAA,CACA,iCAAA,CAEA,sFAEE,eAAA,CAGF,2CACE,+BAAA\",\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cart-panel-title\": `rc-d2c__cart-panel-title--KGyijmFk`,\n\t\"cart-panel-title__label\": `rc-d2c__cart-panel-title__label--hLKssSHz`,\n\t\"cart-panel-title__price\": `rc-d2c__cart-panel-title__price--LhmlqN1_`\n};\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","cx","classNames","styles","t","useTranslation","totalPrice","useStore","CartStore","state","formatPrice","useFormattedPrice","isFetchingPrice","useIsFetchingCartPriceDetails","numberOfProducts","useNumberOfProducts","React","className","concat","RcLoader","size","testId","CartPanelContent","_ref2","toggleIsOpen","inView","inViewRef","onGoToCartPageButtonClick","_useStore","products","deliveryFees","shippingDiscount","isGuestCheckoutEnabled","ShopConfig","ShopStore","getState","hasProductWithSubscription","some","product","isSubscriptionChecked","showFreeShippingMsg","addProductToCartMutationState","useAddProductToCartMutationState","isFetchingCartProducts","useIsFetchingCartProducts","shouldDisplayGlobalLoader","hasPendingMutation","handleOnClickViewCart","_window$dataLayer","window","dataLayer","push","event","ANALYTIC_EVENTS","CART_BUTTON_CLICK","item","CartPanelTitle","RcButtonIcon","icon","variant","onClick","RcOverlay","withLogo","length","Trans","i18nKey","components","highlight","CartCardList","inCartPanel","CartTotal","orderButtonsRef","customClasses","CartReinsurance","CartCheckoutButton","dataQa","CartButton","label","isUserLoggedIn","isGuest","_ref","_ref$isOpen","isOpen","dialogRef","useRef","_useInView","useInView","threshold","root","current","ref","renderNotifications","useNotifications","useEffect","timer","setTimeout","document","body","style","pointerEvents","clearTimeout","Dialog","open","onOpenChange","didTriggerCartViewAnalytic","CartPanelToggle","isCartPanelOpen","setIsCartPanelOpen","isAddingProduct","currentFrequencyList","useFrequencyList","d2cToken","UserStore","routes","CartConfig","CartConfigStore","navigate","useRouting","syncCartProducer","_defineProperty","CART_VIEW","map","mainItemCode","id","price","getPriceFromProduct","skuList","skuId","specie","petType","name","productName","SKU","subscription","subscriptionFrequency","frequencyId","getFrequencyFromProduct","technology","getSizeFromProduct","quantity","pillar","range","toggleCartPanel","triggerAnalytics","_window$dataLayer2","CART_PANEL_DISPLAY","action","badgeLabel","CartPanel","CART_PAGE","CartProviders","withI18n","withQueryClient","___CSS_LOADER_EXPORT___","module"],"sourceRoot":""}