@versini/sassysaint 8.107.3 → 8.108.0
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/chunks/{AboutChangelog.BmMVyf-Q.js → AboutChangelog.55tIwnGe.js} +2 -2
- package/dist/chunks/{AboutEntry.wD5hG0ON.js → AboutEntry.D1zAHjel.js} +7 -7
- package/dist/chunks/{App.FyINLNSp.js → App.Br7HE-y0.js} +1746 -1908
- package/dist/chunks/{Bubble.Ci-pu6NI.js → Bubble.Ic_8FEhH.js} +47 -74
- package/dist/chunks/{Table.Dzy9ts3i.js → ButtonIconDelete.DRBd_G40.js} +125 -104
- package/dist/chunks/{Chart.DYVf2gst.js → Chart.CwIVbBYb.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CD6bVvcQ.js → ChatBubbleAssistant.DHlLzqdc.js} +199 -208
- package/dist/chunks/{ChatBubbleUser.Cre3cX04.js → ChatBubbleUser.D7ksCr76.js} +27 -36
- package/dist/chunks/{ChatHistoryTable.D_kOkWN9.js → ChatHistoryTable.DhUDW7QO.js} +108 -121
- package/dist/chunks/{HistoryEntry.BFNME4Z8.js → HistoryEntry.BxnMfiXN.js} +6 -6
- package/dist/chunks/{LoginEntry.SW7wyEpU.js → LoginEntry.XF9rPWdB.js} +4 -4
- package/dist/chunks/{LogoEntry.BAKpdJEy.js → LogoEntry.CnTI8jpv.js} +304 -385
- package/dist/chunks/{MemoriesEntry.Ztyx_8Wm.js → MemoriesEntry.BjNXrPW2.js} +164 -169
- package/dist/chunks/{ProfileEntry.CjzAusYw.js → ProfileEntry.S6XO2uMT.js} +4 -4
- package/dist/chunks/{SettingsEntry.D4IKmfYP.js → SettingsEntry.C5jHUJzu.js} +5 -5
- package/dist/chunks/{UsageEntry.D7sTPflE.js → UsageEntry.CQTLPweE.js} +5 -5
- package/dist/chunks/_basePickBy.Dj6LWOd3.js +151 -0
- package/dist/chunks/_baseUniq.DfiF6jap.js +614 -0
- package/dist/chunks/arc.CLrqhM1J.js +83 -0
- package/dist/chunks/architecture-U656AL7Q.CuF-GD1P.js +36 -0
- package/dist/chunks/architectureDiagram-VXUJARFQ.BGPIWweD.js +4653 -0
- package/dist/chunks/blockDiagram-VD42YOAC.cLfUaXxm.js +2254 -0
- package/dist/chunks/browser.B8WuOmYx.js +260 -0
- package/dist/chunks/c4Diagram-YG6GDRKO.Cc4f8G62.js +1579 -0
- package/dist/chunks/channel.D7pUQPat.js +5 -0
- package/dist/chunks/chunk-4BX2VUAB.C5gP6CzO.js +8 -0
- package/dist/chunks/chunk-55IACEB6.CMTOMhuf.js +8 -0
- package/dist/chunks/chunk-B4BG7PRW.CQz5CpXp.js +1375 -0
- package/dist/chunks/chunk-DI55MBZ5.C4SOgQau.js +1370 -0
- package/dist/chunks/chunk-FMBD7UC4.5tYrPDWZ.js +19 -0
- package/dist/chunks/chunk-QN33PNHL.P3o9PZBW.js +19 -0
- package/dist/chunks/chunk-QZHKN3VN.COvsjomn.js +15 -0
- package/dist/chunks/chunk-TZMSLE5B.C5QPHQlj.js +64 -0
- package/dist/chunks/classDiagram-2ON5EDUG.DrIfmpHo.js +16 -0
- package/dist/chunks/classDiagram-v2-WZHVMYZB.DrIfmpHo.js +16 -0
- package/dist/chunks/clone.47X4nGV4.js +8 -0
- package/dist/chunks/cose-bilkent-S5V4N54A.B1umrZne.js +2600 -0
- package/dist/chunks/cytoscape.esm.DmRZGnqW.js +18700 -0
- package/dist/chunks/dagre-6UL2VRFP.Ce4VSTky.js +444 -0
- package/dist/chunks/defaultLocale.CPJLP5jg.js +171 -0
- package/dist/chunks/diagram-PSM6KHXK.B1yvSG9p.js +531 -0
- package/dist/chunks/diagram-QEK2KX5R.CYDnnLB3.js +217 -0
- package/dist/chunks/diagram-S2PKOQOG.BI6w7TZJ.js +142 -0
- package/dist/chunks/erDiagram-Q2GNP2WA.D7mTQJ6P.js +841 -0
- package/dist/chunks/flowDiagram-NV44I4VS.Col8_E_0.js +1620 -0
- package/dist/chunks/ganttDiagram-JELNMOA3.GAUSoSKL.js +2647 -0
- package/dist/chunks/gitGraph-F6HP7TQM.3I_jmRrt.js +27 -0
- package/dist/chunks/gitGraphDiagram-NY62KEGX.DZQ_LVDe.js +699 -0
- package/dist/chunks/graph.BmJVbvPo.js +247 -0
- package/dist/chunks/index.Bi0z4EE1.js +90 -0
- package/dist/chunks/{index.QiLu2wkI.js → index.C0El17wt.js} +2 -2
- package/dist/chunks/{index.DBovegdE.js → index.CUn5zNJg.js} +1 -1
- package/dist/chunks/index.CbEVdl_N.js +279 -0
- package/dist/chunks/{index.BT3Do9Po.js → index.CoZgV6rn.js} +34 -43
- package/dist/chunks/{index.16gcBvke.js → index.DCqTKdor.js} +60 -69
- package/dist/chunks/index.DctDXsYU.js +67 -0
- package/dist/chunks/{index.BfTDtoYy.js → index.Df-tNwfZ.js} +1 -1
- package/dist/chunks/{index.BI1_ccPN.js → index.DxGkXGdu.js} +3 -3
- package/dist/chunks/{index.uILjvEfo.js → index.z2e7pMwp.js} +1 -1
- package/dist/chunks/info-NVLQJR56.D9ao7_Su.js +27 -0
- package/dist/chunks/infoDiagram-WHAUD3N6.DmFB-CXk.js +24 -0
- package/dist/chunks/init.DAGnb5BH.js +16 -0
- package/dist/chunks/journeyDiagram-XKPGCS4Q.C9FISQxf.js +834 -0
- package/dist/chunks/kanban-definition-3W4ZIXB7.ChmJnTyd.js +719 -0
- package/dist/chunks/{index.DJlv39cv.js → katex.D0sQThIv.js} +1638 -1943
- package/dist/chunks/layout.DtZQLIyC.js +1332 -0
- package/dist/chunks/linear.CIDfImUo.js +625 -0
- package/dist/chunks/mermaid-parser.core.CO83pegl.js +12724 -0
- package/dist/chunks/mindmap-definition-VGOIOE7T.B3dfWebK.js +759 -0
- package/dist/chunks/ordinal.EWT-qnu7.js +61 -0
- package/dist/chunks/packet-BFZMPI3H.q9qJMgm9.js +27 -0
- package/dist/chunks/pie-7BOR55EZ.BTnKDmrp.js +32 -0
- package/dist/chunks/pieDiagram-ADFJNKIX.B23eDSnQ.js +161 -0
- package/dist/chunks/quadrantDiagram-AYHSOK5B.B3ZIlLhO.js +1022 -0
- package/dist/chunks/radar-NHE76QYJ.BeKykujs.js +27 -0
- package/dist/chunks/rehype-mermaid.DkS2NcIa.js +14283 -0
- package/dist/chunks/requirementDiagram-UZGBJVZJ.0vOl9IL2.js +850 -0
- package/dist/chunks/sankeyDiagram-TZEHDZUN.DxwTK65F.js +810 -0
- package/dist/chunks/sequenceDiagram-WL72ISMW.BmOg83Gx.js +2511 -0
- package/dist/chunks/stateDiagram-FKZM4ZOC.DBiU28Wu.js +263 -0
- package/dist/chunks/stateDiagram-v2-4FDKWEC3.B6t8_4cH.js +16 -0
- package/dist/chunks/timeline-definition-IT6M3QCI.DpWxwytE.js +795 -0
- package/dist/chunks/treemap-KMMF4GRG.KqgFrxbV.js +81 -0
- package/dist/chunks/{useMarkdown.BberHabr.js → useMarkdown.CxuK_DLo.js} +2078 -2072
- package/dist/chunks/xychartDiagram-PRI3JC2R.CBaIBQ89.js +1340 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/chunks/index.BjnVQ4X3.js +0 -99
- package/dist/chunks/index.uVDYkuxz.js +0 -297
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { baseRest as N, isArrayLikeObject as j, constant$1 as f, isFunction as b, isEmpty as E } from "./rehype-mermaid.DkS2NcIa.js";
|
|
2
|
+
import { baseUniq as v, baseFlatten as P, keys as _, filter as g, forEach as d, isUndefined as l, values as p, reduce as D } from "./_baseUniq.DfiF6jap.js";
|
|
3
|
+
var w = N(function(o) {
|
|
4
|
+
return v(P(o, 1, j, !0));
|
|
5
|
+
}), F = "\0", u = "\0", O = "";
|
|
6
|
+
class L {
|
|
7
|
+
constructor(e = {}) {
|
|
8
|
+
this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = f(void 0), this._defaultEdgeLabelFn = f(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[u] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
|
|
9
|
+
}
|
|
10
|
+
/* === Graph functions ========= */
|
|
11
|
+
isDirected() {
|
|
12
|
+
return this._isDirected;
|
|
13
|
+
}
|
|
14
|
+
isMultigraph() {
|
|
15
|
+
return this._isMultigraph;
|
|
16
|
+
}
|
|
17
|
+
isCompound() {
|
|
18
|
+
return this._isCompound;
|
|
19
|
+
}
|
|
20
|
+
setGraph(e) {
|
|
21
|
+
return this._label = e, this;
|
|
22
|
+
}
|
|
23
|
+
graph() {
|
|
24
|
+
return this._label;
|
|
25
|
+
}
|
|
26
|
+
/* === Node functions ========== */
|
|
27
|
+
setDefaultNodeLabel(e) {
|
|
28
|
+
return b(e) || (e = f(e)), this._defaultNodeLabelFn = e, this;
|
|
29
|
+
}
|
|
30
|
+
nodeCount() {
|
|
31
|
+
return this._nodeCount;
|
|
32
|
+
}
|
|
33
|
+
nodes() {
|
|
34
|
+
return _(this._nodes);
|
|
35
|
+
}
|
|
36
|
+
sources() {
|
|
37
|
+
var e = this;
|
|
38
|
+
return g(this.nodes(), function(t) {
|
|
39
|
+
return E(e._in[t]);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
sinks() {
|
|
43
|
+
var e = this;
|
|
44
|
+
return g(this.nodes(), function(t) {
|
|
45
|
+
return E(e._out[t]);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
setNodes(e, t) {
|
|
49
|
+
var s = arguments, i = this;
|
|
50
|
+
return d(e, function(r) {
|
|
51
|
+
s.length > 1 ? i.setNode(r, t) : i.setNode(r);
|
|
52
|
+
}), this;
|
|
53
|
+
}
|
|
54
|
+
setNode(e, t) {
|
|
55
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = u, this._children[e] = {}, this._children[u][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
|
|
56
|
+
}
|
|
57
|
+
node(e) {
|
|
58
|
+
return this._nodes[e];
|
|
59
|
+
}
|
|
60
|
+
hasNode(e) {
|
|
61
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, e);
|
|
62
|
+
}
|
|
63
|
+
removeNode(e) {
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
|
|
65
|
+
var t = (s) => this.removeEdge(this._edgeObjs[s]);
|
|
66
|
+
delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], d(this.children(e), (s) => {
|
|
67
|
+
this.setParent(s);
|
|
68
|
+
}), delete this._children[e]), d(_(this._in[e]), t), delete this._in[e], delete this._preds[e], d(_(this._out[e]), t), delete this._out[e], delete this._sucs[e], --this._nodeCount;
|
|
69
|
+
}
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
setParent(e, t) {
|
|
73
|
+
if (!this._isCompound)
|
|
74
|
+
throw new Error("Cannot set parent in a non-compound graph");
|
|
75
|
+
if (l(t))
|
|
76
|
+
t = u;
|
|
77
|
+
else {
|
|
78
|
+
t += "";
|
|
79
|
+
for (var s = t; !l(s); s = this.parent(s))
|
|
80
|
+
if (s === e)
|
|
81
|
+
throw new Error("Setting " + t + " as parent of " + e + " would create a cycle");
|
|
82
|
+
this.setNode(t);
|
|
83
|
+
}
|
|
84
|
+
return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
|
|
85
|
+
}
|
|
86
|
+
_removeFromParentsChildList(e) {
|
|
87
|
+
delete this._children[this._parent[e]][e];
|
|
88
|
+
}
|
|
89
|
+
parent(e) {
|
|
90
|
+
if (this._isCompound) {
|
|
91
|
+
var t = this._parent[e];
|
|
92
|
+
if (t !== u)
|
|
93
|
+
return t;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
children(e) {
|
|
97
|
+
if (l(e) && (e = u), this._isCompound) {
|
|
98
|
+
var t = this._children[e];
|
|
99
|
+
if (t)
|
|
100
|
+
return _(t);
|
|
101
|
+
} else {
|
|
102
|
+
if (e === u)
|
|
103
|
+
return this.nodes();
|
|
104
|
+
if (this.hasNode(e))
|
|
105
|
+
return [];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
predecessors(e) {
|
|
109
|
+
var t = this._preds[e];
|
|
110
|
+
if (t)
|
|
111
|
+
return _(t);
|
|
112
|
+
}
|
|
113
|
+
successors(e) {
|
|
114
|
+
var t = this._sucs[e];
|
|
115
|
+
if (t)
|
|
116
|
+
return _(t);
|
|
117
|
+
}
|
|
118
|
+
neighbors(e) {
|
|
119
|
+
var t = this.predecessors(e);
|
|
120
|
+
if (t)
|
|
121
|
+
return w(t, this.successors(e));
|
|
122
|
+
}
|
|
123
|
+
isLeaf(e) {
|
|
124
|
+
var t;
|
|
125
|
+
return this.isDirected() ? t = this.successors(e) : t = this.neighbors(e), t.length === 0;
|
|
126
|
+
}
|
|
127
|
+
filterNodes(e) {
|
|
128
|
+
var t = new this.constructor({
|
|
129
|
+
directed: this._isDirected,
|
|
130
|
+
multigraph: this._isMultigraph,
|
|
131
|
+
compound: this._isCompound
|
|
132
|
+
});
|
|
133
|
+
t.setGraph(this.graph());
|
|
134
|
+
var s = this;
|
|
135
|
+
d(this._nodes, function(n, h) {
|
|
136
|
+
e(h) && t.setNode(h, n);
|
|
137
|
+
}), d(this._edgeObjs, function(n) {
|
|
138
|
+
t.hasNode(n.v) && t.hasNode(n.w) && t.setEdge(n, s.edge(n));
|
|
139
|
+
});
|
|
140
|
+
var i = {};
|
|
141
|
+
function r(n) {
|
|
142
|
+
var h = s.parent(n);
|
|
143
|
+
return h === void 0 || t.hasNode(h) ? (i[n] = h, h) : h in i ? i[h] : r(h);
|
|
144
|
+
}
|
|
145
|
+
return this._isCompound && d(t.nodes(), function(n) {
|
|
146
|
+
t.setParent(n, r(n));
|
|
147
|
+
}), t;
|
|
148
|
+
}
|
|
149
|
+
/* === Edge functions ========== */
|
|
150
|
+
setDefaultEdgeLabel(e) {
|
|
151
|
+
return b(e) || (e = f(e)), this._defaultEdgeLabelFn = e, this;
|
|
152
|
+
}
|
|
153
|
+
edgeCount() {
|
|
154
|
+
return this._edgeCount;
|
|
155
|
+
}
|
|
156
|
+
edges() {
|
|
157
|
+
return p(this._edgeObjs);
|
|
158
|
+
}
|
|
159
|
+
setPath(e, t) {
|
|
160
|
+
var s = this, i = arguments;
|
|
161
|
+
return D(e, function(r, n) {
|
|
162
|
+
return i.length > 1 ? s.setEdge(r, n, t) : s.setEdge(r, n), n;
|
|
163
|
+
}), this;
|
|
164
|
+
}
|
|
165
|
+
/*
|
|
166
|
+
* setEdge(v, w, [value, [name]])
|
|
167
|
+
* setEdge({ v, w, [name] }, [value])
|
|
168
|
+
*/
|
|
169
|
+
setEdge() {
|
|
170
|
+
var e, t, s, i, r = !1, n = arguments[0];
|
|
171
|
+
typeof n == "object" && n !== null && "v" in n ? (e = n.v, t = n.w, s = n.name, arguments.length === 2 && (i = arguments[1], r = !0)) : (e = n, t = arguments[1], s = arguments[3], arguments.length > 2 && (i = arguments[2], r = !0)), e = "" + e, t = "" + t, l(s) || (s = "" + s);
|
|
172
|
+
var h = c(this._isDirected, e, t, s);
|
|
173
|
+
if (Object.prototype.hasOwnProperty.call(this._edgeLabels, h))
|
|
174
|
+
return r && (this._edgeLabels[h] = i), this;
|
|
175
|
+
if (!l(s) && !this._isMultigraph)
|
|
176
|
+
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
177
|
+
this.setNode(e), this.setNode(t), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(e, t, s);
|
|
178
|
+
var a = M(this._isDirected, e, t, s);
|
|
179
|
+
return e = a.v, t = a.w, Object.freeze(a), this._edgeObjs[h] = a, y(this._preds[t], e), y(this._sucs[e], t), this._in[t][h] = a, this._out[e][h] = a, this._edgeCount++, this;
|
|
180
|
+
}
|
|
181
|
+
edge(e, t, s) {
|
|
182
|
+
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
|
|
183
|
+
return this._edgeLabels[i];
|
|
184
|
+
}
|
|
185
|
+
hasEdge(e, t, s) {
|
|
186
|
+
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
|
|
187
|
+
return Object.prototype.hasOwnProperty.call(this._edgeLabels, i);
|
|
188
|
+
}
|
|
189
|
+
removeEdge(e, t, s) {
|
|
190
|
+
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s), r = this._edgeObjs[i];
|
|
191
|
+
return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], C(this._preds[t], e), C(this._sucs[e], t), delete this._in[t][i], delete this._out[e][i], this._edgeCount--), this;
|
|
192
|
+
}
|
|
193
|
+
inEdges(e, t) {
|
|
194
|
+
var s = this._in[e];
|
|
195
|
+
if (s) {
|
|
196
|
+
var i = p(s);
|
|
197
|
+
return t ? g(i, function(r) {
|
|
198
|
+
return r.v === t;
|
|
199
|
+
}) : i;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
outEdges(e, t) {
|
|
203
|
+
var s = this._out[e];
|
|
204
|
+
if (s) {
|
|
205
|
+
var i = p(s);
|
|
206
|
+
return t ? g(i, function(r) {
|
|
207
|
+
return r.w === t;
|
|
208
|
+
}) : i;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
nodeEdges(e, t) {
|
|
212
|
+
var s = this.inEdges(e, t);
|
|
213
|
+
if (s)
|
|
214
|
+
return s.concat(this.outEdges(e, t));
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
L.prototype._nodeCount = 0;
|
|
218
|
+
L.prototype._edgeCount = 0;
|
|
219
|
+
function y(o, e) {
|
|
220
|
+
o[e] ? o[e]++ : o[e] = 1;
|
|
221
|
+
}
|
|
222
|
+
function C(o, e) {
|
|
223
|
+
--o[e] || delete o[e];
|
|
224
|
+
}
|
|
225
|
+
function c(o, e, t, s) {
|
|
226
|
+
var i = "" + e, r = "" + t;
|
|
227
|
+
if (!o && i > r) {
|
|
228
|
+
var n = i;
|
|
229
|
+
i = r, r = n;
|
|
230
|
+
}
|
|
231
|
+
return i + O + r + O + (l(s) ? F : s);
|
|
232
|
+
}
|
|
233
|
+
function M(o, e, t, s) {
|
|
234
|
+
var i = "" + e, r = "" + t;
|
|
235
|
+
if (!o && i > r) {
|
|
236
|
+
var n = i;
|
|
237
|
+
i = r, r = n;
|
|
238
|
+
}
|
|
239
|
+
var h = { v: i, w: r };
|
|
240
|
+
return s && (h.name = s), h;
|
|
241
|
+
}
|
|
242
|
+
function m(o, e) {
|
|
243
|
+
return c(o, e.v, e.w, e.name);
|
|
244
|
+
}
|
|
245
|
+
export {
|
|
246
|
+
L as Graph
|
|
247
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as O } from "react/jsx-runtime";
|
|
2
|
+
import C from "clsx";
|
|
3
|
+
import { useRef as i, useReducer as L, useEffect as g } from "react";
|
|
4
|
+
const c = "SET_ANNOUNCEMENT", E = "CLEAR_ANNOUNCEMENT", v = {
|
|
5
|
+
alert: null,
|
|
6
|
+
alertdialog: null,
|
|
7
|
+
log: "polite",
|
|
8
|
+
marquee: null,
|
|
9
|
+
progressbar: null,
|
|
10
|
+
status: "polite",
|
|
11
|
+
timer: "assertive"
|
|
12
|
+
}, y = (t, e) => {
|
|
13
|
+
switch (e?.type) {
|
|
14
|
+
case c:
|
|
15
|
+
return {
|
|
16
|
+
...t,
|
|
17
|
+
announcement: e.payload
|
|
18
|
+
};
|
|
19
|
+
case E:
|
|
20
|
+
return {
|
|
21
|
+
...t,
|
|
22
|
+
announcement: null
|
|
23
|
+
};
|
|
24
|
+
default:
|
|
25
|
+
return t;
|
|
26
|
+
}
|
|
27
|
+
}, R = ({ onAnnouncementClear: t, dispatch: e }) => {
|
|
28
|
+
e({
|
|
29
|
+
type: E
|
|
30
|
+
}), typeof t == "function" && t();
|
|
31
|
+
}, N = ({ children: t, clearAnnouncementDelay: e, clearAnnouncementTimeoutRef: r, onAnnouncementClear: s, dispatch: o }) => {
|
|
32
|
+
clearTimeout(r.current), t !== null && o({
|
|
33
|
+
type: c,
|
|
34
|
+
payload: t
|
|
35
|
+
}), e && (r.current = setTimeout(() => R({
|
|
36
|
+
onAnnouncementClear: s,
|
|
37
|
+
dispatch: o
|
|
38
|
+
}), e));
|
|
39
|
+
}, U = ({ children: t, announcementTimeoutRef: e, announcementDelay: r, clearAnnouncementDelay: s, clearAnnouncementTimeoutRef: o, onAnnouncementClear: u, dispatch: l }) => {
|
|
40
|
+
clearTimeout(e.current), r ? e.current = setTimeout(N, r, {
|
|
41
|
+
children: t,
|
|
42
|
+
clearAnnouncementDelay: s,
|
|
43
|
+
clearAnnouncementTimeoutRef: o,
|
|
44
|
+
onAnnouncementClear: u,
|
|
45
|
+
dispatch: l
|
|
46
|
+
}) : N({
|
|
47
|
+
children: t,
|
|
48
|
+
clearAnnouncementDelay: s,
|
|
49
|
+
clearAnnouncementTimeoutRef: o,
|
|
50
|
+
onAnnouncementClear: u,
|
|
51
|
+
dispatch: l
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
function x({ children: t, className: e, politeness: r, role: s = null, announcementDelay: o, clearAnnouncementDelay: u, onAnnouncementClear: l, visible: f, ...a }) {
|
|
55
|
+
const p = i(null), T = i(null), [m, _] = L(y, {
|
|
56
|
+
announcement: null
|
|
57
|
+
});
|
|
58
|
+
let n = r;
|
|
59
|
+
typeof n > "u" && (n = s ? v[s] : "assertive"), g(() => {
|
|
60
|
+
U({
|
|
61
|
+
announcementTimeoutRef: p,
|
|
62
|
+
announcementDelay: o,
|
|
63
|
+
children: t,
|
|
64
|
+
clearAnnouncementDelay: u,
|
|
65
|
+
clearAnnouncementTimeoutRef: T,
|
|
66
|
+
onAnnouncementClear: l,
|
|
67
|
+
dispatch: _
|
|
68
|
+
});
|
|
69
|
+
}, [
|
|
70
|
+
t,
|
|
71
|
+
o,
|
|
72
|
+
u,
|
|
73
|
+
l
|
|
74
|
+
]);
|
|
75
|
+
const d = C(e, {
|
|
76
|
+
"sr-only": !f
|
|
77
|
+
});
|
|
78
|
+
return /* @__PURE__ */ O("div", {
|
|
79
|
+
"aria-live": n,
|
|
80
|
+
...s && {
|
|
81
|
+
role: s
|
|
82
|
+
},
|
|
83
|
+
className: d,
|
|
84
|
+
...a,
|
|
85
|
+
children: m.announcement
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
x as LiveRegion
|
|
90
|
+
};
|
|
@@ -5246,11 +5246,11 @@ function go() {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
const Wa = new URL(document.location.href).searchParams, Zt = !!Wa.get("debug") || !1, Ba = tr(() => import(
|
|
5248
5248
|
/* webpackChunkName: "LazyApp" */
|
|
5249
|
-
"./App.
|
|
5249
|
+
"./App.Br7HE-y0.js"
|
|
5250
5250
|
).then((e) => e.App)), Qa = tr(
|
|
5251
5251
|
() => import(
|
|
5252
5252
|
/* webpackChunkName: "LazyLogin" */
|
|
5253
|
-
"./LoginEntry.
|
|
5253
|
+
"./LoginEntry.XF9rPWdB.js"
|
|
5254
5254
|
)
|
|
5255
5255
|
), ja = new Ns(), er = ({
|
|
5256
5256
|
isComponent: e,
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { jsxs as ne, jsx as k } from "react/jsx-runtime";
|
|
2
|
+
import { useMergeRefs as oe, useResizeObserver as W, useUniqueId as ce } from "./LogoEntry.CnTI8jpv.js";
|
|
3
|
+
import le, { useState as L, useEffect as ie, useRef as b, useLayoutEffect as _ } from "react";
|
|
4
|
+
import { LiveRegion as ue } from "./index.Bi0z4EE1.js";
|
|
5
|
+
import o from "clsx";
|
|
6
|
+
function de({ value: e, defaultValue: a, finalValue: r, onChange: s = () => {
|
|
7
|
+
}, initialControlledDelay: t = 0 }) {
|
|
8
|
+
const [n, l] = L(!1), [i, u] = L(a !== void 0 ? a : r), x = (p) => {
|
|
9
|
+
u(p), s?.(p);
|
|
10
|
+
};
|
|
11
|
+
return ie(() => {
|
|
12
|
+
(async () => e !== void 0 && !n && t > 0 && (await new Promise((p) => setTimeout(p, t)), l(!0)))();
|
|
13
|
+
}, [
|
|
14
|
+
e,
|
|
15
|
+
t,
|
|
16
|
+
n
|
|
17
|
+
]), e !== void 0 ? !n && t > 0 ? [
|
|
18
|
+
"",
|
|
19
|
+
s,
|
|
20
|
+
!0
|
|
21
|
+
] : [
|
|
22
|
+
e,
|
|
23
|
+
s,
|
|
24
|
+
!0
|
|
25
|
+
] : [
|
|
26
|
+
i,
|
|
27
|
+
x,
|
|
28
|
+
!1
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
const B = "av-text-area", fe = "av-text-area-wrapper", I = "av-text-area-helper-text", xe = "av-text-area__control--right", pe = "av-text-area__control--left", ye = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", he = ({ mode: e }) => o({
|
|
32
|
+
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
33
|
+
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
34
|
+
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
35
|
+
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
36
|
+
}), ge = ({ focusMode: e }) => o("focus:outline-2 focus:outline-offset-2", {
|
|
37
|
+
"focus:outline-focus-dark": e === "dark",
|
|
38
|
+
"focus:outline-focus-light": e === "light",
|
|
39
|
+
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
40
|
+
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
41
|
+
}), ke = ({ noBorder: e, error: a }) => o("border-2", {
|
|
42
|
+
"border-border-dark": !e && !a,
|
|
43
|
+
"focus:border-border-dark": !e && a,
|
|
44
|
+
"border-border-error-dark": !e && a,
|
|
45
|
+
"border-transparent": e
|
|
46
|
+
}), Ae = ({ disabled: e, raw: a, error: r, mode: s, leftElement: t, rightElement: n }) => {
|
|
47
|
+
if (a)
|
|
48
|
+
return "";
|
|
49
|
+
if (e)
|
|
50
|
+
return o("transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium", {
|
|
51
|
+
"translate-x-2.5": n === !0 && !t || !n && !t
|
|
52
|
+
});
|
|
53
|
+
if (!r)
|
|
54
|
+
return o("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
|
|
55
|
+
"translate-x-2.5": n === !0 && !t || !n && !t,
|
|
56
|
+
"text-copy-medium": s === "dark",
|
|
57
|
+
"text-copy-dark": s === "light",
|
|
58
|
+
"text-copy-dark dark:text-copy-medium": s === "system",
|
|
59
|
+
"text-copy-medium dark:text-copy-dark": s === "alt-system"
|
|
60
|
+
});
|
|
61
|
+
if (r)
|
|
62
|
+
return o("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
|
|
63
|
+
"translate-x-2.5": n === !0 && !t || !n && !t,
|
|
64
|
+
"text-copy-medium": s === "dark",
|
|
65
|
+
"text-copy-error-dark": s === "light",
|
|
66
|
+
"text-copy-error-dark dark:text-copy-error-light": s === "system",
|
|
67
|
+
"text-copy-medium dark:text-copy-error-dark": s === "alt-system"
|
|
68
|
+
});
|
|
69
|
+
}, Te = ({ error: e, raw: a, mode: r, disabled: s }) => {
|
|
70
|
+
if (a)
|
|
71
|
+
return "";
|
|
72
|
+
if (s)
|
|
73
|
+
return o(I, "absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
74
|
+
if (!e)
|
|
75
|
+
return o(I, "absolute px-2 font-medium", {
|
|
76
|
+
"text-copy-medium": r === "dark",
|
|
77
|
+
"text-copy-dark": r === "light",
|
|
78
|
+
"text-copy-dark dark:text-copy-medium": r === "system",
|
|
79
|
+
"text-copy-medium dark:text-copy-dark": r === "alt-system"
|
|
80
|
+
});
|
|
81
|
+
if (e)
|
|
82
|
+
return o(I, "absolute px-2 font-medium", {
|
|
83
|
+
"text-copy-error-light": r === "dark",
|
|
84
|
+
"text-copy-error-dark": r === "light",
|
|
85
|
+
"text-copy-error-dark dark:text-copy-error-light": r === "system",
|
|
86
|
+
"dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
|
|
87
|
+
});
|
|
88
|
+
}, be = ({ className: e, textAreaClassName: a, raw: r, focusMode: s, disabled: t, noBorder: n, error: l, mode: i, leftElement: u, rightElement: x }) => {
|
|
89
|
+
const p = r ? e : o("relative flex w-full flex-col justify-center", fe, e), N = r ? o(a) : o(B, a, ye(), he({
|
|
90
|
+
mode: i
|
|
91
|
+
}), ge({
|
|
92
|
+
focusMode: s
|
|
93
|
+
}), ke({
|
|
94
|
+
noBorder: n,
|
|
95
|
+
error: l
|
|
96
|
+
}), {
|
|
97
|
+
"disabled:cursor-not-allowed disabled:opacity-50": t
|
|
98
|
+
}), E = r ? void 0 : "sr-only", C = Ae({
|
|
99
|
+
disabled: t,
|
|
100
|
+
raw: r,
|
|
101
|
+
error: l,
|
|
102
|
+
mode: i,
|
|
103
|
+
rightElement: x,
|
|
104
|
+
leftElement: u
|
|
105
|
+
}), d = Te({
|
|
106
|
+
error: l,
|
|
107
|
+
raw: r,
|
|
108
|
+
mode: i,
|
|
109
|
+
disabled: t
|
|
110
|
+
}), m = r ? void 0 : o(xe, "absolute"), y = r ? void 0 : o(pe, "absolute");
|
|
111
|
+
return {
|
|
112
|
+
wrapper: p,
|
|
113
|
+
textArea: N,
|
|
114
|
+
accessibleLabel: E,
|
|
115
|
+
visibleLabel: C,
|
|
116
|
+
helperText: d,
|
|
117
|
+
rightElement: m,
|
|
118
|
+
leftElement: y
|
|
119
|
+
};
|
|
120
|
+
}, me = ({ scrollHeight: e, currentHeight: a, currentLabelOffset: r = 0, currentHelperTextOffset: s = 0 }) => {
|
|
121
|
+
let l, i;
|
|
122
|
+
if (e > 0 && e !== a) {
|
|
123
|
+
const u = e - a, x = Math.abs(u / 24);
|
|
124
|
+
l = r + -1 * Math.sign(u) * (12 * x), i = s + Math.sign(u) * (12 * x);
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
labelOffset: l,
|
|
128
|
+
helperTextOffset: i,
|
|
129
|
+
scrollHeight: e
|
|
130
|
+
};
|
|
131
|
+
}, Re = /* @__PURE__ */ le.forwardRef(({ id: e, name: a, label: r, error: s = !1, raw: t = !1, className: n, textAreaClassName: l, mode: i = "system", focusMode: u = "system", value: x, defaultValue: p, disabled: N = !1, noBorder: E = !1, labelId: C, helperText: d = "", helperTextOnFocus: m = !1, rightElement: y, leftElement: A, onChange: P, onFocus: F, onBlur: $, ...D }, Y) => {
|
|
132
|
+
const f = b(null), z = oe([
|
|
133
|
+
Y,
|
|
134
|
+
f
|
|
135
|
+
]), [q, O] = W(), [V, T] = W(), H = b(80), M = b(-25), v = b(null), w = b(30), X = b(null), R = ce({
|
|
136
|
+
id: e,
|
|
137
|
+
prefix: `${B}-`
|
|
138
|
+
}), [U, J] = L(0), [j, K] = L(0), [Q, G] = L(!!(!m && d)), Z = `${a} error, ${d}`, g = be({
|
|
139
|
+
className: n,
|
|
140
|
+
textAreaClassName: l,
|
|
141
|
+
error: s,
|
|
142
|
+
raw: t,
|
|
143
|
+
focusMode: u,
|
|
144
|
+
disabled: N,
|
|
145
|
+
noBorder: E,
|
|
146
|
+
mode: i,
|
|
147
|
+
rightElement: !!y,
|
|
148
|
+
leftElement: !!A
|
|
149
|
+
}), [h, ee] = de({
|
|
150
|
+
value: x,
|
|
151
|
+
initialControlledDelay: 20,
|
|
152
|
+
defaultValue: p,
|
|
153
|
+
onChange: (c) => {
|
|
154
|
+
P && P({
|
|
155
|
+
target: {
|
|
156
|
+
value: c
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}), te = (c) => {
|
|
161
|
+
ee(c.target.value);
|
|
162
|
+
}, re = (c) => {
|
|
163
|
+
m && d && G(!0), F && F(c);
|
|
164
|
+
}, se = (c) => {
|
|
165
|
+
m && d && !h && G(!1), $ && $(c);
|
|
166
|
+
};
|
|
167
|
+
return _(() => {
|
|
168
|
+
O && O.width && J(O.width + 18 + 10);
|
|
169
|
+
}, [
|
|
170
|
+
O
|
|
171
|
+
]), _(() => {
|
|
172
|
+
T && T.width && K(T.width + 18 + 10);
|
|
173
|
+
}, [
|
|
174
|
+
T
|
|
175
|
+
]), _(() => {
|
|
176
|
+
t || f && f.current && h !== void 0 && (f.current.style.height = "inherit", f.current.style.height = f.current.scrollHeight + "px");
|
|
177
|
+
}, [
|
|
178
|
+
h,
|
|
179
|
+
t
|
|
180
|
+
]), _(() => {
|
|
181
|
+
t || setTimeout(() => {
|
|
182
|
+
v?.current?.style.setProperty("--av-text-area-wrapper-transition", h ? "none" : "all 0.2s ease-out");
|
|
183
|
+
}, 0);
|
|
184
|
+
}, [
|
|
185
|
+
h,
|
|
186
|
+
t
|
|
187
|
+
]), _(() => {
|
|
188
|
+
if (!t && f && f.current && h !== void 0) {
|
|
189
|
+
const { labelOffset: c, helperTextOffset: S, scrollHeight: ae } = me({
|
|
190
|
+
scrollHeight: f.current.scrollHeight,
|
|
191
|
+
currentHeight: H.current,
|
|
192
|
+
currentLabelOffset: M.current,
|
|
193
|
+
currentHelperTextOffset: w.current
|
|
194
|
+
});
|
|
195
|
+
c && (M.current = c, v?.current?.style.setProperty("--av-text-area-label", `${c}px`)), S && (w.current = S, X?.current?.style.setProperty("--av-text-area-helper-text", `${S}px`)), H.current = ae || H.current;
|
|
196
|
+
}
|
|
197
|
+
}, [
|
|
198
|
+
h,
|
|
199
|
+
t
|
|
200
|
+
]), T.width > 0 && v?.current?.style.setProperty("--tw-translate-x", `${12 + T.width + 5}px`), /* @__PURE__ */ ne("div", {
|
|
201
|
+
className: g.wrapper,
|
|
202
|
+
children: [
|
|
203
|
+
/* @__PURE__ */ k("label", {
|
|
204
|
+
htmlFor: R,
|
|
205
|
+
id: C,
|
|
206
|
+
className: g.accessibleLabel,
|
|
207
|
+
children: r
|
|
208
|
+
}),
|
|
209
|
+
A && /* @__PURE__ */ k("div", {
|
|
210
|
+
ref: V,
|
|
211
|
+
className: g.leftElement,
|
|
212
|
+
children: A
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ k("textarea", {
|
|
215
|
+
ref: z,
|
|
216
|
+
id: R,
|
|
217
|
+
name: a,
|
|
218
|
+
disabled: N,
|
|
219
|
+
placeholder: t ? void 0 : " ",
|
|
220
|
+
className: g.textArea,
|
|
221
|
+
rows: 1,
|
|
222
|
+
...d && {
|
|
223
|
+
"aria-describedby": `${R}-helper`
|
|
224
|
+
},
|
|
225
|
+
...s && {
|
|
226
|
+
"aria-invalid": "true"
|
|
227
|
+
},
|
|
228
|
+
...y && !A && !t && {
|
|
229
|
+
style: {
|
|
230
|
+
paddingRight: U
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
...A && !y && !t && {
|
|
234
|
+
style: {
|
|
235
|
+
paddingLeft: j
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
...y && A && !t && {
|
|
239
|
+
style: {
|
|
240
|
+
paddingRight: U,
|
|
241
|
+
paddingLeft: j
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
value: h,
|
|
245
|
+
onChange: te,
|
|
246
|
+
onFocus: re,
|
|
247
|
+
onBlur: se,
|
|
248
|
+
...D
|
|
249
|
+
}),
|
|
250
|
+
!t && /* @__PURE__ */ k("label", {
|
|
251
|
+
ref: v,
|
|
252
|
+
"aria-hidden": !0,
|
|
253
|
+
htmlFor: R,
|
|
254
|
+
className: `${g.visibleLabel}`,
|
|
255
|
+
children: r
|
|
256
|
+
}),
|
|
257
|
+
Q && /* @__PURE__ */ k("div", {
|
|
258
|
+
ref: X,
|
|
259
|
+
id: `${R}-helper`,
|
|
260
|
+
className: g.helperText,
|
|
261
|
+
children: d
|
|
262
|
+
}),
|
|
263
|
+
y && /* @__PURE__ */ k("div", {
|
|
264
|
+
ref: q,
|
|
265
|
+
className: g.rightElement,
|
|
266
|
+
children: y
|
|
267
|
+
}),
|
|
268
|
+
s && d && /* @__PURE__ */ k(ue, {
|
|
269
|
+
politeness: "polite",
|
|
270
|
+
clearAnnouncementDelay: 500,
|
|
271
|
+
children: Z
|
|
272
|
+
})
|
|
273
|
+
]
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
Re.displayName = "TextArea";
|
|
277
|
+
export {
|
|
278
|
+
Re as TextArea
|
|
279
|
+
};
|