{"version":3,"sources":["webpack://[name]/webpack/bootstrap","webpack://[name]/external \"React\"","webpack://[name]/./node_modules/tslib/tslib.es6.js","webpack://[name]/./ts/constants/styles.ts","webpack://[name]/external \"ReactDOM\"","webpack://[name]/./ts/api/GenericApi.ts","webpack://[name]/./ts/Nearby.tsx","webpack://[name]/./ts/nearby/components/App.tsx","webpack://[name]/./ts/nearby/components/StopList.tsx","webpack://[name]/./ts/nearby/components/StopListItem.tsx","webpack://[name]/./ts/nearby/components/ServedBy.tsx","webpack://[name]/./ts/generic/components/GoogleMap.tsx","webpack://[name]/./ts/nearby/components/NearbyMap.tsx","webpack://[name]/./ts/generic/components/SvgUse.tsx","webpack://[name]/./ts/api/ServedByApi.ts","webpack://[name]/./ts/generic/helpers/Debounce.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","React","extendStatics","b","setPrototypeOf","__proto__","Array","__extends","TypeError","String","__","this","constructor","__assign","assign","arguments","length","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__decorate","decorators","target","desc","getOwnPropertyDescriptor","Reflect","decorate","__param","paramIndex","decorator","__esDecorate","ctor","descriptorIn","contextIn","initializers","extraInitializers","accept","f","_","kind","descriptor","done","context","access","addInitializer","push","result","set","init","unshift","__runInitializers","thisArg","useValue","__propKey","x","concat","__setFunctionName","prefix","description","configurable","__metadata","metadataKey","metadataValue","metadata","__awaiter","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","then","__generator","body","y","g","label","sent","trys","ops","verb","iterator","v","op","pop","__createBinding","k","k2","undefined","writable","__exportStar","__values","__read","ar","error","__spread","__spreadArrays","il","a","j","jl","__spreadArray","to","from","pack","slice","__await","__asyncGenerator","asyncIterator","q","resume","fulfill","settle","shift","__asyncDelegator","__asyncValues","__makeTemplateObject","cooked","raw","__setModuleDefault","__importStar","mod","__importDefault","default","__classPrivateFieldGet","receiver","state","has","__classPrivateFieldSet","__classPrivateFieldIn","__addDisposableResource","env","async","dispose","asyncDispose","stack","_SuppressedError","SuppressedError","suppressed","message","Error","__disposeResources","fail","hasError","rec","StyleConstants","DefaultFontFamily","DefaultFontSize","CollapseBusStopInfoSize","MenuBreakPoint","SubMenuBreakPoint","SearchCollapse","Colors","IconFontWeight","IconFontColor","IconFontFamily","IconSize","Width","Height","Scale","Count","ReactDOM","GenericApi","MergeDefaultGet","options","method","credentials","genericRequest","url","request","Request","response","fetch","status","json","fireAndForget","getRequest","postRequest","JSON","stringify","postFormData","element","document","getElementById","reactApp","initialData","window","mtd","nearby","reactDom","render","initialState","map","markers","App","PureComponent","props","super","updateMap","setState","className","renderStopList","latitude","longitude","stops","mapUpdate","MARKER_STRINGS","stop","index","letter","charAt","marker","StopListItem","id","routes","hover","mouseOver","setIcon","highlightIcon","setLabel","mouseOut","regularIcon","ServedByApi","getRoutesServedByForStop","lowercaseId","toLowerCase","onMouseOver","onMouseOut","useId","href","anchor","google","maps","Point","origin","scaledSize","Size","size","text","color","fontFamily","fontSize","fontWeight","toString","sortDisplay","sortNumber","number","renderRoute","display","style","background","textColor","renderRoutes","items","filtered","distinct","rsb","Set","reduce","sort","filterRoutes","GoogleMap","resizeMap","center","getCenter","event","trigger","setCenter","ref","console","Map","Marker","polygons","polygon","Polygon","polylines","polyline","Polyline","kmls","kml","KmlLayer","fitBounds","bounds","LatLngBounds","extend","getPosition","paths","getPaths","getLength","path","getAt","getPath","responsive","debounceResizeMap","debounce","resizeListener","addDomListener","removeListener","anchorPoint","clickable","draggable","icon","position","LatLng","title","zIndex","zoom","dangerouslySetInnerHTML","__html","cleanId","stopId","cb","wait","h","args","clearTimeout","setTimeout"],"mappings":"uBACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ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710ad50ad8f4e.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 305);\n","module.exports = React;","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","/** Constants for styling elements */\r\nexport module StyleConstants {\r\n\r\n/** The default font size for the applicaiton */\r\n\r\n\texport const DefaultFontFamily: string = 'Interstate, sans-serif';\r\n\texport const DefaultFontSize: number = 16;\r\n\r\n\t/** The size at which to collapse the bus stop info page into one column */\r\n\texport const CollapseBusStopInfoSize: number = 1104;\r\n\r\n\texport const MenuBreakPoint: number = 817;\r\n\texport const SubMenuBreakPoint: number = 992;\r\n\r\n\texport const SearchCollapse: number = 1560;\r\n\r\n\texport const Colors: string[] = [\r\n\t\t'e10027',\r\n\t\t'002f87',\r\n\t\t'318d3a',\r\n\t\t'cb3e17',\r\n\t\t'671973',\r\n\t\t'008891'\r\n\t];\r\n\r\n\texport const IconFontWeight: number = 900;\r\n\texport const IconFontColor: string = '#000';\r\n\texport const IconFontFamily: string = 'Interstate, sans-serif';\r\n\r\n\texport const IconSize: { [key: string]: number } = {\r\n\t\tWidth: 26,\r\n\t\tHeight: 32,\r\n\t\tScale: 1.5,\r\n\t\tCount: 6\r\n\t};\r\n\r\n}\r\n","module.exports = ReactDOM;","export module GenericApi {\r\n\r\n\tconst MergeDefaultGet: (options: RequestInit) => RequestInit = (options: RequestInit) => ({\r\n\t\tmethod: 'GET',\r\n\t\tcredentials: 'same-origin',\r\n\t\t...options\r\n\t});\r\n\r\n\texport async function fireAndForget(url: string, options: RequestInit = {}): Promise {\r\n\t\tconst init: RequestInit = MergeDefaultGet(options);\r\n\t\tconst request: Request = new Request(url, init);\r\n\t\tconst response: Response = await fetch(request);\r\n\t\tif (response.status === 200) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\texport async function getRequest(url: string, options: RequestInit = {}): Promise {\r\n\t\tconst init: RequestInit = MergeDefaultGet(options);\r\n\r\n\t\treturn await genericRequest(url, init);\r\n\t}\r\n\r\n\texport async function postRequest(url: string, body: TBody, options: RequestInit = {}): Promise {\r\n\t\tconst init: RequestInit = {\r\n\t\t\tmethod: 'POST',\r\n\t\t\tcredentials: 'same-origin',\r\n\t\t\tbody: JSON.stringify(body),\r\n\t\t\t...options\r\n\t\t};\r\n\r\n\t\treturn await genericRequest(url, init);\r\n\t}\r\n\r\n\texport async function postFormData(url: string, body: FormData, options: RequestInit = {}): Promise {\r\n\t\tconst init: RequestInit = {\r\n\t\t\tmethod: 'POST',\r\n\t\t\tcredentials: 'same-origin',\r\n\t\t\tbody,\r\n\t\t\t...options\r\n\t\t};\r\n\r\n\t\treturn await genericRequest(url, init);\r\n\t}\r\n\r\n\tasync function genericRequest(url: string, init: RequestInit): Promise {\r\n\t\tconst request: Request = new Request(url, init);\r\n\t\tconst response: Response = await fetch(request);\r\n\t\tif (response.status === 200) {\r\n\t\t\treturn await response.json() as T;\r\n\t\t}\r\n\t\tthrow `Status ${response.status}: when fetching '${url}'`;\r\n\t}\r\n\r\n}\r\n","import * as React from 'react';\r\nimport * as reactDom from 'react-dom';\r\nimport { App as Nearby } from './nearby/components/App';\r\n\r\n(() => {\r\n\tconst element = document.getElementById('nearby-app');\r\n\tif (element) {\r\n\t\tconst reactApp = ;\r\n\t\treactDom.render(reactApp, element);\r\n\t}\r\n})();\r\n","/// \r\n\r\nimport * as React from 'react';\r\nimport { PureComponent } from 'react';\r\n\r\nimport { INearbyPayload } from '../types/INearbyPayload';\r\n\r\nimport StopList from './StopList';\r\nimport NearbyMap from './NearbyMap';\r\n\r\ninterface Props {\r\n initialData: INearbyPayload;\r\n}\r\n\r\nconst initialState: { map: google.maps.Map; markers: google.maps.Marker[]; } = { map: null, markers: [] }\r\ntype State = Readonly;\r\n\r\nexport class App extends PureComponent {\r\n\r\n private static readonly MARKER_STRINGS: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n\r\n\tconstructor(props: Props, context: any) {\r\n\t\tsuper(props, context);\r\n\t\tthis.state = { ...initialState };\r\n }\r\n\r\n\t/**\r\n * Render the app.\r\n * @returns { JSX.Element }\r\n */\r\n public render(): JSX.Element {\r\n return
\r\n {this.renderStopList()}\r\n \r\n
;\r\n }\r\n\r\n private renderStopList(): JSX.Element {\r\n if (this.state.map == null) {\r\n return null;\r\n }\r\n return ;\r\n }\r\n\r\n private updateMap: (map: google.maps.Map, markers: google.maps.Marker[]) => void = (map: google.maps.Map, markers: google.maps.Marker[]) => this.setState({ ...this.state, map, markers });\r\n\r\n}\r\n","/// \r\n\r\nimport * as React from 'react';\r\nimport { SFC } from 'react';\r\n\r\nimport { INearbyStop } from '../types/INearbyPayload';\r\n\r\nimport { StopListItem } from './StopListItem';\r\n\r\ninterface Props {\r\n\tstops: INearbyStop[];\r\n\tmarkers: google.maps.Marker[];\r\n\tmap: google.maps.Map;\r\n}\r\n\r\nconst StopList: SFC = (props: Props) => {\r\n\tconst stopListing: (stop: INearbyStop, index: number) => JSX.Element = (stop: INearbyStop, index: number) => {\r\n\r\n\t\tconst markerStrings: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n\t\tconst letter: string = markerStrings.charAt(index);\r\n\r\n\t\tconst marker: google.maps.Marker = props.markers[index];\r\n\t\treturn ;\r\n\t};\r\n\r\n\treturn
    \r\n\t\t{props.stops.map(stopListing)}\r\n\t
