import{r as e,h as t,a as i}from"./p-e97fde0a.js";const s=":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 a=s;const n=class{constructor(t){e(this,t);this.size="medium"}render(){return t("div",{key:"7c2ff5c6a7cdb0fe1998e6fa589376fb76229955",part:"base",class:{heading:true,"heading--small":this.size==="small","heading--medium":this.size==="medium","heading--large":this.size==="large"}},t("div",{key:"28e31972d690df2e1d7d879545a85d963a020bee",class:{heading__text:true}},t("div",{key:"1b034553bca5061e25d1fc72d0a052c42d9e2db2",class:"heading__title",part:"title"},t("slot",{key:"b23ded6f5fc98dffe134c5abb3397f627120a651"})),t("div",{key:"4d72d87b4b935b239e3276d1008dedd0f4f5ee5a",class:"heading__description",part:"description"},t("slot",{key:"8016f3fd1f724dfb0fe2d66c43b9ce2225ed571f",name:"description"}))),t("slot",{key:"09d687939f3be0017df5d5510b3c40720a85316b",name:"end"}))}get el(){return i(this)}};n.style=a;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 i=this.el.shadowRoot.querySelector("slot").assignedElements({flatten:true}).find((e=>e.tagName==="SC-ORDER-CONFIRMATION-DETAILS"));const s=document.createElement("sc-order-manual-instructions");(t=(e=i===null||i===void 0?void 0:i.parentNode)===null||e===void 0?void 0:e.insertBefore)===null||t===void 0?void 0:t.call(e,s,i);this.hasManualInstructions=true}componentWillLoad(){this.hasManualInstructions=!!this.el.querySelector("sc-order-manual-instructions")}render(){return t("slot",{key:"18b78dc40ddf86f5148f4b52378e79d881dcf65a"})}get el(){return i(this)}static get watchers(){return{checkout:["handleOrderChange"]}}};export{n as sc_heading,d as sc_order_confirm_components_validator};
//# sourceMappingURL=p-1452940b.entry.js.map