import{r as e,h as t,a}from"./p-e97fde0a.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:"73db6bc0c5365b4a627219f3380615dab67113a2",part:"base",class:{heading:true,"heading--small":this.size==="small","heading--medium":this.size==="medium","heading--large":this.size==="large"}},t("div",{key:"43b666fd376bc607b0a723a01b463a2786e20bee",class:{heading__text:true}},t("div",{key:"31357b86421827adabd935e9490383b28379e792",class:"heading__title",part:"title"},t("slot",{key:"7a074805d4bdc9a7fdf64d77527f8bf60be642f9"})),t("div",{key:"fe79e14525eeca7983d89cdffb0896eaa94a189a",class:"heading__description",part:"description"},t("slot",{key:"2f1f707c1c7bd350fa906db545135266962a4836",name:"description"}))),t("slot",{key:"27a705a7cf52573661b9e722756de00def800cbd",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:"18b78dc40ddf86f5148f4b52378e79d881dcf65a"})}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-ede05d0e.entry.js.map