"use strict";(self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[]).push([[3305],{3305:function(e,t,a){a.r(t),a.d(t,{sc_heading:function(){return n},sc_order_confirm_components_validator:function(){return i}});var s=a(6892);const n=class{constructor(e){(0,s.r)(this,e),this.size="medium"}render(){return(0,s.h)("div",{key:"46a8064b7e929b1b38e5e042825e9d6b139da8a8",part:"base",class:{heading:!0,"heading--small":"small"===this.size,"heading--medium":"medium"===this.size,"heading--large":"large"===this.size}},(0,s.h)("div",{key:"9c0cabaa5553c59cc375a5e9e105829a61478781",class:{heading__text:!0}},(0,s.h)("div",{key:"69b5a96d1fd1a64ad24c259f399331058b087fdc",class:"heading__title",part:"title"},(0,s.h)("slot",{key:"af929231f23a796359f76455fe519cdec6bac65e"})),(0,s.h)("div",{key:"926d4d8253193eb4aa9e5354cdd485fcbff821cf",class:"heading__description",part:"description"},(0,s.h)("slot",{key:"8b893b04743c8ae0c5107073914d7cd6a848587e",name:"description"}))),(0,s.h)("slot",{key:"5c60966952e60bf83ea1f2e5fb3a4a6f9f6e070a",name:"end"}))}get el(){return(0,s.a)(this)}};n.style=":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 i=class{constructor(e){(0,s.r)(this,e),this.checkout=void 0,this.hasManualInstructions=void 0}handleOrderChange(){var e;(null===(e=this.checkout)||void 0===e?void 0:e.manual_payment)&&this.addManualPaymentInstructions()}addManualPaymentInstructions(){var e,t;if(this.hasManualInstructions)return;const a=this.el.shadowRoot.querySelector("slot").assignedElements({flatten:!0}).find((e=>"SC-ORDER-CONFIRMATION-DETAILS"===e.tagName)),s=document.createElement("sc-order-manual-instructions");null===(t=null===(e=null==a?void 0:a.parentNode)||void 0===e?void 0:e.insertBefore)||void 0===t||t.call(e,s,a),this.hasManualInstructions=!0}componentWillLoad(){this.hasManualInstructions=!!this.el.querySelector("sc-order-manual-instructions")}render(){return(0,s.h)("slot",{key:"dc86b9dc0945488adaca74b65a593b91712f594a"})}get el(){return(0,s.a)(this)}static get watchers(){return{checkout:["handleOrderChange"]}}}}}]);