PageSourceSearch

https://www.thea.study/build/assets/RegisterPage-Chpo5cZC.js

js thea.study collected 2026-10-09 22:56:07 UTC 12,827 bytes, 1 lines download raw bytes

1import{j as n,i as $}from"./Design-BX1DIGtO.js";import{L as V,A as K}from"./LoginPageLayout-XOaWM7MD.js";import{m as k,C as J}from"./profile-C_2vByw-.js";import{I as O}from"./InputError-DxDwAwXM.js";import{I as A}from"./InputLabel-DlOeXu1z.js";import{P as X}from"./PrimaryButton-BXJ2T2VH.js";/* empty css                        */import{T as I}from"./TextInput-E5zAnZZa.js";import{m as b}from"./rsuite-imports-WUV5Ggoe.js";import{M as q,l as Y}from"./NewLoginFlowExperiment-C1X09wtb.js";import{S as Q}from"./SocialLoginButtons-BU2U6xl3.js";import{J as v,V as Z,a7 as ee,ab as te,a4 as re,E as ne}from"./index.esm-Dgf4_k7y.js";import{P as l}from"./index-DTlkDBNZ.js";import{h as ae}from"./hoist-non-react-statics.cjs-CqMfIzsL.js";import{G as ie}from"./GhostButton-Fv6wa6o4.js";import{A as W}from"./index-Bhu-d7vx.js";import"./KeyboardSkipNav-Bc_qQ602.js";import"./Tabs-D2DpQTl6.js";import"./Nav-Dv8yZaF5.js";import"./OverlayProvider-BgHM6nF5.js";import"./OverlayTrigger-C2wzaoLo.js";import"./get-Bm-snfSG.js";import"./getStyle-Dh4DUktB.js";import"./useUpdateEffect-EIj9NhhD.js";import"./usePortal-BusTUW1b.js";import"./Collapse-NwQbJZjG.js";import"./ReactChildren-rRi5ipmn.js";import"./IosBridge-BWq3ogb0.js";import"./MobileAppType-CN1JnlV6.js";import"./LegacyIosBridge-CjkmE7cS.js";import"./index-Chjiymov.js";var oe=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function P(){return P=Object.assign?Object.assign.bind():function(r){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(r[t]=i[t])}return r},P.apply(this,arguments)}function se(r,a){if(r==null)return{};var i={},t=Object.keys(r),e,c;for(c=0;c<t.length;c++)e=t[c],!(a.indexOf(e)>=0)&&(i[e]=r[e]);return i}function N(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function ce(r,a){r.prototype=Object.create(a.prototype),r.prototype.constructor=r,T(r,a)}function T(r,a){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(r,a)}var E=(function(r){ce(a,r);function a(){var t;return t=r.call(this)||this,t.handleExpired=t.handleExpired.bind(N(t)),t.handleErrored=t.handleErrored.bind(N(t)),t.handleChange=t.handleChange.bind(N(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(N(t)),t}var i=a.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&this._widgetId!==void 0?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&this._widgetId!==void 0)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise(function(c,g){e.executionResolve=c,e.executionReject=g,e.execute()})},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&this._widgetId!==void 0&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&this._widgetId===void 0){var c=document.createElement("div");this._widgetId=e(c,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(c)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props;e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated;var c=se(e,oe);return v.createElement("div",P({},c,{ref:this.handleRecaptchaRef}))},a})(v.Component);E.displayName="ReCAPTCHA";E.propTypes={sitekey:l.string.isRequired,onChange:l.func,grecaptcha:l.object,theme:l.oneOf(["dark","light"]),type:l.oneOf(["image","audio"]),tabindex:l.number,onExpired:l.func,onErrored:l.func,size:l.oneOf(["compact","normal","invisible"]),stoken:l.string,hl:l.string,badge:l.oneOf(["bottomright","bottomleft","inline"]),isolated:l.bool};
1E.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function U(){return U=Object.assign||function(r){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(r[t]=i[t])}return r},U.apply(this,arguments)}function de(r,a){if(r==null)return{};var i={},t=Object.keys(r),e,c;for(c=0;c<t.length;c++)e=t[c],!(a.indexOf(e)>=0)&&(i[e]=r[e]);return i}function pe(r,a){r.prototype=Object.create(a.prototype),r.prototype.constructor=r,r.__proto__=a}var f={},le=0;function he(r,a){return a=a||{},function(t){var e=t.displayName||t.name||"Component",c=(function(w){pe(L,w);function L(m,s){var o;return o=w.call(this,m,s)||this,o.state={},o.__scriptURL="",o}var x=L.prototype;return x.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+le++),this.__scriptLoaderID},x.setupScriptURL=function(){return this.__scriptURL=typeof r=="function"?r():r,this.__scriptURL},x.asyncScriptLoaderHandleLoad=function(s){var o=this;this.setState(s,function(){return o.props.asyncScriptOnLoad&&o.props.asyncScriptOnLoad(o.state)})},x.asyncScriptLoaderTriggerOnScriptLoaded=function(){var s=f[this.__scriptURL];if(!s||!s.loaded)throw new Error("Script is not loaded.");for(var o in s.observers)s.observers[o](s);delete window[a.callbackName]},x.componentDidMount=function(){var s=this,o=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),d=a,R=d.globalName,y=d.callbackName,_=d.scriptId;if(R&&typeof window[R]<"u"&&(f[o]={loaded:!0,observers:{}}),f[o]){var h=f[o];if(h&&(h.loaded||h.errored)){this.asyncScriptLoaderHandleLoad(h);return}h.observers[p]=function(u){return s.asyncScriptLoaderHandleLoad(u)};return}var H={};H[p]=function(u){return s.asyncScriptLoaderHandleLoad(u)},f[o]={loaded:!1,observers:H};var j=document.createElement("script");j.src=o,j.async=!0;for(var M in a.attributes)j.setAttribute(M,a.attributes[M]);_&&(j.id=_);var z=function(S){if(f[o]){var B=f[o],C=B.observers;for(var G in C)S(C[G])&&delete C[G]}};y&&typeof window<"u"&&(window[y]=function(){return s.asyncScriptLoaderTriggerOnScriptLoaded()}),j.onload=function(){var u=f[o];u&&(u.loaded=!0,z(function(S){return y?!1:(S(u),!0)}))},j.onerror=function(){var u=f[o];u&&(u.errored=!0,z(function(S){return S(u),!0}))},document.body.appendChild(j)},x.componentWillUnmount=function(){var s=this.__scriptURL;if(a.removeOnUnmount===!0)for(var o=document.getElementsByTagName("script"),p=0;p<o.length;p+=1)o[p].src.indexOf(s)>-1&&o[p].parentNode&&o[p].parentNode.removeChild(o[p]);var d=f[s];d&&(delete d.observers[this.asyncScriptLoaderGetScriptLoaderID()],a.removeOnUnmount===!0&&delete f[s])},x.render=function(){var s=a.globalName,o=this.props;o.asyncScriptOnLoad;var p=o.forwardedRef,d=de(o,["asyncScriptOnLoad","forwardedRef"]);return s&&typeof window<"u"&&(d[s]=typeof window[s]<"u"?window[s]:void 0),d.ref=p,v.createElement(t,d)},L})(v.Component),g=v.forwardRef(function(w,L){return v.createElement(c,U({},w,{forwardedRef:L}))});return g.displayName="AsyncScriptLoader("+e+")",g.propTypes={asyncScriptOnLoad:l.func},ae(g,t)}}var D="onloadcallback",ue="grecaptcha";function F(){return typeof window<"u"&&window.recaptchaOptions||{}}function me(){var r=F(),a=r.useRecaptchaNet?"recaptcha.net":"www.google.com";return r.enterprise?"https://"+a+"/recaptcha/enterprise.js?onload="+D+"&render=explicit":"https://"+a+"/recaptcha/api.js?onload="+D+"&render=explicit"}const fe=he(me,{callbackName:D,globalName:ue,attributes:F().nonce?{nonce:F().nonce}:{}})(E);function ge(r){const{isDarkMode:a}=v.useContext(Z),{data:i,setData:t,post:e,processing:c,errors:g}=ee("registrationForm",{name:r.name??"",email:r.email??"",password:"",password2:"",recaptcha:""}),[w,L]=v.useState(!1),[x,m]=v.useState(),[s,o]=v.useState(!1),p=y=>{y.preventDefault(),w?(Y("SignUpWithEmail"),e("/register"),$(window?.grecaptcha)||ne("recaptchaNotLoaded")):m(b.mustAcceptTermsOfService)},[d,R]=te(!0,"registrationShowSocial");return n.jsxs("div",{className:"registration-content",children:[n.jsxs("div",{className:"social-login",children:[!d&&n.jsxs(ie,{className:"try-another-sign-up-method",onClick:()=>{R(!d)},children:[n.jsx("i",{className:"fa-solid fa-arrow-left back-icon","aria-hidden":"true"}),n.jsx(n.Fragment,{children:b.tryAnotherMethod})]}),n.jsx(W.Collapse,{in:d,children:(y,_)=>n.jsx("div",{...y,ref:_,children:n.jsx(Q,{isSignUp:!0,onChange:()=>R(!d)})})})]}),r.oAuthErrors&&r.oAuthErrors.email&&n.jsx("div",{className:"form-group text-danger",style:{justifyContent:"center",marginTop:10},children:r.oAuthErrors.email}),n.jsx(W.Collapse,{in:!d,children:(y,_)=>n.jsx("div",{...y,ref:_,children:n.jsxs("form",{onSubmit:p,children:[n.jsxs("div",{className:"form-group",children:[n.jsx(A,{htmlFor:"name",value:k.name}),n.jsx(I,{id:"name",type:"text",name:"name",value:i.name,onChange:h=>t("name",h.target.value),required:!0,maxLength:255}),n.jsx(O,{message:g.name,className:"text-danger"})]}),n.jsxs("div",{className:"form-group",children:[n.jsx(A,{htmlFor:"email",value:k.email}),n.jsx(I,{id:"email",type:"email",name:"email",autoComplete:"email",value:i.email,onChange:h=>t("email",h.target.value),required:!0,maxLength:255}),n.jsx(O,{message:g.email,className:"text-danger"})]}),n.jsxs("div",{className:"form-group",children:[n.jsxs("div",{className:"password-label-container",children:[n.jsx(A,{htmlFor:"password",value:k.password}),n.jsx("span",{className:"text-xs secondary-text min-password-length",children:b.getMinimumPasswordLength({count:q})})]}),n.jsxs("div",{className:"password-input-container",style:{position:"relative"},children:[n.jsx(I,{id:"password",type:s?"text":"password",name:"password",autoComplete:"new-password",className:"password-input",value:i.password,onChange:h=>t("password",h.target.value),required:!0,minLength:q,maxLength:255}
1),n.jsx("button",{type:"button",className:"password-icon icon-button","aria-label":s?b.hidePassword:b.showPassword,onClick:()=>o(!s),children:n.jsx("i",{className:s?"fa-solid fa-eye":"fa-solid fa-eye-slash","aria-hidden":"true"})})]}),n.jsx(O,{message:g.password,className:"text-danger"})]}),n.jsxs("div",{className:"form-group captcha",children:[n.jsx(fe,{className:"recaptcha-element",theme:a?"dark":"light",sitekey:"6Le4eOgoAAAAAHiTFP7_OKfmmXs73YGD9UnFkhzH",onChange:h=>t("recaptcha",h??"")}),n.jsx(O,{message:g.recaptcha,className:"text-danger"})]}),n.jsxs("div",{className:"form-group terms-of-service-container",children:[n.jsxs("div",{className:"terms-of-service-row",children:[n.jsx(J,{id:"tos",name:"tos",checked:w,onChange:()=>{L(!w),m(void 0)}}),n.jsx("label",{style:{margin:0},htmlFor:"tos",className:"secondary-text text-sm",dangerouslySetInnerHTML:{__html:b.getTermsOfServiceAgreementHtml({termsOfServiceLinkStartTag:'<a href="/termsOfService" target="_blank" rel="noopener noreferrer">',termsOfServiceLinkEndTag:"</a>",privacyPolicyLinkStartTag:'<a href="/privacyPolicy" target="_blank" rel="noopener noreferrer">',privacyPolicyLinkEndTag:"</a>"})}})]}),n.jsx(O,{message:x,className:"text-danger"})]}),n.jsx("div",{className:"form-group",children:n.jsx(X,{className:"btn-block",disabled:c,onClick:()=>p,children:b.Register})})]})})}),n.jsxs("div",{className:"alternate-button-container",children:[n.jsx("div",{className:"dont-have",children:b.signInLabel}),n.jsx(re,{href:"/login",prefetch:["mount"],className:"base-button-component btn btn-rounded secondary-button-component alternate-button",children:b.signIn})]})]})}function ve(r){return n.jsx(ge,{name:r.name,email:r.email,tokenError:r.tokenError,oAuthErrors:r.oAuthErrors})}ve.layout=r=>n.jsx(V,{needsTabs:!0,activeTab:K.Register,children:r});export{ve as default};

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.