@amp-labs/react 2.4.3 → 2.4.4

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.
@@ -11,9 +11,9 @@ var Pi = (e, t, n, r) => ({
11
11
  return C(e, t, r);
12
12
  }
13
13
  });
14
- import { jsx as h, jsxs as B, Fragment as Xe } from "react/jsx-runtime";
14
+ import { jsx as h, jsxs as W, Fragment as Xe } from "react/jsx-runtime";
15
15
  import * as $ from "react";
16
- import Be, { createContext as Lt, useContext as Vt, useState as se, useCallback as ae, useMemo as Fe, useEffect as Z, useRef as Ae, cloneElement as fp, useLayoutEffect as jc, useReducer as hp, Component as mp, useImperativeHandle as gp, forwardRef as Jc, createElement as zi } from "react";
16
+ import Be, { createContext as Lt, useContext as Kt, useState as se, useCallback as ae, useMemo as Fe, useEffect as Z, useRef as Ae, cloneElement as fp, useLayoutEffect as jc, useReducer as hp, Component as mp, useImperativeHandle as gp, forwardRef as Jc, createElement as zi } from "react";
17
17
  import "react-dom";
18
18
  var mi = class {
19
19
  constructor() {
@@ -211,7 +211,7 @@ var Zn, Rn, wr, Lc, bp = (Lc = class extends mi {
211
211
  var t;
212
212
  return typeof C(this, Zn) == "boolean" ? C(this, Zn) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
213
213
  }
214
- }, Zn = new WeakMap(), Rn = new WeakMap(), wr = new WeakMap(), Lc), xs = new bp(), Ir, xn, br, Vc, _p = (Vc = class extends mi {
214
+ }, Zn = new WeakMap(), Rn = new WeakMap(), wr = new WeakMap(), Lc), xs = new bp(), Ir, xn, br, Kc, _p = (Kc = class extends mi {
215
215
  constructor() {
216
216
  super();
217
217
  ue(this, Ir, !0);
@@ -245,7 +245,7 @@ var Zn, Rn, wr, Lc, bp = (Lc = class extends mi {
245
245
  isOnline() {
246
246
  return C(this, Ir);
247
247
  }
248
- }, Ir = new WeakMap(), xn = new WeakMap(), br = new WeakMap(), Vc), Qi = new _p();
248
+ }, Ir = new WeakMap(), xn = new WeakMap(), br = new WeakMap(), Kc), Qi = new _p();
249
249
  function ts() {
250
250
  let e, t;
251
251
  const n = new Promise((o, i) => {
@@ -398,7 +398,7 @@ function Cp() {
398
398
  }
399
399
  };
400
400
  }
401
- var st = Cp(), er, Kc, Zc = (Kc = class {
401
+ var st = Cp(), er, Vc, Zc = (Vc = class {
402
402
  constructor() {
403
403
  ue(this, er);
404
404
  }
@@ -419,7 +419,7 @@ var st = Cp(), er, Kc, Zc = (Kc = class {
419
419
  clearGcTimeout() {
420
420
  C(this, er) && (clearTimeout(C(this, er)), Y(this, er, void 0));
421
421
  }
422
- }, er = new WeakMap(), Kc), _r, Or, Mt, pt, di, tr, jt, gn, $c, Ep = ($c = class extends Zc {
422
+ }, er = new WeakMap(), Vc), _r, Or, Mt, pt, di, tr, jt, gn, $c, Ep = ($c = class extends Zc {
423
423
  constructor(t) {
424
424
  super();
425
425
  ue(this, jt);
@@ -1149,9 +1149,9 @@ function Ap(e, { pages: t, pageParams: n }) {
1149
1149
  var r;
1150
1150
  return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
1151
1151
  }
1152
- var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1152
+ var $e, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1153
1153
  constructor(e = {}) {
1154
- ue(this, qe);
1154
+ ue(this, $e);
1155
1155
  ue(this, An);
1156
1156
  ue(this, Pn);
1157
1157
  ue(this, Cr);
@@ -1159,13 +1159,13 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1159
1159
  ue(this, Dn);
1160
1160
  ue(this, Nr);
1161
1161
  ue(this, Sr);
1162
- Y(this, qe, e.queryCache || new Sp()), Y(this, An, e.mutationCache || new xp()), Y(this, Pn, e.defaultOptions || {}), Y(this, Cr, /* @__PURE__ */ new Map()), Y(this, Er, /* @__PURE__ */ new Map()), Y(this, Dn, 0);
1162
+ Y(this, $e, e.queryCache || new Sp()), Y(this, An, e.mutationCache || new xp()), Y(this, Pn, e.defaultOptions || {}), Y(this, Cr, /* @__PURE__ */ new Map()), Y(this, Er, /* @__PURE__ */ new Map()), Y(this, Dn, 0);
1163
1163
  }
1164
1164
  mount() {
1165
1165
  Pi(this, Dn)._++, C(this, Dn) === 1 && (Y(this, Nr, xs.subscribe(async (e) => {
1166
- e && (await this.resumePausedMutations(), C(this, qe).onFocus());
1166
+ e && (await this.resumePausedMutations(), C(this, $e).onFocus());
1167
1167
  })), Y(this, Sr, Qi.subscribe(async (e) => {
1168
- e && (await this.resumePausedMutations(), C(this, qe).onOnline());
1168
+ e && (await this.resumePausedMutations(), C(this, $e).onOnline());
1169
1169
  })));
1170
1170
  }
1171
1171
  unmount() {
@@ -1173,7 +1173,7 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1173
1173
  Pi(this, Dn)._--, C(this, Dn) === 0 && ((e = C(this, Nr)) == null || e.call(this), Y(this, Nr, void 0), (t = C(this, Sr)) == null || t.call(this), Y(this, Sr, void 0));
1174
1174
  }
1175
1175
  isFetching(e) {
1176
- return C(this, qe).findAll({ ...e, fetchStatus: "fetching" }).length;
1176
+ return C(this, $e).findAll({ ...e, fetchStatus: "fetching" }).length;
1177
1177
  }
1178
1178
  isMutating(e) {
1179
1179
  return C(this, An).findAll({ ...e, status: "pending" }).length;
@@ -1181,28 +1181,28 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1181
1181
  getQueryData(e) {
1182
1182
  var n;
1183
1183
  const t = this.defaultQueryOptions({ queryKey: e });
1184
- return (n = C(this, qe).get(t.queryHash)) == null ? void 0 : n.state.data;
1184
+ return (n = C(this, $e).get(t.queryHash)) == null ? void 0 : n.state.data;
1185
1185
  }
1186
1186
  ensureQueryData(e) {
1187
- const t = this.defaultQueryOptions(e), n = C(this, qe).build(this, t), r = n.state.data;
1187
+ const t = this.defaultQueryOptions(e), n = C(this, $e).build(this, t), r = n.state.data;
1188
1188
  return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(yr(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1189
1189
  }
1190
1190
  getQueriesData(e) {
1191
- return C(this, qe).findAll(e).map(({ queryKey: t, state: n }) => {
1191
+ return C(this, $e).findAll(e).map(({ queryKey: t, state: n }) => {
1192
1192
  const r = n.data;
1193
1193
  return [t, r];
1194
1194
  });
1195
1195
  }
1196
1196
  setQueryData(e, t, n) {
1197
- const r = this.defaultQueryOptions({ queryKey: e }), o = C(this, qe).get(
1197
+ const r = this.defaultQueryOptions({ queryKey: e }), o = C(this, $e).get(
1198
1198
  r.queryHash
1199
1199
  ), i = o == null ? void 0 : o.state.data, s = yp(t, i);
1200
1200
  if (s !== void 0)
1201
- return C(this, qe).build(this, r).setData(s, { ...n, manual: !0 });
1201
+ return C(this, $e).build(this, r).setData(s, { ...n, manual: !0 });
1202
1202
  }
1203
1203
  setQueriesData(e, t, n) {
1204
1204
  return st.batch(
1205
- () => C(this, qe).findAll(e).map(({ queryKey: r }) => [
1205
+ () => C(this, $e).findAll(e).map(({ queryKey: r }) => [
1206
1206
  r,
1207
1207
  this.setQueryData(r, t, n)
1208
1208
  ])
@@ -1211,12 +1211,12 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1211
1211
  getQueryState(e) {
1212
1212
  var n;
1213
1213
  const t = this.defaultQueryOptions({ queryKey: e });
1214
- return (n = C(this, qe).get(
1214
+ return (n = C(this, $e).get(
1215
1215
  t.queryHash
1216
1216
  )) == null ? void 0 : n.state;
1217
1217
  }
1218
1218
  removeQueries(e) {
1219
- const t = C(this, qe);
1219
+ const t = C(this, $e);
1220
1220
  st.batch(() => {
1221
1221
  t.findAll(e).forEach((n) => {
1222
1222
  t.remove(n);
@@ -1224,7 +1224,7 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1224
1224
  });
1225
1225
  }
1226
1226
  resetQueries(e, t) {
1227
- const n = C(this, qe), r = {
1227
+ const n = C(this, $e), r = {
1228
1228
  type: "active",
1229
1229
  ...e
1230
1230
  };
@@ -1234,13 +1234,13 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1234
1234
  }
1235
1235
  cancelQueries(e, t = {}) {
1236
1236
  const n = { revert: !0, ...t }, r = st.batch(
1237
- () => C(this, qe).findAll(e).map((o) => o.cancel(n))
1237
+ () => C(this, $e).findAll(e).map((o) => o.cancel(n))
1238
1238
  );
1239
1239
  return Promise.all(r).then(kt).catch(kt);
1240
1240
  }
1241
1241
  invalidateQueries(e, t = {}) {
1242
1242
  return st.batch(() => {
1243
- if (C(this, qe).findAll(e).forEach((r) => {
1243
+ if (C(this, $e).findAll(e).forEach((r) => {
1244
1244
  r.invalidate();
1245
1245
  }), (e == null ? void 0 : e.refetchType) === "none")
1246
1246
  return Promise.resolve();
@@ -1256,7 +1256,7 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1256
1256
  ...t,
1257
1257
  cancelRefetch: t.cancelRefetch ?? !0
1258
1258
  }, r = st.batch(
1259
- () => C(this, qe).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
1259
+ () => C(this, $e).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
1260
1260
  let i = o.fetch(void 0, n);
1261
1261
  return n.throwOnError || (i = i.catch(kt)), o.state.fetchStatus === "paused" ? Promise.resolve() : i;
1262
1262
  })
@@ -1266,7 +1266,7 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1266
1266
  fetchQuery(e) {
1267
1267
  const t = this.defaultQueryOptions(e);
1268
1268
  t.retry === void 0 && (t.retry = !1);
1269
- const n = C(this, qe).build(this, t);
1269
+ const n = C(this, $e).build(this, t);
1270
1270
  return n.isStaleByTime(
1271
1271
  yr(t.staleTime, n)
1272
1272
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
@@ -1287,7 +1287,7 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1287
1287
  return Qi.isOnline() ? C(this, An).resumePausedMutations() : Promise.resolve();
1288
1288
  }
1289
1289
  getQueryCache() {
1290
- return C(this, qe);
1290
+ return C(this, $e);
1291
1291
  }
1292
1292
  getMutationCache() {
1293
1293
  return C(this, An);
@@ -1346,9 +1346,9 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1346
1346
  };
1347
1347
  }
1348
1348
  clear() {
1349
- C(this, qe).clear(), C(this, An).clear();
1349
+ C(this, $e).clear(), C(this, An).clear();
1350
1350
  }
1351
- }, qe = new WeakMap(), An = new WeakMap(), Pn = new WeakMap(), Cr = new WeakMap(), Er = new WeakMap(), Dn = new WeakMap(), Nr = new WeakMap(), Sr = new WeakMap(), Bc), It, we, fi, gt, rr, Tr, Fn, rn, hi, Rr, xr, ir, or, Mn, Ar, Te, Xr, ns, rs, is, os, ss, as, cs, tl, Wc, Dp = (Wc = class extends mi {
1351
+ }, $e = new WeakMap(), An = new WeakMap(), Pn = new WeakMap(), Cr = new WeakMap(), Er = new WeakMap(), Dn = new WeakMap(), Nr = new WeakMap(), Sr = new WeakMap(), Bc), It, we, fi, gt, rr, Tr, Fn, rn, hi, Rr, xr, ir, or, Mn, Ar, Te, Xr, ns, rs, is, os, ss, as, cs, tl, Wc, Dp = (Wc = class extends mi {
1352
1352
  constructor(t, n) {
1353
1353
  super();
1354
1354
  ue(this, Te);
@@ -1411,7 +1411,7 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1411
1411
  observer: this
1412
1412
  });
1413
1413
  const i = this.hasListeners();
1414
- i && Va(
1414
+ i && Ka(
1415
1415
  C(this, we),
1416
1416
  o,
1417
1417
  this.options,
@@ -1463,7 +1463,7 @@ var qe, An, Pn, Cr, Er, Dn, Nr, Sr, Bc, Pp = (Bc = class {
1463
1463
  const r = C(this, we), o = this.options, i = C(this, gt), s = C(this, rr), a = C(this, Tr), l = t !== r ? t.state : C(this, fi), { state: u } = t;
1464
1464
  let d = { ...u }, m = !1, p;
1465
1465
  if (n._optimisticResults) {
1466
- const D = this.hasListeners(), q = !D && La(t, n), z = D && Va(t, r, n, o);
1466
+ const D = this.hasListeners(), q = !D && La(t, n), z = D && Ka(t, r, n, o);
1467
1467
  (q || z) && (d = {
1468
1468
  ...d,
1469
1469
  ...el(u.data, t.options)
@@ -1633,7 +1633,7 @@ function ls(e, t, n) {
1633
1633
  }
1634
1634
  return !1;
1635
1635
  }
1636
- function Va(e, t, n, r) {
1636
+ function Ka(e, t, n, r) {
1637
1637
  return (e !== t || zt(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && As(e, n);
1638
1638
  }
1639
1639
  function As(e, t) {
@@ -1656,7 +1656,7 @@ var nl = $.createContext(
1656
1656
  e.unmount();
1657
1657
  }), [e]), /* @__PURE__ */ h(nl.Provider, { value: e, children: t })), rl = $.createContext(!1), Lp = () => $.useContext(rl);
1658
1658
  rl.Provider;
1659
- function Vp() {
1659
+ function Kp() {
1660
1660
  let e = !1;
1661
1661
  return {
1662
1662
  clearReset: () => {
@@ -1668,11 +1668,11 @@ function Vp() {
1668
1668
  isReset: () => e
1669
1669
  };
1670
1670
  }
1671
- var Kp = $.createContext(Vp()), $p = () => $.useContext(Kp);
1671
+ var Vp = $.createContext(Kp()), $p = () => $.useContext(Vp);
1672
1672
  function qp(e, t) {
1673
1673
  return typeof e == "function" ? e(...t) : !!e;
1674
1674
  }
1675
- function Ka() {
1675
+ function Va() {
1676
1676
  }
1677
1677
  var Up = (e, t) => {
1678
1678
  (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
@@ -1711,7 +1711,7 @@ function zp(e, t, n) {
1711
1711
  if ($.useSyncExternalStore(
1712
1712
  $.useCallback(
1713
1713
  (f) => {
1714
- const b = u ? c.subscribe(st.batchCalls(f)) : Ka;
1714
+ const b = u ? c.subscribe(st.batchCalls(f)) : Va;
1715
1715
  return c.updateResult(), b;
1716
1716
  },
1717
1717
  [c, u]
@@ -1741,7 +1741,7 @@ function zp(e, t, n) {
1741
1741
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1742
1742
  (y = r.getQueryCache().get(s.queryHash)) == null ? void 0 : y.promise
1743
1743
  );
1744
- f == null || f.catch(Ka).finally(() => {
1744
+ f == null || f.catch(Va).finally(() => {
1745
1745
  c.updateResult();
1746
1746
  });
1747
1747
  }
@@ -1751,7 +1751,7 @@ function $r(e, t) {
1751
1751
  return zp(e, Dp);
1752
1752
  }
1753
1753
  const il = Lt(null), Gp = il.Provider, Yt = () => {
1754
- const e = Vt(il);
1754
+ const e = Kt(il);
1755
1755
  if (e === null)
1756
1756
  throw new Error("useApiKey must be used within an ApiKeyProvider");
1757
1757
  return e;
@@ -1759,7 +1759,7 @@ const il = Lt(null), Gp = il.Provider, Yt = () => {
1759
1759
  var Ie = /* @__PURE__ */ ((e) => (e.MAPPING = "mappingError", e.INTEGRATION_LIST = "integrationListError", e.PROJECT = "projectError", e.CONNECTION_LIST = "connectionListError", e.HYDRATED_REVISION = "hydratedRevisionError", e.INSTALLATION_LIST = "installationListError", e.INSTALLATION_MUTATION = "installationMutationError", e.VALUE_MAPPING = "valueMappingError", e))(Ie || {});
1760
1760
  const ol = Lt(void 0);
1761
1761
  function Zt() {
1762
- const e = Vt(ol);
1762
+ const e = Kt(ol);
1763
1763
  if (!e)
1764
1764
  throw new Error("useErrorState must be used within a ErrorProvider");
1765
1765
  return e;
@@ -2227,9 +2227,9 @@ function kf(e) {
2227
2227
  };
2228
2228
  }
2229
2229
  function Lf(e) {
2230
- return Vf(e);
2230
+ return Kf(e);
2231
2231
  }
2232
- function Vf(e, t) {
2232
+ function Kf(e, t) {
2233
2233
  return e == null ? e : {
2234
2234
  id: e.id,
2235
2235
  revisionId: e.revisionId,
@@ -2238,7 +2238,7 @@ function Vf(e, t) {
2238
2238
  content: Ff(e.content)
2239
2239
  };
2240
2240
  }
2241
- function Kf(e) {
2241
+ function Vf(e) {
2242
2242
  return $f(e);
2243
2243
  }
2244
2244
  function $f(e, t) {
@@ -2313,14 +2313,15 @@ function Gf(e, t) {
2313
2313
  provider: e.provider,
2314
2314
  providerApp: A(e, "providerApp") ? Hi(e.providerApp) : void 0,
2315
2315
  group: dl(e.group),
2316
- consumer: Kf(e.consumer),
2316
+ consumer: Vf(e.consumer),
2317
2317
  providerWorkspaceRef: A(e, "providerWorkspaceRef") ? e.providerWorkspaceRef : void 0,
2318
2318
  providerConsumerRef: A(e, "providerConsumerRef") ? e.providerConsumerRef : void 0,
2319
2319
  createTime: new Date(e.createTime),
2320
2320
  updateTime: A(e, "updateTime") ? new Date(e.updateTime) : void 0,
2321
2321
  authScheme: e.authScheme,
2322
2322
  status: e.status,
2323
- oauth2AuthorizationCode: A(e, "oauth2AuthorizationCode") ? jf(e.oauth2AuthorizationCode) : void 0
2323
+ oauth2AuthorizationCode: A(e, "oauth2AuthorizationCode") ? jf(e.oauth2AuthorizationCode) : void 0,
2324
+ apiKey: A(e, "apiKey") ? e.apiKey : void 0
2324
2325
  };
2325
2326
  }
2326
2327
  function Qf(e) {
@@ -2610,7 +2611,7 @@ function Lh(e) {
2610
2611
  password: e.password
2611
2612
  };
2612
2613
  }
2613
- function Vh(e) {
2614
+ function Kh(e) {
2614
2615
  if (e !== void 0)
2615
2616
  return e === null ? null : {
2616
2617
  clientId: e.clientId,
@@ -2618,7 +2619,7 @@ function Vh(e) {
2618
2619
  scopes: e.scopes
2619
2620
  };
2620
2621
  }
2621
- function Kh(e) {
2622
+ function Vh(e) {
2622
2623
  if (e !== void 0)
2623
2624
  return e === null ? null : {
2624
2625
  username: e.username,
@@ -2663,8 +2664,8 @@ function Hh(e) {
2663
2664
  provider: e.provider,
2664
2665
  apiKey: e.apiKey,
2665
2666
  basicAuth: Lh(e.basicAuth),
2666
- oauth2ClientCredentials: Vh(e.oauth2ClientCredentials),
2667
- oauth2Password: Kh(e.oauth2Password),
2667
+ oauth2ClientCredentials: Kh(e.oauth2ClientCredentials),
2668
+ oauth2Password: Vh(e.oauth2Password),
2668
2669
  oauth2AuthorizationCode: Uh(e.oauth2AuthorizationCode)
2669
2670
  };
2670
2671
  }
@@ -3479,7 +3480,7 @@ class Lm extends sn {
3479
3480
  return await (await this.listProvidersRaw(t)).value();
3480
3481
  }
3481
3482
  }
3482
- class Vm extends sn {
3483
+ class Km extends sn {
3483
3484
  /**
3484
3485
  * Create a new provider app
3485
3486
  */
@@ -3579,7 +3580,7 @@ class Vm extends sn {
3579
3580
  return await (await this.updateProviderAppRaw(t, n)).value();
3580
3581
  }
3581
3582
  }
3582
- class Km extends sn {
3583
+ class Vm extends sn {
3583
3584
  /**
3584
3585
  * Create a new revision
3585
3586
  */
@@ -3640,10 +3641,10 @@ class Km extends sn {
3640
3641
  }
3641
3642
  class ml {
3642
3643
  constructor(t) {
3643
- this.connectionApi = new Pm(t), this.installationApi = new Dm(t), this.integrationApi = new Fm(t), this.oAuthApi = new Mm(t), this.projectApi = new km(t), this.providerApi = new Lm(t), this.providerAppApi = new Vm(t), this.revisionApi = new Km(t);
3644
+ this.connectionApi = new Pm(t), this.installationApi = new Dm(t), this.integrationApi = new Fm(t), this.oAuthApi = new Mm(t), this.projectApi = new km(t), this.providerApi = new Lm(t), this.providerAppApi = new Km(t), this.revisionApi = new Vm(t);
3644
3645
  }
3645
3646
  }
3646
- const gl = "2.4.3", $m = "v1", ki = "https://api.withampersand.com";
3647
+ const gl = "2.4.4", $m = "v1", ki = "https://api.withampersand.com";
3647
3648
  function yl() {
3648
3649
  try {
3649
3650
  const e = process.env.REACT_APP_AMP_SERVER;
@@ -3700,9 +3701,13 @@ const at = async (e, t) => {
3700
3701
  if (e instanceof sl) {
3701
3702
  const { status: r, statusText: o } = e.response;
3702
3703
  console.error(r === 500 ? "Internal Server Error (500):" : r === 400 ? "Bad Request (400):" : `Error (${r}):`, o);
3703
- const i = await e.response.json(), s = ((n = i == null ? void 0 : i.causes) == null ? void 0 : n.join(`
3704
+ try {
3705
+ const s = await e.response.clone().json(), a = ((n = s == null ? void 0 : s.causes) == null ? void 0 : n.join(`
3704
3706
  `)) || "[ERROR] Creating installation failed.";
3705
- console.error("[Error Message]", s), t && t(s);
3707
+ console.error("[Error Message]", a), t && t(a);
3708
+ } catch (i) {
3709
+ console.error("Error parsing error response body:", i);
3710
+ }
3706
3711
  } else
3707
3712
  console.error("Unexpected error:", e.message);
3708
3713
  }, jm = (e) => {
@@ -3717,8 +3722,8 @@ const at = async (e, t) => {
3717
3722
  projectId: "",
3718
3723
  projectIdOrName: "",
3719
3724
  isLoading: !0
3720
- }), Ke = () => {
3721
- const e = Vt(wl);
3725
+ }), qe = () => {
3726
+ const e = Kt(wl);
3722
3727
  if (!e)
3723
3728
  throw new Error("useProject must be used within a ProjectProvider");
3724
3729
  return e;
@@ -3741,13 +3746,13 @@ const Il = Lt({
3741
3746
  integrations: null,
3742
3747
  isLoading: !0
3743
3748
  }), Ds = () => {
3744
- const e = Vt(Il);
3749
+ const e = Kt(Il);
3745
3750
  if (!e)
3746
3751
  throw new Error("useIntegrationList must be used within a IntegrationListProvider");
3747
3752
  return e;
3748
3753
  };
3749
3754
  function zm() {
3750
- const e = qr(), { projectIdOrName: t } = Ke();
3755
+ const e = qr(), { projectIdOrName: t } = qe();
3751
3756
  return $r({
3752
3757
  queryKey: ["amp", "integrations", t],
3753
3758
  queryFn: async () => {
@@ -3758,7 +3763,7 @@ function zm() {
3758
3763
  });
3759
3764
  }
3760
3765
  function Gm({ children: e }) {
3761
- const { projectIdOrName: t } = Ke(), { setError: n, removeError: r } = Zt(), { data: o, isLoading: i, isError: s } = zm();
3766
+ const { projectIdOrName: t } = qe(), { setError: n, removeError: r } = Zt(), { data: o, isLoading: i, isError: s } = zm();
3762
3767
  Z(() => {
3763
3768
  s ? (at(s), n(Ie.INTEGRATION_LIST, t)) : r(Ie.INTEGRATION_LIST, t);
3764
3769
  }, [s, t, r, n]);
@@ -3781,14 +3786,14 @@ function r_(e) {
3781
3786
  }
3782
3787
  const Xm = Lt(null);
3783
3788
  function i_() {
3784
- const e = Vt(Xm);
3789
+ const e = Kt(Xm);
3785
3790
  if (!e)
3786
3791
  throw new Error(`Cannot call useAmpersandProvider unless your
3787
3792
  component is wrapped with AmpersandProvider`);
3788
3793
  return e;
3789
3794
  }
3790
3795
  function Ym() {
3791
- return /* @__PURE__ */ B("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3796
+ return /* @__PURE__ */ W("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3792
3797
  /* @__PURE__ */ h(
3793
3798
  "path",
3794
3799
  {
@@ -3828,7 +3833,7 @@ const tg = "_errorBoxContainer_4sdb2_1", ng = "_errorBox_4sdb2_1", rg = "_errorT
3828
3833
  errorText: rg
3829
3834
  };
3830
3835
  function bl({ message: e }) {
3831
- return /* @__PURE__ */ B(Ur, { className: Fo.errorBoxContainer, children: [
3836
+ return /* @__PURE__ */ W(Ur, { className: Fo.errorBoxContainer, children: [
3832
3837
  /* @__PURE__ */ h(Ym, {}),
3833
3838
  /* @__PURE__ */ h(qn, { className: Fo.errorBox, children: /* @__PURE__ */ h("p", { className: Fo.errorText, children: e }) })
3834
3839
  ] });
@@ -3869,7 +3874,7 @@ function on({ message: e }) {
3869
3874
  }
3870
3875
  const Ol = (e, t) => {
3871
3876
  var s;
3872
- const n = qr(), { projectIdOrName: r } = Ke(), { integrations: o } = Ds(), i = (s = o == null ? void 0 : o.find((a) => a.name === e)) == null ? void 0 : s.id;
3877
+ const n = qr(), { projectIdOrName: r } = qe(), { integrations: o } = Ds(), i = (s = o == null ? void 0 : o.find((a) => a.name === e)) == null ? void 0 : s.id;
3873
3878
  return $r({
3874
3879
  queryKey: ["amp", "installations", r, i, t],
3875
3880
  queryFn: async () => {
@@ -3929,7 +3934,7 @@ const ug = (e) => e.split(`
3929
3934
  }
3930
3935
  });
3931
3936
  function ct() {
3932
- const e = Vt(Cl);
3937
+ const e = Kt(Cl);
3933
3938
  if (!e)
3934
3939
  throw new Error("useInstallIntegrationProps must be used within an InstallIntegrationProvider");
3935
3940
  return e;
@@ -4029,12 +4034,12 @@ const El = Lt({
4029
4034
  setSelectedConnection: () => {
4030
4035
  }
4031
4036
  }), Br = () => {
4032
- const e = Vt(El);
4037
+ const e = Kt(El);
4033
4038
  if (!e)
4034
4039
  throw new Error("useConnections must be used within a ConnectionsProvider");
4035
4040
  return e;
4036
4041
  }, hg = () => {
4037
- const { projectIdOrName: e } = Ke(), { groupRef: t, provider: n } = ct(), r = qr();
4042
+ const { projectIdOrName: e } = qe(), { groupRef: t, provider: n } = ct(), r = qr();
4038
4043
  return $r({
4039
4044
  queryKey: ["amp", "connections", e, t, n],
4040
4045
  queryFn: async () => {
@@ -4044,11 +4049,13 @@ const El = Lt({
4044
4049
  if (!n) throw new Error("Provider not found.");
4045
4050
  return (await r()).connectionApi.listConnections({ projectIdOrName: e, groupRef: t, provider: n });
4046
4051
  },
4052
+ retry: 3,
4053
+ // retry 3 times before showing error
4047
4054
  enabled: !!e && !!t && !!n
4048
4055
  });
4049
4056
  };
4050
4057
  function Nl({ children: e }) {
4051
- const t = gi(), { setError: n, isError: r } = Zt(), { projectId: o, isLoading: i } = Ke(), {
4058
+ const t = gi(), { setError: n, isError: r } = Zt(), { projectId: o, isLoading: i } = qe(), {
4052
4059
  data: s,
4053
4060
  isLoading: a,
4054
4061
  isError: c,
@@ -4108,8 +4115,8 @@ function Ms(e) {
4108
4115
  var Xi = { exports: {} };
4109
4116
  Xi.exports;
4110
4117
  (function(e, t) {
4111
- var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, s = 9007199254740991, a = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", m = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", y = "[object Map]", f = "[object Number]", b = "[object Null]", v = "[object Object]", _ = "[object Promise]", O = "[object Proxy]", I = "[object RegExp]", S = "[object Set]", R = "[object String]", N = "[object Symbol]", D = "[object Undefined]", q = "[object WeakMap]", z = "[object ArrayBuffer]", J = "[object DataView]", re = "[object Float32Array]", W = "[object Float64Array]", de = "[object Int8Array]", ie = "[object Int16Array]", X = "[object Int32Array]", me = "[object Uint8Array]", be = "[object Uint8ClampedArray]", T = "[object Uint16Array]", M = "[object Uint32Array]", K = /[\\^$.*+?()[\]{}|]/g, L = /^\[object .+?Constructor\]$/, k = /^(?:0|[1-9]\d*)$/, P = {};
4112
- P[re] = P[W] = P[de] = P[ie] = P[X] = P[me] = P[be] = P[T] = P[M] = !0, P[a] = P[c] = P[z] = P[u] = P[J] = P[d] = P[m] = P[p] = P[y] = P[f] = P[v] = P[I] = P[S] = P[R] = P[q] = !1;
4118
+ var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, s = 9007199254740991, a = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", m = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", y = "[object Map]", f = "[object Number]", b = "[object Null]", v = "[object Object]", _ = "[object Promise]", O = "[object Proxy]", I = "[object RegExp]", S = "[object Set]", R = "[object String]", N = "[object Symbol]", D = "[object Undefined]", q = "[object WeakMap]", z = "[object ArrayBuffer]", J = "[object DataView]", re = "[object Float32Array]", B = "[object Float64Array]", de = "[object Int8Array]", ie = "[object Int16Array]", X = "[object Int32Array]", me = "[object Uint8Array]", be = "[object Uint8ClampedArray]", T = "[object Uint16Array]", M = "[object Uint32Array]", V = /[\\^$.*+?()[\]{}|]/g, L = /^\[object .+?Constructor\]$/, k = /^(?:0|[1-9]\d*)$/, P = {};
4119
+ P[re] = P[B] = P[de] = P[ie] = P[X] = P[me] = P[be] = P[T] = P[M] = !0, P[a] = P[c] = P[z] = P[u] = P[J] = P[d] = P[m] = P[p] = P[y] = P[f] = P[v] = P[I] = P[S] = P[R] = P[q] = !1;
4113
4120
  var ee = typeof Li == "object" && Li && Li.Object === Object && Li, te = typeof self == "object" && self && self.Object === Object && self, U = ee || te || Function("return this")(), ne = t && !t.nodeType && t, G = ne && !0 && e && !e.nodeType && e, fe = G && G.exports === ne, F = fe && ee.process, _e = function() {
4114
4121
  try {
4115
4122
  return F && F.binding && F.binding("util");
@@ -4118,8 +4125,8 @@ Xi.exports;
4118
4125
  }(), H = _e && _e.isTypedArray;
4119
4126
  function Re(w, E) {
4120
4127
  for (var x = -1, Q = w == null ? 0 : w.length, De = 0, he = []; ++x < Q; ) {
4121
- var $e = w[x];
4122
- E($e, x, w) && (he[De++] = $e);
4128
+ var Ve = w[x];
4129
+ E(Ve, x, w) && (he[De++] = Ve);
4123
4130
  }
4124
4131
  return he;
4125
4132
  }
@@ -4144,7 +4151,7 @@ Xi.exports;
4144
4151
  return w(E);
4145
4152
  };
4146
4153
  }
4147
- function Kt(w, E) {
4154
+ function Vt(w, E) {
4148
4155
  return w.has(E);
4149
4156
  }
4150
4157
  function nt(w, E) {
@@ -4171,7 +4178,7 @@ Xi.exports;
4171
4178
  var w = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
4172
4179
  return w ? "Symbol(src)_1." + w : "";
4173
4180
  }(), bn = Je.toString, Ot = RegExp(
4174
- "^" + Ut.call(lt).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4181
+ "^" + Ut.call(lt).replace(V, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4175
4182
  ), Le = fe ? U.Buffer : void 0, un = U.Symbol, _n = U.Uint8Array, dn = Je.propertyIsEnumerable, Bn = rt.splice, yt = un ? un.toStringTag : void 0, pn = Object.getOwnPropertySymbols, On = Le ? Le.isBuffer : void 0, Wn = $t(Object.keys, Object), Cn = hr(U, "DataView"), Me = hr(U, "Map"), ut = hr(U, "Promise"), oe = hr(U, "Set"), ye = hr(U, "WeakMap"), ze = hr(Object, "create"), fn = zn(Cn), j = zn(Me), ce = zn(ut), pe = zn(oe), Ue = zn(ye), Ge = un ? un.prototype : void 0, vt = Ge ? Ge.valueOf : void 0;
4176
4183
  function Ze(w) {
4177
4184
  var E = -1, x = w == null ? 0 : w.length;
@@ -4257,23 +4264,23 @@ Xi.exports;
4257
4264
  function Ld(w) {
4258
4265
  return Ti(this, w).has(w);
4259
4266
  }
4260
- function Vd(w, E) {
4267
+ function Kd(w, E) {
4261
4268
  var x = Ti(this, w), Q = x.size;
4262
4269
  return x.set(w, E), this.size += x.size == Q ? 0 : 1, this;
4263
4270
  }
4264
- Bt.prototype.clear = Jn, Bt.prototype.delete = Ro, Bt.prototype.get = Jr, Bt.prototype.has = Ld, Bt.prototype.set = Vd;
4271
+ Bt.prototype.clear = Jn, Bt.prototype.delete = Ro, Bt.prototype.get = Jr, Bt.prototype.has = Ld, Bt.prototype.set = Kd;
4265
4272
  function Ni(w) {
4266
4273
  var E = -1, x = w == null ? 0 : w.length;
4267
4274
  for (this.__data__ = new Bt(); ++E < x; )
4268
4275
  this.add(w[E]);
4269
4276
  }
4270
- function Kd(w) {
4277
+ function Vd(w) {
4271
4278
  return this.__data__.set(w, r), this;
4272
4279
  }
4273
4280
  function $d(w) {
4274
4281
  return this.__data__.has(w);
4275
4282
  }
4276
- Ni.prototype.add = Ni.prototype.push = Kd, Ni.prototype.has = $d;
4283
+ Ni.prototype.add = Ni.prototype.push = Vd, Ni.prototype.has = $d;
4277
4284
  function En(w) {
4278
4285
  var E = this.__data__ = new At(w);
4279
4286
  this.size = E.size;
@@ -4303,13 +4310,13 @@ Xi.exports;
4303
4310
  }
4304
4311
  En.prototype.clear = qd, En.prototype.delete = Ud, En.prototype.get = Hd, En.prototype.has = Bd, En.prototype.set = Wd;
4305
4312
  function jd(w, E) {
4306
- var x = Ri(w), Q = !x && ap(w), De = !x && !Q && xo(w), he = !x && !Q && !De && Ta(w), $e = x || Q || De || he, et = $e ? je(w.length, String) : [], ot = et.length;
4307
- for (var Ve in w)
4308
- lt.call(w, Ve) && !($e && // Safari 9 has enumerable `arguments.length` in strict mode.
4309
- (Ve == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
4310
- De && (Ve == "offset" || Ve == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
4311
- he && (Ve == "buffer" || Ve == "byteLength" || Ve == "byteOffset") || // Skip index properties.
4312
- np(Ve, ot))) && et.push(Ve);
4313
+ var x = Ri(w), Q = !x && ap(w), De = !x && !Q && xo(w), he = !x && !Q && !De && Ta(w), Ve = x || Q || De || he, et = Ve ? je(w.length, String) : [], ot = et.length;
4314
+ for (var Ke in w)
4315
+ lt.call(w, Ke) && !(Ve && // Safari 9 has enumerable `arguments.length` in strict mode.
4316
+ (Ke == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
4317
+ De && (Ke == "offset" || Ke == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
4318
+ he && (Ke == "buffer" || Ke == "byteLength" || Ke == "byteOffset") || // Skip index properties.
4319
+ np(Ke, ot))) && et.push(Ke);
4313
4320
  return et;
4314
4321
  }
4315
4322
  function Si(w, E) {
@@ -4332,16 +4339,16 @@ Xi.exports;
4332
4339
  return w === E ? !0 : w == null || E == null || !Gr(w) && !Gr(E) ? w !== w && E !== E : zd(w, E, x, Q, ba, De);
4333
4340
  }
4334
4341
  function zd(w, E, x, Q, De, he) {
4335
- var $e = Ri(w), et = Ri(E), ot = $e ? c : Nn(w), Ve = et ? c : Nn(E);
4336
- ot = ot == a ? v : ot, Ve = Ve == a ? v : Ve;
4337
- var Ct = ot == v, Wt = Ve == v, dt = ot == Ve;
4342
+ var Ve = Ri(w), et = Ri(E), ot = Ve ? c : Nn(w), Ke = et ? c : Nn(E);
4343
+ ot = ot == a ? v : ot, Ke = Ke == a ? v : Ke;
4344
+ var Ct = ot == v, Wt = Ke == v, dt = ot == Ke;
4338
4345
  if (dt && xo(w)) {
4339
4346
  if (!xo(E))
4340
4347
  return !1;
4341
- $e = !0, Ct = !1;
4348
+ Ve = !0, Ct = !1;
4342
4349
  }
4343
4350
  if (dt && !Ct)
4344
- return he || (he = new En()), $e || Ta(w) ? _a(w, E, x, Q, De, he) : Yd(w, E, ot, x, Q, De, he);
4351
+ return he || (he = new En()), Ve || Ta(w) ? _a(w, E, x, Q, De, he) : Yd(w, E, ot, x, Q, De, he);
4345
4352
  if (!(x & o)) {
4346
4353
  var Pt = Ct && lt.call(w, "__wrapped__"), Dt = Wt && lt.call(E, "__wrapped__");
4347
4354
  if (Pt || Dt) {
@@ -4369,17 +4376,17 @@ Xi.exports;
4369
4376
  return E;
4370
4377
  }
4371
4378
  function _a(w, E, x, Q, De, he) {
4372
- var $e = x & o, et = w.length, ot = E.length;
4373
- if (et != ot && !($e && ot > et))
4379
+ var Ve = x & o, et = w.length, ot = E.length;
4380
+ if (et != ot && !(Ve && ot > et))
4374
4381
  return !1;
4375
- var Ve = he.get(w);
4376
- if (Ve && he.get(E))
4377
- return Ve == E;
4382
+ var Ke = he.get(w);
4383
+ if (Ke && he.get(E))
4384
+ return Ke == E;
4378
4385
  var Ct = -1, Wt = !0, dt = x & i ? new Ni() : void 0;
4379
4386
  for (he.set(w, E), he.set(E, w); ++Ct < et; ) {
4380
4387
  var Pt = w[Ct], Dt = E[Ct];
4381
4388
  if (Q)
4382
- var Sn = $e ? Q(Dt, Pt, Ct, E, w, he) : Q(Pt, Dt, Ct, w, E, he);
4389
+ var Sn = Ve ? Q(Dt, Pt, Ct, E, w, he) : Q(Pt, Dt, Ct, w, E, he);
4383
4390
  if (Sn !== void 0) {
4384
4391
  if (Sn)
4385
4392
  continue;
@@ -4388,7 +4395,7 @@ Xi.exports;
4388
4395
  }
4389
4396
  if (dt) {
4390
4397
  if (!tt(E, function(hn, Gn) {
4391
- if (!Kt(dt, Gn) && (Pt === hn || De(Pt, hn, x, Q, he)))
4398
+ if (!Vt(dt, Gn) && (Pt === hn || De(Pt, hn, x, Q, he)))
4392
4399
  return dt.push(Gn);
4393
4400
  })) {
4394
4401
  Wt = !1;
@@ -4401,7 +4408,7 @@ Xi.exports;
4401
4408
  }
4402
4409
  return he.delete(w), he.delete(E), Wt;
4403
4410
  }
4404
- function Yd(w, E, x, Q, De, he, $e) {
4411
+ function Yd(w, E, x, Q, De, he, Ve) {
4405
4412
  switch (x) {
4406
4413
  case J:
4407
4414
  if (w.byteLength != E.byteLength || w.byteOffset != E.byteOffset)
@@ -4424,12 +4431,12 @@ Xi.exports;
4424
4431
  var ot = Q & o;
4425
4432
  if (et || (et = qt), w.size != E.size && !ot)
4426
4433
  return !1;
4427
- var Ve = $e.get(w);
4428
- if (Ve)
4429
- return Ve == E;
4430
- Q |= i, $e.set(w, E);
4431
- var Ct = _a(et(w), et(E), Q, De, he, $e);
4432
- return $e.delete(w), Ct;
4434
+ var Ke = Ve.get(w);
4435
+ if (Ke)
4436
+ return Ke == E;
4437
+ Q |= i, Ve.set(w, E);
4438
+ var Ct = _a(et(w), et(E), Q, De, he, Ve);
4439
+ return Ve.delete(w), Ct;
4433
4440
  case N:
4434
4441
  if (vt)
4435
4442
  return vt.call(w) == vt.call(E);
@@ -4437,12 +4444,12 @@ Xi.exports;
4437
4444
  return !1;
4438
4445
  }
4439
4446
  function Zd(w, E, x, Q, De, he) {
4440
- var $e = x & o, et = Oa(w), ot = et.length, Ve = Oa(E), Ct = Ve.length;
4441
- if (ot != Ct && !$e)
4447
+ var Ve = x & o, et = Oa(w), ot = et.length, Ke = Oa(E), Ct = Ke.length;
4448
+ if (ot != Ct && !Ve)
4442
4449
  return !1;
4443
4450
  for (var Wt = ot; Wt--; ) {
4444
4451
  var dt = et[Wt];
4445
- if (!($e ? dt in E : lt.call(E, dt)))
4452
+ if (!(Ve ? dt in E : lt.call(E, dt)))
4446
4453
  return !1;
4447
4454
  }
4448
4455
  var Pt = he.get(w);
@@ -4450,11 +4457,11 @@ Xi.exports;
4450
4457
  return Pt == E;
4451
4458
  var Dt = !0;
4452
4459
  he.set(w, E), he.set(E, w);
4453
- for (var Sn = $e; ++Wt < ot; ) {
4460
+ for (var Sn = Ve; ++Wt < ot; ) {
4454
4461
  dt = et[Wt];
4455
4462
  var hn = w[dt], Gn = E[dt];
4456
4463
  if (Q)
4457
- var Ra = $e ? Q(Gn, hn, dt, E, w, he) : Q(hn, Gn, dt, w, E, he);
4464
+ var Ra = Ve ? Q(Gn, hn, dt, E, w, he) : Q(hn, Gn, dt, w, E, he);
4458
4465
  if (!(Ra === void 0 ? hn === Gn || De(hn, Gn, x, Q, he) : Ra)) {
4459
4466
  Dt = !1;
4460
4467
  break;
@@ -4585,7 +4592,7 @@ Xi.exports;
4585
4592
  })(Xi, Xi.exports);
4586
4593
  var gg = Xi.exports;
4587
4594
  const Rl = /* @__PURE__ */ Ms(gg), lr = "other", Yi = "uninstall-installation";
4588
- function Vn(e) {
4595
+ function Kn(e) {
4589
4596
  return !e.fieldName;
4590
4597
  }
4591
4598
  function ks(e, t) {
@@ -4595,25 +4602,25 @@ function ks(e, t) {
4595
4602
  function yg(e) {
4596
4603
  var t;
4597
4604
  return ((t = e == null ? void 0 : e.requiredFields) == null ? void 0 : t.filter(
4598
- (n) => !Vn(n) && !!n.fieldName
4605
+ (n) => !Kn(n) && !!n.fieldName
4599
4606
  )) || null;
4600
4607
  }
4601
4608
  function vg(e) {
4602
4609
  var n;
4603
4610
  return ((n = e == null ? void 0 : e.requiredFields) == null ? void 0 : n.filter(
4604
- (r) => Vn(r) && !!r.mapToName
4611
+ (r) => Kn(r) && !!r.mapToName
4605
4612
  )) || [];
4606
4613
  }
4607
4614
  function wg(e) {
4608
4615
  var n;
4609
4616
  return ((n = e == null ? void 0 : e.optionalFields) == null ? void 0 : n.filter(
4610
- (r) => Vn(r) && !!r.mapToName
4617
+ (r) => Kn(r) && !!r.mapToName
4611
4618
  )) || [];
4612
4619
  }
4613
4620
  function Ig(e) {
4614
4621
  var t;
4615
4622
  return ((t = e == null ? void 0 : e.optionalFields) == null ? void 0 : t.filter(
4616
- (n) => !Vn(n) && !!n.fieldName
4623
+ (n) => !Kn(n) && !!n.fieldName
4617
4624
  )) || null;
4618
4625
  }
4619
4626
  const xl = (e, t) => {
@@ -4621,7 +4628,7 @@ const xl = (e, t) => {
4621
4628
  return (o = (r = (n = e == null ? void 0 : e.content) == null ? void 0 : n.read) == null ? void 0 : r.objects) == null ? void 0 : o[t];
4622
4629
  };
4623
4630
  function bg(e) {
4624
- return Vn(e) ? e.mapToName : e.fieldName;
4631
+ return Kn(e) ? e.mapToName : e.fieldName;
4625
4632
  }
4626
4633
  const Al = (e, t) => {
4627
4634
  var r, o, i;
@@ -4733,7 +4740,7 @@ const Ll = (e, t, n, r) => {
4733
4740
  t
4734
4741
  ));
4735
4742
  }), n(o);
4736
- }, Vl = (e) => {
4743
+ }, Kl = (e) => {
4737
4744
  const { requiredFields: t, selectedOptionalFields: n } = (e == null ? void 0 : e.read) || {}, r = /* @__PURE__ */ new Set();
4738
4745
  return t == null || t.forEach((i) => r.add(bg(i))), {
4739
4746
  ...Array.from(r).reduce((i, s) => ({
@@ -4743,7 +4750,7 @@ const Ll = (e, t, n, r) => {
4743
4750
  ...n || {}
4744
4751
  // adds optional fields that are selected (true)
4745
4752
  };
4746
- }, Kl = (e) => {
4753
+ }, Vl = (e) => {
4747
4754
  const { selectedFieldMappings: t } = (e == null ? void 0 : e.read) || {}, n = {};
4748
4755
  return t && Object.keys(t).forEach(
4749
4756
  (r) => {
@@ -4797,7 +4804,7 @@ const Ng = (e, t) => {
4797
4804
  const n = e.content.read, r = n == null ? void 0 : n.objects;
4798
4805
  return r == null ? void 0 : r.find((o) => o.objectName === t);
4799
4806
  }, Sg = (e, t, n, r) => {
4800
- const o = Vl(e), i = Kl(
4807
+ const o = Kl(e), i = Vl(
4801
4808
  e
4802
4809
  ), s = $l(e), a = Ng(n, t);
4803
4810
  if (!a)
@@ -4965,13 +4972,13 @@ const Wl = Lt({
4965
4972
  readAction: void 0,
4966
4973
  writeObjects: []
4967
4974
  }), In = () => {
4968
- const e = Vt(Wl);
4975
+ const e = Kt(Wl);
4969
4976
  if (!e)
4970
4977
  throw new Error("useHydratedRevision must be used within a HydratedRevisionProvider");
4971
4978
  return e;
4972
- }, Vg = () => {
4979
+ }, Kg = () => {
4973
4980
  var c;
4974
- const e = qr(), { selectedConnection: t, isConnectionsLoading: n } = Br(), { projectIdOrName: r } = Ke(), { integrationId: o, integrationObj: i } = ct(), s = t == null ? void 0 : t.id, a = (c = i == null ? void 0 : i.latestRevision) == null ? void 0 : c.id;
4981
+ const e = qr(), { selectedConnection: t, isConnectionsLoading: n } = Br(), { projectIdOrName: r } = qe(), { integrationId: o, integrationObj: i } = ct(), s = t == null ? void 0 : t.id, a = (c = i == null ? void 0 : i.latestRevision) == null ? void 0 : c.id;
4975
4982
  return $r({
4976
4983
  queryKey: ["amp", "hydratedRevision", r, o, a],
4977
4984
  queryFn: async () => {
@@ -4986,10 +4993,12 @@ const Wl = Lt({
4986
4993
  connectionId: s
4987
4994
  });
4988
4995
  },
4996
+ retry: 3,
4997
+ // retry 3 times before showing error
4989
4998
  enabled: !!r && !!o && !!a && !!s && !n
4990
4999
  });
4991
5000
  };
4992
- function Kg({
5001
+ function Vg({
4993
5002
  children: e
4994
5003
  }) {
4995
5004
  const { integrationId: t, integrationObj: n } = ct(), { isError: r, removeError: o, setError: i } = Zt(), s = (n == null ? void 0 : n.name) || t, {
@@ -4997,7 +5006,7 @@ function Kg({
4997
5006
  isLoading: c,
4998
5007
  isError: l,
4999
5008
  error: u
5000
- } = Vg();
5009
+ } = Kg();
5001
5010
  Z(() => {
5002
5011
  l ? (i(Ie.HYDRATED_REVISION, s), at(u)) : o(Ie.HYDRATED_REVISION, s);
5003
5012
  }, [l, s, i, o, u]);
@@ -5020,7 +5029,7 @@ function Kg({
5020
5029
  }
5021
5030
  const jl = Lt(null);
5022
5031
  function Jl() {
5023
- const e = Vt(jl);
5032
+ const e = Kt(jl);
5024
5033
  if (e === null)
5025
5034
  throw new Error(
5026
5035
  "useSelectedNavObjectName must be used within a SelectedNavObjectNameProvider"
@@ -5030,7 +5039,7 @@ function Jl() {
5030
5039
  const zl = Lt(() => {
5031
5040
  });
5032
5041
  function $g() {
5033
- const e = Vt(zl);
5042
+ const e = Kt(zl);
5034
5043
  if (!e)
5035
5044
  throw new Error("useSetNextTabIndex must be used within a NextTabIndexProvider");
5036
5045
  return { onNextIncompleteTab: e };
@@ -5152,8 +5161,8 @@ function ds(e, t) {
5152
5161
  return Object.assign(o, e);
5153
5162
  }
5154
5163
  }
5155
- function Vs(e, t = !1) {
5156
- return wo(e) || Dr(e) || !ur(e) || (go(e) > 1 && (e.set = e.add = e.clear = e.delete = Bg), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => Vs(r, !0))), e;
5164
+ function Ks(e, t = !1) {
5165
+ return wo(e) || Dr(e) || !ur(e) || (go(e) > 1 && (e.set = e.add = e.clear = e.delete = Bg), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => Ks(r, !0))), e;
5157
5166
  }
5158
5167
  function Bg() {
5159
5168
  bt(2);
@@ -5252,7 +5261,7 @@ function Xa(e, t, n, r, o, i, s) {
5252
5261
  }
5253
5262
  }
5254
5263
  function to(e, t, n = !1) {
5255
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Vs(t, n);
5264
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Ks(t, n);
5256
5265
  }
5257
5266
  function zg(e, t) {
5258
5267
  const n = Array.isArray(e), r = {
@@ -5278,12 +5287,12 @@ function zg(e, t) {
5278
5287
  revoke_: null,
5279
5288
  isManual_: !1
5280
5289
  };
5281
- let o = r, i = Ks;
5290
+ let o = r, i = Vs;
5282
5291
  n && (o = [r], i = si);
5283
5292
  const { revoke: s, proxy: a } = Proxy.revocable(o, i);
5284
5293
  return r.draft_ = a, r.revoke_ = s, a;
5285
5294
  }
5286
- var Ks = {
5295
+ var Vs = {
5287
5296
  get(e, t) {
5288
5297
  if (t === Tt)
5289
5298
  return e;
@@ -5339,7 +5348,7 @@ var Ks = {
5339
5348
  bt(12);
5340
5349
  }
5341
5350
  }, si = {};
5342
- Zi(Ks, (e, t) => {
5351
+ Zi(Vs, (e, t) => {
5343
5352
  si[e] = function() {
5344
5353
  return arguments[0] = arguments[0][0], t.apply(this, arguments);
5345
5354
  };
@@ -5348,7 +5357,7 @@ si.deleteProperty = function(e, t) {
5348
5357
  return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && bt(13), si.set.call(this, e, t, void 0);
5349
5358
  };
5350
5359
  si.set = function(e, t, n) {
5351
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && bt(14), Ks.set.call(this, e[0], t, n, e[0]);
5360
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && bt(14), Vs.set.call(this, e[0], t, n, e[0]);
5352
5361
  };
5353
5362
  function ko(e, t) {
5354
5363
  const n = e[Tt];
@@ -5406,7 +5415,7 @@ var Qg = class {
5406
5415
  }
5407
5416
  return za(i, r), Qa(o, i);
5408
5417
  } else if (!t || typeof t != "object") {
5409
- if (o = n(t), o === void 0 && (o = t), o === Gl && (o = void 0), this.autoFreeze_ && Vs(o, !0), r) {
5418
+ if (o = n(t), o === void 0 && (o = t), o === Gl && (o = void 0), this.autoFreeze_ && Ks(o, !0), r) {
5410
5419
  const i = [], s = [];
5411
5420
  dr("Patches").generateReplacementPatches_(t, o, i, s), r(i, s);
5412
5421
  }
@@ -5499,7 +5508,7 @@ Rt.createDraft.bind(Rt);
5499
5508
  Rt.finishDraft.bind(Rt);
5500
5509
  const tu = Lt(void 0), Yg = {};
5501
5510
  function $s() {
5502
- const e = Vt(tu);
5511
+ const e = Kt(tu);
5503
5512
  if (!e)
5504
5513
  throw new Error("useObjectsConfigureState must be used within a ConfigurationProvider");
5505
5514
  return e;
@@ -5559,7 +5568,7 @@ function Zg({ children: e }) {
5559
5568
  return /* @__PURE__ */ h(tu.Provider, { value: m, children: e });
5560
5569
  }
5561
5570
  const xt = () => {
5562
- const { appName: e } = Ke(), { objectConfigurationsState: t, setConfigureState: n } = $s(), { selectedObjectName: r } = Jl(), o = ql(r || "", t);
5571
+ const { appName: e } = qe(), { objectConfigurationsState: t, setConfigureState: n } = $s(), { selectedObjectName: r } = Jl(), o = ql(r || "", t);
5563
5572
  return {
5564
5573
  appName: e,
5565
5574
  configureState: o,
@@ -5621,7 +5630,7 @@ function gs(e, t) {
5621
5630
  function ry(e, t) {
5622
5631
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, gs(e, t);
5623
5632
  }
5624
- var ys = { exports: {} }, Vi = { exports: {} }, Ce = {};
5633
+ var ys = { exports: {} }, Ki = { exports: {} }, Ce = {};
5625
5634
  /** @license React v16.13.1
5626
5635
  * react-is.production.min.js
5627
5636
  *
@@ -5745,7 +5754,7 @@ function oy() {
5745
5754
  }
5746
5755
  }
5747
5756
  }
5748
- var I = c, S = l, R = a, N = s, D = t, q = u, z = r, J = g, re = p, W = n, de = i, ie = o, X = d, me = !1;
5757
+ var I = c, S = l, R = a, N = s, D = t, q = u, z = r, J = g, re = p, B = n, de = i, ie = o, X = d, me = !1;
5749
5758
  function be(F) {
5750
5759
  return me || (me = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(F) || O(F) === c;
5751
5760
  }
@@ -5755,7 +5764,7 @@ function oy() {
5755
5764
  function M(F) {
5756
5765
  return O(F) === a;
5757
5766
  }
5758
- function K(F) {
5767
+ function V(F) {
5759
5768
  return O(F) === s;
5760
5769
  }
5761
5770
  function L(F) {
@@ -5785,21 +5794,21 @@ function oy() {
5785
5794
  function fe(F) {
5786
5795
  return O(F) === d;
5787
5796
  }
5788
- Ee.AsyncMode = I, Ee.ConcurrentMode = S, Ee.ContextConsumer = R, Ee.ContextProvider = N, Ee.Element = D, Ee.ForwardRef = q, Ee.Fragment = z, Ee.Lazy = J, Ee.Memo = re, Ee.Portal = W, Ee.Profiler = de, Ee.StrictMode = ie, Ee.Suspense = X, Ee.isAsyncMode = be, Ee.isConcurrentMode = T, Ee.isContextConsumer = M, Ee.isContextProvider = K, Ee.isElement = L, Ee.isForwardRef = k, Ee.isFragment = P, Ee.isLazy = ee, Ee.isMemo = te, Ee.isPortal = U, Ee.isProfiler = ne, Ee.isStrictMode = G, Ee.isSuspense = fe, Ee.isValidElementType = _, Ee.typeOf = O;
5797
+ Ee.AsyncMode = I, Ee.ConcurrentMode = S, Ee.ContextConsumer = R, Ee.ContextProvider = N, Ee.Element = D, Ee.ForwardRef = q, Ee.Fragment = z, Ee.Lazy = J, Ee.Memo = re, Ee.Portal = B, Ee.Profiler = de, Ee.StrictMode = ie, Ee.Suspense = X, Ee.isAsyncMode = be, Ee.isConcurrentMode = T, Ee.isContextConsumer = M, Ee.isContextProvider = V, Ee.isElement = L, Ee.isForwardRef = k, Ee.isFragment = P, Ee.isLazy = ee, Ee.isMemo = te, Ee.isPortal = U, Ee.isProfiler = ne, Ee.isStrictMode = G, Ee.isSuspense = fe, Ee.isValidElementType = _, Ee.typeOf = O;
5789
5798
  }()), Ee;
5790
5799
  }
5791
5800
  var ec;
5792
5801
  function nu() {
5793
- return ec || (ec = 1, process.env.NODE_ENV === "production" ? Vi.exports = iy() : Vi.exports = oy()), Vi.exports;
5802
+ return ec || (ec = 1, process.env.NODE_ENV === "production" ? Ki.exports = iy() : Ki.exports = oy()), Ki.exports;
5794
5803
  }
5795
5804
  /*
5796
5805
  object-assign
5797
5806
  (c) Sindre Sorhus
5798
5807
  @license MIT
5799
5808
  */
5800
- var Vo, tc;
5809
+ var Ko, tc;
5801
5810
  function sy() {
5802
- if (tc) return Vo;
5811
+ if (tc) return Ko;
5803
5812
  tc = 1;
5804
5813
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
5805
5814
  function r(i) {
@@ -5829,7 +5838,7 @@ function sy() {
5829
5838
  return !1;
5830
5839
  }
5831
5840
  }
5832
- return Vo = o() ? Object.assign : function(i, s) {
5841
+ return Ko = o() ? Object.assign : function(i, s) {
5833
5842
  for (var a, c = r(i), l, u = 1; u < arguments.length; u++) {
5834
5843
  a = Object(arguments[u]);
5835
5844
  for (var d in a)
@@ -5841,14 +5850,14 @@ function sy() {
5841
5850
  }
5842
5851
  }
5843
5852
  return c;
5844
- }, Vo;
5853
+ }, Ko;
5845
5854
  }
5846
- var Ko, nc;
5855
+ var Vo, nc;
5847
5856
  function qs() {
5848
- if (nc) return Ko;
5857
+ if (nc) return Vo;
5849
5858
  nc = 1;
5850
5859
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
5851
- return Ko = e, Ko;
5860
+ return Vo = e, Vo;
5852
5861
  }
5853
5862
  var $o, rc;
5854
5863
  function ru() {
@@ -5957,7 +5966,7 @@ function cy() {
5957
5966
  y.prototype = Error.prototype;
5958
5967
  function f(T) {
5959
5968
  if (process.env.NODE_ENV !== "production")
5960
- var M = {}, K = 0;
5969
+ var M = {}, V = 0;
5961
5970
  function L(P, ee, te, U, ne, G, fe) {
5962
5971
  if (U = U || m, G = G || te, fe !== n) {
5963
5972
  if (c) {
@@ -5968,9 +5977,9 @@ function cy() {
5968
5977
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
5969
5978
  var _e = U + ":" + te;
5970
5979
  !M[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
5971
- K < 3 && (i(
5980
+ V < 3 && (i(
5972
5981
  "You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
5973
- ), M[_e] = !0, K++);
5982
+ ), M[_e] = !0, V++);
5974
5983
  }
5975
5984
  }
5976
5985
  return ee[te] == null ? P ? ee[te] === null ? new y("The " + ne + " `" + G + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + ne + " `" + G + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : T(ee, te, U, ne, G);
@@ -5979,8 +5988,8 @@ function cy() {
5979
5988
  return k.isRequired = L.bind(null, !0), k;
5980
5989
  }
5981
5990
  function b(T) {
5982
- function M(K, L, k, P, ee, te) {
5983
- var U = K[L], ne = ie(U);
5991
+ function M(V, L, k, P, ee, te) {
5992
+ var U = V[L], ne = ie(U);
5984
5993
  if (ne !== T) {
5985
5994
  var G = X(U);
5986
5995
  return new y(
@@ -5996,10 +6005,10 @@ function cy() {
5996
6005
  return f(s);
5997
6006
  }
5998
6007
  function _(T) {
5999
- function M(K, L, k, P, ee) {
6008
+ function M(V, L, k, P, ee) {
6000
6009
  if (typeof T != "function")
6001
6010
  return new y("Property `" + ee + "` of component `" + k + "` has invalid PropType notation inside arrayOf.");
6002
- var te = K[L];
6011
+ var te = V[L];
6003
6012
  if (!Array.isArray(te)) {
6004
6013
  var U = ie(te);
6005
6014
  return new y("Invalid " + P + " `" + ee + "` of type " + ("`" + U + "` supplied to `" + k + "`, expected an array."));
@@ -6014,8 +6023,8 @@ function cy() {
6014
6023
  return f(M);
6015
6024
  }
6016
6025
  function O() {
6017
- function T(M, K, L, k, P) {
6018
- var ee = M[K];
6026
+ function T(M, V, L, k, P) {
6027
+ var ee = M[V];
6019
6028
  if (!a(ee)) {
6020
6029
  var te = ie(ee);
6021
6030
  return new y("Invalid " + k + " `" + P + "` of type " + ("`" + te + "` supplied to `" + L + "`, expected a single ReactElement."));
@@ -6025,8 +6034,8 @@ function cy() {
6025
6034
  return f(T);
6026
6035
  }
6027
6036
  function I() {
6028
- function T(M, K, L, k, P) {
6029
- var ee = M[K];
6037
+ function T(M, V, L, k, P) {
6038
+ var ee = M[V];
6030
6039
  if (!e.isValidElementType(ee)) {
6031
6040
  var te = ie(ee);
6032
6041
  return new y("Invalid " + k + " `" + P + "` of type " + ("`" + te + "` supplied to `" + L + "`, expected a single ReactElement type."));
@@ -6036,9 +6045,9 @@ function cy() {
6036
6045
  return f(T);
6037
6046
  }
6038
6047
  function S(T) {
6039
- function M(K, L, k, P, ee) {
6040
- if (!(K[L] instanceof T)) {
6041
- var te = T.name || m, U = be(K[L]);
6048
+ function M(V, L, k, P, ee) {
6049
+ if (!(V[L] instanceof T)) {
6050
+ var te = T.name || m, U = be(V[L]);
6042
6051
  return new y("Invalid " + P + " `" + ee + "` of type " + ("`" + U + "` supplied to `" + k + "`, expected ") + ("instance of `" + te + "`."));
6043
6052
  }
6044
6053
  return null;
@@ -6050,8 +6059,8 @@ function cy() {
6050
6059
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
6051
6060
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
6052
6061
  ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
6053
- function M(K, L, k, P, ee) {
6054
- for (var te = K[L], U = 0; U < T.length; U++)
6062
+ function M(V, L, k, P, ee) {
6063
+ for (var te = V[L], U = 0; U < T.length; U++)
6055
6064
  if (g(te, T[U]))
6056
6065
  return null;
6057
6066
  var ne = JSON.stringify(T, function(fe, F) {
@@ -6063,10 +6072,10 @@ function cy() {
6063
6072
  return f(M);
6064
6073
  }
6065
6074
  function N(T) {
6066
- function M(K, L, k, P, ee) {
6075
+ function M(V, L, k, P, ee) {
6067
6076
  if (typeof T != "function")
6068
6077
  return new y("Property `" + ee + "` of component `" + k + "` has invalid PropType notation inside objectOf.");
6069
- var te = K[L], U = ie(te);
6078
+ var te = V[L], U = ie(te);
6070
6079
  if (U !== "object")
6071
6080
  return new y("Invalid " + P + " `" + ee + "` of type " + ("`" + U + "` supplied to `" + k + "`, expected an object."));
6072
6081
  for (var ne in te)
@@ -6083,10 +6092,10 @@ function cy() {
6083
6092
  if (!Array.isArray(T))
6084
6093
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
6085
6094
  for (var M = 0; M < T.length; M++) {
6086
- var K = T[M];
6087
- if (typeof K != "function")
6095
+ var V = T[M];
6096
+ if (typeof V != "function")
6088
6097
  return i(
6089
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + me(K) + " at index " + M + "."
6098
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + me(V) + " at index " + M + "."
6090
6099
  ), s;
6091
6100
  }
6092
6101
  function L(k, P, ee, te, U) {
@@ -6102,19 +6111,19 @@ function cy() {
6102
6111
  return f(L);
6103
6112
  }
6104
6113
  function q() {
6105
- function T(M, K, L, k, P) {
6106
- return W(M[K]) ? null : new y("Invalid " + k + " `" + P + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
6114
+ function T(M, V, L, k, P) {
6115
+ return B(M[V]) ? null : new y("Invalid " + k + " `" + P + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
6107
6116
  }
6108
6117
  return f(T);
6109
6118
  }
6110
- function z(T, M, K, L, k) {
6119
+ function z(T, M, V, L, k) {
6111
6120
  return new y(
6112
- (T || "React class") + ": " + M + " type `" + K + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + k + "`."
6121
+ (T || "React class") + ": " + M + " type `" + V + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + k + "`."
6113
6122
  );
6114
6123
  }
6115
6124
  function J(T) {
6116
- function M(K, L, k, P, ee) {
6117
- var te = K[L], U = ie(te);
6125
+ function M(V, L, k, P, ee) {
6126
+ var te = V[L], U = ie(te);
6118
6127
  if (U !== "object")
6119
6128
  return new y("Invalid " + P + " `" + ee + "` of type `" + U + "` " + ("supplied to `" + k + "`, expected `object`."));
6120
6129
  for (var ne in T) {
@@ -6130,18 +6139,18 @@ function cy() {
6130
6139
  return f(M);
6131
6140
  }
6132
6141
  function re(T) {
6133
- function M(K, L, k, P, ee) {
6134
- var te = K[L], U = ie(te);
6142
+ function M(V, L, k, P, ee) {
6143
+ var te = V[L], U = ie(te);
6135
6144
  if (U !== "object")
6136
6145
  return new y("Invalid " + P + " `" + ee + "` of type `" + U + "` " + ("supplied to `" + k + "`, expected `object`."));
6137
- var ne = t({}, K[L], T);
6146
+ var ne = t({}, V[L], T);
6138
6147
  for (var G in ne) {
6139
6148
  var fe = T[G];
6140
6149
  if (r(T, G) && typeof fe != "function")
6141
6150
  return z(k, P, ee, G, X(fe));
6142
6151
  if (!fe)
6143
6152
  return new y(
6144
- "Invalid " + P + " `" + ee + "` key `" + G + "` supplied to `" + k + "`.\nBad object: " + JSON.stringify(K[L], null, " ") + `
6153
+ "Invalid " + P + " `" + ee + "` key `" + G + "` supplied to `" + k + "`.\nBad object: " + JSON.stringify(V[L], null, " ") + `
6145
6154
  Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
6146
6155
  );
6147
6156
  var F = fe(te, G, k, P, ee + "." + G, n);
@@ -6152,7 +6161,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
6152
6161
  }
6153
6162
  return f(M);
6154
6163
  }
6155
- function W(T) {
6164
+ function B(T) {
6156
6165
  switch (typeof T) {
6157
6166
  case "number":
6158
6167
  case "string":
@@ -6162,20 +6171,20 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
6162
6171
  return !T;
6163
6172
  case "object":
6164
6173
  if (Array.isArray(T))
6165
- return T.every(W);
6174
+ return T.every(B);
6166
6175
  if (T === null || a(T))
6167
6176
  return !0;
6168
6177
  var M = d(T);
6169
6178
  if (M) {
6170
- var K = M.call(T), L;
6179
+ var V = M.call(T), L;
6171
6180
  if (M !== T.entries) {
6172
- for (; !(L = K.next()).done; )
6173
- if (!W(L.value))
6181
+ for (; !(L = V.next()).done; )
6182
+ if (!B(L.value))
6174
6183
  return !1;
6175
6184
  } else
6176
- for (; !(L = K.next()).done; ) {
6185
+ for (; !(L = V.next()).done; ) {
6177
6186
  var k = L.value;
6178
- if (k && !W(k[1]))
6187
+ if (k && !B(k[1]))
6179
6188
  return !1;
6180
6189
  }
6181
6190
  } else
@@ -6278,7 +6287,7 @@ if (process.env.NODE_ENV !== "production") {
6278
6287
  } else
6279
6288
  ys.exports = ly()();
6280
6289
  var py = ys.exports;
6281
- const V = /* @__PURE__ */ Ms(py);
6290
+ const K = /* @__PURE__ */ Ms(py);
6282
6291
  var vs = { exports: {} }, Ne = {};
6283
6292
  /**
6284
6293
  * @license React
@@ -6411,14 +6420,14 @@ function hy() {
6411
6420
  }
6412
6421
  }
6413
6422
  }
6414
- var S = s, R = i, N = e, D = c, q = n, z = m, J = d, re = t, W = o, de = r, ie = l, X = u, me = !1, be = !1;
6423
+ var S = s, R = i, N = e, D = c, q = n, z = m, J = d, re = t, B = o, de = r, ie = l, X = u, me = !1, be = !1;
6415
6424
  function T(H) {
6416
6425
  return me || (me = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
6417
6426
  }
6418
6427
  function M(H) {
6419
6428
  return be || (be = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
6420
6429
  }
6421
- function K(H) {
6430
+ function V(H) {
6422
6431
  return I(H) === s;
6423
6432
  }
6424
6433
  function L(H) {
@@ -6454,7 +6463,7 @@ function hy() {
6454
6463
  function _e(H) {
6455
6464
  return I(H) === u;
6456
6465
  }
6457
- Se.ContextConsumer = S, Se.ContextProvider = R, Se.Element = N, Se.ForwardRef = D, Se.Fragment = q, Se.Lazy = z, Se.Memo = J, Se.Portal = re, Se.Profiler = W, Se.StrictMode = de, Se.Suspense = ie, Se.SuspenseList = X, Se.isAsyncMode = T, Se.isConcurrentMode = M, Se.isContextConsumer = K, Se.isContextProvider = L, Se.isElement = k, Se.isForwardRef = P, Se.isFragment = ee, Se.isLazy = te, Se.isMemo = U, Se.isPortal = ne, Se.isProfiler = G, Se.isStrictMode = fe, Se.isSuspense = F, Se.isSuspenseList = _e, Se.isValidElementType = O, Se.typeOf = I;
6466
+ Se.ContextConsumer = S, Se.ContextProvider = R, Se.Element = N, Se.ForwardRef = D, Se.Fragment = q, Se.Lazy = z, Se.Memo = J, Se.Portal = re, Se.Profiler = B, Se.StrictMode = de, Se.Suspense = ie, Se.SuspenseList = X, Se.isAsyncMode = T, Se.isConcurrentMode = M, Se.isContextConsumer = V, Se.isContextProvider = L, Se.isElement = k, Se.isForwardRef = P, Se.isFragment = ee, Se.isLazy = te, Se.isMemo = U, Se.isPortal = ne, Se.isProfiler = G, Se.isStrictMode = fe, Se.isSuspense = F, Se.isSuspenseList = _e, Se.isValidElementType = O, Se.typeOf = I;
6458
6467
  }()), Se;
6459
6468
  }
6460
6469
  process.env.NODE_ENV === "production" ? vs.exports = fy() : vs.exports = hy();
@@ -6475,7 +6484,7 @@ const uc = (e) => typeof e == "object" && e != null && e.nodeType === 1, dc = (e
6475
6484
  })(e);
6476
6485
  }
6477
6486
  return !1;
6478
- }, Ki = (e, t, n, r, o, i, s, a) => i < e && s > t || i > e && s < t ? 0 : i <= e && a <= n || s >= t && a >= n ? i - e - r : s > t && a < n || i < e && a > n ? s - t + o : 0, my = (e) => {
6487
+ }, Vi = (e, t, n, r, o, i, s, a) => i < e && s > t || i > e && s < t ? 0 : i <= e && a <= n || s >= t && a >= n ? i - e - r : s > t && a < n || i < e && a > n ? s - t + o : 0, my = (e) => {
6479
6488
  const t = e.parentElement;
6480
6489
  return t ?? (e.getRootNode().host || null);
6481
6490
  }, gy = (e, t) => {
@@ -6496,19 +6505,19 @@ const uc = (e) => typeof e == "object" && e != null && e.nodeType === 1, dc = (e
6496
6505
  const X = window.getComputedStyle(ie);
6497
6506
  return { top: parseFloat(X.scrollMarginTop) || 0, right: parseFloat(X.scrollMarginRight) || 0, bottom: parseFloat(X.scrollMarginBottom) || 0, left: parseFloat(X.scrollMarginLeft) || 0 };
6498
6507
  })(e);
6499
- let re = a === "start" || a === "nearest" ? I - D : a === "end" ? R + z : I + _ / 2 - D + z, W = c === "center" ? N + O / 2 - J + q : c === "end" ? S + q : N - J;
6508
+ let re = a === "start" || a === "nearest" ? I - D : a === "end" ? R + z : I + _ / 2 - D + z, B = c === "center" ? N + O / 2 - J + q : c === "end" ? S + q : N - J;
6500
6509
  const de = [];
6501
6510
  for (let ie = 0; ie < p.length; ie++) {
6502
- const X = p[ie], { height: me, width: be, top: T, right: M, bottom: K, left: L } = X.getBoundingClientRect();
6503
- if (s === "if-needed" && I >= 0 && N >= 0 && R <= f && S <= y && I >= T && R <= K && N >= L && S <= M) return de;
6511
+ const X = p[ie], { height: me, width: be, top: T, right: M, bottom: V, left: L } = X.getBoundingClientRect();
6512
+ if (s === "if-needed" && I >= 0 && N >= 0 && R <= f && S <= y && I >= T && R <= V && N >= L && S <= M) return de;
6504
6513
  const k = getComputedStyle(X), P = parseInt(k.borderLeftWidth, 10), ee = parseInt(k.borderTopWidth, 10), te = parseInt(k.borderRightWidth, 10), U = parseInt(k.borderBottomWidth, 10);
6505
6514
  let ne = 0, G = 0;
6506
6515
  const fe = "offsetWidth" in X ? X.offsetWidth - X.clientWidth - P - te : 0, F = "offsetHeight" in X ? X.offsetHeight - X.clientHeight - ee - U : 0, _e = "offsetWidth" in X ? X.offsetWidth === 0 ? 0 : be / X.offsetWidth : 0, H = "offsetHeight" in X ? X.offsetHeight === 0 ? 0 : me / X.offsetHeight : 0;
6507
- if (m === X) ne = a === "start" ? re : a === "end" ? re - f : a === "nearest" ? Ki(v, v + f, f, ee, U, v + re, v + re + _, _) : re - f / 2, G = c === "start" ? W : c === "center" ? W - y / 2 : c === "end" ? W - y : Ki(b, b + y, y, P, te, b + W, b + W + O, O), ne = Math.max(0, ne + v), G = Math.max(0, G + b);
6516
+ if (m === X) ne = a === "start" ? re : a === "end" ? re - f : a === "nearest" ? Vi(v, v + f, f, ee, U, v + re, v + re + _, _) : re - f / 2, G = c === "start" ? B : c === "center" ? B - y / 2 : c === "end" ? B - y : Vi(b, b + y, y, P, te, b + B, b + B + O, O), ne = Math.max(0, ne + v), G = Math.max(0, G + b);
6508
6517
  else {
6509
- ne = a === "start" ? re - T - ee : a === "end" ? re - K + U + F : a === "nearest" ? Ki(T, K, me, ee, U + F, re, re + _, _) : re - (T + me / 2) + F / 2, G = c === "start" ? W - L - P : c === "center" ? W - (L + be / 2) + fe / 2 : c === "end" ? W - M + te + fe : Ki(L, M, be, P, te + fe, W, W + O, O);
6518
+ ne = a === "start" ? re - T - ee : a === "end" ? re - V + U + F : a === "nearest" ? Vi(T, V, me, ee, U + F, re, re + _, _) : re - (T + me / 2) + F / 2, G = c === "start" ? B - L - P : c === "center" ? B - (L + be / 2) + fe / 2 : c === "end" ? B - M + te + fe : Vi(L, M, be, P, te + fe, B, B + O, O);
6510
6519
  const { scrollLeft: Re, scrollTop: He } = X;
6511
- ne = H === 0 ? 0 : Math.max(0, Math.min(He + ne / H, X.scrollHeight - me / H + F)), G = _e === 0 ? 0 : Math.max(0, Math.min(Re + G / _e, X.scrollWidth - be / _e + fe)), re += He - ne, W += Re - G;
6520
+ ne = H === 0 ? 0 : Math.max(0, Math.min(He + ne / H, X.scrollHeight - me / H + F)), G = _e === 0 ? 0 : Math.max(0, Math.min(Re + G / _e, X.scrollWidth - be / _e + fe)), re += He - ne, B += Re - G;
6512
6521
  }
6513
6522
  de.push({ el: X, top: ne, left: G });
6514
6523
  }
@@ -6770,8 +6779,8 @@ var uu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
6770
6779
  }, i.getRootProps = function(v, _) {
6771
6780
  var O, I = v === void 0 ? {} : v, S = I.refKey, R = S === void 0 ? "ref" : S, N = I.ref, D = vn(I, Ey), q = _ === void 0 ? {} : _, z = q.suppressRefError, J = z === void 0 ? !1 : z;
6772
6781
  i.getRootProps.called = !0, i.getRootProps.refKey = R, i.getRootProps.suppressRefError = J;
6773
- var re = i.getState(), W = re.isOpen;
6774
- return ge((O = {}, O[R] = gr(N, i.rootRef), O.role = "combobox", O["aria-expanded"] = W, O["aria-haspopup"] = "listbox", O["aria-owns"] = W ? i.menuId : void 0, O["aria-labelledby"] = i.labelId, O), D);
6782
+ var re = i.getState(), B = re.isOpen;
6783
+ return ge((O = {}, O[R] = gr(N, i.rootRef), O.role = "combobox", O["aria-expanded"] = B, O["aria-haspopup"] = "listbox", O["aria-owns"] = B ? i.menuId : void 0, O["aria-labelledby"] = i.labelId, O), D);
6775
6784
  }, i.keyDownHandlers = {
6776
6785
  ArrowDown: function(_) {
6777
6786
  var O = this;
@@ -6931,14 +6940,14 @@ var uu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
6931
6940
  _.onChangeText;
6932
6941
  var N = vn(_, Sy), D, q = {};
6933
6942
  D = "onChange";
6934
- var z = i.getState(), J = z.inputValue, re = z.isOpen, W = z.highlightedIndex;
6943
+ var z = i.getState(), J = z.inputValue, re = z.isOpen, B = z.highlightedIndex;
6935
6944
  if (!N.disabled) {
6936
6945
  var de;
6937
6946
  q = (de = {}, de[D] = Qe(S, R, i.inputHandleChange), de.onKeyDown = Qe(O, i.inputHandleKeyDown), de.onBlur = Qe(I, i.inputHandleBlur), de);
6938
6947
  }
6939
6948
  return ge({
6940
6949
  "aria-autocomplete": "list",
6941
- "aria-activedescendant": re && typeof W == "number" && W >= 0 ? i.getItemId(W) : void 0,
6950
+ "aria-activedescendant": re && typeof B == "number" && B >= 0 ? i.getItemId(B) : void 0,
6942
6951
  "aria-controls": re ? i.menuId : void 0,
6943
6952
  "aria-labelledby": N && N["aria-label"] ? void 0 : i.labelId,
6944
6953
  // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
@@ -6980,7 +6989,7 @@ var uu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
6980
6989
  void 0
6981
6990
  ) : wy("getItemProps", "item") : D, z = vn(O, Ry);
6982
6991
  N === void 0 ? (i.items.push(q), N = i.items.indexOf(q)) : i.items[N] = q;
6983
- var J = "onClick", re = R, W = (_ = {
6992
+ var J = "onClick", re = R, B = (_ = {
6984
6993
  // onMouseMove is used over onMouseEnter here. onMouseMove
6985
6994
  // is only triggered on actual mouse movement while onMouseEnter
6986
6995
  // can fire on DOM changes, interrupting keyboard navigation
@@ -6999,8 +7008,8 @@ var uu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
6999
7008
  type: yu
7000
7009
  });
7001
7010
  }), _), de = z.disabled ? {
7002
- onMouseDown: W.onMouseDown
7003
- } : W;
7011
+ onMouseDown: B.onMouseDown
7012
+ } : B;
7004
7013
  return ge({
7005
7014
  id: i.getItemId(N),
7006
7015
  role: "option",
@@ -7084,7 +7093,7 @@ var uu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
7084
7093
  this.setHighlightedIndex(u, s);
7085
7094
  }
7086
7095
  }, r.getStateAndHelpers = function() {
7087
- var i = this.getState(), s = i.highlightedIndex, a = i.inputValue, c = i.selectedItem, l = i.isOpen, u = this.props.itemToString, d = this.id, m = this.getRootProps, p = this.getToggleButtonProps, g = this.getLabelProps, y = this.getMenuProps, f = this.getInputProps, b = this.getItemProps, v = this.openMenu, _ = this.closeMenu, O = this.toggleMenu, I = this.selectItem, S = this.selectItemAtIndex, R = this.selectHighlightedItem, N = this.setHighlightedIndex, D = this.clearSelection, q = this.clearItems, z = this.reset, J = this.setItemCount, re = this.unsetItemCount, W = this.internalSetState;
7096
+ var i = this.getState(), s = i.highlightedIndex, a = i.inputValue, c = i.selectedItem, l = i.isOpen, u = this.props.itemToString, d = this.id, m = this.getRootProps, p = this.getToggleButtonProps, g = this.getLabelProps, y = this.getMenuProps, f = this.getInputProps, b = this.getItemProps, v = this.openMenu, _ = this.closeMenu, O = this.toggleMenu, I = this.selectItem, S = this.selectItemAtIndex, R = this.selectHighlightedItem, N = this.setHighlightedIndex, D = this.clearSelection, q = this.clearItems, z = this.reset, J = this.setItemCount, re = this.unsetItemCount, B = this.internalSetState;
7088
7097
  return {
7089
7098
  // prop getters
7090
7099
  getRootProps: m,
@@ -7106,7 +7115,7 @@ var uu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
7106
7115
  clearItems: q,
7107
7116
  setItemCount: J,
7108
7117
  unsetItemCount: re,
7109
- setState: W,
7118
+ setState: B,
7110
7119
  // props
7111
7120
  itemToString: u,
7112
7121
  // derived
@@ -7202,49 +7211,49 @@ var uu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
7202
7211
  }, e.stateChangeTypes = Cy, e;
7203
7212
  }();
7204
7213
  process.env.NODE_ENV !== "production" && (xy.propTypes = {
7205
- children: V.func,
7206
- defaultHighlightedIndex: V.number,
7207
- defaultIsOpen: V.bool,
7208
- initialHighlightedIndex: V.number,
7209
- initialSelectedItem: V.any,
7210
- initialInputValue: V.string,
7211
- initialIsOpen: V.bool,
7212
- getA11yStatusMessage: V.func,
7213
- itemToString: V.func,
7214
- onChange: V.func,
7215
- onSelect: V.func,
7216
- onStateChange: V.func,
7217
- onInputValueChange: V.func,
7218
- onUserAction: V.func,
7219
- onOuterClick: V.func,
7220
- selectedItemChanged: V.func,
7221
- stateReducer: V.func,
7222
- itemCount: V.number,
7223
- id: V.string,
7224
- environment: V.shape({
7225
- addEventListener: V.func.isRequired,
7226
- removeEventListener: V.func.isRequired,
7227
- document: V.shape({
7228
- createElement: V.func.isRequired,
7229
- getElementById: V.func.isRequired,
7230
- activeElement: V.any.isRequired,
7231
- body: V.any.isRequired
7214
+ children: K.func,
7215
+ defaultHighlightedIndex: K.number,
7216
+ defaultIsOpen: K.bool,
7217
+ initialHighlightedIndex: K.number,
7218
+ initialSelectedItem: K.any,
7219
+ initialInputValue: K.string,
7220
+ initialIsOpen: K.bool,
7221
+ getA11yStatusMessage: K.func,
7222
+ itemToString: K.func,
7223
+ onChange: K.func,
7224
+ onSelect: K.func,
7225
+ onStateChange: K.func,
7226
+ onInputValueChange: K.func,
7227
+ onUserAction: K.func,
7228
+ onOuterClick: K.func,
7229
+ selectedItemChanged: K.func,
7230
+ stateReducer: K.func,
7231
+ itemCount: K.number,
7232
+ id: K.string,
7233
+ environment: K.shape({
7234
+ addEventListener: K.func.isRequired,
7235
+ removeEventListener: K.func.isRequired,
7236
+ document: K.shape({
7237
+ createElement: K.func.isRequired,
7238
+ getElementById: K.func.isRequired,
7239
+ activeElement: K.any.isRequired,
7240
+ body: K.any.isRequired
7232
7241
  }).isRequired,
7233
- Node: V.func.isRequired
7242
+ Node: K.func.isRequired
7234
7243
  }),
7235
- suppressRefError: V.bool,
7236
- scrollIntoView: V.func,
7244
+ suppressRefError: K.bool,
7245
+ scrollIntoView: K.func,
7237
7246
  // things we keep in state for uncontrolled components
7238
7247
  // but can accept as props for controlled components
7239
7248
  /* eslint-disable react/no-unused-prop-types */
7240
- selectedItem: V.any,
7241
- isOpen: V.bool,
7242
- inputValue: V.string,
7243
- highlightedIndex: V.number,
7244
- labelId: V.string,
7245
- inputId: V.string,
7246
- menuId: V.string,
7247
- getItemId: V.func
7249
+ selectedItem: K.any,
7250
+ isOpen: K.bool,
7251
+ inputValue: K.string,
7252
+ highlightedIndex: K.number,
7253
+ labelId: K.string,
7254
+ inputId: K.string,
7255
+ menuId: K.string,
7256
+ getItemId: K.func
7248
7257
  /* eslint-enable react/no-unused-prop-types */
7249
7258
  });
7250
7259
  function mc(e, t) {
@@ -7322,7 +7331,7 @@ function Eu(e) {
7322
7331
  var t = Ae(e);
7323
7332
  return t.current = e, t;
7324
7333
  }
7325
- function Vy(e, t, n, r) {
7334
+ function Ky(e, t, n, r) {
7326
7335
  var o = Ae(), i = Ae(), s = ae(function(p, g) {
7327
7336
  i.current = g, p = no(p, g.props);
7328
7337
  var y = e(p, g), f = g.props.stateReducer(p, ge({}, g, {
@@ -7366,7 +7375,7 @@ function Zr(e, t, n) {
7366
7375
  var o = e["initial" + Bs(t)];
7367
7376
  return o !== void 0 ? o : kn(e, t, n);
7368
7377
  }
7369
- function Ky(e) {
7378
+ function Vy(e) {
7370
7379
  var t = Zr(e, "selectedItem"), n = Zr(e, "isOpen"), r = By(e), o = Zr(e, "inputValue");
7371
7380
  return {
7372
7381
  highlightedIndex: r < 0 && t && n ? e.items.findIndex(function(i) {
@@ -7506,41 +7515,41 @@ function By(e) {
7506
7515
  return t > -1 && e.isItemDisabled(e.items[t], t) ? -1 : t;
7507
7516
  }
7508
7517
  var Ji = {
7509
- environment: V.shape({
7510
- addEventListener: V.func.isRequired,
7511
- removeEventListener: V.func.isRequired,
7512
- document: V.shape({
7513
- createElement: V.func.isRequired,
7514
- getElementById: V.func.isRequired,
7515
- activeElement: V.any.isRequired,
7516
- body: V.any.isRequired
7518
+ environment: K.shape({
7519
+ addEventListener: K.func.isRequired,
7520
+ removeEventListener: K.func.isRequired,
7521
+ document: K.shape({
7522
+ createElement: K.func.isRequired,
7523
+ getElementById: K.func.isRequired,
7524
+ activeElement: K.any.isRequired,
7525
+ body: K.any.isRequired
7517
7526
  }).isRequired,
7518
- Node: V.func.isRequired
7527
+ Node: K.func.isRequired
7519
7528
  }),
7520
- itemToString: V.func,
7521
- itemToKey: V.func,
7522
- stateReducer: V.func
7529
+ itemToString: K.func,
7530
+ itemToKey: K.func,
7531
+ stateReducer: K.func
7523
7532
  }, Tu = ge({}, Ji, {
7524
- getA11yStatusMessage: V.func,
7525
- highlightedIndex: V.number,
7526
- defaultHighlightedIndex: V.number,
7527
- initialHighlightedIndex: V.number,
7528
- isOpen: V.bool,
7529
- defaultIsOpen: V.bool,
7530
- initialIsOpen: V.bool,
7531
- selectedItem: V.any,
7532
- initialSelectedItem: V.any,
7533
- defaultSelectedItem: V.any,
7534
- id: V.string,
7535
- labelId: V.string,
7536
- menuId: V.string,
7537
- getItemId: V.func,
7538
- toggleButtonId: V.string,
7539
- onSelectedItemChange: V.func,
7540
- onHighlightedIndexChange: V.func,
7541
- onStateChange: V.func,
7542
- onIsOpenChange: V.func,
7543
- scrollIntoView: V.func
7533
+ getA11yStatusMessage: K.func,
7534
+ highlightedIndex: K.number,
7535
+ defaultHighlightedIndex: K.number,
7536
+ initialHighlightedIndex: K.number,
7537
+ isOpen: K.bool,
7538
+ defaultIsOpen: K.bool,
7539
+ initialIsOpen: K.bool,
7540
+ selectedItem: K.any,
7541
+ initialSelectedItem: K.any,
7542
+ defaultSelectedItem: K.any,
7543
+ id: K.string,
7544
+ labelId: K.string,
7545
+ menuId: K.string,
7546
+ getItemId: K.func,
7547
+ toggleButtonId: K.string,
7548
+ onSelectedItemChange: K.func,
7549
+ onHighlightedIndexChange: K.func,
7550
+ onStateChange: K.func,
7551
+ onIsOpenChange: K.func,
7552
+ scrollIntoView: K.func
7544
7553
  });
7545
7554
  function Wy(e, t, n) {
7546
7555
  var r = t.type, o = t.props, i;
@@ -7596,7 +7605,7 @@ function Wy(e, t, n) {
7596
7605
  }
7597
7606
  return ge({}, e, i);
7598
7607
  }
7599
- Fr(Fr({}, Tu), { items: V.array.isRequired, isItemDisabled: V.func });
7608
+ Fr(Fr({}, Tu), { items: K.array.isRequired, isItemDisabled: K.func });
7600
7609
  Fr(Fr({}, Yr), { isItemDisabled: function() {
7601
7610
  return !1;
7602
7611
  } });
@@ -7623,7 +7632,7 @@ process.env.NODE_ENV;
7623
7632
  process.env.NODE_ENV;
7624
7633
  process.env.NODE_ENV;
7625
7634
  process.env.NODE_ENV;
7626
- var Ws = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, js = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, Js = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, zs = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, Gs = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, Qs = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, Xs = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, Ys = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, Zs = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, oo = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, ea = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, Ru = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, xu = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, ta = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, Au = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, Pu = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Du = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, Fu = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, Mu = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, na = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, ku = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, Lu = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, ra = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, Vu = /* @__PURE__ */ Object.freeze({
7635
+ var Ws = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, js = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, Js = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, zs = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, Gs = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, Qs = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, Xs = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, Ys = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, Zs = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, oo = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, ea = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, Ru = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, xu = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, ta = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, Au = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, Pu = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Du = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, Fu = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, Mu = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, na = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, ku = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, Lu = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, ra = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, Ku = /* @__PURE__ */ Object.freeze({
7627
7636
  __proto__: null,
7628
7637
  ControlledPropUpdatedSelectedItem: ra,
7629
7638
  FunctionCloseMenu: Fu,
@@ -7650,22 +7659,22 @@ var Ws = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__"
7650
7659
  ToggleButtonClick: Au
7651
7660
  });
7652
7661
  function jy(e) {
7653
- var t = Ky(e), n = t.selectedItem, r = t.inputValue;
7662
+ var t = Vy(e), n = t.selectedItem, r = t.inputValue;
7654
7663
  return r === "" && n && e.defaultInputValue === void 0 && e.initialInputValue === void 0 && e.inputValue === void 0 && (r = e.itemToString(n)), ge({}, t, {
7655
7664
  inputValue: r
7656
7665
  });
7657
7666
  }
7658
7667
  var Jy = ge({}, Tu, {
7659
- items: V.array.isRequired,
7660
- isItemDisabled: V.func,
7661
- inputValue: V.string,
7662
- defaultInputValue: V.string,
7663
- initialInputValue: V.string,
7664
- inputId: V.string,
7665
- onInputValueChange: V.func
7668
+ items: K.array.isRequired,
7669
+ isItemDisabled: K.func,
7670
+ inputValue: K.string,
7671
+ defaultInputValue: K.string,
7672
+ initialInputValue: K.string,
7673
+ inputId: K.string,
7674
+ onInputValueChange: K.func
7666
7675
  });
7667
7676
  function zy(e, t, n, r) {
7668
- var o = Ae(), i = Vy(e, t, n, r), s = i[0], a = i[1], c = Io();
7677
+ var o = Ae(), i = Ky(e, t, n, r), s = i[0], a = i[1], c = Io();
7669
7678
  return Z(function() {
7670
7679
  if (ro(t, "selectedItem")) {
7671
7680
  if (!c) {
@@ -7679,9 +7688,9 @@ function zy(e, t, n, r) {
7679
7688
  }
7680
7689
  }, [s.selectedItem, t.selectedItem]), [no(s, t), a];
7681
7690
  }
7682
- var Ku = Et;
7683
- process.env.NODE_ENV !== "production" && (Ku = function(t, n) {
7684
- V.checkPropTypes(Jy, t, "prop", n.name);
7691
+ var Vu = Et;
7692
+ process.env.NODE_ENV !== "production" && (Vu = function(t, n) {
7693
+ K.checkPropTypes(Jy, t, "prop", n.name);
7685
7694
  });
7686
7695
  var Gy = ge({}, Yr, {
7687
7696
  isItemDisabled: function() {
@@ -7781,19 +7790,19 @@ function Qy(e, t) {
7781
7790
  };
7782
7791
  break;
7783
7792
  default:
7784
- return Wy(e, t, Vu);
7793
+ return Wy(e, t, Ku);
7785
7794
  }
7786
7795
  return ge({}, e, s);
7787
7796
  }
7788
7797
  var Xy = ["onMouseLeave", "refKey", "ref"], Yy = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Zy = ["onClick", "onPress", "refKey", "ref"], ev = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
7789
- ia.stateChangeTypes = Vu;
7798
+ ia.stateChangeTypes = Ku;
7790
7799
  function ia(e) {
7791
- e === void 0 && (e = {}), Ku(e, ia);
7800
+ e === void 0 && (e = {}), Vu(e, ia);
7792
7801
  var t = ge({}, Gy, e), n = t.items, r = t.scrollIntoView, o = t.environment, i = t.getA11yStatusMessage, s = zy(Qy, t, jy, Hy), a = s[0], c = s[1], l = a.isOpen, u = a.highlightedIndex, d = a.selectedItem, m = a.inputValue, p = Ae(null), g = Ae({}), y = Ae(null), f = Ae(null), b = Io(), v = ky(t), _ = Ae(), O = Eu({
7793
7802
  state: a,
7794
7803
  props: t
7795
- }), I = ae(function(K) {
7796
- return g.current[v.getItemId(K)];
7804
+ }), I = ae(function(V) {
7805
+ return g.current[v.getItemId(V)];
7797
7806
  }, [v]);
7798
7807
  qy(i, a, [l, u, d, m], o);
7799
7808
  var S = Uy({
@@ -7808,8 +7817,8 @@ function ia(e) {
7808
7817
  props: t,
7809
7818
  state: a
7810
7819
  }), Z(function() {
7811
- var K = Zr(t, "isOpen");
7812
- K && y.current && y.current.focus();
7820
+ var V = Zr(t, "isOpen");
7821
+ V && y.current && y.current.focus();
7813
7822
  }, []), Z(function() {
7814
7823
  b || (_.current = n.length);
7815
7824
  });
@@ -7824,8 +7833,8 @@ function ia(e) {
7824
7833
  Z(function() {
7825
7834
  l || (g.current = {});
7826
7835
  }, [l]), Z(function() {
7827
- var K;
7828
- !l || !(o != null && o.document) || !(y != null && (K = y.current) != null && K.focus) || o.document.activeElement !== y.current && y.current.focus();
7836
+ var V;
7837
+ !l || !(o != null && o.document) || !(y != null && (V = y.current) != null && V.focus) || o.document.activeElement !== y.current && y.current.focus();
7829
7838
  }, [l, o]);
7830
7839
  var D = Fe(function() {
7831
7840
  return {
@@ -7874,13 +7883,13 @@ function ia(e) {
7874
7883
  }));
7875
7884
  }
7876
7885
  };
7877
- }, [c, O]), q = ae(function(K) {
7886
+ }, [c, O]), q = ae(function(V) {
7878
7887
  return ge({
7879
7888
  id: v.labelId,
7880
7889
  htmlFor: v.inputId
7881
- }, K);
7882
- }, [v]), z = ae(function(K, L) {
7883
- var k, P = K === void 0 ? {} : K, ee = P.onMouseLeave, te = P.refKey, U = te === void 0 ? "ref" : te, ne = P.ref, G = vn(P, Xy), fe = L === void 0 ? {} : L, F = fe.suppressRefError, _e = F === void 0 ? !1 : F;
7890
+ }, V);
7891
+ }, [v]), z = ae(function(V, L) {
7892
+ var k, P = V === void 0 ? {} : V, ee = P.onMouseLeave, te = P.refKey, U = te === void 0 ? "ref" : te, ne = P.ref, G = vn(P, Xy), fe = L === void 0 ? {} : L, F = fe.suppressRefError, _e = F === void 0 ? !1 : F;
7884
7893
  return N("getMenuProps", _e, U, p), ge((k = {}, k[U] = gr(ne, function(H) {
7885
7894
  p.current = H;
7886
7895
  }), k.id = v.menuId, k.role = "listbox", k["aria-labelledby"] = G && G["aria-label"] ? void 0 : "" + v.labelId, k.onMouseLeave = Qe(ee, function() {
@@ -7888,12 +7897,12 @@ function ia(e) {
7888
7897
  type: Ru
7889
7898
  });
7890
7899
  }), k), G);
7891
- }, [c, N, v]), J = ae(function(K) {
7892
- var L, k, P = K === void 0 ? {} : K, ee = P.item, te = P.index, U = P.refKey, ne = U === void 0 ? "ref" : U, G = P.ref, fe = P.onMouseMove, F = P.onMouseDown, _e = P.onClick;
7900
+ }, [c, N, v]), J = ae(function(V) {
7901
+ var L, k, P = V === void 0 ? {} : V, ee = P.item, te = P.index, U = P.refKey, ne = U === void 0 ? "ref" : U, G = P.ref, fe = P.onMouseMove, F = P.onMouseDown, _e = P.onClick;
7893
7902
  P.onPress;
7894
7903
  var H = P.disabled, Re = vn(P, Yy);
7895
7904
  H !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
7896
- var He = O.current, tt = He.props, je = He.state, Oe = Ly(ee, te, tt.items, "Pass either item or index to getItemProps!"), Kt = Oe[0], nt = Oe[1], _t = tt.isItemDisabled(Kt, nt), $t = "onClick", qt = _e, rt = function() {
7905
+ var He = O.current, tt = He.props, je = He.state, Oe = Ly(ee, te, tt.items, "Pass either item or index to getItemProps!"), Vt = Oe[0], nt = Oe[1], _t = tt.isItemDisabled(Vt, nt), $t = "onClick", qt = _e, rt = function() {
7897
7906
  R.isTouchEnd || nt === je.highlightedIndex || (S.current = !1, c({
7898
7907
  type: xu,
7899
7908
  index: nt,
@@ -7913,8 +7922,8 @@ function ia(e) {
7913
7922
  onMouseMove: Qe(fe, rt),
7914
7923
  onMouseDown: Qe(F, Je)
7915
7924
  }, Re);
7916
- }, [c, v, O, R, S]), re = ae(function(K) {
7917
- var L, k = K === void 0 ? {} : K, P = k.onClick;
7925
+ }, [c, v, O, R, S]), re = ae(function(V) {
7926
+ var L, k = V === void 0 ? {} : V, P = k.onClick;
7918
7927
  k.onPress;
7919
7928
  var ee = k.refKey, te = ee === void 0 ? "ref" : ee, U = k.ref, ne = vn(k, Zy), G = O.current.state, fe = function() {
7920
7929
  c({
@@ -7926,15 +7935,15 @@ function ia(e) {
7926
7935
  }), L["aria-controls"] = v.menuId, L["aria-expanded"] = G.isOpen, L.id = v.toggleButtonId, L.tabIndex = -1, L), !ne.disabled && ge({}, {
7927
7936
  onClick: Qe(P, fe)
7928
7937
  }), ne);
7929
- }, [c, O, v]), W = ae(function(K, L) {
7930
- var k, P = K === void 0 ? {} : K, ee = P.onKeyDown, te = P.onChange, U = P.onInput, ne = P.onBlur;
7938
+ }, [c, O, v]), B = ae(function(V, L) {
7939
+ var k, P = V === void 0 ? {} : V, ee = P.onKeyDown, te = P.onChange, U = P.onInput, ne = P.onBlur;
7931
7940
  P.onChangeText;
7932
7941
  var G = P.onClick, fe = P.refKey, F = fe === void 0 ? "ref" : fe, _e = P.ref, H = vn(P, ev), Re = L === void 0 ? {} : L, He = Re.suppressRefError, tt = He === void 0 ? !1 : He;
7933
7942
  N("getInputProps", tt, F, y);
7934
7943
  var je = O.current.state, Oe = function(Je) {
7935
7944
  var ke = ws(Je);
7936
7945
  ke && D[ke] && D[ke](Je);
7937
- }, Kt = function(Je) {
7946
+ }, Vt = function(Je) {
7938
7947
  c({
7939
7948
  type: Zs,
7940
7949
  inputValue: Je.target.value
@@ -7954,7 +7963,7 @@ function ia(e) {
7954
7963
  }, $t = "onChange", qt = {};
7955
7964
  if (!H.disabled) {
7956
7965
  var rt;
7957
- qt = (rt = {}, rt[$t] = Qe(te, U, Kt), rt.onKeyDown = Qe(ee, Oe), rt.onBlur = Qe(ne, nt), rt.onClick = Qe(G, _t), rt);
7966
+ qt = (rt = {}, rt[$t] = Qe(te, U, Vt), rt.onKeyDown = Qe(ee, Oe), rt.onBlur = Qe(ne, nt), rt.onClick = Qe(G, _t), rt);
7958
7967
  }
7959
7968
  return ge((k = {}, k[F] = gr(_e, function(Ye) {
7960
7969
  y.current = Ye;
@@ -7971,20 +7980,20 @@ function ia(e) {
7971
7980
  c({
7972
7981
  type: Du
7973
7982
  });
7974
- }, [c]), me = ae(function(K) {
7983
+ }, [c]), me = ae(function(V) {
7975
7984
  c({
7976
7985
  type: Mu,
7977
- highlightedIndex: K
7986
+ highlightedIndex: V
7978
7987
  });
7979
- }, [c]), be = ae(function(K) {
7988
+ }, [c]), be = ae(function(V) {
7980
7989
  c({
7981
7990
  type: na,
7982
- selectedItem: K
7991
+ selectedItem: V
7983
7992
  });
7984
- }, [c]), T = ae(function(K) {
7993
+ }, [c]), T = ae(function(V) {
7985
7994
  c({
7986
7995
  type: ku,
7987
- inputValue: K
7996
+ inputValue: V
7988
7997
  });
7989
7998
  }, [c]), M = ae(function() {
7990
7999
  c({
@@ -7996,7 +8005,7 @@ function ia(e) {
7996
8005
  getItemProps: J,
7997
8006
  getLabelProps: q,
7998
8007
  getMenuProps: z,
7999
- getInputProps: W,
8008
+ getInputProps: B,
8000
8009
  getToggleButtonProps: re,
8001
8010
  // actions.
8002
8011
  toggleMenu: de,
@@ -8013,7 +8022,7 @@ function ia(e) {
8013
8022
  inputValue: m
8014
8023
  };
8015
8024
  }
8016
- Ji.stateReducer, Ji.itemToKey, Ji.environment, V.array, V.array, V.array, V.func, V.number, V.number, V.number, V.func, V.func, V.string, V.string;
8025
+ Ji.stateReducer, Ji.itemToKey, Ji.environment, K.array, K.array, K.array, K.func, K.number, K.number, K.number, K.func, K.func, K.string, K.string;
8017
8026
  Yr.itemToKey, Yr.stateReducer, Yr.environment;
8018
8027
  process.env.NODE_ENV;
8019
8028
  process.env.NODE_ENV;
@@ -8087,8 +8096,8 @@ function oa({
8087
8096
  },
8088
8097
  [e, t]
8089
8098
  ), O = () => f(_ || "");
8090
- return /* @__PURE__ */ B("div", { style: { position: "relative", ...i }, children: [
8091
- /* @__PURE__ */ h("div", { className: mn.comboboxContainer, children: /* @__PURE__ */ B("div", { className: mn.inputContainer, children: [
8099
+ return /* @__PURE__ */ W("div", { style: { position: "relative", ...i }, children: [
8100
+ /* @__PURE__ */ h("div", { className: mn.comboboxContainer, children: /* @__PURE__ */ W("div", { className: mn.inputContainer, children: [
8092
8101
  /* @__PURE__ */ h(
8093
8102
  "input",
8094
8103
  {
@@ -8130,7 +8139,7 @@ function oa({
8130
8139
  )
8131
8140
  ] });
8132
8141
  }
8133
- const kr = Math.min, sr = Math.max, so = Math.round, qi = Math.floor, Kn = (e) => ({
8142
+ const kr = Math.min, sr = Math.max, so = Math.round, qi = Math.floor, Vn = (e) => ({
8134
8143
  x: e,
8135
8144
  y: e
8136
8145
  }), pv = {
@@ -8413,12 +8422,12 @@ const Iv = (e) => ({
8413
8422
  }, p = aa(o), g = sa(p), y = await s.getDimensions(l), f = p === "y", b = f ? "top" : "left", v = f ? "bottom" : "right", _ = f ? "clientHeight" : "clientWidth", O = i.reference[g] + i.reference[p] - m[p] - i.floating[g], I = m[p] - i.reference[p], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
8414
8423
  let R = S ? S[_] : 0;
8415
8424
  (!R || !await (s.isElement == null ? void 0 : s.isElement(S))) && (R = a.floating[_] || i.floating[g]);
8416
- const N = O / 2 - I / 2, D = R / 2 - y[g] / 2 - 1, q = kr(d[b], D), z = kr(d[v], D), J = q, re = R - y[g] - z, W = R / 2 - y[g] / 2 + N, de = _s(J, W, re), ie = !c.arrow && vi(o) != null && W !== de && i.reference[g] / 2 - (W < J ? q : z) - y[g] / 2 < 0, X = ie ? W < J ? W - J : W - re : 0;
8425
+ const N = O / 2 - I / 2, D = R / 2 - y[g] / 2 - 1, q = kr(d[b], D), z = kr(d[v], D), J = q, re = R - y[g] - z, B = R / 2 - y[g] / 2 + N, de = _s(J, B, re), ie = !c.arrow && vi(o) != null && B !== de && i.reference[g] / 2 - (B < J ? q : z) - y[g] / 2 < 0, X = ie ? B < J ? B - J : B - re : 0;
8417
8426
  return {
8418
8427
  [p]: m[p] + X,
8419
8428
  data: {
8420
8429
  [p]: de,
8421
- centerOffset: W - de - X,
8430
+ centerOffset: B - de - X,
8422
8431
  ...ie && {
8423
8432
  alignmentOffset: X
8424
8433
  }
@@ -8455,19 +8464,19 @@ const Iv = (e) => ({
8455
8464
  const R = [a, ...I], N = await Uu(t, f), D = [];
8456
8465
  let q = ((r = i.flip) == null ? void 0 : r.overflows) || [];
8457
8466
  if (u && D.push(N[b]), d) {
8458
- const W = hv(o, s, O);
8459
- D.push(N[W[0]], N[W[1]]);
8467
+ const B = hv(o, s, O);
8468
+ D.push(N[B[0]], N[B[1]]);
8460
8469
  }
8461
8470
  if (q = [...q, {
8462
8471
  placement: o,
8463
8472
  overflows: D
8464
- }], !D.every((W) => W <= 0)) {
8473
+ }], !D.every((B) => B <= 0)) {
8465
8474
  var z, J;
8466
- const W = (((z = i.flip) == null ? void 0 : z.index) || 0) + 1, de = R[W];
8475
+ const B = (((z = i.flip) == null ? void 0 : z.index) || 0) + 1, de = R[B];
8467
8476
  if (de)
8468
8477
  return {
8469
8478
  data: {
8470
- index: W,
8479
+ index: B,
8471
8480
  overflows: q
8472
8481
  },
8473
8482
  reset: {
@@ -8665,7 +8674,7 @@ function ca(e) {
8665
8674
  }
8666
8675
  function Nv(e) {
8667
8676
  let t = $n(e);
8668
- for (; an(t) && !Vr(t); ) {
8677
+ for (; an(t) && !Kr(t); ) {
8669
8678
  if (ca(t))
8670
8679
  return t;
8671
8680
  if (_o(t))
@@ -8677,7 +8686,7 @@ function Nv(e) {
8677
8686
  function la() {
8678
8687
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
8679
8688
  }
8680
- function Vr(e) {
8689
+ function Kr(e) {
8681
8690
  return ["html", "body", "#document"].includes(Wr(e));
8682
8691
  }
8683
8692
  function Xt(e) {
@@ -8706,7 +8715,7 @@ function $n(e) {
8706
8715
  }
8707
8716
  function Bu(e) {
8708
8717
  const t = $n(e);
8709
- return Vr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : an(t) && wi(t) ? t : Bu(t);
8718
+ return Kr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : an(t) && wi(t) ? t : Bu(t);
8710
8719
  }
8711
8720
  function ci(e, t, n) {
8712
8721
  var r;
@@ -8737,7 +8746,7 @@ function ua(e) {
8737
8746
  function vr(e) {
8738
8747
  const t = ua(e);
8739
8748
  if (!an(t))
8740
- return Kn(1);
8749
+ return Vn(1);
8741
8750
  const n = t.getBoundingClientRect(), {
8742
8751
  width: r,
8743
8752
  height: o,
@@ -8749,7 +8758,7 @@ function vr(e) {
8749
8758
  y: a
8750
8759
  };
8751
8760
  }
8752
- const Sv = /* @__PURE__ */ Kn(0);
8761
+ const Sv = /* @__PURE__ */ Vn(0);
8753
8762
  function ju(e) {
8754
8763
  const t = St(e);
8755
8764
  return !la() || !t.visualViewport ? Sv : {
@@ -8763,9 +8772,9 @@ function Tv(e, t, n) {
8763
8772
  function fr(e, t, n, r) {
8764
8773
  t === void 0 && (t = !1), n === void 0 && (n = !1);
8765
8774
  const o = e.getBoundingClientRect(), i = ua(e);
8766
- let s = Kn(1);
8775
+ let s = Vn(1);
8767
8776
  t && (r ? Qt(r) && (s = vr(r)) : s = vr(e));
8768
- const a = Tv(i, n, r) ? ju(i) : Kn(0);
8777
+ const a = Tv(i, n, r) ? ju(i) : Vn(0);
8769
8778
  let c = (o.left + a.x) / s.x, l = (o.top + a.y) / s.y, u = o.width / s.x, d = o.height / s.y;
8770
8779
  if (i) {
8771
8780
  const m = St(i), p = r && Qt(r) ? St(r) : r;
@@ -8795,8 +8804,8 @@ function Rv(e) {
8795
8804
  let c = {
8796
8805
  scrollLeft: 0,
8797
8806
  scrollTop: 0
8798
- }, l = Kn(1);
8799
- const u = Kn(0), d = an(r);
8807
+ }, l = Vn(1);
8808
+ const u = Vn(0), d = an(r);
8800
8809
  if ((d || !d && !i) && ((Wr(r) !== "body" || wi(s)) && (c = Oo(r)), an(r))) {
8801
8810
  const m = fr(r);
8802
8811
  l = vr(r), u.x = m.x + r.clientLeft, u.y = m.y + r.clientTop;
@@ -8842,7 +8851,7 @@ function Pv(e, t) {
8842
8851
  };
8843
8852
  }
8844
8853
  function Dv(e, t) {
8845
- const n = fr(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = an(e) ? vr(e) : Kn(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
8854
+ const n = fr(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = an(e) ? vr(e) : Vn(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
8846
8855
  return {
8847
8856
  width: s,
8848
8857
  height: a,
@@ -8870,7 +8879,7 @@ function Ic(e, t, n) {
8870
8879
  }
8871
8880
  function Ju(e, t) {
8872
8881
  const n = $n(e);
8873
- return n === t || !Qt(n) || Vr(n) ? !1 : Xt(n).position === "fixed" || Ju(n, t);
8882
+ return n === t || !Qt(n) || Kr(n) ? !1 : Xt(n).position === "fixed" || Ju(n, t);
8874
8883
  }
8875
8884
  function Fv(e, t) {
8876
8885
  const n = t.get(e);
@@ -8879,7 +8888,7 @@ function Fv(e, t) {
8879
8888
  let r = ci(e, [], !1).filter((a) => Qt(a) && Wr(a) !== "body"), o = null;
8880
8889
  const i = Xt(e).position === "fixed";
8881
8890
  let s = i ? $n(e) : e;
8882
- for (; Qt(s) && !Vr(s); ) {
8891
+ for (; Qt(s) && !Kr(s); ) {
8883
8892
  const a = Xt(s), c = ca(s);
8884
8893
  !c && a.position === "fixed" && (o = null), (i ? !c && !o : !c && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || wi(s) && !c && Ju(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = $n(s);
8885
8894
  }
@@ -8919,7 +8928,7 @@ function Lv(e, t, n) {
8919
8928
  scrollLeft: 0,
8920
8929
  scrollTop: 0
8921
8930
  };
8922
- const c = Kn(0);
8931
+ const c = Vn(0);
8923
8932
  if (r || !r && !i)
8924
8933
  if ((Wr(t) !== "body" || wi(o)) && (a = Oo(t)), r) {
8925
8934
  const p = fr(t, !0, i, t);
@@ -8956,7 +8965,7 @@ function zu(e, t) {
8956
8965
  return n;
8957
8966
  if (!an(e)) {
8958
8967
  let o = $n(e);
8959
- for (; o && !Vr(o); ) {
8968
+ for (; o && !Kr(o); ) {
8960
8969
  if (Qt(o) && !Wo(o))
8961
8970
  return o;
8962
8971
  o = $n(o);
@@ -8966,9 +8975,9 @@ function zu(e, t) {
8966
8975
  let r = bc(e, t);
8967
8976
  for (; r && Ev(r) && Wo(r); )
8968
8977
  r = bc(r, t);
8969
- return r && Vr(r) && Wo(r) && !ca(r) ? n : r || Nv(e) || n;
8978
+ return r && Kr(r) && Wo(r) && !ca(r) ? n : r || Nv(e) || n;
8970
8979
  }
8971
- const Vv = async function(e) {
8980
+ const Kv = async function(e) {
8972
8981
  const t = this.getOffsetParent || zu, n = this.getDimensions, r = await n(e.floating);
8973
8982
  return {
8974
8983
  reference: Lv(e.reference, await t(e.floating), e.strategy),
@@ -8980,7 +8989,7 @@ const Vv = async function(e) {
8980
8989
  }
8981
8990
  };
8982
8991
  };
8983
- function Kv(e) {
8992
+ function Vv(e) {
8984
8993
  return Xt(e).direction === "rtl";
8985
8994
  }
8986
8995
  const $v = {
@@ -8988,12 +8997,12 @@ const $v = {
8988
8997
  getDocumentElement: cn,
8989
8998
  getClippingRect: Mv,
8990
8999
  getOffsetParent: zu,
8991
- getElementRects: Vv,
9000
+ getElementRects: Kv,
8992
9001
  getClientRects: xv,
8993
9002
  getDimensions: kv,
8994
9003
  getScale: vr,
8995
9004
  isElement: Qt,
8996
- isRTL: Kv
9005
+ isRTL: Vv
8997
9006
  };
8998
9007
  function qv(e, t) {
8999
9008
  let n = null, r;
@@ -9160,12 +9169,12 @@ const Ec = async ({ elementReference: e = null, tooltipReference: t = null, tool
9160
9169
  }, setActiveAnchor: () => {
9161
9170
  } }, Zv = Lt({ getTooltipData: () => Yv });
9162
9171
  function Gu(e = Xv) {
9163
- return Vt(Zv).getTooltipData(e);
9172
+ return Kt(Zv).getTooltipData(e);
9164
9173
  }
9165
9174
  var mr = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, jo = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
9166
- const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o = "dark", anchorId: i, anchorSelect: s, place: a = "top", offset: c = 10, events: l = ["hover"], openOnClick: u = !1, positionStrategy: d = "absolute", middlewares: m, wrapper: p, delayShow: g = 0, delayHide: y = 0, float: f = !1, hidden: b = !1, noArrow: v = !1, clickable: _ = !1, closeOnEsc: O = !1, closeOnScroll: I = !1, closeOnResize: S = !1, openEvents: R, closeEvents: N, globalCloseEvents: D, imperativeModeOnly: q, style: z, position: J, afterShow: re, afterHide: W, disableTooltip: de, content: ie, contentWrapperRef: X, isOpen: me, defaultIsOpen: be = !1, setIsOpen: T, activeAnchor: M, setActiveAnchor: K, border: L, opacity: k, arrowColor: P, role: ee = "tooltip" }) => {
9175
+ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o = "dark", anchorId: i, anchorSelect: s, place: a = "top", offset: c = 10, events: l = ["hover"], openOnClick: u = !1, positionStrategy: d = "absolute", middlewares: m, wrapper: p, delayShow: g = 0, delayHide: y = 0, float: f = !1, hidden: b = !1, noArrow: v = !1, clickable: _ = !1, closeOnEsc: O = !1, closeOnScroll: I = !1, closeOnResize: S = !1, openEvents: R, closeEvents: N, globalCloseEvents: D, imperativeModeOnly: q, style: z, position: J, afterShow: re, afterHide: B, disableTooltip: de, content: ie, contentWrapperRef: X, isOpen: me, defaultIsOpen: be = !1, setIsOpen: T, activeAnchor: M, setActiveAnchor: V, border: L, opacity: k, arrowColor: P, role: ee = "tooltip" }) => {
9167
9176
  var te;
9168
- const U = Ae(null), ne = Ae(null), G = Ae(null), fe = Ae(null), F = Ae(null), [_e, H] = se({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [Re, He] = se(!1), [tt, je] = se(!1), [Oe, Kt] = se(null), nt = Ae(!1), _t = Ae(null), { anchorRefs: $t, setActiveAnchor: qt } = Gu(t), rt = Ae(!1), [Ye, Je] = se([]), ke = Ae(!1), Ut = u || l.includes("click"), lt = Ut || (R == null ? void 0 : R.click) || (R == null ? void 0 : R.dblclick) || (R == null ? void 0 : R.mousedown), ln = R ? { ...R } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
9177
+ const U = Ae(null), ne = Ae(null), G = Ae(null), fe = Ae(null), F = Ae(null), [_e, H] = se({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [Re, He] = se(!1), [tt, je] = se(!1), [Oe, Vt] = se(null), nt = Ae(!1), _t = Ae(null), { anchorRefs: $t, setActiveAnchor: qt } = Gu(t), rt = Ae(!1), [Ye, Je] = se([]), ke = Ae(!1), Ut = u || l.includes("click"), lt = Ut || (R == null ? void 0 : R.click) || (R == null ? void 0 : R.dblclick) || (R == null ? void 0 : R.mousedown), ln = R ? { ...R } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
9169
9178
  !R && Ut && Object.assign(ln, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
9170
9179
  const bn = N ? { ...N } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
9171
9180
  !N && Ut && Object.assign(bn, { mouseleave: !1, blur: !1, mouseout: !1 });
@@ -9197,7 +9206,7 @@ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
9197
9206
  return Number(Ue) * (Ge === "ms" ? 1 : 1e3);
9198
9207
  })(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
9199
9208
  F.current = setTimeout(() => {
9200
- je(!1), Kt(null), W == null || W();
9209
+ je(!1), Vt(null), B == null || B();
9201
9210
  }, j + 25);
9202
9211
  }
9203
9212
  }, [Re]);
@@ -9215,8 +9224,8 @@ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
9215
9224
  var ce;
9216
9225
  if (!j) return;
9217
9226
  const pe = (ce = j.currentTarget) !== null && ce !== void 0 ? ce : j.target;
9218
- if (!(pe != null && pe.isConnected)) return K(null), void qt({ current: null });
9219
- g ? _n() : Le(!0), K(pe), qt({ current: pe }), Ft(fe);
9227
+ if (!(pe != null && pe.isConnected)) return V(null), void qt({ current: null });
9228
+ g ? _n() : Le(!0), V(pe), qt({ current: pe }), Ft(fe);
9220
9229
  }, yt = () => {
9221
9230
  _ ? dn(y || 100) : y ? dn() : Le(!1), Ft(G);
9222
9231
  }, pn = ({ x: j, y: ce }) => {
@@ -9308,7 +9317,7 @@ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
9308
9317
  }
9309
9318
  wt.some((Pe) => {
9310
9319
  var jn;
9311
- return !!(!((jn = Pe == null ? void 0 : Pe.contains) === null || jn === void 0) && jn.call(Pe, M)) && (je(!1), Le(!1), K(null), Ft(G), Ft(fe), !0);
9320
+ return !!(!((jn = Pe == null ? void 0 : Pe.contains) === null || jn === void 0) && jn.call(Pe, M)) && (je(!1), Le(!1), V(null), Ft(G), Ft(fe), !0);
9312
9321
  });
9313
9322
  }
9314
9323
  if (pe) try {
@@ -9335,7 +9344,7 @@ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
9335
9344
  }, [ie, X == null ? void 0 : X.current]), Z(() => {
9336
9345
  var j;
9337
9346
  const ce = document.querySelector(`[id='${i}']`), pe = [...Ye, ce];
9338
- M && pe.includes(M) || K((j = Ye[0]) !== null && j !== void 0 ? j : ce);
9347
+ M && pe.includes(M) || V((j = Ye[0]) !== null && j !== void 0 ? j : ce);
9339
9348
  }, [i, Ye, M]), Z(() => (be && Le(!0), () => {
9340
9349
  Ft(G), Ft(fe);
9341
9350
  }), []), Z(() => {
@@ -9357,14 +9366,14 @@ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
9357
9366
  } catch {
9358
9367
  return void console.warn(`[react-tooltip] "${j.anchorSelect}" is not a valid CSS selector`);
9359
9368
  }
9360
- Kt(j ?? null), j != null && j.delay ? _n(j.delay) : Le(!0);
9369
+ Vt(j ?? null), j != null && j.delay ? _n(j.delay) : Le(!0);
9361
9370
  }, close: (j) => {
9362
9371
  j != null && j.delay ? dn(j.delay) : Le(!1);
9363
9372
  }, activeAnchor: M, place: _e.place, isOpen: !!(tt && !b && ze && fn) })), tt && !b && ze ? Be.createElement(p, { id: t, role: ee, className: Nt("react-tooltip", mr.tooltip, jo.tooltip, jo[o], n, `react-tooltip__place-${_e.place}`, mr[fn ? "show" : "closing"], fn ? "react-tooltip__show" : "react-tooltip__closing", d === "fixed" && mr.fixed, _ && mr.clickable), onTransitionEnd: (j) => {
9364
- Ft(F), Re || j.propertyName !== "opacity" || (je(!1), Kt(null), W == null || W());
9373
+ Ft(F), Re || j.propertyName !== "opacity" || (je(!1), Vt(null), B == null || B());
9365
9374
  }, style: { ...z, ..._e.tooltipStyles, opacity: k !== void 0 && fn ? k : void 0 }, ref: U }, ze, Be.createElement(p, { className: Nt("react-tooltip-arrow", mr.arrow, jo.arrow, r, v && mr.noArrow), style: { ..._e.tooltipArrowStyles, background: P ? `linear-gradient(to right bottom, transparent 50%, ${P} 50%)` : void 0 }, ref: ne })) : null;
9366
- }, tw = ({ content: e }) => Be.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), nw = Be.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: r, html: o, render: i, className: s, classNameArrow: a, variant: c = "dark", place: l = "top", offset: u = 10, wrapper: d = "div", children: m = null, events: p = ["hover"], openOnClick: g = !1, positionStrategy: y = "absolute", middlewares: f, delayShow: b = 0, delayHide: v = 0, float: _ = !1, hidden: O = !1, noArrow: I = !1, clickable: S = !1, closeOnEsc: R = !1, closeOnScroll: N = !1, closeOnResize: D = !1, openEvents: q, closeEvents: z, globalCloseEvents: J, imperativeModeOnly: re = !1, style: W, position: de, isOpen: ie, defaultIsOpen: X = !1, disableStyleInjection: me = !1, border: be, opacity: T, arrowColor: M, setIsOpen: K, afterShow: L, afterHide: k, disableTooltip: P, role: ee = "tooltip" }, te) => {
9367
- const [U, ne] = se(r), [G, fe] = se(o), [F, _e] = se(l), [H, Re] = se(c), [He, tt] = se(u), [je, Oe] = se(b), [Kt, nt] = se(v), [_t, $t] = se(_), [qt, rt] = se(O), [Ye, Je] = se(d), [ke, Ut] = se(p), [lt, ln] = se(y), [bn, Ot] = se(null), [Le, un] = se(null), _n = Ae(me), { anchorRefs: dn, activeAnchor: Bn } = Gu(e), yt = (Me) => Me == null ? void 0 : Me.getAttributeNames().reduce((ut, oe) => {
9375
+ }, tw = ({ content: e }) => Be.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), nw = Be.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: r, html: o, render: i, className: s, classNameArrow: a, variant: c = "dark", place: l = "top", offset: u = 10, wrapper: d = "div", children: m = null, events: p = ["hover"], openOnClick: g = !1, positionStrategy: y = "absolute", middlewares: f, delayShow: b = 0, delayHide: v = 0, float: _ = !1, hidden: O = !1, noArrow: I = !1, clickable: S = !1, closeOnEsc: R = !1, closeOnScroll: N = !1, closeOnResize: D = !1, openEvents: q, closeEvents: z, globalCloseEvents: J, imperativeModeOnly: re = !1, style: B, position: de, isOpen: ie, defaultIsOpen: X = !1, disableStyleInjection: me = !1, border: be, opacity: T, arrowColor: M, setIsOpen: V, afterShow: L, afterHide: k, disableTooltip: P, role: ee = "tooltip" }, te) => {
9376
+ const [U, ne] = se(r), [G, fe] = se(o), [F, _e] = se(l), [H, Re] = se(c), [He, tt] = se(u), [je, Oe] = se(b), [Vt, nt] = se(v), [_t, $t] = se(_), [qt, rt] = se(O), [Ye, Je] = se(d), [ke, Ut] = se(p), [lt, ln] = se(y), [bn, Ot] = se(null), [Le, un] = se(null), _n = Ae(me), { anchorRefs: dn, activeAnchor: Bn } = Gu(e), yt = (Me) => Me == null ? void 0 : Me.getAttributeNames().reduce((ut, oe) => {
9368
9377
  var ye;
9369
9378
  return oe.startsWith("data-tooltip-") && (ut[oe.replace(/^data-tooltip-/, "")] = (ye = Me == null ? void 0 : Me.getAttribute(oe)) !== null && ye !== void 0 ? ye : null), ut;
9370
9379
  }, {}), pn = (Me) => {
@@ -9458,7 +9467,7 @@ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
9458
9467
  fn.disconnect();
9459
9468
  };
9460
9469
  }, [dn, Bn, Le, t, n]), Z(() => {
9461
- W != null && W.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), be && !Nc("border", `${be}`) && console.warn(`[react-tooltip] "${be}" is not a valid \`border\`.`), W != null && W.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), T && !Nc("opacity", `${T}`) && console.warn(`[react-tooltip] "${T}" is not a valid \`opacity\`.`);
9470
+ B != null && B.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), be && !Nc("border", `${be}`) && console.warn(`[react-tooltip] "${be}" is not a valid \`border\`.`), B != null && B.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), T && !Nc("opacity", `${T}`) && console.warn(`[react-tooltip] "${T}" is not a valid \`opacity\`.`);
9462
9471
  }, []);
9463
9472
  let On = m;
9464
9473
  const Wn = Ae(null);
@@ -9467,7 +9476,7 @@ const ew = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
9467
9476
  On = Me ? Be.createElement("div", { ref: Wn, className: "react-tooltip-content-wrapper" }, Me) : null;
9468
9477
  } else U && (On = U);
9469
9478
  G && (On = Be.createElement(tw, { content: G }));
9470
- const Cn = { forwardRef: te, id: e, anchorId: t, anchorSelect: n, className: Nt(s, bn), classNameArrow: a, content: On, contentWrapperRef: Wn, place: F, variant: H, offset: He, wrapper: Ye, events: ke, openOnClick: g, positionStrategy: lt, middlewares: f, delayShow: je, delayHide: Kt, float: _t, hidden: qt, noArrow: I, clickable: S, closeOnEsc: R, closeOnScroll: N, closeOnResize: D, openEvents: q, closeEvents: z, globalCloseEvents: J, imperativeModeOnly: re, style: W, position: de, isOpen: ie, defaultIsOpen: X, border: be, opacity: T, arrowColor: M, setIsOpen: K, afterShow: L, afterHide: k, disableTooltip: P, activeAnchor: Le, setActiveAnchor: (Me) => un(Me), role: ee };
9479
+ const Cn = { forwardRef: te, id: e, anchorId: t, anchorSelect: n, className: Nt(s, bn), classNameArrow: a, content: On, contentWrapperRef: Wn, place: F, variant: H, offset: He, wrapper: Ye, events: ke, openOnClick: g, positionStrategy: lt, middlewares: f, delayShow: je, delayHide: Vt, float: _t, hidden: qt, noArrow: I, clickable: S, closeOnEsc: R, closeOnScroll: N, closeOnResize: D, openEvents: q, closeEvents: z, globalCloseEvents: J, imperativeModeOnly: re, style: B, position: de, isOpen: ie, defaultIsOpen: X, border: be, opacity: T, arrowColor: M, setIsOpen: V, afterShow: L, afterHide: k, disableTooltip: P, activeAnchor: Le, setActiveAnchor: (Me) => un(Me), role: ee };
9471
9480
  return Be.createElement(ew, { ...Cn });
9472
9481
  });
9473
9482
  typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (e) => {
@@ -9475,8 +9484,8 @@ typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (e
9475
9484
  .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`, type: "base" });
9476
9485
  });
9477
9486
  function rw() {
9478
- return /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", children: [
9479
- /* @__PURE__ */ B("g", { clipPath: "url(#clip0_2896_16290)", children: [
9487
+ return /* @__PURE__ */ W("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", children: [
9488
+ /* @__PURE__ */ W("g", { clipPath: "url(#clip0_2896_16290)", children: [
9480
9489
  /* @__PURE__ */ h("path", { d: "M8.00032 11.167L8.00032 7.83366M8.00032 1.83366C4.33366 1.83366 1.33366 4.83366 1.33366 8.50033C1.33366 12.167 4.33366 15.167 8.00033 15.167C11.667 15.167 14.667 12.167 14.667 8.50033C14.667 4.83366 11.667 1.83366 8.00032 1.83366Z", stroke: "#6B7280", strokeLinecap: "round", strokeLinejoin: "round" }),
9481
9490
  /* @__PURE__ */ h("path", { d: "M8.00293 5.83301L7.99768 5.83301", stroke: "#6B7280", strokeLinecap: "round", strokeLinejoin: "round" })
9482
9491
  ] }),
@@ -9484,7 +9493,7 @@ function rw() {
9484
9493
  ] });
9485
9494
  }
9486
9495
  function iw({ id: e, tooltipText: t }) {
9487
- return /* @__PURE__ */ B(Xe, { children: [
9496
+ return /* @__PURE__ */ W(Xe, { children: [
9488
9497
  /* @__PURE__ */ h("span", { "data-tooltip-id": e, style: { maxWidth: "20rem" }, children: rw() }),
9489
9498
  /* @__PURE__ */ h(nw, { id: e, place: "top", content: t, style: { maxWidth: "30rem" } })
9490
9499
  ] });
@@ -9526,8 +9535,8 @@ function da({ field: e, onSelectChange: t, allFields: n }) {
9526
9535
  // clear value; may reset to default
9527
9536
  }]);
9528
9537
  }, [e.mapToName, o, i]);
9529
- return /* @__PURE__ */ B("div", { style: { display: "flex", flexDirection: "column" }, children: [
9530
- /* @__PURE__ */ B(
9538
+ return /* @__PURE__ */ W("div", { style: { display: "flex", flexDirection: "column" }, children: [
9539
+ /* @__PURE__ */ W(
9531
9540
  "div",
9532
9541
  {
9533
9542
  style: {
@@ -9542,7 +9551,7 @@ function da({ field: e, onSelectChange: t, allFields: n }) {
9542
9551
  ]
9543
9552
  }
9544
9553
  ),
9545
- /* @__PURE__ */ B("div", { style: { display: "flex", flexDirection: "row", gap: ".25rem" }, children: [
9554
+ /* @__PURE__ */ W("div", { style: { display: "flex", flexDirection: "row", gap: ".25rem" }, children: [
9546
9555
  d,
9547
9556
  /* @__PURE__ */ h(ht, { type: "button", variant: "ghost", onClick: m, children: "clear" })
9548
9557
  ] })
@@ -9566,7 +9575,7 @@ function Co({
9566
9575
  errorMessage: i,
9567
9576
  children: s
9568
9577
  }) {
9569
- return /* @__PURE__ */ B(
9578
+ return /* @__PURE__ */ W(
9570
9579
  "div",
9571
9580
  {
9572
9581
  className: Nt(Qn.formControl, {
@@ -9607,7 +9616,7 @@ function Eo({ className: e, style: t }) {
9607
9616
  );
9608
9617
  }
9609
9618
  function jr({ string: e }) {
9610
- return /* @__PURE__ */ B(
9619
+ return /* @__PURE__ */ W(
9611
9620
  "div",
9612
9621
  {
9613
9622
  style: {
@@ -9666,9 +9675,9 @@ function hw() {
9666
9675
  )
9667
9676
  );
9668
9677
  }, [t, c]), u = c.length > 0;
9669
- return l.length > 0 || u ? /* @__PURE__ */ B(Xe, { children: [
9678
+ return l.length > 0 || u ? /* @__PURE__ */ W(Xe, { children: [
9670
9679
  /* @__PURE__ */ h(jr, { string: "Map the following optional fields" }),
9671
- /* @__PURE__ */ B("div", { style: { display: "flex", gap: "1rem", flexDirection: "column" }, children: [
9680
+ /* @__PURE__ */ W("div", { style: { display: "flex", gap: "1rem", flexDirection: "column" }, children: [
9672
9681
  l == null ? void 0 : l.map((p) => /* @__PURE__ */ h(Co, { id: p.mapToName, children: /* @__PURE__ */ h(
9673
9682
  da,
9674
9683
  {
@@ -9702,7 +9711,7 @@ function mw() {
9702
9711
  },
9703
9712
  [t]
9704
9713
  );
9705
- return s != null && s.length ? /* @__PURE__ */ B(Xe, { children: [
9714
+ return s != null && s.length ? /* @__PURE__ */ W(Xe, { children: [
9706
9715
  /* @__PURE__ */ h(jr, { string: "Map the following fields" }),
9707
9716
  /* @__PURE__ */ h("div", { style: { display: "flex", gap: "1rem", flexDirection: "column" }, children: s.map((a) => {
9708
9717
  var c;
@@ -9736,10 +9745,10 @@ function yw({ children: e, style: t }) {
9736
9745
  }
9737
9746
  function vw() {
9738
9747
  var u, d, m;
9739
- const { project: e } = Ke(), { hydratedRevision: t } = In(), { selectedObjectName: n } = xt(), { provider: r } = ct(), o = e == null ? void 0 : e.appName, i = Un(r), s = (m = (d = (u = t == null ? void 0 : t.content) == null ? void 0 : u.read) == null ? void 0 : d.objects) == null ? void 0 : m.find(
9748
+ const { project: e } = qe(), { hydratedRevision: t } = In(), { selectedObjectName: n } = xt(), { provider: r } = ct(), o = e == null ? void 0 : e.appName, i = Un(r), s = (m = (d = (u = t == null ? void 0 : t.content) == null ? void 0 : u.read) == null ? void 0 : d.objects) == null ? void 0 : m.find(
9740
9749
  (p) => p.objectName === n
9741
9750
  ), a = (s == null ? void 0 : s.displayName) || n && ii(n), c = s == null ? void 0 : s.mapToName, l = (s == null ? void 0 : s.mapToDisplayName) || c && ii(c);
9742
- return l && o && i ? /* @__PURE__ */ h(yw, { style: { marginTop: "1rem" }, children: /* @__PURE__ */ B("p", { style: { margin: "1rem 0" }, children: [
9751
+ return l && o && i ? /* @__PURE__ */ h(yw, { style: { marginTop: "1rem" }, children: /* @__PURE__ */ W("p", { style: { margin: "1rem 0" }, children: [
9743
9752
  /* @__PURE__ */ h("b", { children: l }),
9744
9753
  " in ",
9745
9754
  o,
@@ -10047,7 +10056,7 @@ var xw = [
10047
10056
  const I = () => v(_.current);
10048
10057
  return O.addEventListener("reset", I), () => O.removeEventListener("reset", I);
10049
10058
  }
10050
- }, [m, v]), /* @__PURE__ */ B(Pw, { scope: n, state: b, disabled: a, children: [
10059
+ }, [m, v]), /* @__PURE__ */ W(Pw, { scope: n, state: b, disabled: a, children: [
10051
10060
  /* @__PURE__ */ h(
10052
10061
  Hn.button,
10053
10062
  {
@@ -10181,9 +10190,9 @@ var Mw = ["color"], id = /* @__PURE__ */ Jc(function(e, t) {
10181
10190
  clipRule: "evenodd"
10182
10191
  }));
10183
10192
  });
10184
- const Vw = "_checkboxGroupContainer_1ya1t_1", Kw = "_stack_1ya1t_6", $w = "_selectAllContainer_1ya1t_11", qw = "_fieldContainer_1ya1t_18", Uw = "_checkbox_1ya1t_1", Kr = {
10185
- checkboxGroupContainer: Vw,
10186
- stack: Kw,
10193
+ const Kw = "_checkboxGroupContainer_1ya1t_1", Vw = "_stack_1ya1t_6", $w = "_selectAllContainer_1ya1t_11", qw = "_fieldContainer_1ya1t_18", Uw = "_checkbox_1ya1t_1", Vr = {
10194
+ checkboxGroupContainer: Kw,
10195
+ stack: Vw,
10187
10196
  selectAllContainer: $w,
10188
10197
  fieldContainer: qw,
10189
10198
  checkbox: Uw
@@ -10194,11 +10203,11 @@ function od({
10194
10203
  label: n,
10195
10204
  onCheckedChange: r
10196
10205
  }) {
10197
- return /* @__PURE__ */ B("div", { className: Kr.fieldContainer, children: [
10206
+ return /* @__PURE__ */ W("div", { className: Vr.fieldContainer, children: [
10198
10207
  /* @__PURE__ */ h(
10199
10208
  td,
10200
10209
  {
10201
- className: Kr.checkbox,
10210
+ className: Vr.checkbox,
10202
10211
  id: e,
10203
10212
  onCheckedChange: r,
10204
10213
  checked: t,
@@ -10215,14 +10224,14 @@ function sd({
10215
10224
  onCheckedChange: r,
10216
10225
  isIndeterminate: o
10217
10226
  }) {
10218
- return /* @__PURE__ */ B("div", { className: Kr.selectAllContainer, children: [
10227
+ return /* @__PURE__ */ W("div", { className: Vr.selectAllContainer, children: [
10219
10228
  /* @__PURE__ */ h(
10220
10229
  td,
10221
10230
  {
10222
- className: Kr.checkbox,
10231
+ className: Vr.checkbox,
10223
10232
  id: e,
10224
10233
  onCheckedChange: r,
10225
- children: /* @__PURE__ */ B(nd, { children: [
10234
+ children: /* @__PURE__ */ W(nd, { children: [
10226
10235
  o && /* @__PURE__ */ h(Lw, {}),
10227
10236
  t === !0 && /* @__PURE__ */ h(id, {})
10228
10237
  ] })
@@ -10232,10 +10241,10 @@ function sd({
10232
10241
  ] });
10233
10242
  }
10234
10243
  function ad({ children: e }) {
10235
- return /* @__PURE__ */ h("div", { className: Kr.checkboxGroupContainer, children: e });
10244
+ return /* @__PURE__ */ h("div", { className: Vr.checkboxGroupContainer, children: e });
10236
10245
  }
10237
10246
  function cd({ children: e }) {
10238
- return /* @__PURE__ */ h("div", { className: Kr.stack, children: e });
10247
+ return /* @__PURE__ */ h("div", { className: Vr.stack, children: e });
10239
10248
  }
10240
10249
  function Hw(e, t, n) {
10241
10250
  var o, i;
@@ -10263,12 +10272,12 @@ function Bw() {
10263
10272
  p !== "indeterminate" && r && t && Pc(r, n, g, p);
10264
10273
  }, s = (m = t == null ? void 0 : t.read) == null ? void 0 : m.optionalFields, a = (p) => {
10265
10274
  r && s && s.forEach((g) => {
10266
- Vn(g) || Pc(r, n, g.fieldName, p);
10275
+ Kn(g) || Pc(r, n, g.fieldName, p);
10267
10276
  });
10268
10277
  }, c = !!(s && s.length > 0), l = Object.keys(o || {}).length === (s == null ? void 0 : s.length), u = !l && Object.keys(o || {}).length > 0;
10269
- return c && /* @__PURE__ */ B(Xe, { children: [
10278
+ return c && /* @__PURE__ */ W(Xe, { children: [
10270
10279
  /* @__PURE__ */ h(jr, { string: `${e} reads the following optional fields` }),
10271
- /* @__PURE__ */ B(ad, { children: [
10280
+ /* @__PURE__ */ W(ad, { children: [
10272
10281
  ((s == null ? void 0 : s.length) || 0) >= 2 && /* @__PURE__ */ h(
10273
10282
  sd,
10274
10283
  {
@@ -10279,7 +10288,7 @@ function Bw() {
10279
10288
  isIndeterminate: u
10280
10289
  }
10281
10290
  ),
10282
- /* @__PURE__ */ h(cd, { children: s.map((p) => Vn(p) ? null : /* @__PURE__ */ h(
10291
+ /* @__PURE__ */ h(cd, { children: s.map((p) => Kn(p) ? null : /* @__PURE__ */ h(
10283
10292
  od,
10284
10293
  {
10285
10294
  id: p.fieldName,
@@ -10317,8 +10326,8 @@ function Jw({ children: e, style: t, ...n }) {
10317
10326
  }
10318
10327
  function zw() {
10319
10328
  var r, o, i;
10320
- const { configureState: e, selectedObjectName: t } = xt(), { appName: n } = Ke();
10321
- return /* @__PURE__ */ B(Xe, { children: [
10329
+ const { configureState: e, selectedObjectName: t } = xt(), { appName: n } = qe();
10330
+ return /* @__PURE__ */ W(Xe, { children: [
10322
10331
  /* @__PURE__ */ h(jr, { string: `${n} reads the following ${t} fields` }),
10323
10332
  /* @__PURE__ */ h(
10324
10333
  "div",
@@ -10329,7 +10338,7 @@ function zw() {
10329
10338
  marginBottom: ".5rem",
10330
10339
  flexWrap: "wrap"
10331
10340
  },
10332
- children: (o = (r = e == null ? void 0 : e.read) == null ? void 0 : r.requiredFields) != null && o.length ? (i = e.read) == null ? void 0 : i.requiredFields.map((s) => Vn(s) ? null : /* @__PURE__ */ h(Jw, { children: s.displayName }, s.fieldName)) : "There are no required fields."
10341
+ children: (o = (r = e == null ? void 0 : e.read) == null ? void 0 : r.requiredFields) != null && o.length ? (i = e.read) == null ? void 0 : i.requiredFields.map((s) => Kn(s) ? null : /* @__PURE__ */ h(Jw, { children: s.displayName }, s.fieldName)) : "There are no required fields."
10333
10342
  }
10334
10343
  )
10335
10344
  ] });
@@ -10352,7 +10361,7 @@ function Xw(e, t, n) {
10352
10361
  });
10353
10362
  }
10354
10363
  function Yw({ string: e, fieldName: t }) {
10355
- return /* @__PURE__ */ B(
10364
+ return /* @__PURE__ */ W(
10356
10365
  "div",
10357
10366
  {
10358
10367
  style: {
@@ -10362,7 +10371,7 @@ function Yw({ string: e, fieldName: t }) {
10362
10371
  paddingBottom: ".5rem"
10363
10372
  },
10364
10373
  children: [
10365
- /* @__PURE__ */ B(
10374
+ /* @__PURE__ */ W(
10366
10375
  "h3",
10367
10376
  {
10368
10377
  style: {
@@ -10483,7 +10492,7 @@ function Zw({
10483
10492
  ),
10484
10493
  [g, c, y, f, o]
10485
10494
  );
10486
- return /* @__PURE__ */ B(
10495
+ return /* @__PURE__ */ W(
10487
10496
  "div",
10488
10497
  {
10489
10498
  style: {
@@ -10550,12 +10559,12 @@ function eI() {
10550
10559
  e,
10551
10560
  l
10552
10561
  ]), d != null && d.length ? /* @__PURE__ */ h(Xe, { children: d.map((f) => {
10553
- var b, v, _, O, I, S, R, N, D, q, z, J, re, W, de, ie;
10562
+ var b, v, _, O, I, S, R, N, D, q, z, J, re, B, de, ie;
10554
10563
  return f.fieldName ? ["singleSelect", "multiSelect"].includes(
10555
10564
  (_ = (v = (b = n == null ? void 0 : n.read) == null ? void 0 : b.allFieldsMetadata) == null ? void 0 : v[f.fieldName]) == null ? void 0 : _.valueType
10556
10565
  ) ? (S = (I = (O = n == null ? void 0 : n.read) == null ? void 0 : O.allFieldsMetadata) == null ? void 0 : I[f.fieldName]) != null && S.values ? (D = (N = (R = n == null ? void 0 : n.read) == null ? void 0 : R.allFieldsMetadata) == null ? void 0 : N[f.fieldName]) != null && D.values && Object.keys((f == null ? void 0 : f.mappedValues) || []).length === Object.keys(
10557
10566
  ((J = (z = (q = n == null ? void 0 : n.read) == null ? void 0 : q.allFieldsMetadata) == null ? void 0 : z[f.fieldName]) == null ? void 0 : J.values) || []
10558
- ).length ? /* @__PURE__ */ B(Xe, { children: [
10567
+ ).length ? /* @__PURE__ */ W(Xe, { children: [
10559
10568
  /* @__PURE__ */ h(
10560
10569
  Yw,
10561
10570
  {
@@ -10576,16 +10585,16 @@ function eI() {
10576
10585
  {
10577
10586
  id: f.mapToName || f.fieldName,
10578
10587
  children: (ie = f == null ? void 0 : f.mappedValues) == null ? void 0 : ie.map((X) => {
10579
- var T, M, K;
10588
+ var T, M, V;
10580
10589
  const me = s(
10581
10590
  Ie.VALUE_MAPPING,
10582
10591
  f.fieldName
10583
10592
  ), be = Array.isArray(me) && me.includes(X.mappedValue);
10584
- return /* @__PURE__ */ B(Xe, { children: [
10593
+ return /* @__PURE__ */ W(Xe, { children: [
10585
10594
  /* @__PURE__ */ h(
10586
10595
  Zw,
10587
10596
  {
10588
- allValueOptions: ((K = (M = (T = n == null ? void 0 : n.read) == null ? void 0 : T.allFieldsMetadata) == null ? void 0 : M[f.fieldName]) == null ? void 0 : K.values) || [],
10597
+ allValueOptions: ((V = (M = (T = n == null ? void 0 : n.read) == null ? void 0 : T.allFieldsMetadata) == null ? void 0 : M[f.fieldName]) == null ? void 0 : V.values) || [],
10589
10598
  mappedValue: X,
10590
10599
  onSelectChange: m,
10591
10600
  fieldName: (f == null ? void 0 : f.fieldName) || "",
@@ -10615,12 +10624,12 @@ function eI() {
10615
10624
  ] }) : (console.error(
10616
10625
  "field values and the values to be mapped are not of the same length",
10617
10626
  f,
10618
- (de = (W = (re = n == null ? void 0 : n.read) == null ? void 0 : re.allFieldsMetadata) == null ? void 0 : W[f.fieldName]) == null ? void 0 : de.values
10627
+ (de = (B = (re = n == null ? void 0 : n.read) == null ? void 0 : re.allFieldsMetadata) == null ? void 0 : B[f.fieldName]) == null ? void 0 : de.values
10619
10628
  ), null) : (console.error("field has no values array", f), null) : (console.error("fieldName is not a singleSelect or multiSelect", f), null) : (console.error("fieldName is undefined", f), null);
10620
10629
  }) }) : null;
10621
10630
  }
10622
10631
  function tI() {
10623
- return ny(), /* @__PURE__ */ B(Xe, { children: [
10632
+ return ny(), /* @__PURE__ */ W(Xe, { children: [
10624
10633
  /* @__PURE__ */ h(vw, {}),
10625
10634
  /* @__PURE__ */ h(zw, {}),
10626
10635
  /* @__PURE__ */ h(mw, {}),
@@ -10686,7 +10695,7 @@ function oI({ objectName: e, onAddDefaultValue: t }) {
10686
10695
  placeholder: "Please select field."
10687
10696
  }
10688
10697
  );
10689
- return /* @__PURE__ */ B("div", { style: { display: "flex", flexDirection: "row", gap: ".25rem" }, children: [
10698
+ return /* @__PURE__ */ W("div", { style: { display: "flex", flexDirection: "row", gap: ".25rem" }, children: [
10690
10699
  y,
10691
10700
  /* @__PURE__ */ h(
10692
10701
  po,
@@ -10740,7 +10749,7 @@ function cI({
10740
10749
  // consider memoizing if performance is an issue.
10741
10750
  fieldDisplayName: t ? aI(m, e, t) : m
10742
10751
  }));
10743
- return /* @__PURE__ */ B(Xe, { children: [
10752
+ return /* @__PURE__ */ W(Xe, { children: [
10744
10753
  /* @__PURE__ */ h(
10745
10754
  "div",
10746
10755
  {
@@ -10750,7 +10759,7 @@ function cI({
10750
10759
  flexDirection: "column",
10751
10760
  gap: ".5rem"
10752
10761
  },
10753
- children: u.map(({ field: m, fieldDisplayName: p, defaultValue: g }) => /* @__PURE__ */ B(
10762
+ children: u.map(({ field: m, fieldDisplayName: p, defaultValue: g }) => /* @__PURE__ */ W(
10754
10763
  "div",
10755
10764
  {
10756
10765
  style: { display: "flex", flexDirection: "row", gap: ".25rem" },
@@ -10795,7 +10804,7 @@ function uI() {
10795
10804
  const {
10796
10805
  configureState: e
10797
10806
  } = xt(), { writeObjects: t } = In(), n = (o = e == null ? void 0 : e.write) == null ? void 0 : o.selectedWriteObjects;
10798
- return !!t && /* @__PURE__ */ h(Xe, { children: t.map((i) => n != null && n[i.objectName] && lI(i.objectName, t) ? /* @__PURE__ */ B(Xe, { children: [
10807
+ return !!t && /* @__PURE__ */ h(Xe, { children: t.map((i) => n != null && n[i.objectName] && lI(i.objectName, t) ? /* @__PURE__ */ W(Xe, { children: [
10799
10808
  /* @__PURE__ */ h(jr, { string: `Defaults for ${i.displayName} ` }),
10800
10809
  /* @__PURE__ */ h(cI, { objectName: i.objectName })
10801
10810
  ] }) : null) });
@@ -10833,9 +10842,9 @@ function pI() {
10833
10842
  Fc(t, r, v.objectName, y);
10834
10843
  }));
10835
10844
  }, c = !!i, l = Object.keys(o || {}).length === ((g = (p = n == null ? void 0 : n.write) == null ? void 0 : p.writeObjects) == null ? void 0 : g.length), u = !l && Object.keys(o || {}).length > 0;
10836
- return c && /* @__PURE__ */ B(Xe, { children: [
10845
+ return c && /* @__PURE__ */ W(Xe, { children: [
10837
10846
  /* @__PURE__ */ h(jr, { string: `Allow ${e} to write to these objects` }),
10838
- /* @__PURE__ */ B(ad, { children: [
10847
+ /* @__PURE__ */ W(ad, { children: [
10839
10848
  ((i == null ? void 0 : i.length) || 0) >= 2 && /* @__PURE__ */ h(
10840
10849
  sd,
10841
10850
  {
@@ -10860,7 +10869,7 @@ function pI() {
10860
10869
  ] });
10861
10870
  }
10862
10871
  function fI() {
10863
- return /* @__PURE__ */ B(Xe, { children: [
10872
+ return /* @__PURE__ */ W(Xe, { children: [
10864
10873
  /* @__PURE__ */ h(pI, {}),
10865
10874
  /* @__PURE__ */ h(uI, {})
10866
10875
  ] });
@@ -10870,7 +10879,7 @@ function ld({
10870
10879
  buttonVariant: t = "secondary",
10871
10880
  buttonStyle: n = {}
10872
10881
  }) {
10873
- const r = Yt(), { projectId: o } = Ke(), {
10882
+ const r = Yt(), { projectId: o } = qe(), {
10874
10883
  integrationId: i,
10875
10884
  installation: s,
10876
10885
  resetInstallations: a,
@@ -10913,14 +10922,9 @@ function ld({
10913
10922
  return s != null && s.id ? y : null;
10914
10923
  }
10915
10924
  function hI() {
10916
- const { appName: e } = Ke(), { installation: t } = ct();
10917
- return /* @__PURE__ */ B("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
10918
- t != null && t.id ? /* @__PURE__ */ B("p", { children: [
10919
- "Once you uninstall this integration, all your configuration will be lost, and",
10920
- " ",
10921
- /* @__PURE__ */ h("b", { children: e }),
10922
- " may stop working."
10923
- ] }) : /* @__PURE__ */ h("p", { children: "You've successfully uninstalled the integration." }),
10925
+ const { installation: e } = ct();
10926
+ return /* @__PURE__ */ W("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
10927
+ e != null && e.id ? /* @__PURE__ */ h("p", { children: "Once you uninstall this integration, its configuration will be lost." }) : /* @__PURE__ */ h("p", { children: "You've successfully uninstalled the integration." }),
10924
10928
  /* @__PURE__ */ h(ld, { buttonText: "Yes, uninstall", buttonVariant: "danger" })
10925
10929
  ] });
10926
10930
  }
@@ -10933,8 +10937,8 @@ function ud({
10933
10937
  }) {
10934
10938
  var S, R, N, D;
10935
10939
  const { installation: i } = ct(), { hydratedRevision: s, loading: a } = In(), { configureState: c, selectedObjectName: l } = xt(), u = i == null ? void 0 : i.config, d = u && l && !!xl(u, l) || !1, m = ((S = c == null ? void 0 : c.read) == null ? void 0 : S.isOptionalFieldsModified) || ((R = c == null ? void 0 : c.read) == null ? void 0 : R.isRequiredMapFieldsModified) || ((N = c == null ? void 0 : c.read) == null ? void 0 : N.isValueMappingsModified), p = (D = c == null ? void 0 : c.write) == null ? void 0 : D.isWriteModified, b = a || n || !c || !l || !(m || p || r || l !== lr && !d), v = l === lr, _ = l === Yi;
10936
- return n ? /* @__PURE__ */ h(ri, {}) : /* @__PURE__ */ B("form", { style: { width: "34rem" }, onSubmit: e, children: [
10937
- /* @__PURE__ */ B(
10940
+ return n ? /* @__PURE__ */ h(ri, {}) : /* @__PURE__ */ W("form", { style: { width: "34rem" }, onSubmit: e, children: [
10941
+ /* @__PURE__ */ W(
10938
10942
  "div",
10939
10943
  {
10940
10944
  style: {
@@ -10949,7 +10953,7 @@ function ud({
10949
10953
  ]
10950
10954
  }
10951
10955
  ),
10952
- /* @__PURE__ */ B(
10956
+ /* @__PURE__ */ W(
10953
10957
  qn,
10954
10958
  {
10955
10959
  style: {
@@ -10977,7 +10981,7 @@ const dd = () => {
10977
10981
  setInstallation: r,
10978
10982
  onInstallSuccess: o,
10979
10983
  onUpdateSuccess: i
10980
- } = ct(), { hydratedRevision: s, loading: a } = In(), { selectedObjectName: c } = Jl(), { selectedConnection: l } = Br(), u = Yt(), { projectId: d } = Ke(), {
10984
+ } = ct(), { hydratedRevision: s, loading: a } = In(), { selectedObjectName: c } = Jl(), { selectedConnection: l } = Br(), u = Yt(), { projectId: d } = qe(), {
10981
10985
  resetBoundary: m,
10982
10986
  setErrors: p,
10983
10987
  setError: g,
@@ -11060,9 +11064,9 @@ function gI() {
11060
11064
  }, [v, f, o, i, D]);
11061
11065
  const q = () => {
11062
11066
  g();
11063
- const { requiredMapFields: re, selectedFieldMappings: W } = (v == null ? void 0 : v.read) || {}, { errorList: de } = Dl(
11067
+ const { requiredMapFields: re, selectedFieldMappings: B } = (v == null ? void 0 : v.read) || {}, { errorList: de } = Dl(
11064
11068
  re,
11065
- W,
11069
+ B,
11066
11070
  d
11067
11071
  );
11068
11072
  de.length > 0 || (s && (a != null && a.id) && c && l && e && t && n && o ? (S(!0), Tg(
@@ -11147,7 +11151,7 @@ function yI({
11147
11151
  });
11148
11152
  }
11149
11153
  const vI = (e, t, n, r, o, i) => {
11150
- const s = Vl(e), a = Kl(
11154
+ const s = Kl(e), a = Vl(
11151
11155
  e
11152
11156
  ), c = $l(e), l = {
11153
11157
  content: {
@@ -11252,8 +11256,8 @@ function _I({ installation: e, integrationObj: t }) {
11252
11256
  g || S();
11253
11257
  }, [g, S]);
11254
11258
  const R = Fe(() => {
11255
- var J, re, W;
11256
- return (W = (re = (J = r == null ? void 0 : r.content) == null ? void 0 : J.read) == null ? void 0 : re.objects) == null ? void 0 : W.find(
11259
+ var J, re, B;
11260
+ return (B = (re = (J = r == null ? void 0 : r.content) == null ? void 0 : J.read) == null ? void 0 : re.objects) == null ? void 0 : B.find(
11257
11261
  (de) => (de == null ? void 0 : de.objectName) === i
11258
11262
  );
11259
11263
  }, [r, i]), N = () => {
@@ -11361,7 +11365,7 @@ function EI({
11361
11365
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
11362
11366
  }
11363
11367
  function NI() {
11364
- return /* @__PURE__ */ B("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
11368
+ return /* @__PURE__ */ W("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
11365
11369
  /* @__PURE__ */ h("circle", { cx: "24", cy: "24", r: "24", fill: "#BBF7D0" }),
11366
11370
  /* @__PURE__ */ h(
11367
11371
  "path",
@@ -11376,7 +11380,7 @@ function NI() {
11376
11380
  ] });
11377
11381
  }
11378
11382
  function ga({ text: e, children: t }) {
11379
- return /* @__PURE__ */ h(Ur, { children: /* @__PURE__ */ B(
11383
+ return /* @__PURE__ */ h(Ur, { children: /* @__PURE__ */ W(
11380
11384
  qn,
11381
11385
  {
11382
11386
  style: {
@@ -11413,7 +11417,7 @@ const TI = (e) => {
11413
11417
  };
11414
11418
  function RI({ children: e }) {
11415
11419
  var O;
11416
- const { projectId: t } = Ke(), n = Yt(), { hydratedRevision: r, loading: o } = In(), {
11420
+ const { projectId: t } = qe(), n = Yt(), { hydratedRevision: r, loading: o } = In(), {
11417
11421
  integrationObj: i,
11418
11422
  installation: s,
11419
11423
  groupRef: a,
@@ -11459,7 +11463,7 @@ function RI({ children: e }) {
11459
11463
  ]), i ? f ? /* @__PURE__ */ h(Hr, {}) : v && b && s ? /* @__PURE__ */ h(SI, { provider: b }) : /* @__PURE__ */ h("div", { children: e }) : /* @__PURE__ */ h(on, { message: "We can't load the integration" });
11460
11464
  }
11461
11465
  function pd() {
11462
- return /* @__PURE__ */ B(
11466
+ return /* @__PURE__ */ W(
11463
11467
  "footer",
11464
11468
  {
11465
11469
  style: {
@@ -11482,7 +11486,7 @@ function pd() {
11482
11486
  target: "_blank",
11483
11487
  "aria-label": "Go to Ampersand",
11484
11488
  rel: "noreferrer noopener",
11485
- children: /* @__PURE__ */ B("picture", { children: [
11489
+ children: /* @__PURE__ */ W("picture", { children: [
11486
11490
  /* @__PURE__ */ h(
11487
11491
  "source",
11488
11492
  {
@@ -11513,7 +11517,7 @@ function pd() {
11513
11517
  );
11514
11518
  }
11515
11519
  function Ii({ children: e }) {
11516
- return /* @__PURE__ */ h(Ur, { children: /* @__PURE__ */ B(qn, { children: [
11520
+ return /* @__PURE__ */ h(Ur, { children: /* @__PURE__ */ W(qn, { children: [
11517
11521
  /* @__PURE__ */ h("div", { style: { padding: "3rem 2rem" }, children: e }),
11518
11522
  /* @__PURE__ */ h(pd, {})
11519
11523
  ] }) });
@@ -11534,7 +11538,7 @@ function ya({
11534
11538
  }) {
11535
11539
  if (!i && !r)
11536
11540
  throw new Error("Either title or providerName is required");
11537
- return /* @__PURE__ */ B(Ii, { children: [
11541
+ return /* @__PURE__ */ W(Ii, { children: [
11538
11542
  /* @__PURE__ */ h(bi, { children: i || `Set up ${r} integration` }),
11539
11543
  /* @__PURE__ */ h(_i, { error: t }),
11540
11544
  o,
@@ -11575,7 +11579,7 @@ function fd({
11575
11579
  );
11576
11580
  }
11577
11581
  function hd({ url: e, providerDisplayName: t, credentialName: n }) {
11578
- return /* @__PURE__ */ B("p", { style: { color: "var(--amp-colors-text-muted)" }, children: [
11582
+ return /* @__PURE__ */ W("p", { style: { color: "var(--amp-colors-text-muted)" }, children: [
11579
11583
  /* @__PURE__ */ h(fd, { href: e, newTab: !0, children: /* @__PURE__ */ h("span", { style: { textDecoration: "underline" }, children: "Learn more" }) }),
11580
11584
  " about where to find your ",
11581
11585
  t,
@@ -11625,7 +11629,7 @@ function kI({
11625
11629
  },
11626
11630
  error: r,
11627
11631
  isButtonDisabled: m,
11628
- children: /* @__PURE__ */ B(
11632
+ children: /* @__PURE__ */ W(
11629
11633
  "div",
11630
11634
  {
11631
11635
  style: {
@@ -11643,7 +11647,7 @@ function kI({
11643
11647
  credentialName: "API key"
11644
11648
  }
11645
11649
  ),
11646
- /* @__PURE__ */ B("div", { style: { display: "flex", gap: ".5rem" }, children: [
11650
+ /* @__PURE__ */ W("div", { style: { display: "flex", gap: ".5rem" }, children: [
11647
11651
  /* @__PURE__ */ h(
11648
11652
  wn.Input,
11649
11653
  {
@@ -11673,7 +11677,7 @@ function kI({
11673
11677
  function LI({ ...e }) {
11674
11678
  return /* @__PURE__ */ h(kI, { ...e });
11675
11679
  }
11676
- function VI({
11680
+ function KI({
11677
11681
  provider: e,
11678
11682
  providerInfo: t,
11679
11683
  consumerRef: n,
@@ -11684,7 +11688,7 @@ function VI({
11684
11688
  selectedConnection: a,
11685
11689
  setSelectedConnection: c
11686
11690
  }) {
11687
- const l = Ke(), [u, d] = se(!1), [m, p] = se(null), g = Yt();
11691
+ const l = qe(), [u, d] = se(!1), [m, p] = se(null), g = Yt();
11688
11692
  Z(() => {
11689
11693
  if (e && ft && u && m != null) {
11690
11694
  const f = {
@@ -11720,7 +11724,7 @@ function VI({
11720
11724
  };
11721
11725
  return a === null ? /* @__PURE__ */ h(LI, { provider: e, providerInfo: t, handleSubmit: y, error: null }) : s;
11722
11726
  }
11723
- function KI({
11727
+ function VI({
11724
11728
  provider: e,
11725
11729
  providerInfo: t,
11726
11730
  handleSubmit: n,
@@ -11741,7 +11745,7 @@ function KI({
11741
11745
  },
11742
11746
  error: r,
11743
11747
  isButtonDisabled: y,
11744
- children: /* @__PURE__ */ B(
11748
+ children: /* @__PURE__ */ W(
11745
11749
  "div",
11746
11750
  {
11747
11751
  style: {
@@ -11769,7 +11773,7 @@ function KI({
11769
11773
  onChange: (v) => f(v)
11770
11774
  }
11771
11775
  ),
11772
- /* @__PURE__ */ B("div", { style: { display: "flex", gap: ".5rem" }, children: [
11776
+ /* @__PURE__ */ W("div", { style: { display: "flex", gap: ".5rem" }, children: [
11773
11777
  /* @__PURE__ */ h(
11774
11778
  wn.Input,
11775
11779
  {
@@ -11797,7 +11801,7 @@ function KI({
11797
11801
  );
11798
11802
  }
11799
11803
  function $I({ ...e }) {
11800
- return /* @__PURE__ */ h(KI, { ...e });
11804
+ return /* @__PURE__ */ h(VI, { ...e });
11801
11805
  }
11802
11806
  function qI({
11803
11807
  provider: e,
@@ -11810,7 +11814,7 @@ function qI({
11810
11814
  selectedConnection: a,
11811
11815
  setSelectedConnection: c
11812
11816
  }) {
11813
- const l = Ke(), [u, d] = se(!1), [m, p] = se(null), g = Yt();
11817
+ const l = qe(), [u, d] = se(!1), [m, p] = se(null), g = Yt();
11814
11818
  Z(() => {
11815
11819
  if (e && ft && u && m != null) {
11816
11820
  const f = {
@@ -11872,7 +11876,7 @@ function HI({
11872
11876
  setSelectedConnection: a,
11873
11877
  providerName: c
11874
11878
  }) {
11875
- const l = Ke(), u = Yt(), [d, m] = se(!1);
11879
+ const l = qe(), u = Yt(), [d, m] = se(!1);
11876
11880
  Z(() => {
11877
11881
  if (e && ft && d) {
11878
11882
  const g = {
@@ -11975,7 +11979,7 @@ function YI({
11975
11979
  isButtonDisabled: n,
11976
11980
  providerName: r
11977
11981
  }) {
11978
- return /* @__PURE__ */ B(Ii, { children: [
11982
+ return /* @__PURE__ */ W(Ii, { children: [
11979
11983
  /* @__PURE__ */ h(bi, { children: `Set up ${r} integration` }),
11980
11984
  /* @__PURE__ */ h(_i, { error: t }),
11981
11985
  /* @__PURE__ */ h(
@@ -11998,7 +12002,7 @@ function ZI({
11998
12002
  groupName: o,
11999
12003
  providerName: i
12000
12004
  }) {
12001
- const { projectId: s } = Ke(), a = Yt(), [c, l] = se(null), [u, d] = se(null), m = async () => {
12005
+ const { projectId: s } = qe(), a = Yt(), [c, l] = se(null), [u, d] = se(null), m = async () => {
12002
12006
  d(null);
12003
12007
  try {
12004
12008
  const g = await md(
@@ -12035,11 +12039,11 @@ function tb({
12035
12039
  error: n,
12036
12040
  isButtonDisabled: r
12037
12041
  }) {
12038
- return /* @__PURE__ */ B(Ii, { children: [
12042
+ return /* @__PURE__ */ W(Ii, { children: [
12039
12043
  /* @__PURE__ */ h(bi, { children: "Enter your Salesforce subdomain" }),
12040
12044
  /* @__PURE__ */ h(fd, { href: eb, newTab: !0, children: "What is my Salesforce subdomain?" }),
12041
12045
  /* @__PURE__ */ h(_i, { error: n }),
12042
- /* @__PURE__ */ B("div", { style: { display: "flex", marginTop: "1em", alignItems: "center" }, children: [
12046
+ /* @__PURE__ */ W("div", { style: { display: "flex", marginTop: "1em", alignItems: "center" }, children: [
12043
12047
  /* @__PURE__ */ h(
12044
12048
  wn.Input,
12045
12049
  {
@@ -12070,8 +12074,8 @@ function nb({
12070
12074
  isButtonDisabled: r,
12071
12075
  providerName: o
12072
12076
  }) {
12073
- return /* @__PURE__ */ B(Ii, { children: [
12074
- /* @__PURE__ */ B(bi, { children: [
12077
+ return /* @__PURE__ */ W(Ii, { children: [
12078
+ /* @__PURE__ */ W(bi, { children: [
12075
12079
  "Enter your ",
12076
12080
  o,
12077
12081
  " workspace"
@@ -12109,7 +12113,7 @@ function ib({
12109
12113
  groupName: o,
12110
12114
  providerName: i
12111
12115
  }) {
12112
- const { projectId: s } = Ke(), a = Yt(), [c, l] = se(""), [u, d] = se(null), [m, p] = se(null), g = async () => {
12116
+ const { projectId: s } = qe(), a = Yt(), [c, l] = se(""), [u, d] = se(null), [m, p] = se(null), g = async () => {
12113
12117
  if (p(null), !c) {
12114
12118
  p("Workspace is required");
12115
12119
  return;
@@ -12193,11 +12197,11 @@ function ob({
12193
12197
  };
12194
12198
  i && (I.workspace = g), o && y.length > 0 && (I.scopes = ug(y)), e(I);
12195
12199
  };
12196
- return /* @__PURE__ */ B(Ii, { children: [
12200
+ return /* @__PURE__ */ W(Ii, { children: [
12197
12201
  /* @__PURE__ */ h(bi, { children: `Set up ${r} integration` }),
12198
12202
  /* @__PURE__ */ h(_i, { error: t }),
12199
12203
  /* @__PURE__ */ h("br", {}),
12200
- /* @__PURE__ */ B("div", { style: { display: "flex", flexDirection: "column", gap: "1.2rem" }, children: [
12204
+ /* @__PURE__ */ W("div", { style: { display: "flex", flexDirection: "column", gap: "1.2rem" }, children: [
12201
12205
  i && /* @__PURE__ */ h(
12202
12206
  wn.Input,
12203
12207
  {
@@ -12218,7 +12222,7 @@ function ob({
12218
12222
  onChange: (I) => d(I)
12219
12223
  }
12220
12224
  ),
12221
- /* @__PURE__ */ B("div", { style: { display: "flex", gap: ".5rem" }, children: [
12225
+ /* @__PURE__ */ W("div", { style: { display: "flex", gap: ".5rem" }, children: [
12222
12226
  /* @__PURE__ */ h(
12223
12227
  wn.Input,
12224
12228
  {
@@ -12273,7 +12277,7 @@ function sb({
12273
12277
  selectedConnection: c,
12274
12278
  setSelectedConnection: l
12275
12279
  }) {
12276
- const { projectId: u } = Ke(), d = Yt(), [m, p] = se(null), g = async (y) => {
12280
+ const { projectId: u } = qe(), d = Yt(), [m, p] = se(null), g = async (y) => {
12277
12281
  p(null);
12278
12282
  const f = {
12279
12283
  groupName: i,
@@ -12340,7 +12344,7 @@ function db({
12340
12344
  selectedConnection: s,
12341
12345
  setSelectedConnection: a
12342
12346
  }
12343
- ) : c === "password" ? /* @__PURE__ */ h("em", { children: "Password flow not supported yet" }) : /* @__PURE__ */ B("em", { children: [
12347
+ ) : c === "password" ? /* @__PURE__ */ h("em", { children: "Password flow not supported yet" }) : /* @__PURE__ */ W("em", { children: [
12344
12348
  "Unsupported grant type: ",
12345
12349
  c
12346
12350
  ] });
@@ -12424,7 +12428,7 @@ function yd({
12424
12428
  providerInfo: l,
12425
12429
  onDisconnectSuccess: a
12426
12430
  };
12427
- return l.authType === "none" ? /* @__PURE__ */ h(HI, { ...I, children: i }) : l.authType === "basic" ? /* @__PURE__ */ h(qI, { ...I, children: i }) : l.authType === "apiKey" ? /* @__PURE__ */ h(VI, { ...I, children: i }) : /* @__PURE__ */ h(db, { ...I });
12431
+ return l.authType === "none" ? /* @__PURE__ */ h(HI, { ...I, children: i }) : l.authType === "basic" ? /* @__PURE__ */ h(qI, { ...I, children: i }) : l.authType === "apiKey" ? /* @__PURE__ */ h(KI, { ...I, children: i }) : /* @__PURE__ */ h(db, { ...I });
12428
12432
  }
12429
12433
  function mb(e) {
12430
12434
  const t = e + "CollectionProvider", [n, r] = No(t), [o, i] = n(
@@ -12782,7 +12786,7 @@ function Fd(e, t) {
12782
12786
  return `${e}-content-${t}`;
12783
12787
  }
12784
12788
  var Fb = Sd, Mb = Rd, Md = Ad;
12785
- const kb = /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
12789
+ const kb = /* @__PURE__ */ W("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
12786
12790
  /* @__PURE__ */ h("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
12787
12791
  /* @__PURE__ */ h("path", { d: "M13 7L7.5 12L5 9.72727", stroke: "#16A34A", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
12788
12792
  ] });
@@ -12804,8 +12808,8 @@ function Lb(e, t) {
12804
12808
  })
12805
12809
  ) : e ? kb : /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ h("circle", { cx: "9", cy: "9", r: "5", fill: "#BFDBFE" }) });
12806
12810
  }
12807
- function Vb() {
12808
- return /* @__PURE__ */ B("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
12811
+ function Kb() {
12812
+ return /* @__PURE__ */ W("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
12809
12813
  /* @__PURE__ */ h("path", { d: "M2.25 4.5H3.75H15.75", stroke: "#E73D3D", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
12810
12814
  /* @__PURE__ */ h(
12811
12815
  "path",
@@ -12821,8 +12825,8 @@ function Vb() {
12821
12825
  /* @__PURE__ */ h("path", { d: "M10.5 8.25V12.75", stroke: "#E73D3D", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
12822
12826
  ] });
12823
12827
  }
12824
- const Kb = "_tabsRoot_ktpr0_1", $b = "_tabsList_ktpr0_6", qb = "_tabTrigger_ktpr0_12", Ub = "_danger_ktpr0_29", ui = {
12825
- tabsRoot: Kb,
12828
+ const Vb = "_tabsRoot_ktpr0_1", $b = "_tabsList_ktpr0_6", qb = "_tabTrigger_ktpr0_12", Ub = "_danger_ktpr0_29", ui = {
12829
+ tabsRoot: Vb,
12826
12830
  tabsList: $b,
12827
12831
  tabTrigger: qb,
12828
12832
  danger: Ub
@@ -12833,7 +12837,7 @@ function kd({
12833
12837
  pending: n,
12834
12838
  displayName: r
12835
12839
  }) {
12836
- return /* @__PURE__ */ h(Md, { value: e, className: ui.tabTrigger, children: /* @__PURE__ */ B(
12840
+ return /* @__PURE__ */ h(Md, { value: e, className: ui.tabTrigger, children: /* @__PURE__ */ W(
12837
12841
  "div",
12838
12842
  {
12839
12843
  style: {
@@ -12844,7 +12848,7 @@ function kd({
12844
12848
  },
12845
12849
  children: [
12846
12850
  Lb(t, n),
12847
- /* @__PURE__ */ B("div", { style: { display: "flex", flexDirection: "column" }, children: [
12851
+ /* @__PURE__ */ W("div", { style: { display: "flex", flexDirection: "column" }, children: [
12848
12852
  /* @__PURE__ */ h("span", { children: r || e }),
12849
12853
  n && /* @__PURE__ */ h("span", { style: { fontSize: ".8rem", fontStyle: "italic" }, children: "pending" })
12850
12854
  ] })
@@ -12857,7 +12861,7 @@ function Hb({
12857
12861
  pending: t,
12858
12862
  displayName: n
12859
12863
  }) {
12860
- return /* @__PURE__ */ B(Xe, { children: [
12864
+ return /* @__PURE__ */ W(Xe, { children: [
12861
12865
  /* @__PURE__ */ h(Eo, { style: { margin: "1rem 0" } }),
12862
12866
  /* @__PURE__ */ h(
12863
12867
  kd,
@@ -12872,14 +12876,14 @@ function Hb({
12872
12876
  ] });
12873
12877
  }
12874
12878
  function Bb() {
12875
- return /* @__PURE__ */ B(Xe, { children: [
12879
+ return /* @__PURE__ */ W(Xe, { children: [
12876
12880
  /* @__PURE__ */ h(Eo, { style: { margin: "3rem 0 1rem 0" } }),
12877
12881
  /* @__PURE__ */ h(
12878
12882
  Md,
12879
12883
  {
12880
12884
  value: Yi,
12881
12885
  className: Nt(ui.tabTrigger, ui.danger),
12882
- children: /* @__PURE__ */ B(
12886
+ children: /* @__PURE__ */ W(
12883
12887
  "div",
12884
12888
  {
12885
12889
  style: {
@@ -12889,7 +12893,7 @@ function Bb() {
12889
12893
  marginRight: ".5rem"
12890
12894
  },
12891
12895
  children: [
12892
- Vb(),
12896
+ Kb(),
12893
12897
  /* @__PURE__ */ h("span", { children: "Uninstall" })
12894
12898
  ]
12895
12899
  }
@@ -12907,7 +12911,7 @@ function Wb({
12907
12911
  showUninstallButton: i
12908
12912
  }) {
12909
12913
  var s, a;
12910
- return /* @__PURE__ */ h(Fb, { value: e, className: ui.tabsRoot, onValueChange: n, children: /* @__PURE__ */ B(Mb, { className: ui.tabsList, children: [
12914
+ return /* @__PURE__ */ h(Fb, { value: e, className: ui.tabsRoot, onValueChange: n, children: /* @__PURE__ */ W(Mb, { className: ui.tabsList, children: [
12911
12915
  t.map((c) => {
12912
12916
  var l, u, d, m, p, g;
12913
12917
  return /* @__PURE__ */ h(
@@ -12939,7 +12943,7 @@ function Jb({
12939
12943
  children: e
12940
12944
  }) {
12941
12945
  var b;
12942
- const { project: t } = Ke(), { installation: n, provider: r } = ct(), { hydratedRevision: o } = In(), { objectConfigurationsState: i } = $s(), [s, a] = se(""), c = (t == null ? void 0 : t.appName) || "", l = n == null ? void 0 : n.config, u = o && Al(l, o), d = u !== null, m = !!((b = o == null ? void 0 : o.content) != null && b.write), p = m ? Pl(l) : void 0, g = Fe(() => {
12946
+ const { project: t } = qe(), { installation: n, provider: r } = ct(), { hydratedRevision: o } = In(), { objectConfigurationsState: i } = $s(), [s, a] = se(""), c = (t == null ? void 0 : t.appName) || "", l = n == null ? void 0 : n.config, u = o && Al(l, o), d = u !== null, m = !!((b = o == null ? void 0 : o.content) != null && b.write), p = m ? Pl(l) : void 0, g = Fe(() => {
12943
12947
  const v = [...u || []];
12944
12948
  return p && m && v.push(p), v;
12945
12949
  }, [u, p, m]), y = jb(g, s), f = ae(() => {
@@ -12948,8 +12952,8 @@ function Jb({
12948
12952
  }, [g, y]);
12949
12953
  return Z(() => {
12950
12954
  !s && g.length > 0 && a(g[0].name);
12951
- }, [g, s, f]), /* @__PURE__ */ h(zl.Provider, { value: f, children: /* @__PURE__ */ h(jl.Provider, { value: y == null ? void 0 : y.name, children: /* @__PURE__ */ B(Ur, { style: { maxWidth: "55rem" }, children: [
12952
- /* @__PURE__ */ B(
12955
+ }, [g, s, f]), /* @__PURE__ */ h(zl.Provider, { value: f, children: /* @__PURE__ */ h(jl.Provider, { value: y == null ? void 0 : y.name, children: /* @__PURE__ */ W(Ur, { style: { maxWidth: "55rem" }, children: [
12956
+ /* @__PURE__ */ W(
12953
12957
  qn,
12954
12958
  {
12955
12959
  style: {
@@ -12959,8 +12963,8 @@ function Jb({
12959
12963
  backgroundColor: "var(--amp-colors-bg-primary)"
12960
12964
  },
12961
12965
  children: [
12962
- /* @__PURE__ */ B("div", { style: { width: "20rem" }, children: [
12963
- /* @__PURE__ */ B("h1", { style: { fontSize: "small", fontWeight: "400" }, children: [
12966
+ /* @__PURE__ */ W("div", { style: { width: "20rem" }, children: [
12967
+ /* @__PURE__ */ W("h1", { style: { fontSize: "small", fontWeight: "400" }, children: [
12964
12968
  Un(r),
12965
12969
  " integration"
12966
12970
  ] }),
@@ -13000,7 +13004,7 @@ function a_({
13000
13004
  fieldMapping: c
13001
13005
  }) {
13002
13006
  var f;
13003
- const { projectIdOrName: l, isLoading: u } = Ke(), { isLoading: d } = Ds(), { isError: m, errorState: p } = Zt(), { seed: g, reset: y } = Sl();
13007
+ const { projectIdOrName: l, isLoading: u } = qe(), { isLoading: d } = Ds(), { isError: m, errorState: p } = Zt(), { seed: g, reset: y } = Sl();
13004
13008
  return u || d ? /* @__PURE__ */ h(Hr, {}) : m(Ie.PROJECT, l) ? /* @__PURE__ */ h(on, { message: `Error loading project ${l}` }) : m(Ie.INTEGRATION_LIST, l) ? /* @__PURE__ */ h(on, { message: "Error retrieving integrations for the project, double check the API key" }) : (f = p[Ie.INTEGRATION_LIST]) != null && f.apiError ? /* @__PURE__ */ h(on, { message: "Something went wrong, couldn't find integration information" }) : /* @__PURE__ */ h("div", { className: Tl.resetContainer, children: /* @__PURE__ */ h(
13005
13009
  fg,
13006
13010
  {
@@ -13021,7 +13025,7 @@ function a_({
13021
13025
  groupRef: r,
13022
13026
  groupName: o,
13023
13027
  resetComponent: y,
13024
- children: /* @__PURE__ */ h(Kg, { children: /* @__PURE__ */ h(RI, { children: /* @__PURE__ */ h(Zg, { children: /* @__PURE__ */ h(zb, { children: /* @__PURE__ */ h(OI, {}) }) }) }) })
13028
+ children: /* @__PURE__ */ h(Vg, { children: /* @__PURE__ */ h(RI, { children: /* @__PURE__ */ h(Zg, { children: /* @__PURE__ */ h(zb, { children: /* @__PURE__ */ h(OI, {}) }) }) }) })
13025
13029
  }
13026
13030
  ) })
13027
13031
  },
@@ -13029,7 +13033,7 @@ function a_({
13029
13033
  ) });
13030
13034
  }
13031
13035
  function Gb() {
13032
- return /* @__PURE__ */ B(
13036
+ return /* @__PURE__ */ W(
13033
13037
  Ur,
13034
13038
  {
13035
13039
  style: {
@@ -13057,7 +13061,7 @@ function Xb({
13057
13061
  onDisconnectSuccess: r,
13058
13062
  resetComponent: o
13059
13063
  }) {
13060
- const i = Yt(), { projectId: s } = Ke(), { selectedConnection: a, setConnections: c } = Br(), [l, u] = se(!1), d = !s || !a || !a.id || l;
13064
+ const i = Yt(), { projectId: s } = qe(), { selectedConnection: a, setConnections: c } = Br(), [l, u] = se(!1), d = !s || !a || !a.id || l;
13061
13065
  return /* @__PURE__ */ h(
13062
13066
  ht,
13063
13067
  {
@@ -13109,7 +13113,7 @@ function Xb({
13109
13113
  );
13110
13114
  }
13111
13115
  function Yb({ provider: e, onDisconnectSuccess: t, resetComponent: n }) {
13112
- const { appName: r } = Ke(), o = `You have successfully connected your ${Un(e)} account to ${r}.`;
13116
+ const { appName: r } = qe(), o = `You have successfully connected your ${Un(e)} account to ${r}.`;
13113
13117
  return /* @__PURE__ */ h(ga, { text: o, children: /* @__PURE__ */ h("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: /* @__PURE__ */ h(
13114
13118
  Xb,
13115
13119
  {