PageSourceSearch

https://nextjs.browseract.com/_next/static/chunks/65378-6ff7b5b1ed6aeb4f.js

js browseract.com collected 2026-10-02 17:43:23 UTC 22,481 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65378,77144],{11143:(e,t,r)=>{r.d(t,{Y:()=>f});var n=r(63487),a=r(36651),s=r(86539),l=r(40055),i=r(96539),o=r(92326),c=r(2176),d=r(46320),u=r(38948),m=r(56483),h=r(56752),p=r(62526);function f(e){let{showLabel:t=!1}=e,{message:r}=a.A.useApp(),{formResetPassword:f,formLogin:x,formRegister:g}=(0,l.useContext)(i.L9),[w,b]=(0,l.useState)(),[v,y]=(0,l.useState)(!1),[j,S]=(0,l.useState)(!1),{setFormType:A}=(0,m.i)(),E=s.A.useWatch("email",f),P=()=>{A(u.y.REGISTER),g.setFieldsValue({email:E}),f.resetFields()},k=async e=>{S(!0),(0,o.YOk)({body:{password:(0,p.S0)(e.password||"",p.VT),email:e.email,key:w,code:e.code},options:{unwrap:!1}}).then(t=>t.code===c.b.EMAIL_NOT_REGISTER?void(0,d.A)({form:f,email:e.email,onLinkRegister:P}):t.code in c.b?void r.error(c.x[t.code]):void(r.success("Reset password successfully"),x.setFieldsValue({email:e.email,password:e.password}),A(u.y.LOGIN),f.resetFields())).finally(()=>{S(!1)})};return(0,n.jsx)(i.ur,{layout:"vertical",showLabel:t,onFinish:k,name:"formResetPassword",form:f,childrenBefore:(0,n.jsx)(i._o,{showLabel:t}),childrenAfter:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.A.Item,{hidden:!!w,className:"!mb-0",children:!w&&(0,n.jsx)(i.zw,{captchaEmailType:i.VH.USER_RESET_PASSWORD,onChange:e=>{e&&b(e)}})}),(0,n.jsx)(i.H9,{hidden:!w,captchaEmailType:i.VH.LOGIN,codeLoading:v,onSendCode:async()=>{let e=await f.validateFields(["email"]);try{if(e.email){y(!0);let t=await (0,o.JYO)({body:{email:e.email,key:w},options:{unwrap:!1}});if(t.data&&"expiredTime"in t.data)return r.success("Sent successfully"),!0;t.code===c.b.USER_RECAPTCHA_INVALID&&(b(void 0),f.resetFields(["code"])),t.code in c.x&&r.error(c.x[t.code])}return!1}catch(e){return console.error("send code error: ",e),!1}finally{y(!1)}}}),(0,n.jsx)(s.A.Item,{hidden:!w,className:"!mb-0",children:(0,n.jsx)(h.S,{type:"primary",variant:"primary",htmlType:"submit",block:!0,loading:j,children:"Reset Password"})})]})})}},13606:(e,t,r)=>{r.d(t,{N:()=>a});var n=r(40055);function a(e){let{maxSeconds:t=59}=e,[r,a]=(0,n.useState)(-1);return(0,n.useEffect)(()=>{r>0&&setTimeout(()=>{a(e=>e-1)},1e3)},[r]),{notSent:-1===r,hasSent:0===r,sending:r>0,countDown:r,startCountdown:(0,n.useCallback)(()=>{a(t)},[t])}}},42629:(e,t,r)=>{r.d(t,{U:()=>p});
1var n=r(63487),a=r(86539),s=r(40055),l=r(86690),i=r(96539),o=r(46320),c=r(56483),d=r(38948),u=r(59017),m=r(56752);let h=a.A.Item;function p(e){let{showLabel:t=!1}=e,{formLogin:r,formResetPassword:p,formRegister:f}=(0,s.useContext)(i.L9),{setFormType:x}=(0,c.i)(),g=a.A.useWatch("email",r),[w,b]=(0,s.useState)(!1),v=()=>{x(d.y.REGISTER),f.setFieldsValue({email:g}),r.resetFields()},y=async e=>{b(!0),u.appUser.userLogin.emailPasswordLogin({email:e.email,password:e.password,handleEmailNeedRegister:e=>{(0,o.A)({form:r,email:e,onLinkRegister:v})}}).finally(()=>{b(!1)})};return(0,n.jsxs)(a.A,{...(0,i.xX)(),layout:"vertical",form:r,onFinish:y,name:"formLogin",children:[(0,n.jsx)(i._o,{showLabel:t}),(0,n.jsx)(h,{label:t?"Password":void 0,name:"password",rules:[{required:!0,message:"Password is required"}],children:(0,n.jsx)(l.cA,{placeholder:"Password",className:"text-sm leading-5.5 [&_.ant-input]:caret-black [&_.ant-input:autofill]:caret-black",autoComplete:"current-password"})}),(0,n.jsx)(h,{className:"!mt-10 !mb-2",children:(0,n.jsx)(m.S,{type:"primary",variant:"primary",htmlType:"submit",loading:w,block:!0,children:"Log In"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-1.5 text-sm leading-5.5 sm:flex-row sm:items-center sm:gap-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-65 mr-1",children:"Don't have an account?"}),(0,n.jsx)("button",{type:"button",className:"btn-link",onClick:v,children:"Sign up"})]}),(0,n.jsx)("button",{type:"button",className:"btn-link self-start sm:ml-auto sm:self-auto",onClick:()=>{x(d.y.RESET_PASSWORD),p.setFieldsValue({email:g}),r.resetFields()},children:"Forgot your password?"})]})]})}},46320:(e,t,r)=>{r.d(t,{A:()=>a,F:()=>s});var n=r(63487);function a(e){let{form:t,email:r,onLinkRegister:a}=e;t.setFields([{name:"email",value:r,errors:[(0,n.jsxs)("span",{children:["Your Email is not registered.",(0,n.jsx)("button",{type:"button",className:"btn-link text-100 ml-1",onClick:a,children:"Please register first"})]},"error")]}])}function s(e){let{form:t,email:r,onLinkLogin:a}=e;t.setFields([{name:"email",value:r,errors:[(0,n.jsxs)("span",{children:["This email has already been registered,",(0,n.jsx)("button",{type:"button",className:"btn-link text-100 ml-1",onClick:a,children:"please log in."})]},"error")]}])}},48372:(e,t,r)=>{r.d(t,{I:()=>o,m:()=>c});var n=r(52176),a=r(40055),s=r(59017),l=r(56483),i=r(70569);function o(){let e=(0,n.useSearchParams)(),[t,r]=(0,a.useState)(!1),[o,c]=(0,a.useState)(e.get("code")),d=e.get("state");return(0,a.useLayoutEffect)(()=>{if(o){let e=(0,i.s)(d);e&&l.i.getState().setTrackingInfo(e);let t=new URL(window.location.href);t.searchParams.delete("code"),t.searchParams.delete("state"),window.history.replaceState(null,"",t.pathname+t.search),c(null),r(!0),s.appUser.userLogin.githubLogin(o).finally(()=>{r(!1)})}},[o,d]),{loading:t}}function c(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.location.hash.substring(1);if(!e)return;let r=new URLSearchParams(e),n=r.get("access_token"),a=r.get("state");if(n){let e=(0,i.s)(a);e&&l.i.getState().setTrackingInfo(e);let{pathname:r,search:o}=window.location;window.history.replaceState(null,document.title,r+o),t(!0),s.appUser.userLogin.googleLogin(n).finally(()=>{t(!1)})}},[]),{loading:e}}},56752:(e,t,r)=>{r.d(t,{S:()=>c});var n=r(63487),a=r(2056),s=r(63074),l=r(18951),i=r(40055);let o=(0,l.F)("",{variants:{variant:{default:"",primary:"!bg-[#1A1B2B] !text-[rgba(29,222,116,
11)] hover:!bg-[#2B2C36] active:!bg-[#000000] text-shadow-[0px_0px_10px_#034A32] active:text-shadow-none hover:text-shadow-[0px_0px_10px_#23FFB5]","primary-dark":"!bg-[rgba(29,222,116,1)] !text-[rgba(26,27,40,1)] hover:!bg-green-500","icon-button":"!text-black/45 hover:!text-black/35 active:!text-black/60 !rounded-none !px-0 !size-fit hover:!border-transparent","outline-button":"primary-btn-hover","icon-button-bg":"[&_.ant-btn-icon]:flex flex items-center !text-black hover:!text-black/70 active:!text-black/88 justify-center rounded-lg hover:!bg-black/4 [&.svg]:fill-black hover:!border-transparent",warning:"!bg-[#FFDEA1] text-[#3D2002] hover:!text-[#3D2002] hover:!bg-[#FFD5A1] active:!bg-[#FFD4A1] !border-[#FFDEA1]"}},defaultVariants:{variant:"default"}}),c=i.forwardRef(function(e,t){let{variant:r,className:l,onClick:c,handleClickLoading:d,...u}=e,m=function(e){switch(e){case"default":default:return;case"icon-button":case"icon-button-bg":return"link"}}(r),h=function(e){switch(e){case"default":default:return{};case"icon-button":case"icon-button-bg":return{color:"default"}}}(r),[p,f]=i.useState(!1),x=c;return d&&(x=e=>{let t=null==c?void 0:c(e);"object"==typeof t&&t instanceof Promise&&(f(!0),t.finally(()=>{f(!1)}))}),(0,n.jsx)(s.Ay,{onClick:x,loading:p,ref:t,variant:m,className:(0,a.cn)(o({variant:r,className:l})),...u,...h})});c.displayName="AppButton"},63316:(e,t,r)=>{r.d(t,{X:()=>s,Y:()=>l});let n=null,a=null;function s(){return n||(n=Promise.all([r.e(67822),r.e(76135),r.e(60432),r.e(66507),r.e(98440),r.e(31055),r.e(75216),r.e(12873)]).then(r.bind(r,59017)).then(e=>(a=e.appUser,e.appUser)).catch(e=>{throw n=null,e})),n}function l(){return a}},70569:(e,t,r)=>{r.d(t,{s:()=>l,y:()=>s});var n=r(80559);function a(e){return"".concat("browseract:oauth-registration-attribution:").concat(e)}function s(e){let t=(0,n.A)();if(!e)return t;let r={expiresAt:Date.now()+6e5,trackingInfo:e};try{window.localStorage.setItem(a(t),JSON.stringify(r))}catch(e){}return t}function l(e){if(!e)return null;let t=a(e),r=null;try{r=window.localStorage.getItem(t),window.localStorage.removeItem(t)}catch(e){return null}if(!r)return null;try{var n;let e=JSON.parse(r);if("number"!=typeof e.expiresAt||e.expiresAt<=Date.now()||!((n=e.trackingInfo)&&"object"==typeof n&&"string"==typeof n.fromUrl&&"string"==typeof n.clickButton&&(void 0===n.ctaLocation||"string"==typeof n.ctaLocation)))return null;return e.trackingInfo}catch(e){return null}}},73089:(e,t,r)=>{r.d(t,{l:()=>f});var n=r(63487),a=r(96539),s=r(36651),l=r(86539),i=r(40055),o=r(92326),c=r(2176),d=r(56483),u=r(38948),m=r(59017),h=r(46320),p=r(56752);function f(e){let{showLabel:t=!1}=e,{message:r}=s.A.useApp(),{setFormType:f}=(0,d.i)(),{formRegister:x,formLogin:g}=(0,i.useContext)(a.L9),w=l.A.useWatch("email",x),[b,v]=(0,i.useState)(),[y,j]=(0,i.useState)(!1),[S,A]=(0,i.useState)(!1),E=()=>{f(u.y.LOGIN),x.resetFields(),g.setFieldsValue({email:w})},P=async e=>{let{code:t,email:r,password:n}=e;A(!0),m.appUser.userLogin.emailPasswordRegister({code:t,email:r,password:n,captchaKey:null!=b?b:"",handleEmailRepeatRegister:e=>{(0,h.F)({form:x,email:e,onLinkLogin:E})}}).finally(async()=>{A(!1)})};return(0,n.jsx)(a.ur,{layout:"vertical",showLabel:t,form:x,onFinish:P,name:"formRegister",childrenBefore:(0,n.jsx)(a._o,{showLabel:t}),childrenAfter:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.A.Item,{hidden:!!b,children:(0,n.jsx)("div",{className:"mb-[26px]",children:(0,n.jsx)(a.zw,{captchaEmailType:a.VH.REGISTER,onChange:e=>{e&&v(e)}})})}),(0,n.jsx)(a.H9,{showLabel:t,hidden:!b,captchaEmailType:a.VH.LOGIN,codeLoading:y,onSendCode:async()=>{let e=await x.validateFields(["email"]);try{if(e.email){j(!0);let t=await (0,o.JYO)({body:{email:e.email,key:b},options:{unwrap:!1}});if(t.data&&"expiredTime"in t.data)return r.success("Sent successfully"),!0;t.code===c.b.USER_RECAPTCHA_INVALID&&(v(void 0),x.resetFields(["code"])),t.code&&t.code in c.x&&r.error(c.x[t.code])}return!1}catch(e){return console.error("send code error: ",e),!1}finally{j(!1)}}}),(0,n.jsx)(l.A.Item,{hidden:!b,children:(0,n.jsx)(p.S,{type:"primary",variant:"primary",htmlType:"submit",block:!0,loading:S,children:"Complete Registration"})}),(0,n.jsxs)("div",{className:"pt-2 text-center",children:[(0,n.jsx)("span",{className:"text-65 mr-1",children:"Already have an account?"}),(0,n.jsx)("button",{type:"button",className:"btn-link",onClick:E,children:"Log in"})]})]})})}},77144:(e,t,r)=>{r.r(t),r.d(t,{GoogleOneTap:()=>f});var n=r(63487),a=r(40055),s=r(63316),l=r(56483),i=r(13789),o=r(54450);let c="https://accounts.google.com/gsi/client",d=null,u=null,m=null;function h(){var e,t;return null==(t=window.google)||null==(e=t.accounts)?void 0:e.id}function p(e){let{clientId:t}=e,r=(0,l.i)(e=>e.token),n=(0,l.i)(e=>e._hasHydrated),[p,f]=(0,a.useState)(()=>(0,i.om)()),x=(0,a.useRef)(!1);return(0,a.useEffect)(()=>
1{if(p)return;let e=window.setInterval(()=>{let t=(0,i.om)();t&&(f(t),window.clearInterval(e))},100);return()=>{window.clearInterval(e)}},[p]),(0,a.useEffect)(()=>{if(!(!n||!p||r||(0,i.U5)())){let e=Symbol("google-one-tap-prompt");return d={onSuccess:e=>{let{credential:t}=e;t&&!x.current&&(x.current=!0,(0,s.X)().then(e=>e.userLogin.googleJwtLogin(t,p,{fromUrl:window.location.pathname,clickButton:"Google One Tap Button",ctaLocation:"google_one_tap"})).then(()=>{window.location.href=o.iP}).catch(()=>void 0).finally(()=>{x.current=!1}))},owner:e},(function(){let e=h();return e?Promise.resolve(e):m||(m=new Promise((e,t)=>{let r=()=>{let r=h();r?e(r):t(Error("Google Identity Services failed to initialize"))},n=()=>t(Error("Google Identity Services failed to load")),a=document.querySelector('script[src="'.concat(c,'"]'));if(a){a.addEventListener("load",r,{once:!0}),a.addEventListener("error",n,{once:!0});return}let s=document.createElement("script");s.src=c,s.async=!0,s.defer=!0,s.addEventListener("load",r,{once:!0}),s.addEventListener("error",n,{once:!0}),document.body.appendChild(s)}).catch(e=>{throw m=null,e}))})().then(r=>{(null==d?void 0:d.owner)===e&&(!function(e,t){if(u){if(u!==t)throw Error("Google Identity Services client ID changed at runtime");return}e.initialize({auto_select:!1,callback:e=>null==d?void 0:d.onSuccess(e),client_id:t,use_fedcm_for_prompt:!0}),u=t}(r,t),r.prompt())}).catch(()=>void 0),()=>{var t;(null==d?void 0:d.owner)===e&&(d=null,null==(t=h())||t.cancel())}}},[t,p,n,r]),null}function f(e){let{clientId:t}=e;return t?(0,n.jsx)(p,{clientId:t}):null}},86690:(e,t,r)=>{r.d(t,{fw:()=>a,cA:()=>i});var n=r(63487);function a(e){return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",version:"1.1",width:"1em",height:"1em",...e,children:[(0,n.jsx)("rect",{width:"16",height:"16",rx:"0"}),(0,n.jsx)("path",{d:"M13.376 6.838q.705-.577 1.067-1.274.057-.109.057-.231v-.002q0-.068-.019-.134-.018-.066-.054-.124-.036-.059-.085-.105-.05-.047-.111-.079-.109-.056-.231-.056h-.006q-.074 0-.144.023-.095.03-.171.094-.077.064-.123.152-.267.515-.814.963-.801.656-2.014 1.036Q9.452 7.5 8 7.5q-1.452 0-2.728-.4-1.213-.379-2.014-1.035-.546-.448-.814-.963-.046-.088-.123-.152-.076-.064-.17-.094-.074-.023-.151-.023h-.019q-.112.005-.212.057-.06.031-.11.078t-.086.106q-.036.058-.055.124-.018.066-.018.135v.001q0 .122.056.23.363.697 1.068 1.274.951.78 2.35 1.217Q6.394 8.5 8 8.5q1.605 0 3.027-.445 1.398-.437 2.349-1.217z",fill:"currentColor"}),(0,n.jsx)("path",{d:"m9.177 8.13.69 2.575q.026.096.087.175.06.08.146.129.116.067.25.067h.01q.06-.001.12-.017.096-.026.175-.087.079-.06.128-.146.067-.116.067-.25v-.01q0-.06-.017-.12l-.69-2.575q-.026-.096-.086-.175-.06-.08-.147-.129-.116-.067-.25-.067h-.009q-.061.001-.12.017-.096.026-.175.086-.08.06-.129.147-.067.116-.067.25v.009q.001.061.017.12zm4.806 1.227q.07.07.162.109.092.038.192.038t.191-.038q.092-.038.162-.109.07-.07.109-.162.038-.092.038-.191 0-.1-.038-.192-.038-.091-.109-.162l-1.885-1.885q-.07-.07-.162-.109-.092-.038-.192-.038t-.191.038q-.092.038-.162.109-.07.07-.109.162-.038.092-.038.191 0 .1.038.192.038.091.109.162l1.885 1.885zm-11.963 0 1.885-1.885q.07-.07.109-.162.038-.092.038-.192t-.038-.191q-.038-.092-.109-.162-.07-.07-.162-.109-.092-.038-.191-.038h-.024q-.094.005-.179.043-.085.038-.15.104L1.311 8.65q-.07.07-.108.162-.038.092-.038.192v.024q.005.093.043.178.038.085.103.151.07.07.163.109.092.038.191.038.1 0 .191-.038.092-.038.163-.109zM6.816 8.13q.017-.064.017-.13v-.008q-.002-.082-.029-.159-.027-.077-.077-.14-.05-.065-.118-.11-.068-.045-.147-.066Q6.4 7.5 6.332 7.5h-.008q-.081.001-.158.029-.077.027-.141.077-.064.05-.11.118-.044.068-.065.147l-.69 2.575q-.017.064-.017.13v.008q.001.082.028.159.027.076.077.14.05.065.119.11.067.045.146.066.064.017.13.017h.015q.126-.004.235-.067.086-.05.146-.129t.087-.175l.69-2.575z",fill:"currentColor"})]})}r(2056);var s=r(92180),l=r(51807);let i=e=>{let{...t}=e;return(0,n.jsx)(l.A.Password,{autoComplete:"current-password",iconRender:e=>e?(0,n.jsx)(s.A,{}):(0,n.jsx)("button",{type:"button",children:(0,n.jsx)(a,{className:"text-45 hover:text-88 cursor-pointer"})}),...t})}},96539:(e,t,r)=>{r.d(t,{EP:()=>l,VH:()=>F,DZ:()=>v,L9:()=>W,H9:()=>k,_o:()=>L,ur:()=>C,zw:()=>O,Bg:()=>V,iw:()=>H,y7:()=>P,xX:()=>_,BE:()=>R});var n=r(63487),a=r(9523),s=r(77040);function l(e){let{onClick:t,className:r}=e;return(0,n.jsxs)("button",{className:(0,a.cn)("btn text-65 mb-10 flex cursor-pointer items-center gap-1 text-sm/5.5",r),onClick:t,type:"button",children:[(0,n.jsx)(s.A,{}),(0,n.jsx)("span",{children:"Back to Login"})]})}var i=r(35867);let o={src:"https://nextjs.browseract.com/_next/static/media/github.0b2dd9e4.svg",height:20,width:20,blurWidth:0,blurHeight:0};var c=r(88127),d=r(24613);function u(e){let{className:t,...r}=e;return(0,n.jsx)("button",{...r,type:"button",className:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,d.QP)((0,c.A)(t))}("text-88 flex min-h-10 w-full cursor-pointer items-center justify-center gap-2 rounded-lg border border-[#D9D9D9] bg-white text-base hover:opacity-80 active:opacity-70",t)})}var m=r(54450),h=r(52176),p=r(56483),f=r(70569);function x(e){let{githubClientId:t,isModal:r,onWindow:a}=e,s=(0,h.usePathname)().includes(m.uL)?m.uL:m.i;return(0,n.jsxs)(u,{onClick:()=>{let e=new URLSearchParams({client_id:t,redirect_uri:"".concat(window.location.origin).concat(s),scope:"user:email",state:(0,f.y)(p.i.getState().trackingInfo),prompt:"select_account"}),n="https://github.com/login/oauth/authorize?".concat(e);
1if(r){let e=window.open(n);e&&a(e)}else window.location.href=n},children:[(0,n.jsx)(i.default,{src:o,alt:"github logo",width:20,height:20,className:"size-5"}),(0,n.jsx)("span",{children:"Continue with Github"})]})}let g={src:"https://nextjs.browseract.com/_next/static/media/google.4c2a1c1a.svg",height:200,width:200,blurWidth:0,blurHeight:0};function w(e){let{googleClientId:t,isModal:r,onWindow:a}=e,s=(0,h.usePathname)();return(0,n.jsxs)(u,{onClick:()=>{!function(){let e=(0,f.y)(p.i.getState().trackingInfo),n=s.includes(m.uL)?m.uL:m.i,l={client_id:t,redirect_uri:window.origin+n,response_type:"token",scope:"openid profile email",include_granted_scopes:"true",state:e,prompt:"select_account"},i="".concat("https://accounts.google.com/o/oauth2/v2/auth","?").concat(new URLSearchParams(l));if(r){let e=window.open(i);e&&a(e)}else window.location.href=i}()},children:[(0,n.jsx)(i.default,{src:g,alt:"google logo",width:20,height:20,className:"size-5"}),(0,n.jsx)("span",{children:"Continue with Google"})]})}function b(){return(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)("div",{className:"h-px flex-1 bg-[#050505]/6"}),(0,n.jsx)("div",{className:"text-45 text-sm",children:"or"}),(0,n.jsx)("div",{className:"h-px flex-1 bg-[#050505]/6"})]})}function v(e){let{googleClientId:t,githubClientId:r,isModal:a,onWindow:s,dividerPosition:l="top",className:i="mt-4 flex flex-col gap-4"}=e,o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w,{googleClientId:t,isModal:a,onWindow:s}),(0,n.jsx)(x,{githubClientId:r,isModal:a,onWindow:s})]});return(0,n.jsx)("div",{className:i,children:"top"===l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{}),o]}):(0,n.jsxs)(n.Fragment,{children:[o,(0,n.jsx)(b,{})]})})}var y=r(86539),j=r(51807),S=r(40055),A=r(63074),E=r(13606);let P=(0,S.forwardRef)((e,t)=>{let{onClick:r,loading:s,className:l}=e,{startCountdown:i,sending:o,countDown:c,notSent:d}=(0,E.N)({maxSeconds:59});return P.displayName="SendCode",(0,n.jsx)(A.Ay,{ref:t,className:(0,a.cn)("min-w-15 text-sm/5.5",l),onClick:async()=>{await r()&&i()},loading:s,disabled:o,children:o?"".concat(c,"s"):d?"Send Code":"Resend"})}),k=(0,S.forwardRef)((e,t)=>{let{onSendCode:r,codeLoading:a,hidden:s=!1,showLabel:l}=e;return(0,n.jsx)(y.A.Item,{hidden:s,label:l?"Verification Code":void 0,children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(y.A.Item,{noStyle:!0,name:"code",rules:[{required:!0,message:"Please enter a valid verification code"},{len:6,message:"Verification code length is 6"}],children:(0,n.jsx)(j.A,{placeholder:"Please enter the code",className:"flex-1 text-sm/5.5",maxLength:6})}),(0,n.jsx)(P,{ref:t,onClick:r,loading:a})]})})});function L(e){let{autoComplete:t="email",disabled:r=!1,showLabel:a=!1}=e;return(0,n.jsx)(y.A.Item,{label:a?"Email":void 0,name:"email",validateFirst:!0,rules:[{validator:(e,t)=>t?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?t.length>254?Promise.reject("Please enter between 1 and 254 characters"):Promise.resolve():Promise.reject("Please enter a valid email address"):Promise.reject("Email address is required")}],children:(0,n.jsx)(j.A,{placeholder:"Email",className:"text-sm/5.5 caret-black autofill:caret-black",autoComplete:t,disabled:r})})}var N=r(86690);let _=()=>({size:"large",validateTrigger:"onBlur"}),R=(e,t)=>t&&!e?"Password is required":t||e?(null==e?void 0:e.length)<8||(null==e?void 0:e.length)>32||!/[0-9]/.test(e)||!/[a-zA-Z]/.test(e)?"Password must be 8-32 characters with letters and numbers":/\s+/g.test(e)?"Password cannot contain spaces":"":"";function C(e){let{form:t,childrenBefore:r,childrenAfter:a,required:s=!0,showLabel:l=!1,...i}=e;return(0,n.jsxs)(y.A,{..._(),form:t,...i,children:[r,(0,n.jsx)(y.A.Item,{label:l?(0,n.jsxs)("span",{children:["Password",(0,n.jsx)(I,{})]}):void 0,name:"password",validateFirst:!0,required:s,rules:[{validator(e,t){let r=R(t,s);return r?Promise.reject(Error(r)):Promise.resolve()}}],children:(0,n.jsx)(N.cA,{placeholder:"Password",className:"text-sm/5.5",onPressEnter:()=>{t.submit()},autoComplete:"off"})}),(0,n.jsx)(y.A.Item,{label:l?(0,n.jsxs)("span",{children:["Confirm Password",(0,n.jsx)(I,{})]}):void 0,required:s,name:"password2",dependencies:["password"],validateFirst:!0,rules:[e=>{let{getFieldValue:t}=e;return{validator:(e,r)=>t("password")===r?Promise.resolve():Promise.reject(Error("Passwords do not match"))}}],children:(0,n.jsx)(N.cA,{placeholder:"Confirm your password",className:"text-sm/5.5",autoComplete:"off",onPressEnter:()=>{t.submit()}})}),a]})}function I(){return(0,n.jsx)("span",{className:"mr-[8px] ml-[2px]",children:":"})}
1var F=function(e){return e.LOGIN="LOGIN",e.REGISTER="REGISTER",e.USER_RESET_PASSWORD="USER_RESET_PASSWORD",e.USER_UPDATE_PASSWORD="USER_UPDATE_PASSWORD",e}({});r(77144);var q=r(36651),T=r(30848),D=r(43869),U=r(55331),G=r(92326);function O(e){var t;let{onChange:r,captchaEmailType:a}=e,s=(0,S.useRef)(null),{message:l}=q.A.useApp(),[i,o]=(0,S.useState)(!0),c=i||(0,D.A)(null==(t=s.current)?void 0:t.getWidgetId()),[d,u]=(0,S.useState)(!1);return(0,n.jsx)(T.A,{spinning:c||d,children:(0,n.jsxs)("div",{className:"grid h-[78px] place-content-center rounded-lg bg-[#f9f9f9]",children:[(0,n.jsx)("div",{className:"max-h-[72px] max-w-[298px] overflow-hidden",children:(0,n.jsx)(U.A,{className:"-m-0.5",ref:s,sitekey:"6LezjTYrAAAAADnZ8AnuuQVx5oUuIIRLFGoW1QzY",onChange:e=>{e?(u(!0),(0,G.oXJ)({body:{type:a,recaptchaToken:e,recaptchaAction:""}}).then(e=>{null==r||r((null==e?void 0:e.key)||null)}).finally(()=>{u(!1)})):null==r||r("")},hl:"en",onError:()=>{o(!1),l.error("Google reCAPTCHA error. Please refresh the page and try again")},theme:"light",asyncScriptOnLoad:()=>{o(!1)}})}),c?(0,n.jsx)("div",{className:"grid h-[78px] w-[304px] place-content-center",children:"Loading Google reCAPTCHA..."}):null]})})}let z={src:"https://nextjs.browseract.com/_next/static/media/logo.5ddbd44f.svg",height:60,width:313,blurWidth:0,blurHeight:0};function V(e){let{className:t}=e;return(0,n.jsx)("div",{className:t,children:(0,n.jsx)(i.default,{src:z,alt:"logo",width:126,height:24,priority:!0,loading:"eager"})})}function H(e){let{children:t,className:r}=e;return(0,n.jsx)("h1",{className:(0,a.cn)("text-88 text-3xl/11 font-semibold",r),children:t})}let W=(0,S.createContext)({formLogin:null,formRegister:{},formResetPassword:{}})}}]);

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.