;\r\n};\r\n\r\nexport default StopList;\r\n","/// \r\n\r\nimport { StyleConstants as StyleContents } from '../../constants/styles'\r\nimport * as React from 'react';\r\nimport { PureComponent } from 'react';\r\n\r\nimport { StyleConstants } from '../../constants/styles';\r\n\r\nimport { INearbyStop } from '../types/INearbyPayload';\r\nimport { IRoutesServedByPayload } from '../../api/types/ServedBy';\r\nimport { ServedByApi } from '../../api/ServedByApi';\r\n\r\nimport SvgUse from '../../generic/components/SvgUse';\r\n\r\nimport ServedBy from './ServedBy';\r\n\r\ninterface Props {\r\n\tstop: INearbyStop;\r\n\tmarker: google.maps.Marker;\r\n\tmap: google.maps.Map;\r\n\tletter: string;\r\n}\r\n\r\nconst initialState: {\r\n\troutes: IRoutesServedByPayload[];\r\n\thover: boolean;\r\n} = { routes: [], hover: false };\r\ntype State = Readonly;\r\n\r\nexport class StopListItem extends PureComponent {\r\n\r\n\tconstructor(props: Props, context: any) {\r\n\t\tsuper(props, context);\r\n\t\tthis.state = { ...initialState };\r\n\t}\r\n\tpublic async componentDidMount() {\r\n\t\tconst routes: IRoutesServedByPayload[] = await ServedByApi.getRoutesServedByForStop(this.props.stop.id);\r\n\t\tthis.setState({ ...this.state, routes });\r\n\t}\r\n\r\n\tpublic render(): JSX.Element {\r\n\t\tconst lowercaseId: string = this.props.stop.id.toLowerCase();\r\n\t\treturn \r\n\t\t\t\r\n\t\t\t

