{"version":3,"sources":["components/Hero.js","components/Charity.js","components/Donations.js","components/Layout.js","components/Home.js","App.js","registerServiceWorker.js","index.js"],"names":["Hero","react_default","a","createElement","className","src","alt","height","Component","Product","_ref","product","_useState","useState","_useState2","Object","slicedToArray","paidFor","setPaidFor","_useState3","_useState4","error","setError","paypalRef","useRef","sendEmail","order","requestOptions","method","headers","Content-Type","body","JSON","stringify","email","payer","email_address","givenName","name","given_name","SurName","surname","TransactionId","purchase_units","payments","captures","id","amount","description","Create_Time","create_time","fetch","then","response","json","data","console","log","useEffect","window","paypal","Buttons","createOrder","actions","create","currency_code","value","price","onApprove","_onApprove","asyncToGenerator","regenerator_default","mark","_callee","wrap","_context","prev","next","capture","sent","e","stop","_x","_x2","apply","this","arguments","onError","err","render","current","message","ref","Donations","state","processPayment","chooseAmount","validAmount","products","close_window","close","productList","_this","map","key","Button","size","variant","color","onClick","checkout","setState","target","replace","toFixed","concat","validate","_this2","navigateBack","noValidate","autoComplete","dist_default","currencySymbol","minimumValue","outputFormat","decimalCharacter","digitGroupSeparator","onChange","handleTextFieldChange","label","disabled","isNotValid","AmountChoosen","ChooseDonation","Layout","_Component","classCallCheck","possibleConstructorReturn","getPrototypeOf","inherits","createClass","reactstrap_es","props","children","components_Donations","displayName","Home","href","App","call","Layout_Layout","Route","exact","path","component","isLocalhost","Boolean","location","hostname","match","registerValidSW","swUrl","navigator","serviceWorker","register","registration","onupdatefound","installingWorker","installing","onstatechange","controller","catch","baseUrl","document","getElementsByTagName","getAttribute","rootElement","getElementById","ReactDOM","BrowserRouter","basename","App_App","URL","process","origin","addEventListener","status","get","indexOf","ready","unregister","reload","checkValidServiceWorker","registerServiceWorker"],"mappings":"oOAGe,SAASA,IACpB,OACIC,EAAAC,EAAAC,cAAA,WAASC,UAAU,QACfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,OACXH,EAAA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cAACgL,EAAA,EAAD,CAAeC,SAAUR,GACvB3K,EAAAC,EAAAC,cAACkL,EAAD,OAEFL,GDMa,WACb,GAA6C,kBAAmBd,UAAW,CAGzE,GADkB,IAAIoB,IAAIC,GAAwB5H,OAAOkG,UAC3C2B,SAAW7H,OAAOkG,SAAS2B,OAIvC,OAGF7H,OAAO8H,iBAAiB,OAAQ,WAC9B,IAAMxB,EAAK,GAAA9C,OAAMoE,GAAN,sBAEP5B,EAwCV,SAAkCM,GAEhC9G,MAAM8G,GACH7G,KAAK,SAAAC,GAGkB,MAApBA,EAASqI,SACuD,IAAhErI,EAASxB,QAAQ8J,IAAI,gBAAgBC,QAAQ,cAG7C1B,UAAUC,cAAc0B,MAAMzI,KAAK,SAAAiH,GACjCA,EAAayB,aAAa1I,KAAK,WAC7BO,OAAOkG,SAASkC,aAKpB/B,EAAgBC,KAGnBU,MAAM,WACLnH,QAAQC,IACN,mEA5DAuI,CAAwB/B,GAGxBD,EAAgBC,MCvBxBgC","file":"static/js/main.6d6bfd98.chunk.js","sourcesContent":["\nimport React from 'react';\n\nexport default function Hero() {\n return (\n
\n
\n
\n
\n
\n {/* window.close() }>\"Bicsi*/}\n

\n

\n \"Working\"\n
\n
\n
\n
\n
\n )\n}","import React, { Component } from 'react';\n\nexport default class Charity extends Component {\n\n render() {\n return (\n
\n
\n

No Goods or Services were provided or promised in return for your support, this is not a quid pro quo benefit provided to you.

\n
\n \n
\n );\n }\n}","\nimport { Button } from '@material-ui/core';\nimport CurrencyTextField from '@unicef/material-ui-currency-textfield';\nimport React, { Component, useEffect, useRef, useState } from 'react';\n\nfunction Product({ product }) {\n const [paidFor, setPaidFor] = useState(false);\n const [error, setError] = useState(null);\n const paypalRef = useRef();\n\n let sendEmail = (order) => {\n const requestOptions = {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n \"email\": order.payer.email_address,\n \"givenName\": order.payer.name.given_name,\n \"SurName\": order.payer.name.surname,\n \"TransactionId\": order.purchase_units[0].payments.captures[0].id,\n \"amount\": order.purchase_units[0].description,\n \"Create_Time\": order.create_time\n })\n }\n\n fetch('/api/email', requestOptions)\n .then(response => response.json())\n .then(data => console.log(data));\n }\n\n useEffect(() => {\n window.paypal\n .Buttons({\n createOrder: (data, actions) => {\n return actions.order.create({\n purchase_units: [\n {\n description: product.description,\n amount: {\n currency_code: 'USD',\n value: product.price,\n },\n },\n ]\n });\n },\n onApprove: async (data, actions) => {\n const order = await actions.order.capture();\n setPaidFor(true);\n console.log(\"actions\", actions)\n console.log(\"Order\", order);\n console.log(\"Data\", data);\n try {\n sendEmail(order)\n } catch (e) {\n console.log(e);\n }\n },\n onError: err => {\n setError(err);\n console.error(err);\n },\n })\n .render(paypalRef.current);\n }, [product.description, product.price]);\n\n if (paidFor) {\n return (\n
\n

Thank you for your donation of ${product.price}.

\n
\n );\n }\n\n return (\n
\n {error &&
Uh oh, an error occurred! {error.message}
}\n

\n A donation of {product.description}\n

\n
\n
\n );\n}\n\nclass Donations extends Component {\n\n state = {\n product: null,\n processPayment: true,\n chooseAmount: false,\n validAmount: false\n }\n products = [\n {\n price: 50.00,\n name: '$50.00 USD',\n description: '$50.00 USD Professional Development and Scholarship Donation'\n },\n {\n price: 500.00,\n name: '$500.00 USD',\n description: '$500.00 USD Professional Development and Scholarship Donation'\n },\n {\n price: 100.00,\n name: '$100.00 USD',\n description: '$100.00 USD Professional Development and Scholarship Donation'\n },\n {\n price: 1000.00,\n name: '$1000.00 USD',\n description: '$1000.00 USD Professional Development and Scholarship Donation'\n },\n {\n price: 250.00,\n name: '$250.00 USD',\n description: '$250.00 USD Professional Development and Scholarship Donation'\n }\n ];\n\n close_window = () => {\n window.close();\n }\n\n checkout(product) {\n this.setState({\n product: product,\n processPayment: true\n })\n }\n\n ChooseDonation() {\n this.setState({\n chooseAmount: true\n })\n }\n\n handleTextFieldChange(e) {\n // adding a \"+\" to the event target value is type coersion of a string to a number\n let amount = +e.target.value.replace(',', '');\n amount = amount.toFixed(2)\n let product = {\n price: amount,\n name: `$${amount} USD`,\n description: `$${amount} USD Professional Development and Scholarship Donation`\n }\n\n this.setState({\n product: product,\n validAmount: this.validate(amount)\n })\n }\n AmountChoosen() {\n this.setState({\n chooseAmount: false,\n processPayment: true\n })\n\n }\n\n navigateBack() {\n this.setState({\n processPayment: false,\n validAmount: false,\n chooseAmount: false\n })\n }\n\n validate(amount) {\n if (amount < 50) {\n return false;\n }\n if (amount > 10000) {\n return false;\n }\n return true;\n }\n\n isNotValid() {\n return !this.state.validAmount;\n }\n\n productList = this.products.map(product => {\n return (\n
\n {}\n
\n )\n })\n\n render() {\n\n if (this.state.processPayment && this.state.product && !this.state.chooseAmount) {\n return (\n
\n \n \n
\n );\n } if (this.state.chooseAmount) {\n return (\n
\n
\n

No Goods or Services were provided or promised in return for your support, this is not a quid pro quo benefit provided to you.

\n
\n
\n
\n
\n
\n

Please enter your donation amount below:

\n
\n

The minimum donation amount is $50.00 USD.

\n
\n { this.navigateBack() }}\n >Back\n
\n
\n { this.handleTextFieldChange(e) }}\n autoComplete=\"off\"\n id=\"outlined-basic\"\n label=\"Amount\"\n variant=\"outlined\" />\n
\n
\n this.AmountChoosen()}\n > Confirm \n
\n
\n
\n
\n
\n );\n }\n else {\n return (\n
\n
\n
\n
\n
\n

Donation Amounts

\n
\n {this.productList}\n
\n \n
\n \n
\n \n
\n
\n
\n
\n
\n
\n
\n

\n No goods or services were provided or promised in return for your donation.\n

\n
\n
\n
\n
\n );\n }\n }\n}\n\nexport default Donations;","import React, { Component } from 'react';\nimport { Container } from 'reactstrap';\nimport Hero from './Hero';\nimport Charity from './Charity';\nimport Donations from './Donations';\n\n\nexport class Layout extends Component {\n static displayName = Layout.name;\n\n render() {\n return (\n
\n \n \n {this.props.children}\n \n\n
\n
\n
\n \n \n
\n \n
\n \n
\n
\n );\n }\n}\n","import React, { Component } from 'react';\n\nexport class Home extends Component {\n static displayName = Home.name;\n\n render() {\n return (\n
\n

\n

\n

BICSI Cares Professional Development and Scholarship Fund: Making A Difference Thanks to You.

\n

\n The BICSI Cares Professional Development and Scholarship fund is a year-round fund raising effort designed to support and promote the ICT Community in a variety of ways,\n including supporting a Women in BICSI candidate for the BICSI\n Cabling Skills Challenge, (powered by the Emerging Professionals & Student Workgroup) as well as providing education through BICSI training courses and other career development opportunities.\n

\n

\n Donate today to show your support for future ICT professionals!\n

\n \n
\n );\n }\n}\n","import React, { Component } from 'react';\nimport { Route } from 'react-router';\nimport { Layout } from './components/Layout';\nimport { Home } from './components/Home';\n\nimport './custom.css'\n\nexport default class App extends Component {\n constructor(props) {\n super(props)\n\n this.state = {}\n }\n static displayName = App.name;\n\n render () {\n return (\n \n \n \n );\n }\n}\n","// In production, we register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport default function register () {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Lets check if a service worker still exists or not.\n checkValidServiceWorker(swUrl);\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl);\n }\n });\n }\n}\n\nfunction registerValidSW (swUrl) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.');\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker (swUrl) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n if (\n response.status === 404 ||\n response.headers.get('content-type').indexOf('javascript') === -1\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister () {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import 'bootstrap/dist/css/bootstrap.css';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { BrowserRouter } from 'react-router-dom';\nimport App from './App';\nimport registerServiceWorker from './registerServiceWorker';\n\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\nconst rootElement = document.getElementById('root');\n\nReactDOM.render(\n \n \n ,\n rootElement);\n\nregisterServiceWorker();\n\n"],"sourceRoot":""}