PageSourceSearch

https://foxfunding.vercel.app/_next/static/chunks/pages/auth/signup-4e57d0b88331f7f8.js

js foxfunding.vercel.app collected 2026-10-03 06:58:16 UTC 10,449 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[613],{8592:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signup",function(){return n(8444)}])},1206:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5893);n(7294);function a(e){var t=e.type,n=e.text;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"w-full mt-3 ".concat("ERROR"==t?"bg-red-200 border-red-300":"bg-green-200 border-green-300"," px-3 py-2 rounded-md border"),children:(0,r.jsx)("p",{className:"".concat("ERROR"==t?"text-red-500":"text-green-600"," text-sm"),children:n})})})}},3034:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(5893),a=n(7294);function s(e){var t=(0,a.useState)(""),n=t[0],s=t[1];return(0,a.useEffect)((function(){e.set(n)}),[n,e]),(0,r.jsxs)("div",{className:"flex flex-col justify-start ".concat(e.className||""),children:[(0,r.jsx)("label",{className:"text-gray-500 text-sm",htmlFor:e.name.toUpperCase().replace(" ",""),children:e.name}),(0,r.jsx)("input",{name:e.name.toUpperCase().replace(" ",""),type:e.type,autoComplete:e.autoComplete,value:e.value||n,minLength:e.min,maxLength:e.max,required:void 0==e.optional||e.optional,disabled:void 0==e.disabled?void 0:e.disabled,className:"".concat(e.disabled&&"text-gray-500"),onChange:function(e){return s(e.target.value)}})]})}},5120:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},$:function(){return o}});var r=n(5893),a=n(1664);function s(){return(0,r.jsx)(a.default,{passHref:!1,href:"/",children:(0,r.jsx)("img",{src:"/images/logo.png",alt:"FoxFunding Logo",className:"h-[50%] cursor-pointer"})})}function o(){return(0,r.jsx)(a.default,{passHref:!1,href:"/",children:(0,r.jsx)("img",{src:"/images/logo.png",alt:"FoxFunding Logo",className:"fixed top-8 w-[10rem] cursor-pointer"})})}},5330:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5893);function a(e){return(0,r.jsxs)("div",{className:"flex flex-col ".concat(e.left?"items-start":"items-center"," ").concat(!e.left&&"px-4 mb-8 text-center"),children:[e.subtitle&&(0,r.jsx)("p",{className:"tracking-widest uppercase font-medium ".concat(e.primary?"text-lg sm:text-xl md:text-2xl text-brand":"text-lg md:text-xl text-secondary"," ").concat(e.subClassName||""),children:e.subt
1itle}),e.primary?(0,r.jsx)("h1",{id:e.id,className:"text-5xl md:text-6xl font-extrabold ".concat(e.titleClassName||""),children:e.title}):(0,r.jsx)("h2",{id:e.id,className:"text-4xl md:text-5xl font-extrabold ".concat(e.titleClassName||""),children:e.title})]})}},1276:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7294);function a(e,t){var n=void 0!==t&&t;return(0,r.useEffect)((function(){document.title=n?e:"".concat(e," | FoxFunding")}),[e,n]),null}},8418:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,s=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(c){a=!0,s=c}finally{try{r||null==i.return||i.return()}finally{if(a)throw s}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}t.default=void 0;var a,s=(a=n(7294))&&a.__esModule?a:{default:a},o=n(6273),i=n(387),c=n(7190);var l={};function u(e,t,n,r){if(e&&o.isLocalURL(t)){e.prefetch(t,n,r).catch((function(e){0}));var a=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;l[t+"%"+n+(a?"%"+a:"")]=!0}}var f=function(e){var t,n=!1!==e.prefetch,a=i.useRouter(),f=s.default.useMemo((function(){var t=r(o.resolveHref(a,e.href,!0),2),n=t[0],s=t[1];return{href:n,as:e.as?o.resolveHref(a,e.as):s||n}}),[a,e.href,e.as]),d=f.href,m=f.as,p=e.children,x=e.replace,h=e.shallow,v=e.scroll,y=e.locale;"string"===typeof p&&(p=s.default.createElement("a",null,p));var g=(t=s.default.Children.only(p))&&"object"===typeof t&&t.ref,b=r(c.useIntersection({rootMargin:"200px"}),2),j=b[0],w=b[1],N=s.default.useCallback((function(e){j(e),g&&("function"===typeof g?g(e):"object"===typeof g&&(g.current=e))}),[g,j]);s.default.useEffect((function(){var e=w&&n&&o.isLocalURL(d),t="undefined"!==typeof y?y:a&&a.locale,r=l[d+"%"+m+(t?"%"+t:"")];e&&!r&&u(a,d,m,{locale:t})}),[m,d,w,y,n,a]);var C={ref:N,onClick:function(e){t.props&&"function"===typeof t.props.onClick&&t.props.onClick(e),e.defaultPrevented||function(e,t,n,r,a,s,i,c){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&o.isLocalURL(n))&&(e.preventDefault(),null==i&&r.indexOf("#")>=0&&(i=!1),t[a?"replace":"push"](n,r,{shallow:s,locale:c,scroll:i}))}(e,a,d,m,x,h,v,y)},onMouseEnter:function(e){o.isLocalURL(d)&&(t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),u(a,d,m,{priority:!0}))}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var E="undefined"!==typeof y?y:a&&a.locale,k=a&&a.isLocaleDomain&&o.getDomainLocale(m,E,a&&a.locales,a&&a.domainLocales);C.href=k||o.addBasePath(o.addLocale(m,E,a&&a.defaultLocale))}return s.default.cloneElement(t,C)};t.default=f},7190:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,s=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(c){a=!0,s=c}finally{try{r||null==i.return||i.return()}finally{if(a)throw s}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!o,c=a.useRef(),l=r(a.useState(!1),2),u=l[0],f=l[1],d=a.useCallback((function(e){c.current&&(c.current(),c.current=void 0),n||u||e&&e.tagName&&(c.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=i.get(t);if(n)return n;var r=new Map,a=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return i.set(t,n={id:t,observer:a,elements:r}),n}(n),a=r.id,s=r.observer,o=r.elements;return o.set(e,t),s.observe(e),function(){o.delete(e),s.unobserve(e),0===o.size&&(s.disconnect(),i.delete(a))}}(e,(function(e){return e&&f(e)}),{rootMargin:t}))}),[n,t,u]);return a.useEffect((function(){if(!o&&!u){var e=s.requestIdleCallback((function(){return f(!0)}));return function(){return s.cancelIdleCallback(e)}}}),[u]),[d,u]};var a=n(7294),s=n(9311),o="undefined"!==typeof IntersectionObserver;var i=new Map},8444:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(5666),a=n.n(r),s=n(5893),o=n(7294),i=n(1163),c=n(5120),l=n(1276),u=n(1664),f=n(9059),d=n(1206),m=n(5330),p=n(3034);function x(e,t,n,r,a,s,o){try{var i=e[s](o),c=i.value}catch(l){return void n(l)}i.done?t(c):Promise.resolve(c).then(r,a)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var s=e.apply(t,n);function o(e){x(s,r,a,o,i,"next",e)}function i(e){x(s,r,a,o,i,"throw",e)}o(void 0)}))}}function v(){(0,l.Z)("Sign Up");(0,i.useRouter)();var e=(0,o.useState)(),t=e[0],n=e[1],r=(0,o.useState)(!1),x=r[0],v=r[1],y=(0,o.useState)(),g=y[0],b=y[1],j=(0,o.useState)(),w=j[0],N=j[1],C=(0,o.useState)(),E=C[0],k=C[1],S=(0,o.useState)(),L=S[0],R=S[1],_=(0,o.useState)(),Z=_[0],M=_[1],I=(0,o.useState)(),P=I[0],F=I[1];function T(){return(T=h(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),P){e.next=3;break}return e.abrupt("return",n("Please accept our Terms of Service!"));case 3:return e.next=5,f.Z.register({firstname:g,lastname:w,email:E,password:L,confirm:Z});case 5:if(!(r=e.sent).error){e.next=8;break}return e.abrupt("return",n(r.error));case 8:if(r.success){e.next=10;break}return e.abrupt("return");case 10:v(!0);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return x?(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center px-5 w-screen min-h-screen",children:[(0,s.jsx)(c.$,{}),(0,s.jsx)(m.Z,{title:"Email Sent",subtitle:"Verification",primary:!0,titleClassName:"text-4xl sm:text-5xl"}),(0,s.jsx)("p",{className:"max-w-[23rem] text-lg text-gray-700 text-center",children:"We've just sent you an email including a verification link. Please check your inbox!"})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center w-screen min-h-screen",children:[(0,s.jsx)(c.$,{}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 justify-center items-center",children:[(0,s.jsx)("h1",{className:"text-5xl font-extrabold",children:"Sign Up"}),(0,s.jsxs)("p",{className:"text-lg text-gray-700",children:["Already have an account?"," ",(0,s.jsx)(u.default,{href:"/auth/signin",children:(0,s.jsx)("a",{className:"text-lg",children:"Sign In"})})]})]}),(0,s.jsxs)("form",{onSubmit:function(e){return T.apply(this,arguments)},className:"w-[90vw] sm:w-[22rem] bg-white rounded-xl shadow p-8 flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-4",children:[(0,s.jsx)(p.Z,{type:"text",name:"First Name",autoComplete:"given-name",className:"sm:!w-[calc(50%-0.5rem)]",set:b,min:3,max:40}),(0,s.jsx)(p.Z,{type:"text",name:"Last Name",autoComplete:"family-name",className:"sm:!w-[calc(50%-0.5rem)]",set:N,min:3,max:40})]}),(0,s.jsx)(p.Z,{type:"email",name:"Email",autoComplete:"email",set:k}),(0,s.jsx)(p.Z,{type:"password",name:"New Password",autoComplete:"new-password",set:R,min:6,max:128}),(0,s.jsx)(p.Z,{type:"password",name:"Confirm Password",autoComplete:"new-password",set:M,min:6,max:128}),(0,s.jsxs)("div",{className:"flex items-center gap-2 my-1",children:[(0,s.jsx)("input",{type:"checkbox",name:"ToS",checked:P,onChange:function(e){return F(e.target.checked)},className:"cursor-pointer"}),(0,s.jsxs)("label",{onClick:function(){return F(!P)},htmlFor:"ToS",className:"text-sm text-gray-600 cursor-pointer select-none",children:["I agree to the"," ",(0,s.jsx)("span",{children:(0,s.jsx)("a",{href:"/terms",className:"text-sm",children:"Terms of Service"})})]})]}),t&&(0,s.jsx)(d.Z,{type:"ERROR",text:t}),(0,s.jsx)("input",{className:"mt-2 btn-primary",type:"submit",value:"Submit"})]})]})}},1664:function(e,t,n){e.exports=n(8418)},1163:function(e,t,n){e.exports=n(387)}},function(e){e.O(0,[774,888,179],(function(){return t=8592,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.