PageSourceSearch

https://v2vc-393-morphic.netlify.app/5631-17f563da2b3694159fa4.js

js v2vc-393-morphic.netlify.app collected 2026-10-03 11:35:12 UTC 2,307 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_template=self.webpackChunkgatsby_template||[]).push([[5631],{45631:function(e,t,a){a.r(t);var i=a(63696),l=a(26885),r=a(74101),o=a(84044),n=a(23839),s=a(39757),m=a(99465),d=a(30884),u=a(21011),c=a(31896),h=a(87796);const f=n.object({email:n.string("Enter your email").email("Enter a valid email").required("Email is required")}),b=e=>{let{section:t,sectionTitle:a,layout:n,integration:b,formStyle:p,formWidth:g}=e;const y=(0,o.MW)(),{0:w,1:v}=(0,i.useState)(!1);null==g&&(g="default");const x="wide"===g?"180px":"100px",R=(0,r.Wx)({initialValues:{email:"",provider:null==b?void 0:b.provider,data:(null==b?void 0:b.dataObj)||(null==b?void 0:b.data)},validationSchema:f,onSubmit:async(e,t)=>{if(!l.notGatsby)try{v(!0);const a=await fetch("/.netlify/functions/email-collect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(a.ok)y.show("Your email has been submitted.",{type:"success"}),t.resetForm();else{const{error:e}=await a.json();y.show(e,{type:"error"})}v(!1)}catch(a){y.show(a,{type:"error"}),v(!1)}}}),E="horizontal"===n;return i.createElement(s.A,t,i.createElement(m.A,{alignItems:"center",justifyContent:"space-between",flexDirection:E?{_:"column",md:"row"}:"column"},a&&i.createElement(h.A,Object.assign({pr:E?{_:null,md:7,lg:8}:null,pb:E?{_:5,md:null}:5,maxWidth:32},a)),i.createElement(c.A,{onSubmit:R.handleSubmit,display:"flex",flexDirection:"row",justifyContent:E?{_:"flex-start",md:"flex-end"}:"center",alignItems:"center",width:"100%"},i.createElement(u.A,{name:"email",label:"Email",value:R.values.email,onChange:R.handleChange,error:R.touched.email&&Boolean(R.errors.email),helperText:R.touched.email&&R.errors.email,variant:"filled",borderBottomRightRadius:"default"===p?"sm":0,borderTopRightRadius:"default"===p?"sm":0,width:"100%",maxWidth:26,height:3,marginRight:x}),i.createElement(d.A,{"aria-label":"submit button of a newsletter signup form",type:"submit",variant:"primary",loading:w,height:3,width:{_:6,xs:7,lg:8},minWidth:6,borderTopRightRadius:"sm",borderBottomRightRadius:"sm",borderTopLeftRadius:"default"===p?"sm":0,borderBottomLeftRadius:"default"===p?"sm":0,ml:"default"===p&&4},"Submit"))))};t.default=b,b.defaultProps={layout:"vertical"}}}]);
2//# sourceMappingURL=5631-17f563da2b3694159fa4.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.