PageSourceSearch

https://roofera.ai/_next/static/chunks/app/(auth)/auth/(with-nav)/login/page-8c7a54e47c1fab26.js

js roofera.ai collected 2026-10-05 14:43:12 UTC 13,885 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7175],{2903:(e,r,t)=>{"use strict";t.d(r,{C5:()=>g,MJ:()=>v,Rr:()=>h,eI:()=>p,lR:()=>x,lV:()=>d,zB:()=>u});var n=t(95155),a=t(12115),s=t(32467),l=t(22544),i=t(49498),o=t(90235);let d=l.Op,c=a.createContext({}),u=e=>{let{...r}=e;return(0,n.jsx)(c.Provider,{value:{name:r.name},children:(0,n.jsx)(l.xI,{...r})})},f=()=>{let e=a.useContext(c),r=a.useContext(m),{getFieldState:t,formState:n}=(0,l.xW)(),s=t(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=r;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...s}},m=a.createContext({}),p=a.forwardRef((e,r)=>{let{className:t,...s}=e,l=a.useId();return(0,n.jsx)(m.Provider,{value:{id:l},children:(0,n.jsx)("div",{ref:r,className:(0,i.cn)("space-y-2",t),...s})})});p.displayName="FormItem";let x=a.forwardRef((e,r)=>{let{className:t,...a}=e,{error:s,formItemId:l}=f();return(0,n.jsx)(o.J,{ref:r,className:(0,i.cn)("text-[#9393A3] pb-0 text-sm",s&&"text-destructive",t),htmlFor:l,...a})});x.displayName="FormLabel";let v=a.forwardRef((e,r)=>{let{...t}=e,{error:a,formItemId:l,formDescriptionId:i,formMessageId:o}=f();return(0,n.jsx)(s.DX,{ref:r,id:l,"aria-describedby":a?"".concat(i," ").concat(o):"".concat(i),"aria-invalid":!!a,...t})});v.displayName="FormControl";let h=a.forwardRef((e,r)=>{let{className:t,...a}=e,{formDescriptionId:s}=f();return(0,n.jsx)("p",{ref:r,id:s,className:(0,i.cn)("text-sm text-muted-foreground",t),...a})});h.displayName="FormDescription";let g=a.forwardRef((e,r)=>{let{className:t,children:a,...s}=e,{error:l,formMessageId:o}=f(),d=l?String(null==l?void 0:l.message):a;return d?(0,n.jsx)("p",{ref:r,id:o,className:(0,i.cn)("text-xs font-medium text-destructive",t),...s,children:d}):null});g.displayName="FormMessage"},14294:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var n=t(12115);let a=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)((e,r)=>{let{color:t="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...f}=e;return(0,n.createElement)("svg",{ref:r,...s,width:l,height:l,stroke:t,strokeWidth:o?24*Number(i)/Number(l):i,className:a("lucide",d),...f},[...u.map(e=>{let[r,t]=e;return(0,n.createElement)(r,t)}),...Array.isArray(c)?c:[c]])}),i=(e,r)=>{let t=(0,n.forwardRef)((t,s)=>{let{className:i,...o}=t;return(0,n.createElement)(l,{ref:s,iconNode:r,className:a("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),i),...o})});return t.displayName="".concat(e),t}},30926:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}});let n=t(41209),a=t(85153),s=t(77197)},32467:(e,r,t)=>{"use strict";t.d(r,{DX:()=>i,Dc:()=>d,TL:()=>l});var n=t(12115),a=t(94446),s=t(95155);function l(e){let r=function(e){let r=n.forwardRef((e,r)=>{let{children:t,...s}=e;if(n.isValidElement(t)){var l;let e,i,o=(l=t,(i=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(i=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),d=function(e,r){let t={...r};for(let n in r){let a=e[n],s=r[n];/^on[A-Z]/.test(n)?a&&s?t[n]=(...e)=>{let r=s(...e);return a(...e),r}:a&&(t[n]=a):"style"===n?t[n]={...a,...s}:"className"===n&&(t[n]=[a,s].filter(Boolean).join(" "))}return{...e,...t}}(s,t.props);return t.type!==n.Fragment&&(d.ref=r?(0,a.t)(r,o):o),n.cloneElement(t,d)}return n.Children.count(t)>1?n.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}(e),t=n.forwardRef((e,t)=>
1{let{children:a,...l}=e,i=n.Children.toArray(a),o=i.find(c);if(o){let e=o.props.children,a=i.map(r=>r!==o?r:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(r,{...l,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,s.jsx)(r,{...l,ref:t,children:a})});return t.displayName=`${e}.Slot`,t}var i=l("Slot"),o=Symbol("radix.slottable");function d(e){let r=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});return r.displayName=`${e}.Slottable`,r.__radixId=o,r}function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}},49498:(e,r,t)=>{"use strict";t.d(r,{A:()=>l,cn:()=>s});var n=t(2821),a=t(75889);function s(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,a.QP)((0,n.$)(r))}let l=(0,t(54152).d_)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",16)},56023:(e,r,t)=>{"use strict";t.d(r,{p:()=>l});var n=t(95155),a=t(12115),s=t(49498);let l=a.forwardRef((e,r)=>{let{className:t,type:a,...l}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground dark:placeholder:text-muted-foreground/50 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...l})});l.displayName="Input"},60308:(e,r,t)=>{Promise.resolve().then(t.bind(t,69632)),Promise.resolve().then(t.bind(t,83561))},69632:(e,r,t)=>{"use strict";t.d(r,{LoginForm:()=>b});var n=t(95155),a=t(49498),s=t(88793),l=t(99611),i=t(56023);t(90235);var o=t(30926);let d=(0,o.createServerReference)("404e873668b3da229f78ee5bec8e9ace8e4167fac1",o.callServer,void 0,o.findSourceMapURL,"login");var c=t(12115),u=t(52619),f=t.n(u),m=t(92033),p=t(22544),x=t(66942),v=t(98734),h=t(2903);let g=v.Ik({email:v.Yj().email({message:"Invalid email address."}),password:v.Yj().min(1,{message:"Password is required."})});function b(e){let{className:r,...t}=e,[o,u]=(0,c.useState)(null),[v,b]=(0,c.useState)(!1),y=(0,p.mN)({resolver:(0,x.u)(g),defaultValues:{email:"",password:""}}),j=async e=>{b(!0);let r=await d({email:e.email,password:e.password});b(!1),(null==r?void 0:r.error)?u(r.error):u(null)};return(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col gap-6",r),...t,children:[(0,n.jsxs)(l.Zp,{children:[(0,n.jsx)(l.aR,{className:"text-center",children:(0,n.jsx)(l.ZB,{className:"text-xl",children:"Welcome back"})}),(0,n.jsx)(l.Wu,{children:(0,n.jsxs)("div",{className:"grid gap-6",children:[o&&(0,n.jsx)("div",{className:"text-sm text-red-500 text-center",children:o}),(0,n.jsx)(h.lV,{...y,children:(0,n.jsxs)("form",{onSubmit:y.handleSubmit(j),className:"grid gap-6",children:[(0,n.jsx)(h.zB,{control:y.control,name:"email",render:e=>{let{field:r}=e;return(0,n.jsxs)(h.eI,{children:[(0,n.jsx)(h.lR,{children:"Email"}),(0,n.jsx)(h.MJ,{children:(0,n.jsx)(i.p,{id:"email",type:"email",placeholder:"[email protected]",required:!0,...r})}),(0,n.jsx)(h.C5,{})]})}}),(0,n.jsx)(h.zB,{control:y.control,name:"password",render:e=>{let{field:r}=e;return(0,n.jsxs)(h.eI,{children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(h.lR,{htmlFor:"password",children:"Password"}),(0,n.jsx)(f(),{href:"/auth/forgot-password",className:"ml-auto text-sm underline-offset-4 hover:underline",children:"Forgot your password?"})]}),(0,n.jsx)(h.MJ,{children:(0,n.jsx)(i.p,{id:"password",type:"password",placeholder:"********",required:!0,...r})}),(0,n.jsx)(h.C5,{})]})}}),(0,n.jsx)(s.$,{type:"submit",className:"w-full",disabled:v||y.formState.isSubmitting,children:v||y.formState.isSubmitting?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{className:"animate-spin"}),"Logging in..."]}):"Login"})]})}),(0,n.jsxs)("div",{className:"text-center text-sm",children:["Don't have an account?"," ",(0,n.jsx)(f(),{href:"/auth/signup",className:"underline underline-offset-4",children:"Sign up"})]})]})})]}),(0,n.jsxs)("div",{className:"text-balance text-center text-xs text-muted-foreground [&_a]:underline [&_a]:underline-offset-4 hover:[&_a]:text-primary",children:["By clicking continue, you agree to our ",(0,n.jsx)(f(),{href:"/terms",children:"Terms of Service"})," ","and ",(0,n.jsx)(f(),{href:"/privacy-policy",children:"Privacy Policy"}),"."]})]})}},83101:(e,r,t)=>{"use strict";t.d(r,{F:()=>l});var n=t(2821);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=n.$,l=(e,r)=>t=>{var n;if((null==r?void 0:r.variants)==null)return s(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:l,defaultVariants:i}=r,o=Object.keys(l).map(e=>{let r=null==t?void 0:t[e],n=null==i?void 0:i[e];if(null===r)return null;let s=a(r)||a(n);return l[e][s]}),d=t&&Object.entries(t).reduce((e,r)=>{let[t,n]=r;return void 0===n||(e[t]=n),e},{});return s(e,o,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,r)=>{let{class:t,className:n,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...d}[r]):({...i,...d})[r]===t})?[...e,t,n]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},83561:(e,r,t)=>{"use strict";t.d(r,{Logo:()=>i});var n=t(95155),a=t(52619),s=t.n(a);t(12115);
1var l=t(49498);let i=e=>{let{href:r="/",textSize:t="text-3xl"}=e;return(0,n.jsx)(s(),{href:r,className:"font-normal flex space-x-2 items-center text-sm text-black px-2 py-1 relative z-20",children:(0,n.jsxs)("span",{className:(0,l.cn)("font-medium text-black dark:text-white logo-font",t),children:["Roof",(0,n.jsx)("span",{className:"text-brand",children:"Era"})]})})}},88793:(e,r,t)=>{"use strict";t.d(r,{$:()=>d,r:()=>o});var n=t(95155),a=t(12115),s=t(32467),l=t(83101),i=t(49498);let o=(0,l.F)("inline-flex items-center justify-center gap-2 cursor-pointer whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",brand:"bg-brand-500 text-brand-foreground shadow-sm hover:bg-brand-500/80 border border-brand/60 hover:border-brand"},size:{default:"h-9 px-4 py-2",xs:"h-6 rounded-md px-2 text-xs",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,r)=>{let{className:t,variant:a,size:l,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,n.jsx)(u,{className:(0,i.cn)(o({variant:a,size:l,className:t})),ref:r,...c})});d.displayName="Button"},90235:(e,r,t)=>{"use strict";t.d(r,{J:()=>d});var n=t(95155),a=t(12115),s=t(10489),l=t(83101),i=t(49498);let o=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,n.jsx)(s.b,{ref:r,className:(0,i.cn)(o(),t),...a})});d.displayName=s.b.displayName},94446:(e,r,t)=>{"use strict";t.d(r,{s:()=>l,t:()=>s});var n=t(12115);function a(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function s(...e){return r=>{let t=!1,n=e.map(e=>{let n=a(e,r);return t||"function"!=typeof n||(t=!0),n});if(t)return()=>{for(let r=0;r<n.length;r++){let t=n[r];"function"==typeof t?t():a(e[r],null)}}}}function l(...e){return n.useCallback(s(...e),e)}},97602:(e,r,t)=>{"use strict";t.d(r,{hO:()=>o,sG:()=>i});var n=t(12115),a=t(47650),s=t(32467),l=t(95155),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let t=(0,s.TL)(`Primitive.${r}`),a=n.forwardRef((e,n)=>{let{asChild:a,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a?t:r,{...s,ref:n})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});function o(e,r){e&&a.flushSync(()=>e.dispatchEvent(r))}},99611:(e,r,t)=>{"use strict";t.d(r,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>l,aR:()=>i});var n=t(95155),a=t(12115),s=t(49498);let l=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:r,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow-sm",t),...a})});l.displayName="Card";let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:r,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",t),...a})});i.displayName="CardHeader";let o=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:r,className:(0,s.cn)("font-semibold leading-none tracking-tight",t),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:r,className:(0,s.cn)("text-sm text-muted-foreground",t),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:r,className:(0,s.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent",a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:r,className:(0,s.cn)("flex items-center p-6 pt-0",t),...a})}
1).displayName="CardFooter"}},e=>{e.O(0,[12836,52619,98734,61206,19001,28441,3364,77358],()=>e(e.s=60308)),_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.