1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{18763:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admission-professional/forgot-password",function(){return s(23607)}])},57786:function(e,t,s){"use strict";var a=s(85893),n=s(67294),r=s(96402);t.Z=e=>{const{variation:t="dashboard",size:s="medium",icon:i,loading:l,className:o,full:c,disabled:d,children:u,type:m="button",...x}=e,h=(0,n.useMemo)((()=>{switch(t){case"dashboard":case"landing":return"text-white";case"link":return"text-mainBlue"}}),[t]),p=(0,n.useMemo)((()=>{switch(t){case"dashboard":return"bg-actionGreen";case"secondary":return"bg-lightest3";case"landing":return"bg-mainBlue";case"link":return"bg-transparent"}}),[t]),f=(0,n.useMemo)((()=>{switch(s){case"small":return"px-8 pt-[10px] pb-[10px] text-title3";case"medium":return"px-20 pt-[14px] pb-[14px] text-description1";case"large":return"px-32 pt-[20px] pb-[20px] text-title2"}}),[s]),g=(0,n.useMemo)((()=>{switch(t){case"secondary":case"dashboard":return"rounded-lg";case"link":return"";case"landing":return"rounded-full"}}),[t]);return(0,a.jsx)("button",{type:m,disabled:d,className:(0,r.cn)("flex items-center justify-center font-semibold",c&&"w-full",d&&"opacity-50 cursor-not-allowed",h,p,f,g,o),...x,children:l?(0,a.jsx)("span",{className:"loader-white"}):(0,a.jsxs)(a.Fragment,{children:[u," ",i&&(0,a.jsx)("span",{className:"".concat(u&&"ml-4"),children:i})]})})}},1327:function(e,t,s){"use strict";var a=s(85893),n=(s(67294),s(83677)),r=s(57578),i=s(96402);t.Z=e=>{const{error:t,className:s,...l}=e;let o=(0,r.e)(t);return t||(o=" "),(0,a.jsx)(n.Z,{className:(0,i.cn)("text-negativeAction my-2 font-normal",s),...l,children:o})}},74469:function(e,t,s){"use strict";var a=s(85893),n=s(40592),r=s(82580);t.Z=e=>{const{name:t,className:s="",formatter:i,onTextChange:l,...o}=e,[c,d,u]=(0,r.U$)(t),m=d.error&&d.touched;return(0,a.jsxs)("div",{className:s,children:[(0,a.jsx)(n.Z,{...c,...o,onChange:e=>{let t=e.target.value;i&&"function"===typeof i&&(t=i(e.target.value)),o.max&&e.target.value>o.max&&(t=o.max.toString()),o.min&&e.target.value<o.min&&(t=o.min.toString()),u.setValue(t),null===l||void 0===l||l(t)}}),m&&(0,a.jsx)("p",{className:"text-negativeAction text-sm font-normal mt-1",children:d.error})]})}},31192:function(e,t,s){"use strict";var a=s(85893);s(67294);t.Z=function(){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("mask",{id:"mask0_506_56534",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse",children:(0,a.jsx)("path",{fill:"#D9D9D9",d:"M0 0H23.911V24H0z"})}),(0,a.jsx)("g",{mask:"url(#mask0_506_56534)",children:(0,a.jsx)("path",{fill:"green",d:"M9.963 16.4l-3.985-4L7.373 11l2.59 2.6L16.54 7l1.395 1.4-7.97 8z"})})]})}},40592:function(e,t,s){"use strict";var a=s(85893);s(67294);t.Z=e=>{const{label:t,name:s,disabled:n,className:r,inputClassName:i,formatter:l,labelClassName:o,...c}=e;return(0,a.jsxs)("div",{className:"".concat(r),children:[(0,a.jsx)("label",{className:"text-description1 text-darker block ".concat(o),htmlFor:s,children:t}),(0,a.jsx)("input",{id:s,name:s,disabled:n,className:"".concat(n?"bg-lightest3 cursor-not-allowed":"bg-white cursor-pointer"," border w-full border-lightest2 p-4 py-3 rounded-lg text-darker ").concat(i),onChange:e=>{var t;let s=e.target.value;l&&"function"===typeof l&&(s=l(e.target.value)),c.max&&e.target.value>c.max&&(s=c.max.toString()),c.min&&e.target.value<c.min&&(s=c.min.toString()),null===c||void 0===c||null===(t=c.onTextChange)||void 0===t||t.call(c,s)},...c})]})}},23449:function(e,t,s){"use strict";s.d(t,{d:function(){return n},e:function(){return r}});var a=s(16310);const n=a.Ry().shape({email:a.Z_().email("Invalid email").required("Email is required"),password:a.Z_().required("Password is required")}),r=a.Ry().shape({email:a.Z_().email("Invalid email").required("Email is required")})},95246:function(e,t,s){"use strict";var a=s(85893),n=s(25675),r=s.n(n);t.Z=()=>(0,a.jsx)("div",{className:"hidden md:block bg-[url('/assets/login-background.png')] bg-amber-600 bg-opacity-90 md:w-1/2 flex-grow h-[296px] md:h-screen bg-cover",children:(0,a.jsxs)("div",{className:"h-full md:h-screen bg-mainBlue opacity-[85%] flex flex-col py-5 md:pt-[40%] items-center",children:[(0,a.jsx)(r(),{src:"/assets/ccs-logo.png",height:70,width:250,alt:"Logo"}),(0,a.jsxs)("p",{className:"mt-10 md:text-2xl text-center font-montserrat font-light text-white",children:["Secure your child's future with",(0,a.jsx)("br",{})," a few clicks and taps."]})]})})},23607:function(e,t,s){"use strict";s.r(t);var a=s(85893),n=s(57786),r=s(1327),i=s(74469),l=s(31192),o=s(83677),c=s(1433),d=s(23449),u=s(95246),m=s(80841),x=s(82580),h=s(9008),p=s.n(h),f=s(41664),g=s.n(f),v=s(67294);const b={email:""};t.default=()=>{const[e,t]=(0,v.useState)(!1),[s,h]=(0,v.useState)(null),[f,j]=(0,v.useState)(!1),w=(0,m.v0)(),N=(0,x.TA)({initialValues:b,validateOnMount:!0,validationSchema:d.e,onSubmit:e=>{(async e=>{j(!0),(0,m.LS)(w,e).then((()=>{t(!0),j(!1)})).catch((e=>{h(e),(0,c.C)("Unable to send mail"),j(!1)}))})(e.email)}});return(0,a.jsxs)("div",{className:"h-screen flex",children:[(0,a.jsx)(p(),{children:(0,a.jsx)("title",{children:"Forgot Password"})}),(0,a.jsx)(u.Z,{}),(0,a.jsx)("div",{className:"px-6 lg:px-0 flex justify-center w-full mt-[15vh] lg:w-1/2",children:(0,a.jsxs)("div",{className:"lg:max-w-[430px] mx-auto",children:[(0,a.jsx)(o.Z,{className:"text-title1 sm:text-title0",children:"Admin Professionals"}),(0,a.jsx)(o.Z,{className:"text-title2 text-left mt-4",children:"Password Recovery"}),(0,a.jsx)(x.Hy,{value:N,children:(0,a.jsxs)(x.l0,{onSubmit:N.handleSubmit,onReset:N.handleReset,children:[e?(0,a.jsxs)("div",{className:"py-9 flex border-b border-lightest",children:[(0,a.jsx)(l.Z,{}),(0,a.jsxs)(o.Z,{variation:"description1",className:"text-positiveAction ml-2",children:["We\u2019ve sent instructions to ",N.values.email]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Z,{name:"email",className:"mt-8",label:"Your email",placeholder:"Enter your email"}),(0,a.jsx)(r.Z,{error:s}),(0,a.jsx)(n.Z,{type:"submit",className:"mt-9 w-full bg-actionGreen",variation:"landing",loading:f,children:"Send Instructions"})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsxs)(g(),{href:"/admission-professional/signup",className:"mt-6 flex font-bold text-description1 text-actionGreen hover:underline space-x-1",children:[(0,a.jsx)("span",{className:"text-darker",children:"Don\u2019t Have an account ?"})," ",(0,a.jsx)(o.Z,{variation:"description1",children:"Signup"})]}),(0,a.jsxs)(g(),{href:"/admission-professional/login",className:"mt-6 flex font-bold text-description1 text-actionGreen hover:underline space-x-1",children:[(0,a.jsx)("span",{className:"text-darker",children:"Already have an account ?"})," ",(0,a.jsx)(o.Z,{variation:"description1",children:"Sign In"})]})]})]})})]})})]})}},57578:function(e,t,s){"use strict";s.d(t,{e:function(){return r}});var a=s(29204),n=s(83977);const r=e=>{if(e instanceof a.d7){var t,s,r;const a=null===(t=e.response)||void 0===t||null===(s=t.data)||void 0===s||null===(r=s.error)||void 0===r?void 0:r.message;if(Array.isArray(a))return a.join("__#");if("string"===typeof a)return a}else{if(e instanceof n.ZR)return"auth/invalid-login-credentials"===e.code?"Please enter a valid email or password":"auth/invalid-email"===e.code?"Please enter a valid email":"auth/network-request-failed"===e.code?"Unable to connect with the server, please try again.":"auth/email-already-in-use"===e.code?"User with same email already exists.":"auth/user-not-found"===e.code?"User not found!":"auth/wrong-password"===e.code?"Incorrect password!":e.message;if(e instanceof Error)return e.message;if(null===e||void 0===e?void 0:e.message)return e.message}return"Unexpected error has occurred!"}},9008:function(e,t,s){e.exports=s(42636)},29204:function(e,t,s){"use strict";s.d(t,{d7:function(){return r}});var a=s(6154);const{Axios:n,AxiosError:r,CanceledError:i,isCancel:l,CancelToken:o,VERSION:c,all:d,Cancel:u,isAxiosError:m,spread:x,toFormData:h,AxiosHeaders:p,HttpStatusCode:f,formToJSON:g,mergeConfig:v}=a.Z}},function(e){e.O(0,[6310,2580,9774,2888,179],(function(){return t=18763,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.