%PDF- %PDF-
Direktori : /home/opti/public_html/ncf/static/js/ |
Current File : /home/opti/public_html/ncf/static/js/54.6d433f5f.chunk.js |
(this["webpackJsonpncf-nigeria"]=this["webpackJsonpncf-nigeria"]||[]).push([[54],{104:function(n,e,t){},155:function(n,e,t){},537:function(n,e,t){"use strict";t.r(e);var c,i,o=t(50),s=(t(1),t(155),t(104),t(54)),a=t(21),r=function(n){fetch("".concat(a.SERVER_URL,"/auth/activate/").concat(n.code)).then((function(n){return n.json()})).then((function(n){console.log(n.message,"json"),200===n.status?(localStorage.setItem("login-success",JSON.stringify(n.message)),window.location.href="".concat(a.CLIENT_URL,"signin")):400===n.status?(console.log("Wrong Activation Link"),localStorage.setItem("login-error",JSON.stringify(n.message))):console.log("Error occured")}))},l=t(49),u=t(516),h=t(470),g=t(2);e.default=function(){return Object(g.jsxs)(d,{children:[Object(g.jsx)(s.a,{}),Object(g.jsx)(f,{children:Object(g.jsx)(m,{})})]})};var f=l.a.div(c||(c=Object(o.a)(["\n width: 100%;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: #0000008f;\n"]))),d=l.a.section(i||(i=Object(o.a)(["\n width: 100%;\n min-height: 100vh;\n background: url('assets/images/banner/species.png');\n background-size: cover;\n background-position: center;\n"]))),m=function(){return Object(g.jsxs)(u.a,{className:"signupform",name:"basic",initialValues:{remember:!0},onFinish:function(){var n=window.location.search,e=new URLSearchParams(n).get("code");r({code:e})},onFinishFailed:function(n){console.log("Failed:",n)},autoComplete:"off",children:[Object(g.jsx)("h1",{className:"text-white text-center",children:"Activate Account"}),Object(g.jsx)(u.a.Item,{children:Object(g.jsx)(h.a,{className:"formButton",type:"primary",htmlType:"submit",children:"Activate"})})]})}}}]); //# sourceMappingURL=54.6d433f5f.chunk.js.map