PageSourceSearch

https://www.nakeddenver.com/_next/static/chunks/pages/plus/register-c887a0062f2acf09.js

js nakeddenver.com collected 2026-10-07 20:23:54 UTC 7,871 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="2888316a-7c35-463e-8f23-ffcd23105684",e._sentryDebugIdIdentifier="sentry-dbid-2888316a-7c35-463e-8f23-ffcd23105684")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3350],{26881:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/plus/register",function(){return t(62995)}])},14530:function(e,r,t){"use strict";t.d(r,{z:function(){return i}});var n=t(85893),a=t(67294);let s={primary:"bg-primary-600 text-white hover:bg-primary-700 focus:ring-primary-500",secondary:"border border-neutral-300 bg-[#fffdf9] text-neutral-900 hover:border-neutral-500 hover:bg-neutral-50 focus:ring-neutral-300",outline:"border border-neutral-900 text-neutral-900 hover:bg-neutral-900 hover:text-white focus:ring-neutral-900",ghost:"bg-transparent text-neutral-700 hover:bg-neutral-100 focus:ring-neutral-300",danger:"bg-red-600 text-white hover:bg-red-700 focus:ring-red-500"},l={sm:"min-h-10 text-sm px-4 py-2 rounded-sm",md:"min-h-12 px-6 py-3 rounded-sm",lg:"min-h-14 text-lg px-8 py-4 rounded-sm"};function Spinner(){return(0,n.jsxs)("svg",{className:"animate-spin h-4 w-4 shrink-0",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}let i=(0,a.forwardRef)((e,r)=>{let{variant:t="primary",size:a="md",loading:i=!1,icon:o,iconPosition:d="left",disabled:c,className:u="",children:m,...p}=e,f=c||i,h=["inline-flex items-center justify-center gap-2 font-semibold transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",s[t],l[a],f?"cursor-not-allowed opacity-60":"",u].filter(
1Boolean).join(" "),x="left"===d;return(0,n.jsxs)("button",{ref:r,disabled:f,className:h,...p,children:[i&&x&&(0,n.jsx)(Spinner,{}),!i&&o&&x&&(0,n.jsx)("span",{className:"inline-flex shrink-0",children:o}),m,i&&!x&&(0,n.jsx)(Spinner,{}),!i&&o&&!x&&(0,n.jsx)("span",{className:"inline-flex shrink-0",children:o}),i&&!m&&!o&&null]})});i.displayName="Button"},78024:function(e,r,t){"use strict";t.d(r,{I:function(){return l},K:function(){return i}});var n=t(85893),a=t(67294);let s={sm:"px-3 py-2 text-sm rounded-sm",md:"px-4 py-3 rounded-sm",lg:"px-5 py-4 text-lg rounded-sm"};function fieldClasses(e,r,t){return["w-full border bg-[#fffdf9] focus:outline-none focus:ring-2 focus:border-transparent transition-colors duration-200",s[e],r?"border-red-500 focus:ring-red-500":"border-neutral-300 focus:ring-primary-500",t].filter(Boolean).join(" ")}let l=(0,a.forwardRef)((e,r)=>{let{label:t,error:s,helperText:l,inputSize:i="md",required:o,className:d,id:c,...u}=e,m=(0,a.useId)(),p=null!=c?c:m,f="".concat(p,"-error"),h="".concat(p,"-helper"),x=[s?f:null,l?h:null].filter(Boolean).join(" ")||void 0;return(0,n.jsxs)("div",{children:[t&&(0,n.jsxs)("label",{htmlFor:p,className:"block text-sm font-medium text-neutral-700 mb-1",children:[t,o&&(0,n.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,n.jsx)("input",{ref:r,id:p,required:o,"aria-invalid":!!s||void 0,"aria-describedby":x,className:fieldClasses(i,!!s,d),...u}),s&&(0,n.jsx)("p",{id:f,className:"mt-1 text-sm text-red-500",children:s}),l&&!s&&(0,n.jsx)("p",{id:h,className:"mt-1 text-xs text-neutral-500",children:l})]})});l.displayName="Input";let i=(0,a.forwardRef)((e,r)=>{let{label:t,error:s,helperText:l,inputSize:i="md",required:o,className:d,id:c,...u}=e,m=(0,a.useId)(),p=null!=c?c:m,f="".concat(p,"-error"),h="".concat(p,"-helper"),x=[s?f:null,l?h:null].filter(Boolean).join(" ")||void 0;return(0,n.jsxs)("div",{children:[t&&(0,n.jsxs)("label",{htmlFor:p,className:"block text-sm font-medium text-neutral-700 mb-1",children:[t,o&&(0,n.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),(0,n.jsx)("textarea",{ref:r,id:p,required:o,"aria-invalid":!!s||void 0,"aria-describedby":x,className:fieldClasses(i,!!s,d),...u}),s&&(0,n.jsx)("p",{id:f,className:"mt-1 text-sm text-red-500",children:s}),l&&!s&&(0,n.jsx)("p",{id:h,className:"mt-1 text-xs text-neutral-500",children:l})]})});i.displayName="TextArea"},62995:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return PlusRegister}});var n=t(85893),a=t(67294),s=t(11163),l=t(41664),i=t.n(l),o=t(92891),d=t(14530),c=t(78024);function PlusRegister(){let e=(0,s.useRouter)(),r="artist"===e.query.flow,[t,l]=(0,a.useState)({name:"",email:"",password:"",confirmPassword:""}),[u,m]=(0,a.useState)(!1),[p,f]=(0,a.useState)(null),handleChange=e=>{l(r=>({...r,[e.target.name]:e.target.value}))},handleSubmit=async n=>{if(n.preventDefault(),f(null),t.password!==t.confirmPassword){f("Passwords do not match");return}if(t.password.length<12){f("Password must be at least 12 characters with uppercase, lowercase, numbers, and symbols");return}m(!0);try{let n=await fetch("/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t.name,email:t.email,password:t.password})}),a=await n.json();if(!n.ok){f(a.message||"Registration failed");return}let s="string"==typeof e.query.plan?e.query.plan:"",l="/plus/verify?email=".concat(encodeURIComponent(t.email)).concat(r?"&flow=artist":s?"&plan=".concat(encodeURIComponent(s)):"");e.push(l)}catch(e){f("An unexpected error occurred")}finally{m(!1)}};return(0,n.jsx)(o.Z,{title:r?"Artist account | Naked Denver":"Join NakedDenver+",noIndex:!0,children:(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-neutral-50 py-12 px-4",children:(0,n.jsxs)("div",{className:"max-w-md w-full space-y-6 p-8 bg-white rounded-2xl border border-neutral-200 shadow-sm",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("h1",{className:"text-3xl font-bold text-neutral-900 mb-2",children:r?"Create your artist account":"Join NakedDenver+"}),(0,n.jsx)("p",{className:"text-neutral-600",children:r?"A free account lets you save and track y
1our artist application.":"Create an account to use the Plus tools."})]}),p&&(0,n.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg text-sm",children:p}),(0,n.jsxs)("form",{onSubmit:handleSubmit,className:"space-y-5",children:[(0,n.jsx)(c.I,{label:"Full name",id:"name",name:"name",type:"text",value:t.name,onChange:handleChange,required:!0,placeholder:"Jane Smith",disabled:u,inputSize:"sm"}),(0,n.jsx)(c.I,{label:"Email",id:"email",name:"email",type:"email",value:t.email,onChange:handleChange,required:!0,placeholder:"[email protected]",disabled:u,inputSize:"sm"}),(0,n.jsx)(c.I,{label:"Password",id:"password",name:"password",type:"password",value:t.password,onChange:handleChange,required:!0,placeholder:"Min. 12 characters",disabled:u,inputSize:"sm",helperText:"At least 12 characters with uppercase, lowercase, numbers, and symbols."}),(0,n.jsx)(c.I,{label:"Confirm password",id:"confirmPassword",name:"confirmPassword",type:"password",value:t.confirmPassword,onChange:handleChange,required:!0,placeholder:"Repeat password",disabled:u,inputSize:"sm"}),(0,n.jsx)(d.z,{type:"submit",loading:u,className:"w-full",children:"Create Account"})]}),(0,n.jsxs)("p",{className:"text-center text-sm text-neutral-500",children:["Already have an account?"," ",(0,n.jsx)(i(),{href:r?"/plus/login?redirect=%2Fshop%2Fartists":"/plus/login",className:"text-primary-700 hover:text-primary-800 font-medium",children:"Sign in"})]})]})})})}}},function(e){e.O(0,[3996,4232,4593,2891,9774,2888,179],function(){return e(e.s=26881)}),_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.