@telia-ace/widget-ui 1.0.28-experimental.13 → 1.0.28-experimental.15
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/components/button/button.d.ts +10 -0
- package/dist/components/ui-html.d.ts +11 -0
- package/dist/components/ui-symbol-badge.d.ts +21 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +978 -693
- package/dist/index.js.map +1 -1
- package/package.json +8 -6
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var zt = Object.defineProperty, Dt = Object.defineProperties;
|
|
2
|
+
var Ht = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ue = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ke = Object.prototype.hasOwnProperty, Ue = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Fe = (e, t, n) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, f = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Ke.call(t, n) && Fe(e, n, t[n]);
|
|
8
|
+
if (ue)
|
|
9
|
+
for (var n of ue(t))
|
|
10
|
+
Ue.call(t, n) && Fe(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, k = (e, t) =>
|
|
12
|
+
}, k = (e, t) => Dt(e, Ht(t));
|
|
13
13
|
var S = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var o of
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
16
|
+
Ke.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && ue)
|
|
18
|
+
for (var o of ue(e))
|
|
19
|
+
t.indexOf(o) < 0 && Ue.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var de = (e, t, n) => new Promise((o, r) => {
|
|
23
23
|
var i = (u) => {
|
|
24
24
|
try {
|
|
25
25
|
l(n.next(u));
|
|
@@ -35,22 +35,24 @@ var ie = (e, t, n) => new Promise((o, r) => {
|
|
|
35
35
|
}, l = (u) => u.done ? o(u.value) : Promise.resolve(u.value).then(i, a);
|
|
36
36
|
l((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { Container as
|
|
39
|
-
import s, { forwardRef as
|
|
40
|
-
import { ComponentPlatform as
|
|
41
|
-
import { css as L, keyframes as
|
|
42
|
-
import
|
|
43
|
-
import { kebabCase as
|
|
44
|
-
import { LitElement as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
import {
|
|
53
|
-
|
|
38
|
+
import { Container as Bt, WidgetState as Pt } from "@webprovisions/platform";
|
|
39
|
+
import s, { forwardRef as P, createContext as ne, useContext as J, useState as E, useEffect as w, useRef as R, useCallback as _, useImperativeHandle as Te, useMemo as he, Component as Vt, lazy as Nt } from "react";
|
|
40
|
+
import { ComponentPlatform as ze, asDescriptor as tt, createEventSubscriber as It, ComponentQuery as Ot, WidgetRenderState as me, extendComponent as nt } from "@telia-ace/widget-core";
|
|
41
|
+
import { css as L, keyframes as ot } from "@emotion/react";
|
|
42
|
+
import C from "@emotion/styled";
|
|
43
|
+
import { kebabCase as Wt, appendClassNames as M, uuid as se, removeNullAndUndefinedValues as Ye, Logger as Ee } from "@telia-ace/widget-utilities";
|
|
44
|
+
import { LitElement as ye, html as O, unsafeCSS as rt, css as Ce, nothing as Zt } from "lit";
|
|
45
|
+
import { customElement as ve, property as N, state as X } from "lit/decorators.js";
|
|
46
|
+
import { html as st, unsafeStatic as it } from "lit/static-html.js";
|
|
47
|
+
import { spread as B } from "@open-wc/lit-helpers";
|
|
48
|
+
import { styleMap as q } from "lit/directives/style-map.js";
|
|
49
|
+
import { CSSTransition as at, Transition as jt } from "react-transition-group";
|
|
50
|
+
import { createPortal as At } from "react-dom";
|
|
51
|
+
import { HistoryMode as qe, getSpecificWidgetPath as Ft } from "@telia-ace/widget-routing";
|
|
52
|
+
import { Link as ke } from "react-router-dom";
|
|
53
|
+
import Xe from "htmr";
|
|
54
|
+
import { dedupeMixin as ct } from "@open-wc/dedupe-mixin";
|
|
55
|
+
const Kt = (e) => e === "entering" || e === "entered", Ut = (e) => e === "exiting" || e === "exited", G = {
|
|
54
56
|
fade: {
|
|
55
57
|
in: "opacity: 1;",
|
|
56
58
|
out: "opacity: 0;"
|
|
@@ -75,29 +77,29 @@ const Pt = (e) => e === "entering" || e === "entered", Nt = (e) => e === "exitin
|
|
|
75
77
|
in: "transform: scale(1);",
|
|
76
78
|
out: "transform: scale(0);"
|
|
77
79
|
}
|
|
78
|
-
},
|
|
80
|
+
}, Yt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], Le = {
|
|
79
81
|
compose: (e = "exited", t) => {
|
|
80
|
-
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i =
|
|
81
|
-
if (
|
|
82
|
+
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i = Yt.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
83
|
+
if (Kt(e))
|
|
82
84
|
return r && r.length > 0 ? L`
|
|
83
|
-
${r && r.length > 0 && r.map((l) =>
|
|
85
|
+
${r && r.length > 0 && r.map((l) => G[l] ? G[l].in : "")}
|
|
84
86
|
transition: ${i} ${n.duration}ms ${n.easing};
|
|
85
87
|
` : "";
|
|
86
88
|
const a = r && r.length > 0 && L`
|
|
87
|
-
${r.map((l) =>
|
|
89
|
+
${r.map((l) => G[l] ? G[l].out : "")}
|
|
88
90
|
`;
|
|
89
|
-
if (
|
|
91
|
+
if (Ut(e)) {
|
|
90
92
|
const l = o.transitionKeys.split(" ");
|
|
91
93
|
return l && l.length > 0 && e === "exiting" ? L`
|
|
92
94
|
${a};
|
|
93
|
-
${l.map((u) =>
|
|
95
|
+
${l.map((u) => G[u] ? G[u].out : "")}
|
|
94
96
|
transition: ${i} ${o.duration}ms ${o.easing};
|
|
95
97
|
` : a;
|
|
96
98
|
}
|
|
97
99
|
},
|
|
98
100
|
composeViewTransition: (e, t, n) => {
|
|
99
101
|
if (t === "slide")
|
|
100
|
-
return
|
|
102
|
+
return Le.compose(e, {
|
|
101
103
|
enter: {
|
|
102
104
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
103
105
|
duration: 500
|
|
@@ -108,7 +110,7 @@ const Pt = (e) => e === "entering" || e === "entered", Nt = (e) => e === "exitin
|
|
|
108
110
|
}
|
|
109
111
|
});
|
|
110
112
|
if (t === "fade")
|
|
111
|
-
return
|
|
113
|
+
return Le.compose(e, {
|
|
112
114
|
enter: {
|
|
113
115
|
transitionKeys: "fade",
|
|
114
116
|
duration: 500
|
|
@@ -119,10 +121,10 @@ const Pt = (e) => e === "entering" || e === "entered", Nt = (e) => e === "exitin
|
|
|
119
121
|
}
|
|
120
122
|
});
|
|
121
123
|
},
|
|
122
|
-
get: (e) =>
|
|
124
|
+
get: (e) => G[e]
|
|
123
125
|
};
|
|
124
|
-
var
|
|
125
|
-
const
|
|
126
|
+
var Me = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(Me || {});
|
|
127
|
+
const Qe = () => {
|
|
126
128
|
const {
|
|
127
129
|
opr: e,
|
|
128
130
|
opera: t,
|
|
@@ -153,42 +155,42 @@ const Ze = () => {
|
|
|
153
155
|
return "edge-chromium";
|
|
154
156
|
if ((d || c) && !!u)
|
|
155
157
|
return "blink";
|
|
156
|
-
},
|
|
158
|
+
}, qt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
|
|
157
159
|
const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
|
|
158
|
-
if (
|
|
160
|
+
if (qt.indexOf(r) > -1) {
|
|
159
161
|
const i = n.substring(0, 5);
|
|
160
|
-
i === "data-" || i === "aria-" ? t[
|
|
162
|
+
i === "data-" || i === "aria-" ? t[Wt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
|
|
161
163
|
} else
|
|
162
164
|
t[n] = o;
|
|
163
165
|
return t;
|
|
164
|
-
}, {}),
|
|
166
|
+
}, {}), Xt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ s.createElement(po, f({}, t)) : null, ds = Xt, Qt = (e) => new RegExp("^#", "i").test(e), Gt = (e) => (o) => {
|
|
165
167
|
var r = o, { children: t } = r, n = S(r, ["children"]);
|
|
166
168
|
const {
|
|
167
169
|
implementation: i,
|
|
168
170
|
name: a
|
|
169
171
|
} = e.get("$widget"), { href: l = "" } = n;
|
|
170
|
-
if (
|
|
171
|
-
return /* @__PURE__ */ s.createElement(
|
|
172
|
+
if (Qt(l))
|
|
173
|
+
return /* @__PURE__ */ s.createElement(cn, { smooth: !0, to: l }, t);
|
|
172
174
|
const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
|
|
173
175
|
if (m && m.length >= 4) {
|
|
174
176
|
const p = m[4];
|
|
175
177
|
if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
|
|
176
|
-
return /* @__PURE__ */ s.createElement(
|
|
178
|
+
return /* @__PURE__ */ s.createElement(Er, { widgetName: p }, t);
|
|
177
179
|
}
|
|
178
180
|
return /* @__PURE__ */ s.createElement("a", f({}, n), t);
|
|
179
|
-
},
|
|
181
|
+
}, Jt = Gt, lt = (e) => {
|
|
180
182
|
const t = {};
|
|
181
183
|
return Object.keys(e).forEach((n) => {
|
|
182
184
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
183
185
|
}), t;
|
|
184
|
-
},
|
|
186
|
+
}, en = (e) => {
|
|
185
187
|
let t = "";
|
|
186
|
-
return Object.keys(
|
|
188
|
+
return Object.keys(lt(e)).forEach((n) => {
|
|
187
189
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
188
190
|
}), L`
|
|
189
191
|
${t}
|
|
190
192
|
`;
|
|
191
|
-
},
|
|
193
|
+
}, tn = lt, nn = (e, t) => {
|
|
192
194
|
let n = "";
|
|
193
195
|
const o = () => {
|
|
194
196
|
n = "";
|
|
@@ -199,7 +201,7 @@ const Ze = () => {
|
|
|
199
201
|
e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
|
|
200
202
|
), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
|
|
201
203
|
return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ s.createElement(t, k(f({}, c), { onClick: i }), e.children);
|
|
202
|
-
},
|
|
204
|
+
}, pe = (e) => (t, n) => {
|
|
203
205
|
let o = t, r = "";
|
|
204
206
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
205
207
|
o = t;
|
|
@@ -218,27 +220,27 @@ const Ze = () => {
|
|
|
218
220
|
}
|
|
219
221
|
`;
|
|
220
222
|
};
|
|
221
|
-
function
|
|
222
|
-
return t ?
|
|
223
|
+
function on(e, t) {
|
|
224
|
+
return t ? Xe(e, t) : Xe(e);
|
|
223
225
|
}
|
|
224
|
-
const
|
|
226
|
+
const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBody: e }), sn = (e, t) => ({
|
|
225
227
|
transform: {
|
|
226
|
-
a:
|
|
227
|
-
img:
|
|
228
|
+
a: Jt(e),
|
|
229
|
+
img: rn(t)
|
|
228
230
|
}
|
|
229
|
-
}),
|
|
231
|
+
}), an = (e) => nn(e, "a"), cn = an, be = P((r, o) => {
|
|
230
232
|
var i = r, { className: e, children: t } = i, n = S(i, ["className", "children"]);
|
|
231
233
|
return /* @__PURE__ */ s.createElement(
|
|
232
|
-
|
|
234
|
+
ln,
|
|
233
235
|
k(f({
|
|
234
236
|
type: "button",
|
|
235
237
|
className: M(e, "humany-button")
|
|
236
|
-
},
|
|
238
|
+
}, V(n)), {
|
|
237
239
|
ref: o
|
|
238
240
|
}),
|
|
239
241
|
t
|
|
240
242
|
);
|
|
241
|
-
}),
|
|
243
|
+
}), ln = C.button`
|
|
242
244
|
-webkit-appearance: button;
|
|
243
245
|
text-transform: none;
|
|
244
246
|
overflow: visible;
|
|
@@ -251,7 +253,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
251
253
|
line-height: normal;
|
|
252
254
|
margin: 0;
|
|
253
255
|
padding: 0;
|
|
254
|
-
`,
|
|
256
|
+
`, un = (r) => {
|
|
255
257
|
var i = r, {
|
|
256
258
|
onChange: e = () => {
|
|
257
259
|
},
|
|
@@ -271,45 +273,45 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
271
273
|
a.key === "Enter" && t(a);
|
|
272
274
|
},
|
|
273
275
|
onChange: (a) => e(a.target.value, a.currentTarget.checked)
|
|
274
|
-
},
|
|
276
|
+
}, V(o))
|
|
275
277
|
);
|
|
276
|
-
},
|
|
278
|
+
}, ms = un, dn = ne(new Bt()), mn = ne(1), ut = ne({
|
|
277
279
|
id: "",
|
|
278
280
|
type: "",
|
|
279
281
|
name: "",
|
|
280
282
|
branch: ""
|
|
281
|
-
}),
|
|
282
|
-
const n =
|
|
283
|
+
}), hn = ne({}), pn = ne(null), fn = ne(null), gn = () => J(ut), De = gn, yn = () => J(dn), I = yn, Cn = (e, t) => {
|
|
284
|
+
const n = De().id, o = I();
|
|
283
285
|
return (r, i) => {
|
|
284
286
|
(t || o).getAsync("actionResolver").then((a) => {
|
|
285
287
|
a.action(e || n, r, i);
|
|
286
288
|
});
|
|
287
289
|
};
|
|
288
|
-
},
|
|
289
|
-
const t =
|
|
290
|
+
}, hs = Cn, vn = (e) => {
|
|
291
|
+
const t = J(ut), n = oe(), [o, r] = E();
|
|
290
292
|
return w(() => {
|
|
291
293
|
if ((e || t.id) && n) {
|
|
292
294
|
const i = n.nodes.get(e || t.id);
|
|
293
295
|
r(i);
|
|
294
296
|
}
|
|
295
297
|
}, [e, t.id, n]), o;
|
|
296
|
-
},
|
|
298
|
+
}, He = vn, bn = () => {
|
|
297
299
|
const e = R(!1);
|
|
298
300
|
return w(() => (e.current = !0, () => {
|
|
299
301
|
e.current = !1;
|
|
300
302
|
}), []), e;
|
|
301
|
-
},
|
|
302
|
-
const t = I(), [n, o] =
|
|
303
|
+
}, K = bn, wn = (e) => {
|
|
304
|
+
const t = I(), [n, o] = E(null), r = K();
|
|
303
305
|
return w(() => {
|
|
304
|
-
|
|
306
|
+
ze.getInstance(e || t).then((i) => {
|
|
305
307
|
r.current && o(i);
|
|
306
308
|
});
|
|
307
309
|
}, [r]), n;
|
|
308
|
-
},
|
|
309
|
-
const e =
|
|
310
|
+
}, oe = wn, xn = () => {
|
|
311
|
+
const e = He(), t = oe(), [n, o] = E([]), r = K(), i = _(
|
|
310
312
|
(a) => {
|
|
311
313
|
if (t && r.current && a) {
|
|
312
|
-
const l = t.getBranch(a), u = a.getChildren(l).map((c) =>
|
|
314
|
+
const l = t.getBranch(a), u = a.getChildren(l).map((c) => tt(c));
|
|
313
315
|
o(u);
|
|
314
316
|
}
|
|
315
317
|
},
|
|
@@ -319,7 +321,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
319
321
|
e && i(e);
|
|
320
322
|
}, [e, t]), w(() => {
|
|
321
323
|
if (t) {
|
|
322
|
-
const [a, l] =
|
|
324
|
+
const [a, l] = It(t.events);
|
|
323
325
|
return a("components:set-layout", (u, c) => {
|
|
324
326
|
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
325
327
|
}), a("components:node-appended", (u, c) => {
|
|
@@ -331,8 +333,8 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
331
333
|
};
|
|
332
334
|
}
|
|
333
335
|
}, [e, t, i]), n;
|
|
334
|
-
},
|
|
335
|
-
const n =
|
|
336
|
+
}, ps = xn, $n = () => J(mn), fs = $n, En = (e, t) => {
|
|
337
|
+
const n = De(), o = I(), [r, i] = E(void 0), a = K(), l = e || n.type || "";
|
|
336
338
|
return w(() => {
|
|
337
339
|
if (l) {
|
|
338
340
|
let u;
|
|
@@ -349,8 +351,8 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
349
351
|
};
|
|
350
352
|
}
|
|
351
353
|
}, [a, l, t, o]), r;
|
|
352
|
-
},
|
|
353
|
-
const t =
|
|
354
|
+
}, gs = En, kn = (e) => {
|
|
355
|
+
const t = He(e), n = oe(), [o, r] = E({}), i = K();
|
|
354
356
|
return w(() => {
|
|
355
357
|
t && i.current && r(t.attributes.context);
|
|
356
358
|
}, [i, t]), w(() => {
|
|
@@ -366,11 +368,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
366
368
|
};
|
|
367
369
|
}
|
|
368
370
|
}, [i, n, t]), o;
|
|
369
|
-
},
|
|
370
|
-
const e =
|
|
371
|
+
}, Ln = kn, Mn = () => J(fn), ys = Mn, Sn = () => {
|
|
372
|
+
const e = oe(), t = De(), [n, o] = E([]), [r, i] = E();
|
|
371
373
|
return w(() => {
|
|
372
374
|
if (e && t) {
|
|
373
|
-
const a = new
|
|
375
|
+
const a = new Ot(e).withId(t.id), l = e.actions(a, t.type || se());
|
|
374
376
|
i(l), n !== null && (n.forEach((u) => {
|
|
375
377
|
l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
|
|
376
378
|
}), o(null));
|
|
@@ -383,7 +385,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
383
385
|
reject: c
|
|
384
386
|
});
|
|
385
387
|
}) : r.dispatch(a, l);
|
|
386
|
-
},
|
|
388
|
+
}, Cs = Sn, A = (e, t, n = window, o = () => !0) => {
|
|
387
389
|
const r = R(() => {
|
|
388
390
|
});
|
|
389
391
|
w(() => {
|
|
@@ -396,11 +398,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
396
398
|
n.removeEventListener(e, a);
|
|
397
399
|
};
|
|
398
400
|
}, [e, n]);
|
|
399
|
-
},
|
|
401
|
+
}, Rn = (e) => {
|
|
400
402
|
const t = I(), { events: n } = (e || t).get("$widget");
|
|
401
403
|
return n;
|
|
402
|
-
},
|
|
403
|
-
const [e, t] =
|
|
404
|
+
}, _n = Rn, Tn = () => {
|
|
405
|
+
const [e, t] = E(!1);
|
|
404
406
|
return w(() => {
|
|
405
407
|
const n = () => {
|
|
406
408
|
t(!1);
|
|
@@ -411,22 +413,22 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
411
413
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
412
414
|
};
|
|
413
415
|
}, []), e;
|
|
414
|
-
},
|
|
415
|
-
const [n, o] =
|
|
416
|
+
}, vs = Tn, zn = (e, t) => {
|
|
417
|
+
const [n, o] = E(!1), r = _(
|
|
416
418
|
(a) => {
|
|
417
419
|
const { key: l } = a;
|
|
418
420
|
l === e && (o(!0), t && t(a));
|
|
419
421
|
},
|
|
420
422
|
[o, t]
|
|
421
|
-
), i =
|
|
423
|
+
), i = _(
|
|
422
424
|
({ key: a }) => {
|
|
423
425
|
a === e && o(!1);
|
|
424
426
|
},
|
|
425
427
|
[o]
|
|
426
428
|
);
|
|
427
|
-
return
|
|
428
|
-
},
|
|
429
|
-
const t =
|
|
429
|
+
return A("keydown", r, window), A("keyup", i, window), n;
|
|
430
|
+
}, te = zn, Dn = (e) => {
|
|
431
|
+
const t = He(e), n = oe(), [o, r] = E({}), i = K();
|
|
430
432
|
return w(() => {
|
|
431
433
|
t && i.current && r(t.attributes.layout);
|
|
432
434
|
}, [t, i]), w(() => {
|
|
@@ -442,13 +444,13 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
442
444
|
};
|
|
443
445
|
}
|
|
444
446
|
}, [n, i, t]), o;
|
|
445
|
-
},
|
|
447
|
+
}, bs = Dn, Hn = (e) => {
|
|
446
448
|
const t = R();
|
|
447
449
|
return w(() => {
|
|
448
450
|
t.current = e;
|
|
449
451
|
}), t.current;
|
|
450
|
-
},
|
|
451
|
-
const [t, n] =
|
|
452
|
+
}, dt = Hn, Bn = () => J(hn), ws = Bn, Pn = (e) => {
|
|
453
|
+
const [t, n] = E(), o = I(), r = K();
|
|
452
454
|
return w(() => {
|
|
453
455
|
let i;
|
|
454
456
|
const a = (e || o).get("$widget");
|
|
@@ -463,19 +465,19 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
463
465
|
case "close":
|
|
464
466
|
case "open":
|
|
465
467
|
r.current && n(
|
|
466
|
-
p === "open" ?
|
|
468
|
+
p === "open" ? me.open : me.closed
|
|
467
469
|
);
|
|
468
470
|
break;
|
|
469
471
|
case "hide":
|
|
470
|
-
r.current && n(
|
|
472
|
+
r.current && n(me.hidden);
|
|
471
473
|
}
|
|
472
474
|
});
|
|
473
475
|
}), () => {
|
|
474
476
|
i && i();
|
|
475
477
|
};
|
|
476
478
|
}, [r]), t;
|
|
477
|
-
},
|
|
478
|
-
const t = I(), n =
|
|
479
|
+
}, xs = Pn, Vn = () => J(pn), mt = Vn, Nn = (e) => {
|
|
480
|
+
const t = I(), n = mt(), [o, r] = E({ name: "", params: {} }), i = K();
|
|
479
481
|
return w(() => {
|
|
480
482
|
const a = (e || t).get("$widget");
|
|
481
483
|
if (!a)
|
|
@@ -484,44 +486,44 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
484
486
|
return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
|
|
485
487
|
if (i.current) {
|
|
486
488
|
const { name: p, params: d } = m;
|
|
487
|
-
|
|
489
|
+
Ye(d), r({ name: p, params: d });
|
|
488
490
|
}
|
|
489
491
|
});
|
|
490
492
|
}, [i, e, t]), w(() => {
|
|
491
493
|
if (n && n.history && i.current) {
|
|
492
494
|
const a = n.getRouteData(), { name: l, params: u } = a;
|
|
493
|
-
|
|
495
|
+
Ye(u), r({ name: l, params: u });
|
|
494
496
|
}
|
|
495
497
|
}, [n, i]), o;
|
|
496
|
-
},
|
|
498
|
+
}, $s = Nn, ht = (e) => {
|
|
497
499
|
const t = R(), n = R(0);
|
|
498
500
|
let o;
|
|
499
|
-
const r =
|
|
501
|
+
const r = _(() => {
|
|
500
502
|
var c;
|
|
501
503
|
(c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
502
504
|
var m;
|
|
503
505
|
(m = t.current) == null || m.classList.remove("humany-scrolling");
|
|
504
506
|
}, 500);
|
|
505
|
-
}, [t]), i =
|
|
507
|
+
}, [t]), i = _(
|
|
506
508
|
(c) => {
|
|
507
509
|
n.current = c.touches[0].clientY;
|
|
508
510
|
},
|
|
509
511
|
[t]
|
|
510
|
-
), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u =
|
|
512
|
+
), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = _(
|
|
511
513
|
(c) => {
|
|
512
514
|
if (!c.cancelable)
|
|
513
515
|
return;
|
|
514
516
|
const m = c.touches[0].clientY, p = a(c.target);
|
|
515
517
|
if (!p)
|
|
516
518
|
return;
|
|
517
|
-
const d = p.scrollTop, h = n.current - m < 0 ? "up" : "down",
|
|
518
|
-
(
|
|
519
|
+
const d = p.scrollTop, h = n.current - m < 0 ? "up" : "down", y = d <= 0 && h === "up", x = d >= p.scrollHeight - p.offsetHeight && h === "down";
|
|
520
|
+
(y || x) && c.preventDefault(), n.current = m;
|
|
519
521
|
},
|
|
520
522
|
[t, n]
|
|
521
523
|
);
|
|
522
|
-
return
|
|
523
|
-
},
|
|
524
|
-
overflow-y: ${
|
|
524
|
+
return A("scroll", r, t.current, () => t.current && e), A("touchstart", i, t.current, () => t.current && e), A("touchmove", u, t.current, () => t.current && e), e ? [In, t] : ["", t];
|
|
525
|
+
}, In = `
|
|
526
|
+
overflow-y: ${Qe() === Me.Chrome || Qe() === Me.EdgeChromium ? "overlay" : "auto"};
|
|
525
527
|
overflow-x: hidden;
|
|
526
528
|
-ms-overflow-style: none; /* IE 10+ */
|
|
527
529
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -548,42 +550,42 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
548
550
|
background-color: #7F7F7F;
|
|
549
551
|
}
|
|
550
552
|
}
|
|
551
|
-
`,
|
|
552
|
-
const [e, t] =
|
|
553
|
+
`, On = () => {
|
|
554
|
+
const [e, t] = E(null), n = I(), o = K();
|
|
553
555
|
return w(() => {
|
|
554
556
|
n.get("settings").then((r) => {
|
|
555
557
|
o.current && t(r);
|
|
556
558
|
});
|
|
557
559
|
}, [o]), e;
|
|
558
|
-
},
|
|
559
|
-
const [t, n] =
|
|
560
|
+
}, Es = On, Wn = (e = !1) => {
|
|
561
|
+
const [t, n] = E(e), o = _((r) => {
|
|
560
562
|
n(typeof r == "boolean" ? r : (i) => !i);
|
|
561
563
|
}, []);
|
|
562
564
|
return [t, o];
|
|
563
|
-
},
|
|
564
|
-
const t = I(), n =
|
|
565
|
+
}, pt = Wn, ks = (e) => {
|
|
566
|
+
const t = I(), n = oe(), o = t.get("widgetDOMElement"), [r, i] = E(null), [a, l] = E(null), u = K();
|
|
565
567
|
w(() => {
|
|
566
568
|
if (n && u.current) {
|
|
567
569
|
const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
|
|
568
570
|
if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
|
|
569
571
|
e();
|
|
570
572
|
else {
|
|
571
|
-
const d = (
|
|
573
|
+
const d = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), h = d(p == null ? void 0 : p.id);
|
|
572
574
|
h && i(h);
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
+
const y = d(m == null ? void 0 : m.id);
|
|
576
|
+
y && l(y);
|
|
575
577
|
}
|
|
576
578
|
}
|
|
577
579
|
}, [n, t, u]);
|
|
578
|
-
const c =
|
|
580
|
+
const c = _(
|
|
579
581
|
(m) => {
|
|
580
582
|
u.current && (m.target === r || m.target === a) && e();
|
|
581
583
|
},
|
|
582
584
|
[e, u, r, a]
|
|
583
585
|
);
|
|
584
|
-
|
|
585
|
-
},
|
|
586
|
-
const r =
|
|
586
|
+
A("transitionend", c, r), A("transitionend", c, a);
|
|
587
|
+
}, Zn = (e, t, n = [], o) => {
|
|
588
|
+
const r = _n(o);
|
|
587
589
|
return w(() => {
|
|
588
590
|
if (r) {
|
|
589
591
|
const i = r.subscribe(e, t);
|
|
@@ -592,21 +594,21 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
592
594
|
};
|
|
593
595
|
}
|
|
594
596
|
}, [r].concat(n)), (i) => r == null ? void 0 : r.dispatch(e, i);
|
|
595
|
-
},
|
|
596
|
-
const n =
|
|
597
|
+
}, we = Zn, jn = (e, t) => {
|
|
598
|
+
const n = we("widget:menu-toggled", (o, r) => {
|
|
597
599
|
r !== e && t();
|
|
598
600
|
});
|
|
599
601
|
return () => n(e);
|
|
600
|
-
},
|
|
602
|
+
}, Be = jn, An = (o) => {
|
|
601
603
|
var r = o, { className: e, children: t } = r, n = S(r, ["className", "children"]);
|
|
602
604
|
return /* @__PURE__ */ s.createElement(
|
|
603
605
|
"span",
|
|
604
606
|
f({
|
|
605
607
|
className: M(e, "humany-text")
|
|
606
|
-
},
|
|
608
|
+
}, V(n)),
|
|
607
609
|
t
|
|
608
610
|
);
|
|
609
|
-
},
|
|
611
|
+
}, Pe = An, ft = (e) => L`
|
|
610
612
|
display: flex;
|
|
611
613
|
justify-content: center;
|
|
612
614
|
flex-direction: column;
|
|
@@ -615,7 +617,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
615
617
|
border: ${e.theme.border};
|
|
616
618
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
617
619
|
${e["data-loading"] && "min-height: 150px;"}
|
|
618
|
-
`,
|
|
620
|
+
`, Fn = (e) => {
|
|
619
621
|
var t, n, o;
|
|
620
622
|
return L`
|
|
621
623
|
cursor: pointer;
|
|
@@ -627,11 +629,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
627
629
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
628
630
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
629
631
|
`;
|
|
630
|
-
},
|
|
632
|
+
}, Ls = (e) => {
|
|
631
633
|
var a;
|
|
632
634
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: i } = e;
|
|
633
635
|
return L`
|
|
634
|
-
${
|
|
636
|
+
${Fn(e)}
|
|
635
637
|
border: 1px solid ${o ? n : t};
|
|
636
638
|
background-color: ${o ? t : n};
|
|
637
639
|
|
|
@@ -661,27 +663,27 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
661
663
|
}
|
|
662
664
|
|
|
663
665
|
&:focus-visible {
|
|
664
|
-
${
|
|
666
|
+
${Q(e)};
|
|
665
667
|
}
|
|
666
668
|
`}
|
|
667
669
|
`;
|
|
668
|
-
},
|
|
670
|
+
}, Q = (e) => {
|
|
669
671
|
var t, n, o;
|
|
670
672
|
return L`
|
|
671
673
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
672
674
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
673
675
|
border-color: transparent;
|
|
674
676
|
`;
|
|
675
|
-
},
|
|
676
|
-
${
|
|
677
|
+
}, Kn = (e) => L`
|
|
678
|
+
${Q(e)}
|
|
677
679
|
text-decoration: underline;
|
|
678
|
-
`,
|
|
680
|
+
`, Ms = (e) => {
|
|
679
681
|
var t;
|
|
680
682
|
return L`
|
|
681
|
-
${
|
|
683
|
+
${Q(e)}
|
|
682
684
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
683
685
|
`;
|
|
684
|
-
},
|
|
686
|
+
}, Ve = C(be)`
|
|
685
687
|
position: absolute;
|
|
686
688
|
top: ${(e) => {
|
|
687
689
|
var t;
|
|
@@ -701,7 +703,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
701
703
|
}
|
|
702
704
|
|
|
703
705
|
&:focus-visible {
|
|
704
|
-
${
|
|
706
|
+
${Q}
|
|
705
707
|
padding: ${(e) => {
|
|
706
708
|
var t;
|
|
707
709
|
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
@@ -709,7 +711,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
709
711
|
height: 15px;
|
|
710
712
|
box-sizing: content-box;
|
|
711
713
|
}
|
|
712
|
-
`,
|
|
714
|
+
`, Ge = C(Pe)`
|
|
713
715
|
font-size: ${(e) => {
|
|
714
716
|
var t;
|
|
715
717
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -720,7 +722,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
720
722
|
var t;
|
|
721
723
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
722
724
|
}};
|
|
723
|
-
`,
|
|
725
|
+
`, Un = (e) => {
|
|
724
726
|
var t;
|
|
725
727
|
return L`
|
|
726
728
|
padding: 0;
|
|
@@ -742,11 +744,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
742
744
|
margin: 0;
|
|
743
745
|
}
|
|
744
746
|
`;
|
|
745
|
-
},
|
|
747
|
+
}, Ss = (e) => {
|
|
746
748
|
var t, n, o, r;
|
|
747
749
|
return L`
|
|
748
750
|
> div {
|
|
749
|
-
${
|
|
751
|
+
${pe(e)(
|
|
750
752
|
"> h1",
|
|
751
753
|
L`
|
|
752
754
|
margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
@@ -758,9 +760,9 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
758
760
|
)}
|
|
759
761
|
}
|
|
760
762
|
> ul {
|
|
761
|
-
${
|
|
763
|
+
${Un(e)}
|
|
762
764
|
}
|
|
763
|
-
${
|
|
765
|
+
${pe(e)(
|
|
764
766
|
"h1",
|
|
765
767
|
L`
|
|
766
768
|
display: flex;
|
|
@@ -778,7 +780,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
778
780
|
`
|
|
779
781
|
)}
|
|
780
782
|
`;
|
|
781
|
-
},
|
|
783
|
+
}, Rs = (e) => {
|
|
782
784
|
var t, n, o, r, i, a;
|
|
783
785
|
return L`
|
|
784
786
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -807,7 +809,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
807
809
|
a {
|
|
808
810
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
809
811
|
&:focus-visible {
|
|
810
|
-
${
|
|
812
|
+
${Kn(e)};
|
|
811
813
|
}
|
|
812
814
|
}
|
|
813
815
|
|
|
@@ -833,19 +835,19 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
833
835
|
margin: 0;
|
|
834
836
|
}
|
|
835
837
|
`;
|
|
836
|
-
},
|
|
838
|
+
}, Yn = ({
|
|
837
839
|
elementId: e = "humany-portal-elements",
|
|
838
840
|
parent: t = document.body,
|
|
839
841
|
children: n
|
|
840
842
|
}) => {
|
|
841
|
-
const [o] =
|
|
843
|
+
const [o] = E(() => {
|
|
842
844
|
const r = document.getElementById(e) || document.createElement("div");
|
|
843
845
|
return r.id = e, r;
|
|
844
846
|
});
|
|
845
847
|
return w(() => (t.appendChild(o), () => {
|
|
846
848
|
o.childElementCount <= 1 && t.removeChild(o);
|
|
847
|
-
}), [o]),
|
|
848
|
-
},
|
|
849
|
+
}), [o]), At(n, o);
|
|
850
|
+
}, ie = Yn, qn = (l) => {
|
|
849
851
|
var u = l, {
|
|
850
852
|
text: e = "",
|
|
851
853
|
backgroundSize: t = "contain",
|
|
@@ -942,7 +944,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
942
944
|
case "caret-left":
|
|
943
945
|
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" }));
|
|
944
946
|
case "caret-up":
|
|
945
|
-
return /* @__PURE__ */ s.createElement(
|
|
947
|
+
return /* @__PURE__ */ s.createElement(Xn, f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
946
948
|
case "caret-down":
|
|
947
949
|
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
948
950
|
case "back":
|
|
@@ -1328,7 +1330,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
1328
1330
|
}
|
|
1329
1331
|
case "FontAwesome":
|
|
1330
1332
|
return /* @__PURE__ */ s.createElement(
|
|
1331
|
-
|
|
1333
|
+
Co,
|
|
1332
1334
|
f({
|
|
1333
1335
|
className: i,
|
|
1334
1336
|
faIcon: m,
|
|
@@ -1346,9 +1348,9 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
1346
1348
|
e.substring(0, 2)
|
|
1347
1349
|
) : null;
|
|
1348
1350
|
}
|
|
1349
|
-
},
|
|
1351
|
+
}, Xn = C.svg`
|
|
1350
1352
|
transform: rotate(180deg);
|
|
1351
|
-
`,
|
|
1353
|
+
`, ae = qn, Qn = {
|
|
1352
1354
|
h1: "h1",
|
|
1353
1355
|
h2: "h2",
|
|
1354
1356
|
h3: "h3",
|
|
@@ -1357,12 +1359,12 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
|
|
|
1357
1359
|
h6: "h6",
|
|
1358
1360
|
p: "p",
|
|
1359
1361
|
span: "span"
|
|
1360
|
-
},
|
|
1361
|
-
const { typographyVariantMapping: r = {} } =
|
|
1362
|
-
return /* @__PURE__ */ s.createElement(
|
|
1363
|
-
},
|
|
1364
|
-
var
|
|
1365
|
-
const
|
|
1362
|
+
}, Gn = ({ variant: e, component: t, className: n, children: o }) => {
|
|
1363
|
+
const { typographyVariantMapping: r = {} } = Ln(), i = f(f({}, Qn), r), a = t || i[e] || "span";
|
|
1364
|
+
return /* @__PURE__ */ s.createElement(Jn, { className: n, as: a }, o);
|
|
1365
|
+
}, Jn = C.span``, re = Gn;
|
|
1366
|
+
var eo = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(eo || {});
|
|
1367
|
+
const to = 300, no = ({
|
|
1366
1368
|
className: e,
|
|
1367
1369
|
children: t,
|
|
1368
1370
|
header: n,
|
|
@@ -1374,32 +1376,32 @@ const Yn = 300, Un = ({
|
|
|
1374
1376
|
type: "slide-in-bottom"
|
|
1375
1377
|
}
|
|
1376
1378
|
}) => {
|
|
1377
|
-
const { duration: u =
|
|
1379
|
+
const { duration: u = to } = l, c = R(), m = R(), [p, d] = ht(!0), [h, y] = pt(), x = dt(h), v = R(se());
|
|
1378
1380
|
w(() => {
|
|
1379
1381
|
o && o(h);
|
|
1380
1382
|
}, [h]);
|
|
1381
|
-
const
|
|
1383
|
+
const b = te("Escape");
|
|
1382
1384
|
w(() => {
|
|
1383
|
-
|
|
1384
|
-
}, [
|
|
1385
|
+
b && y(!1);
|
|
1386
|
+
}, [b]), A(
|
|
1385
1387
|
"click",
|
|
1386
1388
|
(H) => {
|
|
1387
|
-
const { target:
|
|
1388
|
-
!m.current || !d.current || !
|
|
1389
|
+
const { target: T } = H;
|
|
1390
|
+
!m.current || !d.current || !T || m.current !== T && d.current !== T && !d.current.contains(T) && !m.current.contains(T) && y(!1);
|
|
1389
1391
|
},
|
|
1390
1392
|
window
|
|
1391
1393
|
);
|
|
1392
|
-
const g =
|
|
1393
|
-
|
|
1394
|
+
const g = Be(v.current, () => {
|
|
1395
|
+
y(!1);
|
|
1394
1396
|
});
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
+
we("router:changed", () => {
|
|
1398
|
+
y(!1);
|
|
1397
1399
|
}), w(() => {
|
|
1398
|
-
h && c.current ? c.current.focus() : !h && m.current &&
|
|
1400
|
+
h && c.current ? c.current.focus() : !h && m.current && x && m.current.focus();
|
|
1399
1401
|
}, [h, c.current, m.current]);
|
|
1400
|
-
const z =
|
|
1402
|
+
const z = co[l.type];
|
|
1401
1403
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
1402
|
-
|
|
1404
|
+
at,
|
|
1403
1405
|
{
|
|
1404
1406
|
in: h,
|
|
1405
1407
|
className: "humany-drawer-transition",
|
|
@@ -1407,7 +1409,7 @@ const Yn = 300, Un = ({
|
|
|
1407
1409
|
unmountOnExit: !0,
|
|
1408
1410
|
timeout: u
|
|
1409
1411
|
},
|
|
1410
|
-
/* @__PURE__ */ s.createElement(
|
|
1412
|
+
/* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
|
|
1411
1413
|
z,
|
|
1412
1414
|
{
|
|
1413
1415
|
duration: u,
|
|
@@ -1415,34 +1417,34 @@ const Yn = 300, Un = ({
|
|
|
1415
1417
|
className: M(
|
|
1416
1418
|
e,
|
|
1417
1419
|
"humany-drawer",
|
|
1418
|
-
`humany-drawer-${
|
|
1420
|
+
`humany-drawer-${v.current}`
|
|
1419
1421
|
),
|
|
1420
1422
|
clientHeight: document.body.clientHeight,
|
|
1421
1423
|
css: p,
|
|
1422
1424
|
ref: d
|
|
1423
1425
|
},
|
|
1424
1426
|
/* @__PURE__ */ s.createElement(
|
|
1425
|
-
|
|
1427
|
+
Ve,
|
|
1426
1428
|
{
|
|
1427
|
-
onClick: () =>
|
|
1429
|
+
onClick: () => y(!1),
|
|
1428
1430
|
tabIndex: 0,
|
|
1429
1431
|
ref: c,
|
|
1430
1432
|
"aria-label": a
|
|
1431
1433
|
},
|
|
1432
|
-
/* @__PURE__ */ s.createElement(
|
|
1434
|
+
/* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
|
|
1433
1435
|
),
|
|
1434
|
-
!!n && /* @__PURE__ */ s.createElement(
|
|
1436
|
+
!!n && /* @__PURE__ */ s.createElement(oo, { variant: "h1", className: "humany-drawer-header" }, n),
|
|
1435
1437
|
t
|
|
1436
1438
|
))
|
|
1437
1439
|
), s.cloneElement(r, {
|
|
1438
1440
|
onClick: (H) => {
|
|
1439
|
-
|
|
1441
|
+
y(), g();
|
|
1440
1442
|
},
|
|
1441
1443
|
ref: m,
|
|
1442
1444
|
"aria-label": r.props.title,
|
|
1443
1445
|
"aria-expanded": h
|
|
1444
1446
|
}));
|
|
1445
|
-
},
|
|
1447
|
+
}, _s = no, xe = C.div`
|
|
1446
1448
|
font-family: ${(e) => {
|
|
1447
1449
|
var t;
|
|
1448
1450
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1459,7 +1461,7 @@ const Yn = 300, Un = ({
|
|
|
1459
1461
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1460
1462
|
background: #ffffff;
|
|
1461
1463
|
${(e) => e.css && e.css}
|
|
1462
|
-
`,
|
|
1464
|
+
`, oo = C(re)`
|
|
1463
1465
|
padding: ${(e) => {
|
|
1464
1466
|
var t;
|
|
1465
1467
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1482,11 +1484,11 @@ const Yn = 300, Un = ({
|
|
|
1482
1484
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1483
1485
|
}};
|
|
1484
1486
|
line-height: 1.2em;
|
|
1485
|
-
`,
|
|
1487
|
+
`, $e = (e) => L`
|
|
1486
1488
|
transition: ${e.duration}ms;
|
|
1487
|
-
`,
|
|
1489
|
+
`, ro = C(xe)`
|
|
1488
1490
|
max-height: 0;
|
|
1489
|
-
${
|
|
1491
|
+
${$e}
|
|
1490
1492
|
|
|
1491
1493
|
&.humany-drawer-transition-enter {
|
|
1492
1494
|
max-height: 0;
|
|
@@ -1501,8 +1503,8 @@ const Yn = 300, Un = ({
|
|
|
1501
1503
|
&.humany-drawer-transition-exit-done {
|
|
1502
1504
|
max-height: 0;
|
|
1503
1505
|
}
|
|
1504
|
-
`,
|
|
1505
|
-
${
|
|
1506
|
+
`, so = C(xe)`
|
|
1507
|
+
${$e}
|
|
1506
1508
|
transform: translateX(100%);
|
|
1507
1509
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1508
1510
|
|
|
@@ -1519,8 +1521,8 @@ const Yn = 300, Un = ({
|
|
|
1519
1521
|
&.humany-drawer-transition-exit-done {
|
|
1520
1522
|
transform: translateX(100%);
|
|
1521
1523
|
}
|
|
1522
|
-
`,
|
|
1523
|
-
${
|
|
1524
|
+
`, io = C(xe)`
|
|
1525
|
+
${$e}
|
|
1524
1526
|
transform: translateX(-100%);
|
|
1525
1527
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1526
1528
|
|
|
@@ -1537,8 +1539,8 @@ const Yn = 300, Un = ({
|
|
|
1537
1539
|
&.humany-drawer-transition-exit-done {
|
|
1538
1540
|
transform: translateX(-100%);
|
|
1539
1541
|
}
|
|
1540
|
-
`,
|
|
1541
|
-
${
|
|
1542
|
+
`, ao = C(xe)`
|
|
1543
|
+
${$e}
|
|
1542
1544
|
bottom: unset;
|
|
1543
1545
|
top: 0;
|
|
1544
1546
|
height: 0;
|
|
@@ -1556,13 +1558,13 @@ const Yn = 300, Un = ({
|
|
|
1556
1558
|
&.humany-drawer-transition-exit-done {
|
|
1557
1559
|
height: 0;
|
|
1558
1560
|
}
|
|
1559
|
-
`,
|
|
1560
|
-
["slide-in-bottom"]:
|
|
1561
|
-
["slide-in-right"]:
|
|
1562
|
-
["slide-in-left"]:
|
|
1563
|
-
["slide-in-top"]:
|
|
1564
|
-
},
|
|
1565
|
-
const [o, r] =
|
|
1561
|
+
`, co = {
|
|
1562
|
+
["slide-in-bottom"]: ro,
|
|
1563
|
+
["slide-in-right"]: so,
|
|
1564
|
+
["slide-in-left"]: io,
|
|
1565
|
+
["slide-in-top"]: ao
|
|
1566
|
+
}, lo = (e, t, n) => {
|
|
1567
|
+
const [o, r] = E(0), [i, a] = E(0), l = _(
|
|
1566
1568
|
(u, c) => {
|
|
1567
1569
|
if (u.preventDefault(), c) {
|
|
1568
1570
|
const m = c.getBoundingClientRect();
|
|
@@ -1580,36 +1582,36 @@ const Yn = 300, Un = ({
|
|
|
1580
1582
|
};
|
|
1581
1583
|
u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && r(c.x), c.y !== i && a(c.y);
|
|
1582
1584
|
}, [n, e, t]), [{ x: o, y: i }, l];
|
|
1583
|
-
},
|
|
1585
|
+
}, gt = lo, uo = s.forwardRef(
|
|
1584
1586
|
(a, i) => {
|
|
1585
1587
|
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, r = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1586
1588
|
const u = R(), c = R(), m = R();
|
|
1587
|
-
|
|
1588
|
-
const p = R(
|
|
1589
|
+
Te(i, () => m.current, [m.current]);
|
|
1590
|
+
const p = R(se()), [d, h] = E(!1), y = dt(d), [{ x, y: v }, b] = gt(d, p.current, m.current), g = te("Escape");
|
|
1589
1591
|
w(() => {
|
|
1590
1592
|
g && h(!1);
|
|
1591
1593
|
}, [g]), w(() => {
|
|
1592
|
-
d && u.current ? u.current.focus() : !d && c.current &&
|
|
1593
|
-
}, [d, u.current, c.current]),
|
|
1594
|
+
d && u.current ? u.current.focus() : !d && c.current && y && c.current.focus();
|
|
1595
|
+
}, [d, u.current, c.current]), A(
|
|
1594
1596
|
"click",
|
|
1595
|
-
(
|
|
1596
|
-
const { target:
|
|
1597
|
-
!m.current || !
|
|
1597
|
+
(T) => {
|
|
1598
|
+
const { target: Z } = T;
|
|
1599
|
+
!m.current || !Z || m.current !== Z && !m.current.contains(Z) && h(!1);
|
|
1598
1600
|
},
|
|
1599
1601
|
window
|
|
1600
|
-
),
|
|
1602
|
+
), we("router:changed", () => {
|
|
1601
1603
|
h(!1);
|
|
1602
1604
|
});
|
|
1603
|
-
const z =
|
|
1605
|
+
const z = Be(p.current, () => {
|
|
1604
1606
|
h(!1);
|
|
1605
|
-
}), H =
|
|
1606
|
-
(
|
|
1607
|
-
|
|
1607
|
+
}), H = _(
|
|
1608
|
+
(T) => {
|
|
1609
|
+
T.stopPropagation(), b(T, c.current), h(!d), z();
|
|
1608
1610
|
},
|
|
1609
|
-
[z,
|
|
1611
|
+
[z, b, h]
|
|
1610
1612
|
);
|
|
1611
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null, d && /* @__PURE__ */ s.createElement(
|
|
1612
|
-
|
|
1613
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, d && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
|
|
1614
|
+
mo,
|
|
1613
1615
|
k(f({
|
|
1614
1616
|
className: M(
|
|
1615
1617
|
"humany-dropdown",
|
|
@@ -1617,19 +1619,19 @@ const Yn = 300, Un = ({
|
|
|
1617
1619
|
e
|
|
1618
1620
|
)
|
|
1619
1621
|
}, r), {
|
|
1620
|
-
x
|
|
1621
|
-
y:
|
|
1622
|
+
x,
|
|
1623
|
+
y: v,
|
|
1622
1624
|
ref: m
|
|
1623
1625
|
}),
|
|
1624
1626
|
/* @__PURE__ */ s.createElement(
|
|
1625
|
-
|
|
1627
|
+
Ve,
|
|
1626
1628
|
{
|
|
1627
1629
|
onClick: () => h(!1),
|
|
1628
1630
|
tabIndex: 0,
|
|
1629
1631
|
ref: u,
|
|
1630
1632
|
"aria-label": o
|
|
1631
1633
|
},
|
|
1632
|
-
/* @__PURE__ */ s.createElement(
|
|
1634
|
+
/* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
|
|
1633
1635
|
),
|
|
1634
1636
|
t
|
|
1635
1637
|
)), s.cloneElement(n, {
|
|
@@ -1639,8 +1641,8 @@ const Yn = 300, Un = ({
|
|
|
1639
1641
|
"aria-expanded": d
|
|
1640
1642
|
}));
|
|
1641
1643
|
}
|
|
1642
|
-
),
|
|
1643
|
-
${
|
|
1644
|
+
), Ts = uo, mo = C.div`
|
|
1645
|
+
${ft}
|
|
1644
1646
|
padding: ${(e) => {
|
|
1645
1647
|
var t;
|
|
1646
1648
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -1654,53 +1656,53 @@ const Yn = 300, Un = ({
|
|
|
1654
1656
|
let t = "";
|
|
1655
1657
|
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, t;
|
|
1656
1658
|
}};
|
|
1657
|
-
`,
|
|
1659
|
+
`, ho = (t) => {
|
|
1658
1660
|
var e = S(t, []);
|
|
1659
|
-
return /* @__PURE__ */ s.createElement(
|
|
1660
|
-
},
|
|
1661
|
+
return /* @__PURE__ */ s.createElement(fo, f({}, e));
|
|
1662
|
+
}, po = ho, fo = C.div`
|
|
1661
1663
|
display: none;
|
|
1662
|
-
`,
|
|
1664
|
+
`, zs = P(
|
|
1663
1665
|
(a, i) => {
|
|
1664
1666
|
var l = a, { children: e, columns: t, gap: n, className: o } = l, r = S(l, ["children", "columns", "gap", "className"]);
|
|
1665
1667
|
return /* @__PURE__ */ s.createElement(
|
|
1666
|
-
|
|
1668
|
+
go,
|
|
1667
1669
|
k(f(f({
|
|
1668
1670
|
className: M(o, "humany-grid"),
|
|
1669
1671
|
"data-columns": t,
|
|
1670
1672
|
"data-gap": n
|
|
1671
|
-
},
|
|
1673
|
+
}, tn(r)), V(r)), {
|
|
1672
1674
|
ref: i
|
|
1673
1675
|
}),
|
|
1674
1676
|
e
|
|
1675
1677
|
);
|
|
1676
1678
|
}
|
|
1677
|
-
),
|
|
1679
|
+
), go = C.div`
|
|
1678
1680
|
display: grid;
|
|
1679
1681
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1680
1682
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1681
1683
|
justify-content: center;
|
|
1682
1684
|
grid-auto-rows: max-content;
|
|
1683
|
-
${
|
|
1684
|
-
`,
|
|
1685
|
+
${en}
|
|
1686
|
+
`, yt = P(
|
|
1685
1687
|
(i, r) => {
|
|
1686
1688
|
var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
|
|
1687
|
-
const l = I(), [u, c] =
|
|
1689
|
+
const l = I(), [u, c] = E();
|
|
1688
1690
|
return w(() => {
|
|
1689
|
-
const m =
|
|
1691
|
+
const m = sn(l, n), p = k(f(f({}, m), e), {
|
|
1690
1692
|
transform: f(f({}, m.transform), e == null ? void 0 : e.transform)
|
|
1691
|
-
}), d =
|
|
1693
|
+
}), d = on(n, p);
|
|
1692
1694
|
c(d);
|
|
1693
1695
|
}, [n, e]), /* @__PURE__ */ s.createElement(
|
|
1694
1696
|
"div",
|
|
1695
1697
|
k(f({
|
|
1696
1698
|
className: M(t, "humany-html")
|
|
1697
|
-
},
|
|
1699
|
+
}, V(o)), {
|
|
1698
1700
|
ref: r
|
|
1699
1701
|
}),
|
|
1700
1702
|
u
|
|
1701
1703
|
);
|
|
1702
1704
|
}
|
|
1703
|
-
),
|
|
1705
|
+
), yo = (i) => {
|
|
1704
1706
|
var a = i, {
|
|
1705
1707
|
faIcon: e,
|
|
1706
1708
|
title: t,
|
|
@@ -1718,9 +1720,9 @@ const Yn = 300, Un = ({
|
|
|
1718
1720
|
className: M(n, `fa fa-${e}`),
|
|
1719
1721
|
title: t,
|
|
1720
1722
|
role: o
|
|
1721
|
-
},
|
|
1723
|
+
}, V(r))
|
|
1722
1724
|
);
|
|
1723
|
-
},
|
|
1725
|
+
}, Co = yo, Ds = P(
|
|
1724
1726
|
(p, m) => {
|
|
1725
1727
|
var d = p, {
|
|
1726
1728
|
className: e = "",
|
|
@@ -1747,39 +1749,39 @@ const Yn = 300, Un = ({
|
|
|
1747
1749
|
"disabled",
|
|
1748
1750
|
"type"
|
|
1749
1751
|
]);
|
|
1750
|
-
const [h,
|
|
1751
|
-
|
|
1752
|
+
const [h, y] = E(t), x = R();
|
|
1753
|
+
Te(m, () => x.current), w(() => {
|
|
1752
1754
|
var g;
|
|
1753
|
-
t && ((g =
|
|
1754
|
-
}, [t, m,
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1757
|
-
},
|
|
1755
|
+
t && ((g = x == null ? void 0 : x.current) == null || g.focus());
|
|
1756
|
+
}, [t, m, x]);
|
|
1757
|
+
const v = (g, z) => {
|
|
1758
|
+
y(g), n && n(g), i && g && z.target.select();
|
|
1759
|
+
}, b = k(f({}, V(c)), {
|
|
1758
1760
|
disabled: l,
|
|
1759
1761
|
autoFocus: t,
|
|
1760
1762
|
type: u,
|
|
1761
1763
|
onKeyDown: (g) => {
|
|
1762
1764
|
g.key === "Enter" && h && o(g), g.key === "Escape" && h && r(g);
|
|
1763
1765
|
},
|
|
1764
|
-
onFocus: (g) =>
|
|
1765
|
-
onBlur: (g) =>
|
|
1766
|
+
onFocus: (g) => v(!0, g),
|
|
1767
|
+
onBlur: (g) => v(!1, g),
|
|
1766
1768
|
onChange: (g) => a(g.target.value || ""),
|
|
1767
1769
|
className: M(e, "humany-input"),
|
|
1768
1770
|
"data-type": u
|
|
1769
1771
|
});
|
|
1770
1772
|
return u !== "textarea" ? /* @__PURE__ */ s.createElement(
|
|
1771
1773
|
"input",
|
|
1772
|
-
k(f({},
|
|
1773
|
-
ref:
|
|
1774
|
+
k(f({}, b), {
|
|
1775
|
+
ref: x
|
|
1774
1776
|
})
|
|
1775
1777
|
) : /* @__PURE__ */ s.createElement(
|
|
1776
1778
|
"textarea",
|
|
1777
|
-
k(f({},
|
|
1778
|
-
ref:
|
|
1779
|
+
k(f({}, b), {
|
|
1780
|
+
ref: x
|
|
1779
1781
|
})
|
|
1780
1782
|
);
|
|
1781
1783
|
}
|
|
1782
|
-
),
|
|
1784
|
+
), vo = P(
|
|
1783
1785
|
(a, i) => {
|
|
1784
1786
|
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, r = S(l, ["className", "items", "renderItem", "renderLi"]);
|
|
1785
1787
|
return /* @__PURE__ */ s.createElement(
|
|
@@ -1787,7 +1789,7 @@ const Yn = 300, Un = ({
|
|
|
1787
1789
|
k(f({
|
|
1788
1790
|
className: M(e, "humany-list"),
|
|
1789
1791
|
"data-item-count": t.length
|
|
1790
|
-
},
|
|
1792
|
+
}, V(r)), {
|
|
1791
1793
|
ref: i
|
|
1792
1794
|
}),
|
|
1793
1795
|
t.map(
|
|
@@ -1795,24 +1797,24 @@ const Yn = 300, Un = ({
|
|
|
1795
1797
|
)
|
|
1796
1798
|
);
|
|
1797
1799
|
}
|
|
1798
|
-
),
|
|
1800
|
+
), bo = P(
|
|
1799
1801
|
(u, l) => {
|
|
1800
1802
|
var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1801
1803
|
return /* @__PURE__ */ s.createElement(
|
|
1802
1804
|
"div",
|
|
1803
1805
|
k(f({
|
|
1804
1806
|
className: M(o, "humany-paragraph")
|
|
1805
|
-
},
|
|
1807
|
+
}, V(a)), {
|
|
1806
1808
|
ref: l
|
|
1807
1809
|
}),
|
|
1808
|
-
n ? /* @__PURE__ */ s.createElement(
|
|
1809
|
-
t ? /* @__PURE__ */ s.createElement(
|
|
1810
|
-
e ? /* @__PURE__ */ s.createElement(
|
|
1810
|
+
n ? /* @__PURE__ */ s.createElement(re, { variant: "h1" }, i ? /* @__PURE__ */ s.createElement(ae, { symbol: i }) : null, n) : null,
|
|
1811
|
+
t ? /* @__PURE__ */ s.createElement(yt, { html: t, htmlParseInstruction: r }) : null,
|
|
1812
|
+
e ? /* @__PURE__ */ s.createElement(Pe, null, e) : null
|
|
1811
1813
|
);
|
|
1812
1814
|
}
|
|
1813
|
-
),
|
|
1815
|
+
), wo = P(
|
|
1814
1816
|
(h, d) => {
|
|
1815
|
-
var
|
|
1817
|
+
var y = h, {
|
|
1816
1818
|
header: e,
|
|
1817
1819
|
customHeader: t,
|
|
1818
1820
|
text: n,
|
|
@@ -1824,7 +1826,7 @@ const Yn = 300, Un = ({
|
|
|
1824
1826
|
renderItem: u,
|
|
1825
1827
|
renderLi: c,
|
|
1826
1828
|
ulProps: m
|
|
1827
|
-
} =
|
|
1829
|
+
} = y, p = S(y, [
|
|
1828
1830
|
"header",
|
|
1829
1831
|
"customHeader",
|
|
1830
1832
|
"text",
|
|
@@ -1842,15 +1844,15 @@ const Yn = 300, Un = ({
|
|
|
1842
1844
|
k(f({
|
|
1843
1845
|
className: M(r, "humany-item-list"),
|
|
1844
1846
|
"data-item-count": l.length
|
|
1845
|
-
},
|
|
1847
|
+
}, V(p)), {
|
|
1846
1848
|
ref: d
|
|
1847
1849
|
}),
|
|
1848
|
-
t || (e || n || o ? /* @__PURE__ */ s.createElement(
|
|
1849
|
-
l.length ? /* @__PURE__ */ s.createElement(
|
|
1850
|
+
t || (e || n || o ? /* @__PURE__ */ s.createElement(bo, { symbol: a, header: e, text: n, html: o }) : null),
|
|
1851
|
+
l.length ? /* @__PURE__ */ s.createElement(vo, f({ items: l, renderItem: u, renderLi: c }, m)) : null,
|
|
1850
1852
|
i
|
|
1851
1853
|
);
|
|
1852
1854
|
}
|
|
1853
|
-
),
|
|
1855
|
+
), xo = ({
|
|
1854
1856
|
className: e = "",
|
|
1855
1857
|
tree: t,
|
|
1856
1858
|
renderItem: n,
|
|
@@ -1861,31 +1863,31 @@ const Yn = 300, Un = ({
|
|
|
1861
1863
|
liProps: l
|
|
1862
1864
|
}) => {
|
|
1863
1865
|
const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ s.createElement(
|
|
1864
|
-
|
|
1866
|
+
wo,
|
|
1865
1867
|
{
|
|
1866
1868
|
className: M(`humany-item-tree-level-${d}`),
|
|
1867
1869
|
items: p,
|
|
1868
1870
|
ulProps: a,
|
|
1869
1871
|
renderItem: (h) => {
|
|
1870
|
-
const { id:
|
|
1871
|
-
return !i && !
|
|
1872
|
+
const { id: y, selected: x, items: v, matches: b } = h, g = x && c(v);
|
|
1873
|
+
return !i && !b ? null : /* @__PURE__ */ s.createElement(
|
|
1872
1874
|
"li",
|
|
1873
|
-
k(f({},
|
|
1874
|
-
key:
|
|
1875
|
+
k(f({}, V(l)), {
|
|
1876
|
+
key: y,
|
|
1875
1877
|
className: "humany-item-tree-item"
|
|
1876
1878
|
}),
|
|
1877
1879
|
n && n(h, d, g),
|
|
1878
|
-
|
|
1880
|
+
v && (r || g) && m(v, d + 1)
|
|
1879
1881
|
);
|
|
1880
1882
|
}
|
|
1881
1883
|
}
|
|
1882
1884
|
);
|
|
1883
1885
|
return /* @__PURE__ */ s.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
|
|
1884
|
-
},
|
|
1886
|
+
}, Hs = xo, $o = P(
|
|
1885
1887
|
(u, l) => {
|
|
1886
1888
|
var c = u, { className: e, onClick: t = () => {
|
|
1887
1889
|
}, name: n = "", to: o = "", params: r = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1888
|
-
const m =
|
|
1890
|
+
const m = mt(), p = I();
|
|
1889
1891
|
if (!m)
|
|
1890
1892
|
return null;
|
|
1891
1893
|
let d = "";
|
|
@@ -1898,23 +1900,23 @@ const Yn = 300, Un = ({
|
|
|
1898
1900
|
ref: null
|
|
1899
1901
|
});
|
|
1900
1902
|
if (n) {
|
|
1901
|
-
if (!(m.routes || []).find((
|
|
1902
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1903
|
-
|
|
1903
|
+
if (!(m.routes || []).find((b) => b.name === n))
|
|
1904
|
+
return process.env.NODE_ENV !== "production" && Ee.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ s.createElement(
|
|
1905
|
+
ke,
|
|
1904
1906
|
k(f({}, h), {
|
|
1905
|
-
onClick: (
|
|
1906
|
-
t(
|
|
1907
|
+
onClick: (b) => {
|
|
1908
|
+
t(b), b.preventDefault(), process.env.NODE_ENV !== "production" && Ee.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
1907
1909
|
}
|
|
1908
1910
|
}),
|
|
1909
1911
|
i
|
|
1910
1912
|
);
|
|
1911
|
-
const
|
|
1913
|
+
const v = Object.keys(r).reduce((b, g) => (b[g] = typeof r[g] == "string" ? encodeURIComponent(r[g]) : r[g], b), {});
|
|
1912
1914
|
try {
|
|
1913
|
-
d = m.generate(n,
|
|
1914
|
-
} catch (
|
|
1915
|
-
return /* @__PURE__ */ s.createElement(
|
|
1915
|
+
d = m.generate(n, v || {});
|
|
1916
|
+
} catch (b) {
|
|
1917
|
+
return /* @__PURE__ */ s.createElement(ke, f({}, h), i);
|
|
1916
1918
|
}
|
|
1917
|
-
d && m.settings.mode && m.settings.mode ===
|
|
1919
|
+
d && m.settings.mode && m.settings.mode === qe.browser && d[0] !== "/" && (d = `/${d}`);
|
|
1918
1920
|
} else if (o && m.history)
|
|
1919
1921
|
d = m.history.createHref({
|
|
1920
1922
|
hash: "",
|
|
@@ -1923,18 +1925,18 @@ const Yn = 300, Un = ({
|
|
|
1923
1925
|
state: void 0
|
|
1924
1926
|
});
|
|
1925
1927
|
else
|
|
1926
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1928
|
+
return process.env.NODE_ENV !== "production" && Ee.warn(
|
|
1927
1929
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
1928
1930
|
), null;
|
|
1929
|
-
if (m.settings && m.settings.mode ===
|
|
1930
|
-
const
|
|
1931
|
-
d =
|
|
1931
|
+
if (m.settings && m.settings.mode === qe.scopedHash) {
|
|
1932
|
+
const y = p.get("$widget").name;
|
|
1933
|
+
d = Ft(d, y);
|
|
1932
1934
|
}
|
|
1933
|
-
return h.as ? /* @__PURE__ */ s.createElement(
|
|
1935
|
+
return h.as ? /* @__PURE__ */ s.createElement(Eo, k(f({}, h), { as: h.as }), i) : /* @__PURE__ */ s.createElement(ke, k(f({}, h), { to: d }), i);
|
|
1934
1936
|
}
|
|
1935
|
-
),
|
|
1936
|
-
(
|
|
1937
|
-
var
|
|
1937
|
+
), Eo = C.span``, Ne = P(
|
|
1938
|
+
(x, y) => {
|
|
1939
|
+
var v = x, {
|
|
1938
1940
|
className: e,
|
|
1939
1941
|
disabled: t = !1,
|
|
1940
1942
|
role: n = "link",
|
|
@@ -1950,7 +1952,7 @@ const Yn = 300, Un = ({
|
|
|
1950
1952
|
target: m,
|
|
1951
1953
|
routeName: p,
|
|
1952
1954
|
params: d
|
|
1953
|
-
} =
|
|
1955
|
+
} = v, h = S(v, [
|
|
1954
1956
|
"className",
|
|
1955
1957
|
"disabled",
|
|
1956
1958
|
"role",
|
|
@@ -1965,7 +1967,7 @@ const Yn = 300, Un = ({
|
|
|
1965
1967
|
"routeName",
|
|
1966
1968
|
"params"
|
|
1967
1969
|
]);
|
|
1968
|
-
const
|
|
1970
|
+
const b = {
|
|
1969
1971
|
title: a,
|
|
1970
1972
|
disabled: t,
|
|
1971
1973
|
role: n,
|
|
@@ -1988,36 +1990,36 @@ const Yn = 300, Un = ({
|
|
|
1988
1990
|
}
|
|
1989
1991
|
};
|
|
1990
1992
|
return p ? /* @__PURE__ */ s.createElement(
|
|
1991
|
-
|
|
1993
|
+
ko,
|
|
1992
1994
|
k(f(f({
|
|
1993
1995
|
name: p,
|
|
1994
1996
|
params: d
|
|
1995
|
-
},
|
|
1996
|
-
ref:
|
|
1997
|
+
}, b), V(h)), {
|
|
1998
|
+
ref: y
|
|
1997
1999
|
}),
|
|
1998
2000
|
c
|
|
1999
2001
|
) : /* @__PURE__ */ s.createElement(
|
|
2000
|
-
|
|
2002
|
+
Lo,
|
|
2001
2003
|
k(f(f({
|
|
2002
2004
|
href: u,
|
|
2003
2005
|
target: m
|
|
2004
|
-
},
|
|
2005
|
-
ref:
|
|
2006
|
+
}, b), V(h)), {
|
|
2007
|
+
ref: y
|
|
2006
2008
|
}),
|
|
2007
2009
|
c
|
|
2008
2010
|
);
|
|
2009
2011
|
}
|
|
2010
|
-
),
|
|
2012
|
+
), ko = C($o)`
|
|
2011
2013
|
${(e) => e.disabled ? `
|
|
2012
2014
|
pointer-events: none;
|
|
2013
2015
|
opacity: .7;
|
|
2014
2016
|
` : "cursor: pointer;"}
|
|
2015
|
-
`,
|
|
2017
|
+
`, Lo = C.a`
|
|
2016
2018
|
${(e) => e.disabled ? `
|
|
2017
2019
|
pointer-events: none;
|
|
2018
2020
|
opacity: .7;
|
|
2019
2021
|
` : "cursor: pointer;"}
|
|
2020
|
-
`,
|
|
2022
|
+
`, Mo = (i) => {
|
|
2021
2023
|
var a = i, {
|
|
2022
2024
|
visible: e,
|
|
2023
2025
|
duration: t = 500,
|
|
@@ -2030,14 +2032,14 @@ const Yn = 300, Un = ({
|
|
|
2030
2032
|
"children",
|
|
2031
2033
|
"onClick"
|
|
2032
2034
|
]);
|
|
2033
|
-
const l = R(), u =
|
|
2035
|
+
const l = R(), u = _(
|
|
2034
2036
|
(c) => {
|
|
2035
2037
|
c.target === l.current && o(c);
|
|
2036
2038
|
},
|
|
2037
2039
|
[o]
|
|
2038
2040
|
);
|
|
2039
2041
|
return /* @__PURE__ */ s.createElement(
|
|
2040
|
-
|
|
2042
|
+
at,
|
|
2041
2043
|
{
|
|
2042
2044
|
in: e,
|
|
2043
2045
|
className: "humany-overlay-transition",
|
|
@@ -2045,8 +2047,8 @@ const Yn = 300, Un = ({
|
|
|
2045
2047
|
unmountOnExit: !0,
|
|
2046
2048
|
timeout: t
|
|
2047
2049
|
},
|
|
2048
|
-
/* @__PURE__ */ s.createElement(
|
|
2049
|
-
|
|
2050
|
+
/* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
|
|
2051
|
+
So,
|
|
2050
2052
|
f({
|
|
2051
2053
|
className: "humany-overlay",
|
|
2052
2054
|
duration: t,
|
|
@@ -2056,7 +2058,7 @@ const Yn = 300, Un = ({
|
|
|
2056
2058
|
n
|
|
2057
2059
|
))
|
|
2058
2060
|
);
|
|
2059
|
-
},
|
|
2061
|
+
}, So = C.div`
|
|
2060
2062
|
background: rgba(0, 0, 0, 0.6);
|
|
2061
2063
|
min-width: 100%;
|
|
2062
2064
|
min-height: 100%;
|
|
@@ -2086,11 +2088,11 @@ const Yn = 300, Un = ({
|
|
|
2086
2088
|
&.humany-overlay-transition-exit-done {
|
|
2087
2089
|
opacity: 0;
|
|
2088
2090
|
}
|
|
2089
|
-
`,
|
|
2091
|
+
`, Ct = Mo, Ro = ot`
|
|
2090
2092
|
100% {
|
|
2091
2093
|
transform: rotate(360deg);
|
|
2092
2094
|
}
|
|
2093
|
-
`,
|
|
2095
|
+
`, _o = ot`
|
|
2094
2096
|
0% {
|
|
2095
2097
|
stroke-dasharray: 1, 200;
|
|
2096
2098
|
stroke-dashoffset: 0;
|
|
@@ -2103,8 +2105,8 @@ const Yn = 300, Un = ({
|
|
|
2103
2105
|
stroke-dasharray: 89, 200;
|
|
2104
2106
|
stroke-dashoffset: -124px;
|
|
2105
2107
|
}
|
|
2106
|
-
`,
|
|
2107
|
-
animation: ${
|
|
2108
|
+
`, To = C.svg`
|
|
2109
|
+
animation: ${Ro} 2s linear infinite;
|
|
2108
2110
|
height: 100%;
|
|
2109
2111
|
transform-origin: center center;
|
|
2110
2112
|
width: 100%;
|
|
@@ -2115,7 +2117,7 @@ const Yn = 300, Un = ({
|
|
|
2115
2117
|
right: 0;
|
|
2116
2118
|
margin: auto;
|
|
2117
2119
|
transition: 200ms ease-out opacity;
|
|
2118
|
-
`,
|
|
2120
|
+
`, zo = C.div`
|
|
2119
2121
|
position: absolute;
|
|
2120
2122
|
top: 0;
|
|
2121
2123
|
bottom: 0;
|
|
@@ -2133,7 +2135,7 @@ const Yn = 300, Un = ({
|
|
|
2133
2135
|
svg {
|
|
2134
2136
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2135
2137
|
}
|
|
2136
|
-
`,
|
|
2138
|
+
`, Do = C.div`
|
|
2137
2139
|
position: relative;
|
|
2138
2140
|
margin: 0 auto;
|
|
2139
2141
|
width: 100px;
|
|
@@ -2142,18 +2144,18 @@ const Yn = 300, Un = ({
|
|
|
2142
2144
|
display: block;
|
|
2143
2145
|
padding-top: 100%;
|
|
2144
2146
|
}
|
|
2145
|
-
`,
|
|
2147
|
+
`, Ho = C.circle`
|
|
2146
2148
|
stroke-dasharray: 1, 200;
|
|
2147
2149
|
stroke-dashoffset: 0;
|
|
2148
|
-
animation: ${
|
|
2150
|
+
animation: ${_o} 1.5s ease-in-out infinite;
|
|
2149
2151
|
stroke-linecap: round;
|
|
2150
2152
|
stroke: ${(e) => {
|
|
2151
2153
|
var t;
|
|
2152
2154
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2153
2155
|
}};
|
|
2154
2156
|
stroke-width: 2px;
|
|
2155
|
-
`,
|
|
2156
|
-
|
|
2157
|
+
`, Bo = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ s.createElement(zo, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ s.createElement(Do, { className: "humany-spinner" }, /* @__PURE__ */ s.createElement(To, { viewBox: "25 25 50 50" }, /* @__PURE__ */ s.createElement(
|
|
2158
|
+
Ho,
|
|
2157
2159
|
{
|
|
2158
2160
|
cx: "50",
|
|
2159
2161
|
cy: "50",
|
|
@@ -2162,7 +2164,7 @@ const Yn = 300, Un = ({
|
|
|
2162
2164
|
"stroke-width": "2",
|
|
2163
2165
|
"stroke-miterlimit": "10"
|
|
2164
2166
|
}
|
|
2165
|
-
)))),
|
|
2167
|
+
)))), Po = Bo, Vo = (r) => {
|
|
2166
2168
|
var i = r, {
|
|
2167
2169
|
zoomState: e,
|
|
2168
2170
|
image: t,
|
|
@@ -2172,20 +2174,20 @@ const Yn = 300, Un = ({
|
|
|
2172
2174
|
"image",
|
|
2173
2175
|
"changeZoom"
|
|
2174
2176
|
]);
|
|
2175
|
-
var
|
|
2176
|
-
const a = R(null), [l, u] =
|
|
2177
|
+
var b;
|
|
2178
|
+
const a = R(null), [l, u] = E(!1), [c, m] = E(!1), v = o.style || {}, { width: p, height: d } = v, h = S(v, ["width", "height"]), y = _(() => {
|
|
2177
2179
|
const g = a.current;
|
|
2178
2180
|
if (g) {
|
|
2179
|
-
const z = window.innerWidth / g.width, H = window.innerHeight / g.height,
|
|
2180
|
-
return H >= 1 && z >= 1 ? 1 :
|
|
2181
|
+
const z = window.innerWidth / g.width, H = window.innerHeight / g.height, T = Math.min(z, H);
|
|
2182
|
+
return H >= 1 && z >= 1 ? 1 : T;
|
|
2181
2183
|
}
|
|
2182
2184
|
return 1;
|
|
2183
|
-
}, [l, t.src]),
|
|
2185
|
+
}, [l, t.src]), x = he(() => {
|
|
2184
2186
|
const g = a.current;
|
|
2185
2187
|
if (g) {
|
|
2186
2188
|
if (!c) {
|
|
2187
2189
|
m(!0);
|
|
2188
|
-
const z =
|
|
2190
|
+
const z = y();
|
|
2189
2191
|
n(z);
|
|
2190
2192
|
}
|
|
2191
2193
|
return g.width >= g.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
|
|
@@ -2194,27 +2196,27 @@ const Yn = 300, Un = ({
|
|
|
2194
2196
|
}, [e, a, l, t.src]);
|
|
2195
2197
|
return w(() => (u(!1), function() {
|
|
2196
2198
|
m(!1);
|
|
2197
|
-
}), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
2198
|
-
|
|
2199
|
+
}), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(No, { loading: !l }), /* @__PURE__ */ s.createElement(
|
|
2200
|
+
Io,
|
|
2199
2201
|
k(f({
|
|
2200
2202
|
onLoad: () => {
|
|
2201
2203
|
u(!0);
|
|
2202
2204
|
},
|
|
2203
2205
|
ref: a,
|
|
2204
|
-
imageSize:
|
|
2206
|
+
imageSize: x,
|
|
2205
2207
|
draggable: "false"
|
|
2206
2208
|
}, o), {
|
|
2207
|
-
alt: ((
|
|
2209
|
+
alt: ((b = o.alt) == null ? void 0 : b.toString()) || "",
|
|
2208
2210
|
style: h,
|
|
2209
2211
|
src: t.src,
|
|
2210
2212
|
loaded: l
|
|
2211
2213
|
})
|
|
2212
|
-
), /* @__PURE__ */ s.createElement(
|
|
2213
|
-
},
|
|
2214
|
+
), /* @__PURE__ */ s.createElement(Oo, null));
|
|
2215
|
+
}, No = C(Po)`
|
|
2214
2216
|
svg circle {
|
|
2215
2217
|
stroke: #ffffff;
|
|
2216
2218
|
}
|
|
2217
|
-
`,
|
|
2219
|
+
`, Io = C.img`
|
|
2218
2220
|
transform: none;
|
|
2219
2221
|
|
|
2220
2222
|
${(e) => e.imageSize && L`
|
|
@@ -2225,132 +2227,132 @@ const Yn = 300, Un = ({
|
|
|
2225
2227
|
vertical-align: middle;
|
|
2226
2228
|
position: relative;
|
|
2227
2229
|
${(e) => !e.loaded && "display:none;"}
|
|
2228
|
-
`,
|
|
2230
|
+
`, Oo = C.div`
|
|
2229
2231
|
height: 100%;
|
|
2230
2232
|
display: inline-block;
|
|
2231
2233
|
vertical-align: middle;
|
|
2232
|
-
`,
|
|
2233
|
-
const e = R(), [t, n] =
|
|
2234
|
+
`, Wo = Vo, Zo = () => {
|
|
2235
|
+
const e = R(), [t, n] = E(!0), o = _(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2234
2236
|
n(!1);
|
|
2235
2237
|
}, 3e3), () => {
|
|
2236
2238
|
e.current && clearTimeout(e.current);
|
|
2237
2239
|
}), [t, e]);
|
|
2238
2240
|
return [t, o];
|
|
2239
|
-
},
|
|
2240
|
-
var
|
|
2241
|
-
const n =
|
|
2241
|
+
}, jo = ({ attrs: e, htmlBody: t }) => {
|
|
2242
|
+
var je;
|
|
2243
|
+
const n = te("Escape"), o = te("ArrowLeft"), r = te("ArrowRight"), [i, a] = E(1), [l, u] = E({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = E(!1), [p, d] = Zo(), [h, y] = E(null), [x, v] = E(null), b = R(null), g = R(null), z = R(null), H = R(null);
|
|
2242
2244
|
w(() => {
|
|
2243
|
-
n &&
|
|
2245
|
+
n && y(null);
|
|
2244
2246
|
}, [n]), w(() => {
|
|
2245
2247
|
a(1);
|
|
2246
2248
|
}, [h]), w(() => {
|
|
2247
|
-
var
|
|
2249
|
+
var U, Y;
|
|
2248
2250
|
if (h === null || g.current === null)
|
|
2249
2251
|
return;
|
|
2250
|
-
const $ = g.current.firstElementChild,
|
|
2251
|
-
if (
|
|
2252
|
-
|
|
2253
|
-
else if (
|
|
2254
|
-
|
|
2252
|
+
const $ = g.current.firstElementChild, D = (U = z.current) == null ? void 0 : U.querySelector(".nav-left"), j = (Y = z.current) == null ? void 0 : Y.querySelector(".nav-right");
|
|
2253
|
+
if (x === "Right")
|
|
2254
|
+
le && j ? j.focus() : ce && D && D.focus();
|
|
2255
|
+
else if (x === "Left")
|
|
2256
|
+
ce && D ? D.focus() : le && j && j.focus();
|
|
2255
2257
|
else {
|
|
2256
2258
|
if (!$)
|
|
2257
2259
|
return;
|
|
2258
2260
|
$.focus();
|
|
2259
2261
|
}
|
|
2260
|
-
}, [h, g, z,
|
|
2262
|
+
}, [h, g, z, x]), w(() => {
|
|
2261
2263
|
if (o) {
|
|
2262
|
-
if (
|
|
2263
|
-
return
|
|
2264
|
-
} else if (r &&
|
|
2265
|
-
return
|
|
2264
|
+
if (ce)
|
|
2265
|
+
return We();
|
|
2266
|
+
} else if (r && le)
|
|
2267
|
+
return Ze();
|
|
2266
2268
|
}, [o, r]);
|
|
2267
|
-
const
|
|
2269
|
+
const T = he(() => {
|
|
2268
2270
|
const $ = document.createElement("div");
|
|
2269
2271
|
$.innerHTML = t || "";
|
|
2270
|
-
const
|
|
2271
|
-
return Array.from(
|
|
2272
|
-
const
|
|
2273
|
-
if (
|
|
2274
|
-
const
|
|
2275
|
-
src:
|
|
2276
|
-
originalWidth:
|
|
2277
|
-
originalHeight:
|
|
2272
|
+
const D = $.getElementsByTagName("img");
|
|
2273
|
+
return Array.from(D).reduce((U, Y) => {
|
|
2274
|
+
const Ae = Y.getAttribute("src"), Rt = Y.height || Number.parseInt(Y.style.height, 10), _t = Y.width || Number.parseInt(Y.style.width, 10);
|
|
2275
|
+
if (Ae) {
|
|
2276
|
+
const Tt = {
|
|
2277
|
+
src: Ae,
|
|
2278
|
+
originalWidth: _t,
|
|
2279
|
+
originalHeight: Rt
|
|
2278
2280
|
};
|
|
2279
|
-
|
|
2281
|
+
U.push(Tt);
|
|
2280
2282
|
}
|
|
2281
|
-
return
|
|
2283
|
+
return U;
|
|
2282
2284
|
}, []);
|
|
2283
|
-
}, [t]),
|
|
2285
|
+
}, [t]), Z = _(() => {
|
|
2284
2286
|
const { src: $ } = e;
|
|
2285
2287
|
if ($) {
|
|
2286
|
-
const
|
|
2287
|
-
|
|
2288
|
+
const D = T.findIndex((j, U) => j.src === $);
|
|
2289
|
+
y(D);
|
|
2288
2290
|
}
|
|
2289
|
-
}, [
|
|
2290
|
-
|
|
2291
|
-
}, []),
|
|
2291
|
+
}, [T, e]), $t = _(($) => {
|
|
2292
|
+
y(null);
|
|
2293
|
+
}, []), Oe = _(
|
|
2292
2294
|
($) => {
|
|
2293
2295
|
a($ ? i + i * 0.25 : i - i * 0.25);
|
|
2294
2296
|
},
|
|
2295
2297
|
[a, i]
|
|
2296
|
-
),
|
|
2298
|
+
), Et = _(() => {
|
|
2297
2299
|
if (h !== null) {
|
|
2298
|
-
const { src: $ } =
|
|
2300
|
+
const { src: $ } = T[h];
|
|
2299
2301
|
$ && window.open($, "_self");
|
|
2300
2302
|
}
|
|
2301
|
-
}, [
|
|
2303
|
+
}, [T, h]), kt = _(
|
|
2302
2304
|
($) => {
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2305
|
+
const D = H.current;
|
|
2306
|
+
D && (u({ top: D.scrollTop, left: D.scrollLeft, x: $.clientX, y: $.clientY }), m(!0));
|
|
2305
2307
|
},
|
|
2306
2308
|
[H]
|
|
2307
|
-
),
|
|
2309
|
+
), Lt = _(
|
|
2308
2310
|
($) => {
|
|
2309
|
-
const
|
|
2310
|
-
if (
|
|
2311
|
-
const
|
|
2312
|
-
|
|
2311
|
+
const D = H.current;
|
|
2312
|
+
if (D && c) {
|
|
2313
|
+
const j = $.clientX - l.x, U = $.clientY - l.y;
|
|
2314
|
+
D.scrollTop = l.top - U, D.scrollLeft = l.left - j;
|
|
2313
2315
|
}
|
|
2314
2316
|
},
|
|
2315
2317
|
[c, l]
|
|
2316
|
-
),
|
|
2318
|
+
), Mt = ($) => {
|
|
2317
2319
|
$.preventDefault(), m(!1);
|
|
2318
|
-
},
|
|
2320
|
+
}, St = he(() => {
|
|
2319
2321
|
if (H.current) {
|
|
2320
2322
|
const $ = H.current.getElementsByTagName("img");
|
|
2321
2323
|
if ($ && $.length) {
|
|
2322
|
-
const
|
|
2323
|
-
return
|
|
2324
|
+
const D = $[0];
|
|
2325
|
+
return D.width > window.innerWidth || D.height > window.innerHeight;
|
|
2324
2326
|
}
|
|
2325
2327
|
}
|
|
2326
2328
|
return !1;
|
|
2327
|
-
}, [H, i]),
|
|
2328
|
-
h !== null && (
|
|
2329
|
-
},
|
|
2330
|
-
h !== null && (
|
|
2331
|
-
},
|
|
2332
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
2333
|
-
|
|
2329
|
+
}, [H, i]), We = () => {
|
|
2330
|
+
h !== null && (v("Left"), y(h - 1));
|
|
2331
|
+
}, Ze = () => {
|
|
2332
|
+
h !== null && (v("Right"), y(h + 1));
|
|
2333
|
+
}, ce = h !== null && h > 0 && T.length > 1, le = h !== null && T.length - 1 > h;
|
|
2334
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(Ct, { visible: h !== null, onClick: $t }, /* @__PURE__ */ s.createElement(
|
|
2335
|
+
Qo,
|
|
2334
2336
|
{
|
|
2335
2337
|
onMouseDown: () => d(),
|
|
2336
2338
|
onMouseMove: () => d(),
|
|
2337
2339
|
onTouchStart: () => d(),
|
|
2338
2340
|
onKeyDown: () => d()
|
|
2339
2341
|
},
|
|
2340
|
-
/* @__PURE__ */ s.createElement(
|
|
2341
|
-
|
|
2342
|
+
/* @__PURE__ */ s.createElement(Go, { show: p.toString() }, /* @__PURE__ */ s.createElement(
|
|
2343
|
+
Uo,
|
|
2342
2344
|
{
|
|
2343
2345
|
ref: g,
|
|
2344
2346
|
buttons: [
|
|
2345
2347
|
{
|
|
2346
2348
|
id: "download",
|
|
2347
|
-
onClick:
|
|
2349
|
+
onClick: Et,
|
|
2348
2350
|
icon: "download",
|
|
2349
2351
|
ariaLabel: "Download image"
|
|
2350
2352
|
},
|
|
2351
2353
|
{
|
|
2352
2354
|
id: "lightbox-close",
|
|
2353
|
-
onClick: () =>
|
|
2355
|
+
onClick: () => y(null),
|
|
2354
2356
|
icon: "lightbox-close",
|
|
2355
2357
|
ariaLabel: "Close"
|
|
2356
2358
|
}
|
|
@@ -2358,88 +2360,88 @@ const Yn = 300, Un = ({
|
|
|
2358
2360
|
}
|
|
2359
2361
|
)),
|
|
2360
2362
|
/* @__PURE__ */ s.createElement(
|
|
2361
|
-
|
|
2363
|
+
er,
|
|
2362
2364
|
{
|
|
2363
2365
|
scrolling: c.toString(),
|
|
2364
|
-
isDraggable:
|
|
2366
|
+
isDraggable: St.toString(),
|
|
2365
2367
|
ref: H,
|
|
2366
|
-
onMouseMove:
|
|
2367
|
-
onMouseDown:
|
|
2368
|
-
onMouseUp:
|
|
2368
|
+
onMouseMove: Lt,
|
|
2369
|
+
onMouseDown: kt,
|
|
2370
|
+
onMouseUp: Mt
|
|
2369
2371
|
},
|
|
2370
2372
|
h !== null && /* @__PURE__ */ s.createElement(
|
|
2371
|
-
|
|
2373
|
+
Wo,
|
|
2372
2374
|
k(f({
|
|
2373
2375
|
changeZoom: ($) => {
|
|
2374
2376
|
a($);
|
|
2375
2377
|
},
|
|
2376
2378
|
zoomState: i
|
|
2377
2379
|
}, e), {
|
|
2378
|
-
image:
|
|
2380
|
+
image: T[h]
|
|
2379
2381
|
})
|
|
2380
2382
|
)
|
|
2381
2383
|
),
|
|
2382
2384
|
/* @__PURE__ */ s.createElement(
|
|
2383
|
-
|
|
2385
|
+
qo,
|
|
2384
2386
|
{
|
|
2385
2387
|
ref: z,
|
|
2386
2388
|
show: p.toString(),
|
|
2387
2389
|
buttons: [
|
|
2388
2390
|
{
|
|
2389
2391
|
id: "previous",
|
|
2390
|
-
onClick:
|
|
2392
|
+
onClick: We,
|
|
2391
2393
|
icon: "caret-left",
|
|
2392
2394
|
circle: !0,
|
|
2393
|
-
show:
|
|
2395
|
+
show: ce,
|
|
2394
2396
|
className: "nav-left",
|
|
2395
2397
|
ariaLabel: "Navigate to previous image"
|
|
2396
2398
|
},
|
|
2397
2399
|
{
|
|
2398
2400
|
id: "next",
|
|
2399
|
-
onClick:
|
|
2401
|
+
onClick: Ze,
|
|
2400
2402
|
icon: "caret-right",
|
|
2401
2403
|
circle: !0,
|
|
2402
|
-
show:
|
|
2404
|
+
show: le,
|
|
2403
2405
|
className: "nav-right",
|
|
2404
2406
|
ariaLabel: "Navigate to next image"
|
|
2405
2407
|
}
|
|
2406
2408
|
]
|
|
2407
2409
|
}
|
|
2408
2410
|
),
|
|
2409
|
-
/* @__PURE__ */ s.createElement(
|
|
2410
|
-
|
|
2411
|
+
/* @__PURE__ */ s.createElement(Jo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
|
|
2412
|
+
Yo,
|
|
2411
2413
|
{
|
|
2412
2414
|
buttons: [
|
|
2413
2415
|
{
|
|
2414
2416
|
id: "zoom-out",
|
|
2415
|
-
onClick: () =>
|
|
2417
|
+
onClick: () => Oe(!1),
|
|
2416
2418
|
icon: "zoom-out",
|
|
2417
2419
|
ariaLabel: "Zoom out"
|
|
2418
2420
|
},
|
|
2419
2421
|
{
|
|
2420
2422
|
id: "zoom-in",
|
|
2421
|
-
onClick: () =>
|
|
2423
|
+
onClick: () => Oe(!0),
|
|
2422
2424
|
icon: "zoom-in",
|
|
2423
2425
|
ariaLabel: "Zoom in"
|
|
2424
2426
|
}
|
|
2425
2427
|
]
|
|
2426
2428
|
}
|
|
2427
|
-
), /* @__PURE__ */ s.createElement(
|
|
2429
|
+
), /* @__PURE__ */ s.createElement(Xo, { variant: "span" }, Math.trunc(i * 100), "%"))
|
|
2428
2430
|
)), /* @__PURE__ */ s.createElement(
|
|
2429
|
-
|
|
2431
|
+
Ao,
|
|
2430
2432
|
{
|
|
2431
|
-
ref:
|
|
2432
|
-
onClick:
|
|
2433
|
+
ref: b,
|
|
2434
|
+
onClick: Z,
|
|
2433
2435
|
onKeyDown: ($) => {
|
|
2434
|
-
$.key === "Enter" && ($.preventDefault(),
|
|
2436
|
+
$.key === "Enter" && ($.preventDefault(), Z());
|
|
2435
2437
|
},
|
|
2436
2438
|
tabIndex: 0
|
|
2437
2439
|
},
|
|
2438
|
-
/* @__PURE__ */ s.createElement(
|
|
2440
|
+
/* @__PURE__ */ s.createElement(tr, k(f({}, e), { alt: ((je = e.alt) == null ? void 0 : je.toString()) || "" }))
|
|
2439
2441
|
));
|
|
2440
|
-
},
|
|
2442
|
+
}, Ie = P(
|
|
2441
2443
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ s.createElement(
|
|
2442
|
-
|
|
2444
|
+
Fo,
|
|
2443
2445
|
{
|
|
2444
2446
|
ref: o,
|
|
2445
2447
|
show: e,
|
|
@@ -2447,7 +2449,7 @@ const Yn = 300, Un = ({
|
|
|
2447
2449
|
},
|
|
2448
2450
|
t.map(
|
|
2449
2451
|
({ id: r, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ s.createElement(
|
|
2450
|
-
|
|
2452
|
+
Ko,
|
|
2451
2453
|
{
|
|
2452
2454
|
key: r + p.toString(),
|
|
2453
2455
|
circle: i.toString(),
|
|
@@ -2458,29 +2460,29 @@ const Yn = 300, Un = ({
|
|
|
2458
2460
|
className: m,
|
|
2459
2461
|
"aria-label": l
|
|
2460
2462
|
},
|
|
2461
|
-
/* @__PURE__ */ s.createElement(
|
|
2463
|
+
/* @__PURE__ */ s.createElement(ae, { size: 24, symbol: { type: "Svg", content: c } })
|
|
2462
2464
|
)
|
|
2463
2465
|
)
|
|
2464
2466
|
)
|
|
2465
|
-
),
|
|
2467
|
+
), vt = C.div`
|
|
2466
2468
|
transition: opacity 0.3s ease 0s;
|
|
2467
2469
|
z-index: 5;
|
|
2468
2470
|
${(e) => e.show === "true" ? "opacity: 1;" : L`
|
|
2469
2471
|
opacity: 0;
|
|
2470
2472
|
pointer-events: none;
|
|
2471
2473
|
`}
|
|
2472
|
-
`,
|
|
2474
|
+
`, Ao = C(Ne)`
|
|
2473
2475
|
display: inline-block !important;
|
|
2474
|
-
`,
|
|
2476
|
+
`, Fo = C(vt)`
|
|
2475
2477
|
position: fixed;
|
|
2476
2478
|
display: flex;
|
|
2477
2479
|
gap: ${(e) => {
|
|
2478
2480
|
var t;
|
|
2479
2481
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2480
2482
|
}};
|
|
2481
|
-
`,
|
|
2482
|
-
width: ${
|
|
2483
|
-
height: ${
|
|
2483
|
+
`, Se = "39px", Ko = C(be)`
|
|
2484
|
+
width: ${Se};
|
|
2485
|
+
height: ${Se};
|
|
2484
2486
|
display: flex;
|
|
2485
2487
|
justify-content: center;
|
|
2486
2488
|
align-items: center;
|
|
@@ -2506,7 +2508,7 @@ const Yn = 300, Un = ({
|
|
|
2506
2508
|
}
|
|
2507
2509
|
|
|
2508
2510
|
&:focus-visible {
|
|
2509
|
-
${
|
|
2511
|
+
${Q(e)}
|
|
2510
2512
|
outline-color: #ffffff;
|
|
2511
2513
|
background-color: transparent;
|
|
2512
2514
|
|
|
@@ -2528,7 +2530,7 @@ const Yn = 300, Un = ({
|
|
|
2528
2530
|
outline-color: #ffffff;
|
|
2529
2531
|
}
|
|
2530
2532
|
&:focus-visible {
|
|
2531
|
-
${
|
|
2533
|
+
${Q(e)}
|
|
2532
2534
|
}
|
|
2533
2535
|
`;
|
|
2534
2536
|
}}
|
|
@@ -2543,7 +2545,7 @@ const Yn = 300, Un = ({
|
|
|
2543
2545
|
opacity: 0;
|
|
2544
2546
|
pointer-events: none;
|
|
2545
2547
|
`}
|
|
2546
|
-
`,
|
|
2548
|
+
`, Uo = C(Ie)`
|
|
2547
2549
|
top: ${(e) => {
|
|
2548
2550
|
var t;
|
|
2549
2551
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2552,7 +2554,7 @@ const Yn = 300, Un = ({
|
|
|
2552
2554
|
var t;
|
|
2553
2555
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2554
2556
|
}};
|
|
2555
|
-
`,
|
|
2557
|
+
`, Yo = C(Ie)`
|
|
2556
2558
|
bottom: ${(e) => {
|
|
2557
2559
|
var t;
|
|
2558
2560
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2560,11 +2562,11 @@ const Yn = 300, Un = ({
|
|
|
2560
2562
|
width: 100%;
|
|
2561
2563
|
align-items: center;
|
|
2562
2564
|
justify-content: center;
|
|
2563
|
-
`,
|
|
2565
|
+
`, qo = C(Ie)`
|
|
2564
2566
|
display: block;
|
|
2565
2567
|
button {
|
|
2566
2568
|
position: fixed;
|
|
2567
|
-
top: calc(50% - calc(${
|
|
2569
|
+
top: calc(50% - calc(${Se} / 2));
|
|
2568
2570
|
&:first-child {
|
|
2569
2571
|
left: ${(e) => {
|
|
2570
2572
|
var t;
|
|
@@ -2578,7 +2580,7 @@ const Yn = 300, Un = ({
|
|
|
2578
2580
|
}};
|
|
2579
2581
|
}
|
|
2580
2582
|
}
|
|
2581
|
-
`,
|
|
2583
|
+
`, Xo = C(re)`
|
|
2582
2584
|
position: fixed;
|
|
2583
2585
|
bottom: ${(e) => {
|
|
2584
2586
|
var t;
|
|
@@ -2597,21 +2599,21 @@ const Yn = 300, Un = ({
|
|
|
2597
2599
|
var t;
|
|
2598
2600
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2599
2601
|
}};
|
|
2600
|
-
`,
|
|
2602
|
+
`, bt = C(vt)`
|
|
2601
2603
|
position: absolute;
|
|
2602
2604
|
width: 100vw;
|
|
2603
2605
|
height: 88px;
|
|
2604
2606
|
left: 0px;
|
|
2605
2607
|
z-index: 5;
|
|
2606
|
-
`,
|
|
2608
|
+
`, Qo = C.div`
|
|
2607
2609
|
width: 100%;
|
|
2608
|
-
`,
|
|
2610
|
+
`, Go = C(bt)`
|
|
2609
2611
|
top: 0px;
|
|
2610
2612
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2611
|
-
`,
|
|
2613
|
+
`, Jo = C(bt)`
|
|
2612
2614
|
bottom: 0px;
|
|
2613
2615
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2614
|
-
`,
|
|
2616
|
+
`, er = C.div`
|
|
2615
2617
|
width: 100%;
|
|
2616
2618
|
height: 100vh;
|
|
2617
2619
|
overflow: auto;
|
|
@@ -2620,41 +2622,41 @@ const Yn = 300, Un = ({
|
|
|
2620
2622
|
white-space: nowrap;
|
|
2621
2623
|
justify-content: center;
|
|
2622
2624
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2623
|
-
`,
|
|
2625
|
+
`, tr = C.img`
|
|
2624
2626
|
cursor: pointer;
|
|
2625
|
-
`,
|
|
2627
|
+
`, nr = jo, or = P(
|
|
2626
2628
|
(l, a) => {
|
|
2627
2629
|
var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2628
2630
|
}, close: r = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2629
|
-
const [c, m] =
|
|
2631
|
+
const [c, m] = pt(), [p, d] = ht(!0), h = R(), y = R(se()), x = te("Escape");
|
|
2630
2632
|
w(() => {
|
|
2631
|
-
(
|
|
2632
|
-
}, [
|
|
2633
|
+
(x || r) && m(!1);
|
|
2634
|
+
}, [x, r]), w(() => {
|
|
2633
2635
|
c && h.current && h.current.focus();
|
|
2634
|
-
}, [c, h.current]),
|
|
2636
|
+
}, [c, h.current]), we("router:changed", () => {
|
|
2635
2637
|
m(!1);
|
|
2636
2638
|
});
|
|
2637
|
-
const
|
|
2639
|
+
const v = _(
|
|
2638
2640
|
(g) => {
|
|
2639
2641
|
m(!1), o(g);
|
|
2640
2642
|
},
|
|
2641
2643
|
[o, m]
|
|
2642
2644
|
);
|
|
2643
|
-
|
|
2645
|
+
Te(a, () => ({
|
|
2644
2646
|
close() {
|
|
2645
2647
|
m(!1);
|
|
2646
2648
|
}
|
|
2647
2649
|
}));
|
|
2648
|
-
const
|
|
2650
|
+
const b = _(() => Be(y.current, () => {
|
|
2649
2651
|
m(!1);
|
|
2650
|
-
}), [
|
|
2651
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
2652
|
-
|
|
2652
|
+
}), [y.current]);
|
|
2653
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(Ct, { visible: c, onClick: v }, /* @__PURE__ */ s.createElement(
|
|
2654
|
+
sr,
|
|
2653
2655
|
k(f({
|
|
2654
2656
|
className: M(
|
|
2655
2657
|
e,
|
|
2656
2658
|
"humany-modal",
|
|
2657
|
-
`humany-modal-${
|
|
2659
|
+
`humany-modal-${y.current}`
|
|
2658
2660
|
),
|
|
2659
2661
|
css: p,
|
|
2660
2662
|
tabIndex: -1
|
|
@@ -2662,22 +2664,22 @@ const Yn = 300, Un = ({
|
|
|
2662
2664
|
ref: d
|
|
2663
2665
|
}),
|
|
2664
2666
|
/* @__PURE__ */ s.createElement(
|
|
2665
|
-
|
|
2667
|
+
Ve,
|
|
2666
2668
|
{
|
|
2667
2669
|
onClick: () => m(!1),
|
|
2668
2670
|
tabIndex: 0,
|
|
2669
2671
|
ref: h
|
|
2670
2672
|
},
|
|
2671
|
-
/* @__PURE__ */ s.createElement(
|
|
2673
|
+
/* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
|
|
2672
2674
|
),
|
|
2673
2675
|
t
|
|
2674
2676
|
)), s.cloneElement(n, {
|
|
2675
2677
|
onClick: (g) => {
|
|
2676
|
-
m(),
|
|
2678
|
+
m(), b();
|
|
2677
2679
|
}
|
|
2678
2680
|
}));
|
|
2679
2681
|
}
|
|
2680
|
-
),
|
|
2682
|
+
), rr = or, sr = C.div`
|
|
2681
2683
|
font-family: ${(e) => {
|
|
2682
2684
|
var t;
|
|
2683
2685
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2693,10 +2695,10 @@ const Yn = 300, Un = ({
|
|
|
2693
2695
|
var t;
|
|
2694
2696
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2695
2697
|
}};
|
|
2696
|
-
${(e) =>
|
|
2698
|
+
${(e) => ft(e)}
|
|
2697
2699
|
${(e) => e.css && e.css}
|
|
2698
2700
|
outline: none;
|
|
2699
|
-
`,
|
|
2701
|
+
`, ir = ({
|
|
2700
2702
|
className: e,
|
|
2701
2703
|
trigger: t,
|
|
2702
2704
|
header: n = "",
|
|
@@ -2708,15 +2710,15 @@ const Yn = 300, Un = ({
|
|
|
2708
2710
|
cancelLabel: a = "",
|
|
2709
2711
|
confirmLabel: l = ""
|
|
2710
2712
|
}) => {
|
|
2711
|
-
const u = R(), c =
|
|
2713
|
+
const u = R(), c = _(() => {
|
|
2712
2714
|
var p;
|
|
2713
2715
|
r(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2714
|
-
}, [r]), m =
|
|
2716
|
+
}, [r]), m = _(() => {
|
|
2715
2717
|
var p;
|
|
2716
2718
|
i(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2717
2719
|
}, [i]);
|
|
2718
|
-
return /* @__PURE__ */ s.createElement(
|
|
2719
|
-
},
|
|
2720
|
+
return /* @__PURE__ */ s.createElement(ar, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ s.createElement(Ge, null, n), o && /* @__PURE__ */ s.createElement(Ge, null, o), l && /* @__PURE__ */ s.createElement(cr, { onClick: m }, l), a && /* @__PURE__ */ s.createElement(lr, { onClick: c }, a));
|
|
2721
|
+
}, Bs = ir, ar = C(rr)`
|
|
2720
2722
|
display: block;
|
|
2721
2723
|
|
|
2722
2724
|
span {
|
|
@@ -2734,7 +2736,7 @@ const Yn = 300, Un = ({
|
|
|
2734
2736
|
}};
|
|
2735
2737
|
}
|
|
2736
2738
|
}
|
|
2737
|
-
`,
|
|
2739
|
+
`, cr = C(be)`
|
|
2738
2740
|
display: inline-block;
|
|
2739
2741
|
min-width: 50px;
|
|
2740
2742
|
${(e) => {
|
|
@@ -2762,9 +2764,9 @@ const Yn = 300, Un = ({
|
|
|
2762
2764
|
}
|
|
2763
2765
|
|
|
2764
2766
|
&:focus-visible {
|
|
2765
|
-
${
|
|
2767
|
+
${Q}
|
|
2766
2768
|
}
|
|
2767
|
-
`,
|
|
2769
|
+
`, lr = C(be)`
|
|
2768
2770
|
display: inline-block;
|
|
2769
2771
|
min-width: 50px;
|
|
2770
2772
|
${(e) => {
|
|
@@ -2783,18 +2785,18 @@ const Yn = 300, Un = ({
|
|
|
2783
2785
|
}};
|
|
2784
2786
|
|
|
2785
2787
|
&:focus-visible {
|
|
2786
|
-
${
|
|
2788
|
+
${Q};
|
|
2787
2789
|
}
|
|
2788
|
-
`,
|
|
2790
|
+
`, ur = ({
|
|
2789
2791
|
header: e = "",
|
|
2790
2792
|
link: t = "",
|
|
2791
2793
|
suggestionHeader: n = "",
|
|
2792
2794
|
suggestion: o = ""
|
|
2793
|
-
}) => /* @__PURE__ */ s.createElement(
|
|
2795
|
+
}) => /* @__PURE__ */ s.createElement(dr, null, /* @__PURE__ */ s.createElement(mr, null, /* @__PURE__ */ s.createElement(re, { variant: "h2" }, "404")), /* @__PURE__ */ s.createElement(hr, null, /* @__PURE__ */ s.createElement(re, { variant: "h3" }, e), /* @__PURE__ */ s.createElement(gr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ s.createElement(pr, null, /* @__PURE__ */ s.createElement("span", null, n), /* @__PURE__ */ s.createElement("ul", null, /* @__PURE__ */ s.createElement("li", null, o)))), Ps = ur, dr = C.div`
|
|
2794
2796
|
display: flex;
|
|
2795
2797
|
flex-wrap: wrap;
|
|
2796
|
-
`,
|
|
2797
|
-
${(e) =>
|
|
2798
|
+
`, mr = C.div`
|
|
2799
|
+
${(e) => pe(e)(
|
|
2798
2800
|
"h2",
|
|
2799
2801
|
L`
|
|
2800
2802
|
padding: 0;
|
|
@@ -2803,7 +2805,7 @@ const Yn = 300, Un = ({
|
|
|
2803
2805
|
font-size: 7em;
|
|
2804
2806
|
`
|
|
2805
2807
|
)}
|
|
2806
|
-
`,
|
|
2808
|
+
`, hr = C.div`
|
|
2807
2809
|
margin-left: ${(e) => {
|
|
2808
2810
|
var t;
|
|
2809
2811
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2811,7 +2813,7 @@ const Yn = 300, Un = ({
|
|
|
2811
2813
|
|
|
2812
2814
|
${(e) => {
|
|
2813
2815
|
var t;
|
|
2814
|
-
return
|
|
2816
|
+
return pe(e)(
|
|
2815
2817
|
"h3",
|
|
2816
2818
|
L`
|
|
2817
2819
|
text-transform: uppercase;
|
|
@@ -2830,7 +2832,7 @@ const Yn = 300, Un = ({
|
|
|
2830
2832
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2831
2833
|
}};
|
|
2832
2834
|
}
|
|
2833
|
-
`,
|
|
2835
|
+
`, pr = C.div`
|
|
2834
2836
|
margin-top: ${(e) => {
|
|
2835
2837
|
var t;
|
|
2836
2838
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2841,7 +2843,7 @@ const Yn = 300, Un = ({
|
|
|
2841
2843
|
font-weight: bold;
|
|
2842
2844
|
}
|
|
2843
2845
|
`;
|
|
2844
|
-
class
|
|
2846
|
+
class fr extends Vt {
|
|
2845
2847
|
constructor() {
|
|
2846
2848
|
super(...arguments), this.state = {
|
|
2847
2849
|
boundFocus: !1
|
|
@@ -2880,49 +2882,49 @@ class ar extends kt {
|
|
|
2880
2882
|
) : null;
|
|
2881
2883
|
}
|
|
2882
2884
|
}
|
|
2883
|
-
const
|
|
2885
|
+
const Vs = fr, gr = P(
|
|
2884
2886
|
(a, i) => {
|
|
2885
2887
|
var l = a, { className: e, description: t, text: n, children: o } = l, r = S(l, ["className", "description", "text", "children"]);
|
|
2886
|
-
return /* @__PURE__ */ s.createElement(
|
|
2888
|
+
return /* @__PURE__ */ s.createElement(Ne, k(f({ className: M(e, "humany-text-link") }, r), { ref: i }), o, /* @__PURE__ */ s.createElement(Pe, null, n), t ? /* @__PURE__ */ s.createElement(yt, { html: t, className: "humany-description" }) : null);
|
|
2887
2889
|
}
|
|
2888
2890
|
);
|
|
2889
|
-
var
|
|
2890
|
-
const
|
|
2891
|
-
function
|
|
2892
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${
|
|
2891
|
+
var yr = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(yr || {});
|
|
2892
|
+
const Cr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ s.createElement("span", { className: M(e, "humany-timestamp") }, vr(n, t)), Ns = Cr, Je = (e) => `0${e}`.slice(-2);
|
|
2893
|
+
function vr(e, t) {
|
|
2894
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${Je(a)}-${Je(l)}`;
|
|
2893
2895
|
return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? r : `${u} ${r}`;
|
|
2894
2896
|
}
|
|
2895
|
-
const
|
|
2897
|
+
const br = (i) => {
|
|
2896
2898
|
var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, r = S(a, ["className", "children", "content", "sticky"]);
|
|
2897
|
-
const [l, u] =
|
|
2898
|
-
const { target:
|
|
2899
|
-
!m.current || !
|
|
2899
|
+
const [l, u] = E(!1), c = R(se()), m = R(), [{ x: p, y: d }, h] = gt(l, c.current, m.current), y = (v) => {
|
|
2900
|
+
const { target: b } = v;
|
|
2901
|
+
!m.current || !b || m.current !== b && !m.current.contains(b) && u(!1);
|
|
2900
2902
|
};
|
|
2901
2903
|
w(() => {
|
|
2902
2904
|
if (!!o)
|
|
2903
|
-
return window.addEventListener("click",
|
|
2904
|
-
window.removeEventListener("click",
|
|
2905
|
+
return window.addEventListener("click", y), () => {
|
|
2906
|
+
window.removeEventListener("click", y);
|
|
2905
2907
|
};
|
|
2906
2908
|
}, [l, o]);
|
|
2907
|
-
const
|
|
2908
|
-
(
|
|
2909
|
-
h(
|
|
2909
|
+
const x = _(
|
|
2910
|
+
(v, b) => {
|
|
2911
|
+
h(v, m.current), u(b);
|
|
2910
2912
|
},
|
|
2911
2913
|
[h, u]
|
|
2912
2914
|
);
|
|
2913
2915
|
return /* @__PURE__ */ s.createElement(
|
|
2914
|
-
|
|
2916
|
+
wr,
|
|
2915
2917
|
{
|
|
2916
2918
|
ref: m,
|
|
2917
2919
|
className: "humany-tooltip-trigger",
|
|
2918
|
-
onMouseEnter: o ? void 0 : (
|
|
2919
|
-
onMouseLeave: o ? void 0 : (
|
|
2920
|
-
onTouchEnd: o ? (
|
|
2921
|
-
onClick: o ? (
|
|
2920
|
+
onMouseEnter: o ? void 0 : (v) => x(v, !0),
|
|
2921
|
+
onMouseLeave: o ? void 0 : (v) => x(v, !1),
|
|
2922
|
+
onTouchEnd: o ? (v) => x(v, !l) : void 0,
|
|
2923
|
+
onClick: o ? (v) => x(v, !l) : void 0
|
|
2922
2924
|
},
|
|
2923
2925
|
t,
|
|
2924
|
-
l && /* @__PURE__ */ s.createElement(
|
|
2925
|
-
|
|
2926
|
+
l && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
|
|
2927
|
+
xr,
|
|
2926
2928
|
f({
|
|
2927
2929
|
className: M(e, "humany-tooltip-container"),
|
|
2928
2930
|
x: p,
|
|
@@ -2931,10 +2933,10 @@ const mr = (i) => {
|
|
|
2931
2933
|
n
|
|
2932
2934
|
))
|
|
2933
2935
|
);
|
|
2934
|
-
},
|
|
2936
|
+
}, wr = C.div`
|
|
2935
2937
|
display: flex;
|
|
2936
2938
|
align-items: center;
|
|
2937
|
-
`,
|
|
2939
|
+
`, xr = C.div`
|
|
2938
2940
|
color: #ffffff;
|
|
2939
2941
|
background: #161616;
|
|
2940
2942
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2970,7 +2972,7 @@ const mr = (i) => {
|
|
|
2970
2972
|
let t = "";
|
|
2971
2973
|
return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
|
|
2972
2974
|
}};
|
|
2973
|
-
`,
|
|
2975
|
+
`, Is = br, $r = (e) => {
|
|
2974
2976
|
const {
|
|
2975
2977
|
in: t,
|
|
2976
2978
|
mountOnEnter: n = !0,
|
|
@@ -3012,7 +3014,7 @@ const mr = (i) => {
|
|
|
3012
3014
|
}
|
|
3013
3015
|
})();
|
|
3014
3016
|
return /* @__PURE__ */ s.createElement(
|
|
3015
|
-
|
|
3017
|
+
jt,
|
|
3016
3018
|
{
|
|
3017
3019
|
timeout: {
|
|
3018
3020
|
enter: u && u.enter.duration || 0,
|
|
@@ -3024,9 +3026,9 @@ const mr = (i) => {
|
|
|
3024
3026
|
unmountOnExit: o,
|
|
3025
3027
|
onEnter: (c) => c.clientHeight
|
|
3026
3028
|
},
|
|
3027
|
-
(c) => i && i(c, u &&
|
|
3029
|
+
(c) => i && i(c, u && Le.compose(c, u))
|
|
3028
3030
|
);
|
|
3029
|
-
},
|
|
3031
|
+
}, Os = $r, Er = P(
|
|
3030
3032
|
(l, a) => {
|
|
3031
3033
|
var u = l, { className: e, children: t, onClick: n = () => {
|
|
3032
3034
|
}, widgetName: o, activationOptions: r } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
@@ -3041,29 +3043,29 @@ const mr = (i) => {
|
|
|
3041
3043
|
};
|
|
3042
3044
|
}, [o]);
|
|
3043
3045
|
const p = (h) => {
|
|
3044
|
-
const
|
|
3045
|
-
if (
|
|
3046
|
-
const
|
|
3047
|
-
|
|
3048
|
-
(
|
|
3046
|
+
const y = m(), x = h.currentTarget;
|
|
3047
|
+
if (y) {
|
|
3048
|
+
const v = () => {
|
|
3049
|
+
y.invoke("renderState").then(
|
|
3050
|
+
(b) => b === me.open ? y.invoke("close") : y.invoke("open")
|
|
3049
3051
|
).then(() => {
|
|
3050
|
-
|
|
3052
|
+
y.events.subscribeOnce("widget:area-rendered", (b, g) => {
|
|
3051
3053
|
c.get(
|
|
3052
3054
|
"widgetDOMElement"
|
|
3053
|
-
) &&
|
|
3054
|
-
name:
|
|
3055
|
-
ref:
|
|
3055
|
+
) && y.events.dispatch("widget:modal-opened", {
|
|
3056
|
+
name: y.name,
|
|
3057
|
+
ref: x
|
|
3056
3058
|
});
|
|
3057
3059
|
});
|
|
3058
3060
|
});
|
|
3059
3061
|
};
|
|
3060
|
-
|
|
3062
|
+
y.state === Pt.Deactivated ? y.activate(r).then(() => y.invoke("attach")).then(v) : v();
|
|
3061
3063
|
}
|
|
3062
3064
|
}, d = (h) => {
|
|
3063
3065
|
h.key === "Enter" && (h.preventDefault(), p(h));
|
|
3064
3066
|
};
|
|
3065
3067
|
return /* @__PURE__ */ s.createElement(
|
|
3066
|
-
|
|
3068
|
+
Ne,
|
|
3067
3069
|
k(f({
|
|
3068
3070
|
className: M(e, "humany-widget-link"),
|
|
3069
3071
|
onKeyDown: d,
|
|
@@ -3076,16 +3078,16 @@ const mr = (i) => {
|
|
|
3076
3078
|
t
|
|
3077
3079
|
);
|
|
3078
3080
|
}
|
|
3079
|
-
),
|
|
3081
|
+
), Ws = P(
|
|
3080
3082
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3081
|
-
const r = I(), i =
|
|
3083
|
+
const r = I(), i = he(() => {
|
|
3082
3084
|
if (!r)
|
|
3083
3085
|
return null;
|
|
3084
3086
|
const a = r.get("widgetDOMElement");
|
|
3085
3087
|
return !a || !a.childElementCount ? null : a.children[0];
|
|
3086
3088
|
}, [r]);
|
|
3087
|
-
return i ? /* @__PURE__ */ s.createElement(
|
|
3088
|
-
|
|
3089
|
+
return i ? /* @__PURE__ */ s.createElement(ie, { elementId: e, parent: i }, /* @__PURE__ */ s.createElement(
|
|
3090
|
+
kr,
|
|
3089
3091
|
{
|
|
3090
3092
|
className: M("humany-widget-overlay-outlet", t),
|
|
3091
3093
|
ref: o
|
|
@@ -3093,7 +3095,7 @@ const mr = (i) => {
|
|
|
3093
3095
|
n
|
|
3094
3096
|
)) : null;
|
|
3095
3097
|
}
|
|
3096
|
-
),
|
|
3098
|
+
), kr = C.div`
|
|
3097
3099
|
background-color: #ffffff;
|
|
3098
3100
|
position: absolute;
|
|
3099
3101
|
top: 0;
|
|
@@ -3103,22 +3105,302 @@ const mr = (i) => {
|
|
|
3103
3105
|
z-index: 10;
|
|
3104
3106
|
width: 100%;
|
|
3105
3107
|
height: 100%;
|
|
3106
|
-
`,
|
|
3108
|
+
`, Lr = (e, t, n, o, r) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
|
|
3107
3109
|
t,
|
|
3108
|
-
|
|
3109
|
-
),
|
|
3110
|
-
}), t, r))),
|
|
3110
|
+
Nt(() => n)
|
|
3111
|
+
), nt(e, t, o || (() => {
|
|
3112
|
+
}), t, r))), Zs = Lr, Mr = (e, t, n, o, r) => de(void 0, null, function* () {
|
|
3111
3113
|
const i = yield e.getAsync("componentResolver");
|
|
3112
|
-
return console.log("registering component", t, n), i.registerComponent(t, () => n), yield
|
|
3114
|
+
return console.log("registering component", t, n), i.registerComponent(t, () => n), yield nt(e, t, o || (() => {
|
|
3113
3115
|
}), t, r);
|
|
3114
|
-
}),
|
|
3115
|
-
|
|
3116
|
-
|
|
3116
|
+
}), js = Mr, Sr = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
|
|
3117
|
+
`;
|
|
3118
|
+
var Rr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Tr = (e, t, n, o) => {
|
|
3119
|
+
for (var r = o > 1 ? void 0 : o ? _r(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3120
|
+
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3121
|
+
return o && r && Rr(t, n, r), r;
|
|
3122
|
+
};
|
|
3123
|
+
let Re = class extends ye {
|
|
3124
|
+
render() {
|
|
3125
|
+
return O`
|
|
3126
|
+
<!-- className={appendClassNames(className, 'humany-button')}
|
|
3127
|
+
{...convertToStringAttributes(other)} -->
|
|
3128
|
+
<button type="button" part="container" class="humany-button">
|
|
3129
|
+
<slot />
|
|
3130
|
+
</button>
|
|
3131
|
+
`;
|
|
3132
|
+
}
|
|
3133
|
+
};
|
|
3134
|
+
Re.styles = rt(Sr);
|
|
3135
|
+
Re = Tr([
|
|
3136
|
+
ve("ui-button")
|
|
3137
|
+
], Re);
|
|
3138
|
+
var zr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, wt = (e, t, n, o) => {
|
|
3139
|
+
for (var r = o > 1 ? void 0 : o ? Dr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3140
|
+
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3141
|
+
return o && r && zr(t, n, r), r;
|
|
3142
|
+
};
|
|
3143
|
+
let fe = class extends ye {
|
|
3144
|
+
constructor() {
|
|
3145
|
+
super(...arguments), this.html = "";
|
|
3146
|
+
}
|
|
3147
|
+
render() {
|
|
3148
|
+
return st` <div part="container" class="humany-html">${it(this.html)}</div> `;
|
|
3149
|
+
}
|
|
3150
|
+
};
|
|
3151
|
+
fe.styles = [
|
|
3152
|
+
Ce`
|
|
3153
|
+
img {
|
|
3154
|
+
display: none;
|
|
3155
|
+
}
|
|
3156
|
+
`
|
|
3157
|
+
];
|
|
3158
|
+
wt([
|
|
3159
|
+
N({ type: String })
|
|
3160
|
+
], fe.prototype, "html", 2);
|
|
3161
|
+
fe = wt([
|
|
3162
|
+
ve("ui-html")
|
|
3163
|
+
], fe);
|
|
3164
|
+
var Hr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, ee = (e, t, n, o) => {
|
|
3165
|
+
for (var r = o > 1 ? void 0 : o ? Br(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3166
|
+
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3167
|
+
return o && r && Hr(t, n, r), r;
|
|
3168
|
+
};
|
|
3169
|
+
let F = class extends ye {
|
|
3170
|
+
constructor() {
|
|
3171
|
+
super(), this.symbol = {
|
|
3172
|
+
content: "",
|
|
3173
|
+
type: ""
|
|
3174
|
+
}, this.elementStyle = {}, this.size = 12, this.text = "", this.backgroundSize = "contain", this.styles = {}, this.styles = { minWidth: `${this.size}px` };
|
|
3175
|
+
}
|
|
3176
|
+
render() {
|
|
3177
|
+
const { type: e, content: t } = this.symbol, n = {
|
|
3178
|
+
"aria-label": this.text,
|
|
3179
|
+
role: "presentation",
|
|
3180
|
+
part: "container"
|
|
3181
|
+
};
|
|
3182
|
+
switch (e) {
|
|
3183
|
+
case "Uri": {
|
|
3184
|
+
const o = {
|
|
3185
|
+
backgroundSize: this.backgroundSize,
|
|
3186
|
+
backgroundImage: `url('${t}')`,
|
|
3187
|
+
backgroundRepeat: "no-repeat",
|
|
3188
|
+
backgroundPosition: "center",
|
|
3189
|
+
backgroundAttachment: "center"
|
|
3190
|
+
}, r = f(f({}, o), this.elementStyle);
|
|
3191
|
+
return O`
|
|
3192
|
+
<i
|
|
3193
|
+
class="humany-icon humany-custom-icon"
|
|
3194
|
+
title=${this.text}
|
|
3195
|
+
style=${q(r)}
|
|
3196
|
+
${B(n)}
|
|
3197
|
+
/>
|
|
3198
|
+
`;
|
|
3199
|
+
}
|
|
3200
|
+
case "Svg": {
|
|
3201
|
+
const o = {
|
|
3202
|
+
class: "humany-icon",
|
|
3203
|
+
width: `${this.size}`,
|
|
3204
|
+
fill: "none",
|
|
3205
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3206
|
+
};
|
|
3207
|
+
switch (t) {
|
|
3208
|
+
case "search":
|
|
3209
|
+
return O`
|
|
3210
|
+
<svg
|
|
3211
|
+
viewBox="0 0 32 30"
|
|
3212
|
+
style=${q(this.styles)}
|
|
3213
|
+
${B(n)}
|
|
3214
|
+
${B(o)}
|
|
3215
|
+
>
|
|
3216
|
+
<circle
|
|
3217
|
+
cx="14.8457"
|
|
3218
|
+
cy="14.5175"
|
|
3219
|
+
r="8.14359"
|
|
3220
|
+
stroke="currentColor"
|
|
3221
|
+
transform="rotate(45 14.8457 14.5175)"
|
|
3222
|
+
/>
|
|
3223
|
+
<line
|
|
3224
|
+
x1="21.1001"
|
|
3225
|
+
y1="20.4865"
|
|
3226
|
+
x2="26.5798"
|
|
3227
|
+
y2="25.9661"
|
|
3228
|
+
stroke="currentColor"
|
|
3229
|
+
/>
|
|
3230
|
+
</svg>
|
|
3231
|
+
`;
|
|
3232
|
+
case "clear":
|
|
3233
|
+
return O`
|
|
3234
|
+
<svg
|
|
3235
|
+
viewBox="0 0 27 27"
|
|
3236
|
+
style=${q(this.styles)}
|
|
3237
|
+
${B(n)}
|
|
3238
|
+
${B(o)}
|
|
3239
|
+
>
|
|
3240
|
+
<circle
|
|
3241
|
+
cx="13.4351"
|
|
3242
|
+
cy="13.435"
|
|
3243
|
+
r="9"
|
|
3244
|
+
transform="rotate(45 13.4351 13.435)"
|
|
3245
|
+
stroke="currentColor"
|
|
3246
|
+
/>
|
|
3247
|
+
<line
|
|
3248
|
+
x1="16.6172"
|
|
3249
|
+
y1="10.2531"
|
|
3250
|
+
x2="10.2533"
|
|
3251
|
+
y2="16.6171"
|
|
3252
|
+
stroke="currentColor"
|
|
3253
|
+
/>
|
|
3254
|
+
<line
|
|
3255
|
+
x1="16.6171"
|
|
3256
|
+
y1="16.617"
|
|
3257
|
+
x2="10.2532"
|
|
3258
|
+
y2="10.2531"
|
|
3259
|
+
stroke="currentColor"
|
|
3260
|
+
/>
|
|
3261
|
+
</svg>
|
|
3262
|
+
`;
|
|
3263
|
+
case "close":
|
|
3264
|
+
return O`
|
|
3265
|
+
<svg
|
|
3266
|
+
viewBox="0 0 13 13"
|
|
3267
|
+
style=${q(this.styles)}
|
|
3268
|
+
${B(n)}
|
|
3269
|
+
${B(o)}
|
|
3270
|
+
>
|
|
3271
|
+
<path d="M12.3068 0.50647L1.27246 11.7273" stroke="currentColor" />
|
|
3272
|
+
<path d="M12.2812 11.9473L1.24686 0.726451" stroke="currentColor" />
|
|
3273
|
+
</svg>
|
|
3274
|
+
`;
|
|
3275
|
+
case "caret-right":
|
|
3276
|
+
return O`
|
|
3277
|
+
<svg
|
|
3278
|
+
viewBox="0 0 14 14"
|
|
3279
|
+
style=${q(this.styles)}
|
|
3280
|
+
${B(n)}
|
|
3281
|
+
${B(o)}
|
|
3282
|
+
>
|
|
3283
|
+
<line
|
|
3284
|
+
x1="4.13"
|
|
3285
|
+
y1="1.05"
|
|
3286
|
+
x2="10.13"
|
|
3287
|
+
y2="7.05"
|
|
3288
|
+
stroke="currentColor"
|
|
3289
|
+
/>
|
|
3290
|
+
<line
|
|
3291
|
+
x1="10.13"
|
|
3292
|
+
y1="6.95"
|
|
3293
|
+
x2="4.13"
|
|
3294
|
+
y2="12.95"
|
|
3295
|
+
stroke="currentColor"
|
|
3296
|
+
/>
|
|
3297
|
+
</svg>
|
|
3298
|
+
`;
|
|
3299
|
+
case "caret-left":
|
|
3300
|
+
return O`
|
|
3301
|
+
<svg
|
|
3302
|
+
viewBox="0 0 14 14"
|
|
3303
|
+
style=${q(this.styles)}
|
|
3304
|
+
${B(n)}
|
|
3305
|
+
${B(o)}
|
|
3306
|
+
>
|
|
3307
|
+
<line
|
|
3308
|
+
x1="10.13"
|
|
3309
|
+
y1="12.95"
|
|
3310
|
+
x2="4.13"
|
|
3311
|
+
y2="6.95"
|
|
3312
|
+
stroke="currentColor"
|
|
3313
|
+
/>
|
|
3314
|
+
<line
|
|
3315
|
+
x1="4.13"
|
|
3316
|
+
y1="7.05"
|
|
3317
|
+
x2="10.13"
|
|
3318
|
+
y2="1.05"
|
|
3319
|
+
stroke="currentColor"
|
|
3320
|
+
/>
|
|
3321
|
+
</svg>
|
|
3322
|
+
`;
|
|
3323
|
+
case "caret-up":
|
|
3324
|
+
return this.styles.transform = "rotate(180deg)", O`
|
|
3325
|
+
<svg
|
|
3326
|
+
viewBox="0 0 14 14"
|
|
3327
|
+
style=${q(this.styles)}
|
|
3328
|
+
${B(n)}
|
|
3329
|
+
${B(o)}
|
|
3330
|
+
>
|
|
3331
|
+
<line x1="13.09" y1="3.99" x2="7.1" y2="9.99" stroke="black" />
|
|
3332
|
+
<line x1="7.19" y1="9.99" x2="1.19" y2="3.99" stroke="black" />
|
|
3333
|
+
</svg>
|
|
3334
|
+
`;
|
|
3335
|
+
case "caret-down":
|
|
3336
|
+
return O`
|
|
3337
|
+
<svg
|
|
3338
|
+
viewBox="0 0 14 14"
|
|
3339
|
+
style=${q(this.styles)}
|
|
3340
|
+
${B(n)}
|
|
3341
|
+
${B(o)}
|
|
3342
|
+
>
|
|
3343
|
+
<line
|
|
3344
|
+
x1="13.09"
|
|
3345
|
+
y1="3.99"
|
|
3346
|
+
x2="7.1"
|
|
3347
|
+
y2="9.99"
|
|
3348
|
+
stroke="currentcolor"
|
|
3349
|
+
/>
|
|
3350
|
+
<line
|
|
3351
|
+
x1="7.19"
|
|
3352
|
+
y1="9.99"
|
|
3353
|
+
x2="1.19"
|
|
3354
|
+
y2="3.99"
|
|
3355
|
+
stroke="currentcolor"
|
|
3356
|
+
/>
|
|
3357
|
+
</svg>
|
|
3358
|
+
`;
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
}
|
|
3362
|
+
return Zt;
|
|
3363
|
+
}
|
|
3364
|
+
};
|
|
3365
|
+
F.styles = [
|
|
3366
|
+
Ce`
|
|
3367
|
+
:host {
|
|
3368
|
+
color: var(--icon-color, inherit);
|
|
3369
|
+
}
|
|
3370
|
+
i,
|
|
3371
|
+
svg {
|
|
3372
|
+
color: var(--icon-color, inherit);
|
|
3373
|
+
}
|
|
3374
|
+
`
|
|
3375
|
+
];
|
|
3376
|
+
ee([
|
|
3377
|
+
N({ type: Object })
|
|
3378
|
+
], F.prototype, "symbol", 2);
|
|
3379
|
+
ee([
|
|
3380
|
+
N({ type: Object })
|
|
3381
|
+
], F.prototype, "elementStyle", 2);
|
|
3382
|
+
ee([
|
|
3383
|
+
N({ type: Number })
|
|
3384
|
+
], F.prototype, "size", 2);
|
|
3385
|
+
ee([
|
|
3386
|
+
N({ type: String })
|
|
3387
|
+
], F.prototype, "text", 2);
|
|
3388
|
+
ee([
|
|
3389
|
+
N({ type: String })
|
|
3390
|
+
], F.prototype, "backgroundSize", 2);
|
|
3391
|
+
ee([
|
|
3392
|
+
X()
|
|
3393
|
+
], F.prototype, "styles", 2);
|
|
3394
|
+
F = ee([
|
|
3395
|
+
ve("ui-symbol-badge")
|
|
3396
|
+
], F);
|
|
3397
|
+
var Pr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, xt = (e, t, n, o) => {
|
|
3398
|
+
for (var r = o > 1 ? void 0 : o ? Vr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3117
3399
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3118
|
-
return o && r &&
|
|
3400
|
+
return o && r && Pr(t, n, r), r;
|
|
3119
3401
|
};
|
|
3120
|
-
const
|
|
3121
|
-
let
|
|
3402
|
+
const Nr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
|
|
3403
|
+
let ge = class extends ye {
|
|
3122
3404
|
constructor() {
|
|
3123
3405
|
super(...arguments), this.variant = "span";
|
|
3124
3406
|
}
|
|
@@ -3127,16 +3409,16 @@ let ue = class extends Tt {
|
|
|
3127
3409
|
return t ? t.trim() : e;
|
|
3128
3410
|
}
|
|
3129
3411
|
render() {
|
|
3130
|
-
const e =
|
|
3131
|
-
return
|
|
3412
|
+
const e = Nr(this.variant) ? this._getTag(this.variant) : this.variant, t = it(e);
|
|
3413
|
+
return st`
|
|
3132
3414
|
<${t}>
|
|
3133
3415
|
<slot />
|
|
3134
3416
|
</${t}>
|
|
3135
3417
|
`;
|
|
3136
3418
|
}
|
|
3137
3419
|
};
|
|
3138
|
-
|
|
3139
|
-
|
|
3420
|
+
ge.styles = [
|
|
3421
|
+
Ce`
|
|
3140
3422
|
h1,
|
|
3141
3423
|
h2,
|
|
3142
3424
|
h3,
|
|
@@ -3153,13 +3435,13 @@ ue.styles = [
|
|
|
3153
3435
|
}
|
|
3154
3436
|
`
|
|
3155
3437
|
];
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
],
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
],
|
|
3162
|
-
class
|
|
3438
|
+
xt([
|
|
3439
|
+
N({ type: String })
|
|
3440
|
+
], ge.prototype, "variant", 2);
|
|
3441
|
+
ge = xt([
|
|
3442
|
+
ve("ui-typography")
|
|
3443
|
+
], ge);
|
|
3444
|
+
class As {
|
|
3163
3445
|
constructor(t) {
|
|
3164
3446
|
(this.host = t).addController(this);
|
|
3165
3447
|
}
|
|
@@ -3174,12 +3456,12 @@ class Ls {
|
|
|
3174
3456
|
this.host.removeEventListener("set-properties", this.propertyChangeHandler);
|
|
3175
3457
|
}
|
|
3176
3458
|
}
|
|
3177
|
-
class
|
|
3459
|
+
class Fs {
|
|
3178
3460
|
constructor(t) {
|
|
3179
3461
|
this.nodeId = "", this._host = t;
|
|
3180
3462
|
}
|
|
3181
3463
|
initialize() {
|
|
3182
|
-
return
|
|
3464
|
+
return de(this, null, function* () {
|
|
3183
3465
|
if (this.nodeId = this._host.getAttribute("nodeId"), !this.nodeId) {
|
|
3184
3466
|
console.warn("Could not get node id in DataProvider.");
|
|
3185
3467
|
return;
|
|
@@ -3188,7 +3470,7 @@ class Ms {
|
|
|
3188
3470
|
console.warn("Could not get data in DataProvider. Container was not defined.");
|
|
3189
3471
|
return;
|
|
3190
3472
|
}
|
|
3191
|
-
const t = yield
|
|
3473
|
+
const t = yield ze.getInstance(this.container);
|
|
3192
3474
|
if (this.node = t.nodes.get(this.nodeId), !this.node) {
|
|
3193
3475
|
console.warn(`Could not get component node with ID: ${this.nodeId}.`);
|
|
3194
3476
|
return;
|
|
@@ -3205,7 +3487,7 @@ class Ms {
|
|
|
3205
3487
|
return this._host.dispatchEvent(n), n.detail.instance;
|
|
3206
3488
|
}
|
|
3207
3489
|
}
|
|
3208
|
-
const
|
|
3490
|
+
const _e = "context.connectEvent", Ks = ct(
|
|
3209
3491
|
(e) => {
|
|
3210
3492
|
class t extends e {
|
|
3211
3493
|
constructor() {
|
|
@@ -3219,7 +3501,7 @@ const ve = "context.connectEvent", Ss = Qe(
|
|
|
3219
3501
|
_injectContext(o) {
|
|
3220
3502
|
const r = (a, l) => {
|
|
3221
3503
|
this._contextValueChanged(o, a, l);
|
|
3222
|
-
}, i = new CustomEvent(
|
|
3504
|
+
}, i = new CustomEvent(_e, {
|
|
3223
3505
|
bubbles: !0,
|
|
3224
3506
|
cancelable: !0,
|
|
3225
3507
|
composed: !0,
|
|
@@ -3240,7 +3522,7 @@ const ve = "context.connectEvent", Ss = Qe(
|
|
|
3240
3522
|
}
|
|
3241
3523
|
return t;
|
|
3242
3524
|
}
|
|
3243
|
-
),
|
|
3525
|
+
), Ir = ct(
|
|
3244
3526
|
(e) => {
|
|
3245
3527
|
class t extends e {
|
|
3246
3528
|
constructor() {
|
|
@@ -3262,7 +3544,7 @@ const ve = "context.connectEvent", Ss = Qe(
|
|
|
3262
3544
|
}, a.callback(this[o]);
|
|
3263
3545
|
}
|
|
3264
3546
|
};
|
|
3265
|
-
this.addEventListener(
|
|
3547
|
+
this.addEventListener(_e, r), this._providedContexts.set(o, {
|
|
3266
3548
|
listener: r,
|
|
3267
3549
|
callbacks: /* @__PURE__ */ new Set()
|
|
3268
3550
|
});
|
|
@@ -3282,32 +3564,32 @@ const ve = "context.connectEvent", Ss = Qe(
|
|
|
3282
3564
|
}
|
|
3283
3565
|
disconnectedCallback() {
|
|
3284
3566
|
for (const o of this._providedContexts.values())
|
|
3285
|
-
this.removeEventListener(
|
|
3567
|
+
this.removeEventListener(_e, o.listener);
|
|
3286
3568
|
super.disconnectedCallback();
|
|
3287
3569
|
}
|
|
3288
3570
|
}
|
|
3289
3571
|
return t;
|
|
3290
3572
|
}
|
|
3291
3573
|
);
|
|
3292
|
-
var
|
|
3293
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3574
|
+
var Or = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, et = (e, t, n, o) => {
|
|
3575
|
+
for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3294
3576
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3295
|
-
return o && r &&
|
|
3577
|
+
return o && r && Or(t, n, r), r;
|
|
3296
3578
|
};
|
|
3297
|
-
const
|
|
3579
|
+
const Us = (e) => {
|
|
3298
3580
|
class t extends e {
|
|
3299
3581
|
constructor(...o) {
|
|
3300
|
-
super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) =>
|
|
3582
|
+
super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => de(this, null, function* () {
|
|
3301
3583
|
this.hasPendingChildren = !0, this.pendingCount++, yield r.detail.promise, this.pendingCount--, this.hasPendingChildren = this.pendingCount !== 0;
|
|
3302
3584
|
}));
|
|
3303
3585
|
}
|
|
3304
3586
|
}
|
|
3305
|
-
return
|
|
3306
|
-
|
|
3307
|
-
], t.prototype, "hasPendingChildren", 2),
|
|
3308
|
-
|
|
3587
|
+
return et([
|
|
3588
|
+
X()
|
|
3589
|
+
], t.prototype, "hasPendingChildren", 2), et([
|
|
3590
|
+
X()
|
|
3309
3591
|
], t.prototype, "pendingCount", 2), t;
|
|
3310
|
-
},
|
|
3592
|
+
}, Ys = (e) => {
|
|
3311
3593
|
class t extends e {
|
|
3312
3594
|
constructor(...o) {
|
|
3313
3595
|
super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
|
|
@@ -3320,7 +3602,7 @@ const Rs = (e) => {
|
|
|
3320
3602
|
}
|
|
3321
3603
|
}
|
|
3322
3604
|
return t;
|
|
3323
|
-
},
|
|
3605
|
+
}, Zr = (e) => {
|
|
3324
3606
|
class t extends e {
|
|
3325
3607
|
requestInstance(o) {
|
|
3326
3608
|
const r = new CustomEvent("request-instance", {
|
|
@@ -3333,18 +3615,18 @@ const Rs = (e) => {
|
|
|
3333
3615
|
}
|
|
3334
3616
|
}
|
|
3335
3617
|
return t;
|
|
3336
|
-
},
|
|
3337
|
-
var n, o, r, i, a, l, u, c, m, p, d, h,
|
|
3618
|
+
}, jr = (e) => {
|
|
3619
|
+
var n, o, r, i, a, l, u, c, m, p, d, h, y, x, v, b, g, z, H, T, Z;
|
|
3338
3620
|
const t = {};
|
|
3339
|
-
return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (i = e.fonts) != null && i.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (a = e.fonts) != null && a.large && (t["--fonts-large"] = `${e.fonts.large}`), (l = e.fonts) != null && l.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (u = e.colors) != null && u.accent && (t["--colors-accent"] = `${e.colors.accent}`), (c = e.colors) != null && c.link && (t["--colors-link"] = `${e.colors.link}`), (m = e.colors) != null && m.primary && (t["--colors-primary"] = `${e.colors.primary}`), (p = e.colors) != null && p.text && (t["--colors-text"] = `${e.colors.text}`), (d = e.colors) != null && d.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (h = e.colors) != null && h.warning && (t["--colors-warning"] = `${e.colors.warning}`), (
|
|
3621
|
+
return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (i = e.fonts) != null && i.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (a = e.fonts) != null && a.large && (t["--fonts-large"] = `${e.fonts.large}`), (l = e.fonts) != null && l.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (u = e.colors) != null && u.accent && (t["--colors-accent"] = `${e.colors.accent}`), (c = e.colors) != null && c.link && (t["--colors-link"] = `${e.colors.link}`), (m = e.colors) != null && m.primary && (t["--colors-primary"] = `${e.colors.primary}`), (p = e.colors) != null && p.text && (t["--colors-text"] = `${e.colors.text}`), (d = e.colors) != null && d.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (h = e.colors) != null && h.warning && (t["--colors-warning"] = `${e.colors.warning}`), (y = e.accessibility) != null && y.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (v = (x = e.accessibility) == null ? void 0 : x.colors) != null && v.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (g = (b = e.accessibility) == null ? void 0 : b.colors) != null && g.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (z = e.sizes) != null && z.small && (t["--size-small"] = `${e.sizes.small}`), (H = e.sizes) != null && H.normal && (t["--size-normal"] = `${e.sizes.normal}`), (T = e.sizes) != null && T.medium && (t["--size-medium"] = `${e.sizes.medium}`), (Z = e.sizes) != null && Z.large && (t["--size-large"] = `${e.sizes.large}`), e.typographyVariantMapping && (e.typographyVariantMapping.h1 && (t["--typography-h1"] = `${e.typographyVariantMapping.h1}`), e.typographyVariantMapping.h2 && (t["--typography-h2"] = `${e.typographyVariantMapping.h2}`), e.typographyVariantMapping.h3 && (t["--typography-h3"] = `${e.typographyVariantMapping.h3}`), e.typographyVariantMapping.h4 && (t["--typography-h4"] = `${e.typographyVariantMapping.h4}`), e.typographyVariantMapping.h5 && (t["--typography-h5"] = `${e.typographyVariantMapping.h5}`), e.typographyVariantMapping.h6 && (t["--typography-h6"] = `${e.typographyVariantMapping.h6}`)), t;
|
|
3340
3622
|
};
|
|
3341
|
-
var
|
|
3342
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3623
|
+
var Ar = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, W = (e, t, n, o) => {
|
|
3624
|
+
for (var r = o > 1 ? void 0 : o ? Fr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3343
3625
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3344
|
-
return o && r &&
|
|
3626
|
+
return o && r && Ar(t, n, r), r;
|
|
3345
3627
|
};
|
|
3346
|
-
const
|
|
3347
|
-
class t extends
|
|
3628
|
+
const Kr = (e) => `w-${e}`, qs = (e) => {
|
|
3629
|
+
class t extends Ir(Zr(e)) {
|
|
3348
3630
|
constructor() {
|
|
3349
3631
|
super(), this.listeners = [], this.setColumns = (o) => {
|
|
3350
3632
|
this.columns = o;
|
|
@@ -3365,12 +3647,12 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
|
|
|
3365
3647
|
}
|
|
3366
3648
|
connectedCallback() {
|
|
3367
3649
|
super.connectedCallback(), this.container = this.requestInstance("container"), this.container && Promise.all([
|
|
3368
|
-
|
|
3650
|
+
ze.getInstance(this.container),
|
|
3369
3651
|
this.container.getAsync("componentResolver")
|
|
3370
3652
|
]).then((o) => {
|
|
3371
3653
|
const r = o[0], i = o[1], a = r.nodes.get(this.nodeId || "");
|
|
3372
3654
|
if (a) {
|
|
3373
|
-
this._descriptor =
|
|
3655
|
+
this._descriptor = tt(a, this.branch), this._properties = a.attributes.properties, this._context = a.attributes.context, this._layout = a.attributes.layout, this.setProperties(a.attributes.properties), this.listeners.push(
|
|
3374
3656
|
r.events.subscribe(
|
|
3375
3657
|
"components:properties-changed",
|
|
3376
3658
|
(m, p) => {
|
|
@@ -3402,7 +3684,7 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
|
|
|
3402
3684
|
);
|
|
3403
3685
|
return;
|
|
3404
3686
|
}
|
|
3405
|
-
const u =
|
|
3687
|
+
const u = Kr(this._descriptor.type);
|
|
3406
3688
|
if (customElements.get(u))
|
|
3407
3689
|
return;
|
|
3408
3690
|
const c = i.getComponent(this._descriptor.type);
|
|
@@ -3422,19 +3704,19 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
|
|
|
3422
3704
|
});
|
|
3423
3705
|
}
|
|
3424
3706
|
_getContextStyles() {
|
|
3425
|
-
return this._context ?
|
|
3707
|
+
return this._context ? jr(this._context) : {};
|
|
3426
3708
|
}
|
|
3427
3709
|
render() {
|
|
3428
|
-
const o = super.render(), r = this._getContextStyles(), i =
|
|
3710
|
+
const o = super.render(), r = this._getContextStyles(), i = O`
|
|
3429
3711
|
<style>
|
|
3430
3712
|
:host {
|
|
3431
|
-
${Object.entries(r).map(([a, l]) =>
|
|
3432
|
-
${
|
|
3713
|
+
${Object.entries(r).map(([a, l]) => Ce`
|
|
3714
|
+
${rt(`${a}: ${l};`)}
|
|
3433
3715
|
`)}
|
|
3434
3716
|
}
|
|
3435
3717
|
</style>
|
|
3436
3718
|
`;
|
|
3437
|
-
return
|
|
3719
|
+
return O`
|
|
3438
3720
|
<style>
|
|
3439
3721
|
:host {
|
|
3440
3722
|
--size: ${this._layout.size || "full"};
|
|
@@ -3447,128 +3729,131 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
|
|
|
3447
3729
|
`;
|
|
3448
3730
|
}
|
|
3449
3731
|
}
|
|
3450
|
-
return
|
|
3451
|
-
|
|
3452
|
-
], t.prototype, "nodeId", 2),
|
|
3453
|
-
|
|
3454
|
-
], t.prototype, "branch", 2),
|
|
3455
|
-
|
|
3456
|
-
], t.prototype, "width", 2),
|
|
3457
|
-
|
|
3458
|
-
], t.prototype, "_columns", 2),
|
|
3459
|
-
|
|
3460
|
-
], t.prototype, "columns", 2),
|
|
3461
|
-
|
|
3462
|
-
], t.prototype, "_width", 2),
|
|
3463
|
-
|
|
3464
|
-
], t.prototype, "_descriptor", 2),
|
|
3465
|
-
|
|
3466
|
-
], t.prototype, "_properties", 2),
|
|
3467
|
-
|
|
3468
|
-
], t.prototype, "_context", 2),
|
|
3469
|
-
|
|
3732
|
+
return W([
|
|
3733
|
+
N({ type: String })
|
|
3734
|
+
], t.prototype, "nodeId", 2), W([
|
|
3735
|
+
N({ type: String })
|
|
3736
|
+
], t.prototype, "branch", 2), W([
|
|
3737
|
+
N({ type: String })
|
|
3738
|
+
], t.prototype, "width", 2), W([
|
|
3739
|
+
N({ type: Number })
|
|
3740
|
+
], t.prototype, "_columns", 2), W([
|
|
3741
|
+
N({ type: Number })
|
|
3742
|
+
], t.prototype, "columns", 2), W([
|
|
3743
|
+
X()
|
|
3744
|
+
], t.prototype, "_width", 2), W([
|
|
3745
|
+
X()
|
|
3746
|
+
], t.prototype, "_descriptor", 2), W([
|
|
3747
|
+
X()
|
|
3748
|
+
], t.prototype, "_properties", 2), W([
|
|
3749
|
+
X()
|
|
3750
|
+
], t.prototype, "_context", 2), W([
|
|
3751
|
+
X()
|
|
3470
3752
|
], t.prototype, "_layout", 2), t;
|
|
3471
3753
|
};
|
|
3472
3754
|
export {
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3755
|
+
cn as AnchorLink,
|
|
3756
|
+
be as Button,
|
|
3757
|
+
Re as ButtonUi,
|
|
3758
|
+
ms as Checkbox,
|
|
3759
|
+
mn as ColumnContext,
|
|
3760
|
+
ut as ComponentNodeContext,
|
|
3761
|
+
hn as ComponentPropertyContext,
|
|
3762
|
+
Bs as Confirm,
|
|
3763
|
+
Ks as ConsumerMixin,
|
|
3764
|
+
dn as ContainerContext,
|
|
3765
|
+
fn as ConversationContext,
|
|
3766
|
+
Fs as DataProvider,
|
|
3767
|
+
yr as DateFormats,
|
|
3768
|
+
_s as Drawer,
|
|
3769
|
+
eo as DrawerAnimationType,
|
|
3770
|
+
Ts as Dropdown,
|
|
3771
|
+
po as Empty,
|
|
3772
|
+
zs as Grid,
|
|
3773
|
+
yt as Html,
|
|
3774
|
+
fe as HtmlUi,
|
|
3775
|
+
Co as Icon,
|
|
3776
|
+
Ds as Input,
|
|
3777
|
+
wo as ItemList,
|
|
3778
|
+
Hs as ItemTree,
|
|
3779
|
+
nr as Lightbox,
|
|
3780
|
+
Ne as Link,
|
|
3781
|
+
vo as List,
|
|
3782
|
+
rr as Modal,
|
|
3783
|
+
As as NodeConnector,
|
|
3784
|
+
Ps as NotFound,
|
|
3785
|
+
Ct as Overlay,
|
|
3786
|
+
bo as Paragraph,
|
|
3787
|
+
Us as PendingState,
|
|
3788
|
+
ie as Portal,
|
|
3789
|
+
Ys as ProviderMixin,
|
|
3790
|
+
Zr as Requester,
|
|
3791
|
+
$o as RouteLink,
|
|
3792
|
+
pn as RoutingContext,
|
|
3793
|
+
Ge as StyledText,
|
|
3794
|
+
ae as SymbolBadge,
|
|
3795
|
+
F as SymbolBadgeUi,
|
|
3796
|
+
Vs as TabStop,
|
|
3797
|
+
Pe as Text,
|
|
3798
|
+
gr as TextLink,
|
|
3799
|
+
Ns as Timestamp,
|
|
3800
|
+
Is as Tooltip,
|
|
3801
|
+
Os as TransitionComponent,
|
|
3802
|
+
re as Typography,
|
|
3803
|
+
ge as TypographyUi,
|
|
3804
|
+
qs as WidgetComponentMixin,
|
|
3805
|
+
Er as WidgetLink,
|
|
3806
|
+
Ws as WidgetOverlayOutlet,
|
|
3807
|
+
Q as borderTabStyle,
|
|
3808
|
+
Qe as browser,
|
|
3809
|
+
Fn as buttonCss,
|
|
3810
|
+
ft as contentBox,
|
|
3811
|
+
V as convertToStringAttributes,
|
|
3812
|
+
ds as createEmptyComponent,
|
|
3813
|
+
Zs as createReactComponent,
|
|
3814
|
+
js as createWebComponent,
|
|
3815
|
+
sn as defaultRenderInstructions,
|
|
3816
|
+
Jt as embeddedLinkMapper,
|
|
3817
|
+
tn as filterCssProps,
|
|
3818
|
+
en as filterCssPropsStyle,
|
|
3819
|
+
nn as genericHashLink,
|
|
3820
|
+
Rs as genericHtml,
|
|
3821
|
+
pe as headingElement,
|
|
3822
|
+
rn as imageLightboxRenderer,
|
|
3823
|
+
Ls as invertedHoverButton,
|
|
3824
|
+
Ss as itemList,
|
|
3825
|
+
Kn as linkTabStyle,
|
|
3826
|
+
Un as list,
|
|
3827
|
+
Ms as paddedBorderTabStyle,
|
|
3828
|
+
on as processHtmlString,
|
|
3829
|
+
Le as transitionComposer,
|
|
3830
|
+
hs as useAction,
|
|
3831
|
+
ps as useChildren,
|
|
3832
|
+
fs as useColumns,
|
|
3833
|
+
gs as useComponent,
|
|
3834
|
+
De as useComponentDescriptor,
|
|
3835
|
+
He as useComponentNode,
|
|
3836
|
+
oe as useComponentPlatform,
|
|
3552
3837
|
I as useContainer,
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3838
|
+
Ln as useContext,
|
|
3839
|
+
ys as useConversation,
|
|
3840
|
+
Cs as useDispatch,
|
|
3841
|
+
A as useEventListener,
|
|
3842
|
+
_n as useEvents,
|
|
3843
|
+
K as useIsMounted,
|
|
3844
|
+
vs as useIsTabbing,
|
|
3845
|
+
te as useKeyPress,
|
|
3846
|
+
bs as useLayout,
|
|
3847
|
+
dt as usePrevious,
|
|
3848
|
+
ws as useProperties,
|
|
3849
|
+
xs as useRenderState,
|
|
3850
|
+
$s as useRouteData,
|
|
3851
|
+
mt as useRouter,
|
|
3852
|
+
ht as useScroll,
|
|
3853
|
+
Es as useSettings,
|
|
3854
|
+
pt as useToggle,
|
|
3855
|
+
ks as useTransitionEnd,
|
|
3856
|
+
Be as useUniqueMenu,
|
|
3857
|
+
we as useWidgetEvent
|
|
3573
3858
|
};
|
|
3574
3859
|
//# sourceMappingURL=index.js.map
|