PageSourceSearch

https://fantasticforms.com/static/js/8532.72022209.chunk.js

js fantasticforms.com collected 2026-09-25 22:50:17 UTC 12,555 bytes, 3 lines download raw bytes

1/*! For license information please see 8532.72022209.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[8532],{22024(e,a,t){t.d(a,{A:()=>s});const s=(0,t(77784).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},35087(e,a,t){t.d(a,{A:()=>s});const s=(0,t(77784).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},59938(e,a,t){t.d(a,{J:()=>h});var s=t(89379),l=t(53986),i=t(65043),c=t(65131),n=t(10917),r=t(1089),o=t(70579);const d=["className"],m=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),h=i.forwardRef((e,a)=>{let{className:t}=e,i=(0,l.A)(e,d);return(0,o.jsx)(c.b,(0,s.A)({ref:a,className:(0,r.cn)(m(),t)},i))});h.displayName=c.b.displayName},65131(e,a,t){t.d(a,{b:()=>m});var s=t(89379),l=t(65043),i=t(53986),c=(t(97950),t(16851)),n=t(70579);const r=["asChild"];var o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{const t=(0,c.TL)("Primitive.".concat(a)),o=l.forwardRef((e,l)=>{const{asChild:c}=e,o=(0,i.A)(e,r),d=c?t:a;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(d,(0,s.A)((0,s.A)({},o),{},{ref:l}))});return o.displayName="Primitive.".concat(a),(0,s.A)((0,s.A)({},e),{},{[a]:o})},{});var d=l.forwardRef((e,a)=>(0,n.jsx)(o.label,(0,s.A)((0,s.A)({},e),{},{ref:a,onMouseDown:a=>{var t;a.target.closest("button, input, select, textarea")||(null===(t=e.onMouseDown)||void 0===t||t.call(e,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}})));d.displayName="Label";var m=d},65469(e,a,t){t.d(a,{A:()=>s});const s=(0,t(77784).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92264(e,a,t){t.d(a,{p:()=>o});var s=t(89379),l=t(53986),i=t(65043),c=t(1089),n=t(70579);const r=["className","type"],o=i.forwardRef((e,a)=>{let{className:t,type:i}=e,o=(0,l.A)(e,r);return(0,n.jsx)("input",(0,s.A)({type:i,className:(0,c.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a},o))});o.displayName="Input"},94651(e,a,t){t.d(a,{A:()=>s});const s=(0,t(77784).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},96151(e,a,t){t.r(a),t.d(a,{default:()=>j});var s=t(65043),l=t(45685),i=t(35016),c=t(4980),n=t(6401),r=t(13390),o=t(92264),d=t(59938),m=t(91140),h=t(22024),x=t(65469),p=t(36210),u=t(94651),f=t(35087),v=t(56328),g=t(70579);const j=()=>
2{const[e,a]=(0,s.useState)(""),[t,j]=(0,s.useState)(""),[y,b]=(0,s.useState)(""),[N,w]=(0,s.useState)(!1),[A,z]=(0,s.useState)(!1),[k,C]=(0,s.useState)(!1),[F,M]=(0,s.useState)(!1),{signup:R}=(0,i.As)(),S=(0,l.Zp)(),B=[{met:y.length>=8,text:"At least 8 characters"},{met:/[A-Z]/.test(y),text:"One uppercase letter"},{met:/[0-9]/.test(y),text:"One number"}];if(F){const e=async()=>{C(!0);try{await c.ZQ.resendVerification(t),v.oR.success("Verification email sent! Check your inbox.")}catch(e){v.oR.error("Failed to resend email. Please try again.")}finally{C(!1)}};return(0,g.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-zinc-50 px-4 py-12","data-testid":"signup-complete-page",children:(0,g.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,g.jsx)("img",{src:"/logo.png",alt:"Fantastic Forms",className:"w-16 h-16 mx-auto mb-6"}),(0,g.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"Check your email!"}),(0,g.jsxs)("p",{className:"text-zinc-500 mb-6",children:["We've sent a verification link to ",(0,g.jsx)("strong",{className:"text-zinc-900",children:t}),". Click the link in the email to verify your account and log in."]}),(0,g.jsx)("div",{className:"flex items-center justify-center gap-4 mb-8",children:[{name:"Google",href:"https://mail.google.com/mail/u/0/#search/from%3Acontact%40fantasticforms.com",svg:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",children:[(0,g.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),(0,g.jsx)("path",{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",fill:"#34A853"}),(0,g.jsx)("path",{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",fill:"#FBBC05"}),(0,g.jsx)("path",{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",fill:"#EA4335"})]})},{name:"Outlook",href:"https://outlook.live.com/mail/0/search?q=from%3Acontact%40fantasticforms.com",svg:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",children:[(0,g.jsx)("path",{d:"M24 7.387v10.478c0 .23-.08.424-.238.576-.16.154-.352.232-.578.232h-8.16v-6.08l1.602 1.172c.078.052.17.078.273.078.104 0 .195-.026.274-.078L24 8.54v-1.16zm-.004-1.735L17.32 10.89l-1.296-.96V5.28h7.195c.227 0 .42.074.577.224.16.15.2.354.2.578v.57z",fill:"#0072C6"}),(0,g.jsx)("path",{d:"M14.4 5.088v7.2l-1.2.84-4.8-3.528V5.088c0-.206.072-.384.216-.535A.724.724 0 019.151 4.5h5.25v.588zM14.4 13.489v3.91H9.15a.726.726 0 01-.535-.215.728.728 0 01-.216-.535v-6.36L14.4 13.49z",fill:"#0072C6"}),(0,g.jsx)("path",{d:"M9.6 7.2c0-1.326-.468-2.456-1.404-3.39C7.26 2.876 6.127 2.4 4.8 2.4c-1.326 0-2.458.474-3.395 1.41C.468 4.746 0 5.875 0 7.2v4.8c0 1.326.468 2.458 1.405 3.396C2.342 16.332 3.474 16.8 4.8 16.8c1.327 0 2.46-.468 3.396-1.404C9.132 14.458 9.6 13.326 9.6 12V7.2zM7.2 12c0 .66-.236 1.228-.708 1.692A2.306 2.306 0 014.8 14.4a2.31 2.31 0 01-1.692-.708A2.306 2.306 0 012.4 12V7.2c0-.66.236-1.224.708-1.692A2.31 2.31 0 014.8 4.8c.66 0 1.224.236 1.692.708.472.468.708 1.032.708 1.692V12z",fill:"#0072C6"})]})},{name:"Proton Mail",href:"https://mail.proton.me/u/0/inbox?search=from%3Acontact%40fantasticforms.com",svg:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",children:[(0,g.jsx)("path",{d:"M3.5 7.5L12 13l8.5-5.5V6a2 2 0 00-2-2h-13a2 2 0 00-2 2v1.5z",fill:"#6D4AFF"}),(0,g.jsx)("path",{d:"M3.5 9.5V18a2 2 0 002 2h13a2 2 0 002-2V9.5L12 15 3.5 9.5z",fill:"#6D4AFF",opacity:"0.7"})]})},{name:"Zoho",href:"https://mail.zoho.com/zm/#search/from%3Acontact%40fantasticforms.com",svg:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",children:[(0,g.jsx)("path",{d:"M2 4l7.2 16h1.5L4.5 6h15l1.5-2H2z",fill:"#F0483E"}),(0,g.jsx)("path",{d:"M22 20l-7.2-16h-1.5L19.5 18h-15L3 20h19z",fill:"#089949"})]})},{name:"Fastmail",href:"https://www.fastmail.com/mail/search:[email protected]",svg:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",children:[(0,g.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",fill:"#304CFD"}),(0,g.jsx)("path",{d:"M2 7l10 6 10-6",stroke:"white",strokeWidth:"1.5",fill:"none"})]})}].map(e=>(0,g.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"group relative w-10 h-10 rounded-lg border border-zinc-200 bg-white flex items-center justify-center hover:border-zinc-400 hover:shadow-sm transition-all","data-testid":"email-provider-".concat(e.name.toLowerCase().replace(/\s/g,"-")),children:[e.svg,(0,g.jsx)("span",{className:"absolute -bottom-7 left-1/2 -translate-x-1/2 whitespace-nowrap text-xs text-zinc-500 bg-white px-1.5 py-0.5 rounded border border-zinc-100 shadow-sm opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:e.name})]},e.name))}),(0,g.jsxs)("div",{className:"space-y-3",children:[(0,g.jsx)("p",{className:"text-sm text-zinc-400",children:"Didn't receive the email?"}),(0,g.jsx)(r.$,{variant:"outline",className:"w-full",onClick:e,disabled:k,children:k?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):"Resend verification email"}),(0,g.jsx)(l.N_,{to:"/login",children:(0,g.jsx)(r.$,{variant:"ghost",className:"w-full",children:"Go to Login"})})]})]})})}return(0,g.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-zinc-50 px-4 py-12","data-testid":"signup-page",children:(0,g.jsxs)("div",{className:"w-full max-w-md",children:[(0,g.jsxs)(l.N_,{to:"/",className:"inline-flex items-center gap-2 text-sm text-zinc-500 hover:text-zinc-900 mb-8 transition-colors","data-testid":"back-to-home",children:[(0,g.jsx)(x.A,{className:"w-4 h-4"}),"Back to home"]}),(0,g.jsxs)(m.Zp,{className:"border-zinc-200 shadow-lg",children:[(0,g.jsxs)(m.aR,{className:"text-center pb-2",children:[(0,g.jsx)("img",{src:"/logo.png",alt:"Fantastic Forms",className:"mx-auto w-12 h-12 mb-4"}),(0,g.jsx)(m.ZB,{className:"text-2xl font-bold",children:"Create your account"}),(0,g.jsx)(m.BT,{children:"Start building fantastic forms for free"})]}),(0,g.jsxs)(m.Wu,{children:[(0,g.jsxs)("form",{onSubmit:async a=>{if(a.preventDefault(),e&&t&&y)if(y.length<8)v.oR.error("Password must be at least 8 characters");else{z(!0);try{const a=(0,n.g)(),s=await R(e,t,y,a);s.requires_verification?(M(!0),v.oR.success("Account created! Check your email to verify your address.")):s.token&&(v.oR.success("Account created successfully!"),S("/dashboard"))}catch(i){var s,l;v.oR.error((null===(s=i.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.detail)||"Failed to create account")}finally{z(!1)}}else v.oR.error("Please fill in all fields")},className:"space-y-4",children:[(0,g.jsxs)("div",{className:"space-y-2",children:[(0,g.jsx)(d.J,{htmlFor:"name",children:"Full Name"}),(0,g.jsx)(o.p,{id:"name",type:"text",placeholder:"John Doe",value:e,onCh
2ange:e=>a(e.target.value),disabled:A,"data-testid":"signup-name-input",className:"h-11"})]}),(0,g.jsxs)("div",{className:"space-y-2",children:[(0,g.jsx)(d.J,{htmlFor:"email",children:"Business Email"}),(0,g.jsx)(o.p,{id:"email",type:"email",placeholder:"[email protected]",value:t,onChange:e=>j(e.target.value),disabled:A,"data-testid":"signup-email-input",className:"h-11"}),(0,g.jsx)("p",{className:"text-xs text-zinc-500",children:"Free email providers (Gmail, Yahoo, etc.) are not accepted"})]}),(0,g.jsxs)("div",{className:"space-y-2",children:[(0,g.jsx)(d.J,{htmlFor:"password",children:"Password"}),(0,g.jsxs)("div",{className:"relative",children:[(0,g.jsx)(o.p,{id:"password",type:N?"text":"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",value:y,onChange:e=>b(e.target.value),disabled:A,"data-testid":"signup-password-input",className:"h-11 pr-10"}),(0,g.jsx)("button",{type:"button",onClick:()=>w(!N),className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400 hover:text-zinc-600",children:N?(0,g.jsx)(u.A,{className:"w-4 h-4"}):(0,g.jsx)(f.A,{className:"w-4 h-4"})})]}),y&&(0,g.jsx)("div",{className:"mt-2 space-y-1",children:B.map((e,a)=>(0,g.jsxs)("div",{className:"flex items-center gap-2 text-xs ".concat(e.met?"text-green-600":"text-zinc-400"),children:[(0,g.jsx)(p.A,{className:"w-3 h-3 ".concat(e.met?"opacity-100":"opacity-30")}),e.text]},a))})]}),(0,g.jsx)(r.$,{type:"submit",className:"w-full h-11 bg-zinc-900 hover:bg-zinc-800",disabled:A,"data-testid":"signup-submit-btn",children:A?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Creating account..."]}):"Create account"})]}),(0,g.jsxs)("p",{className:"mt-4 text-xs text-center text-zinc-500",children:["By creating an account, you agree to our"," ",(0,g.jsx)(l.N_,{to:"/terms",className:"underline hover:text-zinc-900",children:"Terms of Service"})," ","and"," ",(0,g.jsx)(l.N_,{to:"/privacy",className:"underline hover:text-zinc-900",children:"Privacy Policy"})]}),(0,g.jsxs)("div",{className:"mt-6 text-center text-sm text-zinc-500",children:["Already have an account?"," ",(0,g.jsx)(l.N_,{to:"/login",className:"text-zinc-900 font-medium hover:underline","data-testid":"login-link",children:"Sign in"})]})]})]})]})})}}}]);
3//# sourceMappingURL=8532.72022209.chunk.js.map

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.