@hiver/connector-agent 4.3.2 → 4.3.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/index.es.js CHANGED
@@ -81,24 +81,24 @@ function Bh() {
81
81
  }
82
82
  var x = !1, C = !1, E = !1, w = !1, A = !1, T;
83
83
  T = Symbol.for("react.module.reference");
84
- function R(_) {
84
+ function L(_) {
85
85
  return !!(typeof _ == "string" || typeof _ == "function" || _ === r || _ === i || A || _ === o || _ === a || _ === u || w || _ === I || x || C || E || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === h || _.$$typeof === s || _.$$typeof === l || _.$$typeof === c || // This needs to include all possible module reference object
86
86
  // types supported by any Flight configuration anywhere since
87
87
  // we don't know which Flight build this will end up being used
88
88
  // with.
89
89
  _.$$typeof === T || _.getModuleId !== void 0));
90
90
  }
91
- function O(_, V, Q) {
91
+ function R(_, V, Q) {
92
92
  var fe = _.displayName;
93
93
  if (fe)
94
94
  return fe;
95
95
  var Fe = V.displayName || V.name || "";
96
96
  return Fe !== "" ? Q + "(" + Fe + ")" : Q;
97
97
  }
98
- function L(_) {
98
+ function O(_) {
99
99
  return _.displayName || "Context";
100
100
  }
101
- function M(_) {
101
+ function k(_) {
102
102
  if (_ == null)
103
103
  return null;
104
104
  if (typeof _.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof _ == "function")
@@ -123,19 +123,19 @@ function Bh() {
123
123
  switch (_.$$typeof) {
124
124
  case l:
125
125
  var V = _;
126
- return L(V) + ".Consumer";
126
+ return O(V) + ".Consumer";
127
127
  case s:
128
128
  var Q = _;
129
- return L(Q._context) + ".Provider";
129
+ return O(Q._context) + ".Provider";
130
130
  case c:
131
- return O(_, _.render, "ForwardRef");
131
+ return R(_, _.render, "ForwardRef");
132
132
  case h:
133
133
  var fe = _.displayName || null;
134
- return fe !== null ? fe : M(_.type) || "Memo";
134
+ return fe !== null ? fe : k(_.type) || "Memo";
135
135
  case g: {
136
136
  var Fe = _, Be = Fe._payload, Ee = Fe._init;
137
137
  try {
138
- return M(Ee(Be));
138
+ return k(Ee(Be));
139
139
  } catch {
140
140
  return null;
141
141
  }
@@ -143,14 +143,14 @@ function Bh() {
143
143
  }
144
144
  return null;
145
145
  }
146
- var B = Object.assign, Z = 0, $, K, Y, X, le, de, P;
146
+ var B = Object.assign, Z = 0, $, K, Y, X, le, de, M;
147
147
  function G() {
148
148
  }
149
149
  G.__reactDisabledLog = !0;
150
150
  function j() {
151
151
  {
152
152
  if (Z === 0) {
153
- $ = console.log, K = console.info, Y = console.warn, X = console.error, le = console.group, de = console.groupCollapsed, P = console.groupEnd;
153
+ $ = console.log, K = console.info, Y = console.warn, X = console.error, le = console.group, de = console.groupCollapsed, M = console.groupEnd;
154
154
  var _ = {
155
155
  configurable: !0,
156
156
  enumerable: !0,
@@ -198,7 +198,7 @@ function Bh() {
198
198
  value: de
199
199
  }),
200
200
  groupEnd: B({}, _, {
201
- value: P
201
+ value: M
202
202
  })
203
203
  });
204
204
  }
@@ -219,13 +219,13 @@ function Bh() {
219
219
  ` + ne + _;
220
220
  }
221
221
  }
222
- var k = !1, re;
222
+ var P = !1, re;
223
223
  {
224
224
  var xe = typeof WeakMap == "function" ? WeakMap : Map;
225
225
  re = new xe();
226
226
  }
227
227
  function H(_, V) {
228
- if (!_ || k)
228
+ if (!_ || P)
229
229
  return "";
230
230
  {
231
231
  var Q = re.get(_);
@@ -233,7 +233,7 @@ function Bh() {
233
233
  return Q;
234
234
  }
235
235
  var fe;
236
- k = !0;
236
+ P = !0;
237
237
  var Fe = Error.prepareStackTrace;
238
238
  Error.prepareStackTrace = void 0;
239
239
  var Be;
@@ -290,7 +290,7 @@ function Bh() {
290
290
  }
291
291
  }
292
292
  } finally {
293
- k = !1, ee.current = Be, W(), Error.prepareStackTrace = Fe;
293
+ P = !1, ee.current = Be, W(), Error.prepareStackTrace = Fe;
294
294
  }
295
295
  var Er = _ ? _.displayName || _.name : "", Qn = Er ? ie(Er) : "";
296
296
  return typeof _ == "function" && re.set(_, Qn), Qn;
@@ -407,8 +407,8 @@ function Bh() {
407
407
  }
408
408
  function uo(_, V) {
409
409
  if (typeof _.ref == "string" && ue.current && V && ue.current.stateNode !== V) {
410
- var Q = M(ue.current.type);
411
- xt[Q] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', M(ue.current.type), _.ref), xt[Q] = !0);
410
+ var Q = k(ue.current.type);
411
+ xt[Q] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(ue.current.type), _.ref), xt[Q] = !0);
412
412
  }
413
413
  }
414
414
  function Ko(_, V) {
@@ -496,7 +496,7 @@ function Bh() {
496
496
  function ni() {
497
497
  {
498
498
  if (fo.current) {
499
- var _ = M(fo.current.type);
499
+ var _ = k(fo.current.type);
500
500
  if (_)
501
501
  return `
502
502
 
@@ -531,7 +531,7 @@ Check the top-level render call using <` + Q + ">.");
531
531
  return;
532
532
  Le[Q] = !0;
533
533
  var fe = "";
534
- _ && _._owner && _._owner !== fo.current && (fe = " It was passed a child from " + M(_._owner.type) + "."), Tn(_), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Q, fe), Tn(null);
534
+ _ && _._owner && _._owner !== fo.current && (fe = " It was passed a child from " + k(_._owner.type) + "."), Tn(_), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Q, fe), Tn(null);
535
535
  }
536
536
  }
537
537
  function Jn(_, V) {
@@ -568,11 +568,11 @@ Check the top-level render call using <` + Q + ">.");
568
568
  else
569
569
  return;
570
570
  if (Q) {
571
- var fe = M(V);
571
+ var fe = k(V);
572
572
  Qe(Q, _.props, "prop", fe, _);
573
573
  } else if (V.PropTypes !== void 0 && !$n) {
574
574
  $n = !0;
575
- var Fe = M(V);
575
+ var Fe = k(V);
576
576
  v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Fe || "Unknown");
577
577
  }
578
578
  typeof V.getDefaultProps == "function" && !V.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -593,14 +593,14 @@ Check the top-level render call using <` + Q + ">.");
593
593
  var ho = {};
594
594
  function ol(_, V, Q, fe, Fe, Be) {
595
595
  {
596
- var Ee = R(_);
596
+ var Ee = L(_);
597
597
  if (!Ee) {
598
598
  var Ce = "";
599
599
  (_ === void 0 || typeof _ == "object" && _ !== null && Object.keys(_).length === 0) && (Ce += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
600
  var gt = ri();
601
601
  gt ? Ce += gt : Ce += ni();
602
602
  var Ye;
603
- _ === null ? Ye = "null" : Vt(_) ? Ye = "array" : _ !== void 0 && _.$$typeof === t ? (Ye = "<" + (M(_.type) || "Unknown") + " />", Ce = " Did you accidentally export a JSX literal instead of a component?") : Ye = typeof _, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ye, Ce);
603
+ _ === null ? Ye = "null" : Vt(_) ? Ye = "array" : _ !== void 0 && _.$$typeof === t ? (Ye = "<" + (k(_.type) || "Unknown") + " />", Ce = " Did you accidentally export a JSX literal instead of a component?") : Ye = typeof _, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ye, Ce);
604
604
  }
605
605
  var qe = ti(_, V, Q, Fe, Be);
606
606
  if (qe == null)
@@ -619,7 +619,7 @@ Check the top-level render call using <` + Q + ">.");
619
619
  Jn(Ht, _);
620
620
  }
621
621
  if (nt.call(V, "key")) {
622
- var Qn = M(_), Et = Object.keys(V).filter(function(ph) {
622
+ var Qn = k(_), Et = Object.keys(V).filter(function(ph) {
623
623
  return ph !== "key";
624
624
  }), js = Et.length > 0 ? "{key: someKey, " + Et.join(": ..., ") + ": ...}" : "{key: someKey}";
625
625
  if (!ho[Qn + js]) {
@@ -723,37 +723,37 @@ function Gh(e) {
723
723
  }, E = (A) => {
724
724
  f = A == null ? [] : f.filter((T) => T !== A), C();
725
725
  }, w = (A) => {
726
- const { toastId: T, onOpen: R, updateId: O, children: L } = A.props, M = O == null;
727
- A.staleId && m.delete(A.staleId), m.set(T, A), f = [...f, A.props.toastId].filter((B) => B !== A.staleId), C(), g(cl(A, M ? "added" : "updated")), M && Dt(R) && R(Or(L) && L.props);
726
+ const { toastId: T, onOpen: L, updateId: R, children: O } = A.props, k = R == null;
727
+ A.staleId && m.delete(A.staleId), m.set(T, A), f = [...f, A.props.toastId].filter((B) => B !== A.staleId), C(), g(cl(A, k ? "added" : "updated")), k && Dt(L) && L(Or(O) && O.props);
728
728
  };
729
729
  return { id: u, props: v, observe: (A) => (x.add(A), () => x.delete(A)), toggle: (A, T) => {
730
- m.forEach((R) => {
731
- T != null && T !== R.props.toastId || Dt(R.toggle) && R.toggle(A);
730
+ m.forEach((L) => {
731
+ T != null && T !== L.props.toastId || Dt(L.toggle) && L.toggle(A);
732
732
  });
733
733
  }, removeToast: E, toasts: m, clearQueue: () => {
734
734
  b -= d.length, d = [];
735
735
  }, buildToast: (A, T) => {
736
- if (((P) => {
737
- let { containerId: G, toastId: j, updateId: W } = P;
736
+ if (((M) => {
737
+ let { containerId: G, toastId: j, updateId: W } = M;
738
738
  const ee = G ? G !== u : u !== 1, ne = m.has(j) && W == null;
739
739
  return ee || ne;
740
740
  })(T)) return;
741
- const { toastId: R, updateId: O, data: L, staleId: M, delay: B } = T, Z = () => {
742
- E(R);
743
- }, $ = O == null;
741
+ const { toastId: L, updateId: R, data: O, staleId: k, delay: B } = T, Z = () => {
742
+ E(L);
743
+ }, $ = R == null;
744
744
  $ && b++;
745
- const K = { ...v, style: v.toastStyle, key: I++, ...Object.fromEntries(Object.entries(T).filter((P) => {
746
- let [G, j] = P;
745
+ const K = { ...v, style: v.toastStyle, key: I++, ...Object.fromEntries(Object.entries(T).filter((M) => {
746
+ let [G, j] = M;
747
747
  return j != null;
748
- })), toastId: R, updateId: O, data: L, closeToast: Z, isIn: !1, className: bi(T.className || v.toastClassName), bodyClassName: bi(T.bodyClassName || v.bodyClassName), progressClassName: bi(T.progressClassName || v.progressClassName), autoClose: !T.isLoading && (Y = T.autoClose, X = v.autoClose, Y === !1 || Lo(Y) && Y > 0 ? Y : X), deleteToast() {
749
- const P = m.get(R), { onClose: G, children: j } = P.props;
750
- Dt(G) && G(Or(j) && j.props), g(cl(P, "removed")), m.delete(R), b--, b < 0 && (b = 0), d.length > 0 ? w(d.shift()) : C();
748
+ })), toastId: L, updateId: R, data: O, closeToast: Z, isIn: !1, className: bi(T.className || v.toastClassName), bodyClassName: bi(T.bodyClassName || v.bodyClassName), progressClassName: bi(T.progressClassName || v.progressClassName), autoClose: !T.isLoading && (Y = T.autoClose, X = v.autoClose, Y === !1 || Lo(Y) && Y > 0 ? Y : X), deleteToast() {
749
+ const M = m.get(L), { onClose: G, children: j } = M.props;
750
+ Dt(G) && G(Or(j) && j.props), g(cl(M, "removed")), m.delete(L), b--, b < 0 && (b = 0), d.length > 0 ? w(d.shift()) : C();
751
751
  } };
752
752
  var Y, X;
753
753
  K.closeButton = v.closeButton, T.closeButton === !1 || Ia(T.closeButton) ? K.closeButton = T.closeButton : T.closeButton === !0 && (K.closeButton = !Ia(v.closeButton) || v.closeButton);
754
754
  let le = A;
755
- Or(A) && !fr(A.type) ? le = va(A, { closeToast: Z, toastProps: K, data: L }) : Dt(A) && (le = A({ closeToast: Z, toastProps: K, data: L }));
756
- const de = { content: le, props: K, staleId: M };
755
+ Or(A) && !fr(A.type) ? le = va(A, { closeToast: Z, toastProps: K, data: O }) : Dt(A) && (le = A({ closeToast: Z, toastProps: K, data: O }));
756
+ const de = { content: le, props: K, staleId: k };
757
757
  v.limit && v.limit > 0 && b > v.limit && $ ? d.push(de) : Lo(B) ? setTimeout(() => {
758
758
  w(de);
759
759
  }, B) : w(de);
@@ -915,18 +915,18 @@ const Uh = typeof window < "u" ? Kr : me, ai = (e) => {
915
915
  }, spinner: function() {
916
916
  return Ae.createElement("div", { className: "Toastify__spinner" });
917
917
  } }, zh = (e) => {
918
- const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = Hh(e), { closeButton: s, children: l, autoClose: c, onClick: a, type: u, hideProgressBar: h, closeToast: g, transition: I, position: b, className: d, style: f, bodyClassName: p, bodyStyle: v, progressClassName: m, progressStyle: x, updateId: C, role: E, progress: w, rtl: A, toastId: T, deleteToast: R, isIn: O, isLoading: L, closeOnClick: M, theme: B } = e, Z = Vn("Toastify__toast", `Toastify__toast-theme--${B}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": A }, { "Toastify__toast--close-on-click": M }), $ = Dt(d) ? d({ rtl: A, position: b, type: u, defaultClassName: Z }) : Vn(Z, d), K = function(de) {
919
- let { theme: P, type: G, isLoading: j, icon: W } = de, ee = null;
920
- const ne = { theme: P, type: G };
918
+ const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = Hh(e), { closeButton: s, children: l, autoClose: c, onClick: a, type: u, hideProgressBar: h, closeToast: g, transition: I, position: b, className: d, style: f, bodyClassName: p, bodyStyle: v, progressClassName: m, progressStyle: x, updateId: C, role: E, progress: w, rtl: A, toastId: T, deleteToast: L, isIn: R, isLoading: O, closeOnClick: k, theme: B } = e, Z = Vn("Toastify__toast", `Toastify__toast-theme--${B}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": A }, { "Toastify__toast--close-on-click": k }), $ = Dt(d) ? d({ rtl: A, position: b, type: u, defaultClassName: Z }) : Vn(Z, d), K = function(de) {
919
+ let { theme: M, type: G, isLoading: j, icon: W } = de, ee = null;
920
+ const ne = { theme: M, type: G };
921
921
  return W === !1 || (Dt(W) ? ee = W({ ...ne, isLoading: j }) : Or(W) ? ee = va(W, ne) : j ? ee = Hs.spinner() : ((ie) => ie in Hs)(G) && (ee = Hs[G](ne))), ee;
922
922
  }(e), Y = !!w || !c, X = { closeToast: g, type: u, theme: B };
923
923
  let le = null;
924
924
  return s === !1 || (le = Dt(s) ? s(X) : Or(s) ? va(s, X) : function(de) {
925
- let { closeToast: P, theme: G, ariaLabel: j = "close" } = de;
925
+ let { closeToast: M, theme: G, ariaLabel: j = "close" } = de;
926
926
  return Ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${G}`, type: "button", onClick: (W) => {
927
- W.stopPropagation(), P(W);
927
+ W.stopPropagation(), M(W);
928
928
  }, "aria-label": j }, Ae.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Ae.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
929
- }(X)), Ae.createElement(I, { isIn: O, done: R, position: b, preventExitTransition: n, nodeRef: r, playToast: i }, Ae.createElement("div", { id: T, onClick: a, "data-in": O, className: $, ...o, style: f, ref: r }, Ae.createElement("div", { ...O && { role: E }, className: Dt(p) ? p({ type: u }) : Vn("Toastify__toast-body", p), style: v }, K != null && Ae.createElement("div", { className: Vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !L }) }, K), Ae.createElement("div", null, l)), le, Ae.createElement(Wh, { ...C && !Y ? { key: `pb-${C}` } : {}, rtl: A, theme: B, delay: c, isRunning: t, isIn: O, closeToast: g, hide: h, type: u, style: x, className: m, controlledProgress: Y, progress: w || 0 })));
929
+ }(X)), Ae.createElement(I, { isIn: R, done: L, position: b, preventExitTransition: n, nodeRef: r, playToast: i }, Ae.createElement("div", { id: T, onClick: a, "data-in": R, className: $, ...o, style: f, ref: r }, Ae.createElement("div", { ...R && { role: E }, className: Dt(p) ? p({ type: u }) : Vn("Toastify__toast-body", p), style: v }, K != null && Ae.createElement("div", { className: Vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O }) }, K), Ae.createElement("div", null, l)), le, Ae.createElement(Wh, { ...C && !Y ? { key: `pb-${C}` } : {}, rtl: A, theme: B, delay: c, isRunning: t, isIn: R, closeToast: g, hide: h, type: u, style: x, className: m, controlledProgress: Y, progress: w || 0 })));
930
930
  }, ds = function(e, t) {
931
931
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
932
932
  }, $h = us(ds("bounce", !0));
@@ -3459,14 +3459,14 @@ function af() {
3459
3459
  }, u = function(b, d, f, p, v) {
3460
3460
  return e(void 0, void 0, void 0, function() {
3461
3461
  var m, x, C, E, w, A, T;
3462
- return t(this, function(R) {
3463
- switch (R.label) {
3462
+ return t(this, function(L) {
3463
+ switch (L.label) {
3464
3464
  case 0:
3465
- console.log("GETTOKEN tenantPlatform -> ", p), R.label = 1;
3465
+ console.log("GETTOKEN tenantPlatform -> ", p), L.label = 1;
3466
3466
  case 1:
3467
- return R.trys.push([1, 5, , 6]), !(0, o.validateToken)(f) || (0, o.invalidateToken)(f) ? (console.log("HEIMDALL: No valid token, fetching token"), m = i(d, f, p, v), [4, (0, r.performAxiosCall)(m)]) : [3, 3];
3467
+ return L.trys.push([1, 5, , 6]), !(0, o.validateToken)(f) || (0, o.invalidateToken)(f) ? (console.log("HEIMDALL: No valid token, fetching token"), m = i(d, f, p, v), [4, (0, r.performAxiosCall)(m)]) : [3, 3];
3468
3468
  case 2:
3469
- return x = R.sent(), [2, {
3469
+ return x = L.sent(), [2, {
3470
3470
  atToken: (E = x == null ? void 0 : x.data.at) === null || E === void 0 ? void 0 : E.token,
3471
3471
  expiryTime: (w = x == null ? void 0 : x.data.at) === null || w === void 0 ? void 0 : w.expires_at,
3472
3472
  userId: (A = x == null ? void 0 : x.data) === null || A === void 0 ? void 0 : A.user_id,
@@ -3477,7 +3477,7 @@ function af() {
3477
3477
  case 4:
3478
3478
  return [3, 6];
3479
3479
  case 5:
3480
- throw C = R.sent(), C;
3480
+ throw C = L.sent(), C;
3481
3481
  case 6:
3482
3482
  return [2];
3483
3483
  }
@@ -3487,22 +3487,22 @@ function af() {
3487
3487
  zt.getAccessToken = u;
3488
3488
  var h = function(b, d, f, p, v, m) {
3489
3489
  return e(void 0, void 0, void 0, function() {
3490
- var x, C, E, w, A, T, R;
3491
- return t(this, function(O) {
3492
- switch (O.label) {
3490
+ var x, C, E, w, A, T, L;
3491
+ return t(this, function(R) {
3492
+ switch (R.label) {
3493
3493
  case 0:
3494
- x = s(b, f, p, v, m), O.label = 1;
3494
+ x = s(b, f, p, v, m), R.label = 1;
3495
3495
  case 1:
3496
- return O.trys.push([1, 3, , 4]), [4, (0, r.performAxiosCall)(x)];
3496
+ return R.trys.push([1, 3, , 4]), [4, (0, r.performAxiosCall)(x)];
3497
3497
  case 2:
3498
- return C = O.sent(), [2, {
3498
+ return C = R.sent(), [2, {
3499
3499
  userId: (w = C == null ? void 0 : C.data) === null || w === void 0 ? void 0 : w.user_id,
3500
3500
  userGroupId: (A = C == null ? void 0 : C.data) === null || A === void 0 ? void 0 : A.usergroup_id,
3501
3501
  atToken: (T = C == null ? void 0 : C.data.at) === null || T === void 0 ? void 0 : T.token,
3502
- expiryTime: (R = C == null ? void 0 : C.data.at) === null || R === void 0 ? void 0 : R.expires_at
3502
+ expiryTime: (L = C == null ? void 0 : C.data.at) === null || L === void 0 ? void 0 : L.expires_at
3503
3503
  }];
3504
3504
  case 3:
3505
- throw E = O.sent(), E;
3505
+ throw E = R.sent(), E;
3506
3506
  case 4:
3507
3507
  return [2];
3508
3508
  }
@@ -3755,33 +3755,33 @@ function cf() {
3755
3755
  Object.defineProperty(vo, "__esModule", { value: !0 }), vo.fetchAccessToken = void 0;
3756
3756
  var n = af(), r = Xn, o = Oe, i = Is, s, l, c, a = function(b, d, f, p, v, m) {
3757
3757
  return m === void 0 && (m = r.APP_UI.DEFAULT), e(void 0, void 0, void 0, function() {
3758
- var x, C, E, w, A, T, R, O, L;
3759
- return t(this, function(M) {
3760
- switch (M.label) {
3758
+ var x, C, E, w, A, T, L, R, O;
3759
+ return t(this, function(k) {
3760
+ switch (k.label) {
3761
3761
  case 0:
3762
- x = 2, M.label = 1;
3762
+ x = 2, k.label = 1;
3763
3763
  case 1:
3764
- return M.trys.push([1, 7, , 12]), console.log("ERROR debug: in login:", m, p), C = void 0, v ? [4, v()] : [3, 3];
3764
+ return k.trys.push([1, 7, , 12]), console.log("ERROR debug: in login:", m, p), C = void 0, v ? [4, v()] : [3, 3];
3765
3765
  case 2:
3766
- return C = M.sent(), [3, 5];
3766
+ return C = k.sent(), [3, 5];
3767
3767
  case 3:
3768
3768
  return [4, (0, n.getTenantLoginCode)(r.CONFIG_HIVER, b, d, p, m)];
3769
3769
  case 4:
3770
- C = M.sent(), M.label = 5;
3770
+ C = k.sent(), k.label = 5;
3771
3771
  case 5:
3772
3772
  return [4, (0, n.getLoginToken)(C, r.CONFIG_HIVER, b, p, d.userId, d.usergroupId)];
3773
3773
  case 6:
3774
- return E = M.sent(), w = E.userId, A = E.userGroupId, T = E.atToken, R = E.expiryTime, (0, o.setTokenAndExpiry)(T, R), (0, o.setUserDetails)(w, A), [3, 12];
3774
+ return E = k.sent(), w = E.userId, A = E.userGroupId, T = E.atToken, L = E.expiryTime, (0, o.setTokenAndExpiry)(T, L), (0, o.setUserDetails)(w, A), [3, 12];
3775
3775
  case 7:
3776
- O = M.sent(), console.log("ERROR debug: in error login:", O, m), L = f, M.label = 8;
3776
+ R = k.sent(), console.log("ERROR debug: in error login:", R, m), O = f, k.label = 8;
3777
3777
  case 8:
3778
- return L < x ? [4, a(b, d, L + 1, p, v, m)] : [3, 11];
3778
+ return O < x ? [4, a(b, d, O + 1, p, v, m)] : [3, 11];
3779
3779
  case 9:
3780
- M.sent(), M.label = 10;
3780
+ k.sent(), k.label = 10;
3781
3781
  case 10:
3782
- return L++, [3, 8];
3782
+ return O++, [3, 8];
3783
3783
  case 11:
3784
- throw O;
3784
+ throw R;
3785
3785
  case 12:
3786
3786
  return [2];
3787
3787
  }
@@ -3807,36 +3807,36 @@ function cf() {
3807
3807
  });
3808
3808
  }, h = function(b, d, f, p, v, m, x, C, E) {
3809
3809
  return C === void 0 && (C = "default"), e(void 0, void 0, void 0, function() {
3810
- var w, A, T, R, O, L, M, B, Z, $, K, Y, X, le;
3810
+ var w, A, T, L, R, O, k, B, Z, $, K, Y, X, le;
3811
3811
  return t(this, function(de) {
3812
3812
  switch (de.label) {
3813
3813
  case 0:
3814
3814
  return de.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", c), [4, (0, n.getAccessToken)(r.CONFIG_HIVER, p, v, m, C)];
3815
3815
  case 1:
3816
- return w = de.sent(), A = w.atToken, T = w.expiryTime, R = w.userId, O = w.userGroupId, A && T && (0, o.setTokenAndExpiry)(A, T), R && O && (0, o.setUserDetails)(R, O), b = r.INITIAL_RETRY_DELAY, d = r.INITIAL_RETRY_DELAY, f = 0, [3, 12];
3816
+ return w = de.sent(), A = w.atToken, T = w.expiryTime, L = w.userId, R = w.userGroupId, A && T && (0, o.setTokenAndExpiry)(A, T), L && R && (0, o.setUserDetails)(L, R), b = r.INITIAL_RETRY_DELAY, d = r.INITIAL_RETRY_DELAY, f = 0, [3, 12];
3817
3817
  case 2:
3818
- return L = de.sent(), console.log("ERROR: Heimdall fetch token", L), ((Z = L.response) === null || Z === void 0 ? void 0 : Z.status) === 401 || (($ = L.request) === null || $ === void 0 ? void 0 : $.status) === 401 ? (M = 1, [4, a(p, v, M, m, x, E)]) : [3, 4];
3818
+ return O = de.sent(), console.log("ERROR: Heimdall fetch token", O), ((Z = O.response) === null || Z === void 0 ? void 0 : Z.status) === 401 || (($ = O.request) === null || $ === void 0 ? void 0 : $.status) === 401 ? (k = 1, [4, a(p, v, k, m, x, E)]) : [3, 4];
3819
3819
  case 3:
3820
3820
  return de.sent(), [3, 11];
3821
3821
  case 4:
3822
- return ((K = L.response) === null || K === void 0 ? void 0 : K.status) === 409 || ((Y = L.request) === null || Y === void 0 ? void 0 : Y.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), B = { retryDelay: b, configs: p, apiParams: v, appUI: E }, [4, u(d, f, B, m, x)]) : [3, 6];
3822
+ return ((K = O.response) === null || K === void 0 ? void 0 : K.status) === 409 || ((Y = O.request) === null || Y === void 0 ? void 0 : Y.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), B = { retryDelay: b, configs: p, apiParams: v, appUI: E }, [4, u(d, f, B, m, x)]) : [3, 6];
3823
3823
  case 5:
3824
3824
  if (de.sent(), f >= r.MAX_CONFLICT_RETRY_DELAY)
3825
- throw L;
3825
+ throw O;
3826
3826
  return [3, 11];
3827
3827
  case 6:
3828
- if (!(((X = L.response) === null || X === void 0 ? void 0 : X.status) === 422 || ((le = L.request) === null || le === void 0 ? void 0 : le.status) === 422)) return [3, 7];
3829
- throw console.log("ERROR: Throwing error", L.response.status), L;
3828
+ if (!(((X = O.response) === null || X === void 0 ? void 0 : X.status) === 422 || ((le = O.request) === null || le === void 0 ? void 0 : le.status) === 422)) return [3, 7];
3829
+ throw console.log("ERROR: Throwing error", O.response.status), O;
3830
3830
  case 7:
3831
- return b <= r.MAX_RETRY_DELAY ? [4, new Promise(function(P) {
3832
- return setTimeout(P, b);
3831
+ return b <= r.MAX_RETRY_DELAY ? [4, new Promise(function(M) {
3832
+ return setTimeout(M, b);
3833
3833
  })] : [3, 10];
3834
3834
  case 8:
3835
3835
  return de.sent(), b *= 2, console.log("Heimdall: Fetch token post doubling retry delay", b), [4, h(b, d, f, p, v, m, x, E)];
3836
3836
  case 9:
3837
3837
  return de.sent(), [3, 11];
3838
3838
  case 10:
3839
- throw L;
3839
+ throw O;
3840
3840
  case 11:
3841
3841
  return [3, 12];
3842
3842
  case 12:
@@ -3866,30 +3866,30 @@ function cf() {
3866
3866
  });
3867
3867
  }, I = function(b, d, f, p, v, m, x) {
3868
3868
  return e(void 0, void 0, void 0, function() {
3869
- var C, E, w, A, T, R;
3870
- return t(this, function(O) {
3871
- switch (O.label) {
3869
+ var C, E, w, A, T, L;
3870
+ return t(this, function(R) {
3871
+ switch (R.label) {
3872
3872
  case 0:
3873
- s = b, l = d, C = r.INITIAL_RETRY_DELAY, E = r.INITIAL_RETRY_DELAY, w = 0, A = (0, o.getConfig)(s, l), console.log("Instance: Fetch Call"), O.label = 1;
3873
+ s = b, l = d, C = r.INITIAL_RETRY_DELAY, E = r.INITIAL_RETRY_DELAY, w = 0, A = (0, o.getConfig)(s, l), console.log("Instance: Fetch Call"), R.label = 1;
3874
3874
  case 1:
3875
- return O.trys.push([1, 3, , 4]), [4, h(C, E, w, A, f, p, v, m, x)];
3875
+ return R.trys.push([1, 3, , 4]), [4, h(C, E, w, A, f, p, v, m, x)];
3876
3876
  case 2:
3877
- return O.sent(), console.log("Heimdall: Interval Set on fetch token when fetch token is called:", c), clearInterval(c), c = setInterval(function() {
3877
+ return R.sent(), console.log("Heimdall: Interval Set on fetch token when fetch token is called:", c), clearInterval(c), c = setInterval(function() {
3878
3878
  return g(A, f, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0, p, v, x);
3879
3879
  }, r.REFETCH_CHECK_DELAY), T = function() {
3880
3880
  return e(void 0, void 0, void 0, function() {
3881
- return t(this, function(L) {
3882
- switch (L.label) {
3881
+ return t(this, function(O) {
3882
+ switch (O.label) {
3883
3883
  case 0:
3884
3884
  return [4, g(A, f, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0, p, v, x)];
3885
3885
  case 1:
3886
- return L.sent(), [2];
3886
+ return O.sent(), [2];
3887
3887
  }
3888
3888
  });
3889
3889
  });
3890
3890
  }, console.log("Heimdall: Interval Set on fetch token:", c), (0, i.subscribeToOnlineEvent)(T), [3, 4];
3891
3891
  case 3:
3892
- return R = O.sent(), console.log("ERROR: Fetching token failed", R), [3, 4];
3892
+ return L = R.sent(), console.log("ERROR: Fetching token failed", L), [3, 4];
3893
3893
  case 4:
3894
3894
  return [2];
3895
3895
  }
@@ -3920,15 +3920,15 @@ function lf() {
3920
3920
  function E(T) {
3921
3921
  try {
3922
3922
  A(v.next(T));
3923
- } catch (R) {
3924
- C(R);
3923
+ } catch (L) {
3924
+ C(L);
3925
3925
  }
3926
3926
  }
3927
3927
  function w(T) {
3928
3928
  try {
3929
3929
  A(v.throw(T));
3930
- } catch (R) {
3931
- C(R);
3930
+ } catch (L) {
3931
+ C(L);
3932
3932
  }
3933
3933
  }
3934
3934
  function A(T) {
@@ -4051,11 +4051,11 @@ function lf() {
4051
4051
  function b(d, f, p, v, m) {
4052
4052
  var x, C;
4053
4053
  return m === void 0 && (m = 0), t(this, void 0, void 0, function() {
4054
- var E, w, A, T, R, O, L;
4055
- return n(this, function(M) {
4056
- switch (M.label) {
4054
+ var E, w, A, T, L, R, O;
4055
+ return n(this, function(k) {
4056
+ switch (k.label) {
4057
4057
  case 0:
4058
- if (M.trys.push([0, 4, , 5]), !(p.getToken && !(0, o.hasValidToken)(f))) return [3, 2];
4058
+ if (k.trys.push([0, 4, , 5]), !(p.getToken && !(0, o.hasValidToken)(f))) return [3, 2];
4059
4059
  if (E = d.appEnv, w = d.tier, !E || !w)
4060
4060
  throw Error("appEnv or tier missing : ".concat(E, "/").concat(w));
4061
4061
  return "userId" in f && "usergroupId" in f ? (A = {
@@ -4063,16 +4063,16 @@ function lf() {
4063
4063
  usergroupId: f.usergroupId
4064
4064
  }, [4, I(d, A, v)]) : [3, 2];
4065
4065
  case 1:
4066
- M.sent(), M.label = 2;
4066
+ k.sent(), k.label = 2;
4067
4067
  case 2:
4068
4068
  return d.csrfToken && u(f, p), T = d.tenantPlatform === l.TENANT_PLATFORM.HIVERWEB ? l.TENANT_PLATFORM.HIVERWEB : l.TENANT_PLATFORM.GMAIL, f.headers = e(e({}, f.headers), { "x-hiver-tenant": T, "x-hiver-userid": (0, s.getItemFromStorage)("hiverAuthUserId") || "0", "x-hiver-usergroupid": (0, s.getItemFromStorage)("hiverAuthUserGroupId") || "0" }), p.getToken && (c = (0, s.getItemFromStorage)("hiverAuthToken") || "", f.headers = e(e({}, f.headers), { Authorization: "Bearer ".concat(c) })), console.log("Performing axios call for:", f), [4, g(f, d.withCredentials)];
4069
4069
  case 3:
4070
- return R = M.sent(), f.onSuccess && f.onSuccess(R), [2, R];
4070
+ return L = k.sent(), f.onSuccess && f.onSuccess(L), [2, L];
4071
4071
  case 4:
4072
- if (O = M.sent(), L = ((x = O.response) === null || x === void 0 ? void 0 : x.status) === 403 || ((C = O.request) === null || C === void 0 ? void 0 : C.status) === 403, m < a && L)
4072
+ if (R = k.sent(), O = ((x = R.response) === null || x === void 0 ? void 0 : x.status) === 403 || ((C = R.request) === null || C === void 0 ? void 0 : C.status) === 403, m < a && O)
4073
4073
  return (0, o.expireToken)(), [2, b(d, f, p, v, m + 1)];
4074
- if (m >= a && L || !L)
4075
- throw f.onFail && f.onFail(O), console.log("ERROR: Reached make Axios", O), O;
4074
+ if (m >= a && O || !O)
4075
+ throw f.onFail && f.onFail(R), console.log("ERROR: Reached make Axios", R), R;
4076
4076
  return [3, 5];
4077
4077
  case 5:
4078
4078
  return [2];
@@ -4669,7 +4669,7 @@ function ff() {
4669
4669
  });
4670
4670
  }, u = function(I, b, d, f, p, v, m) {
4671
4671
  return v === void 0 && (v = "default"), e(void 0, void 0, void 0, function() {
4672
- var x, C, E, w, A, T, R, O, L, M, B, Z, $, K;
4672
+ var x, C, E, w, A, T, L, R, O, k, B, Z, $, K;
4673
4673
  return t(this, function(Y) {
4674
4674
  switch (Y.label) {
4675
4675
  case 0:
@@ -4677,11 +4677,11 @@ function ff() {
4677
4677
  case 1:
4678
4678
  return x = Y.sent(), C = x.atToken, E = x.expiryTime, w = x.userId, A = x.userGroupId, C && E && (0, o.setTokenAndExpiry)(C, E), w && A && (0, o.setUserDetails)(w, A), I = r.INITIAL_RETRY_DELAY, b = r.INITIAL_RETRY_DELAY, d = 0, [3, 12];
4679
4679
  case 2:
4680
- return T = Y.sent(), console.log("ERROR: Heimdall fetch token", T), ((L = T.response) === null || L === void 0 ? void 0 : L.status) === 401 || ((M = T.request) === null || M === void 0 ? void 0 : M.status) === 401 ? (R = 1, [4, c(f, R, m)]) : [3, 4];
4680
+ return T = Y.sent(), console.log("ERROR: Heimdall fetch token", T), ((O = T.response) === null || O === void 0 ? void 0 : O.status) === 401 || ((k = T.request) === null || k === void 0 ? void 0 : k.status) === 401 ? (L = 1, [4, c(f, L, m)]) : [3, 4];
4681
4681
  case 3:
4682
4682
  return Y.sent(), [3, 11];
4683
4683
  case 4:
4684
- return ((B = T.response) === null || B === void 0 ? void 0 : B.status) === 409 || ((Z = T.request) === null || Z === void 0 ? void 0 : Z.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), O = { retryDelay: I, configs: f, api_params: p, appUI: m }, [4, a(b, d, O)]) : [3, 6];
4684
+ return ((B = T.response) === null || B === void 0 ? void 0 : B.status) === 409 || ((Z = T.request) === null || Z === void 0 ? void 0 : Z.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), R = { retryDelay: I, configs: f, api_params: p, appUI: m }, [4, a(b, d, R)]) : [3, 6];
4685
4685
  case 5:
4686
4686
  if (Y.sent(), d >= r.MAX_CONFLICT_RETRY_DELAY)
4687
4687
  throw T;
@@ -5961,9 +5961,9 @@ const Yb = N(be)`
5961
5961
  c.current && c.current.disconnect();
5962
5962
  const A = new IntersectionObserver(
5963
5963
  (T) => {
5964
- const R = l.current;
5965
- for (const O of T)
5966
- R == null || R.classList.toggle(Rf, O.intersectionRatio === 0);
5964
+ const L = l.current;
5965
+ for (const R of T)
5966
+ L == null || L.classList.toggle(Rf, R.intersectionRatio === 0);
5967
5967
  },
5968
5968
  {
5969
5969
  root: w
@@ -6080,28 +6080,28 @@ function Sv() {
6080
6080
  value: null
6081
6081
  }, b.current = d) : d = b.current;
6082
6082
  var f = s(function() {
6083
- var x = !1, C, E, w = function(O) {
6083
+ var x = !1, C, E, w = function(R) {
6084
6084
  if (!x) {
6085
- x = !0, C = O;
6086
- var L = g(O);
6085
+ x = !0, C = R;
6086
+ var O = g(R);
6087
6087
  if (I !== void 0 && d.hasValue) {
6088
- var M = d.value;
6089
- if (I(M, L))
6090
- return E = M, M;
6088
+ var k = d.value;
6089
+ if (I(k, O))
6090
+ return E = k, k;
6091
6091
  }
6092
- return E = L, L;
6092
+ return E = O, O;
6093
6093
  }
6094
6094
  var B = C, Z = E;
6095
- if (n(B, O))
6095
+ if (n(B, R))
6096
6096
  return Z;
6097
- var $ = g(O);
6098
- return I !== void 0 && I(Z, $) ? Z : (C = O, E = $, $);
6097
+ var $ = g(R);
6098
+ return I !== void 0 && I(Z, $) ? Z : (C = R, E = $, $);
6099
6099
  }, A = h === void 0 ? null : h, T = function() {
6100
6100
  return w(u());
6101
- }, R = A === null ? void 0 : function() {
6101
+ }, L = A === null ? void 0 : function() {
6102
6102
  return w(A());
6103
6103
  };
6104
- return [T, R];
6104
+ return [T, L];
6105
6105
  }, [u, h, g, I]), p = f[0], v = f[1], m = r(a, p, v);
6106
6106
  return i(function() {
6107
6107
  d.hasValue = !0, d.value = m;
@@ -7784,8 +7784,8 @@ function Uy({
7784
7784
  return tu(A, w, {
7785
7785
  insert: () => {
7786
7786
  const T = {};
7787
- for (const [R, O] of Object.entries(o.selectors ?? {}))
7788
- T[R] = zy(O, w, f, x);
7787
+ for (const [L, R] of Object.entries(o.selectors ?? {}))
7788
+ T[L] = zy(R, w, f, x);
7789
7789
  return T;
7790
7790
  }
7791
7791
  });
@@ -8239,12 +8239,12 @@ function nn(e, t) {
8239
8239
  }
8240
8240
  var X3 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
8241
8241
  function Hc(e) {
8242
- var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, o = r === void 0 ? !1 : r, i = e.defaultValue, s = i === void 0 ? null : i, l = e.inputValue, c = e.menuIsOpen, a = e.onChange, u = e.onInputChange, h = e.onMenuClose, g = e.onMenuOpen, I = e.value, b = nn(e, X3), d = J(l !== void 0 ? l : n), f = it(d, 2), p = f[0], v = f[1], m = J(c !== void 0 ? c : o), x = it(m, 2), C = x[0], E = x[1], w = J(I !== void 0 ? I : s), A = it(w, 2), T = A[0], R = A[1], O = _e(function(Y, X) {
8243
- typeof a == "function" && a(Y, X), R(Y);
8244
- }, [a]), L = _e(function(Y, X) {
8242
+ var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, o = r === void 0 ? !1 : r, i = e.defaultValue, s = i === void 0 ? null : i, l = e.inputValue, c = e.menuIsOpen, a = e.onChange, u = e.onInputChange, h = e.onMenuClose, g = e.onMenuOpen, I = e.value, b = nn(e, X3), d = J(l !== void 0 ? l : n), f = it(d, 2), p = f[0], v = f[1], m = J(c !== void 0 ? c : o), x = it(m, 2), C = x[0], E = x[1], w = J(I !== void 0 ? I : s), A = it(w, 2), T = A[0], L = A[1], R = _e(function(Y, X) {
8243
+ typeof a == "function" && a(Y, X), L(Y);
8244
+ }, [a]), O = _e(function(Y, X) {
8245
8245
  var le;
8246
8246
  typeof u == "function" && (le = u(Y, X)), v(le !== void 0 ? le : Y);
8247
- }, [u]), M = _e(function() {
8247
+ }, [u]), k = _e(function() {
8248
8248
  typeof g == "function" && g(), E(!0);
8249
8249
  }, [g]), B = _e(function() {
8250
8250
  typeof h == "function" && h(), E(!1);
@@ -8252,10 +8252,10 @@ function Hc(e) {
8252
8252
  return oe(oe({}, b), {}, {
8253
8253
  inputValue: Z,
8254
8254
  menuIsOpen: $,
8255
- onChange: O,
8256
- onInputChange: L,
8255
+ onChange: R,
8256
+ onInputChange: O,
8257
8257
  onMenuClose: B,
8258
- onMenuOpen: M,
8258
+ onMenuOpen: k,
8259
8259
  value: K
8260
8260
  });
8261
8261
  }
@@ -9029,7 +9029,7 @@ function DC() {
9029
9029
  }
9030
9030
  }
9031
9031
  }
9032
- var C = c, E = a, w = l, A = s, T = t, R = u, O = r, L = b, M = I, B = n, Z = i, $ = o, K = h, Y = !1;
9032
+ var C = c, E = a, w = l, A = s, T = t, L = u, R = r, O = b, k = I, B = n, Z = i, $ = o, K = h, Y = !1;
9033
9033
  function X(H) {
9034
9034
  return Y || (Y = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), le(H) || x(H) === c;
9035
9035
  }
@@ -9039,7 +9039,7 @@ function DC() {
9039
9039
  function de(H) {
9040
9040
  return x(H) === l;
9041
9041
  }
9042
- function P(H) {
9042
+ function M(H) {
9043
9043
  return x(H) === s;
9044
9044
  }
9045
9045
  function G(H) {
@@ -9060,7 +9060,7 @@ function DC() {
9060
9060
  function ie(H) {
9061
9061
  return x(H) === n;
9062
9062
  }
9063
- function k(H) {
9063
+ function P(H) {
9064
9064
  return x(H) === i;
9065
9065
  }
9066
9066
  function re(H) {
@@ -9069,7 +9069,7 @@ function DC() {
9069
9069
  function xe(H) {
9070
9070
  return x(H) === h;
9071
9071
  }
9072
- Ne.AsyncMode = C, Ne.ConcurrentMode = E, Ne.ContextConsumer = w, Ne.ContextProvider = A, Ne.Element = T, Ne.ForwardRef = R, Ne.Fragment = O, Ne.Lazy = L, Ne.Memo = M, Ne.Portal = B, Ne.Profiler = Z, Ne.StrictMode = $, Ne.Suspense = K, Ne.isAsyncMode = X, Ne.isConcurrentMode = le, Ne.isContextConsumer = de, Ne.isContextProvider = P, Ne.isElement = G, Ne.isForwardRef = j, Ne.isFragment = W, Ne.isLazy = ee, Ne.isMemo = ne, Ne.isPortal = ie, Ne.isProfiler = k, Ne.isStrictMode = re, Ne.isSuspense = xe, Ne.isValidElementType = m, Ne.typeOf = x;
9072
+ Ne.AsyncMode = C, Ne.ConcurrentMode = E, Ne.ContextConsumer = w, Ne.ContextProvider = A, Ne.Element = T, Ne.ForwardRef = L, Ne.Fragment = R, Ne.Lazy = O, Ne.Memo = k, Ne.Portal = B, Ne.Profiler = Z, Ne.StrictMode = $, Ne.Suspense = K, Ne.isAsyncMode = X, Ne.isConcurrentMode = le, Ne.isContextConsumer = de, Ne.isContextProvider = M, Ne.isElement = G, Ne.isForwardRef = j, Ne.isFragment = W, Ne.isLazy = ee, Ne.isMemo = ne, Ne.isPortal = ie, Ne.isProfiler = P, Ne.isStrictMode = re, Ne.isSuspense = xe, Ne.isValidElementType = m, Ne.typeOf = x;
9073
9073
  }()), Ne;
9074
9074
  }
9075
9075
  process.env.NODE_ENV === "production" ? qa.exports = FC() : qa.exports = DC();
@@ -9766,7 +9766,7 @@ function NI(e) {
9766
9766
  maxHeight: t
9767
9767
  };
9768
9768
  if (!n || !n.offsetParent) return a;
9769
- var u = c.getBoundingClientRect(), h = u.height, g = n.getBoundingClientRect(), I = g.bottom, b = g.height, d = g.top, f = n.offsetParent.getBoundingClientRect(), p = f.top, v = s ? window.innerHeight : xI(c), m = D0(c), x = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), E = p - C, w = v - d, A = E + m, T = h - m - d, R = I - v + m + x, O = m + d - C, L = 160;
9769
+ var u = c.getBoundingClientRect(), h = u.height, g = n.getBoundingClientRect(), I = g.bottom, b = g.height, d = g.top, f = n.offsetParent.getBoundingClientRect(), p = f.top, v = s ? window.innerHeight : xI(c), m = D0(c), x = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), E = p - C, w = v - d, A = E + m, T = h - m - d, L = I - v + m + x, R = m + d - C, O = 160;
9770
9770
  switch (o) {
9771
9771
  case "auto":
9772
9772
  case "bottom":
@@ -9776,16 +9776,16 @@ function NI(e) {
9776
9776
  maxHeight: t
9777
9777
  };
9778
9778
  if (T >= b && !s)
9779
- return i && pi(c, R, L), {
9779
+ return i && pi(c, L, O), {
9780
9780
  placement: "bottom",
9781
9781
  maxHeight: t
9782
9782
  };
9783
9783
  if (!s && T >= r || s && w >= r) {
9784
- i && pi(c, R, L);
9785
- var M = s ? w - x : T - x;
9784
+ i && pi(c, L, O);
9785
+ var k = s ? w - x : T - x;
9786
9786
  return {
9787
9787
  placement: "bottom",
9788
- maxHeight: M
9788
+ maxHeight: k
9789
9789
  };
9790
9790
  }
9791
9791
  if (o === "auto" || s) {
@@ -9796,7 +9796,7 @@ function NI(e) {
9796
9796
  };
9797
9797
  }
9798
9798
  if (o === "bottom")
9799
- return i && ts(c, R), {
9799
+ return i && ts(c, L), {
9800
9800
  placement: "bottom",
9801
9801
  maxHeight: t
9802
9802
  };
@@ -9808,13 +9808,13 @@ function NI(e) {
9808
9808
  maxHeight: t
9809
9809
  };
9810
9810
  if (A >= b && !s)
9811
- return i && pi(c, O, L), {
9811
+ return i && pi(c, R, O), {
9812
9812
  placement: "top",
9813
9813
  maxHeight: t
9814
9814
  };
9815
9815
  if (!s && A >= r || s && E >= r) {
9816
9816
  var $ = t;
9817
- return (!s && A >= r || s && E >= r) && ($ = s ? E - C : A - C), i && pi(c, O, L), {
9817
+ return (!s && A >= r || s && E >= r) && ($ = s ? E - C : A - C), i && pi(c, R, O), {
9818
9818
  placement: "top",
9819
9819
  maxHeight: $
9820
9820
  };
@@ -10547,17 +10547,17 @@ var J5 = process.env.NODE_ENV === "production" ? {
10547
10547
  if (n && A.onChange) {
10548
10548
  var $ = n.option, K = n.options, Y = n.removedValue, X = n.removedValues, le = n.value, de = function(ie) {
10549
10549
  return Array.isArray(ie) ? null : ie;
10550
- }, P = Y || $ || de(le), G = P ? g(P) : "", j = K || X || void 0, W = j ? j.map(g) : [], ee = oe({
10550
+ }, M = Y || $ || de(le), G = M ? g(M) : "", j = K || X || void 0, W = j ? j.map(g) : [], ee = oe({
10551
10551
  // multiSelected items are usually items that have already been selected
10552
10552
  // or set by the user as a default value so we assume they are not disabled
10553
- isDisabled: P && d(P, l),
10553
+ isDisabled: M && d(M, l),
10554
10554
  label: G,
10555
10555
  labels: W
10556
10556
  }, n);
10557
10557
  Z = A.onChange(ee);
10558
10558
  }
10559
10559
  return Z;
10560
- }, [n, A, d, l, g]), R = Me(function() {
10560
+ }, [n, A, d, l, g]), L = Me(function() {
10561
10561
  var Z = "", $ = r || o, K = !!(r && l && l.includes(r));
10562
10562
  if ($ && A.onFocus) {
10563
10563
  var Y = {
@@ -10573,7 +10573,7 @@ var J5 = process.env.NODE_ENV === "production" ? {
10573
10573
  Z = A.onFocus(Y);
10574
10574
  }
10575
10575
  return Z;
10576
- }, [r, o, g, d, A, i, l, u]), O = Me(function() {
10576
+ }, [r, o, g, d, A, i, l, u]), R = Me(function() {
10577
10577
  var Z = "";
10578
10578
  if (p && v.length && !C && A.onFilter) {
10579
10579
  var $ = m({
@@ -10585,7 +10585,7 @@ var J5 = process.env.NODE_ENV === "production" ? {
10585
10585
  });
10586
10586
  }
10587
10587
  return Z;
10588
- }, [i, I, p, A, v, m, C]), L = (n == null ? void 0 : n.action) === "initial-input-focus", M = Me(function() {
10588
+ }, [i, I, p, A, v, m, C]), O = (n == null ? void 0 : n.action) === "initial-input-focus", k = Me(function() {
10589
10589
  var Z = "";
10590
10590
  if (A.guidance) {
10591
10591
  var $ = o ? "value" : p ? "menu" : "input";
@@ -10596,27 +10596,27 @@ var J5 = process.env.NODE_ENV === "production" ? {
10596
10596
  isMulti: b,
10597
10597
  isSearchable: f,
10598
10598
  tabSelectsValue: x,
10599
- isInitialFocus: L
10599
+ isInitialFocus: O
10600
10600
  });
10601
10601
  }
10602
10602
  return Z;
10603
- }, [E, r, o, b, d, f, p, A, l, x, L]), B = ae(ya, null, ae("span", {
10603
+ }, [E, r, o, b, d, f, p, A, l, x, O]), B = ae(ya, null, ae("span", {
10604
10604
  id: "aria-selection"
10605
10605
  }, T), ae("span", {
10606
10606
  id: "aria-focused"
10607
- }, R), ae("span", {
10607
+ }, L), ae("span", {
10608
10608
  id: "aria-results"
10609
- }, O), ae("span", {
10609
+ }, R), ae("span", {
10610
10610
  id: "aria-guidance"
10611
- }, M));
10611
+ }, k));
10612
10612
  return ae(ya, null, ae(wu, {
10613
10613
  id: a
10614
- }, L && B), ae(wu, {
10614
+ }, O && B), ae(wu, {
10615
10615
  "aria-live": w,
10616
10616
  "aria-atomic": "false",
10617
10617
  "aria-relevant": "additions text",
10618
10618
  role: "log"
10619
- }, s && !L && B));
10619
+ }, s && !O && B));
10620
10620
  }, ex = K5, nc = [{
10621
10621
  base: "A",
10622
10622
  letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
@@ -11898,16 +11898,16 @@ var ep = function(t) {
11898
11898
  }), v);
11899
11899
  if (f)
11900
11900
  return x.map(function(A, T) {
11901
- var R = A === C, O = "".concat(o.getOptionLabel(A), "-").concat(o.getOptionValue(A));
11901
+ var L = A === C, R = "".concat(o.getOptionLabel(A), "-").concat(o.getOptionValue(A));
11902
11902
  return /* @__PURE__ */ F.createElement(s, ce({}, g, {
11903
11903
  components: {
11904
11904
  Container: l,
11905
11905
  Label: c,
11906
11906
  Remove: a
11907
11907
  },
11908
- isFocused: R,
11908
+ isFocused: L,
11909
11909
  isDisabled: d,
11910
- key: O,
11910
+ key: R,
11911
11911
  index: T,
11912
11912
  removeProps: {
11913
11913
  onClick: function() {
@@ -11916,8 +11916,8 @@ var ep = function(t) {
11916
11916
  onTouchEnd: function() {
11917
11917
  return o.removeValue(A);
11918
11918
  },
11919
- onMouseDown: function(M) {
11920
- M.preventDefault();
11919
+ onMouseDown: function(k) {
11920
+ k.preventDefault();
11921
11921
  }
11922
11922
  },
11923
11923
  data: A
@@ -11991,10 +11991,10 @@ var ep = function(t) {
11991
11991
  }, {
11992
11992
  key: "renderMenu",
11993
11993
  value: function() {
11994
- var o = this, i = this.getComponents(), s = i.Group, l = i.GroupHeading, c = i.Menu, a = i.MenuList, u = i.MenuPortal, h = i.LoadingMessage, g = i.NoOptionsMessage, I = i.Option, b = this.commonProps, d = this.state.focusedOption, f = this.props, p = f.captureMenuScroll, v = f.inputValue, m = f.isLoading, x = f.loadingMessage, C = f.minMenuHeight, E = f.maxMenuHeight, w = f.menuIsOpen, A = f.menuPlacement, T = f.menuPosition, R = f.menuPortalTarget, O = f.menuShouldBlockScroll, L = f.menuShouldScrollIntoView, M = f.noOptionsMessage, B = f.onMenuScrollToTop, Z = f.onMenuScrollToBottom;
11994
+ var o = this, i = this.getComponents(), s = i.Group, l = i.GroupHeading, c = i.Menu, a = i.MenuList, u = i.MenuPortal, h = i.LoadingMessage, g = i.NoOptionsMessage, I = i.Option, b = this.commonProps, d = this.state.focusedOption, f = this.props, p = f.captureMenuScroll, v = f.inputValue, m = f.isLoading, x = f.loadingMessage, C = f.minMenuHeight, E = f.maxMenuHeight, w = f.menuIsOpen, A = f.menuPlacement, T = f.menuPosition, L = f.menuPortalTarget, R = f.menuShouldBlockScroll, O = f.menuShouldScrollIntoView, k = f.noOptionsMessage, B = f.onMenuScrollToTop, Z = f.onMenuScrollToBottom;
11995
11995
  if (!w) return null;
11996
11996
  var $ = function(G, j) {
11997
- var W = G.type, ee = G.data, ne = G.isDisabled, ie = G.isSelected, k = G.label, re = G.value, xe = d === ee, H = ne ? void 0 : function() {
11997
+ var W = G.type, ee = G.data, ne = G.isDisabled, ie = G.isSelected, P = G.label, re = G.value, xe = d === ee, H = ne ? void 0 : function() {
11998
11998
  return o.onOptionHover(ee);
11999
11999
  }, He = ne ? void 0 : function() {
12000
12000
  return o.selectOption(ee);
@@ -12014,7 +12014,7 @@ var ep = function(t) {
12014
12014
  isDisabled: ne,
12015
12015
  isSelected: ie,
12016
12016
  key: Ve,
12017
- label: k,
12017
+ label: P,
12018
12018
  type: W,
12019
12019
  value: re,
12020
12020
  isFocused: xe,
@@ -12022,9 +12022,9 @@ var ep = function(t) {
12022
12022
  }), o.formatOptionLabel(G.data, "menu"));
12023
12023
  }, K;
12024
12024
  if (this.hasOptions())
12025
- K = this.getCategorizedOptions().map(function(P) {
12026
- if (P.type === "group") {
12027
- var G = P.data, j = P.options, W = P.index, ee = "".concat(o.getElementId("group"), "-").concat(W), ne = "".concat(ee, "-heading");
12025
+ K = this.getCategorizedOptions().map(function(M) {
12026
+ if (M.type === "group") {
12027
+ var G = M.data, j = M.options, W = M.index, ee = "".concat(o.getElementId("group"), "-").concat(W), ne = "".concat(ee, "-heading");
12028
12028
  return /* @__PURE__ */ F.createElement(s, ce({}, b, {
12029
12029
  key: ee,
12030
12030
  data: G,
@@ -12032,14 +12032,14 @@ var ep = function(t) {
12032
12032
  Heading: l,
12033
12033
  headingProps: {
12034
12034
  id: ne,
12035
- data: P.data
12035
+ data: M.data
12036
12036
  },
12037
- label: o.formatGroupLabel(P.data)
12038
- }), P.options.map(function(ie) {
12037
+ label: o.formatGroupLabel(M.data)
12038
+ }), M.options.map(function(ie) {
12039
12039
  return $(ie, "".concat(W, "-").concat(ie.index));
12040
12040
  }));
12041
- } else if (P.type === "option")
12042
- return $(P, "".concat(P.index));
12041
+ } else if (M.type === "option")
12042
+ return $(M, "".concat(M.index));
12043
12043
  });
12044
12044
  else if (m) {
12045
12045
  var Y = x({
@@ -12048,7 +12048,7 @@ var ep = function(t) {
12048
12048
  if (Y === null) return null;
12049
12049
  K = /* @__PURE__ */ F.createElement(h, b, Y);
12050
12050
  } else {
12051
- var X = M({
12051
+ var X = k({
12052
12052
  inputValue: v
12053
12053
  });
12054
12054
  if (X === null) return null;
@@ -12059,9 +12059,9 @@ var ep = function(t) {
12059
12059
  maxMenuHeight: E,
12060
12060
  menuPlacement: A,
12061
12061
  menuPosition: T,
12062
- menuShouldScrollIntoView: L
12063
- }, de = /* @__PURE__ */ F.createElement(MI, ce({}, b, le), function(P) {
12064
- var G = P.ref, j = P.placerProps, W = j.placement, ee = j.maxHeight;
12062
+ menuShouldScrollIntoView: O
12063
+ }, de = /* @__PURE__ */ F.createElement(MI, ce({}, b, le), function(M) {
12064
+ var G = M.ref, j = M.placerProps, W = j.placement, ee = j.maxHeight;
12065
12065
  return /* @__PURE__ */ F.createElement(c, ce({}, b, le, {
12066
12066
  innerRef: G,
12067
12067
  innerProps: {
@@ -12074,11 +12074,11 @@ var ep = function(t) {
12074
12074
  captureEnabled: p,
12075
12075
  onTopArrive: B,
12076
12076
  onBottomArrive: Z,
12077
- lockEnabled: O
12077
+ lockEnabled: R
12078
12078
  }, function(ne) {
12079
12079
  return /* @__PURE__ */ F.createElement(a, ce({}, b, {
12080
- innerRef: function(k) {
12081
- o.getMenuListRef(k), ne(k);
12080
+ innerRef: function(P) {
12081
+ o.getMenuListRef(P), ne(P);
12082
12082
  },
12083
12083
  innerProps: {
12084
12084
  role: "listbox",
@@ -12091,8 +12091,8 @@ var ep = function(t) {
12091
12091
  }), K);
12092
12092
  }));
12093
12093
  });
12094
- return R || T === "fixed" ? /* @__PURE__ */ F.createElement(u, ce({}, b, {
12095
- appendTo: R,
12094
+ return L || T === "fixed" ? /* @__PURE__ */ F.createElement(u, ce({}, b, {
12095
+ appendTo: L,
12096
12096
  controlElement: this.controlRef,
12097
12097
  menuPlacement: A,
12098
12098
  menuPosition: T
@@ -12202,15 +12202,15 @@ var ep = function(t) {
12202
12202
  var T = c != null && o !== s ? {
12203
12203
  inputIsHidden: c,
12204
12204
  inputIsHiddenAfterUpdate: void 0
12205
- } : {}, R = a, O = u && h;
12206
- return u && !O && (R = {
12205
+ } : {}, L = a, R = u && h;
12206
+ return u && !R && (L = {
12207
12207
  value: Ao(p, v, v[0] || null),
12208
12208
  options: v,
12209
12209
  action: "initial-input-focus"
12210
- }, O = !h), (a == null ? void 0 : a.action) === "initial-input-focus" && (R = null), oe(oe(oe({}, m), T), {}, {
12210
+ }, R = !h), (a == null ? void 0 : a.action) === "initial-input-focus" && (L = null), oe(oe(oe({}, m), T), {}, {
12211
12211
  prevProps: o,
12212
- ariaSelection: R,
12213
- prevWasFocused: O
12212
+ ariaSelection: L,
12213
+ prevWasFocused: R
12214
12214
  });
12215
12215
  }
12216
12216
  }]), n;
@@ -12382,8 +12382,8 @@ var sp = /* @__PURE__ */ ((e) => (e.DATE = "DD/MM/YYYY", e))(sp || {}), Zx = ["d
12382
12382
  function ap(e) {
12383
12383
  var t = e.defaultOptions, n = t === void 0 ? !1 : t, r = e.cacheOptions, o = r === void 0 ? !1 : r, i = e.loadOptions;
12384
12384
  e.options;
12385
- var s = e.isLoading, l = s === void 0 ? !1 : s, c = e.onInputChange, a = e.filterOption, u = a === void 0 ? null : a, h = nn(e, Zx), g = h.inputValue, I = ye(void 0), b = ye(!1), d = J(Array.isArray(n) ? n : void 0), f = it(d, 2), p = f[0], v = f[1], m = J(typeof g < "u" ? g : ""), x = it(m, 2), C = x[0], E = x[1], w = J(n === !0), A = it(w, 2), T = A[0], R = A[1], O = J(void 0), L = it(O, 2), M = L[0], B = L[1], Z = J([]), $ = it(Z, 2), K = $[0], Y = $[1], X = J(!1), le = it(X, 2), de = le[0], P = le[1], G = J({}), j = it(G, 2), W = j[0], ee = j[1], ne = J(void 0), ie = it(ne, 2), k = ie[0], re = ie[1], xe = J(void 0), H = it(xe, 2), He = H[0], Ve = H[1];
12386
- o !== He && (ee({}), Ve(o)), n !== k && (v(Array.isArray(n) ? n : void 0), re(n)), me(function() {
12385
+ var s = e.isLoading, l = s === void 0 ? !1 : s, c = e.onInputChange, a = e.filterOption, u = a === void 0 ? null : a, h = nn(e, Zx), g = h.inputValue, I = ye(void 0), b = ye(!1), d = J(Array.isArray(n) ? n : void 0), f = it(d, 2), p = f[0], v = f[1], m = J(typeof g < "u" ? g : ""), x = it(m, 2), C = x[0], E = x[1], w = J(n === !0), A = it(w, 2), T = A[0], L = A[1], R = J(void 0), O = it(R, 2), k = O[0], B = O[1], Z = J([]), $ = it(Z, 2), K = $[0], Y = $[1], X = J(!1), le = it(X, 2), de = le[0], M = le[1], G = J({}), j = it(G, 2), W = j[0], ee = j[1], ne = J(void 0), ie = it(ne, 2), P = ie[0], re = ie[1], xe = J(void 0), H = it(xe, 2), He = H[0], Ve = H[1];
12386
+ o !== He && (ee({}), Ve(o)), n !== P && (v(Array.isArray(n) ? n : void 0), re(n)), me(function() {
12387
12387
  return b.current = !0, function() {
12388
12388
  b.current = !1;
12389
12389
  };
@@ -12397,24 +12397,24 @@ function ap(e) {
12397
12397
  }, [i]);
12398
12398
  me(function() {
12399
12399
  n === !0 && tt(C, function(Ct) {
12400
- b.current && (v(Ct || []), R(!!I.current));
12400
+ b.current && (v(Ct || []), L(!!I.current));
12401
12401
  });
12402
12402
  }, []);
12403
12403
  var nt = _e(function(Ct, lt) {
12404
12404
  var Qe = II(Ct, lt, c);
12405
12405
  if (!Qe) {
12406
- I.current = void 0, E(""), B(""), Y([]), R(!1), P(!1);
12406
+ I.current = void 0, E(""), B(""), Y([]), L(!1), M(!1);
12407
12407
  return;
12408
12408
  }
12409
12409
  if (o && W[Qe])
12410
- E(Qe), B(Qe), Y(W[Qe]), R(!1), P(!1);
12410
+ E(Qe), B(Qe), Y(W[Qe]), L(!1), M(!1);
12411
12411
  else {
12412
12412
  var _n = I.current = {};
12413
- E(Qe), R(!0), P(!M), tt(Qe, function(Vt) {
12414
- b && _n === I.current && (I.current = void 0, R(!1), B(Qe), Y(Vt || []), P(!1), ee(Vt ? oe(oe({}, W), {}, Sr({}, Qe, Vt)) : W));
12413
+ E(Qe), L(!0), M(!k), tt(Qe, function(Vt) {
12414
+ b && _n === I.current && (I.current = void 0, L(!1), B(Qe), Y(Vt || []), M(!1), ee(Vt ? oe(oe({}, W), {}, Sr({}, Qe, Vt)) : W));
12415
12415
  });
12416
12416
  }
12417
- }, [o, tt, M, W, c]), hn = de ? [] : C && M ? K : p || [];
12417
+ }, [o, tt, k, W, c]), hn = de ? [] : C && k ? K : p || [];
12418
12418
  return oe(oe({}, h), {}, {
12419
12419
  options: hn,
12420
12420
  isLoading: T || l,
@@ -12455,12 +12455,12 @@ function $x(e) {
12455
12455
  getOptionValue: p,
12456
12456
  getOptionLabel: m
12457
12457
  }) ? u(x, s(x)) : void 0;
12458
- }, [s, u, m, p, x, c, I, w]), R = Me(function() {
12458
+ }, [s, u, m, p, x, c, I, w]), L = Me(function() {
12459
12459
  return (n || !C) && T ? o === "first" ? [T].concat(Rr(I)) : [].concat(Rr(I), [T]) : I;
12460
- }, [n, o, C, T, I]), O = _e(function(L, M) {
12461
- if (M.action !== "select-option")
12462
- return b(L, M);
12463
- var B = Array.isArray(L) ? L : [L];
12460
+ }, [n, o, C, T, I]), R = _e(function(O, k) {
12461
+ if (k.action !== "select-option")
12462
+ return b(O, k);
12463
+ var B = Array.isArray(O) ? O : [O];
12464
12464
  if (B[B.length - 1] === T) {
12465
12465
  if (h) h(x);
12466
12466
  else {
@@ -12473,11 +12473,11 @@ function $x(e) {
12473
12473
  }
12474
12474
  return;
12475
12475
  }
12476
- b(L, M);
12476
+ b(O, k);
12477
12477
  }, [u, x, E, A, T, h, b, w]);
12478
12478
  return oe(oe({}, d), {}, {
12479
- options: R,
12480
- onChange: O
12479
+ options: L,
12480
+ onChange: R
12481
12481
  });
12482
12482
  }
12483
12483
  var Yx = /* @__PURE__ */ ss(function(e, t) {
@@ -12517,48 +12517,48 @@ function tE({ stackIndex: e, isScrollTarget: t, ...n }) {
12517
12517
  isApiSearchEnabled: I = !1,
12518
12518
  isInfiniteScrollable: b = !1,
12519
12519
  loadOptionsOnFocus: d = !1
12520
- } = n, { getValue: f, closeMenuOnScroll: p } = op({ options: r, isMulti: u, isScrollTarget: t }), v = (M, B, Z) => (a.current && a.current.abort("stale data"), a.current = new AbortController(), g == null ? void 0 : g(M, B, Z, a.current)), m = qx(
12521
- (M, B) => {
12522
- if (s(M), r.length > 0 && !I) {
12523
- const $ = r.filter((K) => K && typeof K == "object" && "label" in K && typeof K.label == "string" ? K.label.toLowerCase().includes(M.toLowerCase()) : !1);
12520
+ } = n, { getValue: f, closeMenuOnScroll: p } = op({ options: r, isMulti: u, isScrollTarget: t }), v = (k, B, Z) => (a.current && a.current.abort("stale data"), a.current = new AbortController(), g == null ? void 0 : g(k, B, Z, a.current)), m = qx(
12521
+ (k, B) => {
12522
+ if (s(k), r.length > 0 && !I) {
12523
+ const $ = r.filter((K) => K && typeof K == "object" && "label" in K && typeof K.label == "string" ? K.label.toLowerCase().includes(k.toLowerCase()) : !1);
12524
12524
  B($);
12525
12525
  return;
12526
12526
  }
12527
12527
  const Z = ($) => {
12528
12528
  B($), o($);
12529
12529
  };
12530
- v == null || v(M, Z, !1);
12530
+ v == null || v(k, Z, !1);
12531
12531
  },
12532
12532
  300
12533
- ), x = (M, B) => {
12534
- c(!1), !(B && "isError" in B && B.isError) && o(M);
12535
- }, C = (M) => {
12533
+ ), x = (k, B) => {
12534
+ c(!1), !(B && "isError" in B && B.isError) && o(k);
12535
+ }, C = (k) => {
12536
12536
  var B;
12537
- (B = n.onMenuScrollToBottom) == null || B.call(n, M), b && g && !l && (c(!0), v(i, x, !0));
12538
- }, E = (M, B) => {
12537
+ (B = n.onMenuScrollToBottom) == null || B.call(n, k), b && g && !l && (c(!0), v(i, x, !0));
12538
+ }, E = (k, B) => {
12539
12539
  var Z;
12540
- (Z = n.onInputChange) == null || Z.call(n, M, B), B.action === "input-change" && I && (s(M), o([]), M || (c(!0), m(M, x)));
12541
- }, w = (M) => {
12540
+ (Z = n.onInputChange) == null || Z.call(n, k, B), B.action === "input-change" && I && (s(k), o([]), k || (c(!0), m(k, x)));
12541
+ }, w = (k) => {
12542
12542
  var B;
12543
- s(""), (B = n.onBlur) == null || B.call(n, M);
12544
- }, A = (M) => {
12543
+ s(""), (B = n.onBlur) == null || B.call(n, k);
12544
+ }, A = (k) => {
12545
12545
  var B;
12546
- (B = n.onFocus) == null || B.call(n, M), !l && d && (o([]), c(!0), v == null || v(i, x, !1));
12547
- }, T = (M) => (B) => {
12546
+ (B = n.onFocus) == null || B.call(n, k), !l && d && (o([]), c(!0), v == null || v(i, x, !1));
12547
+ }, T = (k) => (B) => {
12548
12548
  var $;
12549
- const Z = B.find((K) => K.label === M);
12549
+ const Z = B.find((K) => K.label === k);
12550
12550
  !n.isMulti && Z && (($ = n.onChange) == null || $.call(n, Z, {
12551
12551
  action: "select-option",
12552
12552
  name: n.name,
12553
12553
  option: Z
12554
12554
  })), o(B), c(!1);
12555
- }, R = (M) => {
12556
- c(!0), h == null || h(M, T(M));
12557
- }, O = () => {
12555
+ }, L = (k) => {
12556
+ c(!0), h == null || h(k, T(k));
12557
+ }, R = () => {
12558
12558
  c(!0), v == null || v(i, x, !1);
12559
- }, L = h ? Jx : Ux;
12559
+ }, O = h ? Jx : Ux;
12560
12560
  return /* @__PURE__ */ y.jsx(
12561
- L,
12561
+ O,
12562
12562
  {
12563
12563
  ...n,
12564
12564
  menuShouldScrollIntoView: !1,
@@ -12569,7 +12569,7 @@ function tE({ stackIndex: e, isScrollTarget: t, ...n }) {
12569
12569
  onInputChange: E,
12570
12570
  onBlur: w,
12571
12571
  onFocus: A,
12572
- onMenuOpen: O,
12572
+ onMenuOpen: R,
12573
12573
  isLoading: l,
12574
12574
  defaultOptions: r.length ? r : n.defaultOptions || !1,
12575
12575
  styles: rp(n.styles, e),
@@ -12584,7 +12584,7 @@ function tE({ stackIndex: e, isScrollTarget: t, ...n }) {
12584
12584
  formatCreateLabel: eE,
12585
12585
  createOptionPosition: "first",
12586
12586
  allowCreateWhileLoading: !1,
12587
- onCreateOption: R,
12587
+ onCreateOption: L,
12588
12588
  options: r
12589
12589
  } : null
12590
12590
  }
@@ -12796,70 +12796,70 @@ const fE = N(Oh)`
12796
12796
  onValidationError: b
12797
12797
  }) => {
12798
12798
  const d = t ?? [], f = (o == null ? void 0 : o.validations) ?? {}, p = ye(), v = ye({}), [m, x] = J({}), { colsLength: C, colsTemplate: E, colWidth: w } = Me(() => {
12799
- let P = 0, G = "";
12799
+ let M = 0, G = "";
12800
12800
  for (const j of r) {
12801
12801
  let W = j.cols ? Number(j.cols) : 1;
12802
- isNaN(W) && (W = 1), P += W, G += `${j.cols ?? W}fr `;
12802
+ isNaN(W) && (W = 1), M += W, G += `${j.cols ?? W}fr `;
12803
12803
  }
12804
- return s || (P += 0.5, G += "0.5fr"), {
12805
- colsLength: P,
12804
+ return s || (M += 0.5, G += "0.5fr"), {
12805
+ colsLength: M,
12806
12806
  colsTemplate: G.trim(),
12807
12807
  colWidth: `${isNaN(l) ? fp : l}px`
12808
12808
  };
12809
12809
  }, [r, l, s]), { fieldDependency: A, fieldConfigs: T } = Me(() => {
12810
- const P = {}, G = {};
12810
+ const M = {}, G = {};
12811
12811
  for (const j of r) {
12812
12812
  if (!j.valueConfig)
12813
12813
  continue;
12814
12814
  G[j.name] = j.valueConfig;
12815
12815
  const W = j.valueConfig.columnNames;
12816
12816
  for (const ee of W)
12817
- P[ee] || (P[ee] = []), P[ee].push(j.name);
12817
+ M[ee] || (M[ee] = []), M[ee].push(j.name);
12818
12818
  }
12819
12819
  return {
12820
- fieldDependency: P,
12820
+ fieldDependency: M,
12821
12821
  fieldConfigs: G
12822
12822
  };
12823
12823
  }, [r]);
12824
12824
  me(() => {
12825
12825
  if (t)
12826
12826
  return;
12827
- const P = [];
12827
+ const M = [];
12828
12828
  for (let G = 0; G < i; G++) {
12829
12829
  const j = ou();
12830
- P.push({ [nr]: j });
12830
+ M.push({ [nr]: j });
12831
12831
  }
12832
- g(P);
12832
+ g(M);
12833
12833
  }, [t, g, i]);
12834
- const R = () => {
12835
- const P = Object.entries(v.current).filter((G) => !!G[1])[0];
12836
- return (P == null ? void 0 : P[1]) ?? "";
12837
- }, O = () => {
12838
- const P = {
12834
+ const L = () => {
12835
+ const M = Object.entries(v.current).filter((G) => !!G[1])[0];
12836
+ return (M == null ? void 0 : M[1]) ?? "";
12837
+ }, R = () => {
12838
+ const M = {
12839
12839
  [nr]: ou()
12840
12840
  };
12841
- g([...d, P]);
12842
- }, L = (P) => {
12843
- const G = d.filter((j) => j[nr] !== P);
12841
+ g([...d, M]);
12842
+ }, O = (M) => {
12843
+ const G = d.filter((j) => j[nr] !== M);
12844
12844
  g(G), x((j) => ({
12845
12845
  ...j,
12846
- [P]: {}
12846
+ [M]: {}
12847
12847
  }));
12848
12848
  for (const j in v.current)
12849
- j.startsWith(`${P}.`) && delete v.current[j];
12850
- b == null || b(e, R());
12851
- }, M = (P, { columnNames: G = [], operationType: j }) => {
12852
- const W = G.map((ee) => P[ee]);
12849
+ j.startsWith(`${M}.`) && delete v.current[j];
12850
+ b == null || b(e, L());
12851
+ }, k = (M, { columnNames: G = [], operationType: j }) => {
12852
+ const W = G.map((ee) => M[ee]);
12853
12853
  return "" + iu(W, j);
12854
- }, B = (P, G) => {
12855
- const j = d.map((W) => P !== W[nr] ? W : {
12854
+ }, B = (M, G) => {
12855
+ const j = d.map((W) => M !== W[nr] ? W : {
12856
12856
  ...W,
12857
12857
  ...G
12858
12858
  });
12859
12859
  g(j);
12860
- }, Z = (P, G) => {
12860
+ }, Z = (M, G) => {
12861
12861
  const j = d.map((W) => {
12862
- if (P !== W[nr])
12862
+ if (M !== W[nr])
12863
12863
  return W;
12864
12864
  const ee = { ...W };
12865
12865
  for (const ne of G)
@@ -12867,21 +12867,21 @@ const fE = N(Oh)`
12867
12867
  return ee;
12868
12868
  });
12869
12869
  g(j);
12870
- }, $ = (P, G, j, W) => {
12870
+ }, $ = (M, G, j, W) => {
12871
12871
  var ie;
12872
12872
  const ee = ((ie = W == null ? void 0 : W.target) == null ? void 0 : ie.value) ?? "", ne = {
12873
12873
  ...j,
12874
12874
  [G]: ee
12875
12875
  };
12876
12876
  if (A[G])
12877
- for (const k of A[G]) {
12878
- const re = M(ne, T[k]);
12879
- ne[k] = re;
12877
+ for (const P of A[G]) {
12878
+ const re = k(ne, T[P]);
12879
+ ne[P] = re;
12880
12880
  }
12881
- B(P, ne);
12882
- }, K = (P, G, j) => {
12883
- B(P, { [G]: j });
12884
- }, Y = (P, G, j, W) => {
12881
+ B(M, ne);
12882
+ }, K = (M, G, j) => {
12883
+ B(M, { [G]: j });
12884
+ }, Y = (M, G, j, W) => {
12885
12885
  if (j && typeof j == "object" && "value" in j && typeof j.value == "string" && typeof W.name < "u") {
12886
12886
  const ee = "prefillValues" in j && j.prefillValues, ne = {
12887
12887
  ...G,
@@ -12890,31 +12890,31 @@ const fE = N(Oh)`
12890
12890
  };
12891
12891
  for (const ie in ne)
12892
12892
  if (A[ie])
12893
- for (const k of A[ie]) {
12894
- const re = M(ne, T[k]);
12895
- ne[k] = re;
12893
+ for (const P of A[ie]) {
12894
+ const re = k(ne, T[P]);
12895
+ ne[P] = re;
12896
12896
  }
12897
- B(P, ne);
12897
+ B(M, ne);
12898
12898
  }
12899
- (W == null ? void 0 : W.action) === "clear" && W.name && Z(P, [W.name]);
12900
- }, X = (P, G, j) => {
12901
- B(P, { [G]: (j == null ? void 0 : j.toISOString()) ?? "" });
12902
- }, le = (P, G, j, W) => {
12899
+ (W == null ? void 0 : W.action) === "clear" && W.name && Z(M, [W.name]);
12900
+ }, X = (M, G, j) => {
12901
+ B(M, { [G]: (j == null ? void 0 : j.toISOString()) ?? "" });
12902
+ }, le = (M, G, j, W) => {
12903
12903
  W && x((ee) => {
12904
- const ne = ee[P] ?? {};
12905
- return { ...ee, [P]: { ...ne, [G]: j } };
12904
+ const ne = ee[M] ?? {};
12905
+ return { ...ee, [M]: { ...ne, [G]: j } };
12906
12906
  }), v.current = {
12907
12907
  ...v.current,
12908
- [`${P}.${G}`]: typeof j == "string" ? j : ""
12909
- }, b == null || b(e, R());
12910
- }, de = (P) => p.current === P;
12908
+ [`${M}.${G}`]: typeof j == "string" ? j : ""
12909
+ }, b == null || b(e, L());
12910
+ }, de = (M) => p.current === M;
12911
12911
  return /* @__PURE__ */ y.jsxs(nE, { children: [
12912
12912
  /* @__PURE__ */ y.jsx(rE, { ref: p, children: /* @__PURE__ */ y.jsxs(oE, { gridColumns: E, minWidth: `calc( ${C} * ${w} )`, children: [
12913
- /* @__PURE__ */ y.jsx(sE, { children: r.map(({ name: P, label: G, isRequired: j }) => /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(dp, { label: G, isRequired: j }) }, P)) }),
12914
- d.map(({ [nr]: P, ...G }) => /* @__PURE__ */ y.jsxs(lp, { children: [
12913
+ /* @__PURE__ */ y.jsx(sE, { children: r.map(({ name: M, label: G, isRequired: j }) => /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(dp, { label: G, isRequired: j }) }, M)) }),
12914
+ d.map(({ [nr]: M, ...G }) => /* @__PURE__ */ y.jsxs(lp, { children: [
12915
12915
  r.map(({ name: j, key: W, ...ee }) => {
12916
12916
  var ne;
12917
- return /* @__PURE__ */ y.jsx(fa, { hasError: !!((ne = m == null ? void 0 : m[P]) != null && ne[j]), children: /* @__PURE__ */ y.jsx(
12917
+ return /* @__PURE__ */ y.jsx(fa, { hasError: !!((ne = m == null ? void 0 : m[M]) != null && ne[j]), children: /* @__PURE__ */ y.jsx(
12918
12918
  Wo,
12919
12919
  {
12920
12920
  name: j,
@@ -12925,11 +12925,11 @@ const fE = N(Oh)`
12925
12925
  hideHelperText: !0,
12926
12926
  validation: f == null ? void 0 : f[j],
12927
12927
  onFocus: I,
12928
- inputChangeHandler: (ie) => $(P, j, G, ie),
12929
- checkboxChangeHandler: (...ie) => K(P, j, ie[1]),
12930
- selectChangeHandler: (...ie) => Y(P, G, ...ie),
12931
- dateChangeHandler: (ie, k) => X(P, ie, k),
12932
- onValidationError: (...ie) => le(P, ...ie),
12928
+ inputChangeHandler: (ie) => $(M, j, G, ie),
12929
+ checkboxChangeHandler: (...ie) => K(M, j, ie[1]),
12930
+ selectChangeHandler: (...ie) => Y(M, G, ...ie),
12931
+ dateChangeHandler: (ie, P) => X(M, ie, P),
12932
+ onValidationError: (...ie) => le(M, ...ie),
12933
12933
  fetchConfig: a == null ? void 0 : a[j],
12934
12934
  createConfig: u == null ? void 0 : u[j],
12935
12935
  isScrollTarget: de,
@@ -12940,29 +12940,29 @@ const fE = N(Oh)`
12940
12940
  }
12941
12941
  ) }, j ?? W);
12942
12942
  }),
12943
- s ? null : /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(z, { width: "100%", height: "100%", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y.jsx(up, { onClick: () => L(P), children: /* @__PURE__ */ y.jsx(hE, {}) }) }) })
12944
- ] }, P))
12943
+ s ? null : /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(z, { width: "100%", height: "100%", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y.jsx(up, { onClick: () => O(M), children: /* @__PURE__ */ y.jsx(hE, {}) }) }) })
12944
+ ] }, M))
12945
12945
  ] }) }),
12946
12946
  /* @__PURE__ */ y.jsxs(iE, { children: [
12947
- s ? null : /* @__PURE__ */ y.jsxs(aE, { onClick: O, children: [
12947
+ s ? null : /* @__PURE__ */ y.jsxs(aE, { onClick: R, children: [
12948
12948
  /* @__PURE__ */ y.jsx(cp, {}),
12949
12949
  /* @__PURE__ */ y.jsx(pe, { children: "Add Line" })
12950
12950
  ] }),
12951
12951
  c.length ? /* @__PURE__ */ y.jsx(cE, { children: c.map(
12952
- ({ label: P, columnName: G, operationType: j, prefix: W = "", prefixKey: ee, suffix: ne = "", suffixKey: ie }) => /* @__PURE__ */ y.jsxs(lE, { children: [
12953
- /* @__PURE__ */ y.jsx(pe, { fontWeight: 500, children: P }),
12952
+ ({ label: M, columnName: G, operationType: j, prefix: W = "", prefixKey: ee, suffix: ne = "", suffixKey: ie }) => /* @__PURE__ */ y.jsxs(lE, { children: [
12953
+ /* @__PURE__ */ y.jsx(pe, { fontWeight: 500, children: M }),
12954
12954
  /* @__PURE__ */ y.jsxs(pe, { children: [
12955
12955
  /* @__PURE__ */ y.jsxs("span", { children: [
12956
12956
  n[ee] ?? W,
12957
12957
  " "
12958
12958
  ] }),
12959
12959
  /* @__PURE__ */ y.jsx("span", { children: iu(
12960
- d.map((k) => k[G]),
12960
+ d.map((P) => P[G]),
12961
12961
  j
12962
12962
  ) }),
12963
12963
  /* @__PURE__ */ y.jsx("span", { children: n[ie] ?? ne })
12964
12964
  ] })
12965
- ] }, P)
12965
+ ] }, M)
12966
12966
  ) }) : null
12967
12967
  ] })
12968
12968
  ] });
@@ -13230,57 +13230,57 @@ const gE = N(be)`
13230
13230
  labelSpacing: E = 1,
13231
13231
  showGlobalLoader: w = !1,
13232
13232
  hideHelperText: A = !1,
13233
- meta: { isExpandable: T = v === "table", isExpanded: R = !0 } = {}
13234
- } = g, [O, L] = J(!1), [M, B] = J(""), [Z, $] = J(R);
13233
+ meta: { isExpandable: T = v === "table", isExpanded: L = !0 } = {}
13234
+ } = g, [R, O] = J(!1), [k, B] = J(""), [Z, $] = J(L);
13235
13235
  me(() => {
13236
- O || Y(g.value, !1);
13237
- }, [O, g.value]);
13238
- const K = (k) => {
13236
+ R || Y(g.value, !1);
13237
+ }, [R, g.value]);
13238
+ const K = (P) => {
13239
13239
  var re;
13240
- k && !O && L(!0), (re = g.onFocus) == null || re.call(g, k);
13240
+ P && !R && O(!0), (re = g.onFocus) == null || re.call(g, P);
13241
13241
  };
13242
- function Y(k, re = !0, xe) {
13242
+ function Y(P, re = !0, xe) {
13243
13243
  let H = "";
13244
- if ((I != null && I.isRequired || C) && (H = k ? "" : Pu, !k && typeof (I == null ? void 0 : I.isRequired) == "function")) {
13245
- const Ve = I.isRequired(k);
13244
+ if ((I != null && I.isRequired || C) && (H = P ? "" : Pu, !P && typeof (I == null ? void 0 : I.isRequired) == "function")) {
13245
+ const Ve = I.isRequired(P);
13246
13246
  Ve && typeof Ve == "boolean" ? H = Pu : Ve && (H = Ve);
13247
13247
  }
13248
13248
  let He = { id: d, name: p, label: f };
13249
- if (g.type === "date" ? He = { ...He, disableFuture: g.disableFuture, disablePast: g.disablePast } : g.type === "number" ? He = { ...He, min: g.min, max: g.max } : g.type === "text" && g.multiline && (He = { ...He, maxCharacters: g.maxCharacters }), k && !H && (I != null && I.validate)) {
13250
- const Ve = I.validate(k, { ...He, ...xe });
13249
+ if (g.type === "date" ? He = { ...He, disableFuture: g.disableFuture, disablePast: g.disablePast } : g.type === "number" ? He = { ...He, min: g.min, max: g.max } : g.type === "text" && g.multiline && (He = { ...He, maxCharacters: g.maxCharacters }), P && !H && (I != null && I.validate)) {
13250
+ const Ve = I.validate(P, { ...He, ...xe });
13251
13251
  typeof Ve == "boolean" && Ve === !1 ? H = Wx : typeof Ve == "string" && (H = Ve);
13252
13252
  }
13253
13253
  re && B(H), s == null || s(p, H, re);
13254
13254
  }
13255
- const X = (k) => {
13255
+ const X = (P) => {
13256
13256
  var re;
13257
- O || L(!0), (re = g.onBlur) == null || re.call(g, k), O && m && Y(g.value);
13258
- }, le = () => A ? null : g.helperText ? /* @__PURE__ */ y.jsx(ju, { children: b }) : O && M ? /* @__PURE__ */ y.jsx(ju, { className: "helper--error", children: M }) : null, de = (k) => {
13259
- k && !O && L(!0), l == null || l(k), O && x && Y(k.target.value);
13260
- }, P = (k, re) => {
13261
- k && !O && L(!0), h == null || h(k, re), O && x && Y(re);
13262
- }, G = (k, re) => {
13263
- c == null || c(k, re), k && !O && L(!0), k && typeof k == "object" && "value" in k && O && x && Y(k.value);
13264
- }, j = (k, re) => {
13265
- a == null || a(p, k, re), k && !O && L(!0), O && x && Y(k);
13266
- }, W = (k) => {
13267
- u == null || u(p, k);
13268
- }, ee = (k, re) => {
13269
- O && (s == null || s(k, re), B(typeof re == "string" ? re : ""));
13270
- }, ne = (k) => {
13257
+ R || O(!0), (re = g.onBlur) == null || re.call(g, P), R && m && Y(g.value);
13258
+ }, le = () => A ? null : g.helperText ? /* @__PURE__ */ y.jsx(ju, { children: b }) : R && k ? /* @__PURE__ */ y.jsx(ju, { className: "helper--error", children: k }) : null, de = (P) => {
13259
+ P && !R && O(!0), l == null || l(P), R && x && Y(P.target.value);
13260
+ }, M = (P, re) => {
13261
+ P && !R && O(!0), h == null || h(P, re), R && x && Y(re);
13262
+ }, G = (P, re) => {
13263
+ c == null || c(P, re), P && !R && O(!0), P && typeof P == "object" && "value" in P && R && x && Y(P.value);
13264
+ }, j = (P, re) => {
13265
+ a == null || a(p, P, re), P && !R && O(!0), R && x && Y(P);
13266
+ }, W = (P) => {
13267
+ u == null || u(p, P);
13268
+ }, ee = (P, re) => {
13269
+ R && (s == null || s(P, re), B(typeof re == "string" ? re : ""));
13270
+ }, ne = (P) => {
13271
13271
  $((re) => !re);
13272
- }, ie = (k) => {
13272
+ }, ie = (P) => {
13273
13273
  if (w)
13274
13274
  return /* @__PURE__ */ y.jsx(Cc, { variant: "rounded", height: 29.69, animation: "wave" });
13275
- switch (k.type) {
13275
+ switch (P.type) {
13276
13276
  case "select":
13277
13277
  return /* @__PURE__ */ y.jsx(Bu, { children: /* @__PURE__ */ y.jsx(
13278
13278
  Ho,
13279
13279
  {
13280
- ...k,
13280
+ ...P,
13281
13281
  stackIndex: o,
13282
13282
  isScrollTarget: i,
13283
- className: `formField__select ${M && O ? "formField__select--error" : ""} ${k.className || ""}`,
13283
+ className: `formField__select ${k && R ? "formField__select--error" : ""} ${P.className || ""}`,
13284
13284
  classNamePrefix: "hiverFormField",
13285
13285
  onBlur: X,
13286
13286
  onChange: G,
@@ -13292,10 +13292,10 @@ const gE = N(be)`
13292
13292
  return /* @__PURE__ */ y.jsx(Bu, { children: /* @__PURE__ */ y.jsx(
13293
13293
  tE,
13294
13294
  {
13295
- ...k,
13295
+ ...P,
13296
13296
  stackIndex: o,
13297
13297
  isScrollTarget: i,
13298
- className: `formField__select ${M && O ? "formField__select--error" : ""} ${k.className || ""}`,
13298
+ className: `formField__select ${k && R ? "formField__select--error" : ""} ${P.className || ""}`,
13299
13299
  classNamePrefix: "hiverFormField",
13300
13300
  onBlur: X,
13301
13301
  onChange: G,
@@ -13309,20 +13309,20 @@ const gE = N(be)`
13309
13309
  return /* @__PURE__ */ y.jsx(
13310
13310
  dE,
13311
13311
  {
13312
- ...k,
13312
+ ...P,
13313
13313
  label: void 0,
13314
13314
  onBlur: X,
13315
13315
  onFocus: K,
13316
13316
  onChange: j,
13317
- error: !!(M && O)
13317
+ error: !!(k && R)
13318
13318
  }
13319
13319
  );
13320
13320
  case "table":
13321
13321
  return /* @__PURE__ */ y.jsx(
13322
13322
  Ps,
13323
13323
  {
13324
- ...k,
13325
- value: k.value,
13324
+ ...P,
13325
+ value: P.value,
13326
13326
  onChange: W,
13327
13327
  onFocus: K,
13328
13328
  onValidationError: ee,
@@ -13332,7 +13332,7 @@ const gE = N(be)`
13332
13332
  }
13333
13333
  );
13334
13334
  case "checkbox":
13335
- return /* @__PURE__ */ y.jsx(pE, { ...k, onChange: P, onFocus: K, onBlur: X });
13335
+ return /* @__PURE__ */ y.jsx(pE, { ...P, onChange: M, onFocus: K, onBlur: X });
13336
13336
  default:
13337
13337
  return /* @__PURE__ */ y.jsx(
13338
13338
  vE,
@@ -13340,18 +13340,18 @@ const gE = N(be)`
13340
13340
  variant: "outlined",
13341
13341
  fullWidth: !0,
13342
13342
  id: d,
13343
- ...k,
13344
- value: k.value,
13343
+ ...P,
13344
+ value: P.value,
13345
13345
  label: void 0,
13346
13346
  onBlur: X,
13347
13347
  onChange: de,
13348
13348
  onFocus: K,
13349
- error: !!(M && O),
13349
+ error: !!(k && R),
13350
13350
  inputProps: {
13351
- type: k.type,
13352
- min: k.min,
13353
- max: k.max,
13354
- ...k.inputProps
13351
+ type: P.type,
13352
+ min: P.min,
13353
+ max: P.max,
13354
+ ...P.inputProps
13355
13355
  }
13356
13356
  }
13357
13357
  );
@@ -13701,11 +13701,11 @@ const gE = N(be)`
13701
13701
  s.meta && "showAvatar" in s.meta && typeof s.meta.showAvatar == "boolean" && (b = s.meta.showAvatar);
13702
13702
  const d = ((w = I.optionsMap) == null ? void 0 : w[g]) || {}, f = !e.isScrollToBottomEvent && (!d || i !== d.searchTerm), p = f ? [] : d.options || [], v = f ? !0 : d.hasMore ?? !0, m = f ? 0 : d.currentPage ?? 0, { enabled: x, limit: C } = u, E = C || 10;
13703
13703
  try {
13704
- let R;
13705
- const O = h == null ? void 0 : h.signal, L = x ? { pageNumber: m + 1, searchTerm: i, limit: E, enabled: x } : null;
13706
- if (v && (R = await BE({ fieldName: r, formId: o }, { pagination: L || {}, args: c, interfaceId: a })), O != null && O.aborted)
13707
- throw O.reason;
13708
- if (!R || !R.data || !("data" in R.data) || !Array.isArray(R.data.data) || !R.data.data.length) {
13704
+ let L;
13705
+ const R = h == null ? void 0 : h.signal, O = x ? { pageNumber: m + 1, searchTerm: i, limit: E, enabled: x } : null;
13706
+ if (v && (L = await BE({ fieldName: r, formId: o }, { pagination: O || {}, args: c, interfaceId: a })), R != null && R.aborted)
13707
+ throw R.reason;
13708
+ if (!L || !L.data || !("data" in L.data) || !Array.isArray(L.data.data) || !L.data.data.length) {
13709
13709
  const { common: Y } = t(), X = (A = Y.optionsMap) == null ? void 0 : A[g];
13710
13710
  return l == null || l(X.options ?? []), {
13711
13711
  ...X,
@@ -13714,7 +13714,7 @@ const gE = N(be)`
13714
13714
  hasMore: !1
13715
13715
  };
13716
13716
  }
13717
- const B = R.data.data.map((Y) => b ? {
13717
+ const B = L.data.data.map((Y) => b ? {
13718
13718
  ...Y,
13719
13719
  avatarUrl: Y.avatarUrl || x3
13720
13720
  } : (delete Y.avatarUrl, Y)), Z = [...p, ...B], $ = x ? B.length >= E : !1, K = c0(Z, (Y) => Y.value);
@@ -13727,9 +13727,9 @@ const gE = N(be)`
13727
13727
  hasMore: $,
13728
13728
  key: g
13729
13729
  };
13730
- } catch (R) {
13731
- const { common: O } = t(), L = ((T = O.optionsMap) == null ? void 0 : T[g]) || {};
13732
- return l == null || l(L.options ?? []), n(R);
13730
+ } catch (L) {
13731
+ const { common: R } = t(), O = ((T = R.optionsMap) == null ? void 0 : T[g]) || {};
13732
+ return l == null || l(O.options ?? []), n(L);
13733
13733
  }
13734
13734
  },
13735
13735
  {
@@ -13791,10 +13791,10 @@ const gE = N(be)`
13791
13791
  conversationId: r
13792
13792
  }
13793
13793
  });
13794
- }, QE = (e, t, n = "email", r) => {
13795
- const o = new URLSearchParams();
13796
- return o.append("channel_type", n), ht({
13797
- url: `${UE.replace(":id", e)}?${o.toString()}`,
13794
+ }, QE = (e, t, n = "email", r, o) => {
13795
+ const i = new URLSearchParams();
13796
+ return i.append("channel_type", n), o && i.append("senderEmail", o), ht({
13797
+ url: `${UE.replace(":id", e)}?${i.toString()}`,
13798
13798
  method: yt.POST,
13799
13799
  data: {
13800
13800
  externalResourceId: t,
@@ -14042,14 +14042,15 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14042
14042
  id: e,
14043
14043
  externalResourceId: t,
14044
14044
  channelType: n,
14045
- conversationId: r
14046
- }, { rejectWithValue: o }) => {
14047
- var i;
14045
+ conversationId: r,
14046
+ email: o
14047
+ }, { rejectWithValue: i }) => {
14048
+ var s;
14048
14049
  try {
14049
- await QE(e, t, n, r);
14050
- } catch (s) {
14051
- return o({
14052
- status: (i = s.response) == null ? void 0 : i.status
14050
+ await QE(e, t, n, r, o);
14051
+ } catch (l) {
14052
+ return i({
14053
+ status: (s = l.response) == null ? void 0 : s.status
14053
14054
  });
14054
14055
  }
14055
14056
  }
@@ -14167,13 +14168,13 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14167
14168
  isCardLevelError: I,
14168
14169
  fieldName: b,
14169
14170
  showErrorIcon: d
14170
- } = e, f = ye(null), p = ye(null), { email: v, currentSmIds: m, conversationId: x, sendTrackingEvent: C, connectorFunctions: E } = $e(Je), w = we(_4), A = w == null ? void 0 : w[g], [T, R] = J(!1), O = Me(() => {
14171
+ } = e, f = ye(null), p = ye(null), { email: v, currentSmIds: m, conversationId: x, sendTrackingEvent: C, connectorFunctions: E } = $e(Je), w = we(_4), A = w == null ? void 0 : w[g], [T, L] = J(!1), R = Me(() => {
14171
14172
  if (n && I) {
14172
14173
  const { error_message: X } = Xu(n);
14173
14174
  return X;
14174
14175
  }
14175
14176
  return c ? Af.replace(/{{connector_name}}/g, (a == null ? void 0 : a[0]) || "") : Ml;
14176
- }, [n, c, a, I]), L = _e(() => {
14177
+ }, [n, c, a, I]), O = _e(() => {
14177
14178
  const X = n || S4(A, a), { error_code: le, error_message: de } = Xu(X);
14178
14179
  C == null || C(Om, {
14179
14180
  sm_ids: m,
@@ -14199,17 +14200,17 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14199
14200
  h == null ? void 0 : h.externalResourceId
14200
14201
  ]);
14201
14202
  me(() => {
14202
- (n && I || c && A) && L();
14203
- }, [L, A, c, n, I]), me(() => {
14203
+ (n && I || c && A) && O();
14204
+ }, [O, A, c, n, I]), me(() => {
14204
14205
  const X = r ? p.current : f.current;
14205
14206
  if (X) {
14206
14207
  const le = X.scrollHeight > X.clientHeight || X.scrollWidth > X.clientWidth;
14207
- R(le);
14208
+ L(le);
14208
14209
  }
14209
14210
  }, [t, r]);
14210
- const M = o == Ba.NOT_FOUND;
14211
- let B = M ? Ei : t;
14212
- s === "date" && B && !M && (B = new Date(parseInt(B)).toLocaleDateString(navigator.language));
14211
+ const k = o == Ba.NOT_FOUND;
14212
+ let B = k ? Ei : t;
14213
+ s === "date" && B && !k && (B = new Date(parseInt(B)).toLocaleDateString(navigator.language));
14213
14214
  const Z = !!n || c, $ = () => {
14214
14215
  l ? E == null || E.redirectToAdmin() : window.open(db, "_blank");
14215
14216
  }, K = () => {
@@ -14221,12 +14222,12 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14221
14222
  }, Y = (X) => {
14222
14223
  const le = /<>(.*?)<>/g, de = X.split(le);
14223
14224
  return /* @__PURE__ */ y.jsx(Ae.Fragment, { children: de.map(
14224
- (P, G) => G % 2 === 1 ? /* @__PURE__ */ y.jsx(tv, { variant: "body2", onClick: $, children: P }, G) : P
14225
+ (M, G) => G % 2 === 1 ? /* @__PURE__ */ y.jsx(tv, { variant: "body2", onClick: $, children: M }, G) : M
14225
14226
  ) });
14226
14227
  };
14227
14228
  return i ? /* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 16, animation: "wave", margin: "4px 0 0 0" }) : Z ? /* @__PURE__ */ y.jsxs(Nf, { gap: "7px", children: [
14228
14229
  d ? /* @__PURE__ */ y.jsx(z, { marginTop: "3px", flexShrink: "0", children: /* @__PURE__ */ y.jsx("img", { src: T4, width: "18px", height: "18px" }) }) : null,
14229
- /* @__PURE__ */ y.jsx(kf, { variant: "body2", children: O ? Y(O) : Ml })
14230
+ /* @__PURE__ */ y.jsx(kf, { variant: "body2", children: R ? Y(R) : Ml })
14230
14231
  ] }) : /* @__PURE__ */ y.jsx(We, { title: T ? B : null, placement: "bottom", children: r ? /* @__PURE__ */ y.jsx(
14231
14232
  Pf,
14232
14233
  {
@@ -14265,21 +14266,21 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14265
14266
  ] })
14266
14267
  }
14267
14268
  ), Cp = (e) => {
14268
- var P, G, j;
14269
- const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, l = 24, c = (o == null ? void 0 : o[t]) === te.IDLE, a = (o == null ? void 0 : o[t]) === te.LOADING, u = (o == null ? void 0 : o[t]) === te.FAILED, { cardType: h, data: g, cardErrorMessage: I, redirectToAdminTab: b, connectorNames: d } = (r == null ? void 0 : r[t]) || {}, f = h === "flat", [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(!1), [w, A] = J(!1), T = ((P = g == null ? void 0 : g.listItems) == null ? void 0 : P.statusCode) !== 401, R = Me(() => {
14269
+ var M, G, j;
14270
+ const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, l = 24, c = (o == null ? void 0 : o[t]) === te.IDLE, a = (o == null ? void 0 : o[t]) === te.LOADING, u = (o == null ? void 0 : o[t]) === te.FAILED, { cardType: h, data: g, cardErrorMessage: I, redirectToAdminTab: b, connectorNames: d } = (r == null ? void 0 : r[t]) || {}, f = h === "flat", [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(!1), [w, A] = J(!1), T = ((M = g == null ? void 0 : g.listItems) == null ? void 0 : M.statusCode) !== 401, L = Me(() => {
14270
14271
  var W, ee, ne, ie;
14271
14272
  return f && ((W = g == null ? void 0 : g.flatDisplay) != null && W.data) ? g.flatDisplay.data : !f && ((ie = (ne = (ee = g == null ? void 0 : g.listItems) == null ? void 0 : ee.fields) == null ? void 0 : ne[0]) != null && ie.data) ? g.listItems.fields[0].data : [];
14272
- }, [f, g]), O = Me(() => R == null ? void 0 : R.slice(0, 5), [R]), [L, M] = J([]), B = ye(null), [Z, $] = J(0), K = p ? -180 : 0, Y = f ? !1 : !!((G = g == null ? void 0 : g.listItems) != null && G.errorMessage), X = Y || u || I, le = c && !Y && i && (C || m);
14273
+ }, [f, g]), R = Me(() => L == null ? void 0 : L.slice(0, 5), [L]), [O, k] = J([]), B = ye(null), [Z, $] = J(0), K = p ? -180 : 0, Y = f ? !1 : !!((G = g == null ? void 0 : g.listItems) != null && G.errorMessage), X = Y || u || I, le = c && !Y && i && (C || m);
14273
14274
  Kr(() => {
14274
14275
  var W;
14275
14276
  (W = B.current) != null && W.scrollHeight && $(B.current.scrollHeight + l);
14276
- }, [o == null ? void 0 : o[t], L, B]), me(() => {
14277
- var ie, k;
14278
- const W = ((R == null ? void 0 : R.length) || 0) > 5, ee = !f && (((k = (ie = g == null ? void 0 : g.listItems) == null ? void 0 : ie.fields) == null ? void 0 : k.length) || 0) > 1;
14277
+ }, [o == null ? void 0 : o[t], O, B]), me(() => {
14278
+ var ie, P;
14279
+ const W = ((L == null ? void 0 : L.length) || 0) > 5, ee = !f && (((P = (ie = g == null ? void 0 : g.listItems) == null ? void 0 : ie.fields) == null ? void 0 : P.length) || 0) > 1;
14279
14280
  E(W && !ee), x(ee);
14280
- }, [g, f, R == null ? void 0 : R.length]), me(() => {
14281
- M(p ? R : O);
14282
- }, [g, p, O, R]);
14281
+ }, [g, f, L == null ? void 0 : L.length]), me(() => {
14282
+ k(p ? L : R);
14283
+ }, [g, p, R, L]);
14283
14284
  const de = () => {
14284
14285
  C ? v((W) => !W) : A((W) => !W);
14285
14286
  };
@@ -14293,7 +14294,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14293
14294
  setShowModal: A
14294
14295
  }
14295
14296
  ) }),
14296
- /* @__PURE__ */ y.jsx(Kb, { className: i ? "" : "slideUp", height: Z, children: /* @__PURE__ */ y.jsx(z, { ref: B, gap: 1, margin: "12px", children: a && !(L != null && L.length) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
14297
+ /* @__PURE__ */ y.jsx(Kb, { className: i ? "" : "slideUp", height: Z, children: /* @__PURE__ */ y.jsx(z, { ref: B, gap: 1, margin: "12px", children: a && !(O != null && O.length) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
14297
14298
  /* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 20, animation: "wave" }),
14298
14299
  /* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 20, animation: "wave" })
14299
14300
  ] }) : /* @__PURE__ */ y.jsx(y.Fragment, { children: X ? /* @__PURE__ */ y.jsx(be, { margin: "8px 0", children: /* @__PURE__ */ y.jsx(
@@ -14310,8 +14311,8 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14310
14311
  currentCard: s,
14311
14312
  isCardLevelError: !0
14312
14313
  }
14313
- ) }) : L != null && L.length ? L == null ? void 0 : L.map((W) => {
14314
- const { value: ee, label: ne, deepLink: ie, type: k } = W, re = "errorMessage" in W ? W.errorMessage : null, xe = "statusCode" in W ? W.statusCode : null;
14314
+ ) }) : O != null && O.length ? O == null ? void 0 : O.map((W) => {
14315
+ const { value: ee, label: ne, deepLink: ie, type: P } = W, re = "errorMessage" in W ? W.errorMessage : null, xe = "statusCode" in W ? W.statusCode : null;
14315
14316
  return /* @__PURE__ */ y.jsxs("div", { children: [
14316
14317
  /* @__PURE__ */ y.jsx(ev, { variant: "overline", children: ne }),
14317
14318
  /* @__PURE__ */ y.jsx(
@@ -14322,7 +14323,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14322
14323
  deepLink: ie,
14323
14324
  statusCode: xe,
14324
14325
  isLoading: a,
14325
- type: k,
14326
+ type: P,
14326
14327
  cardTitle: n,
14327
14328
  currentCard: s,
14328
14329
  cardId: t,
@@ -14508,32 +14509,32 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14508
14509
  defaultOpenState: i = !1,
14509
14510
  onCardUnlinking: s
14510
14511
  } = e, l = en(), { availableFeatures: c, sendTrackingEvent: a, conversationId: u, currentSmIds: h } = $e(Je), { userGroupId: g } = xn() || {}, [I, b] = J(!!i), [d, f] = J(!1), [p, v] = J(!1), [m, x] = J(!1), { id: C, title: E, externalResourceId: w = "", forms: A = [], logoUrl: T } = t;
14511
- let R = C;
14512
- w && (R = `${R}_${w}`);
14513
- const { data: O, cardType: L, cardErrorMessage: M, connectorNames: B } = (n == null ? void 0 : n[R]) ?? {}, Z = (B == null ? void 0 : B[0]) || "", $ = (o == null ? void 0 : o[R]) === te.LOADING, K = (o == null ? void 0 : o[R]) === te.FAILED, Y = !!(ft(c, mf) && w), X = Me(() => {
14514
- var k, re;
14515
- if (M || K || !(ft(c, Um) && A.some((xe) => xe.type === "edit")))
14512
+ let L = C;
14513
+ w && (L = `${L}_${w}`);
14514
+ const { data: R, cardType: O, cardErrorMessage: k, connectorNames: B } = (n == null ? void 0 : n[L]) ?? {}, Z = (B == null ? void 0 : B[0]) || "", $ = (o == null ? void 0 : o[L]) === te.LOADING, K = (o == null ? void 0 : o[L]) === te.FAILED, Y = !!(ft(c, mf) && w), X = Me(() => {
14515
+ var P, re;
14516
+ if (k || K || !(ft(c, Um) && A.some((xe) => xe.type === "edit")))
14516
14517
  return !1;
14517
- switch (L) {
14518
+ switch (O) {
14518
14519
  case "flat":
14519
- return !!((O == null ? void 0 : O.flatDisplay.externalResourceId) ?? t.externalResourceId);
14520
+ return !!((R == null ? void 0 : R.flatDisplay.externalResourceId) ?? t.externalResourceId);
14520
14521
  case "flat_with_list":
14521
- return ((k = O == null ? void 0 : O.listItems) == null ? void 0 : k.fields.length) === 1 ? (re = O == null ? void 0 : O.listItems) == null ? void 0 : re.fields.some((xe) => xe.externalResourceId) : !1;
14522
+ return ((P = R == null ? void 0 : R.listItems) == null ? void 0 : P.fields.length) === 1 ? (re = R == null ? void 0 : R.listItems) == null ? void 0 : re.fields.some((xe) => xe.externalResourceId) : !1;
14522
14523
  default:
14523
14524
  return !1;
14524
14525
  }
14525
- }, [O, L, c, A, t, M, K]), le = _e(
14526
- (k = !1) => {
14527
- const re = k ? Im : Cm;
14526
+ }, [R, O, c, A, t, k, K]), le = _e(
14527
+ (P = !1) => {
14528
+ const re = P ? Im : Cm;
14528
14529
  r && C && u && l(Ro({ id: C, email: r, conversationId: u, externalResourceId: w })).unwrap().then((xe) => {
14529
14530
  const H = {
14530
- ...jl(xe, E, k, !0),
14531
+ ...jl(xe, E, P, !0),
14531
14532
  sm_ids: h
14532
14533
  };
14533
14534
  a(re, H);
14534
14535
  }).catch((xe) => {
14535
14536
  const H = {
14536
- ...jl(xe, E, k, !1),
14537
+ ...jl(xe, E, P, !1),
14537
14538
  sm_ids: h
14538
14539
  };
14539
14540
  a(re, H);
@@ -14544,35 +14545,35 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14544
14545
  me(() => {
14545
14546
  I && le(!0);
14546
14547
  }, [I, le]);
14547
- const de = (k, re) => {
14548
+ const de = (P, re) => {
14548
14549
  var H;
14549
- k == null || k.stopPropagation(), l(Ro({ id: re, email: r, conversationId: u, isRefresh: !0, externalResourceId: w })).unwrap().then(() => {
14550
+ P == null || P.stopPropagation(), l(Ro({ id: re, email: r, conversationId: u, isRefresh: !0, externalResourceId: w })).unwrap().then(() => {
14550
14551
  a(sm, {
14551
14552
  id: re
14552
14553
  });
14553
14554
  });
14554
- const xe = k.target.tagName === "BUTTON" ? (H = k.target) == null ? void 0 : H.firstChild : k.target;
14555
+ const xe = P.target.tagName === "BUTTON" ? (H = P.target) == null ? void 0 : H.firstChild : P.target;
14555
14556
  xe.className && (xe.className = ""), setTimeout(() => xe.className = "selected", 1);
14556
- }, P = (k, re) => {
14557
- k.stopPropagation(), !(n != null && n[re]) && !$ && le(), a(I ? im : om, {
14557
+ }, M = (P, re) => {
14558
+ P.stopPropagation(), !(n != null && n[re]) && !$ && le(), a(I ? im : om, {
14558
14559
  id: re
14559
14560
  }), b((xe) => !xe);
14560
- }, G = (k) => {
14561
- k.stopPropagation();
14562
- const re = k.currentTarget.offsetWidth < k.currentTarget.scrollWidth;
14561
+ }, G = (P) => {
14562
+ P.stopPropagation();
14563
+ const re = P.currentTarget.offsetWidth < P.currentTarget.scrollWidth;
14563
14564
  f(!!re);
14564
- }, j = (k) => {
14565
+ }, j = (P) => {
14565
14566
  var xe, H;
14566
- k.stopPropagation(), a(gf, {
14567
+ P.stopPropagation(), a(gf, {
14567
14568
  card_title: E,
14568
14569
  connector_name: Z,
14569
14570
  ug_id: g,
14570
14571
  sm_ids: h
14571
14572
  });
14572
14573
  let re;
14573
- L === "flat" ? re = (O == null ? void 0 : O.flatDisplay.externalResourceId) ?? t.externalResourceId : L === "flat_with_list" && (re = (H = (xe = O == null ? void 0 : O.listItems) == null ? void 0 : xe.fields[0]) == null ? void 0 : H.externalResourceId), re ? l(Dr({ ...t, externalResourceId: re })) : Ue({ message: Ts, type: Ot });
14574
- }, W = (k) => {
14575
- k.stopPropagation(), v(!0);
14574
+ O === "flat" ? re = (R == null ? void 0 : R.flatDisplay.externalResourceId) ?? t.externalResourceId : O === "flat_with_list" && (re = (H = (xe = R == null ? void 0 : R.listItems) == null ? void 0 : xe.fields[0]) == null ? void 0 : H.externalResourceId), re ? l(Dr({ ...t, externalResourceId: re })) : Ue({ message: Ts, type: Ot });
14575
+ }, W = (P) => {
14576
+ P.stopPropagation(), v(!0);
14576
14577
  }, ee = () => {
14577
14578
  x(!0);
14578
14579
  }, ne = () => {
@@ -14584,7 +14585,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14584
14585
  disabled: $,
14585
14586
  shown: Y,
14586
14587
  iconSrc: k4,
14587
- action: (k) => W(k)
14588
+ action: (P) => W(P)
14588
14589
  },
14589
14590
  {
14590
14591
  id: "refresh",
@@ -14592,7 +14593,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14592
14593
  disabled: $,
14593
14594
  shown: !0,
14594
14595
  iconSrc: Ep,
14595
- action: (k) => de(k, C)
14596
+ action: (P) => de(P, C)
14596
14597
  },
14597
14598
  {
14598
14599
  id: "edit",
@@ -14600,24 +14601,24 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14600
14601
  disabled: $,
14601
14602
  shown: X,
14602
14603
  iconSrc: P4,
14603
- action: (k) => j(k)
14604
+ action: (P) => j(P)
14604
14605
  }
14605
14606
  ];
14606
14607
  return /* @__PURE__ */ y.jsxs(Yb, { "data-testid": `test_${C}`, onMouseEnter: ee, onMouseLeave: ne, children: [
14607
- /* @__PURE__ */ y.jsxs(Jb, { className: I ? "hiver-card-expanded" : "", onClick: (k) => P(k, R), children: [
14608
+ /* @__PURE__ */ y.jsxs(Jb, { className: I ? "hiver-card-expanded" : "", onClick: (P) => M(P, L), children: [
14608
14609
  /* @__PURE__ */ y.jsxs(Qb, { children: [
14609
14610
  T && /* @__PURE__ */ y.jsx("img", { src: T, alt: E }),
14610
- /* @__PURE__ */ y.jsx(We, { title: d ? E : "", placement: "bottom", children: /* @__PURE__ */ y.jsx(qb, { variant: "h4", onMouseOver: (k) => G(k), onMouseLeave: (k) => G(k), children: E }) })
14611
+ /* @__PURE__ */ y.jsx(We, { title: d ? E : "", placement: "bottom", children: /* @__PURE__ */ y.jsx(qb, { variant: "h4", onMouseOver: (P) => G(P), onMouseLeave: (P) => G(P), children: E }) })
14611
14612
  ] }),
14612
14613
  /* @__PURE__ */ y.jsxs(Nf, { children: [
14613
14614
  /* @__PURE__ */ y.jsx(Q4, { actions: ie, isHovered: m }),
14614
- /* @__PURE__ */ y.jsx(We, { title: I ? vf : Dc, placement: "bottom", children: /* @__PURE__ */ y.jsx(Jr, { onClick: (k) => P(k, R), children: /* @__PURE__ */ y.jsx(Mc, { className: I ? "" : "hiver-up" }) }) })
14615
+ /* @__PURE__ */ y.jsx(We, { title: I ? vf : Dc, placement: "bottom", children: /* @__PURE__ */ y.jsx(Jr, { onClick: (P) => M(P, L), children: /* @__PURE__ */ y.jsx(Mc, { className: I ? "" : "hiver-up" }) }) })
14615
14616
  ] })
14616
14617
  ] }),
14617
14618
  /* @__PURE__ */ y.jsx(
14618
14619
  Cp,
14619
14620
  {
14620
- id: R,
14621
+ id: L,
14621
14622
  cardTitle: t.title,
14622
14623
  currentCard: t,
14623
14624
  specificCardData: n,
@@ -14831,30 +14832,30 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
14831
14832
  u.map(({ title: x, items: C, type: E }) => /* @__PURE__ */ y.jsxs(xv, { children: [
14832
14833
  /* @__PURE__ */ y.jsx(pe, { variant: "body2_medium", children: x }),
14833
14834
  C.map((w) => {
14834
- const A = E === cb, { deeplink: T, textHtml: R, imageUrl: O } = w, L = () => /* @__PURE__ */ y.jsx(
14835
+ const A = E === cb, { deeplink: T, textHtml: L, imageUrl: R } = w, O = () => /* @__PURE__ */ y.jsx(
14835
14836
  nv,
14836
14837
  {
14837
14838
  className: A ? "" : "ellipsisClass",
14838
14839
  component: "div",
14839
14840
  variant: "body2",
14840
14841
  dangerouslySetInnerHTML: {
14841
- __html: R
14842
+ __html: L
14842
14843
  }
14843
14844
  }
14844
14845
  );
14845
- return /* @__PURE__ */ y.jsx(vv, { component: "ul", children: /* @__PURE__ */ y.jsxs(yv, { component: A ? "li" : "div", marginLeft: O ? "0" : "14px", children: [
14846
- O ? /* @__PURE__ */ y.jsx("img", { src: O }) : null,
14846
+ return /* @__PURE__ */ y.jsx(vv, { component: "ul", children: /* @__PURE__ */ y.jsxs(yv, { component: A ? "li" : "div", marginLeft: R ? "0" : "14px", children: [
14847
+ R ? /* @__PURE__ */ y.jsx("img", { src: R }) : null,
14847
14848
  T ? /* @__PURE__ */ y.jsx(
14848
14849
  Pf,
14849
14850
  {
14850
14851
  target: "_blank",
14851
14852
  underline: "none",
14852
- onClick: (M) => v(M, T),
14853
+ onClick: (k) => v(k, T),
14853
14854
  fontSize: "13px",
14854
- children: L()
14855
+ children: O()
14855
14856
  }
14856
- ) : L()
14857
- ] }) }, R);
14857
+ ) : O()
14858
+ ] }) }, L);
14858
14859
  })
14859
14860
  ] }, x)),
14860
14861
  /* @__PURE__ */ y.jsx(z, { flexDirection: "row", gap: "8px", marginBottom: "11.5px", children: f.map(({ text: x, link: C, isAdminPanelLink: E }) => /* @__PURE__ */ y.jsx(Cv, { variant: E ? "contained" : "text", children: /* @__PURE__ */ y.jsx(Iv, { variant: "caption", onClick: (w) => v(w, C, E, !0), children: x }) }, x)) })
@@ -15308,7 +15309,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15308
15309
  connectors: s
15309
15310
  }) => {
15310
15311
  var zn;
15311
- const { userGroupId: l, userId: c } = xn() || {}, [a, u] = J(null), [h, g] = J(!1), I = ye(null), [b, d] = Dp(), f = we(_p), p = we(t ? B4 : wp), v = we(V4), m = we(j4), x = we(W4), C = we(Z4), E = we(X4), w = we(U4), A = we(z4), T = we(Tp), R = m == null ? void 0 : m[(a == null ? void 0 : a.value) ?? ""], O = R == null ? void 0 : R.expandedView, { formConfigs: L, formViewConfigs: M } = Me(() => {
15312
+ const { userGroupId: l, userId: c } = xn() || {}, [a, u] = J(null), [h, g] = J(!1), I = ye(null), [b, d] = Dp(), f = we(_p), p = we(t ? B4 : wp), v = we(V4), m = we(j4), x = we(W4), C = we(Z4), E = we(X4), w = we(U4), A = we(z4), T = we(Tp), L = m == null ? void 0 : m[(a == null ? void 0 : a.value) ?? ""], R = L == null ? void 0 : L.expandedView, { formConfigs: O, formViewConfigs: k } = Me(() => {
15312
15313
  if (a && "value" in a && v && v[a.value] && Array.isArray(v[a.value])) {
15313
15314
  const Re = v[a.value], st = [
15314
15315
  {
@@ -15318,7 +15319,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15318
15319
  ];
15319
15320
  return {
15320
15321
  formConfigs: st,
15321
- formViewConfigs: O ? LE(Re, Hu) : st
15322
+ formViewConfigs: R ? LE(Re, Hu) : st
15322
15323
  };
15323
15324
  }
15324
15325
  const ue = [{ id: "emptyFormId", formFields: [] }];
@@ -15326,11 +15327,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15326
15327
  formConfigs: ue,
15327
15328
  formViewConfigs: ue
15328
15329
  };
15329
- }, [v, a, O]), B = Me(() => {
15330
+ }, [v, a, R]), B = Me(() => {
15330
15331
  var Re;
15331
- const ue = ((Re = L == null ? void 0 : L[0]) == null ? void 0 : Re.formFields) || [];
15332
+ const ue = ((Re = O == null ? void 0 : O[0]) == null ? void 0 : Re.formFields) || [];
15332
15333
  return Kc({ formFields: ue });
15333
- }, [L]), {
15334
+ }, [O]), {
15334
15335
  setValue: Z,
15335
15336
  inputChangeHandler: $,
15336
15337
  checkboxChangeHandler: K,
@@ -15339,21 +15340,21 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15339
15340
  handleValidationError: le,
15340
15341
  isErrorInValidations: de
15341
15342
  } = Np({ state: b, dispatch: d, validations: B }), {
15342
- conversationId: P,
15343
+ conversationId: M,
15343
15344
  sendTrackingEvent: G,
15344
15345
  currentSmIds: j,
15345
15346
  connectorFunctions: { getFormElement: W, toggleFormElement: ee },
15346
15347
  stackingContext: ne,
15347
15348
  userEmail: ie
15348
- } = $e(Je), { userGroupId: k } = xn() || {}, { fetchConfig: re, createConfig: xe } = kp({
15349
- formFields: L[0].formFields,
15350
- formId: L[0].id,
15349
+ } = $e(Je), { userGroupId: P } = xn() || {}, { fetchConfig: re, createConfig: xe } = kp({
15350
+ formFields: O[0].formFields,
15351
+ formId: O[0].id,
15351
15352
  formState: b,
15352
- conversationId: P
15353
- }), H = (zn = f == null ? void 0 : f.forms.find((ue) => ue.type === "edit")) == null ? void 0 : zn.id, { externalResourceId: He } = f ?? {}, Ve = [C, E, A].includes(te.LOADING), tt = Me(() => !O || !W ? null : W(), [O, W]), nt = en();
15354
- me(() => (O && ee && ee(!0), () => {
15355
- O && ee && ee(!1);
15356
- }), [O, ee]), me(() => {
15353
+ conversationId: M
15354
+ }), H = (zn = f == null ? void 0 : f.forms.find((ue) => ue.type === "edit")) == null ? void 0 : zn.id, { externalResourceId: He } = f ?? {}, Ve = [C, E, A].includes(te.LOADING), tt = Me(() => !R || !W ? null : W(), [R, W]), nt = en();
15355
+ me(() => (R && ee && ee(!0), () => {
15356
+ R && ee && ee(!1);
15357
+ }), [R, ee]), me(() => {
15357
15358
  nt(
15358
15359
  Zu(
15359
15360
  t ? !(w && "values" in w && "values" in b && JSON.stringify($u(b.values)) === JSON.stringify($u(w.values))) : (e == null ? void 0 : e.fields_filled) !== void 0 && e.fields_filled > 0
@@ -15365,10 +15366,10 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15365
15366
  a !== null && i((ue) => ({ ...ue, object_type: a.label }));
15366
15367
  }, [a, i]), me(() => {
15367
15368
  if (b.values) {
15368
- const ue = hp(L[0].formFields, b.values);
15369
+ const ue = hp(O[0].formFields, b.values);
15369
15370
  i((Re) => ({ ...Re, fields_filled: ue }));
15370
15371
  }
15371
- }, [b, L, i]), me(() => {
15372
+ }, [b, O, i]), me(() => {
15372
15373
  if (n && !t)
15373
15374
  return u(n);
15374
15375
  p && p.length && u(t && H ? p.find((ue) => ue.value === H) ?? null : (ue) => ue || !m ? ue : p.length === 1 ? p[0] : p.find((st) => !m[st.value].expandedView) ?? null);
@@ -15391,13 +15392,13 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15391
15392
  a != null && a.value && X(Re.name, x == null ? void 0 : x[a.value]);
15392
15393
  }
15393
15394
  }, Qe = () => {
15394
- if (!de() && H && (m != null && m[H]) && P && He) {
15395
+ if (!de() && H && (m != null && m[H]) && M && He) {
15395
15396
  const { connectorName: ue, title: Re } = f;
15396
15397
  G(wm, {
15397
15398
  connector_name: ue,
15398
15399
  card_title: Re,
15399
15400
  sm_ids: j,
15400
- ug_id: k
15401
+ ug_id: P
15401
15402
  });
15402
15403
  const st = m[H].interfaceDetails;
15403
15404
  if (!st || !w)
@@ -15406,7 +15407,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15406
15407
  nt(
15407
15408
  Fi({
15408
15409
  formId: String(H),
15409
- conversationId: P,
15410
+ conversationId: M,
15410
15411
  args: uo,
15411
15412
  previousArgs: gn,
15412
15413
  externalResourceId: He,
@@ -15420,14 +15421,14 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15420
15421
  connector_name: ue,
15421
15422
  card_title: Re,
15422
15423
  sm_ids: j,
15423
- ug_id: k
15424
+ ug_id: P
15424
15425
  });
15425
15426
  }).finally(() => {
15426
15427
  nt(Dr(null));
15427
15428
  });
15428
15429
  }
15429
15430
  }, _n = () => {
15430
- if (!de() && a && (m != null && m[a.value]) && P) {
15431
+ if (!de() && a && (m != null && m[a.value]) && M) {
15431
15432
  const ue = m == null ? void 0 : m[a.value].interfaceDetails;
15432
15433
  if (!ue)
15433
15434
  return;
@@ -15435,7 +15436,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15435
15436
  nt(
15436
15437
  Li({
15437
15438
  formId: String(a.value),
15438
- conversationId: P,
15439
+ conversationId: M,
15439
15440
  args: It,
15440
15441
  interfaceId: Re,
15441
15442
  successCallback: () => {
@@ -15466,16 +15467,16 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15466
15467
  ug_id: l,
15467
15468
  sm_ids: j.join(","),
15468
15469
  connector_names: s.join(","),
15469
- form_object: R == null ? void 0 : R.name
15470
+ form_object: L == null ? void 0 : L.name
15470
15471
  }
15471
15472
  }), lo = () => {
15472
15473
  window.open(xr, "_blank"), G(Gm, {
15473
15474
  sm_ids: j,
15474
15475
  ug_id: l,
15475
- connector_name: R == null ? void 0 : R.connectorName,
15476
- form_object: R == null ? void 0 : R.name
15476
+ connector_name: L == null ? void 0 : L.connectorName,
15477
+ form_object: L == null ? void 0 : L.name
15477
15478
  });
15478
- }, Un = /* @__PURE__ */ y.jsxs(Vp, { className: O ? Mp : "", children: [
15479
+ }, Un = /* @__PURE__ */ y.jsxs(Vp, { className: R ? Mp : "", children: [
15479
15480
  /* @__PURE__ */ y.jsx(
15480
15481
  Pp,
15481
15482
  {
@@ -15486,16 +15487,16 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15486
15487
  buttons: Vt
15487
15488
  }
15488
15489
  ),
15489
- O ? /* @__PURE__ */ y.jsxs(Xw, { children: [
15490
+ R ? /* @__PURE__ */ y.jsxs(Xw, { children: [
15490
15491
  /* @__PURE__ */ y.jsxs(pe, { children: [
15491
15492
  t ? "Edit" : "Add",
15492
15493
  " to ",
15493
- R.connectorName
15494
+ L.connectorName
15494
15495
  ] }),
15495
15496
  /* @__PURE__ */ y.jsx(We, { title: "Close Popup", placement: "bottom", children: /* @__PURE__ */ y.jsx(Xt, { onClick: r, children: /* @__PURE__ */ y.jsx(Uw, { src: yp }) }) })
15496
15497
  ] }) : null,
15497
15498
  /* @__PURE__ */ y.jsxs(jp, { spacing: 3, children: [
15498
- !t && !O ? /* @__PURE__ */ y.jsx(
15499
+ !t && !R ? /* @__PURE__ */ y.jsx(
15499
15500
  Wo,
15500
15501
  {
15501
15502
  type: "select",
@@ -15513,7 +15514,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15513
15514
  pp,
15514
15515
  {
15515
15516
  showGlobalLoader: A === te.LOADING,
15516
- formConfig: M,
15517
+ formConfig: k,
15517
15518
  selectChangeHandler: lt,
15518
15519
  inputChangeHandler: $,
15519
15520
  checkboxChangeHandler: K,
@@ -15526,7 +15527,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15526
15527
  createConfig: xe,
15527
15528
  values: b.values,
15528
15529
  validations: B,
15529
- ...O ? {
15530
+ ...R ? {
15530
15531
  cols: Hu,
15531
15532
  stackIndex: ne.expandedForm
15532
15533
  } : null
@@ -15541,14 +15542,14 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15541
15542
  disabled: de() || Ve || !T,
15542
15543
  onClick: t ? Qe : _n,
15543
15544
  size: "small",
15544
- ...O ? { style: { order: 2 } } : null,
15545
+ ...R ? { style: { order: 2 } } : null,
15545
15546
  children: t ? ob : rb
15546
15547
  }
15547
15548
  ),
15548
15549
  /* @__PURE__ */ y.jsx(Gp, { variant: "outlined", color: "tertiary", size: "small", onClick: r, disabled: Ve, children: kc })
15549
15550
  ] })
15550
15551
  ] });
15551
- return O && tt ? as(Un, tt) : Un;
15552
+ return R && tt ? as(Un, tt) : Un;
15552
15553
  }, Bp = N(be)`
15553
15554
  box-sizing: border-box;
15554
15555
  height: 52px;
@@ -15617,18 +15618,18 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15617
15618
  color: ${U.palette.purple.primary};
15618
15619
  }
15619
15620
  `, $w = ({ setOpenTaskLinking: e, onLinkingSuccess: t }) => {
15620
- const n = en(), r = we(Op), o = we(Rp), i = we(G4), s = we(Ap), [l, c] = J(!1), [a, u] = J(null), [h, g] = J(""), [I, b] = J({}), { conversationId: d, sendTrackingEvent: f } = $e(Je);
15621
+ const n = en(), r = we(Op), o = we(Rp), i = we(G4), s = we(Ap), [l, c] = J(!1), [a, u] = J(null), [h, g] = J(""), [I, b] = J({}), { conversationId: d, sendTrackingEvent: f, email: p } = $e(Je);
15621
15622
  me(() => {
15622
15623
  s && s.length && u(s[0]);
15623
15624
  }, [s]);
15624
- const p = {
15625
+ const v = {
15625
15626
  externalResourceId: h
15626
- }, v = o === te.LOADING, m = i === te.LOADING, x = () => {
15627
- !l && a && "value" in a && (f(bm, { object_type: a.label }), n(Fr({ id: String(a == null ? void 0 : a.value), args: p })).unwrap().catch((O) => {
15627
+ }, m = o === te.LOADING, x = i === te.LOADING, C = () => {
15628
+ !l && a && "value" in a && (f(bm, { object_type: a.label }), n(Fr({ id: String(a == null ? void 0 : a.value), args: v })).unwrap().catch((O) => {
15628
15629
  (O == null ? void 0 : O.status) === 400 ? Ue({ message: Gu, type: Ot }) : Ue({ message: KE, type: Ot });
15629
15630
  })), c((O) => !O);
15630
- }, C = () => {
15631
- a && "value" in a && d && n(Ni({ id: String(a.value), externalResourceId: h, conversationId: d })).unwrap().then(() => {
15631
+ }, E = () => {
15632
+ a && "value" in a && d && n(Ni({ id: String(a.value), externalResourceId: h, conversationId: d, email: p })).unwrap().then(() => {
15632
15633
  f(gm, {
15633
15634
  object_type: a.label,
15634
15635
  input_type: h
@@ -15636,20 +15637,20 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15636
15637
  }).catch((O) => {
15637
15638
  (O == null ? void 0 : O.status) === 400 ? Ue({ message: Gu, type: Ot }) : (O == null ? void 0 : O.status) === 409 ? Ue({ message: e4, type: Ot }) : Ue({ message: n4, type: Ot });
15638
15639
  });
15639
- }, E = () => {
15640
+ }, w = () => {
15640
15641
  e(!1), c(!1);
15641
- }, w = (O, L) => {
15642
- O && typeof O == "object" && "label" in O && typeof O.label == "string" && "value" in O && (typeof O.value == "string" || typeof O.value == "number") && typeof L.name < "u" && (u({ value: O.value, label: O.label }), g(""));
15643
- }, A = (O) => {
15642
+ }, A = (O, k) => {
15643
+ O && typeof O == "object" && "label" in O && typeof O.label == "string" && "value" in O && (typeof O.value == "string" || typeof O.value == "number") && typeof k.name < "u" && (u({ value: O.value, label: O.label }), g(""));
15644
+ }, T = (O) => {
15644
15645
  O.stopPropagation();
15645
- const { value: L } = (O == null ? void 0 : O.target) || {};
15646
- g(L), c(!1);
15647
- }, T = (O, L) => {
15648
- b((M) => ({
15649
- ...M,
15650
- [O]: !!L
15646
+ const { value: k } = (O == null ? void 0 : O.target) || {};
15647
+ g(k), c(!1);
15648
+ }, L = (O, k) => {
15649
+ b((B) => ({
15650
+ ...B,
15651
+ [O]: !!k
15651
15652
  }));
15652
- }, R = () => Object.keys(I).filter((L) => I[L]).length > 0;
15653
+ }, R = () => Object.keys(I).filter((k) => I[k]).length > 0;
15653
15654
  return /* @__PURE__ */ y.jsxs(Vp, { children: [
15654
15655
  /* @__PURE__ */ y.jsxs(jp, { spacing: 3, children: [
15655
15656
  /* @__PURE__ */ y.jsx(
@@ -15660,11 +15661,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15660
15661
  options: s,
15661
15662
  value: a,
15662
15663
  name: "form-object",
15663
- selectChangeHandler: w,
15664
+ selectChangeHandler: A,
15664
15665
  label: d4,
15665
15666
  labelSpacing: 0.5,
15666
15667
  validation: { isRequired: !0 },
15667
- onValidationError: T
15668
+ onValidationError: L
15668
15669
  }
15669
15670
  ),
15670
15671
  /* @__PURE__ */ y.jsx(
@@ -15674,11 +15675,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15674
15675
  placeholder: f4,
15675
15676
  value: h,
15676
15677
  name: "resourceId",
15677
- inputChangeHandler: A,
15678
+ inputChangeHandler: T,
15678
15679
  label: p4,
15679
15680
  labelSpacing: 0.5,
15680
15681
  validation: { isRequired: !0, validate: j3() },
15681
- onValidationError: T
15682
+ onValidationError: L
15682
15683
  }
15683
15684
  ),
15684
15685
  l ? /* @__PURE__ */ y.jsx(
@@ -15687,31 +15688,31 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15687
15688
  cardData: r,
15688
15689
  cardDataApiStatus: o,
15689
15690
  objectToLink: String((a == null ? void 0 : a.value) || ""),
15690
- args: p
15691
+ args: v
15691
15692
  }
15692
15693
  ) : null,
15693
15694
  /* @__PURE__ */ y.jsx(
15694
15695
  Hw,
15695
15696
  {
15696
15697
  fullWidth: !0,
15697
- disabled: R() || v,
15698
+ disabled: R() || m,
15698
15699
  color: "tertiary",
15699
15700
  variant: "outlined",
15700
15701
  size: "small",
15701
- onClick: x,
15702
+ onClick: C,
15702
15703
  children: l ? Jv : Yv
15703
15704
  }
15704
15705
  )
15705
15706
  ] }),
15706
15707
  /* @__PURE__ */ y.jsxs(Bp, { children: [
15707
- /* @__PURE__ */ y.jsx(pt, { onClick: C, disabled: R() || m, size: "small", children: Cf }),
15708
+ /* @__PURE__ */ y.jsx(pt, { onClick: E, disabled: R() || x, size: "small", children: Cf }),
15708
15709
  /* @__PURE__ */ y.jsx(
15709
15710
  Gp,
15710
15711
  {
15711
15712
  color: "tertiary",
15712
15713
  variant: "outlined",
15713
- onClick: E,
15714
- disabled: m,
15714
+ onClick: w,
15715
+ disabled: x,
15715
15716
  size: "small",
15716
15717
  children: kc
15717
15718
  }
@@ -15919,13 +15920,13 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15919
15920
  const A = s[e].searchInterfaceDetails;
15920
15921
  if (!A)
15921
15922
  return;
15922
- const T = s[e].connectorName, { id: R, args: O = {} } = A, L = Si(r, O);
15923
+ const T = s[e].connectorName, { id: L, args: R = {} } = A, O = Si(r, R);
15923
15924
  v({
15924
15925
  id: E,
15925
- interfaceId: R,
15926
+ interfaceId: L,
15926
15927
  searchString: t,
15927
15928
  connectorName: T,
15928
- args: L
15929
+ args: O
15929
15930
  });
15930
15931
  }, [r, a, s, e, t, f, v]), me(() => () => {
15931
15932
  i.current && clearTimeout(i.current);
@@ -17440,8 +17441,8 @@ var Ze, Dn, Nn, Vr, Gr, kn, Hr, Wr, bd, V9 = (bd = class {
17440
17441
  const r = S(this, Ie), o = this.options, i = S(this, bt), s = S(this, lr), l = S(this, Zr), a = t !== r ? t.state : S(this, zo), { state: u } = t;
17441
17442
  let h = { ...u }, g = !1, I;
17442
17443
  if (n._optimisticResults) {
17443
- const T = this.hasListeners(), R = !T && sd(t, n), O = T && ad(t, r, n, o);
17444
- (R || O) && (h = {
17444
+ const T = this.hasListeners(), L = !T && sd(t, n), R = T && ad(t, r, n, o);
17445
+ (L || R) && (h = {
17445
17446
  ...h,
17446
17447
  ...Jp(u.data, t.options)
17447
17448
  }), n._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
@@ -17468,8 +17469,8 @@ var Ze, Dn, Nn, Vr, Gr, kn, Hr, Wr, bd, V9 = (bd = class {
17468
17469
  ) : n.placeholderData, n.select && T !== void 0)
17469
17470
  try {
17470
17471
  T = n.select(T), q(this, an, null);
17471
- } catch (R) {
17472
- q(this, an, R);
17472
+ } catch (L) {
17473
+ q(this, an, L);
17473
17474
  }
17474
17475
  T !== void 0 && (f = "success", I = cc(
17475
17476
  i == null ? void 0 : i.data,
@@ -17506,21 +17507,21 @@ var Ze, Dn, Nn, Vr, Gr, kn, Hr, Wr, bd, V9 = (bd = class {
17506
17507
  promise: S(this, Pn)
17507
17508
  };
17508
17509
  if (this.options.experimental_prefetchInRender) {
17509
- const T = (L) => {
17510
- w.status === "error" ? L.reject(w.error) : w.data !== void 0 && L.resolve(w.data);
17511
- }, R = () => {
17512
- const L = q(this, Pn, w.promise = lc());
17513
- T(L);
17514
- }, O = S(this, Pn);
17515
- switch (O.status) {
17510
+ const T = (O) => {
17511
+ w.status === "error" ? O.reject(w.error) : w.data !== void 0 && O.resolve(w.data);
17512
+ }, L = () => {
17513
+ const O = q(this, Pn, w.promise = lc());
17514
+ T(O);
17515
+ }, R = S(this, Pn);
17516
+ switch (R.status) {
17516
17517
  case "pending":
17517
- t.queryHash === r.queryHash && T(O);
17518
+ t.queryHash === r.queryHash && T(R);
17518
17519
  break;
17519
17520
  case "fulfilled":
17520
- (w.status === "error" || w.data !== O.value) && R();
17521
+ (w.status === "error" || w.data !== R.value) && L();
17521
17522
  break;
17522
17523
  case "rejected":
17523
- (w.status !== "error" || w.error !== O.reason) && R();
17524
+ (w.status !== "error" || w.error !== R.reason) && L();
17524
17525
  break;
17525
17526
  }
17526
17527
  }
@@ -17948,10 +17949,10 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
17948
17949
  e.value
17949
17950
  ) : null
17950
17951
  ] }) : null;
17951
- }, pA = "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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.00483%2012.5052C7.73146%2012.7786%207.73146%2013.2218%208.00483%2013.4952C8.2782%2013.7685%208.72141%2013.7685%208.99478%2013.4952L11.9948%2010.4952C12.2681%2010.2218%2012.2681%209.77859%2011.9948%209.50522L8.99478%206.50522C8.72141%206.23185%208.2782%206.23185%208.00483%206.50522C7.73146%206.77859%207.73146%207.2218%208.00483%207.49517L10.5099%2010.0002L8.00483%2012.5052Z'%20fill='%236C7B94'/%3e%3c/svg%3e", hA = async ({ id: e, externalResourceId: t, conversationId: n, channelType: r = "email" }) => {
17952
- const o = new URLSearchParams();
17953
- o.append("channel_type", r), await ht({
17954
- url: `${kE.replace(":id", e)}?${o.toString()}`,
17952
+ }, pA = "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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.00483%2012.5052C7.73146%2012.7786%207.73146%2013.2218%208.00483%2013.4952C8.2782%2013.7685%208.72141%2013.7685%208.99478%2013.4952L11.9948%2010.4952C12.2681%2010.2218%2012.2681%209.77859%2011.9948%209.50522L8.99478%206.50522C8.72141%206.23185%208.2782%206.23185%208.00483%206.50522C7.73146%206.77859%207.73146%207.2218%208.00483%207.49517L10.5099%2010.0002L8.00483%2012.5052Z'%20fill='%236C7B94'/%3e%3c/svg%3e", hA = async ({ id: e, externalResourceId: t, conversationId: n, channelType: r = "email", email: o }) => {
17953
+ const i = new URLSearchParams();
17954
+ i.append("channel_type", r), o && i.append("senderEmail", o), await ht({
17955
+ url: `${kE.replace(":id", e)}?${i.toString()}`,
17955
17956
  method: yt.POST,
17956
17957
  data: {
17957
17958
  externalResourceId: t,
@@ -17983,23 +17984,24 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
17983
17984
  onBack: o,
17984
17985
  onLink: i
17985
17986
  }) => {
17986
- const s = en(), { conversationId: l, currentSmIds: c, sendTrackingEvent: a } = $e(Je), u = we(Op), h = we(Rp), { mutate: g, isPending: I } = gA({ onSuccess: i }), b = h === te.LOADING, d = {
17987
+ const s = en(), { conversationId: l, currentSmIds: c, sendTrackingEvent: a, email: u } = $e(Je), h = we(Op), g = we(Rp), { mutate: I, isPending: b } = gA({ onSuccess: i }), d = g === te.LOADING, f = {
17987
17988
  externalResourceId: e
17988
17989
  };
17989
17990
  me(() => {
17990
17991
  s(Fr({ id: t, args: { externalResourceId: e } }));
17991
17992
  }, [e, t, s]);
17992
- const f = () => {
17993
+ const p = () => {
17993
17994
  a(Mm, {
17994
17995
  search_keyword: n,
17995
17996
  search_result_label: r,
17996
17997
  sm_ids: c,
17997
- card_title: u == null ? void 0 : u.cardTitle,
17998
- connector_names: u == null ? void 0 : u.connectorNames
17999
- }), g({
17998
+ card_title: h == null ? void 0 : h.cardTitle,
17999
+ connector_names: h == null ? void 0 : h.connectorNames
18000
+ }), I({
18000
18001
  id: t,
18001
18002
  externalResourceId: e,
18002
- conversationId: l
18003
+ conversationId: l,
18004
+ email: u
18003
18005
  });
18004
18006
  };
18005
18007
  return /* @__PURE__ */ y.jsxs(z, { gap: "12px", marginTop: "12px", children: [
@@ -18011,13 +18013,13 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18011
18013
  /* @__PURE__ */ y.jsx(
18012
18014
  Lp,
18013
18015
  {
18014
- cardData: u,
18015
- cardDataApiStatus: h,
18016
+ cardData: h,
18017
+ cardDataApiStatus: g,
18016
18018
  objectToLink: t,
18017
- args: d
18019
+ args: f
18018
18020
  }
18019
18021
  ),
18020
- /* @__PURE__ */ y.jsx(z, { alignItems: "flex-end", children: /* @__PURE__ */ y.jsx(pt, { size: "small", disabled: b || I, onClick: f, children: Cf }) })
18022
+ /* @__PURE__ */ y.jsx(z, { alignItems: "flex-end", children: /* @__PURE__ */ y.jsx(pt, { size: "small", disabled: d || b, onClick: p, children: Cf }) })
18021
18023
  ] })
18022
18024
  ] });
18023
18025
  }, ah = N(z)`
@@ -18143,11 +18145,11 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18143
18145
  };
18144
18146
  }, _A = ({ isAdmin: e = !1 }) => {
18145
18147
  var ri;
18146
- const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i } = $e(Je), s = en(), { userGroupId: l, userId: c } = xn() || {}, a = ye(!1), u = ye(null), h = ye(null), g = ye(null), [I, b] = J(!1), [d, f] = J(!1), [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(), [w, A] = J(!1), [T, R] = J(null), [O, L] = J(), [M, B] = J(null), [Z, $] = J(!1), [K, Y] = J(!1), X = we(I4), le = we(x4), de = we(w4), P = we(A4), G = we(E4), j = we(wp), W = we(M4), ee = we(Ap), ne = we(_p), ie = we(Tp), k = we(jw), re = ft(o, Wm), xe = ft(o, mf), H = ft(o, Ym), He = ft(o, Qm), Ve = ft(o, qm), tt = ft(o, Km), nt = gb(de), { data: hn, isLoading: Ct } = ih({
18148
+ const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i } = $e(Je), s = en(), { userGroupId: l, userId: c } = xn() || {}, a = ye(!1), u = ye(null), h = ye(null), g = ye(null), [I, b] = J(!1), [d, f] = J(!1), [p, v] = J(!1), [m, x] = J(!1), [C, E] = J(), [w, A] = J(!1), [T, L] = J(null), [R, O] = J(), [k, B] = J(null), [Z, $] = J(!1), [K, Y] = J(!1), X = we(I4), le = we(x4), de = we(w4), M = we(A4), G = we(E4), j = we(wp), W = we(M4), ee = we(Ap), ne = we(_p), ie = we(Tp), P = we(jw), re = ft(o, Wm), xe = ft(o, mf), H = ft(o, Ym), He = ft(o, Qm), Ve = ft(o, qm), tt = ft(o, Km), nt = gb(de), { data: hn, isLoading: Ct } = ih({
18147
18149
  senderEmail: t,
18148
18150
  conversationId: String(i),
18149
18151
  enabled: He && !!t
18150
- }), { emailHeaders: lt, selectedEmail: Qe } = hn ?? {}, { scrollOnceAfterLoad: _n, resetScrollState: Vt } = AA(h), xr = G !== te.LOADING && (!P || !Object.values(P).some((Le) => Le === te.LOADING)) && X && X.length > 0;
18152
+ }), { emailHeaders: lt, selectedEmail: Qe } = hn ?? {}, { scrollOnceAfterLoad: _n, resetScrollState: Vt } = AA(h), xr = G !== te.LOADING && (!M || !Object.values(M).some((Le) => Le === te.LOADING)) && X && X.length > 0;
18151
18153
  Kr(() => {
18152
18154
  var Le;
18153
18155
  Z && !I && K && ((Le = g == null ? void 0 : g.current) != null && Le.scrollHeight) && _n(!!xr, "smooth");
@@ -18165,20 +18167,20 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18165
18167
  search_keyword: Le,
18166
18168
  sm_ids: n,
18167
18169
  connector_name: rt,
18168
- suggestion_type: k
18170
+ suggestion_type: P
18169
18171
  });
18170
18172
  }, Un = (Le, rt, Ft) => {
18171
18173
  !Array.isArray(rt) || !rt.length ? r(Nm, {
18172
18174
  search_keyword: Le,
18173
18175
  sm_ids: n,
18174
18176
  connector_name: Ft,
18175
- suggestion_type: k
18177
+ suggestion_type: P
18176
18178
  }) : rt.length && r(km, {
18177
18179
  num_of_results: rt.length,
18178
18180
  search_keyword: Le,
18179
18181
  sm_ids: n,
18180
18182
  connector_name: Ft,
18181
- suggestion_type: k
18183
+ suggestion_type: P
18182
18184
  });
18183
18185
  }, {
18184
18186
  mutate: zn,
@@ -18187,8 +18189,8 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18187
18189
  isPending: st,
18188
18190
  isIdle: It
18189
18191
  } = wA(lo, Un), xt = _e(() => {
18190
- ue(), R(null);
18191
- }, [ue, R]), Gt = _e(() => {
18192
+ ue(), L(null);
18193
+ }, [ue, L]), Gt = _e(() => {
18192
18194
  t && n.length && i && s(Pi({ inboxIds: n, conversationId: i }));
18193
18195
  }, [s, t, n, i]), gn = _e(
18194
18196
  (Le, rt) => {
@@ -18211,7 +18213,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18211
18213
  c && ($(await Dd(c)), Y(await v1(c)));
18212
18214
  })();
18213
18215
  }, [c]), me(() => {
18214
- Ct || L(Qe || t);
18216
+ Ct || O(Qe || t);
18215
18217
  }, [t, Qe, Ct]), me(() => {
18216
18218
  K && c && y1(c);
18217
18219
  }, [K, c]), me(() => {
@@ -18338,7 +18340,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18338
18340
  fA,
18339
18341
  {
18340
18342
  selectedObject: T,
18341
- setSelectedObject: R,
18343
+ setSelectedObject: L,
18342
18344
  fetchSearchResults: zn,
18343
18345
  onReset: xt,
18344
18346
  root: u.current
@@ -18360,10 +18362,10 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18360
18362
  Nw,
18361
18363
  {
18362
18364
  emailHeaders: lt,
18363
- selectedEmail: O,
18365
+ selectedEmail: R,
18364
18366
  root: u.current,
18365
18367
  isLoading: Ct,
18366
- setSelectedEmail: L
18368
+ setSelectedEmail: O
18367
18369
  }
18368
18370
  ) : null,
18369
18371
  re ? /* @__PURE__ */ y.jsx(_w, {}) : null,
@@ -18374,8 +18376,8 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18374
18376
  {
18375
18377
  cards: X,
18376
18378
  specificCardData: de,
18377
- email: O ?? "",
18378
- specificConnectorApiStatus: P,
18379
+ email: R ?? "",
18380
+ specificConnectorApiStatus: M,
18379
18381
  onCardUnlinking: Gt
18380
18382
  }
18381
18383
  ),
@@ -18422,7 +18424,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18422
18424
  onCreateSuccess: po,
18423
18425
  metaData: C,
18424
18426
  setMetaData: E,
18425
- defaultOption: M,
18427
+ defaultOption: k,
18426
18428
  connectors: nt
18427
18429
  }
18428
18430
  )