index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/1194.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[1194],{1194:function(e,t,n){n.r(t),n.d(t,{sc_heading:function(){return r},sc_order_confirm_components_validator:function(){return l}});var i=n(5671),a=n(3144),s=n(8860),r=function(){function e(t){(0,i.Z)(this,e),(0,s.r)(this,t),this.size="medium"}return(0,a.Z)(e,[{key:"render",value:function(){return(0,s.h)("div",{part:"base",class:{heading:!0,"heading--small":"small"===this.size,"heading--medium":"medium"===this.size,"heading--large":"large"===this.size}},(0,s.h)("div",{class:{heading__text:!0}},(0,s.h)("div",{class:"heading__title",part:"title"},(0,s.h)("slot",null)),(0,s.h)("div",{class:"heading__description",part:"description"},(0,s.h)("slot",{name:"description"}))),(0,s.h)("slot",{name:"end"}))}},{key:"el",get:function(){return(0,s.a)(this)}}]),e}();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 l=function(){function e(t){(0,i.Z)(this,e),(0,s.r)(this,t),this.checkout=void 0,this.hasManualInstructions=void 0}return(0,a.Z)(e,[{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})),i=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,i,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",null)}},{key:"el",get:function(){return(0,s.a)(this)}}],[{key:"watchers",get:function(){return{checkout:["handleOrderChange"]}}}]),e}()}}]);