@touchtech/web-navigation-menu 0.0.18-alpha.4 → 0.0.18-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -23,12 +23,12 @@ var Je;
23
23
  function Ht() {
24
24
  if (Je) return Q;
25
25
  Je = 1;
26
- var o = be, s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, f = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
26
+ var o = be, s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, f = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
27
27
  function b(i, m, x) {
28
- var g, S = {}, R = null, j = null;
28
+ var h, S = {}, R = null, j = null;
29
29
  x !== void 0 && (R = "" + x), m.key !== void 0 && (R = "" + m.key), m.ref !== void 0 && (j = m.ref);
30
- for (g in m) d.call(m, g) && !c.hasOwnProperty(g) && (S[g] = m[g]);
31
- if (i && i.defaultProps) for (g in m = i.defaultProps, m) S[g] === void 0 && (S[g] = m[g]);
30
+ for (h in m) u.call(m, h) && !c.hasOwnProperty(h) && (S[h] = m[h]);
31
+ if (i && i.defaultProps) for (h in m = i.defaultProps, m) S[h] === void 0 && (S[h] = m[h]);
32
32
  return { $$typeof: s, type: i, key: R, ref: j, props: S, _owner: f.current };
33
33
  }
34
34
  return Q.Fragment = p, Q.jsx = b, Q.jsxs = b, Q;
@@ -46,7 +46,7 @@ var ee = {};
46
46
  var Ze;
47
47
  function $t() {
48
48
  return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
49
- var o = 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"), b = Symbol.for("react.provider"), i = 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";
49
+ var o = be, s = Symbol.for("react.element"), p = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), i = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), D = Symbol.iterator, L = "@@iterator";
50
50
  function U(e) {
51
51
  if (e === null || typeof e != "object")
52
52
  return null;
@@ -54,7 +54,7 @@ function $t() {
54
54
  return typeof t == "function" ? t : null;
55
55
  }
56
56
  var C = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
- function h(e) {
57
+ function g(e) {
58
58
  {
59
59
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
60
60
  n[a - 1] = arguments[a];
@@ -65,8 +65,8 @@ function $t() {
65
65
  {
66
66
  var a = C.ReactDebugCurrentFrame, v = a.getStackAddendum();
67
67
  v !== "" && (t += "%s", n = n.concat([v]));
68
- var _ = n.map(function(u) {
69
- return String(u);
68
+ var _ = n.map(function(d) {
69
+ return String(d);
70
70
  });
71
71
  _.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
72
72
  }
@@ -74,7 +74,7 @@ function $t() {
74
74
  var Y = !1, J = !1, B = !1, ue = !1, at = !1, Ne;
75
75
  Ne = Symbol.for("react.module.reference");
76
76
  function st(e) {
77
- return !!(typeof e == "string" || typeof e == "function" || e === 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 === b || e.$$typeof === i || e.$$typeof === m || // This needs to include all possible module reference object
77
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === c || at || e === f || e === x || e === h || ue || e === j || Y || J || B || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === S || e.$$typeof === b || e.$$typeof === i || e.$$typeof === m || // This needs to include all possible module reference object
78
78
  // types supported by any Flight configuration anywhere since
79
79
  // we don't know which Flight build this will end up being used
80
80
  // with.
@@ -93,12 +93,12 @@ function $t() {
93
93
  function H(e) {
94
94
  if (e == null)
95
95
  return null;
96
- if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
96
+ if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
97
97
  return e.displayName || e.name || null;
98
98
  if (typeof e == "string")
99
99
  return e;
100
100
  switch (e) {
101
- case d:
101
+ case u:
102
102
  return "Fragment";
103
103
  case p:
104
104
  return "Portal";
@@ -108,7 +108,7 @@ function $t() {
108
108
  return "StrictMode";
109
109
  case x:
110
110
  return "Suspense";
111
- case g:
111
+ case h:
112
112
  return "SuspenseList";
113
113
  }
114
114
  if (typeof e == "object")
@@ -125,9 +125,9 @@ function $t() {
125
125
  var a = e.displayName || null;
126
126
  return a !== null ? a : H(e.type) || "Memo";
127
127
  case R: {
128
- var v = e, _ = v._payload, u = v._init;
128
+ var v = e, _ = v._payload, d = v._init;
129
129
  try {
130
- return H(u(_));
130
+ return H(d(_));
131
131
  } catch {
132
132
  return null;
133
133
  }
@@ -194,7 +194,7 @@ function $t() {
194
194
  })
195
195
  });
196
196
  }
197
- Z < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ Z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
198
  }
199
199
  }
200
200
  var de = C.ReactCurrentDispatcher, fe;
@@ -232,27 +232,27 @@ function $t() {
232
232
  _ = de.current, de.current = null, ot();
233
233
  try {
234
234
  if (t) {
235
- var u = function() {
235
+ var d = function() {
236
236
  throw Error();
237
237
  };
238
- if (Object.defineProperty(u.prototype, "props", {
238
+ if (Object.defineProperty(d.prototype, "props", {
239
239
  set: function() {
240
240
  throw Error();
241
241
  }
242
242
  }), typeof Reflect == "object" && Reflect.construct) {
243
243
  try {
244
- Reflect.construct(u, []);
244
+ Reflect.construct(d, []);
245
245
  } catch (A) {
246
246
  a = A;
247
247
  }
248
- Reflect.construct(e, [], u);
248
+ Reflect.construct(e, [], d);
249
249
  } else {
250
250
  try {
251
- u.call();
251
+ d.call();
252
252
  } catch (A) {
253
253
  a = A;
254
254
  }
255
- e.call(u.prototype);
255
+ e.call(d.prototype);
256
256
  }
257
257
  } else {
258
258
  try {
@@ -304,7 +304,7 @@ function $t() {
304
304
  switch (e) {
305
305
  case x:
306
306
  return ae("Suspense");
307
- case g:
307
+ case h:
308
308
  return ae("SuspenseList");
309
309
  }
310
310
  if (typeof e == "object")
@@ -334,19 +334,19 @@ function $t() {
334
334
  function ft(e, t, n, a, v) {
335
335
  {
336
336
  var _ = Function.call.bind(oe);
337
- for (var u in e)
338
- if (_(e, u)) {
337
+ for (var d in e)
338
+ if (_(e, d)) {
339
339
  var l = void 0;
340
340
  try {
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`.");
341
+ if (typeof e[d] != "function") {
342
+ var N = Error((a || "React class") + ": " + n + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
343
  throw N.name = "Invariant Violation", N;
344
344
  }
345
- l = e[u](t, u, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ l = e[d](t, d, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
346
  } catch (E) {
347
347
  l = E;
348
348
  }
349
- l && !(l instanceof Error) && (ce(v), 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));
349
+ l && !(l instanceof Error) && (ce(v), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", n, d, typeof l), ce(null)), l instanceof Error && !(l.message in Fe) && (Fe[l.message] = !0, ce(v), g("Failed %s type: %s", n, l.message), ce(null));
350
350
  }
351
351
  }
352
352
  }
@@ -372,7 +372,7 @@ function $t() {
372
372
  }
373
373
  function Be(e) {
374
374
  if (_t(e))
375
- return 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);
375
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vt(e)), Ue(e);
376
376
  }
377
377
  var He = C.ReactCurrentOwner, mt = {
378
378
  key: !0,
@@ -380,7 +380,7 @@ function $t() {
380
380
  __self: !0,
381
381
  __source: !0
382
382
  }, $e, We;
383
- function ht(e) {
383
+ function gt(e) {
384
384
  if (oe.call(e, "ref")) {
385
385
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
386
386
  if (t && t.isReactWarning)
@@ -388,7 +388,7 @@ function $t() {
388
388
  }
389
389
  return e.ref !== void 0;
390
390
  }
391
- function gt(e) {
391
+ function ht(e) {
392
392
  if (oe.call(e, "key")) {
393
393
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
394
394
  if (t && t.isReactWarning)
@@ -402,7 +402,7 @@ function $t() {
402
402
  function wt(e, t) {
403
403
  {
404
404
  var n = function() {
405
- $e || ($e = !0, 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));
405
+ $e || ($e = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
406
406
  };
407
407
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
408
408
  get: n,
@@ -413,7 +413,7 @@ function $t() {
413
413
  function bt(e, t) {
414
414
  {
415
415
  var n = function() {
416
- We || (We = !0, 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));
416
+ We || (We = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
417
417
  };
418
418
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
419
419
  get: n,
@@ -421,7 +421,7 @@ function $t() {
421
421
  });
422
422
  }
423
423
  }
424
- var Tt = function(e, t, n, a, v, _, u) {
424
+ var Tt = function(e, t, n, a, v, _, d) {
425
425
  var l = {
426
426
  // This tag allows us to uniquely identify this as a React Element
427
427
  $$typeof: s,
@@ -429,7 +429,7 @@ function $t() {
429
429
  type: e,
430
430
  key: t,
431
431
  ref: n,
432
- props: u,
432
+ props: d,
433
433
  // Record the component responsible for creating this element.
434
434
  _owner: _
435
435
  };
@@ -452,20 +452,20 @@ function $t() {
452
452
  };
453
453
  function St(e, t, n, a, v) {
454
454
  {
455
- var _, 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));
455
+ var _, d = {}, l = null, N = null;
456
+ n !== void 0 && (Be(n), l = "" + n), ht(t) && (Be(t.key), l = "" + t.key), gt(t) && (N = t.ref, Et(t, v));
457
457
  for (_ in t)
458
- oe.call(t, _) && !mt.hasOwnProperty(_) && (u[_] = t[_]);
458
+ oe.call(t, _) && !mt.hasOwnProperty(_) && (d[_] = t[_]);
459
459
  if (e && e.defaultProps) {
460
460
  var E = e.defaultProps;
461
461
  for (_ in E)
462
- u[_] === void 0 && (u[_] = E[_]);
462
+ d[_] === void 0 && (d[_] = E[_]);
463
463
  }
464
464
  if (l || N) {
465
465
  var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
466
- l && wt(u, w), N && bt(u, w);
466
+ l && wt(d, w), N && bt(d, w);
467
467
  }
468
- return Tt(e, l, N, v, a, He.current, u);
468
+ return Tt(e, l, N, v, a, He.current, d);
469
469
  }
470
470
  }
471
471
  var _e = C.ReactCurrentOwner, qe = C.ReactDebugCurrentFrame;
@@ -478,7 +478,7 @@ function $t() {
478
478
  }
479
479
  var me;
480
480
  me = !1;
481
- function he(e) {
481
+ function ge(e) {
482
482
  return typeof e == "object" && e !== null && e.$$typeof === s;
483
483
  }
484
484
  function Ve() {
@@ -519,7 +519,7 @@ Check the top-level render call using <` + n + ">.");
519
519
  return;
520
520
  Ye[n] = !0;
521
521
  var a = "";
522
- e && e._owner && e._owner !== _e.current && (a = " It was passed a child from " + H(e._owner.type) + "."), G(e), 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);
522
+ e && e._owner && e._owner !== _e.current && (a = " It was passed a child from " + H(e._owner.type) + "."), G(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), G(null);
523
523
  }
524
524
  }
525
525
  function ze(e, t) {
@@ -529,15 +529,15 @@ Check the top-level render call using <` + n + ">.");
529
529
  if (ve(e))
530
530
  for (var n = 0; n < e.length; n++) {
531
531
  var a = e[n];
532
- he(a) && Ge(a, t);
532
+ ge(a) && Ge(a, t);
533
533
  }
534
- else if (he(e))
534
+ else if (ge(e))
535
535
  e._store && (e._store.validated = !0);
536
536
  else if (e) {
537
537
  var v = U(e);
538
538
  if (typeof v == "function" && v !== e.entries)
539
- for (var _ = v.call(e), u; !(u = _.next()).done; )
540
- he(u.value) && Ge(u.value, t);
539
+ for (var _ = v.call(e), d; !(d = _.next()).done; )
540
+ ge(d.value) && Ge(d.value, t);
541
541
  }
542
542
  }
543
543
  }
@@ -561,9 +561,9 @@ Check the top-level render call using <` + n + ">.");
561
561
  } else if (t.PropTypes !== void 0 && !me) {
562
562
  me = !0;
563
563
  var v = H(t);
564
- h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
564
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
565
565
  }
566
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
567
567
  }
568
568
  }
569
569
  function Ct(e) {
@@ -571,28 +571,28 @@ Check the top-level render call using <` + n + ">.");
571
571
  for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
572
572
  var a = t[n];
573
573
  if (a !== "children" && a !== "key") {
574
- G(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), G(null);
574
+ G(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), G(null);
575
575
  break;
576
576
  }
577
577
  }
578
- e.ref !== null && (G(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), G(null));
578
+ e.ref !== null && (G(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), G(null));
579
579
  }
580
580
  }
581
581
  function Ke(e, t, n, a, v, _) {
582
582
  {
583
- var u = st(e);
584
- if (!u) {
583
+ var d = st(e);
584
+ if (!d) {
585
585
  var l = "";
586
586
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
587
587
  var N = xt();
588
588
  N ? l += N : l += Ve();
589
589
  var E;
590
- e === null ? E = "null" : ve(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (H(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, 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);
590
+ e === null ? E = "null" : ve(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (H(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, l);
591
591
  }
592
592
  var w = St(e, t, n, v, _);
593
593
  if (w == null)
594
594
  return w;
595
- if (u) {
595
+ if (d) {
596
596
  var I = t.children;
597
597
  if (I !== void 0)
598
598
  if (a)
@@ -601,11 +601,11 @@ Check the top-level render call using <` + n + ">.");
601
601
  ze(I[z], e);
602
602
  Object.freeze && Object.freeze(I);
603
603
  } else
604
- 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.");
604
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
605
  else
606
606
  ze(I, e);
607
607
  }
608
- return e === d ? Ct(w) : Nt(w), w;
608
+ return e === u ? Ct(w) : Nt(w), w;
609
609
  }
610
610
  }
611
611
  function It(e, t, n) {
@@ -615,7 +615,7 @@ Check the top-level render call using <` + n + ">.");
615
615
  return Ke(e, t, n, !1);
616
616
  }
617
617
  var jt = yt, At = It;
618
- ee.Fragment = d, ee.jsx = jt, ee.jsxs = At;
618
+ ee.Fragment = u, ee.jsx = jt, ee.jsxs = At;
619
619
  }()), ee;
620
620
  }
621
621
  process.env.NODE_ENV === "production" ? we.exports = Ht() : we.exports = $t();
@@ -646,7 +646,7 @@ function Vt({
646
646
  children: o,
647
647
  isOpen: s,
648
648
  tenantServiceUrl: p,
649
- onNavigationClose: d = () => {
649
+ onNavigationClose: u = () => {
650
650
  }
651
651
  }) {
652
652
  const [f] = X(Te), [c, b] = le({
@@ -672,7 +672,7 @@ function Vt({
672
672
  }, [f, s, b]), Ee(() => {
673
673
  s && m.refreshUser(300);
674
674
  }, [m, s]);
675
- const g = y(
675
+ const h = y(
676
676
  () => i ? M(
677
677
  i,
678
678
  c.selectedTenantId,
@@ -724,7 +724,7 @@ function Vt({
724
724
  W.INSTORE_ADMIN_APP
725
725
  ) : !1,
726
726
  [c.selectedTenantId, i]
727
- ), h = K(
727
+ ), g = K(
728
728
  (B) => b((ue) => ({
729
729
  ...ue,
730
730
  ...B
@@ -734,22 +734,22 @@ function Vt({
734
734
  x && await m.signOut();
735
735
  }, [m, x]), Y = K(() => {
736
736
  if (c.currentPosition === "OPEN") {
737
- h({
737
+ g({
738
738
  currentPosition: "EXPANDED",
739
739
  selectedTenantId: f
740
740
  });
741
741
  return;
742
742
  }
743
743
  if (c.currentPosition === "EXPANDED") {
744
- h({
744
+ g({
745
745
  currentPosition: "OPEN"
746
746
  /* OPEN */
747
747
  });
748
748
  return;
749
749
  }
750
- }, [f, h, c.currentPosition]), J = y(
750
+ }, [f, g, c.currentPosition]), J = y(
751
751
  () => ({
752
- hasMarketingEngineAccess: g,
752
+ hasMarketingEngineAccess: h,
753
753
  hasShowroomAccess: S,
754
754
  hasSendoutsAccess: R,
755
755
  hasCmsAccess: j,
@@ -758,14 +758,14 @@ function Vt({
758
758
  hasSettingsAccess: U,
759
759
  hasInstoreAccess: C,
760
760
  viewState: c,
761
- updateViewState: h,
761
+ updateViewState: g,
762
762
  signOut: V,
763
763
  toggleTenants: Y,
764
- onNavigationClose: d,
764
+ onNavigationClose: u,
765
765
  tenantServiceUrl: p
766
766
  }),
767
767
  [
768
- g,
768
+ h,
769
769
  R,
770
770
  j,
771
771
  S,
@@ -774,10 +774,10 @@ function Vt({
774
774
  U,
775
775
  C,
776
776
  c,
777
- h,
777
+ g,
778
778
  V,
779
779
  Y,
780
- d,
780
+ u,
781
781
  p
782
782
  ]
783
783
  );
@@ -787,15 +787,15 @@ const Yt = "_navigation_1esaw_1", Gt = {
787
787
  navigation: Yt
788
788
  }, zt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.398438%200.399902L19.5984%2019.5999M0.398438%2019.5999L19.5984%200.399902'%20stroke='black'/%3e%3c/svg%3e", Kt = "data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%201.5999L10.4667%204.7999M7%201.5999L3.8%204.7999M7%201.5999L7%2011.7332M13.4%207.46657L13.4%2014.3999L0.600002%2014.3999L0.600002%207.46657'%20stroke='%232D2D33'/%3e%3c/svg%3e", Xt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2046%2046'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%20transform='matrix(1,0,0,1,-27,-27)'%3e%3cpath%20d='M73,50C73,37.3%2062.7,27%2050,27C37.3,27%2027,37.3%2027,50M30.9,50C30.9,39.5%2039.4,30.9%2050,30.9C60.6,30.9%2069.1,39.5%2069.1,50'%20style='fill-rule:nonzero;'%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20dur='1s'%20from='0%2050%2050'%20to='360%2050%2050'%20repeatCount='indefinite'%20/%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Jt = (o) => {
789
789
  throw new Error(
790
- "TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
790
+ "TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set ---------"
791
791
  );
792
792
  };
793
793
  function Zt(o) {
794
- const s = nt(), p = Jt(), { viewState: d } = q(), [f] = X(Te);
794
+ const s = nt(), p = Jt(), { viewState: u } = q(), [f] = X(Te);
795
795
  return K(
796
796
  async (b) => {
797
797
  const i = b.replace(/^\//, "");
798
- s.setHeader("tenant-id", d.selectedTenantId);
798
+ s.setHeader("tenant-id", u.selectedTenantId);
799
799
  try {
800
800
  return await s.post(
801
801
  p,
@@ -805,19 +805,19 @@ function Zt(o) {
805
805
  f && s.setHeader("tenant-id", f);
806
806
  }
807
807
  },
808
- [s, p, d, f]
808
+ [s, p, u, f]
809
809
  );
810
810
  }
811
811
  function Qt(o) {
812
812
  throw new Error(
813
- "TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set"
813
+ "TENANTS_SERVICE_URL or REACT_APP_TENANTS_SERVICE_URL must be set ++++++ "
814
814
  );
815
815
  }
816
816
  function Re(o) {
817
- const s = nt(), p = Qt(), { data: d, error: f } = Lt(p, s.get);
817
+ const s = nt(), p = Qt(), { data: u, error: f } = Lt(p, s.get);
818
818
  return {
819
- tenants: d ?? [],
820
- isLoading: !d && !f,
819
+ tenants: u ?? [],
820
+ isLoading: !u && !f,
821
821
  error: f
822
822
  };
823
823
  }
@@ -825,16 +825,16 @@ function en() {
825
825
  const {
826
826
  viewState: { selectedTenantId: o }
827
827
  } = q(), { tenants: s } = Re();
828
- return y(() => s.find((d) => d.id === o), [s, o]);
828
+ return y(() => s.find((u) => u.id === o), [s, o]);
829
829
  }
830
830
  function tn({ layout: o }) {
831
831
  const {
832
832
  viewState: { selectedTenantId: s }
833
- } = q(), { tenants: p } = Re(), d = y(
833
+ } = q(), { tenants: p } = Re(), u = y(
834
834
  () => p.find((f) => f.id === s),
835
835
  [s, p]
836
836
  );
837
- return d ? /* @__PURE__ */ r.jsx(kt, { src: d.logoUrl, layout: o }) : null;
837
+ return u ? /* @__PURE__ */ r.jsx(kt, { src: u.logoUrl, layout: o }) : null;
838
838
  }
839
839
  const nn = "_tier_1cqnw_1", rn = "_tier-header_1cqnw_12", an = "_border_1cqnw_17", sn = "_tier-main_1cqnw_21", on = "_tier-footer_1cqnw_26", te = {
840
840
  tier: nn,
@@ -847,11 +847,11 @@ function rt({
847
847
  children: o,
848
848
  header: s,
849
849
  footer: p,
850
- className: d,
850
+ className: u,
851
851
  width: f,
852
852
  showHeaderBorder: c
853
853
  }) {
854
- return /* @__PURE__ */ r.jsxs("div", { className: re([te.tier, d]), style: { width: f }, children: [
854
+ return /* @__PURE__ */ r.jsxs("div", { className: re([te.tier, u]), style: { width: f }, children: [
855
855
  !!s && /* @__PURE__ */ r.jsx(
856
856
  "div",
857
857
  {
@@ -874,7 +874,7 @@ function P({
874
874
  children: o,
875
875
  to: s,
876
876
  hidden: p,
877
- disabled: d,
877
+ disabled: u,
878
878
  onClick: f
879
879
  }) {
880
880
  const [c, b] = X(Te), [i, m] = le(!1), {
@@ -888,7 +888,7 @@ function P({
888
888
  window.removeEventListener("unload", R);
889
889
  };
890
890
  }, [b, c, x, i]);
891
- const g = K(() => {
891
+ const h = K(() => {
892
892
  if (f) {
893
893
  f(m);
894
894
  return;
@@ -902,13 +902,13 @@ function P({
902
902
  noBorder: !0,
903
903
  className: re([Qe.navigationButton, { [Qe.active]: S }]),
904
904
  noShadow: !0,
905
- disabled: S || d,
906
- onClick: g,
905
+ disabled: S || u,
906
+ onClick: h,
907
907
  children: o
908
908
  }
909
909
  );
910
910
  }
911
- const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_applications-header-brand_1pwbq_13", pn = "_applications-header-logo_1pwbq_21", vn = "_applications-header-close-icon_1pwbq_26", _n = "_applications-header-change-brand-button_1pwbq_32", mn = "_applications-main_1pwbq_47", 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 = {
911
+ const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_applications-header-brand_1pwbq_13", pn = "_applications-header-logo_1pwbq_21", vn = "_applications-header-close-icon_1pwbq_26", _n = "_applications-header-change-brand-button_1pwbq_32", mn = "_applications-main_1pwbq_47", gn = "_applications-main-content_1pwbq_51", hn = "_applications-main-list_1pwbq_58", En = "_applications-main-user_1pwbq_74", wn = "_applications-main-user-name_1pwbq_81", bn = "_applications-main-user-email_1pwbq_82", Tn = "_applications-footer_1pwbq_101", Sn = "_applications-footer-sign-out_1pwbq_109", xn = "_applications-footer-sign-out-icon_1pwbq_115", Rn = "_applications-footer-sign-out-label_1pwbq_119", Nn = "_error-anim_1pwbq_161", Cn = "_error-text_1pwbq_169", T = {
912
912
  applications: un,
913
913
  applicationsHeader: dn,
914
914
  applicationsHeaderBrand: fn,
@@ -916,8 +916,8 @@ const un = "_applications_1pwbq_1", dn = "_applications-header_1pwbq_7", fn = "_
916
916
  applicationsHeaderCloseIcon: vn,
917
917
  applicationsHeaderChangeBrandButton: _n,
918
918
  applicationsMain: mn,
919
- applicationsMainContent: hn,
920
- applicationsMainList: gn,
919
+ applicationsMainContent: gn,
920
+ applicationsMainList: hn,
921
921
  applicationsMainUser: En,
922
922
  applicationsMainUserName: wn,
923
923
  applicationsMainUserEmail: bn,
@@ -932,26 +932,26 @@ function yn() {
932
932
  const { user: o } = X(tt), {
933
933
  signOut: s,
934
934
  onNavigationClose: p,
935
- toggleTenants: d,
935
+ toggleTenants: u,
936
936
  hasShowroomAccess: f,
937
937
  hasMarketingEngineAccess: c,
938
938
  hasSendoutsAccess: b,
939
939
  hasCmsAccess: i,
940
940
  hasUserManagementAccess: m,
941
941
  hasSettingsAccess: x,
942
- hasUniversalAccess: g,
942
+ hasUniversalAccess: h,
943
943
  hasInstoreAccess: S
944
- } = q(), R = en(), j = R && !!R.planName, [D, L] = le(!1), [U, C] = le(!1), h = Zt(), V = K(
944
+ } = q(), R = en(), j = R && !!R.planName, [D, L] = le(!1), [U, C] = le(!1), g = Zt(), V = K(
945
945
  async (Y) => {
946
946
  try {
947
947
  C(!0);
948
- const J = await h(window.location.pathname);
948
+ const J = await g(window.location.pathname);
949
949
  Y(!0), window.location.assign(J.text);
950
950
  } catch {
951
951
  C(!1), L(!0), await In(2500), L(!1);
952
952
  }
953
953
  },
954
- [C, h]
954
+ [C, g]
955
955
  );
956
956
  return /* @__PURE__ */ r.jsx(
957
957
  rt,
@@ -978,7 +978,7 @@ function yn() {
978
978
  noBorder: !0,
979
979
  transparent: !0,
980
980
  className: T.applicationsHeaderChangeBrandButton,
981
- onClick: d,
981
+ onClick: u,
982
982
  children: "Change brand"
983
983
  }
984
984
  )
@@ -1003,7 +1003,7 @@ function yn() {
1003
1003
  /* @__PURE__ */ r.jsx(
1004
1004
  P,
1005
1005
  {
1006
- hidden: !S && !g,
1006
+ hidden: !S && !h,
1007
1007
  to: O.INSTORE_ADMIN,
1008
1008
  children: "Stores"
1009
1009
  }
@@ -1020,7 +1020,7 @@ function yn() {
1020
1020
  /* @__PURE__ */ r.jsx(
1021
1021
  P,
1022
1022
  {
1023
- hidden: !g && !x,
1023
+ hidden: !h && !x,
1024
1024
  to: O.SETTINGS,
1025
1025
  children: "Settings"
1026
1026
  }
@@ -1030,7 +1030,7 @@ function yn() {
1030
1030
  {
1031
1031
  disabled: U,
1032
1032
  onClick: V,
1033
- hidden: !g || !j,
1033
+ hidden: !h || !j,
1034
1034
  to: "#",
1035
1035
  children: [
1036
1036
  /* @__PURE__ */ r.jsx(
@@ -1068,15 +1068,15 @@ function Dn({ tenant: o }) {
1068
1068
  const {
1069
1069
  viewState: { selectedTenantId: s },
1070
1070
  updateViewState: p
1071
- } = q(), d = s === o.id;
1071
+ } = q(), u = s === o.id;
1072
1072
  return /* @__PURE__ */ r.jsx(
1073
1073
  Se,
1074
1074
  {
1075
1075
  align: "left",
1076
1076
  noBorder: !0,
1077
- className: re([et.tenantButton, { [et.active]: d }]),
1077
+ className: re([et.tenantButton, { [et.active]: u }]),
1078
1078
  noShadow: !0,
1079
- disabled: d,
1079
+ disabled: u,
1080
1080
  onClick: () => {
1081
1081
  p({
1082
1082
  selectedTenantId: o.id,
@@ -1129,48 +1129,46 @@ function Yn() {
1129
1129
  /* @__PURE__ */ r.jsx(Wn, {})
1130
1130
  ] });
1131
1131
  }
1132
- const ge = { ease: "easeOut", duration: 0.3 }, Gn = {
1132
+ const he = { ease: "easeOut", duration: 0.3 }, Gn = {
1133
1133
  [F.HIDDEN]: {
1134
1134
  left: -600,
1135
- transition: ge
1135
+ transition: he
1136
1136
  },
1137
1137
  [F.OPEN]: {
1138
1138
  left: -300,
1139
- transition: ge
1139
+ transition: he
1140
1140
  },
1141
- [F.EXPANDED]: { left: 0, transition: ge }
1141
+ [F.EXPANDED]: { left: 0, transition: he }
1142
1142
  };
1143
1143
  function zn({
1144
1144
  isOpen: o,
1145
1145
  portalContainer: s = document.body,
1146
1146
  onClose: p,
1147
- tenantServiceUrl: d
1147
+ tenantServiceUrl: u
1148
1148
  }) {
1149
- return (
1150
- // Using framer-motion lib to animate the navigation component on mount/unmount
1151
- // Also to prevent any api calls from being made when the navigation (Tiers component) is hidden
1152
- /* @__PURE__ */ r.jsx(
1153
- Vt,
1154
- {
1155
- onNavigationClose: p,
1156
- isOpen: o,
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
- )
1149
+ return console.log("tenantServiceUrl", u), // Using framer-motion lib to animate the navigation component on mount/unmount
1150
+ // Also to prevent any api calls from being made when the navigation (Tiers component) is hidden
1151
+ /* @__PURE__ */ r.jsx(
1152
+ Vt,
1153
+ {
1154
+ onNavigationClose: p,
1155
+ isOpen: o,
1156
+ tenantServiceUrl: u,
1157
+ children: /* @__PURE__ */ r.jsx(xe.Consumer, { children: ({ viewState: { currentPosition: f } }) => Mt(
1158
+ /* @__PURE__ */ r.jsx(Ot, { children: f !== F.HIDDEN && /* @__PURE__ */ r.jsx(
1159
+ Dt.div,
1160
+ {
1161
+ className: Gt.navigation,
1162
+ initial: F.HIDDEN,
1163
+ variants: Gn,
1164
+ animate: f,
1165
+ exit: F.HIDDEN,
1166
+ children: /* @__PURE__ */ r.jsx(Yn, {})
1167
+ }
1168
+ ) }),
1169
+ s
1170
+ ) })
1171
+ }
1174
1172
  );
1175
1173
  }
1176
1174
  const Kn = "data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%201.5H14M0%205.5H14M0%209.5H14M0'%20stroke='black'/%3e%3c/svg%3e";
@@ -1178,12 +1176,12 @@ function or({
1178
1176
  size: o = "medium",
1179
1177
  alt: s = "Toggle navigation menu",
1180
1178
  src: p = Kn,
1181
- portalContainer: d = document.body,
1179
+ portalContainer: u = document.body,
1182
1180
  tenantServiceUrl: f,
1183
1181
  ...c
1184
1182
  }) {
1185
1183
  const [b, i] = Bt(!1);
1186
- return /* @__PURE__ */ r.jsxs(Pt, { children: [
1184
+ return console.log("tenantServiceUrl ++++++++ ", f), /* @__PURE__ */ r.jsxs(Pt, { children: [
1187
1185
  /* @__PURE__ */ r.jsx(
1188
1186
  Ft,
1189
1187
  {
@@ -1198,7 +1196,7 @@ function or({
1198
1196
  zn,
1199
1197
  {
1200
1198
  isOpen: b,
1201
- portalContainer: d,
1199
+ portalContainer: u,
1202
1200
  onClose: () => i(),
1203
1201
  tenantServiceUrl: f
1204
1202
  }