import{r as i,h as s,H as o}from"./p-b891c2f1.js";import{o as l}from"./p-494248b1.js";const t=class{constructor(s){i(this,s)}onPaymentRequestLoaded(){this.hasPaymentOptions=!0}renderStripePaymentRequest(){var i,o,l,t,d,r,e,n,v,u,h,c;return(null===(l=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===l?void 0:l.publishable_key)&&(null===(r=null===(d=null===(t=null==this?void 0:this.order)||void 0===t?void 0:t.processor_data)||void 0===d?void 0:d.stripe)||void 0===r?void 0:r.account_id)?s("sc-stripe-payment-request",{formId:this.formId,debug:this.debug,order:this.order,stripeAccountId:null===(v=null===(n=null===(e=null==this?void 0:this.order)||void 0===e?void 0:e.processor_data)||void 0===n?void 0:n.stripe)||void 0===v?void 0:v.account_id,publishableKey:null===(c=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===c?void 0:c.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))}};l(t,["order","formId","busy"],!1),t.style=":host{display:block}";export{t as sc_express_payment}