PageSourceSearch

https://bank-statement-conversion.com/build/assets/Register-wNWB3dPF.js

js bank-statement-conversion.com collected 2026-10-02 00:28:36 UTC 9,362 bytes, 1 lines download raw bytes

1import{r as u,j as e,C as A,a as R,b as L,c as b,F as t,B as S}from"./bootstrap-vendor-BhheAoEU.js";import{a as z,_ as r,H as B,L as w}from"./app-jEEuWg-B.js";import{A as M}from"./AppLayout-Ca6Zq6Ko.js";import{a6 as _,n as q,h as P,$ as G,d as H,a7 as U}from"./icons-vendor-DOAVIvzV.js";import{c as E,t as y}from"./Analytics-DG6OvAhc.js";/* empty css            */import"./Footer-B85V-i42.js";const N="cloudflare-turnstile-script";function Q({turnstileEnabled:d=!1,turnstileSiteKey:j=null}){const f=u.useRef(null),c=u.useRef(null),p=u.useRef(!1),{data:h,setData:a,post:C,processing:k,errors:i,reset:I,transform:F}=z({name:"",email:"",password:"",password_confirmation:"",terms_accepted:!1,"cf-turnstile-response":"",turnstile_unavailable:d}),g=u.useMemo(()=>d?j||"0x4AAAAAACPBMXdUO282Lrtf":"",[d,j]),x=u.useCallback(()=>{if(a("cf-turnstile-response",""),!(c.current===null||!window.turnstile))try{window.turnstile.reset(c.current)}catch(s){console.warn("Turnstile reset failed:",s)}},[a]),m=u.useCallback(()=>{a("cf-turnstile-response",""),a("turnstile_unavailable",!0)},[a]);u.useEffect(()=>{if(!d)return;if(!g){m();return}let s=!0,n=null;if(!window.turnstile&&!document.getElementById(N)){const l=document.createElement("script");l.id=N,l.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",l.async=!0,l.defer=!0,document.head.appendChild(l)}const o=window.setTimeout(()=>{s&&c.current===null&&(m(),n&&(window.clearInterval(n),n=null))},5e3),v=()=>{if(!(!s||!f.current||!window.turnstile||p.current)){p.current=!0,n&&(window.clearInterval(n),n=null);try{window.turnstile.ready(()=>{if(!(!s||!f.current||c.current!==null))try{c.current=window.turnstile.render(f.current,{sitekey:g,callback:l=>{a("cf-turnstile-response",l),a("turnstile_unavailable",!1)},"error-callback":l=>(console.error("Turnstile error:",l),m(),x(),!0),"expired-callback":()=>{a("turnstile_unavailable",!0),x()},"timeout-callback":()=>{a("turnstile_unavailable",!0),x()},theme:"light",retry:"auto"})}catch(l){p.current=!1,console.warn("Turnstile render failed:",l),m()}})}catch(l){p.current=!1,console.warn("Turnstile render failed:",l),m()}}};return v(),window.turnstile||(n=window.setInterval(v,100)),()=>{if(s=!1,n&&window.clearInterval(n),window.clearTimeout(o),c.current!==null&&window.turnstile)try{window.turnstile.remove(c.current)}catch(l){console.warn("Turnstile cleanup failed:",l)}c.current=null,p.current=!1}},[m,x,g,a,d]);const T=s=>{s.preventDefault();const n=window.fingerprintIntegration?window.fingerprintIntegration.getHeaders():{};F(o=>({...o,turnstile_unavailable:d&&!o["cf-turnstile-response"]?!0:o.turnstile_unavailable})),C(route("register"),{replace:!0,headers:{...n},onSuccess:()=>{const o=E();y("sign_up",{method:"email",after_preview:o}),o&&y("registration_after_preview",{registration_method:"email"})},onFinish:()=>{I("password","password_confirmation"),x()}})};return e.jsxs(M,{title:r("auth.register.meta.title"),description:r("auth.register.meta.description"),children:[e.jsx(B,{title:r("auth.register.meta.title")}),e.jsx("section",{className:"register-section py-5",children:e.jsx(A,{children:e.jsx(R,{className:"justify-content-center",children:e.jsx(L,{md:6,lg:5,children:e.jsx(b,{className:"border-0 shadow",children:e.jsxs(b.Body,{className:"p-4",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx(_,{size:40,className:"text-primary mb-3"}),e.jsx("h2",{className:"h3 fw-bold",children:r("auth.register.hero.title")}),e.jsx("p",{className:"text-muted",children:r("auth.register.hero.subtitle")})]}),e.jsxs(t,{onSubmit:T,id:"registration-form",children:[e.jsxs("div",{className:"d-grid gap-2 mb-4",children:[e.jsxs("a",{href:route("social.redirect",{provider:"google"}),style:{backgroundColor:"#ffffff",border:"1px solid #dadce0",color:"#3c4043",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"0.5rem 1rem",boxShadow:"0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15)",transition:"background-color 0.3s, box-shadow 0.3s"},className:"hover-shadow no-underline",children:[e.jsxs("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),e.jsx("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),e.jsx("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),e.jsx("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]}),r("auth.register.google.button")]}),e.jsxs("a",{href:route("social.redirect",{provider:"apple"}),style:{backgroundColor:"#000000",border:"1px solid #000000",color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"0.5rem 1rem",boxShadow:"0 1px 2px 0 rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15)",transition:"background-color 0.3s, box-shadow 0.3s"},className:"hover-shadow no-underline",children:[e.jsx("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:e.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})}),r("auth.register.apple.button")]})]}),e.jsx("div",{className:"text-center mb-4",children:e.jsx("span",{className:"text-muted",children:r("auth.register.divi
1der")})}),e.jsxs(t.Group,{className:"mb-3",children:[e.jsxs(t.Label,{children:[e.jsx(q,{className:"me-2"}),r("auth.register.form.name.label")]}),e.jsx(t.Control,{type:"text",value:h.name,onChange:s=>a("name",s.target.value),placeholder:r("auth.register.form.name.placeholder"),isInvalid:!!i.name,autoFocus:!0,required:!0}),e.jsx(t.Control.Feedback,{type:"invalid",children:i.name})]}),e.jsxs(t.Group,{className:"mb-3",children:[e.jsxs(t.Label,{children:[e.jsx(P,{className:"me-2"}),r("auth.register.form.email.label")]}),e.jsx(t.Control,{type:"email",value:h.email,onChange:s=>a("email",s.target.value),placeholder:r("auth.register.form.email.placeholder"),isInvalid:!!i.email,required:!0}),e.jsx(t.Control.Feedback,{type:"invalid",children:i.email})]}),e.jsxs(t.Group,{className:"mb-3",children:[e.jsxs(t.Label,{children:[e.jsx(G,{className:"me-2"}),r("auth.register.form.password.label")]}),e.jsx(t.Control,{type:"password",value:h.password,onChange:s=>a("password",s.target.value),placeholder:r("auth.register.form.password.placeholder"),isInvalid:!!i.password,required:!0}),e.jsx(t.Control.Feedback,{type:"invalid",children:i.password})]}),e.jsxs(t.Group,{className:"mb-4",children:[e.jsxs(t.Label,{children:[e.jsx(H,{className:"me-2"}),r("auth.register.form.password_confirmation.label")]}),e.jsx(t.Control,{type:"password",value:h.password_confirmation,onChange:s=>a("password_confirmation",s.target.value),placeholder:r("auth.register.form.password_confirmation.placeholder"),isInvalid:!!i.password_confirmation,required:!0}),e.jsx(t.Control.Feedback,{type:"invalid",children:i.password_confirmation})]}),e.jsx("div",{className:"mb-3 p-2 rounded",children:e.jsxs("small",{className:"text-muted",style:{fontSize:"0.75rem"},children:[e.jsx("strong",{children:r("auth.register.accuracy_disclaimer.title")})," ",r("auth.register.accuracy_disclaimer.text")]})}),e.jsxs(t.Group,{className:"mb-4",children:[e.jsx(t.Check,{type:"checkbox",id:"terms-acceptance",label:e.jsxs("span",{children:[r("auth.register.terms.checkbox_prefix")," ",e.jsx(w,{href:"/terms",target:"_blank",className:"text-primary text-decoration-underline",children:r("auth.register.terms.terms_of_service")})," ",r("auth.register.terms.checkbox_suffix")," ",e.jsx(w,{href:"/privacy",target:"_blank",className:"text-primary text-decoration-underline",children:r("auth.register.terms.privacy_policy")})]}),checked:h.terms_accepted||!1,onChange:s=>a("terms_accepted",s.target.checked),isInvalid:!!i.terms_accepted,required:!0}),i.terms_accepted&&e.jsx("div",{className:"invalid-feedback d-block",children:i.terms_accepted})]}),d&&e.jsx("div",{className:"mb-4 d-flex flex-column align-items-center",children:e.jsx("div",{ref:f})}),i["cf-turnstile-response"]&&e.jsx("div",{className:"text-danger small mb-3 text-center",children:i["cf-turnstile-response"]}),e.jsx("div",{className:"d-grid gap-2",children:e.jsxs(S,{variant:"primary",size:"lg",type:"submit",disabled:k,children:[e.jsx(_,{className:"me-2"}),r("auth.register.form.submit")]})})]}),e.jsx("hr",{className:"my-4"}),e.jsx("div",{className:"text-center",children:e.jsxs("p",{className:"mb-0",children:[r("auth.register.login_prompt.text")," ",e.jsxs(w,{href:route("login"),className:"text-decoration-none",children:[e.jsx(U,{className:"me-1"}),r("auth.register.login_prompt.link")]})]})})]})})})})})})]})}export{Q 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.