PageSourceSearch

https://app.desiweds.com/_next/static/chunks/pages/Authentication/login-ceb90f5205bee8b8.js

js desiweds.com collected 2026-10-05 19:52:52 UTC 6,305 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="6444e724-53da-41f6-9ce5-0c4c8ccfd2b5",e._sentryDebugIdIdentifier="sentry-dbid-6444e724-53da-41f6-9ce5-0c4c8ccfd2b5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80802],{51561:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/Authentication/login",function(){return a(53185)}])},53185:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>E});var t=a(37876),n=a(89099),i=a(14232),r=a(98854),l=a(48185),c=a(48230),o=a.n(c),d=a(16373),u=a(25520),m=a(12912),h=a(40555),g=a(21578),x=a(33181),v=a(29014),f=a(77252),p=a(46649),j=a(99813),w=a(57993),y=a(90601),N=a(27508);let _={email:"",password:""},b=(e,s)=>{var a;let t=null==s||null==(a=s.value.target)?void 0:a.value;switch(s.type){case"email":return t=(t||"").trim().toLowerCase(),{...e,email:t};case"password":return{...e,password:t};default:return e}},A=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),E=()=>{let e=(0,r.wA)(),s=(0,n.useRouter)(),[a,c]=(0,i.useState)(!1),[E,k]=(0,i.useState)(!1),[I,P]=(0,i.useState)(!0),[C,S]=(0,i.useState)(!1),[L,B]=(0,i.useReducer)(b,_),{isInactive:F}=(0,N.J)(),{user:D,loading:M,error:T}=(0,r.d4)(e=>e.user),O=null===h.j2||void 0===h.j2?void 0:h.j2.currentUser;(0,i.useEffect)(()=>{if((null==D?void 0:D.accountStatus)==="inactive")return void s.push("/account-expired");(null==D?void 0:D.email)&&R()},[D]);let R=async()=>{if(D.email&&Object.keys(await (0,m.ht)(D.email)).length){let e=await (0,m.Fv)(null==O?void 0:O.email.toLowerCase()),a=await (0,f._L)("MainEvents",e);(null==a?void 0:a.disabled)?(S(!0),c(!1)):(0,p.F)(s)}},Z=()=>{S(!1)};(0,i.useEffect)(()=>{"EMAIL_EXISTS"!==T.code&&(null==T?void 0:T.message)&&c(!1)},[T]),(0,i.useEffect)(()=>{e((0,g.cL)())},[]);let J=async()=>{k(!0),(()=>{let e=!0;return L.email&&A(L.email)||(e=!1),L.password||(e=!1),e})()&&(c(!0),await e((0,u.Jv)(L)))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.A,{children:"Login"}),(0,t.jsxs)("div",{className:"login-wrp gradientBg ",children:[(0,t.jsxs)("div",{className:"loginLeft",children:[(0,t.jsx)("figure",{children:(0,t.jsx)("img",{src:"/images/login-fig-mob.png",alt:"login"})}),(0,t.jsx)(d.A,{})]}),(0,t.jsxs)("div",{className:"loginRight",children:[(0,t.jsx)(d.A,{}),(0,t.jsxs)("div",{className:"loginForm",children:[(0,t.jsxs)("div",{className:"cmnInput status-error",children:[(0,t.jsxs)("label",{children:["Email",(0,t.jsx)("sup",{className:"mandatoryIcon",children:"*"})," "]}),(0,t.jsxs)("div",{className:"form-field",children:[(0,t.jsx)("input",{type:"email",name:"email",title:"",value:L.email,onChange:e=>B({type:"email",value:e}),className:"form-control"}),E&&(!L.email||!A(L.email))&&(0,t.jsx)(j.A,{text:L.email?"Invalid email format":"Email is required"}),A(L.email)&&(0,t.jsx)("span",{className:"validationCheck",children:(0,t.jsx)("img",{src:"/images/input-check.svg",alt:"input check"})})]})]}),(0,t.jsxs)("div",{className:"cmnInput status-error",children:[(0,t.jsxs)("label",{children:["Password ",(0,t.jsx)("sup",{className:"mandatoryIcon",children:"*"})]}),(0,t.jsxs)("div",{className:"form-field",children:[(0,t.jsx)("input",{type:I?"password":"text",name:"password",value:L.password,onChange:e=>B({type:"password",value:e}),className:"form-control"}),(0,t.jsx)("span",{className:E&&!L.password?"validationCheck noSpace ":" validationCheck eyeIcon",onClick:()=>{P(!I)},children:(0,t.jsx)("img",{alt:"password",src:I?"/images/eye-cross.svg":"/images/eye.svg"})}),E&&!L.password&&(0,t.jsx)(j.A,{text:!L.password&&"Password is required"})]})]}),(0,t.jsx)("div",{className:"text-end",children:(0,t.jsx)(o(),{href:"/Authentication/Forgot-Password/Send-Email",legacyBehavior:!0,children:(0,t.jsx)("a",{className:"forgotLink",children:"Forgot Password?"})})})]}),(0,t.jsxs)("div",{className:"loginBtn-wrp direction status-error positionFixed",children:[(0,t.jsxs)("button",{className:"bgBtn orangebgBtn",onClick:()=>J(),children:["Sign In",a&&(0,t.jsx)(l.A,{})]}),(0,t.jsxs)("h6",{children:["Don't have an account? ",(0,t.jsx)(o(),{href:y.BV.JOINS_US,legacyBehavior:!0,children:(0,t.jsx)("a",{children:"Join Us"})})]}),(0,t.jsx)(w.default,{from:"login"})]})]})]}),C&&(0,t.jsx)(x.A,{head:"Warning!",body:"Your account has been deactivated by DesiWeds. Please contact admin to activate your account",buttonContent:"Okay",buttonActiom:Z,closeButton:Z})]})}},99813:(e,s,a)=>{"use strict";a.d(s,{A:()=>c});var t=a(37876),n=a(14232),i=a(95062),r=a.n(i);let l=e=>{let{className:s="",text:a=""}
1=e,[i,r]=(0,n.useState)(!0),l=(0,n.useRef)(null),c=(0,n.useRef)(!1),o=e=>{c.current&&l.current&&!l.current.contains(e.target)&&r(!1)};return((0,n.useEffect)(()=>{c.current=!1;let e=setTimeout(()=>{c.current=!0},300);return document.addEventListener("touchstart",o),()=>{clearTimeout(e),document.removeEventListener("touchstart",o)}},[i]),a)?(0,t.jsxs)("div",{ref:l,className:"errormsg ".concat(s),children:[(0,t.jsx)("span",{onClick:e=>{l.current?r(!i):r(!1)},children:(0,t.jsxs)("svg",{id:"info_1_","data-name":"info (1)",xmlns:"http://www.w3.org/2000/svg",width:"17.334",height:"17.8",viewBox:"0 0 17.334 17.334",fill:"#AA336A",children:[(0,t.jsx)("path",{id:"Path_31916","data-name":"Path 31916",d:"M236.112,107.39a.722.722,0,1,1-.722-.722A.722.722,0,0,1,236.112,107.39Zm0,0",transform:"translate(-226.723 -103.057)"}),(0,t.jsx)("path",{id:"Path_31917","data-name":"Path 31917",d:"M204.474,199.222a.542.542,0,0,1-.542-.542v-5.6h-.722a.542.542,0,0,1,0-1.083h1.264a.542.542,0,0,1,.542.542v6.139A.542.542,0,0,1,204.474,199.222Zm0,0",transform:"translate(-195.807 -185.5)"}),(0,t.jsx)("path",{id:"Path_31918","data-name":"Path 31918",d:"M8.667,17.334a8.667,8.667,0,1,1,8.667-8.667A8.677,8.677,0,0,1,8.667,17.334Zm0-16.251a7.584,7.584,0,1,0,7.584,7.584A7.592,7.592,0,0,0,8.667,1.083Zm0,0"}),(0,t.jsx)("path",{id:"Path_31919","data-name":"Path 31919",d:"M195.792,374.415h-3.25a.542.542,0,1,1,0-1.083h3.25a.542.542,0,1,1,0,1.083Zm0,0",transform:"translate(-185.5 -360.693)"})]})}),(0,t.jsx)("span",{className:"errortxt ".concat(i?"open":"close"),children:a})]}):null};l.propTypes={className:r().string,text:r().string};let c=l}},e=>{e.O(0,[57993,90636,46593,38792],()=>e(e.s=51561)),_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.