1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{36429:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(10510)}])},60445:function(e,t,r){"use strict";var n=r(85893);t.Z=function(e){var t=e.logo,r=e.children;return(0,n.jsxs)("div",{className:"min-h-screen max-h-full flex flex-col sm:justify-center items-center pt-6 bg-gray-100",children:[(0,n.jsx)("div",{children:t}),(0,n.jsx)("div",{className:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md sm:rounded-lg mb-6",children:r})]})}},61684:function(e,t,r){"use strict";var n=r(41799),s=r(69396),i=r(99534),o=r(85893);t.Z=function(e){var t=e.status,r=e.className,l=(0,i.Z)(e,["status","className"]);return(0,o.jsx)(o.Fragment,{children:t&&(0,o.jsx)("div",(0,s.Z)((0,n.Z)({className:"".concat(r," font-medium text-sm text-green-600")},l),{children:t}))})}},46810:function(e,t,r){"use strict";var n=r(41799),s=r(69396),i=r(99534),o=r(85893);t.Z=function(e){var t=e.errors,r=void 0===t?[]:t,l=(0,i.Z)(e,["errors"]);return(0,o.jsx)(o.Fragment,{children:r.length>0&&(0,o.jsxs)("div",(0,s.Z)((0,n.Z)({},l),{children:[(0,o.jsx)("div",{className:"font-medium text-red-600",children:"Whoops! Something went wrong."}),(0,o.jsx)("ul",{className:"mt-3 list-disc list-inside text-sm text-red-600",children:r.map((function(e){return(0,o.jsx)("li",{children:e},e)}))})]}))})}},46675:function(e,t,r){"use strict";var n=r(41799),s=r(69396),i=r(99534),o=r(85893),l=r(18498),a=r.n(l);t.Z=function(e){var t=e.type,r=void 0===t?"submit":t,l=(e.bgcolor,e.className),c=e.loading,d=(0,i.Z)(e,["type","bgcolor","className","loading"]);return(0,o.jsx)("button",(0,s.Z)((0,n.Z)({type:r,className:"".concat(l," inline-flex items-center px-4 py-2 bg-blue-500 hover:bg-blue-700 active:bg-blue-900 border focus:border-blue-900 border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring ring-blue-300 disabled:opacity-25 transition ease-in-out duration-150"),disabled:c},d),{children:c?(0,o.jsx)(a(),{color:"#ffff",loading:c,size:12}):null===d||void 0===d?void 0:d.children}))}},71581:function(e,t,r){"use strict";var n=r(85893),s=r(15725),i=r(67294),o=r(34021),l=r(14848);t.Z=function(){var e=(0,l.Z)(),t=e.show,r=e.body,a=e.setBody,c=e.toggle,d=(0,i.useState)(!1),u=d[0],m=(d[1],function(){a({title:"How to Register on MyEDGE LEARNING",content:(0,n.jsx)("object",{className:"w-full h-full",data:"".concat(s.basePath,"/register_help_pdf.pdf"),type:"application/pdf",children:(0,n.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,n.jsx)("div",{children:"Flyer"})})}),modalOuterContainer:"w-11/12 md:w-7/12 h-full py-5",modalContainer:"h-full rounded-lg",modalBody:"overflow-y-auto scrollbar scrollbar-thin scrollbar-thumb-orange-200 border-4 border-gray-100 bg-gray-50 pr-4"}),c()}),f=(0,i.useState)(!1),h=f[0],v=f[1];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"fixed bottom-6 right-0",children:[(0,n.jsx)("div",{onClick:function(){return m()},className:"absolute -mt-36 -ml-32 w-96 z-0",children:(0,n.jsx)("img",{width:200,src:"".concat(s.basePath,"/register_flyer.png"),hidden:!!u||!h})}),(0,n.jsx)("button",{onMouseOver:function(){return v(!0)},onMouseLeave:function(){return v(!1)},onClick:function(){return m()},className:"mr-10",children:(0,n.jsx)("img",{className:"rounded-3xl hover:shadow-lg ring-opacity-10 hover:border-4 border-yellow-200 z-50",width:50,src:"".concat(s.basePath,"/register_help_button.png")})})]}),(0,n.jsx)(o.Z,{show:t,body:r,toggle:c})]})}},5571:function(e,t,r){"use strict";var n=r(41799),s=r(69396),i=r(99534),o=r(85893);t.Z=function(e){var t=e.register,r=e.disabled,l=void 0!==r&&r,a=e.className,c=e.errors,d=(0,i.Z)(e,["register","disabled","className","errors"]);return(0,o.jsx)("input",(0,n.Z)((0,s.Z)((0,n.Z)({},t),{disabled:l,placeholder:c?"".concat(null===d||void 0===d?void 0:d.label," is required"):"".concat(null===d||void 0===d?void 0:d.label),className:"".concat(a," ").concat(c&&"bg-red-100"," rounded-md shadow-sm border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50")}),d))}},13564:function(e,t,r){"use strict";var n=r(41799),s=r(69396),i=r(99534),o=r(85893);t.Z=function(e){var t=e.className,r=e.children,l=(0,i.Z)(e,["className","children"]);return(0,o.jsx)("label",(0,s.Z)((0,n.Z)({className:"".concat(t," block font-medium text-sm text-gray-700")},l),{children:r}))}},99676:function(e,t,r){"use strict";var n=r(85893),s=r(9008),i=r.n(s);t.Z=function(e){var t=e.children;return(0,n.jsxs)("div",{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"MyEDGE"})}),(0,n.jsx)("div",{className:"font-sans text-gray-900 antialiased",children:t})]})}},34021:function(e,t,r){"use strict";var n=r(85893),s=r(7696);t.Z=function(e){var t=e.show,r=e.body,i=e.toggle;return document.body.style.overflow=t?"hidden":"unset",(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"w-full flex justify-center items-center overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none",children:(0,n.jsx)("div",{className:"mx-auto ".concat(null===r||void 0===r?void 0:r.modalOuterContainer),children:(0,n.jsxs)("div",{className:"relative flex flex-col w-full bg-white outline-none focus:outline-none border-0 shadow-lg ".concat(null===r||void 0===r?void 0:r.modalContainer),children:[(0,n.jsxs)("div",{className:"flex items-center justify-end p-2 border-b border-solid border-blueGray-200",children:[(0,n.jsx)("p",{className:"absolute left-0 ml-4 ".concat(null===r||void 0===r?void 0:r.titleFontSize),children:null===r||void 0===r?void 0:r.title}),(0,n.jsx)("button",{className:"px-2 py-1 text-2xl hover:text-red-500",type:"button",onClick:i,children:(0,n.jsx)(s.tgW,{})})]}),(0,n.jsx)("div",{className:"relative p-2 flex-auto ".concat(null===r||void 0===r?void 0:r.modalBody),children:null===r||void 0===r?void 0:r.content}),(0,n.jsx)("div",{className:"flex items-center justify-end p-2 border-t border-solid border-blueGray-200",children:(0,n.jsx)("button",{className:"hover:text-red-500 font-bold uppercase px-2 py-2 text-xs",type:"button",onClick:i,children:"Close"})})]})})}),(0,n.jsx)("div",{className:"opacity-25 fixed inset-0 z-40 bg-black"})]})})}},14848:function(e,t,r){"use strict";var n=r(67294);
1t.Z=function(){var e=(0,n.useState)(!1),t=e[0],r=e[1],s=(0,n.useState)(),i=s[0],o=s[1];return{show:t,setShow:r,body:i,setBody:o,toggle:function(){r(!t)}}}},10510:function(e,t,r){"use strict";r.r(t);var n=r(41799),s=r(69396),i=r(85893),o=r(78904),l=r(60445),a=r(61684),c=r(46810),d=r(46675),u=r(99676),m=r(5571),f=r(13564),h=r(41664),v=r.n(h),b=r(16037),x=r(67294),g=r(11163),p=r(87536),j=r(71581);t.default=function(){var e=(0,g.useRouter)(),t=(0,p.cI)(),r=t.register,h=t.setValue,y=t.handleSubmit,w=t.formState.errors,N=(0,b.a)({middleware:"guest",redirectIfAuthenticated:"/dashboard"}).login,Z=(0,x.useState)([]),O=Z[0],E=Z[1],P=(0,x.useState)(null),S=P[0],k=P[1];(0,x.useEffect)((function(){var t;(null===(t=e.query.reset)||void 0===t?void 0:t.length)>0&&0===O.length?k(atob(e.query.reset)):k(null)}));var _=(0,x.useState)(""),C=_[0],F=_[1];(0,x.useEffect)((function(){F(e.query.verified)}),[e.query.verified]);var z=(0,x.useState)(!1),q=z[0],D=z[1];return(0,i.jsxs)(u.Z,{children:[(0,i.jsxs)(l.Z,{logo:(0,i.jsx)(v(),{href:"/",children:(0,i.jsx)("a",{children:(0,i.jsx)(o.Z,{className:"w-20 h-20 text-gray-500 fill-current",width:250})})}),children:[(0,i.jsx)(a.Z,{className:"mb-4",status:S}),(0,i.jsx)(c.Z,{className:"mb-4",errors:O}),(0,i.jsxs)("form",{onSubmit:y((function(e){D(!0),N((0,s.Z)((0,n.Z)({},e),{setErrors:E,setStatus:k,setLoading:D}))})),children:[(0,i.jsx)("input",(0,s.Z)((0,n.Z)({type:"hidden"},r("verified")),{value:h("verified",C)})),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{className:"font-bold",htmlFor:"email",children:"Email"}),(0,i.jsx)(m.Z,{id:"email",label:"email address",register:r("email",{required:!0}),type:"email",className:"block mt-1 w-full",errors:null===w||void 0===w?void 0:w.email})]}),(0,i.jsxs)("div",{className:"mt-4",children:[(0,i.jsx)(f.Z,{className:"font-bold",htmlFor:"password",children:"Password"}),(0,i.jsx)(m.Z,{id:"password",label:"password",register:r("password",{required:!0}),type:"password",className:"block mt-1 w-full",errors:null===w||void 0===w?void 0:w.password,autoComplete:"current-password"})]}),(0,i.jsx)("div",{className:"block mt-4",children:(0,i.jsxs)("div",{className:"inline-flex items-center",children:[(0,i.jsx)("input",(0,s.Z)((0,n.Z)({id:"remember"},r("remember_me")),{type:"checkbox",className:"text-indigo-600 border-gray-300 rounded shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"})),(0,i.jsx)(f.Z,{htmlFor:"remember",className:"ml-2 text-sm text-gray-600 cursor-pointer",children:"Remember me"})]})}),(0,i.jsxs)("div",{className:"flex items-center justify-end mt-4",children:[(0,i.jsx)("div",{className:"flex-grow",children:(0,i.jsx)(v(),{href:"/register",children:(0,i.jsx)("a",{className:"float-left p-2 text-sm text-white bg-orange-400 rounded-lg hover:bg-orange-600",children:"Create new account"})})}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)(v(),{href:"/forgot-password",children:(0,i.jsx)("a",{className:"text-sm text-gray-600 underline hover:text-gray-900",children:"Forgot your password?"})}),(0,i.jsx)(d.Z,{className:"ml-3",loading:q,children:"Login"})]})]})]})]}),(0,i.jsx)(j.Z,{})]})}},25054:function(e,t,r){"use strict";r.d(t,{w_:function(){return f}});var n=r(67294),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(s),o=["attr","size","title"];function l(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return e&&e.map(((e,t)=>n.createElement(e.tag,d({key:t},e.attr),m(e.child))))}function f(e){return t=>n.createElement(h,a({attr:d({},e.attr)},t),m(e.child))}function h(e){var t=t=>{var r,{attr:s,size:i,title:c}=e,u=l(e,o),m=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,s,u,{className:r,style:d(d({color:e.color||t.color},t.style),e.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),c&&n.createElement("title",null,c),e.children)};return void 0!==i?n.createElement(i.Consumer,null,(e=>t(e))):t(s)}}},function(e){e.O(0,[8166,9317,1664,9314,2899,4824,9774,2888,179],(function(){return t=36429,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.