1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var BootstrapModule = (function () {
|
4 | function BootstrapModule(xhr) {
|
5 | this.xhr = xhr;
|
6 | }
|
7 | |
8 |
|
9 |
|
10 |
|
11 | BootstrapModule.prototype.getBootstrapData = function () {
|
12 | return this.xhr.get("/gdc/app/account/bootstrap").then(function (result) { return result.getData(); });
|
13 | };
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 | BootstrapModule.prototype.getMapboxToken = function (bootstrapData) {
|
20 | return bootstrapData.bootstrapResource.current.mapboxToken || null;
|
21 | };
|
22 | return BootstrapModule;
|
23 | }());
|
24 | exports.BootstrapModule = BootstrapModule;
|