1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7744],{1886:function(e,s,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/User/activate",function(){return o(9840)}])},8276:function(e,s){"use strict";s.Z={src:"/_next/static/media/old-bridge-with-ropes-american-flag.22bc8764.webp",height:1333,width:2e3,blurDataURL:"data:image/webp;base64,UklGRlYAAABXRUJQVlA4IEoAAABQAgCdASoIAAUAAkA4JZACdEyAev+Bt95qagAA/fA60T99eVCnXkugDgo2A3JETPHVeXX9qsFaRDzpT2Gl6/yQ41QyF9RDTKoAAA==",blurWidth:8,blurHeight:5}},9634:function(e,s,o){"use strict";o.d(s,{Z:function(){return m}});var t=o(5893),a=o(7294),n=o(1812),r={src:"/_next/static/media/unknown-user.d159ef5d.svg",height:24,width:24,blurWidth:0,blurHeight:0},l={src:"/_next/static/media/emoji-happy.c5c529d9.svg",height:60,width:60,blurWidth:0,blurHeight:0},c=o(5306),i=o.n(c),d=o(5675),u=o.n(d),_=o(1649),h=o(3037);let g=()=>{let e=(0,_.I0)(),{notifyMsg:s}=(0,_.v9)(e=>e.commonReducer),[o,c]=(0,a.useState)({open:"",message:"",messageType:"",btnType:""});return(0,a.useEffect)(()=>{if(s){let t=s&&!0===s.status?"Success":"User",a=s&&s.message,n=s&&!0===s.status?"".concat(i().sucess_content):"".concat(i().error_content);c({...o,messageType:t,message:a,btnType:n}),setTimeout(()=>{e((0,h.bi)({message:""}))},3e3)}},[s]),(0,t.jsx)(t.Fragment,{children:s&&""!==o.message&&(0,t.jsx)("div",{className:"".concat(i().loginModal," ",["modal"]," ",["show"]),"aria-labelledby":"contained-modal-title-vcenter",centered:!0,style:{display:"block"},children:(0,t.jsx)(n.Z.Dialog,{children:(0,t.jsx)(n.Z.Body,{className:"".concat(["flxrow"]," "),children:(0,t.jsx)("div",{className:"".concat(i().login_content," "),children:(0,t.jsxs)("div",{className:o.btnClass,children:[(0,t.jsx)("div",{className:"".concat(i().Icon," "),children:(0,t.jsx)(u(),{src:"Success"==o.messageType?l:r,alt:"",width:10,height:10})}),(0,t.jsx)("h4",{children:o.message})]})})})})})})};var m=g},3938:function(e,s,o){"use strict";var t=o(5893),a=o(7294),n=o(4853);let r=(0,a.forwardRef)((e,s)=>{let o=(0,a.useRef)(null);return(0,a.useImperativeHandle)(s,()=>({reset:()=>{o.current.reset()}})),(0,t.jsx)(n.Z,{ref:o,...e})});s.Z=r},9840:function(e,s,o){"use strict";o.r(s);var t=o(5893),a=o(7294),n=o(5273),r=o(682),l=o(5005),c=o(7346);o(8276);var i=o(371),d=o.n(i),u=o(9634);o(1664),o(5675);var _=o(3938),h=o(1163),g=o(1649),m=o(3113),C=o(6154);let f=()=>{let e=(0,g.I0)(),s=(0,h.useRouter)(),o=new URL(window.location.href).searchParams.get("token");(0,a.useEffect)(()=>{let e=async()=>{try{var e,t;let a=await C.Z.get("".concat("https://api.brooklynmls.com/api","/User/GetUserById"),{headers:{Authorization:"Bearer ".concat(o)}});(null==a?void 0:null===(e=a.data)||void 0===e?void 0:null===(t=e.Data)||void 0===t?void 0:t.IsActivated)===!0&&s.push("/User/profile")}catch(e){console.error("Error fetching data:",e)}};e()},[o]);let[i,f]=(0,a.useState)({Password:"",ConfirmPassword:""}),[w,p]=(0,a.useState)(""),[x,v]=(0,a.useState)(!1),[b,j]=(0,a.useState)(!1),[y,L]=(0,a.useState)(!1),[P,N]=(0,a.useState)(""),[A,Z]=(0,a.useState)(!1),{customercreatePassword:k}=(0,g.v9)(e=>e.customerReducer);(0,a.useEffect)(()=>{(null==k?void 0:k.Status)==200&&s.push("/User/profile")},[k]);let S=e=>{e?p(e):p("")};(0,a.useEffect)(()=>{let{token:e}=s.query;e?console.error("Token found in URL"):console.error("Token not found in URL")},[s.query]);let T=async e=>{let{name:s,value:o,type:t,checked:a}=e.target;f({...i,[s]:o}),"Password"===s?(o.length>=8?(v(!0),N("Password must be at least 8 characters long.")):(v(!1),N("")),o.length<8?N("Password must be at least 8 characters long."):N(""),0===o.length?Z(!0):Z(!1)):"ConfirmPassword"===s&&(i.Password===o?j(!0):j(!1))},M=o=>{if(o.preventDefault(),w){if(0===i.Password.length)N("Password is required.");else if(i.Password.length<8)N("Password must be at least 8 characters long.");else{N(""),L(!0);let o={Password:i.Password,ConfirmPassword:i.ConfirmPassword};e((0,m.BS)(o)).then(()=>{var e;L(!1),(null==k?void 0:null===(e=k.Data)||void 0===e?void 0:e.Status)===200&&s.push("/User/profile")})}}};(0,a.useEffect)(()=>(document.body.classList.remove("agent-layut"),()=>{document.body.classList.remove("agent-layout")}),[]);let[E,R]=(0,a.useState)(!1),[I,U]=(0,a.useState)(!1),B=()=>{U(!I)},D=()=>{U(!1)},[q,F]=(0,a.useState)(!1),[X,Q]=(0,a.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Z,{handleClick:B,addClass:I,handleRemoveClass:D}),(0,t.jsx)("section",{className:"".concat(["content_wrapper"]," ").concat([I?"show_menu":""]),children:(0,t.jsxs)("div",{className:"".concat(d().loginform_wrapper),children:[(0,t.jsx)("div",{className:"".concat(d()["login-bg"]," ").concat(d()["flat-bg"])}),(0,t.jsxs)(r.Z,{children:[(0,t.jsx)("div",{className:"".concat(d().login_form),children:(0,t.jsxs)("div",{className:"".concat(d().formbox),children:[(0,t.jsx)("h1",{children:"Welcome Back User"}),(0,t.jsx)("p",{children:"Please choose a password."}),(0,t.jsxs)("form",{action:"",onSubmit:e=>M(e),children:[(0,t.jsxs)("div",{className:"".concat(d().input_row),children:[(0,t.jsx)(c.Z.Control,{type:q?"text":"password",placeholder:"Password",className:x?"".concat(d()["form-control"]," ").concat(d().blur):"".concat(d()["form-control"]),value:null==i?void 0:i.Password,onChange:e=>T(e),name:"Password",required:!0}),(0,t.jsx)("label",{className:"".concat(d().eyeIcon),onClick:()=>F(!q),for:"toggle",children:(0,t.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("g",{clipPath:"url(#clip0_1427_17336)",children:(0,t.jsx)("path",{d:"M16.8887 7.69145C15.3823 4.75228 12.4001 2.76367 8.98534 2.76367C5.57061 2.76367 2.58756 4.75367 1.082 7.69173C1.01846 7.81742 0.985352 7.9563 0.985352 8.09714C0.985352 8.23799 1.01846 8.37686 1.082 8.50256C2.58839 11.4417 5.57061 13.4303 8.98534 13.4303C12.4001 13.4303 15.3831 11.4403 16.8887 8.50228C16.9522 8.37659 16.9853 8.23771 16.9853 8.09687C16.9853 7.95602 16.9522 7.81715 16.8887 7.69145ZM8.98534 12.097C8.19421 12.097 7.42085 11.8624 6.76306 11.4229C6.10526 10.9834 5.59257 10.3586 5.28982 9.62774C4.98707 8.89683 4.90785 8.09257 5.0622 7.31664C5.21654 6.54072 5.5975 5.82799 6.15691 5.26858C6.71632 4.70917 7.42905 4.3282 8.20497 4.17386C8.9809 4.01952 9.78517 4.09874 10.5161 4.40149C11.247 4.70424 11.8717 5.21693 12.3112 5.87472C12.7507 6.53252 12.9853 7.30588 12.9853 8.097C12.9856 8.62236 12.8823 9.14262 12.6814 9.62804C12.4804 10.1135 12.1858 10.5545 11.8143 10.926C11.4428 11.2975 11.0018 11.5921 10.5164 11.793C10.031 11.994 9.5107 12.0973 8.98534 12.097ZM8.98534 5.43034C8.74732 5.43366 8.51083 5.46908 8.28228 5.53562C8.47068 5.79164 8.56108 6.1067 8.5371 6.42366C8.51313 6.74062 8.37635 7.03849 8.15159 7.26325C7.92682 7.48802 7.62895 7.62479 7.31199 7.64877C6.99503 7.67275 6.67997 7.58234 6.42395 7.39395C6.27816 7.93106 6.30448 8.50036 6.49919 9.02173C6.69391 9.54309 7.04722 9.99028 7.50939 10.3003C7.97157 10.6104 8.51934 10.7677 9.0756 10.7501C9.63187 10.7325 10.1686 10.541 10.6103 10.2024C11.052 9.86376 11.3764 9.39518 11.5378 8.86256C11.6992 8.32994 11.6895 7.76011 11.5101 7.23328C11.3307 6.70644 10.9907 6.24913 10.5377 5.9257C10.0848 5.60228 9.54188 5.42903 8.98534 5.43034Z",fill:"#52616F"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1427_17336",children:(0,t.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.985352 0.0976562)"})})})]})}),P&&(0,t.jsx)("p",{className:"".concat(d()["error-message"]),children:P})]}),(0,t.jsxs)("div",{className:"".concat(d().input_row),children:[(0,t.jsx)(c.Z.Control,{type:X?"text":"password",placeholder:"Confirm Password",className:b?"".concat(d()["form-control"]," ").concat(d().blur):"".concat(d()["form-control"]),required:!0,name:"ConfirmPassword",value:null==i?void 0:i.ConfirmPassword,onChange:e=>T(e)}),(0,t.jsx)("label",{className:"".concat(d().eyeIcon),onClick:()=>Q(!X),for:"toggle",children:(0,t.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("g",{clipPath:"url(#clip0_1427_17336)",children:(0,t.jsx)("path",{d:"M16.8887 7.69145C15.3823 4.75228 12.4001 2.76367 8.98534 2.76367C5.57061 2.76367 2.58756 4.75367 1.082 7.69173C1.01846 7.81742 0.985352 7.9563 0.985352 8.09714C0.985352 8.23799 1.01846 8.37686 1.082 8.50256C2.58839 11.4417 5.57061 13.4303 8.98534 13.4303C12.4001 13.4303 15.3831 11.4403 16.8887 8.50228C16.9522 8.37659 16.9853 8.23771 16.9853 8.09687C16.9853 7.95602 16.9522 7.81715 16.8887 7.69145ZM8.98534 12.097C8.19421 12.097 7.42085 11.8624 6.76306 11.4229C6.10526 10.9834 5.59257 10.3586 5.28982 9.62774C4.98707 8.89683 4.90785 8.09257 5.0622 7.31664C5.21654 6.54072 5.5975 5.82799 6.15691 5.26858C6.71632 4.70917 7.42905 4.3282 8.20497 4.17386C8.9809 4.01952 9.78517 4.09874 10.5161 4.40149C11.247 4.70424 11.8717 5.21693 12.3112 5.87472C12.7507 6.53252 12.9853 7.30588 12.9853 8.097C12.9856 8.62236 12.8823 9.14262 12.6814 9.62804C12.4804 10.1135 12.1858 10.5545 11.8143 10.926C11.4428 11.2975 11.0018 11.5921 10.5164 11.793C10.031 11.994 9.5107 12.0973 8.98534 12.097ZM8.98534 5.43034C8.74732 5.43366 8.51083 5.46908 8.28228 5.53562C8.47068 5.79164 8.56108 6.1067 8.5371 6.42366C8.51313 6.74062 8.37635 7.03849 8.15159 7.26325C7.92682 7.48802 7.62895 7.62479 7.31199 7.64877C6.99503 7.67275 6.67997 7.58234 6.42395 7.39395C6.27816 7.93106 6.30448 8.50036 6.49919 9.02173C6.69391 9.54309 7.04722 9.99028 7.50939 10.3003C7.97157 10.6104 8.51934 10.7677 9.0756 10.7501C9.63187 10.7325 10.1686 10.541 10.6103 10.2024C11.052 9.86376 11.3764 9.39518 11.5378 8.86256C11.6992 8.32994 11.6895 7.76011 11.5101 7.23328C11.3307 6.70644 10.9907 6.24913 10.5377 5.9257C10.0848 5.60228 9.54188 5.42903 8.98534 5.43034Z",fill:"#52616F"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1427_17336",children:(0,t.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.985352 0.0976562)"})})})]})}),(null==i?void 0:i.ConfirmPassword)&&(null==i?void 0:i.Password)!==(null==i?void 0:i.ConfirmPassword)&&(0,t.jsx)("p",{className:"".concat(d()["error-message"]),children:(0,t.jsx)("small",{children:"This password should match your first password."})})]}),(0,t.jsx)("div",{className:"".concat(d().input_row," ").concat(d().reCaptcha),children:(0,t.jsx)(_.Z,{className:"reCaptcha",sitekey:"".concat("6LcNtbgmAAAAANO--H2qVMK0MrWZ6ZJ0wqo4PY2T"),onChange:S,value:w,size:"normal"})}),(0,t.jsxs)("div",{className:"".concat(d().input_row),children:[(0,t.jsx)(l.Z,{variant:"custom",className:"".concat(d()["btn-custom"]),onClick:e=>M(e),disabled:i.Password!==i.ConfirmPassword||!w,children:"Submit"}),y&&(0,t.jsx)("div",{className:"".concat(d()["loader-1"]," ").concat(d().center),children:(0,t.jsx)("span",{})})]})]})]})}),(0,t.jsx)(u.Z,{show:E,onHide:()=>R(!1)})]})]})})]})};s.default=f},371:function(e){e.exports={loginform_wrapper:"Login_loginform_wrapper__XlDLB","login-bg":"Login_login-bg__8Pbru","flat-bg":"Login_flat-bg__hnT5y",login_form:"Login_login_form__lEXOd",formbox:"Login_formbox__RNlt4",input_row:"Login_input_row__893pJ",eyeIcon:"Login_eyeIcon__AiRyF","form-control":"Login_form-control__DMQzi",login:"Login_login__q_k_L",blur:"Login_blur__w10fc",formLink:"Login_formLink__5EGou","btn-custom":"Login_btn-custom__aCjaG",btn:"Login_btn__RBA7n",disabled:"Login_disabled__5DFQt","loader-1":"Login_loader-1__WXsy_","loader-1-2":"Login_loader-1-2__9i5qQ","loader-1-3":"Login_loader-1-3__ebVT4",loader:"Login_loader__ZAxx_",reCaptcha:"Login_reCaptcha__upBTe","error-message":"Login_error-message__3oDFg"}},5306:function(e){e.exports={loginModal:"LoginModal_loginModal__NVk9Q","modal-body":"LoginModal_modal-body__2ET4Y",login_content:"LoginModal_login_content__q2CNf",Icon:"LoginModal_Icon__dNOI1",error_content:"LoginModal_error_content__if_1m",sucess_content:"LoginModal_sucess_content__D2x7Z"}}},function(e){e.O(0,[6814,5675,1664,7346,8085,1812,3453,1683,1169,97
174,2888,179],function(){return e(e.s=1886)}),_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.