@hiver/connector-agent 4.3.1 → 4.3.2-addingSenderEmailQueryParamToLinkApi-beta.0

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
@@ -88,17 +88,17 @@ function Bh() {
88
88
  // with.
89
89
  _.$$typeof === T || _.getModuleId !== void 0));
90
90
  }
91
- function O(_, j, Q) {
91
+ function R(_, j, Q) {
92
92
  var fe = _.displayName;
93
93
  if (fe)
94
94
  return fe;
95
95
  var Fe = j.displayName || j.name || "";
96
96
  return Fe !== "" ? Q + "(" + Fe + ")" : Q;
97
97
  }
98
- function R(_) {
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 j = _;
126
- return R(j) + ".Consumer";
126
+ return O(j) + ".Consumer";
127
127
  case s:
128
128
  var Q = _;
129
- return R(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,18 +143,18 @@ function Bh() {
143
143
  }
144
144
  return null;
145
145
  }
146
- var G = Object.assign, Z = 0, $, te, Y, X, le, de, P;
147
- function V() {
146
+ var V = Object.assign, Z = 0, $, te, Y, X, le, de, M;
147
+ function G() {
148
148
  }
149
- V.__reactDisabledLog = !0;
149
+ G.__reactDisabledLog = !0;
150
150
  function B() {
151
151
  {
152
152
  if (Z === 0) {
153
- $ = console.log, te = console.info, Y = console.warn, X = console.error, le = console.group, de = console.groupCollapsed, P = console.groupEnd;
153
+ $ = console.log, te = 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,
157
- value: V,
157
+ value: G,
158
158
  writable: !0
159
159
  };
160
160
  Object.defineProperties(console, {
@@ -179,26 +179,26 @@ function Bh() {
179
179
  writable: !0
180
180
  };
181
181
  Object.defineProperties(console, {
182
- log: G({}, _, {
182
+ log: V({}, _, {
183
183
  value: $
184
184
  }),
185
- info: G({}, _, {
185
+ info: V({}, _, {
186
186
  value: te
187
187
  }),
188
- warn: G({}, _, {
188
+ warn: V({}, _, {
189
189
  value: Y
190
190
  }),
191
- error: G({}, _, {
191
+ error: V({}, _, {
192
192
  value: X
193
193
  }),
194
- group: G({}, _, {
194
+ group: V({}, _, {
195
195
  value: le
196
196
  }),
197
- groupCollapsed: G({}, _, {
197
+ groupCollapsed: V({}, _, {
198
198
  value: de
199
199
  }),
200
- groupEnd: G({}, _, {
201
- value: P
200
+ groupEnd: V({}, _, {
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(_, j) {
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, K.current = Be, W(), Error.prepareStackTrace = Fe;
293
+ P = !1, K.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(_, j) {
409
409
  if (typeof _.ref == "string" && ue.current && j && ue.current.stateNode !== j) {
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(_, j) {
@@ -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(_, j) {
@@ -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(j);
571
+ var fe = k(j);
572
572
  Qe(Q, _.props, "prop", fe, _);
573
573
  } else if (j.PropTypes !== void 0 && !$n) {
574
574
  $n = !0;
575
- var Fe = M(j);
575
+ var Fe = k(j);
576
576
  v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Fe || "Unknown");
577
577
  }
578
578
  typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -600,7 +600,7 @@ Check the top-level render call using <` + Q + ">.");
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(_, j, 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(j, "key")) {
622
- var Qn = M(_), Et = Object.keys(j).filter(function(ph) {
622
+ var Qn = k(_), Et = Object.keys(j).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,8 +723,8 @@ 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: L, updateId: O, children: R } = A.props, M = O == null;
727
- A.staleId && m.delete(A.staleId), m.set(T, A), f = [...f, A.props.toastId].filter((G) => G !== A.staleId), C(), g(cl(A, M ? "added" : "updated")), M && Dt(L) && L(Or(R) && R.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((V) => V !== 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
730
  m.forEach((L) => {
@@ -733,30 +733,30 @@ function Gh(e) {
733
733
  }, removeToast: E, toasts: m, clearQueue: () => {
734
734
  b -= d.length, d = [];
735
735
  }, buildToast: (A, T) => {
736
- if (((P) => {
737
- let { containerId: V, toastId: B, updateId: W } = P;
738
- const K = V ? V !== u : u !== 1, ne = m.has(B) && W == null;
736
+ if (((M) => {
737
+ let { containerId: G, toastId: B, updateId: W } = M;
738
+ const K = G ? G !== u : u !== 1, ne = m.has(B) && W == null;
739
739
  return K || ne;
740
740
  })(T)) return;
741
- const { toastId: L, updateId: O, data: R, staleId: M, delay: G } = T, Z = () => {
741
+ const { toastId: L, updateId: R, data: O, staleId: k, delay: V } = T, Z = () => {
742
742
  E(L);
743
- }, $ = O == null;
743
+ }, $ = R == null;
744
744
  $ && b++;
745
- const te = { ...v, style: v.toastStyle, key: I++, ...Object.fromEntries(Object.entries(T).filter((P) => {
746
- let [V, B] = P;
745
+ const te = { ...v, style: v.toastStyle, key: I++, ...Object.fromEntries(Object.entries(T).filter((M) => {
746
+ let [G, B] = M;
747
747
  return B != null;
748
- })), toastId: L, updateId: O, data: R, 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(L), { onClose: V, children: B } = P.props;
750
- Dt(V) && V(Or(B) && B.props), g(cl(P, "removed")), m.delete(L), 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: B } = M.props;
750
+ Dt(G) && G(Or(B) && B.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
  te.closeButton = v.closeButton, T.closeButton === !1 || Ia(T.closeButton) ? te.closeButton = T.closeButton : T.closeButton === !0 && (te.closeButton = !Ia(v.closeButton) || v.closeButton);
754
754
  let le = A;
755
- Or(A) && !fr(A.type) ? le = va(A, { closeToast: Z, toastProps: te, data: R }) : Dt(A) && (le = A({ closeToast: Z, toastProps: te, data: R }));
756
- const de = { content: le, props: te, staleId: M };
757
- v.limit && v.limit > 0 && b > v.limit && $ ? d.push(de) : Lo(G) ? setTimeout(() => {
755
+ Or(A) && !fr(A.type) ? le = va(A, { closeToast: Z, toastProps: te, data: O }) : Dt(A) && (le = A({ closeToast: Z, toastProps: te, data: O }));
756
+ const de = { content: le, props: te, staleId: k };
757
+ v.limit && v.limit > 0 && b > v.limit && $ ? d.push(de) : Lo(V) ? setTimeout(() => {
758
758
  w(de);
759
- }, G) : w(de);
759
+ }, V) : w(de);
760
760
  }, setProps(A) {
761
761
  v = A;
762
762
  }, setToggle: (A, T) => {
@@ -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: L, isIn: O, isLoading: R, closeOnClick: M, theme: G } = e, Z = Vn("Toastify__toast", `Toastify__toast-theme--${G}`, `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), te = function(de) {
919
- let { theme: P, type: V, isLoading: B, icon: W } = de, K = null;
920
- const ne = { theme: P, type: V };
921
- return W === !1 || (Dt(W) ? K = W({ ...ne, isLoading: B }) : Or(W) ? K = va(W, ne) : B ? K = Hs.spinner() : ((ie) => ie in Hs)(V) && (K = Hs[V](ne))), K;
922
- }(e), Y = !!w || !c, X = { closeToast: g, type: u, theme: 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: V } = e, Z = Vn("Toastify__toast", `Toastify__toast-theme--${V}`, `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), te = function(de) {
919
+ let { theme: M, type: G, isLoading: B, icon: W } = de, K = null;
920
+ const ne = { theme: M, type: G };
921
+ return W === !1 || (Dt(W) ? K = W({ ...ne, isLoading: B }) : Or(W) ? K = va(W, ne) : B ? K = Hs.spinner() : ((ie) => ie in Hs)(G) && (K = Hs[G](ne))), K;
922
+ }(e), Y = !!w || !c, X = { closeToast: g, type: u, theme: V };
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: V, ariaLabel: B = "close" } = de;
926
- return Ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${V}`, type: "button", onClick: (W) => {
927
- W.stopPropagation(), P(W);
925
+ let { closeToast: M, theme: G, ariaLabel: B = "close" } = de;
926
+ return Ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${G}`, type: "button", onClick: (W) => {
927
+ W.stopPropagation(), M(W);
928
928
  }, "aria-label": B }, 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: L, 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 }, te != null && Ae.createElement("div", { className: Vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !R }) }, te), Ae.createElement("div", null, l)), le, Ae.createElement(Wh, { ...C && !Y ? { key: `pb-${C}` } : {}, rtl: A, theme: G, 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 }, te != null && Ae.createElement("div", { className: Vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O }) }, te), Ae.createElement("div", null, l)), le, Ae.createElement(Wh, { ...C && !Y ? { key: `pb-${C}` } : {}, rtl: A, theme: V, 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));
@@ -3488,21 +3488,21 @@ function af() {
3488
3488
  var h = function(b, d, f, p, v, m) {
3489
3489
  return e(void 0, void 0, void 0, function() {
3490
3490
  var x, C, E, w, A, T, L;
3491
- return t(this, function(O) {
3492
- switch (O.label) {
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
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, L, O, R;
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, L = E.expiryTime, (0, o.setTokenAndExpiry)(T, L), (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), R = 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 R < x ? [4, a(b, d, R + 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 R++, [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, L, O, R, M, G, Z, $, te, Y, X, le;
3810
+ var w, A, T, L, R, O, k, V, Z, $, te, 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, L = w.userId, O = w.userGroupId, A && T && (0, o.setTokenAndExpiry)(A, T), L && O && (0, o.setUserDetails)(L, 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 R = de.sent(), console.log("ERROR: Heimdall fetch token", R), ((Z = R.response) === null || Z === void 0 ? void 0 : Z.status) === 401 || (($ = R.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 ((te = R.response) === null || te === void 0 ? void 0 : te.status) === 409 || ((Y = R.request) === null || Y === void 0 ? void 0 : Y.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), G = { retryDelay: b, configs: p, apiParams: v, appUI: E }, [4, u(d, f, G, m, x)]) : [3, 6];
3822
+ return ((te = O.response) === null || te === void 0 ? void 0 : te.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"), V = { retryDelay: b, configs: p, apiParams: v, appUI: E }, [4, u(d, f, V, m, x)]) : [3, 6];
3823
3823
  case 5:
3824
3824
  if (de.sent(), f >= r.MAX_CONFLICT_RETRY_DELAY)
3825
- throw R;
3825
+ throw O;
3826
3826
  return [3, 11];
3827
3827
  case 6:
3828
- if (!(((X = R.response) === null || X === void 0 ? void 0 : X.status) === 422 || ((le = R.request) === null || le === void 0 ? void 0 : le.status) === 422)) return [3, 7];
3829
- throw console.log("ERROR: Throwing error", R.response.status), R;
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 R;
3839
+ throw O;
3840
3840
  case 11:
3841
3841
  return [3, 12];
3842
3842
  case 12:
@@ -3867,29 +3867,29 @@ function cf() {
3867
3867
  }, I = function(b, d, f, p, v, m, x) {
3868
3868
  return e(void 0, void 0, void 0, function() {
3869
3869
  var C, E, w, A, T, L;
3870
- return t(this, function(O) {
3871
- switch (O.label) {
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(R) {
3882
- switch (R.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 R.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 L = O.sent(), console.log("ERROR: Fetching token failed", L), [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
  }
@@ -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, L, O, R;
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 L = M.sent(), f.onSuccess && f.onSuccess(L), [2, L];
4070
+ return L = k.sent(), f.onSuccess && f.onSuccess(L), [2, L];
4071
4071
  case 4:
4072
- if (O = M.sent(), R = ((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 && R)
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 && R || !R)
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, L, O, R, M, G, Z, $, te;
4672
+ var x, C, E, w, A, T, L, R, O, k, V, Z, $, te;
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), ((R = T.response) === null || R === void 0 ? void 0 : R.status) === 401 || ((M = T.request) === null || M === void 0 ? void 0 : M.status) === 401 ? (L = 1, [4, c(f, L, 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 ((G = T.response) === null || G === void 0 ? void 0 : G.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 ((V = T.response) === null || V === void 0 ? void 0 : V.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;
@@ -5962,8 +5962,8 @@ const Yb = N(be)`
5962
5962
  const A = new IntersectionObserver(
5963
5963
  (T) => {
5964
5964
  const L = l.current;
5965
- for (const O of T)
5966
- L == null || L.classList.toggle(Rf, O.intersectionRatio === 0);
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,22 +6080,22 @@ 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 R = 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, R))
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 = R, R;
6092
+ return E = O, O;
6093
6093
  }
6094
- var G = C, Z = E;
6095
- if (n(G, O))
6094
+ var V = C, Z = E;
6095
+ if (n(V, 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
6101
  }, L = A === null ? void 0 : function() {
@@ -7784,8 +7784,8 @@ function Uy({
7784
7784
  return tu(A, w, {
7785
7785
  insert: () => {
7786
7786
  const T = {};
7787
- for (const [L, O] of Object.entries(o.selectors ?? {}))
7788
- T[L] = 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,23 +8239,23 @@ 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], L = A[1], O = _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
8243
  typeof a == "function" && a(Y, X), L(Y);
8244
- }, [a]), R = _e(function(Y, X) {
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
- }, [g]), G = _e(function() {
8249
+ }, [g]), V = _e(function() {
8250
8250
  typeof h == "function" && h(), E(!1);
8251
8251
  }, [h]), Z = l !== void 0 ? l : p, $ = c !== void 0 ? c : C, te = I !== void 0 ? I : T;
8252
8252
  return oe(oe({}, b), {}, {
8253
8253
  inputValue: Z,
8254
8254
  menuIsOpen: $,
8255
- onChange: O,
8256
- onInputChange: R,
8257
- onMenuClose: G,
8258
- onMenuOpen: M,
8255
+ onChange: R,
8256
+ onInputChange: O,
8257
+ onMenuClose: V,
8258
+ onMenuOpen: k,
8259
8259
  value: te
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, L = u, O = r, R = b, M = I, G = n, Z = i, $ = o, te = h, Y = !1;
9032
+ var C = c, E = a, w = l, A = s, T = t, L = u, R = r, O = b, k = I, V = n, Z = i, $ = o, te = 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,10 +9039,10 @@ 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
- function V(H) {
9045
+ function G(H) {
9046
9046
  return typeof H == "object" && H !== null && H.$$typeof === t;
9047
9047
  }
9048
9048
  function B(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 = L, Ne.Fragment = O, Ne.Lazy = R, Ne.Memo = M, Ne.Portal = G, Ne.Profiler = Z, Ne.StrictMode = $, Ne.Suspense = te, Ne.isAsyncMode = X, Ne.isConcurrentMode = le, Ne.isContextConsumer = de, Ne.isContextProvider = P, Ne.isElement = V, Ne.isForwardRef = B, Ne.isFragment = W, Ne.isLazy = K, 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 = V, Ne.Profiler = Z, Ne.StrictMode = $, Ne.Suspense = te, Ne.isAsyncMode = X, Ne.isConcurrentMode = le, Ne.isContextConsumer = de, Ne.isContextProvider = M, Ne.isElement = G, Ne.isForwardRef = B, Ne.isFragment = W, Ne.isLazy = K, 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, L = I - v + m + x, O = m + d - C, R = 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,23 +9776,23 @@ function NI(e) {
9776
9776
  maxHeight: t
9777
9777
  };
9778
9778
  if (T >= b && !s)
9779
- return i && pi(c, L, R), {
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, L, R);
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) {
9792
- var G = t, Z = s ? E : A;
9793
- return Z >= r && (G = Math.min(Z - x - l, t)), {
9792
+ var V = t, Z = s ? E : A;
9793
+ return Z >= r && (V = Math.min(Z - x - l, t)), {
9794
9794
  placement: "top",
9795
- maxHeight: G
9795
+ maxHeight: V
9796
9796
  };
9797
9797
  }
9798
9798
  if (o === "bottom")
@@ -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, R), {
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, R), {
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,11 +10547,11 @@ var J5 = process.env.NODE_ENV === "production" ? {
10547
10547
  if (n && A.onChange) {
10548
10548
  var $ = n.option, te = 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), V = P ? g(P) : "", B = te || X || void 0, W = B ? B.map(g) : [], K = oe({
10550
+ }, M = Y || $ || de(le), G = M ? g(M) : "", B = te || X || void 0, W = B ? B.map(g) : [], K = 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),
10554
- label: V,
10553
+ isDisabled: M && d(M, l),
10554
+ label: G,
10555
10555
  labels: W
10556
10556
  }, n);
10557
10557
  Z = A.onChange(K);
@@ -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]), R = (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: R
10599
+ isInitialFocus: O
10600
10600
  });
10601
10601
  }
10602
10602
  return Z;
10603
- }, [E, r, o, b, d, f, p, A, l, x, R]), G = ae(ya, null, ae("span", {
10603
+ }, [E, r, o, b, d, f, p, A, l, x, O]), V = ae(ya, null, ae("span", {
10604
10604
  id: "aria-selection"
10605
10605
  }, T), ae("span", {
10606
10606
  id: "aria-focused"
10607
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
- }, R && G), ae(wu, {
10614
+ }, O && V), ae(wu, {
10615
10615
  "aria-live": w,
10616
10616
  "aria-atomic": "false",
10617
10617
  "aria-relevant": "additions text",
10618
10618
  role: "log"
10619
- }, s && !R && G));
10619
+ }, s && !O && V));
10620
10620
  }, ex = K5, nc = [{
10621
10621
  base: "A",
10622
10622
  letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
@@ -11898,7 +11898,7 @@ var ep = function(t) {
11898
11898
  }), v);
11899
11899
  if (f)
11900
11900
  return x.map(function(A, T) {
11901
- var L = 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,
@@ -11907,7 +11907,7 @@ var ep = function(t) {
11907
11907
  },
11908
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, L = f.menuPortalTarget, O = f.menuShouldBlockScroll, R = f.menuShouldScrollIntoView, M = f.noOptionsMessage, G = 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, V = f.onMenuScrollToTop, Z = f.onMenuScrollToBottom;
11995
11995
  if (!w) return null;
11996
- var $ = function(V, B) {
11997
- var W = V.type, K = V.data, ne = V.isDisabled, ie = V.isSelected, k = V.label, re = V.value, xe = d === K, H = ne ? void 0 : function() {
11996
+ var $ = function(G, B) {
11997
+ var W = G.type, K = G.data, ne = G.isDisabled, ie = G.isSelected, P = G.label, re = G.value, xe = d === K, H = ne ? void 0 : function() {
11998
11998
  return o.onOptionHover(K);
11999
11999
  }, He = ne ? void 0 : function() {
12000
12000
  return o.selectOption(K);
@@ -12014,32 +12014,32 @@ 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,
12021
12021
  innerRef: xe ? o.getFocusedOptionRef : void 0
12022
- }), o.formatOptionLabel(V.data, "menu"));
12022
+ }), o.formatOptionLabel(G.data, "menu"));
12023
12023
  }, te;
12024
12024
  if (this.hasOptions())
12025
- te = this.getCategorizedOptions().map(function(P) {
12026
- if (P.type === "group") {
12027
- var V = P.data, B = P.options, W = P.index, K = "".concat(o.getElementId("group"), "-").concat(W), ne = "".concat(K, "-heading");
12025
+ te = this.getCategorizedOptions().map(function(M) {
12026
+ if (M.type === "group") {
12027
+ var G = M.data, B = M.options, W = M.index, K = "".concat(o.getElementId("group"), "-").concat(W), ne = "".concat(K, "-heading");
12028
12028
  return /* @__PURE__ */ F.createElement(s, ce({}, b, {
12029
12029
  key: K,
12030
- data: V,
12030
+ data: G,
12031
12031
  options: B,
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
  te = /* @__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,11 +12059,11 @@ var ep = function(t) {
12059
12059
  maxMenuHeight: E,
12060
12060
  menuPlacement: A,
12061
12061
  menuPosition: T,
12062
- menuShouldScrollIntoView: R
12063
- }, de = /* @__PURE__ */ F.createElement(MI, ce({}, b, le), function(P) {
12064
- var V = P.ref, B = P.placerProps, W = B.placement, K = B.maxHeight;
12062
+ menuShouldScrollIntoView: O
12063
+ }, de = /* @__PURE__ */ F.createElement(MI, ce({}, b, le), function(M) {
12064
+ var G = M.ref, B = M.placerProps, W = B.placement, K = B.maxHeight;
12065
12065
  return /* @__PURE__ */ F.createElement(c, ce({}, b, le, {
12066
- innerRef: V,
12066
+ innerRef: G,
12067
12067
  innerProps: {
12068
12068
  onMouseDown: o.onMenuMouseDown,
12069
12069
  onMouseMove: o.onMenuMouseMove
@@ -12072,13 +12072,13 @@ var ep = function(t) {
12072
12072
  placement: W
12073
12073
  }), /* @__PURE__ */ F.createElement(px, {
12074
12074
  captureEnabled: p,
12075
- onTopArrive: G,
12075
+ onTopArrive: V,
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",
@@ -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
- } : {}, L = a, O = u && h;
12206
- return u && !O && (L = {
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" && (L = 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
12212
  ariaSelection: L,
12213
- prevWasFocused: O
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], L = A[1], O = J(void 0), R = it(O, 2), M = R[0], G = R[1], Z = J([]), $ = it(Z, 2), te = $[0], Y = $[1], X = J(!1), le = it(X, 2), de = le[0], P = le[1], V = J({}), B = it(V, 2), W = B[0], K = B[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 && (K({}), 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], V = O[1], Z = J([]), $ = it(Z, 2), te = $[0], Y = $[1], X = J(!1), le = it(X, 2), de = le[0], M = le[1], G = J({}), B = it(G, 2), W = B[0], K = B[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 && (K({}), 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
  };
@@ -12403,18 +12403,18 @@ function ap(e) {
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(""), G(""), Y([]), L(!1), P(!1);
12406
+ I.current = void 0, E(""), V(""), Y([]), L(!1), M(!1);
12407
12407
  return;
12408
12408
  }
12409
12409
  if (o && W[Qe])
12410
- E(Qe), G(Qe), Y(W[Qe]), L(!1), P(!1);
12410
+ E(Qe), V(Qe), Y(W[Qe]), L(!1), M(!1);
12411
12411
  else {
12412
12412
  var _n = I.current = {};
12413
- E(Qe), L(!0), P(!M), tt(Qe, function(Vt) {
12414
- b && _n === I.current && (I.current = void 0, L(!1), G(Qe), Y(Vt || []), P(!1), K(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), V(Qe), Y(Vt || []), M(!1), K(Vt ? oe(oe({}, W), {}, Sr({}, Qe, Vt)) : W));
12415
12415
  });
12416
12416
  }
12417
- }, [o, tt, M, W, c]), hn = de ? [] : C && M ? te : p || [];
12417
+ }, [o, tt, k, W, c]), hn = de ? [] : C && k ? te : p || [];
12418
12418
  return oe(oe({}, h), {}, {
12419
12419
  options: hn,
12420
12420
  isLoading: T || l,
@@ -12457,11 +12457,11 @@ function $x(e) {
12457
12457
  }) ? u(x, s(x)) : void 0;
12458
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(R, M) {
12461
- if (M.action !== "select-option")
12462
- return b(R, M);
12463
- var G = Array.isArray(R) ? R : [R];
12464
- if (G[G.length - 1] === T) {
12460
+ }, [n, o, C, T, I]), R = _e(function(O, k) {
12461
+ if (k.action !== "select-option")
12462
+ return b(O, k);
12463
+ var V = Array.isArray(O) ? O : [O];
12464
+ if (V[V.length - 1] === T) {
12465
12465
  if (h) h(x);
12466
12466
  else {
12467
12467
  var Z = u(x, x), $ = {
@@ -12473,11 +12473,11 @@ function $x(e) {
12473
12473
  }
12474
12474
  return;
12475
12475
  }
12476
- b(R, M);
12476
+ b(O, k);
12477
12477
  }, [u, x, E, A, T, h, b, w]);
12478
12478
  return oe(oe({}, d), {}, {
12479
12479
  options: L,
12480
- onChange: O
12480
+ onChange: R
12481
12481
  });
12482
12482
  }
12483
12483
  var Yx = /* @__PURE__ */ ss(function(e, t) {
@@ -12517,46 +12517,46 @@ 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 = (R, M, G) => (a.current && a.current.abort("stale data"), a.current = new AbortController(), g == null ? void 0 : g(R, M, G, a.current)), m = qx(
12521
- (R, M) => {
12522
- if (s(R), r.length > 0 && !I) {
12523
- const Z = r.filter(($) => $ && typeof $ == "object" && "label" in $ && typeof $.label == "string" ? $.label.toLowerCase().includes(R.toLowerCase()) : !1);
12524
- M(Z);
12520
+ } = n, { getValue: f, closeMenuOnScroll: p } = op({ options: r, isMulti: u, isScrollTarget: t }), v = (O, k, V) => (a.current && a.current.abort("stale data"), a.current = new AbortController(), g == null ? void 0 : g(O, k, V, a.current)), m = qx(
12521
+ (O, k) => {
12522
+ if (s(O), r.length > 0 && !I) {
12523
+ const Z = r.filter(($) => $ && typeof $ == "object" && "label" in $ && typeof $.label == "string" ? $.label.toLowerCase().includes(O.toLowerCase()) : !1);
12524
+ k(Z);
12525
12525
  return;
12526
12526
  }
12527
- const G = (Z) => {
12528
- M(Z), o(Z);
12527
+ const V = (Z) => {
12528
+ k(Z), o(Z);
12529
12529
  };
12530
- v == null || v(R, G, !1);
12530
+ v == null || v(O, V, !1);
12531
12531
  },
12532
12532
  300
12533
- ), x = (R, M) => {
12534
- c(!1), !(M && "isError" in M && M.isError) && o(R);
12535
- }, C = (R) => {
12536
- var M;
12537
- (M = n.onMenuScrollToBottom) == null || M.call(n, R), b && g && !l && (c(!0), v(i, x, !0));
12538
- }, E = (R, M) => {
12539
- var G;
12540
- (G = n.onInputChange) == null || G.call(n, R, M), M.action === "input-change" && I && (s(R), o([]), R || (c(!0), m(R, x)));
12541
- }, w = (R) => {
12542
- var M;
12543
- s(""), (M = n.onBlur) == null || M.call(n, R);
12544
- }, A = (R) => {
12545
- var M;
12546
- (M = n.onFocus) == null || M.call(n, R), !l && d && (o([]), c(!0), v == null || v(i, x, !1));
12547
- }, T = (R) => (M) => {
12533
+ ), x = (O, k) => {
12534
+ c(!1), !(k && "isError" in k && k.isError) && o(O);
12535
+ }, C = (O) => {
12536
+ var k;
12537
+ (k = n.onMenuScrollToBottom) == null || k.call(n, O), b && g && !l && (c(!0), v(i, x, !0));
12538
+ }, E = (O, k) => {
12539
+ var V;
12540
+ (V = n.onInputChange) == null || V.call(n, O, k), k.action === "input-change" && I && (s(O), o([]), O || (c(!0), m(O, x)));
12541
+ }, w = (O) => {
12542
+ var k;
12543
+ s(""), (k = n.onBlur) == null || k.call(n, O);
12544
+ }, A = (O) => {
12545
+ var k;
12546
+ (k = n.onFocus) == null || k.call(n, O), !l && d && (o([]), c(!0), v == null || v(i, x, !1));
12547
+ }, T = (O) => (k) => {
12548
12548
  var Z;
12549
- const G = M.find(($) => $.label === R);
12550
- !n.isMulti && G && ((Z = n.onChange) == null || Z.call(n, G, {
12549
+ const V = k.find(($) => $.label === O);
12550
+ !n.isMulti && V && ((Z = n.onChange) == null || Z.call(n, V, {
12551
12551
  action: "select-option",
12552
12552
  name: n.name,
12553
- option: G
12554
- })), o(M), c(!1);
12555
- }, L = (R) => {
12556
- c(!0), h == null || h(R, T(R));
12557
- }, O = h ? Jx : Ux;
12553
+ option: V
12554
+ })), o(k), c(!1);
12555
+ }, L = (O) => {
12556
+ c(!0), h == null || h(O, T(O));
12557
+ }, R = h ? Jx : Ux;
12558
12558
  return /* @__PURE__ */ y.jsx(
12559
- O,
12559
+ R,
12560
12560
  {
12561
12561
  ...n,
12562
12562
  value: n.value ? f(n.value) : null,
@@ -12792,140 +12792,140 @@ const fE = N(Oh)`
12792
12792
  onValidationError: b
12793
12793
  }) => {
12794
12794
  const d = t ?? [], f = (o == null ? void 0 : o.validations) ?? {}, p = ye(), v = ye({}), [m, x] = J({}), { colsLength: C, colsTemplate: E, colWidth: w } = Me(() => {
12795
- let P = 0, V = "";
12795
+ let M = 0, G = "";
12796
12796
  for (const B of r) {
12797
12797
  let W = B.cols ? Number(B.cols) : 1;
12798
- isNaN(W) && (W = 1), P += W, V += `${B.cols ?? W}fr `;
12798
+ isNaN(W) && (W = 1), M += W, G += `${B.cols ?? W}fr `;
12799
12799
  }
12800
- return s || (P += 0.5, V += "0.5fr"), {
12801
- colsLength: P,
12802
- colsTemplate: V.trim(),
12800
+ return s || (M += 0.5, G += "0.5fr"), {
12801
+ colsLength: M,
12802
+ colsTemplate: G.trim(),
12803
12803
  colWidth: `${isNaN(l) ? fp : l}px`
12804
12804
  };
12805
12805
  }, [r, l, s]), { fieldDependency: A, fieldConfigs: T } = Me(() => {
12806
- const P = {}, V = {};
12806
+ const M = {}, G = {};
12807
12807
  for (const B of r) {
12808
12808
  if (!B.valueConfig)
12809
12809
  continue;
12810
- V[B.name] = B.valueConfig;
12810
+ G[B.name] = B.valueConfig;
12811
12811
  const W = B.valueConfig.columnNames;
12812
12812
  for (const K of W)
12813
- P[K] || (P[K] = []), P[K].push(B.name);
12813
+ M[K] || (M[K] = []), M[K].push(B.name);
12814
12814
  }
12815
12815
  return {
12816
- fieldDependency: P,
12817
- fieldConfigs: V
12816
+ fieldDependency: M,
12817
+ fieldConfigs: G
12818
12818
  };
12819
12819
  }, [r]);
12820
12820
  me(() => {
12821
12821
  if (t)
12822
12822
  return;
12823
- const P = [];
12824
- for (let V = 0; V < i; V++) {
12823
+ const M = [];
12824
+ for (let G = 0; G < i; G++) {
12825
12825
  const B = ou();
12826
- P.push({ [nr]: B });
12826
+ M.push({ [nr]: B });
12827
12827
  }
12828
- g(P);
12828
+ g(M);
12829
12829
  }, [t, g, i]);
12830
12830
  const L = () => {
12831
- const P = Object.entries(v.current).filter((V) => !!V[1])[0];
12832
- return (P == null ? void 0 : P[1]) ?? "";
12833
- }, O = () => {
12834
- const P = {
12831
+ const M = Object.entries(v.current).filter((G) => !!G[1])[0];
12832
+ return (M == null ? void 0 : M[1]) ?? "";
12833
+ }, R = () => {
12834
+ const M = {
12835
12835
  [nr]: ou()
12836
12836
  };
12837
- g([...d, P]);
12838
- }, R = (P) => {
12839
- const V = d.filter((B) => B[nr] !== P);
12840
- g(V), x((B) => ({
12837
+ g([...d, M]);
12838
+ }, O = (M) => {
12839
+ const G = d.filter((B) => B[nr] !== M);
12840
+ g(G), x((B) => ({
12841
12841
  ...B,
12842
- [P]: {}
12842
+ [M]: {}
12843
12843
  }));
12844
12844
  for (const B in v.current)
12845
- B.startsWith(`${P}.`) && delete v.current[B];
12845
+ B.startsWith(`${M}.`) && delete v.current[B];
12846
12846
  b == null || b(e, L());
12847
- }, M = (P, { columnNames: V = [], operationType: B }) => {
12848
- const W = V.map((K) => P[K]);
12847
+ }, k = (M, { columnNames: G = [], operationType: B }) => {
12848
+ const W = G.map((K) => M[K]);
12849
12849
  return "" + iu(W, B);
12850
- }, G = (P, V) => {
12851
- const B = d.map((W) => P !== W[nr] ? W : {
12850
+ }, V = (M, G) => {
12851
+ const B = d.map((W) => M !== W[nr] ? W : {
12852
12852
  ...W,
12853
- ...V
12853
+ ...G
12854
12854
  });
12855
12855
  g(B);
12856
- }, Z = (P, V) => {
12856
+ }, Z = (M, G) => {
12857
12857
  const B = d.map((W) => {
12858
- if (P !== W[nr])
12858
+ if (M !== W[nr])
12859
12859
  return W;
12860
12860
  const K = { ...W };
12861
- for (const ne of V)
12861
+ for (const ne of G)
12862
12862
  delete K[ne];
12863
12863
  return K;
12864
12864
  });
12865
12865
  g(B);
12866
- }, $ = (P, V, B, W) => {
12866
+ }, $ = (M, G, B, W) => {
12867
12867
  var ie;
12868
12868
  const K = ((ie = W == null ? void 0 : W.target) == null ? void 0 : ie.value) ?? "", ne = {
12869
12869
  ...B,
12870
- [V]: K
12870
+ [G]: K
12871
12871
  };
12872
- if (A[V])
12873
- for (const k of A[V]) {
12874
- const re = M(ne, T[k]);
12875
- ne[k] = re;
12872
+ if (A[G])
12873
+ for (const P of A[G]) {
12874
+ const re = k(ne, T[P]);
12875
+ ne[P] = re;
12876
12876
  }
12877
- G(P, ne);
12878
- }, te = (P, V, B) => {
12879
- G(P, { [V]: B });
12880
- }, Y = (P, V, B, W) => {
12877
+ V(M, ne);
12878
+ }, te = (M, G, B) => {
12879
+ V(M, { [G]: B });
12880
+ }, Y = (M, G, B, W) => {
12881
12881
  if (B && typeof B == "object" && "value" in B && typeof B.value == "string" && typeof W.name < "u") {
12882
12882
  const K = "prefillValues" in B && B.prefillValues, ne = {
12883
- ...V,
12883
+ ...G,
12884
12884
  [W.name]: B.value,
12885
12885
  ...K
12886
12886
  };
12887
12887
  for (const ie in ne)
12888
12888
  if (A[ie])
12889
- for (const k of A[ie]) {
12890
- const re = M(ne, T[k]);
12891
- ne[k] = re;
12889
+ for (const P of A[ie]) {
12890
+ const re = k(ne, T[P]);
12891
+ ne[P] = re;
12892
12892
  }
12893
- G(P, ne);
12893
+ V(M, ne);
12894
12894
  }
12895
- (W == null ? void 0 : W.action) === "clear" && W.name && Z(P, [W.name]);
12896
- }, X = (P, V, B) => {
12897
- G(P, { [V]: (B == null ? void 0 : B.toISOString()) ?? "" });
12898
- }, le = (P, V, B, W) => {
12895
+ (W == null ? void 0 : W.action) === "clear" && W.name && Z(M, [W.name]);
12896
+ }, X = (M, G, B) => {
12897
+ V(M, { [G]: (B == null ? void 0 : B.toISOString()) ?? "" });
12898
+ }, le = (M, G, B, W) => {
12899
12899
  W && x((K) => {
12900
- const ne = K[P] ?? {};
12901
- return { ...K, [P]: { ...ne, [V]: B } };
12900
+ const ne = K[M] ?? {};
12901
+ return { ...K, [M]: { ...ne, [G]: B } };
12902
12902
  }), v.current = {
12903
12903
  ...v.current,
12904
- [`${P}.${V}`]: typeof B == "string" ? B : ""
12904
+ [`${M}.${G}`]: typeof B == "string" ? B : ""
12905
12905
  }, b == null || b(e, L());
12906
- }, de = (P) => p.current === P;
12906
+ }, de = (M) => p.current === M;
12907
12907
  return /* @__PURE__ */ y.jsxs(nE, { children: [
12908
12908
  /* @__PURE__ */ y.jsx(rE, { ref: p, children: /* @__PURE__ */ y.jsxs(oE, { gridColumns: E, minWidth: `calc( ${C} * ${w} )`, children: [
12909
- /* @__PURE__ */ y.jsx(sE, { children: r.map(({ name: P, label: V, isRequired: B }) => /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(dp, { label: V, isRequired: B }) }, P)) }),
12910
- d.map(({ [nr]: P, ...V }) => /* @__PURE__ */ y.jsxs(lp, { children: [
12909
+ /* @__PURE__ */ y.jsx(sE, { children: r.map(({ name: M, label: G, isRequired: B }) => /* @__PURE__ */ y.jsx(fa, { children: /* @__PURE__ */ y.jsx(dp, { label: G, isRequired: B }) }, M)) }),
12910
+ d.map(({ [nr]: M, ...G }) => /* @__PURE__ */ y.jsxs(lp, { children: [
12911
12911
  r.map(({ name: B, key: W, ...K }) => {
12912
12912
  var ne;
12913
- return /* @__PURE__ */ y.jsx(fa, { hasError: !!((ne = m == null ? void 0 : m[P]) != null && ne[B]), children: /* @__PURE__ */ y.jsx(
12913
+ return /* @__PURE__ */ y.jsx(fa, { hasError: !!((ne = m == null ? void 0 : m[M]) != null && ne[B]), children: /* @__PURE__ */ y.jsx(
12914
12914
  Wo,
12915
12915
  {
12916
12916
  name: B,
12917
- value: V[B],
12917
+ value: G[B],
12918
12918
  ...K,
12919
12919
  className: so,
12920
12920
  label: "",
12921
12921
  hideHelperText: !0,
12922
12922
  validation: f == null ? void 0 : f[B],
12923
12923
  onFocus: I,
12924
- inputChangeHandler: (ie) => $(P, B, V, ie),
12925
- checkboxChangeHandler: (...ie) => te(P, B, ie[1]),
12926
- selectChangeHandler: (...ie) => Y(P, V, ...ie),
12927
- dateChangeHandler: (ie, k) => X(P, ie, k),
12928
- onValidationError: (...ie) => le(P, ...ie),
12924
+ inputChangeHandler: (ie) => $(M, B, G, ie),
12925
+ checkboxChangeHandler: (...ie) => te(M, B, ie[1]),
12926
+ selectChangeHandler: (...ie) => Y(M, G, ...ie),
12927
+ dateChangeHandler: (ie, P) => X(M, ie, P),
12928
+ onValidationError: (...ie) => le(M, ...ie),
12929
12929
  fetchConfig: a == null ? void 0 : a[B],
12930
12930
  createConfig: u == null ? void 0 : u[B],
12931
12931
  isScrollTarget: de,
@@ -12936,29 +12936,29 @@ const fE = N(Oh)`
12936
12936
  }
12937
12937
  ) }, B ?? W);
12938
12938
  }),
12939
- 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: () => R(P), children: /* @__PURE__ */ y.jsx(hE, {}) }) }) })
12940
- ] }, P))
12939
+ 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, {}) }) }) })
12940
+ ] }, M))
12941
12941
  ] }) }),
12942
12942
  /* @__PURE__ */ y.jsxs(iE, { children: [
12943
- s ? null : /* @__PURE__ */ y.jsxs(aE, { onClick: O, children: [
12943
+ s ? null : /* @__PURE__ */ y.jsxs(aE, { onClick: R, children: [
12944
12944
  /* @__PURE__ */ y.jsx(cp, {}),
12945
12945
  /* @__PURE__ */ y.jsx(pe, { children: "Add Line" })
12946
12946
  ] }),
12947
12947
  c.length ? /* @__PURE__ */ y.jsx(cE, { children: c.map(
12948
- ({ label: P, columnName: V, operationType: B, prefix: W = "", prefixKey: K, suffix: ne = "", suffixKey: ie }) => /* @__PURE__ */ y.jsxs(lE, { children: [
12949
- /* @__PURE__ */ y.jsx(pe, { fontWeight: 500, children: P }),
12948
+ ({ label: M, columnName: G, operationType: B, prefix: W = "", prefixKey: K, suffix: ne = "", suffixKey: ie }) => /* @__PURE__ */ y.jsxs(lE, { children: [
12949
+ /* @__PURE__ */ y.jsx(pe, { fontWeight: 500, children: M }),
12950
12950
  /* @__PURE__ */ y.jsxs(pe, { children: [
12951
12951
  /* @__PURE__ */ y.jsxs("span", { children: [
12952
12952
  n[K] ?? W,
12953
12953
  " "
12954
12954
  ] }),
12955
12955
  /* @__PURE__ */ y.jsx("span", { children: iu(
12956
- d.map((k) => k[V]),
12956
+ d.map((P) => P[G]),
12957
12957
  B
12958
12958
  ) }),
12959
12959
  /* @__PURE__ */ y.jsx("span", { children: n[ie] ?? ne })
12960
12960
  ] })
12961
- ] }, P)
12961
+ ] }, M)
12962
12962
  ) }) : null
12963
12963
  ] })
12964
12964
  ] });
@@ -13227,59 +13227,59 @@ const gE = N(be)`
13227
13227
  showGlobalLoader: w = !1,
13228
13228
  hideHelperText: A = !1,
13229
13229
  meta: { isExpandable: T = v === "table", isExpanded: L = !0 } = {}
13230
- } = g, [O, R] = J(!1), [M, G] = J(""), [Z, $] = J(L);
13230
+ } = g, [R, O] = J(!1), [k, V] = J(""), [Z, $] = J(L);
13231
13231
  me(() => {
13232
- O || Y(g.value, !1);
13233
- }, [O, g.value]);
13234
- const te = (k) => {
13232
+ R || Y(g.value, !1);
13233
+ }, [R, g.value]);
13234
+ const te = (P) => {
13235
13235
  var re;
13236
- k && !O && R(!0), (re = g.onFocus) == null || re.call(g, k);
13236
+ P && !R && O(!0), (re = g.onFocus) == null || re.call(g, P);
13237
13237
  };
13238
- function Y(k, re = !0, xe) {
13238
+ function Y(P, re = !0, xe) {
13239
13239
  let H = "";
13240
- if ((I != null && I.isRequired || C) && (H = k ? "" : Pu, !k && typeof (I == null ? void 0 : I.isRequired) == "function")) {
13241
- const Ve = I.isRequired(k);
13240
+ if ((I != null && I.isRequired || C) && (H = P ? "" : Pu, !P && typeof (I == null ? void 0 : I.isRequired) == "function")) {
13241
+ const Ve = I.isRequired(P);
13242
13242
  Ve && typeof Ve == "boolean" ? H = Pu : Ve && (H = Ve);
13243
13243
  }
13244
13244
  let He = { id: d, name: p, label: f };
13245
- 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)) {
13246
- const Ve = I.validate(k, { ...He, ...xe });
13245
+ 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)) {
13246
+ const Ve = I.validate(P, { ...He, ...xe });
13247
13247
  typeof Ve == "boolean" && Ve === !1 ? H = Wx : typeof Ve == "string" && (H = Ve);
13248
13248
  }
13249
- re && G(H), s == null || s(p, H, re);
13249
+ re && V(H), s == null || s(p, H, re);
13250
13250
  }
13251
- const X = (k) => {
13251
+ const X = (P) => {
13252
13252
  var re;
13253
- O || R(!0), (re = g.onBlur) == null || re.call(g, k), O && m && Y(g.value);
13254
- }, 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) => {
13255
- k && !O && R(!0), l == null || l(k), O && x && Y(k.target.value);
13256
- }, P = (k, re) => {
13257
- k && !O && R(!0), h == null || h(k, re), O && x && Y(re);
13258
- }, V = (k, re) => {
13259
- c == null || c(k, re), k && !O && R(!0), k && typeof k == "object" && "value" in k && O && x && Y(k.value);
13260
- }, B = (k, re) => {
13261
- a == null || a(p, k, re), k && !O && R(!0), O && x && Y(k);
13262
- }, W = (k) => {
13263
- u == null || u(p, k);
13264
- }, K = (k, re) => {
13265
- O && (s == null || s(k, re), G(typeof re == "string" ? re : ""));
13266
- }, ne = (k) => {
13253
+ R || O(!0), (re = g.onBlur) == null || re.call(g, P), R && m && Y(g.value);
13254
+ }, 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) => {
13255
+ P && !R && O(!0), l == null || l(P), R && x && Y(P.target.value);
13256
+ }, M = (P, re) => {
13257
+ P && !R && O(!0), h == null || h(P, re), R && x && Y(re);
13258
+ }, G = (P, re) => {
13259
+ c == null || c(P, re), P && !R && O(!0), P && typeof P == "object" && "value" in P && R && x && Y(P.value);
13260
+ }, B = (P, re) => {
13261
+ a == null || a(p, P, re), P && !R && O(!0), R && x && Y(P);
13262
+ }, W = (P) => {
13263
+ u == null || u(p, P);
13264
+ }, K = (P, re) => {
13265
+ R && (s == null || s(P, re), V(typeof re == "string" ? re : ""));
13266
+ }, ne = (P) => {
13267
13267
  $((re) => !re);
13268
- }, ie = (k) => {
13268
+ }, ie = (P) => {
13269
13269
  if (w)
13270
13270
  return /* @__PURE__ */ y.jsx(Cc, { variant: "rounded", height: 29.69, animation: "wave" });
13271
- switch (k.type) {
13271
+ switch (P.type) {
13272
13272
  case "select":
13273
13273
  return /* @__PURE__ */ y.jsx(Bu, { children: /* @__PURE__ */ y.jsx(
13274
13274
  Ho,
13275
13275
  {
13276
- ...k,
13276
+ ...P,
13277
13277
  stackIndex: o,
13278
13278
  isScrollTarget: i,
13279
- className: `formField__select ${M && O ? "formField__select--error" : ""} ${k.className || ""}`,
13279
+ className: `formField__select ${k && R ? "formField__select--error" : ""} ${P.className || ""}`,
13280
13280
  classNamePrefix: "hiverFormField",
13281
13281
  onBlur: X,
13282
- onChange: V,
13282
+ onChange: G,
13283
13283
  onFocus: te,
13284
13284
  menuPortalTarget: n
13285
13285
  }
@@ -13288,13 +13288,13 @@ const gE = N(be)`
13288
13288
  return /* @__PURE__ */ y.jsx(Bu, { children: /* @__PURE__ */ y.jsx(
13289
13289
  tE,
13290
13290
  {
13291
- ...k,
13291
+ ...P,
13292
13292
  stackIndex: o,
13293
13293
  isScrollTarget: i,
13294
- className: `formField__select ${M && O ? "formField__select--error" : ""} ${k.className || ""}`,
13294
+ className: `formField__select ${k && R ? "formField__select--error" : ""} ${P.className || ""}`,
13295
13295
  classNamePrefix: "hiverFormField",
13296
13296
  onBlur: X,
13297
- onChange: V,
13297
+ onChange: G,
13298
13298
  onFocus: te,
13299
13299
  loadOptions: e == null ? void 0 : e.loadOptions,
13300
13300
  createOption: t == null ? void 0 : t.createOption,
@@ -13305,20 +13305,20 @@ const gE = N(be)`
13305
13305
  return /* @__PURE__ */ y.jsx(
13306
13306
  dE,
13307
13307
  {
13308
- ...k,
13308
+ ...P,
13309
13309
  label: void 0,
13310
13310
  onBlur: X,
13311
13311
  onFocus: te,
13312
13312
  onChange: B,
13313
- error: !!(M && O)
13313
+ error: !!(k && R)
13314
13314
  }
13315
13315
  );
13316
13316
  case "table":
13317
13317
  return /* @__PURE__ */ y.jsx(
13318
13318
  Ps,
13319
13319
  {
13320
- ...k,
13321
- value: k.value,
13320
+ ...P,
13321
+ value: P.value,
13322
13322
  onChange: W,
13323
13323
  onFocus: te,
13324
13324
  onValidationError: K,
@@ -13328,7 +13328,7 @@ const gE = N(be)`
13328
13328
  }
13329
13329
  );
13330
13330
  case "checkbox":
13331
- return /* @__PURE__ */ y.jsx(pE, { ...k, onChange: P, onFocus: te, onBlur: X });
13331
+ return /* @__PURE__ */ y.jsx(pE, { ...P, onChange: M, onFocus: te, onBlur: X });
13332
13332
  default:
13333
13333
  return /* @__PURE__ */ y.jsx(
13334
13334
  vE,
@@ -13336,18 +13336,18 @@ const gE = N(be)`
13336
13336
  variant: "outlined",
13337
13337
  fullWidth: !0,
13338
13338
  id: d,
13339
- ...k,
13340
- value: k.value,
13339
+ ...P,
13340
+ value: P.value,
13341
13341
  label: void 0,
13342
13342
  onBlur: X,
13343
13343
  onChange: de,
13344
13344
  onFocus: te,
13345
- error: !!(M && O),
13345
+ error: !!(k && R),
13346
13346
  inputProps: {
13347
- type: k.type,
13348
- min: k.min,
13349
- max: k.max,
13350
- ...k.inputProps
13347
+ type: P.type,
13348
+ min: P.min,
13349
+ max: P.max,
13350
+ ...P.inputProps
13351
13351
  }
13352
13352
  }
13353
13353
  );
@@ -13698,9 +13698,9 @@ const gE = N(be)`
13698
13698
  const d = ((w = I.optionsMap) == null ? void 0 : w[g]) || {}, f = i === d.searchTerm ? d : {}, { options: p = [], hasMore: v = !0, currentPage: m = 0 } = f, { enabled: x, limit: C } = u, E = C || 10;
13699
13699
  try {
13700
13700
  let L;
13701
- const O = h == null ? void 0 : h.signal, R = x ? { pageNumber: m + 1, searchTerm: i, limit: E, enabled: x } : null;
13702
- if (v && (L = await BE({ fieldName: r, formId: o }, { pagination: R || {}, args: c, interfaceId: a })), O != null && O.aborted)
13703
- throw O.reason;
13701
+ const R = h == null ? void 0 : h.signal, O = x ? { pageNumber: m + 1, searchTerm: i, limit: E, enabled: x } : null;
13702
+ if (v && (L = await BE({ fieldName: r, formId: o }, { pagination: O || {}, args: c, interfaceId: a })), R != null && R.aborted)
13703
+ throw R.reason;
13704
13704
  if (!L || !L.data || !("data" in L.data) || !Array.isArray(L.data.data) || !L.data.data.length) {
13705
13705
  const { common: Y } = t(), X = (A = Y.optionsMap) == null ? void 0 : A[g];
13706
13706
  return l == null || l(X.options ?? []), {
@@ -13710,10 +13710,10 @@ const gE = N(be)`
13710
13710
  hasMore: !1
13711
13711
  };
13712
13712
  }
13713
- const G = L.data.data.map((Y) => b ? {
13713
+ const V = L.data.data.map((Y) => b ? {
13714
13714
  ...Y,
13715
13715
  avatarUrl: Y.avatarUrl || x3
13716
- } : (delete Y.avatarUrl, Y)), Z = [...p, ...G], $ = x ? G.length >= E : !1, te = c0(Z, (Y) => Y.value);
13716
+ } : (delete Y.avatarUrl, Y)), Z = [...p, ...V], $ = x ? V.length >= E : !1, te = c0(Z, (Y) => Y.value);
13717
13717
  return l == null || l(te), {
13718
13718
  optionsList: te,
13719
13719
  fieldName: r,
@@ -13724,8 +13724,8 @@ const gE = N(be)`
13724
13724
  key: g
13725
13725
  };
13726
13726
  } catch (L) {
13727
- const { common: O } = t(), R = ((T = O.optionsMap) == null ? void 0 : T[g]) || {};
13728
- return l == null || l(R.options ?? []), n(L);
13727
+ const { common: R } = t(), O = ((T = R.optionsMap) == null ? void 0 : T[g]) || {};
13728
+ return l == null || l(O.options ?? []), n(L);
13729
13729
  }
13730
13730
  },
13731
13731
  {
@@ -13787,10 +13787,10 @@ const gE = N(be)`
13787
13787
  conversationId: r
13788
13788
  }
13789
13789
  });
13790
- }, QE = (e, t, n = "email", r) => {
13791
- const o = new URLSearchParams();
13792
- return o.append("channel_type", n), ht({
13793
- url: `${UE.replace(":id", e)}?${o.toString()}`,
13790
+ }, QE = (e, t, n = "email", r, o) => {
13791
+ const i = new URLSearchParams();
13792
+ return i.append("channel_type", n), o && i.append("senderEmail", o), ht({
13793
+ url: `${UE.replace(":id", e)}?${i.toString()}`,
13794
13794
  method: yt.POST,
13795
13795
  data: {
13796
13796
  externalResourceId: t,
@@ -14038,14 +14038,15 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14038
14038
  id: e,
14039
14039
  externalResourceId: t,
14040
14040
  channelType: n,
14041
- conversationId: r
14042
- }, { rejectWithValue: o }) => {
14043
- var i;
14041
+ conversationId: r,
14042
+ email: o
14043
+ }, { rejectWithValue: i }) => {
14044
+ var s;
14044
14045
  try {
14045
- await QE(e, t, n, r);
14046
- } catch (s) {
14047
- return o({
14048
- status: (i = s.response) == null ? void 0 : i.status
14046
+ await QE(e, t, n, r, o);
14047
+ } catch (l) {
14048
+ return i({
14049
+ status: (s = l.response) == null ? void 0 : s.status
14049
14050
  });
14050
14051
  }
14051
14052
  }
@@ -14163,13 +14164,13 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14163
14164
  isCardLevelError: I,
14164
14165
  fieldName: b,
14165
14166
  showErrorIcon: d
14166
- } = 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), O = Me(() => {
14167
+ } = 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(() => {
14167
14168
  if (n && I) {
14168
14169
  const { error_message: X } = Xu(n);
14169
14170
  return X;
14170
14171
  }
14171
14172
  return c ? Af.replace(/{{connector_name}}/g, (a == null ? void 0 : a[0]) || "") : Ml;
14172
- }, [n, c, a, I]), R = _e(() => {
14173
+ }, [n, c, a, I]), O = _e(() => {
14173
14174
  const X = n || S4(A, a), { error_code: le, error_message: de } = Xu(X);
14174
14175
  C == null || C(Om, {
14175
14176
  sm_ids: m,
@@ -14195,17 +14196,17 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14195
14196
  h == null ? void 0 : h.externalResourceId
14196
14197
  ]);
14197
14198
  me(() => {
14198
- (n && I || c && A) && R();
14199
- }, [R, A, c, n, I]), me(() => {
14199
+ (n && I || c && A) && O();
14200
+ }, [O, A, c, n, I]), me(() => {
14200
14201
  const X = r ? p.current : f.current;
14201
14202
  if (X) {
14202
14203
  const le = X.scrollHeight > X.clientHeight || X.scrollWidth > X.clientWidth;
14203
14204
  L(le);
14204
14205
  }
14205
14206
  }, [t, r]);
14206
- const M = o == Ba.NOT_FOUND;
14207
- let G = M ? Ei : t;
14208
- s === "date" && G && !M && (G = new Date(parseInt(G)).toLocaleDateString(navigator.language));
14207
+ const k = o == Ba.NOT_FOUND;
14208
+ let V = k ? Ei : t;
14209
+ s === "date" && V && !k && (V = new Date(parseInt(V)).toLocaleDateString(navigator.language));
14209
14210
  const Z = !!n || c, $ = () => {
14210
14211
  l ? E == null || E.redirectToAdmin() : window.open(db, "_blank");
14211
14212
  }, te = () => {
@@ -14217,13 +14218,13 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14217
14218
  }, Y = (X) => {
14218
14219
  const le = /<>(.*?)<>/g, de = X.split(le);
14219
14220
  return /* @__PURE__ */ y.jsx(Ae.Fragment, { children: de.map(
14220
- (P, V) => V % 2 === 1 ? /* @__PURE__ */ y.jsx(tv, { variant: "body2", onClick: $, children: P }, V) : P
14221
+ (M, G) => G % 2 === 1 ? /* @__PURE__ */ y.jsx(tv, { variant: "body2", onClick: $, children: M }, G) : M
14221
14222
  ) });
14222
14223
  };
14223
14224
  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: [
14224
14225
  d ? /* @__PURE__ */ y.jsx(z, { marginTop: "3px", flexShrink: "0", children: /* @__PURE__ */ y.jsx("img", { src: T4, width: "18px", height: "18px" }) }) : null,
14225
- /* @__PURE__ */ y.jsx(kf, { variant: "body2", children: O ? Y(O) : Ml })
14226
- ] }) : /* @__PURE__ */ y.jsx(We, { title: T ? G : null, placement: "bottom", children: r ? /* @__PURE__ */ y.jsx(
14226
+ /* @__PURE__ */ y.jsx(kf, { variant: "body2", children: R ? Y(R) : Ml })
14227
+ ] }) : /* @__PURE__ */ y.jsx(We, { title: T ? V : null, placement: "bottom", children: r ? /* @__PURE__ */ y.jsx(
14227
14228
  Pf,
14228
14229
  {
14229
14230
  ref: p,
@@ -14232,9 +14233,9 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14232
14233
  href: r,
14233
14234
  fontSize: "13px",
14234
14235
  onClick: te,
14235
- children: G || Ei
14236
+ children: V || Ei
14236
14237
  }
14237
- ) : /* @__PURE__ */ y.jsx(rv, { ref: f, variant: "body2", children: G || Ei }) });
14238
+ ) : /* @__PURE__ */ y.jsx(rv, { ref: f, variant: "body2", children: V || Ei }) });
14238
14239
  }, yp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_73646)'%3e%3cpath%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_73646'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", el = ({
14239
14240
  shown: e,
14240
14241
  setShown: t,
@@ -14261,21 +14262,21 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14261
14262
  ] })
14262
14263
  }
14263
14264
  ), Cp = (e) => {
14264
- var P, V, B;
14265
- const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, l = 24, c = (o == null ? void 0 : o[t]) === ee.IDLE, a = (o == null ? void 0 : o[t]) === ee.LOADING, u = (o == null ? void 0 : o[t]) === ee.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, L = Me(() => {
14265
+ var M, G, B;
14266
+ const { id: t, cardTitle: n, specificCardData: r, specificConnectorApiStatus: o, isOpen: i, currentCard: s } = e, l = 24, c = (o == null ? void 0 : o[t]) === ee.IDLE, a = (o == null ? void 0 : o[t]) === ee.LOADING, u = (o == null ? void 0 : o[t]) === ee.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(() => {
14266
14267
  var W, K, ne, ie;
14267
14268
  return f && ((W = g == null ? void 0 : g.flatDisplay) != null && W.data) ? g.flatDisplay.data : !f && ((ie = (ne = (K = g == null ? void 0 : g.listItems) == null ? void 0 : K.fields) == null ? void 0 : ne[0]) != null && ie.data) ? g.listItems.fields[0].data : [];
14268
- }, [f, g]), O = Me(() => L == null ? void 0 : L.slice(0, 5), [L]), [R, M] = J([]), G = ye(null), [Z, $] = J(0), te = p ? -180 : 0, Y = f ? !1 : !!((V = g == null ? void 0 : g.listItems) != null && V.errorMessage), X = Y || u || I, le = c && !Y && i && (C || m);
14269
+ }, [f, g]), R = Me(() => L == null ? void 0 : L.slice(0, 5), [L]), [O, k] = J([]), V = ye(null), [Z, $] = J(0), te = 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);
14269
14270
  Kr(() => {
14270
14271
  var W;
14271
- (W = G.current) != null && W.scrollHeight && $(G.current.scrollHeight + l);
14272
- }, [o == null ? void 0 : o[t], R, G]), me(() => {
14273
- var ie, k;
14274
- const W = ((L == null ? void 0 : L.length) || 0) > 5, K = !f && (((k = (ie = g == null ? void 0 : g.listItems) == null ? void 0 : ie.fields) == null ? void 0 : k.length) || 0) > 1;
14272
+ (W = V.current) != null && W.scrollHeight && $(V.current.scrollHeight + l);
14273
+ }, [o == null ? void 0 : o[t], O, V]), me(() => {
14274
+ var ie, P;
14275
+ const W = ((L == null ? void 0 : L.length) || 0) > 5, K = !f && (((P = (ie = g == null ? void 0 : g.listItems) == null ? void 0 : ie.fields) == null ? void 0 : P.length) || 0) > 1;
14275
14276
  E(W && !K), x(K);
14276
14277
  }, [g, f, L == null ? void 0 : L.length]), me(() => {
14277
- M(p ? L : O);
14278
- }, [g, p, O, L]);
14278
+ k(p ? L : R);
14279
+ }, [g, p, R, L]);
14279
14280
  const de = () => {
14280
14281
  C ? v((W) => !W) : A((W) => !W);
14281
14282
  };
@@ -14289,7 +14290,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14289
14290
  setShowModal: A
14290
14291
  }
14291
14292
  ) }),
14292
- /* @__PURE__ */ y.jsx(Kb, { className: i ? "" : "slideUp", height: Z, children: /* @__PURE__ */ y.jsx(z, { ref: G, gap: 1, margin: "12px", children: a && !(R != null && R.length) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
14293
+ /* @__PURE__ */ y.jsx(Kb, { className: i ? "" : "slideUp", height: Z, children: /* @__PURE__ */ y.jsx(z, { ref: V, gap: 1, margin: "12px", children: a && !(O != null && O.length) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
14293
14294
  /* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 20, animation: "wave" }),
14294
14295
  /* @__PURE__ */ y.jsx(Gn, { variant: "rounded", width: "100%", height: 20, animation: "wave" })
14295
14296
  ] }) : /* @__PURE__ */ y.jsx(y.Fragment, { children: X ? /* @__PURE__ */ y.jsx(be, { margin: "8px 0", children: /* @__PURE__ */ y.jsx(
@@ -14306,8 +14307,8 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14306
14307
  currentCard: s,
14307
14308
  isCardLevelError: !0
14308
14309
  }
14309
- ) }) : R != null && R.length ? R == null ? void 0 : R.map((W) => {
14310
- const { value: K, label: ne, deepLink: ie, type: k } = W, re = "errorMessage" in W ? W.errorMessage : null, xe = "statusCode" in W ? W.statusCode : null;
14310
+ ) }) : O != null && O.length ? O == null ? void 0 : O.map((W) => {
14311
+ const { value: K, label: ne, deepLink: ie, type: P } = W, re = "errorMessage" in W ? W.errorMessage : null, xe = "statusCode" in W ? W.statusCode : null;
14311
14312
  return /* @__PURE__ */ y.jsxs("div", { children: [
14312
14313
  /* @__PURE__ */ y.jsx(ev, { variant: "overline", children: ne }),
14313
14314
  /* @__PURE__ */ y.jsx(
@@ -14318,7 +14319,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14318
14319
  deepLink: ie,
14319
14320
  statusCode: xe,
14320
14321
  isLoading: a,
14321
- type: k,
14322
+ type: P,
14322
14323
  cardTitle: n,
14323
14324
  currentCard: s,
14324
14325
  cardId: t,
@@ -14506,30 +14507,30 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14506
14507
  } = 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;
14507
14508
  let L = C;
14508
14509
  w && (L = `${L}_${w}`);
14509
- const { data: O, cardType: R, cardErrorMessage: M, connectorNames: G } = (n == null ? void 0 : n[L]) ?? {}, Z = (G == null ? void 0 : G[0]) || "", $ = (o == null ? void 0 : o[L]) === ee.LOADING, te = (o == null ? void 0 : o[L]) === ee.FAILED, Y = !!(ft(c, mf) && w), X = Me(() => {
14510
- var k, re;
14511
- if (M || te || !(ft(c, Um) && A.some((xe) => xe.type === "edit")))
14510
+ const { data: R, cardType: O, cardErrorMessage: k, connectorNames: V } = (n == null ? void 0 : n[L]) ?? {}, Z = (V == null ? void 0 : V[0]) || "", $ = (o == null ? void 0 : o[L]) === ee.LOADING, te = (o == null ? void 0 : o[L]) === ee.FAILED, Y = !!(ft(c, mf) && w), X = Me(() => {
14511
+ var P, re;
14512
+ if (k || te || !(ft(c, Um) && A.some((xe) => xe.type === "edit")))
14512
14513
  return !1;
14513
- switch (R) {
14514
+ switch (O) {
14514
14515
  case "flat":
14515
- return !!((O == null ? void 0 : O.flatDisplay.externalResourceId) ?? t.externalResourceId);
14516
+ return !!((R == null ? void 0 : R.flatDisplay.externalResourceId) ?? t.externalResourceId);
14516
14517
  case "flat_with_list":
14517
- 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;
14518
+ 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;
14518
14519
  default:
14519
14520
  return !1;
14520
14521
  }
14521
- }, [O, R, c, A, t, M, te]), le = _e(
14522
- (k = !1) => {
14523
- const re = k ? Im : Cm;
14522
+ }, [R, O, c, A, t, k, te]), le = _e(
14523
+ (P = !1) => {
14524
+ const re = P ? Im : Cm;
14524
14525
  r && C && u && l(Ro({ id: C, email: r, conversationId: u, externalResourceId: w })).unwrap().then((xe) => {
14525
14526
  const H = {
14526
- ...jl(xe, E, k, !0),
14527
+ ...jl(xe, E, P, !0),
14527
14528
  sm_ids: h
14528
14529
  };
14529
14530
  a(re, H);
14530
14531
  }).catch((xe) => {
14531
14532
  const H = {
14532
- ...jl(xe, E, k, !1),
14533
+ ...jl(xe, E, P, !1),
14533
14534
  sm_ids: h
14534
14535
  };
14535
14536
  a(re, H);
@@ -14540,35 +14541,35 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14540
14541
  me(() => {
14541
14542
  I && le(!0);
14542
14543
  }, [I, le]);
14543
- const de = (k, re) => {
14544
+ const de = (P, re) => {
14544
14545
  var H;
14545
- k == null || k.stopPropagation(), l(Ro({ id: re, email: r, conversationId: u, isRefresh: !0, externalResourceId: w })).unwrap().then(() => {
14546
+ P == null || P.stopPropagation(), l(Ro({ id: re, email: r, conversationId: u, isRefresh: !0, externalResourceId: w })).unwrap().then(() => {
14546
14547
  a(sm, {
14547
14548
  id: re
14548
14549
  });
14549
14550
  });
14550
- const xe = k.target.tagName === "BUTTON" ? (H = k.target) == null ? void 0 : H.firstChild : k.target;
14551
+ const xe = P.target.tagName === "BUTTON" ? (H = P.target) == null ? void 0 : H.firstChild : P.target;
14551
14552
  xe.className && (xe.className = ""), setTimeout(() => xe.className = "selected", 1);
14552
- }, P = (k, re) => {
14553
- k.stopPropagation(), !(n != null && n[re]) && !$ && le(), a(I ? im : om, {
14553
+ }, M = (P, re) => {
14554
+ P.stopPropagation(), !(n != null && n[re]) && !$ && le(), a(I ? im : om, {
14554
14555
  id: re
14555
14556
  }), b((xe) => !xe);
14556
- }, V = (k) => {
14557
- k.stopPropagation();
14558
- const re = k.currentTarget.offsetWidth < k.currentTarget.scrollWidth;
14557
+ }, G = (P) => {
14558
+ P.stopPropagation();
14559
+ const re = P.currentTarget.offsetWidth < P.currentTarget.scrollWidth;
14559
14560
  f(!!re);
14560
- }, B = (k) => {
14561
+ }, B = (P) => {
14561
14562
  var xe, H;
14562
- k.stopPropagation(), a(gf, {
14563
+ P.stopPropagation(), a(gf, {
14563
14564
  card_title: E,
14564
14565
  connector_name: Z,
14565
14566
  ug_id: g,
14566
14567
  sm_ids: h
14567
14568
  });
14568
14569
  let re;
14569
- R === "flat" ? re = (O == null ? void 0 : O.flatDisplay.externalResourceId) ?? t.externalResourceId : R === "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 });
14570
- }, W = (k) => {
14571
- k.stopPropagation(), v(!0);
14570
+ 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 });
14571
+ }, W = (P) => {
14572
+ P.stopPropagation(), v(!0);
14572
14573
  }, K = () => {
14573
14574
  x(!0);
14574
14575
  }, ne = () => {
@@ -14580,7 +14581,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14580
14581
  disabled: $,
14581
14582
  shown: Y,
14582
14583
  iconSrc: k4,
14583
- action: (k) => W(k)
14584
+ action: (P) => W(P)
14584
14585
  },
14585
14586
  {
14586
14587
  id: "refresh",
@@ -14588,7 +14589,7 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14588
14589
  disabled: $,
14589
14590
  shown: !0,
14590
14591
  iconSrc: Ep,
14591
- action: (k) => de(k, C)
14592
+ action: (P) => de(P, C)
14592
14593
  },
14593
14594
  {
14594
14595
  id: "edit",
@@ -14596,18 +14597,18 @@ Do you want to continue?`, u4 = "Select an object to create", d4 = "Select an ob
14596
14597
  disabled: $,
14597
14598
  shown: X,
14598
14599
  iconSrc: P4,
14599
- action: (k) => B(k)
14600
+ action: (P) => B(P)
14600
14601
  }
14601
14602
  ];
14602
14603
  return /* @__PURE__ */ y.jsxs(Yb, { "data-testid": `test_${C}`, onMouseEnter: K, onMouseLeave: ne, children: [
14603
- /* @__PURE__ */ y.jsxs(Jb, { className: I ? "hiver-card-expanded" : "", onClick: (k) => P(k, L), children: [
14604
+ /* @__PURE__ */ y.jsxs(Jb, { className: I ? "hiver-card-expanded" : "", onClick: (P) => M(P, L), children: [
14604
14605
  /* @__PURE__ */ y.jsxs(Qb, { children: [
14605
14606
  T && /* @__PURE__ */ y.jsx("img", { src: T, alt: E }),
14606
- /* @__PURE__ */ y.jsx(We, { title: d ? E : "", placement: "bottom", children: /* @__PURE__ */ y.jsx(qb, { variant: "h4", onMouseOver: (k) => V(k), onMouseLeave: (k) => V(k), children: E }) })
14607
+ /* @__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 }) })
14607
14608
  ] }),
14608
14609
  /* @__PURE__ */ y.jsxs(Nf, { children: [
14609
14610
  /* @__PURE__ */ y.jsx(Q4, { actions: ie, isHovered: m }),
14610
- /* @__PURE__ */ y.jsx(We, { title: I ? vf : Dc, placement: "bottom", children: /* @__PURE__ */ y.jsx(Jr, { onClick: (k) => P(k, L), children: /* @__PURE__ */ y.jsx(Mc, { className: I ? "" : "hiver-up" }) }) })
14611
+ /* @__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" }) }) })
14611
14612
  ] })
14612
14613
  ] }),
14613
14614
  /* @__PURE__ */ y.jsx(
@@ -14827,7 +14828,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
14827
14828
  u.map(({ title: x, items: C, type: E }) => /* @__PURE__ */ y.jsxs(xv, { children: [
14828
14829
  /* @__PURE__ */ y.jsx(pe, { variant: "body2_medium", children: x }),
14829
14830
  C.map((w) => {
14830
- const A = E === cb, { deeplink: T, textHtml: L, imageUrl: O } = w, R = () => /* @__PURE__ */ y.jsx(
14831
+ const A = E === cb, { deeplink: T, textHtml: L, imageUrl: R } = w, O = () => /* @__PURE__ */ y.jsx(
14831
14832
  nv,
14832
14833
  {
14833
14834
  className: A ? "" : "ellipsisClass",
@@ -14838,18 +14839,18 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
14838
14839
  }
14839
14840
  }
14840
14841
  );
14841
- return /* @__PURE__ */ y.jsx(vv, { component: "ul", children: /* @__PURE__ */ y.jsxs(yv, { component: A ? "li" : "div", marginLeft: O ? "0" : "14px", children: [
14842
- O ? /* @__PURE__ */ y.jsx("img", { src: O }) : null,
14842
+ return /* @__PURE__ */ y.jsx(vv, { component: "ul", children: /* @__PURE__ */ y.jsxs(yv, { component: A ? "li" : "div", marginLeft: R ? "0" : "14px", children: [
14843
+ R ? /* @__PURE__ */ y.jsx("img", { src: R }) : null,
14843
14844
  T ? /* @__PURE__ */ y.jsx(
14844
14845
  Pf,
14845
14846
  {
14846
14847
  target: "_blank",
14847
14848
  underline: "none",
14848
- onClick: (M) => v(M, T),
14849
+ onClick: (k) => v(k, T),
14849
14850
  fontSize: "13px",
14850
- children: R()
14851
+ children: O()
14851
14852
  }
14852
- ) : R()
14853
+ ) : O()
14853
14854
  ] }) }, L);
14854
14855
  })
14855
14856
  ] }, x)),
@@ -15304,7 +15305,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15304
15305
  connectors: s
15305
15306
  }) => {
15306
15307
  var zn;
15307
- 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) ?? ""], O = L == null ? void 0 : L.expandedView, { formConfigs: R, formViewConfigs: M } = Me(() => {
15308
+ 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(() => {
15308
15309
  if (a && "value" in a && v && v[a.value] && Array.isArray(v[a.value])) {
15309
15310
  const Re = v[a.value], st = [
15310
15311
  {
@@ -15314,7 +15315,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15314
15315
  ];
15315
15316
  return {
15316
15317
  formConfigs: st,
15317
- formViewConfigs: O ? LE(Re, Hu) : st
15318
+ formViewConfigs: R ? LE(Re, Hu) : st
15318
15319
  };
15319
15320
  }
15320
15321
  const ue = [{ id: "emptyFormId", formFields: [] }];
@@ -15322,11 +15323,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15322
15323
  formConfigs: ue,
15323
15324
  formViewConfigs: ue
15324
15325
  };
15325
- }, [v, a, O]), G = Me(() => {
15326
+ }, [v, a, R]), V = Me(() => {
15326
15327
  var Re;
15327
- const ue = ((Re = R == null ? void 0 : R[0]) == null ? void 0 : Re.formFields) || [];
15328
+ const ue = ((Re = O == null ? void 0 : O[0]) == null ? void 0 : Re.formFields) || [];
15328
15329
  return Kc({ formFields: ue });
15329
- }, [R]), {
15330
+ }, [O]), {
15330
15331
  setValue: Z,
15331
15332
  inputChangeHandler: $,
15332
15333
  checkboxChangeHandler: te,
@@ -15334,22 +15335,22 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15334
15335
  clearDependentFields: X,
15335
15336
  handleValidationError: le,
15336
15337
  isErrorInValidations: de
15337
- } = Np({ state: b, dispatch: d, validations: G }), {
15338
- conversationId: P,
15339
- sendTrackingEvent: V,
15338
+ } = Np({ state: b, dispatch: d, validations: V }), {
15339
+ conversationId: M,
15340
+ sendTrackingEvent: G,
15340
15341
  currentSmIds: B,
15341
15342
  connectorFunctions: { getFormElement: W, toggleFormElement: K },
15342
15343
  stackingContext: ne,
15343
15344
  userEmail: ie
15344
- } = $e(Je), { userGroupId: k } = xn() || {}, { fetchConfig: re, createConfig: xe } = kp({
15345
- formFields: R[0].formFields,
15346
- formId: R[0].id,
15345
+ } = $e(Je), { userGroupId: P } = xn() || {}, { fetchConfig: re, createConfig: xe } = kp({
15346
+ formFields: O[0].formFields,
15347
+ formId: O[0].id,
15347
15348
  formState: b,
15348
- conversationId: P
15349
- }), 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(ee.LOADING), tt = Me(() => !O || !W ? null : W(), [O, W]), nt = en();
15350
- me(() => (O && K && K(!0), () => {
15351
- O && K && K(!1);
15352
- }), [O, K]), me(() => {
15349
+ conversationId: M
15350
+ }), 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(ee.LOADING), tt = Me(() => !R || !W ? null : W(), [R, W]), nt = en();
15351
+ me(() => (R && K && K(!0), () => {
15352
+ R && K && K(!1);
15353
+ }), [R, K]), me(() => {
15353
15354
  nt(
15354
15355
  Zu(
15355
15356
  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
@@ -15361,10 +15362,10 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15361
15362
  a !== null && i((ue) => ({ ...ue, object_type: a.label }));
15362
15363
  }, [a, i]), me(() => {
15363
15364
  if (b.values) {
15364
- const ue = hp(R[0].formFields, b.values);
15365
+ const ue = hp(O[0].formFields, b.values);
15365
15366
  i((Re) => ({ ...Re, fields_filled: ue }));
15366
15367
  }
15367
- }, [b, R, i]), me(() => {
15368
+ }, [b, O, i]), me(() => {
15368
15369
  if (n && !t)
15369
15370
  return u(n);
15370
15371
  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);
@@ -15374,7 +15375,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15374
15375
  }, Ct = (ue, Re) => {
15375
15376
  Z(ue, Re);
15376
15377
  }, lt = (ue, Re, st) => {
15377
- if (Re.action === "clear" && Re.name && (Z(Re.name, ""), a != null && a.value && X(Re.name, x == null ? void 0 : x[a.value]), G[Re.name].isRequired && le(Re.name, !0)), ue && typeof ue == "object" && "label" in ue && typeof ue.label == "string" && "value" in ue && (typeof ue.value == "string" || typeof ue.value == "number") && typeof Re.name < "u")
15378
+ if (Re.action === "clear" && Re.name && (Z(Re.name, ""), a != null && a.value && X(Re.name, x == null ? void 0 : x[a.value]), V[Re.name].isRequired && le(Re.name, !0)), ue && typeof ue == "object" && "label" in ue && typeof ue.label == "string" && "value" in ue && (typeof ue.value == "string" || typeof ue.value == "number") && typeof Re.name < "u")
15378
15379
  if (Re.name === "form-object")
15379
15380
  I.current = { value: ue.value, label: ue.label }, b.values && ue.value !== (a == null ? void 0 : a.value) && (Object.values(b.values).filter((xt) => xt !== "").length > 0 ? g(!0) : hn());
15380
15381
  else {
@@ -15387,13 +15388,13 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15387
15388
  a != null && a.value && X(Re.name, x == null ? void 0 : x[a.value]);
15388
15389
  }
15389
15390
  }, Qe = () => {
15390
- if (!de() && H && (m != null && m[H]) && P && He) {
15391
+ if (!de() && H && (m != null && m[H]) && M && He) {
15391
15392
  const { connectorName: ue, title: Re } = f;
15392
- V(wm, {
15393
+ G(wm, {
15393
15394
  connector_name: ue,
15394
15395
  card_title: Re,
15395
15396
  sm_ids: B,
15396
- ug_id: k
15397
+ ug_id: P
15397
15398
  });
15398
15399
  const st = m[H].interfaceDetails;
15399
15400
  if (!st || !w)
@@ -15402,7 +15403,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15402
15403
  nt(
15403
15404
  Fi({
15404
15405
  formId: String(H),
15405
- conversationId: P,
15406
+ conversationId: M,
15406
15407
  args: uo,
15407
15408
  previousArgs: gn,
15408
15409
  externalResourceId: He,
@@ -15412,18 +15413,18 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15412
15413
  }
15413
15414
  })
15414
15415
  ).unwrap().then(() => {
15415
- V(Tm, {
15416
+ G(Tm, {
15416
15417
  connector_name: ue,
15417
15418
  card_title: Re,
15418
15419
  sm_ids: B,
15419
- ug_id: k
15420
+ ug_id: P
15420
15421
  });
15421
15422
  }).finally(() => {
15422
15423
  nt(Dr(null));
15423
15424
  });
15424
15425
  }
15425
15426
  }, _n = () => {
15426
- if (!de() && a && (m != null && m[a.value]) && P) {
15427
+ if (!de() && a && (m != null && m[a.value]) && M) {
15427
15428
  const ue = m == null ? void 0 : m[a.value].interfaceDetails;
15428
15429
  if (!ue)
15429
15430
  return;
@@ -15431,7 +15432,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15431
15432
  nt(
15432
15433
  Li({
15433
15434
  formId: String(a.value),
15434
- conversationId: P,
15435
+ conversationId: M,
15435
15436
  args: It,
15436
15437
  interfaceId: Re,
15437
15438
  successCallback: () => {
@@ -15439,7 +15440,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15439
15440
  }
15440
15441
  })
15441
15442
  ).unwrap().then(() => {
15442
- V(hm, {
15443
+ G(hm, {
15443
15444
  object_type: a
15444
15445
  });
15445
15446
  });
@@ -15465,13 +15466,13 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15465
15466
  form_object: L == null ? void 0 : L.name
15466
15467
  }
15467
15468
  }), lo = () => {
15468
- window.open(xr, "_blank"), V(Gm, {
15469
+ window.open(xr, "_blank"), G(Gm, {
15469
15470
  sm_ids: B,
15470
15471
  ug_id: l,
15471
15472
  connector_name: L == null ? void 0 : L.connectorName,
15472
15473
  form_object: L == null ? void 0 : L.name
15473
15474
  });
15474
- }, Un = /* @__PURE__ */ y.jsxs(Vp, { className: O ? Mp : "", children: [
15475
+ }, Un = /* @__PURE__ */ y.jsxs(Vp, { className: R ? Mp : "", children: [
15475
15476
  /* @__PURE__ */ y.jsx(
15476
15477
  Pp,
15477
15478
  {
@@ -15482,7 +15483,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15482
15483
  buttons: Vt
15483
15484
  }
15484
15485
  ),
15485
- O ? /* @__PURE__ */ y.jsxs(Xw, { children: [
15486
+ R ? /* @__PURE__ */ y.jsxs(Xw, { children: [
15486
15487
  /* @__PURE__ */ y.jsxs(pe, { children: [
15487
15488
  t ? "Edit" : "Add",
15488
15489
  " to ",
@@ -15491,7 +15492,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15491
15492
  /* @__PURE__ */ y.jsx(We, { title: "Close Popup", placement: "bottom", children: /* @__PURE__ */ y.jsx(Xt, { onClick: r, children: /* @__PURE__ */ y.jsx(Uw, { src: yp }) }) })
15492
15493
  ] }) : null,
15493
15494
  /* @__PURE__ */ y.jsxs(jp, { spacing: 3, children: [
15494
- !t && !O ? /* @__PURE__ */ y.jsx(
15495
+ !t && !R ? /* @__PURE__ */ y.jsx(
15495
15496
  Wo,
15496
15497
  {
15497
15498
  type: "select",
@@ -15509,7 +15510,7 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15509
15510
  pp,
15510
15511
  {
15511
15512
  showGlobalLoader: A === ee.LOADING,
15512
- formConfig: M,
15513
+ formConfig: k,
15513
15514
  selectChangeHandler: lt,
15514
15515
  inputChangeHandler: $,
15515
15516
  checkboxChangeHandler: te,
@@ -15521,8 +15522,8 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15521
15522
  fetchConfig: re,
15522
15523
  createConfig: xe,
15523
15524
  values: b.values,
15524
- validations: G,
15525
- ...O ? {
15525
+ validations: V,
15526
+ ...R ? {
15526
15527
  cols: Hu,
15527
15528
  stackIndex: ne.expandedForm
15528
15529
  } : null
@@ -15537,14 +15538,14 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15537
15538
  disabled: de() || Ve || !T,
15538
15539
  onClick: t ? Qe : _n,
15539
15540
  size: "small",
15540
- ...O ? { style: { order: 2 } } : null,
15541
+ ...R ? { style: { order: 2 } } : null,
15541
15542
  children: t ? ob : rb
15542
15543
  }
15543
15544
  ),
15544
15545
  /* @__PURE__ */ y.jsx(Gp, { variant: "outlined", color: "tertiary", size: "small", onClick: r, disabled: Ve, children: kc })
15545
15546
  ] })
15546
15547
  ] });
15547
- return O && tt ? as(Un, tt) : Un;
15548
+ return R && tt ? as(Un, tt) : Un;
15548
15549
  }, Bp = N(be)`
15549
15550
  box-sizing: border-box;
15550
15551
  height: 52px;
@@ -15613,18 +15614,18 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15613
15614
  color: ${U.palette.purple.primary};
15614
15615
  }
15615
15616
  `, $w = ({ setOpenTaskLinking: e, onLinkingSuccess: t }) => {
15616
- 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);
15617
+ 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);
15617
15618
  me(() => {
15618
15619
  s && s.length && u(s[0]);
15619
15620
  }, [s]);
15620
- const p = {
15621
+ const v = {
15621
15622
  externalResourceId: h
15622
- }, v = o === ee.LOADING, m = i === ee.LOADING, x = () => {
15623
- !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) => {
15623
+ }, m = o === ee.LOADING, x = i === ee.LOADING, C = () => {
15624
+ !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) => {
15624
15625
  (O == null ? void 0 : O.status) === 400 ? Ue({ message: Gu, type: Ot }) : Ue({ message: KE, type: Ot });
15625
15626
  })), c((O) => !O);
15626
- }, C = () => {
15627
- a && "value" in a && d && n(Ni({ id: String(a.value), externalResourceId: h, conversationId: d })).unwrap().then(() => {
15627
+ }, E = () => {
15628
+ a && "value" in a && d && n(Ni({ id: String(a.value), externalResourceId: h, conversationId: d, email: p })).unwrap().then(() => {
15628
15629
  f(gm, {
15629
15630
  object_type: a.label,
15630
15631
  input_type: h
@@ -15632,20 +15633,20 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15632
15633
  }).catch((O) => {
15633
15634
  (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 });
15634
15635
  });
15635
- }, E = () => {
15636
+ }, w = () => {
15636
15637
  e(!1), c(!1);
15637
- }, w = (O, R) => {
15638
- O && typeof O == "object" && "label" in O && typeof O.label == "string" && "value" in O && (typeof O.value == "string" || typeof O.value == "number") && typeof R.name < "u" && (u({ value: O.value, label: O.label }), g(""));
15639
- }, A = (O) => {
15638
+ }, A = (O, k) => {
15639
+ 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(""));
15640
+ }, T = (O) => {
15640
15641
  O.stopPropagation();
15641
- const { value: R } = (O == null ? void 0 : O.target) || {};
15642
- g(R), c(!1);
15643
- }, T = (O, R) => {
15644
- b((M) => ({
15645
- ...M,
15646
- [O]: !!R
15642
+ const { value: k } = (O == null ? void 0 : O.target) || {};
15643
+ g(k), c(!1);
15644
+ }, L = (O, k) => {
15645
+ b((V) => ({
15646
+ ...V,
15647
+ [O]: !!k
15647
15648
  }));
15648
- }, L = () => Object.keys(I).filter((R) => I[R]).length > 0;
15649
+ }, R = () => Object.keys(I).filter((k) => I[k]).length > 0;
15649
15650
  return /* @__PURE__ */ y.jsxs(Vp, { children: [
15650
15651
  /* @__PURE__ */ y.jsxs(jp, { spacing: 3, children: [
15651
15652
  /* @__PURE__ */ y.jsx(
@@ -15656,11 +15657,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15656
15657
  options: s,
15657
15658
  value: a,
15658
15659
  name: "form-object",
15659
- selectChangeHandler: w,
15660
+ selectChangeHandler: A,
15660
15661
  label: d4,
15661
15662
  labelSpacing: 0.5,
15662
15663
  validation: { isRequired: !0 },
15663
- onValidationError: T
15664
+ onValidationError: L
15664
15665
  }
15665
15666
  ),
15666
15667
  /* @__PURE__ */ y.jsx(
@@ -15670,11 +15671,11 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15670
15671
  placeholder: f4,
15671
15672
  value: h,
15672
15673
  name: "resourceId",
15673
- inputChangeHandler: A,
15674
+ inputChangeHandler: T,
15674
15675
  label: p4,
15675
15676
  labelSpacing: 0.5,
15676
15677
  validation: { isRequired: !0, validate: j3() },
15677
- onValidationError: T
15678
+ onValidationError: L
15678
15679
  }
15679
15680
  ),
15680
15681
  l ? /* @__PURE__ */ y.jsx(
@@ -15683,31 +15684,31 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15683
15684
  cardData: r,
15684
15685
  cardDataApiStatus: o,
15685
15686
  objectToLink: String((a == null ? void 0 : a.value) || ""),
15686
- args: p
15687
+ args: v
15687
15688
  }
15688
15689
  ) : null,
15689
15690
  /* @__PURE__ */ y.jsx(
15690
15691
  Hw,
15691
15692
  {
15692
15693
  fullWidth: !0,
15693
- disabled: L() || v,
15694
+ disabled: R() || m,
15694
15695
  color: "tertiary",
15695
15696
  variant: "outlined",
15696
15697
  size: "small",
15697
- onClick: x,
15698
+ onClick: C,
15698
15699
  children: l ? Jv : Yv
15699
15700
  }
15700
15701
  )
15701
15702
  ] }),
15702
15703
  /* @__PURE__ */ y.jsxs(Bp, { children: [
15703
- /* @__PURE__ */ y.jsx(pt, { onClick: C, disabled: L() || m, size: "small", children: Cf }),
15704
+ /* @__PURE__ */ y.jsx(pt, { onClick: E, disabled: R() || x, size: "small", children: Cf }),
15704
15705
  /* @__PURE__ */ y.jsx(
15705
15706
  Gp,
15706
15707
  {
15707
15708
  color: "tertiary",
15708
15709
  variant: "outlined",
15709
- onClick: E,
15710
- disabled: m,
15710
+ onClick: w,
15711
+ disabled: x,
15711
15712
  size: "small",
15712
15713
  children: kc
15713
15714
  }
@@ -15908,20 +15909,20 @@ const tw = "Bring your favourite tools into Hiver", nw = "Plugin image", rw = "I
15908
15909
  );
15909
15910
  me(() => {
15910
15911
  const C = r.values, E = a.id, w = a.formFields;
15911
- if (Object.values(C).filter((G) => !!G).length < w.length || !s || f()) {
15912
+ if (Object.values(C).filter((V) => !!V).length < w.length || !s || f()) {
15912
15913
  i.current && clearTimeout(i.current);
15913
15914
  return;
15914
15915
  }
15915
15916
  const A = s[e].searchInterfaceDetails;
15916
15917
  if (!A)
15917
15918
  return;
15918
- const T = s[e].connectorName, { id: L, args: O = {} } = A, R = Si(r, O);
15919
+ const T = s[e].connectorName, { id: L, args: R = {} } = A, O = Si(r, R);
15919
15920
  v({
15920
15921
  id: E,
15921
15922
  interfaceId: L,
15922
15923
  searchString: t,
15923
15924
  connectorName: T,
15924
- args: R
15925
+ args: O
15925
15926
  });
15926
15927
  }, [r, a, s, e, t, f, v]), me(() => () => {
15927
15928
  i.current && clearTimeout(i.current);
@@ -17436,8 +17437,8 @@ var Ze, Dn, Nn, Vr, Gr, kn, Hr, Wr, bd, V9 = (bd = class {
17436
17437
  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;
17437
17438
  let h = { ...u }, g = !1, I;
17438
17439
  if (n._optimisticResults) {
17439
- const T = this.hasListeners(), L = !T && sd(t, n), O = T && ad(t, r, n, o);
17440
- (L || O) && (h = {
17440
+ const T = this.hasListeners(), L = !T && sd(t, n), R = T && ad(t, r, n, o);
17441
+ (L || R) && (h = {
17441
17442
  ...h,
17442
17443
  ...Jp(u.data, t.options)
17443
17444
  }), n._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
@@ -17502,21 +17503,21 @@ var Ze, Dn, Nn, Vr, Gr, kn, Hr, Wr, bd, V9 = (bd = class {
17502
17503
  promise: S(this, Pn)
17503
17504
  };
17504
17505
  if (this.options.experimental_prefetchInRender) {
17505
- const T = (R) => {
17506
- w.status === "error" ? R.reject(w.error) : w.data !== void 0 && R.resolve(w.data);
17506
+ const T = (O) => {
17507
+ w.status === "error" ? O.reject(w.error) : w.data !== void 0 && O.resolve(w.data);
17507
17508
  }, L = () => {
17508
- const R = q(this, Pn, w.promise = lc());
17509
- T(R);
17510
- }, O = S(this, Pn);
17511
- switch (O.status) {
17509
+ const O = q(this, Pn, w.promise = lc());
17510
+ T(O);
17511
+ }, R = S(this, Pn);
17512
+ switch (R.status) {
17512
17513
  case "pending":
17513
- t.queryHash === r.queryHash && T(O);
17514
+ t.queryHash === r.queryHash && T(R);
17514
17515
  break;
17515
17516
  case "fulfilled":
17516
- (w.status === "error" || w.data !== O.value) && L();
17517
+ (w.status === "error" || w.data !== R.value) && L();
17517
17518
  break;
17518
17519
  case "rejected":
17519
- (w.status !== "error" || w.error !== O.reason) && L();
17520
+ (w.status !== "error" || w.error !== R.reason) && L();
17520
17521
  break;
17521
17522
  }
17522
17523
  }
@@ -17944,10 +17945,10 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
17944
17945
  e.value
17945
17946
  ) : null
17946
17947
  ] }) : null;
17947
- }, 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" }) => {
17948
- const o = new URLSearchParams();
17949
- o.append("channel_type", r), await ht({
17950
- url: `${kE.replace(":id", e)}?${o.toString()}`,
17948
+ }, 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 }) => {
17949
+ const i = new URLSearchParams();
17950
+ i.append("channel_type", r), o && i.append("senderEmail", o), await ht({
17951
+ url: `${kE.replace(":id", e)}?${i.toString()}`,
17951
17952
  method: yt.POST,
17952
17953
  data: {
17953
17954
  externalResourceId: t,
@@ -18139,11 +18140,11 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18139
18140
  };
18140
18141
  }, _A = ({ isAdmin: e = !1 }) => {
18141
18142
  var ri;
18142
- 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), [O, R] = J(), [M, G] = J(null), [Z, $] = J(!1), [te, Y] = J(!1), X = we(I4), le = we(x4), de = we(w4), P = we(A4), V = we(E4), B = we(wp), W = we(M4), K = 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({
18143
+ 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, V] = J(null), [Z, $] = J(!1), [te, Y] = J(!1), X = we(I4), le = we(x4), de = we(w4), M = we(A4), G = we(E4), B = we(wp), W = we(M4), K = 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({
18143
18144
  senderEmail: t,
18144
18145
  conversationId: String(i),
18145
18146
  enabled: He && !!t
18146
- }), { emailHeaders: lt, selectedEmail: Qe } = hn ?? {}, { scrollOnceAfterLoad: _n, resetScrollState: Vt } = AA(h), xr = V !== ee.LOADING && (!P || !Object.values(P).some((Le) => Le === ee.LOADING)) && X && X.length > 0;
18147
+ }), { emailHeaders: lt, selectedEmail: Qe } = hn ?? {}, { scrollOnceAfterLoad: _n, resetScrollState: Vt } = AA(h), xr = G !== ee.LOADING && (!M || !Object.values(M).some((Le) => Le === ee.LOADING)) && X && X.length > 0;
18147
18148
  Kr(() => {
18148
18149
  var Le;
18149
18150
  Z && !I && te && ((Le = g == null ? void 0 : g.current) != null && Le.scrollHeight) && _n(!!xr, "smooth");
@@ -18161,20 +18162,20 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18161
18162
  search_keyword: Le,
18162
18163
  sm_ids: n,
18163
18164
  connector_name: rt,
18164
- suggestion_type: k
18165
+ suggestion_type: P
18165
18166
  });
18166
18167
  }, Un = (Le, rt, Ft) => {
18167
18168
  !Array.isArray(rt) || !rt.length ? r(Nm, {
18168
18169
  search_keyword: Le,
18169
18170
  sm_ids: n,
18170
18171
  connector_name: Ft,
18171
- suggestion_type: k
18172
+ suggestion_type: P
18172
18173
  }) : rt.length && r(km, {
18173
18174
  num_of_results: rt.length,
18174
18175
  search_keyword: Le,
18175
18176
  sm_ids: n,
18176
18177
  connector_name: Ft,
18177
- suggestion_type: k
18178
+ suggestion_type: P
18178
18179
  });
18179
18180
  }, {
18180
18181
  mutate: zn,
@@ -18207,7 +18208,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18207
18208
  c && ($(await Dd(c)), Y(await v1(c)));
18208
18209
  })();
18209
18210
  }, [c]), me(() => {
18210
- Ct || R(Qe || t);
18211
+ Ct || O(Qe || t);
18211
18212
  }, [t, Qe, Ct]), me(() => {
18212
18213
  te && c && y1(c);
18213
18214
  }, [te, c]), me(() => {
@@ -18245,12 +18246,12 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18245
18246
  return ((ho = Bs.connectorKey) == null ? void 0 : ho.toLowerCase()) === (Ft == null ? void 0 : Ft.toLowerCase());
18246
18247
  }
18247
18248
  );
18248
- Jn && (G(Jn), v(!0));
18249
+ Jn && (V(Jn), v(!0));
18249
18250
  };
18250
18251
  return window.addEventListener(ld.OPEN_FORM_VIEW, Le), () => {
18251
18252
  window.removeEventListener(ld.OPEN_FORM_VIEW, Le);
18252
18253
  };
18253
- }, [B]), !t.length || V === ee.LOADING)
18254
+ }, [B]), !t.length || G === ee.LOADING)
18254
18255
  return /* @__PURE__ */ y.jsx(Aw, {});
18255
18256
  const uo = (Le) => {
18256
18257
  r(fm, {
@@ -18263,7 +18264,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18263
18264
  }, Ms = () => {
18264
18265
  x(!0), r(pm);
18265
18266
  }, ei = (Le) => {
18266
- r(Le, C), ie ? A(!0) : (v(!1), G(null));
18267
+ r(Le, C), ie ? A(!0) : (v(!1), V(null));
18267
18268
  }, ti = (Le) => {
18268
18269
  if (ne) {
18269
18270
  const { connectorName: rt, title: Ft } = ne;
@@ -18356,10 +18357,10 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18356
18357
  Nw,
18357
18358
  {
18358
18359
  emailHeaders: lt,
18359
- selectedEmail: O,
18360
+ selectedEmail: R,
18360
18361
  root: u.current,
18361
18362
  isLoading: Ct,
18362
- setSelectedEmail: R
18363
+ setSelectedEmail: O
18363
18364
  }
18364
18365
  ) : null,
18365
18366
  re ? /* @__PURE__ */ y.jsx(_w, {}) : null,
@@ -18370,8 +18371,8 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18370
18371
  {
18371
18372
  cards: X,
18372
18373
  specificCardData: de,
18373
- email: O ?? "",
18374
- specificConnectorApiStatus: P,
18374
+ email: R ?? "",
18375
+ specificConnectorApiStatus: M,
18375
18376
  onCardUnlinking: Gt
18376
18377
  }
18377
18378
  ),
@@ -18418,7 +18419,7 @@ const rA = (e) => new Promise((t) => setTimeout(t, e)), oA = ({
18418
18419
  onCreateSuccess: po,
18419
18420
  metaData: C,
18420
18421
  setMetaData: E,
18421
- defaultOption: M,
18422
+ defaultOption: k,
18422
18423
  connectors: nt
18423
18424
  }
18424
18425
  )