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uoBAAuoB,6DAA6D,2kHAA2kH,MAAQ,GAAG,SAAW,wjCAAwjC,WAAa,MAEh9QiC,EAAwB9K,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,uCACtB,0BAA2B,4CAC3B,kCAAmC,qDAEpC,S,mEC5BI8K,E,MAA0B,GAA4B,KAE1DA,EAAwBnH,KAAK,CAACoH,EAAOlC,GAAI,0SAA2S,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,MAAQ,GAAG,SAAW,yEAAyE,WAAa,MAEniBiC,EAAwB9K,OAAS,CAChC,mBAAoB,qCACpB,0BAA2B,4CAC3B,0BAA2B,6CAE5B,S","sources":["webpack://cart-mfe/./src/components/CartPanelTitle/CartPanelTitle.module.scss?dfad","webpack://cart-mfe/./src/components/CartPanelTitle/CartPanelTitle.tsx","webpack://cart-mfe/./src/components/CartPanel/CartPanel.module.scss?92cd","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/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.pnpm/css-loader@7.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__sass@1.80.6_webpack@5.91.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__postcss@8.4.38_typescript@5.6.3_webpack@5.91.0/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_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__sass@1.80.6_webpack@5.91.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__postcss@8.4.38_typescript@5.6.3_webpack@5.91.0/node_modules/postcss-loader/dist/cjs.js!./CartPanelTitle.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { useIsFetchingCartPriceDetails } from '@rc-d2c/shared-behavior/hooks/data/cart/useIsFetchingCartPriceDetails';\nimport { useFormattedPrice } from '@rc-d2c/shared-behavior/hooks/useFormattedPrice';\nimport { useCartStore } from '@rc-d2c/shared-behavior/hooks/useStore';\nimport { RcLoader } from '@rc-d2c/shared-ui/RcLoader';\nimport classNames from 'classnames/bind';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\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 = useCartStore.use.totalPrice();\n const { formatPrice } = useFormattedPrice();\n\n //@deprecated [6f5c9fec-3fb3-4f41-bb86-bd70d3dbacfd]\n const isFetchingPrice = useIsFetchingCartPriceDetails();\n //deprecated END\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/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.91.0/node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.pnpm/css-loader@7.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__sass@1.80.6_webpack@5.91.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__postcss@8.4.38_typescript@5.6.3_webpack@5.91.0/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_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../node_modules/.pnpm/sass-loader@14.2.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__sass@1.80.6_webpack@5.91.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../../../node_modules/.pnpm/postcss-loader@8.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__postcss@8.4.38_typescript@5.6.3_webpack@5.91.0/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, CheckoutStore, DATA_QA_IDS, isUserLoggedIn } from '@rc-d2c/context-manager';\nimport { useRouting } from '@rc-d2c/shared-behavior';\nimport { useAddProductToCartMutationState } from '@rc-d2c/shared-behavior/hooks/data/cart/useAddProductToCartMutationState';\nimport { useIsFetchingCartProducts } from '@rc-d2c/shared-behavior/hooks/data/cart/useIsFetchingCartProducts';\nimport useCanAccessGuestCheckout from '@rc-d2c/shared-behavior/hooks/useCanAccessGuestCheckout';\nimport { useNotifications } from '@rc-d2c/shared-behavior/hooks/useNotifications';\nimport { useCartStore, useGlobalSettingsStore } from '@rc-d2c/shared-behavior/hooks/useStore';\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 { RcMessage } from '@rc-d2c/shared-ui/RcMessage';\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';\nimport { useShallow } from 'zustand/react/shallow';\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 { navigate } = useRouting();\n const { deliveryFees, shippingDiscount, resetCartState } = useStore(\n CartStore,\n useShallow((state) => ({ deliveryFees: state.deliveryFees, shippingDiscount: state.shippingDiscount, resetCartState: state.reset })),\n );\n const { isRetryStateAfterPaymentFailure, resetCheckoutState } = useStore(\n CheckoutStore,\n useShallow((state) => ({ isRetryStateAfterPaymentFailure: state.isRetryStateAfterPaymentFailure, resetCheckoutState: state.reset })),\n );\n const routes = useGlobalSettingsStore.use.routes();\n const products = useCartStore.use.products();\n\n const showFreeShippingMsg = deliveryFees === 0 || shippingDiscount - deliveryFees === 0;\n\n // ----- queries / mutations -----\n\n const addProductToCartMutationState = useAddProductToCartMutationState() as MutationState[];\n //@deprecated [6f5c9fec-3fb3-4f41-bb86-bd70d3dbacfd]\n const isFetchingCartProducts = useIsFetchingCartProducts();\n // deprecated END\n const canAccessGuestCheckout = useCanAccessGuestCheckout();\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 const clearStates = () => {\n resetCartState();\n resetCheckoutState();\n navigate(routes.HOMEPAGE);\n };\n\n return (\n <>\n
\n
\n \n \n
\n
\n {shouldDisplayGlobalLoader && (\n \n \n \n )}\n {isRetryStateAfterPaymentFailure && (\n
\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() && canAccessGuestCheckout && }\n
\n )}\n \n );\n};\n\nexport default CartPanel;\n","import '../../index.scss';\n\nimport {\n ANALYTIC_EVENTS,\n CartStore,\n isUserLoggedIn,\n PET_TYPE,\n syncCart,\n syncCartLegacyUponUserConnection,\n syncCartProducer,\n} from '@rc-d2c/context-manager';\nimport { getFrequencyFromProduct, getPriceFromProduct, getSizeFromProduct } from '@rc-d2c/shared-behavior';\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 { useInitialSearchParams } from '@rc-d2c/shared-behavior/hooks/useInitialSearchParams';\nimport { useRouting } from '@rc-d2c/shared-behavior/hooks/useRouting';\nimport { useCartConfigStore, useCartStore, useCheckoutStore, useGlobalSettingsStore } from '@rc-d2c/shared-behavior/hooks/useStore';\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';\nimport { useShallow } from 'zustand/react/shallow';\n\nimport { useNumberOfProducts } from '../../hooks';\nimport CartPanel from '../CartPanel/CartPanel';\nimport CartProviders from '../CartProviders/CartProviders';\n\nlet didTriggerCartViewAnalytic = false;\n\nconst CartPanelToggle = () => {\n const { isCartPanelOpen, setIsCartPanelOpen } = useStore(\n CartStore,\n useShallow((state) => ({ isCartPanelOpen: state.isCartPanelOpen, setIsCartPanelOpen: state.setIsCartPanelOpen })),\n );\n const products = useCartStore.use.products();\n //@deprecated [6f5c9fec-3fb3-4f41-bb86-bd70d3dbacfd]\n const isFetchingPrice = useIsFetchingCartPriceDetails();\n const isFetchingCartProducts = useIsFetchingCartProducts();\n //deprecated END\n const addProductToCartMutationState = useAddProductToCartMutationState() as MutationState[];\n const isAddingProduct = hasPendingMutation(addProductToCartMutationState);\n const { currentFrequencyList } = useFrequencyList();\n const numberOfProducts = useNumberOfProducts();\n const routes = useCartConfigStore.use.routes();\n const { navigate } = useRouting();\n const { searchParams } = useInitialSearchParams();\n const withLegacyApis = useGlobalSettingsStore.getState().withLegacyApis;\n const tradeId = useCheckoutStore.use.tradeId();\n\n useEffect(\n function syncCartDispatcher() {\n if (!tradeId) {\n if (withLegacyApis) {\n syncCartLegacyUponUserConnection({ couponCode: searchParams['couponCode'] });\n } else {\n syncCart();\n }\n }\n },\n [isUserLoggedIn()],\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 === PET_TYPE['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 (withLegacyApis && !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_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.pnpm/css-loader@7.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/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{--cart-panel-content-padding: var(--rc-d2c-space-16);display:grid;height:calc(100svh - 50px);justify-items:center;list-style:none;overflow-y:scroll;padding:var(--cart-panel-content-padding)}.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{--cart-panel-content-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}.rc-d2c__cart-panel__retry-state--IFObF_9S{align-items:center;display:flex;flex-direction:column;font-size:var(--rc-d2c-text-22);justify-content:center;padding:var(--rc-d2c-space-24) var(--rc-d2c-space-64)}.rc-d2c__cart-panel__retry-state-message--l7DPImvR{align-items:center;display:flex;font-size:var(--rc-d2c-text-22);line-height:var(--rc-d2c-text-28);margin-bottom:var(--rc-d2c-space-32)}@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,oDAAA,CACA,YAAA,CACA,0BAAA,CACA,oBAAA,CACA,eAAA,CACA,iBAAA,CACA,yCAAA,CAEA,sDACE,+BAAA,CACA,oCAAA,CAEA,iEACE,eAAA,CC5DJ,sCD8CF,uCAmBI,oDAAA,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,CAGF,2CACE,kBAAA,CACA,YAAA,CACA,qBAAA,CACA,+BAAA,CACA,sBAAA,CACA,qDAAA,CAEA,mDACE,kBAAA,CACA,YAAA,CACA,+BAAA,CACA,iCAAA,CACA,oCAAA,CAKN,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\t\"cart-panel__retry-state\": `rc-d2c__cart-panel__retry-state--IFObF_9S`,\n\t\"cart-panel__retry-state-message\": `rc-d2c__cart-panel__retry-state-message--l7DPImvR`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/.pnpm/css-loader@7.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.pnpm/css-loader@7.1.1_@rspack+core@1.1.8_@swc+helpers@0.5.15__webpack@5.91.0/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","useCartStore","use","formatPrice","useFormattedPrice","isFetchingPrice","useIsFetchingCartPriceDetails","numberOfProducts","useNumberOfProducts","React","className","concat","RcLoader","size","testId","CartPanelContent","_ref2","toggleIsOpen","inView","inViewRef","onGoToCartPageButtonClick","navigate","useRouting","_useStore","useStore","CartStore","useShallow","state","deliveryFees","shippingDiscount","resetCartState","reset","_useStore2","CheckoutStore","isRetryStateAfterPaymentFailure","resetCheckoutState","routes","useGlobalSettingsStore","products","showFreeShippingMsg","addProductToCartMutationState","useAddProductToCartMutationState","isFetchingCartProducts","useIsFetchingCartProducts","canAccessGuestCheckout","useCanAccessGuestCheckout","shouldDisplayGlobalLoader","hasPendingMutation","handleOnClickViewCart","_window$dataLayer","window","dataLayer","push","event","ANALYTIC_EVENTS","CART_BUTTON_CLICK","item","CartPanelTitle","RcButtonIcon","icon","variant","onClick","RcOverlay","withLogo","RcMessage","message","customClasses","type","CartButton","label","HOMEPAGE","length","Trans","i18nKey","components","highlight","CartCardList","inCartPanel","CartTotal","orderButtonsRef","CartReinsurance","CartCheckoutButton","dataQaId","DATA_QA_IDS","BEGIN_CHECKOUT","VIEW_CART","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","useCartConfigStore","searchParams","useInitialSearchParams","withLegacyApis","getState","tradeId","useCheckoutStore","syncCartLegacyUponUserConnection","couponCode","syncCart","_defineProperty","CART_VIEW","map","product","mainItemCode","id","price","getPriceFromProduct","skuList","skuId","specie","petType","PET_TYPE","name","productName","SKU","subscription","isSubscriptionChecked","subscriptionFrequency","frequencyId","getFrequencyFromProduct","technology","getSizeFromProduct","quantity","pillar","range","toggleCartPanel","syncCartProducer","triggerAnalytics","_window$dataLayer2","CART_PANEL_DISPLAY","action","badgeLabel","CartPanel","CART_PAGE","CartProviders","withI18n","withQueryClient","___CSS_LOADER_EXPORT___","module"],"sourceRoot":""}