{"version":3,"sources":["webpack:///./src/pages/redirect.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./node_modules/@material-ui/core/esm/CircularProgress/CircularProgress.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack:///./node_modules/fromentries/index.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableRest.js"],"names":["station","a","azureApiGatewayGet","response","stations","data","selectedStation","find","s","codename","Error","navigate","state","Redirect","location","useEffect","urlParams","URLSearchParams","search","params","fromEntries","target","rest","showLoginModal","events","emit","EVENT_SHOW_LOGIN_MODAL","callback","closeCallback","showRedirectInfoText","goToStation","style","display","flex","alignItems","justifyContent","module","exports","TypeError","iter","Symbol","iterator","Object","Array","from","arrayLikeToArray","arr","isArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","i","arrayWithoutHoles","iterableToArray","nonIterableSpread","len","length","arr2","o","minLen","n","prototype","toString","call","slice","constructor","name","test","easeOut","t","value","min","max","Math","CircularProgress","props","ref","classes","className","_props$color","color","_props$disableShrink","disableShrink","_props$size","size","_props$thickness","thickness","_props$value","_props$variant","variant","other","circleStyle","rootStyle","rootProps","circumference","PI","strokeDasharray","toFixed","round","strokeDashoffset","concat","transform","root","indeterminate","width","height","role","svg","viewBox","SIZE","circle","circleDisableShrink","circleIndeterminate","circleStatic","cx","cy","r","fill","strokeWidth","theme","transition","transitions","create","animation","colorPrimary","palette","primary","main","colorSecondary","secondary","stroke","flip","_arr","_n","_d","_e","undefined","_s","_i","next","done","push","err","_slicedToArray","_toConsumableArray","iterable","reduce","obj","_ref","_ref2","key","val"],"mappings":"woBAwDA,WAA2BA,GAA3B,mBAAAC,EAAA,+EAEyBC,YAAmB,WAF5C,UAEQC,EAFR,OAIQC,EACLD,EAASE,MAAQF,EAASE,KAAKD,SAAWD,EAASE,KAAKD,SAAW,GAE9DE,EAAkBF,EAASG,MAAK,SAACC,GACtC,OAAOA,EAAEC,WAAaT,KARzB,sBAWS,IAAIU,MAAM,qBAXnB,OAaEC,mBAAS,YAAa,CACrBC,MAAO,CACNN,qBAfJ,kDAmBEK,mBAAS,OAnBX,2D,sBAFeE,UA/CE,SAAC,GAAkB,IAAhBC,EAAe,EAAfA,SAiCnB,OAhCAC,qBAAU,WACT,IAAMC,EAAY,IAAIC,gBAAgBH,EAASI,QACzCC,EAASC,IAAYJ,GAFZ,EAGkBG,EAAzBE,cAHO,MAGE,GAHF,EAGSC,E,oIAHT,CAGkBH,EAHlB,YAIA,qBAAXE,EACHV,mBAAS,aAAc,CAAEC,MAAOU,IACtBH,EAAOI,eACjBC,IAAOC,KAAKC,IAAwB,CACnCC,SAAU,WACThB,mBAAS,MAEViB,cAAe,WACdjB,mBAAS,QAGU,4BAAXU,EACVG,IAAOC,KAAKC,IAAwB,CACnCG,sBAAsB,EACtBF,SAAU,WACThB,mBAAS,MAEViB,cAAe,WACdjB,mBAAS,QAGU,YAAXU,E,oCACVS,CAAYR,EAAKtB,SAEjBW,mBAASU,EAAQ,CAAET,MAAOU,MAEzB,CAACR,EAASI,SAGZ,yBACCa,MAAO,CACNC,QAAS,OACTC,KAAM,EACNC,WAAY,SACZC,eAAgB,WAGjB,kBAAC,IAAD,S,mBC7CHC,EAAOC,QAJP,WACE,MAAM,IAAIC,UAAU,0I,mBCGtBF,EAAOC,QAJP,SAA0BE,GACxB,GAAsB,oBAAXC,QAA0BA,OAAOC,YAAYC,OAAOH,GAAO,OAAOI,MAAMC,KAAKL,K,qBCD1F,IAAIM,EAAmB,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AkB,SAEpB,OAAQ,CACNH,gBAAiB,eACjBG,iBAAkB,WAKtBY,oBAAqB,CACnBY,UAAW,WA0IiB,CAChCzD,KAAM,sBACNiE,MAAM,GAFO,CAGZzD,I,mBCtNHvC,EAAOC,QA3BP,SAA+BS,EAAKM,GAClC,GAAsB,oBAAXZ,QAA4BA,OAAOC,YAAYC,OAAOI,GAAjE,CACA,IAAIuF,EAAO,GACPC,GAAK,EACLC,GAAK,EACLC,OAAKC,EAET,IACE,IAAK,IAAiCC,EAA7BC,EAAK7F,EAAIN,OAAOC,cAAmB6F,GAAMI,EAAKC,EAAGC,QAAQC,QAChER,EAAKS,KAAKJ,EAAGnE,QAETnB,GAAKiF,EAAK5E,SAAWL,GAH8CkF,GAAK,IAK9E,MAAOS,GACPR,GAAK,EACLC,EAAKO,EACL,QACA,IACOT,GAAsB,MAAhBK,EAAW,QAAWA,EAAW,SAC5C,QACA,GAAIJ,EAAI,MAAMC,GAIlB,OAAOH,K,qBCxBT,IAAIW,EAAiB,EAAQ,QAEzBC,EAAqB,EAAQ,QAEjC,EAAQ,QAGR7G,EAAOC,QAAU,SAAqB6G,GACpC,OAAOD,EAAmBC,GAAUC,QAAO,SAAUC,EAAKC,GACxD,IAAIC,EAAQN,EAAeK,EAAM,GAC7BE,EAAMD,EAAM,GACZE,EAAMF,EAAM,GAGhB,OADAF,EAAIG,GAAOC,EACJJ,IACN,M,mBCXLhH,EAAOC,QAJP,SAAyBS,GACvB,GAAIH,MAAMI,QAAQD,GAAM,OAAOA,I,mBCGjCV,EAAOC,QAJP,WACE,MAAM,IAAIC,UAAU","file":"component---src-pages-redirect-js-2e8634f051239f56f70d.js","sourcesContent":["import React, { useEffect } from 'react'\nimport { navigate } from 'gatsby'\nimport fromEntries from 'fromentries'\nimport CircularProgress from '@material-ui/core/CircularProgress'\nimport events, { EVENT_SHOW_LOGIN_MODAL } from '@src/utils/events'\nimport { azureApiGatewayGet } from '@src/api/azureApiGateway/client'\n\nconst Redirect = ({ location }) => {\n\tuseEffect(() => {\n\t\tconst urlParams = new URLSearchParams(location.search)\n\t\tconst params = fromEntries(urlParams)\n\t\tconst { target = '', ...rest } = params\n\t\tif (target === 'app-registration') {\n\t\t\tnavigate('bli-medlem', { state: rest })\n\t\t} else if (params.showLoginModal) {\n\t\t\tevents.emit(EVENT_SHOW_LOGIN_MODAL, {\n\t\t\t\tcallback: () => {\n\t\t\t\t\tnavigate('/')\n\t\t\t\t},\n\t\t\t\tcloseCallback: () => {\n\t\t\t\t\tnavigate('/')\n\t\t\t\t},\n\t\t\t})\n\t\t} else if (target === 'incomplete-registration') {\n\t\t\tevents.emit(EVENT_SHOW_LOGIN_MODAL, {\n\t\t\t\tshowRedirectInfoText: true,\n\t\t\t\tcallback: () => {\n\t\t\t\t\tnavigate('/')\n\t\t\t\t},\n\t\t\t\tcloseCallback: () => {\n\t\t\t\t\tnavigate('/')\n\t\t\t\t},\n\t\t\t})\n\t\t} else if (target === 'station') {\n\t\t\tgoToStation(rest.station)\n\t\t} else {\n\t\t\tnavigate(target, { state: rest })\n\t\t}\n\t}, [location.search])\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t)\n}\n\nexport default Redirect\n\nasync function goToStation(station) {\n\ttry {\n\t\tconst response = await azureApiGatewayGet('station')\n\n\t\tconst stations =\n\t\t\tresponse.data && response.data.stations ? response.data.stations : []\n\n\t\tconst selectedStation = stations.find((s) => {\n\t\t\treturn s.codename === station\n\t\t})\n\t\tif (!selectedStation) {\n\t\t\tthrow new Error('Station not found')\n\t\t}\n\t\tnavigate('/boka-bil', {\n\t\t\tstate: {\n\t\t\t\tselectedStation,\n\t\t\t},\n\t\t})\n\t} catch (error) {\n\t\tnavigate('404')\n\t}\n}\n","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nvar SIZE = 44;\n\nfunction getRelativeValue(value, min, max) {\n return (Math.min(Math.max(min, value), max) - min) / (max - min);\n}\n\nfunction easeOut(t) {\n t = getRelativeValue(t, 0, 1); // https://gist.github.com/gre/1650294\n\n t = (t -= 1) * t * t + 1;\n return t;\n}\n\nfunction easeIn(t) {\n return t * t;\n}\n\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n display: 'inline-block'\n },\n\n /* Styles applied to the root element if `variant=\"static\"`. */\n \"static\": {\n transition: theme.transitions.create('transform')\n },\n\n /* Styles applied to the root element if `variant=\"indeterminate\"`. */\n indeterminate: {\n animation: '$circular-rotate 1.4s linear infinite'\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n color: theme.palette.primary.main\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n color: theme.palette.secondary.main\n },\n\n /* Styles applied to the `svg` element. */\n svg: {\n display: 'block' // Keeps the progress centered\n\n },\n\n /* Styles applied to the `circle` svg path. */\n circle: {\n stroke: 'currentColor' // Use butt to follow the specification, by chance, it's already the default CSS value.\n // strokeLinecap: 'butt',\n\n },\n\n /* Styles applied to the `circle` svg path if `variant=\"static\"`. */\n circleStatic: {\n transition: theme.transitions.create('stroke-dashoffset')\n },\n\n /* Styles applied to the `circle` svg path if `variant=\"indeterminate\"`. */\n circleIndeterminate: {\n animation: '$circular-dash 1.4s ease-in-out infinite',\n // Some default value that looks fine waiting for the animation to kicks in.\n strokeDasharray: '80px, 200px',\n strokeDashoffset: '0px' // Add the unit to fix a Edge 16 and below bug.\n\n },\n '@keyframes circular-rotate': {\n '100%': {\n transform: 'rotate(360deg)'\n }\n },\n '@keyframes circular-dash': {\n '0%': {\n strokeDasharray: '1px, 200px',\n strokeDashoffset: '0px'\n },\n '50%': {\n strokeDasharray: '100px, 200px',\n strokeDashoffset: '-15px'\n },\n '100%': {\n strokeDasharray: '100px, 200px',\n strokeDashoffset: '-125px'\n }\n },\n\n /* Styles applied to the `circle` svg path if `disableShrink={true}`. */\n circleDisableShrink: {\n animation: 'none'\n }\n };\n};\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\n\nvar CircularProgress = React.forwardRef(function CircularProgress(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'primary' : _props$color,\n _props$disableShrink = props.disableShrink,\n disableShrink = _props$disableShrink === void 0 ? false : _props$disableShrink,\n _props$size = props.size,\n size = _props$size === void 0 ? 40 : _props$size,\n style = props.style,\n _props$thickness = props.thickness,\n thickness = _props$thickness === void 0 ? 3.6 : _props$thickness,\n _props$value = props.value,\n value = _props$value === void 0 ? 0 : _props$value,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'indeterminate' : _props$variant,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"color\", \"disableShrink\", \"size\", \"style\", \"thickness\", \"value\", \"variant\"]);\n\n var circleStyle = {};\n var rootStyle = {};\n var rootProps = {};\n\n if (variant === 'determinate' || variant === 'static') {\n var circumference = 2 * Math.PI * ((SIZE - thickness) / 2);\n circleStyle.strokeDasharray = circumference.toFixed(3);\n rootProps['aria-valuenow'] = Math.round(value);\n\n if (variant === 'static') {\n circleStyle.strokeDashoffset = \"\".concat(((100 - value) / 100 * circumference).toFixed(3), \"px\");\n rootStyle.transform = 'rotate(-90deg)';\n } else {\n circleStyle.strokeDashoffset = \"\".concat((easeIn((100 - value) / 100) * circumference).toFixed(3), \"px\");\n rootStyle.transform = \"rotate(\".concat((easeOut(value / 70) * 270).toFixed(3), \"deg)\");\n }\n }\n\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, className, color !== 'inherit' && classes[\"color\".concat(capitalize(color))], {\n 'indeterminate': classes.indeterminate,\n 'static': classes[\"static\"]\n }[variant]),\n style: _extends({\n width: size,\n height: size\n }, rootStyle, {}, style),\n ref: ref,\n role: \"progressbar\"\n }, rootProps, other), /*#__PURE__*/React.createElement(\"svg\", {\n className: classes.svg,\n viewBox: \"\".concat(SIZE / 2, \" \").concat(SIZE / 2, \" \").concat(SIZE, \" \").concat(SIZE)\n }, /*#__PURE__*/React.createElement(\"circle\", {\n className: clsx(classes.circle, disableShrink && classes.circleDisableShrink, {\n 'indeterminate': classes.circleIndeterminate,\n 'static': classes.circleStatic\n }[variant]),\n style: circleStyle,\n cx: SIZE,\n cy: SIZE,\n r: (SIZE - thickness) / 2,\n fill: \"none\",\n strokeWidth: thickness\n })));\n});\nprocess.env.NODE_ENV !== \"production\" ? CircularProgress.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['inherit', 'primary', 'secondary']),\n\n /**\n * If `true`, the shrink animation is disabled.\n * This only works if variant is `indeterminate`.\n */\n disableShrink: chainPropTypes(PropTypes.bool, function (props) {\n if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {\n return new Error('Material-UI: you have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');\n }\n\n return null;\n }),\n\n /**\n * The size of the circle.\n * If using a number, the pixel unit is assumed.\n * If using a string, you need to provide the CSS unit, e.g '3rem'.\n */\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * @ignore\n */\n style: PropTypes.object,\n\n /**\n * The thickness of the circle.\n */\n thickness: PropTypes.number,\n\n /**\n * The value of the progress indicator for the determinate and static variants.\n * Value between 0 and 100.\n */\n value: PropTypes.number,\n\n /**\n * The variant to use.\n * Use indeterminate when there is no progress value.\n */\n variant: PropTypes.oneOf(['determinate', 'indeterminate', 'static'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiCircularProgress',\n flip: false\n})(CircularProgress);","function _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","var _slicedToArray = require(\"/app/node_modules/@babel/runtime/helpers/slicedToArray\");\n\nvar _toConsumableArray = require(\"/app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nrequire(\"core-js/modules/es6.array.reduce\");\n\n/*! fromentries. MIT License. Feross Aboukhadijeh */\nmodule.exports = function fromEntries(iterable) {\n return _toConsumableArray(iterable).reduce(function (obj, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n val = _ref2[1];\n\n obj[key] = val;\n return obj;\n }, {});\n};","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableRest;"],"sourceRoot":""}