(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9319],{32866:function(e,t,r){"use strict";r.d(t,{B:function(){return i}});var n=r(67294),a=r(87536),i=function(e){var t=e.as,r=e.errors,i=e.name,s=e.message,o=e.render,l=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(e,["as","errors","name","message","render"]),u=(0,a.Gc)(),c=(0,a.U2)(r||u.formState.errors,i);if(!c)return null;var d=c.message,f=c.types,p=Object.assign({},l,{children:d||s});return n.isValidElement(t)?n.cloneElement(t,p):o?o({message:d||s,messages:f}):n.createElement(t||n.Fragment,p)}},81345:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/register",function(){return r(75692)}])},25247:function(e,t,r){"use strict";var n=r(85893),a=r(67294);t.Z=e=>{let{message:t,politeness:r,className:i,...s}=e,[o,l]=(0,a.useState)("");return(0,a.useEffect)(()=>{let e=t;e===o&&(e+="\xa0"),l(e)},[t]),(0,n.jsx)("div",{"aria-atomic":!0,"aria-live":r,style:i?{}:{position:"absolute",visibility:"visible",overflow:"hidden",display:"block",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px)",whiteSpace:"nowrap"},className:i,...s,children:o.length?(0,n.jsx)("p",{children:o}):null})}},53862:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(65806),i=r(56027),s=r(41502);let o=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{className:"MuiInputLabel-asterisk",children:"*"})}),l=(0,i.ZL)()(e=>({sizeSmall:{"& > .MuiFormControlLabel-label":{...(0,s.W)(e).font}}}));t.Z=e=>{let t,{required:r=!1,label:i=null,size:s="medium",className:u=null,...c}=e,{classes:d,cx:f}=l(),p=f(u,"small"===s?d.sizeSmall:null);return i&&(t=r?(0,n.jsxs)(n.Fragment,{children:[i," ",(0,n.jsx)(o,{})]}):i),(0,n.jsx)(a.Z,{label:t,className:p,...c})}},29058:function(e,t,r){"use strict";var n=r(85893),a=r(67294),i=r(84677),s=r(56027),o=r(1420);let l=(0,s.ZL)()(()=>({root:{backgroundColor:o.nS,borderRadius:"24px",boxShadow:"none",width:"200px","&:hover, &:focus":{boxShadow:"none",backgroundColor:"#062327"},textTransform:"none","&, .CgHtmlContent &, .CgHtmlContent &:hover":{color:"white",fontWeight:600}}}));t.Z=a.forwardRef(function(e,t){let{size:r="large",className:a=null,...s}=e,{classes:o,cx:u}=l();return(0,n.jsx)(i.Z,{...s,variant:"contained",color:"primary",ref:t,size:r,className:u(o.root,a)})})},72892:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(93967),i=r.n(a),s=r(21485),o=r(56027);t.Z=(0,o.D2)(function(e){let{classes:t,className:r,...a}=e;return(0,n.jsx)(s.Z,{...a,className:i()(r,t.font)})},e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:"0.8rem",color:e.palette.error.main}}))},89077:function(e,t,r){"use strict";r.d(t,{W:function(){return o}});var n=r(85893);r(67294);var a=r(21485),i=r(56027),s=r(1420);let o=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:34,lineHeight:"38px",fontWeight:600,color:s.$R,[e.breakpoints.down("md")]:{fontSize:28}}}),l=(0,i.ZL)()(o);t.Z=e=>{let{className:t,...r}=e,{classes:i,cx:s}=l();return(0,n.jsx)(a.Z,{component:"h1",className:s(t,i.font),...r})}},80685:function(e,t,r){"use strict";r.d(t,{W:function(){return o}});var n=r(85893);r(67294);var a=r(21485),i=r(56027),s=r(61099);let o=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:28,lineHeight:"30px",fontWeight:400,[e.breakpoints.down("md")]:{fontSize:21}},asH3Styles:{...(0,s.W)(e).font}}),l=(0,i.ZL)()(o);t.Z=e=>{let{styleAsH3:t,className:r,...i}=e,{classes:s,cx:o}=l(),u=t?s.asH3Styles:s.font;return(0,n.jsx)(a.Z,{component:"h2",...i,className:o(r,u)})}},87869:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(85893);r(67294);var a=r(21485),i=r(56027);let s=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:18,lineHeight:"21px",fontWeight:400}}),o=(0,i.ZL)()(s);t.Z=e=>{let{className:t,...r}=e,{classes:i,cx:s}=o();return(0,n.jsx)(a.Z,{component:"h4",...r,className:s(t,i.font)})}},27102:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(85893);r(67294);var a=r(21485),i=r(56027);let s=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:14,lineHeight:"21px",fontWeight:600}}),o=(0,i.ZL)()(s);t.Z=e=>{let{className:t,...r}=e,{classes:i,cx:s}=o();return(0,n.jsx)(a.Z,{component:"h5",...r,className:s(t,i.font)})}},88210:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(85893);r(67294);var a=r(21485),i=r(56027);let s=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:16,lineHeight:"21px",fontWeight:300,marginTop:e.spacing(2.9),marginBottom:e.spacing(2.9)}}),o=(0,i.ZL)()(s);t.Z=(0,i.D2)(e=>{let{className:t,...r}=e,{classes:i,cx:s}=o();return(0,n.jsx)(a.Z,{component:"h6",...r,className:s(t,i.font)})},s)},4457:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(56027),i=r(89077),s=r(80685),o=r(61099),l=r(87869),u=r(27102),c=r(88210),d=r(31788),f=r(84136);let p=(0,a.ZL)()(e=>({container:{"& h1":(0,i.W)(e).font,"& h2":(0,s.W)(e).font,"& h3":(0,o.W)(e).font,"& h4":(0,l.W)(e).font,"& h5":(0,u.W)(e).font,"& h6":(0,c.W)(e).font,"&, & p, & ul, & ol":(0,d.W)(e).font,"& a":(0,f.W)(e).font,"& img":{maxWidth:"100%",height:"auto"},"& figure":{marginLeft:0,marginRight:0,"& > img":{display:"block",margin:"0 auto",width:"auto",height:"auto"},"& > figcaption":{fontSize:14,lineHeight:"20px",fontWeight:400,fontStyle:"italic",marginTop:e.spacing(1)}},"& iframe":{width:"100%",aspectRatio:"16/9"},"& .text-align-left":{textAlign:"left"},"& .text-align-right":{textAlign:"right"},"& .text-align-center":{textAlign:"center"},"& .text-align-justify":{textAlign:"justify"},[e.breakpoints.down("lg")]:{"& .align-left, & .align-right, & .align-center":{display:"block",margin:"1em auto"}},[e.breakpoints.up("lg")]:{"& .align-left":{float:"left",margin:"0 1em 1em 0",maxWidth:"50%"},"& .align-right":{float:"right",margin:"0 0 1em 1em",maxWidth:"50%"},"& .align-center":{display:"block",margin:"1em auto"}},display:"flow-root","& > *:first-child":{marginTop:0},"& > *:last-child":{marginBottom:0}}}));t.Z=e=>{let{component:t="div",className:r=null,html:a=null,children:i}=e,{classes:s,cx:o}=p(),l=o("CgHtmlContent",r,s.container),u={};return null!==a&&(u.dangerouslySetInnerHTML={__html:a}),(0,n.jsx)(t,{className:o(l,r),...u,children:i})}},94326:function(e,t,r){"use strict";r.d(t,{Ak:function(){return f},D4:function(){return p},hj:function(){return d},qn:function(){return c},rE:function(){return m}});var n=r(85893);r(67294);var a=r(93967),i=r.n(a),s=r(80685),o=r(12271),l=r(89077),u=r(31754);let c=e=>(0,n.jsx)(l.Z,{gutterBottom:!0,...e}),d=e=>{let{className:t="",...r}=e,{classes:a}=(0,o.Z)();return(0,n.jsx)(u.Z,{elevation:2,className:i()(a.groupedField,t),...r})},f=e=>{let{className:t="",...r}=e,{classes:a}=(0,o.Z)();return(0,n.jsx)(s.Z,{...r,styleAsH3:!0,className:i()(t,a.headerPadding,a.headingH3)})},p=e=>{let{className:t="",...r}=e,{classes:a}=(0,o.Z)();return(0,n.jsx)("div",{...r,className:i()(t,a.standardPadding)})},m=e=>{let{className:t="",...r}=e,{classes:a}=(0,o.Z)();return(0,n.jsx)("div",{...r,className:i()(t,a.headerPadding)})}},12271:function(e,t,r){"use strict";let n=(0,r(56027).ZL)()(e=>({fieldWrapper:{margin:"2rem 0"},button:{marginTop:e.spacing(4)},copyButton:{"body &":{width:"auto"}},groupedField:{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.25)",padding:"0 ".concat(e.spacing(4)," ").concat(e.spacing(2)," ").concat(e.spacing(4)),marginBottom:e.spacing(6),marginTop:e.spacing(6)},ibType:{paddingBottom:e.spacing(2)},headerPadding:{padding:"".concat(e.spacing(4)," 0 ").concat(e.spacing(1)," 0"),"&.MuiFormLabel-root":{padding:"".concat(e.spacing(4)," 0 ").concat(e.spacing(1)," 0")}},standardPadding:{padding:"".concat(e.spacing(4)," 0 ").concat(e.spacing(1))},lastSection:{marginBottom:0},profileStatusSection:{boxShadow:"none",padding:"0",marginTop:0},formSpacer:{display:"flex",justifyContent:"space-between",alignItems:"first baseline",[e.breakpoints.down("md")]:{flexDirection:"column"}},radioGroup:{justifyContent:"space-between",[e.breakpoints.down("md")]:{flexDirection:"column"}},yearField:{flexBasis:"20%"},myRootClass:{flexBasis:"78%"},headingH3:{fontSize:"21px !important",fontWeight:600,lineHeight:"21px !important",[e.breakpoints.down("md")]:{fontSize:"18px  !important"},"&.MuiFormLabel-root":{fontWeight:600}},interfaceHeading:{marginBottom:e.spacing(2)},errorMessageContainer:{justifyContent:"space-between","& > div:first-child":{flexBasis:"70%"},"& > div:last-child":{flexBasis:"30%"},[e.breakpoints.down("md")]:{flexDirection:"column-reverse","& > div":{flexBasis:"100%"}}},helperText:{textAlign:"end !important"}}));t.Z=n},65629:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(85893);r(67294);var a=r(87536),i=r(12166),s=r(53862);function o(e){let{value:t,name:r,defaultValue:o=!1,required:l=!1,...u}=e;return(0,n.jsx)(s.Z,{control:(0,n.jsx)(a.Qr,{render:e=>{let{field:r}=e;return(0,n.jsx)(i.Z,{value:t,color:"primary",required:l,onChange:e=>e.target.checked,defaultChecked:o,...r})},name:r,defaultValue:o}),required:l,...u})}},83216:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(32866),i=r(72892),s=r(47311),o=r(69111);let l=e=>(0,s.ZP)((0,o.encode)(e).replace(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi,'<a href="mailto:$1">$1</a>'));t.Z=e=>{let{name:t,errors:r,htmlMessage:s=!1,...o}=e;return(0,n.jsx)(a.B,{errors:r,name:t,render:e=>{let{message:t}=e;return(0,n.jsx)(i.Z,{role:"alert",...o,children:s?l(t):t})}})}},69854:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(87536),i=r(50720),s=r(46705);t.Z=e=>{let{formContext:t,pickersContext:r=!1,children:o,...l}=e,u=(0,n.jsx)(a.RV,{...t,children:(0,n.jsx)("form",{...l,noValidate:!0,children:o})});return r&&(u=(0,n.jsx)(i._,{dateAdapter:s.H,children:u})),u}},28901:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(40492),i=r(28577),s=r(87536);t.Z=function(e){let{options:t,emptyLabel:r="None",name:o,...l}=e,{formState:{errors:u}}=(0,s.Gc)();return(0,n.jsx)(s.Qr,{name:o,defaultValue:"",rules:{validate:e=>!l.required||!!e||"This field is required."},render:e=>{let{field:s}=e;return(0,n.jsxs)(a.Z,{select:!0,error:(null==l?void 0:l.required)&&!!u[o],required:l.required,...s,...l,children:[(0,n.jsx)(i.Z,{"aria-label":r,value:"",children:r}),Object.keys(t).map(e=>(0,n.jsx)(i.Z,{value:e,children:t[e]},e))]})}})}},82099:function(e,t,r){"use strict";r.d(t,{is:function(){return p},c0:function(){return d},SG:function(){return c},wB:function(){return u},Nq:function(){return f},pM:function(){return m}});var n=r(85893);r(67294);var a=r(4318),i=r(41664),s=r.n(i),o=r(78795);let l=new Map([["mail","email"],["field_first_name","first_name"],["field_last_name","last_name"],["field_user_state","state"],["field_creativeground_email_signu","newsletters"]]),u=e=>{let{username:t}=e;"Other"===e.hear_about?l.set("field_hear_about","hear_about_other"):l.set("field_hear_about","hear_about");let r={_links:{type:{href:"".concat("https://api.creativeground.org","/rest/type/user/user")}},name:{value:t},field_creativeground_email_signu:{subscribe:"1"}};for(let[t,n]of l)r[t]={value:e[n]||null},"field_creativeground_email_signu"===t&&(r[t]={subscribe:e[n]||null});return r},c=(e,t)=>{let r=[];if(!Array.isArray(e))return r;for(let a of e){let e=a.message||null;if(!e)continue;"UserMailUnique"===(a.code||null)&&(e=(0,n.jsxs)(n.Fragment,{children:["The e-mail address is already registered. ",(0,n.jsx)("br",{}),(0,n.jsx)(s(),{passHref:!0,href:"/user/forgot-password",children:"Have you forgotten your password?"})]}));let i=a.path||null;if(i&&l.has(i)){t(l.get(i),{type:"server",message:e});continue}r.push(e)}return r},d=(e,t,r)=>{let n=new o.Z(r).getUserUuid();return a.Z.patch("".concat("https://api.creativeground.org","/jsonapi/user/user/").concat(n),{data:{type:"user--user",id:n,attributes:{pass:{value:e,existing:"",pre_hashed:!1}}}},{headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json","X-CG-Password-Reset-Token":t,Authorization:"Bearer ".concat(r)}})},f=e=>{let t={data:{type:"user--user",id:e.id,attributes:{field_first_name:e.fieldFirstName,field_last_name:e.fieldLastName,field_creativeground_email_signu:e.fieldCreativeGroundEmailSignup}}};return void 0!==e.passwordExisting&&(t.data.attributes.pass={existing:e.passwordExisting}),void 0!==e.passwordNew&&(t.data.attributes.pass={...t.data.attributes.pass,value:e.passwordNew,pre_hashed:!1}),void 0!==e.mailNew&&(t.data.attributes.mail=e.mailNew),a.Z.patch("".concat("https://api.creativeground.org","/jsonapi/user/user/").concat(e.id),t,{headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json"}})},p=e=>(0,a.Z)("".concat("https://api.creativeground.org","/jsonapi/user/user/").concat(e)),m=e=>{let{attributes:t,id:r}=e.data;return{id:r,mail:t.mail,fieldFirstName:t.field_first_name,fieldLastName:t.field_last_name,fieldCreativeGroundEmailSignup:t.field_creativeground_email_signu}}},86011:function(e,t,r){"use strict";var n=r(85893);r(67294);var a=r(56027),i=r(31754);let s=(0,a.ZL)()(e=>({paper:{padding:e.spacing(4)}}));t.Z=e=>{let{children:t,className:r=null}=e,{classes:a,cx:o}=s();return(0,n.jsx)(i.Z,{className:o(a.paper,r),children:t})}},65806:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(67294),a=r(90512),i=r(94780),s=r(57280),o=r(77527),l=r(2807),u=r(44001),c=r(21485),d=r(66643),f=r(1588),p=r(27621);function m(e){return(0,p.ZP)("MuiFormControlLabel",e)}let h=(0,f.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var g=r(88962),x=r(39583),v=r(85893);let b=e=>{let{classes:t,disabled:r,labelPlacement:n,error:a,required:s}=e,o={root:["root",r&&"disabled","labelPlacement".concat((0,d.Z)(n)),a&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return(0,i.Z)(o,m,t)},j=(0,o.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(h.label)]:t.label},t.root,t["labelPlacement".concat((0,d.Z)(r.labelPlacement))]]}})((0,l.Z)(e=>{let{theme:t}=e;return{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(h.disabled)]:{cursor:"default"},["& .".concat(h.label)]:{["&.".concat(h.disabled)]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:e=>{let{labelPlacement:t}=e;return"start"===t||"top"===t||"bottom"===t},style:{marginLeft:16}}]}})),Z=(0,o.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,l.Z)(e=>{let{theme:t}=e;return{["&.".concat(h.error)]:{color:(t.vars||t).palette.error.main}}}));var y=n.forwardRef(function(e,t){var r;let i=(0,u.i)({props:e,name:"MuiFormControlLabel"}),{checked:o,className:l,componentsProps:d={},control:f,disabled:p,disableTypography:m,inputRef:h,label:y,labelPlacement:_="end",name:w,onChange:N,required:S,slots:k={},slotProps:F={},value:C,...A}=i,W=(0,s.Z)(),E=null!==(r=null!=p?p:f.props.disabled)&&void 0!==r?r:null==W?void 0:W.disabled,M=null!=S?S:f.props.required,P={disabled:E,required:M};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===f.props[e]&&void 0!==i[e]&&(P[e]=i[e])});let L=(0,g.Z)({props:i,muiFormControl:W,states:["error"]}),T={...i,disabled:E,labelPlacement:_,required:M,error:L.error},H=b(T),D={slots:k,slotProps:{...d,...F}},[O,B]=(0,x.Z)("typography",{elementType:c.Z,externalForwardedProps:D,ownerState:T}),z=y;return null==z||z.type===c.Z||m||(z=(0,v.jsx)(O,{component:"span",...B,className:(0,a.Z)(H.label,null==B?void 0:B.className),children:z})),(0,v.jsxs)(j,{className:(0,a.Z)(H.root,l),ownerState:T,ref:t,...A,children:[n.cloneElement(f,P),M?(0,v.jsxs)("div",{children:[z,(0,v.jsxs)(Z,{ownerState:T,"aria-hidden":!0,className:H.asterisk,children:[" ","*"]})]}):z]})})},75692:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return H},default:function(){return D}});var n=r(85893),a=r(67294),i=r(53928),s=r(31788),o=r(25247),l=function(){let e="Thanks for taking the first step to create a user account! Please check your email for a link to set up your password and gain access to site features like creating or claiming a public profile.";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{message:e}),(0,n.jsx)(s.Z,{children:e})]})},u=r(89077),c=r(41664),d=r.n(c),f=r(84136),p=r(68573),m=r(87536),h=r(40492),g=r(12283),x=r(72892),v=r(28901),b=r(29058),j=r(82099),Z=r(4318),y=r(83216),_=r(69854),w=r(94326),N=r(65629),S=r(63274),k=r(27361),F=r.n(k);let C={"ArtsHub of Western Mass":"ArtsHub of Western Mass","CreativeGround Instagram":"CreativeGround Instagram",MaineTransNet:"MaineTransNet","Mosaic Lowell":"Mosaic Lowell","NEFA Direct Mail":"NEFA Direct Mail","NEFA Email":"NEFA Email","NEFA Event":"NEFA Event","NEFA Facebook":"NEFA Facebook","NEFA Twitter":"NEFA Twitter","NEFA.org Website":"NEFA.org Website","State Arts Agency":"State Arts Agency","Word of Mouth":"Word of Mouth",Other:"Other..."};var A=e=>{let{fieldOptions:t,onSuccess:r}=e,i=(0,m.cI)(),{handleSubmit:s,setError:l,watch:u,formState:{errors:c}}=i,[d,p]=(0,a.useState)(""),[k,A]=(0,a.useState)(!1),W=async e=>{let{email:t}=e,n=Math.random().toString(36).substring(7),a=t.substring(0,t.indexOf("@"))+"-"+n,i=(0,j.wB)({username:a,...e});if(p(""),!e.terms_conditions)return p("You must agree to the Terms of Service in order to continue."),!1;A(!0),Z.Z.post("/rest/user/register?_format=hal_json",i,{headers:{"Content-Type":"application/hal+json"}}).then(()=>{A(!1),r()}).catch(e=>{var t,r,n,a,i;let s=null===(t=e.response)||void 0===t?void 0:t.status,o=null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.violations;if(422===s&&o)p((0,j.SG)(o,l).join(" "));else{let t=null===(i=e.response)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:a.message;t?p(t):p("An unknown error has occurred.")}A(!1)})},E=u("hear_about"),M=(0,n.jsxs)("label",{children:["I agree to this site's "," ",(0,n.jsx)(f.Z,{href:"/terms-use",children:"terms of service"})," and ",(0,n.jsx)(f.Z,{href:"/privacy-policy",children:"privacy policy"})," "," ","."]});return(0,n.jsxs)(_.Z,{formContext:i,onSubmit:s(W),children:[(0,n.jsxs)(w.D4,{children:[(0,n.jsx)(m.Qr,{render:e=>{let{field:t}=e;return(0,n.jsx)(h.Z,{required:!0,fullWidth:!0,type:"email",label:"Email",error:!!F()(c,"email"),...t})},name:"email",defaultValue:""}),(0,n.jsx)(y.Z,{name:"email",errors:c})]}),(0,n.jsxs)(w.D4,{children:[(0,n.jsx)(m.Qr,{render:e=>{let{field:t}=e;return(0,n.jsx)(h.Z,{required:!0,fullWidth:!0,label:"First Name",error:!!(null==c?void 0:c.first_name),...t})},name:"first_name",defaultValue:"",rules:{validate:e=>(0,S.OC)(e,255,!0)}}),(0,n.jsx)(y.Z,{name:"first_name",errors:c})]}),(0,n.jsxs)(w.D4,{children:[(0,n.jsx)(m.Qr,{render:e=>{let{field:t}=e;return(0,n.jsx)(h.Z,{required:!0,fullWidth:!0,label:"Last Name",error:!!(null==c?void 0:c.last_name),...t})},name:"last_name",defaultValue:"",rules:{validate:e=>(0,S.OC)(e,255,!0)}}),(0,n.jsx)(y.Z,{name:"last_name",errors:c})]}),(0,n.jsx)(w.D4,{children:(0,n.jsx)(v.Z,{required:!0,options:t.field_user_state.options,name:"state",id:"create-form-state",label:"State"})}),(0,n.jsx)(w.D4,{children:(0,n.jsx)(v.Z,{options:C,name:"hear_about",id:"create-form-hear-about",label:"Where did you learn about CreativeGround?"})}),"Other"===E&&(0,n.jsx)(w.D4,{children:(0,n.jsx)(m.Qr,{render:e=>{let{field:t}=e;return(0,n.jsx)(h.Z,{label:"Please specify",...t})},name:"hear_about_other"})}),(0,n.jsxs)(w.D4,{children:[(0,n.jsx)(N.Z,{size:"small",value:!0,label:"I would like to receive email updates about CreativeGround",defaultValue:!0,name:"newsletters"}),(0,n.jsxs)(g.Z,{children:["If you would like to receive updates about NEFA's other services and grant programs, please subscribe "," ",(0,n.jsx)(f.Z,{href:"https://www.nefa.org/sign-our-mailing-list",target:"_blank",rel:"noreferrer",title:"Opens in new tab.",children:"here"}),". You can also like NEFA on "," ",(0,n.jsx)(f.Z,{href:"http://www.facebook.com/NEFApage",target:"_blank",rel:"noreferrer",title:"Opens in new tab.",children:"Facebook"})," "," and follow us on "," ",(0,n.jsx)(f.Z,{href:"https://twitter.com/NEFA_Boston",target:"_blank",rel:"noreferrer",title:"Opens in new tab.",children:"Twitter"}),"."]}),(0,n.jsx)(y.Z,{name:"newsletters",errors:c})]}),(0,n.jsxs)(w.D4,{children:[(0,n.jsx)(N.Z,{size:"small",required:!0,name:"terms_conditions",value:"1",label:M}),(0,n.jsx)(y.Z,{name:"terms_conditions",errors:c}),!!d&&(0,n.jsxs)(w.D4,{children:[(0,n.jsx)(x.Z,{children:d}),(0,n.jsx)(o.Z,{message:d})]})]}),(0,n.jsx)(w.D4,{children:(0,n.jsx)(b.Z,{disabled:k,type:"submit",children:"Create account"})})]})},W=r(4457),E=()=>(0,n.jsxs)(W.Z,{children:[(0,n.jsxs)("p",{children:["Hello! ",(0,n.jsx)("br",{}),"The first step to digging into CreativeGround is to create a free user account."]}),(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Once you have an account, you can:"})}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:"Create a new public profile"}),(0,n.jsx)("li",{children:"Ask to manage an existing profile"}),(0,n.jsx)("li",{children:"Access all of CreativeGround's tools, content, and email updates"})]}),(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Did you reset your password?"})}),(0,n.jsx)("p",{children:"Open the email sent to your inbox and follow the instructions to reset your password. Once you have saved your new password, you can log in to CreativeGround and view your dashboard and the profiles you already manage."})]}),M=r(86011),P=e=>{let{fieldOptions:t}=e,[r,i]=(0,a.useState)(!1),o=(0,a.useCallback)(()=>{i(!0)},[]);return!0===r?(0,n.jsx)(l,{}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(M.Z,{children:[(0,n.jsx)(u.Z,{gutterBottom:!0,children:"Register"}),(0,n.jsxs)(p.ZP,{container:!0,spacing:4,children:[(0,n.jsxs)(p.ZP,{item:!0,sm:12,md:6,lg:5,children:[(0,n.jsx)(w.D4,{children:(0,n.jsxs)(s.Z,{children:["Already have an account?"," ",(0,n.jsx)(d(),{href:"/user/login",passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(f.Z,{children:"Sign In."})})]})}),(0,n.jsx)(A,{fieldOptions:t,onSuccess:o})]}),(0,n.jsx)(p.ZP,{item:!0,sm:12,md:6,lg:7,children:(0,n.jsx)(E,{})})]})]})})},L=r(34777);function T(e){let{fieldOptions:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L.Z,{children:"Register"}),(0,n.jsx)(P,{fieldOptions:t})]})}T.Layout=i.Z;var H=!0,D=T},63274:function(e,t,r){"use strict";r.d(t,{Fl:function(){return o},Fx:function(){return l},OC:function(){return u},Uo:function(){return a},Zd:function(){return i},ot:function(){return d},p5:function(){return s},yg:function(){return c}});var n=r(69111);function a(e){return(0,n.decode)(e)}function i(e,t,r){let n=e;return e.length>t&&(n=(n=e.substr(0,t)).substr(0,Math.min(n.length,n.lastIndexOf(" ")))+r),n}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(null==e?void 0:e.length)?e:t}function o(e){return e.every(function(e){return null===e||""===e||Array.isArray(e)&&0===e.length})}function l(e){if(!e)return null;let t=RegExp(String.fromCharCode(160),"g");return e.replace(t," ")}function u(e,t){var r,n,a;let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e&&i)return"Please fill out the field.";let s=(null===(a=String(e))||void 0===a?void 0:null===(n=a.replace(/[\r\n]+/gm,""))||void 0===n?void 0:null===(r=n.replace(/&nbsp;/gi,""))||void 0===r?void 0:r.length)||0;if(t&&s>t)return"May not be longer than ".concat(t," characters.")}function c(e){return null!=e&&!!e.detail&&(null==e?void 0:e.detail).replace(/^[^:]+:\s+/,"")}function d(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u(e,t,r)||(e&&!1===/^(?=.*[0-9])[-+ .()0-9]+$/.test(e)?"Please enter a valid phone number.":void 0)}}},function(e){e.O(0,[8946,492,6593,7361,9111,7311,2166,2888,9774,179],function(){return e(e.s=81345)}),_N_E=e.O()}]);