"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(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:"73db6bc0c5365b4a627219f3380615dab67113a2",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:"43b666fd376bc607b0a723a01b463a2786e20bee",class:{heading__text:!0}},(0,s.h)("div",{key:"31357b86421827adabd935e9490383b28379e792",class:"heading__title",part:"title"},(0,s.h)("slot",{key:"7a074805d4bdc9a7fdf64d77527f8bf60be642f9"})),(0,s.h)("div",{key:"fe79e14525eeca7983d89cdffb0896eaa94a189a",class:"heading__description",part:"description"},(0,s.h)("slot",{key:"2f1f707c1c7bd350fa906db545135266962a4836",name:"description"}))),(0,s.h)("slot",{key:"27a705a7cf52573661b9e722756de00def800cbd",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:"18b78dc40ddf86f5148f4b52378e79d881dcf65a"})}},{key:"el",get:function(){return(0,s.a)(this)}}],[{key:"watchers",get:function(){return{checkout:["handleOrderChange"]}}}])}()}}]);