PageSourceSearch

https://culturenow.org/_next/static/chunks/pages/auth/signup-fb1ff53ce89a5d32.js

js culturenow.org collected 2026-10-02 07:42:14 UTC 24,949 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5613],{90612:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signup",function(){return n(92477)}])},1998:function(e,t,n){"use strict";n.d(t,{K8:function(){return r}});var r={EXPLORER:"EXPLORER",CURATOR:"CURATOR",PUBLISHER:"PUBLISHER",EDUCATION:"EDUCATION"}},60684:function(e,t,n){"use strict";n.r(t);var r=n(85893),a=n(67294),s=n(24222),i=n(41664),o=n.n(i);t.default=function(e){var t=e.children,n=e.heading,i=e.logo,c=void 0===i||i,d=e.background,l=void 0===d||d,u=e.close,p=void 0!==u&&u,h=e.userIcon,f=void 0!==h&&h,m=e.parentUserCollection;return(0,a.useEffect)((function(){var e=document.createElement("script");return e.async=!0,document.head.appendChild(e),function(){document.head.removeChild(e)}}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"w-100 ".concat(l?"bg-image":"bg-light"," d-flex flex-column justify-content-center align-items-center"),style:{backgroundSize:"cover",backgroundPosition:"center",backgroundAttachment:"fixed",minHeight:"calc(100vh - 54px)"},children:(0,r.jsx)("div",{className:"w-100 h-100 ".concat(l?"bg-light-opacity":""," d-flex flex-column justify-content-center align-items-center"),children:(0,r.jsxs)("div",{className:"container d-flex flex-column justify-content-center align-items-center",children:[c&&(0,r.jsx)("div",{className:"w-50 d-none d-sm-block",children:(0,r.jsxs)("div",{className:"text-red mb-5 text-center",children:[(0,r.jsx)("h5",{children:"Welcome to the"}),(null===m||void 0===m?void 0:m.name)?(0,r.jsx)("h3",{children:(0,r.jsx)("b",{children:null===m||void 0===m?void 0:m.name})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{children:(0,r.jsx)("b",{children:"MUSEUM WITHOUT WALLS"})}),(0,r.jsx)("h5",{children:"Your guide to the world outside"})]})]})}),(0,r.jsxs)("div",{className:"card w-100 h-100 w-md-75",children:[(0,r.jsxs)("div",{className:"card-header fw-bold d-flex justify-content-between align-items-center",children:[(0,r.jsxs)("div",{children:[f&&(0,r.jsx)(s.Z,{src:"/icon/Symbols_Login.svg",alt:"series",height:"24px",className:"text-start me-2"}),n]}),p&&(0,r.jsx)(o(),{href:"/",className:"text-end border-0 m-0 text-decoration-none text-end",children:"X"})]}),(0,r.jsx)("div",{className:"card-body",children:t})]})]})})})})}},92477:function(e,t,n){"use strict";n.r(t);var r=n(34051),a=n.n(r),s=n(85893),i=n(41664),o=n.n(i),c=n(11163),d=n(33299),l=n(67294),u=n(34853),p=n(41248),h=n(60684),f=n(34109),m=n(64199),x=n(7723),v=n(1998);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t,n,r,a,s,i){try{var o=e[s](i),c=o.value}catch(d){return void n(d)}o.done?t(c):Promise.resolve(c).then(r,a)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var s=e.apply(t,n);function i(e){b(s,r,a,i,o,"next",e)}function o(e){b(s,r,a,i,o,"throw",e)}i(void 0)}))}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);i=!0);}catch(c){o=!0,a=c}finally{try{i||null==n.return||n.return()}finally{if(o)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.default=function(){var e,t=(0,c.useRouter)(),n=(0,p.I0)(),r=t.query,i=r.type,g=r.message,b=r.invite_id,N=r.main_type;b&&(i="sub_1",N="explorer");var S=(0,l.useState)({}),E=S[0],k=S[1],C=(0,l.useState)({first_name:"",last_name:"",email:"",password:"",confirmPassword:"",isAgree:!1,is_subscribed:!1}),O=C[0],R=C[1],L=(0,l.useState)(!1),P=L[0],I=L[1],A=(0,l.useState)(!1),U=A[0],T=A[1],D=(0,l.useState)(!1),H=D[0],F=D[1];(0,l.useEffect)((function(){var e=window.location.origin;e.includes("vercel.app")||e.includes("localhost")?F(!0):F(!1)}),[]);var z=(0,p.v9)((function(e){return e.user})),M=(0,p.v9)((function(e){return e.subscriptions})),W=M&&!(null===M||void 0===M?void 0:M.error)&&null!==M.canceled_at,q=null===E||void 0===E||null===(e=E.parent_accounts)||void 0===e?void 0:e.user_collection[0];n({type:"parentUserCollection",payload:q}),(0,l.useEffect)((function(){var e;if((null===z||void 0===z||null===(e=z.email)||void 0===e?void 0:e.length)>0)if((null===z||void 0===z?void 0:z.type.toLowerCase())!==N||(null===z||void 0===z?void 0:z.subtype.toLowerCase())!==i||W){var n={userId:z.id,main_type:N,sub_type:i,screen:"signup",social:z.social_id};(0,x.d8)("userEmail",z.email,7),(0,x.d8)("main_type",N,7),(0,x.d8)("sub_type",i,7),(0,x.d8)("user_id",z.id,7),localStorage.setItem("checkoutSessionData",JSON.stringify(n)),T(!0),t.replace("/subscription-confirmation")}else t.push("/")}),[]),(0,l.useEffect)((function(){var e=function(){var e=y(a().mark((function e(){var t,n,r,s,i,o,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=17;break}return e.prev=1,e.next=4,(0,f.qQ)(b);case 4:(t=e.sent).data&&(n=t.data,r=n.email,s=n.first_name,i=n.last_name,o=n.id,c=n.parent_id,k(t.data),R(j({},O,{email:r,first_name:s,last_name:i,invite_id:o,parent_id:c}))),e.next=17;break;case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.response.status){e.next=15;break}return J({error:"Invalid invitation!"}),e.abrupt("return",new Error("INVALID_INVITE_ID"));case 15:return J({error:"Something went wrong!"}),e.abrupt("return",new Error("Something went wrong!"));case 17:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();e()}),[b]),(0,l.useEffect)((function(){"payment_failed"===g&&J({error:"Payment Failed"})}),[g]);var B=(0,l.useState)({first_name:"",last_name:"",email:"",password:"",confirmPassword:"",isAgree:!1,error:null}),X=B[0],J=B[1],V=function(e){var t,n=e.target,r=n.name,a=n.value,s="email"===r?a.toLowerCase():a;R(j({},O,w({},r,s))),J(j({},X,(w(t={},r,""),w(t,"error",null),t)))},G=function(){var e=j({},X);O.first_name||(e.first_name="Please enter your name"),O.last_name||(e.last_name="Please enter your name"),O.email?(0,x.vV)(O.email)||(e.email="Please enter a valid email ID"):e.email="Please enter your email address",O.password?(0,x.eW)(O.password)||(e.password="Password must be valid"):e.password="Please enter a password",O.confirmPassword?O.password!==O.confirmPassword&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your password",H||(e.recaptcha="Please verify recaptcha");var t=Object.values(e).every((function(e){return!e}));return J(e),t},Q=function(){var e=y(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I(!0),t.preventDefault(),!G()){e.next=27;break}return e.prev=3,O.id=(0,m.newTempId)(),O.login_type="NORMAL",O.social_id=null,O.deleted=!1,O.is_subscribed=O.is_subscribed,e.prev=9,e.next=12,K(O);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),"MAXIMUM_ACCOUNT_LIMIT_REACHED"===e.t0.message?J({error:"Your parent account reach the limit of invitation, Please contact admin."}):e.t0.response&&400===e.t0.response.status?J({email:"Email is already in use. Please use a different email."}):J({error:"Something went wrong!"});case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(3),J({error:"Something went wrong!"});case 22:return e.prev=22,I(!1),e.finish(22);case 25:e.next=28;break;case 27:I(!1);case 28:case"end":return e.stop()}}),e,null,[[3,19,22,25],[9,14]])})));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=y(a().mark((function e(r){var s,o,c,d;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,x.JR)(r,i,E,N);case 3:if(200!==(null===(s=e.sent)||void 0===s?void 0:s.status)||!(null===s||void 0===s?void 0:s.data)){e.
1next=34;break}if(!s.data.parent_id){e.next=18;break}return e.prev=6,e.next=9,(0,f.x4)({type:"email",email:O.email,password:O.password});case 9:return o=e.sent,n({type:"user",payload:o.data}),t.push("/"),e.abrupt("return",s);case 15:throw e.prev=15,e.t0=e.catch(6),new Error("Login failed after signup.");case 18:if(n({type:"signupUser",payload:s.data}),String(N).toUpperCase()!==v.K8.EXPLORER||String(i).toUpperCase()!==v.K8.FREE){e.next=22;break}return t.push("/"),e.abrupt("return",s);case 22:if(!s.data.id||!s.data.id.length||s.data.payment_status){e.next=32;break}return d={userId:s.data.id,userEmail:O.email,main_type:N,sub_type:i,screen:"signup",social:(null===(c=s.data)||void 0===c?void 0:c.social_id)||null},(0,x.d8)("userEmail",O.email,7),(0,x.d8)("main_type",N,7),(0,x.d8)("sub_type",i,7),(0,x.d8)("user_id",s.data.id,7),localStorage.setItem("checkoutSessionData",JSON.stringify(d)),t.push("/subscription-confirmation"),e.abrupt("return",s);case 32:return t.push("/"),e.abrupt("return",s);case 34:e.next=39;break;case 36:throw e.prev=36,e.t1=e.catch(0),e.t1;case 39:case"end":return e.stop()}}),e,null,[[0,36],[6,15]])})));return function(t){return e.apply(this,arguments)}}(),Y=(0,l.useState)(!1),Z=Y[0],$=Y[1],ee=(0,l.useState)(!1),te=ee[0],ne=ee[1],re=function(e){return e?"bg-light w-100 border border-danger py-1 fs-6":"bg-light w-100 border-0 py-1 fs-6"},ae=_(l.useState(!1),2),se=ae[0],ie=ae[1],oe=_(l.useState(!1),2),ce=oe[0],de=oe[1];(0,l.useEffect)((function(){var e=function(){de(window.innerWidth<768)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var le=function(){var e=y(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.length&&(F(!0),J(j({},X,{recaptcha:""}))),e.next=4,fetch("/api/verify-recaptcha",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})});case 4:return n=e.sent,e.next=7,n.json();case 7:e.sent.success||console.error("reCAPTCHA verification failed"),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.error("Error verifying reCAPTCHA",e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),ue=(function(){var e=y(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={main_type:N,sub_type:i,screen:"signup"},(0,x.d8)("userEmail",z.email,7),(0,x.d8)("main_type",N,7),(0,x.d8)("sub_type",i,7),z.id&&(0,x.d8)("user_id",z.id,7),localStorage.setItem("checkoutSessionData",JSON.stringify(t)),e.next=9,(0,d.signIn)("google",{callbackUrl:"/subscription-confirmation"});case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))}(),q?"Sign in for ".concat(null===q||void 0===q?void 0:q.name):"publisher"===N?"Create a Publisher account":"Create an Explorer account");return U?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(h.default,{heading:ue,userIcon:!0,parentUserCollection:q,children:(0,s.jsx)("div",{className:"card-body",children:(0,s.jsxs)("form",{onSubmit:Q,children:[(0,s.jsxs)("div",{className:"row mb-4 mb-md-5",children:[(0,s.jsxs)("div",{className:"col-12 col-md-5 border-mobile-none px-2 px-md-2 ms-md-4",children:[(0,s.jsxs)("div",{className:"mt-1 d-flex align-items-center",children:[(0,s.jsx)("label",{children:"Name *"}),(0,s.jsx)("span",{className:"text-danger text-end flex-grow-1 small",children:X.first_name||X.last_name})]}),(0,s.jsxs)("div",{className:"d-flex gap-2 flex-row",children:[(0,s.jsx)("input",{type:"text",placeholder:" First Name",name:"first_name",value:O.first_name,onChange:V,className:re(X.first_name)}),(0,s.jsx)("input",{type:"text",placeholder:" Last Name",name:"last_name",value:O.last_name,onChange:V,className:re(X.last_name)})]}),(0,s.jsxs)("div",{className:"mt-2 d-flex justify-content-between align-items-center",children:[(0,s.jsx)("label",{style:{minWidth:"100px"},children:"Email *"}),(0,s.jsx)("span",{className:"text-danger break-words text-end flex-grow-1 small",children:X.email})]}),(0,s.jsx)("input",{type:"text",name:"email",value:O.email,onChange:V,className:re(X.email),disabled:b})]}),(0,s.jsx)("div",{className:"col-1 d-none d-md-flex justify-content-center mt-4",children:(0,s.jsx)("div",{style:{height:"80px",borderRight:"1px solid #adb5bd"}})}),(0,s.jsxs)("div",{className:"col-12 col-md-5 border-mobile-none px-2 px-md-2",children:[(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"mt-1 d-flex align-items-center",children:[(0,s.jsx)("label",{children:"Password *"}),(0,s.jsx)("span",{className:"text-danger text-end flex-grow-1 small",children:X.password})]}),(0,s.jsxs)("div",{className:"input-group",children:[(0,s.jsx)("input",{onFocus:function(){return ie(!0)},onBlur:function(){return ie(!1)},type:Z?"text":"password",className:re(X.password),name:"password",value:O.password,onChange:V}),(0,s.jsx)("button",{type:"button",className:"toggle-eye",onClick:function(){return $((function(e){return!e}))},children:(0,s.jsx)("i",{className:Z?"fe fe-eye":"fe fe-eye-off"})})]})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsxs)("div",{className:"mt-2 d-flex align-items-center",children:[(0,s.jsx)("label",{children:"Confirm Password *"}),(0,s.jsx)("span",{className:"text-danger text-end flex-grow-1 small",children:X.confirmPassword})]}),(0,s.jsxs)("div",{className:"input-group",children:[(0,s.jsx)("input",{type:te?"text":"password",className:re(X.confirmPassword),name:"confirmPassword",value:O.confirmPassword,onChange:V}),(0,s.jsx)("button",{type:"button",className:"toggle-eye",onClick:function(){return ne((function(e){return!e}))},children:(0,s.jsx)("i",{className:te?"fe fe-eye":"fe fe-eye-off"})})]})]}),se&&(0,s.jsxs)("div",{className:"password-strength-container-3 px-2",style:{marginTop:ce?"10px":"-80px"},children:[(0,s.jsx)("span",{className:"password-strength-heading",children:"Password Strength:"}),(0,s.jsxs)("ul",{className:"list-unstyled password-strength",children:[(0,s.jsx)("li",{className:"",children:(0,s.jsxs)("span",{className:"eight-character ".concat((0,x.Nx)(O.password)?"valid":"text-danger"),children:[(0,s.jsx)("i",{className:"".concat((0,x.Nx)(O.password)?"fe fe-check me-1 ":"")}),"8 or more characters"]})}),(0,s.jsx)("li",{className:"",children:(0,s.jsxs)("span",{className:"low-upper-case ".concat((0,x.fS)(O.password)?"valid":"text-danger"),children:[(0,s.jsx)("i",{className:"".concat((0,x.fS)(O.password)?"fe fe-check me-1 ":""),"aria-hidden":"true"}),"Letters"]})}),(0,s.jsx)("li",{className:"",children:(0,s.jsxs)("span",{className:"one-number ".concat((0,x.zg)(O.password)?"valid":"text-danger"),children:[(0,s.jsx)("i",{className:"".concat((0,x.zg)(O.password)?"fe fe-check me-1":""),"aria-hidden":"true"}),"Numbers"]})}),(0,s.jsx)("li",{className:"",children:(0,s.jsxs)("span",{className:"one-special-char ".concat((0,x.B2)(O.password)?"valid":"text-danger"),children:[(0,s.jsx)("i",{className:"".concat((0,x.B2)(O.password)?"fe fe-check me-1":""),"aria-hidden":"true"}),"Special Characters"]})})]})]})]})]}),(0,s.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,s.jsx)("div",{className:"w-100 d-flex justify-content-center",children:(0,s.jsx)(u.Z,{sitekey:"6LdJV4wqAAAAABbhGdkuQTYQFka_lmNv6eMsgk6N",onChange:le,className:"mt-3"})}),(0,s.jsx)("span",{className:"text-danger text-end flex-grow-1 small text-center d-flex flex-row justify-content-center align-items-center mt-2",children:null===X||void 0===X?void 0:X.recaptcha})]}),(0,s.jsxs)("div",{className:"row mt-4 text-center d-flex flex-column gap-2 justify-content-center align-items-center",children:[!q&&(0,s.jsxs)("span",{className:"w-100 w-md-auto",children:["Have an account, ",(0,s.jsx)(o(),{href:"/auth",children:"Log in Here"})]}),(0,s.jsx)("button",{type:"submit",className:"bg-red px-3 py-2 text-white w-25 text-center select-button-normal",style:{minWidth:"200px"},disabled:P,children:P?"Loading...":q?"Sign In":"Create an Account"}),(0,s.jsx)("span",{className:"text-danger text-end flex-grow-1 small text-center w-100",children:X.error}),(0,s.jsxs)("span",{className:"w-100 w-md-auto",children:[(0,s.jsx)("a",{href:"",children:"Terms"})," ",(0,s.jsx)("a",{href:"",className:"ps-3",children:"Privacy"})," ",(0,s.jsx)("br",{}),(0,s.jsx)(o(),{href:"/email/help",children:"Questions?"})]})]}),q&&(0,s.jsx)("div",{className:"row mt-4 text-center d-flex gap-2 justify-content-center text-red",children:(0,s.jsxs)("p",{children:["Hosted by ",(0,s.jsx)("br",{})," ",(0,s.jsxs)("strong",{children:["culture",(0,s.jsx)("strong",{children:"NOW"})]})]})})]})})})}},34853:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(67294),a=n(45697),s=n.n(a),i=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
vendor: 4,105 bytes, line 1
1function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var l=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var s=a.prototype;return s.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},s.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},s.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},s.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},s.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},s.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},s.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},s.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},s.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},s.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},s.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{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(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},s.componentDidMount=function(){this.explicitRender()},s.componentDidUpdate=function(){this.explicitRender()},s.handleRecaptchaRef=function(e){this.captcha=e},s.render=function(){var e=this.props,t=(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,function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,i));return r.createElement("div",o({},t,{ref:this.handleRecaptchaRef}))},a}(r.Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:s().string.isRequired,onChange:s().func,grecaptcha:s().object,theme:s().oneOf(["dark","light"]),type:s().oneOf(["image","audio"]),tabindex:s().number,onExpired:s().func,onErrored:s().func,size:s().oneOf(["compact","normal","invisible"]),stoken:s().string,hl:s().string,badge:s().oneOf(["bottomright","bottomleft","inline"]),isolated:s().bool},l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u=n(8679),p=n.n(u);function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}var f={},m=0;var x="onloadcallback";function v(){return"undefined"!==typeof window&&window.recaptchaOptions||{}}var g,b,y=(g=function(){var e=v(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+x+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+x+"&render=explicit"},b=(b={callbackName:x,globalName:"grecaptcha",attributes:v().nonce?{nonce:v().nonce}:{}})||{}
1,function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,a;function s(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}a=t,(n=s).prototype=Object.create(a.prototype),n.prototype.constructor=n,n.__proto__=a;var i=s.prototype;return i.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+m++),this.__scriptLoaderID},i.setupScriptURL=function(){return this.__scriptURL="function"===typeof g?g():g,this.__scriptURL},i.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},i.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=f[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[b.callbackName]},i.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=b,a=r.globalName,s=r.callbackName,i=r.scriptId;if(a&&"undefined"!==typeof window[a]&&(f[t]={loaded:!0,observers:{}}),f[t]){var o=f[t];return o&&(o.loaded||o.errored)?void this.asyncScriptLoaderHandleLoad(o):void(o.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},f[t]={loaded:!1,observers:c};var d=document.createElement("script");for(var l in d.src=t,d.async=!0,b.attributes)d.setAttribute(l,b.attributes[l]);i&&(d.id=i);var u=function(e){if(f[t]){var n=f[t].observers;for(var r in n)e(n[r])&&delete n[r]}};s&&"undefined"!==typeof window&&(window[s]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=f[t];e&&(e.loaded=!0,u((function(t){return!s&&(t(e),!0)})))},d.onerror=function(){var e=f[t];e&&(e.errored=!0,u((function(t){return t(e),!0})))},document.body.appendChild(d)},i.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===b.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=f[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===b.removeOnUnmount&&delete f[e])},i.render=function(){var t=b.globalName,n=this.props,a=(n.asyncScriptOnLoad,n.forwardedRef),s=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!==typeof window&&(s[t]="undefined"!==typeof window[t]?window[t]:void 0),s.ref=a,(0,r.createElement)(e,s)},s}(r.Component),a=(0,r.forwardRef)((function(e,t){return(0,r.createElement)(n,h({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+t+")",a.propTypes={asyncScriptOnLoad:s().func},p()(a,e)})(l),w=y}},function(e){e.O(0,[9774,2888,179],(function(){return t=90612,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.