void 0===window.Shopify&&(window.Shopify={}),Shopify.bind=function(t,e){return function(){return t.apply(e,arguments)}},Shopify.setSelectorByValue=function(t,e){for(var n=0,i=t.options.length;n{(t.detail.sectionId===this.sectionId&&n||!n)&&e.bind(this)(t,t.detail)})}forwardEvent(t,e={}){e=new CustomEvent(t,{bubbles:!0,composed:!0,detail:{sectionId:this.sectionId,...e}});this.dispatchEvent(e)}getSectionContainer(){if(!this.sectionId)return null;var t=`shopify-section-${this.sectionId}`;return document.getElementById(t)}connectedCallback(){if(this.elements)for(var[t,e]of Object.entries(this.elements))this[`$${t}`]="*"===e[0]?Array.from(this.querySelectorAll(e.substring(1))):this.querySelector(e);this.render()}}const moneyFormat="${{amount}}";function formatMoney(t,e){"string"==typeof t&&(t=t.replace(".",""));let n="";var i=/\{\{\s*(\w+)\s*\}\}/;const o=e||moneyFormat;function r(t,e=2,n=",",i="."){if(isNaN(t)||null==t)return 0;const o=(t=(t/100).toFixed(e)).split(".");return o[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,`$1${n}`)+(o[1]?i+o[1]:"")}switch(o.match(i)[1]){case"amount":n=r(t,2);break;case"amount_no_decimals":n=r(t,0);break;case"amount_with_comma_separator":n=r(t,2,".",",");break;case"amount_no_decimals_with_comma_separator":n=r(t,0,".",",")}return o.replace(i,n)}window.Theme.utils.formatMoney=formatMoney,window.Theme.BaseElement=BaseElement,window.gm_authFailure=()=>{document.querySelectorAll("google-map").forEach(t=>{t.onAuthError&&t.onAuthError()})};