{"version":3,"names":["scExpressPaymentCss","ScExpressPaymentStyle0","ScExpressPayment","onPaymentRequestLoaded","this","hasPaymentOptions","renderStripePaymentRequest","processor_data","getProcessorByType","h","debug","stripeAccountId","account_id","publishableKey","publishable_key","render","Host","key","class","style","dividerText","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 ;\n }\n\n render() {\n return (\n \n {this.renderStripePaymentRequest()}\n {(this.hasPaymentOptions || this.debug) && {this.dividerText}}\n {!!formBusy() && }\n \n );\n }\n}\n"],"mappings":"kYAAA,MAAMA,EAAsB,oCAC5B,MAAAC,EAAeD,E,MCSFE,EAAgB,M,mIAO3B,sBAAAC,GACEC,KAAKC,kBAAoB,I,CAG3B,0BAAAC,GACE,MAAMC,eAAEA,GAAmBC,EAAmB,WAAa,GAE3D,OAAOC,EAAA,6BAA2BC,MAAON,KAAKM,MAAOC,gBAAiBJ,IAAc,MAAdA,SAAc,SAAdA,EAAgBK,WAAYC,eAAgBN,IAAc,MAAdA,SAAc,SAAdA,EAAgBO,iB,CAGpI,MAAAC,GACE,OACEN,EAACO,EAAI,CAAAC,IAAA,2CAACC,MAAO,CAAE,YAAad,KAAKC,oBAAsBD,KAAKM,QACzDN,KAAKE,8BACJF,KAAKC,mBAAqBD,KAAKM,QAAUD,EAAA,cAAAQ,IAAA,2CAAYE,MAAO,CAAE,YAAa,uCAAyCf,KAAKgB,eACxHC,KAAcZ,EAAA,eAAAQ,IAAA,6C","ignoreList":[]}