PageSourceSearch

https://bbcc.ai/build/assets/register-CVX4NuR4.js

js bbcc.ai collected 2026-10-05 12:13:09 UTC 9,734 bytes, 16 lines download raw bytes

1import{u as k,e as M,r as x,j as e,H as z}from"./app-DP13319Q.js";import{I as c,a as l}from"./input-Du_IreF9.js";import{T as g}from"./text-link-CaiCOl2M.js";import{B as m}from"./button-rFeFNNd5.js";import{L as n}from"./label-CjdjKtaD.js";import{A as I}from"./auth-layout-D4SvDWCh.js";import{T as L}from"./TermsAndConditionsContent-kgFjQnlB.js";import{P}from"./PrivacyPolicyContent-CkZQpeat.js";import{C as T}from"./checkbox-C4JdPzUx.js";import{M as E}from"./react-tooltip.min-DW3XhwOj.js";import{L as R}from"./loader-circle-C-YIUsb6.js";/* empty css            */import"./utils-SWYxlXfx.js";import"./clsx-B-dksMZM.js";import"./index-DGVtPzwd.js";import"./app-logo-icon-B_rIw4ab.js";import"./index-CtyZ6W6U.js";import"./index-cNDDvm9q.js";import"./check-BA5_s5ky.js";import"./createLucideIcon-BZKkeQZf.js";function te(){const{tooltips:p}=k().props,{data:o,setData:r,post:f,processing:s,errors:i,reset:w}=M({name:"",email:"",password:"",password_confirmation:"",agree_to_terms:!1}),[j,u]=x.useState(!1),[v,h]=x.useState(!1),d=(p==null?void 0:p["auth-tooltip"])||["Enter your registered email address","Click to reset your password","Enter your account password","Keep me logged in on this device","Read the Terms and Conditions","Read the Privacy Policy","Access your account","Receive a login link in your email","Create a new account","Enter the email associated with your account","Request a password reset link","Go back to the login page","Enter your full name","Enter a valid email address","Choose a strong password","Re-enter your password to confirm","Complete registration and create your account","Go to the login page"],a=t=>d[t]||d[0],C=t=>{t.preventDefault(),o.agree_to_terms&&f(route("register"),{onFinish:()=>w("password","password_confirmation")})},b=()=>u(!0),y=()=>u(!1),_=()=>h(!0),N=()=>h(!1);return e.jsxs(I,{title:"Create an account",description:"Enter your details below to create your account",children:[e.jsx(z,{title:"Register",children:e.jsx("style",{dangerouslySetInnerHTML:{__html:`
2                            .react-tooltip {
3                                z-index: 99999 !important;
4                                opacity: 1 !important;
5                                font-size: 12px;
6                                padding: 4px 8px;
7                            }
8                            .enhanced-checkbox {
9                                border: 2px solid rgb(156 163 175) !important;
10                                border-radius: 4px;
11                            }
12                            .enhanced-checkbox[data-state="checked"] {
13                                background-color: hsl(142.1 76.2% 36.3%);
14                                border-color: hsl(142.1 76.2% 36.3%) !important;
15                            }
16                        `}})}),e.jsx(E,{id:"auth-tooltip"}),j&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm",children:e.jsx("div",{className:"relative max-w-4xl max-h-[70vh] overflow-y-auto",children:e.jsx(L,{onClose:y})})}),v&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm",children:e.jsx("div",{className:"relative max-w-4xl max-h-[70vh] overflow-y-auto",children:e.jsx(P,{onClose:N})})}),e.jsxs("form",{className:"flex flex-col gap-6",onSubmit:C,children:[e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(n,{htmlFor:"name",children:"Name"}),e.jsx(c,{id:"name",type:"text",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"name",value:o.name,onChange:t=>r("name",t.target.value),disabled:s,placeholder:"Full name","data-tooltip-id":"auth-tooltip","data-tooltip-content":a(12)}),e.jsx(l,{message:i.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(n,{htmlFor:"email",children:"Email address"}),e.jsx(c,{id:"email",type:"email",required:!0,tabIndex:2,autoComplete:"email",value:o.email,onChange:t=>r("email",t.target.value),disabled:s,placeholder:"[email protected]","data-tooltip-id":"auth-tooltip","data-tooltip-content":a(13)}),e.jsx(l,{message:i.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(n,{htmlFor:"password",children:"Password"}),e.jsx(c,{id:"password",type:"password",required:!0,tabIndex:3,autoComplete:"new-password",value:o.password,onChange:t=>r("password",t.target.value),disabled:s,placeholder:"Password","data-tooltip-id":"auth-tooltip","data-tooltip-content":a(14)}),e.jsx(l,{message:i.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(n,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(c,{id:"password_confirmation",type:"password",required:!0,tabIndex:4,autoComplete:"new-password",value:o.password_confirmation,onChange:t=>r("password_confirmation",t.target.value),disabled:s,placeholder:"Confirm password","data-tooltip-id":"auth-tooltip","data-tooltip-content":a(15)}),e.jsx(l,{message:i.password_confirmation})]}),e.jsxs("div",{className:"flex items-start space-x-3 py-2",children:[e.jsx(T,{id:"agree_to_terms",name:"agree_to_terms",className:"enhanced-checkbox",required:!0,checked:o.agree_to_terms,onClick:()=>r("agree_to_terms",!o.agree_to_terms),tabIndex:5}),e.jsxs(n,{htmlFor:"agree_to_terms",className:"text-sm leading-normal",children:["I agree to the"," ",e.jsx("button",{type:"button",onClick:b,className:"text-primary text-yellow-400 hover:underline focus:outline-none focus:underline",tabIndex:6,"data-tooltip-id":"auth-tooltip","data-tooltip-content":a(4),children:"Terms and Conditions"})," ","and"," ",e.jsx("button",{type:"button",onClick:_,className:"text-primary text-yellow-400 hover:underline focus:outline-none focus:underline",tabIndex:7,"data-tooltip-id":"auth-tooltip","data-tooltip-content":a(5),children:"Privacy Policy"})]})]}),e.jsx(l,{message:i.agree_to_terms}),e.jsxs(m,{type:"submit",className:"mt-2 w-full",tabIndex:8,disabled:s,"data-tooltip-id":"auth-tooltip","data-tooltip-content":a(16),children:[s&&e.jsx(R,{className:"h-4 w-4 animate-spin"}),"Create account"]}),e.jsx(m,{asChild:!0,variant:"outline",className:"w-full","data-tooltip-id":"auth-tooltip","data-tooltip-content":d[9],children:e.jsxs("a",{href:route("auth.google"),children:[e.jsxs("svg",{className:"w-4 h-4 mr-2",viewBox:"0 0 24 24",children:[e.jsx("path",{fill:"currentColor",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),e.jsx("path",{fill:"currentColor",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),e.jsx("path",{fill:"currentColor",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),e.jsx("path",{fill:"currentColor",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Signup with Google"]})}),e.jsx(m,{asChild:!0,variant:"outline",className:"w-full","data-tooltip-id":"auth-tooltip","data-tooltip-content":"Login with LinkedIn",children:e.jsxs("a",{href:route("login.linkedin"),children:[e.jsx("svg",{className:"w-4 h-4 mr-2",viewBox:"0 0 24 24",fill:"
16currentColor",children:e.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),"Login with LinkedIn"]})}),e.jsx(m,{asChild:!0,variant:"outline",className:"w-full","data-tooltip-id":"auth-tooltip","data-tooltip-content":"Login with Reddit",children:e.jsxs("a",{href:route("auth.reddit"),children:[e.jsx("svg",{className:"w-4 h-4 mr-2",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})}),"Login with Reddit"]})}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Or, ",e.jsx(g,{href:route("magic-link.show"),tabIndex:8,"data-tooltip-id":"auth-tooltip","data-tooltip-content":d[7],children:"log in with magic link"})]})]}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Already have an account?"," ",e.jsx(g,{href:route("login"),tabIndex:9,"data-tooltip-id":"auth-tooltip","data-tooltip-content":a(17),children:"Log in"})]})]})]})}export{te 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.