@altimateai/ui-components 0.0.1-beta.10 → 0.0.1-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,19 +1,20 @@
1
- import { Button as Ce, Card as $e, CardBody as Je, CardTitle as Et, CloseButton as Wn, FormGroup as Mt, Input as Lt, FormFeedback as Kn, Collapse as Xn, Alert as ln, Col as Gn, CardImg as Zn, CardSubtitle as Qn, CardText as Jn, Row as er } from "reactstrap";
2
- import { g as yt, a as cn, A as ve, C as tr, I as Ie, T as nr } from "./redux-toolkit.modern.js";
3
- import { K as dn, N as dt, O as rr, P as or, T as fn, V as se, W as ir, X as sr, Y as ar, Z as ur, _ as lr, $ as rt, a0 as cr, a1 as dr } from "./CoachForm.js";
4
- import { j as v, A as pn, i as fr, k as pr, c as gr, D as hr, E as vr, h as mr, g as Er } from "./index2.js";
1
+ import { Card as vt, CardBody as an, CardTitle as un, FormGroup as Pt, Input as Ft, FormFeedback as Xn, Collapse as Gn, Alert as ln, Col as Zn, CardImg as Qn, CardSubtitle as Jn, CardText as er, Row as tr } from "reactstrap";
2
+ import { g as mt, a as cn, A as ve, C as nr, I as Ie, T as rr } from "./redux-toolkit.modern.js";
3
+ import { K as dn, N as lt, O as or, P as ir, T as fn, V as se, W as sr, X as ar, Y as ur, Z as lr, _ as cr, $ as tt, a0 as dr, a1 as fr } from "./CoachForm.js";
4
+ import { j as v, A as pn, i as pr, k as gr, a as hr, b as vr, D as mr, E as Er, e as yr, d as br } from "./index2.js";
5
5
  import * as te from "react";
6
- import Z, { createContext as _e, useReducer as gn, useCallback as we, useMemo as fe, useContext as ye, useLayoutEffect as yr, useEffect as le, useRef as Se, useId as hn, useInsertionEffect as br, Children as De, isValidElement as Cr, useState as re, lazy as Sr } from "react";
7
- import _r, { createPortal as bt } from "react-dom";
8
- import { bi as Bt } from "./NativeSelect.js";
9
- import { useFormik as Ar } from "formik";
10
- import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
11
- const Tr = () => {
6
+ import Z, { createContext as _e, useReducer as gn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as Cr, useEffect as le, useRef as Se, useId as hn, useInsertionEffect as Sr, Children as De, isValidElement as _r, useState as re, lazy as Ar } from "react";
7
+ import Tr, { createPortal as Et } from "react-dom";
8
+ import { y as ye, K as Ir, H as vn, M as mn } from "./Tooltip.js";
9
+ import { aJ as Mt } from "./NativeSelect.js";
10
+ import { useFormik as xr } from "formik";
11
+ import './main.css';var yt = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(yt || {});
12
+ const Or = () => {
12
13
  var r, i, n;
13
14
  const e = (n = (i = (r = window.location.hash) == null ? void 0 : r.split("#")[1]) == null ? void 0 : i.replace("!/", "")) == null ? void 0 : n.split("/");
14
15
  return { name: e == null ? void 0 : e[1], resourceType: e == null ? void 0 : e[0] };
15
16
  };
16
- var vn = { exports: {} };
17
+ var En = { exports: {} };
17
18
  /*! web-highlighter v0.7.4 https://github.com/alienzhou/web-highlighter */
18
19
  (function(e, r) {
19
20
  (function(i, n) {
@@ -815,56 +816,56 @@ var vn = { exports: {} };
815
816
  };
816
817
  }]).default;
817
818
  });
818
- })(vn);
819
- var Ir = vn.exports;
820
- const mn = /* @__PURE__ */ yt(Ir), et = "altimate-display-", xr = `${et}-highlight`, $t = `${et}-highlight-hover`, Or = `${et}-active-highlight`, Dr = 1049, xe = new mn({
819
+ })(En);
820
+ var Dr = En.exports;
821
+ const yn = /* @__PURE__ */ mt(Dr), Qe = "altimate-display-", Rr = `${Qe}-highlight`, Lt = `${Qe}-highlight-hover`, wr = `${Qe}-active-highlight`, Nr = 1049, xe = new yn({
821
822
  style: {
822
- className: xr
823
+ className: Rr
823
824
  }
824
825
  // wrapTag: HIGHLIGHT_WRAPPER_TAGNAME,
825
- }), St = new mn({
826
+ }), bt = new yn({
826
827
  style: {
827
- className: Or
828
+ className: wr
828
829
  }
829
830
  // wrapTag: ACTIVE_HIGHLIGHT_WRAPPER_TAGNAME,
830
- }), En = (e, r) => r.filter((i) => {
831
+ }), bn = (e, r) => r.filter((i) => {
831
832
  var n;
832
833
  return ((n = i.$node.nodeValue) == null ? void 0 : n.trim()) !== "";
833
- }), yn = (e, r, i) => {
834
+ }), Cn = (e, r, i) => {
834
835
  const n = r, t = i, o = ["BR", "HR"];
835
836
  return o.includes(n.$node.nodeName) && n.$node.parentNode && (n.$node = n.$node.parentNode), o.includes(t.$node.nodeName) && t.$node.parentNode && (t.$node = t.$node.parentNode), [n, t];
836
837
  };
837
- xe.hooks.Render.SelectedNodes.tap(En);
838
- xe.hooks.Serialize.Restore.tap(yn);
839
- St.hooks.Render.SelectedNodes.tap(En);
840
- St.hooks.Serialize.Restore.tap(yn);
838
+ xe.hooks.Render.SelectedNodes.tap(bn);
839
+ xe.hooks.Serialize.Restore.tap(Cn);
840
+ bt.hooks.Render.SelectedNodes.tap(bn);
841
+ bt.hooks.Serialize.Restore.tap(Cn);
841
842
  xe.on("selection:hover", ({ id: e }) => {
842
- xe.addClass($t, e);
843
+ xe.addClass(Lt, e);
843
844
  }).on("selection:hover-out", ({ id: e }) => {
844
- xe.removeClass($t, e);
845
+ xe.removeClass(Lt, e);
845
846
  });
