1(self.webpackChunk_mvps_genesis_quickstart_theme=self.webpackChunk_mvps_genesis_quickstart_theme||[]).push([[3015],{157:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});s(3829);var n=s(359);class o extends n.A{constructor(t){super(t)}onReady(){this.initContactUsForm()}initContactUsForm(){const t=document.getElementById("js-contact-us-form");t&&t.addEventListener("submit",this.handleContactUsFormSubmit.bind(this))}async handleContactUsFormSubmit(t){const e=t.target,s=e?.querySelector('[type="submit"]'),n=this.pageContext.Japi_Url,o=document.getElementById("js-contact-us-form-message");if(!(e&&s&&n&&o))return;t.preventDefault(),o.className="u-hidden",o.innerHTML="";const r="g-button--submitting";s.disabled=!0,s.classList.add(r);const a=new FormData(e),c=a.get("contact_email")??"",i=a.get("contact_name")??"",m=window.atob(a.get("store_email")??""),u=a.get("store_name")??"",l=`\n\t\t\t<p>Hello ${u},</p>\n\t\t\t<p>Your contact form has been submitted by <strong>${i}</strong>.</p>\n\t\t\t<p>Here is the customer's information:</p>\n\t\t\t<p>\n\t\t\t\t<strong>Name:</strong> ${i}<br />\n\t\t\t\t<strong>E-mail Address:</strong> <a href='mailto:${c}'>${c}</a><br />\n\t\t\t\t<strong>Address:</strong><br />\n\t\t\t\t${a.get("contact_address")??""}<br />\n\t\t\t\t${a.get("contact_city")??""} ${a.get("contact_state")??""}, ${a.get("contact_zip")??""} ${a.get("contact_country")??""}<br />\n\t\t\t\t<strong>Their Questions or Comments:</strong><br />\n\t\t\t\t${a.get("contact_comment")??""}\n\t\t\t</p>\n\t\t`,d=await fetch(n,{body:JSON.stringify({email:{from:m,headers:[`Reply-To: ${i} <${c}>`,`Return-Path: ${i} <${c}>`],message:l.trim(),subject:`Your ${u} Contact Form Has Been Submitted`,to:m},function:"send-email"}),headers:{"Content-Type":"application/json"},method:"POST"});if(s.disabled=!1,s.classList.remove(r),!d.ok)throw Error(d.statusText);if(!o)return;let g="Error: We're sorry, there was a problem processing your request.",b="error";(await d.json()).success&&(g=`Thank you for your inquiry. A ${u} representative will contact you shortly.`,b="success",e.reset()),o.innerHTML=g,o.className=`g-messages g-messages--${b}`,o.scrollIntoView({behavior:"smooth",block:"center"})}}},996:()=>{},3829:(t,e,s)=>{var n=s(996);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);(0,s(4424).A)("652e9eba",n,!1,{})}}]); 2//# sourceMappingURL=page-code--CTUS.7172903cae283b9f58cd.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.