PageSourceSearch

https://skribl.ai/_next/static/chunks/app/register/page-ceec37dfed…?dpl=dpl_36j4mm1QCsff5zRYfDE867T9jbRU

js skribl.ai collected 2026-10-05 13:32:45 UTC 14,977 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4091375-f78e-48c0-a049-ccf7dd871bba",e._sentryDebugIdIdentifier="sentry-dbid-d4091375-f78e-48c0-a049-ccf7dd871bba")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2454],{3519:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var a=r(64152);function s(e){return new a.Vy({type:"pretty",stylePrettyLogs:!1,prettyLogTemplate:"{{yyyy}}-{{mm}}-{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}} {{logLevelName}} ",prettyLogStyles:{logLevelName:{info:"green",error:"red",warn:"yellow",debug:"blue"}},prefix:[e],hideLogPositionForProduction:!0,minLevel:2,maskValuesOfKeys:["password","token","authorization","cookie"],maskPlaceholder:"[REDACTED]",prettyInspectOptions:{colors:!1,depth:3}})}},4931:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(98889).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},12463:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(98889).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},17230:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var a=r(76116);let s=(0,a.tv)({base:"tracking-tight inline font-semibold",variants:{color:{violet:"from-[#FF1CF7] to-[#b249f8]",yellow:"from-[#FF705B] to-[#FFB457]",blue:"from-[#5EA2EF] to-[#0072F5]",cyan:"from-[#00b7fa] to-[#01cfea]",green:"from-[#6FEE8D] to-[#17c964]",pink:"from-[#FF72E1] to-[#F54C7A]",foreground:"dark:from-[#FFFFFF] dark:to-[#4B4B4B]"},size:{xs:"text-lg lg:text-2xl",sm:"text-3xl lg:text-4xl",md:"text-[2.3rem] lg:text-5xl leading-9",lg:"text-4xl lg:text-6xl"},fullWidth:{true:"w-full block"}},defaultVariants:{size:"md"},compoundVariants:[{color:["violet","yellow","blue","cyan","green","pink","foreground"],class:"bg-clip-text text-transparent bg-gradient-to-b"}]});(0,a.tv)({base:"w-full md:w-1/2 my-2 text-lg lg:text-xl text-default-600 block max-w-full",variants:{fullWidth:{true:"!w-full"}},defaultVariants:{fullWidth:!0}})},19594:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(98889).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},31362:(e,t,r)=>{Promise.resolve().then(r.bind(r,61672))},39749:(e,t,r)=>{"use strict";r.d(t,{d:()=>d});var a=r(10090),s=r(31379),l=r(93491),o=r(47517),n=r(54568),i=(0,s.Rf)((e,t)=>{var r;let{as:s,className:i,children:d,...c}=e,u=(0,l.zD)(t),{slots:f,classNames:p}=(0,a.f)(),m=(0,o.$z)(null==p?void 0:p.header,i);return(0,n.jsx)(s||"div",{ref:u,className:null==(r=f.header)?void 0:r.call(f,{class:m}),...c,children:d})});i.displayName="HeroUI.CardHeader";var d=i},45774:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(98889).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},48836:(e,t,r)=>{"use strict";r.d(t,{y:()=>d});var a=r(49402),s=(0,r(21340).tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),l=r(7620),o=r(31379),n=r(54568),i=(0,o.Rf)((e,t)=>{let{Component:r,getDividerProps:o}=function(e){var t;let r,o,{as:n,className:i,orientation:d,...c}=e,u=n||"hr";"hr"===u&&"vertical"===d&&(u="div");let{separatorProps:f}=(t={elementType:"string"==typeof u?u:"hr",orientation:d},o=(0,a.$)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(r="vertical"),"hr"!==t.elementType)?{separatorProps:{...o,role:"separator","aria-orientation":r}}:{separatorProps:o}),p=(0,l.useMemo)(()=>s({orientation:d,className:i}),[d,i]);return{Component:u,getDividerProps:(0,l.useCallback)((e={})=>({className:p,role:"separator","data-orientation":d,...f,...c,...e}),[p,d,f,c])}}({...e});return(0,n.jsx)(r,{ref:t,...o()})});i.displayName="HeroUI.Divider";var d=i},58130:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(98889).A)("EyeOff",[["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"}]])},61672:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>N});var a=r(54568),s=r(7620),l=r(27261),o=r.n(l),n=r(25316);let i=(0,n.createServerReference)("7f22e71877e1650b3a07a8bfce0c507219fb100024",n.callServer,void 0,n.findSourceMapURL,"signup");var d=r(17230),c=r(19594),u=r(45774),f=r(58130),p=r(85958),m=r(4931),y=r(12463),b=r(3519),h=r(83334),g=r(39749),v=r(93691),x=r(99812),w=r(92042),j=r(48836),k=r(62942),A=r(31464);
1function N(){let e=(0,k.useRouter)(),[t,r]=(0,s.useState)(null),[l,n]=(0,s.useState)({}),[b,N]=(0,s.useState)(!1),[P,C]=(0,s.useState)(!1),[M,S]=(0,s.useState)(!1),[F,E]=(0,s.useState)({firstName:"",lastName:"",email:"",password:"",confirmPassword:""});(0,s.useEffect)(()=>{S(!0)},[]);let O=e=>{let{name:t,value:r}=e.target;E(e=>({...e,[t]:r})),l[t]&&n(e=>{let r={...e};return delete r[t],r})},V=async t=>{if(t.preventDefault(),b)return;N(!0),r(null),n({});let a=await i(F);(0,A.YW)(a).with({ok:!0},t=>{let{value:r}=t;e.push(r.redirectUrl||"/dashboard")}).with({ok:!1},e=>{let{error:t}=e;"fieldErrors"in t?n(t.fieldErrors):r(t.message||"Registration failed")}).exhaustive(),N(!1)};return(0,a.jsxs)(h.Z,{className:"w-full max-w-md space-y-6 p-4 rounded-sm",children:[(0,a.jsxs)(g.d,{className:"flex flex-col items-center space-y-4 pb-0",children:[(0,a.jsx)("div",{className:"w-[350px] h-[128px] mx-auto mb-4 bg-no-repeat bg-center",style:{backgroundImage:'url("/images/logo.png")',backgroundSize:"350px auto"},role:"img","aria-label":"Logo"}),(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("h2",{className:"".concat((0,d.D)()," text-center"),children:"Create your account"}),(0,a.jsx)("p",{className:"mt-2 text-center text-sm text-gray-600",children:"Fill out the form below to create a new account"})]})]}),(0,a.jsxs)(v.U,{children:[t&&(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 rounded-lg p-3 mb-4",children:(0,a.jsx)("p",{className:"text-center text-sm text-red-600 dark:text-red-300",children:t})}),(0,a.jsxs)("form",{onSubmit:V,className:"space-y-4",children:[(0,a.jsx)(x.r,{id:"firstName",name:"firstName",type:"text",autoComplete:"given-name",isRequired:!0,isInvalid:!!l.firstName,errorMessage:l.firstName,label:"First Name",labelPlacement:"inside",placeholder:"John",value:M?F.firstName:"",onChange:O,startContent:(0,a.jsx)(c.A,{className:"text-gray-400 h-4 w-4 ml-1"})}),(0,a.jsx)(x.r,{id:"lastName",name:"lastName",type:"text",autoComplete:"family-name",isRequired:!0,isInvalid:!!l.lastName,errorMessage:l.lastName,label:"Last Name",labelPlacement:"inside",placeholder:"Doe",value:M?F.lastName:"",onChange:O,startContent:(0,a.jsx)(c.A,{className:"text-gray-400 h-4 w-4 ml-1"})}),(0,a.jsx)(x.r,{id:"email",name:"email",type:"email",autoComplete:"email",isRequired:!0,isInvalid:!!l.email,errorMessage:l.email,label:"Email",labelPlacement:"inside",placeholder:"[email protected]",value:M?F.email:"",onChange:O,startContent:(0,a.jsx)(u.A,{className:"text-gray-400 h-4 w-4 ml-1"})}),(0,a.jsx)(x.r,{id:"password",name:"password",type:P?"text":"password",autoComplete:"new-password",isRequired:!0,isInvalid:!!l.password,errorMessage:l.password,label:"Password",labelPlacement:"inside",placeholder:"Enter your password",value:M?F.password:"",onChange:O,variant:l.password?"bordered":"flat",color:l.password?"danger":"default",endContent:(0,a.jsx)("button",{type:"button",onClick:()=>C(!P),className:"focus:outline-none","aria-label":P?"Hide password":"Show password",children:P?(0,a.jsx)(f.A,{className:"text-gray-400 h-4 w-4"}):(0,a.jsx)(p.A,{className:"text-gray-400 h-4 w-4"})})}),(0,a.jsx)(x.r,{id:"confirmPassword",name:"confirmPassword",type:P?"text":"password",autoComplete:"new-password",isRequired:!0,isInvalid:!!l.confirmPassword,errorMessage:l.confirmPassword,label:"Confirm Password",labelPlacement:"inside",placeholder:"Confirm your password",value:M?F.confirmPassword:"",onChange:O,variant:l.confirmPassword?"bordered":"flat",color:l.confirmPassword?"danger":"default",endContent:(0,a.jsx)("div",{className:"flex items-center space-x-2",children:F.confirmPassword&&(F.confirmPassword===F.password?(0,a.jsx)(m.A,{className:"h-4 w-4 text-green-500"}):(0,a.jsx)(y.A,{className:"h-4 w-4 text-red-500"}))})}),(0,a.jsx)(w.T,{type:"submit",color:"primary",className:"w-full py-2.5",isLoading:b,isDisabled:b,children:"Register"})]}),(0,a.jsx)(j.y,{className:"my-4"}),(0,a.jsxs)("p",{className:"text-center text-sm text-gray-600",children:["Already have an account?"," ",(0,a.jsx)(o(),{href:"/login",className:"font-medium text-indigo-600 hover:text-indigo-500 transition-colors",children:"Sign in"})]})]})]})}(0,b.h)("[RegisterPage]")},62942:(e,t,r)=>{"use strict";var a=r(42418);r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},76116:(e,t,r)=>{"use strict";r.d(t,{tv:()=>k});var a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=e=>!e||"object"!=typeof e||0===Object.keys(e).length,l=(e,t)=>
1JSON.stringify(e)===JSON.stringify(t);function o(e){let t=[];return function e(t,r){t.forEach(function(t){Array.isArray(t)?e(t,r):r.push(t)})}(e,t),t}var n=(...e)=>o(e).filter(Boolean),i=(e,t)=>{let r={},a=Object.keys(e),s=Object.keys(t);for(let l of a)if(s.includes(l)){let a=e[l],s=t[l];"object"==typeof a&&"object"==typeof s?r[l]=i(a,s):Array.isArray(a)||Array.isArray(s)?r[l]=n(s,a):r[l]=s+" "+a}else r[l]=e[l];for(let e of s)a.includes(e)||(r[e]=t[e]);return r},d=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e,c=r(62812),u=r(26257),f=r(52168),p=Object.prototype.hasOwnProperty,m=new Set(["string","number","boolean"]),y={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},b=e=>e||void 0,h=(...e)=>b(o(e).filter(Boolean).join(" ")),g=null,v={},x=!1,w=(...e)=>t=>t.twMerge?((!g||x)&&(x=!1,g=s(v)?c.Q:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return"function"==typeof e?u.p.apply(void 0,[f.Y,e].concat(r)):u.p.apply(void 0,[function(){var t=(0,f.Y)();for(var r in e)!function e(t,r,a){if(!p.call(t,r)||m.has(typeof a)||null===a){t[r]=a;return}if(Array.isArray(a)&&Array.isArray(t[r])){t[r]=t[r].concat(a);return}if("object"==typeof a&&"object"==typeof t[r]){if(null===t[r]){t[r]=a;return}for(var s in a)e(t[r],s,a[s])}}(t,r,e[r]);return t}].concat(r))}(v)),b(g(h(e)))):h(e),j=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=h(e[r],t[r]):e[r]=t[r];return e},k=(e,t)=>{let{extend:r=null,slots:o={},variants:c={},compoundVariants:u=[],compoundSlots:f=[],defaultVariants:p={}}=e,m={...y,...t},b=null!=r&&r.base?h(r.base,null==e?void 0:e.base):null==e?void 0:e.base,g=null!=r&&r.variants&&!s(r.variants)?i(c,r.variants):c,k=null!=r&&r.defaultVariants&&!s(r.defaultVariants)?{...r.defaultVariants,...p}:p;s(m.twMergeConfig)||l(m.twMergeConfig,v)||(x=!0,v=m.twMergeConfig);let A=s(null==r?void 0:r.slots),N=s(o)?{}:{base:h(null==e?void 0:e.base,A&&(null==r?void 0:r.base)),...o},P=A?N:j({...null==r?void 0:r.slots},s(N)?{base:null==e?void 0:e.base}:N),C=e=>{if(s(g)&&s(o)&&A)return w(b,null==e?void 0:e.class,null==e?void 0:e.className)(m);if(u&&!Array.isArray(u))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof u}`);if(f&&!Array.isArray(f))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let t=(e,t,r=[],a)=>{let s=r;if("string"==typeof t)s=s.concat(d(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))s=s.concat(t.reduce((t,r)=>t.concat(`${e}:${r}`),[]));else if("object"==typeof t&&"string"==typeof a){for(let r in t)if(t.hasOwnProperty(r)&&r===a){let l=t[r];if(l&&"string"==typeof l){let t=d(l);s[a]?s[a]=s[a].concat(t.split(" ").map(t=>`${e}:${t}`)):s[a]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(l)&&l.length>0&&(s[a]=l.reduce((t,r)=>t.concat(`${e}:${r}`),[]))}}return s},l=(r,l=g,o=null,n=null)=>{var i;let d=l[r];if(!d||s(d))return null;let c=null!=(i=null==n?void 0:n[r])?i:null==e?void 0:e[r];if(null===c)return null;let u=a(c),f=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||!0===m.responsiveVariants,p=null==k?void 0:k[r],y=[];if("object"==typeof u&&f)for(let[e,r]of Object.entries(u)){let a=d[r];if("initial"===e){p=r;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(e)||(y=t(e,a,y,o))}let b=d[u]||d[a(p)];return"object"==typeof y&&"string"==typeof o&&y[o]?j(y,b):y.length>0?(y.push(b),y):b},i=(e,t)=>{if(!g||"object"!=typeof g)return null;let r=[];for(let a in g){let s=l(a,g,e,t),o="base"===e&&"string"==typeof s?s:s&&s[e];o&&(r[r.length]=o)}return r},c={};for(let t in e)void 0!==e[t]&&(c[t]=e[t]);let p=(t,r)=>{var a;let s="object"==typeof(null==e?void 0:e[t])?{[t]:null==(a=e[t])?void 0:a.initial}:{};return{...k,...c,...s,...r}},y=(e=[],t)=>{let r=[];for(let{class:a,className:s,...l}of e){let e=!0;for(let[r,a]of Object.entries(l)){let s=p(r,t);if(Array.isArray(a)){if(!a.includes(s[r])){e=!1;break}}else if(s[r]!==a){e=!1;break}}e&&(a&&r.push(a),s&&r.push(s))}return r},h=e=>{let t=y(u,e);return n(y(null==r?void 0:r.compoundVariants,e),t)},v=e=>{let t=h(e);if(!Array.isArray(t))return t;let r={};for(let e of t)if("string"==typeof e&&(r.base=w(r.base,e)(m)),"object"==typeof e)for(let[t,a]of Object.entries(e))r[t]=w(r[t],a)(m);return r},x=e=>{if(f.length<1)return null;let t={};for(let{slots:r=[],class:a,className:l,...o}of f){if(!s(o)){let t=!0;for(let r of Object.keys(o)){let a=p(r,e)[r];if(void 0===a||(Array.isArray(o[r])?!o[r].includes(a):o[r]!==a)){t=!1;break}}if(!t)continue}for(let e of r)t[e]=t[e]||[],t[e].push([a,l])}return t};if(!s(o)||!A){let e={};if("object"==typeof P&&!s(P))for(let t of Object.keys(P))e[t]=e=>{var r,a;return w(P[t],i(t,e),(null!=(r=v(e))?r:[])[t],(null!=(a=x(e))?a:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(m)};return e}return w(b,g?Object.keys(g).map(e=>l(e,g)):null,h(),null==e?void 0:e.class,null==e?void 0:e.className)(m)};return C.variantKeys=(()=>
1{if(!(!g||"object"!=typeof g))return Object.keys(g)})(),C.extend=r,C.base=b,C.slots=P,C.variants=g,C.defaultVariants=k,C.compoundSlots=f,C.compoundVariants=u,C}},85958:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(98889).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"}]])}},e=>{var t=t=>e(e.s=t);e.O(0,[7261,9634,2641,4152,7982,3991,2042,2070,9812,7464,5313,587,7218,7358],()=>t(31362)),_N_E=e.O()}]);

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.