@hiver/connector-agent 4.18.0 → 4.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.es.js CHANGED
@@ -405,7 +405,7 @@ function F4() {
405
405
  if (nn(L))
406
406
  return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hu(L)), Xt(L);
407
407
  }
408
- var ou = C.ReactCurrentOwner, fu = {
408
+ var Zt = C.ReactCurrentOwner, fu = {
409
409
  key: !0,
410
410
  ref: !0,
411
411
  __self: !0,
@@ -429,9 +429,9 @@ function F4() {
429
429
  return L.key !== void 0;
430
430
  }
431
431
  function Hu(L, q) {
432
- if (typeof L.ref == "string" && ou.current && q && ou.current.stateNode !== q) {
433
- var fe = R(ou.current.type);
434
- Ht[fe] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(ou.current.type), L.ref), Ht[fe] = !0);
432
+ if (typeof L.ref == "string" && Zt.current && q && Zt.current.stateNode !== q) {
433
+ var fe = R(Zt.current.type);
434
+ Ht[fe] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(Zt.current.type), L.ref), Ht[fe] = !0);
435
435
  }
436
436
  }
437
437
  function kt(L, q) {
@@ -500,7 +500,7 @@ function F4() {
500
500
  var Ct = typeof L == "function" ? L.displayName || L.name || "Unknown" : L;
501
501
  Le && kt(je, Ct), Tt && Iu(je, Ct);
502
502
  }
503
- return au(L, Le, Tt, Ue, be, ou.current, je);
503
+ return au(L, Le, Tt, Ue, be, Zt.current, je);
504
504
  }
505
505
  }
506
506
  var jt = C.ReactCurrentOwner, Vu = C.ReactDebugCurrentFrame;
@@ -664,8 +664,8 @@ React keys must be passed directly to JSX without using spread:
664
664
  function At(L, q, fe) {
665
665
  return ge(L, q, fe, !1);
666
666
  }
667
- var Zt = At, lt = Qe;
668
- wo.Fragment = n, wo.jsx = Zt, wo.jsxs = lt;
667
+ var zt = At, lt = Qe;
668
+ wo.Fragment = n, wo.jsx = zt, wo.jsxs = lt;
669
669
  }()), wo;
670
670
  }
671
671
  process.env.NODE_ENV === "production" ? ga.exports = p4() : ga.exports = F4();
@@ -2013,11 +2013,11 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2013
2013
  clear() {
2014
2014
  T(this, pt).clear(), T(this, Sn).clear();
2015
2015
  }
