@touchtech/web-navigation-menu 0.0.18-alpha.1 → 0.0.18-alpha.3
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 +3 -1
- package/dist/components/Navigation/Navigation.d.ts +2 -1
- package/dist/hooks/useManageSubscription.d.ts +2 -2
- package/dist/hooks/useTenants.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +487 -475
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import be, { useContext as X, useState as le, useEffect as Ee, useMemo as y, useCallback as K, Fragment as Pt } from "react";
|
|
2
2
|
import { AnimatePresence as Ot, motion as Dt } from "framer-motion";
|
|
3
3
|
import { createPortal as Mt } from "react-dom";
|
|
4
|
-
import { AuthContext as
|
|
5
|
-
import { TenantIdContext as
|
|
6
|
-
import
|
|
7
|
-
import { Image as kt, Button as
|
|
8
|
-
import { useApi as
|
|
4
|
+
import { AuthContext as tt, userHasTenantAccess as M, Privileges as W } from "@touchtech/web-auth";
|
|
5
|
+
import { TenantIdContext as Te } from "@touchtech/web-tenant-id-provider";
|
|
6
|
+
import re from "classcat";
|
|
7
|
+
import { Image as kt, Button as Se, Icon as ne, IconButton as Ft } from "@touchtech/baselayer-ui";
|
|
8
|
+
import { useApi as nt } from "@touchtech/web-api-client";
|
|
9
9
|
import Lt from "swr";
|
|
10
10
|
import { matchPath as Ut } from "react-router-dom";
|
|
11
11
|
import { useToggle as Bt } from "@touchtech/web-hooks";
|
|
12
|
-
var
|
|
12
|
+
var we = { exports: {} }, Q = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react-jsx-runtime.production.min.js
|
|
@@ -19,21 +19,21 @@ var Ee = { exports: {} }, Z = {};
|
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
var
|
|
22
|
+
var Je;
|
|
23
23
|
function Ht() {
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
function o
|
|
28
|
-
var
|
|
29
|
-
x !== void 0 && (R = "" + x),
|
|
30
|
-
for (
|
|
31
|
-
if (
|
|
32
|
-
return { $$typeof:
|
|
24
|
+
if (Je) return Q;
|
|
25
|
+
Je = 1;
|
|
26
|
+
var i = be, s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, f = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
|
+
function w(o, m, x) {
|
|
28
|
+
var g, S = {}, R = null, j = null;
|
|
29
|
+
x !== void 0 && (R = "" + x), m.key !== void 0 && (R = "" + m.key), m.ref !== void 0 && (j = m.ref);
|
|
30
|
+
for (g in m) d.call(m, g) && !c.hasOwnProperty(g) && (S[g] = m[g]);
|
|
31
|
+
if (o && o.defaultProps) for (g in m = o.defaultProps, m) S[g] === void 0 && (S[g] = m[g]);
|
|
32
|
+
return { $$typeof: s, type: o, key: R, ref: j, props: S, _owner: f.current };
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return Q.Fragment = p, Q.jsx = w, Q.jsxs = w, Q;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var ee = {};
|
|
37
37
|
/**
|
|
38
38
|
* @license React
|
|
39
39
|
* react-jsx-runtime.development.js
|
|
@@ -43,18 +43,18 @@ var Q = {};
|
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
46
|
+
var Ze;
|
|
47
47
|
function $t() {
|
|
48
|
-
return
|
|
49
|
-
var
|
|
50
|
-
function
|
|
48
|
+
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
+
var i = be, s = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), o = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), g = 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
|
+
function U(e) {
|
|
51
51
|
if (e === null || typeof e != "object")
|
|
52
52
|
return null;
|
|
53
|
-
var t =
|
|
53
|
+
var t = D && e[D] || e[L];
|
|
54
54
|
return typeof t == "function" ? t : null;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var C = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
+
function h(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];
|
|
@@ -63,71 +63,71 @@ function $t() {
|
|
|
63
63
|
}
|
|
64
64
|
function V(e, t, n) {
|
|
65
65
|
{
|
|
66
|
-
var a =
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
return String(
|
|
66
|
+
var a = C.ReactDebugCurrentFrame, v = a.getStackAddendum();
|
|
67
|
+
v !== "" && (t += "%s", n = n.concat([v]));
|
|
68
|
+
var _ = n.map(function(u) {
|
|
69
|
+
return String(u);
|
|
70
70
|
});
|
|
71
|
-
|
|
71
|
+
_.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
|
|
74
|
+
var Y = !1, J = !1, B = !1, ue = !1, at = !1, Ne;
|
|
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 === d || e === c || at || e === f || e === x || e === g || ue || e === j || Y || J || B || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === S || e.$$typeof === w || e.$$typeof === o || 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.
|
|
81
|
-
e.$$typeof ===
|
|
81
|
+
e.$$typeof === Ne || e.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
83
|
function it(e, t, n) {
|
|
84
84
|
var a = e.displayName;
|
|
85
85
|
if (a)
|
|
86
86
|
return a;
|
|
87
|
-
var
|
|
88
|
-
return
|
|
87
|
+
var v = t.displayName || t.name || "";
|
|
88
|
+
return v !== "" ? n + "(" + v + ")" : n;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Ce(e) {
|
|
91
91
|
return e.displayName || "Context";
|
|
92
92
|
}
|
|
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" && h("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 d:
|
|
102
102
|
return "Fragment";
|
|
103
|
-
case
|
|
103
|
+
case p:
|
|
104
104
|
return "Portal";
|
|
105
|
-
case h:
|
|
106
|
-
return "Profiler";
|
|
107
105
|
case c:
|
|
106
|
+
return "Profiler";
|
|
107
|
+
case f:
|
|
108
108
|
return "StrictMode";
|
|
109
109
|
case x:
|
|
110
110
|
return "Suspense";
|
|
111
|
-
case
|
|
111
|
+
case g:
|
|
112
112
|
return "SuspenseList";
|
|
113
113
|
}
|
|
114
114
|
if (typeof e == "object")
|
|
115
115
|
switch (e.$$typeof) {
|
|
116
|
-
case b:
|
|
117
|
-
var t = e;
|
|
118
|
-
return Ne(t) + ".Consumer";
|
|
119
116
|
case o:
|
|
117
|
+
var t = e;
|
|
118
|
+
return Ce(t) + ".Consumer";
|
|
119
|
+
case w:
|
|
120
120
|
var n = e;
|
|
121
|
-
return
|
|
122
|
-
case
|
|
121
|
+
return Ce(n._context) + ".Provider";
|
|
122
|
+
case m:
|
|
123
123
|
return it(e, e.render, "ForwardRef");
|
|
124
124
|
case S:
|
|
125
125
|
var a = e.displayName || null;
|
|
126
126
|
return a !== null ? a : H(e.type) || "Memo";
|
|
127
127
|
case R: {
|
|
128
|
-
var
|
|
128
|
+
var v = e, _ = v._payload, u = v._init;
|
|
129
129
|
try {
|
|
130
|
-
return H(
|
|
130
|
+
return H(u(_));
|
|
131
131
|
} catch {
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
@@ -135,18 +135,18 @@ function $t() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var $ = Object.assign,
|
|
139
|
-
function
|
|
138
|
+
var $ = Object.assign, Z = 0, Ie, ye, je, Ae, Pe, Oe, De;
|
|
139
|
+
function Me() {
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
Me.__reactDisabledLog = !0;
|
|
142
142
|
function ot() {
|
|
143
143
|
{
|
|
144
|
-
if (
|
|
145
|
-
|
|
144
|
+
if (Z === 0) {
|
|
145
|
+
Ie = console.log, ye = console.info, je = console.warn, Ae = console.error, Pe = console.group, Oe = console.groupCollapsed, De = console.groupEnd;
|
|
146
146
|
var e = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
149
|
-
value:
|
|
149
|
+
value: Me,
|
|
150
150
|
writable: !0
|
|
151
151
|
};
|
|
152
152
|
Object.defineProperties(console, {
|
|
@@ -159,12 +159,12 @@ function $t() {
|
|
|
159
159
|
groupEnd: e
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
Z++;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
function ct() {
|
|
166
166
|
{
|
|
167
|
-
if (
|
|
167
|
+
if (Z--, Z === 0) {
|
|
168
168
|
var e = {
|
|
169
169
|
configurable: !0,
|
|
170
170
|
enumerable: !0,
|
|
@@ -172,186 +172,186 @@ function $t() {
|
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
174
|
log: $({}, e, {
|
|
175
|
-
value:
|
|
175
|
+
value: Ie
|
|
176
176
|
}),
|
|
177
177
|
info: $({}, e, {
|
|
178
|
-
value:
|
|
178
|
+
value: ye
|
|
179
179
|
}),
|
|
180
180
|
warn: $({}, e, {
|
|
181
|
-
value:
|
|
181
|
+
value: je
|
|
182
182
|
}),
|
|
183
183
|
error: $({}, e, {
|
|
184
|
-
value:
|
|
184
|
+
value: Ae
|
|
185
185
|
}),
|
|
186
186
|
group: $({}, e, {
|
|
187
|
-
value:
|
|
187
|
+
value: Pe
|
|
188
188
|
}),
|
|
189
189
|
groupCollapsed: $({}, e, {
|
|
190
|
-
value:
|
|
190
|
+
value: Oe
|
|
191
191
|
}),
|
|
192
192
|
groupEnd: $({}, e, {
|
|
193
|
-
value:
|
|
193
|
+
value: De
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
Z < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
200
|
+
var de = C.ReactCurrentDispatcher, fe;
|
|
201
|
+
function ae(e, t, n) {
|
|
202
202
|
{
|
|
203
|
-
if (
|
|
203
|
+
if (fe === void 0)
|
|
204
204
|
try {
|
|
205
205
|
throw Error();
|
|
206
|
-
} catch (
|
|
207
|
-
var a =
|
|
208
|
-
|
|
206
|
+
} catch (v) {
|
|
207
|
+
var a = v.stack.trim().match(/\n( *(at )?)/);
|
|
208
|
+
fe = a && a[1] || "";
|
|
209
209
|
}
|
|
210
210
|
return `
|
|
211
|
-
` +
|
|
211
|
+
` + fe + e;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var pe = !1, se;
|
|
215
215
|
{
|
|
216
216
|
var lt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
-
|
|
217
|
+
se = new lt();
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
if (!e ||
|
|
219
|
+
function ke(e, t) {
|
|
220
|
+
if (!e || pe)
|
|
221
221
|
return "";
|
|
222
222
|
{
|
|
223
|
-
var n =
|
|
223
|
+
var n = se.get(e);
|
|
224
224
|
if (n !== void 0)
|
|
225
225
|
return n;
|
|
226
226
|
}
|
|
227
227
|
var a;
|
|
228
|
-
|
|
229
|
-
var
|
|
228
|
+
pe = !0;
|
|
229
|
+
var v = Error.prepareStackTrace;
|
|
230
230
|
Error.prepareStackTrace = void 0;
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var _;
|
|
232
|
+
_ = de.current, de.current = null, ot();
|
|
233
233
|
try {
|
|
234
234
|
if (t) {
|
|
235
|
-
var
|
|
235
|
+
var u = function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
};
|
|
238
|
-
if (Object.defineProperty(
|
|
238
|
+
if (Object.defineProperty(u.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(
|
|
245
|
-
} catch (
|
|
246
|
-
a =
|
|
244
|
+
Reflect.construct(u, []);
|
|
245
|
+
} catch (A) {
|
|
246
|
+
a = A;
|
|
247
247
|
}
|
|
248
|
-
Reflect.construct(e, [],
|
|
248
|
+
Reflect.construct(e, [], u);
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
|
-
|
|
252
|
-
} catch (
|
|
253
|
-
a =
|
|
251
|
+
u.call();
|
|
252
|
+
} catch (A) {
|
|
253
|
+
a = A;
|
|
254
254
|
}
|
|
255
|
-
e.call(
|
|
255
|
+
e.call(u.prototype);
|
|
256
256
|
}
|
|
257
257
|
} else {
|
|
258
258
|
try {
|
|
259
259
|
throw Error();
|
|
260
|
-
} catch (
|
|
261
|
-
a =
|
|
260
|
+
} catch (A) {
|
|
261
|
+
a = A;
|
|
262
262
|
}
|
|
263
263
|
e();
|
|
264
264
|
}
|
|
265
|
-
} catch (
|
|
266
|
-
if (
|
|
267
|
-
for (var
|
|
268
|
-
`),
|
|
269
|
-
`),
|
|
270
|
-
|
|
271
|
-
for (;
|
|
272
|
-
if (
|
|
273
|
-
if (
|
|
265
|
+
} catch (A) {
|
|
266
|
+
if (A && a && typeof A.stack == "string") {
|
|
267
|
+
for (var l = A.stack.split(`
|
|
268
|
+
`), N = a.stack.split(`
|
|
269
|
+
`), E = l.length - 1, b = N.length - 1; E >= 1 && b >= 0 && l[E] !== N[b]; )
|
|
270
|
+
b--;
|
|
271
|
+
for (; E >= 1 && b >= 0; E--, b--)
|
|
272
|
+
if (l[E] !== N[b]) {
|
|
273
|
+
if (E !== 1 || b !== 1)
|
|
274
274
|
do
|
|
275
|
-
if (
|
|
275
|
+
if (E--, b--, b < 0 || l[E] !== N[b]) {
|
|
276
276
|
var I = `
|
|
277
|
-
` +
|
|
278
|
-
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
277
|
+
` + l[E].replace(" at new ", " at ");
|
|
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 (
|
|
280
|
+
while (E >= 1 && b >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
} finally {
|
|
285
|
-
|
|
285
|
+
pe = !1, de.current = _, ct(), Error.prepareStackTrace = v;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
return typeof e == "function" &&
|
|
287
|
+
var z = e ? e.displayName || e.name : "", Xe = z ? ae(z) : "";
|
|
288
|
+
return typeof e == "function" && se.set(e, Xe), Xe;
|
|
289
289
|
}
|
|
290
290
|
function ut(e, t, n) {
|
|
291
|
-
return
|
|
291
|
+
return ke(e, !1);
|
|
292
292
|
}
|
|
293
293
|
function dt(e) {
|
|
294
294
|
var t = e.prototype;
|
|
295
295
|
return !!(t && t.isReactComponent);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function ie(e, t, n) {
|
|
298
298
|
if (e == null)
|
|
299
299
|
return "";
|
|
300
300
|
if (typeof e == "function")
|
|
301
|
-
return
|
|
301
|
+
return ke(e, dt(e));
|
|
302
302
|
if (typeof e == "string")
|
|
303
|
-
return
|
|
303
|
+
return ae(e);
|
|
304
304
|
switch (e) {
|
|
305
305
|
case x:
|
|
306
|
-
return
|
|
307
|
-
case
|
|
308
|
-
return
|
|
306
|
+
return ae("Suspense");
|
|
307
|
+
case g:
|
|
308
|
+
return ae("SuspenseList");
|
|
309
309
|
}
|
|
310
310
|
if (typeof e == "object")
|
|
311
311
|
switch (e.$$typeof) {
|
|
312
|
-
case
|
|
312
|
+
case m:
|
|
313
313
|
return ut(e.render);
|
|
314
314
|
case S:
|
|
315
|
-
return
|
|
315
|
+
return ie(e.type, t, n);
|
|
316
316
|
case R: {
|
|
317
|
-
var a = e,
|
|
317
|
+
var a = e, v = a._payload, _ = a._init;
|
|
318
318
|
try {
|
|
319
|
-
return
|
|
319
|
+
return ie(_(v), t, n);
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
return "";
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
326
|
+
var oe = Object.prototype.hasOwnProperty, Fe = {}, Le = C.ReactDebugCurrentFrame;
|
|
327
|
+
function ce(e) {
|
|
328
328
|
if (e) {
|
|
329
|
-
var t = e._owner, n =
|
|
330
|
-
|
|
329
|
+
var t = e._owner, n = ie(e.type, e._source, t ? t.type : null);
|
|
330
|
+
Le.setExtraStackFrame(n);
|
|
331
331
|
} else
|
|
332
|
-
|
|
332
|
+
Le.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function ft(e, t, n, a,
|
|
334
|
+
function ft(e, t, n, a, v) {
|
|
335
335
|
{
|
|
336
|
-
var
|
|
337
|
-
for (var
|
|
338
|
-
if (
|
|
339
|
-
var
|
|
336
|
+
var _ = Function.call.bind(oe);
|
|
337
|
+
for (var u in e)
|
|
338
|
+
if (_(e, u)) {
|
|
339
|
+
var l = void 0;
|
|
340
340
|
try {
|
|
341
|
-
if (typeof e[
|
|
342
|
-
var
|
|
343
|
-
throw
|
|
341
|
+
if (typeof e[u] != "function") {
|
|
342
|
+
var N = Error((a || "React class") + ": " + n + " 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`.");
|
|
343
|
+
throw N.name = "Invariant Violation", N;
|
|
344
344
|
}
|
|
345
|
-
|
|
346
|
-
} catch (
|
|
347
|
-
|
|
345
|
+
l = e[u](t, u, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
|
+
} catch (E) {
|
|
347
|
+
l = E;
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
l && !(l instanceof Error) && (ce(v), h("%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, u, typeof l), ce(null)), l instanceof Error && !(l.message in Fe) && (Fe[l.message] = !0, ce(v), h("Failed %s type: %s", n, l.message), ce(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
var pt = Array.isArray;
|
|
354
|
-
function
|
|
354
|
+
function ve(e) {
|
|
355
355
|
return pt(e);
|
|
356
356
|
}
|
|
357
357
|
function vt(e) {
|
|
@@ -362,26 +362,26 @@ function $t() {
|
|
|
362
362
|
}
|
|
363
363
|
function _t(e) {
|
|
364
364
|
try {
|
|
365
|
-
return
|
|
365
|
+
return Ue(e), !1;
|
|
366
366
|
} catch {
|
|
367
367
|
return !0;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ue(e) {
|
|
371
371
|
return "" + e;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Be(e) {
|
|
374
374
|
if (_t(e))
|
|
375
|
-
return
|
|
375
|
+
return h("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
|
-
var
|
|
377
|
+
var He = C.ReactCurrentOwner, mt = {
|
|
378
378
|
key: !0,
|
|
379
379
|
ref: !0,
|
|
380
380
|
__self: !0,
|
|
381
381
|
__source: !0
|
|
382
|
-
},
|
|
382
|
+
}, $e, We;
|
|
383
383
|
function ht(e) {
|
|
384
|
-
if (
|
|
384
|
+
if (oe.call(e, "ref")) {
|
|
385
385
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
386
386
|
if (t && t.isReactWarning)
|
|
387
387
|
return !1;
|
|
@@ -389,7 +389,7 @@ function $t() {
|
|
|
389
389
|
return e.ref !== void 0;
|
|
390
390
|
}
|
|
391
391
|
function gt(e) {
|
|
392
|
-
if (
|
|
392
|
+
if (oe.call(e, "key")) {
|
|
393
393
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
394
394
|
if (t && t.isReactWarning)
|
|
395
395
|
return !1;
|
|
@@ -397,12 +397,12 @@ function $t() {
|
|
|
397
397
|
return e.key !== void 0;
|
|
398
398
|
}
|
|
399
399
|
function Et(e, t) {
|
|
400
|
-
typeof e.ref == "string" &&
|
|
400
|
+
typeof e.ref == "string" && He.current;
|
|
401
401
|
}
|
|
402
402
|
function wt(e, t) {
|
|
403
403
|
{
|
|
404
404
|
var n = function() {
|
|
405
|
-
|
|
405
|
+
$e || ($e = !0, h("%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
|
-
|
|
416
|
+
We || (We = !0, h("%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,70 +421,70 @@ function $t() {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var Tt = function(e, t, n, a,
|
|
425
|
-
var
|
|
424
|
+
var Tt = function(e, t, n, a, v, _, u) {
|
|
425
|
+
var l = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
|
-
$$typeof:
|
|
427
|
+
$$typeof: s,
|
|
428
428
|
// Built-in properties that belong on the element
|
|
429
429
|
type: e,
|
|
430
430
|
key: t,
|
|
431
431
|
ref: n,
|
|
432
|
-
props:
|
|
432
|
+
props: u,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
|
-
_owner:
|
|
434
|
+
_owner: _
|
|
435
435
|
};
|
|
436
|
-
return
|
|
436
|
+
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !0,
|
|
440
440
|
value: !1
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(l, "_self", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
445
|
value: a
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty(l, "_source", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
|
-
value:
|
|
451
|
-
}), Object.freeze && (Object.freeze(
|
|
450
|
+
value: v
|
|
451
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
452
452
|
};
|
|
453
|
-
function St(e, t, n, a,
|
|
453
|
+
function St(e, t, n, a, v) {
|
|
454
454
|
{
|
|
455
|
-
var
|
|
456
|
-
n !== void 0 && (
|
|
457
|
-
for (
|
|
458
|
-
|
|
455
|
+
var _, u = {}, l = null, N = null;
|
|
456
|
+
n !== void 0 && (Be(n), l = "" + n), gt(t) && (Be(t.key), l = "" + t.key), ht(t) && (N = t.ref, Et(t, v));
|
|
457
|
+
for (_ in t)
|
|
458
|
+
oe.call(t, _) && !mt.hasOwnProperty(_) && (u[_] = t[_]);
|
|
459
459
|
if (e && e.defaultProps) {
|
|
460
|
-
var
|
|
461
|
-
for (
|
|
462
|
-
|
|
460
|
+
var E = e.defaultProps;
|
|
461
|
+
for (_ in E)
|
|
462
|
+
u[_] === void 0 && (u[_] = E[_]);
|
|
463
463
|
}
|
|
464
|
-
if (
|
|
465
|
-
var
|
|
466
|
-
|
|
464
|
+
if (l || N) {
|
|
465
|
+
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
466
|
+
l && wt(u, b), N && bt(u, b);
|
|
467
467
|
}
|
|
468
|
-
return Tt(e,
|
|
468
|
+
return Tt(e, l, N, v, a, He.current, u);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
471
|
+
var _e = C.ReactCurrentOwner, qe = C.ReactDebugCurrentFrame;
|
|
472
|
+
function G(e) {
|
|
473
473
|
if (e) {
|
|
474
|
-
var t = e._owner, n =
|
|
475
|
-
|
|
474
|
+
var t = e._owner, n = ie(e.type, e._source, t ? t.type : null);
|
|
475
|
+
qe.setExtraStackFrame(n);
|
|
476
476
|
} else
|
|
477
|
-
|
|
477
|
+
qe.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
function
|
|
482
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
479
|
+
var me;
|
|
480
|
+
me = !1;
|
|
481
|
+
function he(e) {
|
|
482
|
+
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Ve() {
|
|
485
485
|
{
|
|
486
|
-
if (
|
|
487
|
-
var e = H(
|
|
486
|
+
if (_e.current) {
|
|
487
|
+
var e = H(_e.current.type);
|
|
488
488
|
if (e)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -496,10 +496,10 @@ Check the render method of \`` + e + "`.";
|
|
|
496
496
|
function xt(e) {
|
|
497
497
|
return "";
|
|
498
498
|
}
|
|
499
|
-
var
|
|
499
|
+
var Ye = {};
|
|
500
500
|
function Rt(e) {
|
|
501
501
|
{
|
|
502
|
-
var t =
|
|
502
|
+
var t = Ve();
|
|
503
503
|
if (!t) {
|
|
504
504
|
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
505
505
|
n && (t = `
|
|
@@ -509,35 +509,35 @@ Check the top-level render call using <` + n + ">.");
|
|
|
509
509
|
return t;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Ge(e, t) {
|
|
513
513
|
{
|
|
514
514
|
if (!e._store || e._store.validated || e.key != null)
|
|
515
515
|
return;
|
|
516
516
|
e._store.validated = !0;
|
|
517
517
|
var n = Rt(t);
|
|
518
|
-
if (
|
|
518
|
+
if (Ye[n])
|
|
519
519
|
return;
|
|
520
|
-
|
|
520
|
+
Ye[n] = !0;
|
|
521
521
|
var a = "";
|
|
522
|
-
e && e._owner && e._owner !==
|
|
522
|
+
e && e._owner && e._owner !== _e.current && (a = " It was passed a child from " + H(e._owner.type) + "."), G(e), h('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
|
-
function
|
|
525
|
+
function ze(e, t) {
|
|
526
526
|
{
|
|
527
527
|
if (typeof e != "object")
|
|
528
528
|
return;
|
|
529
|
-
if (
|
|
529
|
+
if (ve(e))
|
|
530
530
|
for (var n = 0; n < e.length; n++) {
|
|
531
531
|
var a = e[n];
|
|
532
|
-
|
|
532
|
+
he(a) && Ge(a, t);
|
|
533
533
|
}
|
|
534
|
-
else if (
|
|
534
|
+
else if (he(e))
|
|
535
535
|
e._store && (e._store.validated = !0);
|
|
536
536
|
else if (e) {
|
|
537
|
-
var
|
|
538
|
-
if (typeof
|
|
539
|
-
for (var
|
|
540
|
-
|
|
537
|
+
var v = U(e);
|
|
538
|
+
if (typeof v == "function" && v !== e.entries)
|
|
539
|
+
for (var _ = v.call(e), u; !(u = _.next()).done; )
|
|
540
|
+
he(u.value) && Ge(u.value, t);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -549,7 +549,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
549
549
|
var n;
|
|
550
550
|
if (typeof t == "function")
|
|
551
551
|
n = t.propTypes;
|
|
552
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
552
|
+
else if (typeof t == "object" && (t.$$typeof === m || // Note: Memo only checks outer props here.
|
|
553
553
|
// Inner props are checked in the reconciler.
|
|
554
554
|
t.$$typeof === S))
|
|
555
555
|
n = t.propTypes;
|
|
@@ -558,12 +558,12 @@ Check the top-level render call using <` + n + ">.");
|
|
|
558
558
|
if (n) {
|
|
559
559
|
var a = H(t);
|
|
560
560
|
ft(n, e.props, "prop", a, e);
|
|
561
|
-
} else if (t.PropTypes !== void 0 && !
|
|
562
|
-
|
|
563
|
-
var
|
|
564
|
-
|
|
561
|
+
} else if (t.PropTypes !== void 0 && !me) {
|
|
562
|
+
me = !0;
|
|
563
|
+
var v = H(t);
|
|
564
|
+
h("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 && h("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,56 +571,56 @@ 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
|
-
|
|
574
|
+
G(e), h("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 && (
|
|
578
|
+
e.ref !== null && (G(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), G(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Ke(e, t, n, a, v, _) {
|
|
582
582
|
{
|
|
583
|
-
var
|
|
584
|
-
if (!
|
|
585
|
-
var
|
|
586
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
587
|
-
var
|
|
588
|
-
|
|
589
|
-
var
|
|
590
|
-
e === null ?
|
|
583
|
+
var u = st(e);
|
|
584
|
+
if (!u) {
|
|
585
|
+
var l = "";
|
|
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
|
+
var N = xt();
|
|
588
|
+
N ? l += N : l += Ve();
|
|
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, h("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 b = St(e, t, n, v, _);
|
|
593
|
+
if (b == null)
|
|
594
|
+
return b;
|
|
595
|
+
if (u) {
|
|
596
596
|
var I = t.children;
|
|
597
597
|
if (I !== void 0)
|
|
598
598
|
if (a)
|
|
599
|
-
if (
|
|
600
|
-
for (var
|
|
601
|
-
|
|
599
|
+
if (ve(I)) {
|
|
600
|
+
for (var z = 0; z < I.length; z++)
|
|
601
|
+
ze(I[z], e);
|
|
602
602
|
Object.freeze && Object.freeze(I);
|
|
603
603
|
} else
|
|
604
|
-
|
|
604
|
+
h("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 === d ? Ct(b) : Nt(b), b;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
function It(e, t, n) {
|
|
612
|
-
return
|
|
612
|
+
return Ke(e, t, n, !0);
|
|
613
613
|
}
|
|
614
614
|
function yt(e, t, n) {
|
|
615
|
-
return
|
|
615
|
+
return Ke(e, t, n, !1);
|
|
616
616
|
}
|
|
617
617
|
var jt = yt, At = It;
|
|
618
|
-
|
|
619
|
-
}()),
|
|
618
|
+
ee.Fragment = d, ee.jsx = jt, ee.jsxs = At;
|
|
619
|
+
}()), ee;
|
|
620
620
|
}
|
|
621
|
-
process.env.NODE_ENV === "production" ?
|
|
622
|
-
var r =
|
|
623
|
-
const
|
|
621
|
+
process.env.NODE_ENV === "production" ? we.exports = Ht() : we.exports = $t();
|
|
622
|
+
var r = we.exports;
|
|
623
|
+
const O = {
|
|
624
624
|
SHOWROOM: "/showroom",
|
|
625
625
|
SENDOUTS: "/sendouts",
|
|
626
626
|
SENDOUTS_CMS: "/sendouts-cms",
|
|
@@ -635,273 +635,276 @@ const D = {
|
|
|
635
635
|
SUPERADMIN: "/superadmin",
|
|
636
636
|
CMS: "/cms"
|
|
637
637
|
}, Wt = 300, qt = 300;
|
|
638
|
-
var
|
|
639
|
-
const
|
|
638
|
+
var F = /* @__PURE__ */ ((i) => (i.OPEN = "OPEN", i.HIDDEN = "HIDDEN", i.EXPANDED = "EXPANDED", i))(F || {});
|
|
639
|
+
const xe = be.createContext(
|
|
640
640
|
{}
|
|
641
641
|
);
|
|
642
642
|
function q() {
|
|
643
|
-
return
|
|
643
|
+
return X(xe);
|
|
644
644
|
}
|
|
645
645
|
function Vt({
|
|
646
|
-
children:
|
|
647
|
-
isOpen:
|
|
648
|
-
|
|
646
|
+
children: i,
|
|
647
|
+
isOpen: s,
|
|
648
|
+
tenantServiceUrl: p,
|
|
649
|
+
onNavigationClose: d = () => {
|
|
649
650
|
}
|
|
650
651
|
}) {
|
|
651
|
-
const [
|
|
652
|
-
selectedTenantId:
|
|
652
|
+
const [f] = X(Te), [c, w] = le({
|
|
653
|
+
selectedTenantId: f,
|
|
653
654
|
currentPosition: "HIDDEN"
|
|
654
655
|
/* HIDDEN */
|
|
655
|
-
}), { user: o, authService:
|
|
656
|
-
|
|
657
|
-
if (
|
|
658
|
-
|
|
659
|
-
...
|
|
660
|
-
selectedTenantId:
|
|
656
|
+
}), { user: o, authService: m, canSignOut: x } = X(tt);
|
|
657
|
+
Ee(() => {
|
|
658
|
+
if (s) {
|
|
659
|
+
w((B) => ({
|
|
660
|
+
...B,
|
|
661
|
+
selectedTenantId: f,
|
|
661
662
|
currentPosition: "OPEN"
|
|
662
663
|
/* OPEN */
|
|
663
664
|
}));
|
|
664
665
|
return;
|
|
665
666
|
}
|
|
666
|
-
|
|
667
|
-
...
|
|
667
|
+
w((B) => ({
|
|
668
|
+
...B,
|
|
668
669
|
currentPosition: "HIDDEN"
|
|
669
670
|
/* HIDDEN */
|
|
670
671
|
}));
|
|
671
|
-
}, [
|
|
672
|
-
|
|
673
|
-
}, [
|
|
674
|
-
const
|
|
675
|
-
() => o ?
|
|
672
|
+
}, [f, s, w]), Ee(() => {
|
|
673
|
+
s && m.refreshUser(300);
|
|
674
|
+
}, [m, s]);
|
|
675
|
+
const g = y(
|
|
676
|
+
() => o ? M(
|
|
676
677
|
o,
|
|
677
678
|
c.selectedTenantId,
|
|
678
679
|
W.MARKETING_ENGINE_APP
|
|
679
680
|
) : !1,
|
|
680
681
|
[c.selectedTenantId, o]
|
|
681
|
-
),
|
|
682
|
-
() => o ?
|
|
682
|
+
), S = y(
|
|
683
|
+
() => o ? M(
|
|
683
684
|
o,
|
|
684
685
|
c.selectedTenantId,
|
|
685
686
|
W.SHOWROOM_APP
|
|
686
687
|
) : !1,
|
|
687
688
|
[c.selectedTenantId, o]
|
|
688
|
-
),
|
|
689
|
-
() => o ?
|
|
689
|
+
), R = y(
|
|
690
|
+
() => o ? M(
|
|
690
691
|
o,
|
|
691
692
|
c.selectedTenantId,
|
|
692
693
|
W.SENDOUTS_APP
|
|
693
694
|
) : !1,
|
|
694
695
|
[c.selectedTenantId, o]
|
|
695
|
-
),
|
|
696
|
-
() => o ?
|
|
696
|
+
), j = y(
|
|
697
|
+
() => o ? M(
|
|
697
698
|
o,
|
|
698
699
|
c.selectedTenantId,
|
|
699
700
|
W.SENDOUTS_CMS_APP
|
|
700
701
|
) : !1,
|
|
701
702
|
[c.selectedTenantId, o]
|
|
702
|
-
),
|
|
703
|
-
() => o ?
|
|
703
|
+
), D = y(
|
|
704
|
+
() => o ? M(
|
|
704
705
|
o,
|
|
705
706
|
c.selectedTenantId,
|
|
706
707
|
W.USER_MANAGEMENT_APP
|
|
707
708
|
) : !1,
|
|
708
709
|
[c.selectedTenantId, o]
|
|
709
|
-
),
|
|
710
|
-
() => o ?
|
|
710
|
+
), L = y(
|
|
711
|
+
() => o ? M(
|
|
711
712
|
o,
|
|
712
713
|
c.selectedTenantId,
|
|
713
714
|
W.UNIVERSAL
|
|
714
715
|
) : !1,
|
|
715
716
|
[c.selectedTenantId, o]
|
|
716
717
|
), U = y(
|
|
717
|
-
() => o ?
|
|
718
|
+
() => o ? M(o, c.selectedTenantId, "settings-app") : !1,
|
|
718
719
|
[c.selectedTenantId, o]
|
|
719
|
-
),
|
|
720
|
-
() => o ?
|
|
720
|
+
), C = y(
|
|
721
|
+
() => o ? M(
|
|
721
722
|
o,
|
|
722
723
|
c.selectedTenantId,
|
|
723
724
|
W.INSTORE_ADMIN_APP
|
|
724
725
|
) : !1,
|
|
725
726
|
[c.selectedTenantId, o]
|
|
726
|
-
),
|
|
727
|
-
(
|
|
728
|
-
...
|
|
729
|
-
...
|
|
727
|
+
), h = K(
|
|
728
|
+
(B) => w((ue) => ({
|
|
729
|
+
...ue,
|
|
730
|
+
...B
|
|
730
731
|
})),
|
|
731
732
|
[]
|
|
732
|
-
),
|
|
733
|
-
|
|
734
|
-
}, [
|
|
733
|
+
), V = K(async () => {
|
|
734
|
+
x && await m.signOut();
|
|
735
|
+
}, [m, x]), Y = K(() => {
|
|
735
736
|
if (c.currentPosition === "OPEN") {
|
|
736
|
-
|
|
737
|
+
h({
|
|
737
738
|
currentPosition: "EXPANDED",
|
|
738
|
-
selectedTenantId:
|
|
739
|
+
selectedTenantId: f
|
|
739
740
|
});
|
|
740
741
|
return;
|
|
741
742
|
}
|
|
742
743
|
if (c.currentPosition === "EXPANDED") {
|
|
743
|
-
|
|
744
|
+
h({
|
|
744
745
|
currentPosition: "OPEN"
|
|
745
746
|
/* OPEN */
|
|
746
747
|
});
|
|
747
748
|
return;
|
|
748
749
|
}
|
|
749
|
-
}, [
|
|
750
|
+
}, [f, h, c.currentPosition]), J = y(
|
|
750
751
|
() => ({
|
|
751
|
-
hasMarketingEngineAccess:
|
|
752
|
-
hasShowroomAccess:
|
|
753
|
-
hasSendoutsAccess:
|
|
754
|
-
hasCmsAccess:
|
|
755
|
-
hasUserManagementAccess:
|
|
756
|
-
hasUniversalAccess:
|
|
752
|
+
hasMarketingEngineAccess: g,
|
|
753
|
+
hasShowroomAccess: S,
|
|
754
|
+
hasSendoutsAccess: R,
|
|
755
|
+
hasCmsAccess: j,
|
|
756
|
+
hasUserManagementAccess: D,
|
|
757
|
+
hasUniversalAccess: L,
|
|
757
758
|
hasSettingsAccess: U,
|
|
758
|
-
hasInstoreAccess:
|
|
759
|
+
hasInstoreAccess: C,
|
|
759
760
|
viewState: c,
|
|
760
|
-
updateViewState:
|
|
761
|
-
signOut:
|
|
762
|
-
toggleTenants:
|
|
763
|
-
onNavigationClose:
|
|
761
|
+
updateViewState: h,
|
|
762
|
+
signOut: V,
|
|
763
|
+
toggleTenants: Y,
|
|
764
|
+
onNavigationClose: d,
|
|
765
|
+
tenantServiceUrl: p
|
|
764
766
|
}),
|
|
765
767
|
[
|
|
766
|
-
|
|
767
|
-
S,
|
|
768
|
+
g,
|
|
768
769
|
R,
|
|
769
|
-
m,
|
|
770
770
|
j,
|
|
771
|
-
|
|
771
|
+
S,
|
|
772
|
+
D,
|
|
773
|
+
L,
|
|
772
774
|
U,
|
|
773
|
-
|
|
775
|
+
C,
|
|
774
776
|
c,
|
|
775
|
-
|
|
776
|
-
E,
|
|
777
|
+
h,
|
|
777
778
|
V,
|
|
778
|
-
|
|
779
|
+
Y,
|
|
780
|
+
d,
|
|
781
|
+
p
|
|
779
782
|
]
|
|
780
783
|
);
|
|
781
|
-
return /* @__PURE__ */ r.jsx(
|
|
784
|
+
return /* @__PURE__ */ r.jsx(xe.Provider, { value: J, children: i });
|
|
782
785
|
}
|
|
783
786
|
const Yt = "_navigation_1esaw_1", Gt = {
|
|
784
787
|
navigation: Yt
|
|
785
|
-
}, 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 = (i) => {
|
|
786
789
|
throw new Error(
|
|
787
790
|
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
788
791
|
);
|
|
789
792
|
};
|
|
790
|
-
function Zt() {
|
|
791
|
-
const s =
|
|
792
|
-
return
|
|
793
|
-
async (
|
|
794
|
-
const o =
|
|
795
|
-
s.setHeader("tenant-id",
|
|
793
|
+
function Zt(i) {
|
|
794
|
+
const s = nt(), p = Jt(), { viewState: d } = q(), [f] = X(Te);
|
|
795
|
+
return K(
|
|
796
|
+
async (w) => {
|
|
797
|
+
const o = w.replace(/^\//, "");
|
|
798
|
+
s.setHeader("tenant-id", d.selectedTenantId);
|
|
796
799
|
try {
|
|
797
800
|
return await s.post(
|
|
798
|
-
|
|
801
|
+
p,
|
|
799
802
|
o
|
|
800
803
|
);
|
|
801
804
|
} finally {
|
|
802
|
-
|
|
805
|
+
f && s.setHeader("tenant-id", f);
|
|
803
806
|
}
|
|
804
807
|
},
|
|
805
|
-
[s,
|
|
808
|
+
[s, p, d, f]
|
|
806
809
|
);
|
|
807
810
|
}
|
|
808
|
-
function Qt() {
|
|
811
|
+
function Qt(i) {
|
|
809
812
|
throw new Error(
|
|
810
813
|
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
811
814
|
);
|
|
812
815
|
}
|
|
813
|
-
function
|
|
814
|
-
const s =
|
|
816
|
+
function Re(i) {
|
|
817
|
+
const s = nt(), p = Qt(), { data: d, error: f } = Lt(p, s.get);
|
|
815
818
|
return {
|
|
816
|
-
tenants:
|
|
817
|
-
isLoading: !
|
|
818
|
-
error:
|
|
819
|
+
tenants: d ?? [],
|
|
820
|
+
isLoading: !d && !f,
|
|
821
|
+
error: f
|
|
819
822
|
};
|
|
820
823
|
}
|
|
821
824
|
function en() {
|
|
822
825
|
const {
|
|
823
|
-
viewState: { selectedTenantId:
|
|
824
|
-
} = q(), { tenants:
|
|
825
|
-
return y(() =>
|
|
826
|
+
viewState: { selectedTenantId: i }
|
|
827
|
+
} = q(), { tenants: s } = Re();
|
|
828
|
+
return y(() => s.find((d) => d.id === i), [s, i]);
|
|
826
829
|
}
|
|
827
|
-
function tn({ layout:
|
|
830
|
+
function tn({ layout: i }) {
|
|
828
831
|
const {
|
|
829
|
-
viewState: { selectedTenantId:
|
|
830
|
-
} = q(), { tenants:
|
|
831
|
-
() =>
|
|
832
|
-
[
|
|
832
|
+
viewState: { selectedTenantId: s }
|
|
833
|
+
} = q(), { tenants: p } = Re(), d = y(
|
|
834
|
+
() => p.find((f) => f.id === s),
|
|
835
|
+
[s, p]
|
|
833
836
|
);
|
|
834
|
-
return
|
|
837
|
+
return d ? /* @__PURE__ */ r.jsx(kt, { src: d.logoUrl, layout: i }) : null;
|
|
835
838
|
}
|
|
836
|
-
const nn = "_tier_1cqnw_1", rn = "_tier-header_1cqnw_12", an = "_border_1cqnw_17", sn = "_tier-main_1cqnw_21", on = "_tier-footer_1cqnw_26",
|
|
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 = {
|
|
837
840
|
tier: nn,
|
|
838
841
|
tierHeader: rn,
|
|
839
842
|
border: an,
|
|
840
843
|
tierMain: sn,
|
|
841
844
|
tierFooter: on
|
|
842
845
|
};
|
|
843
|
-
function
|
|
844
|
-
children:
|
|
845
|
-
header:
|
|
846
|
-
footer:
|
|
847
|
-
className:
|
|
848
|
-
width:
|
|
849
|
-
showHeaderBorder:
|
|
846
|
+
function rt({
|
|
847
|
+
children: i,
|
|
848
|
+
header: s,
|
|
849
|
+
footer: p,
|
|
850
|
+
className: d,
|
|
851
|
+
width: f,
|
|
852
|
+
showHeaderBorder: c
|
|
850
853
|
}) {
|
|
851
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
852
|
-
!!
|
|
854
|
+
return /* @__PURE__ */ r.jsxs("div", { className: re([te.tier, d]), style: { width: f }, children: [
|
|
855
|
+
!!s && /* @__PURE__ */ r.jsx(
|
|
853
856
|
"div",
|
|
854
857
|
{
|
|
855
|
-
className:
|
|
856
|
-
|
|
857
|
-
{ [
|
|
858
|
+
className: re([
|
|
859
|
+
te.tierHeader,
|
|
860
|
+
{ [te.border]: c }
|
|
858
861
|
]),
|
|
859
|
-
children:
|
|
862
|
+
children: s
|
|
860
863
|
}
|
|
861
864
|
),
|
|
862
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
863
|
-
!!
|
|
865
|
+
/* @__PURE__ */ r.jsx("div", { className: te.tierMain, children: i }),
|
|
866
|
+
!!p && /* @__PURE__ */ r.jsx("div", { className: te.tierFooter, children: p })
|
|
864
867
|
] });
|
|
865
868
|
}
|
|
866
|
-
const cn = "_navigation-button_1ckcy_1", ln = "_active_1ckcy_15",
|
|
869
|
+
const cn = "_navigation-button_1ckcy_1", ln = "_active_1ckcy_15", Qe = {
|
|
867
870
|
navigationButton: cn,
|
|
868
871
|
active: ln
|
|
869
872
|
};
|
|
870
|
-
function
|
|
871
|
-
children:
|
|
872
|
-
to:
|
|
873
|
-
hidden:
|
|
874
|
-
disabled:
|
|
875
|
-
onClick:
|
|
873
|
+
function P({
|
|
874
|
+
children: i,
|
|
875
|
+
to: s,
|
|
876
|
+
hidden: p,
|
|
877
|
+
disabled: d,
|
|
878
|
+
onClick: f
|
|
876
879
|
}) {
|
|
877
|
-
const [
|
|
880
|
+
const [c, w] = X(Te), [o, m] = le(!1), {
|
|
878
881
|
viewState: { selectedTenantId: x }
|
|
879
882
|
} = q();
|
|
880
|
-
|
|
883
|
+
Ee(() => {
|
|
881
884
|
const R = () => {
|
|
882
|
-
|
|
885
|
+
c !== x && o && w(x);
|
|
883
886
|
};
|
|
884
887
|
return window.addEventListener("unload", R), () => {
|
|
885
888
|
window.removeEventListener("unload", R);
|
|
886
889
|
};
|
|
887
|
-
}, [
|
|
888
|
-
const
|
|
889
|
-
if (
|
|
890
|
-
|
|
890
|
+
}, [w, c, x, o]);
|
|
891
|
+
const g = K(() => {
|
|
892
|
+
if (f) {
|
|
893
|
+
f(m);
|
|
891
894
|
return;
|
|
892
895
|
}
|
|
893
|
-
|
|
894
|
-
}, [
|
|
895
|
-
return
|
|
896
|
-
|
|
896
|
+
s && (m(!0), window.location.assign(s));
|
|
897
|
+
}, [s, f]), S = s ? !!Ut(`${s}/*`, window.location.pathname) && c === x : !1;
|
|
898
|
+
return p ? null : /* @__PURE__ */ r.jsx(
|
|
899
|
+
Se,
|
|
897
900
|
{
|
|
898
901
|
align: "left",
|
|
899
902
|
noBorder: !0,
|
|
900
|
-
className:
|
|
903
|
+
className: re([Qe.navigationButton, { [Qe.active]: S }]),
|
|
901
904
|
noShadow: !0,
|
|
902
|
-
disabled: S ||
|
|
903
|
-
onClick:
|
|
904
|
-
children:
|
|
905
|
+
disabled: S || d,
|
|
906
|
+
onClick: g,
|
|
907
|
+
children: i
|
|
905
908
|
}
|
|
906
909
|
);
|
|
907
910
|
}
|
|
@@ -924,34 +927,34 @@ const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_
|
|
|
924
927
|
applicationsFooterSignOutLabel: Rn,
|
|
925
928
|
errorAnim: Nn,
|
|
926
929
|
errorText: Cn
|
|
927
|
-
}, In = (
|
|
930
|
+
}, In = (i) => new Promise((s) => setTimeout(s, i));
|
|
928
931
|
function yn() {
|
|
929
|
-
const { user:
|
|
930
|
-
signOut:
|
|
931
|
-
onNavigationClose:
|
|
932
|
-
toggleTenants:
|
|
933
|
-
hasShowroomAccess:
|
|
934
|
-
hasMarketingEngineAccess:
|
|
935
|
-
hasSendoutsAccess:
|
|
936
|
-
hasCmsAccess:
|
|
937
|
-
hasUserManagementAccess:
|
|
932
|
+
const { user: i } = X(tt), {
|
|
933
|
+
signOut: s,
|
|
934
|
+
onNavigationClose: p,
|
|
935
|
+
toggleTenants: d,
|
|
936
|
+
hasShowroomAccess: f,
|
|
937
|
+
hasMarketingEngineAccess: c,
|
|
938
|
+
hasSendoutsAccess: w,
|
|
939
|
+
hasCmsAccess: o,
|
|
940
|
+
hasUserManagementAccess: m,
|
|
938
941
|
hasSettingsAccess: x,
|
|
939
|
-
hasUniversalAccess:
|
|
942
|
+
hasUniversalAccess: g,
|
|
940
943
|
hasInstoreAccess: S
|
|
941
|
-
} = q(), R = en(), j = R && !!R.planName, [
|
|
942
|
-
async (
|
|
944
|
+
} = q(), R = en(), j = R && !!R.planName, [D, L] = le(!1), [U, C] = le(!1), h = Zt(), V = K(
|
|
945
|
+
async (Y) => {
|
|
943
946
|
try {
|
|
944
|
-
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
+
C(!0);
|
|
948
|
+
const J = await h(window.location.pathname);
|
|
949
|
+
Y(!0), window.location.assign(J.text);
|
|
947
950
|
} catch {
|
|
948
|
-
|
|
951
|
+
C(!1), L(!0), await In(2500), L(!1);
|
|
949
952
|
}
|
|
950
953
|
},
|
|
951
|
-
[
|
|
954
|
+
[C, h]
|
|
952
955
|
);
|
|
953
956
|
return /* @__PURE__ */ r.jsx(
|
|
954
|
-
|
|
957
|
+
rt,
|
|
955
958
|
{
|
|
956
959
|
className: T.applications,
|
|
957
960
|
width: qt,
|
|
@@ -963,129 +966,129 @@ function yn() {
|
|
|
963
966
|
"div",
|
|
964
967
|
{
|
|
965
968
|
className: T.applicationsHeaderCloseIcon,
|
|
966
|
-
onClick:
|
|
967
|
-
children: /* @__PURE__ */ r.jsx(
|
|
969
|
+
onClick: p,
|
|
970
|
+
children: /* @__PURE__ */ r.jsx(ne, { src: zt, size: "large" })
|
|
968
971
|
}
|
|
969
972
|
)
|
|
970
973
|
] }),
|
|
971
974
|
/* @__PURE__ */ r.jsx(
|
|
972
|
-
|
|
975
|
+
Se,
|
|
973
976
|
{
|
|
974
977
|
align: "left",
|
|
975
978
|
noBorder: !0,
|
|
976
979
|
transparent: !0,
|
|
977
980
|
className: T.applicationsHeaderChangeBrandButton,
|
|
978
|
-
onClick:
|
|
981
|
+
onClick: d,
|
|
979
982
|
children: "Change brand"
|
|
980
983
|
}
|
|
981
984
|
)
|
|
982
985
|
] }),
|
|
983
|
-
footer: /* @__PURE__ */ r.jsx("div", { className: T.applicationsFooter, onClick:
|
|
984
|
-
/* @__PURE__ */ r.jsx("div", { className: T.applicationsFooterSignOutIcon, children: /* @__PURE__ */ r.jsx(
|
|
986
|
+
footer: /* @__PURE__ */ r.jsx("div", { className: T.applicationsFooter, onClick: s, children: /* @__PURE__ */ r.jsxs("div", { className: T.applicationsFooterSignOut, children: [
|
|
987
|
+
/* @__PURE__ */ r.jsx("div", { className: T.applicationsFooterSignOutIcon, children: /* @__PURE__ */ r.jsx(ne, { src: Kt, size: "medium" }) }),
|
|
985
988
|
/* @__PURE__ */ r.jsx("div", { className: T.applicationsFooterSignOutLabel, children: "Sign out" })
|
|
986
989
|
] }) }),
|
|
987
990
|
children: /* @__PURE__ */ r.jsx("div", { className: T.applicationsMain, children: /* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainContent, children: [
|
|
988
991
|
/* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainList, children: [
|
|
989
|
-
/* @__PURE__ */ r.jsx(
|
|
990
|
-
/* @__PURE__ */ r.jsx(
|
|
991
|
-
/* @__PURE__ */ r.jsx(
|
|
992
|
+
/* @__PURE__ */ r.jsx(P, { to: O.DASHBOARD, children: "Dashboard" }),
|
|
993
|
+
/* @__PURE__ */ r.jsx(P, { hidden: !f, to: O.SHOWROOM, children: "Presentations (Showroom)" }),
|
|
994
|
+
/* @__PURE__ */ r.jsx(P, { hidden: !w, to: O.SENDOUTS, children: "Sendouts" }),
|
|
992
995
|
/* @__PURE__ */ r.jsx(
|
|
993
|
-
|
|
996
|
+
P,
|
|
994
997
|
{
|
|
995
|
-
hidden: !
|
|
996
|
-
to:
|
|
998
|
+
hidden: !c,
|
|
999
|
+
to: O.MARKETING_ENGINE,
|
|
997
1000
|
children: "Media Library"
|
|
998
1001
|
}
|
|
999
1002
|
),
|
|
1000
1003
|
/* @__PURE__ */ r.jsx(
|
|
1001
|
-
|
|
1004
|
+
P,
|
|
1002
1005
|
{
|
|
1003
|
-
hidden: !S && !
|
|
1004
|
-
to:
|
|
1006
|
+
hidden: !S && !g,
|
|
1007
|
+
to: O.INSTORE_ADMIN,
|
|
1005
1008
|
children: "Stores"
|
|
1006
1009
|
}
|
|
1007
1010
|
),
|
|
1008
|
-
/* @__PURE__ */ r.jsx(
|
|
1011
|
+
/* @__PURE__ */ r.jsx(P, { hidden: !o, to: O.CMS, children: "Content Manager" }),
|
|
1009
1012
|
/* @__PURE__ */ r.jsx(
|
|
1010
|
-
|
|
1013
|
+
P,
|
|
1011
1014
|
{
|
|
1012
|
-
hidden: !
|
|
1013
|
-
to:
|
|
1015
|
+
hidden: !m,
|
|
1016
|
+
to: O.USER_MANAGEMENT,
|
|
1014
1017
|
children: "Users"
|
|
1015
1018
|
}
|
|
1016
1019
|
),
|
|
1017
1020
|
/* @__PURE__ */ r.jsx(
|
|
1018
|
-
|
|
1021
|
+
P,
|
|
1019
1022
|
{
|
|
1020
|
-
hidden: !
|
|
1021
|
-
to:
|
|
1023
|
+
hidden: !g && !x,
|
|
1024
|
+
to: O.SETTINGS,
|
|
1022
1025
|
children: "Settings"
|
|
1023
1026
|
}
|
|
1024
1027
|
),
|
|
1025
1028
|
/* @__PURE__ */ r.jsxs(
|
|
1026
|
-
|
|
1029
|
+
P,
|
|
1027
1030
|
{
|
|
1028
|
-
disabled:
|
|
1031
|
+
disabled: U,
|
|
1029
1032
|
onClick: V,
|
|
1030
|
-
hidden: !
|
|
1033
|
+
hidden: !g || !j,
|
|
1031
1034
|
to: "#",
|
|
1032
1035
|
children: [
|
|
1033
1036
|
/* @__PURE__ */ r.jsx(
|
|
1034
1037
|
"span",
|
|
1035
1038
|
{
|
|
1036
|
-
className:
|
|
1037
|
-
[T.errorAnim]:
|
|
1039
|
+
className: re({
|
|
1040
|
+
[T.errorAnim]: D
|
|
1038
1041
|
}),
|
|
1039
1042
|
children: "Subscription"
|
|
1040
1043
|
}
|
|
1041
1044
|
),
|
|
1042
|
-
|
|
1045
|
+
U ? /* @__PURE__ */ r.jsx(ne, { size: "xlarge", src: Xt, alt: "Loading" }) : ""
|
|
1043
1046
|
]
|
|
1044
1047
|
}
|
|
1045
1048
|
),
|
|
1046
|
-
|
|
1049
|
+
D ? /* @__PURE__ */ r.jsx("p", { className: T.errorText, children: "Unable to access subscription page" }) : null
|
|
1047
1050
|
] }),
|
|
1048
|
-
|
|
1051
|
+
i && /* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainUser, children: [
|
|
1049
1052
|
/* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainUserName, children: [
|
|
1050
|
-
|
|
1053
|
+
i.firstName,
|
|
1051
1054
|
" ",
|
|
1052
|
-
|
|
1055
|
+
i.lastName
|
|
1053
1056
|
] }),
|
|
1054
|
-
/* @__PURE__ */ r.jsx("div", { className: T.applicationsMainUserEmail, children:
|
|
1057
|
+
/* @__PURE__ */ r.jsx("div", { className: T.applicationsMainUserEmail, children: i.email })
|
|
1055
1058
|
] })
|
|
1056
1059
|
] }) })
|
|
1057
1060
|
}
|
|
1058
1061
|
);
|
|
1059
1062
|
}
|
|
1060
|
-
const jn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.00170906%207L13.0017%207M6.50171%2013.5L6.50171%200.5'%20stroke='%232D2D33'/%3e%3c/svg%3e", An = "data:image/svg+xml,%3csvg%20width='22'%20height='14'%20viewBox='0%200%2022%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.6001%207.00039L8.0001%2013.4004M1.6001%207.00039L8.0001%200.600391M1.6001%207.00039L21.6001%207.00039'%20stroke='%23262626'/%3e%3c/svg%3e", Pn = "_tenant-button_1m8mx_1", On = "_active_1m8mx_15",
|
|
1063
|
+
const jn = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.00170906%207L13.0017%207M6.50171%2013.5L6.50171%200.5'%20stroke='%232D2D33'/%3e%3c/svg%3e", An = "data:image/svg+xml,%3csvg%20width='22'%20height='14'%20viewBox='0%200%2022%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.6001%207.00039L8.0001%2013.4004M1.6001%207.00039L8.0001%200.600391M1.6001%207.00039L21.6001%207.00039'%20stroke='%23262626'/%3e%3c/svg%3e", Pn = "_tenant-button_1m8mx_1", On = "_active_1m8mx_15", et = {
|
|
1061
1064
|
tenantButton: Pn,
|
|
1062
1065
|
active: On
|
|
1063
1066
|
};
|
|
1064
|
-
function Dn({ tenant:
|
|
1067
|
+
function Dn({ tenant: i }) {
|
|
1065
1068
|
const {
|
|
1066
|
-
viewState: { selectedTenantId:
|
|
1067
|
-
updateViewState:
|
|
1068
|
-
} = q(),
|
|
1069
|
+
viewState: { selectedTenantId: s },
|
|
1070
|
+
updateViewState: p
|
|
1071
|
+
} = q(), d = s === i.id;
|
|
1069
1072
|
return /* @__PURE__ */ r.jsx(
|
|
1070
|
-
|
|
1073
|
+
Se,
|
|
1071
1074
|
{
|
|
1072
1075
|
align: "left",
|
|
1073
1076
|
noBorder: !0,
|
|
1074
|
-
className:
|
|
1077
|
+
className: re([et.tenantButton, { [et.active]: d }]),
|
|
1075
1078
|
noShadow: !0,
|
|
1076
|
-
disabled:
|
|
1079
|
+
disabled: d,
|
|
1077
1080
|
onClick: () => {
|
|
1078
|
-
|
|
1079
|
-
selectedTenantId:
|
|
1080
|
-
currentPosition:
|
|
1081
|
+
p({
|
|
1082
|
+
selectedTenantId: i.id,
|
|
1083
|
+
currentPosition: F.OPEN
|
|
1081
1084
|
});
|
|
1082
1085
|
},
|
|
1083
|
-
children:
|
|
1086
|
+
children: i.label
|
|
1084
1087
|
},
|
|
1085
|
-
|
|
1088
|
+
i.id
|
|
1086
1089
|
);
|
|
1087
1090
|
}
|
|
1088
|
-
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",
|
|
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 = {
|
|
1089
1092
|
tenants: Mn,
|
|
1090
1093
|
tenantsHeader: kn,
|
|
1091
1094
|
tenantsHeaderArrowIcon: Fn,
|
|
@@ -1096,24 +1099,24 @@ const Mn = "_tenants_6vjyd_1", kn = "_tenants-header_6vjyd_7", Fn = "_tenants-he
|
|
|
1096
1099
|
tenantsFooterCreateBrandLabel: $n
|
|
1097
1100
|
};
|
|
1098
1101
|
function Wn() {
|
|
1099
|
-
const { toggleTenants:
|
|
1100
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
1101
|
-
|
|
1102
|
+
const { toggleTenants: i } = q(), { tenants: s } = Re();
|
|
1103
|
+
return /* @__PURE__ */ r.jsx("div", { className: k.tenants, children: /* @__PURE__ */ r.jsx(
|
|
1104
|
+
rt,
|
|
1102
1105
|
{
|
|
1103
1106
|
width: Wt,
|
|
1104
|
-
header: /* @__PURE__ */ r.jsx("div", { className:
|
|
1107
|
+
header: /* @__PURE__ */ r.jsx("div", { className: k.tenantsHeader, children: /* @__PURE__ */ r.jsx("div", { className: k.tenantsHeaderArrowIcon, onClick: i, children: /* @__PURE__ */ r.jsx(ne, { src: An, size: "large" }) }) }),
|
|
1105
1108
|
footer: /* @__PURE__ */ r.jsx(
|
|
1106
1109
|
"div",
|
|
1107
1110
|
{
|
|
1108
|
-
className:
|
|
1109
|
-
onClick: () => window.location.assign(
|
|
1110
|
-
children: /* @__PURE__ */ r.jsxs("div", { className:
|
|
1111
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1112
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1111
|
+
className: k.tenantsFooter,
|
|
1112
|
+
onClick: () => window.location.assign(O.CREATE_WORKSPACE),
|
|
1113
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: k.tenantsFooterCreateBrand, children: [
|
|
1114
|
+
/* @__PURE__ */ r.jsx("div", { className: k.tenantsFooterCreateBrandIcon, children: /* @__PURE__ */ r.jsx(ne, { src: jn, size: "medium" }) }),
|
|
1115
|
+
/* @__PURE__ */ r.jsx("div", { className: k.tenantsFooterCreateBrandLabel, children: "Create a brand workspace" })
|
|
1113
1116
|
] })
|
|
1114
1117
|
}
|
|
1115
1118
|
),
|
|
1116
|
-
children: /* @__PURE__ */ r.jsx("div", { className:
|
|
1119
|
+
children: /* @__PURE__ */ r.jsx("div", { className: k.tenantsMain, children: s.map((p) => /* @__PURE__ */ r.jsx(Dn, { tenant: p }, p.id)) })
|
|
1117
1120
|
}
|
|
1118
1121
|
) });
|
|
1119
1122
|
}
|
|
@@ -1126,74 +1129,83 @@ function Yn() {
|
|
|
1126
1129
|
/* @__PURE__ */ r.jsx(Wn, {})
|
|
1127
1130
|
] });
|
|
1128
1131
|
}
|
|
1129
|
-
const
|
|
1130
|
-
[
|
|
1132
|
+
const ge = { ease: "easeOut", duration: 0.3 }, Gn = {
|
|
1133
|
+
[F.HIDDEN]: {
|
|
1131
1134
|
left: -600,
|
|
1132
|
-
transition:
|
|
1135
|
+
transition: ge
|
|
1133
1136
|
},
|
|
1134
|
-
[
|
|
1137
|
+
[F.OPEN]: {
|
|
1135
1138
|
left: -300,
|
|
1136
|
-
transition:
|
|
1139
|
+
transition: ge
|
|
1137
1140
|
},
|
|
1138
|
-
[
|
|
1141
|
+
[F.EXPANDED]: { left: 0, transition: ge }
|
|
1139
1142
|
};
|
|
1140
1143
|
function zn({
|
|
1141
|
-
isOpen:
|
|
1142
|
-
portalContainer:
|
|
1143
|
-
onClose:
|
|
1144
|
+
isOpen: i,
|
|
1145
|
+
portalContainer: s = document.body,
|
|
1146
|
+
onClose: p,
|
|
1147
|
+
tenantServiceUrl: d
|
|
1144
1148
|
}) {
|
|
1145
1149
|
return (
|
|
1146
1150
|
// Using framer-motion lib to animate the navigation component on mount/unmount
|
|
1147
1151
|
// Also to prevent any api calls from being made when the navigation (Tiers component) is hidden
|
|
1148
|
-
/* @__PURE__ */ r.jsx(
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1152
|
+
/* @__PURE__ */ r.jsx(
|
|
1153
|
+
Vt,
|
|
1154
|
+
{
|
|
1155
|
+
onNavigationClose: p,
|
|
1156
|
+
isOpen: i,
|
|
1157
|
+
tenantServiceUrl: d,
|
|
1158
|
+
children: /* @__PURE__ */ r.jsx(xe.Consumer, { children: ({ viewState: { currentPosition: f } }) => Mt(
|
|
1159
|
+
/* @__PURE__ */ r.jsx(Ot, { children: f !== F.HIDDEN && /* @__PURE__ */ r.jsx(
|
|
1160
|
+
Dt.div,
|
|
1161
|
+
{
|
|
1162
|
+
className: Gt.navigation,
|
|
1163
|
+
initial: F.HIDDEN,
|
|
1164
|
+
variants: Gn,
|
|
1165
|
+
animate: f,
|
|
1166
|
+
exit: F.HIDDEN,
|
|
1167
|
+
children: /* @__PURE__ */ r.jsx(Yn, {})
|
|
1168
|
+
}
|
|
1169
|
+
) }),
|
|
1170
|
+
s
|
|
1171
|
+
) })
|
|
1172
|
+
}
|
|
1173
|
+
)
|
|
1162
1174
|
);
|
|
1163
1175
|
}
|
|
1164
1176
|
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";
|
|
1165
1177
|
function or({
|
|
1166
|
-
size:
|
|
1167
|
-
alt:
|
|
1168
|
-
src:
|
|
1169
|
-
portalContainer:
|
|
1170
|
-
...
|
|
1178
|
+
size: i = "medium",
|
|
1179
|
+
alt: s = "Toggle navigation menu",
|
|
1180
|
+
src: p = Kn,
|
|
1181
|
+
portalContainer: d = document.body,
|
|
1182
|
+
...f
|
|
1171
1183
|
}) {
|
|
1172
|
-
const [
|
|
1184
|
+
const [c, w] = Bt(!1);
|
|
1173
1185
|
return /* @__PURE__ */ r.jsxs(Pt, { children: [
|
|
1174
1186
|
/* @__PURE__ */ r.jsx(
|
|
1175
1187
|
Ft,
|
|
1176
1188
|
{
|
|
1177
|
-
size:
|
|
1178
|
-
alt:
|
|
1179
|
-
src:
|
|
1180
|
-
onClick: () =>
|
|
1181
|
-
...
|
|
1189
|
+
size: i,
|
|
1190
|
+
alt: s,
|
|
1191
|
+
src: p,
|
|
1192
|
+
onClick: () => w(),
|
|
1193
|
+
...f
|
|
1182
1194
|
}
|
|
1183
1195
|
),
|
|
1184
1196
|
/* @__PURE__ */ r.jsx(
|
|
1185
1197
|
zn,
|
|
1186
1198
|
{
|
|
1187
|
-
isOpen:
|
|
1188
|
-
portalContainer:
|
|
1189
|
-
onClose: () =>
|
|
1199
|
+
isOpen: c,
|
|
1200
|
+
portalContainer: d,
|
|
1201
|
+
onClose: () => w()
|
|
1190
1202
|
}
|
|
1191
1203
|
)
|
|
1192
1204
|
] });
|
|
1193
1205
|
}
|
|
1194
1206
|
export {
|
|
1195
1207
|
qt as APPLICATIONS_TIER_WIDTH,
|
|
1196
|
-
|
|
1208
|
+
O as AppPaths,
|
|
1197
1209
|
zn as Navigation,
|
|
1198
1210
|
or as NavigationButton,
|
|
1199
1211
|
Wt as TENANTS_TIER_WIDTH
|