import{r as i,h as s,H as o}from"./p-dfbe004d.js";import{o as d}from"./p-d63f2554.js";const l=class{constructor(s){i(this,s)}onPaymentRequestLoaded(){this.hasPaymentOptions=!0}renderStripePaymentRequest(){var i,o,d,l,t,e,r,n,v,u,h,a;return(null===(d=null===(o=null===(i=null==this?void 0:this.order)||void 0===i?void 0:i.processor_data)||void 0===o?void 0:o.stripe)||void 0===d?void 0:d.publishable_key)&&(null===(e=null===(t=null===(l=null==this?void 0:this.order)||void 0===l?void 0:l.processor_data)||void 0===t?void 0:t.stripe)||void 0===e?void 0:e.account_id)?s("sc-stripe-payment-request",{formId:this.formId,debug:this.debug,order:this.order,stripeAccountId:null===(v=null===(n=null===(r=null==this?void 0:this.order)||void 0===r?void 0:r.processor_data)||void 0===n?void 0:n.stripe)||void 0===v?void 0:v.account_id,publishableKey:null===(a=null===(h=null===(u=null==this?void 0:this.order)||void 0===u?void 0:u.processor_data)||void 0===h?void 0:h.stripe)||void 0===a?void 0:a.publishable_key}):""}render(){return s(o,{class:{"is-empty":!this.hasPaymentOptions&&!this.debug}},this.renderStripePaymentRequest(),(this.hasPaymentOptions||this.debug)&&s("sc-divider",{style:{"--spacing":"calc(var(--sc-form-row-spacing)/2)"}},this.dividerText),this.busy&&s("sc-block-ui",null))}};d(l,["order","formId","busy"],!1),l.style=":host{display:block}";export{l as sc_express_payment}