1 | "use strict";
|
2 | function __export(m) {
|
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
4 | }
|
5 | var __importStar = (this && this.__importStar) || function (mod) {
|
6 | if (mod && mod.__esModule) return mod;
|
7 | var result = {};
|
8 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
9 | result["default"] = mod;
|
10 | return result;
|
11 | };
|
12 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
13 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
14 | };
|
15 | Object.defineProperty(exports, "__esModule", { value: true });
|
16 | var actions = __importStar(require("./actions"));
|
17 | exports.actions = actions;
|
18 | var validate_1 = __importDefault(require("./validate"));
|
19 | var utils_1 = require("./validate/utils");
|
20 | var redirect_1 = require("./client/redirect");
|
21 | var client_1 = require("./client");
|
22 | var shared_1 = require("./util/shared");
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | function createApp(config) {
|
34 | var currentWindow = redirect_1.getWindow();
|
35 | if (!currentWindow) {
|
36 | return shared_1.serverAppBridge;
|
37 | }
|
38 | utils_1.mixedAppClientCheck(currentWindow);
|
39 | return client_1.createAppWrapper(currentWindow.top, currentWindow.location.origin, [validate_1.default])(config);
|
40 | }
|
41 | exports.createApp = createApp;
|
42 | exports.default = createApp;
|
43 | __export(require("./MessageTransport"));
|
44 | __export(require("./client"));
|