PageSourceSearch

https://admin.bettamax.com/_next/static/chunks/1052tz7xq464-.js

js bettamax.com collected 2026-10-08 10:22:28 UTC 10,830 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,673800,e=>{"use strict";e.s(["CHARACTER_REGEX",0,/^[a-zA-Z ]+$/,"DOMAIN_REGEX",0,/^(?!-)(?!.*-{2})[a-z0-9-]{1,63}(?<!-)$/,"EMAIL_REGEX",0,/^(?=[^@]{2,}@)[a-zA-Z0-9]+([._-][a-zA-Z0-9]+)*@[a-zA-Z0-9]+([.-][a-zA-Z0-9]+)*\.[a-zA-Z]{2,}$/,"PASSWORD_REGEX",0,/^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*()_\-+=[{\]};:'",<.>/?\\|`~])[A-Za-z\d!@#$%^&*()_\-+=[{\]};:'",<.>/?\\|`~]{8,20}$/,"PHONE_NUMBER_REGEX",0,/^\+[1-9]\d{8,14}$/,"TAG_NAME_REGEX",0,/^(?![\s\S]*[\uFE00-\uFE0F])[\p{L}\p{Mn}\p{Mc}\p{Nd} _-]+$/u])},334722,e=>{e.q("/_next/static/media/bettamaxIco.02hkw7u~dry49.svg")},59714,e=>{"use strict";let t={src:e.i(334722).default,width:222,height:40,blurWidth:0,blurHeight:0};e.s(["default",0,t])},387826,e=>{"use strict";var t=e.i(548287),r=e.i(594522);let a=()=>(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99997 3.50065C5.8736 3.50065 4.7726 3.8351 3.83654 4.46159C2.9063 5.08419 2.18059 5.96735 1.75012 7.00029C2.18059 8.03323 2.9063 8.91639 3.83654 9.53899C4.7726 10.1655 5.8736 10.4999 6.99997 10.4999C8.12634 10.4999 9.22734 10.1655 10.1634 9.53899C11.0936 8.91639 11.8193 8.03323 12.2498 7.00029C11.8193 5.96735 11.0936 5.08419 10.1634 4.46159C9.22734 3.8351 8.12634 3.50065 6.99997 3.50065ZM3.18763 3.49204C4.3157 2.73704 5.64255 2.33398 6.99997 2.33398C8.35739 2.33398 9.68424 2.73704 10.8123 3.49204C11.9404 4.24705 12.8189 5.32 13.3364 6.57489C13.3391 6.58131 13.3416 6.58778 13.344 6.59429C13.4412 6.85623 13.4412 7.14436 13.344 7.40629C13.3416 7.4128 13.3391 7.41927 13.3364 7.4257C12.8189 8.68058 11.9404 9.75354 10.8123 10.5085C9.68424 11.2635 8.35739 11.6666 6.99997 11.6666C5.64255 11.6666 4.3157 11.2635 3.18763 10.5085C2.05956 9.75354 1.18107 8.68058 0.663531 7.4257C0.660883 7.41927 0.658349 7.4128 0.655931 7.40629C0.5587 7.14436 0.5587 6.85623 0.655931 6.59429C0.658349 6.58778 0.660883 6.58131 0.663531 6.57489C1.18107 5.32 2.05956 4.24705 3.18763 3.49204Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99998 5.83363C6.35565 5.83363 5.83331 6.35596 5.83331 7.00029C5.83331 7.64463 6.35565 8.16696 6.99998 8.16696C7.64431 8.16696 8.16664 7.64463 8.16664 7.00029C8.16664 6.35596 7.64431 5.83363 6.99998 5.83363ZM4.66664 7.00029C4.66664 5.71163 5.71131 4.66696 6.99998 4.66696C8.28864 4.66696 9.33331 5.71163 9.33331 7.00029C9.33331 8.28896 8.28864 9.33363 6.99998 9.33363C5.71131 9.33363 4.66664 8.28896 4.66664 7.00029Z",fill:"currentColor"})]});e.s(["default",0,e=>(0,t.jsx)(r.default,{style:{color:e?.style?.color??"var(--colorText, #1D1D1D)"},component:a,...e})])},69640,e=>{"use strict";var t=e.i(548287),r=e.i(594522);let a=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0249 9.03796L10.7954 12.5062L9.49379 12.7954L8.7233 9.32712L10.0249 9.03796Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.73109 4.47852L1.95962 5.10479C2.41166 6.34354 3.23362 7.41336 4.31411 8.16926C5.3946 8.92516 6.68137 9.33058 8.00002 9.33058C9.31867 9.33058 10.6054 8.92516 11.6859 8.16926C12.7664 7.41336 13.5884 6.34354 14.0404 5.10479L14.2689 4.47852L15.5215 4.93558L15.293 5.56186C14.7472 7.05748 13.7548 8.34914 12.4502 9.26178C11.1457 10.1744 9.59211 10.6639 8.00002 10.6639C6.40793 10.6639 4.85434 10.1744 3.5498 9.26178C2.24525 8.34914 1.25285 7.05748 0.70708 5.56186L0.478546 4.93558L1.73109 4.47852Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2633 7.69397L14.2727 10.0806L13.2527 10.9394L11.2433 8.55273L12.2633 7.69397Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.75671 8.55273L2.74728 10.9394L1.72733 10.0806L3.73675 7.69397L4.75671 8.55273Z",fill:"currentColor"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.27673 9.32712L6.50624 12.7954L5.20464 12.5062L5.97513 9.03796L7.27673 9.32712Z",fill:"currentColor"})]});e.s(["default",0,e=>(0,t.jsx)(r.default,{style:{color:e?.style?.color??"var(--colorTextSecondary, #535353)",fontSize:e?.style?.fontSize},className:e.className,component:a,...e})])},608177,e=>{e.q("/_next/static/media/googleIco.14jyz566vwesx.svg")},626899,e=>{"use strict";let t={src:e.i(608177).default,width:16,height:16,blurWidth:0,blurHeight:0};e.s(["default",0,t])},599074,442901,e=>{"use strict";var t=e.i(548287),r=e.i(865629);e.s(["default",0,()=>(0,t.jsxs)("div",{className:"flex gap-1 items-baseline",children:[(0,t.jsx)("p",{className:"text-colorTextSecondary text-fontSizeBase",children:"Before continuing, you review to our"}),(0,t.jsxs)("div",{className:"flex gap-0.5 items-center text-colorTextSecondary font-fontWeightMedium",children:[(0,t.jsx)(r.Button,{className:"!px-0 !text-colorTextSecondary !font-fontWeightMedium !h-6",type:"link",children:(0,t.jsx)("a",{href:"https://bettamax.com/terms-of-service/",target:"_blank",rel:"noopener noreferrer",children:"Terms"})}),",",(0,t.jsx)(r.Button,{className:"!px-0 !text-colorTextSecondary !font-fontWeightMedium !h-6",type:"link",children:(0,t.jsx)("a",{href:"https://bettamax.com/privacy-policies/",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})}),",",(0,t.jsx)(r.Button,{className:"!px-0 !text-colorTextSecondary !font-fontWeightMedium !h-6",type:"link",children:(0,t.jsx)("a",{href:"/",rel:"noopener noreferrer",children:"Service Agreement"})})]})]})],599074);var a=e.i(54097),s=e.i(387826),l=e.i(69640);e.s(["default",0,e=>(0,t.jsx)(a.Input.Password,{...e,iconRender:e=>e?(0,t.jsx)(s.default,{}):(0,t.jsx)(l.default,{})})],442901)},977330,e=>{"use strict";var t=e.i(548287),r=e.i(714946),a=e.i(582597),s=e.i(343692),l=e.i(769841),i=e.i(865629),o=e.i(186097),n=e.i(369851),c=e.i(54097),d=e.i(797970),u=e.i(800720),h=e.i(609789),m=e.i(599074),x=e.i(673800),p=e.i(449072),f=e.i(569709),g=e.i(59714),C=e.i(626899),v=e.i(136304),j=e.i(521956),S=e.i(531068),y=e.i(437082),b=e.i(442901);e.s(["default",0,()=>{let[e]=n.Form.useForm(),w=(0,a.useRouter)(),A=(0,h.useSearchParams)(),N="true"===A.get(p.QUERY_PARAMS.integration),R=A.get(p.QUERY_PARAMS.ffEmail),{referralCode:L,trackReferral:T}=(0,f.useReferralTracking)(),E=(0,p.appendAuthTrackingParams)(N?p.paths.onboarding.manageStoreWithIntegration:p.paths.onboarding.manageStore,{ffEmail:R,referralCode:L}),M=(0,p.appendAuthTrackingParams)(p.paths.onboarding.createStore,{ffEmail:R,referralCode:L}),{apiFunc:z}=(0,S.useCallApi)(),{apiFunc:P}=(0,S.useCallApi)(),{apiFunc:k}=(0,S.useCallApi)(),{setFirebaseUser:_,setUser:B}=(0,v.useAuthStore)(),{openNotification:F}=(0,y.default)(),[I,Z]=(0,r.useState)(!1),G=async e=>{e.getIdToken().then(t=>{z({apiContext:e=>s.api.auth.login(e),params:{requestBody:{firebaseToken:t,referralCode:L||void 0}},successCallback:async r=>{(Z(!1),r.role!==s._36_Enums_UserRole.SELLER)?F({status:"error",title:"Permission denied"}):r.emailVerified?(await T(t),_(e),(l.auth.currentUser?Promise.resolve():new Promise(e=>{let t=l.auth.onAuthStateChanged(r=>{r&&(t(),e())})})).then(()=>{P({apiContext:()=>s.api.user.getUser(),successCallback:e=>{(B(e),!N&&e.lastSelectedStoreId)?w.push(p.paths.dashboard.home(e.lastSelectedStoreId)):k({apiContext:e=>s.api.store.listStores(e),params:{pageSize:1},successCallback:e=>{0===e.total?w.push(M):w.push(E)},errorCallback:()=>{w.push(E)}})},errorCallback:()=>{w.push(E)}})})):w.push((0,p.appendAuthTrackingParams)(p.paths.auth.verifyEmail(r.email,!0),{ffEmail:R,referralCode:L}))},errorCallback:()=>{Z(!1)}})})},W=async()=>{let t=e.getFieldsValue();Z(!0),(0,j.signInFirebase)(t.emailAddress.trim(),t.password).then(e=>{G(e?.user)}).catch(e=>{let t=JSON.parse(JSON.stringify(e));"auth/user-not-found"===t.code||"auth/wrong-password"===t.code?F({status:"error",title:"Incorrect email or password!",description:"Please try again."}):F({status:"error",title:"Something went wrong!"}),Z(!1)})},O=async()=>{(0,j.signInWithGoogleFirebase)().then(e=>{G(e?.user)}).catch(e=>{let t=JSON.parse(JSON.stringify(e));console.log(e),console.log(t)})};return(0,t.jsxs)("div",{className:"rounded-2xl bg-colorBgContainer flex flex-col gap-lg p-xl w-[582px] z-10 max-h-[90vh] overflow-y-auto",children:[(0,t.jsx)(d.default,{src:g.default.src,alt:"logo",width:217,height:80,className:"w-[217px] h-20",priority:!0}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-colorText text-fontSizeHeading4 font-fontWeightStrong",children:"Welcome back!"}),(0,t.jsx)("p",{className:"text-colorTextSecondary text-fontSizeBase",children:"Log in to BettaMax"})]}),(0,t.jsxs)(n.Form,{form:e,name:"login-form",onFinish:W,layout:"vertical",requiredMark:!1,className:"flex flex-col gap-base",scrollToFirstError:{behavior:"smooth",block:"end",focus:!0},children:[(0,t.jsx)(n.Form.Item,{label:"Email Address",name:"emailAddress",rules:[{required:!0,message:"This field is required",transform:e=>e?.trim()},{pattern:x.EMAIL_REGEX,message:"Invalid email address!",transform:e=>e?.trim()}],children:(0,t.jsx)(c.Input,{maxLength:191,className:"h-10",autoComplete:"username"})}),(0,t.jsx)(n.Form.Item,{label:"Password",name:"password",rules:[{required:!0,message:"This field is required"}],children:(0,t.jsx)(b.default,{maxLength:20,className:"h-10",autoComplete:"current-password"})}),(0,t.jsx)(u.default,{className:"font-fontWeightMedium text-fontSizeBase text-colorPrimary hover:text-colorPrimary",href:(0,p.appendAuthTrackingParams)(p.paths.auth.forgotPassword,{ffEmail:R,referralCode:L}),children:"Forgot password?"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(i.Button,{style:{boxShadow:"0 2px 0 0 rgba(87, 76, 250, 0.10)"},type:"primary",htmlType:"submit",size:"large",className:"w-full",loading:I,children:(0,t.jsx)("span",{className:"font-medium text-fontSizeLG",children:"Log in"})}),(0,t.jsx)(o.Divider,{children:(0,t.jsx)("span",{className:"text-colorTextTertiary text-fontSizeBase",children:"or"})}),(0,t.jsxs)(i.Button,{style:{boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.02)"},type:"default",size:"large",className:"w-full flex gap-2 items-center",onClick:O,children:[(0,t.jsx)("img",{src:C.default.src,alt:"GGlogo",className:"w-4 h-auto"}),(0,t.jsx)("span",{className:"font-medium text-fontSizeLG text-colorText",children:"Continue with Google"})]})]})]}),(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)("span",{className:"text-fontSizeBase text-colorTextTertiary",children:"New user?"}),(0,t.jsx)(u.default,{className:"font-fontWeightMedium text-fontSizeBase text-colorPrimary hover:text-colorPrimary",href:(0,p.appendAuthTrackingParams)(p.paths.auth.register,{ffEmail:R,referralCode:L}),children:"Create Account"})]}),(0,t.jsx)(m.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.