{"version":3,"sources":["webpack:///./src/pages/signup/volunteer.tsx","webpack:///./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///./src/images/header-volunteer.jpg"],"names":["SignUpVolunteer","useState","message","messageType","feedback","setFeedback","email","setEmail","fName","setFname","lName","setLname","phone","setPhone","skype","setSkype","facebook","setFacebook","resume","setResume","source","setSource","why","setWhy","navBg","className","bgImage","strength","style","height","maxHeight","name","onSubmit","e","preventDefault","form","document","querySelector","data","FormData","test","fetch","method","body","mode","then","response","a","console","log","handleSubmit","type","value","id","placeholder","onChange","target","rows","cols","maxLength","position","left","aria-hidden","aria-label","htmlFor","tabIndex","dangerouslySetInnerHTML","__html","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","error","done","Promise","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","module","exports"],"mappings":"2NA2MeA,UAtMS,WAAM,MACIC,mBAAS,CACvCC,QAAS,GACTC,YAAa,KAFRC,EADqB,KACXC,EADW,OAKFJ,mBAAS,IAA5BK,EALqB,KAKdC,EALc,OAMFN,mBAAS,IAA5BO,EANqB,KAMdC,EANc,OAOFR,mBAAS,IAA5BS,EAPqB,KAOdC,EAPc,OAQFV,mBAAS,IAA5BW,EARqB,KAQdC,EARc,OASFZ,mBAAS,IAA5Ba,EATqB,KASdC,EATc,OAUId,mBAAS,IAAlCe,EAVqB,KAUXC,EAVW,OAWAhB,mBAAS,IAA9BiB,EAXqB,KAWbC,EAXa,OAYAlB,mBAAS,IAA9BmB,EAZqB,KAYbC,EAZa,OAaNpB,mBAAS,IAAxBqB,EAbqB,KAahBC,EAbgB,KAmD5B,OACE,cAAC,IAAD,CAAQC,OAAK,EAAb,SACE,qBAAKC,UAAU,cAAf,SACE,sBAAKA,UAAU,eAAf,UACA,cAAC,WAAD,CAAUA,UAAU,cAAcC,QAASA,IAASC,SAAU,IAA9D,SACM,sBAAKC,MAAO,CAACC,OAAQ,QAASC,UAAW,SAAzC,UACI,qBAAKL,UAAU,wB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,GACdnB,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,QAASc,GAGnEf,OAAMgB,OA/BZ,mC,qBCAAC,EAAOC,QAAU,IAA0B","file":"component---src-pages-signup-volunteer-tsx-4ac35f757d5e7015efd9.js","sourcesContent":["import React, { useState }from \"react\";\nimport { Parallax } from \"react-parallax\";\nimport Layout from \"../../components/layouts\";\nimport bgImage from \"../../images/header-volunteer.jpg\";\n\nconst SignUpVolunteer = () => {\n const [feedback, setFeedback] = useState({\n message: \"\",\n messageType: \"\",\n });\n const [email, setEmail] = useState(\"\");\n const [fName, setFname] = useState(\"\");\n const [lName, setLname] = useState(\"\");\n const [phone, setPhone] = useState(\"\");\n const [skype, setSkype] = useState(\"\");\n const [facebook, setFacebook] = useState(\"\");\n const [resume, setResume] = useState(\"\");\n const [source, setSource] = useState(\"\");\n const [why, setWhy] = useState(\"\");\n\n const handleSubmit = (e) => {\n e.preventDefault();\n \n if (fName !== '' && lName !== '' && email !== '' && facebook !== '') {\n const regex = /^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$/i;\n const form = document.querySelector('form');\n const data = new FormData(form);\n\n if (!regex.test(email)) {\n setFeedback({\n message: 'Please enter a valid E-mail',\n messageType: 'error'\n });\n return;\n } else {\n fetch(\"https://globalinheritance.us2.list-manage.com/subscribe/post-json?&c=?\", {\n method: \"POST\",\n body: data,\n mode: 'no-cors',\n }).then(async (response) => {\n console.log(response);\n setFeedback({\n message: 'Thank you! Your information has been sent',\n messageType: 'success'\n });\n });\n }\n } else {\n setFeedback({\n message: 'Please fill out all fields',\n messageType: 'error'\n });\n }\n };\n\n\n return (\n \n
\n
\n \n
\n
\n

Volunteer

\n
\n \n
\n
\n

Global Inheritance is looking for exceptional individuals who are ready to join us in producing large education programs focused on improving planetary health. Do you love the arts and using creativity to inspire others? Do you excel when the lights shine the brightest? If the answers are β€œyes” – please join our volunteer network and get involved!

\n\n

Global Inheritance is a collection of passionate, talented individuals working hard to create long term improvements across a range of issues effecting the planet.

\n\n

If you believe in what we do and are driven to find new ways to educate and empower others – sign up below!

\n
\n\n
\n
\n

Join the Community Today!

\n

*Required field

\n
handleSubmit(e)}>\n \n \n \n
\n setFname(e.target.value) }/>\n \n
\n
\n setLname(e.target.value)}/>\n \n
\n
\n setEmail(e.target.value)} />\n \n
\n
\n setPhone(e.target.value)}/>\n \n
\n
\n setSkype(e.target.value) } />\n \n
\n
\n setFacebook(e.target.value)} />\n \n
\n
\n setResume(e.target.value)} />\n \n
\n
\n setSource(e.target.value)}/>\n \n
\n
\n \n
\n\n
\n \n
\n
\n
\n
\n
\n \n)\n}\n\nexport default SignUpVolunteer;\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","module.exports = __webpack_public_path__ + \"static/header-volunteer-c080c22687634400fe4c5a096f68c607.jpg\";"],"sourceRoot":""}