@hiver/connector-admin 0.0.10-beta.78 → 0.0.10-beta.79

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/auth-form/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMxD,UAAU,SAAS;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACzC,UAAU,EAAE,YAAY,CAAC;CAC1B;AAED,eAAO,MAAM,QAAQ,kEAAmF,SAAS,4CA6LhH,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/auth-form/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMxD,UAAU,SAAS;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACzC,UAAU,EAAE,YAAY,CAAC;CAC1B;AAED,eAAO,MAAM,QAAQ,kEAAmF,SAAS,4CA+LhH,CAAC"}
@@ -1,4 +1,4 @@
1
- import { a$ as s, b0 as e } from "./index-CmBY3g0w.js";
1
+ import { a$ as s, b0 as e } from "./index-gn5WhoXI.js";
2
2
  const t = s.withTypes(), a = e.withTypes();
3
3
  export {
4
4
  a,
@@ -1,6 +1,6 @@
1
- import { s as p, B as d, aY as f, aZ as A, a_ as h, A as u, aA as w, aB as l, j as e } from "./index-CmBY3g0w.js";
1
+ import { s as p, B as d, aY as f, aZ as A, a_ as h, A as u, aA as w, aB as l, j as e } from "./index-gn5WhoXI.js";
2
2
  import { useEffect as r } from "react";
3
- import { u as m, a as c } from "./hooks-oU07Y_P5.js";
3
+ import { u as m, a as c } from "./hooks-DLU0NnN4.js";
4
4
  import { d as S, e as x } from "./selectors-BZXXKPzK.js";
5
5
  const T = p(d)`
6
6
  position: fixed;
@@ -1,12 +1,12 @@
1
- import { s as Z, b as z, o as Ue, T as Ie, u as jt, j as v, af as Zn, ag as y, ah as zt, ai as pt, aj as wn, B as U, ak as Pn, m as Hn, al as Ln, am as Dn, an as Se, M as Ut, ao as On, i as Qt, ap as O, aq as Mn, ar as kn, as as It, at as mt, au as Yn, av as Jn, A as Qe, aw as jn, n as zn, p as Un, ax as Qn, ay as _n, q as Kn, r as $n, az as De, R as fe, aA as qn, aB as ht, aC as ft, aD as ei, aE as ti, aF as ni } from "./index-CmBY3g0w.js";
1
+ import { s as Z, b as z, o as Ue, T as Ie, u as jt, j as C, af as Zn, ag as y, ah as zt, ai as pt, aj as wn, B as U, ak as Pn, m as Hn, al as Ln, am as Dn, an as Se, M as Ut, ao as On, i as Qt, ap as O, aq as Mn, ar as kn, as as It, at as mt, au as Yn, av as Jn, A as Qe, aw as jn, n as zn, p as Un, ax as Qn, ay as _n, q as Kn, r as $n, az as De, R as fe, aA as qn, aB as ht, aC as ft, aD as ei, aE as ti, aF as ni } from "./index-gn5WhoXI.js";
2
2
  import * as R from "react";
3
3
  import ii, { useState as J, useCallback as D, useLayoutEffect as ui, useRef as te, useMemo as he, createContext as ri, useContext as it, Component as ai, Fragment as _e, useEffect as ne, forwardRef as oi, useReducer as li } from "react";
4
4
  import { createPortal as si } from "react-dom";
5
- import { T as vt, C as Ct, A as ci, d as di, e as gi, f as bi, g as pi, k as ve, m as Oe, S as At } from "./showMessage-CG2dwE-5.js";
6
- import { u as ut, a as ce } from "./hooks-oU07Y_P5.js";
5
+ import { T as Ct, C as vt, A as ci, d as di, e as gi, f as bi, g as pi, k as Ce, m as Oe, S as At } from "./showMessage-Be4kJ3x1.js";
6
+ import { u as ut, a as ce } from "./hooks-DLU0NnN4.js";
7
7
  import { G as Ke } from "./gainsight-7AZqfBvZ.js";
8
8
  import { s as Ii, a as mi, b as hi, c as fi } from "./selectors-BZXXKPzK.js";
9
- const vi = Z(z)`
9
+ const Ci = Z(z)`
10
10
  margin-bottom: 36px;
11
11
  .arrow {
12
12
  border: solid ${Ue.palette.gray.gray3};
@@ -17,7 +17,7 @@ const vi = Z(z)`
17
17
  -webkit-transform: rotate(-45deg);
18
18
  height: 5px;
19
19
  }
20
- `, Ci = Z(Ie)`
20
+ `, vi = Z(Ie)`
21
21
  margin-right: 4px;
22
22
  cursor: pointer;
23
23
  `, Ai = Z(z)`
@@ -29,11 +29,11 @@ const vi = Z(z)`
29
29
  const e = jt(), u = (i) => {
30
30
  i && e(i);
31
31
  };
32
- return /* @__PURE__ */ v.jsx(vi, { direction: "row", alignItems: "center", "data-testid": "breadCrumbs", children: n.map(({ name: i, route: t }, a) => {
32
+ return /* @__PURE__ */ C.jsx(Ci, { direction: "row", alignItems: "center", "data-testid": "breadCrumbs", children: n.map(({ name: i, route: t }, a) => {
33
33
  const o = a === n.length - 1, s = o ? Ue.palette.gray.black : Ue.palette.gray.gray4, r = o ? "lastCrumb" : `crumb-${a}`;
34
- return /* @__PURE__ */ v.jsxs(z, { direction: "row", alignItems: "center", children: [
35
- /* @__PURE__ */ v.jsx(
36
- Ci,
34
+ return /* @__PURE__ */ C.jsxs(z, { direction: "row", alignItems: "center", children: [
35
+ /* @__PURE__ */ C.jsx(
36
+ vi,
37
37
  {
38
38
  className: `breadcrumb--item ${o ? "last" : ""}`,
39
39
  variant: "h3",
@@ -43,7 +43,7 @@ const vi = Z(z)`
43
43
  children: i
44
44
  }
45
45
  ),
46
- o ? null : /* @__PURE__ */ v.jsx(Ai, { direction: "row", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ v.jsx("div", { className: "arrow" }) })
46
+ o ? null : /* @__PURE__ */ C.jsx(Ai, { direction: "row", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ C.jsx("div", { className: "arrow" }) })
47
47
  ] }, i.replace(/\s/g, ""));
48
48
  }) });
49
49
  };
@@ -161,8 +161,8 @@ function re(n, e) {
161
161
  }
162
162
  var Ti = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
