import{h}from"@stencil/core";export class ScFormErrorProvider{componentWillLoad(){this.maybeAddErrorsComponent()}maybeAddErrorsComponent(){var e,r;if(this.el.querySelector("sc-checkout-form-errors"))return;const o=document.createElement("sc-checkout-form-errors");null===(r=null===(e=this.el.querySelector("sc-form"))||void 0===e?void 0:e.prepend)||void 0===r||r.call(e,o)}render(){return h("slot",{key:"ef8e2566a7cad869a6711e2d2ca24cb1d1957337"})}static get is(){return"sc-form-error-provider"}static get encapsulation(){return"shadow"}static get elementRef(){return"el"}}