@hiver/connector-admin 4.9.0 → 4.9.2-appCfGx-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
@@ -4,7 +4,7 @@ var fE = (e) => {
4
4
  };
5
5
  var A2 = (e, t, n) => t in e ? r2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
6
  var pu = (e, t, n) => A2(e, typeof t != "symbol" ? t + "" : t, n), Qu = (e, t, n) => t.has(e) || fE("Cannot " + n);
7
- var L = (e, t, n) => (Qu(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ue = (e, t, n) => t.has(e) ? fE("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Re = (e, t, n, r) => (Qu(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), nt = (e, t, n) => (Qu(e, t, "access private method"), n);
7
+ var L = (e, t, n) => (Qu(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ge = (e, t, n) => t.has(e) ? fE("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Re = (e, t, n, r) => (Qu(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), nt = (e, t, n) => (Qu(e, t, "access private method"), n);
8
8
  var Ns = (e, t, n, r) => ({
9
9
  set _(A) {
10
10
  Re(e, t, A, n);
@@ -14,10 +14,10 @@ var Ns = (e, t, n, r) => ({
14
14
  }
15
15
  });
16
16
  import * as S from "react";
17
- import Ce, { useState as le, useRef as Me, useSyncExternalStore as o2, useLayoutEffect as yc, useEffect as be, isValidElement as ui, cloneElement as Eg, createContext as OA, Suspense as ah, useContext as He, useMemo as Le, useCallback as At, memo as i2, useReducer as Rd, Fragment as Gl, Component as xc, forwardRef as wc } from "react";
17
+ import Ce, { useState as le, useRef as Me, useSyncExternalStore as o2, useLayoutEffect as yc, useEffect as be, isValidElement as ui, cloneElement as Eg, createContext as OA, Suspense as ah, useContext as je, useMemo as Le, useCallback as At, memo as i2, useReducer as Rd, Fragment as Gl, Component as xc, forwardRef as wc } from "react";
18
18
  import * as a2 from "react-dom";
19
19
  import sh, { unstable_batchedUpdates as Fs, createPortal as Tc, render as s2, unmountComponentAtNode as l2 } from "react-dom";
20
- import { HiverProvider as lh, styled as T, Stack as V, Box as pe, Typography as ue, Skeleton as Yo, theme as ce, Icon as Jo, CircularProgress as io, palette as bn, Button as it, Tab as Vl, Chip as Is, Alert as gi, icons as Pt, Dialog as Od, Tooltip as Vt, IconButton as nr, brandIcons as ch, tooltipClasses as kr, Checkbox as Xo, TextField as Ld, Autocomplete as Di, Tabs as Nd, Grid as uh, Switch as Fd, DatePicker as c2, DateTextField as u2, InputAdornment as g2, Accordion as gh, AccordionSummary as dh, accordionSummaryClasses as Ch, AccordionDetails as Eh, Snackbar as Ih, Link as fh, ScopedCssBaseline as d2, DialogCloseButton as C2, MenuSearch as E2, InputBase as I2, MenuScrollable as f2, MenuItem as Bh, FormControl as B2, RadioGroup as h2, FormControlLabel as p2, Radio as Q2, Select as m2 } from "@hiver/hiver-ui-kit";
20
+ import { HiverProvider as lh, styled as T, Stack as V, Box as pe, Typography as ue, Skeleton as Yo, theme as ce, Icon as Jo, CircularProgress as io, palette as bn, Button as at, Tab as Vl, Chip as Is, Alert as gi, icons as Pt, Dialog as Od, Tooltip as Vt, IconButton as nr, brandIcons as ch, tooltipClasses as kr, Checkbox as Xo, TextField as Ld, Autocomplete as Di, Tabs as Nd, Grid as uh, Switch as Fd, DatePicker as c2, DateTextField as u2, InputAdornment as g2, Accordion as gh, AccordionSummary as dh, accordionSummaryClasses as Ch, AccordionDetails as Eh, Snackbar as Ih, Link as fh, ScopedCssBaseline as d2, DialogCloseButton as C2, MenuSearch as E2, InputBase as I2, MenuScrollable as f2, MenuItem as Bh, FormControl as B2, RadioGroup as h2, FormControlLabel as p2, Radio as Q2, Select as m2 } from "@hiver/hiver-ui-kit";
21
21
  var qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
22
22
  function Sc(e) {
23
23
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -298,18 +298,18 @@ function y2() {
298
298
  if (Kt && Be && typeof Kt.stack == "string") {
299
299
  for (var Ie = Kt.stack.split(`
300
300
  `), Ye = Be.stack.split(`
301
- `), je = Ie.length - 1, Je = Ye.length - 1; je >= 1 && Je >= 0 && Ie[je] !== Ye[Je]; )
301
+ `), Ue = Ie.length - 1, Je = Ye.length - 1; Ue >= 1 && Je >= 0 && Ie[Ue] !== Ye[Je]; )
302
302
  Je--;
303
- for (; je >= 1 && Je >= 0; je--, Je--)
304
- if (Ie[je] !== Ye[Je]) {
305
- if (je !== 1 || Je !== 1)
303
+ for (; Ue >= 1 && Je >= 0; Ue--, Je--)
304
+ if (Ie[Ue] !== Ye[Je]) {
305
+ if (Ue !== 1 || Je !== 1)
306
306
  do
307
- if (je--, Je--, Je < 0 || Ie[je] !== Ye[Je]) {
307
+ if (Ue--, Je--, Je < 0 || Ie[Ue] !== Ye[Je]) {
308
308
  var Xe = `
309
- ` + Ie[je].replace(" at new ", " at ");
309
+ ` + Ie[Ue].replace(" at new ", " at ");
310
310
  return w.displayName && Xe.includes("<anonymous>") && (Xe = Xe.replace("<anonymous>", w.displayName)), typeof w == "function" && se.set(w, Xe), Xe;
311
311
  }
312
- while (je >= 1 && Je >= 0);
312
+ while (Ue >= 1 && Je >= 0);
313
313
  break;
314
314
  }
315
315
  }
@@ -326,7 +326,7 @@ function y2() {
326
326
  var W = w.prototype;
327
327
  return !!(W && W.isReactComponent);
328
328
  }
329
- function at(w, W, re) {
329
+ function st(w, W, re) {
330
330
  if (w == null)
331
331
  return "";
332
332
  if (typeof w == "function")
@@ -344,11 +344,11 @@ function y2() {
344
344
  case s:
345
345
  return Ke(w.render);
346
346
  case g:
347
- return at(w.type, W, re);
347
+ return st(w.type, W, re);
348
348
  case E: {
349
349
  var Be = w, ge = Be._payload, xe = Be._init;
350
350
  try {
351
- return at(xe(ge), W, re);
351
+ return st(xe(ge), W, re);
352
352
  } catch {
353
353
  }
354
354
  }
@@ -358,7 +358,7 @@ function y2() {
358
358
  var Ht = Object.prototype.hasOwnProperty, xn = {}, en = B.ReactDebugCurrentFrame;
359
359
  function dn(w) {
360
360
  if (w) {
361
- var W = w._owner, re = at(w.type, w._source, W ? W.type : null);
361
+ var W = w._owner, re = st(w.type, w._source, W ? W.type : null);
362
362
  en.setExtraStackFrame(re);
363
363
  } else
364
364
  en.setExtraStackFrame(null);
@@ -375,8 +375,8 @@ function y2() {
375
375
  throw Ye.name = "Invariant Violation", Ye;
376
376
  }
377
377
  Ie = w[fe](W, fe, Be, re, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
378
- } catch (je) {
379
- Ie = je;
378
+ } catch (Ue) {
379
+ Ie = Ue;
380
380
  }
381
381
  Ie && !(Ie instanceof Error) && (dn(ge), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Be || "React class", re, fe, typeof Ie), dn(null)), Ie instanceof Error && !(Ie.message in xn) && (xn[Ie.message] = !0, dn(ge), h("Failed %s type: %s", re, Ie.message), dn(null));
382
382
  }
@@ -493,9 +493,9 @@ function y2() {
493
493
  for (xe in W)
494
494
  Ht.call(W, xe) && !ir.hasOwnProperty(xe) && (fe[xe] = W[xe]);
495
495
  if (w && w.defaultProps) {
496
- var je = w.defaultProps;
497
- for (xe in je)
498
- fe[xe] === void 0 && (fe[xe] = je[xe]);
496
+ var Ue = w.defaultProps;
497
+ for (xe in Ue)
498
+ fe[xe] === void 0 && (fe[xe] = Ue[xe]);
499
499
  }
500
500
  if (Ie || Ye) {
501
501
  var Je = typeof w == "function" ? w.displayName || w.name || "Unknown" : w;
@@ -507,7 +507,7 @@ function y2() {
507
507
  var Br = B.ReactCurrentOwner, Gt = B.ReactDebugCurrentFrame;
508
508
  function It(w) {
509
509
  if (w) {
510
- var W = w._owner, re = at(w.type, w._source, W ? W.type : null);
510
+ var W = w._owner, re = st(w.type, w._source, W ? W.type : null);
511
511
  Gt.setExtraStackFrame(re);
512
512
  } else
513
513
  Gt.setExtraStackFrame(null);
@@ -602,7 +602,7 @@ Check the top-level render call using <` + re + ">.");
602
602
  typeof W.getDefaultProps == "function" && !W.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
603
603
  }
604
604
  }
605
- function Mt(w) {
605
+ function jt(w) {
606
606
  {
607
607
  for (var W = Object.keys(w.props), re = 0; re < W.length; re++) {
608
608
  var Be = W[re];
@@ -623,8 +623,8 @@ Check the top-level render call using <` + re + ">.");
623
623
  (w === void 0 || typeof w == "object" && w !== null && Object.keys(w).length === 0) && (Ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
624
624
  var Ye = wn();
625
625
  Ye ? Ie += Ye : Ie += zt();
626
- var je;
627
- w === null ? je = "null" : Dn(w) ? je = "array" : w !== void 0 && w.$$typeof === t ? (je = "<" + (Y(w.type) || "Unknown") + " />", Ie = " Did you accidentally export a JSX literal instead of a component?") : je = typeof w, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", je, Ie);
626
+ var Ue;
627
+ w === null ? Ue = "null" : Dn(w) ? Ue = "array" : w !== void 0 && w.$$typeof === t ? (Ue = "<" + (Y(w.type) || "Unknown") + " />", Ie = " Did you accidentally export a JSX literal instead of a component?") : Ue = typeof w, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ue, Ie);
628
628
  }
629
629
  var Je = Tr(w, W, re, ge, xe);
630
630
  if (Je == null)
@@ -656,7 +656,7 @@ React keys must be passed directly to JSX without using spread:
656
656
  <%s key={someKey} {...props} />`, Fn, Bt, Jr, Bt), ar[Bt + Fn] = !0;
657
657
  }
658
658
  }
659
- return w === r ? Mt(Je) : an(Je), Je;
659
+ return w === r ? jt(Je) : an(Je), Je;
660
660
  }
661
661
  }
662
662
  function Nn(w, W, re) {
@@ -874,19 +874,19 @@ function Hl(e, t) {
874
874
  function Ps(e) {
875
875
  return (t, n) => Na(t, Hl(e, n));
876
876
  }
877
- function ut(e, t) {
877
+ function gt(e, t) {
878
878
  return Na(e, Hl("default", t));
879
879
  }
880
- ut.loading = (e, t) => Na(e, Hl("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), ut.promise = function(e, t, n) {
880
+ gt.loading = (e, t) => Na(e, Hl("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), gt.promise = function(e, t, n) {
881
881
  let r, { pending: A, error: o, success: i } = t;
882
- A && (r = No(A) ? ut.loading(A, n) : ut.loading(A.render, { ...n, ...A }));
882
+ A && (r = No(A) ? gt.loading(A, n) : gt.loading(A.render, { ...n, ...A }));
883
883
  const a = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, s = (c, g, E) => {
884
- if (g == null) return void ut.dismiss(r);
884
+ if (g == null) return void gt.dismiss(r);
885
885
  const f = { type: c, ...a, ...n, data: E }, I = No(g) ? { render: g } : g;
886
- return r ? ut.update(r, { ...f, ...I }) : ut(I.render, { ...f, ...I }), E;
886
+ return r ? gt.update(r, { ...f, ...I }) : gt(I.render, { ...f, ...I }), E;
887
887
  }, l = cr(e) ? e() : e;
888
888
  return l.then((c) => s("success", i, c)).catch((c) => s("error", o, c)), l;
889
- }, ut.success = Ps("success"), ut.info = Ps("info"), ut.error = Ps("error"), ut.warning = Ps("warning"), ut.warn = ut.warning, ut.dark = (e, t) => Na(e, Hl("default", { theme: "dark", ...t })), ut.dismiss = function(e) {
889
+ }, gt.success = Ps("success"), gt.info = Ps("info"), gt.error = Ps("error"), gt.warning = Ps("warning"), gt.warn = gt.warning, gt.dark = (e, t) => Na(e, Hl("default", { theme: "dark", ...t })), gt.dismiss = function(e) {
890
890
  (function(t) {
891
891
  var n;
892
892
  if (ph()) {
@@ -901,11 +901,11 @@ ut.loading = (e, t) => Na(e, Hl("default", { isLoading: !0, autoClose: !1, close
901
901
  }
902
902
  } else Ja = Ja.filter((r) => t != null && r.options.toastId !== t);
903
903
  })(e);
904
- }, ut.clearWaitingQueue = function(e) {
904
+ }, gt.clearWaitingQueue = function(e) {
905
905
  e === void 0 && (e = {}), Wn.forEach((t) => {
906
906
  !t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
907
907
  });
908
- }, ut.isActive = Qh, ut.update = function(e, t) {
908
+ }, gt.isActive = Qh, gt.update = function(e, t) {
909
909
  t === void 0 && (t = {});
910
910
  const n = ((r, A) => {
911
911
  var o;
@@ -918,13 +918,13 @@ ut.loading = (e, t) => Na(e, Hl("default", { isLoading: !0, autoClose: !1, close
918
918
  const i = o.render || A;
919
919
  delete o.render, Na(i, o);
920
920
  }
921
- }, ut.done = (e) => {
922
- ut.update(e, { progress: 1 });
923
- }, ut.onChange = function(e) {
921
+ }, gt.done = (e) => {
922
+ gt.update(e, { progress: 1 });
923
+ }, gt.onChange = function(e) {
924
924
  return Bg.add(e), () => {
925
925
  Bg.delete(e);
926
926
  };
927
- }, ut.play = (e) => QE(!0, e), ut.pause = (e) => QE(!1, e);
927
+ }, gt.play = (e) => QE(!0, e), gt.pause = (e) => QE(!1, e);
928
928
  const O2 = typeof window < "u" ? yc : be, ks = (e) => {
929
929
  let { theme: t, type: n, isLoading: r, ...A } = e;
930
930
  return Ce.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...A });
@@ -966,7 +966,7 @@ function bh(e) {
966
966
  return cr(l) ? l({ position: d, rtl: g, defaultClassName: C }) : $A(C, al(l));
967
967
  }
968
968
  function I() {
969
- n && (A(!0), ut.play());
969
+ n && (A(!0), gt.play());
970
970
  }
971
971
  return O2(() => {
972
972
  if (n) {
@@ -981,7 +981,7 @@ function bh(e) {
981
981
  });
982
982
  }
983
983
  }, [r, s, n]), Ce.createElement("div", { ref: o, className: "Toastify", id: E, onMouseEnter: () => {
984
- n && (A(!1), ut.pause());
984
+ n && (A(!1), gt.pause());
985
985
  }, onMouseLeave: I }, i((d, C) => {
986
986
  const B = C.length ? { ...c } : { ...c, pointerEvents: "none" };
987
987
  return Ce.createElement("div", { className: f(d), style: B, key: `container-${d}` }, C.map((h) => {
@@ -7236,7 +7236,7 @@ const _r = {
7236
7236
  },
7237
7237
  userPermissions: [],
7238
7238
  metaData: void 0
7239
- }, hn = OA(Nw), gt = {
7239
+ }, hn = OA(Nw), dt = {
7240
7240
  BASEPATH: "/",
7241
7241
  CONNECTOR_SETTINGS: "connector/settings",
7242
7242
  DASHBOARD: "dashboard",
@@ -7244,15 +7244,15 @@ const _r = {
7244
7244
  CONNECTOR_CONFIG: "connector",
7245
7245
  API_VIEW: "connector/apiView",
7246
7246
  AUTH_SUCCESS: "authSuccess"
7247
- }, Ng = "Custom Connectors", $d = { id: "connectors_view", value: "Connectors", route: gt.DASHBOARD }, Up = { id: "agent_view", value: "Agent view", route: gt.AGENT }, Fw = [$d, Up], iI = {
7247
+ }, Ng = "Custom Connectors", $d = { id: "connectors_view", value: "Connectors", route: dt.DASHBOARD }, Up = { id: "agent_view", value: "Agent view", route: dt.AGENT }, Fw = [$d, Up], iI = {
7248
7248
  [$d.value]: [
7249
- gt.BASEPATH + gt.DASHBOARD,
7250
- gt.BASEPATH + gt.CONNECTOR_CONFIG,
7251
- gt.BASEPATH + gt.CONNECTOR_SETTINGS,
7252
- gt.BASEPATH,
7253
- gt.BASEPATH + gt.API_VIEW
7249
+ dt.BASEPATH + dt.DASHBOARD,
7250
+ dt.BASEPATH + dt.CONNECTOR_CONFIG,
7251
+ dt.BASEPATH + dt.CONNECTOR_SETTINGS,
7252
+ dt.BASEPATH,
7253
+ dt.BASEPATH + dt.API_VIEW
7254
7254
  ],
7255
- [Up.value]: [gt.AGENT]
7255
+ [Up.value]: [dt.AGENT]
7256
7256
  }, Pw = ({
7257
7257
  children: e,
7258
7258
  baseUrls: t,
@@ -7441,9 +7441,9 @@ function Vp(e, t) {
7441
7441
  var wo, HA, Bi, XB, Gw = (XB = class extends Hi {
7442
7442
  constructor() {
7443
7443
  super();
7444
- Ue(this, wo);
7445
- Ue(this, HA);
7446
- Ue(this, Bi);
7444
+ Ge(this, wo);
7445
+ Ge(this, HA);
7446
+ Ge(this, Bi);
7447
7447
  Re(this, Bi, (t) => {
7448
7448
  if (!Uo && window.addEventListener) {
7449
7449
  const n = () => t();
@@ -7482,9 +7482,9 @@ var wo, HA, Bi, XB, Gw = (XB = class extends Hi {
7482
7482
  }, wo = new WeakMap(), HA = new WeakMap(), Bi = new WeakMap(), XB), tC = new Gw(), hi, WA, pi, KB, Vw = (KB = class extends Hi {
7483
7483
  constructor() {
7484
7484
  super();
7485
- Ue(this, hi, !0);
7486
- Ue(this, WA);
7487
- Ue(this, pi);
7485
+ Ge(this, hi, !0);
7486
+ Ge(this, WA);
7487
+ Ge(this, pi);
7488
7488
  Re(this, pi, (t) => {
7489
7489
  if (!Uo && window.addEventListener) {
7490
7490
  const n = () => t(!0), r = () => t(!1);
@@ -7668,7 +7668,7 @@ function Ww() {
7668
7668
  }
7669
7669
  var In = Ww(), To, qB, Yp = (qB = class {
7670
7670
  constructor() {
7671
- Ue(this, To);
7671
+ Ge(this, To);
7672
7672
  }
7673
7673
  destroy() {
7674
7674
  this.clearGcTimeout();
@@ -7690,14 +7690,14 @@ var In = Ww(), To, qB, Yp = (qB = class {
7690
7690
  }, To = new WeakMap(), qB), Qi, mi, mr, So, Mn, gs, _o, Dr, vA, ZB, zw = (ZB = class extends Yp {
7691
7691
  constructor(t) {
7692
7692
  super();
7693
- Ue(this, Dr);
7694
- Ue(this, Qi);
7695
- Ue(this, mi);
7696
- Ue(this, mr);
7697
- Ue(this, So);
7698
- Ue(this, Mn);
7699
- Ue(this, gs);
7700
- Ue(this, _o);
7693
+ Ge(this, Dr);
7694
+ Ge(this, Qi);
7695
+ Ge(this, mi);
7696
+ Ge(this, mr);
7697
+ Ge(this, So);
7698
+ Ge(this, Mn);
7699
+ Ge(this, gs);
7700
+ Ge(this, _o);
7701
7701
  Re(this, _o, !1), Re(this, gs, t.defaultOptions), this.setOptions(t.options), this.observers = [], Re(this, So, t.client), Re(this, mr, L(this, So).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, Re(this, Qi, Yw(this.options)), this.state = t.state ?? L(this, Qi), this.scheduleGc();
7702
7702
  }
7703
7703
  get meta() {
@@ -7975,7 +7975,7 @@ function Yw(e) {
7975
7975
  var qr, $B, Jw = ($B = class extends Hi {
7976
7976
  constructor(t = {}) {
7977
7977
  super();
7978
- Ue(this, qr);
7978
+ Ge(this, qr);
7979
7979
  this.config = t, Re(this, qr, /* @__PURE__ */ new Map());
7980
7980
  }
7981
7981
  build(t, n, r) {
@@ -8047,10 +8047,10 @@ var qr, $B, Jw = ($B = class extends Hi {
8047
8047
  }, qr = new WeakMap(), $B), Zr, Un, Do, $r, UA, eh, Xw = (eh = class extends Yp {
8048
8048
  constructor(t) {
8049
8049
  super();
8050
- Ue(this, $r);
8051
- Ue(this, Zr);
8052
- Ue(this, Un);
8053
- Ue(this, Do);
8050
+ Ge(this, $r);
8051
+ Ge(this, Zr);
8052
+ Ge(this, Un);
8053
+ Ge(this, Do);
8054
8054
  this.mutationId = t.mutationId, Re(this, Un, t.mutationCache), Re(this, Zr, []), this.state = t.state || Xp(), this.setOptions(t.options), this.scheduleGc();
8055
8055
  }
8056
8056
  setOptions(t) {
@@ -8244,9 +8244,9 @@ function Xp() {
8244
8244
  var wA, Rr, ds, th, Kw = (th = class extends Hi {
8245
8245
  constructor(t = {}) {
8246
8246
  super();
8247
- Ue(this, wA);
8248
- Ue(this, Rr);
8249
- Ue(this, ds);
8247
+ Ge(this, wA);
8248
+ Ge(this, Rr);
8249
+ Ge(this, ds);
8250
8250
  this.config = t, Re(this, wA, /* @__PURE__ */ new Set()), Re(this, Rr, /* @__PURE__ */ new Map()), Re(this, ds, 0);
8251
8251
  }
8252
8252
  build(t, n, r) {
@@ -8424,14 +8424,14 @@ function qw(e, { pages: t, pageParams: n }) {
8424
8424
  }
8425
8425
  var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8426
8426
  constructor(e = {}) {
8427
- Ue(this, qt);
8428
- Ue(this, zA);
8429
- Ue(this, YA);
8430
- Ue(this, vi);
8431
- Ue(this, bi);
8432
- Ue(this, JA);
8433
- Ue(this, yi);
8434
- Ue(this, xi);
8427
+ Ge(this, qt);
8428
+ Ge(this, zA);
8429
+ Ge(this, YA);
8430
+ Ge(this, vi);
8431
+ Ge(this, bi);
8432
+ Ge(this, JA);
8433
+ Ge(this, yi);
8434
+ Ge(this, xi);
8435
8435
  Re(this, qt, e.queryCache || new Jw()), Re(this, zA, e.mutationCache || new Kw()), Re(this, YA, e.defaultOptions || {}), Re(this, vi, /* @__PURE__ */ new Map()), Re(this, bi, /* @__PURE__ */ new Map()), Re(this, JA, 0);
8436
8436
  }
8437
8437
  mount() {
@@ -8621,27 +8621,27 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8621
8621
  clear() {
8622
8622
  L(this, qt).clear(), L(this, zA).clear();
8623
8623
  }
8624
- }, qt = new WeakMap(), zA = new WeakMap(), YA = new WeakMap(), vi = new WeakMap(), bi = new WeakMap(), JA = new WeakMap(), yi = new WeakMap(), xi = new WeakMap(), nh), Xn, st, Cs, Gn, Ro, wi, XA, eA, Es, Ti, Si, Oo, Lo, KA, _i, St, Sa, Ug, Gg, Vg, Hg, Wg, zg, Yg, qp, rh, Zw = (rh = class extends Hi {
8624
+ }, qt = new WeakMap(), zA = new WeakMap(), YA = new WeakMap(), vi = new WeakMap(), bi = new WeakMap(), JA = new WeakMap(), yi = new WeakMap(), xi = new WeakMap(), nh), Xn, lt, Cs, Gn, Ro, wi, XA, eA, Es, Ti, Si, Oo, Lo, KA, _i, St, Sa, Ug, Gg, Vg, Hg, Wg, zg, Yg, qp, rh, Zw = (rh = class extends Hi {
8625
8625
  constructor(t, n) {
8626
8626
  super();
8627
- Ue(this, St);
8628
- Ue(this, Xn);
8629
- Ue(this, st);
8630
- Ue(this, Cs);
8631
- Ue(this, Gn);
8632
- Ue(this, Ro);
8633
- Ue(this, wi);
8634
- Ue(this, XA);
8635
- Ue(this, eA);
8636
- Ue(this, Es);
8637
- Ue(this, Ti);
8627
+ Ge(this, St);
8628
+ Ge(this, Xn);
8629
+ Ge(this, lt);
8630
+ Ge(this, Cs);
8631
+ Ge(this, Gn);
8632
+ Ge(this, Ro);
8633
+ Ge(this, wi);
8634
+ Ge(this, XA);
8635
+ Ge(this, eA);
8636
+ Ge(this, Es);
8637
+ Ge(this, Ti);
8638
8638
  // This property keeps track of the last query with defined data.
8639
8639
  // It will be used to pass the previous data and query to the placeholder function between renders.
8640
- Ue(this, Si);
8641
- Ue(this, Oo);
8642
- Ue(this, Lo);
8643
- Ue(this, KA);
8644
- Ue(this, _i, /* @__PURE__ */ new Set());
8640
+ Ge(this, Si);
8641
+ Ge(this, Oo);
8642
+ Ge(this, Lo);
8643
+ Ge(this, KA);
8644
+ Ge(this, _i, /* @__PURE__ */ new Set());
8645
8645
  this.options = n, Re(this, Xn, t), Re(this, eA, null), Re(this, XA, jg()), this.options.experimental_prefetchInRender || L(this, XA).reject(
8646
8646
  new Error("experimental_prefetchInRender feature flag is not enabled")
8647
8647
  ), this.bindMethods(), this.setOptions(n);
@@ -8650,52 +8650,52 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8650
8650
  this.refetch = this.refetch.bind(this);
8651
8651
  }
8652
8652
  onSubscribe() {
8653
- this.listeners.size === 1 && (L(this, st).addObserver(this), dI(L(this, st), this.options) ? nt(this, St, Sa).call(this) : this.updateResult(), nt(this, St, Hg).call(this));
8653
+ this.listeners.size === 1 && (L(this, lt).addObserver(this), dI(L(this, lt), this.options) ? nt(this, St, Sa).call(this) : this.updateResult(), nt(this, St, Hg).call(this));
8654
8654
  }
8655
8655
  onUnsubscribe() {
8656
8656
  this.hasListeners() || this.destroy();
8657
8657
  }
8658
8658
  shouldFetchOnReconnect() {
8659
8659
  return Jg(
8660
- L(this, st),
8660
+ L(this, lt),
8661
8661
  this.options,
8662
8662
  this.options.refetchOnReconnect
8663
8663
  );
8664
8664
  }
8665
8665
  shouldFetchOnWindowFocus() {
8666
8666
  return Jg(
8667
- L(this, st),
8667
+ L(this, lt),
8668
8668
  this.options,
8669
8669
  this.options.refetchOnWindowFocus
8670
8670
  );
8671
8671
  }
8672
8672
  destroy() {
8673
- this.listeners = /* @__PURE__ */ new Set(), nt(this, St, Wg).call(this), nt(this, St, zg).call(this), L(this, st).removeObserver(this);
8673
+ this.listeners = /* @__PURE__ */ new Set(), nt(this, St, Wg).call(this), nt(this, St, zg).call(this), L(this, lt).removeObserver(this);
8674
8674
  }
8675
8675
  setOptions(t, n) {
8676
- const r = this.options, A = L(this, st);
8677
- if (this.options = L(this, Xn).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Lr(this.options.enabled, L(this, st)) != "boolean")
8676
+ const r = this.options, A = L(this, lt);
8677
+ if (this.options = L(this, Xn).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Lr(this.options.enabled, L(this, lt)) != "boolean")
8678
8678
  throw new Error(
8679
8679
  "Expected enabled to be a boolean or a callback that returns a boolean"
8680
8680
  );
8681
- nt(this, St, Yg).call(this), L(this, st).setOptions(this.options), r._defaulted && !Zl(this.options, r) && L(this, Xn).getQueryCache().notify({
8681
+ nt(this, St, Yg).call(this), L(this, lt).setOptions(this.options), r._defaulted && !Zl(this.options, r) && L(this, Xn).getQueryCache().notify({
8682
8682
  type: "observerOptionsUpdated",
8683
- query: L(this, st),
8683
+ query: L(this, lt),
8684
8684
  observer: this
8685
8685
  });
8686
8686
  const o = this.hasListeners();
8687
8687
  o && CI(
8688
- L(this, st),
8688
+ L(this, lt),
8689
8689
  A,
8690
8690
  this.options,
8691
8691
  r
8692
- ) && nt(this, St, Sa).call(this), this.updateResult(n), o && (L(this, st) !== A || Lr(this.options.enabled, L(this, st)) !== Lr(r.enabled, L(this, st)) || di(this.options.staleTime, L(this, st)) !== di(r.staleTime, L(this, st))) && nt(this, St, Ug).call(this);
8692
+ ) && nt(this, St, Sa).call(this), this.updateResult(n), o && (L(this, lt) !== A || Lr(this.options.enabled, L(this, lt)) !== Lr(r.enabled, L(this, lt)) || di(this.options.staleTime, L(this, lt)) !== di(r.staleTime, L(this, lt))) && nt(this, St, Ug).call(this);
8693
8693
  const i = nt(this, St, Gg).call(this);
8694
- o && (L(this, st) !== A || Lr(this.options.enabled, L(this, st)) !== Lr(r.enabled, L(this, st)) || i !== L(this, KA)) && nt(this, St, Vg).call(this, i);
8694
+ o && (L(this, lt) !== A || Lr(this.options.enabled, L(this, lt)) !== Lr(r.enabled, L(this, lt)) || i !== L(this, KA)) && nt(this, St, Vg).call(this, i);
8695
8695
  }
8696
8696
  getOptimisticResult(t) {
8697
8697
  const n = L(this, Xn).getQueryCache().build(L(this, Xn), t), r = this.createResult(n, t);
8698
- return e3(this, r) && (Re(this, Gn, r), Re(this, wi, this.options), Re(this, Ro, L(this, st).state)), r;
8698
+ return e3(this, r) && (Re(this, Gn, r), Re(this, wi, this.options), Re(this, Ro, L(this, lt).state)), r;
8699
8699
  }
8700
8700
  getCurrentResult() {
8701
8701
  return L(this, Gn);
@@ -8714,7 +8714,7 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8714
8714
  L(this, _i).add(t);
8715
8715
  }
8716
8716
  getCurrentQuery() {
8717
- return L(this, st);
8717
+ return L(this, lt);
8718
8718
  }
8719
8719
  refetch({ ...t } = {}) {
8720
8720
  return this.fetch({
@@ -8733,7 +8733,7 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8733
8733
  }
8734
8734
  createResult(t, n) {
8735
8735
  var m;
8736
- const r = L(this, st), A = this.options, o = L(this, Gn), i = L(this, Ro), a = L(this, wi), l = t !== r ? t.state : L(this, Cs), { state: c } = t;
8736
+ const r = L(this, lt), A = this.options, o = L(this, Gn), i = L(this, Ro), a = L(this, wi), l = t !== r ? t.state : L(this, Cs), { state: c } = t;
8737
8737
  let g = { ...c }, E = !1, f;
8738
8738
  if (n._optimisticResults) {
8739
8739
  const x = this.hasListeners(), M = !x && dI(t, n), F = x && CI(t, r, n, A);
@@ -8823,8 +8823,8 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8823
8823
  return y;
8824
8824
  }
8825
8825
  updateResult(t) {
8826
- const n = L(this, Gn), r = this.createResult(L(this, st), this.options);
8827
- if (Re(this, Ro, L(this, st).state), Re(this, wi, this.options), L(this, Ro).data !== void 0 && Re(this, Si, L(this, st)), Zl(r, n))
8826
+ const n = L(this, Gn), r = this.createResult(L(this, lt), this.options);
8827
+ if (Re(this, Ro, L(this, lt).state), Re(this, wi, this.options), L(this, Ro).data !== void 0 && Re(this, Si, L(this, lt)), Zl(r, n))
8828
8828
  return;
8829
8829
  Re(this, Gn, r);
8830
8830
  const A = {}, o = () => {
@@ -8846,9 +8846,9 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8846
8846
  onQueryUpdate() {
8847
8847
  this.updateResult(), this.hasListeners() && nt(this, St, Hg).call(this);
8848
8848
  }
8849
- }, Xn = new WeakMap(), st = new WeakMap(), Cs = new WeakMap(), Gn = new WeakMap(), Ro = new WeakMap(), wi = new WeakMap(), XA = new WeakMap(), eA = new WeakMap(), Es = new WeakMap(), Ti = new WeakMap(), Si = new WeakMap(), Oo = new WeakMap(), Lo = new WeakMap(), KA = new WeakMap(), _i = new WeakMap(), St = new WeakSet(), Sa = function(t) {
8849
+ }, Xn = new WeakMap(), lt = new WeakMap(), Cs = new WeakMap(), Gn = new WeakMap(), Ro = new WeakMap(), wi = new WeakMap(), XA = new WeakMap(), eA = new WeakMap(), Es = new WeakMap(), Ti = new WeakMap(), Si = new WeakMap(), Oo = new WeakMap(), Lo = new WeakMap(), KA = new WeakMap(), _i = new WeakMap(), St = new WeakSet(), Sa = function(t) {
8850
8850
  nt(this, St, Yg).call(this);
8851
- let n = L(this, st).fetch(
8851
+ let n = L(this, lt).fetch(
8852
8852
  this.options,
8853
8853
  t
8854
8854
  );
@@ -8857,7 +8857,7 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8857
8857
  nt(this, St, Wg).call(this);
8858
8858
  const t = di(
8859
8859
  this.options.staleTime,
8860
- L(this, st)
8860
+ L(this, lt)
8861
8861
  );
8862
8862
  if (Uo || L(this, Gn).isStale || !Fg(t))
8863
8863
  return;
@@ -8866,9 +8866,9 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8866
8866
  L(this, Gn).isStale || this.updateResult();
8867
8867
  }, r));
8868
8868
  }, Gg = function() {
8869
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(L(this, st)) : this.options.refetchInterval) ?? !1;
8869
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(L(this, lt)) : this.options.refetchInterval) ?? !1;
8870
8870
  }, Vg = function(t) {
8871
- nt(this, St, zg).call(this), Re(this, KA, t), !(Uo || Lr(this.options.enabled, L(this, st)) === !1 || !Fg(L(this, KA)) || L(this, KA) === 0) && Re(this, Lo, setInterval(() => {
8871
+ nt(this, St, zg).call(this), Re(this, KA, t), !(Uo || Lr(this.options.enabled, L(this, lt)) === !1 || !Fg(L(this, KA)) || L(this, KA) === 0) && Re(this, Lo, setInterval(() => {
8872
8872
  (this.options.refetchIntervalInBackground || tC.isFocused()) && nt(this, St, Sa).call(this);
8873
8873
  }, L(this, KA)));
8874
8874
  }, Hg = function() {
@@ -8879,16 +8879,16 @@ var qt, zA, YA, vi, bi, JA, yi, xi, nh, Kp = (nh = class {
8879
8879
  L(this, Lo) && (clearInterval(L(this, Lo)), Re(this, Lo, void 0));
8880
8880
  }, Yg = function() {
8881
8881
  const t = L(this, Xn).getQueryCache().build(L(this, Xn), this.options);
8882
- if (t === L(this, st))
8882
+ if (t === L(this, lt))
8883
8883
  return;
8884
- const n = L(this, st);
8885
- Re(this, st, t), Re(this, Cs, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
8884
+ const n = L(this, lt);
8885
+ Re(this, lt, t), Re(this, Cs, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
8886
8886
  }, qp = function(t) {
8887
8887
  In.batch(() => {
8888
8888
  t.listeners && this.listeners.forEach((n) => {
8889
8889
  n(L(this, Gn));
8890
8890
  }), L(this, Xn).getQueryCache().notify({
8891
- query: L(this, st),
8891
+ query: L(this, lt),
8892
8892
  type: "observerResultsUpdated"
8893
8893
  });
8894
8894
  });
@@ -8918,11 +8918,11 @@ function e3(e, t) {
8918
8918
  var qA, ZA, Kn, TA, _A, Ql, Xg, Ah, t3 = (Ah = class extends Hi {
8919
8919
  constructor(t, n) {
8920
8920
  super();
8921
- Ue(this, _A);
8922
- Ue(this, qA);
8923
- Ue(this, ZA);
8924
- Ue(this, Kn);
8925
- Ue(this, TA);
8921
+ Ge(this, _A);
8922
+ Ge(this, qA);
8923
+ Ge(this, ZA);
8924
+ Ge(this, Kn);
8925
+ Ge(this, TA);
8926
8926
  Re(this, qA, t), this.setOptions(n), this.bindMethods(), nt(this, _A, Ql).call(this);
8927
8927
  }
8928
8928
  bindMethods() {
@@ -9177,7 +9177,7 @@ function I3(e) {
9177
9177
  }
9178
9178
  return B3(t, n, null, e);
9179
9179
  }
9180
- function Ge(e, t) {
9180
+ function Ve(e, t) {
9181
9181
  if (e === !1 || e === null || typeof e > "u")
9182
9182
  throw new Error(t);
9183
9183
  }
@@ -9286,7 +9286,7 @@ function B3(e, t, n, r) {
9286
9286
  }
9287
9287
  function I(C) {
9288
9288
  let B = A.location.origin !== "null" ? A.location.origin : A.location.href, h = typeof C == "string" ? C : ro(C);
9289
- return h = h.replace(/ $/, "%20"), Ge(B, "No window.location.(origin|href) available to create URL for href: " + h), new URL(h, B);
9289
+ return h = h.replace(/ $/, "%20"), Ve(B, "No window.location.(origin|href) available to create URL for href: " + h), new URL(h, B);
9290
9290
  }
9291
9291
  let d = {
9292
9292
  get action() {
@@ -9333,7 +9333,7 @@ function p3(e) {
9333
9333
  function ts(e, t, n, r) {
9334
9334
  return n === void 0 && (n = []), r === void 0 && (r = {}), e.map((A, o) => {
9335
9335
  let i = [...n, String(o)], a = typeof A.id == "string" ? A.id : i.join("-");
9336
- if (Ge(A.index !== !0 || !A.children, "Cannot specify children on an index route"), Ge(!r[a], 'Found a route id collision on id "' + a + `". Route id's must be globally unique within Data Router usages`), p3(A)) {
9336
+ if (Ve(A.index !== !0 || !A.children, "Cannot specify children on an index route"), Ve(!r[a], 'Found a route id collision on id "' + a + `". Route id's must be globally unique within Data Router usages`), p3(A)) {
9337
9337
  let s = Yt({}, A, t(A), {
9338
9338
  id: a
9339
9339
  });
@@ -9386,9 +9386,9 @@ function nQ(e, t, n, r) {
9386
9386
  childrenIndex: i,
9387
9387
  route: o
9388
9388
  };
9389
- s.relativePath.startsWith("/") && (Ge(s.relativePath.startsWith(r), 'Absolute route path "' + s.relativePath + '" nested under path ' + ('"' + r + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), s.relativePath = s.relativePath.slice(r.length));
9389
+ s.relativePath.startsWith("/") && (Ve(s.relativePath.startsWith(r), 'Absolute route path "' + s.relativePath + '" nested under path ' + ('"' + r + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), s.relativePath = s.relativePath.slice(r.length));
9390
9390
  let l = cA([r, s.relativePath]), c = n.concat(s);
9391
- o.children && o.children.length > 0 && (Ge(
9391
+ o.children && o.children.length > 0 && (Ve(
9392
9392
  // Our types know better, but runtime JS may not!
9393
9393
  // @ts-expect-error
9394
9394
  o.index !== !0,
@@ -9548,7 +9548,7 @@ function rC(e, t) {
9548
9548
  function AC(e, t, n, r) {
9549
9549
  r === void 0 && (r = !1);
9550
9550
  let A;
9551
- typeof e == "string" ? A = so(e) : (A = Yt({}, e), Ge(!A.pathname || !A.pathname.includes("?"), Pu("?", "pathname", "search", A)), Ge(!A.pathname || !A.pathname.includes("#"), Pu("#", "pathname", "hash", A)), Ge(!A.search || !A.search.includes("#"), Pu("#", "search", "hash", A)));
9551
+ typeof e == "string" ? A = so(e) : (A = Yt({}, e), Ve(!A.pathname || !A.pathname.includes("?"), Pu("?", "pathname", "search", A)), Ve(!A.pathname || !A.pathname.includes("#"), Pu("#", "pathname", "hash", A)), Ve(!A.search || !A.search.includes("#"), Pu("#", "search", "hash", A)));
9552
9552
  let o = e === "" || A.pathname === "", i = o ? "/" : A.pathname, a;
9553
9553
  if (i == null)
9554
9554
  a = n;
@@ -9602,7 +9602,7 @@ const oQ = ["post", "put", "patch", "delete"], M3 = new Set(oQ), j3 = ["get", ..
9602
9602
  }), iQ = "remix-router-transitions";
9603
9603
  function z3(e) {
9604
9604
  const t = e.window ? e.window : typeof window < "u" ? window : void 0, n = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", r = !n;
9605
- Ge(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
9605
+ Ve(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
9606
9606
  let A;
9607
9607
  if (e.mapRouteProperties)
9608
9608
  A = e.mapRouteProperties;
@@ -9736,20 +9736,20 @@ function z3(e) {
9736
9736
  unstable_flushSync: k.flushSync === !0
9737
9737
  })), g.v7_fetcherPersist && (X.forEach((W) => m.fetchers.delete(W)), w.forEach((W) => Yr(W)));
9738
9738
  }
9739
- function at(R, k, X) {
9739
+ function st(R, k, X) {
9740
9740
  var w, W;
9741
9741
  let {
9742
9742
  flushSync: re
9743
9743
  } = X === void 0 ? {} : X, Be = m.actionData != null && m.navigation.formMethod != null && Or(m.navigation.formMethod) && m.navigation.state === "loading" && ((w = R.state) == null ? void 0 : w._isRedirect) !== !0, ge;
9744
9744
  k.actionData ? Object.keys(k.actionData).length > 0 ? ge = k.actionData : ge = null : Be ? ge = m.actionData : ge = null;
9745
9745
  let xe = k.loaderData ? yI(m.loaderData, k.loaderData, k.matches || [], k.errors) : m.loaderData, fe = m.blockers;
9746
- fe.size > 0 && (fe = new Map(fe), fe.forEach((je, Je) => fe.set(Je, Ea)));
9746
+ fe.size > 0 && (fe = new Map(fe), fe.forEach((Ue, Je) => fe.set(Je, Ea)));
9747
9747
  let Ie = M === !0 || m.navigation.formMethod != null && Or(m.navigation.formMethod) && ((W = R.state) == null ? void 0 : W._isRedirect) !== !0;
9748
9748
  a && (i = a, a = void 0), ie || x === ln.Pop || (x === ln.Push ? e.history.push(R, R.state) : x === ln.Replace && e.history.replace(R, R.state));
9749
9749
  let Ye;
9750
9750
  if (x === ln.Pop) {
9751
- let je = Y.get(m.location.pathname);
9752
- je && je.has(R.pathname) ? Ye = {
9751
+ let Ue = Y.get(m.location.pathname);
9752
+ Ue && Ue.has(R.pathname) ? Ye = {
9753
9753
  currentLocation: m.location,
9754
9754
  nextLocation: R
9755
9755
  } : Y.has(R.pathname) && (Ye = {
@@ -9757,8 +9757,8 @@ function z3(e) {
9757
9757
  nextLocation: m.location
9758
9758
  });
9759
9759
  } else if (z) {
9760
- let je = Y.get(m.location.pathname);
9761
- je ? je.add(R.pathname) : (je = /* @__PURE__ */ new Set([R.pathname]), Y.set(m.location.pathname, je)), Ye = {
9760
+ let Ue = Y.get(m.location.pathname);
9761
+ Ue ? Ue.add(R.pathname) : (Ue = /* @__PURE__ */ new Set([R.pathname]), Y.set(m.location.pathname, Ue)), Ye = {
9762
9762
  currentLocation: m.location,
9763
9763
  nextLocation: R
9764
9764
  };
@@ -9792,17 +9792,17 @@ function z3(e) {
9792
9792
  ge = Yt({}, ge, e.history.encodeLocation(ge));
9793
9793
  let xe = k && k.replace != null ? k.replace : void 0, fe = ln.Push;
9794
9794
  xe === !0 ? fe = ln.Replace : xe === !1 || W != null && Or(W.formMethod) && W.formAction === m.location.pathname + m.location.search && (fe = ln.Replace);
9795
- let Ie = k && "preventScrollReset" in k ? k.preventScrollReset === !0 : void 0, Ye = (k && k.unstable_flushSync) === !0, je = Dt({
9795
+ let Ie = k && "preventScrollReset" in k ? k.preventScrollReset === !0 : void 0, Ye = (k && k.unstable_flushSync) === !0, Ue = Dt({
9796
9796
  currentLocation: Be,
9797
9797
  nextLocation: ge,
9798
9798
  historyAction: fe
9799
9799
  });
9800
- if (je) {
9801
- It(je, {
9800
+ if (Ue) {
9801
+ It(Ue, {
9802
9802
  state: "blocked",
9803
9803
  location: ge,
9804
9804
  proceed() {
9805
- It(je, {
9805
+ It(Ue, {
9806
9806
  state: "proceeding",
9807
9807
  proceed: void 0,
9808
9808
  reset: void 0,
@@ -9811,7 +9811,7 @@ function z3(e) {
9811
9811
  },
9812
9812
  reset() {
9813
9813
  let Je = new Map(m.blockers);
9814
- Je.set(je, Ea), Fe({
9814
+ Je.set(Ue, Ea), Fe({
9815
9815
  blockers: Je
9816
9816
  });
9817
9817
  }
@@ -9855,7 +9855,7 @@ function z3(e) {
9855
9855
  notFoundMatches: Ot,
9856
9856
  route: Bt
9857
9857
  } = Wt(k.pathname);
9858
- at(k, {
9858
+ st(k, {
9859
9859
  matches: Ot,
9860
9860
  loaderData: {},
9861
9861
  errors: {
@@ -9867,7 +9867,7 @@ function z3(e) {
9867
9867
  return;
9868
9868
  }
9869
9869
  if (m.initialized && !Ee && AT(m.location, k) && !(X && X.submission && Or(X.submission.formMethod))) {
9870
- at(k, {
9870
+ st(k, {
9871
9871
  matches: re
9872
9872
  }, {
9873
9873
  flushSync: Be
@@ -9891,7 +9891,7 @@ function z3(e) {
9891
9891
  if (Xe.pendingActionResult) {
9892
9892
  let [Ot, Bt] = Xe.pendingActionResult;
9893
9893
  if (lr(Bt) && Wc(Bt.error) && Bt.error.status === 404) {
9894
- F = null, at(k, {
9894
+ F = null, st(k, {
9895
9895
  matches: Xe.matches,
9896
9896
  loaderData: {},
9897
9897
  errors: {
@@ -9906,13 +9906,13 @@ function z3(e) {
9906
9906
  let {
9907
9907
  shortCircuited: Ie,
9908
9908
  matches: Ye,
9909
- loaderData: je,
9909
+ loaderData: Ue,
9910
9910
  errors: Je
9911
9911
  } = await Rt(xe, k, re, ge.active, W, X && X.submission, X && X.fetcherSubmission, X && X.replace, X && X.initialHydration === !0, Be, fe);
9912
- Ie || (F = null, at(k, Yt({
9912
+ Ie || (F = null, st(k, Yt({
9913
9913
  matches: Ye || re
9914
9914
  }, xI(fe), {
9915
- loaderData: je,
9915
+ loaderData: Ue,
9916
9916
  errors: Je
9917
9917
  })));
9918
9918
  }
@@ -9924,7 +9924,7 @@ function z3(e) {
9924
9924
  }, {
9925
9925
  flushSync: re.flushSync === !0
9926
9926
  }), W) {
9927
- let fe = await Mt(w, k.pathname, R.signal);
9927
+ let fe = await jt(w, k.pathname, R.signal);
9928
9928
  if (fe.type === "aborted")
9929
9929
  return {
9930
9930
  shortCircuited: !0
@@ -9947,11 +9947,11 @@ function z3(e) {
9947
9947
  let {
9948
9948
  notFoundMatches: Ie,
9949
9949
  error: Ye,
9950
- route: je
9950
+ route: Ue
9951
9951
  } = Wt(k.pathname);
9952
9952
  return {
9953
9953
  matches: Ie,
9954
- pendingActionResult: [je.id, {
9954
+ pendingActionResult: [Ue.id, {
9955
9955
  type: Lt.error,
9956
9956
  error: Ye
9957
9957
  }]
@@ -9998,7 +9998,7 @@ function z3(e) {
9998
9998
  };
9999
9999
  }
10000
10000
  async function Rt(R, k, X, w, W, re, Be, ge, xe, fe, Ie) {
10001
- let Ye = W || Mu(k, re), je = re || Be || SI(Ye), Je = !ie && (!g.v7_partialHydration || !xe);
10001
+ let Ye = W || Mu(k, re), Ue = re || Be || SI(Ye), Je = !ie && (!g.v7_partialHydration || !xe);
10002
10002
  if (w) {
10003
10003
  if (Je) {
10004
10004
  let Z = or(Ie);
@@ -10010,7 +10010,7 @@ function z3(e) {
10010
10010
  flushSync: fe
10011
10011
  });
10012
10012
  }
10013
- let G = await Mt(X, k.pathname, R.signal);
10013
+ let G = await jt(X, k.pathname, R.signal);
10014
10014
  if (G.type === "aborted")
10015
10015
  return {
10016
10016
  shortCircuited: !0
@@ -10044,10 +10044,10 @@ function z3(e) {
10044
10044
  };
10045
10045
  }
10046
10046
  }
10047
- let Xe = a || i, [Ot, Bt] = pI(e.history, m, X, je, k, g.v7_partialHydration && xe === !0, g.v7_skipActionErrorRevalidation, Ee, Qe, Te, K, N, D, Xe, s, Ie);
10047
+ let Xe = a || i, [Ot, Bt] = pI(e.history, m, X, Ue, k, g.v7_partialHydration && xe === !0, g.v7_skipActionErrorRevalidation, Ee, Qe, Te, K, N, D, Xe, s, Ie);
10048
10048
  if (wn((G) => !(X && X.some((Z) => Z.route.id === G)) || Ot && Ot.some((Z) => Z.route.id === G)), j = ++U, Ot.length === 0 && Bt.length === 0) {
10049
10049
  let G = Oe();
10050
- return at(k, Yt({
10050
+ return st(k, Yt({
10051
10051
  matches: X,
10052
10052
  loaderData: {},
10053
10053
  // Commit pending error if we're short circuiting
@@ -10164,15 +10164,15 @@ function z3(e) {
10164
10164
  });
10165
10165
  return;
10166
10166
  }
10167
- let je = _a(ge, fe);
10167
+ let Ue = _a(ge, fe);
10168
10168
  if (M = (w && w.preventScrollReset) === !0, Ie && Or(Ie.formMethod)) {
10169
- NA(R, k, fe, je, ge, xe.active, W, Ie);
10169
+ NA(R, k, fe, Ue, ge, xe.active, W, Ie);
10170
10170
  return;
10171
10171
  }
10172
10172
  N.set(R, {
10173
10173
  routeId: k,
10174
10174
  path: fe
10175
- }), FA(R, k, fe, je, ge, xe.active, W, Ie);
10175
+ }), FA(R, k, fe, Ue, ge, xe.active, W, Ie);
10176
10176
  }
10177
10177
  async function NA(R, k, X, w, W, re, Be, ge) {
10178
10178
  Rn(), N.delete(R);
@@ -10197,7 +10197,7 @@ function z3(e) {
10197
10197
  });
10198
10198
  let Ie = new AbortController(), Ye = ti(e.history, X, Ie.signal, ge);
10199
10199
  if (re) {
10200
- let ae = await Mt(W, X, Ye.signal);
10200
+ let ae = await jt(W, X, Ye.signal);
10201
10201
  if (ae.type === "aborted")
10202
10202
  return;
10203
10203
  if (ae.type === "error") {
@@ -10221,7 +10221,7 @@ function z3(e) {
10221
10221
  }
10222
10222
  }
10223
10223
  oe.set(R, Ie);
10224
- let je = U, Xe = (await An("action", m, Ye, [w], W, R))[w.route.id];
10224
+ let Ue = U, Xe = (await An("action", m, Ye, [w], W, R))[w.route.id];
10225
10225
  if (Ye.signal.aborted) {
10226
10226
  oe.get(R) === Ie && oe.delete(R);
10227
10227
  return;
@@ -10233,7 +10233,7 @@ function z3(e) {
10233
10233
  }
10234
10234
  } else {
10235
10235
  if (yo(Xe))
10236
- if (oe.delete(R), j > je) {
10236
+ if (oe.delete(R), j > Ue) {
10237
10237
  On(R, GA(void 0));
10238
10238
  return;
10239
10239
  } else
@@ -10250,7 +10250,7 @@ function z3(e) {
10250
10250
  type: "defer-action"
10251
10251
  });
10252
10252
  let Ot = m.navigation.location || m.location, Bt = ti(e.history, Ot, Ie.signal), Kt = a || i, Fn = m.navigation.state !== "idle" ? Qo(Kt, m.navigation.location, s) : m.matches;
10253
- Ge(Fn, "Didn't find any matches after fetcher action");
10253
+ Ve(Fn, "Didn't find any matches after fetcher action");
10254
10254
  let Jr = ++U;
10255
10255
  _.set(R, Jr);
10256
10256
  let hr = Ia(ge, Xe.data);
@@ -10284,7 +10284,7 @@ function z3(e) {
10284
10284
  let ae = GA(Xe.data);
10285
10285
  m.fetchers.set(R, ae);
10286
10286
  }
10287
- Tr(Jr), m.navigation.state === "loading" && Jr > j ? (Ge(x, "Expected pending action"), F && F.abort(), at(m.navigation.location, {
10287
+ Tr(Jr), m.navigation.state === "loading" && Jr > j ? (Ve(x, "Expected pending action"), F && F.abort(), st(m.navigation.location, {
10288
10288
  matches: Fn,
10289
10289
  loaderData: Z,
10290
10290
  errors: Ae,
@@ -10302,7 +10302,7 @@ function z3(e) {
10302
10302
  });
10303
10303
  let fe = new AbortController(), Ie = ti(e.history, X, fe.signal);
10304
10304
  if (re) {
10305
- let Xe = await Mt(W, X, Ie.signal);
10305
+ let Xe = await jt(W, X, Ie.signal);
10306
10306
  if (Xe.type === "aborted")
10307
10307
  return;
10308
10308
  if (Xe.type === "error") {
@@ -10343,7 +10343,7 @@ function z3(e) {
10343
10343
  Ut(R, k, Je.error);
10344
10344
  return;
10345
10345
  }
10346
- Ge(!eo(Je), "Unhandled fetcher deferred data"), On(R, GA(Je.data));
10346
+ Ve(!eo(Je), "Unhandled fetcher deferred data"), On(R, GA(Je.data));
10347
10347
  }
10348
10348
  }
10349
10349
  async function zn(R, k, X, w) {
@@ -10354,7 +10354,7 @@ function z3(e) {
10354
10354
  } = w === void 0 ? {} : w;
10355
10355
  k.response.headers.has("X-Remix-Revalidate") && (Ee = !0);
10356
10356
  let ge = k.response.headers.get("Location");
10357
- Ge(ge, "Expected a Location header on the redirect Response"), ge = mI(ge, new URL(R.url), s);
10357
+ Ve(ge, "Expected a Location header on the redirect Response"), ge = mI(ge, new URL(R.url), s);
10358
10358
  let xe = es(m.location, ge, {
10359
10359
  _isRedirect: !0
10360
10360
  });
@@ -10377,9 +10377,9 @@ function z3(e) {
10377
10377
  let fe = Be === !0 || k.response.headers.has("X-Remix-Replace") ? ln.Replace : ln.Push, {
10378
10378
  formMethod: Ie,
10379
10379
  formAction: Ye,
10380
- formEncType: je
10380
+ formEncType: Ue
10381
10381
  } = m.navigation;
10382
- !W && !re && Ie && Ye && je && (W = SI(m.navigation));
10382
+ !W && !re && Ie && Ye && Ue && (W = SI(m.navigation));
10383
10383
  let Je = W || re;
10384
10384
  if (V3.has(k.response.status) && Je && Or(Je.formMethod))
10385
10385
  await en(fe, xe, {
@@ -10428,9 +10428,9 @@ function z3(e) {
10428
10428
  async function ir(R, k, X, w, W) {
10429
10429
  let re = R.matches, Be = An("loader", R, W, X, k, null), ge = Promise.all(w.map(async (Ie) => {
10430
10430
  if (Ie.matches && Ie.match && Ie.controller) {
10431
- let je = (await An("loader", R, ti(e.history, Ie.path, Ie.controller.signal), [Ie.match], Ie.matches, Ie.key))[Ie.match.route.id];
10431
+ let Ue = (await An("loader", R, ti(e.history, Ie.path, Ie.controller.signal), [Ie.match], Ie.matches, Ie.key))[Ie.match.route.id];
10432
10432
  return {
10433
- [Ie.key]: je
10433
+ [Ie.key]: Ue
10434
10434
  };
10435
10435
  } else
10436
10436
  return Promise.resolve({
@@ -10490,7 +10490,7 @@ function z3(e) {
10490
10490
  }
10491
10491
  function Ln(R) {
10492
10492
  let k = oe.get(R);
10493
- Ge(k, "Expected fetch controller: " + R), k.abort(), oe.delete(R);
10493
+ Ve(k, "Expected fetch controller: " + R), k.abort(), oe.delete(R);
10494
10494
  }
10495
10495
  function QA(R) {
10496
10496
  for (let k of R) {
@@ -10502,7 +10502,7 @@ function z3(e) {
10502
10502
  let R = [], k = !1;
10503
10503
  for (let X of D) {
10504
10504
  let w = m.fetchers.get(X);
10505
- Ge(w, "Expected fetcher: " + X), w.state === "loading" && (D.delete(X), R.push(X), k = !0);
10505
+ Ve(w, "Expected fetcher: " + X), w.state === "loading" && (D.delete(X), R.push(X), k = !0);
10506
10506
  }
10507
10507
  return QA(R), k;
10508
10508
  }
@@ -10511,7 +10511,7 @@ function z3(e) {
10511
10511
  for (let [X, w] of _)
10512
10512
  if (w < R) {
10513
10513
  let W = m.fetchers.get(X);
10514
- Ge(W, "Expected fetcher: " + X), W.state === "loading" && (Ln(X), _.delete(X), k.push(X));
10514
+ Ve(W, "Expected fetcher: " + X), W.state === "loading" && (Ln(X), _.delete(X), k.push(X));
10515
10515
  }
10516
10516
  return QA(k), k.length > 0;
10517
10517
  }
@@ -10524,7 +10524,7 @@ function z3(e) {
10524
10524
  }
10525
10525
  function It(R, k) {
10526
10526
  let X = m.blockers.get(R) || Ea;
10527
- Ge(X.state === "unblocked" && k.state === "blocked" || X.state === "blocked" && k.state === "blocked" || X.state === "blocked" && k.state === "proceeding" || X.state === "blocked" && k.state === "unblocked" || X.state === "proceeding" && k.state === "unblocked", "Invalid blocker state transition: " + X.state + " -> " + k.state);
10527
+ Ve(X.state === "unblocked" && k.state === "blocked" || X.state === "blocked" && k.state === "blocked" || X.state === "blocked" && k.state === "proceeding" || X.state === "blocked" && k.state === "unblocked" || X.state === "proceeding" && k.state === "unblocked", "Invalid blocker state transition: " + X.state + " -> " + k.state);
10528
10528
  let w = new Map(m.blockers);
10529
10529
  w.set(R, k), Fe({
10530
10530
  blockers: w
@@ -10629,7 +10629,7 @@ function z3(e) {
10629
10629
  matches: null
10630
10630
  };
10631
10631
  }
10632
- async function Mt(R, k, X) {
10632
+ async function jt(R, k, X) {
10633
10633
  let w = R;
10634
10634
  for (; ; ) {
10635
10635
  let W = a == null, re = a || i;
@@ -10795,7 +10795,7 @@ function hI(e, t, n, r) {
10795
10795
  }
10796
10796
  }
10797
10797
  }
10798
- Ge(typeof FormData == "function", "FormData is not available in this environment");
10798
+ Ve(typeof FormData == "function", "FormData is not available in this environment");
10799
10799
  let s, l;
10800
10800
  if (r.formData)
10801
10801
  s = Zg(r.formData), l = r.formData;
@@ -10947,7 +10947,7 @@ function sQ(e, t, n, r, A) {
10947
10947
  if (e) {
10948
10948
  var o;
10949
10949
  let i = r[e];
10950
- Ge(i, "No route found to patch children into: routeId = " + e);
10950
+ Ve(i, "No route found to patch children into: routeId = " + e);
10951
10951
  let a = ts(t, A, [e, "patch", String(((o = i.children) == null ? void 0 : o.length) || "0")], r);
10952
10952
  i.children ? i.children.push(...a) : i.children = a;
10953
10953
  } else {
@@ -10962,7 +10962,7 @@ async function q3(e, t, n) {
10962
10962
  if (!e.lazy)
10963
10963
  return;
10964
10964
  let A = n[e.id];
10965
- Ge(A, "No route found in manifest");
10965
+ Ve(A, "No route found in manifest");
10966
10966
  let o = {};
10967
10967
  for (let i in r) {
10968
10968
  let s = A[i] !== void 0 && // This property isn't static since it should always be updated based
@@ -11066,7 +11066,7 @@ async function eT(e, t, n, r, A, o) {
11066
11066
  pathname: g
11067
11067
  });
11068
11068
  }
11069
- Ge(i.result !== void 0, "You defined " + (e === "action" ? "an action" : "a loader") + " for route " + ('"' + n.route.id + "\" but didn't return anything from your `" + e + "` ") + "function. Please return a value or `null`.");
11069
+ Ve(i.result !== void 0, "You defined " + (e === "action" ? "an action" : "a loader") + " for route " + ('"' + n.route.id + "\" but didn't return anything from your `" + e + "` ") + "function. Please return a value or `null`.");
11070
11070
  } catch (l) {
11071
11071
  return {
11072
11072
  type: Lt.error,
@@ -11149,7 +11149,7 @@ async function tT(e) {
11149
11149
  }
11150
11150
  function nT(e, t, n, r, A, o) {
11151
11151
  let i = e.headers.get("Location");
11152
- if (Ge(i, "Redirects returned/thrown from loaders/actions must have a Location header"), !oC.test(i)) {
11152
+ if (Ve(i, "Redirects returned/thrown from loaders/actions must have a Location header"), !oC.test(i)) {
11153
11153
  let a = r.slice(0, r.findIndex((s) => s.route.id === n) + 1);
11154
11154
  i = qg(new URL(t.url), a, A, !0, i, o), e.headers.set("Location", i);
11155
11155
  }
@@ -11196,7 +11196,7 @@ function rT(e, t, n, r, A) {
11196
11196
  if (!(g.route.id in t))
11197
11197
  return;
11198
11198
  let E = g.route.id, f = t[E];
11199
- if (Ge(!yo(f), "Cannot handle redirect results in processLoaderData"), lr(f)) {
11199
+ if (Ve(!yo(f), "Cannot handle redirect results in processLoaderData"), lr(f)) {
11200
11200
  let I = f.error;
11201
11201
  c !== void 0 && (I = c, c = void 0), i = i || {};
11202
11202
  {
@@ -11226,16 +11226,16 @@ function bI(e, t, n, r, A, o, i, a) {
11226
11226
  match: E,
11227
11227
  controller: f
11228
11228
  } = c, I = i[g];
11229
- if (Ge(I, "Did not find corresponding fetcher result"), !(f && f.signal.aborted))
11229
+ if (Ve(I, "Did not find corresponding fetcher result"), !(f && f.signal.aborted))
11230
11230
  if (lr(I)) {
11231
11231
  let d = li(e.matches, E == null ? void 0 : E.route.id);
11232
11232
  l && l[d.route.id] || (l = Yt({}, l, {
11233
11233
  [d.route.id]: I.error
11234
11234
  })), e.fetchers.delete(g);
11235
11235
  } else if (yo(I))
11236
- Ge(!1, "Unhandled fetcher revalidation redirect");
11236
+ Ve(!1, "Unhandled fetcher revalidation redirect");
11237
11237
  else if (eo(I))
11238
- Ge(!1, "Unhandled fetcher deferred data");
11238
+ Ve(!1, "Unhandled fetcher deferred data");
11239
11239
  else {
11240
11240
  let d = GA(I.data);
11241
11241
  e.fetchers.set(g, d);
@@ -11362,7 +11362,7 @@ async function cT(e, t, n) {
11362
11362
  routeId: o,
11363
11363
  controller: i
11364
11364
  } = n[r], a = t[A];
11365
- e.find((l) => (l == null ? void 0 : l.route.id) === o) && eo(a) && (Ge(i, "Expected an AbortController for revalidating fetcher deferred result"), await iC(a, i.signal, !0).then((l) => {
11365
+ e.find((l) => (l == null ? void 0 : l.route.id) === o) && eo(a) && (Ve(i, "Expected an AbortController for revalidating fetcher deferred result"), await iC(a, i.signal, !0).then((l) => {
11366
11366
  l && (t[A] = l);
11367
11367
  }));
11368
11368
  }
@@ -11579,12 +11579,12 @@ function IT(e, t) {
11579
11579
  let {
11580
11580
  relative: n
11581
11581
  } = t === void 0 ? {} : t;
11582
- ps() || (process.env.NODE_ENV !== "production" ? Ge(
11582
+ ps() || (process.env.NODE_ENV !== "production" ? Ve(
11583
11583
  !1,
11584
11584
  // TODO: This error is probably because they somehow have 2 versions of the
11585
11585
  // router loaded. We can help them understand how to avoid that.
11586
11586
  "useHref() may be used only in the context of a <Router> component."
11587
- ) : Ge(!1));
11587
+ ) : Ve(!1));
11588
11588
  let {
11589
11589
  basename: r,
11590
11590
  navigator: A
@@ -11605,12 +11605,12 @@ function ps() {
11605
11605
  return S.useContext(Yc) != null;
11606
11606
  }
11607
11607
  function lo() {
11608
- return ps() || (process.env.NODE_ENV !== "production" ? Ge(
11608
+ return ps() || (process.env.NODE_ENV !== "production" ? Ve(
11609
11609
  !1,
11610
11610
  // TODO: This error is probably because they somehow have 2 versions of the
11611
11611
  // router loaded. We can help them understand how to avoid that.
11612
11612
  "useLocation() may be used only in the context of a <Router> component."
11613
- ) : Ge(!1)), S.useContext(Yc).location;
11613
+ ) : Ve(!1)), S.useContext(Yc).location;
11614
11614
  }
11615
11615
  const uQ = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
11616
11616
  function gQ(e) {
@@ -11623,12 +11623,12 @@ function yn() {
11623
11623
  return e ? DT() : fT();
11624
11624
  }
11625
11625
  function fT() {
11626
- ps() || (process.env.NODE_ENV !== "production" ? Ge(
11626
+ ps() || (process.env.NODE_ENV !== "production" ? Ve(
11627
11627
  !1,
11628
11628
  // TODO: This error is probably because they somehow have 2 versions of the
11629
11629
  // router loaded. We can help them understand how to avoid that.
11630
11630
  "useNavigate() may be used only in the context of a <Router> component."
11631
- ) : Ge(!1));
11631
+ ) : Ve(!1));
11632
11632
  let e = S.useContext(zi), {
11633
11633
  basename: t,
11634
11634
  future: n,
@@ -11676,12 +11676,12 @@ function Qs(e, t) {
11676
11676
  return S.useMemo(() => AC(e, JSON.parse(i), o, n === "path"), [e, i, o, n]);
11677
11677
  }
11678
11678
  function pT(e, t, n, r) {
11679
- ps() || (process.env.NODE_ENV !== "production" ? Ge(
11679
+ ps() || (process.env.NODE_ENV !== "production" ? Ve(
11680
11680
  !1,
11681
11681
  // TODO: This error is probably because they somehow have 2 versions of the
11682
11682
  // router loaded. We can help them understand how to avoid that.
11683
11683
  "useRoutes() may be used only in the context of a <Router> component."
11684
- ) : Ge(!1));
11684
+ ) : Ve(!1));
11685
11685
  let {
11686
11686
  navigator: A
11687
11687
  } = S.useContext(Vr), {
@@ -11800,7 +11800,7 @@ function yT(e, t, n, r) {
11800
11800
  let i = e, a = (A = n) == null ? void 0 : A.errors;
11801
11801
  if (a != null) {
11802
11802
  let c = i.findIndex((g) => g.route.id && (a == null ? void 0 : a[g.route.id]) !== void 0);
11803
- c >= 0 || (process.env.NODE_ENV !== "production" ? Ge(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(a).join(",")) : Ge(!1)), i = i.slice(0, Math.min(i.length, c + 1));
11803
+ c >= 0 || (process.env.NODE_ENV !== "production" ? Ve(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(a).join(",")) : Ve(!1)), i = i.slice(0, Math.min(i.length, c + 1));
11804
11804
  }
11805
11805
  let s = !1, l = -1;
11806
11806
  if (n && r && r.v7_partialHydration)
@@ -11856,19 +11856,19 @@ function lC(e) {
11856
11856
  }
11857
11857
  function xT(e) {
11858
11858
  let t = S.useContext(zi);
11859
- return t || (process.env.NODE_ENV !== "production" ? Ge(!1, lC(e)) : Ge(!1)), t;
11859
+ return t || (process.env.NODE_ENV !== "production" ? Ve(!1, lC(e)) : Ve(!1)), t;
11860
11860
  }
11861
11861
  function wT(e) {
11862
11862
  let t = S.useContext(zc);
11863
- return t || (process.env.NODE_ENV !== "production" ? Ge(!1, lC(e)) : Ge(!1)), t;
11863
+ return t || (process.env.NODE_ENV !== "production" ? Ve(!1, lC(e)) : Ve(!1)), t;
11864
11864
  }
11865
11865
  function TT(e) {
11866
11866
  let t = S.useContext(Hr);
11867
- return t || (process.env.NODE_ENV !== "production" ? Ge(!1, lC(e)) : Ge(!1)), t;
11867
+ return t || (process.env.NODE_ENV !== "production" ? Ve(!1, lC(e)) : Ve(!1)), t;
11868
11868
  }
11869
11869
  function cC(e) {
11870
11870
  let t = TT(e), n = t.matches[t.matches.length - 1];
11871
- return n.route.id || (process.env.NODE_ENV !== "production" ? Ge(!1, e + ' can only be used on routes that contain a unique "id"') : Ge(!1)), n.route.id;
11871
+ return n.route.id || (process.env.NODE_ENV !== "production" ? Ve(!1, e + ' can only be used on routes that contain a unique "id"') : Ve(!1)), n.route.id;
11872
11872
  }
11873
11873
  function ST() {
11874
11874
  return cC(ns.UseRouteId);
@@ -11907,7 +11907,7 @@ function OT(e) {
11907
11907
  static: i = !1,
11908
11908
  future: a
11909
11909
  } = e;
11910
- ps() && (process.env.NODE_ENV !== "production" ? Ge(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : Ge(!1));
11910
+ ps() && (process.env.NODE_ENV !== "production" ? Ve(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : Ve(!1));
11911
11911
  let s = t.replace(/^\/*/, "/"), l = S.useMemo(() => ({
11912
11912
  basename: s,
11913
11913
  navigator: o,
@@ -12420,7 +12420,7 @@ function i4(e) {
12420
12420
  }
12421
12421
  function hQ(e) {
12422
12422
  let t = S.useContext(zi);
12423
- return t || (process.env.NODE_ENV !== "production" ? Ge(!1, i4(e)) : Ge(!1)), t;
12423
+ return t || (process.env.NODE_ENV !== "production" ? Ve(!1, i4(e)) : Ve(!1)), t;
12424
12424
  }
12425
12425
  function a4(e, t) {
12426
12426
  let {
@@ -12511,7 +12511,7 @@ function g4(e, t) {
12511
12511
  } = t === void 0 ? {} : t, {
12512
12512
  basename: r
12513
12513
  } = S.useContext(Vr), A = S.useContext(Hr);
12514
- A || (process.env.NODE_ENV !== "production" ? Ge(!1, "useFormAction must be used inside a RouteContext") : Ge(!1));
12514
+ A || (process.env.NODE_ENV !== "production" ? Ve(!1, "useFormAction must be used inside a RouteContext") : Ve(!1));
12515
12515
  let [o] = A.matches.slice(-1), i = Ao({}, Qs(e || ".", {
12516
12516
  relative: n
12517
12517
  })), a = lo();
@@ -12525,7 +12525,7 @@ function g4(e, t) {
12525
12525
  function d4(e, t) {
12526
12526
  t === void 0 && (t = {});
12527
12527
  let n = S.useContext(gC);
12528
- n == null && (process.env.NODE_ENV !== "production" ? Ge(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : Ge(!1));
12528
+ n == null && (process.env.NODE_ENV !== "production" ? Ve(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : Ve(!1));
12529
12529
  let {
12530
12530
  basename: r
12531
12531
  } = hQ(Ac.useViewTransitionState), A = Qs(e, {
@@ -12581,7 +12581,7 @@ const C4 = T(V)`
12581
12581
  justify-content: center;
12582
12582
  align-items: center;
12583
12583
  `, h4 = "Customising connectors on the agent’s panel", p4 = "Configure your Connectors in the right panel, add your cards and name them how you want the agents to see and update them.", Q4 = "Coming Soon", m4 = "Have any questions? ", pQ = "internal-chat", v4 = "https://cdn.hiverhq.com/connectors-module/assets/RequestNewCCLogo.svg", b4 = "https://cdn.hiverhq.com/connectors-module/assets/agent-view.svg", y4 = "https://cdn.hiverhq.com/connectors-module/assets/RequestConnector.svg", x4 = "https://cdn.hiverhq.com/connectors-module/assets/UpgradeImage.svg", w4 = () => {
12584
- const { availableFeatures: e } = He(hn), t = (n) => {
12584
+ const { availableFeatures: e } = je(hn), t = (n) => {
12585
12585
  n.stopPropagation(), gA(e, pQ) && tp();
12586
12586
  };
12587
12587
  return /* @__PURE__ */ u.jsx(C4, { children: /* @__PURE__ */ u.jsxs(E4, { children: [
@@ -12734,10 +12734,10 @@ const C4 = T(V)`
12734
12734
  `, wS = T(V)`
12735
12735
  flex-direction: column;
12736
12736
  height: 100%;
12737
- `, TS = T(it)`
12737
+ `, TS = T(at)`
12738
12738
  height: 32px;
12739
12739
  font-size: 13px;
12740
- `, SS = T(it)`
12740
+ `, SS = T(at)`
12741
12741
  height: 32px;
12742
12742
  `, _S = T(V)`
12743
12743
  flex-direction: row;
@@ -12752,7 +12752,7 @@ const C4 = T(V)`
12752
12752
  background: linear-gradient(to right, #ffe250, #ffc350);
12753
12753
  color: ${bn.gray.gray1};
12754
12754
  `, DS = () => {
12755
- const { availableFeatures: e, sendTrackingEvent: t } = He(hn), n = yn(), r = uo(), A = Et(Fp), o = Et(Zd), i = Et(rw);
12755
+ const { availableFeatures: e, sendTrackingEvent: t } = je(hn), n = yn(), r = uo(), A = Et(Fp), o = Et(Zd), i = Et(rw);
12756
12756
  be(() => {
12757
12757
  r(ul());
12758
12758
  }, [r]);
@@ -12760,7 +12760,7 @@ const C4 = T(V)`
12760
12760
  var g;
12761
12761
  s == null || s.stopPropagation();
12762
12762
  const c = (g = o == null ? void 0 : o[l]) == null ? void 0 : g.name;
12763
- t(vt.LIBRARY_CARD_CLICKED, { connector_name: c }), n(`${gt.BASEPATH}${gt.API_VIEW}/${l}`);
12763
+ t(vt.LIBRARY_CARD_CLICKED, { connector_name: c }), n(`${dt.BASEPATH}${dt.API_VIEW}/${l}`);
12764
12764
  };
12765
12765
  return /* @__PURE__ */ u.jsx(q4, { "data-testid": "connector-library", component: "ul", children: i === Ne.LOADING ? /* @__PURE__ */ u.jsx(K4, {}) : /* @__PURE__ */ u.jsx(u.Fragment, { children: A.map((s) => {
12766
12766
  const l = o == null ? void 0 : o[s];
@@ -12805,7 +12805,7 @@ const C4 = T(V)`
12805
12805
  & .create-own__btn {
12806
12806
  pointer-events: none;
12807
12807
  }
12808
- `, kS = T(it)`
12808
+ `, kS = T(at)`
12809
12809
  height: 36px;
12810
12810
  width: 201px;
12811
12811
  text-transform: none;
@@ -12819,7 +12819,7 @@ const C4 = T(V)`
12819
12819
  color: ${ce.palette.purple.primary} !important;
12820
12820
  border: 1px solid ${ce.palette.purple.primary} !important;
12821
12821
  }
12822
- `, MS = T(it)`
12822
+ `, MS = T(at)`
12823
12823
  width: 253px;
12824
12824
  height: 36px;
12825
12825
  text-transform: none;
@@ -12958,7 +12958,7 @@ const yQ = (e) => e.connectorLirary.connectorList, Xc = (e) => e.connectorLirary
12958
12958
  transform: rotate(360deg);
12959
12959
  }
12960
12960
  }
12961
- `, qS = T(it)`
12961
+ `, qS = T(at)`
12962
12962
  white-space: pre;
12963
12963
  width: 133px;
12964
12964
  height: 32px;
@@ -13006,7 +13006,7 @@ const yQ = (e) => e.connectorLirary.connectorList, Xc = (e) => e.connectorLirary
13006
13006
  width: 562px;
13007
13007
  height: 500px;
13008
13008
  }
13009
- `, s5 = T(it)`
13009
+ `, s5 = T(at)`
13010
13010
  &:hover {
13011
13011
  background-color: #e3e9ff !important;
13012
13012
  color: ${ce.palette.purple.primary} !important;
@@ -13069,19 +13069,19 @@ function aA(e) {
13069
13069
  let o;
13070
13070
  switch (n) {
13071
13071
  case oc: {
13072
- o = ut.success(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13072
+ o = gt.success(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13073
13073
  break;
13074
13074
  }
13075
13075
  case Po: {
13076
- o = ut.error(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13076
+ o = gt.error(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13077
13077
  break;
13078
13078
  }
13079
13079
  case SQ: {
13080
- o = ut.info(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13080
+ o = gt.info(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13081
13081
  break;
13082
13082
  }
13083
13083
  default: {
13084
- o = ut.info(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13084
+ o = gt.info(/* @__PURE__ */ u.jsx(Ws, { message: t }), { ...A, icon: !1 });
13085
13085
  break;
13086
13086
  }
13087
13087
  }
@@ -13093,7 +13093,7 @@ function aA(e) {
13093
13093
  ), o;
13094
13094
  }
13095
13095
  function f5(e) {
13096
- ut.dismiss(e);
13096
+ gt.dismiss(e);
13097
13097
  }
13098
13098
  const B5 = T(pe)`
13099
13099
  height: 100%;
@@ -13118,7 +13118,7 @@ const B5 = T(pe)`
13118
13118
  /* @__PURE__ */ u.jsx(p5, { children: cS })
13119
13119
  ] });
13120
13120
  function v5() {
13121
- const e = He(CC);
13121
+ const e = je(CC);
13122
13122
  if (!e)
13123
13123
  throw new Error(uS);
13124
13124
  return e;
@@ -13168,7 +13168,7 @@ const b5 = T(({ className: e, ...t }) => /* @__PURE__ */ u.jsx(Vt, { ...t, class
13168
13168
  }
13169
13169
  );
13170
13170
  }, x5 = ({ children: e }) => {
13171
- const { hasRendered: t, setHasRendered: n } = He(CC), [r] = le(() => !t);
13171
+ const { hasRendered: t, setHasRendered: n } = je(CC), [r] = le(() => !t);
13172
13172
  return be(() => {
13173
13173
  r && n(!0);
13174
13174
  }, [r, n]), r ? /* @__PURE__ */ u.jsx(y5, { children: e }) : /* @__PURE__ */ u.jsx(u.Fragment, { children: e });
@@ -13434,7 +13434,7 @@ function P5() {
13434
13434
  }
13435
13435
  const OQ = /* @__PURE__ */ OA(null);
13436
13436
  function k5(e) {
13437
- const t = He(OQ);
13437
+ const t = je(OQ);
13438
13438
  be(() => {
13439
13439
  if (!t)
13440
13440
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
@@ -15067,7 +15067,7 @@ function U9(e) {
15067
15067
  active: n,
15068
15068
  activatorEvent: r,
15069
15069
  draggableNodes: A
15070
- } = He($c), o = td(r), i = td(n == null ? void 0 : n.id);
15070
+ } = je($c), o = td(r), i = td(n == null ? void 0 : n.id);
15071
15071
  return be(() => {
15072
15072
  if (!t && !r && o && i != null) {
15073
15073
  if (!pC(o) || document.activeElement === o.target)
@@ -15232,7 +15232,7 @@ const KQ = /* @__PURE__ */ i2(function(t) {
15232
15232
  scrollAdjustedTranslate: null
15233
15233
  }), Ke = M.getNodeFor((n = H.current.over) == null ? void 0 : n.id), Fe = L9({
15234
15234
  measure: _.dragOverlay.measure
15235
- }), at = (r = Fe.nodeRef.current) != null ? r : K, Ht = b ? (A = Fe.rect) != null ? A : se : null, xn = !!(Fe.nodeRef.current && Fe.rect), en = w9(xn ? null : se), dn = YQ(at ? Ar(at) : null), Rt = T9(b ? Ke ?? K : null), or = R9(Rt), Dn = G9(f, {
15235
+ }), st = (r = Fe.nodeRef.current) != null ? r : K, Ht = b ? (A = Fe.rect) != null ? A : se : null, xn = !!(Fe.nodeRef.current && Fe.rect), en = w9(xn ? null : se), dn = YQ(st ? Ar(st) : null), Rt = T9(b ? Ke ?? K : null), or = R9(Rt), Dn = G9(f, {
15236
15236
  transform: {
15237
15237
  x: x.x - en.x,
15238
15238
  y: x.y - en.y,
@@ -15275,10 +15275,10 @@ const KQ = /* @__PURE__ */ i2(function(t) {
15275
15275
  // otherwise they are frozen in time with the stale arguments
15276
15276
  context: H,
15277
15277
  onStart(an) {
15278
- const Mt = P.current;
15279
- if (Mt == null)
15278
+ const jt = P.current;
15279
+ if (jt == null)
15280
15280
  return;
15281
- const ar = m.get(Mt);
15281
+ const ar = m.get(jt);
15282
15282
  if (!ar)
15283
15283
  return;
15284
15284
  const {
@@ -15286,7 +15286,7 @@ const KQ = /* @__PURE__ */ i2(function(t) {
15286
15286
  } = oe.current, Nn = {
15287
15287
  activatorEvent: on,
15288
15288
  active: {
15289
- id: Mt,
15289
+ id: jt,
15290
15290
  data: ar.data,
15291
15291
  rect: z
15292
15292
  }
@@ -15295,7 +15295,7 @@ const KQ = /* @__PURE__ */ i2(function(t) {
15295
15295
  sr == null || sr(Nn), v(VA.Initializing), B({
15296
15296
  type: En.DragStart,
15297
15297
  initialCoordinates: an,
15298
- active: Mt
15298
+ active: jt
15299
15299
  }), h({
15300
15300
  type: "onDragStart",
15301
15301
  event: Nn
@@ -15446,7 +15446,7 @@ const KQ = /* @__PURE__ */ i2(function(t) {
15446
15446
  collisions: Rn,
15447
15447
  droppableRects: D,
15448
15448
  draggableNodes: m,
15449
- draggingNode: at,
15449
+ draggingNode: st,
15450
15450
  draggingNodeRect: Ht,
15451
15451
  droppableContainers: M,
15452
15452
  over: Ut,
@@ -15456,7 +15456,7 @@ const KQ = /* @__PURE__ */ i2(function(t) {
15456
15456
  initial: Ht,
15457
15457
  translated: ir
15458
15458
  };
15459
- }, [Y, K, Rn, ir, m, at, Ht, D, M, Ut, Rt, An]), B9({
15459
+ }, [Y, K, Rn, ir, m, st, Ht, D, M, Ut, Rt, An]), B9({
15460
15460
  ...de,
15461
15461
  delta: x,
15462
15462
  draggingRect: ir,
@@ -15534,11 +15534,11 @@ function Y9(e) {
15534
15534
  ariaDescribedById: c,
15535
15535
  draggableNodes: g,
15536
15536
  over: E
15537
- } = He($c), {
15537
+ } = je($c), {
15538
15538
  role: f = qI,
15539
15539
  roleDescription: I = "draggable",
15540
15540
  tabIndex: d = 0
15541
- } = A ?? {}, C = (s == null ? void 0 : s.id) === t, B = He(C ? XQ : W9), [h, p] = ic(), [Q, v] = ic(), b = D9(i, t), y = As(n);
15541
+ } = A ?? {}, C = (s == null ? void 0 : s.id) === t, B = je(C ? XQ : W9), [h, p] = ic(), [Q, v] = ic(), b = D9(i, t), y = As(n);
15542
15542
  dA(
15543
15543
  () => (g.set(t, {
15544
15544
  id: t,
@@ -15576,7 +15576,7 @@ function Y9(e) {
15576
15576
  };
15577
15577
  }
15578
15578
  function J9() {
15579
- return He(JQ);
15579
+ return je(JQ);
15580
15580
  }
15581
15581
  const X9 = "Droppable", K9 = {
15582
15582
  timeout: 25
@@ -15593,7 +15593,7 @@ function q9(e) {
15593
15593
  dispatch: a,
15594
15594
  over: s,
15595
15595
  measureDroppableContainers: l
15596
- } = He($c), c = Me({
15596
+ } = je($c), c = Me({
15597
15597
  disabled: n
15598
15598
  }), g = Me(!1), E = Me(null), f = Me(null), {
15599
15599
  disabled: I,
@@ -15875,7 +15875,7 @@ function r0(e) {
15875
15875
  overIndex: C,
15876
15876
  useDragOverlay: B,
15877
15877
  strategy: h
15878
- } = He(e0), p = s6(r, f), Q = c.indexOf(i), v = Le(() => ({
15878
+ } = je(e0), p = s6(r, f), Q = c.indexOf(i), v = Le(() => ({
15879
15879
  sortable: {
15880
15880
  containerId: g,
15881
15881
  index: Q,
@@ -15958,10 +15958,10 @@ function r0(e) {
15958
15958
  se.current.activeId = ne;
15959
15959
  return;
15960
15960
  }
15961
- const at = setTimeout(() => {
15961
+ const st = setTimeout(() => {
15962
15962
  se.current.activeId = ne;
15963
15963
  }, 50);
15964
- return () => clearTimeout(at);
15964
+ return () => clearTimeout(st);
15965
15965
  }, [ne]), {
15966
15966
  active: F,
15967
15967
  activeIndex: E,
@@ -16044,7 +16044,7 @@ const l6 = T(V)`
16044
16044
  }
16045
16045
  }
16046
16046
  `, u6 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='7.48148'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3c/svg%3e", g6 = ({ field: e, toggleSelected: t, hideNewChip: n }) => {
16047
- const { availableFeatures: r } = He(hn), { key: A, label: o, enabled: i, isFieldNew: a } = e, { attributes: s, listeners: l, setNodeRef: c, transform: g, transition: E } = r0({ id: A }), f = Me(null), [I, d] = le(!1), C = qa(r) && a && !n, B = {
16047
+ const { availableFeatures: r } = je(hn), { key: A, label: o, enabled: i, isFieldNew: a } = e, { attributes: s, listeners: l, setNodeRef: c, transform: g, transition: E } = r0({ id: A }), f = Me(null), [I, d] = le(!1), C = qa(r) && a && !n, B = {
16048
16048
  transform: Ni.Transform.toString(g),
16049
16049
  transition: E
16050
16050
  };
@@ -16181,7 +16181,7 @@ const l6 = T(V)`
16181
16181
  width: 500px;
16182
16182
  height: 500px;
16183
16183
  }
16184
- `, Q6 = T(it)`
16184
+ `, Q6 = T(at)`
16185
16185
  &:hover {
16186
16186
  background-color: #e3e9ff !important;
16187
16187
  color: ${ce.palette.purple.primary} !important;
@@ -16343,7 +16343,7 @@ const l6 = T(V)`
16343
16343
  fields: a,
16344
16344
  setVisitedFieldVisTab: s
16345
16345
  }) => {
16346
- const { availableFeatures: l, sendTrackingEvent: c } = He(hn), g = uo(), E = Et(Xc), f = Et(TQ) ?? [], I = Et(wQ) ?? [], d = Et(VS), C = Et(GS), { userId: B } = EA() || {}, [h, p] = le(
16346
+ const { availableFeatures: l, sendTrackingEvent: c } = je(hn), g = uo(), E = Et(Xc), f = Et(TQ) ?? [], I = Et(wQ) ?? [], d = Et(VS), C = Et(GS), { userId: B } = EA() || {}, [h, p] = le(
16347
16347
  () => (I == null ? void 0 : I.filter((D) => n == null ? void 0 : n.includes(D.id))) ?? []
16348
16348
  ), [Q, v] = le(
16349
16349
  () => (f == null ? void 0 : f.find((D) => A == null ? void 0 : A.includes(D.name))) ?? {}
@@ -16384,8 +16384,8 @@ const l6 = T(V)`
16384
16384
  (H) => {
16385
16385
  var xn;
16386
16386
  if (H.id === t) return !1;
16387
- const { email: Ke, chat: Fe } = H.inboxes, at = !!(((Ke == null ? void 0 : Ke.length) ?? 0) + ((Fe == null ? void 0 : Fe.length) ?? 0)), Ht = !!((xn = H == null ? void 0 : H.roles) != null && xn.length);
16388
- return at && Ht;
16387
+ const { email: Ke, chat: Fe } = H.inboxes, st = !!(((Ke == null ? void 0 : Ke.length) ?? 0) + ((Fe == null ? void 0 : Fe.length) ?? 0)), Ht = !!((xn = H == null ? void 0 : H.roles) != null && xn.length);
16388
+ return st && Ht;
16389
16389
  }
16390
16390
  );
16391
16391
  c(vt.CARD_VISIBILITY_UPDATED, {
@@ -16493,7 +16493,7 @@ const S6 = T(V)`
16493
16493
  }
16494
16494
  `, R6 = ({ infoCard: e, currentConnectorId: t, setShowEnabledModal: n }) => {
16495
16495
  var y, m;
16496
- const r = ((y = e.inboxes) == null ? void 0 : y.email) || [], A = ((m = e.inboxes) == null ? void 0 : m.chat) || [], o = e.roles ?? [], i = e.fields ?? [], { isCardNew: a } = e, s = r.length + A.length, l = s > 0 && o.length > 0, [c, g] = le(!1), [E, f] = le(!1), { availableFeatures: I, userPermissions: d, sendTrackingEvent: C } = He(hn), B = bb(d), { userId: h } = EA() || {}, p = (x) => {
16496
+ const r = ((y = e.inboxes) == null ? void 0 : y.email) || [], A = ((m = e.inboxes) == null ? void 0 : m.chat) || [], o = e.roles ?? [], i = e.fields ?? [], { isCardNew: a } = e, s = r.length + A.length, l = s > 0 && o.length > 0, [c, g] = le(!1), [E, f] = le(!1), { availableFeatures: I, userPermissions: d, sendTrackingEvent: C } = je(hn), B = bb(d), { userId: h } = EA() || {}, p = (x) => {
16497
16497
  g(x), !x && h && (I6(e.id, h), E && E6(e.id, h));
16498
16498
  }, Q = () => {
16499
16499
  g(!0), C(vt.CONFIGURE_VISIBILITY_CLICKED);
@@ -16575,7 +16575,7 @@ const S6 = T(V)`
16575
16575
  isEdit: n = !1,
16576
16576
  isConnectorCard: r = !1
16577
16577
  }) => {
16578
- const { sendTrackingEvent: A } = He(hn), { id: o, name: i, logo: a, description: s, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = Et(US), f = Et(xQ), I = Et(EC), [d, C] = le(!1), B = uo(), h = yn(), p = (P, ie) => {
16578
+ const { sendTrackingEvent: A } = je(hn), { id: o, name: i, logo: a, description: s, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = Et(US), f = Et(xQ), I = Et(EC), [d, C] = le(!1), B = uo(), h = yn(), p = (P, ie) => {
16579
16579
  P == null || P.stopPropagation(), B(gl({ id: ie, enabled: P.target.checked })).unwrap().then(() => {
16580
16580
  P.target.checked ? A(vt.TOGGLE_ENABLED, { connector_name: i }) : (A(vt.TOGGLE_DISABLED, { connector_name: i }), aA({
16581
16581
  message: t5,
@@ -16588,13 +16588,13 @@ const S6 = T(V)`
16588
16588
  });
16589
16589
  });
16590
16590
  }, Q = (P, ie) => {
16591
- P == null || P.stopPropagation(), A(vt.ADD_CONNECTOR_CLICKED, { connector_name: i }), h(`${gt.BASEPATH}${gt.CONNECTOR_SETTINGS}/${ie}`);
16591
+ P == null || P.stopPropagation(), A(vt.ADD_CONNECTOR_CLICKED, { connector_name: i }), h(`${dt.BASEPATH}${dt.CONNECTOR_SETTINGS}/${ie}`);
16592
16592
  }, v = (P, ie) => {
16593
- P == null || P.stopPropagation(), A(vt.SETTINGS_CLICKED, { connector_name: i }), h(`${gt.BASEPATH}${gt.CONNECTOR_SETTINGS}/${ie}?isEdit=true`);
16593
+ P == null || P.stopPropagation(), A(vt.SETTINGS_CLICKED, { connector_name: i }), h(`${dt.BASEPATH}${dt.CONNECTOR_SETTINGS}/${ie}?isEdit=true`);
16594
16594
  }, b = (P, ie = "") => {
16595
- P == null || P.preventDefault(), P == null || P.stopPropagation(), !t && h(`${gt.BASEPATH}${gt.API_VIEW}/${ie}?isEdit=true`);
16595
+ P == null || P.preventDefault(), P == null || P.stopPropagation(), !t && h(`${dt.BASEPATH}${dt.API_VIEW}/${ie}?isEdit=true`);
16596
16596
  }, y = (P) => {
16597
- P == null || P.stopPropagation(), h(`${gt.BASEPATH}${gt.CONNECTOR_SETTINGS}/${o}?isEdit=true`);
16597
+ P == null || P.stopPropagation(), h(`${dt.BASEPATH}${dt.CONNECTOR_SETTINGS}/${o}?isEdit=true`);
16598
16598
  };
16599
16599
  let m = !1;
16600
16600
  "isEnabled" in e && typeof e.isEnabled == "boolean" && (m = e.isEnabled);
@@ -16642,7 +16642,7 @@ const S6 = T(V)`
16642
16642
  ] })
16643
16643
  ] }) }),
16644
16644
  t && !n ? /* @__PURE__ */ u.jsx(qS, { variant: "contained", onClick: (P) => Q(P, o), children: V4 }) : /* @__PURE__ */ u.jsxs(JS, { children: [
16645
- !t && c && !x ? /* @__PURE__ */ u.jsx(pe, { marginRight: "7px", children: /* @__PURE__ */ u.jsx(it, { size: "small", onClick: y, children: hS }) }) : null,
16645
+ !t && c && !x ? /* @__PURE__ */ u.jsx(pe, { marginRight: "7px", children: /* @__PURE__ */ u.jsx(at, { size: "small", onClick: y, children: hS }) }) : null,
16646
16646
  !t && x ? /* @__PURE__ */ u.jsx(ZS, { severity: "error", children: pS }) : null,
16647
16647
  /* @__PURE__ */ u.jsx(Vt, { title: H4, placement: "bottom", children: /* @__PURE__ */ u.jsx(nr, { onClick: (P) => v(P, o), children: /* @__PURE__ */ u.jsx("img", { src: n5, className: "settingsIcon" }) }) }),
16648
16648
  (E == null ? void 0 : E[o]) !== Ne.LOADING ? /* @__PURE__ */ u.jsx(Vt, { title: m ? z4 : W4, placement: "bottom", children: /* @__PURE__ */ u.jsx(
@@ -16701,7 +16701,7 @@ const S6 = T(V)`
16701
16701
  handleSubmit: o,
16702
16702
  isApiText: i
16703
16703
  }) => {
16704
- const { sendTrackingEvent: a } = He(hn), l = Et(s0) === Ne.LOADING, c = r.length === 0 ? i ? F4 : P4 : "";
16704
+ const { sendTrackingEvent: a } = je(hn), l = Et(s0) === Ne.LOADING, c = r.length === 0 ? i ? F4 : P4 : "";
16705
16705
  return be(() => {
16706
16706
  a(
16707
16707
  i ? vt.REQUEST_NEW_FEATURE_SHOWN : vt.REQUEST_NEW_CONNECTOR_SHOWN
@@ -16753,7 +16753,7 @@ const S6 = T(V)`
16753
16753
  )
16754
16754
  ] }) }),
16755
16755
  /* @__PURE__ */ u.jsx(V, { alignItems: "flex-end", children: /* @__PURE__ */ u.jsx(
16756
- it,
16756
+ at,
16757
16757
  {
16758
16758
  "data-testid": "submit-request-button",
16759
16759
  onClick: o,
@@ -16780,7 +16780,7 @@ const S6 = T(V)`
16780
16780
  connectorType: n,
16781
16781
  isApi: r = !1
16782
16782
  }) => {
16783
- const { sendTrackingEvent: A } = He(hn), o = uo(), i = Et(k6), a = Et(M6), s = Et(s0), [l, c] = le(""), [g, E] = le([]), [f, I] = le([]), [d, C] = le(!1), [B, h] = le(!1), p = () => {
16783
+ const { sendTrackingEvent: A } = je(hn), o = uo(), i = Et(k6), a = Et(M6), s = Et(s0), [l, c] = le(""), [g, E] = le([]), [f, I] = le([]), [d, C] = le(!1), [B, h] = le(!1), p = () => {
16784
16784
  const y = r ? LI.API : LI.CONNECTOR, m = f.map((x) => x.id);
16785
16785
  o(pl({ type: y, values: m, description: l })).unwrap().then(() => {
16786
16786
  A(
@@ -16909,7 +16909,7 @@ const S6 = T(V)`
16909
16909
  flex-direction: column;
16910
16910
  align-items: baseline;
16911
16911
  }
16912
- `, C_ = T(it)`
16912
+ `, C_ = T(at)`
16913
16913
  gap: 8px;
16914
16914
  height: 28px;
16915
16915
  color: ${ce.palette.gray.black};
@@ -16929,7 +16929,7 @@ const S6 = T(V)`
16929
16929
  height: 16px;
16930
16930
  width: 16px;
16931
16931
  `, xC = ({ isApiViewPage: e = !1, isSettingsPage: t = !1 }) => {
16932
- const { availableFeatures: n, sendTrackingEvent: r } = He(hn), { DETAILS_PAGE: A, AUTH_PAGE: o, CONNECTORS_PAGE_ADMIN_SIDE: i } = J4, a = t ? o : e ? A : i, s = np({ "settings-page": t, "api-view-page": e }), [l, c] = le(() => {
16932
+ const { availableFeatures: n, sendTrackingEvent: r } = je(hn), { DETAILS_PAGE: A, AUTH_PAGE: o, CONNECTORS_PAGE_ADMIN_SIDE: i } = J4, a = t ? o : e ? A : i, s = np({ "settings-page": t, "api-view-page": e }), [l, c] = le(() => {
16933
16933
  const f = localStorage.getItem(Wu) === "true";
16934
16934
  return (t || !f) && gA(n, ib);
16935
16935
  });
@@ -16959,7 +16959,7 @@ const S6 = T(V)`
16959
16959
  t ? null : /* @__PURE__ */ u.jsx("div", { className: "schedule-close", children: /* @__PURE__ */ u.jsx(Vt, { title: "Close", placement: "bottom", children: /* @__PURE__ */ u.jsx(nr, { onClick: E, children: /* @__PURE__ */ u.jsx(E_, {}) }) }) })
16960
16960
  ] }) : null;
16961
16961
  }, $I = () => {
16962
- const e = uo(), { connectorFunctions: t } = He(hn), [n, r] = le(!1), [A, o] = le(!1), i = Et(yQ), a = Et(Fp), s = Et(xQ), l = !!i.length, c = !!a.length, { sendTrackingEvent: g } = He(hn), E = s === Ne.LOADING;
16962
+ const e = uo(), { connectorFunctions: t } = je(hn), [n, r] = le(!1), [A, o] = le(!1), i = Et(yQ), a = Et(Fp), s = Et(xQ), l = !!i.length, c = !!a.length, { sendTrackingEvent: g } = je(hn), E = s === Ne.LOADING;
16963
16963
  be(() => {
16964
16964
  t && (e(dl(t.getInboxDetails)), e(El(t.getRoles)));
16965
16965
  }, [t, e]), be(() => {
@@ -16975,7 +16975,7 @@ const S6 = T(V)`
16975
16975
  /* @__PURE__ */ u.jsxs(Y6, { children: [
16976
16976
  /* @__PURE__ */ u.jsx(J6, { variant: "h2", children: G6 }),
16977
16977
  l && !E ? /* @__PURE__ */ u.jsx(
16978
- it,
16978
+ at,
16979
16979
  {
16980
16980
  "data-testid": "connector-available-request-new",
16981
16981
  onClick: () => {
@@ -17042,9 +17042,9 @@ const S6 = T(V)`
17042
17042
  }
17043
17043
  }
17044
17044
  `, Q_ = ({ sidebarOptions: e = [] }) => {
17045
- const { currentSideBar: t, setCurrentSideBar: n, sendTrackingEvent: r } = He(hn), A = yn(), { pathname: o } = lo();
17045
+ const { currentSideBar: t, setCurrentSideBar: n, sendTrackingEvent: r } = je(hn), A = yn(), { pathname: o } = lo();
17046
17046
  be(() => {
17047
- const s = e.find((c) => gt.BASEPATH + c.route === o), l = Object.keys(iI).find((c) => iI[c].includes(o));
17047
+ const s = e.find((c) => dt.BASEPATH + c.route === o), l = Object.keys(iI).find((c) => iI[c].includes(o));
17048
17048
  s != null && s.value && (s == null ? void 0 : s.value) !== t ? n(s.value) : l && l !== t && n(l);
17049
17049
  }, [o]);
17050
17050
  const i = (s, l, c, g) => {
@@ -17075,7 +17075,7 @@ const S6 = T(V)`
17075
17075
  width: 100%;
17076
17076
  min-height: 100%;
17077
17077
  `, b_ = () => {
17078
- const { sendTrackingEvent: e } = He(hn), t = Me(!1);
17078
+ const { sendTrackingEvent: e } = je(hn), t = Me(!1);
17079
17079
  return be(() => {
17080
17080
  t.current || (e(vt.CONNECTOR_SECTION_VIEWED), t.current = !0);
17081
17081
  }, [e]), /* @__PURE__ */ u.jsxs(m_, { children: [
@@ -17097,7 +17097,7 @@ const S6 = T(V)`
17097
17097
  /* @__PURE__ */ u.jsx(ef, { variant: "rounded", height: "10px", animation: "wave", maxWidth: "862px" })
17098
17098
  ] }, t)) }), __ = T(V)`
17099
17099
  width: 100%;
17100
- `, D_ = T(it)`
17100
+ `, D_ = T(at)`
17101
17101
  height: 32px;
17102
17102
  &:hover {
17103
17103
  background-color: #e3e9ff !important;
@@ -17105,7 +17105,7 @@ const S6 = T(V)`
17105
17105
  border: 1px solid ${ce.palette.purple.primary} !important;
17106
17106
  }
17107
17107
  `, R_ = ({ connectorName: e, connectorType: t, apiList: n, isLoading: r = !1, isEdit: A = !1 }) => {
17108
- const { sendTrackingEvent: o } = He(hn), i = y_.replace("{{connector}}", e ?? ""), [a, s] = le(!1), l = () => {
17108
+ const { sendTrackingEvent: o } = je(hn), i = y_.replace("{{connector}}", e ?? ""), [a, s] = le(!1), l = () => {
17109
17109
  o(vt.REQUEST_NEW_FEATURE_CLICKED, { connector_name: e }), s(!0);
17110
17110
  };
17111
17111
  return /* @__PURE__ */ u.jsx(__, { children: r ? /* @__PURE__ */ u.jsx(S_, {}) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
@@ -17252,14 +17252,14 @@ function L_() {
17252
17252
  case g:
17253
17253
  return Fe;
17254
17254
  default:
17255
- var at = Fe && Fe.$$typeof;
17256
- switch (at) {
17255
+ var st = Fe && Fe.$$typeof;
17256
+ switch (st) {
17257
17257
  case a:
17258
17258
  case c:
17259
17259
  case I:
17260
17260
  case f:
17261
17261
  case i:
17262
- return at;
17262
+ return st;
17263
17263
  default:
17264
17264
  return Ke;
17265
17265
  }
@@ -18312,7 +18312,7 @@ const J_ = /* @__PURE__ */ Sc(I0);
18312
18312
  function Z(Ae, ae, me) {
18313
18313
  Ae === "flexDirection" && typeof ae == "string" && (ae.indexOf("column") > -1 ? me.WebkitBoxOrient = "vertical" : me.WebkitBoxOrient = "horizontal", ae.indexOf("reverse") > -1 ? me.WebkitBoxDirection = "reverse" : me.WebkitBoxDirection = "normal"), G.hasOwnProperty(Ae) && (me[G[Ae]] = q[ae] || ae);
18314
18314
  }
18315
- }), Fe = m(Ke), at = x(function($, O) {
18315
+ }), Fe = m(Ke), st = x(function($, O) {
18316
18316
  Object.defineProperty(O, "__esModule", {
18317
18317
  value: !0
18318
18318
  }), O.default = ae;
@@ -18329,7 +18329,7 @@ const J_ = /* @__PURE__ */ Sc(I0);
18329
18329
  });
18330
18330
  });
18331
18331
  }
18332
- }), Ht = m(at), xn = x(function($, O) {
18332
+ }), Ht = m(st), xn = x(function($, O) {
18333
18333
  Object.defineProperty(O, "__esModule", {
18334
18334
  value: !0
18335
18335
  });
@@ -18761,12 +18761,12 @@ const J_ = /* @__PURE__ */ Sc(I0);
18761
18761
  ft.push(pn(Nt, sn, tt));
18762
18762
  }
18763
18763
  return ft.length ? "".concat(O, "{").concat(ft.join(""), "}") : "";
18764
- }, Mt = null, ar = function(O) {
18765
- if (Mt == null && (Mt = document.querySelector("style[data-aphrodite]"), Mt == null)) {
18764
+ }, jt = null, ar = function(O) {
18765
+ if (jt == null && (jt = document.querySelector("style[data-aphrodite]"), jt == null)) {
18766
18766
  var q = document.head || document.getElementsByTagName("head")[0];
18767
- Mt = document.createElement("style"), Mt.type = "text/css", Mt.setAttribute("data-aphrodite", ""), q.appendChild(Mt);
18767
+ jt = document.createElement("style"), jt.type = "text/css", jt.setAttribute("data-aphrodite", ""), q.appendChild(jt);
18768
18768
  }
18769
- var G = Mt.styleSheet || Mt.sheet;
18769
+ var G = jt.styleSheet || jt.sheet;
18770
18770
  if (G.insertRule) {
18771
18771
  var Z = G.cssRules.length;
18772
18772
  O.forEach(function(Ae) {
@@ -18776,7 +18776,7 @@ const J_ = /* @__PURE__ */ Sc(I0);
18776
18776
  }
18777
18777
  });
18778
18778
  } else
18779
- Mt.innerText = (Mt.innerText || "") + O.join("");
18779
+ jt.innerText = (jt.innerText || "") + O.join("");
18780
18780
  }, sr = {
18781
18781
  // With fontFamily we look for objects that are passed in and interpret
18782
18782
  // them as @font-face rules that we need to inject. The value of fontFamily
@@ -18842,7 +18842,7 @@ const J_ = /* @__PURE__ */ Sc(I0);
18842
18842
  X(O, ae);
18843
18843
  }
18844
18844
  }, W = function() {
18845
- R = [], Nn = {}, k = !1, Mt = null;
18845
+ R = [], Nn = {}, k = !1, jt = null;
18846
18846
  }, re = function(O) {
18847
18847
  delete Nn[O];
18848
18848
  }, Be = function() {
@@ -18862,7 +18862,7 @@ const J_ = /* @__PURE__ */ Sc(I0);
18862
18862
  O.length > 0 && ar(O);
18863
18863
  }, Ye = function() {
18864
18864
  return Object.keys(Nn);
18865
- }, je = function(O) {
18865
+ }, Ue = function(O) {
18866
18866
  O.forEach(function(q) {
18867
18867
  Nn[q] = !0;
18868
18868
  });
@@ -18902,7 +18902,7 @@ const J_ = /* @__PURE__ */ Sc(I0);
18902
18902
  },
18903
18903
  rehydrate: function() {
18904
18904
  var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
18905
- je(O);
18905
+ Ue(O);
18906
18906
  }
18907
18907
  }, hr = typeof window < "u" ? null : {
18908
18908
  renderStatic: function(O) {
@@ -22394,7 +22394,7 @@ const VO = {
22394
22394
  padding: 4px 16px;
22395
22395
  border-radius: 4px;
22396
22396
  background: #f6f8fc;
22397
- `, qO = T(it)`
22397
+ `, qO = T(at)`
22398
22398
  flex-shrink: 0;
22399
22399
  border-radius: 4px;
22400
22400
  border: 1px solid #d6dde8;
@@ -22510,12 +22510,12 @@ const VO = {
22510
22510
  margin: 0;
22511
22511
  }
22512
22512
  `, c8 = () => {
22513
- const { availableFeatures: e, sendTrackingEvent: t } = He(hn), n = yn(), r = Et(Xc), A = Et(Zd), o = Et(EC), i = Et(Pp), a = uo(), { id: s = "" } = co(), [l] = Yi(), c = l.get("isEdit") === "true", g = (r == null ? void 0 : r[s]) || null, E = (A == null ? void 0 : A[s]) || null;
22513
+ const { availableFeatures: e, sendTrackingEvent: t } = je(hn), n = yn(), r = Et(Xc), A = Et(Zd), o = Et(EC), i = Et(Pp), a = uo(), { id: s = "" } = co(), [l] = Yi(), c = l.get("isEdit") === "true", g = (r == null ? void 0 : r[s]) || null, E = (A == null ? void 0 : A[s]) || null;
22514
22514
  be(() => {
22515
22515
  a(c ? Ma(s) : ka(s));
22516
22516
  }, [c, a, s]);
22517
22517
  const f = (h) => {
22518
- h == null || h.stopPropagation(), t(vt.CONNECTOR_BACK_CLICKED, { connector_name: I == null ? void 0 : I.name }), n(gt.BASEPATH);
22518
+ h == null || h.stopPropagation(), t(vt.CONNECTOR_BACK_CLICKED, { connector_name: I == null ? void 0 : I.name }), n(dt.BASEPATH);
22519
22519
  }, I = c ? g : E, d = !!(I != null && I.carouselImages) && I.carouselImages.length > 0, C = o === Ne.LOADING || i === Ne.LOADING, B = gA(e, lb) && (C || d);
22520
22520
  return /* @__PURE__ */ u.jsxs(Ce.Fragment, { children: [
22521
22521
  c ? null : /* @__PURE__ */ u.jsx(xC, { isApiViewPage: !0 }),
@@ -22592,7 +22592,7 @@ const VO = {
22592
22592
  i ? null : /* @__PURE__ */ u.jsx(d8, { direction: "row", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ u.jsx("div", { className: "arrow" }) })
22593
22593
  ] }, r.replace(/\s/g, ""));
22594
22594
  }) });
22595
- }, Bd = "authSuccedded", nm = "authFaield", E8 = "token", I8 = "connector_id", lt = {
22595
+ }, Bd = "authSuccedded", nm = "authFaield", E8 = "token", I8 = "connector_id", ct = {
22596
22596
  IDLE: "idle",
22597
22597
  PENDING: "pending",
22598
22598
  OAUTH1_SUCCESS: "oauth1_success",
@@ -23492,14 +23492,14 @@ function v7() {
23492
23492
  case g:
23493
23493
  return Fe;
23494
23494
  default:
23495
- var at = Fe && Fe.$$typeof;
23496
- switch (at) {
23495
+ var st = Fe && Fe.$$typeof;
23496
+ switch (st) {
23497
23497
  case a:
23498
23498
  case c:
23499
23499
  case I:
23500
23500
  case f:
23501
23501
  case i:
23502
- return at;
23502
+ return st;
23503
23503
  default:
23504
23504
  return Ke;
23505
23505
  }
@@ -23807,7 +23807,7 @@ var P7 = function(t) {
23807
23807
  hm.Provider;
23808
23808
  var U7 = function(t) {
23809
23809
  return /* @__PURE__ */ wc(function(n, r) {
23810
- var A = He(hm);
23810
+ var A = je(hm);
23811
23811
  return t(n, A, r);
23812
23812
  });
23813
23813
  }, G7 = /* @__PURE__ */ S.createContext({}), HC = {}.hasOwnProperty, bd = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", V7 = function(t, n) {
@@ -23838,7 +23838,7 @@ var U7 = function(t) {
23838
23838
  isStringTag: typeof A == "string"
23839
23839
  }), /* @__PURE__ */ S.createElement(A, s));
23840
23840
  }
23841
- ), z7 = W7, Ve = function(t, n) {
23841
+ ), z7 = W7, He = function(t, n) {
23842
23842
  var r = arguments;
23843
23843
  if (n == null || !HC.call(n, "css"))
23844
23844
  return S.createElement.apply(void 0, r);
@@ -24329,7 +24329,7 @@ var Tm = function(t) {
24329
24329
  marginTop: a.menuGutter
24330
24330
  });
24331
24331
  }, Sm = /* @__PURE__ */ OA(null), wL = function(t) {
24332
- var n = t.children, r = t.minMenuHeight, A = t.maxMenuHeight, o = t.menuPlacement, i = t.menuPosition, a = t.menuShouldScrollIntoView, s = t.theme, l = He(Sm) || {}, c = l.setPortalPlacement, g = Me(null), E = le(A), f = mn(E, 2), I = f[0], d = f[1], C = le(null), B = mn(C, 2), h = B[0], p = B[1], Q = s.spacing.controlHeight;
24332
+ var n = t.children, r = t.minMenuHeight, A = t.maxMenuHeight, o = t.menuPlacement, i = t.menuPosition, a = t.menuShouldScrollIntoView, s = t.theme, l = je(Sm) || {}, c = l.setPortalPlacement, g = Me(null), E = le(A), f = mn(E, 2), I = f[0], d = f[1], C = le(null), B = mn(C, 2), h = B[0], p = B[1], Q = s.spacing.controlHeight;
24333
24333
  return xd(function() {
24334
24334
  var v = g.current;
24335
24335
  if (v) {
@@ -24353,7 +24353,7 @@ var Tm = function(t) {
24353
24353
  });
24354
24354
  }, TL = function(t) {
24355
24355
  var n = t.children, r = t.innerRef, A = t.innerProps;
24356
- return Ve("div", We({}, $t(t, "menu", {
24356
+ return He("div", We({}, $t(t, "menu", {
24357
24357
  menu: !0
24358
24358
  }), {
24359
24359
  ref: r
@@ -24372,7 +24372,7 @@ var Tm = function(t) {
24372
24372
  });
24373
24373
  }, DL = function(t) {
24374
24374
  var n = t.children, r = t.innerProps, A = t.innerRef, o = t.isMulti;
24375
- return Ve("div", We({}, $t(t, "menuList", {
24375
+ return He("div", We({}, $t(t, "menuList", {
24376
24376
  "menu-list": !0,
24377
24377
  "menu-list--is-multi": o
24378
24378
  }), {
@@ -24388,7 +24388,7 @@ var Tm = function(t) {
24388
24388
  });
24389
24389
  }, RL = _m, OL = _m, LL = function(t) {
24390
24390
  var n = t.children, r = n === void 0 ? "No options" : n, A = t.innerProps, o = Wr(t, mL);
24391
- return Ve("div", We({}, $t(ke(ke({}, o), {}, {
24391
+ return He("div", We({}, $t(ke(ke({}, o), {}, {
24392
24392
  children: r,
24393
24393
  innerProps: A
24394
24394
  }), "noOptionsMessage", {
@@ -24397,7 +24397,7 @@ var Tm = function(t) {
24397
24397
  }), A), r);
24398
24398
  }, NL = function(t) {
24399
24399
  var n = t.children, r = n === void 0 ? "Loading..." : n, A = t.innerProps, o = Wr(t, vL);
24400
- return Ve("div", We({}, $t(ke(ke({}, o), {}, {
24400
+ return He("div", We({}, $t(ke(ke({}, o), {}, {
24401
24401
  children: r,
24402
24402
  innerProps: A
24403
24403
  }), "loadingMessage", {
@@ -24442,7 +24442,7 @@ var Tm = function(t) {
24442
24442
  s.current = y, Q();
24443
24443
  }, [Q]);
24444
24444
  if (!n && a !== "fixed" || !B) return null;
24445
- var b = Ve("div", We({
24445
+ var b = He("div", We({
24446
24446
  ref: v
24447
24447
  }, $t(ke(ke({}, t), {}, {
24448
24448
  offset: B.offset,
@@ -24451,7 +24451,7 @@ var Tm = function(t) {
24451
24451
  }), "menuPortal", {
24452
24452
  "menu-portal": !0
24453
24453
  }), o), r);
24454
- return Ve(Sm.Provider, {
24454
+ return He(Sm.Provider, {
24455
24455
  value: I
24456
24456
  }, n ? /* @__PURE__ */ Tc(b, n) : b);
24457
24457
  }, kL = function(t) {
@@ -24465,7 +24465,7 @@ var Tm = function(t) {
24465
24465
  };
24466
24466
  }, ML = function(t) {
24467
24467
  var n = t.children, r = t.innerProps, A = t.isDisabled, o = t.isRtl;
24468
- return Ve("div", We({}, $t(t, "container", {
24468
+ return He("div", We({}, $t(t, "container", {
24469
24469
  "--is-disabled": A,
24470
24470
  "--is-rtl": o
24471
24471
  }), r), n);
@@ -24484,7 +24484,7 @@ var Tm = function(t) {
24484
24484
  });
24485
24485
  }, UL = function(t) {
24486
24486
  var n = t.children, r = t.innerProps, A = t.isMulti, o = t.hasValue;
24487
- return Ve("div", We({}, $t(t, "valueContainer", {
24487
+ return He("div", We({}, $t(t, "valueContainer", {
24488
24488
  "value-container": !0,
24489
24489
  "value-container--is-multi": A,
24490
24490
  "value-container--has-value": o
@@ -24498,7 +24498,7 @@ var Tm = function(t) {
24498
24498
  };
24499
24499
  }, VL = function(t) {
24500
24500
  var n = t.children, r = t.innerProps;
24501
- return Ve("div", We({}, $t(t, "indicatorsContainer", {
24501
+ return He("div", We({}, $t(t, "indicatorsContainer", {
24502
24502
  indicators: !0
24503
24503
  }), r), n);
24504
24504
  }, zf, HL = ["size"], WL = ["innerProps", "isRtl", "size"];
@@ -24515,7 +24515,7 @@ var YL = process.env.NODE_ENV === "production" ? {
24515
24515
  toString: zL
24516
24516
  }, Dm = function(t) {
24517
24517
  var n = t.size, r = Wr(t, HL);
24518
- return Ve("svg", We({
24518
+ return He("svg", We({
24519
24519
  height: n,
24520
24520
  width: n,
24521
24521
  viewBox: "0 0 20 20",
@@ -24524,15 +24524,15 @@ var YL = process.env.NODE_ENV === "production" ? {
24524
24524
  css: YL
24525
24525
  }, r));
24526
24526
  }, XC = function(t) {
24527
- return Ve(Dm, We({
24527
+ return He(Dm, We({
24528
24528
  size: 20
24529
- }, t), Ve("path", {
24529
+ }, t), He("path", {
24530
24530
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
24531
24531
  }));
24532
24532
  }, Rm = function(t) {
24533
- return Ve(Dm, We({
24533
+ return He(Dm, We({
24534
24534
  size: 20
24535
- }, t), Ve("path", {
24535
+ }, t), He("path", {
24536
24536
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
24537
24537
  }));
24538
24538
  }, Om = function(t, n) {
@@ -24550,16 +24550,16 @@ var YL = process.env.NODE_ENV === "production" ? {
24550
24550
  });
24551
24551
  }, JL = Om, XL = function(t) {
24552
24552
  var n = t.children, r = t.innerProps;
24553
- return Ve("div", We({}, $t(t, "dropdownIndicator", {
24553
+ return He("div", We({}, $t(t, "dropdownIndicator", {
24554
24554
  indicator: !0,
24555
24555
  "dropdown-indicator": !0
24556
- }), r), n || Ve(Rm, null));
24556
+ }), r), n || He(Rm, null));
24557
24557
  }, KL = Om, qL = function(t) {
24558
24558
  var n = t.children, r = t.innerProps;
24559
- return Ve("div", We({}, $t(t, "clearIndicator", {
24559
+ return He("div", We({}, $t(t, "clearIndicator", {
24560
24560
  indicator: !0,
24561
24561
  "clear-indicator": !0
24562
- }), r), n || Ve(XC, null));
24562
+ }), r), n || He(XC, null));
24563
24563
  }, ZL = function(t, n) {
24564
24564
  var r = t.isDisabled, A = t.theme, o = A.spacing.baseUnit, i = A.colors;
24565
24565
  return ke({
@@ -24573,7 +24573,7 @@ var YL = process.env.NODE_ENV === "production" ? {
24573
24573
  });
24574
24574
  }, $L = function(t) {
24575
24575
  var n = t.innerProps;
24576
- return Ve("span", We({}, n, $t(t, "indicatorSeparator", {
24576
+ return He("span", We({}, n, $t(t, "indicatorSeparator", {
24577
24577
  "indicator-separator": !0
24578
24578
  })));
24579
24579
  }, eN = Y7(zf || (zf = J7([`
@@ -24597,7 +24597,7 @@ var YL = process.env.NODE_ENV === "production" ? {
24597
24597
  });
24598
24598
  }, Ag = function(t) {
24599
24599
  var n = t.delay, r = t.offset;
24600
- return Ve("span", {
24600
+ return He("span", {
24601
24601
  css: /* @__PURE__ */ WC({
24602
24602
  animation: "".concat(eN, " 1s ease-in-out ").concat(n, "ms infinite;"),
24603
24603
  backgroundColor: "currentColor",
@@ -24611,20 +24611,20 @@ var YL = process.env.NODE_ENV === "production" ? {
24611
24611
  });
24612
24612
  }, nN = function(t) {
24613
24613
  var n = t.innerProps, r = t.isRtl, A = t.size, o = A === void 0 ? 4 : A, i = Wr(t, WL);
24614
- return Ve("div", We({}, $t(ke(ke({}, i), {}, {
24614
+ return He("div", We({}, $t(ke(ke({}, i), {}, {
24615
24615
  innerProps: n,
24616
24616
  isRtl: r,
24617
24617
  size: o
24618
24618
  }), "loadingIndicator", {
24619
24619
  indicator: !0,
24620
24620
  "loading-indicator": !0
24621
- }), n), Ve(Ag, {
24621
+ }), n), He(Ag, {
24622
24622
  delay: 0,
24623
24623
  offset: r
24624
- }), Ve(Ag, {
24624
+ }), He(Ag, {
24625
24625
  delay: 160,
24626
24626
  offset: !0
24627
- }), Ve(Ag, {
24627
+ }), He(Ag, {
24628
24628
  delay: 320,
24629
24629
  offset: !r
24630
24630
  }));
@@ -24654,7 +24654,7 @@ var YL = process.env.NODE_ENV === "production" ? {
24654
24654
  });
24655
24655
  }, AN = function(t) {
24656
24656
  var n = t.children, r = t.isDisabled, A = t.isFocused, o = t.innerRef, i = t.innerProps, a = t.menuIsOpen;
24657
- return Ve("div", We({
24657
+ return He("div", We({
24658
24658
  ref: o
24659
24659
  }, $t(t, "control", {
24660
24660
  control: !0,
@@ -24672,15 +24672,15 @@ var YL = process.env.NODE_ENV === "production" ? {
24672
24672
  };
24673
24673
  }, sN = function(t) {
24674
24674
  var n = t.children, r = t.cx, A = t.getStyles, o = t.getClassNames, i = t.Heading, a = t.headingProps, s = t.innerProps, l = t.label, c = t.theme, g = t.selectProps;
24675
- return Ve("div", We({}, $t(t, "group", {
24675
+ return He("div", We({}, $t(t, "group", {
24676
24676
  group: !0
24677
- }), s), Ve(i, We({}, a, {
24677
+ }), s), He(i, We({}, a, {
24678
24678
  selectProps: g,
24679
24679
  theme: c,
24680
24680
  getStyles: A,
24681
24681
  getClassNames: o,
24682
24682
  cx: r
24683
- }), l), Ve("div", null, n));
24683
+ }), l), He("div", null, n));
24684
24684
  }, lN = function(t, n) {
24685
24685
  var r = t.theme, A = r.colors, o = r.spacing;
24686
24686
  return ke({
@@ -24700,7 +24700,7 @@ var YL = process.env.NODE_ENV === "production" ? {
24700
24700
  var n = ym(t);
24701
24701
  n.data;
24702
24702
  var r = Wr(n, iN);
24703
- return Ve("div", We({}, $t(t, "groupHeading", {
24703
+ return He("div", We({}, $t(t, "groupHeading", {
24704
24704
  "group-heading": !0
24705
24705
  }), r));
24706
24706
  }, uN = sN, gN = ["innerRef", "isDisabled", "isHidden", "inputClassName"], dN = function(t, n) {
@@ -24744,11 +24744,11 @@ var YL = process.env.NODE_ENV === "production" ? {
24744
24744
  }, Lm);
24745
24745
  }, IN = function(t) {
24746
24746
  var n = t.cx, r = t.value, A = ym(t), o = A.innerRef, i = A.isDisabled, a = A.isHidden, s = A.inputClassName, l = Wr(A, gN);
24747
- return Ve("div", We({}, $t(t, "input", {
24747
+ return He("div", We({}, $t(t, "input", {
24748
24748
  "input-container": !0
24749
24749
  }), {
24750
24750
  "data-value": r || ""
24751
- }), Ve("input", We({
24751
+ }), He("input", We({
24752
24752
  className: n({
24753
24753
  input: !0
24754
24754
  }, s),
@@ -24797,32 +24797,32 @@ var YL = process.env.NODE_ENV === "production" ? {
24797
24797
  });
24798
24798
  }, Nm = function(t) {
24799
24799
  var n = t.children, r = t.innerProps;
24800
- return Ve("div", r, n);
24800
+ return He("div", r, n);
24801
24801
  }, QN = Nm, mN = Nm;
24802
24802
  function vN(e) {
24803
24803
  var t = e.children, n = e.innerProps;
24804
- return Ve("div", We({
24804
+ return He("div", We({
24805
24805
  role: "button"
24806
- }, n), t || Ve(XC, {
24806
+ }, n), t || He(XC, {
24807
24807
  size: 14
24808
24808
  }));
24809
24809
  }
24810
24810
  var bN = function(t) {
24811
24811
  var n = t.children, r = t.components, A = t.data, o = t.innerProps, i = t.isDisabled, a = t.removeProps, s = t.selectProps, l = r.Container, c = r.Label, g = r.Remove;
24812
- return Ve(l, {
24812
+ return He(l, {
24813
24813
  data: A,
24814
24814
  innerProps: ke(ke({}, $t(t, "multiValue", {
24815
24815
  "multi-value": !0,
24816
24816
  "multi-value--is-disabled": i
24817
24817
  })), o),
24818
24818
  selectProps: s
24819
- }, Ve(c, {
24819
+ }, He(c, {
24820
24820
  data: A,
24821
24821
  innerProps: ke({}, $t(t, "multiValueLabel", {
24822
24822
  "multi-value__label": !0
24823
24823
  })),
24824
24824
  selectProps: s
24825
- }, n), Ve(g, {
24825
+ }, n), He(g, {
24826
24826
  data: A,
24827
24827
  innerProps: ke(ke({}, $t(t, "multiValueRemove", {
24828
24828
  "multi-value__remove": !0
@@ -24852,7 +24852,7 @@ var bN = function(t) {
24852
24852
  });
24853
24853
  }, wN = function(t) {
24854
24854
  var n = t.children, r = t.isDisabled, A = t.isFocused, o = t.isSelected, i = t.innerRef, a = t.innerProps;
24855
- return Ve("div", We({}, $t(t, "option", {
24855
+ return He("div", We({}, $t(t, "option", {
24856
24856
  option: !0,
24857
24857
  "option--is-disabled": r,
24858
24858
  "option--is-focused": A,
@@ -24873,7 +24873,7 @@ var bN = function(t) {
24873
24873
  });
24874
24874
  }, _N = function(t) {
24875
24875
  var n = t.children, r = t.innerProps;
24876
- return Ve("div", We({}, $t(t, "placeholder", {
24876
+ return He("div", We({}, $t(t, "placeholder", {
24877
24877
  placeholder: !0
24878
24878
  }), r), n);
24879
24879
  }, DN = _N, RN = function(t, n) {
@@ -24892,7 +24892,7 @@ var bN = function(t) {
24892
24892
  });
24893
24893
  }, ON = function(t) {
24894
24894
  var n = t.children, r = t.isDisabled, A = t.innerProps;
24895
- return Ve("div", We({}, $t(t, "singleValue", {
24895
+ return He("div", We({}, $t(t, "singleValue", {
24896
24896
  "single-value": !0,
24897
24897
  "single-value--is-disabled": r
24898
24898
  }), A), n);
@@ -24969,7 +24969,7 @@ var jN = process.env.NODE_ENV === "production" ? {
24969
24969
  map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
24970
24970
  toString: MN
24971
24971
  }, UN = function(t) {
24972
- return Ve("span", We({
24972
+ return He("span", We({
24973
24973
  css: jN
24974
24974
  }, t));
24975
24975
  }, Jf = UN, GN = {
@@ -25080,18 +25080,18 @@ var jN = process.env.NODE_ENV === "production" ? {
25080
25080
  });
25081
25081
  }
25082
25082
  return ie;
25083
- }, [b, r, A, I, d, C, B, m, a, Q, z]), P = Ve(Gl, null, Ve("span", {
25083
+ }, [b, r, A, I, d, C, B, m, a, Q, z]), P = He(Gl, null, He("span", {
25084
25084
  id: "aria-selection"
25085
- }, x), Ve("span", {
25085
+ }, x), He("span", {
25086
25086
  id: "aria-focused"
25087
- }, M), Ve("span", {
25087
+ }, M), He("span", {
25088
25088
  id: "aria-results"
25089
- }, F), Ve("span", {
25089
+ }, F), He("span", {
25090
25090
  id: "aria-guidance"
25091
25091
  }, Y));
25092
- return Ve(Gl, null, Ve(Jf, {
25092
+ return He(Gl, null, He(Jf, {
25093
25093
  id: l
25094
- }, z && P), Ve(Jf, {
25094
+ }, z && P), He(Jf, {
25095
25095
  "aria-live": y,
25096
25096
  "aria-atomic": "false",
25097
25097
  "aria-relevant": "additions text",
@@ -25378,7 +25378,7 @@ var Pm = function(t) {
25378
25378
  }, XN = ["innerRef"];
25379
25379
  function KN(e) {
25380
25380
  var t = e.innerRef, n = Wr(e, XN), r = QL(n, "onExited", "in", "enter", "exit", "appear");
25381
- return Ve("input", We({
25381
+ return He("input", We({
25382
25382
  ref: t
25383
25383
  }, r, {
25384
25384
  css: /* @__PURE__ */ WC({
@@ -25528,7 +25528,7 @@ function rF(e) {
25528
25528
  }), g = function(f) {
25529
25529
  l(f), c(f);
25530
25530
  };
25531
- return Ve(Gl, null, n && Ve("div", {
25531
+ return He(Gl, null, n && He("div", {
25532
25532
  onClick: tF,
25533
25533
  css: nF
25534
25534
  }), t(g));
@@ -25546,7 +25546,7 @@ var oF = process.env.NODE_ENV === "production" ? {
25546
25546
  toString: AF
25547
25547
  }, iF = function(t) {
25548
25548
  var n = t.name, r = t.onFocus;
25549
- return Ve("input", {
25549
+ return He("input", {
25550
25550
  required: !0,
25551
25551
  name: n,
25552
25552
  tabIndex: -1,
@@ -26478,7 +26478,7 @@ var Ym = function(t) {
26478
26478
  return A.onOptionHover(K);
26479
26479
  }, Ke = te ? void 0 : function() {
26480
26480
  return A.selectOption(K);
26481
- }, Fe = "".concat(A.getElementId("option"), "-").concat(N), at = {
26481
+ }, Fe = "".concat(A.getElementId("option"), "-").concat(N), st = {
26482
26482
  id: Fe,
26483
26483
  onClick: Ke,
26484
26484
  onMouseMove: H,
@@ -26489,7 +26489,7 @@ var Ym = function(t) {
26489
26489
  // is not supported on Apple devices
26490
26490
  };
26491
26491
  return /* @__PURE__ */ S.createElement(f, We({}, I, {
26492
- innerProps: at,
26492
+ innerProps: st,
26493
26493
  data: K,
26494
26494
  isDisabled: te,
26495
26495
  isSelected: de,
@@ -26868,7 +26868,7 @@ function t1(e) {
26868
26868
  I.current = !1;
26869
26869
  };
26870
26870
  }, []);
26871
- var at = At(function(en, dn) {
26871
+ var st = At(function(en, dn) {
26872
26872
  if (!o) return dn();
26873
26873
  var Rt = o(en, dn);
26874
26874
  Rt && typeof Rt.then == "function" && Rt.then(dn, function() {
@@ -26876,7 +26876,7 @@ function t1(e) {
26876
26876
  });
26877
26877
  }, [o]);
26878
26878
  be(function() {
26879
- n === !0 && at(v, function(en) {
26879
+ n === !0 && st(v, function(en) {
26880
26880
  I.current && (h(en || []), M(!!f.current));
26881
26881
  });
26882
26882
  }, []);
@@ -26890,11 +26890,11 @@ function t1(e) {
26890
26890
  b(Rt), P(Rt), Te(J[Rt]), M(!1), _(!1);
26891
26891
  else {
26892
26892
  var or = f.current = {};
26893
- b(Rt), M(!0), _(!Y), at(Rt, function(Dn) {
26893
+ b(Rt), M(!0), _(!Y), st(Rt, function(Dn) {
26894
26894
  I && or === f.current && (f.current = void 0, M(!1), P(Rt), Te(Dn || []), _(!1), K(Dn ? ke(ke({}, J), {}, ci({}, Rt, Dn)) : J));
26895
26895
  });
26896
26896
  }
26897
- }, [A, at, Y, J, s]), xn = j ? [] : v && Y ? Qe : B || [];
26897
+ }, [A, st, Y, J, s]), xn = j ? [] : v && Y ? Qe : B || [];
26898
26898
  return ke(ke({}, g), {}, {
26899
26899
  options: xn,
26900
26900
  isLoading: x || a,
@@ -27109,7 +27109,7 @@ const ra = "table-cell-form-field", uu = "60px", gu = "24px", zF = T(pe)`
27109
27109
  border-right: var(--border-size) solid transparent;
27110
27110
  }
27111
27111
  ${({ hasError: e }) => e ? "border: var(--border-size) solid #CD3746;" : ""}
27112
- `, A1 = T(it)`
27112
+ `, A1 = T(at)`
27113
27113
  padding: 0;
27114
27114
  margin: 0;
27115
27115
  outline: 0;
@@ -28745,7 +28745,7 @@ const PP = (e, t) => {
28745
28745
  authStatus: A,
28746
28746
  authMutate: o
28747
28747
  }) => {
28748
- const { sendTrackingEvent: i, availableFeatures: a } = He(hn), [s, l] = Rd(zP, WP), [c, g] = le(!1), E = r ? r.name : "", f = r ? r.description : "", I = r ? r.isAuthenticated : !1, d = (r == null ? void 0 : r.advancedSettingsFields) ?? [], C = ep(a), B = r == null ? void 0 : r.oneClickAuthEnabled, h = (r == null ? void 0 : r.hiddenFields) ?? [], { variableConfigs: p, variableKeys: Q } = Le(() => {
28748
+ const { sendTrackingEvent: i, availableFeatures: a } = je(hn), [s, l] = Rd(zP, WP), [c, g] = le(!1), E = r ? r.name : "", f = r ? r.description : "", I = r ? r.isAuthenticated : !1, d = (r == null ? void 0 : r.advancedSettingsFields) ?? [], C = ep(a), B = r == null ? void 0 : r.oneClickAuthEnabled, h = (r == null ? void 0 : r.hiddenFields) ?? [], { variableConfigs: p, variableKeys: Q } = Le(() => {
28749
28749
  const oe = r && r.variablesConfig ? r.variablesConfig : [], U = Object.fromEntries(oe.map((j) => [j.name, j.name]));
28750
28750
  return { variableConfigs: oe, variableKeys: U };
28751
28751
  }, [r]), v = Le(() => !C || !(r != null && r.interpolationFields) ? {} : kP(r == null ? void 0 : r.interpolationFields), [r == null ? void 0 : r.interpolationFields, C]);
@@ -28908,9 +28908,9 @@ const PP = (e, t) => {
28908
28908
  ) })
28909
28909
  ] }),
28910
28910
  /* @__PURE__ */ u.jsx(ZP, { direction: "row", children: /* @__PURE__ */ u.jsx(
28911
- it,
28911
+ at,
28912
28912
  {
28913
- disabled: !z() || n || A === lt.PENDING,
28913
+ disabled: !z() || n || A === ct.PENDING,
28914
28914
  onClick: Y,
28915
28915
  children: "Click to authenticate"
28916
28916
  }
@@ -28974,7 +28974,7 @@ const PP = (e, t) => {
28974
28974
  event: vt.CONNECTOR_AUTH_PAGE_CONTACT_SUPPORT_CLICKED
28975
28975
  }
28976
28976
  ], gk = ({ connectorName: e, supportLinks: t }) => {
28977
- const { availableFeatures: n, sendTrackingEvent: r } = He(hn), A = gA(n, ab), o = ep(n), i = (a, s) => {
28977
+ const { availableFeatures: n, sendTrackingEvent: r } = je(hn), A = gA(n, ab), o = ep(n), i = (a, s) => {
28978
28978
  r(s, { source: e }), window.open(a, "_blank");
28979
28979
  };
28980
28980
  return A ? /* @__PURE__ */ u.jsx(V, { gap: "12px", children: uk.map(({ icon: a, text: s, link: l, keys: c, event: g, prefixName: E }) => {
@@ -29049,29 +29049,29 @@ const Ck = T(V)`
29049
29049
  if (!e || !e.data)
29050
29050
  return {
29051
29051
  authUrl: "",
29052
- authStatus: r ? lt.API_KEY_FAILED : n ? lt.BASIC_AUTH_FAILED : A ? lt.OAUTH1_FAILED : lt.OAUTH_FAILED
29052
+ authStatus: r ? ct.API_KEY_FAILED : n ? ct.BASIC_AUTH_FAILED : A ? ct.OAUTH1_FAILED : ct.OAUTH_FAILED
29053
29053
  };
29054
29054
  const o = e.data;
29055
29055
  return r ? {
29056
29056
  authUrl: "",
29057
29057
  id: o.id,
29058
- authStatus: lt.API_KEY_SUCCESS
29058
+ authStatus: ct.API_KEY_SUCCESS
29059
29059
  } : n ? {
29060
29060
  authUrl: "",
29061
29061
  id: o.id,
29062
- authStatus: lt.BASIC_AUTH_SUCCESS
29062
+ authStatus: ct.BASIC_AUTH_SUCCESS
29063
29063
  } : A ? {
29064
29064
  authUrl: "",
29065
29065
  id: o.id,
29066
- authStatus: lt.OAUTH1_SUCCESS
29066
+ authStatus: ct.OAUTH1_SUCCESS
29067
29067
  } : o.authorizationUrl ? {
29068
29068
  authUrl: o.authorizationUrl,
29069
29069
  id: o.id,
29070
- authStatus: lt.PENDING
29070
+ authStatus: ct.PENDING
29071
29071
  } : {
29072
29072
  authUrl: "",
29073
29073
  id: "",
29074
- authStatus: lt.OAUTH_FAILED
29074
+ authStatus: ct.OAUTH_FAILED
29075
29075
  };
29076
29076
  }, pk = async (e) => {
29077
29077
  try {
@@ -29100,7 +29100,7 @@ const Ck = T(V)`
29100
29100
  queryKey: r,
29101
29101
  queryFn: () => Promise.resolve({
29102
29102
  authUrl: "",
29103
- authStatus: lt.IDLE,
29103
+ authStatus: ct.IDLE,
29104
29104
  id: ""
29105
29105
  }),
29106
29106
  enabled: !1
@@ -29160,7 +29160,7 @@ const Ck = T(V)`
29160
29160
  n.removeQueries({ queryKey: r, exact: !0 });
29161
29161
  }, [n, r]), A;
29162
29162
  }, yk = () => {
29163
- const { sendTrackingEvent: e, availableFeatures: t } = He(hn), [n, r] = le(!1), A = Et(Xc), o = Et(Zd), i = Et(EC), a = Et(Pp), s = Me(null), l = yn(), { id: c = "" } = co(), [g] = Yi(), E = g.get("isEdit") === "true", f = (A == null ? void 0 : A[c]) || null, I = (o == null ? void 0 : o[c]) || null, d = E ? f : I, C = !!(d != null && d.showUpgradeButton), B = gA(t, cb), {
29163
+ const { sendTrackingEvent: e, availableFeatures: t } = je(hn), [n, r] = le(!1), A = Et(Xc), o = Et(Zd), i = Et(EC), a = Et(Pp), s = Me(null), l = yn(), { id: c = "" } = co(), [g] = Yi(), E = g.get("isEdit") === "true", f = (A == null ? void 0 : A[c]) || null, I = (o == null ? void 0 : o[c]) || null, d = E ? f : I, C = !!(d != null && d.showUpgradeButton), B = gA(t, cb), {
29164
29164
  data: h,
29165
29165
  mutateStatus: p,
29166
29166
  mutate: Q
@@ -29169,7 +29169,7 @@ const Ck = T(V)`
29169
29169
  onSuccess: () => {
29170
29170
  B && r(!0);
29171
29171
  }
29172
- }), v = bk({ connectorId: (h == null ? void 0 : h.id) || "", enabled: n }), { status: b } = v.data || {}, y = (h == null ? void 0 : h.authStatus) || lt.IDLE, m = (h == null ? void 0 : h.authUrl) || "", x = uo();
29172
+ }), v = bk({ connectorId: (h == null ? void 0 : h.id) || "", enabled: n }), { status: b } = v.data || {}, y = (h == null ? void 0 : h.authStatus) || ct.IDLE, m = (h == null ? void 0 : h.authUrl) || "", x = uo();
29173
29173
  be(
29174
29174
  () => () => {
29175
29175
  x(xw());
@@ -29180,7 +29180,7 @@ const Ck = T(V)`
29180
29180
  }, [E, x, c]), be(() => {
29181
29181
  let z, Y;
29182
29182
  const P = (ie) => {
29183
- s.current && ie.origin === window.location.origin && (ie.data === nm || ie.data === Bd) && (clearTimeout(z), s.current.close(), s.current = null, p(ie.data === Bd ? lt.OAUTH_SUCCESS : lt.OAUTH_FAILED));
29183
+ s.current && ie.origin === window.location.origin && (ie.data === nm || ie.data === Bd) && (clearTimeout(z), s.current.close(), s.current = null, p(ie.data === Bd ? ct.OAUTH_SUCCESS : ct.OAUTH_FAILED));
29184
29184
  };
29185
29185
  try {
29186
29186
  if (m) {
@@ -29188,10 +29188,10 @@ const Ck = T(V)`
29188
29188
  const ie = 5 * 60 * 1e3;
29189
29189
  z = setTimeout(() => {
29190
29190
  var Ee;
29191
- (Ee = s.current) == null || Ee.close(), s.current = null, p(lt.OAUTH_FAILED);
29191
+ (Ee = s.current) == null || Ee.close(), s.current = null, p(ct.OAUTH_FAILED);
29192
29192
  }, ie), Y = setInterval(() => {
29193
29193
  var Ee;
29194
- (Ee = s.current) != null && Ee.closed && (clearInterval(Y), s.current = null, p(lt.OAUTH_FAILED));
29194
+ (Ee = s.current) != null && Ee.closed && (clearInterval(Y), s.current = null, p(ct.OAUTH_FAILED));
29195
29195
  }, 500), window.addEventListener("message", P);
29196
29196
  }
29197
29197
  } catch (ie) {
@@ -29201,44 +29201,44 @@ const Ck = T(V)`
29201
29201
  window.removeEventListener("message", P), clearTimeout(z), clearInterval(Y);
29202
29202
  };
29203
29203
  }, [m, x, p]), be(() => {
29204
- b && b !== "pending" && s.current && B && (s.current.close(), s.current = null, p(b === "success" ? lt.OAUTH_SUCCESS : lt.OAUTH_FAILED));
29204
+ b && b !== "pending" && s.current && B && (s.current.close(), s.current = null, p(b === "success" ? ct.OAUTH_SUCCESS : ct.OAUTH_FAILED));
29205
29205
  }, [b, p, B]), be(() => {
29206
- switch ((y === lt.OAUTH1_SUCCESS || y === lt.OAUTH1_FAILED || y === lt.OAUTH_SUCCESS || y === lt.OAUTH_FAILED || y === lt.API_KEY_SUCCESS || y === lt.API_KEY_FAILED || y === lt.BASIC_AUTH_SUCCESS || y === lt.BASIC_AUTH_FAILED) && l(gt.BASEPATH), y) {
29207
- case lt.BASIC_AUTH_SUCCESS:
29208
- case lt.OAUTH1_SUCCESS:
29209
- case lt.OAUTH_SUCCESS: {
29206
+ switch ((y === ct.OAUTH1_SUCCESS || y === ct.OAUTH1_FAILED || y === ct.OAUTH_SUCCESS || y === ct.OAUTH_FAILED || y === ct.API_KEY_SUCCESS || y === ct.API_KEY_FAILED || y === ct.BASIC_AUTH_SUCCESS || y === ct.BASIC_AUTH_FAILED) && l(dt.BASEPATH), y) {
29207
+ case ct.BASIC_AUTH_SUCCESS:
29208
+ case ct.OAUTH1_SUCCESS:
29209
+ case ct.OAUTH_SUCCESS: {
29210
29210
  aA({ message: C ? Sf : f8, type: oc }), e(vt.CONNECTOR_AUTH_SUCCESS, {
29211
29211
  connector_name: d == null ? void 0 : d.name
29212
29212
  });
29213
29213
  break;
29214
29214
  }
29215
- case lt.BASIC_AUTH_FAILED:
29216
- case lt.OAUTH1_FAILED:
29217
- case lt.OAUTH_FAILED: {
29215
+ case ct.BASIC_AUTH_FAILED:
29216
+ case ct.OAUTH1_FAILED:
29217
+ case ct.OAUTH_FAILED: {
29218
29218
  aA({ message: C ? _f : B8, type: Po });
29219
29219
  break;
29220
29220
  }
29221
- case lt.REQUEST_FAILED: {
29221
+ case ct.REQUEST_FAILED: {
29222
29222
  aA({ message: Tf, type: Po });
29223
29223
  break;
29224
29224
  }
29225
- case lt.API_KEY_SUCCESS: {
29225
+ case ct.API_KEY_SUCCESS: {
29226
29226
  aA({ message: C ? Sf : p8, type: oc }), e(vt.CONNECTOR_AUTH_SUCCESS, {
29227
29227
  connector_name: d == null ? void 0 : d.name
29228
29228
  });
29229
29229
  break;
29230
29230
  }
29231
- case lt.API_KEY_FAILED: {
29231
+ case ct.API_KEY_FAILED: {
29232
29232
  aA({ message: C ? _f : Tf, type: Po });
29233
29233
  break;
29234
29234
  }
29235
29235
  }
29236
29236
  }, [y, l, C, d == null ? void 0 : d.name, e]);
29237
29237
  const M = i === Ne.LOADING || a === Ne.LOADING, F = [
29238
- { name: S8, route: `${gt.BASEPATH}${gt.DASHBOARD}` },
29238
+ { name: S8, route: `${dt.BASEPATH}${dt.DASHBOARD}` },
29239
29239
  {
29240
29240
  name: (d == null ? void 0 : d.name) || "",
29241
- route: `${gt.BASEPATH}${gt.API_VIEW}/${c}?isEdit=${String(E)}`
29241
+ route: `${dt.BASEPATH}${dt.API_VIEW}/${c}?isEdit=${String(E)}`
29242
29242
  },
29243
29243
  { name: rm }
29244
29244
  ];
@@ -29296,7 +29296,7 @@ const Ck = T(V)`
29296
29296
  }, _k = (e) => EQ(
29297
29297
  [
29298
29298
  {
29299
- path: gt.BASEPATH,
29299
+ path: dt.BASEPATH,
29300
29300
  element: /* @__PURE__ */ u.jsx(b_, {}),
29301
29301
  children: [
29302
29302
  {
@@ -29304,25 +29304,25 @@ const Ck = T(V)`
29304
29304
  element: /* @__PURE__ */ u.jsx($I, {})
29305
29305
  },
29306
29306
  {
29307
- path: gt.DASHBOARD,
29307
+ path: dt.DASHBOARD,
29308
29308
  element: /* @__PURE__ */ u.jsx($I, {})
29309
29309
  },
29310
29310
  {
29311
- path: gt.AGENT,
29311
+ path: dt.AGENT,
29312
29312
  element: /* @__PURE__ */ u.jsx(S4, {})
29313
29313
  },
29314
29314
  {
29315
- path: `${gt.API_VIEW}/:id`,
29315
+ path: `${dt.API_VIEW}/:id`,
29316
29316
  element: /* @__PURE__ */ u.jsx(c8, {})
29317
29317
  }
29318
29318
  ]
29319
29319
  },
29320
29320
  {
29321
- path: `${gt.CONNECTOR_SETTINGS}/:id`,
29321
+ path: `${dt.CONNECTOR_SETTINGS}/:id`,
29322
29322
  element: /* @__PURE__ */ u.jsx(yk, {})
29323
29323
  },
29324
29324
  {
29325
- path: gt.AUTH_SUCCESS,
29325
+ path: dt.AUTH_SUCCESS,
29326
29326
  element: /* @__PURE__ */ u.jsx(Sk, {})
29327
29327
  }
29328
29328
  ],
@@ -29401,12 +29401,12 @@ const Ck = T(V)`
29401
29401
  color: ${ce.palette.gray.gray2};
29402
29402
  margin-top: 8px;
29403
29403
  margin-bottom: 20px;
29404
- `, Uk = T(it)`
29404
+ `, Uk = T(at)`
29405
29405
  width: 95px;
29406
29406
  height: 32px;
29407
29407
  display: flex;
29408
29408
  align-items: center;
29409
- `, Gk = T(it)`
29409
+ `, Gk = T(at)`
29410
29410
  height: 32px;
29411
29411
  white-space: pre;
29412
29412
  display: flex;
@@ -30521,19 +30521,19 @@ function fn(e) {
30521
30521
  let o;
30522
30522
  switch (n) {
30523
30523
  case zo: {
30524
- o = ut.success(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30524
+ o = gt.success(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30525
30525
  break;
30526
30526
  }
30527
30527
  case yr: {
30528
- o = ut.error(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30528
+ o = gt.error(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30529
30529
  break;
30530
30530
  }
30531
30531
  case rE: {
30532
- o = ut.info(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30532
+ o = gt.info(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30533
30533
  break;
30534
30534
  }
30535
30535
  default: {
30536
- o = ut.info(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30536
+ o = gt.info(/* @__PURE__ */ u.jsx(ol, { message: t }), { ...A, icon: !1 });
30537
30537
  break;
30538
30538
  }
30539
30539
  }
@@ -30545,7 +30545,7 @@ function fn(e) {
30545
30545
  ), o;
30546
30546
  }
30547
30547
  function dj(e) {
30548
- ut.dismiss(e);
30548
+ gt.dismiss(e);
30549
30549
  }
30550
30550
  const Oa = {
30551
30551
  ADMIN: "Admin",
@@ -30957,7 +30957,7 @@ const Oa = {
30957
30957
  metaData: void 0,
30958
30958
  nativeIntegrations: [],
30959
30959
  suggestedAppsMap: {}
30960
- }, jt = OA(Fj), zr = _h.withTypes(), ze = wh.withTypes(), Pj = ({
30960
+ }, Mt = OA(Fj), zr = _h.withTypes(), ze = wh.withTypes(), Pj = ({
30961
30961
  children: e,
30962
30962
  baseUrls: t,
30963
30963
  availableFeatures: n,
@@ -30975,7 +30975,7 @@ const Oa = {
30975
30975
  return () => clearTimeout(E);
30976
30976
  }
30977
30977
  }, [A, g]), /* @__PURE__ */ u.jsx(
30978
- jt.Provider,
30978
+ Mt.Provider,
30979
30979
  {
30980
30980
  value: {
30981
30981
  currentConnector: a,
@@ -31011,7 +31011,7 @@ const Oa = {
31011
31011
  }, Uj = "Request new app", Gj = "Request new feature", Vj = "Tell us your use case and we will enhance the App for you within a few working days.", Hj = "Select a feature", Wj = "Select an App", zj = "Feel free to add specific details (Optional)", Yj = "Request new App", Jj = "Request submitted", Xj = "Your request has been submitted successfully. We will get back to you within a few working days.", Kj = "Done", qj = "Start setup", Zj = "Edit app", $j = "Enable", eU = "Disable", bB = {
31012
31012
  CONNECTOR: "connector",
31013
31013
  API: "api"
31014
- }, _1 = "Can’t find the App you’re looking for?", D1 = "Tell us what you need, and we'll create a custom App just for you within a few working days.", tU = "Failed to submit the request. Please try again.", dt = {
31014
+ }, _1 = "Can’t find the App you’re looking for?", D1 = "Tell us what you need, and we'll create a custom App just for you within a few working days.", tU = "Failed to submit the request. Please try again.", it = {
31015
31015
  REQUEST_NEW_CLICKED: "request_new_connector_clicked",
31016
31016
  TOGGLE_ENABLED: "connector_enabled_clicked",
31017
31017
  TOGGLE_DISABLED: "connector_disabled_clicked",
@@ -31044,7 +31044,10 @@ const Oa = {
31044
31044
  CONNECTOR_AUTH_SUCCESS: "connector_auth_success",
31045
31045
  CONNECTOR_SECTION_VIEWED: "connector_section_viewed",
31046
31046
  INTEGRATION_APP_CARD_CLICK: "integration_app_card_click",
31047
- APP_ACTIVATION_VISIBILITY_SAVED: "app_activation_visibility_saved"
31047
+ APP_ACTIVATION_VISIBILITY_SAVED: "app_activation_visibility_saved",
31048
+ LOOKUP_CONFIG_CLICKED: "clicked_on_lookup_config",
31049
+ LOOKUP_FIELD_CLICKED: "clicked_on_lookup_field",
31050
+ LOOKUP_SAVED: "saved_lookup_config"
31048
31051
  }, nU = {
31049
31052
  AUTH_PAGE: "auth_page",
31050
31053
  DETAILS_PAGE: "details_page",
@@ -31061,7 +31064,7 @@ const Oa = {
31061
31064
  transform: translate(0px, -50%);
31062
31065
  }
31063
31066
  }
31064
- `, rU = T(it)`
31067
+ `, rU = T(at)`
31065
31068
  height: 32px;
31066
31069
  background-color: white;
31067
31070
  &:hover {
@@ -31079,7 +31082,7 @@ const Oa = {
31079
31082
  border: 1px solid ${ce.palette.gray.gray6};
31080
31083
  border-radius: 8px;
31081
31084
  box-sizing: border-box;
31082
- `, La = () => /* @__PURE__ */ u.jsx(V, { marginTop: "28px", gap: "12px", "data-testid": "loading", flexDirection: "row", flexWrap: "wrap", children: Array(6).fill(0).map((e, t) => /* @__PURE__ */ u.jsx(oU, { justifyContent: "center", children: /* @__PURE__ */ u.jsx(AU, { variant: "rounded", maxWidth: "260px", height: "60px", animation: "wave" }) }, t)) }), O1 = (e) => e.connectorLirary.connectorList, qo = (e) => e.connectorLirary.connectors, AE = (e) => e.connectorLirary.connectorsApiStatus, L1 = (e) => e.connectorLirary.currentUpdatingConnectors, Rs = (e) => e.connectorLirary.connectorDetailApiStatus, oE = (e) => e.connectorLirary.rolesAndPermissions, iU = (e) => e.connectorLirary.updateEnableConnectorsApiStatus, aU = (e) => e.connectorLirary.cardCustomFields, sU = (e) => e.connectorLirary.cardCustomFieldsApiStatus, lU = (e) => e.connectorLirary.notAuthenticatedConnectors, cU = (e) => e.connectorLirary.requireUpgradeConnectors, uU = (e) => e.connectorLirary.enableCustomCardApiStatus, gU = (e) => e.connectorLirary.updateConnectorByIdApiStatus, dU = "Visibility not set", N1 = "Configure visibility settings", CU = "Contact your admin to configure visibility", EU = "Select inbox(es)", IU = "Select the inbox(es)", fU = "Select the role", BU = "Select role", yB = "inbox", hU = "roles", pU = "Close", QU = "${{connector}}", mU = "Visibility settings saved", vU = "Some error occured. Please contact support@hiverhq.com", bU = "Selecting any lower role will automatically select the roles above it", yU = "Loading custom fields...", xU = "Save", xB = "enabled", wB = "disabled", wU = "Select atleast one field to save", iE = "New", TU = "Upgrade now", SU = "Authentication failed", _U = "More info about the current updates that will be there in this app", DU = "App's visibility & access", RU = "Set the card & field visibility across shared mailboxes and roles to enable the connector", OU = "Customer identity mapping", LU = "Configure which Hiver conversation attribute is used to look up the matching record in the connected app.", NU = "Edit", FU = "Save", PU = "Matches with %s's", kU = "Customer identity mapping saved", MU = "Failed to save. Please try again.", jU = T(pe)`
31085
+ `, La = () => /* @__PURE__ */ u.jsx(V, { marginTop: "28px", gap: "12px", "data-testid": "loading", flexDirection: "row", flexWrap: "wrap", children: Array(6).fill(0).map((e, t) => /* @__PURE__ */ u.jsx(oU, { justifyContent: "center", children: /* @__PURE__ */ u.jsx(AU, { variant: "rounded", maxWidth: "260px", height: "60px", animation: "wave" }) }, t)) }), O1 = (e) => e.connectorLirary.connectorList, qo = (e) => e.connectorLirary.connectors, AE = (e) => e.connectorLirary.connectorsApiStatus, L1 = (e) => e.connectorLirary.currentUpdatingConnectors, Rs = (e) => e.connectorLirary.connectorDetailApiStatus, oE = (e) => e.connectorLirary.rolesAndPermissions, iU = (e) => e.connectorLirary.updateEnableConnectorsApiStatus, aU = (e) => e.connectorLirary.cardCustomFields, sU = (e) => e.connectorLirary.cardCustomFieldsApiStatus, lU = (e) => e.connectorLirary.notAuthenticatedConnectors, cU = (e) => e.connectorLirary.requireUpgradeConnectors, uU = (e) => e.connectorLirary.enableCustomCardApiStatus, gU = (e) => e.connectorLirary.updateConnectorByIdApiStatus, dU = "Visibility not set", N1 = "Configure visibility settings", CU = "Contact your admin to configure visibility", EU = "Select inbox(es)", IU = "Select the inbox(es)", fU = "Select the role", BU = "Select role", yB = "inbox", hU = "roles", pU = "Close", QU = "${{connector}}", mU = "Visibility settings saved", vU = "Some error occured. Please contact support@hiverhq.com", bU = "Selecting any lower role will automatically select the roles above it", yU = "Loading custom fields...", xU = "Save", xB = "enabled", wB = "disabled", wU = "Select atleast one field to save", iE = "New", TU = "Upgrade now", SU = "Authentication failed", _U = "More info about the current updates that will be there in this app", DU = "App's visibility & access", RU = "Set the card & field visibility across shared mailboxes and roles to enable the connector", OU = "Customer identity mapping", LU = "Choose how Hiver should identify customers when fetching data from connected apps.", NU = "Edit", FU = "Save", PU = "Matches with %s's", kU = "Customer identity mapping saved", MU = "Failed to save. Please try again.", jU = T(pe)`
31083
31086
  min-height: 506px;
31084
31087
  width: 462px;
31085
31088
  padding: 32px;
@@ -31102,10 +31105,10 @@ const Oa = {
31102
31105
  `, WU = T(V)`
31103
31106
  flex-direction: column;
31104
31107
  height: 100%;
31105
- `, zU = T(it)`
31108
+ `, zU = T(at)`
31106
31109
  height: 32px;
31107
31110
  font-size: 13px;
31108
- `, YU = T(it)`
31111
+ `, YU = T(at)`
31109
31112
  height: 32px;
31110
31113
  `, JU = T(V)`
31111
31114
  flex-direction: row;
@@ -31143,7 +31146,7 @@ const Oa = {
31143
31146
  showNewChip: g,
31144
31147
  onClick: E
31145
31148
  }) => {
31146
- const { connectorFunctions: f } = He(jt), I = a === !1, d = () => {
31149
+ const { connectorFunctions: f } = je(Mt), I = a === !1, d = () => {
31147
31150
  if (!l)
31148
31151
  return null;
31149
31152
  switch (!0) {
@@ -31198,13 +31201,13 @@ const Oa = {
31198
31201
  e
31199
31202
  ) });
31200
31203
  }, SB = ({ showSuggestedApps: e }) => {
31201
- const { sendTrackingEvent: t, availableFeatures: n, suggestedAppsMap: r = {} } = He(jt), A = yn(), o = ze(v1), i = ze(qo), a = ze(Ds), s = ze(NM), l = (c) => {
31204
+ const { sendTrackingEvent: t, availableFeatures: n, suggestedAppsMap: r = {} } = je(Mt), A = yn(), o = ze(v1), i = ze(qo), a = ze(Ds), s = ze(NM), l = (c) => {
31202
31205
  var I;
31203
31206
  const g = m1({ isTemplate: !0 }), E = (I = a == null ? void 0 : a[c]) == null ? void 0 : I.name, f = nE(i || {});
31204
- t(dt.LIBRARY_CARD_CLICKED, {
31207
+ t(it.LIBRARY_CARD_CLICKED, {
31205
31208
  connector_name: E,
31206
31209
  ...f
31207
- }), t(dt.INTEGRATION_APP_CARD_CLICK, {
31210
+ }), t(it.INTEGRATION_APP_CARD_CLICK, {
31208
31211
  app_name: E,
31209
31212
  app_state: g,
31210
31213
  ...f
@@ -31236,7 +31239,7 @@ const Oa = {
31236
31239
  const A = yn(), o = () => {
31237
31240
  A(`${rt.BASEPATH}${rt.CONNECTOR_SETTINGS}/${e}?isEdit=true`);
31238
31241
  }, i = () => r ? null : /* @__PURE__ */ u.jsx(
31239
- it,
31242
+ at,
31240
31243
  {
31241
31244
  size: "small",
31242
31245
  variant: "outlined",
@@ -31278,9 +31281,9 @@ const Oa = {
31278
31281
  return null;
31279
31282
  }
31280
31283
  }, eG = () => {
31281
- const { sendTrackingEvent: e } = He(jt), t = ze(O1), n = ze(qo), r = ze(lU), A = ze(cU), o = yn(), i = (a) => {
31284
+ const { sendTrackingEvent: e } = je(Mt), t = ze(O1), n = ze(qo), r = ze(lU), A = ze(cU), o = yn(), i = (a) => {
31282
31285
  const { id: s, name: l, isAuthenticated: c, showUpgradeButton: g, isEnabled: E } = a, f = m1({ connector: a }), I = !c || E && g ? 0 : 1, d = nE(n || {});
31283
- e(dt.INTEGRATION_APP_CARD_CLICK, {
31286
+ e(it.INTEGRATION_APP_CARD_CLICK, {
31284
31287
  app_name: l,
31285
31288
  app_state: f,
31286
31289
  ...d
@@ -31372,10 +31375,10 @@ const Oa = {
31372
31375
  handleSubmit: o,
31373
31376
  isApiText: i
31374
31377
  }) => {
31375
- const { sendTrackingEvent: a } = He(jt), l = ze(P1) === ye.LOADING, c = r.length === 0 ? i ? Hj : Wj : "";
31378
+ const { sendTrackingEvent: a } = je(Mt), l = ze(P1) === ye.LOADING, c = r.length === 0 ? i ? Hj : Wj : "";
31376
31379
  return be(() => {
31377
31380
  a(
31378
- i ? dt.REQUEST_NEW_FEATURE_SHOWN : dt.REQUEST_NEW_CONNECTOR_SHOWN
31381
+ i ? it.REQUEST_NEW_FEATURE_SHOWN : it.REQUEST_NEW_CONNECTOR_SHOWN
31379
31382
  );
31380
31383
  }, [a, i]), /* @__PURE__ */ u.jsx(V, { "data-testid": "request-panel", children: /* @__PURE__ */ u.jsxs(V, { padding: "30px", height: "100%", children: [
31381
31384
  /* @__PURE__ */ u.jsx(V, { width: "440px", height: "100%", children: /* @__PURE__ */ u.jsxs(V, { gap: "14px", children: [
@@ -31424,7 +31427,7 @@ const Oa = {
31424
31427
  )
31425
31428
  ] }) }),
31426
31429
  /* @__PURE__ */ u.jsx(V, { alignItems: "flex-end", children: /* @__PURE__ */ u.jsx(
31427
- it,
31430
+ at,
31428
31431
  {
31429
31432
  "data-testid": "submit-request-button",
31430
31433
  onClick: o,
@@ -31440,7 +31443,7 @@ const Oa = {
31440
31443
  .request-new-connector-img {
31441
31444
  height: 500px;
31442
31445
  }
31443
- `, iG = T(it)`
31446
+ `, iG = T(at)`
31444
31447
  &:hover {
31445
31448
  background-color: #e3e9ff !important;
31446
31449
  color: ${ce.palette.purple.primary} !important;
@@ -31461,11 +31464,11 @@ const Oa = {
31461
31464
  requestOptions: n,
31462
31465
  isApi: r = !1
31463
31466
  }) => {
31464
- const { sendTrackingEvent: A } = He(jt), o = zr(), i = ze(P1), [a, s] = le(""), [l, c] = le([]), [g, E] = le(!1), [f, I] = le(!1), d = () => {
31467
+ const { sendTrackingEvent: A } = je(Mt), o = zr(), i = ze(P1), [a, s] = le(""), [l, c] = le([]), [g, E] = le(!1), [f, I] = le(!1), d = () => {
31465
31468
  const p = r ? bB.API : bB.CONNECTOR, Q = l.map((v) => v.id);
31466
31469
  o(jl({ type: p, values: Q, description: a })).unwrap().then(() => {
31467
31470
  A(
31468
- r ? dt.REQUEST_NEW_FEATURE_SUBMIT_CLICKED : dt.REQUEST_NEW_CONNECTOR_SUBMIT_CLICKED
31471
+ r ? it.REQUEST_NEW_FEATURE_SUBMIT_CLICKED : it.REQUEST_NEW_CONNECTOR_SUBMIT_CLICKED
31469
31472
  ), I(!0);
31470
31473
  }).catch(() => {
31471
31474
  fn({ message: tU, type: yr });
@@ -31478,11 +31481,11 @@ const Oa = {
31478
31481
  }, [l, a]);
31479
31482
  const C = f && i !== ye.LOADING, B = (p) => {
31480
31483
  p || A(
31481
- r ? dt.REQUEST_NEW_FEATURE_CLOSE_CLICKED : dt.REQUEST_NEW_CONNECTOR_CLOSE_CLICKED
31484
+ r ? it.REQUEST_NEW_FEATURE_CLOSE_CLICKED : it.REQUEST_NEW_CONNECTOR_CLOSE_CLICKED
31482
31485
  ), t(p);
31483
31486
  }, h = () => {
31484
31487
  t(!1), A(
31485
- r ? dt.REQUEST_NEW_FEATURE_DONE_CLICKED : dt.REQUEST_NEW_CONNECTOR_DONE_CLICKED
31488
+ r ? it.REQUEST_NEW_FEATURE_DONE_CLICKED : it.REQUEST_NEW_CONNECTOR_DONE_CLICKED
31486
31489
  );
31487
31490
  };
31488
31491
  return /* @__PURE__ */ u.jsxs(Eu, { shown: e, setShown: B, showCloseButton: !0, children: [
@@ -31549,7 +31552,7 @@ const Oa = {
31549
31552
  flex-direction: column;
31550
31553
  align-items: baseline;
31551
31554
  }
31552
- `, _G = T(it)`
31555
+ `, _G = T(at)`
31553
31556
  gap: 8px;
31554
31557
  height: 28px;
31555
31558
  color: ${ce.palette.gray.black};
@@ -31569,7 +31572,7 @@ const Oa = {
31569
31572
  height: 16px;
31570
31573
  width: 16px;
31571
31574
  `, lE = ({ isApiViewPage: e = !1, isSettingsPage: t = !1 }) => {
31572
- const { availableFeatures: n, sendTrackingEvent: r } = He(jt), { DETAILS_PAGE: A, AUTH_PAGE: o, CONNECTORS_PAGE_ADMIN_SIDE: i } = nU, a = t ? o : e ? A : i, s = p1({ "settings-page": t }), [l, c] = le(() => {
31575
+ const { availableFeatures: n, sendTrackingEvent: r } = je(Mt), { DETAILS_PAGE: A, AUTH_PAGE: o, CONNECTORS_PAGE_ADMIN_SIDE: i } = nU, a = t ? o : e ? A : i, s = p1({ "settings-page": t }), [l, c] = le(() => {
31573
31576
  const f = localStorage.getItem(dg) === "true";
31574
31577
  return (t || !f) && xr(n, Zk);
31575
31578
  });
@@ -31577,11 +31580,11 @@ const Oa = {
31577
31580
  localStorage.getItem(dg) === "true" && !t && c(!1);
31578
31581
  }, [t]);
31579
31582
  const g = () => {
31580
- window.open(xG, "_blank"), r(dt.SCHEDULE_CALL_CLICKED, {
31583
+ window.open(xG, "_blank"), r(it.SCHEDULE_CALL_CLICKED, {
31581
31584
  source: a
31582
31585
  });
31583
31586
  }, E = () => {
31584
- localStorage.setItem(dg, "true"), c(!1), r(dt.SCHEDULE_CALL_CROSS_CLICKED, {
31587
+ localStorage.setItem(dg, "true"), c(!1), r(it.SCHEDULE_CALL_CROSS_CLICKED, {
31585
31588
  source: a
31586
31589
  });
31587
31590
  };
@@ -31667,7 +31670,7 @@ const Oa = {
31667
31670
  /* @__PURE__ */ u.jsx(f2, { spacing: 0.5, sx: { maxHeight: "480px" }, children: c ? /* @__PURE__ */ u.jsx(ue, { variant: "body2", sx: { padding: ce.spacing(0, 2.5) }, children: r }) : l.map(s) })
31668
31671
  ] });
31669
31672
  }, FG = () => {
31670
- const { nativeIntegrations: e, availableFeatures: t } = He(jt), [n, r] = le(!1), [A, o] = le(null), [i, a] = le(!1), s = yn();
31673
+ const { nativeIntegrations: e, availableFeatures: t } = je(Mt), [n, r] = le(!1), [A, o] = le(null), [i, a] = le(!1), s = yn();
31671
31674
  e.sort((E, f) => E.name.localeCompare(f.name));
31672
31675
  const l = (E, f, I) => {
31673
31676
  f ? (r(!0), o(E), a(!!I)) : s(`${rt.BASEPATH}${rt.NATIVE_INTEGRATION}/${E}?deprecated=${!!I}`);
@@ -31723,7 +31726,7 @@ const Oa = {
31723
31726
  }, [r, n, e, t]), o = A.length > 0;
31724
31727
  return { requestOptions: A, requestable: o };
31725
31728
  }, _B = () => {
31726
- const e = zr(), { sendTrackingEvent: t, gainsightIdentify: n } = He(jt), { nativeIntegrations: r, availableFeatures: A, suggestedAppsMap: o = {} } = He(jt), [i, a] = le(!1), s = Me(!1), l = ze(qo), c = ze(O1), g = ze(v1), E = ze(AE), f = ze(LM), { requestOptions: I, requestable: d } = cE({ isApi: !1 }), C = !!c.length, B = !!g.length, h = E === ye.LOADING, p = f === ye.LOADING;
31729
+ const e = zr(), { sendTrackingEvent: t, gainsightIdentify: n } = je(Mt), { nativeIntegrations: r, availableFeatures: A, suggestedAppsMap: o = {} } = je(Mt), [i, a] = le(!1), s = Me(!1), l = ze(qo), c = ze(O1), g = ze(v1), E = ze(AE), f = ze(LM), { requestOptions: I, requestable: d } = cE({ isApi: !1 }), C = !!c.length, B = !!g.length, h = E === ye.LOADING, p = f === ye.LOADING;
31727
31730
  be(() => {
31728
31731
  (async () => {
31729
31732
  const m = performance.now();
@@ -31743,7 +31746,7 @@ const Oa = {
31743
31746
  return nE(l);
31744
31747
  }, [l, E]);
31745
31748
  be(() => {
31746
- !s.current && Q && (t(dt.CONNECTOR_SECTION_VIEWED, Q), n({
31749
+ !s.current && Q && (t(it.CONNECTOR_SECTION_VIEWED, Q), n({
31747
31750
  ...Q,
31748
31751
  // stringifying it because GX attributes don't accept objects or arrays
31749
31752
  apps_auth_status: JSON.stringify(Q.apps_auth_status),
@@ -31751,7 +31754,7 @@ const Oa = {
31751
31754
  }), s.current = !0);
31752
31755
  }, [t, Q, n]);
31753
31756
  const v = (m, x = !1) => {
31754
- a(m), x && t(dt.REQUEST_NEW_CLICKED);
31757
+ a(m), x && t(it.REQUEST_NEW_CLICKED);
31755
31758
  }, b = r == null ? void 0 : r.filter(
31756
31759
  (m) => Q1(m, A)
31757
31760
  ), y = g == null ? void 0 : g.some((m) => o[m]);
@@ -31821,7 +31824,7 @@ const Oa = {
31821
31824
  /* @__PURE__ */ u.jsx(DB, { variant: "rounded", height: "10px", animation: "wave", maxWidth: "862px" })
31822
31825
  ] }, t)) }), GG = T(V)`
31823
31826
  width: 100%;
31824
- `, VG = T(it)`
31827
+ `, VG = T(at)`
31825
31828
  height: 32px;
31826
31829
  &:hover {
31827
31830
  background-color: #e3e9ff !important;
@@ -31829,8 +31832,8 @@ const Oa = {
31829
31832
  border: 1px solid ${ce.palette.purple.primary} !important;
31830
31833
  }
31831
31834
  `, HG = ({ connectorName: e, connectorType: t, apiList: n, isLoading: r = !1, isEdit: A = !1 }) => {
31832
- const { sendTrackingEvent: o } = He(jt), i = PG.replace("{{connector}}", e ?? ""), [a, s] = le(!1), { requestOptions: l, requestable: c } = cE({ isApi: !0, connectorType: t }), g = () => {
31833
- o(dt.REQUEST_NEW_FEATURE_CLICKED, { connector_name: e }), s(!0);
31835
+ const { sendTrackingEvent: o } = je(Mt), i = PG.replace("{{connector}}", e ?? ""), [a, s] = le(!1), { requestOptions: l, requestable: c } = cE({ isApi: !0, connectorType: t }), g = () => {
31836
+ o(it.REQUEST_NEW_FEATURE_CLICKED, { connector_name: e }), s(!0);
31834
31837
  };
31835
31838
  return /* @__PURE__ */ u.jsx(GG, { children: r ? /* @__PURE__ */ u.jsx(UG, {}) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
31836
31839
  /* @__PURE__ */ u.jsx(
@@ -31976,7 +31979,7 @@ const Oa = {
31976
31979
  transform: rotate(360deg);
31977
31980
  }
31978
31981
  }
31979
- `, qG = T(it)`
31982
+ `, qG = T(at)`
31980
31983
  white-space: pre;
31981
31984
  `, ZG = T(gi)`
31982
31985
  margin-left: 12px;
@@ -32006,7 +32009,7 @@ const Oa = {
32006
32009
  /* @__PURE__ */ u.jsx(ue, { className: "pb-1", variant: "h2", children: i }),
32007
32010
  /* @__PURE__ */ u.jsx(ue, { variant: "body2", children: nV })
32008
32011
  ] }),
32009
- /* @__PURE__ */ u.jsx("div", { className: "items-start", children: /* @__PURE__ */ u.jsx(it, { onClick: o, children: rV }) })
32012
+ /* @__PURE__ */ u.jsx("div", { className: "items-start", children: /* @__PURE__ */ u.jsx(at, { onClick: o, children: rV }) })
32010
32013
  ] }),
32011
32014
  /* @__PURE__ */ u.jsx(AV, { children: /* @__PURE__ */ u.jsx("img", { className: "connector-enabled-img", src: A, alt: "App enabled" }) })
32012
32015
  ] });
@@ -32048,7 +32051,7 @@ const Oa = {
32048
32051
  }
32049
32052
  }
32050
32053
  `, uV = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='7.48148'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3c/svg%3e", gV = ({ field: e, toggleSelected: t, hideNewChip: n }) => {
32051
- const { availableFeatures: r } = He(jt), { key: A, label: o, enabled: i, isFieldNew: a } = e, { attributes: s, listeners: l, setNodeRef: c, transform: g, transition: E } = r0({ id: A }), f = Me(null), [I, d] = le(!1), C = cs(r) && a && !n, B = {
32054
+ const { availableFeatures: r } = je(Mt), { key: A, label: o, enabled: i, isFieldNew: a } = e, { attributes: s, listeners: l, setNodeRef: c, transform: g, transition: E } = r0({ id: A }), f = Me(null), [I, d] = le(!1), C = cs(r) && a && !n, B = {
32052
32055
  transform: Ni.Transform.toString(g),
32053
32056
  transition: E
32054
32057
  };
@@ -32334,7 +32337,7 @@ const Oa = {
32334
32337
  fields: a,
32335
32338
  setVisitedFieldVisTab: s
32336
32339
  }) => {
32337
- const { availableFeatures: l, sendTrackingEvent: c } = He(jt), g = zr(), E = ze(qo), f = ze(oE) ?? [], I = ze(Iu) ?? [], d = ze(aU), C = ze(iU), { userId: B } = EA() || {}, [h, p] = le(
32340
+ const { availableFeatures: l, sendTrackingEvent: c } = je(Mt), g = zr(), E = ze(qo), f = ze(oE) ?? [], I = ze(Iu) ?? [], d = ze(aU), C = ze(iU), { userId: B } = EA() || {}, [h, p] = le(
32338
32341
  () => (I == null ? void 0 : I.filter((D) => n == null ? void 0 : n.includes(D.id))) ?? []
32339
32342
  ), [Q, v] = le(
32340
32343
  () => (f == null ? void 0 : f.find((D) => A == null ? void 0 : A.includes(D.name))) ?? {}
@@ -32375,11 +32378,11 @@ const Oa = {
32375
32378
  (H) => {
32376
32379
  var xn;
32377
32380
  if (H.id === t) return !1;
32378
- const { email: Ke, chat: Fe } = H.inboxes, at = !!(((Ke == null ? void 0 : Ke.length) ?? 0) + ((Fe == null ? void 0 : Fe.length) ?? 0)), Ht = !!((xn = H == null ? void 0 : H.roles) != null && xn.length);
32379
- return at && Ht;
32381
+ const { email: Ke, chat: Fe } = H.inboxes, st = !!(((Ke == null ? void 0 : Ke.length) ?? 0) + ((Fe == null ? void 0 : Fe.length) ?? 0)), Ht = !!((xn = H == null ? void 0 : H.roles) != null && xn.length);
32382
+ return st && Ht;
32380
32383
  }
32381
32384
  );
32382
- c(dt.CARD_VISIBILITY_UPDATED, {
32385
+ c(it.CARD_VISIBILITY_UPDATED, {
32383
32386
  new_status: J.length && (Q != null && Q.name) ? xB : wB,
32384
32387
  pre_status: n != null && n.length && (f != null && f.length) ? xB : wB,
32385
32388
  connector_name: te,
@@ -32392,9 +32395,9 @@ const Oa = {
32392
32395
  fn({ message: vU, type: yr });
32393
32396
  }).finally(() => e());
32394
32397
  }, U = () => {
32395
- e(), c(dt.CARD_VISIBILITY_UPDATE_CLOSED);
32398
+ e(), c(it.CARD_VISIBILITY_UPDATE_CLOSED);
32396
32399
  }, j = (D, N) => {
32397
- x(N), N === Io.FIELD_VISIBILITY.ID && (c(dt.CONNECTOR_VISIBILITY_FIELD_TAB_CLICKED), s(!0));
32400
+ x(N), N === Io.FIELD_VISIBILITY.ID && (c(it.CONNECTOR_VISIBILITY_FIELD_TAB_CLICKED), s(!0));
32398
32401
  }, _ = (D, N) => {
32399
32402
  var K;
32400
32403
  const J = (K = Object.values(Io).find((te) => te.ID === D)) == null ? void 0 : K.LABEL;
@@ -32486,7 +32489,7 @@ const wV = T(nr)`
32486
32489
  }
32487
32490
  `, OB = ({ infoCard: e, currentConnectorId: t, setShowEnabledModal: n }) => {
32488
32491
  var F, z;
32489
- const r = zr(), A = ((F = e.inboxes) == null ? void 0 : F.email) || [], o = ((z = e.inboxes) == null ? void 0 : z.chat) || [], i = e.roles ?? [], a = e.fields ?? [], { isCardNew: s = !1 } = e, l = A.length + o.length, c = l > 0 && i.length > 0, [g, E] = le(!1), [f, I] = le(!1), { availableFeatures: d, userPermissions: C, sendTrackingEvent: B } = He(jt), h = TM(C), p = ze(uU), Q = Le(
32492
+ const r = zr(), A = ((F = e.inboxes) == null ? void 0 : F.email) || [], o = ((z = e.inboxes) == null ? void 0 : z.chat) || [], i = e.roles ?? [], a = e.fields ?? [], { isCardNew: s = !1 } = e, l = A.length + o.length, c = l > 0 && i.length > 0, [g, E] = le(!1), [f, I] = le(!1), { availableFeatures: d, userPermissions: C, sendTrackingEvent: B } = je(Mt), h = TM(C), p = ze(uU), Q = Le(
32490
32493
  () => Object.values(p).some((Y) => Y === ye.LOADING),
32491
32494
  [p]
32492
32495
  ), v = e.cardKey ? p[e.cardKey] === ye.LOADING : !1, { userId: b } = EA() || {}, y = (Y) => {
@@ -32494,7 +32497,7 @@ const wV = T(nr)`
32494
32497
  }, m = () => {
32495
32498
  e.isEnabledCustomCard ? E(!0) : r(Fl({ connectorId: t, data: e })).unwrap().then(() => {
32496
32499
  E(!0);
32497
- }), B(dt.CONFIGURE_VISIBILITY_CLICKED);
32500
+ }), B(it.CONFIGURE_VISIBILITY_CLICKED);
32498
32501
  }, x = Le(
32499
32502
  () => cs(d) && s && b && e.isEnabledCustomCard && !fV(e.id, b),
32500
32503
  /* eslint-disable-next-line react-hooks/exhaustive-deps */
@@ -32613,9 +32616,9 @@ const wV = T(nr)`
32613
32616
  isEdit: n = !1,
32614
32617
  isConnectorCard: r = !1
32615
32618
  }) => {
32616
- const { sendTrackingEvent: A } = He(jt), { id: o, name: i, logo: a, description: s, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = ze(L1), f = ze(AE), I = ze(Rs), [d, C] = le(!1), B = zr(), h = yn(), p = (P, ie) => {
32619
+ const { sendTrackingEvent: A } = je(Mt), { id: o, name: i, logo: a, description: s, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = ze(L1), f = ze(AE), I = ze(Rs), [d, C] = le(!1), B = zr(), h = yn(), p = (P, ie) => {
32617
32620
  P == null || P.stopPropagation(), B(Ha({ id: ie, enabled: P.target.checked })).unwrap().then(() => {
32618
- P.target.checked ? A(dt.TOGGLE_ENABLED, { connector_name: i }) : (A(dt.TOGGLE_DISABLED, { connector_name: i }), fn({
32621
+ P.target.checked ? A(it.TOGGLE_ENABLED, { connector_name: i }) : (A(it.TOGGLE_DISABLED, { connector_name: i }), fn({
32619
32622
  message: w1,
32620
32623
  type: rE
32621
32624
  }));
@@ -32626,9 +32629,9 @@ const wV = T(nr)`
32626
32629
  });
32627
32630
  });
32628
32631
  }, Q = (P, ie) => {
32629
- P == null || P.stopPropagation(), A(dt.ADD_CONNECTOR_CLICKED, { connector_name: i }), h(`${rt.BASEPATH}${rt.CONNECTOR_SETTINGS}/${ie}`);
32632
+ P == null || P.stopPropagation(), A(it.ADD_CONNECTOR_CLICKED, { connector_name: i }), h(`${rt.BASEPATH}${rt.CONNECTOR_SETTINGS}/${ie}`);
32630
32633
  }, v = (P, ie) => {
32631
- P == null || P.stopPropagation(), A(dt.SETTINGS_CLICKED, { connector_name: i }), h(`${rt.BASEPATH}${rt.CONNECTOR_SETTINGS}/${ie}?isEdit=true`);
32634
+ P == null || P.stopPropagation(), A(it.SETTINGS_CLICKED, { connector_name: i }), h(`${rt.BASEPATH}${rt.CONNECTOR_SETTINGS}/${ie}?isEdit=true`);
32632
32635
  }, b = (P, ie = "") => {
32633
32636
  P == null || P.preventDefault(), P == null || P.stopPropagation(), !t && h(`${rt.BASEPATH}${rt.API_VIEW}/${ie}?isEdit=true`);
32634
32637
  }, y = (P) => {
@@ -32680,7 +32683,7 @@ const wV = T(nr)`
32680
32683
  ] })
32681
32684
  ] }) }),
32682
32685
  t && !n ? /* @__PURE__ */ u.jsx(qG, { variant: "contained", onClick: (P) => Q(P, o), children: qj }) : /* @__PURE__ */ u.jsxs(JG, { children: [
32683
- !t && c && !x ? /* @__PURE__ */ u.jsx(pe, { marginRight: "7px", children: /* @__PURE__ */ u.jsx(it, { size: "small", onClick: y, children: TU }) }) : null,
32686
+ !t && c && !x ? /* @__PURE__ */ u.jsx(pe, { marginRight: "7px", children: /* @__PURE__ */ u.jsx(at, { size: "small", onClick: y, children: TU }) }) : null,
32684
32687
  !t && x ? /* @__PURE__ */ u.jsx(ZG, { severity: "error", children: SU }) : null,
32685
32688
  /* @__PURE__ */ u.jsx(Vt, { title: Zj, placement: "bottom", children: /* @__PURE__ */ u.jsx(nr, { onClick: (P) => v(P, o), children: /* @__PURE__ */ u.jsx("img", { src: eV, className: "settingsIcon" }) }) }),
32686
32689
  (E == null ? void 0 : E[o]) !== ye.LOADING ? /* @__PURE__ */ u.jsx(Vt, { title: m ? eU : $j, placement: "bottom", children: /* @__PURE__ */ u.jsx(
@@ -32773,7 +32776,7 @@ const wV = T(nr)`
32773
32776
  background: #f6f8fc;
32774
32777
  bottom: 0;
32775
32778
  position: sticky;
32776
- `, jV = T(it)`
32779
+ `, jV = T(at)`
32777
32780
  flex-shrink: 0;
32778
32781
  border-radius: 4px;
32779
32782
  border: 1px solid #d6dde8;
@@ -32896,12 +32899,12 @@ const wV = T(nr)`
32896
32899
  margin: 0;
32897
32900
  }
32898
32901
  `, ZV = () => {
32899
- const { availableFeatures: e, sendTrackingEvent: t } = He(jt), n = yn(), r = ze(qo), A = ze(Ds), o = ze(Rs), i = ze(b1), a = zr(), { id: s = "" } = co(), [l] = Yi(), c = l.get("isEdit") === "true", g = (r == null ? void 0 : r[s]) || null, E = (A == null ? void 0 : A[s]) || null;
32902
+ const { availableFeatures: e, sendTrackingEvent: t } = je(Mt), n = yn(), r = ze(qo), A = ze(Ds), o = ze(Rs), i = ze(b1), a = zr(), { id: s = "" } = co(), [l] = Yi(), c = l.get("isEdit") === "true", g = (r == null ? void 0 : r[s]) || null, E = (A == null ? void 0 : A[s]) || null;
32900
32903
  be(() => {
32901
32904
  a(c ? za(s) : Va(s));
32902
32905
  }, [c, a, s]);
32903
32906
  const f = (h) => {
32904
- h == null || h.stopPropagation(), t(dt.CONNECTOR_BACK_CLICKED, { connector_name: I == null ? void 0 : I.name }), n(rt.BASEPATH);
32907
+ h == null || h.stopPropagation(), t(it.CONNECTOR_BACK_CLICKED, { connector_name: I == null ? void 0 : I.name }), n(rt.BASEPATH);
32905
32908
  }, I = c ? g : E, d = !!(I != null && I.carouselImages) && I.carouselImages.length > 0, C = o === ye.LOADING || i === ye.LOADING, B = xr(e, tM) && (C || d);
32906
32909
  return /* @__PURE__ */ u.jsxs(Ce.Fragment, { children: [
32907
32910
  c ? null : /* @__PURE__ */ u.jsx(lE, { isApiViewPage: !0 }),
@@ -33020,7 +33023,7 @@ const wV = T(nr)`
33020
33023
  `, J1 = (e) => {
33021
33024
  const { isLoading: t = !1 } = e;
33022
33025
  return t ? /* @__PURE__ */ u.jsx(V, { className: "h-[38px] w-[58px] justify-center items-center", children: /* @__PURE__ */ u.jsx(aH, {}) }) : /* @__PURE__ */ u.jsx(Fd, { ...e });
33023
- }, Dd = "authSuccedded", X1 = "authFaield", sH = "token", lH = "connector_id", ct = {
33026
+ }, Dd = "authSuccedded", X1 = "authFaield", sH = "token", lH = "connector_id", ut = {
33024
33027
  IDLE: "idle",
33025
33028
  PENDING: "pending",
33026
33029
  OAUTH_SUCCESS: "oauth_success",
@@ -33688,7 +33691,7 @@ const VH = T(ue)`
33688
33691
  authStatus: o,
33689
33692
  authMutate: i
33690
33693
  }) => {
33691
- const { sendTrackingEvent: a, availableFeatures: s } = He(jt), [l, c] = Rd(UH, jH), [g, E] = le(!1), f = r ? r.name : "", I = r ? r.description : "", d = r ? r.isAuthenticated : !1, C = r ? r.showUpgradeButton : !1, B = (r == null ? void 0 : r.advancedSettingsFields) ?? [], h = h1(s), p = r == null ? void 0 : r.oneClickAuthEnabled, Q = (r == null ? void 0 : r.hiddenFields) ?? [], v = Le(() => !h || !(r != null && r.interpolationFields) ? {} : OH(r == null ? void 0 : r.interpolationFields), [r == null ? void 0 : r.interpolationFields, h]), { variableConfigs: b, variableKeys: y } = Le(() => {
33694
+ const { sendTrackingEvent: a, availableFeatures: s } = je(Mt), [l, c] = Rd(UH, jH), [g, E] = le(!1), f = r ? r.name : "", I = r ? r.description : "", d = r ? r.isAuthenticated : !1, C = r ? r.showUpgradeButton : !1, B = (r == null ? void 0 : r.advancedSettingsFields) ?? [], h = h1(s), p = r == null ? void 0 : r.oneClickAuthEnabled, Q = (r == null ? void 0 : r.hiddenFields) ?? [], v = Le(() => !h || !(r != null && r.interpolationFields) ? {} : OH(r == null ? void 0 : r.interpolationFields), [r == null ? void 0 : r.interpolationFields, h]), { variableConfigs: b, variableKeys: y } = Le(() => {
33692
33695
  const j = r && r.variablesConfig ? r.variablesConfig : [], _ = Object.fromEntries(j.map((D) => [D.name, D.name]));
33693
33696
  return { variableConfigs: j, variableKeys: _ };
33694
33697
  }, [r]);
@@ -33745,7 +33748,7 @@ const VH = T(ue)`
33745
33748
  const { name: _, value: D } = (j == null ? void 0 : j.target) || {};
33746
33749
  m(_, D.trim());
33747
33750
  }, M = (j, _) => {
33748
- j && typeof j == "object" && "label" in j && typeof j.label == "string" && "value" in j && typeof j.value == "string" && typeof _.name < "u" && (_.name === Pr.authType && a(dt.AUTH_UPDATED, {
33751
+ j && typeof j == "object" && "label" in j && typeof j.label == "string" && "value" in j && typeof j.value == "string" && typeof _.name < "u" && (_.name === Pr.authType && a(it.AUTH_UPDATED, {
33749
33752
  selected_auth_type: j.label
33750
33753
  }), m(_.name, { value: j.value, label: j.label }));
33751
33754
  }, F = (j, _) => {
@@ -33794,7 +33797,7 @@ const VH = T(ue)`
33794
33797
  const J = RH(b, l.values);
33795
33798
  D.variables = J;
33796
33799
  }
33797
- a(dt.SAVE_AUTHORIZE_CLICKED, {
33800
+ a(it.SAVE_AUTHORIZE_CLICKED, {
33798
33801
  connector_name: f,
33799
33802
  auth_type: ((N = l.values.authType) == null ? void 0 : N.label) ?? l.values.authType,
33800
33803
  base_url: l.values.baseUrl
@@ -33857,9 +33860,9 @@ const VH = T(ue)`
33857
33860
  ) })
33858
33861
  ] }),
33859
33862
  /* @__PURE__ */ u.jsx(zH, { direction: "row", children: /* @__PURE__ */ u.jsx(
33860
- it,
33863
+ at,
33861
33864
  {
33862
- disabled: !P() || A || o === ct.PENDING,
33865
+ disabled: !P() || A || o === ut.PENDING,
33863
33866
  onClick: ie,
33864
33867
  children: "Click to authenticate"
33865
33868
  }
@@ -33905,7 +33908,7 @@ const VH = T(ue)`
33905
33908
  link: "setupGuideVideoLink",
33906
33909
  preview: "setupGuideVideoPreviewImage"
33907
33910
  },
33908
- event: dt.CONNECTOR_VIDEO_CLICKED
33911
+ event: it.CONNECTOR_VIDEO_CLICKED
33909
33912
  },
33910
33913
  {
33911
33914
  icon: /* @__PURE__ */ u.jsx(KH, {}),
@@ -33914,17 +33917,17 @@ const VH = T(ue)`
33914
33917
  keys: {
33915
33918
  link: "helpArticleLink"
33916
33919
  },
33917
- event: dt.CONNECTOR_AUTH_PAGE_KB_CLICKED,
33920
+ event: it.CONNECTOR_AUTH_PAGE_KB_CLICKED,
33918
33921
  prefixName: !0
33919
33922
  },
33920
33923
  {
33921
33924
  icon: /* @__PURE__ */ u.jsx(ZH, {}),
33922
33925
  text: vG,
33923
33926
  link: yG,
33924
- event: dt.CONNECTOR_AUTH_PAGE_CONTACT_SUPPORT_CLICKED
33927
+ event: it.CONNECTOR_AUTH_PAGE_CONTACT_SUPPORT_CLICKED
33925
33928
  }
33926
33929
  ], iW = ({ connectorName: e, supportLinks: t }) => {
33927
- const { availableFeatures: n, sendTrackingEvent: r } = He(jt), A = xr(n, $k), o = h1(n), i = (a, s) => {
33930
+ const { availableFeatures: n, sendTrackingEvent: r } = je(Mt), A = xr(n, $k), o = h1(n), i = (a, s) => {
33928
33931
  r(s, { source: e }), window.open(a, "_blank");
33929
33932
  };
33930
33933
  return A ? /* @__PURE__ */ u.jsx(V, { gap: "12px", children: oW.map(({ icon: a, text: s, link: l, keys: c, event: g, prefixName: E }) => {
@@ -33998,29 +34001,29 @@ const sW = T(V)`
33998
34001
  if (!e || !e.data)
33999
34002
  return {
34000
34003
  authUrl: "",
34001
- authStatus: r ? ct.API_KEY_FAILED : n ? ct.BASIC_AUTH_FAILED : A ? ct.OAUTH1_FAILED : ct.OAUTH_FAILED
34004
+ authStatus: r ? ut.API_KEY_FAILED : n ? ut.BASIC_AUTH_FAILED : A ? ut.OAUTH1_FAILED : ut.OAUTH_FAILED
34002
34005
  };
34003
34006
  const o = e.data;
34004
34007
  return r ? {
34005
34008
  authUrl: "",
34006
34009
  id: o.id,
34007
- authStatus: ct.API_KEY_SUCCESS
34010
+ authStatus: ut.API_KEY_SUCCESS
34008
34011
  } : n ? {
34009
34012
  authUrl: "",
34010
34013
  id: o.id,
34011
- authStatus: ct.BASIC_AUTH_SUCCESS
34014
+ authStatus: ut.BASIC_AUTH_SUCCESS
34012
34015
  } : A ? {
34013
34016
  authUrl: "",
34014
34017
  id: o.id,
34015
- authStatus: ct.OAUTH1_SUCCESS
34018
+ authStatus: ut.OAUTH1_SUCCESS
34016
34019
  } : o.authorizationUrl ? {
34017
34020
  authUrl: o.authorizationUrl,
34018
34021
  id: o.id,
34019
- authStatus: ct.PENDING
34022
+ authStatus: ut.PENDING
34020
34023
  } : {
34021
34024
  authUrl: "",
34022
34025
  id: "",
34023
- authStatus: ct.OAUTH_FAILED
34026
+ authStatus: ut.OAUTH_FAILED
34024
34027
  };
34025
34028
  }, CW = async (e) => {
34026
34029
  try {
@@ -34049,7 +34052,7 @@ const sW = T(V)`
34049
34052
  queryKey: r,
34050
34053
  queryFn: () => Promise.resolve({
34051
34054
  authUrl: "",
34052
- authStatus: ct.IDLE,
34055
+ authStatus: ut.IDLE,
34053
34056
  id: ""
34054
34057
  }),
34055
34058
  enabled: !1
@@ -34109,7 +34112,7 @@ const sW = T(V)`
34109
34112
  n.removeQueries({ queryKey: r, exact: !0 });
34110
34113
  }, [n, r]), A;
34111
34114
  }, HB = ({ connectorData: e }) => {
34112
- const { sendTrackingEvent: t, availableFeatures: n } = He(jt), [r, A] = le(!1), o = ze(Rs), i = ze(b1), a = Me(null), s = yn(), { id: l = "" } = co(), [c] = Yi(), g = c.get("isEdit") === "true", E = !!(e != null && e.showUpgradeButton), f = xr(n, nM), {
34115
+ const { sendTrackingEvent: t, availableFeatures: n } = je(Mt), [r, A] = le(!1), o = ze(Rs), i = ze(b1), a = Me(null), s = yn(), { id: l = "" } = co(), [c] = Yi(), g = c.get("isEdit") === "true", E = !!(e != null && e.showUpgradeButton), f = xr(n, nM), {
34113
34116
  data: I,
34114
34117
  mutateStatus: d,
34115
34118
  isLoading: C,
@@ -34119,7 +34122,7 @@ const sW = T(V)`
34119
34122
  onSuccess: () => {
34120
34123
  f && A(!0);
34121
34124
  }
34122
- }), h = BW({ connectorId: (I == null ? void 0 : I.id) || "", enabled: r }), { status: p } = h.data || {}, Q = (I == null ? void 0 : I.authStatus) || ct.IDLE, v = (I == null ? void 0 : I.authUrl) || "", b = zr();
34125
+ }), h = BW({ connectorId: (I == null ? void 0 : I.id) || "", enabled: r }), { status: p } = h.data || {}, Q = (I == null ? void 0 : I.authStatus) || ut.IDLE, v = (I == null ? void 0 : I.authUrl) || "", b = zr();
34123
34126
  be(
34124
34127
  () => () => {
34125
34128
  b(bj());
@@ -34128,7 +34131,7 @@ const sW = T(V)`
34128
34131
  ), be(() => {
34129
34132
  let m, x;
34130
34133
  const M = (F) => {
34131
- a.current && F.origin === window.location.origin && (F.data === X1 || F.data === Dd) && (clearTimeout(m), a.current.close(), a.current = null, d(F.data === Dd ? ct.OAUTH_SUCCESS : ct.OAUTH_FAILED));
34134
+ a.current && F.origin === window.location.origin && (F.data === X1 || F.data === Dd) && (clearTimeout(m), a.current.close(), a.current = null, d(F.data === Dd ? ut.OAUTH_SUCCESS : ut.OAUTH_FAILED));
34132
34135
  };
34133
34136
  try {
34134
34137
  if (v) {
@@ -34136,10 +34139,10 @@ const sW = T(V)`
34136
34139
  const F = 5 * 60 * 1e3;
34137
34140
  m = setTimeout(() => {
34138
34141
  var z;
34139
- (z = a.current) == null || z.close(), a.current = null, d(ct.OAUTH_FAILED);
34142
+ (z = a.current) == null || z.close(), a.current = null, d(ut.OAUTH_FAILED);
34140
34143
  }, F), x = setInterval(() => {
34141
34144
  var z;
34142
- (z = a.current) != null && z.closed && (clearInterval(x), a.current = null, d(ct.OAUTH_FAILED));
34145
+ (z = a.current) != null && z.closed && (clearInterval(x), a.current = null, d(ut.OAUTH_FAILED));
34143
34146
  }, 500), window.addEventListener("message", M);
34144
34147
  }
34145
34148
  } catch (F) {
@@ -34149,36 +34152,36 @@ const sW = T(V)`
34149
34152
  window.removeEventListener("message", M), clearTimeout(m), clearInterval(x);
34150
34153
  };
34151
34154
  }, [v, b, d]), be(() => {
34152
- p && p !== "pending" && a.current && f && (a.current.close(), a.current = null, d(p === "success" ? ct.OAUTH_SUCCESS : ct.OAUTH_FAILED));
34155
+ p && p !== "pending" && a.current && f && (a.current.close(), a.current = null, d(p === "success" ? ut.OAUTH_SUCCESS : ut.OAUTH_FAILED));
34153
34156
  }, [p, d, f]), be(() => {
34154
- switch ((Q === ct.OAUTH1_FAILED || Q === ct.OAUTH_FAILED || Q === ct.API_KEY_FAILED || Q === ct.BASIC_AUTH_FAILED) && s(rt.BASEPATH), (Q === ct.OAUTH1_SUCCESS || Q === ct.OAUTH_SUCCESS || Q === ct.API_KEY_SUCCESS || Q === ct.BASIC_AUTH_SUCCESS) && I != null && I.id && s(
34157
+ switch ((Q === ut.OAUTH1_FAILED || Q === ut.OAUTH_FAILED || Q === ut.API_KEY_FAILED || Q === ut.BASIC_AUTH_FAILED) && s(rt.BASEPATH), (Q === ut.OAUTH1_SUCCESS || Q === ut.OAUTH_SUCCESS || Q === ut.API_KEY_SUCCESS || Q === ut.BASIC_AUTH_SUCCESS) && I != null && I.id && s(
34155
34158
  g ? rt.BASEPATH : `${rt.BASEPATH}${rt.CONNECTOR_INITIAL_SETUP}/${l}?connectorId=${I.id}`
34156
34159
  ), Q) {
34157
- case ct.BASIC_AUTH_SUCCESS:
34158
- case ct.OAUTH1_SUCCESS:
34159
- case ct.OAUTH_SUCCESS: {
34160
- fn({ message: E ? LB : cH, type: zo }), t(dt.CONNECTOR_AUTH_SUCCESS, {
34160
+ case ut.BASIC_AUTH_SUCCESS:
34161
+ case ut.OAUTH1_SUCCESS:
34162
+ case ut.OAUTH_SUCCESS: {
34163
+ fn({ message: E ? LB : cH, type: zo }), t(it.CONNECTOR_AUTH_SUCCESS, {
34161
34164
  connector_name: e == null ? void 0 : e.name
34162
34165
  });
34163
34166
  break;
34164
34167
  }
34165
- case ct.BASIC_AUTH_FAILED:
34166
- case ct.OAUTH1_FAILED:
34167
- case ct.OAUTH_FAILED: {
34168
+ case ut.BASIC_AUTH_FAILED:
34169
+ case ut.OAUTH1_FAILED:
34170
+ case ut.OAUTH_FAILED: {
34168
34171
  fn({ message: E ? NB : uH, type: yr });
34169
34172
  break;
34170
34173
  }
34171
- case ct.REQUEST_FAILED: {
34174
+ case ut.REQUEST_FAILED: {
34172
34175
  fn({ message: bc, type: yr });
34173
34176
  break;
34174
34177
  }
34175
- case ct.API_KEY_SUCCESS: {
34176
- fn({ message: E ? LB : dH, type: zo }), t(dt.CONNECTOR_AUTH_SUCCESS, {
34178
+ case ut.API_KEY_SUCCESS: {
34179
+ fn({ message: E ? LB : dH, type: zo }), t(it.CONNECTOR_AUTH_SUCCESS, {
34177
34180
  connector_name: e == null ? void 0 : e.name
34178
34181
  });
34179
34182
  break;
34180
34183
  }
34181
- case ct.API_KEY_FAILED: {
34184
+ case ut.API_KEY_FAILED: {
34182
34185
  fn({ message: E ? NB : bc, type: yr });
34183
34186
  break;
34184
34187
  }
@@ -34259,7 +34262,7 @@ const sW = T(V)`
34259
34262
  borderRadius: "6px",
34260
34263
  boxShadow: "0px 2px 10px 0px #00000026"
34261
34264
  }
34262
- })), SW = (e) => /* @__PURE__ */ u.jsx(it, { ...e, disabled: e.isLoading || e.disabled, children: e.isLoading ? /* @__PURE__ */ u.jsx(io, { sx: { color: "#97A3B7" }, size: 20 }) : e.label }), _W = ({
34265
+ })), SW = (e) => /* @__PURE__ */ u.jsx(at, { ...e, disabled: e.isLoading || e.disabled, children: e.isLoading ? /* @__PURE__ */ u.jsx(io, { sx: { color: "#97A3B7" }, size: 20 }) : e.label }), _W = ({
34263
34266
  onCancel: e,
34264
34267
  onSubmit: t,
34265
34268
  isLoading: n,
@@ -34308,7 +34311,7 @@ const sW = T(V)`
34308
34311
  ),
34309
34312
  /* @__PURE__ */ u.jsxs("div", { className: "flex justify-end mt-8 gap-2", children: [
34310
34313
  /* @__PURE__ */ u.jsx(
34311
- it,
34314
+ at,
34312
34315
  {
34313
34316
  variant: "text",
34314
34317
  color: "primary",
@@ -34474,7 +34477,7 @@ const PW = ({
34474
34477
  connectorName: n,
34475
34478
  connectorType: r
34476
34479
  }) => {
34477
- const { availableFeatures: A } = He(jt), o = jW(e), i = yW.filter(
34480
+ const { availableFeatures: A } = je(Mt), o = jW(e), i = yW.filter(
34478
34481
  (l) => xr(A, l.featureKey) && typeof o[l.id] == "object"
34479
34482
  );
34480
34483
  if (i.length === 0)
@@ -34521,58 +34524,73 @@ const PW = ({
34521
34524
  connectorName: t,
34522
34525
  connectorLogo: n
34523
34526
  }) => {
34524
- const [r, A] = le(null), [o, i] = le([]), [a, s] = le(!1), [l, c] = le(""), [g, E] = le(!0), [f, I] = le(!1);
34527
+ const { sendTrackingEvent: r } = je(Mt), [A, o] = le(null), [i, a] = le([]), [s, l] = le(!1), [c, g] = le(""), [E, f] = le(!0), [I, d] = le(!1);
34525
34528
  if (be(() => {
34526
34529
  (async () => {
34527
- var v;
34528
- E(!0);
34530
+ var b;
34531
+ f(!0);
34529
34532
  try {
34530
- const [b, y] = await Promise.all([
34533
+ const [y, m] = await Promise.all([
34531
34534
  rj(e),
34532
34535
  Aj(e)
34533
34536
  ]);
34534
- A(b.data ?? null), i(((v = y.data) == null ? void 0 : v.presets) ?? []);
34535
- } catch (b) {
34536
- fn({ message: bc, type: yr }), console.error(b);
34537
+ o(y.data ?? null), a(((b = m.data) == null ? void 0 : b.presets) ?? []);
34538
+ } catch (y) {
34539
+ fn({ message: bc, type: yr }), console.error(y);
34537
34540
  } finally {
34538
- E(!1);
34541
+ f(!1);
34539
34542
  }
34540
34543
  })();
34541
- }, [e]), g || o.length === 0) return null;
34542
- const d = o.find((Q) => Q.hiverParam === (r == null ? void 0 : r.hiverParam)) ?? o[0], C = () => {
34543
- var b;
34544
- const Q = (r == null ? void 0 : r.hiverParam) ?? d.hiverParam, v = o.some((y) => y.hiverParam === Q);
34545
- c(v ? Q : ((b = o[0]) == null ? void 0 : b.hiverParam) ?? ""), s(!0);
34546
- }, B = async () => {
34547
- I(!0);
34544
+ }, [e]), E || i.length === 0) return null;
34545
+ const C = i.find((v) => v.hiverParam === (A == null ? void 0 : A.hiverParam)) ?? i[0], B = () => {
34546
+ var y;
34547
+ r(it.LOOKUP_CONFIG_CLICKED, {
34548
+ connector_name: t,
34549
+ page: "connector_settings"
34550
+ });
34551
+ const v = (A == null ? void 0 : A.hiverParam) ?? C.hiverParam, b = i.some((m) => m.hiverParam === v);
34552
+ g(b ? v : ((y = i[0]) == null ? void 0 : y.hiverParam) ?? ""), l(!0);
34553
+ }, h = async () => {
34554
+ d(!0);
34548
34555
  try {
34549
- await oj([{ connectorId: e, hiverParam: l }]), A({ connectorId: e, hiverParam: l }), fn({ message: kU, type: zo }), s(!1);
34556
+ await oj([{ connectorId: e, hiverParam: c }]), o({ connectorId: e, hiverParam: c }), r(it.LOOKUP_SAVED, {
34557
+ connector_name: t,
34558
+ hiver_param: c,
34559
+ page: "connector_settings"
34560
+ }), fn({ message: kU, type: zo }), l(!1);
34550
34561
  } catch {
34551
34562
  fn({ message: MU, type: yr });
34552
34563
  } finally {
34553
- I(!1);
34564
+ d(!1);
34554
34565
  }
34555
- }, h = PU.replace("%s", t), p = o.find((Q) => Q.hiverParam === (l || (r == null ? void 0 : r.hiverParam))) ?? o[0];
34566
+ }, p = PU.replace("%s", t), Q = i.find((v) => v.hiverParam === (c || (A == null ? void 0 : A.hiverParam))) ?? i[0];
34556
34567
  return /* @__PURE__ */ u.jsxs("div", { className: "border border-[#D6DDE8] rounded-lg bg-white p-4 mb-6", children: [
34557
34568
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between mb-1", children: [
34558
34569
  /* @__PURE__ */ u.jsx("span", { className: "text-h2 text-[#3E4C5A]!", children: OU }),
34559
- a ? /* @__PURE__ */ u.jsx(it, { variant: "contained", size: "small", startIcon: /* @__PURE__ */ u.jsx(GW, {}), onClick: B, disabled: f, children: FU }) : /* @__PURE__ */ u.jsx(it, { variant: "outlined", color: "tertiary", size: "small", onClick: C, children: NU })
34570
+ s ? /* @__PURE__ */ u.jsx(at, { variant: "contained", size: "small", startIcon: /* @__PURE__ */ u.jsx(GW, {}), onClick: h, disabled: I, children: FU }) : /* @__PURE__ */ u.jsx(at, { variant: "outlined", color: "tertiary", size: "small", onClick: B, children: NU })
34560
34571
  ] }),
34561
34572
  /* @__PURE__ */ u.jsx("p", { className: "text-body2 text-[#6F7C90]! mb-6", children: LU }),
34562
- a ? /* @__PURE__ */ u.jsxs("div", { className: "inline-flex items-center border border-[#ECEFF6] overflow-hidden p-3 rounded-[8px] w-full", children: [
34573
+ s ? /* @__PURE__ */ u.jsxs("div", { className: "inline-flex items-center border border-[#ECEFF6] overflow-hidden p-3 rounded-[8px] w-full", children: [
34563
34574
  /* @__PURE__ */ u.jsx(
34564
34575
  m2,
34565
34576
  {
34566
- value: l,
34567
- onChange: (Q) => c(Q.target.value),
34577
+ value: c,
34578
+ onChange: (v) => {
34579
+ const b = v.target.value;
34580
+ r(it.LOOKUP_FIELD_CLICKED, {
34581
+ hiver_param: b,
34582
+ connector_name: t,
34583
+ page: "connector_settings"
34584
+ }), g(b);
34585
+ },
34568
34586
  size: "small",
34569
34587
  variant: "outlined",
34570
- renderValue: (Q) => {
34571
- var b;
34572
- const v = ((b = o.find((y) => y.hiverParam === Q)) == null ? void 0 : b.label) ?? "";
34588
+ renderValue: (v) => {
34589
+ var y;
34590
+ const b = ((y = i.find((m) => m.hiverParam === v)) == null ? void 0 : y.label) ?? "";
34573
34591
  return /* @__PURE__ */ u.jsxs("span", { className: "flex items-center gap-2", children: [
34574
34592
  /* @__PURE__ */ u.jsx(WB, { className: "w-4 h-4 shrink-0" }),
34575
- v
34593
+ b
34576
34594
  ] });
34577
34595
  },
34578
34596
  sx: {
@@ -34584,28 +34602,28 @@ const PW = ({
34584
34602
  fontWeight: 500,
34585
34603
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "#ECEFF6" }
34586
34604
  },
34587
- children: o.map((Q) => /* @__PURE__ */ u.jsx(Bh, { value: Q.hiverParam, sx: { fontSize: "14px" }, children: Q.label }, Q.hiverParam))
34605
+ children: i.map((v) => /* @__PURE__ */ u.jsx(Bh, { value: v.hiverParam, sx: { fontSize: "14px" }, children: v.label }, v.hiverParam))
34588
34606
  }
34589
34607
  ),
34590
34608
  /* @__PURE__ */ u.jsx("div", { className: "h-px w-8 bg-[#ECEFF6] shrink-0" }),
34591
34609
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 px-4 py-2.5 text-sm text-[#4D596C] rounded-full border-1 border-[#ECEFF6] h-[26px]", children: [
34592
34610
  n && /* @__PURE__ */ u.jsx("img", { src: n, alt: t, className: "w-4 h-4 object-contain shrink-0" }),
34593
- h
34611
+ p
34594
34612
  ] }),
34595
34613
  /* @__PURE__ */ u.jsx("div", { className: "h-px w-8 bg-[#ECEFF6] shrink-0" }),
34596
- /* @__PURE__ */ u.jsx("div", { className: "px-4 py-2.5 text-sm text-[#4D596C] bg-[#F6F8FC] rounded-[8px] h-10 grow", children: p.objectParamLabel })
34614
+ /* @__PURE__ */ u.jsx("div", { className: "px-4 py-2.5 text-sm text-[#4D596C] bg-[#F6F8FC] rounded-[8px] h-10 grow", children: Q.objectParamLabel })
34597
34615
  ] }) : /* @__PURE__ */ u.jsxs("div", { className: "inline-flex items-center border border-[#ECEFF6] overflow-hidden p-3 rounded-[8px] w-full", children: [
34598
34616
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 px-4 py-2.5 text-sm text-[#4D596C] rounded-[8px] font-medium bg-[#F6F8FC] w-[209px] h-10", children: [
34599
34617
  /* @__PURE__ */ u.jsx(WB, { className: "w-4 h-4 shrink-0" }),
34600
- p.label
34618
+ Q.label
34601
34619
  ] }),
34602
34620
  /* @__PURE__ */ u.jsx("div", { className: "h-px w-8 bg-[#ECEFF6] shrink-0" }),
34603
34621
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 px-4 py-2.5 text-sm text-[#4D596C] rounded-full border-1 border-[#ECEFF6] h-[26px]", children: [
34604
34622
  n && /* @__PURE__ */ u.jsx("img", { src: n, alt: t, className: "w-4 h-4 object-contain shrink-0" }),
34605
- h
34623
+ p
34606
34624
  ] }),
34607
34625
  /* @__PURE__ */ u.jsx("div", { className: "h-px w-8 bg-[#ECEFF6] shrink-0" }),
34608
- /* @__PURE__ */ u.jsx("div", { className: "px-4 py-2.5 text-sm text-[#4D596C] bg-[#F6F8FC] rounded-[8px] h-10 grow", children: p.objectParamLabel })
34626
+ /* @__PURE__ */ u.jsx("div", { className: "px-4 py-2.5 text-sm text-[#4D596C] bg-[#F6F8FC] rounded-[8px] h-10 grow", children: Q.objectParamLabel })
34609
34627
  ] })
34610
34628
  ] });
34611
34629
  }, HW = ({ connectorData: e }) => {
@@ -34617,7 +34635,7 @@ const PW = ({
34617
34635
  advancedFeatures: A = {},
34618
34636
  type: o,
34619
34637
  logo: i = null
34620
- } = e || {}, [a, s] = le(!1), { availableFeatures: l } = He(jt), c = (f = EA()) == null ? void 0 : f.tenantPlatform, g = xr(
34638
+ } = e || {}, [a, s] = le(!1), { availableFeatures: l } = je(Mt), c = (f = EA()) == null ? void 0 : f.tenantPlatform, g = xr(
34621
34639
  l,
34622
34640
  c === "HIVERWEB" ? `hot-${QB}` : QB
34623
34641
  ), { id: E = "" } = co();
@@ -34637,7 +34655,7 @@ const PW = ({
34637
34655
  /* @__PURE__ */ u.jsx(UW, { advancedFeatures: A, connectorId: E, connectorName: n, connectorType: o })
34638
34656
  ] });
34639
34657
  }, WW = () => {
34640
- const e = zr(), { sendTrackingEvent: t } = He(jt), n = ze(AE), r = ze(Rs), A = ze(L1), o = ze(qo), i = ze(Ds), { id: a = "" } = co(), [s] = Yi(), l = s.get("isEdit") === "true", c = s.get("tabIndex"), [g, E] = le(() => {
34658
+ const e = zr(), { sendTrackingEvent: t } = je(Mt), n = ze(AE), r = ze(Rs), A = ze(L1), o = ze(qo), i = ze(Ds), { id: a = "" } = co(), [s] = Yi(), l = s.get("isEdit") === "true", c = s.get("tabIndex"), [g, E] = le(() => {
34641
34659
  const b = Number(c);
34642
34660
  return Number.isNaN(b) || b < 0 ? 0 : b > il.length - 1 ? il.length - 1 : b;
34643
34661
  }), f = (b, y) => {
@@ -34651,7 +34669,7 @@ const PW = ({
34651
34669
  { name: nH }
34652
34670
  ], v = (b, y) => {
34653
34671
  b == null || b.stopPropagation(), e(Ha({ id: y, enabled: b.target.checked })).unwrap().then(() => {
34654
- b.target.checked ? t(dt.TOGGLE_ENABLED, { connector_name: C == null ? void 0 : C.name }) : (t(dt.TOGGLE_DISABLED, { connector_name: C == null ? void 0 : C.name }), fn({
34672
+ b.target.checked ? t(it.TOGGLE_ENABLED, { connector_name: C == null ? void 0 : C.name }) : (t(it.TOGGLE_DISABLED, { connector_name: C == null ? void 0 : C.name }), fn({
34655
34673
  message: w1,
34656
34674
  type: rE
34657
34675
  }));
@@ -34727,7 +34745,7 @@ const PW = ({
34727
34745
  /* @__PURE__ */ u.jsx("p", { children: "Redirecting..." })
34728
34746
  ] });
34729
34747
  }, KW = () => {
34730
- const { nativeIntegrations: e } = He(jt), { id: t = "" } = co(), n = yn(), r = ze(qo), A = ze(Ds), o = e.filter((g) => g.id === t)[0], i = o.id, a = Le(() => Object.values(r || {}).find((g) => g.type === i), [r, i]), s = Le(() => a ? null : Object.values(A || {}).find((g) => g.type === i), [A, i, a]);
34748
+ const { nativeIntegrations: e } = je(Mt), { id: t = "" } = co(), n = yn(), r = ze(qo), A = ze(Ds), o = e.filter((g) => g.id === t)[0], i = o.id, a = Le(() => Object.values(r || {}).find((g) => g.type === i), [r, i]), s = Le(() => a ? null : Object.values(A || {}).find((g) => g.type === i), [A, i, a]);
34731
34749
  let l = "";
34732
34750
  a ? l = `/app/custom-connectors/connector/settings/${a.id}?isEdit=true&tabIndex=0` : s && (l = `/app/custom-connectors/connector/settings/${s.id}`);
34733
34751
  const c = () => {
@@ -34766,7 +34784,7 @@ const PW = ({
34766
34784
  ] }, s);
34767
34785
  });
34768
34786
  }, rz = () => {
34769
- const { sendTrackingEvent: e } = He(jt), t = yn(), n = zr(), r = ze(oE) ?? [], A = ze(Iu) ?? [], o = r.find((b) => b.name === Oa.MEMBER), i = ze(Ds), a = ze(gU) === ye.LOADING, [s, l] = le([]), [c, g] = le(o), [E, f] = le(!1), { id: I = "" } = co(), [d] = Yi(), C = d.get("connectorId"), B = (i == null ? void 0 : i[I]) || null, h = a || !s.length || !c.name, p = [
34787
+ const { sendTrackingEvent: e } = je(Mt), t = yn(), n = zr(), r = ze(oE) ?? [], A = ze(Iu) ?? [], o = r.find((b) => b.name === Oa.MEMBER), i = ze(Ds), a = ze(gU) === ye.LOADING, [s, l] = le([]), [c, g] = le(o), [E, f] = le(!1), { id: I = "" } = co(), [d] = Yi(), C = d.get("connectorId"), B = (i == null ? void 0 : i[I]) || null, h = a || !s.length || !c.name, p = [
34770
34788
  { name: vc, route: `${rt.BASEPATH}${rt.DASHBOARD}` },
34771
34789
  {
34772
34790
  name: (B == null ? void 0 : B.name) || "",
@@ -34788,7 +34806,7 @@ const PW = ({
34788
34806
  }
34789
34807
  })
34790
34808
  ).unwrap().finally(() => {
34791
- e(dt.APP_ACTIVATION_VISIBILITY_SAVED, {
34809
+ e(it.APP_ACTIVATION_VISIBILITY_SAVED, {
34792
34810
  sm_names: m,
34793
34811
  roles: b
34794
34812
  }), f(!0);
@@ -34824,7 +34842,7 @@ const PW = ({
34824
34842
  inboxes: A
34825
34843
  }
34826
34844
  ),
34827
- /* @__PURE__ */ u.jsx(it, { className: "!mt-4", onClick: Q, disabled: h, children: "Save and enable" })
34845
+ /* @__PURE__ */ u.jsx(at, { className: "!mt-4", onClick: Q, disabled: h, children: "Save and enable" })
34828
34846
  ] })
34829
34847
  ] });
34830
34848
  }, Az = (e) => EQ(
@@ -34933,12 +34951,12 @@ const PW = ({
34933
34951
  color: ${ce.palette.gray.gray2};
34934
34952
  margin-top: 8px;
34935
34953
  margin-bottom: 20px;
34936
- `, Iz = T(it)`
34954
+ `, Iz = T(at)`
34937
34955
  width: 95px;
34938
34956
  height: 32px;
34939
34957
  display: flex;
34940
34958
  align-items: center;
34941
- `, fz = T(it)`
34959
+ `, fz = T(at)`
34942
34960
  height: 32px;
34943
34961
  white-space: pre;
34944
34962
  display: flex;
@@ -34996,7 +35014,7 @@ T(ue)`
34996
35014
  text-overflow: ellipsis;
34997
35015
  `;
34998
35016
  const Bz = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.44441%207.72259C1.2339%206.35423%201.02339%204.98592%200.812876%203.61756C0.766191%203.31424%201.11132%203.10736%201.35682%203.2915C2.01269%203.7834%202.66853%204.27527%203.32439%204.76717C3.54034%204.92913%203.84799%204.87642%203.9977%204.65182L5.63574%202.19474C5.80885%201.93509%206.19035%201.93509%206.36346%202.19474L8.0015%204.65182C8.15121%204.87642%208.45886%204.92909%208.67481%204.76717C9.33068%204.27527%209.98651%203.7834%2010.6424%203.2915C10.8879%203.10736%2011.233%203.31424%2011.1864%203.61756C10.9758%204.98592%2010.7653%206.35423%2010.5548%207.72259H1.44441Z'%20fill='white'/%3e%3cpath%20d='M10.0788%2010.0027H1.91834C1.65602%2010.0027%201.44336%209.79009%201.44336%209.52777V8.48438H10.5538V9.52777C10.5537%209.79009%2010.3411%2010.0027%2010.0788%2010.0027Z'%20fill='white'/%3e%3c/svg%3e", hz = ({ availableFeatures: e }) => {
34999
- const { connectorFunctions: t } = He(jt), n = (A) => {
35017
+ const { connectorFunctions: t } = je(Mt), n = (A) => {
35000
35018
  A.stopPropagation(), xr(e, iz) && yM();
35001
35019
  }, r = () => {
35002
35020
  t != null && t.redirectToUpgradePage && t.redirectToUpgradePage();