@touchtech/web-navigation-menu 0.0.18-alpha.0 → 0.0.18-alpha.1
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/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +311 -320
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import we, { useContext as K, useState as ce, useEffect as ge, useMemo as
|
|
2
|
-
import { AnimatePresence as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { AuthContext as et, userHasTenantAccess as k, Privileges as
|
|
5
|
-
import { TenantIdContext as
|
|
1
|
+
import we, { useContext as K, useState as ce, useEffect as ge, useMemo as y, useCallback as z, Fragment as Pt } from "react";
|
|
2
|
+
import { AnimatePresence as Ot, motion as Dt } from "framer-motion";
|
|
3
|
+
import { createPortal as Mt } from "react-dom";
|
|
4
|
+
import { AuthContext as et, userHasTenantAccess as k, Privileges as W } from "@touchtech/web-auth";
|
|
5
|
+
import { TenantIdContext as be } from "@touchtech/web-tenant-id-provider";
|
|
6
6
|
import ne from "classcat";
|
|
7
|
-
import { Image as
|
|
8
|
-
import { useApi as tt
|
|
9
|
-
import
|
|
10
|
-
import { matchPath as
|
|
11
|
-
import { useToggle as
|
|
7
|
+
import { Image as kt, Button as Te, Icon as te, IconButton as Ft } from "@touchtech/baselayer-ui";
|
|
8
|
+
import { useApi as tt } from "@touchtech/web-api-client";
|
|
9
|
+
import Lt from "swr";
|
|
10
|
+
import { matchPath as Ut } from "react-router-dom";
|
|
11
|
+
import { useToggle as Bt } from "@touchtech/web-hooks";
|
|
12
12
|
var Ee = { exports: {} }, Z = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
@@ -20,16 +20,16 @@ var Ee = { exports: {} }, Z = {};
|
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
22
|
var Xe;
|
|
23
|
-
function
|
|
23
|
+
function Ht() {
|
|
24
24
|
if (Xe) return Z;
|
|
25
25
|
Xe = 1;
|
|
26
|
-
var
|
|
27
|
-
function o(
|
|
28
|
-
var m, S = {}, R = null,
|
|
29
|
-
x !== void 0 && (R = "" + x), _.key !== void 0 && (R = "" + _.key), _.ref !== void 0 && (
|
|
26
|
+
var s = we, i = Symbol.for("react.element"), f = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, c = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
|
+
function o(b, _, x) {
|
|
28
|
+
var m, S = {}, R = null, j = null;
|
|
29
|
+
x !== void 0 && (R = "" + x), _.key !== void 0 && (R = "" + _.key), _.ref !== void 0 && (j = _.ref);
|
|
30
30
|
for (m in _) l.call(_, m) && !h.hasOwnProperty(m) && (S[m] = _[m]);
|
|
31
|
-
if (
|
|
32
|
-
return { $$typeof: i, type:
|
|
31
|
+
if (b && b.defaultProps) for (m in _ = b.defaultProps, _) S[m] === void 0 && (S[m] = _[m]);
|
|
32
|
+
return { $$typeof: i, type: b, key: R, ref: j, props: S, _owner: c.current };
|
|
33
33
|
}
|
|
34
34
|
return Z.Fragment = f, Z.jsx = o, Z.jsxs = o, Z;
|
|
35
35
|
}
|
|
@@ -46,24 +46,24 @@ var Q = {};
|
|
|
46
46
|
var Je;
|
|
47
47
|
function $t() {
|
|
48
48
|
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var
|
|
49
|
+
var s = we, i = Symbol.for("react.element"), f = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), b = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), M = Symbol.iterator, U = "@@iterator";
|
|
50
50
|
function B(e) {
|
|
51
51
|
if (e === null || typeof e != "object")
|
|
52
52
|
return null;
|
|
53
53
|
var t = M && e[M] || e[U];
|
|
54
54
|
return typeof t == "function" ? t : null;
|
|
55
55
|
}
|
|
56
|
-
var N =
|
|
56
|
+
var N = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
57
|
function E(e) {
|
|
58
58
|
{
|
|
59
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0),
|
|
60
|
-
n[
|
|
61
|
-
|
|
59
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
60
|
+
n[a - 1] = arguments[a];
|
|
61
|
+
V("error", e, n);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function V(e, t, n) {
|
|
65
65
|
{
|
|
66
|
-
var
|
|
66
|
+
var a = N.ReactDebugCurrentFrame, p = a.getStackAddendum();
|
|
67
67
|
p !== "" && (t += "%s", n = n.concat([p]));
|
|
68
68
|
var v = n.map(function(d) {
|
|
69
69
|
return String(d);
|
|
@@ -71,19 +71,19 @@ function $t() {
|
|
|
71
71
|
v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
var X = !1,
|
|
74
|
+
var X = !1, A = !1, le = !1, rt = !1, at = !1, Re;
|
|
75
75
|
Re = Symbol.for("react.module.reference");
|
|
76
|
-
function
|
|
77
|
-
return !!(typeof e == "string" || typeof e == "function" || e === l || e === h ||
|
|
76
|
+
function st(e) {
|
|
77
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === h || at || e === c || e === x || e === m || rt || e === j || X || A || le || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === S || e.$$typeof === o || e.$$typeof === b || e.$$typeof === _ || // 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
81
|
e.$$typeof === Re || e.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
var
|
|
85
|
-
if (
|
|
86
|
-
return
|
|
83
|
+
function it(e, t, n) {
|
|
84
|
+
var a = e.displayName;
|
|
85
|
+
if (a)
|
|
86
|
+
return a;
|
|
87
87
|
var p = t.displayName || t.name || "";
|
|
88
88
|
return p !== "" ? n + "(" + p + ")" : n;
|
|
89
89
|
}
|
|
@@ -113,17 +113,17 @@ function $t() {
|
|
|
113
113
|
}
|
|
114
114
|
if (typeof e == "object")
|
|
115
115
|
switch (e.$$typeof) {
|
|
116
|
-
case
|
|
116
|
+
case b:
|
|
117
117
|
var t = e;
|
|
118
118
|
return Ne(t) + ".Consumer";
|
|
119
119
|
case o:
|
|
120
120
|
var n = e;
|
|
121
121
|
return Ne(n._context) + ".Provider";
|
|
122
122
|
case _:
|
|
123
|
-
return
|
|
123
|
+
return it(e, e.render, "ForwardRef");
|
|
124
124
|
case S:
|
|
125
|
-
var
|
|
126
|
-
return
|
|
125
|
+
var a = e.displayName || null;
|
|
126
|
+
return a !== null ? a : H(e.type) || "Memo";
|
|
127
127
|
case R: {
|
|
128
128
|
var p = e, v = p._payload, d = p._init;
|
|
129
129
|
try {
|
|
@@ -135,14 +135,14 @@ function $t() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
138
|
+
var $ = Object.assign, J = 0, Ce, Ie, ye, je, Ae, Pe, Oe;
|
|
139
139
|
function De() {
|
|
140
140
|
}
|
|
141
141
|
De.__reactDisabledLog = !0;
|
|
142
|
-
function
|
|
142
|
+
function ot() {
|
|
143
143
|
{
|
|
144
144
|
if (J === 0) {
|
|
145
|
-
Ce = console.log,
|
|
145
|
+
Ce = console.log, Ie = console.info, ye = console.warn, je = console.error, Ae = console.group, Pe = console.groupCollapsed, Oe = console.groupEnd;
|
|
146
146
|
var e = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
@@ -162,7 +162,7 @@ function $t() {
|
|
|
162
162
|
J++;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ct() {
|
|
166
166
|
{
|
|
167
167
|
if (J--, J === 0) {
|
|
168
168
|
var e = {
|
|
@@ -171,25 +171,25 @@ function $t() {
|
|
|
171
171
|
writable: !0
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
|
-
log:
|
|
174
|
+
log: $({}, e, {
|
|
175
175
|
value: Ce
|
|
176
176
|
}),
|
|
177
|
-
info:
|
|
178
|
-
value: Ae
|
|
179
|
-
}),
|
|
180
|
-
warn: V({}, e, {
|
|
177
|
+
info: $({}, e, {
|
|
181
178
|
value: Ie
|
|
182
179
|
}),
|
|
183
|
-
|
|
180
|
+
warn: $({}, e, {
|
|
184
181
|
value: ye
|
|
185
182
|
}),
|
|
186
|
-
|
|
187
|
-
value: Pe
|
|
188
|
-
}),
|
|
189
|
-
groupCollapsed: V({}, e, {
|
|
183
|
+
error: $({}, e, {
|
|
190
184
|
value: je
|
|
191
185
|
}),
|
|
192
|
-
|
|
186
|
+
group: $({}, e, {
|
|
187
|
+
value: Ae
|
|
188
|
+
}),
|
|
189
|
+
groupCollapsed: $({}, e, {
|
|
190
|
+
value: Pe
|
|
191
|
+
}),
|
|
192
|
+
groupEnd: $({}, e, {
|
|
193
193
|
value: Oe
|
|
194
194
|
})
|
|
195
195
|
});
|
|
@@ -204,8 +204,8 @@ function $t() {
|
|
|
204
204
|
try {
|
|
205
205
|
throw Error();
|
|
206
206
|
} catch (p) {
|
|
207
|
-
var
|
|
208
|
-
de =
|
|
207
|
+
var a = p.stack.trim().match(/\n( *(at )?)/);
|
|
208
|
+
de = a && a[1] || "";
|
|
209
209
|
}
|
|
210
210
|
return `
|
|
211
211
|
` + de + e;
|
|
@@ -213,8 +213,8 @@ function $t() {
|
|
|
213
213
|
}
|
|
214
214
|
var fe = !1, ae;
|
|
215
215
|
{
|
|
216
|
-
var
|
|
217
|
-
ae = new
|
|
216
|
+
var lt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
+
ae = new lt();
|
|
218
218
|
}
|
|
219
219
|
function Me(e, t) {
|
|
220
220
|
if (!e || fe)
|
|
@@ -224,12 +224,12 @@ function $t() {
|
|
|
224
224
|
if (n !== void 0)
|
|
225
225
|
return n;
|
|
226
226
|
}
|
|
227
|
-
var
|
|
227
|
+
var a;
|
|
228
228
|
fe = !0;
|
|
229
229
|
var p = Error.prepareStackTrace;
|
|
230
230
|
Error.prepareStackTrace = void 0;
|
|
231
231
|
var v;
|
|
232
|
-
v = ue.current, ue.current = null,
|
|
232
|
+
v = ue.current, ue.current = null, ot();
|
|
233
233
|
try {
|
|
234
234
|
if (t) {
|
|
235
235
|
var d = function() {
|
|
@@ -242,30 +242,30 @@ function $t() {
|
|
|
242
242
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
243
243
|
try {
|
|
244
244
|
Reflect.construct(d, []);
|
|
245
|
-
} catch (
|
|
246
|
-
|
|
245
|
+
} catch (P) {
|
|
246
|
+
a = P;
|
|
247
247
|
}
|
|
248
248
|
Reflect.construct(e, [], d);
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
d.call();
|
|
252
|
-
} catch (
|
|
253
|
-
|
|
252
|
+
} catch (P) {
|
|
253
|
+
a = P;
|
|
254
254
|
}
|
|
255
255
|
e.call(d.prototype);
|
|
256
256
|
}
|
|
257
257
|
} else {
|
|
258
258
|
try {
|
|
259
259
|
throw Error();
|
|
260
|
-
} catch (
|
|
261
|
-
|
|
260
|
+
} catch (P) {
|
|
261
|
+
a = P;
|
|
262
262
|
}
|
|
263
263
|
e();
|
|
264
264
|
}
|
|
265
|
-
} catch (
|
|
266
|
-
if (
|
|
267
|
-
for (var u =
|
|
268
|
-
`), C =
|
|
265
|
+
} catch (P) {
|
|
266
|
+
if (P && a && typeof P.stack == "string") {
|
|
267
|
+
for (var u = P.stack.split(`
|
|
268
|
+
`), C = a.stack.split(`
|
|
269
269
|
`), g = u.length - 1, w = C.length - 1; g >= 1 && w >= 0 && u[g] !== C[w]; )
|
|
270
270
|
w--;
|
|
271
271
|
for (; g >= 1 && w >= 0; g--, w--)
|
|
@@ -273,24 +273,24 @@ function $t() {
|
|
|
273
273
|
if (g !== 1 || w !== 1)
|
|
274
274
|
do
|
|
275
275
|
if (g--, w--, w < 0 || u[g] !== C[w]) {
|
|
276
|
-
var
|
|
276
|
+
var I = `
|
|
277
277
|
` + u[g].replace(" at new ", " at ");
|
|
278
|
-
return e.displayName &&
|
|
278
|
+
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && ae.set(e, I), I;
|
|
279
279
|
}
|
|
280
280
|
while (g >= 1 && w >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
} finally {
|
|
285
|
-
fe = !1, ue.current = v,
|
|
285
|
+
fe = !1, ue.current = v, ct(), Error.prepareStackTrace = p;
|
|
286
286
|
}
|
|
287
287
|
var G = e ? e.displayName || e.name : "", Ke = G ? re(G) : "";
|
|
288
288
|
return typeof e == "function" && ae.set(e, Ke), Ke;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function ut(e, t, n) {
|
|
291
291
|
return Me(e, !1);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function dt(e) {
|
|
294
294
|
var t = e.prototype;
|
|
295
295
|
return !!(t && t.isReactComponent);
|
|
296
296
|
}
|
|
@@ -298,7 +298,7 @@ function $t() {
|
|
|
298
298
|
if (e == null)
|
|
299
299
|
return "";
|
|
300
300
|
if (typeof e == "function")
|
|
301
|
-
return Me(e,
|
|
301
|
+
return Me(e, dt(e));
|
|
302
302
|
if (typeof e == "string")
|
|
303
303
|
return re(e);
|
|
304
304
|
switch (e) {
|
|
@@ -310,11 +310,11 @@ function $t() {
|
|
|
310
310
|
if (typeof e == "object")
|
|
311
311
|
switch (e.$$typeof) {
|
|
312
312
|
case _:
|
|
313
|
-
return
|
|
313
|
+
return ut(e.render);
|
|
314
314
|
case S:
|
|
315
315
|
return se(e.type, t, n);
|
|
316
316
|
case R: {
|
|
317
|
-
var
|
|
317
|
+
var a = e, p = a._payload, v = a._init;
|
|
318
318
|
try {
|
|
319
319
|
return se(v(p), t, n);
|
|
320
320
|
} catch {
|
|
@@ -331,7 +331,7 @@ function $t() {
|
|
|
331
331
|
} else
|
|
332
332
|
Fe.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function ft(e, t, n, a, p) {
|
|
335
335
|
{
|
|
336
336
|
var v = Function.call.bind(ie);
|
|
337
337
|
for (var d in e)
|
|
@@ -339,28 +339,28 @@ function $t() {
|
|
|
339
339
|
var u = void 0;
|
|
340
340
|
try {
|
|
341
341
|
if (typeof e[d] != "function") {
|
|
342
|
-
var C = Error((
|
|
342
|
+
var C = 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 C.name = "Invariant Violation", C;
|
|
344
344
|
}
|
|
345
|
-
u = e[d](t, d,
|
|
345
|
+
u = e[d](t, d, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
346
|
} catch (g) {
|
|
347
347
|
u = g;
|
|
348
348
|
}
|
|
349
|
-
u && !(u instanceof Error) && (oe(p), E("%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).",
|
|
349
|
+
u && !(u instanceof Error) && (oe(p), E("%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 u), oe(null)), u instanceof Error && !(u.message in ke) && (ke[u.message] = !0, oe(p), E("Failed %s type: %s", n, u.message), oe(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
var
|
|
353
|
+
var pt = Array.isArray;
|
|
354
354
|
function pe(e) {
|
|
355
|
-
return
|
|
355
|
+
return pt(e);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function vt(e) {
|
|
358
358
|
{
|
|
359
359
|
var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function _t(e) {
|
|
364
364
|
try {
|
|
365
365
|
return Le(e), !1;
|
|
366
366
|
} catch {
|
|
@@ -371,16 +371,16 @@ function $t() {
|
|
|
371
371
|
return "" + e;
|
|
372
372
|
}
|
|
373
373
|
function Ue(e) {
|
|
374
|
-
if (
|
|
375
|
-
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
374
|
+
if (_t(e))
|
|
375
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vt(e)), Le(e);
|
|
376
376
|
}
|
|
377
|
-
var Be = N.ReactCurrentOwner,
|
|
377
|
+
var Be = N.ReactCurrentOwner, mt = {
|
|
378
378
|
key: !0,
|
|
379
379
|
ref: !0,
|
|
380
380
|
__self: !0,
|
|
381
381
|
__source: !0
|
|
382
|
-
}, He,
|
|
383
|
-
function
|
|
382
|
+
}, He, $e;
|
|
383
|
+
function ht(e) {
|
|
384
384
|
if (ie.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 gt(e) {
|
|
392
392
|
if (ie.call(e, "key")) {
|
|
393
393
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
394
394
|
if (t && t.isReactWarning)
|
|
@@ -396,10 +396,10 @@ function $t() {
|
|
|
396
396
|
}
|
|
397
397
|
return e.key !== void 0;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Et(e, t) {
|
|
400
400
|
typeof e.ref == "string" && Be.current;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function wt(e, t) {
|
|
403
403
|
{
|
|
404
404
|
var n = function() {
|
|
405
405
|
He || (He = !0, E("%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));
|
|
@@ -413,7 +413,7 @@ function $t() {
|
|
|
413
413
|
function bt(e, t) {
|
|
414
414
|
{
|
|
415
415
|
var n = function() {
|
|
416
|
-
|
|
416
|
+
$e || ($e = !0, E("%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
|
|
424
|
+
var Tt = function(e, t, n, a, p, v, d) {
|
|
425
425
|
var u = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: i,
|
|
@@ -442,7 +442,7 @@ function $t() {
|
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
445
|
+
value: a
|
|
446
446
|
}), Object.defineProperty(u, "_source", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
@@ -450,12 +450,12 @@ function $t() {
|
|
|
450
450
|
value: p
|
|
451
451
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function St(e, t, n, a, p) {
|
|
454
454
|
{
|
|
455
455
|
var v, d = {}, u = null, C = null;
|
|
456
|
-
n !== void 0 && (Ue(n), u = "" + n),
|
|
456
|
+
n !== void 0 && (Ue(n), u = "" + n), gt(t) && (Ue(t.key), u = "" + t.key), ht(t) && (C = t.ref, Et(t, p));
|
|
457
457
|
for (v in t)
|
|
458
|
-
ie.call(t, v) && !
|
|
458
|
+
ie.call(t, v) && !mt.hasOwnProperty(v) && (d[v] = t[v]);
|
|
459
459
|
if (e && e.defaultProps) {
|
|
460
460
|
var g = e.defaultProps;
|
|
461
461
|
for (v in g)
|
|
@@ -463,25 +463,25 @@ function $t() {
|
|
|
463
463
|
}
|
|
464
464
|
if (u || C) {
|
|
465
465
|
var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
466
|
-
u &&
|
|
466
|
+
u && wt(d, w), C && bt(d, w);
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return Tt(e, u, C, p, a, Be.current, d);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var ve = N.ReactCurrentOwner,
|
|
471
|
+
var ve = N.ReactCurrentOwner, We = N.ReactDebugCurrentFrame;
|
|
472
472
|
function Y(e) {
|
|
473
473
|
if (e) {
|
|
474
474
|
var t = e._owner, n = se(e.type, e._source, t ? t.type : null);
|
|
475
|
-
|
|
475
|
+
We.setExtraStackFrame(n);
|
|
476
476
|
} else
|
|
477
|
-
|
|
477
|
+
We.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
479
479
|
var _e;
|
|
480
480
|
_e = !1;
|
|
481
481
|
function me(e) {
|
|
482
482
|
return typeof e == "object" && e !== null && e.$$typeof === i;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function qe() {
|
|
485
485
|
{
|
|
486
486
|
if (ve.current) {
|
|
487
487
|
var e = H(ve.current.type);
|
|
@@ -493,13 +493,13 @@ Check the render method of \`` + e + "`.";
|
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function xt(e) {
|
|
497
497
|
return "";
|
|
498
498
|
}
|
|
499
|
-
var
|
|
500
|
-
function
|
|
499
|
+
var Ve = {};
|
|
500
|
+
function Rt(e) {
|
|
501
501
|
{
|
|
502
|
-
var t =
|
|
502
|
+
var t = qe();
|
|
503
503
|
if (!t) {
|
|
504
504
|
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
505
505
|
n && (t = `
|
|
@@ -514,12 +514,12 @@ Check the top-level render call using <` + n + ">.");
|
|
|
514
514
|
if (!e._store || e._store.validated || e.key != null)
|
|
515
515
|
return;
|
|
516
516
|
e._store.validated = !0;
|
|
517
|
-
var n =
|
|
518
|
-
if (
|
|
517
|
+
var n = Rt(t);
|
|
518
|
+
if (Ve[n])
|
|
519
519
|
return;
|
|
520
|
-
|
|
521
|
-
var
|
|
522
|
-
e && e._owner && e._owner !== ve.current && (
|
|
520
|
+
Ve[n] = !0;
|
|
521
|
+
var a = "";
|
|
522
|
+
e && e._owner && e._owner !== ve.current && (a = " It was passed a child from " + H(e._owner.type) + "."), Y(e), E('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), Y(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function Ge(e, t) {
|
|
@@ -528,8 +528,8 @@ Check the top-level render call using <` + n + ">.");
|
|
|
528
528
|
return;
|
|
529
529
|
if (pe(e))
|
|
530
530
|
for (var n = 0; n < e.length; n++) {
|
|
531
|
-
var
|
|
532
|
-
me(
|
|
531
|
+
var a = e[n];
|
|
532
|
+
me(a) && Ye(a, t);
|
|
533
533
|
}
|
|
534
534
|
else if (me(e))
|
|
535
535
|
e._store && (e._store.validated = !0);
|
|
@@ -541,7 +541,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Nt(e) {
|
|
545
545
|
{
|
|
546
546
|
var t = e.type;
|
|
547
547
|
if (t == null || typeof t == "string")
|
|
@@ -556,8 +556,8 @@ Check the top-level render call using <` + n + ">.");
|
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
558
|
if (n) {
|
|
559
|
-
var
|
|
560
|
-
|
|
559
|
+
var a = H(t);
|
|
560
|
+
ft(n, e.props, "prop", a, e);
|
|
561
561
|
} else if (t.PropTypes !== void 0 && !_e) {
|
|
562
562
|
_e = !0;
|
|
563
563
|
var p = H(t);
|
|
@@ -566,46 +566,46 @@ Check the top-level render call using <` + n + ">.");
|
|
|
566
566
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Ct(e) {
|
|
570
570
|
{
|
|
571
571
|
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
574
|
-
Y(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
572
|
+
var a = t[n];
|
|
573
|
+
if (a !== "children" && a !== "key") {
|
|
574
|
+
Y(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), Y(null);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
e.ref !== null && (Y(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function ze(e, t, n,
|
|
581
|
+
function ze(e, t, n, a, p, v) {
|
|
582
582
|
{
|
|
583
|
-
var d =
|
|
583
|
+
var d = st(e);
|
|
584
584
|
if (!d) {
|
|
585
585
|
var u = "";
|
|
586
586
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " 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 C =
|
|
588
|
-
C ? u += C : u +=
|
|
587
|
+
var C = xt();
|
|
588
|
+
C ? u += C : u += qe();
|
|
589
589
|
var g;
|
|
590
590
|
e === null ? g = "null" : pe(e) ? g = "array" : e !== void 0 && e.$$typeof === i ? (g = "<" + (H(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, u);
|
|
591
591
|
}
|
|
592
|
-
var w =
|
|
592
|
+
var w = St(e, t, n, p, v);
|
|
593
593
|
if (w == null)
|
|
594
594
|
return w;
|
|
595
595
|
if (d) {
|
|
596
|
-
var
|
|
597
|
-
if (
|
|
598
|
-
if (
|
|
599
|
-
if (pe(
|
|
600
|
-
for (var G = 0; G <
|
|
601
|
-
Ge(
|
|
602
|
-
Object.freeze && Object.freeze(
|
|
596
|
+
var I = t.children;
|
|
597
|
+
if (I !== void 0)
|
|
598
|
+
if (a)
|
|
599
|
+
if (pe(I)) {
|
|
600
|
+
for (var G = 0; G < I.length; G++)
|
|
601
|
+
Ge(I[G], e);
|
|
602
|
+
Object.freeze && Object.freeze(I);
|
|
603
603
|
} else
|
|
604
604
|
E("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
|
-
Ge(
|
|
606
|
+
Ge(I, e);
|
|
607
607
|
}
|
|
608
|
-
return e === l ?
|
|
608
|
+
return e === l ? Ct(w) : Nt(w), w;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
function It(e, t, n) {
|
|
@@ -614,11 +614,11 @@ Check the top-level render call using <` + n + ">.");
|
|
|
614
614
|
function yt(e, t, n) {
|
|
615
615
|
return ze(e, t, n, !1);
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
Q.Fragment = l, Q.jsx =
|
|
617
|
+
var jt = yt, At = It;
|
|
618
|
+
Q.Fragment = l, Q.jsx = jt, Q.jsxs = At;
|
|
619
619
|
}()), Q;
|
|
620
620
|
}
|
|
621
|
-
process.env.NODE_ENV === "production" ? Ee.exports =
|
|
621
|
+
process.env.NODE_ENV === "production" ? Ee.exports = Ht() : Ee.exports = $t();
|
|
622
622
|
var r = Ee.exports;
|
|
623
623
|
const D = {
|
|
624
624
|
SHOWROOM: "/showroom",
|
|
@@ -635,103 +635,103 @@ const D = {
|
|
|
635
635
|
SUPERADMIN: "/superadmin",
|
|
636
636
|
CMS: "/cms"
|
|
637
637
|
}, Wt = 300, qt = 300;
|
|
638
|
-
var L = /* @__PURE__ */ ((
|
|
638
|
+
var L = /* @__PURE__ */ ((s) => (s.OPEN = "OPEN", s.HIDDEN = "HIDDEN", s.EXPANDED = "EXPANDED", s))(L || {});
|
|
639
639
|
const Se = we.createContext(
|
|
640
640
|
{}
|
|
641
641
|
);
|
|
642
|
-
function
|
|
642
|
+
function q() {
|
|
643
643
|
return K(Se);
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
children:
|
|
645
|
+
function Vt({
|
|
646
|
+
children: s,
|
|
647
647
|
isOpen: i,
|
|
648
648
|
onNavigationClose: f = () => {
|
|
649
649
|
}
|
|
650
650
|
}) {
|
|
651
|
-
const [l] = K(
|
|
651
|
+
const [l] = K(be), [c, h] = ce({
|
|
652
652
|
selectedTenantId: l,
|
|
653
653
|
currentPosition: "HIDDEN"
|
|
654
654
|
/* HIDDEN */
|
|
655
|
-
}), { user: o, authService:
|
|
655
|
+
}), { user: o, authService: b, canSignOut: _ } = K(et);
|
|
656
656
|
ge(() => {
|
|
657
657
|
if (i) {
|
|
658
|
-
h((
|
|
659
|
-
...
|
|
658
|
+
h((A) => ({
|
|
659
|
+
...A,
|
|
660
660
|
selectedTenantId: l,
|
|
661
661
|
currentPosition: "OPEN"
|
|
662
662
|
/* OPEN */
|
|
663
663
|
}));
|
|
664
664
|
return;
|
|
665
665
|
}
|
|
666
|
-
h((
|
|
667
|
-
...
|
|
666
|
+
h((A) => ({
|
|
667
|
+
...A,
|
|
668
668
|
currentPosition: "HIDDEN"
|
|
669
669
|
/* HIDDEN */
|
|
670
670
|
}));
|
|
671
671
|
}, [l, i, h]), ge(() => {
|
|
672
|
-
i &&
|
|
673
|
-
}, [
|
|
674
|
-
const x =
|
|
672
|
+
i && b.refreshUser(300);
|
|
673
|
+
}, [b, i]);
|
|
674
|
+
const x = y(
|
|
675
675
|
() => o ? k(
|
|
676
676
|
o,
|
|
677
677
|
c.selectedTenantId,
|
|
678
|
-
|
|
678
|
+
W.MARKETING_ENGINE_APP
|
|
679
679
|
) : !1,
|
|
680
680
|
[c.selectedTenantId, o]
|
|
681
|
-
), m =
|
|
681
|
+
), m = y(
|
|
682
682
|
() => o ? k(
|
|
683
683
|
o,
|
|
684
684
|
c.selectedTenantId,
|
|
685
|
-
|
|
685
|
+
W.SHOWROOM_APP
|
|
686
686
|
) : !1,
|
|
687
687
|
[c.selectedTenantId, o]
|
|
688
|
-
), S =
|
|
688
|
+
), S = y(
|
|
689
689
|
() => o ? k(
|
|
690
690
|
o,
|
|
691
691
|
c.selectedTenantId,
|
|
692
|
-
|
|
692
|
+
W.SENDOUTS_APP
|
|
693
693
|
) : !1,
|
|
694
694
|
[c.selectedTenantId, o]
|
|
695
|
-
), R =
|
|
695
|
+
), R = y(
|
|
696
696
|
() => o ? k(
|
|
697
697
|
o,
|
|
698
698
|
c.selectedTenantId,
|
|
699
|
-
|
|
699
|
+
W.SENDOUTS_CMS_APP
|
|
700
700
|
) : !1,
|
|
701
701
|
[c.selectedTenantId, o]
|
|
702
|
-
),
|
|
702
|
+
), j = y(
|
|
703
703
|
() => o ? k(
|
|
704
704
|
o,
|
|
705
705
|
c.selectedTenantId,
|
|
706
|
-
|
|
706
|
+
W.USER_MANAGEMENT_APP
|
|
707
707
|
) : !1,
|
|
708
708
|
[c.selectedTenantId, o]
|
|
709
|
-
), M =
|
|
709
|
+
), M = y(
|
|
710
710
|
() => o ? k(
|
|
711
711
|
o,
|
|
712
712
|
c.selectedTenantId,
|
|
713
|
-
|
|
713
|
+
W.UNIVERSAL
|
|
714
714
|
) : !1,
|
|
715
715
|
[c.selectedTenantId, o]
|
|
716
|
-
), U =
|
|
716
|
+
), U = y(
|
|
717
717
|
() => o ? k(o, c.selectedTenantId, "settings-app") : !1,
|
|
718
718
|
[c.selectedTenantId, o]
|
|
719
|
-
), B =
|
|
719
|
+
), B = y(
|
|
720
720
|
() => o ? k(
|
|
721
721
|
o,
|
|
722
722
|
c.selectedTenantId,
|
|
723
|
-
|
|
723
|
+
W.INSTORE_ADMIN_APP
|
|
724
724
|
) : !1,
|
|
725
725
|
[c.selectedTenantId, o]
|
|
726
726
|
), N = z(
|
|
727
|
-
(
|
|
727
|
+
(A) => h((le) => ({
|
|
728
728
|
...le,
|
|
729
|
-
...
|
|
729
|
+
...A
|
|
730
730
|
})),
|
|
731
731
|
[]
|
|
732
732
|
), E = z(async () => {
|
|
733
|
-
_ && await
|
|
734
|
-
}, [
|
|
733
|
+
_ && await b.signOut();
|
|
734
|
+
}, [b, _]), V = z(() => {
|
|
735
735
|
if (c.currentPosition === "OPEN") {
|
|
736
736
|
N({
|
|
737
737
|
currentPosition: "EXPANDED",
|
|
@@ -746,20 +746,20 @@ function Yt({
|
|
|
746
746
|
});
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
|
-
}, [l, N, c.currentPosition]), X =
|
|
749
|
+
}, [l, N, c.currentPosition]), X = y(
|
|
750
750
|
() => ({
|
|
751
751
|
hasMarketingEngineAccess: x,
|
|
752
752
|
hasShowroomAccess: m,
|
|
753
753
|
hasSendoutsAccess: S,
|
|
754
754
|
hasCmsAccess: R,
|
|
755
|
-
hasUserManagementAccess:
|
|
755
|
+
hasUserManagementAccess: j,
|
|
756
756
|
hasUniversalAccess: M,
|
|
757
757
|
hasSettingsAccess: U,
|
|
758
758
|
hasInstoreAccess: B,
|
|
759
759
|
viewState: c,
|
|
760
760
|
updateViewState: N,
|
|
761
761
|
signOut: E,
|
|
762
|
-
toggleTenants:
|
|
762
|
+
toggleTenants: V,
|
|
763
763
|
onNavigationClose: f
|
|
764
764
|
}),
|
|
765
765
|
[
|
|
@@ -767,90 +767,81 @@ function Yt({
|
|
|
767
767
|
S,
|
|
768
768
|
R,
|
|
769
769
|
m,
|
|
770
|
-
|
|
770
|
+
j,
|
|
771
771
|
M,
|
|
772
772
|
U,
|
|
773
773
|
B,
|
|
774
774
|
c,
|
|
775
775
|
N,
|
|
776
776
|
E,
|
|
777
|
-
|
|
777
|
+
V,
|
|
778
778
|
f
|
|
779
779
|
]
|
|
780
780
|
);
|
|
781
|
-
return /* @__PURE__ */ r.jsx(Se.Provider, { value: X, children:
|
|
781
|
+
return /* @__PURE__ */ r.jsx(Se.Provider, { value: X, children: s });
|
|
782
782
|
}
|
|
783
|
-
const
|
|
784
|
-
navigation:
|
|
785
|
-
},
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
throw new Error(
|
|
789
|
-
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
790
|
-
);
|
|
791
|
-
return nt(
|
|
792
|
-
a,
|
|
793
|
-
"/api/Subscriptions/create-customer-portal-session"
|
|
783
|
+
const Yt = "_navigation_1esaw_1", Gt = {
|
|
784
|
+
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 = () => {
|
|
786
|
+
throw new Error(
|
|
787
|
+
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
794
788
|
);
|
|
795
789
|
};
|
|
796
|
-
function
|
|
797
|
-
const
|
|
790
|
+
function Zt() {
|
|
791
|
+
const s = tt(), i = Jt(), { viewState: f } = q(), [l] = K(be);
|
|
798
792
|
return z(
|
|
799
793
|
async (h) => {
|
|
800
794
|
const o = h.replace(/^\//, "");
|
|
801
|
-
|
|
795
|
+
s.setHeader("tenant-id", f.selectedTenantId);
|
|
802
796
|
try {
|
|
803
|
-
return await
|
|
797
|
+
return await s.post(
|
|
804
798
|
i,
|
|
805
799
|
o
|
|
806
800
|
);
|
|
807
801
|
} finally {
|
|
808
|
-
l &&
|
|
802
|
+
l && s.setHeader("tenant-id", l);
|
|
809
803
|
}
|
|
810
804
|
},
|
|
811
|
-
[
|
|
805
|
+
[s, i, f, l]
|
|
812
806
|
);
|
|
813
807
|
}
|
|
814
|
-
function
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
819
|
-
);
|
|
820
|
-
return nt(a, "/api/Tenants/view");
|
|
808
|
+
function Qt() {
|
|
809
|
+
throw new Error(
|
|
810
|
+
"TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
|
|
811
|
+
);
|
|
821
812
|
}
|
|
822
813
|
function xe() {
|
|
823
|
-
const
|
|
814
|
+
const s = tt(), i = Qt(), { data: f, error: l } = Lt(i, s.get);
|
|
824
815
|
return {
|
|
825
816
|
tenants: f ?? [],
|
|
826
817
|
isLoading: !f && !l,
|
|
827
818
|
error: l
|
|
828
819
|
};
|
|
829
820
|
}
|
|
830
|
-
function
|
|
821
|
+
function en() {
|
|
831
822
|
const {
|
|
832
|
-
viewState: { selectedTenantId:
|
|
833
|
-
} =
|
|
834
|
-
return
|
|
823
|
+
viewState: { selectedTenantId: s }
|
|
824
|
+
} = q(), { tenants: i } = xe();
|
|
825
|
+
return y(() => i.find((l) => l.id === s), [i, s]);
|
|
835
826
|
}
|
|
836
|
-
function
|
|
827
|
+
function tn({ layout: s }) {
|
|
837
828
|
const {
|
|
838
829
|
viewState: { selectedTenantId: i }
|
|
839
|
-
} =
|
|
830
|
+
} = q(), { tenants: f } = xe(), l = y(
|
|
840
831
|
() => f.find((c) => c.id === i),
|
|
841
832
|
[i, f]
|
|
842
833
|
);
|
|
843
|
-
return l ? /* @__PURE__ */ r.jsx(
|
|
834
|
+
return l ? /* @__PURE__ */ r.jsx(kt, { src: l.logoUrl, layout: s }) : null;
|
|
844
835
|
}
|
|
845
|
-
const
|
|
846
|
-
tier:
|
|
847
|
-
tierHeader:
|
|
848
|
-
border:
|
|
849
|
-
tierMain:
|
|
850
|
-
tierFooter:
|
|
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", ee = {
|
|
837
|
+
tier: nn,
|
|
838
|
+
tierHeader: rn,
|
|
839
|
+
border: an,
|
|
840
|
+
tierMain: sn,
|
|
841
|
+
tierFooter: on
|
|
851
842
|
};
|
|
852
|
-
function
|
|
853
|
-
children:
|
|
843
|
+
function nt({
|
|
844
|
+
children: s,
|
|
854
845
|
header: i,
|
|
855
846
|
footer: f,
|
|
856
847
|
className: l,
|
|
@@ -868,41 +859,41 @@ function rt({
|
|
|
868
859
|
children: i
|
|
869
860
|
}
|
|
870
861
|
),
|
|
871
|
-
/* @__PURE__ */ r.jsx("div", { className: ee.tierMain, children:
|
|
862
|
+
/* @__PURE__ */ r.jsx("div", { className: ee.tierMain, children: s }),
|
|
872
863
|
!!f && /* @__PURE__ */ r.jsx("div", { className: ee.tierFooter, children: f })
|
|
873
864
|
] });
|
|
874
865
|
}
|
|
875
|
-
const
|
|
876
|
-
navigationButton:
|
|
877
|
-
active:
|
|
866
|
+
const cn = "_navigation-button_1ckcy_1", ln = "_active_1ckcy_15", Ze = {
|
|
867
|
+
navigationButton: cn,
|
|
868
|
+
active: ln
|
|
878
869
|
};
|
|
879
870
|
function O({
|
|
880
|
-
children:
|
|
871
|
+
children: s,
|
|
881
872
|
to: i,
|
|
882
873
|
hidden: f,
|
|
883
874
|
disabled: l,
|
|
884
875
|
onClick: c
|
|
885
876
|
}) {
|
|
886
|
-
const [h, o] = K(
|
|
877
|
+
const [h, o] = K(be), [b, _] = ce(!1), {
|
|
887
878
|
viewState: { selectedTenantId: x }
|
|
888
|
-
} =
|
|
879
|
+
} = q();
|
|
889
880
|
ge(() => {
|
|
890
881
|
const R = () => {
|
|
891
|
-
h !== x &&
|
|
882
|
+
h !== x && b && o(x);
|
|
892
883
|
};
|
|
893
884
|
return window.addEventListener("unload", R), () => {
|
|
894
885
|
window.removeEventListener("unload", R);
|
|
895
886
|
};
|
|
896
|
-
}, [o, h, x,
|
|
887
|
+
}, [o, h, x, b]);
|
|
897
888
|
const m = z(() => {
|
|
898
889
|
if (c) {
|
|
899
890
|
c(_);
|
|
900
891
|
return;
|
|
901
892
|
}
|
|
902
893
|
i && (_(!0), window.location.assign(i));
|
|
903
|
-
}, [i, c]), S = i ? !!
|
|
894
|
+
}, [i, c]), S = i ? !!Ut(`${i}/*`, window.location.pathname) && h === x : !1;
|
|
904
895
|
return f ? null : /* @__PURE__ */ r.jsx(
|
|
905
|
-
|
|
896
|
+
Te,
|
|
906
897
|
{
|
|
907
898
|
align: "left",
|
|
908
899
|
noBorder: !0,
|
|
@@ -910,49 +901,49 @@ function O({
|
|
|
910
901
|
noShadow: !0,
|
|
911
902
|
disabled: S || l,
|
|
912
903
|
onClick: m,
|
|
913
|
-
children:
|
|
904
|
+
children: s
|
|
914
905
|
}
|
|
915
906
|
);
|
|
916
907
|
}
|
|
917
|
-
const
|
|
918
|
-
applications:
|
|
919
|
-
applicationsHeader:
|
|
920
|
-
applicationsHeaderBrand:
|
|
921
|
-
applicationsHeaderLogo:
|
|
922
|
-
applicationsHeaderCloseIcon:
|
|
923
|
-
applicationsHeaderChangeBrandButton:
|
|
924
|
-
applicationsMain:
|
|
925
|
-
applicationsMainContent:
|
|
926
|
-
applicationsMainList:
|
|
927
|
-
applicationsMainUser:
|
|
928
|
-
applicationsMainUserName:
|
|
908
|
+
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", hn = "_applications-main-content_1pwbq_51", gn = "_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 = {
|
|
909
|
+
applications: un,
|
|
910
|
+
applicationsHeader: dn,
|
|
911
|
+
applicationsHeaderBrand: fn,
|
|
912
|
+
applicationsHeaderLogo: pn,
|
|
913
|
+
applicationsHeaderCloseIcon: vn,
|
|
914
|
+
applicationsHeaderChangeBrandButton: _n,
|
|
915
|
+
applicationsMain: mn,
|
|
916
|
+
applicationsMainContent: hn,
|
|
917
|
+
applicationsMainList: gn,
|
|
918
|
+
applicationsMainUser: En,
|
|
919
|
+
applicationsMainUserName: wn,
|
|
929
920
|
applicationsMainUserEmail: bn,
|
|
930
|
-
applicationsFooter:
|
|
931
|
-
applicationsFooterSignOut:
|
|
932
|
-
applicationsFooterSignOutIcon:
|
|
933
|
-
applicationsFooterSignOutLabel:
|
|
934
|
-
errorAnim:
|
|
935
|
-
errorText:
|
|
936
|
-
}, In = (
|
|
921
|
+
applicationsFooter: Tn,
|
|
922
|
+
applicationsFooterSignOut: Sn,
|
|
923
|
+
applicationsFooterSignOutIcon: xn,
|
|
924
|
+
applicationsFooterSignOutLabel: Rn,
|
|
925
|
+
errorAnim: Nn,
|
|
926
|
+
errorText: Cn
|
|
927
|
+
}, In = (s) => new Promise((i) => setTimeout(i, s));
|
|
937
928
|
function yn() {
|
|
938
|
-
const { user:
|
|
929
|
+
const { user: s } = K(et), {
|
|
939
930
|
signOut: i,
|
|
940
931
|
onNavigationClose: f,
|
|
941
932
|
toggleTenants: l,
|
|
942
933
|
hasShowroomAccess: c,
|
|
943
934
|
hasMarketingEngineAccess: h,
|
|
944
935
|
hasSendoutsAccess: o,
|
|
945
|
-
hasCmsAccess:
|
|
936
|
+
hasCmsAccess: b,
|
|
946
937
|
hasUserManagementAccess: _,
|
|
947
938
|
hasSettingsAccess: x,
|
|
948
939
|
hasUniversalAccess: m,
|
|
949
940
|
hasInstoreAccess: S
|
|
950
|
-
} =
|
|
941
|
+
} = q(), R = en(), j = R && !!R.planName, [M, U] = ce(!1), [B, N] = ce(!1), E = Zt(), V = z(
|
|
951
942
|
async (X) => {
|
|
952
943
|
try {
|
|
953
944
|
N(!0);
|
|
954
|
-
const
|
|
955
|
-
X(!0), window.location.assign(
|
|
945
|
+
const A = await E(window.location.pathname);
|
|
946
|
+
X(!0), window.location.assign(A.text);
|
|
956
947
|
} catch {
|
|
957
948
|
N(!1), U(!0), await In(2500), U(!1);
|
|
958
949
|
}
|
|
@@ -960,41 +951,41 @@ function yn() {
|
|
|
960
951
|
[N, E]
|
|
961
952
|
);
|
|
962
953
|
return /* @__PURE__ */ r.jsx(
|
|
963
|
-
|
|
954
|
+
nt,
|
|
964
955
|
{
|
|
965
|
-
className:
|
|
956
|
+
className: T.applications,
|
|
966
957
|
width: qt,
|
|
967
958
|
showHeaderBorder: !0,
|
|
968
|
-
header: /* @__PURE__ */ r.jsxs("div", { className:
|
|
969
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
970
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
959
|
+
header: /* @__PURE__ */ r.jsxs("div", { className: T.applicationsHeader, children: [
|
|
960
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.applicationsHeaderBrand, children: [
|
|
961
|
+
/* @__PURE__ */ r.jsx("div", { className: T.applicationsHeaderLogo, children: /* @__PURE__ */ r.jsx(tn, {}) }),
|
|
971
962
|
/* @__PURE__ */ r.jsx(
|
|
972
963
|
"div",
|
|
973
964
|
{
|
|
974
|
-
className:
|
|
965
|
+
className: T.applicationsHeaderCloseIcon,
|
|
975
966
|
onClick: f,
|
|
976
|
-
children: /* @__PURE__ */ r.jsx(te, { src:
|
|
967
|
+
children: /* @__PURE__ */ r.jsx(te, { src: zt, size: "large" })
|
|
977
968
|
}
|
|
978
969
|
)
|
|
979
970
|
] }),
|
|
980
971
|
/* @__PURE__ */ r.jsx(
|
|
981
|
-
|
|
972
|
+
Te,
|
|
982
973
|
{
|
|
983
974
|
align: "left",
|
|
984
975
|
noBorder: !0,
|
|
985
976
|
transparent: !0,
|
|
986
|
-
className:
|
|
977
|
+
className: T.applicationsHeaderChangeBrandButton,
|
|
987
978
|
onClick: l,
|
|
988
979
|
children: "Change brand"
|
|
989
980
|
}
|
|
990
981
|
)
|
|
991
982
|
] }),
|
|
992
|
-
footer: /* @__PURE__ */ r.jsx("div", { className:
|
|
993
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
994
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
983
|
+
footer: /* @__PURE__ */ r.jsx("div", { className: T.applicationsFooter, onClick: i, children: /* @__PURE__ */ r.jsxs("div", { className: T.applicationsFooterSignOut, children: [
|
|
984
|
+
/* @__PURE__ */ r.jsx("div", { className: T.applicationsFooterSignOutIcon, children: /* @__PURE__ */ r.jsx(te, { src: Kt, size: "medium" }) }),
|
|
985
|
+
/* @__PURE__ */ r.jsx("div", { className: T.applicationsFooterSignOutLabel, children: "Sign out" })
|
|
995
986
|
] }) }),
|
|
996
|
-
children: /* @__PURE__ */ r.jsx("div", { className:
|
|
997
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
987
|
+
children: /* @__PURE__ */ r.jsx("div", { className: T.applicationsMain, children: /* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainContent, children: [
|
|
988
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainList, children: [
|
|
998
989
|
/* @__PURE__ */ r.jsx(O, { to: D.DASHBOARD, children: "Dashboard" }),
|
|
999
990
|
/* @__PURE__ */ r.jsx(O, { hidden: !c, to: D.SHOWROOM, children: "Presentations (Showroom)" }),
|
|
1000
991
|
/* @__PURE__ */ r.jsx(O, { hidden: !o, to: D.SENDOUTS, children: "Sendouts" }),
|
|
@@ -1014,7 +1005,7 @@ function yn() {
|
|
|
1014
1005
|
children: "Stores"
|
|
1015
1006
|
}
|
|
1016
1007
|
),
|
|
1017
|
-
/* @__PURE__ */ r.jsx(O, { hidden: !
|
|
1008
|
+
/* @__PURE__ */ r.jsx(O, { hidden: !b, to: D.CMS, children: "Content Manager" }),
|
|
1018
1009
|
/* @__PURE__ */ r.jsx(
|
|
1019
1010
|
O,
|
|
1020
1011
|
{
|
|
@@ -1035,48 +1026,48 @@ function yn() {
|
|
|
1035
1026
|
O,
|
|
1036
1027
|
{
|
|
1037
1028
|
disabled: B,
|
|
1038
|
-
onClick:
|
|
1039
|
-
hidden: !m || !
|
|
1029
|
+
onClick: V,
|
|
1030
|
+
hidden: !m || !j,
|
|
1040
1031
|
to: "#",
|
|
1041
1032
|
children: [
|
|
1042
1033
|
/* @__PURE__ */ r.jsx(
|
|
1043
1034
|
"span",
|
|
1044
1035
|
{
|
|
1045
1036
|
className: ne({
|
|
1046
|
-
[
|
|
1037
|
+
[T.errorAnim]: M
|
|
1047
1038
|
}),
|
|
1048
1039
|
children: "Subscription"
|
|
1049
1040
|
}
|
|
1050
1041
|
),
|
|
1051
|
-
B ? /* @__PURE__ */ r.jsx(te, { size: "xlarge", src:
|
|
1042
|
+
B ? /* @__PURE__ */ r.jsx(te, { size: "xlarge", src: Xt, alt: "Loading" }) : ""
|
|
1052
1043
|
]
|
|
1053
1044
|
}
|
|
1054
1045
|
),
|
|
1055
|
-
M ? /* @__PURE__ */ r.jsx("p", { className:
|
|
1046
|
+
M ? /* @__PURE__ */ r.jsx("p", { className: T.errorText, children: "Unable to access subscription page" }) : null
|
|
1056
1047
|
] }),
|
|
1057
|
-
|
|
1058
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1059
|
-
|
|
1048
|
+
s && /* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainUser, children: [
|
|
1049
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.applicationsMainUserName, children: [
|
|
1050
|
+
s.firstName,
|
|
1060
1051
|
" ",
|
|
1061
|
-
|
|
1052
|
+
s.lastName
|
|
1062
1053
|
] }),
|
|
1063
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1054
|
+
/* @__PURE__ */ r.jsx("div", { className: T.applicationsMainUserEmail, children: s.email })
|
|
1064
1055
|
] })
|
|
1065
1056
|
] }) })
|
|
1066
1057
|
}
|
|
1067
1058
|
);
|
|
1068
1059
|
}
|
|
1069
|
-
const
|
|
1070
|
-
tenantButton:
|
|
1071
|
-
active:
|
|
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", Qe = {
|
|
1061
|
+
tenantButton: Pn,
|
|
1062
|
+
active: On
|
|
1072
1063
|
};
|
|
1073
|
-
function
|
|
1064
|
+
function Dn({ tenant: s }) {
|
|
1074
1065
|
const {
|
|
1075
1066
|
viewState: { selectedTenantId: i },
|
|
1076
1067
|
updateViewState: f
|
|
1077
|
-
} =
|
|
1068
|
+
} = q(), l = i === s.id;
|
|
1078
1069
|
return /* @__PURE__ */ r.jsx(
|
|
1079
|
-
|
|
1070
|
+
Te,
|
|
1080
1071
|
{
|
|
1081
1072
|
align: "left",
|
|
1082
1073
|
noBorder: !0,
|
|
@@ -1085,57 +1076,57 @@ function Mn({ tenant: a }) {
|
|
|
1085
1076
|
disabled: l,
|
|
1086
1077
|
onClick: () => {
|
|
1087
1078
|
f({
|
|
1088
|
-
selectedTenantId:
|
|
1079
|
+
selectedTenantId: s.id,
|
|
1089
1080
|
currentPosition: L.OPEN
|
|
1090
1081
|
});
|
|
1091
1082
|
},
|
|
1092
|
-
children:
|
|
1083
|
+
children: s.label
|
|
1093
1084
|
},
|
|
1094
|
-
|
|
1085
|
+
s.id
|
|
1095
1086
|
);
|
|
1096
1087
|
}
|
|
1097
|
-
const
|
|
1098
|
-
tenants:
|
|
1099
|
-
tenantsHeader:
|
|
1100
|
-
tenantsHeaderArrowIcon:
|
|
1101
|
-
tenantsMain:
|
|
1102
|
-
tenantsFooter:
|
|
1103
|
-
tenantsFooterCreateBrand:
|
|
1104
|
-
tenantsFooterCreateBrandIcon:
|
|
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", F = {
|
|
1089
|
+
tenants: Mn,
|
|
1090
|
+
tenantsHeader: kn,
|
|
1091
|
+
tenantsHeaderArrowIcon: Fn,
|
|
1092
|
+
tenantsMain: Ln,
|
|
1093
|
+
tenantsFooter: Un,
|
|
1094
|
+
tenantsFooterCreateBrand: Bn,
|
|
1095
|
+
tenantsFooterCreateBrandIcon: Hn,
|
|
1105
1096
|
tenantsFooterCreateBrandLabel: $n
|
|
1106
1097
|
};
|
|
1107
1098
|
function Wn() {
|
|
1108
|
-
const { toggleTenants:
|
|
1099
|
+
const { toggleTenants: s } = q(), { tenants: i } = xe();
|
|
1109
1100
|
return /* @__PURE__ */ r.jsx("div", { className: F.tenants, children: /* @__PURE__ */ r.jsx(
|
|
1110
|
-
|
|
1101
|
+
nt,
|
|
1111
1102
|
{
|
|
1112
1103
|
width: Wt,
|
|
1113
|
-
header: /* @__PURE__ */ r.jsx("div", { className: F.tenantsHeader, children: /* @__PURE__ */ r.jsx("div", { className: F.tenantsHeaderArrowIcon, onClick:
|
|
1104
|
+
header: /* @__PURE__ */ r.jsx("div", { className: F.tenantsHeader, children: /* @__PURE__ */ r.jsx("div", { className: F.tenantsHeaderArrowIcon, onClick: s, children: /* @__PURE__ */ r.jsx(te, { src: An, size: "large" }) }) }),
|
|
1114
1105
|
footer: /* @__PURE__ */ r.jsx(
|
|
1115
1106
|
"div",
|
|
1116
1107
|
{
|
|
1117
1108
|
className: F.tenantsFooter,
|
|
1118
1109
|
onClick: () => window.location.assign(D.CREATE_WORKSPACE),
|
|
1119
1110
|
children: /* @__PURE__ */ r.jsxs("div", { className: F.tenantsFooterCreateBrand, children: [
|
|
1120
|
-
/* @__PURE__ */ r.jsx("div", { className: F.tenantsFooterCreateBrandIcon, children: /* @__PURE__ */ r.jsx(te, { src:
|
|
1111
|
+
/* @__PURE__ */ r.jsx("div", { className: F.tenantsFooterCreateBrandIcon, children: /* @__PURE__ */ r.jsx(te, { src: jn, size: "medium" }) }),
|
|
1121
1112
|
/* @__PURE__ */ r.jsx("div", { className: F.tenantsFooterCreateBrandLabel, children: "Create a brand workspace" })
|
|
1122
1113
|
] })
|
|
1123
1114
|
}
|
|
1124
1115
|
),
|
|
1125
|
-
children: /* @__PURE__ */ r.jsx("div", { className: F.tenantsMain, children: i.map((f) => /* @__PURE__ */ r.jsx(
|
|
1116
|
+
children: /* @__PURE__ */ r.jsx("div", { className: F.tenantsMain, children: i.map((f) => /* @__PURE__ */ r.jsx(Dn, { tenant: f }, f.id)) })
|
|
1126
1117
|
}
|
|
1127
1118
|
) });
|
|
1128
1119
|
}
|
|
1129
|
-
const qn = "_tiers_dtxbu_1",
|
|
1120
|
+
const qn = "_tiers_dtxbu_1", Vn = {
|
|
1130
1121
|
tiers: qn
|
|
1131
1122
|
};
|
|
1132
|
-
function
|
|
1133
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1123
|
+
function Yn() {
|
|
1124
|
+
return /* @__PURE__ */ r.jsxs("div", { className: Vn.tiers, children: [
|
|
1134
1125
|
/* @__PURE__ */ r.jsx(yn, {}),
|
|
1135
1126
|
/* @__PURE__ */ r.jsx(Wn, {})
|
|
1136
1127
|
] });
|
|
1137
1128
|
}
|
|
1138
|
-
const he = { ease: "easeOut", duration: 0.3 },
|
|
1129
|
+
const he = { ease: "easeOut", duration: 0.3 }, Gn = {
|
|
1139
1130
|
[L.HIDDEN]: {
|
|
1140
1131
|
left: -600,
|
|
1141
1132
|
transition: he
|
|
@@ -1146,44 +1137,44 @@ const he = { ease: "easeOut", duration: 0.3 }, zn = {
|
|
|
1146
1137
|
},
|
|
1147
1138
|
[L.EXPANDED]: { left: 0, transition: he }
|
|
1148
1139
|
};
|
|
1149
|
-
function
|
|
1150
|
-
isOpen:
|
|
1140
|
+
function zn({
|
|
1141
|
+
isOpen: s,
|
|
1151
1142
|
portalContainer: i = document.body,
|
|
1152
1143
|
onClose: f
|
|
1153
1144
|
}) {
|
|
1154
1145
|
return (
|
|
1155
1146
|
// Using framer-motion lib to animate the navigation component on mount/unmount
|
|
1156
1147
|
// Also to prevent any api calls from being made when the navigation (Tiers component) is hidden
|
|
1157
|
-
/* @__PURE__ */ r.jsx(
|
|
1158
|
-
/* @__PURE__ */ r.jsx(
|
|
1159
|
-
|
|
1148
|
+
/* @__PURE__ */ r.jsx(Vt, { onNavigationClose: f, isOpen: s, children: /* @__PURE__ */ r.jsx(Se.Consumer, { children: ({ viewState: { currentPosition: l } }) => Mt(
|
|
1149
|
+
/* @__PURE__ */ r.jsx(Ot, { children: l !== L.HIDDEN && /* @__PURE__ */ r.jsx(
|
|
1150
|
+
Dt.div,
|
|
1160
1151
|
{
|
|
1161
|
-
className:
|
|
1152
|
+
className: Gt.navigation,
|
|
1162
1153
|
initial: L.HIDDEN,
|
|
1163
|
-
variants:
|
|
1154
|
+
variants: Gn,
|
|
1164
1155
|
animate: l,
|
|
1165
1156
|
exit: L.HIDDEN,
|
|
1166
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1157
|
+
children: /* @__PURE__ */ r.jsx(Yn, {})
|
|
1167
1158
|
}
|
|
1168
1159
|
) }),
|
|
1169
1160
|
i
|
|
1170
1161
|
) }) })
|
|
1171
1162
|
);
|
|
1172
1163
|
}
|
|
1173
|
-
const
|
|
1174
|
-
function
|
|
1175
|
-
size:
|
|
1164
|
+
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
|
+
function or({
|
|
1166
|
+
size: s = "medium",
|
|
1176
1167
|
alt: i = "Toggle navigation menu",
|
|
1177
|
-
src: f =
|
|
1168
|
+
src: f = Kn,
|
|
1178
1169
|
portalContainer: l = document.body,
|
|
1179
1170
|
...c
|
|
1180
1171
|
}) {
|
|
1181
|
-
const [h, o] =
|
|
1182
|
-
return /* @__PURE__ */ r.jsxs(
|
|
1172
|
+
const [h, o] = Bt(!1);
|
|
1173
|
+
return /* @__PURE__ */ r.jsxs(Pt, { children: [
|
|
1183
1174
|
/* @__PURE__ */ r.jsx(
|
|
1184
|
-
|
|
1175
|
+
Ft,
|
|
1185
1176
|
{
|
|
1186
|
-
size:
|
|
1177
|
+
size: s,
|
|
1187
1178
|
alt: i,
|
|
1188
1179
|
src: f,
|
|
1189
1180
|
onClick: () => o(),
|
|
@@ -1191,7 +1182,7 @@ function cr({
|
|
|
1191
1182
|
}
|
|
1192
1183
|
),
|
|
1193
1184
|
/* @__PURE__ */ r.jsx(
|
|
1194
|
-
|
|
1185
|
+
zn,
|
|
1195
1186
|
{
|
|
1196
1187
|
isOpen: h,
|
|
1197
1188
|
portalContainer: l,
|
|
@@ -1203,8 +1194,8 @@ function cr({
|
|
|
1203
1194
|
export {
|
|
1204
1195
|
qt as APPLICATIONS_TIER_WIDTH,
|
|
1205
1196
|
D as AppPaths,
|
|
1206
|
-
|
|
1207
|
-
|
|
1197
|
+
zn as Navigation,
|
|
1198
|
+
or as NavigationButton,
|
|
1208
1199
|
Wt as TENANTS_TIER_WIDTH
|
|
1209
1200
|
};
|
|
1210
1201
|
//# sourceMappingURL=index.mjs.map
|