@altimateai/ui-components 0.0.22 → 0.0.23-beta.1
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-Dln4BC6y.d.ts → Button-Ba6FLZh8.d.ts} +2 -2
- package/dist/CoachForm.js +7674 -7654
- package/dist/Form.js +3657 -0
- package/dist/Switch.js +128 -0
- package/dist/Table.js +22 -0
- package/dist/Tooltip.js +3074 -2161
- package/dist/assets/icons/index.js +1 -1
- package/dist/index.d.ts +20 -23
- package/dist/index.js +32 -64
- package/dist/index2.js +9 -9
- package/dist/lineage/index.js +2273 -2296
- package/dist/main.css +1 -1
- package/dist/main.js +875 -877
- package/dist/redux-toolkit.modern.js +908 -1012
- package/dist/shadcn/index.d.ts +18 -14
- package/dist/shadcn/index.js +1737 -2433
- package/dist/storybook/Typography.stories.tsx +14 -14
- package/package.json +2 -2
- package/dist/Label.js +0 -48
- package/dist/NativeSelect.js +0 -3918
package/dist/main.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { j as
|
|
1
|
+
import { C as Yn } from "./Table.js";
|
|
2
|
+
import { P as un, T as dt, V as Wn, W as Kn, X as Xn, Y as Zn, Z as Gn, _ as rt, $ as Qn, a0 as Jn } from "./CoachForm.js";
|
|
3
|
+
import { g as Et, a as ln, A as ve, C as er, I as Ie, S as oe, u as cn, b as tr } from "./redux-toolkit.modern.js";
|
|
4
|
+
import { j as h, A as dn, k as nr, l as rr, b as or, C as ir, D as sr, E as ar, i as ur, a as lr } from "./index2.js";
|
|
5
5
|
import * as te from "react";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
6
|
+
import G, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as cr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as dr, Children as De, isValidElement as fr, useState as re, lazy as pr } from "react";
|
|
7
|
+
import gr, { createPortal as yt } from "react-dom";
|
|
8
|
+
import { p as ye, K as $e, L as He, W as hr, Q as vr, Y as mr, a9 as Er, T as Ft } from "./Tooltip.js";
|
|
9
|
+
import { ay as Mt, aC as yr, a7 as gn, al as Lt, $ as br } from "./Form.js";
|
|
10
|
+
import { S as Cr } from "./Switch.js";
|
|
11
|
+
import { useFormik as Sr } from "formik";
|
|
12
|
+
import './main.css';var bt = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(bt || {});
|
|
13
|
+
const _r = () => {
|
|
13
14
|
var r, i, n;
|
|
14
15
|
const e = (n = (i = (r = window.location.hash) == null ? void 0 : r.split("#")[1]) == null ? void 0 : i.replace("!/", "")) == null ? void 0 : n.split("/");
|
|
15
16
|
return { name: e == null ? void 0 : e[1], resourceType: e == null ? void 0 : e[0] };
|
|
16
17
|
};
|
|
17
|
-
var
|
|
18
|
+
var hn = { exports: {} };
|
|
18
19
|
/*! web-highlighter v0.7.4 https://github.com/alienzhou/web-highlighter */
|
|
19
20
|
(function(e, r) {
|
|
20
21
|
(function(i, n) {
|
|
@@ -147,12 +148,12 @@ var En = { exports: {} };
|
|
|
147
148
|
this.startMeta = a, this.endMeta = c, this.text = f, this.id = g, this.__isHighlightSource = {}, p && (this.extra = p);
|
|
148
149
|
}
|
|
149
150
|
return d.prototype.deSerialize = function(a, c) {
|
|
150
|
-
var f = u.queryElementNode(this, a), g = f.start, p = f.end, m = u.getTextChildByOffset(g, this.startMeta.textOffset),
|
|
151
|
+
var f = u.queryElementNode(this, a), g = f.start, p = f.end, m = u.getTextChildByOffset(g, this.startMeta.textOffset), v = u.getTextChildByOffset(p, this.endMeta.textOffset);
|
|
151
152
|
if (!c.Serialize.Restore.isEmpty()) {
|
|
152
|
-
var E = c.Serialize.Restore.call(this, m,
|
|
153
|
-
m = E[0] || m,
|
|
153
|
+
var E = c.Serialize.Restore.call(this, m, v) || [];
|
|
154
|
+
m = E[0] || m, v = E[1] || v;
|
|
154
155
|
}
|
|
155
|
-
return new s.default(m,
|
|
156
|
+
return new s.default(m, v, this.text, this.id, !0);
|
|
156
157
|
}, d;
|
|
157
158
|
}();
|
|
158
159
|
n.default = l;
|
|
@@ -167,9 +168,9 @@ var En = { exports: {} };
|
|
|
167
168
|
}, s = this && this.__read || function(a, c) {
|
|
168
169
|
var f = typeof Symbol == "function" && a[Symbol.iterator];
|
|
169
170
|
if (!f) return a;
|
|
170
|
-
var g, p, m = f.call(a),
|
|
171
|
+
var g, p, m = f.call(a), v = [];
|
|
171
172
|
try {
|
|
172
|
-
for (; (c === void 0 || c-- > 0) && !(g = m.next()).done; )
|
|
173
|
+
for (; (c === void 0 || c-- > 0) && !(g = m.next()).done; ) v.push(g.value);
|
|
173
174
|
} catch (E) {
|
|
174
175
|
p = { error: E };
|
|
175
176
|
} finally {
|
|
@@ -179,7 +180,7 @@ var En = { exports: {} };
|
|
|
179
180
|
if (p) throw p.error;
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
|
-
return
|
|
183
|
+
return v;
|
|
183
184
|
}, u = this && this.__spread || function() {
|
|
184
185
|
for (var a = [], c = 0; c < arguments.length; c++) a = a.concat(s(arguments[c]));
|
|
185
186
|
return a;
|
|
@@ -210,28 +211,28 @@ var En = { exports: {} };
|
|
|
210
211
|
Array.isArray(a) || (a = [a]);
|
|
211
212
|
var p = [];
|
|
212
213
|
try {
|
|
213
|
-
for (var m = o(a),
|
|
214
|
-
var E =
|
|
214
|
+
for (var m = o(a), v = m.next(); !v.done; v = m.next()) {
|
|
215
|
+
var E = v.value.querySelectorAll(c + "[data-" + l.DATASET_IDENTIFIER + "]");
|
|
215
216
|
p.push.apply(p, E);
|
|
216
217
|
}
|
|
217
218
|
} catch (C) {
|
|
218
219
|
f = { error: C };
|
|
219
220
|
} finally {
|
|
220
221
|
try {
|
|
221
|
-
|
|
222
|
+
v && !v.done && (g = m.return) && g.call(m);
|
|
222
223
|
} finally {
|
|
223
224
|
if (f) throw f.error;
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
return p;
|
|
227
228
|
}, n.getHighlightById = function(a, c, f) {
|
|
228
|
-
var g, p, m = [],
|
|
229
|
+
var g, p, m = [], v = new RegExp("(" + c + "\\" + l.ID_DIVISION + "|\\" + l.ID_DIVISION + "?" + c + "$)"), E = a.querySelectorAll(f + "[data-" + l.DATASET_IDENTIFIER + "]");
|
|
229
230
|
try {
|
|
230
231
|
for (var C = o(E), S = C.next(); !S.done; S = C.next()) {
|
|
231
232
|
var I = S.value;
|
|
232
233
|
if (I.dataset[l.CAMEL_DATASET_IDENTIFIER] !== c) {
|
|
233
234
|
var y = I.dataset[l.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
234
|
-
|
|
235
|
+
v.test(y) && m.push(I);
|
|
235
236
|
} else m.push(I);
|
|
236
237
|
}
|
|
237
238
|
} catch (A) {
|
|
@@ -268,17 +269,17 @@ var En = { exports: {} };
|
|
|
268
269
|
};
|
|
269
270
|
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
270
271
|
var s = o(t(3)), u = t(1), l = t(11), d = o(t(6)), a = t(12), c = t(0), f = function() {
|
|
271
|
-
function g(p, m,
|
|
272
|
-
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 =
|
|
272
|
+
function g(p, m, v, E, C) {
|
|
273
|
+
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 = v, this.frozen = C, this.id = E;
|
|
273
274
|
}
|
|
274
275
|
return g.fromSelection = function(p) {
|
|
275
276
|
var m = l.getDomRange();
|
|
276
277
|
if (!m) return null;
|
|
277
|
-
var
|
|
278
|
-
return new g(
|
|
278
|
+
var v = { $node: m.startContainer, offset: m.startOffset }, E = { $node: m.endContainer, offset: m.endOffset }, C = m.toString(), S = p.call(v, E, C);
|
|
279
|
+
return new g(v, E, C, S = S ?? d.default());
|
|
279
280
|
}, g.prototype.serialize = function(p, m) {
|
|
280
|
-
var
|
|
281
|
-
return m.Serialize.RecordInfo.isEmpty() || (
|
|
281
|
+
var v, E = a.getDomMeta(this.start.$node, this.start.offset, p), C = a.getDomMeta(this.end.$node, this.end.offset, p);
|
|
282
|
+
return m.Serialize.RecordInfo.isEmpty() || (v = m.Serialize.RecordInfo.call(this.start, this.end, p)), this.frozen = !0, new s.default(E, C, this.text, this.id, v);
|
|
282
283
|
}, g.removeDomRange = l.removeSelection, g;
|
|
283
284
|
}();
|
|
284
285
|
n.default = f;
|
|
@@ -309,7 +310,7 @@ var En = { exports: {} };
|
|
|
309
310
|
return y && y.__esModule ? y : { default: y };
|
|
310
311
|
};
|
|
311
312
|
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
312
|
-
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)),
|
|
313
|
+
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)), v = l(t(17)), E = t(0), C = t(1), S = t(4), I = function(y) {
|
|
313
314
|
function A(D) {
|
|
314
315
|
var b = y.call(this) || this;
|
|
315
316
|
b.event = p.default(), b.run = function() {
|
|
@@ -334,7 +335,7 @@ var En = { exports: {} };
|
|
|
334
335
|
var T = b.options.$root;
|
|
335
336
|
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();
|
|
336
337
|
}, b.setOption = function(T) {
|
|
337
|
-
b.options = u(u({}, b.options), T), b.painter = new
|
|
338
|
+
b.options = u(u({}, b.options), T), b.painter = new v.default({ $root: b.options.$root, wrapTag: b.options.wrapTag, className: b.options.style.className, exceptSelectors: b.options.exceptSelectors }, b.hooks);
|
|
338
339
|
}, b.fromRange = function(T) {
|
|
339
340
|
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);
|
|
340
341
|
F = F ?? f.default();
|
|
@@ -424,15 +425,15 @@ var En = { exports: {} };
|
|
|
424
425
|
for (var g = f.parentNode; g != null && g.dataset[o.CAMEL_DATASET_IDENTIFIER]; ) g = g.parentNode;
|
|
425
426
|
return g;
|
|
426
427
|
}(s), a = d === l ? o.ROOT_IDX : function(f, g) {
|
|
427
|
-
for (var p = f.tagName, m = g.getElementsByTagName(p),
|
|
428
|
+
for (var p = f.tagName, m = g.getElementsByTagName(p), v = 0; v < m.length; v++) if (f === m[v]) return v;
|
|
428
429
|
return o.UNKNOWN_IDX;
|
|
429
430
|
}(d, l), c = function(f, g) {
|
|
430
|
-
for (var p = [f], m = null,
|
|
431
|
+
for (var p = [f], m = null, v = 0; m = p.pop(); ) {
|
|
431
432
|
for (var E = m.childNodes, C = E.length - 1; C >= 0; C--) p.push(E[C]);
|
|
432
|
-
if (m.nodeType === 3 && m !== g)
|
|
433
|
+
if (m.nodeType === 3 && m !== g) v += m.textContent.length;
|
|
433
434
|
else if (m.nodeType === 3) break;
|
|
434
435
|
}
|
|
435
|
-
return
|
|
436
|
+
return v;
|
|
436
437
|
}(d, s);
|
|
437
438
|
return { parentTagName: d.tagName, parentIndex: a, textOffset: c + u };
|
|
438
439
|
}, n.formatDomNode = function(s) {
|
|
@@ -503,7 +504,7 @@ var En = { exports: {} };
|
|
|
503
504
|
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, m) {
|
|
504
505
|
p.__proto__ = m;
|
|
505
506
|
} || function(p, m) {
|
|
506
|
-
for (var
|
|
507
|
+
for (var v in m) Object.prototype.hasOwnProperty.call(m, v) && (p[v] = m[v]);
|
|
507
508
|
})(f, g);
|
|
508
509
|
}, function(f, g) {
|
|
509
510
|
function p() {
|
|
@@ -532,19 +533,19 @@ var En = { exports: {} };
|
|
|
532
533
|
throw a.ERROR.CACHE_SET_ERROR;
|
|
533
534
|
}, enumerable: !1, configurable: !0 }), g.prototype.save = function(p) {
|
|
534
535
|
var m = this;
|
|
535
|
-
Array.isArray(p) ? p.forEach(function(
|
|
536
|
-
return m._data.set(
|
|
536
|
+
Array.isArray(p) ? p.forEach(function(v) {
|
|
537
|
+
return m._data.set(v.id, v);
|
|
537
538
|
}) : this._data.set(p.id, p);
|
|
538
539
|
}, g.prototype.get = function(p) {
|
|
539
540
|
return this._data.get(p);
|
|
540
541
|
}, g.prototype.remove = function(p) {
|
|
541
542
|
this._data.delete(p);
|
|
542
543
|
}, g.prototype.getAll = function() {
|
|
543
|
-
var p, m,
|
|
544
|
+
var p, m, v = [];
|
|
544
545
|
try {
|
|
545
546
|
for (var E = u(this._data), C = E.next(); !C.done; C = E.next()) {
|
|
546
547
|
var S = C.value;
|
|
547
|
-
|
|
548
|
+
v.push(S[1]);
|
|
548
549
|
}
|
|
549
550
|
} catch (I) {
|
|
550
551
|
p = { error: I };
|
|
@@ -555,13 +556,13 @@ var En = { exports: {} };
|
|
|
555
556
|
if (p) throw p.error;
|
|
556
557
|
}
|
|
557
558
|
}
|
|
558
|
-
return
|
|
559
|
+
return v;
|
|
559
560
|
}, g.prototype.removeAll = function() {
|
|
560
|
-
var p, m,
|
|
561
|
+
var p, m, v = [];
|
|
561
562
|
try {
|
|
562
563
|
for (var E = u(this._data), C = E.next(); !C.done; C = E.next()) {
|
|
563
564
|
var S = C.value;
|
|
564
|
-
|
|
565
|
+
v.push(S[0]);
|
|
565
566
|
}
|
|
566
567
|
} catch (I) {
|
|
567
568
|
p = { error: I };
|
|
@@ -572,22 +573,22 @@ var En = { exports: {} };
|
|
|
572
573
|
if (p) throw p.error;
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
|
-
return this._data = /* @__PURE__ */ new Map(),
|
|
576
|
+
return this._data = /* @__PURE__ */ new Map(), v;
|
|
576
577
|
}, g;
|
|
577
578
|
}(d.default);
|
|
578
579
|
n.default = c;
|
|
579
580
|
}, function(i, n, t) {
|
|
580
|
-
var o = this && this.__values || function(
|
|
581
|
-
var E = typeof Symbol == "function" && Symbol.iterator, C = E &&
|
|
582
|
-
if (C) return C.call(
|
|
583
|
-
if (
|
|
584
|
-
return
|
|
581
|
+
var o = this && this.__values || function(v) {
|
|
582
|
+
var E = typeof Symbol == "function" && Symbol.iterator, C = E && v[E], S = 0;
|
|
583
|
+
if (C) return C.call(v);
|
|
584
|
+
if (v && typeof v.length == "number") return { next: function() {
|
|
585
|
+
return v && S >= v.length && (v = void 0), { value: v && v[S++], done: !v };
|
|
585
586
|
} };
|
|
586
587
|
throw new TypeError(E ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
587
|
-
}, s = this && this.__read || function(
|
|
588
|
-
var C = typeof Symbol == "function" &&
|
|
589
|
-
if (!C) return
|
|
590
|
-
var S, I, y = C.call(
|
|
588
|
+
}, s = this && this.__read || function(v, E) {
|
|
589
|
+
var C = typeof Symbol == "function" && v[Symbol.iterator];
|
|
590
|
+
if (!C) return v;
|
|
591
|
+
var S, I, y = C.call(v), A = [];
|
|
591
592
|
try {
|
|
592
593
|
for (; (E === void 0 || E-- > 0) && !(S = y.next()).done; ) A.push(S.value);
|
|
593
594
|
} catch (D) {
|
|
@@ -601,17 +602,17 @@ var En = { exports: {} };
|
|
|
601
602
|
}
|
|
602
603
|
return A;
|
|
603
604
|
}, u = this && this.__spread || function() {
|
|
604
|
-
for (var
|
|
605
|
-
return
|
|
606
|
-
}, l = this && this.__importDefault || function(
|
|
607
|
-
return
|
|
605
|
+
for (var v = [], E = 0; E < arguments.length; E++) v = v.concat(s(arguments[E]));
|
|
606
|
+
return v;
|
|
607
|
+
}, l = this && this.__importDefault || function(v) {
|
|
608
|
+
return v && v.__esModule ? v : { default: v };
|
|
608
609
|
};
|
|
609
610
|
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
610
611
|
var d = l(t(3)), a = t(18), c = t(4), f = t(1), g = t(20), p = t(0), m = function() {
|
|
611
|
-
function
|
|
612
|
+
function v(E, C) {
|
|
612
613
|
this.options = { $root: E.$root, wrapTag: E.wrapTag, exceptSelectors: E.exceptSelectors, className: E.className }, this.hooks = C, g.initDefaultStylesheet();
|
|
613
614
|
}
|
|
614
|
-
return
|
|
615
|
+
return v.prototype.highlightRange = function(E) {
|
|
615
616
|
var C = this;
|
|
616
617
|
if (!E.frozen) throw f.ERROR.HIGHLIGHT_RANGE_FROZEN;
|
|
617
618
|
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);
|
|
@@ -619,7 +620,7 @@ var En = { exports: {} };
|
|
|
619
620
|
var T = a.wrapHighlight(w, E, y, C.options.wrapTag);
|
|
620
621
|
return D.Render.WrapNode.isEmpty() || (T = D.Render.WrapNode.call(E.id, T)), T;
|
|
621
622
|
});
|
|
622
|
-
},
|
|
623
|
+
}, v.prototype.highlightSource = function(E) {
|
|
623
624
|
var C = this, S = Array.isArray(E) ? E : [E], I = [];
|
|
624
625
|
return S.forEach(function(y) {
|
|
625
626
|
if (y instanceof d.default) {
|
|
@@ -627,7 +628,7 @@ var En = { exports: {} };
|
|
|
627
628
|
C.highlightRange(A).length > 0 ? I.push(y) : p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.HIGHLIGHT_SOURCE_NONE_RENDER, detail: y });
|
|
628
629
|
} else p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.SOURCE_TYPE_ERROR });
|
|
629
630
|
}), I;
|
|
630
|
-
},
|
|
631
|
+
}, v.prototype.removeHighlight = function(E) {
|
|
631
632
|
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 = [];
|
|
632
633
|
try {
|
|
633
634
|
for (var P = o(D), q = P.next(); !q.done; q = P.next()) {
|
|
@@ -648,16 +649,16 @@ var En = { exports: {} };
|
|
|
648
649
|
c.forEach(N.childNodes, function(x) {
|
|
649
650
|
return $.appendChild(x.cloneNode(!1));
|
|
650
651
|
});
|
|
651
|
-
var
|
|
652
|
-
j.replaceChild($, N), a.normalizeSiblingText(
|
|
652
|
+
var Z = N.previousSibling, _ = N.nextSibling;
|
|
653
|
+
j.replaceChild($, N), a.normalizeSiblingText(Z, !0), a.normalizeSiblingText(_, !1), y.Remove.UpdateNodes.call(E, N, "remove");
|
|
653
654
|
}), w.forEach(function(N) {
|
|
654
|
-
var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION),
|
|
655
|
-
_ && (c.removeAllClass(N), c.addClass(N, u(_.classList))), j[p.CAMEL_DATASET_IDENTIFIER] =
|
|
655
|
+
var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION), Z = $.shift(), _ = document.querySelector(A + "[data-" + p.DATASET_IDENTIFIER + '="' + Z + '"]');
|
|
656
|
+
_ && (c.removeAllClass(N), c.addClass(N, u(_.classList))), j[p.CAMEL_DATASET_IDENTIFIER] = Z, j[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = $.join(p.ID_DIVISION), y.Remove.UpdateNodes.call(E, N, "id-update");
|
|
656
657
|
}), T.forEach(function(N) {
|
|
657
658
|
var j = N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
658
659
|
N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = j.replace(I, ""), y.Remove.UpdateNodes.call(E, N, "extra-update");
|
|
659
660
|
}), b.length + w.length + T.length !== 0;
|
|
660
|
-
},
|
|
661
|
+
}, v.prototype.removeAllHighlight = function() {
|
|
661
662
|
var E = this.options, C = E.wrapTag, S = E.$root;
|
|
662
663
|
c.getHighlightsByRoot(S, C).forEach(function(I) {
|
|
663
664
|
var y = I.parentNode, A = document.createDocumentFragment();
|
|
@@ -665,21 +666,21 @@ var En = { exports: {} };
|
|
|
665
666
|
return A.appendChild(D.cloneNode(!1));
|
|
666
667
|
}), y.replaceChild(A, I);
|
|
667
668
|
});
|
|
668
|
-
},
|
|
669
|
+
}, v;
|
|
669
670
|
}();
|
|
670
671
|
n.default = m;
|
|
671
672
|
}, function(i, n, t) {
|
|
672
673
|
var o = this && this.__read || function(p, m) {
|
|
673
|
-
var
|
|
674
|
-
if (!
|
|
675
|
-
var E, C, S =
|
|
674
|
+
var v = typeof Symbol == "function" && p[Symbol.iterator];
|
|
675
|
+
if (!v) return p;
|
|
676
|
+
var E, C, S = v.call(p), I = [];
|
|
676
677
|
try {
|
|
677
678
|
for (; (m === void 0 || m-- > 0) && !(E = S.next()).done; ) I.push(E.value);
|
|
678
679
|
} catch (y) {
|
|
679
680
|
C = { error: y };
|
|
680
681
|
} finally {
|
|
681
682
|
try {
|
|
682
|
-
E && !E.done && (
|
|
683
|
+
E && !E.done && (v = S.return) && v.call(S);
|
|
683
684
|
} finally {
|
|
684
685
|
if (C) throw C.error;
|
|
685
686
|
}
|
|
@@ -693,8 +694,8 @@ var En = { exports: {} };
|
|
|
693
694
|
var u = t(1), l = t(4), d = t(0), a = t(19), c = function(p, m) {
|
|
694
695
|
if (!p) return !1;
|
|
695
696
|
if (/^\./.test(m)) {
|
|
696
|
-
var
|
|
697
|
-
return p && l.hasClass(p,
|
|
697
|
+
var v = m.replace(/^\./, "");
|
|
698
|
+
return p && l.hasClass(p, v);
|
|
698
699
|
}
|
|
699
700
|
if (/^#/.test(m)) {
|
|
700
701
|
var E = m.replace(/^#/, "");
|
|
@@ -703,15 +704,15 @@ var En = { exports: {} };
|
|
|
703
704
|
var C = m.toUpperCase();
|
|
704
705
|
return p && p.tagName === C;
|
|
705
706
|
};
|
|
706
|
-
n.getSelectedNodes = function(p, m,
|
|
707
|
-
var C = m.$node, S =
|
|
707
|
+
n.getSelectedNodes = function(p, m, v, E) {
|
|
708
|
+
var C = m.$node, S = v.$node, I = m.offset, y = v.offset;
|
|
708
709
|
if (C === S && C instanceof Text) return function(F, V, N, j) {
|
|
709
|
-
for (var $ = F,
|
|
710
|
+
for (var $ = F, Z = function(x) {
|
|
710
711
|
return j == null ? void 0 : j.some(function(L) {
|
|
711
712
|
return c(x, L);
|
|
712
713
|
});
|
|
713
714
|
}; $; ) {
|
|
714
|
-
if ($.nodeType === 1 &&
|
|
715
|
+
if ($.nodeType === 1 && Z($)) return [];
|
|
715
716
|
$ = $.parentNode;
|
|
716
717
|
}
|
|
717
718
|
F.splitText(V);
|
|
@@ -742,37 +743,37 @@ var En = { exports: {} };
|
|
|
742
743
|
return D;
|
|
743
744
|
};
|
|
744
745
|
var f = function(p, m) {
|
|
745
|
-
var
|
|
746
|
-
return (
|
|
746
|
+
var v = Array.isArray(m) ? m : [m];
|
|
747
|
+
return (v = v.length === 0 ? [d.getDefaultOptions().style.className] : v).forEach(function(E) {
|
|
747
748
|
l.addClass(p, E);
|
|
748
749
|
}), p;
|
|
749
750
|
}, g = function(p) {
|
|
750
751
|
return !p || !p.textContent;
|
|
751
752
|
};
|
|
752
|
-
n.wrapHighlight = function(p, m,
|
|
753
|
+
n.wrapHighlight = function(p, m, v, E) {
|
|
753
754
|
var C = p.$node.parentNode, S = p.$node.previousSibling, I = p.$node.nextSibling;
|
|
754
755
|
return l.isHighlightWrapNode(C) ? !l.isHighlightWrapNode(C) || g(S) && g(I) ? function(y, A, D) {
|
|
755
756
|
var b = y.$node.parentNode, w = b;
|
|
756
757
|
l.removeAllClass(w), f(w, D);
|
|
757
758
|
var T = b.dataset, P = T[d.CAMEL_DATASET_IDENTIFIER];
|
|
758
759
|
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;
|
|
759
|
-
}(p, m,
|
|
760
|
+
}(p, m, v) : function(y, A, D, b) {
|
|
760
761
|
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;
|
|
761
762
|
w.setAttribute("data-" + d.DATASET_IDENTIFIER, A.id), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, N), w.appendChild(y.$node.cloneNode(!1));
|
|
762
|
-
var j, $ = !1,
|
|
763
|
+
var j, $ = !1, Z = !1;
|
|
763
764
|
P && ((_ = T.cloneNode(!1)).textContent = P.textContent, Y.appendChild(_), $ = !0);
|
|
764
765
|
var _, x = [];
|
|
765
|
-
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(_),
|
|
766
|
-
}(p, m,
|
|
766
|
+
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(_), Z = !0), j = $ && Z ? u.SplitType.both : $ ? u.SplitType.head : Z ? u.SplitType.tail : u.SplitType.none, w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, j), T.parentNode.replaceChild(Y, T), w;
|
|
767
|
+
}(p, m, v, E) : function(y, A, D, b) {
|
|
767
768
|
var w = document.createElement(b);
|
|
768
769
|
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;
|
|
769
|
-
}(p, m,
|
|
770
|
+
}(p, m, v, E);
|
|
770
771
|
}, n.normalizeSiblingText = function(p, m) {
|
|
771
772
|
if (m === void 0 && (m = !0), p && p.nodeType === 3) {
|
|
772
|
-
var
|
|
773
|
-
if (
|
|
774
|
-
var E =
|
|
775
|
-
p.nodeValue = m ? p.nodeValue + E : E + p.nodeValue,
|
|
773
|
+
var v = m ? p.nextSibling : p.previousSibling;
|
|
774
|
+
if (v.nodeType === 3) {
|
|
775
|
+
var E = v.nodeValue;
|
|
776
|
+
p.nodeValue = m ? p.nodeValue + E : E + p.nodeValue, v.parentNode.removeChild(v);
|
|
776
777
|
}
|
|
777
778
|
}
|
|
778
779
|
};
|
|
@@ -816,56 +817,56 @@ var En = { exports: {} };
|
|
|
816
817
|
};
|
|
817
818
|
}]).default;
|
|
818
819
|
});
|
|
819
|
-
})(
|
|
820
|
-
var
|
|
821
|
-
const
|
|
820
|
+
})(hn);
|
|
821
|
+
var Ar = hn.exports;
|
|
822
|
+
const vn = /* @__PURE__ */ Et(Ar), et = "altimate-display-", Tr = `${et}-highlight`, Bt = `${et}-highlight-hover`, Ir = `${et}-active-highlight`, xr = 1049, xe = new vn({
|
|
822
823
|
style: {
|
|
823
|
-
className:
|
|
824
|
+
className: Tr
|
|
824
825
|
}
|
|
825
826
|
// wrapTag: HIGHLIGHT_WRAPPER_TAGNAME,
|
|
826
|
-
}),
|
|
827
|
+
}), Ct = new vn({
|
|
827
828
|
style: {
|
|
828
|
-
className:
|
|
829
|
+
className: Ir
|
|
829
830
|
}
|
|
830
831
|
// wrapTag: ACTIVE_HIGHLIGHT_WRAPPER_TAGNAME,
|
|
831
|
-
}),
|
|
832
|
+
}), mn = (e, r) => r.filter((i) => {
|
|
832
833
|
var n;
|
|
833
834
|
return ((n = i.$node.nodeValue) == null ? void 0 : n.trim()) !== "";
|
|
834
|
-
}),
|
|
835
|
+
}), En = (e, r, i) => {
|
|
835
836
|
const n = r, t = i, o = ["BR", "HR"];
|
|
836
837
|
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];
|
|
837
838
|
};
|
|
838
|
-
xe.hooks.Render.SelectedNodes.tap(
|
|
839
|
-
xe.hooks.Serialize.Restore.tap(
|
|
840
|
-
|
|
841
|
-
|
|
839
|
+
xe.hooks.Render.SelectedNodes.tap(mn);
|
|
840
|
+
xe.hooks.Serialize.Restore.tap(En);
|
|
841
|
+
Ct.hooks.Render.SelectedNodes.tap(mn);
|
|
842
|
+
Ct.hooks.Serialize.Restore.tap(En);
|
|
842
843
|
xe.on("selection:hover", ({ id: e }) => {
|
|
843
|
-
xe.addClass(
|
|
844
|
+
xe.addClass(Bt, e);
|
|
844
845
|
}).on("selection:hover-out", ({ id: e }) => {
|
|
845
|
-
xe.removeClass(
|
|
846
|
+
xe.removeClass(Bt, e);
|
|
846
847
|
});
|
|
847
|
-
const
|
|
848
|
+
const Or = (e) => {
|
|
848
849
|
var r, i;
|
|
849
850
|
return (r = e.meta) != null && r.highlight ? JSON.parse((i = e.meta) == null ? void 0 : i.highlight) : null;
|
|
850
|
-
},
|
|
851
|
-
const r =
|
|
852
|
-
r && (xe.remove(r.id),
|
|
853
|
-
},
|
|
851
|
+
}, Dr = (e) => {
|
|
852
|
+
const r = Or(e);
|
|
853
|
+
r && (xe.remove(r.id), Ct.remove(r.id));
|
|
854
|
+
}, St = () => {
|
|
854
855
|
var i, n;
|
|
855
|
-
const e =
|
|
856
|
+
const e = _t(), r = (e == null ? void 0 : e[1]) === "analysis" ? document.getElementById("sql") : document.getElementById("code");
|
|
856
857
|
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");
|
|
857
|
-
},
|
|
858
|
+
}, _t = () => {
|
|
858
859
|
var r;
|
|
859
860
|
return (r = window.location.hash.split("#").find((i) => i.startsWith("!"))) == null ? void 0 : r.split("/");
|
|
860
|
-
},
|
|
861
|
+
}, At = () => document.querySelector('[marked="model.description"]'), Rr = (e) => {
|
|
861
862
|
var r, i, n;
|
|
862
863
|
return e.field ? e.column ? (i = (r = Array.from(
|
|
863
864
|
document.querySelectorAll("column-details tr:not(.ng-hide) td:first-child")
|
|
864
|
-
).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n =
|
|
865
|
-
},
|
|
865
|
+
).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n = At()) == null ? void 0 : n.firstChild : St();
|
|
866
|
+
}, wr = (e) => {
|
|
866
867
|
if (e.getAttribute("marked") === "model.description")
|
|
867
868
|
return "description";
|
|
868
|
-
},
|
|
869
|
+
}, Nr = (e, r, i, n, t) => {
|
|
869
870
|
if (e === "description")
|
|
870
871
|
return {
|
|
871
872
|
start: 0,
|
|
@@ -884,12 +885,12 @@ const Nr = (e) => {
|
|
|
884
885
|
start: a,
|
|
885
886
|
end: l
|
|
886
887
|
};
|
|
887
|
-
},
|
|
888
|
+
}, bs = () => {
|
|
888
889
|
var e;
|
|
889
|
-
return [(e =
|
|
890
|
+
return [(e = St()) == null ? void 0 : e.parentElement, At()];
|
|
890
891
|
};
|
|
891
892
|
var ae = /* @__PURE__ */ ((e) => (e[e.LOADING = 0] = "LOADING", e[e.UNINITIALIZED = 1] = "UNINITIALIZED", e[e.INITIALIZED = 2] = "INITIALIZED", e))(ae || {});
|
|
892
|
-
const
|
|
893
|
+
const jr = {
|
|
893
894
|
users: {},
|
|
894
895
|
isRightPanelOpen: !1,
|
|
895
896
|
selectedConversationId: void 0,
|
|
@@ -898,13 +899,13 @@ const Lr = {
|
|
|
898
899
|
newConversation: void 0,
|
|
899
900
|
shareId: void 0,
|
|
900
901
|
docsAppRendered: !1,
|
|
901
|
-
currentPage:
|
|
902
|
+
currentPage: _r(),
|
|
902
903
|
codeblockLoaded: !1,
|
|
903
|
-
source:
|
|
904
|
+
source: bt.DBT_DOCS,
|
|
904
905
|
manifest: {}
|
|
905
|
-
},
|
|
906
|
+
}, Ze = ln({
|
|
906
907
|
name: "appState",
|
|
907
|
-
initialState:
|
|
908
|
+
initialState: jr,
|
|
908
909
|
reducers: {
|
|
909
910
|
setDocsAppRendered: (e, r) => {
|
|
910
911
|
e.docsAppRendered = r.payload;
|
|
@@ -967,7 +968,7 @@ const Lr = {
|
|
|
967
968
|
console.log("Invalid meta");
|
|
968
969
|
return;
|
|
969
970
|
}
|
|
970
|
-
const n =
|
|
971
|
+
const n = _t();
|
|
971
972
|
if (!n || n.length < 3) {
|
|
972
973
|
console.error("Unable to find model parts", n);
|
|
973
974
|
return;
|
|
@@ -992,36 +993,36 @@ const Lr = {
|
|
|
992
993
|
}
|
|
993
994
|
}
|
|
994
995
|
}), {
|
|
995
|
-
setCurrentUserId:
|
|
996
|
-
setShareId:
|
|
997
|
-
updateSelectedConversationId:
|
|
998
|
-
updateRightPanelState:
|
|
999
|
-
setUsers:
|
|
1000
|
-
setConversations:
|
|
1001
|
-
resetNewConversation:
|
|
1002
|
-
updateNewConversation:
|
|
1003
|
-
upsertConversation:
|
|
1004
|
-
setDocsAppRendered:
|
|
1005
|
-
updateCurrentPage:
|
|
1006
|
-
updateCodeblockLoaded:
|
|
1007
|
-
resolveConversationGroup:
|
|
1008
|
-
setConversationsLoadingState:
|
|
1009
|
-
refetchConversations:
|
|
1010
|
-
setConversationSource:
|
|
1011
|
-
setManifest:
|
|
1012
|
-
} =
|
|
1013
|
-
state:
|
|
996
|
+
setCurrentUserId: Cs,
|
|
997
|
+
setShareId: Ss,
|
|
998
|
+
updateSelectedConversationId: Tt,
|
|
999
|
+
updateRightPanelState: It,
|
|
1000
|
+
setUsers: Pr,
|
|
1001
|
+
setConversations: Fr,
|
|
1002
|
+
resetNewConversation: xt,
|
|
1003
|
+
updateNewConversation: Ot,
|
|
1004
|
+
upsertConversation: _s,
|
|
1005
|
+
setDocsAppRendered: As,
|
|
1006
|
+
updateCurrentPage: Ts,
|
|
1007
|
+
updateCodeblockLoaded: Is,
|
|
1008
|
+
resolveConversationGroup: Mr,
|
|
1009
|
+
setConversationsLoadingState: $t,
|
|
1010
|
+
refetchConversations: yn,
|
|
1011
|
+
setConversationSource: xs,
|
|
1012
|
+
setManifest: Lr
|
|
1013
|
+
} = Ze.actions, tt = _e({
|
|
1014
|
+
state: Ze.getInitialState(),
|
|
1014
1015
|
dispatch: () => null,
|
|
1015
1016
|
getValue: () => null
|
|
1016
|
-
}),
|
|
1017
|
+
}), Br = ({
|
|
1017
1018
|
children: e,
|
|
1018
1019
|
shareId: r,
|
|
1019
1020
|
userId: i,
|
|
1020
1021
|
conversationGroupId: n,
|
|
1021
1022
|
source: t
|
|
1022
1023
|
}) => {
|
|
1023
|
-
const [o, s] =
|
|
1024
|
-
...
|
|
1024
|
+
const [o, s] = fn(Ze.reducer, {
|
|
1025
|
+
...Ze.getInitialState(),
|
|
1025
1026
|
shareId: r,
|
|
1026
1027
|
currentUserId: i,
|
|
1027
1028
|
selectedConversationId: n,
|
|
@@ -1038,29 +1039,29 @@ const Lr = {
|
|
|
1038
1039
|
}),
|
|
1039
1040
|
[o, s, u]
|
|
1040
1041
|
);
|
|
1041
|
-
return /* @__PURE__ */
|
|
1042
|
-
},
|
|
1043
|
-
const { getValue: r } = be(
|
|
1042
|
+
return /* @__PURE__ */ h.jsx(tt.Provider, { value: l, children: e });
|
|
1043
|
+
}, $r = () => be(tt), ne = (e) => {
|
|
1044
|
+
const { getValue: r } = be(tt);
|
|
1044
1045
|
return r(e);
|
|
1045
1046
|
}, ce = () => {
|
|
1046
|
-
const { dispatch: e } = be(
|
|
1047
|
+
const { dispatch: e } = be(tt);
|
|
1047
1048
|
return e;
|
|
1048
|
-
},
|
|
1049
|
-
let
|
|
1050
|
-
process.env.NODE_ENV !== "production" && (
|
|
1049
|
+
}, Hr = (e) => e;
|
|
1050
|
+
let bn = Hr;
|
|
1051
|
+
process.env.NODE_ENV !== "production" && (bn = (e, r) => {
|
|
1051
1052
|
if (!e)
|
|
1052
1053
|
throw new Error(r);
|
|
1053
1054
|
});
|
|
1054
|
-
const
|
|
1055
|
+
const kr = _e(null), Ur = _e({}), qr = _e({
|
|
1055
1056
|
transformPagePoint: (e) => e,
|
|
1056
1057
|
isStatic: !1,
|
|
1057
1058
|
reducedMotion: "never"
|
|
1058
|
-
}),
|
|
1059
|
-
function
|
|
1059
|
+
}), zr = typeof window < "u", Vr = zr ? cr : le;
|
|
1060
|
+
function Cn(e) {
|
|
1060
1061
|
const r = Se(null);
|
|
1061
1062
|
return r.current === null && (r.current = e()), r.current;
|
|
1062
1063
|
}
|
|
1063
|
-
class
|
|
1064
|
+
class Yr extends te.Component {
|
|
1064
1065
|
getSnapshotBeforeUpdate(r) {
|
|
1065
1066
|
const i = this.props.childRef.current;
|
|
1066
1067
|
if (i && r.isPresent && !this.props.isPresent) {
|
|
@@ -1078,14 +1079,14 @@ class Gr extends te.Component {
|
|
|
1078
1079
|
return this.props.children;
|
|
1079
1080
|
}
|
|
1080
1081
|
}
|
|
1081
|
-
function
|
|
1082
|
-
const i =
|
|
1082
|
+
function Wr({ children: e, isPresent: r }) {
|
|
1083
|
+
const i = pn(), n = Se(null), t = Se({
|
|
1083
1084
|
width: 0,
|
|
1084
1085
|
height: 0,
|
|
1085
1086
|
top: 0,
|
|
1086
1087
|
left: 0
|
|
1087
|
-
}), { nonce: o } = be(
|
|
1088
|
-
return
|
|
1088
|
+
}), { nonce: o } = be(qr);
|
|
1089
|
+
return dr(() => {
|
|
1089
1090
|
const { width: s, height: u, top: l, left: d } = t.current;
|
|
1090
1091
|
if (r || !n.current || !s || !u)
|
|
1091
1092
|
return;
|
|
@@ -1102,10 +1103,10 @@ function Zr({ children: e, isPresent: r }) {
|
|
|
1102
1103
|
`), () => {
|
|
1103
1104
|
document.head.removeChild(a);
|
|
1104
1105
|
};
|
|
1105
|
-
}, [r]),
|
|
1106
|
+
}, [r]), h.jsx(Yr, { isPresent: r, childRef: n, sizeRef: t, children: te.cloneElement(e, { ref: n }) });
|
|
1106
1107
|
}
|
|
1107
|
-
const
|
|
1108
|
-
const u =
|
|
1108
|
+
const Kr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom: t, presenceAffectsLayout: o, mode: s }) => {
|
|
1109
|
+
const u = Cn(Xr), l = pn(), d = fe(
|
|
1109
1110
|
() => ({
|
|
1110
1111
|
id: l,
|
|
1111
1112
|
initial: r,
|
|
@@ -1131,42 +1132,42 @@ const Qr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom:
|
|
|
1131
1132
|
u.forEach((a, c) => u.set(c, !1));
|
|
1132
1133
|
}, [i]), te.useEffect(() => {
|
|
1133
1134
|
!i && !u.size && n && n();
|
|
1134
|
-
}, [i]), s === "popLayout" && (e =
|
|
1135
|
+
}, [i]), s === "popLayout" && (e = h.jsx(Wr, { isPresent: i, children: e })), h.jsx(kr.Provider, { value: d, children: e });
|
|
1135
1136
|
};
|
|
1136
|
-
function
|
|
1137
|
+
function Xr() {
|
|
1137
1138
|
return /* @__PURE__ */ new Map();
|
|
1138
1139
|
}
|
|
1139
|
-
const
|
|
1140
|
-
function
|
|
1140
|
+
const qe = (e) => e.key || "";
|
|
1141
|
+
function Ht(e) {
|
|
1141
1142
|
const r = [];
|
|
1142
1143
|
return De.forEach(e, (i) => {
|
|
1143
|
-
|
|
1144
|
+
fr(i) && r.push(i);
|
|
1144
1145
|
}), r;
|
|
1145
1146
|
}
|
|
1146
|
-
const
|
|
1147
|
-
|
|
1148
|
-
const u = fe(() =>
|
|
1149
|
-
|
|
1147
|
+
const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
1148
|
+
bn(!r, "Replace exitBeforeEnter with mode='wait'");
|
|
1149
|
+
const u = fe(() => Ht(e), [e]), l = u.map(qe), d = Se(!0), a = Se(u), c = Cn(() => /* @__PURE__ */ new Map()), [f, g] = re(u), [p, m] = re(u);
|
|
1150
|
+
Vr(() => {
|
|
1150
1151
|
d.current = !1, a.current = u;
|
|
1151
1152
|
for (let C = 0; C < p.length; C++) {
|
|
1152
|
-
const S =
|
|
1153
|
+
const S = qe(p[C]);
|
|
1153
1154
|
l.includes(S) ? c.delete(S) : c.get(S) !== !0 && c.set(S, !1);
|
|
1154
1155
|
}
|
|
1155
1156
|
}, [p, l.length, l.join("-")]);
|
|
1156
|
-
const
|
|
1157
|
+
const v = [];
|
|
1157
1158
|
if (u !== f) {
|
|
1158
1159
|
let C = [...u];
|
|
1159
1160
|
for (let S = 0; S < p.length; S++) {
|
|
1160
|
-
const I = p[S], y =
|
|
1161
|
-
l.includes(y) || (C.splice(S, 0, I),
|
|
1161
|
+
const I = p[S], y = qe(I);
|
|
1162
|
+
l.includes(y) || (C.splice(S, 0, I), v.push(I));
|
|
1162
1163
|
}
|
|
1163
|
-
s === "wait" &&
|
|
1164
|
+
s === "wait" && v.length && (C = v), m(Ht(C)), g(u);
|
|
1164
1165
|
return;
|
|
1165
1166
|
}
|
|
1166
1167
|
process.env.NODE_ENV !== "production" && s === "wait" && p.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
1167
|
-
const { forceRender: E } = be(
|
|
1168
|
-
return
|
|
1169
|
-
const S =
|
|
1168
|
+
const { forceRender: E } = be(Ur);
|
|
1169
|
+
return h.jsx(h.Fragment, { children: p.map((C) => {
|
|
1170
|
+
const S = qe(C), I = u === p || l.includes(S), y = () => {
|
|
1170
1171
|
if (c.has(S))
|
|
1171
1172
|
c.set(S, !0);
|
|
1172
1173
|
else
|
|
@@ -1176,20 +1177,20 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1176
1177
|
D || (A = !1);
|
|
1177
1178
|
}), A && (E == null || E(), m(a.current), t && t());
|
|
1178
1179
|
};
|
|
1179
|
-
return
|
|
1180
|
+
return h.jsx(Kr, { isPresent: I, initial: !d.current || n ? void 0 : !1, custom: I ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: I ? void 0 : y, children: C }, S);
|
|
1180
1181
|
}) });
|
|
1181
|
-
},
|
|
1182
|
-
/* @__PURE__ */
|
|
1182
|
+
}, Gr = ({ pos: e, onAddComment: r }) => yt(
|
|
1183
|
+
/* @__PURE__ */ h.jsx(Zr, { children: e && /* @__PURE__ */ h.jsx(
|
|
1183
1184
|
ye,
|
|
1184
1185
|
{
|
|
1185
1186
|
onClick: r,
|
|
1186
|
-
id: `${
|
|
1187
|
+
id: `${et}-highlight`,
|
|
1187
1188
|
style: {
|
|
1188
1189
|
position: "absolute",
|
|
1189
1190
|
top: e.y,
|
|
1190
1191
|
left: e.x,
|
|
1191
1192
|
// right: "15px",
|
|
1192
|
-
zIndex:
|
|
1193
|
+
zIndex: xr + 5,
|
|
1193
1194
|
cursor: "pointer",
|
|
1194
1195
|
background: "#007AFF",
|
|
1195
1196
|
width: 26,
|
|
@@ -1205,24 +1206,24 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1205
1206
|
color: "#fff",
|
|
1206
1207
|
padding: 0
|
|
1207
1208
|
},
|
|
1208
|
-
children: /* @__PURE__ */
|
|
1209
|
+
children: /* @__PURE__ */ h.jsx(dn, {})
|
|
1209
1210
|
}
|
|
1210
1211
|
) }),
|
|
1211
1212
|
e.element.parentElement
|
|
1212
|
-
),
|
|
1213
|
+
), Qr = () => {
|
|
1213
1214
|
const {
|
|
1214
1215
|
state: { isRightPanelOpen: e }
|
|
1215
|
-
} =
|
|
1216
|
-
r(
|
|
1216
|
+
} = $r(), r = ce(), i = () => {
|
|
1217
|
+
r(It(!e));
|
|
1217
1218
|
};
|
|
1218
|
-
return /* @__PURE__ */
|
|
1219
|
-
},
|
|
1219
|
+
return /* @__PURE__ */ h.jsx(ye, { onClick: i, children: e ? "Hide conversations" : "Show conversations" });
|
|
1220
|
+
}, Jr = (e) => ve.get(`dbt/dbt_docs_share/${e}`), eo = (e, r, i) => ve.post(`dbt/dbt_docs_share/${e}/conversation_group`, {
|
|
1220
1221
|
...r,
|
|
1221
1222
|
telemetry: {
|
|
1222
1223
|
eventName: "dbtCollaboration:create",
|
|
1223
1224
|
properties: { source: i }
|
|
1224
1225
|
}
|
|
1225
|
-
}),
|
|
1226
|
+
}), to = (e, r, i, n) => ve.post(
|
|
1226
1227
|
`dbt/dbt_docs_share/${e}/conversation_group/${r}/conversation`,
|
|
1227
1228
|
{
|
|
1228
1229
|
...i,
|
|
@@ -1231,9 +1232,9 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1231
1232
|
properties: { source: n }
|
|
1232
1233
|
}
|
|
1233
1234
|
}
|
|
1234
|
-
),
|
|
1235
|
+
), no = (e) => ve.get(
|
|
1235
1236
|
`dbt/dbt_docs_share/${e}/conversations`
|
|
1236
|
-
),
|
|
1237
|
+
), ro = (e) => ve.get("users/chat", { company: e }), oo = (e, r, i) => ve.post(
|
|
1237
1238
|
`dbt/dbt_docs_share/${e}/conversation_group/${r}/resolve`,
|
|
1238
1239
|
{
|
|
1239
1240
|
resolved: !0,
|
|
@@ -1242,13 +1243,13 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1242
1243
|
properties: { source: i }
|
|
1243
1244
|
}
|
|
1244
1245
|
}
|
|
1245
|
-
),
|
|
1246
|
+
), io = () => {
|
|
1246
1247
|
const e = ne(
|
|
1247
1248
|
(u) => u.shareId
|
|
1248
1249
|
), [r, i] = re(null), [n, t] = re(!1), o = ce();
|
|
1249
1250
|
le(() => {
|
|
1250
1251
|
r != null && r.manifest_presigned_url && fetch(r.manifest_presigned_url).then((u) => u.json()).then((u) => {
|
|
1251
|
-
o(
|
|
1252
|
+
o(Lr(u));
|
|
1252
1253
|
}).catch(
|
|
1253
1254
|
(u) => console.error("error loading manifest", u, r.manifest_presigned_url)
|
|
1254
1255
|
);
|
|
@@ -1257,7 +1258,7 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1257
1258
|
if (!e)
|
|
1258
1259
|
return;
|
|
1259
1260
|
t(!0);
|
|
1260
|
-
const u = await
|
|
1261
|
+
const u = await Jr(e);
|
|
1261
1262
|
if (u) {
|
|
1262
1263
|
i(u);
|
|
1263
1264
|
const l = document.getElementById("collapse-sidebar");
|
|
@@ -1268,7 +1269,7 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1268
1269
|
return le(() => {
|
|
1269
1270
|
!e || r || n || s();
|
|
1270
1271
|
}, [e, r, s, n]), { shareDetails: r, loading: n };
|
|
1271
|
-
},
|
|
1272
|
+
}, so = () => {
|
|
1272
1273
|
const e = ne(
|
|
1273
1274
|
(a) => a.selectedConversationId ? a.conversations[a.selectedConversationId] : null
|
|
1274
1275
|
), r = ne(
|
|
@@ -1280,7 +1281,7 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1280
1281
|
i && (o(null), u(null));
|
|
1281
1282
|
}, [i]);
|
|
1282
1283
|
const l = we(() => {
|
|
1283
|
-
console.log("resetHighlights"), t &&
|
|
1284
|
+
console.log("resetHighlights"), t && Dr(t), u(null), o(null);
|
|
1284
1285
|
}, [t]);
|
|
1285
1286
|
return le(() => {
|
|
1286
1287
|
!e || !r || e.meta.resource_type && e.meta.uniqueId && (window.location.hash = `#!/${e.meta.resource_type}/${e.meta.uniqueId}`);
|
|
@@ -1288,13 +1289,13 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1288
1289
|
getHighlightedSelectionData: () => t,
|
|
1289
1290
|
pos: s,
|
|
1290
1291
|
onSelectionEnd: (a) => {
|
|
1291
|
-
const c = a.target, f =
|
|
1292
|
+
const c = a.target, f = wr(c), { end: g, start: p } = a.detail.selectionRange, m = document.getSelection();
|
|
1292
1293
|
if (!m || !m.rangeCount)
|
|
1293
1294
|
return l(), null;
|
|
1294
1295
|
const E = m.getRangeAt(0).toString(), C = c == null ? void 0 : c.innerText;
|
|
1295
1296
|
if (!E || !C)
|
|
1296
1297
|
return;
|
|
1297
|
-
const { end: S, start: I, x: y, y: A } =
|
|
1298
|
+
const { end: S, start: I, x: y, y: A } = Nr(
|
|
1298
1299
|
f,
|
|
1299
1300
|
c,
|
|
1300
1301
|
E,
|
|
@@ -1313,20 +1314,20 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1313
1314
|
}
|
|
1314
1315
|
}
|
|
1315
1316
|
};
|
|
1316
|
-
n(
|
|
1317
|
+
n(xt()), u({
|
|
1317
1318
|
x: y,
|
|
1318
1319
|
y: A,
|
|
1319
1320
|
element: c
|
|
1320
1321
|
}), document.body.addEventListener("click", l, { once: !0 }), o(D);
|
|
1321
1322
|
}
|
|
1322
1323
|
};
|
|
1323
|
-
},
|
|
1324
|
+
}, ao = ({
|
|
1324
1325
|
conversationGroup: e
|
|
1325
1326
|
}) => {
|
|
1326
1327
|
const r = ne(
|
|
1327
1328
|
(u) => u.selectedConversationId
|
|
1328
|
-
), i = ce(), n = Se(null), t = fe(() =>
|
|
1329
|
-
i(
|
|
1329
|
+
), i = ce(), n = Se(null), t = fe(() => Rr(e.meta), [e.meta]), o = () => {
|
|
1330
|
+
i(Tt(e.conversation_group_id));
|
|
1330
1331
|
}, s = fe(() => {
|
|
1331
1332
|
if (!t)
|
|
1332
1333
|
return;
|
|
@@ -1350,20 +1351,20 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1350
1351
|
behavior: "smooth",
|
|
1351
1352
|
block: "center"
|
|
1352
1353
|
}));
|
|
1353
|
-
}, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null :
|
|
1354
|
-
/* @__PURE__ */
|
|
1354
|
+
}, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null : yt(
|
|
1355
|
+
/* @__PURE__ */ h.jsx(
|
|
1355
1356
|
"div",
|
|
1356
1357
|
{
|
|
1357
1358
|
ref: n,
|
|
1358
1359
|
className: `altimate-highlighter ${r === e.conversation_group_id ? "active" : ""}`,
|
|
1359
1360
|
style: { top: s.top, height: s.bottom - s.top },
|
|
1360
1361
|
onClick: o,
|
|
1361
|
-
children: /* @__PURE__ */
|
|
1362
|
+
children: /* @__PURE__ */ h.jsx(nr, {})
|
|
1362
1363
|
}
|
|
1363
1364
|
),
|
|
1364
1365
|
t.parentElement
|
|
1365
1366
|
);
|
|
1366
|
-
},
|
|
1367
|
+
}, uo = () => {
|
|
1367
1368
|
const e = ne(
|
|
1368
1369
|
(t) => Object.values(t.conversations || {})
|
|
1369
1370
|
), r = ne(
|
|
@@ -1373,46 +1374,46 @@ const eo = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1373
1374
|
), n = e == null ? void 0 : e.filter(
|
|
1374
1375
|
(t) => t.meta.resource_type === i.resourceType && t.meta.uniqueId === i.name
|
|
1375
1376
|
);
|
|
1376
|
-
return !(n != null && n.length) || !r ? null : /* @__PURE__ */
|
|
1377
|
-
|
|
1377
|
+
return !(n != null && n.length) || !r ? null : /* @__PURE__ */ h.jsx(h.Fragment, { children: n.map((t) => /* @__PURE__ */ h.jsx(
|
|
1378
|
+
ao,
|
|
1378
1379
|
{
|
|
1379
1380
|
conversationGroup: t
|
|
1380
1381
|
},
|
|
1381
1382
|
t.conversation_group_id
|
|
1382
1383
|
)) });
|
|
1383
|
-
},
|
|
1384
|
-
dbtDocs:
|
|
1385
|
-
hotspotButton:
|
|
1386
|
-
pulse:
|
|
1387
|
-
conversationRightPanelCloseButton:
|
|
1388
|
-
conversationRightPanel:
|
|
1389
|
-
newConversationForm:
|
|
1390
|
-
highlightText:
|
|
1391
|
-
conversationInputForm:
|
|
1392
|
-
conversationGroup:
|
|
1393
|
-
replyForm:
|
|
1394
|
-
resolveButton:
|
|
1395
|
-
},
|
|
1396
|
-
profileImage:
|
|
1397
|
-
},
|
|
1384
|
+
}, lo = "_dbtDocs_14zop_9", co = "_hotspotButton_14zop_46", fo = "_pulse_14zop_1", po = "_conversationRightPanelCloseButton_14zop_62", go = "_conversationRightPanel_14zop_62", ho = "_newConversationForm_14zop_94", vo = "_highlightText_14zop_108", mo = "_conversationInputForm_14zop_130", Eo = "_conversationGroup_14zop_156", yo = "_replyForm_14zop_189", bo = "_resolveButton_14zop_237", me = {
|
|
1385
|
+
dbtDocs: lo,
|
|
1386
|
+
hotspotButton: co,
|
|
1387
|
+
pulse: fo,
|
|
1388
|
+
conversationRightPanelCloseButton: po,
|
|
1389
|
+
conversationRightPanel: go,
|
|
1390
|
+
newConversationForm: ho,
|
|
1391
|
+
highlightText: vo,
|
|
1392
|
+
conversationInputForm: mo,
|
|
1393
|
+
conversationGroup: Eo,
|
|
1394
|
+
replyForm: yo,
|
|
1395
|
+
resolveButton: bo
|
|
1396
|
+
}, Co = "_profileImage_11vaf_1", So = {
|
|
1397
|
+
profileImage: Co
|
|
1398
|
+
}, Sn = ({ user: e }) => {
|
|
1398
1399
|
var r;
|
|
1399
|
-
return /* @__PURE__ */
|
|
1400
|
+
return /* @__PURE__ */ h.jsx("div", { className: So.profileImage, children: ((r = e == null ? void 0 : e.first_name) == null ? void 0 : r[0]) || "" });
|
|
1400
1401
|
};
|
|
1401
|
-
function
|
|
1402
|
+
function _o(e) {
|
|
1402
1403
|
if (Array.isArray(e)) {
|
|
1403
1404
|
for (var r = 0, i = new Array(e.length); r < e.length; r++)
|
|
1404
1405
|
i[r] = e[r];
|
|
1405
1406
|
return i;
|
|
1406
1407
|
}
|
|
1407
1408
|
}
|
|
1408
|
-
function
|
|
1409
|
+
function Ao(e) {
|
|
1409
1410
|
if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
|
|
1410
1411
|
}
|
|
1411
|
-
function
|
|
1412
|
+
function To() {
|
|
1412
1413
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1413
1414
|
}
|
|
1414
|
-
function
|
|
1415
|
-
return
|
|
1415
|
+
function Ge(e) {
|
|
1416
|
+
return _o(e) || Ao(e) || To();
|
|
1416
1417
|
}
|
|
1417
1418
|
function ue() {
|
|
1418
1419
|
return ue = Object.assign || function(e) {
|
|
@@ -1424,30 +1425,30 @@ function ue() {
|
|
|
1424
1425
|
return e;
|
|
1425
1426
|
}, ue.apply(this, arguments);
|
|
1426
1427
|
}
|
|
1427
|
-
function
|
|
1428
|
+
function Io(e, r) {
|
|
1428
1429
|
if (!(e instanceof r))
|
|
1429
1430
|
throw new TypeError("Cannot call a class as a function");
|
|
1430
1431
|
}
|
|
1431
|
-
function
|
|
1432
|
+
function xo(e, r) {
|
|
1432
1433
|
for (var i = 0; i < r.length; i++) {
|
|
1433
1434
|
var n = r[i];
|
|
1434
1435
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
1435
1436
|
}
|
|
1436
1437
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return r &&
|
|
1438
|
+
function Oo(e, r, i) {
|
|
1439
|
+
return r && xo(e.prototype, r), e;
|
|
1439
1440
|
}
|
|
1440
1441
|
function k(e) {
|
|
1441
1442
|
if (e === void 0)
|
|
1442
1443
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1443
1444
|
return e;
|
|
1444
1445
|
}
|
|
1445
|
-
function
|
|
1446
|
-
return
|
|
1446
|
+
function ft(e, r) {
|
|
1447
|
+
return ft = Object.setPrototypeOf || function(n, t) {
|
|
1447
1448
|
return n.__proto__ = t, n;
|
|
1448
|
-
},
|
|
1449
|
+
}, ft(e, r);
|
|
1449
1450
|
}
|
|
1450
|
-
function
|
|
1451
|
+
function Do(e, r) {
|
|
1451
1452
|
if (typeof r != "function" && r !== null)
|
|
1452
1453
|
throw new TypeError("Super expression must either be null or a function");
|
|
1453
1454
|
e.prototype = Object.create(r && r.prototype, {
|
|
@@ -1456,7 +1457,7 @@ function jo(e, r) {
|
|
|
1456
1457
|
writable: !0,
|
|
1457
1458
|
configurable: !0
|
|
1458
1459
|
}
|
|
1459
|
-
}), r &&
|
|
1460
|
+
}), r && ft(e, r);
|
|
1460
1461
|
}
|
|
1461
1462
|
function Oe(e) {
|
|
1462
1463
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(i) {
|
|
@@ -1465,20 +1466,20 @@ function Oe(e) {
|
|
|
1465
1466
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
1466
1467
|
}, Oe(e);
|
|
1467
1468
|
}
|
|
1468
|
-
function
|
|
1469
|
-
return typeof Symbol == "function" && Oe(Symbol.iterator) === "symbol" ?
|
|
1469
|
+
function We(e) {
|
|
1470
|
+
return typeof Symbol == "function" && Oe(Symbol.iterator) === "symbol" ? We = function(i) {
|
|
1470
1471
|
return Oe(i);
|
|
1471
|
-
} :
|
|
1472
|
+
} : We = function(i) {
|
|
1472
1473
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : Oe(i);
|
|
1473
|
-
},
|
|
1474
|
+
}, We(e);
|
|
1474
1475
|
}
|
|
1475
|
-
function
|
|
1476
|
-
return r && (
|
|
1476
|
+
function Ro(e, r) {
|
|
1477
|
+
return r && (We(r) === "object" || typeof r == "function") ? r : k(e);
|
|
1477
1478
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1479
|
+
function Qe(e) {
|
|
1480
|
+
return Qe = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
|
|
1480
1481
|
return i.__proto__ || Object.getPrototypeOf(i);
|
|
1481
|
-
},
|
|
1482
|
+
}, Qe(e);
|
|
1482
1483
|
}
|
|
1483
1484
|
function H(e, r, i) {
|
|
1484
1485
|
return r in e ? Object.defineProperty(e, r, {
|
|
@@ -1488,7 +1489,7 @@ function H(e, r, i) {
|
|
|
1488
1489
|
writable: !0
|
|
1489
1490
|
}) : e[r] = i, e;
|
|
1490
1491
|
}
|
|
1491
|
-
var
|
|
1492
|
+
var wo = function(e, r, i, n, t, o, s, u) {
|
|
1492
1493
|
if (process.env.NODE_ENV !== "production" && r === void 0)
|
|
1493
1494
|
throw new Error("invariant requires an error message argument");
|
|
1494
1495
|
if (!e) {
|
|
@@ -1507,12 +1508,12 @@ var Fo = function(e, r, i, n, t, o, s, u) {
|
|
|
1507
1508
|
}
|
|
1508
1509
|
throw l.framesToPop = 1, l;
|
|
1509
1510
|
}
|
|
1510
|
-
},
|
|
1511
|
-
const Re = /* @__PURE__ */
|
|
1512
|
-
function
|
|
1511
|
+
}, No = wo;
|
|
1512
|
+
const Re = /* @__PURE__ */ Et(No);
|
|
1513
|
+
function jo(e) {
|
|
1513
1514
|
if (Array.isArray(e)) return e;
|
|
1514
1515
|
}
|
|
1515
|
-
function
|
|
1516
|
+
function Po(e, r) {
|
|
1516
1517
|
var i = [], n = !0, t = !1, o = void 0;
|
|
1517
1518
|
try {
|
|
1518
1519
|
for (var s = e[Symbol.iterator](), u; !(n = (u = s.next()).done) && (i.push(u.value), !(r && i.length === r)); n = !0)
|
|
@@ -1528,22 +1529,22 @@ function Bo(e, r) {
|
|
|
1528
1529
|
}
|
|
1529
1530
|
return i;
|
|
1530
1531
|
}
|
|
1531
|
-
function
|
|
1532
|
+
function Fo() {
|
|
1532
1533
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
1533
1534
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1535
|
+
function Je(e, r) {
|
|
1536
|
+
return jo(e) || Po(e, r) || Fo();
|
|
1536
1537
|
}
|
|
1537
|
-
function
|
|
1538
|
+
function Mo(e, r) {
|
|
1538
1539
|
if (e == null) return {};
|
|
1539
1540
|
var i = {}, n = Object.keys(e), t, o;
|
|
1540
1541
|
for (o = 0; o < n.length; o++)
|
|
1541
1542
|
t = n[o], !(r.indexOf(t) >= 0) && (i[t] = e[t]);
|
|
1542
1543
|
return i;
|
|
1543
1544
|
}
|
|
1544
|
-
function
|
|
1545
|
+
function Lo(e, r) {
|
|
1545
1546
|
if (e == null) return {};
|
|
1546
|
-
var i =
|
|
1547
|
+
var i = Mo(e, r), n, t;
|
|
1547
1548
|
if (Object.getOwnPropertySymbols) {
|
|
1548
1549
|
var o = Object.getOwnPropertySymbols(e);
|
|
1549
1550
|
for (t = 0; t < o.length; t++)
|
|
@@ -1559,7 +1560,7 @@ function Me(e) {
|
|
|
1559
1560
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
1560
1561
|
}, Me(e);
|
|
1561
1562
|
}
|
|
1562
|
-
function
|
|
1563
|
+
function Bo(e, r) {
|
|
1563
1564
|
if (Me(e) != "object" || !e) return e;
|
|
1564
1565
|
var i = e[Symbol.toPrimitive];
|
|
1565
1566
|
if (i !== void 0) {
|
|
@@ -1569,79 +1570,79 @@ function Uo(e, r) {
|
|
|
1569
1570
|
}
|
|
1570
1571
|
return (r === "string" ? String : Number)(e);
|
|
1571
1572
|
}
|
|
1572
|
-
function
|
|
1573
|
-
var r =
|
|
1573
|
+
function $o(e) {
|
|
1574
|
+
var r = Bo(e, "string");
|
|
1574
1575
|
return Me(r) == "symbol" ? r : r + "";
|
|
1575
1576
|
}
|
|
1576
1577
|
function Le(e, r, i) {
|
|
1577
|
-
return (r =
|
|
1578
|
+
return (r = $o(r)) in e ? Object.defineProperty(e, r, {
|
|
1578
1579
|
value: i,
|
|
1579
1580
|
enumerable: !0,
|
|
1580
1581
|
configurable: !0,
|
|
1581
1582
|
writable: !0
|
|
1582
1583
|
}) : e[r] = i, e;
|
|
1583
1584
|
}
|
|
1584
|
-
function
|
|
1585
|
+
function pt(e, r) {
|
|
1585
1586
|
(r == null || r > e.length) && (r = e.length);
|
|
1586
1587
|
for (var i = 0, n = Array(r); i < r; i++) n[i] = e[i];
|
|
1587
1588
|
return n;
|
|
1588
1589
|
}
|
|
1589
|
-
function
|
|
1590
|
-
if (Array.isArray(e)) return
|
|
1590
|
+
function Ho(e) {
|
|
1591
|
+
if (Array.isArray(e)) return pt(e);
|
|
1591
1592
|
}
|
|
1592
|
-
function
|
|
1593
|
+
function ko(e) {
|
|
1593
1594
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1594
1595
|
}
|
|
1595
|
-
function
|
|
1596
|
+
function Uo(e, r) {
|
|
1596
1597
|
if (e) {
|
|
1597
|
-
if (typeof e == "string") return
|
|
1598
|
+
if (typeof e == "string") return pt(e, r);
|
|
1598
1599
|
var i = {}.toString.call(e).slice(8, -1);
|
|
1599
|
-
return i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set" ? Array.from(e) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ?
|
|
1600
|
+
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;
|
|
1600
1601
|
}
|
|
1601
1602
|
}
|
|
1602
|
-
function
|
|
1603
|
+
function qo() {
|
|
1603
1604
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1604
1605
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1605
1606
|
}
|
|
1606
1607
|
function he(e) {
|
|
1607
|
-
return
|
|
1608
|
+
return Ho(e) || ko(e) || Uo(e) || qo();
|
|
1608
1609
|
}
|
|
1609
1610
|
var Ne = function(r) {
|
|
1610
1611
|
return r === Object(r) ? Object.keys(r) : [];
|
|
1611
|
-
},
|
|
1612
|
+
}, _n = function(r) {
|
|
1612
1613
|
return r === Object(r) ? Object.values(r) : [];
|
|
1613
1614
|
};
|
|
1614
|
-
function
|
|
1615
|
+
function An(e, r) {
|
|
1615
1616
|
var i = Object.assign({}, e);
|
|
1616
|
-
return
|
|
1617
|
-
|
|
1617
|
+
return Ke(e) && Ke(r) && Ne(r).forEach(function(n) {
|
|
1618
|
+
Ke(r[n]) ? n in e ? i[n] = An(e[n], r[n]) : Object.assign(i, Le({}, n, r[n])) : Object.assign(i, Le({}, n, r[n]));
|
|
1618
1619
|
}), i;
|
|
1619
1620
|
}
|
|
1620
|
-
var
|
|
1621
|
+
var gt = function(r) {
|
|
1621
1622
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
|
|
1622
1623
|
n[t - 1] = arguments[t];
|
|
1623
1624
|
return n.reduce(function(o, s) {
|
|
1624
|
-
return
|
|
1625
|
+
return An(o, s);
|
|
1625
1626
|
}, r);
|
|
1626
|
-
},
|
|
1627
|
+
}, zo = function(r, i) {
|
|
1627
1628
|
var n = Object.assign({}, r);
|
|
1628
1629
|
if (i)
|
|
1629
1630
|
for (var t = 0; t < i.length; t++)
|
|
1630
1631
|
delete n[i[t]];
|
|
1631
1632
|
return n;
|
|
1632
|
-
},
|
|
1633
|
+
}, Ke = function(r) {
|
|
1633
1634
|
return r === Object(r) && !(r instanceof Date) && !Array.isArray(r);
|
|
1634
|
-
},
|
|
1635
|
+
}, Vo = function(r) {
|
|
1635
1636
|
return (r || []).filter(Boolean);
|
|
1636
|
-
},
|
|
1637
|
+
}, Dt = function(r) {
|
|
1637
1638
|
return r[0] === "&";
|
|
1638
|
-
},
|
|
1639
|
-
return !
|
|
1640
|
-
},
|
|
1639
|
+
}, Yo = function(r) {
|
|
1640
|
+
return !Dt(r);
|
|
1641
|
+
}, kt = function(r) {
|
|
1641
1642
|
return r.replace(/-(\w)/g, function(i, n) {
|
|
1642
1643
|
return n.toUpperCase();
|
|
1643
1644
|
});
|
|
1644
|
-
},
|
|
1645
|
+
}, Wo = function(r) {
|
|
1645
1646
|
for (var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = Ne(r), t = {}, o = 0, s = n.length; o < s; o += 1) {
|
|
1646
1647
|
var u = n[o], l = Object.prototype.toString.call(r[u]) !== "[object Object]" || // style defs
|
|
1647
1648
|
u[0] === ":" || // pseudo selectors
|
|
@@ -1650,20 +1651,20 @@ var ft = function(r) {
|
|
|
1650
1651
|
l && (t[u] = r[u]);
|
|
1651
1652
|
}
|
|
1652
1653
|
return t;
|
|
1653
|
-
},
|
|
1654
|
-
for (var n = i.map(
|
|
1654
|
+
}, Tn = function(r, i) {
|
|
1655
|
+
for (var n = i.map(kt), t = Ne(r), o = {}, s = 0, u = t.length; s < u; s += 1) {
|
|
1655
1656
|
var l = t[s];
|
|
1656
|
-
(i.indexOf(l) >= 0 || n.indexOf(
|
|
1657
|
+
(i.indexOf(l) >= 0 || n.indexOf(kt(l)) >= 0) && (o[l] = r[l]);
|
|
1657
1658
|
}
|
|
1658
1659
|
return o;
|
|
1659
|
-
},
|
|
1660
|
-
for (var n =
|
|
1660
|
+
}, Ko = function e(r, i) {
|
|
1661
|
+
for (var n = gt.apply(void 0, [{}, zo(r, i)].concat(he(_n(Tn(r, i))))), t = Ne(n).filter(Dt), o = 0, s = t.length; o < s; o += 1) {
|
|
1661
1662
|
var u = t[o], l = e(n[u], i);
|
|
1662
|
-
i.indexOf(u) >= 0 ? (delete n[u], n =
|
|
1663
|
+
i.indexOf(u) >= 0 ? (delete n[u], n = gt({}, n, l)) : n[u] = l;
|
|
1663
1664
|
}
|
|
1664
1665
|
return n;
|
|
1665
1666
|
};
|
|
1666
|
-
function
|
|
1667
|
+
function Ut(e, r) {
|
|
1667
1668
|
var i = Object.keys(e);
|
|
1668
1669
|
if (Object.getOwnPropertySymbols) {
|
|
1669
1670
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -1673,27 +1674,27 @@ function kt(e, r) {
|
|
|
1673
1674
|
}
|
|
1674
1675
|
return i;
|
|
1675
1676
|
}
|
|
1676
|
-
function
|
|
1677
|
+
function qt(e) {
|
|
1677
1678
|
for (var r = 1; r < arguments.length; r++) {
|
|
1678
1679
|
var i = arguments[r] != null ? arguments[r] : {};
|
|
1679
|
-
r % 2 ?
|
|
1680
|
+
r % 2 ? Ut(Object(i), !0).forEach(function(n) {
|
|
1680
1681
|
Le(e, n, i[n]);
|
|
1681
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
|
1682
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Ut(Object(i)).forEach(function(n) {
|
|
1682
1683
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1683
1684
|
});
|
|
1684
1685
|
}
|
|
1685
1686
|
return e;
|
|
1686
1687
|
}
|
|
1687
|
-
var
|
|
1688
|
+
var Xo = ["animationName"], In = function(r) {
|
|
1688
1689
|
var i = r.style, n = r.className;
|
|
1689
|
-
return
|
|
1690
|
-
style:
|
|
1690
|
+
return qt(qt({}, i ? {
|
|
1691
|
+
style: Wo(i, Xo)
|
|
1691
1692
|
} : {}), n ? {
|
|
1692
1693
|
className: n
|
|
1693
1694
|
} : {});
|
|
1694
|
-
},
|
|
1695
|
-
|
|
1696
|
-
var
|
|
1695
|
+
}, xn = /* @__PURE__ */ _e(In);
|
|
1696
|
+
xn.Provider;
|
|
1697
|
+
var On = function(r) {
|
|
1697
1698
|
if (r) {
|
|
1698
1699
|
if (typeof r == "string")
|
|
1699
1700
|
return [r];
|
|
@@ -1705,17 +1706,17 @@ var wn = function(r) {
|
|
|
1705
1706
|
}
|
|
1706
1707
|
} else return [];
|
|
1707
1708
|
return r;
|
|
1708
|
-
},
|
|
1709
|
+
}, Zo = {}, Go = function(r) {
|
|
1709
1710
|
return function(i, n) {
|
|
1710
|
-
var t = n ||
|
|
1711
|
+
var t = n || Zo;
|
|
1711
1712
|
r.memoize = r.memoize || /* @__PURE__ */ new WeakMap();
|
|
1712
1713
|
var o;
|
|
1713
1714
|
r.memoize.has(t) ? o = r.memoize.get(t) : (o = {}, r.memoize.set(t, o));
|
|
1714
|
-
var s =
|
|
1715
|
+
var s = On(i).join(" ");
|
|
1715
1716
|
return s in o ? o[s] : o[s] = r(i || [], n);
|
|
1716
1717
|
};
|
|
1717
1718
|
};
|
|
1718
|
-
function
|
|
1719
|
+
function zt(e, r) {
|
|
1719
1720
|
var i = Object.keys(e);
|
|
1720
1721
|
if (Object.getOwnPropertySymbols) {
|
|
1721
1722
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -1728,18 +1729,18 @@ function qt(e, r) {
|
|
|
1728
1729
|
function Ae(e) {
|
|
1729
1730
|
for (var r = 1; r < arguments.length; r++) {
|
|
1730
1731
|
var i = arguments[r] != null ? arguments[r] : {};
|
|
1731
|
-
r % 2 ?
|
|
1732
|
+
r % 2 ? zt(Object(i), !0).forEach(function(n) {
|
|
1732
1733
|
Le(e, n, i[n]);
|
|
1733
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
|
1734
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : zt(Object(i)).forEach(function(n) {
|
|
1734
1735
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1735
1736
|
});
|
|
1736
1737
|
}
|
|
1737
1738
|
return e;
|
|
1738
1739
|
}
|
|
1739
|
-
var
|
|
1740
|
+
var Qo = function(r) {
|
|
1740
1741
|
var i = r && Ne(r)[0];
|
|
1741
1742
|
return i && i.split("__")[0].split("--")[0];
|
|
1742
|
-
},
|
|
1743
|
+
}, Jo = function(r, i, n) {
|
|
1743
1744
|
if (r) {
|
|
1744
1745
|
var t = r.split(" ")[0], o = [].concat(he(i.length === 0 ? n.map(function(s) {
|
|
1745
1746
|
return "".concat(t, "--").concat(s.substring(1));
|
|
@@ -1749,20 +1750,20 @@ var ni = function(r) {
|
|
|
1749
1750
|
return i.length === 0 ? [r].concat(he(o)) : o;
|
|
1750
1751
|
}
|
|
1751
1752
|
};
|
|
1752
|
-
function
|
|
1753
|
-
var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1754
|
-
var g =
|
|
1755
|
-
Re(Array.isArray(g), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), Re(!f ||
|
|
1756
|
-
var p = g.filter(
|
|
1757
|
-
return
|
|
1753
|
+
function Dn(e) {
|
|
1754
|
+
var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : In, o = i || Qo(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r : Go(function(c, f) {
|
|
1755
|
+
var g = On(c);
|
|
1756
|
+
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 || Ke(f), "Optional second parameter must be a plain object.");
|
|
1757
|
+
var p = g.filter(Dt), m = g.filter(Yo), v = m.length > 0 ? function(S) {
|
|
1758
|
+
return _n(Tn(S, m));
|
|
1758
1759
|
} : function(S) {
|
|
1759
1760
|
return [S];
|
|
1760
1761
|
}, E = function() {
|
|
1761
1762
|
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1762
|
-
return
|
|
1763
|
-
}, C =
|
|
1764
|
-
return
|
|
1765
|
-
style:
|
|
1763
|
+
return v(Ko(I, p));
|
|
1764
|
+
}, C = Jo(o, m, p);
|
|
1765
|
+
return Dn(Ae(Ae(Ae({}, (r || f) && {
|
|
1766
|
+
style: gt.apply(void 0, [{}].concat(he(E(f)), he(E(r))))
|
|
1766
1767
|
}), C && {
|
|
1767
1768
|
className: C.join(" ")
|
|
1768
1769
|
}), n && {
|
|
@@ -1770,14 +1771,14 @@ function Nn(e) {
|
|
|
1770
1771
|
}), t);
|
|
1771
1772
|
}), u = Ae({}, typeof r == "function" ? r : {
|
|
1772
1773
|
style: r
|
|
1773
|
-
}), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ?
|
|
1774
|
+
}), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ? Vo(l.map(function(c) {
|
|
1774
1775
|
return n[c];
|
|
1775
1776
|
})) : l, a = t(Ae(Ae({}, u), d.length > 0 ? {
|
|
1776
1777
|
className: d.join(" ")
|
|
1777
1778
|
} : {}));
|
|
1778
1779
|
return Object.assign(s, a), s;
|
|
1779
1780
|
}
|
|
1780
|
-
function
|
|
1781
|
+
function Vt(e, r) {
|
|
1781
1782
|
var i = Object.keys(e);
|
|
1782
1783
|
if (Object.getOwnPropertySymbols) {
|
|
1783
1784
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -1790,15 +1791,15 @@ function zt(e, r) {
|
|
|
1790
1791
|
function je(e) {
|
|
1791
1792
|
for (var r = 1; r < arguments.length; r++) {
|
|
1792
1793
|
var i = arguments[r] != null ? arguments[r] : {};
|
|
1793
|
-
r % 2 ?
|
|
1794
|
+
r % 2 ? Vt(Object(i), !0).forEach(function(n) {
|
|
1794
1795
|
Le(e, n, i[n]);
|
|
1795
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
|
1796
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Vt(Object(i)).forEach(function(n) {
|
|
1796
1797
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1797
1798
|
});
|
|
1798
1799
|
}
|
|
1799
1800
|
return e;
|
|
1800
1801
|
}
|
|
1801
|
-
var
|
|
1802
|
+
var ei = function() {
|
|
1802
1803
|
for (var r = arguments.length, i = new Array(r), n = 0; n < r; n++)
|
|
1803
1804
|
i[n] = arguments[n];
|
|
1804
1805
|
return i.reduce(function(t, o) {
|
|
@@ -1806,16 +1807,16 @@ var oi = function() {
|
|
|
1806
1807
|
style: je(je({}, t.style), typeof o == "function" ? o.style : o)
|
|
1807
1808
|
});
|
|
1808
1809
|
}, {});
|
|
1809
|
-
},
|
|
1810
|
-
var t = i.style, o = i.className, s = i.classNames, u = be(
|
|
1811
|
-
return
|
|
1810
|
+
}, Rt = function(r, i, n) {
|
|
1811
|
+
var t = i.style, o = i.className, s = i.classNames, u = be(xn), l = fe(function() {
|
|
1812
|
+
return Dn({
|
|
1812
1813
|
style: t,
|
|
1813
1814
|
className: o,
|
|
1814
1815
|
classNames: s
|
|
1815
1816
|
}, u);
|
|
1816
1817
|
}, [t, o, s, u]);
|
|
1817
1818
|
return l(n, r);
|
|
1818
|
-
},
|
|
1819
|
+
}, ht = { exports: {} }, ze = { exports: {} }, Q = {};
|
|
1819
1820
|
/** @license React v16.13.1
|
|
1820
1821
|
* react-is.production.min.js
|
|
1821
1822
|
*
|
|
@@ -1824,11 +1825,11 @@ var oi = function() {
|
|
|
1824
1825
|
* This source code is licensed under the MIT license found in the
|
|
1825
1826
|
* LICENSE file in the root directory of this source tree.
|
|
1826
1827
|
*/
|
|
1827
|
-
var
|
|
1828
|
-
function
|
|
1829
|
-
if (
|
|
1830
|
-
|
|
1831
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121,
|
|
1828
|
+
var Yt;
|
|
1829
|
+
function ti() {
|
|
1830
|
+
if (Yt) return Q;
|
|
1831
|
+
Yt = 1;
|
|
1832
|
+
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, v = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
1832
1833
|
function S(y) {
|
|
1833
1834
|
if (typeof y == "object" && y !== null) {
|
|
1834
1835
|
var A = y.$$typeof;
|
|
@@ -1887,7 +1888,7 @@ function ii() {
|
|
|
1887
1888
|
}, Q.isSuspense = function(y) {
|
|
1888
1889
|
return S(y) === c;
|
|
1889
1890
|
}, Q.isValidElementType = function(y) {
|
|
1890
|
-
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 ===
|
|
1891
|
+
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 === v || y.$$typeof === E || y.$$typeof === C || y.$$typeof === m);
|
|
1891
1892
|
}, Q.typeOf = S, Q;
|
|
1892
1893
|
}
|
|
1893
1894
|
var J = {};
|
|
@@ -1899,37 +1900,37 @@ var J = {};
|
|
|
1899
1900
|
* This source code is licensed under the MIT license found in the
|
|
1900
1901
|
* LICENSE file in the root directory of this source tree.
|
|
1901
1902
|
*/
|
|
1902
|
-
var
|
|
1903
|
-
function
|
|
1904
|
-
return
|
|
1905
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121,
|
|
1903
|
+
var Wt;
|
|
1904
|
+
function ni() {
|
|
1905
|
+
return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1906
|
+
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, v = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
1906
1907
|
function S(R) {
|
|
1907
1908
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1908
|
-
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 ===
|
|
1909
|
+
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 === v || R.$$typeof === E || R.$$typeof === C || R.$$typeof === m);
|
|
1909
1910
|
}
|
|
1910
1911
|
function I(R) {
|
|
1911
1912
|
if (typeof R == "object" && R !== null) {
|
|
1912
1913
|
var pe = R.$$typeof;
|
|
1913
1914
|
switch (pe) {
|
|
1914
1915
|
case r:
|
|
1915
|
-
var
|
|
1916
|
-
switch (
|
|
1916
|
+
var Ue = R.type;
|
|
1917
|
+
switch (Ue) {
|
|
1917
1918
|
case l:
|
|
1918
1919
|
case d:
|
|
1919
1920
|
case n:
|
|
1920
1921
|
case o:
|
|
1921
1922
|
case t:
|
|
1922
1923
|
case c:
|
|
1923
|
-
return
|
|
1924
|
+
return Ue;
|
|
1924
1925
|
default:
|
|
1925
|
-
var
|
|
1926
|
-
switch (
|
|
1926
|
+
var Pt = Ue && Ue.$$typeof;
|
|
1927
|
+
switch (Pt) {
|
|
1927
1928
|
case u:
|
|
1928
1929
|
case a:
|
|
1929
1930
|
case p:
|
|
1930
1931
|
case g:
|
|
1931
1932
|
case s:
|
|
1932
|
-
return
|
|
1933
|
+
return Pt;
|
|
1933
1934
|
default:
|
|
1934
1935
|
return pe;
|
|
1935
1936
|
}
|
|
@@ -1940,7 +1941,7 @@ function si() {
|
|
|
1940
1941
|
}
|
|
1941
1942
|
}
|
|
1942
1943
|
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;
|
|
1943
|
-
function
|
|
1944
|
+
function Z(R) {
|
|
1944
1945
|
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;
|
|
1945
1946
|
}
|
|
1946
1947
|
function _(R) {
|
|
@@ -1967,33 +1968,33 @@ function si() {
|
|
|
1967
1968
|
function z(R) {
|
|
1968
1969
|
return I(R) === g;
|
|
1969
1970
|
}
|
|
1970
|
-
function
|
|
1971
|
+
function K(R) {
|
|
1971
1972
|
return I(R) === i;
|
|
1972
1973
|
}
|
|
1973
1974
|
function ee(R) {
|
|
1974
1975
|
return I(R) === o;
|
|
1975
1976
|
}
|
|
1976
|
-
function
|
|
1977
|
+
function X(R) {
|
|
1977
1978
|
return I(R) === t;
|
|
1978
1979
|
}
|
|
1979
|
-
function
|
|
1980
|
+
function se(R) {
|
|
1980
1981
|
return I(R) === c;
|
|
1981
1982
|
}
|
|
1982
|
-
J.AsyncMode = y, J.ConcurrentMode = A, J.ContextConsumer = D, J.ContextProvider = b, J.Element = w, J.ForwardRef = T, J.Fragment = P, J.Lazy = q, J.Memo = Y, J.Portal = F, J.Profiler = V, J.StrictMode = N, J.Suspense = j, J.isAsyncMode =
|
|
1983
|
+
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 = Z, 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 = se, J.isValidElementType = S, J.typeOf = I;
|
|
1983
1984
|
}()), J;
|
|
1984
1985
|
}
|
|
1985
|
-
var
|
|
1986
|
-
function
|
|
1987
|
-
return
|
|
1986
|
+
var Kt;
|
|
1987
|
+
function Rn() {
|
|
1988
|
+
return Kt || (Kt = 1, process.env.NODE_ENV === "production" ? ze.exports = ti() : ze.exports = ni()), ze.exports;
|
|
1988
1989
|
}
|
|
1989
1990
|
/*
|
|
1990
1991
|
object-assign
|
|
1991
1992
|
(c) Sindre Sorhus
|
|
1992
1993
|
@license MIT
|
|
1993
1994
|
*/
|
|
1994
|
-
var
|
|
1995
|
-
function
|
|
1996
|
-
if (Xt) return
|
|
1995
|
+
var ot, Xt;
|
|
1996
|
+
function ri() {
|
|
1997
|
+
if (Xt) return ot;
|
|
1997
1998
|
Xt = 1;
|
|
1998
1999
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
1999
2000
|
function n(o) {
|
|
@@ -2023,7 +2024,7 @@ function ai() {
|
|
|
2023
2024
|
return !1;
|
|
2024
2025
|
}
|
|
2025
2026
|
}
|
|
2026
|
-
return
|
|
2027
|
+
return ot = t() ? Object.assign : function(o, s) {
|
|
2027
2028
|
for (var u, l = n(o), d, a = 1; a < arguments.length; a++) {
|
|
2028
2029
|
u = Object(arguments[a]);
|
|
2029
2030
|
for (var c in u)
|
|
@@ -2035,27 +2036,27 @@ function ai() {
|
|
|
2035
2036
|
}
|
|
2036
2037
|
}
|
|
2037
2038
|
return l;
|
|
2038
|
-
},
|
|
2039
|
-
}
|
|
2040
|
-
var rt, Kt;
|
|
2041
|
-
function Rt() {
|
|
2042
|
-
if (Kt) return rt;
|
|
2043
|
-
Kt = 1;
|
|
2044
|
-
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2045
|
-
return rt = e, rt;
|
|
2046
|
-
}
|
|
2047
|
-
var ot, Gt;
|
|
2048
|
-
function Pn() {
|
|
2049
|
-
return Gt || (Gt = 1, ot = Function.call.bind(Object.prototype.hasOwnProperty)), ot;
|
|
2039
|
+
}, ot;
|
|
2050
2040
|
}
|
|
2051
2041
|
var it, Zt;
|
|
2052
|
-
function
|
|
2042
|
+
function wt() {
|
|
2053
2043
|
if (Zt) return it;
|
|
2054
2044
|
Zt = 1;
|
|
2045
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2046
|
+
return it = e, it;
|
|
2047
|
+
}
|
|
2048
|
+
var st, Gt;
|
|
2049
|
+
function wn() {
|
|
2050
|
+
return Gt || (Gt = 1, st = Function.call.bind(Object.prototype.hasOwnProperty)), st;
|
|
2051
|
+
}
|
|
2052
|
+
var at, Qt;
|
|
2053
|
+
function oi() {
|
|
2054
|
+
if (Qt) return at;
|
|
2055
|
+
Qt = 1;
|
|
2055
2056
|
var e = function() {
|
|
2056
2057
|
};
|
|
2057
2058
|
if (process.env.NODE_ENV !== "production") {
|
|
2058
|
-
var r =
|
|
2059
|
+
var r = wt(), i = {}, n = wn();
|
|
2059
2060
|
e = function(o) {
|
|
2060
2061
|
var s = "Warning: " + o;
|
|
2061
2062
|
typeof console < "u" && console.error(s);
|
|
@@ -2095,13 +2096,13 @@ function ui() {
|
|
|
2095
2096
|
}
|
|
2096
2097
|
return t.resetWarningCache = function() {
|
|
2097
2098
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
2098
|
-
},
|
|
2099
|
+
}, at = t, at;
|
|
2099
2100
|
}
|
|
2100
|
-
var
|
|
2101
|
-
function
|
|
2102
|
-
if (
|
|
2103
|
-
|
|
2104
|
-
var e =
|
|
2101
|
+
var ut, Jt;
|
|
2102
|
+
function ii() {
|
|
2103
|
+
if (Jt) return ut;
|
|
2104
|
+
Jt = 1;
|
|
2105
|
+
var e = Rn(), r = ri(), i = wt(), n = wn(), t = oi(), o = function() {
|
|
2105
2106
|
};
|
|
2106
2107
|
process.env.NODE_ENV !== "production" && (o = function(u) {
|
|
2107
2108
|
var l = "Warning: " + u;
|
|
@@ -2114,7 +2115,7 @@ function li() {
|
|
|
2114
2115
|
function s() {
|
|
2115
2116
|
return null;
|
|
2116
2117
|
}
|
|
2117
|
-
return
|
|
2118
|
+
return ut = function(u, l) {
|
|
2118
2119
|
var d = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator";
|
|
2119
2120
|
function c(_) {
|
|
2120
2121
|
var x = _ && (d && _[d] || _[a]);
|
|
@@ -2149,45 +2150,45 @@ function li() {
|
|
|
2149
2150
|
this.message = _, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
2150
2151
|
}
|
|
2151
2152
|
m.prototype = Error.prototype;
|
|
2152
|
-
function
|
|
2153
|
+
function v(_) {
|
|
2153
2154
|
if (process.env.NODE_ENV !== "production")
|
|
2154
2155
|
var x = {}, L = 0;
|
|
2155
|
-
function B(W, U, z,
|
|
2156
|
-
if (
|
|
2156
|
+
function B(W, U, z, K, ee, X, se) {
|
|
2157
|
+
if (K = K || f, X = X || z, se !== i) {
|
|
2157
2158
|
if (l) {
|
|
2158
2159
|
var R = new Error(
|
|
2159
2160
|
"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"
|
|
2160
2161
|
);
|
|
2161
2162
|
throw R.name = "Invariant Violation", R;
|
|
2162
2163
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2163
|
-
var pe =
|
|
2164
|
+
var pe = K + ":" + z;
|
|
2164
2165
|
!x[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2165
2166
|
L < 3 && (o(
|
|
2166
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
2167
|
+
"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."
|
|
2167
2168
|
), x[pe] = !0, L++);
|
|
2168
2169
|
}
|
|
2169
2170
|
}
|
|
2170
|
-
return U[z] == null ? W ? U[z] === null ? new m("The " + ee + " `" +
|
|
2171
|
+
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);
|
|
2171
2172
|
}
|
|
2172
2173
|
var M = B.bind(null, !1);
|
|
2173
2174
|
return M.isRequired = B.bind(null, !0), M;
|
|
2174
2175
|
}
|
|
2175
2176
|
function E(_) {
|
|
2176
2177
|
function x(L, B, M, W, U, z) {
|
|
2177
|
-
var
|
|
2178
|
+
var K = L[B], ee = N(K);
|
|
2178
2179
|
if (ee !== _) {
|
|
2179
|
-
var
|
|
2180
|
+
var X = j(K);
|
|
2180
2181
|
return new m(
|
|
2181
|
-
"Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2182
|
+
"Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected ") + ("`" + _ + "`."),
|
|
2182
2183
|
{ expectedType: _ }
|
|
2183
2184
|
);
|
|
2184
2185
|
}
|
|
2185
2186
|
return null;
|
|
2186
2187
|
}
|
|
2187
|
-
return
|
|
2188
|
+
return v(x);
|
|
2188
2189
|
}
|
|
2189
2190
|
function C() {
|
|
2190
|
-
return
|
|
2191
|
+
return v(s);
|
|
2191
2192
|
}
|
|
2192
2193
|
function S(_) {
|
|
2193
2194
|
function x(L, B, M, W, U) {
|
|
@@ -2195,17 +2196,17 @@ function li() {
|
|
|
2195
2196
|
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
|
|
2196
2197
|
var z = L[B];
|
|
2197
2198
|
if (!Array.isArray(z)) {
|
|
2198
|
-
var
|
|
2199
|
-
return new m("Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2199
|
+
var K = N(z);
|
|
2200
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected an array."));
|
|
2200
2201
|
}
|
|
2201
2202
|
for (var ee = 0; ee < z.length; ee++) {
|
|
2202
|
-
var
|
|
2203
|
-
if (
|
|
2204
|
-
return
|
|
2203
|
+
var X = _(z, ee, M, W, U + "[" + ee + "]", i);
|
|
2204
|
+
if (X instanceof Error)
|
|
2205
|
+
return X;
|
|
2205
2206
|
}
|
|
2206
2207
|
return null;
|
|
2207
2208
|
}
|
|
2208
|
-
return
|
|
2209
|
+
return v(x);
|
|
2209
2210
|
}
|
|
2210
2211
|
function I() {
|
|
2211
2212
|
function _(x, L, B, M, W) {
|
|
@@ -2216,7 +2217,7 @@ function li() {
|
|
|
2216
2217
|
}
|
|
2217
2218
|
return null;
|
|
2218
2219
|
}
|
|
2219
|
-
return
|
|
2220
|
+
return v(_);
|
|
2220
2221
|
}
|
|
2221
2222
|
function y() {
|
|
2222
2223
|
function _(x, L, B, M, W) {
|
|
@@ -2227,17 +2228,17 @@ function li() {
|
|
|
2227
2228
|
}
|
|
2228
2229
|
return null;
|
|
2229
2230
|
}
|
|
2230
|
-
return
|
|
2231
|
+
return v(_);
|
|
2231
2232
|
}
|
|
2232
2233
|
function A(_) {
|
|
2233
2234
|
function x(L, B, M, W, U) {
|
|
2234
2235
|
if (!(L[B] instanceof _)) {
|
|
2235
|
-
var z = _.name || f,
|
|
2236
|
-
return new m("Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2236
|
+
var z = _.name || f, K = Z(L[B]);
|
|
2237
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected ") + ("instance of `" + z + "`."));
|
|
2237
2238
|
}
|
|
2238
2239
|
return null;
|
|
2239
2240
|
}
|
|
2240
|
-
return
|
|
2241
|
+
return v(x);
|
|
2241
2242
|
}
|
|
2242
2243
|
function D(_) {
|
|
2243
2244
|
if (!Array.isArray(_))
|
|
@@ -2245,33 +2246,33 @@ function li() {
|
|
|
2245
2246
|
"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])."
|
|
2246
2247
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2247
2248
|
function x(L, B, M, W, U) {
|
|
2248
|
-
for (var z = L[B],
|
|
2249
|
-
if (p(z, _[
|
|
2249
|
+
for (var z = L[B], K = 0; K < _.length; K++)
|
|
2250
|
+
if (p(z, _[K]))
|
|
2250
2251
|
return null;
|
|
2251
|
-
var ee = JSON.stringify(_, function(
|
|
2252
|
+
var ee = JSON.stringify(_, function(se, R) {
|
|
2252
2253
|
var pe = j(R);
|
|
2253
2254
|
return pe === "symbol" ? String(R) : R;
|
|
2254
2255
|
});
|
|
2255
2256
|
return new m("Invalid " + W + " `" + U + "` of value `" + String(z) + "` " + ("supplied to `" + M + "`, expected one of " + ee + "."));
|
|
2256
2257
|
}
|
|
2257
|
-
return
|
|
2258
|
+
return v(x);
|
|
2258
2259
|
}
|
|
2259
2260
|
function b(_) {
|
|
2260
2261
|
function x(L, B, M, W, U) {
|
|
2261
2262
|
if (typeof _ != "function")
|
|
2262
2263
|
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
|
|
2263
|
-
var z = L[B],
|
|
2264
|
-
if (
|
|
2265
|
-
return new m("Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2264
|
+
var z = L[B], K = N(z);
|
|
2265
|
+
if (K !== "object")
|
|
2266
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected an object."));
|
|
2266
2267
|
for (var ee in z)
|
|
2267
2268
|
if (n(z, ee)) {
|
|
2268
|
-
var
|
|
2269
|
-
if (
|
|
2270
|
-
return
|
|
2269
|
+
var X = _(z, ee, M, W, U + "." + ee, i);
|
|
2270
|
+
if (X instanceof Error)
|
|
2271
|
+
return X;
|
|
2271
2272
|
}
|
|
2272
2273
|
return null;
|
|
2273
2274
|
}
|
|
2274
|
-
return
|
|
2275
|
+
return v(x);
|
|
2275
2276
|
}
|
|
2276
2277
|
function w(_) {
|
|
2277
2278
|
if (!Array.isArray(_))
|
|
@@ -2283,23 +2284,23 @@ function li() {
|
|
|
2283
2284
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(L) + " at index " + x + "."
|
|
2284
2285
|
), s;
|
|
2285
2286
|
}
|
|
2286
|
-
function B(M, W, U, z,
|
|
2287
|
-
for (var ee = [],
|
|
2288
|
-
var
|
|
2287
|
+
function B(M, W, U, z, K) {
|
|
2288
|
+
for (var ee = [], X = 0; X < _.length; X++) {
|
|
2289
|
+
var se = _[X], R = se(M, W, U, z, K, i);
|
|
2289
2290
|
if (R == null)
|
|
2290
2291
|
return null;
|
|
2291
2292
|
R.data && n(R.data, "expectedType") && ee.push(R.data.expectedType);
|
|
2292
2293
|
}
|
|
2293
2294
|
var pe = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
|
|
2294
|
-
return new m("Invalid " + z + " `" +
|
|
2295
|
+
return new m("Invalid " + z + " `" + K + "` supplied to " + ("`" + U + "`" + pe + "."));
|
|
2295
2296
|
}
|
|
2296
|
-
return
|
|
2297
|
+
return v(B);
|
|
2297
2298
|
}
|
|
2298
2299
|
function T() {
|
|
2299
2300
|
function _(x, L, B, M, W) {
|
|
2300
2301
|
return F(x[L]) ? null : new m("Invalid " + M + " `" + W + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
2301
2302
|
}
|
|
2302
|
-
return
|
|
2303
|
+
return v(_);
|
|
2303
2304
|
}
|
|
2304
2305
|
function P(_, x, L, B, M) {
|
|
2305
2306
|
return new m(
|
|
@@ -2308,43 +2309,43 @@ function li() {
|
|
|
2308
2309
|
}
|
|
2309
2310
|
function q(_) {
|
|
2310
2311
|
function x(L, B, M, W, U) {
|
|
2311
|
-
var z = L[B],
|
|
2312
|
-
if (
|
|
2313
|
-
return new m("Invalid " + W + " `" + U + "` of type `" +
|
|
2312
|
+
var z = L[B], K = N(z);
|
|
2313
|
+
if (K !== "object")
|
|
2314
|
+
return new m("Invalid " + W + " `" + U + "` of type `" + K + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
2314
2315
|
for (var ee in _) {
|
|
2315
|
-
var
|
|
2316
|
-
if (typeof
|
|
2317
|
-
return P(M, W, U, ee, j(
|
|
2318
|
-
var
|
|
2319
|
-
if (
|
|
2320
|
-
return
|
|
2316
|
+
var X = _[ee];
|
|
2317
|
+
if (typeof X != "function")
|
|
2318
|
+
return P(M, W, U, ee, j(X));
|
|
2319
|
+
var se = X(z, ee, M, W, U + "." + ee, i);
|
|
2320
|
+
if (se)
|
|
2321
|
+
return se;
|
|
2321
2322
|
}
|
|
2322
2323
|
return null;
|
|
2323
2324
|
}
|
|
2324
|
-
return
|
|
2325
|
+
return v(x);
|
|
2325
2326
|
}
|
|
2326
2327
|
function Y(_) {
|
|
2327
2328
|
function x(L, B, M, W, U) {
|
|
2328
|
-
var z = L[B],
|
|
2329
|
-
if (
|
|
2330
|
-
return new m("Invalid " + W + " `" + U + "` of type `" +
|
|
2329
|
+
var z = L[B], K = N(z);
|
|
2330
|
+
if (K !== "object")
|
|
2331
|
+
return new m("Invalid " + W + " `" + U + "` of type `" + K + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
2331
2332
|
var ee = r({}, L[B], _);
|
|
2332
|
-
for (var
|
|
2333
|
-
var
|
|
2334
|
-
if (n(_,
|
|
2335
|
-
return P(M, W, U,
|
|
2336
|
-
if (!
|
|
2333
|
+
for (var X in ee) {
|
|
2334
|
+
var se = _[X];
|
|
2335
|
+
if (n(_, X) && typeof se != "function")
|
|
2336
|
+
return P(M, W, U, X, j(se));
|
|
2337
|
+
if (!se)
|
|
2337
2338
|
return new m(
|
|
2338
|
-
"Invalid " + W + " `" + U + "` key `" +
|
|
2339
|
+
"Invalid " + W + " `" + U + "` key `" + X + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[B], null, " ") + `
|
|
2339
2340
|
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
2340
2341
|
);
|
|
2341
|
-
var R =
|
|
2342
|
+
var R = se(z, X, M, W, U + "." + X, i);
|
|
2342
2343
|
if (R)
|
|
2343
2344
|
return R;
|
|
2344
2345
|
}
|
|
2345
2346
|
return null;
|
|
2346
2347
|
}
|
|
2347
|
-
return
|
|
2348
|
+
return v(x);
|
|
2348
2349
|
}
|
|
2349
2350
|
function F(_) {
|
|
2350
2351
|
switch (typeof _) {
|
|
@@ -2412,22 +2413,22 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
2412
2413
|
return x;
|
|
2413
2414
|
}
|
|
2414
2415
|
}
|
|
2415
|
-
function
|
|
2416
|
+
function Z(_) {
|
|
2416
2417
|
return !_.constructor || !_.constructor.name ? f : _.constructor.name;
|
|
2417
2418
|
}
|
|
2418
2419
|
return g.checkPropTypes = t, g.resetWarningCache = t.resetWarningCache, g.PropTypes = g, g;
|
|
2419
|
-
},
|
|
2420
|
+
}, ut;
|
|
2420
2421
|
}
|
|
2421
|
-
var
|
|
2422
|
-
function
|
|
2423
|
-
if (
|
|
2424
|
-
|
|
2425
|
-
var e =
|
|
2422
|
+
var lt, en;
|
|
2423
|
+
function si() {
|
|
2424
|
+
if (en) return lt;
|
|
2425
|
+
en = 1;
|
|
2426
|
+
var e = wt();
|
|
2426
2427
|
function r() {
|
|
2427
2428
|
}
|
|
2428
2429
|
function i() {
|
|
2429
2430
|
}
|
|
2430
|
-
return i.resetWarningCache = r,
|
|
2431
|
+
return i.resetWarningCache = r, lt = function() {
|
|
2431
2432
|
function n(s, u, l, d, a, c) {
|
|
2432
2433
|
if (c !== e) {
|
|
2433
2434
|
var f = new Error(
|
|
@@ -2464,55 +2465,55 @@ function ci() {
|
|
|
2464
2465
|
resetWarningCache: r
|
|
2465
2466
|
};
|
|
2466
2467
|
return o.PropTypes = o, o;
|
|
2467
|
-
},
|
|
2468
|
+
}, lt;
|
|
2468
2469
|
}
|
|
2469
2470
|
if (process.env.NODE_ENV !== "production") {
|
|
2470
|
-
var
|
|
2471
|
-
|
|
2471
|
+
var ai = Rn(), ui = !0;
|
|
2472
|
+
ht.exports = ii()(ai.isElement, ui);
|
|
2472
2473
|
} else
|
|
2473
|
-
|
|
2474
|
-
var
|
|
2475
|
-
const O = /* @__PURE__ */
|
|
2476
|
-
var
|
|
2474
|
+
ht.exports = si()();
|
|
2475
|
+
var li = ht.exports;
|
|
2476
|
+
const O = /* @__PURE__ */ Et(li);
|
|
2477
|
+
var Xe = function(r) {
|
|
2477
2478
|
return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
2478
2479
|
}, ge = {
|
|
2479
2480
|
id: "__id__",
|
|
2480
2481
|
display: "__display__"
|
|
2481
|
-
},
|
|
2482
|
+
}, tn = function(r, i) {
|
|
2482
2483
|
Re(i === "id" || i === "display", 'Second arg must be either "id" or "display", got: "'.concat(i, '"'));
|
|
2483
2484
|
var n = r.indexOf(ge.display), t = r.indexOf(ge.id);
|
|
2484
2485
|
return n < 0 && (n = null), t < 0 && (t = null), Re(n !== null || t !== null, "The markup '".concat(r, "' does not contain either of the placeholders '__id__' or '__display__'")), n !== null && t !== null ? i === "id" && t <= n || i === "display" && n <= t ? 0 : 1 : 0;
|
|
2485
|
-
},
|
|
2486
|
+
}, ci = function(r) {
|
|
2486
2487
|
var i = /^\/(.+)\/(\w+)?$/;
|
|
2487
2488
|
return new RegExp(r.map(function(n) {
|
|
2488
|
-
var t = i.exec(n.toString()), o =
|
|
2489
|
+
var t = i.exec(n.toString()), o = Je(t, 3), s = o[1], u = o[2];
|
|
2489
2490
|
return Re(!u, "RegExp flags are not supported. Change /".concat(s, "/").concat(u, " into /").concat(s, "/")), "(".concat(s, ")");
|
|
2490
2491
|
}).join("|"), "g");
|
|
2491
|
-
},
|
|
2492
|
+
}, Nn = function(r) {
|
|
2492
2493
|
var i = 0;
|
|
2493
2494
|
return r.indexOf("__id__") >= 0 && i++, r.indexOf("__display__") >= 0 && i++, i;
|
|
2494
|
-
},
|
|
2495
|
-
},
|
|
2496
|
-
for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
2495
|
+
}, di = function() {
|
|
2496
|
+
}, ke = function(r, i, n) {
|
|
2497
|
+
for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : di, o = ci(i.map(function(y) {
|
|
2497
2498
|
return y.regex;
|
|
2498
2499
|
})), s = 2, u = i.map(function(y) {
|
|
2499
2500
|
var A = y.markup, D = s;
|
|
2500
|
-
return s +=
|
|
2501
|
+
return s += Nn(A) + 1, D;
|
|
2501
2502
|
}), l, d = 0, a = 0; (l = o.exec(r)) !== null; ) {
|
|
2502
2503
|
var c = u.find(function(y) {
|
|
2503
2504
|
return !!l[y];
|
|
2504
|
-
}), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform,
|
|
2505
|
+
}), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform, v = c + tn(p, "id"), E = c + tn(p, "display"), C = l[v], S = m(C, l[E]), I = r.substring(d, l.index);
|
|
2505
2506
|
t(I, d, a), a += I.length, n(l[0], l.index, a, C, S, f, d), a += S.length, d = o.lastIndex;
|
|
2506
2507
|
}
|
|
2507
2508
|
d < r.length && t(r.substring(d), d, a);
|
|
2508
2509
|
}, Ce = function(r, i) {
|
|
2509
2510
|
var n = "";
|
|
2510
|
-
return
|
|
2511
|
+
return ke(r, i, function(t, o, s, u, l) {
|
|
2511
2512
|
n += l;
|
|
2512
2513
|
}, function(t) {
|
|
2513
2514
|
n += t;
|
|
2514
2515
|
}), n;
|
|
2515
|
-
},
|
|
2516
|
+
}, ie = function(r, i, n) {
|
|
2516
2517
|
var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "START";
|
|
2517
2518
|
if (typeof n != "number")
|
|
2518
2519
|
return n;
|
|
@@ -2521,33 +2522,33 @@ var We = function(r) {
|
|
|
2521
2522
|
}, u = function(d, a, c, f, g, p, m) {
|
|
2522
2523
|
o === void 0 && c + g.length > n && (t === "NULL" ? o = null : o = a + (t === "END" ? d.length : 0));
|
|
2523
2524
|
};
|
|
2524
|
-
return
|
|
2525
|
+
return ke(r, i, u, s), o === void 0 ? r.length : o;
|
|
2525
2526
|
}, Fe = function(r, i, n, t) {
|
|
2526
2527
|
return r.substring(0, i) + t + r.substring(n);
|
|
2527
|
-
},
|
|
2528
|
+
}, fi = function(r, i, n, t) {
|
|
2528
2529
|
var o = n.selectionStartBefore, s = n.selectionEndBefore, u = n.selectionEndAfter, l = Ce(r, t), d = l.length - i.length;
|
|
2529
2530
|
o === "undefined" && (o = u + d), s === "undefined" && (s = o), o === s && s === u && l.length === i.length && (o = o - 1);
|
|
2530
2531
|
var a = i.slice(o, u), c = Math.min(o, u), f = s;
|
|
2531
2532
|
o === u && (f = Math.max(s, o + d));
|
|
2532
|
-
var g =
|
|
2533
|
+
var g = ie(r, t, c, "START"), p = ie(r, t, f, "END"), m = ie(r, t, c, "NULL"), v = ie(r, t, f, "NULL"), E = m === null || v === null, C = Fe(r, g, p, a);
|
|
2533
2534
|
if (!E) {
|
|
2534
2535
|
var S = Ce(C, t);
|
|
2535
2536
|
if (S !== i) {
|
|
2536
2537
|
for (c = 0; i[c] === S[c]; )
|
|
2537
2538
|
c++;
|
|
2538
|
-
a = i.slice(c, u), f = l.lastIndexOf(i.substring(u)), g =
|
|
2539
|
+
a = i.slice(c, u), f = l.lastIndexOf(i.substring(u)), g = ie(r, t, c, "START"), p = ie(r, t, f, "END"), C = Fe(r, g, p, a);
|
|
2539
2540
|
}
|
|
2540
2541
|
}
|
|
2541
2542
|
return C;
|
|
2542
|
-
},
|
|
2543
|
+
}, nn = function(r, i, n) {
|
|
2543
2544
|
var t = n, o = !1, s = function(l, d, a, c, f, g, p) {
|
|
2544
2545
|
a <= n && a + f.length > n && (t = a, o = !0);
|
|
2545
2546
|
};
|
|
2546
|
-
if (
|
|
2547
|
+
if (ke(r, i, s), o)
|
|
2547
2548
|
return t;
|
|
2548
2549
|
}, Pe = function(r, i) {
|
|
2549
2550
|
var n = [];
|
|
2550
|
-
return
|
|
2551
|
+
return ke(r, i, function(t, o, s, u, l, d, a) {
|
|
2551
2552
|
n.push({
|
|
2552
2553
|
id: u,
|
|
2553
2554
|
display: l,
|
|
@@ -2556,36 +2557,36 @@ var We = function(r) {
|
|
|
2556
2557
|
plainTextIndex: s
|
|
2557
2558
|
});
|
|
2558
2559
|
}), n;
|
|
2559
|
-
},
|
|
2560
|
+
}, jn = function(r, i) {
|
|
2560
2561
|
return "".concat(r, "-").concat(i);
|
|
2561
|
-
},
|
|
2562
|
+
}, Ve = function(r) {
|
|
2562
2563
|
return Object.values(r).reduce(function(i, n) {
|
|
2563
2564
|
var t = n.results;
|
|
2564
2565
|
return i + t.length;
|
|
2565
2566
|
}, 0);
|
|
2566
|
-
},
|
|
2567
|
+
}, pi = function(r, i) {
|
|
2567
2568
|
var n = Pe(r, i), t = n[n.length - 1];
|
|
2568
2569
|
return t ? t.plainTextIndex + t.display.length : 0;
|
|
2569
|
-
},
|
|
2570
|
-
var i =
|
|
2571
|
-
return new RegExp(i.replace(ge.display, "([^".concat(
|
|
2570
|
+
}, gi = function(r) {
|
|
2571
|
+
var i = Xe(r), n = r[r.indexOf(ge.display) + ge.display.length], t = r[r.indexOf(ge.id) + ge.id.length];
|
|
2572
|
+
return new RegExp(i.replace(ge.display, "([^".concat(Xe(n || ""), "]+?)")).replace(ge.id, "([^".concat(Xe(t || ""), "]+?)")));
|
|
2572
2573
|
}, Ee = function(r) {
|
|
2573
2574
|
return De.toArray(r).map(function(i) {
|
|
2574
2575
|
var n = i.props, t = n.markup, o = n.regex, s = n.displayTransform;
|
|
2575
2576
|
return {
|
|
2576
2577
|
markup: t,
|
|
2577
|
-
regex: o ?
|
|
2578
|
+
regex: o ? hi(o, t) : gi(t),
|
|
2578
2579
|
displayTransform: s || function(u, l) {
|
|
2579
2580
|
return l || u;
|
|
2580
2581
|
}
|
|
2581
2582
|
};
|
|
2582
2583
|
});
|
|
2583
|
-
},
|
|
2584
|
-
var n = new RegExp(r.toString() + "|").exec("").length - 1, t =
|
|
2584
|
+
}, hi = function(r, i) {
|
|
2585
|
+
var n = new RegExp(r.toString() + "|").exec("").length - 1, t = Nn(i);
|
|
2585
2586
|
return Re(n === t, "Number of capturing groups in RegExp ".concat(r.toString(), " (").concat(n, ") does not match the number of placeholders in the markup '").concat(i, "' (").concat(t, ")")), r;
|
|
2586
|
-
},
|
|
2587
|
+
}, vi = function(r, i, n) {
|
|
2587
2588
|
return r.replace(ge.id, i).replace(ge.display, n);
|
|
2588
|
-
},
|
|
2589
|
+
}, mi = [{
|
|
2589
2590
|
base: "A",
|
|
2590
2591
|
letters: /(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g
|
|
2591
2592
|
}, {
|
|
@@ -2855,30 +2856,30 @@ var We = function(r) {
|
|
|
2855
2856
|
}, {
|
|
2856
2857
|
base: "z",
|
|
2857
2858
|
letters: /(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g
|
|
2858
|
-
}],
|
|
2859
|
+
}], Ei = function(r) {
|
|
2859
2860
|
var i = r;
|
|
2860
|
-
return
|
|
2861
|
+
return mi.forEach(function(n) {
|
|
2861
2862
|
i = i.replace(n.letters, n.base);
|
|
2862
2863
|
}), i;
|
|
2863
|
-
},
|
|
2864
|
-
return
|
|
2865
|
-
},
|
|
2866
|
-
return n ?
|
|
2867
|
-
},
|
|
2864
|
+
}, rn = function(r) {
|
|
2865
|
+
return Ei(r).toLowerCase();
|
|
2866
|
+
}, Pn = function(r, i, n) {
|
|
2867
|
+
return n ? rn(r).indexOf(rn(i)) : r.toLowerCase().indexOf(i.toLowerCase());
|
|
2868
|
+
}, yi = function() {
|
|
2868
2869
|
return !!document.documentMode;
|
|
2869
|
-
},
|
|
2870
|
+
}, vt = function(r) {
|
|
2870
2871
|
return typeof r == "number";
|
|
2871
|
-
},
|
|
2872
|
+
}, bi = function(r) {
|
|
2872
2873
|
return r === Object(r) ? Object.keys(r) : [];
|
|
2873
|
-
},
|
|
2874
|
+
}, Ci = function(r) {
|
|
2874
2875
|
for (var i, n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
2875
2876
|
t[o - 1] = arguments[o];
|
|
2876
2877
|
var s = (i = []).concat.apply(i, t);
|
|
2877
2878
|
return Object.keys(r).reduce(function(u, l) {
|
|
2878
2879
|
return r.hasOwnProperty(l) && !s.includes(l) && r[l] !== void 0 && (u[l] = r[l]), u;
|
|
2879
2880
|
}, {});
|
|
2880
|
-
},
|
|
2881
|
-
function
|
|
2881
|
+
}, Si = ["style", "className", "classNames"];
|
|
2882
|
+
function on(e, r) {
|
|
2882
2883
|
var i = Object.keys(e);
|
|
2883
2884
|
if (Object.getOwnPropertySymbols) {
|
|
2884
2885
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -2888,47 +2889,47 @@ function rn(e, r) {
|
|
|
2888
2889
|
}
|
|
2889
2890
|
return i;
|
|
2890
2891
|
}
|
|
2891
|
-
function
|
|
2892
|
+
function sn(e) {
|
|
2892
2893
|
for (var r = 1; r < arguments.length; r++) {
|
|
2893
2894
|
var i = arguments[r] != null ? arguments[r] : {};
|
|
2894
|
-
r % 2 ?
|
|
2895
|
+
r % 2 ? on(Object(i), !0).forEach(function(n) {
|
|
2895
2896
|
H(e, n, i[n]);
|
|
2896
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
|
2897
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : on(Object(i)).forEach(function(n) {
|
|
2897
2898
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
2898
2899
|
});
|
|
2899
2900
|
}
|
|
2900
2901
|
return e;
|
|
2901
2902
|
}
|
|
2902
|
-
function
|
|
2903
|
+
function nt(e, r) {
|
|
2903
2904
|
var i = function(t) {
|
|
2904
2905
|
var o = function(l) {
|
|
2905
|
-
var d = l.style, a = l.className, c = l.classNames, f =
|
|
2906
|
+
var d = l.style, a = l.className, c = l.classNames, f = Lo(l, Si), g = r ? r(f) : void 0, p = Rt(e, {
|
|
2906
2907
|
style: d,
|
|
2907
2908
|
className: a,
|
|
2908
2909
|
classNames: c
|
|
2909
2910
|
}, g);
|
|
2910
|
-
return /* @__PURE__ */
|
|
2911
|
+
return /* @__PURE__ */ G.createElement(t, ue({}, f, {
|
|
2911
2912
|
style: p
|
|
2912
2913
|
}));
|
|
2913
2914
|
}, s = t.displayName || t.name || "Component";
|
|
2914
|
-
return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */
|
|
2915
|
-
return o(
|
|
2915
|
+
return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */ G.forwardRef(function(u, l) {
|
|
2916
|
+
return o(sn(sn({}, u), {}, {
|
|
2916
2917
|
ref: l
|
|
2917
2918
|
}));
|
|
2918
2919
|
});
|
|
2919
2920
|
};
|
|
2920
2921
|
return i;
|
|
2921
2922
|
}
|
|
2922
|
-
var
|
|
2923
|
+
var _i = function(r, i) {
|
|
2923
2924
|
return r.hasOwnProperty(i) ? r[i]++ : r[i] = 0, i + "_" + r[i];
|
|
2924
2925
|
};
|
|
2925
|
-
function
|
|
2926
|
+
function Fn(e) {
|
|
2926
2927
|
var r = e.selectionStart, i = e.selectionEnd, n = e.value, t = n === void 0 ? "" : n, o = e.onCaretPositionChange, s = e.containerRef, u = e.children;
|
|
2927
2928
|
e.singleLine;
|
|
2928
2929
|
var l = e.style, d = re({
|
|
2929
2930
|
left: void 0,
|
|
2930
2931
|
top: void 0
|
|
2931
|
-
}), a =
|
|
2932
|
+
}), a = Je(d, 2), c = a[0], f = a[1], g = re(), p = Je(g, 2), m = p[0], v = p[1];
|
|
2932
2933
|
le(function() {
|
|
2933
2934
|
E();
|
|
2934
2935
|
});
|
|
@@ -2944,19 +2945,19 @@ function Bn(e) {
|
|
|
2944
2945
|
}
|
|
2945
2946
|
}
|
|
2946
2947
|
}, C = Ee(u), S;
|
|
2947
|
-
i === r && (S =
|
|
2948
|
+
i === r && (S = ie(t, C, r, "START"));
|
|
2948
2949
|
var I = [], y = {}, A = I, D = 0, b = function(F, V, N) {
|
|
2949
|
-
if (
|
|
2950
|
+
if (vt(S) && S >= V && S <= V + F.length) {
|
|
2950
2951
|
var j = S - V;
|
|
2951
2952
|
A.push(T(F.substring(0, j), D)), A = [T(F.substring(j), D)];
|
|
2952
2953
|
} else
|
|
2953
2954
|
A.push(T(F, D));
|
|
2954
2955
|
D++;
|
|
2955
|
-
}, w = function(F, V, N, j, $,
|
|
2956
|
-
var x =
|
|
2957
|
-
A.push(P(j, $,
|
|
2956
|
+
}, w = function(F, V, N, j, $, Z, _) {
|
|
2957
|
+
var x = _i(y, j);
|
|
2958
|
+
A.push(P(j, $, Z, x));
|
|
2958
2959
|
}, T = function(F, V) {
|
|
2959
|
-
return /* @__PURE__ */
|
|
2960
|
+
return /* @__PURE__ */ G.createElement("span", ue({}, l("substring"), {
|
|
2960
2961
|
key: V
|
|
2961
2962
|
}), F);
|
|
2962
2963
|
}, P = function(F, V, N, j) {
|
|
@@ -2964,19 +2965,19 @@ function Bn(e) {
|
|
|
2964
2965
|
id: F,
|
|
2965
2966
|
display: V,
|
|
2966
2967
|
key: j
|
|
2967
|
-
},
|
|
2968
|
-
return /* @__PURE__ */
|
|
2968
|
+
}, Z = De.toArray(u)[N];
|
|
2969
|
+
return /* @__PURE__ */ G.cloneElement(Z, $);
|
|
2969
2970
|
}, q = function(F) {
|
|
2970
|
-
return /* @__PURE__ */
|
|
2971
|
-
ref:
|
|
2971
|
+
return /* @__PURE__ */ G.createElement("span", ue({}, l("caret"), {
|
|
2972
|
+
ref: v,
|
|
2972
2973
|
key: "caret"
|
|
2973
2974
|
}), F);
|
|
2974
2975
|
};
|
|
2975
|
-
return
|
|
2976
|
+
return ke(t, C, w, b), A.push(" "), A !== I && I.push(q(A)), /* @__PURE__ */ G.createElement("div", ue({}, l, {
|
|
2976
2977
|
ref: s
|
|
2977
2978
|
}), I);
|
|
2978
2979
|
}
|
|
2979
|
-
|
|
2980
|
+
Fn.propTypes = {
|
|
2980
2981
|
selectionStart: O.number,
|
|
2981
2982
|
selectionEnd: O.number,
|
|
2982
2983
|
value: O.string.isRequired,
|
|
@@ -2986,7 +2987,7 @@ Bn.propTypes = {
|
|
|
2986
2987
|
})]),
|
|
2987
2988
|
children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
|
|
2988
2989
|
};
|
|
2989
|
-
var
|
|
2990
|
+
var Ai = nt({
|
|
2990
2991
|
position: "relative",
|
|
2991
2992
|
boxSizing: "border-box",
|
|
2992
2993
|
width: "100%",
|
|
@@ -3007,32 +3008,32 @@ var Oi = et({
|
|
|
3007
3008
|
return {
|
|
3008
3009
|
"&singleLine": e.singleLine
|
|
3009
3010
|
};
|
|
3010
|
-
}),
|
|
3011
|
-
function
|
|
3011
|
+
}), Ti = Ai(Fn);
|
|
3012
|
+
function Mn(e) {
|
|
3012
3013
|
var r = e.id, i = e.focused, n = e.ignoreAccents, t = e.index, o = e.onClick, s = e.onMouseEnter, u = e.query, l = e.renderSuggestion, d = e.suggestion, a = e.style;
|
|
3013
3014
|
e.className, e.classNames;
|
|
3014
3015
|
var c = {
|
|
3015
3016
|
onClick: o,
|
|
3016
3017
|
onMouseEnter: s
|
|
3017
3018
|
}, f = function() {
|
|
3018
|
-
var
|
|
3019
|
+
var v = g(), E = p(v);
|
|
3019
3020
|
return l ? l(d, u, E, t, i) : E;
|
|
3020
3021
|
}, g = function() {
|
|
3021
3022
|
if (typeof d == "string")
|
|
3022
3023
|
return d;
|
|
3023
|
-
var
|
|
3024
|
-
return
|
|
3025
|
-
}, p = function(
|
|
3026
|
-
var E =
|
|
3027
|
-
return E === -1 ? /* @__PURE__ */
|
|
3024
|
+
var v = d.id, E = d.display;
|
|
3025
|
+
return v === void 0 || !E ? v : E;
|
|
3026
|
+
}, p = function(v) {
|
|
3027
|
+
var E = Pn(v, u, n);
|
|
3028
|
+
return E === -1 ? /* @__PURE__ */ G.createElement("span", a("display"), v) : /* @__PURE__ */ G.createElement("span", a("display"), v.substring(0, E), /* @__PURE__ */ G.createElement("b", a("highlight"), v.substring(E, E + u.length)), v.substring(E + u.length));
|
|
3028
3029
|
};
|
|
3029
|
-
return /* @__PURE__ */
|
|
3030
|
+
return /* @__PURE__ */ G.createElement("li", ue({
|
|
3030
3031
|
id: r,
|
|
3031
3032
|
role: "option",
|
|
3032
3033
|
"aria-selected": i
|
|
3033
3034
|
}, c, a), f());
|
|
3034
3035
|
}
|
|
3035
|
-
|
|
3036
|
+
Mn.propTypes = {
|
|
3036
3037
|
id: O.string.isRequired,
|
|
3037
3038
|
query: O.string.isRequired,
|
|
3038
3039
|
index: O.number.isRequired,
|
|
@@ -3044,53 +3045,53 @@ $n.propTypes = {
|
|
|
3044
3045
|
renderSuggestion: O.func,
|
|
3045
3046
|
focused: O.bool
|
|
3046
3047
|
};
|
|
3047
|
-
var
|
|
3048
|
+
var Ii = nt({
|
|
3048
3049
|
cursor: "pointer"
|
|
3049
3050
|
}, function(e) {
|
|
3050
3051
|
return {
|
|
3051
3052
|
"&focused": e.focused
|
|
3052
3053
|
};
|
|
3053
|
-
}),
|
|
3054
|
-
function
|
|
3055
|
-
var r = e.style, i = e.className, n = e.classNames, t =
|
|
3054
|
+
}), xi = Ii(Mn);
|
|
3055
|
+
function Oi(e) {
|
|
3056
|
+
var r = e.style, i = e.className, n = e.classNames, t = Rt(Di, {
|
|
3056
3057
|
style: r,
|
|
3057
3058
|
className: i,
|
|
3058
3059
|
classNames: n
|
|
3059
3060
|
}), o = t("spinner");
|
|
3060
|
-
return /* @__PURE__ */
|
|
3061
|
+
return /* @__PURE__ */ G.createElement("div", t, /* @__PURE__ */ G.createElement("div", o, /* @__PURE__ */ G.createElement("div", o(["element", "element1"])), /* @__PURE__ */ G.createElement("div", o(["element", "element2"])), /* @__PURE__ */ G.createElement("div", o(["element", "element3"])), /* @__PURE__ */ G.createElement("div", o(["element", "element4"])), /* @__PURE__ */ G.createElement("div", o(["element", "element5"]))));
|
|
3061
3062
|
}
|
|
3062
|
-
var
|
|
3063
|
-
function
|
|
3063
|
+
var Di = {};
|
|
3064
|
+
function Ln(e) {
|
|
3064
3065
|
var r = e.id, i = e.suggestions, n = i === void 0 ? {} : i, t = e.a11ySuggestionsListLabel, o = e.focusIndex, s = e.position, u = e.left, l = e.right, d = e.top, a = e.scrollFocusedIntoView, c = e.isLoading, f = e.isOpened, g = e.onSelect, p = g === void 0 ? function() {
|
|
3065
3066
|
return null;
|
|
3066
|
-
} : g, m = e.ignoreAccents,
|
|
3067
|
+
} : g, m = e.ignoreAccents, v = e.containerRef, E = e.children, C = e.style, S = e.customSuggestionsContainer, I = e.onMouseDown, y = e.onMouseEnter, A = re(void 0), D = Je(A, 2), b = D[0], w = D[1];
|
|
3067
3068
|
le(function() {
|
|
3068
3069
|
if (!(!b || b.offsetHeight >= b.scrollHeight || !a)) {
|
|
3069
|
-
var N = b.scrollTop, j = b.children[o].getBoundingClientRect(), $ = j.top,
|
|
3070
|
-
$ = $ - x + N,
|
|
3070
|
+
var N = b.scrollTop, j = b.children[o].getBoundingClientRect(), $ = j.top, Z = j.bottom, _ = b.getBoundingClientRect(), x = _.top;
|
|
3071
|
+
$ = $ - x + N, Z = Z - x + N, $ < N ? b.scrollTop = $ : Z > b.offsetHeight && (b.scrollTop = Z - b.offsetHeight);
|
|
3071
3072
|
}
|
|
3072
3073
|
}, [o, a, b]);
|
|
3073
3074
|
var T = function() {
|
|
3074
|
-
var j = /* @__PURE__ */
|
|
3075
|
+
var j = /* @__PURE__ */ G.createElement("ul", ue({
|
|
3075
3076
|
ref: w,
|
|
3076
3077
|
id: r,
|
|
3077
3078
|
role: "listbox",
|
|
3078
3079
|
"aria-label": t
|
|
3079
|
-
}, C("list")), Object.values(n).reduce(function($,
|
|
3080
|
-
var _ =
|
|
3081
|
-
return [].concat(
|
|
3080
|
+
}, C("list")), Object.values(n).reduce(function($, Z) {
|
|
3081
|
+
var _ = Z.results, x = Z.queryInfo;
|
|
3082
|
+
return [].concat(Ge($), Ge(_.map(function(L, B) {
|
|
3082
3083
|
return P(L, x, $.length + B);
|
|
3083
3084
|
})));
|
|
3084
3085
|
}, []));
|
|
3085
3086
|
return S ? S(j) : j;
|
|
3086
|
-
}, P = function(j, $,
|
|
3087
|
-
var _ =
|
|
3088
|
-
return /* @__PURE__ */
|
|
3087
|
+
}, P = function(j, $, Z) {
|
|
3088
|
+
var _ = Z === o, x = $.childIndex, L = $.query, B = De.toArray(E)[x].props.renderSuggestion;
|
|
3089
|
+
return /* @__PURE__ */ G.createElement(xi, {
|
|
3089
3090
|
style: C("item"),
|
|
3090
3091
|
key: "".concat(x, "-").concat(V(j)),
|
|
3091
|
-
id:
|
|
3092
|
+
id: jn(r, Z),
|
|
3092
3093
|
query: L,
|
|
3093
|
-
index:
|
|
3094
|
+
index: Z,
|
|
3094
3095
|
ignoreAccents: m,
|
|
3095
3096
|
renderSuggestion: B,
|
|
3096
3097
|
suggestion: j,
|
|
@@ -3099,12 +3100,12 @@ function Hn(e) {
|
|
|
3099
3100
|
return F(j, $);
|
|
3100
3101
|
},
|
|
3101
3102
|
onMouseEnter: function() {
|
|
3102
|
-
return Y(
|
|
3103
|
+
return Y(Z);
|
|
3103
3104
|
}
|
|
3104
3105
|
});
|
|
3105
3106
|
}, q = function() {
|
|
3106
3107
|
if (c)
|
|
3107
|
-
return /* @__PURE__ */
|
|
3108
|
+
return /* @__PURE__ */ G.createElement(Oi, {
|
|
3108
3109
|
style: C("loadingIndicator")
|
|
3109
3110
|
});
|
|
3110
3111
|
}, Y = function(j, $) {
|
|
@@ -3114,17 +3115,17 @@ function Hn(e) {
|
|
|
3114
3115
|
}, V = function(j) {
|
|
3115
3116
|
return typeof j == "string" ? j : j.id;
|
|
3116
3117
|
};
|
|
3117
|
-
return f ? /* @__PURE__ */
|
|
3118
|
+
return f ? /* @__PURE__ */ G.createElement("div", ue({}, ei({
|
|
3118
3119
|
position: s || "absolute",
|
|
3119
3120
|
left: u,
|
|
3120
3121
|
right: l,
|
|
3121
3122
|
top: d
|
|
3122
3123
|
}, C), {
|
|
3123
3124
|
onMouseDown: I,
|
|
3124
|
-
ref:
|
|
3125
|
+
ref: v
|
|
3125
3126
|
}), T(), q()) : null;
|
|
3126
3127
|
}
|
|
3127
|
-
|
|
3128
|
+
Ln.propTypes = {
|
|
3128
3129
|
id: O.string.isRequired,
|
|
3129
3130
|
suggestions: O.object.isRequired,
|
|
3130
3131
|
a11ySuggestionsListLabel: O.string,
|
|
@@ -3143,7 +3144,7 @@ Hn.propTypes = {
|
|
|
3143
3144
|
current: typeof Element > "u" ? O.any : O.instanceOf(Element)
|
|
3144
3145
|
})])
|
|
3145
3146
|
};
|
|
3146
|
-
var
|
|
3147
|
+
var Ri = nt({
|
|
3147
3148
|
zIndex: 1,
|
|
3148
3149
|
backgroundColor: "white",
|
|
3149
3150
|
marginTop: 14,
|
|
@@ -3153,8 +3154,8 @@ var Pi = et({
|
|
|
3153
3154
|
padding: 0,
|
|
3154
3155
|
listStyleType: "none"
|
|
3155
3156
|
}
|
|
3156
|
-
}),
|
|
3157
|
-
function
|
|
3157
|
+
}), wi = Ri(Ln);
|
|
3158
|
+
function an(e, r) {
|
|
3158
3159
|
var i = Object.keys(e);
|
|
3159
3160
|
if (Object.getOwnPropertySymbols) {
|
|
3160
3161
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -3167,27 +3168,27 @@ function sn(e, r) {
|
|
|
3167
3168
|
function de(e) {
|
|
3168
3169
|
for (var r = 1; r < arguments.length; r++) {
|
|
3169
3170
|
var i = arguments[r] != null ? arguments[r] : {};
|
|
3170
|
-
r % 2 ?
|
|
3171
|
+
r % 2 ? an(Object(i), !0).forEach(function(n) {
|
|
3171
3172
|
H(e, n, i[n]);
|
|
3172
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
|
3173
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : an(Object(i)).forEach(function(n) {
|
|
3173
3174
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
3174
3175
|
});
|
|
3175
3176
|
}
|
|
3176
3177
|
return e;
|
|
3177
3178
|
}
|
|
3178
|
-
function
|
|
3179
|
-
var r =
|
|
3179
|
+
function Ni(e) {
|
|
3180
|
+
var r = ji();
|
|
3180
3181
|
return function() {
|
|
3181
|
-
var n =
|
|
3182
|
+
var n = Qe(e), t;
|
|
3182
3183
|
if (r) {
|
|
3183
|
-
var o =
|
|
3184
|
+
var o = Qe(this).constructor;
|
|
3184
3185
|
t = Reflect.construct(n, arguments, o);
|
|
3185
3186
|
} else
|
|
3186
3187
|
t = n.apply(this, arguments);
|
|
3187
|
-
return
|
|
3188
|
+
return Ro(this, t);
|
|
3188
3189
|
};
|
|
3189
3190
|
}
|
|
3190
|
-
function
|
|
3191
|
+
function ji() {
|
|
3191
3192
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
3192
3193
|
if (typeof Proxy == "function") return !0;
|
|
3193
3194
|
try {
|
|
@@ -3197,17 +3198,17 @@ function Li() {
|
|
|
3197
3198
|
return !1;
|
|
3198
3199
|
}
|
|
3199
3200
|
}
|
|
3200
|
-
var
|
|
3201
|
+
var Pi = function(r) {
|
|
3201
3202
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3202
3203
|
if (r instanceof RegExp)
|
|
3203
3204
|
return r;
|
|
3204
|
-
var n = i.allowSpaceInQuery, t =
|
|
3205
|
+
var n = i.allowSpaceInQuery, t = Xe(r);
|
|
3205
3206
|
return new RegExp("(?:^|\\s)(".concat(t, "([^").concat(n ? "" : "\\s").concat(t, "]*))$"));
|
|
3206
|
-
},
|
|
3207
|
+
}, Fi = function(r, i) {
|
|
3207
3208
|
return r instanceof Array ? function(n, t) {
|
|
3208
3209
|
for (var o = [], s = 0, u = r.length; s < u; ++s) {
|
|
3209
3210
|
var l = r[s].display || r[s].id;
|
|
3210
|
-
|
|
3211
|
+
Pn(l, n, i) >= 0 && o.push(r[s]);
|
|
3211
3212
|
}
|
|
3212
3213
|
return o;
|
|
3213
3214
|
} : r;
|
|
@@ -3217,7 +3218,7 @@ var Bi = function(r) {
|
|
|
3217
3218
|
ESC: 27,
|
|
3218
3219
|
UP: 38,
|
|
3219
3220
|
DOWN: 40
|
|
3220
|
-
},
|
|
3221
|
+
}, Ye = !1, Bn = {
|
|
3221
3222
|
/**
|
|
3222
3223
|
* If set to `true` a regular text input element will be rendered
|
|
3223
3224
|
* instead of a textarea
|
|
@@ -3239,19 +3240,19 @@ var Bi = function(r) {
|
|
|
3239
3240
|
current: typeof Element > "u" ? O.any : O.instanceOf(Element)
|
|
3240
3241
|
})]),
|
|
3241
3242
|
children: O.oneOfType([O.element, O.arrayOf(O.element)]).isRequired
|
|
3242
|
-
},
|
|
3243
|
-
|
|
3244
|
-
var r =
|
|
3243
|
+
}, Nt = /* @__PURE__ */ function(e) {
|
|
3244
|
+
Do(i, e);
|
|
3245
|
+
var r = Ni(i);
|
|
3245
3246
|
function i(n) {
|
|
3246
3247
|
var t;
|
|
3247
|
-
return
|
|
3248
|
+
return Io(this, i), t = r.call(this, n), H(k(t), "setContainerElement", function(o) {
|
|
3248
3249
|
t.containerElement = o;
|
|
3249
3250
|
}), H(k(t), "getInputProps", function() {
|
|
3250
|
-
var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d =
|
|
3251
|
+
var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d = Ci(
|
|
3251
3252
|
t.props,
|
|
3252
3253
|
["style", "classNames", "className"],
|
|
3253
3254
|
// substyle props
|
|
3254
|
-
|
|
3255
|
+
bi(Bn)
|
|
3255
3256
|
);
|
|
3256
3257
|
return de(de(de(de({}, d), l("input")), {}, {
|
|
3257
3258
|
value: t.getPlainText(),
|
|
@@ -3269,18 +3270,18 @@ var Bi = function(r) {
|
|
|
3269
3270
|
"aria-expanded": !0,
|
|
3270
3271
|
"aria-autocomplete": "list",
|
|
3271
3272
|
"aria-haspopup": "listbox",
|
|
3272
|
-
"aria-activedescendant":
|
|
3273
|
+
"aria-activedescendant": jn(t.uuidSuggestionsOverlay, t.state.focusIndex)
|
|
3273
3274
|
});
|
|
3274
3275
|
}), H(k(t), "renderControl", function() {
|
|
3275
3276
|
var o = t.props, s = o.singleLine, u = o.style, l = t.getInputProps();
|
|
3276
|
-
return /* @__PURE__ */
|
|
3277
|
+
return /* @__PURE__ */ G.createElement("div", u("control"), t.renderHighlighter(), s ? t.renderInput(l) : t.renderTextarea(l));
|
|
3277
3278
|
}), H(k(t), "renderInput", function(o) {
|
|
3278
|
-
return /* @__PURE__ */
|
|
3279
|
+
return /* @__PURE__ */ G.createElement("input", ue({
|
|
3279
3280
|
type: "text",
|
|
3280
3281
|
ref: t.setInputRef
|
|
3281
3282
|
}, o));
|
|
3282
3283
|
}), H(k(t), "renderTextarea", function(o) {
|
|
3283
|
-
return /* @__PURE__ */
|
|
3284
|
+
return /* @__PURE__ */ G.createElement("textarea", ue({
|
|
3284
3285
|
ref: t.setInputRef
|
|
3285
3286
|
}, o));
|
|
3286
3287
|
}), H(k(t), "setInputRef", function(o) {
|
|
@@ -3290,9 +3291,9 @@ var Bi = function(r) {
|
|
|
3290
3291
|
}), H(k(t), "setSuggestionsElement", function(o) {
|
|
3291
3292
|
t.suggestionsElement = o;
|
|
3292
3293
|
}), H(k(t), "renderSuggestionsOverlay", function() {
|
|
3293
|
-
if (!
|
|
3294
|
+
if (!vt(t.state.selectionStart))
|
|
3294
3295
|
return null;
|
|
3295
|
-
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */
|
|
3296
|
+
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ G.createElement(wi, {
|
|
3296
3297
|
id: t.uuidSuggestionsOverlay,
|
|
3297
3298
|
style: t.props.style("suggestions"),
|
|
3298
3299
|
position: s,
|
|
@@ -3312,10 +3313,10 @@ var Bi = function(r) {
|
|
|
3312
3313
|
ignoreAccents: t.props.ignoreAccents,
|
|
3313
3314
|
a11ySuggestionsListLabel: t.props.a11ySuggestionsListLabel
|
|
3314
3315
|
}, t.props.children);
|
|
3315
|
-
return t.props.suggestionsPortalHost ? /* @__PURE__ */
|
|
3316
|
+
return t.props.suggestionsPortalHost ? /* @__PURE__ */ gr.createPortal(a, t.props.suggestionsPortalHost) : a;
|
|
3316
3317
|
}), H(k(t), "renderHighlighter", function() {
|
|
3317
3318
|
var o = t.state, s = o.selectionStart, u = o.selectionEnd, l = t.props, d = l.singleLine, a = l.children, c = l.value, f = l.style;
|
|
3318
|
-
return /* @__PURE__ */
|
|
3319
|
+
return /* @__PURE__ */ G.createElement(Ti, {
|
|
3319
3320
|
containerRef: t.setHighlighterElement,
|
|
3320
3321
|
style: f("highlighter"),
|
|
3321
3322
|
value: c,
|
|
@@ -3344,7 +3345,7 @@ var Bi = function(r) {
|
|
|
3344
3345
|
return (a = t.props.valueLink).requestChange.apply(a, [o.target.value].concat(u));
|
|
3345
3346
|
}
|
|
3346
3347
|
}), H(k(t), "handleChange", function(o) {
|
|
3347
|
-
if (
|
|
3348
|
+
if (Ye = !1, yi()) {
|
|
3348
3349
|
var s = document.activeElement && document.activeElement.contentDocument || document;
|
|
3349
3350
|
if (s.activeElement !== o.target)
|
|
3350
3351
|
return;
|
|
@@ -3353,14 +3354,14 @@ var Bi = function(r) {
|
|
|
3353
3354
|
a == null && (a = o.target.selectionStart);
|
|
3354
3355
|
var c = t.state.selectionEnd;
|
|
3355
3356
|
c == null && (c = o.target.selectionEnd);
|
|
3356
|
-
var f =
|
|
3357
|
+
var f = fi(u, d, {
|
|
3357
3358
|
selectionStartBefore: a,
|
|
3358
3359
|
selectionEndBefore: c,
|
|
3359
3360
|
selectionEndAfter: o.target.selectionEnd
|
|
3360
3361
|
}, l);
|
|
3361
3362
|
d = Ce(f, l);
|
|
3362
|
-
var g = o.target.selectionStart, p = o.target.selectionEnd, m = !1,
|
|
3363
|
-
|
|
3363
|
+
var g = o.target.selectionStart, p = o.target.selectionEnd, m = !1, v = nn(u, l, g);
|
|
3364
|
+
v !== void 0 && t.state.selectionEnd > v && (g = v + (o.nativeEvent.data ? o.nativeEvent.data.length : 0), p = g, m = !0), t.setState({
|
|
3364
3365
|
selectionStart: g,
|
|
3365
3366
|
selectionEnd: p,
|
|
3366
3367
|
setSelectionAfterMentionChange: m
|
|
@@ -3377,12 +3378,12 @@ var Bi = function(r) {
|
|
|
3377
3378
|
if (t.setState({
|
|
3378
3379
|
selectionStart: o.target.selectionStart,
|
|
3379
3380
|
selectionEnd: o.target.selectionEnd
|
|
3380
|
-
}), !
|
|
3381
|
+
}), !Ye) {
|
|
3381
3382
|
var s = t.inputElement;
|
|
3382
3383
|
o.target.selectionStart === o.target.selectionEnd ? t.updateMentionsQueries(s.value, o.target.selectionStart) : t.clearSuggestions(), t.updateHighlighterScroll(), t.props.onSelect(o);
|
|
3383
3384
|
}
|
|
3384
3385
|
}), H(k(t), "handleKeyDown", function(o) {
|
|
3385
|
-
var s =
|
|
3386
|
+
var s = Ve(t.state.suggestions);
|
|
3386
3387
|
if (s === 0 || !t.suggestionsElement) {
|
|
3387
3388
|
t.props.onKeyDown(o);
|
|
3388
3389
|
return;
|
|
@@ -3412,7 +3413,7 @@ var Bi = function(r) {
|
|
|
3412
3413
|
return;
|
|
3413
3414
|
}
|
|
3414
3415
|
}), H(k(t), "shiftFocus", function(o) {
|
|
3415
|
-
var s =
|
|
3416
|
+
var s = Ve(t.state.suggestions);
|
|
3416
3417
|
t.setState({
|
|
3417
3418
|
focusIndex: (s + t.state.focusIndex + o) % s,
|
|
3418
3419
|
scrollFocusedIntoView: !0
|
|
@@ -3420,7 +3421,7 @@ var Bi = function(r) {
|
|
|
3420
3421
|
}), H(k(t), "selectFocused", function() {
|
|
3421
3422
|
var o = t.state, s = o.suggestions, u = o.focusIndex, l = Object.values(s).reduce(function(c, f) {
|
|
3422
3423
|
var g = f.results, p = f.queryInfo;
|
|
3423
|
-
return [].concat(
|
|
3424
|
+
return [].concat(Ge(c), Ge(g.map(function(m) {
|
|
3424
3425
|
return {
|
|
3425
3426
|
result: m,
|
|
3426
3427
|
queryInfo: p
|
|
@@ -3448,24 +3449,24 @@ var Bi = function(r) {
|
|
|
3448
3449
|
}), H(k(t), "updateSuggestionsPosition", function() {
|
|
3449
3450
|
var o = t.state.caretPosition, s = t.props, u = s.suggestionsPortalHost, l = s.allowSuggestionsAboveCursor, d = s.forceSuggestionsAboveCursor;
|
|
3450
3451
|
if (!(!o || !t.suggestionsElement)) {
|
|
3451
|
-
var a = t.suggestionsElement, c = t.highlighterElement, f = c.getBoundingClientRect(), g =
|
|
3452
|
+
var a = t.suggestionsElement, c = t.highlighterElement, f = c.getBoundingClientRect(), g = ct(c, "font-size"), p = {
|
|
3452
3453
|
left: f.left + o.left,
|
|
3453
3454
|
top: f.top + o.top + g
|
|
3454
3455
|
}, m = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
|
3455
3456
|
if (a) {
|
|
3456
|
-
var
|
|
3457
|
+
var v = {};
|
|
3457
3458
|
if (u) {
|
|
3458
|
-
|
|
3459
|
+
v.position = "fixed";
|
|
3459
3460
|
var E = p.left, C = p.top;
|
|
3460
|
-
E -=
|
|
3461
|
+
E -= ct(a, "margin-left"), C -= ct(a, "margin-top"), E -= c.scrollLeft, C -= c.scrollTop;
|
|
3461
3462
|
var S = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
3462
|
-
E + a.offsetWidth > S ?
|
|
3463
|
+
E + a.offsetWidth > S ? v.left = Math.max(0, S - a.offsetWidth) : v.left = E, l && C + a.offsetHeight > m && a.offsetHeight < C - g || d ? v.top = Math.max(0, C - a.offsetHeight - g) : v.top = C;
|
|
3463
3464
|
} else {
|
|
3464
3465
|
var I = o.left - c.scrollLeft, y = o.top - c.scrollTop;
|
|
3465
|
-
I + a.offsetWidth > t.containerElement.offsetWidth ?
|
|
3466
|
+
I + a.offsetWidth > t.containerElement.offsetWidth ? v.right = 0 : v.left = I, l && p.top - c.scrollTop + a.offsetHeight > m && a.offsetHeight < f.top - g - c.scrollTop || d ? v.top = y - a.offsetHeight - g : v.top = y;
|
|
3466
3467
|
}
|
|
3467
|
-
|
|
3468
|
-
suggestionsPosition:
|
|
3468
|
+
v.left === t.state.suggestionsPosition.left && v.top === t.state.suggestionsPosition.top && v.position === t.state.suggestionsPosition.position || t.setState({
|
|
3469
|
+
suggestionsPosition: v
|
|
3469
3470
|
});
|
|
3470
3471
|
}
|
|
3471
3472
|
}
|
|
@@ -3473,9 +3474,9 @@ var Bi = function(r) {
|
|
|
3473
3474
|
var o = t.inputElement, s = t.highlighterElement;
|
|
3474
3475
|
!o || !s || (s.scrollLeft = o.scrollLeft, s.scrollTop = o.scrollTop, s.height = o.height);
|
|
3475
3476
|
}), H(k(t), "handleCompositionStart", function() {
|
|
3476
|
-
|
|
3477
|
+
Ye = !0;
|
|
3477
3478
|
}), H(k(t), "handleCompositionEnd", function() {
|
|
3478
|
-
|
|
3479
|
+
Ye = !1;
|
|
3479
3480
|
}), H(k(t), "setSelection", function(o, s) {
|
|
3480
3481
|
if (!(o === null || s === null)) {
|
|
3481
3482
|
var u = t.inputElement;
|
|
@@ -3490,15 +3491,15 @@ var Bi = function(r) {
|
|
|
3490
3491
|
t._queryId++, t.suggestions = {}, t.setState({
|
|
3491
3492
|
suggestions: {}
|
|
3492
3493
|
});
|
|
3493
|
-
var u = t.props.value || "", l = t.props.children, d = Ee(l), a =
|
|
3494
|
+
var u = t.props.value || "", l = t.props.children, d = Ee(l), a = ie(u, d, s, "NULL");
|
|
3494
3495
|
if (a !== null) {
|
|
3495
|
-
var c =
|
|
3496
|
-
|
|
3496
|
+
var c = pi(u.substring(0, a), d), f = o.substring(c, s);
|
|
3497
|
+
G.Children.forEach(l, function(g, p) {
|
|
3497
3498
|
if (g) {
|
|
3498
|
-
var m =
|
|
3499
|
-
if (
|
|
3500
|
-
var E = c + f.indexOf(
|
|
3501
|
-
t.queryData(
|
|
3499
|
+
var m = Pi(g.props.trigger, t.props), v = f.match(m);
|
|
3500
|
+
if (v) {
|
|
3501
|
+
var E = c + f.indexOf(v[1], v.index);
|
|
3502
|
+
t.queryData(v[2], p, E, E + v[1].length, o);
|
|
3502
3503
|
}
|
|
3503
3504
|
}
|
|
3504
3505
|
});
|
|
@@ -3509,7 +3510,7 @@ var Bi = function(r) {
|
|
|
3509
3510
|
focusIndex: 0
|
|
3510
3511
|
});
|
|
3511
3512
|
}), H(k(t), "queryData", function(o, s, u, l, d) {
|
|
3512
|
-
var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p =
|
|
3513
|
+
var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p = Fi(g.props.data, f), m = p(o, t.updateSuggestions.bind(null, t._queryId, s, o, u, l, d));
|
|
3513
3514
|
m instanceof Array && t.updateSuggestions(t._queryId, s, o, u, l, d, m);
|
|
3514
3515
|
}), H(k(t), "updateSuggestions", function(o, s, u, l, d, a, c) {
|
|
3515
3516
|
if (o === t._queryId) {
|
|
@@ -3523,14 +3524,14 @@ var Bi = function(r) {
|
|
|
3523
3524
|
},
|
|
3524
3525
|
results: c
|
|
3525
3526
|
}));
|
|
3526
|
-
var f = t.state.focusIndex, g =
|
|
3527
|
+
var f = t.state.focusIndex, g = Ve(t.suggestions);
|
|
3527
3528
|
t.setState({
|
|
3528
3529
|
suggestions: t.suggestions,
|
|
3529
3530
|
focusIndex: f >= g ? Math.max(g - 1, 0) : f
|
|
3530
3531
|
});
|
|
3531
3532
|
}
|
|
3532
3533
|
}), H(k(t), "addMention", function(o, s) {
|
|
3533
|
-
var u = o.id, l = o.display, d = s.childIndex, a = s.querySequenceStart, c = s.querySequenceEnd, f = s.plainTextValue, g = t.props.value || "", p = Ee(t.props.children), m = De.toArray(t.props.children)[d],
|
|
3534
|
+
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], v = m.props, E = v.markup, C = v.displayTransform, S = v.appendSpaceOnAdd, I = v.onAdd, y = ie(g, p, a, "START"), A = y + c - a, D = vi(E, u, l);
|
|
3534
3535
|
S && (D += " ");
|
|
3535
3536
|
var b = Fe(g, y, A, D);
|
|
3536
3537
|
t.inputElement.focus();
|
|
@@ -3550,11 +3551,11 @@ var Bi = function(r) {
|
|
|
3550
3551
|
t.executeOnChange(P, b, Y, q), I && I(u, l, y, A), t.clearSuggestions();
|
|
3551
3552
|
}), H(k(t), "isLoading", function() {
|
|
3552
3553
|
var o = !1;
|
|
3553
|
-
return
|
|
3554
|
+
return G.Children.forEach(t.props.children, function(s) {
|
|
3554
3555
|
o = o || s && s.props.isLoading;
|
|
3555
3556
|
}), o;
|
|
3556
3557
|
}), H(k(t), "isOpened", function() {
|
|
3557
|
-
return
|
|
3558
|
+
return vt(t.state.selectionStart) && (Ve(t.state.suggestions) !== 0 || t.isLoading());
|
|
3558
3559
|
}), 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 = {
|
|
3559
3560
|
focusIndex: 0,
|
|
3560
3561
|
selectionStart: null,
|
|
@@ -3565,7 +3566,7 @@ var Bi = function(r) {
|
|
|
3565
3566
|
setSelectionAfterHandlePaste: !1
|
|
3566
3567
|
}, t;
|
|
3567
3568
|
}
|
|
3568
|
-
return
|
|
3569
|
+
return Oo(i, [{
|
|
3569
3570
|
key: "componentDidMount",
|
|
3570
3571
|
value: function() {
|
|
3571
3572
|
document.addEventListener("copy", this.handleCopy), document.addEventListener("cut", this.handleCut), document.addEventListener("paste", this.handlePaste), this.updateSuggestionsPosition();
|
|
@@ -3587,7 +3588,7 @@ var Bi = function(r) {
|
|
|
3587
3588
|
}, {
|
|
3588
3589
|
key: "render",
|
|
3589
3590
|
value: function() {
|
|
3590
|
-
return /* @__PURE__ */
|
|
3591
|
+
return /* @__PURE__ */ G.createElement("div", ue({
|
|
3591
3592
|
ref: this.setContainerElement
|
|
3592
3593
|
}, this.props.style), this.renderControl(), this.renderSuggestionsOverlay());
|
|
3593
3594
|
}
|
|
@@ -3596,13 +3597,13 @@ var Bi = function(r) {
|
|
|
3596
3597
|
value: function(t) {
|
|
3597
3598
|
if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
|
|
3598
3599
|
t.preventDefault();
|
|
3599
|
-
var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.value, a = l.children, c = Ee(a), f =
|
|
3600
|
+
var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.value, a = l.children, c = Ee(a), f = ie(d, c, s, "START"), g = ie(d, c, u, "END"), p = t.clipboardData.getData("text/react-mentions"), m = t.clipboardData.getData("text/plain"), v = Fe(d, f, g, p || m).replace(/\r/g, ""), E = Ce(v, c), C = {
|
|
3600
3601
|
target: de(de({}, t.target), {}, {
|
|
3601
|
-
value:
|
|
3602
|
+
value: v
|
|
3602
3603
|
})
|
|
3603
3604
|
};
|
|
3604
|
-
this.executeOnChange(C,
|
|
3605
|
-
var S =
|
|
3605
|
+
this.executeOnChange(C, v, E, Pe(v, c));
|
|
3606
|
+
var S = nn(d, c, s), I = (S || s) + Ce(p || m, c).length;
|
|
3606
3607
|
this.setState({
|
|
3607
3608
|
selectionStart: I,
|
|
3608
3609
|
selectionEnd: I,
|
|
@@ -3613,7 +3614,7 @@ var Bi = function(r) {
|
|
|
3613
3614
|
}, {
|
|
3614
3615
|
key: "saveSelectionToClipboard",
|
|
3615
3616
|
value: function(t) {
|
|
3616
|
-
var o = this.inputElement.selectionStart, s = this.inputElement.selectionEnd, u = this.props, l = u.children, d = u.value, a = Ee(l), c =
|
|
3617
|
+
var o = this.inputElement.selectionStart, s = this.inputElement.selectionEnd, u = this.props, l = u.children, d = u.value, a = Ee(l), c = ie(d, a, o, "START"), f = ie(d, a, s, "END");
|
|
3617
3618
|
t.clipboardData.setData("text/plain", t.target.value.slice(o, s)), t.clipboardData.setData("text/react-mentions", d.slice(c, f));
|
|
3618
3619
|
}
|
|
3619
3620
|
}, {
|
|
@@ -3631,19 +3632,19 @@ var Bi = function(r) {
|
|
|
3631
3632
|
value: function(t) {
|
|
3632
3633
|
if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
|
|
3633
3634
|
t.preventDefault(), this.saveSelectionToClipboard(t);
|
|
3634
|
-
var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.children, a = l.value, c = Ee(d), f =
|
|
3635
|
+
var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.children, a = l.value, c = Ee(d), f = ie(a, c, s, "START"), g = ie(a, c, u, "END"), p = [a.slice(0, f), a.slice(g)].join(""), m = Ce(p, c), v = {
|
|
3635
3636
|
target: de(de({}, t.target), {}, {
|
|
3636
3637
|
value: m
|
|
3637
3638
|
})
|
|
3638
3639
|
};
|
|
3639
|
-
this.executeOnChange(
|
|
3640
|
+
this.executeOnChange(v, p, m, Pe(a, c));
|
|
3640
3641
|
}
|
|
3641
3642
|
}
|
|
3642
3643
|
// Handle input element's change event
|
|
3643
3644
|
}]), i;
|
|
3644
|
-
}(
|
|
3645
|
-
H(
|
|
3646
|
-
H(
|
|
3645
|
+
}(G.Component);
|
|
3646
|
+
H(Nt, "propTypes", Bn);
|
|
3647
|
+
H(Nt, "defaultProps", {
|
|
3647
3648
|
ignoreAccents: !1,
|
|
3648
3649
|
singleLine: !1,
|
|
3649
3650
|
allowSuggestionsAboveCursor: !1,
|
|
@@ -3657,10 +3658,10 @@ H(wt, "defaultProps", {
|
|
|
3657
3658
|
return null;
|
|
3658
3659
|
}
|
|
3659
3660
|
});
|
|
3660
|
-
var
|
|
3661
|
+
var ct = function(r, i) {
|
|
3661
3662
|
var n = parseFloat(window.getComputedStyle(r, null).getPropertyValue(i));
|
|
3662
3663
|
return isFinite(n) ? n : 0;
|
|
3663
|
-
},
|
|
3664
|
+
}, Mi = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent), Li = nt({
|
|
3664
3665
|
position: "relative",
|
|
3665
3666
|
overflowY: "visible",
|
|
3666
3667
|
input: {
|
|
@@ -3682,7 +3683,7 @@ var ut = function(r, i) {
|
|
|
3682
3683
|
bottom: 0,
|
|
3683
3684
|
overflow: "hidden",
|
|
3684
3685
|
resize: "none"
|
|
3685
|
-
},
|
|
3686
|
+
}, Mi ? {
|
|
3686
3687
|
marginTop: 1,
|
|
3687
3688
|
marginLeft: -3
|
|
3688
3689
|
} : null)
|
|
@@ -3693,17 +3694,17 @@ var ut = function(r, i) {
|
|
|
3693
3694
|
"&singleLine": r,
|
|
3694
3695
|
"&multiLine": !r
|
|
3695
3696
|
};
|
|
3696
|
-
}),
|
|
3697
|
+
}), Bi = Li(Nt), $i = {
|
|
3697
3698
|
fontWeight: "inherit"
|
|
3698
|
-
},
|
|
3699
|
-
var i = r.display, n = r.style, t = r.className, o = r.classNames, s =
|
|
3699
|
+
}, jt = function(r) {
|
|
3700
|
+
var i = r.display, n = r.style, t = r.className, o = r.classNames, s = Rt($i, {
|
|
3700
3701
|
style: n,
|
|
3701
3702
|
className: t,
|
|
3702
3703
|
classNames: o
|
|
3703
3704
|
});
|
|
3704
|
-
return /* @__PURE__ */
|
|
3705
|
+
return /* @__PURE__ */ G.createElement("strong", s, i);
|
|
3705
3706
|
};
|
|
3706
|
-
|
|
3707
|
+
jt.propTypes = {
|
|
3707
3708
|
/**
|
|
3708
3709
|
* Called when a new mention is added in the input
|
|
3709
3710
|
*
|
|
@@ -3727,7 +3728,7 @@ Nt.propTypes = {
|
|
|
3727
3728
|
allowSpaceInQuery: O.bool,
|
|
3728
3729
|
isLoading: O.bool
|
|
3729
3730
|
};
|
|
3730
|
-
|
|
3731
|
+
jt.defaultProps = {
|
|
3731
3732
|
trigger: "@",
|
|
3732
3733
|
markup: "@[__display__](__id__)",
|
|
3733
3734
|
displayTransform: function(r, i) {
|
|
@@ -3743,7 +3744,7 @@ Nt.defaultProps = {
|
|
|
3743
3744
|
isLoading: !1,
|
|
3744
3745
|
appendSpaceOnAdd: !1
|
|
3745
3746
|
};
|
|
3746
|
-
const
|
|
3747
|
+
const Hi = {
|
|
3747
3748
|
"&multiLine": {
|
|
3748
3749
|
minHeight: "40px"
|
|
3749
3750
|
},
|
|
@@ -3773,7 +3774,7 @@ const zi = {
|
|
|
3773
3774
|
}
|
|
3774
3775
|
}
|
|
3775
3776
|
}
|
|
3776
|
-
},
|
|
3777
|
+
}, ki = ({
|
|
3777
3778
|
value: e,
|
|
3778
3779
|
setValue: r,
|
|
3779
3780
|
users: i,
|
|
@@ -3790,35 +3791,35 @@ const zi = {
|
|
|
3790
3791
|
}, l = (d) => {
|
|
3791
3792
|
r(d.target.value);
|
|
3792
3793
|
};
|
|
3793
|
-
return /* @__PURE__ */
|
|
3794
|
-
|
|
3794
|
+
return /* @__PURE__ */ h.jsx(
|
|
3795
|
+
Bi,
|
|
3795
3796
|
{
|
|
3796
3797
|
autoFocus: !0,
|
|
3797
3798
|
value: e,
|
|
3798
3799
|
onChange: l,
|
|
3799
3800
|
style: {
|
|
3800
|
-
...
|
|
3801
|
+
...Hi,
|
|
3801
3802
|
minHeight: "40px",
|
|
3802
3803
|
marginBottom: "10px"
|
|
3803
3804
|
},
|
|
3804
3805
|
placeholder: n,
|
|
3805
3806
|
className: "mentions-input",
|
|
3806
3807
|
onKeyDown: s,
|
|
3807
|
-
children: /* @__PURE__ */
|
|
3808
|
-
|
|
3808
|
+
children: /* @__PURE__ */ h.jsx(
|
|
3809
|
+
jt,
|
|
3809
3810
|
{
|
|
3810
3811
|
displayTransform: (d, a) => `@${a}`,
|
|
3811
3812
|
trigger: "@",
|
|
3812
3813
|
markup: "@[__id__](__display__)",
|
|
3813
3814
|
data: o,
|
|
3814
3815
|
appendSpaceOnAdd: !0,
|
|
3815
|
-
renderSuggestion: (d, a) => /* @__PURE__ */
|
|
3816
|
+
renderSuggestion: (d, a) => /* @__PURE__ */ h.jsx("div", { className: `user ${a ? "focused" : ""}`, children: d.display }),
|
|
3816
3817
|
onAdd: u
|
|
3817
3818
|
}
|
|
3818
3819
|
)
|
|
3819
3820
|
}
|
|
3820
3821
|
);
|
|
3821
|
-
},
|
|
3822
|
+
}, $n = ({
|
|
3822
3823
|
comment: e,
|
|
3823
3824
|
setComment: r,
|
|
3824
3825
|
loading: i,
|
|
@@ -3826,10 +3827,10 @@ const zi = {
|
|
|
3826
3827
|
currentUser: t,
|
|
3827
3828
|
placeholder: o,
|
|
3828
3829
|
onEnterKeypress: s
|
|
3829
|
-
}) => /* @__PURE__ */
|
|
3830
|
-
t ? /* @__PURE__ */
|
|
3831
|
-
/* @__PURE__ */
|
|
3832
|
-
|
|
3830
|
+
}) => /* @__PURE__ */ h.jsxs("div", { className: me.conversationInputForm, children: [
|
|
3831
|
+
t ? /* @__PURE__ */ h.jsx(Sn, { user: t }) : null,
|
|
3832
|
+
/* @__PURE__ */ h.jsx(
|
|
3833
|
+
ki,
|
|
3833
3834
|
{
|
|
3834
3835
|
value: e,
|
|
3835
3836
|
setValue: r,
|
|
@@ -3838,15 +3839,15 @@ const zi = {
|
|
|
3838
3839
|
onEnterKeypress: s
|
|
3839
3840
|
}
|
|
3840
3841
|
),
|
|
3841
|
-
/* @__PURE__ */
|
|
3842
|
-
] }),
|
|
3842
|
+
/* @__PURE__ */ h.jsx(un, { loading: i, color: "primary", children: /* @__PURE__ */ h.jsx(rr, {}) })
|
|
3843
|
+
] }), Hn = ({
|
|
3843
3844
|
meta: { highlight: e, filePath: r, field: i, column: n }
|
|
3844
3845
|
}) => {
|
|
3845
3846
|
if (!e)
|
|
3846
3847
|
return null;
|
|
3847
3848
|
const t = n ? `${r} (${n})` : r;
|
|
3848
|
-
return /* @__PURE__ */
|
|
3849
|
-
|
|
3849
|
+
return /* @__PURE__ */ h.jsx("div", { className: me.highlightText, children: /* @__PURE__ */ h.jsx(
|
|
3850
|
+
er,
|
|
3850
3851
|
{
|
|
3851
3852
|
code: e,
|
|
3852
3853
|
language: i ? "markdown" : "sql",
|
|
@@ -3855,7 +3856,7 @@ const zi = {
|
|
|
3855
3856
|
theme: "light"
|
|
3856
3857
|
}
|
|
3857
3858
|
) });
|
|
3858
|
-
},
|
|
3859
|
+
}, Ui = () => {
|
|
3859
3860
|
const e = ne((a) => a.users), r = ne(
|
|
3860
3861
|
(a) => a.newConversation
|
|
3861
3862
|
), i = ne(
|
|
@@ -3867,7 +3868,7 @@ const zi = {
|
|
|
3867
3868
|
s(!0);
|
|
3868
3869
|
try {
|
|
3869
3870
|
console.log("saving conversation", r, u);
|
|
3870
|
-
const c = await
|
|
3871
|
+
const c = await eo(
|
|
3871
3872
|
n,
|
|
3872
3873
|
{
|
|
3873
3874
|
...r,
|
|
@@ -3884,19 +3885,19 @@ const zi = {
|
|
|
3884
3885
|
} catch (c) {
|
|
3885
3886
|
console.error("error while saving conversation", r, c);
|
|
3886
3887
|
}
|
|
3887
|
-
t(
|
|
3888
|
+
t(yn()), s(!1), t(It(!0)), t(xt()), l("");
|
|
3888
3889
|
}
|
|
3889
3890
|
};
|
|
3890
|
-
return /* @__PURE__ */
|
|
3891
|
-
/* @__PURE__ */
|
|
3892
|
-
/* @__PURE__ */
|
|
3893
|
-
|
|
3891
|
+
return /* @__PURE__ */ h.jsx($e, { className: me.newConversationForm, children: /* @__PURE__ */ h.jsx(He, { className: "al-pt-4", children: /* @__PURE__ */ h.jsxs("form", { onSubmit: d, children: [
|
|
3892
|
+
/* @__PURE__ */ h.jsx("h4", { children: "Add comment" }),
|
|
3893
|
+
/* @__PURE__ */ h.jsx(
|
|
3894
|
+
Hn,
|
|
3894
3895
|
{
|
|
3895
3896
|
meta: (r == null ? void 0 : r.meta) || {}
|
|
3896
3897
|
}
|
|
3897
3898
|
),
|
|
3898
|
-
/* @__PURE__ */
|
|
3899
|
-
|
|
3899
|
+
/* @__PURE__ */ h.jsx(
|
|
3900
|
+
$n,
|
|
3900
3901
|
{
|
|
3901
3902
|
comment: u,
|
|
3902
3903
|
setComment: l,
|
|
@@ -3908,57 +3909,57 @@ const zi = {
|
|
|
3908
3909
|
}
|
|
3909
3910
|
)
|
|
3910
3911
|
] }) }) });
|
|
3911
|
-
},
|
|
3912
|
+
}, qi = ({
|
|
3912
3913
|
conversationGroupId: e,
|
|
3913
3914
|
shareId: r
|
|
3914
3915
|
}) => {
|
|
3915
3916
|
const { onResolve: i, source: n } = Be(), [t, o] = re(!1), s = async () => {
|
|
3916
|
-
e && (o(!0), await
|
|
3917
|
+
e && (o(!0), await oo(r, e, n), i(), o(!1));
|
|
3917
3918
|
};
|
|
3918
|
-
return e ? /* @__PURE__ */
|
|
3919
|
+
return e ? /* @__PURE__ */ h.jsx(
|
|
3919
3920
|
Ie,
|
|
3920
3921
|
{
|
|
3921
3922
|
disabled: t,
|
|
3922
3923
|
className: me.resolveButton,
|
|
3923
3924
|
title: "Resolve conversation",
|
|
3924
3925
|
onClick: s,
|
|
3925
|
-
children: /* @__PURE__ */
|
|
3926
|
+
children: /* @__PURE__ */ h.jsx(or, {})
|
|
3926
3927
|
}
|
|
3927
3928
|
) : null;
|
|
3928
|
-
},
|
|
3929
|
+
}, kn = ({
|
|
3929
3930
|
user: e,
|
|
3930
3931
|
timestamp: r,
|
|
3931
3932
|
showResolveButton: i,
|
|
3932
3933
|
conversationGroupId: n,
|
|
3933
3934
|
shareId: t
|
|
3934
|
-
}) => /* @__PURE__ */
|
|
3935
|
-
/* @__PURE__ */
|
|
3936
|
-
/* @__PURE__ */
|
|
3937
|
-
/* @__PURE__ */
|
|
3935
|
+
}) => /* @__PURE__ */ h.jsx(hr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "center", justify: "between", className: "mb-0", children: [
|
|
3936
|
+
/* @__PURE__ */ h.jsxs(oe, { align: "center", children: [
|
|
3937
|
+
/* @__PURE__ */ h.jsx(Sn, { user: e }),
|
|
3938
|
+
/* @__PURE__ */ h.jsxs("h4", { children: [
|
|
3938
3939
|
e == null ? void 0 : e.first_name,
|
|
3939
3940
|
" ",
|
|
3940
3941
|
e == null ? void 0 : e.last_name
|
|
3941
3942
|
] }),
|
|
3942
|
-
/* @__PURE__ */
|
|
3943
|
+
/* @__PURE__ */ h.jsx("span", { children: dt(r).format("HH:mm, DD MMM YY") })
|
|
3943
3944
|
] }),
|
|
3944
|
-
i ? /* @__PURE__ */
|
|
3945
|
-
] }),
|
|
3945
|
+
i ? /* @__PURE__ */ h.jsx(qi, { conversationGroupId: n, shareId: t }) : null
|
|
3946
|
+
] }) }), zi = ({ conversation: e, shareId: r }) => {
|
|
3946
3947
|
const { users: i } = Be(), n = fe(() => {
|
|
3947
3948
|
if (e != null && e.user_id)
|
|
3948
3949
|
return i[e.user_id];
|
|
3949
3950
|
}, [e.user_id, i]);
|
|
3950
|
-
return /* @__PURE__ */
|
|
3951
|
-
/* @__PURE__ */
|
|
3952
|
-
/* @__PURE__ */
|
|
3951
|
+
return /* @__PURE__ */ h.jsxs($e, { children: [
|
|
3952
|
+
/* @__PURE__ */ h.jsx(kn, { user: n, timestamp: e.timestamp, shareId: r }),
|
|
3953
|
+
/* @__PURE__ */ h.jsx(He, { children: /* @__PURE__ */ h.jsx("p", { children: e.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }) })
|
|
3953
3954
|
] });
|
|
3954
|
-
},
|
|
3955
|
+
}, Vi = ({ conversationGroupId: e, shareId: r }) => {
|
|
3955
3956
|
const { currentUser: i, users: n, onReplyAdd: t, source: o } = Be(), s = Object.values(n), [u, l] = re(""), [d, a] = re(!1), c = async (f) => {
|
|
3956
3957
|
if (f == null || f.stopPropagation(), f == null || f.preventDefault(), !(!r || !e)) {
|
|
3957
3958
|
a(!0), console.log("saving reply", r, e, {
|
|
3958
3959
|
message: u
|
|
3959
3960
|
});
|
|
3960
3961
|
try {
|
|
3961
|
-
await
|
|
3962
|
+
await to(
|
|
3962
3963
|
r,
|
|
3963
3964
|
e,
|
|
3964
3965
|
{
|
|
@@ -3972,8 +3973,8 @@ const zi = {
|
|
|
3972
3973
|
a(!1), l("");
|
|
3973
3974
|
}
|
|
3974
3975
|
};
|
|
3975
|
-
return /* @__PURE__ */
|
|
3976
|
-
|
|
3976
|
+
return /* @__PURE__ */ h.jsx("div", { className: me.replyForm, children: /* @__PURE__ */ h.jsx("form", { onSubmit: c, className: "", children: /* @__PURE__ */ h.jsx(
|
|
3977
|
+
$n,
|
|
3977
3978
|
{
|
|
3978
3979
|
comment: u,
|
|
3979
3980
|
setComment: l,
|
|
@@ -3983,7 +3984,7 @@ const zi = {
|
|
|
3983
3984
|
onEnterKeypress: c
|
|
3984
3985
|
}
|
|
3985
3986
|
) }) });
|
|
3986
|
-
},
|
|
3987
|
+
}, Yi = ({ conversationGroup: e, shareId: r, onSelect: i }) => {
|
|
3987
3988
|
var f;
|
|
3988
3989
|
const { users: n } = Be(), t = fe(() => {
|
|
3989
3990
|
if (e.owner)
|
|
@@ -4002,9 +4003,9 @@ const zi = {
|
|
|
4002
4003
|
if (!((f = e == null ? void 0 : e.conversations) != null && f.length) || (e == null ? void 0 : e.status) !== "Pending")
|
|
4003
4004
|
return null;
|
|
4004
4005
|
const [d, ...a] = e.conversations, c = a.length ? a.length > 1 ? `${a.length} replies` : `${a.length} reply` : "Reply";
|
|
4005
|
-
return /* @__PURE__ */
|
|
4006
|
-
/* @__PURE__ */
|
|
4007
|
-
|
|
4006
|
+
return /* @__PURE__ */ h.jsx("div", { ref: l, className: me.conversationGroup, children: /* @__PURE__ */ h.jsxs($e, { className: `${o ? "active" : ""}`, onClick: i, children: [
|
|
4007
|
+
/* @__PURE__ */ h.jsx(
|
|
4008
|
+
kn,
|
|
4008
4009
|
{
|
|
4009
4010
|
user: t,
|
|
4010
4011
|
timestamp: d.timestamp,
|
|
@@ -4013,13 +4014,13 @@ const zi = {
|
|
|
4013
4014
|
shareId: r
|
|
4014
4015
|
}
|
|
4015
4016
|
),
|
|
4016
|
-
/* @__PURE__ */
|
|
4017
|
-
/* @__PURE__ */
|
|
4018
|
-
/* @__PURE__ */
|
|
4019
|
-
/* @__PURE__ */
|
|
4020
|
-
a.length ? /* @__PURE__ */
|
|
4021
|
-
s ? /* @__PURE__ */
|
|
4022
|
-
|
|
4017
|
+
/* @__PURE__ */ h.jsxs(He, { children: [
|
|
4018
|
+
/* @__PURE__ */ h.jsx(Hn, { meta: e.meta }),
|
|
4019
|
+
/* @__PURE__ */ h.jsx("p", { children: d.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }),
|
|
4020
|
+
/* @__PURE__ */ h.jsx(ye, { onClick: () => u((g) => !g), variant: "link", children: c }),
|
|
4021
|
+
a.length ? /* @__PURE__ */ h.jsx(h.Fragment, { children: s ? /* @__PURE__ */ h.jsx(h.Fragment, { children: a.map((g) => /* @__PURE__ */ h.jsx(zi, { conversation: g, shareId: r }, g.conversation_id)) }) : null }) : null,
|
|
4022
|
+
s ? /* @__PURE__ */ h.jsx(
|
|
4023
|
+
Vi,
|
|
4023
4024
|
{
|
|
4024
4025
|
conversationGroupId: e.conversation_group_id,
|
|
4025
4026
|
shareId: r
|
|
@@ -4027,7 +4028,7 @@ const zi = {
|
|
|
4027
4028
|
) : null
|
|
4028
4029
|
] })
|
|
4029
4030
|
] }) });
|
|
4030
|
-
},
|
|
4031
|
+
}, Un = _e({
|
|
4031
4032
|
users: {},
|
|
4032
4033
|
conversationGroup: void 0,
|
|
4033
4034
|
currentUser: void 0,
|
|
@@ -4036,8 +4037,8 @@ const zi = {
|
|
|
4036
4037
|
onSelect: () => null,
|
|
4037
4038
|
onResolve: () => null,
|
|
4038
4039
|
onReplyAdd: () => null,
|
|
4039
|
-
source:
|
|
4040
|
-
}),
|
|
4040
|
+
source: bt.DBT_DOCS
|
|
4041
|
+
}), Wi = ({
|
|
4041
4042
|
currentUser: e,
|
|
4042
4043
|
conversationGroup: r,
|
|
4043
4044
|
shareId: i,
|
|
@@ -4072,15 +4073,15 @@ const zi = {
|
|
|
4072
4073
|
l
|
|
4073
4074
|
]
|
|
4074
4075
|
);
|
|
4075
|
-
return !r || !i ? null : /* @__PURE__ */
|
|
4076
|
-
|
|
4076
|
+
return !r || !i ? null : /* @__PURE__ */ h.jsx(Un.Provider, { value: d, children: /* @__PURE__ */ h.jsx(
|
|
4077
|
+
Yi,
|
|
4077
4078
|
{
|
|
4078
4079
|
conversationGroup: r,
|
|
4079
4080
|
shareId: i,
|
|
4080
4081
|
onSelect: n
|
|
4081
4082
|
}
|
|
4082
4083
|
) });
|
|
4083
|
-
}, Be = () => be(
|
|
4084
|
+
}, Be = () => be(Un), Ki = () => {
|
|
4084
4085
|
const e = ne((c) => c.source), r = ne(
|
|
4085
4086
|
(c) => c.conversations
|
|
4086
4087
|
), i = ne(
|
|
@@ -4091,14 +4092,14 @@ const zi = {
|
|
|
4091
4092
|
if (!o || !n)
|
|
4092
4093
|
return null;
|
|
4093
4094
|
const u = t[o], l = (c) => {
|
|
4094
|
-
s(
|
|
4095
|
+
s(Mr({ shareId: n, conversationGroupId: c }));
|
|
4095
4096
|
}, d = (c) => {
|
|
4096
|
-
s(
|
|
4097
|
+
s(Tt(c));
|
|
4097
4098
|
}, a = (c) => {
|
|
4098
|
-
console.log("onReplyAdd", c), s(
|
|
4099
|
+
console.log("onReplyAdd", c), s(yn());
|
|
4099
4100
|
};
|
|
4100
|
-
return !r || !Object.keys(r).length ? /* @__PURE__ */
|
|
4101
|
-
|
|
4101
|
+
return !r || !Object.keys(r).length ? /* @__PURE__ */ h.jsx("div", { children: "No conversations yet!" }) : /* @__PURE__ */ h.jsx("div", { children: Object.values(r).map((c) => /* @__PURE__ */ h.jsx(
|
|
4102
|
+
Wi,
|
|
4102
4103
|
{
|
|
4103
4104
|
conversationGroup: c,
|
|
4104
4105
|
shareId: n,
|
|
@@ -4112,28 +4113,28 @@ const zi = {
|
|
|
4112
4113
|
},
|
|
4113
4114
|
c.conversation_group_id
|
|
4114
4115
|
)) });
|
|
4115
|
-
},
|
|
4116
|
+
}, Xi = () => {
|
|
4116
4117
|
const e = ne((s) => s.isRightPanelOpen), r = ne(
|
|
4117
4118
|
(s) => s.selectedConversationId
|
|
4118
4119
|
), i = ne((s) => s.newConversation), n = ce(), t = () => {
|
|
4119
|
-
n(
|
|
4120
|
+
n(It(!1)), n(Tt(void 0)), n(xt());
|
|
4120
4121
|
};
|
|
4121
|
-
return !!i || e || r ? /* @__PURE__ */
|
|
4122
|
-
/* @__PURE__ */
|
|
4122
|
+
return !!i || e || r ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
4123
|
+
/* @__PURE__ */ h.jsx(
|
|
4123
4124
|
ye,
|
|
4124
4125
|
{
|
|
4125
4126
|
variant: "ghost",
|
|
4126
4127
|
onClick: t,
|
|
4127
4128
|
className: me.conversationRightPanelCloseButton,
|
|
4128
|
-
children: /* @__PURE__ */
|
|
4129
|
+
children: /* @__PURE__ */ h.jsx(ir, {})
|
|
4129
4130
|
}
|
|
4130
4131
|
),
|
|
4131
|
-
/* @__PURE__ */
|
|
4132
|
-
/* @__PURE__ */
|
|
4133
|
-
i ? /* @__PURE__ */
|
|
4132
|
+
/* @__PURE__ */ h.jsxs("div", { className: me.conversationRightPanel, children: [
|
|
4133
|
+
/* @__PURE__ */ h.jsx("h3", { children: "Comments" }),
|
|
4134
|
+
i ? /* @__PURE__ */ h.jsx(Ui, {}) : /* @__PURE__ */ h.jsx(Ki, {})
|
|
4134
4135
|
] })
|
|
4135
4136
|
] }) : null;
|
|
4136
|
-
},
|
|
4137
|
+
}, Zi = 10, Gi = () => {
|
|
4137
4138
|
const e = Se(), r = ne(
|
|
4138
4139
|
(s) => s.shareId
|
|
4139
4140
|
), i = ne(
|
|
@@ -4142,45 +4143,45 @@ const zi = {
|
|
|
4142
4143
|
(s) => Object.keys(s.conversations || {})
|
|
4143
4144
|
), o = we(
|
|
4144
4145
|
(s) => {
|
|
4145
|
-
clearTimeout(e.current),
|
|
4146
|
-
console.log("useConversations", u), n(
|
|
4146
|
+
clearTimeout(e.current), no(s).then((u) => {
|
|
4147
|
+
console.log("useConversations", u), n(Fr(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
|
|
4147
4148
|
o(s);
|
|
4148
|
-
},
|
|
4149
|
+
}, Zi * 1e3);
|
|
4149
4150
|
}).catch((u) => console.error("error while fetching conversations list", u)).finally(() => {
|
|
4150
|
-
n(
|
|
4151
|
+
n($t(ae.INITIALIZED));
|
|
4151
4152
|
});
|
|
4152
4153
|
},
|
|
4153
4154
|
[n]
|
|
4154
4155
|
);
|
|
4155
4156
|
return le(() => {
|
|
4156
|
-
i !== ae.UNINITIALIZED || !r || (n(
|
|
4157
|
+
i !== ae.UNINITIALIZED || !r || (n($t(ae.LOADING)), o(r));
|
|
4157
4158
|
}, [n, i, t, r, o]), { isLoading: i === ae.LOADING };
|
|
4158
|
-
},
|
|
4159
|
+
}, Qi = () => {
|
|
4159
4160
|
const e = ce(), r = ne(
|
|
4160
4161
|
(t) => Object.keys(t.users || {})
|
|
4161
4162
|
), [i, n] = re(ae.UNINITIALIZED);
|
|
4162
4163
|
return le(() => {
|
|
4163
|
-
i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING),
|
|
4164
|
-
console.log("useConversationUsers", t), e(
|
|
4164
|
+
i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING), ro().then((t) => {
|
|
4165
|
+
console.log("useConversationUsers", t), e(Pr(t));
|
|
4165
4166
|
}).catch((t) => console.error("error while fetching users list", t)).finally(() => {
|
|
4166
4167
|
n(ae.INITIALIZED);
|
|
4167
4168
|
}));
|
|
4168
4169
|
}, [e, i, r]), { isLoading: i === ae.LOADING };
|
|
4169
|
-
},
|
|
4170
|
-
/* @__PURE__ */
|
|
4171
|
-
/* @__PURE__ */
|
|
4172
|
-
] })),
|
|
4173
|
-
/* @__PURE__ */
|
|
4170
|
+
}, Ji = () => (Qi(), Gi(), /* @__PURE__ */ h.jsxs("div", { children: [
|
|
4171
|
+
/* @__PURE__ */ h.jsx(Xi, {}),
|
|
4172
|
+
/* @__PURE__ */ h.jsx(uo, {})
|
|
4173
|
+
] })), qn = ({ target: e, ...r }) => yt(
|
|
4174
|
+
/* @__PURE__ */ h.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ h.jsx(dn, {}) }),
|
|
4174
4175
|
e
|
|
4175
|
-
),
|
|
4176
|
+
), es = () => {
|
|
4176
4177
|
var l;
|
|
4177
4178
|
const e = ce(), r = ne(
|
|
4178
4179
|
(d) => d.codeblockLoaded
|
|
4179
|
-
), i = ne((d) => d.manifest), [n, t] = re(0), o = (l =
|
|
4180
|
+
), i = ne((d) => d.manifest), [n, t] = re(0), o = (l = St()) == null ? void 0 : l.parentElement, s = () => {
|
|
4180
4181
|
var f;
|
|
4181
4182
|
if (!o || !i.nodes)
|
|
4182
4183
|
return;
|
|
4183
|
-
const d =
|
|
4184
|
+
const d = _t();
|
|
4184
4185
|
if (!d || d.length < 3) {
|
|
4185
4186
|
console.error("Unable to find model parts", d);
|
|
4186
4187
|
return;
|
|
@@ -4193,7 +4194,7 @@ const zi = {
|
|
|
4193
4194
|
start: { line: n, character: 0 }
|
|
4194
4195
|
}
|
|
4195
4196
|
};
|
|
4196
|
-
e(
|
|
4197
|
+
e(Ot({ meta: c }));
|
|
4197
4198
|
}, u = we(
|
|
4198
4199
|
(d) => {
|
|
4199
4200
|
if (!o)
|
|
@@ -4211,83 +4212,83 @@ const zi = {
|
|
|
4211
4212
|
return o.addEventListener("mousemove", u), () => {
|
|
4212
4213
|
o.removeEventListener("mousemove", u);
|
|
4213
4214
|
};
|
|
4214
|
-
}, [r, o, u]), !r || !o ? null : /* @__PURE__ */
|
|
4215
|
-
},
|
|
4215
|
+
}, [r, o, u]), !r || !o ? null : /* @__PURE__ */ h.jsx(qn, { target: o, onClick: s, style: { top: n * 21.2 } });
|
|
4216
|
+
}, ts = () => {
|
|
4216
4217
|
const e = ce(), r = ne(
|
|
4217
4218
|
(t) => t.codeblockLoaded
|
|
4218
|
-
), i =
|
|
4219
|
+
), i = At(), n = () => {
|
|
4219
4220
|
const t = {
|
|
4220
4221
|
field: "description",
|
|
4221
4222
|
highlight: i == null ? void 0 : i.innerText
|
|
4222
4223
|
};
|
|
4223
|
-
e(
|
|
4224
|
+
e(Ot({ meta: t }));
|
|
4224
4225
|
};
|
|
4225
|
-
return !r || !i ? null : /* @__PURE__ */
|
|
4226
|
-
},
|
|
4227
|
-
/* @__PURE__ */
|
|
4228
|
-
/* @__PURE__ */
|
|
4229
|
-
] }),
|
|
4230
|
-
const { loading: e, shareDetails: r } =
|
|
4226
|
+
return !r || !i ? null : /* @__PURE__ */ h.jsx(qn, { target: i, onClick: n });
|
|
4227
|
+
}, ns = () => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
4228
|
+
/* @__PURE__ */ h.jsx(ts, {}),
|
|
4229
|
+
/* @__PURE__ */ h.jsx(es, {})
|
|
4230
|
+
] }), rs = pr(() => import("./DbtDocsRenderer.js")), os = () => {
|
|
4231
|
+
const { loading: e, shareDetails: r } = io(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = so(), s = (u) => {
|
|
4231
4232
|
u.stopPropagation();
|
|
4232
4233
|
const l = n();
|
|
4233
|
-
l && i(
|
|
4234
|
+
l && i(Ot(l));
|
|
4234
4235
|
};
|
|
4235
|
-
return e ? /* @__PURE__ */
|
|
4236
|
-
/* @__PURE__ */
|
|
4237
|
-
/* @__PURE__ */
|
|
4238
|
-
/* @__PURE__ */
|
|
4236
|
+
return e ? /* @__PURE__ */ h.jsx("div", { children: "Loading..." }) : !(r != null && r.catalog_presigned_url) || !(r != null && r.manifest_presigned_url) ? /* @__PURE__ */ h.jsx("div", { children: "Unable to load required artifacts. Please try again." }) : /* @__PURE__ */ h.jsxs("div", { children: [
|
|
4237
|
+
/* @__PURE__ */ h.jsxs(oe, { direction: "row", justify: "end", className: "mb-2", children: [
|
|
4238
|
+
/* @__PURE__ */ h.jsx(ns, {}),
|
|
4239
|
+
/* @__PURE__ */ h.jsx(Qr, {})
|
|
4239
4240
|
] }),
|
|
4240
|
-
/* @__PURE__ */
|
|
4241
|
-
/* @__PURE__ */
|
|
4242
|
-
t ? /* @__PURE__ */
|
|
4241
|
+
/* @__PURE__ */ h.jsx(Ji, {}),
|
|
4242
|
+
/* @__PURE__ */ h.jsx(rs, { shareDetails: r, onSelectionEnd: o }),
|
|
4243
|
+
t ? /* @__PURE__ */ h.jsx(Gr, { pos: t, onAddComment: s }) : null
|
|
4243
4244
|
] });
|
|
4244
|
-
},
|
|
4245
|
-
|
|
4245
|
+
}, Os = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ h.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ h.jsx(
|
|
4246
|
+
Br,
|
|
4246
4247
|
{
|
|
4247
4248
|
shareId: e,
|
|
4248
4249
|
userId: r,
|
|
4249
4250
|
conversationGroupId: i,
|
|
4250
4251
|
source: n,
|
|
4251
|
-
children: /* @__PURE__ */
|
|
4252
|
+
children: /* @__PURE__ */ h.jsx(os, {})
|
|
4252
4253
|
}
|
|
4253
|
-
) }),
|
|
4254
|
+
) }), zn = {
|
|
4254
4255
|
showCoachingForm: !1
|
|
4255
|
-
},
|
|
4256
|
+
}, mt = ln({
|
|
4256
4257
|
name: "teamMate",
|
|
4257
|
-
initialState:
|
|
4258
|
+
initialState: zn,
|
|
4258
4259
|
reducers: {
|
|
4259
4260
|
setShowCoachingForm: (e, r) => {
|
|
4260
4261
|
e.showCoachingForm = r.payload;
|
|
4261
4262
|
}
|
|
4262
4263
|
}
|
|
4263
|
-
}),
|
|
4264
|
-
state:
|
|
4264
|
+
}), is = mt.actions, Vn = _e({
|
|
4265
|
+
state: zn,
|
|
4265
4266
|
dispatch: () => null
|
|
4266
|
-
}),
|
|
4267
|
-
const [r, i] =
|
|
4267
|
+
}), Ds = ({ children: e }) => {
|
|
4268
|
+
const [r, i] = fn(mt.reducer, mt.getInitialState()), n = fe(
|
|
4268
4269
|
() => ({
|
|
4269
4270
|
state: r,
|
|
4270
4271
|
dispatch: i
|
|
4271
4272
|
}),
|
|
4272
4273
|
[r, i]
|
|
4273
4274
|
);
|
|
4274
|
-
return /* @__PURE__ */
|
|
4275
|
-
},
|
|
4275
|
+
return /* @__PURE__ */ h.jsx(Vn.Provider, { value: n, children: e });
|
|
4276
|
+
}, ss = (e) => /* @__PURE__ */ te.createElement("svg", { width: 131, height: 131, viewBox: "0 0 131 131", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#EAEEF9" }), /* @__PURE__ */ te.createElement("mask", { id: "mask0_3506_13710", style: {
|
|
4276
4277
|
maskType: "alpha"
|
|
4277
|
-
}, maskUnits: "userSpaceOnUse", x: -1, y: -1, width: 132, height: 132 }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#F1F3F9", stroke: "#D6DCE8", strokeWidth: 2, strokeMiterlimit: 10 })), /* @__PURE__ */ te.createElement("g", { mask: "url(#mask0_3506_13710)" }, /* @__PURE__ */ te.createElement("g", { filter: "url(#filter0_d_3506_13710)" }, /* @__PURE__ */ te.createElement("path", { d: "M110.116 47.3781L111.286 125.57C111.286 128.145 109.179 130.252 106.37 130.252H30.051C27.4758 130.252 25.1348 128.145 25.1348 125.57V25.138C25.1348 22.5628 27.2417 20.4559 30.051 20.4559H85.3002L110.116 47.3781Z", fill: "url(#paint0_linear_3506_13710)" })), /* @__PURE__ */ te.createElement("path", { d: "M85.3008 20.4559V41.9937C85.3008 45.0371 87.876 47.3782 90.9193 47.3782H110.116", fill: "#D5DDEA" })), /* @__PURE__ */ te.createElement("path", { d: "M119.221 27.592L120.664 26.951C121.144 26.7908 121.144 26.1498 120.664 25.9896L119.221 25.3486C117.459 24.5475 116.017 23.1053 115.215 21.3427L114.575 19.9006C114.414 19.4199 113.773 19.4199 113.613 19.9006L112.972 21.3427C112.171 23.1053 110.729 24.5475 108.966 25.3486L107.524 25.9896C107.043 26.1498 107.043 26.7908 107.524 26.951L108.966 27.592C110.729 28.3931 112.171 29.8353 112.972 31.5979L113.613 33.04C113.773 33.5207 114.414 33.5207 114.575 33.04L115.215 31.5979C115.856 29.8353 117.299 28.3931 119.221 27.592Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M103.678 18.4585L104.64 17.9777C104.96 17.8175 104.96 17.497 104.64 17.3368L103.678 17.0163C102.397 16.5356 101.435 15.5742 100.954 14.2923L100.474 13.3309C100.313 13.0104 99.993 13.0104 99.8327 13.3309L99.5123 14.2923C98.8713 15.5742 97.9099 16.5356 96.7882 17.0163L95.6666 17.497C95.5063 17.497 95.5063 17.9777 95.6666 17.9777L96.628 18.4585C97.9099 18.9392 98.8713 19.9006 99.5123 21.1825L99.993 22.1439C100.153 22.4644 100.474 22.4644 100.634 22.1439L100.954 21.1825C101.435 19.9006 102.397 18.9392 103.678 18.4585Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M116.016 9.16483L116.817 8.84435C116.978 8.68412 116.978 8.52388 116.817 8.36364L116.016 8.04317C115.055 7.7227 114.414 6.92151 113.933 5.96009L113.613 5.1589C113.452 4.99867 113.292 4.99867 113.132 5.1589L112.811 5.96009C112.491 6.92151 111.69 7.56246 110.728 8.04317L110.248 8.36364C109.927 8.52388 109.927 8.84435 110.248 8.84435L111.049 9.16483C112.01 9.4853 112.651 10.2865 113.132 11.2479L113.452 12.0491C113.613 12.2093 113.773 12.2093 113.933 12.0491L114.254 11.2479C114.414 10.2865 115.215 9.4853 116.016 9.16483Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M53.7864 71.8552C50.2113 71.8552 47.2082 69.5695 46.0642 66.2838C45.7782 65.5695 46.2072 64.8552 46.9222 64.5695C47.6372 64.2838 48.3523 64.7124 48.6383 65.4266C49.3533 67.5695 51.4983 69.1409 53.7864 69.1409C56.0744 69.1409 58.2195 67.7124 58.9345 65.4266C59.2205 64.7124 59.9355 64.2838 60.6506 64.5695C61.3656 64.8552 61.7946 65.5695 61.5086 66.2838C60.3646 69.7124 57.3615 71.8552 53.7864 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M75.3801 71.8552C71.805 71.8552 68.802 69.5695 67.6579 66.2838C67.3719 65.5695 67.8009 64.8552 68.516 64.5695C69.231 64.2838 69.946 64.7124 70.232 65.4266C70.947 67.5695 73.0921 69.1409 75.3801 69.1409C77.6682 69.1409 79.8133 67.7124 80.5283 65.4266C80.8143 64.7124 81.5293 64.2838 82.2443 64.5695C82.9593 64.8552 83.3883 65.5695 83.1023 66.2838C81.9583 69.7124 78.9552 71.8552 75.3801 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M64.6548 89.3467C66.4713 89.3467 67.9439 87.8756 67.9439 86.061C67.9439 84.2463 66.4713 82.7752 64.6548 82.7752C62.8383 82.7752 61.3657 84.2463 61.3657 86.061C61.3657 87.8756 62.8383 89.3467 64.6548 89.3467Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("defs", null, /* @__PURE__ */ te.createElement("filter", { id: "filter0_d_3506_13710", x: 3.13477, y: 9.45586, width: 130.151, height: 153.796, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ te.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ te.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ te.createElement("feOffset", { dy: 11 }), /* @__PURE__ */ te.createElement("feGaussianBlur", { stdDeviation: 11 }), /* @__PURE__ */ te.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_3506_13710" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_3506_13710", result: "shape" })), /* @__PURE__ */ te.createElement("linearGradient", { id: "paint0_linear_3506_13710", x1: 68.1823, y1: 17.9162, x2: 68.1823, y2: 131.436, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ te.createElement("stop", { stopColor: "#FDFEFF" }), /* @__PURE__ */ te.createElement("stop", { offset: 0.9964, stopColor: "#ECF0F5" })))),
|
|
4278
|
-
const e = be(
|
|
4278
|
+
}, 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" })))), as = () => {
|
|
4279
|
+
const e = be(Vn);
|
|
4279
4280
|
if (e === void 0)
|
|
4280
4281
|
throw new Error("useTeamMateContext must be used within a TeamMateProvider");
|
|
4281
4282
|
return e;
|
|
4282
|
-
},
|
|
4283
|
-
const { dispatch: e } =
|
|
4284
|
-
e(
|
|
4283
|
+
}, Rs = () => {
|
|
4284
|
+
const { dispatch: e } = as(), r = () => {
|
|
4285
|
+
e(is.setShowCoachingForm(!0));
|
|
4285
4286
|
};
|
|
4286
|
-
return /* @__PURE__ */
|
|
4287
|
-
},
|
|
4288
|
-
const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } =
|
|
4287
|
+
return /* @__PURE__ */ h.jsx(Ie, { onClick: r, children: "Show Coaching Form" });
|
|
4288
|
+
}, us = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
|
|
4289
|
+
const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } = Sr({
|
|
4289
4290
|
initialValues: e,
|
|
4290
|
-
validationSchema:
|
|
4291
|
+
validationSchema: Wn(Kn),
|
|
4291
4292
|
onSubmit: async (A) => {
|
|
4292
4293
|
await ve.post(`coach/training/${e.train_doc_uid}`, A, {
|
|
4293
4294
|
method: "PUT"
|
|
@@ -4297,28 +4298,27 @@ const zi = {
|
|
|
4297
4298
|
`coach/training/${e.train_doc_uid}`,
|
|
4298
4299
|
{},
|
|
4299
4300
|
{ method: "DELETE" }
|
|
4300
|
-
), { loading: p, error: m, mutate:
|
|
4301
|
+
), { loading: p, error: m, mutate: v } = cn({
|
|
4301
4302
|
queryFn: g,
|
|
4302
4303
|
onSuccess: r
|
|
4303
4304
|
}), E = (A) => {
|
|
4304
4305
|
A == null || A.stopPropagation();
|
|
4305
4306
|
}, C = () => {
|
|
4306
|
-
E(),
|
|
4307
|
+
E(), v();
|
|
4307
4308
|
}, S = (A) => {
|
|
4308
4309
|
E(A), o(!1);
|
|
4309
4310
|
}, I = (A) => {
|
|
4310
4311
|
E(A), i(e.train_doc_uid), o(!0);
|
|
4311
4312
|
}, y = n === e.train_doc_uid;
|
|
4312
|
-
return /* @__PURE__ */
|
|
4313
|
-
/* @__PURE__ */
|
|
4314
|
-
/* @__PURE__ */
|
|
4315
|
-
/* @__PURE__ */
|
|
4316
|
-
/* @__PURE__ */
|
|
4317
|
-
|
|
4313
|
+
return /* @__PURE__ */ h.jsx($e, { className: y ? "al-border-blue-500" : "", children: /* @__PURE__ */ h.jsxs("form", { onSubmit: d, children: [
|
|
4314
|
+
/* @__PURE__ */ h.jsx(vr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "start", children: [
|
|
4315
|
+
/* @__PURE__ */ h.jsxs("div", { style: { flex: 1 }, children: [
|
|
4316
|
+
/* @__PURE__ */ h.jsx("div", { children: t ? /* @__PURE__ */ h.jsxs(Mt, { children: [
|
|
4317
|
+
/* @__PURE__ */ h.jsx(
|
|
4318
|
+
mr,
|
|
4318
4319
|
{
|
|
4319
4320
|
name: "content",
|
|
4320
4321
|
value: a.content,
|
|
4321
|
-
type: "textarea",
|
|
4322
4322
|
placeholder: "Enter your coaching feedback here...",
|
|
4323
4323
|
invalid: !!s.content,
|
|
4324
4324
|
onClick: E,
|
|
@@ -4326,50 +4326,48 @@ const zi = {
|
|
|
4326
4326
|
style: { fieldSizing: "content" }
|
|
4327
4327
|
}
|
|
4328
4328
|
),
|
|
4329
|
-
s.content ? /* @__PURE__ */
|
|
4330
|
-
] }) : /* @__PURE__ */
|
|
4331
|
-
/* @__PURE__ */
|
|
4332
|
-
/* @__PURE__ */
|
|
4333
|
-
/* @__PURE__ */
|
|
4334
|
-
/* @__PURE__ */
|
|
4329
|
+
s.content ? /* @__PURE__ */ h.jsx(yr, { children: s.content }) : null
|
|
4330
|
+
] }) : /* @__PURE__ */ h.jsx("h6", { className: y ? "" : "lines-2", children: a.content }) }),
|
|
4331
|
+
/* @__PURE__ */ h.jsx(oe, { children: /* @__PURE__ */ h.jsxs("dl", { children: [
|
|
4332
|
+
/* @__PURE__ */ h.jsxs(oe, { children: [
|
|
4333
|
+
/* @__PURE__ */ h.jsx("dt", { children: "Created on:" }),
|
|
4334
|
+
/* @__PURE__ */ h.jsx("dd", { children: dt(e.createdDate).format("MMMM D, YYYY h:mm A") })
|
|
4335
4335
|
] }),
|
|
4336
|
-
/* @__PURE__ */
|
|
4337
|
-
/* @__PURE__ */
|
|
4338
|
-
/* @__PURE__ */
|
|
4339
|
-
|
|
4336
|
+
/* @__PURE__ */ h.jsxs(oe, { children: [
|
|
4337
|
+
/* @__PURE__ */ h.jsx("dt", { children: "Updated on:" }),
|
|
4338
|
+
/* @__PURE__ */ h.jsxs("dd", { children: [
|
|
4339
|
+
dt(e.updatedDate).format("MMMM D, YYYY h:mm A"),
|
|
4340
4340
|
" "
|
|
4341
4341
|
] })
|
|
4342
4342
|
] }),
|
|
4343
|
-
/* @__PURE__ */
|
|
4344
|
-
/* @__PURE__ */
|
|
4343
|
+
/* @__PURE__ */ h.jsxs(oe, { children: [
|
|
4344
|
+
/* @__PURE__ */ h.jsx("dt", { children: "Created by:" }),
|
|
4345
4345
|
" ",
|
|
4346
|
-
/* @__PURE__ */
|
|
4346
|
+
/* @__PURE__ */ h.jsx("dd", { children: e.display_name })
|
|
4347
4347
|
] })
|
|
4348
4348
|
] }) })
|
|
4349
4349
|
] }),
|
|
4350
|
-
/* @__PURE__ */
|
|
4351
|
-
/* @__PURE__ */
|
|
4352
|
-
|
|
4350
|
+
/* @__PURE__ */ h.jsxs(oe, { className: "align-items-top gap-0", children: [
|
|
4351
|
+
/* @__PURE__ */ h.jsx(Mt, { children: /* @__PURE__ */ h.jsx(
|
|
4352
|
+
Er,
|
|
4353
4353
|
{
|
|
4354
4354
|
title: a.isActive ? "Disable this learning" : "Enable this learning",
|
|
4355
|
-
children: /* @__PURE__ */
|
|
4356
|
-
|
|
4355
|
+
children: /* @__PURE__ */ h.jsx("span", { children: /* @__PURE__ */ h.jsx(
|
|
4356
|
+
Cr,
|
|
4357
4357
|
{
|
|
4358
|
-
type: "switch",
|
|
4359
|
-
role: "switch",
|
|
4360
4358
|
id: `toggle-${e.train_doc_uid}`,
|
|
4361
4359
|
checked: a.isActive,
|
|
4362
|
-
|
|
4360
|
+
onCheckedChange: (A) => {
|
|
4363
4361
|
c({
|
|
4364
|
-
target: { name: "isActive", value: A
|
|
4362
|
+
target: { name: "isActive", value: A }
|
|
4365
4363
|
}), d();
|
|
4366
4364
|
}
|
|
4367
4365
|
}
|
|
4368
|
-
)
|
|
4366
|
+
) })
|
|
4369
4367
|
}
|
|
4370
4368
|
) }),
|
|
4371
|
-
/* @__PURE__ */
|
|
4372
|
-
|
|
4369
|
+
/* @__PURE__ */ h.jsx(
|
|
4370
|
+
Xn,
|
|
4373
4371
|
{
|
|
4374
4372
|
title: "Delete the task",
|
|
4375
4373
|
description: "Are you sure to delete this task?",
|
|
@@ -4377,36 +4375,36 @@ const zi = {
|
|
|
4377
4375
|
onCancel: E,
|
|
4378
4376
|
okText: "Yes",
|
|
4379
4377
|
cancelText: "No",
|
|
4380
|
-
children: /* @__PURE__ */
|
|
4378
|
+
children: /* @__PURE__ */ h.jsx(
|
|
4381
4379
|
Ie,
|
|
4382
4380
|
{
|
|
4383
4381
|
title: "Delete this learning",
|
|
4384
4382
|
className: "pt-1 pb-0",
|
|
4385
4383
|
disabled: p,
|
|
4386
4384
|
onClick: E,
|
|
4387
|
-
children: /* @__PURE__ */
|
|
4385
|
+
children: /* @__PURE__ */ h.jsx(sr, {})
|
|
4388
4386
|
}
|
|
4389
4387
|
)
|
|
4390
4388
|
}
|
|
4391
4389
|
),
|
|
4392
|
-
t ? /* @__PURE__ */
|
|
4393
|
-
/* @__PURE__ */
|
|
4394
|
-
/* @__PURE__ */
|
|
4395
|
-
] }) : /* @__PURE__ */
|
|
4396
|
-
/* @__PURE__ */
|
|
4390
|
+
t ? /* @__PURE__ */ h.jsxs(oe, { className: "align-items-baseline", children: [
|
|
4391
|
+
/* @__PURE__ */ h.jsx(ye, { onClick: S, variant: "outline", size: "sm", children: "Cancel" }),
|
|
4392
|
+
/* @__PURE__ */ h.jsx(ye, { size: "sm", disabled: l || !u, type: "submit", children: "Save" })
|
|
4393
|
+
] }) : /* @__PURE__ */ h.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ h.jsx(ar, {}) }),
|
|
4394
|
+
/* @__PURE__ */ h.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ h.jsx(ur, {}) : /* @__PURE__ */ h.jsx(lr, {}) })
|
|
4397
4395
|
] })
|
|
4398
4396
|
] }) }),
|
|
4399
|
-
/* @__PURE__ */
|
|
4400
|
-
m && /* @__PURE__ */
|
|
4401
|
-
/* @__PURE__ */
|
|
4402
|
-
/* @__PURE__ */
|
|
4403
|
-
/* @__PURE__ */
|
|
4397
|
+
/* @__PURE__ */ h.jsx(Yn, { isOpen: y, children: /* @__PURE__ */ h.jsxs(He, { children: [
|
|
4398
|
+
m && /* @__PURE__ */ h.jsx(gn, { color: "danger", children: m.message }),
|
|
4399
|
+
/* @__PURE__ */ h.jsxs(oe, { className: "gap-4", children: [
|
|
4400
|
+
/* @__PURE__ */ h.jsxs("div", { children: [
|
|
4401
|
+
/* @__PURE__ */ h.jsx("strong", { children: "Category:" }),
|
|
4404
4402
|
" ",
|
|
4405
|
-
t ? /* @__PURE__ */
|
|
4406
|
-
|
|
4403
|
+
t ? /* @__PURE__ */ h.jsx(
|
|
4404
|
+
Lt,
|
|
4407
4405
|
{
|
|
4408
4406
|
style: { minWidth: 160 },
|
|
4409
|
-
options: Object.values(
|
|
4407
|
+
options: Object.values(Zn).map((A) => ({
|
|
4410
4408
|
value: A,
|
|
4411
4409
|
label: A
|
|
4412
4410
|
})),
|
|
@@ -4419,19 +4417,19 @@ const zi = {
|
|
|
4419
4417
|
}
|
|
4420
4418
|
) : e.category
|
|
4421
4419
|
] }),
|
|
4422
|
-
/* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4420
|
+
/* @__PURE__ */ h.jsxs("div", { children: [
|
|
4421
|
+
/* @__PURE__ */ h.jsx("strong", { children: "Task Label:" }),
|
|
4424
4422
|
" ",
|
|
4425
4423
|
e.taskLabel
|
|
4426
4424
|
] }),
|
|
4427
|
-
/* @__PURE__ */
|
|
4428
|
-
/* @__PURE__ */
|
|
4425
|
+
/* @__PURE__ */ h.jsxs("div", { children: [
|
|
4426
|
+
/* @__PURE__ */ h.jsx("strong", { children: "Personalization Scope:" }),
|
|
4429
4427
|
" ",
|
|
4430
|
-
t ? /* @__PURE__ */
|
|
4431
|
-
|
|
4428
|
+
t ? /* @__PURE__ */ h.jsx(
|
|
4429
|
+
Lt,
|
|
4432
4430
|
{
|
|
4433
4431
|
style: { minWidth: 100 },
|
|
4434
|
-
options: Object.values(
|
|
4432
|
+
options: Object.values(Gn).map((A) => ({
|
|
4435
4433
|
value: A,
|
|
4436
4434
|
label: A
|
|
4437
4435
|
})),
|
|
@@ -4446,21 +4444,21 @@ const zi = {
|
|
|
4446
4444
|
] }),
|
|
4447
4445
|
e.metadata && Object.keys(e.metadata).map((A) => {
|
|
4448
4446
|
var D;
|
|
4449
|
-
return /* @__PURE__ */
|
|
4450
|
-
/* @__PURE__ */
|
|
4447
|
+
return /* @__PURE__ */ h.jsxs("div", { children: [
|
|
4448
|
+
/* @__PURE__ */ h.jsxs("strong", { children: [
|
|
4451
4449
|
A,
|
|
4452
4450
|
":"
|
|
4453
4451
|
] }),
|
|
4454
4452
|
" ",
|
|
4455
|
-
/* @__PURE__ */
|
|
4453
|
+
/* @__PURE__ */ h.jsx(h.Fragment, { children: ((D = e.metadata) == null ? void 0 : D[A]) || "" })
|
|
4456
4454
|
] }, A);
|
|
4457
4455
|
})
|
|
4458
4456
|
] })
|
|
4459
|
-
] })
|
|
4457
|
+
] }) })
|
|
4460
4458
|
] }) });
|
|
4461
|
-
},
|
|
4459
|
+
}, ws = ({ filters: e, learning: r }) => {
|
|
4462
4460
|
var d;
|
|
4463
|
-
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } =
|
|
4461
|
+
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = tr({
|
|
4464
4462
|
queryFn: () => ve.get("coach/training", e),
|
|
4465
4463
|
enabled: !1
|
|
4466
4464
|
});
|
|
@@ -4470,11 +4468,11 @@ const zi = {
|
|
|
4470
4468
|
const l = (a) => {
|
|
4471
4469
|
n((c) => c === a ? void 0 : a);
|
|
4472
4470
|
};
|
|
4473
|
-
return /* @__PURE__ */
|
|
4471
|
+
return /* @__PURE__ */ h.jsx(oe, { direction: "column", className: "learnings", children: s ? /* @__PURE__ */ h.jsx("p", { children: "Loading learnings..." }) : t ? /* @__PURE__ */ h.jsxs(gn, { color: "danger", children: [
|
|
4474
4472
|
"Error loading learnings: ",
|
|
4475
4473
|
t.message
|
|
4476
|
-
] }) : (d = o == null ? void 0 : o.train_docs) != null && d.length ? /* @__PURE__ */
|
|
4477
|
-
|
|
4474
|
+
] }) : (d = o == null ? void 0 : o.train_docs) != null && d.length ? /* @__PURE__ */ h.jsx(h.Fragment, { children: o.train_docs.map((a) => /* @__PURE__ */ h.jsx(
|
|
4475
|
+
us,
|
|
4478
4476
|
{
|
|
4479
4477
|
learning: a,
|
|
4480
4478
|
afterDelete: u,
|
|
@@ -4482,30 +4480,30 @@ const zi = {
|
|
|
4482
4480
|
openId: i
|
|
4483
4481
|
},
|
|
4484
4482
|
a.train_doc_uid
|
|
4485
|
-
)) }) : /* @__PURE__ */
|
|
4486
|
-
/* @__PURE__ */
|
|
4487
|
-
/* @__PURE__ */
|
|
4483
|
+
)) }) : /* @__PURE__ */ h.jsxs(oe, { direction: "column", className: "align-items-center", children: [
|
|
4484
|
+
/* @__PURE__ */ h.jsx(ss, {}),
|
|
4485
|
+
/* @__PURE__ */ h.jsx("h4", { children: "No learnings added yet!" })
|
|
4488
4486
|
] }) });
|
|
4489
|
-
},
|
|
4490
|
-
const n = async () => await i(e,
|
|
4487
|
+
}, ls = ({ config: e, client: r, onSelect: i }) => {
|
|
4488
|
+
const n = async () => await i(e, rt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = cn({
|
|
4491
4489
|
queryFn: n
|
|
4492
4490
|
}), u = typeof e.comingSoon == "function" ? e.comingSoon() : e.comingSoon;
|
|
4493
|
-
return /* @__PURE__ */
|
|
4494
|
-
/* @__PURE__ */
|
|
4495
|
-
/* @__PURE__ */
|
|
4496
|
-
/* @__PURE__ */
|
|
4497
|
-
/* @__PURE__ */
|
|
4498
|
-
/* @__PURE__ */
|
|
4491
|
+
return /* @__PURE__ */ h.jsx("div", { className: "al-flex al-flex-col", children: /* @__PURE__ */ h.jsx($e, { children: /* @__PURE__ */ h.jsxs(He, { className: "al-pt-4", children: [
|
|
4492
|
+
/* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", className: "al-mb-2", children: [
|
|
4493
|
+
/* @__PURE__ */ h.jsx("img", { alt: "Teammate", src: e.avatar, className: "al-w-16 al-h-16 al-rounded" }),
|
|
4494
|
+
/* @__PURE__ */ h.jsxs("div", { className: "al-ml-2 al-mt-2", children: [
|
|
4495
|
+
/* @__PURE__ */ h.jsx(Ft, { variant: "subheading", children: e.name }),
|
|
4496
|
+
/* @__PURE__ */ h.jsx(Ft, { variant: "body", children: e.description })
|
|
4499
4497
|
] })
|
|
4500
4498
|
] }),
|
|
4501
|
-
/* @__PURE__ */
|
|
4502
|
-
/* @__PURE__ */
|
|
4503
|
-
u ? /* @__PURE__ */
|
|
4504
|
-
/* @__PURE__ */
|
|
4505
|
-
|
|
4499
|
+
/* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", children: [
|
|
4500
|
+
/* @__PURE__ */ h.jsxs(oe, { justify: "start", align: "center", children: [
|
|
4501
|
+
u ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
4502
|
+
/* @__PURE__ */ h.jsx(
|
|
4503
|
+
un,
|
|
4506
4504
|
{
|
|
4507
4505
|
size: "sm",
|
|
4508
|
-
className: "cursor-pointer",
|
|
4506
|
+
className: "al-cursor-pointer",
|
|
4509
4507
|
onClick: () => o(),
|
|
4510
4508
|
color: "primary",
|
|
4511
4509
|
loading: t,
|
|
@@ -4513,53 +4511,53 @@ const zi = {
|
|
|
4513
4511
|
children: "Request Access"
|
|
4514
4512
|
}
|
|
4515
4513
|
),
|
|
4516
|
-
s ? /* @__PURE__ */
|
|
4517
|
-
] }) : /* @__PURE__ */
|
|
4514
|
+
s ? /* @__PURE__ */ h.jsx("p", { className: "al-m-0", children: "Our team will reach out soon" }) : null
|
|
4515
|
+
] }) : /* @__PURE__ */ h.jsx(
|
|
4518
4516
|
ye,
|
|
4519
4517
|
{
|
|
4520
4518
|
size: "sm",
|
|
4521
|
-
className: "cursor-pointer",
|
|
4522
|
-
onClick: () => i(e,
|
|
4519
|
+
className: "al-cursor-pointer",
|
|
4520
|
+
onClick: () => i(e, rt.VIEW_DETAILS),
|
|
4523
4521
|
children: "View details"
|
|
4524
4522
|
}
|
|
4525
4523
|
),
|
|
4526
|
-
e.seeInAction && e.availability.includes(
|
|
4524
|
+
e.seeInAction && e.availability.includes(Qn[r]) && /* @__PURE__ */ h.jsx(
|
|
4527
4525
|
ye,
|
|
4528
4526
|
{
|
|
4529
4527
|
variant: "outline",
|
|
4530
4528
|
size: "sm",
|
|
4531
|
-
className: "cursor-pointer",
|
|
4532
|
-
onClick: () => i(e,
|
|
4529
|
+
className: "al-cursor-pointer",
|
|
4530
|
+
onClick: () => i(e, rt.SEE_IN_ACTION),
|
|
4533
4531
|
children: "See in action"
|
|
4534
4532
|
}
|
|
4535
4533
|
)
|
|
4536
4534
|
] }),
|
|
4537
|
-
e.availability.map((l) => /* @__PURE__ */
|
|
4535
|
+
e.availability.map((l) => /* @__PURE__ */ h.jsxs(br, { variant: "success", className: l, children: [
|
|
4538
4536
|
u ? "Coming soon" : "Available",
|
|
4539
4537
|
" in ",
|
|
4540
4538
|
l
|
|
4541
4539
|
] }, l))
|
|
4542
|
-
] })
|
|
4543
|
-
] }) });
|
|
4544
|
-
},
|
|
4540
|
+
] })
|
|
4541
|
+
] }) }) });
|
|
4542
|
+
}, Ns = ({ onSelect: e, client: r }) => /* @__PURE__ */ h.jsx("div", { className: "teammates", children: /* @__PURE__ */ h.jsx("div", { className: "al-grid al-grid-cols-1 md:al-grid-cols-2 lg:al-grid-cols-3 al-gap-4", children: Jn.map((i) => /* @__PURE__ */ h.jsx(ls, { config: i, client: r, onSelect: e }, i.name)) }) });
|
|
4545
4543
|
export {
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4544
|
+
bt as C,
|
|
4545
|
+
Os as D,
|
|
4546
|
+
ws as L,
|
|
4547
|
+
Ds as T,
|
|
4550
4548
|
ne as a,
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4549
|
+
Ts as b,
|
|
4550
|
+
Is as c,
|
|
4551
|
+
bs as d,
|
|
4552
|
+
St as e,
|
|
4555
4553
|
me as f,
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4554
|
+
_r as g,
|
|
4555
|
+
$n as h,
|
|
4556
|
+
Wi as i,
|
|
4557
|
+
Rs as j,
|
|
4558
|
+
as as k,
|
|
4559
|
+
is as l,
|
|
4560
|
+
Ns as m,
|
|
4561
|
+
As as s,
|
|
4564
4562
|
ce as u
|
|
4565
4563
|
};
|