163
163
  function Si(n) {
164
- var e = n.defaultInputValue, u = e === void 0 ? "" : e, i = n.defaultMenuIsOpen, t = i === void 0 ? !1 : i, a = n.defaultValue, o = a === void 0 ? null : a, s = n.inputValue, r = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, g = n.onMenuOpen, p = n.value, f = re(n, Ti), I = J(s !== void 0 ? s : u), b = ie(I, 2), m = b[0], A = b[1], C = J(r !== void 0 ? r : t), T = ie(C, 2), V = T[0], x = T[1], S = J(p !== void 0 ? p : o), h = ie(S, 2), B = h[0], N = h[1], W = D(function(k, ae) {
165
- typeof l == "function" && l(k, ae), N(k);
164
+ var e = n.defaultInputValue, u = e === void 0 ? "" : e, i = n.defaultMenuIsOpen, t = i === void 0 ? !1 : i, a = n.defaultValue, o = a === void 0 ? null : a, s = n.inputValue, r = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, g = n.onMenuOpen, p = n.value, f = re(n, Ti), I = J(s !== void 0 ? s : u), b = ie(I, 2), m = b[0], A = b[1], v = J(r !== void 0 ? r : t), T = ie(v, 2), V = T[0], x = T[1], S = J(p !== void 0 ? p : o), h = ie(S, 2), B = h[0], W = h[1], N = D(function(k, ae) {
165
+ typeof l == "function" && l(k, ae), W(k);
166
166
  }, [l]), L = D(function(k, ae) {
167
167
  var oe;
168
168
  typeof c == "function" && (oe = c(k, ae)), A(oe !== void 0 ? oe : k);
@@ -174,7 +174,7 @@ function Si(n) {
174
174
  return E(E({}, f), {}, {
175
175
  inputValue: H,
176
176
  menuIsOpen: w,
177
- onChange: W,
177
+ onChange: N,
178
178
  onInputChange: L,
179
179
  onMenuClose: _,
180
180
  onMenuOpen: Q,
@@ -421,8 +421,8 @@ function Ft(n, e, u, i) {
421
421
  const g = ue(a), p = i;
422
422
  let f = g, I = et(f);
423
423
  for (; I && i && p !== f; ) {
424
- const b = Gt(I), m = I.getBoundingClientRect(), A = ot(I), C = m.left + (I.clientLeft + parseFloat(A.paddingLeft)) * b.x, T = m.top + (I.clientTop + parseFloat(A.paddingTop)) * b.y;
425
- r *= b.x, l *= b.y, c *= b.x, d *= b.y, r += C, l += T, f = ue(I), I = et(f);
424
+ const b = Gt(I), m = I.getBoundingClientRect(), A = ot(I), v = m.left + (I.clientLeft + parseFloat(A.paddingLeft)) * b.x, T = m.top + (I.clientTop + parseFloat(A.paddingTop)) * b.y;
425
+ r *= b.x, l *= b.y, c *= b.x, d *= b.y, r += v, l += T, f = ue(I), I = et(f);
426
426
  }
427
427
  }
428
428
  return Mi({
@@ -453,17 +453,17 @@ function Ki(n, e) {
453
453
  rootMargin: -p + "px " + -f + "px " + -I + "px " + -b + "px",
454
454
  threshold: Oi(0, Di(1, r)) || 1
455
455
  };
456
- let C = !0;
456
+ let v = !0;
457
457
  function T(V) {
458
458
  const x = V[0].intersectionRatio;
459
459
  if (x !== r) {
460
- if (!C)
460
+ if (!v)
461
461
  return o();
462
462
  x ? o(!1, x) : i = setTimeout(() => {
463
463
  o(!1, 1e-7);
464
464
  }, 1e3);
465
465
  }
466
- C = !1;
466
+ v = !1;
467
467
  }
468
468
  try {
469
469
  u = new IntersectionObserver(T, {
@@ -497,8 +497,8 @@ function $i(n, e, u, i) {
497
497
  o && (p = new ResizeObserver((m) => {
498
498
  let [A] = m;
499
499
  A && A.target === l && p && (p.unobserve(e), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
500
- var C;
501
- (C = p) == null || C.observe(e);
500
+ var v;
501
+ (v = p) == null || v.observe(e);
502
502
  })), u();
503
503
  }), l && !r && p.observe(l), p.observe(e));
504
504
  let f, I = r ? Ft(n) : null;
@@ -644,7 +644,7 @@ function pu(n) {
644
644
  maxHeight: e
645
645
  };
646
646
  if (!u || !u.offsetParent) return l;
647
- var c = r.getBoundingClientRect(), d = c.height, g = u.getBoundingClientRect(), p = g.bottom, f = g.height, I = g.top, b = u.offsetParent.getBoundingClientRect(), m = b.top, A = o ? window.innerHeight : nu(r), C = an(r), T = parseInt(getComputedStyle(u).marginBottom, 10), V = parseInt(getComputedStyle(u).marginTop, 10), x = m - V, S = A - I, h = x + C, B = d - C - I, N = p - A + C + T, W = C + I - V, L = 160;
647
+ var c = r.getBoundingClientRect(), d = c.height, g = u.getBoundingClientRect(), p = g.bottom, f = g.height, I = g.top, b = u.offsetParent.getBoundingClientRect(), m = b.top, A = o ? window.innerHeight : nu(r), v = an(r), T = parseInt(getComputedStyle(u).marginBottom, 10), V = parseInt(getComputedStyle(u).marginTop, 10), x = m - V, S = A - I, h = x + v, B = d - v - I, W = p - A + v + T, N = v + I - V, L = 160;
648
648
  switch (t) {
649
649
  case "auto":
650
650
  case "bottom":
@@ -654,12 +654,12 @@ function pu(n) {
654
654
  maxHeight: e
655
655
  };
656
656
  if (B >= f && !o)
657
- return a && Ge(r, N, L), {
657
+ return a && Ge(r, W, L), {
658
658
  placement: "bottom",
659
659
  maxHeight: e
660
660
  };
661
661
  if (!o && B >= i || o && S >= i) {
662
- a && Ge(r, N, L);
662
+ a && Ge(r, W, L);
663
663
  var Q = o ? S - T : B - T;
664
664
  return {
665
665
  placement: "bottom",
@@ -674,7 +674,7 @@ function pu(n) {
674
674
  };
675
675
  }
676
676
  if (t === "bottom")
677
- return a && Ze(r, N), {
677
+ return a && Ze(r, W), {
678
678
  placement: "bottom",
679
679
  maxHeight: e
680
680
  };
@@ -686,13 +686,13 @@ function pu(n) {
686
686
  maxHeight: e
687
687
  };
688
688
  if (h >= f && !o)
689
- return a && Ge(r, W, L), {
689
+ return a && Ge(r, N, L), {
690
690
  placement: "top",
691
691
  maxHeight: e
692
692
  };
693
693
  if (!o && h >= i || o && x >= i) {
694
694
  var w = e;
695
- return (!o && h >= i || o && x >= i) && (w = o ? x - V : h - V), a && Ge(r, W, L), {
695
+ return (!o && h >= i || o && x >= i) && (w = o ? x - V : h - V), a && Ge(r, N, L), {
696
696
  placement: "top",
697
697
  maxHeight: w
698
698
  };
@@ -727,7 +727,7 @@ var ln = function(e) {
727
727
  marginTop: s.menuGutter
728
728
  });
729
729
  }, sn = /* @__PURE__ */ ri(null), hu = function(e) {
730
- var u = e.children, i = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, o = e.menuPosition, s = e.menuShouldScrollIntoView, r = e.theme, l = it(sn) || {}, c = l.setPortalPlacement, d = te(null), g = J(t), p = ie(g, 2), f = p[0], I = p[1], b = J(null), m = ie(b, 2), A = m[0], C = m[1], T = r.spacing.controlHeight;
730
+ var u = e.children, i = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, o = e.menuPosition, s = e.menuShouldScrollIntoView, r = e.theme, l = it(sn) || {}, c = l.setPortalPlacement, d = te(null), g = J(t), p = ie(g, 2), f = p[0], I = p[1], b = J(null), m = ie(b, 2), A = m[0], v = m[1], T = r.spacing.controlHeight;
731
731
  return tt(function() {
732
732
  var V = d.current;
733
733
  if (V) {
@@ -740,7 +740,7 @@ var ln = function(e) {
740
740
  isFixedPosition: x,
741
741
  controlHeight: T
742
742
  });
743
- I(h.maxHeight), C(h.placement), c == null || c(h.placement);
743
+ I(h.maxHeight), v(h.placement), c == null || c(h.placement);
744
744
  }
745
745
  }, [t, a, o, s, i, c, T]), u({
746
746
  ref: d,
@@ -756,7 +756,7 @@ var ln = function(e) {
756
756
  }), {
757
757
  ref: i
758
758
  }, t), u);
759
- }, vu = fu, Cu = function(e, u) {
759
+ }, Cu = fu, vu = function(e, u) {
760
760
  var i = e.maxHeight, t = e.theme.spacing.baseUnit;
761
761
  return E({
762
762
  maxHeight: i,
@@ -816,7 +816,7 @@ var ln = function(e) {
816
816
  return {
817
817
  setPortalPlacement: p
818
818
  };
819
- }, []), I = J(null), b = ie(I, 2), m = b[0], A = b[1], C = D(function() {
819
+ }, []), I = J(null), b = ie(I, 2), m = b[0], A = b[1], v = D(function() {
820
820
  if (t) {
821
821
  var S = ru(t), h = s === "fixed" ? 0 : window.pageYOffset, B = S[g] + h;
822
822
  (B !== (m == null ? void 0 : m.offset) || S.left !== (m == null ? void 0 : m.rect.left) || S.width !== (m == null ? void 0 : m.rect.width)) && A({
@@ -826,13 +826,13 @@ var ln = function(e) {
826
826
  }
827
827
  }, [t, s, g, m == null ? void 0 : m.offset, m == null ? void 0 : m.rect.left, m == null ? void 0 : m.rect.width]);
828
828
  tt(function() {
829
- C();
830
- }, [C]);
829
+ v();
830
+ }, [v]);
831
831
  var T = D(function() {
832
- typeof l.current == "function" && (l.current(), l.current = null), t && r.current && (l.current = $i(t, r.current, C, {
832
+ typeof l.current == "function" && (l.current(), l.current = null), t && r.current && (l.current = $i(t, r.current, v, {
833
833
  elementResize: "ResizeObserver" in window
834
834
  }));
835
- }, [t, C]);
835
+ }, [t, v]);
836
836
  tt(function() {
837
837
  T();
838
838
  }, [T]);
@@ -1259,7 +1259,7 @@ var pr = function(e) {
1259
1259
  ref: o,
1260
1260
  "aria-disabled": i
1261
1261
  }, s), u);
1262
- }, fr = hr, vr = function(e, u) {
1262
+ }, fr = hr, Cr = function(e, u) {
1263
1263
  var i = e.theme, t = i.spacing, a = i.colors;
1264
1264
  return E({
1265
1265
  label: "placeholder",
@@ -1269,12 +1269,12 @@ var pr = function(e) {
1269
1269
  marginLeft: t.baseUnit / 2,
1270
1270
  marginRight: t.baseUnit / 2
1271
1271
  });
1272
- }, Cr = function(e) {
1272
+ }, vr = function(e) {
1273
1273
  var u = e.children, i = e.innerProps;
1274
1274
  return y("div", G({}, X(e, "placeholder", {
1275
1275
  placeholder: !0
1276
1276
  }), i), u);
1277
- }, Ar = Cr, xr = function(e, u) {
1277
+ }, Ar = vr, xr = function(e, u) {
1278
1278
  var i = e.isDisabled, t = e.theme, a = t.spacing, o = t.colors;
1279
1279
  return E({
1280
1280
  label: "singleValue",
@@ -1306,7 +1306,7 @@ var pr = function(e) {
1306
1306
  IndicatorSeparator: ku,
1307
1307
  Input: or,
1308
1308
  LoadingIndicator: ju,
1309
- Menu: vu,
1309
+ Menu: Cu,
1310
1310
  MenuList: Au,
1311
1311
  MenuPortal: Bu,
1312
1312
  LoadingMessage: Gu,
@@ -1418,7 +1418,7 @@ var Vr = process.env.NODE_ENV === "production" ? {
1418
1418
  return "".concat(i).concat(u ? " for search term " + u : "", ".");
1419
1419
  }
1420
1420
  }, Nr = function(e) {
1421
- var u = e.ariaSelection, i = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, o = e.isFocused, s = e.selectValue, r = e.selectProps, l = e.id, c = e.isAppleDevice, d = r.ariaLiveMessages, g = r.getOptionLabel, p = r.inputValue, f = r.isMulti, I = r.isOptionDisabled, b = r.isSearchable, m = r.menuIsOpen, A = r.options, C = r.screenReaderStatus, T = r.tabSelectsValue, V = r.isLoading, x = r["aria-label"], S = r["aria-live"], h = he(function() {
1421
+ var u = e.ariaSelection, i = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, o = e.isFocused, s = e.selectValue, r = e.selectProps, l = e.id, c = e.isAppleDevice, d = r.ariaLiveMessages, g = r.getOptionLabel, p = r.inputValue, f = r.isMulti, I = r.isOptionDisabled, b = r.isSearchable, m = r.menuIsOpen, A = r.options, v = r.screenReaderStatus, T = r.tabSelectsValue, V = r.isLoading, x = r["aria-label"], S = r["aria-live"], h = he(function() {
1422
1422
  return E(E({}, Wr), d || {});
1423
1423
  }, [d]), B = he(function() {
1424
1424
  var H = "";
@@ -1435,7 +1435,7 @@ var Vr = process.env.NODE_ENV === "production" ? {
1435
1435
  H = h.onChange(Y);
1436
1436
  }
1437
1437
  return H;
1438
- }, [u, h, I, s, g]), N = he(function() {
1438
+ }, [u, h, I, s, g]), W = he(function() {
1439
1439
  var H = "", w = i || t, j = !!(i && s && s.includes(i));
1440
1440
  if (w && h.onFocus) {
1441
1441
  var k = {
@@ -1451,10 +1451,10 @@ var Vr = process.env.NODE_ENV === "production" ? {
1451
1451
  H = h.onFocus(k);
1452
1452
  }
1453
1453
  return H;
1454
- }, [i, t, g, I, h, a, s, c]), W = he(function() {
1454
+ }, [i, t, g, I, h, a, s, c]), N = he(function() {
1455
1455
  var H = "";
1456
1456
  if (m && A.length && !V && h.onFilter) {
1457
- var w = C({
1457
+ var w = v({
1458
1458
  count: a.length
1459
1459
  });
1460
1460
  H = h.onFilter({
@@ -1463,7 +1463,7 @@ var Vr = process.env.NODE_ENV === "production" ? {
1463
1463
  });
1464
1464
  }
1465
1465
  return H;
1466
- }, [a, p, m, h, A, C, V]), L = (u == null ? void 0 : u.action) === "initial-input-focus", Q = he(function() {
1466
+ }, [a, p, m, h, A, v, V]), L = (u == null ? void 0 : u.action) === "initial-input-focus", Q = he(function() {
1467
1467
  var H = "";
1468
1468
  if (h.guidance) {
1469
1469
  var w = t ? "value" : m ? "menu" : "input";
@@ -1482,9 +1482,9 @@ var Vr = process.env.NODE_ENV === "production" ? {
1482
1482
  id: "aria-selection"
1483
1483
  }, B), y("span", {
1484
1484
  id: "aria-focused"
1485
- }, N), y("span", {
1486
- id: "aria-results"
1487
1485
  }, W), y("span", {
1486
+ id: "aria-results"
1487
+ }, N), y("span", {
1488
1488
  id: "aria-guidance"
1489
1489
  }, Q));
1490
1490
  return y(_e, null, y(Wt, {
@@ -1808,8 +1808,8 @@ var Or = function(e) {
1808
1808
  function Mr(n) {
1809
1809
  var e = n.isEnabled, u = n.onBottomArrive, i = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, o = te(!1), s = te(!1), r = te(0), l = te(null), c = D(function(b, m) {
1810
1810
  if (l.current !== null) {
1811
- var A = l.current, C = A.scrollTop, T = A.scrollHeight, V = A.clientHeight, x = l.current, S = m > 0, h = T - V - C, B = !1;
1812
- h > m && o.current && (i && i(b), o.current = !1), S && s.current && (a && a(b), s.current = !1), S && m > h ? (u && !o.current && u(b), x.scrollTop = T, B = !0, o.current = !0) : !S && -m > C && (t && !s.current && t(b), x.scrollTop = 0, B = !0, s.current = !0), B && Or(b);
1811
+ var A = l.current, v = A.scrollTop, T = A.scrollHeight, V = A.clientHeight, x = l.current, S = m > 0, h = T - V - v, B = !1;
1812
+ h > m && o.current && (i && i(b), o.current = !1), S && s.current && (a && a(b), s.current = !1), S && m > h ? (u && !o.current && u(b), x.scrollTop = T, B = !0, o.current = !0) : !S && -m > v && (t && !s.current && t(b), x.scrollTop = 0, B = !0, s.current = !0), B && Or(b);
1813
1813
  }
1814
1814
  }, [u, i, t, a]), d = D(function(b) {
1815
1815
  c(b, b.deltaY);
@@ -1859,7 +1859,7 @@ function Ht() {
1859
1859
  function Lt() {
1860
1860
  return "ontouchstart" in window || navigator.maxTouchPoints;
1861
1861
  }
1862
- var Dt = !!(typeof window < "u" && window.document && window.document.createElement), Ce = 0, me = {
1862
+ var Dt = !!(typeof window < "u" && window.document && window.document.createElement), ve = 0, me = {
1863
1863
  capture: !1,
1864
1864
  passive: !1
1865
1865
  };
@@ -1870,19 +1870,19 @@ function kr(n) {
1870
1870
  if (i && Xt.forEach(function(f) {
1871
1871
  var I = c && c[f];
1872
1872
  t.current[f] = I;
1873
- }), i && Ce < 1) {
1873
+ }), i && ve < 1) {
1874
1874
  var d = parseInt(t.current.paddingRight, 10) || 0, g = document.body ? document.body.clientWidth : 0, p = window.innerWidth - g + d || 0;
1875
1875
  Object.keys(Zt).forEach(function(f) {
1876
1876
  var I = Zt[f];
1877
1877
  c && (c[f] = I);
1878
1878
  }), c && (c.paddingRight = "".concat(p, "px"));
1879
1879
  }
1880
- l && Lt() && (l.addEventListener("touchmove", wt, me), r && (r.addEventListener("touchstart", Ht, me), r.addEventListener("touchmove", Pt, me))), Ce += 1;
1880
+ l && Lt() && (l.addEventListener("touchmove", wt, me), r && (r.addEventListener("touchstart", Ht, me), r.addEventListener("touchmove", Pt, me))), ve += 1;
1881
1881
  }
1882
1882
  }, [i]), s = D(function(r) {
1883
1883
  if (Dt) {
1884
1884
  var l = document.body, c = l && l.style;
1885
- Ce = Math.max(Ce - 1, 0), i && Ce < 1 && Xt.forEach(function(d) {
1885
+ ve = Math.max(ve - 1, 0), i && ve < 1 && Xt.forEach(function(d) {
1886
1886
  var g = t.current[d];
1887
1887
  c && (c[d] = g);
1888
1888
  }), l && Lt() && (l.removeEventListener("touchmove", wt, me), r && (r.removeEventListener("touchstart", Ht, me), r.removeEventListener("touchmove", Pt, me)));
@@ -1963,18 +1963,18 @@ function ct(n) {
1963
1963
  function $r() {
1964
1964
  return ct(/^iPhone/i);
1965
1965
  }
1966
- function vn() {
1966
+ function Cn() {
1967
1967
  return ct(/^Mac/i);
1968
1968
  }
1969
1969
  function qr() {
1970
1970
  return ct(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1971
- vn() && navigator.maxTouchPoints > 1;
1971
+ Cn() && navigator.maxTouchPoints > 1;
1972
1972
  }
1973
1973
  function ea() {
1974
1974
  return $r() || qr();
1975
1975
  }
1976
1976
  function ta() {
1977
- return vn() || ea();
1977
+ return Cn() || ea();
1978
1978
  }
1979
1979
  var na = function(e) {
1980
1980
  return e.label;
@@ -1997,14 +1997,14 @@ var na = function(e) {
1997
1997
  loadingIndicator: Ju,
1998
1998
  loadingMessage: yu,
1999
1999
  menu: mu,
2000
- menuList: Cu,
2000
+ menuList: vu,
2001
2001
  menuPortal: Fu,
2002
2002
  multiValue: lr,
2003
2003
  multiValueLabel: sr,
2004
2004
  multiValueRemove: cr,
2005
2005
  noOptionsMessage: xu,
2006
2006
  option: mr,
2007
- placeholder: vr,
2007
+ placeholder: Cr,
2008
2008
  singleValue: xr,
2009
2009
  valueContainer: Vu
2010
2010
  }, oa = {
@@ -2025,8 +2025,8 @@ var na = function(e) {
2025
2025
  neutral70: "hsl(0, 0%, 30%)",
2026
2026
  neutral80: "hsl(0, 0%, 20%)",
2027
2027
  neutral90: "hsl(0, 0%, 10%)"
2028
- }, la = 4, Cn = 4, sa = 38, ca = Cn * 2, da = {
2029
- baseUnit: Cn,
2028
+ }, la = 4, vn = 4, sa = 38, ca = vn * 2, da = {
2029
+ baseUnit: vn,
2030
2030
  controlHeight: sa,
2031
2031
  menuGutter: ca
2032
2032
  }, je = {
@@ -2389,7 +2389,7 @@ var Fn = function(e) {
2389
2389
  }, t.onValueInputFocus = function(r) {
2390
2390
  r.preventDefault(), r.stopPropagation(), t.focus();
2391
2391
  }, t.onKeyDown = function(r) {
2392
- var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, g = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, I = l.isDisabled, b = l.menuIsOpen, m = l.onKeyDown, A = l.tabSelectsValue, C = l.openMenuOnFocus, T = t.state, V = T.focusedOption, x = T.focusedValue, S = T.selectValue;
2392
+ var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, g = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, I = l.isDisabled, b = l.menuIsOpen, m = l.onKeyDown, A = l.tabSelectsValue, v = l.openMenuOnFocus, T = t.state, V = T.focusedOption, x = T.focusedValue, S = T.selectValue;
2393
2393
  if (!I && !(typeof m == "function" && (m(r), r.defaultPrevented))) {
2394
2394
  switch (t.blockOptionHover = !0, r.key) {
2395
2395
  case "ArrowLeft":
@@ -2413,7 +2413,7 @@ var Fn = function(e) {
2413
2413
  case "Tab":
2414
2414
  if (t.isComposing || r.shiftKey || !b || !A || !V || // don't capture the event if the menu opens on focus and the focused
2415
2415
  // option is already selected; it breaks the flow of navigation
2416
- C && t.isOptionSelected(V, S))
2416
+ v && t.isOptionSelected(V, S))
2417
2417
  return;
2418
2418
  t.selectOption(V);
2419
2419
  break;
@@ -2711,7 +2711,7 @@ var Fn = function(e) {
2711
2711
  // Renderers
2712
2712
  // ==============================
2713
2713
  function() {
2714
- var t = this.props, a = t.isDisabled, o = t.isSearchable, s = t.inputId, r = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen, g = t.required, p = this.getComponents(), f = p.Input, I = this.state, b = I.inputIsHidden, m = I.ariaSelection, A = this.commonProps, C = s || this.getElementId("input"), T = E(E(E({
2714
+ var t = this.props, a = t.isDisabled, o = t.isSearchable, s = t.inputId, r = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen, g = t.required, p = this.getComponents(), f = p.Input, I = this.state, b = I.inputIsHidden, m = I.ariaSelection, A = this.commonProps, v = s || this.getElementId("input"), T = E(E(E({
2715
2715
  "aria-autocomplete": "list",
2716
2716
  "aria-expanded": d,
2717
2717
  "aria-haspopup": !0,
@@ -2735,7 +2735,7 @@ var Fn = function(e) {
2735
2735
  autoCapitalize: "none",
2736
2736
  autoComplete: "off",
2737
2737
  autoCorrect: "off",
2738
- id: C,
2738
+ id: v,
2739
2739
  innerRef: this.getInputRef,
2740
2740
  isDisabled: a,
2741
2741
  isHidden: b,
@@ -2748,7 +2748,7 @@ var Fn = function(e) {
2748
2748
  type: "text",
2749
2749
  value: r
2750
2750
  }, T)) : /* @__PURE__ */ R.createElement(Dr, G({
2751
- id: C,
2751
+ id: v,
2752
2752
  innerRef: this.getInputRef,
2753
2753
  onBlur: this.onInputBlur,
2754
2754
  onChange: Xe,
@@ -2764,7 +2764,7 @@ var Fn = function(e) {
2764
2764
  }, {
2765
2765
  key: "renderPlaceholderOrValue",
2766
2766
  value: function() {
2767
- var t = this, a = this.getComponents(), o = a.MultiValue, s = a.MultiValueContainer, r = a.MultiValueLabel, l = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, g = this.commonProps, p = this.props, f = p.controlShouldRenderValue, I = p.isDisabled, b = p.isMulti, m = p.inputValue, A = p.placeholder, C = this.state, T = C.selectValue, V = C.focusedValue, x = C.isFocused;
2767
+ var t = this, a = this.getComponents(), o = a.MultiValue, s = a.MultiValueContainer, r = a.MultiValueLabel, l = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, g = this.commonProps, p = this.props, f = p.controlShouldRenderValue, I = p.isDisabled, b = p.isMulti, m = p.inputValue, A = p.placeholder, v = this.state, T = v.selectValue, V = v.focusedValue, x = v.isFocused;
2768
2768
  if (!this.hasValue() || !f)
2769
2769
  return m ? null : /* @__PURE__ */ R.createElement(d, G({}, g, {
2770
2770
  key: "placeholder",
@@ -2776,16 +2776,16 @@ var Fn = function(e) {
2776
2776
  }), A);
2777
2777
  if (b)
2778
2778
  return T.map(function(h, B) {
2779
- var N = h === V, W = "".concat(t.getOptionLabel(h), "-").concat(t.getOptionValue(h));
2779
+ var W = h === V, N = "".concat(t.getOptionLabel(h), "-").concat(t.getOptionValue(h));
2780
2780
  return /* @__PURE__ */ R.createElement(o, G({}, g, {
2781
2781
  components: {
2782
2782
  Container: s,
2783
2783
  Label: r,
2784
2784
  Remove: l
2785
2785
  },
2786
- isFocused: N,
2786
+ isFocused: W,
2787
2787
  isDisabled: I,
2788
- key: W,
2788
+ key: N,
2789
2789
  index: B,
2790
2790
  removeProps: {
2791
2791
  onClick: function() {
@@ -2869,7 +2869,7 @@ var Fn = function(e) {
2869
2869
  }, {
2870
2870
  key: "renderMenu",
2871
2871
  value: function() {
2872
- var t = this, a = this.getComponents(), o = a.Group, s = a.GroupHeading, r = a.Menu, l = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, g = a.NoOptionsMessage, p = a.Option, f = this.commonProps, I = this.state.focusedOption, b = this.props, m = b.captureMenuScroll, A = b.inputValue, C = b.isLoading, T = b.loadingMessage, V = b.minMenuHeight, x = b.maxMenuHeight, S = b.menuIsOpen, h = b.menuPlacement, B = b.menuPosition, N = b.menuPortalTarget, W = b.menuShouldBlockScroll, L = b.menuShouldScrollIntoView, Q = b.noOptionsMessage, _ = b.onMenuScrollToTop, H = b.onMenuScrollToBottom;
2872
+ var t = this, a = this.getComponents(), o = a.Group, s = a.GroupHeading, r = a.Menu, l = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, g = a.NoOptionsMessage, p = a.Option, f = this.commonProps, I = this.state.focusedOption, b = this.props, m = b.captureMenuScroll, A = b.inputValue, v = b.isLoading, T = b.loadingMessage, V = b.minMenuHeight, x = b.maxMenuHeight, S = b.menuIsOpen, h = b.menuPlacement, B = b.menuPosition, W = b.menuPortalTarget, N = b.menuShouldBlockScroll, L = b.menuShouldScrollIntoView, Q = b.noOptionsMessage, _ = b.onMenuScrollToTop, H = b.onMenuScrollToBottom;
2873
2873
  if (!S) return null;
2874
2874
  var w = function(M, K) {
2875
2875
  var le = M.type, Y = M.data, se = M.isDisabled, $ = M.isSelected, ye = M.label, Wn = M.value, dt = I === Y, gt = se ? void 0 : function() {
@@ -2919,7 +2919,7 @@ var Fn = function(e) {
2919
2919
  } else if (P.type === "option")
2920
2920
  return w(P, "".concat(P.index));
2921
2921
  });
2922
- else if (C) {
2922
+ else if (v) {
2923
2923
  var k = T({
2924
2924
  inputValue: A
2925
2925
  });
@@ -2946,13 +2946,13 @@ var Fn = function(e) {
2946
2946
  onMouseDown: t.onMenuMouseDown,
2947
2947
  onMouseMove: t.onMenuMouseMove
2948
2948
  },
2949
- isLoading: C,
2949
+ isLoading: v,
2950
2950
  placement: le
2951
2951
  }), /* @__PURE__ */ R.createElement(zr, {
2952
2952
  captureEnabled: m,
2953
2953
  onTopArrive: _,
2954
2954
  onBottomArrive: H,
2955
- lockEnabled: W
2955
+ lockEnabled: N
2956
2956
  }, function(se) {
2957
2957
  return /* @__PURE__ */ R.createElement(l, G({}, f, {
2958
2958
  innerRef: function(ye) {
@@ -2963,14 +2963,14 @@ var Fn = function(e) {
2963
2963
  "aria-multiselectable": f.isMulti,
2964
2964
  id: t.getElementId("listbox")
2965
2965
  },
2966
- isLoading: C,
2966
+ isLoading: v,
2967
2967
  maxHeight: Y,
2968
2968
  focusedOption: I
2969
2969
  }), j);
2970
2970
  }));
2971
2971
  });
2972
- return N || B === "fixed" ? /* @__PURE__ */ R.createElement(c, G({}, f, {
2973
- appendTo: N,
2972
+ return W || B === "fixed" ? /* @__PURE__ */ R.createElement(c, G({}, f, {
2973
+ appendTo: W,
2974
2974
  controlElement: this.controlRef,
2975
2975
  menuPlacement: h,
2976
2976
  menuPosition: B
@@ -3065,10 +3065,10 @@ var Fn = function(e) {
3065
3065
  }], [{
3066
3066
  key: "getDerivedStateFromProps",
3067
3067
  value: function(t, a) {
3068
- var o = a.prevProps, s = a.clearFocusValueOnUpdate, r = a.inputIsHiddenAfterUpdate, l = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, g = a.instancePrefix, p = t.options, f = t.value, I = t.menuIsOpen, b = t.inputValue, m = t.isMulti, A = Bt(f), C = {};
3068
+ var o = a.prevProps, s = a.clearFocusValueOnUpdate, r = a.inputIsHiddenAfterUpdate, l = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, g = a.instancePrefix, p = t.options, f = t.value, I = t.menuIsOpen, b = t.inputValue, m = t.isMulti, A = Bt(f), v = {};
3069
3069
  if (o && (f !== o.value || p !== o.options || I !== o.menuIsOpen || b !== o.inputValue)) {
3070
3070
  var T = I ? ba(t, A) : [], V = I ? Mt(Te(t, A), "".concat(g, "-option")) : [], x = s ? pa(a, A) : null, S = Ia(a, T), h = ze(V, S);
3071
- C = {
3071
+ v = {
3072
3072
  selectValue: A,
3073
3073
  focusedOption: S,
3074
3074
  focusedOptionId: h,
@@ -3080,15 +3080,15 @@ var Fn = function(e) {
3080
3080
  var B = r != null && t !== o ? {
3081
3081
  inputIsHidden: r,
3082
3082
  inputIsHiddenAfterUpdate: void 0
3083
- } : {}, N = l, W = c && d;
3084
- return c && !W && (N = {
3083
+ } : {}, W = l, N = c && d;
3084
+ return c && !N && (W = {
3085
3085
  value: Be(m, A, A[0] || null),
3086
3086
  options: A,
3087
3087
  action: "initial-input-focus"
3088
- }, W = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (N = null), E(E(E({}, C), B), {}, {
3088
+ }, N = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (W = null), E(E(E({}, v), B), {}, {
3089
3089
  prevProps: t,
3090
- ariaSelection: N,
3091
- prevWasFocused: W
3090
+ ariaSelection: W,
3091
+ prevWasFocused: N
3092
3092
  });
3093
3093
  }
3094
3094
  }]), u;
@@ -3100,7 +3100,7 @@ var ha = /* @__PURE__ */ oi(function(n, e) {
3100
3100
  ref: e
3101
3101
  }, u));
3102
3102
  }), fa = ha;
3103
- const va = (n) => /* @__PURE__ */ v.jsx(mn.DropdownIndicator, { ...n, children: n.selectProps.menuIsOpen ? /* @__PURE__ */ v.jsx(pt.ArrowDropUp, {}) : /* @__PURE__ */ v.jsx(pt.ArrowDropDown, {}) }), Ca = (n) => /* @__PURE__ */ v.jsx(fa, { ...n, components: { DropdownIndicator: va, IndicatorSeparator: () => null } }), Aa = Z(wn)`
3103
+ const Ca = (n) => /* @__PURE__ */ C.jsx(mn.DropdownIndicator, { ...n, children: n.selectProps.menuIsOpen ? /* @__PURE__ */ C.jsx(pt.ArrowDropUp, {}) : /* @__PURE__ */ C.jsx(pt.ArrowDropDown, {}) }), va = (n) => /* @__PURE__ */ C.jsx(fa, { ...n, components: { DropdownIndicator: Ca, IndicatorSeparator: () => null } }), Aa = Z(wn)`
3104
3104
  & .MuiOutlinedInput-input {
3105
3105
  padding: 8px 10px;
3106
3106
  font-size: 13px;
@@ -3224,16 +3224,16 @@ const va = (n) => /* @__PURE__ */ v.jsx(mn.DropdownIndicator, { ...n, children:
3224
3224
  const A = (x) => {
3225
3225
  var S;
3226
3226
  g || p(!0), (S = n.onBlur) == null || S.call(n, x), g && o && m(n.value);
3227
- }, C = () => n.helperText ? /* @__PURE__ */ v.jsx(Yt, { children: u }) : g && f ? /* @__PURE__ */ v.jsx(Yt, { className: "helper--error", children: f }) : null, T = (x) => {
3227
+ }, v = () => n.helperText ? /* @__PURE__ */ C.jsx(Yt, { children: u }) : g && f ? /* @__PURE__ */ C.jsx(Yt, { className: "helper--error", children: f }) : null, T = (x) => {
3228
3228
  r == null || r(x), x && !g && p(!0), g && s && m(x.target.value);
3229
3229
  }, V = (x, S) => {
3230
3230
  l == null || l(x, S), x && !g && p(!0), x && typeof x == "object" && "value" in x && g && s && m(x.value);
3231
3231
  };
3232
- return /* @__PURE__ */ v.jsxs(z, { spacing: 1, useFlexGap: !0, children: [
3233
- t ? /* @__PURE__ */ v.jsx(Ie, { variant: "h4", component: "label", htmlFor: i, children: `${t}${e != null && e.isRequired ? "*" : ""}` }) : null,
3234
- /* @__PURE__ */ v.jsxs(ya, { children: [
3235
- /* @__PURE__ */ v.jsx(vt, { title: n.toolTipTitle, arrow: !0, placement: "right-end", disableHoverListener: !0, children: n.type === "select" ? /* @__PURE__ */ v.jsx(xa, { children: /* @__PURE__ */ v.jsx(
3236
- Ca,
3232
+ return /* @__PURE__ */ C.jsxs(z, { spacing: 1, useFlexGap: !0, children: [
3233
+ t ? /* @__PURE__ */ C.jsx(Ie, { variant: "h4", component: "label", htmlFor: i, children: `${t}${e != null && e.isRequired ? "*" : ""}` }) : null,
3234
+ /* @__PURE__ */ C.jsxs(ya, { children: [
3235
+ /* @__PURE__ */ C.jsx(Ct, { title: n.toolTipTitle, arrow: !0, placement: "right-end", disableHoverListener: !0, children: n.type === "select" ? /* @__PURE__ */ C.jsx(xa, { children: /* @__PURE__ */ C.jsx(
3236
+ va,
3237
3237
  {
3238
3238
  ...n,
3239
3239
  className: `formField__select ${f && g ? "formField__select--error" : ""} ${n.className || ""}`,
@@ -3242,7 +3242,7 @@ const va = (n) => /* @__PURE__ */ v.jsx(mn.DropdownIndicator, { ...n, children:
3242
3242
  onChange: V,
3243
3243
  onFocus: b
3244
3244
  }
3245
- ) }) : /* @__PURE__ */ v.jsx(
3245
+ ) }) : /* @__PURE__ */ C.jsx(
3246
3246
  Aa,
3247
3247
  {
3248
3248
  id: i,
@@ -3254,8 +3254,8 @@ const va = (n) => /* @__PURE__ */ v.jsx(mn.DropdownIndicator, { ...n, children:
3254
3254
  error: !!(f && g)
3255
3255
  }
3256
3256
  ) }),
3257
- d != null && d.icon ? /* @__PURE__ */ v.jsx(vt, { title: d.toolTipText, placement: "bottom", children: /* @__PURE__ */ v.jsx(Hn, { className: "form--sideIcon", children: d == null ? void 0 : d.icon }) }) : null,
3258
- C()
3257
+ d != null && d.icon ? /* @__PURE__ */ C.jsx(Ct, { title: d.toolTipText, placement: "bottom", children: /* @__PURE__ */ C.jsx(Hn, { className: "form--sideIcon", children: d == null ? void 0 : d.icon }) }) : null,
3258
+ v()
3259
3259
  ] })
3260
3260
  ] });
3261
3261
  }, Ea = Z(z)`
@@ -3272,9 +3272,9 @@ const va = (n) => /* @__PURE__ */ v.jsx(mn.DropdownIndicator, { ...n, children:
3272
3272
  values: a,
3273
3273
  validations: o,
3274
3274
  onValidationError: s
3275
- }) => /* @__PURE__ */ v.jsx(Ea, { children: n.map(({ id: r, title: l, formFields: c }) => /* @__PURE__ */ v.jsxs(ii.Fragment, { children: [
3276
- l ? /* @__PURE__ */ v.jsx(Ie, { variant: "h3", className: "authform__section-title", children: l }) : null,
3277
- /* @__PURE__ */ v.jsx(z, { useFlexGap: !0, spacing: 3, children: c.map((d) => t && typeof t == "object" && d.name in t && t[d.name] === !1 ? null : /* @__PURE__ */ v.jsx(
3275
+ }) => /* @__PURE__ */ C.jsx(Ea, { children: n.map(({ id: r, title: l, formFields: c }) => /* @__PURE__ */ C.jsxs(ii.Fragment, { children: [
3276
+ l ? /* @__PURE__ */ C.jsx(Ie, { variant: "h3", className: "authform__section-title", children: l }) : null,
3277
+ /* @__PURE__ */ C.jsx(z, { useFlexGap: !0, spacing: 3, children: c.map((d) => t && typeof t == "object" && d.name in t && t[d.name] === !1 ? null : /* @__PURE__ */ C.jsx(
3278
3278
  Tn,
3279
3279
  {
3280
3280
  value: a == null ? void 0 : a[d.name],
@@ -3287,9 +3287,9 @@ const va = (n) => /* @__PURE__ */ v.jsx(mn.DropdownIndicator, { ...n, children:
3287
3287
  },
3288
3288
  d.name
3289
3289
  )) })
3290
- ] }, r)) }), Fa = () => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
3291
- /* @__PURE__ */ v.jsx(Ct, { variant: "rounded", width: 180, height: 24, animation: "wave", margin: "12px 0px 10px 0px" }),
3292
- /* @__PURE__ */ v.jsx(Ct, { variant: "rounded", width: 450, height: 40, animation: "wave" })
3290
+ ] }, r)) }), Fa = () => /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
3291
+ /* @__PURE__ */ C.jsx(vt, { variant: "rounded", width: 180, height: 24, animation: "wave", margin: "12px 0px 10px 0px" }),
3292
+ /* @__PURE__ */ C.jsx(vt, { variant: "rounded", width: 450, height: 40, animation: "wave" })
3293
3293
  ] }), pe = {
3294
3294
  baseUrl: "baseUrl",
3295
3295
  authType: "authType"
@@ -3660,11 +3660,11 @@ const Za = Z(z)`
3660
3660
  ne(() => {
3661
3661
  var h, B;
3662
3662
  if (i != null && i.authDetails) {
3663
- const N = Xa(i.authDetails);
3663
+ const W = Xa(i.authDetails);
3664
3664
  r({
3665
3665
  type: ee.SET_FIELDS,
3666
3666
  payload: {
3667
- values: N
3667
+ values: W
3668
3668
  }
3669
3669
  });
3670
3670
  }
@@ -3679,7 +3679,9 @@ const Za = Z(z)`
3679
3679
  const f = (h, B) => {
3680
3680
  r({ type: ee.SET_FIELD_VALUE, payload: { value: B, name: h } });
3681
3681
  }, I = (h) => {
3682
- f(h.target.name, h.target.value);
3682
+ h.stopPropagation();
3683
+ const { name: B, value: W } = (h == null ? void 0 : h.target) || {};
3684
+ f(B, W.trim());
3683
3685
  }, b = (h, B) => {
3684
3686
  h && typeof h == "object" && "label" in h && typeof h.label == "string" && "value" in h && typeof h.value == "string" && typeof B.name < "u" && (B.name === pe.authType && a(Ke.AUTH_UPDATED, {
3685
3687
  selected_auth_type: h.label
@@ -3689,16 +3691,16 @@ const Za = Z(z)`
3689
3691
  }, A = () => {
3690
3692
  const h = s.values.authType;
3691
3693
  return typeof h == "object" && h.value === ge.apiToken.value ? [...Jt, ...Ba] : [...Jt, ...Ta];
3692
- }, C = () => {
3694
+ }, v = () => {
3693
3695
  var B;
3694
3696
  const h = {};
3695
3697
  return typeof s.values.apiAddTo == "object" && s.values.apiAddTo.value === Le.queryParam.value ? (h.apiHeaderPrefix = !1, h.apiHeaderName = !1) : h.apiParamName = !1, (n && !((B = i == null ? void 0 : i.variables) != null && B.baseUrl) || !n && (i == null ? void 0 : i.baseUrlRequired) === !1) && (h.baseUrl = !1), h;
3696
3698
  }, T = () => {
3697
- const h = C(), B = It(A());
3698
- return !Object.keys(s.errors).filter((W) => !!s.errors[W]).filter((W) => W in h ? h[W] : !0).filter((W) => W in B).length;
3699
+ const h = v(), B = It(A());
3700
+ return !Object.keys(s.errors).filter((N) => !!s.errors[N]).filter((N) => N in h ? h[N] : !0).filter((N) => N in B).length;
3699
3701
  }, V = () => {
3700
- var W;
3701
- const h = C(), B = It(A()), N = Na({
3702
+ var N;
3703
+ const h = v(), B = It(A()), W = Na({
3702
3704
  isEdit: n,
3703
3705
  templateId: e,
3704
3706
  values: s.values,
@@ -3707,40 +3709,40 @@ const Za = Z(z)`
3707
3709
  });
3708
3710
  a(Ke.SAVE_AUTHORIZE_CLICKED, {
3709
3711
  connector_name: d,
3710
- auth_type: ((W = s.values.authType) == null ? void 0 : W.label) ?? s.values.authType,
3712
+ auth_type: ((N = s.values.authType) == null ? void 0 : N.label) ?? s.values.authType,
3711
3713
  base_url: s.values.baseUrl
3712
- }), !n && "templateId" in N ? o(mt({ data: N })) : o(mt({ data: N, connectorId: e }));
3714
+ }), !n && "templateId" in W ? o(mt({ data: W })) : o(mt({ data: W, connectorId: e }));
3713
3715
  }, x = () => {
3714
3716
  s.values.oAuthRedirectUrl && Jn(s.values.oAuthRedirectUrl, (h) => c(!h));
3715
3717
  }, S = {
3716
3718
  [F.oAuthRedirectUrl]: {
3717
- icon: /* @__PURE__ */ v.jsx("img", { alt: "copy", src: Oa, onClick: x }),
3719
+ icon: /* @__PURE__ */ C.jsx("img", { alt: "copy", src: Oa, onClick: x }),
3718
3720
  toolTipText: Yn
3719
3721
  }
3720
3722
  };
3721
- return /* @__PURE__ */ v.jsxs(La, { children: [
3722
- /* @__PURE__ */ v.jsxs(Za, { direction: "column", gap: 1, children: [
3723
- n && !p ? /* @__PURE__ */ v.jsx(ci, { severity: "error", sx: { width: "fit-content" }, children: On }) : null,
3724
- /* @__PURE__ */ v.jsx(wa, { variant: "h2", children: Rn })
3723
+ return /* @__PURE__ */ C.jsxs(La, { children: [
3724
+ /* @__PURE__ */ C.jsxs(Za, { direction: "column", gap: 1, children: [
3725
+ n && !p ? /* @__PURE__ */ C.jsx(ci, { severity: "error", sx: { width: "fit-content" }, children: On }) : null,
3726
+ /* @__PURE__ */ C.jsx(wa, { variant: "h2", children: Rn })
3725
3727
  ] }),
3726
- u ? /* @__PURE__ */ v.jsx(Fa, {}) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
3727
- /* @__PURE__ */ v.jsx(Ie, { variant: "h3", children: d }),
3728
- /* @__PURE__ */ v.jsx(Pa, { variant: "body2", children: g })
3728
+ u ? /* @__PURE__ */ C.jsx(Fa, {}) : /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
3729
+ /* @__PURE__ */ C.jsx(Ie, { variant: "h3", children: d }),
3730
+ /* @__PURE__ */ C.jsx(Pa, { variant: "body2", children: g })
3729
3731
  ] }),
3730
- /* @__PURE__ */ v.jsx(Ha, { children: /* @__PURE__ */ v.jsx(
3732
+ /* @__PURE__ */ C.jsx(Ha, { children: /* @__PURE__ */ C.jsx(
3731
3733
  Ga,
3732
3734
  {
3733
3735
  formConfig: A(),
3734
3736
  selectChangeHandler: b,
3735
3737
  inputChangeHandler: I,
3736
- predicates: C(),
3738
+ predicates: v(),
3737
3739
  values: s.values,
3738
3740
  validations: Sa,
3739
3741
  onValidationError: m,
3740
3742
  icons: S
3741
3743
  }
3742
3744
  ) }),
3743
- /* @__PURE__ */ v.jsx(Da, { direction: "row", children: /* @__PURE__ */ v.jsx(
3745
+ /* @__PURE__ */ C.jsx(Da, { direction: "row", children: /* @__PURE__ */ C.jsx(
3744
3746
  Qt,
3745
3747
  {
3746
3748
  disabled: !T() || u || t === O.PENDING,
@@ -3748,7 +3750,7 @@ const Za = Z(z)`
3748
3750
  children: "Save & Authorize"
3749
3751
  }
3750
3752
  ) }),
3751
- /* @__PURE__ */ v.jsx(
3753
+ /* @__PURE__ */ C.jsx(
3752
3754
  Mn,
3753
3755
  {
3754
3756
  message: kn,
@@ -3831,17 +3833,17 @@ const Za = Z(z)`
3831
3833
  test_url: a
3832
3834
  }), l(jn({ data: { testUrl: a }, connectorId: u }));
3833
3835
  };
3834
- return /* @__PURE__ */ v.jsxs(Ya, { children: [
3835
- /* @__PURE__ */ v.jsx(Ie, { variant: "h4", children: "Test Endpoint URL" }),
3836
- /* @__PURE__ */ v.jsxs(Ja, { children: [
3837
- /* @__PURE__ */ v.jsx(ja, { children: "GET" }),
3838
- /* @__PURE__ */ v.jsx(Tn, { type: "text", name: "url", inputChangeHandler: d })
3836
+ return /* @__PURE__ */ C.jsxs(Ya, { children: [
3837
+ /* @__PURE__ */ C.jsx(Ie, { variant: "h4", children: "Test Endpoint URL" }),
3838
+ /* @__PURE__ */ C.jsxs(Ja, { children: [
3839
+ /* @__PURE__ */ C.jsx(ja, { children: "GET" }),
3840
+ /* @__PURE__ */ C.jsx(Tn, { type: "text", name: "url", inputChangeHandler: d })
3839
3841
  ] }),
3840
- /* @__PURE__ */ v.jsxs(za, { children: [
3841
- /* @__PURE__ */ v.jsx(Ua, { textColor: r != null && r.statusCode.includes("200") ? "#23B33A" : "#CD3746", children: (r == null ? void 0 : r.statusCode) || "" }),
3842
- /* @__PURE__ */ v.jsx(Qa, { children: r != null && r.response ? /* @__PURE__ */ v.jsx("pre", { children: JSON.stringify(r.response, null, 2) }) : null })
3842
+ /* @__PURE__ */ C.jsxs(za, { children: [
3843
+ /* @__PURE__ */ C.jsx(Ua, { textColor: r != null && r.statusCode.includes("200") ? "#23B33A" : "#CD3746", children: (r == null ? void 0 : r.statusCode) || "" }),
3844
+ /* @__PURE__ */ C.jsx(Qa, { children: r != null && r.response ? /* @__PURE__ */ C.jsx("pre", { children: JSON.stringify(r.response, null, 2) }) : null })
3843
3845
  ] }),
3844
- /* @__PURE__ */ v.jsx(
3846
+ /* @__PURE__ */ C.jsx(
3845
3847
  _a,
3846
3848
  {
3847
3849
  variant: "outlined",
@@ -3870,15 +3872,15 @@ const Za = Z(z)`
3870
3872
  d(l ? Kn(s) : $n(s));
3871
3873
  }, [l, d, s]), ne(() => {
3872
3874
  let I, b, m;
3873
- const A = (C) => {
3874
- I && C.origin === window.location.origin && (C.data === qn || C.data === ht) && (clearTimeout(b), I.close(), d(De(C.data === ht ? O.OAUTH_SUCCESS : O.OAUTH_FAILED)));
3875
+ const A = (v) => {
3876
+ I && v.origin === window.location.origin && (v.data === qn || v.data === ht) && (clearTimeout(b), I.close(), d(De(v.data === ht ? O.OAUTH_SUCCESS : O.OAUTH_FAILED)));
3875
3877
  };
3876
3878
  if (t) {
3877
3879
  I = window.open(t, "_blank");
3878
- const C = 5 * 60 * 1e3;
3880
+ const v = 5 * 60 * 1e3;
3879
3881
  b = setTimeout(() => {
3880
3882
  I == null || I.close(), d(De(O.OAUTH_FAILED));
3881
- }, C), m = setInterval(() => {
3883
+ }, v), m = setInterval(() => {
3882
3884
  I && I.closed && (clearInterval(m), I = null, d(De(O.OAUTH_FAILED)));
3883
3885
  }, 500), window.addEventListener("message", A);
3884
3886
  }
@@ -3888,23 +3890,23 @@ const Za = Z(z)`
3888
3890
  }, [t, d]), ne(() => {
3889
3891
  switch ((a === O.OAUTH_SUCCESS || a === O.OAUTH_FAILED || a === O.API_KEY_SUCCESS || a === O.API_KEY_FAILED) && o(fe.BASEPATH), a) {
3890
3892
  case O.OAUTH_SUCCESS: {
3891
- ve({ message: ni, type: At });
3893
+ Ce({ message: ni, type: At });
3892
3894
  break;
3893
3895
  }
3894
3896
  case O.OAUTH_FAILED: {
3895
- ve({ message: ti, type: Oe });
3897
+ Ce({ message: ti, type: Oe });
3896
3898
  break;
3897
3899
  }
3898
3900
  case O.REQUEST_FAILED: {
3899
- ve({ message: ft, type: Oe });
3901
+ Ce({ message: ft, type: Oe });
3900
3902
  break;
3901
3903
  }
3902
3904
  case O.API_KEY_SUCCESS: {
3903
- ve({ message: ei, type: At });
3905
+ Ce({ message: ei, type: At });
3904
3906
  break;
3905
3907
  }
3906
3908
  case O.API_KEY_FAILED: {
3907
- ve({ message: ft, type: Oe });
3909
+ Ce({ message: ft, type: Oe });
3908
3910
  break;
3909
3911
  }
3910
3912
  }
@@ -3917,10 +3919,10 @@ const Za = Z(z)`
3917
3919
  },
3918
3920
  { name: Rn }
3919
3921
  ];
3920
- return /* @__PURE__ */ v.jsxs($a, { direction: "row", children: [
3921
- /* @__PURE__ */ v.jsxs("div", { children: [
3922
- /* @__PURE__ */ v.jsx(xi, { options: f }),
3923
- /* @__PURE__ */ v.jsx(
3922
+ return /* @__PURE__ */ C.jsxs($a, { direction: "row", children: [
3923
+ /* @__PURE__ */ C.jsxs("div", { children: [
3924
+ /* @__PURE__ */ C.jsx(xi, { options: f }),
3925
+ /* @__PURE__ */ C.jsx(
3924
3926
  ka,
3925
3927
  {
3926
3928
  connectorId: s,
@@ -3931,7 +3933,7 @@ const Za = Z(z)`
3931
3933
  }
3932
3934
  )
3933
3935
  ] }),
3934
- /* @__PURE__ */ v.jsx(
3936
+ /* @__PURE__ */ C.jsx(
3935
3937
  Ka,
3936
3938
  {
3937
3939
  connectorData: g,
@@ -1,4 +1,4 @@
1
- import { s as o, B as s, T as m, M as S, u as C, a as b, R as B, S as x, j as i, C as E, b as T, c as v, O as j } from "./index-CmBY3g0w.js";
1
+ import { s as o, B as s, T as m, M as S, u as C, a as b, R as B, S as x, j as i, C as E, b as T, c as v, O as j } from "./index-gn5WhoXI.js";
2
2
  import { useContext as k, useEffect as A } from "react";
3
3
  import { G as N } from "./gainsight-7AZqfBvZ.js";
4
4
  const O = o(s)`
@@ -1,9 +1,9 @@
1
- import { s as e, o as n, j as t, M as f, u as H, f as T, L as S, A as N, d as R, e as D, g as I, h as B, R as M, I as O, b as w, B as C, T as h, i as g, k as V, l as U } from "./index-CmBY3g0w.js";
1
+ import { s as e, o as n, j as t, M as f, u as H, f as T, L as S, A as N, d as R, e as D, g as I, h as B, R as M, I as O, b as w, B as C, T as h, i as g, k as V, l as U } from "./index-gn5WhoXI.js";
2
2
  import { useContext as j, useEffect as y, useState as m } from "react";
3
- import { E as W, a as $, R as Z, C as G, b as P, c as q } from "./index-J9wvD40S.js";
3
+ import { E as W, a as $, R as Z, C as G, b as P, c as q } from "./index-DKps44aY.js";
4
4
  import { G as E } from "./gainsight-7AZqfBvZ.js";
5
- import { u as F, a as d } from "./hooks-oU07Y_P5.js";
6
- import { C as b, s as _, a as z, b as X, c as A, d as Y } from "./showMessage-CG2dwE-5.js";
5
+ import { u as F, a as d } from "./hooks-DLU0NnN4.js";
6
+ import { C as b, s as _, a as z, b as X, c as A, d as Y } from "./showMessage-Be4kJ3x1.js";
7
7
  const K = e("li")`
8
8
  width: 252px;
9
9
  height: 187px;
@@ -1,8 +1,8 @@
1
- import { s as l, b as i, o as f, j as t, i as v, M as T, T as x, m as b, u as y, n as I, p as _, q as k, r as D, R as M, A } from "./index-CmBY3g0w.js";
1
+ import { s as l, b as i, o as f, j as t, i as v, M as T, T as x, m as b, u as y, n as I, p as _, q as k, r as D, R as M, A } from "./index-gn5WhoXI.js";
2
2
  import { useContext as j, useState as B, useEffect as N } from "react";
3
- import { a as h, u as P } from "./hooks-oU07Y_P5.js";
4
- import { C as L, d as R, e as Z, f as O, g as W, T as q } from "./showMessage-CG2dwE-5.js";
5
- import { c as G, b as U } from "./index-J9wvD40S.js";
3
+ import { a as h, u as P } from "./hooks-DLU0NnN4.js";
4
+ import { C as L, d as R, e as Z, f as O, g as W, T as q } from "./showMessage-Be4kJ3x1.js";
5
+ import { c as G, b as U } from "./index-DKps44aY.js";
6
6
  import { G as w } from "./gainsight-7AZqfBvZ.js";
7
7
  const F = "{{connector}} features", $ = "Following are the list of features that you will find in this connector", K = "Request new feature", V = l(i)`
8
8
  width: 100%;
@@ -1,8 +1,8 @@
1
- import { t as _2, v as d2, w as i2, x as i0, _ as i, y as NA, z as YA, s as u, D as f, E as SA, F as pA, j as I, G as R, P as C, H as TA, J as u2, K as CA, N as A0, Q as H2, U as l0, V as x2, W as HA, X as z2, Y as qA, m as w2, Z as p2, $ as d0, a0 as j2, a1 as f0, a2 as C0, a3 as D0, a4 as Y2, a5 as u0, a6 as w0, a7 as p0, a8 as v0, a9 as M0, aa as L0, B as FA, o as LA, T as PA, b as y, i as Q2, M as T2, u as P0, A as D2, ab as U0, R as RA, ac as F0, ad as h0, ae as x0 } from "./index-CmBY3g0w.js";
1
+ import { t as _2, v as d2, w as i2, x as i0, _ as i, y as NA, z as YA, s as u, D as f, E as SA, F as pA, j as I, G as R, P as C, H as TA, J as u2, K as CA, N as A0, Q as H2, U as l0, V as x2, W as HA, X as z2, Y as qA, m as w2, Z as p2, $ as d0, a0 as j2, a1 as f0, a2 as C0, a3 as D0, a4 as Y2, a5 as u0, a6 as w0, a7 as p0, a8 as v0, a9 as M0, aa as L0, B as FA, o as LA, T as PA, b as y, i as Q2, M as T2, u as P0, A as D2, ab as U0, R as RA, ac as F0, ad as h0, ae as x0 } from "./index-gn5WhoXI.js";
2
2
  import * as v from "react";
3
3
  import { useContext as X2, useState as ZA, useEffect as f2 } from "react";
4
- import { a as bA, u as g0 } from "./hooks-oU07Y_P5.js";
5
- import { P as Q0, h as O0, T as b2, A as m0, i as H0, j as b0, f as N0, k as N2, l as Y0, I as T0, E as X0, m as B0 } from "./showMessage-CG2dwE-5.js";
4
+ import { a as bA, u as g0 } from "./hooks-DLU0NnN4.js";
5
+ import { P as Q0, h as O0, T as b2, A as m0, i as H0, j as b0, f as N0, k as N2, l as Y0, I as T0, E as X0, m as B0 } from "./showMessage-Be4kJ3x1.js";
6
6
  import { G as cA } from "./gainsight-7AZqfBvZ.js";
7
7
  const y0 = (A) => {
8
8
  const g = v.useRef({});
@@ -30737,21 +30737,21 @@ const SF = $(Jt)`
30737
30737
  {
30738
30738
  path: Yt.BASEPATH,
30739
30739
  lazy: async () => {
30740
- const { ConnectorView: t } = await import("./index-CcUWfd7W.js");
30740
+ const { ConnectorView: t } = await import("./index-BRFPkEwS.js");
30741
30741
  return { Component: t };
30742
30742
  },
30743
30743
  children: [
30744
30744
  {
30745
30745
  index: !0,
30746
30746
  lazy: async () => {
30747
- const { Dashboard: t } = await import("./index-BdYeMtm-.js");
30747
+ const { Dashboard: t } = await import("./index-BjEYsy6M.js");
30748
30748
  return { Component: t };
30749
30749
  }
30750
30750
  },
30751
30751
  {
30752
30752
  path: Yt.DASHBOARD,
30753
30753
  lazy: async () => {
30754
- const { Dashboard: t } = await import("./index-BdYeMtm-.js");
30754
+ const { Dashboard: t } = await import("./index-BjEYsy6M.js");
30755
30755
  return { Component: t };
30756
30756
  }
30757
30757
  },
@@ -30762,7 +30762,7 @@ const SF = $(Jt)`
30762
30762
  {
30763
30763
  path: `${Yt.API_VIEW}/:id`,
30764
30764
  lazy: async () => {
30765
- const { ConnectorConfig: t } = await import("./index-BtGF7Fdj.js");
30765
+ const { ConnectorConfig: t } = await import("./index-Bn832BE7.js");
30766
30766
  return { Component: t };
30767
30767
  }
30768
30768
  }
@@ -30771,14 +30771,14 @@ const SF = $(Jt)`
30771
30771
  {
30772
30772
  path: `${Yt.CONNECTOR_SETTINGS}/:id`,
30773
30773
  lazy: async () => {
30774
- const { Settings: t } = await import("./index-D-V-z0rj.js");
30774
+ const { Settings: t } = await import("./index-BOsazRIW.js");
30775
30775
  return { Component: t };
30776
30776
  }
30777
30777
  },
30778
30778
  {
30779
30779
  path: Yt.AUTH_SUCCESS,
30780
30780
  lazy: async () => {
30781
- const { AuthSuccess: t } = await import("./index-D_Z-g2yM.js");
30781
+ const { AuthSuccess: t } = await import("./index-1aHLlpcR.js");
30782
30782
  return { Component: t };
30783
30783
  }
30784
30784
  }
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b1 as e, b2 as o, b3 as t, b4 as a } from "./index-CmBY3g0w.js";
1
+ import { b1 as e, b2 as o, b3 as t, b4 as a } from "./index-gn5WhoXI.js";
2
2
  export {
3
3
  e as ConnectorsApp,
4
4
  o as setAppConfig,
package/index.umd.js CHANGED
@@ -3731,7 +3731,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3731
3731
  margin-top: 32px;
3732
3732
  margin-bottom: 13px;
3733
3733
  gap: 16px;
3734
- `,fW="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1446_32274)'%3e%3cpath%20d='M14.6663%200.916687H3.66634C2.65801%200.916687%201.83301%201.74169%201.83301%202.75002V15.5834H3.66634V2.75002H14.6663V0.916687ZM17.4163%204.58335H7.33301C6.32467%204.58335%205.49967%205.40835%205.49967%206.41669V19.25C5.49967%2020.2584%206.32467%2021.0834%207.33301%2021.0834H17.4163C18.4247%2021.0834%2019.2497%2020.2584%2019.2497%2019.25V6.41669C19.2497%205.40835%2018.4247%204.58335%2017.4163%204.58335ZM17.4163%2019.25H7.33301V6.41669H17.4163V19.25Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1446_32274'%3e%3crect%20width='22'%20height='22'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",pW="Custom Connectors",j9="Settings",hW=({isEdit:A=!1,connectorId:e,isLoading:t=!1,connectorData:n,authStatus:r})=>{const{sendTrackingEvent:o}=x.useContext(wn),g=wr(),[i,a]=x.useReducer(aW,iW),[s,E]=x.useState(!1),I=n?n.name:"",Q=n?n.description:"",f=n?n.isAuthenticated:!1;x.useEffect(()=>{var b,T;if(n!=null&&n.authDetails){const L=IW(n.authDetails);a({type:Fr.SET_FIELDS,payload:{values:L}})}(b=n==null?void 0:n.variables)!=null&&b.baseUrl&&a({type:Fr.SET_FIELD_VALUE,payload:{name:jA.baseUrl,value:(T=n==null?void 0:n.variables)==null?void 0:T.baseUrl}}),n!=null&&n.redirectUrl&&a({type:Fr.SET_FIELD_VALUE,payload:{name:jA.oAuthRedirectUrl,value:n==null?void 0:n.redirectUrl}})},[n]);const c=(b,T)=>{a({type:Fr.SET_FIELD_VALUE,payload:{value:T,name:b}})},l=b=>{c(b.target.name,b.target.value)},B=(b,T)=>{b&&typeof b=="object"&&"label"in b&&typeof b.label=="string"&&"value"in b&&typeof b.value=="string"&&typeof T.name<"u"&&(T.name===H2.authType&&o(lt.AUTH_UPDATED,{selected_auth_type:b.label}),c(T.name,{value:b.value,label:b.label}))},u=(b,T)=>{a({type:Fr.SET_FIELD_ERROR,payload:{name:b,value:T}})},h=()=>{const b=i.values.authType;return typeof b=="object"&&b.value===X2.apiToken.value?[...S9,...oW]:[...S9,...gW]},p=()=>{var T;const b={};return typeof i.values.apiAddTo=="object"&&i.values.apiAddTo.value===_i.queryParam.value?(b.apiHeaderPrefix=!1,b.apiHeaderName=!1):b.apiParamName=!1,(A&&!((T=n==null?void 0:n.variables)!=null&&T.baseUrl)||!A&&(n==null?void 0:n.baseUrlRequired)===!1)&&(b.baseUrl=!1),b},m=()=>{const b=p(),T=mu(h());return!Object.keys(i.errors).filter(O=>!!i.errors[O]).filter(O=>O in b?b[O]:!0).filter(O=>O in T).length},d=()=>{var O;const b=p(),T=mu(h()),L=EW({isEdit:A,templateId:e,values:i.values,formFields:T,predicates:b});o(lt.SAVE_AUTHORIZE_CLICKED,{connector_name:I,auth_type:((O=i.values.authType)==null?void 0:O.label)??i.values.authType,base_url:i.values.baseUrl}),!A&&"templateId"in L?g(W0({data:L})):g(W0({data:L,connectorId:e}))},v=()=>{i.values.oAuthRedirectUrl&&tM(i.values.oAuthRedirectUrl,b=>E(!b))},y={[jA.oAuthRedirectUrl]:{icon:w.jsx("img",{alt:"copy",src:fW,onClick:v}),toolTipText:_O}};return w.jsxs(uW,{children:[w.jsxs(BW,{direction:"column",gap:1,children:[A&&!f?w.jsx(Bs,{severity:"error",sx:{width:"fit-content"},children:$O}):null,w.jsx(lW,{variant:"h2",children:j9})]}),t?w.jsx(rW,{}):w.jsxs(w.Fragment,{children:[w.jsx(ee,{variant:"h3",children:I}),w.jsx(QW,{variant:"body2",children:Q})]}),w.jsx(cW,{children:w.jsx(nW,{formConfig:h(),selectChangeHandler:B,inputChangeHandler:l,predicates:p(),values:i.values,validations:CW,onValidationError:u,icons:y})}),w.jsx(dW,{direction:"row",children:w.jsx(yt,{disabled:!m()||t||r===et.PENDING,onClick:d,children:"Save & Authorize"})}),w.jsx(nL,{message:AU,anchorOrigin:{vertical:"bottom",horizontal:"left"},autoHideDuration:2e3,onClose:()=>E(!1),open:s})]})},mW=A=>A.auth.authUrl,vW=A=>A.auth.verifyTokenApiStatus,bW=A=>A.auth.authVerificationDone,yW=A=>A.auth.authStatus,wW=A=>A.auth.testApiStatus,xW=A=>A.auth.testApiData,DW=H(JA)`
3734
+ `,fW="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1446_32274)'%3e%3cpath%20d='M14.6663%200.916687H3.66634C2.65801%200.916687%201.83301%201.74169%201.83301%202.75002V15.5834H3.66634V2.75002H14.6663V0.916687ZM17.4163%204.58335H7.33301C6.32467%204.58335%205.49967%205.40835%205.49967%206.41669V19.25C5.49967%2020.2584%206.32467%2021.0834%207.33301%2021.0834H17.4163C18.4247%2021.0834%2019.2497%2020.2584%2019.2497%2019.25V6.41669C19.2497%205.40835%2018.4247%204.58335%2017.4163%204.58335ZM17.4163%2019.25H7.33301V6.41669H17.4163V19.25Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1446_32274'%3e%3crect%20width='22'%20height='22'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",pW="Custom Connectors",j9="Settings",hW=({isEdit:A=!1,connectorId:e,isLoading:t=!1,connectorData:n,authStatus:r})=>{const{sendTrackingEvent:o}=x.useContext(wn),g=wr(),[i,a]=x.useReducer(aW,iW),[s,E]=x.useState(!1),I=n?n.name:"",Q=n?n.description:"",f=n?n.isAuthenticated:!1;x.useEffect(()=>{var b,T;if(n!=null&&n.authDetails){const L=IW(n.authDetails);a({type:Fr.SET_FIELDS,payload:{values:L}})}(b=n==null?void 0:n.variables)!=null&&b.baseUrl&&a({type:Fr.SET_FIELD_VALUE,payload:{name:jA.baseUrl,value:(T=n==null?void 0:n.variables)==null?void 0:T.baseUrl}}),n!=null&&n.redirectUrl&&a({type:Fr.SET_FIELD_VALUE,payload:{name:jA.oAuthRedirectUrl,value:n==null?void 0:n.redirectUrl}})},[n]);const c=(b,T)=>{a({type:Fr.SET_FIELD_VALUE,payload:{value:T,name:b}})},l=b=>{b.stopPropagation();const{name:T,value:L}=(b==null?void 0:b.target)||{};c(T,L.trim())},B=(b,T)=>{b&&typeof b=="object"&&"label"in b&&typeof b.label=="string"&&"value"in b&&typeof b.value=="string"&&typeof T.name<"u"&&(T.name===H2.authType&&o(lt.AUTH_UPDATED,{selected_auth_type:b.label}),c(T.name,{value:b.value,label:b.label}))},u=(b,T)=>{a({type:Fr.SET_FIELD_ERROR,payload:{name:b,value:T}})},h=()=>{const b=i.values.authType;return typeof b=="object"&&b.value===X2.apiToken.value?[...S9,...oW]:[...S9,...gW]},p=()=>{var T;const b={};return typeof i.values.apiAddTo=="object"&&i.values.apiAddTo.value===_i.queryParam.value?(b.apiHeaderPrefix=!1,b.apiHeaderName=!1):b.apiParamName=!1,(A&&!((T=n==null?void 0:n.variables)!=null&&T.baseUrl)||!A&&(n==null?void 0:n.baseUrlRequired)===!1)&&(b.baseUrl=!1),b},m=()=>{const b=p(),T=mu(h());return!Object.keys(i.errors).filter(O=>!!i.errors[O]).filter(O=>O in b?b[O]:!0).filter(O=>O in T).length},d=()=>{var O;const b=p(),T=mu(h()),L=EW({isEdit:A,templateId:e,values:i.values,formFields:T,predicates:b});o(lt.SAVE_AUTHORIZE_CLICKED,{connector_name:I,auth_type:((O=i.values.authType)==null?void 0:O.label)??i.values.authType,base_url:i.values.baseUrl}),!A&&"templateId"in L?g(W0({data:L})):g(W0({data:L,connectorId:e}))},v=()=>{i.values.oAuthRedirectUrl&&tM(i.values.oAuthRedirectUrl,b=>E(!b))},y={[jA.oAuthRedirectUrl]:{icon:w.jsx("img",{alt:"copy",src:fW,onClick:v}),toolTipText:_O}};return w.jsxs(uW,{children:[w.jsxs(BW,{direction:"column",gap:1,children:[A&&!f?w.jsx(Bs,{severity:"error",sx:{width:"fit-content"},children:$O}):null,w.jsx(lW,{variant:"h2",children:j9})]}),t?w.jsx(rW,{}):w.jsxs(w.Fragment,{children:[w.jsx(ee,{variant:"h3",children:I}),w.jsx(QW,{variant:"body2",children:Q})]}),w.jsx(cW,{children:w.jsx(nW,{formConfig:h(),selectChangeHandler:B,inputChangeHandler:l,predicates:p(),values:i.values,validations:CW,onValidationError:u,icons:y})}),w.jsx(dW,{direction:"row",children:w.jsx(yt,{disabled:!m()||t||r===et.PENDING,onClick:d,children:"Save & Authorize"})}),w.jsx(nL,{message:AU,anchorOrigin:{vertical:"bottom",horizontal:"left"},autoHideDuration:2e3,onClose:()=>E(!1),open:s})]})},mW=A=>A.auth.authUrl,vW=A=>A.auth.verifyTokenApiStatus,bW=A=>A.auth.authVerificationDone,yW=A=>A.auth.authStatus,wW=A=>A.auth.testApiStatus,xW=A=>A.auth.testApiData,DW=H(JA)`
3735
3735
  width: 410px;
3736
3736
  height: 570px;
3737
3737
  padding: 38px 36px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "0.0.10-beta.78",
3
+ "version": "0.0.10-beta.79",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { aG as Zo, aH as Yt, z as dt, y as vt, J as ze, j as P, s as U, Z as Jo, D as Ue, aa as Gt, a9 as Kt, _ as w, E as mt, F as Me, aI as Zt, m as Qo, G as Ce, P as n, H as ht, aJ as er, aK as Jt, aL as tr, a0 as or, aM as pt, a4 as xo, N as Ct, aN as Qt, aO as rr, af as Oo, ah as eo, K as To, a7 as nr, aP as ar, aQ as ot, v as ir, t as sr, w as to, aR as lr, aS as oo, aT as rt, aU as pr, aV as cr, B as Po, aW as fr, b as ur, aX as _e } from "./index-CmBY3g0w.js";
1
+ import { aG as Zo, aH as Yt, z as dt, y as vt, J as ze, j as P, s as U, Z as Jo, D as Ue, aa as Gt, a9 as Kt, _ as w, E as mt, F as Me, aI as Zt, m as Qo, G as Ce, P as n, H as ht, aJ as er, aK as Jt, aL as tr, a0 as or, aM as pt, a4 as xo, N as Ct, aN as Qt, aO as rr, af as Oo, ah as eo, K as To, a7 as nr, aP as ar, aQ as ot, v as ir, t as sr, w as to, aR as lr, aS as oo, aT as rt, aU as pr, aV as cr, B as Po, aW as fr, b as ur, aX as _e } from "./index-gn5WhoXI.js";
2
2
  import * as M from "react";
3
3
  import dr from "react";
4
4
  function vr(e, t = 0, o = 1) {