import{r as e,h as t,a}from"./p-9add63ef.js";const i=":host{display:block}.heading{font-family:var(--sc-font-sans);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.heading--small .heading__title{font-size:var(--sc-font-size-small);text-transform:uppercase}.heading__text{width:100%}.heading__title{font-size:var(--sc-font-size-x-large);font-weight:var(--sc-font-weight-bold);line-height:var(--sc-line-height-dense);white-space:normal}.heading__description{font-size:var(--sc-font-size-normal);line-height:var(--sc-line-height-dense);color:var(--sc-color-gray-500)}";const s=i;const n=class{constructor(t){e(this,t);this.size="medium"}render(){return t("div",{key:"f7bbb3188cdd3e02e7412dfac3402cca9461ec2f",part:"base",class:{heading:true,"heading--small":this.size==="small","heading--medium":this.size==="medium","heading--large":this.size==="large"}},t("div",{key:"f1b41381f1c84498c32aa9289403511883555a6e",class:{heading__text:true}},t("div",{key:"6b893c83338d13711bec2b2d3932a168770230db",class:"heading__title",part:"title"},t("slot",{key:"14b99676706c1ab83486a5bde4205e3e78d1bc55"})),t("div",{key:"f5f1c8b88842651079a99d24d38e4867cc8e3eed",class:"heading__description",part:"description"},t("slot",{key:"a4c30413d53153fce80fd1991f613598830cf4da",name:"description"}))),t("slot",{key:"af4cf60e160d55f39511df349ac6057d70c0f792",name:"end"}))}get el(){return a(this)}};n.style=s;const d=class{constructor(t){e(this,t);this.checkout=undefined;this.hasManualInstructions=undefined}handleOrderChange(){var e;if((e=this.checkout)===null||e===void 0?void 0:e.manual_payment){this.addManualPaymentInstructions()}}addManualPaymentInstructions(){var e,t;if(this.hasManualInstructions)return;const a=this.el.shadowRoot.querySelector("slot").assignedElements({flatten:true}).find((e=>e.tagName==="SC-ORDER-CONFIRMATION-DETAILS"));const i=document.createElement("sc-order-manual-instructions");(t=(e=a===null||a===void 0?void 0:a.parentNode)===null||e===void 0?void 0:e.insertBefore)===null||t===void 0?void 0:t.call(e,i,a);this.hasManualInstructions=true}componentWillLoad(){this.hasManualInstructions=!!this.el.querySelector("sc-order-manual-instructions")}render(){return t("slot",{key:"4fb757fb52e1d563b45cc2923647a444add57ac1"})}get el(){return a(this)}static get watchers(){return{checkout:["handleOrderChange"]}}};export{n as sc_heading,d as sc_order_confirm_components_validator};
//# sourceMappingURL=p-46dfa7b9.entry.js.map