{"version":3,"file":"bfb42043.js","sources":["../../../src/components/base/icon/CartIconWhite.tsx","../../../src/components/globals/cart/CartIconWithItems.client.tsx"],"sourcesContent":["/**\n * A shared component that specifies the icon to represent a cart\n */\nexport default function CartIconWhite(): JSX.Element {\n return (\n \n \n \n );\n}\n","import React from 'react';\nimport {useCart} from '@shopify/hydrogen';\nimport {useGlobalSettings} from 'Js/hooks/useGlobalSettings';\n\nimport CartIconBlack from '@base/icon/CartIconBlack';\nimport CartIconWhite from '@base/icon/CartIconWhite';\nimport clsx from 'clsx';\n\n/**\n * A client component that specifies the icon to use if a cart contains merchandise\n */\nexport function CartIconWithItems({\n headerSolid,\n}: {\n headerSolid?: any;\n}): JSX.Element {\n const {mainColor, companionColor} = useGlobalSettings();\n const {totalQuantity} = useCart();\n\n return (\n <>\n
\n {headerSolid ? : }\n\n 0 ? 'h-4 w-4' : 'h-0 w-0 overflow-hidden',\n ])}\n style={{\n backgroundColor: mainColor ? mainColor : '#62554a',\n color: companionColor ? companionColor : '#ffffff',\n }}\n aria-hidden\n >\n {totalQuantity > 0 ? totalQuantity : null}\n
\n \n Cart, {totalQuantity} items\n \n );\n}\n"],"names":["CartIconWhite","CartIconWithItems","headerSolid","mainColor","companionColor","useGlobalSettings","totalQuantity","useCart","_Fragment","_jsxs","_jsx","CartIconBlack","clsx","backgroundColor","color"],"mappings":"udAGA,SAAwBA,GAA6B,CACnD,SACE,MAAA,CAAK,MAAM,KAAK,OAAO,KAAK,MAAM,6BAA4B,WAC5D,OAAA,CACE,EAAE,0bACF,KAAK,MAAA,CAAM,CAAA,CAET,CAEV,CCDO,SAASC,EAAkB,CAChCC,YAAAA,CAGF,EAAgB,CACR,KAAA,CAACC,UAAAA,EAAWC,eAAAA,GAAkBC,EAAmB,EACjD,CAACC,cAAAA,GAAiBC,EAAS,EAEjC,SACEC,EAAA,CAAA,SACE,CAAAC,EAAA,MAAA,CAAK,UAAU,wCAAuC,SACnDP,CAAAA,EAAcQ,EAACC,MAAmBD,EAACV,EAAa,CAAA,CAAA,IAEjD,MAAA,CACE,UAAWY,EAAK,CACd,oJACAN,EAAgB,EAAI,UAAY,yBAAyB,CAC1D,EACD,MAAO,CACLO,gBAAiBV,GAAwB,UACzCW,MAAOV,GAAkC,SAC3C,EACA,cAAW,GAAA,SAEVE,EAAgB,EAAIA,EAAgB,IAAA,CACjC,CAAA,CAAA,CAAA,EAERG,EAAA,OAAA,CAAM,UAAU,UAAS,SAAA,CAAA,SAAQH,EAAa,QAAA,CAAA,CAAc,CAAA,CAAA,CAC3D,CAEP"}