2016
- }, pt = new WeakMap(), Sn = new WeakMap(), kn = new WeakMap(), $r = new WeakMap(), eo = new WeakMap(), Tn = new WeakMap(), to = new WeakMap(), uo = new WeakMap(), e2), Jt, Xe, c0, Vt, ir, no, Ln, Ju, l0, ro, oo, sr, Dr, _n, fo, nt, Mo, ya, va, Ba, wa, Ia, Sa, ka, N2, t2, Zf = (t2 = class extends wr {
2016
+ }, pt = new WeakMap(), Sn = new WeakMap(), kn = new WeakMap(), $r = new WeakMap(), eo = new WeakMap(), Tn = new WeakMap(), to = new WeakMap(), uo = new WeakMap(), e2), Kt, Xe, c0, Vt, ir, no, Ln, Ju, l0, ro, oo, sr, Dr, _n, fo, nt, Mo, ya, va, Ba, wa, Ia, Sa, ka, N2, t2, Zf = (t2 = class extends wr {
2017
2017
  constructor(t, u) {
2018
2018
  super();
2019
2019
  Fe(this, nt);
2020
- Fe(this, Jt);
2020
+ Fe(this, Kt);
2021
2021
  Fe(this, Xe);
2022
2022
  Fe(this, c0);
2023
2023
  Fe(this, Vt);
@@ -2034,7 +2034,7 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2034
2034
  Fe(this, Dr);
2035
2035
  Fe(this, _n);
2036
2036
  Fe(this, fo, /* @__PURE__ */ new Set());
2037
- this.options = u, oe(this, Jt, t), oe(this, Ju, null), oe(this, Ln, ba()), this.options.experimental_prefetchInRender || T(this, Ln).reject(
2037
+ this.options = u, oe(this, Kt, t), oe(this, Ju, null), oe(this, Ln, ba()), this.options.experimental_prefetchInRender || T(this, Ln).reject(
2038
2038
  new Error("experimental_prefetchInRender feature flag is not enabled")
2039
2039
  ), this.bindMethods(), this.setOptions(u);
2040
2040
  }
@@ -2066,11 +2066,11 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2066
2066
  }
2067
2067
  setOptions(t, u) {
2068
2068
  const n = this.options, r = T(this, Xe);
2069
- if (this.options = T(this, Jt).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Lu(this.options.enabled, T(this, Xe)) != "boolean")
2069
+ if (this.options = T(this, Kt).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Lu(this.options.enabled, T(this, Xe)) != "boolean")
2070
2070
  throw new Error(
2071
2071
  "Expected enabled to be a boolean or a callback that returns a boolean"
2072
2072
  );
2073
- we(this, nt, ka).call(this), T(this, Xe).setOptions(this.options), n._defaulted && !Cf(this.options, n) && T(this, Jt).getQueryCache().notify({
2073
+ we(this, nt, ka).call(this), T(this, Xe).setOptions(this.options), n._defaulted && !Cf(this.options, n) && T(this, Kt).getQueryCache().notify({
2074
2074
  type: "observerOptionsUpdated",
2075
2075
  query: T(this, Xe),
2076
2076
  observer: this
@@ -2086,7 +2086,7 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2086
2086
  o && (T(this, Xe) !== r || Lu(this.options.enabled, T(this, Xe)) !== Lu(n.enabled, T(this, Xe)) || f !== T(this, _n)) && we(this, nt, Ba).call(this, f);
2087
2087
  }
2088
2088
  getOptimisticResult(t) {
2089
- const u = T(this, Jt).getQueryCache().build(T(this, Jt), t), n = this.createResult(u, t);
2089
+ const u = T(this, Kt).getQueryCache().build(T(this, Kt), t), n = this.createResult(u, t);
2090
2090
  return _4(this, n) && (oe(this, Vt, n), oe(this, no, this.options), oe(this, ir, T(this, Xe).state)), n;
2091
2091
  }
2092
2092
  getCurrentResult() {
@@ -2114,7 +2114,7 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2114
2114
  });
2115
2115
  }
2116
2116
  fetchOptimistic(t) {
2117
- const u = T(this, Jt).defaultQueryOptions(t), n = T(this, Jt).getQueryCache().build(T(this, Jt), u);
2117
+ const u = T(this, Kt).defaultQueryOptions(t), n = T(this, Kt).getQueryCache().build(T(this, Kt), u);
2118
2118
  return n.fetch().then(() => this.createResult(n, u));
2119
2119
  }
2120
2120
  fetch(t) {
@@ -2238,7 +2238,7 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2238
2238
  onQueryUpdate() {
2239
2239
  this.updateResult(), this.hasListeners() && we(this, nt, wa).call(this);
2240
2240
  }
2241
- }, Jt = new WeakMap(), Xe = new WeakMap(), c0 = new WeakMap(), Vt = new WeakMap(), ir = new WeakMap(), no = new WeakMap(), Ln = new WeakMap(), Ju = new WeakMap(), l0 = new WeakMap(), ro = new WeakMap(), oo = new WeakMap(), sr = new WeakMap(), Dr = new WeakMap(), _n = new WeakMap(), fo = new WeakMap(), nt = new WeakSet(), Mo = function(t) {
2241
+ }, Kt = new WeakMap(), Xe = new WeakMap(), c0 = new WeakMap(), Vt = new WeakMap(), ir = new WeakMap(), no = new WeakMap(), Ln = new WeakMap(), Ju = new WeakMap(), l0 = new WeakMap(), ro = new WeakMap(), oo = new WeakMap(), sr = new WeakMap(), Dr = new WeakMap(), _n = new WeakMap(), fo = new WeakMap(), nt = new WeakSet(), Mo = function(t) {
2242
2242
  we(this, nt, ka).call(this);
2243
2243
  let u = T(this, Xe).fetch(
2244
2244
  this.options,
@@ -2270,7 +2270,7 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2270
2270
  }, Sa = function() {
2271
2271
  T(this, Dr) && (clearInterval(T(this, Dr)), oe(this, Dr, void 0));
2272
2272
  }, ka = function() {
2273
- const t = T(this, Jt).getQueryCache().build(T(this, Jt), this.options);
2273
+ const t = T(this, Kt).getQueryCache().build(T(this, Kt), this.options);
2274
2274
  if (t === T(this, Xe))
2275
2275
  return;
2276
2276
  const u = T(this, Xe);
@@ -2279,7 +2279,7 @@ var pt, Sn, kn, $r, eo, Tn, to, uo, e2, T4 = (e2 = class {
2279
2279
  gt.batch(() => {
2280
2280
  t.listeners && this.listeners.forEach((u) => {
2281
2281
  u(T(this, Vt));
2282
- }), T(this, Jt).getQueryCache().notify({
2282
+ }), T(this, Kt).getQueryCache().notify({
2283
2283
  query: T(this, Xe),
2284
2284
  type: "observerResultsUpdated"
2285
2285
  });
@@ -2484,13 +2484,13 @@ var cr, xu, ao, io, yu, On, d0, A0, C0, Rt, La, _a, Oa, Ra, Na, u2, R4 = (u2 = c
2484
2484
  isRefetching: o && !c && !F
2485
2485
  };
2486
2486
  }
2487
- }, Rn, Nn, Kt, An, pn, W0, ja, n2, j4 = (n2 = class extends wr {
2487
+ }, Rn, Nn, Yt, An, pn, W0, ja, n2, j4 = (n2 = class extends wr {
2488
2488
  constructor(u, n) {
2489
2489
  super();
2490
2490
  Fe(this, pn);
2491
2491
  Fe(this, Rn);
2492
2492
  Fe(this, Nn);
2493
- Fe(this, Kt);
2493
+ Fe(this, Yt);
2494
2494
  Fe(this, An);
2495
2495
  oe(this, Rn, u), this.setOptions(n), this.bindMethods(), we(this, pn, W0).call(this);
2496
2496
  }
@@ -2502,13 +2502,13 @@ var cr, xu, ao, io, yu, On, d0, A0, C0, Rt, La, _a, Oa, Ra, Na, u2, R4 = (u2 = c
2502
2502
  const n = this.options;
2503
2503
  this.options = T(this, Rn).defaultMutationOptions(u), Cf(this.options, n) || T(this, Rn).getMutationCache().notify({
2504
2504
  type: "observerOptionsUpdated",
2505
- mutation: T(this, Kt),
2505
+ mutation: T(this, Yt),
2506
2506
  observer: this
2507
- }), n != null && n.mutationKey && this.options.mutationKey && gr(n.mutationKey) !== gr(this.options.mutationKey) ? this.reset() : ((r = T(this, Kt)) == null ? void 0 : r.state.status) === "pending" && T(this, Kt).setOptions(this.options);
2507
+ }), n != null && n.mutationKey && this.options.mutationKey && gr(n.mutationKey) !== gr(this.options.mutationKey) ? this.reset() : ((r = T(this, Yt)) == null ? void 0 : r.state.status) === "pending" && T(this, Yt).setOptions(this.options);
2508
2508
  }
2509
2509
  onUnsubscribe() {
2510
2510
  var u;
2511
- this.hasListeners() || (u = T(this, Kt)) == null || u.removeObserver(this);
2511
+ this.hasListeners() || (u = T(this, Yt)) == null || u.removeObserver(this);
2512
2512
  }
2513
2513
  onMutationUpdate(u) {
2514
2514
  we(this, pn, W0).call(this), we(this, pn, ja).call(this, u);
@@ -2518,15 +2518,15 @@ var cr, xu, ao, io, yu, On, d0, A0, C0, Rt, La, _a, Oa, Ra, Na, u2, R4 = (u2 = c
2518
2518
  }
2519
2519
  reset() {
2520
2520
  var u;
2521
- (u = T(this, Kt)) == null || u.removeObserver(this), oe(this, Kt, void 0), we(this, pn, W0).call(this), we(this, pn, ja).call(this);
2521
+ (u = T(this, Yt)) == null || u.removeObserver(this), oe(this, Yt, void 0), we(this, pn, W0).call(this), we(this, pn, ja).call(this);
2522
2522
  }
2523
2523
  mutate(u, n) {
2524
2524
  var r;
2525
- return oe(this, An, n), (r = T(this, Kt)) == null || r.removeObserver(this), oe(this, Kt, T(this, Rn).getMutationCache().build(T(this, Rn), this.options)), T(this, Kt).addObserver(this), T(this, Kt).execute(u);
2525
+ return oe(this, An, n), (r = T(this, Yt)) == null || r.removeObserver(this), oe(this, Yt, T(this, Rn).getMutationCache().build(T(this, Rn), this.options)), T(this, Yt).addObserver(this), T(this, Yt).execute(u);
2526
2526
  }
2527
- }, Rn = new WeakMap(), Nn = new WeakMap(), Kt = new WeakMap(), An = new WeakMap(), pn = new WeakSet(), W0 = function() {
2527
+ }, Rn = new WeakMap(), Nn = new WeakMap(), Yt = new WeakMap(), An = new WeakMap(), pn = new WeakSet(), W0 = function() {
2528
2528
  var n;
2529
- const u = ((n = T(this, Kt)) == null ? void 0 : n.state) ?? _2();
2529
+ const u = ((n = T(this, Yt)) == null ? void 0 : n.state) ?? _2();
2530
2530
  oe(this, Nn, {
2531
2531
  ...u,
2532
2532
  isPending: u.status === "pending",
@@ -3574,14 +3574,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", DC
3574
3574
  hasStandardBrowserWebWorkerEnv: sC,
3575
3575
  navigator: za,
3576
3576
  origin: DC
3577
- }, Symbol.toStringTag, { value: "Module" })), uu = {
3577
+ }, Symbol.toStringTag, { value: "Module" })), nu = {
3578
3578
  ...cC,
3579
3579
  ...aC
3580
3580
  };
3581
3581
  function lC(e, t) {
3582
- return $f(e, new uu.classes.URLSearchParams(), Object.assign({
3582
+ return $f(e, new nu.classes.URLSearchParams(), Object.assign({
3583
3583
  visitor: function(u, n, r, o) {
3584
- return uu.isNode && X.isBuffer(u) ? (this.append(n, u.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
3584
+ return nu.isNode && X.isBuffer(u) ? (this.append(n, u.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
3585
3585
  }
3586
3586
  }, t));
3587
3587
  }
@@ -3675,8 +3675,8 @@ const E0 = {
3675
3675
  maxContentLength: -1,
3676
3676
  maxBodyLength: -1,
3677
3677
  env: {
3678
- FormData: uu.classes.FormData,
3679
- Blob: uu.classes.Blob
3678
+ FormData: nu.classes.FormData,
3679
+ Blob: nu.classes.Blob
3680
3680
  },
3681
3681
  validateStatus: function(t) {
3682
3682
  return t >= 200 && t < 300;
@@ -3755,7 +3755,7 @@ function mC(e, t) {
3755
3755
  });
3756
3756
  });
3757
3757
  }
3758
- let nu = class {
3758
+ let ru = class {
3759
3759
  constructor(t) {
3760
3760
  t && this.set(t);
3761
3761
  }
@@ -3873,8 +3873,8 @@ let nu = class {
3873
3873
  return X.isArray(t) ? t.forEach(o) : o(t), this;
3874
3874
  }
3875
3875
  };
3876
- nu.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
3877
- X.reduceDescriptors(nu.prototype, ({ value: e }, t) => {
3876
+ ru.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
3877
+ X.reduceDescriptors(ru.prototype, ({ value: e }, t) => {
3878
3878
  let u = t[0].toUpperCase() + t.slice(1);
3879
3879
  return {
3880
3880
  get: () => e,
@@ -3883,9 +3883,9 @@ X.reduceDescriptors(nu.prototype, ({ value: e }, t) => {
3883
3883
  }
3884
3884
  };
3885
3885
  });
3886
- X.freezeMethods(nu);
3886
+ X.freezeMethods(ru);
3887
3887
  function _1(e, t) {
3888
- const u = this || E0, n = t || u, r = nu.from(n.headers);
3888
+ const u = this || E0, n = t || u, r = ru.from(n.headers);
3889
3889
  let o = n.data;
3890
3890
  return X.forEach(e, function(i) {
3891
3891
  o = i.call(u, o, r.normalize(), t ? t.status : void 0);
@@ -3968,11 +3968,11 @@ const bf = (e, t, u = 3) => {
3968
3968
  total: e,
3969
3969
  loaded: n
3970
3970
  }), t[1]];
3971
- }, CD = (e) => (...t) => X.asap(() => e(...t)), vC = uu.hasStandardBrowserEnv ? (
3971
+ }, CD = (e) => (...t) => X.asap(() => e(...t)), vC = nu.hasStandardBrowserEnv ? (
3972
3972
  // Standard browser envs have full support of the APIs needed to test
3973
3973
  // whether the request URL is of the same origin as current location.
3974
3974
  function() {
3975
- const t = uu.navigator && /(msie|trident)/i.test(uu.navigator.userAgent), u = document.createElement("a");
3975
+ const t = nu.navigator && /(msie|trident)/i.test(nu.navigator.userAgent), u = document.createElement("a");
3976
3976
  let n;
3977
3977
  function r(o) {
3978
3978
  let f = o;
@@ -3999,7 +3999,7 @@ const bf = (e, t, u = 3) => {
3999
3999
  return !0;
4000
4000
  };
4001
4001
  }()
4002
- ), BC = uu.hasStandardBrowserEnv ? (
4002
+ ), BC = nu.hasStandardBrowserEnv ? (
4003
4003
  // Standard browser envs support document.cookie
4004
4004
  {
4005
4005
  write(e, t, u, n, r, o) {
@@ -4035,7 +4035,7 @@ function IC(e, t) {
4035
4035
  function Cl(e, t) {
4036
4036
  return e && !wC(t) ? IC(e, t) : t;
4037
4037
  }
4038
- const pD = (e) => e instanceof nu ? { ...e } : e;
4038
+ const pD = (e) => e instanceof ru ? { ...e } : e;
4039
4039
  function Er(e, t) {
4040
4040
  t = t || {};
4041
4041
  const u = {};
@@ -4103,20 +4103,20 @@ function Er(e, t) {
4103
4103
  const pl = (e) => {
4104
4104
  const t = Er({}, e);
4105
4105
  let { data: u, withXSRFToken: n, xsrfHeaderName: r, xsrfCookieName: o, headers: f, auth: i } = t;
4106
- t.headers = f = nu.from(f), t.url = Dl(Cl(t.baseURL, t.url), e.params, e.paramsSerializer), i && f.set(
4106
+ t.headers = f = ru.from(f), t.url = Dl(Cl(t.baseURL, t.url), e.params, e.paramsSerializer), i && f.set(
4107
4107
  "Authorization",
4108
4108
  "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
4109
4109
  );
4110
4110
  let s;
4111
4111
  if (X.isFormData(u)) {
4112
- if (uu.hasStandardBrowserEnv || uu.hasStandardBrowserWebWorkerEnv)
4112
+ if (nu.hasStandardBrowserEnv || nu.hasStandardBrowserWebWorkerEnv)
4113
4113
  f.setContentType(void 0);
4114
4114
  else if ((s = f.getContentType()) !== !1) {
4115
4115
  const [D, ...c] = s ? s.split(";").map((d) => d.trim()).filter(Boolean) : [];
4116
4116
  f.setContentType([D || "multipart/form-data", ...c].join("; "));
4117
4117
  }
4118
4118
  }
4119
- if (uu.hasStandardBrowserEnv && (n && X.isFunction(n) && (n = n(t)), n || n !== !1 && vC(t.url))) {
4119
+ if (nu.hasStandardBrowserEnv && (n && X.isFunction(n) && (n = n(t)), n || n !== !1 && vC(t.url))) {
4120
4120
  const D = r && o && BC.read(o);
4121
4121
  D && f.set(r, D);
4122
4122
  }
@@ -4125,7 +4125,7 @@ const pl = (e) => {
4125
4125
  return new Promise(function(u, n) {
4126
4126
  const r = pl(e);
4127
4127
  let o = r.data;
4128
- const f = nu.from(r.headers).normalize();
4128
+ const f = ru.from(r.headers).normalize();
4129
4129
  let { responseType: i, onUploadProgress: s, onDownloadProgress: D } = r, c, d, F, g, p;
4130
4130
  function A() {
4131
4131
  g && g(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
@@ -4135,7 +4135,7 @@ const pl = (e) => {
4135
4135
  function C() {
4136
4136
  if (!l)
4137
4137
  return;
4138
- const E = nu.from(
4138
+ const E = ru.from(
4139
4139
  "getAllResponseHeaders" in l && l.getAllResponseHeaders()
4140
4140
  ), m = {
4141
4141
  data: !i || i === "text" || i === "json" ? l.responseText : l.response,
@@ -4172,7 +4172,7 @@ const pl = (e) => {
4172
4172
  l && (n(!E || E.type ? new go(null, e, l) : E), l.abort(), l = null);
4173
4173
  }, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
4174
4174
  const h = bC(r.url);
4175
- if (h && uu.protocols.indexOf(h) === -1) {
4175
+ if (h && nu.protocols.indexOf(h) === -1) {
4176
4176
  n(new Pe("Unsupported protocol " + h + ":", Pe.ERR_BAD_REQUEST, e));
4177
4177
  return;
4178
4178
  }
@@ -4266,7 +4266,7 @@ const pl = (e) => {
4266
4266
  }
4267
4267
  }, NC = Fl && gl(() => {
4268
4268
  let e = !1;
4269
- const t = new Request(uu.origin, {
4269
+ const t = new Request(nu.origin, {
4270
4270
  body: new ReadableStream(),
4271
4271
  method: "POST",
4272
4272
  get duplex() {
@@ -4290,7 +4290,7 @@ const jC = async (e) => {
4290
4290
  if (X.isBlob(e))
4291
4291
  return e.size;
4292
4292
  if (X.isSpecCompliantForm(e))
4293
- return (await new Request(uu.origin, {
4293
+ return (await new Request(nu.origin, {
4294
4294
  method: "POST",
4295
4295
  body: e
4296
4296
  }).arrayBuffer()).byteLength;
@@ -4371,7 +4371,7 @@ const jC = async (e) => {
4371
4371
  return !E && A && A(), await new Promise((m, x) => {
4372
4372
  Al(m, x, {
4373
4373
  data: b,
4374
- headers: nu.from(h.headers),
4374
+ headers: ru.from(h.headers),
4375
4375
  status: h.status,
4376
4376
  statusText: h.statusText,
4377
4377
  config: e,
@@ -4436,7 +4436,7 @@ function O1(e) {
4436
4436
  throw new go(null, e);
4437
4437
  }
4438
4438
  function ED(e) {
4439
- return O1(e), e.headers = nu.from(e.headers), e.data = _1.call(
4439
+ return O1(e), e.headers = ru.from(e.headers), e.data = _1.call(
4440
4440
  e,
4441
4441
  e.transformRequest
4442
4442
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), hl.getAdapter(e.adapter || E0.adapter)(e).then(function(n) {
@@ -4444,13 +4444,13 @@ function ED(e) {
4444
4444
  e,
4445
4445
  e.transformResponse,
4446
4446
  n
4447
- ), n.headers = nu.from(n.headers), n;
4447
+ ), n.headers = ru.from(n.headers), n;
4448
4448
  }, function(n) {
4449
4449
  return dl(n) || (O1(e), n && n.response && (n.response.data = _1.call(
4450
4450
  e,
4451
4451
  e.transformResponse,
4452
4452
  n.response
4453
- ), n.response.headers = nu.from(n.response.headers))), Promise.reject(n);
4453
+ ), n.response.headers = ru.from(n.response.headers))), Promise.reject(n);
4454
4454
  });
4455
4455
  }
4456
4456
  const El = "1.7.7", $i = {};
@@ -4553,7 +4553,7 @@ let dr = class {
4553
4553
  (p) => {
4554
4554
  delete o[p];
4555
4555
  }
4556
- ), u.headers = nu.concat(f, o);
4556
+ ), u.headers = ru.concat(f, o);
4557
4557
  const i = [];
4558
4558
  let s = !0;
4559
4559
  this.interceptors.request.forEach(function(A) {
@@ -4790,7 +4790,7 @@ mt.all = function(t) {
4790
4790
  mt.spread = VC;
4791
4791
  mt.isAxiosError = GC;
4792
4792
  mt.mergeConfig = Er;
4793
- mt.AxiosHeaders = nu;
4793
+ mt.AxiosHeaders = ru;
4794
4794
  mt.formToJSON = (e) => ll(X.isHTMLForm(e) ? new FormData(e) : e);
4795
4795
  mt.getAdapter = hl.getAdapter;
4796
4796
  mt.HttpStatusCode = qa;
@@ -4864,9 +4864,9 @@ var Ye = {}, Hn = {};
4864
4864
  t[t.WEB = 0] = "WEB", t[t.MOBILE = 1] = "MOBILE";
4865
4865
  }(e.PLATFORM || (e.PLATFORM = {}));
4866
4866
  })(Hn);
4867
- var qt = {};
4868
- Object.defineProperty(qt, "__esModule", { value: !0 });
4869
- qt.getProdHqConfig = qt.getProdApiConfig = qt.getSitHqConfig = qt.getSitApiConfig = qt.getDevHqConfig = qt.getDevApiConfig = void 0;
4867
+ var $t = {};
4868
+ Object.defineProperty($t, "__esModule", { value: !0 });
4869
+ $t.getProdHqConfig = $t.getProdApiConfig = $t.getSitHqConfig = $t.getSitApiConfig = $t.getDevHqConfig = $t.getDevApiConfig = void 0;
4870
4870
  var ho = {
4871
4871
  heimdallTokenFetch: "/v1/token/get",
4872
4872
  heimdallLogin: "/v1/login/code",
@@ -4881,7 +4881,7 @@ var ho = {
4881
4881
  apiEndpoints: ho
4882
4882
  };
4883
4883
  };
4884
- qt.getDevApiConfig = ap;
4884
+ $t.getDevApiConfig = ap;
4885
4885
  var ip = function() {
4886
4886
  return {
4887
4887
  v2Url: "https://v2dev.hiver.space",
@@ -4890,7 +4890,7 @@ var ip = function() {
4890
4890
  apiEndpoints: ho
4891
4891
  };
4892
4892
  };
4893
- qt.getDevHqConfig = ip;
4893
+ $t.getDevHqConfig = ip;
4894
4894
  var sp = function(e) {
4895
4895
  return {
4896
4896
  v2Url: "https://v2".concat(e, ".hiver.space"),
@@ -4899,7 +4899,7 @@ var sp = function(e) {
4899
4899
  apiEndpoints: ho
4900
4900
  };
4901
4901
  };
4902
- qt.getSitApiConfig = sp;
4902
+ $t.getSitApiConfig = sp;
4903
4903
  var Dp = function(e) {
4904
4904
  return {
4905
4905
  v2Url: "https://v2".concat(e, ".hiver.space"),
@@ -4908,7 +4908,7 @@ var Dp = function(e) {
4908
4908
  apiEndpoints: ho
4909
4909
  };
4910
4910
  };
4911
- qt.getSitHqConfig = Dp;
4911
+ $t.getSitHqConfig = Dp;
4912
4912
  var cp = function() {
4913
4913
  return {
4914
4914
  v2Url: "https://v2.hiverhq.com",
@@ -4917,7 +4917,7 @@ var cp = function() {
4917
4917
  apiEndpoints: ho
4918
4918
  };
4919
4919
  };
4920
- qt.getProdApiConfig = cp;
4920
+ $t.getProdApiConfig = cp;
4921
4921
  var lp = function() {
4922
4922
  return {
4923
4923
  v2Url: "https://v2.hiverhq.com",
@@ -4926,7 +4926,7 @@ var lp = function() {
4926
4926
  apiEndpoints: ho
4927
4927
  };
4928
4928
  };
4929
- qt.getProdHqConfig = lp;
4929
+ $t.getProdHqConfig = lp;
4930
4930
  var qu = {}, $u = {};
4931
4931
  Object.defineProperty($u, "__esModule", { value: !0 });
4932
4932
  $u.removeValue = $u.getValue = $u.setValue = void 0;
@@ -5068,7 +5068,7 @@ var hp = Oe && Oe.__awaiter || function(e, t, u, n) {
5068
5068
  };
5069
5069
  Object.defineProperty(Ye, "__esModule", { value: !0 });
5070
5070
  Ye.expireToken = Ye.invalidateToken = Ye.validateToken = Ye.validateAccount = Ye.getConfig = Ye.introduceDelay = Ye.isTokenInExpiryWindow = Ye.getStoredAuthData = Ye.setUserDetails = Ye.getRefreshInterval = Ye.setTokenAndExpiry = Ye.getRandomDelay = Ye.hasValidToken = void 0;
5071
- var Cn = Hn, _r = qt, Du = qu, us = function() {
5071
+ var Cn = Hn, _r = $t, Du = qu, us = function() {
5072
5072
  var e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() + e.getTimezoneOffset() * 6e4);
5073
5073
  return t;
5074
5074
  }, ns = function(e) {
@@ -5961,9 +5961,9 @@ Ft.TIERS = {
5961
5961
  SIT: "sit",
5962
5962
  PROD: "production"
5963
5963
  };
5964
- var $t = {};
5965
- Object.defineProperty($t, "__esModule", { value: !0 });
5966
- $t.getProdHqConfig = $t.getProdApiConfig = $t.getSitHqConfig = $t.getSitApiConfig = $t.getDevHqConfig = $t.getDevApiConfig = void 0;
5964
+ var eu = {};
5965
+ Object.defineProperty(eu, "__esModule", { value: !0 });
5966
+ eu.getProdHqConfig = eu.getProdApiConfig = eu.getSitHqConfig = eu.getSitApiConfig = eu.getDevHqConfig = eu.getDevApiConfig = void 0;
5967
5967
  var Eo = {
5968
5968
  heimdallTokenFetch: "/v1/token/get",
5969
5969
  heimdallLogin: "/v1/login/code",
@@ -5975,7 +5975,7 @@ var Eo = {
5975
5975
  apiEndpoints: Eo
5976
5976
  };
5977
5977
  };
5978
- $t.getDevApiConfig = Np;
5978
+ eu.getDevApiConfig = Np;
5979
5979
  var jp = function() {
5980
5980
  return {
5981
5981
  v2Url: "https://v2dev.hiver.space",
@@ -5983,7 +5983,7 @@ var jp = function() {
5983
5983
  apiEndpoints: Eo
5984
5984
  };
5985
5985
  };
5986
- $t.getDevHqConfig = jp;
5986
+ eu.getDevHqConfig = jp;
5987
5987
  var Mp = function(e) {
5988
5988
  return {
5989
5989
  v2Url: "https://v2".concat(e, ".hiver.space"),
@@ -5991,7 +5991,7 @@ var Mp = function(e) {
5991
5991
  apiEndpoints: Eo
5992
5992
  };
5993
5993
  };
5994
- $t.getSitApiConfig = Mp;
5994
+ eu.getSitApiConfig = Mp;
5995
5995
  var Pp = function(e) {
5996
5996
  return {
5997
5997
  v2Url: "https://v2".concat(e, ".hiver.space"),
@@ -5999,7 +5999,7 @@ var Pp = function(e) {
5999
5999
  apiEndpoints: Eo
6000
6000
  };
6001
6001
  };
6002
- $t.getSitHqConfig = Pp;
6002
+ eu.getSitHqConfig = Pp;
6003
6003
  var Qp = function() {
6004
6004
  return {
6005
6005
  v2Url: "https://v2.hiverhq.com",
@@ -6007,7 +6007,7 @@ var Qp = function() {
6007
6007
  apiEndpoints: Eo
6008
6008
  };
6009
6009
  };
6010
- $t.getProdApiConfig = Qp;
6010
+ eu.getProdApiConfig = Qp;
6011
6011
  var Hp = function() {
6012
6012
  return {
6013
6013
  v2Url: "https://v2.hiverhq.com",
@@ -6015,7 +6015,7 @@ var Hp = function() {
6015
6015
  apiEndpoints: Eo
6016
6016
  };
6017
6017
  };
6018
- $t.getProdHqConfig = Hp;
6018
+ eu.getProdHqConfig = Hp;
6019
6019
  var Up = Oe && Oe.__awaiter || function(e, t, u, n) {
6020
6020
  function r(o) {
6021
6021
  return o instanceof u ? o : new u(function(f) {
@@ -6104,7 +6104,7 @@ var Up = Oe && Oe.__awaiter || function(e, t, u, n) {
6104
6104
  };
6105
6105
  Object.defineProperty(at, "__esModule", { value: !0 });
6106
6106
  at.expireToken = at.validateToken = at.validateAccount = at.getConfig = at.introduceDelay = at.isTokenInExpiryWindow = at.getStoredAuthData = at.setUserDetails = at.setTokenAndExpiry = at.getRandomDelay = at.hasValidToken = void 0;
6107
- var R1 = Ft, Jn = $t, Il = function() {
6107
+ var R1 = Ft, Jn = eu, Il = function() {
6108
6108
  var e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() + e.getTimezoneOffset() * 6e4);
6109
6109
  return t;
6110
6110
  }, rs = function(e) {
@@ -8537,7 +8537,7 @@ var ad = Symbol.for("immer-nothing"), ZD = Symbol.for("immer-draftable"), pu = S
8537
8537
  // Note: if more errors are added, the errorOffset in Patches.ts should be increased
8538
8538
  // See Patches.ts for additional errors
8539
8539
  ] : [];
8540
- function eu(e, ...t) {
8540
+ function tu(e, ...t) {
8541
8541
  if (process.env.NODE_ENV !== "production") {
8542
8542
  const u = v9[e], n = typeof u == "function" ? u.apply(null, t) : u;
8543
8543
  throw new Error(`[Immer] ${n}`);
@@ -8627,7 +8627,7 @@ function As(e, t = !1) {
8627
8627
  return f1(e) || mr(e) || !gn(e) || (n1(e) > 1 && (e.set = e.add = e.clear = e.delete = I9), Object.freeze(e), t && Object.entries(e).forEach(([u, n]) => As(n, !0))), e;
8628
8628
  }
8629
8629
  function I9() {
8630
- eu(2);
8630
+ tu(2);
8631
8631
  }
8632
8632
  function f1(e) {
8633
8633
  return Object.isFrozen(e);
@@ -8635,7 +8635,7 @@ function f1(e) {
8635
8635
  var S9 = {};
8636
8636
  function br(e) {
8637
8637
  const t = S9[e];
8638
- return t || eu(0, e), t;
8638
+ return t || tu(0, e), t;
8639
8639
  }
8640
8640
  var $o;
8641
8641
  function Dd() {
@@ -8671,7 +8671,7 @@ function T9(e) {
8671
8671
  function KD(e, t) {
8672
8672
  t.unfinalizedDrafts_ = t.drafts_.length;
8673
8673
  const u = t.drafts_[0];
8674
- return e !== void 0 && e !== u ? (u[pu].modified_ && (fi(t), eu(4)), gn(e) && (e = wf(t, e), t.parent_ || If(t, e)), t.patches_ && br("Patches").generateReplacementPatches_(
8674
+ return e !== void 0 && e !== u ? (u[pu].modified_ && (fi(t), tu(4)), gn(e) && (e = wf(t, e), t.parent_ || If(t, e)), t.patches_ && br("Patches").generateReplacementPatches_(
8675
8675
  u[pu].base_,
8676
8676
  e,
8677
8677
  t.patches_,
@@ -8708,7 +8708,7 @@ function wf(e, t, u) {
8708
8708
  return n.copy_;
8709
8709
  }
8710
8710
  function YD(e, t, u, n, r, o, f) {
8711
- if (process.env.NODE_ENV !== "production" && r === u && eu(5), mr(r)) {
8711
+ if (process.env.NODE_ENV !== "production" && r === u && tu(5), mr(r)) {
8712
8712
  const i = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
8713
8713
  !ri(t.assigned_, n) ? o.concat(n) : void 0, s = wf(e, r, i);
8714
8714
  if (sd(u, n, s), mr(s))
@@ -8801,13 +8801,13 @@ var Cs = {
8801
8801
  };
8802
8802
  },
8803
8803
  defineProperty() {
8804
- eu(11);
8804
+ tu(11);
8805
8805
  },
8806
8806
  getPrototypeOf(e) {
8807
8807
  return Ao(e.base_);
8808
8808
  },
8809
8809
  setPrototypeOf() {
8810
- eu(12);
8810
+ tu(12);
8811
8811
  }
8812
8812
  }, e0 = {};
8813
8813
  Bf(Cs, (e, t) => {
@@ -8816,10 +8816,10 @@ Bf(Cs, (e, t) => {
8816
8816
  };
8817
8817
  });
8818
8818
  e0.deleteProperty = function(e, t) {
8819
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && eu(13), e0.set.call(this, e, t, void 0);
8819
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && tu(13), e0.set.call(this, e, t, void 0);
8820
8820
  };
8821
8821
  e0.set = function(e, t, u) {
8822
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && eu(14), Cs.set.call(this, e[0], t, u, e[0]);
8822
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && tu(14), Cs.set.call(this, e[0], t, u, e[0]);
8823
8823
  };
8824
8824
  function U1(e, t) {
8825
8825
  const u = e[pu];
@@ -8865,7 +8865,7 @@ var O9 = class {
8865
8865
  return f.produce(s, (c) => u.call(this, c, ...D));
8866
8866
  };
8867
8867
  }
8868
- typeof u != "function" && eu(6), n !== void 0 && typeof n != "function" && eu(7);
8868
+ typeof u != "function" && tu(6), n !== void 0 && typeof n != "function" && tu(7);
8869
8869
  let r;
8870
8870
  if (gn(t)) {
8871
8871
  const o = JD(this), f = si(t, void 0);
@@ -8883,7 +8883,7 @@ var O9 = class {
8883
8883
  }
8884
8884
  return r;
8885
8885
  } else
8886
- eu(1, t);
8886
+ tu(1, t);
8887
8887
  }, this.produceWithPatches = (t, u) => {
8888
8888
  if (typeof t == "function")
8889
8889
  return (f, ...i) => this.produceWithPatches(f, (s) => t(s, ...i));
@@ -8894,13 +8894,13 @@ var O9 = class {
8894
8894
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
8895
8895
  }
8896
8896
  createDraft(e) {
8897
- gn(e) || eu(8), mr(e) && (e = R9(e));
8897
+ gn(e) || tu(8), mr(e) && (e = R9(e));
8898
8898
  const t = JD(this), u = si(e, void 0);
8899
8899
  return u[pu].isManual_ = !0, ai(t), u;
8900
8900
  }
8901
8901
  finishDraft(e, t) {
8902
8902
  const u = e && e[pu];
8903
- (!u || !u.isManual_) && eu(9);
8903
+ (!u || !u.isManual_) && tu(9);
8904
8904
  const { scope_: n } = u;
8905
8905
  return zD(n, t), KD(void 0, n);
8906
8906
  }
@@ -8942,7 +8942,7 @@ function si(e, t) {
8942
8942
  return (t ? t.scope_ : Dd()).drafts_.push(u), u;
8943
8943
  }
8944
8944
  function R9(e) {
8945
- return mr(e) || eu(10, e), ld(e);
8945
+ return mr(e) || tu(10, e), ld(e);
8946
8946
  }
8947
8947
  function ld(e) {
8948
8948
  if (!gn(e) || f1(e))
@@ -11733,7 +11733,7 @@ function R0(e, t) {
11733
11733
  function Jm(e, t) {
11734
11734
  return e.map(t).join("");
11735
11735
  }
11736
- var l1 = 1, Co = 1, Kd = 0, ru = 0, bt = 0, xo = "";
11736
+ var l1 = 1, Co = 1, Kd = 0, ou = 0, bt = 0, xo = "";
11737
11737
  function d1(e, t, u, n, r, o, f) {
11738
11738
  return { value: e, root: t, parent: u, type: n, props: r, children: o, line: l1, column: Co, length: f, return: "" };
11739
11739
  }
@@ -11744,16 +11744,16 @@ function Km() {
11744
11744
  return bt;
11745
11745
  }
11746
11746
  function Ym() {
11747
- return bt = ru > 0 ? Ot(xo, --ru) : 0, Co--, bt === 10 && (Co = 1, l1--), bt;
11747
+ return bt = ou > 0 ? Ot(xo, --ou) : 0, Co--, bt === 10 && (Co = 1, l1--), bt;
11748
11748
  }
11749
11749
  function Au() {
11750
- return bt = ru < Kd ? Ot(xo, ru++) : 0, Co++, bt === 10 && (Co = 1, l1++), bt;
11750
+ return bt = ou < Kd ? Ot(xo, ou++) : 0, Co++, bt === 10 && (Co = 1, l1++), bt;
11751
11751
  }
11752
11752
  function en() {
11753
- return Ot(xo, ru);
11753
+ return Ot(xo, ou);
11754
11754
  }
11755
11755
  function Y0() {
11756
- return ru;
11756
+ return ou;
11757
11757
  }
11758
11758
  function b0(e, t) {
11759
11759
  return r0(xo, e, t);
@@ -11791,13 +11791,13 @@ function o0(e) {
11791
11791
  return 0;
11792
11792
  }
11793
11793
  function Yd(e) {
11794
- return l1 = Co = 1, Kd = Ku(xo = e), ru = 0, [];
11794
+ return l1 = Co = 1, Kd = Ku(xo = e), ou = 0, [];
11795
11795
  }
11796
11796
  function qd(e) {
11797
11797
  return xo = "", e;
11798
11798
  }
11799
11799
  function q0(e) {
11800
- return Jd(b0(ru - 1, gi(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
11800
+ return Jd(b0(ou - 1, gi(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
11801
11801
  }
11802
11802
  function qm(e) {
11803
11803
  for (; (bt = en()) && bt < 33; )
@@ -11813,7 +11813,7 @@ function gi(e) {
11813
11813
  for (; Au(); )
11814
11814
  switch (bt) {
11815
11815
  case e:
11816
- return ru;
11816
+ return ou;
11817
11817
  case 34:
11818
11818
  case 39:
11819
11819
  e !== 34 && e !== 39 && gi(bt);
@@ -11825,18 +11825,18 @@ function gi(e) {
11825
11825
  Au();
11826
11826
  break;
11827
11827
  }
11828
- return ru;
11828
+ return ou;
11829
11829
  }
11830
11830
  function eb(e, t) {
11831
11831
  for (; Au() && e + bt !== 57; )
11832
11832
  if (e + bt === 84 && en() === 47)
11833
11833
  break;
11834
- return "/*" + b0(t, ru - 1) + "*" + c1(e === 47 ? e : Au());
11834
+ return "/*" + b0(t, ou - 1) + "*" + c1(e === 47 ? e : Au());
11835
11835
  }
11836
11836
  function tb(e) {
11837
11837
  for (; !o0(en()); )
11838
11838
  Au();
11839
- return b0(e, ru);
11839
+ return b0(e, ou);
11840
11840
  }
11841
11841
  function ub(e) {
11842
11842
  return qd($0("", null, null, null, [""], e = Yd(e), 0, [0], e));
@@ -11985,13 +11985,13 @@ function ab(e) {
11985
11985
  var ib = function(t, u, n) {
11986
11986
  for (var r = 0, o = 0; r = o, o = en(), r === 38 && o === 12 && (u[n] = 1), !o0(o); )
11987
11987
  Au();
11988
- return b0(t, ru);
11988
+ return b0(t, ou);
11989
11989
  }, sb = function(t, u) {
11990
11990
  var n = -1, r = 44;
11991
11991
  do
11992
11992
  switch (o0(r)) {
11993
11993
  case 0:
11994
- r === 38 && en() === 12 && (u[n] = 1), t[n] += ib(ru - 1, u, n);
11994
+ r === 38 && en() === 12 && (u[n] = 1), t[n] += ib(ou - 1, u, n);
11995
11995
  break;
11996
11996
  case 2:
11997
11997
  t[n] += q0(r);
@@ -20890,7 +20890,7 @@ const xS = w(Vi)`
20890
20890
  }, N8 = {
20891
20891
  values: {},
20892
20892
  errors: {}
20893
- }, Yt = {
20893
+ }, qt = {
20894
20894
  SET_FIELD_VALUE: "SET_FIELD_VALUE",
20895
20895
  CLEAR_ERROR: "CLEAR_ERROR",
20896
20896
  SET_FIELD_ERROR: "SET_FIELD_ERROR",
@@ -20901,7 +20901,7 @@ const xS = w(Vi)`
20901
20901
  }, LS = (e, t) => {
20902
20902
  const { type: u, payload: n } = t;
20903
20903
  switch (u) {
20904
- case Yt.SET_FIELD_VALUE: {
20904
+ case qt.SET_FIELD_VALUE: {
20905
20905
  if (!(n != null && n.value)) return e;
20906
20906
  const { name: r, value: o } = n.value;
20907
20907
  return {
@@ -20912,7 +20912,7 @@ const xS = w(Vi)`
20912
20912
  }
20913
20913
  };
20914
20914
  }
20915
- case Yt.SET_FIELD_ERROR: {
20915
+ case qt.SET_FIELD_ERROR: {
20916
20916
  if (!(n != null && n.value)) return e;
20917
20917
  const { name: r, value: o } = n.value;
20918
20918
  return typeof o == "boolean" || typeof o == "string" ? {
@@ -20923,7 +20923,7 @@ const xS = w(Vi)`
20923
20923
  }
20924
20924
  } : e;
20925
20925
  }
20926
- case Yt.CLEAR_ERROR: {
20926
+ case qt.CLEAR_ERROR: {
20927
20927
  if (!(n != null && n.value)) return e;
20928
20928
  const { name: r } = n.value;
20929
20929
  return {
@@ -20934,7 +20934,7 @@ const xS = w(Vi)`
20934
20934
  }
20935
20935
  };
20936
20936
  }
20937
- case Yt.SET_FIELDS: {
20937
+ case qt.SET_FIELDS: {
20938
20938
  if (!(n != null && n.values)) return e;
20939
20939
  const { values: r } = n;
20940
20940
  return {
@@ -20942,7 +20942,7 @@ const xS = w(Vi)`
20942
20942
  values: r
20943
20943
  };
20944
20944
  }
20945
- case Yt.SET_FORM_DEFAULTS: {
20945
+ case qt.SET_FORM_DEFAULTS: {
20946
20946
  if (!(n != null && n.values)) return e;
20947
20947
  const { values: r } = n, o = { ...e.errors };
20948
20948
  for (const f in r ?? {})
@@ -20956,7 +20956,7 @@ const xS = w(Vi)`
20956
20956
  }
20957
20957
  };
20958
20958
  }
20959
- case Yt.CLEAR_FIELDS: {
20959
+ case qt.CLEAR_FIELDS: {
20960
20960
  const { fieldNames: r } = n ?? {};
20961
20961
  if (!Array.isArray(r)) return e;
20962
20962
  const o = { ...e.values }, f = { ...e.errors };
@@ -20968,16 +20968,16 @@ const xS = w(Vi)`
20968
20968
  errors: f
20969
20969
  };
20970
20970
  }
20971
- case Yt.RESET_STATE:
20971
+ case qt.RESET_STATE:
20972
20972
  return N8;
20973
20973
  }
20974
20974
  return e;
20975
20975
  }, j8 = () => $5(LS, N8), M8 = ({ state: e, dispatch: t, validations: u, dynamicFields: n }) => {
20976
20976
  const r = e.errors, o = (g, p) => {
20977
- t({ type: Yt.SET_FIELD_VALUE, payload: { value: { value: p, name: g } } });
20977
+ t({ type: qt.SET_FIELD_VALUE, payload: { value: { value: p, name: g } } });
20978
20978
  }, f = Ae(
20979
20979
  (g) => {
20980
- t({ type: Yt.SET_FORM_DEFAULTS, payload: { values: g } });
20980
+ t({ type: qt.SET_FORM_DEFAULTS, payload: { values: g } });
20981
20981
  },
20982
20982
  [t]
20983
20983
  ), i = Ae(() => Object.keys(r).filter((p) => !!r[p]).length > 0, [r]), s = (g) => {
@@ -20991,7 +20991,7 @@ const xS = w(Vi)`
20991
20991
  }, c = (g, p) => {
20992
20992
  o(g, p || "");
20993
20993
  }, d = (g, p) => {
20994
- e.errors[g] !== p && t({ type: Yt.SET_FIELD_ERROR, payload: { value: { name: g, value: p } } });
20994
+ e.errors[g] !== p && t({ type: qt.SET_FIELD_ERROR, payload: { value: { name: g, value: p } } });
20995
20995
  }, F = (g, p) => {
20996
20996
  if (p) {
20997
20997
  const A = p[g];
@@ -21005,7 +21005,7 @@ const xS = w(Vi)`
21005
21005
  if (Array.isArray(n))
21006
21006
  return () => {
21007
21007
  const g = n.map((p) => p.name);
21008
- t({ type: Yt.CLEAR_FIELDS, payload: { fieldNames: g } });
21008
+ t({ type: qt.CLEAR_FIELDS, payload: { fieldNames: g } });
21009
21009
  };
21010
21010
  }, [n, t]), {
21011
21011
  setValue: o,
@@ -21464,7 +21464,7 @@ const US = w(j)`
21464
21464
  const ee = It(E, Cg), ae = (N == null ? void 0 : N.hasCustomFields) ?? !1, { customFieldsArgsPresent: De, customFieldsArgs: Ce } = de(() => {
21465
21465
  if (!ae) return { customFieldsArgsPresent: !1, customFieldsArgs: {} };
21466
21466
  const ge = Object.values((N == null ? void 0 : N.customFieldsArgs) ?? {}).every(
21467
- (Zt) => !!k.values[Zt]
21467
+ (zt) => !!k.values[zt]
21468
21468
  );
21469
21469
  if (!ge) return { customFieldsArgsPresent: !1, customFieldsArgs: {} };
21470
21470
  const Qe = (N == null ? void 0 : N.customFieldsArgs) ?? {}, At = Ho(k, Qe);
@@ -21509,7 +21509,7 @@ const US = w(j)`
21509
21509
  dateChangeHandler: nn,
21510
21510
  clearDependentFields: Xt,
21511
21511
  handleValidationError: Qu,
21512
- isErrorInValidations: ou
21512
+ isErrorInValidations: Zt
21513
21513
  } = M8({ state: k, dispatch: R, validations: he, dynamicFields: ie }), fu = ke[0].id !== "emptyFormId" ? ke[0].id : d == null ? void 0 : d.value, {
21514
21514
  data: Nt,
21515
21515
  isNudgeRequired: wu,
@@ -21541,8 +21541,8 @@ const US = w(j)`
21541
21541
  t ? !(re && "values" in re && "values" in k && $3(k.values, re.values)) : (e == null ? void 0 : e.fields_filled) !== void 0 && e.fields_filled > 0
21542
21542
  )
21543
21543
  );
21544
- }, [t, e, re, k, jt]), ne(() => (t && re && R({ type: Yt.SET_FIELDS, payload: re }), () => {
21545
- R({ type: Yt.SET_FIELDS, payload: { values: {} } });
21544
+ }, [t, e, re, k, jt]), ne(() => (t && re && R({ type: qt.SET_FIELDS, payload: re }), () => {
21545
+ R({ type: qt.SET_FIELDS, payload: { values: {} } });
21546
21546
  }), [t, R, re]), ne(() => {
21547
21547
  d !== null && f((ge) => ({ ...ge, object_type: d.label }));
21548
21548
  }, [d, f]), ne(() => {
@@ -21556,7 +21556,7 @@ const US = w(j)`
21556
21556
  G && G.length && F(t && kt ? G.find((ge) => ge.value === kt) ?? null : (ge) => ge || !K ? ge : G.length === 1 ? G[0] : G.find((At) => !K[At.value].expandedView) ?? null);
21557
21557
  }, [G, K, t, kt, u]);
21558
21558
  const Vu = () => {
21559
- F(C.current), p(!1), R({ type: Yt.RESET_STATE });
21559
+ F(C.current), p(!1), R({ type: qt.RESET_STATE });
21560
21560
  }, iu = (ge, Qe) => {
21561
21561
  Ge(ge, Qe);
21562
21562
  }, su = (ge, Qe, At) => {
@@ -21579,7 +21579,7 @@ const US = w(j)`
21579
21579
  d != null && d.value && Xt(Qe.name, U == null ? void 0 : U[d.value]);
21580
21580
  }
21581
21581
  }, ce = () => {
21582
- if (!ou() && kt && (K != null && K[kt]) && h && Iu) {
21582
+ if (!Zt() && kt && (K != null && K[kt]) && h && Iu) {
21583
21583
  const { connectorName: ge, title: Qe } = P;
21584
21584
  b(kF, {
21585
21585
  connector_name: ge,
@@ -21590,7 +21590,7 @@ const US = w(j)`
21590
21590
  const At = K[kt].interfaceDetails;
21591
21591
  if (!At || !re)
21592
21592
  return;
21593
- const { id: Zt, args: lt = {}, previousArgs: L = {} } = At, q = Ho(
21593
+ const { id: zt, args: lt = {}, previousArgs: L = {} } = At, q = Ho(
21594
21594
  re,
21595
21595
  L,
21596
21596
  st,
@@ -21603,7 +21603,7 @@ const US = w(j)`
21603
21603
  args: fe,
21604
21604
  previousArgs: q,
21605
21605
  externalResourceId: Iu,
21606
- interfaceId: Zt,
21606
+ interfaceId: zt,
21607
21607
  successCallback: () => {
21608
21608
  o();
21609
21609
  }
@@ -21631,16 +21631,16 @@ const US = w(j)`
21631
21631
  });
21632
21632
  }
21633
21633
  }, Be = () => {
21634
- if (!ou() && d && (K != null && K[d.value]) && h) {
21634
+ if (!Zt() && d && (K != null && K[d.value]) && h) {
21635
21635
  const ge = K == null ? void 0 : K[d.value].interfaceDetails;
21636
21636
  if (!ge)
21637
21637
  return;
21638
- const { id: Qe, args: At = {} } = ge, Zt = Ho(k, At, st, xt);
21638
+ const { id: Qe, args: At = {} } = ge, zt = Ho(k, At, st, xt);
21639
21639
  jt(
21640
21640
  nf({
21641
21641
  formId: String(d.value),
21642
21642
  conversationId: h,
21643
- args: Zt,
21643
+ args: zt,
21644
21644
  interfaceId: Qe,
21645
21645
  successCallback: () => {
21646
21646
  o();
@@ -21784,7 +21784,7 @@ const US = w(j)`
21784
21784
  /* @__PURE__ */ a.jsx(
21785
21785
  Ie,
21786
21786
  {
21787
- disabled: ou() || au || !ue,
21787
+ disabled: Zt() || au || !ue,
21788
21788
  onClick: t ? ce : Be,
21789
21789
  size: "small",
21790
21790
  ...J ? { style: { order: 2 } } : null,
@@ -22758,9 +22758,9 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22758
22758
  }, [u, e]);
22759
22759
  }, sT = ({ isAdmin: e = !1 }) => {
22760
22760
  var w0, Vs;
22761
- const { email: t, currentSmIds: u, sendTrackingEvent: n, availableFeatures: r, conversationId: o, connectorId: f } = Ve(ct), i = Wt(), { userGroupId: s, userId: D } = Cu() || {}, c = se(!1), d = se(null), F = se(null), g = se(null), [p, A] = Q({}), [l, C] = Q(!1), [h, E] = Q(!1), [b, m] = Q(!1), [x, v] = Q(!1), [B, I] = Q(), [O, _] = Q(!1), [k, R] = Q(null), [P, G] = Q(), [z, K] = Q(null), [U, Y] = Q(!1), [te, re] = Q(!1), [W, ue] = Q(!1), [N, ee] = Q(!1), [ae, De] = Q(void 0), Ce = se(), V = Re(F8), $ = Re(Mw), ie = Re(Qw), J = Re(Hw), ke = Re(Vw), Ne = Re(Pw), me = Re(b8), st = Re(tI), xt = Re(x8), rt = Re(y8), he = Re(v8), Ge = Re(wS), vt = It(r, rg), Bt = It(r, Rl), hu = It(r, Dg), nn = It(r, lg), Xt = It(r, dg), Qu = It(r, Ag), ou = (w0 = Cu()) == null ? void 0 : w0.tenantPlatform, fu = It(
22761
+ const { email: t, currentSmIds: u, sendTrackingEvent: n, availableFeatures: r, conversationId: o, connectorId: f } = Ve(ct), i = Wt(), { userGroupId: s, userId: D } = Cu() || {}, c = se(!1), d = se(null), F = se(null), g = se(null), [p, A] = Q({}), [l, C] = Q(!1), [h, E] = Q(!1), [b, m] = Q(!1), [x, v] = Q(!1), [B, I] = Q(), [O, _] = Q(!1), [k, R] = Q(null), [P, G] = Q(), [z, K] = Q(null), [U, Y] = Q(!1), [te, re] = Q(!1), [W, ue] = Q(!1), [N, ee] = Q(!1), [ae, De] = Q(void 0), Ce = se(), V = Re(F8), $ = Re(Mw), ie = Re(Qw), J = Re(Hw), ke = Re(Vw), Ne = Re(Pw), me = Re(b8), st = Re(tI), xt = Re(x8), rt = Re(y8), he = Re(v8), Ge = Re(wS), vt = It(r, rg), Bt = It(r, Rl), hu = It(r, Dg), nn = It(r, lg), Xt = It(r, dg), Qu = It(r, Ag), Zt = (w0 = Cu()) == null ? void 0 : w0.tenantPlatform, fu = It(
22762
22762
  r,
22763
- ou === "HIVERWEB" ? `hot-${LD}` : LD
22763
+ Zt === "HIVERWEB" ? `hot-${LD}` : LD
22764
22764
  ), { data: Nt } = yt({
22765
22765
  queryKey: ["connectors", "enabledAuthenticated"],
22766
22766
  queryFn: () => Nd(),
@@ -22820,17 +22820,17 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22820
22820
  connector_name: _e,
22821
22821
  suggestion_type: Ge
22822
22822
  });
22823
- }, Tr = (pe, _e, zt) => {
22823
+ }, Tr = (pe, _e, Jt) => {
22824
22824
  !Array.isArray(_e) || !_e.length ? n(PF, {
22825
22825
  search_keyword: pe,
22826
22826
  sm_ids: u,
22827
- connector_name: zt,
22827
+ connector_name: Jt,
22828
22828
  suggestion_type: Ge
22829
22829
  }) : _e.length && n(QF, {
22830
22830
  num_of_results: _e.length,
22831
22831
  search_keyword: pe,
22832
22832
  sm_ids: u,
22833
- connector_name: zt,
22833
+ connector_name: Jt,
22834
22834
  suggestion_type: Ge
22835
22835
  });
22836
22836
  }, {
@@ -22841,16 +22841,16 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22841
22841
  isIdle: Qe
22842
22842
  } = Kk(kr, Tr), At = Ae(() => {
22843
22843
  Wn(), R(null);
22844
- }, [Wn, R]), Zt = gu(), lt = Ae(() => {
22844
+ }, [Wn, R]), zt = gu(), lt = Ae(() => {
22845
22845
  if (t && u.length && o) {
22846
22846
  const pe = i(sf({ inboxIds: u, conversationId: o, connectorId: f }));
22847
22847
  return () => pe.abort();
22848
22848
  }
22849
22849
  }, [i, t, u, o, f]), L = Ae(() => {
22850
- Zt.invalidateQueries({ queryKey: ["lookup", "bulk"] }), lt();
22851
- }, [Zt, lt]), q = Ae(() => {
22852
- Zt.invalidateQueries({ queryKey: ["lookup", "bulk"] }), lt();
22853
- }, [Zt, lt]), fe = Ae(
22850
+ zt.invalidateQueries({ queryKey: ["lookup", "bulk"] }), lt();
22851
+ }, [zt, lt]), q = Ae(() => {
22852
+ zt.invalidateQueries({ queryKey: ["lookup", "bulk"] }), lt();
22853
+ }, [zt, lt]), fe = Ae(
22854
22854
  (pe, _e) => {
22855
22855
  pe && o && _e && i(
22856
22856
  af({
@@ -22882,8 +22882,8 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22882
22882
  var pe;
22883
22883
  if (rt) {
22884
22884
  E(!0);
22885
- const { externalResourceId: _e } = rt, zt = (pe = rt.forms.find((an) => an.type === "edit")) == null ? void 0 : pe.id;
22886
- fe(zt, _e);
22885
+ const { externalResourceId: _e } = rt, Jt = (pe = rt.forms.find((an) => an.type === "edit")) == null ? void 0 : pe.id;
22886
+ fe(Jt, _e);
22887
22887
  } else
22888
22888
  E(!1), i(Sw());
22889
22889
  }, [rt, fe, i]), ne(() => {
@@ -22894,11 +22894,11 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22894
22894
  }, [i, lt, Ze]), ne(() => {
22895
22895
  var pe;
22896
22896
  if (ke && V && V.length && Hu && !c.current) {
22897
- const { cards_per_app: _e, total_empty_cards: zt, total_cards_with_errors: an } = Hu, Gs = f ? (pe = _e[0]) == null ? void 0 : pe.app_name : null;
22897
+ const { cards_per_app: _e, total_empty_cards: Jt, total_cards_with_errors: an } = Hu, Gs = f ? (pe = _e[0]) == null ? void 0 : pe.app_name : null;
22898
22898
  n(AF, {
22899
22899
  numOfCards: V.length,
22900
22900
  total_cards_loaded: V.length,
22901
- total_empty_cards: zt,
22901
+ total_empty_cards: Jt,
22902
22902
  total_cards_with_errors: an,
22903
22903
  cards_per_app: _e,
22904
22904
  sm_ids: u,
@@ -22926,8 +22926,8 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22926
22926
  var an;
22927
22927
  if (!(_e instanceof CustomEvent))
22928
22928
  return;
22929
- const zt = (an = _e.detail) == null ? void 0 : an.connectorKey;
22930
- A({ connectorKey: zt });
22929
+ const Jt = (an = _e.detail) == null ? void 0 : an.connectorKey;
22930
+ A({ connectorKey: Jt });
22931
22931
  };
22932
22932
  return window.addEventListener(ic.OPEN_FORM_VIEW, pe), () => {
22933
22933
  window.removeEventListener(ic.OPEN_FORM_VIEW, pe);
@@ -22938,9 +22938,9 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22938
22938
  const pe = p.connectorKey;
22939
22939
  A({});
22940
22940
  const _e = me.find(
22941
- (zt) => {
22941
+ (Jt) => {
22942
22942
  var an;
22943
- return ((an = zt.connectorKey) == null ? void 0 : an.toLowerCase()) === (pe == null ? void 0 : pe.toLowerCase());
22943
+ return ((an = Jt.connectorKey) == null ? void 0 : an.toLowerCase()) === (pe == null ? void 0 : pe.toLowerCase());
22944
22944
  }
22945
22945
  );
22946
22946
  _e && (K(_e), m(!0));
@@ -22960,10 +22960,10 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22960
22960
  n(pe, B), he ? _(!0) : (m(!1), K(null));
22961
22961
  }, Le = (pe) => {
22962
22962
  if (rt) {
22963
- const { connectorName: _e, title: zt } = rt;
22963
+ const { connectorName: _e, title: Jt } = rt;
22964
22964
  n(pe, {
22965
22965
  connector_name: _e,
22966
- card_title: zt,
22966
+ card_title: Jt,
22967
22967
  sm_ids: u,
22968
22968
  ug_id: s
22969
22969
  });
@@ -22994,8 +22994,8 @@ const Si = /* @__PURE__ */ new Set(), Zk = (e, t) => {
22994
22994
  }
22995
22995
  ) : /* @__PURE__ */ a.jsx(nc, { isAdmin: e, hideHeading: !0 }), vo = () => {
22996
22996
  ue(!0);
22997
- const pe = Ce.current, _e = pe == null ? void 0 : pe.connectorName, zt = pe == null ? void 0 : pe.name;
22998
- n(YF, { entry_point: "agent", app_name: _e, object_type: zt });
22997
+ const pe = Ce.current, _e = pe == null ? void 0 : pe.connectorName, Jt = pe == null ? void 0 : pe.name;
22998
+ n(YF, { entry_point: "agent", app_name: _e, object_type: Jt });
22999
22999
  }, B1 = (pe) => {
23000
23000
  Ce.current = pe;
23001
23001
  };
@@ -24226,7 +24226,7 @@ const uL = (e) => {
24226
24226
  label: "Other",
24227
24227
  value: "other"
24228
24228
  }
24229
- ], tu = {
24229
+ ], uu = {
24230
24230
  email_logging_intro_popup_shown: "email_logging_intro_popup_shown",
24231
24231
  email_logging_intro_popup_continue_clicked: "email_logging_intro_popup_continue_clicked",
24232
24232
  email_logging_intro_popup_learn_more_clicked: "email_logging_intro_popup_learn_more_clicked",
@@ -24287,7 +24287,7 @@ const uL = (e) => {
24287
24287
  if (!n || !t || r === "true")
24288
24288
  return;
24289
24289
  const o = setTimeout(() => {
24290
- n(tu.email_logging_intro_popup_shown, { app_name: t }), Fc.setItem(Cc, "true");
24290
+ n(uu.email_logging_intro_popup_shown, { app_name: t }), Fc.setItem(Cc, "true");
24291
24291
  }, 1500);
24292
24292
  return () => {
24293
24293
  clearTimeout(o);
@@ -24382,7 +24382,7 @@ const uL = (e) => {
24382
24382
  renderEntities: o
24383
24383
  }) => {
24384
24384
  const { connectorFunctions: f } = Ve(Bu), i = f == null ? void 0 : f.sendTrackingEvent, [s, D] = Q(() => localStorage.getItem(Ac) === "true"), [c, d] = Q(!1), { connectorId: F, connectorName: g, connectorStatus: p } = u ?? {}, A = t || p !== Hf.DISABLED, l = p === Hf.UNAUTHENTICATED, C = n === ve.PENDING, h = () => {
24385
- localStorage.setItem(Ac, "true"), D(!0), d(!0), i == null || i(tu.email_logging_intro_popup_continue_clicked, { app_name: g });
24385
+ localStorage.setItem(Ac, "true"), D(!0), d(!0), i == null || i(uu.email_logging_intro_popup_continue_clicked, { app_name: g });
24386
24386
  };
24387
24387
  return s ? l ? /* @__PURE__ */ a.jsx($L, { connectorId: F, connectorName: g, isAdmin: t, isAuthenticated: !1, children: e }) : r ? /* @__PURE__ */ a.jsx(Te, { title: bL, children: e }) : C ? /* @__PURE__ */ a.jsx(Te, { title: mL.replace(":connectorName", g), children: e }) : o ? /* @__PURE__ */ a.jsx(CL, { defaultOpen: c, renderTooltip: o, children: e }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx(GL, { onContinue: A ? h : void 0, connectorName: g, children: e });
24388
24388
  }, t_ = (e) => /* @__PURE__ */ S.createElement("svg", { width: 124, height: 107, viewBox: "0 0 124 107", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M28.6168 54.7446C28.6931 52.5589 31.0146 51.1102 33.0842 51.8174C35.9985 52.8133 40.0375 53.9024 44.0621 54.043C48.0034 54.1806 51.968 53.4097 54.8762 52.6339C57.0264 52.0602 59.2927 53.6932 59.215 55.9172C59.1742 57.0856 58.4742 58.1269 57.3723 58.5178C54.8051 59.4284 49.7633 60.8927 44.3075 60.7022C38.7694 60.5088 33.1999 58.6241 30.4004 57.5311C29.2637 57.0873 28.5742 55.9641 28.6168 54.7446Z", fill: "url(#paint0_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("path", { d: "M47.223 43.6373C44.4928 30.7926 52.6922 18.1666 65.5368 15.4364C78.3815 12.7062 91.0075 20.9055 93.7377 33.7502L105.079 87.1053L84.1844 91.5466C70.0346 94.5542 56.1258 85.5217 53.1182 71.3719L47.223 43.6373Z", fill: "url(#paint1_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("mask", { id: "mask0_8481_102191", style: {
@@ -24464,12 +24464,12 @@ const uL = (e) => {
24464
24464
  flex-shrink: 0;
24465
24465
  `, p_ = ({ connectorName: e, entity: t, checked: u, disabled: n, setCheckedEntities: r }) => {
24466
24466
  const { conversationId: o, connectorFunctions: f } = Ve(Bu), i = f == null ? void 0 : f.sendTrackingEvent, { displayValue: s, entityType: D, cardId: c } = t, d = (E) => {
24467
- r == null || r((b) => ({ ...b, [D + s]: E })), i == null || i(tu.email_logging_smart_suggestion_selected, {
24467
+ r == null || r((b) => ({ ...b, [D + s]: E })), i == null || i(uu.email_logging_smart_suggestion_selected, {
24468
24468
  app_name: e,
24469
24469
  object_key_selected: s
24470
24470
  });
24471
24471
  }, F = () => {
24472
- i == null || i(tu.email_logging_smart_suggestion_not_found, {
24472
+ i == null || i(uu.email_logging_smart_suggestion_not_found, {
24473
24473
  app_name: e,
24474
24474
  object_key_selected: s
24475
24475
  });
@@ -24477,7 +24477,7 @@ const uL = (e) => {
24477
24477
  !r || p || n || A || (u ? r((E) => {
24478
24478
  const b = { ...E };
24479
24479
  return delete b[D + s], b;
24480
- }) : (i == null || i(tu.email_logging_smart_suggestion_initiated, {
24480
+ }) : (i == null || i(uu.email_logging_smart_suggestion_initiated, {
24481
24481
  app_name: e,
24482
24482
  object_key_selected: s
24483
24483
  }), g({
@@ -24644,7 +24644,7 @@ const g_ = w(j)`
24644
24644
  if (!(t != null && t.length))
24645
24645
  return /* @__PURE__ */ a.jsx(Rs, { message: "No results found" });
24646
24646
  const s = (D) => {
24647
- r(D), i == null || i(tu.email_logging_search_result_selected, {
24647
+ r(D), i == null || i(uu.email_logging_search_result_selected, {
24648
24648
  app_name: e,
24649
24649
  object_name: D.displayValue,
24650
24650
  object_key: D.entityType
@@ -24756,7 +24756,7 @@ const g_ = w(j)`
24756
24756
  const { conversationId: r, connectorFunctions: o } = Ve(Bu), { refetch: f } = B0({ conversationId: r }), i = o == null ? void 0 : o.sendTrackingEvent, s = () => {
24757
24757
  f(), t();
24758
24758
  const p = Object.values(e), A = p.map((C) => C.displayValue).join(", "), l = Array.from(new Set(p.map((C) => C == null ? void 0 : C.entityType)));
24759
- i == null || i(tu.email_logging_log_config_saved, {
24759
+ i == null || i(uu.email_logging_log_config_saved, {
24760
24760
  app_name: u,
24761
24761
  num_of_keys_selected: p.length,
24762
24762
  list_of_keys: A,
@@ -24774,7 +24774,7 @@ const g_ = w(j)`
24774
24774
  }
24775
24775
  });
24776
24776
  }, g = () => {
24777
- t == null || t(), i == null || i(tu.email_logging_log_config_canceled, { app_name: u });
24777
+ t == null || t(), i == null || i(uu.email_logging_log_config_canceled, { app_name: u });
24778
24778
  };
24779
24779
  return /* @__PURE__ */ a.jsxs(M_, { "data-section": "footer", children: [
24780
24780
  /* @__PURE__ */ a.jsx(Ie, { variant: "text", size: "small", onClick: g, children: "Cancel" }),
@@ -25158,7 +25158,7 @@ const Z_ = w(j)`
25158
25158
  isError: m,
25159
25159
  isLoading: x
25160
25160
  } = q_({ conversationId: l, enabled: !D }), { refetch: v } = B0({ conversationId: l }), B = () => {
25161
- E == null || E(tu.email_logging_search_results_found, {
25161
+ E == null || E(uu.email_logging_search_results_found, {
25162
25162
  app_name: f,
25163
25163
  search_keyword: c
25164
25164
  });
@@ -25187,10 +25187,10 @@ const Z_ = w(j)`
25187
25187
  const { entityType: ee, displayValue: ae } = N;
25188
25188
  A((De) => ({ ...De, [ee + ae]: N })), g((De) => [N, ...De]), d(""), R();
25189
25189
  }, re = () => {
25190
- E == null || E(tu.email_logging_search_initiated, { app_name: f });
25190
+ E == null || E(uu.email_logging_search_initiated, { app_name: f });
25191
25191
  }, W = () => {
25192
25192
  P({ payload: { autoLogEnabled: !n }, conversationId: l });
25193
- const N = n ? tu.email_logging_auto_log_disabled : tu.email_logging_auto_log_enabled;
25193
+ const N = n ? uu.email_logging_auto_log_disabled : uu.email_logging_auto_log_enabled;
25194
25194
  E == null || E(N, { app_name: f });
25195
25195
  }, ue = x || _;
25196
25196
  return /* @__PURE__ */ a.jsxs(nO, { "data-tenant": h ?? "GMAIL", "data-section": "root", children: [
@@ -25321,7 +25321,7 @@ const Z_ = w(j)`
25321
25321
  ve.PAUSED
25322
25322
  ], EO = [ve.LOGGED, ve.PAUSED], mO = ({ status: e, emailLogStatus: t }) => {
25323
25323
  const { isAdmin: u, conversationId: n, connectorFunctions: r } = Ve(Bu), o = r == null ? void 0 : r.sendTrackingEvent, { refetch: f } = B0({ conversationId: n }), { mutate: i, isPending: s } = d5({ onSuccess: f }), D = sL[e], c = lL[e], d = cL[e], { emailLogSettings: F, messageLogStatus: g } = t, { connectorName: p } = F ?? {}, { logged: A, total: l } = g ?? {}, C = EO.includes(e) && l ? ` (${A}/${l})` : "", h = e === ve.ERROR, E = hO.includes(e), b = ({ close: x }) => /* @__PURE__ */ a.jsx(l5, { close: x, emailLogStatus: t }), m = () => {
25324
- i({ conversationId: n }), o == null || o(tu.email_logging_failed_clicked, { app_name: p });
25324
+ i({ conversationId: n }), o == null || o(uu.email_logging_failed_clicked, { app_name: p });
25325
25325
  };
25326
25326
  return /* @__PURE__ */ a.jsx(
25327
25327
  e_,
@@ -26317,7 +26317,7 @@ const _O = w("div")`
26317
26317
  }
26318
26318
  }), A = () => {
26319
26319
  var x, v;
26320
- t && (g({ conversationId: t }), (v = u == null ? void 0 : u.sendTrackingEvent) == null || v.call(u, tu.email_logging_failed_clicked, {
26320
+ t && (g({ conversationId: t }), (v = u == null ? void 0 : u.sendTrackingEvent) == null || v.call(u, uu.email_logging_failed_clicked, {
26321
26321
  app_name: (x = n == null ? void 0 : n.emailLogSettings) == null ? void 0 : x.connectorName
26322
26322
  }));
26323
26323
  };
@@ -31615,7 +31615,7 @@ const Oi = (e) => Ms.replace_colons(e), kc = /<@([A-Z0-9]+)>/g, zR = (e) => /* @
31615
31615
  channelId: (Iu = s.data) == null ? void 0 : Iu.channelId,
31616
31616
  threadTs: (au = s.data) == null ? void 0 : au.externalThreadTs,
31617
31617
  targetKind: (Uu = s.data) == null ? void 0 : Uu.targetKind
31618
- }), ou = f && ((jt = s.data) != null && jt.channelName) ? /* @__PURE__ */ a.jsx(BN, { channelName: s.data.channelName, channelUrl: Qu }) : null;
31618
+ }), Zt = f && ((jt = s.data) != null && jt.channelName) ? /* @__PURE__ */ a.jsx(BN, { channelName: s.data.channelName, channelUrl: Qu }) : null;
31619
31619
  return s.isLoading ? /* @__PURE__ */ a.jsx(Xt, { children: /* @__PURE__ */ a.jsx(lf, { children: /* @__PURE__ */ a.jsx(Z, { variant: "body2", sx: { color: (Vu = H.palette.gray) == null ? void 0 : Vu.gray3, padding: "12px 20px" }, children: "Loading messages…" }) }) }) : s.data && I ? /* @__PURE__ */ a.jsxs(Xt, { children: [
31620
31620
  /* @__PURE__ */ a.jsx(TR, { variant: I }),
31621
31621
  _()
@@ -31630,7 +31630,7 @@ const Oi = (e) => Ms.replace_colons(e), kc = /<@([A-Z0-9]+)>/g, zR = (e) => /* @
31630
31630
  onBack: () => E(null)
31631
31631
  }
31632
31632
  ) : /* @__PURE__ */ a.jsxs(Xt, { ref: ke, children: [
31633
- ou,
31633
+ Zt,
31634
31634
  /* @__PURE__ */ a.jsxs(nN, { ref: me, onScroll: nn, boxed: i, children: [
31635
31635
  (Bt || Ge || vt) && /* @__PURE__ */ a.jsx(Pi, { isLoading: Ge, error: vt, onLoad: he }),
31636
31636
  hu.length === 0 ? /* @__PURE__ */ a.jsx(Z, { variant: "body2", sx: { color: (iu = H.palette.gray) == null ? void 0 : iu.gray3, padding: "12px 20px" }, children: "No messages in this channel yet." }) : hu.map((ce) => /* @__PURE__ */ a.jsx(
@@ -31651,6 +31651,7 @@ const Oi = (e) => Ms.replace_colons(e), kc = /<@([A-Z0-9]+)>/g, zR = (e) => /* @
31651
31651
  /* @__PURE__ */ a.jsx(lf, { children: /* @__PURE__ */ a.jsx(Z, { variant: "body2", sx: { color: (su = H.palette.gray) == null ? void 0 : su.gray3, padding: "12px 20px" }, children: "No messages in this thread yet." }) }),
31652
31652
  _()
31653
31653
  ] }) : /* @__PURE__ */ a.jsxs(Xt, { ref: ke, children: [
31654
+ Zt,
31654
31655
  /* @__PURE__ */ a.jsx(eN, { boxed: i, scrolled: ee, children: /* @__PURE__ */ a.jsx(
31655
31656
  Zr,
31656
31657
  {