(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4987],{54041:function(e,a,t){"use strict";var n=t(57437),i=t(48059),r=t.n(i),l=t(17862),c=t.n(l),o=t(2265),d=t(87991),s=t(66648),u=t(5849);a.Z=e=>{let a,{label:t,value:i,onChangeText:l,placeholder:p,secureTextEntry:m,autoComplete:_,required:x,clearIt:y,error:f,errorAction:v,inputType:I="text",name:h,inputId:b,size:N="full",isInFocus:E,onBlur:C,onFocus:A,accessibilityLabel:S,noSpaces:k,readOnly:T,minNumber:g,maxNumber:D,disabled:G=!1,top:z=0,bottom:F,singleLineInput:$,id:w,btnText:P,btnTextFn:j,showNumericalSuccess:L,hasNoBlur:O,errorStyle:W}=e,[Z,B]=(0,o.useState)(!1),[R]=(0,u.i)(),M=R<680?"24px":"32px",H=()=>{B(!Z)},q=!!t,V=!!P,K="number"===I&&f,Y="number"===I&&!f&&L;switch(N){case"full":a="100%";break;case"half":a="49%";break;case"third":a="32%";break;case"halfPlus":a="60%";break;case"halfMinus":a="38%";break;case"quarter":a="24%";break;case"quarterPlus":a="34%";break;case"threeQuarter":a="74%";case"fifth":a="20%";break;case"fourFifths":a="78%"}let Q="number"==typeof i||(null==i?void 0:i.length)||E||G,J=!T&&!G&&y&&("number"==typeof i||(null==i?void 0:i.length))&&!m&&!V;return(0,n.jsxs)("div",{className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+c().outerWrapper+" styledOuterWrapper",children:[(0,n.jsxs)("div",{className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+c().inputWrapper+" styledInputWrapper",children:[(0,n.jsx)("input",{id:b,type:m&&Z?"text":I,inputMode:"number"==I?"numeric":"text",placeholder:E?p:"",value:i,onChange:e=>{k?l(e.target.value.replace(/\s+/g,"")):"number"==I?l(e.target.value.replace(/[^0-9]/g,"")):l(e.target.value)},onFocus:A,onBlur:C,required:x,name:h,autoCorrect:"on",autoComplete:_,"aria-label":S,readOnly:T,min:g,max:D,autoFocus:!1,disabled:G,"data-cy":b,className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+"".concat(c().dynamicInput," ").concat(f&&c().error," ").concat(Q&&c().active," ").concat($&&c().singleLineInput," ").concat(G&&c().disabled," ").concat(K&&c().numericalError," ").concat(Y&&c().numericalSuccess," ").concat(E&&c().inputIsInFocus," ").concat(m&&E&&c().inputSecureText)}),q?(0,n.jsx)("label",{htmlFor:b,className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+"".concat(c().dynamicInputLabel," ").concat(f&&c().error," ").concat(Q&&c().active," ").concat(G&&c().disabledLabel," ").concat(K&&c().numericalLabelError," form-label"),children:t}):null,!E&&!O&&(0,n.jsx)("div",{className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+(c().fadeBlock||"")}),m&&("number"==typeof i||(null==i?void 0:i.length)||E)?(0,n.jsx)("div",{id:"button-formField-".concat(w),onPointerDown:e=>{H(),e.preventDefault()},className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" p3 "+c().secureField,children:Z?"Hide":"Show"}):null,J?(0,n.jsx)("div",{className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+(c().clearIt||""),children:(0,n.jsx)(s.default,{className:c().clearIcon,onClick:y,src:"https://static.bookofthemonth.com/icons/Clear.svg",alt:"Clear icon",width:16,height:16,unoptimized:!0})}):null,V?(0,n.jsx)("button",{onClick:j||null,className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+(c().btnText||""),children:(0,n.jsx)("p",{className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+"".concat(c().btnTextContent," p3"),children:P})}):null,f?(0,n.jsx)("div",{className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" "+"".concat(c().errorWrapper," ").concat(W?c()[W]:""),children:(0,n.jsxs)("p",{className:r().dynamic([["4ef7da304737119d",[z+"px",void 0!=F?F+"px":M,a]]])+" form-label",children:[f,v&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.default,{id:"error-action-".concat(w),path:v.path,title:v.cta,linkClass:"link-p3"}),"."]})]})}):null]}),(0,n.jsx)(r(),{id:"4ef7da304737119d",dynamic:[z+"px",void 0!=F?F+"px":M,a],children:".styledOuterWrapper.__jsx-style-dynamic-selector{margin-top:".concat(z+"px",";margin-bottom:").concat(void 0!=F?F+"px":M,";width:").concat(a,"}")})]})}},5561:function(e,a,t){"use strict";t.d(a,{G:function(){return o},j:function(){return d}});var n=t(57437),i=t(48059),r=t.n(i),l=t(85201),c=t.n(l);let o={name:/^[a-zA-Z\u00C0-\u017F][a-zA-Z\u00C0-\u017F0-9-\s]{0,22}$/i,first_name:/^[a-zA-Z\u00C0-\u017F][a-zA-Z\u00C0-\u017F0-9-]{0,22}$/i,firstName:/^[a-zA-Z\u00C0-\u017F][a-zA-Z\u00C0-\u017F0-9-]{0,22}$/i,last_name:/^[a-zA-Z\u00C0-\u017F][a-zA-Z\u00C0-\u017F0-9-]{0,22}$/i,lastName:/^[a-zA-Z\u00C0-\u017F][a-zA-Z\u00C0-\u017F0-9-]{0,22}$/i,street:/^.{0,63}$/i,street1:/^(?=.*[0-9])(?=.*[a-zA-Z]).+$/i,street2:/^.{0,63}$/i,zip:/^\d{5}([\s-]\d{4})?$/i,zipCa:/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,city:/^[a-zA-Z ]{2,63}$/i,email:/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i,password:/^.{4,40}$/i,countryCode:/^(US)|(CA)$/i,state:/^(AL)|(AK)|(AZ)|(AR)|(AA)|(AE)|(AP)|(CA)|(CO)|(CT)|(DE)|(DC)|(FL)|(GA)|(HI)|(ID)|(IL)|(IN)|(IA)|(KS)|(KY)|(LA)|(ME)|(MD)|(MA)|(MI)|(MN)|(MS)|(MO)|(MT)|(NE)|(NV)|(NH)|(NJ)|(NM)|(NY)|(NC)|(ND)|(OH)|(OK)|(OR)|(PA)|(PR)|(RI)|(SC)|(SD)|(TN)|(TX)|(UT)|(VT)|(VA)|(WA)|(WV)|(WI)|(WY)$/i,province:/^(AB)|(NB)|(BC)|(NS)|(NT)|(PE)|(SK)|(MB)|(QC)|(NL)|(YT)|(NU)|(ON)$/i,defaultValidation:/^.{4,63}$/i,displayName:/^[A-Z0-9_ ]{0,63}$/i,fbId:/^\S+$/i,fbToken:/^\S+$/i,email_mag:/^\S*$/i,email_promo:/^\S*$/i,picture_url:/^[A-Z0-9]{2,20}\.(jpg|png|gif|svg)$/i,month:/^[1-9]|1[0-2]$/,year:/^[0-9]{4}$/,day:/^[0-9]{1,2}$/,numEmployees:/^\d{1}/i,groupNumber:/^\d{1}/i,company:/^[A-Z0-9_ ]{0,63}$/i},d=e=>{let{message:a,top:t=10,bottom:i=40}=e;return(0,n.jsxs)("div",{id:"form_error",className:r().dynamic([["d6c47c2007319588",[t+"px",i+"px"]]])+" "+"".concat(c().errorBlock," styledErrorBlockWrapper"),children:[(0,n.jsx)("p",{className:r().dynamic([["d6c47c2007319588",[t+"px",i+"px"]]])+" p2-alt",children:a}),(0,n.jsx)(r(),{id:"d6c47c2007319588",dynamic:[t+"px",i+"px"],children:".styledErrorBlockWrapper.__jsx-style-dynamic-selector{margin-top:".concat(t+"px",";margin-bottom:").concat(i+"px","}")})]})}},41522:function(e,a,t){"use strict";t.d(a,{Kt:function(){return s},OZ:function(){return i},Sg:function(){return c},Wt:function(){return u},xc:function(){return d},zd:function(){return o}});var n,i,r=t(5561),l=t(85226);let c=[{name:"password",elementId:"given-password",type:"text",inputType:"password",placeholder:"Password",activePlaceholder:"Password",label:"Password",mobileSize:"full",desktopSize:"full",required:!0,validation:e=>null===r.G||void 0===r.G?void 0:r.G.password.test(e),error:"Password must be more than 3 characters.",secureTextEntry:!0},{name:"confirmPassword",elementId:"confirm-password",type:"text",inputType:"password",placeholder:"Confirm password",activePlaceholder:"Confirm password",label:"Confirm password",mobileSize:"full",desktopSize:"full",required:!0,validation:e=>null===r.G||void 0===r.G?void 0:r.G.password.test(e),error:"Password does not match.",secureTextEntry:!0}],o=[{name:"firstName",elementId:"given-name",type:"text",inputType:"text",placeholder:"First name",activePlaceholder:"First name",label:"First name",mobileSize:"full",desktopSize:"half",required:!0,validation:e=>null===r.G||void 0===r.G?void 0:r.G.firstName.test(e),error:"Enter a valid first name."},{name:"lastName",elementId:"family-name",type:"text",inputType:"text",placeholder:"Last name",activePlaceholder:"Last name",label:"Last name",mobileSize:"full",desktopSize:"half",required:!0,validation:e=>null===r.G||void 0===r.G?void 0:r.G.lastName.test(e),error:"Enter a valid last name."}],d=[{name:"email",elementId:"given-name",type:"text",inputType:"text",placeholder:"Email",activePlaceholder:"Email",label:"Email",mobileSize:"full",desktopSize:"full",required:!0,validation:e=>null===r.G||void 0===r.G?void 0:r.G.email.test(e),error:"Enter a valid email."}],s=[{name:"email",elementId:"given-name",type:"text",inputType:"text",placeholder:"Email",activePlaceholder:"Email",label:"Email",mobileSize:"full",desktopSize:"full",required:!0,validation:e=>null===r.G||void 0===r.G?void 0:r.G.email.test(e),error:"Please enter a valid email address."}],u=[{name:"occupation",elementId:"given-occupation",type:"select",inputType:"text",options:l.Vj,placeholder:"Occupation",activePlaceholder:"Occupation",label:"Occupation",mobileSize:"full",desktopSize:"full",required:!0,validation:e=>null===r.G||void 0===r.G?void 0:r.G.name.test(e),error:"Enter a valid email."}];(n=i||(i={})).TEACHING="Teaching and education",n.NURSING="Nursing and healthcare",n.ADMINISTRATIVE="Office and administrative support",n.FINANCIAL_SERVICES="Financial services",n.TECHNOLOGY="Technology and computer software/services",n.GOVERNMENT="Government employee",n.UNEMPLOYED="Not currently in the workforce",n.RETIRED="Retired",n.OTHER="Other"},17862:function(e){e.exports={outerWrapper:"DynamicInput_outerWrapper__RIxKb",inputWrapper:"DynamicInput_inputWrapper__p3pT_",dynamicInput:"DynamicInput_dynamicInput__s66v6",singleLineInput:"DynamicInput_singleLineInput__kNLFH",active:"DynamicInput_active__sqpSi",error:"DynamicInput_error__aJQvb",numericalError:"DynamicInput_numericalError__tn7jo",numericalSuccess:"DynamicInput_numericalSuccess__Qpr1q",inputIsInFocus:"DynamicInput_inputIsInFocus__3Hg7A",inputSecureText:"DynamicInput_inputSecureText__oCvve",dynamicInputLabel:"DynamicInput_dynamicInputLabel__sF6hH",disabledLabel:"DynamicInput_disabledLabel__QRoux",numericalLabelError:"DynamicInput_numericalLabelError__BP2oE",disabled:"DynamicInput_disabled__A4exz",secureField:"DynamicInput_secureField__uoHD_",clearIt:"DynamicInput_clearIt__tQAa5",clearIcon:"DynamicInput_clearIcon___Ezu7",errorWrapper:"DynamicInput_errorWrapper__CWlfq",knockout:"DynamicInput_knockout__FGOrc",fadeBlock:"DynamicInput_fadeBlock__1E5_m",btnText:"DynamicInput_btnText__nhCXp",btnTextContent:"DynamicInput_btnTextContent__2IGAm"}},85201:function(e){e.exports={errorBlock:"Error_errorBlock__khEiO"}}}]);