JezK
Edit File: sc-express-payment.cjs.entry.js.map
{"file":"sc-express-payment.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,mCAAmC,CAAC;AAChE,+BAAe,mBAAmB;;MCSrB,gBAAgB;;;;;;;;IAO3B,sBAAsB;QACpB,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;KAC/B;IAED,0BAA0B;QACxB,MAAM,EAAE,cAAc,EAAE,GAAGA,0BAAkB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QAE9D,OAAOC,uCAA2B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,UAAU,EAAE,cAAc,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,GAAI,CAAC;KACvJ;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,KAAK,EAAE,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,iBAAiB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAChE,IAAI,CAAC,0BAA0B,EAAE,EACjC,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,KAAK,KAAKD,yEAAY,KAAK,EAAE,EAAE,WAAW,EAAE,oCAAoC,EAAE,IAAG,IAAI,CAAC,WAAW,CAAc,EACnJ,CAAC,CAACE,kBAAQ,EAAE,IAAIF,2EAA2B,CACvC,EACP;KACH;;;;;;","names":["getProcessorByType","h","Host","formBusy"],"sources":["src/components/controllers/checkout-form/express-payment/sc-express-payment.css?tag=sc-express-payment","src/components/controllers/checkout-form/express-payment/sc-express-payment.tsx"],"sourcesContent":["sc-express-payment {\n display: block;\n}\n","import { ProcessorName } from '../../../../types';\nimport { Component, Host, h, Listen, Prop } from '@stencil/core';\nimport { getProcessorByType } from '@store/processors/getters';\nimport { formBusy } from '@store/form/getters';\n\n@Component({\n tag: 'sc-express-payment',\n styleUrl: 'sc-express-payment.css',\n shadow: false,\n})\nexport class ScExpressPayment {\n @Prop() processor: ProcessorName;\n @Prop() dividerText: string;\n @Prop() debug: boolean;\n @Prop({ mutable: true }) hasPaymentOptions: boolean;\n\n @Listen('scPaymentRequestLoaded')\n onPaymentRequestLoaded() {\n this.hasPaymentOptions = true;\n }\n\n renderStripePaymentRequest() {\n const { processor_data } = getProcessorByType('stripe') || {};\n\n return <sc-stripe-payment-request debug={this.debug} stripeAccountId={processor_data?.account_id} publishableKey={processor_data?.publishable_key} />;\n }\n\n render() {\n return (\n <Host class={{ 'is-empty': !this.hasPaymentOptions && !this.debug }}>\n {this.renderStripePaymentRequest()}\n {(this.hasPaymentOptions || this.debug) && <sc-divider style={{ '--spacing': 'calc(var(--sc-form-row-spacing)/2)' }}>{this.dividerText}</sc-divider>}\n {!!formBusy() && <sc-block-ui></sc-block-ui>}\n </Host>\n );\n }\n}\n"],"version":3}