1"use strict";(self.webpackChunkStammer_ai=self.webpackChunkStammer_ai||[]).push([[2180],{35230:function(e,t,n){n.d(t,{v:function(){return m}});var r=n(78685),o=n(2057),i=n(31938),a=n(47273),s=n(31547),c=n(38588),l=n(88458),u=n(34994),d=n(32417),f=n(10838),h=n(16657),m=function(e){return/^(?=.*\d)(?=.*[a-zA-Z]).{8,}$/.test(e)};t.A=function(e){var t=e.id,n=e.name,p=e.value,x=e.onChange,A=e.label,S=e.placeholder,g=e.errors,v=void 0===g?[]:g,_=e.autoComplete,w=void 0===_?"new-password":_,I=e.showStrength,T=void 0!==I&&I,j=(0,h.Bd)().t,y=(0,o.useState)(!1),b=y[0],D=y[1],R=p.length>0&&!m(p);return(0,r.jsxs)(s.A,{children:[(0,r.jsx)(c.A,{id:t,name:n,label:A,placeholder:S,type:b?"text":"password",value:p,onChange:function(e){return x(e.target.value)},error:v.length>0,helperText:v[0],autoComplete:w,fullWidth:!0,size:"small",InputProps:{startAdornment:(0,r.jsx)(l.A,{position:"start",children:(0,r.jsx)(s.A,{component:"i",className:"fa fa-lock",sx:{fontSize:"1rem"}})}),endAdornment:(0,r.jsx)(l.A,{position:"end",children:(0,r.jsx)(u.A,{"aria-label":j(b?"DISPLAY_STRINGS.AUTH_HIDE_PASSWORD":"DISPLAY_STRINGS.AUTH_SHOW_PASSWORD"),edge:"end",onClick:function(){return D((function(e){return!e}))},onMouseDown:function(e){return e.preventDefault()},size:"small",children:b?(0,r.jsx)(a.A,{}):(0,r.jsx)(i.A,{})})}),sx:{minHeight:46}},inputProps:{maxLength:72}}),T&&p?(0,r.jsxs)(s.A,{sx:{mt:1},children:[(0,r.jsxs)(d.A,{direction:"row",justifyContent:"space-between",children:[(0,r.jsx)(f.A,{color:"text.secondary",variant:"caption",children:j("DISPLAY_STRINGS.AUTH_PASSWORD_STRENGTH")}),(0,r.jsx)(f.A,{color:R?"error":"success.main",variant:"caption",children:j(R?"DISPLAY_STRINGS.AUTH_PASSWORD_WEAK":"DISPLAY_STRINGS.AUTH_PASSWORD_GOOD")})]}),(0,r.jsx)(d.A,{direction:"row",spacing:.5,sx:{mt:.75},children:[0,1,2].map((function(e){return(0,r.jsx)(s.A,{sx:{flex:1,height:3,borderRadius:1,bgcolor:R?0===e?"error.main":"divider":"primary.main"}},e)}))}),R?(0,r.jsx)(f.A,{color:"error",variant:"caption",sx:{display:"block",mt:1},children:j("DISPLAY_STRINGS.AUTH_INVALID_PASSWORD")}):null]}):null]})}},72180:function(e,t,n){n.r(t),n.d(t,{SignupRoutePage:function(){return k}});var r=n(78685),o=n(2057),i=n(86591),a=n(31547),s=n(73349),c=n(81323),l=n(32114),u=n(70459),d=n(66052),f=(n(37456),n(16657)),h=n(17e3),m=n(83474),p=n(10838),x=n(26120),A=n(30350),S=n(97340),g=n(41007),v=n(26400),_=n(53630),w=n(50212),I=n(88152),T=n(65359),j=n(35230),y=n(54e3),b=n(44162),D=n(39049),R=n(69569),N=n(88204),P=n(37555),C=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},U=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},E=function(e){var t,n,i=e.config,s=(0,f.Bd)().t,c=(0,m.A)(),l=(0,h.Zp)(),d={createAccountTitle:s("DISPLAY_STRINGS.AUTH_CREATE_ACCOUNT_TITLE"),createAccount:s("DISPLAY_STRINGS.AUTH_CREATE_ACCOUNT_BUTTON"),forgotPassword:s("DISPLAY_STRINGS.AUTH_FORGOT_PASSWORD"),logIn:s("DISPLAY_STRINGS.AUTH_LOG_IN"),or:s("DISPLAY_STRINGS.AUTH_OR"),signInGoogle:s("DISPLAY_STRINGS.AUTH_SIGN_IN_GOOGLE"),creatingAccount:s("DISPLAY_STRINGS.AUTH_CREATING_ACCOUNT"),termsPrefix:s("DISPLAY_STRINGS.AUTH_TERMS_PREFIX"),termsText:s("DISPLAY_STRINGS.AUTH_TERMS_TEXT"),privacyText:s("DISPLAY_STRINGS.AUTH_PRIVACY_TEXT")},E=!!i.isAgencyDomain,k=(0,o.useState)(!1),L=k[0],G=k[1],O=(0,o.useState)(""),H=O[0],Y=O[1],F=(0,o.useState)(!1),W=F[0],z=F[1],M=(0,o.useState)(i.fieldErrors||{}),V=M[0],q=M[1],K=(0,o.useState)(i.nonFieldErrors||[]),X=K[0],B=K[1],$=(0,o.useState)((null===(t=i.fieldValues)||void 0===t?void 0:t.email)||""),Z=$[0],J=$[1],Q=(0,o.useState)((null===(n=i.fieldValues)||void 0===n?void 0:n.access_code)||""),ee=Q[0],te=Q[1],ne=(0,o.useState)(""),re=ne[0],oe=ne[1],ie=(0,o.useMemo)((function(){var e=["auth-main-container"];return 1===i.formPosition&&e.push("auth-main-container--flipped"),i.footerPlacement||e.push("auth-main-container--full"),e.join(" ")}),[i.formPosition,i.footerPlacement]),ae=function(e){return C(void 0,void 0,void 0,(function(){var t;return U(this,(function(n){switch(n.label){case 0:return(0,P.UR)(
1Z),[4,(0,u.pc)({email:Z,password1:re,access_code:ee||void 0,recaptcha_token:e})];case 1:return t=n.sent(),(new I.b).registrationComplete(),(0,P.Dk)(),(0,w.DV)(t.redirectUrl,l)||(window.location.href=t.redirectUrl),[2]}}))}))},se=!E&&!i.hasAccessCodeField&&i.googleLoginUrl,ce=(0,w.Ih)(i.loginUrl),le=(0,w.Ih)(i.passwordResetUrl),ue=(0,N.c)(V,{email:Z,access_code:ee},i.hasAccessCodeField,{email:s("DISPLAY_STRINGS.AUTH_EMAIL_PLACEHOLDER"),password:s("DISPLAY_STRINGS.AUTH_PASSWORD_PLACEHOLDER"),accessCode:s("DISPLAY_STRINGS.AUTH_ACCESS_CODE_PLACEHOLDER")}),de=ue.accessCodeField,fe=ue.emailField,he=ue.passwordField;return(0,r.jsxs)(a.A,{sx:{backgroundColor:E?c.palette.primary.main:"#E4E7ED"},id:"layoutAuthentication",children:[(0,r.jsx)(D.A,{clientId:i.googleAuthClientId,oneTapUrl:i.googleOneTapUrl,csrfToken:i.csrfToken,enabled:!!se}),(0,r.jsxs)(a.A,{className:ie,children:[(0,r.jsx)(b.A,{isAgencyDomain:E,backgroundImage:i.backgroundImage,logoUrl:i.logoUrl}),(0,r.jsx)(a.A,{className:"auth-form-section",children:(0,r.jsx)(a.A,{id:"layoutAuthentication_content",children:(0,r.jsx)(a.A,{component:"main",children:(0,r.jsx)(a.A,{className:"row justify-content-center",children:(0,r.jsxs)(a.A,{className:"my-5",children:[(0,r.jsxs)(a.A,{className:"px-5 pt-3",children:[(0,r.jsx)(a.A,{className:"logo text-center",children:i.logoPlacement&&i.logoUrl?(0,r.jsx)("img",{className:"img-fluid max-width-4",src:i.logoUrl,alt:"Logo"}):null}),(0,r.jsx)(a.A,{className:"p-2 text-center",children:(0,r.jsx)(p.A,{variant:"h5",fontWeight:600,children:d.createAccountTitle})}),(0,r.jsxs)("form",{onSubmit:function(e){return C(void 0,void 0,void 0,(function(){var t,n;return U(this,(function(r){switch(r.label){case 0:if(e.preventDefault(),W)return[2];if(i.terms.show&&!L)return Y(s("DISPLAY_STRINGS.AUTH_TERMS_REQUIRED")),[2];z(!0),q({}),B([]),r.label=1;case 1:return r.trys.push([1,5,6,7]),i.showRecaptcha&&window.grecaptcha?[4,new Promise((function(e,t){window.grecaptcha.ready((function(){window.grecaptcha.execute(i.recaptchaSiteKey,{action:"submit"}).then((function(n){return C(void 0,void 0,void 0,(function(){var r;return U(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,ae(n)];case 1:return o.sent(),e(),[3,3];case 2:return r=o.sent(),t(r),[3,3];case 3:return[2]}}
1))}))})).catch(t)}))}))]:[3,3];case 2:return r.sent(),[2];case 3:return[4,ae()];case 4:return r.sent(),[3,7];case 5:return t=r.sent(),n=(0,u.jO)(t),q(n.fieldErrors),B(n.nonFieldErrors),[3,7];case 6:return z(!1),[7];case 7:return[2]}}))}))},"data-rewardful":!0,children:[de?(0,r.jsx)(T.A,{field:de,prefixIcon:"fa fa-key",onValueChange:te,value:ee}):null,(0,r.jsx)(T.A,{field:fe,prefixIcon:"fa fa-envelope",onValueChange:J,value:Z}),(0,r.jsx)(j.A,{id:he.id,name:he.name,placeholder:he.placeholder,errors:he.errors,onChange:oe,value:re,showStrength:!0}),X.length?(0,r.jsx)(a.A,{className:"col-12",children:X.map((function(e,t){return(0,r.jsx)(p.A,{className:"text-red small",component:"span",children:e},"non-field-".concat(t))}))}):null,(0,r.jsx)(a.A,{className:"d-flex align-items-center justify-content-between",children:i.terms.show?(0,r.jsxs)(a.A,{sx:{width:"100%",mt:1.5},children:[(0,r.jsx)(x.A,{sx:{m:0,alignItems:"flex-start","& .MuiCheckbox-root":{p:.5,mt:0},"& .MuiFormControlLabel-asterisk":{display:"none"},"& .MuiFormControlLabel-label":{mt:0,lineHeight:1.2}},control:(0,r.jsx)(A.A,{size:"small",checked:L,onChange:function(e){G(e.target.checked),e.target.checked&&Y("")}}),label:(0,r.jsxs)(p.A,{component:"span",variant:"body2",sx:{fontSize:"14px",mt:0},children:[d.termsPrefix," ",(0,r.jsx)(S.A,{href:i.terms.termsUrl,target:"_blank",rel:"noreferrer",sx:{fontSize:"inherit",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:d.termsText})," ","and"," ",(0,r.jsx)(S.A,{href:i.terms.privacyUrl,target:"_blank",rel:"noreferrer",sx:{fontSize:"inherit",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:d.privacyText})]})}),H?(0,r.jsx)(g.A,{error:!0,sx:{ml:.5},children:H}):null]}):null}),(0,r.jsx)(a.A,{className:"d-flex justify-content-center",children:(0,r.jsx)(v.A,{id:"createAccountBtn",type:"submit",fullWidth:!0,variant:"contained",color:"primary",disableElevation:!0,disableRipple:!0,sx:{mt:3,py:1.5,textTransform:"none",color:"#fff",backgroundColor:c.palette.primary.main,borderColor:c.palette.primary.main,"&:hover":{backgroundColor:c.palette.primary.main,borderColor:c.palette.primary.main}},disabled:!(0,j.v)(re)||W,children:W?d.creatingAccount:d.createAccount})})]})]}),(0,r.jsxs)(a.A,{className:"px-5 my-3 d-flex justify-content-between",children:[le?(0,r.jsx)(S.A,{className:"small",component:h.N_,to:le,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:d.forgotPassword}):(0,r.jsx)(S.A,{className:"small",href:i.passwordResetUrl,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:d.forgotPassword}),ce?(0,r.jsx)(S.A,{className:"small",component:h.N_,to:ce,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:d.logIn}):(0,r.jsx)(S.A,{className:"small",href:i.loginUrl,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:d.logIn})]}),(0,r.jsx)(a.A,{className:"px-5",children:se?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",my:2},children:[(0,r.jsx)(_.A,{sx:{flexGrow:1}}),(0,r.jsx)(p.A,{sx:{px:1,fontSize:"12px",color:"#666"},children:d.or}),(0,r.jsx)(_.A,{sx:{flexGrow:1}})]}),(0,r.jsx)(R.A,{href:i.googleLoginUrl,label:d.signInGoogle})]}):null})]})})})})})]}),(0,r.jsx)(y.A,{footer:i.footer,show:i.footerPlacement})]})},k=function(){var e=(0,i.I)({queryKey:["AUTH_SIGNUP_CONFIG"],queryFn:u.bX}),t=e.data,n=e.isLoading,o=e.isError,f=e.error;return(0,r.jsxs)(d.W,{children:[(0,r.jsx)(c.M,{loadRewardful:!0,recaptchaSiteKey:(null==t?void 0:t.showRecaptcha)?t.recaptchaSiteKey:void 0}),n?(0,r.jsx)(l.A,{fieldCount:2,showTerms:!0}):o||!t?(0,r.jsx)(a.A,{sx:{maxWidth:640,mx:"auto",py:8,px:3},children:(0,r.jsx)(s.A,{severity:"error",children:f instanceof Error?f.message:"Failed to load signup configuration."})}):(0,r.jsx)(E,{config:t})]})}},37555:function(e,t,n){n.d(t,{Dk:function(){return u},UR:function(){return c},XJ:function(){return l}});
1var r=n(74305),o="stammer-auth-email",i="theme",a="themeColor",s="sb|sidebar-toggle";function c(e){if("undefined"!=typeof window){var t=e.trim().toLowerCase();t&&window.sessionStorage.setItem(o,t)}}function l(){return"undefined"==typeof window?"":window.sessionStorage.getItem(o)||""}function u(){"undefined"!=typeof window&&((0,r.g$)(i,"light"),(0,r.g$)(a,"default"),(0,r.qu)(s),window.dispatchEvent(new CustomEvent("stammer-theme-change",{detail:{themeMode:"light"}})))}},88152:function(e,t,n){n.d(t,{b:function(){return r}});var r=function(){function e(){}return e.prototype._trackEvent=function(e,t){if("undefined"!=typeof window&&"function"==typeof window.fbq)try{window.fbq("track",e,t),console.log("Facebook Pixel tracking event:",e,t)}catch(e){console.error("â Facebook Pixel tracking error:",e)}else console.warn("â ï¸ Facebook Pixel (fbq) not available")},e.prototype.registrationComplete=function(){this._trackEvent("CompleteRegistration")},e.prototype.initiateCheckout=function(){this._trackEvent("InitiateCheckout")},e.prototype.purchaseComplete=function(e,t,n){void 0===t&&(t="USD"),void 0===n&&(n=1200),this._trackEvent("Subscribe",{value:e,currency:t,predicted_ltv:n})},e}()}}]);
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.