@touchtech/web-navigation-menu 0.0.18-alpha.3 → 0.0.18-alpha.5
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/components/Navigation/Context.d.ts +2 -3
- package/dist/components/Navigation/Logo/Logo.d.ts +2 -2
- package/dist/components/Navigation/Logo/index.d.ts +1 -1
- package/dist/components/Navigation/NavigationButton.d.ts +4 -4
- package/dist/components/Navigation/Tiers/Applications/ApplicationLink/ApplicationLink.d.ts +1 -2
- package/dist/components/Navigation/Tiers/Applications/ApplicationLink/index.d.ts +1 -1
- package/dist/components/Navigation/Tiers/Applications/index.d.ts +1 -1
- package/dist/components/Navigation/Tiers/Tenants/TenantButton/TenantButton.d.ts +2 -2
- package/dist/components/Navigation/Tiers/Tenants/TenantButton/index.d.ts +1 -1
- package/dist/components/Navigation/Tiers/Tenants/index.d.ts +1 -1
- package/dist/components/Navigation/Tiers/Tier/Tier.d.ts +1 -2
- package/dist/components/Navigation/Tiers/Tier/index.d.ts +1 -1
- package/dist/components/Navigation/Tiers/index.d.ts +3 -3
- package/dist/components/Navigation/index.d.ts +2 -2
- package/dist/hooks/useSelectedTenant.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +225 -225
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +343 -0
- package/package.json +17 -21
package/dist/index.mjs
CHANGED
|
@@ -23,15 +23,15 @@ var Je;
|
|
|
23
23
|
function Ht() {
|
|
24
24
|
if (Je) return Q;
|
|
25
25
|
Je = 1;
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
var
|
|
26
|
+
var o = be, s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, f = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
|
+
function b(i, m, x) {
|
|
28
|
+
var h, S = {}, R = null, j = null;
|
|
29
29
|
x !== void 0 && (R = "" + x), m.key !== void 0 && (R = "" + m.key), m.ref !== void 0 && (j = m.ref);
|
|
30
|
-
for (
|
|
31
|
-
if (
|
|
32
|
-
return { $$typeof: s, type:
|
|
30
|
+
for (h in m) u.call(m, h) && !c.hasOwnProperty(h) && (S[h] = m[h]);
|
|
31
|
+
if (i && i.defaultProps) for (h in m = i.defaultProps, m) S[h] === void 0 && (S[h] = m[h]);
|
|
32
|
+
return { $$typeof: s, type: i, key: R, ref: j, props: S, _owner: f.current };
|
|
33
33
|
}
|
|
34
|
-
return Q.Fragment = p, Q.jsx =
|
|
34
|
+
return Q.Fragment = p, Q.jsx = b, Q.jsxs = b, Q;
|
|
35
35
|
}
|
|
36
36
|
var ee = {};
|
|
37
37
|
/**
|
|
@@ -46,15 +46,15 @@ var ee = {};
|
|
|
46
46
|
var Ze;
|
|
47
47
|
function $t() {
|
|
48
48
|
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var
|
|
49
|
+
var o = be, s = Symbol.for("react.element"), p = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), i = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), D = Symbol.iterator, L = "@@iterator";
|
|
50
50
|
function U(e) {
|
|
51
51
|
if (e === null || typeof e != "object")
|
|
52
52
|
return null;
|
|
53
53
|
var t = D && e[D] || e[L];
|
|
54
54
|
return typeof t == "function" ? t : null;
|
|
55
55
|
}
|
|
56
|
-
var C =
|
|
57
|
-
function
|
|
56
|
+
var C = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
+
function g(e) {
|
|
58
58
|
{
|
|
59
59
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
60
60
|
n[a - 1] = arguments[a];
|
|
@@ -65,8 +65,8 @@ function $t() {
|
|
|
65
65
|
{
|
|
66
66
|
var a = C.ReactDebugCurrentFrame, v = a.getStackAddendum();
|
|
67
67
|
v !== "" && (t += "%s", n = n.concat([v]));
|
|
68
|
-
var _ = n.map(function(
|
|
69
|
-
return String(
|
|
68
|
+
var _ = n.map(function(d) {
|
|
69
|
+
return String(d);
|
|
70
70
|
});
|
|
71
71
|
_.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
|
|
72
72
|
}
|
|
@@ -74,7 +74,7 @@ function $t() {
|
|
|
74
74
|
var Y = !1, J = !1, B = !1, ue = !1, at = !1, Ne;
|
|
75
75
|
Ne = Symbol.for("react.module.reference");
|
|
76
76
|
function st(e) {
|
|
77
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
77
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === c || at || e === f || e === x || e === h || ue || e === j || Y || J || B || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === S || e.$$typeof === b || e.$$typeof === i || e.$$typeof === m || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
@@ -93,12 +93,12 @@ function $t() {
|
|
|
93
93
|
function H(e) {
|
|
94
94
|
if (e == null)
|
|
95
95
|
return null;
|
|
96
|
-
if (typeof e.tag == "number" &&
|
|
96
|
+
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")
|
|
97
97
|
return e.displayName || e.name || null;
|
|
98
98
|
if (typeof e == "string")
|
|
99
99
|
return e;
|
|
100
100
|
switch (e) {
|
|
101
|
-
case
|
|
101
|
+
case u:
|
|
102
102
|
return "Fragment";
|
|
103
103
|
case p:
|
|
104
104
|
return "Portal";
|
|
@@ -108,15 +108,15 @@ function $t() {
|
|
|
108
108
|
return "StrictMode";
|
|
109
109
|
case x:
|
|
110
110
|
return "Suspense";
|
|
111
|
-
case
|
|
111
|
+
case h:
|
|
112
112
|
return "SuspenseList";
|
|
113
113
|
}
|
|
114
114
|
if (typeof e == "object")
|
|
115
115
|
switch (e.$$typeof) {
|
|
116
|
-
case
|
|
116
|
+
case i:
|
|
117
117
|
var t = e;
|
|
118
118
|
return Ce(t) + ".Consumer";
|
|
119
|
-
case
|
|
119
|
+
case b:
|
|
120
120
|
var n = e;
|
|
121
121
|
return Ce(n._context) + ".Provider";
|
|
122
122
|
case m:
|
|
@@ -125,9 +125,9 @@ function $t() {
|
|
|
125
125
|
var a = e.displayName || null;
|
|
126
126
|
return a !== null ? a : H(e.type) || "Memo";
|
|
127
127
|
case R: {
|
|
128
|
-
var v = e, _ = v._payload,
|
|
128
|
+
var v = e, _ = v._payload, d = v._init;
|
|
129
129
|
try {
|
|
130
|
-
return H(
|
|
130
|
+
return H(d(_));
|
|
131
131
|
} catch {
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
@@ -194,7 +194,7 @@ function $t() {
|
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
Z < 0 &&
|
|
197
|
+
Z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
var de = C.ReactCurrentDispatcher, fe;
|
|
@@ -232,27 +232,27 @@ function $t() {
|
|
|
232
232
|
_ = de.current, de.current = null, ot();
|
|
233
233
|
try {
|
|
234
234
|
if (t) {
|
|
235
|
-
var
|
|
235
|
+
var d = function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
};
|
|
238
|
-
if (Object.defineProperty(
|
|
238
|
+
if (Object.defineProperty(d.prototype, "props", {
|
|
239
239
|
set: function() {
|
|
240
240
|
throw Error();
|
|
241
241
|
}
|
|
242
242
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
243
243
|
try {
|
|
244
|
-
Reflect.construct(
|
|
244
|
+
Reflect.construct(d, []);
|
|
245
245
|
} catch (A) {
|
|
246
246
|
a = A;
|
|
247
247
|
}
|
|
248
|
-
Reflect.construct(e, [],
|
|
248
|
+
Reflect.construct(e, [], d);
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
|
-
|
|
251
|
+
d.call();
|
|
252
252
|
} catch (A) {
|
|
253
253
|
a = A;
|
|
254
254
|
}
|
|
255
|
-
e.call(
|
|
255
|
+
e.call(d.prototype);
|
|
256
256
|
}
|
|
257
257
|
} else {
|
|
258
258
|
try {
|
|
@@ -266,18 +266,18 @@ function $t() {
|
|
|
266
266
|
if (A && a && typeof A.stack == "string") {
|
|
267
267
|
for (var l = A.stack.split(`
|
|
268
268
|
`), N = a.stack.split(`
|
|
269
|
-
`), E = l.length - 1,
|
|
270
|
-
|
|
271
|
-
for (; E >= 1 &&
|
|
272
|
-
if (l[E] !== N[
|
|
273
|
-
if (E !== 1 ||
|
|
269
|
+
`), E = l.length - 1, w = N.length - 1; E >= 1 && w >= 0 && l[E] !== N[w]; )
|
|
270
|
+
w--;
|
|
271
|
+
for (; E >= 1 && w >= 0; E--, w--)
|
|
272
|
+
if (l[E] !== N[w]) {
|
|
273
|
+
if (E !== 1 || w !== 1)
|
|
274
274
|
do
|
|
275
|
-
if (E--,
|
|
275
|
+
if (E--, w--, w < 0 || l[E] !== N[w]) {
|
|
276
276
|
var I = `
|
|
277
277
|
` + l[E].replace(" at new ", " at ");
|
|
278
278
|
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, I), I;
|
|
279
279
|
}
|
|
280
|
-
while (E >= 1 &&
|
|
280
|
+
while (E >= 1 && w >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -304,7 +304,7 @@ function $t() {
|
|
|
304
304
|
switch (e) {
|
|
305
305
|
case x:
|
|
306
306
|
return ae("Suspense");
|
|
307
|
-
case
|
|
307
|
+
case h:
|
|
308
308
|
return ae("SuspenseList");
|
|
309
309
|
}
|
|
310
310
|
if (typeof e == "object")
|
|
@@ -334,19 +334,19 @@ function $t() {
|
|
|
334
334
|
function ft(e, t, n, a, v) {
|
|
335
335
|
{
|
|
336
336
|
var _ = Function.call.bind(oe);
|
|
337
|
-
for (var
|
|
338
|
-
if (_(e,
|
|
337
|
+
for (var d in e)
|
|
338
|
+
if (_(e, d)) {
|
|
339
339
|
var l = void 0;
|
|
340
340
|
try {
|
|
341
|
-
if (typeof e[
|
|
342
|
-
var N = Error((a || "React class") + ": " + n + " type `" +
|
|
341
|
+
if (typeof e[d] != "function") {
|
|
342
|
+
var N = Error((a || "React class") + ": " + n + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
343
343
|
throw N.name = "Invariant Violation", N;
|
|
344
344
|
}
|
|
345
|
-
l = e[
|
|
345
|
+
l = e[d](t, d, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
346
|
} catch (E) {
|
|
347
347
|
l = E;
|
|
348
348
|
}
|
|
349
|
-
l && !(l instanceof Error) && (ce(v),
|
|
349
|
+
l && !(l instanceof Error) && (ce(v), 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", n, d, typeof l), ce(null)), l instanceof Error && !(l.message in Fe) && (Fe[l.message] = !0, ce(v), g("Failed %s type: %s", n, l.message), ce(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -372,7 +372,7 @@ function $t() {
|
|
|
372
372
|
}
|
|
373
373
|
function Be(e) {
|
|
374
374
|
if (_t(e))
|
|
375
|
-
return
|
|
375
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vt(e)), Ue(e);
|
|
376
376
|
}
|
|
377
377
|
var He = C.ReactCurrentOwner, mt = {
|
|
378
378
|
key: !0,
|
|
@@ -380,7 +380,7 @@ function $t() {
|
|
|
380
380
|
__self: !0,
|
|
381
381
|
__source: !0
|
|
382
382
|
}, $e, We;
|
|
383
|
-
function
|
|
383
|
+
function gt(e) {
|
|
384
384
|
if (oe.call(e, "ref")) {
|
|
385
385
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
386
386
|
if (t && t.isReactWarning)
|
|
@@ -388,7 +388,7 @@ function $t() {
|
|
|
388
388
|
}
|
|
389
389
|
return e.ref !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function ht(e) {
|
|
392
392
|
if (oe.call(e, "key")) {
|
|
393
393
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
394
394
|
if (t && t.isReactWarning)
|
|
@@ -402,7 +402,7 @@ function $t() {
|
|
|
402
402
|
function wt(e, t) {
|
|
403
403
|
{
|
|
404
404
|
var n = function() {
|
|
405
|
-
$e || ($e = !0,
|
|
405
|
+
$e || ($e = !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)", t));
|
|
406
406
|
};
|
|
407
407
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
408
408
|
get: n,
|
|
@@ -413,7 +413,7 @@ function $t() {
|
|
|
413
413
|
function bt(e, t) {
|
|
414
414
|
{
|
|
415
415
|
var n = function() {
|
|
416
|
-
We || (We = !0,
|
|
416
|
+
We || (We = !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)", t));
|
|
417
417
|
};
|
|
418
418
|
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
419
419
|
get: n,
|
|
@@ -421,7 +421,7 @@ function $t() {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var Tt = function(e, t, n, a, v, _,
|
|
424
|
+
var Tt = function(e, t, n, a, v, _, d) {
|
|
425
425
|
var l = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: s,
|
|
@@ -429,7 +429,7 @@ function $t() {
|
|
|
429
429
|
type: e,
|
|
430
430
|
key: t,
|
|
431
431
|
ref: n,
|
|
432
|
-
props:
|
|
432
|
+
props: d,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
434
|
_owner: _
|
|
435
435
|
};
|
|
@@ -452,20 +452,20 @@ function $t() {
|
|
|
452
452
|
};
|
|
453
453
|
function St(e, t, n, a, v) {
|
|
454
454
|
{
|
|
455
|
-
var _,
|
|
456
|
-
n !== void 0 && (Be(n), l = "" + n),
|
|
455
|
+
var _, d = {}, l = null, N = null;
|
|
456
|
+
n !== void 0 && (Be(n), l = "" + n), ht(t) && (Be(t.key), l = "" + t.key), gt(t) && (N = t.ref, Et(t, v));
|
|
457
457
|
for (_ in t)
|
|
458
|
-
oe.call(t, _) && !mt.hasOwnProperty(_) && (
|
|
458
|
+
oe.call(t, _) && !mt.hasOwnProperty(_) && (d[_] = t[_]);
|
|
459
459
|
if (e && e.defaultProps) {
|
|
460
460
|
var E = e.defaultProps;
|
|
461
461
|
for (_ in E)
|
|
462
|
-
|
|
462
|
+
d[_] === void 0 && (d[_] = E[_]);
|
|
463
463
|
}
|
|
464
464
|
if (l || N) {
|
|
465
|
-
var
|
|
466
|
-
l && wt(
|
|
465
|
+
var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
466
|
+
l && wt(d, w), N && bt(d, w);
|
|
467
467
|
}
|
|
468
|
-
return Tt(e, l, N, v, a, He.current,
|
|
468
|
+
return Tt(e, l, N, v, a, He.current, d);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
var _e = C.ReactCurrentOwner, qe = C.ReactDebugCurrentFrame;
|
|
@@ -478,7 +478,7 @@ function $t() {
|
|
|
478
478
|
}
|
|
479
479
|
var me;
|
|
480
480
|
me = !1;
|
|
481
|
-
function
|
|
481
|
+
function ge(e) {
|
|
482
482
|
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
483
483
|
}
|
|
484
484
|
function Ve() {
|
|
@@ -519,7 +519,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
519
519
|
return;
|
|
520
520
|
Ye[n] = !0;
|
|
521
521
|
var a = "";
|
|
522
|
-
e && e._owner && e._owner !== _e.current && (a = " It was passed a child from " + H(e._owner.type) + "."), G(e),
|
|
522
|
+
e && e._owner && e._owner !== _e.current && (a = " It was passed a child from " + H(e._owner.type) + "."), G(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.', n, a), G(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function ze(e, t) {
|
|
@@ -529,15 +529,15 @@ Check the top-level render call using <` + n + ">.");
|
|
|
529
529
|
if (ve(e))
|
|
530
530
|
for (var n = 0; n < e.length; n++) {
|
|
531
531
|
var a = e[n];
|
|
532
|
-
|
|
532
|
+
ge(a) && Ge(a, t);
|
|
533
533
|
}
|
|
534
|
-
else if (
|
|
534
|
+
else if (ge(e))
|
|
535
535
|
e._store && (e._store.validated = !0);
|
|
536
536
|
else if (e) {
|
|
537
537
|
var v = U(e);
|
|
538
538
|
if (typeof v == "function" && v !== e.entries)
|
|
539
|
-
for (var _ = v.call(e),
|
|
540
|
-
|
|
539
|
+
for (var _ = v.call(e), d; !(d = _.next()).done; )
|
|
540
|
+
ge(d.value) && Ge(d.value, t);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -561,9 +561,9 @@ Check the top-level render call using <` + n + ">.");
|
|
|
561
561
|
} else if (t.PropTypes !== void 0 && !me) {
|
|
562
562
|
me = !0;
|
|
563
563
|
var v = H(t);
|
|
564
|
-
|
|
564
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved &&
|
|
566
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function Ct(e) {
|
|
@@ -571,28 +571,28 @@ Check the top-level render call using <` + n + ">.");
|
|
|
571
571
|
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
572
572
|
var a = t[n];
|
|
573
573
|
if (a !== "children" && a !== "key") {
|
|
574
|
-
G(e),
|
|
574
|
+
G(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), G(null);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
e.ref !== null && (G(e),
|
|
578
|
+
e.ref !== null && (G(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), G(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
function Ke(e, t, n, a, v, _) {
|
|
582
582
|
{
|
|
583
|
-
var
|
|
584
|
-
if (!
|
|
583
|
+
var d = st(e);
|
|
584
|
+
if (!d) {
|
|
585
585
|
var l = "";
|
|
586
586
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
587
|
var N = xt();
|
|
588
588
|
N ? l += N : l += Ve();
|
|
589
589
|
var E;
|
|
590
|
-
e === null ? E = "null" : ve(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (H(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e,
|
|
590
|
+
e === null ? E = "null" : ve(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (H(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = 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", E, l);
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
return
|
|
595
|
-
if (
|
|
592
|
+
var w = St(e, t, n, v, _);
|
|
593
|
+
if (w == null)
|
|
594
|
+
return w;
|
|
595
|
+
if (d) {
|
|
596
596
|
var I = t.children;
|
|
597
597
|
if (I !== void 0)
|
|
598
598
|
if (a)
|
|
@@ -601,11 +601,11 @@ Check the top-level render call using <` + n + ">.");
|
|
|
601
601
|
ze(I[z], e);
|
|
602
602
|
Object.freeze && Object.freeze(I);
|
|
603
603
|
} else
|
|
604
|
-
|
|
604
|
+
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.");
|
|
605
605
|
else
|
|
606
606
|
ze(I, e);
|
|
607
607
|
}
|
|
608
|
-
return e ===
|
|
608
|
+
return e === u ? Ct(w) : Nt(w), w;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
function It(e, t, n) {
|
|
@@ -615,7 +615,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
615
615
|
return Ke(e, t, n, !1);
|
|
616
616
|
}
|
|
617
617
|
var jt = yt, At = It;
|
|
618
|
-
ee.Fragment =
|
|
618
|
+
ee.Fragment = u, ee.jsx = jt, ee.jsxs = At;
|
|
619
619
|
}()), ee;
|
|
620
620
|
}
|
|
621
621
|
process.env.NODE_ENV === "production" ? we.exports = Ht() : we.exports = $t();
|
|
@@ -635,7 +635,7 @@ const O = {
|
|
|
635
635
|
SUPERADMIN: "/superadmin",
|
|
636
636
|
CMS: "/cms"
|
|
637
637
|
}, Wt = 300, qt = 300;
|
|
638
|
-
var F = /* @__PURE__ */ ((
|
|
638
|
+
var F = /* @__PURE__ */ ((o) => (o.OPEN = "OPEN", o.HIDDEN = "HIDDEN", o.EXPANDED = "EXPANDED", o))(F || {});
|
|
639
639
|
const xe = be.createContext(
|
|
640
640
|
{}
|
|
641
641
|
);
|
|
@@ -643,20 +643,20 @@ function q() {
|
|
|
643
643
|
return X(xe);
|
|
644
644
|
}
|
|
645
645
|
function Vt({
|
|
646
|
-
children:
|
|
646
|
+
children: o,
|
|
647
647
|
isOpen: s,
|
|
648
648
|
tenantServiceUrl: p,
|
|
649
|
-
onNavigationClose:
|
|
649
|
+
onNavigationClose: u = () => {
|
|
650
650
|
}
|
|
651
651
|
}) {
|
|
652
|
-
const [f] = X(Te), [c,
|
|
652
|
+
const [f] = X(Te), [c, b] = le({
|
|
653
653
|
selectedTenantId: f,
|
|
654
654
|
currentPosition: "HIDDEN"
|
|
655
655
|
/* HIDDEN */
|
|
656
|
-
}), { user:
|
|
656
|
+
}), { user: i, authService: m, canSignOut: x } = X(tt);
|
|
657
657
|
Ee(() => {
|
|
658
658
|
if (s) {
|
|
659
|
-
|
|
659
|
+
b((B) => ({
|
|
660
660
|
...B,
|
|
661
661
|
selectedTenantId: f,
|
|
662
662
|
currentPosition: "OPEN"
|
|
@@ -664,68 +664,68 @@ function Vt({
|
|
|
664
664
|
}));
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
667
|
-
|
|
667
|
+
b((B) => ({
|
|
668
668
|
...B,
|
|
669
669
|
currentPosition: "HIDDEN"
|
|
670
670
|
/* HIDDEN */
|
|
671
671
|
}));
|
|
672
|
-
}, [f, s,
|
|
672
|
+
}, [f, s, b]), Ee(() => {
|
|
673
673
|
s && m.refreshUser(300);
|
|
674
674
|
}, [m, s]);
|
|
675
|
-
const
|
|
676
|
-
() =>
|
|
677
|
-
|
|
675
|
+
const h = y(
|
|
676
|
+
() => i ? M(
|
|
677
|
+
i,
|
|
678
678
|
c.selectedTenantId,
|
|
679
679
|
W.MARKETING_ENGINE_APP
|
|
680
680
|
) : !1,
|
|
681
|
-
[c.selectedTenantId,
|
|
681
|
+
[c.selectedTenantId, i]
|
|
682
682
|
), S = y(
|
|
683
|
-
() =>
|
|
684
|
-
|
|
683
|
+
() => i ? M(
|
|
684
|
+
i,
|
|
685
685
|
c.selectedTenantId,
|
|
686
686
|
W.SHOWROOM_APP
|
|
687
687
|
) : !1,
|
|
688
|
-
[c.selectedTenantId,
|
|
688
|
+
[c.selectedTenantId, i]
|
|
689
689
|
), R = y(
|
|
690
|
-
() =>
|
|
691
|
-
|
|
690
|
+
() => i ? M(
|
|
691
|
+
i,
|
|
692
692
|
c.selectedTenantId,
|
|
693
693
|
W.SENDOUTS_APP
|
|
694
694
|
) : !1,
|
|
695
|
-
[c.selectedTenantId,
|
|
695
|
+
[c.selectedTenantId, i]
|
|
696
696
|
), j = y(
|
|
697
|
-
() =>
|
|
698
|
-
|
|
697
|
+
() => i ? M(
|
|
698
|
+
i,
|
|
699
699
|
c.selectedTenantId,
|
|
700
700
|
W.SENDOUTS_CMS_APP
|
|
701
701
|
) : !1,
|
|
702
|
-
[c.selectedTenantId,
|
|
702
|
+
[c.selectedTenantId, i]
|
|
703
703
|
), D = y(
|
|
704
|
-
() =>
|
|
705
|
-
|
|
704
|
+
() => i ? M(
|
|
705
|
+
i,
|
|
706
706
|
c.selectedTenantId,
|
|
707
707
|
W.USER_MANAGEMENT_APP
|
|
708
708
|
) : !1,
|
|
709
|
-
[c.selectedTenantId,
|
|
709
|
+
[c.selectedTenantId, i]
|
|
710
710
|
), L = y(
|
|
711
|
-
() =>
|
|
712
|
-
|
|
711
|
+
() => i ? M(
|
|
712
|
+
i,
|
|
713
713
|
c.selectedTenantId,
|
|
714
714
|
W.UNIVERSAL
|
|
715
715
|
) : !1,
|
|
716
|
-
[c.selectedTenantId,
|
|
716
|
+
[c.selectedTenantId, i]
|
|
717
717
|
), U = y(
|
|
718
|
-
() =>
|
|
719
|
-
[c.selectedTenantId,
|
|
718
|
+
() => i ? M(i, c.selectedTenantId, "settings-app") : !1,
|
|
719
|
+
[c.selectedTenantId, i]
|
|
720
720
|
), C = y(
|
|
721
|
-
() =>
|
|
722
|
-
|
|
721
|
+
() => i ? M(
|
|
722
|
+
i,
|
|
723
723
|
c.selectedTenantId,
|
|
724
724
|
W.INSTORE_ADMIN_APP
|
|
725
725
|
) : !1,
|
|
726
|
-
[c.selectedTenantId,
|
|
727
|
-
),
|
|
728
|
-
(B) =>
|
|
726
|
+
[c.selectedTenantId, i]
|
|
727
|
+
), g = K(
|
|
728
|
+
(B) => b((ue) => ({
|
|
729
729
|
...ue,
|
|
730
730
|
...B
|
|
731
731
|
})),
|
|
@@ -734,22 +734,22 @@ function Vt({
|
|
|
734
734
|
x && await m.signOut();
|
|
735
735
|
}, [m, x]), Y = K(() => {
|
|
736
736
|
if (c.currentPosition === "OPEN") {
|
|
737
|
-
|
|
737
|
+
g({
|
|
738
738
|
currentPosition: "EXPANDED",
|
|
739
739
|
selectedTenantId: f
|
|
740
740
|
});
|
|
741
741
|
return;
|
|
742
742
|
}
|
|
743
743
|
if (c.currentPosition === "EXPANDED") {
|
|
744
|
-
|
|
744
|
+
g({
|
|
745
745
|
currentPosition: "OPEN"
|
|
746
746
|
/* OPEN */
|
|
747
747
|
});
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
|
-
}, [f,
|
|
750
|
+
}, [f, g, c.currentPosition]), J = y(
|
|
751
751
|
() => ({
|
|
752
|
-
hasMarketingEngineAccess:
|
|
752
|
+
hasMarketingEngineAccess: h,
|
|
753
753
|
hasShowroomAccess: S,
|
|
754
754
|
hasSendoutsAccess: R,
|
|
755
755
|
hasCmsAccess: j,
|
|
@@ -758,14 +758,14 @@ function Vt({
|
|
|
758
758
|
hasSettingsAccess: U,
|
|
759
759
|
hasInstoreAccess: C,
|
|
760
760
|
viewState: c,
|
|
761
|
-
updateViewState:
|
|
761
|
+
updateViewState: g,
|
|
762
762
|
signOut: V,
|
|
763
763
|
toggleTenants: Y,
|
|
764
|
-
onNavigationClose:
|
|
764
|
+
onNavigationClose: u,
|
|
765
765
|
tenantServiceUrl: p
|
|
766
766
|
}),
|
|
767
767
|
[
|
|
768
|
-
|
|
768
|
+
h,
|
|
769
769
|
R,
|
|
770
770
|
j,
|
|
771
771
|
S,
|
|
@@ -774,67 +774,67 @@ function Vt({
|
|
|
774
774
|
U,
|
|
775
775
|
C,
|
|
776
776
|
c,
|
|
777
|
-
|
|
777
|
+
g,
|
|
778
778
|
V,
|
|
779
779
|
Y,
|
|
780
|
-
|
|
780
|
+
u,
|
|
781
781
|
p
|
|
782
782
|
]
|
|
783
783
|
);
|
|
784
|
-
return /* @__PURE__ */ r.jsx(xe.Provider, { value: J, children:
|
|
784
|
+
return /* @__PURE__ */ r.jsx(xe.Provider, { value: J, children: o });
|
|
785
785
|
}
|
|
786
786
|
const Yt = "_navigation_1esaw_1", Gt = {
|
|
787
787
|
navigation: Yt
|
|
788
|
-
}, zt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.398438%200.399902L19.5984%2019.5999M0.398438%2019.5999L19.5984%200.399902'%20stroke='black'/%3e%3c/svg%3e", Kt = "data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%201.5999L10.4667%204.7999M7%201.5999L3.8%204.7999M7%201.5999L7%2011.7332M13.4%207.46657L13.4%2014.3999L0.600002%2014.3999L0.600002%207.46657'%20stroke='%232D2D33'/%3e%3c/svg%3e", Xt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2046%2046'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%20transform='matrix(1,0,0,1,-27,-27)'%3e%3cpath%20d='M73,50C73,37.3%2062.7,27%2050,27C37.3,27%2027,37.3%2027,50M30.9,50C30.9,39.5%2039.4,30.9%2050,30.9C60.6,30.9%2069.1,39.5%2069.1,50'%20style='fill-rule:nonzero;'%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20dur='1s'%20from='0%2050%2050'%20to='360%2050%2050'%20repeatCount='indefinite'%20/%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Jt = (
|
|
788
|
+
}, zt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.398438%200.399902L19.5984%2019.5999M0.398438%2019.5999L19.5984%200.399902'%20stroke='black'/%3e%3c/svg%3e", Kt = "data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%201.5999L10.4667%204.7999M7%201.5999L3.8%204.7999M7%201.5999L7%2011.7332M13.4%207.46657L13.4%2014.3999L0.600002%2014.3999L0.600002%207.46657'%20stroke='%232D2D33'/%3e%3c/svg%3e", Xt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2046%2046'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%20transform='matrix(1,0,0,1,-27,-27)'%3e%3cpath%20d='M73,50C73,37.3%2062.7,27%2050,27C37.3,27%2027,37.3%2027,50M30.9,50C30.9,39.5%2039.4,30.9%2050,30.9C60.6,30.9%2069.1,39.5%2069.1,50'%20style='fill-rule:nonzero;'%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20dur='1s'%20from='0%2050%2050'%20to='360%2050%2050'%20repeatCount='indefinite'%20/%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Jt = (o) => {
|
|
789
789
|
throw new Error(
|
|
790
|
-
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
790
|
+
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set ---------"
|
|
791
791
|
);
|
|
792
792
|
};
|
|
793
|
-
function Zt(
|
|
794
|
-
const s = nt(), p = Jt(), { viewState:
|
|
793
|
+
function Zt(o) {
|
|
794
|
+
const s = nt(), p = Jt(), { viewState: u } = q(), [f] = X(Te);
|
|
795
795
|
return K(
|
|
796
|
-
async (
|
|
797
|
-
const
|
|
798
|
-
s.setHeader("tenant-id",
|
|
796
|
+
async (b) => {
|
|
797
|
+
const i = b.replace(/^\//, "");
|
|
798
|
+
s.setHeader("tenant-id", u.selectedTenantId);
|
|
799
799
|
try {
|
|
800
800
|
return await s.post(
|
|
801
801
|
p,
|
|
802
|
-
|
|
802
|
+
i
|
|
803
803
|
);
|
|
804
804
|
} finally {
|
|
805
805
|
f && s.setHeader("tenant-id", f);
|
|
806
806
|
}
|
|
807
807
|
},
|
|
808
|
-
[s, p,
|
|
808
|
+
[s, p, u, f]
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
|
-
function Qt(
|
|
811
|
+
function Qt(o) {
|
|
812
812
|
throw new Error(
|
|
813
|
-
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
813
|
+
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set ++++++ "
|
|
814
814
|
);
|
|
815
815
|
}
|
|
816
|
-
function Re(
|
|
817
|
-
const s = nt(), p = Qt(), { data:
|
|
816
|
+
function Re(o) {
|
|
817
|
+
const s = nt(), p = Qt(), { data: u, error: f } = Lt(p, s.get);
|
|
818
818
|
return {
|
|
819
|
-
tenants:
|
|
820
|
-
isLoading: !
|
|
819
|
+
tenants: u ?? [],
|
|
820
|
+
isLoading: !u && !f,
|
|
821
821
|
error: f
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
824
|
function en() {
|
|
825
825
|
const {
|
|
826
|
-
viewState: { selectedTenantId:
|
|
826
|
+
viewState: { selectedTenantId: o }
|
|
827
827
|
} = q(), { tenants: s } = Re();
|
|
828
|
-
return y(() => s.find((
|
|
828
|
+
return y(() => s.find((u) => u.id === o), [s, o]);
|
|
829
829
|
}
|
|
830
|
-
function tn({ layout:
|
|
830
|
+
function tn({ layout: o }) {
|
|
831
831
|
const {
|
|
832
832
|
viewState: { selectedTenantId: s }
|
|
833
|
-
} = q(), { tenants: p } = Re(),
|
|
833
|
+
} = q(), { tenants: p } = Re(), u = y(
|
|
834
834
|
() => p.find((f) => f.id === s),
|
|
835
835
|
[s, p]
|
|
836
836
|
);
|
|
837
|
-
return
|
|
837
|
+
return u ? /* @__PURE__ */ r.jsx(kt, { src: u.logoUrl, layout: o }) : null;
|
|
838
838
|
}
|
|
839
839
|
const nn = "_tier_1cqnw_1", rn = "_tier-header_1cqnw_12", an = "_border_1cqnw_17", sn = "_tier-main_1cqnw_21", on = "_tier-footer_1cqnw_26", te = {
|
|
840
840
|
tier: nn,
|
|
@@ -844,14 +844,14 @@ const nn = "_tier_1cqnw_1", rn = "_tier-header_1cqnw_12", an = "_border_1cqnw_17
|
|
|
844
844
|
tierFooter: on
|
|
845
845
|
};
|
|
846
846
|
function rt({
|
|
847
|
-
children:
|
|
847
|
+
children: o,
|
|
848
848
|
header: s,
|
|
849
849
|
footer: p,
|
|
850
|
-
className:
|
|
850
|
+
className: u,
|
|
851
851
|
width: f,
|
|
852
852
|
showHeaderBorder: c
|
|
853
853
|
}) {
|
|
854
|
-
return /* @__PURE__ */ r.jsxs("div", { className: re([te.tier,
|
|
854
|
+
return /* @__PURE__ */ r.jsxs("div", { className: re([te.tier, u]), style: { width: f }, children: [
|
|
855
855
|
!!s && /* @__PURE__ */ r.jsx(
|
|
856
856
|
"div",
|
|
857
857
|
{
|
|
@@ -862,7 +862,7 @@ function rt({
|
|
|
862
862
|
children: s
|
|
863
863
|
}
|
|
864
864
|
),
|
|
865
|
-
/* @__PURE__ */ r.jsx("div", { className: te.tierMain, children:
|
|
865
|
+
/* @__PURE__ */ r.jsx("div", { className: te.tierMain, children: o }),
|
|
866
866
|
!!p && /* @__PURE__ */ r.jsx("div", { className: te.tierFooter, children: p })
|
|
867
867
|
] });
|
|
868
868
|
}
|
|
@@ -871,24 +871,24 @@ const cn = "_navigation-button_1ckcy_1", ln = "_active_1ckcy_15", Qe = {
|
|
|
871
871
|
active: ln
|
|
872
872
|
};
|
|
873
873
|
function P({
|
|
874
|
-
children:
|
|
874
|
+
children: o,
|
|
875
875
|
to: s,
|
|
876
876
|
hidden: p,
|
|
877
|
-
disabled:
|
|
877
|
+
disabled: u,
|
|
878
878
|
onClick: f
|
|
879
879
|
}) {
|
|
880
|
-
const [c,
|
|
880
|
+
const [c, b] = X(Te), [i, m] = le(!1), {
|
|
881
881
|
viewState: { selectedTenantId: x }
|
|
882
882
|
} = q();
|
|
883
883
|
Ee(() => {
|
|
884
884
|
const R = () => {
|
|
885
|
-
c !== x &&
|
|
885
|
+
c !== x && i && b(x);
|
|
886
886
|
};
|
|
887
887
|
return window.addEventListener("unload", R), () => {
|
|
888
888
|
window.removeEventListener("unload", R);
|
|
889
889
|
};
|
|
890
|
-
}, [
|
|
891
|
-
const
|
|
890
|
+
}, [b, c, x, i]);
|
|
891
|
+
const h = K(() => {
|
|
892
892
|
if (f) {
|
|
893
893
|
f(m);
|
|
894
894
|
return;
|
|
@@ -902,13 +902,13 @@ function P({
|
|
|
902
902
|
noBorder: !0,
|
|
903
903
|
className: re([Qe.navigationButton, { [Qe.active]: S }]),
|
|
904
904
|
noShadow: !0,
|
|
905
|
-
disabled: S ||
|
|
906
|
-
onClick:
|
|
907
|
-
children:
|
|
905
|
+
disabled: S || u,
|
|
906
|
+
onClick: h,
|
|
907
|
+
children: o
|
|
908
908
|
}
|
|
909
909
|
);
|
|
910
910
|
}
|
|
911
|
-
const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_applications-header-brand_1pwbq_13", pn = "_applications-header-logo_1pwbq_21", vn = "_applications-header-close-icon_1pwbq_26", _n = "_applications-header-change-brand-button_1pwbq_32", mn = "_applications-main_1pwbq_47",
|
|
911
|
+
const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_applications-header-brand_1pwbq_13", pn = "_applications-header-logo_1pwbq_21", vn = "_applications-header-close-icon_1pwbq_26", _n = "_applications-header-change-brand-button_1pwbq_32", mn = "_applications-main_1pwbq_47", gn = "_applications-main-content_1pwbq_51", hn = "_applications-main-list_1pwbq_58", En = "_applications-main-user_1pwbq_74", wn = "_applications-main-user-name_1pwbq_81", bn = "_applications-main-user-email_1pwbq_82", Tn = "_applications-footer_1pwbq_101", Sn = "_applications-footer-sign-out_1pwbq_109", xn = "_applications-footer-sign-out-icon_1pwbq_115", Rn = "_applications-footer-sign-out-label_1pwbq_119", Nn = "_error-anim_1pwbq_161", Cn = "_error-text_1pwbq_169", T = {
|
|
912
912
|
applications: un,
|
|
913
913
|
applicationsHeader: dn,
|
|
914
914
|
applicationsHeaderBrand: fn,
|
|
@@ -916,8 +916,8 @@ const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_
|
|
|
916
916
|
applicationsHeaderCloseIcon: vn,
|
|
917
917
|
applicationsHeaderChangeBrandButton: _n,
|
|
918
918
|
applicationsMain: mn,
|
|
919
|
-
applicationsMainContent:
|
|
920
|
-
applicationsMainList:
|
|
919
|
+
applicationsMainContent: gn,
|
|
920
|
+
applicationsMainList: hn,
|
|
921
921
|
applicationsMainUser: En,
|
|
922
922
|
applicationsMainUserName: wn,
|
|
923
923
|
applicationsMainUserEmail: bn,
|
|
@@ -927,31 +927,31 @@ const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_
|
|
|
927
927
|
applicationsFooterSignOutLabel: Rn,
|
|
928
928
|
errorAnim: Nn,
|
|
929
929
|
errorText: Cn
|
|
930
|
-
}, In = (
|
|
930
|
+
}, In = (o) => new Promise((s) => setTimeout(s, o));
|
|
931
931
|
function yn() {
|
|
932
|
-
const { user:
|
|
932
|
+
const { user: o } = X(tt), {
|
|
933
933
|
signOut: s,
|
|
934
934
|
onNavigationClose: p,
|
|
935
|
-
toggleTenants:
|
|
935
|
+
toggleTenants: u,
|
|
936
936
|
hasShowroomAccess: f,
|
|
937
937
|
hasMarketingEngineAccess: c,
|
|
938
|
-
hasSendoutsAccess:
|
|
939
|
-
hasCmsAccess:
|
|
938
|
+
hasSendoutsAccess: b,
|
|
939
|
+
hasCmsAccess: i,
|
|
940
940
|
hasUserManagementAccess: m,
|
|
941
941
|
hasSettingsAccess: x,
|
|
942
|
-
hasUniversalAccess:
|
|
942
|
+
hasUniversalAccess: h,
|
|
943
943
|
hasInstoreAccess: S
|
|
944
|
-
} = q(), R = en(), j = R && !!R.planName, [D, L] = le(!1), [U, C] = le(!1),
|
|
944
|
+
} = q(), R = en(), j = R && !!R.planName, [D, L] = le(!1), [U, C] = le(!1), g = Zt(), V = K(
|
|
945
945
|
async (Y) => {
|
|
946
946
|
try {
|
|
947
947
|
C(!0);
|
|
948
|
-
const J = await
|
|
948
|
+
const J = await g(window.location.pathname);
|
|
949
949
|
Y(!0), window.location.assign(J.text);
|
|
950
950
|
} catch {
|
|
951
951
|
C(!1), L(!0), await In(2500), L(!1);
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
|
-
[C,
|
|
954
|
+
[C, g]
|
|
955
955
|
);
|
|
956
956
|
return /* @__PURE__ */ r.jsx(
|
|
957
957
|
rt,
|
|
@@ -978,7 +978,7 @@ function yn() {
|
|
|
978
978
|
noBorder: !0,
|
|
979
979
|
transparent: !0,
|
|
980
980
|
className: T.applicationsHeaderChangeBrandButton,
|
|
981
|
-
onClick:
|
|
981
|
+
onClick: u,
|
|
982
982
|
children: "Change brand"
|
|
983
983
|
}
|
|
984
984
|
)
|
|
@@ -991,7 +991,7 @@ function yn() {
|
|
|
991
991
|
/* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainList, children: [
|
|
992
992
|
/* @__PURE__ */ r.jsx(P, { to: O.DASHBOARD, children: "Dashboard" }),
|
|
993
993
|
/* @__PURE__ */ r.jsx(P, { hidden: !f, to: O.SHOWROOM, children: "Presentations (Showroom)" }),
|
|
994
|
-
/* @__PURE__ */ r.jsx(P, { hidden: !
|
|
994
|
+
/* @__PURE__ */ r.jsx(P, { hidden: !b, to: O.SENDOUTS, children: "Sendouts" }),
|
|
995
995
|
/* @__PURE__ */ r.jsx(
|
|
996
996
|
P,
|
|
997
997
|
{
|
|
@@ -1003,12 +1003,12 @@ function yn() {
|
|
|
1003
1003
|
/* @__PURE__ */ r.jsx(
|
|
1004
1004
|
P,
|
|
1005
1005
|
{
|
|
1006
|
-
hidden: !S && !
|
|
1006
|
+
hidden: !S && !h,
|
|
1007
1007
|
to: O.INSTORE_ADMIN,
|
|
1008
1008
|
children: "Stores"
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
/* @__PURE__ */ r.jsx(P, { hidden: !
|
|
1011
|
+
/* @__PURE__ */ r.jsx(P, { hidden: !i, to: O.CMS, children: "Content Manager" }),
|
|
1012
1012
|
/* @__PURE__ */ r.jsx(
|
|
1013
1013
|
P,
|
|
1014
1014
|
{
|
|
@@ -1020,7 +1020,7 @@ function yn() {
|
|
|
1020
1020
|
/* @__PURE__ */ r.jsx(
|
|
1021
1021
|
P,
|
|
1022
1022
|
{
|
|
1023
|
-
hidden: !
|
|
1023
|
+
hidden: !h && !x,
|
|
1024
1024
|
to: O.SETTINGS,
|
|
1025
1025
|
children: "Settings"
|
|
1026
1026
|
}
|
|
@@ -1030,7 +1030,7 @@ function yn() {
|
|
|
1030
1030
|
{
|
|
1031
1031
|
disabled: U,
|
|
1032
1032
|
onClick: V,
|
|
1033
|
-
hidden: !
|
|
1033
|
+
hidden: !h || !j,
|
|
1034
1034
|
to: "#",
|
|
1035
1035
|
children: [
|
|
1036
1036
|
/* @__PURE__ */ r.jsx(
|
|
@@ -1048,13 +1048,13 @@ function yn() {
|
|
|
1048
1048
|
),
|
|
1049
1049
|
D ? /* @__PURE__ */ r.jsx("p", { className: T.errorText, children: "Unable to access subscription page" }) : null
|
|
1050
1050
|
] }),
|
|
1051
|
-
|
|
1051
|
+
o && /* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainUser, children: [
|
|
1052
1052
|
/* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainUserName, children: [
|
|
1053
|
-
|
|
1053
|
+
o.firstName,
|
|
1054
1054
|
" ",
|
|
1055
|
-
|
|
1055
|
+
o.lastName
|
|
1056
1056
|
] }),
|
|
1057
|
-
/* @__PURE__ */ r.jsx("div", { className: T.applicationsMainUserEmail, children:
|
|
1057
|
+
/* @__PURE__ */ r.jsx("div", { className: T.applicationsMainUserEmail, children: o.email })
|
|
1058
1058
|
] })
|
|
1059
1059
|
] }) })
|
|
1060
1060
|
}
|
|
@@ -1064,28 +1064,28 @@ const jn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1064
1064
|
tenantButton: Pn,
|
|
1065
1065
|
active: On
|
|
1066
1066
|
};
|
|
1067
|
-
function Dn({ tenant:
|
|
1067
|
+
function Dn({ tenant: o }) {
|
|
1068
1068
|
const {
|
|
1069
1069
|
viewState: { selectedTenantId: s },
|
|
1070
1070
|
updateViewState: p
|
|
1071
|
-
} = q(),
|
|
1071
|
+
} = q(), u = s === o.id;
|
|
1072
1072
|
return /* @__PURE__ */ r.jsx(
|
|
1073
1073
|
Se,
|
|
1074
1074
|
{
|
|
1075
1075
|
align: "left",
|
|
1076
1076
|
noBorder: !0,
|
|
1077
|
-
className: re([et.tenantButton, { [et.active]:
|
|
1077
|
+
className: re([et.tenantButton, { [et.active]: u }]),
|
|
1078
1078
|
noShadow: !0,
|
|
1079
|
-
disabled:
|
|
1079
|
+
disabled: u,
|
|
1080
1080
|
onClick: () => {
|
|
1081
1081
|
p({
|
|
1082
|
-
selectedTenantId:
|
|
1082
|
+
selectedTenantId: o.id,
|
|
1083
1083
|
currentPosition: F.OPEN
|
|
1084
1084
|
});
|
|
1085
1085
|
},
|
|
1086
|
-
children:
|
|
1086
|
+
children: o.label
|
|
1087
1087
|
},
|
|
1088
|
-
|
|
1088
|
+
o.id
|
|
1089
1089
|
);
|
|
1090
1090
|
}
|
|
1091
1091
|
const Mn = "_tenants_6vjyd_1", kn = "_tenants-header_6vjyd_7", Fn = "_tenants-header-arrow-icon_6vjyd_11", Ln = "_tenants-main_6vjyd_24", Un = "_tenants-footer_6vjyd_42", Bn = "_tenants-footer-create-brand_6vjyd_50", Hn = "_tenants-footer-create-brand-icon_6vjyd_56", $n = "_tenants-footer-create-brand-label_6vjyd_60", k = {
|
|
@@ -1099,12 +1099,12 @@ const Mn = "_tenants_6vjyd_1", kn = "_tenants-header_6vjyd_7", Fn = "_tenants-he
|
|
|
1099
1099
|
tenantsFooterCreateBrandLabel: $n
|
|
1100
1100
|
};
|
|
1101
1101
|
function Wn() {
|
|
1102
|
-
const { toggleTenants:
|
|
1102
|
+
const { toggleTenants: o } = q(), { tenants: s } = Re();
|
|
1103
1103
|
return /* @__PURE__ */ r.jsx("div", { className: k.tenants, children: /* @__PURE__ */ r.jsx(
|
|
1104
1104
|
rt,
|
|
1105
1105
|
{
|
|
1106
1106
|
width: Wt,
|
|
1107
|
-
header: /* @__PURE__ */ r.jsx("div", { className: k.tenantsHeader, children: /* @__PURE__ */ r.jsx("div", { className: k.tenantsHeaderArrowIcon, onClick:
|
|
1107
|
+
header: /* @__PURE__ */ r.jsx("div", { className: k.tenantsHeader, children: /* @__PURE__ */ r.jsx("div", { className: k.tenantsHeaderArrowIcon, onClick: o, children: /* @__PURE__ */ r.jsx(ne, { src: An, size: "large" }) }) }),
|
|
1108
1108
|
footer: /* @__PURE__ */ r.jsx(
|
|
1109
1109
|
"div",
|
|
1110
1110
|
{
|
|
@@ -1129,76 +1129,76 @@ function Yn() {
|
|
|
1129
1129
|
/* @__PURE__ */ r.jsx(Wn, {})
|
|
1130
1130
|
] });
|
|
1131
1131
|
}
|
|
1132
|
-
const
|
|
1132
|
+
const he = { ease: "easeOut", duration: 0.3 }, Gn = {
|
|
1133
1133
|
[F.HIDDEN]: {
|
|
1134
1134
|
left: -600,
|
|
1135
|
-
transition:
|
|
1135
|
+
transition: he
|
|
1136
1136
|
},
|
|
1137
1137
|
[F.OPEN]: {
|
|
1138
1138
|
left: -300,
|
|
1139
|
-
transition:
|
|
1139
|
+
transition: he
|
|
1140
1140
|
},
|
|
1141
|
-
[F.EXPANDED]: { left: 0, transition:
|
|
1141
|
+
[F.EXPANDED]: { left: 0, transition: he }
|
|
1142
1142
|
};
|
|
1143
1143
|
function zn({
|
|
1144
|
-
isOpen:
|
|
1144
|
+
isOpen: o,
|
|
1145
1145
|
portalContainer: s = document.body,
|
|
1146
1146
|
onClose: p,
|
|
1147
|
-
tenantServiceUrl:
|
|
1147
|
+
tenantServiceUrl: u
|
|
1148
1148
|
}) {
|
|
1149
|
-
return (
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
}
|
|
1173
|
-
)
|
|
1149
|
+
return console.log("tenantServiceUrl", u), // Using framer-motion lib to animate the navigation component on mount/unmount
|
|
1150
|
+
// Also to prevent any api calls from being made when the navigation (Tiers component) is hidden
|
|
1151
|
+
/* @__PURE__ */ r.jsx(
|
|
1152
|
+
Vt,
|
|
1153
|
+
{
|
|
1154
|
+
onNavigationClose: p,
|
|
1155
|
+
isOpen: o,
|
|
1156
|
+
tenantServiceUrl: u,
|
|
1157
|
+
children: /* @__PURE__ */ r.jsx(xe.Consumer, { children: ({ viewState: { currentPosition: f } }) => Mt(
|
|
1158
|
+
/* @__PURE__ */ r.jsx(Ot, { children: f !== F.HIDDEN && /* @__PURE__ */ r.jsx(
|
|
1159
|
+
Dt.div,
|
|
1160
|
+
{
|
|
1161
|
+
className: Gt.navigation,
|
|
1162
|
+
initial: F.HIDDEN,
|
|
1163
|
+
variants: Gn,
|
|
1164
|
+
animate: f,
|
|
1165
|
+
exit: F.HIDDEN,
|
|
1166
|
+
children: /* @__PURE__ */ r.jsx(Yn, {})
|
|
1167
|
+
}
|
|
1168
|
+
) }),
|
|
1169
|
+
s
|
|
1170
|
+
) })
|
|
1171
|
+
}
|
|
1174
1172
|
);
|
|
1175
1173
|
}
|
|
1176
1174
|
const Kn = "data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%201.5H14M0%205.5H14M0%209.5H14M0'%20stroke='black'/%3e%3c/svg%3e";
|
|
1177
1175
|
function or({
|
|
1178
|
-
size:
|
|
1176
|
+
size: o = "medium",
|
|
1179
1177
|
alt: s = "Toggle navigation menu",
|
|
1180
1178
|
src: p = Kn,
|
|
1181
|
-
portalContainer:
|
|
1182
|
-
|
|
1179
|
+
portalContainer: u = document.body,
|
|
1180
|
+
tenantServiceUrl: f,
|
|
1181
|
+
...c
|
|
1183
1182
|
}) {
|
|
1184
|
-
const [
|
|
1185
|
-
return /* @__PURE__ */ r.jsxs(Pt, { children: [
|
|
1183
|
+
const [b, i] = Bt(!1);
|
|
1184
|
+
return console.log("tenantServiceUrl ++++++++ ", f), /* @__PURE__ */ r.jsxs(Pt, { children: [
|
|
1186
1185
|
/* @__PURE__ */ r.jsx(
|
|
1187
1186
|
Ft,
|
|
1188
1187
|
{
|
|
1189
|
-
size:
|
|
1188
|
+
size: o,
|
|
1190
1189
|
alt: s,
|
|
1191
1190
|
src: p,
|
|
1192
|
-
onClick: () =>
|
|
1193
|
-
...
|
|
1191
|
+
onClick: () => i(),
|
|
1192
|
+
...c
|
|
1194
1193
|
}
|
|
1195
1194
|
),
|
|
1196
1195
|
/* @__PURE__ */ r.jsx(
|
|
1197
1196
|
zn,
|
|
1198
1197
|
{
|
|
1199
|
-
isOpen:
|
|
1200
|
-
portalContainer:
|
|
1201
|
-
onClose: () =>
|
|
1198
|
+
isOpen: b,
|
|
1199
|
+
portalContainer: u,
|
|
1200
|
+
onClose: () => i(),
|
|
1201
|
+
tenantServiceUrl: f
|
|
1202
1202
|
}
|
|
1203
1203
|
)
|
|
1204
1204
|
] });
|