"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[3419],{3419:function(e,t,n){n.r(t),n.d(t,{sc_heading:function(){return r},sc_order_confirm_components_validator:function(){return d}});var a=n(3029),i=n(2901),s=n(1346),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:"7c2ff5c6a7cdb0fe1998e6fa589376fb76229955",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:"28e31972d690df2e1d7d879545a85d963a020bee",class:{heading__text:!0}},(0,s.h)("div",{key:"1b034553bca5061e25d1fc72d0a052c42d9e2db2",class:"heading__title",part:"title"},(0,s.h)("slot",{key:"b23ded6f5fc98dffe134c5abb3397f627120a651"})),(0,s.h)("div",{key:"4d72d87b4b935b239e3276d1008dedd0f4f5ee5a",class:"heading__description",part:"description"},(0,s.h)("slot",{key:"8016f3fd1f724dfb0fe2d66c43b9ce2225ed571f",name:"description"}))),(0,s.h)("slot",{key:"09d687939f3be0017df5d5510b3c40720a85316b",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 d=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:"18b78dc40ddf86f5148f4b52378e79d881dcf65a"})}},{key:"el",get:function(){return(0,s.a)(this)}}],[{key:"watchers",get:function(){return{checkout:["handleOrderChange"]}}}])}()}}]);