@altimateai/ui-components 0.0.1-beta.10
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/Button-BKBSxoPA.d.ts +14 -0
- package/dist/CoachForm.css +1 -0
- package/dist/CoachForm.js +40505 -0
- package/dist/DbtDocsRenderer.js +45647 -0
- package/dist/NativeSelect.js +8994 -0
- package/dist/assets/icons/index.d.ts +96 -0
- package/dist/assets/icons/index.js +49 -0
- package/dist/chatbotV2/index.d.ts +80 -0
- package/dist/chatbotV2/index.js +20 -0
- package/dist/flowchart-elk-definition-170a3958.js +46393 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +278 -0
- package/dist/index.js +72 -0
- package/dist/index2.js +682 -0
- package/dist/is_dark.js +8 -0
- package/dist/lineage/index.d.ts +189 -0
- package/dist/lineage/index.js +6680 -0
- package/dist/main.css +1 -0
- package/dist/main.js +4568 -0
- package/dist/mindmap-definition-44684416.js +20514 -0
- package/dist/redux-toolkit.css +1 -0
- package/dist/redux-toolkit.modern.js +12579 -0
- package/dist/shadcn/index.d.ts +521 -0
- package/dist/shadcn/index.js +6054 -0
- package/dist/storybook/Accordion.stories.tsx +52 -0
- package/dist/storybook/Alert.stories.tsx +61 -0
- package/dist/storybook/AlertDialog.stories.tsx +161 -0
- package/dist/storybook/Avatar.stories.tsx +58 -0
- package/dist/storybook/Badge.stories.tsx +36 -0
- package/dist/storybook/Button.stories.tsx +109 -0
- package/dist/storybook/Card.stories.tsx +69 -0
- package/dist/storybook/Checkbox.stories.tsx +65 -0
- package/dist/storybook/Command.stories.tsx +35 -0
- package/dist/storybook/DropdownMenu.stories.tsx +36 -0
- package/dist/storybook/Form.stories.tsx +114 -0
- package/dist/storybook/HoverCard.stories.tsx +99 -0
- package/dist/storybook/Input.stories.tsx +53 -0
- package/dist/storybook/Label.stories.tsx +42 -0
- package/dist/storybook/Menubar.stories.tsx +159 -0
- package/dist/storybook/Pagination.stories.tsx +152 -0
- package/dist/storybook/Popover.stories.tsx +23 -0
- package/dist/storybook/Progress.stories.tsx +89 -0
- package/dist/storybook/RadioGroup.stories.tsx +58 -0
- package/dist/storybook/Resizable.stories.tsx +119 -0
- package/dist/storybook/ScrollArea.stories.tsx +101 -0
- package/dist/storybook/Select.stories.tsx +118 -0
- package/dist/storybook/Sheet.stories.tsx +69 -0
- package/dist/storybook/Sidebar.stories.tsx +97 -0
- package/dist/storybook/Slider.stories.tsx +79 -0
- package/dist/storybook/Switch.stories.tsx +90 -0
- package/dist/storybook/Textarea.stories.tsx +50 -0
- package/dist/storybook/Toast.stories.tsx +107 -0
- package/dist/storybook/Tooltip.stories.tsx +28 -0
- package/dist/storybook/Typography.stories.tsx +178 -0
- package/dist/timeline-definition-8e5a9bc6.js +825 -0
- package/dist/types-6QSONCz1.d.ts +249 -0
- package/package.json +55 -0
- package/readme.md +11 -0
package/dist/main.js
ADDED
|
@@ -0,0 +1,4568 @@
|
|
|
1
|
+
import { Button as Ce, Card as $e, CardBody as Je, CardTitle as Et, CloseButton as Wn, FormGroup as Mt, Input as Lt, FormFeedback as Kn, Collapse as Xn, Alert as ln, Col as Gn, CardImg as Zn, CardSubtitle as Qn, CardText as Jn, Row as er } from "reactstrap";
|
|
2
|
+
import { g as yt, a as cn, A as ve, C as tr, I as Ie, T as nr } from "./redux-toolkit.modern.js";
|
|
3
|
+
import { K as dn, N as dt, O as rr, P as or, T as fn, V as se, W as ir, X as sr, Y as ar, Z as ur, _ as lr, $ as rt, a0 as cr, a1 as dr } from "./CoachForm.js";
|
|
4
|
+
import { j as v, A as pn, i as fr, k as pr, c as gr, D as hr, E as vr, h as mr, g as Er } from "./index2.js";
|
|
5
|
+
import * as te from "react";
|
|
6
|
+
import Z, { createContext as _e, useReducer as gn, useCallback as we, useMemo as fe, useContext as ye, useLayoutEffect as yr, useEffect as le, useRef as Se, useId as hn, useInsertionEffect as br, Children as De, isValidElement as Cr, useState as re, lazy as Sr } from "react";
|
|
7
|
+
import _r, { createPortal as bt } from "react-dom";
|
|
8
|
+
import { bi as Bt } from "./NativeSelect.js";
|
|
9
|
+
import { useFormik as Ar } from "formik";
|
|
10
|
+
import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
|
|
11
|
+
const Tr = () => {
|
|
12
|
+
var r, i, n;
|
|
13
|
+
const e = (n = (i = (r = window.location.hash) == null ? void 0 : r.split("#")[1]) == null ? void 0 : i.replace("!/", "")) == null ? void 0 : n.split("/");
|
|
14
|
+
return { name: e == null ? void 0 : e[1], resourceType: e == null ? void 0 : e[0] };
|
|
15
|
+
};
|
|
16
|
+
var vn = { exports: {} };
|
|
17
|
+
/*! web-highlighter v0.7.4 https://github.com/alienzhou/web-highlighter */
|
|
18
|
+
(function(e, r) {
|
|
19
|
+
(function(i, n) {
|
|
20
|
+
e.exports = n();
|
|
21
|
+
})(window, function() {
|
|
22
|
+
return function(i) {
|
|
23
|
+
var n = {};
|
|
24
|
+
function t(o) {
|
|
25
|
+
if (n[o]) return n[o].exports;
|
|
26
|
+
var s = n[o] = { i: o, l: !1, exports: {} };
|
|
27
|
+
return i[o].call(s.exports, s, s.exports, t), s.l = !0, s.exports;
|
|
28
|
+
}
|
|
29
|
+
return t.m = i, t.c = n, t.d = function(o, s, u) {
|
|
30
|
+
t.o(o, s) || Object.defineProperty(o, s, { enumerable: !0, get: u });
|
|
31
|
+
}, t.r = function(o) {
|
|
32
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(o, "__esModule", { value: !0 });
|
|
33
|
+
}, t.t = function(o, s) {
|
|
34
|
+
if (1 & s && (o = t(o)), 8 & s || 4 & s && typeof o == "object" && o && o.__esModule) return o;
|
|
35
|
+
var u = /* @__PURE__ */ Object.create(null);
|
|
36
|
+
if (t.r(u), Object.defineProperty(u, "default", { enumerable: !0, value: o }), 2 & s && typeof o != "string") for (var l in o) t.d(u, l, (function(d) {
|
|
37
|
+
return o[d];
|
|
38
|
+
}).bind(null, l));
|
|
39
|
+
return u;
|
|
40
|
+
}, t.n = function(o) {
|
|
41
|
+
var s = o && o.__esModule ? function() {
|
|
42
|
+
return o.default;
|
|
43
|
+
} : function() {
|
|
44
|
+
return o;
|
|
45
|
+
};
|
|
46
|
+
return t.d(s, "a", s), s;
|
|
47
|
+
}, t.o = function(o, s) {
|
|
48
|
+
return Object.prototype.hasOwnProperty.call(o, s);
|
|
49
|
+
}, t.p = "", t(t.s = 7);
|
|
50
|
+
}([function(i, n, t) {
|
|
51
|
+
var o, s = this && this.__extends || (o = function(c, f) {
|
|
52
|
+
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, p) {
|
|
53
|
+
g.__proto__ = p;
|
|
54
|
+
} || function(g, p) {
|
|
55
|
+
for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (g[m] = p[m]);
|
|
56
|
+
})(c, f);
|
|
57
|
+
}, function(c, f) {
|
|
58
|
+
function g() {
|
|
59
|
+
this.constructor = c;
|
|
60
|
+
}
|
|
61
|
+
o(c, f), c.prototype = f === null ? Object.create(f) : (g.prototype = f.prototype, new g());
|
|
62
|
+
}), u = this && this.__importDefault || function(c) {
|
|
63
|
+
return c && c.__esModule ? c : { default: c };
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.eventEmitter = n.INTERNAL_ERROR_EVENT = n.UNKNOWN_IDX = n.ROOT_IDX = n.getStylesheet = n.getDefaultOptions = n.CAMEL_DATASET_SPLIT_TYPE = n.CAMEL_DATASET_IDENTIFIER_EXTRA = n.CAMEL_DATASET_IDENTIFIER = n.DATASET_SPLIT_TYPE = n.DATASET_IDENTIFIER_EXTRA = n.DATASET_IDENTIFIER = n.STYLESHEET_ID = n.LOCAL_STORE_KEY = n.ID_DIVISION = void 0;
|
|
66
|
+
var l = u(t(10)), d = u(t(2));
|
|
67
|
+
n.ID_DIVISION = ";", n.LOCAL_STORE_KEY = "highlight-mengshou", n.STYLESHEET_ID = "highlight-mengshou-style", n.DATASET_IDENTIFIER = "highlight-id", n.DATASET_IDENTIFIER_EXTRA = "highlight-id-extra", n.DATASET_SPLIT_TYPE = "highlight-split-type", n.CAMEL_DATASET_IDENTIFIER = l.default(n.DATASET_IDENTIFIER), n.CAMEL_DATASET_IDENTIFIER_EXTRA = l.default(n.DATASET_IDENTIFIER_EXTRA), n.CAMEL_DATASET_SPLIT_TYPE = l.default(n.DATASET_SPLIT_TYPE), n.getDefaultOptions = function() {
|
|
68
|
+
return { $root: document || document.documentElement, exceptSelectors: null, wrapTag: "span", verbose: !1, style: { className: "highlight-mengshou-wrap" } };
|
|
69
|
+
}, n.getStylesheet = function() {
|
|
70
|
+
return `
|
|
71
|
+
.` + n.getDefaultOptions().style.className + ` {
|
|
72
|
+
background: #ff9;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
.` + n.getDefaultOptions().style.className + `.active {
|
|
76
|
+
background: #ffb;
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
}, n.ROOT_IDX = -2, n.UNKNOWN_IDX = -1, n.INTERNAL_ERROR_EVENT = "error";
|
|
80
|
+
var a = function(c) {
|
|
81
|
+
function f() {
|
|
82
|
+
return c !== null && c.apply(this, arguments) || this;
|
|
83
|
+
}
|
|
84
|
+
return s(f, c), f;
|
|
85
|
+
}(d.default);
|
|
86
|
+
n.eventEmitter = new a();
|
|
87
|
+
}, function(i, n, t) {
|
|
88
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.UserInputEvent = n.SelectedNodeType = n.CreateFrom = n.EventType = n.ERROR = n.SplitType = void 0, function(o) {
|
|
89
|
+
o.none = "none", o.head = "head", o.tail = "tail", o.both = "both";
|
|
90
|
+
}(n.SplitType || (n.SplitType = {})), function(o) {
|
|
91
|
+
o.DOM_TYPE_ERROR = "[DOM] Receive wrong node type.", o.DOM_SELECTION_EMPTY = "[DOM] The selection contains no dom node, may be you except them.", o.RANGE_INVALID = "[RANGE] Got invalid dom range, can't convert to a valid highlight range.", o.RANGE_NODE_INVALID = "[RANGE] Start or end node isn't a text node, it may occur an error.", o.DB_ID_DUPLICATE_ERROR = "[STORE] Unique id conflict.", o.CACHE_SET_ERROR = "[CACHE] Cache.data can't be set manually, please use .save().", o.SOURCE_TYPE_ERROR = "[SOURCE] Object isn't a highlight source instance.", o.HIGHLIGHT_RANGE_FROZEN = "[HIGHLIGHT_RANGE] A highlight range must be frozen before render.", o.HIGHLIGHT_SOURCE_RECREATE = "[HIGHLIGHT_SOURCE] Recreate highlights from sources error.", o.HIGHLIGHT_SOURCE_NONE_RENDER = "[HIGHLIGHT_SOURCE] This highlight source isn't rendered. May be the exception skips it or the dom structure has changed.";
|
|
92
|
+
}(n.ERROR || (n.ERROR = {})), function(o) {
|
|
93
|
+
o.CREATE = "selection:create", o.REMOVE = "selection:remove", o.MODIFY = "selection:modify", o.HOVER = "selection:hover", o.HOVER_OUT = "selection:hover-out", o.CLICK = "selection:click";
|
|
94
|
+
}(n.EventType || (n.EventType = {})), function(o) {
|
|
95
|
+
o.STORE = "from-store", o.INPUT = "from-input";
|
|
96
|
+
}(n.CreateFrom || (n.CreateFrom = {})), function(o) {
|
|
97
|
+
o.text = "text", o.span = "span";
|
|
98
|
+
}(n.SelectedNodeType || (n.SelectedNodeType = {})), function(o) {
|
|
99
|
+
o.touchend = "touchend", o.mouseup = "mouseup", o.touchstart = "touchstart", o.click = "click", o.mouseover = "mouseover";
|
|
100
|
+
}(n.UserInputEvent || (n.UserInputEvent = {}));
|
|
101
|
+
}, function(i, n, t) {
|
|
102
|
+
var o = this && this.__read || function(l, d) {
|
|
103
|
+
var a = typeof Symbol == "function" && l[Symbol.iterator];
|
|
104
|
+
if (!a) return l;
|
|
105
|
+
var c, f, g = a.call(l), p = [];
|
|
106
|
+
try {
|
|
107
|
+
for (; (d === void 0 || d-- > 0) && !(c = g.next()).done; ) p.push(c.value);
|
|
108
|
+
} catch (m) {
|
|
109
|
+
f = { error: m };
|
|
110
|
+
} finally {
|
|
111
|
+
try {
|
|
112
|
+
c && !c.done && (a = g.return) && a.call(g);
|
|
113
|
+
} finally {
|
|
114
|
+
if (f) throw f.error;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return p;
|
|
118
|
+
}, s = this && this.__spread || function() {
|
|
119
|
+
for (var l = [], d = 0; d < arguments.length; d++) l = l.concat(o(arguments[d]));
|
|
120
|
+
return l;
|
|
121
|
+
};
|
|
122
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
123
|
+
var u = function() {
|
|
124
|
+
function l() {
|
|
125
|
+
this.handlersMap = /* @__PURE__ */ Object.create(null);
|
|
126
|
+
}
|
|
127
|
+
return l.prototype.on = function(d, a) {
|
|
128
|
+
return this.handlersMap[d] || (this.handlersMap[d] = []), this.handlersMap[d].push(a), this;
|
|
129
|
+
}, l.prototype.off = function(d, a) {
|
|
130
|
+
return this.handlersMap[d] && this.handlersMap[d].splice(this.handlersMap[d].indexOf(a) >>> 0, 1), this;
|
|
131
|
+
}, l.prototype.emit = function(d) {
|
|
132
|
+
for (var a = [], c = 1; c < arguments.length; c++) a[c - 1] = arguments[c];
|
|
133
|
+
return this.handlersMap[d] && this.handlersMap[d].slice().forEach(function(f) {
|
|
134
|
+
f.apply(void 0, s(a));
|
|
135
|
+
}), this;
|
|
136
|
+
}, l;
|
|
137
|
+
}();
|
|
138
|
+
n.default = u;
|
|
139
|
+
}, function(i, n, t) {
|
|
140
|
+
var o = this && this.__importDefault || function(d) {
|
|
141
|
+
return d && d.__esModule ? d : { default: d };
|
|
142
|
+
};
|
|
143
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
144
|
+
var s = o(t(5)), u = t(9), l = function() {
|
|
145
|
+
function d(a, c, f, g, p) {
|
|
146
|
+
this.startMeta = a, this.endMeta = c, this.text = f, this.id = g, this.__isHighlightSource = {}, p && (this.extra = p);
|
|
147
|
+
}
|
|
148
|
+
return d.prototype.deSerialize = function(a, c) {
|
|
149
|
+
var f = u.queryElementNode(this, a), g = f.start, p = f.end, m = u.getTextChildByOffset(g, this.startMeta.textOffset), h = u.getTextChildByOffset(p, this.endMeta.textOffset);
|
|
150
|
+
if (!c.Serialize.Restore.isEmpty()) {
|
|
151
|
+
var E = c.Serialize.Restore.call(this, m, h) || [];
|
|
152
|
+
m = E[0] || m, h = E[1] || h;
|
|
153
|
+
}
|
|
154
|
+
return new s.default(m, h, this.text, this.id, !0);
|
|
155
|
+
}, d;
|
|
156
|
+
}();
|
|
157
|
+
n.default = l;
|
|
158
|
+
}, function(i, n, t) {
|
|
159
|
+
var o = this && this.__values || function(a) {
|
|
160
|
+
var c = typeof Symbol == "function" && Symbol.iterator, f = c && a[c], g = 0;
|
|
161
|
+
if (f) return f.call(a);
|
|
162
|
+
if (a && typeof a.length == "number") return { next: function() {
|
|
163
|
+
return a && g >= a.length && (a = void 0), { value: a && a[g++], done: !a };
|
|
164
|
+
} };
|
|
165
|
+
throw new TypeError(c ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
166
|
+
}, s = this && this.__read || function(a, c) {
|
|
167
|
+
var f = typeof Symbol == "function" && a[Symbol.iterator];
|
|
168
|
+
if (!f) return a;
|
|
169
|
+
var g, p, m = f.call(a), h = [];
|
|
170
|
+
try {
|
|
171
|
+
for (; (c === void 0 || c-- > 0) && !(g = m.next()).done; ) h.push(g.value);
|
|
172
|
+
} catch (E) {
|
|
173
|
+
p = { error: E };
|
|
174
|
+
} finally {
|
|
175
|
+
try {
|
|
176
|
+
g && !g.done && (f = m.return) && f.call(m);
|
|
177
|
+
} finally {
|
|
178
|
+
if (p) throw p.error;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return h;
|
|
182
|
+
}, u = this && this.__spread || function() {
|
|
183
|
+
for (var a = [], c = 0; c < arguments.length; c++) a = a.concat(s(arguments[c]));
|
|
184
|
+
return a;
|
|
185
|
+
};
|
|
186
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.hasClass = n.removeAllClass = n.removeClass = n.addClass = n.addEventListener = n.removeEventListener = n.forEach = n.getHighlightById = n.getHighlightsByRoot = n.getExtraHighlightId = n.getHighlightId = n.isHighlightWrapNode = void 0;
|
|
187
|
+
var l = t(0);
|
|
188
|
+
n.isHighlightWrapNode = function(a) {
|
|
189
|
+
return !!a.dataset && !!a.dataset[l.CAMEL_DATASET_IDENTIFIER];
|
|
190
|
+
};
|
|
191
|
+
var d = function(a, c) {
|
|
192
|
+
for (var f = !1, g = null; a; ) {
|
|
193
|
+
if (n.isHighlightWrapNode(a) && (g = a), a === c) {
|
|
194
|
+
f = !0;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
a = a.parentNode;
|
|
198
|
+
}
|
|
199
|
+
return f ? g : null;
|
|
200
|
+
};
|
|
201
|
+
n.getHighlightId = function(a, c) {
|
|
202
|
+
return (a = d(a, c)) ? a.dataset[l.CAMEL_DATASET_IDENTIFIER] : "";
|
|
203
|
+
}, n.getExtraHighlightId = function(a, c) {
|
|
204
|
+
return (a = d(a, c)) ? a.dataset[l.CAMEL_DATASET_IDENTIFIER_EXTRA].split(l.ID_DIVISION).filter(function(f) {
|
|
205
|
+
return f;
|
|
206
|
+
}) : [];
|
|
207
|
+
}, n.getHighlightsByRoot = function(a, c) {
|
|
208
|
+
var f, g;
|
|
209
|
+
Array.isArray(a) || (a = [a]);
|
|
210
|
+
var p = [];
|
|
211
|
+
try {
|
|
212
|
+
for (var m = o(a), h = m.next(); !h.done; h = m.next()) {
|
|
213
|
+
var E = h.value.querySelectorAll(c + "[data-" + l.DATASET_IDENTIFIER + "]");
|
|
214
|
+
p.push.apply(p, E);
|
|
215
|
+
}
|
|
216
|
+
} catch (C) {
|
|
217
|
+
f = { error: C };
|
|
218
|
+
} finally {
|
|
219
|
+
try {
|
|
220
|
+
h && !h.done && (g = m.return) && g.call(m);
|
|
221
|
+
} finally {
|
|
222
|
+
if (f) throw f.error;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return p;
|
|
226
|
+
}, n.getHighlightById = function(a, c, f) {
|
|
227
|
+
var g, p, m = [], h = new RegExp("(" + c + "\\" + l.ID_DIVISION + "|\\" + l.ID_DIVISION + "?" + c + "$)"), E = a.querySelectorAll(f + "[data-" + l.DATASET_IDENTIFIER + "]");
|
|
228
|
+
try {
|
|
229
|
+
for (var C = o(E), S = C.next(); !S.done; S = C.next()) {
|
|
230
|
+
var I = S.value;
|
|
231
|
+
if (I.dataset[l.CAMEL_DATASET_IDENTIFIER] !== c) {
|
|
232
|
+
var y = I.dataset[l.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
233
|
+
h.test(y) && m.push(I);
|
|
234
|
+
} else m.push(I);
|
|
235
|
+
}
|
|
236
|
+
} catch (A) {
|
|
237
|
+
g = { error: A };
|
|
238
|
+
} finally {
|
|
239
|
+
try {
|
|
240
|
+
S && !S.done && (p = C.return) && p.call(C);
|
|
241
|
+
} finally {
|
|
242
|
+
if (g) throw g.error;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return m;
|
|
246
|
+
}, n.forEach = function(a, c) {
|
|
247
|
+
for (var f = 0; f < a.length; f++) c(a[f], f, a);
|
|
248
|
+
}, n.removeEventListener = function(a, c, f) {
|
|
249
|
+
a.removeEventListener(c, f);
|
|
250
|
+
}, n.addEventListener = function(a, c, f) {
|
|
251
|
+
return a.addEventListener(c, f), function() {
|
|
252
|
+
n.removeEventListener(a, c, f);
|
|
253
|
+
};
|
|
254
|
+
}, n.addClass = function(a, c) {
|
|
255
|
+
var f;
|
|
256
|
+
Array.isArray(c) || (c = [c]), (f = a.classList).add.apply(f, u(c));
|
|
257
|
+
}, n.removeClass = function(a, c) {
|
|
258
|
+
a.classList.remove(c);
|
|
259
|
+
}, n.removeAllClass = function(a) {
|
|
260
|
+
a.className = "";
|
|
261
|
+
}, n.hasClass = function(a, c) {
|
|
262
|
+
return a.classList.contains(c);
|
|
263
|
+
};
|
|
264
|
+
}, function(i, n, t) {
|
|
265
|
+
var o = this && this.__importDefault || function(g) {
|
|
266
|
+
return g && g.__esModule ? g : { default: g };
|
|
267
|
+
};
|
|
268
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
269
|
+
var s = o(t(3)), u = t(1), l = t(11), d = o(t(6)), a = t(12), c = t(0), f = function() {
|
|
270
|
+
function g(p, m, h, E, C) {
|
|
271
|
+
C === void 0 && (C = !1), p.$node.nodeType === 3 && m.$node.nodeType === 3 || c.eventEmitter.emit(c.INTERNAL_ERROR_EVENT, { type: u.ERROR.RANGE_NODE_INVALID }), this.start = a.formatDomNode(p), this.end = a.formatDomNode(m), this.text = h, this.frozen = C, this.id = E;
|
|
272
|
+
}
|
|
273
|
+
return g.fromSelection = function(p) {
|
|
274
|
+
var m = l.getDomRange();
|
|
275
|
+
if (!m) return null;
|
|
276
|
+
var h = { $node: m.startContainer, offset: m.startOffset }, E = { $node: m.endContainer, offset: m.endOffset }, C = m.toString(), S = p.call(h, E, C);
|
|
277
|
+
return new g(h, E, C, S = S ?? d.default());
|
|
278
|
+
}, g.prototype.serialize = function(p, m) {
|
|
279
|
+
var h, E = a.getDomMeta(this.start.$node, this.start.offset, p), C = a.getDomMeta(this.end.$node, this.end.offset, p);
|
|
280
|
+
return m.Serialize.RecordInfo.isEmpty() || (h = m.Serialize.RecordInfo.call(this.start, this.end, p)), this.frozen = !0, new s.default(E, C, this.text, this.id, h);
|
|
281
|
+
}, g.removeDomRange = l.removeSelection, g;
|
|
282
|
+
}();
|
|
283
|
+
n.default = f;
|
|
284
|
+
}, function(i, n, t) {
|
|
285
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.default = function o(s) {
|
|
286
|
+
return s ? (s ^ 16 * Math.random() >> s / 4).toString(16) : ("10000000-1000-4000-8000" + -1e11).replace(/[018]/g, o);
|
|
287
|
+
};
|
|
288
|
+
}, function(i, n, t) {
|
|
289
|
+
i.exports = t(8);
|
|
290
|
+
}, function(i, n, t) {
|
|
291
|
+
var o, s = this && this.__extends || (o = function(y, A) {
|
|
292
|
+
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(D, b) {
|
|
293
|
+
D.__proto__ = b;
|
|
294
|
+
} || function(D, b) {
|
|
295
|
+
for (var w in b) Object.prototype.hasOwnProperty.call(b, w) && (D[w] = b[w]);
|
|
296
|
+
})(y, A);
|
|
297
|
+
}, function(y, A) {
|
|
298
|
+
function D() {
|
|
299
|
+
this.constructor = y;
|
|
300
|
+
}
|
|
301
|
+
o(y, A), y.prototype = A === null ? Object.create(A) : (D.prototype = A.prototype, new D());
|
|
302
|
+
}), u = this && this.__assign || function() {
|
|
303
|
+
return (u = Object.assign || function(y) {
|
|
304
|
+
for (var A, D = 1, b = arguments.length; D < b; D++) for (var w in A = arguments[D]) Object.prototype.hasOwnProperty.call(A, w) && (y[w] = A[w]);
|
|
305
|
+
return y;
|
|
306
|
+
}).apply(this, arguments);
|
|
307
|
+
}, l = this && this.__importDefault || function(y) {
|
|
308
|
+
return y && y.__esModule ? y : { default: y };
|
|
309
|
+
};
|
|
310
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
311
|
+
var d = l(t(2)), a = l(t(5)), c = l(t(3)), f = l(t(6)), g = l(t(13)), p = l(t(14)), m = l(t(16)), h = l(t(17)), E = t(0), C = t(1), S = t(4), I = function(y) {
|
|
312
|
+
function A(D) {
|
|
313
|
+
var b = y.call(this) || this;
|
|
314
|
+
b.event = p.default(), b.run = function() {
|
|
315
|
+
return S.addEventListener(b.options.$root, b.event.PointerEnd, b._handleSelection);
|
|
316
|
+
}, b.stop = function() {
|
|
317
|
+
S.removeEventListener(b.options.$root, b.event.PointerEnd, b._handleSelection);
|
|
318
|
+
}, b.addClass = function(T, P) {
|
|
319
|
+
b.getDoms(P).forEach(function(q) {
|
|
320
|
+
S.addClass(q, T);
|
|
321
|
+
});
|
|
322
|
+
}, b.removeClass = function(T, P) {
|
|
323
|
+
b.getDoms(P).forEach(function(q) {
|
|
324
|
+
S.removeClass(q, T);
|
|
325
|
+
});
|
|
326
|
+
}, b.getIdByDom = function(T) {
|
|
327
|
+
return S.getHighlightId(T, b.options.$root);
|
|
328
|
+
}, b.getExtraIdByDom = function(T) {
|
|
329
|
+
return S.getExtraHighlightId(T, b.options.$root);
|
|
330
|
+
}, b.getDoms = function(T) {
|
|
331
|
+
return T ? S.getHighlightById(b.options.$root, T, b.options.wrapTag) : S.getHighlightsByRoot(b.options.$root, b.options.wrapTag);
|
|
332
|
+
}, b.dispose = function() {
|
|
333
|
+
var T = b.options.$root;
|
|
334
|
+
S.removeEventListener(T, b.event.PointerOver, b._handleHighlightHover), S.removeEventListener(T, b.event.PointerEnd, b._handleSelection), S.removeEventListener(T, b.event.PointerTap, b._handleHighlightClick), b.removeAll();
|
|
335
|
+
}, b.setOption = function(T) {
|
|
336
|
+
b.options = u(u({}, b.options), T), b.painter = new h.default({ $root: b.options.$root, wrapTag: b.options.wrapTag, className: b.options.style.className, exceptSelectors: b.options.exceptSelectors }, b.hooks);
|
|
337
|
+
}, b.fromRange = function(T) {
|
|
338
|
+
var P = { $node: T.startContainer, offset: T.startOffset }, q = { $node: T.endContainer, offset: T.endOffset }, Y = T.toString(), F = b.hooks.Render.UUID.call(P, q, Y);
|
|
339
|
+
F = F ?? f.default();
|
|
340
|
+
var V = new a.default(P, q, Y, F);
|
|
341
|
+
return V ? b._highlightFromHRange(V) : (E.eventEmitter.emit(E.INTERNAL_ERROR_EVENT, { type: C.ERROR.RANGE_INVALID }), null);
|
|
342
|
+
}, b.fromStore = function(T, P, q, Y, F) {
|
|
343
|
+
var V = new c.default(T, P, q, Y, F);
|
|
344
|
+
try {
|
|
345
|
+
return b._highlightFromHSource(V), V;
|
|
346
|
+
} catch (N) {
|
|
347
|
+
return E.eventEmitter.emit(E.INTERNAL_ERROR_EVENT, { type: C.ERROR.HIGHLIGHT_SOURCE_RECREATE, error: N, detail: V }), null;
|
|
348
|
+
}
|
|
349
|
+
}, b._getHooks = function() {
|
|
350
|
+
return { Render: { UUID: new g.default("Render.UUID"), SelectedNodes: new g.default("Render.SelectedNodes"), WrapNode: new g.default("Render.WrapNode") }, Serialize: { Restore: new g.default("Serialize.Restore"), RecordInfo: new g.default("Serialize.RecordInfo") }, Remove: { UpdateNodes: new g.default("Remove.UpdateNodes") } };
|
|
351
|
+
}, b._highlightFromHRange = function(T) {
|
|
352
|
+
var P = T.serialize(b.options.$root, b.hooks);
|
|
353
|
+
return b.painter.highlightRange(T).length === 0 ? (E.eventEmitter.emit(E.INTERNAL_ERROR_EVENT, { type: C.ERROR.DOM_SELECTION_EMPTY }), null) : (b.cache.save(P), b.emit(C.EventType.CREATE, { sources: [P], type: C.CreateFrom.INPUT }, b), P);
|
|
354
|
+
}, b._handleSelection = function() {
|
|
355
|
+
var T = a.default.fromSelection(b.hooks.Render.UUID);
|
|
356
|
+
T && (b._highlightFromHRange(T), a.default.removeDomRange());
|
|
357
|
+
}, b._handleHighlightHover = function(T) {
|
|
358
|
+
var P = T.target;
|
|
359
|
+
if (!S.isHighlightWrapNode(P)) return b._hoverId && b.emit(C.EventType.HOVER_OUT, { id: b._hoverId }, b, T), void (b._hoverId = null);
|
|
360
|
+
var q = S.getHighlightId(P, b.options.$root);
|
|
361
|
+
b._hoverId !== q && (b._hoverId && b.emit(C.EventType.HOVER_OUT, { id: b._hoverId }, b, T), b._hoverId = q, b.emit(C.EventType.HOVER, { id: b._hoverId }, b, T));
|
|
362
|
+
}, b._handleError = function(T) {
|
|
363
|
+
b.options.verbose && console.warn(T);
|
|
364
|
+
}, b._handleHighlightClick = function(T) {
|
|
365
|
+
var P = T.target;
|
|
366
|
+
if (S.isHighlightWrapNode(P)) {
|
|
367
|
+
var q = S.getHighlightId(P, b.options.$root);
|
|
368
|
+
b.emit(C.EventType.CLICK, { id: q }, b, T);
|
|
369
|
+
}
|
|
370
|
+
}, b.options = E.getDefaultOptions(), b.hooks = b._getHooks(), b.setOption(D), b.cache = new m.default();
|
|
371
|
+
var w = b.options.$root;
|
|
372
|
+
return S.addEventListener(w, b.event.PointerOver, b._handleHighlightHover), S.addEventListener(w, b.event.PointerTap, b._handleHighlightClick), E.eventEmitter.on(E.INTERNAL_ERROR_EVENT, b._handleError), b;
|
|
373
|
+
}
|
|
374
|
+
return s(A, y), A.prototype.remove = function(D) {
|
|
375
|
+
if (D) {
|
|
376
|
+
var b = this.painter.removeHighlight(D);
|
|
377
|
+
this.cache.remove(D), b && this.emit(C.EventType.REMOVE, { ids: [D] }, this);
|
|
378
|
+
}
|
|
379
|
+
}, A.prototype.removeAll = function() {
|
|
380
|
+
this.painter.removeAllHighlight();
|
|
381
|
+
var D = this.cache.removeAll();
|
|
382
|
+
this.emit(C.EventType.REMOVE, { ids: D }, this);
|
|
383
|
+
}, A.prototype._highlightFromHSource = function(D) {
|
|
384
|
+
D === void 0 && (D = []);
|
|
385
|
+
var b = this.painter.highlightSource(D);
|
|
386
|
+
this.emit(C.EventType.CREATE, { sources: b, type: C.CreateFrom.STORE }, this), this.cache.save(D);
|
|
387
|
+
}, A.event = C.EventType, A.isHighlightWrapNode = S.isHighlightWrapNode, A.isHighlightSource = function(D) {
|
|
388
|
+
return !!D.__isHighlightSource;
|
|
389
|
+
}, A;
|
|
390
|
+
}(d.default);
|
|
391
|
+
n.default = I;
|
|
392
|
+
}, function(i, n, t) {
|
|
393
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.queryElementNode = n.getTextChildByOffset = void 0;
|
|
394
|
+
var o = t(0);
|
|
395
|
+
n.getTextChildByOffset = function(s, u) {
|
|
396
|
+
for (var l = [s], d = null, a = 0, c = 0; d = l.pop(); ) {
|
|
397
|
+
for (var f = d.childNodes, g = f.length - 1; g >= 0; g--) l.push(f[g]);
|
|
398
|
+
if (d.nodeType === 3 && (c = u - a, (a += d.textContent.length) >= u)) break;
|
|
399
|
+
}
|
|
400
|
+
return d || (d = s), { $node: d, offset: c };
|
|
401
|
+
}, n.queryElementNode = function(s, u) {
|
|
402
|
+
return { start: s.startMeta.parentIndex === o.ROOT_IDX ? u : u.getElementsByTagName(s.startMeta.parentTagName)[s.startMeta.parentIndex], end: s.endMeta.parentIndex === o.ROOT_IDX ? u : u.getElementsByTagName(s.endMeta.parentTagName)[s.endMeta.parentIndex] };
|
|
403
|
+
};
|
|
404
|
+
}, function(i, n, t) {
|
|
405
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.default = function(o) {
|
|
406
|
+
return o.split("-").reduce(function(s, u, l) {
|
|
407
|
+
return s + (l === 0 ? u : u[0].toUpperCase() + u.slice(1));
|
|
408
|
+
}, "");
|
|
409
|
+
};
|
|
410
|
+
}, function(i, n, t) {
|
|
411
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.removeSelection = n.getDomRange = void 0, n.getDomRange = function() {
|
|
412
|
+
var o = window.getSelection();
|
|
413
|
+
return o.isCollapsed ? (console.debug("no text selected"), null) : o.getRangeAt(0);
|
|
414
|
+
}, n.removeSelection = function() {
|
|
415
|
+
window.getSelection().removeAllRanges();
|
|
416
|
+
};
|
|
417
|
+
}, function(i, n, t) {
|
|
418
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.formatDomNode = n.getDomMeta = void 0;
|
|
419
|
+
var o = t(0);
|
|
420
|
+
n.getDomMeta = function(s, u, l) {
|
|
421
|
+
var d = function(f) {
|
|
422
|
+
if (f instanceof HTMLElement && (!f.dataset || !f.dataset[o.CAMEL_DATASET_IDENTIFIER])) return f;
|
|
423
|
+
for (var g = f.parentNode; g != null && g.dataset[o.CAMEL_DATASET_IDENTIFIER]; ) g = g.parentNode;
|
|
424
|
+
return g;
|
|
425
|
+
}(s), a = d === l ? o.ROOT_IDX : function(f, g) {
|
|
426
|
+
for (var p = f.tagName, m = g.getElementsByTagName(p), h = 0; h < m.length; h++) if (f === m[h]) return h;
|
|
427
|
+
return o.UNKNOWN_IDX;
|
|
428
|
+
}(d, l), c = function(f, g) {
|
|
429
|
+
for (var p = [f], m = null, h = 0; m = p.pop(); ) {
|
|
430
|
+
for (var E = m.childNodes, C = E.length - 1; C >= 0; C--) p.push(E[C]);
|
|
431
|
+
if (m.nodeType === 3 && m !== g) h += m.textContent.length;
|
|
432
|
+
else if (m.nodeType === 3) break;
|
|
433
|
+
}
|
|
434
|
+
return h;
|
|
435
|
+
}(d, s);
|
|
436
|
+
return { parentTagName: d.tagName, parentIndex: a, textOffset: c + u };
|
|
437
|
+
}, n.formatDomNode = function(s) {
|
|
438
|
+
return s.$node.nodeType === 3 || s.$node.nodeType === 4 || s.$node.nodeType === 8 ? s : { $node: s.$node.childNodes[s.offset], offset: 0 };
|
|
439
|
+
};
|
|
440
|
+
}, function(i, n, t) {
|
|
441
|
+
var o = this && this.__read || function(l, d) {
|
|
442
|
+
var a = typeof Symbol == "function" && l[Symbol.iterator];
|
|
443
|
+
if (!a) return l;
|
|
444
|
+
var c, f, g = a.call(l), p = [];
|
|
445
|
+
try {
|
|
446
|
+
for (; (d === void 0 || d-- > 0) && !(c = g.next()).done; ) p.push(c.value);
|
|
447
|
+
} catch (m) {
|
|
448
|
+
f = { error: m };
|
|
449
|
+
} finally {
|
|
450
|
+
try {
|
|
451
|
+
c && !c.done && (a = g.return) && a.call(g);
|
|
452
|
+
} finally {
|
|
453
|
+
if (f) throw f.error;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
return p;
|
|
457
|
+
}, s = this && this.__spread || function() {
|
|
458
|
+
for (var l = [], d = 0; d < arguments.length; d++) l = l.concat(o(arguments[d]));
|
|
459
|
+
return l;
|
|
460
|
+
};
|
|
461
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
462
|
+
var u = function() {
|
|
463
|
+
function l(d) {
|
|
464
|
+
this.name = "", this.ops = [], this.name = d;
|
|
465
|
+
}
|
|
466
|
+
return l.prototype.tap = function(d) {
|
|
467
|
+
var a = this;
|
|
468
|
+
return this.ops.indexOf(d) === -1 && this.ops.push(d), function() {
|
|
469
|
+
a.remove(d);
|
|
470
|
+
};
|
|
471
|
+
}, l.prototype.remove = function(d) {
|
|
472
|
+
var a = this.ops.indexOf(d);
|
|
473
|
+
a < 0 || this.ops.splice(a, 1);
|
|
474
|
+
}, l.prototype.isEmpty = function() {
|
|
475
|
+
return this.ops.length === 0;
|
|
476
|
+
}, l.prototype.call = function() {
|
|
477
|
+
for (var d, a = [], c = 0; c < arguments.length; c++) a[c] = arguments[c];
|
|
478
|
+
return this.ops.forEach(function(f) {
|
|
479
|
+
d = f.apply(void 0, s(a));
|
|
480
|
+
}), d;
|
|
481
|
+
}, l;
|
|
482
|
+
}();
|
|
483
|
+
n.default = u;
|
|
484
|
+
}, function(i, n, t) {
|
|
485
|
+
var o = this && this.__importDefault || function(l) {
|
|
486
|
+
return l && l.__esModule ? l : { default: l };
|
|
487
|
+
};
|
|
488
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
489
|
+
var s = t(1), u = o(t(15));
|
|
490
|
+
n.default = function() {
|
|
491
|
+
var l = u.default(window.navigator.userAgent);
|
|
492
|
+
return { PointerEnd: l ? s.UserInputEvent.touchend : s.UserInputEvent.mouseup, PointerTap: l ? s.UserInputEvent.touchstart : s.UserInputEvent.click, PointerOver: l ? s.UserInputEvent.touchstart : s.UserInputEvent.mouseover };
|
|
493
|
+
};
|
|
494
|
+
}, function(i, n, t) {
|
|
495
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
496
|
+
var o = /Android|iPhone|BlackBerry|BB10|Opera Mini|Phone|Mobile|Silk|Windows Phone|Mobile(?:.+)Firefox\b/i;
|
|
497
|
+
n.default = function(s) {
|
|
498
|
+
return o.test(s);
|
|
499
|
+
};
|
|
500
|
+
}, function(i, n, t) {
|
|
501
|
+
var o, s = this && this.__extends || (o = function(f, g) {
|
|
502
|
+
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, m) {
|
|
503
|
+
p.__proto__ = m;
|
|
504
|
+
} || function(p, m) {
|
|
505
|
+
for (var h in m) Object.prototype.hasOwnProperty.call(m, h) && (p[h] = m[h]);
|
|
506
|
+
})(f, g);
|
|
507
|
+
}, function(f, g) {
|
|
508
|
+
function p() {
|
|
509
|
+
this.constructor = f;
|
|
510
|
+
}
|
|
511
|
+
o(f, g), f.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
|
|
512
|
+
}), u = this && this.__values || function(f) {
|
|
513
|
+
var g = typeof Symbol == "function" && Symbol.iterator, p = g && f[g], m = 0;
|
|
514
|
+
if (p) return p.call(f);
|
|
515
|
+
if (f && typeof f.length == "number") return { next: function() {
|
|
516
|
+
return f && m >= f.length && (f = void 0), { value: f && f[m++], done: !f };
|
|
517
|
+
} };
|
|
518
|
+
throw new TypeError(g ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
519
|
+
}, l = this && this.__importDefault || function(f) {
|
|
520
|
+
return f && f.__esModule ? f : { default: f };
|
|
521
|
+
};
|
|
522
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
523
|
+
var d = l(t(2)), a = t(1), c = function(f) {
|
|
524
|
+
function g() {
|
|
525
|
+
var p = f !== null && f.apply(this, arguments) || this;
|
|
526
|
+
return p._data = /* @__PURE__ */ new Map(), p;
|
|
527
|
+
}
|
|
528
|
+
return s(g, f), Object.defineProperty(g.prototype, "data", { get: function() {
|
|
529
|
+
return this.getAll();
|
|
530
|
+
}, set: function(p) {
|
|
531
|
+
throw a.ERROR.CACHE_SET_ERROR;
|
|
532
|
+
}, enumerable: !1, configurable: !0 }), g.prototype.save = function(p) {
|
|
533
|
+
var m = this;
|
|
534
|
+
Array.isArray(p) ? p.forEach(function(h) {
|
|
535
|
+
return m._data.set(h.id, h);
|
|
536
|
+
}) : this._data.set(p.id, p);
|
|
537
|
+
}, g.prototype.get = function(p) {
|
|
538
|
+
return this._data.get(p);
|
|
539
|
+
}, g.prototype.remove = function(p) {
|
|
540
|
+
this._data.delete(p);
|
|
541
|
+
}, g.prototype.getAll = function() {
|
|
542
|
+
var p, m, h = [];
|
|
543
|
+
try {
|
|
544
|
+
for (var E = u(this._data), C = E.next(); !C.done; C = E.next()) {
|
|
545
|
+
var S = C.value;
|
|
546
|
+
h.push(S[1]);
|
|
547
|
+
}
|
|
548
|
+
} catch (I) {
|
|
549
|
+
p = { error: I };
|
|
550
|
+
} finally {
|
|
551
|
+
try {
|
|
552
|
+
C && !C.done && (m = E.return) && m.call(E);
|
|
553
|
+
} finally {
|
|
554
|
+
if (p) throw p.error;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return h;
|
|
558
|
+
}, g.prototype.removeAll = function() {
|
|
559
|
+
var p, m, h = [];
|
|
560
|
+
try {
|
|
561
|
+
for (var E = u(this._data), C = E.next(); !C.done; C = E.next()) {
|
|
562
|
+
var S = C.value;
|
|
563
|
+
h.push(S[0]);
|
|
564
|
+
}
|
|
565
|
+
} catch (I) {
|
|
566
|
+
p = { error: I };
|
|
567
|
+
} finally {
|
|
568
|
+
try {
|
|
569
|
+
C && !C.done && (m = E.return) && m.call(E);
|
|
570
|
+
} finally {
|
|
571
|
+
if (p) throw p.error;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
return this._data = /* @__PURE__ */ new Map(), h;
|
|
575
|
+
}, g;
|
|
576
|
+
}(d.default);
|
|
577
|
+
n.default = c;
|
|
578
|
+
}, function(i, n, t) {
|
|
579
|
+
var o = this && this.__values || function(h) {
|
|
580
|
+
var E = typeof Symbol == "function" && Symbol.iterator, C = E && h[E], S = 0;
|
|
581
|
+
if (C) return C.call(h);
|
|
582
|
+
if (h && typeof h.length == "number") return { next: function() {
|
|
583
|
+
return h && S >= h.length && (h = void 0), { value: h && h[S++], done: !h };
|
|
584
|
+
} };
|
|
585
|
+
throw new TypeError(E ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
586
|
+
}, s = this && this.__read || function(h, E) {
|
|
587
|
+
var C = typeof Symbol == "function" && h[Symbol.iterator];
|
|
588
|
+
if (!C) return h;
|
|
589
|
+
var S, I, y = C.call(h), A = [];
|
|
590
|
+
try {
|
|
591
|
+
for (; (E === void 0 || E-- > 0) && !(S = y.next()).done; ) A.push(S.value);
|
|
592
|
+
} catch (D) {
|
|
593
|
+
I = { error: D };
|
|
594
|
+
} finally {
|
|
595
|
+
try {
|
|
596
|
+
S && !S.done && (C = y.return) && C.call(y);
|
|
597
|
+
} finally {
|
|
598
|
+
if (I) throw I.error;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
return A;
|
|
602
|
+
}, u = this && this.__spread || function() {
|
|
603
|
+
for (var h = [], E = 0; E < arguments.length; E++) h = h.concat(s(arguments[E]));
|
|
604
|
+
return h;
|
|
605
|
+
}, l = this && this.__importDefault || function(h) {
|
|
606
|
+
return h && h.__esModule ? h : { default: h };
|
|
607
|
+
};
|
|
608
|
+
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
609
|
+
var d = l(t(3)), a = t(18), c = t(4), f = t(1), g = t(20), p = t(0), m = function() {
|
|
610
|
+
function h(E, C) {
|
|
611
|
+
this.options = { $root: E.$root, wrapTag: E.wrapTag, exceptSelectors: E.exceptSelectors, className: E.className }, this.hooks = C, g.initDefaultStylesheet();
|
|
612
|
+
}
|
|
613
|
+
return h.prototype.highlightRange = function(E) {
|
|
614
|
+
var C = this;
|
|
615
|
+
if (!E.frozen) throw f.ERROR.HIGHLIGHT_RANGE_FROZEN;
|
|
616
|
+
var S = this.options, I = S.$root, y = S.className, A = S.exceptSelectors, D = this.hooks, b = a.getSelectedNodes(I, E.start, E.end, A);
|
|
617
|
+
return D.Render.SelectedNodes.isEmpty() || (b = D.Render.SelectedNodes.call(E.id, b) || []), b.map(function(w) {
|
|
618
|
+
var T = a.wrapHighlight(w, E, y, C.options.wrapTag);
|
|
619
|
+
return D.Render.WrapNode.isEmpty() || (T = D.Render.WrapNode.call(E.id, T)), T;
|
|
620
|
+
});
|
|
621
|
+
}, h.prototype.highlightSource = function(E) {
|
|
622
|
+
var C = this, S = Array.isArray(E) ? E : [E], I = [];
|
|
623
|
+
return S.forEach(function(y) {
|
|
624
|
+
if (y instanceof d.default) {
|
|
625
|
+
var A = y.deSerialize(C.options.$root, C.hooks);
|
|
626
|
+
C.highlightRange(A).length > 0 ? I.push(y) : p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.HIGHLIGHT_SOURCE_NONE_RENDER, detail: y });
|
|
627
|
+
} else p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.SOURCE_TYPE_ERROR });
|
|
628
|
+
}), I;
|
|
629
|
+
}, h.prototype.removeHighlight = function(E) {
|
|
630
|
+
var C, S, I = new RegExp("(" + E + "\\" + p.ID_DIVISION + "|\\" + p.ID_DIVISION + "?" + E + "$)"), y = this.hooks, A = this.options.wrapTag, D = document.querySelectorAll(A + "[data-" + p.DATASET_IDENTIFIER + "]"), b = [], w = [], T = [];
|
|
631
|
+
try {
|
|
632
|
+
for (var P = o(D), q = P.next(); !q.done; q = P.next()) {
|
|
633
|
+
var Y = q.value, F = Y.dataset[p.CAMEL_DATASET_IDENTIFIER], V = Y.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
634
|
+
F !== E || V ? F === E ? w.push(Y) : F !== E && I.test(V) && T.push(Y) : b.push(Y);
|
|
635
|
+
}
|
|
636
|
+
} catch (N) {
|
|
637
|
+
C = { error: N };
|
|
638
|
+
} finally {
|
|
639
|
+
try {
|
|
640
|
+
q && !q.done && (S = P.return) && S.call(P);
|
|
641
|
+
} finally {
|
|
642
|
+
if (C) throw C.error;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return b.forEach(function(N) {
|
|
646
|
+
var j = N.parentNode, $ = document.createDocumentFragment();
|
|
647
|
+
c.forEach(N.childNodes, function(x) {
|
|
648
|
+
return $.appendChild(x.cloneNode(!1));
|
|
649
|
+
});
|
|
650
|
+
var G = N.previousSibling, _ = N.nextSibling;
|
|
651
|
+
j.replaceChild($, N), a.normalizeSiblingText(G, !0), a.normalizeSiblingText(_, !1), y.Remove.UpdateNodes.call(E, N, "remove");
|
|
652
|
+
}), w.forEach(function(N) {
|
|
653
|
+
var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION), G = $.shift(), _ = document.querySelector(A + "[data-" + p.DATASET_IDENTIFIER + '="' + G + '"]');
|
|
654
|
+
_ && (c.removeAllClass(N), c.addClass(N, u(_.classList))), j[p.CAMEL_DATASET_IDENTIFIER] = G, j[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = $.join(p.ID_DIVISION), y.Remove.UpdateNodes.call(E, N, "id-update");
|
|
655
|
+
}), T.forEach(function(N) {
|
|
656
|
+
var j = N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
657
|
+
N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = j.replace(I, ""), y.Remove.UpdateNodes.call(E, N, "extra-update");
|
|
658
|
+
}), b.length + w.length + T.length !== 0;
|
|
659
|
+
}, h.prototype.removeAllHighlight = function() {
|
|
660
|
+
var E = this.options, C = E.wrapTag, S = E.$root;
|
|
661
|
+
c.getHighlightsByRoot(S, C).forEach(function(I) {
|
|
662
|
+
var y = I.parentNode, A = document.createDocumentFragment();
|
|
663
|
+
c.forEach(I.childNodes, function(D) {
|
|
664
|
+
return A.appendChild(D.cloneNode(!1));
|
|
665
|
+
}), y.replaceChild(A, I);
|
|
666
|
+
});
|
|
667
|
+
}, h;
|
|
668
|
+
}();
|
|
669
|
+
n.default = m;
|
|
670
|
+
}, function(i, n, t) {
|
|
671
|
+
var o = this && this.__read || function(p, m) {
|
|
672
|
+
var h = typeof Symbol == "function" && p[Symbol.iterator];
|
|
673
|
+
if (!h) return p;
|
|
674
|
+
var E, C, S = h.call(p), I = [];
|
|
675
|
+
try {
|
|
676
|
+
for (; (m === void 0 || m-- > 0) && !(E = S.next()).done; ) I.push(E.value);
|
|
677
|
+
} catch (y) {
|
|
678
|
+
C = { error: y };
|
|
679
|
+
} finally {
|
|
680
|
+
try {
|
|
681
|
+
E && !E.done && (h = S.return) && h.call(S);
|
|
682
|
+
} finally {
|
|
683
|
+
if (C) throw C.error;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
return I;
|
|
687
|
+
}, s = this && this.__spread || function() {
|
|
688
|
+
for (var p = [], m = 0; m < arguments.length; m++) p = p.concat(o(arguments[m]));
|
|
689
|
+
return p;
|
|
690
|
+
};
|
|
691
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.normalizeSiblingText = n.wrapHighlight = n.getSelectedNodes = void 0;
|
|
692
|
+
var u = t(1), l = t(4), d = t(0), a = t(19), c = function(p, m) {
|
|
693
|
+
if (!p) return !1;
|
|
694
|
+
if (/^\./.test(m)) {
|
|
695
|
+
var h = m.replace(/^\./, "");
|
|
696
|
+
return p && l.hasClass(p, h);
|
|
697
|
+
}
|
|
698
|
+
if (/^#/.test(m)) {
|
|
699
|
+
var E = m.replace(/^#/, "");
|
|
700
|
+
return p && p.id === E;
|
|
701
|
+
}
|
|
702
|
+
var C = m.toUpperCase();
|
|
703
|
+
return p && p.tagName === C;
|
|
704
|
+
};
|
|
705
|
+
n.getSelectedNodes = function(p, m, h, E) {
|
|
706
|
+
var C = m.$node, S = h.$node, I = m.offset, y = h.offset;
|
|
707
|
+
if (C === S && C instanceof Text) return function(F, V, N, j) {
|
|
708
|
+
for (var $ = F, G = function(x) {
|
|
709
|
+
return j == null ? void 0 : j.some(function(L) {
|
|
710
|
+
return c(x, L);
|
|
711
|
+
});
|
|
712
|
+
}; $; ) {
|
|
713
|
+
if ($.nodeType === 1 && G($)) return [];
|
|
714
|
+
$ = $.parentNode;
|
|
715
|
+
}
|
|
716
|
+
F.splitText(V);
|
|
717
|
+
var _ = F.nextSibling;
|
|
718
|
+
return _.splitText(N - V), [{ $node: _, type: u.SelectedNodeType.text, splitType: u.SplitType.both }];
|
|
719
|
+
}(C, I, y, E);
|
|
720
|
+
for (var A = [p], D = [], b = function(F) {
|
|
721
|
+
return E == null ? void 0 : E.some(function(V) {
|
|
722
|
+
return c(F, V);
|
|
723
|
+
});
|
|
724
|
+
}, w = !1, T = null; T = A.pop(); ) if (T.nodeType !== 1 || !b(T)) {
|
|
725
|
+
for (var P = T.childNodes, q = P.length - 1; q >= 0; q--) A.push(P[q]);
|
|
726
|
+
if (T === C) {
|
|
727
|
+
if (T.nodeType === 3) {
|
|
728
|
+
T.splitText(I);
|
|
729
|
+
var Y = T.nextSibling;
|
|
730
|
+
D.push({ $node: Y, type: u.SelectedNodeType.text, splitType: u.SplitType.head });
|
|
731
|
+
}
|
|
732
|
+
w = !0;
|
|
733
|
+
} else {
|
|
734
|
+
if (T === S) {
|
|
735
|
+
T.nodeType === 3 && ((Y = T).splitText(y), D.push({ $node: Y, type: u.SelectedNodeType.text, splitType: u.SplitType.tail }));
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
w && T.nodeType === 3 && D.push({ $node: T, type: u.SelectedNodeType.text, splitType: u.SplitType.none });
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
return D;
|
|
742
|
+
};
|
|
743
|
+
var f = function(p, m) {
|
|
744
|
+
var h = Array.isArray(m) ? m : [m];
|
|
745
|
+
return (h = h.length === 0 ? [d.getDefaultOptions().style.className] : h).forEach(function(E) {
|
|
746
|
+
l.addClass(p, E);
|
|
747
|
+
}), p;
|
|
748
|
+
}, g = function(p) {
|
|
749
|
+
return !p || !p.textContent;
|
|
750
|
+
};
|
|
751
|
+
n.wrapHighlight = function(p, m, h, E) {
|
|
752
|
+
var C = p.$node.parentNode, S = p.$node.previousSibling, I = p.$node.nextSibling;
|
|
753
|
+
return l.isHighlightWrapNode(C) ? !l.isHighlightWrapNode(C) || g(S) && g(I) ? function(y, A, D) {
|
|
754
|
+
var b = y.$node.parentNode, w = b;
|
|
755
|
+
l.removeAllClass(w), f(w, D);
|
|
756
|
+
var T = b.dataset, P = T[d.CAMEL_DATASET_IDENTIFIER];
|
|
757
|
+
return T[d.CAMEL_DATASET_IDENTIFIER] = A.id, T[d.CAMEL_DATASET_IDENTIFIER_EXTRA] = T[d.CAMEL_DATASET_IDENTIFIER_EXTRA] ? P + d.ID_DIVISION + T[d.CAMEL_DATASET_IDENTIFIER_EXTRA] : P, w;
|
|
758
|
+
}(p, m, h) : function(y, A, D, b) {
|
|
759
|
+
var w = document.createElement(b), T = y.$node.parentNode, P = y.$node.previousSibling, q = y.$node.nextSibling, Y = document.createDocumentFragment(), F = T.dataset[d.CAMEL_DATASET_IDENTIFIER], V = T.dataset[d.CAMEL_DATASET_IDENTIFIER_EXTRA], N = V ? F + d.ID_DIVISION + V : F;
|
|
760
|
+
w.setAttribute("data-" + d.DATASET_IDENTIFIER, A.id), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, N), w.appendChild(y.$node.cloneNode(!1));
|
|
761
|
+
var j, $ = !1, G = !1;
|
|
762
|
+
P && ((_ = T.cloneNode(!1)).textContent = P.textContent, Y.appendChild(_), $ = !0);
|
|
763
|
+
var _, x = [];
|
|
764
|
+
return Array.isArray(D) ? x.push.apply(x, s(D)) : x.push(D), f(w, a.unique(x)), Y.appendChild(w), q && ((_ = T.cloneNode(!1)).textContent = q.textContent, Y.appendChild(_), G = !0), j = $ && G ? u.SplitType.both : $ ? u.SplitType.head : G ? u.SplitType.tail : u.SplitType.none, w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, j), T.parentNode.replaceChild(Y, T), w;
|
|
765
|
+
}(p, m, h, E) : function(y, A, D, b) {
|
|
766
|
+
var w = document.createElement(b);
|
|
767
|
+
return f(w, D), w.appendChild(y.$node.cloneNode(!1)), y.$node.parentNode.replaceChild(w, y.$node), w.setAttribute("data-" + d.DATASET_IDENTIFIER, A.id), w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, y.splitType), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, ""), w;
|
|
768
|
+
}(p, m, h, E);
|
|
769
|
+
}, n.normalizeSiblingText = function(p, m) {
|
|
770
|
+
if (m === void 0 && (m = !0), p && p.nodeType === 3) {
|
|
771
|
+
var h = m ? p.nextSibling : p.previousSibling;
|
|
772
|
+
if (h.nodeType === 3) {
|
|
773
|
+
var E = h.nodeValue;
|
|
774
|
+
p.nodeValue = m ? p.nodeValue + E : E + p.nodeValue, h.parentNode.removeChild(h);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
}, function(i, n, t) {
|
|
779
|
+
var o = this && this.__values || function(s) {
|
|
780
|
+
var u = typeof Symbol == "function" && Symbol.iterator, l = u && s[u], d = 0;
|
|
781
|
+
if (l) return l.call(s);
|
|
782
|
+
if (s && typeof s.length == "number") return { next: function() {
|
|
783
|
+
return s && d >= s.length && (s = void 0), { value: s && s[d++], done: !s };
|
|
784
|
+
} };
|
|
785
|
+
throw new TypeError(u ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
786
|
+
};
|
|
787
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.unique = void 0, n.unique = function(s) {
|
|
788
|
+
var u, l, d = [];
|
|
789
|
+
try {
|
|
790
|
+
for (var a = o(s), c = a.next(); !c.done; c = a.next()) {
|
|
791
|
+
var f = c.value;
|
|
792
|
+
d.indexOf(f) === -1 && d.push(f);
|
|
793
|
+
}
|
|
794
|
+
} catch (g) {
|
|
795
|
+
u = { error: g };
|
|
796
|
+
} finally {
|
|
797
|
+
try {
|
|
798
|
+
c && !c.done && (l = a.return) && l.call(a);
|
|
799
|
+
} finally {
|
|
800
|
+
if (u) throw u.error;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return d;
|
|
804
|
+
};
|
|
805
|
+
}, function(i, n, t) {
|
|
806
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.initDefaultStylesheet = void 0;
|
|
807
|
+
var o = t(0);
|
|
808
|
+
n.initDefaultStylesheet = function() {
|
|
809
|
+
var s = o.STYLESHEET_ID, u = document.getElementById(s);
|
|
810
|
+
if (!u) {
|
|
811
|
+
var l = document.createTextNode(o.getStylesheet());
|
|
812
|
+
(u = document.createElement("style")).id = s, u.appendChild(l), document.head.appendChild(u);
|
|
813
|
+
}
|
|
814
|
+
return u;
|
|
815
|
+
};
|
|
816
|
+
}]).default;
|
|
817
|
+
});
|
|
818
|
+
})(vn);
|
|
819
|
+
var Ir = vn.exports;
|
|
820
|
+
const mn = /* @__PURE__ */ yt(Ir), et = "altimate-display-", xr = `${et}-highlight`, $t = `${et}-highlight-hover`, Or = `${et}-active-highlight`, Dr = 1049, xe = new mn({
|
|
821
|
+
style: {
|
|
822
|
+
className: xr
|
|
823
|
+
}
|
|
824
|
+
// wrapTag: HIGHLIGHT_WRAPPER_TAGNAME,
|
|
825
|
+
}), St = new mn({
|
|
826
|
+
style: {
|
|
827
|
+
className: Or
|
|
828
|
+
}
|
|
829
|
+
// wrapTag: ACTIVE_HIGHLIGHT_WRAPPER_TAGNAME,
|
|
830
|
+
}), En = (e, r) => r.filter((i) => {
|
|
831
|
+
var n;
|
|
832
|
+
return ((n = i.$node.nodeValue) == null ? void 0 : n.trim()) !== "";
|
|
833
|
+
}), yn = (e, r, i) => {
|
|
834
|
+
const n = r, t = i, o = ["BR", "HR"];
|
|
835
|
+
return o.includes(n.$node.nodeName) && n.$node.parentNode && (n.$node = n.$node.parentNode), o.includes(t.$node.nodeName) && t.$node.parentNode && (t.$node = t.$node.parentNode), [n, t];
|
|
836
|
+
};
|
|
837
|
+
xe.hooks.Render.SelectedNodes.tap(En);
|
|
838
|
+
xe.hooks.Serialize.Restore.tap(yn);
|
|
839
|
+
St.hooks.Render.SelectedNodes.tap(En);
|
|
840
|
+
St.hooks.Serialize.Restore.tap(yn);
|
|
841
|
+
xe.on("selection:hover", ({ id: e }) => {
|
|
842
|
+
xe.addClass($t, e);
|
|
843
|
+
}).on("selection:hover-out", ({ id: e }) => {
|
|
844
|
+
xe.removeClass($t, e);
|
|
845
|
+
});
|
|
846
|
+
const Rr = (e) => {
|
|
847
|
+
var r, i;
|
|
848
|
+
return (r = e.meta) != null && r.highlight ? JSON.parse((i = e.meta) == null ? void 0 : i.highlight) : null;
|
|
849
|
+
}, wr = (e) => {
|
|
850
|
+
const r = Rr(e);
|
|
851
|
+
r && (xe.remove(r.id), St.remove(r.id));
|
|
852
|
+
}, _t = () => {
|
|
853
|
+
var i, n;
|
|
854
|
+
const e = At(), r = (e == null ? void 0 : e[1]) === "analysis" ? document.getElementById("sql") : document.getElementById("code");
|
|
855
|
+
return (n = (i = r == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("code-block")) == null ? void 0 : n.querySelector("code.ng-binding.highlight");
|
|
856
|
+
}, At = () => {
|
|
857
|
+
var r;
|
|
858
|
+
return (r = window.location.hash.split("#").find((i) => i.startsWith("!"))) == null ? void 0 : r.split("/");
|
|
859
|
+
}, Tt = () => document.querySelector('[marked="model.description"]'), Nr = (e) => {
|
|
860
|
+
var r, i, n;
|
|
861
|
+
return e.field ? e.column ? (i = (r = Array.from(
|
|
862
|
+
document.querySelectorAll("column-details tr:not(.ng-hide) td:first-child")
|
|
863
|
+
).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n = Tt()) == null ? void 0 : n.firstChild : _t();
|
|
864
|
+
}, jr = (e) => {
|
|
865
|
+
if (e.getAttribute("marked") === "model.description")
|
|
866
|
+
return "description";
|
|
867
|
+
}, Pr = (e, r, i, n, t) => {
|
|
868
|
+
if (e === "description")
|
|
869
|
+
return {
|
|
870
|
+
start: 0,
|
|
871
|
+
end: 0,
|
|
872
|
+
x: 0,
|
|
873
|
+
y: 0
|
|
874
|
+
};
|
|
875
|
+
const o = r.querySelectorAll(".line-numbers-rows > span"), s = i.split(`
|
|
876
|
+
`), u = Math.max(t.y, n.y), l = Array.from(o).findIndex((c) => {
|
|
877
|
+
const { height: f, y: g } = c.getBoundingClientRect();
|
|
878
|
+
return u >= g && u <= g + f;
|
|
879
|
+
}), d = o[l], a = l - s.length + 1;
|
|
880
|
+
return console.log("start and end lines found", a, l), {
|
|
881
|
+
x: d.offsetLeft,
|
|
882
|
+
y: d.offsetTop + d.offsetHeight / 2,
|
|
883
|
+
start: a,
|
|
884
|
+
end: l
|
|
885
|
+
};
|
|
886
|
+
}, bs = () => {
|
|
887
|
+
var e;
|
|
888
|
+
return [(e = _t()) == null ? void 0 : e.parentElement, Tt()];
|
|
889
|
+
};
|
|
890
|
+
var ae = /* @__PURE__ */ ((e) => (e[e.LOADING = 0] = "LOADING", e[e.UNINITIALIZED = 1] = "UNINITIALIZED", e[e.INITIALIZED = 2] = "INITIALIZED", e))(ae || {});
|
|
891
|
+
const Fr = {
|
|
892
|
+
users: {},
|
|
893
|
+
isRightPanelOpen: !1,
|
|
894
|
+
selectedConversationId: void 0,
|
|
895
|
+
conversations: {},
|
|
896
|
+
conversationsLoadingState: ae.UNINITIALIZED,
|
|
897
|
+
newConversation: void 0,
|
|
898
|
+
shareId: void 0,
|
|
899
|
+
docsAppRendered: !1,
|
|
900
|
+
currentPage: Tr(),
|
|
901
|
+
codeblockLoaded: !1,
|
|
902
|
+
source: Ct.DBT_DOCS,
|
|
903
|
+
manifest: {}
|
|
904
|
+
}, Xe = cn({
|
|
905
|
+
name: "appState",
|
|
906
|
+
initialState: Fr,
|
|
907
|
+
reducers: {
|
|
908
|
+
setDocsAppRendered: (e, r) => {
|
|
909
|
+
e.docsAppRendered = r.payload;
|
|
910
|
+
},
|
|
911
|
+
setManifest: (e, r) => {
|
|
912
|
+
e.manifest = r.payload;
|
|
913
|
+
},
|
|
914
|
+
updateCurrentPage: (e, r) => {
|
|
915
|
+
e.currentPage = r.payload;
|
|
916
|
+
},
|
|
917
|
+
setConversationSource: (e, r) => {
|
|
918
|
+
e.source = r.payload;
|
|
919
|
+
},
|
|
920
|
+
updateCodeblockLoaded: (e, r) => {
|
|
921
|
+
e.codeblockLoaded = r.payload;
|
|
922
|
+
},
|
|
923
|
+
setShareId: (e, r) => {
|
|
924
|
+
e.shareId = r.payload;
|
|
925
|
+
},
|
|
926
|
+
setCurrentUserId: (e, r) => {
|
|
927
|
+
e.currentUserId = r.payload;
|
|
928
|
+
},
|
|
929
|
+
setConversationsLoadingState: (e, r) => {
|
|
930
|
+
e.conversationsLoadingState = r.payload;
|
|
931
|
+
},
|
|
932
|
+
refetchConversations: (e) => {
|
|
933
|
+
e.conversationsLoadingState = ae.UNINITIALIZED;
|
|
934
|
+
},
|
|
935
|
+
setUsers: (e, r) => {
|
|
936
|
+
var i;
|
|
937
|
+
return (i = r.payload) != null && i.length ? {
|
|
938
|
+
...e,
|
|
939
|
+
users: r.payload.reduce((n, t) => (n[t.id] = t, n), {})
|
|
940
|
+
} : e;
|
|
941
|
+
},
|
|
942
|
+
updateRightPanelState: (e, r) => {
|
|
943
|
+
e.isRightPanelOpen = r.payload;
|
|
944
|
+
},
|
|
945
|
+
updateSelectedConversationId: (e, r) => {
|
|
946
|
+
e.selectedConversationId = r.payload;
|
|
947
|
+
},
|
|
948
|
+
upsertConversation: (e, r) => {
|
|
949
|
+
e.conversations = {
|
|
950
|
+
...e.conversations,
|
|
951
|
+
[r.payload.conversation_group_id]: {
|
|
952
|
+
...e.conversations[r.payload.conversation_group_id],
|
|
953
|
+
...r.payload
|
|
954
|
+
}
|
|
955
|
+
};
|
|
956
|
+
},
|
|
957
|
+
resolveConversationGroup: (e, {
|
|
958
|
+
payload: { conversationGroupId: r }
|
|
959
|
+
}) => {
|
|
960
|
+
e.conversations[r] && delete e.conversations[r];
|
|
961
|
+
},
|
|
962
|
+
updateNewConversation: (e, r) => {
|
|
963
|
+
var t, o;
|
|
964
|
+
const i = { ...r.payload };
|
|
965
|
+
if (!i.meta) {
|
|
966
|
+
console.log("Invalid meta");
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
969
|
+
const n = At();
|
|
970
|
+
if (!n || n.length < 3) {
|
|
971
|
+
console.error("Unable to find model parts", n);
|
|
972
|
+
return;
|
|
973
|
+
}
|
|
974
|
+
if (console.log("model parts found", n), i.meta.uniqueId = n[2], i.meta.resource_type = n[1], i.meta.range || (i.meta.range = {
|
|
975
|
+
end: { line: 0, character: 0 },
|
|
976
|
+
start: { line: 0, character: 0 }
|
|
977
|
+
}), i.meta.uniqueId) {
|
|
978
|
+
const s = ((t = e.manifest.nodes) == null ? void 0 : t[i.meta.uniqueId]) || ((o = e.manifest.macros) == null ? void 0 : o[i.meta.uniqueId]);
|
|
979
|
+
i.meta.filePath = (s == null ? void 0 : s.original_file_path) || "";
|
|
980
|
+
}
|
|
981
|
+
e.newConversation = i;
|
|
982
|
+
},
|
|
983
|
+
resetNewConversation: (e) => {
|
|
984
|
+
e.newConversation = void 0;
|
|
985
|
+
},
|
|
986
|
+
setConversations: (e, r) => {
|
|
987
|
+
r.payload && (e.conversations = r.payload.reduce(
|
|
988
|
+
(i, n) => (i[n.conversation_group_id] = n, i),
|
|
989
|
+
{}
|
|
990
|
+
), e.selectedConversationId = e.selectedConversationId || r.payload[0].conversation_group_id);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}), {
|
|
994
|
+
setCurrentUserId: Cs,
|
|
995
|
+
setShareId: Ss,
|
|
996
|
+
updateSelectedConversationId: It,
|
|
997
|
+
updateRightPanelState: xt,
|
|
998
|
+
setUsers: Mr,
|
|
999
|
+
setConversations: Lr,
|
|
1000
|
+
resetNewConversation: Ot,
|
|
1001
|
+
updateNewConversation: Dt,
|
|
1002
|
+
upsertConversation: _s,
|
|
1003
|
+
setDocsAppRendered: As,
|
|
1004
|
+
updateCurrentPage: Ts,
|
|
1005
|
+
updateCodeblockLoaded: Is,
|
|
1006
|
+
resolveConversationGroup: Br,
|
|
1007
|
+
setConversationsLoadingState: Ht,
|
|
1008
|
+
refetchConversations: bn,
|
|
1009
|
+
setConversationSource: xs,
|
|
1010
|
+
setManifest: $r
|
|
1011
|
+
} = Xe.actions, tt = _e({
|
|
1012
|
+
state: Xe.getInitialState(),
|
|
1013
|
+
dispatch: () => null,
|
|
1014
|
+
getValue: () => null
|
|
1015
|
+
}), Hr = ({
|
|
1016
|
+
children: e,
|
|
1017
|
+
shareId: r,
|
|
1018
|
+
userId: i,
|
|
1019
|
+
conversationGroupId: n,
|
|
1020
|
+
source: t
|
|
1021
|
+
}) => {
|
|
1022
|
+
const [o, s] = gn(Xe.reducer, {
|
|
1023
|
+
...Xe.getInitialState(),
|
|
1024
|
+
shareId: r,
|
|
1025
|
+
currentUserId: i,
|
|
1026
|
+
selectedConversationId: n,
|
|
1027
|
+
isRightPanelOpen: !!n,
|
|
1028
|
+
source: t
|
|
1029
|
+
}), u = we(
|
|
1030
|
+
(d) => d(o),
|
|
1031
|
+
[o]
|
|
1032
|
+
), l = fe(
|
|
1033
|
+
() => ({
|
|
1034
|
+
state: o,
|
|
1035
|
+
dispatch: s,
|
|
1036
|
+
getValue: u
|
|
1037
|
+
}),
|
|
1038
|
+
[o, s, u]
|
|
1039
|
+
);
|
|
1040
|
+
return /* @__PURE__ */ v.jsx(tt.Provider, { value: l, children: e });
|
|
1041
|
+
}, kr = () => ye(tt), ne = (e) => {
|
|
1042
|
+
const { getValue: r } = ye(tt);
|
|
1043
|
+
return r(e);
|
|
1044
|
+
}, ce = () => {
|
|
1045
|
+
const { dispatch: e } = ye(tt);
|
|
1046
|
+
return e;
|
|
1047
|
+
}, Ur = (e) => e;
|
|
1048
|
+
let Cn = Ur;
|
|
1049
|
+
process.env.NODE_ENV !== "production" && (Cn = (e, r) => {
|
|
1050
|
+
if (!e)
|
|
1051
|
+
throw new Error(r);
|
|
1052
|
+
});
|
|
1053
|
+
const qr = _e(null), zr = _e({}), Vr = _e({
|
|
1054
|
+
transformPagePoint: (e) => e,
|
|
1055
|
+
isStatic: !1,
|
|
1056
|
+
reducedMotion: "never"
|
|
1057
|
+
}), Yr = typeof window < "u", Wr = Yr ? yr : le;
|
|
1058
|
+
function Sn(e) {
|
|
1059
|
+
const r = Se(null);
|
|
1060
|
+
return r.current === null && (r.current = e()), r.current;
|
|
1061
|
+
}
|
|
1062
|
+
class Kr extends te.Component {
|
|
1063
|
+
getSnapshotBeforeUpdate(r) {
|
|
1064
|
+
const i = this.props.childRef.current;
|
|
1065
|
+
if (i && r.isPresent && !this.props.isPresent) {
|
|
1066
|
+
const n = this.props.sizeRef.current;
|
|
1067
|
+
n.height = i.offsetHeight || 0, n.width = i.offsetWidth || 0, n.top = i.offsetTop, n.left = i.offsetLeft;
|
|
1068
|
+
}
|
|
1069
|
+
return null;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
1073
|
+
*/
|
|
1074
|
+
componentDidUpdate() {
|
|
1075
|
+
}
|
|
1076
|
+
render() {
|
|
1077
|
+
return this.props.children;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
function Xr({ children: e, isPresent: r }) {
|
|
1081
|
+
const i = hn(), n = Se(null), t = Se({
|
|
1082
|
+
width: 0,
|
|
1083
|
+
height: 0,
|
|
1084
|
+
top: 0,
|
|
1085
|
+
left: 0
|
|
1086
|
+
}), { nonce: o } = ye(Vr);
|
|
1087
|
+
return br(() => {
|
|
1088
|
+
const { width: s, height: u, top: l, left: d } = t.current;
|
|
1089
|
+
if (r || !n.current || !s || !u)
|
|
1090
|
+
return;
|
|
1091
|
+
n.current.dataset.motionPopId = i;
|
|
1092
|
+
const a = document.createElement("style");
|
|
1093
|
+
return o && (a.nonce = o), document.head.appendChild(a), a.sheet && a.sheet.insertRule(`
|
|
1094
|
+
[data-motion-pop-id="${i}"] {
|
|
1095
|
+
position: absolute !important;
|
|
1096
|
+
width: ${s}px !important;
|
|
1097
|
+
height: ${u}px !important;
|
|
1098
|
+
top: ${l}px !important;
|
|
1099
|
+
left: ${d}px !important;
|
|
1100
|
+
}
|
|
1101
|
+
`), () => {
|
|
1102
|
+
document.head.removeChild(a);
|
|
1103
|
+
};
|
|
1104
|
+
}, [r]), v.jsx(Kr, { isPresent: r, childRef: n, sizeRef: t, children: te.cloneElement(e, { ref: n }) });
|
|
1105
|
+
}
|
|
1106
|
+
const Gr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom: t, presenceAffectsLayout: o, mode: s }) => {
|
|
1107
|
+
const u = Sn(Zr), l = hn(), d = fe(
|
|
1108
|
+
() => ({
|
|
1109
|
+
id: l,
|
|
1110
|
+
initial: r,
|
|
1111
|
+
isPresent: i,
|
|
1112
|
+
custom: t,
|
|
1113
|
+
onExitComplete: (a) => {
|
|
1114
|
+
u.set(a, !0);
|
|
1115
|
+
for (const c of u.values())
|
|
1116
|
+
if (!c)
|
|
1117
|
+
return;
|
|
1118
|
+
n && n();
|
|
1119
|
+
},
|
|
1120
|
+
register: (a) => (u.set(a, !1), () => u.delete(a))
|
|
1121
|
+
}),
|
|
1122
|
+
/**
|
|
1123
|
+
* If the presence of a child affects the layout of the components around it,
|
|
1124
|
+
* we want to make a new context value to ensure they get re-rendered
|
|
1125
|
+
* so they can detect that layout change.
|
|
1126
|
+
*/
|
|
1127
|
+
o ? [Math.random()] : [i]
|
|
1128
|
+
);
|
|
1129
|
+
return fe(() => {
|
|
1130
|
+
u.forEach((a, c) => u.set(c, !1));
|
|
1131
|
+
}, [i]), te.useEffect(() => {
|
|
1132
|
+
!i && !u.size && n && n();
|
|
1133
|
+
}, [i]), s === "popLayout" && (e = v.jsx(Xr, { isPresent: i, children: e })), v.jsx(qr.Provider, { value: d, children: e });
|
|
1134
|
+
};
|
|
1135
|
+
function Zr() {
|
|
1136
|
+
return /* @__PURE__ */ new Map();
|
|
1137
|
+
}
|
|
1138
|
+
const Ue = (e) => e.key || "";
|
|
1139
|
+
function kt(e) {
|
|
1140
|
+
const r = [];
|
|
1141
|
+
return De.forEach(e, (i) => {
|
|
1142
|
+
Cr(i) && r.push(i);
|
|
1143
|
+
}), r;
|
|
1144
|
+
}
|
|
1145
|
+
const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
1146
|
+
Cn(!r, "Replace exitBeforeEnter with mode='wait'");
|
|
1147
|
+
const u = fe(() => kt(e), [e]), l = u.map(Ue), d = Se(!0), a = Se(u), c = Sn(() => /* @__PURE__ */ new Map()), [f, g] = re(u), [p, m] = re(u);
|
|
1148
|
+
Wr(() => {
|
|
1149
|
+
d.current = !1, a.current = u;
|
|
1150
|
+
for (let C = 0; C < p.length; C++) {
|
|
1151
|
+
const S = Ue(p[C]);
|
|
1152
|
+
l.includes(S) ? c.delete(S) : c.get(S) !== !0 && c.set(S, !1);
|
|
1153
|
+
}
|
|
1154
|
+
}, [p, l.length, l.join("-")]);
|
|
1155
|
+
const h = [];
|
|
1156
|
+
if (u !== f) {
|
|
1157
|
+
let C = [...u];
|
|
1158
|
+
for (let S = 0; S < p.length; S++) {
|
|
1159
|
+
const I = p[S], y = Ue(I);
|
|
1160
|
+
l.includes(y) || (C.splice(S, 0, I), h.push(I));
|
|
1161
|
+
}
|
|
1162
|
+
s === "wait" && h.length && (C = h), m(kt(C)), g(u);
|
|
1163
|
+
return;
|
|
1164
|
+
}
|
|
1165
|
+
process.env.NODE_ENV !== "production" && s === "wait" && p.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
1166
|
+
const { forceRender: E } = ye(zr);
|
|
1167
|
+
return v.jsx(v.Fragment, { children: p.map((C) => {
|
|
1168
|
+
const S = Ue(C), I = u === p || l.includes(S), y = () => {
|
|
1169
|
+
if (c.has(S))
|
|
1170
|
+
c.set(S, !0);
|
|
1171
|
+
else
|
|
1172
|
+
return;
|
|
1173
|
+
let A = !0;
|
|
1174
|
+
c.forEach((D) => {
|
|
1175
|
+
D || (A = !1);
|
|
1176
|
+
}), A && (E == null || E(), m(a.current), t && t());
|
|
1177
|
+
};
|
|
1178
|
+
return v.jsx(Gr, { isPresent: I, initial: !d.current || n ? void 0 : !1, custom: I ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: I ? void 0 : y, children: C }, S);
|
|
1179
|
+
}) });
|
|
1180
|
+
}, Jr = ({ pos: e, onAddComment: r }) => bt(
|
|
1181
|
+
/* @__PURE__ */ v.jsx(Qr, { children: e && /* @__PURE__ */ v.jsx(
|
|
1182
|
+
Ce,
|
|
1183
|
+
{
|
|
1184
|
+
onClick: r,
|
|
1185
|
+
id: `${et}-highlight`,
|
|
1186
|
+
style: {
|
|
1187
|
+
position: "absolute",
|
|
1188
|
+
top: e.y,
|
|
1189
|
+
left: e.x,
|
|
1190
|
+
// right: "15px",
|
|
1191
|
+
zIndex: Dr + 5,
|
|
1192
|
+
cursor: "pointer",
|
|
1193
|
+
background: "#007AFF",
|
|
1194
|
+
width: 26,
|
|
1195
|
+
height: 26,
|
|
1196
|
+
borderRadius: "100%",
|
|
1197
|
+
boxShadow: "none",
|
|
1198
|
+
border: "none",
|
|
1199
|
+
display: "flex",
|
|
1200
|
+
justifyContent: "center",
|
|
1201
|
+
alignItems: "center",
|
|
1202
|
+
fontSize: "13px",
|
|
1203
|
+
fontWeight: "bold",
|
|
1204
|
+
color: "#fff",
|
|
1205
|
+
padding: 0
|
|
1206
|
+
},
|
|
1207
|
+
children: /* @__PURE__ */ v.jsx(pn, {})
|
|
1208
|
+
}
|
|
1209
|
+
) }),
|
|
1210
|
+
e.element.parentElement
|
|
1211
|
+
), eo = () => {
|
|
1212
|
+
const {
|
|
1213
|
+
state: { isRightPanelOpen: e }
|
|
1214
|
+
} = kr(), r = ce(), i = () => {
|
|
1215
|
+
r(xt(!e));
|
|
1216
|
+
};
|
|
1217
|
+
return /* @__PURE__ */ v.jsx(Ce, { onClick: i, children: e ? "Hide conversations" : "Show conversations" });
|
|
1218
|
+
}, to = (e) => ve.get(`dbt/dbt_docs_share/${e}`), no = (e, r, i) => ve.post(`dbt/dbt_docs_share/${e}/conversation_group`, {
|
|
1219
|
+
...r,
|
|
1220
|
+
telemetry: {
|
|
1221
|
+
eventName: "dbtCollaboration:create",
|
|
1222
|
+
properties: { source: i }
|
|
1223
|
+
}
|
|
1224
|
+
}), ro = (e, r, i, n) => ve.post(
|
|
1225
|
+
`dbt/dbt_docs_share/${e}/conversation_group/${r}/conversation`,
|
|
1226
|
+
{
|
|
1227
|
+
...i,
|
|
1228
|
+
telemetry: {
|
|
1229
|
+
eventName: "dbtCollaboration:reply",
|
|
1230
|
+
properties: { source: n }
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
), oo = (e) => ve.get(
|
|
1234
|
+
`dbt/dbt_docs_share/${e}/conversations`
|
|
1235
|
+
), io = (e) => ve.get("users/chat", { company: e }), so = (e, r, i) => ve.post(
|
|
1236
|
+
`dbt/dbt_docs_share/${e}/conversation_group/${r}/resolve`,
|
|
1237
|
+
{
|
|
1238
|
+
resolved: !0,
|
|
1239
|
+
telemetry: {
|
|
1240
|
+
eventName: "dbtCollaboration:resolve",
|
|
1241
|
+
properties: { source: i }
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
), ao = () => {
|
|
1245
|
+
const e = ne(
|
|
1246
|
+
(u) => u.shareId
|
|
1247
|
+
), [r, i] = re(null), [n, t] = re(!1), o = ce();
|
|
1248
|
+
le(() => {
|
|
1249
|
+
r != null && r.manifest_presigned_url && fetch(r.manifest_presigned_url).then((u) => u.json()).then((u) => {
|
|
1250
|
+
o($r(u));
|
|
1251
|
+
}).catch(
|
|
1252
|
+
(u) => console.error("error loading manifest", u, r.manifest_presigned_url)
|
|
1253
|
+
);
|
|
1254
|
+
}, [o, r == null ? void 0 : r.manifest_presigned_url]);
|
|
1255
|
+
const s = we(async () => {
|
|
1256
|
+
if (!e)
|
|
1257
|
+
return;
|
|
1258
|
+
t(!0);
|
|
1259
|
+
const u = await to(e);
|
|
1260
|
+
if (u) {
|
|
1261
|
+
i(u);
|
|
1262
|
+
const l = document.getElementById("collapse-sidebar");
|
|
1263
|
+
l == null || l.click();
|
|
1264
|
+
}
|
|
1265
|
+
t(!1);
|
|
1266
|
+
}, [e]);
|
|
1267
|
+
return le(() => {
|
|
1268
|
+
!e || r || n || s();
|
|
1269
|
+
}, [e, r, s, n]), { shareDetails: r, loading: n };
|
|
1270
|
+
}, uo = () => {
|
|
1271
|
+
const e = ne(
|
|
1272
|
+
(a) => a.selectedConversationId ? a.conversations[a.selectedConversationId] : null
|
|
1273
|
+
), r = ne(
|
|
1274
|
+
(a) => a.docsAppRendered
|
|
1275
|
+
), i = ne(
|
|
1276
|
+
(a) => a.newConversation
|
|
1277
|
+
), n = ce(), [t, o] = re(null), [s, u] = re(null);
|
|
1278
|
+
le(() => {
|
|
1279
|
+
i && (o(null), u(null));
|
|
1280
|
+
}, [i]);
|
|
1281
|
+
const l = we(() => {
|
|
1282
|
+
console.log("resetHighlights"), t && wr(t), u(null), o(null);
|
|
1283
|
+
}, [t]);
|
|
1284
|
+
return le(() => {
|
|
1285
|
+
!e || !r || e.meta.resource_type && e.meta.uniqueId && (window.location.hash = `#!/${e.meta.resource_type}/${e.meta.uniqueId}`);
|
|
1286
|
+
}, [e, r, n]), {
|
|
1287
|
+
getHighlightedSelectionData: () => t,
|
|
1288
|
+
pos: s,
|
|
1289
|
+
onSelectionEnd: (a) => {
|
|
1290
|
+
const c = a.target, f = jr(c), { end: g, start: p } = a.detail.selectionRange, m = document.getSelection();
|
|
1291
|
+
if (!m || !m.rangeCount)
|
|
1292
|
+
return l(), null;
|
|
1293
|
+
const E = m.getRangeAt(0).toString(), C = c == null ? void 0 : c.innerText;
|
|
1294
|
+
if (!E || !C)
|
|
1295
|
+
return;
|
|
1296
|
+
const { end: S, start: I, x: y, y: A } = Pr(
|
|
1297
|
+
f,
|
|
1298
|
+
c,
|
|
1299
|
+
E,
|
|
1300
|
+
g,
|
|
1301
|
+
p
|
|
1302
|
+
);
|
|
1303
|
+
console.log("selection range", S, I, y, A);
|
|
1304
|
+
const D = {
|
|
1305
|
+
meta: {
|
|
1306
|
+
filePath: "",
|
|
1307
|
+
field: f,
|
|
1308
|
+
highlight: E,
|
|
1309
|
+
range: {
|
|
1310
|
+
end: { line: S, character: 0 },
|
|
1311
|
+
start: { line: I, character: 0 }
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
n(Ot()), u({
|
|
1316
|
+
x: y,
|
|
1317
|
+
y: A,
|
|
1318
|
+
element: c
|
|
1319
|
+
}), document.body.addEventListener("click", l, { once: !0 }), o(D);
|
|
1320
|
+
}
|
|
1321
|
+
};
|
|
1322
|
+
}, lo = ({
|
|
1323
|
+
conversationGroup: e
|
|
1324
|
+
}) => {
|
|
1325
|
+
const r = ne(
|
|
1326
|
+
(u) => u.selectedConversationId
|
|
1327
|
+
), i = ce(), n = Se(null), t = fe(() => Nr(e.meta), [e.meta]), o = () => {
|
|
1328
|
+
i(It(e.conversation_group_id));
|
|
1329
|
+
}, s = fe(() => {
|
|
1330
|
+
if (!t)
|
|
1331
|
+
return;
|
|
1332
|
+
if (e.meta.field === "description")
|
|
1333
|
+
return { top: 0, bottom: t.offsetHeight };
|
|
1334
|
+
let u = 0, l = 0;
|
|
1335
|
+
for (let d = e.meta.range.start.line; d <= e.meta.range.end.line; d++) {
|
|
1336
|
+
const a = t.querySelector(`.line-numbers-rows > span:nth-child(${d + 1})`);
|
|
1337
|
+
a && (d === e.meta.range.start.line && (u = a.offsetTop + 15), d === e.meta.range.end.line && (l = a.offsetTop + a.offsetHeight));
|
|
1338
|
+
}
|
|
1339
|
+
return { top: u, bottom: l };
|
|
1340
|
+
}, [
|
|
1341
|
+
t,
|
|
1342
|
+
e.meta.field,
|
|
1343
|
+
e.meta.range.start.line,
|
|
1344
|
+
e.meta.range.end.line
|
|
1345
|
+
]);
|
|
1346
|
+
return le(() => {
|
|
1347
|
+
var u;
|
|
1348
|
+
r === e.conversation_group_id && ((u = n.current) == null || u.scrollIntoView({
|
|
1349
|
+
behavior: "smooth",
|
|
1350
|
+
block: "center"
|
|
1351
|
+
}));
|
|
1352
|
+
}, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null : bt(
|
|
1353
|
+
/* @__PURE__ */ v.jsx(
|
|
1354
|
+
"div",
|
|
1355
|
+
{
|
|
1356
|
+
ref: n,
|
|
1357
|
+
className: `altimate-highlighter ${r === e.conversation_group_id ? "active" : ""}`,
|
|
1358
|
+
style: { top: s.top, height: s.bottom - s.top },
|
|
1359
|
+
onClick: o,
|
|
1360
|
+
children: /* @__PURE__ */ v.jsx(fr, {})
|
|
1361
|
+
}
|
|
1362
|
+
),
|
|
1363
|
+
t.parentElement
|
|
1364
|
+
);
|
|
1365
|
+
}, co = () => {
|
|
1366
|
+
const e = ne(
|
|
1367
|
+
(t) => Object.values(t.conversations || {})
|
|
1368
|
+
), r = ne(
|
|
1369
|
+
(t) => t.codeblockLoaded
|
|
1370
|
+
), i = ne(
|
|
1371
|
+
(t) => t.currentPage
|
|
1372
|
+
), n = e == null ? void 0 : e.filter(
|
|
1373
|
+
(t) => t.meta.resource_type === i.resourceType && t.meta.uniqueId === i.name
|
|
1374
|
+
);
|
|
1375
|
+
return !(n != null && n.length) || !r ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: n.map((t) => /* @__PURE__ */ v.jsx(
|
|
1376
|
+
lo,
|
|
1377
|
+
{
|
|
1378
|
+
conversationGroup: t
|
|
1379
|
+
},
|
|
1380
|
+
t.conversation_group_id
|
|
1381
|
+
)) });
|
|
1382
|
+
}, fo = "_dbtDocs_14zop_9", po = "_hotspotButton_14zop_46", go = "_pulse_14zop_1", ho = "_conversationRightPanelCloseButton_14zop_62", vo = "_conversationRightPanel_14zop_62", mo = "_newConversationForm_14zop_94", Eo = "_highlightText_14zop_108", yo = "_conversationInputForm_14zop_130", bo = "_conversationGroup_14zop_156", Co = "_replyForm_14zop_189", So = "_resolveButton_14zop_237", me = {
|
|
1383
|
+
dbtDocs: fo,
|
|
1384
|
+
hotspotButton: po,
|
|
1385
|
+
pulse: go,
|
|
1386
|
+
conversationRightPanelCloseButton: ho,
|
|
1387
|
+
conversationRightPanel: vo,
|
|
1388
|
+
newConversationForm: mo,
|
|
1389
|
+
highlightText: Eo,
|
|
1390
|
+
conversationInputForm: yo,
|
|
1391
|
+
conversationGroup: bo,
|
|
1392
|
+
replyForm: Co,
|
|
1393
|
+
resolveButton: So
|
|
1394
|
+
}, _o = "_profileImage_11vaf_1", Ao = {
|
|
1395
|
+
profileImage: _o
|
|
1396
|
+
}, _n = ({ user: e }) => {
|
|
1397
|
+
var r;
|
|
1398
|
+
return /* @__PURE__ */ v.jsx("div", { className: Ao.profileImage, children: ((r = e == null ? void 0 : e.first_name) == null ? void 0 : r[0]) || "" });
|
|
1399
|
+
};
|
|
1400
|
+
function To(e) {
|
|
1401
|
+
if (Array.isArray(e)) {
|
|
1402
|
+
for (var r = 0, i = new Array(e.length); r < e.length; r++)
|
|
1403
|
+
i[r] = e[r];
|
|
1404
|
+
return i;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
function Io(e) {
|
|
1408
|
+
if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
|
|
1409
|
+
}
|
|
1410
|
+
function xo() {
|
|
1411
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1412
|
+
}
|
|
1413
|
+
function Ge(e) {
|
|
1414
|
+
return To(e) || Io(e) || xo();
|
|
1415
|
+
}
|
|
1416
|
+
function ue() {
|
|
1417
|
+
return ue = Object.assign || function(e) {
|
|
1418
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1419
|
+
var i = arguments[r];
|
|
1420
|
+
for (var n in i)
|
|
1421
|
+
Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
|
|
1422
|
+
}
|
|
1423
|
+
return e;
|
|
1424
|
+
}, ue.apply(this, arguments);
|
|
1425
|
+
}
|
|
1426
|
+
function Oo(e, r) {
|
|
1427
|
+
if (!(e instanceof r))
|
|
1428
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1429
|
+
}
|
|
1430
|
+
function Do(e, r) {
|
|
1431
|
+
for (var i = 0; i < r.length; i++) {
|
|
1432
|
+
var n = r[i];
|
|
1433
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
function Ro(e, r, i) {
|
|
1437
|
+
return r && Do(e.prototype, r), e;
|
|
1438
|
+
}
|
|
1439
|
+
function k(e) {
|
|
1440
|
+
if (e === void 0)
|
|
1441
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1442
|
+
return e;
|
|
1443
|
+
}
|
|
1444
|
+
function ft(e, r) {
|
|
1445
|
+
return ft = Object.setPrototypeOf || function(n, t) {
|
|
1446
|
+
return n.__proto__ = t, n;
|
|
1447
|
+
}, ft(e, r);
|
|
1448
|
+
}
|
|
1449
|
+
function wo(e, r) {
|
|
1450
|
+
if (typeof r != "function" && r !== null)
|
|
1451
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1452
|
+
e.prototype = Object.create(r && r.prototype, {
|
|
1453
|
+
constructor: {
|
|
1454
|
+
value: e,
|
|
1455
|
+
writable: !0,
|
|
1456
|
+
configurable: !0
|
|
1457
|
+
}
|
|
1458
|
+
}), r && ft(e, r);
|
|
1459
|
+
}
|
|
1460
|
+
function Oe(e) {
|
|
1461
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(i) {
|
|
1462
|
+
return typeof i;
|
|
1463
|
+
} : Oe = function(i) {
|
|
1464
|
+
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
1465
|
+
}, Oe(e);
|
|
1466
|
+
}
|
|
1467
|
+
function Ye(e) {
|
|
1468
|
+
return typeof Symbol == "function" && Oe(Symbol.iterator) === "symbol" ? Ye = function(i) {
|
|
1469
|
+
return Oe(i);
|
|
1470
|
+
} : Ye = function(i) {
|
|
1471
|
+
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : Oe(i);
|
|
1472
|
+
}, Ye(e);
|
|
1473
|
+
}
|
|
1474
|
+
function No(e, r) {
|
|
1475
|
+
return r && (Ye(r) === "object" || typeof r == "function") ? r : k(e);
|
|
1476
|
+
}
|
|
1477
|
+
function Ze(e) {
|
|
1478
|
+
return Ze = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
|
|
1479
|
+
return i.__proto__ || Object.getPrototypeOf(i);
|
|
1480
|
+
}, Ze(e);
|
|
1481
|
+
}
|
|
1482
|
+
function H(e, r, i) {
|
|
1483
|
+
return r in e ? Object.defineProperty(e, r, {
|
|
1484
|
+
value: i,
|
|
1485
|
+
enumerable: !0,
|
|
1486
|
+
configurable: !0,
|
|
1487
|
+
writable: !0
|
|
1488
|
+
}) : e[r] = i, e;
|
|
1489
|
+
}
|
|
1490
|
+
var jo = function(e, r, i, n, t, o, s, u) {
|
|
1491
|
+
if (process.env.NODE_ENV !== "production" && r === void 0)
|
|
1492
|
+
throw new Error("invariant requires an error message argument");
|
|
1493
|
+
if (!e) {
|
|
1494
|
+
var l;
|
|
1495
|
+
if (r === void 0)
|
|
1496
|
+
l = new Error(
|
|
1497
|
+
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
1498
|
+
);
|
|
1499
|
+
else {
|
|
1500
|
+
var d = [i, n, t, o, s, u], a = 0;
|
|
1501
|
+
l = new Error(
|
|
1502
|
+
r.replace(/%s/g, function() {
|
|
1503
|
+
return d[a++];
|
|
1504
|
+
})
|
|
1505
|
+
), l.name = "Invariant Violation";
|
|
1506
|
+
}
|
|
1507
|
+
throw l.framesToPop = 1, l;
|
|
1508
|
+
}
|
|
1509
|
+
}, Po = jo;
|
|
1510
|
+
const Re = /* @__PURE__ */ yt(Po);
|
|
1511
|
+
function Fo(e) {
|
|
1512
|
+
if (Array.isArray(e)) return e;
|
|
1513
|
+
}
|
|
1514
|
+
function Mo(e, r) {
|
|
1515
|
+
var i = [], n = !0, t = !1, o = void 0;
|
|
1516
|
+
try {
|
|
1517
|
+
for (var s = e[Symbol.iterator](), u; !(n = (u = s.next()).done) && (i.push(u.value), !(r && i.length === r)); n = !0)
|
|
1518
|
+
;
|
|
1519
|
+
} catch (l) {
|
|
1520
|
+
t = !0, o = l;
|
|
1521
|
+
} finally {
|
|
1522
|
+
try {
|
|
1523
|
+
!n && s.return != null && s.return();
|
|
1524
|
+
} finally {
|
|
1525
|
+
if (t) throw o;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
return i;
|
|
1529
|
+
}
|
|
1530
|
+
function Lo() {
|
|
1531
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
1532
|
+
}
|
|
1533
|
+
function Qe(e, r) {
|
|
1534
|
+
return Fo(e) || Mo(e, r) || Lo();
|
|
1535
|
+
}
|
|
1536
|
+
function Bo(e, r) {
|
|
1537
|
+
if (e == null) return {};
|
|
1538
|
+
var i = {}, n = Object.keys(e), t, o;
|
|
1539
|
+
for (o = 0; o < n.length; o++)
|
|
1540
|
+
t = n[o], !(r.indexOf(t) >= 0) && (i[t] = e[t]);
|
|
1541
|
+
return i;
|
|
1542
|
+
}
|
|
1543
|
+
function $o(e, r) {
|
|
1544
|
+
if (e == null) return {};
|
|
1545
|
+
var i = Bo(e, r), n, t;
|
|
1546
|
+
if (Object.getOwnPropertySymbols) {
|
|
1547
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1548
|
+
for (t = 0; t < o.length; t++)
|
|
1549
|
+
n = o[t], !(r.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
1550
|
+
}
|
|
1551
|
+
return i;
|
|
1552
|
+
}
|
|
1553
|
+
function Me(e) {
|
|
1554
|
+
"@babel/helpers - typeof";
|
|
1555
|
+
return Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
1556
|
+
return typeof r;
|
|
1557
|
+
} : function(r) {
|
|
1558
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
1559
|
+
}, Me(e);
|
|
1560
|
+
}
|
|
1561
|
+
function Ho(e, r) {
|
|
1562
|
+
if (Me(e) != "object" || !e) return e;
|
|
1563
|
+
var i = e[Symbol.toPrimitive];
|
|
1564
|
+
if (i !== void 0) {
|
|
1565
|
+
var n = i.call(e, r || "default");
|
|
1566
|
+
if (Me(n) != "object") return n;
|
|
1567
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1568
|
+
}
|
|
1569
|
+
return (r === "string" ? String : Number)(e);
|
|
1570
|
+
}
|
|
1571
|
+
function ko(e) {
|
|
1572
|
+
var r = Ho(e, "string");
|
|
1573
|
+
return Me(r) == "symbol" ? r : r + "";
|
|
1574
|
+
}
|
|
1575
|
+
function Le(e, r, i) {
|
|
1576
|
+
return (r = ko(r)) in e ? Object.defineProperty(e, r, {
|
|
1577
|
+
value: i,
|
|
1578
|
+
enumerable: !0,
|
|
1579
|
+
configurable: !0,
|
|
1580
|
+
writable: !0
|
|
1581
|
+
}) : e[r] = i, e;
|
|
1582
|
+
}
|
|
1583
|
+
function pt(e, r) {
|
|
1584
|
+
(r == null || r > e.length) && (r = e.length);
|
|
1585
|
+
for (var i = 0, n = Array(r); i < r; i++) n[i] = e[i];
|
|
1586
|
+
return n;
|
|
1587
|
+
}
|
|
1588
|
+
function Uo(e) {
|
|
1589
|
+
if (Array.isArray(e)) return pt(e);
|
|
1590
|
+
}
|
|
1591
|
+
function qo(e) {
|
|
1592
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1593
|
+
}
|
|
1594
|
+
function zo(e, r) {
|
|
1595
|
+
if (e) {
|
|
1596
|
+
if (typeof e == "string") return pt(e, r);
|
|
1597
|
+
var i = {}.toString.call(e).slice(8, -1);
|
|
1598
|
+
return i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set" ? Array.from(e) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? pt(e, r) : void 0;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
function Vo() {
|
|
1602
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1603
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1604
|
+
}
|
|
1605
|
+
function he(e) {
|
|
1606
|
+
return Uo(e) || qo(e) || zo(e) || Vo();
|
|
1607
|
+
}
|
|
1608
|
+
var Ne = function(r) {
|
|
1609
|
+
return r === Object(r) ? Object.keys(r) : [];
|
|
1610
|
+
}, An = function(r) {
|
|
1611
|
+
return r === Object(r) ? Object.values(r) : [];
|
|
1612
|
+
};
|
|
1613
|
+
function Tn(e, r) {
|
|
1614
|
+
var i = Object.assign({}, e);
|
|
1615
|
+
return We(e) && We(r) && Ne(r).forEach(function(n) {
|
|
1616
|
+
We(r[n]) ? n in e ? i[n] = Tn(e[n], r[n]) : Object.assign(i, Le({}, n, r[n])) : Object.assign(i, Le({}, n, r[n]));
|
|
1617
|
+
}), i;
|
|
1618
|
+
}
|
|
1619
|
+
var gt = function(r) {
|
|
1620
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
|
|
1621
|
+
n[t - 1] = arguments[t];
|
|
1622
|
+
return n.reduce(function(o, s) {
|
|
1623
|
+
return Tn(o, s);
|
|
1624
|
+
}, r);
|
|
1625
|
+
}, Yo = function(r, i) {
|
|
1626
|
+
var n = Object.assign({}, r);
|
|
1627
|
+
if (i)
|
|
1628
|
+
for (var t = 0; t < i.length; t++)
|
|
1629
|
+
delete n[i[t]];
|
|
1630
|
+
return n;
|
|
1631
|
+
}, We = function(r) {
|
|
1632
|
+
return r === Object(r) && !(r instanceof Date) && !Array.isArray(r);
|
|
1633
|
+
}, Wo = function(r) {
|
|
1634
|
+
return (r || []).filter(Boolean);
|
|
1635
|
+
}, Rt = function(r) {
|
|
1636
|
+
return r[0] === "&";
|
|
1637
|
+
}, Ko = function(r) {
|
|
1638
|
+
return !Rt(r);
|
|
1639
|
+
}, Ut = function(r) {
|
|
1640
|
+
return r.replace(/-(\w)/g, function(i, n) {
|
|
1641
|
+
return n.toUpperCase();
|
|
1642
|
+
});
|
|
1643
|
+
}, Xo = function(r) {
|
|
1644
|
+
for (var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = Ne(r), t = {}, o = 0, s = n.length; o < s; o += 1) {
|
|
1645
|
+
var u = n[o], l = Object.prototype.toString.call(r[u]) !== "[object Object]" || // style defs
|
|
1646
|
+
u[0] === ":" || // pseudo selectors
|
|
1647
|
+
u[0] === "@" || // @media / @keyframes / @supports / @font-face
|
|
1648
|
+
i.indexOf(u) >= 0;
|
|
1649
|
+
l && (t[u] = r[u]);
|
|
1650
|
+
}
|
|
1651
|
+
return t;
|
|
1652
|
+
}, In = function(r, i) {
|
|
1653
|
+
for (var n = i.map(Ut), t = Ne(r), o = {}, s = 0, u = t.length; s < u; s += 1) {
|
|
1654
|
+
var l = t[s];
|
|
1655
|
+
(i.indexOf(l) >= 0 || n.indexOf(Ut(l)) >= 0) && (o[l] = r[l]);
|
|
1656
|
+
}
|
|
1657
|
+
return o;
|
|
1658
|
+
}, Go = function e(r, i) {
|
|
1659
|
+
for (var n = gt.apply(void 0, [{}, Yo(r, i)].concat(he(An(In(r, i))))), t = Ne(n).filter(Rt), o = 0, s = t.length; o < s; o += 1) {
|
|
1660
|
+
var u = t[o], l = e(n[u], i);
|
|
1661
|
+
i.indexOf(u) >= 0 ? (delete n[u], n = gt({}, n, l)) : n[u] = l;
|
|
1662
|
+
}
|
|
1663
|
+
return n;
|
|
1664
|
+
};
|
|
1665
|
+
function qt(e, r) {
|
|
1666
|
+
var i = Object.keys(e);
|
|
1667
|
+
if (Object.getOwnPropertySymbols) {
|
|
1668
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1669
|
+
r && (n = n.filter(function(t) {
|
|
1670
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
1671
|
+
})), i.push.apply(i, n);
|
|
1672
|
+
}
|
|
1673
|
+
return i;
|
|
1674
|
+
}
|
|
1675
|
+
function zt(e) {
|
|
1676
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1677
|
+
var i = arguments[r] != null ? arguments[r] : {};
|
|
1678
|
+
r % 2 ? qt(Object(i), !0).forEach(function(n) {
|
|
1679
|
+
Le(e, n, i[n]);
|
|
1680
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : qt(Object(i)).forEach(function(n) {
|
|
1681
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1682
|
+
});
|
|
1683
|
+
}
|
|
1684
|
+
return e;
|
|
1685
|
+
}
|
|
1686
|
+
var Zo = ["animationName"], xn = function(r) {
|
|
1687
|
+
var i = r.style, n = r.className;
|
|
1688
|
+
return zt(zt({}, i ? {
|
|
1689
|
+
style: Xo(i, Zo)
|
|
1690
|
+
} : {}), n ? {
|
|
1691
|
+
className: n
|
|
1692
|
+
} : {});
|
|
1693
|
+
}, On = /* @__PURE__ */ _e(xn);
|
|
1694
|
+
On.Provider;
|
|
1695
|
+
var Dn = function(r) {
|
|
1696
|
+
if (r) {
|
|
1697
|
+
if (typeof r == "string")
|
|
1698
|
+
return [r];
|
|
1699
|
+
if (!Array.isArray(r)) {
|
|
1700
|
+
var i = r;
|
|
1701
|
+
return Ne(r).reduce(function(n, t) {
|
|
1702
|
+
return n.concat(i[t] ? [t] : []);
|
|
1703
|
+
}, []);
|
|
1704
|
+
}
|
|
1705
|
+
} else return [];
|
|
1706
|
+
return r;
|
|
1707
|
+
}, Qo = {}, Jo = function(r) {
|
|
1708
|
+
return function(i, n) {
|
|
1709
|
+
var t = n || Qo;
|
|
1710
|
+
r.memoize = r.memoize || /* @__PURE__ */ new WeakMap();
|
|
1711
|
+
var o;
|
|
1712
|
+
r.memoize.has(t) ? o = r.memoize.get(t) : (o = {}, r.memoize.set(t, o));
|
|
1713
|
+
var s = Dn(i).join(" ");
|
|
1714
|
+
return s in o ? o[s] : o[s] = r(i || [], n);
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
function Vt(e, r) {
|
|
1718
|
+
var i = Object.keys(e);
|
|
1719
|
+
if (Object.getOwnPropertySymbols) {
|
|
1720
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1721
|
+
r && (n = n.filter(function(t) {
|
|
1722
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
1723
|
+
})), i.push.apply(i, n);
|
|
1724
|
+
}
|
|
1725
|
+
return i;
|
|
1726
|
+
}
|
|
1727
|
+
function Ae(e) {
|
|
1728
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1729
|
+
var i = arguments[r] != null ? arguments[r] : {};
|
|
1730
|
+
r % 2 ? Vt(Object(i), !0).forEach(function(n) {
|
|
1731
|
+
Le(e, n, i[n]);
|
|
1732
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Vt(Object(i)).forEach(function(n) {
|
|
1733
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1734
|
+
});
|
|
1735
|
+
}
|
|
1736
|
+
return e;
|
|
1737
|
+
}
|
|
1738
|
+
var ei = function(r) {
|
|
1739
|
+
var i = r && Ne(r)[0];
|
|
1740
|
+
return i && i.split("__")[0].split("--")[0];
|
|
1741
|
+
}, ti = function(r, i, n) {
|
|
1742
|
+
if (r) {
|
|
1743
|
+
var t = r.split(" ")[0], o = [].concat(he(i.length === 0 ? n.map(function(s) {
|
|
1744
|
+
return "".concat(t, "--").concat(s.substring(1));
|
|
1745
|
+
}) : []), he(i.map(function(s) {
|
|
1746
|
+
return "".concat(t, "__").concat(s);
|
|
1747
|
+
})));
|
|
1748
|
+
return i.length === 0 ? [r].concat(he(o)) : o;
|
|
1749
|
+
}
|
|
1750
|
+
};
|
|
1751
|
+
function Rn(e) {
|
|
1752
|
+
var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : xn, o = i || ei(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r : Jo(function(c, f) {
|
|
1753
|
+
var g = Dn(c);
|
|
1754
|
+
Re(Array.isArray(g), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), Re(!f || We(f), "Optional second parameter must be a plain object.");
|
|
1755
|
+
var p = g.filter(Rt), m = g.filter(Ko), h = m.length > 0 ? function(S) {
|
|
1756
|
+
return An(In(S, m));
|
|
1757
|
+
} : function(S) {
|
|
1758
|
+
return [S];
|
|
1759
|
+
}, E = function() {
|
|
1760
|
+
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1761
|
+
return h(Go(I, p));
|
|
1762
|
+
}, C = ti(o, m, p);
|
|
1763
|
+
return Rn(Ae(Ae(Ae({}, (r || f) && {
|
|
1764
|
+
style: gt.apply(void 0, [{}].concat(he(E(f)), he(E(r))))
|
|
1765
|
+
}), C && {
|
|
1766
|
+
className: C.join(" ")
|
|
1767
|
+
}), n && {
|
|
1768
|
+
classNames: n
|
|
1769
|
+
}), t);
|
|
1770
|
+
}), u = Ae({}, typeof r == "function" ? r : {
|
|
1771
|
+
style: r
|
|
1772
|
+
}), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ? Wo(l.map(function(c) {
|
|
1773
|
+
return n[c];
|
|
1774
|
+
})) : l, a = t(Ae(Ae({}, u), d.length > 0 ? {
|
|
1775
|
+
className: d.join(" ")
|
|
1776
|
+
} : {}));
|
|
1777
|
+
return Object.assign(s, a), s;
|
|
1778
|
+
}
|
|
1779
|
+
function Yt(e, r) {
|
|
1780
|
+
var i = Object.keys(e);
|
|
1781
|
+
if (Object.getOwnPropertySymbols) {
|
|
1782
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1783
|
+
r && (n = n.filter(function(t) {
|
|
1784
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
1785
|
+
})), i.push.apply(i, n);
|
|
1786
|
+
}
|
|
1787
|
+
return i;
|
|
1788
|
+
}
|
|
1789
|
+
function je(e) {
|
|
1790
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1791
|
+
var i = arguments[r] != null ? arguments[r] : {};
|
|
1792
|
+
r % 2 ? Yt(Object(i), !0).forEach(function(n) {
|
|
1793
|
+
Le(e, n, i[n]);
|
|
1794
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Yt(Object(i)).forEach(function(n) {
|
|
1795
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1796
|
+
});
|
|
1797
|
+
}
|
|
1798
|
+
return e;
|
|
1799
|
+
}
|
|
1800
|
+
var ni = function() {
|
|
1801
|
+
for (var r = arguments.length, i = new Array(r), n = 0; n < r; n++)
|
|
1802
|
+
i[n] = arguments[n];
|
|
1803
|
+
return i.reduce(function(t, o) {
|
|
1804
|
+
return je(je(je({}, t), typeof o == "function" ? o : {}), {}, {
|
|
1805
|
+
style: je(je({}, t.style), typeof o == "function" ? o.style : o)
|
|
1806
|
+
});
|
|
1807
|
+
}, {});
|
|
1808
|
+
}, wt = function(r, i, n) {
|
|
1809
|
+
var t = i.style, o = i.className, s = i.classNames, u = ye(On), l = fe(function() {
|
|
1810
|
+
return Rn({
|
|
1811
|
+
style: t,
|
|
1812
|
+
className: o,
|
|
1813
|
+
classNames: s
|
|
1814
|
+
}, u);
|
|
1815
|
+
}, [t, o, s, u]);
|
|
1816
|
+
return l(n, r);
|
|
1817
|
+
}, ht = { exports: {} }, qe = { exports: {} }, Q = {};
|
|
1818
|
+
/** @license React v16.13.1
|
|
1819
|
+
* react-is.production.min.js
|
|
1820
|
+
*
|
|
1821
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1822
|
+
*
|
|
1823
|
+
* This source code is licensed under the MIT license found in the
|
|
1824
|
+
* LICENSE file in the root directory of this source tree.
|
|
1825
|
+
*/
|
|
1826
|
+
var Wt;
|
|
1827
|
+
function ri() {
|
|
1828
|
+
if (Wt) return Q;
|
|
1829
|
+
Wt = 1;
|
|
1830
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
1831
|
+
function S(y) {
|
|
1832
|
+
if (typeof y == "object" && y !== null) {
|
|
1833
|
+
var A = y.$$typeof;
|
|
1834
|
+
switch (A) {
|
|
1835
|
+
case r:
|
|
1836
|
+
switch (y = y.type, y) {
|
|
1837
|
+
case l:
|
|
1838
|
+
case d:
|
|
1839
|
+
case n:
|
|
1840
|
+
case o:
|
|
1841
|
+
case t:
|
|
1842
|
+
case c:
|
|
1843
|
+
return y;
|
|
1844
|
+
default:
|
|
1845
|
+
switch (y = y && y.$$typeof, y) {
|
|
1846
|
+
case u:
|
|
1847
|
+
case a:
|
|
1848
|
+
case p:
|
|
1849
|
+
case g:
|
|
1850
|
+
case s:
|
|
1851
|
+
return y;
|
|
1852
|
+
default:
|
|
1853
|
+
return A;
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
case i:
|
|
1857
|
+
return A;
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
function I(y) {
|
|
1862
|
+
return S(y) === d;
|
|
1863
|
+
}
|
|
1864
|
+
return Q.AsyncMode = l, Q.ConcurrentMode = d, Q.ContextConsumer = u, Q.ContextProvider = s, Q.Element = r, Q.ForwardRef = a, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = i, Q.Profiler = o, Q.StrictMode = t, Q.Suspense = c, Q.isAsyncMode = function(y) {
|
|
1865
|
+
return I(y) || S(y) === l;
|
|
1866
|
+
}, Q.isConcurrentMode = I, Q.isContextConsumer = function(y) {
|
|
1867
|
+
return S(y) === u;
|
|
1868
|
+
}, Q.isContextProvider = function(y) {
|
|
1869
|
+
return S(y) === s;
|
|
1870
|
+
}, Q.isElement = function(y) {
|
|
1871
|
+
return typeof y == "object" && y !== null && y.$$typeof === r;
|
|
1872
|
+
}, Q.isForwardRef = function(y) {
|
|
1873
|
+
return S(y) === a;
|
|
1874
|
+
}, Q.isFragment = function(y) {
|
|
1875
|
+
return S(y) === n;
|
|
1876
|
+
}, Q.isLazy = function(y) {
|
|
1877
|
+
return S(y) === p;
|
|
1878
|
+
}, Q.isMemo = function(y) {
|
|
1879
|
+
return S(y) === g;
|
|
1880
|
+
}, Q.isPortal = function(y) {
|
|
1881
|
+
return S(y) === i;
|
|
1882
|
+
}, Q.isProfiler = function(y) {
|
|
1883
|
+
return S(y) === o;
|
|
1884
|
+
}, Q.isStrictMode = function(y) {
|
|
1885
|
+
return S(y) === t;
|
|
1886
|
+
}, Q.isSuspense = function(y) {
|
|
1887
|
+
return S(y) === c;
|
|
1888
|
+
}, Q.isValidElementType = function(y) {
|
|
1889
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === d || y === o || y === t || y === c || y === f || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === g || y.$$typeof === s || y.$$typeof === u || y.$$typeof === a || y.$$typeof === h || y.$$typeof === E || y.$$typeof === C || y.$$typeof === m);
|
|
1890
|
+
}, Q.typeOf = S, Q;
|
|
1891
|
+
}
|
|
1892
|
+
var J = {};
|
|
1893
|
+
/** @license React v16.13.1
|
|
1894
|
+
* react-is.development.js
|
|
1895
|
+
*
|
|
1896
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1897
|
+
*
|
|
1898
|
+
* This source code is licensed under the MIT license found in the
|
|
1899
|
+
* LICENSE file in the root directory of this source tree.
|
|
1900
|
+
*/
|
|
1901
|
+
var Kt;
|
|
1902
|
+
function oi() {
|
|
1903
|
+
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1904
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
1905
|
+
function S(R) {
|
|
1906
|
+
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1907
|
+
R === n || R === d || R === o || R === t || R === c || R === f || typeof R == "object" && R !== null && (R.$$typeof === p || R.$$typeof === g || R.$$typeof === s || R.$$typeof === u || R.$$typeof === a || R.$$typeof === h || R.$$typeof === E || R.$$typeof === C || R.$$typeof === m);
|
|
1908
|
+
}
|
|
1909
|
+
function I(R) {
|
|
1910
|
+
if (typeof R == "object" && R !== null) {
|
|
1911
|
+
var pe = R.$$typeof;
|
|
1912
|
+
switch (pe) {
|
|
1913
|
+
case r:
|
|
1914
|
+
var ke = R.type;
|
|
1915
|
+
switch (ke) {
|
|
1916
|
+
case l:
|
|
1917
|
+
case d:
|
|
1918
|
+
case n:
|
|
1919
|
+
case o:
|
|
1920
|
+
case t:
|
|
1921
|
+
case c:
|
|
1922
|
+
return ke;
|
|
1923
|
+
default:
|
|
1924
|
+
var Ft = ke && ke.$$typeof;
|
|
1925
|
+
switch (Ft) {
|
|
1926
|
+
case u:
|
|
1927
|
+
case a:
|
|
1928
|
+
case p:
|
|
1929
|
+
case g:
|
|
1930
|
+
case s:
|
|
1931
|
+
return Ft;
|
|
1932
|
+
default:
|
|
1933
|
+
return pe;
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
case i:
|
|
1937
|
+
return pe;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
var y = l, A = d, D = u, b = s, w = r, T = a, P = n, q = p, Y = g, F = i, V = o, N = t, j = c, $ = !1;
|
|
1942
|
+
function G(R) {
|
|
1943
|
+
return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(R) || I(R) === l;
|
|
1944
|
+
}
|
|
1945
|
+
function _(R) {
|
|
1946
|
+
return I(R) === d;
|
|
1947
|
+
}
|
|
1948
|
+
function x(R) {
|
|
1949
|
+
return I(R) === u;
|
|
1950
|
+
}
|
|
1951
|
+
function L(R) {
|
|
1952
|
+
return I(R) === s;
|
|
1953
|
+
}
|
|
1954
|
+
function B(R) {
|
|
1955
|
+
return typeof R == "object" && R !== null && R.$$typeof === r;
|
|
1956
|
+
}
|
|
1957
|
+
function M(R) {
|
|
1958
|
+
return I(R) === a;
|
|
1959
|
+
}
|
|
1960
|
+
function W(R) {
|
|
1961
|
+
return I(R) === n;
|
|
1962
|
+
}
|
|
1963
|
+
function U(R) {
|
|
1964
|
+
return I(R) === p;
|
|
1965
|
+
}
|
|
1966
|
+
function z(R) {
|
|
1967
|
+
return I(R) === g;
|
|
1968
|
+
}
|
|
1969
|
+
function K(R) {
|
|
1970
|
+
return I(R) === i;
|
|
1971
|
+
}
|
|
1972
|
+
function ee(R) {
|
|
1973
|
+
return I(R) === o;
|
|
1974
|
+
}
|
|
1975
|
+
function X(R) {
|
|
1976
|
+
return I(R) === t;
|
|
1977
|
+
}
|
|
1978
|
+
function ie(R) {
|
|
1979
|
+
return I(R) === c;
|
|
1980
|
+
}
|
|
1981
|
+
J.AsyncMode = y, J.ConcurrentMode = A, J.ContextConsumer = D, J.ContextProvider = b, J.Element = w, J.ForwardRef = T, J.Fragment = P, J.Lazy = q, J.Memo = Y, J.Portal = F, J.Profiler = V, J.StrictMode = N, J.Suspense = j, J.isAsyncMode = G, J.isConcurrentMode = _, J.isContextConsumer = x, J.isContextProvider = L, J.isElement = B, J.isForwardRef = M, J.isFragment = W, J.isLazy = U, J.isMemo = z, J.isPortal = K, J.isProfiler = ee, J.isStrictMode = X, J.isSuspense = ie, J.isValidElementType = S, J.typeOf = I;
|
|
1982
|
+
}()), J;
|
|
1983
|
+
}
|
|
1984
|
+
var Xt;
|
|
1985
|
+
function wn() {
|
|
1986
|
+
return Xt || (Xt = 1, process.env.NODE_ENV === "production" ? qe.exports = ri() : qe.exports = oi()), qe.exports;
|
|
1987
|
+
}
|
|
1988
|
+
/*
|
|
1989
|
+
object-assign
|
|
1990
|
+
(c) Sindre Sorhus
|
|
1991
|
+
@license MIT
|
|
1992
|
+
*/
|
|
1993
|
+
var ot, Gt;
|
|
1994
|
+
function ii() {
|
|
1995
|
+
if (Gt) return ot;
|
|
1996
|
+
Gt = 1;
|
|
1997
|
+
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
1998
|
+
function n(o) {
|
|
1999
|
+
if (o == null)
|
|
2000
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
2001
|
+
return Object(o);
|
|
2002
|
+
}
|
|
2003
|
+
function t() {
|
|
2004
|
+
try {
|
|
2005
|
+
if (!Object.assign)
|
|
2006
|
+
return !1;
|
|
2007
|
+
var o = new String("abc");
|
|
2008
|
+
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
|
|
2009
|
+
return !1;
|
|
2010
|
+
for (var s = {}, u = 0; u < 10; u++)
|
|
2011
|
+
s["_" + String.fromCharCode(u)] = u;
|
|
2012
|
+
var l = Object.getOwnPropertyNames(s).map(function(a) {
|
|
2013
|
+
return s[a];
|
|
2014
|
+
});
|
|
2015
|
+
if (l.join("") !== "0123456789")
|
|
2016
|
+
return !1;
|
|
2017
|
+
var d = {};
|
|
2018
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(a) {
|
|
2019
|
+
d[a] = a;
|
|
2020
|
+
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
|
|
2021
|
+
} catch {
|
|
2022
|
+
return !1;
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
return ot = t() ? Object.assign : function(o, s) {
|
|
2026
|
+
for (var u, l = n(o), d, a = 1; a < arguments.length; a++) {
|
|
2027
|
+
u = Object(arguments[a]);
|
|
2028
|
+
for (var c in u)
|
|
2029
|
+
r.call(u, c) && (l[c] = u[c]);
|
|
2030
|
+
if (e) {
|
|
2031
|
+
d = e(u);
|
|
2032
|
+
for (var f = 0; f < d.length; f++)
|
|
2033
|
+
i.call(u, d[f]) && (l[d[f]] = u[d[f]]);
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
return l;
|
|
2037
|
+
}, ot;
|
|
2038
|
+
}
|
|
2039
|
+
var it, Zt;
|
|
2040
|
+
function Nt() {
|
|
2041
|
+
if (Zt) return it;
|
|
2042
|
+
Zt = 1;
|
|
2043
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2044
|
+
return it = e, it;
|
|
2045
|
+
}
|
|
2046
|
+
var st, Qt;
|
|
2047
|
+
function Nn() {
|
|
2048
|
+
return Qt || (Qt = 1, st = Function.call.bind(Object.prototype.hasOwnProperty)), st;
|
|
2049
|
+
}
|
|
2050
|
+
var at, Jt;
|
|
2051
|
+
function si() {
|
|
2052
|
+
if (Jt) return at;
|
|
2053
|
+
Jt = 1;
|
|
2054
|
+
var e = function() {
|
|
2055
|
+
};
|
|
2056
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2057
|
+
var r = Nt(), i = {}, n = Nn();
|
|
2058
|
+
e = function(o) {
|
|
2059
|
+
var s = "Warning: " + o;
|
|
2060
|
+
typeof console < "u" && console.error(s);
|
|
2061
|
+
try {
|
|
2062
|
+
throw new Error(s);
|
|
2063
|
+
} catch {
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
function t(o, s, u, l, d) {
|
|
2068
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2069
|
+
for (var a in o)
|
|
2070
|
+
if (n(o, a)) {
|
|
2071
|
+
var c;
|
|
2072
|
+
try {
|
|
2073
|
+
if (typeof o[a] != "function") {
|
|
2074
|
+
var f = Error(
|
|
2075
|
+
(l || "React class") + ": " + u + " type `" + a + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[a] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2076
|
+
);
|
|
2077
|
+
throw f.name = "Invariant Violation", f;
|
|
2078
|
+
}
|
|
2079
|
+
c = o[a](s, a, l, u, null, r);
|
|
2080
|
+
} catch (p) {
|
|
2081
|
+
c = p;
|
|
2082
|
+
}
|
|
2083
|
+
if (c && !(c instanceof Error) && e(
|
|
2084
|
+
(l || "React class") + ": type specification of " + u + " `" + a + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2085
|
+
), c instanceof Error && !(c.message in i)) {
|
|
2086
|
+
i[c.message] = !0;
|
|
2087
|
+
var g = d ? d() : "";
|
|
2088
|
+
e(
|
|
2089
|
+
"Failed " + u + " type: " + c.message + (g ?? "")
|
|
2090
|
+
);
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
return t.resetWarningCache = function() {
|
|
2096
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
2097
|
+
}, at = t, at;
|
|
2098
|
+
}
|
|
2099
|
+
var ut, en;
|
|
2100
|
+
function ai() {
|
|
2101
|
+
if (en) return ut;
|
|
2102
|
+
en = 1;
|
|
2103
|
+
var e = wn(), r = ii(), i = Nt(), n = Nn(), t = si(), o = function() {
|
|
2104
|
+
};
|
|
2105
|
+
process.env.NODE_ENV !== "production" && (o = function(u) {
|
|
2106
|
+
var l = "Warning: " + u;
|
|
2107
|
+
typeof console < "u" && console.error(l);
|
|
2108
|
+
try {
|
|
2109
|
+
throw new Error(l);
|
|
2110
|
+
} catch {
|
|
2111
|
+
}
|
|
2112
|
+
});
|
|
2113
|
+
function s() {
|
|
2114
|
+
return null;
|
|
2115
|
+
}
|
|
2116
|
+
return ut = function(u, l) {
|
|
2117
|
+
var d = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator";
|
|
2118
|
+
function c(_) {
|
|
2119
|
+
var x = _ && (d && _[d] || _[a]);
|
|
2120
|
+
if (typeof x == "function")
|
|
2121
|
+
return x;
|
|
2122
|
+
}
|
|
2123
|
+
var f = "<<anonymous>>", g = {
|
|
2124
|
+
array: E("array"),
|
|
2125
|
+
bigint: E("bigint"),
|
|
2126
|
+
bool: E("boolean"),
|
|
2127
|
+
func: E("function"),
|
|
2128
|
+
number: E("number"),
|
|
2129
|
+
object: E("object"),
|
|
2130
|
+
string: E("string"),
|
|
2131
|
+
symbol: E("symbol"),
|
|
2132
|
+
any: C(),
|
|
2133
|
+
arrayOf: S,
|
|
2134
|
+
element: I(),
|
|
2135
|
+
elementType: y(),
|
|
2136
|
+
instanceOf: A,
|
|
2137
|
+
node: T(),
|
|
2138
|
+
objectOf: b,
|
|
2139
|
+
oneOf: D,
|
|
2140
|
+
oneOfType: w,
|
|
2141
|
+
shape: q,
|
|
2142
|
+
exact: Y
|
|
2143
|
+
};
|
|
2144
|
+
function p(_, x) {
|
|
2145
|
+
return _ === x ? _ !== 0 || 1 / _ === 1 / x : _ !== _ && x !== x;
|
|
2146
|
+
}
|
|
2147
|
+
function m(_, x) {
|
|
2148
|
+
this.message = _, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
2149
|
+
}
|
|
2150
|
+
m.prototype = Error.prototype;
|
|
2151
|
+
function h(_) {
|
|
2152
|
+
if (process.env.NODE_ENV !== "production")
|
|
2153
|
+
var x = {}, L = 0;
|
|
2154
|
+
function B(W, U, z, K, ee, X, ie) {
|
|
2155
|
+
if (K = K || f, X = X || z, ie !== i) {
|
|
2156
|
+
if (l) {
|
|
2157
|
+
var R = new Error(
|
|
2158
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2159
|
+
);
|
|
2160
|
+
throw R.name = "Invariant Violation", R;
|
|
2161
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2162
|
+
var pe = K + ":" + z;
|
|
2163
|
+
!x[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2164
|
+
L < 3 && (o(
|
|
2165
|
+
"You are manually calling a React.PropTypes validation function for the `" + X + "` prop on `" + K + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2166
|
+
), x[pe] = !0, L++);
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
return U[z] == null ? W ? U[z] === null ? new m("The " + ee + " `" + X + "` is marked as required " + ("in `" + K + "`, but its value is `null`.")) : new m("The " + ee + " `" + X + "` is marked as required in " + ("`" + K + "`, but its value is `undefined`.")) : null : _(U, z, K, ee, X);
|
|
2170
|
+
}
|
|
2171
|
+
var M = B.bind(null, !1);
|
|
2172
|
+
return M.isRequired = B.bind(null, !0), M;
|
|
2173
|
+
}
|
|
2174
|
+
function E(_) {
|
|
2175
|
+
function x(L, B, M, W, U, z) {
|
|
2176
|
+
var K = L[B], ee = N(K);
|
|
2177
|
+
if (ee !== _) {
|
|
2178
|
+
var X = j(K);
|
|
2179
|
+
return new m(
|
|
2180
|
+
"Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected ") + ("`" + _ + "`."),
|
|
2181
|
+
{ expectedType: _ }
|
|
2182
|
+
);
|
|
2183
|
+
}
|
|
2184
|
+
return null;
|
|
2185
|
+
}
|
|
2186
|
+
return h(x);
|
|
2187
|
+
}
|
|
2188
|
+
function C() {
|
|
2189
|
+
return h(s);
|
|
2190
|
+
}
|
|
2191
|
+
function S(_) {
|
|
2192
|
+
function x(L, B, M, W, U) {
|
|
2193
|
+
if (typeof _ != "function")
|
|
2194
|
+
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
|
|
2195
|
+
var z = L[B];
|
|
2196
|
+
if (!Array.isArray(z)) {
|
|
2197
|
+
var K = N(z);
|
|
2198
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected an array."));
|
|
2199
|
+
}
|
|
2200
|
+
for (var ee = 0; ee < z.length; ee++) {
|
|
2201
|
+
var X = _(z, ee, M, W, U + "[" + ee + "]", i);
|
|
2202
|
+
if (X instanceof Error)
|
|
2203
|
+
return X;
|
|
2204
|
+
}
|
|
2205
|
+
return null;
|
|
2206
|
+
}
|
|
2207
|
+
return h(x);
|
|
2208
|
+
}
|
|
2209
|
+
function I() {
|
|
2210
|
+
function _(x, L, B, M, W) {
|
|
2211
|
+
var U = x[L];
|
|
2212
|
+
if (!u(U)) {
|
|
2213
|
+
var z = N(U);
|
|
2214
|
+
return new m("Invalid " + M + " `" + W + "` of type " + ("`" + z + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
2215
|
+
}
|
|
2216
|
+
return null;
|
|
2217
|
+
}
|
|
2218
|
+
return h(_);
|
|
2219
|
+
}
|
|
2220
|
+
function y() {
|
|
2221
|
+
function _(x, L, B, M, W) {
|
|
2222
|
+
var U = x[L];
|
|
2223
|
+
if (!e.isValidElementType(U)) {
|
|
2224
|
+
var z = N(U);
|
|
2225
|
+
return new m("Invalid " + M + " `" + W + "` of type " + ("`" + z + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
2226
|
+
}
|
|
2227
|
+
return null;
|
|
2228
|
+
}
|
|
2229
|
+
return h(_);
|
|
2230
|
+
}
|
|
2231
|
+
function A(_) {
|
|
2232
|
+
function x(L, B, M, W, U) {
|
|
2233
|
+
if (!(L[B] instanceof _)) {
|
|
2234
|
+
var z = _.name || f, K = G(L[B]);
|
|
2235
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected ") + ("instance of `" + z + "`."));
|
|
2236
|
+
}
|
|
2237
|
+
return null;
|
|
2238
|
+
}
|
|
2239
|
+
return h(x);
|
|
2240
|
+
}
|
|
2241
|
+
function D(_) {
|
|
2242
|
+
if (!Array.isArray(_))
|
|
2243
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
2244
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2245
|
+
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2246
|
+
function x(L, B, M, W, U) {
|
|
2247
|
+
for (var z = L[B], K = 0; K < _.length; K++)
|
|
2248
|
+
if (p(z, _[K]))
|
|
2249
|
+
return null;
|
|
2250
|
+
var ee = JSON.stringify(_, function(ie, R) {
|
|
2251
|
+
var pe = j(R);
|
|
2252
|
+
return pe === "symbol" ? String(R) : R;
|
|
2253
|
+
});
|
|
2254
|
+
return new m("Invalid " + W + " `" + U + "` of value `" + String(z) + "` " + ("supplied to `" + M + "`, expected one of " + ee + "."));
|
|
2255
|
+
}
|
|
2256
|
+
return h(x);
|
|
2257
|
+
}
|
|
2258
|
+
function b(_) {
|
|
2259
|
+
function x(L, B, M, W, U) {
|
|
2260
|
+
if (typeof _ != "function")
|
|
2261
|
+
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
|
|
2262
|
+
var z = L[B], K = N(z);
|
|
2263
|
+
if (K !== "object")
|
|
2264
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected an object."));
|
|
2265
|
+
for (var ee in z)
|
|
2266
|
+
if (n(z, ee)) {
|
|
2267
|
+
var X = _(z, ee, M, W, U + "." + ee, i);
|
|
2268
|
+
if (X instanceof Error)
|
|
2269
|
+
return X;
|
|
2270
|
+
}
|
|
2271
|
+
return null;
|
|
2272
|
+
}
|
|
2273
|
+
return h(x);
|
|
2274
|
+
}
|
|
2275
|
+
function w(_) {
|
|
2276
|
+
if (!Array.isArray(_))
|
|
2277
|
+
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
2278
|
+
for (var x = 0; x < _.length; x++) {
|
|
2279
|
+
var L = _[x];
|
|
2280
|
+
if (typeof L != "function")
|
|
2281
|
+
return o(
|
|
2282
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(L) + " at index " + x + "."
|
|
2283
|
+
), s;
|
|
2284
|
+
}
|
|
2285
|
+
function B(M, W, U, z, K) {
|
|
2286
|
+
for (var ee = [], X = 0; X < _.length; X++) {
|
|
2287
|
+
var ie = _[X], R = ie(M, W, U, z, K, i);
|
|
2288
|
+
if (R == null)
|
|
2289
|
+
return null;
|
|
2290
|
+
R.data && n(R.data, "expectedType") && ee.push(R.data.expectedType);
|
|
2291
|
+
}
|
|
2292
|
+
var pe = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
|
|
2293
|
+
return new m("Invalid " + z + " `" + K + "` supplied to " + ("`" + U + "`" + pe + "."));
|
|
2294
|
+
}
|
|
2295
|
+
return h(B);
|
|
2296
|
+
}
|
|
2297
|
+
function T() {
|
|
2298
|
+
function _(x, L, B, M, W) {
|
|
2299
|
+
return F(x[L]) ? null : new m("Invalid " + M + " `" + W + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
2300
|
+
}
|
|
2301
|
+
return h(_);
|
|
2302
|
+
}
|
|
2303
|
+
function P(_, x, L, B, M) {
|
|
2304
|
+
return new m(
|
|
2305
|
+
(_ || "React class") + ": " + x + " type `" + L + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + M + "`."
|
|
2306
|
+
);
|
|
2307
|
+
}
|
|
2308
|
+
function q(_) {
|
|
2309
|
+
function x(L, B, M, W, U) {
|
|
2310
|
+
var z = L[B], K = N(z);
|
|
2311
|
+
if (K !== "object")
|
|
2312
|
+
return new m("Invalid " + W + " `" + U + "` of type `" + K + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
2313
|
+
for (var ee in _) {
|
|
2314
|
+
var X = _[ee];
|
|
2315
|
+
if (typeof X != "function")
|
|
2316
|
+
return P(M, W, U, ee, j(X));
|
|
2317
|
+
var ie = X(z, ee, M, W, U + "." + ee, i);
|
|
2318
|
+
if (ie)
|
|
2319
|
+
return ie;
|
|
2320
|
+
}
|
|
2321
|
+
return null;
|
|
2322
|
+
}
|
|
2323
|
+
return h(x);
|
|
2324
|
+
}
|
|
2325
|
+
function Y(_) {
|
|
2326
|
+
function x(L, B, M, W, U) {
|
|
2327
|
+
var z = L[B], K = N(z);
|
|
2328
|
+
if (K !== "object")
|
|
2329
|
+
return new m("Invalid " + W + " `" + U + "` of type `" + K + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
2330
|
+
var ee = r({}, L[B], _);
|
|
2331
|
+
for (var X in ee) {
|
|
2332
|
+
var ie = _[X];
|
|
2333
|
+
if (n(_, X) && typeof ie != "function")
|
|
2334
|
+
return P(M, W, U, X, j(ie));
|
|
2335
|
+
if (!ie)
|
|
2336
|
+
return new m(
|
|
2337
|
+
"Invalid " + W + " `" + U + "` key `" + X + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[B], null, " ") + `
|
|
2338
|
+
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
2339
|
+
);
|
|
2340
|
+
var R = ie(z, X, M, W, U + "." + X, i);
|
|
2341
|
+
if (R)
|
|
2342
|
+
return R;
|
|
2343
|
+
}
|
|
2344
|
+
return null;
|
|
2345
|
+
}
|
|
2346
|
+
return h(x);
|
|
2347
|
+
}
|
|
2348
|
+
function F(_) {
|
|
2349
|
+
switch (typeof _) {
|
|
2350
|
+
case "number":
|
|
2351
|
+
case "string":
|
|
2352
|
+
case "undefined":
|
|
2353
|
+
return !0;
|
|
2354
|
+
case "boolean":
|
|
2355
|
+
return !_;
|
|
2356
|
+
case "object":
|
|
2357
|
+
if (Array.isArray(_))
|
|
2358
|
+
return _.every(F);
|
|
2359
|
+
if (_ === null || u(_))
|
|
2360
|
+
return !0;
|
|
2361
|
+
var x = c(_);
|
|
2362
|
+
if (x) {
|
|
2363
|
+
var L = x.call(_), B;
|
|
2364
|
+
if (x !== _.entries) {
|
|
2365
|
+
for (; !(B = L.next()).done; )
|
|
2366
|
+
if (!F(B.value))
|
|
2367
|
+
return !1;
|
|
2368
|
+
} else
|
|
2369
|
+
for (; !(B = L.next()).done; ) {
|
|
2370
|
+
var M = B.value;
|
|
2371
|
+
if (M && !F(M[1]))
|
|
2372
|
+
return !1;
|
|
2373
|
+
}
|
|
2374
|
+
} else
|
|
2375
|
+
return !1;
|
|
2376
|
+
return !0;
|
|
2377
|
+
default:
|
|
2378
|
+
return !1;
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
function V(_, x) {
|
|
2382
|
+
return _ === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
2383
|
+
}
|
|
2384
|
+
function N(_) {
|
|
2385
|
+
var x = typeof _;
|
|
2386
|
+
return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : V(x, _) ? "symbol" : x;
|
|
2387
|
+
}
|
|
2388
|
+
function j(_) {
|
|
2389
|
+
if (typeof _ > "u" || _ === null)
|
|
2390
|
+
return "" + _;
|
|
2391
|
+
var x = N(_);
|
|
2392
|
+
if (x === "object") {
|
|
2393
|
+
if (_ instanceof Date)
|
|
2394
|
+
return "date";
|
|
2395
|
+
if (_ instanceof RegExp)
|
|
2396
|
+
return "regexp";
|
|
2397
|
+
}
|
|
2398
|
+
return x;
|
|
2399
|
+
}
|
|
2400
|
+
function $(_) {
|
|
2401
|
+
var x = j(_);
|
|
2402
|
+
switch (x) {
|
|
2403
|
+
case "array":
|
|
2404
|
+
case "object":
|
|
2405
|
+
return "an " + x;
|
|
2406
|
+
case "boolean":
|
|
2407
|
+
case "date":
|
|
2408
|
+
case "regexp":
|
|
2409
|
+
return "a " + x;
|
|
2410
|
+
default:
|
|
2411
|
+
return x;
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
function G(_) {
|
|
2415
|
+
return !_.constructor || !_.constructor.name ? f : _.constructor.name;
|
|
2416
|
+
}
|
|
2417
|
+
return g.checkPropTypes = t, g.resetWarningCache = t.resetWarningCache, g.PropTypes = g, g;
|
|
2418
|
+
}, ut;
|
|
2419
|
+
}
|
|
2420
|
+
var lt, tn;
|
|
2421
|
+
function ui() {
|
|
2422
|
+
if (tn) return lt;
|
|
2423
|
+
tn = 1;
|
|
2424
|
+
var e = Nt();
|
|
2425
|
+
function r() {
|
|
2426
|
+
}
|
|
2427
|
+
function i() {
|
|
2428
|
+
}
|
|
2429
|
+
return i.resetWarningCache = r, lt = function() {
|
|
2430
|
+
function n(s, u, l, d, a, c) {
|
|
2431
|
+
if (c !== e) {
|
|
2432
|
+
var f = new Error(
|
|
2433
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2434
|
+
);
|
|
2435
|
+
throw f.name = "Invariant Violation", f;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
n.isRequired = n;
|
|
2439
|
+
function t() {
|
|
2440
|
+
return n;
|
|
2441
|
+
}
|
|
2442
|
+
var o = {
|
|
2443
|
+
array: n,
|
|
2444
|
+
bigint: n,
|
|
2445
|
+
bool: n,
|
|
2446
|
+
func: n,
|
|
2447
|
+
number: n,
|
|
2448
|
+
object: n,
|
|
2449
|
+
string: n,
|
|
2450
|
+
symbol: n,
|
|
2451
|
+
any: n,
|
|
2452
|
+
arrayOf: t,
|
|
2453
|
+
element: n,
|
|
2454
|
+
elementType: n,
|
|
2455
|
+
instanceOf: t,
|
|
2456
|
+
node: n,
|
|
2457
|
+
objectOf: t,
|
|
2458
|
+
oneOf: t,
|
|
2459
|
+
oneOfType: t,
|
|
2460
|
+
shape: t,
|
|
2461
|
+
exact: t,
|
|
2462
|
+
checkPropTypes: i,
|
|
2463
|
+
resetWarningCache: r
|
|
2464
|
+
};
|
|
2465
|
+
return o.PropTypes = o, o;
|
|
2466
|
+
}, lt;
|
|
2467
|
+
}
|
|
2468
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2469
|
+
var li = wn(), ci = !0;
|
|
2470
|
+
ht.exports = ai()(li.isElement, ci);
|
|
2471
|
+
} else
|
|
2472
|
+
ht.exports = ui()();
|
|
2473
|
+
var di = ht.exports;
|
|
2474
|
+
const O = /* @__PURE__ */ yt(di);
|
|
2475
|
+
var Ke = function(r) {
|
|
2476
|
+
return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
2477
|
+
}, ge = {
|
|
2478
|
+
id: "__id__",
|
|
2479
|
+
display: "__display__"
|
|
2480
|
+
}, nn = function(r, i) {
|
|
2481
|
+
Re(i === "id" || i === "display", 'Second arg must be either "id" or "display", got: "'.concat(i, '"'));
|
|
2482
|
+
var n = r.indexOf(ge.display), t = r.indexOf(ge.id);
|
|
2483
|
+
return n < 0 && (n = null), t < 0 && (t = null), Re(n !== null || t !== null, "The markup '".concat(r, "' does not contain either of the placeholders '__id__' or '__display__'")), n !== null && t !== null ? i === "id" && t <= n || i === "display" && n <= t ? 0 : 1 : 0;
|
|
2484
|
+
}, fi = function(r) {
|
|
2485
|
+
var i = /^\/(.+)\/(\w+)?$/;
|
|
2486
|
+
return new RegExp(r.map(function(n) {
|
|
2487
|
+
var t = i.exec(n.toString()), o = Qe(t, 3), s = o[1], u = o[2];
|
|
2488
|
+
return Re(!u, "RegExp flags are not supported. Change /".concat(s, "/").concat(u, " into /").concat(s, "/")), "(".concat(s, ")");
|
|
2489
|
+
}).join("|"), "g");
|
|
2490
|
+
}, jn = function(r) {
|
|
2491
|
+
var i = 0;
|
|
2492
|
+
return r.indexOf("__id__") >= 0 && i++, r.indexOf("__display__") >= 0 && i++, i;
|
|
2493
|
+
}, pi = function() {
|
|
2494
|
+
}, He = function(r, i, n) {
|
|
2495
|
+
for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : pi, o = fi(i.map(function(y) {
|
|
2496
|
+
return y.regex;
|
|
2497
|
+
})), s = 2, u = i.map(function(y) {
|
|
2498
|
+
var A = y.markup, D = s;
|
|
2499
|
+
return s += jn(A) + 1, D;
|
|
2500
|
+
}), l, d = 0, a = 0; (l = o.exec(r)) !== null; ) {
|
|
2501
|
+
var c = u.find(function(y) {
|
|
2502
|
+
return !!l[y];
|
|
2503
|
+
}), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform, h = c + nn(p, "id"), E = c + nn(p, "display"), C = l[h], S = m(C, l[E]), I = r.substring(d, l.index);
|
|
2504
|
+
t(I, d, a), a += I.length, n(l[0], l.index, a, C, S, f, d), a += S.length, d = o.lastIndex;
|
|
2505
|
+
}
|
|
2506
|
+
d < r.length && t(r.substring(d), d, a);
|
|
2507
|
+
}, be = function(r, i) {
|
|
2508
|
+
var n = "";
|
|
2509
|
+
return He(r, i, function(t, o, s, u, l) {
|
|
2510
|
+
n += l;
|
|
2511
|
+
}, function(t) {
|
|
2512
|
+
n += t;
|
|
2513
|
+
}), n;
|
|
2514
|
+
}, oe = function(r, i, n) {
|
|
2515
|
+
var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "START";
|
|
2516
|
+
if (typeof n != "number")
|
|
2517
|
+
return n;
|
|
2518
|
+
var o, s = function(d, a, c) {
|
|
2519
|
+
o === void 0 && c + d.length >= n && (o = a + n - c);
|
|
2520
|
+
}, u = function(d, a, c, f, g, p, m) {
|
|
2521
|
+
o === void 0 && c + g.length > n && (t === "NULL" ? o = null : o = a + (t === "END" ? d.length : 0));
|
|
2522
|
+
};
|
|
2523
|
+
return He(r, i, u, s), o === void 0 ? r.length : o;
|
|
2524
|
+
}, Fe = function(r, i, n, t) {
|
|
2525
|
+
return r.substring(0, i) + t + r.substring(n);
|
|
2526
|
+
}, gi = function(r, i, n, t) {
|
|
2527
|
+
var o = n.selectionStartBefore, s = n.selectionEndBefore, u = n.selectionEndAfter, l = be(r, t), d = l.length - i.length;
|
|
2528
|
+
o === "undefined" && (o = u + d), s === "undefined" && (s = o), o === s && s === u && l.length === i.length && (o = o - 1);
|
|
2529
|
+
var a = i.slice(o, u), c = Math.min(o, u), f = s;
|
|
2530
|
+
o === u && (f = Math.max(s, o + d));
|
|
2531
|
+
var g = oe(r, t, c, "START"), p = oe(r, t, f, "END"), m = oe(r, t, c, "NULL"), h = oe(r, t, f, "NULL"), E = m === null || h === null, C = Fe(r, g, p, a);
|
|
2532
|
+
if (!E) {
|
|
2533
|
+
var S = be(C, t);
|
|
2534
|
+
if (S !== i) {
|
|
2535
|
+
for (c = 0; i[c] === S[c]; )
|
|
2536
|
+
c++;
|
|
2537
|
+
a = i.slice(c, u), f = l.lastIndexOf(i.substring(u)), g = oe(r, t, c, "START"), p = oe(r, t, f, "END"), C = Fe(r, g, p, a);
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
return C;
|
|
2541
|
+
}, rn = function(r, i, n) {
|
|
2542
|
+
var t = n, o = !1, s = function(l, d, a, c, f, g, p) {
|
|
2543
|
+
a <= n && a + f.length > n && (t = a, o = !0);
|
|
2544
|
+
};
|
|
2545
|
+
if (He(r, i, s), o)
|
|
2546
|
+
return t;
|
|
2547
|
+
}, Pe = function(r, i) {
|
|
2548
|
+
var n = [];
|
|
2549
|
+
return He(r, i, function(t, o, s, u, l, d, a) {
|
|
2550
|
+
n.push({
|
|
2551
|
+
id: u,
|
|
2552
|
+
display: l,
|
|
2553
|
+
childIndex: d,
|
|
2554
|
+
index: o,
|
|
2555
|
+
plainTextIndex: s
|
|
2556
|
+
});
|
|
2557
|
+
}), n;
|
|
2558
|
+
}, Pn = function(r, i) {
|
|
2559
|
+
return "".concat(r, "-").concat(i);
|
|
2560
|
+
}, ze = function(r) {
|
|
2561
|
+
return Object.values(r).reduce(function(i, n) {
|
|
2562
|
+
var t = n.results;
|
|
2563
|
+
return i + t.length;
|
|
2564
|
+
}, 0);
|
|
2565
|
+
}, hi = function(r, i) {
|
|
2566
|
+
var n = Pe(r, i), t = n[n.length - 1];
|
|
2567
|
+
return t ? t.plainTextIndex + t.display.length : 0;
|
|
2568
|
+
}, vi = function(r) {
|
|
2569
|
+
var i = Ke(r), n = r[r.indexOf(ge.display) + ge.display.length], t = r[r.indexOf(ge.id) + ge.id.length];
|
|
2570
|
+
return new RegExp(i.replace(ge.display, "([^".concat(Ke(n || ""), "]+?)")).replace(ge.id, "([^".concat(Ke(t || ""), "]+?)")));
|
|
2571
|
+
}, Ee = function(r) {
|
|
2572
|
+
return De.toArray(r).map(function(i) {
|
|
2573
|
+
var n = i.props, t = n.markup, o = n.regex, s = n.displayTransform;
|
|
2574
|
+
return {
|
|
2575
|
+
markup: t,
|
|
2576
|
+
regex: o ? mi(o, t) : vi(t),
|
|
2577
|
+
displayTransform: s || function(u, l) {
|
|
2578
|
+
return l || u;
|
|
2579
|
+
}
|
|
2580
|
+
};
|
|
2581
|
+
});
|
|
2582
|
+
}, mi = function(r, i) {
|
|
2583
|
+
var n = new RegExp(r.toString() + "|").exec("").length - 1, t = jn(i);
|
|
2584
|
+
return Re(n === t, "Number of capturing groups in RegExp ".concat(r.toString(), " (").concat(n, ") does not match the number of placeholders in the markup '").concat(i, "' (").concat(t, ")")), r;
|
|
2585
|
+
}, Ei = function(r, i, n) {
|
|
2586
|
+
return r.replace(ge.id, i).replace(ge.display, n);
|
|
2587
|
+
}, yi = [{
|
|
2588
|
+
base: "A",
|
|
2589
|
+
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
|
|
2590
|
+
}, {
|
|
2591
|
+
base: "AA",
|
|
2592
|
+
letters: /(Ꜳ|[\uA732])/g
|
|
2593
|
+
}, {
|
|
2594
|
+
base: "AE",
|
|
2595
|
+
letters: /(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g
|
|
2596
|
+
}, {
|
|
2597
|
+
base: "AO",
|
|
2598
|
+
letters: /(Ꜵ|[\uA734])/g
|
|
2599
|
+
}, {
|
|
2600
|
+
base: "AU",
|
|
2601
|
+
letters: /(Ꜷ|[\uA736])/g
|
|
2602
|
+
}, {
|
|
2603
|
+
base: "AV",
|
|
2604
|
+
letters: /(Ꜹ|Ꜻ|[\uA738\uA73A])/g
|
|
2605
|
+
}, {
|
|
2606
|
+
base: "AY",
|
|
2607
|
+
letters: /(Ꜽ|[\uA73C])/g
|
|
2608
|
+
}, {
|
|
2609
|
+
base: "B",
|
|
2610
|
+
letters: /(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g
|
|
2611
|
+
}, {
|
|
2612
|
+
base: "C",
|
|
2613
|
+
letters: /(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g
|
|
2614
|
+
}, {
|
|
2615
|
+
base: "D",
|
|
2616
|
+
letters: /(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g
|
|
2617
|
+
}, {
|
|
2618
|
+
base: "DZ",
|
|
2619
|
+
letters: /(DZ|DŽ|[\u01F1\u01C4])/g
|
|
2620
|
+
}, {
|
|
2621
|
+
base: "Dz",
|
|
2622
|
+
letters: /(Dz|Dž|[\u01F2\u01C5])/g
|
|
2623
|
+
}, {
|
|
2624
|
+
base: "E",
|
|
2625
|
+
letters: /(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g
|
|
2626
|
+
}, {
|
|
2627
|
+
base: "F",
|
|
2628
|
+
letters: /(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g
|
|
2629
|
+
}, {
|
|
2630
|
+
base: "G",
|
|
2631
|
+
letters: /(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g
|
|
2632
|
+
}, {
|
|
2633
|
+
base: "H",
|
|
2634
|
+
letters: /(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g
|
|
2635
|
+
}, {
|
|
2636
|
+
base: "I",
|
|
2637
|
+
letters: /(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g
|
|
2638
|
+
}, {
|
|
2639
|
+
base: "J",
|
|
2640
|
+
letters: /(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g
|
|
2641
|
+
}, {
|
|
2642
|
+
base: "K",
|
|
2643
|
+
letters: /(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g
|
|
2644
|
+
}, {
|
|
2645
|
+
base: "L",
|
|
2646
|
+
letters: /(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g
|
|
2647
|
+
}, {
|
|
2648
|
+
base: "LJ",
|
|
2649
|
+
letters: /(LJ|[\u01C7])/g
|
|
2650
|
+
}, {
|
|
2651
|
+
base: "Lj",
|
|
2652
|
+
letters: /(Lj|[\u01C8])/g
|
|
2653
|
+
}, {
|
|
2654
|
+
base: "M",
|
|
2655
|
+
letters: /(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g
|
|
2656
|
+
}, {
|
|
2657
|
+
base: "N",
|
|
2658
|
+
letters: /(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g
|
|
2659
|
+
}, {
|
|
2660
|
+
base: "NJ",
|
|
2661
|
+
letters: /(NJ|[\u01CA])/g
|
|
2662
|
+
}, {
|
|
2663
|
+
base: "Nj",
|
|
2664
|
+
letters: /(Nj|[\u01CB])/g
|
|
2665
|
+
}, {
|
|
2666
|
+
base: "O",
|
|
2667
|
+
letters: /(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g
|
|
2668
|
+
}, {
|
|
2669
|
+
base: "OE",
|
|
2670
|
+
letters: /(Œ|[\u0152])/g
|
|
2671
|
+
}, {
|
|
2672
|
+
base: "OI",
|
|
2673
|
+
letters: /(Ƣ|[\u01A2])/g
|
|
2674
|
+
}, {
|
|
2675
|
+
base: "OO",
|
|
2676
|
+
letters: /(Ꝏ|[\uA74E])/g
|
|
2677
|
+
}, {
|
|
2678
|
+
base: "OU",
|
|
2679
|
+
letters: /(Ȣ|[\u0222])/g
|
|
2680
|
+
}, {
|
|
2681
|
+
base: "P",
|
|
2682
|
+
letters: /(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g
|
|
2683
|
+
}, {
|
|
2684
|
+
base: "Q",
|
|
2685
|
+
letters: /(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g
|
|
2686
|
+
}, {
|
|
2687
|
+
base: "R",
|
|
2688
|
+
letters: /(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g
|
|
2689
|
+
}, {
|
|
2690
|
+
base: "S",
|
|
2691
|
+
letters: /(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g
|
|
2692
|
+
}, {
|
|
2693
|
+
base: "T",
|
|
2694
|
+
letters: /(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g
|
|
2695
|
+
}, {
|
|
2696
|
+
base: "TH",
|
|
2697
|
+
letters: /(Þ|[\u00DE])/g
|
|
2698
|
+
}, {
|
|
2699
|
+
base: "TZ",
|
|
2700
|
+
letters: /(Ꜩ|[\uA728])/g
|
|
2701
|
+
}, {
|
|
2702
|
+
base: "U",
|
|
2703
|
+
letters: /(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g
|
|
2704
|
+
}, {
|
|
2705
|
+
base: "V",
|
|
2706
|
+
letters: /(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g
|
|
2707
|
+
}, {
|
|
2708
|
+
base: "VY",
|
|
2709
|
+
letters: /(Ꝡ|[\uA760])/g
|
|
2710
|
+
}, {
|
|
2711
|
+
base: "W",
|
|
2712
|
+
letters: /(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g
|
|
2713
|
+
}, {
|
|
2714
|
+
base: "X",
|
|
2715
|
+
letters: /(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g
|
|
2716
|
+
}, {
|
|
2717
|
+
base: "Y",
|
|
2718
|
+
letters: /(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g
|
|
2719
|
+
}, {
|
|
2720
|
+
base: "Z",
|
|
2721
|
+
letters: /(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g
|
|
2722
|
+
}, {
|
|
2723
|
+
base: "a",
|
|
2724
|
+
letters: /(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g
|
|
2725
|
+
}, {
|
|
2726
|
+
base: "aa",
|
|
2727
|
+
letters: /(ꜳ|[\uA733])/g
|
|
2728
|
+
}, {
|
|
2729
|
+
base: "ae",
|
|
2730
|
+
letters: /(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g
|
|
2731
|
+
}, {
|
|
2732
|
+
base: "ao",
|
|
2733
|
+
letters: /(ꜵ|[\uA735])/g
|
|
2734
|
+
}, {
|
|
2735
|
+
base: "au",
|
|
2736
|
+
letters: /(ꜷ|[\uA737])/g
|
|
2737
|
+
}, {
|
|
2738
|
+
base: "av",
|
|
2739
|
+
letters: /(ꜹ|ꜻ|[\uA739\uA73B])/g
|
|
2740
|
+
}, {
|
|
2741
|
+
base: "ay",
|
|
2742
|
+
letters: /(ꜽ|[\uA73D])/g
|
|
2743
|
+
}, {
|
|
2744
|
+
base: "b",
|
|
2745
|
+
letters: /(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g
|
|
2746
|
+
}, {
|
|
2747
|
+
base: "c",
|
|
2748
|
+
letters: /(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g
|
|
2749
|
+
}, {
|
|
2750
|
+
base: "d",
|
|
2751
|
+
letters: /(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g
|
|
2752
|
+
}, {
|
|
2753
|
+
base: "dz",
|
|
2754
|
+
letters: /(dz|dž|[\u01F3\u01C6])/g
|
|
2755
|
+
}, {
|
|
2756
|
+
base: "e",
|
|
2757
|
+
letters: /(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g
|
|
2758
|
+
}, {
|
|
2759
|
+
base: "f",
|
|
2760
|
+
letters: /(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g
|
|
2761
|
+
}, {
|
|
2762
|
+
base: "g",
|
|
2763
|
+
letters: /(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g
|
|
2764
|
+
}, {
|
|
2765
|
+
base: "h",
|
|
2766
|
+
letters: /(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g
|
|
2767
|
+
}, {
|
|
2768
|
+
base: "hv",
|
|
2769
|
+
letters: /(ƕ|[\u0195])/g
|
|
2770
|
+
}, {
|
|
2771
|
+
base: "i",
|
|
2772
|
+
letters: /(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g
|
|
2773
|
+
}, {
|
|
2774
|
+
base: "ij",
|
|
2775
|
+
letters: /(ij|[\u0133])/g
|
|
2776
|
+
}, {
|
|
2777
|
+
base: "j",
|
|
2778
|
+
letters: /(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g
|
|
2779
|
+
}, {
|
|
2780
|
+
base: "k",
|
|
2781
|
+
letters: /(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g
|
|
2782
|
+
}, {
|
|
2783
|
+
base: "l",
|
|
2784
|
+
letters: /(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g
|
|
2785
|
+
}, {
|
|
2786
|
+
base: "lj",
|
|
2787
|
+
letters: /(lj|[\u01C9])/g
|
|
2788
|
+
}, {
|
|
2789
|
+
base: "m",
|
|
2790
|
+
letters: /(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g
|
|
2791
|
+
}, {
|
|
2792
|
+
base: "n",
|
|
2793
|
+
letters: /(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g
|
|
2794
|
+
}, {
|
|
2795
|
+
base: "nj",
|
|
2796
|
+
letters: /(nj|[\u01CC])/g
|
|
2797
|
+
}, {
|
|
2798
|
+
base: "o",
|
|
2799
|
+
letters: /(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g
|
|
2800
|
+
}, {
|
|
2801
|
+
base: "oe",
|
|
2802
|
+
letters: /(œ|[\u0153])/g
|
|
2803
|
+
}, {
|
|
2804
|
+
base: "oi",
|
|
2805
|
+
letters: /(ƣ|[\u01A3])/g
|
|
2806
|
+
}, {
|
|
2807
|
+
base: "ou",
|
|
2808
|
+
letters: /(ȣ|[\u0223])/g
|
|
2809
|
+
}, {
|
|
2810
|
+
base: "oo",
|
|
2811
|
+
letters: /(ꝏ|[\uA74F])/g
|
|
2812
|
+
}, {
|
|
2813
|
+
base: "p",
|
|
2814
|
+
letters: /(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g
|
|
2815
|
+
}, {
|
|
2816
|
+
base: "q",
|
|
2817
|
+
letters: /(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g
|
|
2818
|
+
}, {
|
|
2819
|
+
base: "r",
|
|
2820
|
+
letters: /(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g
|
|
2821
|
+
}, {
|
|
2822
|
+
base: "s",
|
|
2823
|
+
letters: /(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g
|
|
2824
|
+
}, {
|
|
2825
|
+
base: "ss",
|
|
2826
|
+
letters: /(ß|[\u00DF])/g
|
|
2827
|
+
}, {
|
|
2828
|
+
base: "t",
|
|
2829
|
+
letters: /(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g
|
|
2830
|
+
}, {
|
|
2831
|
+
base: "th",
|
|
2832
|
+
letters: /(þ|[\u00FE])/g
|
|
2833
|
+
}, {
|
|
2834
|
+
base: "tz",
|
|
2835
|
+
letters: /(ꜩ|[\uA729])/g
|
|
2836
|
+
}, {
|
|
2837
|
+
base: "u",
|
|
2838
|
+
letters: /(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g
|
|
2839
|
+
}, {
|
|
2840
|
+
base: "v",
|
|
2841
|
+
letters: /(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g
|
|
2842
|
+
}, {
|
|
2843
|
+
base: "vy",
|
|
2844
|
+
letters: /(ꝡ|[\uA761])/g
|
|
2845
|
+
}, {
|
|
2846
|
+
base: "w",
|
|
2847
|
+
letters: /(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g
|
|
2848
|
+
}, {
|
|
2849
|
+
base: "x",
|
|
2850
|
+
letters: /(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g
|
|
2851
|
+
}, {
|
|
2852
|
+
base: "y",
|
|
2853
|
+
letters: /(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g
|
|
2854
|
+
}, {
|
|
2855
|
+
base: "z",
|
|
2856
|
+
letters: /(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g
|
|
2857
|
+
}], bi = function(r) {
|
|
2858
|
+
var i = r;
|
|
2859
|
+
return yi.forEach(function(n) {
|
|
2860
|
+
i = i.replace(n.letters, n.base);
|
|
2861
|
+
}), i;
|
|
2862
|
+
}, on = function(r) {
|
|
2863
|
+
return bi(r).toLowerCase();
|
|
2864
|
+
}, Fn = function(r, i, n) {
|
|
2865
|
+
return n ? on(r).indexOf(on(i)) : r.toLowerCase().indexOf(i.toLowerCase());
|
|
2866
|
+
}, Ci = function() {
|
|
2867
|
+
return !!document.documentMode;
|
|
2868
|
+
}, vt = function(r) {
|
|
2869
|
+
return typeof r == "number";
|
|
2870
|
+
}, Si = function(r) {
|
|
2871
|
+
return r === Object(r) ? Object.keys(r) : [];
|
|
2872
|
+
}, _i = function(r) {
|
|
2873
|
+
for (var i, n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
2874
|
+
t[o - 1] = arguments[o];
|
|
2875
|
+
var s = (i = []).concat.apply(i, t);
|
|
2876
|
+
return Object.keys(r).reduce(function(u, l) {
|
|
2877
|
+
return r.hasOwnProperty(l) && !s.includes(l) && r[l] !== void 0 && (u[l] = r[l]), u;
|
|
2878
|
+
}, {});
|
|
2879
|
+
}, Ai = ["style", "className", "classNames"];
|
|
2880
|
+
function sn(e, r) {
|
|
2881
|
+
var i = Object.keys(e);
|
|
2882
|
+
if (Object.getOwnPropertySymbols) {
|
|
2883
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
2884
|
+
r && (n = n.filter(function(t) {
|
|
2885
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2886
|
+
})), i.push.apply(i, n);
|
|
2887
|
+
}
|
|
2888
|
+
return i;
|
|
2889
|
+
}
|
|
2890
|
+
function an(e) {
|
|
2891
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
2892
|
+
var i = arguments[r] != null ? arguments[r] : {};
|
|
2893
|
+
r % 2 ? sn(Object(i), !0).forEach(function(n) {
|
|
2894
|
+
H(e, n, i[n]);
|
|
2895
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : sn(Object(i)).forEach(function(n) {
|
|
2896
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
2897
|
+
});
|
|
2898
|
+
}
|
|
2899
|
+
return e;
|
|
2900
|
+
}
|
|
2901
|
+
function nt(e, r) {
|
|
2902
|
+
var i = function(t) {
|
|
2903
|
+
var o = function(l) {
|
|
2904
|
+
var d = l.style, a = l.className, c = l.classNames, f = $o(l, Ai), g = r ? r(f) : void 0, p = wt(e, {
|
|
2905
|
+
style: d,
|
|
2906
|
+
className: a,
|
|
2907
|
+
classNames: c
|
|
2908
|
+
}, g);
|
|
2909
|
+
return /* @__PURE__ */ Z.createElement(t, ue({}, f, {
|
|
2910
|
+
style: p
|
|
2911
|
+
}));
|
|
2912
|
+
}, s = t.displayName || t.name || "Component";
|
|
2913
|
+
return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */ Z.forwardRef(function(u, l) {
|
|
2914
|
+
return o(an(an({}, u), {}, {
|
|
2915
|
+
ref: l
|
|
2916
|
+
}));
|
|
2917
|
+
});
|
|
2918
|
+
};
|
|
2919
|
+
return i;
|
|
2920
|
+
}
|
|
2921
|
+
var Ti = function(r, i) {
|
|
2922
|
+
return r.hasOwnProperty(i) ? r[i]++ : r[i] = 0, i + "_" + r[i];
|
|
2923
|
+
};
|
|
2924
|
+
function Mn(e) {
|
|
2925
|
+
var r = e.selectionStart, i = e.selectionEnd, n = e.value, t = n === void 0 ? "" : n, o = e.onCaretPositionChange, s = e.containerRef, u = e.children;
|
|
2926
|
+
e.singleLine;
|
|
2927
|
+
var l = e.style, d = re({
|
|
2928
|
+
left: void 0,
|
|
2929
|
+
top: void 0
|
|
2930
|
+
}), a = Qe(d, 2), c = a[0], f = a[1], g = re(), p = Qe(g, 2), m = p[0], h = p[1];
|
|
2931
|
+
le(function() {
|
|
2932
|
+
E();
|
|
2933
|
+
});
|
|
2934
|
+
var E = function() {
|
|
2935
|
+
if (m) {
|
|
2936
|
+
var F = m.offsetLeft, V = m.offsetTop;
|
|
2937
|
+
if (!(c.left === F && c.top === V)) {
|
|
2938
|
+
var N = {
|
|
2939
|
+
left: F,
|
|
2940
|
+
top: V
|
|
2941
|
+
};
|
|
2942
|
+
f(N), o(N);
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
}, C = Ee(u), S;
|
|
2946
|
+
i === r && (S = oe(t, C, r, "START"));
|
|
2947
|
+
var I = [], y = {}, A = I, D = 0, b = function(F, V, N) {
|
|
2948
|
+
if (vt(S) && S >= V && S <= V + F.length) {
|
|
2949
|
+
var j = S - V;
|
|
2950
|
+
A.push(T(F.substring(0, j), D)), A = [T(F.substring(j), D)];
|
|
2951
|
+
} else
|
|
2952
|
+
A.push(T(F, D));
|
|
2953
|
+
D++;
|
|
2954
|
+
}, w = function(F, V, N, j, $, G, _) {
|
|
2955
|
+
var x = Ti(y, j);
|
|
2956
|
+
A.push(P(j, $, G, x));
|
|
2957
|
+
}, T = function(F, V) {
|
|
2958
|
+
return /* @__PURE__ */ Z.createElement("span", ue({}, l("substring"), {
|
|
2959
|
+
key: V
|
|
2960
|
+
}), F);
|
|
2961
|
+
}, P = function(F, V, N, j) {
|
|
2962
|
+
var $ = {
|
|
2963
|
+
id: F,
|
|
2964
|
+
display: V,
|
|
2965
|
+
key: j
|
|
2966
|
+
}, G = De.toArray(u)[N];
|
|
2967
|
+
return /* @__PURE__ */ Z.cloneElement(G, $);
|
|
2968
|
+
}, q = function(F) {
|
|
2969
|
+
return /* @__PURE__ */ Z.createElement("span", ue({}, l("caret"), {
|
|
2970
|
+
ref: h,
|
|
2971
|
+
key: "caret"
|
|
2972
|
+
}), F);
|
|
2973
|
+
};
|
|
2974
|
+
return He(t, C, w, b), A.push(" "), A !== I && I.push(q(A)), /* @__PURE__ */ Z.createElement("div", ue({}, l, {
|
|
2975
|
+
ref: s
|
|
2976
|
+
}), I);
|
|
2977
|
+
}
|
|
2978
|
+
Mn.propTypes = {
|
|
2979
|
+
selectionStart: O.number,
|
|
2980
|
+
selectionEnd: O.number,
|
|
2981
|
+
value: O.string.isRequired,
|
|
2982
|
+
onCaretPositionChange: O.func.isRequired,
|
|
2983
|
+
containerRef: O.oneOfType([O.func, O.shape({
|
|
2984
|
+
current: typeof Element > "u" ? O.any : O.instanceOf(Element)
|
|
2985
|
+
})]),
|
|
2986
|
+
children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
|
|
2987
|
+
};
|
|
2988
|
+
var Ii = nt({
|
|
2989
|
+
position: "relative",
|
|
2990
|
+
boxSizing: "border-box",
|
|
2991
|
+
width: "100%",
|
|
2992
|
+
color: "transparent",
|
|
2993
|
+
overflow: "hidden",
|
|
2994
|
+
whiteSpace: "pre-wrap",
|
|
2995
|
+
wordWrap: "break-word",
|
|
2996
|
+
border: "1px solid transparent",
|
|
2997
|
+
textAlign: "start",
|
|
2998
|
+
"&singleLine": {
|
|
2999
|
+
whiteSpace: "pre",
|
|
3000
|
+
wordWrap: null
|
|
3001
|
+
},
|
|
3002
|
+
substring: {
|
|
3003
|
+
visibility: "hidden"
|
|
3004
|
+
}
|
|
3005
|
+
}, function(e) {
|
|
3006
|
+
return {
|
|
3007
|
+
"&singleLine": e.singleLine
|
|
3008
|
+
};
|
|
3009
|
+
}), xi = Ii(Mn);
|
|
3010
|
+
function Ln(e) {
|
|
3011
|
+
var r = e.id, i = e.focused, n = e.ignoreAccents, t = e.index, o = e.onClick, s = e.onMouseEnter, u = e.query, l = e.renderSuggestion, d = e.suggestion, a = e.style;
|
|
3012
|
+
e.className, e.classNames;
|
|
3013
|
+
var c = {
|
|
3014
|
+
onClick: o,
|
|
3015
|
+
onMouseEnter: s
|
|
3016
|
+
}, f = function() {
|
|
3017
|
+
var h = g(), E = p(h);
|
|
3018
|
+
return l ? l(d, u, E, t, i) : E;
|
|
3019
|
+
}, g = function() {
|
|
3020
|
+
if (typeof d == "string")
|
|
3021
|
+
return d;
|
|
3022
|
+
var h = d.id, E = d.display;
|
|
3023
|
+
return h === void 0 || !E ? h : E;
|
|
3024
|
+
}, p = function(h) {
|
|
3025
|
+
var E = Fn(h, u, n);
|
|
3026
|
+
return E === -1 ? /* @__PURE__ */ Z.createElement("span", a("display"), h) : /* @__PURE__ */ Z.createElement("span", a("display"), h.substring(0, E), /* @__PURE__ */ Z.createElement("b", a("highlight"), h.substring(E, E + u.length)), h.substring(E + u.length));
|
|
3027
|
+
};
|
|
3028
|
+
return /* @__PURE__ */ Z.createElement("li", ue({
|
|
3029
|
+
id: r,
|
|
3030
|
+
role: "option",
|
|
3031
|
+
"aria-selected": i
|
|
3032
|
+
}, c, a), f());
|
|
3033
|
+
}
|
|
3034
|
+
Ln.propTypes = {
|
|
3035
|
+
id: O.string.isRequired,
|
|
3036
|
+
query: O.string.isRequired,
|
|
3037
|
+
index: O.number.isRequired,
|
|
3038
|
+
ignoreAccents: O.bool,
|
|
3039
|
+
suggestion: O.oneOfType([O.string, O.shape({
|
|
3040
|
+
id: O.oneOfType([O.string, O.number]).isRequired,
|
|
3041
|
+
display: O.string
|
|
3042
|
+
})]).isRequired,
|
|
3043
|
+
renderSuggestion: O.func,
|
|
3044
|
+
focused: O.bool
|
|
3045
|
+
};
|
|
3046
|
+
var Oi = nt({
|
|
3047
|
+
cursor: "pointer"
|
|
3048
|
+
}, function(e) {
|
|
3049
|
+
return {
|
|
3050
|
+
"&focused": e.focused
|
|
3051
|
+
};
|
|
3052
|
+
}), Di = Oi(Ln);
|
|
3053
|
+
function Ri(e) {
|
|
3054
|
+
var r = e.style, i = e.className, n = e.classNames, t = wt(wi, {
|
|
3055
|
+
style: r,
|
|
3056
|
+
className: i,
|
|
3057
|
+
classNames: n
|
|
3058
|
+
}), o = t("spinner");
|
|
3059
|
+
return /* @__PURE__ */ Z.createElement("div", t, /* @__PURE__ */ Z.createElement("div", o, /* @__PURE__ */ Z.createElement("div", o(["element", "element1"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element2"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element3"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element4"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element5"]))));
|
|
3060
|
+
}
|
|
3061
|
+
var wi = {};
|
|
3062
|
+
function Bn(e) {
|
|
3063
|
+
var r = e.id, i = e.suggestions, n = i === void 0 ? {} : i, t = e.a11ySuggestionsListLabel, o = e.focusIndex, s = e.position, u = e.left, l = e.right, d = e.top, a = e.scrollFocusedIntoView, c = e.isLoading, f = e.isOpened, g = e.onSelect, p = g === void 0 ? function() {
|
|
3064
|
+
return null;
|
|
3065
|
+
} : g, m = e.ignoreAccents, h = e.containerRef, E = e.children, C = e.style, S = e.customSuggestionsContainer, I = e.onMouseDown, y = e.onMouseEnter, A = re(void 0), D = Qe(A, 2), b = D[0], w = D[1];
|
|
3066
|
+
le(function() {
|
|
3067
|
+
if (!(!b || b.offsetHeight >= b.scrollHeight || !a)) {
|
|
3068
|
+
var N = b.scrollTop, j = b.children[o].getBoundingClientRect(), $ = j.top, G = j.bottom, _ = b.getBoundingClientRect(), x = _.top;
|
|
3069
|
+
$ = $ - x + N, G = G - x + N, $ < N ? b.scrollTop = $ : G > b.offsetHeight && (b.scrollTop = G - b.offsetHeight);
|
|
3070
|
+
}
|
|
3071
|
+
}, [o, a, b]);
|
|
3072
|
+
var T = function() {
|
|
3073
|
+
var j = /* @__PURE__ */ Z.createElement("ul", ue({
|
|
3074
|
+
ref: w,
|
|
3075
|
+
id: r,
|
|
3076
|
+
role: "listbox",
|
|
3077
|
+
"aria-label": t
|
|
3078
|
+
}, C("list")), Object.values(n).reduce(function($, G) {
|
|
3079
|
+
var _ = G.results, x = G.queryInfo;
|
|
3080
|
+
return [].concat(Ge($), Ge(_.map(function(L, B) {
|
|
3081
|
+
return P(L, x, $.length + B);
|
|
3082
|
+
})));
|
|
3083
|
+
}, []));
|
|
3084
|
+
return S ? S(j) : j;
|
|
3085
|
+
}, P = function(j, $, G) {
|
|
3086
|
+
var _ = G === o, x = $.childIndex, L = $.query, B = De.toArray(E)[x].props.renderSuggestion;
|
|
3087
|
+
return /* @__PURE__ */ Z.createElement(Di, {
|
|
3088
|
+
style: C("item"),
|
|
3089
|
+
key: "".concat(x, "-").concat(V(j)),
|
|
3090
|
+
id: Pn(r, G),
|
|
3091
|
+
query: L,
|
|
3092
|
+
index: G,
|
|
3093
|
+
ignoreAccents: m,
|
|
3094
|
+
renderSuggestion: B,
|
|
3095
|
+
suggestion: j,
|
|
3096
|
+
focused: _,
|
|
3097
|
+
onClick: function() {
|
|
3098
|
+
return F(j, $);
|
|
3099
|
+
},
|
|
3100
|
+
onMouseEnter: function() {
|
|
3101
|
+
return Y(G);
|
|
3102
|
+
}
|
|
3103
|
+
});
|
|
3104
|
+
}, q = function() {
|
|
3105
|
+
if (c)
|
|
3106
|
+
return /* @__PURE__ */ Z.createElement(Ri, {
|
|
3107
|
+
style: C("loadingIndicator")
|
|
3108
|
+
});
|
|
3109
|
+
}, Y = function(j, $) {
|
|
3110
|
+
y && y(j);
|
|
3111
|
+
}, F = function(j, $) {
|
|
3112
|
+
p(j, $);
|
|
3113
|
+
}, V = function(j) {
|
|
3114
|
+
return typeof j == "string" ? j : j.id;
|
|
3115
|
+
};
|
|
3116
|
+
return f ? /* @__PURE__ */ Z.createElement("div", ue({}, ni({
|
|
3117
|
+
position: s || "absolute",
|
|
3118
|
+
left: u,
|
|
3119
|
+
right: l,
|
|
3120
|
+
top: d
|
|
3121
|
+
}, C), {
|
|
3122
|
+
onMouseDown: I,
|
|
3123
|
+
ref: h
|
|
3124
|
+
}), T(), q()) : null;
|
|
3125
|
+
}
|
|
3126
|
+
Bn.propTypes = {
|
|
3127
|
+
id: O.string.isRequired,
|
|
3128
|
+
suggestions: O.object.isRequired,
|
|
3129
|
+
a11ySuggestionsListLabel: O.string,
|
|
3130
|
+
focusIndex: O.number,
|
|
3131
|
+
position: O.string,
|
|
3132
|
+
left: O.number,
|
|
3133
|
+
right: O.number,
|
|
3134
|
+
top: O.number,
|
|
3135
|
+
scrollFocusedIntoView: O.bool,
|
|
3136
|
+
isLoading: O.bool,
|
|
3137
|
+
isOpened: O.bool.isRequired,
|
|
3138
|
+
onSelect: O.func,
|
|
3139
|
+
ignoreAccents: O.bool,
|
|
3140
|
+
customSuggestionsContainer: O.func,
|
|
3141
|
+
containerRef: O.oneOfType([O.func, O.shape({
|
|
3142
|
+
current: typeof Element > "u" ? O.any : O.instanceOf(Element)
|
|
3143
|
+
})])
|
|
3144
|
+
};
|
|
3145
|
+
var Ni = nt({
|
|
3146
|
+
zIndex: 1,
|
|
3147
|
+
backgroundColor: "white",
|
|
3148
|
+
marginTop: 14,
|
|
3149
|
+
minWidth: 100,
|
|
3150
|
+
list: {
|
|
3151
|
+
margin: 0,
|
|
3152
|
+
padding: 0,
|
|
3153
|
+
listStyleType: "none"
|
|
3154
|
+
}
|
|
3155
|
+
}), ji = Ni(Bn);
|
|
3156
|
+
function un(e, r) {
|
|
3157
|
+
var i = Object.keys(e);
|
|
3158
|
+
if (Object.getOwnPropertySymbols) {
|
|
3159
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3160
|
+
r && (n = n.filter(function(t) {
|
|
3161
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
3162
|
+
})), i.push.apply(i, n);
|
|
3163
|
+
}
|
|
3164
|
+
return i;
|
|
3165
|
+
}
|
|
3166
|
+
function de(e) {
|
|
3167
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
3168
|
+
var i = arguments[r] != null ? arguments[r] : {};
|
|
3169
|
+
r % 2 ? un(Object(i), !0).forEach(function(n) {
|
|
3170
|
+
H(e, n, i[n]);
|
|
3171
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : un(Object(i)).forEach(function(n) {
|
|
3172
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
3173
|
+
});
|
|
3174
|
+
}
|
|
3175
|
+
return e;
|
|
3176
|
+
}
|
|
3177
|
+
function Pi(e) {
|
|
3178
|
+
var r = Fi();
|
|
3179
|
+
return function() {
|
|
3180
|
+
var n = Ze(e), t;
|
|
3181
|
+
if (r) {
|
|
3182
|
+
var o = Ze(this).constructor;
|
|
3183
|
+
t = Reflect.construct(n, arguments, o);
|
|
3184
|
+
} else
|
|
3185
|
+
t = n.apply(this, arguments);
|
|
3186
|
+
return No(this, t);
|
|
3187
|
+
};
|
|
3188
|
+
}
|
|
3189
|
+
function Fi() {
|
|
3190
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
3191
|
+
if (typeof Proxy == "function") return !0;
|
|
3192
|
+
try {
|
|
3193
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
3194
|
+
})), !0;
|
|
3195
|
+
} catch {
|
|
3196
|
+
return !1;
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
var Mi = function(r) {
|
|
3200
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3201
|
+
if (r instanceof RegExp)
|
|
3202
|
+
return r;
|
|
3203
|
+
var n = i.allowSpaceInQuery, t = Ke(r);
|
|
3204
|
+
return new RegExp("(?:^|\\s)(".concat(t, "([^").concat(n ? "" : "\\s").concat(t, "]*))$"));
|
|
3205
|
+
}, Li = function(r, i) {
|
|
3206
|
+
return r instanceof Array ? function(n, t) {
|
|
3207
|
+
for (var o = [], s = 0, u = r.length; s < u; ++s) {
|
|
3208
|
+
var l = r[s].display || r[s].id;
|
|
3209
|
+
Fn(l, n, i) >= 0 && o.push(r[s]);
|
|
3210
|
+
}
|
|
3211
|
+
return o;
|
|
3212
|
+
} : r;
|
|
3213
|
+
}, Te = {
|
|
3214
|
+
TAB: 9,
|
|
3215
|
+
RETURN: 13,
|
|
3216
|
+
ESC: 27,
|
|
3217
|
+
UP: 38,
|
|
3218
|
+
DOWN: 40
|
|
3219
|
+
}, Ve = !1, $n = {
|
|
3220
|
+
/**
|
|
3221
|
+
* If set to `true` a regular text input element will be rendered
|
|
3222
|
+
* instead of a textarea
|
|
3223
|
+
*/
|
|
3224
|
+
singleLine: O.bool,
|
|
3225
|
+
allowSpaceInQuery: O.bool,
|
|
3226
|
+
allowSuggestionsAboveCursor: O.bool,
|
|
3227
|
+
forceSuggestionsAboveCursor: O.bool,
|
|
3228
|
+
ignoreAccents: O.bool,
|
|
3229
|
+
a11ySuggestionsListLabel: O.string,
|
|
3230
|
+
value: O.string,
|
|
3231
|
+
onKeyDown: O.func,
|
|
3232
|
+
customSuggestionsContainer: O.func,
|
|
3233
|
+
onSelect: O.func,
|
|
3234
|
+
onBlur: O.func,
|
|
3235
|
+
onChange: O.func,
|
|
3236
|
+
suggestionsPortalHost: typeof Element > "u" ? O.any : O.PropTypes.instanceOf(Element),
|
|
3237
|
+
inputRef: O.oneOfType([O.func, O.shape({
|
|
3238
|
+
current: typeof Element > "u" ? O.any : O.instanceOf(Element)
|
|
3239
|
+
})]),
|
|
3240
|
+
children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
|
|
3241
|
+
}, jt = /* @__PURE__ */ function(e) {
|
|
3242
|
+
wo(i, e);
|
|
3243
|
+
var r = Pi(i);
|
|
3244
|
+
function i(n) {
|
|
3245
|
+
var t;
|
|
3246
|
+
return Oo(this, i), t = r.call(this, n), H(k(t), "setContainerElement", function(o) {
|
|
3247
|
+
t.containerElement = o;
|
|
3248
|
+
}), H(k(t), "getInputProps", function() {
|
|
3249
|
+
var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d = _i(
|
|
3250
|
+
t.props,
|
|
3251
|
+
["style", "classNames", "className"],
|
|
3252
|
+
// substyle props
|
|
3253
|
+
Si($n)
|
|
3254
|
+
);
|
|
3255
|
+
return de(de(de(de({}, d), l("input")), {}, {
|
|
3256
|
+
value: t.getPlainText(),
|
|
3257
|
+
onScroll: t.updateHighlighterScroll
|
|
3258
|
+
}, !s && !u && {
|
|
3259
|
+
onChange: t.handleChange,
|
|
3260
|
+
onSelect: t.handleSelect,
|
|
3261
|
+
onKeyDown: t.handleKeyDown,
|
|
3262
|
+
onBlur: t.handleBlur,
|
|
3263
|
+
onCompositionStart: t.handleCompositionStart,
|
|
3264
|
+
onCompositionEnd: t.handleCompositionEnd
|
|
3265
|
+
}), t.isOpened() && {
|
|
3266
|
+
role: "combobox",
|
|
3267
|
+
"aria-controls": t.uuidSuggestionsOverlay,
|
|
3268
|
+
"aria-expanded": !0,
|
|
3269
|
+
"aria-autocomplete": "list",
|
|
3270
|
+
"aria-haspopup": "listbox",
|
|
3271
|
+
"aria-activedescendant": Pn(t.uuidSuggestionsOverlay, t.state.focusIndex)
|
|
3272
|
+
});
|
|
3273
|
+
}), H(k(t), "renderControl", function() {
|
|
3274
|
+
var o = t.props, s = o.singleLine, u = o.style, l = t.getInputProps();
|
|
3275
|
+
return /* @__PURE__ */ Z.createElement("div", u("control"), t.renderHighlighter(), s ? t.renderInput(l) : t.renderTextarea(l));
|
|
3276
|
+
}), H(k(t), "renderInput", function(o) {
|
|
3277
|
+
return /* @__PURE__ */ Z.createElement("input", ue({
|
|
3278
|
+
type: "text",
|
|
3279
|
+
ref: t.setInputRef
|
|
3280
|
+
}, o));
|
|
3281
|
+
}), H(k(t), "renderTextarea", function(o) {
|
|
3282
|
+
return /* @__PURE__ */ Z.createElement("textarea", ue({
|
|
3283
|
+
ref: t.setInputRef
|
|
3284
|
+
}, o));
|
|
3285
|
+
}), H(k(t), "setInputRef", function(o) {
|
|
3286
|
+
t.inputElement = o;
|
|
3287
|
+
var s = t.props.inputRef;
|
|
3288
|
+
typeof s == "function" ? s(o) : s && (s.current = o);
|
|
3289
|
+
}), H(k(t), "setSuggestionsElement", function(o) {
|
|
3290
|
+
t.suggestionsElement = o;
|
|
3291
|
+
}), H(k(t), "renderSuggestionsOverlay", function() {
|
|
3292
|
+
if (!vt(t.state.selectionStart))
|
|
3293
|
+
return null;
|
|
3294
|
+
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ Z.createElement(ji, {
|
|
3295
|
+
id: t.uuidSuggestionsOverlay,
|
|
3296
|
+
style: t.props.style("suggestions"),
|
|
3297
|
+
position: s,
|
|
3298
|
+
left: u,
|
|
3299
|
+
top: l,
|
|
3300
|
+
right: d,
|
|
3301
|
+
focusIndex: t.state.focusIndex,
|
|
3302
|
+
scrollFocusedIntoView: t.state.scrollFocusedIntoView,
|
|
3303
|
+
containerRef: t.setSuggestionsElement,
|
|
3304
|
+
suggestions: t.state.suggestions,
|
|
3305
|
+
customSuggestionsContainer: t.props.customSuggestionsContainer,
|
|
3306
|
+
onSelect: t.addMention,
|
|
3307
|
+
onMouseDown: t.handleSuggestionsMouseDown,
|
|
3308
|
+
onMouseEnter: t.handleSuggestionsMouseEnter,
|
|
3309
|
+
isLoading: t.isLoading(),
|
|
3310
|
+
isOpened: t.isOpened(),
|
|
3311
|
+
ignoreAccents: t.props.ignoreAccents,
|
|
3312
|
+
a11ySuggestionsListLabel: t.props.a11ySuggestionsListLabel
|
|
3313
|
+
}, t.props.children);
|
|
3314
|
+
return t.props.suggestionsPortalHost ? /* @__PURE__ */ _r.createPortal(a, t.props.suggestionsPortalHost) : a;
|
|
3315
|
+
}), H(k(t), "renderHighlighter", function() {
|
|
3316
|
+
var o = t.state, s = o.selectionStart, u = o.selectionEnd, l = t.props, d = l.singleLine, a = l.children, c = l.value, f = l.style;
|
|
3317
|
+
return /* @__PURE__ */ Z.createElement(xi, {
|
|
3318
|
+
containerRef: t.setHighlighterElement,
|
|
3319
|
+
style: f("highlighter"),
|
|
3320
|
+
value: c,
|
|
3321
|
+
singleLine: d,
|
|
3322
|
+
selectionStart: s,
|
|
3323
|
+
selectionEnd: u,
|
|
3324
|
+
onCaretPositionChange: t.handleCaretPositionChange
|
|
3325
|
+
}, a);
|
|
3326
|
+
}), H(k(t), "setHighlighterElement", function(o) {
|
|
3327
|
+
t.highlighterElement = o;
|
|
3328
|
+
}), H(k(t), "handleCaretPositionChange", function(o) {
|
|
3329
|
+
t.setState({
|
|
3330
|
+
caretPosition: o
|
|
3331
|
+
});
|
|
3332
|
+
}), H(k(t), "getPlainText", function() {
|
|
3333
|
+
return be(t.props.value || "", Ee(t.props.children));
|
|
3334
|
+
}), H(k(t), "executeOnChange", function(o) {
|
|
3335
|
+
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), l = 1; l < s; l++)
|
|
3336
|
+
u[l - 1] = arguments[l];
|
|
3337
|
+
if (t.props.onChange) {
|
|
3338
|
+
var d;
|
|
3339
|
+
return (d = t.props).onChange.apply(d, [o].concat(u));
|
|
3340
|
+
}
|
|
3341
|
+
if (t.props.valueLink) {
|
|
3342
|
+
var a;
|
|
3343
|
+
return (a = t.props.valueLink).requestChange.apply(a, [o.target.value].concat(u));
|
|
3344
|
+
}
|
|
3345
|
+
}), H(k(t), "handleChange", function(o) {
|
|
3346
|
+
if (Ve = !1, Ci()) {
|
|
3347
|
+
var s = document.activeElement && document.activeElement.contentDocument || document;
|
|
3348
|
+
if (s.activeElement !== o.target)
|
|
3349
|
+
return;
|
|
3350
|
+
}
|
|
3351
|
+
var u = t.props.value || "", l = Ee(t.props.children), d = o.target.value, a = t.state.selectionStart;
|
|
3352
|
+
a == null && (a = o.target.selectionStart);
|
|
3353
|
+
var c = t.state.selectionEnd;
|
|
3354
|
+
c == null && (c = o.target.selectionEnd);
|
|
3355
|
+
var f = gi(u, d, {
|
|
3356
|
+
selectionStartBefore: a,
|
|
3357
|
+
selectionEndBefore: c,
|
|
3358
|
+
selectionEndAfter: o.target.selectionEnd
|
|
3359
|
+
}, l);
|
|
3360
|
+
d = be(f, l);
|
|
3361
|
+
var g = o.target.selectionStart, p = o.target.selectionEnd, m = !1, h = rn(u, l, g);
|
|
3362
|
+
h !== void 0 && t.state.selectionEnd > h && (g = h + (o.nativeEvent.data ? o.nativeEvent.data.length : 0), p = g, m = !0), t.setState({
|
|
3363
|
+
selectionStart: g,
|
|
3364
|
+
selectionEnd: p,
|
|
3365
|
+
setSelectionAfterMentionChange: m
|
|
3366
|
+
});
|
|
3367
|
+
var E = Pe(f, l);
|
|
3368
|
+
o.nativeEvent.isComposing && g === p && t.updateMentionsQueries(t.inputElement.value, g);
|
|
3369
|
+
var C = {
|
|
3370
|
+
target: {
|
|
3371
|
+
value: f
|
|
3372
|
+
}
|
|
3373
|
+
};
|
|
3374
|
+
t.executeOnChange(C, f, d, E);
|
|
3375
|
+
}), H(k(t), "handleSelect", function(o) {
|
|
3376
|
+
if (t.setState({
|
|
3377
|
+
selectionStart: o.target.selectionStart,
|
|
3378
|
+
selectionEnd: o.target.selectionEnd
|
|
3379
|
+
}), !Ve) {
|
|
3380
|
+
var s = t.inputElement;
|
|
3381
|
+
o.target.selectionStart === o.target.selectionEnd ? t.updateMentionsQueries(s.value, o.target.selectionStart) : t.clearSuggestions(), t.updateHighlighterScroll(), t.props.onSelect(o);
|
|
3382
|
+
}
|
|
3383
|
+
}), H(k(t), "handleKeyDown", function(o) {
|
|
3384
|
+
var s = ze(t.state.suggestions);
|
|
3385
|
+
if (s === 0 || !t.suggestionsElement) {
|
|
3386
|
+
t.props.onKeyDown(o);
|
|
3387
|
+
return;
|
|
3388
|
+
}
|
|
3389
|
+
switch (Object.values(Te).indexOf(o.keyCode) >= 0 && (o.preventDefault(), o.stopPropagation()), o.keyCode) {
|
|
3390
|
+
case Te.ESC: {
|
|
3391
|
+
t.clearSuggestions();
|
|
3392
|
+
return;
|
|
3393
|
+
}
|
|
3394
|
+
case Te.DOWN: {
|
|
3395
|
+
t.shiftFocus(1);
|
|
3396
|
+
return;
|
|
3397
|
+
}
|
|
3398
|
+
case Te.UP: {
|
|
3399
|
+
t.shiftFocus(-1);
|
|
3400
|
+
return;
|
|
3401
|
+
}
|
|
3402
|
+
case Te.RETURN: {
|
|
3403
|
+
t.selectFocused();
|
|
3404
|
+
return;
|
|
3405
|
+
}
|
|
3406
|
+
case Te.TAB: {
|
|
3407
|
+
t.selectFocused();
|
|
3408
|
+
return;
|
|
3409
|
+
}
|
|
3410
|
+
default:
|
|
3411
|
+
return;
|
|
3412
|
+
}
|
|
3413
|
+
}), H(k(t), "shiftFocus", function(o) {
|
|
3414
|
+
var s = ze(t.state.suggestions);
|
|
3415
|
+
t.setState({
|
|
3416
|
+
focusIndex: (s + t.state.focusIndex + o) % s,
|
|
3417
|
+
scrollFocusedIntoView: !0
|
|
3418
|
+
});
|
|
3419
|
+
}), H(k(t), "selectFocused", function() {
|
|
3420
|
+
var o = t.state, s = o.suggestions, u = o.focusIndex, l = Object.values(s).reduce(function(c, f) {
|
|
3421
|
+
var g = f.results, p = f.queryInfo;
|
|
3422
|
+
return [].concat(Ge(c), Ge(g.map(function(m) {
|
|
3423
|
+
return {
|
|
3424
|
+
result: m,
|
|
3425
|
+
queryInfo: p
|
|
3426
|
+
};
|
|
3427
|
+
})));
|
|
3428
|
+
}, [])[u], d = l.result, a = l.queryInfo;
|
|
3429
|
+
t.addMention(d, a), t.setState({
|
|
3430
|
+
focusIndex: 0
|
|
3431
|
+
});
|
|
3432
|
+
}), H(k(t), "handleBlur", function(o) {
|
|
3433
|
+
var s = t._suggestionsMouseDown;
|
|
3434
|
+
t._suggestionsMouseDown = !1, s || t.setState({
|
|
3435
|
+
selectionStart: null,
|
|
3436
|
+
selectionEnd: null
|
|
3437
|
+
}), window.setTimeout(function() {
|
|
3438
|
+
t.updateHighlighterScroll();
|
|
3439
|
+
}, 1), t.props.onBlur(o, s);
|
|
3440
|
+
}), H(k(t), "handleSuggestionsMouseDown", function(o) {
|
|
3441
|
+
t._suggestionsMouseDown = !0;
|
|
3442
|
+
}), H(k(t), "handleSuggestionsMouseEnter", function(o) {
|
|
3443
|
+
t.setState({
|
|
3444
|
+
focusIndex: o,
|
|
3445
|
+
scrollFocusedIntoView: !1
|
|
3446
|
+
});
|
|
3447
|
+
}), H(k(t), "updateSuggestionsPosition", function() {
|
|
3448
|
+
var o = t.state.caretPosition, s = t.props, u = s.suggestionsPortalHost, l = s.allowSuggestionsAboveCursor, d = s.forceSuggestionsAboveCursor;
|
|
3449
|
+
if (!(!o || !t.suggestionsElement)) {
|
|
3450
|
+
var a = t.suggestionsElement, c = t.highlighterElement, f = c.getBoundingClientRect(), g = ct(c, "font-size"), p = {
|
|
3451
|
+
left: f.left + o.left,
|
|
3452
|
+
top: f.top + o.top + g
|
|
3453
|
+
}, m = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
|
3454
|
+
if (a) {
|
|
3455
|
+
var h = {};
|
|
3456
|
+
if (u) {
|
|
3457
|
+
h.position = "fixed";
|
|
3458
|
+
var E = p.left, C = p.top;
|
|
3459
|
+
E -= ct(a, "margin-left"), C -= ct(a, "margin-top"), E -= c.scrollLeft, C -= c.scrollTop;
|
|
3460
|
+
var S = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
3461
|
+
E + a.offsetWidth > S ? h.left = Math.max(0, S - a.offsetWidth) : h.left = E, l && C + a.offsetHeight > m && a.offsetHeight < C - g || d ? h.top = Math.max(0, C - a.offsetHeight - g) : h.top = C;
|
|
3462
|
+
} else {
|
|
3463
|
+
var I = o.left - c.scrollLeft, y = o.top - c.scrollTop;
|
|
3464
|
+
I + a.offsetWidth > t.containerElement.offsetWidth ? h.right = 0 : h.left = I, l && p.top - c.scrollTop + a.offsetHeight > m && a.offsetHeight < f.top - g - c.scrollTop || d ? h.top = y - a.offsetHeight - g : h.top = y;
|
|
3465
|
+
}
|
|
3466
|
+
h.left === t.state.suggestionsPosition.left && h.top === t.state.suggestionsPosition.top && h.position === t.state.suggestionsPosition.position || t.setState({
|
|
3467
|
+
suggestionsPosition: h
|
|
3468
|
+
});
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
}), H(k(t), "updateHighlighterScroll", function() {
|
|
3472
|
+
var o = t.inputElement, s = t.highlighterElement;
|
|
3473
|
+
!o || !s || (s.scrollLeft = o.scrollLeft, s.scrollTop = o.scrollTop, s.height = o.height);
|
|
3474
|
+
}), H(k(t), "handleCompositionStart", function() {
|
|
3475
|
+
Ve = !0;
|
|
3476
|
+
}), H(k(t), "handleCompositionEnd", function() {
|
|
3477
|
+
Ve = !1;
|
|
3478
|
+
}), H(k(t), "setSelection", function(o, s) {
|
|
3479
|
+
if (!(o === null || s === null)) {
|
|
3480
|
+
var u = t.inputElement;
|
|
3481
|
+
if (u.setSelectionRange)
|
|
3482
|
+
u.setSelectionRange(o, s);
|
|
3483
|
+
else if (u.createTextRange) {
|
|
3484
|
+
var l = u.createTextRange();
|
|
3485
|
+
l.collapse(!0), l.moveEnd("character", s), l.moveStart("character", o), l.select();
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
}), H(k(t), "updateMentionsQueries", function(o, s) {
|
|
3489
|
+
t._queryId++, t.suggestions = {}, t.setState({
|
|
3490
|
+
suggestions: {}
|
|
3491
|
+
});
|
|
3492
|
+
var u = t.props.value || "", l = t.props.children, d = Ee(l), a = oe(u, d, s, "NULL");
|
|
3493
|
+
if (a !== null) {
|
|
3494
|
+
var c = hi(u.substring(0, a), d), f = o.substring(c, s);
|
|
3495
|
+
Z.Children.forEach(l, function(g, p) {
|
|
3496
|
+
if (g) {
|
|
3497
|
+
var m = Mi(g.props.trigger, t.props), h = f.match(m);
|
|
3498
|
+
if (h) {
|
|
3499
|
+
var E = c + f.indexOf(h[1], h.index);
|
|
3500
|
+
t.queryData(h[2], p, E, E + h[1].length, o);
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3503
|
+
});
|
|
3504
|
+
}
|
|
3505
|
+
}), H(k(t), "clearSuggestions", function() {
|
|
3506
|
+
t._queryId++, t.suggestions = {}, t.setState({
|
|
3507
|
+
suggestions: {},
|
|
3508
|
+
focusIndex: 0
|
|
3509
|
+
});
|
|
3510
|
+
}), H(k(t), "queryData", function(o, s, u, l, d) {
|
|
3511
|
+
var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p = Li(g.props.data, f), m = p(o, t.updateSuggestions.bind(null, t._queryId, s, o, u, l, d));
|
|
3512
|
+
m instanceof Array && t.updateSuggestions(t._queryId, s, o, u, l, d, m);
|
|
3513
|
+
}), H(k(t), "updateSuggestions", function(o, s, u, l, d, a, c) {
|
|
3514
|
+
if (o === t._queryId) {
|
|
3515
|
+
t.suggestions = de(de({}, t.suggestions), {}, H({}, s, {
|
|
3516
|
+
queryInfo: {
|
|
3517
|
+
childIndex: s,
|
|
3518
|
+
query: u,
|
|
3519
|
+
querySequenceStart: l,
|
|
3520
|
+
querySequenceEnd: d,
|
|
3521
|
+
plainTextValue: a
|
|
3522
|
+
},
|
|
3523
|
+
results: c
|
|
3524
|
+
}));
|
|
3525
|
+
var f = t.state.focusIndex, g = ze(t.suggestions);
|
|
3526
|
+
t.setState({
|
|
3527
|
+
suggestions: t.suggestions,
|
|
3528
|
+
focusIndex: f >= g ? Math.max(g - 1, 0) : f
|
|
3529
|
+
});
|
|
3530
|
+
}
|
|
3531
|
+
}), H(k(t), "addMention", function(o, s) {
|
|
3532
|
+
var u = o.id, l = o.display, d = s.childIndex, a = s.querySequenceStart, c = s.querySequenceEnd, f = s.plainTextValue, g = t.props.value || "", p = Ee(t.props.children), m = De.toArray(t.props.children)[d], h = m.props, E = h.markup, C = h.displayTransform, S = h.appendSpaceOnAdd, I = h.onAdd, y = oe(g, p, a, "START"), A = y + c - a, D = Ei(E, u, l);
|
|
3533
|
+
S && (D += " ");
|
|
3534
|
+
var b = Fe(g, y, A, D);
|
|
3535
|
+
t.inputElement.focus();
|
|
3536
|
+
var w = C(u, l);
|
|
3537
|
+
S && (w += " ");
|
|
3538
|
+
var T = a + w.length;
|
|
3539
|
+
t.setState({
|
|
3540
|
+
selectionStart: T,
|
|
3541
|
+
selectionEnd: T,
|
|
3542
|
+
setSelectionAfterMentionChange: !0
|
|
3543
|
+
});
|
|
3544
|
+
var P = {
|
|
3545
|
+
target: {
|
|
3546
|
+
value: b
|
|
3547
|
+
}
|
|
3548
|
+
}, q = Pe(b, p), Y = Fe(f, a, c, w);
|
|
3549
|
+
t.executeOnChange(P, b, Y, q), I && I(u, l, y, A), t.clearSuggestions();
|
|
3550
|
+
}), H(k(t), "isLoading", function() {
|
|
3551
|
+
var o = !1;
|
|
3552
|
+
return Z.Children.forEach(t.props.children, function(s) {
|
|
3553
|
+
o = o || s && s.props.isLoading;
|
|
3554
|
+
}), o;
|
|
3555
|
+
}), H(k(t), "isOpened", function() {
|
|
3556
|
+
return vt(t.state.selectionStart) && (ze(t.state.suggestions) !== 0 || t.isLoading());
|
|
3557
|
+
}), H(k(t), "_queryId", 0), t.suggestions = {}, t.uuidSuggestionsOverlay = Math.random().toString(16).substring(2), t.handleCopy = t.handleCopy.bind(k(t)), t.handleCut = t.handleCut.bind(k(t)), t.handlePaste = t.handlePaste.bind(k(t)), t.state = {
|
|
3558
|
+
focusIndex: 0,
|
|
3559
|
+
selectionStart: null,
|
|
3560
|
+
selectionEnd: null,
|
|
3561
|
+
suggestions: {},
|
|
3562
|
+
caretPosition: null,
|
|
3563
|
+
suggestionsPosition: {},
|
|
3564
|
+
setSelectionAfterHandlePaste: !1
|
|
3565
|
+
}, t;
|
|
3566
|
+
}
|
|
3567
|
+
return Ro(i, [{
|
|
3568
|
+
key: "componentDidMount",
|
|
3569
|
+
value: function() {
|
|
3570
|
+
document.addEventListener("copy", this.handleCopy), document.addEventListener("cut", this.handleCut), document.addEventListener("paste", this.handlePaste), this.updateSuggestionsPosition();
|
|
3571
|
+
}
|
|
3572
|
+
}, {
|
|
3573
|
+
key: "componentDidUpdate",
|
|
3574
|
+
value: function(t, o) {
|
|
3575
|
+
o.suggestionsPosition === this.state.suggestionsPosition && this.updateSuggestionsPosition(), this.state.setSelectionAfterMentionChange && (this.setState({
|
|
3576
|
+
setSelectionAfterMentionChange: !1
|
|
3577
|
+
}), this.setSelection(this.state.selectionStart, this.state.selectionEnd)), this.state.setSelectionAfterHandlePaste && (this.setState({
|
|
3578
|
+
setSelectionAfterHandlePaste: !1
|
|
3579
|
+
}), this.setSelection(this.state.selectionStart, this.state.selectionEnd));
|
|
3580
|
+
}
|
|
3581
|
+
}, {
|
|
3582
|
+
key: "componentWillUnmount",
|
|
3583
|
+
value: function() {
|
|
3584
|
+
document.removeEventListener("copy", this.handleCopy), document.removeEventListener("cut", this.handleCut), document.removeEventListener("paste", this.handlePaste);
|
|
3585
|
+
}
|
|
3586
|
+
}, {
|
|
3587
|
+
key: "render",
|
|
3588
|
+
value: function() {
|
|
3589
|
+
return /* @__PURE__ */ Z.createElement("div", ue({
|
|
3590
|
+
ref: this.setContainerElement
|
|
3591
|
+
}, this.props.style), this.renderControl(), this.renderSuggestionsOverlay());
|
|
3592
|
+
}
|
|
3593
|
+
}, {
|
|
3594
|
+
key: "handlePaste",
|
|
3595
|
+
value: function(t) {
|
|
3596
|
+
if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
|
|
3597
|
+
t.preventDefault();
|
|
3598
|
+
var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.value, a = l.children, c = Ee(a), f = oe(d, c, s, "START"), g = oe(d, c, u, "END"), p = t.clipboardData.getData("text/react-mentions"), m = t.clipboardData.getData("text/plain"), h = Fe(d, f, g, p || m).replace(/\r/g, ""), E = be(h, c), C = {
|
|
3599
|
+
target: de(de({}, t.target), {}, {
|
|
3600
|
+
value: h
|
|
3601
|
+
})
|
|
3602
|
+
};
|
|
3603
|
+
this.executeOnChange(C, h, E, Pe(h, c));
|
|
3604
|
+
var S = rn(d, c, s), I = (S || s) + be(p || m, c).length;
|
|
3605
|
+
this.setState({
|
|
3606
|
+
selectionStart: I,
|
|
3607
|
+
selectionEnd: I,
|
|
3608
|
+
setSelectionAfterHandlePaste: !0
|
|
3609
|
+
});
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
}, {
|
|
3613
|
+
key: "saveSelectionToClipboard",
|
|
3614
|
+
value: function(t) {
|
|
3615
|
+
var o = this.inputElement.selectionStart, s = this.inputElement.selectionEnd, u = this.props, l = u.children, d = u.value, a = Ee(l), c = oe(d, a, o, "START"), f = oe(d, a, s, "END");
|
|
3616
|
+
t.clipboardData.setData("text/plain", t.target.value.slice(o, s)), t.clipboardData.setData("text/react-mentions", d.slice(c, f));
|
|
3617
|
+
}
|
|
3618
|
+
}, {
|
|
3619
|
+
key: "supportsClipboardActions",
|
|
3620
|
+
value: function(t) {
|
|
3621
|
+
return !!t.clipboardData;
|
|
3622
|
+
}
|
|
3623
|
+
}, {
|
|
3624
|
+
key: "handleCopy",
|
|
3625
|
+
value: function(t) {
|
|
3626
|
+
t.target === this.inputElement && this.supportsClipboardActions(t) && (t.preventDefault(), this.saveSelectionToClipboard(t));
|
|
3627
|
+
}
|
|
3628
|
+
}, {
|
|
3629
|
+
key: "handleCut",
|
|
3630
|
+
value: function(t) {
|
|
3631
|
+
if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
|
|
3632
|
+
t.preventDefault(), this.saveSelectionToClipboard(t);
|
|
3633
|
+
var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.children, a = l.value, c = Ee(d), f = oe(a, c, s, "START"), g = oe(a, c, u, "END"), p = [a.slice(0, f), a.slice(g)].join(""), m = be(p, c), h = {
|
|
3634
|
+
target: de(de({}, t.target), {}, {
|
|
3635
|
+
value: m
|
|
3636
|
+
})
|
|
3637
|
+
};
|
|
3638
|
+
this.executeOnChange(h, p, m, Pe(a, c));
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
// Handle input element's change event
|
|
3642
|
+
}]), i;
|
|
3643
|
+
}(Z.Component);
|
|
3644
|
+
H(jt, "propTypes", $n);
|
|
3645
|
+
H(jt, "defaultProps", {
|
|
3646
|
+
ignoreAccents: !1,
|
|
3647
|
+
singleLine: !1,
|
|
3648
|
+
allowSuggestionsAboveCursor: !1,
|
|
3649
|
+
onKeyDown: function() {
|
|
3650
|
+
return null;
|
|
3651
|
+
},
|
|
3652
|
+
onSelect: function() {
|
|
3653
|
+
return null;
|
|
3654
|
+
},
|
|
3655
|
+
onBlur: function() {
|
|
3656
|
+
return null;
|
|
3657
|
+
}
|
|
3658
|
+
});
|
|
3659
|
+
var ct = function(r, i) {
|
|
3660
|
+
var n = parseFloat(window.getComputedStyle(r, null).getPropertyValue(i));
|
|
3661
|
+
return isFinite(n) ? n : 0;
|
|
3662
|
+
}, Bi = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent), $i = nt({
|
|
3663
|
+
position: "relative",
|
|
3664
|
+
overflowY: "visible",
|
|
3665
|
+
input: {
|
|
3666
|
+
display: "block",
|
|
3667
|
+
width: "100%",
|
|
3668
|
+
position: "absolute",
|
|
3669
|
+
margin: 0,
|
|
3670
|
+
top: 0,
|
|
3671
|
+
left: 0,
|
|
3672
|
+
boxSizing: "border-box",
|
|
3673
|
+
backgroundColor: "transparent",
|
|
3674
|
+
fontFamily: "inherit",
|
|
3675
|
+
fontSize: "inherit",
|
|
3676
|
+
letterSpacing: "inherit"
|
|
3677
|
+
},
|
|
3678
|
+
"&multiLine": {
|
|
3679
|
+
input: de({
|
|
3680
|
+
height: "100%",
|
|
3681
|
+
bottom: 0,
|
|
3682
|
+
overflow: "hidden",
|
|
3683
|
+
resize: "none"
|
|
3684
|
+
}, Bi ? {
|
|
3685
|
+
marginTop: 1,
|
|
3686
|
+
marginLeft: -3
|
|
3687
|
+
} : null)
|
|
3688
|
+
}
|
|
3689
|
+
}, function(e) {
|
|
3690
|
+
var r = e.singleLine;
|
|
3691
|
+
return {
|
|
3692
|
+
"&singleLine": r,
|
|
3693
|
+
"&multiLine": !r
|
|
3694
|
+
};
|
|
3695
|
+
}), Hi = $i(jt), ki = {
|
|
3696
|
+
fontWeight: "inherit"
|
|
3697
|
+
}, Pt = function(r) {
|
|
3698
|
+
var i = r.display, n = r.style, t = r.className, o = r.classNames, s = wt(ki, {
|
|
3699
|
+
style: n,
|
|
3700
|
+
className: t,
|
|
3701
|
+
classNames: o
|
|
3702
|
+
});
|
|
3703
|
+
return /* @__PURE__ */ Z.createElement("strong", s, i);
|
|
3704
|
+
};
|
|
3705
|
+
Pt.propTypes = {
|
|
3706
|
+
/**
|
|
3707
|
+
* Called when a new mention is added in the input
|
|
3708
|
+
*
|
|
3709
|
+
* Example:
|
|
3710
|
+
*
|
|
3711
|
+
* ```js
|
|
3712
|
+
* function(id, display) {
|
|
3713
|
+
* console.log("user " + display + " was mentioned!");
|
|
3714
|
+
* }
|
|
3715
|
+
* ```
|
|
3716
|
+
*/
|
|
3717
|
+
onAdd: O.func,
|
|
3718
|
+
onRemove: O.func,
|
|
3719
|
+
renderSuggestion: O.func,
|
|
3720
|
+
trigger: O.oneOfType([O.string, O.instanceOf(RegExp)]),
|
|
3721
|
+
markup: O.string,
|
|
3722
|
+
displayTransform: O.func,
|
|
3723
|
+
/**
|
|
3724
|
+
* If set to `true` spaces will not interrupt matching suggestions
|
|
3725
|
+
*/
|
|
3726
|
+
allowSpaceInQuery: O.bool,
|
|
3727
|
+
isLoading: O.bool
|
|
3728
|
+
};
|
|
3729
|
+
Pt.defaultProps = {
|
|
3730
|
+
trigger: "@",
|
|
3731
|
+
markup: "@[__display__](__id__)",
|
|
3732
|
+
displayTransform: function(r, i) {
|
|
3733
|
+
return i || r;
|
|
3734
|
+
},
|
|
3735
|
+
onAdd: function() {
|
|
3736
|
+
return null;
|
|
3737
|
+
},
|
|
3738
|
+
onRemove: function() {
|
|
3739
|
+
return null;
|
|
3740
|
+
},
|
|
3741
|
+
renderSuggestion: null,
|
|
3742
|
+
isLoading: !1,
|
|
3743
|
+
appendSpaceOnAdd: !1
|
|
3744
|
+
};
|
|
3745
|
+
const Ui = {
|
|
3746
|
+
"&multiLine": {
|
|
3747
|
+
minHeight: "40px"
|
|
3748
|
+
},
|
|
3749
|
+
input: {
|
|
3750
|
+
border: "none",
|
|
3751
|
+
outline: "none",
|
|
3752
|
+
fontWeight: "500",
|
|
3753
|
+
fontSize: "15px",
|
|
3754
|
+
color: "rgba(0, 5, 15, 0.85)"
|
|
3755
|
+
},
|
|
3756
|
+
suggestions: {
|
|
3757
|
+
backgroundColor: "var(--background--01)",
|
|
3758
|
+
border: "1px solid rgba(0,0,0,0.1)",
|
|
3759
|
+
borderRadius: "8px",
|
|
3760
|
+
padding: "5px",
|
|
3761
|
+
boxShadow: "0px 0px 10px rgba(0,0,0,0.1)",
|
|
3762
|
+
minWidth: "150px",
|
|
3763
|
+
maxHeight: "200px",
|
|
3764
|
+
overflowY: "auto",
|
|
3765
|
+
item: {
|
|
3766
|
+
fontSize: "15px",
|
|
3767
|
+
padding: "4px 11px 4px 11px",
|
|
3768
|
+
borderRadius: "4px",
|
|
3769
|
+
fontWeight: "500",
|
|
3770
|
+
"&focused": {
|
|
3771
|
+
backgroundColor: "var(--background--04)"
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
}, qi = ({
|
|
3776
|
+
value: e,
|
|
3777
|
+
setValue: r,
|
|
3778
|
+
users: i,
|
|
3779
|
+
placeholder: n = "Type your reply here...",
|
|
3780
|
+
onEnterKeypress: t
|
|
3781
|
+
}) => {
|
|
3782
|
+
const o = i.map((d) => ({
|
|
3783
|
+
...d,
|
|
3784
|
+
display: d.display_name
|
|
3785
|
+
})), s = (d) => {
|
|
3786
|
+
d.stopPropagation(), d.key === "Enter" && !d.shiftKey && (d.preventDefault(), t == null || t());
|
|
3787
|
+
}, u = (d, a) => {
|
|
3788
|
+
console.info("[MentionsInputComponent] on mention select", { id: d, display: a });
|
|
3789
|
+
}, l = (d) => {
|
|
3790
|
+
r(d.target.value);
|
|
3791
|
+
};
|
|
3792
|
+
return /* @__PURE__ */ v.jsx(
|
|
3793
|
+
Hi,
|
|
3794
|
+
{
|
|
3795
|
+
autoFocus: !0,
|
|
3796
|
+
value: e,
|
|
3797
|
+
onChange: l,
|
|
3798
|
+
style: {
|
|
3799
|
+
...Ui,
|
|
3800
|
+
minHeight: "40px",
|
|
3801
|
+
marginBottom: "10px"
|
|
3802
|
+
},
|
|
3803
|
+
placeholder: n,
|
|
3804
|
+
className: "mentions-input",
|
|
3805
|
+
onKeyDown: s,
|
|
3806
|
+
children: /* @__PURE__ */ v.jsx(
|
|
3807
|
+
Pt,
|
|
3808
|
+
{
|
|
3809
|
+
displayTransform: (d, a) => `@${a}`,
|
|
3810
|
+
trigger: "@",
|
|
3811
|
+
markup: "@[__id__](__display__)",
|
|
3812
|
+
data: o,
|
|
3813
|
+
appendSpaceOnAdd: !0,
|
|
3814
|
+
renderSuggestion: (d, a) => /* @__PURE__ */ v.jsx("div", { className: `user ${a ? "focused" : ""}`, children: d.display }),
|
|
3815
|
+
onAdd: u
|
|
3816
|
+
}
|
|
3817
|
+
)
|
|
3818
|
+
}
|
|
3819
|
+
);
|
|
3820
|
+
}, Hn = ({
|
|
3821
|
+
comment: e,
|
|
3822
|
+
setComment: r,
|
|
3823
|
+
loading: i,
|
|
3824
|
+
users: n,
|
|
3825
|
+
currentUser: t,
|
|
3826
|
+
placeholder: o,
|
|
3827
|
+
onEnterKeypress: s
|
|
3828
|
+
}) => /* @__PURE__ */ v.jsxs("div", { className: me.conversationInputForm, children: [
|
|
3829
|
+
t ? /* @__PURE__ */ v.jsx(_n, { user: t }) : null,
|
|
3830
|
+
/* @__PURE__ */ v.jsx(
|
|
3831
|
+
qi,
|
|
3832
|
+
{
|
|
3833
|
+
value: e,
|
|
3834
|
+
setValue: r,
|
|
3835
|
+
users: n,
|
|
3836
|
+
placeholder: o,
|
|
3837
|
+
onEnterKeypress: s
|
|
3838
|
+
}
|
|
3839
|
+
),
|
|
3840
|
+
/* @__PURE__ */ v.jsx(dn, { loading: i, color: "primary", children: /* @__PURE__ */ v.jsx(pr, {}) })
|
|
3841
|
+
] }), kn = ({
|
|
3842
|
+
meta: { highlight: e, filePath: r, field: i, column: n }
|
|
3843
|
+
}) => {
|
|
3844
|
+
if (!e)
|
|
3845
|
+
return null;
|
|
3846
|
+
const t = n ? `${r} (${n})` : r;
|
|
3847
|
+
return /* @__PURE__ */ v.jsx("div", { className: me.highlightText, children: /* @__PURE__ */ v.jsx(
|
|
3848
|
+
tr,
|
|
3849
|
+
{
|
|
3850
|
+
code: e,
|
|
3851
|
+
language: i ? "markdown" : "sql",
|
|
3852
|
+
showLineNumbers: !i,
|
|
3853
|
+
fileName: t,
|
|
3854
|
+
theme: "light"
|
|
3855
|
+
}
|
|
3856
|
+
) });
|
|
3857
|
+
}, zi = () => {
|
|
3858
|
+
const e = ne((a) => a.users), r = ne(
|
|
3859
|
+
(a) => a.newConversation
|
|
3860
|
+
), i = ne(
|
|
3861
|
+
(a) => a.currentUserId ? a.users[a.currentUserId] : null
|
|
3862
|
+
), n = ne(
|
|
3863
|
+
(a) => a.shareId
|
|
3864
|
+
), t = ce(), [o, s] = re(!1), [u, l] = re(""), d = async (a) => {
|
|
3865
|
+
if (a == null || a.stopPropagation(), a == null || a.preventDefault(), !(!r || !n)) {
|
|
3866
|
+
s(!0);
|
|
3867
|
+
try {
|
|
3868
|
+
console.log("saving conversation", r, u);
|
|
3869
|
+
const c = await no(
|
|
3870
|
+
n,
|
|
3871
|
+
{
|
|
3872
|
+
...r,
|
|
3873
|
+
message: u
|
|
3874
|
+
},
|
|
3875
|
+
"dbt-docs"
|
|
3876
|
+
// this component is used only from dbt docs page
|
|
3877
|
+
);
|
|
3878
|
+
if (!c.conversation_group_id) {
|
|
3879
|
+
console.error("Unable to create conversation group", c);
|
|
3880
|
+
return;
|
|
3881
|
+
}
|
|
3882
|
+
console.log("Successfully created conversation group", c);
|
|
3883
|
+
} catch (c) {
|
|
3884
|
+
console.error("error while saving conversation", r, c);
|
|
3885
|
+
}
|
|
3886
|
+
t(bn()), s(!1), t(xt(!0)), t(Ot()), l("");
|
|
3887
|
+
}
|
|
3888
|
+
};
|
|
3889
|
+
return /* @__PURE__ */ v.jsx($e, { className: me.newConversationForm, children: /* @__PURE__ */ v.jsx(Je, { children: /* @__PURE__ */ v.jsxs("form", { onSubmit: d, children: [
|
|
3890
|
+
/* @__PURE__ */ v.jsx("h4", { children: "Add comment" }),
|
|
3891
|
+
/* @__PURE__ */ v.jsx(
|
|
3892
|
+
kn,
|
|
3893
|
+
{
|
|
3894
|
+
meta: (r == null ? void 0 : r.meta) || {}
|
|
3895
|
+
}
|
|
3896
|
+
),
|
|
3897
|
+
/* @__PURE__ */ v.jsx(
|
|
3898
|
+
Hn,
|
|
3899
|
+
{
|
|
3900
|
+
comment: u,
|
|
3901
|
+
setComment: l,
|
|
3902
|
+
loading: o,
|
|
3903
|
+
users: Object.values(e),
|
|
3904
|
+
currentUser: i,
|
|
3905
|
+
placeholder: "Start a conversation or add others with @",
|
|
3906
|
+
onEnterKeypress: d
|
|
3907
|
+
}
|
|
3908
|
+
)
|
|
3909
|
+
] }) }) });
|
|
3910
|
+
}, Vi = ({
|
|
3911
|
+
conversationGroupId: e,
|
|
3912
|
+
shareId: r
|
|
3913
|
+
}) => {
|
|
3914
|
+
const { onResolve: i, source: n } = Be(), [t, o] = re(!1), s = async () => {
|
|
3915
|
+
e && (o(!0), await so(r, e, n), i(), o(!1));
|
|
3916
|
+
};
|
|
3917
|
+
return e ? /* @__PURE__ */ v.jsx(
|
|
3918
|
+
Ie,
|
|
3919
|
+
{
|
|
3920
|
+
disabled: t,
|
|
3921
|
+
className: me.resolveButton,
|
|
3922
|
+
title: "Resolve conversation",
|
|
3923
|
+
onClick: s,
|
|
3924
|
+
children: /* @__PURE__ */ v.jsx(gr, {})
|
|
3925
|
+
}
|
|
3926
|
+
) : null;
|
|
3927
|
+
}, Un = ({
|
|
3928
|
+
user: e,
|
|
3929
|
+
timestamp: r,
|
|
3930
|
+
showResolveButton: i,
|
|
3931
|
+
conversationGroupId: n,
|
|
3932
|
+
shareId: t
|
|
3933
|
+
}) => /* @__PURE__ */ v.jsxs(Et, { className: "d-flex align-items-center justify-content-between mb-0", children: [
|
|
3934
|
+
/* @__PURE__ */ v.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3935
|
+
/* @__PURE__ */ v.jsx(_n, { user: e }),
|
|
3936
|
+
/* @__PURE__ */ v.jsxs("h4", { children: [
|
|
3937
|
+
e == null ? void 0 : e.first_name,
|
|
3938
|
+
" ",
|
|
3939
|
+
e == null ? void 0 : e.last_name
|
|
3940
|
+
] }),
|
|
3941
|
+
/* @__PURE__ */ v.jsx("span", { children: dt(r).format("HH:mm, DD MMM YY") })
|
|
3942
|
+
] }),
|
|
3943
|
+
i ? /* @__PURE__ */ v.jsx(Vi, { conversationGroupId: n, shareId: t }) : null
|
|
3944
|
+
] }), Yi = ({ conversation: e, shareId: r }) => {
|
|
3945
|
+
const { users: i } = Be(), n = fe(() => {
|
|
3946
|
+
if (e != null && e.user_id)
|
|
3947
|
+
return i[e.user_id];
|
|
3948
|
+
}, [e.user_id, i]);
|
|
3949
|
+
return /* @__PURE__ */ v.jsxs($e, { children: [
|
|
3950
|
+
/* @__PURE__ */ v.jsx(Un, { user: n, timestamp: e.timestamp, shareId: r }),
|
|
3951
|
+
/* @__PURE__ */ v.jsx(Je, { children: /* @__PURE__ */ v.jsx("p", { children: e.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }) })
|
|
3952
|
+
] });
|
|
3953
|
+
}, Wi = ({ conversationGroupId: e, shareId: r }) => {
|
|
3954
|
+
const { currentUser: i, users: n, onReplyAdd: t, source: o } = Be(), s = Object.values(n), [u, l] = re(""), [d, a] = re(!1), c = async (f) => {
|
|
3955
|
+
if (f == null || f.stopPropagation(), f == null || f.preventDefault(), !(!r || !e)) {
|
|
3956
|
+
a(!0), console.log("saving reply", r, e, {
|
|
3957
|
+
message: u
|
|
3958
|
+
});
|
|
3959
|
+
try {
|
|
3960
|
+
await ro(
|
|
3961
|
+
r,
|
|
3962
|
+
e,
|
|
3963
|
+
{
|
|
3964
|
+
message: u
|
|
3965
|
+
},
|
|
3966
|
+
o
|
|
3967
|
+
), t();
|
|
3968
|
+
} catch (g) {
|
|
3969
|
+
console.error("error while saving reply", g);
|
|
3970
|
+
}
|
|
3971
|
+
a(!1), l("");
|
|
3972
|
+
}
|
|
3973
|
+
};
|
|
3974
|
+
return /* @__PURE__ */ v.jsx("div", { className: me.replyForm, children: /* @__PURE__ */ v.jsx("form", { onSubmit: c, className: "", children: /* @__PURE__ */ v.jsx(
|
|
3975
|
+
Hn,
|
|
3976
|
+
{
|
|
3977
|
+
comment: u,
|
|
3978
|
+
setComment: l,
|
|
3979
|
+
loading: d,
|
|
3980
|
+
users: Object.values(s),
|
|
3981
|
+
currentUser: i || null,
|
|
3982
|
+
onEnterKeypress: c
|
|
3983
|
+
}
|
|
3984
|
+
) }) });
|
|
3985
|
+
}, Ki = ({ conversationGroup: e, shareId: r, onSelect: i }) => {
|
|
3986
|
+
var f;
|
|
3987
|
+
const { users: n } = Be(), t = fe(() => {
|
|
3988
|
+
if (e.owner)
|
|
3989
|
+
return n[e.owner];
|
|
3990
|
+
}, [e.owner, n]), { isSelected: o } = Be(), [s, u] = re(!1), l = we(
|
|
3991
|
+
(g) => {
|
|
3992
|
+
!o || !g || (console.log("ConversationGroupComponent scrolling", e.conversation_group_id), setTimeout(() => {
|
|
3993
|
+
g.scrollIntoView({
|
|
3994
|
+
behavior: "smooth",
|
|
3995
|
+
block: "center"
|
|
3996
|
+
});
|
|
3997
|
+
}, 1e3));
|
|
3998
|
+
},
|
|
3999
|
+
[e.conversation_group_id, o]
|
|
4000
|
+
);
|
|
4001
|
+
if (!((f = e == null ? void 0 : e.conversations) != null && f.length) || (e == null ? void 0 : e.status) !== "Pending")
|
|
4002
|
+
return null;
|
|
4003
|
+
const [d, ...a] = e.conversations, c = a.length ? a.length > 1 ? `${a.length} replies` : `${a.length} reply` : "Reply";
|
|
4004
|
+
return /* @__PURE__ */ v.jsx("div", { ref: l, className: me.conversationGroup, children: /* @__PURE__ */ v.jsxs($e, { className: `${o ? "active" : ""}`, onClick: i, children: [
|
|
4005
|
+
/* @__PURE__ */ v.jsx(
|
|
4006
|
+
Un,
|
|
4007
|
+
{
|
|
4008
|
+
user: t,
|
|
4009
|
+
timestamp: d.timestamp,
|
|
4010
|
+
showResolveButton: !0,
|
|
4011
|
+
conversationGroupId: e.conversation_group_id,
|
|
4012
|
+
shareId: r
|
|
4013
|
+
}
|
|
4014
|
+
),
|
|
4015
|
+
/* @__PURE__ */ v.jsxs(Je, { children: [
|
|
4016
|
+
/* @__PURE__ */ v.jsx(kn, { meta: e.meta }),
|
|
4017
|
+
/* @__PURE__ */ v.jsx("p", { children: d.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }),
|
|
4018
|
+
/* @__PURE__ */ v.jsx(Ce, { onClick: () => u((g) => !g), color: "link", children: c }),
|
|
4019
|
+
a.length ? /* @__PURE__ */ v.jsx(v.Fragment, { children: s ? /* @__PURE__ */ v.jsx(v.Fragment, { children: a.map((g) => /* @__PURE__ */ v.jsx(Yi, { conversation: g, shareId: r }, g.conversation_id)) }) : null }) : null,
|
|
4020
|
+
s ? /* @__PURE__ */ v.jsx(
|
|
4021
|
+
Wi,
|
|
4022
|
+
{
|
|
4023
|
+
conversationGroupId: e.conversation_group_id,
|
|
4024
|
+
shareId: r
|
|
4025
|
+
}
|
|
4026
|
+
) : null
|
|
4027
|
+
] })
|
|
4028
|
+
] }) });
|
|
4029
|
+
}, qn = _e({
|
|
4030
|
+
users: {},
|
|
4031
|
+
conversationGroup: void 0,
|
|
4032
|
+
currentUser: void 0,
|
|
4033
|
+
isSelected: !1,
|
|
4034
|
+
shareId: void 0,
|
|
4035
|
+
onSelect: () => null,
|
|
4036
|
+
onResolve: () => null,
|
|
4037
|
+
onReplyAdd: () => null,
|
|
4038
|
+
source: Ct.DBT_DOCS
|
|
4039
|
+
}), Xi = ({
|
|
4040
|
+
currentUser: e,
|
|
4041
|
+
conversationGroup: r,
|
|
4042
|
+
shareId: i,
|
|
4043
|
+
onSelect: n,
|
|
4044
|
+
isSelected: t,
|
|
4045
|
+
users: o,
|
|
4046
|
+
onResolve: s,
|
|
4047
|
+
onReplyAdd: u,
|
|
4048
|
+
source: l
|
|
4049
|
+
}) => {
|
|
4050
|
+
const d = fe(
|
|
4051
|
+
() => ({
|
|
4052
|
+
currentUser: e,
|
|
4053
|
+
conversationGroup: r,
|
|
4054
|
+
shareId: i,
|
|
4055
|
+
onSelect: n,
|
|
4056
|
+
isSelected: t,
|
|
4057
|
+
users: o,
|
|
4058
|
+
onResolve: s,
|
|
4059
|
+
onReplyAdd: u,
|
|
4060
|
+
source: l
|
|
4061
|
+
}),
|
|
4062
|
+
[
|
|
4063
|
+
e,
|
|
4064
|
+
r,
|
|
4065
|
+
i,
|
|
4066
|
+
n,
|
|
4067
|
+
t,
|
|
4068
|
+
o,
|
|
4069
|
+
s,
|
|
4070
|
+
u,
|
|
4071
|
+
l
|
|
4072
|
+
]
|
|
4073
|
+
);
|
|
4074
|
+
return !r || !i ? null : /* @__PURE__ */ v.jsx(qn.Provider, { value: d, children: /* @__PURE__ */ v.jsx(
|
|
4075
|
+
Ki,
|
|
4076
|
+
{
|
|
4077
|
+
conversationGroup: r,
|
|
4078
|
+
shareId: i,
|
|
4079
|
+
onSelect: n
|
|
4080
|
+
}
|
|
4081
|
+
) });
|
|
4082
|
+
}, Be = () => ye(qn), Gi = () => {
|
|
4083
|
+
const e = ne((c) => c.source), r = ne(
|
|
4084
|
+
(c) => c.conversations
|
|
4085
|
+
), i = ne(
|
|
4086
|
+
(c) => c.selectedConversationId
|
|
4087
|
+
), n = ne(
|
|
4088
|
+
(c) => c.shareId
|
|
4089
|
+
), t = ne((c) => c.users), o = ne((c) => c.currentUserId), s = ce();
|
|
4090
|
+
if (!o || !n)
|
|
4091
|
+
return null;
|
|
4092
|
+
const u = t[o], l = (c) => {
|
|
4093
|
+
s(Br({ shareId: n, conversationGroupId: c }));
|
|
4094
|
+
}, d = (c) => {
|
|
4095
|
+
s(It(c));
|
|
4096
|
+
}, a = (c) => {
|
|
4097
|
+
console.log("onReplyAdd", c), s(bn());
|
|
4098
|
+
};
|
|
4099
|
+
return !r || !Object.keys(r).length ? /* @__PURE__ */ v.jsx("div", { children: "No conversations yet!" }) : /* @__PURE__ */ v.jsx("div", { children: Object.values(r).map((c) => /* @__PURE__ */ v.jsx(
|
|
4100
|
+
Xi,
|
|
4101
|
+
{
|
|
4102
|
+
conversationGroup: c,
|
|
4103
|
+
shareId: n,
|
|
4104
|
+
isSelected: i === c.conversation_group_id,
|
|
4105
|
+
currentUser: u,
|
|
4106
|
+
onResolve: () => l(c.conversation_group_id),
|
|
4107
|
+
onSelect: () => d(c.conversation_group_id),
|
|
4108
|
+
users: t,
|
|
4109
|
+
onReplyAdd: () => a(c.conversation_group_id),
|
|
4110
|
+
source: e
|
|
4111
|
+
},
|
|
4112
|
+
c.conversation_group_id
|
|
4113
|
+
)) });
|
|
4114
|
+
}, Zi = () => {
|
|
4115
|
+
const e = ne((s) => s.isRightPanelOpen), r = ne(
|
|
4116
|
+
(s) => s.selectedConversationId
|
|
4117
|
+
), i = ne((s) => s.newConversation), n = ce(), t = () => {
|
|
4118
|
+
n(xt(!1)), n(It(void 0)), n(Ot());
|
|
4119
|
+
};
|
|
4120
|
+
return !!i || e || r ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4121
|
+
/* @__PURE__ */ v.jsx(Wn, { onClick: t, className: me.conversationRightPanelCloseButton }),
|
|
4122
|
+
/* @__PURE__ */ v.jsxs("div", { className: me.conversationRightPanel, children: [
|
|
4123
|
+
/* @__PURE__ */ v.jsx("h3", { children: "Comments" }),
|
|
4124
|
+
i ? /* @__PURE__ */ v.jsx(zi, {}) : /* @__PURE__ */ v.jsx(Gi, {})
|
|
4125
|
+
] })
|
|
4126
|
+
] }) : null;
|
|
4127
|
+
}, Qi = 10, Ji = () => {
|
|
4128
|
+
const e = Se(), r = ne(
|
|
4129
|
+
(s) => s.shareId
|
|
4130
|
+
), i = ne(
|
|
4131
|
+
(s) => s.conversationsLoadingState
|
|
4132
|
+
), n = ce(), t = ne(
|
|
4133
|
+
(s) => Object.keys(s.conversations || {})
|
|
4134
|
+
), o = we(
|
|
4135
|
+
(s) => {
|
|
4136
|
+
clearTimeout(e.current), oo(s).then((u) => {
|
|
4137
|
+
console.log("useConversations", u), n(Lr(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
|
|
4138
|
+
o(s);
|
|
4139
|
+
}, Qi * 1e3);
|
|
4140
|
+
}).catch((u) => console.error("error while fetching conversations list", u)).finally(() => {
|
|
4141
|
+
n(Ht(ae.INITIALIZED));
|
|
4142
|
+
});
|
|
4143
|
+
},
|
|
4144
|
+
[n]
|
|
4145
|
+
);
|
|
4146
|
+
return le(() => {
|
|
4147
|
+
i !== ae.UNINITIALIZED || !r || (n(Ht(ae.LOADING)), o(r));
|
|
4148
|
+
}, [n, i, t, r, o]), { isLoading: i === ae.LOADING };
|
|
4149
|
+
}, es = () => {
|
|
4150
|
+
const e = ce(), r = ne(
|
|
4151
|
+
(t) => Object.keys(t.users || {})
|
|
4152
|
+
), [i, n] = re(ae.UNINITIALIZED);
|
|
4153
|
+
return le(() => {
|
|
4154
|
+
i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING), io().then((t) => {
|
|
4155
|
+
console.log("useConversationUsers", t), e(Mr(t));
|
|
4156
|
+
}).catch((t) => console.error("error while fetching users list", t)).finally(() => {
|
|
4157
|
+
n(ae.INITIALIZED);
|
|
4158
|
+
}));
|
|
4159
|
+
}, [e, i, r]), { isLoading: i === ae.LOADING };
|
|
4160
|
+
}, ts = () => (es(), Ji(), /* @__PURE__ */ v.jsxs("div", { children: [
|
|
4161
|
+
/* @__PURE__ */ v.jsx(Zi, {}),
|
|
4162
|
+
/* @__PURE__ */ v.jsx(co, {})
|
|
4163
|
+
] })), zn = ({ target: e, ...r }) => bt(
|
|
4164
|
+
/* @__PURE__ */ v.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ v.jsx(pn, {}) }),
|
|
4165
|
+
e
|
|
4166
|
+
), ns = () => {
|
|
4167
|
+
var l;
|
|
4168
|
+
const e = ce(), r = ne(
|
|
4169
|
+
(d) => d.codeblockLoaded
|
|
4170
|
+
), i = ne((d) => d.manifest), [n, t] = re(0), o = (l = _t()) == null ? void 0 : l.parentElement, s = () => {
|
|
4171
|
+
var f;
|
|
4172
|
+
if (!o || !i.nodes)
|
|
4173
|
+
return;
|
|
4174
|
+
const d = At();
|
|
4175
|
+
if (!d || d.length < 3) {
|
|
4176
|
+
console.error("Unable to find model parts", d);
|
|
4177
|
+
return;
|
|
4178
|
+
}
|
|
4179
|
+
const c = {
|
|
4180
|
+
highlight: ((f = i.nodes[d[2]]) == null ? void 0 : f.raw_code).split(`
|
|
4181
|
+
`)[n],
|
|
4182
|
+
range: {
|
|
4183
|
+
end: { line: n, character: 0 },
|
|
4184
|
+
start: { line: n, character: 0 }
|
|
4185
|
+
}
|
|
4186
|
+
};
|
|
4187
|
+
e(Dt({ meta: c }));
|
|
4188
|
+
}, u = we(
|
|
4189
|
+
(d) => {
|
|
4190
|
+
if (!o)
|
|
4191
|
+
return;
|
|
4192
|
+
const a = d.y, c = o.querySelectorAll(".line-numbers-rows > span"), f = Array.from(c).findIndex((g) => {
|
|
4193
|
+
const { height: p, y: m } = g.getBoundingClientRect();
|
|
4194
|
+
return a >= m && a <= m + p;
|
|
4195
|
+
});
|
|
4196
|
+
t(f);
|
|
4197
|
+
},
|
|
4198
|
+
[o]
|
|
4199
|
+
);
|
|
4200
|
+
return le(() => {
|
|
4201
|
+
if (!(!r || !o))
|
|
4202
|
+
return o.addEventListener("mousemove", u), () => {
|
|
4203
|
+
o.removeEventListener("mousemove", u);
|
|
4204
|
+
};
|
|
4205
|
+
}, [r, o, u]), !r || !o ? null : /* @__PURE__ */ v.jsx(zn, { target: o, onClick: s, style: { top: n * 21.2 } });
|
|
4206
|
+
}, rs = () => {
|
|
4207
|
+
const e = ce(), r = ne(
|
|
4208
|
+
(t) => t.codeblockLoaded
|
|
4209
|
+
), i = Tt(), n = () => {
|
|
4210
|
+
const t = {
|
|
4211
|
+
field: "description",
|
|
4212
|
+
highlight: i == null ? void 0 : i.innerText
|
|
4213
|
+
};
|
|
4214
|
+
e(Dt({ meta: t }));
|
|
4215
|
+
};
|
|
4216
|
+
return !r || !i ? null : /* @__PURE__ */ v.jsx(zn, { target: i, onClick: n });
|
|
4217
|
+
}, os = () => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4218
|
+
/* @__PURE__ */ v.jsx(rs, {}),
|
|
4219
|
+
/* @__PURE__ */ v.jsx(ns, {})
|
|
4220
|
+
] }), is = Sr(() => import("./DbtDocsRenderer.js")), ss = () => {
|
|
4221
|
+
const { loading: e, shareDetails: r } = ao(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = uo(), s = (u) => {
|
|
4222
|
+
u.stopPropagation();
|
|
4223
|
+
const l = n();
|
|
4224
|
+
l && i(Dt(l));
|
|
4225
|
+
};
|
|
4226
|
+
return e ? /* @__PURE__ */ v.jsx("div", { children: "Loading..." }) : !(r != null && r.catalog_presigned_url) || !(r != null && r.manifest_presigned_url) ? /* @__PURE__ */ v.jsx("div", { children: "Unable to load required artifacts. Please try again." }) : /* @__PURE__ */ v.jsxs("div", { children: [
|
|
4227
|
+
/* @__PURE__ */ v.jsxs("div", { className: "d-flex justify-content-end mb-2", children: [
|
|
4228
|
+
/* @__PURE__ */ v.jsx(os, {}),
|
|
4229
|
+
/* @__PURE__ */ v.jsx(eo, {})
|
|
4230
|
+
] }),
|
|
4231
|
+
/* @__PURE__ */ v.jsx(ts, {}),
|
|
4232
|
+
/* @__PURE__ */ v.jsx(is, { shareDetails: r, onSelectionEnd: o }),
|
|
4233
|
+
t ? /* @__PURE__ */ v.jsx(Jr, { pos: t, onAddComment: s }) : null
|
|
4234
|
+
] });
|
|
4235
|
+
}, Os = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ v.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ v.jsx(
|
|
4236
|
+
Hr,
|
|
4237
|
+
{
|
|
4238
|
+
shareId: e,
|
|
4239
|
+
userId: r,
|
|
4240
|
+
conversationGroupId: i,
|
|
4241
|
+
source: n,
|
|
4242
|
+
children: /* @__PURE__ */ v.jsx(ss, {})
|
|
4243
|
+
}
|
|
4244
|
+
) }), Vn = {
|
|
4245
|
+
showCoachingForm: !1
|
|
4246
|
+
}, mt = cn({
|
|
4247
|
+
name: "teamMate",
|
|
4248
|
+
initialState: Vn,
|
|
4249
|
+
reducers: {
|
|
4250
|
+
setShowCoachingForm: (e, r) => {
|
|
4251
|
+
e.showCoachingForm = r.payload;
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4254
|
+
}), as = mt.actions, Yn = _e({
|
|
4255
|
+
state: Vn,
|
|
4256
|
+
dispatch: () => null
|
|
4257
|
+
}), Ds = ({ children: e }) => {
|
|
4258
|
+
const [r, i] = gn(mt.reducer, mt.getInitialState()), n = fe(
|
|
4259
|
+
() => ({
|
|
4260
|
+
state: r,
|
|
4261
|
+
dispatch: i
|
|
4262
|
+
}),
|
|
4263
|
+
[r, i]
|
|
4264
|
+
);
|
|
4265
|
+
return /* @__PURE__ */ v.jsx(Yn.Provider, { value: n, children: e });
|
|
4266
|
+
}, us = (e) => /* @__PURE__ */ te.createElement("svg", { width: 131, height: 131, viewBox: "0 0 131 131", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#EAEEF9" }), /* @__PURE__ */ te.createElement("mask", { id: "mask0_3506_13710", style: {
|
|
4267
|
+
maskType: "alpha"
|
|
4268
|
+
}, maskUnits: "userSpaceOnUse", x: -1, y: -1, width: 132, height: 132 }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#F1F3F9", stroke: "#D6DCE8", strokeWidth: 2, strokeMiterlimit: 10 })), /* @__PURE__ */ te.createElement("g", { mask: "url(#mask0_3506_13710)" }, /* @__PURE__ */ te.createElement("g", { filter: "url(#filter0_d_3506_13710)" }, /* @__PURE__ */ te.createElement("path", { d: "M110.116 47.3781L111.286 125.57C111.286 128.145 109.179 130.252 106.37 130.252H30.051C27.4758 130.252 25.1348 128.145 25.1348 125.57V25.138C25.1348 22.5628 27.2417 20.4559 30.051 20.4559H85.3002L110.116 47.3781Z", fill: "url(#paint0_linear_3506_13710)" })), /* @__PURE__ */ te.createElement("path", { d: "M85.3008 20.4559V41.9937C85.3008 45.0371 87.876 47.3782 90.9193 47.3782H110.116", fill: "#D5DDEA" })), /* @__PURE__ */ te.createElement("path", { d: "M119.221 27.592L120.664 26.951C121.144 26.7908 121.144 26.1498 120.664 25.9896L119.221 25.3486C117.459 24.5475 116.017 23.1053 115.215 21.3427L114.575 19.9006C114.414 19.4199 113.773 19.4199 113.613 19.9006L112.972 21.3427C112.171 23.1053 110.729 24.5475 108.966 25.3486L107.524 25.9896C107.043 26.1498 107.043 26.7908 107.524 26.951L108.966 27.592C110.729 28.3931 112.171 29.8353 112.972 31.5979L113.613 33.04C113.773 33.5207 114.414 33.5207 114.575 33.04L115.215 31.5979C115.856 29.8353 117.299 28.3931 119.221 27.592Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M103.678 18.4585L104.64 17.9777C104.96 17.8175 104.96 17.497 104.64 17.3368L103.678 17.0163C102.397 16.5356 101.435 15.5742 100.954 14.2923L100.474 13.3309C100.313 13.0104 99.993 13.0104 99.8327 13.3309L99.5123 14.2923C98.8713 15.5742 97.9099 16.5356 96.7882 17.0163L95.6666 17.497C95.5063 17.497 95.5063 17.9777 95.6666 17.9777L96.628 18.4585C97.9099 18.9392 98.8713 19.9006 99.5123 21.1825L99.993 22.1439C100.153 22.4644 100.474 22.4644 100.634 22.1439L100.954 21.1825C101.435 19.9006 102.397 18.9392 103.678 18.4585Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M116.016 9.16483L116.817 8.84435C116.978 8.68412 116.978 8.52388 116.817 8.36364L116.016 8.04317C115.055 7.7227 114.414 6.92151 113.933 5.96009L113.613 5.1589C113.452 4.99867 113.292 4.99867 113.132 5.1589L112.811 5.96009C112.491 6.92151 111.69 7.56246 110.728 8.04317L110.248 8.36364C109.927 8.52388 109.927 8.84435 110.248 8.84435L111.049 9.16483C112.01 9.4853 112.651 10.2865 113.132 11.2479L113.452 12.0491C113.613 12.2093 113.773 12.2093 113.933 12.0491L114.254 11.2479C114.414 10.2865 115.215 9.4853 116.016 9.16483Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M53.7864 71.8552C50.2113 71.8552 47.2082 69.5695 46.0642 66.2838C45.7782 65.5695 46.2072 64.8552 46.9222 64.5695C47.6372 64.2838 48.3523 64.7124 48.6383 65.4266C49.3533 67.5695 51.4983 69.1409 53.7864 69.1409C56.0744 69.1409 58.2195 67.7124 58.9345 65.4266C59.2205 64.7124 59.9355 64.2838 60.6506 64.5695C61.3656 64.8552 61.7946 65.5695 61.5086 66.2838C60.3646 69.7124 57.3615 71.8552 53.7864 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M75.3801 71.8552C71.805 71.8552 68.802 69.5695 67.6579 66.2838C67.3719 65.5695 67.8009 64.8552 68.516 64.5695C69.231 64.2838 69.946 64.7124 70.232 65.4266C70.947 67.5695 73.0921 69.1409 75.3801 69.1409C77.6682 69.1409 79.8133 67.7124 80.5283 65.4266C80.8143 64.7124 81.5293 64.2838 82.2443 64.5695C82.9593 64.8552 83.3883 65.5695 83.1023 66.2838C81.9583 69.7124 78.9552 71.8552 75.3801 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M64.6548 89.3467C66.4713 89.3467 67.9439 87.8756 67.9439 86.061C67.9439 84.2463 66.4713 82.7752 64.6548 82.7752C62.8383 82.7752 61.3657 84.2463 61.3657 86.061C61.3657 87.8756 62.8383 89.3467 64.6548 89.3467Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("defs", null, /* @__PURE__ */ te.createElement("filter", { id: "filter0_d_3506_13710", x: 3.13477, y: 9.45586, width: 130.151, height: 153.796, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ te.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ te.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ te.createElement("feOffset", { dy: 11 }), /* @__PURE__ */ te.createElement("feGaussianBlur", { stdDeviation: 11 }), /* @__PURE__ */ te.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_3506_13710" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_3506_13710", result: "shape" })), /* @__PURE__ */ te.createElement("linearGradient", { id: "paint0_linear_3506_13710", x1: 68.1823, y1: 17.9162, x2: 68.1823, y2: 131.436, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ te.createElement("stop", { stopColor: "#FDFEFF" }), /* @__PURE__ */ te.createElement("stop", { offset: 0.9964, stopColor: "#ECF0F5" })))), ls = () => {
|
|
4269
|
+
const e = ye(Yn);
|
|
4270
|
+
if (e === void 0)
|
|
4271
|
+
throw new Error("useTeamMateContext must be used within a TeamMateProvider");
|
|
4272
|
+
return e;
|
|
4273
|
+
}, Rs = () => {
|
|
4274
|
+
const { dispatch: e } = ls(), r = () => {
|
|
4275
|
+
e(as.setShowCoachingForm(!0));
|
|
4276
|
+
};
|
|
4277
|
+
return /* @__PURE__ */ v.jsx(Ie, { onClick: r, children: "Show Coaching Form" });
|
|
4278
|
+
}, cs = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
|
|
4279
|
+
const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } = Ar({
|
|
4280
|
+
initialValues: e,
|
|
4281
|
+
validationSchema: rr(or),
|
|
4282
|
+
onSubmit: async (A) => {
|
|
4283
|
+
await ve.post(`coach/training/${e.train_doc_uid}`, A, {
|
|
4284
|
+
method: "PUT"
|
|
4285
|
+
}), o(!1), f(!1);
|
|
4286
|
+
}
|
|
4287
|
+
}), g = async () => await ve.post(
|
|
4288
|
+
`coach/training/${e.train_doc_uid}`,
|
|
4289
|
+
{},
|
|
4290
|
+
{ method: "DELETE" }
|
|
4291
|
+
), { loading: p, error: m, mutate: h } = fn({
|
|
4292
|
+
queryFn: g,
|
|
4293
|
+
onSuccess: r
|
|
4294
|
+
}), E = (A) => {
|
|
4295
|
+
A == null || A.stopPropagation();
|
|
4296
|
+
}, C = () => {
|
|
4297
|
+
E(), h();
|
|
4298
|
+
}, S = (A) => {
|
|
4299
|
+
E(A), o(!1);
|
|
4300
|
+
}, I = (A) => {
|
|
4301
|
+
E(A), i(e.train_doc_uid), o(!0);
|
|
4302
|
+
}, y = n === e.train_doc_uid;
|
|
4303
|
+
return /* @__PURE__ */ v.jsx($e, { className: y ? "active" : "", children: /* @__PURE__ */ v.jsxs("form", { onSubmit: d, children: [
|
|
4304
|
+
/* @__PURE__ */ v.jsx(Et, { children: /* @__PURE__ */ v.jsxs(se, { className: "align-items-start", children: [
|
|
4305
|
+
/* @__PURE__ */ v.jsxs("div", { style: { flex: 1 }, children: [
|
|
4306
|
+
/* @__PURE__ */ v.jsx("div", { children: t ? /* @__PURE__ */ v.jsxs(Mt, { children: [
|
|
4307
|
+
/* @__PURE__ */ v.jsx(
|
|
4308
|
+
Lt,
|
|
4309
|
+
{
|
|
4310
|
+
name: "content",
|
|
4311
|
+
value: a.content,
|
|
4312
|
+
type: "textarea",
|
|
4313
|
+
placeholder: "Enter your coaching feedback here...",
|
|
4314
|
+
invalid: !!s.content,
|
|
4315
|
+
onClick: E,
|
|
4316
|
+
onChange: c,
|
|
4317
|
+
style: { fieldSizing: "content" }
|
|
4318
|
+
}
|
|
4319
|
+
),
|
|
4320
|
+
s.content ? /* @__PURE__ */ v.jsx(Kn, { children: s.content }) : null
|
|
4321
|
+
] }) : /* @__PURE__ */ v.jsx("h6", { className: y ? "" : "lines-2", children: a.content }) }),
|
|
4322
|
+
/* @__PURE__ */ v.jsx(se, { children: /* @__PURE__ */ v.jsxs("dl", { children: [
|
|
4323
|
+
/* @__PURE__ */ v.jsxs(se, { children: [
|
|
4324
|
+
/* @__PURE__ */ v.jsx("dt", { children: "Created on:" }),
|
|
4325
|
+
/* @__PURE__ */ v.jsx("dd", { children: dt(e.createdDate).format("MMMM D, YYYY h:mm A") })
|
|
4326
|
+
] }),
|
|
4327
|
+
/* @__PURE__ */ v.jsxs(se, { children: [
|
|
4328
|
+
/* @__PURE__ */ v.jsx("dt", { children: "Updated on:" }),
|
|
4329
|
+
/* @__PURE__ */ v.jsxs("dd", { children: [
|
|
4330
|
+
dt(e.updatedDate).format("MMMM D, YYYY h:mm A"),
|
|
4331
|
+
" "
|
|
4332
|
+
] })
|
|
4333
|
+
] }),
|
|
4334
|
+
/* @__PURE__ */ v.jsxs(se, { children: [
|
|
4335
|
+
/* @__PURE__ */ v.jsx("dt", { children: "Created by:" }),
|
|
4336
|
+
" ",
|
|
4337
|
+
/* @__PURE__ */ v.jsx("dd", { children: e.display_name })
|
|
4338
|
+
] })
|
|
4339
|
+
] }) })
|
|
4340
|
+
] }),
|
|
4341
|
+
/* @__PURE__ */ v.jsxs(se, { className: "align-items-top gap-0", children: [
|
|
4342
|
+
/* @__PURE__ */ v.jsx(Mt, { switch: !0, children: /* @__PURE__ */ v.jsx(
|
|
4343
|
+
nr,
|
|
4344
|
+
{
|
|
4345
|
+
title: a.isActive ? "Disable this learning" : "Enable this learning",
|
|
4346
|
+
children: /* @__PURE__ */ v.jsx(
|
|
4347
|
+
Lt,
|
|
4348
|
+
{
|
|
4349
|
+
type: "switch",
|
|
4350
|
+
role: "switch",
|
|
4351
|
+
id: `toggle-${e.train_doc_uid}`,
|
|
4352
|
+
checked: a.isActive,
|
|
4353
|
+
onChange: (A) => {
|
|
4354
|
+
c({
|
|
4355
|
+
target: { name: "isActive", value: A.target.checked }
|
|
4356
|
+
}), d();
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
)
|
|
4360
|
+
}
|
|
4361
|
+
) }),
|
|
4362
|
+
/* @__PURE__ */ v.jsx(
|
|
4363
|
+
ir,
|
|
4364
|
+
{
|
|
4365
|
+
title: "Delete the task",
|
|
4366
|
+
description: "Are you sure to delete this task?",
|
|
4367
|
+
onConfirm: C,
|
|
4368
|
+
onCancel: E,
|
|
4369
|
+
okText: "Yes",
|
|
4370
|
+
cancelText: "No",
|
|
4371
|
+
children: /* @__PURE__ */ v.jsx(
|
|
4372
|
+
Ie,
|
|
4373
|
+
{
|
|
4374
|
+
title: "Delete this learning",
|
|
4375
|
+
className: "pt-1 pb-0",
|
|
4376
|
+
disabled: p,
|
|
4377
|
+
onClick: E,
|
|
4378
|
+
children: /* @__PURE__ */ v.jsx(hr, {})
|
|
4379
|
+
}
|
|
4380
|
+
)
|
|
4381
|
+
}
|
|
4382
|
+
),
|
|
4383
|
+
t ? /* @__PURE__ */ v.jsxs(se, { className: "align-items-baseline", children: [
|
|
4384
|
+
/* @__PURE__ */ v.jsx(Ce, { onClick: S, outline: !0, size: "sm", children: "Cancel" }),
|
|
4385
|
+
/* @__PURE__ */ v.jsx(
|
|
4386
|
+
Ce,
|
|
4387
|
+
{
|
|
4388
|
+
size: "sm",
|
|
4389
|
+
color: "primary",
|
|
4390
|
+
disabled: l || !u,
|
|
4391
|
+
type: "submit",
|
|
4392
|
+
children: "Save"
|
|
4393
|
+
}
|
|
4394
|
+
)
|
|
4395
|
+
] }) : /* @__PURE__ */ v.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ v.jsx(vr, {}) }),
|
|
4396
|
+
/* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(mr, {}) : /* @__PURE__ */ v.jsx(Er, {}) })
|
|
4397
|
+
] })
|
|
4398
|
+
] }) }),
|
|
4399
|
+
/* @__PURE__ */ v.jsxs(Xn, { isOpen: y, children: [
|
|
4400
|
+
m && /* @__PURE__ */ v.jsx(ln, { color: "danger", children: m.message }),
|
|
4401
|
+
/* @__PURE__ */ v.jsxs(se, { className: "gap-4", children: [
|
|
4402
|
+
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
4403
|
+
/* @__PURE__ */ v.jsx("strong", { children: "Category:" }),
|
|
4404
|
+
" ",
|
|
4405
|
+
t ? /* @__PURE__ */ v.jsx(
|
|
4406
|
+
Bt,
|
|
4407
|
+
{
|
|
4408
|
+
style: { minWidth: 160 },
|
|
4409
|
+
options: Object.values(sr).map((A) => ({
|
|
4410
|
+
value: A,
|
|
4411
|
+
label: A
|
|
4412
|
+
})),
|
|
4413
|
+
value: a.category,
|
|
4414
|
+
onChange: (A) => {
|
|
4415
|
+
c({
|
|
4416
|
+
target: { name: "category", value: A }
|
|
4417
|
+
});
|
|
4418
|
+
}
|
|
4419
|
+
}
|
|
4420
|
+
) : e.category
|
|
4421
|
+
] }),
|
|
4422
|
+
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
4423
|
+
/* @__PURE__ */ v.jsx("strong", { children: "Task Label:" }),
|
|
4424
|
+
" ",
|
|
4425
|
+
e.taskLabel
|
|
4426
|
+
] }),
|
|
4427
|
+
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
4428
|
+
/* @__PURE__ */ v.jsx("strong", { children: "Personalization Scope:" }),
|
|
4429
|
+
" ",
|
|
4430
|
+
t ? /* @__PURE__ */ v.jsx(
|
|
4431
|
+
Bt,
|
|
4432
|
+
{
|
|
4433
|
+
style: { minWidth: 100 },
|
|
4434
|
+
options: Object.values(ar).map((A) => ({
|
|
4435
|
+
value: A,
|
|
4436
|
+
label: A
|
|
4437
|
+
})),
|
|
4438
|
+
value: a.personalizationScope,
|
|
4439
|
+
onChange: (A) => {
|
|
4440
|
+
c({
|
|
4441
|
+
target: { name: "personalizationScope", value: A }
|
|
4442
|
+
});
|
|
4443
|
+
}
|
|
4444
|
+
}
|
|
4445
|
+
) : e.personalizationScope
|
|
4446
|
+
] }),
|
|
4447
|
+
e.metadata && Object.keys(e.metadata).map((A) => {
|
|
4448
|
+
var D;
|
|
4449
|
+
return /* @__PURE__ */ v.jsxs("div", { children: [
|
|
4450
|
+
/* @__PURE__ */ v.jsxs("strong", { children: [
|
|
4451
|
+
A,
|
|
4452
|
+
":"
|
|
4453
|
+
] }),
|
|
4454
|
+
" ",
|
|
4455
|
+
/* @__PURE__ */ v.jsx(v.Fragment, { children: ((D = e.metadata) == null ? void 0 : D[A]) || "" })
|
|
4456
|
+
] }, A);
|
|
4457
|
+
})
|
|
4458
|
+
] })
|
|
4459
|
+
] })
|
|
4460
|
+
] }) });
|
|
4461
|
+
}, ws = ({ filters: e, learning: r }) => {
|
|
4462
|
+
var d;
|
|
4463
|
+
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = ur({
|
|
4464
|
+
queryFn: () => ve.get("coach/training", e),
|
|
4465
|
+
enabled: !1
|
|
4466
|
+
});
|
|
4467
|
+
le(() => {
|
|
4468
|
+
u();
|
|
4469
|
+
}, []);
|
|
4470
|
+
const l = (a) => {
|
|
4471
|
+
n((c) => c === a ? void 0 : a);
|
|
4472
|
+
};
|
|
4473
|
+
return /* @__PURE__ */ v.jsx(se, { direction: "column", className: "learnings", children: s ? /* @__PURE__ */ v.jsx("p", { children: "Loading learnings..." }) : t ? /* @__PURE__ */ v.jsxs(ln, { color: "danger", children: [
|
|
4474
|
+
"Error loading learnings: ",
|
|
4475
|
+
t.message
|
|
4476
|
+
] }) : (d = o == null ? void 0 : o.train_docs) != null && d.length ? /* @__PURE__ */ v.jsx("div", { children: o.train_docs.map((a) => /* @__PURE__ */ v.jsx(
|
|
4477
|
+
cs,
|
|
4478
|
+
{
|
|
4479
|
+
learning: a,
|
|
4480
|
+
afterDelete: u,
|
|
4481
|
+
toggle: l,
|
|
4482
|
+
openId: i
|
|
4483
|
+
},
|
|
4484
|
+
a.train_doc_uid
|
|
4485
|
+
)) }) : /* @__PURE__ */ v.jsxs(se, { direction: "column", className: "align-items-center", children: [
|
|
4486
|
+
/* @__PURE__ */ v.jsx(us, {}),
|
|
4487
|
+
/* @__PURE__ */ v.jsx("h4", { children: "No learnings added yet!" })
|
|
4488
|
+
] }) });
|
|
4489
|
+
}, ds = ({ config: e, client: r, onSelect: i }) => {
|
|
4490
|
+
const n = async () => await i(e, rt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = fn({
|
|
4491
|
+
queryFn: n
|
|
4492
|
+
}), u = typeof e.comingSoon == "function" ? e.comingSoon() : e.comingSoon;
|
|
4493
|
+
return /* @__PURE__ */ v.jsx(Gn, { children: /* @__PURE__ */ v.jsxs($e, { children: [
|
|
4494
|
+
/* @__PURE__ */ v.jsxs(se, { className: "justify-content-between", children: [
|
|
4495
|
+
/* @__PURE__ */ v.jsx(Zn, { alt: "Teammate image", src: e.avatar }),
|
|
4496
|
+
/* @__PURE__ */ v.jsx("div", { children: e.availability.map((l) => /* @__PURE__ */ v.jsxs(lr, { color: "success", tooltip: "", className: l, children: [
|
|
4497
|
+
u ? "Coming soon" : "Available",
|
|
4498
|
+
" in ",
|
|
4499
|
+
l
|
|
4500
|
+
] }, l)) })
|
|
4501
|
+
] }),
|
|
4502
|
+
/* @__PURE__ */ v.jsxs(Je, { children: [
|
|
4503
|
+
/* @__PURE__ */ v.jsx(Et, { tag: "h5", children: e.name }),
|
|
4504
|
+
/* @__PURE__ */ v.jsx(Qn, { tag: "h6" }),
|
|
4505
|
+
/* @__PURE__ */ v.jsx(Jn, { children: e.description }),
|
|
4506
|
+
/* @__PURE__ */ v.jsxs(se, { className: "justify-content-start align-items-center", children: [
|
|
4507
|
+
u ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4508
|
+
/* @__PURE__ */ v.jsx(
|
|
4509
|
+
dn,
|
|
4510
|
+
{
|
|
4511
|
+
size: "sm",
|
|
4512
|
+
className: "cursor-pointer",
|
|
4513
|
+
onClick: () => o(),
|
|
4514
|
+
color: "primary",
|
|
4515
|
+
loading: t,
|
|
4516
|
+
disabled: !!s,
|
|
4517
|
+
children: "Request Access"
|
|
4518
|
+
}
|
|
4519
|
+
),
|
|
4520
|
+
s ? /* @__PURE__ */ v.jsx("p", { className: "m-0", children: "Our team will reach out soon" }) : null
|
|
4521
|
+
] }) : /* @__PURE__ */ v.jsx(
|
|
4522
|
+
Ce,
|
|
4523
|
+
{
|
|
4524
|
+
size: "sm",
|
|
4525
|
+
className: "cursor-pointer",
|
|
4526
|
+
onClick: () => i(e, rt.VIEW_DETAILS),
|
|
4527
|
+
tooltip: "",
|
|
4528
|
+
color: "primary",
|
|
4529
|
+
children: "View details"
|
|
4530
|
+
}
|
|
4531
|
+
),
|
|
4532
|
+
e.seeInAction && e.availability.includes(cr[r]) && /* @__PURE__ */ v.jsx(
|
|
4533
|
+
Ce,
|
|
4534
|
+
{
|
|
4535
|
+
color: "primary",
|
|
4536
|
+
outline: !0,
|
|
4537
|
+
size: "sm",
|
|
4538
|
+
className: "cursor-pointer",
|
|
4539
|
+
onClick: () => i(e, rt.SEE_IN_ACTION),
|
|
4540
|
+
tooltip: "",
|
|
4541
|
+
children: "See in action"
|
|
4542
|
+
}
|
|
4543
|
+
)
|
|
4544
|
+
] })
|
|
4545
|
+
] })
|
|
4546
|
+
] }) });
|
|
4547
|
+
}, Ns = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(er, { children: dr.map((i) => /* @__PURE__ */ v.jsx(ds, { config: i, client: r, onSelect: e }, i.name)) }) });
|
|
4548
|
+
export {
|
|
4549
|
+
Ct as C,
|
|
4550
|
+
Os as D,
|
|
4551
|
+
ws as L,
|
|
4552
|
+
Ds as T,
|
|
4553
|
+
ne as a,
|
|
4554
|
+
Ts as b,
|
|
4555
|
+
Is as c,
|
|
4556
|
+
bs as d,
|
|
4557
|
+
_t as e,
|
|
4558
|
+
me as f,
|
|
4559
|
+
Tr as g,
|
|
4560
|
+
Hn as h,
|
|
4561
|
+
Xi as i,
|
|
4562
|
+
Rs as j,
|
|
4563
|
+
ls as k,
|
|
4564
|
+
as as l,
|
|
4565
|
+
Ns as m,
|
|
4566
|
+
As as s,
|
|
4567
|
+
ce as u
|
|
4568
|
+
};
|