846
- const Rr = (e) => {
847
+ const jr = (e) => {
847
848
  var r, i;
848
849
  return (r = e.meta) != null && r.highlight ? JSON.parse((i = e.meta) == null ? void 0 : i.highlight) : null;
849
- }, wr = (e) => {
850
- const r = Rr(e);
851
- r && (xe.remove(r.id), St.remove(r.id));
852
- }, _t = () => {
850
+ }, Pr = (e) => {
851
+ const r = jr(e);
852
+ r && (xe.remove(r.id), bt.remove(r.id));
853
+ }, Ct = () => {
853
854
  var i, n;
854
- const e = At(), r = (e == null ? void 0 : e[1]) === "analysis" ? document.getElementById("sql") : document.getElementById("code");
855
+ const e = St(), r = (e == null ? void 0 : e[1]) === "analysis" ? document.getElementById("sql") : document.getElementById("code");
855
856
  return (n = (i = r == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("code-block")) == null ? void 0 : n.querySelector("code.ng-binding.highlight");
856
- }, At = () => {
857
+ }, St = () => {
857
858
  var r;
858
859
  return (r = window.location.hash.split("#").find((i) => i.startsWith("!"))) == null ? void 0 : r.split("/");
859
- }, Tt = () => document.querySelector('[marked="model.description"]'), Nr = (e) => {
860
+ }, _t = () => document.querySelector('[marked="model.description"]'), Fr = (e) => {
860
861
  var r, i, n;
861
862
  return e.field ? e.column ? (i = (r = Array.from(
862
863
  document.querySelectorAll("column-details tr:not(.ng-hide) td:first-child")
863
- ).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n = Tt()) == null ? void 0 : n.firstChild : _t();
864
- }, jr = (e) => {
864
+ ).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n = _t()) == null ? void 0 : n.firstChild : Ct();
865
+ }, Mr = (e) => {
865
866
  if (e.getAttribute("marked") === "model.description")
866
867
  return "description";
867
- }, Pr = (e, r, i, n, t) => {
868
+ }, Lr = (e, r, i, n, t) => {
868
869
  if (e === "description")
869
870
  return {
870
871
  start: 0,
@@ -883,12 +884,12 @@ const Rr = (e) => {
883
884
  start: a,
884
885
  end: l
885
886
  };
886
- }, bs = () => {
887
+ }, As = () => {
887
888
  var e;
888
- return [(e = _t()) == null ? void 0 : e.parentElement, Tt()];
889
+ return [(e = Ct()) == null ? void 0 : e.parentElement, _t()];
889
890
  };
890
891
  var ae = /* @__PURE__ */ ((e) => (e[e.LOADING = 0] = "LOADING", e[e.UNINITIALIZED = 1] = "UNINITIALIZED", e[e.INITIALIZED = 2] = "INITIALIZED", e))(ae || {});
891
- const Fr = {
892
+ const Br = {
892
893
  users: {},
893
894
  isRightPanelOpen: !1,
894
895
  selectedConversationId: void 0,
@@ -897,13 +898,13 @@ const Fr = {
897
898
  newConversation: void 0,
898
899
  shareId: void 0,
899
900
  docsAppRendered: !1,
900
- currentPage: Tr(),
901
+ currentPage: Or(),
901
902
  codeblockLoaded: !1,
902
- source: Ct.DBT_DOCS,
903
+ source: yt.DBT_DOCS,
903
904
  manifest: {}
904
- }, Xe = cn({
905
+ }, Ke = cn({
905
906
  name: "appState",
906
- initialState: Fr,
907
+ initialState: Br,
907
908
  reducers: {
908
909
  setDocsAppRendered: (e, r) => {
909
910
  e.docsAppRendered = r.payload;
@@ -966,7 +967,7 @@ const Fr = {
966
967
  console.log("Invalid meta");
967
968
  return;
968
969
  }
969
- const n = At();
970
+ const n = St();
970
971
  if (!n || n.length < 3) {
971
972
  console.error("Unable to find model parts", n);
972
973
  return;
@@ -991,36 +992,36 @@ const Fr = {
991
992
  }
992
993
  }
993
994
  }), {
994
- setCurrentUserId: Cs,
995
- setShareId: Ss,
996
- updateSelectedConversationId: It,
997
- updateRightPanelState: xt,
998
- setUsers: Mr,
999
- setConversations: Lr,
1000
- resetNewConversation: Ot,
1001
- updateNewConversation: Dt,
1002
- upsertConversation: _s,
1003
- setDocsAppRendered: As,
1004
- updateCurrentPage: Ts,
1005
- updateCodeblockLoaded: Is,
1006
- resolveConversationGroup: Br,
1007
- setConversationsLoadingState: Ht,
1008
- refetchConversations: bn,
1009
- setConversationSource: xs,
1010
- setManifest: $r
1011
- } = Xe.actions, tt = _e({
1012
- state: Xe.getInitialState(),
995
+ setCurrentUserId: Ts,
996
+ setShareId: Is,
997
+ updateSelectedConversationId: At,
998
+ updateRightPanelState: Tt,
999
+ setUsers: $r,
1000
+ setConversations: Hr,
1001
+ resetNewConversation: It,
1002
+ updateNewConversation: xt,
1003
+ upsertConversation: xs,
1004
+ setDocsAppRendered: Os,
1005
+ updateCurrentPage: Ds,
1006
+ updateCodeblockLoaded: Rs,
1007
+ resolveConversationGroup: kr,
1008
+ setConversationsLoadingState: Bt,
1009
+ refetchConversations: Sn,
1010
+ setConversationSource: ws,
1011
+ setManifest: Ur
1012
+ } = Ke.actions, Je = _e({
1013
+ state: Ke.getInitialState(),
1013
1014
  dispatch: () => null,
1014
1015
  getValue: () => null
1015
- }), Hr = ({
1016
+ }), qr = ({
1016
1017
  children: e,
1017
1018
  shareId: r,
1018
1019
  userId: i,
1019
1020
  conversationGroupId: n,
1020
1021
  source: t
1021
1022
  }) => {
1022
- const [o, s] = gn(Xe.reducer, {
1023
- ...Xe.getInitialState(),
1023
+ const [o, s] = gn(Ke.reducer, {
1024
+ ...Ke.getInitialState(),
1024
1025
  shareId: r,
1025
1026
  currentUserId: i,
1026
1027
  selectedConversationId: n,
@@ -1037,29 +1038,29 @@ const Fr = {
1037
1038
  }),
1038
1039
  [o, s, u]
1039
1040
  );
1040
- return /* @__PURE__ */ v.jsx(tt.Provider, { value: l, children: e });
1041
- }, kr = () => ye(tt), ne = (e) => {
1042
- const { getValue: r } = ye(tt);
1041
+ return /* @__PURE__ */ v.jsx(Je.Provider, { value: l, children: e });
1042
+ }, zr = () => be(Je), ne = (e) => {
1043
+ const { getValue: r } = be(Je);
1043
1044
  return r(e);
1044
1045
  }, ce = () => {
1045
- const { dispatch: e } = ye(tt);
1046
+ const { dispatch: e } = be(Je);
1046
1047
  return e;
1047
- }, Ur = (e) => e;
1048
- let Cn = Ur;
1049
- process.env.NODE_ENV !== "production" && (Cn = (e, r) => {
1048
+ }, Vr = (e) => e;
1049
+ let _n = Vr;
1050
+ process.env.NODE_ENV !== "production" && (_n = (e, r) => {
1050
1051
  if (!e)
1051
1052
  throw new Error(r);
1052
1053
  });
1053
- const qr = _e(null), zr = _e({}), Vr = _e({
1054
+ const Yr = _e(null), Wr = _e({}), Kr = _e({
1054
1055
  transformPagePoint: (e) => e,
1055
1056
  isStatic: !1,
1056
1057
  reducedMotion: "never"
1057
- }), Yr = typeof window < "u", Wr = Yr ? yr : le;
1058
- function Sn(e) {
1058
+ }), Xr = typeof window < "u", Gr = Xr ? Cr : le;
1059
+ function An(e) {
1059
1060
  const r = Se(null);
1060
1061
  return r.current === null && (r.current = e()), r.current;
1061
1062
  }
1062
- class Kr extends te.Component {
1063
+ class Zr extends te.Component {
1063
1064
  getSnapshotBeforeUpdate(r) {
1064
1065
  const i = this.props.childRef.current;
1065
1066
  if (i && r.isPresent && !this.props.isPresent) {
@@ -1077,14 +1078,14 @@ class Kr extends te.Component {
1077
1078
  return this.props.children;
1078
1079
  }
1079
1080
  }
1080
- function Xr({ children: e, isPresent: r }) {
1081
+ function Qr({ children: e, isPresent: r }) {
1081
1082
  const i = hn(), n = Se(null), t = Se({
1082
1083
  width: 0,
1083
1084
  height: 0,
1084
1085
  top: 0,
1085
1086
  left: 0
1086
- }), { nonce: o } = ye(Vr);
1087
- return br(() => {
1087
+ }), { nonce: o } = be(Kr);
1088
+ return Sr(() => {
1088
1089
  const { width: s, height: u, top: l, left: d } = t.current;
1089
1090
  if (r || !n.current || !s || !u)
1090
1091
  return;
@@ -1101,10 +1102,10 @@ function Xr({ children: e, isPresent: r }) {
1101
1102
  `), () => {
1102
1103
  document.head.removeChild(a);
1103
1104
  };
1104
- }, [r]), v.jsx(Kr, { isPresent: r, childRef: n, sizeRef: t, children: te.cloneElement(e, { ref: n }) });
1105
+ }, [r]), v.jsx(Zr, { isPresent: r, childRef: n, sizeRef: t, children: te.cloneElement(e, { ref: n }) });
1105
1106
  }
1106
- const Gr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom: t, presenceAffectsLayout: o, mode: s }) => {
1107
- const u = Sn(Zr), l = hn(), d = fe(
1107
+ const Jr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom: t, presenceAffectsLayout: o, mode: s }) => {
1108
+ const u = An(eo), l = hn(), d = fe(
1108
1109
  () => ({
1109
1110
  id: l,
1110
1111
  initial: r,
@@ -1130,25 +1131,25 @@ const Gr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom:
1130
1131
  u.forEach((a, c) => u.set(c, !1));
1131
1132
  }, [i]), te.useEffect(() => {
1132
1133
  !i && !u.size && n && n();
1133
- }, [i]), s === "popLayout" && (e = v.jsx(Xr, { isPresent: i, children: e })), v.jsx(qr.Provider, { value: d, children: e });
1134
+ }, [i]), s === "popLayout" && (e = v.jsx(Qr, { isPresent: i, children: e })), v.jsx(Yr.Provider, { value: d, children: e });
1134
1135
  };
1135
- function Zr() {
1136
+ function eo() {
1136
1137
  return /* @__PURE__ */ new Map();
1137
1138
  }
1138
- const Ue = (e) => e.key || "";
1139
- function kt(e) {
1139
+ const ke = (e) => e.key || "";
1140
+ function $t(e) {
1140
1141
  const r = [];
1141
1142
  return De.forEach(e, (i) => {
1142
- Cr(i) && r.push(i);
1143
+ _r(i) && r.push(i);
1143
1144
  }), r;
1144
1145
  }
1145
- const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
1146
- Cn(!r, "Replace exitBeforeEnter with mode='wait'");
1147
- const u = fe(() => kt(e), [e]), l = u.map(Ue), d = Se(!0), a = Se(u), c = Sn(() => /* @__PURE__ */ new Map()), [f, g] = re(u), [p, m] = re(u);
1148
- Wr(() => {
1146
+ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
1147
+ _n(!r, "Replace exitBeforeEnter with mode='wait'");
1148
+ const u = fe(() => $t(e), [e]), l = u.map(ke), d = Se(!0), a = Se(u), c = An(() => /* @__PURE__ */ new Map()), [f, g] = re(u), [p, m] = re(u);
1149
+ Gr(() => {
1149
1150
  d.current = !1, a.current = u;
1150
1151
  for (let C = 0; C < p.length; C++) {
1151
- const S = Ue(p[C]);
1152
+ const S = ke(p[C]);
1152
1153
  l.includes(S) ? c.delete(S) : c.get(S) !== !0 && c.set(S, !1);
1153
1154
  }
1154
1155
  }, [p, l.length, l.join("-")]);
@@ -1156,16 +1157,16 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1156
1157
  if (u !== f) {
1157
1158
  let C = [...u];
1158
1159
  for (let S = 0; S < p.length; S++) {
1159
- const I = p[S], y = Ue(I);
1160
+ const I = p[S], y = ke(I);
1160
1161
  l.includes(y) || (C.splice(S, 0, I), h.push(I));
1161
1162
  }
1162
- s === "wait" && h.length && (C = h), m(kt(C)), g(u);
1163
+ s === "wait" && h.length && (C = h), m($t(C)), g(u);
1163
1164
  return;
1164
1165
  }
1165
1166
  process.env.NODE_ENV !== "production" && s === "wait" && p.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
1166
- const { forceRender: E } = ye(zr);
1167
+ const { forceRender: E } = be(Wr);
1167
1168
  return v.jsx(v.Fragment, { children: p.map((C) => {
1168
- const S = Ue(C), I = u === p || l.includes(S), y = () => {
1169
+ const S = ke(C), I = u === p || l.includes(S), y = () => {
1169
1170
  if (c.has(S))
1170
1171
  c.set(S, !0);
1171
1172
  else
@@ -1175,20 +1176,20 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1175
1176
  D || (A = !1);
1176
1177
  }), A && (E == null || E(), m(a.current), t && t());
1177
1178
  };
1178
- return v.jsx(Gr, { isPresent: I, initial: !d.current || n ? void 0 : !1, custom: I ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: I ? void 0 : y, children: C }, S);
1179
+ return v.jsx(Jr, { isPresent: I, initial: !d.current || n ? void 0 : !1, custom: I ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: I ? void 0 : y, children: C }, S);
1179
1180
  }) });
1180
- }, Jr = ({ pos: e, onAddComment: r }) => bt(
1181
- /* @__PURE__ */ v.jsx(Qr, { children: e && /* @__PURE__ */ v.jsx(
1182
- Ce,
1181
+ }, no = ({ pos: e, onAddComment: r }) => Et(
1182
+ /* @__PURE__ */ v.jsx(to, { children: e && /* @__PURE__ */ v.jsx(
1183
+ ye,
1183
1184
  {
1184
1185
  onClick: r,
1185
- id: `${et}-highlight`,
1186
+ id: `${Qe}-highlight`,
1186
1187
  style: {
1187
1188
  position: "absolute",
1188
1189
  top: e.y,
1189
1190
  left: e.x,
1190
1191
  // right: "15px",
1191
- zIndex: Dr + 5,
1192
+ zIndex: Nr + 5,
1192
1193
  cursor: "pointer",
1193
1194
  background: "#007AFF",
1194
1195
  width: 26,
@@ -1208,20 +1209,20 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1208
1209
  }
1209
1210
  ) }),
1210
1211
  e.element.parentElement
1211
- ), eo = () => {
1212
+ ), ro = () => {
1212
1213
  const {
1213
1214
  state: { isRightPanelOpen: e }
1214
- } = kr(), r = ce(), i = () => {
1215
- r(xt(!e));
1215
+ } = zr(), r = ce(), i = () => {
1216
+ r(Tt(!e));
1216
1217
  };
1217
- return /* @__PURE__ */ v.jsx(Ce, { onClick: i, children: e ? "Hide conversations" : "Show conversations" });
1218
- }, to = (e) => ve.get(`dbt/dbt_docs_share/${e}`), no = (e, r, i) => ve.post(`dbt/dbt_docs_share/${e}/conversation_group`, {
1218
+ return /* @__PURE__ */ v.jsx(ye, { onClick: i, children: e ? "Hide conversations" : "Show conversations" });
1219
+ }, oo = (e) => ve.get(`dbt/dbt_docs_share/${e}`), io = (e, r, i) => ve.post(`dbt/dbt_docs_share/${e}/conversation_group`, {
1219
1220
  ...r,
1220
1221
  telemetry: {
1221
1222
  eventName: "dbtCollaboration:create",
1222
1223
  properties: { source: i }
1223
1224
  }
1224
- }), ro = (e, r, i, n) => ve.post(
1225
+ }), so = (e, r, i, n) => ve.post(
1225
1226
  `dbt/dbt_docs_share/${e}/conversation_group/${r}/conversation`,
1226
1227
  {
1227
1228
  ...i,
@@ -1230,9 +1231,9 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1230
1231
  properties: { source: n }
1231
1232
  }
1232
1233
  }
1233
- ), oo = (e) => ve.get(
1234
+ ), ao = (e) => ve.get(
1234
1235
  `dbt/dbt_docs_share/${e}/conversations`
1235
- ), io = (e) => ve.get("users/chat", { company: e }), so = (e, r, i) => ve.post(
1236
+ ), uo = (e) => ve.get("users/chat", { company: e }), lo = (e, r, i) => ve.post(
1236
1237
  `dbt/dbt_docs_share/${e}/conversation_group/${r}/resolve`,
1237
1238
  {
1238
1239
  resolved: !0,
@@ -1241,13 +1242,13 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1241
1242
  properties: { source: i }
1242
1243
  }
1243
1244
  }
1244
- ), ao = () => {
1245
+ ), co = () => {
1245
1246
  const e = ne(
1246
1247
  (u) => u.shareId
1247
1248
  ), [r, i] = re(null), [n, t] = re(!1), o = ce();
1248
1249
  le(() => {
1249
1250
  r != null && r.manifest_presigned_url && fetch(r.manifest_presigned_url).then((u) => u.json()).then((u) => {
1250
- o($r(u));
1251
+ o(Ur(u));
1251
1252
  }).catch(
1252
1253
  (u) => console.error("error loading manifest", u, r.manifest_presigned_url)
1253
1254
  );
@@ -1256,7 +1257,7 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1256
1257
  if (!e)
1257
1258
  return;
1258
1259
  t(!0);
1259
- const u = await to(e);
1260
+ const u = await oo(e);
1260
1261
  if (u) {
1261
1262
  i(u);
1262
1263
  const l = document.getElementById("collapse-sidebar");
@@ -1267,7 +1268,7 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1267
1268
  return le(() => {
1268
1269
  !e || r || n || s();
1269
1270
  }, [e, r, s, n]), { shareDetails: r, loading: n };
1270
- }, uo = () => {
1271
+ }, fo = () => {
1271
1272
  const e = ne(
1272
1273
  (a) => a.selectedConversationId ? a.conversations[a.selectedConversationId] : null
1273
1274
  ), r = ne(
@@ -1279,7 +1280,7 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1279
1280
  i && (o(null), u(null));
1280
1281
  }, [i]);
1281
1282
  const l = we(() => {
1282
- console.log("resetHighlights"), t && wr(t), u(null), o(null);
1283
+ console.log("resetHighlights"), t && Pr(t), u(null), o(null);
1283
1284
  }, [t]);
1284
1285
  return le(() => {
1285
1286
  !e || !r || e.meta.resource_type && e.meta.uniqueId && (window.location.hash = `#!/${e.meta.resource_type}/${e.meta.uniqueId}`);
@@ -1287,13 +1288,13 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1287
1288
  getHighlightedSelectionData: () => t,
1288
1289
  pos: s,
1289
1290
  onSelectionEnd: (a) => {
1290
- const c = a.target, f = jr(c), { end: g, start: p } = a.detail.selectionRange, m = document.getSelection();
1291
+ const c = a.target, f = Mr(c), { end: g, start: p } = a.detail.selectionRange, m = document.getSelection();
1291
1292
  if (!m || !m.rangeCount)
1292
1293
  return l(), null;
1293
1294
  const E = m.getRangeAt(0).toString(), C = c == null ? void 0 : c.innerText;
1294
1295
  if (!E || !C)
1295
1296
  return;
1296
- const { end: S, start: I, x: y, y: A } = Pr(
1297
+ const { end: S, start: I, x: y, y: A } = Lr(
1297
1298
  f,
1298
1299
  c,
1299
1300
  E,
@@ -1312,20 +1313,20 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1312
1313
  }
1313
1314
  }
1314
1315
  };
1315
- n(Ot()), u({
1316
+ n(It()), u({
1316
1317
  x: y,
1317
1318
  y: A,
1318
1319
  element: c
1319
1320
  }), document.body.addEventListener("click", l, { once: !0 }), o(D);
1320
1321
  }
1321
1322
  };
1322
- }, lo = ({
1323
+ }, po = ({
1323
1324
  conversationGroup: e
1324
1325
  }) => {
1325
1326
  const r = ne(
1326
1327
  (u) => u.selectedConversationId
1327
- ), i = ce(), n = Se(null), t = fe(() => Nr(e.meta), [e.meta]), o = () => {
1328
- i(It(e.conversation_group_id));
1328
+ ), i = ce(), n = Se(null), t = fe(() => Fr(e.meta), [e.meta]), o = () => {
1329
+ i(At(e.conversation_group_id));
1329
1330
  }, s = fe(() => {
1330
1331
  if (!t)
1331
1332
  return;
@@ -1349,7 +1350,7 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1349
1350
  behavior: "smooth",
1350
1351
  block: "center"
1351
1352
  }));
1352
- }, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null : bt(
1353
+ }, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null : Et(
1353
1354
  /* @__PURE__ */ v.jsx(
1354
1355
  "div",
1355
1356
  {
@@ -1357,12 +1358,12 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1357
1358
  className: `altimate-highlighter ${r === e.conversation_group_id ? "active" : ""}`,
1358
1359
  style: { top: s.top, height: s.bottom - s.top },
1359
1360
  onClick: o,
1360
- children: /* @__PURE__ */ v.jsx(fr, {})
1361
+ children: /* @__PURE__ */ v.jsx(pr, {})
1361
1362
  }
1362
1363
  ),
1363
1364
  t.parentElement
1364
1365
  );
1365
- }, co = () => {
1366
+ }, go = () => {
1366
1367
  const e = ne(
1367
1368
  (t) => Object.values(t.conversations || {})
1368
1369
  ), r = ne(
@@ -1373,45 +1374,45 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
1373
1374
  (t) => t.meta.resource_type === i.resourceType && t.meta.uniqueId === i.name
1374
1375
  );
1375
1376
  return !(n != null && n.length) || !r ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: n.map((t) => /* @__PURE__ */ v.jsx(
1376
- lo,
1377
+ po,
1377
1378
  {
1378
1379
  conversationGroup: t
1379
1380
  },
1380
1381
  t.conversation_group_id
1381
1382
  )) });
1382
- }, fo = "_dbtDocs_14zop_9", po = "_hotspotButton_14zop_46", go = "_pulse_14zop_1", ho = "_conversationRightPanelCloseButton_14zop_62", vo = "_conversationRightPanel_14zop_62", mo = "_newConversationForm_14zop_94", Eo = "_highlightText_14zop_108", yo = "_conversationInputForm_14zop_130", bo = "_conversationGroup_14zop_156", Co = "_replyForm_14zop_189", So = "_resolveButton_14zop_237", me = {
1383
- dbtDocs: fo,
1384
- hotspotButton: po,
1385
- pulse: go,
1386
- conversationRightPanelCloseButton: ho,
1387
- conversationRightPanel: vo,
1388
- newConversationForm: mo,
1389
- highlightText: Eo,
1390
- conversationInputForm: yo,
1391
- conversationGroup: bo,
1392
- replyForm: Co,
1393
- resolveButton: So
1394
- }, _o = "_profileImage_11vaf_1", Ao = {
1395
- profileImage: _o
1396
- }, _n = ({ user: e }) => {
1383
+ }, ho = "_dbtDocs_14zop_9", vo = "_hotspotButton_14zop_46", mo = "_pulse_14zop_1", Eo = "_conversationRightPanelCloseButton_14zop_62", yo = "_conversationRightPanel_14zop_62", bo = "_newConversationForm_14zop_94", Co = "_highlightText_14zop_108", So = "_conversationInputForm_14zop_130", _o = "_conversationGroup_14zop_156", Ao = "_replyForm_14zop_189", To = "_resolveButton_14zop_237", me = {
1384
+ dbtDocs: ho,
1385
+ hotspotButton: vo,
1386
+ pulse: mo,
1387
+ conversationRightPanelCloseButton: Eo,
1388
+ conversationRightPanel: yo,
1389
+ newConversationForm: bo,
1390
+ highlightText: Co,
1391
+ conversationInputForm: So,
1392
+ conversationGroup: _o,
1393
+ replyForm: Ao,
1394
+ resolveButton: To
1395
+ }, Io = "_profileImage_11vaf_1", xo = {
1396
+ profileImage: Io
1397
+ }, Tn = ({ user: e }) => {
1397
1398
  var r;
1398
- return /* @__PURE__ */ v.jsx("div", { className: Ao.profileImage, children: ((r = e == null ? void 0 : e.first_name) == null ? void 0 : r[0]) || "" });
1399
+ return /* @__PURE__ */ v.jsx("div", { className: xo.profileImage, children: ((r = e == null ? void 0 : e.first_name) == null ? void 0 : r[0]) || "" });
1399
1400
  };
1400
- function To(e) {
1401
+ function Oo(e) {
1401
1402
  if (Array.isArray(e)) {
1402
1403
  for (var r = 0, i = new Array(e.length); r < e.length; r++)
1403
1404
  i[r] = e[r];
1404
1405
  return i;
1405
1406
  }
1406
1407
  }
1407
- function Io(e) {
1408
+ function Do(e) {
1408
1409
  if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
1409
1410
  }
1410
- function xo() {
1411
+ function Ro() {
1411
1412
  throw new TypeError("Invalid attempt to spread non-iterable instance");
1412
1413
  }
1413
- function Ge(e) {
1414
- return To(e) || Io(e) || xo();
1414
+ function Xe(e) {
1415
+ return Oo(e) || Do(e) || Ro();
1415
1416
  }
1416
1417
  function ue() {
1417
1418
  return ue = Object.assign || function(e) {
@@ -1423,30 +1424,30 @@ function ue() {
1423
1424
  return e;
1424
1425
  }, ue.apply(this, arguments);
1425
1426
  }
1426
- function Oo(e, r) {
1427
+ function wo(e, r) {
1427
1428
  if (!(e instanceof r))
1428
1429
  throw new TypeError("Cannot call a class as a function");
1429
1430
  }
1430
- function Do(e, r) {
1431
+ function No(e, r) {
1431
1432
  for (var i = 0; i < r.length; i++) {
1432
1433
  var n = r[i];
1433
1434
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
1434
1435
  }
1435
1436
  }
1436
- function Ro(e, r, i) {
1437
- return r && Do(e.prototype, r), e;
1437
+ function jo(e, r, i) {
1438
+ return r && No(e.prototype, r), e;
1438
1439
  }
1439
1440
  function k(e) {
1440
1441
  if (e === void 0)
1441
1442
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1442
1443
  return e;
1443
1444
  }
1444
- function ft(e, r) {
1445
- return ft = Object.setPrototypeOf || function(n, t) {
1445
+ function ct(e, r) {
1446
+ return ct = Object.setPrototypeOf || function(n, t) {
1446
1447
  return n.__proto__ = t, n;
1447
- }, ft(e, r);
1448
+ }, ct(e, r);
1448
1449
  }
1449
- function wo(e, r) {
1450
+ function Po(e, r) {
1450
1451
  if (typeof r != "function" && r !== null)
1451
1452
  throw new TypeError("Super expression must either be null or a function");
1452
1453
  e.prototype = Object.create(r && r.prototype, {
@@ -1455,7 +1456,7 @@ function wo(e, r) {
1455
1456
  writable: !0,
1456
1457
  configurable: !0
1457
1458
  }
1458
- }), r && ft(e, r);
1459
+ }), r && ct(e, r);
1459
1460
  }
1460
1461
  function Oe(e) {
1461
1462
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(i) {
@@ -1464,20 +1465,20 @@ function Oe(e) {
1464
1465
  return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
1465
1466
  }, Oe(e);
1466
1467
  }
1467
- function Ye(e) {
1468
- return typeof Symbol == "function" && Oe(Symbol.iterator) === "symbol" ? Ye = function(i) {
1468
+ function Ve(e) {
1469
+ return typeof Symbol == "function" && Oe(Symbol.iterator) === "symbol" ? Ve = function(i) {
1469
1470
  return Oe(i);
1470
- } : Ye = function(i) {
1471
+ } : Ve = function(i) {
1471
1472
  return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : Oe(i);
1472
- }, Ye(e);
1473
+ }, Ve(e);
1473
1474
  }
1474
- function No(e, r) {
1475
- return r && (Ye(r) === "object" || typeof r == "function") ? r : k(e);
1475
+ function Fo(e, r) {
1476
+ return r && (Ve(r) === "object" || typeof r == "function") ? r : k(e);
1476
1477
  }
1477
- function Ze(e) {
1478
- return Ze = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
1478
+ function Ge(e) {
1479
+ return Ge = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
1479
1480
  return i.__proto__ || Object.getPrototypeOf(i);
1480
- }, Ze(e);
1481
+ }, Ge(e);
1481
1482
  }
1482
1483
  function H(e, r, i) {
1483
1484
  return r in e ? Object.defineProperty(e, r, {
@@ -1487,7 +1488,7 @@ function H(e, r, i) {
1487
1488
  writable: !0
1488
1489
  }) : e[r] = i, e;
1489
1490
  }
1490
- var jo = function(e, r, i, n, t, o, s, u) {
1491
+ var Mo = function(e, r, i, n, t, o, s, u) {
1491
1492
  if (process.env.NODE_ENV !== "production" && r === void 0)
1492
1493
  throw new Error("invariant requires an error message argument");
1493
1494
  if (!e) {
@@ -1506,12 +1507,12 @@ var jo = function(e, r, i, n, t, o, s, u) {
1506
1507
  }
1507
1508
  throw l.framesToPop = 1, l;
1508
1509
  }
1509
- }, Po = jo;
1510
- const Re = /* @__PURE__ */ yt(Po);
1511
- function Fo(e) {
1510
+ }, Lo = Mo;
1511
+ const Re = /* @__PURE__ */ mt(Lo);
1512
+ function Bo(e) {
1512
1513
  if (Array.isArray(e)) return e;
1513
1514
  }
1514
- function Mo(e, r) {
1515
+ function $o(e, r) {
1515
1516
  var i = [], n = !0, t = !1, o = void 0;
1516
1517
  try {
1517
1518
  for (var s = e[Symbol.iterator](), u; !(n = (u = s.next()).done) && (i.push(u.value), !(r && i.length === r)); n = !0)
@@ -1527,22 +1528,22 @@ function Mo(e, r) {
1527
1528
  }
1528
1529
  return i;
1529
1530
  }
1530
- function Lo() {
1531
+ function Ho() {
1531
1532
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
1532
1533
  }
1533
- function Qe(e, r) {
1534
- return Fo(e) || Mo(e, r) || Lo();
1534
+ function Ze(e, r) {
1535
+ return Bo(e) || $o(e, r) || Ho();
1535
1536
  }
1536
- function Bo(e, r) {
1537
+ function ko(e, r) {
1537
1538
  if (e == null) return {};
1538
1539
  var i = {}, n = Object.keys(e), t, o;
1539
1540
  for (o = 0; o < n.length; o++)
1540
1541
  t = n[o], !(r.indexOf(t) >= 0) && (i[t] = e[t]);
1541
1542
  return i;
1542
1543
  }
1543
- function $o(e, r) {
1544
+ function Uo(e, r) {
1544
1545
  if (e == null) return {};
1545
- var i = Bo(e, r), n, t;
1546
+ var i = ko(e, r), n, t;
1546
1547
  if (Object.getOwnPropertySymbols) {
1547
1548
  var o = Object.getOwnPropertySymbols(e);
1548
1549
  for (t = 0; t < o.length; t++)
@@ -1558,7 +1559,7 @@ function Me(e) {
1558
1559
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
1559
1560
  }, Me(e);
1560
1561
  }
1561
- function Ho(e, r) {
1562
+ function qo(e, r) {
1562
1563
  if (Me(e) != "object" || !e) return e;
1563
1564
  var i = e[Symbol.toPrimitive];
1564
1565
  if (i !== void 0) {
@@ -1568,79 +1569,79 @@ function Ho(e, r) {
1568
1569
  }
1569
1570
  return (r === "string" ? String : Number)(e);
1570
1571
  }
1571
- function ko(e) {
1572
- var r = Ho(e, "string");
1572
+ function zo(e) {
1573
+ var r = qo(e, "string");
1573
1574
  return Me(r) == "symbol" ? r : r + "";
1574
1575
  }
1575
1576
  function Le(e, r, i) {
1576
- return (r = ko(r)) in e ? Object.defineProperty(e, r, {
1577
+ return (r = zo(r)) in e ? Object.defineProperty(e, r, {
1577
1578
  value: i,
1578
1579
  enumerable: !0,
1579
1580
  configurable: !0,
1580
1581
  writable: !0
1581
1582
  }) : e[r] = i, e;
1582
1583
  }
1583
- function pt(e, r) {
1584
+ function dt(e, r) {
1584
1585
  (r == null || r > e.length) && (r = e.length);
1585
1586
  for (var i = 0, n = Array(r); i < r; i++) n[i] = e[i];
1586
1587
  return n;
1587
1588
  }
1588
- function Uo(e) {
1589
- if (Array.isArray(e)) return pt(e);
1589
+ function Vo(e) {
1590
+ if (Array.isArray(e)) return dt(e);
1590
1591
  }
1591
- function qo(e) {
1592
+ function Yo(e) {
1592
1593
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1593
1594
  }
1594
- function zo(e, r) {
1595
+ function Wo(e, r) {
1595
1596
  if (e) {
1596
- if (typeof e == "string") return pt(e, r);
1597
+ if (typeof e == "string") return dt(e, r);
1597
1598
  var i = {}.toString.call(e).slice(8, -1);
1598
- return i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set" ? Array.from(e) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? pt(e, r) : void 0;
1599
+ return i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set" ? Array.from(e) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? dt(e, r) : void 0;
1599
1600
  }
1600
1601
  }
1601
- function Vo() {
1602
+ function Ko() {
1602
1603
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1603
1604
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1604
1605
  }
1605
1606
  function he(e) {
1606
- return Uo(e) || qo(e) || zo(e) || Vo();
1607
+ return Vo(e) || Yo(e) || Wo(e) || Ko();
1607
1608
  }
1608
1609
  var Ne = function(r) {
1609
1610
  return r === Object(r) ? Object.keys(r) : [];
1610
- }, An = function(r) {
1611
+ }, In = function(r) {
1611
1612
  return r === Object(r) ? Object.values(r) : [];
1612
1613
  };
1613
- function Tn(e, r) {
1614
+ function xn(e, r) {
1614
1615
  var i = Object.assign({}, e);
1615
- return We(e) && We(r) && Ne(r).forEach(function(n) {
1616
- We(r[n]) ? n in e ? i[n] = Tn(e[n], r[n]) : Object.assign(i, Le({}, n, r[n])) : Object.assign(i, Le({}, n, r[n]));
1616
+ return Ye(e) && Ye(r) && Ne(r).forEach(function(n) {
1617
+ Ye(r[n]) ? n in e ? i[n] = xn(e[n], r[n]) : Object.assign(i, Le({}, n, r[n])) : Object.assign(i, Le({}, n, r[n]));
1617
1618
  }), i;
1618
1619
  }
1619
- var gt = function(r) {
1620
+ var ft = function(r) {
1620
1621
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
1621
1622
  n[t - 1] = arguments[t];
1622
1623
  return n.reduce(function(o, s) {
1623
- return Tn(o, s);
1624
+ return xn(o, s);
1624
1625
  }, r);
1625
- }, Yo = function(r, i) {
1626
+ }, Xo = function(r, i) {
1626
1627
  var n = Object.assign({}, r);
1627
1628
  if (i)
1628
1629
  for (var t = 0; t < i.length; t++)
1629
1630
  delete n[i[t]];
1630
1631
  return n;
1631
- }, We = function(r) {
1632
+ }, Ye = function(r) {
1632
1633
  return r === Object(r) && !(r instanceof Date) && !Array.isArray(r);
1633
- }, Wo = function(r) {
1634
+ }, Go = function(r) {
1634
1635
  return (r || []).filter(Boolean);
1635
- }, Rt = function(r) {
1636
+ }, Ot = function(r) {
1636
1637
  return r[0] === "&";
1637
- }, Ko = function(r) {
1638
- return !Rt(r);
1639
- }, Ut = function(r) {
1638
+ }, Zo = function(r) {
1639
+ return !Ot(r);
1640
+ }, Ht = function(r) {
1640
1641
  return r.replace(/-(\w)/g, function(i, n) {
1641
1642
  return n.toUpperCase();
1642
1643
  });
1643
- }, Xo = function(r) {
1644
+ }, Qo = function(r) {
1644
1645
  for (var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = Ne(r), t = {}, o = 0, s = n.length; o < s; o += 1) {
1645
1646
  var u = n[o], l = Object.prototype.toString.call(r[u]) !== "[object Object]" || // style defs
1646
1647
  u[0] === ":" || // pseudo selectors
@@ -1649,20 +1650,20 @@ var gt = function(r) {
1649
1650
  l && (t[u] = r[u]);
1650
1651
  }
1651
1652
  return t;
1652
- }, In = function(r, i) {
1653
- for (var n = i.map(Ut), t = Ne(r), o = {}, s = 0, u = t.length; s < u; s += 1) {
1653
+ }, On = function(r, i) {
1654
+ for (var n = i.map(Ht), t = Ne(r), o = {}, s = 0, u = t.length; s < u; s += 1) {
1654
1655
  var l = t[s];
1655
- (i.indexOf(l) >= 0 || n.indexOf(Ut(l)) >= 0) && (o[l] = r[l]);
1656
+ (i.indexOf(l) >= 0 || n.indexOf(Ht(l)) >= 0) && (o[l] = r[l]);
1656
1657
  }
1657
1658
  return o;
1658
- }, Go = function e(r, i) {
1659
- for (var n = gt.apply(void 0, [{}, Yo(r, i)].concat(he(An(In(r, i))))), t = Ne(n).filter(Rt), o = 0, s = t.length; o < s; o += 1) {
1659
+ }, Jo = function e(r, i) {
1660
+ for (var n = ft.apply(void 0, [{}, Xo(r, i)].concat(he(In(On(r, i))))), t = Ne(n).filter(Ot), o = 0, s = t.length; o < s; o += 1) {
1660
1661
  var u = t[o], l = e(n[u], i);
1661
- i.indexOf(u) >= 0 ? (delete n[u], n = gt({}, n, l)) : n[u] = l;
1662
+ i.indexOf(u) >= 0 ? (delete n[u], n = ft({}, n, l)) : n[u] = l;
1662
1663
  }
1663
1664
  return n;
1664
1665
  };
1665
- function qt(e, r) {
1666
+ function kt(e, r) {
1666
1667
  var i = Object.keys(e);
1667
1668
  if (Object.getOwnPropertySymbols) {
1668
1669
  var n = Object.getOwnPropertySymbols(e);
@@ -1672,27 +1673,27 @@ function qt(e, r) {
1672
1673
  }
1673
1674
  return i;
1674
1675
  }
1675
- function zt(e) {
1676
+ function Ut(e) {
1676
1677
  for (var r = 1; r < arguments.length; r++) {
1677
1678
  var i = arguments[r] != null ? arguments[r] : {};
1678
- r % 2 ? qt(Object(i), !0).forEach(function(n) {
1679
+ r % 2 ? kt(Object(i), !0).forEach(function(n) {
1679
1680
  Le(e, n, i[n]);
1680
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : qt(Object(i)).forEach(function(n) {
1681
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : kt(Object(i)).forEach(function(n) {
1681
1682
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
1682
1683
  });
1683
1684
  }
1684
1685
  return e;
1685
1686
  }
1686
- var Zo = ["animationName"], xn = function(r) {
1687
+ var ei = ["animationName"], Dn = function(r) {
1687
1688
  var i = r.style, n = r.className;
1688
- return zt(zt({}, i ? {
1689
- style: Xo(i, Zo)
1689
+ return Ut(Ut({}, i ? {
1690
+ style: Qo(i, ei)
1690
1691
  } : {}), n ? {
1691
1692
  className: n
1692
1693
  } : {});
1693
- }, On = /* @__PURE__ */ _e(xn);
1694
- On.Provider;
1695
- var Dn = function(r) {
1694
+ }, Rn = /* @__PURE__ */ _e(Dn);
1695
+ Rn.Provider;
1696
+ var wn = function(r) {
1696
1697
  if (r) {
1697
1698
  if (typeof r == "string")
1698
1699
  return [r];
@@ -1704,17 +1705,17 @@ var Dn = function(r) {
1704
1705
  }
1705
1706
  } else return [];
1706
1707
  return r;
1707
- }, Qo = {}, Jo = function(r) {
1708
+ }, ti = {}, ni = function(r) {
1708
1709
  return function(i, n) {
1709
- var t = n || Qo;
1710
+ var t = n || ti;
1710
1711
  r.memoize = r.memoize || /* @__PURE__ */ new WeakMap();
1711
1712
  var o;
1712
1713
  r.memoize.has(t) ? o = r.memoize.get(t) : (o = {}, r.memoize.set(t, o));
1713
- var s = Dn(i).join(" ");
1714
+ var s = wn(i).join(" ");
1714
1715
  return s in o ? o[s] : o[s] = r(i || [], n);
1715
1716
  };
1716
1717
  };
1717
- function Vt(e, r) {
1718
+ function qt(e, r) {
1718
1719
  var i = Object.keys(e);
1719
1720
  if (Object.getOwnPropertySymbols) {
1720
1721
  var n = Object.getOwnPropertySymbols(e);
@@ -1727,18 +1728,18 @@ function Vt(e, r) {
1727
1728
  function Ae(e) {
1728
1729
  for (var r = 1; r < arguments.length; r++) {
1729
1730
  var i = arguments[r] != null ? arguments[r] : {};
1730
- r % 2 ? Vt(Object(i), !0).forEach(function(n) {
1731
+ r % 2 ? qt(Object(i), !0).forEach(function(n) {
1731
1732
  Le(e, n, i[n]);
1732
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Vt(Object(i)).forEach(function(n) {
1733
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : qt(Object(i)).forEach(function(n) {
1733
1734
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
1734
1735
  });
1735
1736
  }
1736
1737
  return e;
1737
1738
  }
1738
- var ei = function(r) {
1739
+ var ri = function(r) {
1739
1740
  var i = r && Ne(r)[0];
1740
1741
  return i && i.split("__")[0].split("--")[0];
1741
- }, ti = function(r, i, n) {
1742
+ }, oi = function(r, i, n) {
1742
1743
  if (r) {
1743
1744
  var t = r.split(" ")[0], o = [].concat(he(i.length === 0 ? n.map(function(s) {
1744
1745
  return "".concat(t, "--").concat(s.substring(1));
@@ -1748,20 +1749,20 @@ var ei = function(r) {
1748
1749
  return i.length === 0 ? [r].concat(he(o)) : o;
1749
1750
  }
1750
1751
  };
1751
- function Rn(e) {
1752
- var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : xn, o = i || ei(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r : Jo(function(c, f) {
1753
- var g = Dn(c);
1754
- Re(Array.isArray(g), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), Re(!f || We(f), "Optional second parameter must be a plain object.");
1755
- var p = g.filter(Rt), m = g.filter(Ko), h = m.length > 0 ? function(S) {
1756
- return An(In(S, m));
1752
+ function Nn(e) {
1753
+ var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Dn, o = i || ri(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r : ni(function(c, f) {
1754
+ var g = wn(c);
1755
+ Re(Array.isArray(g), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), Re(!f || Ye(f), "Optional second parameter must be a plain object.");
1756
+ var p = g.filter(Ot), m = g.filter(Zo), h = m.length > 0 ? function(S) {
1757
+ return In(On(S, m));
1757
1758
  } : function(S) {
1758
1759
  return [S];
1759
1760
  }, E = function() {
1760
1761
  var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1761
- return h(Go(I, p));
1762
- }, C = ti(o, m, p);
1763
- return Rn(Ae(Ae(Ae({}, (r || f) && {
1764
- style: gt.apply(void 0, [{}].concat(he(E(f)), he(E(r))))
1762
+ return h(Jo(I, p));
1763
+ }, C = oi(o, m, p);
1764
+ return Nn(Ae(Ae(Ae({}, (r || f) && {
1765
+ style: ft.apply(void 0, [{}].concat(he(E(f)), he(E(r))))
1765
1766
  }), C && {
1766
1767
  className: C.join(" ")
1767
1768
  }), n && {
@@ -1769,14 +1770,14 @@ function Rn(e) {
1769
1770
  }), t);
1770
1771
  }), u = Ae({}, typeof r == "function" ? r : {
1771
1772
  style: r
1772
- }), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ? Wo(l.map(function(c) {
1773
+ }), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ? Go(l.map(function(c) {
1773
1774
  return n[c];
1774
1775
  })) : l, a = t(Ae(Ae({}, u), d.length > 0 ? {
1775
1776
  className: d.join(" ")
1776
1777
  } : {}));
1777
1778
  return Object.assign(s, a), s;
1778
1779
  }
1779
- function Yt(e, r) {
1780
+ function zt(e, r) {
1780
1781
  var i = Object.keys(e);
1781
1782
  if (Object.getOwnPropertySymbols) {
1782
1783
  var n = Object.getOwnPropertySymbols(e);
@@ -1789,15 +1790,15 @@ function Yt(e, r) {
1789
1790
  function je(e) {
1790
1791
  for (var r = 1; r < arguments.length; r++) {
1791
1792
  var i = arguments[r] != null ? arguments[r] : {};
1792
- r % 2 ? Yt(Object(i), !0).forEach(function(n) {
1793
+ r % 2 ? zt(Object(i), !0).forEach(function(n) {
1793
1794
  Le(e, n, i[n]);
1794
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Yt(Object(i)).forEach(function(n) {
1795
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : zt(Object(i)).forEach(function(n) {
1795
1796
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
1796
1797
  });
1797
1798
  }
1798
1799
  return e;
1799
1800
  }
1800
- var ni = function() {
1801
+ var ii = function() {
1801
1802
  for (var r = arguments.length, i = new Array(r), n = 0; n < r; n++)
1802
1803
  i[n] = arguments[n];
1803
1804
  return i.reduce(function(t, o) {
@@ -1805,16 +1806,16 @@ var ni = function() {
1805
1806
  style: je(je({}, t.style), typeof o == "function" ? o.style : o)
1806
1807
  });
1807
1808
  }, {});
1808
- }, wt = function(r, i, n) {
1809
- var t = i.style, o = i.className, s = i.classNames, u = ye(On), l = fe(function() {
1810
- return Rn({
1809
+ }, Dt = function(r, i, n) {
1810
+ var t = i.style, o = i.className, s = i.classNames, u = be(Rn), l = fe(function() {
1811
+ return Nn({
1811
1812
  style: t,
1812
1813
  className: o,
1813
1814
  classNames: s
1814
1815
  }, u);
1815
1816
  }, [t, o, s, u]);
1816
1817
  return l(n, r);
1817
- }, ht = { exports: {} }, qe = { exports: {} }, Q = {};
1818
+ }, pt = { exports: {} }, Ue = { exports: {} }, Q = {};
1818
1819
  /** @license React v16.13.1
1819
1820
  * react-is.production.min.js
1820
1821
  *
@@ -1823,10 +1824,10 @@ var ni = function() {
1823
1824
  * This source code is licensed under the MIT license found in the
1824
1825
  * LICENSE file in the root directory of this source tree.
1825
1826
  */
1826
- var Wt;
1827
- function ri() {
1828
- if (Wt) return Q;
1829
- Wt = 1;
1827
+ var Vt;
1828
+ function si() {
1829
+ if (Vt) return Q;
1830
+ Vt = 1;
1830
1831
  var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
1831
1832
  function S(y) {
1832
1833
  if (typeof y == "object" && y !== null) {
@@ -1898,9 +1899,9 @@ var J = {};
1898
1899
  * This source code is licensed under the MIT license found in the
1899
1900
  * LICENSE file in the root directory of this source tree.
1900
1901
  */
1901
- var Kt;
1902
- function oi() {
1903
- return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
1902
+ var Yt;
1903
+ function ai() {
1904
+ return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
1904
1905
  var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
1905
1906
  function S(R) {
1906
1907
  return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
@@ -1911,24 +1912,24 @@ function oi() {
1911
1912
  var pe = R.$$typeof;
1912
1913
  switch (pe) {
1913
1914
  case r:
1914
- var ke = R.type;
1915
- switch (ke) {
1915
+ var He = R.type;
1916
+ switch (He) {
1916
1917
  case l:
1917
1918
  case d:
1918
1919
  case n:
1919
1920
  case o:
1920
1921
  case t:
1921
1922
  case c:
1922
- return ke;
1923
+ return He;
1923
1924
  default:
1924
- var Ft = ke && ke.$$typeof;
1925
- switch (Ft) {
1925
+ var jt = He && He.$$typeof;
1926
+ switch (jt) {
1926
1927
  case u:
1927
1928
  case a:
1928
1929
  case p:
1929
1930
  case g:
1930
1931
  case s:
1931
- return Ft;
1932
+ return jt;
1932
1933
  default:
1933
1934
  return pe;
1934
1935
  }
@@ -1981,19 +1982,19 @@ function oi() {
1981
1982
  J.AsyncMode = y, J.ConcurrentMode = A, J.ContextConsumer = D, J.ContextProvider = b, J.Element = w, J.ForwardRef = T, J.Fragment = P, J.Lazy = q, J.Memo = Y, J.Portal = F, J.Profiler = V, J.StrictMode = N, J.Suspense = j, J.isAsyncMode = G, J.isConcurrentMode = _, J.isContextConsumer = x, J.isContextProvider = L, J.isElement = B, J.isForwardRef = M, J.isFragment = W, J.isLazy = U, J.isMemo = z, J.isPortal = K, J.isProfiler = ee, J.isStrictMode = X, J.isSuspense = ie, J.isValidElementType = S, J.typeOf = I;
1982
1983
  }()), J;
1983
1984
  }
1984
- var Xt;
1985
- function wn() {
1986
- return Xt || (Xt = 1, process.env.NODE_ENV === "production" ? qe.exports = ri() : qe.exports = oi()), qe.exports;
1985
+ var Wt;
1986
+ function jn() {
1987
+ return Wt || (Wt = 1, process.env.NODE_ENV === "production" ? Ue.exports = si() : Ue.exports = ai()), Ue.exports;
1987
1988
  }
1988
1989
  /*
1989
1990
  object-assign
1990
1991
  (c) Sindre Sorhus
1991
1992
  @license MIT
1992
1993
  */
1993
- var ot, Gt;
1994
- function ii() {
1995
- if (Gt) return ot;
1996
- Gt = 1;
1994
+ var nt, Kt;
1995
+ function ui() {
1996
+ if (Kt) return nt;
1997
+ Kt = 1;
1997
1998
  var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
1998
1999
  function n(o) {
1999
2000
  if (o == null)
@@ -2022,7 +2023,7 @@ function ii() {
2022
2023
  return !1;
2023
2024
  }
2024
2025
  }
2025
- return ot = t() ? Object.assign : function(o, s) {
2026
+ return nt = t() ? Object.assign : function(o, s) {
2026
2027
  for (var u, l = n(o), d, a = 1; a < arguments.length; a++) {
2027
2028
  u = Object(arguments[a]);
2028
2029
  for (var c in u)
@@ -2034,27 +2035,27 @@ function ii() {
2034
2035
  }
2035
2036
  }
2036
2037
  return l;
2037
- }, ot;
2038
+ }, nt;
2038
2039
  }
2039
- var it, Zt;
2040
- function Nt() {
2041
- if (Zt) return it;
2042
- Zt = 1;
2040
+ var rt, Xt;
2041
+ function Rt() {
2042
+ if (Xt) return rt;
2043
+ Xt = 1;
2043
2044
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2044
- return it = e, it;
2045
+ return rt = e, rt;
2045
2046
  }
2046
- var st, Qt;
2047
- function Nn() {
2048
- return Qt || (Qt = 1, st = Function.call.bind(Object.prototype.hasOwnProperty)), st;
2047
+ var ot, Gt;
2048
+ function Pn() {
2049
+ return Gt || (Gt = 1, ot = Function.call.bind(Object.prototype.hasOwnProperty)), ot;
2049
2050
  }
2050
- var at, Jt;
2051
- function si() {
2052
- if (Jt) return at;
2053
- Jt = 1;
2051
+ var it, Zt;
2052
+ function li() {
2053
+ if (Zt) return it;
2054
+ Zt = 1;
2054
2055
  var e = function() {
2055
2056
  };
2056
2057
  if (process.env.NODE_ENV !== "production") {
2057
- var r = Nt(), i = {}, n = Nn();
2058
+ var r = Rt(), i = {}, n = Pn();
2058
2059
  e = function(o) {
2059
2060
  var s = "Warning: " + o;
2060
2061
  typeof console < "u" && console.error(s);
@@ -2094,13 +2095,13 @@ function si() {
2094
2095
  }
2095
2096
  return t.resetWarningCache = function() {
2096
2097
  process.env.NODE_ENV !== "production" && (i = {});
2097
- }, at = t, at;
2098
+ }, it = t, it;
2098
2099
  }
2099
- var ut, en;
2100
- function ai() {
2101
- if (en) return ut;
2102
- en = 1;
2103
- var e = wn(), r = ii(), i = Nt(), n = Nn(), t = si(), o = function() {
2100
+ var st, Qt;
2101
+ function ci() {
2102
+ if (Qt) return st;
2103
+ Qt = 1;
2104
+ var e = jn(), r = ui(), i = Rt(), n = Pn(), t = li(), o = function() {
2104
2105
  };
2105
2106
  process.env.NODE_ENV !== "production" && (o = function(u) {
2106
2107
  var l = "Warning: " + u;
@@ -2113,7 +2114,7 @@ function ai() {
2113
2114
  function s() {
2114
2115
  return null;
2115
2116
  }
2116
- return ut = function(u, l) {
2117
+ return st = function(u, l) {
2117
2118
  var d = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator";
2118
2119
  function c(_) {
2119
2120
  var x = _ && (d && _[d] || _[a]);
@@ -2415,18 +2416,18 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
2415
2416
  return !_.constructor || !_.constructor.name ? f : _.constructor.name;
2416
2417
  }
2417
2418
  return g.checkPropTypes = t, g.resetWarningCache = t.resetWarningCache, g.PropTypes = g, g;
2418
- }, ut;
2419
+ }, st;
2419
2420
  }
2420
- var lt, tn;
2421
- function ui() {
2422
- if (tn) return lt;
2423
- tn = 1;
2424
- var e = Nt();
2421
+ var at, Jt;
2422
+ function di() {
2423
+ if (Jt) return at;
2424
+ Jt = 1;
2425
+ var e = Rt();
2425
2426
  function r() {
2426
2427
  }
2427
2428
  function i() {
2428
2429
  }
2429
- return i.resetWarningCache = r, lt = function() {
2430
+ return i.resetWarningCache = r, at = function() {
2430
2431
  function n(s, u, l, d, a, c) {
2431
2432
  if (c !== e) {
2432
2433
  var f = new Error(
@@ -2463,50 +2464,50 @@ function ui() {
2463
2464
  resetWarningCache: r
2464
2465
  };
2465
2466
  return o.PropTypes = o, o;
2466
- }, lt;
2467
+ }, at;
2467
2468
  }
2468
2469
  if (process.env.NODE_ENV !== "production") {
2469
- var li = wn(), ci = !0;
2470
- ht.exports = ai()(li.isElement, ci);
2470
+ var fi = jn(), pi = !0;
2471
+ pt.exports = ci()(fi.isElement, pi);
2471
2472
  } else
2472
- ht.exports = ui()();
2473
- var di = ht.exports;
2474
- const O = /* @__PURE__ */ yt(di);
2475
- var Ke = function(r) {
2473
+ pt.exports = di()();
2474
+ var gi = pt.exports;
2475
+ const O = /* @__PURE__ */ mt(gi);
2476
+ var We = function(r) {
2476
2477
  return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
2477
2478
  }, ge = {
2478
2479
  id: "__id__",
2479
2480
  display: "__display__"
2480
- }, nn = function(r, i) {
2481
+ }, en = function(r, i) {
2481
2482
  Re(i === "id" || i === "display", 'Second arg must be either "id" or "display", got: "'.concat(i, '"'));
2482
2483
  var n = r.indexOf(ge.display), t = r.indexOf(ge.id);
2483
2484
  return n < 0 && (n = null), t < 0 && (t = null), Re(n !== null || t !== null, "The markup '".concat(r, "' does not contain either of the placeholders '__id__' or '__display__'")), n !== null && t !== null ? i === "id" && t <= n || i === "display" && n <= t ? 0 : 1 : 0;
2484
- }, fi = function(r) {
2485
+ }, hi = function(r) {
2485
2486
  var i = /^\/(.+)\/(\w+)?$/;
2486
2487
  return new RegExp(r.map(function(n) {
2487
- var t = i.exec(n.toString()), o = Qe(t, 3), s = o[1], u = o[2];
2488
+ var t = i.exec(n.toString()), o = Ze(t, 3), s = o[1], u = o[2];
2488
2489
  return Re(!u, "RegExp flags are not supported. Change /".concat(s, "/").concat(u, " into /").concat(s, "/")), "(".concat(s, ")");
2489
2490
  }).join("|"), "g");
2490
- }, jn = function(r) {
2491
+ }, Fn = function(r) {
2491
2492
  var i = 0;
2492
2493
  return r.indexOf("__id__") >= 0 && i++, r.indexOf("__display__") >= 0 && i++, i;
2493
- }, pi = function() {
2494
- }, He = function(r, i, n) {
2495
- for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : pi, o = fi(i.map(function(y) {
2494
+ }, vi = function() {
2495
+ }, $e = function(r, i, n) {
2496
+ for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : vi, o = hi(i.map(function(y) {
2496
2497
  return y.regex;
2497
2498
  })), s = 2, u = i.map(function(y) {
2498
2499
  var A = y.markup, D = s;
2499
- return s += jn(A) + 1, D;
2500
+ return s += Fn(A) + 1, D;
2500
2501
  }), l, d = 0, a = 0; (l = o.exec(r)) !== null; ) {
2501
2502
  var c = u.find(function(y) {
2502
2503
  return !!l[y];
2503
- }), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform, h = c + nn(p, "id"), E = c + nn(p, "display"), C = l[h], S = m(C, l[E]), I = r.substring(d, l.index);
2504
+ }), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform, h = c + en(p, "id"), E = c + en(p, "display"), C = l[h], S = m(C, l[E]), I = r.substring(d, l.index);
2504
2505
  t(I, d, a), a += I.length, n(l[0], l.index, a, C, S, f, d), a += S.length, d = o.lastIndex;
2505
2506
  }
2506
2507
  d < r.length && t(r.substring(d), d, a);
2507
- }, be = function(r, i) {
2508
+ }, Ce = function(r, i) {
2508
2509
  var n = "";
2509
- return He(r, i, function(t, o, s, u, l) {
2510
+ return $e(r, i, function(t, o, s, u, l) {
2510
2511
  n += l;
2511
2512
  }, function(t) {
2512
2513
  n += t;
@@ -2520,17 +2521,17 @@ var Ke = function(r) {
2520
2521
  }, u = function(d, a, c, f, g, p, m) {
2521
2522
  o === void 0 && c + g.length > n && (t === "NULL" ? o = null : o = a + (t === "END" ? d.length : 0));
2522
2523
  };
2523
- return He(r, i, u, s), o === void 0 ? r.length : o;
2524
+ return $e(r, i, u, s), o === void 0 ? r.length : o;
2524
2525
  }, Fe = function(r, i, n, t) {
2525
2526
  return r.substring(0, i) + t + r.substring(n);
2526
- }, gi = function(r, i, n, t) {
2527
- var o = n.selectionStartBefore, s = n.selectionEndBefore, u = n.selectionEndAfter, l = be(r, t), d = l.length - i.length;
2527
+ }, mi = function(r, i, n, t) {
2528
+ var o = n.selectionStartBefore, s = n.selectionEndBefore, u = n.selectionEndAfter, l = Ce(r, t), d = l.length - i.length;
2528
2529
  o === "undefined" && (o = u + d), s === "undefined" && (s = o), o === s && s === u && l.length === i.length && (o = o - 1);
2529
2530
  var a = i.slice(o, u), c = Math.min(o, u), f = s;
2530
2531
  o === u && (f = Math.max(s, o + d));
2531
2532
  var g = oe(r, t, c, "START"), p = oe(r, t, f, "END"), m = oe(r, t, c, "NULL"), h = oe(r, t, f, "NULL"), E = m === null || h === null, C = Fe(r, g, p, a);
2532
2533
  if (!E) {
2533
- var S = be(C, t);
2534
+ var S = Ce(C, t);
2534
2535
  if (S !== i) {
2535
2536
  for (c = 0; i[c] === S[c]; )
2536
2537
  c++;
@@ -2538,15 +2539,15 @@ var Ke = function(r) {
2538
2539
  }
2539
2540
  }
2540
2541
  return C;
2541
- }, rn = function(r, i, n) {
2542
+ }, tn = function(r, i, n) {
2542
2543
  var t = n, o = !1, s = function(l, d, a, c, f, g, p) {
2543
2544
  a <= n && a + f.length > n && (t = a, o = !0);
2544
2545
  };
2545
- if (He(r, i, s), o)
2546
+ if ($e(r, i, s), o)
2546
2547
  return t;
2547
2548
  }, Pe = function(r, i) {
2548
2549
  var n = [];
2549
- return He(r, i, function(t, o, s, u, l, d, a) {
2550
+ return $e(r, i, function(t, o, s, u, l, d, a) {
2550
2551
  n.push({
2551
2552
  id: u,
2552
2553
  display: l,
@@ -2555,36 +2556,36 @@ var Ke = function(r) {
2555
2556
  plainTextIndex: s
2556
2557
  });
2557
2558
  }), n;
2558
- }, Pn = function(r, i) {
2559
+ }, Mn = function(r, i) {
2559
2560
  return "".concat(r, "-").concat(i);
2560
- }, ze = function(r) {
2561
+ }, qe = function(r) {
2561
2562
  return Object.values(r).reduce(function(i, n) {
2562
2563
  var t = n.results;
2563
2564
  return i + t.length;
2564
2565
  }, 0);
2565
- }, hi = function(r, i) {
2566
+ }, Ei = function(r, i) {
2566
2567
  var n = Pe(r, i), t = n[n.length - 1];
2567
2568
  return t ? t.plainTextIndex + t.display.length : 0;
2568
- }, vi = function(r) {
2569
- var i = Ke(r), n = r[r.indexOf(ge.display) + ge.display.length], t = r[r.indexOf(ge.id) + ge.id.length];
2570
- return new RegExp(i.replace(ge.display, "([^".concat(Ke(n || ""), "]+?)")).replace(ge.id, "([^".concat(Ke(t || ""), "]+?)")));
2569
+ }, yi = function(r) {
2570
+ var i = We(r), n = r[r.indexOf(ge.display) + ge.display.length], t = r[r.indexOf(ge.id) + ge.id.length];
2571
+ return new RegExp(i.replace(ge.display, "([^".concat(We(n || ""), "]+?)")).replace(ge.id, "([^".concat(We(t || ""), "]+?)")));
2571
2572
  }, Ee = function(r) {
2572
2573
  return De.toArray(r).map(function(i) {
2573
2574
  var n = i.props, t = n.markup, o = n.regex, s = n.displayTransform;
2574
2575
  return {
2575
2576
  markup: t,
2576
- regex: o ? mi(o, t) : vi(t),
2577
+ regex: o ? bi(o, t) : yi(t),
2577
2578
  displayTransform: s || function(u, l) {
2578
2579
  return l || u;
2579
2580
  }
2580
2581
  };
2581
2582
  });
2582
- }, mi = function(r, i) {
2583
- var n = new RegExp(r.toString() + "|").exec("").length - 1, t = jn(i);
2583
+ }, bi = function(r, i) {
2584
+ var n = new RegExp(r.toString() + "|").exec("").length - 1, t = Fn(i);
2584
2585
  return Re(n === t, "Number of capturing groups in RegExp ".concat(r.toString(), " (").concat(n, ") does not match the number of placeholders in the markup '").concat(i, "' (").concat(t, ")")), r;
2585
- }, Ei = function(r, i, n) {
2586
+ }, Ci = function(r, i, n) {
2586
2587
  return r.replace(ge.id, i).replace(ge.display, n);
2587
- }, yi = [{
2588
+ }, Si = [{
2588
2589
  base: "A",
2589
2590
  letters: /(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g
2590
2591
  }, {
@@ -2854,30 +2855,30 @@ var Ke = function(r) {
2854
2855
  }, {
2855
2856
  base: "z",
2856
2857
  letters: /(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g
2857
- }], bi = function(r) {
2858
+ }], _i = function(r) {
2858
2859
  var i = r;
2859
- return yi.forEach(function(n) {
2860
+ return Si.forEach(function(n) {
2860
2861
  i = i.replace(n.letters, n.base);
2861
2862
  }), i;
2862
- }, on = function(r) {
2863
- return bi(r).toLowerCase();
2864
- }, Fn = function(r, i, n) {
2865
- return n ? on(r).indexOf(on(i)) : r.toLowerCase().indexOf(i.toLowerCase());
2866
- }, Ci = function() {
2863
+ }, nn = function(r) {
2864
+ return _i(r).toLowerCase();
2865
+ }, Ln = function(r, i, n) {
2866
+ return n ? nn(r).indexOf(nn(i)) : r.toLowerCase().indexOf(i.toLowerCase());
2867
+ }, Ai = function() {
2867
2868
  return !!document.documentMode;
2868
- }, vt = function(r) {
2869
+ }, gt = function(r) {
2869
2870
  return typeof r == "number";
2870
- }, Si = function(r) {
2871
+ }, Ti = function(r) {
2871
2872
  return r === Object(r) ? Object.keys(r) : [];
2872
- }, _i = function(r) {
2873
+ }, Ii = function(r) {
2873
2874
  for (var i, n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
2874
2875
  t[o - 1] = arguments[o];
2875
2876
  var s = (i = []).concat.apply(i, t);
2876
2877
  return Object.keys(r).reduce(function(u, l) {
2877
2878
  return r.hasOwnProperty(l) && !s.includes(l) && r[l] !== void 0 && (u[l] = r[l]), u;
2878
2879
  }, {});
2879
- }, Ai = ["style", "className", "classNames"];
2880
- function sn(e, r) {
2880
+ }, xi = ["style", "className", "classNames"];
2881
+ function rn(e, r) {
2881
2882
  var i = Object.keys(e);
2882
2883
  if (Object.getOwnPropertySymbols) {
2883
2884
  var n = Object.getOwnPropertySymbols(e);
@@ -2887,21 +2888,21 @@ function sn(e, r) {
2887
2888
  }
2888
2889
  return i;
2889
2890
  }
2890
- function an(e) {
2891
+ function on(e) {
2891
2892
  for (var r = 1; r < arguments.length; r++) {
2892
2893
  var i = arguments[r] != null ? arguments[r] : {};
2893
- r % 2 ? sn(Object(i), !0).forEach(function(n) {
2894
+ r % 2 ? rn(Object(i), !0).forEach(function(n) {
2894
2895
  H(e, n, i[n]);
2895
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : sn(Object(i)).forEach(function(n) {
2896
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : rn(Object(i)).forEach(function(n) {
2896
2897
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
2897
2898
  });
2898
2899
  }
2899
2900
  return e;
2900
2901
  }
2901
- function nt(e, r) {
2902
+ function et(e, r) {
2902
2903
  var i = function(t) {
2903
2904
  var o = function(l) {
2904
- var d = l.style, a = l.className, c = l.classNames, f = $o(l, Ai), g = r ? r(f) : void 0, p = wt(e, {
2905
+ var d = l.style, a = l.className, c = l.classNames, f = Uo(l, xi), g = r ? r(f) : void 0, p = Dt(e, {
2905
2906
  style: d,
2906
2907
  className: a,
2907
2908
  classNames: c
@@ -2911,23 +2912,23 @@ function nt(e, r) {
2911
2912
  }));
2912
2913
  }, s = t.displayName || t.name || "Component";
2913
2914
  return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */ Z.forwardRef(function(u, l) {
2914
- return o(an(an({}, u), {}, {
2915
+ return o(on(on({}, u), {}, {
2915
2916
  ref: l
2916
2917
  }));
2917
2918
  });
2918
2919
  };
2919
2920
  return i;
2920
2921
  }
2921
- var Ti = function(r, i) {
2922
+ var Oi = function(r, i) {
2922
2923
  return r.hasOwnProperty(i) ? r[i]++ : r[i] = 0, i + "_" + r[i];
2923
2924
  };
2924
- function Mn(e) {
2925
+ function Bn(e) {
2925
2926
  var r = e.selectionStart, i = e.selectionEnd, n = e.value, t = n === void 0 ? "" : n, o = e.onCaretPositionChange, s = e.containerRef, u = e.children;
2926
2927
  e.singleLine;
2927
2928
  var l = e.style, d = re({
2928
2929
  left: void 0,
2929
2930
  top: void 0
2930
- }), a = Qe(d, 2), c = a[0], f = a[1], g = re(), p = Qe(g, 2), m = p[0], h = p[1];
2931
+ }), a = Ze(d, 2), c = a[0], f = a[1], g = re(), p = Ze(g, 2), m = p[0], h = p[1];
2931
2932
  le(function() {
2932
2933
  E();
2933
2934
  });
@@ -2945,14 +2946,14 @@ function Mn(e) {
2945
2946
  }, C = Ee(u), S;
2946
2947
  i === r && (S = oe(t, C, r, "START"));
2947
2948
  var I = [], y = {}, A = I, D = 0, b = function(F, V, N) {
2948
- if (vt(S) && S >= V && S <= V + F.length) {
2949
+ if (gt(S) && S >= V && S <= V + F.length) {
2949
2950
  var j = S - V;
2950
2951
  A.push(T(F.substring(0, j), D)), A = [T(F.substring(j), D)];
2951
2952
  } else
2952
2953
  A.push(T(F, D));
2953
2954
  D++;
2954
2955
  }, w = function(F, V, N, j, $, G, _) {
2955
- var x = Ti(y, j);
2956
+ var x = Oi(y, j);
2956
2957
  A.push(P(j, $, G, x));
2957
2958
  }, T = function(F, V) {
2958
2959
  return /* @__PURE__ */ Z.createElement("span", ue({}, l("substring"), {
@@ -2971,11 +2972,11 @@ function Mn(e) {
2971
2972
  key: "caret"
2972
2973
  }), F);
2973
2974
  };
2974
- return He(t, C, w, b), A.push(" "), A !== I && I.push(q(A)), /* @__PURE__ */ Z.createElement("div", ue({}, l, {
2975
+ return $e(t, C, w, b), A.push(" "), A !== I && I.push(q(A)), /* @__PURE__ */ Z.createElement("div", ue({}, l, {
2975
2976
  ref: s
2976
2977
  }), I);
2977
2978
  }
2978
- Mn.propTypes = {
2979
+ Bn.propTypes = {
2979
2980
  selectionStart: O.number,
2980
2981
  selectionEnd: O.number,
2981
2982
  value: O.string.isRequired,
@@ -2985,7 +2986,7 @@ Mn.propTypes = {
2985
2986
  })]),
2986
2987
  children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
2987
2988
  };
2988
- var Ii = nt({
2989
+ var Di = et({
2989
2990
  position: "relative",
2990
2991
  boxSizing: "border-box",
2991
2992
  width: "100%",
@@ -3006,8 +3007,8 @@ var Ii = nt({
3006
3007
  return {
3007
3008
  "&singleLine": e.singleLine
3008
3009
  };
3009
- }), xi = Ii(Mn);
3010
- function Ln(e) {
3010
+ }), Ri = Di(Bn);
3011
+ function $n(e) {
3011
3012
  var r = e.id, i = e.focused, n = e.ignoreAccents, t = e.index, o = e.onClick, s = e.onMouseEnter, u = e.query, l = e.renderSuggestion, d = e.suggestion, a = e.style;
3012
3013
  e.className, e.classNames;
3013
3014
  var c = {
@@ -3022,7 +3023,7 @@ function Ln(e) {
3022
3023
  var h = d.id, E = d.display;
3023
3024
  return h === void 0 || !E ? h : E;
3024
3025
  }, p = function(h) {
3025
- var E = Fn(h, u, n);
3026
+ var E = Ln(h, u, n);
3026
3027
  return E === -1 ? /* @__PURE__ */ Z.createElement("span", a("display"), h) : /* @__PURE__ */ Z.createElement("span", a("display"), h.substring(0, E), /* @__PURE__ */ Z.createElement("b", a("highlight"), h.substring(E, E + u.length)), h.substring(E + u.length));
3027
3028
  };
3028
3029
  return /* @__PURE__ */ Z.createElement("li", ue({
@@ -3031,7 +3032,7 @@ function Ln(e) {
3031
3032
  "aria-selected": i
3032
3033
  }, c, a), f());
3033
3034
  }
3034
- Ln.propTypes = {
3035
+ $n.propTypes = {
3035
3036
  id: O.string.isRequired,
3036
3037
  query: O.string.isRequired,
3037
3038
  index: O.number.isRequired,
@@ -3043,26 +3044,26 @@ Ln.propTypes = {
3043
3044
  renderSuggestion: O.func,
3044
3045
  focused: O.bool
3045
3046
  };
3046
- var Oi = nt({
3047
+ var wi = et({
3047
3048
  cursor: "pointer"
3048
3049
  }, function(e) {
3049
3050
  return {
3050
3051
  "&focused": e.focused
3051
3052
  };
3052
- }), Di = Oi(Ln);
3053
- function Ri(e) {
3054
- var r = e.style, i = e.className, n = e.classNames, t = wt(wi, {
3053
+ }), Ni = wi($n);
3054
+ function ji(e) {
3055
+ var r = e.style, i = e.className, n = e.classNames, t = Dt(Pi, {
3055
3056
  style: r,
3056
3057
  className: i,
3057
3058
  classNames: n
3058
3059
  }), o = t("spinner");
3059
3060
  return /* @__PURE__ */ Z.createElement("div", t, /* @__PURE__ */ Z.createElement("div", o, /* @__PURE__ */ Z.createElement("div", o(["element", "element1"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element2"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element3"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element4"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element5"]))));
3060
3061
  }
3061
- var wi = {};
3062
- function Bn(e) {
3062
+ var Pi = {};
3063
+ function Hn(e) {
3063
3064
  var r = e.id, i = e.suggestions, n = i === void 0 ? {} : i, t = e.a11ySuggestionsListLabel, o = e.focusIndex, s = e.position, u = e.left, l = e.right, d = e.top, a = e.scrollFocusedIntoView, c = e.isLoading, f = e.isOpened, g = e.onSelect, p = g === void 0 ? function() {
3064
3065
  return null;
3065
- } : g, m = e.ignoreAccents, h = e.containerRef, E = e.children, C = e.style, S = e.customSuggestionsContainer, I = e.onMouseDown, y = e.onMouseEnter, A = re(void 0), D = Qe(A, 2), b = D[0], w = D[1];
3066
+ } : g, m = e.ignoreAccents, h = e.containerRef, E = e.children, C = e.style, S = e.customSuggestionsContainer, I = e.onMouseDown, y = e.onMouseEnter, A = re(void 0), D = Ze(A, 2), b = D[0], w = D[1];
3066
3067
  le(function() {
3067
3068
  if (!(!b || b.offsetHeight >= b.scrollHeight || !a)) {
3068
3069
  var N = b.scrollTop, j = b.children[o].getBoundingClientRect(), $ = j.top, G = j.bottom, _ = b.getBoundingClientRect(), x = _.top;
@@ -3077,17 +3078,17 @@ function Bn(e) {
3077
3078
  "aria-label": t
3078
3079
  }, C("list")), Object.values(n).reduce(function($, G) {
3079
3080
  var _ = G.results, x = G.queryInfo;
3080
- return [].concat(Ge($), Ge(_.map(function(L, B) {
3081
+ return [].concat(Xe($), Xe(_.map(function(L, B) {
3081
3082
  return P(L, x, $.length + B);
3082
3083
  })));
3083
3084
  }, []));
3084
3085
  return S ? S(j) : j;
3085
3086
  }, P = function(j, $, G) {
3086
3087
  var _ = G === o, x = $.childIndex, L = $.query, B = De.toArray(E)[x].props.renderSuggestion;
3087
- return /* @__PURE__ */ Z.createElement(Di, {
3088
+ return /* @__PURE__ */ Z.createElement(Ni, {
3088
3089
  style: C("item"),
3089
3090
  key: "".concat(x, "-").concat(V(j)),
3090
- id: Pn(r, G),
3091
+ id: Mn(r, G),
3091
3092
  query: L,
3092
3093
  index: G,
3093
3094
  ignoreAccents: m,
@@ -3103,7 +3104,7 @@ function Bn(e) {
3103
3104
  });
3104
3105
  }, q = function() {
3105
3106
  if (c)
3106
- return /* @__PURE__ */ Z.createElement(Ri, {
3107
+ return /* @__PURE__ */ Z.createElement(ji, {
3107
3108
  style: C("loadingIndicator")
3108
3109
  });
3109
3110
  }, Y = function(j, $) {
@@ -3113,7 +3114,7 @@ function Bn(e) {
3113
3114
  }, V = function(j) {
3114
3115
  return typeof j == "string" ? j : j.id;
3115
3116
  };
3116
- return f ? /* @__PURE__ */ Z.createElement("div", ue({}, ni({
3117
+ return f ? /* @__PURE__ */ Z.createElement("div", ue({}, ii({
3117
3118
  position: s || "absolute",
3118
3119
  left: u,
3119
3120
  right: l,
@@ -3123,7 +3124,7 @@ function Bn(e) {
3123
3124
  ref: h
3124
3125
  }), T(), q()) : null;
3125
3126
  }
3126
- Bn.propTypes = {
3127
+ Hn.propTypes = {
3127
3128
  id: O.string.isRequired,
3128
3129
  suggestions: O.object.isRequired,
3129
3130
  a11ySuggestionsListLabel: O.string,
@@ -3142,7 +3143,7 @@ Bn.propTypes = {
3142
3143
  current: typeof Element > "u" ? O.any : O.instanceOf(Element)
3143
3144
  })])
3144
3145
  };
3145
- var Ni = nt({
3146
+ var Fi = et({
3146
3147
  zIndex: 1,
3147
3148
  backgroundColor: "white",
3148
3149
  marginTop: 14,
@@ -3152,8 +3153,8 @@ var Ni = nt({
3152
3153
  padding: 0,
3153
3154
  listStyleType: "none"
3154
3155
  }
3155
- }), ji = Ni(Bn);
3156
- function un(e, r) {
3156
+ }), Mi = Fi(Hn);
3157
+ function sn(e, r) {
3157
3158
  var i = Object.keys(e);
3158
3159
  if (Object.getOwnPropertySymbols) {
3159
3160
  var n = Object.getOwnPropertySymbols(e);
@@ -3166,27 +3167,27 @@ function un(e, r) {
3166
3167
  function de(e) {
3167
3168
  for (var r = 1; r < arguments.length; r++) {
3168
3169
  var i = arguments[r] != null ? arguments[r] : {};
3169
- r % 2 ? un(Object(i), !0).forEach(function(n) {
3170
+ r % 2 ? sn(Object(i), !0).forEach(function(n) {
3170
3171
  H(e, n, i[n]);
3171
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : un(Object(i)).forEach(function(n) {
3172
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : sn(Object(i)).forEach(function(n) {
3172
3173
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
3173
3174
  });
3174
3175
  }
3175
3176
  return e;
3176
3177
  }
3177
- function Pi(e) {
3178
- var r = Fi();
3178
+ function Li(e) {
3179
+ var r = Bi();
3179
3180
  return function() {
3180
- var n = Ze(e), t;
3181
+ var n = Ge(e), t;
3181
3182
  if (r) {
3182
- var o = Ze(this).constructor;
3183
+ var o = Ge(this).constructor;
3183
3184
  t = Reflect.construct(n, arguments, o);
3184
3185
  } else
3185
3186
  t = n.apply(this, arguments);
3186
- return No(this, t);
3187
+ return Fo(this, t);
3187
3188
  };
3188
3189
  }
3189
- function Fi() {
3190
+ function Bi() {
3190
3191
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
3191
3192
  if (typeof Proxy == "function") return !0;
3192
3193
  try {
@@ -3196,17 +3197,17 @@ function Fi() {
3196
3197
  return !1;
3197
3198
  }
3198
3199
  }
3199
- var Mi = function(r) {
3200
+ var $i = function(r) {
3200
3201
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3201
3202
  if (r instanceof RegExp)
3202
3203
  return r;
3203
- var n = i.allowSpaceInQuery, t = Ke(r);
3204
+ var n = i.allowSpaceInQuery, t = We(r);
3204
3205
  return new RegExp("(?:^|\\s)(".concat(t, "([^").concat(n ? "" : "\\s").concat(t, "]*))$"));
3205
- }, Li = function(r, i) {
3206
+ }, Hi = function(r, i) {
3206
3207
  return r instanceof Array ? function(n, t) {
3207
3208
  for (var o = [], s = 0, u = r.length; s < u; ++s) {
3208
3209
  var l = r[s].display || r[s].id;
3209
- Fn(l, n, i) >= 0 && o.push(r[s]);
3210
+ Ln(l, n, i) >= 0 && o.push(r[s]);
3210
3211
  }
3211
3212
  return o;
3212
3213
  } : r;
@@ -3216,7 +3217,7 @@ var Mi = function(r) {
3216
3217
  ESC: 27,
3217
3218
  UP: 38,
3218
3219
  DOWN: 40
3219
- }, Ve = !1, $n = {
3220
+ }, ze = !1, kn = {
3220
3221
  /**
3221
3222
  * If set to `true` a regular text input element will be rendered
3222
3223
  * instead of a textarea
@@ -3238,19 +3239,19 @@ var Mi = function(r) {
3238
3239
  current: typeof Element > "u" ? O.any : O.instanceOf(Element)
3239
3240
  })]),
3240
3241
  children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
3241
- }, jt = /* @__PURE__ */ function(e) {
3242
- wo(i, e);
3243
- var r = Pi(i);
3242
+ }, wt = /* @__PURE__ */ function(e) {
3243
+ Po(i, e);
3244
+ var r = Li(i);
3244
3245
  function i(n) {
3245
3246
  var t;
3246
- return Oo(this, i), t = r.call(this, n), H(k(t), "setContainerElement", function(o) {
3247
+ return wo(this, i), t = r.call(this, n), H(k(t), "setContainerElement", function(o) {
3247
3248
  t.containerElement = o;
3248
3249
  }), H(k(t), "getInputProps", function() {
3249
- var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d = _i(
3250
+ var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d = Ii(
3250
3251
  t.props,
3251
3252
  ["style", "classNames", "className"],
3252
3253
  // substyle props
3253
- Si($n)
3254
+ Ti(kn)
3254
3255
  );
3255
3256
  return de(de(de(de({}, d), l("input")), {}, {
3256
3257
  value: t.getPlainText(),
@@ -3268,7 +3269,7 @@ var Mi = function(r) {
3268
3269
  "aria-expanded": !0,
3269
3270
  "aria-autocomplete": "list",
3270
3271
  "aria-haspopup": "listbox",
3271
- "aria-activedescendant": Pn(t.uuidSuggestionsOverlay, t.state.focusIndex)
3272
+ "aria-activedescendant": Mn(t.uuidSuggestionsOverlay, t.state.focusIndex)
3272
3273
  });
3273
3274
  }), H(k(t), "renderControl", function() {
3274
3275
  var o = t.props, s = o.singleLine, u = o.style, l = t.getInputProps();
@@ -3289,9 +3290,9 @@ var Mi = function(r) {
3289
3290
  }), H(k(t), "setSuggestionsElement", function(o) {
3290
3291
  t.suggestionsElement = o;
3291
3292
  }), H(k(t), "renderSuggestionsOverlay", function() {
3292
- if (!vt(t.state.selectionStart))
3293
+ if (!gt(t.state.selectionStart))
3293
3294
  return null;
3294
- var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ Z.createElement(ji, {
3295
+ var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ Z.createElement(Mi, {
3295
3296
  id: t.uuidSuggestionsOverlay,
3296
3297
  style: t.props.style("suggestions"),
3297
3298
  position: s,
@@ -3311,10 +3312,10 @@ var Mi = function(r) {
3311
3312
  ignoreAccents: t.props.ignoreAccents,
3312
3313
  a11ySuggestionsListLabel: t.props.a11ySuggestionsListLabel
3313
3314
  }, t.props.children);
3314
- return t.props.suggestionsPortalHost ? /* @__PURE__ */ _r.createPortal(a, t.props.suggestionsPortalHost) : a;
3315
+ return t.props.suggestionsPortalHost ? /* @__PURE__ */ Tr.createPortal(a, t.props.suggestionsPortalHost) : a;
3315
3316
  }), H(k(t), "renderHighlighter", function() {
3316
3317
  var o = t.state, s = o.selectionStart, u = o.selectionEnd, l = t.props, d = l.singleLine, a = l.children, c = l.value, f = l.style;
3317
- return /* @__PURE__ */ Z.createElement(xi, {
3318
+ return /* @__PURE__ */ Z.createElement(Ri, {
3318
3319
  containerRef: t.setHighlighterElement,
3319
3320
  style: f("highlighter"),
3320
3321
  value: c,
@@ -3330,7 +3331,7 @@ var Mi = function(r) {
3330
3331
  caretPosition: o
3331
3332
  });
3332
3333
  }), H(k(t), "getPlainText", function() {
3333
- return be(t.props.value || "", Ee(t.props.children));
3334
+ return Ce(t.props.value || "", Ee(t.props.children));
3334
3335
  }), H(k(t), "executeOnChange", function(o) {
3335
3336
  for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), l = 1; l < s; l++)
3336
3337
  u[l - 1] = arguments[l];
@@ -3343,7 +3344,7 @@ var Mi = function(r) {
3343
3344
  return (a = t.props.valueLink).requestChange.apply(a, [o.target.value].concat(u));
3344
3345
  }
3345
3346
  }), H(k(t), "handleChange", function(o) {
3346
- if (Ve = !1, Ci()) {
3347
+ if (ze = !1, Ai()) {
3347
3348
  var s = document.activeElement && document.activeElement.contentDocument || document;
3348
3349
  if (s.activeElement !== o.target)
3349
3350
  return;
@@ -3352,13 +3353,13 @@ var Mi = function(r) {
3352
3353
  a == null && (a = o.target.selectionStart);
3353
3354
  var c = t.state.selectionEnd;
3354
3355
  c == null && (c = o.target.selectionEnd);
3355
- var f = gi(u, d, {
3356
+ var f = mi(u, d, {
3356
3357
  selectionStartBefore: a,
3357
3358
  selectionEndBefore: c,
3358
3359
  selectionEndAfter: o.target.selectionEnd
3359
3360
  }, l);
3360
- d = be(f, l);
3361
- var g = o.target.selectionStart, p = o.target.selectionEnd, m = !1, h = rn(u, l, g);
3361
+ d = Ce(f, l);
3362
+ var g = o.target.selectionStart, p = o.target.selectionEnd, m = !1, h = tn(u, l, g);
3362
3363
  h !== void 0 && t.state.selectionEnd > h && (g = h + (o.nativeEvent.data ? o.nativeEvent.data.length : 0), p = g, m = !0), t.setState({
3363
3364
  selectionStart: g,
3364
3365
  selectionEnd: p,
@@ -3376,12 +3377,12 @@ var Mi = function(r) {
3376
3377
  if (t.setState({
3377
3378
  selectionStart: o.target.selectionStart,
3378
3379
  selectionEnd: o.target.selectionEnd
3379
- }), !Ve) {
3380
+ }), !ze) {
3380
3381
  var s = t.inputElement;
3381
3382
  o.target.selectionStart === o.target.selectionEnd ? t.updateMentionsQueries(s.value, o.target.selectionStart) : t.clearSuggestions(), t.updateHighlighterScroll(), t.props.onSelect(o);
3382
3383
  }
3383
3384
  }), H(k(t), "handleKeyDown", function(o) {
3384
- var s = ze(t.state.suggestions);
3385
+ var s = qe(t.state.suggestions);
3385
3386
  if (s === 0 || !t.suggestionsElement) {
3386
3387
  t.props.onKeyDown(o);
3387
3388
  return;
@@ -3411,7 +3412,7 @@ var Mi = function(r) {
3411
3412
  return;
3412
3413
  }
3413
3414
  }), H(k(t), "shiftFocus", function(o) {
3414
- var s = ze(t.state.suggestions);
3415
+ var s = qe(t.state.suggestions);
3415
3416
  t.setState({
3416
3417
  focusIndex: (s + t.state.focusIndex + o) % s,
3417
3418
  scrollFocusedIntoView: !0
@@ -3419,7 +3420,7 @@ var Mi = function(r) {
3419
3420
  }), H(k(t), "selectFocused", function() {
3420
3421
  var o = t.state, s = o.suggestions, u = o.focusIndex, l = Object.values(s).reduce(function(c, f) {
3421
3422
  var g = f.results, p = f.queryInfo;
3422
- return [].concat(Ge(c), Ge(g.map(function(m) {
3423
+ return [].concat(Xe(c), Xe(g.map(function(m) {
3423
3424
  return {
3424
3425
  result: m,
3425
3426
  queryInfo: p
@@ -3447,7 +3448,7 @@ var Mi = function(r) {
3447
3448
  }), H(k(t), "updateSuggestionsPosition", function() {
3448
3449
  var o = t.state.caretPosition, s = t.props, u = s.suggestionsPortalHost, l = s.allowSuggestionsAboveCursor, d = s.forceSuggestionsAboveCursor;
3449
3450
  if (!(!o || !t.suggestionsElement)) {
3450
- var a = t.suggestionsElement, c = t.highlighterElement, f = c.getBoundingClientRect(), g = ct(c, "font-size"), p = {
3451
+ var a = t.suggestionsElement, c = t.highlighterElement, f = c.getBoundingClientRect(), g = ut(c, "font-size"), p = {
3451
3452
  left: f.left + o.left,
3452
3453
  top: f.top + o.top + g
3453
3454
  }, m = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
@@ -3456,7 +3457,7 @@ var Mi = function(r) {
3456
3457
  if (u) {
3457
3458
  h.position = "fixed";
3458
3459
  var E = p.left, C = p.top;
3459
- E -= ct(a, "margin-left"), C -= ct(a, "margin-top"), E -= c.scrollLeft, C -= c.scrollTop;
3460
+ E -= ut(a, "margin-left"), C -= ut(a, "margin-top"), E -= c.scrollLeft, C -= c.scrollTop;
3460
3461
  var S = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
3461
3462
  E + a.offsetWidth > S ? h.left = Math.max(0, S - a.offsetWidth) : h.left = E, l && C + a.offsetHeight > m && a.offsetHeight < C - g || d ? h.top = Math.max(0, C - a.offsetHeight - g) : h.top = C;
3462
3463
  } else {
@@ -3472,9 +3473,9 @@ var Mi = function(r) {
3472
3473
  var o = t.inputElement, s = t.highlighterElement;
3473
3474
  !o || !s || (s.scrollLeft = o.scrollLeft, s.scrollTop = o.scrollTop, s.height = o.height);
3474
3475
  }), H(k(t), "handleCompositionStart", function() {
3475
- Ve = !0;
3476
+ ze = !0;
3476
3477
  }), H(k(t), "handleCompositionEnd", function() {
3477
- Ve = !1;
3478
+ ze = !1;
3478
3479
  }), H(k(t), "setSelection", function(o, s) {
3479
3480
  if (!(o === null || s === null)) {
3480
3481
  var u = t.inputElement;
@@ -3491,10 +3492,10 @@ var Mi = function(r) {
3491
3492
  });
3492
3493
  var u = t.props.value || "", l = t.props.children, d = Ee(l), a = oe(u, d, s, "NULL");
3493
3494
  if (a !== null) {
3494
- var c = hi(u.substring(0, a), d), f = o.substring(c, s);
3495
+ var c = Ei(u.substring(0, a), d), f = o.substring(c, s);
3495
3496
  Z.Children.forEach(l, function(g, p) {
3496
3497
  if (g) {
3497
- var m = Mi(g.props.trigger, t.props), h = f.match(m);
3498
+ var m = $i(g.props.trigger, t.props), h = f.match(m);
3498
3499
  if (h) {
3499
3500
  var E = c + f.indexOf(h[1], h.index);
3500
3501
  t.queryData(h[2], p, E, E + h[1].length, o);
@@ -3508,7 +3509,7 @@ var Mi = function(r) {
3508
3509
  focusIndex: 0
3509
3510
  });
3510
3511
  }), H(k(t), "queryData", function(o, s, u, l, d) {
3511
- var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p = Li(g.props.data, f), m = p(o, t.updateSuggestions.bind(null, t._queryId, s, o, u, l, d));
3512
+ var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p = Hi(g.props.data, f), m = p(o, t.updateSuggestions.bind(null, t._queryId, s, o, u, l, d));
3512
3513
  m instanceof Array && t.updateSuggestions(t._queryId, s, o, u, l, d, m);
3513
3514
  }), H(k(t), "updateSuggestions", function(o, s, u, l, d, a, c) {
3514
3515
  if (o === t._queryId) {
@@ -3522,14 +3523,14 @@ var Mi = function(r) {
3522
3523
  },
3523
3524
  results: c
3524
3525
  }));
3525
- var f = t.state.focusIndex, g = ze(t.suggestions);
3526
+ var f = t.state.focusIndex, g = qe(t.suggestions);
3526
3527
  t.setState({
3527
3528
  suggestions: t.suggestions,
3528
3529
  focusIndex: f >= g ? Math.max(g - 1, 0) : f
3529
3530
  });
3530
3531
  }
3531
3532
  }), H(k(t), "addMention", function(o, s) {
3532
- var u = o.id, l = o.display, d = s.childIndex, a = s.querySequenceStart, c = s.querySequenceEnd, f = s.plainTextValue, g = t.props.value || "", p = Ee(t.props.children), m = De.toArray(t.props.children)[d], h = m.props, E = h.markup, C = h.displayTransform, S = h.appendSpaceOnAdd, I = h.onAdd, y = oe(g, p, a, "START"), A = y + c - a, D = Ei(E, u, l);
3533
+ var u = o.id, l = o.display, d = s.childIndex, a = s.querySequenceStart, c = s.querySequenceEnd, f = s.plainTextValue, g = t.props.value || "", p = Ee(t.props.children), m = De.toArray(t.props.children)[d], h = m.props, E = h.markup, C = h.displayTransform, S = h.appendSpaceOnAdd, I = h.onAdd, y = oe(g, p, a, "START"), A = y + c - a, D = Ci(E, u, l);
3533
3534
  S && (D += " ");
3534
3535
  var b = Fe(g, y, A, D);
3535
3536
  t.inputElement.focus();
@@ -3553,7 +3554,7 @@ var Mi = function(r) {
3553
3554
  o = o || s && s.props.isLoading;
3554
3555
  }), o;
3555
3556
  }), H(k(t), "isOpened", function() {
3556
- return vt(t.state.selectionStart) && (ze(t.state.suggestions) !== 0 || t.isLoading());
3557
+ return gt(t.state.selectionStart) && (qe(t.state.suggestions) !== 0 || t.isLoading());
3557
3558
  }), H(k(t), "_queryId", 0), t.suggestions = {}, t.uuidSuggestionsOverlay = Math.random().toString(16).substring(2), t.handleCopy = t.handleCopy.bind(k(t)), t.handleCut = t.handleCut.bind(k(t)), t.handlePaste = t.handlePaste.bind(k(t)), t.state = {
3558
3559
  focusIndex: 0,
3559
3560
  selectionStart: null,
@@ -3564,7 +3565,7 @@ var Mi = function(r) {
3564
3565
  setSelectionAfterHandlePaste: !1
3565
3566
  }, t;
3566
3567
  }
3567
- return Ro(i, [{
3568
+ return jo(i, [{
3568
3569
  key: "componentDidMount",
3569
3570
  value: function() {
3570
3571
  document.addEventListener("copy", this.handleCopy), document.addEventListener("cut", this.handleCut), document.addEventListener("paste", this.handlePaste), this.updateSuggestionsPosition();
@@ -3595,13 +3596,13 @@ var Mi = function(r) {
3595
3596
  value: function(t) {
3596
3597
  if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
3597
3598
  t.preventDefault();
3598
- var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.value, a = l.children, c = Ee(a), f = oe(d, c, s, "START"), g = oe(d, c, u, "END"), p = t.clipboardData.getData("text/react-mentions"), m = t.clipboardData.getData("text/plain"), h = Fe(d, f, g, p || m).replace(/\r/g, ""), E = be(h, c), C = {
3599
+ var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.value, a = l.children, c = Ee(a), f = oe(d, c, s, "START"), g = oe(d, c, u, "END"), p = t.clipboardData.getData("text/react-mentions"), m = t.clipboardData.getData("text/plain"), h = Fe(d, f, g, p || m).replace(/\r/g, ""), E = Ce(h, c), C = {
3599
3600
  target: de(de({}, t.target), {}, {
3600
3601
  value: h
3601
3602
  })
3602
3603
  };
3603
3604
  this.executeOnChange(C, h, E, Pe(h, c));
3604
- var S = rn(d, c, s), I = (S || s) + be(p || m, c).length;
3605
+ var S = tn(d, c, s), I = (S || s) + Ce(p || m, c).length;
3605
3606
  this.setState({
3606
3607
  selectionStart: I,
3607
3608
  selectionEnd: I,
@@ -3630,7 +3631,7 @@ var Mi = function(r) {
3630
3631
  value: function(t) {
3631
3632
  if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
3632
3633
  t.preventDefault(), this.saveSelectionToClipboard(t);
3633
- var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.children, a = l.value, c = Ee(d), f = oe(a, c, s, "START"), g = oe(a, c, u, "END"), p = [a.slice(0, f), a.slice(g)].join(""), m = be(p, c), h = {
3634
+ var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.children, a = l.value, c = Ee(d), f = oe(a, c, s, "START"), g = oe(a, c, u, "END"), p = [a.slice(0, f), a.slice(g)].join(""), m = Ce(p, c), h = {
3634
3635
  target: de(de({}, t.target), {}, {
3635
3636
  value: m
3636
3637
  })
@@ -3641,8 +3642,8 @@ var Mi = function(r) {
3641
3642
  // Handle input element's change event
3642
3643
  }]), i;
3643
3644
  }(Z.Component);
3644
- H(jt, "propTypes", $n);
3645
- H(jt, "defaultProps", {
3645
+ H(wt, "propTypes", kn);
3646
+ H(wt, "defaultProps", {
3646
3647
  ignoreAccents: !1,
3647
3648
  singleLine: !1,
3648
3649
  allowSuggestionsAboveCursor: !1,
@@ -3656,10 +3657,10 @@ H(jt, "defaultProps", {
3656
3657
  return null;
3657
3658
  }
3658
3659
  });
3659
- var ct = function(r, i) {
3660
+ var ut = function(r, i) {
3660
3661
  var n = parseFloat(window.getComputedStyle(r, null).getPropertyValue(i));
3661
3662
  return isFinite(n) ? n : 0;
3662
- }, Bi = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent), $i = nt({
3663
+ }, ki = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent), Ui = et({
3663
3664
  position: "relative",
3664
3665
  overflowY: "visible",
3665
3666
  input: {
@@ -3681,7 +3682,7 @@ var ct = function(r, i) {
3681
3682
  bottom: 0,
3682
3683
  overflow: "hidden",
3683
3684
  resize: "none"
3684
- }, Bi ? {
3685
+ }, ki ? {
3685
3686
  marginTop: 1,
3686
3687
  marginLeft: -3
3687
3688
  } : null)
@@ -3692,17 +3693,17 @@ var ct = function(r, i) {
3692
3693
  "&singleLine": r,
3693
3694
  "&multiLine": !r
3694
3695
  };
3695
- }), Hi = $i(jt), ki = {
3696
+ }), qi = Ui(wt), zi = {
3696
3697
  fontWeight: "inherit"
3697
- }, Pt = function(r) {
3698
- var i = r.display, n = r.style, t = r.className, o = r.classNames, s = wt(ki, {
3698
+ }, Nt = function(r) {
3699
+ var i = r.display, n = r.style, t = r.className, o = r.classNames, s = Dt(zi, {
3699
3700
  style: n,
3700
3701
  className: t,
3701
3702
  classNames: o
3702
3703
  });
3703
3704
  return /* @__PURE__ */ Z.createElement("strong", s, i);
3704
3705
  };
3705
- Pt.propTypes = {
3706
+ Nt.propTypes = {
3706
3707
  /**
3707
3708
  * Called when a new mention is added in the input
3708
3709
  *
@@ -3726,7 +3727,7 @@ Pt.propTypes = {
3726
3727
  allowSpaceInQuery: O.bool,
3727
3728
  isLoading: O.bool
3728
3729
  };
3729
- Pt.defaultProps = {
3730
+ Nt.defaultProps = {
3730
3731
  trigger: "@",
3731
3732
  markup: "@[__display__](__id__)",
3732
3733
  displayTransform: function(r, i) {
@@ -3742,7 +3743,7 @@ Pt.defaultProps = {
3742
3743
  isLoading: !1,
3743
3744
  appendSpaceOnAdd: !1
3744
3745
  };
3745
- const Ui = {
3746
+ const Vi = {
3746
3747
  "&multiLine": {
3747
3748
  minHeight: "40px"
3748
3749
  },
@@ -3772,7 +3773,7 @@ const Ui = {
3772
3773
  }
3773
3774
  }
3774
3775
  }
3775
- }, qi = ({
3776
+ }, Yi = ({
3776
3777
  value: e,
3777
3778
  setValue: r,
3778
3779
  users: i,
@@ -3790,13 +3791,13 @@ const Ui = {
3790
3791
  r(d.target.value);
3791
3792
  };
3792
3793
  return /* @__PURE__ */ v.jsx(
3793
- Hi,
3794
+ qi,
3794
3795
  {
3795
3796
  autoFocus: !0,
3796
3797
  value: e,
3797
3798
  onChange: l,
3798
3799
  style: {
3799
- ...Ui,
3800
+ ...Vi,
3800
3801
  minHeight: "40px",
3801
3802
  marginBottom: "10px"
3802
3803
  },
@@ -3804,7 +3805,7 @@ const Ui = {
3804
3805
  className: "mentions-input",
3805
3806
  onKeyDown: s,
3806
3807
  children: /* @__PURE__ */ v.jsx(
3807
- Pt,
3808
+ Nt,
3808
3809
  {
3809
3810
  displayTransform: (d, a) => `@${a}`,
3810
3811
  trigger: "@",
@@ -3817,7 +3818,7 @@ const Ui = {
3817
3818
  )
3818
3819
  }
3819
3820
  );
3820
- }, Hn = ({
3821
+ }, Un = ({
3821
3822
  comment: e,
3822
3823
  setComment: r,
3823
3824
  loading: i,
@@ -3826,9 +3827,9 @@ const Ui = {
3826
3827
  placeholder: o,
3827
3828
  onEnterKeypress: s
3828
3829
  }) => /* @__PURE__ */ v.jsxs("div", { className: me.conversationInputForm, children: [
3829
- t ? /* @__PURE__ */ v.jsx(_n, { user: t }) : null,
3830
+ t ? /* @__PURE__ */ v.jsx(Tn, { user: t }) : null,
3830
3831
  /* @__PURE__ */ v.jsx(
3831
- qi,
3832
+ Yi,
3832
3833
  {
3833
3834
  value: e,
3834
3835
  setValue: r,
@@ -3837,15 +3838,15 @@ const Ui = {
3837
3838
  onEnterKeypress: s
3838
3839
  }
3839
3840
  ),
3840
- /* @__PURE__ */ v.jsx(dn, { loading: i, color: "primary", children: /* @__PURE__ */ v.jsx(pr, {}) })
3841
- ] }), kn = ({
3841
+ /* @__PURE__ */ v.jsx(dn, { loading: i, color: "primary", children: /* @__PURE__ */ v.jsx(gr, {}) })
3842
+ ] }), qn = ({
3842
3843
  meta: { highlight: e, filePath: r, field: i, column: n }
3843
3844
  }) => {
3844
3845
  if (!e)
3845
3846
  return null;
3846
3847
  const t = n ? `${r} (${n})` : r;
3847
3848
  return /* @__PURE__ */ v.jsx("div", { className: me.highlightText, children: /* @__PURE__ */ v.jsx(
3848
- tr,
3849
+ nr,
3849
3850
  {
3850
3851
  code: e,
3851
3852
  language: i ? "markdown" : "sql",
@@ -3854,7 +3855,7 @@ const Ui = {
3854
3855
  theme: "light"
3855
3856
  }
3856
3857
  ) });
3857
- }, zi = () => {
3858
+ }, Wi = () => {
3858
3859
  const e = ne((a) => a.users), r = ne(
3859
3860
  (a) => a.newConversation
3860
3861
  ), i = ne(
@@ -3866,7 +3867,7 @@ const Ui = {
3866
3867
  s(!0);
3867
3868
  try {
3868
3869
  console.log("saving conversation", r, u);
3869
- const c = await no(
3870
+ const c = await io(
3870
3871
  n,
3871
3872
  {
3872
3873
  ...r,
@@ -3883,19 +3884,19 @@ const Ui = {
3883
3884
  } catch (c) {
3884
3885
  console.error("error while saving conversation", r, c);
3885
3886
  }
3886
- t(bn()), s(!1), t(xt(!0)), t(Ot()), l("");
3887
+ t(Sn()), s(!1), t(Tt(!0)), t(It()), l("");
3887
3888
  }
3888
3889
  };
3889
- return /* @__PURE__ */ v.jsx($e, { className: me.newConversationForm, children: /* @__PURE__ */ v.jsx(Je, { children: /* @__PURE__ */ v.jsxs("form", { onSubmit: d, children: [
3890
+ return /* @__PURE__ */ v.jsx(vt, { className: me.newConversationForm, children: /* @__PURE__ */ v.jsx(an, { children: /* @__PURE__ */ v.jsxs("form", { onSubmit: d, children: [
3890
3891
  /* @__PURE__ */ v.jsx("h4", { children: "Add comment" }),
3891
3892
  /* @__PURE__ */ v.jsx(
3892
- kn,
3893
+ qn,
3893
3894
  {
3894
3895
  meta: (r == null ? void 0 : r.meta) || {}
3895
3896
  }
3896
3897
  ),
3897
3898
  /* @__PURE__ */ v.jsx(
3898
- Hn,
3899
+ Un,
3899
3900
  {
3900
3901
  comment: u,
3901
3902
  setComment: l,
@@ -3907,12 +3908,12 @@ const Ui = {
3907
3908
  }
3908
3909
  )
3909
3910
  ] }) }) });
3910
- }, Vi = ({
3911
+ }, Ki = ({
3911
3912
  conversationGroupId: e,
3912
3913
  shareId: r
3913
3914
  }) => {
3914
3915
  const { onResolve: i, source: n } = Be(), [t, o] = re(!1), s = async () => {
3915
- e && (o(!0), await so(r, e, n), i(), o(!1));
3916
+ e && (o(!0), await lo(r, e, n), i(), o(!1));
3916
3917
  };
3917
3918
  return e ? /* @__PURE__ */ v.jsx(
3918
3919
  Ie,
@@ -3921,43 +3922,43 @@ const Ui = {
3921
3922
  className: me.resolveButton,
3922
3923
  title: "Resolve conversation",
3923
3924
  onClick: s,
3924
- children: /* @__PURE__ */ v.jsx(gr, {})
3925
+ children: /* @__PURE__ */ v.jsx(hr, {})
3925
3926
  }
3926
3927
  ) : null;
3927
- }, Un = ({
3928
+ }, zn = ({
3928
3929
  user: e,
3929
3930
  timestamp: r,
3930
3931
  showResolveButton: i,
3931
3932
  conversationGroupId: n,
3932
3933
  shareId: t
3933
- }) => /* @__PURE__ */ v.jsxs(Et, { className: "d-flex align-items-center justify-content-between mb-0", children: [
3934
+ }) => /* @__PURE__ */ v.jsxs(Ir, { className: "d-flex align-items-center justify-content-between mb-0", children: [
3934
3935
  /* @__PURE__ */ v.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
3935
- /* @__PURE__ */ v.jsx(_n, { user: e }),
3936
+ /* @__PURE__ */ v.jsx(Tn, { user: e }),
3936
3937
  /* @__PURE__ */ v.jsxs("h4", { children: [
3937
3938
  e == null ? void 0 : e.first_name,
3938
3939
  " ",
3939
3940
  e == null ? void 0 : e.last_name
3940
3941
  ] }),
3941
- /* @__PURE__ */ v.jsx("span", { children: dt(r).format("HH:mm, DD MMM YY") })
3942
+ /* @__PURE__ */ v.jsx("span", { children: lt(r).format("HH:mm, DD MMM YY") })
3942
3943
  ] }),
3943
- i ? /* @__PURE__ */ v.jsx(Vi, { conversationGroupId: n, shareId: t }) : null
3944
- ] }), Yi = ({ conversation: e, shareId: r }) => {
3944
+ i ? /* @__PURE__ */ v.jsx(Ki, { conversationGroupId: n, shareId: t }) : null
3945
+ ] }), Xi = ({ conversation: e, shareId: r }) => {
3945
3946
  const { users: i } = Be(), n = fe(() => {
3946
3947
  if (e != null && e.user_id)
3947
3948
  return i[e.user_id];
3948
3949
  }, [e.user_id, i]);
3949
- return /* @__PURE__ */ v.jsxs($e, { children: [
3950
- /* @__PURE__ */ v.jsx(Un, { user: n, timestamp: e.timestamp, shareId: r }),
3951
- /* @__PURE__ */ v.jsx(Je, { children: /* @__PURE__ */ v.jsx("p", { children: e.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }) })
3950
+ return /* @__PURE__ */ v.jsxs(vn, { children: [
3951
+ /* @__PURE__ */ v.jsx(zn, { user: n, timestamp: e.timestamp, shareId: r }),
3952
+ /* @__PURE__ */ v.jsx(mn, { children: /* @__PURE__ */ v.jsx("p", { children: e.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }) })
3952
3953
  ] });
3953
- }, Wi = ({ conversationGroupId: e, shareId: r }) => {
3954
+ }, Gi = ({ conversationGroupId: e, shareId: r }) => {
3954
3955
  const { currentUser: i, users: n, onReplyAdd: t, source: o } = Be(), s = Object.values(n), [u, l] = re(""), [d, a] = re(!1), c = async (f) => {
3955
3956
  if (f == null || f.stopPropagation(), f == null || f.preventDefault(), !(!r || !e)) {
3956
3957
  a(!0), console.log("saving reply", r, e, {
3957
3958
  message: u
3958
3959
  });
3959
3960
  try {
3960
- await ro(
3961
+ await so(
3961
3962
  r,
3962
3963
  e,
3963
3964
  {
@@ -3972,7 +3973,7 @@ const Ui = {
3972
3973
  }
3973
3974
  };
3974
3975
  return /* @__PURE__ */ v.jsx("div", { className: me.replyForm, children: /* @__PURE__ */ v.jsx("form", { onSubmit: c, className: "", children: /* @__PURE__ */ v.jsx(
3975
- Hn,
3976
+ Un,
3976
3977
  {
3977
3978
  comment: u,
3978
3979
  setComment: l,
@@ -3982,7 +3983,7 @@ const Ui = {
3982
3983
  onEnterKeypress: c
3983
3984
  }
3984
3985
  ) }) });
3985
- }, Ki = ({ conversationGroup: e, shareId: r, onSelect: i }) => {
3986
+ }, Zi = ({ conversationGroup: e, shareId: r, onSelect: i }) => {
3986
3987
  var f;
3987
3988
  const { users: n } = Be(), t = fe(() => {
3988
3989
  if (e.owner)
@@ -4001,9 +4002,9 @@ const Ui = {
4001
4002
  if (!((f = e == null ? void 0 : e.conversations) != null && f.length) || (e == null ? void 0 : e.status) !== "Pending")
4002
4003
  return null;
4003
4004
  const [d, ...a] = e.conversations, c = a.length ? a.length > 1 ? `${a.length} replies` : `${a.length} reply` : "Reply";
4004
- return /* @__PURE__ */ v.jsx("div", { ref: l, className: me.conversationGroup, children: /* @__PURE__ */ v.jsxs($e, { className: `${o ? "active" : ""}`, onClick: i, children: [
4005
+ return /* @__PURE__ */ v.jsx("div", { ref: l, className: me.conversationGroup, children: /* @__PURE__ */ v.jsxs(vn, { className: `${o ? "active" : ""}`, onClick: i, children: [
4005
4006
  /* @__PURE__ */ v.jsx(
4006
- Un,
4007
+ zn,
4007
4008
  {
4008
4009
  user: t,
4009
4010
  timestamp: d.timestamp,
@@ -4012,13 +4013,13 @@ const Ui = {
4012
4013
  shareId: r
4013
4014
  }
4014
4015
  ),
4015
- /* @__PURE__ */ v.jsxs(Je, { children: [
4016
- /* @__PURE__ */ v.jsx(kn, { meta: e.meta }),
4016
+ /* @__PURE__ */ v.jsxs(mn, { children: [
4017
+ /* @__PURE__ */ v.jsx(qn, { meta: e.meta }),
4017
4018
  /* @__PURE__ */ v.jsx("p", { children: d.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }),
4018
- /* @__PURE__ */ v.jsx(Ce, { onClick: () => u((g) => !g), color: "link", children: c }),
4019
- a.length ? /* @__PURE__ */ v.jsx(v.Fragment, { children: s ? /* @__PURE__ */ v.jsx(v.Fragment, { children: a.map((g) => /* @__PURE__ */ v.jsx(Yi, { conversation: g, shareId: r }, g.conversation_id)) }) : null }) : null,
4019
+ /* @__PURE__ */ v.jsx(ye, { onClick: () => u((g) => !g), variant: "link", children: c }),
4020
+ a.length ? /* @__PURE__ */ v.jsx(v.Fragment, { children: s ? /* @__PURE__ */ v.jsx(v.Fragment, { children: a.map((g) => /* @__PURE__ */ v.jsx(Xi, { conversation: g, shareId: r }, g.conversation_id)) }) : null }) : null,
4020
4021
  s ? /* @__PURE__ */ v.jsx(
4021
- Wi,
4022
+ Gi,
4022
4023
  {
4023
4024
  conversationGroupId: e.conversation_group_id,
4024
4025
  shareId: r
@@ -4026,7 +4027,7 @@ const Ui = {
4026
4027
  ) : null
4027
4028
  ] })
4028
4029
  ] }) });
4029
- }, qn = _e({
4030
+ }, Vn = _e({
4030
4031
  users: {},
4031
4032
  conversationGroup: void 0,
4032
4033
  currentUser: void 0,
@@ -4035,8 +4036,8 @@ const Ui = {
4035
4036
  onSelect: () => null,
4036
4037
  onResolve: () => null,
4037
4038
  onReplyAdd: () => null,
4038
- source: Ct.DBT_DOCS
4039
- }), Xi = ({
4039
+ source: yt.DBT_DOCS
4040
+ }), Qi = ({
4040
4041
  currentUser: e,
4041
4042
  conversationGroup: r,
4042
4043
  shareId: i,
@@ -4071,15 +4072,15 @@ const Ui = {
4071
4072
  l
4072
4073
  ]
4073
4074
  );
4074
- return !r || !i ? null : /* @__PURE__ */ v.jsx(qn.Provider, { value: d, children: /* @__PURE__ */ v.jsx(
4075
- Ki,
4075
+ return !r || !i ? null : /* @__PURE__ */ v.jsx(Vn.Provider, { value: d, children: /* @__PURE__ */ v.jsx(
4076
+ Zi,
4076
4077
  {
4077
4078
  conversationGroup: r,
4078
4079
  shareId: i,
4079
4080
  onSelect: n
4080
4081
  }
4081
4082
  ) });
4082
- }, Be = () => ye(qn), Gi = () => {
4083
+ }, Be = () => be(Vn), Ji = () => {
4083
4084
  const e = ne((c) => c.source), r = ne(
4084
4085
  (c) => c.conversations
4085
4086
  ), i = ne(
@@ -4090,14 +4091,14 @@ const Ui = {
4090
4091
  if (!o || !n)
4091
4092
  return null;
4092
4093
  const u = t[o], l = (c) => {
4093
- s(Br({ shareId: n, conversationGroupId: c }));
4094
+ s(kr({ shareId: n, conversationGroupId: c }));
4094
4095
  }, d = (c) => {
4095
- s(It(c));
4096
+ s(At(c));
4096
4097
  }, a = (c) => {
4097
- console.log("onReplyAdd", c), s(bn());
4098
+ console.log("onReplyAdd", c), s(Sn());
4098
4099
  };
4099
4100
  return !r || !Object.keys(r).length ? /* @__PURE__ */ v.jsx("div", { children: "No conversations yet!" }) : /* @__PURE__ */ v.jsx("div", { children: Object.values(r).map((c) => /* @__PURE__ */ v.jsx(
4100
- Xi,
4101
+ Qi,
4101
4102
  {
4102
4103
  conversationGroup: c,
4103
4104
  shareId: n,
@@ -4111,20 +4112,28 @@ const Ui = {
4111
4112
  },
4112
4113
  c.conversation_group_id
4113
4114
  )) });
4114
- }, Zi = () => {
4115
+ }, es = () => {
4115
4116
  const e = ne((s) => s.isRightPanelOpen), r = ne(
4116
4117
  (s) => s.selectedConversationId
4117
4118
  ), i = ne((s) => s.newConversation), n = ce(), t = () => {
4118
- n(xt(!1)), n(It(void 0)), n(Ot());
4119
+ n(Tt(!1)), n(At(void 0)), n(It());
4119
4120
  };
4120
4121
  return !!i || e || r ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4121
- /* @__PURE__ */ v.jsx(Wn, { onClick: t, className: me.conversationRightPanelCloseButton }),
4122
+ /* @__PURE__ */ v.jsx(
4123
+ ye,
4124
+ {
4125
+ variant: "ghost",
4126
+ onClick: t,
4127
+ className: me.conversationRightPanelCloseButton,
4128
+ children: /* @__PURE__ */ v.jsx(vr, {})
4129
+ }
4130
+ ),
4122
4131
  /* @__PURE__ */ v.jsxs("div", { className: me.conversationRightPanel, children: [
4123
4132
  /* @__PURE__ */ v.jsx("h3", { children: "Comments" }),
4124
- i ? /* @__PURE__ */ v.jsx(zi, {}) : /* @__PURE__ */ v.jsx(Gi, {})
4133
+ i ? /* @__PURE__ */ v.jsx(Wi, {}) : /* @__PURE__ */ v.jsx(Ji, {})
4125
4134
  ] })
4126
4135
  ] }) : null;
4127
- }, Qi = 10, Ji = () => {
4136
+ }, ts = 10, ns = () => {
4128
4137
  const e = Se(), r = ne(
4129
4138
  (s) => s.shareId
4130
4139
  ), i = ne(
@@ -4133,45 +4142,45 @@ const Ui = {
4133
4142
  (s) => Object.keys(s.conversations || {})
4134
4143
  ), o = we(
4135
4144
  (s) => {
4136
- clearTimeout(e.current), oo(s).then((u) => {
4137
- console.log("useConversations", u), n(Lr(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
4145
+ clearTimeout(e.current), ao(s).then((u) => {
4146
+ console.log("useConversations", u), n(Hr(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
4138
4147
  o(s);
4139
- }, Qi * 1e3);
4148
+ }, ts * 1e3);
4140
4149
  }).catch((u) => console.error("error while fetching conversations list", u)).finally(() => {
4141
- n(Ht(ae.INITIALIZED));
4150
+ n(Bt(ae.INITIALIZED));
4142
4151
  });
4143
4152
  },
4144
4153
  [n]
4145
4154
  );
4146
4155
  return le(() => {
4147
- i !== ae.UNINITIALIZED || !r || (n(Ht(ae.LOADING)), o(r));
4156
+ i !== ae.UNINITIALIZED || !r || (n(Bt(ae.LOADING)), o(r));
4148
4157
  }, [n, i, t, r, o]), { isLoading: i === ae.LOADING };
4149
- }, es = () => {
4158
+ }, rs = () => {
4150
4159
  const e = ce(), r = ne(
4151
4160
  (t) => Object.keys(t.users || {})
4152
4161
  ), [i, n] = re(ae.UNINITIALIZED);
4153
4162
  return le(() => {
4154
- i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING), io().then((t) => {
4155
- console.log("useConversationUsers", t), e(Mr(t));
4163
+ i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING), uo().then((t) => {
4164
+ console.log("useConversationUsers", t), e($r(t));
4156
4165
  }).catch((t) => console.error("error while fetching users list", t)).finally(() => {
4157
4166
  n(ae.INITIALIZED);
4158
4167
  }));
4159
4168
  }, [e, i, r]), { isLoading: i === ae.LOADING };
4160
- }, ts = () => (es(), Ji(), /* @__PURE__ */ v.jsxs("div", { children: [
4161
- /* @__PURE__ */ v.jsx(Zi, {}),
4162
- /* @__PURE__ */ v.jsx(co, {})
4163
- ] })), zn = ({ target: e, ...r }) => bt(
4169
+ }, os = () => (rs(), ns(), /* @__PURE__ */ v.jsxs("div", { children: [
4170
+ /* @__PURE__ */ v.jsx(es, {}),
4171
+ /* @__PURE__ */ v.jsx(go, {})
4172
+ ] })), Yn = ({ target: e, ...r }) => Et(
4164
4173
  /* @__PURE__ */ v.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ v.jsx(pn, {}) }),
4165
4174
  e
4166
- ), ns = () => {
4175
+ ), is = () => {
4167
4176
  var l;
4168
4177
  const e = ce(), r = ne(
4169
4178
  (d) => d.codeblockLoaded
4170
- ), i = ne((d) => d.manifest), [n, t] = re(0), o = (l = _t()) == null ? void 0 : l.parentElement, s = () => {
4179
+ ), i = ne((d) => d.manifest), [n, t] = re(0), o = (l = Ct()) == null ? void 0 : l.parentElement, s = () => {
4171
4180
  var f;
4172
4181
  if (!o || !i.nodes)
4173
4182
  return;
4174
- const d = At();
4183
+ const d = St();
4175
4184
  if (!d || d.length < 3) {
4176
4185
  console.error("Unable to find model parts", d);
4177
4186
  return;
@@ -4184,7 +4193,7 @@ const Ui = {
4184
4193
  start: { line: n, character: 0 }
4185
4194
  }
4186
4195
  };
4187
- e(Dt({ meta: c }));
4196
+ e(xt({ meta: c }));
4188
4197
  }, u = we(
4189
4198
  (d) => {
4190
4199
  if (!o)
@@ -4202,83 +4211,83 @@ const Ui = {
4202
4211
  return o.addEventListener("mousemove", u), () => {
4203
4212
  o.removeEventListener("mousemove", u);
4204
4213
  };
4205
- }, [r, o, u]), !r || !o ? null : /* @__PURE__ */ v.jsx(zn, { target: o, onClick: s, style: { top: n * 21.2 } });
4206
- }, rs = () => {
4214
+ }, [r, o, u]), !r || !o ? null : /* @__PURE__ */ v.jsx(Yn, { target: o, onClick: s, style: { top: n * 21.2 } });
4215
+ }, ss = () => {
4207
4216
  const e = ce(), r = ne(
4208
4217
  (t) => t.codeblockLoaded
4209
- ), i = Tt(), n = () => {
4218
+ ), i = _t(), n = () => {
4210
4219
  const t = {
4211
4220
  field: "description",
4212
4221
  highlight: i == null ? void 0 : i.innerText
4213
4222
  };
4214
- e(Dt({ meta: t }));
4223
+ e(xt({ meta: t }));
4215
4224
  };
4216
- return !r || !i ? null : /* @__PURE__ */ v.jsx(zn, { target: i, onClick: n });
4217
- }, os = () => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4218
- /* @__PURE__ */ v.jsx(rs, {}),
4219
- /* @__PURE__ */ v.jsx(ns, {})
4220
- ] }), is = Sr(() => import("./DbtDocsRenderer.js")), ss = () => {
4221
- const { loading: e, shareDetails: r } = ao(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = uo(), s = (u) => {
4225
+ return !r || !i ? null : /* @__PURE__ */ v.jsx(Yn, { target: i, onClick: n });
4226
+ }, as = () => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4227
+ /* @__PURE__ */ v.jsx(ss, {}),
4228
+ /* @__PURE__ */ v.jsx(is, {})
4229
+ ] }), us = Ar(() => import("./DbtDocsRenderer.js")), ls = () => {
4230
+ const { loading: e, shareDetails: r } = co(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = fo(), s = (u) => {
4222
4231
  u.stopPropagation();
4223
4232
  const l = n();
4224
- l && i(Dt(l));
4233
+ l && i(xt(l));
4225
4234
  };
4226
4235
  return e ? /* @__PURE__ */ v.jsx("div", { children: "Loading..." }) : !(r != null && r.catalog_presigned_url) || !(r != null && r.manifest_presigned_url) ? /* @__PURE__ */ v.jsx("div", { children: "Unable to load required artifacts. Please try again." }) : /* @__PURE__ */ v.jsxs("div", { children: [
4227
4236
  /* @__PURE__ */ v.jsxs("div", { className: "d-flex justify-content-end mb-2", children: [
4228
- /* @__PURE__ */ v.jsx(os, {}),
4229
- /* @__PURE__ */ v.jsx(eo, {})
4237
+ /* @__PURE__ */ v.jsx(as, {}),
4238
+ /* @__PURE__ */ v.jsx(ro, {})
4230
4239
  ] }),
4231
- /* @__PURE__ */ v.jsx(ts, {}),
4232
- /* @__PURE__ */ v.jsx(is, { shareDetails: r, onSelectionEnd: o }),
4233
- t ? /* @__PURE__ */ v.jsx(Jr, { pos: t, onAddComment: s }) : null
4240
+ /* @__PURE__ */ v.jsx(os, {}),
4241
+ /* @__PURE__ */ v.jsx(us, { shareDetails: r, onSelectionEnd: o }),
4242
+ t ? /* @__PURE__ */ v.jsx(no, { pos: t, onAddComment: s }) : null
4234
4243
  ] });
4235
- }, Os = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ v.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ v.jsx(
4236
- Hr,
4244
+ }, Ns = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ v.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ v.jsx(
4245
+ qr,
4237
4246
  {
4238
4247
  shareId: e,
4239
4248
  userId: r,
4240
4249
  conversationGroupId: i,
4241
4250
  source: n,
4242
- children: /* @__PURE__ */ v.jsx(ss, {})
4251
+ children: /* @__PURE__ */ v.jsx(ls, {})
4243
4252
  }
4244
- ) }), Vn = {
4253
+ ) }), Wn = {
4245
4254
  showCoachingForm: !1
4246
- }, mt = cn({
4255
+ }, ht = cn({
4247
4256
  name: "teamMate",
4248
- initialState: Vn,
4257
+ initialState: Wn,
4249
4258
  reducers: {
4250
4259
  setShowCoachingForm: (e, r) => {
4251
4260
  e.showCoachingForm = r.payload;
4252
4261
  }
4253
4262
  }
4254
- }), as = mt.actions, Yn = _e({
4255
- state: Vn,
4263
+ }), cs = ht.actions, Kn = _e({
4264
+ state: Wn,
4256
4265
  dispatch: () => null
4257
- }), Ds = ({ children: e }) => {
4258
- const [r, i] = gn(mt.reducer, mt.getInitialState()), n = fe(
4266
+ }), js = ({ children: e }) => {
4267
+ const [r, i] = gn(ht.reducer, ht.getInitialState()), n = fe(
4259
4268
  () => ({
4260
4269
  state: r,
4261
4270
  dispatch: i
4262
4271
  }),
4263
4272
  [r, i]
4264
4273
  );
4265
- return /* @__PURE__ */ v.jsx(Yn.Provider, { value: n, children: e });
4266
- }, us = (e) => /* @__PURE__ */ te.createElement("svg", { width: 131, height: 131, viewBox: "0 0 131 131", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#EAEEF9" }), /* @__PURE__ */ te.createElement("mask", { id: "mask0_3506_13710", style: {
4274
+ return /* @__PURE__ */ v.jsx(Kn.Provider, { value: n, children: e });
4275
+ }, ds = (e) => /* @__PURE__ */ te.createElement("svg", { width: 131, height: 131, viewBox: "0 0 131 131", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#EAEEF9" }), /* @__PURE__ */ te.createElement("mask", { id: "mask0_3506_13710", style: {
4267
4276
  maskType: "alpha"
4268
- }, maskUnits: "userSpaceOnUse", x: -1, y: -1, width: 132, height: 132 }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#F1F3F9", stroke: "#D6DCE8", strokeWidth: 2, strokeMiterlimit: 10 })), /* @__PURE__ */ te.createElement("g", { mask: "url(#mask0_3506_13710)" }, /* @__PURE__ */ te.createElement("g", { filter: "url(#filter0_d_3506_13710)" }, /* @__PURE__ */ te.createElement("path", { d: "M110.116 47.3781L111.286 125.57C111.286 128.145 109.179 130.252 106.37 130.252H30.051C27.4758 130.252 25.1348 128.145 25.1348 125.57V25.138C25.1348 22.5628 27.2417 20.4559 30.051 20.4559H85.3002L110.116 47.3781Z", fill: "url(#paint0_linear_3506_13710)" })), /* @__PURE__ */ te.createElement("path", { d: "M85.3008 20.4559V41.9937C85.3008 45.0371 87.876 47.3782 90.9193 47.3782H110.116", fill: "#D5DDEA" })), /* @__PURE__ */ te.createElement("path", { d: "M119.221 27.592L120.664 26.951C121.144 26.7908 121.144 26.1498 120.664 25.9896L119.221 25.3486C117.459 24.5475 116.017 23.1053 115.215 21.3427L114.575 19.9006C114.414 19.4199 113.773 19.4199 113.613 19.9006L112.972 21.3427C112.171 23.1053 110.729 24.5475 108.966 25.3486L107.524 25.9896C107.043 26.1498 107.043 26.7908 107.524 26.951L108.966 27.592C110.729 28.3931 112.171 29.8353 112.972 31.5979L113.613 33.04C113.773 33.5207 114.414 33.5207 114.575 33.04L115.215 31.5979C115.856 29.8353 117.299 28.3931 119.221 27.592Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M103.678 18.4585L104.64 17.9777C104.96 17.8175 104.96 17.497 104.64 17.3368L103.678 17.0163C102.397 16.5356 101.435 15.5742 100.954 14.2923L100.474 13.3309C100.313 13.0104 99.993 13.0104 99.8327 13.3309L99.5123 14.2923C98.8713 15.5742 97.9099 16.5356 96.7882 17.0163L95.6666 17.497C95.5063 17.497 95.5063 17.9777 95.6666 17.9777L96.628 18.4585C97.9099 18.9392 98.8713 19.9006 99.5123 21.1825L99.993 22.1439C100.153 22.4644 100.474 22.4644 100.634 22.1439L100.954 21.1825C101.435 19.9006 102.397 18.9392 103.678 18.4585Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M116.016 9.16483L116.817 8.84435C116.978 8.68412 116.978 8.52388 116.817 8.36364L116.016 8.04317C115.055 7.7227 114.414 6.92151 113.933 5.96009L113.613 5.1589C113.452 4.99867 113.292 4.99867 113.132 5.1589L112.811 5.96009C112.491 6.92151 111.69 7.56246 110.728 8.04317L110.248 8.36364C109.927 8.52388 109.927 8.84435 110.248 8.84435L111.049 9.16483C112.01 9.4853 112.651 10.2865 113.132 11.2479L113.452 12.0491C113.613 12.2093 113.773 12.2093 113.933 12.0491L114.254 11.2479C114.414 10.2865 115.215 9.4853 116.016 9.16483Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M53.7864 71.8552C50.2113 71.8552 47.2082 69.5695 46.0642 66.2838C45.7782 65.5695 46.2072 64.8552 46.9222 64.5695C47.6372 64.2838 48.3523 64.7124 48.6383 65.4266C49.3533 67.5695 51.4983 69.1409 53.7864 69.1409C56.0744 69.1409 58.2195 67.7124 58.9345 65.4266C59.2205 64.7124 59.9355 64.2838 60.6506 64.5695C61.3656 64.8552 61.7946 65.5695 61.5086 66.2838C60.3646 69.7124 57.3615 71.8552 53.7864 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M75.3801 71.8552C71.805 71.8552 68.802 69.5695 67.6579 66.2838C67.3719 65.5695 67.8009 64.8552 68.516 64.5695C69.231 64.2838 69.946 64.7124 70.232 65.4266C70.947 67.5695 73.0921 69.1409 75.3801 69.1409C77.6682 69.1409 79.8133 67.7124 80.5283 65.4266C80.8143 64.7124 81.5293 64.2838 82.2443 64.5695C82.9593 64.8552 83.3883 65.5695 83.1023 66.2838C81.9583 69.7124 78.9552 71.8552 75.3801 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M64.6548 89.3467C66.4713 89.3467 67.9439 87.8756 67.9439 86.061C67.9439 84.2463 66.4713 82.7752 64.6548 82.7752C62.8383 82.7752 61.3657 84.2463 61.3657 86.061C61.3657 87.8756 62.8383 89.3467 64.6548 89.3467Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("defs", null, /* @__PURE__ */ te.createElement("filter", { id: "filter0_d_3506_13710", x: 3.13477, y: 9.45586, width: 130.151, height: 153.796, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ te.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ te.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ te.createElement("feOffset", { dy: 11 }), /* @__PURE__ */ te.createElement("feGaussianBlur", { stdDeviation: 11 }), /* @__PURE__ */ te.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_3506_13710" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_3506_13710", result: "shape" })), /* @__PURE__ */ te.createElement("linearGradient", { id: "paint0_linear_3506_13710", x1: 68.1823, y1: 17.9162, x2: 68.1823, y2: 131.436, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ te.createElement("stop", { stopColor: "#FDFEFF" }), /* @__PURE__ */ te.createElement("stop", { offset: 0.9964, stopColor: "#ECF0F5" })))), ls = () => {
4269
- const e = ye(Yn);
4277
+ }, maskUnits: "userSpaceOnUse", x: -1, y: -1, width: 132, height: 132 }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#F1F3F9", stroke: "#D6DCE8", strokeWidth: 2, strokeMiterlimit: 10 })), /* @__PURE__ */ te.createElement("g", { mask: "url(#mask0_3506_13710)" }, /* @__PURE__ */ te.createElement("g", { filter: "url(#filter0_d_3506_13710)" }, /* @__PURE__ */ te.createElement("path", { d: "M110.116 47.3781L111.286 125.57C111.286 128.145 109.179 130.252 106.37 130.252H30.051C27.4758 130.252 25.1348 128.145 25.1348 125.57V25.138C25.1348 22.5628 27.2417 20.4559 30.051 20.4559H85.3002L110.116 47.3781Z", fill: "url(#paint0_linear_3506_13710)" })), /* @__PURE__ */ te.createElement("path", { d: "M85.3008 20.4559V41.9937C85.3008 45.0371 87.876 47.3782 90.9193 47.3782H110.116", fill: "#D5DDEA" })), /* @__PURE__ */ te.createElement("path", { d: "M119.221 27.592L120.664 26.951C121.144 26.7908 121.144 26.1498 120.664 25.9896L119.221 25.3486C117.459 24.5475 116.017 23.1053 115.215 21.3427L114.575 19.9006C114.414 19.4199 113.773 19.4199 113.613 19.9006L112.972 21.3427C112.171 23.1053 110.729 24.5475 108.966 25.3486L107.524 25.9896C107.043 26.1498 107.043 26.7908 107.524 26.951L108.966 27.592C110.729 28.3931 112.171 29.8353 112.972 31.5979L113.613 33.04C113.773 33.5207 114.414 33.5207 114.575 33.04L115.215 31.5979C115.856 29.8353 117.299 28.3931 119.221 27.592Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M103.678 18.4585L104.64 17.9777C104.96 17.8175 104.96 17.497 104.64 17.3368L103.678 17.0163C102.397 16.5356 101.435 15.5742 100.954 14.2923L100.474 13.3309C100.313 13.0104 99.993 13.0104 99.8327 13.3309L99.5123 14.2923C98.8713 15.5742 97.9099 16.5356 96.7882 17.0163L95.6666 17.497C95.5063 17.497 95.5063 17.9777 95.6666 17.9777L96.628 18.4585C97.9099 18.9392 98.8713 19.9006 99.5123 21.1825L99.993 22.1439C100.153 22.4644 100.474 22.4644 100.634 22.1439L100.954 21.1825C101.435 19.9006 102.397 18.9392 103.678 18.4585Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M116.016 9.16483L116.817 8.84435C116.978 8.68412 116.978 8.52388 116.817 8.36364L116.016 8.04317C115.055 7.7227 114.414 6.92151 113.933 5.96009L113.613 5.1589C113.452 4.99867 113.292 4.99867 113.132 5.1589L112.811 5.96009C112.491 6.92151 111.69 7.56246 110.728 8.04317L110.248 8.36364C109.927 8.52388 109.927 8.84435 110.248 8.84435L111.049 9.16483C112.01 9.4853 112.651 10.2865 113.132 11.2479L113.452 12.0491C113.613 12.2093 113.773 12.2093 113.933 12.0491L114.254 11.2479C114.414 10.2865 115.215 9.4853 116.016 9.16483Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M53.7864 71.8552C50.2113 71.8552 47.2082 69.5695 46.0642 66.2838C45.7782 65.5695 46.2072 64.8552 46.9222 64.5695C47.6372 64.2838 48.3523 64.7124 48.6383 65.4266C49.3533 67.5695 51.4983 69.1409 53.7864 69.1409C56.0744 69.1409 58.2195 67.7124 58.9345 65.4266C59.2205 64.7124 59.9355 64.2838 60.6506 64.5695C61.3656 64.8552 61.7946 65.5695 61.5086 66.2838C60.3646 69.7124 57.3615 71.8552 53.7864 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M75.3801 71.8552C71.805 71.8552 68.802 69.5695 67.6579 66.2838C67.3719 65.5695 67.8009 64.8552 68.516 64.5695C69.231 64.2838 69.946 64.7124 70.232 65.4266C70.947 67.5695 73.0921 69.1409 75.3801 69.1409C77.6682 69.1409 79.8133 67.7124 80.5283 65.4266C80.8143 64.7124 81.5293 64.2838 82.2443 64.5695C82.9593 64.8552 83.3883 65.5695 83.1023 66.2838C81.9583 69.7124 78.9552 71.8552 75.3801 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M64.6548 89.3467C66.4713 89.3467 67.9439 87.8756 67.9439 86.061C67.9439 84.2463 66.4713 82.7752 64.6548 82.7752C62.8383 82.7752 61.3657 84.2463 61.3657 86.061C61.3657 87.8756 62.8383 89.3467 64.6548 89.3467Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("defs", null, /* @__PURE__ */ te.createElement("filter", { id: "filter0_d_3506_13710", x: 3.13477, y: 9.45586, width: 130.151, height: 153.796, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ te.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ te.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ te.createElement("feOffset", { dy: 11 }), /* @__PURE__ */ te.createElement("feGaussianBlur", { stdDeviation: 11 }), /* @__PURE__ */ te.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_3506_13710" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_3506_13710", result: "shape" })), /* @__PURE__ */ te.createElement("linearGradient", { id: "paint0_linear_3506_13710", x1: 68.1823, y1: 17.9162, x2: 68.1823, y2: 131.436, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ te.createElement("stop", { stopColor: "#FDFEFF" }), /* @__PURE__ */ te.createElement("stop", { offset: 0.9964, stopColor: "#ECF0F5" })))), fs = () => {
4278
+ const e = be(Kn);
4270
4279
  if (e === void 0)
4271
4280
  throw new Error("useTeamMateContext must be used within a TeamMateProvider");
4272
4281
  return e;
4273
- }, Rs = () => {
4274
- const { dispatch: e } = ls(), r = () => {
4275
- e(as.setShowCoachingForm(!0));
4282
+ }, Ps = () => {
4283
+ const { dispatch: e } = fs(), r = () => {
4284
+ e(cs.setShowCoachingForm(!0));
4276
4285
  };
4277
4286
  return /* @__PURE__ */ v.jsx(Ie, { onClick: r, children: "Show Coaching Form" });
4278
- }, cs = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
4279
- const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } = Ar({
4287
+ }, ps = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
4288
+ const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } = xr({
4280
4289
  initialValues: e,
4281
- validationSchema: rr(or),
4290
+ validationSchema: or(ir),
4282
4291
  onSubmit: async (A) => {
4283
4292
  await ve.post(`coach/training/${e.train_doc_uid}`, A, {
4284
4293
  method: "PUT"
@@ -4300,12 +4309,12 @@ const Ui = {
4300
4309
  }, I = (A) => {
4301
4310
  E(A), i(e.train_doc_uid), o(!0);
4302
4311
  }, y = n === e.train_doc_uid;
4303
- return /* @__PURE__ */ v.jsx($e, { className: y ? "active" : "", children: /* @__PURE__ */ v.jsxs("form", { onSubmit: d, children: [
4304
- /* @__PURE__ */ v.jsx(Et, { children: /* @__PURE__ */ v.jsxs(se, { className: "align-items-start", children: [
4312
+ return /* @__PURE__ */ v.jsx(vt, { className: y ? "active" : "", children: /* @__PURE__ */ v.jsxs("form", { onSubmit: d, children: [
4313
+ /* @__PURE__ */ v.jsx(un, { children: /* @__PURE__ */ v.jsxs(se, { className: "align-items-start", children: [
4305
4314
  /* @__PURE__ */ v.jsxs("div", { style: { flex: 1 }, children: [
4306
- /* @__PURE__ */ v.jsx("div", { children: t ? /* @__PURE__ */ v.jsxs(Mt, { children: [
4315
+ /* @__PURE__ */ v.jsx("div", { children: t ? /* @__PURE__ */ v.jsxs(Pt, { children: [
4307
4316
  /* @__PURE__ */ v.jsx(
4308
- Lt,
4317
+ Ft,
4309
4318
  {
4310
4319
  name: "content",
4311
4320
  value: a.content,
@@ -4317,17 +4326,17 @@ const Ui = {
4317
4326
  style: { fieldSizing: "content" }
4318
4327
  }
4319
4328
  ),
4320
- s.content ? /* @__PURE__ */ v.jsx(Kn, { children: s.content }) : null
4329
+ s.content ? /* @__PURE__ */ v.jsx(Xn, { children: s.content }) : null
4321
4330
  ] }) : /* @__PURE__ */ v.jsx("h6", { className: y ? "" : "lines-2", children: a.content }) }),
4322
4331
  /* @__PURE__ */ v.jsx(se, { children: /* @__PURE__ */ v.jsxs("dl", { children: [
4323
4332
  /* @__PURE__ */ v.jsxs(se, { children: [
4324
4333
  /* @__PURE__ */ v.jsx("dt", { children: "Created on:" }),
4325
- /* @__PURE__ */ v.jsx("dd", { children: dt(e.createdDate).format("MMMM D, YYYY h:mm A") })
4334
+ /* @__PURE__ */ v.jsx("dd", { children: lt(e.createdDate).format("MMMM D, YYYY h:mm A") })
4326
4335
  ] }),
4327
4336
  /* @__PURE__ */ v.jsxs(se, { children: [
4328
4337
  /* @__PURE__ */ v.jsx("dt", { children: "Updated on:" }),
4329
4338
  /* @__PURE__ */ v.jsxs("dd", { children: [
4330
- dt(e.updatedDate).format("MMMM D, YYYY h:mm A"),
4339
+ lt(e.updatedDate).format("MMMM D, YYYY h:mm A"),
4331
4340
  " "
4332
4341
  ] })
4333
4342
  ] }),
@@ -4339,12 +4348,12 @@ const Ui = {
4339
4348
  ] }) })
4340
4349
  ] }),
4341
4350
  /* @__PURE__ */ v.jsxs(se, { className: "align-items-top gap-0", children: [
4342
- /* @__PURE__ */ v.jsx(Mt, { switch: !0, children: /* @__PURE__ */ v.jsx(
4343
- nr,
4351
+ /* @__PURE__ */ v.jsx(Pt, { switch: !0, children: /* @__PURE__ */ v.jsx(
4352
+ rr,
4344
4353
  {
4345
4354
  title: a.isActive ? "Disable this learning" : "Enable this learning",
4346
4355
  children: /* @__PURE__ */ v.jsx(
4347
- Lt,
4356
+ Ft,
4348
4357
  {
4349
4358
  type: "switch",
4350
4359
  role: "switch",
@@ -4360,7 +4369,7 @@ const Ui = {
4360
4369
  }
4361
4370
  ) }),
4362
4371
  /* @__PURE__ */ v.jsx(
4363
- ir,
4372
+ sr,
4364
4373
  {
4365
4374
  title: "Delete the task",
4366
4375
  description: "Are you sure to delete this task?",
@@ -4375,38 +4384,29 @@ const Ui = {
4375
4384
  className: "pt-1 pb-0",
4376
4385
  disabled: p,
4377
4386
  onClick: E,
4378
- children: /* @__PURE__ */ v.jsx(hr, {})
4387
+ children: /* @__PURE__ */ v.jsx(mr, {})
4379
4388
  }
4380
4389
  )
4381
4390
  }
4382
4391
  ),
4383
4392
  t ? /* @__PURE__ */ v.jsxs(se, { className: "align-items-baseline", children: [
4384
- /* @__PURE__ */ v.jsx(Ce, { onClick: S, outline: !0, size: "sm", children: "Cancel" }),
4385
- /* @__PURE__ */ v.jsx(
4386
- Ce,
4387
- {
4388
- size: "sm",
4389
- color: "primary",
4390
- disabled: l || !u,
4391
- type: "submit",
4392
- children: "Save"
4393
- }
4394
- )
4395
- ] }) : /* @__PURE__ */ v.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ v.jsx(vr, {}) }),
4396
- /* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(mr, {}) : /* @__PURE__ */ v.jsx(Er, {}) })
4393
+ /* @__PURE__ */ v.jsx(ye, { onClick: S, variant: "outline", size: "sm", children: "Cancel" }),
4394
+ /* @__PURE__ */ v.jsx(ye, { size: "sm", disabled: l || !u, type: "submit", children: "Save" })
4395
+ ] }) : /* @__PURE__ */ v.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ v.jsx(Er, {}) }),
4396
+ /* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(yr, {}) : /* @__PURE__ */ v.jsx(br, {}) })
4397
4397
  ] })
4398
4398
  ] }) }),
4399
- /* @__PURE__ */ v.jsxs(Xn, { isOpen: y, children: [
4399
+ /* @__PURE__ */ v.jsxs(Gn, { isOpen: y, children: [
4400
4400
  m && /* @__PURE__ */ v.jsx(ln, { color: "danger", children: m.message }),
4401
4401
  /* @__PURE__ */ v.jsxs(se, { className: "gap-4", children: [
4402
4402
  /* @__PURE__ */ v.jsxs("div", { children: [
4403
4403
  /* @__PURE__ */ v.jsx("strong", { children: "Category:" }),
4404
4404
  " ",
4405
4405
  t ? /* @__PURE__ */ v.jsx(
4406
- Bt,
4406
+ Mt,
4407
4407
  {
4408
4408
  style: { minWidth: 160 },
4409
- options: Object.values(sr).map((A) => ({
4409
+ options: Object.values(ar).map((A) => ({
4410
4410
  value: A,
4411
4411
  label: A
4412
4412
  })),
@@ -4428,10 +4428,10 @@ const Ui = {
4428
4428
  /* @__PURE__ */ v.jsx("strong", { children: "Personalization Scope:" }),
4429
4429
  " ",
4430
4430
  t ? /* @__PURE__ */ v.jsx(
4431
- Bt,
4431
+ Mt,
4432
4432
  {
4433
4433
  style: { minWidth: 100 },
4434
- options: Object.values(ar).map((A) => ({
4434
+ options: Object.values(ur).map((A) => ({
4435
4435
  value: A,
4436
4436
  label: A
4437
4437
  })),
@@ -4458,9 +4458,9 @@ const Ui = {
4458
4458
  ] })
4459
4459
  ] })
4460
4460
  ] }) });
4461
- }, ws = ({ filters: e, learning: r }) => {
4461
+ }, Fs = ({ filters: e, learning: r }) => {
4462
4462
  var d;
4463
- const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = ur({
4463
+ const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = lr({
4464
4464
  queryFn: () => ve.get("coach/training", e),
4465
4465
  enabled: !1
4466
4466
  });
@@ -4474,7 +4474,7 @@ const Ui = {
4474
4474
  "Error loading learnings: ",
4475
4475
  t.message
4476
4476
  ] }) : (d = o == null ? void 0 : o.train_docs) != null && d.length ? /* @__PURE__ */ v.jsx("div", { children: o.train_docs.map((a) => /* @__PURE__ */ v.jsx(
4477
- cs,
4477
+ ps,
4478
4478
  {
4479
4479
  learning: a,
4480
4480
  afterDelete: u,
@@ -4483,26 +4483,26 @@ const Ui = {
4483
4483
  },
4484
4484
  a.train_doc_uid
4485
4485
  )) }) : /* @__PURE__ */ v.jsxs(se, { direction: "column", className: "align-items-center", children: [
4486
- /* @__PURE__ */ v.jsx(us, {}),
4486
+ /* @__PURE__ */ v.jsx(ds, {}),
4487
4487
  /* @__PURE__ */ v.jsx("h4", { children: "No learnings added yet!" })
4488
4488
  ] }) });
4489
- }, ds = ({ config: e, client: r, onSelect: i }) => {
4490
- const n = async () => await i(e, rt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = fn({
4489
+ }, gs = ({ config: e, client: r, onSelect: i }) => {
4490
+ const n = async () => await i(e, tt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = fn({
4491
4491
  queryFn: n
4492
4492
  }), u = typeof e.comingSoon == "function" ? e.comingSoon() : e.comingSoon;
4493
- return /* @__PURE__ */ v.jsx(Gn, { children: /* @__PURE__ */ v.jsxs($e, { children: [
4493
+ return /* @__PURE__ */ v.jsx(Zn, { children: /* @__PURE__ */ v.jsxs(vt, { children: [
4494
4494
  /* @__PURE__ */ v.jsxs(se, { className: "justify-content-between", children: [
4495
- /* @__PURE__ */ v.jsx(Zn, { alt: "Teammate image", src: e.avatar }),
4496
- /* @__PURE__ */ v.jsx("div", { children: e.availability.map((l) => /* @__PURE__ */ v.jsxs(lr, { color: "success", tooltip: "", className: l, children: [
4495
+ /* @__PURE__ */ v.jsx(Qn, { alt: "Teammate image", src: e.avatar }),
4496
+ /* @__PURE__ */ v.jsx("div", { children: e.availability.map((l) => /* @__PURE__ */ v.jsxs(cr, { color: "success", tooltip: "", className: l, children: [
4497
4497
  u ? "Coming soon" : "Available",
4498
4498
  " in ",
4499
4499
  l
4500
4500
  ] }, l)) })
4501
4501
  ] }),
4502
- /* @__PURE__ */ v.jsxs(Je, { children: [
4503
- /* @__PURE__ */ v.jsx(Et, { tag: "h5", children: e.name }),
4504
- /* @__PURE__ */ v.jsx(Qn, { tag: "h6" }),
4505
- /* @__PURE__ */ v.jsx(Jn, { children: e.description }),
4502
+ /* @__PURE__ */ v.jsxs(an, { children: [
4503
+ /* @__PURE__ */ v.jsx(un, { tag: "h5", children: e.name }),
4504
+ /* @__PURE__ */ v.jsx(Jn, { tag: "h6" }),
4505
+ /* @__PURE__ */ v.jsx(er, { children: e.description }),
4506
4506
  /* @__PURE__ */ v.jsxs(se, { className: "justify-content-start align-items-center", children: [
4507
4507
  u ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4508
4508
  /* @__PURE__ */ v.jsx(
@@ -4519,50 +4519,46 @@ const Ui = {
4519
4519
  ),
4520
4520
  s ? /* @__PURE__ */ v.jsx("p", { className: "m-0", children: "Our team will reach out soon" }) : null
4521
4521
  ] }) : /* @__PURE__ */ v.jsx(
4522
- Ce,
4522
+ ye,
4523
4523
  {
4524
4524
  size: "sm",
4525
4525
  className: "cursor-pointer",
4526
- onClick: () => i(e, rt.VIEW_DETAILS),
4527
- tooltip: "",
4528
- color: "primary",
4526
+ onClick: () => i(e, tt.VIEW_DETAILS),
4529
4527
  children: "View details"
4530
4528
  }
4531
4529
  ),
4532
- e.seeInAction && e.availability.includes(cr[r]) && /* @__PURE__ */ v.jsx(
4533
- Ce,
4530
+ e.seeInAction && e.availability.includes(dr[r]) && /* @__PURE__ */ v.jsx(
4531
+ ye,
4534
4532
  {
4535
- color: "primary",
4536
- outline: !0,
4533
+ variant: "outline",
4537
4534
  size: "sm",
4538
4535
  className: "cursor-pointer",
4539
- onClick: () => i(e, rt.SEE_IN_ACTION),
4540
- tooltip: "",
4536
+ onClick: () => i(e, tt.SEE_IN_ACTION),
4541
4537
  children: "See in action"
4542
4538
  }
4543
4539
  )
4544
4540
  ] })
4545
4541
  ] })
4546
4542
  ] }) });
4547
- }, Ns = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(er, { children: dr.map((i) => /* @__PURE__ */ v.jsx(ds, { config: i, client: r, onSelect: e }, i.name)) }) });
4543
+ }, Ms = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(tr, { children: fr.map((i) => /* @__PURE__ */ v.jsx(gs, { config: i, client: r, onSelect: e }, i.name)) }) });
4548
4544
  export {
4549
- Ct as C,
4550
- Os as D,
4551
- ws as L,
4552
- Ds as T,
4545
+ yt as C,
4546
+ Ns as D,
4547
+ Fs as L,
4548
+ js as T,
4553
4549
  ne as a,
4554
- Ts as b,
4555
- Is as c,
4556
- bs as d,
4557
- _t as e,
4550
+ Ds as b,
4551
+ Rs as c,
4552
+ As as d,
4553
+ Ct as e,
4558
4554
  me as f,
4559
- Tr as g,
4560
- Hn as h,
4561
- Xi as i,
4562
- Rs as j,
4563
- ls as k,
4564
- as as l,
4565
- Ns as m,
4566
- As as s,
4555
+ Or as g,
4556
+ Un as h,
4557
+ Qi as i,
4558
+ Ps as j,
4559
+ fs as k,
4560
+ cs as l,
4561
+ Ms as m,
4562
+ Os as s,
4567
4563
  ce as u
4568
4564
  };