{"version":3,"names":["scLineItemBumpCss","wp","i18n","__","h","slot","type","currency","_b","state","checkout","value","_c","bump_amount"],"sources":["./src/components/controllers/checkout-form/sc-line-item-bump/sc-line-item-bump.scss?tag=sc-line-item-bump&encapsulation=shadow","./src/components/controllers/checkout-form/sc-line-item-bump/sc-line-item-bump.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { __ } from '@wordpress/i18n';\nimport { state as checkoutState } from '@store/checkout';\n\n@Component({\n tag: 'sc-line-item-bump',\n styleUrl: 'sc-line-item-bump.scss',\n shadow: true,\n})\nexport class ScLineItemBump {\n @Prop() label: string;\n @Prop() loading: boolean;\n\n render() {\n if (!checkoutState?.checkout?.bump_amount) {\n return <Host style={{ display: 'none' }}></Host>;\n }\n\n return (\n <sc-line-item>\n <span slot=\"description\">{this.label || __('Bundle Discount', 'surecart')}</span>\n <span slot=\"price\">\n <sc-format-number type=\"currency\" currency={checkoutState?.checkout?.currency || 'usd'} value={checkoutState?.checkout?.bump_amount}></sc-format-number>\n </span>\n </sc-line-item>\n );\n }\n}\n\n"],"mappings":"sRAAA,MAAMA,EAAoB,uB,4SCoBsBC,GAAAC,KAAAC,GAAE,+BAAAC,EAAA,QAAAC,KAAA,SAAAD,EAAA,oBAAAE,KAAA,WAAAC,WAAAC,EAAAC,IAAA,MAAAA,SAAA,SAAAA,EAAAC,YAAA,MAAAF,SAAA,SAAAA,EAAAD,WAAA,MAAAI,OAAAC,EAAAH,IAAA,MAAAA,SAAA,SAAAA,EAAAC,YAAA,MAAAE,SAAA,SAAAA,EAAAC,e"}