"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 c}});var a=n(3029),i=n(2901),s=n(7364),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:"935099e0b4b8135479ea1121b7ce2f1fdb8a135e",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:"538a45869b74fcdcb1839a6d2e74c0a81dec677e",class:{heading__text:!0}},(0,s.h)("div",{key:"c4d5f199f846f4ffe94365c65650068b0e64d83f",class:"heading__title",part:"title"},(0,s.h)("slot",{key:"978a8505a926ad3c01cb2ff10496d2987bf2c187"})),(0,s.h)("div",{key:"819d2e6425807741eda9a7c81796fd760585ef3a",class:"heading__description",part:"description"},(0,s.h)("slot",{key:"842457d70a287604da2e03856249e6d2c4b46328",name:"description"}))),(0,s.h)("slot",{key:"b905a6e1f76a3fda3d9d2cf4e10f6a663101edb0",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:"47a86d761e5c5c23569e103a2d15ab9f7ef2e405"})}},{key:"el",get:function(){return(0,s.a)(this)}}],[{key:"watchers",get:function(){return{checkout:["handleOrderChange"]}}}])}()}}]);