@hiver/connector-agent 3.1.5-beta.0 → 3.1.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.es.js +138 -138
  2. package/index.umd.js +21 -21
  3. package/package.json +1 -1
package/index.es.js CHANGED
@@ -16,7 +16,7 @@ var wi = (e, t, n, r) => ({
16
16
  import * as P from "react";
17
17
  import ve, { useState as $, useRef as ke, useSyncExternalStore as Q0, useLayoutEffect as mi, useEffect as pe, isValidElement as hr, cloneElement as xs, createContext as du, useContext as ct, useCallback as Ne, useMemo as Ge, forwardRef as ma, Component as q0, Fragment as ws, useReducer as K0, Suspense as eh } from "react";
18
18
  import { createPortal as ba } from "react-dom";
19
- import { styled as k, Stack as Q, theme as z, Button as bt, icons as Dt, Typography as fe, Tooltip as We, IconButton as fn, brandIcons as fu, Grid as th, Box as Oe, Link as Eo, Skeleton as va, TableHead as nh, TableCell as xo, TableRow as hu, palette as rh, TableContainer as ih, Table as oh, TableBody as sh, Dialog as ah, Icon as pu, TextField as ch, DatePicker as lh, DateTextField as uh, InputAdornment as dh, Paper as fh, HiverProvider as hh } from "@hiver/hiver-ui-kit";
19
+ import { styled as k, Stack as Q, theme as z, Button as bt, icons as Nt, Typography as fe, Tooltip as We, IconButton as fn, brandIcons as fu, Grid as th, Box as Oe, Link as Eo, Skeleton as va, TableHead as nh, TableCell as xo, TableRow as hu, palette as rh, TableContainer as ih, Table as oh, TableBody as sh, Dialog as ah, Icon as pu, TextField as ch, DatePicker as lh, DateTextField as uh, InputAdornment as dh, Paper as fh, HiverProvider as hh } from "@hiver/hiver-ui-kit";
20
20
  var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, As = { exports: {} }, Wr = {};
21
21
  /**
22
22
  * @license React
@@ -221,8 +221,8 @@ function gh() {
221
221
  }
222
222
  var ie = !1, ge;
223
223
  {
224
- var Ye = typeof WeakMap == "function" ? WeakMap : Map;
225
- ge = new Ye();
224
+ var $e = typeof WeakMap == "function" ? WeakMap : Map;
225
+ ge = new $e();
226
226
  }
227
227
  function H(_, N) {
228
228
  if (!_ || ie)
@@ -281,9 +281,9 @@ function gh() {
281
281
  if (Ve !== 1 || Ze !== 1)
282
282
  do
283
283
  if (Ve--, Ze--, Ze < 0 || he[Ve] !== it[Ze]) {
284
- var Ot = `
284
+ var Lt = `
285
285
  ` + he[Ve].replace(" at new ", " at ");
286
- return _.displayName && Ot.includes("<anonymous>") && (Ot = Ot.replace("<anonymous>", _.displayName)), typeof _ == "function" && ge.set(_, Ot), Ot;
286
+ return _.displayName && Lt.includes("<anonymous>") && (Lt = Lt.replace("<anonymous>", _.displayName)), typeof _ == "function" && ge.set(_, Lt), Lt;
287
287
  }
288
288
  while (Ve >= 1 && Ze >= 0);
289
289
  break;
@@ -302,7 +302,7 @@ function gh() {
302
302
  var N = _.prototype;
303
303
  return !!(N && N.isReactComponent);
304
304
  }
305
- function Je(_, N, W) {
305
+ function Qe(_, N, W) {
306
306
  if (_ == null)
307
307
  return "";
308
308
  if (typeof _ == "function")
@@ -320,28 +320,28 @@ function gh() {
320
320
  case a:
321
321
  return Pe(_.render);
322
322
  case b:
323
- return Je(_.type, N, W);
323
+ return Qe(_.type, N, W);
324
324
  case v: {
325
325
  var oe = _, we = oe._payload, Le = oe._init;
326
326
  try {
327
- return Je(Le(we), N, W);
327
+ return Qe(Le(we), N, W);
328
328
  } catch {
329
329
  }
330
330
  }
331
331
  }
332
332
  return "";
333
333
  }
334
- var Nt = Object.prototype.hasOwnProperty, nr = {}, kt = f.ReactDebugCurrentFrame;
334
+ var Ot = Object.prototype.hasOwnProperty, nr = {}, kt = f.ReactDebugCurrentFrame;
335
335
  function lt(_) {
336
336
  if (_) {
337
- var N = _._owner, W = Je(_.type, _._source, N ? N.type : null);
337
+ var N = _._owner, W = Qe(_.type, _._source, N ? N.type : null);
338
338
  kt.setExtraStackFrame(W);
339
339
  } else
340
340
  kt.setExtraStackFrame(null);
341
341
  }
342
- function Qe(_, N, W, oe, we) {
342
+ function qe(_, N, W, oe, we) {
343
343
  {
344
- var Le = Function.call.bind(Nt);
344
+ var Le = Function.call.bind(Ot);
345
345
  for (var be in _)
346
346
  if (Le(_, be)) {
347
347
  var he = void 0;
@@ -382,7 +382,7 @@ function gh() {
382
382
  if (Hr(_))
383
383
  return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wo(_)), ir(_);
384
384
  }
385
- var qe = f.ReactCurrentOwner, on = {
385
+ var ze = f.ReactCurrentOwner, on = {
386
386
  key: !0,
387
387
  ref: !0,
388
388
  __self: !0,
@@ -390,7 +390,7 @@ function gh() {
390
390
  }, or, xi, Zo;
391
391
  Zo = {};
392
392
  function F0(_) {
393
- if (Nt.call(_, "ref")) {
393
+ if (Ot.call(_, "ref")) {
394
394
  var N = Object.getOwnPropertyDescriptor(_, "ref").get;
395
395
  if (N && N.isReactWarning)
396
396
  return !1;
@@ -398,7 +398,7 @@ function gh() {
398
398
  return _.ref !== void 0;
399
399
  }
400
400
  function D0(_) {
401
- if (Nt.call(_, "key")) {
401
+ if (Ot.call(_, "key")) {
402
402
  var N = Object.getOwnPropertyDescriptor(_, "key").get;
403
403
  if (N && N.isReactWarning)
404
404
  return !1;
@@ -406,9 +406,9 @@ function gh() {
406
406
  return _.key !== void 0;
407
407
  }
408
408
  function N0(_, N) {
409
- if (typeof _.ref == "string" && qe.current && N && qe.current.stateNode !== N) {
410
- var W = L(qe.current.type);
411
- Zo[W] || (p('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', L(qe.current.type), _.ref), Zo[W] = !0);
409
+ if (typeof _.ref == "string" && ze.current && N && ze.current.stateNode !== N) {
410
+ var W = L(ze.current.type);
411
+ Zo[W] || (p('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', L(ze.current.type), _.ref), Zo[W] = !0);
412
412
  }
413
413
  }
414
414
  function k0(_, N) {
@@ -467,7 +467,7 @@ function gh() {
467
467
  var Le, be = {}, he = null, it = null;
468
468
  W !== void 0 && (Ei(W), he = "" + W), D0(N) && (Ei(N.key), he = "" + N.key), F0(N) && (it = N.ref, N0(N, we));
469
469
  for (Le in N)
470
- Nt.call(N, Le) && !on.hasOwnProperty(Le) && (be[Le] = N[Le]);
470
+ Ot.call(N, Le) && !on.hasOwnProperty(Le) && (be[Le] = N[Le]);
471
471
  if (_ && _.defaultProps) {
472
472
  var Ve = _.defaultProps;
473
473
  for (Le in Ve)
@@ -477,13 +477,13 @@ function gh() {
477
477
  var Ze = typeof _ == "function" ? _.displayName || _.name || "Unknown" : _;
478
478
  he && k0(be, Ze), it && P0(be, Ze);
479
479
  }
480
- return M0(_, he, it, we, oe, qe.current, be);
480
+ return M0(_, he, it, we, oe, ze.current, be);
481
481
  }
482
482
  }
483
483
  var Xo = f.ReactCurrentOwner, tc = f.ReactDebugCurrentFrame;
484
484
  function sr(_) {
485
485
  if (_) {
486
- var N = _._owner, W = Je(_.type, _._source, N ? N.type : null);
486
+ var N = _._owner, W = Qe(_.type, _._source, N ? N.type : null);
487
487
  tc.setExtraStackFrame(W);
488
488
  } else
489
489
  tc.setExtraStackFrame(null);
@@ -569,7 +569,7 @@ Check the top-level render call using <` + W + ">.");
569
569
  return;
570
570
  if (W) {
571
571
  var oe = L(N);
572
- Qe(W, _.props, "prop", oe, _);
572
+ qe(W, _.props, "prop", oe, _);
573
573
  } else if (N.PropTypes !== void 0 && !Uo) {
574
574
  Uo = !0;
575
575
  var we = L(N);
@@ -606,19 +606,19 @@ Check the top-level render call using <` + W + ">.");
606
606
  if (Ze == null)
607
607
  return Ze;
608
608
  if (be) {
609
- var Ot = N.children;
610
- if (Ot !== void 0)
609
+ var Lt = N.children;
610
+ if (Lt !== void 0)
611
611
  if (oe)
612
- if (rn(Ot)) {
613
- for (var ar = 0; ar < Ot.length; ar++)
614
- oc(Ot[ar], _);
615
- Object.freeze && Object.freeze(Ot);
612
+ if (rn(Lt)) {
613
+ for (var ar = 0; ar < Lt.length; ar++)
614
+ oc(Lt[ar], _);
615
+ Object.freeze && Object.freeze(Lt);
616
616
  } else
617
617
  p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
618
  else
619
- oc(Ot, _);
619
+ oc(Lt, _);
620
620
  }
621
- if (Nt.call(N, "key")) {
621
+ if (Ot.call(N, "key")) {
622
622
  var Fn = L(_), ut = Object.keys(N).filter(function(Y0) {
623
623
  return Y0 !== "key";
624
624
  }), Yo = ut.length > 0 ? "{key: someKey, " + ut.join(": ..., ") + ": ...}" : "{key: someKey}";
@@ -4958,11 +4958,11 @@ const Mt = {
4958
4958
  box-shadow: none;
4959
4959
  background-color: #e3dfff;
4960
4960
  }
4961
- `, g2 = k(Dt.Close)`
4961
+ `, g2 = k(Nt.Close)`
4962
4962
  height: 20px;
4963
4963
  width: 20px;
4964
4964
  cursor: pointer;
4965
- `, m2 = k(Dt.CalendarTodayOutlinedIcon)`
4965
+ `, m2 = k(Nt.CalendarTodayOutlinedIcon)`
4966
4966
  height: 16px;
4967
4967
  width: 16px;
4968
4968
  `, b2 = k(fe)`
@@ -7678,7 +7678,7 @@ Do you want to continue?`, Ov = "Select an object to create", Lv = "Select an ob
7678
7678
  return o == null || o.forEach((g) => {
7679
7679
  var d, f;
7680
7680
  const h = { ...g };
7681
- "fieldList" in h && delete h.fieldList, C[g.id] = h, s[g.id] || (s[g.id] = {}), v[g.id] || (v[g.id] = []), g.type === "create" && g.authenticated ? (l.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }), g.connectorName && a.push(g.connectorName)) : g.type === "link" && g.authenticated ? c.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }) : g.type === "edit" && g.authenticated ? u.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }) : g.type === "search_and_link" && g.authenticated && b.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }), (d = g.fieldList) == null || d.sort((p, m) => p.priority - m.priority), (f = g.fieldList) == null || f.forEach((p) => {
7681
+ "fieldList" in h && delete h.fieldList, C[g.id] = h, s[g.id] || (s[g.id] = {}), v[g.id] || (v[g.id] = []), g.type === "create" && g.authenticated ? (l.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }), g.connectorName && !a.includes(g.connectorName) && a.push(g.connectorName)) : g.type === "link" && g.authenticated ? c.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }) : g.type === "edit" && g.authenticated ? u.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }) : g.type === "search_and_link" && g.authenticated && b.push({ value: g.id, label: g.name, avatarUrl: g.logoUrl }), (d = g.fieldList) == null || d.sort((p, m) => p.priority - m.priority), (f = g.fieldList) == null || f.forEach((p) => {
7682
7682
  var I, y, x, w, A, T, F, R, D, L, X, U;
7683
7683
  let m = {};
7684
7684
  switch (p.type) {
@@ -8440,7 +8440,7 @@ const Iy = "Bring your favourite tools into Hiver", Ey = "Plugin image", xy = "I
8440
8440
  justify-content: center;
8441
8441
  align-items: center;
8442
8442
  gap: 8px;
8443
- `, My = k(Dt.InfoOutlined)`
8443
+ `, My = k(Nt.InfoOutlined)`
8444
8444
  width: 18px;
8445
8445
  color: ${z.palette.gray.gray3};
8446
8446
  `, By = k(fe)`
@@ -8537,7 +8537,7 @@ function Wy() {
8537
8537
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8538
8538
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
8539
8539
  }
8540
- function $e(e, t) {
8540
+ function Je(e, t) {
8541
8541
  return Vy(e) || Hy(e, t) || sf(e, t) || Wy();
8542
8542
  }
8543
8543
  function Zy(e, t) {
@@ -8560,7 +8560,7 @@ function nn(e, t) {
8560
8560
  }
8561
8561
  var Xy = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
8562
8562
  function af(e) {
8563
- var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, s = o === void 0 ? null : o, l = e.inputValue, a = e.menuIsOpen, c = e.onChange, u = e.onInputChange, b = e.onMenuClose, v = e.onMenuOpen, C = e.value, g = nn(e, Xy), h = $(l !== void 0 ? l : n), d = $e(h, 2), f = d[0], p = d[1], m = $(a !== void 0 ? a : i), I = $e(m, 2), y = I[0], x = I[1], w = $(C !== void 0 ? C : s), A = $e(w, 2), T = A[0], F = A[1], R = Ne(function(M, ne) {
8563
+ var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, s = o === void 0 ? null : o, l = e.inputValue, a = e.menuIsOpen, c = e.onChange, u = e.onInputChange, b = e.onMenuClose, v = e.onMenuOpen, C = e.value, g = nn(e, Xy), h = $(l !== void 0 ? l : n), d = Je(h, 2), f = d[0], p = d[1], m = $(a !== void 0 ? a : i), I = Je(m, 2), y = I[0], x = I[1], w = $(C !== void 0 ? C : s), A = Je(w, 2), T = A[0], F = A[1], R = Ne(function(M, ne) {
8564
8564
  typeof c == "function" && c(M, ne), F(M);
8565
8565
  }, [c]), D = Ne(function(M, ne) {
8566
8566
  var ae;
@@ -9333,14 +9333,14 @@ function DC() {
9333
9333
  case b:
9334
9334
  return tt;
9335
9335
  default:
9336
- var Je = tt && tt.$$typeof;
9337
- switch (Je) {
9336
+ var Qe = tt && tt.$$typeof;
9337
+ switch (Qe) {
9338
9338
  case l:
9339
9339
  case u:
9340
9340
  case g:
9341
9341
  case C:
9342
9342
  case s:
9343
- return Je;
9343
+ return Qe;
9344
9344
  default:
9345
9345
  return Pe;
9346
9346
  }
@@ -9387,10 +9387,10 @@ function DC() {
9387
9387
  function ge(H) {
9388
9388
  return I(H) === i;
9389
9389
  }
9390
- function Ye(H) {
9390
+ function $e(H) {
9391
9391
  return I(H) === b;
9392
9392
  }
9393
- Te.AsyncMode = y, Te.ConcurrentMode = x, Te.ContextConsumer = w, Te.ContextProvider = A, Te.Element = T, Te.ForwardRef = F, Te.Fragment = R, Te.Lazy = D, Te.Memo = L, Te.Portal = X, Te.Profiler = U, Te.StrictMode = B, Te.Suspense = Y, Te.isAsyncMode = ne, Te.isConcurrentMode = ae, Te.isContextConsumer = V, Te.isContextProvider = G, Te.isElement = j, Te.isForwardRef = re, Te.isFragment = le, Te.isLazy = ue, Te.isMemo = Ce, Te.isPortal = Re, Te.isProfiler = ie, Te.isStrictMode = ge, Te.isSuspense = Ye, Te.isValidElementType = m, Te.typeOf = I;
9393
+ Te.AsyncMode = y, Te.ConcurrentMode = x, Te.ContextConsumer = w, Te.ContextProvider = A, Te.Element = T, Te.ForwardRef = F, Te.Fragment = R, Te.Lazy = D, Te.Memo = L, Te.Portal = X, Te.Profiler = U, Te.StrictMode = B, Te.Suspense = Y, Te.isAsyncMode = ne, Te.isConcurrentMode = ae, Te.isContextConsumer = V, Te.isContextProvider = G, Te.isElement = j, Te.isForwardRef = re, Te.isFragment = le, Te.isLazy = ue, Te.isMemo = Ce, Te.isPortal = Re, Te.isProfiler = ie, Te.isStrictMode = ge, Te.isSuspense = $e, Te.isValidElementType = m, Te.typeOf = I;
9394
9394
  }()), Te;
9395
9395
  }
9396
9396
  process.env.NODE_ENV === "production" ? Js.exports = FC() : Js.exports = DC();
@@ -10073,11 +10073,11 @@ var L3 = function(t) {
10073
10073
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
10074
10074
  r[i - 1] = arguments[i];
10075
10075
  var o = Object.entries(t).filter(function(s) {
10076
- var l = $e(s, 1), a = l[0];
10076
+ var l = Je(s, 1), a = l[0];
10077
10077
  return !r.includes(a);
10078
10078
  });
10079
10079
  return o.reduce(function(s, l) {
10080
- var a = $e(l, 2), c = a[0], u = a[1];
10080
+ var a = Je(l, 2), c = a[0], u = a[1];
10081
10081
  return s[c] = u, s;
10082
10082
  }, {});
10083
10083
  }, F3 = ["children", "innerProps"], D3 = ["children", "innerProps"];
@@ -10170,7 +10170,7 @@ var Of = function(t) {
10170
10170
  marginTop: l.menuGutter
10171
10171
  });
10172
10172
  }, Lf = /* @__PURE__ */ du(null), M3 = function(t) {
10173
- var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, s = t.menuPosition, l = t.menuShouldScrollIntoView, a = t.theme, c = ct(Lf) || {}, u = c.setPortalPlacement, b = ke(null), v = $(i), C = $e(v, 2), g = C[0], h = C[1], d = $(null), f = $e(d, 2), p = f[0], m = f[1], I = a.spacing.controlHeight;
10173
+ var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, s = t.menuPosition, l = t.menuShouldScrollIntoView, a = t.theme, c = ct(Lf) || {}, u = c.setPortalPlacement, b = ke(null), v = $(i), C = Je(v, 2), g = C[0], h = C[1], d = $(null), f = Je(d, 2), p = f[0], m = f[1], I = a.spacing.controlHeight;
10174
10174
  return Ks(function() {
10175
10175
  var y = b.current;
10176
10176
  if (y) {
@@ -10255,11 +10255,11 @@ var Of = function(t) {
10255
10255
  zIndex: 1
10256
10256
  };
10257
10257
  }, z3 = function(t) {
10258
- var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, s = t.menuPlacement, l = t.menuPosition, a = ke(null), c = ke(null), u = $(Of(s)), b = $e(u, 2), v = b[0], C = b[1], g = Ge(function() {
10258
+ var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, s = t.menuPlacement, l = t.menuPosition, a = ke(null), c = ke(null), u = $(Of(s)), b = Je(u, 2), v = b[0], C = b[1], g = Ge(function() {
10259
10259
  return {
10260
10260
  setPortalPlacement: C
10261
10261
  };
10262
- }, []), h = $(null), d = $e(h, 2), f = d[0], p = d[1], m = Ne(function() {
10262
+ }, []), h = $(null), d = Je(h, 2), f = d[0], p = d[1], m = Ne(function() {
10263
10263
  if (i) {
10264
10264
  var w = A3(i), A = l === "fixed" ? 0 : window.pageYOffset, T = w[v] + A;
10265
10265
  (T !== (f == null ? void 0 : f.offset) || w.left !== (f == null ? void 0 : f.rect.left) || w.width !== (f == null ? void 0 : f.rect.width)) && p({
@@ -12315,11 +12315,11 @@ var zf = function(t) {
12315
12315
  var i = this, o = this.getComponents(), s = o.Group, l = o.GroupHeading, a = o.Menu, c = o.MenuList, u = o.MenuPortal, b = o.LoadingMessage, v = o.NoOptionsMessage, C = o.Option, g = this.commonProps, h = this.state.focusedOption, d = this.props, f = d.captureMenuScroll, p = d.inputValue, m = d.isLoading, I = d.loadingMessage, y = d.minMenuHeight, x = d.maxMenuHeight, w = d.menuIsOpen, A = d.menuPlacement, T = d.menuPosition, F = d.menuPortalTarget, R = d.menuShouldBlockScroll, D = d.menuShouldScrollIntoView, L = d.noOptionsMessage, X = d.onMenuScrollToTop, U = d.onMenuScrollToBottom;
12316
12316
  if (!w) return null;
12317
12317
  var B = function(j, re) {
12318
- var le = j.type, ue = j.data, Ce = j.isDisabled, Re = j.isSelected, ie = j.label, ge = j.value, Ye = h === ue, H = Ce ? void 0 : function() {
12318
+ var le = j.type, ue = j.data, Ce = j.isDisabled, Re = j.isSelected, ie = j.label, ge = j.value, $e = h === ue, H = Ce ? void 0 : function() {
12319
12319
  return i.onOptionHover(ue);
12320
12320
  }, Pe = Ce ? void 0 : function() {
12321
12321
  return i.selectOption(ue);
12322
- }, tt = "".concat(i.getElementId("option"), "-").concat(re), Je = {
12322
+ }, tt = "".concat(i.getElementId("option"), "-").concat(re), Qe = {
12323
12323
  id: tt,
12324
12324
  onClick: Pe,
12325
12325
  onMouseMove: H,
@@ -12330,7 +12330,7 @@ var zf = function(t) {
12330
12330
  // is not supported on Apple devices
12331
12331
  };
12332
12332
  return /* @__PURE__ */ P.createElement(C, te({}, g, {
12333
- innerProps: Je,
12333
+ innerProps: Qe,
12334
12334
  data: ue,
12335
12335
  isDisabled: Ce,
12336
12336
  isSelected: Re,
@@ -12338,8 +12338,8 @@ var zf = function(t) {
12338
12338
  label: ie,
12339
12339
  type: le,
12340
12340
  value: ge,
12341
- isFocused: Ye,
12342
- innerRef: Ye ? i.getFocusedOptionRef : void 0
12341
+ isFocused: $e,
12342
+ innerRef: $e ? i.getFocusedOptionRef : void 0
12343
12343
  }), i.formatOptionLabel(j.data, "menu"));
12344
12344
  }, Y;
12345
12345
  if (this.hasOptions())
@@ -12585,7 +12585,7 @@ const VE = k(Oe)`
12585
12585
  &:after {
12586
12586
  transform: rotate(-45deg);
12587
12587
  }
12588
- `, $f = (e) => /* @__PURE__ */ E.jsx(gn.ClearIndicator, { ...e, children: /* @__PURE__ */ E.jsx(VE, {}) }), HE = (e) => /* @__PURE__ */ E.jsx(gn.DropdownIndicator, { ...e, children: /* @__PURE__ */ E.jsx(pu, { children: e.selectProps.menuIsOpen ? /* @__PURE__ */ E.jsx(Dt.ArrowDropUp, {}) : /* @__PURE__ */ E.jsx(Dt.ArrowDropDown, {}) }) }), Jf = () => ({
12588
+ `, $f = (e) => /* @__PURE__ */ E.jsx(gn.ClearIndicator, { ...e, children: /* @__PURE__ */ E.jsx(VE, {}) }), HE = (e) => /* @__PURE__ */ E.jsx(gn.DropdownIndicator, { ...e, children: /* @__PURE__ */ E.jsx(pu, { children: e.selectProps.menuIsOpen ? /* @__PURE__ */ E.jsx(Nt.ArrowDropUp, {}) : /* @__PURE__ */ E.jsx(Nt.ArrowDropDown, {}) }) }), Jf = () => ({
12589
12589
  ClearIndicator: $f,
12590
12590
  DropdownIndicator: HE,
12591
12591
  IndicatorSeparator: () => null,
@@ -12744,43 +12744,43 @@ var zE = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
12744
12744
  function YE(e) {
12745
12745
  var t = e.defaultOptions, n = t === void 0 ? !1 : t, r = e.cacheOptions, i = r === void 0 ? !1 : r, o = e.loadOptions;
12746
12746
  e.options;
12747
- var s = e.isLoading, l = s === void 0 ? !1 : s, a = e.onInputChange, c = e.filterOption, u = c === void 0 ? null : c, b = nn(e, zE), v = b.inputValue, C = ke(void 0), g = ke(!1), h = $(Array.isArray(n) ? n : void 0), d = $e(h, 2), f = d[0], p = d[1], m = $(typeof v < "u" ? v : ""), I = $e(m, 2), y = I[0], x = I[1], w = $(n === !0), A = $e(w, 2), T = A[0], F = A[1], R = $(void 0), D = $e(R, 2), L = D[0], X = D[1], U = $([]), B = $e(U, 2), Y = B[0], M = B[1], ne = $(!1), ae = $e(ne, 2), V = ae[0], G = ae[1], j = $({}), re = $e(j, 2), le = re[0], ue = re[1], Ce = $(void 0), Re = $e(Ce, 2), ie = Re[0], ge = Re[1], Ye = $(void 0), H = $e(Ye, 2), Pe = H[0], tt = H[1];
12747
+ var s = e.isLoading, l = s === void 0 ? !1 : s, a = e.onInputChange, c = e.filterOption, u = c === void 0 ? null : c, b = nn(e, zE), v = b.inputValue, C = ke(void 0), g = ke(!1), h = $(Array.isArray(n) ? n : void 0), d = Je(h, 2), f = d[0], p = d[1], m = $(typeof v < "u" ? v : ""), I = Je(m, 2), y = I[0], x = I[1], w = $(n === !0), A = Je(w, 2), T = A[0], F = A[1], R = $(void 0), D = Je(R, 2), L = D[0], X = D[1], U = $([]), B = Je(U, 2), Y = B[0], M = B[1], ne = $(!1), ae = Je(ne, 2), V = ae[0], G = ae[1], j = $({}), re = Je(j, 2), le = re[0], ue = re[1], Ce = $(void 0), Re = Je(Ce, 2), ie = Re[0], ge = Re[1], $e = $(void 0), H = Je($e, 2), Pe = H[0], tt = H[1];
12748
12748
  i !== Pe && (ue({}), tt(i)), n !== ie && (p(Array.isArray(n) ? n : void 0), ge(n)), pe(function() {
12749
12749
  return g.current = !0, function() {
12750
12750
  g.current = !1;
12751
12751
  };
12752
12752
  }, []);
12753
- var Je = Ne(function(kt, lt) {
12753
+ var Qe = Ne(function(kt, lt) {
12754
12754
  if (!o) return lt();
12755
- var Qe = o(kt, lt);
12756
- Qe && typeof Qe.then == "function" && Qe.then(lt, function() {
12755
+ var qe = o(kt, lt);
12756
+ qe && typeof qe.then == "function" && qe.then(lt, function() {
12757
12757
  return lt();
12758
12758
  });
12759
12759
  }, [o]);
12760
12760
  pe(function() {
12761
- n === !0 && Je(y, function(kt) {
12761
+ n === !0 && Qe(y, function(kt) {
12762
12762
  g.current && (p(kt || []), F(!!C.current));
12763
12763
  });
12764
12764
  }, []);
12765
- var Nt = Ne(function(kt, lt) {
12766
- var Qe = I3(kt, lt, a);
12767
- if (!Qe) {
12765
+ var Ot = Ne(function(kt, lt) {
12766
+ var qe = I3(kt, lt, a);
12767
+ if (!qe) {
12768
12768
  C.current = void 0, x(""), X(""), M([]), F(!1), G(!1);
12769
12769
  return;
12770
12770
  }
12771
- if (i && le[Qe])
12772
- x(Qe), X(Qe), M(le[Qe]), F(!1), G(!1);
12771
+ if (i && le[qe])
12772
+ x(qe), X(qe), M(le[qe]), F(!1), G(!1);
12773
12773
  else {
12774
12774
  var rr = C.current = {};
12775
- x(Qe), F(!0), G(!L), Je(Qe, function(rn) {
12776
- g && rr === C.current && (C.current = void 0, F(!1), X(Qe), M(rn || []), G(!1), ue(rn ? q(q({}, le), {}, fr({}, Qe, rn)) : le));
12775
+ x(qe), F(!0), G(!L), Qe(qe, function(rn) {
12776
+ g && rr === C.current && (C.current = void 0, F(!1), X(qe), M(rn || []), G(!1), ue(rn ? q(q({}, le), {}, fr({}, qe, rn)) : le));
12777
12777
  });
12778
12778
  }
12779
- }, [i, Je, L, le, a]), nr = V ? [] : y && L ? Y : f || [];
12779
+ }, [i, Qe, L, le, a]), nr = V ? [] : y && L ? Y : f || [];
12780
12780
  return q(q({}, b), {}, {
12781
12781
  options: nr,
12782
12782
  isLoading: T || l,
12783
- onInputChange: Nt,
12783
+ onInputChange: Ot,
12784
12784
  filterOption: u
12785
12785
  });
12786
12786
  }
@@ -12791,7 +12791,7 @@ var $E = /* @__PURE__ */ ma(function(e, t) {
12791
12791
  }, r));
12792
12792
  }), JE = $E;
12793
12793
  function QE(e) {
12794
- return /* @__PURE__ */ E.jsx(gn.DropdownIndicator, { ...e, children: /* @__PURE__ */ E.jsx(pu, { children: e.selectProps.menuIsOpen ? /* @__PURE__ */ E.jsx(Dt.ArrowDropUp, {}) : /* @__PURE__ */ E.jsx(Dt.ArrowDropDown, {}) }) });
12794
+ return /* @__PURE__ */ E.jsx(gn.DropdownIndicator, { ...e, children: /* @__PURE__ */ E.jsx(pu, { children: e.selectProps.menuIsOpen ? /* @__PURE__ */ E.jsx(Nt.ArrowDropUp, {}) : /* @__PURE__ */ E.jsx(Nt.ArrowDropDown, {}) }) });
12795
12795
  }
12796
12796
  function qE(e) {
12797
12797
  const [t, n] = $([]), [r, i] = $(""), [o, s] = $(!1), { loadOptions: l, isApiSearchEnabled: a = !1, isInfiniteScrollable: c = !1, loadOptionsOnFocus: u = !1 } = e, b = (f, p) => {
@@ -12877,7 +12877,7 @@ function KE(e) {
12877
12877
  onBlur: e.onBlur,
12878
12878
  onFocus: e.onFocus,
12879
12879
  InputProps: {
12880
- endAdornment: /* @__PURE__ */ E.jsx(dh, { position: "end", sx: { backgroundColor: "#FFFFFF", cursor: "pointer" }, children: /* @__PURE__ */ E.jsx(Dt.CalendarTodayOutlinedIcon, {}) })
12880
+ endAdornment: /* @__PURE__ */ E.jsx(dh, { position: "end", sx: { backgroundColor: "#FFFFFF", cursor: "pointer" }, children: /* @__PURE__ */ E.jsx(Nt.CalendarTodayOutlinedIcon, {}) })
12881
12881
  },
12882
12882
  sx: {
12883
12883
  "& .MuiOutlinedInput-root": {
@@ -13130,7 +13130,7 @@ const vo = (e) => {
13130
13130
  e ? /* @__PURE__ */ E.jsx(
13131
13131
  ul,
13132
13132
  {
13133
- endIcon: /* @__PURE__ */ E.jsx(Dt.ArrowForward, {}),
13133
+ endIcon: /* @__PURE__ */ E.jsx(Nt.ArrowForward, {}),
13134
13134
  onClick: s,
13135
13135
  ...o && { size: "medium" },
13136
13136
  children: wy
@@ -13183,7 +13183,7 @@ const vo = (e) => {
13183
13183
  /* @__PURE__ */ E.jsxs(om, { children: [
13184
13184
  /* @__PURE__ */ E.jsx(rm, { variant: "h3", children: v }),
13185
13185
  /* @__PURE__ */ E.jsxs(Oe, { children: [
13186
- i ? /* @__PURE__ */ E.jsx(We, { title: b1, placement: "bottom", children: /* @__PURE__ */ E.jsx(fn, { onClick: m, children: /* @__PURE__ */ E.jsx(Dt.Close, { sx: { height: "16px", width: "16px", opacity: "0.8" } }) }) }) : null,
13186
+ i ? /* @__PURE__ */ E.jsx(We, { title: b1, placement: "bottom", children: /* @__PURE__ */ E.jsx(fn, { onClick: m, children: /* @__PURE__ */ E.jsx(Nt.Close, { sx: { height: "16px", width: "16px", opacity: "0.8" } }) }) }) : null,
13187
13187
  /* @__PURE__ */ E.jsx(We, { title: i ? m1 : Oa, placement: "bottom", children: /* @__PURE__ */ E.jsx(Mn, { onClick: f, children: /* @__PURE__ */ E.jsx(Na, { className: i ? "" : "hiver-up" }) }) })
13188
13188
  ] })
13189
13189
  ] }),
@@ -13237,7 +13237,7 @@ const vo = (e) => {
13237
13237
  /* @__PURE__ */ E.jsx(We, { title: r ? e.data.value : null, placement: "bottom", children: /* @__PURE__ */ E.jsx(mm, { ref: n, className: "dropdown-item-text", variant: "body2", children: e.data.label }) }),
13238
13238
  t ? /* @__PURE__ */ E.jsx("img", { src: cx, width: "14px", height: "14px" }) : null
13239
13239
  ] }) });
13240
- }, fx = (e) => /* @__PURE__ */ E.jsx(gn.DropdownIndicator, { ...e, children: e.selectProps.menuIsOpen ? /* @__PURE__ */ E.jsx(Dt.ArrowDropUp, { sx: { height: "18px", width: "18px", color: z.palette.gray.gray3 } }) : /* @__PURE__ */ E.jsx(Dt.ArrowDropDown, { sx: { height: "18px", width: "18px", color: z.palette.gray.gray3 } }) }), hx = {
13240
+ }, fx = (e) => /* @__PURE__ */ E.jsx(gn.DropdownIndicator, { ...e, children: e.selectProps.menuIsOpen ? /* @__PURE__ */ E.jsx(Nt.ArrowDropUp, { sx: { height: "18px", width: "18px", color: z.palette.gray.gray3 } }) : /* @__PURE__ */ E.jsx(Nt.ArrowDropDown, { sx: { height: "18px", width: "18px", color: z.palette.gray.gray3 } }) }), hx = {
13241
13241
  control: (e) => ({
13242
13242
  ...e,
13243
13243
  border: "none",
@@ -13723,13 +13723,13 @@ const vo = (e) => {
13723
13723
  }, [C, e, ne]);
13724
13724
  const j = () => {
13725
13725
  s(c.current), a(!1), b({ type: Jt.RESET_STATE });
13726
- }, re = (ie, ge, Ye) => {
13726
+ }, re = (ie, ge, $e) => {
13727
13727
  if (ge.action === "clear" && ge.name && (T(ge.name, ""), o != null && o.value && D(ge.name, d == null ? void 0 : d[o.value]), w[ge.name].isRequired && L(ge.name, !0)), ie && typeof ie == "object" && "label" in ie && typeof ie.label == "string" && "value" in ie && (typeof ie.value == "string" || typeof ie.value == "number") && typeof ge.name < "u")
13728
13728
  if (ge.name === "form-object")
13729
13729
  c.current = { value: ie.value, label: ie.label }, u.values && ie.value !== (o == null ? void 0 : o.value) && (Object.values(u.values).filter((Pe) => Pe !== "").length > 0 ? a(!0) : j());
13730
13730
  else {
13731
13731
  let H = !1;
13732
- Ye && (H = Ye.isMultiSelect || !1);
13732
+ $e && (H = $e.isMultiSelect || !1);
13733
13733
  const Pe = H ? [{ value: ie.value, label: ie.label }] : { value: ie.value, label: ie.label };
13734
13734
  T(ge.name, Pe), o != null && o.value && D(ge.name, d == null ? void 0 : d[o.value]);
13735
13735
  }
@@ -13742,16 +13742,16 @@ const vo = (e) => {
13742
13742
  sm_ids: Y,
13743
13743
  ug_id: M
13744
13744
  });
13745
- const Ye = h[ne].interfaceDetails;
13746
- if (!Ye || !m)
13745
+ const $e = h[ne].interfaceDetails;
13746
+ if (!$e || !m)
13747
13747
  return;
13748
- const { id: H, args: Pe = {}, previousArgs: tt = {} } = Ye, Je = Hi(m, tt), Nt = Hi(u, Pe);
13748
+ const { id: H, args: Pe = {}, previousArgs: tt = {} } = $e, Qe = Hi(m, tt), Ot = Hi(u, Pe);
13749
13749
  G(
13750
13750
  Xi({
13751
13751
  formId: String(ne),
13752
13752
  conversationId: U,
13753
- args: Nt,
13754
- previousArgs: Je,
13753
+ args: Ot,
13754
+ previousArgs: Qe,
13755
13755
  externalResourceId: ae,
13756
13756
  interfaceId: H,
13757
13757
  successCallback: () => {
@@ -13774,7 +13774,7 @@ const vo = (e) => {
13774
13774
  const ie = h == null ? void 0 : h[o.value].interfaceDetails;
13775
13775
  if (!ie)
13776
13776
  return;
13777
- const { id: ge, args: Ye = {} } = ie, H = Hi(u, Ye);
13777
+ const { id: ge, args: $e = {} } = ie, H = Hi(u, $e);
13778
13778
  G(
13779
13779
  Zi({
13780
13780
  formId: String(o.value),
@@ -14173,7 +14173,7 @@ var Vr = class {
14173
14173
  onUnsubscribe() {
14174
14174
  }
14175
14175
  }, er = typeof window > "u" || "Deno" in globalThis;
14176
- function Ft() {
14176
+ function Dt() {
14177
14177
  }
14178
14178
  function a4(e, t) {
14179
14179
  return typeof e == "function" ? e(t) : e;
@@ -14539,7 +14539,7 @@ function p4() {
14539
14539
  }
14540
14540
  };
14541
14541
  }
14542
- var ze = p4(), Gn, ru, y0 = (ru = class {
14542
+ var Ye = p4(), Gn, ru, y0 = (ru = class {
14543
14543
  constructor() {
14544
14544
  K(this, Gn);
14545
14545
  }
@@ -14560,18 +14560,18 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14560
14560
  clearGcTimeout() {
14561
14561
  S(this, Gn) && (clearTimeout(S(this, Gn)), Z(this, Gn, void 0));
14562
14562
  }
14563
- }, Gn = new WeakMap(), ru), Ir, Er, Lt, jn, rt, fi, Vn, Bt, an, iu, g4 = (iu = class extends y0 {
14563
+ }, Gn = new WeakMap(), ru), Ir, Er, Ft, jn, rt, fi, Vn, Bt, an, iu, g4 = (iu = class extends y0 {
14564
14564
  constructor(t) {
14565
14565
  super();
14566
14566
  K(this, Bt);
14567
14567
  K(this, Ir);
14568
14568
  K(this, Er);
14569
- K(this, Lt);
14569
+ K(this, Ft);
14570
14570
  K(this, jn);
14571
14571
  K(this, rt);
14572
14572
  K(this, fi);
14573
14573
  K(this, Vn);
14574
- Z(this, Vn, !1), Z(this, fi, t.defaultOptions), this.setOptions(t.options), this.observers = [], Z(this, jn, t.client), Z(this, Lt, S(this, jn).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, Z(this, Ir, m4(this.options)), this.state = t.state ?? S(this, Ir), this.scheduleGc();
14574
+ Z(this, Vn, !1), Z(this, fi, t.defaultOptions), this.setOptions(t.options), this.observers = [], Z(this, jn, t.client), Z(this, Ft, S(this, jn).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, Z(this, Ir, m4(this.options)), this.state = t.state ?? S(this, Ir), this.scheduleGc();
14575
14575
  }
14576
14576
  get meta() {
14577
14577
  return this.options.meta;
@@ -14584,7 +14584,7 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14584
14584
  this.options = { ...S(this, fi), ...t }, this.updateGcTime(this.options.gcTime);
14585
14585
  }
14586
14586
  optionalRemove() {
14587
- !this.observers.length && this.state.fetchStatus === "idle" && S(this, Lt).remove(this);
14587
+ !this.observers.length && this.state.fetchStatus === "idle" && S(this, Ft).remove(this);
14588
14588
  }
14589
14589
  setData(t, n) {
14590
14590
  const r = ia(this.state.data, t, this.options);
@@ -14601,7 +14601,7 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14601
14601
  cancel(t) {
14602
14602
  var r, i;
14603
14603
  const n = (r = S(this, rt)) == null ? void 0 : r.promise;
14604
- return (i = S(this, rt)) == null || i.cancel(t), n ? n.then(Ft).catch(Ft) : Promise.resolve();
14604
+ return (i = S(this, rt)) == null || i.cancel(t), n ? n.then(Dt).catch(Dt) : Promise.resolve();
14605
14605
  }
14606
14606
  destroy() {
14607
14607
  super.destroy(), this.cancel({ silent: !0 });
@@ -14636,10 +14636,10 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14636
14636
  t == null || t.refetch({ cancelRefetch: !1 }), (n = S(this, rt)) == null || n.continue();
14637
14637
  }
14638
14638
  addObserver(t) {
14639
- this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), S(this, Lt).notify({ type: "observerAdded", query: this, observer: t }));
14639
+ this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), S(this, Ft).notify({ type: "observerAdded", query: this, observer: t }));
14640
14640
  }
14641
14641
  removeObserver(t) {
14642
- this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (S(this, rt) && (S(this, Vn) ? S(this, rt).cancel({ revert: !0 }) : S(this, rt).cancelRetry()), this.scheduleGc()), S(this, Lt).notify({ type: "observerRemoved", query: this, observer: t }));
14642
+ this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (S(this, rt) && (S(this, Vn) ? S(this, rt).cancel({ revert: !0 }) : S(this, rt).cancelRetry()), this.scheduleGc()), S(this, Ft).notify({ type: "observerRemoved", query: this, observer: t }));
14643
14643
  }
14644
14644
  getObserversCount() {
14645
14645
  return this.observers.length;
@@ -14695,11 +14695,11 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14695
14695
  Is(b) && b.silent || de(this, Bt, an).call(this, {
14696
14696
  type: "error",
14697
14697
  error: b
14698
- }), Is(b) || ((C = (v = S(this, Lt).config).onError) == null || C.call(
14698
+ }), Is(b) || ((C = (v = S(this, Ft).config).onError) == null || C.call(
14699
14699
  v,
14700
14700
  b,
14701
14701
  this
14702
- ), (h = (g = S(this, Lt).config).onSettled) == null || h.call(
14702
+ ), (h = (g = S(this, Ft).config).onSettled) == null || h.call(
14703
14703
  g,
14704
14704
  this.state.data,
14705
14705
  b,
@@ -14724,7 +14724,7 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14724
14724
  l(d);
14725
14725
  return;
14726
14726
  }
14727
- (C = (v = S(this, Lt).config).onSuccess) == null || C.call(v, b, this), (h = (g = S(this, Lt).config).onSettled) == null || h.call(
14727
+ (C = (v = S(this, Ft).config).onSuccess) == null || C.call(v, b, this), (h = (g = S(this, Ft).config).onSettled) == null || h.call(
14728
14728
  g,
14729
14729
  b,
14730
14730
  this.state.error,
@@ -14747,7 +14747,7 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14747
14747
  canRun: () => !0
14748
14748
  })), S(this, rt).start();
14749
14749
  }
14750
- }, Ir = new WeakMap(), Er = new WeakMap(), Lt = new WeakMap(), jn = new WeakMap(), rt = new WeakMap(), fi = new WeakMap(), Vn = new WeakMap(), Bt = new WeakSet(), an = function(t) {
14750
+ }, Ir = new WeakMap(), Er = new WeakMap(), Ft = new WeakMap(), jn = new WeakMap(), rt = new WeakMap(), fi = new WeakMap(), Vn = new WeakMap(), Bt = new WeakSet(), an = function(t) {
14751
14751
  const n = (r) => {
14752
14752
  switch (t.type) {
14753
14753
  case "failed":
@@ -14811,10 +14811,10 @@ var ze = p4(), Gn, ru, y0 = (ru = class {
14811
14811
  };
14812
14812
  }
14813
14813
  };
14814
- this.state = n(this.state), ze.batch(() => {
14814
+ this.state = n(this.state), Ye.batch(() => {
14815
14815
  this.observers.forEach((r) => {
14816
14816
  r.onQueryUpdate();
14817
- }), S(this, Lt).notify({ query: this, type: "updated", action: t });
14817
+ }), S(this, Ft).notify({ query: this, type: "updated", action: t });
14818
14818
  });
14819
14819
  }, iu);
14820
14820
  function C0(e, t) {
@@ -14874,7 +14874,7 @@ var Zt, ou, b4 = (ou = class extends Vr {
14874
14874
  n && (t.destroy(), n === t && S(this, Zt).delete(t.queryHash), this.notify({ type: "removed", query: t }));
14875
14875
  }
14876
14876
  clear() {
14877
- ze.batch(() => {
14877
+ Ye.batch(() => {
14878
14878
  this.getAll().forEach((t) => {
14879
14879
  this.remove(t);
14880
14880
  });
@@ -14897,21 +14897,21 @@ var Zt, ou, b4 = (ou = class extends Vr {
14897
14897
  return Object.keys(t).length > 0 ? n.filter((r) => Ul(t, r)) : n;
14898
14898
  }
14899
14899
  notify(t) {
14900
- ze.batch(() => {
14900
+ Ye.batch(() => {
14901
14901
  this.listeners.forEach((n) => {
14902
14902
  n(t);
14903
14903
  });
14904
14904
  });
14905
14905
  }
14906
14906
  onFocus() {
14907
- ze.batch(() => {
14907
+ Ye.batch(() => {
14908
14908
  this.getAll().forEach((t) => {
14909
14909
  t.onFocus();
14910
14910
  });
14911
14911
  });
14912
14912
  }
14913
14913
  onOnline() {
14914
- ze.batch(() => {
14914
+ Ye.batch(() => {
14915
14915
  this.getAll().forEach((t) => {
14916
14916
  t.onOnline();
14917
14917
  });
@@ -15091,7 +15091,7 @@ var Zt, ou, b4 = (ou = class extends Vr {
15091
15091
  };
15092
15092
  }
15093
15093
  };
15094
- this.state = n(this.state), ze.batch(() => {
15094
+ this.state = n(this.state), Ye.batch(() => {
15095
15095
  S(this, Xt).forEach((r) => {
15096
15096
  r.onMutationUpdate(t);
15097
15097
  }), S(this, ot).notify({
@@ -15174,7 +15174,7 @@ var cn, Gt, hi, au, y4 = (au = class extends Vr {
15174
15174
  return Promise.resolve();
15175
15175
  }
15176
15176
  clear() {
15177
- ze.batch(() => {
15177
+ Ye.batch(() => {
15178
15178
  S(this, cn).forEach((t) => {
15179
15179
  this.notify({ type: "removed", mutation: t });
15180
15180
  }), S(this, cn).clear(), S(this, Gt).clear();
@@ -15193,7 +15193,7 @@ var cn, Gt, hi, au, y4 = (au = class extends Vr {
15193
15193
  return this.getAll().filter((n) => zl(t, n));
15194
15194
  }
15195
15195
  notify(t) {
15196
- ze.batch(() => {
15196
+ Ye.batch(() => {
15197
15197
  this.listeners.forEach((n) => {
15198
15198
  n(t);
15199
15199
  });
@@ -15201,9 +15201,9 @@ var cn, Gt, hi, au, y4 = (au = class extends Vr {
15201
15201
  }
15202
15202
  resumePausedMutations() {
15203
15203
  const t = this.getAll().filter((n) => n.state.isPaused);
15204
- return ze.batch(
15204
+ return Ye.batch(
15205
15205
  () => Promise.all(
15206
- t.map((n) => n.continue().catch(Ft))
15206
+ t.map((n) => n.continue().catch(Dt))
15207
15207
  )
15208
15208
  );
15209
15209
  }
@@ -15347,7 +15347,7 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15347
15347
  return S(this, Me).build(this, r).setData(s, { ...n, manual: !0 });
15348
15348
  }
15349
15349
  setQueriesData(e, t, n) {
15350
- return ze.batch(
15350
+ return Ye.batch(
15351
15351
  () => S(this, Me).findAll(e).map(({ queryKey: r }) => [
15352
15352
  r,
15353
15353
  this.setQueryData(r, t, n)
@@ -15363,7 +15363,7 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15363
15363
  }
15364
15364
  removeQueries(e) {
15365
15365
  const t = S(this, Me);
15366
- ze.batch(() => {
15366
+ Ye.batch(() => {
15367
15367
  t.findAll(e).forEach((n) => {
15368
15368
  t.remove(n);
15369
15369
  });
@@ -15371,7 +15371,7 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15371
15371
  }
15372
15372
  resetQueries(e, t) {
15373
15373
  const n = S(this, Me);
15374
- return ze.batch(() => (n.findAll(e).forEach((r) => {
15374
+ return Ye.batch(() => (n.findAll(e).forEach((r) => {
15375
15375
  r.reset();
15376
15376
  }), this.refetchQueries(
15377
15377
  {
@@ -15382,13 +15382,13 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15382
15382
  )));
15383
15383
  }
15384
15384
  cancelQueries(e, t = {}) {
15385
- const n = { revert: !0, ...t }, r = ze.batch(
15385
+ const n = { revert: !0, ...t }, r = Ye.batch(
15386
15386
  () => S(this, Me).findAll(e).map((i) => i.cancel(n))
15387
15387
  );
15388
- return Promise.all(r).then(Ft).catch(Ft);
15388
+ return Promise.all(r).then(Dt).catch(Dt);
15389
15389
  }
15390
15390
  invalidateQueries(e, t = {}) {
15391
- return ze.batch(() => (S(this, Me).findAll(e).forEach((n) => {
15391
+ return Ye.batch(() => (S(this, Me).findAll(e).forEach((n) => {
15392
15392
  n.invalidate();
15393
15393
  }), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
15394
15394
  {
@@ -15402,13 +15402,13 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15402
15402
  const n = {
15403
15403
  ...t,
15404
15404
  cancelRefetch: t.cancelRefetch ?? !0
15405
- }, r = ze.batch(
15405
+ }, r = Ye.batch(
15406
15406
  () => S(this, Me).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
15407
15407
  let o = i.fetch(void 0, n);
15408
- return n.throwOnError || (o = o.catch(Ft)), i.state.fetchStatus === "paused" ? Promise.resolve() : o;
15408
+ return n.throwOnError || (o = o.catch(Dt)), i.state.fetchStatus === "paused" ? Promise.resolve() : o;
15409
15409
  })
15410
15410
  );
15411
- return Promise.all(r).then(Ft);
15411
+ return Promise.all(r).then(Dt);
15412
15412
  }
15413
15413
  fetchQuery(e) {
15414
15414
  const t = this.defaultQueryOptions(e);
@@ -15419,13 +15419,13 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15419
15419
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
15420
15420
  }
15421
15421
  prefetchQuery(e) {
15422
- return this.fetchQuery(e).then(Ft).catch(Ft);
15422
+ return this.fetchQuery(e).then(Dt).catch(Dt);
15423
15423
  }
15424
15424
  fetchInfiniteQuery(e) {
15425
15425
  return e.behavior = Jl(e.pages), this.fetchQuery(e);
15426
15426
  }
15427
15427
  prefetchInfiniteQuery(e) {
15428
- return this.fetchInfiniteQuery(e).then(Ft).catch(Ft);
15428
+ return this.fetchInfiniteQuery(e).then(Dt).catch(Dt);
15429
15429
  }
15430
15430
  ensureInfiniteQueryData(e) {
15431
15431
  return e.behavior = Jl(e.pages), this.ensureQueryData(e);
@@ -15725,7 +15725,7 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15725
15725
  this.options,
15726
15726
  t
15727
15727
  );
15728
- return t != null && t.throwOnError || (n = n.catch(Ft)), n;
15728
+ return t != null && t.throwOnError || (n = n.catch(Dt)), n;
15729
15729
  }, sa = function() {
15730
15730
  de(this, Se, ua).call(this);
15731
15731
  const t = br(
@@ -15757,7 +15757,7 @@ var Me, In, En, xr, wr, xn, Ar, Tr, cu, I4 = (cu = class {
15757
15757
  const n = S(this, me);
15758
15758
  Z(this, me, t), Z(this, pi, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
15759
15759
  }, E0 = function(t) {
15760
- ze.batch(() => {
15760
+ Ye.batch(() => {
15761
15761
  t.listeners && this.listeners.forEach((n) => {
15762
15762
  n(S(this, st));
15763
15763
  }), S(this, dt).getQueryCache().notify({
@@ -15841,7 +15841,7 @@ var Tn, _n, ft, ln, dn, eo, pa, uu, A4 = (uu = class extends Vr {
15841
15841
  reset: this.reset
15842
15842
  });
15843
15843
  }, pa = function(t) {
15844
- ze.batch(() => {
15844
+ Ye.batch(() => {
15845
15845
  var n, r, i, o, s, l, a, c;
15846
15846
  if (S(this, ln) && this.hasListeners()) {
15847
15847
  const u = S(this, _n).variables, b = S(this, _n).context;
@@ -15929,7 +15929,7 @@ function M4(e, t, n) {
15929
15929
  if (P.useSyncExternalStore(
15930
15930
  P.useCallback(
15931
15931
  (d) => {
15932
- const f = u ? a.subscribe(ze.batchCalls(d)) : ga;
15932
+ const f = u ? a.subscribe(Ye.batchCalls(d)) : ga;
15933
15933
  return a.updateResult(), f;
15934
15934
  },
15935
15935
  [a, u]
@@ -15981,7 +15981,7 @@ function S0(e, t) {
15981
15981
  }, [r, e]);
15982
15982
  const i = P.useSyncExternalStore(
15983
15983
  P.useCallback(
15984
- (s) => r.subscribe(ze.batchCalls(s)),
15984
+ (s) => r.subscribe(Ye.batchCalls(s)),
15985
15985
  [r]
15986
15986
  ),
15987
15987
  () => r.getCurrentResult(),
@@ -16257,16 +16257,16 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16257
16257
  reset: Re,
16258
16258
  data: ie,
16259
16259
  isPending: ge,
16260
- isIdle: Ye
16260
+ isIdle: $e
16261
16261
  } = o5(), H = Ne(() => {
16262
16262
  Re(), y(null);
16263
16263
  }, [Re, y]), Pe = Ne(() => {
16264
16264
  t && n.length && o && s($i({ inboxIds: n, conversationId: o }));
16265
16265
  }, [s, t, n, o]), tt = Ne(
16266
- (qe, on) => {
16267
- qe && o && on && s(
16266
+ (ze, on) => {
16267
+ ze && o && on && s(
16268
16268
  Yi({
16269
- id: qe,
16269
+ id: ze,
16270
16270
  channelType: "email",
16271
16271
  conversationId: o,
16272
16272
  externalResourceId: on,
@@ -16281,10 +16281,10 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16281
16281
  if (pe(() => {
16282
16282
  w(t);
16283
16283
  }, [t]), pe(() => {
16284
- var qe;
16284
+ var ze;
16285
16285
  if (B) {
16286
16286
  b(!0);
16287
- const { externalResourceId: on } = B, or = (qe = B.forms.find((xi) => xi.type === "edit")) == null ? void 0 : qe.id;
16287
+ const { externalResourceId: on } = B, or = (ze = B.forms.find((xi) => xi.type === "edit")) == null ? void 0 : ze.id;
16288
16288
  tt(or, on);
16289
16289
  } else
16290
16290
  b(!1), s(Pv());
@@ -16299,22 +16299,22 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16299
16299
  o && n && n.length && s(Wi({ inboxIds: n, conversationId: o, channelType: "email" }));
16300
16300
  }, [s, n, o]), !t.length || D === J.LOADING)
16301
16301
  return /* @__PURE__ */ E.jsx(sx, {});
16302
- const Je = (qe = !0) => {
16302
+ const Qe = (ze = !1) => {
16303
16303
  r(H1, {
16304
16304
  connector_name: X,
16305
- source: qe ? "link_icon" : "main_button",
16305
+ source: ze ? "main_button" : "link_icon",
16306
16306
  sm_ids: n
16307
16307
  });
16308
- }, Nt = () => {
16309
- C(!0), Je(!0);
16308
+ }, Ot = (ze = !1) => {
16309
+ C(!0), Qe(ze);
16310
16310
  }, nr = () => {
16311
16311
  h(!0), r(W1);
16312
- }, kt = (qe) => {
16313
- r(qe, d), Y ? m(!0) : C(!1);
16314
- }, lt = (qe) => {
16312
+ }, kt = (ze) => {
16313
+ r(ze, d), Y ? m(!0) : C(!1);
16314
+ }, lt = (ze) => {
16315
16315
  if (B) {
16316
16316
  const { connectorName: on, title: or } = B;
16317
- r(qe, {
16317
+ r(ze, {
16318
16318
  connector_name: on,
16319
16319
  card_title: or,
16320
16320
  sm_ids: n,
@@ -16322,7 +16322,7 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16322
16322
  });
16323
16323
  }
16324
16324
  Y ? m(!0) : s(gr(null));
16325
- }, Qe = () => {
16325
+ }, qe = () => {
16326
16326
  C(!1), s(gr(null)), f(void 0), m(!1);
16327
16327
  }, rr = () => {
16328
16328
  Pe(), s(cl.clearConnectorList());
@@ -16336,7 +16336,7 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16336
16336
  {
16337
16337
  label: "Go back",
16338
16338
  variant: "text",
16339
- action: Qe
16339
+ action: qe
16340
16340
  },
16341
16341
  {
16342
16342
  label: "Stay",
@@ -16348,7 +16348,7 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16348
16348
  {
16349
16349
  haveCreateObjects: Hr,
16350
16350
  haveLinkObjects: ir,
16351
- onCreateClick: () => C(!0),
16351
+ onCreateClick: () => Ot(!0),
16352
16352
  onLinkClick: () => h(!0)
16353
16353
  }
16354
16354
  ) : /* @__PURE__ */ E.jsx(Zl, { isAdmin: e, hideHeading: !0 });
@@ -16376,7 +16376,7 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16376
16376
  /* @__PURE__ */ E.jsx(md, { variant: "h2", children: g1 })
16377
16377
  ] }),
16378
16378
  /* @__PURE__ */ E.jsx(Q, { direction: "row", gap: "4px", children: ne && (A != null && A.length) ? /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
16379
- Hr ? /* @__PURE__ */ E.jsx(We, { title: od, placement: "bottom", children: /* @__PURE__ */ E.jsx(fn, { onClick: Nt, children: /* @__PURE__ */ E.jsx("img", { src: s5, alt: "Add", height: "20px" }) }) }) : null,
16379
+ Hr ? /* @__PURE__ */ E.jsx(We, { title: od, placement: "bottom", children: /* @__PURE__ */ E.jsx(fn, { onClick: () => Ot(!1), children: /* @__PURE__ */ E.jsx("img", { src: s5, alt: "Add", height: "20px" }) }) }) : null,
16380
16380
  ir ? /* @__PURE__ */ E.jsx(We, { title: sd, placement: "bottom", children: /* @__PURE__ */ E.jsx(fn, { onClick: nr, children: /* @__PURE__ */ E.jsx("img", { src: a5, alt: "Link Task", height: "20px" }) }) }) : null
16381
16381
  ] }) : null })
16382
16382
  ] }),
@@ -16391,7 +16391,7 @@ const B4 = (e) => new Promise((t) => setTimeout(t, e)), G4 = ({
16391
16391
  ) : null,
16392
16392
  /* @__PURE__ */ E.jsxs(Xs, { children: [
16393
16393
  /* @__PURE__ */ E.jsx(dr, { condition: ae && ge, children: /* @__PURE__ */ E.jsx(r5, {}) }, "search"),
16394
- /* @__PURE__ */ E.jsx(dr, { condition: ae && !!I && !Ye, children: /* @__PURE__ */ E.jsx(
16394
+ /* @__PURE__ */ E.jsx(dr, { condition: ae && !!I && !$e, children: /* @__PURE__ */ E.jsx(
16395
16395
  n5,
16396
16396
  {
16397
16397
  searchResults: ie ?? [],