@telia-ace/widget-ui 1.0.30 → 1.0.31-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/lightbox.d.ts +0 -2
- package/dist/index.js +354 -356
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var st = Object.defineProperty, it = Object.defineProperties;
|
|
2
|
+
var at = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ne = Object.getOwnPropertySymbols;
|
|
4
4
|
var He = Object.prototype.hasOwnProperty, Te = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var me = (e, t, n) => t in e ?
|
|
5
|
+
var me = (e, t, n) => t in e ? st(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, h = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
He.call(t, n) && me(e, n, t[n]);
|
|
8
8
|
if (ne)
|
|
9
9
|
for (var n of ne(t))
|
|
10
10
|
Te.call(t, n) && me(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, k = (e, t) =>
|
|
12
|
+
}, k = (e, t) => it(e, at(t));
|
|
13
13
|
var S = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
@@ -20,18 +20,18 @@ var S = (e, t) => {
|
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
22
|
var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
|
-
import { Container as
|
|
24
|
-
import r, { forwardRef as N, createContext as
|
|
25
|
-
import { ComponentPlatform as
|
|
26
|
-
import { css as L, keyframes as
|
|
23
|
+
import { Container as ct, WidgetState as lt } from "@webprovisions/platform";
|
|
24
|
+
import r, { forwardRef as N, createContext as X, useContext as K, useState as $, useEffect as v, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as se, Component as ut, lazy as mt } from "react";
|
|
25
|
+
import { ComponentPlatform as dt, asDescriptor as ft, createEventSubscriber as ht, ComponentQuery as pt, WidgetRenderState as oe, extendComponent as gt } from "@telia-ace/widget-core";
|
|
26
|
+
import { css as L, keyframes as We } from "@emotion/react";
|
|
27
27
|
import y from "@emotion/styled";
|
|
28
|
-
import { kebabCase as
|
|
29
|
-
import { CSSTransition as Ie, Transition as
|
|
30
|
-
import { createPortal as
|
|
31
|
-
import { HistoryMode as Be, getSpecificWidgetPath as
|
|
28
|
+
import { kebabCase as Ct, appendClassNames as M, uuid as q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
|
|
29
|
+
import { CSSTransition as Ie, Transition as yt } from "react-transition-group";
|
|
30
|
+
import { createPortal as bt } from "react-dom";
|
|
31
|
+
import { HistoryMode as Be, getSpecificWidgetPath as vt } from "@telia-ace/widget-routing";
|
|
32
32
|
import { Link as fe } from "react-router-dom";
|
|
33
33
|
import ze from "htmr";
|
|
34
|
-
const
|
|
34
|
+
const Et = (e) => e === "entering" || e === "entered", xt = (e) => e === "exiting" || e === "exited", A = {
|
|
35
35
|
fade: {
|
|
36
36
|
in: "opacity: 1;",
|
|
37
37
|
out: "opacity: 0;"
|
|
@@ -56,22 +56,22 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
|
|
|
56
56
|
in: "transform: scale(1);",
|
|
57
57
|
out: "transform: scale(0);"
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, wt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
|
|
60
60
|
compose: (e = "exited", t) => {
|
|
61
|
-
const { enter: n, exit: o } = t, s = n.transitionKeys.split(" "), i =
|
|
62
|
-
if (
|
|
61
|
+
const { enter: n, exit: o } = t, s = n.transitionKeys.split(" "), i = wt.indexOf(s[0]) > -1 ? "transform" : "opacity";
|
|
62
|
+
if (Et(e))
|
|
63
63
|
return s && s.length > 0 ? L`
|
|
64
|
-
${s && s.length > 0 && s.map((l) =>
|
|
64
|
+
${s && s.length > 0 && s.map((l) => A[l] ? A[l].in : "")}
|
|
65
65
|
transition: ${i} ${n.duration}ms ${n.easing};
|
|
66
66
|
` : "";
|
|
67
67
|
const a = s && s.length > 0 && L`
|
|
68
|
-
${s.map((l) =>
|
|
68
|
+
${s.map((l) => A[l] ? A[l].out : "")}
|
|
69
69
|
`;
|
|
70
|
-
if (
|
|
70
|
+
if (xt(e)) {
|
|
71
71
|
const l = o.transitionKeys.split(" ");
|
|
72
72
|
return l && l.length > 0 && e === "exiting" ? L`
|
|
73
73
|
${a};
|
|
74
|
-
${l.map((u) =>
|
|
74
|
+
${l.map((u) => A[u] ? A[u].out : "")}
|
|
75
75
|
transition: ${i} ${o.duration}ms ${o.easing};
|
|
76
76
|
` : a;
|
|
77
77
|
}
|
|
@@ -100,7 +100,7 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
|
-
get: (e) =>
|
|
103
|
+
get: (e) => A[e]
|
|
104
104
|
};
|
|
105
105
|
var pe = /* @__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))(pe || {});
|
|
106
106
|
const Ne = () => {
|
|
@@ -134,42 +134,42 @@ const Ne = () => {
|
|
|
134
134
|
return "edge-chromium";
|
|
135
135
|
if ((d || c) && !!u)
|
|
136
136
|
return "blink";
|
|
137
|
-
},
|
|
137
|
+
}, $t = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
|
|
138
138
|
const o = typeof e[n] == "undefined" ? "" : e[n], s = typeof o;
|
|
139
|
-
if (
|
|
139
|
+
if ($t.indexOf(s) > -1) {
|
|
140
140
|
const i = n.substring(0, 5);
|
|
141
|
-
i === "data-" || i === "aria-" ? t[
|
|
141
|
+
i === "data-" || i === "aria-" ? t[Ct(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
|
|
142
142
|
} else
|
|
143
143
|
t[n] = o;
|
|
144
144
|
return t;
|
|
145
|
-
}, {}),
|
|
145
|
+
}, {}), kt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(Fn, h({}, t)) : null, ho = kt, Lt = (e) => new RegExp("^#", "i").test(e), Mt = (e) => (o) => {
|
|
146
146
|
var s = o, { children: t } = s, n = S(s, ["children"]);
|
|
147
147
|
const {
|
|
148
148
|
implementation: i,
|
|
149
149
|
name: a
|
|
150
150
|
} = e.get("$widget"), { href: l = "" } = n;
|
|
151
|
-
if (
|
|
152
|
-
return /* @__PURE__ */ r.createElement(
|
|
151
|
+
if (Lt(l))
|
|
152
|
+
return /* @__PURE__ */ r.createElement(Vt, { smooth: !0, to: l }, t);
|
|
153
153
|
const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
|
|
154
154
|
if (m && m.length >= 4) {
|
|
155
155
|
const p = m[4];
|
|
156
156
|
if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
|
|
157
|
-
return /* @__PURE__ */ r.createElement(
|
|
157
|
+
return /* @__PURE__ */ r.createElement(Gr, { widgetName: p }, t);
|
|
158
158
|
}
|
|
159
159
|
return /* @__PURE__ */ r.createElement("a", h({}, n), t);
|
|
160
|
-
},
|
|
160
|
+
}, St = Mt, Oe = (e) => {
|
|
161
161
|
const t = {};
|
|
162
162
|
return Object.keys(e).forEach((n) => {
|
|
163
163
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
164
164
|
}), t;
|
|
165
|
-
},
|
|
165
|
+
}, Rt = (e) => {
|
|
166
166
|
let t = "";
|
|
167
167
|
return Object.keys(Oe(e)).forEach((n) => {
|
|
168
168
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
169
169
|
}), L`
|
|
170
170
|
${t}
|
|
171
171
|
`;
|
|
172
|
-
},
|
|
172
|
+
}, Ht = Oe, Tt = (e, t) => {
|
|
173
173
|
let n = "";
|
|
174
174
|
const o = () => {
|
|
175
175
|
n = "";
|
|
@@ -199,18 +199,18 @@ const Ne = () => {
|
|
|
199
199
|
}
|
|
200
200
|
`;
|
|
201
201
|
};
|
|
202
|
-
function
|
|
202
|
+
function Dt(e, t) {
|
|
203
203
|
return t ? ze(e, t) : ze(e);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBody: e }), zt = (e, t) => ({
|
|
206
206
|
transform: {
|
|
207
|
-
a:
|
|
208
|
-
img:
|
|
207
|
+
a: St(e),
|
|
208
|
+
img: Bt(t)
|
|
209
209
|
}
|
|
210
|
-
}),
|
|
210
|
+
}), Nt = (e) => Tt(e, "a"), Vt = Nt, ae = N((s, o) => {
|
|
211
211
|
var i = s, { className: e, children: t } = i, n = S(i, ["className", "children"]);
|
|
212
212
|
return /* @__PURE__ */ r.createElement(
|
|
213
|
-
|
|
213
|
+
Zt,
|
|
214
214
|
k(h({
|
|
215
215
|
type: "button",
|
|
216
216
|
className: M(e, "humany-button")
|
|
@@ -219,7 +219,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
219
219
|
}),
|
|
220
220
|
t
|
|
221
221
|
);
|
|
222
|
-
}),
|
|
222
|
+
}), Zt = y.button`
|
|
223
223
|
-webkit-appearance: button;
|
|
224
224
|
text-transform: none;
|
|
225
225
|
overflow: visible;
|
|
@@ -232,7 +232,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
232
232
|
line-height: normal;
|
|
233
233
|
margin: 0;
|
|
234
234
|
padding: 0;
|
|
235
|
-
`,
|
|
235
|
+
`, Wt = (s) => {
|
|
236
236
|
var i = s, {
|
|
237
237
|
onChange: e = () => {
|
|
238
238
|
},
|
|
@@ -254,43 +254,43 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
254
254
|
onChange: (a) => e(a.target.value, a.currentTarget.checked)
|
|
255
255
|
}, V(o))
|
|
256
256
|
);
|
|
257
|
-
},
|
|
257
|
+
}, po = Wt, It = X(new ct()), Ot = X(1), Pe = X({
|
|
258
258
|
id: "",
|
|
259
259
|
type: "",
|
|
260
260
|
name: "",
|
|
261
261
|
branch: ""
|
|
262
|
-
}),
|
|
263
|
-
const n = ye().id, o =
|
|
262
|
+
}), Pt = X({}), Ft = X(null), At = X(null), Kt = () => K(Pe), ye = Kt, Yt = () => K(It), Z = Yt, jt = (e, t) => {
|
|
263
|
+
const n = ye().id, o = Z();
|
|
264
264
|
return (s, i) => {
|
|
265
265
|
(t || o).getAsync("actionResolver").then((a) => {
|
|
266
266
|
a.action(e || n, s, i);
|
|
267
267
|
});
|
|
268
268
|
};
|
|
269
|
-
},
|
|
270
|
-
const t =
|
|
269
|
+
}, go = jt, Xt = (e) => {
|
|
270
|
+
const t = K(Pe), n = U(), [o, s] = $();
|
|
271
271
|
return v(() => {
|
|
272
272
|
if ((e || t.id) && n) {
|
|
273
273
|
const i = n.nodes.get(e || t.id);
|
|
274
274
|
s(i);
|
|
275
275
|
}
|
|
276
276
|
}, [e, t.id, n]), o;
|
|
277
|
-
}, be =
|
|
277
|
+
}, be = Xt, Ut = () => {
|
|
278
278
|
const e = R(!1);
|
|
279
279
|
return v(() => (e.current = !0, () => {
|
|
280
280
|
e.current = !1;
|
|
281
281
|
}), []), e;
|
|
282
|
-
}, O =
|
|
283
|
-
const t =
|
|
282
|
+
}, O = Ut, _t = (e) => {
|
|
283
|
+
const t = Z(), [n, o] = $(null), s = O();
|
|
284
284
|
return v(() => {
|
|
285
|
-
|
|
285
|
+
dt.getInstance(e || t).then((i) => {
|
|
286
286
|
s.current && o(i);
|
|
287
287
|
});
|
|
288
288
|
}, [s]), n;
|
|
289
|
-
},
|
|
290
|
-
const e = be(), t =
|
|
289
|
+
}, U = _t, qt = () => {
|
|
290
|
+
const e = be(), t = U(), [n, o] = $([]), s = O(), i = H(
|
|
291
291
|
(a) => {
|
|
292
292
|
if (t && s.current && a) {
|
|
293
|
-
const l = t.getBranch(a), u = a.getChildren(l).map((c) =>
|
|
293
|
+
const l = t.getBranch(a), u = a.getChildren(l).map((c) => ft(c));
|
|
294
294
|
o(u);
|
|
295
295
|
}
|
|
296
296
|
},
|
|
@@ -300,7 +300,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
300
300
|
e && i(e);
|
|
301
301
|
}, [e, t]), v(() => {
|
|
302
302
|
if (t) {
|
|
303
|
-
const [a, l] =
|
|
303
|
+
const [a, l] = ht(t.events);
|
|
304
304
|
return a("components:set-layout", (u, c) => {
|
|
305
305
|
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
306
306
|
}), a("components:node-appended", (u, c) => {
|
|
@@ -312,8 +312,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
}, [e, t, i]), n;
|
|
315
|
-
},
|
|
316
|
-
const n = ye(), o =
|
|
315
|
+
}, Co = qt, Qt = () => K(Ot), yo = Qt, Gt = (e, t) => {
|
|
316
|
+
const n = ye(), o = Z(), [s, i] = $(void 0), a = O(), l = e || n.type || "";
|
|
317
317
|
return v(() => {
|
|
318
318
|
if (l) {
|
|
319
319
|
let u;
|
|
@@ -330,8 +330,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
}, [a, l, t, o]), s;
|
|
333
|
-
},
|
|
334
|
-
const t = be(e), n =
|
|
333
|
+
}, bo = Gt, Jt = (e) => {
|
|
334
|
+
const t = be(e), n = U(), [o, s] = $({}), i = O();
|
|
335
335
|
return v(() => {
|
|
336
336
|
t && i.current && s(t.attributes.context);
|
|
337
337
|
}, [i, t]), v(() => {
|
|
@@ -347,11 +347,11 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
349
|
}, [i, n, t]), o;
|
|
350
|
-
},
|
|
351
|
-
const e =
|
|
350
|
+
}, en = Jt, tn = () => K(At), vo = tn, nn = () => {
|
|
351
|
+
const e = U(), t = ye(), [n, o] = $([]), [s, i] = $();
|
|
352
352
|
return v(() => {
|
|
353
353
|
if (e && t) {
|
|
354
|
-
const a = new
|
|
354
|
+
const a = new pt(e).withId(t.id), l = e.actions(a, t.type || q());
|
|
355
355
|
i(l), n !== null && (n.forEach((u) => {
|
|
356
356
|
l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
|
|
357
357
|
}), o(null));
|
|
@@ -364,7 +364,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
364
364
|
reject: c
|
|
365
365
|
});
|
|
366
366
|
}) : s.dispatch(a, l);
|
|
367
|
-
},
|
|
367
|
+
}, Eo = nn, I = (e, t, n = window, o = () => !0) => {
|
|
368
368
|
const s = R(() => {
|
|
369
369
|
});
|
|
370
370
|
v(() => {
|
|
@@ -377,10 +377,10 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
377
377
|
n.removeEventListener(e, a);
|
|
378
378
|
};
|
|
379
379
|
}, [e, n]);
|
|
380
|
-
},
|
|
381
|
-
const t =
|
|
380
|
+
}, rn = (e) => {
|
|
381
|
+
const t = Z(), { events: n } = (e || t).get("$widget");
|
|
382
382
|
return n;
|
|
383
|
-
},
|
|
383
|
+
}, on = rn, sn = () => {
|
|
384
384
|
const [e, t] = $(!1);
|
|
385
385
|
return v(() => {
|
|
386
386
|
const n = () => {
|
|
@@ -392,7 +392,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
392
392
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
393
393
|
};
|
|
394
394
|
}, []), e;
|
|
395
|
-
},
|
|
395
|
+
}, xo = sn, an = (e, t) => {
|
|
396
396
|
const [n, o] = $(!1), s = H(
|
|
397
397
|
(a) => {
|
|
398
398
|
const { key: l } = a;
|
|
@@ -406,8 +406,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
406
406
|
[o]
|
|
407
407
|
);
|
|
408
408
|
return I("keydown", s, window), I("keyup", i, window), n;
|
|
409
|
-
},
|
|
410
|
-
const t = be(e), n =
|
|
409
|
+
}, j = an, cn = (e) => {
|
|
410
|
+
const t = be(e), n = U(), [o, s] = $({}), i = O();
|
|
411
411
|
return v(() => {
|
|
412
412
|
t && i.current && s(t.attributes.layout);
|
|
413
413
|
}, [t, i]), v(() => {
|
|
@@ -423,13 +423,13 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
425
|
}, [n, i, t]), o;
|
|
426
|
-
},
|
|
426
|
+
}, wo = cn, ln = (e) => {
|
|
427
427
|
const t = R();
|
|
428
428
|
return v(() => {
|
|
429
429
|
t.current = e;
|
|
430
430
|
}), t.current;
|
|
431
|
-
}, Fe =
|
|
432
|
-
const [t, n] = $(), o =
|
|
431
|
+
}, Fe = ln, un = () => K(Pt), $o = un, mn = (e) => {
|
|
432
|
+
const [t, n] = $(), o = Z(), s = O();
|
|
433
433
|
return v(() => {
|
|
434
434
|
let i;
|
|
435
435
|
const a = (e || o).get("$widget");
|
|
@@ -455,8 +455,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
455
455
|
i && i();
|
|
456
456
|
};
|
|
457
457
|
}, [s]), t;
|
|
458
|
-
},
|
|
459
|
-
const t =
|
|
458
|
+
}, ko = mn, dn = () => K(Ft), Ae = dn, fn = (e) => {
|
|
459
|
+
const t = Z(), n = Ae(), [o, s] = $({ name: "", params: {} }), i = O();
|
|
460
460
|
return v(() => {
|
|
461
461
|
const a = (e || t).get("$widget");
|
|
462
462
|
if (!a)
|
|
@@ -474,7 +474,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
474
474
|
De(u), s({ name: l, params: u });
|
|
475
475
|
}
|
|
476
476
|
}, [n, i]), o;
|
|
477
|
-
},
|
|
477
|
+
}, Lo = fn, Ke = (e) => {
|
|
478
478
|
const t = R(), n = R(0);
|
|
479
479
|
let o;
|
|
480
480
|
const s = H(() => {
|
|
@@ -500,8 +500,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
500
500
|
},
|
|
501
501
|
[t, n]
|
|
502
502
|
);
|
|
503
|
-
return I("scroll", s, t.current, () => t.current && e), I("touchstart", i, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [
|
|
504
|
-
},
|
|
503
|
+
return I("scroll", s, t.current, () => t.current && e), I("touchstart", i, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [hn, t] : ["", t];
|
|
504
|
+
}, hn = `
|
|
505
505
|
overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
|
|
506
506
|
overflow-x: hidden;
|
|
507
507
|
-ms-overflow-style: none; /* IE 10+ */
|
|
@@ -529,20 +529,20 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
529
529
|
background-color: #7F7F7F;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
`,
|
|
533
|
-
const [e, t] = $(null), n =
|
|
532
|
+
`, pn = () => {
|
|
533
|
+
const [e, t] = $(null), n = Z(), o = O();
|
|
534
534
|
return v(() => {
|
|
535
535
|
n.get("settings").then((s) => {
|
|
536
536
|
o.current && t(s);
|
|
537
537
|
});
|
|
538
538
|
}, [o]), e;
|
|
539
|
-
},
|
|
539
|
+
}, Mo = pn, gn = (e = !1) => {
|
|
540
540
|
const [t, n] = $(e), o = H((s) => {
|
|
541
541
|
n(typeof s == "boolean" ? s : (i) => !i);
|
|
542
542
|
}, []);
|
|
543
543
|
return [t, o];
|
|
544
|
-
}, Ye =
|
|
545
|
-
const t =
|
|
544
|
+
}, Ye = gn, So = (e) => {
|
|
545
|
+
const t = Z(), n = U(), o = t.get("widgetDOMElement"), [s, i] = $(null), [a, l] = $(null), u = O();
|
|
546
546
|
v(() => {
|
|
547
547
|
if (n && u.current) {
|
|
548
548
|
const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
|
|
@@ -563,8 +563,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
563
563
|
[e, u, s, a]
|
|
564
564
|
);
|
|
565
565
|
I("transitionend", c, s), I("transitionend", c, a);
|
|
566
|
-
},
|
|
567
|
-
const s =
|
|
566
|
+
}, Cn = (e, t, n = [], o) => {
|
|
567
|
+
const s = on(o);
|
|
568
568
|
return v(() => {
|
|
569
569
|
if (s) {
|
|
570
570
|
const i = s.subscribe(e, t);
|
|
@@ -573,12 +573,12 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
575
|
}, [s].concat(n)), (i) => s == null ? void 0 : s.dispatch(e, i);
|
|
576
|
-
}, ce =
|
|
576
|
+
}, ce = Cn, yn = (e, t) => {
|
|
577
577
|
const n = ce("widget:menu-toggled", (o, s) => {
|
|
578
578
|
s !== e && t();
|
|
579
579
|
});
|
|
580
580
|
return () => n(e);
|
|
581
|
-
}, ve =
|
|
581
|
+
}, ve = yn, bn = (o) => {
|
|
582
582
|
var s = o, { className: e, children: t } = s, n = S(s, ["className", "children"]);
|
|
583
583
|
return /* @__PURE__ */ r.createElement(
|
|
584
584
|
"span",
|
|
@@ -587,7 +587,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
587
587
|
}, V(n)),
|
|
588
588
|
t
|
|
589
589
|
);
|
|
590
|
-
}, Ee =
|
|
590
|
+
}, Ee = bn, je = (e) => L`
|
|
591
591
|
display: flex;
|
|
592
592
|
justify-content: center;
|
|
593
593
|
flex-direction: column;
|
|
@@ -596,7 +596,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
596
596
|
border: ${e.theme.border};
|
|
597
597
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
598
598
|
${e["data-loading"] && "min-height: 150px;"}
|
|
599
|
-
`,
|
|
599
|
+
`, vn = (e) => {
|
|
600
600
|
var t, n, o;
|
|
601
601
|
return L`
|
|
602
602
|
cursor: pointer;
|
|
@@ -608,11 +608,11 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
608
608
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
609
609
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
610
610
|
`;
|
|
611
|
-
},
|
|
611
|
+
}, Ro = (e) => {
|
|
612
612
|
var a;
|
|
613
613
|
const { primaryColor: t, secondaryColor: n, active: o, theme: s, disabled: i } = e;
|
|
614
614
|
return L`
|
|
615
|
-
${
|
|
615
|
+
${vn(e)}
|
|
616
616
|
border: 1px solid ${o ? n : t};
|
|
617
617
|
background-color: ${o ? t : n};
|
|
618
618
|
|
|
@@ -642,24 +642,24 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
&:focus-visible {
|
|
645
|
-
${
|
|
645
|
+
${F(e)};
|
|
646
646
|
}
|
|
647
647
|
`}
|
|
648
648
|
`;
|
|
649
|
-
},
|
|
649
|
+
}, F = (e) => {
|
|
650
650
|
var t, n, o;
|
|
651
651
|
return L`
|
|
652
652
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
653
653
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
654
654
|
border-color: transparent;
|
|
655
655
|
`;
|
|
656
|
-
},
|
|
657
|
-
${
|
|
656
|
+
}, En = (e) => L`
|
|
657
|
+
${F(e)}
|
|
658
658
|
text-decoration: underline;
|
|
659
|
-
`,
|
|
659
|
+
`, Ho = (e) => {
|
|
660
660
|
var t;
|
|
661
661
|
return L`
|
|
662
|
-
${
|
|
662
|
+
${F(e)}
|
|
663
663
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
664
664
|
`;
|
|
665
665
|
}, xe = y(ae)`
|
|
@@ -682,7 +682,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
&:focus-visible {
|
|
685
|
-
${
|
|
685
|
+
${F}
|
|
686
686
|
padding: ${(e) => {
|
|
687
687
|
var t;
|
|
688
688
|
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
@@ -701,7 +701,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
701
701
|
var t;
|
|
702
702
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
703
703
|
}};
|
|
704
|
-
`,
|
|
704
|
+
`, xn = (e) => {
|
|
705
705
|
var t;
|
|
706
706
|
return L`
|
|
707
707
|
padding: 0;
|
|
@@ -723,7 +723,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
723
723
|
margin: 0;
|
|
724
724
|
}
|
|
725
725
|
`;
|
|
726
|
-
},
|
|
726
|
+
}, To = (e) => {
|
|
727
727
|
var t, n, o, s;
|
|
728
728
|
return L`
|
|
729
729
|
> div {
|
|
@@ -739,7 +739,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
739
739
|
)}
|
|
740
740
|
}
|
|
741
741
|
> ul {
|
|
742
|
-
${
|
|
742
|
+
${xn(e)}
|
|
743
743
|
}
|
|
744
744
|
${ie(e)(
|
|
745
745
|
"h1",
|
|
@@ -759,7 +759,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
759
759
|
`
|
|
760
760
|
)}
|
|
761
761
|
`;
|
|
762
|
-
},
|
|
762
|
+
}, Do = (e) => {
|
|
763
763
|
var t, n, o, s, i, a;
|
|
764
764
|
return L`
|
|
765
765
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -788,7 +788,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
788
788
|
a {
|
|
789
789
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
790
790
|
&:focus-visible {
|
|
791
|
-
${
|
|
791
|
+
${En(e)};
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
|
|
@@ -814,7 +814,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
814
814
|
margin: 0;
|
|
815
815
|
}
|
|
816
816
|
`;
|
|
817
|
-
},
|
|
817
|
+
}, wn = ({
|
|
818
818
|
elementId: e = "humany-portal-elements",
|
|
819
819
|
parent: t = document.body,
|
|
820
820
|
children: n
|
|
@@ -825,8 +825,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
825
825
|
});
|
|
826
826
|
return v(() => (t.appendChild(o), () => {
|
|
827
827
|
o.childElementCount <= 1 && o.remove();
|
|
828
|
-
}), [o]),
|
|
829
|
-
},
|
|
828
|
+
}), [o]), bt(n, o);
|
|
829
|
+
}, Q = wn, $n = (l) => {
|
|
830
830
|
var u = l, {
|
|
831
831
|
text: e = "",
|
|
832
832
|
backgroundSize: t = "contain",
|
|
@@ -923,7 +923,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
923
923
|
case "caret-left":
|
|
924
924
|
return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" }));
|
|
925
925
|
case "caret-up":
|
|
926
|
-
return /* @__PURE__ */ r.createElement(
|
|
926
|
+
return /* @__PURE__ */ r.createElement(kn, h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
927
927
|
case "caret-down":
|
|
928
928
|
return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
929
929
|
case "back":
|
|
@@ -1309,7 +1309,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
1309
1309
|
}
|
|
1310
1310
|
case "FontAwesome":
|
|
1311
1311
|
return /* @__PURE__ */ r.createElement(
|
|
1312
|
-
|
|
1312
|
+
jn,
|
|
1313
1313
|
h({
|
|
1314
1314
|
className: i,
|
|
1315
1315
|
faIcon: m,
|
|
@@ -1327,9 +1327,9 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
1327
1327
|
e.substring(0, 2)
|
|
1328
1328
|
) : null;
|
|
1329
1329
|
}
|
|
1330
|
-
},
|
|
1330
|
+
}, kn = y.svg`
|
|
1331
1331
|
transform: rotate(180deg);
|
|
1332
|
-
`,
|
|
1332
|
+
`, G = $n, Ln = {
|
|
1333
1333
|
h1: "h1",
|
|
1334
1334
|
h2: "h2",
|
|
1335
1335
|
h3: "h3",
|
|
@@ -1338,12 +1338,12 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
|
|
|
1338
1338
|
h6: "h6",
|
|
1339
1339
|
p: "p",
|
|
1340
1340
|
span: "span"
|
|
1341
|
-
},
|
|
1342
|
-
const { typographyVariantMapping: s = {} } =
|
|
1343
|
-
return /* @__PURE__ */ r.createElement(
|
|
1344
|
-
},
|
|
1345
|
-
var
|
|
1346
|
-
const
|
|
1341
|
+
}, Mn = ({ variant: e, component: t, className: n, children: o }) => {
|
|
1342
|
+
const { typographyVariantMapping: s = {} } = en(), i = h(h({}, Ln), s), a = t || i[e] || "span";
|
|
1343
|
+
return /* @__PURE__ */ r.createElement(Sn, { className: n, as: a }, o);
|
|
1344
|
+
}, Sn = y.span``, _ = Mn;
|
|
1345
|
+
var Rn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Rn || {});
|
|
1346
|
+
const Hn = 300, Tn = ({
|
|
1347
1347
|
className: e,
|
|
1348
1348
|
children: t,
|
|
1349
1349
|
header: n,
|
|
@@ -1355,11 +1355,11 @@ const Dn = 300, Bn = ({
|
|
|
1355
1355
|
type: "slide-in-bottom"
|
|
1356
1356
|
}
|
|
1357
1357
|
}) => {
|
|
1358
|
-
const { duration: u =
|
|
1358
|
+
const { duration: u = Hn } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, C] = Ye(), x = Fe(f), b = R(q());
|
|
1359
1359
|
v(() => {
|
|
1360
1360
|
o && o(f);
|
|
1361
1361
|
}, [f]);
|
|
1362
|
-
const E =
|
|
1362
|
+
const E = j("Escape");
|
|
1363
1363
|
v(() => {
|
|
1364
1364
|
E && C(!1);
|
|
1365
1365
|
}, [E]), I(
|
|
@@ -1378,7 +1378,7 @@ const Dn = 300, Bn = ({
|
|
|
1378
1378
|
}), v(() => {
|
|
1379
1379
|
f && c.current ? c.current.focus() : !f && m.current && x && m.current.focus();
|
|
1380
1380
|
}, [f, c.current, m.current]);
|
|
1381
|
-
const B =
|
|
1381
|
+
const B = Zn[l.type];
|
|
1382
1382
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
1383
1383
|
Ie,
|
|
1384
1384
|
{
|
|
@@ -1388,7 +1388,7 @@ const Dn = 300, Bn = ({
|
|
|
1388
1388
|
unmountOnExit: !0,
|
|
1389
1389
|
timeout: u
|
|
1390
1390
|
},
|
|
1391
|
-
/* @__PURE__ */ r.createElement(
|
|
1391
|
+
/* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
1392
1392
|
B,
|
|
1393
1393
|
{
|
|
1394
1394
|
duration: u,
|
|
@@ -1410,9 +1410,9 @@ const Dn = 300, Bn = ({
|
|
|
1410
1410
|
ref: c,
|
|
1411
1411
|
"aria-label": a
|
|
1412
1412
|
},
|
|
1413
|
-
/* @__PURE__ */ r.createElement(
|
|
1413
|
+
/* @__PURE__ */ r.createElement(G, { symbol: { type: "Svg", content: "close" } })
|
|
1414
1414
|
),
|
|
1415
|
-
!!n && /* @__PURE__ */ r.createElement(
|
|
1415
|
+
!!n && /* @__PURE__ */ r.createElement(Dn, { variant: "h1", className: "humany-drawer-header" }, n),
|
|
1416
1416
|
t
|
|
1417
1417
|
))
|
|
1418
1418
|
), r.cloneElement(s, {
|
|
@@ -1423,7 +1423,7 @@ const Dn = 300, Bn = ({
|
|
|
1423
1423
|
"aria-label": s.props.title,
|
|
1424
1424
|
"aria-expanded": f
|
|
1425
1425
|
}));
|
|
1426
|
-
},
|
|
1426
|
+
}, Bo = Tn, le = y.div`
|
|
1427
1427
|
font-family: ${(e) => {
|
|
1428
1428
|
var t;
|
|
1429
1429
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1440,7 +1440,7 @@ const Dn = 300, Bn = ({
|
|
|
1440
1440
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1441
1441
|
background: #ffffff;
|
|
1442
1442
|
${(e) => e.css && e.css}
|
|
1443
|
-
`,
|
|
1443
|
+
`, Dn = y(_)`
|
|
1444
1444
|
padding: ${(e) => {
|
|
1445
1445
|
var t;
|
|
1446
1446
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1465,7 +1465,7 @@ const Dn = 300, Bn = ({
|
|
|
1465
1465
|
line-height: 1.2em;
|
|
1466
1466
|
`, ue = (e) => L`
|
|
1467
1467
|
transition: ${e.duration}ms;
|
|
1468
|
-
`,
|
|
1468
|
+
`, Bn = y(le)`
|
|
1469
1469
|
max-height: 0;
|
|
1470
1470
|
${ue}
|
|
1471
1471
|
|
|
@@ -1482,7 +1482,7 @@ const Dn = 300, Bn = ({
|
|
|
1482
1482
|
&.humany-drawer-transition-exit-done {
|
|
1483
1483
|
max-height: 0;
|
|
1484
1484
|
}
|
|
1485
|
-
`,
|
|
1485
|
+
`, zn = y(le)`
|
|
1486
1486
|
${ue}
|
|
1487
1487
|
transform: translateX(100%);
|
|
1488
1488
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1500,7 +1500,7 @@ const Dn = 300, Bn = ({
|
|
|
1500
1500
|
&.humany-drawer-transition-exit-done {
|
|
1501
1501
|
transform: translateX(100%);
|
|
1502
1502
|
}
|
|
1503
|
-
`,
|
|
1503
|
+
`, Nn = y(le)`
|
|
1504
1504
|
${ue}
|
|
1505
1505
|
transform: translateX(-100%);
|
|
1506
1506
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1518,7 +1518,7 @@ const Dn = 300, Bn = ({
|
|
|
1518
1518
|
&.humany-drawer-transition-exit-done {
|
|
1519
1519
|
transform: translateX(-100%);
|
|
1520
1520
|
}
|
|
1521
|
-
`,
|
|
1521
|
+
`, Vn = y(le)`
|
|
1522
1522
|
${ue}
|
|
1523
1523
|
bottom: unset;
|
|
1524
1524
|
top: 0;
|
|
@@ -1537,12 +1537,12 @@ const Dn = 300, Bn = ({
|
|
|
1537
1537
|
&.humany-drawer-transition-exit-done {
|
|
1538
1538
|
height: 0;
|
|
1539
1539
|
}
|
|
1540
|
-
`,
|
|
1541
|
-
["slide-in-bottom"]:
|
|
1542
|
-
["slide-in-right"]:
|
|
1543
|
-
["slide-in-left"]:
|
|
1544
|
-
["slide-in-top"]:
|
|
1545
|
-
},
|
|
1540
|
+
`, Zn = {
|
|
1541
|
+
["slide-in-bottom"]: Bn,
|
|
1542
|
+
["slide-in-right"]: zn,
|
|
1543
|
+
["slide-in-left"]: Nn,
|
|
1544
|
+
["slide-in-top"]: Vn
|
|
1545
|
+
}, Wn = (e, t, n) => {
|
|
1546
1546
|
const [o, s] = $(0), [i, a] = $(0), l = H(
|
|
1547
1547
|
(u, c) => {
|
|
1548
1548
|
if (u.preventDefault(), c) {
|
|
@@ -1561,12 +1561,12 @@ const Dn = 300, Bn = ({
|
|
|
1561
1561
|
};
|
|
1562
1562
|
u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && s(c.x), c.y !== i && a(c.y);
|
|
1563
1563
|
}, [n, e, t]), [{ x: o, y: i }, l];
|
|
1564
|
-
}, Xe =
|
|
1564
|
+
}, Xe = Wn, In = r.forwardRef(
|
|
1565
1565
|
(a, i) => {
|
|
1566
1566
|
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1567
1567
|
const u = R(), c = R(), m = R();
|
|
1568
1568
|
Ce(i, () => m.current, [m.current]);
|
|
1569
|
-
const p = R(
|
|
1569
|
+
const p = R(q()), [d, f] = $(!1), C = Fe(d), [{ x, y: b }, E] = Xe(d, p.current, m.current), g = j("Escape");
|
|
1570
1570
|
v(() => {
|
|
1571
1571
|
g && f(!1);
|
|
1572
1572
|
}, [g]), v(() => {
|
|
@@ -1574,8 +1574,8 @@ const Dn = 300, Bn = ({
|
|
|
1574
1574
|
}, [d, u.current, c.current]), I(
|
|
1575
1575
|
"click",
|
|
1576
1576
|
(T) => {
|
|
1577
|
-
const { target:
|
|
1578
|
-
!m.current || !
|
|
1577
|
+
const { target: Y } = T;
|
|
1578
|
+
!m.current || !Y || m.current !== Y && !m.current.contains(Y) && f(!1);
|
|
1579
1579
|
},
|
|
1580
1580
|
window
|
|
1581
1581
|
), ce("router:changed", () => {
|
|
@@ -1589,8 +1589,8 @@ const Dn = 300, Bn = ({
|
|
|
1589
1589
|
},
|
|
1590
1590
|
[B, E, f]
|
|
1591
1591
|
);
|
|
1592
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(
|
|
1593
|
-
|
|
1592
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
1593
|
+
On,
|
|
1594
1594
|
k(h({
|
|
1595
1595
|
className: M(
|
|
1596
1596
|
"humany-dropdown",
|
|
@@ -1610,7 +1610,7 @@ const Dn = 300, Bn = ({
|
|
|
1610
1610
|
ref: u,
|
|
1611
1611
|
"aria-label": o
|
|
1612
1612
|
},
|
|
1613
|
-
/* @__PURE__ */ r.createElement(
|
|
1613
|
+
/* @__PURE__ */ r.createElement(G, { symbol: { type: "Svg", content: "close" } })
|
|
1614
1614
|
),
|
|
1615
1615
|
t
|
|
1616
1616
|
)), r.cloneElement(n, {
|
|
@@ -1620,7 +1620,7 @@ const Dn = 300, Bn = ({
|
|
|
1620
1620
|
"aria-expanded": d
|
|
1621
1621
|
}));
|
|
1622
1622
|
}
|
|
1623
|
-
),
|
|
1623
|
+
), zo = In, On = y.div`
|
|
1624
1624
|
${je}
|
|
1625
1625
|
padding: ${(e) => {
|
|
1626
1626
|
var t;
|
|
@@ -1635,41 +1635,41 @@ const Dn = 300, Bn = ({
|
|
|
1635
1635
|
let t = "";
|
|
1636
1636
|
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: ${((s = e.theme.sizes) == null ? void 0 : s.normal) || "0px"};`, t;
|
|
1637
1637
|
}};
|
|
1638
|
-
`,
|
|
1638
|
+
`, Pn = (t) => {
|
|
1639
1639
|
var e = S(t, []);
|
|
1640
|
-
return /* @__PURE__ */ r.createElement(
|
|
1641
|
-
},
|
|
1640
|
+
return /* @__PURE__ */ r.createElement(An, h({}, e));
|
|
1641
|
+
}, Fn = Pn, An = y.div`
|
|
1642
1642
|
display: none;
|
|
1643
|
-
`,
|
|
1643
|
+
`, No = N(
|
|
1644
1644
|
(a, i) => {
|
|
1645
1645
|
var l = a, { children: e, columns: t, gap: n, className: o } = l, s = S(l, ["children", "columns", "gap", "className"]);
|
|
1646
1646
|
return /* @__PURE__ */ r.createElement(
|
|
1647
|
-
|
|
1647
|
+
Kn,
|
|
1648
1648
|
k(h(h({
|
|
1649
1649
|
className: M(o, "humany-grid"),
|
|
1650
1650
|
"data-columns": t,
|
|
1651
1651
|
"data-gap": n
|
|
1652
|
-
},
|
|
1652
|
+
}, Ht(s)), V(s)), {
|
|
1653
1653
|
ref: i
|
|
1654
1654
|
}),
|
|
1655
1655
|
e
|
|
1656
1656
|
);
|
|
1657
1657
|
}
|
|
1658
|
-
),
|
|
1658
|
+
), Kn = y.div`
|
|
1659
1659
|
display: grid;
|
|
1660
1660
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1661
1661
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1662
1662
|
justify-content: center;
|
|
1663
1663
|
grid-auto-rows: max-content;
|
|
1664
|
-
${
|
|
1664
|
+
${Rt}
|
|
1665
1665
|
`, Ue = N(
|
|
1666
1666
|
(i, s) => {
|
|
1667
1667
|
var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
|
|
1668
|
-
const l =
|
|
1668
|
+
const l = Z(), [u, c] = $();
|
|
1669
1669
|
return v(() => {
|
|
1670
|
-
const m =
|
|
1670
|
+
const m = zt(l, n), p = k(h(h({}, m), e), {
|
|
1671
1671
|
transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
|
|
1672
|
-
}), d =
|
|
1672
|
+
}), d = Dt(n, p);
|
|
1673
1673
|
c(d);
|
|
1674
1674
|
}, [n, e]), /* @__PURE__ */ r.createElement(
|
|
1675
1675
|
"div",
|
|
@@ -1681,7 +1681,7 @@ const Dn = 300, Bn = ({
|
|
|
1681
1681
|
u
|
|
1682
1682
|
);
|
|
1683
1683
|
}
|
|
1684
|
-
),
|
|
1684
|
+
), Yn = (i) => {
|
|
1685
1685
|
var a = i, {
|
|
1686
1686
|
faIcon: e,
|
|
1687
1687
|
title: t,
|
|
@@ -1701,7 +1701,7 @@ const Dn = 300, Bn = ({
|
|
|
1701
1701
|
role: o
|
|
1702
1702
|
}, V(s))
|
|
1703
1703
|
);
|
|
1704
|
-
},
|
|
1704
|
+
}, jn = Yn, Vo = N(
|
|
1705
1705
|
(p, m) => {
|
|
1706
1706
|
var d = p, {
|
|
1707
1707
|
className: e = "",
|
|
@@ -1760,7 +1760,7 @@ const Dn = 300, Bn = ({
|
|
|
1760
1760
|
})
|
|
1761
1761
|
);
|
|
1762
1762
|
}
|
|
1763
|
-
),
|
|
1763
|
+
), Xn = N(
|
|
1764
1764
|
(a, i) => {
|
|
1765
1765
|
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, s = S(l, ["className", "items", "renderItem", "renderLi"]);
|
|
1766
1766
|
return /* @__PURE__ */ r.createElement(
|
|
@@ -1776,7 +1776,7 @@ const Dn = 300, Bn = ({
|
|
|
1776
1776
|
)
|
|
1777
1777
|
);
|
|
1778
1778
|
}
|
|
1779
|
-
),
|
|
1779
|
+
), Un = N(
|
|
1780
1780
|
(u, l) => {
|
|
1781
1781
|
var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: s, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1782
1782
|
return /* @__PURE__ */ r.createElement(
|
|
@@ -1786,12 +1786,12 @@ const Dn = 300, Bn = ({
|
|
|
1786
1786
|
}, V(a)), {
|
|
1787
1787
|
ref: l
|
|
1788
1788
|
}),
|
|
1789
|
-
n ? /* @__PURE__ */ r.createElement(
|
|
1789
|
+
n ? /* @__PURE__ */ r.createElement(_, { variant: "h1" }, i ? /* @__PURE__ */ r.createElement(G, { symbol: i }) : null, n) : null,
|
|
1790
1790
|
t ? /* @__PURE__ */ r.createElement(Ue, { html: t, htmlParseInstruction: s }) : null,
|
|
1791
1791
|
e ? /* @__PURE__ */ r.createElement(Ee, null, e) : null
|
|
1792
1792
|
);
|
|
1793
1793
|
}
|
|
1794
|
-
),
|
|
1794
|
+
), _n = N(
|
|
1795
1795
|
(f, d) => {
|
|
1796
1796
|
var C = f, {
|
|
1797
1797
|
header: e,
|
|
@@ -1826,12 +1826,12 @@ const Dn = 300, Bn = ({
|
|
|
1826
1826
|
}, V(p)), {
|
|
1827
1827
|
ref: d
|
|
1828
1828
|
}),
|
|
1829
|
-
t || (e || n || o ? /* @__PURE__ */ r.createElement(
|
|
1830
|
-
l.length ? /* @__PURE__ */ r.createElement(
|
|
1829
|
+
t || (e || n || o ? /* @__PURE__ */ r.createElement(Un, { symbol: a, header: e, text: n, html: o }) : null),
|
|
1830
|
+
l.length ? /* @__PURE__ */ r.createElement(Xn, h({ items: l, renderItem: u, renderLi: c }, m)) : null,
|
|
1831
1831
|
i
|
|
1832
1832
|
);
|
|
1833
1833
|
}
|
|
1834
|
-
),
|
|
1834
|
+
), qn = ({
|
|
1835
1835
|
className: e = "",
|
|
1836
1836
|
tree: t,
|
|
1837
1837
|
renderItem: n,
|
|
@@ -1842,7 +1842,7 @@ const Dn = 300, Bn = ({
|
|
|
1842
1842
|
liProps: l
|
|
1843
1843
|
}) => {
|
|
1844
1844
|
const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(
|
|
1845
|
-
|
|
1845
|
+
_n,
|
|
1846
1846
|
{
|
|
1847
1847
|
className: M(`humany-item-tree-level-${d}`),
|
|
1848
1848
|
items: p,
|
|
@@ -1862,11 +1862,11 @@ const Dn = 300, Bn = ({
|
|
|
1862
1862
|
}
|
|
1863
1863
|
);
|
|
1864
1864
|
return /* @__PURE__ */ r.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
|
|
1865
|
-
},
|
|
1865
|
+
}, Zo = qn, Qn = N(
|
|
1866
1866
|
(u, l) => {
|
|
1867
1867
|
var c = u, { className: e, onClick: t = () => {
|
|
1868
1868
|
}, name: n = "", to: o = "", params: s = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1869
|
-
const m = Ae(), p =
|
|
1869
|
+
const m = Ae(), p = Z();
|
|
1870
1870
|
if (!m)
|
|
1871
1871
|
return null;
|
|
1872
1872
|
let d = "";
|
|
@@ -1909,11 +1909,11 @@ const Dn = 300, Bn = ({
|
|
|
1909
1909
|
), null;
|
|
1910
1910
|
if (m.settings && m.settings.mode === Be.scopedHash) {
|
|
1911
1911
|
const C = p.get("$widget").name;
|
|
1912
|
-
d =
|
|
1912
|
+
d = vt(d, C);
|
|
1913
1913
|
}
|
|
1914
|
-
return f.as ? /* @__PURE__ */ r.createElement(
|
|
1914
|
+
return f.as ? /* @__PURE__ */ r.createElement(Gn, k(h({}, f), { as: f.as }), i) : /* @__PURE__ */ r.createElement(fe, k(h({}, f), { to: d }), i);
|
|
1915
1915
|
}
|
|
1916
|
-
),
|
|
1916
|
+
), Gn = y.span``, we = N(
|
|
1917
1917
|
(x, C) => {
|
|
1918
1918
|
var b = x, {
|
|
1919
1919
|
className: e,
|
|
@@ -1969,7 +1969,7 @@ const Dn = 300, Bn = ({
|
|
|
1969
1969
|
}
|
|
1970
1970
|
};
|
|
1971
1971
|
return p ? /* @__PURE__ */ r.createElement(
|
|
1972
|
-
|
|
1972
|
+
Jn,
|
|
1973
1973
|
k(h(h({
|
|
1974
1974
|
name: p,
|
|
1975
1975
|
params: d
|
|
@@ -1978,7 +1978,7 @@ const Dn = 300, Bn = ({
|
|
|
1978
1978
|
}),
|
|
1979
1979
|
c
|
|
1980
1980
|
) : /* @__PURE__ */ r.createElement(
|
|
1981
|
-
|
|
1981
|
+
er,
|
|
1982
1982
|
k(h(h({
|
|
1983
1983
|
href: u,
|
|
1984
1984
|
target: m
|
|
@@ -1988,17 +1988,17 @@ const Dn = 300, Bn = ({
|
|
|
1988
1988
|
c
|
|
1989
1989
|
);
|
|
1990
1990
|
}
|
|
1991
|
-
),
|
|
1991
|
+
), Jn = y(Qn)`
|
|
1992
1992
|
${(e) => e.disabled ? `
|
|
1993
1993
|
pointer-events: none;
|
|
1994
1994
|
opacity: .7;
|
|
1995
1995
|
` : "cursor: pointer;"}
|
|
1996
|
-
`,
|
|
1996
|
+
`, er = y.a`
|
|
1997
1997
|
${(e) => e.disabled ? `
|
|
1998
1998
|
pointer-events: none;
|
|
1999
1999
|
opacity: .7;
|
|
2000
2000
|
` : "cursor: pointer;"}
|
|
2001
|
-
`,
|
|
2001
|
+
`, tr = (i) => {
|
|
2002
2002
|
var a = i, {
|
|
2003
2003
|
visible: e,
|
|
2004
2004
|
duration: t = 500,
|
|
@@ -2026,8 +2026,8 @@ const Dn = 300, Bn = ({
|
|
|
2026
2026
|
unmountOnExit: !0,
|
|
2027
2027
|
timeout: t
|
|
2028
2028
|
},
|
|
2029
|
-
/* @__PURE__ */ r.createElement(
|
|
2030
|
-
|
|
2029
|
+
/* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
2030
|
+
nr,
|
|
2031
2031
|
h({
|
|
2032
2032
|
className: "humany-overlay",
|
|
2033
2033
|
duration: t,
|
|
@@ -2037,7 +2037,7 @@ const Dn = 300, Bn = ({
|
|
|
2037
2037
|
n
|
|
2038
2038
|
))
|
|
2039
2039
|
);
|
|
2040
|
-
},
|
|
2040
|
+
}, nr = y.div`
|
|
2041
2041
|
background: rgba(0, 0, 0, 0.6);
|
|
2042
2042
|
min-width: 100%;
|
|
2043
2043
|
min-height: 100%;
|
|
@@ -2067,11 +2067,11 @@ const Dn = 300, Bn = ({
|
|
|
2067
2067
|
&.humany-overlay-transition-exit-done {
|
|
2068
2068
|
opacity: 0;
|
|
2069
2069
|
}
|
|
2070
|
-
`, _e =
|
|
2070
|
+
`, _e = tr, rr = We`
|
|
2071
2071
|
100% {
|
|
2072
2072
|
transform: rotate(360deg);
|
|
2073
2073
|
}
|
|
2074
|
-
`,
|
|
2074
|
+
`, or = We`
|
|
2075
2075
|
0% {
|
|
2076
2076
|
stroke-dasharray: 1, 200;
|
|
2077
2077
|
stroke-dashoffset: 0;
|
|
@@ -2084,8 +2084,8 @@ const Dn = 300, Bn = ({
|
|
|
2084
2084
|
stroke-dasharray: 89, 200;
|
|
2085
2085
|
stroke-dashoffset: -124px;
|
|
2086
2086
|
}
|
|
2087
|
-
`,
|
|
2088
|
-
animation: ${
|
|
2087
|
+
`, sr = y.svg`
|
|
2088
|
+
animation: ${rr} 2s linear infinite;
|
|
2089
2089
|
height: 100%;
|
|
2090
2090
|
transform-origin: center center;
|
|
2091
2091
|
width: 100%;
|
|
@@ -2096,7 +2096,7 @@ const Dn = 300, Bn = ({
|
|
|
2096
2096
|
right: 0;
|
|
2097
2097
|
margin: auto;
|
|
2098
2098
|
transition: 200ms ease-out opacity;
|
|
2099
|
-
`,
|
|
2099
|
+
`, ir = y.div`
|
|
2100
2100
|
position: absolute;
|
|
2101
2101
|
top: 0;
|
|
2102
2102
|
bottom: 0;
|
|
@@ -2114,7 +2114,7 @@ const Dn = 300, Bn = ({
|
|
|
2114
2114
|
svg {
|
|
2115
2115
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2116
2116
|
}
|
|
2117
|
-
`,
|
|
2117
|
+
`, ar = y.div`
|
|
2118
2118
|
position: relative;
|
|
2119
2119
|
margin: 0 auto;
|
|
2120
2120
|
width: 100px;
|
|
@@ -2123,18 +2123,18 @@ const Dn = 300, Bn = ({
|
|
|
2123
2123
|
display: block;
|
|
2124
2124
|
padding-top: 100%;
|
|
2125
2125
|
}
|
|
2126
|
-
`,
|
|
2126
|
+
`, cr = y.circle`
|
|
2127
2127
|
stroke-dasharray: 1, 200;
|
|
2128
2128
|
stroke-dashoffset: 0;
|
|
2129
|
-
animation: ${
|
|
2129
|
+
animation: ${or} 1.5s ease-in-out infinite;
|
|
2130
2130
|
stroke-linecap: round;
|
|
2131
2131
|
stroke: ${(e) => {
|
|
2132
2132
|
var t;
|
|
2133
2133
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2134
2134
|
}};
|
|
2135
2135
|
stroke-width: 2px;
|
|
2136
|
-
`,
|
|
2137
|
-
|
|
2136
|
+
`, lr = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(ir, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ r.createElement(ar, { className: "humany-spinner" }, /* @__PURE__ */ r.createElement(sr, { viewBox: "25 25 50 50" }, /* @__PURE__ */ r.createElement(
|
|
2137
|
+
cr,
|
|
2138
2138
|
{
|
|
2139
2139
|
cx: "50",
|
|
2140
2140
|
cy: "50",
|
|
@@ -2143,7 +2143,7 @@ const Dn = 300, Bn = ({
|
|
|
2143
2143
|
"stroke-width": "2",
|
|
2144
2144
|
"stroke-miterlimit": "10"
|
|
2145
2145
|
}
|
|
2146
|
-
)))),
|
|
2146
|
+
)))), ur = lr, mr = (s) => {
|
|
2147
2147
|
var i = s, {
|
|
2148
2148
|
zoomState: e,
|
|
2149
2149
|
image: t,
|
|
@@ -2169,14 +2169,14 @@ const Dn = 300, Bn = ({
|
|
|
2169
2169
|
const B = C();
|
|
2170
2170
|
n(B);
|
|
2171
2171
|
}
|
|
2172
|
-
return g.width >= g.height ? [`${e *
|
|
2172
|
+
return g.width >= g.height ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
|
|
2173
2173
|
}
|
|
2174
2174
|
return null;
|
|
2175
2175
|
}, [e, a, l, t.src]);
|
|
2176
2176
|
return v(() => (u(!1), function() {
|
|
2177
2177
|
m(!1);
|
|
2178
|
-
}), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
2179
|
-
|
|
2178
|
+
}), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(dr, { loading: !l }), /* @__PURE__ */ r.createElement(
|
|
2179
|
+
fr,
|
|
2180
2180
|
k(h({
|
|
2181
2181
|
onLoad: () => {
|
|
2182
2182
|
u(!0);
|
|
@@ -2190,12 +2190,12 @@ const Dn = 300, Bn = ({
|
|
|
2190
2190
|
src: t.src,
|
|
2191
2191
|
loaded: l
|
|
2192
2192
|
})
|
|
2193
|
-
), /* @__PURE__ */ r.createElement(
|
|
2194
|
-
},
|
|
2193
|
+
), /* @__PURE__ */ r.createElement(hr, null));
|
|
2194
|
+
}, dr = y(ur)`
|
|
2195
2195
|
svg circle {
|
|
2196
2196
|
stroke: #ffffff;
|
|
2197
2197
|
}
|
|
2198
|
-
`,
|
|
2198
|
+
`, fr = y.img`
|
|
2199
2199
|
transform: none;
|
|
2200
2200
|
|
|
2201
2201
|
${(e) => e.imageSize && L`
|
|
@@ -2206,33 +2206,33 @@ const Dn = 300, Bn = ({
|
|
|
2206
2206
|
vertical-align: middle;
|
|
2207
2207
|
position: relative;
|
|
2208
2208
|
${(e) => !e.loaded && "display:none;"}
|
|
2209
|
-
`,
|
|
2209
|
+
`, hr = y.div`
|
|
2210
2210
|
height: 100%;
|
|
2211
2211
|
display: inline-block;
|
|
2212
2212
|
vertical-align: middle;
|
|
2213
|
-
`,
|
|
2213
|
+
`, pr = mr, gr = () => {
|
|
2214
2214
|
const e = R(), [t, n] = $(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2215
2215
|
n(!1);
|
|
2216
2216
|
}, 3e3), () => {
|
|
2217
2217
|
e.current && clearTimeout(e.current);
|
|
2218
2218
|
}), [t, e]);
|
|
2219
2219
|
return [t, o];
|
|
2220
|
-
},
|
|
2220
|
+
}, Cr = ({ attrs: e, htmlBody: t }) => {
|
|
2221
2221
|
var Se;
|
|
2222
|
-
const n =
|
|
2222
|
+
const n = j("Escape"), o = j("ArrowLeft"), s = j("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] = gr(), [f, C] = $(null), [x, b] = $(null), E = R(null), g = R(null), B = R(null), z = R(null);
|
|
2223
2223
|
v(() => {
|
|
2224
2224
|
n && C(null);
|
|
2225
2225
|
}, [n]), v(() => {
|
|
2226
2226
|
a(1);
|
|
2227
2227
|
}, [f]), v(() => {
|
|
2228
|
-
var P,
|
|
2228
|
+
var P, te;
|
|
2229
2229
|
if (f === null || g.current === null)
|
|
2230
2230
|
return;
|
|
2231
|
-
const w = g.current.firstElementChild, D = (P = B.current) == null ? void 0 : P.querySelector(".nav-left"),
|
|
2231
|
+
const w = g.current.firstElementChild, D = (P = B.current) == null ? void 0 : P.querySelector(".nav-left"), W = (te = B.current) == null ? void 0 : te.querySelector(".nav-right");
|
|
2232
2232
|
if (x === "Right")
|
|
2233
|
-
|
|
2233
|
+
ee && W ? W.focus() : J && D && D.focus();
|
|
2234
2234
|
else if (x === "Left")
|
|
2235
|
-
|
|
2235
|
+
J && D ? D.focus() : ee && W && W.focus();
|
|
2236
2236
|
else {
|
|
2237
2237
|
if (!w)
|
|
2238
2238
|
return;
|
|
@@ -2240,31 +2240,29 @@ const Dn = 300, Bn = ({
|
|
|
2240
2240
|
}
|
|
2241
2241
|
}, [f, g, B, x]), v(() => {
|
|
2242
2242
|
if (o) {
|
|
2243
|
-
if (
|
|
2243
|
+
if (J)
|
|
2244
2244
|
return Le();
|
|
2245
|
-
} else if (s &&
|
|
2245
|
+
} else if (s && ee)
|
|
2246
2246
|
return Me();
|
|
2247
2247
|
}, [o, s]);
|
|
2248
2248
|
const T = se(() => {
|
|
2249
2249
|
const w = document.createElement("div");
|
|
2250
2250
|
w.innerHTML = t || "";
|
|
2251
2251
|
const D = w.getElementsByTagName("img");
|
|
2252
|
-
return Array.from(D).reduce((P,
|
|
2253
|
-
const Re =
|
|
2252
|
+
return Array.from(D).reduce((P, te) => {
|
|
2253
|
+
const Re = te.getAttribute("src");
|
|
2254
2254
|
if (Re) {
|
|
2255
|
-
const
|
|
2256
|
-
src: Re
|
|
2257
|
-
originalWidth: st,
|
|
2258
|
-
originalHeight: ot
|
|
2255
|
+
const ot = {
|
|
2256
|
+
src: Re
|
|
2259
2257
|
};
|
|
2260
|
-
P.push(
|
|
2258
|
+
P.push(ot);
|
|
2261
2259
|
}
|
|
2262
2260
|
return P;
|
|
2263
2261
|
}, []);
|
|
2264
|
-
}, [t]),
|
|
2262
|
+
}, [t]), Y = H(() => {
|
|
2265
2263
|
const { src: w } = e;
|
|
2266
2264
|
if (w) {
|
|
2267
|
-
const D = T.findIndex((
|
|
2265
|
+
const D = T.findIndex((W, P) => W.src === w);
|
|
2268
2266
|
C(D);
|
|
2269
2267
|
}
|
|
2270
2268
|
}, [T, e]), Ge = H((w) => {
|
|
@@ -2289,8 +2287,8 @@ const Dn = 300, Bn = ({
|
|
|
2289
2287
|
(w) => {
|
|
2290
2288
|
const D = z.current;
|
|
2291
2289
|
if (D && c) {
|
|
2292
|
-
const
|
|
2293
|
-
D.scrollTop = l.top - P, D.scrollLeft = l.left -
|
|
2290
|
+
const W = w.clientX - l.x, P = w.clientY - l.y;
|
|
2291
|
+
D.scrollTop = l.top - P, D.scrollLeft = l.left - W;
|
|
2294
2292
|
}
|
|
2295
2293
|
},
|
|
2296
2294
|
[c, l]
|
|
@@ -2309,17 +2307,17 @@ const Dn = 300, Bn = ({
|
|
|
2309
2307
|
f !== null && (b("Left"), C(f - 1));
|
|
2310
2308
|
}, Me = () => {
|
|
2311
2309
|
f !== null && (b("Right"), C(f + 1));
|
|
2312
|
-
},
|
|
2310
|
+
}, J = f !== null && f > 0 && T.length > 1, ee = f !== null && T.length - 1 > f;
|
|
2313
2311
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: f !== null, onClick: Ge }, /* @__PURE__ */ r.createElement(
|
|
2314
|
-
|
|
2312
|
+
kr,
|
|
2315
2313
|
{
|
|
2316
2314
|
onMouseDown: () => d(),
|
|
2317
2315
|
onMouseMove: () => d(),
|
|
2318
2316
|
onTouchStart: () => d(),
|
|
2319
2317
|
onKeyDown: () => d()
|
|
2320
2318
|
},
|
|
2321
|
-
/* @__PURE__ */ r.createElement(
|
|
2322
|
-
|
|
2319
|
+
/* @__PURE__ */ r.createElement(Lr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
|
|
2320
|
+
Er,
|
|
2323
2321
|
{
|
|
2324
2322
|
ref: g,
|
|
2325
2323
|
buttons: [
|
|
@@ -2339,7 +2337,7 @@ const Dn = 300, Bn = ({
|
|
|
2339
2337
|
}
|
|
2340
2338
|
)),
|
|
2341
2339
|
/* @__PURE__ */ r.createElement(
|
|
2342
|
-
|
|
2340
|
+
Sr,
|
|
2343
2341
|
{
|
|
2344
2342
|
scrolling: c.toString(),
|
|
2345
2343
|
isDraggable: rt.toString(),
|
|
@@ -2349,7 +2347,7 @@ const Dn = 300, Bn = ({
|
|
|
2349
2347
|
onMouseUp: nt
|
|
2350
2348
|
},
|
|
2351
2349
|
f !== null && /* @__PURE__ */ r.createElement(
|
|
2352
|
-
|
|
2350
|
+
pr,
|
|
2353
2351
|
k(h({
|
|
2354
2352
|
changeZoom: (w) => {
|
|
2355
2353
|
a(w);
|
|
@@ -2361,7 +2359,7 @@ const Dn = 300, Bn = ({
|
|
|
2361
2359
|
)
|
|
2362
2360
|
),
|
|
2363
2361
|
/* @__PURE__ */ r.createElement(
|
|
2364
|
-
|
|
2362
|
+
wr,
|
|
2365
2363
|
{
|
|
2366
2364
|
ref: B,
|
|
2367
2365
|
show: p.toString(),
|
|
@@ -2371,7 +2369,7 @@ const Dn = 300, Bn = ({
|
|
|
2371
2369
|
onClick: Le,
|
|
2372
2370
|
icon: "caret-left",
|
|
2373
2371
|
circle: !0,
|
|
2374
|
-
show:
|
|
2372
|
+
show: J,
|
|
2375
2373
|
className: "nav-left",
|
|
2376
2374
|
ariaLabel: "Navigate to previous image"
|
|
2377
2375
|
},
|
|
@@ -2380,15 +2378,15 @@ const Dn = 300, Bn = ({
|
|
|
2380
2378
|
onClick: Me,
|
|
2381
2379
|
icon: "caret-right",
|
|
2382
2380
|
circle: !0,
|
|
2383
|
-
show:
|
|
2381
|
+
show: ee,
|
|
2384
2382
|
className: "nav-right",
|
|
2385
2383
|
ariaLabel: "Navigate to next image"
|
|
2386
2384
|
}
|
|
2387
2385
|
]
|
|
2388
2386
|
}
|
|
2389
2387
|
),
|
|
2390
|
-
/* @__PURE__ */ r.createElement(
|
|
2391
|
-
|
|
2388
|
+
/* @__PURE__ */ r.createElement(Mr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
|
|
2389
|
+
xr,
|
|
2392
2390
|
{
|
|
2393
2391
|
buttons: [
|
|
2394
2392
|
{
|
|
@@ -2405,22 +2403,22 @@ const Dn = 300, Bn = ({
|
|
|
2405
2403
|
}
|
|
2406
2404
|
]
|
|
2407
2405
|
}
|
|
2408
|
-
), /* @__PURE__ */ r.createElement(
|
|
2406
|
+
), /* @__PURE__ */ r.createElement($r, { variant: "span" }, Math.trunc(i * 100), "%"))
|
|
2409
2407
|
)), /* @__PURE__ */ r.createElement(
|
|
2410
|
-
|
|
2408
|
+
yr,
|
|
2411
2409
|
{
|
|
2412
2410
|
ref: E,
|
|
2413
|
-
onClick:
|
|
2411
|
+
onClick: Y,
|
|
2414
2412
|
onKeyDown: (w) => {
|
|
2415
|
-
w.key === "Enter" && (w.preventDefault(),
|
|
2413
|
+
w.key === "Enter" && (w.preventDefault(), Y());
|
|
2416
2414
|
},
|
|
2417
2415
|
tabIndex: 0
|
|
2418
2416
|
},
|
|
2419
|
-
/* @__PURE__ */ r.createElement(
|
|
2417
|
+
/* @__PURE__ */ r.createElement(Rr, k(h({}, e), { alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "" }))
|
|
2420
2418
|
));
|
|
2421
2419
|
}, $e = N(
|
|
2422
2420
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(
|
|
2423
|
-
|
|
2421
|
+
br,
|
|
2424
2422
|
{
|
|
2425
2423
|
ref: o,
|
|
2426
2424
|
show: e,
|
|
@@ -2428,7 +2426,7 @@ const Dn = 300, Bn = ({
|
|
|
2428
2426
|
},
|
|
2429
2427
|
t.map(
|
|
2430
2428
|
({ id: s, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(
|
|
2431
|
-
|
|
2429
|
+
vr,
|
|
2432
2430
|
{
|
|
2433
2431
|
key: s + p.toString(),
|
|
2434
2432
|
circle: i.toString(),
|
|
@@ -2439,7 +2437,7 @@ const Dn = 300, Bn = ({
|
|
|
2439
2437
|
className: m,
|
|
2440
2438
|
"aria-label": l
|
|
2441
2439
|
},
|
|
2442
|
-
/* @__PURE__ */ r.createElement(
|
|
2440
|
+
/* @__PURE__ */ r.createElement(G, { size: 24, symbol: { type: "Svg", content: c } })
|
|
2443
2441
|
)
|
|
2444
2442
|
)
|
|
2445
2443
|
)
|
|
@@ -2450,16 +2448,16 @@ const Dn = 300, Bn = ({
|
|
|
2450
2448
|
opacity: 0;
|
|
2451
2449
|
pointer-events: none;
|
|
2452
2450
|
`}
|
|
2453
|
-
`,
|
|
2451
|
+
`, yr = y(we)`
|
|
2454
2452
|
display: inline-block !important;
|
|
2455
|
-
`,
|
|
2453
|
+
`, br = y(qe)`
|
|
2456
2454
|
position: fixed;
|
|
2457
2455
|
display: flex;
|
|
2458
2456
|
gap: ${(e) => {
|
|
2459
2457
|
var t;
|
|
2460
2458
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2461
2459
|
}};
|
|
2462
|
-
`, ge = "39px",
|
|
2460
|
+
`, ge = "39px", vr = y(ae)`
|
|
2463
2461
|
width: ${ge};
|
|
2464
2462
|
height: ${ge};
|
|
2465
2463
|
display: flex;
|
|
@@ -2487,7 +2485,7 @@ const Dn = 300, Bn = ({
|
|
|
2487
2485
|
}
|
|
2488
2486
|
|
|
2489
2487
|
&:focus-visible {
|
|
2490
|
-
${
|
|
2488
|
+
${F(e)}
|
|
2491
2489
|
outline-color: #ffffff;
|
|
2492
2490
|
background-color: transparent;
|
|
2493
2491
|
|
|
@@ -2509,7 +2507,7 @@ const Dn = 300, Bn = ({
|
|
|
2509
2507
|
outline-color: #ffffff;
|
|
2510
2508
|
}
|
|
2511
2509
|
&:focus-visible {
|
|
2512
|
-
${
|
|
2510
|
+
${F(e)}
|
|
2513
2511
|
}
|
|
2514
2512
|
`;
|
|
2515
2513
|
}}
|
|
@@ -2524,7 +2522,7 @@ const Dn = 300, Bn = ({
|
|
|
2524
2522
|
opacity: 0;
|
|
2525
2523
|
pointer-events: none;
|
|
2526
2524
|
`}
|
|
2527
|
-
`,
|
|
2525
|
+
`, Er = y($e)`
|
|
2528
2526
|
top: ${(e) => {
|
|
2529
2527
|
var t;
|
|
2530
2528
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2533,7 +2531,7 @@ const Dn = 300, Bn = ({
|
|
|
2533
2531
|
var t;
|
|
2534
2532
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2535
2533
|
}};
|
|
2536
|
-
`,
|
|
2534
|
+
`, xr = y($e)`
|
|
2537
2535
|
bottom: ${(e) => {
|
|
2538
2536
|
var t;
|
|
2539
2537
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2541,7 +2539,7 @@ const Dn = 300, Bn = ({
|
|
|
2541
2539
|
width: 100%;
|
|
2542
2540
|
align-items: center;
|
|
2543
2541
|
justify-content: center;
|
|
2544
|
-
`,
|
|
2542
|
+
`, wr = y($e)`
|
|
2545
2543
|
display: block;
|
|
2546
2544
|
button {
|
|
2547
2545
|
position: fixed;
|
|
@@ -2559,7 +2557,7 @@ const Dn = 300, Bn = ({
|
|
|
2559
2557
|
}};
|
|
2560
2558
|
}
|
|
2561
2559
|
}
|
|
2562
|
-
`,
|
|
2560
|
+
`, $r = y(_)`
|
|
2563
2561
|
position: fixed;
|
|
2564
2562
|
bottom: ${(e) => {
|
|
2565
2563
|
var t;
|
|
@@ -2584,15 +2582,15 @@ const Dn = 300, Bn = ({
|
|
|
2584
2582
|
height: 88px;
|
|
2585
2583
|
left: 0px;
|
|
2586
2584
|
z-index: 5;
|
|
2587
|
-
`,
|
|
2585
|
+
`, kr = y.div`
|
|
2588
2586
|
width: 100%;
|
|
2589
|
-
`,
|
|
2587
|
+
`, Lr = y(Qe)`
|
|
2590
2588
|
top: 0px;
|
|
2591
2589
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2592
|
-
`,
|
|
2590
|
+
`, Mr = y(Qe)`
|
|
2593
2591
|
bottom: 0px;
|
|
2594
2592
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2595
|
-
`,
|
|
2593
|
+
`, Sr = y.div`
|
|
2596
2594
|
width: 100%;
|
|
2597
2595
|
height: 100vh;
|
|
2598
2596
|
overflow: auto;
|
|
@@ -2601,13 +2599,13 @@ const Dn = 300, Bn = ({
|
|
|
2601
2599
|
white-space: nowrap;
|
|
2602
2600
|
justify-content: center;
|
|
2603
2601
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2604
|
-
`,
|
|
2602
|
+
`, Rr = y.img`
|
|
2605
2603
|
cursor: pointer;
|
|
2606
|
-
`,
|
|
2604
|
+
`, Hr = Cr, Tr = N(
|
|
2607
2605
|
(l, a) => {
|
|
2608
2606
|
var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2609
2607
|
}, close: s = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2610
|
-
const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), C = R(
|
|
2608
|
+
const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), C = R(q()), x = j("Escape");
|
|
2611
2609
|
v(() => {
|
|
2612
2610
|
(x || s) && m(!1);
|
|
2613
2611
|
}, [x, s]), v(() => {
|
|
@@ -2630,7 +2628,7 @@ const Dn = 300, Bn = ({
|
|
|
2630
2628
|
m(!1);
|
|
2631
2629
|
}), [C.current]);
|
|
2632
2630
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: c, onClick: b }, /* @__PURE__ */ r.createElement(
|
|
2633
|
-
|
|
2631
|
+
Br,
|
|
2634
2632
|
k(h({
|
|
2635
2633
|
className: M(
|
|
2636
2634
|
e,
|
|
@@ -2649,7 +2647,7 @@ const Dn = 300, Bn = ({
|
|
|
2649
2647
|
tabIndex: 0,
|
|
2650
2648
|
ref: f
|
|
2651
2649
|
},
|
|
2652
|
-
/* @__PURE__ */ r.createElement(
|
|
2650
|
+
/* @__PURE__ */ r.createElement(G, { symbol: { type: "Svg", content: "close" } })
|
|
2653
2651
|
),
|
|
2654
2652
|
t
|
|
2655
2653
|
)), r.cloneElement(n, {
|
|
@@ -2658,7 +2656,7 @@ const Dn = 300, Bn = ({
|
|
|
2658
2656
|
}
|
|
2659
2657
|
}));
|
|
2660
2658
|
}
|
|
2661
|
-
),
|
|
2659
|
+
), Dr = Tr, Br = y.div`
|
|
2662
2660
|
font-family: ${(e) => {
|
|
2663
2661
|
var t;
|
|
2664
2662
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2677,7 +2675,7 @@ const Dn = 300, Bn = ({
|
|
|
2677
2675
|
${(e) => je(e)}
|
|
2678
2676
|
${(e) => e.css && e.css}
|
|
2679
2677
|
outline: none;
|
|
2680
|
-
`,
|
|
2678
|
+
`, zr = ({
|
|
2681
2679
|
className: e,
|
|
2682
2680
|
trigger: t,
|
|
2683
2681
|
header: n = "",
|
|
@@ -2696,8 +2694,8 @@ const Dn = 300, Bn = ({
|
|
|
2696
2694
|
var p;
|
|
2697
2695
|
i(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2698
2696
|
}, [i]);
|
|
2699
|
-
return /* @__PURE__ */ r.createElement(
|
|
2700
|
-
},
|
|
2697
|
+
return /* @__PURE__ */ r.createElement(Nr, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Vr, { onClick: m }, l), a && /* @__PURE__ */ r.createElement(Zr, { onClick: c }, a));
|
|
2698
|
+
}, Wo = zr, Nr = y(Dr)`
|
|
2701
2699
|
display: block;
|
|
2702
2700
|
|
|
2703
2701
|
span {
|
|
@@ -2715,7 +2713,7 @@ const Dn = 300, Bn = ({
|
|
|
2715
2713
|
}};
|
|
2716
2714
|
}
|
|
2717
2715
|
}
|
|
2718
|
-
`,
|
|
2716
|
+
`, Vr = y(ae)`
|
|
2719
2717
|
display: inline-block;
|
|
2720
2718
|
min-width: 50px;
|
|
2721
2719
|
${(e) => {
|
|
@@ -2743,9 +2741,9 @@ const Dn = 300, Bn = ({
|
|
|
2743
2741
|
}
|
|
2744
2742
|
|
|
2745
2743
|
&:focus-visible {
|
|
2746
|
-
${
|
|
2744
|
+
${F}
|
|
2747
2745
|
}
|
|
2748
|
-
`,
|
|
2746
|
+
`, Zr = y(ae)`
|
|
2749
2747
|
display: inline-block;
|
|
2750
2748
|
min-width: 50px;
|
|
2751
2749
|
${(e) => {
|
|
@@ -2764,17 +2762,17 @@ const Dn = 300, Bn = ({
|
|
|
2764
2762
|
}};
|
|
2765
2763
|
|
|
2766
2764
|
&:focus-visible {
|
|
2767
|
-
${
|
|
2765
|
+
${F};
|
|
2768
2766
|
}
|
|
2769
|
-
`,
|
|
2767
|
+
`, Wr = ({
|
|
2770
2768
|
header: e = "",
|
|
2771
2769
|
link: t = "",
|
|
2772
2770
|
suggestionHeader: n = "",
|
|
2773
2771
|
suggestion: o = ""
|
|
2774
|
-
}) => /* @__PURE__ */ r.createElement(
|
|
2772
|
+
}) => /* @__PURE__ */ r.createElement(Ir, null, /* @__PURE__ */ r.createElement(Or, null, /* @__PURE__ */ r.createElement(_, { variant: "h2" }, "404")), /* @__PURE__ */ r.createElement(Pr, null, /* @__PURE__ */ r.createElement(_, { variant: "h3" }, e), /* @__PURE__ */ r.createElement(Kr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ r.createElement(Fr, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), Io = Wr, Ir = y.div`
|
|
2775
2773
|
display: flex;
|
|
2776
2774
|
flex-wrap: wrap;
|
|
2777
|
-
`,
|
|
2775
|
+
`, Or = y.div`
|
|
2778
2776
|
${(e) => ie(e)(
|
|
2779
2777
|
"h2",
|
|
2780
2778
|
L`
|
|
@@ -2784,7 +2782,7 @@ const Dn = 300, Bn = ({
|
|
|
2784
2782
|
font-size: 7em;
|
|
2785
2783
|
`
|
|
2786
2784
|
)}
|
|
2787
|
-
`,
|
|
2785
|
+
`, Pr = y.div`
|
|
2788
2786
|
margin-left: ${(e) => {
|
|
2789
2787
|
var t;
|
|
2790
2788
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2811,7 +2809,7 @@ const Dn = 300, Bn = ({
|
|
|
2811
2809
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2812
2810
|
}};
|
|
2813
2811
|
}
|
|
2814
|
-
`,
|
|
2812
|
+
`, Fr = y.div`
|
|
2815
2813
|
margin-top: ${(e) => {
|
|
2816
2814
|
var t;
|
|
2817
2815
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2822,7 +2820,7 @@ const Dn = 300, Bn = ({
|
|
|
2822
2820
|
font-weight: bold;
|
|
2823
2821
|
}
|
|
2824
2822
|
`;
|
|
2825
|
-
class
|
|
2823
|
+
class Ar extends ut {
|
|
2826
2824
|
constructor() {
|
|
2827
2825
|
super(...arguments);
|
|
2828
2826
|
re(this, "node");
|
|
@@ -2864,21 +2862,21 @@ class Yr extends dt {
|
|
|
2864
2862
|
) : null;
|
|
2865
2863
|
}
|
|
2866
2864
|
}
|
|
2867
|
-
const
|
|
2865
|
+
const Oo = Ar, Kr = N(
|
|
2868
2866
|
(a, i) => {
|
|
2869
2867
|
var l = a, { className: e, description: t, text: n, children: o } = l, s = S(l, ["className", "description", "text", "children"]);
|
|
2870
2868
|
return /* @__PURE__ */ r.createElement(we, k(h({ className: M(e, "humany-text-link") }, s), { ref: i }), o, /* @__PURE__ */ r.createElement(Ee, null, n), t ? /* @__PURE__ */ r.createElement(Ue, { html: t, className: "humany-description" }) : null);
|
|
2871
2869
|
}
|
|
2872
2870
|
);
|
|
2873
|
-
var
|
|
2874
|
-
const
|
|
2875
|
-
function
|
|
2876
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), s = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${
|
|
2871
|
+
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 || {});
|
|
2872
|
+
const jr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", { className: M(e, "humany-timestamp") }, Xr(n, t)), Po = jr, Ze = (e) => `0${e}`.slice(-2);
|
|
2873
|
+
function Xr(e, t) {
|
|
2874
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), s = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${Ze(a)}-${Ze(l)}`;
|
|
2877
2875
|
return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? s : `${u} ${s}`;
|
|
2878
2876
|
}
|
|
2879
|
-
const
|
|
2877
|
+
const Ur = (i) => {
|
|
2880
2878
|
var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, s = S(a, ["className", "children", "content", "sticky"]);
|
|
2881
|
-
const [l, u] = $(!1), c = R(
|
|
2879
|
+
const [l, u] = $(!1), c = R(q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), C = (b) => {
|
|
2882
2880
|
const { target: E } = b;
|
|
2883
2881
|
!m.current || !E || m.current !== E && !m.current.contains(E) && u(!1);
|
|
2884
2882
|
};
|
|
@@ -2895,7 +2893,7 @@ const qr = (i) => {
|
|
|
2895
2893
|
[f, u]
|
|
2896
2894
|
);
|
|
2897
2895
|
return /* @__PURE__ */ r.createElement(
|
|
2898
|
-
|
|
2896
|
+
_r,
|
|
2899
2897
|
{
|
|
2900
2898
|
ref: m,
|
|
2901
2899
|
className: "humany-tooltip-trigger",
|
|
@@ -2905,8 +2903,8 @@ const qr = (i) => {
|
|
|
2905
2903
|
onClick: o ? (b) => x(b, !l) : void 0
|
|
2906
2904
|
},
|
|
2907
2905
|
t,
|
|
2908
|
-
l && /* @__PURE__ */ r.createElement(
|
|
2909
|
-
|
|
2906
|
+
l && /* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
2907
|
+
qr,
|
|
2910
2908
|
h({
|
|
2911
2909
|
className: M(e, "humany-tooltip-container"),
|
|
2912
2910
|
x: p,
|
|
@@ -2915,10 +2913,10 @@ const qr = (i) => {
|
|
|
2915
2913
|
n
|
|
2916
2914
|
))
|
|
2917
2915
|
);
|
|
2918
|
-
},
|
|
2916
|
+
}, _r = y.div`
|
|
2919
2917
|
display: flex;
|
|
2920
2918
|
align-items: center;
|
|
2921
|
-
`,
|
|
2919
|
+
`, qr = y.div`
|
|
2922
2920
|
color: #ffffff;
|
|
2923
2921
|
background: #161616;
|
|
2924
2922
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2954,7 +2952,7 @@ const qr = (i) => {
|
|
|
2954
2952
|
let t = "";
|
|
2955
2953
|
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;
|
|
2956
2954
|
}};
|
|
2957
|
-
`,
|
|
2955
|
+
`, Fo = Ur, Qr = (e) => {
|
|
2958
2956
|
const {
|
|
2959
2957
|
in: t,
|
|
2960
2958
|
mountOnEnter: n = !0,
|
|
@@ -2996,7 +2994,7 @@ const qr = (i) => {
|
|
|
2996
2994
|
}
|
|
2997
2995
|
})();
|
|
2998
2996
|
return /* @__PURE__ */ r.createElement(
|
|
2999
|
-
|
|
2997
|
+
yt,
|
|
3000
2998
|
{
|
|
3001
2999
|
timeout: {
|
|
3002
3000
|
enter: u && u.enter.duration || 0,
|
|
@@ -3010,11 +3008,11 @@ const qr = (i) => {
|
|
|
3010
3008
|
},
|
|
3011
3009
|
(c) => i && i(c, u && he.compose(c, u))
|
|
3012
3010
|
);
|
|
3013
|
-
},
|
|
3011
|
+
}, Ao = Qr, Gr = N(
|
|
3014
3012
|
(l, a) => {
|
|
3015
3013
|
var u = l, { className: e, children: t, onClick: n = () => {
|
|
3016
3014
|
}, widgetName: o, activationOptions: s } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
3017
|
-
const c =
|
|
3015
|
+
const c = Z(), m = () => {
|
|
3018
3016
|
const { implementation: f } = c.get("$widget");
|
|
3019
3017
|
return f.widgets.get(o);
|
|
3020
3018
|
};
|
|
@@ -3041,7 +3039,7 @@ const qr = (i) => {
|
|
|
3041
3039
|
});
|
|
3042
3040
|
});
|
|
3043
3041
|
};
|
|
3044
|
-
C.state ===
|
|
3042
|
+
C.state === lt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(b) : b();
|
|
3045
3043
|
}
|
|
3046
3044
|
}, d = (f) => {
|
|
3047
3045
|
f.key === "Enter" && (f.preventDefault(), p(f));
|
|
@@ -3060,16 +3058,16 @@ const qr = (i) => {
|
|
|
3060
3058
|
t
|
|
3061
3059
|
);
|
|
3062
3060
|
}
|
|
3063
|
-
),
|
|
3061
|
+
), Ko = N(
|
|
3064
3062
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3065
|
-
const s =
|
|
3063
|
+
const s = Z(), i = se(() => {
|
|
3066
3064
|
if (!s)
|
|
3067
3065
|
return null;
|
|
3068
3066
|
const a = s.get("widgetDOMElement");
|
|
3069
3067
|
return !a || !a.childElementCount ? null : a.children[0];
|
|
3070
3068
|
}, [s]);
|
|
3071
|
-
return i ? /* @__PURE__ */ r.createElement(
|
|
3072
|
-
|
|
3069
|
+
return i ? /* @__PURE__ */ r.createElement(Q, { elementId: e, parent: i }, /* @__PURE__ */ r.createElement(
|
|
3070
|
+
Jr,
|
|
3073
3071
|
{
|
|
3074
3072
|
className: M("humany-widget-overlay-outlet", t),
|
|
3075
3073
|
ref: o
|
|
@@ -3077,7 +3075,7 @@ const qr = (i) => {
|
|
|
3077
3075
|
n
|
|
3078
3076
|
)) : null;
|
|
3079
3077
|
}
|
|
3080
|
-
),
|
|
3078
|
+
), Jr = y.div`
|
|
3081
3079
|
background-color: #ffffff;
|
|
3082
3080
|
position: absolute;
|
|
3083
3081
|
top: 0;
|
|
@@ -3087,101 +3085,101 @@ const qr = (i) => {
|
|
|
3087
3085
|
z-index: 10;
|
|
3088
3086
|
width: 100%;
|
|
3089
3087
|
height: 100%;
|
|
3090
|
-
`,
|
|
3088
|
+
`, eo = (e, t, n, o, s) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
|
|
3091
3089
|
t,
|
|
3092
|
-
|
|
3093
|
-
),
|
|
3094
|
-
}), t, s))),
|
|
3090
|
+
mt(() => n)
|
|
3091
|
+
), gt(e, t, o || (() => {
|
|
3092
|
+
}), t, s))), Yo = eo;
|
|
3095
3093
|
export {
|
|
3096
|
-
|
|
3094
|
+
Vt as AnchorLink,
|
|
3097
3095
|
ae as Button,
|
|
3098
|
-
|
|
3099
|
-
|
|
3096
|
+
po as Checkbox,
|
|
3097
|
+
Ot as ColumnContext,
|
|
3100
3098
|
Pe as ComponentNodeContext,
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3099
|
+
Pt as ComponentPropertyContext,
|
|
3100
|
+
Wo as Confirm,
|
|
3101
|
+
It as ContainerContext,
|
|
3102
|
+
At as ConversationContext,
|
|
3103
|
+
Yr as DateFormats,
|
|
3104
|
+
Bo as Drawer,
|
|
3105
|
+
Rn as DrawerAnimationType,
|
|
3106
|
+
zo as Dropdown,
|
|
3107
|
+
Fn as Empty,
|
|
3108
|
+
No as Grid,
|
|
3111
3109
|
Ue as Html,
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3110
|
+
jn as Icon,
|
|
3111
|
+
Vo as Input,
|
|
3112
|
+
_n as ItemList,
|
|
3113
|
+
Zo as ItemTree,
|
|
3114
|
+
Hr as Lightbox,
|
|
3117
3115
|
we as Link,
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3116
|
+
Xn as List,
|
|
3117
|
+
Dr as Modal,
|
|
3118
|
+
Io as NotFound,
|
|
3121
3119
|
_e as Overlay,
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3120
|
+
Un as Paragraph,
|
|
3121
|
+
Q as Portal,
|
|
3122
|
+
Qn as RouteLink,
|
|
3123
|
+
Ft as RoutingContext,
|
|
3126
3124
|
Ve as StyledText,
|
|
3127
|
-
|
|
3128
|
-
|
|
3125
|
+
G as SymbolBadge,
|
|
3126
|
+
Oo as TabStop,
|
|
3129
3127
|
Ee as Text,
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3128
|
+
Kr as TextLink,
|
|
3129
|
+
Po as Timestamp,
|
|
3130
|
+
Fo as Tooltip,
|
|
3131
|
+
Ao as TransitionComponent,
|
|
3132
|
+
_ as Typography,
|
|
3133
|
+
Gr as WidgetLink,
|
|
3134
|
+
Ko as WidgetOverlayOutlet,
|
|
3135
|
+
F as borderTabStyle,
|
|
3138
3136
|
Ne as browser,
|
|
3139
|
-
|
|
3137
|
+
vn as buttonCss,
|
|
3140
3138
|
je as contentBox,
|
|
3141
3139
|
V as convertToStringAttributes,
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3140
|
+
ho as createEmptyComponent,
|
|
3141
|
+
Yo as createReactComponent,
|
|
3142
|
+
zt as defaultRenderInstructions,
|
|
3143
|
+
St as embeddedLinkMapper,
|
|
3144
|
+
Ht as filterCssProps,
|
|
3145
|
+
Rt as filterCssPropsStyle,
|
|
3146
|
+
Tt as genericHashLink,
|
|
3147
|
+
Do as genericHtml,
|
|
3150
3148
|
ie as headingElement,
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3149
|
+
Bt as imageLightboxRenderer,
|
|
3150
|
+
Ro as invertedHoverButton,
|
|
3151
|
+
To as itemList,
|
|
3152
|
+
En as linkTabStyle,
|
|
3153
|
+
xn as list,
|
|
3154
|
+
Ho as paddedBorderTabStyle,
|
|
3155
|
+
Dt as processHtmlString,
|
|
3158
3156
|
he as transitionComposer,
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3157
|
+
go as useAction,
|
|
3158
|
+
Co as useChildren,
|
|
3159
|
+
yo as useColumns,
|
|
3160
|
+
bo as useComponent,
|
|
3163
3161
|
ye as useComponentDescriptor,
|
|
3164
3162
|
be as useComponentNode,
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3163
|
+
U as useComponentPlatform,
|
|
3164
|
+
Z as useContainer,
|
|
3165
|
+
en as useContext,
|
|
3166
|
+
vo as useConversation,
|
|
3167
|
+
Eo as useDispatch,
|
|
3170
3168
|
I as useEventListener,
|
|
3171
|
-
|
|
3169
|
+
on as useEvents,
|
|
3172
3170
|
O as useIsMounted,
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3171
|
+
xo as useIsTabbing,
|
|
3172
|
+
j as useKeyPress,
|
|
3173
|
+
wo as useLayout,
|
|
3176
3174
|
Fe as usePrevious,
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3175
|
+
$o as useProperties,
|
|
3176
|
+
ko as useRenderState,
|
|
3177
|
+
Lo as useRouteData,
|
|
3180
3178
|
Ae as useRouter,
|
|
3181
3179
|
Ke as useScroll,
|
|
3182
|
-
|
|
3180
|
+
Mo as useSettings,
|
|
3183
3181
|
Ye as useToggle,
|
|
3184
|
-
|
|
3182
|
+
So as useTransitionEnd,
|
|
3185
3183
|
ve as useUniqueMenu,
|
|
3186
3184
|
ce as useWidgetEvent
|
|
3187
3185
|
};
|