@altimateai/ui-components 0.0.1-beta.2 → 0.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +43 -114
- package/dist/Badge.js +1 -1
- package/dist/CoachForm.js +6285 -6583
- package/dist/DbtDocsRenderer.js +833 -2651
- package/dist/Tooltip.js +115 -0
- package/dist/assets/icons/index.js +44 -39
- package/dist/chatbot/index.js +100 -96
- package/dist/chatbotV2/index.js +16 -3
- package/dist/flowchart-elk-definition-170a3958.js +2 -2
- package/dist/index.js +16 -16
- package/dist/index2.js +194 -193
- package/dist/is_dark.js +1 -1
- package/dist/lineage/index.js +2284 -2710
- package/dist/main.js +50 -185
- package/dist/mindmap-definition-44684416.js +2 -2
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.js +352 -382
- package/dist/timeline-definition-8e5a9bc6.js +1 -1
- package/dist/v4.js +524 -514
- package/package.json +54 -54
- package/readme.md +11 -0
- package/dist/Stack.js +0 -132
- package/dist/assets/icons/index.d.ts +0 -86
- package/dist/chatbot/index.d.ts +0 -39
- package/dist/chatbotV2/index.d.ts +0 -111
- package/dist/index.d.ts +0 -217
- package/dist/lineage/index.d.ts +0 -183
- package/dist/shadcn/index.d.ts +0 -517
- package/dist/storybook/Accordion.stories.tsx +0 -61
- package/dist/storybook/Alert.stories.tsx +0 -65
- package/dist/storybook/AlertDialog.stories.tsx +0 -166
- package/dist/storybook/Avatar.stories.tsx +0 -58
- package/dist/storybook/Badge.stories.tsx +0 -36
- package/dist/storybook/Button.stories.tsx +0 -129
- package/dist/storybook/Card.stories.tsx +0 -76
- package/dist/storybook/Checkbox.stories.tsx +0 -74
- package/dist/storybook/Command.stories.tsx +0 -35
- package/dist/storybook/DropdownMenu.stories.tsx +0 -36
- package/dist/storybook/Form.stories.tsx +0 -120
- package/dist/storybook/HoverCard.stories.tsx +0 -105
- package/dist/storybook/Input.stories.tsx +0 -53
- package/dist/storybook/Label.stories.tsx +0 -42
- package/dist/storybook/Menubar.stories.tsx +0 -159
- package/dist/storybook/Pagination.stories.tsx +0 -155
- package/dist/storybook/Popover.stories.tsx +0 -25
- package/dist/storybook/Progress.stories.tsx +0 -89
- package/dist/storybook/RadioGroup.stories.tsx +0 -61
- package/dist/storybook/Resizable.stories.tsx +0 -119
- package/dist/storybook/ScrollArea.stories.tsx +0 -120
- package/dist/storybook/Select.stories.tsx +0 -95
- package/dist/storybook/Sheet.stories.tsx +0 -75
- package/dist/storybook/Sidebar.stories.tsx +0 -97
- package/dist/storybook/Slider.stories.tsx +0 -81
- package/dist/storybook/Switch.stories.tsx +0 -99
- package/dist/storybook/Textarea.stories.tsx +0 -50
- package/dist/storybook/Toast.stories.tsx +0 -111
- package/dist/storybook/Tooltip.stories.tsx +0 -33
- package/dist/storybook/Typography.stories.tsx +0 -178
- package/dist/types-PVxbm0tZ.d.ts +0 -99
- /package/dist/{Stack.css → v4.css} +0 -0
package/dist/main.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Button as Ce, Card as $e, CardBody as Je, CardTitle as Et, CloseButton as Wn, FormGroup as Mt, Input as Lt, FormFeedback as Kn, Collapse as Xn, Alert as ln, Col as Gn, CardImg as Zn, CardSubtitle as Qn, CardText as Jn, Row as er } from "reactstrap";
|
|
2
2
|
import { c as cn, A as ve, C as tr, I as Ie } from "./redux-toolkit.modern.js";
|
|
3
|
-
import { g as yt,
|
|
4
|
-
import {
|
|
3
|
+
import { g as yt, T as nr } from "./Tooltip.js";
|
|
4
|
+
import { J as dn, K as dt, N as rr, O as or, P as fn, T as ir, V as sr, W as rt, X as ar, Y as ur } from "./CoachForm.js";
|
|
5
5
|
import { B as lr } from "./Badge.js";
|
|
6
6
|
import { j as v, A as pn, k as cr, l as dr, d as fr, D as pr, E as gr, b as hr, a as vr } from "./index2.js";
|
|
7
7
|
import * as te from "react";
|
|
8
8
|
import Z, { createContext as _e, useReducer as gn, useCallback as we, useMemo as de, useContext as ye, useLayoutEffect as mr, useEffect as fe, useRef as Se, useId as hn, useInsertionEffect as Er, Children as De, isValidElement as yr, useState as re, lazy as br } from "react";
|
|
9
9
|
import Cr, { createPortal as bt } from "react-dom";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { S as se, u as Sr } from "./v4.js";
|
|
11
|
+
import { Popconfirm as _r, Select as Bt } from "antd";
|
|
12
|
+
import { useFormik as Ar } from "formik";
|
|
13
13
|
import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
|
|
14
14
|
const Tr = () => {
|
|
15
15
|
var r, i, n;
|
|
@@ -830,12 +830,10 @@ const mn = /* @__PURE__ */ yt(Ir), et = "altimate-display-", xr = `${et}-highlig
|
|
|
830
830
|
className: Or
|
|
831
831
|
}
|
|
832
832
|
// wrapTag: ACTIVE_HIGHLIGHT_WRAPPER_TAGNAME,
|
|
833
|
-
}), En = (e, r) => r.filter(
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
), yn = (e, r, i) => {
|
|
833
|
+
}), En = (e, r) => r.filter((i) => {
|
|
834
|
+
var n;
|
|
835
|
+
return ((n = i.$node.nodeValue) == null ? void 0 : n.trim()) !== "";
|
|
836
|
+
}), yn = (e, r, i) => {
|
|
839
837
|
const n = r, t = i, o = ["BR", "HR"];
|
|
840
838
|
return o.includes(n.$node.nodeName) && n.$node.parentNode && (n.$node = n.$node.parentNode), o.includes(t.$node.nodeName) && t.$node.parentNode && (t.$node = t.$node.parentNode), [n, t];
|
|
841
839
|
};
|
|
@@ -861,14 +859,10 @@ const Rr = (e) => {
|
|
|
861
859
|
}, At = () => {
|
|
862
860
|
var r;
|
|
863
861
|
return (r = window.location.hash.split("#").find((i) => i.startsWith("!"))) == null ? void 0 : r.split("/");
|
|
864
|
-
}, Tt = () => document.querySelector(
|
|
865
|
-
'[marked="model.description"]'
|
|
866
|
-
), Nr = (e) => {
|
|
862
|
+
}, Tt = () => document.querySelector('[marked="model.description"]'), Nr = (e) => {
|
|
867
863
|
var r, i, n;
|
|
868
864
|
return e.field ? e.column ? (i = (r = Array.from(
|
|
869
|
-
document.querySelectorAll(
|
|
870
|
-
"column-details tr:not(.ng-hide) td:first-child"
|
|
871
|
-
)
|
|
865
|
+
document.querySelectorAll("column-details tr:not(.ng-hide) td:first-child")
|
|
872
866
|
).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n = Tt()) == null ? void 0 : n.firstChild : _t();
|
|
873
867
|
}, jr = (e) => {
|
|
874
868
|
if (e.getAttribute("marked") === "model.description")
|
|
@@ -894,10 +888,7 @@ const Rr = (e) => {
|
|
|
894
888
|
};
|
|
895
889
|
}, _s = () => {
|
|
896
890
|
var e;
|
|
897
|
-
return [
|
|
898
|
-
(e = _t()) == null ? void 0 : e.parentElement,
|
|
899
|
-
Tt()
|
|
900
|
-
];
|
|
891
|
+
return [(e = _t()) == null ? void 0 : e.parentElement, Tt()];
|
|
901
892
|
};
|
|
902
893
|
var ae = /* @__PURE__ */ ((e) => (e[e.LOADING = 0] = "LOADING", e[e.UNINITIALIZED = 1] = "UNINITIALIZED", e[e.INITIALIZED = 2] = "INITIALIZED", e))(ae || {});
|
|
903
894
|
const Fr = {
|
|
@@ -1256,18 +1247,12 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1256
1247
|
), ao = () => {
|
|
1257
1248
|
const e = ne(
|
|
1258
1249
|
(u) => u.shareId
|
|
1259
|
-
), [r, i] = re(
|
|
1260
|
-
null
|
|
1261
|
-
), [n, t] = re(!1), o = le();
|
|
1250
|
+
), [r, i] = re(null), [n, t] = re(!1), o = le();
|
|
1262
1251
|
fe(() => {
|
|
1263
1252
|
r != null && r.manifest_presigned_url && fetch(r.manifest_presigned_url).then((u) => u.json()).then((u) => {
|
|
1264
1253
|
o($r(u));
|
|
1265
1254
|
}).catch(
|
|
1266
|
-
(u) => console.error(
|
|
1267
|
-
"error loading manifest",
|
|
1268
|
-
u,
|
|
1269
|
-
r.manifest_presigned_url
|
|
1270
|
-
)
|
|
1255
|
+
(u) => console.error("error loading manifest", u, r.manifest_presigned_url)
|
|
1271
1256
|
);
|
|
1272
1257
|
}, [o, r == null ? void 0 : r.manifest_presigned_url]);
|
|
1273
1258
|
const s = we(async () => {
|
|
@@ -1343,9 +1328,7 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1343
1328
|
const r = ne(
|
|
1344
1329
|
(u) => u.selectedConversationId
|
|
1345
1330
|
), i = le(), n = Se(null), t = de(() => Nr(e.meta), [e.meta]), o = () => {
|
|
1346
|
-
i(
|
|
1347
|
-
It(e.conversation_group_id)
|
|
1348
|
-
);
|
|
1331
|
+
i(It(e.conversation_group_id));
|
|
1349
1332
|
}, s = de(() => {
|
|
1350
1333
|
if (!t)
|
|
1351
1334
|
return;
|
|
@@ -1353,9 +1336,7 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1353
1336
|
return { top: 0, bottom: t.offsetHeight };
|
|
1354
1337
|
let u = 0, l = 0;
|
|
1355
1338
|
for (let d = e.meta.range.start.line; d <= e.meta.range.end.line; d++) {
|
|
1356
|
-
const a = t.querySelector(
|
|
1357
|
-
`.line-numbers-rows > span:nth-child(${d + 1})`
|
|
1358
|
-
);
|
|
1339
|
+
const a = t.querySelector(`.line-numbers-rows > span:nth-child(${d + 1})`);
|
|
1359
1340
|
a && (d === e.meta.range.start.line && (u = a.offsetTop + 15), d === e.meta.range.end.line && (l = a.offsetTop + a.offsetHeight));
|
|
1360
1341
|
}
|
|
1361
1342
|
return { top: u, bottom: l };
|
|
@@ -3877,9 +3858,7 @@ const Ui = {
|
|
|
3877
3858
|
}
|
|
3878
3859
|
) });
|
|
3879
3860
|
}, zi = () => {
|
|
3880
|
-
const e = ne(
|
|
3881
|
-
(a) => a.users
|
|
3882
|
-
), r = ne(
|
|
3861
|
+
const e = ne((a) => a.users), r = ne(
|
|
3883
3862
|
(a) => a.newConversation
|
|
3884
3863
|
), i = ne(
|
|
3885
3864
|
(a) => a.currentUserId ? a.users[a.currentUserId] : null
|
|
@@ -3900,16 +3879,10 @@ const Ui = {
|
|
|
3900
3879
|
// this component is used only from dbt docs page
|
|
3901
3880
|
);
|
|
3902
3881
|
if (!c.conversation_group_id) {
|
|
3903
|
-
console.error(
|
|
3904
|
-
"Unable to create conversation group",
|
|
3905
|
-
c
|
|
3906
|
-
);
|
|
3882
|
+
console.error("Unable to create conversation group", c);
|
|
3907
3883
|
return;
|
|
3908
3884
|
}
|
|
3909
|
-
console.log(
|
|
3910
|
-
"Successfully created conversation group",
|
|
3911
|
-
c
|
|
3912
|
-
);
|
|
3885
|
+
console.log("Successfully created conversation group", c);
|
|
3913
3886
|
} catch (c) {
|
|
3914
3887
|
console.error("error while saving conversation", r, c);
|
|
3915
3888
|
}
|
|
@@ -3970,27 +3943,14 @@ const Ui = {
|
|
|
3970
3943
|
] }),
|
|
3971
3944
|
/* @__PURE__ */ v.jsx("span", { children: dt(r).format("HH:mm, DD MMM YY") })
|
|
3972
3945
|
] }),
|
|
3973
|
-
i ? /* @__PURE__ */ v.jsx(
|
|
3974
|
-
Vi,
|
|
3975
|
-
{
|
|
3976
|
-
conversationGroupId: n,
|
|
3977
|
-
shareId: t
|
|
3978
|
-
}
|
|
3979
|
-
) : null
|
|
3946
|
+
i ? /* @__PURE__ */ v.jsx(Vi, { conversationGroupId: n, shareId: t }) : null
|
|
3980
3947
|
] }), Yi = ({ conversation: e, shareId: r }) => {
|
|
3981
3948
|
const { users: i } = Be(), n = de(() => {
|
|
3982
3949
|
if (e != null && e.user_id)
|
|
3983
3950
|
return i[e.user_id];
|
|
3984
3951
|
}, [e.user_id, i]);
|
|
3985
3952
|
return /* @__PURE__ */ v.jsxs($e, { children: [
|
|
3986
|
-
/* @__PURE__ */ v.jsx(
|
|
3987
|
-
Un,
|
|
3988
|
-
{
|
|
3989
|
-
user: n,
|
|
3990
|
-
timestamp: e.timestamp,
|
|
3991
|
-
shareId: r
|
|
3992
|
-
}
|
|
3993
|
-
),
|
|
3953
|
+
/* @__PURE__ */ v.jsx(Un, { user: n, timestamp: e.timestamp, shareId: r }),
|
|
3994
3954
|
/* @__PURE__ */ v.jsx(Je, { children: /* @__PURE__ */ v.jsx("p", { children: e.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }) })
|
|
3995
3955
|
] });
|
|
3996
3956
|
}, Wi = ({ conversationGroupId: e, shareId: r }) => {
|
|
@@ -4025,21 +3985,14 @@ const Ui = {
|
|
|
4025
3985
|
onEnterKeypress: c
|
|
4026
3986
|
}
|
|
4027
3987
|
) }) });
|
|
4028
|
-
}, Ki = ({
|
|
4029
|
-
conversationGroup: e,
|
|
4030
|
-
shareId: r,
|
|
4031
|
-
onSelect: i
|
|
4032
|
-
}) => {
|
|
3988
|
+
}, Ki = ({ conversationGroup: e, shareId: r, onSelect: i }) => {
|
|
4033
3989
|
var f;
|
|
4034
3990
|
const { users: n } = Be(), t = de(() => {
|
|
4035
3991
|
if (e.owner)
|
|
4036
3992
|
return n[e.owner];
|
|
4037
3993
|
}, [e.owner, n]), { isSelected: o } = Be(), [s, u] = re(!1), l = we(
|
|
4038
3994
|
(g) => {
|
|
4039
|
-
!o || !g || (console.log(
|
|
4040
|
-
"ConversationGroupComponent scrolling",
|
|
4041
|
-
e.conversation_group_id
|
|
4042
|
-
), setTimeout(() => {
|
|
3995
|
+
!o || !g || (console.log("ConversationGroupComponent scrolling", e.conversation_group_id), setTimeout(() => {
|
|
4043
3996
|
g.scrollIntoView({
|
|
4044
3997
|
behavior: "smooth",
|
|
4045
3998
|
block: "center"
|
|
@@ -4066,14 +4019,7 @@ const Ui = {
|
|
|
4066
4019
|
/* @__PURE__ */ v.jsx(kn, { meta: e.meta }),
|
|
4067
4020
|
/* @__PURE__ */ v.jsx("p", { children: d.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }),
|
|
4068
4021
|
/* @__PURE__ */ v.jsx(Ce, { onClick: () => u((g) => !g), color: "link", children: c }),
|
|
4069
|
-
a.length ? /* @__PURE__ */ v.jsx(v.Fragment, { children: s ? /* @__PURE__ */ v.jsx(v.Fragment, { children: a.map((g) => /* @__PURE__ */ v.jsx(
|
|
4070
|
-
Yi,
|
|
4071
|
-
{
|
|
4072
|
-
conversation: g,
|
|
4073
|
-
shareId: r
|
|
4074
|
-
},
|
|
4075
|
-
g.conversation_id
|
|
4076
|
-
)) }) : null }) : null,
|
|
4022
|
+
a.length ? /* @__PURE__ */ v.jsx(v.Fragment, { children: s ? /* @__PURE__ */ v.jsx(v.Fragment, { children: a.map((g) => /* @__PURE__ */ v.jsx(Yi, { conversation: g, shareId: r }, g.conversation_id)) }) : null }) : null,
|
|
4077
4023
|
s ? /* @__PURE__ */ v.jsx(
|
|
4078
4024
|
Wi,
|
|
4079
4025
|
{
|
|
@@ -4137,19 +4083,13 @@ const Ui = {
|
|
|
4137
4083
|
}
|
|
4138
4084
|
) });
|
|
4139
4085
|
}, Be = () => ye(qn), Gi = () => {
|
|
4140
|
-
const e = ne(
|
|
4141
|
-
(c) => c.source
|
|
4142
|
-
), r = ne(
|
|
4086
|
+
const e = ne((c) => c.source), r = ne(
|
|
4143
4087
|
(c) => c.conversations
|
|
4144
4088
|
), i = ne(
|
|
4145
4089
|
(c) => c.selectedConversationId
|
|
4146
4090
|
), n = ne(
|
|
4147
4091
|
(c) => c.shareId
|
|
4148
|
-
), t = ne(
|
|
4149
|
-
(c) => c.users
|
|
4150
|
-
), o = ne(
|
|
4151
|
-
(c) => c.currentUserId
|
|
4152
|
-
), s = le();
|
|
4092
|
+
), t = ne((c) => c.users), o = ne((c) => c.currentUserId), s = le();
|
|
4153
4093
|
if (!o || !n)
|
|
4154
4094
|
return null;
|
|
4155
4095
|
const u = t[o], l = (c) => {
|
|
@@ -4175,23 +4115,13 @@ const Ui = {
|
|
|
4175
4115
|
c.conversation_group_id
|
|
4176
4116
|
)) });
|
|
4177
4117
|
}, Zi = () => {
|
|
4178
|
-
const e = ne(
|
|
4179
|
-
(s) => s.isRightPanelOpen
|
|
4180
|
-
), r = ne(
|
|
4118
|
+
const e = ne((s) => s.isRightPanelOpen), r = ne(
|
|
4181
4119
|
(s) => s.selectedConversationId
|
|
4182
|
-
), i = ne(
|
|
4183
|
-
(s) => s.newConversation
|
|
4184
|
-
), n = le(), t = () => {
|
|
4120
|
+
), i = ne((s) => s.newConversation), n = le(), t = () => {
|
|
4185
4121
|
n(xt(!1)), n(It(void 0)), n(Ot());
|
|
4186
4122
|
};
|
|
4187
4123
|
return !!i || e || r ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4188
|
-
/* @__PURE__ */ v.jsx(
|
|
4189
|
-
Wn,
|
|
4190
|
-
{
|
|
4191
|
-
onClick: t,
|
|
4192
|
-
className: me.conversationRightPanelCloseButton
|
|
4193
|
-
}
|
|
4194
|
-
),
|
|
4124
|
+
/* @__PURE__ */ v.jsx(Wn, { onClick: t, className: me.conversationRightPanelCloseButton }),
|
|
4195
4125
|
/* @__PURE__ */ v.jsxs("div", { className: me.conversationRightPanel, children: [
|
|
4196
4126
|
/* @__PURE__ */ v.jsx("h3", { children: "Comments" }),
|
|
4197
4127
|
i ? /* @__PURE__ */ v.jsx(zi, {}) : /* @__PURE__ */ v.jsx(Gi, {})
|
|
@@ -4210,9 +4140,7 @@ const Ui = {
|
|
|
4210
4140
|
console.log("useConversations", u), n(Lr(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
|
|
4211
4141
|
o(s);
|
|
4212
4142
|
}, Qi * 1e3);
|
|
4213
|
-
}).catch(
|
|
4214
|
-
(u) => console.error("error while fetching conversations list", u)
|
|
4215
|
-
).finally(() => {
|
|
4143
|
+
}).catch((u) => console.error("error while fetching conversations list", u)).finally(() => {
|
|
4216
4144
|
n(Ht(ae.INITIALIZED));
|
|
4217
4145
|
});
|
|
4218
4146
|
},
|
|
@@ -4236,23 +4164,13 @@ const Ui = {
|
|
|
4236
4164
|
/* @__PURE__ */ v.jsx(Zi, {}),
|
|
4237
4165
|
/* @__PURE__ */ v.jsx(co, {})
|
|
4238
4166
|
] })), zn = ({ target: e, ...r }) => bt(
|
|
4239
|
-
/* @__PURE__ */ v.jsx(
|
|
4240
|
-
Ie,
|
|
4241
|
-
{
|
|
4242
|
-
className: me.hotspotButton,
|
|
4243
|
-
title: "Click to start conversation",
|
|
4244
|
-
...r,
|
|
4245
|
-
children: /* @__PURE__ */ v.jsx(pn, {})
|
|
4246
|
-
}
|
|
4247
|
-
),
|
|
4167
|
+
/* @__PURE__ */ v.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ v.jsx(pn, {}) }),
|
|
4248
4168
|
e
|
|
4249
4169
|
), ns = () => {
|
|
4250
4170
|
var l;
|
|
4251
4171
|
const e = le(), r = ne(
|
|
4252
4172
|
(d) => d.codeblockLoaded
|
|
4253
|
-
), i = ne(
|
|
4254
|
-
(d) => d.manifest
|
|
4255
|
-
), [n, t] = re(0), o = (l = _t()) == null ? void 0 : l.parentElement, s = () => {
|
|
4173
|
+
), i = ne((d) => d.manifest), [n, t] = re(0), o = (l = _t()) == null ? void 0 : l.parentElement, s = () => {
|
|
4256
4174
|
var f;
|
|
4257
4175
|
if (!o || !i.nodes)
|
|
4258
4176
|
return;
|
|
@@ -4274,9 +4192,7 @@ const Ui = {
|
|
|
4274
4192
|
(d) => {
|
|
4275
4193
|
if (!o)
|
|
4276
4194
|
return;
|
|
4277
|
-
const a = d.y, c = o.querySelectorAll(
|
|
4278
|
-
".line-numbers-rows > span"
|
|
4279
|
-
), f = Array.from(c).findIndex((g) => {
|
|
4195
|
+
const a = d.y, c = o.querySelectorAll(".line-numbers-rows > span"), f = Array.from(c).findIndex((g) => {
|
|
4280
4196
|
const { height: p, y: m } = g.getBoundingClientRect();
|
|
4281
4197
|
return a >= m && a <= m + p;
|
|
4282
4198
|
});
|
|
@@ -4289,14 +4205,7 @@ const Ui = {
|
|
|
4289
4205
|
return o.addEventListener("mousemove", u), () => {
|
|
4290
4206
|
o.removeEventListener("mousemove", u);
|
|
4291
4207
|
};
|
|
4292
|
-
}, [r, o, u]), !r || !o ? null : /* @__PURE__ */ v.jsx(
|
|
4293
|
-
zn,
|
|
4294
|
-
{
|
|
4295
|
-
target: o,
|
|
4296
|
-
onClick: s,
|
|
4297
|
-
style: { top: n * 21.2 }
|
|
4298
|
-
}
|
|
4299
|
-
);
|
|
4208
|
+
}, [r, o, u]), !r || !o ? null : /* @__PURE__ */ v.jsx(zn, { target: o, onClick: s, style: { top: n * 21.2 } });
|
|
4300
4209
|
}, rs = () => {
|
|
4301
4210
|
const e = le(), r = ne(
|
|
4302
4211
|
(t) => t.codeblockLoaded
|
|
@@ -4323,13 +4232,7 @@ const Ui = {
|
|
|
4323
4232
|
/* @__PURE__ */ v.jsx(eo, {})
|
|
4324
4233
|
] }),
|
|
4325
4234
|
/* @__PURE__ */ v.jsx(ts, {}),
|
|
4326
|
-
/* @__PURE__ */ v.jsx(
|
|
4327
|
-
is,
|
|
4328
|
-
{
|
|
4329
|
-
shareDetails: r,
|
|
4330
|
-
onSelectionEnd: o
|
|
4331
|
-
}
|
|
4332
|
-
),
|
|
4235
|
+
/* @__PURE__ */ v.jsx(is, { shareDetails: r, onSelectionEnd: o }),
|
|
4333
4236
|
t ? /* @__PURE__ */ v.jsx(Jr, { pos: t, onAddComment: s }) : null
|
|
4334
4237
|
] });
|
|
4335
4238
|
}, ws = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ v.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ v.jsx(
|
|
@@ -4354,13 +4257,8 @@ const Ui = {
|
|
|
4354
4257
|
}), as = mt.actions, Yn = _e({
|
|
4355
4258
|
state: Vn,
|
|
4356
4259
|
dispatch: () => null
|
|
4357
|
-
}), Ns = ({
|
|
4358
|
-
|
|
4359
|
-
}) => {
|
|
4360
|
-
const [r, i] = gn(
|
|
4361
|
-
mt.reducer,
|
|
4362
|
-
mt.getInitialState()
|
|
4363
|
-
), n = de(
|
|
4260
|
+
}), Ns = ({ children: e }) => {
|
|
4261
|
+
const [r, i] = gn(mt.reducer, mt.getInitialState()), n = de(
|
|
4364
4262
|
() => ({
|
|
4365
4263
|
state: r,
|
|
4366
4264
|
dispatch: i
|
|
@@ -4373,25 +4271,15 @@ const Ui = {
|
|
|
4373
4271
|
}, maskUnits: "userSpaceOnUse", x: -1, y: -1, width: 132, height: 132 }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#F1F3F9", stroke: "#D6DCE8", strokeWidth: 2, strokeMiterlimit: 10 })), /* @__PURE__ */ te.createElement("g", { mask: "url(#mask0_3506_13710)" }, /* @__PURE__ */ te.createElement("g", { filter: "url(#filter0_d_3506_13710)" }, /* @__PURE__ */ te.createElement("path", { d: "M110.116 47.3781L111.286 125.57C111.286 128.145 109.179 130.252 106.37 130.252H30.051C27.4758 130.252 25.1348 128.145 25.1348 125.57V25.138C25.1348 22.5628 27.2417 20.4559 30.051 20.4559H85.3002L110.116 47.3781Z", fill: "url(#paint0_linear_3506_13710)" })), /* @__PURE__ */ te.createElement("path", { d: "M85.3008 20.4559V41.9937C85.3008 45.0371 87.876 47.3782 90.9193 47.3782H110.116", fill: "#D5DDEA" })), /* @__PURE__ */ te.createElement("path", { d: "M119.221 27.592L120.664 26.951C121.144 26.7908 121.144 26.1498 120.664 25.9896L119.221 25.3486C117.459 24.5475 116.017 23.1053 115.215 21.3427L114.575 19.9006C114.414 19.4199 113.773 19.4199 113.613 19.9006L112.972 21.3427C112.171 23.1053 110.729 24.5475 108.966 25.3486L107.524 25.9896C107.043 26.1498 107.043 26.7908 107.524 26.951L108.966 27.592C110.729 28.3931 112.171 29.8353 112.972 31.5979L113.613 33.04C113.773 33.5207 114.414 33.5207 114.575 33.04L115.215 31.5979C115.856 29.8353 117.299 28.3931 119.221 27.592Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M103.678 18.4585L104.64 17.9777C104.96 17.8175 104.96 17.497 104.64 17.3368L103.678 17.0163C102.397 16.5356 101.435 15.5742 100.954 14.2923L100.474 13.3309C100.313 13.0104 99.993 13.0104 99.8327 13.3309L99.5123 14.2923C98.8713 15.5742 97.9099 16.5356 96.7882 17.0163L95.6666 17.497C95.5063 17.497 95.5063 17.9777 95.6666 17.9777L96.628 18.4585C97.9099 18.9392 98.8713 19.9006 99.5123 21.1825L99.993 22.1439C100.153 22.4644 100.474 22.4644 100.634 22.1439L100.954 21.1825C101.435 19.9006 102.397 18.9392 103.678 18.4585Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M116.016 9.16483L116.817 8.84435C116.978 8.68412 116.978 8.52388 116.817 8.36364L116.016 8.04317C115.055 7.7227 114.414 6.92151 113.933 5.96009L113.613 5.1589C113.452 4.99867 113.292 4.99867 113.132 5.1589L112.811 5.96009C112.491 6.92151 111.69 7.56246 110.728 8.04317L110.248 8.36364C109.927 8.52388 109.927 8.84435 110.248 8.84435L111.049 9.16483C112.01 9.4853 112.651 10.2865 113.132 11.2479L113.452 12.0491C113.613 12.2093 113.773 12.2093 113.933 12.0491L114.254 11.2479C114.414 10.2865 115.215 9.4853 116.016 9.16483Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M53.7864 71.8552C50.2113 71.8552 47.2082 69.5695 46.0642 66.2838C45.7782 65.5695 46.2072 64.8552 46.9222 64.5695C47.6372 64.2838 48.3523 64.7124 48.6383 65.4266C49.3533 67.5695 51.4983 69.1409 53.7864 69.1409C56.0744 69.1409 58.2195 67.7124 58.9345 65.4266C59.2205 64.7124 59.9355 64.2838 60.6506 64.5695C61.3656 64.8552 61.7946 65.5695 61.5086 66.2838C60.3646 69.7124 57.3615 71.8552 53.7864 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M75.3801 71.8552C71.805 71.8552 68.802 69.5695 67.6579 66.2838C67.3719 65.5695 67.8009 64.8552 68.516 64.5695C69.231 64.2838 69.946 64.7124 70.232 65.4266C70.947 67.5695 73.0921 69.1409 75.3801 69.1409C77.6682 69.1409 79.8133 67.7124 80.5283 65.4266C80.8143 64.7124 81.5293 64.2838 82.2443 64.5695C82.9593 64.8552 83.3883 65.5695 83.1023 66.2838C81.9583 69.7124 78.9552 71.8552 75.3801 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M64.6548 89.3467C66.4713 89.3467 67.9439 87.8756 67.9439 86.061C67.9439 84.2463 66.4713 82.7752 64.6548 82.7752C62.8383 82.7752 61.3657 84.2463 61.3657 86.061C61.3657 87.8756 62.8383 89.3467 64.6548 89.3467Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("defs", null, /* @__PURE__ */ te.createElement("filter", { id: "filter0_d_3506_13710", x: 3.13477, y: 9.45586, width: 130.151, height: 153.796, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ te.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ te.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ te.createElement("feOffset", { dy: 11 }), /* @__PURE__ */ te.createElement("feGaussianBlur", { stdDeviation: 11 }), /* @__PURE__ */ te.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_3506_13710" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_3506_13710", result: "shape" })), /* @__PURE__ */ te.createElement("linearGradient", { id: "paint0_linear_3506_13710", x1: 68.1823, y1: 17.9162, x2: 68.1823, y2: 131.436, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ te.createElement("stop", { stopColor: "#FDFEFF" }), /* @__PURE__ */ te.createElement("stop", { offset: 0.9964, stopColor: "#ECF0F5" })))), ls = () => {
|
|
4374
4272
|
const e = ye(Yn);
|
|
4375
4273
|
if (e === void 0)
|
|
4376
|
-
throw new Error(
|
|
4377
|
-
"useTeamMateContext must be used within a TeamMateProvider"
|
|
4378
|
-
);
|
|
4274
|
+
throw new Error("useTeamMateContext must be used within a TeamMateProvider");
|
|
4379
4275
|
return e;
|
|
4380
|
-
}, js = (
|
|
4276
|
+
}, js = () => {
|
|
4381
4277
|
const { dispatch: e } = ls(), r = () => {
|
|
4382
4278
|
e(as.setShowCoachingForm(!0));
|
|
4383
4279
|
};
|
|
4384
4280
|
return /* @__PURE__ */ v.jsx(Ie, { onClick: r, children: "Show Coaching Form" });
|
|
4385
4281
|
}, cs = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
|
|
4386
|
-
const [t, o] = re(!1), {
|
|
4387
|
-
errors: s,
|
|
4388
|
-
isValid: u,
|
|
4389
|
-
isSubmitting: l,
|
|
4390
|
-
handleSubmit: d,
|
|
4391
|
-
values: a,
|
|
4392
|
-
handleChange: c,
|
|
4393
|
-
setSubmitting: f
|
|
4394
|
-
} = _r({
|
|
4282
|
+
const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } = Ar({
|
|
4395
4283
|
initialValues: e,
|
|
4396
4284
|
validationSchema: rr(or),
|
|
4397
4285
|
onSubmit: async (A) => {
|
|
@@ -4404,7 +4292,6 @@ const Ui = {
|
|
|
4404
4292
|
{},
|
|
4405
4293
|
{ method: "DELETE" }
|
|
4406
4294
|
), { loading: p, error: m, mutate: h } = fn({
|
|
4407
|
-
// @ts-ignore
|
|
4408
4295
|
queryFn: g,
|
|
4409
4296
|
onSuccess: r
|
|
4410
4297
|
}), E = (A) => {
|
|
@@ -4438,16 +4325,12 @@ const Ui = {
|
|
|
4438
4325
|
/* @__PURE__ */ v.jsx(se, { children: /* @__PURE__ */ v.jsxs("dl", { children: [
|
|
4439
4326
|
/* @__PURE__ */ v.jsxs(se, { children: [
|
|
4440
4327
|
/* @__PURE__ */ v.jsx("dt", { children: "Created on:" }),
|
|
4441
|
-
/* @__PURE__ */ v.jsx("dd", { children: dt(e.createdDate).format(
|
|
4442
|
-
"MMMM D, YYYY h:mm A"
|
|
4443
|
-
) })
|
|
4328
|
+
/* @__PURE__ */ v.jsx("dd", { children: dt(e.createdDate).format("MMMM D, YYYY h:mm A") })
|
|
4444
4329
|
] }),
|
|
4445
4330
|
/* @__PURE__ */ v.jsxs(se, { children: [
|
|
4446
4331
|
/* @__PURE__ */ v.jsx("dt", { children: "Updated on:" }),
|
|
4447
4332
|
/* @__PURE__ */ v.jsxs("dd", { children: [
|
|
4448
|
-
dt(e.updatedDate).format(
|
|
4449
|
-
"MMMM D, YYYY h:mm A"
|
|
4450
|
-
),
|
|
4333
|
+
dt(e.updatedDate).format("MMMM D, YYYY h:mm A"),
|
|
4451
4334
|
" "
|
|
4452
4335
|
] })
|
|
4453
4336
|
] }),
|
|
@@ -4480,7 +4363,7 @@ const Ui = {
|
|
|
4480
4363
|
}
|
|
4481
4364
|
) }),
|
|
4482
4365
|
/* @__PURE__ */ v.jsx(
|
|
4483
|
-
|
|
4366
|
+
_r,
|
|
4484
4367
|
{
|
|
4485
4368
|
title: "Delete the task",
|
|
4486
4369
|
description: "Are you sure to delete this task?",
|
|
@@ -4580,7 +4463,7 @@ const Ui = {
|
|
|
4580
4463
|
] }) });
|
|
4581
4464
|
}, Ps = ({ filters: e, learning: r }) => {
|
|
4582
4465
|
var d;
|
|
4583
|
-
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } =
|
|
4466
|
+
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = Sr({
|
|
4584
4467
|
queryFn: () => ve.get("coach/training", e)
|
|
4585
4468
|
}), l = (a) => {
|
|
4586
4469
|
n((c) => c === a ? void 0 : a);
|
|
@@ -4603,26 +4486,16 @@ const Ui = {
|
|
|
4603
4486
|
] }) });
|
|
4604
4487
|
}, ds = ({ config: e, client: r, onSelect: i }) => {
|
|
4605
4488
|
const n = async () => await i(e, rt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = fn({
|
|
4606
|
-
// @ts-ignore
|
|
4607
4489
|
queryFn: n
|
|
4608
4490
|
}), u = typeof e.comingSoon == "function" ? e.comingSoon() : e.comingSoon;
|
|
4609
4491
|
return /* @__PURE__ */ v.jsx(Gn, { children: /* @__PURE__ */ v.jsxs($e, { children: [
|
|
4610
4492
|
/* @__PURE__ */ v.jsxs(se, { className: "justify-content-between", children: [
|
|
4611
4493
|
/* @__PURE__ */ v.jsx(Zn, { alt: "Teammate image", src: e.avatar }),
|
|
4612
|
-
/* @__PURE__ */ v.jsx("div", { children: e.availability.map((l) => /* @__PURE__ */ v.jsxs(
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
color: "success",
|
|
4616
|
-
tooltip: "",
|
|
4617
|
-
className: l,
|
|
4618
|
-
children: [
|
|
4619
|
-
u ? "Coming soon" : "Available",
|
|
4620
|
-
" in ",
|
|
4621
|
-
l
|
|
4622
|
-
]
|
|
4623
|
-
},
|
|
4494
|
+
/* @__PURE__ */ v.jsx("div", { children: e.availability.map((l) => /* @__PURE__ */ v.jsxs(lr, { color: "success", tooltip: "", className: l, children: [
|
|
4495
|
+
u ? "Coming soon" : "Available",
|
|
4496
|
+
" in ",
|
|
4624
4497
|
l
|
|
4625
|
-
)) })
|
|
4498
|
+
] }, l)) })
|
|
4626
4499
|
] }),
|
|
4627
4500
|
/* @__PURE__ */ v.jsxs(Je, { children: [
|
|
4628
4501
|
/* @__PURE__ */ v.jsx(Et, { tag: "h5", children: e.name }),
|
|
@@ -4635,7 +4508,7 @@ const Ui = {
|
|
|
4635
4508
|
{
|
|
4636
4509
|
size: "sm",
|
|
4637
4510
|
className: "cursor-pointer",
|
|
4638
|
-
onClick: o,
|
|
4511
|
+
onClick: () => o(),
|
|
4639
4512
|
color: "primary",
|
|
4640
4513
|
loading: t,
|
|
4641
4514
|
disabled: !!s,
|
|
@@ -4669,15 +4542,7 @@ const Ui = {
|
|
|
4669
4542
|
] })
|
|
4670
4543
|
] })
|
|
4671
4544
|
] }) });
|
|
4672
|
-
}, Fs = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(er, { children: ur.map((i) => /* @__PURE__ */ v.jsx(
|
|
4673
|
-
ds,
|
|
4674
|
-
{
|
|
4675
|
-
config: i,
|
|
4676
|
-
client: r,
|
|
4677
|
-
onSelect: e
|
|
4678
|
-
},
|
|
4679
|
-
i.name
|
|
4680
|
-
)) }) });
|
|
4545
|
+
}, Fs = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(er, { children: ur.map((i) => /* @__PURE__ */ v.jsx(ds, { config: i, client: r, onSelect: e }, i.name)) }) });
|
|
4681
4546
|
export {
|
|
4682
4547
|
Ct as C,
|
|
4683
4548
|
ws as D,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as Zy, j as Dn, l as fa, s as Qy, k as Jy, m as jy } from "./CoachForm.js";
|
|
2
2
|
import { s as Cn } from "./redux-toolkit.modern.js";
|
|
3
|
-
import { c as za, g as Vu } from "./
|
|
3
|
+
import { c as za, g as Vu } from "./Tooltip.js";
|
|
4
4
|
import { i as em } from "./is_dark.js";
|
|
5
5
|
var Uu = { exports: {} };
|
|
6
6
|
(function(Ee, me) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as U } from "./index2.js";
|
|
2
2
|
import { Card as bt, CardTitle as ht, CardBody as pt } from "reactstrap";
|
|
3
|
-
import { T as mt } from "./
|
|
3
|
+
import { T as mt } from "./Tooltip.js";
|
|
4
4
|
import { Prism as kt } from "react-syntax-highlighter";
|
|
5
5
|
import './redux-toolkit.css';const yt = "_iconButton_eti7u_1", wt = {
|
|
6
6
|
iconButton: yt
|