1"use strict";(self.webpackChunkf1000_react=self.webpackChunkf1000_react||[]).push([[36],{5417:function(e,t,n){n.r(t),n.d(t,{default:function(){return Qe}});var a=n(87462),r=n(70885),o=n(67294),l=n(5977),i=n(31296),c=n(70378),s=n(89217),u=n(19701),d=n(33592),m=n(43872),g=n(19471),f=n(39704),p=n(12556),h=n(53207),v=n(16730),E=n(97313),y=n(77595),b=n(61547),Z=n(36428),C=n(1187),k=n(95758),T=n(34063),P=n(92046),N=n(45930);const Q=function(e,t){switch(e){case"username":return t?(0,P.v)(t)?void 0:(0,N.Q)("email_invalid_message"):"".concat((0,N.Q)("email-address")," ").concat((0,N.Q)("cannot-be-blank"));case"password":if(t)return;return"".concat((0,N.Q)("password")," ").concat((0,N.Q)("cannot-be-blank"));default:return}};var w=n(88648),x=n(41120),I=n(87623);const S=(0,x.Z)((function(e){return(0,I.Z)({forgotPasswordLink:{cursor:"pointer"},thirdPartyGrid:{textAlign:"center"},thirdPartyHeading:{marginTop:e.spacing(2)},termsAndConditionsContainer:{marginBottom:e.spacing(4)},termsAndConditionsLink:{fontWeight:e.typography.fontWeightBold}})}),{name:"signInFormStyles"}),A=(0,x.Z)((function(e){return(0,I.Z)({signInButton:function(t){return{border:"2px solid",padding:e.spacing(.5),margin:e.spacing(1,"auto"),width:t.hasEduGainOption?"320px":"238px",fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightBold,lineHeight:e.typography.pxToRem(40),display:"block",cursor:"pointer","&--withImage":{background:"url(".concat(t.backgroundImageUrl,") ").concat(e.spacing(.75),"px center no-repeat content-box")},"&--isImage":{background:"url(".concat(t.backgroundImageUrl,") center no-repeat"),backgroundSize:"cover"},"&--facebook":{width:"236px",height:"40px",border:0},"&--google":{width:"238px",height:"43px",border:0}}},label:{display:"inline-block",marginLeft:e.spacing(4)}})}),{name:"signInButtonStyles"}),F=(0,x.Z)((function(e){return(0,I.Z)({box:{marginBottom:e.spacing(3)}})}),{name:"signInStyles"});var O=n(27361),R=n.n(O),V=n(93198),L=function(e){let t=e.showForgotPasswordForm;const n=(0,f.I0)(),a=(0,l.TH)(),c=(0,l.k6)(),s=(0,p.useLastLocation)(),u=(0,o.useState)(null),d=(0,r.Z)(u,2),m=d[0],g=d[1],P=(0,f.v9)(v.bV),x=(0,f.v9)(v.l2),I=(0,f.v9)(h.c7),A=(0,f.v9)(h.zr);(0,o.useEffect)((function(){if(!I)return;const e=(0,i.parse)(a.search);if(e.originalPath){let t=e.originalPath;"/register"===t&&(t="/"),e.channel&&(t+="&channel=".concat(e.channel)),e.pageNumber&&(t+="&pageNumber=".concat(e.pageNumber)),window.location.href=t}if("true"===R()(null==a?void 0:a.state,"scrollToAddComment"))n((0,V.kx)(!0)),c.goBack();else{let e=(null==s?void 0:s.pathname)||"/";"/register"===e&&(e="/"),g({pathName:e,state:a.state,search:null==s?void 0:s.search})}}),[s,c,I,a,n]);const F=(0,o.useCallback)((function(e){n((0,E.DN)(e))}),[n]);(0,o.useEffect)((function(){A&&!I&&F({username:A})}),[A,I,F]);const O=(0,w.Z)(F,(function(e){n((0,E.NU)(e))}),(function(){n((0,E.Tk)())}),Q,P,x,{requiredFieldNames:["username","password"]}),L=O.setErrors,B=O.onValueChange,D=O.onCustomValueChange,G=O.onTrueFalseToggle,j=O.submitButtonDisabled,W=O.onSubmit;(0,o.useEffect)((function(){const e=c.location.state;null!=e&&e.toggleContentAlerts&&D("receiveTocAlerts","on"),null!=e&&e.email&&D("username",e.email)}),[c,D]);const _=S();return m?o.createElement(l.l_,{to:{pathname:m.pathName,state:m.state,search:m.search},push:!0}):o.createElement(o.Fragment,null,o.createElement(b.Z,{fieldProps:{name:"username",label:(0,N.Q)("email-address"),value:null==P?void 0:P.username,type:"email",required:!0,fullWidth:!0},onValueChange:B,setFormError:L,errorMessage:null==x?void 0:x.username}),o.createElement(b.Z,{fieldProps:{name:"password",label:(0,N.Q)("password"),value:null==P?void 0:P.password,type:"password",required:!0,fullWidth:!0},onValueChange:B,setFormError:L,errorMessage:null==x?void 0:x.password}),o.createElement(k.Z,null,o.createElement(C.Z,{className:_.forgotPasswordLink,onClick:t},(0,N.Q)("forgotten-your-password"))),o.createElement(y.Z,{display:"flex",justifyContent:"space-between",width:"100%"},o.createElement(Z.Z,{label:(0,N.Q)("remember-me"),checkbox:{fieldProps:{name:"remember",checked:null==P?void 0:P.remember},onValueChange:G,setFormError:L,errorMessage:null==x?void 0:x.remember}}),o.createElement(T.Z,{variant:"contained",color:"primary",disabled:j,onClick:W},(0,N.Q)("sign-in"))))},B=n(18334);const D=function(e,t){if("email"===e)return t?(0,P.v)(t)?void 0:(0,N.Q)("email_invalid_message"):"".concat((0,N.Q)("email-address")," ").concat((0,N.Q)("cannot-be-blank"))};var G=n(11791),j=n(96019).Z,W=n(66728),_=function(e){let t=e.showSignInForm;const n=(0,f.I0)(),a=(0,f.v9)(B.jX),r=(0,f.v9)(v.hg),l=(0,f.v9)(v.Dw),i=(0,w.Z)((function(e){n((0,E.Ti)(e))}),(function(e){n((0,E.N$)(e))}),(function(){n((0,E.zd)())}),D,r,l,{requiredFieldNames:["email"]}),c=i.setErrors,s=i.onValueChange,u=i.submitButtonDisabled,d=i.onSubmit,m=F();return o.createElement(G.Z,null,o.createElement(j,null,(0,W.Z)((0,N.Q)("forgotten-password-instructions"))),o.createElement(b.Z,{fieldProps:{id:"email",name:"email",label:(0,N.Q)("email-address"),value:null==r?void 0:r.email,type:"email",required:!0,fullWidth:!0},onValueChange:s,setFormError:c,errorMessage:null==l?void 0:l.email}),o.createElement(y.Z,{display:"flex",justifyContent:"space-between",width:"100%",className:m.box},o.createElement(T.Z,{variant:"outlined",color:"primary",onClick:t}
1,(0,N.Q)("cancel")),o.createElement(T.Z,{variant:"contained",color:"primary",disabled:u,onClick:d},(0,N.Q)("reset-password"))),o.createElement(k.Z,null,o.createElement(C.Z,{href:"mailto:".concat(a)},(0,N.Q)("email-us"))," ",(0,N.Q)("for-further-assistance")))},M=function(){const e=(0,o.useState)("signIn"),t=(0,r.Z)(e,2),n=t[0],a=t[1];return"forgot"===n?o.createElement(_,{showSignInForm:function(){return a("signIn")}}):o.createElement(L,{showForgotPasswordForm:function(){return a("forgot")}})},q=n(73727),z=n(94184),H=n.n(z);var U=function(e){let t=e.option,n=e.hasEduGainOption;const a=(0,l.TH)(),r=(0,p.useLastLocation)(),c=A({backgroundImageUrl:(null==t?void 0:t.backgroundImage)||"none",hasEduGainOption:n}),s={title:t.buttonIsImage?t.label:void 0,color:"primary",className:H()(c.signInButton,{["".concat(c.signInButton,"--isImage")]:t.backgroundImage&&t.buttonIsImage,["".concat(c.signInButton,"--withImage")]:t.backgroundImage&&!t.buttonIsImage,["".concat(c.signInButton,"--facebook")]:"FACEBOOK"===t.system,["".concat(c.signInButton,"--google")]:"GOOGLE"===t.system}),href:"REDIRECT"===t.authType&&"GET"===t.httpMethod?t.path:void 0,onClick:"OAUTH_PROXIED"===t.authType?function(e){e.preventDefault();const n=(0,i.parse)(a.search).originalPath,o=document.createElement("form");o.method=t.httpMethod,o.action=t.path;const l=document.createElement("input");l.type="hidden",l.name="system",l.value=t.system,o.appendChild(l);const c=document.createElement("input");c.type="hidden",c.name="target",c.value=n||(null==r?void 0:r.pathname)||"/",o.appendChild(c),document.body.appendChild(o),o.submit()}:void 0};return o.createElement(C.Z,s," ",!t.buttonIsImage&&o.createElement("span",{className:c.label},t.label))},K=n(69747),J=function(){const e=S(),t=(0,f.v9)(B.l5),n=(null==t?void 0:t.options)||[],a=n.some((function(e){return"EDUGAIN"===e.system})),r=(0,f.v9)(B.qi),l=(0,f.v9)(K.e);return o.createElement(o.Fragment,null,o.createElement(k.Z,{variant:"h4",component:"h4",className:e.thirdPartyHeading},(0,N.Q)("use-alternate-sign-in")),r&&o.createElement(k.Z,{variant:"body2",className:e.termsAndConditionsContainer},(0,N.Q)("proceed-agree",{platformDisplayName:r}),o.createElement("br",null),o.createElement(C.Z,{component:q.Link,target:"_blank",color:"primary",to:"ore"===l?"/about/legal/termsandconditions":"/legal/termsandconditions",className:e.termsAndConditionsLink},(0,N.Q)("general-terms-conditions"))),n.map((function(e){return o.createElement(U,{key:e.order,option:e,hasEduGainOption:a})})))};const X=(0,x.Z)((function(e){return(0,I.Z)({dividerContainer:{display:"flex",alignItems:"center",margin:"16px 20px 0",padding:"12px 0",[e.breakpoints.down("sm")]:{width:"78%",margin:e.spacing(5,2,3),textAlign:"center"}},dividerBorder:{width:"1px",position:"relative",height:"100%",background:"#ddd",[e.breakpoints.down("sm")]:{width:"100%",height:"1px"}},dividerContent:{width:"40px",height:"40px",lineHeight:"40px",borderRadius:"50%",textAlign:"center",backgroundColor:"#ddd",position:"absolute",top:"50%",marginTop:"-20px",marginLeft:"-20px",display:"inline-block",color:"#909090",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.body1.fontSize}})}));var $=function(e){let t=e.children;const n=X();return o.createElement("div",{className:n.dividerContainer},o.createElement("div",{className:n.dividerBorder},o.createElement("span",{className:n.dividerContent},t)))},Y=function(){const e=S();return o.createElement(o.Fragment,null,o.createElement(g.Z,{documentTitle:(0,N.Q)("login")}),o.createElement(c.Z,{container:!0,spacing:3},o.createElement(c.Z,{item:!0,xs:10,md:5},o.createElement(M,null)),o.createElement($,null,"OR"),o.createElement(c.Z,{item:!0,xs:10,md:6,className:e.thirdPartyGrid},o.createElement(J,null))))},ee=n(41609),te=n.n(ee),ne=n(81549),ae=n(4942),re=n(60576),oe=n(63957),le=n(18446),ie=n.n(le);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ce(Object(n),!0).forEach((function(t){(0,ae.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ue=function(e,t){switch(e){case"firstName":return t?void 0:"".concat((0,N.Q)("first-name")," ").concat((0,N.Q)("cannot-be-blank"));case"lastName":return t?void 0:"".concat((0,N.Q)("last-name")," ").concat((0,N.Q)("cannot-be-blank"));case"userInstitution":return t?void 0:"".concat((0,N.Q)("institution")," ").concat((0,N.Q)("cannot-be-blank"));case"countryCode":return t?void 0:"".concat((0,N.Q)("country")," ").concat((0,N.Q)("cannot-be-blank"));case"userEmail":return t?(0,P.v)(t)?void 0:(0,N.Q)("email_invalid_message"):"".concat((0,N.Q)("email")," ").concat((0,N.Q)("cannot-be-blank"));case"plainPassword":return t?t.length<8?"".concat((0,N.Q)("password")," ").concat((0,N.Q)("cannot-be-shorter-than",{minLength:"8"})):void 0:"".concat((0,N.Q)("password")," ").concat((0,N.Q)("cannot-be-blank"));case"acceptedTermsAndConditions":if(t)return;return(0,N.Q)("terms-and-conditions-error");default:return}};var de=n(21782),me=n(48986),ge=n(51443),fe=n(25298),pe=function(e){let t=e.textBeforeLink,n=e.linkText,a=e.textAfterLink,r=e.dialogType;const l=(0,f.I0)();return o.createElement(o.Fragment,null,t&&"".concat(t," "),o.createElement(C.Z,{href:"#",onClick:function(e){e.preventDefault(),l((0,V.vC)(r))}},n),a&&" ".concat(a))},he=n(28649),ve=n(15977),Ee=n(36286),ye=n(11900),be=n(29056),Ze=n(64185),Ce=n(90981);const ke=Ee.TS,Te=Ee.TS;var Pe=function(){const e=(0,f.I0)(),t=(0,l.k6)(),n=(0,o.useState)(!1),a=(0,r.Z)(n,2),s=a[0],u=a[1],d=(0,f.v9)(B._o),m=function(){const e=(0,f.v9)(v.zU),t=(0,f.v9)(v.E3),n=(0,f.v9)(B.qi),a=(0,f.v9)(B.jX),c=(0,f.v9)(B.Je),s=(0,f.v9)(v.MF),u=(0,l.TH)(),d=(0,p.useLastLocation)(),m=(0,i.parse)(u.search),g=(0,o.useState)(),h=(0,r.Z)(g,2),E=h[0],y=h[1],b=(0,o.useState)(),Z=(0,r.Z)(b,2),C=Z[0],k=Z[1];return(0,o.useEffect)((function(){if(!t&&!e&&te()(m))return;const n=null!=t&&t.institution?{key:t.ringgoldInstitutionId,label:null==t?void 0:t.institution}:void 0,a=se(se(se({},m),e),{},{userInstitution:n,department:null==t?void 0:t.department,place:null==t?void 0:t.place,state:null==t?void 0:t.state,countryCode:null==t?void 0:t.countryCode,receiveTocAlerts:!!(null!=e&&e.receiveTocAlerts||null!=m&&m.receiveTocAlerts)});ie()(E,a)||y(a)}),[e,m,E,t]),(0,o.useEffect)((function(){const e=(0,i.parse)(u.search);if(e.originalPath){let t=e.originalPath;return e.channel&&(t+="&channel=".concat(e.channel)),void k(t)}const t=null==u?void 0:u.state;if(null!=t&&t.toggleTracking){const e=t.trackContentId,n=t.trackContentType,a=(0,oe.C)(e,n);return void k(a)}if(null!=t&&t.toggleContentAlerts&&null!=t&&t.originalPath)return void k(t.originalPath);let n=(null==d?void 0:d.pathname)||"/";null!=t&&t.scrollToComments&&(n+="?scrollTo=comments"),k(n)}),[u,d]),(0,o.useEffect)((function(){null!=E&&E.userId&&(window.location.href="".concat(re.ZP.REGISTRATION.REDIRECT,"?userId=").concat(E.userId,"&receiveTocAlerts=").concat((null==E?void 0:E.receiveTocAlerts)||"false","&originalPath=").concat(C))}),[null==E?void 0:E.userId,null==E?void 0:E.receiveTocAlerts,u,C]),{values:E,platformName:n,infoEmail:a,reCaptchaPublicKey:c,errors:s}}(),h=m.values,P=m.platformName,Q=m.infoEmail,x=m.reCaptchaPublicKey,I=m.errors,S=(0,o.useCallback)((function(t){e((0,E.eW)(t))}),[e]),A=(0,w.Z)(S,(function(t){e((0,E.Rv)(t))}),(function(){R("genderPreferNotToSay",!(null!=h&&h.gender)),R("nationalityPreferNotToSay",te()(null==h?void 0:h.nationality)),R("ethnicityPreferNotToSay",!(null!=h&&h.ethnicity)),e((0,E.zQ)()),q()}),ue,h,I,{requiredFieldNames:["firstName","lastName","userInstitution","countryCode","userEmail","plainPassword","acceptedTermsAndConditions"],googleRecaptchaKeys:{dataKey:ke,errorKey:Te}}),F=A.setErrors,O=A.onValueChange,R=A.onCustomValueChange,V=A.onTrueFalseToggle,L=A.submitButtonDisabled,D=A.onSubmit;(0,o.useEffect)((function(){const e=t.location.state;if(null!=e&&e.toggleTracking){const t=e.trackContentId,n=e.trackContentType,a=(0,oe.C)(t,n);R("originalPath",a)}}),[t,R]),(0,o.useEffect)((function(){const e=t.location.state;null!=e&&e.toggleContentAlerts&&(R("receiveTocAlerts",!0),R("userEmail",e.email),R("originalPath",e.originalPath))}),[t,R]);const G=(0,Ee.ZP)(S,F,ke),j=G.shouldRecaptchaReset,_=G.onRecaptchaReset,M=G.onVerifyRecaptcha,q=G.resetRecaptcha;(0,o.useEffect)((function(){null!=h&&h.acceptedTermsAndConditions&&null!=I&&I.acceptedTermsAndConditions&&F({acceptedTermsAndConditions:void 0})}),[null==h?void 0:h.acceptedTermsAndConditions,I,F]);const z=(0,he.J)(),U=H()(z.box,{["".concat(z.box,"--alignRight")]:!d}),K=(0,o.useRef)(!1),J=(0,o.useRef)("");(0,o.useEffect)((function(){null!=h&&h.genderPreferNotToSay&&(R("gender",void 0),K.current&&(K.current=!1))}),[null==h?void 0:h.genderPreferNotToSay,R]),(0,o.useEffect)((function(){null!=h&&h.gender&&(R("genderPreferNotToSay",!1),K.current=(null==h?void 0:h.gender)===(0,N.Q)("other").toUpperCase())}),[null==h?void 0:h.gender,R]),(0,o.useEffect)((function(){null!=h&&h.ethnicityPreferNotToSay&&(J.current="",S({ethnicity:void 0}))}),[null==h?void 0:h.ethnicityPreferNotToSay,S]),(0,o.useEffect)((function(){null!=h&&h.ethnicity&&""===J.current&&(J.current=null==h?void 0:h.ethnicity,R("ethnicityPreferNotToSay",!1))}),[null==h?void 0:h.ethnicity,R]),(0,o.useEffect)((function(){null!=h&&h.nationalityPreferNotToSay&&R("nationality",void 0)}),[null==h?void 0:h.nationalityPreferNotToSay,R]),(0,o.useEffect)((function(){te()(null==h?void 0:h.nationality)||R("nationalityPreferNotToSay",!1)}),[null==h?void 0:h.nationality,R]);const X=function(){return o.createElement(o.Fragment,null,o.createElement(k.Z,null,o.createElement("b",null,(0,N.Q)("i-would-like-to-receive"),":")),o.createElement(Z.Z,{label:(0,N.Q)("platform-content-alerts",{platformName:P||""}),checkbox:{fieldProps:{name:"receiveTocAlerts",checked:null==h?void 0:h.receiveTocAlerts},onValueChange:V}}),o.createElement(de.Z,{className:z.divider}),o.createElement(k.Z,null,(0,W.Z)((0,N.Q)("privacy-notice"))),o.createElement(y.Z,null,o.createElement(Z.Z,{label:o.createElement(o.Fragment,null,"ore"===P?o.createElement(pe,{textBeforeLink:(0,N.Q)("i-accept-the"),linkText:(0,N.Q)("terms-and-conditions")||"",dialogType:ne.My.REGISTRATION_TERMS_AND_CON
1DITIONS}):o.createElement(y.Z,{component:"span"},(0,N.Q)("i-accept-the"),o.createElement(C.Z,{className:z.tncLink,href:(0,N.Q)("terms-and-conditions-link"),target:"_blank"},(0,N.Q)("terms-and-conditions")))),checkbox:{fieldProps:{name:"acceptedTermsAndConditions",checked:null==h?void 0:h.acceptedTermsAndConditions,required:!0},errorMessage:null==I?void 0:I.acceptedTermsAndConditions,onValueChange:V,errorWhenBlank:(0,N.Q)("terms-and-conditions-error"),setFormError:F}})),o.createElement(y.Z,{className:U},o.createElement(ve.Z,{reCaptchaPublicKey:x,shouldRecaptchaReset:j,error:null==I?void 0:I[Te],onVerifyRecaptcha:M,onRecaptchaReset:_})),o.createElement(y.Z,{className:U},o.createElement(T.Z,{variant:"contained",color:"primary",disabled:L,onClick:D},(0,N.Q)("register"))))};return o.createElement(o.Fragment,null,o.createElement(g.Z,{documentTitle:(0,N.Q)("register")}),o.createElement(c.Z,{container:!0,justifyContent:"center"},o.createElement(c.Z,{item:!0,xs:12,sm:5},Q&&o.createElement(k.Z,{"data-test-id":"contact-us-info"},(0,W.Z)((0,N.Q)("registration-help",{email:Q}))),o.createElement(ge.Z,{fieldProps:{name:"firstName",label:(0,N.Q)("first-name"),value:null==h?void 0:h.firstName,autoComplete:"given-name",required:!0,fullWidth:!0},onValueChange:O,setFormError:F,fieldError:null==I?void 0:I.firstName,dti:{field:"first-name",label:"first-name-label"}}),o.createElement(ge.Z,{fieldProps:{name:"lastName",label:(0,N.Q)("last-name"),value:null==h?void 0:h.lastName,autoComplete:"family-name",required:!0,fullWidth:!0},onValueChange:O,setFormError:F,fieldError:null==I?void 0:I.lastName,dti:{field:"last-name",label:"last-name-label"}}),o.createElement(de.Z,{className:z.divider}),o.createElement(fe.Z,{values:h,errors:I,setErrors:F,onCustomValueChange:R,onValueChange:O,onTrueFalseToggle:V}),o.createElement(de.Z,{className:z.divider}),o.createElement(b.Z,{fieldProps:{name:"userEmail",label:(0,N.Q)("email-address"),value:null==h?void 0:h.userEmail,type:"email",required:!0,fullWidth:!0,autoComplete:"email"},onValueChange:O,errorMessage:null==I?void 0:I.userEmail,setFormError:F,dti:{field:"user-email",label:"user-email-label"}}),o.createElement(b.Z,{fieldProps:{name:"plainPassword",label:(0,N.Q)("password"),value:null==h?void 0:h.plainPassword,type:s?"text":"password",required:!0,fullWidth:!0,autoComplete:"new-password"},minLength:8,maxLength:64,onValueChange:O,errorMessage:null==I?void 0:I.plainPassword,setFormError:F,dti:{field:"password",label:"password-label"}}),o.createElement(Z.Z,{label:(0,N.Q)("show-typing"),checkbox:{fieldProps:{name:"showTyping",checked:s},onValueChange:function(e){u(e.target.checked)}}})),o.createElement(me.Z,{xsDown:!0},o.createElement(c.Z,{item:!0,sm:2},o.createElement(de.Z,{orientation:"vertical",className:z.verticalDivider}))),d?o.createElement(o.Fragment,null,o.createElement(c.Z,{item:!0,xs:12,sm:5},o.createElement(o.Fragment,null,d&&o.createElement(k.Z,{"data-test-id":"demographics-intro"},(0,N.Q)("demographics-intro")),o.createElement(ye.Z,{name:"gender",label:(0,N.Q)("gender")||"",value:null==h?void 0:h.gender,errorMessage:null==I?void 0:I.gender,setFormError:F,dti:"gender",onCustomValueChange:R}),K.current&&o.createElement(b.Z,{fieldProps:{id:"otherGender",name:"otherGender",label:(0,N.Q)("other-gender"),value:null==h?void 0:h.otherGender,type:"text",fullWidth:!0},maxLength:Ce.y3,onValueChange:O,setFormError:F,errorMessage:null==I?void 0:I.otherGender}),o.createElement(Z.Z,{label:(0,N.Q)("prefer-not-to-say"),checkbox:{fieldProps:{name:"preferNotToSayGender",checked:!(null==h||!h.genderPreferNotToSay)},onValueChange:function(e){R("genderPreferNotToSay",e.target.checked)}}}),o.createElement(de.Z,{className:z.divider}),o.createElement(be.Z,{fieldProps:{name:"ethnicity",label:(0,N.Q)("ethnicity"),value:null==h?void 0:h.ethnicity,autoComplete:"ethnicity",fullWidth:!0},onValueChange:O,setFormError:F,fieldError:null==I?void 0:I.ethnicity,dti:{field:"ethnicity",label:"ethnicity-label"}}),o.createElement(Z.Z,{label:(0,N.Q)("prefer-not-to-say"),checkbox:{fieldProps:{name:"preferNotToSayEthnicity",checked:!(null==h||!h.ethnicityPreferNotToSay)},onValueChange:function(e){R("ethnicityPreferNotToSay",e.target.checked)}}}),o.createElement(de.Z,{className:z.divider}),o.createElement(Ze.Z,{name:"nationality",label:(0,N.Q)("nationality")||"",value:null==h?void 0:h.nationality,errorMessage:null==I?void 0:I.nationality,setFormError:F,dti:"nationality",onCustomValueChange:R}),o.createElement(Z.Z,{label:(0,N.Q)("prefer-not-to-say"),checkbox:{fieldProps:{name:"preferNotToSayNationality",checked:!(null==h||!h.nationalityPreferNotToSay)},onValueChange:function(e){R("nationalityPreferNotToSay",e.target.checked)}}}))),o.createElement(c.Z,{item:!0,xs:12},o.createElement(de.Z,{className:z.divider}),X())):o.createElement(c.Z,{item:!0,xs:12,sm:5},X())))},Ne=n(4085),Qe=function(){const e=(0,l.k6)(),t=(0,l.TH)(),n=(0,i.parse)(t.search),g=(0,o.useState)(0),f=(0,r.Z)(g,2),p=f[0],h=f[1];(0,o.useEffect)((function(){h(t.pathname===re.ZP.LOGIN?0:1)}),[t]);const v=[Ne.x,{text:(0,N.Q)(0===p?"sign-in":"register")||""}],E="login-tab",y=function(e){return{id:"".concat(E,"-").concat(e),"aria-controls":"".concat(E,"-").concat(e)}};return o.createElement(m.Z,{breadCrumbItems:v},o.createElement(c.Z,{container:!0,justifyContent:"center"},o.createElement(c.Z,{item:!0,xs:12,md:8},o.createElement(s.Z,{value:p,indicatorColor:"primary",onChange:function(t,a){h(a);
1let r=0===a?re.ZP.LOGIN:re.ZP.REGISTER;n.originalPath&&(r+="?originalPath=".concat(n.originalPath)),e.push(r)},"aria-label":"".concat((0,N.Q)("sign-in")||""," / ").concat((0,N.Q)("register"))},o.createElement(d.Z,(0,a.Z)({label:(0,N.Q)("sign-in")},y(0))),o.createElement(d.Z,(0,a.Z)({label:(0,N.Q)("register")},y(1)))),o.createElement(u.Z,{value:p,index:0,tabPrefix:E},o.createElement(Y,null)),o.createElement(u.Z,{value:p,index:1,tabPrefix:E},o.createElement(Pe,null)))))}},28649:function(e,t,n){n.d(t,{J:function(){return o},f:function(){return l}});var a=n(41120),r=n(87623);const o=(0,a.Z)((function(e){return(0,r.Z)({divider:{marginBottom:e.spacing(3),marginTop:e.spacing(3)},verticalDivider:{margin:"auto"},box:{marginBottom:e.spacing(3),"&--alignRight":{textAlign:"right"}},tncLink:{marginLeft:"3px"}})}),{name:"registrationFormStyles"}),l=(0,a.Z)((function(){return(0,r.Z)({list:{listStyleType:"decimal","& li":{display:"list-item"}}})}),{name:"registrationTsAndCsStyles"})}}]);
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.