@altimateai/ui-components 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CoachForm.js +7348 -7509
- package/dist/Form.js +2883 -1992
- package/dist/Stack.js +2 -2
- package/dist/index.js +1 -1
- package/dist/lineage/index.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.js +654 -658
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.d.ts +7 -2
- package/dist/shadcn/index.js +1668 -1622
- package/dist/storybook/Tabs.stories.tsx +147 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { C as Yn } from "./Table.js";
|
|
2
2
|
import { P as un, T as dt, V as Wn, W as Xn, X as Kn, Y as Zn, Z as Gn, _ as rt, $ as Qn, a0 as Jn } from "./CoachForm.js";
|
|
3
|
-
import { g as
|
|
4
|
-
import { Q as ye, U as $e, X as He, Y as nr, Z as oe, _ as rr, $ as or, a0 as
|
|
3
|
+
import { g as yt, a as ln, A as ve, C as er, I as Ie, u as cn, b as tr } from "./redux-toolkit.modern.js";
|
|
4
|
+
import { Q as ye, U as $e, X as He, Y as nr, Z as oe, _ as rr, $ as or, a0 as ft, a1 as ir } from "./Stack.js";
|
|
5
5
|
import { j as h, A as dn, f as sr, g as ar, b as ur, C as lr, D as cr, E as dr, e as fr, d as pr } from "./index2.js";
|
|
6
6
|
import * as te from "react";
|
|
7
7
|
import G, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as gr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as hr, Children as De, isValidElement as vr, useState as re, lazy as mr } from "react";
|
|
8
|
-
import Er, { createPortal as
|
|
9
|
-
import { F as Mt, a as
|
|
10
|
-
import { S as
|
|
11
|
-
import
|
|
12
|
-
import './main.css';var bt = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(bt || {});
|
|
8
|
+
import Er, { createPortal as bt } from "react-dom";
|
|
9
|
+
import { u as yr, F as Mt, a as br, A as gn, N as Lt, B as Cr } from "./Form.js";
|
|
10
|
+
import { S as Sr } from "./Switch.js";
|
|
11
|
+
import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
|
|
13
12
|
const _r = () => {
|
|
14
13
|
var r, i, n;
|
|
15
14
|
const e = (n = (i = (r = window.location.hash) == null ? void 0 : r.split("#")[1]) == null ? void 0 : i.replace("!/", "")) == null ? void 0 : n.split("/");
|
|
@@ -150,8 +149,8 @@ var hn = { exports: {} };
|
|
|
150
149
|
return d.prototype.deSerialize = function(a, c) {
|
|
151
150
|
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);
|
|
152
151
|
if (!c.Serialize.Restore.isEmpty()) {
|
|
153
|
-
var
|
|
154
|
-
m =
|
|
152
|
+
var y = c.Serialize.Restore.call(this, m, v) || [];
|
|
153
|
+
m = y[0] || m, v = y[1] || v;
|
|
155
154
|
}
|
|
156
155
|
return new s.default(m, v, this.text, this.id, !0);
|
|
157
156
|
}, d;
|
|
@@ -171,8 +170,8 @@ var hn = { exports: {} };
|
|
|
171
170
|
var g, p, m = f.call(a), v = [];
|
|
172
171
|
try {
|
|
173
172
|
for (; (c === void 0 || c-- > 0) && !(g = m.next()).done; ) v.push(g.value);
|
|
174
|
-
} catch (
|
|
175
|
-
p = { error:
|
|
173
|
+
} catch (y) {
|
|
174
|
+
p = { error: y };
|
|
176
175
|
} finally {
|
|
177
176
|
try {
|
|
178
177
|
g && !g.done && (f = m.return) && f.call(m);
|
|
@@ -212,8 +211,8 @@ var hn = { exports: {} };
|
|
|
212
211
|
var p = [];
|
|
213
212
|
try {
|
|
214
213
|
for (var m = o(a), v = m.next(); !v.done; v = m.next()) {
|
|
215
|
-
var
|
|
216
|
-
p.push.apply(p,
|
|
214
|
+
var y = v.value.querySelectorAll(c + "[data-" + l.DATASET_IDENTIFIER + "]");
|
|
215
|
+
p.push.apply(p, y);
|
|
217
216
|
}
|
|
218
217
|
} catch (C) {
|
|
219
218
|
f = { error: C };
|
|
@@ -226,17 +225,17 @@ var hn = { exports: {} };
|
|
|
226
225
|
}
|
|
227
226
|
return p;
|
|
228
227
|
}, n.getHighlightById = function(a, c, f) {
|
|
229
|
-
var g, p, m = [], v = new RegExp("(" + c + "\\" + l.ID_DIVISION + "|\\" + l.ID_DIVISION + "?" + c + "$)"),
|
|
228
|
+
var g, p, m = [], v = new RegExp("(" + c + "\\" + l.ID_DIVISION + "|\\" + l.ID_DIVISION + "?" + c + "$)"), y = a.querySelectorAll(f + "[data-" + l.DATASET_IDENTIFIER + "]");
|
|
230
229
|
try {
|
|
231
|
-
for (var C = o(
|
|
232
|
-
var
|
|
233
|
-
if (
|
|
234
|
-
var
|
|
235
|
-
v.test(
|
|
236
|
-
} else m.push(
|
|
230
|
+
for (var C = o(y), S = C.next(); !S.done; S = C.next()) {
|
|
231
|
+
var T = S.value;
|
|
232
|
+
if (T.dataset[l.CAMEL_DATASET_IDENTIFIER] !== c) {
|
|
233
|
+
var b = T.dataset[l.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
234
|
+
v.test(b) && m.push(T);
|
|
235
|
+
} else m.push(T);
|
|
237
236
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
g = { error:
|
|
237
|
+
} catch (D) {
|
|
238
|
+
g = { error: D };
|
|
240
239
|
} finally {
|
|
241
240
|
try {
|
|
242
241
|
S && !S.done && (p = C.return) && p.call(C);
|
|
@@ -269,17 +268,17 @@ var hn = { exports: {} };
|
|
|
269
268
|
};
|
|
270
269
|
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
271
270
|
var s = o(t(3)), u = t(1), l = t(11), d = o(t(6)), a = t(12), c = t(0), f = function() {
|
|
272
|
-
function g(p, m, v,
|
|
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 =
|
|
271
|
+
function g(p, m, v, y, C) {
|
|
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 = v, this.frozen = C, this.id = y;
|
|
274
273
|
}
|
|
275
274
|
return g.fromSelection = function(p) {
|
|
276
275
|
var m = l.getDomRange();
|
|
277
276
|
if (!m) return null;
|
|
278
|
-
var v = { $node: m.startContainer, offset: m.startOffset },
|
|
279
|
-
return new g(v,
|
|
277
|
+
var v = { $node: m.startContainer, offset: m.startOffset }, y = { $node: m.endContainer, offset: m.endOffset }, C = m.toString(), S = p.call(v, y, C);
|
|
278
|
+
return new g(v, y, C, S = S ?? d.default());
|
|
280
279
|
}, g.prototype.serialize = function(p, m) {
|
|
281
|
-
var v,
|
|
282
|
-
return m.Serialize.RecordInfo.isEmpty() || (v = m.Serialize.RecordInfo.call(this.start, this.end, p)), this.frozen = !0, new s.default(
|
|
280
|
+
var v, y = a.getDomMeta(this.start.$node, this.start.offset, p), C = a.getDomMeta(this.end.$node, this.end.offset, p);
|
|
281
|
+
return m.Serialize.RecordInfo.isEmpty() || (v = m.Serialize.RecordInfo.call(this.start, this.end, p)), this.frozen = !0, new s.default(y, C, this.text, this.id, v);
|
|
283
282
|
}, g.removeDomRange = l.removeSelection, g;
|
|
284
283
|
}();
|
|
285
284
|
n.default = f;
|
|
@@ -290,107 +289,107 @@ var hn = { exports: {} };
|
|
|
290
289
|
}, function(i, n, t) {
|
|
291
290
|
i.exports = t(8);
|
|
292
291
|
}, function(i, n, t) {
|
|
293
|
-
var o, s = this && this.__extends || (o = function(
|
|
294
|
-
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
295
|
-
|
|
296
|
-
} || function(
|
|
297
|
-
for (var w in
|
|
298
|
-
})(
|
|
299
|
-
}, function(
|
|
300
|
-
function
|
|
301
|
-
this.constructor =
|
|
292
|
+
var o, s = this && this.__extends || (o = function(b, D) {
|
|
293
|
+
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(O, E) {
|
|
294
|
+
O.__proto__ = E;
|
|
295
|
+
} || function(O, E) {
|
|
296
|
+
for (var w in E) Object.prototype.hasOwnProperty.call(E, w) && (O[w] = E[w]);
|
|
297
|
+
})(b, D);
|
|
298
|
+
}, function(b, D) {
|
|
299
|
+
function O() {
|
|
300
|
+
this.constructor = b;
|
|
302
301
|
}
|
|
303
|
-
o(
|
|
302
|
+
o(b, D), b.prototype = D === null ? Object.create(D) : (O.prototype = D.prototype, new O());
|
|
304
303
|
}), u = this && this.__assign || function() {
|
|
305
|
-
return (u = Object.assign || function(
|
|
306
|
-
for (var
|
|
307
|
-
return
|
|
304
|
+
return (u = Object.assign || function(b) {
|
|
305
|
+
for (var D, O = 1, E = arguments.length; O < E; O++) for (var w in D = arguments[O]) Object.prototype.hasOwnProperty.call(D, w) && (b[w] = D[w]);
|
|
306
|
+
return b;
|
|
308
307
|
}).apply(this, arguments);
|
|
309
|
-
}, l = this && this.__importDefault || function(
|
|
310
|
-
return
|
|
308
|
+
}, l = this && this.__importDefault || function(b) {
|
|
309
|
+
return b && b.__esModule ? b : { default: b };
|
|
311
310
|
};
|
|
312
311
|
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
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)),
|
|
314
|
-
function
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
return S.addEventListener(
|
|
318
|
-
},
|
|
319
|
-
S.removeEventListener(
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
S.addClass(q,
|
|
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)), v = l(t(17)), y = t(0), C = t(1), S = t(4), T = function(b) {
|
|
313
|
+
function D(O) {
|
|
314
|
+
var E = b.call(this) || this;
|
|
315
|
+
E.event = p.default(), E.run = function() {
|
|
316
|
+
return S.addEventListener(E.options.$root, E.event.PointerEnd, E._handleSelection);
|
|
317
|
+
}, E.stop = function() {
|
|
318
|
+
S.removeEventListener(E.options.$root, E.event.PointerEnd, E._handleSelection);
|
|
319
|
+
}, E.addClass = function(A, P) {
|
|
320
|
+
E.getDoms(P).forEach(function(q) {
|
|
321
|
+
S.addClass(q, A);
|
|
323
322
|
});
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
S.removeClass(q,
|
|
323
|
+
}, E.removeClass = function(A, P) {
|
|
324
|
+
E.getDoms(P).forEach(function(q) {
|
|
325
|
+
S.removeClass(q, A);
|
|
327
326
|
});
|
|
328
|
-
},
|
|
329
|
-
return S.getHighlightId(
|
|
330
|
-
},
|
|
331
|
-
return S.getExtraHighlightId(
|
|
332
|
-
},
|
|
333
|
-
return
|
|
334
|
-
},
|
|
335
|
-
var
|
|
336
|
-
S.removeEventListener(
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
var P = { $node:
|
|
327
|
+
}, E.getIdByDom = function(A) {
|
|
328
|
+
return S.getHighlightId(A, E.options.$root);
|
|
329
|
+
}, E.getExtraIdByDom = function(A) {
|
|
330
|
+
return S.getExtraHighlightId(A, E.options.$root);
|
|
331
|
+
}, E.getDoms = function(A) {
|
|
332
|
+
return A ? S.getHighlightById(E.options.$root, A, E.options.wrapTag) : S.getHighlightsByRoot(E.options.$root, E.options.wrapTag);
|
|
333
|
+
}, E.dispose = function() {
|
|
334
|
+
var A = E.options.$root;
|
|
335
|
+
S.removeEventListener(A, E.event.PointerOver, E._handleHighlightHover), S.removeEventListener(A, E.event.PointerEnd, E._handleSelection), S.removeEventListener(A, E.event.PointerTap, E._handleHighlightClick), E.removeAll();
|
|
336
|
+
}, E.setOption = function(A) {
|
|
337
|
+
E.options = u(u({}, E.options), A), E.painter = new v.default({ $root: E.options.$root, wrapTag: E.options.wrapTag, className: E.options.style.className, exceptSelectors: E.options.exceptSelectors }, E.hooks);
|
|
338
|
+
}, E.fromRange = function(A) {
|
|
339
|
+
var P = { $node: A.startContainer, offset: A.startOffset }, q = { $node: A.endContainer, offset: A.endOffset }, Y = A.toString(), F = E.hooks.Render.UUID.call(P, q, Y);
|
|
341
340
|
F = F ?? f.default();
|
|
342
341
|
var V = new a.default(P, q, Y, F);
|
|
343
|
-
return V ?
|
|
344
|
-
},
|
|
345
|
-
var V = new c.default(
|
|
342
|
+
return V ? E._highlightFromHRange(V) : (y.eventEmitter.emit(y.INTERNAL_ERROR_EVENT, { type: C.ERROR.RANGE_INVALID }), null);
|
|
343
|
+
}, E.fromStore = function(A, P, q, Y, F) {
|
|
344
|
+
var V = new c.default(A, P, q, Y, F);
|
|
346
345
|
try {
|
|
347
|
-
return
|
|
346
|
+
return E._highlightFromHSource(V), V;
|
|
348
347
|
} catch (N) {
|
|
349
|
-
return
|
|
348
|
+
return y.eventEmitter.emit(y.INTERNAL_ERROR_EVENT, { type: C.ERROR.HIGHLIGHT_SOURCE_RECREATE, error: N, detail: V }), null;
|
|
350
349
|
}
|
|
351
|
-
},
|
|
350
|
+
}, E._getHooks = function() {
|
|
352
351
|
return { Render: { UUID: new g.default("Render.UUID"), SelectedNodes: new g.default("Render.SelectedNodes"), WrapNode: new g.default("Render.WrapNode") }, Serialize: { Restore: new g.default("Serialize.Restore"), RecordInfo: new g.default("Serialize.RecordInfo") }, Remove: { UpdateNodes: new g.default("Remove.UpdateNodes") } };
|
|
353
|
-
},
|
|
354
|
-
var P =
|
|
355
|
-
return
|
|
356
|
-
},
|
|
357
|
-
var
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
var P =
|
|
361
|
-
if (!S.isHighlightWrapNode(P)) return
|
|
362
|
-
var q = S.getHighlightId(P,
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
var P =
|
|
352
|
+
}, E._highlightFromHRange = function(A) {
|
|
353
|
+
var P = A.serialize(E.options.$root, E.hooks);
|
|
354
|
+
return E.painter.highlightRange(A).length === 0 ? (y.eventEmitter.emit(y.INTERNAL_ERROR_EVENT, { type: C.ERROR.DOM_SELECTION_EMPTY }), null) : (E.cache.save(P), E.emit(C.EventType.CREATE, { sources: [P], type: C.CreateFrom.INPUT }, E), P);
|
|
355
|
+
}, E._handleSelection = function() {
|
|
356
|
+
var A = a.default.fromSelection(E.hooks.Render.UUID);
|
|
357
|
+
A && (E._highlightFromHRange(A), a.default.removeDomRange());
|
|
358
|
+
}, E._handleHighlightHover = function(A) {
|
|
359
|
+
var P = A.target;
|
|
360
|
+
if (!S.isHighlightWrapNode(P)) return E._hoverId && E.emit(C.EventType.HOVER_OUT, { id: E._hoverId }, E, A), void (E._hoverId = null);
|
|
361
|
+
var q = S.getHighlightId(P, E.options.$root);
|
|
362
|
+
E._hoverId !== q && (E._hoverId && E.emit(C.EventType.HOVER_OUT, { id: E._hoverId }, E, A), E._hoverId = q, E.emit(C.EventType.HOVER, { id: E._hoverId }, E, A));
|
|
363
|
+
}, E._handleError = function(A) {
|
|
364
|
+
E.options.verbose && console.warn(A);
|
|
365
|
+
}, E._handleHighlightClick = function(A) {
|
|
366
|
+
var P = A.target;
|
|
368
367
|
if (S.isHighlightWrapNode(P)) {
|
|
369
|
-
var q = S.getHighlightId(P,
|
|
370
|
-
|
|
368
|
+
var q = S.getHighlightId(P, E.options.$root);
|
|
369
|
+
E.emit(C.EventType.CLICK, { id: q }, E, A);
|
|
371
370
|
}
|
|
372
|
-
},
|
|
373
|
-
var w =
|
|
374
|
-
return S.addEventListener(w,
|
|
371
|
+
}, E.options = y.getDefaultOptions(), E.hooks = E._getHooks(), E.setOption(O), E.cache = new m.default();
|
|
372
|
+
var w = E.options.$root;
|
|
373
|
+
return S.addEventListener(w, E.event.PointerOver, E._handleHighlightHover), S.addEventListener(w, E.event.PointerTap, E._handleHighlightClick), y.eventEmitter.on(y.INTERNAL_ERROR_EVENT, E._handleError), E;
|
|
375
374
|
}
|
|
376
|
-
return s(
|
|
377
|
-
if (
|
|
378
|
-
var
|
|
379
|
-
this.cache.remove(
|
|
375
|
+
return s(D, b), D.prototype.remove = function(O) {
|
|
376
|
+
if (O) {
|
|
377
|
+
var E = this.painter.removeHighlight(O);
|
|
378
|
+
this.cache.remove(O), E && this.emit(C.EventType.REMOVE, { ids: [O] }, this);
|
|
380
379
|
}
|
|
381
|
-
},
|
|
380
|
+
}, D.prototype.removeAll = function() {
|
|
382
381
|
this.painter.removeAllHighlight();
|
|
383
|
-
var
|
|
384
|
-
this.emit(C.EventType.REMOVE, { ids:
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
var
|
|
388
|
-
this.emit(C.EventType.CREATE, { sources:
|
|
389
|
-
},
|
|
390
|
-
return !!
|
|
391
|
-
},
|
|
382
|
+
var O = this.cache.removeAll();
|
|
383
|
+
this.emit(C.EventType.REMOVE, { ids: O }, this);
|
|
384
|
+
}, D.prototype._highlightFromHSource = function(O) {
|
|
385
|
+
O === void 0 && (O = []);
|
|
386
|
+
var E = this.painter.highlightSource(O);
|
|
387
|
+
this.emit(C.EventType.CREATE, { sources: E, type: C.CreateFrom.STORE }, this), this.cache.save(O);
|
|
388
|
+
}, D.event = C.EventType, D.isHighlightWrapNode = S.isHighlightWrapNode, D.isHighlightSource = function(O) {
|
|
389
|
+
return !!O.__isHighlightSource;
|
|
390
|
+
}, D;
|
|
392
391
|
}(d.default);
|
|
393
|
-
n.default =
|
|
392
|
+
n.default = T;
|
|
394
393
|
}, function(i, n, t) {
|
|
395
394
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.queryElementNode = n.getTextChildByOffset = void 0;
|
|
396
395
|
var o = t(0);
|
|
@@ -429,7 +428,7 @@ var hn = { exports: {} };
|
|
|
429
428
|
return o.UNKNOWN_IDX;
|
|
430
429
|
}(d, l), c = function(f, g) {
|
|
431
430
|
for (var p = [f], m = null, v = 0; m = p.pop(); ) {
|
|
432
|
-
for (var
|
|
431
|
+
for (var y = m.childNodes, C = y.length - 1; C >= 0; C--) p.push(y[C]);
|
|
433
432
|
if (m.nodeType === 3 && m !== g) v += m.textContent.length;
|
|
434
433
|
else if (m.nodeType === 3) break;
|
|
435
434
|
}
|
|
@@ -543,15 +542,15 @@ var hn = { exports: {} };
|
|
|
543
542
|
}, g.prototype.getAll = function() {
|
|
544
543
|
var p, m, v = [];
|
|
545
544
|
try {
|
|
546
|
-
for (var
|
|
545
|
+
for (var y = u(this._data), C = y.next(); !C.done; C = y.next()) {
|
|
547
546
|
var S = C.value;
|
|
548
547
|
v.push(S[1]);
|
|
549
548
|
}
|
|
550
|
-
} catch (
|
|
551
|
-
p = { error:
|
|
549
|
+
} catch (T) {
|
|
550
|
+
p = { error: T };
|
|
552
551
|
} finally {
|
|
553
552
|
try {
|
|
554
|
-
C && !C.done && (m =
|
|
553
|
+
C && !C.done && (m = y.return) && m.call(y);
|
|
555
554
|
} finally {
|
|
556
555
|
if (p) throw p.error;
|
|
557
556
|
}
|
|
@@ -560,15 +559,15 @@ var hn = { exports: {} };
|
|
|
560
559
|
}, g.prototype.removeAll = function() {
|
|
561
560
|
var p, m, v = [];
|
|
562
561
|
try {
|
|
563
|
-
for (var
|
|
562
|
+
for (var y = u(this._data), C = y.next(); !C.done; C = y.next()) {
|
|
564
563
|
var S = C.value;
|
|
565
564
|
v.push(S[0]);
|
|
566
565
|
}
|
|
567
|
-
} catch (
|
|
568
|
-
p = { error:
|
|
566
|
+
} catch (T) {
|
|
567
|
+
p = { error: T };
|
|
569
568
|
} finally {
|
|
570
569
|
try {
|
|
571
|
-
C && !C.done && (m =
|
|
570
|
+
C && !C.done && (m = y.return) && m.call(y);
|
|
572
571
|
} finally {
|
|
573
572
|
if (p) throw p.error;
|
|
574
573
|
}
|
|
@@ -579,61 +578,61 @@ var hn = { exports: {} };
|
|
|
579
578
|
n.default = c;
|
|
580
579
|
}, function(i, n, t) {
|
|
581
580
|
var o = this && this.__values || function(v) {
|
|
582
|
-
var
|
|
581
|
+
var y = typeof Symbol == "function" && Symbol.iterator, C = y && v[y], S = 0;
|
|
583
582
|
if (C) return C.call(v);
|
|
584
583
|
if (v && typeof v.length == "number") return { next: function() {
|
|
585
584
|
return v && S >= v.length && (v = void 0), { value: v && v[S++], done: !v };
|
|
586
585
|
} };
|
|
587
|
-
throw new TypeError(
|
|
588
|
-
}, s = this && this.__read || function(v,
|
|
586
|
+
throw new TypeError(y ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
587
|
+
}, s = this && this.__read || function(v, y) {
|
|
589
588
|
var C = typeof Symbol == "function" && v[Symbol.iterator];
|
|
590
589
|
if (!C) return v;
|
|
591
|
-
var S,
|
|
590
|
+
var S, T, b = C.call(v), D = [];
|
|
592
591
|
try {
|
|
593
|
-
for (; (
|
|
594
|
-
} catch (
|
|
595
|
-
|
|
592
|
+
for (; (y === void 0 || y-- > 0) && !(S = b.next()).done; ) D.push(S.value);
|
|
593
|
+
} catch (O) {
|
|
594
|
+
T = { error: O };
|
|
596
595
|
} finally {
|
|
597
596
|
try {
|
|
598
|
-
S && !S.done && (C =
|
|
597
|
+
S && !S.done && (C = b.return) && C.call(b);
|
|
599
598
|
} finally {
|
|
600
|
-
if (
|
|
599
|
+
if (T) throw T.error;
|
|
601
600
|
}
|
|
602
601
|
}
|
|
603
|
-
return
|
|
602
|
+
return D;
|
|
604
603
|
}, u = this && this.__spread || function() {
|
|
605
|
-
for (var v = [],
|
|
604
|
+
for (var v = [], y = 0; y < arguments.length; y++) v = v.concat(s(arguments[y]));
|
|
606
605
|
return v;
|
|
607
606
|
}, l = this && this.__importDefault || function(v) {
|
|
608
607
|
return v && v.__esModule ? v : { default: v };
|
|
609
608
|
};
|
|
610
609
|
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
611
610
|
var d = l(t(3)), a = t(18), c = t(4), f = t(1), g = t(20), p = t(0), m = function() {
|
|
612
|
-
function v(
|
|
613
|
-
this.options = { $root:
|
|
611
|
+
function v(y, C) {
|
|
612
|
+
this.options = { $root: y.$root, wrapTag: y.wrapTag, exceptSelectors: y.exceptSelectors, className: y.className }, this.hooks = C, g.initDefaultStylesheet();
|
|
614
613
|
}
|
|
615
|
-
return v.prototype.highlightRange = function(
|
|
614
|
+
return v.prototype.highlightRange = function(y) {
|
|
616
615
|
var C = this;
|
|
617
|
-
if (!
|
|
618
|
-
var S = this.options,
|
|
619
|
-
return
|
|
620
|
-
var
|
|
621
|
-
return
|
|
616
|
+
if (!y.frozen) throw f.ERROR.HIGHLIGHT_RANGE_FROZEN;
|
|
617
|
+
var S = this.options, T = S.$root, b = S.className, D = S.exceptSelectors, O = this.hooks, E = a.getSelectedNodes(T, y.start, y.end, D);
|
|
618
|
+
return O.Render.SelectedNodes.isEmpty() || (E = O.Render.SelectedNodes.call(y.id, E) || []), E.map(function(w) {
|
|
619
|
+
var A = a.wrapHighlight(w, y, b, C.options.wrapTag);
|
|
620
|
+
return O.Render.WrapNode.isEmpty() || (A = O.Render.WrapNode.call(y.id, A)), A;
|
|
622
621
|
});
|
|
623
|
-
}, v.prototype.highlightSource = function(
|
|
624
|
-
var C = this, S = Array.isArray(
|
|
625
|
-
return S.forEach(function(
|
|
626
|
-
if (
|
|
627
|
-
var
|
|
628
|
-
C.highlightRange(
|
|
622
|
+
}, v.prototype.highlightSource = function(y) {
|
|
623
|
+
var C = this, S = Array.isArray(y) ? y : [y], T = [];
|
|
624
|
+
return S.forEach(function(b) {
|
|
625
|
+
if (b instanceof d.default) {
|
|
626
|
+
var D = b.deSerialize(C.options.$root, C.hooks);
|
|
627
|
+
C.highlightRange(D).length > 0 ? T.push(b) : p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.HIGHLIGHT_SOURCE_NONE_RENDER, detail: b });
|
|
629
628
|
} else p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.SOURCE_TYPE_ERROR });
|
|
630
|
-
}),
|
|
631
|
-
}, v.prototype.removeHighlight = function(
|
|
632
|
-
var C, S,
|
|
629
|
+
}), T;
|
|
630
|
+
}, v.prototype.removeHighlight = function(y) {
|
|
631
|
+
var C, S, T = new RegExp("(" + y + "\\" + p.ID_DIVISION + "|\\" + p.ID_DIVISION + "?" + y + "$)"), b = this.hooks, D = this.options.wrapTag, O = document.querySelectorAll(D + "[data-" + p.DATASET_IDENTIFIER + "]"), E = [], w = [], A = [];
|
|
633
632
|
try {
|
|
634
|
-
for (var P = o(
|
|
633
|
+
for (var P = o(O), q = P.next(); !q.done; q = P.next()) {
|
|
635
634
|
var Y = q.value, F = Y.dataset[p.CAMEL_DATASET_IDENTIFIER], V = Y.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
636
|
-
F !==
|
|
635
|
+
F !== y || V ? F === y ? w.push(Y) : F !== y && T.test(V) && A.push(Y) : E.push(Y);
|
|
637
636
|
}
|
|
638
637
|
} catch (N) {
|
|
639
638
|
C = { error: N };
|
|
@@ -644,27 +643,27 @@ var hn = { exports: {} };
|
|
|
644
643
|
if (C) throw C.error;
|
|
645
644
|
}
|
|
646
645
|
}
|
|
647
|
-
return
|
|
646
|
+
return E.forEach(function(N) {
|
|
648
647
|
var j = N.parentNode, $ = document.createDocumentFragment();
|
|
649
|
-
c.forEach(N.childNodes, function(
|
|
650
|
-
return $.appendChild(
|
|
648
|
+
c.forEach(N.childNodes, function(I) {
|
|
649
|
+
return $.appendChild(I.cloneNode(!1));
|
|
651
650
|
});
|
|
652
651
|
var Z = N.previousSibling, _ = N.nextSibling;
|
|
653
|
-
j.replaceChild($, N), a.normalizeSiblingText(Z, !0), a.normalizeSiblingText(_, !1),
|
|
652
|
+
j.replaceChild($, N), a.normalizeSiblingText(Z, !0), a.normalizeSiblingText(_, !1), b.Remove.UpdateNodes.call(y, N, "remove");
|
|
654
653
|
}), w.forEach(function(N) {
|
|
655
|
-
var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION), Z = $.shift(), _ = document.querySelector(
|
|
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),
|
|
657
|
-
}),
|
|
654
|
+
var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION), Z = $.shift(), _ = document.querySelector(D + "[data-" + p.DATASET_IDENTIFIER + '="' + Z + '"]');
|
|
655
|
+
_ && (c.removeAllClass(N), c.addClass(N, u(_.classList))), j[p.CAMEL_DATASET_IDENTIFIER] = Z, j[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = $.join(p.ID_DIVISION), b.Remove.UpdateNodes.call(y, N, "id-update");
|
|
656
|
+
}), A.forEach(function(N) {
|
|
658
657
|
var j = N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
659
|
-
N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = j.replace(
|
|
660
|
-
}),
|
|
658
|
+
N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = j.replace(T, ""), b.Remove.UpdateNodes.call(y, N, "extra-update");
|
|
659
|
+
}), E.length + w.length + A.length !== 0;
|
|
661
660
|
}, v.prototype.removeAllHighlight = function() {
|
|
662
|
-
var
|
|
663
|
-
c.getHighlightsByRoot(S, C).forEach(function(
|
|
664
|
-
var
|
|
665
|
-
c.forEach(
|
|
666
|
-
return
|
|
667
|
-
}),
|
|
661
|
+
var y = this.options, C = y.wrapTag, S = y.$root;
|
|
662
|
+
c.getHighlightsByRoot(S, C).forEach(function(T) {
|
|
663
|
+
var b = T.parentNode, D = document.createDocumentFragment();
|
|
664
|
+
c.forEach(T.childNodes, function(O) {
|
|
665
|
+
return D.appendChild(O.cloneNode(!1));
|
|
666
|
+
}), b.replaceChild(D, T);
|
|
668
667
|
});
|
|
669
668
|
}, v;
|
|
670
669
|
}();
|
|
@@ -673,19 +672,19 @@ var hn = { exports: {} };
|
|
|
673
672
|
var o = this && this.__read || function(p, m) {
|
|
674
673
|
var v = typeof Symbol == "function" && p[Symbol.iterator];
|
|
675
674
|
if (!v) return p;
|
|
676
|
-
var
|
|
675
|
+
var y, C, S = v.call(p), T = [];
|
|
677
676
|
try {
|
|
678
|
-
for (; (m === void 0 || m-- > 0) && !(
|
|
679
|
-
} catch (
|
|
680
|
-
C = { error:
|
|
677
|
+
for (; (m === void 0 || m-- > 0) && !(y = S.next()).done; ) T.push(y.value);
|
|
678
|
+
} catch (b) {
|
|
679
|
+
C = { error: b };
|
|
681
680
|
} finally {
|
|
682
681
|
try {
|
|
683
|
-
|
|
682
|
+
y && !y.done && (v = S.return) && v.call(S);
|
|
684
683
|
} finally {
|
|
685
684
|
if (C) throw C.error;
|
|
686
685
|
}
|
|
687
686
|
}
|
|
688
|
-
return
|
|
687
|
+
return T;
|
|
689
688
|
}, s = this && this.__spread || function() {
|
|
690
689
|
for (var p = [], m = 0; m < arguments.length; m++) p = p.concat(o(arguments[m]));
|
|
691
690
|
return p;
|
|
@@ -698,18 +697,18 @@ var hn = { exports: {} };
|
|
|
698
697
|
return p && l.hasClass(p, v);
|
|
699
698
|
}
|
|
700
699
|
if (/^#/.test(m)) {
|
|
701
|
-
var
|
|
702
|
-
return p && p.id ===
|
|
700
|
+
var y = m.replace(/^#/, "");
|
|
701
|
+
return p && p.id === y;
|
|
703
702
|
}
|
|
704
703
|
var C = m.toUpperCase();
|
|
705
704
|
return p && p.tagName === C;
|
|
706
705
|
};
|
|
707
|
-
n.getSelectedNodes = function(p, m, v,
|
|
708
|
-
var C = m.$node, S = v.$node,
|
|
706
|
+
n.getSelectedNodes = function(p, m, v, y) {
|
|
707
|
+
var C = m.$node, S = v.$node, T = m.offset, b = v.offset;
|
|
709
708
|
if (C === S && C instanceof Text) return function(F, V, N, j) {
|
|
710
|
-
for (var $ = F, Z = function(
|
|
709
|
+
for (var $ = F, Z = function(I) {
|
|
711
710
|
return j == null ? void 0 : j.some(function(L) {
|
|
712
|
-
return c(
|
|
711
|
+
return c(I, L);
|
|
713
712
|
});
|
|
714
713
|
}; $; ) {
|
|
715
714
|
if ($.nodeType === 1 && Z($)) return [];
|
|
@@ -718,62 +717,62 @@ var hn = { exports: {} };
|
|
|
718
717
|
F.splitText(V);
|
|
719
718
|
var _ = F.nextSibling;
|
|
720
719
|
return _.splitText(N - V), [{ $node: _, type: u.SelectedNodeType.text, splitType: u.SplitType.both }];
|
|
721
|
-
}(C,
|
|
722
|
-
for (var
|
|
723
|
-
return
|
|
720
|
+
}(C, T, b, y);
|
|
721
|
+
for (var D = [p], O = [], E = function(F) {
|
|
722
|
+
return y == null ? void 0 : y.some(function(V) {
|
|
724
723
|
return c(F, V);
|
|
725
724
|
});
|
|
726
|
-
}, w = !1,
|
|
727
|
-
for (var P =
|
|
728
|
-
if (
|
|
729
|
-
if (
|
|
730
|
-
|
|
731
|
-
var Y =
|
|
732
|
-
|
|
725
|
+
}, w = !1, A = null; A = D.pop(); ) if (A.nodeType !== 1 || !E(A)) {
|
|
726
|
+
for (var P = A.childNodes, q = P.length - 1; q >= 0; q--) D.push(P[q]);
|
|
727
|
+
if (A === C) {
|
|
728
|
+
if (A.nodeType === 3) {
|
|
729
|
+
A.splitText(T);
|
|
730
|
+
var Y = A.nextSibling;
|
|
731
|
+
O.push({ $node: Y, type: u.SelectedNodeType.text, splitType: u.SplitType.head });
|
|
733
732
|
}
|
|
734
733
|
w = !0;
|
|
735
734
|
} else {
|
|
736
|
-
if (
|
|
737
|
-
|
|
735
|
+
if (A === S) {
|
|
736
|
+
A.nodeType === 3 && ((Y = A).splitText(b), O.push({ $node: Y, type: u.SelectedNodeType.text, splitType: u.SplitType.tail }));
|
|
738
737
|
break;
|
|
739
738
|
}
|
|
740
|
-
w &&
|
|
739
|
+
w && A.nodeType === 3 && O.push({ $node: A, type: u.SelectedNodeType.text, splitType: u.SplitType.none });
|
|
741
740
|
}
|
|
742
741
|
}
|
|
743
|
-
return
|
|
742
|
+
return O;
|
|
744
743
|
};
|
|
745
744
|
var f = function(p, m) {
|
|
746
745
|
var v = Array.isArray(m) ? m : [m];
|
|
747
|
-
return (v = v.length === 0 ? [d.getDefaultOptions().style.className] : v).forEach(function(
|
|
748
|
-
l.addClass(p,
|
|
746
|
+
return (v = v.length === 0 ? [d.getDefaultOptions().style.className] : v).forEach(function(y) {
|
|
747
|
+
l.addClass(p, y);
|
|
749
748
|
}), p;
|
|
750
749
|
}, g = function(p) {
|
|
751
750
|
return !p || !p.textContent;
|
|
752
751
|
};
|
|
753
|
-
n.wrapHighlight = function(p, m, v,
|
|
754
|
-
var C = p.$node.parentNode, S = p.$node.previousSibling,
|
|
755
|
-
return l.isHighlightWrapNode(C) ? !l.isHighlightWrapNode(C) || g(S) && g(
|
|
756
|
-
var
|
|
757
|
-
l.removeAllClass(w), f(w,
|
|
758
|
-
var
|
|
759
|
-
return
|
|
760
|
-
}(p, m, v) : function(
|
|
761
|
-
var w = document.createElement(
|
|
762
|
-
w.setAttribute("data-" + d.DATASET_IDENTIFIER,
|
|
752
|
+
n.wrapHighlight = function(p, m, v, y) {
|
|
753
|
+
var C = p.$node.parentNode, S = p.$node.previousSibling, T = p.$node.nextSibling;
|
|
754
|
+
return l.isHighlightWrapNode(C) ? !l.isHighlightWrapNode(C) || g(S) && g(T) ? function(b, D, O) {
|
|
755
|
+
var E = b.$node.parentNode, w = E;
|
|
756
|
+
l.removeAllClass(w), f(w, O);
|
|
757
|
+
var A = E.dataset, P = A[d.CAMEL_DATASET_IDENTIFIER];
|
|
758
|
+
return A[d.CAMEL_DATASET_IDENTIFIER] = D.id, A[d.CAMEL_DATASET_IDENTIFIER_EXTRA] = A[d.CAMEL_DATASET_IDENTIFIER_EXTRA] ? P + d.ID_DIVISION + A[d.CAMEL_DATASET_IDENTIFIER_EXTRA] : P, w;
|
|
759
|
+
}(p, m, v) : function(b, D, O, E) {
|
|
760
|
+
var w = document.createElement(E), A = b.$node.parentNode, P = b.$node.previousSibling, q = b.$node.nextSibling, Y = document.createDocumentFragment(), F = A.dataset[d.CAMEL_DATASET_IDENTIFIER], V = A.dataset[d.CAMEL_DATASET_IDENTIFIER_EXTRA], N = V ? F + d.ID_DIVISION + V : F;
|
|
761
|
+
w.setAttribute("data-" + d.DATASET_IDENTIFIER, D.id), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, N), w.appendChild(b.$node.cloneNode(!1));
|
|
763
762
|
var j, $ = !1, Z = !1;
|
|
764
|
-
P && ((_ =
|
|
765
|
-
var _,
|
|
766
|
-
return Array.isArray(
|
|
767
|
-
}(p, m, v,
|
|
768
|
-
var w = document.createElement(
|
|
769
|
-
return f(w,
|
|
770
|
-
}(p, m, v,
|
|
763
|
+
P && ((_ = A.cloneNode(!1)).textContent = P.textContent, Y.appendChild(_), $ = !0);
|
|
764
|
+
var _, I = [];
|
|
765
|
+
return Array.isArray(O) ? I.push.apply(I, s(O)) : I.push(O), f(w, a.unique(I)), Y.appendChild(w), q && ((_ = A.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), A.parentNode.replaceChild(Y, A), w;
|
|
766
|
+
}(p, m, v, y) : function(b, D, O, E) {
|
|
767
|
+
var w = document.createElement(E);
|
|
768
|
+
return f(w, O), w.appendChild(b.$node.cloneNode(!1)), b.$node.parentNode.replaceChild(w, b.$node), w.setAttribute("data-" + d.DATASET_IDENTIFIER, D.id), w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, b.splitType), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, ""), w;
|
|
769
|
+
}(p, m, v, y);
|
|
771
770
|
}, n.normalizeSiblingText = function(p, m) {
|
|
772
771
|
if (m === void 0 && (m = !0), p && p.nodeType === 3) {
|
|
773
772
|
var v = m ? p.nextSibling : p.previousSibling;
|
|
774
773
|
if (v.nodeType === 3) {
|
|
775
|
-
var
|
|
776
|
-
p.nodeValue = m ? p.nodeValue +
|
|
774
|
+
var y = v.nodeValue;
|
|
775
|
+
p.nodeValue = m ? p.nodeValue + y : y + p.nodeValue, v.parentNode.removeChild(v);
|
|
777
776
|
}
|
|
778
777
|
}
|
|
779
778
|
};
|
|
@@ -819,12 +818,12 @@ var hn = { exports: {} };
|
|
|
819
818
|
});
|
|
820
819
|
})(hn);
|
|
821
820
|
var Ar = hn.exports;
|
|
822
|
-
const vn = /* @__PURE__ */
|
|
821
|
+
const vn = /* @__PURE__ */ yt(Ar), et = "altimate-display-", Tr = `${et}-highlight`, Bt = `${et}-highlight-hover`, Ir = `${et}-active-highlight`, xr = 1049, xe = new vn({
|
|
823
822
|
style: {
|
|
824
823
|
className: Tr
|
|
825
824
|
}
|
|
826
825
|
// wrapTag: HIGHLIGHT_WRAPPER_TAGNAME,
|
|
827
|
-
}),
|
|
826
|
+
}), St = new vn({
|
|
828
827
|
style: {
|
|
829
828
|
className: Ir
|
|
830
829
|
}
|
|
@@ -838,8 +837,8 @@ const vn = /* @__PURE__ */ Et(Ar), et = "altimate-display-", Tr = `${et}-highlig
|
|
|
838
837
|
};
|
|
839
838
|
xe.hooks.Render.SelectedNodes.tap(mn);
|
|
840
839
|
xe.hooks.Serialize.Restore.tap(En);
|
|
841
|
-
|
|
842
|
-
|
|
840
|
+
St.hooks.Render.SelectedNodes.tap(mn);
|
|
841
|
+
St.hooks.Serialize.Restore.tap(En);
|
|
843
842
|
xe.on("selection:hover", ({ id: e }) => {
|
|
844
843
|
xe.addClass(Bt, e);
|
|
845
844
|
}).on("selection:hover-out", ({ id: e }) => {
|
|
@@ -850,19 +849,19 @@ const Or = (e) => {
|
|
|
850
849
|
return (r = e.meta) != null && r.highlight ? JSON.parse((i = e.meta) == null ? void 0 : i.highlight) : null;
|
|
851
850
|
}, Dr = (e) => {
|
|
852
851
|
const r = Or(e);
|
|
853
|
-
r && (xe.remove(r.id),
|
|
854
|
-
},
|
|
852
|
+
r && (xe.remove(r.id), St.remove(r.id));
|
|
853
|
+
}, _t = () => {
|
|
855
854
|
var i, n;
|
|
856
|
-
const e =
|
|
855
|
+
const e = At(), r = (e == null ? void 0 : e[1]) === "analysis" ? document.getElementById("sql") : document.getElementById("code");
|
|
857
856
|
return (n = (i = r == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("code-block")) == null ? void 0 : n.querySelector("code.ng-binding.highlight");
|
|
858
|
-
},
|
|
857
|
+
}, At = () => {
|
|
859
858
|
var r;
|
|
860
859
|
return (r = window.location.hash.split("#").find((i) => i.startsWith("!"))) == null ? void 0 : r.split("/");
|
|
861
|
-
},
|
|
860
|
+
}, Tt = () => document.querySelector('[marked="model.description"]'), Rr = (e) => {
|
|
862
861
|
var r, i, n;
|
|
863
862
|
return e.field ? e.column ? (i = (r = Array.from(
|
|
864
863
|
document.querySelectorAll("column-details tr:not(.ng-hide) td:first-child")
|
|
865
|
-
).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n =
|
|
864
|
+
).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n = Tt()) == null ? void 0 : n.firstChild : _t();
|
|
866
865
|
}, wr = (e) => {
|
|
867
866
|
if (e.getAttribute("marked") === "model.description")
|
|
868
867
|
return "description";
|
|
@@ -885,9 +884,9 @@ const Or = (e) => {
|
|
|
885
884
|
start: a,
|
|
886
885
|
end: l
|
|
887
886
|
};
|
|
888
|
-
},
|
|
887
|
+
}, ys = () => {
|
|
889
888
|
var e;
|
|
890
|
-
return [(e =
|
|
889
|
+
return [(e = _t()) == null ? void 0 : e.parentElement, Tt()];
|
|
891
890
|
};
|
|
892
891
|
var ae = /* @__PURE__ */ ((e) => (e[e.LOADING = 0] = "LOADING", e[e.UNINITIALIZED = 1] = "UNINITIALIZED", e[e.INITIALIZED = 2] = "INITIALIZED", e))(ae || {});
|
|
893
892
|
const jr = {
|
|
@@ -901,7 +900,7 @@ const jr = {
|
|
|
901
900
|
docsAppRendered: !1,
|
|
902
901
|
currentPage: _r(),
|
|
903
902
|
codeblockLoaded: !1,
|
|
904
|
-
source:
|
|
903
|
+
source: Ct.DBT_DOCS,
|
|
905
904
|
manifest: {}
|
|
906
905
|
}, Ze = ln({
|
|
907
906
|
name: "appState",
|
|
@@ -968,7 +967,7 @@ const jr = {
|
|
|
968
967
|
console.log("Invalid meta");
|
|
969
968
|
return;
|
|
970
969
|
}
|
|
971
|
-
const n =
|
|
970
|
+
const n = At();
|
|
972
971
|
if (!n || n.length < 3) {
|
|
973
972
|
console.error("Unable to find model parts", n);
|
|
974
973
|
return;
|
|
@@ -993,22 +992,22 @@ const jr = {
|
|
|
993
992
|
}
|
|
994
993
|
}
|
|
995
994
|
}), {
|
|
996
|
-
setCurrentUserId:
|
|
997
|
-
setShareId:
|
|
998
|
-
updateSelectedConversationId:
|
|
999
|
-
updateRightPanelState:
|
|
995
|
+
setCurrentUserId: bs,
|
|
996
|
+
setShareId: Cs,
|
|
997
|
+
updateSelectedConversationId: It,
|
|
998
|
+
updateRightPanelState: xt,
|
|
1000
999
|
setUsers: Pr,
|
|
1001
1000
|
setConversations: Fr,
|
|
1002
|
-
resetNewConversation:
|
|
1003
|
-
updateNewConversation:
|
|
1004
|
-
upsertConversation:
|
|
1005
|
-
setDocsAppRendered:
|
|
1006
|
-
updateCurrentPage:
|
|
1007
|
-
updateCodeblockLoaded:
|
|
1001
|
+
resetNewConversation: Ot,
|
|
1002
|
+
updateNewConversation: Dt,
|
|
1003
|
+
upsertConversation: Ss,
|
|
1004
|
+
setDocsAppRendered: _s,
|
|
1005
|
+
updateCurrentPage: As,
|
|
1006
|
+
updateCodeblockLoaded: Ts,
|
|
1008
1007
|
resolveConversationGroup: Mr,
|
|
1009
1008
|
setConversationsLoadingState: $t,
|
|
1010
1009
|
refetchConversations: yn,
|
|
1011
|
-
setConversationSource:
|
|
1010
|
+
setConversationSource: Is,
|
|
1012
1011
|
setManifest: Lr
|
|
1013
1012
|
} = Ze.actions, tt = _e({
|
|
1014
1013
|
state: Ze.getInitialState(),
|
|
@@ -1158,28 +1157,28 @@ const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1158
1157
|
if (u !== f) {
|
|
1159
1158
|
let C = [...u];
|
|
1160
1159
|
for (let S = 0; S < p.length; S++) {
|
|
1161
|
-
const
|
|
1162
|
-
l.includes(
|
|
1160
|
+
const T = p[S], b = qe(T);
|
|
1161
|
+
l.includes(b) || (C.splice(S, 0, T), v.push(T));
|
|
1163
1162
|
}
|
|
1164
1163
|
s === "wait" && v.length && (C = v), m(Ht(C)), g(u);
|
|
1165
1164
|
return;
|
|
1166
1165
|
}
|
|
1167
1166
|
process.env.NODE_ENV !== "production" && s === "wait" && p.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
1168
|
-
const { forceRender:
|
|
1167
|
+
const { forceRender: y } = be(Ur);
|
|
1169
1168
|
return h.jsx(h.Fragment, { children: p.map((C) => {
|
|
1170
|
-
const S = qe(C),
|
|
1169
|
+
const S = qe(C), T = u === p || l.includes(S), b = () => {
|
|
1171
1170
|
if (c.has(S))
|
|
1172
1171
|
c.set(S, !0);
|
|
1173
1172
|
else
|
|
1174
1173
|
return;
|
|
1175
|
-
let
|
|
1176
|
-
c.forEach((
|
|
1177
|
-
|
|
1178
|
-
}),
|
|
1174
|
+
let D = !0;
|
|
1175
|
+
c.forEach((O) => {
|
|
1176
|
+
O || (D = !1);
|
|
1177
|
+
}), D && (y == null || y(), m(a.current), t && t());
|
|
1179
1178
|
};
|
|
1180
|
-
return h.jsx(Xr, { isPresent:
|
|
1179
|
+
return h.jsx(Xr, { isPresent: T, initial: !d.current || n ? void 0 : !1, custom: T ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: T ? void 0 : b, children: C }, S);
|
|
1181
1180
|
}) });
|
|
1182
|
-
}, Gr = ({ pos: e, onAddComment: r }) =>
|
|
1181
|
+
}, Gr = ({ pos: e, onAddComment: r }) => bt(
|
|
1183
1182
|
/* @__PURE__ */ h.jsx(Zr, { children: e && /* @__PURE__ */ h.jsx(
|
|
1184
1183
|
ye,
|
|
1185
1184
|
{
|
|
@@ -1214,7 +1213,7 @@ const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1214
1213
|
const {
|
|
1215
1214
|
state: { isRightPanelOpen: e }
|
|
1216
1215
|
} = $r(), r = ce(), i = () => {
|
|
1217
|
-
r(
|
|
1216
|
+
r(xt(!e));
|
|
1218
1217
|
};
|
|
1219
1218
|
return /* @__PURE__ */ h.jsx(ye, { onClick: i, children: e ? "Hide conversations" : "Show conversations" });
|
|
1220
1219
|
}, Jr = (e) => ve.get(`dbt/dbt_docs_share/${e}`), eo = (e, r, i) => ve.post(`dbt/dbt_docs_share/${e}/conversation_group`, {
|
|
@@ -1292,33 +1291,33 @@ const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1292
1291
|
const c = a.target, f = wr(c), { end: g, start: p } = a.detail.selectionRange, m = document.getSelection();
|
|
1293
1292
|
if (!m || !m.rangeCount)
|
|
1294
1293
|
return l(), null;
|
|
1295
|
-
const
|
|
1296
|
-
if (!
|
|
1294
|
+
const y = m.getRangeAt(0).toString(), C = c == null ? void 0 : c.innerText;
|
|
1295
|
+
if (!y || !C)
|
|
1297
1296
|
return;
|
|
1298
|
-
const { end: S, start:
|
|
1297
|
+
const { end: S, start: T, x: b, y: D } = Nr(
|
|
1299
1298
|
f,
|
|
1300
1299
|
c,
|
|
1301
|
-
|
|
1300
|
+
y,
|
|
1302
1301
|
g,
|
|
1303
1302
|
p
|
|
1304
1303
|
);
|
|
1305
|
-
console.log("selection range", S,
|
|
1306
|
-
const
|
|
1304
|
+
console.log("selection range", S, T, b, D);
|
|
1305
|
+
const O = {
|
|
1307
1306
|
meta: {
|
|
1308
1307
|
filePath: "",
|
|
1309
1308
|
field: f,
|
|
1310
|
-
highlight:
|
|
1309
|
+
highlight: y,
|
|
1311
1310
|
range: {
|
|
1312
1311
|
end: { line: S, character: 0 },
|
|
1313
|
-
start: { line:
|
|
1312
|
+
start: { line: T, character: 0 }
|
|
1314
1313
|
}
|
|
1315
1314
|
}
|
|
1316
1315
|
};
|
|
1317
|
-
n(
|
|
1318
|
-
x:
|
|
1319
|
-
y:
|
|
1316
|
+
n(Ot()), u({
|
|
1317
|
+
x: b,
|
|
1318
|
+
y: D,
|
|
1320
1319
|
element: c
|
|
1321
|
-
}), document.body.addEventListener("click", l, { once: !0 }), o(
|
|
1320
|
+
}), document.body.addEventListener("click", l, { once: !0 }), o(O);
|
|
1322
1321
|
}
|
|
1323
1322
|
};
|
|
1324
1323
|
}, ao = ({
|
|
@@ -1327,7 +1326,7 @@ const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1327
1326
|
const r = ne(
|
|
1328
1327
|
(u) => u.selectedConversationId
|
|
1329
1328
|
), i = ce(), n = Se(null), t = fe(() => Rr(e.meta), [e.meta]), o = () => {
|
|
1330
|
-
i(
|
|
1329
|
+
i(It(e.conversation_group_id));
|
|
1331
1330
|
}, s = fe(() => {
|
|
1332
1331
|
if (!t)
|
|
1333
1332
|
return;
|
|
@@ -1351,7 +1350,7 @@ const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1351
1350
|
behavior: "smooth",
|
|
1352
1351
|
block: "center"
|
|
1353
1352
|
}));
|
|
1354
|
-
}, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null :
|
|
1353
|
+
}, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null : bt(
|
|
1355
1354
|
/* @__PURE__ */ h.jsx(
|
|
1356
1355
|
"div",
|
|
1357
1356
|
{
|
|
@@ -1443,10 +1442,10 @@ function k(e) {
|
|
|
1443
1442
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1444
1443
|
return e;
|
|
1445
1444
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1445
|
+
function pt(e, r) {
|
|
1446
|
+
return pt = Object.setPrototypeOf || function(n, t) {
|
|
1448
1447
|
return n.__proto__ = t, n;
|
|
1449
|
-
},
|
|
1448
|
+
}, pt(e, r);
|
|
1450
1449
|
}
|
|
1451
1450
|
function Do(e, r) {
|
|
1452
1451
|
if (typeof r != "function" && r !== null)
|
|
@@ -1457,7 +1456,7 @@ function Do(e, r) {
|
|
|
1457
1456
|
writable: !0,
|
|
1458
1457
|
configurable: !0
|
|
1459
1458
|
}
|
|
1460
|
-
}), r &&
|
|
1459
|
+
}), r && pt(e, r);
|
|
1461
1460
|
}
|
|
1462
1461
|
function Oe(e) {
|
|
1463
1462
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(i) {
|
|
@@ -1509,7 +1508,7 @@ var wo = function(e, r, i, n, t, o, s, u) {
|
|
|
1509
1508
|
throw l.framesToPop = 1, l;
|
|
1510
1509
|
}
|
|
1511
1510
|
}, No = wo;
|
|
1512
|
-
const Re = /* @__PURE__ */
|
|
1511
|
+
const Re = /* @__PURE__ */ yt(No);
|
|
1513
1512
|
function jo(e) {
|
|
1514
1513
|
if (Array.isArray(e)) return e;
|
|
1515
1514
|
}
|
|
@@ -1582,22 +1581,22 @@ function Le(e, r, i) {
|
|
|
1582
1581
|
writable: !0
|
|
1583
1582
|
}) : e[r] = i, e;
|
|
1584
1583
|
}
|
|
1585
|
-
function
|
|
1584
|
+
function gt(e, r) {
|
|
1586
1585
|
(r == null || r > e.length) && (r = e.length);
|
|
1587
1586
|
for (var i = 0, n = Array(r); i < r; i++) n[i] = e[i];
|
|
1588
1587
|
return n;
|
|
1589
1588
|
}
|
|
1590
1589
|
function Ho(e) {
|
|
1591
|
-
if (Array.isArray(e)) return
|
|
1590
|
+
if (Array.isArray(e)) return gt(e);
|
|
1592
1591
|
}
|
|
1593
1592
|
function ko(e) {
|
|
1594
1593
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1595
1594
|
}
|
|
1596
1595
|
function Uo(e, r) {
|
|
1597
1596
|
if (e) {
|
|
1598
|
-
if (typeof e == "string") return
|
|
1597
|
+
if (typeof e == "string") return gt(e, r);
|
|
1599
1598
|
var i = {}.toString.call(e).slice(8, -1);
|
|
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) ?
|
|
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) ? gt(e, r) : void 0;
|
|
1601
1600
|
}
|
|
1602
1601
|
}
|
|
1603
1602
|
function qo() {
|
|
@@ -1618,7 +1617,7 @@ function An(e, r) {
|
|
|
1618
1617
|
Xe(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]));
|
|
1619
1618
|
}), i;
|
|
1620
1619
|
}
|
|
1621
|
-
var
|
|
1620
|
+
var ht = function(r) {
|
|
1622
1621
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
|
|
1623
1622
|
n[t - 1] = arguments[t];
|
|
1624
1623
|
return n.reduce(function(o, s) {
|
|
@@ -1634,10 +1633,10 @@ var gt = function(r) {
|
|
|
1634
1633
|
return r === Object(r) && !(r instanceof Date) && !Array.isArray(r);
|
|
1635
1634
|
}, Vo = function(r) {
|
|
1636
1635
|
return (r || []).filter(Boolean);
|
|
1637
|
-
},
|
|
1636
|
+
}, Rt = function(r) {
|
|
1638
1637
|
return r[0] === "&";
|
|
1639
1638
|
}, Yo = function(r) {
|
|
1640
|
-
return !
|
|
1639
|
+
return !Rt(r);
|
|
1641
1640
|
}, kt = function(r) {
|
|
1642
1641
|
return r.replace(/-(\w)/g, function(i, n) {
|
|
1643
1642
|
return n.toUpperCase();
|
|
@@ -1658,9 +1657,9 @@ var gt = function(r) {
|
|
|
1658
1657
|
}
|
|
1659
1658
|
return o;
|
|
1660
1659
|
}, Xo = function e(r, i) {
|
|
1661
|
-
for (var n =
|
|
1660
|
+
for (var n = ht.apply(void 0, [{}, zo(r, i)].concat(he(_n(Tn(r, i))))), t = Ne(n).filter(Rt), o = 0, s = t.length; o < s; o += 1) {
|
|
1662
1661
|
var u = t[o], l = e(n[u], i);
|
|
1663
|
-
i.indexOf(u) >= 0 ? (delete n[u], n =
|
|
1662
|
+
i.indexOf(u) >= 0 ? (delete n[u], n = ht({}, n, l)) : n[u] = l;
|
|
1664
1663
|
}
|
|
1665
1664
|
return n;
|
|
1666
1665
|
};
|
|
@@ -1754,16 +1753,16 @@ function Dn(e) {
|
|
|
1754
1753
|
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
1754
|
var g = On(c);
|
|
1756
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 || Xe(f), "Optional second parameter must be a plain object.");
|
|
1757
|
-
var p = g.filter(
|
|
1756
|
+
var p = g.filter(Rt), m = g.filter(Yo), v = m.length > 0 ? function(S) {
|
|
1758
1757
|
return _n(Tn(S, m));
|
|
1759
1758
|
} : function(S) {
|
|
1760
1759
|
return [S];
|
|
1761
|
-
},
|
|
1762
|
-
var
|
|
1763
|
-
return v(Xo(
|
|
1760
|
+
}, y = function() {
|
|
1761
|
+
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1762
|
+
return v(Xo(T, p));
|
|
1764
1763
|
}, C = Jo(o, m, p);
|
|
1765
1764
|
return Dn(Ae(Ae(Ae({}, (r || f) && {
|
|
1766
|
-
style:
|
|
1765
|
+
style: ht.apply(void 0, [{}].concat(he(y(f)), he(y(r))))
|
|
1767
1766
|
}), C && {
|
|
1768
1767
|
className: C.join(" ")
|
|
1769
1768
|
}), n && {
|
|
@@ -1807,7 +1806,7 @@ var ei = function() {
|
|
|
1807
1806
|
style: je(je({}, t.style), typeof o == "function" ? o.style : o)
|
|
1808
1807
|
});
|
|
1809
1808
|
}, {});
|
|
1810
|
-
},
|
|
1809
|
+
}, wt = function(r, i, n) {
|
|
1811
1810
|
var t = i.style, o = i.className, s = i.classNames, u = be(xn), l = fe(function() {
|
|
1812
1811
|
return Dn({
|
|
1813
1812
|
style: t,
|
|
@@ -1816,7 +1815,7 @@ var ei = function() {
|
|
|
1816
1815
|
}, u);
|
|
1817
1816
|
}, [t, o, s, u]);
|
|
1818
1817
|
return l(n, r);
|
|
1819
|
-
},
|
|
1818
|
+
}, vt = { exports: {} }, ze = { exports: {} }, Q = {};
|
|
1820
1819
|
/** @license React v16.13.1
|
|
1821
1820
|
* react-is.production.min.js
|
|
1822
1821
|
*
|
|
@@ -1829,66 +1828,66 @@ var Yt;
|
|
|
1829
1828
|
function ti() {
|
|
1830
1829
|
if (Yt) return Q;
|
|
1831
1830
|
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,
|
|
1833
|
-
function S(
|
|
1834
|
-
if (typeof
|
|
1835
|
-
var
|
|
1836
|
-
switch (
|
|
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, v = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
1832
|
+
function S(b) {
|
|
1833
|
+
if (typeof b == "object" && b !== null) {
|
|
1834
|
+
var D = b.$$typeof;
|
|
1835
|
+
switch (D) {
|
|
1837
1836
|
case r:
|
|
1838
|
-
switch (
|
|
1837
|
+
switch (b = b.type, b) {
|
|
1839
1838
|
case l:
|
|
1840
1839
|
case d:
|
|
1841
1840
|
case n:
|
|
1842
1841
|
case o:
|
|
1843
1842
|
case t:
|
|
1844
1843
|
case c:
|
|
1845
|
-
return
|
|
1844
|
+
return b;
|
|
1846
1845
|
default:
|
|
1847
|
-
switch (
|
|
1846
|
+
switch (b = b && b.$$typeof, b) {
|
|
1848
1847
|
case u:
|
|
1849
1848
|
case a:
|
|
1850
1849
|
case p:
|
|
1851
1850
|
case g:
|
|
1852
1851
|
case s:
|
|
1853
|
-
return
|
|
1852
|
+
return b;
|
|
1854
1853
|
default:
|
|
1855
|
-
return
|
|
1854
|
+
return D;
|
|
1856
1855
|
}
|
|
1857
1856
|
}
|
|
1858
1857
|
case i:
|
|
1859
|
-
return
|
|
1858
|
+
return D;
|
|
1860
1859
|
}
|
|
1861
1860
|
}
|
|
1862
1861
|
}
|
|
1863
|
-
function
|
|
1864
|
-
return S(
|
|
1862
|
+
function T(b) {
|
|
1863
|
+
return S(b) === d;
|
|
1865
1864
|
}
|
|
1866
|
-
return Q.AsyncMode = l, Q.ConcurrentMode = d, Q.ContextConsumer = u, Q.ContextProvider = s, Q.Element = r, Q.ForwardRef = a, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = i, Q.Profiler = o, Q.StrictMode = t, Q.Suspense = c, Q.isAsyncMode = function(
|
|
1867
|
-
return
|
|
1868
|
-
}, Q.isConcurrentMode =
|
|
1869
|
-
return S(
|
|
1870
|
-
}, Q.isContextProvider = function(
|
|
1871
|
-
return S(
|
|
1872
|
-
}, Q.isElement = function(
|
|
1873
|
-
return typeof
|
|
1874
|
-
}, Q.isForwardRef = function(
|
|
1875
|
-
return S(
|
|
1876
|
-
}, Q.isFragment = function(
|
|
1877
|
-
return S(
|
|
1878
|
-
}, Q.isLazy = function(
|
|
1879
|
-
return S(
|
|
1880
|
-
}, Q.isMemo = function(
|
|
1881
|
-
return S(
|
|
1882
|
-
}, Q.isPortal = function(
|
|
1883
|
-
return S(
|
|
1884
|
-
}, Q.isProfiler = function(
|
|
1885
|
-
return S(
|
|
1886
|
-
}, Q.isStrictMode = function(
|
|
1887
|
-
return S(
|
|
1888
|
-
}, Q.isSuspense = function(
|
|
1889
|
-
return S(
|
|
1890
|
-
}, Q.isValidElementType = function(
|
|
1891
|
-
return typeof
|
|
1865
|
+
return Q.AsyncMode = l, Q.ConcurrentMode = d, Q.ContextConsumer = u, Q.ContextProvider = s, Q.Element = r, Q.ForwardRef = a, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = i, Q.Profiler = o, Q.StrictMode = t, Q.Suspense = c, Q.isAsyncMode = function(b) {
|
|
1866
|
+
return T(b) || S(b) === l;
|
|
1867
|
+
}, Q.isConcurrentMode = T, Q.isContextConsumer = function(b) {
|
|
1868
|
+
return S(b) === u;
|
|
1869
|
+
}, Q.isContextProvider = function(b) {
|
|
1870
|
+
return S(b) === s;
|
|
1871
|
+
}, Q.isElement = function(b) {
|
|
1872
|
+
return typeof b == "object" && b !== null && b.$$typeof === r;
|
|
1873
|
+
}, Q.isForwardRef = function(b) {
|
|
1874
|
+
return S(b) === a;
|
|
1875
|
+
}, Q.isFragment = function(b) {
|
|
1876
|
+
return S(b) === n;
|
|
1877
|
+
}, Q.isLazy = function(b) {
|
|
1878
|
+
return S(b) === p;
|
|
1879
|
+
}, Q.isMemo = function(b) {
|
|
1880
|
+
return S(b) === g;
|
|
1881
|
+
}, Q.isPortal = function(b) {
|
|
1882
|
+
return S(b) === i;
|
|
1883
|
+
}, Q.isProfiler = function(b) {
|
|
1884
|
+
return S(b) === o;
|
|
1885
|
+
}, Q.isStrictMode = function(b) {
|
|
1886
|
+
return S(b) === t;
|
|
1887
|
+
}, Q.isSuspense = function(b) {
|
|
1888
|
+
return S(b) === c;
|
|
1889
|
+
}, Q.isValidElementType = function(b) {
|
|
1890
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === d || b === o || b === t || b === c || b === f || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === g || b.$$typeof === s || b.$$typeof === u || b.$$typeof === a || b.$$typeof === v || b.$$typeof === y || b.$$typeof === C || b.$$typeof === m);
|
|
1892
1891
|
}, Q.typeOf = S, Q;
|
|
1893
1892
|
}
|
|
1894
1893
|
var J = {};
|
|
@@ -1903,12 +1902,12 @@ var J = {};
|
|
|
1903
1902
|
var Wt;
|
|
1904
1903
|
function ni() {
|
|
1905
1904
|
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,
|
|
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, v = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
1907
1906
|
function S(R) {
|
|
1908
1907
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
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 ===
|
|
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 === v || R.$$typeof === y || R.$$typeof === C || R.$$typeof === m);
|
|
1910
1909
|
}
|
|
1911
|
-
function
|
|
1910
|
+
function T(R) {
|
|
1912
1911
|
if (typeof R == "object" && R !== null) {
|
|
1913
1912
|
var pe = R.$$typeof;
|
|
1914
1913
|
switch (pe) {
|
|
@@ -1923,14 +1922,14 @@ function ni() {
|
|
|
1923
1922
|
case c:
|
|
1924
1923
|
return Ue;
|
|
1925
1924
|
default:
|
|
1926
|
-
var
|
|
1927
|
-
switch (
|
|
1925
|
+
var Ft = Ue && Ue.$$typeof;
|
|
1926
|
+
switch (Ft) {
|
|
1928
1927
|
case u:
|
|
1929
1928
|
case a:
|
|
1930
1929
|
case p:
|
|
1931
1930
|
case g:
|
|
1932
1931
|
case s:
|
|
1933
|
-
return
|
|
1932
|
+
return Ft;
|
|
1934
1933
|
default:
|
|
1935
1934
|
return pe;
|
|
1936
1935
|
}
|
|
@@ -1940,47 +1939,47 @@ function ni() {
|
|
|
1940
1939
|
}
|
|
1941
1940
|
}
|
|
1942
1941
|
}
|
|
1943
|
-
var
|
|
1942
|
+
var b = l, D = d, O = u, E = s, w = r, A = a, P = n, q = p, Y = g, F = i, V = o, N = t, j = c, $ = !1;
|
|
1944
1943
|
function Z(R) {
|
|
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) ||
|
|
1944
|
+
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) || T(R) === l;
|
|
1946
1945
|
}
|
|
1947
1946
|
function _(R) {
|
|
1948
|
-
return
|
|
1947
|
+
return T(R) === d;
|
|
1949
1948
|
}
|
|
1950
|
-
function
|
|
1951
|
-
return
|
|
1949
|
+
function I(R) {
|
|
1950
|
+
return T(R) === u;
|
|
1952
1951
|
}
|
|
1953
1952
|
function L(R) {
|
|
1954
|
-
return
|
|
1953
|
+
return T(R) === s;
|
|
1955
1954
|
}
|
|
1956
1955
|
function B(R) {
|
|
1957
1956
|
return typeof R == "object" && R !== null && R.$$typeof === r;
|
|
1958
1957
|
}
|
|
1959
1958
|
function M(R) {
|
|
1960
|
-
return
|
|
1959
|
+
return T(R) === a;
|
|
1961
1960
|
}
|
|
1962
1961
|
function W(R) {
|
|
1963
|
-
return
|
|
1962
|
+
return T(R) === n;
|
|
1964
1963
|
}
|
|
1965
1964
|
function U(R) {
|
|
1966
|
-
return
|
|
1965
|
+
return T(R) === p;
|
|
1967
1966
|
}
|
|
1968
1967
|
function z(R) {
|
|
1969
|
-
return
|
|
1968
|
+
return T(R) === g;
|
|
1970
1969
|
}
|
|
1971
1970
|
function X(R) {
|
|
1972
|
-
return
|
|
1971
|
+
return T(R) === i;
|
|
1973
1972
|
}
|
|
1974
1973
|
function ee(R) {
|
|
1975
|
-
return
|
|
1974
|
+
return T(R) === o;
|
|
1976
1975
|
}
|
|
1977
1976
|
function K(R) {
|
|
1978
|
-
return
|
|
1977
|
+
return T(R) === t;
|
|
1979
1978
|
}
|
|
1980
1979
|
function se(R) {
|
|
1981
|
-
return
|
|
1980
|
+
return T(R) === c;
|
|
1982
1981
|
}
|
|
1983
|
-
J.AsyncMode =
|
|
1982
|
+
J.AsyncMode = b, J.ConcurrentMode = D, J.ContextConsumer = O, J.ContextProvider = E, J.Element = w, J.ForwardRef = A, 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 = I, J.isContextProvider = L, J.isElement = B, J.isForwardRef = M, J.isFragment = W, J.isLazy = U, J.isMemo = z, J.isPortal = X, J.isProfiler = ee, J.isStrictMode = K, J.isSuspense = se, J.isValidElementType = S, J.typeOf = T;
|
|
1984
1983
|
}()), J;
|
|
1985
1984
|
}
|
|
1986
1985
|
var Xt;
|
|
@@ -2039,7 +2038,7 @@ function ri() {
|
|
|
2039
2038
|
}, ot;
|
|
2040
2039
|
}
|
|
2041
2040
|
var it, Zt;
|
|
2042
|
-
function
|
|
2041
|
+
function Nt() {
|
|
2043
2042
|
if (Zt) return it;
|
|
2044
2043
|
Zt = 1;
|
|
2045
2044
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -2056,7 +2055,7 @@ function oi() {
|
|
|
2056
2055
|
var e = function() {
|
|
2057
2056
|
};
|
|
2058
2057
|
if (process.env.NODE_ENV !== "production") {
|
|
2059
|
-
var r =
|
|
2058
|
+
var r = Nt(), i = {}, n = wn();
|
|
2060
2059
|
e = function(o) {
|
|
2061
2060
|
var s = "Warning: " + o;
|
|
2062
2061
|
typeof console < "u" && console.error(s);
|
|
@@ -2102,7 +2101,7 @@ var ut, Jt;
|
|
|
2102
2101
|
function ii() {
|
|
2103
2102
|
if (Jt) return ut;
|
|
2104
2103
|
Jt = 1;
|
|
2105
|
-
var e = Rn(), r = ri(), i =
|
|
2104
|
+
var e = Rn(), r = ri(), i = Nt(), n = wn(), t = oi(), o = function() {
|
|
2106
2105
|
};
|
|
2107
2106
|
process.env.NODE_ENV !== "production" && (o = function(u) {
|
|
2108
2107
|
var l = "Warning: " + u;
|
|
@@ -2118,41 +2117,41 @@ function ii() {
|
|
|
2118
2117
|
return ut = function(u, l) {
|
|
2119
2118
|
var d = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator";
|
|
2120
2119
|
function c(_) {
|
|
2121
|
-
var
|
|
2122
|
-
if (typeof
|
|
2123
|
-
return
|
|
2120
|
+
var I = _ && (d && _[d] || _[a]);
|
|
2121
|
+
if (typeof I == "function")
|
|
2122
|
+
return I;
|
|
2124
2123
|
}
|
|
2125
2124
|
var f = "<<anonymous>>", g = {
|
|
2126
|
-
array:
|
|
2127
|
-
bigint:
|
|
2128
|
-
bool:
|
|
2129
|
-
func:
|
|
2130
|
-
number:
|
|
2131
|
-
object:
|
|
2132
|
-
string:
|
|
2133
|
-
symbol:
|
|
2125
|
+
array: y("array"),
|
|
2126
|
+
bigint: y("bigint"),
|
|
2127
|
+
bool: y("boolean"),
|
|
2128
|
+
func: y("function"),
|
|
2129
|
+
number: y("number"),
|
|
2130
|
+
object: y("object"),
|
|
2131
|
+
string: y("string"),
|
|
2132
|
+
symbol: y("symbol"),
|
|
2134
2133
|
any: C(),
|
|
2135
2134
|
arrayOf: S,
|
|
2136
|
-
element:
|
|
2137
|
-
elementType:
|
|
2138
|
-
instanceOf:
|
|
2139
|
-
node:
|
|
2140
|
-
objectOf:
|
|
2141
|
-
oneOf:
|
|
2135
|
+
element: T(),
|
|
2136
|
+
elementType: b(),
|
|
2137
|
+
instanceOf: D,
|
|
2138
|
+
node: A(),
|
|
2139
|
+
objectOf: E,
|
|
2140
|
+
oneOf: O,
|
|
2142
2141
|
oneOfType: w,
|
|
2143
2142
|
shape: q,
|
|
2144
2143
|
exact: Y
|
|
2145
2144
|
};
|
|
2146
|
-
function p(_,
|
|
2147
|
-
return _ ===
|
|
2145
|
+
function p(_, I) {
|
|
2146
|
+
return _ === I ? _ !== 0 || 1 / _ === 1 / I : _ !== _ && I !== I;
|
|
2148
2147
|
}
|
|
2149
|
-
function m(_,
|
|
2150
|
-
this.message = _, this.data =
|
|
2148
|
+
function m(_, I) {
|
|
2149
|
+
this.message = _, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
|
|
2151
2150
|
}
|
|
2152
2151
|
m.prototype = Error.prototype;
|
|
2153
2152
|
function v(_) {
|
|
2154
2153
|
if (process.env.NODE_ENV !== "production")
|
|
2155
|
-
var
|
|
2154
|
+
var I = {}, L = 0;
|
|
2156
2155
|
function B(W, U, z, X, ee, K, se) {
|
|
2157
2156
|
if (X = X || f, K = K || z, se !== i) {
|
|
2158
2157
|
if (l) {
|
|
@@ -2162,10 +2161,10 @@ function ii() {
|
|
|
2162
2161
|
throw R.name = "Invariant Violation", R;
|
|
2163
2162
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2164
2163
|
var pe = X + ":" + z;
|
|
2165
|
-
!
|
|
2164
|
+
!I[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2166
2165
|
L < 3 && (o(
|
|
2167
2166
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + X + "`. 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."
|
|
2168
|
-
),
|
|
2167
|
+
), I[pe] = !0, L++);
|
|
2169
2168
|
}
|
|
2170
2169
|
}
|
|
2171
2170
|
return U[z] == null ? W ? U[z] === null ? new m("The " + ee + " `" + K + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new m("The " + ee + " `" + K + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : _(U, z, X, ee, K);
|
|
@@ -2173,8 +2172,8 @@ function ii() {
|
|
|
2173
2172
|
var M = B.bind(null, !1);
|
|
2174
2173
|
return M.isRequired = B.bind(null, !0), M;
|
|
2175
2174
|
}
|
|
2176
|
-
function
|
|
2177
|
-
function
|
|
2175
|
+
function y(_) {
|
|
2176
|
+
function I(L, B, M, W, U, z) {
|
|
2178
2177
|
var X = L[B], ee = N(X);
|
|
2179
2178
|
if (ee !== _) {
|
|
2180
2179
|
var K = j(X);
|
|
@@ -2185,13 +2184,13 @@ function ii() {
|
|
|
2185
2184
|
}
|
|
2186
2185
|
return null;
|
|
2187
2186
|
}
|
|
2188
|
-
return v(
|
|
2187
|
+
return v(I);
|
|
2189
2188
|
}
|
|
2190
2189
|
function C() {
|
|
2191
2190
|
return v(s);
|
|
2192
2191
|
}
|
|
2193
2192
|
function S(_) {
|
|
2194
|
-
function
|
|
2193
|
+
function I(L, B, M, W, U) {
|
|
2195
2194
|
if (typeof _ != "function")
|
|
2196
2195
|
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
|
|
2197
2196
|
var z = L[B];
|
|
@@ -2206,11 +2205,11 @@ function ii() {
|
|
|
2206
2205
|
}
|
|
2207
2206
|
return null;
|
|
2208
2207
|
}
|
|
2209
|
-
return v(
|
|
2208
|
+
return v(I);
|
|
2210
2209
|
}
|
|
2211
|
-
function
|
|
2212
|
-
function _(
|
|
2213
|
-
var U =
|
|
2210
|
+
function T() {
|
|
2211
|
+
function _(I, L, B, M, W) {
|
|
2212
|
+
var U = I[L];
|
|
2214
2213
|
if (!u(U)) {
|
|
2215
2214
|
var z = N(U);
|
|
2216
2215
|
return new m("Invalid " + M + " `" + W + "` of type " + ("`" + z + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
@@ -2219,9 +2218,9 @@ function ii() {
|
|
|
2219
2218
|
}
|
|
2220
2219
|
return v(_);
|
|
2221
2220
|
}
|
|
2222
|
-
function
|
|
2223
|
-
function _(
|
|
2224
|
-
var U =
|
|
2221
|
+
function b() {
|
|
2222
|
+
function _(I, L, B, M, W) {
|
|
2223
|
+
var U = I[L];
|
|
2225
2224
|
if (!e.isValidElementType(U)) {
|
|
2226
2225
|
var z = N(U);
|
|
2227
2226
|
return new m("Invalid " + M + " `" + W + "` of type " + ("`" + z + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
@@ -2230,22 +2229,22 @@ function ii() {
|
|
|
2230
2229
|
}
|
|
2231
2230
|
return v(_);
|
|
2232
2231
|
}
|
|
2233
|
-
function
|
|
2234
|
-
function
|
|
2232
|
+
function D(_) {
|
|
2233
|
+
function I(L, B, M, W, U) {
|
|
2235
2234
|
if (!(L[B] instanceof _)) {
|
|
2236
2235
|
var z = _.name || f, X = Z(L[B]);
|
|
2237
2236
|
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected ") + ("instance of `" + z + "`."));
|
|
2238
2237
|
}
|
|
2239
2238
|
return null;
|
|
2240
2239
|
}
|
|
2241
|
-
return v(
|
|
2240
|
+
return v(I);
|
|
2242
2241
|
}
|
|
2243
|
-
function
|
|
2242
|
+
function O(_) {
|
|
2244
2243
|
if (!Array.isArray(_))
|
|
2245
2244
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
2246
2245
|
"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])."
|
|
2247
2246
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2248
|
-
function
|
|
2247
|
+
function I(L, B, M, W, U) {
|
|
2249
2248
|
for (var z = L[B], X = 0; X < _.length; X++)
|
|
2250
2249
|
if (p(z, _[X]))
|
|
2251
2250
|
return null;
|
|
@@ -2255,10 +2254,10 @@ function ii() {
|
|
|
2255
2254
|
});
|
|
2256
2255
|
return new m("Invalid " + W + " `" + U + "` of value `" + String(z) + "` " + ("supplied to `" + M + "`, expected one of " + ee + "."));
|
|
2257
2256
|
}
|
|
2258
|
-
return v(
|
|
2257
|
+
return v(I);
|
|
2259
2258
|
}
|
|
2260
|
-
function
|
|
2261
|
-
function
|
|
2259
|
+
function E(_) {
|
|
2260
|
+
function I(L, B, M, W, U) {
|
|
2262
2261
|
if (typeof _ != "function")
|
|
2263
2262
|
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
|
|
2264
2263
|
var z = L[B], X = N(z);
|
|
@@ -2272,16 +2271,16 @@ function ii() {
|
|
|
2272
2271
|
}
|
|
2273
2272
|
return null;
|
|
2274
2273
|
}
|
|
2275
|
-
return v(
|
|
2274
|
+
return v(I);
|
|
2276
2275
|
}
|
|
2277
2276
|
function w(_) {
|
|
2278
2277
|
if (!Array.isArray(_))
|
|
2279
2278
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
2280
|
-
for (var
|
|
2281
|
-
var L = _[
|
|
2279
|
+
for (var I = 0; I < _.length; I++) {
|
|
2280
|
+
var L = _[I];
|
|
2282
2281
|
if (typeof L != "function")
|
|
2283
2282
|
return o(
|
|
2284
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(L) + " at index " +
|
|
2283
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(L) + " at index " + I + "."
|
|
2285
2284
|
), s;
|
|
2286
2285
|
}
|
|
2287
2286
|
function B(M, W, U, z, X) {
|
|
@@ -2296,19 +2295,19 @@ function ii() {
|
|
|
2296
2295
|
}
|
|
2297
2296
|
return v(B);
|
|
2298
2297
|
}
|
|
2299
|
-
function
|
|
2300
|
-
function _(
|
|
2301
|
-
return F(
|
|
2298
|
+
function A() {
|
|
2299
|
+
function _(I, L, B, M, W) {
|
|
2300
|
+
return F(I[L]) ? null : new m("Invalid " + M + " `" + W + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
2302
2301
|
}
|
|
2303
2302
|
return v(_);
|
|
2304
2303
|
}
|
|
2305
|
-
function P(_,
|
|
2304
|
+
function P(_, I, L, B, M) {
|
|
2306
2305
|
return new m(
|
|
2307
|
-
(_ || "React class") + ": " +
|
|
2306
|
+
(_ || "React class") + ": " + I + " type `" + L + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + M + "`."
|
|
2308
2307
|
);
|
|
2309
2308
|
}
|
|
2310
2309
|
function q(_) {
|
|
2311
|
-
function
|
|
2310
|
+
function I(L, B, M, W, U) {
|
|
2312
2311
|
var z = L[B], X = N(z);
|
|
2313
2312
|
if (X !== "object")
|
|
2314
2313
|
return new m("Invalid " + W + " `" + U + "` of type `" + X + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
@@ -2322,10 +2321,10 @@ function ii() {
|
|
|
2322
2321
|
}
|
|
2323
2322
|
return null;
|
|
2324
2323
|
}
|
|
2325
|
-
return v(
|
|
2324
|
+
return v(I);
|
|
2326
2325
|
}
|
|
2327
2326
|
function Y(_) {
|
|
2328
|
-
function
|
|
2327
|
+
function I(L, B, M, W, U) {
|
|
2329
2328
|
var z = L[B], X = N(z);
|
|
2330
2329
|
if (X !== "object")
|
|
2331
2330
|
return new m("Invalid " + W + " `" + U + "` of type `" + X + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
@@ -2345,7 +2344,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
2345
2344
|
}
|
|
2346
2345
|
return null;
|
|
2347
2346
|
}
|
|
2348
|
-
return v(
|
|
2347
|
+
return v(I);
|
|
2349
2348
|
}
|
|
2350
2349
|
function F(_) {
|
|
2351
2350
|
switch (typeof _) {
|
|
@@ -2360,10 +2359,10 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
2360
2359
|
return _.every(F);
|
|
2361
2360
|
if (_ === null || u(_))
|
|
2362
2361
|
return !0;
|
|
2363
|
-
var
|
|
2364
|
-
if (
|
|
2365
|
-
var L =
|
|
2366
|
-
if (
|
|
2362
|
+
var I = c(_);
|
|
2363
|
+
if (I) {
|
|
2364
|
+
var L = I.call(_), B;
|
|
2365
|
+
if (I !== _.entries) {
|
|
2367
2366
|
for (; !(B = L.next()).done; )
|
|
2368
2367
|
if (!F(B.value))
|
|
2369
2368
|
return !1;
|
|
@@ -2380,37 +2379,37 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
2380
2379
|
return !1;
|
|
2381
2380
|
}
|
|
2382
2381
|
}
|
|
2383
|
-
function V(_,
|
|
2384
|
-
return _ === "symbol" ? !0 :
|
|
2382
|
+
function V(_, I) {
|
|
2383
|
+
return _ === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
|
|
2385
2384
|
}
|
|
2386
2385
|
function N(_) {
|
|
2387
|
-
var
|
|
2388
|
-
return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : V(
|
|
2386
|
+
var I = typeof _;
|
|
2387
|
+
return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : V(I, _) ? "symbol" : I;
|
|
2389
2388
|
}
|
|
2390
2389
|
function j(_) {
|
|
2391
2390
|
if (typeof _ > "u" || _ === null)
|
|
2392
2391
|
return "" + _;
|
|
2393
|
-
var
|
|
2394
|
-
if (
|
|
2392
|
+
var I = N(_);
|
|
2393
|
+
if (I === "object") {
|
|
2395
2394
|
if (_ instanceof Date)
|
|
2396
2395
|
return "date";
|
|
2397
2396
|
if (_ instanceof RegExp)
|
|
2398
2397
|
return "regexp";
|
|
2399
2398
|
}
|
|
2400
|
-
return
|
|
2399
|
+
return I;
|
|
2401
2400
|
}
|
|
2402
2401
|
function $(_) {
|
|
2403
|
-
var
|
|
2404
|
-
switch (
|
|
2402
|
+
var I = j(_);
|
|
2403
|
+
switch (I) {
|
|
2405
2404
|
case "array":
|
|
2406
2405
|
case "object":
|
|
2407
|
-
return "an " +
|
|
2406
|
+
return "an " + I;
|
|
2408
2407
|
case "boolean":
|
|
2409
2408
|
case "date":
|
|
2410
2409
|
case "regexp":
|
|
2411
|
-
return "a " +
|
|
2410
|
+
return "a " + I;
|
|
2412
2411
|
default:
|
|
2413
|
-
return
|
|
2412
|
+
return I;
|
|
2414
2413
|
}
|
|
2415
2414
|
}
|
|
2416
2415
|
function Z(_) {
|
|
@@ -2423,7 +2422,7 @@ var lt, en;
|
|
|
2423
2422
|
function si() {
|
|
2424
2423
|
if (en) return lt;
|
|
2425
2424
|
en = 1;
|
|
2426
|
-
var e =
|
|
2425
|
+
var e = Nt();
|
|
2427
2426
|
function r() {
|
|
2428
2427
|
}
|
|
2429
2428
|
function i() {
|
|
@@ -2469,11 +2468,11 @@ function si() {
|
|
|
2469
2468
|
}
|
|
2470
2469
|
if (process.env.NODE_ENV !== "production") {
|
|
2471
2470
|
var ai = Rn(), ui = !0;
|
|
2472
|
-
|
|
2471
|
+
vt.exports = ii()(ai.isElement, ui);
|
|
2473
2472
|
} else
|
|
2474
|
-
|
|
2475
|
-
var li =
|
|
2476
|
-
const
|
|
2473
|
+
vt.exports = si()();
|
|
2474
|
+
var li = vt.exports;
|
|
2475
|
+
const x = /* @__PURE__ */ yt(li);
|
|
2477
2476
|
var Ke = function(r) {
|
|
2478
2477
|
return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
2479
2478
|
}, ge = {
|
|
@@ -2494,16 +2493,16 @@ var Ke = function(r) {
|
|
|
2494
2493
|
return r.indexOf("__id__") >= 0 && i++, r.indexOf("__display__") >= 0 && i++, i;
|
|
2495
2494
|
}, di = function() {
|
|
2496
2495
|
}, ke = function(r, i, n) {
|
|
2497
|
-
for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : di, o = ci(i.map(function(
|
|
2498
|
-
return
|
|
2499
|
-
})), s = 2, u = i.map(function(
|
|
2500
|
-
var
|
|
2501
|
-
return s += Nn(
|
|
2496
|
+
for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : di, o = ci(i.map(function(b) {
|
|
2497
|
+
return b.regex;
|
|
2498
|
+
})), s = 2, u = i.map(function(b) {
|
|
2499
|
+
var D = b.markup, O = s;
|
|
2500
|
+
return s += Nn(D) + 1, O;
|
|
2502
2501
|
}), l, d = 0, a = 0; (l = o.exec(r)) !== null; ) {
|
|
2503
|
-
var c = u.find(function(
|
|
2504
|
-
return !!l[
|
|
2505
|
-
}), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform, v = c + tn(p, "id"),
|
|
2506
|
-
t(
|
|
2502
|
+
var c = u.find(function(b) {
|
|
2503
|
+
return !!l[b];
|
|
2504
|
+
}), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform, v = c + tn(p, "id"), y = c + tn(p, "display"), C = l[v], S = m(C, l[y]), T = r.substring(d, l.index);
|
|
2505
|
+
t(T, d, a), a += T.length, n(l[0], l.index, a, C, S, f, d), a += S.length, d = o.lastIndex;
|
|
2507
2506
|
}
|
|
2508
2507
|
d < r.length && t(r.substring(d), d, a);
|
|
2509
2508
|
}, Ce = function(r, i) {
|
|
@@ -2530,8 +2529,8 @@ var Ke = function(r) {
|
|
|
2530
2529
|
o === "undefined" && (o = u + d), s === "undefined" && (s = o), o === s && s === u && l.length === i.length && (o = o - 1);
|
|
2531
2530
|
var a = i.slice(o, u), c = Math.min(o, u), f = s;
|
|
2532
2531
|
o === u && (f = Math.max(s, o + d));
|
|
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"),
|
|
2534
|
-
if (!
|
|
2532
|
+
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"), y = m === null || v === null, C = Fe(r, g, p, a);
|
|
2533
|
+
if (!y) {
|
|
2535
2534
|
var S = Ce(C, t);
|
|
2536
2535
|
if (S !== i) {
|
|
2537
2536
|
for (c = 0; i[c] === S[c]; )
|
|
@@ -2867,7 +2866,7 @@ var Ke = function(r) {
|
|
|
2867
2866
|
return n ? rn(r).indexOf(rn(i)) : r.toLowerCase().indexOf(i.toLowerCase());
|
|
2868
2867
|
}, yi = function() {
|
|
2869
2868
|
return !!document.documentMode;
|
|
2870
|
-
},
|
|
2869
|
+
}, mt = function(r) {
|
|
2871
2870
|
return typeof r == "number";
|
|
2872
2871
|
}, bi = function(r) {
|
|
2873
2872
|
return r === Object(r) ? Object.keys(r) : [];
|
|
@@ -2903,7 +2902,7 @@ function sn(e) {
|
|
|
2903
2902
|
function nt(e, r) {
|
|
2904
2903
|
var i = function(t) {
|
|
2905
2904
|
var o = function(l) {
|
|
2906
|
-
var d = l.style, a = l.className, c = l.classNames, f = Lo(l, Si), g = r ? r(f) : void 0, p =
|
|
2905
|
+
var d = l.style, a = l.className, c = l.classNames, f = Lo(l, Si), g = r ? r(f) : void 0, p = wt(e, {
|
|
2907
2906
|
style: d,
|
|
2908
2907
|
className: a,
|
|
2909
2908
|
classNames: c
|
|
@@ -2931,9 +2930,9 @@ function Fn(e) {
|
|
|
2931
2930
|
top: void 0
|
|
2932
2931
|
}), a = Je(d, 2), c = a[0], f = a[1], g = re(), p = Je(g, 2), m = p[0], v = p[1];
|
|
2933
2932
|
le(function() {
|
|
2934
|
-
|
|
2933
|
+
y();
|
|
2935
2934
|
});
|
|
2936
|
-
var
|
|
2935
|
+
var y = function() {
|
|
2937
2936
|
if (m) {
|
|
2938
2937
|
var F = m.offsetLeft, V = m.offsetTop;
|
|
2939
2938
|
if (!(c.left === F && c.top === V)) {
|
|
@@ -2946,17 +2945,17 @@ function Fn(e) {
|
|
|
2946
2945
|
}
|
|
2947
2946
|
}, C = Ee(u), S;
|
|
2948
2947
|
i === r && (S = ie(t, C, r, "START"));
|
|
2949
|
-
var
|
|
2950
|
-
if (
|
|
2948
|
+
var T = [], b = {}, D = T, O = 0, E = function(F, V, N) {
|
|
2949
|
+
if (mt(S) && S >= V && S <= V + F.length) {
|
|
2951
2950
|
var j = S - V;
|
|
2952
|
-
|
|
2951
|
+
D.push(A(F.substring(0, j), O)), D = [A(F.substring(j), O)];
|
|
2953
2952
|
} else
|
|
2954
|
-
|
|
2955
|
-
|
|
2953
|
+
D.push(A(F, O));
|
|
2954
|
+
O++;
|
|
2956
2955
|
}, w = function(F, V, N, j, $, Z, _) {
|
|
2957
|
-
var
|
|
2958
|
-
|
|
2959
|
-
},
|
|
2956
|
+
var I = _i(b, j);
|
|
2957
|
+
D.push(P(j, $, Z, I));
|
|
2958
|
+
}, A = function(F, V) {
|
|
2960
2959
|
return /* @__PURE__ */ G.createElement("span", ue({}, l("substring"), {
|
|
2961
2960
|
key: V
|
|
2962
2961
|
}), F);
|
|
@@ -2973,19 +2972,19 @@ function Fn(e) {
|
|
|
2973
2972
|
key: "caret"
|
|
2974
2973
|
}), F);
|
|
2975
2974
|
};
|
|
2976
|
-
return ke(t, C, w,
|
|
2975
|
+
return ke(t, C, w, E), D.push(" "), D !== T && T.push(q(D)), /* @__PURE__ */ G.createElement("div", ue({}, l, {
|
|
2977
2976
|
ref: s
|
|
2978
|
-
}),
|
|
2977
|
+
}), T);
|
|
2979
2978
|
}
|
|
2980
2979
|
Fn.propTypes = {
|
|
2981
|
-
selectionStart:
|
|
2982
|
-
selectionEnd:
|
|
2983
|
-
value:
|
|
2984
|
-
onCaretPositionChange:
|
|
2985
|
-
containerRef:
|
|
2986
|
-
current: typeof Element > "u" ?
|
|
2980
|
+
selectionStart: x.number,
|
|
2981
|
+
selectionEnd: x.number,
|
|
2982
|
+
value: x.string.isRequired,
|
|
2983
|
+
onCaretPositionChange: x.func.isRequired,
|
|
2984
|
+
containerRef: x.oneOfType([x.func, x.shape({
|
|
2985
|
+
current: typeof Element > "u" ? x.any : x.instanceOf(Element)
|
|
2987
2986
|
})]),
|
|
2988
|
-
children:
|
|
2987
|
+
children: x.oneOfType([x.element, x.arrayOf(x.element)]).isRequired
|
|
2989
2988
|
};
|
|
2990
2989
|
var Ai = nt({
|
|
2991
2990
|
position: "relative",
|
|
@@ -3016,16 +3015,16 @@ function Mn(e) {
|
|
|
3016
3015
|
onClick: o,
|
|
3017
3016
|
onMouseEnter: s
|
|
3018
3017
|
}, f = function() {
|
|
3019
|
-
var v = g(),
|
|
3020
|
-
return l ? l(d, u,
|
|
3018
|
+
var v = g(), y = p(v);
|
|
3019
|
+
return l ? l(d, u, y, t, i) : y;
|
|
3021
3020
|
}, g = function() {
|
|
3022
3021
|
if (typeof d == "string")
|
|
3023
3022
|
return d;
|
|
3024
|
-
var v = d.id,
|
|
3025
|
-
return v === void 0 || !
|
|
3023
|
+
var v = d.id, y = d.display;
|
|
3024
|
+
return v === void 0 || !y ? v : y;
|
|
3026
3025
|
}, p = function(v) {
|
|
3027
|
-
var
|
|
3028
|
-
return
|
|
3026
|
+
var y = Pn(v, u, n);
|
|
3027
|
+
return y === -1 ? /* @__PURE__ */ G.createElement("span", a("display"), v) : /* @__PURE__ */ G.createElement("span", a("display"), v.substring(0, y), /* @__PURE__ */ G.createElement("b", a("highlight"), v.substring(y, y + u.length)), v.substring(y + u.length));
|
|
3029
3028
|
};
|
|
3030
3029
|
return /* @__PURE__ */ G.createElement("li", ue({
|
|
3031
3030
|
id: r,
|
|
@@ -3034,16 +3033,16 @@ function Mn(e) {
|
|
|
3034
3033
|
}, c, a), f());
|
|
3035
3034
|
}
|
|
3036
3035
|
Mn.propTypes = {
|
|
3037
|
-
id:
|
|
3038
|
-
query:
|
|
3039
|
-
index:
|
|
3040
|
-
ignoreAccents:
|
|
3041
|
-
suggestion:
|
|
3042
|
-
id:
|
|
3043
|
-
display:
|
|
3036
|
+
id: x.string.isRequired,
|
|
3037
|
+
query: x.string.isRequired,
|
|
3038
|
+
index: x.number.isRequired,
|
|
3039
|
+
ignoreAccents: x.bool,
|
|
3040
|
+
suggestion: x.oneOfType([x.string, x.shape({
|
|
3041
|
+
id: x.oneOfType([x.string, x.number]).isRequired,
|
|
3042
|
+
display: x.string
|
|
3044
3043
|
})]).isRequired,
|
|
3045
|
-
renderSuggestion:
|
|
3046
|
-
focused:
|
|
3044
|
+
renderSuggestion: x.func,
|
|
3045
|
+
focused: x.bool
|
|
3047
3046
|
};
|
|
3048
3047
|
var Ii = nt({
|
|
3049
3048
|
cursor: "pointer"
|
|
@@ -3053,7 +3052,7 @@ var Ii = nt({
|
|
|
3053
3052
|
};
|
|
3054
3053
|
}), xi = Ii(Mn);
|
|
3055
3054
|
function Oi(e) {
|
|
3056
|
-
var r = e.style, i = e.className, n = e.classNames, t =
|
|
3055
|
+
var r = e.style, i = e.className, n = e.classNames, t = wt(Di, {
|
|
3057
3056
|
style: r,
|
|
3058
3057
|
className: i,
|
|
3059
3058
|
classNames: n
|
|
@@ -3064,31 +3063,31 @@ var Di = {};
|
|
|
3064
3063
|
function Ln(e) {
|
|
3065
3064
|
var r = e.id, i = e.suggestions, n = i === void 0 ? {} : i, t = e.a11ySuggestionsListLabel, o = e.focusIndex, s = e.position, u = e.left, l = e.right, d = e.top, a = e.scrollFocusedIntoView, c = e.isLoading, f = e.isOpened, g = e.onSelect, p = g === void 0 ? function() {
|
|
3066
3065
|
return null;
|
|
3067
|
-
} : g, m = e.ignoreAccents, v = e.containerRef,
|
|
3066
|
+
} : g, m = e.ignoreAccents, v = e.containerRef, y = e.children, C = e.style, S = e.customSuggestionsContainer, T = e.onMouseDown, b = e.onMouseEnter, D = re(void 0), O = Je(D, 2), E = O[0], w = O[1];
|
|
3068
3067
|
le(function() {
|
|
3069
|
-
if (!(!
|
|
3070
|
-
var N =
|
|
3071
|
-
$ = $ -
|
|
3068
|
+
if (!(!E || E.offsetHeight >= E.scrollHeight || !a)) {
|
|
3069
|
+
var N = E.scrollTop, j = E.children[o].getBoundingClientRect(), $ = j.top, Z = j.bottom, _ = E.getBoundingClientRect(), I = _.top;
|
|
3070
|
+
$ = $ - I + N, Z = Z - I + N, $ < N ? E.scrollTop = $ : Z > E.offsetHeight && (E.scrollTop = Z - E.offsetHeight);
|
|
3072
3071
|
}
|
|
3073
|
-
}, [o, a,
|
|
3074
|
-
var
|
|
3072
|
+
}, [o, a, E]);
|
|
3073
|
+
var A = function() {
|
|
3075
3074
|
var j = /* @__PURE__ */ G.createElement("ul", ue({
|
|
3076
3075
|
ref: w,
|
|
3077
3076
|
id: r,
|
|
3078
3077
|
role: "listbox",
|
|
3079
3078
|
"aria-label": t
|
|
3080
3079
|
}, C("list")), Object.values(n).reduce(function($, Z) {
|
|
3081
|
-
var _ = Z.results,
|
|
3080
|
+
var _ = Z.results, I = Z.queryInfo;
|
|
3082
3081
|
return [].concat(Ge($), Ge(_.map(function(L, B) {
|
|
3083
|
-
return P(L,
|
|
3082
|
+
return P(L, I, $.length + B);
|
|
3084
3083
|
})));
|
|
3085
3084
|
}, []));
|
|
3086
3085
|
return S ? S(j) : j;
|
|
3087
3086
|
}, P = function(j, $, Z) {
|
|
3088
|
-
var _ = Z === o,
|
|
3087
|
+
var _ = Z === o, I = $.childIndex, L = $.query, B = De.toArray(y)[I].props.renderSuggestion;
|
|
3089
3088
|
return /* @__PURE__ */ G.createElement(xi, {
|
|
3090
3089
|
style: C("item"),
|
|
3091
|
-
key: "".concat(
|
|
3090
|
+
key: "".concat(I, "-").concat(V(j)),
|
|
3092
3091
|
id: jn(r, Z),
|
|
3093
3092
|
query: L,
|
|
3094
3093
|
index: Z,
|
|
@@ -3109,7 +3108,7 @@ function Ln(e) {
|
|
|
3109
3108
|
style: C("loadingIndicator")
|
|
3110
3109
|
});
|
|
3111
3110
|
}, Y = function(j, $) {
|
|
3112
|
-
|
|
3111
|
+
b && b(j);
|
|
3113
3112
|
}, F = function(j, $) {
|
|
3114
3113
|
p(j, $);
|
|
3115
3114
|
}, V = function(j) {
|
|
@@ -3121,27 +3120,27 @@ function Ln(e) {
|
|
|
3121
3120
|
right: l,
|
|
3122
3121
|
top: d
|
|
3123
3122
|
}, C), {
|
|
3124
|
-
onMouseDown:
|
|
3123
|
+
onMouseDown: T,
|
|
3125
3124
|
ref: v
|
|
3126
|
-
}),
|
|
3125
|
+
}), A(), q()) : null;
|
|
3127
3126
|
}
|
|
3128
3127
|
Ln.propTypes = {
|
|
3129
|
-
id:
|
|
3130
|
-
suggestions:
|
|
3131
|
-
a11ySuggestionsListLabel:
|
|
3132
|
-
focusIndex:
|
|
3133
|
-
position:
|
|
3134
|
-
left:
|
|
3135
|
-
right:
|
|
3136
|
-
top:
|
|
3137
|
-
scrollFocusedIntoView:
|
|
3138
|
-
isLoading:
|
|
3139
|
-
isOpened:
|
|
3140
|
-
onSelect:
|
|
3141
|
-
ignoreAccents:
|
|
3142
|
-
customSuggestionsContainer:
|
|
3143
|
-
containerRef:
|
|
3144
|
-
current: typeof Element > "u" ?
|
|
3128
|
+
id: x.string.isRequired,
|
|
3129
|
+
suggestions: x.object.isRequired,
|
|
3130
|
+
a11ySuggestionsListLabel: x.string,
|
|
3131
|
+
focusIndex: x.number,
|
|
3132
|
+
position: x.string,
|
|
3133
|
+
left: x.number,
|
|
3134
|
+
right: x.number,
|
|
3135
|
+
top: x.number,
|
|
3136
|
+
scrollFocusedIntoView: x.bool,
|
|
3137
|
+
isLoading: x.bool,
|
|
3138
|
+
isOpened: x.bool.isRequired,
|
|
3139
|
+
onSelect: x.func,
|
|
3140
|
+
ignoreAccents: x.bool,
|
|
3141
|
+
customSuggestionsContainer: x.func,
|
|
3142
|
+
containerRef: x.oneOfType([x.func, x.shape({
|
|
3143
|
+
current: typeof Element > "u" ? x.any : x.instanceOf(Element)
|
|
3145
3144
|
})])
|
|
3146
3145
|
};
|
|
3147
3146
|
var Ri = nt({
|
|
@@ -3223,24 +3222,24 @@ var Pi = function(r) {
|
|
|
3223
3222
|
* If set to `true` a regular text input element will be rendered
|
|
3224
3223
|
* instead of a textarea
|
|
3225
3224
|
*/
|
|
3226
|
-
singleLine:
|
|
3227
|
-
allowSpaceInQuery:
|
|
3228
|
-
allowSuggestionsAboveCursor:
|
|
3229
|
-
forceSuggestionsAboveCursor:
|
|
3230
|
-
ignoreAccents:
|
|
3231
|
-
a11ySuggestionsListLabel:
|
|
3232
|
-
value:
|
|
3233
|
-
onKeyDown:
|
|
3234
|
-
customSuggestionsContainer:
|
|
3235
|
-
onSelect:
|
|
3236
|
-
onBlur:
|
|
3237
|
-
onChange:
|
|
3238
|
-
suggestionsPortalHost: typeof Element > "u" ?
|
|
3239
|
-
inputRef:
|
|
3240
|
-
current: typeof Element > "u" ?
|
|
3225
|
+
singleLine: x.bool,
|
|
3226
|
+
allowSpaceInQuery: x.bool,
|
|
3227
|
+
allowSuggestionsAboveCursor: x.bool,
|
|
3228
|
+
forceSuggestionsAboveCursor: x.bool,
|
|
3229
|
+
ignoreAccents: x.bool,
|
|
3230
|
+
a11ySuggestionsListLabel: x.string,
|
|
3231
|
+
value: x.string,
|
|
3232
|
+
onKeyDown: x.func,
|
|
3233
|
+
customSuggestionsContainer: x.func,
|
|
3234
|
+
onSelect: x.func,
|
|
3235
|
+
onBlur: x.func,
|
|
3236
|
+
onChange: x.func,
|
|
3237
|
+
suggestionsPortalHost: typeof Element > "u" ? x.any : x.PropTypes.instanceOf(Element),
|
|
3238
|
+
inputRef: x.oneOfType([x.func, x.shape({
|
|
3239
|
+
current: typeof Element > "u" ? x.any : x.instanceOf(Element)
|
|
3241
3240
|
})]),
|
|
3242
|
-
children:
|
|
3243
|
-
},
|
|
3241
|
+
children: x.oneOfType([x.element, x.arrayOf(x.element)]).isRequired
|
|
3242
|
+
}, jt = /* @__PURE__ */ function(e) {
|
|
3244
3243
|
Do(i, e);
|
|
3245
3244
|
var r = Ni(i);
|
|
3246
3245
|
function i(n) {
|
|
@@ -3291,7 +3290,7 @@ var Pi = function(r) {
|
|
|
3291
3290
|
}), H(k(t), "setSuggestionsElement", function(o) {
|
|
3292
3291
|
t.suggestionsElement = o;
|
|
3293
3292
|
}), H(k(t), "renderSuggestionsOverlay", function() {
|
|
3294
|
-
if (!
|
|
3293
|
+
if (!mt(t.state.selectionStart))
|
|
3295
3294
|
return null;
|
|
3296
3295
|
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ G.createElement(wi, {
|
|
3297
3296
|
id: t.uuidSuggestionsOverlay,
|
|
@@ -3366,14 +3365,14 @@ var Pi = function(r) {
|
|
|
3366
3365
|
selectionEnd: p,
|
|
3367
3366
|
setSelectionAfterMentionChange: m
|
|
3368
3367
|
});
|
|
3369
|
-
var
|
|
3368
|
+
var y = Pe(f, l);
|
|
3370
3369
|
o.nativeEvent.isComposing && g === p && t.updateMentionsQueries(t.inputElement.value, g);
|
|
3371
3370
|
var C = {
|
|
3372
3371
|
target: {
|
|
3373
3372
|
value: f
|
|
3374
3373
|
}
|
|
3375
3374
|
};
|
|
3376
|
-
t.executeOnChange(C, f, d,
|
|
3375
|
+
t.executeOnChange(C, f, d, y);
|
|
3377
3376
|
}), H(k(t), "handleSelect", function(o) {
|
|
3378
3377
|
if (t.setState({
|
|
3379
3378
|
selectionStart: o.target.selectionStart,
|
|
@@ -3457,13 +3456,13 @@ var Pi = function(r) {
|
|
|
3457
3456
|
var v = {};
|
|
3458
3457
|
if (u) {
|
|
3459
3458
|
v.position = "fixed";
|
|
3460
|
-
var
|
|
3461
|
-
|
|
3459
|
+
var y = p.left, C = p.top;
|
|
3460
|
+
y -= ct(a, "margin-left"), C -= ct(a, "margin-top"), y -= c.scrollLeft, C -= c.scrollTop;
|
|
3462
3461
|
var S = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
3463
|
-
|
|
3462
|
+
y + a.offsetWidth > S ? v.left = Math.max(0, S - a.offsetWidth) : v.left = y, l && C + a.offsetHeight > m && a.offsetHeight < C - g || d ? v.top = Math.max(0, C - a.offsetHeight - g) : v.top = C;
|
|
3464
3463
|
} else {
|
|
3465
|
-
var
|
|
3466
|
-
|
|
3464
|
+
var T = o.left - c.scrollLeft, b = o.top - c.scrollTop;
|
|
3465
|
+
T + a.offsetWidth > t.containerElement.offsetWidth ? v.right = 0 : v.left = T, l && p.top - c.scrollTop + a.offsetHeight > m && a.offsetHeight < f.top - g - c.scrollTop || d ? v.top = b - a.offsetHeight - g : v.top = b;
|
|
3467
3466
|
}
|
|
3468
3467
|
v.left === t.state.suggestionsPosition.left && v.top === t.state.suggestionsPosition.top && v.position === t.state.suggestionsPosition.position || t.setState({
|
|
3469
3468
|
suggestionsPosition: v
|
|
@@ -3498,8 +3497,8 @@ var Pi = function(r) {
|
|
|
3498
3497
|
if (g) {
|
|
3499
3498
|
var m = Pi(g.props.trigger, t.props), v = f.match(m);
|
|
3500
3499
|
if (v) {
|
|
3501
|
-
var
|
|
3502
|
-
t.queryData(v[2], p,
|
|
3500
|
+
var y = c + f.indexOf(v[1], v.index);
|
|
3501
|
+
t.queryData(v[2], p, y, y + v[1].length, o);
|
|
3503
3502
|
}
|
|
3504
3503
|
}
|
|
3505
3504
|
});
|
|
@@ -3531,31 +3530,31 @@ var Pi = function(r) {
|
|
|
3531
3530
|
});
|
|
3532
3531
|
}
|
|
3533
3532
|
}), H(k(t), "addMention", function(o, s) {
|
|
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,
|
|
3535
|
-
S && (
|
|
3536
|
-
var
|
|
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], v = m.props, y = v.markup, C = v.displayTransform, S = v.appendSpaceOnAdd, T = v.onAdd, b = ie(g, p, a, "START"), D = b + c - a, O = vi(y, u, l);
|
|
3534
|
+
S && (O += " ");
|
|
3535
|
+
var E = Fe(g, b, D, O);
|
|
3537
3536
|
t.inputElement.focus();
|
|
3538
3537
|
var w = C(u, l);
|
|
3539
3538
|
S && (w += " ");
|
|
3540
|
-
var
|
|
3539
|
+
var A = a + w.length;
|
|
3541
3540
|
t.setState({
|
|
3542
|
-
selectionStart:
|
|
3543
|
-
selectionEnd:
|
|
3541
|
+
selectionStart: A,
|
|
3542
|
+
selectionEnd: A,
|
|
3544
3543
|
setSelectionAfterMentionChange: !0
|
|
3545
3544
|
});
|
|
3546
3545
|
var P = {
|
|
3547
3546
|
target: {
|
|
3548
|
-
value:
|
|
3547
|
+
value: E
|
|
3549
3548
|
}
|
|
3550
|
-
}, q = Pe(
|
|
3551
|
-
t.executeOnChange(P,
|
|
3549
|
+
}, q = Pe(E, p), Y = Fe(f, a, c, w);
|
|
3550
|
+
t.executeOnChange(P, E, Y, q), T && T(u, l, b, D), t.clearSuggestions();
|
|
3552
3551
|
}), H(k(t), "isLoading", function() {
|
|
3553
3552
|
var o = !1;
|
|
3554
3553
|
return G.Children.forEach(t.props.children, function(s) {
|
|
3555
3554
|
o = o || s && s.props.isLoading;
|
|
3556
3555
|
}), o;
|
|
3557
3556
|
}), H(k(t), "isOpened", function() {
|
|
3558
|
-
return
|
|
3557
|
+
return mt(t.state.selectionStart) && (Ve(t.state.suggestions) !== 0 || t.isLoading());
|
|
3559
3558
|
}), H(k(t), "_queryId", 0), t.suggestions = {}, t.uuidSuggestionsOverlay = Math.random().toString(16).substring(2), t.handleCopy = t.handleCopy.bind(k(t)), t.handleCut = t.handleCut.bind(k(t)), t.handlePaste = t.handlePaste.bind(k(t)), t.state = {
|
|
3560
3559
|
focusIndex: 0,
|
|
3561
3560
|
selectionStart: null,
|
|
@@ -3597,16 +3596,16 @@ var Pi = function(r) {
|
|
|
3597
3596
|
value: function(t) {
|
|
3598
3597
|
if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
|
|
3599
3598
|
t.preventDefault();
|
|
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, ""),
|
|
3599
|
+
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, ""), y = Ce(v, c), C = {
|
|
3601
3600
|
target: de(de({}, t.target), {}, {
|
|
3602
3601
|
value: v
|
|
3603
3602
|
})
|
|
3604
3603
|
};
|
|
3605
|
-
this.executeOnChange(C, v,
|
|
3606
|
-
var S = nn(d, c, s),
|
|
3604
|
+
this.executeOnChange(C, v, y, Pe(v, c));
|
|
3605
|
+
var S = nn(d, c, s), T = (S || s) + Ce(p || m, c).length;
|
|
3607
3606
|
this.setState({
|
|
3608
|
-
selectionStart:
|
|
3609
|
-
selectionEnd:
|
|
3607
|
+
selectionStart: T,
|
|
3608
|
+
selectionEnd: T,
|
|
3610
3609
|
setSelectionAfterHandlePaste: !0
|
|
3611
3610
|
});
|
|
3612
3611
|
}
|
|
@@ -3643,8 +3642,8 @@ var Pi = function(r) {
|
|
|
3643
3642
|
// Handle input element's change event
|
|
3644
3643
|
}]), i;
|
|
3645
3644
|
}(G.Component);
|
|
3646
|
-
H(
|
|
3647
|
-
H(
|
|
3645
|
+
H(jt, "propTypes", Bn);
|
|
3646
|
+
H(jt, "defaultProps", {
|
|
3648
3647
|
ignoreAccents: !1,
|
|
3649
3648
|
singleLine: !1,
|
|
3650
3649
|
allowSuggestionsAboveCursor: !1,
|
|
@@ -3694,17 +3693,17 @@ var ct = function(r, i) {
|
|
|
3694
3693
|
"&singleLine": r,
|
|
3695
3694
|
"&multiLine": !r
|
|
3696
3695
|
};
|
|
3697
|
-
}), Bi = Li(
|
|
3696
|
+
}), Bi = Li(jt), $i = {
|
|
3698
3697
|
fontWeight: "inherit"
|
|
3699
|
-
},
|
|
3700
|
-
var i = r.display, n = r.style, t = r.className, o = r.classNames, s =
|
|
3698
|
+
}, Pt = function(r) {
|
|
3699
|
+
var i = r.display, n = r.style, t = r.className, o = r.classNames, s = wt($i, {
|
|
3701
3700
|
style: n,
|
|
3702
3701
|
className: t,
|
|
3703
3702
|
classNames: o
|
|
3704
3703
|
});
|
|
3705
3704
|
return /* @__PURE__ */ G.createElement("strong", s, i);
|
|
3706
3705
|
};
|
|
3707
|
-
|
|
3706
|
+
Pt.propTypes = {
|
|
3708
3707
|
/**
|
|
3709
3708
|
* Called when a new mention is added in the input
|
|
3710
3709
|
*
|
|
@@ -3716,19 +3715,19 @@ jt.propTypes = {
|
|
|
3716
3715
|
* }
|
|
3717
3716
|
* ```
|
|
3718
3717
|
*/
|
|
3719
|
-
onAdd:
|
|
3720
|
-
onRemove:
|
|
3721
|
-
renderSuggestion:
|
|
3722
|
-
trigger:
|
|
3723
|
-
markup:
|
|
3724
|
-
displayTransform:
|
|
3718
|
+
onAdd: x.func,
|
|
3719
|
+
onRemove: x.func,
|
|
3720
|
+
renderSuggestion: x.func,
|
|
3721
|
+
trigger: x.oneOfType([x.string, x.instanceOf(RegExp)]),
|
|
3722
|
+
markup: x.string,
|
|
3723
|
+
displayTransform: x.func,
|
|
3725
3724
|
/**
|
|
3726
3725
|
* If set to `true` spaces will not interrupt matching suggestions
|
|
3727
3726
|
*/
|
|
3728
|
-
allowSpaceInQuery:
|
|
3729
|
-
isLoading:
|
|
3727
|
+
allowSpaceInQuery: x.bool,
|
|
3728
|
+
isLoading: x.bool
|
|
3730
3729
|
};
|
|
3731
|
-
|
|
3730
|
+
Pt.defaultProps = {
|
|
3732
3731
|
trigger: "@",
|
|
3733
3732
|
markup: "@[__display__](__id__)",
|
|
3734
3733
|
displayTransform: function(r, i) {
|
|
@@ -3806,7 +3805,7 @@ const Hi = {
|
|
|
3806
3805
|
className: "mentions-input",
|
|
3807
3806
|
onKeyDown: s,
|
|
3808
3807
|
children: /* @__PURE__ */ h.jsx(
|
|
3809
|
-
|
|
3808
|
+
Pt,
|
|
3810
3809
|
{
|
|
3811
3810
|
displayTransform: (d, a) => `@${a}`,
|
|
3812
3811
|
trigger: "@",
|
|
@@ -3885,7 +3884,7 @@ const Hi = {
|
|
|
3885
3884
|
} catch (c) {
|
|
3886
3885
|
console.error("error while saving conversation", r, c);
|
|
3887
3886
|
}
|
|
3888
|
-
t(yn()), s(!1), t(
|
|
3887
|
+
t(yn()), s(!1), t(xt(!0)), t(Ot()), l("");
|
|
3889
3888
|
}
|
|
3890
3889
|
};
|
|
3891
3890
|
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: [
|
|
@@ -4037,7 +4036,7 @@ const Hi = {
|
|
|
4037
4036
|
onSelect: () => null,
|
|
4038
4037
|
onResolve: () => null,
|
|
4039
4038
|
onReplyAdd: () => null,
|
|
4040
|
-
source:
|
|
4039
|
+
source: Ct.DBT_DOCS
|
|
4041
4040
|
}), Wi = ({
|
|
4042
4041
|
currentUser: e,
|
|
4043
4042
|
conversationGroup: r,
|
|
@@ -4094,7 +4093,7 @@ const Hi = {
|
|
|
4094
4093
|
const u = t[o], l = (c) => {
|
|
4095
4094
|
s(Mr({ shareId: n, conversationGroupId: c }));
|
|
4096
4095
|
}, d = (c) => {
|
|
4097
|
-
s(
|
|
4096
|
+
s(It(c));
|
|
4098
4097
|
}, a = (c) => {
|
|
4099
4098
|
console.log("onReplyAdd", c), s(yn());
|
|
4100
4099
|
};
|
|
@@ -4117,7 +4116,7 @@ const Hi = {
|
|
|
4117
4116
|
const e = ne((s) => s.isRightPanelOpen), r = ne(
|
|
4118
4117
|
(s) => s.selectedConversationId
|
|
4119
4118
|
), i = ne((s) => s.newConversation), n = ce(), t = () => {
|
|
4120
|
-
n(
|
|
4119
|
+
n(xt(!1)), n(It(void 0)), n(Ot());
|
|
4121
4120
|
};
|
|
4122
4121
|
return !!i || e || r ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
4123
4122
|
/* @__PURE__ */ h.jsx(
|
|
@@ -4170,18 +4169,18 @@ const Hi = {
|
|
|
4170
4169
|
}, Ji = () => (Qi(), Gi(), /* @__PURE__ */ h.jsxs("div", { children: [
|
|
4171
4170
|
/* @__PURE__ */ h.jsx(Ki, {}),
|
|
4172
4171
|
/* @__PURE__ */ h.jsx(uo, {})
|
|
4173
|
-
] })), qn = ({ target: e, ...r }) =>
|
|
4172
|
+
] })), qn = ({ target: e, ...r }) => bt(
|
|
4174
4173
|
/* @__PURE__ */ h.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ h.jsx(dn, {}) }),
|
|
4175
4174
|
e
|
|
4176
4175
|
), es = () => {
|
|
4177
4176
|
var l;
|
|
4178
4177
|
const e = ce(), r = ne(
|
|
4179
4178
|
(d) => d.codeblockLoaded
|
|
4180
|
-
), i = ne((d) => d.manifest), [n, t] = re(0), o = (l =
|
|
4179
|
+
), i = ne((d) => d.manifest), [n, t] = re(0), o = (l = _t()) == null ? void 0 : l.parentElement, s = () => {
|
|
4181
4180
|
var f;
|
|
4182
4181
|
if (!o || !i.nodes)
|
|
4183
4182
|
return;
|
|
4184
|
-
const d =
|
|
4183
|
+
const d = At();
|
|
4185
4184
|
if (!d || d.length < 3) {
|
|
4186
4185
|
console.error("Unable to find model parts", d);
|
|
4187
4186
|
return;
|
|
@@ -4194,7 +4193,7 @@ const Hi = {
|
|
|
4194
4193
|
start: { line: n, character: 0 }
|
|
4195
4194
|
}
|
|
4196
4195
|
};
|
|
4197
|
-
e(
|
|
4196
|
+
e(Dt({ meta: c }));
|
|
4198
4197
|
}, u = we(
|
|
4199
4198
|
(d) => {
|
|
4200
4199
|
if (!o)
|
|
@@ -4216,12 +4215,12 @@ const Hi = {
|
|
|
4216
4215
|
}, ts = () => {
|
|
4217
4216
|
const e = ce(), r = ne(
|
|
4218
4217
|
(t) => t.codeblockLoaded
|
|
4219
|
-
), i =
|
|
4218
|
+
), i = Tt(), n = () => {
|
|
4220
4219
|
const t = {
|
|
4221
4220
|
field: "description",
|
|
4222
4221
|
highlight: i == null ? void 0 : i.innerText
|
|
4223
4222
|
};
|
|
4224
|
-
e(
|
|
4223
|
+
e(Dt({ meta: t }));
|
|
4225
4224
|
};
|
|
4226
4225
|
return !r || !i ? null : /* @__PURE__ */ h.jsx(qn, { target: i, onClick: n });
|
|
4227
4226
|
}, ns = () => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
@@ -4231,7 +4230,7 @@ const Hi = {
|
|
|
4231
4230
|
const { loading: e, shareDetails: r } = io(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = so(), s = (u) => {
|
|
4232
4231
|
u.stopPropagation();
|
|
4233
4232
|
const l = n();
|
|
4234
|
-
l && i(
|
|
4233
|
+
l && i(Dt(l));
|
|
4235
4234
|
};
|
|
4236
4235
|
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
4236
|
/* @__PURE__ */ h.jsxs(oe, { direction: "row", justify: "end", className: "mb-2", children: [
|
|
@@ -4242,7 +4241,7 @@ const Hi = {
|
|
|
4242
4241
|
/* @__PURE__ */ h.jsx(rs, { shareDetails: r, onSelectionEnd: o }),
|
|
4243
4242
|
t ? /* @__PURE__ */ h.jsx(Gr, { pos: t, onAddComment: s }) : null
|
|
4244
4243
|
] });
|
|
4245
|
-
},
|
|
4244
|
+
}, xs = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ h.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ h.jsx(
|
|
4246
4245
|
Br,
|
|
4247
4246
|
{
|
|
4248
4247
|
shareId: e,
|
|
@@ -4253,7 +4252,7 @@ const Hi = {
|
|
|
4253
4252
|
}
|
|
4254
4253
|
) }), zn = {
|
|
4255
4254
|
showCoachingForm: !1
|
|
4256
|
-
},
|
|
4255
|
+
}, Et = ln({
|
|
4257
4256
|
name: "teamMate",
|
|
4258
4257
|
initialState: zn,
|
|
4259
4258
|
reducers: {
|
|
@@ -4261,11 +4260,11 @@ const Hi = {
|
|
|
4261
4260
|
e.showCoachingForm = r.payload;
|
|
4262
4261
|
}
|
|
4263
4262
|
}
|
|
4264
|
-
}), is =
|
|
4263
|
+
}), is = Et.actions, Vn = _e({
|
|
4265
4264
|
state: zn,
|
|
4266
4265
|
dispatch: () => null
|
|
4267
|
-
}),
|
|
4268
|
-
const [r, i] = fn(
|
|
4266
|
+
}), Os = ({ children: e }) => {
|
|
4267
|
+
const [r, i] = fn(Et.reducer, Et.getInitialState()), n = fe(
|
|
4269
4268
|
() => ({
|
|
4270
4269
|
state: r,
|
|
4271
4270
|
dispatch: i
|
|
@@ -4280,54 +4279,57 @@ const Hi = {
|
|
|
4280
4279
|
if (e === void 0)
|
|
4281
4280
|
throw new Error("useTeamMateContext must be used within a TeamMateProvider");
|
|
4282
4281
|
return e;
|
|
4283
|
-
},
|
|
4282
|
+
}, Ds = () => {
|
|
4284
4283
|
const { dispatch: e } = as(), r = () => {
|
|
4285
4284
|
e(is.setShowCoachingForm(!0));
|
|
4286
4285
|
};
|
|
4287
4286
|
return /* @__PURE__ */ h.jsx(Ie, { onClick: r, children: "Show Coaching Form" });
|
|
4288
4287
|
}, us = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
|
|
4289
|
-
const [t, o] = re(!1), {
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4288
|
+
const [t, o] = re(!1), {
|
|
4289
|
+
register: s,
|
|
4290
|
+
handleSubmit: u,
|
|
4291
|
+
formState: { errors: l, isValid: d, isSubmitting: a },
|
|
4292
|
+
watch: c,
|
|
4293
|
+
setValue: f
|
|
4294
|
+
} = yr({
|
|
4295
|
+
defaultValues: e,
|
|
4296
|
+
resolver: Zn(Gn)
|
|
4297
|
+
}), g = c(), p = async (E) => {
|
|
4298
|
+
await ve.post(`coach/training/${e.train_doc_uid}`, E, {
|
|
4299
|
+
method: "PUT"
|
|
4300
|
+
}), o(!1);
|
|
4301
|
+
}, m = async () => await ve.post(
|
|
4298
4302
|
`coach/training/${e.train_doc_uid}`,
|
|
4299
4303
|
{},
|
|
4300
4304
|
{ method: "DELETE" }
|
|
4301
|
-
), { loading:
|
|
4302
|
-
queryFn:
|
|
4305
|
+
), { loading: v, error: y, mutate: C } = cn({
|
|
4306
|
+
queryFn: m,
|
|
4303
4307
|
onSuccess: r
|
|
4304
|
-
}),
|
|
4305
|
-
|
|
4306
|
-
},
|
|
4307
|
-
|
|
4308
|
-
},
|
|
4309
|
-
E
|
|
4310
|
-
},
|
|
4311
|
-
E
|
|
4312
|
-
},
|
|
4313
|
-
return /* @__PURE__ */ h.jsx($e, { className:
|
|
4308
|
+
}), S = (E) => {
|
|
4309
|
+
E == null || E.stopPropagation();
|
|
4310
|
+
}, T = () => {
|
|
4311
|
+
S(), C();
|
|
4312
|
+
}, b = (E) => {
|
|
4313
|
+
S(E), o(!1);
|
|
4314
|
+
}, D = (E) => {
|
|
4315
|
+
S(E), i(e.train_doc_uid), o(!0);
|
|
4316
|
+
}, O = n === e.train_doc_uid;
|
|
4317
|
+
return /* @__PURE__ */ h.jsx($e, { className: O ? "al-border-blue-500" : "", children: /* @__PURE__ */ h.jsxs("form", { onSubmit: u(p), children: [
|
|
4314
4318
|
/* @__PURE__ */ h.jsx(rr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "start", children: [
|
|
4315
4319
|
/* @__PURE__ */ h.jsxs("div", { className: "al-flex-1", children: [
|
|
4316
4320
|
/* @__PURE__ */ h.jsx("div", { children: t ? /* @__PURE__ */ h.jsxs(Mt, { children: [
|
|
4317
4321
|
/* @__PURE__ */ h.jsx(
|
|
4318
4322
|
or,
|
|
4319
4323
|
{
|
|
4320
|
-
|
|
4321
|
-
value: a.content,
|
|
4324
|
+
...s("content"),
|
|
4322
4325
|
placeholder: "Enter your coaching feedback here...",
|
|
4323
|
-
invalid: !!
|
|
4324
|
-
onClick:
|
|
4325
|
-
onChange: c,
|
|
4326
|
+
invalid: !!l.content,
|
|
4327
|
+
onClick: S,
|
|
4326
4328
|
style: { fieldSizing: "content" }
|
|
4327
4329
|
}
|
|
4328
4330
|
),
|
|
4329
|
-
|
|
4330
|
-
] }) : /* @__PURE__ */ h.jsx(
|
|
4331
|
+
l.content ? /* @__PURE__ */ h.jsx(br, { children: l.content.message }) : null
|
|
4332
|
+
] }) : /* @__PURE__ */ h.jsx(ft, { className: O ? "" : "lines-2", children: g.content }) }),
|
|
4331
4333
|
/* @__PURE__ */ h.jsx(oe, { children: /* @__PURE__ */ h.jsxs("dl", { children: [
|
|
4332
4334
|
/* @__PURE__ */ h.jsxs(oe, { children: [
|
|
4333
4335
|
/* @__PURE__ */ h.jsx("dt", { children: "Created on:" }),
|
|
@@ -4348,31 +4350,29 @@ const Hi = {
|
|
|
4348
4350
|
] }) })
|
|
4349
4351
|
] }),
|
|
4350
4352
|
/* @__PURE__ */ h.jsxs(oe, { className: "align-items-top gap-0", children: [
|
|
4351
|
-
/* @__PURE__ */ h.jsx(Mt, { children: /* @__PURE__ */ h.jsx(
|
|
4353
|
+
/* @__PURE__ */ h.jsx(Mt, { className: "al-mt-2", children: /* @__PURE__ */ h.jsx(
|
|
4352
4354
|
ir,
|
|
4353
4355
|
{
|
|
4354
|
-
title:
|
|
4356
|
+
title: g.isActive ? "Disable this learning" : "Enable this learning",
|
|
4355
4357
|
children: /* @__PURE__ */ h.jsx("span", { children: /* @__PURE__ */ h.jsx(
|
|
4356
|
-
|
|
4358
|
+
Sr,
|
|
4357
4359
|
{
|
|
4358
4360
|
id: `toggle-${e.train_doc_uid}`,
|
|
4359
|
-
checked:
|
|
4360
|
-
onCheckedChange: (
|
|
4361
|
-
|
|
4362
|
-
target: { name: "isActive", value: A }
|
|
4363
|
-
}), d();
|
|
4361
|
+
checked: g.isActive,
|
|
4362
|
+
onCheckedChange: (E) => {
|
|
4363
|
+
f("isActive", E), u(p)();
|
|
4364
4364
|
}
|
|
4365
4365
|
}
|
|
4366
4366
|
) })
|
|
4367
4367
|
}
|
|
4368
4368
|
) }),
|
|
4369
4369
|
/* @__PURE__ */ h.jsx(
|
|
4370
|
-
|
|
4370
|
+
Wn,
|
|
4371
4371
|
{
|
|
4372
4372
|
title: "Delete the task",
|
|
4373
4373
|
description: "Are you sure to delete this task?",
|
|
4374
|
-
onConfirm:
|
|
4375
|
-
onCancel:
|
|
4374
|
+
onConfirm: T,
|
|
4375
|
+
onCancel: S,
|
|
4376
4376
|
okText: "Yes",
|
|
4377
4377
|
cancelText: "No",
|
|
4378
4378
|
children: /* @__PURE__ */ h.jsx(
|
|
@@ -4380,22 +4380,22 @@ const Hi = {
|
|
|
4380
4380
|
{
|
|
4381
4381
|
title: "Delete this learning",
|
|
4382
4382
|
className: "pt-1 pb-0",
|
|
4383
|
-
disabled:
|
|
4384
|
-
onClick:
|
|
4383
|
+
disabled: v,
|
|
4384
|
+
onClick: S,
|
|
4385
4385
|
children: /* @__PURE__ */ h.jsx(cr, {})
|
|
4386
4386
|
}
|
|
4387
4387
|
)
|
|
4388
4388
|
}
|
|
4389
4389
|
),
|
|
4390
4390
|
t ? /* @__PURE__ */ h.jsxs(oe, { className: "align-items-baseline", children: [
|
|
4391
|
-
/* @__PURE__ */ h.jsx(ye, { onClick:
|
|
4392
|
-
/* @__PURE__ */ h.jsx(ye, { size: "sm", disabled:
|
|
4393
|
-
] }) : /* @__PURE__ */ h.jsx(Ie, { title: "Edit this learning", onClick:
|
|
4394
|
-
/* @__PURE__ */ h.jsx(Ie, { onClick: () => i(e.train_doc_uid), children:
|
|
4391
|
+
/* @__PURE__ */ h.jsx(ye, { onClick: b, variant: "outline", size: "sm", children: "Cancel" }),
|
|
4392
|
+
/* @__PURE__ */ h.jsx(ye, { size: "sm", disabled: a || !d, type: "submit", children: "Save" })
|
|
4393
|
+
] }) : /* @__PURE__ */ h.jsx(Ie, { title: "Edit this learning", onClick: D, children: /* @__PURE__ */ h.jsx(dr, {}) }),
|
|
4394
|
+
/* @__PURE__ */ h.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: O ? /* @__PURE__ */ h.jsx(fr, {}) : /* @__PURE__ */ h.jsx(pr, {}) })
|
|
4395
4395
|
] })
|
|
4396
4396
|
] }) }),
|
|
4397
|
-
/* @__PURE__ */ h.jsx(Yn, { isOpen:
|
|
4398
|
-
|
|
4397
|
+
/* @__PURE__ */ h.jsx(Yn, { isOpen: O, children: /* @__PURE__ */ h.jsxs(He, { children: [
|
|
4398
|
+
y && /* @__PURE__ */ h.jsx(gn, { color: "danger", children: y.message }),
|
|
4399
4399
|
/* @__PURE__ */ h.jsxs(oe, { className: "gap-4", children: [
|
|
4400
4400
|
/* @__PURE__ */ h.jsxs("div", { children: [
|
|
4401
4401
|
/* @__PURE__ */ h.jsx("strong", { children: "Category:" }),
|
|
@@ -4404,15 +4404,13 @@ const Hi = {
|
|
|
4404
4404
|
Lt,
|
|
4405
4405
|
{
|
|
4406
4406
|
style: { minWidth: 160 },
|
|
4407
|
-
options: Object.values(
|
|
4408
|
-
value:
|
|
4409
|
-
label:
|
|
4407
|
+
options: Object.values(Xn).map((E) => ({
|
|
4408
|
+
value: E,
|
|
4409
|
+
label: E
|
|
4410
4410
|
})),
|
|
4411
|
-
value:
|
|
4412
|
-
onChange: (
|
|
4413
|
-
|
|
4414
|
-
target: { name: "category", value: A }
|
|
4415
|
-
});
|
|
4411
|
+
value: g.category,
|
|
4412
|
+
onChange: (E) => {
|
|
4413
|
+
f("category", E);
|
|
4416
4414
|
}
|
|
4417
4415
|
}
|
|
4418
4416
|
) : e.category
|
|
@@ -4429,34 +4427,32 @@ const Hi = {
|
|
|
4429
4427
|
Lt,
|
|
4430
4428
|
{
|
|
4431
4429
|
style: { minWidth: 100 },
|
|
4432
|
-
options: Object.values(
|
|
4433
|
-
value:
|
|
4434
|
-
label:
|
|
4430
|
+
options: Object.values(Kn).map((E) => ({
|
|
4431
|
+
value: E,
|
|
4432
|
+
label: E
|
|
4435
4433
|
})),
|
|
4436
|
-
value:
|
|
4437
|
-
onChange: (
|
|
4438
|
-
|
|
4439
|
-
target: { name: "personalizationScope", value: A }
|
|
4440
|
-
});
|
|
4434
|
+
value: g.personalizationScope,
|
|
4435
|
+
onChange: (E) => {
|
|
4436
|
+
f("personalizationScope", E);
|
|
4441
4437
|
}
|
|
4442
4438
|
}
|
|
4443
4439
|
) : e.personalizationScope
|
|
4444
4440
|
] }),
|
|
4445
|
-
e.metadata && Object.keys(e.metadata).map((
|
|
4446
|
-
var
|
|
4441
|
+
e.metadata && Object.keys(e.metadata).map((E) => {
|
|
4442
|
+
var w;
|
|
4447
4443
|
return /* @__PURE__ */ h.jsxs("div", { children: [
|
|
4448
4444
|
/* @__PURE__ */ h.jsxs("strong", { children: [
|
|
4449
|
-
|
|
4445
|
+
E,
|
|
4450
4446
|
":"
|
|
4451
4447
|
] }),
|
|
4452
4448
|
" ",
|
|
4453
|
-
/* @__PURE__ */ h.jsx(h.Fragment, { children: ((
|
|
4454
|
-
] },
|
|
4449
|
+
/* @__PURE__ */ h.jsx(h.Fragment, { children: ((w = e.metadata) == null ? void 0 : w[E]) || "" })
|
|
4450
|
+
] }, E);
|
|
4455
4451
|
})
|
|
4456
4452
|
] })
|
|
4457
4453
|
] }) })
|
|
4458
4454
|
] }) });
|
|
4459
|
-
},
|
|
4455
|
+
}, Rs = ({ filters: e, learning: r }) => {
|
|
4460
4456
|
var d;
|
|
4461
4457
|
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = tr({
|
|
4462
4458
|
queryFn: () => ve.get("coach/training", e),
|
|
@@ -4492,8 +4488,8 @@ const Hi = {
|
|
|
4492
4488
|
/* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", className: "al-mb-2", children: [
|
|
4493
4489
|
/* @__PURE__ */ h.jsx("img", { alt: "Teammate", src: e.avatar, className: "al-w-16 al-h-16 al-rounded" }),
|
|
4494
4490
|
/* @__PURE__ */ h.jsxs("div", { className: "al-ml-2 al-mt-2", children: [
|
|
4495
|
-
/* @__PURE__ */ h.jsx(
|
|
4496
|
-
/* @__PURE__ */ h.jsx(
|
|
4491
|
+
/* @__PURE__ */ h.jsx(ft, { variant: "subheading", children: e.name }),
|
|
4492
|
+
/* @__PURE__ */ h.jsx(ft, { variant: "body", children: e.description })
|
|
4497
4493
|
] })
|
|
4498
4494
|
] }),
|
|
4499
4495
|
/* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", children: [
|
|
@@ -4532,32 +4528,32 @@ const Hi = {
|
|
|
4532
4528
|
}
|
|
4533
4529
|
)
|
|
4534
4530
|
] }),
|
|
4535
|
-
e.availability.map((l) => /* @__PURE__ */ h.jsxs(
|
|
4531
|
+
e.availability.map((l) => /* @__PURE__ */ h.jsxs(Cr, { variant: "success", className: l, children: [
|
|
4536
4532
|
u ? "Coming soon" : "Available",
|
|
4537
4533
|
" in ",
|
|
4538
4534
|
l
|
|
4539
4535
|
] }, l))
|
|
4540
4536
|
] })
|
|
4541
4537
|
] }) }) });
|
|
4542
|
-
},
|
|
4538
|
+
}, ws = ({ 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)) }) });
|
|
4543
4539
|
export {
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4540
|
+
Ct as C,
|
|
4541
|
+
xs as D,
|
|
4542
|
+
Rs as L,
|
|
4543
|
+
Os as T,
|
|
4548
4544
|
ne as a,
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4545
|
+
As as b,
|
|
4546
|
+
Ts as c,
|
|
4547
|
+
ys as d,
|
|
4548
|
+
_t as e,
|
|
4553
4549
|
me as f,
|
|
4554
4550
|
_r as g,
|
|
4555
4551
|
$n as h,
|
|
4556
4552
|
Wi as i,
|
|
4557
|
-
|
|
4553
|
+
Ds as j,
|
|
4558
4554
|
as as k,
|
|
4559
4555
|
is as l,
|
|
4560
|
-
|
|
4561
|
-
|
|
4556
|
+
ws as m,
|
|
4557
|
+
_s as s,
|
|
4562
4558
|
ce as u
|
|
4563
4559
|
};
|