1"use strict";(self.webpackChunkNioLandReact=self.webpackChunkNioLandReact||[]).push([[2964],{2525:(e,s,a)=>{a.d(s,{A:()=>n});var l=a(5043),i=a(7497),t=a(135),r=a(579);const n=function(e){let{title:s="Page Title Goes Here",layoutClass:a="layout-1",children:n}=e;return(0,l.useEffect)((()=>{document.title=`${s} - Weathersafe`}),[s]),(0,l.useEffect)((()=>{const e=document.querySelector("body");return a&&e.classList.add(a),()=>{a&&e.classList.remove(a)}}),[a]),(0,r.jsxs)(t.Ay,{children:[(0,r.jsxs)("div",{className:"nl-split-page flex-column flex-xl-row",children:[(0,r.jsx)("div",{className:"nl-split-col nl-auth-col justify-content-center",children:n}),(0,r.jsx)("div",{className:"nl-split-col nl-auth-col nl-auth-col-content bg-primary-gradient ",children:(0,r.jsx)("div",{className:"nl-auth-content mx-md-9 mx-xl-auto",children:(0,r.jsxs)("div",{className:"nl-auth-content-inner",children:[(0,r.jsx)(i.VN,{size:"xl",variant:"info",rounded:"circle",icon:"quote-left",className:"mb-5"}),(0,r.jsx)("h1",{className:"text-white mb-5",children:"We\u2019re building a better application now"}),(0,r.jsx)("div",{className:"nl-auth-quote ms-sm-5",children:(0,r.jsxs)("div",{className:"nl-auth-quote-inner pb-0",children:[(0,r.jsx)("p",{className:"text-white fs-8 opacity-75 mb-5",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Venenatis magna massa semper tristique. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Venenatis magna massa semper tristique dotset."}),(0,r.jsxs)("div",{className:"d-flex align-items-center gap-2",children:[(0,r.jsx)(i.VN,{size:"md",rounded:"circle",img:"../images/avatar/a.webp"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h5",{className:"text-white mb-0",children:"Wade Warren"}),(0,r.jsx)("span",{className:"fs-8 d-block text-white opacity-75",children:"3 months ago"})]})]})]})})]})})})]}),(0,r.jsx)(i.Zq,{})]})}},2964:(e,s,a)=>{a.r(s),a.d(s,{default:()=>x});a(5043);var l=a(4858),i=a(3814),t=a(1072),r=a(8602),n=a(3216),d=a(5475),c=a(2525),o=a(7497),m=a(579);function x(){var e,s;const a=(0,n.Zp)(),{register:x,handleSubmit:h,formState:{errors:u}}=(0,l.mN)({mode:"onSubmit",defaultValues:{email:"[email protected]",password:"123456"}});return(0,m.jsx)(c.A,{title:"Login",children:(0,m.jsx)(o.XI,{className:"nl-auth-form-card mx-md-9 mx-xl-auto",children:(0,m.jsxs)(o.XI.Body,{className:"p-lg-7",children:[(0,m.jsxs)("div",{className:"text-center pb-5",children:[(0,m.jsx)("div",{className:"mb-3",children:(0,m.jsx)(o.gs,{})}),(0,m.jsx)("h3",{children:"Login to your account"}),(0,m.jsxs)("p",{className:"fs-7",children:["Not a member yet? ",(0,m.jsx)(d.N_,{to:"/auth/sign-up",className:"btn-link text-primary",children:"Sign Up"}),"."]})]}),(0,m.jsx)(i.A,{onSubmit:h((e=>{"[email protected]"===e.email&&"123456"===e.password&&e.password.length>=6&&e.password.length<=12?a("/"):alert("Invalid email or password. Please try again.")})),children:(0,m.jsxs)(t.A,{className:"gy-4",children:[(0,m.jsxs)(r.A,{xs:"12",children:[(0,m.jsx)(o.xT.Label,{htmlFor:"email",label:"Email"}),(0,m.jsxs)(o.xT,{children:[(0,m.jsx)(o.xT.Input,{required:!0,id:"email",type:"email",htmlFor:"email",placeholder:"Enter your email",...x("email",{required:"Email is required",pattern:{value:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,message:"Invalid email address"}}),isInvalid:!!u.email}),u.email&&(0,m.jsx)(i.A.Control.Feedback,{type:"invalid",children:null===u||void 0===u||null===(e=u.email)||void 0===e?void 0:e.message})]})]}),(0,m.jsxs)(r.A,{xs:"12",children:[(0,m.jsx)(o.xT.Label,{htmlFor:"password",label:"Password"}),(0,m.jsxs)(o.xT,{children:[(0,m.jsx)(o.xT.Input,{required:!0,id:"password",type:"password",icon:"eye-fill after text-primary",placeholder:"Enter your password",...x("password",{required:"Password is required",minLength:{value:6,message:"Password must be at least 6 characters long"},maxLength:{value:12,message:"Password must not exceed 12 characters"}}),isInvalid:!!u.password}),u.password&&(0,m.jsx)(i.A.Control.Feedback,{type:"invalid",children:null===u||void 0===u||null===(s=u.password)||void 0===s?void 0:s.message})]})]}),(0,m.jsx)(r.A,{xs:"12",children:(0,m.jsxs)("div",{className:"d-flex flex-wrap align-items-center justify-content-between text-center mb-1",children:[(0,m.jsx)(o.xT.Check,{id:"check",label:"Remember Me"}),(0,m.jsx)(d.N_,{to:"/auth/forgot-password",className:"d-inline-block fs-7 fw-bold",children:"Forgot Password?"})]})}),(0,m.jsx)(r.A,{xs:"12",children:(0,m.jsx)("div",{className:"form-group",children:(0,m.jsx)(o.Hl,{type:"submit",label:"Login to Your Account",className:"btn-block btn-primary"})})})]})}),(0,m.jsx)("div",{className:"pt-4 text-center overflow-hidden",children:(0,m.jsx)("div",{className:"small nl-text-sep",children:(0,m.jsx)("span",{className:"bg-white px-2 text-uppercase",children:"or login
1with"})})}),(0,m.jsx)("div",{className:"pt-4",children:(0,m.jsx)(o.Hl,{href:"#",label:"Login With Google",img:"../images/icon/a.webp",className:"border border-lighter text-nowrap text-dark w-100"})})]})})})}}}]); 2//# sourceMappingURL=2964.6ea4370d.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.