{"version":3,"sources":["images/nuvento.png","images/loading.gif","EmailSend.js","App.js","index.js"],"names":["module","exports","recaptchaInstance","resetRecaptcha","reset","callback","console","log","EmailSend","state","about","title","description","isOpen","isVerify","loading","validation","handleChange","e","setState","target","id","value","handleSend","preventDefault","sendObj","requestOptions","method","headers","body","JSON","stringify","fetch","then","response","json","data","initState","hideModal","toaster","notify","duration","initialValidation","openModal","titleError","descriptionError","aboutError","alert","clearState","verifyCallback","this","className","src","logo","width","type","onChange","style","color","fontSize","ref","sitekey","render","onloadCallback","onClick","visible","height","effect","onClickAway","padding","alt","Component","App","ReactDOM","StrictMode","document","getElementById"],"mappings":"4GAAAA,EAAOC,QAAU,IAA0B,qC,mBCA3CD,EAAOC,QAAU,IAA0B,qC,oGCQvCC,E,uJAGEC,G,MAAiB,WACrBD,EAAkBE,UAGdC,EAAW,WACbC,QAAQC,IAAI,aAqMDC,E,4MAjMXC,MAAO,CACHC,MAAO,GACPC,MAAO,GACPC,YAAa,GACbC,OAAQ,EACRC,UAAU,EACVC,SAAS,EACTC,WAAY,CACRL,MAAO,GACPC,YAAa,GACbF,MAAO,K,EAGfO,aAAe,SAACC,GACZ,EAAKC,SAAL,eACKD,EAAEE,OAAOC,GAAKH,EAAEE,OAAOE,S,EAGhCC,WAAa,SAACL,GACV,EAAKC,SAAS,CAAEJ,SAAQ,IACxBG,EAAEM,iBACF,IAAMC,EAAU,CACZf,MAAO,EAAKD,MAAMC,MAClBC,MAAO,EAAKF,MAAME,MAClBC,YAAa,EAAKH,MAAMG,aAEtBc,EAAiB,CACnBC,OAAQ,OACRC,QAAS,CAAE,eAAgB,oBAC3BC,KAAMC,KAAKC,UAAU,CAACN,aAE1BO,MAAM,2CAA4CN,GAC7CO,MAAK,SAAAC,GAAQ,OAAIA,EAASC,UAC1BF,MAAK,SAAAG,GACF,EAAKjB,SAAS,CAAEJ,SAAQ,IACxB,EAAKsB,YACLlC,IACA,EAAKmC,YACLC,IAAQC,OAAO,aAAc,CACzBC,SAA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,MAAM,e,GAzLxFiB,aCRTC,MARf,WACE,OACE,yBAAKrB,UAAU,OACb,kBAAC,EAAD,QCDNsB,IAASX,OACP,kBAAC,IAAMY,WAAP,KACE,kBAAC,EAAD,OAEFC,SAASC,eAAe,W","file":"static/js/main.7e6a1ffe.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/nuvento.de7362ff.png\";","module.exports = __webpack_public_path__ + \"static/media/loading.1d7626e6.gif\";","import React, { Component } from 'react';\r\nimport Modal from 'react-awesome-modal';\r\nimport Recaptcha from 'react-recaptcha';\r\nimport logo from './images/nuvento.png';\r\nimport loading from './images/loading.gif';\r\nimport toaster from 'toasted-notes';\r\nimport 'toasted-notes/src/styles.css';\r\n\r\nlet recaptchaInstance;\r\n\r\n// handle reset\r\nconst resetRecaptcha = () => {\r\n recaptchaInstance.reset();\r\n};\r\n\r\nconst callback = () => {\r\n console.log('Done!!!!');\r\n};\r\n\r\nclass EmailSend extends Component {\r\n state= {\r\n about: '',\r\n title: '',\r\n description: '',\r\n isOpen: 0,\r\n isVerify: false,\r\n loading: false,\r\n validation: {\r\n title: '',\r\n description: '',\r\n about: '',\r\n }\r\n }\r\n handleChange = (e) => {\r\n this.setState({\r\n [e.target.id]: e.target.value,\r\n });\r\n }\r\n handleSend = (e) => {\r\n this.setState({ loading:true });\r\n e.preventDefault();\r\n const sendObj = {\r\n about: this.state.about,\r\n title: this.state.title,\r\n description: this.state.description,\r\n }\r\n const requestOptions = {\r\n method: 'POST',\r\n headers: { 'Content-Type': 'application/json' },\r\n body: JSON.stringify({sendObj})\r\n };\r\n fetch('https://advocacyapi.nuvento.com/sendmail', requestOptions)\r\n .then(response => response.json())\r\n .then(data =>{\r\n this.setState({ loading:false });\r\n this.initState();\r\n resetRecaptcha();\r\n this.hideModal();\r\n toaster.notify('Email Sent', {\r\n duration: 2000,\r\n });\r\n });\r\n }\r\n initState = () => {\r\n this.setState({\r\n about: '',\r\n title: '',\r\n description: '',\r\n isOpen: 0,\r\n isVerify: false,\r\n validation: {\r\n title: '',\r\n description: '',\r\n about: '',\r\n }\r\n })\r\n }\r\n\r\n initialValidation = () => {\r\n this.setState({\r\n validation: {\r\n title: '',\r\n description: '',\r\n }\r\n })\r\n }\r\n openModal = (e) => {\r\n let titleError = ''; let descriptionError = ''; let aboutError = '';\r\n if (this.state.title === '') {\r\n titleError = 'The field cannot be empty';\r\n }\r\n if (this.state.description === '') {\r\n descriptionError = 'The field cannot be empty';\r\n }\r\n if (this.state.about === '') {\r\n aboutError = 'The field cannot be empty';\r\n }\r\n if (titleError || descriptionError || aboutError) {\r\n this.setState({\r\n validation: {\r\n title: titleError,\r\n about: aboutError,\r\n description: descriptionError,\r\n }\r\n })\r\n } else {\r\n if(this.state.isVerify === true) {\r\n this.initialValidation();\r\n this.setState({\r\n isOpen: 1,\r\n });\r\n } else {\r\n this.initialValidation();\r\n alert('Please verify that you are a human');\r\n }\r\n }\r\n }\r\n clearState = () => {\r\n this.setState({\r\n about: '',\r\n title: '',\r\n description: '',\r\n })\r\n }\r\n\r\n hideModal() {\r\n this.setState({\r\n isOpen: 0,\r\n });\r\n }\r\n verifyCallback = (response) => {\r\n if (response) {\r\n this.setState({\r\n isVerify:true\r\n })\r\n }\r\n }\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

Anonymous Message

\r\n
\r\n
\r\n
About
\r\n
\r\n

{this.state.validation.about}

\r\n
Title
\r\n
\r\n

{this.state.validation.title}

\r\n
Description
\r\n
\r\n

{this.state.validation.description}

\r\n
\r\n
\r\n recaptchaInstance = e}\r\n sitekey=\"6LdMLOkUAAAAAPwCs_bPBq8kgu4F1rhv5vrtD2L5\"\r\n render=\"explicit\"\r\n onloadCallback={callback}\r\n verifyCallback={this.verifyCallback}\r\n />\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n

Details:\r\n

\r\n
    \r\n
  • This Forum is primarily used to help Employees of Nuvento report any incident or concern anonymously. The details will be kept strictly confidential and will be sent directly to the Executive Heads of Nuvento (execs@nuvento.com)
  • \r\n
  • You are not required to provide your details .
  • \r\n
  • The message should explain more about the situation or incident you would like to share/raise; it can be of the following types:
  • \r\n
      \r\n
    • A concern about a process or a person
    • \r\n
    • A complaint
    • \r\n
    • A suggestion or improvement area
    • \r\n
    \r\n
  • Kindly ensure that your message is elaborate and detailed which will be vital for the Management to review
  • \r\n
\r\n
\r\n
\r\n this.hideModal()}>\r\n {\r\n this.state.loading === false ? (\r\n <>\r\n
\r\n
Do you want to continue?
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n ) : (\r\n
\"\"
\r\n )\r\n }\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default EmailSend;","import React from 'react';\nimport EmailSend from './EmailSend';\n\nfunction App() {\n return (\n
\n \n
\n );\n}\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n"],"sourceRoot":""}