@machinemetrics/mm-react-embeddable 1.0.2-0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mm-react-embeddable.cjs.js +11 -11
- package/dist/mm-react-embeddable.es.js +243 -243
- package/dist/mm-react-embeddable.umd.js +11 -11
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
var
|
|
1
|
+
import Ze, { createContext as wr, useState as Z, useRef as oe, useCallback as Y, useEffect as A, useMemo as Tr, useContext as Ne } from "react";
|
|
2
|
+
import N from "prop-types";
|
|
3
|
+
import qe from "styled-components";
|
|
4
|
+
var ye = { exports: {} }, J = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,21 +11,21 @@ var me = { exports: {} }, K = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
14
|
+
var Be;
|
|
15
15
|
function Sr() {
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var n =
|
|
19
|
-
function k(
|
|
16
|
+
if (Be) return J;
|
|
17
|
+
Be = 1;
|
|
18
|
+
var n = Ze, o = Symbol.for("react.element"), S = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, _ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function k(m, E, F) {
|
|
20
20
|
var p, x = {}, i = null, d = null;
|
|
21
|
-
F !== void 0 && (i = "" + F),
|
|
22
|
-
for (p in
|
|
23
|
-
if (
|
|
24
|
-
return { $$typeof: o, type:
|
|
21
|
+
F !== void 0 && (i = "" + F), E.key !== void 0 && (i = "" + E.key), E.ref !== void 0 && (d = E.ref);
|
|
22
|
+
for (p in E) c.call(E, p) && !w.hasOwnProperty(p) && (x[p] = E[p]);
|
|
23
|
+
if (m && m.defaultProps) for (p in E = m.defaultProps, E) x[p] === void 0 && (x[p] = E[p]);
|
|
24
|
+
return { $$typeof: o, type: m, key: i, ref: d, props: x, _owner: _.current };
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return J.Fragment = S, J.jsx = k, J.jsxs = k, J;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var K = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
@@ -35,27 +35,27 @@ var Z = {};
|
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
38
|
+
var Je;
|
|
39
39
|
function Cr() {
|
|
40
|
-
return
|
|
41
|
-
var n =
|
|
42
|
-
function
|
|
40
|
+
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
+
var n = Ze, o = Symbol.for("react.element"), S = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), i = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), l = Symbol.iterator, y = "@@iterator";
|
|
42
|
+
function O(e) {
|
|
43
43
|
if (e === null || typeof e != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var r = l && e[l] || e[
|
|
45
|
+
var r = l && e[l] || e[y];
|
|
46
46
|
return typeof r == "function" ? r : null;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var b = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function g(e) {
|
|
50
50
|
{
|
|
51
51
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
52
52
|
t[a - 1] = arguments[a];
|
|
53
|
-
|
|
53
|
+
I("error", e, t);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function I(e, r, t) {
|
|
57
57
|
{
|
|
58
|
-
var a =
|
|
58
|
+
var a = b.ReactDebugCurrentFrame, f = a.getStackAddendum();
|
|
59
59
|
f !== "" && (r += "%s", t = t.concat([f]));
|
|
60
60
|
var v = t.map(function(u) {
|
|
61
61
|
return String(u);
|
|
@@ -63,14 +63,14 @@ function Cr() {
|
|
|
63
63
|
v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === w ||
|
|
66
|
+
var D = !1, G = !1, z = !1, ie = !1, se = !1, X;
|
|
67
|
+
X = Symbol.for("react.module.reference");
|
|
68
|
+
function H(e) {
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === w || se || e === _ || e === F || e === p || ie || e === d || D || G || z || typeof e == "object" && e !== null && (e.$$typeof === i || e.$$typeof === x || e.$$typeof === k || e.$$typeof === m || e.$$typeof === E || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
|
-
e.$$typeof ===
|
|
73
|
+
e.$$typeof === X || e.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
75
|
function Ge(e, r, t) {
|
|
76
76
|
var a = e.displayName;
|
|
@@ -79,10 +79,10 @@ function Cr() {
|
|
|
79
79
|
var f = r.displayName || r.name || "";
|
|
80
80
|
return f !== "" ? t + "(" + f + ")" : t;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ee(e) {
|
|
83
83
|
return e.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function M(e) {
|
|
86
86
|
if (e == null)
|
|
87
87
|
return null;
|
|
88
88
|
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -105,21 +105,21 @@ function Cr() {
|
|
|
105
105
|
}
|
|
106
106
|
if (typeof e == "object")
|
|
107
107
|
switch (e.$$typeof) {
|
|
108
|
-
case
|
|
108
|
+
case m:
|
|
109
109
|
var r = e;
|
|
110
|
-
return
|
|
110
|
+
return Ee(r) + ".Consumer";
|
|
111
111
|
case k:
|
|
112
112
|
var t = e;
|
|
113
|
-
return
|
|
114
|
-
case
|
|
113
|
+
return Ee(t._context) + ".Provider";
|
|
114
|
+
case E:
|
|
115
115
|
return Ge(e, e.render, "ForwardRef");
|
|
116
116
|
case x:
|
|
117
117
|
var a = e.displayName || null;
|
|
118
|
-
return a !== null ? a :
|
|
118
|
+
return a !== null ? a : M(e.type) || "Memo";
|
|
119
119
|
case i: {
|
|
120
120
|
var f = e, v = f._payload, u = f._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return M(u(v));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,18 +127,18 @@ function Cr() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var $ = Object.assign,
|
|
131
|
-
function
|
|
130
|
+
var $ = Object.assign, V = 0, Re, _e, we, Te, Se, Ce, Oe;
|
|
131
|
+
function Pe() {
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
Pe.__reactDisabledLog = !0;
|
|
134
134
|
function ze() {
|
|
135
135
|
{
|
|
136
|
-
if (
|
|
137
|
-
|
|
136
|
+
if (V === 0) {
|
|
137
|
+
Re = console.log, _e = console.info, we = console.warn, Te = console.error, Se = console.group, Ce = console.groupCollapsed, Oe = console.groupEnd;
|
|
138
138
|
var e = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
141
|
-
value:
|
|
141
|
+
value: Pe,
|
|
142
142
|
writable: !0
|
|
143
143
|
};
|
|
144
144
|
Object.defineProperties(console, {
|
|
@@ -151,12 +151,12 @@ function Cr() {
|
|
|
151
151
|
groupEnd: e
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
V++;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
function Xe() {
|
|
158
158
|
{
|
|
159
|
-
if (
|
|
159
|
+
if (V--, V === 0) {
|
|
160
160
|
var e = {
|
|
161
161
|
configurable: !0,
|
|
162
162
|
enumerable: !0,
|
|
@@ -164,64 +164,64 @@ function Cr() {
|
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
166
|
log: $({}, e, {
|
|
167
|
-
value:
|
|
167
|
+
value: Re
|
|
168
168
|
}),
|
|
169
169
|
info: $({}, e, {
|
|
170
|
-
value:
|
|
170
|
+
value: _e
|
|
171
171
|
}),
|
|
172
172
|
warn: $({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: we
|
|
174
174
|
}),
|
|
175
175
|
error: $({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: Te
|
|
177
177
|
}),
|
|
178
178
|
group: $({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: Se
|
|
180
180
|
}),
|
|
181
181
|
groupCollapsed: $({}, e, {
|
|
182
|
-
value:
|
|
182
|
+
value: Ce
|
|
183
183
|
}),
|
|
184
184
|
groupEnd: $({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: Oe
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
V < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var
|
|
193
|
-
function
|
|
192
|
+
var ue = b.ReactCurrentDispatcher, ce;
|
|
193
|
+
function Q(e, r, t) {
|
|
194
194
|
{
|
|
195
|
-
if (
|
|
195
|
+
if (ce === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (f) {
|
|
199
199
|
var a = f.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
-
|
|
200
|
+
ce = a && a[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
|
-
` +
|
|
203
|
+
` + ce + e;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var le = !1, ee;
|
|
207
207
|
{
|
|
208
208
|
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
-
|
|
209
|
+
ee = new He();
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
if (!e ||
|
|
211
|
+
function xe(e, r) {
|
|
212
|
+
if (!e || le)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var t =
|
|
215
|
+
var t = ee.get(e);
|
|
216
216
|
if (t !== void 0)
|
|
217
217
|
return t;
|
|
218
218
|
}
|
|
219
219
|
var a;
|
|
220
|
-
|
|
220
|
+
le = !0;
|
|
221
221
|
var f = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var v;
|
|
224
|
-
v =
|
|
224
|
+
v = ue.current, ue.current = null, ze();
|
|
225
225
|
try {
|
|
226
226
|
if (r) {
|
|
227
227
|
var u = function() {
|
|
@@ -257,93 +257,93 @@ function Cr() {
|
|
|
257
257
|
} catch (P) {
|
|
258
258
|
if (P && a && typeof P.stack == "string") {
|
|
259
259
|
for (var s = P.stack.split(`
|
|
260
|
-
`),
|
|
261
|
-
`),
|
|
260
|
+
`), C = a.stack.split(`
|
|
261
|
+
`), h = s.length - 1, R = C.length - 1; h >= 1 && R >= 0 && s[h] !== C[R]; )
|
|
262
262
|
R--;
|
|
263
|
-
for (;
|
|
264
|
-
if (s[
|
|
265
|
-
if (
|
|
263
|
+
for (; h >= 1 && R >= 0; h--, R--)
|
|
264
|
+
if (s[h] !== C[R]) {
|
|
265
|
+
if (h !== 1 || R !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
267
|
+
if (h--, R--, R < 0 || s[h] !== C[R]) {
|
|
268
268
|
var j = `
|
|
269
|
-
` + s[
|
|
270
|
-
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
269
|
+
` + s[h].replace(" at new ", " at ");
|
|
270
|
+
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, j), j;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (h >= 1 && R >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
|
|
277
|
+
le = !1, ue.current = v, Xe(), Error.prepareStackTrace = f;
|
|
278
278
|
}
|
|
279
|
-
var L = e ? e.displayName || e.name : "", U = L ?
|
|
280
|
-
return typeof e == "function" &&
|
|
279
|
+
var L = e ? e.displayName || e.name : "", U = L ? Q(L) : "";
|
|
280
|
+
return typeof e == "function" && ee.set(e, U), U;
|
|
281
281
|
}
|
|
282
282
|
function Qe(e, r, t) {
|
|
283
|
-
return
|
|
283
|
+
return xe(e, !1);
|
|
284
284
|
}
|
|
285
285
|
function er(e) {
|
|
286
286
|
var r = e.prototype;
|
|
287
287
|
return !!(r && r.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function re(e, r, t) {
|
|
290
290
|
if (e == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof e == "function")
|
|
293
|
-
return
|
|
293
|
+
return xe(e, er(e));
|
|
294
294
|
if (typeof e == "string")
|
|
295
|
-
return
|
|
295
|
+
return Q(e);
|
|
296
296
|
switch (e) {
|
|
297
297
|
case F:
|
|
298
|
-
return
|
|
298
|
+
return Q("Suspense");
|
|
299
299
|
case p:
|
|
300
|
-
return
|
|
300
|
+
return Q("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof e == "object")
|
|
303
303
|
switch (e.$$typeof) {
|
|
304
|
-
case
|
|
304
|
+
case E:
|
|
305
305
|
return Qe(e.render);
|
|
306
306
|
case x:
|
|
307
|
-
return
|
|
307
|
+
return re(e.type, r, t);
|
|
308
308
|
case i: {
|
|
309
309
|
var a = e, f = a._payload, v = a._init;
|
|
310
310
|
try {
|
|
311
|
-
return
|
|
311
|
+
return re(v(f), r, t);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
318
|
+
var q = Object.prototype.hasOwnProperty, je = {}, ke = b.ReactDebugCurrentFrame;
|
|
319
|
+
function te(e) {
|
|
320
320
|
if (e) {
|
|
321
|
-
var r = e._owner, t =
|
|
322
|
-
|
|
321
|
+
var r = e._owner, t = re(e.type, e._source, r ? r.type : null);
|
|
322
|
+
ke.setExtraStackFrame(t);
|
|
323
323
|
} else
|
|
324
|
-
|
|
324
|
+
ke.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
326
|
function rr(e, r, t, a, f) {
|
|
327
327
|
{
|
|
328
|
-
var v = Function.call.bind(
|
|
328
|
+
var v = Function.call.bind(q);
|
|
329
329
|
for (var u in e)
|
|
330
330
|
if (v(e, u)) {
|
|
331
331
|
var s = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof e[u] != "function") {
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
334
|
+
var C = Error((a || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw C.name = "Invariant Violation", C;
|
|
336
336
|
}
|
|
337
337
|
s = e[u](r, u, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
-
} catch (
|
|
339
|
-
s =
|
|
338
|
+
} catch (h) {
|
|
339
|
+
s = h;
|
|
340
340
|
}
|
|
341
|
-
s && !(s instanceof Error) && (
|
|
341
|
+
s && !(s instanceof Error) && (te(f), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, u, typeof s), te(null)), s instanceof Error && !(s.message in je) && (je[s.message] = !0, te(f), g("Failed %s type: %s", t, s.message), te(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
var tr = Array.isArray;
|
|
346
|
-
function
|
|
346
|
+
function fe(e) {
|
|
347
347
|
return tr(e);
|
|
348
348
|
}
|
|
349
349
|
function nr(e) {
|
|
@@ -354,27 +354,27 @@ function Cr() {
|
|
|
354
354
|
}
|
|
355
355
|
function ar(e) {
|
|
356
356
|
try {
|
|
357
|
-
return
|
|
357
|
+
return Fe(e), !1;
|
|
358
358
|
} catch {
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Fe(e) {
|
|
363
363
|
return "" + e;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ie(e) {
|
|
366
366
|
if (ar(e))
|
|
367
|
-
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)),
|
|
367
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Fe(e);
|
|
368
368
|
}
|
|
369
|
-
var
|
|
369
|
+
var B = b.ReactCurrentOwner, or = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
|
-
},
|
|
375
|
-
|
|
374
|
+
}, De, Me, de;
|
|
375
|
+
de = {};
|
|
376
376
|
function ir(e) {
|
|
377
|
-
if (
|
|
377
|
+
if (q.call(e, "ref")) {
|
|
378
378
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
379
379
|
if (r && r.isReactWarning)
|
|
380
380
|
return !1;
|
|
@@ -382,7 +382,7 @@ function Cr() {
|
|
|
382
382
|
return e.ref !== void 0;
|
|
383
383
|
}
|
|
384
384
|
function sr(e) {
|
|
385
|
-
if (
|
|
385
|
+
if (q.call(e, "key")) {
|
|
386
386
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
387
387
|
if (r && r.isReactWarning)
|
|
388
388
|
return !1;
|
|
@@ -390,15 +390,15 @@ function Cr() {
|
|
|
390
390
|
return e.key !== void 0;
|
|
391
391
|
}
|
|
392
392
|
function ur(e, r) {
|
|
393
|
-
if (typeof e.ref == "string" &&
|
|
394
|
-
var t =
|
|
395
|
-
|
|
393
|
+
if (typeof e.ref == "string" && B.current && r && B.current.stateNode !== r) {
|
|
394
|
+
var t = M(B.current.type);
|
|
395
|
+
de[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', M(B.current.type), e.ref), de[t] = !0);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
function cr(e, r) {
|
|
399
399
|
{
|
|
400
400
|
var t = function() {
|
|
401
|
-
|
|
401
|
+
De || (De = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
402
402
|
};
|
|
403
403
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
404
404
|
get: t,
|
|
@@ -409,7 +409,7 @@ function Cr() {
|
|
|
409
409
|
function lr(e, r) {
|
|
410
410
|
{
|
|
411
411
|
var t = function() {
|
|
412
|
-
|
|
412
|
+
Me || (Me = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
413
413
|
};
|
|
414
414
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
415
415
|
get: t,
|
|
@@ -448,39 +448,39 @@ function Cr() {
|
|
|
448
448
|
};
|
|
449
449
|
function dr(e, r, t, a, f) {
|
|
450
450
|
{
|
|
451
|
-
var v, u = {}, s = null,
|
|
452
|
-
t !== void 0 && (
|
|
451
|
+
var v, u = {}, s = null, C = null;
|
|
452
|
+
t !== void 0 && (Ie(t), s = "" + t), sr(r) && (Ie(r.key), s = "" + r.key), ir(r) && (C = r.ref, ur(r, f));
|
|
453
453
|
for (v in r)
|
|
454
|
-
|
|
454
|
+
q.call(r, v) && !or.hasOwnProperty(v) && (u[v] = r[v]);
|
|
455
455
|
if (e && e.defaultProps) {
|
|
456
|
-
var
|
|
457
|
-
for (v in
|
|
458
|
-
u[v] === void 0 && (u[v] =
|
|
456
|
+
var h = e.defaultProps;
|
|
457
|
+
for (v in h)
|
|
458
|
+
u[v] === void 0 && (u[v] = h[v]);
|
|
459
459
|
}
|
|
460
|
-
if (s ||
|
|
460
|
+
if (s || C) {
|
|
461
461
|
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
462
|
-
s && cr(u, R),
|
|
462
|
+
s && cr(u, R), C && lr(u, R);
|
|
463
463
|
}
|
|
464
|
-
return fr(e, s,
|
|
464
|
+
return fr(e, s, C, f, a, B.current, u);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var ve = b.ReactCurrentOwner, Ae = b.ReactDebugCurrentFrame;
|
|
468
468
|
function W(e) {
|
|
469
469
|
if (e) {
|
|
470
|
-
var r = e._owner, t =
|
|
471
|
-
|
|
470
|
+
var r = e._owner, t = re(e.type, e._source, r ? r.type : null);
|
|
471
|
+
Ae.setExtraStackFrame(t);
|
|
472
472
|
} else
|
|
473
|
-
|
|
473
|
+
Ae.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
|
|
477
|
-
function
|
|
475
|
+
var pe;
|
|
476
|
+
pe = !1;
|
|
477
|
+
function ge(e) {
|
|
478
478
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function $e() {
|
|
481
481
|
{
|
|
482
|
-
if (
|
|
483
|
-
var e =
|
|
482
|
+
if (ve.current) {
|
|
483
|
+
var e = M(ve.current.type);
|
|
484
484
|
if (e)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -492,10 +492,10 @@ Check the render method of \`` + e + "`.";
|
|
|
492
492
|
function vr(e) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
|
-
var
|
|
495
|
+
var Ue = {};
|
|
496
496
|
function pr(e) {
|
|
497
497
|
{
|
|
498
|
-
var r =
|
|
498
|
+
var r = $e();
|
|
499
499
|
if (!r) {
|
|
500
500
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
501
501
|
t && (r = `
|
|
@@ -505,35 +505,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
505
505
|
return r;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function We(e, r) {
|
|
509
509
|
{
|
|
510
510
|
if (!e._store || e._store.validated || e.key != null)
|
|
511
511
|
return;
|
|
512
512
|
e._store.validated = !0;
|
|
513
513
|
var t = pr(r);
|
|
514
|
-
if (
|
|
514
|
+
if (Ue[t])
|
|
515
515
|
return;
|
|
516
|
-
|
|
516
|
+
Ue[t] = !0;
|
|
517
517
|
var a = "";
|
|
518
|
-
e && e._owner && e._owner !==
|
|
518
|
+
e && e._owner && e._owner !== ve.current && (a = " It was passed a child from " + M(e._owner.type) + "."), W(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), W(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Le(e, r) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof e != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (
|
|
525
|
+
if (fe(e))
|
|
526
526
|
for (var t = 0; t < e.length; t++) {
|
|
527
527
|
var a = e[t];
|
|
528
|
-
|
|
528
|
+
ge(a) && We(a, r);
|
|
529
529
|
}
|
|
530
|
-
else if (
|
|
530
|
+
else if (ge(e))
|
|
531
531
|
e._store && (e._store.validated = !0);
|
|
532
532
|
else if (e) {
|
|
533
|
-
var f =
|
|
533
|
+
var f = O(e);
|
|
534
534
|
if (typeof f == "function" && f !== e.entries)
|
|
535
535
|
for (var v = f.call(e), u; !(u = v.next()).done; )
|
|
536
|
-
|
|
536
|
+
ge(u.value) && We(u.value, r);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -545,18 +545,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
545
545
|
var t;
|
|
546
546
|
if (typeof r == "function")
|
|
547
547
|
t = r.propTypes;
|
|
548
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
548
|
+
else if (typeof r == "object" && (r.$$typeof === E || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
550
|
r.$$typeof === x))
|
|
551
551
|
t = r.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (t) {
|
|
555
|
-
var a =
|
|
555
|
+
var a = M(r);
|
|
556
556
|
rr(t, e.props, "prop", a, e);
|
|
557
|
-
} else if (r.PropTypes !== void 0 && !
|
|
558
|
-
|
|
559
|
-
var f =
|
|
557
|
+
} else if (r.PropTypes !== void 0 && !pe) {
|
|
558
|
+
pe = !0;
|
|
559
|
+
var f = M(r);
|
|
560
560
|
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
|
|
561
561
|
}
|
|
562
562
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -574,17 +574,17 @@ Check the top-level render call using <` + t + ">.");
|
|
|
574
574
|
e.ref !== null && (W(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
function
|
|
577
|
+
var Ye = {};
|
|
578
|
+
function Ve(e, r, t, a, f, v) {
|
|
579
579
|
{
|
|
580
|
-
var u =
|
|
580
|
+
var u = H(e);
|
|
581
581
|
if (!u) {
|
|
582
582
|
var s = "";
|
|
583
583
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
-
var
|
|
585
|
-
|
|
586
|
-
var
|
|
587
|
-
e === null ?
|
|
584
|
+
var C = vr();
|
|
585
|
+
C ? s += C : s += $e();
|
|
586
|
+
var h;
|
|
587
|
+
e === null ? h = "null" : fe(e) ? h = "array" : e !== void 0 && e.$$typeof === o ? (h = "<" + (M(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, s);
|
|
588
588
|
}
|
|
589
589
|
var R = dr(e, r, t, f, v);
|
|
590
590
|
if (R == null)
|
|
@@ -593,175 +593,175 @@ Check the top-level render call using <` + t + ">.");
|
|
|
593
593
|
var j = r.children;
|
|
594
594
|
if (j !== void 0)
|
|
595
595
|
if (a)
|
|
596
|
-
if (
|
|
596
|
+
if (fe(j)) {
|
|
597
597
|
for (var L = 0; L < j.length; L++)
|
|
598
|
-
|
|
598
|
+
Le(j[L], e);
|
|
599
599
|
Object.freeze && Object.freeze(j);
|
|
600
600
|
} else
|
|
601
601
|
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
|
-
|
|
603
|
+
Le(j, e);
|
|
604
604
|
}
|
|
605
|
-
if (
|
|
606
|
-
var U =
|
|
605
|
+
if (q.call(r, "key")) {
|
|
606
|
+
var U = M(e), P = Object.keys(r).filter(function(_r) {
|
|
607
607
|
return _r !== "key";
|
|
608
|
-
}),
|
|
609
|
-
if (!
|
|
608
|
+
}), be = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
+
if (!Ye[U + be]) {
|
|
610
610
|
var Rr = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
|
|
611
611
|
g(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`,
|
|
616
|
+
<%s key={someKey} {...props} />`, be, U, Rr, U), Ye[U + be] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
return e === c ? br(R) : gr(R), R;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function mr(e, r, t) {
|
|
623
|
-
return
|
|
623
|
+
return Ve(e, r, t, !0);
|
|
624
624
|
}
|
|
625
625
|
function yr(e, r, t) {
|
|
626
|
-
return
|
|
626
|
+
return Ve(e, r, t, !1);
|
|
627
627
|
}
|
|
628
628
|
var hr = yr, Er = mr;
|
|
629
|
-
|
|
630
|
-
}()),
|
|
629
|
+
K.Fragment = c, K.jsx = hr, K.jsxs = Er;
|
|
630
|
+
}()), K;
|
|
631
631
|
}
|
|
632
|
-
process.env.NODE_ENV === "production" ?
|
|
633
|
-
var
|
|
632
|
+
process.env.NODE_ENV === "production" ? ye.exports = Sr() : ye.exports = Cr();
|
|
633
|
+
var ae = ye.exports;
|
|
634
634
|
const T = [];
|
|
635
635
|
for (let n = 0; n < 256; ++n)
|
|
636
636
|
T.push((n + 256).toString(16).slice(1));
|
|
637
637
|
function Or(n, o = 0) {
|
|
638
638
|
return (T[n[o + 0]] + T[n[o + 1]] + T[n[o + 2]] + T[n[o + 3]] + "-" + T[n[o + 4]] + T[n[o + 5]] + "-" + T[n[o + 6]] + T[n[o + 7]] + "-" + T[n[o + 8]] + T[n[o + 9]] + "-" + T[n[o + 10]] + T[n[o + 11]] + T[n[o + 12]] + T[n[o + 13]] + T[n[o + 14]] + T[n[o + 15]]).toLowerCase();
|
|
639
639
|
}
|
|
640
|
-
let
|
|
640
|
+
let me;
|
|
641
641
|
const Pr = new Uint8Array(16);
|
|
642
642
|
function xr() {
|
|
643
|
-
if (!
|
|
643
|
+
if (!me) {
|
|
644
644
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
645
645
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
646
|
-
|
|
646
|
+
me = crypto.getRandomValues.bind(crypto);
|
|
647
647
|
}
|
|
648
|
-
return
|
|
648
|
+
return me(Pr);
|
|
649
649
|
}
|
|
650
|
-
const jr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
650
|
+
const jr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ke = { randomUUID: jr };
|
|
651
651
|
function kr(n, o, S) {
|
|
652
652
|
var _;
|
|
653
|
-
if (
|
|
654
|
-
return
|
|
653
|
+
if (Ke.randomUUID && !o && !n)
|
|
654
|
+
return Ke.randomUUID();
|
|
655
655
|
n = n || {};
|
|
656
656
|
const c = n.random ?? ((_ = n.rng) == null ? void 0 : _.call(n)) ?? xr();
|
|
657
657
|
if (c.length < 16)
|
|
658
658
|
throw new Error("Random bytes length must be >= 16");
|
|
659
659
|
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, Or(c);
|
|
660
660
|
}
|
|
661
|
-
const
|
|
662
|
-
const [o, S] =
|
|
663
|
-
S((
|
|
661
|
+
const he = wr(null), Fr = ({ children: n }) => {
|
|
662
|
+
const [o, S] = Z({}), c = oe({}), _ = oe({}), w = Y((i, d, l) => {
|
|
663
|
+
S((y) => ({ ...y, [i]: { origin: d, frameRef: l } }));
|
|
664
664
|
}, []), k = Y((i) => {
|
|
665
665
|
S((d) => {
|
|
666
666
|
const l = { ...d };
|
|
667
667
|
return delete l[i], l;
|
|
668
668
|
});
|
|
669
669
|
}, []);
|
|
670
|
-
|
|
671
|
-
const i = (l = [],
|
|
672
|
-
l.forEach((
|
|
670
|
+
A(() => {
|
|
671
|
+
const i = (l = [], y) => {
|
|
672
|
+
l.forEach((O) => O(y));
|
|
673
673
|
}, d = (l) => {
|
|
674
|
-
var g, D,
|
|
674
|
+
var g, I, D, G, z;
|
|
675
675
|
if (!((g = l == null ? void 0 : l.data) != null && g.instanceId))
|
|
676
676
|
return;
|
|
677
|
-
const { instanceId:
|
|
678
|
-
if (
|
|
679
|
-
const { callbackId:
|
|
680
|
-
|
|
677
|
+
const { instanceId: y, type: O } = l.data, b = c.current;
|
|
678
|
+
if (O === "response") {
|
|
679
|
+
const { callbackId: ie, response: se, error: X } = l.data, H = _.current[ie];
|
|
680
|
+
H && H(se, X);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
|
-
i((
|
|
683
|
+
i((I = b[y]) == null ? void 0 : I[O], l.data), i((D = b["*"]) == null ? void 0 : D[O], l.data), i((G = b[y]) == null ? void 0 : G["*"], l.data), i((z = b["*"]) == null ? void 0 : z["*"], l.data);
|
|
684
684
|
};
|
|
685
685
|
return window.addEventListener("message", d), () => {
|
|
686
686
|
window.removeEventListener("message", d);
|
|
687
687
|
};
|
|
688
688
|
}, [o]);
|
|
689
|
-
const
|
|
689
|
+
const m = Y(
|
|
690
690
|
(i, d, l) => {
|
|
691
|
-
var
|
|
692
|
-
const
|
|
693
|
-
if (!
|
|
691
|
+
var O, b;
|
|
692
|
+
const y = o[i];
|
|
693
|
+
if (!y) {
|
|
694
694
|
console.warn(`Origin not set for id: ${i}. Unable to send message.`);
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
|
-
(
|
|
697
|
+
(b = (O = y == null ? void 0 : y.frameRef) == null ? void 0 : O.current) != null && b.contentWindow && y.frameRef.current.contentWindow.postMessage(
|
|
698
698
|
{ type: d, ...l, instanceId: i },
|
|
699
|
-
|
|
699
|
+
y.origin
|
|
700
700
|
);
|
|
701
701
|
},
|
|
702
702
|
[o]
|
|
703
|
-
),
|
|
704
|
-
async (i, d, l = {}) => new Promise((
|
|
705
|
-
const
|
|
706
|
-
delete _.current[
|
|
703
|
+
), E = Y(
|
|
704
|
+
async (i, d, l = {}) => new Promise((y, O) => {
|
|
705
|
+
const b = kr(), g = (I, D) => {
|
|
706
|
+
delete _.current[b], D ? O(D) : y(I);
|
|
707
707
|
};
|
|
708
|
-
_.current[
|
|
708
|
+
_.current[b] = g, m(i, "request", { callbackId: b, requestType: d, data: l });
|
|
709
709
|
}),
|
|
710
|
-
[
|
|
710
|
+
[m]
|
|
711
711
|
), F = Y(
|
|
712
712
|
(i, d) => {
|
|
713
|
-
|
|
713
|
+
m(i, "load-options", d);
|
|
714
714
|
},
|
|
715
|
-
[
|
|
715
|
+
[m]
|
|
716
716
|
), p = Y(
|
|
717
717
|
(i, d) => {
|
|
718
|
-
|
|
718
|
+
m(i, "validate", d);
|
|
719
719
|
},
|
|
720
|
-
[
|
|
720
|
+
[m]
|
|
721
721
|
), x = Tr(
|
|
722
722
|
() => ({
|
|
723
723
|
registerFrame: w,
|
|
724
724
|
unregisterFrame: k,
|
|
725
|
-
sendMessage:
|
|
726
|
-
sendRequest:
|
|
725
|
+
sendMessage: m,
|
|
726
|
+
sendRequest: E,
|
|
727
727
|
loadOptions: F,
|
|
728
728
|
validate: p,
|
|
729
729
|
addListener: (i, d, l) => (c.current[i] || (c.current[i] = {}), c.current[i][d] || (c.current[i][d] = []), c.current[i][d].push(l), () => {
|
|
730
|
-
c.current[i][d] = c.current[i][d].filter((
|
|
730
|
+
c.current[i][d] = c.current[i][d].filter((y) => y !== l);
|
|
731
731
|
})
|
|
732
732
|
}),
|
|
733
733
|
[
|
|
734
734
|
w,
|
|
735
735
|
k,
|
|
736
|
-
|
|
737
|
-
|
|
736
|
+
m,
|
|
737
|
+
E,
|
|
738
738
|
F,
|
|
739
739
|
p
|
|
740
740
|
]
|
|
741
741
|
);
|
|
742
|
-
return /* @__PURE__ */
|
|
743
|
-
},
|
|
742
|
+
return /* @__PURE__ */ ae.jsx(he.Provider, { value: x, children: n });
|
|
743
|
+
}, ne = {}, Ir = async (n) => {
|
|
744
744
|
try {
|
|
745
745
|
const o = new URL(n).origin;
|
|
746
|
-
if (
|
|
747
|
-
return
|
|
746
|
+
if (ne[o] !== void 0)
|
|
747
|
+
return ne[o];
|
|
748
748
|
const c = await (await fetch(`${o}/mm-app-manifest.json`)).json();
|
|
749
749
|
if (!c.version)
|
|
750
750
|
throw new Error("Invalid manifest");
|
|
751
|
-
return
|
|
751
|
+
return ne[o] = c, c;
|
|
752
752
|
} catch {
|
|
753
753
|
}
|
|
754
|
-
return
|
|
754
|
+
return ne[origin] = !1, !1;
|
|
755
755
|
}, Dr = async (n) => !!await Ir(n), Mr = (n, o, S) => {
|
|
756
|
-
const c =
|
|
756
|
+
const c = Ne(he);
|
|
757
757
|
if (c === null)
|
|
758
758
|
throw new Error(
|
|
759
759
|
"useEmbeddedEffect must be used within a MMEmbeddableZoneProvider"
|
|
760
760
|
);
|
|
761
|
-
const _ =
|
|
762
|
-
|
|
761
|
+
const _ = oe(S);
|
|
762
|
+
A(() => {
|
|
763
763
|
_.current = S;
|
|
764
|
-
}, [S]),
|
|
764
|
+
}, [S]), A(() => {
|
|
765
765
|
if (!(!n || !o))
|
|
766
766
|
return c.addListener(
|
|
767
767
|
n,
|
|
@@ -771,9 +771,9 @@ const ye = wr(null), Fr = ({ children: n }) => {
|
|
|
771
771
|
}, [c, n, o]);
|
|
772
772
|
};
|
|
773
773
|
Fr.propTypes = {
|
|
774
|
-
children:
|
|
774
|
+
children: N.node.isRequired
|
|
775
775
|
};
|
|
776
|
-
const Ar =
|
|
776
|
+
const Ar = qe.default || qe, $r = Ar.iframe`
|
|
777
777
|
width: 100%;
|
|
778
778
|
height: 100%;
|
|
779
779
|
border: none;
|
|
@@ -800,10 +800,10 @@ const Ar = Ve.default || Ve, $r = Ar.iframe`
|
|
|
800
800
|
return console.error(
|
|
801
801
|
"isFullScreen must be passed via the params prop to MMEmbeddableZone"
|
|
802
802
|
), null;
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
), [
|
|
806
|
-
return
|
|
803
|
+
const m = oe(), [E, F] = Z(), [p, x] = Z(0), { registerFrame: i, unregisterFrame: d, sendMessage: l } = Ne(
|
|
804
|
+
he
|
|
805
|
+
), [y, O] = Z(!0), [b, g] = Z();
|
|
806
|
+
return A(() => {
|
|
807
807
|
p && l(n, "set-context", {
|
|
808
808
|
context: {
|
|
809
809
|
..._,
|
|
@@ -812,27 +812,27 @@ const Ar = Ve.default || Ve, $r = Ar.iframe`
|
|
|
812
812
|
isFullScreen: w.isFullScreen
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
|
-
}, [_, w.colorMode, w.isFullScreen, n, p]),
|
|
815
|
+
}, [_, w.colorMode, w.isFullScreen, n, p]), A(() => {
|
|
816
816
|
p && (l(n, "set-params", { params: w }), l(n, "set-configuring", { isConfiguring: w.isConfiguring }));
|
|
817
|
-
}, [w, n, p]),
|
|
817
|
+
}, [w, n, p]), A(() => {
|
|
818
818
|
S !== void 0 && g(S);
|
|
819
|
-
}, [S]),
|
|
820
|
-
|
|
821
|
-
}, [
|
|
822
|
-
if (!(!o || !n || !
|
|
819
|
+
}, [S]), A(() => {
|
|
820
|
+
b === void 0 || !p || l(n, "navigate", { path: b });
|
|
821
|
+
}, [b, p, n, l]), A(() => {
|
|
822
|
+
if (!(!o || !n || !m))
|
|
823
823
|
return (async () => {
|
|
824
|
-
const
|
|
825
|
-
if (
|
|
826
|
-
const
|
|
827
|
-
i(n,
|
|
828
|
-
`${
|
|
824
|
+
const I = await Dr(o);
|
|
825
|
+
if (O(I), I) {
|
|
826
|
+
const D = new URL(o);
|
|
827
|
+
i(n, D.origin, m), c(), F(
|
|
828
|
+
`${D.origin}/mm-embedded-interop?id=${n}&origin=${window.location.origin}`
|
|
829
829
|
);
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
})(), () => {
|
|
833
833
|
d(n);
|
|
834
834
|
};
|
|
835
|
-
}, [o, n, i,
|
|
835
|
+
}, [o, n, i, m]), Mr(n, "ready", () => x((I) => I + 1)), y ? /* @__PURE__ */ ae.jsx($r, { $isReady: p, ref: m, src: E, ...k }) : /* @__PURE__ */ ae.jsx(
|
|
836
836
|
"div",
|
|
837
837
|
{
|
|
838
838
|
style: {
|
|
@@ -841,19 +841,19 @@ const Ar = Ve.default || Ve, $r = Ar.iframe`
|
|
|
841
841
|
alignItems: "center",
|
|
842
842
|
justifyContent: "center"
|
|
843
843
|
},
|
|
844
|
-
children: /* @__PURE__ */
|
|
844
|
+
children: /* @__PURE__ */ ae.jsx("div", { style: { textAlign: "center" }, children: "Application must adhere to the MM App Manifest specification to be embedded." })
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
848
|
Ur.propTypes = {
|
|
849
|
-
id:
|
|
850
|
-
src:
|
|
851
|
-
path:
|
|
852
|
-
onInit:
|
|
849
|
+
id: N.string,
|
|
850
|
+
src: N.string.isRequired,
|
|
851
|
+
path: N.string,
|
|
852
|
+
onInit: N.func
|
|
853
853
|
};
|
|
854
854
|
export {
|
|
855
855
|
Ur as MMEmbeddableZone,
|
|
856
|
-
|
|
856
|
+
he as MMEmbeddableZoneContext,
|
|
857
857
|
Fr as MMEmbeddableZoneProvider,
|
|
858
858
|
Ir as getAppInfo,
|
|
859
859
|
Dr as testIsEmbeddable,
|