{this.props.stop.name}

\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\tDirections to stop\r\n\t\t\t\t\tTravel from here\r\n\t\t\t\t\tTravel to here\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\tMore about this stop\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t;\r\n\t}\r\n\r\n\tprivate static regularIcon: () => google.maps.Icon = () => ({\r\n\t\tanchor: new google.maps.Point(16, 16),\r\n\t\torigin: new google.maps.Point(0, 32 * 0),\r\n\t\tscaledSize: new google.maps.Size(32, 192),\r\n\t\tsize: new google.maps.Size(32, 32),\r\n\t\turl: `/content/image/map-marker.svg`\r\n\t});\r\n\r\n\tprivate static highlightIcon: () => google.maps.Icon = () => ({\r\n\t\tanchor: new google.maps.Point(16, 16),\r\n\t\torigin: new google.maps.Point(0, 32 * 1),\r\n\t\tscaledSize: new google.maps.Size(32, 192),\r\n\t\tsize: new google.maps.Size(32, 32),\r\n\t\turl: `/content/image/map-marker.svg`\r\n\t});\r\n\r\n\tprivate static label: (text: string, color: string) => google.maps.MarkerLabel = (text: string, color: string) => ({\r\n\t\ttext,\r\n\t\tcolor,\r\n\t\tfontFamily: StyleContents.DefaultFontFamily,\r\n\t\tfontSize: `${StyleConstants.DefaultFontSize}px`,\r\n\t\tfontWeight: StyleContents.IconFontWeight.toString()\r\n\t});\r\n\r\n\tprivate mouseOver: () => void = () => {\r\n\t\tthis.setState({ ...this.state, hover: true }, () => {\r\n\t\t\tthis.props.marker.setIcon(StopListItem.highlightIcon());\r\n\t\t\tthis.props.marker.setLabel(StopListItem.label(this.props.letter, `#${StyleContents.Colors[1]}`));\r\n\t\t});\r\n\t};\r\n\tprivate mouseOut: () => void = () => {\r\n\t\tthis.setState({ ...this.state, hover: false }, () => {\r\n\t\t\tthis.props.marker.setIcon(StopListItem.regularIcon());\r\n\t\t\tthis.props.marker.setLabel(StopListItem.label(this.props.letter, `#${StyleContents.Colors[0]}`));\r\n\t\t});\r\n\t};\r\n\r\n}\r\n","import * as React from 'react';\r\nimport { SFC } from 'react';\r\n\r\nimport { IRoutesServedByPayload, RouteServedBy } from '../../api/types/ServedBy';\r\n\r\ninterface IDisplay {\r\n\tnumber: string;\r\n\tsortNumber: number;\r\n\tcolor: string;\r\n\ttextColor: string;\r\n}\r\n\r\ninterface Props {\r\n\troutes: IRoutesServedByPayload[];\r\n}\r\n\r\nconst sortDisplay: (a: IDisplay, b: IDisplay) => number = (a: IDisplay, b: IDisplay) => {\r\n\tif (a.sortNumber !== b.sortNumber) {\r\n\t\treturn a.sortNumber - b.sortNumber;\r\n\t}\r\n\treturn a.number > b.number ? 1 : -1;\r\n}\r\n\r\nconst distinct: (items: IDisplay[]) => IDisplay[] = (items: IDisplay[]) => {\r\n\tconst set: { [key: string]: IDisplay } = {};\r\n\tconst filtered: IDisplay[] = [];\r\n\r\n\tfor (let display of items) {\r\n\t\tif (!set.hasOwnProperty(display.number)) {\r\n\t\t\tset[display.number] = null;\r\n\t\t\tfiltered.push(display);\r\n\t\t}\r\n\t}\r\n\r\n\treturn filtered;\r\n};\r\n\r\nconst filterRoutes: (routes: IRoutesServedByPayload[]) => IDisplay[] = (routes: IRoutesServedByPayload[]) => {\r\n\tif (!routes) {\r\n\t\treturn [];\r\n\t}\r\n\r\n\t// get all routes from all route groups\r\n\tconst items: IDisplay[][] = routes\r\n\t\t.map((rsb: IRoutesServedByPayload) => {\r\n\r\n\t\t\tconst numbers: string[] = [...new Set(rsb.routes.map((r: RouteServedBy) => r.number))];\r\n\t\t\tconst display: IDisplay[] =\r\n\t\t\t\tnumbers.map((number: string) => ({\r\n\t\t\t\t\tnumber,\r\n\t\t\t\t\tsortNumber: rsb.sortNumber,\r\n\t\t\t\t\tcolor: rsb.color,\r\n\t\t\t\t\ttextColor: rsb.textColor\r\n\t\t\t\t}));\r\n\t\t\treturn display;\r\n\t\t});\r\n\r\n\t// flatten\r\n\tconst combined: IDisplay[] = items\r\n\t\t.reduce((p: IDisplay[], c: IDisplay[]) => p.concat(c), []);\r\n\r\n\t// get distinct\r\n\tconst filtered: IDisplay[] = distinct(combined);\r\n\r\n\t// sort\r\n\tconst sorted: IDisplay[] = filtered\r\n\t\t.sort(sortDisplay);\r\n\r\n\treturn sorted;\r\n}\r\n\r\nconst renderRoute: (display: IDisplay, index: number) => JSX.Element = (display: IDisplay, index: number) => {\r\n\treturn {display.number};\r\n};\r\n\r\nconst renderRoutes: (routes: IRoutesServedByPayload[]) => JSX.Element[] = (routes: IRoutesServedByPayload[]) => {\r\n\tconst filtered: IDisplay[] = filterRoutes(routes);\r\n\treturn filtered.map(renderRoute);\r\n};\r\n\r\nconst ServedBy: SFC = (props: Props) => {\r\n\treturn
\r\n\t\t

Served by

\r\n\t\t
    \r\n\t\t\t{renderRoutes(props.routes)}\r\n\t\t
\r\n\t
;\r\n};\r\n\r\nexport default ServedBy;\r\n","/// \r\n\r\nimport * as React from 'react';\r\nimport { PureComponent } from 'react';\r\n\r\nimport { debounce } from '../helpers/Debounce';\r\n\r\ninterface Props {\r\n\toptions: google.maps.MapOptions;\r\n\tmarkers?: google.maps.MarkerOptions[];\r\n\tpolygons?: google.maps.PolygonOptions[];\r\n\tpolylines?: google.maps.PolylineOptions[];\r\n\tkml?: google.maps.KmlLayerOptions[];\r\n\tfitBounds?: boolean;\r\n\tmapUpdate?: (map: google.maps.Map, markers: google.maps.Marker[]) => void;\r\n\tresponsive?: boolean;\r\n}\r\n\r\nexport class GoogleMap extends PureComponent {\r\n\r\n\tprivate map: google.maps.Map;\r\n\tprivate resizeListener: google.maps.MapsEventListener;\r\n\tprivate element: HTMLDivElement;\r\n\r\n\tconstructor(props: Props, context: any) {\r\n\t\tsuper(props, context);\r\n\t}\r\n\r\n\tpublic render() {\r\n\t\treturn (
\r\n\t\t\t
this.element = element}>\r\n\t\t\t
\r\n\t\t
);\r\n\t}\r\n\r\n\tpublic componentDidMount() {\r\n\t\tif (typeof google === 'undefined' || typeof google.maps === 'undefined') {\r\n\t\t\tconsole.error(\"Google Maps API is not loaded\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (this.element && this.props.options) {\r\n\t\t\tthis.map = new google.maps.Map(this.element, this.props.options);\r\n\t\t} else {\r\n\t\t\tconsole.error(\"Element or map options are not available\", { element: this.element, options: this.props.options });\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst markers: google.maps.Marker[] = [];\r\n\t\tif (this.props.markers != null) {\r\n\t\t\tfor (let marker of this.props.markers) {\r\n\t\t\t\tmarkers.push(new google.maps.Marker({ ...marker, map: this.map }));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconst polygons: google.maps.Polygon[] = [];\r\n\t\tif (this.props.polygons != null) {\r\n\t\t\tfor (let polygon of this.props.polygons) {\r\n\t\t\t\tpolygons.push(new google.maps.Polygon({ ...polygon, map: this.map }));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconst polylines: google.maps.Polyline[] = [];\r\n\t\tif (this.props.polylines != null) {\r\n\t\t\tfor (let polyline of this.props.polylines) {\r\n\t\t\t\tpolylines.push(new google.maps.Polyline({ ...polyline, map: this.map }));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconst kmls: google.maps.KmlLayer[] = [];\r\n\t\tif (this.props.kml != null) {\r\n\t\t\tfor (let kml of this.props.kml) {\r\n\t\t\t\tkmls.push(new google.maps.KmlLayer({ ...kml, map: this.map }));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// make sure all markers fit on map\r\n\t\tif (this.props.fitBounds) {\r\n\r\n\t\t\t// where we will fit the map\r\n\t\t\tconst bounds: google.maps.LatLngBounds = new google.maps.LatLngBounds();\r\n\r\n\t\t\tif (markers && markers.length > 0) {\r\n\t\t\t\tfor (let i: number = 0; i < markers.length; i++) {\r\n\t\t\t\t\tbounds.extend(markers[i].getPosition());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (polygons && polygons.length > 0) {\r\n\t\t\t\tfor (let i: number = 0; i < polygons.length; i++) {\r\n\t\t\t\t\tconst paths: google.maps.MVCArray> = polygons[i].getPaths();\r\n\t\t\t\t\tfor (let j: number = 0; j < paths.getLength(); j++) {\r\n\t\t\t\t\t\tconst path: google.maps.MVCArray = paths.getAt(j);\r\n\t\t\t\t\t\tfor (let k: number = 0; k < path.getLength(); k++) {\r\n\t\t\t\t\t\t\tbounds.extend(path.getAt(k));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (polylines && polylines.length > 0) {\r\n\t\t\t\tfor (let i: number = 0; i < polylines.length; i++) {\r\n\t\t\t\t\tconst path: google.maps.MVCArray = polylines[i].getPath();\r\n\t\t\t\t\tfor (let k: number = 0; k < path.getLength(); k++) {\r\n\t\t\t\t\t\tbounds.extend(path.getAt(k));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.map.fitBounds(bounds);\r\n\t\t}\r\n\r\n\t\t// default to true\r\n\t\tif (this.props.responsive == null || this.props.responsive) {\r\n\t\t\tconst debounceResizeMap: () => void =\r\n\t\t\t\tdebounce(this.resizeMap, 100);\r\n\t\t\tthis.resizeListener =\r\n\t\t\t\tgoogle.maps.event\r\n\t\t\t\t\t.addDomListener(window, 'resize', debounceResizeMap);\r\n\t\t}\r\n\r\n\t\tif (this.props.mapUpdate != null) {\r\n\t\t\tthis.props.mapUpdate(this.map, markers);\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tpublic componentWillUnmount(): void {\r\n\t\tif (this.resizeListener) {\r\n\t\t\tgoogle.maps.event.removeListener(this.resizeListener);\r\n\t\t}\r\n\t}\r\n\r\n\tprivate resizeMap: () => void = () => {\r\n\t\tconst center: google.maps.LatLng = this.map.getCenter();\r\n\t\tgoogle.maps.event.trigger(this.map, 'resize');\r\n\t\tthis.map.setCenter(center);\r\n\t};\r\n\r\n}\r\n\r\n","/// \r\n\r\nimport * as React from 'react';\r\nimport { SFC } from 'react';\r\n\r\nimport { StyleConstants as StyleContents } from '../../constants/styles'\r\n\r\nimport { INearbyStop } from '../types/INearbyPayload';\r\n\r\nimport { GoogleMap } from '../../generic/components/GoogleMap';\r\n\r\ninterface Props {\r\n\tlatitude: number;\r\n\tlongitude: number;\r\n\tstops: INearbyStop[];\r\n\tmapUpdate: (map: google.maps.Map, markers: google.maps.Marker[]) => void;\r\n}\r\n\r\n\r\nconst NearbyMap: SFC = (props: Props) => {\r\n\r\n\tconst markerStrings: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n\r\n\tconst createCenterMarker: (latitude: number, longitude: number) => google.maps.MarkerOptions = (latitude: number, longitude: number) => ({\r\n\t\tanchorPoint: new google.maps.Point(0, -16),\r\n\t\tclickable: false,\r\n\t\tdraggable: false,\r\n\t\ticon: {\r\n\t\t\tanchor: new google.maps.Point(16, 16),\r\n\t\t\torigin: new google.maps.Point(0, 32 * 2),\r\n\t\t\tscaledSize: new google.maps.Size(32, 192),\r\n\t\t\tsize: new google.maps.Size(32, 32),\r\n\t\t\turl: `/content/image/map-marker.svg`\r\n\t\t},\r\n\t\tlabel: {\r\n\t\t\ttext: ' ',\r\n\t\t\tcolor: '#fff',\r\n\t\t\tfontFamily: StyleContents.IconFontFamily,\r\n\t\t\tfontSize: `${StyleContents.DefaultFontSize}px`,\r\n\t\t\tfontWeight: StyleContents.IconFontWeight.toString()\r\n\t\t},\r\n\t\tposition: new google.maps.LatLng(latitude, longitude),\r\n\t\tzIndex: 1000\r\n\t});\r\n\r\n\tconst stopToMarker: (stop: INearbyStop, index: number) => google.maps.MarkerOptions = (stop: INearbyStop, index: number) => ({\r\n\t\tanchorPoint: new google.maps.Point(0, -16),\r\n\t\tclickable: false,\r\n\t\tdraggable: false,\r\n\t\ticon: {\r\n\t\t\tanchor: new google.maps.Point(16, 16),\r\n\t\t\torigin: new google.maps.Point(0, 32 * 0),\r\n\t\t\tscaledSize: new google.maps.Size(32, 192),\r\n\t\t\tsize: new google.maps.Size(32, 32),\r\n\t\t\turl: `/content/image/map-marker.svg`\r\n\t\t},\r\n\t\tlabel: {\r\n\t\t\ttext: markerStrings.charAt(index),\r\n\t\t\tcolor: `#${StyleContents.Colors[0]}`,\r\n\t\t\tfontFamily: StyleContents.DefaultFontFamily,\r\n\t\t\tfontSize: `${StyleContents.DefaultFontSize}px`,\r\n\t\t\tfontWeight: StyleContents.IconFontWeight.toString()\r\n\t\t\t\r\n\t\t},\r\n\t\tposition: new google.maps.LatLng(stop.latitude, stop.longitude),\r\n\t\ttitle: stop.name,\r\n\t\tzIndex: 1100 - index\r\n\t});\r\n\r\n\tconst markers: google.maps.MarkerOptions[] = props\r\n\t\t\t.stops\r\n\t\t\t.map(stopToMarker);\r\n\t\tmarkers.push(createCenterMarker(props.latitude, props.longitude));\r\n\r\n\t\tconst options: google.maps.MapOptions = {\r\n\t\t\tcenter: new google.maps.LatLng(props.latitude, props.longitude),\r\n\t\t\tzoom: 18\r\n\t\t};\r\n\r\n\t\treturn ;\r\n\t};\r\n\r\nexport default NearbyMap;\r\n","import * as React from 'react';\r\nimport { SFC } from 'react';\r\n\r\ninterface Props {\r\n\tuseId: string;\r\n}\r\n\r\nconst cleanId: (id: string) => string = (id: string) => {\r\n\tif (id.charAt(0) === '#') {\r\n\t\treturn id;\r\n\t}\r\n\treturn `#${id}`;\r\n}\r\n\r\nconst getHtml: (id: string) => string = (id: string) => ``;\r\n\r\nconst SvgUse: SFC = (props: Props) => ;\r\n\r\nexport default SvgUse;\r\n","import { GenericApi } from './GenericApi';\r\nimport { IRoutesServedByPayload } from './types/ServedBy';\r\n\r\nexport module ServedByApi {\r\n\r\n\tconst BASE_SERVED_BY_URL: string = '/umbraco/api/servedby/stop/';\r\n\r\n\texport async function getRoutesServedByForStop(stopId: string): Promise {\r\n\t\tconst url: string = `${BASE_SERVED_BY_URL}?stopId=${stopId}`;\r\n\t\tconst result: IRoutesServedByPayload[] = await GenericApi.getRequest(url);\r\n\t\treturn result;\r\n\t}\r\n}\r\n","/**\r\n * Enforce that a function not be called until a certain amount of time has passed without it being called.\r\n */\r\nexport function debounce(cb: T, wait = 20) {\r\n\tlet h = 0;\r\n\tlet callable = (...args: any) => {\r\n\t\tclearTimeout(h);\r\n\t\th = window.setTimeout(() => cb(...args), wait);\r\n\t};\r\n\treturn (callable);\r\n}\r\n"],"sourceRoot":""}