{"version":3,"sources":["router/Router.js","App.js"],"names":["Error","lazy","Login","LoginLink","reload","window","location","PublicHome","PublicLandingPage","DivisionLandingPage","PublicDonationForm","PublicThankYou","StripeConnect","StripeComplete","RegistrationConfirmation","ActivateAccount","ForgotPasswordBasic","SponsorshipView","FeePayment","TeamPage","TeamAlumniOfferPage","AffiliateConfirm","Router","allRoutes","useRoutes","path","element","BlankLayout","children","index","replace","to","user","getUserData","getHomeRouteForLoggedInUser","role","getHomeRoute","render","ReactGA","initialize","process","Bugsnag","start","apiKey","plugins","BugsnagPluginReact","App","useState","setAllRoutes","layout","useLayout","ErrorBoundary","getPlugin","createErrorBoundary","React","useEffect","set","page","pathname","pageview","search","getRoutes","fallback"],"mappings":"gPAqBMA,EAAQC,gBAAK,kBAAM,yDACnBC,EAAQD,gBAAK,kBAAM,yDACnBE,EAAYF,gBAAK,kBAAM,yDAGvBG,EAAS,kBAAMC,OAAOC,SAASF,UAE/BG,EAAaN,gBAAK,kBAAM,wEACxBO,EAAoBP,gBAAK,kBAAM,yDAC/BQ,EAAsBR,gBAAK,kBAAM,0DACjCS,EAAqBT,gBAAK,kBAAM,0DAChCU,EAAiBV,gBAAK,kBAAM,mCAC5BW,EAAgBX,gBAAK,kBAAM,oCAC3BY,EAAiBZ,gBAAK,kBAAM,oCAC5Ba,EAA2Bb,gBAAK,kBAAM,oCACtCc,EAAkBd,gBAAK,kBAAM,yDAC7Be,EAAsBf,gBAAK,kBAAM,mCACjCgB,EAAkBhB,gBAAK,kBAAM,yDAC7BiB,EAAajB,gBAAK,kBAAM,yDACxBkB,EAAWlB,gBAAK,kBAAM,gFACtBmB,EAAsBnB,gBAAK,kBAAM,gFAEjCoB,EAAmBpB,gBAAK,kBAAM,oCA8GrBqB,EA5GA,SAAC,GAAmB,IAAjBC,EAAgB,EAAhBA,UAyGhB,OA9FeC,YAAU,CACvB,CACEC,KAAM,YACNC,QAAS,cAACC,EAAA,EAAD,IACTC,SAAU,CACR,CAAEH,KAAM,sBAAu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SAASrD,SAASoD,UAC1BpB,IAAQqB,SAAStD,OAAOC,SAASoD,SAAWrD,OAAOC,SAASsD,QAE5DZ,EAAaa,YAAUZ,MACtB,CAACA,IAGF,cAACE,EAAD,UACE,cAAC,WAAD,CAAUW,SAAU,KAApB,SACE,cAAC,EAAD,CAAQvC,UAAWA","file":"static/js/191.6f80623e.chunk.js","sourcesContent":["// ** Router imports\nimport { lazy } from 'react'\n\n// ** Router imports\nimport {\n Navigate,\n useRoutes\n} from 'react-router-dom'\n\n// ** Layouts\nimport BlankLayout from '@layouts/BlankLayout'\n\n// ** Utils\nimport {\n getHomeRouteForLoggedInUser,\n getUserData\n} from '../utility/Utils'\nimport BandAuthorize from '../views/integrations/band/authorize'\n\n\n// ** Components\nconst Error = lazy(() => import('../views/pages/misc/Error'))\nconst Login = lazy(() => import('../views/pages/authentication/Login'))\nconst LoginLink = lazy(() => import('../views/pages/authentication/LoginLink'))\nconst NotAuthorized = lazy(() => import('../views/pages/misc/NotAuthorized'))\n\nconst reload = () => window.location.reload()\n\nconst PublicHome = lazy(() => import('../views/public-pages/Home'))\nconst PublicLandingPage = lazy(() => import('../views/public-pages/LandingPage'))\nconst DivisionLandingPage = lazy(() => import('../views/public-pages/DivisionLandingPage'))\nconst PublicDonationForm = lazy(() => import('../views/public-pages/DonationForm'))\nconst PublicThankYou = lazy(() => import('../views/public-pages/ThankYou'))\nconst StripeConnect = lazy(() => import('../views/onboarding/StripeConnect'))\nconst StripeComplete = lazy(() => import('../views/onboarding/StripeComplete'))\nconst RegistrationConfirmation = lazy(() => import('../views/pages/authentication/RegistrationConfirmation'))\nconst ActivateAccount = lazy(() => import('../views/pages/authentication/ActivateAccount'))\nconst ForgotPasswordBasic = lazy(() => import('../views/pages/authentication/ForgotPasswordBasic'))\nconst SponsorshipView = lazy(() => import('../views/public-pages/Sponsorships'))\nconst FeePayment = lazy(() => import('../views/public-pages/FeePayment'))\nconst TeamPage = lazy(() => import('../views/public-pages/TeamPage'))\nconst TeamAlumniOfferPage = lazy(() => import('../views/public-pages/TeamAlumniOfferPage'))\nconst ActivateAffiliate = lazy(() => import('../views/pages/affiliate/AcceptInvitation'))\nconst AffiliateConfirm = lazy(() => import('../views/onboarding/AffiliateConfirmation'))\n\nconst Router = ({ allRoutes }) => {\n\n const getHomeRoute = () => {\n const user = getUserData()\n if (user) {\n return getHomeRouteForLoggedInUser(user.role)\n } else {\n return '/login'\n }\n }\n\n const routes = useRoutes([\n {\n path: '/campaign',\n element: ,\n children: [\n { path: '/campaign/:url_slug', element: },\n { path: '/campaign/fundraiser/:fundraiser_slug', element: },\n { path: '/campaign/:url_slug/donate', element: },\n { path: '/campaign/thankyou', element: },\n { path: '/campaign/pay_fees/:fee_id', element: }\n ]\n },\n {\n path: '/division',\n element: ,\n children: [{ path: '/division/:division_id/campaign/:campaign_id', element: }]\n },\n {\n path: '/division',\n element: ,\n children: [{ path: '/division/:division_slug/donate', element: }]\n },\n {\n path: '/team',\n element: ,\n children: [{ path: '/team/:division_id/campaign/:campaign_id', element: }]\n },\n {\n path: '/team',\n element: ,\n children: [{ path: '/team/:division_slug/donate', element: }]\n },\n {\n path: '/',\n index: true,\n element: \n },\n {\n path: '/sponsorships',\n element: ,\n children: [{ path: '/sponsorships/:slug', element: }]\n },\n {\n path: '/login',\n element: ,\n children: [{ path: '/login', element: }]\n },\n {\n path: '/loginlink',\n element: ,\n children: [{ path: '/loginlink', element: }]\n },\n {\n path: '/forgot-password',\n element: ,\n children: [{ path: '/forgot-password', element: }]\n },\n {\n path: '/activate-account',\n element: ,\n children: [{ path: '/activate-account', element: }]\n },\n {\n path: '/onboarding',\n element: ,\n children: [{ path: '/onboarding/stripe/:sourceId', element: }, { path: '/onboarding/affiliate/confirm', element: }, { path: '/onboarding/stripe/:orgId/complete', element: }]\n },\n {\n path: '/onboarding',\n element: ,\n children: [{ path: '/onboarding/validation', element: }]\n },\n {\n path: '/band',\n element: ,\n children: [{ path: '/band/authorize', element: }]\n },\n {\n path: '/.well-known/apple-developer-merchantid-domain-association',\n render: {reload} \n },\n ...allRoutes,\n {\n path: '/:slug',\n element: ,\n children: [{ path: '/:slug', element: }, { path: '/:slug/sponsorships', element: }, { path: '/:slug/alumni', element: }]\n },\n {\n path: '*',\n element: ,\n children: [{ path: '*', element: }]\n }\n ])\n\n return routes\n}\n\nexport default Router\n","import React, { useState, useEffect, Suspense } from 'react'\n\n// ** Router Import\nimport Router from './router/Router'\n\n// ** Routes & Default Routes\nimport { getRoutes } from './router/routes'\n\n// ** Hooks Imports\nimport { useLayout } from '@hooks/useLayout'\n\nimport ReactGA from 'react-ga'\nconst TRACKING_ID = process.env.REACT_APP_GA_TRACKING_ID // OUR_TRACKING_ID\nReactGA.initialize(TRACKING_ID)\n\nimport Bugsnag from '@bugsnag/js'\nimport BugsnagPluginReact from '@bugsnag/plugin-react'\n\nBugsnag.start({\n apiKey: '729aaf5d2b6ba1ee3d3cc526d3d5ba76',\n plugins: [new BugsnagPluginReact()]\n})\n\n// import * as Sentry from \"@sentry/react\"\n// import { BrowserTracing } from \"@sentry/tracing\"\n\n// Sentry.init({\n// dsn: \"https://ca6dd875b408416396715eea0bf7a5b4@o1247717.ingest.sentry.io/6407715\",\n// integrations: [new BrowserTracing()],\n\n// // Set tracesSampleRate to 1.0 to capture 100%\n// // of transactions for performance monitoring.\n// // We recommend adjusting this value in production\n// tracesSampleRate: 1.0\n// }) \n\nconst App = () => {\n const [allRoutes, setAllRoutes] = useState([])\n\n // ** Hooks\n const { layout } = useLayout()\n\n const ErrorBoundary = Bugsnag.getPlugin('react').createErrorBoundary(React)\n\n useEffect(() => {\n ReactGA.set({ page: location.pathname }) // Update the user's current page\n ReactGA.pageview(location.pathname) // Record a pageview for the given page\n ReactGA.pageview(window.location.pathname + window.location.search)\n\n setAllRoutes(getRoutes(layout))\n }, [layout])\n\n return (\n \n \n \n \n \n )\n}\n\nexport default App\n"],"sourceRoot":""}