{"version":3,"names":["scCartLoaderCss","ScCartLoader","render","document","querySelector","_a","checkoutState","checkout","status","h","innerHTML","this","template"],"sources":["./src/components/controllers/cart/sc-cart-loader/sc-cart-loader.scss?tag=sc-cart-loader","./src/components/controllers/cart/sc-cart-loader/sc-cart-loader.tsx"],"sourcesContent":[":host {\n position: absolute;\n z-index: var(--sc-cart-z-index, 999999);\n font-family: var(--sc-font-sans);\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { state as checkoutState } from '@store/checkout';\n\n@Component({\n tag: 'sc-cart-loader',\n styleUrl: 'sc-cart-loader.scss',\n shadow: false,\n})\nexport class ScCartLoader {\n /** The cart template to inject when opened. */\n @Prop() template: string;\n\n render() {\n // check for forms.\n if (document.querySelector('sc-checkout')) {\n return;\n }\n\n // clear the order if it's already paid.\n if (checkoutState?.checkout?.status === 'paid') {\n checkoutState.checkout = null;\n return null;\n }\n\n // return the loader.\n return
;\n }\n}\n"],"mappings":"0QAAA,MAAMA,EAAkB,kG,MCQXC,EAAY,M,iDAIvBC,S,MAEE,GAAIC,SAASC,cAAc,eAAgB,CACzC,M,CAIF,KAAIC,EAAAC,IAAa,MAAbA,SAAa,SAAbA,EAAeC,YAAQ,MAAAF,SAAA,SAAAA,EAAEG,UAAW,OAAQ,CAC9CF,EAAcC,SAAW,KACzB,OAAO,I,CAIT,OAAOE,EAAA,OAAKC,UAAWC,KAAKC,UAAY,I"}