@altimateai/ui-components 0.0.16 → 0.0.17
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/CoachForm.js +3 -3
- package/dist/index.js +1 -1
- package/dist/main.js +310 -309
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Card as vt, CardBody as an, CardTitle as un, FormGroup as Pt, Input as Ft, FormFeedback as Kn, Collapse as Gn, Alert as ln, Col as Zn, CardImg as Qn,
|
|
2
|
-
import { g as mt, a as cn, A as ve, C as
|
|
3
|
-
import { P as fn, T as lt, V as
|
|
4
|
-
import { j as v, A as pn, i as
|
|
1
|
+
import { Card as vt, CardBody as an, CardTitle as un, FormGroup as Pt, Input as Ft, FormFeedback as Kn, Collapse as Gn, Alert as ln, Col as Zn, CardImg as Qn, CardText as Jn, Row as er } from "reactstrap";
|
|
2
|
+
import { g as mt, a as cn, A as ve, C as tr, I as Ie, u as dn, S as se, T as nr, b as rr } from "./redux-toolkit.modern.js";
|
|
3
|
+
import { P as fn, T as lt, V as or, W as ir, X as sr, Y as ar, Z as ur, _ as tt, $ as lr, a0 as cr, a1 as dr } from "./CoachForm.js";
|
|
4
|
+
import { j as v, A as pn, i as fr, k as pr, b as gr, C as hr, D as vr, E as mr, e as Er, d as yr } 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 be, useLayoutEffect as
|
|
7
|
-
import
|
|
8
|
-
import { E as ye, Q as
|
|
9
|
-
import { useFormik as
|
|
6
|
+
import Z, { createContext as _e, useReducer as gn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as br, useEffect as le, useRef as Se, useId as hn, useInsertionEffect as Cr, Children as De, isValidElement as Sr, useState as re, lazy as _r } from "react";
|
|
7
|
+
import Ar, { createPortal as Et } from "react-dom";
|
|
8
|
+
import { E as ye, Q as Tr, M as vn, W as mn } from "./Tooltip.js";
|
|
9
|
+
import { useFormik as Ir } from "formik";
|
|
10
10
|
import { ay as Mt } from "./NativeSelect.js";
|
|
11
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
|
|
12
|
+
const xr = () => {
|
|
13
13
|
var r, i, n;
|
|
14
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("/");
|
|
15
15
|
return { name: e == null ? void 0 : e[1], resourceType: e == null ? void 0 : e[0] };
|
|
@@ -817,15 +817,15 @@ var En = { exports: {} };
|
|
|
817
817
|
}]).default;
|
|
818
818
|
});
|
|
819
819
|
})(En);
|
|
820
|
-
var
|
|
821
|
-
const yn = /* @__PURE__ */ mt(
|
|
820
|
+
var Or = En.exports;
|
|
821
|
+
const yn = /* @__PURE__ */ mt(Or), Qe = "altimate-display-", Dr = `${Qe}-highlight`, Lt = `${Qe}-highlight-hover`, Rr = `${Qe}-active-highlight`, wr = 1049, xe = new yn({
|
|
822
822
|
style: {
|
|
823
|
-
className:
|
|
823
|
+
className: Dr
|
|
824
824
|
}
|
|
825
825
|
// wrapTag: HIGHLIGHT_WRAPPER_TAGNAME,
|
|
826
826
|
}), bt = new yn({
|
|
827
827
|
style: {
|
|
828
|
-
className:
|
|
828
|
+
className: Rr
|
|
829
829
|
}
|
|
830
830
|
// wrapTag: ACTIVE_HIGHLIGHT_WRAPPER_TAGNAME,
|
|
831
831
|
}), bn = (e, r) => r.filter((i) => {
|
|
@@ -844,11 +844,11 @@ xe.on("selection:hover", ({ id: e }) => {
|
|
|
844
844
|
}).on("selection:hover-out", ({ id: e }) => {
|
|
845
845
|
xe.removeClass(Lt, e);
|
|
846
846
|
});
|
|
847
|
-
const
|
|
847
|
+
const Nr = (e) => {
|
|
848
848
|
var r, i;
|
|
849
849
|
return (r = e.meta) != null && r.highlight ? JSON.parse((i = e.meta) == null ? void 0 : i.highlight) : null;
|
|
850
|
-
},
|
|
851
|
-
const r =
|
|
850
|
+
}, jr = (e) => {
|
|
851
|
+
const r = Nr(e);
|
|
852
852
|
r && (xe.remove(r.id), bt.remove(r.id));
|
|
853
853
|
}, Ct = () => {
|
|
854
854
|
var i, n;
|
|
@@ -857,15 +857,15 @@ const jr = (e) => {
|
|
|
857
857
|
}, St = () => {
|
|
858
858
|
var r;
|
|
859
859
|
return (r = window.location.hash.split("#").find((i) => i.startsWith("!"))) == null ? void 0 : r.split("/");
|
|
860
|
-
}, _t = () => document.querySelector('[marked="model.description"]'),
|
|
860
|
+
}, _t = () => document.querySelector('[marked="model.description"]'), Pr = (e) => {
|
|
861
861
|
var r, i, n;
|
|
862
862
|
return e.field ? e.column ? (i = (r = Array.from(
|
|
863
863
|
document.querySelectorAll("column-details tr:not(.ng-hide) td:first-child")
|
|
864
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
|
-
},
|
|
865
|
+
}, Fr = (e) => {
|
|
866
866
|
if (e.getAttribute("marked") === "model.description")
|
|
867
867
|
return "description";
|
|
868
|
-
},
|
|
868
|
+
}, Mr = (e, r, i, n, t) => {
|
|
869
869
|
if (e === "description")
|
|
870
870
|
return {
|
|
871
871
|
start: 0,
|
|
@@ -884,12 +884,12 @@ const jr = (e) => {
|
|
|
884
884
|
start: a,
|
|
885
885
|
end: l
|
|
886
886
|
};
|
|
887
|
-
},
|
|
887
|
+
}, _s = () => {
|
|
888
888
|
var e;
|
|
889
889
|
return [(e = Ct()) == null ? void 0 : e.parentElement, _t()];
|
|
890
890
|
};
|
|
891
891
|
var ae = /* @__PURE__ */ ((e) => (e[e.LOADING = 0] = "LOADING", e[e.UNINITIALIZED = 1] = "UNINITIALIZED", e[e.INITIALIZED = 2] = "INITIALIZED", e))(ae || {});
|
|
892
|
-
const
|
|
892
|
+
const Lr = {
|
|
893
893
|
users: {},
|
|
894
894
|
isRightPanelOpen: !1,
|
|
895
895
|
selectedConversationId: void 0,
|
|
@@ -898,13 +898,13 @@ const Br = {
|
|
|
898
898
|
newConversation: void 0,
|
|
899
899
|
shareId: void 0,
|
|
900
900
|
docsAppRendered: !1,
|
|
901
|
-
currentPage:
|
|
901
|
+
currentPage: xr(),
|
|
902
902
|
codeblockLoaded: !1,
|
|
903
903
|
source: yt.DBT_DOCS,
|
|
904
904
|
manifest: {}
|
|
905
905
|
}, Xe = cn({
|
|
906
906
|
name: "appState",
|
|
907
|
-
initialState:
|
|
907
|
+
initialState: Lr,
|
|
908
908
|
reducers: {
|
|
909
909
|
setDocsAppRendered: (e, r) => {
|
|
910
910
|
e.docsAppRendered = r.payload;
|
|
@@ -992,28 +992,28 @@ const Br = {
|
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
}), {
|
|
995
|
-
setCurrentUserId:
|
|
996
|
-
setShareId:
|
|
995
|
+
setCurrentUserId: As,
|
|
996
|
+
setShareId: Ts,
|
|
997
997
|
updateSelectedConversationId: At,
|
|
998
998
|
updateRightPanelState: Tt,
|
|
999
|
-
setUsers:
|
|
1000
|
-
setConversations:
|
|
999
|
+
setUsers: Br,
|
|
1000
|
+
setConversations: $r,
|
|
1001
1001
|
resetNewConversation: It,
|
|
1002
1002
|
updateNewConversation: xt,
|
|
1003
|
-
upsertConversation:
|
|
1004
|
-
setDocsAppRendered:
|
|
1005
|
-
updateCurrentPage:
|
|
1006
|
-
updateCodeblockLoaded:
|
|
1007
|
-
resolveConversationGroup:
|
|
1003
|
+
upsertConversation: Is,
|
|
1004
|
+
setDocsAppRendered: xs,
|
|
1005
|
+
updateCurrentPage: Os,
|
|
1006
|
+
updateCodeblockLoaded: Ds,
|
|
1007
|
+
resolveConversationGroup: Hr,
|
|
1008
1008
|
setConversationsLoadingState: Bt,
|
|
1009
1009
|
refetchConversations: Sn,
|
|
1010
|
-
setConversationSource:
|
|
1011
|
-
setManifest:
|
|
1010
|
+
setConversationSource: Rs,
|
|
1011
|
+
setManifest: kr
|
|
1012
1012
|
} = Xe.actions, Je = _e({
|
|
1013
1013
|
state: Xe.getInitialState(),
|
|
1014
1014
|
dispatch: () => null,
|
|
1015
1015
|
getValue: () => null
|
|
1016
|
-
}),
|
|
1016
|
+
}), Ur = ({
|
|
1017
1017
|
children: e,
|
|
1018
1018
|
shareId: r,
|
|
1019
1019
|
userId: i,
|
|
@@ -1039,28 +1039,28 @@ const Br = {
|
|
|
1039
1039
|
[o, s, u]
|
|
1040
1040
|
);
|
|
1041
1041
|
return /* @__PURE__ */ v.jsx(Je.Provider, { value: l, children: e });
|
|
1042
|
-
},
|
|
1042
|
+
}, qr = () => be(Je), ne = (e) => {
|
|
1043
1043
|
const { getValue: r } = be(Je);
|
|
1044
1044
|
return r(e);
|
|
1045
1045
|
}, ce = () => {
|
|
1046
1046
|
const { dispatch: e } = be(Je);
|
|
1047
1047
|
return e;
|
|
1048
|
-
},
|
|
1049
|
-
let _n =
|
|
1048
|
+
}, zr = (e) => e;
|
|
1049
|
+
let _n = zr;
|
|
1050
1050
|
process.env.NODE_ENV !== "production" && (_n = (e, r) => {
|
|
1051
1051
|
if (!e)
|
|
1052
1052
|
throw new Error(r);
|
|
1053
1053
|
});
|
|
1054
|
-
const
|
|
1054
|
+
const Vr = _e(null), Wr = _e({}), Yr = _e({
|
|
1055
1055
|
transformPagePoint: (e) => e,
|
|
1056
1056
|
isStatic: !1,
|
|
1057
1057
|
reducedMotion: "never"
|
|
1058
|
-
}),
|
|
1058
|
+
}), Xr = typeof window < "u", Kr = Xr ? br : le;
|
|
1059
1059
|
function An(e) {
|
|
1060
1060
|
const r = Se(null);
|
|
1061
1061
|
return r.current === null && (r.current = e()), r.current;
|
|
1062
1062
|
}
|
|
1063
|
-
class
|
|
1063
|
+
class Gr extends te.Component {
|
|
1064
1064
|
getSnapshotBeforeUpdate(r) {
|
|
1065
1065
|
const i = this.props.childRef.current;
|
|
1066
1066
|
if (i && r.isPresent && !this.props.isPresent) {
|
|
@@ -1078,14 +1078,14 @@ class Zr extends te.Component {
|
|
|
1078
1078
|
return this.props.children;
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Zr({ children: e, isPresent: r }) {
|
|
1082
1082
|
const i = hn(), n = Se(null), t = Se({
|
|
1083
1083
|
width: 0,
|
|
1084
1084
|
height: 0,
|
|
1085
1085
|
top: 0,
|
|
1086
1086
|
left: 0
|
|
1087
|
-
}), { nonce: o } = be(
|
|
1088
|
-
return
|
|
1087
|
+
}), { nonce: o } = be(Yr);
|
|
1088
|
+
return Cr(() => {
|
|
1089
1089
|
const { width: s, height: u, top: l, left: d } = t.current;
|
|
1090
1090
|
if (r || !n.current || !s || !u)
|
|
1091
1091
|
return;
|
|
@@ -1102,10 +1102,10 @@ function Qr({ children: e, isPresent: r }) {
|
|
|
1102
1102
|
`), () => {
|
|
1103
1103
|
document.head.removeChild(a);
|
|
1104
1104
|
};
|
|
1105
|
-
}, [r]), v.jsx(
|
|
1105
|
+
}, [r]), v.jsx(Gr, { isPresent: r, childRef: n, sizeRef: t, children: te.cloneElement(e, { ref: n }) });
|
|
1106
1106
|
}
|
|
1107
|
-
const
|
|
1108
|
-
const u = An(
|
|
1107
|
+
const Qr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom: t, presenceAffectsLayout: o, mode: s }) => {
|
|
1108
|
+
const u = An(Jr), l = hn(), d = fe(
|
|
1109
1109
|
() => ({
|
|
1110
1110
|
id: l,
|
|
1111
1111
|
initial: r,
|
|
@@ -1131,22 +1131,22 @@ const Jr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom:
|
|
|
1131
1131
|
u.forEach((a, c) => u.set(c, !1));
|
|
1132
1132
|
}, [i]), te.useEffect(() => {
|
|
1133
1133
|
!i && !u.size && n && n();
|
|
1134
|
-
}, [i]), s === "popLayout" && (e = v.jsx(
|
|
1134
|
+
}, [i]), s === "popLayout" && (e = v.jsx(Zr, { isPresent: i, children: e })), v.jsx(Vr.Provider, { value: d, children: e });
|
|
1135
1135
|
};
|
|
1136
|
-
function
|
|
1136
|
+
function Jr() {
|
|
1137
1137
|
return /* @__PURE__ */ new Map();
|
|
1138
1138
|
}
|
|
1139
1139
|
const ke = (e) => e.key || "";
|
|
1140
1140
|
function $t(e) {
|
|
1141
1141
|
const r = [];
|
|
1142
1142
|
return De.forEach(e, (i) => {
|
|
1143
|
-
|
|
1143
|
+
Sr(i) && r.push(i);
|
|
1144
1144
|
}), r;
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
1147
1147
|
_n(!r, "Replace exitBeforeEnter with mode='wait'");
|
|
1148
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
|
-
|
|
1149
|
+
Kr(() => {
|
|
1150
1150
|
d.current = !1, a.current = u;
|
|
1151
1151
|
for (let C = 0; C < p.length; C++) {
|
|
1152
1152
|
const S = ke(p[C]);
|
|
@@ -1164,7 +1164,7 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1164
1164
|
return;
|
|
1165
1165
|
}
|
|
1166
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.`);
|
|
1167
|
-
const { forceRender: E } = be(
|
|
1167
|
+
const { forceRender: E } = be(Wr);
|
|
1168
1168
|
return v.jsx(v.Fragment, { children: p.map((C) => {
|
|
1169
1169
|
const S = ke(C), I = u === p || l.includes(S), y = () => {
|
|
1170
1170
|
if (c.has(S))
|
|
@@ -1176,10 +1176,10 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1176
1176
|
D || (A = !1);
|
|
1177
1177
|
}), A && (E == null || E(), m(a.current), t && t());
|
|
1178
1178
|
};
|
|
1179
|
-
return v.jsx(
|
|
1179
|
+
return v.jsx(Qr, { 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);
|
|
1180
1180
|
}) });
|
|
1181
|
-
},
|
|
1182
|
-
/* @__PURE__ */ v.jsx(
|
|
1181
|
+
}, to = ({ pos: e, onAddComment: r }) => Et(
|
|
1182
|
+
/* @__PURE__ */ v.jsx(eo, { children: e && /* @__PURE__ */ v.jsx(
|
|
1183
1183
|
ye,
|
|
1184
1184
|
{
|
|
1185
1185
|
onClick: r,
|
|
@@ -1189,7 +1189,7 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1189
1189
|
top: e.y,
|
|
1190
1190
|
left: e.x,
|
|
1191
1191
|
// right: "15px",
|
|
1192
|
-
zIndex:
|
|
1192
|
+
zIndex: wr + 5,
|
|
1193
1193
|
cursor: "pointer",
|
|
1194
1194
|
background: "#007AFF",
|
|
1195
1195
|
width: 26,
|
|
@@ -1209,20 +1209,20 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1209
1209
|
}
|
|
1210
1210
|
) }),
|
|
1211
1211
|
e.element.parentElement
|
|
1212
|
-
),
|
|
1212
|
+
), no = () => {
|
|
1213
1213
|
const {
|
|
1214
1214
|
state: { isRightPanelOpen: e }
|
|
1215
|
-
} =
|
|
1215
|
+
} = qr(), r = ce(), i = () => {
|
|
1216
1216
|
r(Tt(!e));
|
|
1217
1217
|
};
|
|
1218
1218
|
return /* @__PURE__ */ v.jsx(ye, { onClick: i, children: e ? "Hide conversations" : "Show conversations" });
|
|
1219
|
-
},
|
|
1219
|
+
}, ro = (e) => ve.get(`dbt/dbt_docs_share/${e}`), oo = (e, r, i) => ve.post(`dbt/dbt_docs_share/${e}/conversation_group`, {
|
|
1220
1220
|
...r,
|
|
1221
1221
|
telemetry: {
|
|
1222
1222
|
eventName: "dbtCollaboration:create",
|
|
1223
1223
|
properties: { source: i }
|
|
1224
1224
|
}
|
|
1225
|
-
}),
|
|
1225
|
+
}), io = (e, r, i, n) => ve.post(
|
|
1226
1226
|
`dbt/dbt_docs_share/${e}/conversation_group/${r}/conversation`,
|
|
1227
1227
|
{
|
|
1228
1228
|
...i,
|
|
@@ -1231,9 +1231,9 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1231
1231
|
properties: { source: n }
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
),
|
|
1234
|
+
), so = (e) => ve.get(
|
|
1235
1235
|
`dbt/dbt_docs_share/${e}/conversations`
|
|
1236
|
-
),
|
|
1236
|
+
), ao = (e) => ve.get("users/chat", { company: e }), uo = (e, r, i) => ve.post(
|
|
1237
1237
|
`dbt/dbt_docs_share/${e}/conversation_group/${r}/resolve`,
|
|
1238
1238
|
{
|
|
1239
1239
|
resolved: !0,
|
|
@@ -1242,13 +1242,13 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1242
1242
|
properties: { source: i }
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
),
|
|
1245
|
+
), lo = () => {
|
|
1246
1246
|
const e = ne(
|
|
1247
1247
|
(u) => u.shareId
|
|
1248
1248
|
), [r, i] = re(null), [n, t] = re(!1), o = ce();
|
|
1249
1249
|
le(() => {
|
|
1250
1250
|
r != null && r.manifest_presigned_url && fetch(r.manifest_presigned_url).then((u) => u.json()).then((u) => {
|
|
1251
|
-
o(
|
|
1251
|
+
o(kr(u));
|
|
1252
1252
|
}).catch(
|
|
1253
1253
|
(u) => console.error("error loading manifest", u, r.manifest_presigned_url)
|
|
1254
1254
|
);
|
|
@@ -1257,7 +1257,7 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1257
1257
|
if (!e)
|
|
1258
1258
|
return;
|
|
1259
1259
|
t(!0);
|
|
1260
|
-
const u = await
|
|
1260
|
+
const u = await ro(e);
|
|
1261
1261
|
if (u) {
|
|
1262
1262
|
i(u);
|
|
1263
1263
|
const l = document.getElementById("collapse-sidebar");
|
|
@@ -1268,7 +1268,7 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1268
1268
|
return le(() => {
|
|
1269
1269
|
!e || r || n || s();
|
|
1270
1270
|
}, [e, r, s, n]), { shareDetails: r, loading: n };
|
|
1271
|
-
},
|
|
1271
|
+
}, co = () => {
|
|
1272
1272
|
const e = ne(
|
|
1273
1273
|
(a) => a.selectedConversationId ? a.conversations[a.selectedConversationId] : null
|
|
1274
1274
|
), r = ne(
|
|
@@ -1280,7 +1280,7 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1280
1280
|
i && (o(null), u(null));
|
|
1281
1281
|
}, [i]);
|
|
1282
1282
|
const l = we(() => {
|
|
1283
|
-
console.log("resetHighlights"), t &&
|
|
1283
|
+
console.log("resetHighlights"), t && jr(t), u(null), o(null);
|
|
1284
1284
|
}, [t]);
|
|
1285
1285
|
return le(() => {
|
|
1286
1286
|
!e || !r || e.meta.resource_type && e.meta.uniqueId && (window.location.hash = `#!/${e.meta.resource_type}/${e.meta.uniqueId}`);
|
|
@@ -1288,13 +1288,13 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1288
1288
|
getHighlightedSelectionData: () => t,
|
|
1289
1289
|
pos: s,
|
|
1290
1290
|
onSelectionEnd: (a) => {
|
|
1291
|
-
const c = a.target, f =
|
|
1291
|
+
const c = a.target, f = Fr(c), { end: g, start: p } = a.detail.selectionRange, m = document.getSelection();
|
|
1292
1292
|
if (!m || !m.rangeCount)
|
|
1293
1293
|
return l(), null;
|
|
1294
1294
|
const E = m.getRangeAt(0).toString(), C = c == null ? void 0 : c.innerText;
|
|
1295
1295
|
if (!E || !C)
|
|
1296
1296
|
return;
|
|
1297
|
-
const { end: S, start: I, x: y, y: A } =
|
|
1297
|
+
const { end: S, start: I, x: y, y: A } = Mr(
|
|
1298
1298
|
f,
|
|
1299
1299
|
c,
|
|
1300
1300
|
E,
|
|
@@ -1320,12 +1320,12 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1320
1320
|
}), document.body.addEventListener("click", l, { once: !0 }), o(D);
|
|
1321
1321
|
}
|
|
1322
1322
|
};
|
|
1323
|
-
},
|
|
1323
|
+
}, fo = ({
|
|
1324
1324
|
conversationGroup: e
|
|
1325
1325
|
}) => {
|
|
1326
1326
|
const r = ne(
|
|
1327
1327
|
(u) => u.selectedConversationId
|
|
1328
|
-
), i = ce(), n = Se(null), t = fe(() =>
|
|
1328
|
+
), i = ce(), n = Se(null), t = fe(() => Pr(e.meta), [e.meta]), o = () => {
|
|
1329
1329
|
i(At(e.conversation_group_id));
|
|
1330
1330
|
}, s = fe(() => {
|
|
1331
1331
|
if (!t)
|
|
@@ -1358,12 +1358,12 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1358
1358
|
className: `altimate-highlighter ${r === e.conversation_group_id ? "active" : ""}`,
|
|
1359
1359
|
style: { top: s.top, height: s.bottom - s.top },
|
|
1360
1360
|
onClick: o,
|
|
1361
|
-
children: /* @__PURE__ */ v.jsx(
|
|
1361
|
+
children: /* @__PURE__ */ v.jsx(fr, {})
|
|
1362
1362
|
}
|
|
1363
1363
|
),
|
|
1364
1364
|
t.parentElement
|
|
1365
1365
|
);
|
|
1366
|
-
},
|
|
1366
|
+
}, po = () => {
|
|
1367
1367
|
const e = ne(
|
|
1368
1368
|
(t) => Object.values(t.conversations || {})
|
|
1369
1369
|
), r = ne(
|
|
@@ -1374,45 +1374,45 @@ const to = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1374
1374
|
(t) => t.meta.resource_type === i.resourceType && t.meta.uniqueId === i.name
|
|
1375
1375
|
);
|
|
1376
1376
|
return !(n != null && n.length) || !r ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: n.map((t) => /* @__PURE__ */ v.jsx(
|
|
1377
|
-
|
|
1377
|
+
fo,
|
|
1378
1378
|
{
|
|
1379
1379
|
conversationGroup: t
|
|
1380
1380
|
},
|
|
1381
1381
|
t.conversation_group_id
|
|
1382
1382
|
)) });
|
|
1383
|
-
},
|
|
1384
|
-
dbtDocs:
|
|
1385
|
-
hotspotButton:
|
|
1386
|
-
pulse:
|
|
1387
|
-
conversationRightPanelCloseButton:
|
|
1388
|
-
conversationRightPanel:
|
|
1389
|
-
newConversationForm:
|
|
1390
|
-
highlightText:
|
|
1391
|
-
conversationInputForm:
|
|
1392
|
-
conversationGroup:
|
|
1393
|
-
replyForm:
|
|
1394
|
-
resolveButton:
|
|
1395
|
-
},
|
|
1396
|
-
profileImage:
|
|
1383
|
+
}, go = "_dbtDocs_14zop_9", ho = "_hotspotButton_14zop_46", vo = "_pulse_14zop_1", mo = "_conversationRightPanelCloseButton_14zop_62", Eo = "_conversationRightPanel_14zop_62", yo = "_newConversationForm_14zop_94", bo = "_highlightText_14zop_108", Co = "_conversationInputForm_14zop_130", So = "_conversationGroup_14zop_156", _o = "_replyForm_14zop_189", Ao = "_resolveButton_14zop_237", me = {
|
|
1384
|
+
dbtDocs: go,
|
|
1385
|
+
hotspotButton: ho,
|
|
1386
|
+
pulse: vo,
|
|
1387
|
+
conversationRightPanelCloseButton: mo,
|
|
1388
|
+
conversationRightPanel: Eo,
|
|
1389
|
+
newConversationForm: yo,
|
|
1390
|
+
highlightText: bo,
|
|
1391
|
+
conversationInputForm: Co,
|
|
1392
|
+
conversationGroup: So,
|
|
1393
|
+
replyForm: _o,
|
|
1394
|
+
resolveButton: Ao
|
|
1395
|
+
}, To = "_profileImage_11vaf_1", Io = {
|
|
1396
|
+
profileImage: To
|
|
1397
1397
|
}, Tn = ({ user: e }) => {
|
|
1398
1398
|
var r;
|
|
1399
|
-
return /* @__PURE__ */ v.jsx("div", { className:
|
|
1399
|
+
return /* @__PURE__ */ v.jsx("div", { className: Io.profileImage, children: ((r = e == null ? void 0 : e.first_name) == null ? void 0 : r[0]) || "" });
|
|
1400
1400
|
};
|
|
1401
|
-
function
|
|
1401
|
+
function xo(e) {
|
|
1402
1402
|
if (Array.isArray(e)) {
|
|
1403
1403
|
for (var r = 0, i = new Array(e.length); r < e.length; r++)
|
|
1404
1404
|
i[r] = e[r];
|
|
1405
1405
|
return i;
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Oo(e) {
|
|
1409
1409
|
if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Do() {
|
|
1412
1412
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1413
1413
|
}
|
|
1414
1414
|
function Ke(e) {
|
|
1415
|
-
return
|
|
1415
|
+
return xo(e) || Oo(e) || Do();
|
|
1416
1416
|
}
|
|
1417
1417
|
function ue() {
|
|
1418
1418
|
return ue = Object.assign || function(e) {
|
|
@@ -1424,18 +1424,18 @@ function ue() {
|
|
|
1424
1424
|
return e;
|
|
1425
1425
|
}, ue.apply(this, arguments);
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Ro(e, r) {
|
|
1428
1428
|
if (!(e instanceof r))
|
|
1429
1429
|
throw new TypeError("Cannot call a class as a function");
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function wo(e, r) {
|
|
1432
1432
|
for (var i = 0; i < r.length; i++) {
|
|
1433
1433
|
var n = r[i];
|
|
1434
1434
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return r &&
|
|
1437
|
+
function No(e, r, i) {
|
|
1438
|
+
return r && wo(e.prototype, r), e;
|
|
1439
1439
|
}
|
|
1440
1440
|
function k(e) {
|
|
1441
1441
|
if (e === void 0)
|
|
@@ -1447,7 +1447,7 @@ function ct(e, r) {
|
|
|
1447
1447
|
return n.__proto__ = t, n;
|
|
1448
1448
|
}, ct(e, r);
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function jo(e, r) {
|
|
1451
1451
|
if (typeof r != "function" && r !== null)
|
|
1452
1452
|
throw new TypeError("Super expression must either be null or a function");
|
|
1453
1453
|
e.prototype = Object.create(r && r.prototype, {
|
|
@@ -1472,7 +1472,7 @@ function Ve(e) {
|
|
|
1472
1472
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : Oe(i);
|
|
1473
1473
|
}, Ve(e);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Po(e, r) {
|
|
1476
1476
|
return r && (Ve(r) === "object" || typeof r == "function") ? r : k(e);
|
|
1477
1477
|
}
|
|
1478
1478
|
function Ge(e) {
|
|
@@ -1488,7 +1488,7 @@ function H(e, r, i) {
|
|
|
1488
1488
|
writable: !0
|
|
1489
1489
|
}) : e[r] = i, e;
|
|
1490
1490
|
}
|
|
1491
|
-
var
|
|
1491
|
+
var Fo = function(e, r, i, n, t, o, s, u) {
|
|
1492
1492
|
if (process.env.NODE_ENV !== "production" && r === void 0)
|
|
1493
1493
|
throw new Error("invariant requires an error message argument");
|
|
1494
1494
|
if (!e) {
|
|
@@ -1507,12 +1507,12 @@ var Mo = function(e, r, i, n, t, o, s, u) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
throw l.framesToPop = 1, l;
|
|
1509
1509
|
}
|
|
1510
|
-
},
|
|
1511
|
-
const Re = /* @__PURE__ */ mt(
|
|
1512
|
-
function
|
|
1510
|
+
}, Mo = Fo;
|
|
1511
|
+
const Re = /* @__PURE__ */ mt(Mo);
|
|
1512
|
+
function Lo(e) {
|
|
1513
1513
|
if (Array.isArray(e)) return e;
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Bo(e, r) {
|
|
1516
1516
|
var i = [], n = !0, t = !1, o = void 0;
|
|
1517
1517
|
try {
|
|
1518
1518
|
for (var s = e[Symbol.iterator](), u; !(n = (u = s.next()).done) && (i.push(u.value), !(r && i.length === r)); n = !0)
|
|
@@ -1528,22 +1528,22 @@ function $o(e, r) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
return i;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function $o() {
|
|
1532
1532
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
1533
1533
|
}
|
|
1534
1534
|
function Ze(e, r) {
|
|
1535
|
-
return
|
|
1535
|
+
return Lo(e) || Bo(e, r) || $o();
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Ho(e, r) {
|
|
1538
1538
|
if (e == null) return {};
|
|
1539
1539
|
var i = {}, n = Object.keys(e), t, o;
|
|
1540
1540
|
for (o = 0; o < n.length; o++)
|
|
1541
1541
|
t = n[o], !(r.indexOf(t) >= 0) && (i[t] = e[t]);
|
|
1542
1542
|
return i;
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function ko(e, r) {
|
|
1545
1545
|
if (e == null) return {};
|
|
1546
|
-
var i =
|
|
1546
|
+
var i = Ho(e, r), n, t;
|
|
1547
1547
|
if (Object.getOwnPropertySymbols) {
|
|
1548
1548
|
var o = Object.getOwnPropertySymbols(e);
|
|
1549
1549
|
for (t = 0; t < o.length; t++)
|
|
@@ -1559,7 +1559,7 @@ function Me(e) {
|
|
|
1559
1559
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
1560
1560
|
}, Me(e);
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Uo(e, r) {
|
|
1563
1563
|
if (Me(e) != "object" || !e) return e;
|
|
1564
1564
|
var i = e[Symbol.toPrimitive];
|
|
1565
1565
|
if (i !== void 0) {
|
|
@@ -1569,12 +1569,12 @@ function qo(e, r) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
return (r === "string" ? String : Number)(e);
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1573
|
-
var r =
|
|
1572
|
+
function qo(e) {
|
|
1573
|
+
var r = Uo(e, "string");
|
|
1574
1574
|
return Me(r) == "symbol" ? r : r + "";
|
|
1575
1575
|
}
|
|
1576
1576
|
function Le(e, r, i) {
|
|
1577
|
-
return (r =
|
|
1577
|
+
return (r = qo(r)) in e ? Object.defineProperty(e, r, {
|
|
1578
1578
|
value: i,
|
|
1579
1579
|
enumerable: !0,
|
|
1580
1580
|
configurable: !0,
|
|
@@ -1586,25 +1586,25 @@ function dt(e, r) {
|
|
|
1586
1586
|
for (var i = 0, n = Array(r); i < r; i++) n[i] = e[i];
|
|
1587
1587
|
return n;
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function zo(e) {
|
|
1590
1590
|
if (Array.isArray(e)) return dt(e);
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function Vo(e) {
|
|
1593
1593
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function Wo(e, r) {
|
|
1596
1596
|
if (e) {
|
|
1597
1597
|
if (typeof e == "string") return dt(e, r);
|
|
1598
1598
|
var i = {}.toString.call(e).slice(8, -1);
|
|
1599
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;
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function Yo() {
|
|
1603
1603
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1604
1604
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1605
1605
|
}
|
|
1606
1606
|
function he(e) {
|
|
1607
|
-
return
|
|
1607
|
+
return zo(e) || Vo(e) || Wo(e) || Yo();
|
|
1608
1608
|
}
|
|
1609
1609
|
var Ne = function(r) {
|
|
1610
1610
|
return r === Object(r) ? Object.keys(r) : [];
|
|
@@ -1623,7 +1623,7 @@ var ft = function(r) {
|
|
|
1623
1623
|
return n.reduce(function(o, s) {
|
|
1624
1624
|
return xn(o, s);
|
|
1625
1625
|
}, r);
|
|
1626
|
-
},
|
|
1626
|
+
}, Xo = function(r, i) {
|
|
1627
1627
|
var n = Object.assign({}, r);
|
|
1628
1628
|
if (i)
|
|
1629
1629
|
for (var t = 0; t < i.length; t++)
|
|
@@ -1631,17 +1631,17 @@ var ft = function(r) {
|
|
|
1631
1631
|
return n;
|
|
1632
1632
|
}, We = function(r) {
|
|
1633
1633
|
return r === Object(r) && !(r instanceof Date) && !Array.isArray(r);
|
|
1634
|
-
},
|
|
1634
|
+
}, Ko = function(r) {
|
|
1635
1635
|
return (r || []).filter(Boolean);
|
|
1636
1636
|
}, Ot = function(r) {
|
|
1637
1637
|
return r[0] === "&";
|
|
1638
|
-
},
|
|
1638
|
+
}, Go = function(r) {
|
|
1639
1639
|
return !Ot(r);
|
|
1640
1640
|
}, Ht = function(r) {
|
|
1641
1641
|
return r.replace(/-(\w)/g, function(i, n) {
|
|
1642
1642
|
return n.toUpperCase();
|
|
1643
1643
|
});
|
|
1644
|
-
},
|
|
1644
|
+
}, Zo = function(r) {
|
|
1645
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) {
|
|
1646
1646
|
var u = n[o], l = Object.prototype.toString.call(r[u]) !== "[object Object]" || // style defs
|
|
1647
1647
|
u[0] === ":" || // pseudo selectors
|
|
@@ -1656,8 +1656,8 @@ var ft = function(r) {
|
|
|
1656
1656
|
(i.indexOf(l) >= 0 || n.indexOf(Ht(l)) >= 0) && (o[l] = r[l]);
|
|
1657
1657
|
}
|
|
1658
1658
|
return o;
|
|
1659
|
-
},
|
|
1660
|
-
for (var n = ft.apply(void 0, [{},
|
|
1659
|
+
}, Qo = 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) {
|
|
1661
1661
|
var u = t[o], l = e(n[u], i);
|
|
1662
1662
|
i.indexOf(u) >= 0 ? (delete n[u], n = ft({}, n, l)) : n[u] = l;
|
|
1663
1663
|
}
|
|
@@ -1684,10 +1684,10 @@ function Ut(e) {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
return e;
|
|
1686
1686
|
}
|
|
1687
|
-
var
|
|
1687
|
+
var Jo = ["animationName"], Dn = function(r) {
|
|
1688
1688
|
var i = r.style, n = r.className;
|
|
1689
1689
|
return Ut(Ut({}, i ? {
|
|
1690
|
-
style:
|
|
1690
|
+
style: Zo(i, Jo)
|
|
1691
1691
|
} : {}), n ? {
|
|
1692
1692
|
className: n
|
|
1693
1693
|
} : {});
|
|
@@ -1705,9 +1705,9 @@ var wn = function(r) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
} else return [];
|
|
1707
1707
|
return r;
|
|
1708
|
-
},
|
|
1708
|
+
}, ei = {}, ti = function(r) {
|
|
1709
1709
|
return function(i, n) {
|
|
1710
|
-
var t = n ||
|
|
1710
|
+
var t = n || ei;
|
|
1711
1711
|
r.memoize = r.memoize || /* @__PURE__ */ new WeakMap();
|
|
1712
1712
|
var o;
|
|
1713
1713
|
r.memoize.has(t) ? o = r.memoize.get(t) : (o = {}, r.memoize.set(t, o));
|
|
@@ -1736,10 +1736,10 @@ function Ae(e) {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
return e;
|
|
1738
1738
|
}
|
|
1739
|
-
var
|
|
1739
|
+
var ni = function(r) {
|
|
1740
1740
|
var i = r && Ne(r)[0];
|
|
1741
1741
|
return i && i.split("__")[0].split("--")[0];
|
|
1742
|
-
},
|
|
1742
|
+
}, ri = function(r, i, n) {
|
|
1743
1743
|
if (r) {
|
|
1744
1744
|
var t = r.split(" ")[0], o = [].concat(he(i.length === 0 ? n.map(function(s) {
|
|
1745
1745
|
return "".concat(t, "--").concat(s.substring(1));
|
|
@@ -1750,17 +1750,17 @@ var ri = function(r) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
};
|
|
1752
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 ||
|
|
1753
|
+
var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Dn, o = i || ni(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r : ti(function(c, f) {
|
|
1754
1754
|
var g = wn(c);
|
|
1755
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 || We(f), "Optional second parameter must be a plain object.");
|
|
1756
|
-
var p = g.filter(Ot), m = g.filter(
|
|
1756
|
+
var p = g.filter(Ot), m = g.filter(Go), h = m.length > 0 ? function(S) {
|
|
1757
1757
|
return In(On(S, m));
|
|
1758
1758
|
} : function(S) {
|
|
1759
1759
|
return [S];
|
|
1760
1760
|
}, E = function() {
|
|
1761
1761
|
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1762
|
-
return h(
|
|
1763
|
-
}, C =
|
|
1762
|
+
return h(Qo(I, p));
|
|
1763
|
+
}, C = ri(o, m, p);
|
|
1764
1764
|
return Nn(Ae(Ae(Ae({}, (r || f) && {
|
|
1765
1765
|
style: ft.apply(void 0, [{}].concat(he(E(f)), he(E(r))))
|
|
1766
1766
|
}), C && {
|
|
@@ -1770,7 +1770,7 @@ function Nn(e) {
|
|
|
1770
1770
|
}), t);
|
|
1771
1771
|
}), u = Ae({}, typeof r == "function" ? r : {
|
|
1772
1772
|
style: r
|
|
1773
|
-
}), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ?
|
|
1773
|
+
}), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ? Ko(l.map(function(c) {
|
|
1774
1774
|
return n[c];
|
|
1775
1775
|
})) : l, a = t(Ae(Ae({}, u), d.length > 0 ? {
|
|
1776
1776
|
className: d.join(" ")
|
|
@@ -1798,7 +1798,7 @@ function je(e) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
return e;
|
|
1800
1800
|
}
|
|
1801
|
-
var
|
|
1801
|
+
var oi = function() {
|
|
1802
1802
|
for (var r = arguments.length, i = new Array(r), n = 0; n < r; n++)
|
|
1803
1803
|
i[n] = arguments[n];
|
|
1804
1804
|
return i.reduce(function(t, o) {
|
|
@@ -1825,7 +1825,7 @@ var ii = function() {
|
|
|
1825
1825
|
* LICENSE file in the root directory of this source tree.
|
|
1826
1826
|
*/
|
|
1827
1827
|
var Vt;
|
|
1828
|
-
function
|
|
1828
|
+
function ii() {
|
|
1829
1829
|
if (Vt) return Q;
|
|
1830
1830
|
Vt = 1;
|
|
1831
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;
|
|
@@ -1900,7 +1900,7 @@ var J = {};
|
|
|
1900
1900
|
* LICENSE file in the root directory of this source tree.
|
|
1901
1901
|
*/
|
|
1902
1902
|
var Wt;
|
|
1903
|
-
function
|
|
1903
|
+
function si() {
|
|
1904
1904
|
return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1905
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;
|
|
1906
1906
|
function S(R) {
|
|
@@ -1984,7 +1984,7 @@ function ai() {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
var Yt;
|
|
1986
1986
|
function jn() {
|
|
1987
|
-
return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? Ue.exports =
|
|
1987
|
+
return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? Ue.exports = ii() : Ue.exports = si()), Ue.exports;
|
|
1988
1988
|
}
|
|
1989
1989
|
/*
|
|
1990
1990
|
object-assign
|
|
@@ -1992,7 +1992,7 @@ object-assign
|
|
|
1992
1992
|
@license MIT
|
|
1993
1993
|
*/
|
|
1994
1994
|
var nt, Xt;
|
|
1995
|
-
function
|
|
1995
|
+
function ai() {
|
|
1996
1996
|
if (Xt) return nt;
|
|
1997
1997
|
Xt = 1;
|
|
1998
1998
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
@@ -2049,7 +2049,7 @@ function Pn() {
|
|
|
2049
2049
|
return Gt || (Gt = 1, ot = Function.call.bind(Object.prototype.hasOwnProperty)), ot;
|
|
2050
2050
|
}
|
|
2051
2051
|
var it, Zt;
|
|
2052
|
-
function
|
|
2052
|
+
function ui() {
|
|
2053
2053
|
if (Zt) return it;
|
|
2054
2054
|
Zt = 1;
|
|
2055
2055
|
var e = function() {
|
|
@@ -2098,10 +2098,10 @@ function li() {
|
|
|
2098
2098
|
}, it = t, it;
|
|
2099
2099
|
}
|
|
2100
2100
|
var st, Qt;
|
|
2101
|
-
function
|
|
2101
|
+
function li() {
|
|
2102
2102
|
if (Qt) return st;
|
|
2103
2103
|
Qt = 1;
|
|
2104
|
-
var e = jn(), r =
|
|
2104
|
+
var e = jn(), r = ai(), i = Rt(), n = Pn(), t = ui(), o = function() {
|
|
2105
2105
|
};
|
|
2106
2106
|
process.env.NODE_ENV !== "production" && (o = function(u) {
|
|
2107
2107
|
var l = "Warning: " + u;
|
|
@@ -2419,7 +2419,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
2419
2419
|
}, st;
|
|
2420
2420
|
}
|
|
2421
2421
|
var at, Jt;
|
|
2422
|
-
function
|
|
2422
|
+
function ci() {
|
|
2423
2423
|
if (Jt) return at;
|
|
2424
2424
|
Jt = 1;
|
|
2425
2425
|
var e = Rt();
|
|
@@ -2467,12 +2467,12 @@ function di() {
|
|
|
2467
2467
|
}, at;
|
|
2468
2468
|
}
|
|
2469
2469
|
if (process.env.NODE_ENV !== "production") {
|
|
2470
|
-
var
|
|
2471
|
-
pt.exports =
|
|
2470
|
+
var di = jn(), fi = !0;
|
|
2471
|
+
pt.exports = li()(di.isElement, fi);
|
|
2472
2472
|
} else
|
|
2473
|
-
pt.exports =
|
|
2474
|
-
var
|
|
2475
|
-
const O = /* @__PURE__ */ mt(
|
|
2473
|
+
pt.exports = ci()();
|
|
2474
|
+
var pi = pt.exports;
|
|
2475
|
+
const O = /* @__PURE__ */ mt(pi);
|
|
2476
2476
|
var Ye = function(r) {
|
|
2477
2477
|
return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
2478
2478
|
}, ge = {
|
|
@@ -2482,7 +2482,7 @@ var Ye = function(r) {
|
|
|
2482
2482
|
Re(i === "id" || i === "display", 'Second arg must be either "id" or "display", got: "'.concat(i, '"'));
|
|
2483
2483
|
var n = r.indexOf(ge.display), t = r.indexOf(ge.id);
|
|
2484
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;
|
|
2485
|
-
},
|
|
2485
|
+
}, gi = function(r) {
|
|
2486
2486
|
var i = /^\/(.+)\/(\w+)?$/;
|
|
2487
2487
|
return new RegExp(r.map(function(n) {
|
|
2488
2488
|
var t = i.exec(n.toString()), o = Ze(t, 3), s = o[1], u = o[2];
|
|
@@ -2491,9 +2491,9 @@ var Ye = function(r) {
|
|
|
2491
2491
|
}, Fn = function(r) {
|
|
2492
2492
|
var i = 0;
|
|
2493
2493
|
return r.indexOf("__id__") >= 0 && i++, r.indexOf("__display__") >= 0 && i++, i;
|
|
2494
|
-
},
|
|
2494
|
+
}, hi = function() {
|
|
2495
2495
|
}, $e = function(r, i, n) {
|
|
2496
|
-
for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
2496
|
+
for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : hi, o = gi(i.map(function(y) {
|
|
2497
2497
|
return y.regex;
|
|
2498
2498
|
})), s = 2, u = i.map(function(y) {
|
|
2499
2499
|
var A = y.markup, D = s;
|
|
@@ -2524,7 +2524,7 @@ var Ye = function(r) {
|
|
|
2524
2524
|
return $e(r, i, u, s), o === void 0 ? r.length : o;
|
|
2525
2525
|
}, Fe = function(r, i, n, t) {
|
|
2526
2526
|
return r.substring(0, i) + t + r.substring(n);
|
|
2527
|
-
},
|
|
2527
|
+
}, vi = function(r, i, n, t) {
|
|
2528
2528
|
var o = n.selectionStartBefore, s = n.selectionEndBefore, u = n.selectionEndAfter, l = Ce(r, t), d = l.length - i.length;
|
|
2529
2529
|
o === "undefined" && (o = u + d), s === "undefined" && (s = o), o === s && s === u && l.length === i.length && (o = o - 1);
|
|
2530
2530
|
var a = i.slice(o, u), c = Math.min(o, u), f = s;
|
|
@@ -2563,10 +2563,10 @@ var Ye = function(r) {
|
|
|
2563
2563
|
var t = n.results;
|
|
2564
2564
|
return i + t.length;
|
|
2565
2565
|
}, 0);
|
|
2566
|
-
},
|
|
2566
|
+
}, mi = function(r, i) {
|
|
2567
2567
|
var n = Pe(r, i), t = n[n.length - 1];
|
|
2568
2568
|
return t ? t.plainTextIndex + t.display.length : 0;
|
|
2569
|
-
},
|
|
2569
|
+
}, Ei = function(r) {
|
|
2570
2570
|
var i = Ye(r), n = r[r.indexOf(ge.display) + ge.display.length], t = r[r.indexOf(ge.id) + ge.id.length];
|
|
2571
2571
|
return new RegExp(i.replace(ge.display, "([^".concat(Ye(n || ""), "]+?)")).replace(ge.id, "([^".concat(Ye(t || ""), "]+?)")));
|
|
2572
2572
|
}, Ee = function(r) {
|
|
@@ -2574,18 +2574,18 @@ var Ye = function(r) {
|
|
|
2574
2574
|
var n = i.props, t = n.markup, o = n.regex, s = n.displayTransform;
|
|
2575
2575
|
return {
|
|
2576
2576
|
markup: t,
|
|
2577
|
-
regex: o ?
|
|
2577
|
+
regex: o ? yi(o, t) : Ei(t),
|
|
2578
2578
|
displayTransform: s || function(u, l) {
|
|
2579
2579
|
return l || u;
|
|
2580
2580
|
}
|
|
2581
2581
|
};
|
|
2582
2582
|
});
|
|
2583
|
-
},
|
|
2583
|
+
}, yi = function(r, i) {
|
|
2584
2584
|
var n = new RegExp(r.toString() + "|").exec("").length - 1, t = Fn(i);
|
|
2585
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;
|
|
2586
|
-
},
|
|
2586
|
+
}, bi = function(r, i, n) {
|
|
2587
2587
|
return r.replace(ge.id, i).replace(ge.display, n);
|
|
2588
|
-
},
|
|
2588
|
+
}, Ci = [{
|
|
2589
2589
|
base: "A",
|
|
2590
2590
|
letters: /(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\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
|
|
2591
2591
|
}, {
|
|
@@ -2855,29 +2855,29 @@ var Ye = function(r) {
|
|
|
2855
2855
|
}, {
|
|
2856
2856
|
base: "z",
|
|
2857
2857
|
letters: /(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g
|
|
2858
|
-
}],
|
|
2858
|
+
}], Si = function(r) {
|
|
2859
2859
|
var i = r;
|
|
2860
|
-
return
|
|
2860
|
+
return Ci.forEach(function(n) {
|
|
2861
2861
|
i = i.replace(n.letters, n.base);
|
|
2862
2862
|
}), i;
|
|
2863
2863
|
}, nn = function(r) {
|
|
2864
|
-
return
|
|
2864
|
+
return Si(r).toLowerCase();
|
|
2865
2865
|
}, Ln = function(r, i, n) {
|
|
2866
2866
|
return n ? nn(r).indexOf(nn(i)) : r.toLowerCase().indexOf(i.toLowerCase());
|
|
2867
|
-
},
|
|
2867
|
+
}, _i = function() {
|
|
2868
2868
|
return !!document.documentMode;
|
|
2869
2869
|
}, gt = function(r) {
|
|
2870
2870
|
return typeof r == "number";
|
|
2871
|
-
},
|
|
2871
|
+
}, Ai = function(r) {
|
|
2872
2872
|
return r === Object(r) ? Object.keys(r) : [];
|
|
2873
|
-
},
|
|
2873
|
+
}, Ti = function(r) {
|
|
2874
2874
|
for (var i, n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
2875
2875
|
t[o - 1] = arguments[o];
|
|
2876
2876
|
var s = (i = []).concat.apply(i, t);
|
|
2877
2877
|
return Object.keys(r).reduce(function(u, l) {
|
|
2878
2878
|
return r.hasOwnProperty(l) && !s.includes(l) && r[l] !== void 0 && (u[l] = r[l]), u;
|
|
2879
2879
|
}, {});
|
|
2880
|
-
},
|
|
2880
|
+
}, Ii = ["style", "className", "classNames"];
|
|
2881
2881
|
function rn(e, r) {
|
|
2882
2882
|
var i = Object.keys(e);
|
|
2883
2883
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2902,7 +2902,7 @@ function on(e) {
|
|
|
2902
2902
|
function et(e, r) {
|
|
2903
2903
|
var i = function(t) {
|
|
2904
2904
|
var o = function(l) {
|
|
2905
|
-
var d = l.style, a = l.className, c = l.classNames, f =
|
|
2905
|
+
var d = l.style, a = l.className, c = l.classNames, f = ko(l, Ii), g = r ? r(f) : void 0, p = Dt(e, {
|
|
2906
2906
|
style: d,
|
|
2907
2907
|
className: a,
|
|
2908
2908
|
classNames: c
|
|
@@ -2919,7 +2919,7 @@ function et(e, r) {
|
|
|
2919
2919
|
};
|
|
2920
2920
|
return i;
|
|
2921
2921
|
}
|
|
2922
|
-
var
|
|
2922
|
+
var xi = function(r, i) {
|
|
2923
2923
|
return r.hasOwnProperty(i) ? r[i]++ : r[i] = 0, i + "_" + r[i];
|
|
2924
2924
|
};
|
|
2925
2925
|
function Bn(e) {
|
|
@@ -2953,7 +2953,7 @@ function Bn(e) {
|
|
|
2953
2953
|
A.push(T(F, D));
|
|
2954
2954
|
D++;
|
|
2955
2955
|
}, w = function(F, V, N, j, $, G, _) {
|
|
2956
|
-
var x =
|
|
2956
|
+
var x = xi(y, j);
|
|
2957
2957
|
A.push(P(j, $, G, x));
|
|
2958
2958
|
}, T = function(F, V) {
|
|
2959
2959
|
return /* @__PURE__ */ Z.createElement("span", ue({}, l("substring"), {
|
|
@@ -2986,7 +2986,7 @@ Bn.propTypes = {
|
|
|
2986
2986
|
})]),
|
|
2987
2987
|
children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
|
|
2988
2988
|
};
|
|
2989
|
-
var
|
|
2989
|
+
var Oi = et({
|
|
2990
2990
|
position: "relative",
|
|
2991
2991
|
boxSizing: "border-box",
|
|
2992
2992
|
width: "100%",
|
|
@@ -3007,7 +3007,7 @@ var Di = et({
|
|
|
3007
3007
|
return {
|
|
3008
3008
|
"&singleLine": e.singleLine
|
|
3009
3009
|
};
|
|
3010
|
-
}),
|
|
3010
|
+
}), Di = Oi(Bn);
|
|
3011
3011
|
function $n(e) {
|
|
3012
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;
|
|
3013
3013
|
e.className, e.classNames;
|
|
@@ -3044,22 +3044,22 @@ $n.propTypes = {
|
|
|
3044
3044
|
renderSuggestion: O.func,
|
|
3045
3045
|
focused: O.bool
|
|
3046
3046
|
};
|
|
3047
|
-
var
|
|
3047
|
+
var Ri = et({
|
|
3048
3048
|
cursor: "pointer"
|
|
3049
3049
|
}, function(e) {
|
|
3050
3050
|
return {
|
|
3051
3051
|
"&focused": e.focused
|
|
3052
3052
|
};
|
|
3053
|
-
}),
|
|
3054
|
-
function
|
|
3055
|
-
var r = e.style, i = e.className, n = e.classNames, t = Dt(
|
|
3053
|
+
}), wi = Ri($n);
|
|
3054
|
+
function Ni(e) {
|
|
3055
|
+
var r = e.style, i = e.className, n = e.classNames, t = Dt(ji, {
|
|
3056
3056
|
style: r,
|
|
3057
3057
|
className: i,
|
|
3058
3058
|
classNames: n
|
|
3059
3059
|
}), o = t("spinner");
|
|
3060
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"]))));
|
|
3061
3061
|
}
|
|
3062
|
-
var
|
|
3062
|
+
var ji = {};
|
|
3063
3063
|
function Hn(e) {
|
|
3064
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() {
|
|
3065
3065
|
return null;
|
|
@@ -3085,7 +3085,7 @@ function Hn(e) {
|
|
|
3085
3085
|
return S ? S(j) : j;
|
|
3086
3086
|
}, P = function(j, $, G) {
|
|
3087
3087
|
var _ = G === o, x = $.childIndex, L = $.query, B = De.toArray(E)[x].props.renderSuggestion;
|
|
3088
|
-
return /* @__PURE__ */ Z.createElement(
|
|
3088
|
+
return /* @__PURE__ */ Z.createElement(wi, {
|
|
3089
3089
|
style: C("item"),
|
|
3090
3090
|
key: "".concat(x, "-").concat(V(j)),
|
|
3091
3091
|
id: Mn(r, G),
|
|
@@ -3104,7 +3104,7 @@ function Hn(e) {
|
|
|
3104
3104
|
});
|
|
3105
3105
|
}, q = function() {
|
|
3106
3106
|
if (c)
|
|
3107
|
-
return /* @__PURE__ */ Z.createElement(
|
|
3107
|
+
return /* @__PURE__ */ Z.createElement(Ni, {
|
|
3108
3108
|
style: C("loadingIndicator")
|
|
3109
3109
|
});
|
|
3110
3110
|
}, W = function(j, $) {
|
|
@@ -3114,7 +3114,7 @@ function Hn(e) {
|
|
|
3114
3114
|
}, V = function(j) {
|
|
3115
3115
|
return typeof j == "string" ? j : j.id;
|
|
3116
3116
|
};
|
|
3117
|
-
return f ? /* @__PURE__ */ Z.createElement("div", ue({},
|
|
3117
|
+
return f ? /* @__PURE__ */ Z.createElement("div", ue({}, oi({
|
|
3118
3118
|
position: s || "absolute",
|
|
3119
3119
|
left: u,
|
|
3120
3120
|
right: l,
|
|
@@ -3143,7 +3143,7 @@ Hn.propTypes = {
|
|
|
3143
3143
|
current: typeof Element > "u" ? O.any : O.instanceOf(Element)
|
|
3144
3144
|
})])
|
|
3145
3145
|
};
|
|
3146
|
-
var
|
|
3146
|
+
var Pi = et({
|
|
3147
3147
|
zIndex: 1,
|
|
3148
3148
|
backgroundColor: "white",
|
|
3149
3149
|
marginTop: 14,
|
|
@@ -3153,7 +3153,7 @@ var Fi = et({
|
|
|
3153
3153
|
padding: 0,
|
|
3154
3154
|
listStyleType: "none"
|
|
3155
3155
|
}
|
|
3156
|
-
}),
|
|
3156
|
+
}), Fi = Pi(Hn);
|
|
3157
3157
|
function sn(e, r) {
|
|
3158
3158
|
var i = Object.keys(e);
|
|
3159
3159
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3175,8 +3175,8 @@ function de(e) {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
return e;
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3179
|
-
var r =
|
|
3178
|
+
function Mi(e) {
|
|
3179
|
+
var r = Li();
|
|
3180
3180
|
return function() {
|
|
3181
3181
|
var n = Ge(e), t;
|
|
3182
3182
|
if (r) {
|
|
@@ -3184,10 +3184,10 @@ function Li(e) {
|
|
|
3184
3184
|
t = Reflect.construct(n, arguments, o);
|
|
3185
3185
|
} else
|
|
3186
3186
|
t = n.apply(this, arguments);
|
|
3187
|
-
return
|
|
3187
|
+
return Po(this, t);
|
|
3188
3188
|
};
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function Li() {
|
|
3191
3191
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
3192
3192
|
if (typeof Proxy == "function") return !0;
|
|
3193
3193
|
try {
|
|
@@ -3197,13 +3197,13 @@ function Bi() {
|
|
|
3197
3197
|
return !1;
|
|
3198
3198
|
}
|
|
3199
3199
|
}
|
|
3200
|
-
var
|
|
3200
|
+
var Bi = function(r) {
|
|
3201
3201
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3202
3202
|
if (r instanceof RegExp)
|
|
3203
3203
|
return r;
|
|
3204
3204
|
var n = i.allowSpaceInQuery, t = Ye(r);
|
|
3205
3205
|
return new RegExp("(?:^|\\s)(".concat(t, "([^").concat(n ? "" : "\\s").concat(t, "]*))$"));
|
|
3206
|
-
},
|
|
3206
|
+
}, $i = function(r, i) {
|
|
3207
3207
|
return r instanceof Array ? function(n, t) {
|
|
3208
3208
|
for (var o = [], s = 0, u = r.length; s < u; ++s) {
|
|
3209
3209
|
var l = r[s].display || r[s].id;
|
|
@@ -3240,18 +3240,18 @@ var $i = function(r) {
|
|
|
3240
3240
|
})]),
|
|
3241
3241
|
children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
|
|
3242
3242
|
}, wt = /* @__PURE__ */ function(e) {
|
|
3243
|
-
|
|
3244
|
-
var r =
|
|
3243
|
+
jo(i, e);
|
|
3244
|
+
var r = Mi(i);
|
|
3245
3245
|
function i(n) {
|
|
3246
3246
|
var t;
|
|
3247
|
-
return
|
|
3247
|
+
return Ro(this, i), t = r.call(this, n), H(k(t), "setContainerElement", function(o) {
|
|
3248
3248
|
t.containerElement = o;
|
|
3249
3249
|
}), H(k(t), "getInputProps", function() {
|
|
3250
|
-
var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d =
|
|
3250
|
+
var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d = Ti(
|
|
3251
3251
|
t.props,
|
|
3252
3252
|
["style", "classNames", "className"],
|
|
3253
3253
|
// substyle props
|
|
3254
|
-
|
|
3254
|
+
Ai(kn)
|
|
3255
3255
|
);
|
|
3256
3256
|
return de(de(de(de({}, d), l("input")), {}, {
|
|
3257
3257
|
value: t.getPlainText(),
|
|
@@ -3292,7 +3292,7 @@ var $i = function(r) {
|
|
|
3292
3292
|
}), H(k(t), "renderSuggestionsOverlay", function() {
|
|
3293
3293
|
if (!gt(t.state.selectionStart))
|
|
3294
3294
|
return null;
|
|
3295
|
-
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ Z.createElement(
|
|
3295
|
+
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ Z.createElement(Fi, {
|
|
3296
3296
|
id: t.uuidSuggestionsOverlay,
|
|
3297
3297
|
style: t.props.style("suggestions"),
|
|
3298
3298
|
position: s,
|
|
@@ -3312,10 +3312,10 @@ var $i = function(r) {
|
|
|
3312
3312
|
ignoreAccents: t.props.ignoreAccents,
|
|
3313
3313
|
a11ySuggestionsListLabel: t.props.a11ySuggestionsListLabel
|
|
3314
3314
|
}, t.props.children);
|
|
3315
|
-
return t.props.suggestionsPortalHost ? /* @__PURE__ */
|
|
3315
|
+
return t.props.suggestionsPortalHost ? /* @__PURE__ */ Ar.createPortal(a, t.props.suggestionsPortalHost) : a;
|
|
3316
3316
|
}), H(k(t), "renderHighlighter", function() {
|
|
3317
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;
|
|
3318
|
-
return /* @__PURE__ */ Z.createElement(
|
|
3318
|
+
return /* @__PURE__ */ Z.createElement(Di, {
|
|
3319
3319
|
containerRef: t.setHighlighterElement,
|
|
3320
3320
|
style: f("highlighter"),
|
|
3321
3321
|
value: c,
|
|
@@ -3344,7 +3344,7 @@ var $i = function(r) {
|
|
|
3344
3344
|
return (a = t.props.valueLink).requestChange.apply(a, [o.target.value].concat(u));
|
|
3345
3345
|
}
|
|
3346
3346
|
}), H(k(t), "handleChange", function(o) {
|
|
3347
|
-
if (ze = !1,
|
|
3347
|
+
if (ze = !1, _i()) {
|
|
3348
3348
|
var s = document.activeElement && document.activeElement.contentDocument || document;
|
|
3349
3349
|
if (s.activeElement !== o.target)
|
|
3350
3350
|
return;
|
|
@@ -3353,7 +3353,7 @@ var $i = function(r) {
|
|
|
3353
3353
|
a == null && (a = o.target.selectionStart);
|
|
3354
3354
|
var c = t.state.selectionEnd;
|
|
3355
3355
|
c == null && (c = o.target.selectionEnd);
|
|
3356
|
-
var f =
|
|
3356
|
+
var f = vi(u, d, {
|
|
3357
3357
|
selectionStartBefore: a,
|
|
3358
3358
|
selectionEndBefore: c,
|
|
3359
3359
|
selectionEndAfter: o.target.selectionEnd
|
|
@@ -3492,10 +3492,10 @@ var $i = function(r) {
|
|
|
3492
3492
|
});
|
|
3493
3493
|
var u = t.props.value || "", l = t.props.children, d = Ee(l), a = oe(u, d, s, "NULL");
|
|
3494
3494
|
if (a !== null) {
|
|
3495
|
-
var c =
|
|
3495
|
+
var c = mi(u.substring(0, a), d), f = o.substring(c, s);
|
|
3496
3496
|
Z.Children.forEach(l, function(g, p) {
|
|
3497
3497
|
if (g) {
|
|
3498
|
-
var m =
|
|
3498
|
+
var m = Bi(g.props.trigger, t.props), h = f.match(m);
|
|
3499
3499
|
if (h) {
|
|
3500
3500
|
var E = c + f.indexOf(h[1], h.index);
|
|
3501
3501
|
t.queryData(h[2], p, E, E + h[1].length, o);
|
|
@@ -3509,7 +3509,7 @@ var $i = function(r) {
|
|
|
3509
3509
|
focusIndex: 0
|
|
3510
3510
|
});
|
|
3511
3511
|
}), H(k(t), "queryData", function(o, s, u, l, d) {
|
|
3512
|
-
var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p =
|
|
3512
|
+
var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p = $i(g.props.data, f), m = p(o, t.updateSuggestions.bind(null, t._queryId, s, o, u, l, d));
|
|
3513
3513
|
m instanceof Array && t.updateSuggestions(t._queryId, s, o, u, l, d, m);
|
|
3514
3514
|
}), H(k(t), "updateSuggestions", function(o, s, u, l, d, a, c) {
|
|
3515
3515
|
if (o === t._queryId) {
|
|
@@ -3530,7 +3530,7 @@ var $i = function(r) {
|
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
3532
|
}), H(k(t), "addMention", function(o, s) {
|
|
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 =
|
|
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 = bi(E, u, l);
|
|
3534
3534
|
S && (D += " ");
|
|
3535
3535
|
var b = Fe(g, y, A, D);
|
|
3536
3536
|
t.inputElement.focus();
|
|
@@ -3565,7 +3565,7 @@ var $i = function(r) {
|
|
|
3565
3565
|
setSelectionAfterHandlePaste: !1
|
|
3566
3566
|
}, t;
|
|
3567
3567
|
}
|
|
3568
|
-
return
|
|
3568
|
+
return No(i, [{
|
|
3569
3569
|
key: "componentDidMount",
|
|
3570
3570
|
value: function() {
|
|
3571
3571
|
document.addEventListener("copy", this.handleCopy), document.addEventListener("cut", this.handleCut), document.addEventListener("paste", this.handlePaste), this.updateSuggestionsPosition();
|
|
@@ -3660,7 +3660,7 @@ H(wt, "defaultProps", {
|
|
|
3660
3660
|
var ut = function(r, i) {
|
|
3661
3661
|
var n = parseFloat(window.getComputedStyle(r, null).getPropertyValue(i));
|
|
3662
3662
|
return isFinite(n) ? n : 0;
|
|
3663
|
-
},
|
|
3663
|
+
}, Hi = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent), ki = et({
|
|
3664
3664
|
position: "relative",
|
|
3665
3665
|
overflowY: "visible",
|
|
3666
3666
|
input: {
|
|
@@ -3682,7 +3682,7 @@ var ut = function(r, i) {
|
|
|
3682
3682
|
bottom: 0,
|
|
3683
3683
|
overflow: "hidden",
|
|
3684
3684
|
resize: "none"
|
|
3685
|
-
},
|
|
3685
|
+
}, Hi ? {
|
|
3686
3686
|
marginTop: 1,
|
|
3687
3687
|
marginLeft: -3
|
|
3688
3688
|
} : null)
|
|
@@ -3693,10 +3693,10 @@ var ut = function(r, i) {
|
|
|
3693
3693
|
"&singleLine": r,
|
|
3694
3694
|
"&multiLine": !r
|
|
3695
3695
|
};
|
|
3696
|
-
}),
|
|
3696
|
+
}), Ui = ki(wt), qi = {
|
|
3697
3697
|
fontWeight: "inherit"
|
|
3698
3698
|
}, Nt = function(r) {
|
|
3699
|
-
var i = r.display, n = r.style, t = r.className, o = r.classNames, s = Dt(
|
|
3699
|
+
var i = r.display, n = r.style, t = r.className, o = r.classNames, s = Dt(qi, {
|
|
3700
3700
|
style: n,
|
|
3701
3701
|
className: t,
|
|
3702
3702
|
classNames: o
|
|
@@ -3743,7 +3743,7 @@ Nt.defaultProps = {
|
|
|
3743
3743
|
isLoading: !1,
|
|
3744
3744
|
appendSpaceOnAdd: !1
|
|
3745
3745
|
};
|
|
3746
|
-
const
|
|
3746
|
+
const zi = {
|
|
3747
3747
|
"&multiLine": {
|
|
3748
3748
|
minHeight: "40px"
|
|
3749
3749
|
},
|
|
@@ -3773,7 +3773,7 @@ const Vi = {
|
|
|
3773
3773
|
}
|
|
3774
3774
|
}
|
|
3775
3775
|
}
|
|
3776
|
-
},
|
|
3776
|
+
}, Vi = ({
|
|
3777
3777
|
value: e,
|
|
3778
3778
|
setValue: r,
|
|
3779
3779
|
users: i,
|
|
@@ -3791,13 +3791,13 @@ const Vi = {
|
|
|
3791
3791
|
r(d.target.value);
|
|
3792
3792
|
};
|
|
3793
3793
|
return /* @__PURE__ */ v.jsx(
|
|
3794
|
-
|
|
3794
|
+
Ui,
|
|
3795
3795
|
{
|
|
3796
3796
|
autoFocus: !0,
|
|
3797
3797
|
value: e,
|
|
3798
3798
|
onChange: l,
|
|
3799
3799
|
style: {
|
|
3800
|
-
...
|
|
3800
|
+
...zi,
|
|
3801
3801
|
minHeight: "40px",
|
|
3802
3802
|
marginBottom: "10px"
|
|
3803
3803
|
},
|
|
@@ -3829,7 +3829,7 @@ const Vi = {
|
|
|
3829
3829
|
}) => /* @__PURE__ */ v.jsxs("div", { className: me.conversationInputForm, children: [
|
|
3830
3830
|
t ? /* @__PURE__ */ v.jsx(Tn, { user: t }) : null,
|
|
3831
3831
|
/* @__PURE__ */ v.jsx(
|
|
3832
|
-
|
|
3832
|
+
Vi,
|
|
3833
3833
|
{
|
|
3834
3834
|
value: e,
|
|
3835
3835
|
setValue: r,
|
|
@@ -3838,7 +3838,7 @@ const Vi = {
|
|
|
3838
3838
|
onEnterKeypress: s
|
|
3839
3839
|
}
|
|
3840
3840
|
),
|
|
3841
|
-
/* @__PURE__ */ v.jsx(fn, { loading: i, color: "primary", children: /* @__PURE__ */ v.jsx(
|
|
3841
|
+
/* @__PURE__ */ v.jsx(fn, { loading: i, color: "primary", children: /* @__PURE__ */ v.jsx(pr, {}) })
|
|
3842
3842
|
] }), qn = ({
|
|
3843
3843
|
meta: { highlight: e, filePath: r, field: i, column: n }
|
|
3844
3844
|
}) => {
|
|
@@ -3846,7 +3846,7 @@ const Vi = {
|
|
|
3846
3846
|
return null;
|
|
3847
3847
|
const t = n ? `${r} (${n})` : r;
|
|
3848
3848
|
return /* @__PURE__ */ v.jsx("div", { className: me.highlightText, children: /* @__PURE__ */ v.jsx(
|
|
3849
|
-
|
|
3849
|
+
tr,
|
|
3850
3850
|
{
|
|
3851
3851
|
code: e,
|
|
3852
3852
|
language: i ? "markdown" : "sql",
|
|
@@ -3855,7 +3855,7 @@ const Vi = {
|
|
|
3855
3855
|
theme: "light"
|
|
3856
3856
|
}
|
|
3857
3857
|
) });
|
|
3858
|
-
},
|
|
3858
|
+
}, Wi = () => {
|
|
3859
3859
|
const e = ne((a) => a.users), r = ne(
|
|
3860
3860
|
(a) => a.newConversation
|
|
3861
3861
|
), i = ne(
|
|
@@ -3867,7 +3867,7 @@ const Vi = {
|
|
|
3867
3867
|
s(!0);
|
|
3868
3868
|
try {
|
|
3869
3869
|
console.log("saving conversation", r, u);
|
|
3870
|
-
const c = await
|
|
3870
|
+
const c = await oo(
|
|
3871
3871
|
n,
|
|
3872
3872
|
{
|
|
3873
3873
|
...r,
|
|
@@ -3908,12 +3908,12 @@ const Vi = {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
)
|
|
3910
3910
|
] }) }) });
|
|
3911
|
-
},
|
|
3911
|
+
}, Yi = ({
|
|
3912
3912
|
conversationGroupId: e,
|
|
3913
3913
|
shareId: r
|
|
3914
3914
|
}) => {
|
|
3915
3915
|
const { onResolve: i, source: n } = Be(), [t, o] = re(!1), s = async () => {
|
|
3916
|
-
e && (o(!0), await
|
|
3916
|
+
e && (o(!0), await uo(r, e, n), i(), o(!1));
|
|
3917
3917
|
};
|
|
3918
3918
|
return e ? /* @__PURE__ */ v.jsx(
|
|
3919
3919
|
Ie,
|
|
@@ -3922,7 +3922,7 @@ const Vi = {
|
|
|
3922
3922
|
className: me.resolveButton,
|
|
3923
3923
|
title: "Resolve conversation",
|
|
3924
3924
|
onClick: s,
|
|
3925
|
-
children: /* @__PURE__ */ v.jsx(
|
|
3925
|
+
children: /* @__PURE__ */ v.jsx(gr, {})
|
|
3926
3926
|
}
|
|
3927
3927
|
) : null;
|
|
3928
3928
|
}, zn = ({
|
|
@@ -3931,7 +3931,7 @@ const Vi = {
|
|
|
3931
3931
|
showResolveButton: i,
|
|
3932
3932
|
conversationGroupId: n,
|
|
3933
3933
|
shareId: t
|
|
3934
|
-
}) => /* @__PURE__ */ v.jsxs(
|
|
3934
|
+
}) => /* @__PURE__ */ v.jsxs(Tr, { className: "d-flex align-items-center justify-content-between mb-0", children: [
|
|
3935
3935
|
/* @__PURE__ */ v.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3936
3936
|
/* @__PURE__ */ v.jsx(Tn, { user: e }),
|
|
3937
3937
|
/* @__PURE__ */ v.jsxs("h4", { children: [
|
|
@@ -3941,8 +3941,8 @@ const Vi = {
|
|
|
3941
3941
|
] }),
|
|
3942
3942
|
/* @__PURE__ */ v.jsx("span", { children: lt(r).format("HH:mm, DD MMM YY") })
|
|
3943
3943
|
] }),
|
|
3944
|
-
i ? /* @__PURE__ */ v.jsx(
|
|
3945
|
-
] }),
|
|
3944
|
+
i ? /* @__PURE__ */ v.jsx(Yi, { conversationGroupId: n, shareId: t }) : null
|
|
3945
|
+
] }), Xi = ({ conversation: e, shareId: r }) => {
|
|
3946
3946
|
const { users: i } = Be(), n = fe(() => {
|
|
3947
3947
|
if (e != null && e.user_id)
|
|
3948
3948
|
return i[e.user_id];
|
|
@@ -3951,14 +3951,14 @@ const Vi = {
|
|
|
3951
3951
|
/* @__PURE__ */ v.jsx(zn, { user: n, timestamp: e.timestamp, shareId: r }),
|
|
3952
3952
|
/* @__PURE__ */ v.jsx(mn, { children: /* @__PURE__ */ v.jsx("p", { children: e.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }) })
|
|
3953
3953
|
] });
|
|
3954
|
-
},
|
|
3954
|
+
}, Ki = ({ conversationGroupId: e, shareId: r }) => {
|
|
3955
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) => {
|
|
3956
3956
|
if (f == null || f.stopPropagation(), f == null || f.preventDefault(), !(!r || !e)) {
|
|
3957
3957
|
a(!0), console.log("saving reply", r, e, {
|
|
3958
3958
|
message: u
|
|
3959
3959
|
});
|
|
3960
3960
|
try {
|
|
3961
|
-
await
|
|
3961
|
+
await io(
|
|
3962
3962
|
r,
|
|
3963
3963
|
e,
|
|
3964
3964
|
{
|
|
@@ -3983,7 +3983,7 @@ const Vi = {
|
|
|
3983
3983
|
onEnterKeypress: c
|
|
3984
3984
|
}
|
|
3985
3985
|
) }) });
|
|
3986
|
-
},
|
|
3986
|
+
}, Gi = ({ conversationGroup: e, shareId: r, onSelect: i }) => {
|
|
3987
3987
|
var f;
|
|
3988
3988
|
const { users: n } = Be(), t = fe(() => {
|
|
3989
3989
|
if (e.owner)
|
|
@@ -4017,9 +4017,9 @@ const Vi = {
|
|
|
4017
4017
|
/* @__PURE__ */ v.jsx(qn, { meta: e.meta }),
|
|
4018
4018
|
/* @__PURE__ */ v.jsx("p", { children: d.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }),
|
|
4019
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(
|
|
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,
|
|
4021
4021
|
s ? /* @__PURE__ */ v.jsx(
|
|
4022
|
-
|
|
4022
|
+
Ki,
|
|
4023
4023
|
{
|
|
4024
4024
|
conversationGroupId: e.conversation_group_id,
|
|
4025
4025
|
shareId: r
|
|
@@ -4037,7 +4037,7 @@ const Vi = {
|
|
|
4037
4037
|
onResolve: () => null,
|
|
4038
4038
|
onReplyAdd: () => null,
|
|
4039
4039
|
source: yt.DBT_DOCS
|
|
4040
|
-
}),
|
|
4040
|
+
}), Zi = ({
|
|
4041
4041
|
currentUser: e,
|
|
4042
4042
|
conversationGroup: r,
|
|
4043
4043
|
shareId: i,
|
|
@@ -4073,14 +4073,14 @@ const Vi = {
|
|
|
4073
4073
|
]
|
|
4074
4074
|
);
|
|
4075
4075
|
return !r || !i ? null : /* @__PURE__ */ v.jsx(Vn.Provider, { value: d, children: /* @__PURE__ */ v.jsx(
|
|
4076
|
-
|
|
4076
|
+
Gi,
|
|
4077
4077
|
{
|
|
4078
4078
|
conversationGroup: r,
|
|
4079
4079
|
shareId: i,
|
|
4080
4080
|
onSelect: n
|
|
4081
4081
|
}
|
|
4082
4082
|
) });
|
|
4083
|
-
}, Be = () => be(Vn),
|
|
4083
|
+
}, Be = () => be(Vn), Qi = () => {
|
|
4084
4084
|
const e = ne((c) => c.source), r = ne(
|
|
4085
4085
|
(c) => c.conversations
|
|
4086
4086
|
), i = ne(
|
|
@@ -4091,14 +4091,14 @@ const Vi = {
|
|
|
4091
4091
|
if (!o || !n)
|
|
4092
4092
|
return null;
|
|
4093
4093
|
const u = t[o], l = (c) => {
|
|
4094
|
-
s(
|
|
4094
|
+
s(Hr({ shareId: n, conversationGroupId: c }));
|
|
4095
4095
|
}, d = (c) => {
|
|
4096
4096
|
s(At(c));
|
|
4097
4097
|
}, a = (c) => {
|
|
4098
4098
|
console.log("onReplyAdd", c), s(Sn());
|
|
4099
4099
|
};
|
|
4100
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(
|
|
4101
|
-
|
|
4101
|
+
Zi,
|
|
4102
4102
|
{
|
|
4103
4103
|
conversationGroup: c,
|
|
4104
4104
|
shareId: n,
|
|
@@ -4112,7 +4112,7 @@ const Vi = {
|
|
|
4112
4112
|
},
|
|
4113
4113
|
c.conversation_group_id
|
|
4114
4114
|
)) });
|
|
4115
|
-
},
|
|
4115
|
+
}, Ji = () => {
|
|
4116
4116
|
const e = ne((s) => s.isRightPanelOpen), r = ne(
|
|
4117
4117
|
(s) => s.selectedConversationId
|
|
4118
4118
|
), i = ne((s) => s.newConversation), n = ce(), t = () => {
|
|
@@ -4125,15 +4125,15 @@ const Vi = {
|
|
|
4125
4125
|
variant: "ghost",
|
|
4126
4126
|
onClick: t,
|
|
4127
4127
|
className: me.conversationRightPanelCloseButton,
|
|
4128
|
-
children: /* @__PURE__ */ v.jsx(
|
|
4128
|
+
children: /* @__PURE__ */ v.jsx(hr, {})
|
|
4129
4129
|
}
|
|
4130
4130
|
),
|
|
4131
4131
|
/* @__PURE__ */ v.jsxs("div", { className: me.conversationRightPanel, children: [
|
|
4132
4132
|
/* @__PURE__ */ v.jsx("h3", { children: "Comments" }),
|
|
4133
|
-
i ? /* @__PURE__ */ v.jsx(
|
|
4133
|
+
i ? /* @__PURE__ */ v.jsx(Wi, {}) : /* @__PURE__ */ v.jsx(Qi, {})
|
|
4134
4134
|
] })
|
|
4135
4135
|
] }) : null;
|
|
4136
|
-
},
|
|
4136
|
+
}, es = 10, ts = () => {
|
|
4137
4137
|
const e = Se(), r = ne(
|
|
4138
4138
|
(s) => s.shareId
|
|
4139
4139
|
), i = ne(
|
|
@@ -4142,10 +4142,10 @@ const Vi = {
|
|
|
4142
4142
|
(s) => Object.keys(s.conversations || {})
|
|
4143
4143
|
), o = we(
|
|
4144
4144
|
(s) => {
|
|
4145
|
-
clearTimeout(e.current),
|
|
4146
|
-
console.log("useConversations", u), n(
|
|
4145
|
+
clearTimeout(e.current), so(s).then((u) => {
|
|
4146
|
+
console.log("useConversations", u), n($r(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
|
|
4147
4147
|
o(s);
|
|
4148
|
-
},
|
|
4148
|
+
}, es * 1e3);
|
|
4149
4149
|
}).catch((u) => console.error("error while fetching conversations list", u)).finally(() => {
|
|
4150
4150
|
n(Bt(ae.INITIALIZED));
|
|
4151
4151
|
});
|
|
@@ -4155,24 +4155,24 @@ const Vi = {
|
|
|
4155
4155
|
return le(() => {
|
|
4156
4156
|
i !== ae.UNINITIALIZED || !r || (n(Bt(ae.LOADING)), o(r));
|
|
4157
4157
|
}, [n, i, t, r, o]), { isLoading: i === ae.LOADING };
|
|
4158
|
-
},
|
|
4158
|
+
}, ns = () => {
|
|
4159
4159
|
const e = ce(), r = ne(
|
|
4160
4160
|
(t) => Object.keys(t.users || {})
|
|
4161
4161
|
), [i, n] = re(ae.UNINITIALIZED);
|
|
4162
4162
|
return le(() => {
|
|
4163
|
-
i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING),
|
|
4164
|
-
console.log("useConversationUsers", t), e(
|
|
4163
|
+
i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING), ao().then((t) => {
|
|
4164
|
+
console.log("useConversationUsers", t), e(Br(t));
|
|
4165
4165
|
}).catch((t) => console.error("error while fetching users list", t)).finally(() => {
|
|
4166
4166
|
n(ae.INITIALIZED);
|
|
4167
4167
|
}));
|
|
4168
4168
|
}, [e, i, r]), { isLoading: i === ae.LOADING };
|
|
4169
|
-
},
|
|
4170
|
-
/* @__PURE__ */ v.jsx(
|
|
4171
|
-
/* @__PURE__ */ v.jsx(
|
|
4169
|
+
}, rs = () => (ns(), ts(), /* @__PURE__ */ v.jsxs("div", { children: [
|
|
4170
|
+
/* @__PURE__ */ v.jsx(Ji, {}),
|
|
4171
|
+
/* @__PURE__ */ v.jsx(po, {})
|
|
4172
4172
|
] })), Wn = ({ target: e, ...r }) => Et(
|
|
4173
4173
|
/* @__PURE__ */ v.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ v.jsx(pn, {}) }),
|
|
4174
4174
|
e
|
|
4175
|
-
),
|
|
4175
|
+
), os = () => {
|
|
4176
4176
|
var l;
|
|
4177
4177
|
const e = ce(), r = ne(
|
|
4178
4178
|
(d) => d.codeblockLoaded
|
|
@@ -4212,7 +4212,7 @@ const Vi = {
|
|
|
4212
4212
|
o.removeEventListener("mousemove", u);
|
|
4213
4213
|
};
|
|
4214
4214
|
}, [r, o, u]), !r || !o ? null : /* @__PURE__ */ v.jsx(Wn, { target: o, onClick: s, style: { top: n * 21.2 } });
|
|
4215
|
-
},
|
|
4215
|
+
}, is = () => {
|
|
4216
4216
|
const e = ce(), r = ne(
|
|
4217
4217
|
(t) => t.codeblockLoaded
|
|
4218
4218
|
), i = _t(), n = () => {
|
|
@@ -4223,32 +4223,32 @@ const Vi = {
|
|
|
4223
4223
|
e(xt({ meta: t }));
|
|
4224
4224
|
};
|
|
4225
4225
|
return !r || !i ? null : /* @__PURE__ */ v.jsx(Wn, { target: i, onClick: n });
|
|
4226
|
-
},
|
|
4227
|
-
/* @__PURE__ */ v.jsx(
|
|
4228
|
-
/* @__PURE__ */ v.jsx(
|
|
4229
|
-
] }),
|
|
4230
|
-
const { loading: e, shareDetails: r } =
|
|
4226
|
+
}, ss = () => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4227
|
+
/* @__PURE__ */ v.jsx(is, {}),
|
|
4228
|
+
/* @__PURE__ */ v.jsx(os, {})
|
|
4229
|
+
] }), as = _r(() => import("./DbtDocsRenderer.js")), us = () => {
|
|
4230
|
+
const { loading: e, shareDetails: r } = lo(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = co(), s = (u) => {
|
|
4231
4231
|
u.stopPropagation();
|
|
4232
4232
|
const l = n();
|
|
4233
4233
|
l && i(xt(l));
|
|
4234
4234
|
};
|
|
4235
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: [
|
|
4236
4236
|
/* @__PURE__ */ v.jsxs("div", { className: "d-flex justify-content-end mb-2", children: [
|
|
4237
|
-
/* @__PURE__ */ v.jsx(
|
|
4238
|
-
/* @__PURE__ */ v.jsx(
|
|
4237
|
+
/* @__PURE__ */ v.jsx(ss, {}),
|
|
4238
|
+
/* @__PURE__ */ v.jsx(no, {})
|
|
4239
4239
|
] }),
|
|
4240
|
-
/* @__PURE__ */ v.jsx(
|
|
4241
|
-
/* @__PURE__ */ v.jsx(
|
|
4242
|
-
t ? /* @__PURE__ */ v.jsx(
|
|
4240
|
+
/* @__PURE__ */ v.jsx(rs, {}),
|
|
4241
|
+
/* @__PURE__ */ v.jsx(as, { shareDetails: r, onSelectionEnd: o }),
|
|
4242
|
+
t ? /* @__PURE__ */ v.jsx(to, { pos: t, onAddComment: s }) : null
|
|
4243
4243
|
] });
|
|
4244
|
-
},
|
|
4245
|
-
|
|
4244
|
+
}, ws = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ v.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ v.jsx(
|
|
4245
|
+
Ur,
|
|
4246
4246
|
{
|
|
4247
4247
|
shareId: e,
|
|
4248
4248
|
userId: r,
|
|
4249
4249
|
conversationGroupId: i,
|
|
4250
4250
|
source: n,
|
|
4251
|
-
children: /* @__PURE__ */ v.jsx(
|
|
4251
|
+
children: /* @__PURE__ */ v.jsx(us, {})
|
|
4252
4252
|
}
|
|
4253
4253
|
) }), Yn = {
|
|
4254
4254
|
showCoachingForm: !1
|
|
@@ -4260,10 +4260,10 @@ const Vi = {
|
|
|
4260
4260
|
e.showCoachingForm = r.payload;
|
|
4261
4261
|
}
|
|
4262
4262
|
}
|
|
4263
|
-
}),
|
|
4263
|
+
}), ls = ht.actions, Xn = _e({
|
|
4264
4264
|
state: Yn,
|
|
4265
4265
|
dispatch: () => null
|
|
4266
|
-
}),
|
|
4266
|
+
}), Ns = ({ children: e }) => {
|
|
4267
4267
|
const [r, i] = gn(ht.reducer, ht.getInitialState()), n = fe(
|
|
4268
4268
|
() => ({
|
|
4269
4269
|
state: r,
|
|
@@ -4272,22 +4272,22 @@ const Vi = {
|
|
|
4272
4272
|
[r, i]
|
|
4273
4273
|
);
|
|
4274
4274
|
return /* @__PURE__ */ v.jsx(Xn.Provider, { value: n, children: e });
|
|
4275
|
-
},
|
|
4275
|
+
}, cs = (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: {
|
|
4276
4276
|
maskType: "alpha"
|
|
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" })))),
|
|
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" })))), ds = () => {
|
|
4278
4278
|
const e = be(Xn);
|
|
4279
4279
|
if (e === void 0)
|
|
4280
4280
|
throw new Error("useTeamMateContext must be used within a TeamMateProvider");
|
|
4281
4281
|
return e;
|
|
4282
|
-
},
|
|
4283
|
-
const { dispatch: e } =
|
|
4284
|
-
e(
|
|
4282
|
+
}, js = () => {
|
|
4283
|
+
const { dispatch: e } = ds(), r = () => {
|
|
4284
|
+
e(ls.setShowCoachingForm(!0));
|
|
4285
4285
|
};
|
|
4286
4286
|
return /* @__PURE__ */ v.jsx(Ie, { onClick: r, children: "Show Coaching Form" });
|
|
4287
|
-
},
|
|
4288
|
-
const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } =
|
|
4287
|
+
}, fs = ({ 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 } = Ir({
|
|
4289
4289
|
initialValues: e,
|
|
4290
|
-
validationSchema: ir
|
|
4290
|
+
validationSchema: or(ir),
|
|
4291
4291
|
onSubmit: async (A) => {
|
|
4292
4292
|
await ve.post(`coach/training/${e.train_doc_uid}`, A, {
|
|
4293
4293
|
method: "PUT"
|
|
@@ -4349,7 +4349,7 @@ const Vi = {
|
|
|
4349
4349
|
] }),
|
|
4350
4350
|
/* @__PURE__ */ v.jsxs(se, { className: "align-items-top gap-0", children: [
|
|
4351
4351
|
/* @__PURE__ */ v.jsx(Pt, { switch: !0, children: /* @__PURE__ */ v.jsx(
|
|
4352
|
-
|
|
4352
|
+
nr,
|
|
4353
4353
|
{
|
|
4354
4354
|
title: a.isActive ? "Disable this learning" : "Enable this learning",
|
|
4355
4355
|
children: /* @__PURE__ */ v.jsx(
|
|
@@ -4369,7 +4369,7 @@ const Vi = {
|
|
|
4369
4369
|
}
|
|
4370
4370
|
) }),
|
|
4371
4371
|
/* @__PURE__ */ v.jsx(
|
|
4372
|
-
|
|
4372
|
+
sr,
|
|
4373
4373
|
{
|
|
4374
4374
|
title: "Delete the task",
|
|
4375
4375
|
description: "Are you sure to delete this task?",
|
|
@@ -4384,7 +4384,7 @@ const Vi = {
|
|
|
4384
4384
|
className: "pt-1 pb-0",
|
|
4385
4385
|
disabled: p,
|
|
4386
4386
|
onClick: E,
|
|
4387
|
-
children: /* @__PURE__ */ v.jsx(
|
|
4387
|
+
children: /* @__PURE__ */ v.jsx(vr, {})
|
|
4388
4388
|
}
|
|
4389
4389
|
)
|
|
4390
4390
|
}
|
|
@@ -4392,8 +4392,8 @@ const Vi = {
|
|
|
4392
4392
|
t ? /* @__PURE__ */ v.jsxs(se, { className: "align-items-baseline", children: [
|
|
4393
4393
|
/* @__PURE__ */ v.jsx(ye, { onClick: S, variant: "outline", size: "sm", children: "Cancel" }),
|
|
4394
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(
|
|
4396
|
-
/* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(
|
|
4395
|
+
] }) : /* @__PURE__ */ v.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ v.jsx(mr, {}) }),
|
|
4396
|
+
/* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(Er, {}) : /* @__PURE__ */ v.jsx(yr, {}) })
|
|
4397
4397
|
] })
|
|
4398
4398
|
] }) }),
|
|
4399
4399
|
/* @__PURE__ */ v.jsxs(Gn, { isOpen: y, children: [
|
|
@@ -4406,7 +4406,7 @@ const Vi = {
|
|
|
4406
4406
|
Mt,
|
|
4407
4407
|
{
|
|
4408
4408
|
style: { minWidth: 160 },
|
|
4409
|
-
options: Object.values(
|
|
4409
|
+
options: Object.values(ar).map((A) => ({
|
|
4410
4410
|
value: A,
|
|
4411
4411
|
label: A
|
|
4412
4412
|
})),
|
|
@@ -4431,7 +4431,7 @@ const Vi = {
|
|
|
4431
4431
|
Mt,
|
|
4432
4432
|
{
|
|
4433
4433
|
style: { minWidth: 100 },
|
|
4434
|
-
options: Object.values(
|
|
4434
|
+
options: Object.values(ur).map((A) => ({
|
|
4435
4435
|
value: A,
|
|
4436
4436
|
label: A
|
|
4437
4437
|
})),
|
|
@@ -4458,9 +4458,9 @@ const Vi = {
|
|
|
4458
4458
|
] })
|
|
4459
4459
|
] })
|
|
4460
4460
|
] }) });
|
|
4461
|
-
},
|
|
4461
|
+
}, Ps = ({ filters: e, learning: r }) => {
|
|
4462
4462
|
var d;
|
|
4463
|
-
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } =
|
|
4463
|
+
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = rr({
|
|
4464
4464
|
queryFn: () => ve.get("coach/training", e),
|
|
4465
4465
|
enabled: !1
|
|
4466
4466
|
});
|
|
@@ -4474,7 +4474,7 @@ const Vi = {
|
|
|
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
|
-
|
|
4477
|
+
fs,
|
|
4478
4478
|
{
|
|
4479
4479
|
learning: a,
|
|
4480
4480
|
afterDelete: u,
|
|
@@ -4483,26 +4483,22 @@ const Vi = {
|
|
|
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(
|
|
4486
|
+
/* @__PURE__ */ v.jsx(cs, {}),
|
|
4487
4487
|
/* @__PURE__ */ v.jsx("h4", { children: "No learnings added yet!" })
|
|
4488
4488
|
] }) });
|
|
4489
|
-
},
|
|
4489
|
+
}, ps = ({ config: e, client: r, onSelect: i }) => {
|
|
4490
4490
|
const n = async () => await i(e, tt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = dn({
|
|
4491
4491
|
queryFn: n
|
|
4492
4492
|
}), u = typeof e.comingSoon == "function" ? e.comingSoon() : e.comingSoon;
|
|
4493
4493
|
return /* @__PURE__ */ v.jsx(Zn, { children: /* @__PURE__ */ v.jsxs(vt, { children: [
|
|
4494
|
-
/* @__PURE__ */ v.jsxs(se, { className: "
|
|
4494
|
+
/* @__PURE__ */ v.jsxs(se, { justify: "between", align: "center", className: "al-mb-2", children: [
|
|
4495
4495
|
/* @__PURE__ */ v.jsx(Qn, { alt: "Teammate image", src: e.avatar }),
|
|
4496
|
-
/* @__PURE__ */ v.
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
] }, l)) })
|
|
4496
|
+
/* @__PURE__ */ v.jsxs("div", { className: "al-ml-2 al-mt-2", children: [
|
|
4497
|
+
/* @__PURE__ */ v.jsx(un, { tag: "h5", children: e.name }),
|
|
4498
|
+
/* @__PURE__ */ v.jsx(Jn, { children: e.description })
|
|
4499
|
+
] })
|
|
4501
4500
|
] }),
|
|
4502
|
-
/* @__PURE__ */ v.
|
|
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 }),
|
|
4501
|
+
/* @__PURE__ */ v.jsx(an, { children: /* @__PURE__ */ v.jsxs(se, { justify: "between", align: "center", children: [
|
|
4506
4502
|
/* @__PURE__ */ v.jsxs(se, { className: "justify-content-start align-items-center", children: [
|
|
4507
4503
|
u ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4508
4504
|
/* @__PURE__ */ v.jsx(
|
|
@@ -4527,7 +4523,7 @@ const Vi = {
|
|
|
4527
4523
|
children: "View details"
|
|
4528
4524
|
}
|
|
4529
4525
|
),
|
|
4530
|
-
e.seeInAction && e.availability.includes(
|
|
4526
|
+
e.seeInAction && e.availability.includes(lr[r]) && /* @__PURE__ */ v.jsx(
|
|
4531
4527
|
ye,
|
|
4532
4528
|
{
|
|
4533
4529
|
variant: "outline",
|
|
@@ -4537,28 +4533,33 @@ const Vi = {
|
|
|
4537
4533
|
children: "See in action"
|
|
4538
4534
|
}
|
|
4539
4535
|
)
|
|
4540
|
-
] })
|
|
4541
|
-
|
|
4536
|
+
] }),
|
|
4537
|
+
e.availability.map((l) => /* @__PURE__ */ v.jsxs(cr, { color: "success", tooltip: "", className: l, children: [
|
|
4538
|
+
u ? "Coming soon" : "Available",
|
|
4539
|
+
" in ",
|
|
4540
|
+
l
|
|
4541
|
+
] }, l))
|
|
4542
|
+
] }) })
|
|
4542
4543
|
] }) });
|
|
4543
|
-
},
|
|
4544
|
+
}, Fs = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(er, { children: dr.map((i) => /* @__PURE__ */ v.jsx(ps, { config: i, client: r, onSelect: e }, i.name)) }) });
|
|
4544
4545
|
export {
|
|
4545
4546
|
yt as C,
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4547
|
+
ws as D,
|
|
4548
|
+
Ps as L,
|
|
4549
|
+
Ns as T,
|
|
4549
4550
|
ne as a,
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4551
|
+
Os as b,
|
|
4552
|
+
Ds as c,
|
|
4553
|
+
_s as d,
|
|
4553
4554
|
Ct as e,
|
|
4554
4555
|
me as f,
|
|
4555
|
-
|
|
4556
|
+
xr as g,
|
|
4556
4557
|
Un as h,
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4558
|
+
Zi as i,
|
|
4559
|
+
js as j,
|
|
4560
|
+
ds as k,
|
|
4561
|
+
ls as l,
|
|
4562
|
+
Fs as m,
|
|
4563
|
+
xs as s,
|
|
4563
4564
|
ce as u
|
|
4564
4565
|
};
|