@amp-labs/react 1.15.1 → 1.15.2

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.
@@ -794,13 +794,15 @@ function Wl(e) {
794
794
  }
795
795
  function Jl(e, t) {
796
796
  return e == null ? e : {
797
- fieldName: e.fieldName
797
+ fieldName: e.fieldName,
798
+ mapToField: M(e, "mapToField") ? e.mapToField : void 0
798
799
  };
799
800
  }
800
801
  function zl(e) {
801
802
  if (e !== void 0)
802
803
  return e === null ? null : {
803
- fieldName: e.fieldName
804
+ fieldName: e.fieldName,
805
+ mapToField: e.mapToField
804
806
  };
805
807
  }
806
808
  function Xl(e) {
@@ -887,13 +889,15 @@ function iu(e) {
887
889
  }
888
890
  function au(e, t) {
889
891
  return e == null ? e : {
890
- objectName: e.objectName
892
+ objectName: e.objectName,
893
+ inheritMappingFromRead: M(e, "inheritMappingFromRead") ? e.inheritMappingFromRead : void 0
891
894
  };
892
895
  }
893
896
  function su(e) {
894
897
  if (e !== void 0)
895
898
  return e === null ? null : {
896
- objectName: e.objectName
899
+ objectName: e.objectName,
900
+ inheritMappingFromRead: e.inheritMappingFromRead
897
901
  };
898
902
  }
899
903
  function cu(e) {
@@ -2010,7 +2014,7 @@ class bd {
2010
2014
  this.connectionApi = new hd(t), this.installationApi = new md(t), this.integrationApi = new gd(t), this.oAuthApi = new yd(t), this.projectApi = new vd(t), this.providerApi = new Id(t), this.providerAppApi = new wd(t), this.revisionApi = new _d(t);
2011
2015
  }
2012
2016
  }
2013
- const Cd = "1.15.1", Od = "v1", Sn = "https://api.withampersand.com";
2017
+ const Cd = "1.15.2", Od = "v1", Sn = "https://api.withampersand.com";
2014
2018
  function Fi() {
2015
2019
  try {
2016
2020
  const e = process.env.REACT_APP_AMP_SERVER;
@@ -2229,7 +2233,7 @@ function Ud({
2229
2233
  onUninstallSuccess: l,
2230
2234
  fieldMapping: d
2231
2235
  }) {
2232
- const p = Ce(), { projectId: h } = _e(), { integrations: g } = Mi(), { setError: f, isError: m } = Ot(), { isIntegrationDeleted: w, setIntegrationDeleted: v } = Hd(), [O, y] = U([]), [C, b] = U(!0), I = (O == null ? void 0 : O[0]) || null, N = Re(
2236
+ const p = Ce(), { projectId: h } = _e(), { integrations: g } = Mi(), { setError: f, isError: m } = Ot(), { isIntegrationDeleted: v, setIntegrationDeleted: w } = Hd(), [O, y] = U([]), [C, b] = U(!0), I = (O == null ? void 0 : O[0]) || null, N = Re(
2233
2237
  () => Uc(t, g || []),
2234
2238
  [t, g]
2235
2239
  );
@@ -2273,8 +2277,8 @@ function Ud({
2273
2277
  onInstallSuccess: a,
2274
2278
  onUpdateSuccess: s,
2275
2279
  onUninstallSuccess: l,
2276
- isIntegrationDeleted: w,
2277
- setIntegrationDeleted: v,
2280
+ isIntegrationDeleted: v,
2281
+ setIntegrationDeleted: w,
2278
2282
  fieldMapping: d
2279
2283
  }), [
2280
2284
  N,
@@ -2288,8 +2292,8 @@ function Ud({
2288
2292
  a,
2289
2293
  s,
2290
2294
  l,
2291
- w,
2292
2295
  v,
2296
+ w,
2293
2297
  d
2294
2298
  ]);
2295
2299
  if (N !== null) {
@@ -2327,19 +2331,19 @@ function Vi({
2327
2331
  headers: {
2328
2332
  "X-Api-Key": o ?? ""
2329
2333
  }
2330
- }).then((v) => {
2331
- p(!1), a(v);
2332
- }).catch((v) => {
2333
- console.error(`Error retrieving existing OAuth connections for group ID ${t}.`), Ee(v), p(!1), h(ye.CONNECTION_LIST, i);
2334
+ }).then((w) => {
2335
+ p(!1), a(w);
2336
+ }).catch((w) => {
2337
+ console.error(`Error retrieving existing OAuth connections for group ID ${t}.`), Ee(w), p(!1), h(ye.CONNECTION_LIST, i);
2334
2338
  });
2335
2339
  }, [i, o, t, m, h]);
2336
- const w = Re(() => ({
2340
+ const v = Re(() => ({
2337
2341
  connections: r,
2338
2342
  selectedConnection: s,
2339
2343
  setConnections: a,
2340
2344
  setSelectedConnection: l
2341
2345
  }), [r, s, a, l]);
2342
- return g(ye.CONNECTION_LIST, i) ? /* @__PURE__ */ c(ht, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ c(Li.Provider, { value: w, children: d ? /* @__PURE__ */ c(Ze, {}) : n });
2346
+ return g(ye.CONNECTION_LIST, i) ? /* @__PURE__ */ c(ht, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ c(Li.Provider, { value: v, children: d ? /* @__PURE__ */ c(Ze, {}) : n });
2343
2347
  }
2344
2348
  var En = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2345
2349
  function Ur(e) {
@@ -2348,8 +2352,8 @@ function Ur(e) {
2348
2352
  var Ln = { exports: {} };
2349
2353
  Ln.exports;
2350
2354
  (function(e, t) {
2351
- var n = 200, o = "__lodash_hash_undefined__", i = 1, r = 2, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", d = "[object AsyncFunction]", p = "[object Boolean]", h = "[object Date]", g = "[object Error]", f = "[object Function]", m = "[object GeneratorFunction]", w = "[object Map]", v = "[object Number]", O = "[object Null]", y = "[object Object]", C = "[object Promise]", b = "[object Proxy]", I = "[object RegExp]", N = "[object Set]", V = "[object String]", D = "[object Symbol]", H = "[object Undefined]", Y = "[object WeakMap]", z = "[object ArrayBuffer]", Z = "[object DataView]", ne = "[object Float32Array]", Q = "[object Float64Array]", de = "[object Int8Array]", pe = "[object Int16Array]", oe = "[object Int32Array]", Te = "[object Uint8Array]", Ae = "[object Uint8ClampedArray]", E = "[object Uint16Array]", K = "[object Uint32Array]", k = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, A = /^(?:0|[1-9]\d*)$/, T = {};
2352
- T[ne] = T[Q] = T[de] = T[pe] = T[oe] = T[Te] = T[Ae] = T[E] = T[K] = !0, T[s] = T[l] = T[z] = T[p] = T[Z] = T[h] = T[g] = T[f] = T[w] = T[v] = T[y] = T[I] = T[N] = T[V] = T[Y] = !1;
2355
+ var n = 200, o = "__lodash_hash_undefined__", i = 1, r = 2, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", d = "[object AsyncFunction]", p = "[object Boolean]", h = "[object Date]", g = "[object Error]", f = "[object Function]", m = "[object GeneratorFunction]", v = "[object Map]", w = "[object Number]", O = "[object Null]", y = "[object Object]", C = "[object Promise]", b = "[object Proxy]", I = "[object RegExp]", N = "[object Set]", V = "[object String]", D = "[object Symbol]", H = "[object Undefined]", Y = "[object WeakMap]", z = "[object ArrayBuffer]", Z = "[object DataView]", ne = "[object Float32Array]", Q = "[object Float64Array]", de = "[object Int8Array]", pe = "[object Int16Array]", oe = "[object Int32Array]", Te = "[object Uint8Array]", Ae = "[object Uint8ClampedArray]", E = "[object Uint16Array]", K = "[object Uint32Array]", k = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, A = /^(?:0|[1-9]\d*)$/, T = {};
2356
+ T[ne] = T[Q] = T[de] = T[pe] = T[oe] = T[Te] = T[Ae] = T[E] = T[K] = !0, T[s] = T[l] = T[z] = T[p] = T[Z] = T[h] = T[g] = T[f] = T[v] = T[w] = T[y] = T[I] = T[N] = T[V] = T[Y] = !1;
2353
2357
  var B = typeof En == "object" && En && En.Object === Object && En, W = typeof self == "object" && self && self.Object === Object && self, j = B || W || Function("return this")(), J = t && !t.nodeType && t, q = J && !0 && e && !e.nodeType && e, ae = q && q.exports === J, R = ae && B.process, fe = function() {
2354
2358
  try {
2355
2359
  return R && R.binding && R.binding("util");
@@ -2651,14 +2655,14 @@ Ln.exports;
2651
2655
  return !(u.byteLength != _.byteLength || !te(new _o(u), new _o(_)));
2652
2656
  case p:
2653
2657
  case h:
2654
- case v:
2658
+ case w:
2655
2659
  return xo(+u, +_);
2656
2660
  case g:
2657
2661
  return u.name == _.name && u.message == _.message;
2658
2662
  case I:
2659
2663
  case V:
2660
2664
  return u == _ + "";
2661
- case w:
2665
+ case v:
2662
2666
  var Oe = St;
2663
2667
  case N:
2664
2668
  var Ne = L & i;
@@ -2733,14 +2737,14 @@ Ln.exports;
2733
2737
  return bo.call(u, _);
2734
2738
  }));
2735
2739
  } : vc, vt = rn;
2736
- (ar && vt(new ar(new ArrayBuffer(1))) != Z || tn && vt(new tn()) != w || sr && vt(sr.resolve()) != C || cr && vt(new cr()) != N || lr && vt(new lr()) != Y) && (vt = function(u) {
2740
+ (ar && vt(new ar(new ArrayBuffer(1))) != Z || tn && vt(new tn()) != v || sr && vt(sr.resolve()) != C || cr && vt(new cr()) != N || lr && vt(new lr()) != Y) && (vt = function(u) {
2737
2741
  var _ = rn(u), S = _ == y ? u.constructor : void 0, L = S ? Rt(S) : "";
2738
2742
  if (L)
2739
2743
  switch (L) {
2740
2744
  case Ss:
2741
2745
  return Z;
2742
2746
  case Es:
2743
- return w;
2747
+ return v;
2744
2748
  case Ts:
2745
2749
  return C;
2746
2750
  case xs:
@@ -2892,10 +2896,10 @@ function jr(e, t) {
2892
2896
  return Bd(e, t);
2893
2897
  }
2894
2898
  const Gd = (e, t, n) => {
2895
- var f, m, w, v, O, y;
2899
+ var f, m, v, w, O, y;
2896
2900
  if (!e)
2897
2901
  return null;
2898
- const o = qd(e, t), i = o && Wd(o), r = o && zd(o), a = o && Jd(o), s = (o == null ? void 0 : o.allFields) || [], l = n == null ? void 0 : n.content, d = ((w = (m = (f = l == null ? void 0 : l.read) == null ? void 0 : f.objects) == null ? void 0 : m[t]) == null ? void 0 : w.selectedFields) || {}, p = ((y = (O = (v = l == null ? void 0 : l.read) == null ? void 0 : v.objects) == null ? void 0 : O[t]) == null ? void 0 : y.selectedFieldMappings) || {}, h = { ...d }, g = { ...p };
2902
+ const o = qd(e, t), i = o && Wd(o), r = o && zd(o), a = o && Jd(o), s = (o == null ? void 0 : o.allFields) || [], l = n == null ? void 0 : n.content, d = ((v = (m = (f = l == null ? void 0 : l.read) == null ? void 0 : f.objects) == null ? void 0 : m[t]) == null ? void 0 : v.selectedFields) || {}, p = ((y = (O = (w = l == null ? void 0 : l.read) == null ? void 0 : w.objects) == null ? void 0 : O[t]) == null ? void 0 : y.selectedFieldMappings) || {}, h = { ...d }, g = { ...p };
2899
2903
  return {
2900
2904
  allFields: s,
2901
2905
  // from hydrated revision
@@ -3248,7 +3252,7 @@ function yp({
3248
3252
  children: t
3249
3253
  }) {
3250
3254
  var C;
3251
- const { selectedConnection: n } = Gt(), { integrationId: o, integrationObj: i } = tt(), [r, a] = U(null), [s, l] = U(!0), { isError: d, removeError: p, setError: h } = Ot(), g = Ce(), f = n == null ? void 0 : n.id, m = (C = i == null ? void 0 : i.latestRevision) == null ? void 0 : C.id, w = (i == null ? void 0 : i.name) || o;
3255
+ const { selectedConnection: n } = Gt(), { integrationId: o, integrationObj: i } = tt(), [r, a] = U(null), [s, l] = U(!0), { isError: d, removeError: p, setError: h } = Ot(), g = Ce(), f = n == null ? void 0 : n.id, m = (C = i == null ? void 0 : i.latestRevision) == null ? void 0 : C.id, v = (i == null ? void 0 : i.name) || o;
3252
3256
  ie(() => {
3253
3257
  e && o && m && f && g && me().revisionApi.getHydratedRevision({
3254
3258
  projectIdOrName: e,
@@ -3260,9 +3264,9 @@ function yp({
3260
3264
  "X-Api-Key": g ?? ""
3261
3265
  }
3262
3266
  }).then((b) => {
3263
- a(b), l(!1), p(ye.HYDRATED_REVISION, w);
3267
+ a(b), l(!1), p(ye.HYDRATED_REVISION, v);
3264
3268
  }).catch((b) => {
3265
- console.error(`Error loading integration ${w}.`), Ee(b), l(!1), h(ye.HYDRATED_REVISION, w);
3269
+ console.error(`Error loading integration ${v}.`), Ee(b), l(!1), h(ye.HYDRATED_REVISION, v);
3266
3270
  });
3267
3271
  }, [
3268
3272
  e,
@@ -3272,13 +3276,13 @@ function yp({
3272
3276
  g,
3273
3277
  p,
3274
3278
  h,
3275
- w
3279
+ v
3276
3280
  ]);
3277
- const v = Re(() => ({
3281
+ const w = Re(() => ({
3278
3282
  hydratedRevision: r,
3279
3283
  loading: s
3280
3284
  }), [r, s]), y = `Error retrieving integration details for '${(i == null ? void 0 : i.name) || o || "unknown integration"}. This is sometimes caused by insufficient permissions with your credentials'`;
3281
- return /* @__PURE__ */ c(ea.Provider, { value: v, children: d(ye.HYDRATED_REVISION, w) ? /* @__PURE__ */ c(ht, { message: y }) : t });
3285
+ return /* @__PURE__ */ c(ea.Provider, { value: w, children: d(ye.HYDRATED_REVISION, v) ? /* @__PURE__ */ c(ht, { message: y }) : t });
3282
3286
  }
3283
3287
  function pt(e, t) {
3284
3288
  if (e == null) return {};
@@ -3319,7 +3323,7 @@ var Uo;
3319
3323
  function Ip() {
3320
3324
  if (Uo) return se;
3321
3325
  Uo = 1;
3322
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
3326
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
3323
3327
  function C(I) {
3324
3328
  if (typeof I == "object" && I !== null) {
3325
3329
  var N = I.$$typeof;
@@ -3378,7 +3382,7 @@ function Ip() {
3378
3382
  }, se.isSuspense = function(I) {
3379
3383
  return C(I) === h;
3380
3384
  }, se.isValidElementType = function(I) {
3381
- return typeof I == "string" || typeof I == "function" || I === o || I === d || I === r || I === i || I === h || I === g || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === f || I.$$typeof === a || I.$$typeof === s || I.$$typeof === p || I.$$typeof === v || I.$$typeof === O || I.$$typeof === y || I.$$typeof === w);
3385
+ return typeof I == "string" || typeof I == "function" || I === o || I === d || I === r || I === i || I === h || I === g || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === f || I.$$typeof === a || I.$$typeof === s || I.$$typeof === p || I.$$typeof === w || I.$$typeof === O || I.$$typeof === y || I.$$typeof === v);
3382
3386
  }, se.typeOf = C, se;
3383
3387
  }
3384
3388
  var ce = {};
@@ -3393,10 +3397,10 @@ var ce = {};
3393
3397
  var jo;
3394
3398
  function wp() {
3395
3399
  return jo || (jo = 1, process.env.NODE_ENV !== "production" && function() {
3396
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
3400
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
3397
3401
  function C(R) {
3398
3402
  return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3399
- R === o || R === d || R === r || R === i || R === h || R === g || typeof R == "object" && R !== null && (R.$$typeof === m || R.$$typeof === f || R.$$typeof === a || R.$$typeof === s || R.$$typeof === p || R.$$typeof === v || R.$$typeof === O || R.$$typeof === y || R.$$typeof === w);
3403
+ R === o || R === d || R === r || R === i || R === h || R === g || typeof R == "object" && R !== null && (R.$$typeof === m || R.$$typeof === f || R.$$typeof === a || R.$$typeof === s || R.$$typeof === p || R.$$typeof === w || R.$$typeof === O || R.$$typeof === y || R.$$typeof === v);
3400
3404
  }
3401
3405
  function b(R) {
3402
3406
  if (typeof R == "object" && R !== null) {
@@ -3636,11 +3640,11 @@ function Cp() {
3636
3640
  function m(E, K) {
3637
3641
  return E === K ? E !== 0 || 1 / E === 1 / K : E !== E && K !== K;
3638
3642
  }
3639
- function w(E, K) {
3643
+ function v(E, K) {
3640
3644
  this.message = E, this.data = K && typeof K == "object" ? K : {}, this.stack = "";
3641
3645
  }
3642
- w.prototype = Error.prototype;
3643
- function v(E) {
3646
+ v.prototype = Error.prototype;
3647
+ function w(E) {
3644
3648
  if (process.env.NODE_ENV !== "production")
3645
3649
  var K = {}, k = 0;
3646
3650
  function P(T, B, W, j, J, q, ae) {
@@ -3658,7 +3662,7 @@ function Cp() {
3658
3662
  ), K[fe] = !0, k++);
3659
3663
  }
3660
3664
  }
3661
- return B[W] == null ? T ? B[W] === null ? new w("The " + J + " `" + q + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new w("The " + J + " `" + q + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : E(B, W, j, J, q);
3665
+ return B[W] == null ? T ? B[W] === null ? new v("The " + J + " `" + q + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new v("The " + J + " `" + q + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : E(B, W, j, J, q);
3662
3666
  }
3663
3667
  var A = P.bind(null, !1);
3664
3668
  return A.isRequired = P.bind(null, !0), A;
@@ -3668,26 +3672,26 @@ function Cp() {
3668
3672
  var j = k[P], J = pe(j);
3669
3673
  if (J !== E) {
3670
3674
  var q = oe(j);
3671
- return new w(
3675
+ return new v(
3672
3676
  "Invalid " + T + " `" + B + "` of type " + ("`" + q + "` supplied to `" + A + "`, expected ") + ("`" + E + "`."),
3673
3677
  { expectedType: E }
3674
3678
  );
3675
3679
  }
3676
3680
  return null;
3677
3681
  }
3678
- return v(K);
3682
+ return w(K);
3679
3683
  }
3680
3684
  function y() {
3681
- return v(a);
3685
+ return w(a);
3682
3686
  }
3683
3687
  function C(E) {
3684
3688
  function K(k, P, A, T, B) {
3685
3689
  if (typeof E != "function")
3686
- return new w("Property `" + B + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
3690
+ return new v("Property `" + B + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
3687
3691
  var W = k[P];
3688
3692
  if (!Array.isArray(W)) {
3689
3693
  var j = pe(W);
3690
- return new w("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an array."));
3694
+ return new v("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an array."));
3691
3695
  }
3692
3696
  for (var J = 0; J < W.length; J++) {
3693
3697
  var q = E(W, J, A, T, B + "[" + J + "]", n);
@@ -3696,39 +3700,39 @@ function Cp() {
3696
3700
  }
3697
3701
  return null;
3698
3702
  }
3699
- return v(K);
3703
+ return w(K);
3700
3704
  }
3701
3705
  function b() {
3702
3706
  function E(K, k, P, A, T) {
3703
3707
  var B = K[k];
3704
3708
  if (!s(B)) {
3705
3709
  var W = pe(B);
3706
- return new w("Invalid " + A + " `" + T + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected a single ReactElement."));
3710
+ return new v("Invalid " + A + " `" + T + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected a single ReactElement."));
3707
3711
  }
3708
3712
  return null;
3709
3713
  }
3710
- return v(E);
3714
+ return w(E);
3711
3715
  }
3712
3716
  function I() {
3713
3717
  function E(K, k, P, A, T) {
3714
3718
  var B = K[k];
3715
3719
  if (!e.isValidElementType(B)) {
3716
3720
  var W = pe(B);
3717
- return new w("Invalid " + A + " `" + T + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected a single ReactElement type."));
3721
+ return new v("Invalid " + A + " `" + T + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected a single ReactElement type."));
3718
3722
  }
3719
3723
  return null;
3720
3724
  }
3721
- return v(E);
3725
+ return w(E);
3722
3726
  }
3723
3727
  function N(E) {
3724
3728
  function K(k, P, A, T, B) {
3725
3729
  if (!(k[P] instanceof E)) {
3726
3730
  var W = E.name || g, j = Ae(k[P]);
3727
- return new w("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected ") + ("instance of `" + W + "`."));
3731
+ return new v("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected ") + ("instance of `" + W + "`."));
3728
3732
  }
3729
3733
  return null;
3730
3734
  }
3731
- return v(K);
3735
+ return w(K);
3732
3736
  }
3733
3737
  function V(E) {
3734
3738
  if (!Array.isArray(E))
@@ -3743,17 +3747,17 @@ function Cp() {
3743
3747
  var fe = oe(R);
3744
3748
  return fe === "symbol" ? String(R) : R;
3745
3749
  });
3746
- return new w("Invalid " + T + " `" + B + "` of value `" + String(W) + "` " + ("supplied to `" + A + "`, expected one of " + J + "."));
3750
+ return new v("Invalid " + T + " `" + B + "` of value `" + String(W) + "` " + ("supplied to `" + A + "`, expected one of " + J + "."));
3747
3751
  }
3748
- return v(K);
3752
+ return w(K);
3749
3753
  }
3750
3754
  function D(E) {
3751
3755
  function K(k, P, A, T, B) {
3752
3756
  if (typeof E != "function")
3753
- return new w("Property `" + B + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
3757
+ return new v("Property `" + B + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
3754
3758
  var W = k[P], j = pe(W);
3755
3759
  if (j !== "object")
3756
- return new w("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an object."));
3760
+ return new v("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an object."));
3757
3761
  for (var J in W)
3758
3762
  if (o(W, J)) {
3759
3763
  var q = E(W, J, A, T, B + "." + J, n);
@@ -3762,7 +3766,7 @@ function Cp() {
3762
3766
  }
3763
3767
  return null;
3764
3768
  }
3765
- return v(K);
3769
+ return w(K);
3766
3770
  }
3767
3771
  function H(E) {
3768
3772
  if (!Array.isArray(E))
@@ -3782,18 +3786,18 @@ function Cp() {
3782
3786
  R.data && o(R.data, "expectedType") && J.push(R.data.expectedType);
3783
3787
  }
3784
3788
  var fe = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
3785
- return new w("Invalid " + W + " `" + j + "` supplied to " + ("`" + B + "`" + fe + "."));
3789
+ return new v("Invalid " + W + " `" + j + "` supplied to " + ("`" + B + "`" + fe + "."));
3786
3790
  }
3787
- return v(P);
3791
+ return w(P);
3788
3792
  }
3789
3793
  function Y() {
3790
3794
  function E(K, k, P, A, T) {
3791
- return Q(K[k]) ? null : new w("Invalid " + A + " `" + T + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
3795
+ return Q(K[k]) ? null : new v("Invalid " + A + " `" + T + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
3792
3796
  }
3793
- return v(E);
3797
+ return w(E);
3794
3798
  }
3795
3799
  function z(E, K, k, P, A) {
3796
- return new w(
3800
+ return new v(
3797
3801
  (E || "React class") + ": " + K + " type `" + k + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
3798
3802
  );
3799
3803
  }
@@ -3801,7 +3805,7 @@ function Cp() {
3801
3805
  function K(k, P, A, T, B) {
3802
3806
  var W = k[P], j = pe(W);
3803
3807
  if (j !== "object")
3804
- return new w("Invalid " + T + " `" + B + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
3808
+ return new v("Invalid " + T + " `" + B + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
3805
3809
  for (var J in E) {
3806
3810
  var q = E[J];
3807
3811
  if (typeof q != "function")
@@ -3812,20 +3816,20 @@ function Cp() {
3812
3816
  }
3813
3817
  return null;
3814
3818
  }
3815
- return v(K);
3819
+ return w(K);
3816
3820
  }
3817
3821
  function ne(E) {
3818
3822
  function K(k, P, A, T, B) {
3819
3823
  var W = k[P], j = pe(W);
3820
3824
  if (j !== "object")
3821
- return new w("Invalid " + T + " `" + B + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
3825
+ return new v("Invalid " + T + " `" + B + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
3822
3826
  var J = t({}, k[P], E);
3823
3827
  for (var q in J) {
3824
3828
  var ae = E[q];
3825
3829
  if (o(E, q) && typeof ae != "function")
3826
3830
  return z(A, T, B, q, oe(ae));
3827
3831
  if (!ae)
3828
- return new w(
3832
+ return new v(
3829
3833
  "Invalid " + T + " `" + B + "` key `" + q + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(k[P], null, " ") + `
3830
3834
  Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
3831
3835
  );
@@ -3835,7 +3839,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
3835
3839
  }
3836
3840
  return null;
3837
3841
  }
3838
- return v(K);
3842
+ return w(K);
3839
3843
  }
3840
3844
  function Q(E) {
3841
3845
  switch (typeof E) {
@@ -3980,27 +3984,27 @@ function Tp() {
3980
3984
  Go = 1;
3981
3985
  var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), m;
3982
3986
  m = Symbol.for("react.module.reference");
3983
- function w(v) {
3984
- if (typeof v == "object" && v !== null) {
3985
- var O = v.$$typeof;
3987
+ function v(w) {
3988
+ if (typeof w == "object" && w !== null) {
3989
+ var O = w.$$typeof;
3986
3990
  switch (O) {
3987
3991
  case e:
3988
- switch (v = v.type, v) {
3992
+ switch (w = w.type, w) {
3989
3993
  case n:
3990
3994
  case i:
3991
3995
  case o:
3992
3996
  case d:
3993
3997
  case p:
3994
- return v;
3998
+ return w;
3995
3999
  default:
3996
- switch (v = v && v.$$typeof, v) {
4000
+ switch (w = w && w.$$typeof, w) {
3997
4001
  case s:
3998
4002
  case a:
3999
4003
  case l:
4000
4004
  case g:
4001
4005
  case h:
4002
4006
  case r:
4003
- return v;
4007
+ return w;
4004
4008
  default:
4005
4009
  return O;
4006
4010
  }
@@ -4014,33 +4018,33 @@ function Tp() {
4014
4018
  return !1;
4015
4019
  }, le.isConcurrentMode = function() {
4016
4020
  return !1;
4017
- }, le.isContextConsumer = function(v) {
4018
- return w(v) === a;
4019
- }, le.isContextProvider = function(v) {
4020
- return w(v) === r;
4021
- }, le.isElement = function(v) {
4022
- return typeof v == "object" && v !== null && v.$$typeof === e;
4023
- }, le.isForwardRef = function(v) {
4024
- return w(v) === l;
4025
- }, le.isFragment = function(v) {
4026
- return w(v) === n;
4027
- }, le.isLazy = function(v) {
4028
- return w(v) === g;
4029
- }, le.isMemo = function(v) {
4030
- return w(v) === h;
4031
- }, le.isPortal = function(v) {
4032
- return w(v) === t;
4033
- }, le.isProfiler = function(v) {
4034
- return w(v) === i;
4035
- }, le.isStrictMode = function(v) {
4036
- return w(v) === o;
4037
- }, le.isSuspense = function(v) {
4038
- return w(v) === d;
4039
- }, le.isSuspenseList = function(v) {
4040
- return w(v) === p;
4041
- }, le.isValidElementType = function(v) {
4042
- return typeof v == "string" || typeof v == "function" || v === n || v === i || v === o || v === d || v === p || v === f || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === h || v.$$typeof === r || v.$$typeof === a || v.$$typeof === l || v.$$typeof === m || v.getModuleId !== void 0);
4043
- }, le.typeOf = w, le;
4021
+ }, le.isContextConsumer = function(w) {
4022
+ return v(w) === a;
4023
+ }, le.isContextProvider = function(w) {
4024
+ return v(w) === r;
4025
+ }, le.isElement = function(w) {
4026
+ return typeof w == "object" && w !== null && w.$$typeof === e;
4027
+ }, le.isForwardRef = function(w) {
4028
+ return v(w) === l;
4029
+ }, le.isFragment = function(w) {
4030
+ return v(w) === n;
4031
+ }, le.isLazy = function(w) {
4032
+ return v(w) === g;
4033
+ }, le.isMemo = function(w) {
4034
+ return v(w) === h;
4035
+ }, le.isPortal = function(w) {
4036
+ return v(w) === t;
4037
+ }, le.isProfiler = function(w) {
4038
+ return v(w) === i;
4039
+ }, le.isStrictMode = function(w) {
4040
+ return v(w) === o;
4041
+ }, le.isSuspense = function(w) {
4042
+ return v(w) === d;
4043
+ }, le.isSuspenseList = function(w) {
4044
+ return v(w) === p;
4045
+ }, le.isValidElementType = function(w) {
4046
+ return typeof w == "string" || typeof w == "function" || w === n || w === i || w === o || w === d || w === p || w === f || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === h || w.$$typeof === r || w.$$typeof === a || w.$$typeof === l || w.$$typeof === m || w.getModuleId !== void 0);
4047
+ }, le.typeOf = v, le;
4044
4048
  }
4045
4049
  var ue = {};
4046
4050
  /**
@@ -4055,10 +4059,10 @@ var ue = {};
4055
4059
  var Zo;
4056
4060
  function xp() {
4057
4061
  return Zo || (Zo = 1, process.env.NODE_ENV !== "production" && function() {
4058
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), m = !1, w = !1, v = !1, O = !1, y = !1, C;
4062
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), m = !1, v = !1, w = !1, O = !1, y = !1, C;
4059
4063
  C = Symbol.for("react.module.reference");
4060
4064
  function b($) {
4061
- return !!(typeof $ == "string" || typeof $ == "function" || $ === n || $ === i || y || $ === o || $ === d || $ === p || O || $ === f || m || w || v || typeof $ == "object" && $ !== null && ($.$$typeof === g || $.$$typeof === h || $.$$typeof === r || $.$$typeof === a || $.$$typeof === l || // This needs to include all possible module reference object
4065
+ return !!(typeof $ == "string" || typeof $ == "function" || $ === n || $ === i || y || $ === o || $ === d || $ === p || O || $ === f || m || v || w || typeof $ == "object" && $ !== null && ($.$$typeof === g || $.$$typeof === h || $.$$typeof === r || $.$$typeof === a || $.$$typeof === l || // This needs to include all possible module reference object
4062
4066
  // types supported by any Flight configuration anywhere since
4063
4067
  // we don't know which Flight build this will end up being used
4064
4068
  // with.
@@ -4177,7 +4181,7 @@ const ei = (e) => typeof e == "object" && e != null && e.nodeType === 1, ti = (e
4177
4181
  }
4178
4182
  m != null && m === document.body && _r(m) && !_r(document.documentElement) || m != null && _r(m, p) && f.push(m);
4179
4183
  }
4180
- const w = (o = (n = window.visualViewport) == null ? void 0 : n.width) != null ? o : innerWidth, v = (r = (i = window.visualViewport) == null ? void 0 : i.height) != null ? r : innerHeight, { scrollX: O, scrollY: y } = window, { height: C, width: b, top: I, right: N, bottom: V, left: D } = e.getBoundingClientRect(), { top: H, right: Y, bottom: z, left: Z } = ((pe) => {
4184
+ const v = (o = (n = window.visualViewport) == null ? void 0 : n.width) != null ? o : innerWidth, w = (r = (i = window.visualViewport) == null ? void 0 : i.height) != null ? r : innerHeight, { scrollX: O, scrollY: y } = window, { height: C, width: b, top: I, right: N, bottom: V, left: D } = e.getBoundingClientRect(), { top: H, right: Y, bottom: z, left: Z } = ((pe) => {
4181
4185
  const oe = window.getComputedStyle(pe);
4182
4186
  return { top: parseFloat(oe.scrollMarginTop) || 0, right: parseFloat(oe.scrollMarginRight) || 0, bottom: parseFloat(oe.scrollMarginBottom) || 0, left: parseFloat(oe.scrollMarginLeft) || 0 };
4183
4187
  })(e);
@@ -4185,11 +4189,11 @@ const ei = (e) => typeof e == "object" && e != null && e.nodeType === 1, ti = (e
4185
4189
  const de = [];
4186
4190
  for (let pe = 0; pe < f.length; pe++) {
4187
4191
  const oe = f[pe], { height: Te, width: Ae, top: E, right: K, bottom: k, left: P } = oe.getBoundingClientRect();
4188
- if (a === "if-needed" && I >= 0 && D >= 0 && V <= v && N <= w && I >= E && V <= k && D >= P && N <= K) return de;
4192
+ if (a === "if-needed" && I >= 0 && D >= 0 && V <= w && N <= v && I >= E && V <= k && D >= P && N <= K) return de;
4189
4193
  const A = getComputedStyle(oe), T = parseInt(A.borderLeftWidth, 10), B = parseInt(A.borderTopWidth, 10), W = parseInt(A.borderRightWidth, 10), j = parseInt(A.borderBottomWidth, 10);
4190
4194
  let J = 0, q = 0;
4191
4195
  const ae = "offsetWidth" in oe ? oe.offsetWidth - oe.clientWidth - T - W : 0, R = "offsetHeight" in oe ? oe.offsetHeight - oe.clientHeight - B - j : 0, fe = "offsetWidth" in oe ? oe.offsetWidth === 0 ? 0 : Ae / oe.offsetWidth : 0, $ = "offsetHeight" in oe ? oe.offsetHeight === 0 ? 0 : Te / oe.offsetHeight : 0;
4192
- if (g === oe) J = s === "start" ? ne : s === "end" ? ne - v : s === "nearest" ? xn(y, y + v, v, B, j, y + ne, y + ne + C, C) : ne - v / 2, q = l === "start" ? Q : l === "center" ? Q - w / 2 : l === "end" ? Q - w : xn(O, O + w, w, T, W, O + Q, O + Q + b, b), J = Math.max(0, J + y), q = Math.max(0, q + O);
4196
+ if (g === oe) J = s === "start" ? ne : s === "end" ? ne - w : s === "nearest" ? xn(y, y + w, w, B, j, y + ne, y + ne + C, C) : ne - w / 2, q = l === "start" ? Q : l === "center" ? Q - v / 2 : l === "end" ? Q - v : xn(O, O + v, v, T, W, O + Q, O + Q + b, b), J = Math.max(0, J + y), q = Math.max(0, q + O);
4193
4197
  else {
4194
4198
  J = s === "start" ? ne - E - B : s === "end" ? ne - k + j + R : s === "nearest" ? xn(E, k, Te, B, j + R, ne, ne + C, C) : ne - (E + Te / 2) + R / 2, q = l === "start" ? Q - P - T : l === "center" ? Q - (P + Ae / 2) + ae / 2 : l === "end" ? Q - K + W + ae : xn(P, K, Ae, T, W + ae, Q, Q + b, b);
4195
4199
  const { scrollLeft: Pe, scrollTop: De } = oe;
@@ -4734,11 +4738,11 @@ var la = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
4734
4738
  r.previousResultCount = I, ca(N, r.props.environment.document);
4735
4739
  }
4736
4740
  }, 200);
4737
- var a = r.props, s = a.defaultHighlightedIndex, l = a.initialHighlightedIndex, d = l === void 0 ? s : l, p = a.defaultIsOpen, h = a.initialIsOpen, g = h === void 0 ? p : h, f = a.initialInputValue, m = f === void 0 ? "" : f, w = a.initialSelectedItem, v = w === void 0 ? null : w, O = r.getState({
4741
+ var a = r.props, s = a.defaultHighlightedIndex, l = a.initialHighlightedIndex, d = l === void 0 ? s : l, p = a.defaultIsOpen, h = a.initialIsOpen, g = h === void 0 ? p : h, f = a.initialInputValue, m = f === void 0 ? "" : f, v = a.initialSelectedItem, w = v === void 0 ? null : v, O = r.getState({
4738
4742
  highlightedIndex: d,
4739
4743
  isOpen: g,
4740
4744
  inputValue: m,
4741
- selectedItem: v
4745
+ selectedItem: w
4742
4746
  });
4743
4747
  return O.selectedItem != null && r.props.initialInputValue === void 0 && (O.inputValue = r.props.itemToString(O.selectedItem)), r.state = O, r;
4744
4748
  }
@@ -4769,14 +4773,14 @@ var la = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
4769
4773
  this.setHighlightedIndex(p, a);
4770
4774
  }
4771
4775
  }, o.getStateAndHelpers = function() {
4772
- var r = this.getState(), a = r.highlightedIndex, s = r.inputValue, l = r.selectedItem, d = r.isOpen, p = this.props.itemToString, h = this.id, g = this.getRootProps, f = this.getToggleButtonProps, m = this.getLabelProps, w = this.getMenuProps, v = this.getInputProps, O = this.getItemProps, y = this.openMenu, C = this.closeMenu, b = this.toggleMenu, I = this.selectItem, N = this.selectItemAtIndex, V = this.selectHighlightedItem, D = this.setHighlightedIndex, H = this.clearSelection, Y = this.clearItems, z = this.reset, Z = this.setItemCount, ne = this.unsetItemCount, Q = this.internalSetState;
4776
+ var r = this.getState(), a = r.highlightedIndex, s = r.inputValue, l = r.selectedItem, d = r.isOpen, p = this.props.itemToString, h = this.id, g = this.getRootProps, f = this.getToggleButtonProps, m = this.getLabelProps, v = this.getMenuProps, w = this.getInputProps, O = this.getItemProps, y = this.openMenu, C = this.closeMenu, b = this.toggleMenu, I = this.selectItem, N = this.selectItemAtIndex, V = this.selectHighlightedItem, D = this.setHighlightedIndex, H = this.clearSelection, Y = this.clearItems, z = this.reset, Z = this.setItemCount, ne = this.unsetItemCount, Q = this.internalSetState;
4773
4777
  return {
4774
4778
  // prop getters
4775
4779
  getRootProps: g,
4776
4780
  getToggleButtonProps: f,
4777
4781
  getLabelProps: m,
4778
- getMenuProps: w,
4779
- getInputProps: v,
4782
+ getMenuProps: v,
4783
+ getInputProps: w,
4780
4784
  getItemProps: O,
4781
4785
  // actions
4782
4786
  reset: z,
@@ -5010,10 +5014,10 @@ function Oa(e) {
5010
5014
  function Qp(e, t, n, o) {
5011
5015
  var i = ke(), r = ke(), a = ee(function(f, m) {
5012
5016
  r.current = m, f = Vn(f, m.props);
5013
- var w = e(f, m), v = m.props.stateReducer(f, re({}, m, {
5014
- changes: w
5017
+ var v = e(f, m), w = m.props.stateReducer(f, re({}, m, {
5018
+ changes: v
5015
5019
  }));
5016
- return v;
5020
+ return w;
5017
5021
  }, [e]), s = bc(a, t, n), l = s[0], d = s[1], p = Oa(t), h = ee(function(f) {
5018
5022
  return d(re({
5019
5023
  props: p.current
@@ -5474,7 +5478,7 @@ var ff = ["onMouseLeave", "refKey", "ref"], hf = ["item", "index", "refKey", "re
5474
5478
  co.stateChangeTypes = Ka;
5475
5479
  function co(e) {
5476
5480
  e === void 0 && (e = {}), $a(e, co);
5477
- var t = re({}, df, e), n = t.items, o = t.scrollIntoView, i = t.environment, r = t.getA11yStatusMessage, a = uf(pf, t, cf, of), s = a[0], l = a[1], d = s.isOpen, p = s.highlightedIndex, h = s.selectedItem, g = s.inputValue, f = ke(null), m = ke({}), w = ke(null), v = ke(null), O = er(), y = Gp(t), C = ke(), b = Oa({
5481
+ var t = re({}, df, e), n = t.items, o = t.scrollIntoView, i = t.environment, r = t.getA11yStatusMessage, a = uf(pf, t, cf, of), s = a[0], l = a[1], d = s.isOpen, p = s.highlightedIndex, h = s.selectedItem, g = s.inputValue, f = ke(null), m = ke({}), v = ke(null), w = ke(null), O = er(), y = Gp(t), C = ke(), b = Oa({
5478
5482
  state: s,
5479
5483
  props: t
5480
5484
  }), I = ee(function(k) {
@@ -5494,7 +5498,7 @@ function co(e) {
5494
5498
  state: s
5495
5499
  }), ie(function() {
5496
5500
  var k = ln(t, "isOpen");
5497
- k && w.current && w.current.focus();
5501
+ k && v.current && v.current.focus();
5498
5502
  }, []), ie(function() {
5499
5503
  O || (C.current = n.length);
5500
5504
  });
@@ -5504,13 +5508,13 @@ function co(e) {
5504
5508
  selectItem: !1
5505
5509
  });
5506
5510
  }, [l, b]), Re(function() {
5507
- return [f, v, w];
5508
- }, [f.current, v.current, w.current])), D = Na("getInputProps", "getMenuProps");
5511
+ return [f, w, v];
5512
+ }, [f.current, w.current, v.current])), D = Na("getInputProps", "getMenuProps");
5509
5513
  ie(function() {
5510
5514
  d || (m.current = {});
5511
5515
  }, [d]), ie(function() {
5512
5516
  var k;
5513
- !d || !(i != null && i.document) || !(w != null && (k = w.current) != null && k.focus) || i.document.activeElement !== w.current && w.current.focus();
5517
+ !d || !(i != null && i.document) || !(v != null && (k = v.current) != null && k.focus) || i.document.activeElement !== v.current && v.current.focus();
5514
5518
  }, [d, i]);
5515
5519
  var H = Re(function() {
5516
5520
  return {
@@ -5607,7 +5611,7 @@ function co(e) {
5607
5611
  });
5608
5612
  };
5609
5613
  return re((P = {}, P[W] = Ht(j, function(R) {
5610
- v.current = R;
5614
+ w.current = R;
5611
5615
  }), P["aria-controls"] = y.menuId, P["aria-expanded"] = q.isOpen, P.id = y.toggleButtonId, P.tabIndex = -1, P), !J.disabled && re({}, {
5612
5616
  onClick: be(T, ae)
5613
5617
  }), J);
@@ -5615,7 +5619,7 @@ function co(e) {
5615
5619
  var A, T = k === void 0 ? {} : k, B = T.onKeyDown, W = T.onChange, j = T.onInput, J = T.onBlur;
5616
5620
  T.onChangeText;
5617
5621
  var q = T.onClick, ae = T.refKey, R = ae === void 0 ? "ref" : ae, fe = T.ref, $ = pt(T, gf), Pe = P === void 0 ? {} : P, De = Pe.suppressRefError, st = De === void 0 ? !1 : De;
5618
- D("getInputProps", st, R, w);
5622
+ D("getInputProps", st, R, v);
5619
5623
  var Xe = b.current.state, $t = function(Ke) {
5620
5624
  var Fe = xr(Ke);
5621
5625
  Fe && H[Fe] && H[Fe](Ke);
@@ -5642,7 +5646,7 @@ function co(e) {
5642
5646
  Lt = (nt = {}, nt[en] = be(W, j, Qt), nt.onKeyDown = be(B, $t), nt.onBlur = be(J, Ye), nt.onClick = be(q, St), nt);
5643
5647
  }
5644
5648
  return re((A = {}, A[R] = Ht(fe, function(ct) {
5645
- w.current = ct;
5649
+ v.current = ct;
5646
5650
  }), A["aria-activedescendant"] = Xe.isOpen && Xe.highlightedIndex > -1 ? y.getItemId(Xe.highlightedIndex) : "", A["aria-autocomplete"] = "list", A["aria-controls"] = y.menuId, A["aria-expanded"] = Xe.isOpen, A["aria-labelledby"] = $ && $["aria-label"] ? void 0 : y.labelId, A.autoComplete = "off", A.id = y.inputId, A.role = "combobox", A.value = Xe.inputValue, A), Lt, $);
5647
5651
  }, [l, y, i, H, b, V, D]), de = ee(function() {
5648
5652
  l({
@@ -6296,12 +6300,12 @@ function Uf({ children: e }) {
6296
6300
  );
6297
6301
  }, [n, o, a, i]);
6298
6302
  const s = ee((f, m) => {
6299
- r((w) => sn(w, (v) => {
6300
- v[f] = sn(v[f], m);
6303
+ r((v) => sn(v, (w) => {
6304
+ w[f] = sn(w[f], m);
6301
6305
  }));
6302
6306
  }, [r]), l = ee((f, m) => {
6303
- r((w) => sn(w, (v) => {
6304
- v[f] = m;
6307
+ r((v) => sn(v, (w) => {
6308
+ w[f] = m;
6305
6309
  }));
6306
6310
  }, [r]), d = ee(() => {
6307
6311
  r(
@@ -6313,9 +6317,9 @@ function Uf({ children: e }) {
6313
6317
  }, [r]), p = ee((f) => {
6314
6318
  r(
6315
6319
  sn((m) => {
6316
- var v;
6317
- const w = (v = m[f]) == null ? void 0 : v.read;
6318
- w && (w.isOptionalFieldsModified = !1, w.isRequiredMapFieldsModified = !1);
6320
+ var w;
6321
+ const v = (w = m[f]) == null ? void 0 : w.read;
6322
+ v && (v.isOptionalFieldsModified = !1, v.isRequiredMapFieldsModified = !1);
6319
6323
  })
6320
6324
  );
6321
6325
  }, [r]), h = ee((f) => {
@@ -6497,13 +6501,13 @@ function Xf(e, t = []) {
6497
6501
  n = [...n, a];
6498
6502
  const d = (h) => {
6499
6503
  var O;
6500
- const { scope: g, children: f, ...m } = h, w = ((O = g == null ? void 0 : g[e]) == null ? void 0 : O[l]) || s, v = X.useMemo(() => m, Object.values(m));
6501
- return /* @__PURE__ */ c(w.Provider, { value: v, children: f });
6504
+ const { scope: g, children: f, ...m } = h, v = ((O = g == null ? void 0 : g[e]) == null ? void 0 : O[l]) || s, w = X.useMemo(() => m, Object.values(m));
6505
+ return /* @__PURE__ */ c(v.Provider, { value: w, children: f });
6502
6506
  };
6503
6507
  d.displayName = r + "Provider";
6504
6508
  function p(h, g) {
6505
- var w;
6506
- const f = ((w = g == null ? void 0 : g[e]) == null ? void 0 : w[l]) || s, m = X.useContext(f);
6509
+ var v;
6510
+ const f = ((v = g == null ? void 0 : g[e]) == null ? void 0 : v[l]) || s, m = X.useContext(f);
6507
6511
  if (m) return m;
6508
6512
  if (a !== void 0) return a;
6509
6513
  throw new Error(`\`${h}\` must be used within \`${r}\``);
@@ -6645,11 +6649,11 @@ function nh(e) {
6645
6649
  if (t) {
6646
6650
  let d;
6647
6651
  const p = t.ownerDocument.defaultView ?? window, h = (f) => {
6648
- const w = An(o.current).includes(f.animationName);
6649
- if (f.target === t && w && (l("ANIMATION_END"), !i.current)) {
6650
- const v = t.style.animationFillMode;
6652
+ const v = An(o.current).includes(f.animationName);
6653
+ if (f.target === t && v && (l("ANIMATION_END"), !i.current)) {
6654
+ const w = t.style.animationFillMode;
6651
6655
  t.style.animationFillMode = "forwards", d = p.setTimeout(() => {
6652
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
6656
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w);
6653
6657
  });
6654
6658
  }
6655
6659
  }, g = (f) => {
@@ -6752,7 +6756,7 @@ var ch = [
6752
6756
  onCheckedChange: d,
6753
6757
  form: p,
6754
6758
  ...h
6755
- } = e, [g, f] = X.useState(null), m = Ga(t, (b) => f(b)), w = X.useRef(!1), v = g ? p || !!g.closest("form") : !0, [O = !1, y] = Gf({
6759
+ } = e, [g, f] = X.useState(null), m = Ga(t, (b) => f(b)), v = X.useRef(!1), w = g ? p || !!g.closest("form") : !0, [O = !1, y] = Gf({
6756
6760
  prop: i,
6757
6761
  defaultProp: r,
6758
6762
  onChange: d
@@ -6781,15 +6785,15 @@ var ch = [
6781
6785
  b.key === "Enter" && b.preventDefault();
6782
6786
  }),
6783
6787
  onClick: hi(e.onClick, (b) => {
6784
- y((I) => _t(I) ? !0 : !I), v && (w.current = b.isPropagationStopped(), w.current || b.stopPropagation());
6788
+ y((I) => _t(I) ? !0 : !I), w && (v.current = b.isPropagationStopped(), v.current || b.stopPropagation());
6785
6789
  })
6786
6790
  }
6787
6791
  ),
6788
- v && /* @__PURE__ */ c(
6792
+ w && /* @__PURE__ */ c(
6789
6793
  ph,
6790
6794
  {
6791
6795
  control: g,
6792
- bubbles: !w.current,
6796
+ bubbles: !v.current,
6793
6797
  name: o,
6794
6798
  value: l,
6795
6799
  checked: O,
@@ -7016,12 +7020,12 @@ function Ch() {
7016
7020
  setConfigureState: n,
7017
7021
  selectedObjectName: o
7018
7022
  } = Nt(), i = (h = t == null ? void 0 : t.read) == null ? void 0 : h.selectedOptionalFields, r = (f) => {
7019
- const { name: m, checked: w } = f.target;
7020
- o && t && Jn(o, n, m, w);
7023
+ const { name: m, checked: v } = f.target;
7024
+ o && t && Jn(o, n, m, v);
7021
7025
  }, a = (g = t == null ? void 0 : t.read) == null ? void 0 : g.optionalFields, s = (f) => {
7022
7026
  const { checked: m } = f.target;
7023
- o && a && a.forEach((w) => {
7024
- at(w) || Jn(o, n, w.fieldName, m);
7027
+ o && a && a.forEach((v) => {
7028
+ at(v) || Jn(o, n, v.fieldName, m);
7025
7029
  });
7026
7030
  }, l = !!(a && a.length > 0), d = Object.keys(i || {}).length === (a == null ? void 0 : a.length), p = !d && Object.keys(i || {}).length > 0;
7027
7031
  return l && /* @__PURE__ */ F(We, { children: [
@@ -7125,16 +7129,16 @@ function Ph() {
7125
7129
  selectedObjectName: t,
7126
7130
  configureState: n,
7127
7131
  setConfigureState: o
7128
- } = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (w, v) => {
7129
- w !== "indeterminate" && t && n && zn(t, o, v, w);
7130
- }, s = (w) => {
7131
- var v, O;
7132
- t && n && ((O = (v = n == null ? void 0 : n.write) == null ? void 0 : v.writeObjects) == null || O.forEach((y) => {
7133
- zn(t, o, y.objectName, w);
7132
+ } = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (v, w) => {
7133
+ v !== "indeterminate" && t && n && zn(t, o, w, v);
7134
+ }, s = (v) => {
7135
+ var w, O;
7136
+ t && n && ((O = (w = n == null ? void 0 : n.write) == null ? void 0 : w.writeObjects) == null || O.forEach((y) => {
7137
+ zn(t, o, y.objectName, v);
7134
7138
  }));
7135
7139
  }, l = !!r, d = Object.keys(i || {}).length === ((m = (f = n == null ? void 0 : n.write) == null ? void 0 : f.writeObjects) == null ? void 0 : m.length), p = !d && Object.keys(i || {}).length > 0;
7136
7140
  return l && /* @__PURE__ */ F(We, { children: [
7137
- /* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these object` }),
7141
+ /* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these objects` }),
7138
7142
  /* @__PURE__ */ F(ps, { children: [
7139
7143
  ((r == null ? void 0 : r.length) || 0) >= 2 && /* @__PURE__ */ c(
7140
7144
  ds,
@@ -7146,15 +7150,15 @@ function Ph() {
7146
7150
  label: "Select all"
7147
7151
  }
7148
7152
  ),
7149
- /* @__PURE__ */ c(fs, { children: r.map((w) => /* @__PURE__ */ c(
7153
+ /* @__PURE__ */ c(fs, { children: r.map((v) => /* @__PURE__ */ c(
7150
7154
  us,
7151
7155
  {
7152
- id: w.objectName,
7153
- onCheckedChange: (v) => a(v, w.objectName),
7154
- isChecked: !!(i != null && i[w.objectName]),
7155
- label: w.displayName
7156
+ id: v.objectName,
7157
+ onCheckedChange: (w) => a(w, v.objectName),
7158
+ isChecked: !!(i != null && i[v.objectName]),
7159
+ label: v.displayName
7156
7160
  },
7157
- w.objectName
7161
+ v.objectName
7158
7162
  )) })
7159
7163
  ] })
7160
7164
  ] });
@@ -7166,18 +7170,18 @@ function Dh() {
7166
7170
  selectedObjectName: t,
7167
7171
  configureState: n,
7168
7172
  setConfigureState: o
7169
- } = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (w) => {
7170
- const { name: v, checked: O } = w.target;
7171
- t && n && zn(t, o, v, O);
7172
- }, s = (w) => {
7173
+ } = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (v) => {
7174
+ const { name: w, checked: O } = v.target;
7175
+ t && n && zn(t, o, w, O);
7176
+ }, s = (v) => {
7173
7177
  var O, y;
7174
- const { checked: v } = w.target;
7178
+ const { checked: w } = v.target;
7175
7179
  t && n && ((y = (O = n == null ? void 0 : n.write) == null ? void 0 : O.writeObjects) == null || y.forEach((C) => {
7176
- zn(t, o, C.objectName, v);
7180
+ zn(t, o, C.objectName, w);
7177
7181
  }));
7178
7182
  }, l = !!r, d = Object.keys(i || {}).length === ((m = (f = n == null ? void 0 : n.write) == null ? void 0 : f.writeObjects) == null ? void 0 : m.length), p = !d && Object.keys(i || {}).length > 0;
7179
7183
  return l && /* @__PURE__ */ F(We, { children: [
7180
- /* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these object` }),
7184
+ /* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these objects` }),
7181
7185
  /* @__PURE__ */ F(
7182
7186
  Kt,
7183
7187
  {
@@ -7199,7 +7203,7 @@ function Dh() {
7199
7203
  children: "Select all"
7200
7204
  }
7201
7205
  ) }),
7202
- r.map((w) => /* @__PURE__ */ c(
7206
+ r.map((v) => /* @__PURE__ */ c(
7203
7207
  Je,
7204
7208
  {
7205
7209
  display: "flex",
@@ -7211,15 +7215,15 @@ function Dh() {
7211
7215
  children: /* @__PURE__ */ c(
7212
7216
  $n,
7213
7217
  {
7214
- name: w.objectName,
7215
- id: w.objectName,
7218
+ name: v.objectName,
7219
+ id: v.objectName,
7216
7220
  onChange: a,
7217
- isChecked: !!(i != null && i[w.objectName]),
7218
- children: /* @__PURE__ */ c("p", { style: { overflowWrap: "anywhere" }, children: w.displayName })
7221
+ isChecked: !!(i != null && i[v.objectName]),
7222
+ children: /* @__PURE__ */ c("p", { style: { overflowWrap: "anywhere" }, children: v.displayName })
7219
7223
  }
7220
7224
  )
7221
7225
  },
7222
- w.objectName
7226
+ v.objectName
7223
7227
  ))
7224
7228
  ]
7225
7229
  }
@@ -7252,8 +7256,8 @@ function kh() {
7252
7256
  }
7253
7257
  }
7254
7258
  ), console.warn("successfully uninstalled installation: ", i.id), s == null || s(i == null ? void 0 : i.id), r(), a();
7255
- } catch (w) {
7256
- console.error("Error uninstalling installation."), Ee(w);
7259
+ } catch (v) {
7260
+ console.error("Error uninstalling installation."), Ee(v);
7257
7261
  } finally {
7258
7262
  d(!1);
7259
7263
  }
@@ -7323,9 +7327,9 @@ const ms = () => {
7323
7327
  resetBoundary: g,
7324
7328
  setErrors: f,
7325
7329
  setError: m,
7326
- getError: w
7330
+ getError: v
7327
7331
  } = Ot(), {
7328
- resetConfigureState: v,
7332
+ resetConfigureState: w,
7329
7333
  objectConfigurationsState: O,
7330
7334
  resetPendingConfigurationState: y
7331
7335
  } = po(), C = Xi(l || "", O), { onNextIncompleteTab: b } = xf(), I = ee(() => {
@@ -7335,8 +7339,8 @@ const ms = () => {
7335
7339
  } : (H) => {
7336
7340
  console.error("objectName is required to set installation error: ", H);
7337
7341
  }, [m]), V = ee(
7338
- (D) => D ? w(ye.INSTALLATION_MUTATION, D) : "",
7339
- [w]
7342
+ (D) => D ? v(ye.INSTALLATION_MUTATION, D) : "",
7343
+ [v]
7340
7344
  );
7341
7345
  return {
7342
7346
  integrationId: e,
@@ -7354,7 +7358,7 @@ const ms = () => {
7354
7358
  setMutateInstallationError: N,
7355
7359
  getMutateInstallationError: V,
7356
7360
  resetMutateInstallationErrorState: I,
7357
- resetConfigureState: v,
7361
+ resetConfigureState: w,
7358
7362
  objectConfigurationsState: O,
7359
7363
  resetPendingConfigurationState: y,
7360
7364
  configureState: C,
@@ -7380,8 +7384,8 @@ function Lh() {
7380
7384
  setMutateInstallationError: g,
7381
7385
  getMutateInstallationError: f,
7382
7386
  resetMutateInstallationErrorState: m,
7383
- resetConfigureState: w,
7384
- objectConfigurationsState: v,
7387
+ resetConfigureState: v,
7388
+ objectConfigurationsState: w,
7385
7389
  resetPendingConfigurationState: O,
7386
7390
  configureState: y,
7387
7391
  onInstallSuccess: C,
@@ -7392,14 +7396,14 @@ function Lh() {
7392
7396
  i,
7393
7397
  $h,
7394
7398
  a,
7395
- w
7399
+ v
7396
7400
  );
7397
7401
  },
7398
- [p, i, r, a, w]
7402
+ [p, i, r, a, v]
7399
7403
  );
7400
7404
  ie(() => {
7401
7405
  !y && (i != null && i.content) && !r && H();
7402
- }, [y, v, i, r, H]);
7406
+ }, [y, w, i, r, H]);
7403
7407
  const Y = () => {
7404
7408
  m();
7405
7409
  const { requiredMapFields: ne, selectedFieldMappings: Q } = (y == null ? void 0 : y.read) || {}, { errorList: de } = Bi(
@@ -7581,8 +7585,8 @@ function qh({ installation: e, integrationObj: t }) {
7581
7585
  resetConfigureState: g,
7582
7586
  resetPendingConfigurationState: f,
7583
7587
  configureState: m,
7584
- onUpdateSuccess: w,
7585
- onNextIncompleteTab: v
7588
+ onUpdateSuccess: v,
7589
+ onNextIncompleteTab: w
7586
7590
  } = ms(), [O, y] = U(!1), C = r === Ft, b = h(r), { config: I } = e, N = ee(
7587
7591
  () => {
7588
7592
  l(ye.MAPPING), o != null && o.content && !i && r && Wi(o, I, r, g);
@@ -7617,9 +7621,9 @@ function qh({ installation: e, integrationObj: t }) {
7617
7621
  o,
7618
7622
  p(r),
7619
7623
  // setError
7620
- w
7624
+ v
7621
7625
  ).finally(() => {
7622
- y(!1), f(r), v();
7626
+ y(!1), f(r), w();
7623
7627
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props"));
7624
7628
  }, H = () => {
7625
7629
  e && r && a && s && o ? (y(!0), Bh(
@@ -7632,9 +7636,9 @@ function qh({ installation: e, integrationObj: t }) {
7632
7636
  p(r),
7633
7637
  // setError
7634
7638
  n,
7635
- w
7639
+ v
7636
7640
  ).finally(() => {
7637
- y(!1), f(r), v();
7641
+ y(!1), f(r), w();
7638
7642
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props");
7639
7643
  };
7640
7644
  return /* @__PURE__ */ c(
@@ -7757,11 +7761,11 @@ function Zh({ children: e, resetComponent: t }) {
7757
7761
  setInstallation: p,
7758
7762
  onInstallSuccess: h,
7759
7763
  isIntegrationDeleted: g
7760
- } = tt(), { selectedConnection: f } = Gt(), [m, w] = U(!1), v = r || m, O = (b = i == null ? void 0 : i.content) == null ? void 0 : b.provider, y = Gh(i), C = (I) => {
7764
+ } = tt(), { selectedConnection: f } = Gt(), [m, v] = U(!1), w = r || m, O = (b = i == null ? void 0 : i.content) == null ? void 0 : b.provider, y = Gh(i), C = (I) => {
7761
7765
  console.error("Error when creating proxy installation:", I);
7762
7766
  };
7763
7767
  return ie(() => {
7764
- !v && i && y && !s && f && o && (a != null && a.id) && (w(!0), Xh({
7768
+ !w && i && y && !s && f && o && (a != null && a.id) && (v(!0), Xh({
7765
7769
  apiKey: o,
7766
7770
  projectId: n,
7767
7771
  integrationId: a == null ? void 0 : a.id,
@@ -7773,9 +7777,9 @@ function Zh({ children: e, resetComponent: t }) {
7773
7777
  setInstallation: p,
7774
7778
  onInstallSuccess: h
7775
7779
  }).then(() => {
7776
- w(!1);
7780
+ v(!1);
7777
7781
  }).catch((I) => {
7778
- w(!1), console.error("Error when creating proxy installation:", I);
7782
+ v(!1), console.error("Error when creating proxy installation:", I);
7779
7783
  }));
7780
7784
  }, [
7781
7785
  i,
@@ -7788,9 +7792,9 @@ function Zh({ children: e, resetComponent: t }) {
7788
7792
  l,
7789
7793
  d,
7790
7794
  p,
7791
- v,
7795
+ w,
7792
7796
  h
7793
- ]), a ? v ? /* @__PURE__ */ c(Ze, {}) : y && O && s ? /* @__PURE__ */ c(Yh, { provider: O }) : g ? /* @__PURE__ */ c(
7797
+ ]), a ? w ? /* @__PURE__ */ c(Ze, {}) : y && O && s ? /* @__PURE__ */ c(Yh, { provider: O }) : g ? /* @__PURE__ */ c(
7794
7798
  mo,
7795
7799
  {
7796
7800
  text: "Integration successfully uninstalled.",
@@ -7975,8 +7979,8 @@ function um({
7975
7979
  error: o,
7976
7980
  isButtonDisabled: i
7977
7981
  }) {
7978
- var w;
7979
- const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), p = (v) => d(v.currentTarget.value), h = l.length > 0, g = i || !h, f = gt(e, t), m = (w = t.apiKeyOpts) == null ? void 0 : w.docsURL;
7982
+ var v;
7983
+ const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), p = (w) => d(w.currentTarget.value), h = l.length > 0, g = i || !h, f = gt(e, t), m = (v = t.apiKeyOpts) == null ? void 0 : v.docsURL;
7980
7984
  return /* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ F(mt, { children: [
7981
7985
  /* @__PURE__ */ c(bt, { my: "6", children: /* @__PURE__ */ c(Ct, { as: "h4", size: "md", children: `Set up ${f} integration` }) }),
7982
7986
  /* @__PURE__ */ c(je, { error: o }),
@@ -8025,8 +8029,8 @@ function dm({
8025
8029
  error: o,
8026
8030
  isButtonDisabled: i
8027
8031
  }) {
8028
- var w;
8029
- const [r, a] = U(!1), s = () => a((v) => !v), [l, d] = U(""), p = (v) => d(v.currentTarget.value), h = l.length > 0, g = i || !h, f = gt(e, t), m = (w = t.apiKeyOpts) == null ? void 0 : w.docsURL;
8032
+ var v;
8033
+ const [r, a] = U(!1), s = () => a((w) => !w), [l, d] = U(""), p = (w) => d(w.currentTarget.value), h = l.length > 0, g = i || !h, f = gt(e, t), m = (v = t.apiKeyOpts) == null ? void 0 : v.docsURL;
8030
8034
  return /* @__PURE__ */ c(
8031
8035
  go,
8032
8036
  {
@@ -8062,7 +8066,7 @@ function dm({
8062
8066
  name: "password",
8063
8067
  type: r ? "text" : "password",
8064
8068
  placeholder: "Password",
8065
- onChange: (v) => p(v)
8069
+ onChange: (w) => p(w)
8066
8070
  }
8067
8071
  ),
8068
8072
  /* @__PURE__ */ c(
@@ -8098,7 +8102,7 @@ function fm({
8098
8102
  const d = _e(), [p, h] = U(!1), [g, f] = U(null), m = Ce();
8099
8103
  ie(() => {
8100
8104
  if (e && me && p && g != null) {
8101
- const v = {
8105
+ const w = {
8102
8106
  groupName: r,
8103
8107
  groupRef: i,
8104
8108
  consumerName: o,
@@ -8106,7 +8110,7 @@ function fm({
8106
8110
  provider: e,
8107
8111
  apiKey: g
8108
8112
  };
8109
- me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: v }, {
8113
+ me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: w }, {
8110
8114
  headers: { "X-Api-Key": m ?? "", "Content-Type": "application/json" }
8111
8115
  }).then((O) => {
8112
8116
  l(O);
@@ -8126,10 +8130,10 @@ function fm({
8126
8130
  l,
8127
8131
  g
8128
8132
  ]);
8129
- const w = (v) => {
8130
- f(v.apiKey), h(!0);
8133
+ const v = (w) => {
8134
+ f(w.apiKey), h(!0);
8131
8135
  };
8132
- return s === null ? /* @__PURE__ */ c(pm, { provider: e, providerInfo: t, handleSubmit: w, error: null }) : a;
8136
+ return s === null ? /* @__PURE__ */ c(pm, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : a;
8133
8137
  }
8134
8138
  function hm({
8135
8139
  provider: e,
@@ -8139,16 +8143,16 @@ function hm({
8139
8143
  isButtonDisabled: i
8140
8144
  }) {
8141
8145
  var y;
8142
- const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), [p, h] = U(""), g = (C) => d(C.currentTarget.value), f = (C) => h(C.currentTarget.value), m = gt(e, t), w = (y = t.basicOpts) == null ? void 0 : y.docsURL, v = l.length > 0, O = i || !v;
8146
+ const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), [p, h] = U(""), g = (C) => d(C.currentTarget.value), f = (C) => h(C.currentTarget.value), m = gt(e, t), v = (y = t.basicOpts) == null ? void 0 : y.docsURL, w = l.length > 0, O = i || !w;
8143
8147
  return /* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ F(mt, { children: [
8144
8148
  /* @__PURE__ */ c(bt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ c(Ct, { as: "h4", size: "md", children: `Set up ${m} integration` }) }),
8145
8149
  /* @__PURE__ */ c(je, { error: o }),
8146
8150
  /* @__PURE__ */ c("br", {}),
8147
8151
  /* @__PURE__ */ F(Kt, { spacing: 4, children: [
8148
- w && /* @__PURE__ */ c(
8152
+ v && /* @__PURE__ */ c(
8149
8153
  ir,
8150
8154
  {
8151
- url: w,
8155
+ url: v,
8152
8156
  providerDisplayName: m,
8153
8157
  credentialName: "credentials"
8154
8158
  }
@@ -8191,7 +8195,7 @@ function mm({
8191
8195
  isButtonDisabled: i
8192
8196
  }) {
8193
8197
  var O;
8194
- const [r, a] = U(!1), s = () => a((y) => !y), [l, d] = U({ username: "", password: "" }), { username: p, password: h } = l, g = gt(e, t), f = (O = t.basicOpts) == null ? void 0 : O.docsURL, m = p.length > 0, w = i || !m, v = (y) => {
8198
+ const [r, a] = U(!1), s = () => a((y) => !y), [l, d] = U({ username: "", password: "" }), { username: p, password: h } = l, g = gt(e, t), f = (O = t.basicOpts) == null ? void 0 : O.docsURL, m = p.length > 0, v = i || !m, w = (y) => {
8195
8199
  const { name: C, value: b } = y.currentTarget;
8196
8200
  d((I) => ({ ...I, [C]: b }));
8197
8201
  };
@@ -8203,7 +8207,7 @@ function mm({
8203
8207
  n({ user: p, pass: h });
8204
8208
  },
8205
8209
  error: o,
8206
- isButtonDisabled: w,
8210
+ isButtonDisabled: v,
8207
8211
  children: /* @__PURE__ */ F(
8208
8212
  "div",
8209
8213
  {
@@ -8229,7 +8233,7 @@ function mm({
8229
8233
  name: "username",
8230
8234
  type: "text",
8231
8235
  placeholder: "Username",
8232
- onChange: (y) => v(y)
8236
+ onChange: (y) => w(y)
8233
8237
  }
8234
8238
  ),
8235
8239
  /* @__PURE__ */ F("div", { style: { display: "flex", gap: ".5rem" }, children: [
@@ -8240,7 +8244,7 @@ function mm({
8240
8244
  name: "password",
8241
8245
  type: r ? "text" : "password",
8242
8246
  placeholder: "Password",
8243
- onChange: (y) => v(y)
8247
+ onChange: (y) => w(y)
8244
8248
  }
8245
8249
  ),
8246
8250
  /* @__PURE__ */ c(
@@ -8276,7 +8280,7 @@ function ym({
8276
8280
  const d = _e(), [p, h] = U(!1), [g, f] = U(null), m = Ce();
8277
8281
  ie(() => {
8278
8282
  if (e && me && p && g != null) {
8279
- const v = {
8283
+ const w = {
8280
8284
  groupName: r,
8281
8285
  groupRef: i,
8282
8286
  consumerName: o,
@@ -8287,7 +8291,7 @@ function ym({
8287
8291
  password: g.pass
8288
8292
  }
8289
8293
  };
8290
- me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: v }, {
8294
+ me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: w }, {
8291
8295
  headers: { "X-Api-Key": m ?? "", "Content-Type": "application/json" }
8292
8296
  }).then((O) => {
8293
8297
  l(O);
@@ -8307,8 +8311,8 @@ function ym({
8307
8311
  g,
8308
8312
  l
8309
8313
  ]);
8310
- const w = (v) => {
8311
- const { user: O, pass: y } = v;
8314
+ const v = (w) => {
8315
+ const { user: O, pass: y } = w;
8312
8316
  f({ user: O, pass: y }), h(!0);
8313
8317
  };
8314
8318
  return s === null ? /* @__PURE__ */ c(
@@ -8316,7 +8320,7 @@ function ym({
8316
8320
  {
8317
8321
  provider: e,
8318
8322
  providerInfo: t,
8319
- handleSubmit: w,
8323
+ handleSubmit: v,
8320
8324
  error: null
8321
8325
  }
8322
8326
  ) : a;
@@ -8370,10 +8374,10 @@ function wm({
8370
8374
  };
8371
8375
  me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: m }, {
8372
8376
  headers: { "X-Api-Key": p ?? "", "Content-Type": "application/json" }
8373
- }).then((w) => {
8374
- s(w);
8375
- }).catch((w) => {
8376
- console.error("Error loading provider info."), Ee(w);
8377
+ }).then((v) => {
8378
+ s(v);
8379
+ }).catch((v) => {
8380
+ console.error("Error loading provider info."), Ee(v);
8377
8381
  });
8378
8382
  }
8379
8383
  }, [p, e, h, n, t, i, o, s, d]);
@@ -8392,7 +8396,7 @@ const ys = async (e, t, n, o, i, r, a, s) => {
8392
8396
  if (l.authType === "oauth2" && ((d = l.oauth2Opts) == null ? void 0 : d.grantType) === "authorizationCode") {
8393
8397
  const h = (await me().providerAppApi.listProviderApps({ projectIdOrName: e }, {
8394
8398
  headers: { "X-Api-Key": o ?? "" }
8395
- })).find((w) => w.provider === i), g = gt(i, l);
8399
+ })).find((v) => v.provider === i), g = gt(i, l);
8396
8400
  if (!h)
8397
8401
  throw new Error(`You must first set up a ${g} Provider App using the Ampersand Console.`);
8398
8402
  const f = {
@@ -8446,7 +8450,7 @@ function vs({
8446
8450
  error: i
8447
8451
  }) {
8448
8452
  const r = Ce(), { projectId: a } = _e(), [s, l] = U(null), [d, p] = U(null), { setSelectedConnection: h } = Gt(), g = Nm(l, o), f = Om(n, p, g, t), m = Cm(a, r, h);
8449
- ie(() => {
8453
+ return ie(() => {
8450
8454
  t && !d && f();
8451
8455
  }, [t, d, f, g, n]), ie(() => {
8452
8456
  s && m(s).then(() => {
@@ -8454,11 +8458,15 @@ function vs({
8454
8458
  }).catch((v) => {
8455
8459
  console.error("Error refreshing connection: ", v), o == null || o(v.message ?? "Unexpected error: not able to refresh connection");
8456
8460
  });
8457
- }, [s, r, h, m, d, o]);
8458
- const w = d && setInterval(() => {
8459
- (d != null && d.closed || !d) && w && (clearInterval(w), window.removeEventListener("message", g), p(null), !s && !i ? (console.error("OAuth failed. Please try again."), o == null || o("OAuth failed. Please try again.")) : s && o && (o == null || o(null)));
8460
- }, 500);
8461
- return /* @__PURE__ */ c("div", { children: e });
8461
+ }, [s, r, h, m, d, o]), ie(() => {
8462
+ if (!d) return;
8463
+ const v = setInterval(() => {
8464
+ d.closed && (clearInterval(v), window.removeEventListener("message", g), p(null), !s && !i ? (console.error("OAuth failed. Please try again."), o == null || o("OAuth failed. Please try again.")) : s && (o == null || o(null)));
8465
+ }, 500);
8466
+ return () => {
8467
+ clearInterval(v), window.removeEventListener("message", g);
8468
+ };
8469
+ }, [d, s, i, g, o]), /* @__PURE__ */ c("div", { children: e });
8462
8470
  }
8463
8471
  function Sm({
8464
8472
  handleSubmit: e,
@@ -8742,9 +8750,9 @@ function km({
8742
8750
  } catch (O) {
8743
8751
  console.error(O), f((O == null ? void 0 : O.message) ?? "Unexpected error");
8744
8752
  }
8745
- }, w = ee((O) => {
8753
+ }, v = ee((O) => {
8746
8754
  f(O), h(null);
8747
- }, []), v = e === Fm ? /* @__PURE__ */ c(
8755
+ }, []), w = e === Fm ? /* @__PURE__ */ c(
8748
8756
  Am,
8749
8757
  {
8750
8758
  handleSubmit: m,
@@ -8770,8 +8778,8 @@ function km({
8770
8778
  {
8771
8779
  windowTitle: `Connect to ${r}`,
8772
8780
  oauthUrl: p,
8773
- onError: w,
8774
- children: v
8781
+ onError: v,
8782
+ children: w
8775
8783
  }
8776
8784
  );
8777
8785
  }
@@ -8782,7 +8790,7 @@ function Mm({
8782
8790
  isButtonDisabled: o,
8783
8791
  providerName: i
8784
8792
  }) {
8785
- const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), f = () => a(!r), m = (I) => l(I.currentTarget.value), w = (I) => p(I.currentTarget.value), v = (I) => g(I.currentTarget.value), O = s.length > 0, y = d.length > 0, C = o || !O || !y, b = () => {
8793
+ const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), f = () => a(!r), m = (I) => l(I.currentTarget.value), v = (I) => p(I.currentTarget.value), w = (I) => g(I.currentTarget.value), O = s.length > 0, y = d.length > 0, C = o || !O || !y, b = () => {
8786
8794
  const I = {
8787
8795
  clientId: d,
8788
8796
  clientSecret: s
@@ -8794,7 +8802,7 @@ function Mm({
8794
8802
  /* @__PURE__ */ c(je, { error: t }),
8795
8803
  /* @__PURE__ */ c("br", {}),
8796
8804
  /* @__PURE__ */ F(Kt, { spacing: 4, children: [
8797
- /* @__PURE__ */ c(ot, { placeholder: "Client ID", onChange: w }),
8805
+ /* @__PURE__ */ c(ot, { placeholder: "Client ID", onChange: v }),
8798
8806
  /* @__PURE__ */ F(Gn, { size: "md", children: [
8799
8807
  /* @__PURE__ */ c(
8800
8808
  ot,
@@ -8811,7 +8819,7 @@ function Mm({
8811
8819
  wi,
8812
8820
  {
8813
8821
  placeholder: "Scopes separated by new line",
8814
- onChange: v
8822
+ onChange: w
8815
8823
  }
8816
8824
  )
8817
8825
  ] }),
@@ -8842,7 +8850,7 @@ function Km({
8842
8850
  }) {
8843
8851
  const { projectId: d } = _e(), p = Ce(), [h, g] = U(null), f = async (m) => {
8844
8852
  g(null);
8845
- const w = {
8853
+ const v = {
8846
8854
  groupName: i,
8847
8855
  groupRef: o,
8848
8856
  consumerName: n,
@@ -8854,12 +8862,12 @@ function Km({
8854
8862
  scopes: m.scopes
8855
8863
  }
8856
8864
  };
8857
- me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams: w }, {
8865
+ me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams: v }, {
8858
8866
  headers: { "X-Api-Key": p ?? "", "Content-Type": "application/json" }
8859
- }).then((v) => {
8860
- l(v);
8861
- }).catch((v) => {
8862
- console.error("Error loading provider info."), Ee(v), g("Error loading provider info");
8867
+ }).then((w) => {
8868
+ l(w);
8869
+ }).catch((w) => {
8870
+ console.error("Error loading provider info."), Ee(w), g("Error loading provider info");
8863
8871
  });
8864
8872
  };
8865
8873
  return s === null ? /* @__PURE__ */ c(
@@ -8879,7 +8887,7 @@ function $m({
8879
8887
  providerName: o,
8880
8888
  explicitScopesRequired: i
8881
8889
  }) {
8882
- const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), [f, m] = U(""), w = () => a(!r), v = (H) => l(H.currentTarget.value), O = (H) => p(H.currentTarget.value), y = (H) => g(H.currentTarget.value), C = (H) => m(H.currentTarget.value), b = s.length > 0, I = d.length > 0, N = h.length > 0, V = n || !b || !I || !N, D = () => {
8890
+ const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), [f, m] = U(""), v = () => a(!r), w = (H) => l(H.currentTarget.value), O = (H) => p(H.currentTarget.value), y = (H) => g(H.currentTarget.value), C = (H) => m(H.currentTarget.value), b = s.length > 0, I = d.length > 0, N = h.length > 0, V = n || !b || !I || !N, D = () => {
8883
8891
  const H = {
8884
8892
  workspace: h,
8885
8893
  clientId: d,
@@ -8904,13 +8912,13 @@ function $m({
8904
8912
  /* @__PURE__ */ c(
8905
8913
  ot,
8906
8914
  {
8907
- onChange: v,
8915
+ onChange: w,
8908
8916
  pr: "4.5rem",
8909
8917
  type: r ? "text" : "password",
8910
8918
  placeholder: "Client Secret"
8911
8919
  }
8912
8920
  ),
8913
- /* @__PURE__ */ c(Zn, { width: "4.5rem", children: /* @__PURE__ */ c(Se, { h: "1.75rem", size: "sm", onClick: w, children: r ? "Hide" : "Show" }) })
8921
+ /* @__PURE__ */ c(Zn, { width: "4.5rem", children: /* @__PURE__ */ c(Se, { h: "1.75rem", size: "sm", onClick: v, children: r ? "Hide" : "Show" }) })
8914
8922
  ] }),
8915
8923
  i && /* @__PURE__ */ c(
8916
8924
  wi,
@@ -8947,7 +8955,7 @@ function Lm({
8947
8955
  }) {
8948
8956
  const { projectId: d } = _e(), p = Ce(), [h, g] = U(null), f = async (m) => {
8949
8957
  g(null);
8950
- const w = {
8958
+ const v = {
8951
8959
  groupName: r,
8952
8960
  groupRef: i,
8953
8961
  consumerName: o,
@@ -8960,12 +8968,12 @@ function Lm({
8960
8968
  scopes: m.scopes
8961
8969
  }
8962
8970
  };
8963
- me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams: w }, {
8971
+ me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams: v }, {
8964
8972
  headers: { "X-Api-Key": p ?? "", "Content-Type": "application/json" }
8965
- }).then((v) => {
8966
- l(v);
8967
- }).catch((v) => {
8968
- console.error("Error loading provider info."), Ee(v), g("Error loading provider info");
8973
+ }).then((w) => {
8974
+ l(w);
8975
+ }).catch((w) => {
8976
+ console.error("Error loading provider info."), Ee(w), g("Error loading provider info");
8969
8977
  });
8970
8978
  };
8971
8979
  return s === null ? /* @__PURE__ */ c(
@@ -9001,13 +9009,13 @@ function Vm({
9001
9009
  clientSecret: g,
9002
9010
  clientId: f,
9003
9011
  workspace: m,
9004
- scopes: w
9005
- } = l, v = g.length > 0, O = f.length > 0, y = r ? m.length > 0 : !0, C = n || !v || !O || !y, b = () => {
9012
+ scopes: v
9013
+ } = l, w = g.length > 0, O = f.length > 0, y = r ? m.length > 0 : !0, C = n || !w || !O || !y, b = () => {
9006
9014
  const I = {
9007
9015
  clientId: f,
9008
9016
  clientSecret: g
9009
9017
  };
9010
- r && (I.workspace = m), i && w.length > 0 && (I.scopes = Vr(w)), e(I);
9018
+ r && (I.workspace = m), i && v.length > 0 && (I.scopes = Vr(v)), e(I);
9011
9019
  };
9012
9020
  return /* @__PURE__ */ F(Ue, { children: [
9013
9021
  /* @__PURE__ */ c(gn, { children: `Set up ${o} integration` }),
@@ -9089,22 +9097,22 @@ function Hm({
9089
9097
  selectedConnection: l,
9090
9098
  setSelectedConnection: d
9091
9099
  }) {
9092
- const { projectId: p } = _e(), h = Ce(), [g, f] = U(null), m = async (w) => {
9100
+ const { projectId: p } = _e(), h = Ce(), [g, f] = U(null), m = async (v) => {
9093
9101
  f(null);
9094
- const v = {
9102
+ const w = {
9095
9103
  groupName: r,
9096
9104
  groupRef: i,
9097
9105
  consumerName: o,
9098
9106
  consumerRef: n,
9099
9107
  provider: e,
9100
- providerWorkspaceRef: w.workspace,
9108
+ providerWorkspaceRef: v.workspace,
9101
9109
  oauth2ClientCredentials: {
9102
- clientId: w.clientId,
9103
- clientSecret: w.clientSecret,
9104
- scopes: w.scopes
9110
+ clientId: v.clientId,
9111
+ clientSecret: v.clientSecret,
9112
+ scopes: v.scopes
9105
9113
  }
9106
9114
  };
9107
- me().connectionApi.generateConnection({ projectIdOrName: p, generateConnectionParams: v }, {
9115
+ me().connectionApi.generateConnection({ projectIdOrName: p, generateConnectionParams: w }, {
9108
9116
  headers: { "X-Api-Key": h ?? "", "Content-Type": "application/json" }
9109
9117
  }).then((O) => {
9110
9118
  d(O);
@@ -9189,7 +9197,7 @@ function ws({
9189
9197
  }) {
9190
9198
  const s = Ce(), [l, d] = U(null), { provider: p } = tt(), { selectedConnection: h, setSelectedConnection: g, connections: f } = Gt();
9191
9199
  Jm({ onSuccess: a });
9192
- const m = e || p, w = (l == null ? void 0 : l.displayName) ?? Ci(m);
9200
+ const m = e || p, v = (l == null ? void 0 : l.displayName) ?? Ci(m);
9193
9201
  if (ie(() => {
9194
9202
  if (!h && f && f.length > 0) {
9195
9203
  const [O] = f;
@@ -9204,7 +9212,7 @@ function ws({
9204
9212
  throw new Error("ProtectedConnectionLayout must be given a provider prop or be used within InstallIntegrationProvider");
9205
9213
  if (h) return r;
9206
9214
  if (l == null) return /* @__PURE__ */ c("strong", { children: "Provider not found" });
9207
- const v = {
9215
+ const w = {
9208
9216
  provider: m,
9209
9217
  consumerRef: t,
9210
9218
  consumerName: n,
@@ -9212,10 +9220,10 @@ function ws({
9212
9220
  groupName: i,
9213
9221
  selectedConnection: h,
9214
9222
  setSelectedConnection: g,
9215
- providerName: w,
9223
+ providerName: v,
9216
9224
  providerInfo: l
9217
9225
  };
9218
- return l.authType === "none" ? /* @__PURE__ */ c(wm, { ...v, children: r }) : l.authType === "basic" ? /* @__PURE__ */ c(ym, { ...v, children: r }) : l.authType === "apiKey" ? /* @__PURE__ */ c(fm, { ...v, children: r }) : /* @__PURE__ */ c(qm, { ...v });
9226
+ return l.authType === "none" ? /* @__PURE__ */ c(wm, { ...w, children: r }) : l.authType === "basic" ? /* @__PURE__ */ c(ym, { ...w, children: r }) : l.authType === "apiKey" ? /* @__PURE__ */ c(fm, { ...w, children: r }) : /* @__PURE__ */ c(qm, { ...w });
9219
9227
  }
9220
9228
  const Xm = /* @__PURE__ */ F("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
9221
9229
  /* @__PURE__ */ c("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
@@ -9295,11 +9303,11 @@ function eg({
9295
9303
  const { project: t } = _e(), { installation: n, provider: o } = tt(), { hydratedRevision: i } = mn(), { objectConfigurationsState: r } = po(), [a, s] = U(0), l = (t == null ? void 0 : t.appName) || "", d = n == null ? void 0 : n.config, p = i && Ui(d, i), h = p !== null, g = !!((O = i == null ? void 0 : i.content) != null && O.write), f = g ? ji(d) : void 0, m = Re(() => {
9296
9304
  const b = [...p || []];
9297
9305
  return f && g && b.push(f), b;
9298
- }, [p, f, g]), w = Zm(m, a), v = ee(() => {
9299
- const b = m.find((I) => w !== I && !I.completed);
9306
+ }, [p, f, g]), v = Zm(m, a), w = ee(() => {
9307
+ const b = m.find((I) => v !== I && !I.completed);
9300
9308
  b && s(m.indexOf(b));
9301
- }, [m, w]);
9302
- return /* @__PURE__ */ c(Ha.Provider, { value: v, children: /* @__PURE__ */ c(La.Provider, { value: w == null ? void 0 : w.name, children: /* @__PURE__ */ F(hn, { style: { maxWidth: "55rem" }, children: [
9309
+ }, [m, v]);
9310
+ return /* @__PURE__ */ c(Ha.Provider, { value: w, children: /* @__PURE__ */ c(La.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ F(hn, { style: { maxWidth: "55rem" }, children: [
9303
9311
  /* @__PURE__ */ F(
9304
9312
  Yt,
9305
9313
  {