%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ncf/static/js/
Upload File :
Create Path :
Current File : /home/opti/public_html/ncf/static/js/54.6d433f5f.chunk.js.map

{"version":3,"sources":["app/actions/activate-account.js","app/main/SignUp/Activate/index.js"],"names":["activateAction","activatedata","fetch","SERVER_URL","code","then","res","json","console","log","message","status","localStorage","setItem","JSON","stringify","window","location","href","CLIENT_URL","Forgot","AuthSection","TopHeader","FormDiv","styled","div","section","ActivateBtn","className","name","initialValues","remember","onFinish","queryString","search","URLSearchParams","get","onFinishFailed","errorInfo","autoComplete","Item","type","htmlType"],"mappings":"2NAmBgBA,EAjBO,SAACC,GACpBC,MAAM,GAAD,OAAIC,aAAJ,0BAAgCF,EAAaG,OACjDC,MAAK,SAAAC,GAAG,OAAIA,EAAIC,UAChBF,MAAK,SAAAE,GACJC,QAAQC,IAAIF,EAAKG,QAAS,QACP,MAAhBH,EAAKI,QACNC,aAAaC,QAAQ,gBAAiBC,KAAKC,UAAUR,EAAKG,UACxDM,OAAOC,SAASC,KAAhB,UAA0BC,aAA1B,WACqB,MAAhBZ,EAAKI,QACVH,QAAQC,IAAI,yBACZG,aAAaC,QAAQ,cAAeC,KAAKC,UAAUR,EAAKG,WAE1DF,QAAQC,IAAI,qB,iCCILW,UAXf,WACE,OACE,eAACC,EAAD,WACE,cAACC,EAAA,EAAD,IACE,cAACC,EAAD,UACE,cAAC,EAAD,UAMKH,IAETG,EAAUC,IAAOC,IAAV,mMAUPJ,EAAcG,IAAOE,QAAV,qLAUXC,EAAc,WAmBlB,OACE,eAAC,IAAD,CAAMC,UAAU,aAAaC,KAAK,QAAQC,cAAe,CAACC,UAAU,GAAQC,SAnB7D,WAEf,IAAMC,EAAcjB,OAAOC,SAASiB,OAE9B9B,EADY,IAAI+B,gBAAgBF,GACfG,IAAI,QAM3BpC,EAJa,CACTI,UAY4FiC,eAL3E,SAACC,GACtB9B,QAAQC,IAAI,UAAW6B,IAIyGC,aAAa,MAA7I,UAEE,oBAAIX,UAAU,yBAAd,8BAEA,cAAC,IAAKY,KAAN,UACE,cAAC,IAAD,CAAQZ,UAAU,aAAaa,KAAK,UAAUC,SAAS,SAAvD","file":"static/js/54.6d433f5f.chunk.js","sourcesContent":["import {SERVER_URL, CLIENT_URL} from '../config/server';\r\n\r\nconst activateAction = (activatedata) => {\r\n    fetch(`${SERVER_URL}/auth/activate/${activatedata.code}`)\r\n    .then(res => res.json())\r\n    .then(json => {\r\n      console.log(json.message, 'json')\r\n      if(json.status === 200){\r\n        localStorage.setItem('login-success', JSON.stringify(json.message));\r\n          window.location.href = `${CLIENT_URL}signin`;\r\n      }else if(json.status === 400){\r\n          console.log(\"Wrong Activation Link\");\r\n          localStorage.setItem('login-error', JSON.stringify(json.message));\r\n      }else{\r\n        console.log(\"Error occured\");\r\n    }\r\n  });\r\n  }\r\n\r\n export default activateAction\r\n","import React from 'react';\r\nimport \"../../SignIn/signin.css\"\r\nimport \"../../style.css\"\r\nimport TopHeader from \"../../../layout/components/TopBar/TopHeader\"\r\nimport activateAction from '../../../actions/activate-account'\r\nimport styled from 'styled-components'\r\nimport { Form, Input, Button, Checkbox } from 'antd';\r\nfunction Forgot() {\r\n  return (\r\n    <AuthSection>\r\n      <TopHeader/>\r\n        <FormDiv>  \r\n          <ActivateBtn/>\r\n        </FormDiv>\r\n    </AuthSection>\r\n  );\r\n}\r\n\r\nexport default Forgot;\r\n\r\nconst FormDiv = styled.div`\r\n  width: 100%;\r\n  min-height: 100vh;\r\n  display: flex;\r\n  flex-direction: column;\r\n  justify-content: center;\r\n  align-items: center;\r\n  background-color: #0000008f;\r\n`;\r\n\r\nconst AuthSection = styled.section`\r\n  width: 100%;\r\n  min-height: 100vh;\r\n  background: url('assets/images/banner/species.png');\r\n  background-size: cover;\r\n  background-position: center;\r\n`;\r\n\r\n\r\n\r\nconst ActivateBtn = () => {\r\n  const onFinish = () => {\r\n    //Getting code from URL Parameters\r\n    const queryString = window.location.search;\r\n    const urlParams = new URLSearchParams(queryString);\r\n    const code = urlParams.get('code')\r\n\r\n    const data = {\r\n        code\r\n    };\r\n    \r\n    activateAction(data);\r\n\r\n  };\r\n\r\n  const onFinishFailed = (errorInfo) => {\r\n    console.log('Failed:', errorInfo);\r\n  };\r\n\r\n  return (\r\n    <Form className=\"signupform\" name=\"basic\" initialValues={{remember: true,}} onFinish={onFinish} onFinishFailed={onFinishFailed} autoComplete=\"off\">\r\n      \r\n      <h1 className=\"text-white text-center\">Activate Account</h1>\r\n\r\n      <Form.Item>\r\n        <Button className=\"formButton\" type=\"primary\" htmlType=\"submit\">\r\n          Activate\r\n        </Button>\r\n      </Form.Item>\r\n    </Form>\r\n  );\r\n};\r\n"],"sourceRoot":""}

Zerion Mini Shell 1.0