{"version":3,"sources":["Notifications/ShareMenu.js","Notifications/NotificationsList.js","App.js","serviceWorker.js","index.js"],"names":["ShareMenu","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","handleClick","e","setState","open","state","handleClose","react_default","a","createElement","react_awesome_popover_default","placement","id","className","FacebookShareButton","url","FacebookIcon","size","round","TwitterShareButton","TwitterIcon","LinkedinShareButton","LinkedinIcon","WhatsappShareButton","WhatsappIcon","EmailShareButton","EmailIcon","React","Component","FeedbackComponent","maxLength","name","placeholder","LoadingAnimation","react_content_loader_es","height","width","speed","primaryColor","secondaryColor","ariaLabel","x","y","rx","ry","NotificationsList","getNotifications","loading","axios","get","then","response","data","catch","error","console","log","toggleSidepanel","currentState","toggle","renderHTML","rawHTML","dangerouslySetInnerHTML","__html","Notification","permission","document","getElementById","style","display","_this2","concat","onClick","src","href","Fragment","NotificationsList_LoadingAnimation","map","item","index","key","dayjs","diff","PublishDate","format","Url","ShareMenu_ShareMenu","Title","Summary","AllowFeedback","NotificationsList_FeedbackComponent","App","Notifications_NotificationsList","Boolean","window","location","hostname","match","ReactDOM","render","src_App_0","navigator","serviceWorker","ready","registration","unregister"],"mappings":"iWAeqBA,cAEnB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAMRQ,YAAc,SAACC,GACTR,EAAKS,SAAS,CAACC,MAAOV,EAAKW,MAAMD,QARpBV,EAWjBY,YAAc,SAACJ,GACXR,EAAKS,SAAS,CAACC,MAAM,KAVzBV,EAAKW,MAAQ,CACXD,MAAM,GAHSV,wEAgBf,OACEa,EAAAC,EAAAC,cAACC,EAAAF,EAAD,CACAG,UAAU,OAERJ,EAAAC,EAAAC,cAAA,KAAGG,GAAG,iBAAiBC,UAAU,eAAjC,KACAN,EAAAC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ASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCZNC,IAASC,OAAO5F,EAAAC,EAAAC,cAAC2F,EAAD,MAASlC,SAASC,eAAe,SD2H3C,kBAAmBkC,WACrBA,UAAUC,cAAcC,MAAMrD,KAAK,SAAAsD,GACjCA,EAAaC","file":"static/js/main.4c34ad26.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport Popover from 'react-awesome-popover';\nimport {\n FacebookShareButton,\n FacebookIcon,\n TwitterShareButton,\n TwitterIcon,\n LinkedinShareButton,\n LinkedinIcon,\n WhatsappShareButton,\n WhatsappIcon,\n EmailShareButton,\n EmailIcon,\n} from 'react-share';\n\nexport default class ShareMenu extends React.Component {\n \n constructor(props) {\n super(props);\n this.state = {\n open: false\n };\n }\n \n handleClick = (e) => {\n this.setState({open: !this.state.open});\n }\n\n handleClose = (e) => {\n this.setState({open: false});\n }\n \n render() {\n return (\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n }\n }","import React, { Component } from 'react';\nimport axios from 'axios';\nimport dayjs from 'dayjs';\nimport ContentLoader from \"react-content-loader\";\nimport ShareMenu from './ShareMenu';\n\nconst FeedbackComponent = (props) => {\n return (\n
\n \n
\n )\n}\n\nconst LoadingAnimation = (props) => {\n return (\n \n \n \n \n \n \n \n \n )\n}\n\nclass NotificationsList extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n loading: null,\n data : [],\n toggle: false,\n };\n }\n\n getNotifications = () => {\n this.setState({ loading: true });\n const url = 'https://acimconnect.com/DesktopModules/XModPro/Feed.aspx?xfd=UpdatesNotifications&pid=0';\n axios.get(url)\n .then((response) => {\n const data = response.data;\n this.setState({ data });\n this.setState({ loading: false });\n })\n .catch( (error) => {\n console.log(error);\n }); \n }\n \n toggleSidepanel = () => {\n const currentState = this.state.toggle;\n this.setState({ toggle: !currentState });\n }\n\n renderHTML = (rawHTML) => React.createElement(\"div\", { dangerouslySetInnerHTML: { __html: rawHTML } });\n \n componentDidMount() {\n this.getNotifications();\n if (Notification.permission !== \"granted\") {\n document.getElementById('a-c-ask').style.display='block';\n }\n else {\n document.getElementById('a-c-ask').style.display='none';\n }\n }\n\n componentDidUpdate() {\n if (Notification.permission !== \"granted\") {\n document.getElementById('a-c-ask').style.display='block';\n }\n else {\n document.getElementById('a-c-ask').style.display='none';\n }\n }\n \n render() {\n return (\n
\n
\n
\n

\n What's new at ACIM\n \n \n \n

\n
\n
\n

 

\n
\n
    \n
  • \n \n

    We'd like to show you notifications for the latest news and updates.

    \n \n
    \n
    \n NO, THANKS \n ALLOW\n
    \n
    \n
  • \n {\n (this.state.loading === true )\n ?\n <>\n
  • \n \n
  • \n
  • \n \n
  • \n \n :\n <>\n {(this.state.data).map((item,index)=>{\n return (\n
  • \n {(\n dayjs().diff(dayjs(item.PublishDate), 'day') <= 5 \n ?\n <>\n NEW\n  \n \n :\n null\n )}\n {dayjs(item.PublishDate).format('MMMM DD, YYYY')}\n \n {\n item.Url != null && \n \n \n }\n \n

    { item.Url != null ? {item.Title} : item.Title }

    \n {this.renderHTML(item.Summary)}\n { item.AllowFeedback ? : null }\n
  • \n )\n })}\n \n }\n
\n
\n
\n \n \n \n
\n
\n );\n }\n}\n\nexport default NotificationsList;","import React, { Component } from 'react';\nimport NotificationsList from './Notifications/NotificationsList';\nimport './App.css';\n\nclass App extends Component {\n render() {\n return (\n
\n \n
\n );\n }\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\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 subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read http://bit.ly/CRA-PWA\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 function register(config) {\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.href);\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/facebook/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. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit http://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See http://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\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 // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\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 const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.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, config);\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 React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: http://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}