"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[3419],{23419:function(e,t,n){n.r(t),n.d(t,{sc_heading:function(){return r},sc_order_confirm_components_validator:function(){return c}});var a=n(23029),i=n(92901),s=n(27364),r=function(){return(0,i.A)((function e(t){(0,a.A)(this,e),(0,s.r)(this,t),this.size="medium"}),[{key:"render",value:function(){return(0,s.h)("div",{key:"f7bbb3188cdd3e02e7412dfac3402cca9461ec2f",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:"f1b41381f1c84498c32aa9289403511883555a6e",class:{heading__text:!0}},(0,s.h)("div",{key:"6b893c83338d13711bec2b2d3932a168770230db",class:"heading__title",part:"title"},(0,s.h)("slot",{key:"14b99676706c1ab83486a5bde4205e3e78d1bc55"})),(0,s.h)("div",{key:"f5f1c8b88842651079a99d24d38e4867cc8e3eed",class:"heading__description",part:"description"},(0,s.h)("slot",{key:"a4c30413d53153fce80fd1991f613598830cf4da",name:"description"}))),(0,s.h)("slot",{key:"af4cf60e160d55f39511df349ac6057d70c0f792",name:"end"}))}},{key:"el",get:function(){return(0,s.a)(this)}}])}();r.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)}";var c=function(){return(0,i.A)((function e(t){(0,a.A)(this,e),(0,s.r)(this,t),this.checkout=void 0,this.hasManualInstructions=void 0}),[{key:"handleOrderChange",value:function(){var e;(null===(e=this.checkout)||void 0===e?void 0:e.manual_payment)&&this.addManualPaymentInstructions()}},{key:"addManualPaymentInstructions",value:function(){var e,t;if(!this.hasManualInstructions){var n=this.el.shadowRoot.querySelector("slot").assignedElements({flatten:!0}).find((function(e){return"SC-ORDER-CONFIRMATION-DETAILS"===e.tagName})),a=document.createElement("sc-order-manual-instructions");null===(t=null===(e=null==n?void 0:n.parentNode)||void 0===e?void 0:e.insertBefore)||void 0===t||t.call(e,a,n),this.hasManualInstructions=!0}}},{key:"componentWillLoad",value:function(){this.hasManualInstructions=!!this.el.querySelector("sc-order-manual-instructions")}},{key:"render",value:function(){return(0,s.h)("slot",{key:"4fb757fb52e1d563b45cc2923647a444add57ac1"})}},{key:"el",get:function(){return(0,s.a)(this)}}],[{key:"watchers",get:function(){return{checkout:["handleOrderChange"]}}}])}()}}]);