1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9382],{12827:(e,r,t)=>{t.d(r,{A:()=>A});var n,i=t(12115),o=t(2821),a=t(3752),l=t(443),s=t(80317),d=t(29848),u=t(41e3),c=t(49714),p=t(62257),m=t(57179),h=t(35633),f=t(95155);let v=(0,c.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r["position".concat((0,l.A)(t.position))],!0===t.disablePointerEvents&&r.disablePointerEvents,r[t.variant]]}})((0,p.A)(e=>{let{theme:r}=e;return{display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(r.vars||r).palette.action.active,variants:[{props:{variant:"filled"},style:{["&.".concat(h.A.positionStart,"&:not(.").concat(h.A.hiddenLabel,")")]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}})),A=i.forwardRef(function(e,r){let t=(0,m.b)({props:e,name:"MuiInputAdornment"}),{children:c,className:p,component:A="div",disablePointerEvents:x=!1,disableTypography:g=!1,position:y,variant:b,...w}=t,j=(0,u.A)()||{},S=b;b&&j.variant,j&&!S&&(S=j.variant);let M={...t,hiddenLabel:j.hiddenLabel,size:j.size,disablePointerEvents:x,position:y,variant:S},C=(e=>{let{classes:r,disablePointerEvents:t,hiddenLabel:n,position:i,size:o,variant:s}=e,d={root:["root",t&&"disablePointerEvents",i&&"position".concat((0,l.A)(i)),s,n&&"hiddenLabel",o&&"size".concat((0,l.A)(o))]};return(0,a.A)(d,h.P,r)})(M);return(0,f.jsx)(d.A.Provider,{value:null,children:(0,f.jsx)(v,{as:A,ownerState:M,className:(0,o.A)(C.root,p),ref:r,...w,children:"string"!=typeof c||g?(0,f.jsxs)(i.Fragment,{children:["start"===y?n||(n=(0,f.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"â"})):null,c]}):(0,f.jsx)(s.A,{color:"textSecondary",children:c})})})})},29310:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(35355),i=t(95155);let o=(0,n.A)((0,i.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},35633:(e,r,t)=>{t.d(r,{A:()=>a,P:()=>o});var n=t(34922),i=t(28286);function o(e){return(0,i.Ay)("MuiInputAdornment",e)}let a=(0,n.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"])},36540:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(12115);function i(){let e=(0,n.useRef)(!0);return(0,n.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},46222:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95155),i=t(68775),o=t(65678);function a(e){let r,t,{children:a,type:l="scale",direction:s="right",offset:d=10,scale:u={hover:1,tap:.9}}=e;switch(s){case"up":case"left":r=d,t=0;break;default:r=0,t=d}let[c,p]=(0,i.Y)(r,t),[m,h]=(0,i.Y)(r,t);switch(l){case"rotate":return(0,n.jsx)(o.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:a});case"slide":if("up"===s||"down"===s)return(0,n.jsx)(o.P.div,{animate:{y:void 0!==m?m:""},onHoverEnd:()=>h(),onHoverStart:()=>h(),children:a});return(0,n.jsx)(o.P.div,{animate:{x:void 0!==c?c:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:a});default:return"number"==typeof u&&(u={hover:u,tap:u}),(0,n.jsx)(o.P.div,{whileHover:{scale:null==u?void 0:u.hover},whileTap:{scale:null==u?void 0:u.tap},children:a})}}},62995:(e,r,t)=>{t.d(r,{A:()=>A});var n=t(12115),i=t(2821),o=t(3752),a=t(49714),l=t(57179),s=t(58157),d=t(443),u=t(47879),c=t(29848),p=t(34922),m=t(28286);function h(e){return(0,m.Ay)("MuiFormControl",e)}(0,p.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var f=t(95155);let v=(0,a.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r["margin".concat((0,d.A)(t.margin))],t.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),A=n.forwardRef(function(e,r){let t,a=(0,l.b)({props:e,name:"MuiFormControl"}),{children:p,className:m,color:A="primary",component:x="div",disabled:g=!1,error:y=!1,focused:b,fullWidth:w=!1,hiddenLabel:j=!1,margin:S="none",required:M=!1,size:C="medium",variant:P="outlined",...z}=a,E={...a,color:A,component:x,disabled:g,error:y,fullWidth:w,hiddenLabel:j,margin:S,required:M,size:C,variant:P},k=(e=>{let{classes:r,margin:t,fullWidth:n}=e,i={root:["root","none"!==t&&"margin".concat((0,d.A)(t)),n&&"fullWidth"]};return(0,o.A)(i,h,r)})(E),[R,N]=n.useState(()=>{let e=!1;
1return p&&n.Children.forEach(p,r=>{if(!(0,u.A)(r,["Input","Select"]))return;let t=(0,u.A)(r,["Select"])?r.props.input:r;t&&(0,s.gr)(t.props)&&(e=!0)}),e}),[F,I]=n.useState(()=>{let e=!1;return p&&n.Children.forEach(p,r=>{(0,u.A)(r,["Input","Select"])&&((0,s.lq)(r.props,!0)||(0,s.lq)(r.props.inputProps,!0))&&(e=!0)}),e}),[T,q]=n.useState(!1);g&&T&&q(!1);let W=void 0===b||g?T:b;n.useRef(!1);let H=n.useCallback(()=>{I(!0)},[]),L=n.useCallback(()=>{I(!1)},[]),O=n.useMemo(()=>({adornedStart:R,setAdornedStart:N,color:A,disabled:g,error:y,filled:F,focused:W,fullWidth:w,hiddenLabel:j,size:C,onBlur:()=>{q(!1)},onFocus:()=>{q(!0)},onEmpty:L,onFilled:H,registerEffect:t,required:M,variant:P}),[R,A,g,y,F,W,w,j,t,L,H,M,C,P]);return(0,f.jsx)(c.A.Provider,{value:O,children:(0,f.jsx)(v,{as:x,ownerState:E,className:(0,i.A)(k.root,m),ref:r,...z,children:p})})})},65654:(e,r,t)=>{t.d(r,{A:()=>g});var n,i=t(12115),o=t(2821),a=t(3752),l=t(28726),s=t(41e3),d=t(49714),u=t(62257),c=t(57179),p=t(443),m=t(34922),h=t(28286);function f(e){return(0,h.Ay)("MuiFormHelperText",e)}let v=(0,m.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var A=t(95155);let x=(0,d.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,t.size&&r["size".concat((0,p.A)(t.size))],t.contained&&r.contained,t.filled&&r.filled]}})((0,u.A)(e=>{let{theme:r}=e;return{color:(r.vars||r).palette.text.secondary,...r.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(v.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(v.error)]:{color:(r.vars||r).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:e=>{let{ownerState:r}=e;return r.contained},style:{marginLeft:14,marginRight:14}}]}})),g=i.forwardRef(function(e,r){let t=(0,c.b)({props:e,name:"MuiFormHelperText"}),{children:i,className:d,component:u="p",disabled:m,error:h,filled:v,focu
1sed:g,margin:y,required:b,variant:w,...j}=t,S=(0,s.A)(),M=(0,l.A)({props:t,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),C={...t,component:u,contained:"filled"===M.variant||"outlined"===M.variant,variant:M.variant,size:M.size,disabled:M.disabled,error:M.error,filled:M.filled,focused:M.focused,required:M.required};delete C.ownerState;let P=(e=>{let{classes:r,contained:t,size:n,disabled:i,error:o,filled:l,focused:s,required:d}=e,u={root:["root",i&&"disabled",o&&"error",n&&"size".concat((0,p.A)(n)),t&&"contained",s&&"focused",l&&"filled",d&&"required"]};return(0,a.A)(u,f,r)})(C);return(0,A.jsx)(x,{as:u,className:(0,o.A)(P.root,d),ref:r,...j,ownerState:C,children:" "===i?n||(n=(0,A.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"â"})):i})})},68775:(e,r,t)=>{t.d(r,{Y:()=>i});var n=t(12115);function i(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];let i=(0,n.useRef)(0),[o,a]=(0,n.useState)(r[i.current]);return[o,(0,n.useCallback)(e=>{i.current="number"!=typeof e?((e,r,t)=>{let n=r-e;return((t-e)%n+n)%n+e})(0,r.length,i.current+1):e,a(r[i.current])},[r.length,...r])]}},82418:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(12115);function i(e){let{controlled:r,default:t,name:i,state:o="value"}=e,{current:a}=n.useRef(void 0!==r),[l,s]=n.useState(t),d=n.useCallback(e=>{a||s(e)},[]);return[a?r:l,d]}},90973:(e,r,t)=>{t.r(r),t.d(r,{default:()=>P});var n=t(95155),i=t(52619),o=t.n(i),a=t(20063),l=t(12115),s=t(27855),d=t(13664),u=t(41477),c=t(65654),p=t(33408),m=t(60193),h=t(12827),f=t(68060),v=t(21844),A=t(80317),x=t(41574),g=t(35068),y=t(10128),b=t(46222),w=t(91912),j=t(90854),S=t(36540),M=t(92265),C=t(29310);function P(e){let{...r}=e,{login:t,isLoggedIn:i}=(0,j.A)(),P=(0,S.A)(),[z,E]=(0,l.useState)(!0),[k,R]=(0,l.useState)(!1),N=()=>{R(!k)},F=e=>{e.preventDefault()},I=(0,a.useSearchParams)().get("auth");return(0,n.jsx)(y.l1,{initialValues:{email:"[email protected]",password:"123456",submit:null},validationSchema:g.Ik().shape({email:g.Yj().email("Must be a valid email").max(255).required("Email is required"),password:g.Yj().required("Password is required").test("no-leading-trailing-whitespace","Password can not start or end with spaces",e=>e===e.trim()).max(10,"Password must be less than 10 characters")}),onSubmit:async(e,r)=>{let{setErrors:n,setStatus:i,setSubmitting:o}=r;try{let r=e.email.trim();await (null==t?void 0:t(r,e.password)),P.current&&(i({success:!0}),o(!1))}catch(e){console.error(e),P.current&&(i({success:!1}),n({submit:e.message}),o(!1))}},children:e=>{let{errors:t,handleBlur:a,handleChange:l,handleSubmit:g,isSubmitting:y,touched:j,values:S}=e;return(0,n.jsxs)("form",{noValidate:!0,onSubmit:g,...r,children:[(0,n.jsxs)(w.A,{fullWidth:!0,error:!!(j.email&&t.email),children:[(0,n.jsx)(f.A,{htmlFor:"outlined-adornment-email-login",children:"Email Address / Username"}),(0,n.jsx)(v.A,{id:"outlined-adornment-email-login",type:"email",value:S.email,name:"email",onBlur:a,onChange:l,sx:{"& .MuiOutlinedInput-notchedOutline":{borderWidth:2,borderColor:"border.main"}}}),j.email&&t.email&&(0,n.jsx)(c.A,{error:!0,id:"standard-weight-helper-text-email-login",children:t.email})]}),(0,n.jsxs)(w.A,{fullWidth:!0,error:!!(j.password&&t.password),children:[(0,n.jsx)(f.A,{htmlFor:"outlined-adornment-password-login",children:"Password"}),(0,n.jsx)(v.A,{id:"outlined-adornment-password-login",type:k?"text":"password",value:S.password,name:"password",onBlur:a,onChange:l,endAdornment:(0,n.jsx)(h.A,{position:"end",children:(0,n.jsx)(m.A,{"aria-label":"toggle password visibility",onClick:N,onMouseDown:F,edge:"end",size:"large",children:k?(0,n.jsx)(M.A,{}):(0,n.jsx)(C.A,{})})}),label:"Password",sx:{"& .MuiOutlinedInput-notchedOutline":{borderWidth:2,borderColor:"border.main"}}}),j.password&&t.password&&(0,n.jsx)(c.A,{error:!0,id:"standard-weight-helper-text-password-login",children:t.password})]}),(0,n.jsxs)(p.A,{container:!0,sx:{alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)(p.A,{children:(0,n.jsx)(u.A,{control:(0,n.jsx)(d.A,{checked:z,onChange:e=>E(e.target.checked),name:"checked",color:"primary"}),label:"Keep me logged in"})}),(0,n.jsx)(p.A,{children:(0,n.jsx)(A.A,{variant:"subtitle1",component:o(),href:i?"/pages/forgot-password/forgot-password3":I?"/forgot-password?auth=".concat(I
1):"/forgot-password",sx:{textDecoration:"none",color:"secondary.main"},children:"Forgot Password?"})})]}),t.submit&&(0,n.jsx)(x.default,{sx:{mt:3},children:(0,n.jsx)(c.A,{error:!0,children:t.submit})}),(0,n.jsx)(x.default,{sx:{mt:2},children:(0,n.jsx)(b.A,{children:(0,n.jsx)(s.A,{color:"secondary",disabled:y,fullWidth:!0,size:"large",type:"submit",variant:"contained",children:"Sign In"})})})]})}})}},91912:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(49714),i=t(62995);let o=(0,n.Ay)(i.A)(()=>({marginTop:8,marginBottom:8,"& > label":{top:23,left:0,'&[data-shrink="false"]':{top:5}},"& > div > input, & .MuiSelect-select":{padding:"30.5px 14px 11.5px !important"},"& legend":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{top:0}}))},92265:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(35355),i=t(95155);let o=(0,n.A)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},92414:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(2821);function i(e,r){if(!e)return r;function t(e,r){let t={};return Object.keys(r).forEach(n=>{(function(e,r){let t=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&t>=65&&t<=90&&"function"==typeof r})(n,r[n])&&"function"==typeof e[n]&&(t[n]=function(){for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];e[n](...i),r[n](...i)})}),t}if("function"==typeof e||"function"==typeof r)return i=>{let o="function"==typeof r?r(i):r,a="function"==typeof e?e({...i,...o}):e,l=(0,n.A)(null==i?void 0:i.className,null==o?void 0:o.className,null==a?void 0:a.className),s=t(a,o);return{...o,...a,...s,...!!l&&{className:l},...(null==o?void 0:o.style)&&(null==a?void 0:a.style)&&{style:{...o.style,...a.style}},...(null==o?void 0:o.sx)&&(null==a?void 0:a.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let i=t(e,r),o=(0,n.A)(null==r?void 0:r.className,null==e?void 0:e.className);return{...r,...e,...i,...!!o&&{className:o},...(null==r?void 0:r.style)&&(null==e?void 0:e.style)&&{style:{...r.style,...e.style}},...(null==r?void 0:r.sx)&&(null==e?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}},96769:(e,r,t)=>{t.d(r,{A:()=>n});let n=t(82418).A}}]);
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.