@telia-ace/widget-ui 1.3.0-rc.0 → 1.3.0-rc.10
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/index.js +51 -51
- package/index.mjs +294 -295
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var it = (e, t, n) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var te = (e, t, n) => (it(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { css as k, keyframes as
|
|
4
|
+
import { css as k, keyframes as Ve } from "@emotion/react";
|
|
5
5
|
import { kebabCase as st, appendClassNames as $, uuid as U, removeNullAndUndefinedValues as Re, Logger as ue } from "@telia-ace/widget-utilities";
|
|
6
6
|
import { jsx as i, jsxs as b, Fragment as _ } from "react/jsx-runtime";
|
|
7
|
-
import
|
|
7
|
+
import C from "@emotion/styled";
|
|
8
8
|
import oe, { forwardRef as H, createContext as K, useContext as P, useState as w, useEffect as v, useRef as L, useCallback as M, useImperativeHandle as ge, createElement as at, useMemo as re, Component as ct, lazy as lt } from "react";
|
|
9
|
-
import { CSSTransition as
|
|
10
|
-
import { Container as dt, WidgetState as
|
|
11
|
-
import { ComponentPlatform as
|
|
9
|
+
import { CSSTransition as Ne, Transition as ut } from "react-transition-group";
|
|
10
|
+
import { Container as dt, WidgetState as ft } from "@webprovisions/platform";
|
|
11
|
+
import { ComponentPlatform as ht, asDescriptor as mt, createEventSubscriber as gt, ComponentQuery as pt, WidgetRenderState as ne, extendComponent as Ct } from "@telia-ace/widget-core";
|
|
12
12
|
import { createPortal as yt } from "react-dom";
|
|
13
13
|
import He from "htmr";
|
|
14
14
|
import { HistoryMode as ze, getSpecificWidgetPath as bt } from "@telia-ace/widget-routing";
|
|
@@ -44,7 +44,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
44
44
|
"slide-left",
|
|
45
45
|
"slide-right",
|
|
46
46
|
"scale"
|
|
47
|
-
],
|
|
47
|
+
], fe = {
|
|
48
48
|
compose: (e = "exited", t) => {
|
|
49
49
|
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = wt.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
50
50
|
if (vt(e))
|
|
@@ -66,7 +66,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
66
66
|
},
|
|
67
67
|
composeViewTransition: (e, t, n) => {
|
|
68
68
|
if (t === "slide")
|
|
69
|
-
return
|
|
69
|
+
return fe.compose(e, {
|
|
70
70
|
enter: {
|
|
71
71
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
72
72
|
duration: 500
|
|
@@ -77,7 +77,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
if (t === "fade")
|
|
80
|
-
return
|
|
80
|
+
return fe.compose(e, {
|
|
81
81
|
enter: {
|
|
82
82
|
transitionKeys: "fade",
|
|
83
83
|
duration: 500
|
|
@@ -90,7 +90,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
90
90
|
},
|
|
91
91
|
get: (e) => F[e]
|
|
92
92
|
};
|
|
93
|
-
var
|
|
93
|
+
var he = /* @__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))(he || {});
|
|
94
94
|
const De = () => {
|
|
95
95
|
const {
|
|
96
96
|
opr: e,
|
|
@@ -110,17 +110,17 @@ const De = () => {
|
|
|
110
110
|
const u = ((m) => m.toString() === "[object SafariRemoteNotification]")(!r || typeof r < "u" && r.pushNotification);
|
|
111
111
|
if (/constructor/i.test(o) || u)
|
|
112
112
|
return "safari";
|
|
113
|
-
const
|
|
114
|
-
if (
|
|
113
|
+
const f = !!s;
|
|
114
|
+
if (f)
|
|
115
115
|
return "internet-explorer";
|
|
116
|
-
if (!
|
|
116
|
+
if (!f && a)
|
|
117
117
|
return "edge";
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
118
|
+
const h = !!d && (!!d.webstore || !!d.runtime);
|
|
119
|
+
if (h)
|
|
120
120
|
return "chrome";
|
|
121
|
-
if (
|
|
121
|
+
if (h && navigator.userAgent.indexOf("Edg") !== -1)
|
|
122
122
|
return "edge-chromium";
|
|
123
|
-
if ((
|
|
123
|
+
if ((h || l) && c)
|
|
124
124
|
return "blink";
|
|
125
125
|
}, kt = ["string", "number"], D = (e) => Object.keys(e).reduce(
|
|
126
126
|
(t, n) => {
|
|
@@ -166,10 +166,10 @@ const De = () => {
|
|
|
166
166
|
const o = () => {
|
|
167
167
|
n = "";
|
|
168
168
|
}, r = (u) => {
|
|
169
|
-
const
|
|
170
|
-
return
|
|
169
|
+
const f = document.getElementById(n);
|
|
170
|
+
return f !== null ? (u(f), o(), !0) : !1;
|
|
171
171
|
}, s = (u) => (u.preventDefault(), o(), e.onClick && e.onClick(u), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
|
|
172
|
-
e.scroll || ((
|
|
172
|
+
e.scroll || ((f) => e.smooth ? f.scrollIntoView({ behavior: "smooth" }) : f.scrollIntoView())
|
|
173
173
|
), !1), { scroll: a, smooth: d, to: c, ...l } = e;
|
|
174
174
|
return t === "a" && (l.href = "javascript:;"), /* @__PURE__ */ i(t, { ...l, onClick: s, children: e.children });
|
|
175
175
|
}, ie = (e) => (t, n) => {
|
|
@@ -214,7 +214,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
214
214
|
children: t
|
|
215
215
|
}
|
|
216
216
|
)
|
|
217
|
-
), Dt =
|
|
217
|
+
), Dt = C.button`
|
|
218
218
|
-webkit-appearance: button;
|
|
219
219
|
text-transform: none;
|
|
220
220
|
overflow: visible;
|
|
@@ -251,9 +251,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
251
251
|
type: "",
|
|
252
252
|
name: "",
|
|
253
253
|
branch: ""
|
|
254
|
-
}),
|
|
254
|
+
}), Vt = K(
|
|
255
255
|
{}
|
|
256
|
-
),
|
|
256
|
+
), Nt = K(null), Wt = K(null), pe = () => P(Ze), T = () => P(Bt), C1 = (e, t) => {
|
|
257
257
|
const n = pe().id, o = T();
|
|
258
258
|
return (r, s) => {
|
|
259
259
|
(t || o).getAsync("actionResolver").then((a) => {
|
|
@@ -276,7 +276,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
276
276
|
}, Y = (e) => {
|
|
277
277
|
const t = T(), [n, o] = w(null), r = W();
|
|
278
278
|
return v(() => {
|
|
279
|
-
|
|
279
|
+
ht.getInstance(e || t).then(
|
|
280
280
|
(s) => {
|
|
281
281
|
r.current && o(s);
|
|
282
282
|
}
|
|
@@ -360,7 +360,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
360
360
|
reject: l
|
|
361
361
|
});
|
|
362
362
|
}) : r.dispatch(a, d);
|
|
363
|
-
},
|
|
363
|
+
}, N = (e, t, n = window, o = () => !0) => {
|
|
364
364
|
const r = L(() => {
|
|
365
365
|
});
|
|
366
366
|
v(() => {
|
|
@@ -401,7 +401,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
401
401
|
},
|
|
402
402
|
[o]
|
|
403
403
|
);
|
|
404
|
-
return
|
|
404
|
+
return N("keydown", r, window), N("keyup", s, window), n;
|
|
405
405
|
}, $1 = (e) => {
|
|
406
406
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = W();
|
|
407
407
|
return v(() => {
|
|
@@ -424,7 +424,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
424
424
|
return v(() => {
|
|
425
425
|
t.current = e;
|
|
426
426
|
}), t.current;
|
|
427
|
-
}, L1 = () => P(
|
|
427
|
+
}, L1 = () => P(Vt), M1 = (e) => {
|
|
428
428
|
const [t, n] = w(), o = T(), r = W();
|
|
429
429
|
return v(() => {
|
|
430
430
|
let s;
|
|
@@ -435,12 +435,12 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
435
435
|
return c("renderState").then((l) => {
|
|
436
436
|
r.current && n(l);
|
|
437
437
|
}), (e || o).getAsync("actionResolver").then((l) => {
|
|
438
|
-
s = l.subscribe(d, (u,
|
|
439
|
-
switch (
|
|
438
|
+
s = l.subscribe(d, (u, f) => {
|
|
439
|
+
switch (f) {
|
|
440
440
|
case "close":
|
|
441
441
|
case "open":
|
|
442
442
|
r.current && n(
|
|
443
|
-
|
|
443
|
+
f === "open" ? ne.open : ne.closed
|
|
444
444
|
);
|
|
445
445
|
break;
|
|
446
446
|
case "hide":
|
|
@@ -451,7 +451,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
451
451
|
s && s();
|
|
452
452
|
};
|
|
453
453
|
}, [r]), t;
|
|
454
|
-
}, Oe = () => P(
|
|
454
|
+
}, Oe = () => P(Nt), S1 = (e) => {
|
|
455
455
|
const t = T(), n = Oe(), [o, r] = w({
|
|
456
456
|
name: "",
|
|
457
457
|
params: {}
|
|
@@ -465,8 +465,8 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
465
465
|
"router:change",
|
|
466
466
|
(l, { next: { routeData: u } }) => {
|
|
467
467
|
if (s.current) {
|
|
468
|
-
const { name:
|
|
469
|
-
Re(
|
|
468
|
+
const { name: f, params: h } = u;
|
|
469
|
+
Re(h), r({ name: f, params: h });
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
);
|
|
@@ -494,32 +494,32 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
494
494
|
(l) => {
|
|
495
495
|
if (!l.cancelable)
|
|
496
496
|
return;
|
|
497
|
-
const u = l.touches[0].clientY,
|
|
498
|
-
if (!
|
|
497
|
+
const u = l.touches[0].clientY, f = a(l.target);
|
|
498
|
+
if (!f)
|
|
499
499
|
return;
|
|
500
|
-
const
|
|
501
|
-
(
|
|
500
|
+
const h = f.scrollTop, m = n.current - u < 0 ? "up" : "down", p = h <= 0 && m === "up", g = h >= f.scrollHeight - f.offsetHeight && m === "down";
|
|
501
|
+
(p || g) && l.preventDefault(), n.current = u;
|
|
502
502
|
},
|
|
503
503
|
[t, n]
|
|
504
504
|
);
|
|
505
|
-
return
|
|
505
|
+
return N(
|
|
506
506
|
"scroll",
|
|
507
507
|
r,
|
|
508
508
|
t.current,
|
|
509
509
|
() => t.current && e
|
|
510
|
-
),
|
|
510
|
+
), N(
|
|
511
511
|
"touchstart",
|
|
512
512
|
s,
|
|
513
513
|
t.current,
|
|
514
514
|
() => t.current && e
|
|
515
|
-
),
|
|
515
|
+
), N(
|
|
516
516
|
"touchmove",
|
|
517
517
|
c,
|
|
518
518
|
t.current,
|
|
519
519
|
() => t.current && e
|
|
520
520
|
), e ? [Ot, t] : ["", t];
|
|
521
521
|
}, Ot = `
|
|
522
|
-
overflow-y: ${De() ===
|
|
522
|
+
overflow-y: ${De() === he.Chrome || De() === he.EdgeChromium ? "overlay" : "auto"};
|
|
523
523
|
overflow-x: hidden;
|
|
524
524
|
-ms-overflow-style: none; /* IE 10+ */
|
|
525
525
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -562,14 +562,14 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
562
562
|
const t = T(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [a, d] = w(null), c = W();
|
|
563
563
|
v(() => {
|
|
564
564
|
if (n && c.current) {
|
|
565
|
-
const u = n.nodes.all.find((
|
|
566
|
-
if (!(
|
|
565
|
+
const u = n.nodes.all.find((h) => h.name === "root-area"), f = n.nodes.all.find((h) => h.type === "view");
|
|
566
|
+
if (!(f != null && f.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
|
|
567
567
|
e();
|
|
568
568
|
else {
|
|
569
|
-
const
|
|
569
|
+
const h = (g = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${g}"]`), m = h(f == null ? void 0 : f.id);
|
|
570
570
|
m && s(m);
|
|
571
|
-
const
|
|
572
|
-
|
|
571
|
+
const p = h(u == null ? void 0 : u.id);
|
|
572
|
+
p && d(p);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
}, [n, t, c]);
|
|
@@ -579,11 +579,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
579
579
|
},
|
|
580
580
|
[e, c, r, a]
|
|
581
581
|
);
|
|
582
|
-
|
|
582
|
+
N(
|
|
583
583
|
"transitionend",
|
|
584
584
|
l,
|
|
585
585
|
r
|
|
586
|
-
),
|
|
586
|
+
), N(
|
|
587
587
|
"transitionend",
|
|
588
588
|
l,
|
|
589
589
|
a
|
|
@@ -688,7 +688,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
688
688
|
${O(e)}
|
|
689
689
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
690
690
|
`;
|
|
691
|
-
}, ve =
|
|
691
|
+
}, ve = C(se)`
|
|
692
692
|
position: absolute;
|
|
693
693
|
top: ${(e) => {
|
|
694
694
|
var t;
|
|
@@ -716,7 +716,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
716
716
|
height: 15px;
|
|
717
717
|
box-sizing: content-box;
|
|
718
718
|
}
|
|
719
|
-
`, Be =
|
|
719
|
+
`, Be = C(be)`
|
|
720
720
|
font-size: ${(e) => {
|
|
721
721
|
var t;
|
|
722
722
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -900,7 +900,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
900
900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
901
901
|
...a,
|
|
902
902
|
ref: null
|
|
903
|
-
},
|
|
903
|
+
}, f = { minWidth: `${n}` };
|
|
904
904
|
switch (c) {
|
|
905
905
|
case "search":
|
|
906
906
|
return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...u, children: [
|
|
@@ -954,22 +954,22 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
954
954
|
/* @__PURE__ */ i("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" })
|
|
955
955
|
] });
|
|
956
956
|
case "caret-right":
|
|
957
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style:
|
|
957
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: f, ...u, children: [
|
|
958
958
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }),
|
|
959
959
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" })
|
|
960
960
|
] });
|
|
961
961
|
case "caret-left":
|
|
962
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style:
|
|
962
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: f, ...u, children: [
|
|
963
963
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }),
|
|
964
964
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" })
|
|
965
965
|
] });
|
|
966
966
|
case "caret-up":
|
|
967
|
-
return /* @__PURE__ */ b(jt, { viewBox: "0 0 14 14", style:
|
|
967
|
+
return /* @__PURE__ */ b(jt, { viewBox: "0 0 14 14", style: f, ...u, children: [
|
|
968
968
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
969
969
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
970
970
|
] });
|
|
971
971
|
case "caret-down":
|
|
972
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style:
|
|
972
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: f, ...u, children: [
|
|
973
973
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
974
974
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
975
975
|
] });
|
|
@@ -1297,7 +1297,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
1297
1297
|
)
|
|
1298
1298
|
] });
|
|
1299
1299
|
case "video":
|
|
1300
|
-
return
|
|
1300
|
+
return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ b("svg", { viewBox: "0 0 25 25", ...u, style: f, children: [
|
|
1301
1301
|
/* @__PURE__ */ i(
|
|
1302
1302
|
"path",
|
|
1303
1303
|
{
|
|
@@ -1458,7 +1458,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
1458
1458
|
}
|
|
1459
1459
|
) : null;
|
|
1460
1460
|
}
|
|
1461
|
-
}, jt =
|
|
1461
|
+
}, jt = C.svg`
|
|
1462
1462
|
transform: rotate(180deg);
|
|
1463
1463
|
`, Kt = {
|
|
1464
1464
|
h1: "h1",
|
|
@@ -1480,7 +1480,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
1480
1480
|
...r
|
|
1481
1481
|
}, a = t || s[e] || "span";
|
|
1482
1482
|
return /* @__PURE__ */ i(Yt, { className: n, as: a, children: o });
|
|
1483
|
-
}, Yt =
|
|
1483
|
+
}, Yt = C.span``;
|
|
1484
1484
|
var Xt = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Xt || {});
|
|
1485
1485
|
const Ut = 300, T1 = ({
|
|
1486
1486
|
className: e,
|
|
@@ -1495,33 +1495,33 @@ const Ut = 300, T1 = ({
|
|
|
1495
1495
|
/* SlideInBottom */
|
|
1496
1496
|
}
|
|
1497
1497
|
}) => {
|
|
1498
|
-
const { duration: c = Ut } = d, l = L(), u = L(), [
|
|
1498
|
+
const { duration: c = Ut } = d, l = L(), u = L(), [f, h] = Ae(!0), [m, p] = Fe(), g = Ie(m), y = L(U());
|
|
1499
1499
|
v(() => {
|
|
1500
1500
|
o && o(m);
|
|
1501
1501
|
}, [m]);
|
|
1502
1502
|
const S = j("Escape");
|
|
1503
1503
|
v(() => {
|
|
1504
|
-
S &&
|
|
1505
|
-
}, [S]),
|
|
1504
|
+
S && p(!1);
|
|
1505
|
+
}, [S]), N(
|
|
1506
1506
|
"click",
|
|
1507
1507
|
(z) => {
|
|
1508
1508
|
const { target: Z } = z;
|
|
1509
|
-
!u.current || !
|
|
1509
|
+
!u.current || !h.current || !Z || u.current !== Z && h.current !== Z && !h.current.contains(Z) && !u.current.contains(Z) && p(!1);
|
|
1510
1510
|
},
|
|
1511
1511
|
window
|
|
1512
1512
|
);
|
|
1513
|
-
const R = ye(
|
|
1514
|
-
|
|
1513
|
+
const R = ye(y.current, () => {
|
|
1514
|
+
p(!1);
|
|
1515
1515
|
});
|
|
1516
1516
|
ae("router:changed", () => {
|
|
1517
|
-
|
|
1517
|
+
p(!1);
|
|
1518
1518
|
}), v(() => {
|
|
1519
1519
|
m && l.current ? l.current.focus() : !m && u.current && g && u.current.focus();
|
|
1520
1520
|
}, [m, l.current, u.current]);
|
|
1521
|
-
const
|
|
1521
|
+
const V = en[d.type];
|
|
1522
1522
|
return /* @__PURE__ */ b(_, { children: [
|
|
1523
1523
|
/* @__PURE__ */ i(
|
|
1524
|
-
|
|
1524
|
+
Ne,
|
|
1525
1525
|
{
|
|
1526
1526
|
in: m,
|
|
1527
1527
|
className: "humany-drawer-transition",
|
|
@@ -1529,23 +1529,23 @@ const Ut = 300, T1 = ({
|
|
|
1529
1529
|
unmountOnExit: !0,
|
|
1530
1530
|
timeout: c,
|
|
1531
1531
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1532
|
-
|
|
1532
|
+
V,
|
|
1533
1533
|
{
|
|
1534
1534
|
duration: c,
|
|
1535
1535
|
fullScreen: s,
|
|
1536
1536
|
className: $(
|
|
1537
1537
|
e,
|
|
1538
1538
|
"humany-drawer",
|
|
1539
|
-
`humany-drawer-${
|
|
1539
|
+
`humany-drawer-${y.current}`
|
|
1540
1540
|
),
|
|
1541
1541
|
clientHeight: document.body.clientHeight,
|
|
1542
|
-
css:
|
|
1543
|
-
ref:
|
|
1542
|
+
css: f,
|
|
1543
|
+
ref: h,
|
|
1544
1544
|
children: [
|
|
1545
1545
|
/* @__PURE__ */ i(
|
|
1546
1546
|
ve,
|
|
1547
1547
|
{
|
|
1548
|
-
onClick: () =>
|
|
1548
|
+
onClick: () => p(!1),
|
|
1549
1549
|
tabIndex: 0,
|
|
1550
1550
|
ref: l,
|
|
1551
1551
|
"aria-label": a,
|
|
@@ -1561,14 +1561,14 @@ const Ut = 300, T1 = ({
|
|
|
1561
1561
|
),
|
|
1562
1562
|
oe.cloneElement(r, {
|
|
1563
1563
|
onClick: (z) => {
|
|
1564
|
-
|
|
1564
|
+
p(), R();
|
|
1565
1565
|
},
|
|
1566
1566
|
ref: u,
|
|
1567
1567
|
"aria-label": r.props.title,
|
|
1568
1568
|
"aria-expanded": m
|
|
1569
1569
|
})
|
|
1570
1570
|
] });
|
|
1571
|
-
}, ce =
|
|
1571
|
+
}, ce = C.div`
|
|
1572
1572
|
font-family: ${(e) => {
|
|
1573
1573
|
var t;
|
|
1574
1574
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1585,7 +1585,7 @@ const Ut = 300, T1 = ({
|
|
|
1585
1585
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1586
1586
|
background: #ffffff;
|
|
1587
1587
|
${(e) => e.css && e.css}
|
|
1588
|
-
`, _t =
|
|
1588
|
+
`, _t = C(X)`
|
|
1589
1589
|
padding: ${(e) => {
|
|
1590
1590
|
var t;
|
|
1591
1591
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1610,7 +1610,7 @@ const Ut = 300, T1 = ({
|
|
|
1610
1610
|
line-height: 1.2em;
|
|
1611
1611
|
`, le = (e) => k`
|
|
1612
1612
|
transition: ${e.duration}ms;
|
|
1613
|
-
`, qt =
|
|
1613
|
+
`, qt = C(ce)`
|
|
1614
1614
|
max-height: 0;
|
|
1615
1615
|
${le}
|
|
1616
1616
|
|
|
@@ -1627,7 +1627,7 @@ const Ut = 300, T1 = ({
|
|
|
1627
1627
|
&.humany-drawer-transition-exit-done {
|
|
1628
1628
|
max-height: 0;
|
|
1629
1629
|
}
|
|
1630
|
-
`, Qt =
|
|
1630
|
+
`, Qt = C(ce)`
|
|
1631
1631
|
${le}
|
|
1632
1632
|
transform: translateX(100%);
|
|
1633
1633
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1645,7 +1645,7 @@ const Ut = 300, T1 = ({
|
|
|
1645
1645
|
&.humany-drawer-transition-exit-done {
|
|
1646
1646
|
transform: translateX(100%);
|
|
1647
1647
|
}
|
|
1648
|
-
`, Gt =
|
|
1648
|
+
`, Gt = C(ce)`
|
|
1649
1649
|
${le}
|
|
1650
1650
|
transform: translateX(-100%);
|
|
1651
1651
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1663,7 +1663,7 @@ const Ut = 300, T1 = ({
|
|
|
1663
1663
|
&.humany-drawer-transition-exit-done {
|
|
1664
1664
|
transform: translateX(-100%);
|
|
1665
1665
|
}
|
|
1666
|
-
`, Jt =
|
|
1666
|
+
`, Jt = C(ce)`
|
|
1667
1667
|
${le}
|
|
1668
1668
|
bottom: unset;
|
|
1669
1669
|
top: 0;
|
|
@@ -1718,7 +1718,7 @@ const Ut = 300, T1 = ({
|
|
|
1718
1718
|
};
|
|
1719
1719
|
c.left < 0 && (l.x = 0), c.bottom > window.innerHeight && (l.y = 0), l.x !== o && r(l.x), l.y !== s && a(l.y);
|
|
1720
1720
|
}, [n, e, t]), [{ x: o, y: s }, d];
|
|
1721
|
-
},
|
|
1721
|
+
}, V1 = oe.forwardRef(
|
|
1722
1722
|
({
|
|
1723
1723
|
className: e = "",
|
|
1724
1724
|
children: t = null,
|
|
@@ -1728,28 +1728,28 @@ const Ut = 300, T1 = ({
|
|
|
1728
1728
|
}, s) => {
|
|
1729
1729
|
const a = L(), d = L(), c = L();
|
|
1730
1730
|
ge(s, () => c.current, [c.current]);
|
|
1731
|
-
const l = L(U()), [u,
|
|
1731
|
+
const l = L(U()), [u, f] = w(!1), h = Ie(u), [{ x: m, y: p }, g] = je(u, l.current, c.current), y = j("Escape");
|
|
1732
1732
|
v(() => {
|
|
1733
|
-
|
|
1734
|
-
}, [
|
|
1735
|
-
u && a.current ? a.current.focus() : !u && d.current &&
|
|
1736
|
-
}, [u, a.current, d.current]),
|
|
1733
|
+
y && f(!1);
|
|
1734
|
+
}, [y]), v(() => {
|
|
1735
|
+
u && a.current ? a.current.focus() : !u && d.current && h && d.current.focus();
|
|
1736
|
+
}, [u, a.current, d.current]), N(
|
|
1737
1737
|
"click",
|
|
1738
|
-
(
|
|
1739
|
-
const { target: z } =
|
|
1740
|
-
!c.current || !z || c.current !== z && !c.current.contains(z) &&
|
|
1738
|
+
(V) => {
|
|
1739
|
+
const { target: z } = V;
|
|
1740
|
+
!c.current || !z || c.current !== z && !c.current.contains(z) && f(!1);
|
|
1741
1741
|
},
|
|
1742
1742
|
window
|
|
1743
1743
|
), ae("router:changed", () => {
|
|
1744
|
-
|
|
1744
|
+
f(!1);
|
|
1745
1745
|
});
|
|
1746
1746
|
const S = ye(l.current, () => {
|
|
1747
|
-
|
|
1747
|
+
f(!1);
|
|
1748
1748
|
}), R = M(
|
|
1749
|
-
(
|
|
1750
|
-
|
|
1749
|
+
(V) => {
|
|
1750
|
+
V.stopPropagation(), g(V, d.current), f(!u), S();
|
|
1751
1751
|
},
|
|
1752
|
-
[S, g,
|
|
1752
|
+
[S, g, f]
|
|
1753
1753
|
);
|
|
1754
1754
|
return /* @__PURE__ */ b(_, { children: [
|
|
1755
1755
|
u && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
@@ -1762,13 +1762,13 @@ const Ut = 300, T1 = ({
|
|
|
1762
1762
|
),
|
|
1763
1763
|
...r,
|
|
1764
1764
|
x: m,
|
|
1765
|
-
y:
|
|
1765
|
+
y: p,
|
|
1766
1766
|
ref: c,
|
|
1767
1767
|
children: [
|
|
1768
1768
|
/* @__PURE__ */ i(
|
|
1769
1769
|
ve,
|
|
1770
1770
|
{
|
|
1771
|
-
onClick: () =>
|
|
1771
|
+
onClick: () => f(!1),
|
|
1772
1772
|
tabIndex: 0,
|
|
1773
1773
|
ref: a,
|
|
1774
1774
|
"aria-label": o,
|
|
@@ -1787,7 +1787,7 @@ const Ut = 300, T1 = ({
|
|
|
1787
1787
|
})
|
|
1788
1788
|
] });
|
|
1789
1789
|
}
|
|
1790
|
-
), tn =
|
|
1790
|
+
), tn = C.div`
|
|
1791
1791
|
${Pe}
|
|
1792
1792
|
padding: ${(e) => {
|
|
1793
1793
|
var t;
|
|
@@ -1802,9 +1802,9 @@ const Ut = 300, T1 = ({
|
|
|
1802
1802
|
let t = "";
|
|
1803
1803
|
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;
|
|
1804
1804
|
}};
|
|
1805
|
-
`, nn = ({ ...e }) => /* @__PURE__ */ i(on, { ...e }), on =
|
|
1805
|
+
`, nn = ({ ...e }) => /* @__PURE__ */ i(on, { ...e }), on = C.div`
|
|
1806
1806
|
display: none;
|
|
1807
|
-
`,
|
|
1807
|
+
`, N1 = H(
|
|
1808
1808
|
({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
|
|
1809
1809
|
rn,
|
|
1810
1810
|
{
|
|
@@ -1817,7 +1817,7 @@ const Ut = 300, T1 = ({
|
|
|
1817
1817
|
children: e
|
|
1818
1818
|
}
|
|
1819
1819
|
)
|
|
1820
|
-
), rn =
|
|
1820
|
+
), rn = C.div`
|
|
1821
1821
|
display: grid;
|
|
1822
1822
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1823
1823
|
grid-gap: ${(e) => e["data-gap"]};
|
|
@@ -1878,24 +1878,24 @@ const Ut = 300, T1 = ({
|
|
|
1878
1878
|
type: c,
|
|
1879
1879
|
...l
|
|
1880
1880
|
}, u) => {
|
|
1881
|
-
const [
|
|
1881
|
+
const [f, h] = w(t), m = L();
|
|
1882
1882
|
ge(u, () => m.current), v(() => {
|
|
1883
|
-
var
|
|
1884
|
-
t && ((
|
|
1883
|
+
var y;
|
|
1884
|
+
t && ((y = m == null ? void 0 : m.current) == null || y.focus());
|
|
1885
1885
|
}, [t, u, m]);
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1886
|
+
const p = (y, S) => {
|
|
1887
|
+
h(y), n && n(y), s && y && S.target.select();
|
|
1888
1888
|
}, g = {
|
|
1889
1889
|
...D(l),
|
|
1890
1890
|
disabled: d,
|
|
1891
1891
|
autoFocus: t,
|
|
1892
1892
|
type: c,
|
|
1893
|
-
onKeyDown: (
|
|
1894
|
-
|
|
1893
|
+
onKeyDown: (y) => {
|
|
1894
|
+
y.key === "Enter" && f && o(y), y.key === "Escape" && f && r(y);
|
|
1895
1895
|
},
|
|
1896
|
-
onFocus: (
|
|
1897
|
-
onBlur: (
|
|
1898
|
-
onChange: (
|
|
1896
|
+
onFocus: (y) => p(!0, y),
|
|
1897
|
+
onBlur: (y) => p(!1, y),
|
|
1898
|
+
onChange: (y) => a(y.target.value || ""),
|
|
1899
1899
|
className: $(e, "humany-input"),
|
|
1900
1900
|
"data-type": c
|
|
1901
1901
|
};
|
|
@@ -1918,7 +1918,6 @@ const Ut = 300, T1 = ({
|
|
|
1918
1918
|
"ul",
|
|
1919
1919
|
{
|
|
1920
1920
|
role: "none",
|
|
1921
|
-
"aria-live": "polite",
|
|
1922
1921
|
className: $(e, "humany-list"),
|
|
1923
1922
|
"data-item-count": t.length,
|
|
1924
1923
|
...D(r),
|
|
@@ -1958,14 +1957,14 @@ const Ut = 300, T1 = ({
|
|
|
1958
1957
|
renderItem: c,
|
|
1959
1958
|
renderLi: l,
|
|
1960
1959
|
ulProps: u,
|
|
1961
|
-
...
|
|
1962
|
-
},
|
|
1960
|
+
...f
|
|
1961
|
+
}, h) => /* @__PURE__ */ b(
|
|
1963
1962
|
"div",
|
|
1964
1963
|
{
|
|
1965
1964
|
className: $(r, "humany-item-list"),
|
|
1966
1965
|
"data-item-count": d.length,
|
|
1967
|
-
...D(
|
|
1968
|
-
ref:
|
|
1966
|
+
...D(f),
|
|
1967
|
+
ref: h,
|
|
1969
1968
|
children: [
|
|
1970
1969
|
t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol: a, header: e, text: n, html: o }) : null),
|
|
1971
1970
|
d.length ? /* @__PURE__ */ i(
|
|
@@ -1991,23 +1990,23 @@ const Ut = 300, T1 = ({
|
|
|
1991
1990
|
ulProps: a,
|
|
1992
1991
|
liProps: d
|
|
1993
1992
|
}) => {
|
|
1994
|
-
const c = (
|
|
1993
|
+
const c = (f) => !l(f), l = (f) => !f || f.length < 1 ? !0 : !f.some((h) => !!h.selected), u = (f, h) => /* @__PURE__ */ i(
|
|
1995
1994
|
ln,
|
|
1996
1995
|
{
|
|
1997
|
-
className: $(`humany-item-tree-level-${
|
|
1998
|
-
items:
|
|
1996
|
+
className: $(`humany-item-tree-level-${h}`),
|
|
1997
|
+
items: f,
|
|
1999
1998
|
ulProps: a,
|
|
2000
1999
|
renderItem: (m) => {
|
|
2001
|
-
const { id:
|
|
2000
|
+
const { id: p, selected: g, items: y, matches: S } = m, R = g && l(y);
|
|
2002
2001
|
return !s && !S ? null : /* @__PURE__ */ at(
|
|
2003
2002
|
"li",
|
|
2004
2003
|
{
|
|
2005
2004
|
...D(d),
|
|
2006
|
-
key:
|
|
2005
|
+
key: p,
|
|
2007
2006
|
className: "humany-item-tree-item"
|
|
2008
2007
|
},
|
|
2009
|
-
n && n(m,
|
|
2010
|
-
|
|
2008
|
+
n && n(m, h, R),
|
|
2009
|
+
y && (r || R) && u(y, h + 1)
|
|
2011
2010
|
);
|
|
2012
2011
|
}
|
|
2013
2012
|
}
|
|
@@ -2031,7 +2030,7 @@ const Ut = 300, T1 = ({
|
|
|
2031
2030
|
if (!c)
|
|
2032
2031
|
return null;
|
|
2033
2032
|
let u = "";
|
|
2034
|
-
const
|
|
2033
|
+
const f = {
|
|
2035
2034
|
onClick: t,
|
|
2036
2035
|
className: $(e, "humany-route-link"),
|
|
2037
2036
|
to: u,
|
|
@@ -2046,7 +2045,7 @@ const Ut = 300, T1 = ({
|
|
|
2046
2045
|
), /* @__PURE__ */ i(
|
|
2047
2046
|
de,
|
|
2048
2047
|
{
|
|
2049
|
-
...
|
|
2048
|
+
...f,
|
|
2050
2049
|
onClick: (g) => {
|
|
2051
2050
|
t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(
|
|
2052
2051
|
`Unable to navigate. No route named "${n}" exist.`
|
|
@@ -2055,23 +2054,23 @@ const Ut = 300, T1 = ({
|
|
|
2055
2054
|
children: s
|
|
2056
2055
|
}
|
|
2057
2056
|
);
|
|
2058
|
-
const
|
|
2059
|
-
(g,
|
|
2060
|
-
const S = r[
|
|
2057
|
+
const p = Object.keys(r).reduce(
|
|
2058
|
+
(g, y) => {
|
|
2059
|
+
const S = r[y];
|
|
2061
2060
|
if (Array.isArray(S)) {
|
|
2062
2061
|
if (S.length === 0)
|
|
2063
2062
|
return g;
|
|
2064
|
-
g[
|
|
2063
|
+
g[y] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
|
|
2065
2064
|
} else
|
|
2066
|
-
g[
|
|
2065
|
+
g[y] = typeof S == "string" ? encodeURIComponent(S) : S;
|
|
2067
2066
|
return g;
|
|
2068
2067
|
},
|
|
2069
2068
|
{}
|
|
2070
2069
|
);
|
|
2071
2070
|
try {
|
|
2072
|
-
u = c.generate(n,
|
|
2071
|
+
u = c.generate(n, p || {});
|
|
2073
2072
|
} catch {
|
|
2074
|
-
return /* @__PURE__ */ i(de, { ...
|
|
2073
|
+
return /* @__PURE__ */ i(de, { ...f, ref: f.innerRef, children: s });
|
|
2075
2074
|
}
|
|
2076
2075
|
u && c.settings.mode && c.settings.mode === ze.browser && u[0] !== "/" && (u = `/${u}`);
|
|
2077
2076
|
} else if (o && c.history)
|
|
@@ -2086,83 +2085,83 @@ const Ut = 300, T1 = ({
|
|
|
2086
2085
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2087
2086
|
), null;
|
|
2088
2087
|
if (c.settings && c.settings.mode === ze.scopedHash) {
|
|
2089
|
-
const
|
|
2090
|
-
u = bt(u,
|
|
2088
|
+
const h = l.get("$widget").name;
|
|
2089
|
+
u = bt(u, h);
|
|
2091
2090
|
}
|
|
2092
|
-
return
|
|
2091
|
+
return f.as ? /* @__PURE__ */ i(dn, { ...f, as: f.as, children: s }) : /* @__PURE__ */ i(de, { ...f, to: u, children: s });
|
|
2093
2092
|
}
|
|
2094
|
-
), dn =
|
|
2093
|
+
), dn = C.span``, xe = H(
|
|
2095
2094
|
({
|
|
2096
2095
|
className: e,
|
|
2097
2096
|
disabled: t = !1,
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
onClick: r = () => {
|
|
2097
|
+
tabIndex: n = 0,
|
|
2098
|
+
onClick: o = () => {
|
|
2101
2099
|
},
|
|
2102
|
-
onKeyDown:
|
|
2100
|
+
onKeyDown: r = () => {
|
|
2103
2101
|
},
|
|
2104
|
-
title:
|
|
2105
|
-
as:
|
|
2106
|
-
href:
|
|
2107
|
-
children:
|
|
2108
|
-
target:
|
|
2109
|
-
routeName:
|
|
2102
|
+
title: s,
|
|
2103
|
+
as: a,
|
|
2104
|
+
href: d,
|
|
2105
|
+
children: c,
|
|
2106
|
+
target: l,
|
|
2107
|
+
routeName: u,
|
|
2110
2108
|
params: f,
|
|
2111
|
-
...
|
|
2112
|
-
},
|
|
2113
|
-
const
|
|
2114
|
-
title:
|
|
2109
|
+
...h
|
|
2110
|
+
}, m) => {
|
|
2111
|
+
const p = {
|
|
2112
|
+
title: s,
|
|
2113
|
+
role: u === "index" ? "button" : void 0,
|
|
2114
|
+
"aria-expanded": u === "index" ? "false" : void 0,
|
|
2115
2115
|
disabled: t,
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
tabIndex: o,
|
|
2116
|
+
as: a,
|
|
2117
|
+
tabIndex: n,
|
|
2119
2118
|
className: $(e, "humany-link", [
|
|
2120
2119
|
!!t,
|
|
2121
2120
|
"humany-disabled"
|
|
2122
2121
|
]),
|
|
2123
|
-
onClick: (
|
|
2124
|
-
if (
|
|
2125
|
-
|
|
2122
|
+
onClick: (g) => {
|
|
2123
|
+
if (g.persist(), t) {
|
|
2124
|
+
g.preventDefault();
|
|
2126
2125
|
return;
|
|
2127
2126
|
}
|
|
2128
|
-
|
|
2127
|
+
o(g);
|
|
2129
2128
|
},
|
|
2130
|
-
onKeyDown: (
|
|
2131
|
-
if (
|
|
2132
|
-
|
|
2129
|
+
onKeyDown: (g) => {
|
|
2130
|
+
if (g.persist(), t) {
|
|
2131
|
+
g.key !== "Tab" && g.preventDefault();
|
|
2133
2132
|
return;
|
|
2134
2133
|
}
|
|
2135
|
-
|
|
2134
|
+
r(g);
|
|
2136
2135
|
}
|
|
2137
2136
|
};
|
|
2138
|
-
return h ? /* @__PURE__ */ i(
|
|
2139
|
-
|
|
2137
|
+
return h["data-client-name"] === "custom.link" && (p.role = "link"), u ? /* @__PURE__ */ i(
|
|
2138
|
+
fn,
|
|
2140
2139
|
{
|
|
2141
|
-
name:
|
|
2140
|
+
name: u,
|
|
2142
2141
|
params: f,
|
|
2143
|
-
...
|
|
2144
|
-
...D(
|
|
2145
|
-
ref:
|
|
2146
|
-
children:
|
|
2142
|
+
...p,
|
|
2143
|
+
...D(h),
|
|
2144
|
+
ref: m,
|
|
2145
|
+
children: c
|
|
2147
2146
|
}
|
|
2148
2147
|
) : /* @__PURE__ */ i(
|
|
2149
|
-
|
|
2148
|
+
hn,
|
|
2150
2149
|
{
|
|
2151
|
-
href:
|
|
2152
|
-
target:
|
|
2153
|
-
...
|
|
2154
|
-
...D(
|
|
2155
|
-
ref:
|
|
2156
|
-
children:
|
|
2150
|
+
href: d,
|
|
2151
|
+
target: l,
|
|
2152
|
+
...p,
|
|
2153
|
+
...D(h),
|
|
2154
|
+
ref: m,
|
|
2155
|
+
children: c
|
|
2157
2156
|
}
|
|
2158
2157
|
);
|
|
2159
2158
|
}
|
|
2160
|
-
),
|
|
2159
|
+
), fn = C(un)`
|
|
2161
2160
|
${(e) => e.disabled ? `
|
|
2162
2161
|
pointer-events: none;
|
|
2163
2162
|
opacity: .7;
|
|
2164
2163
|
` : "cursor: pointer;"}
|
|
2165
|
-
`,
|
|
2164
|
+
`, hn = C.a`
|
|
2166
2165
|
${(e) => e.disabled ? `
|
|
2167
2166
|
pointer-events: none;
|
|
2168
2167
|
opacity: .7;
|
|
@@ -2182,7 +2181,7 @@ const Ut = 300, T1 = ({
|
|
|
2182
2181
|
[o]
|
|
2183
2182
|
);
|
|
2184
2183
|
return /* @__PURE__ */ i(
|
|
2185
|
-
|
|
2184
|
+
Ne,
|
|
2186
2185
|
{
|
|
2187
2186
|
in: e,
|
|
2188
2187
|
className: "humany-overlay-transition",
|
|
@@ -2202,7 +2201,7 @@ const Ut = 300, T1 = ({
|
|
|
2202
2201
|
) })
|
|
2203
2202
|
}
|
|
2204
2203
|
);
|
|
2205
|
-
}, mn =
|
|
2204
|
+
}, mn = C.div`
|
|
2206
2205
|
background: rgba(0, 0, 0, 0.6);
|
|
2207
2206
|
min-width: 100%;
|
|
2208
2207
|
min-height: 100%;
|
|
@@ -2232,11 +2231,11 @@ const Ut = 300, T1 = ({
|
|
|
2232
2231
|
&.humany-overlay-transition-exit-done {
|
|
2233
2232
|
opacity: 0;
|
|
2234
2233
|
}
|
|
2235
|
-
`, gn =
|
|
2234
|
+
`, gn = Ve`
|
|
2236
2235
|
100% {
|
|
2237
2236
|
transform: rotate(360deg);
|
|
2238
2237
|
}
|
|
2239
|
-
`, pn =
|
|
2238
|
+
`, pn = Ve`
|
|
2240
2239
|
0% {
|
|
2241
2240
|
stroke-dasharray: 1, 200;
|
|
2242
2241
|
stroke-dashoffset: 0;
|
|
@@ -2249,7 +2248,7 @@ const Ut = 300, T1 = ({
|
|
|
2249
2248
|
stroke-dasharray: 89, 200;
|
|
2250
2249
|
stroke-dashoffset: -124px;
|
|
2251
2250
|
}
|
|
2252
|
-
`, Cn =
|
|
2251
|
+
`, Cn = C.svg`
|
|
2253
2252
|
animation: ${gn} 2s linear infinite;
|
|
2254
2253
|
height: 100%;
|
|
2255
2254
|
transform-origin: center center;
|
|
@@ -2261,7 +2260,7 @@ const Ut = 300, T1 = ({
|
|
|
2261
2260
|
right: 0;
|
|
2262
2261
|
margin: auto;
|
|
2263
2262
|
transition: 200ms ease-out opacity;
|
|
2264
|
-
`, yn =
|
|
2263
|
+
`, yn = C.div`
|
|
2265
2264
|
position: absolute;
|
|
2266
2265
|
top: 0;
|
|
2267
2266
|
bottom: 0;
|
|
@@ -2279,7 +2278,7 @@ const Ut = 300, T1 = ({
|
|
|
2279
2278
|
svg {
|
|
2280
2279
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2281
2280
|
}
|
|
2282
|
-
`, bn =
|
|
2281
|
+
`, bn = C.div`
|
|
2283
2282
|
position: relative;
|
|
2284
2283
|
margin: 0 auto;
|
|
2285
2284
|
width: 100px;
|
|
@@ -2288,7 +2287,7 @@ const Ut = 300, T1 = ({
|
|
|
2288
2287
|
display: block;
|
|
2289
2288
|
padding-top: 100%;
|
|
2290
2289
|
}
|
|
2291
|
-
`, vn =
|
|
2290
|
+
`, vn = C.circle`
|
|
2292
2291
|
stroke-dasharray: 1, 200;
|
|
2293
2292
|
stroke-dashoffset: 0;
|
|
2294
2293
|
animation: ${pn} 1.5s ease-in-out infinite;
|
|
@@ -2321,12 +2320,12 @@ const Ut = 300, T1 = ({
|
|
|
2321
2320
|
changeZoom: n,
|
|
2322
2321
|
...o
|
|
2323
2322
|
}) => {
|
|
2324
|
-
var
|
|
2325
|
-
const r = L(null), [s, a] = w(!1), [d, c] = w(!1), { width: l, height: u, ...
|
|
2323
|
+
var p;
|
|
2324
|
+
const r = L(null), [s, a] = w(!1), [d, c] = w(!1), { width: l, height: u, ...f } = o.style || {}, h = M(() => {
|
|
2326
2325
|
const g = r.current;
|
|
2327
2326
|
if (g) {
|
|
2328
|
-
const
|
|
2329
|
-
return S >= 1 &&
|
|
2327
|
+
const y = window.innerWidth / g.naturalWidth, S = window.innerHeight / g.naturalHeight, R = Math.min(y, S);
|
|
2328
|
+
return S >= 1 && y >= 1 ? 1 : R;
|
|
2330
2329
|
}
|
|
2331
2330
|
return 1;
|
|
2332
2331
|
}, [s, t.src]), m = re(() => {
|
|
@@ -2334,8 +2333,8 @@ const Ut = 300, T1 = ({
|
|
|
2334
2333
|
if (g && s) {
|
|
2335
2334
|
if (!d) {
|
|
2336
2335
|
c(!0);
|
|
2337
|
-
const
|
|
2338
|
-
n(
|
|
2336
|
+
const y = h();
|
|
2337
|
+
n(y);
|
|
2339
2338
|
}
|
|
2340
2339
|
return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
|
|
2341
2340
|
}
|
|
@@ -2355,19 +2354,19 @@ const Ut = 300, T1 = ({
|
|
|
2355
2354
|
imageSize: m,
|
|
2356
2355
|
draggable: "false",
|
|
2357
2356
|
...o,
|
|
2358
|
-
alt: ((
|
|
2359
|
-
style:
|
|
2357
|
+
alt: ((p = o.alt) == null ? void 0 : p.toString()) || "",
|
|
2358
|
+
style: f,
|
|
2360
2359
|
src: t.src,
|
|
2361
2360
|
loaded: s
|
|
2362
2361
|
}
|
|
2363
2362
|
),
|
|
2364
2363
|
/* @__PURE__ */ i(Ln, {})
|
|
2365
2364
|
] });
|
|
2366
|
-
}, kn =
|
|
2365
|
+
}, kn = C(xn)`
|
|
2367
2366
|
svg circle {
|
|
2368
2367
|
stroke: #ffffff;
|
|
2369
2368
|
}
|
|
2370
|
-
`, $n =
|
|
2369
|
+
`, $n = C.img`
|
|
2371
2370
|
transform: none;
|
|
2372
2371
|
|
|
2373
2372
|
${(e) => e.imageSize && k`
|
|
@@ -2378,7 +2377,7 @@ const Ut = 300, T1 = ({
|
|
|
2378
2377
|
vertical-align: middle;
|
|
2379
2378
|
position: relative;
|
|
2380
2379
|
${(e) => !e.loaded && "display:none;"}
|
|
2381
|
-
`, Ln =
|
|
2380
|
+
`, Ln = C.div`
|
|
2382
2381
|
height: 100%;
|
|
2383
2382
|
display: inline-block;
|
|
2384
2383
|
vertical-align: middle;
|
|
@@ -2391,16 +2390,16 @@ const Ut = 300, T1 = ({
|
|
|
2391
2390
|
return [t, o];
|
|
2392
2391
|
}, Sn = ({ attrs: e, htmlBody: t }) => {
|
|
2393
2392
|
var Se;
|
|
2394
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, a] = w(1), [d, c] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, u] = w(!1), [
|
|
2393
|
+
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, a] = w(1), [d, c] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, u] = w(!1), [f, h] = Mn(), [m, p] = w(null), [g, y] = w(null), S = L(null), R = L(null), V = L(null), z = L(null), Z = L(null), [_e, qe] = w(null);
|
|
2395
2394
|
v(() => {
|
|
2396
|
-
n &&
|
|
2395
|
+
n && p(null);
|
|
2397
2396
|
}, [n]), v(() => {
|
|
2398
2397
|
a(1);
|
|
2399
2398
|
}, [m]), v(() => {
|
|
2400
2399
|
var I, ee;
|
|
2401
2400
|
if (m === null || R.current === null)
|
|
2402
2401
|
return;
|
|
2403
|
-
const x = R.current.firstElementChild, E = (I =
|
|
2402
|
+
const x = R.current.firstElementChild, E = (I = V.current) == null ? void 0 : I.querySelector(".nav-left"), B = (ee = V.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2404
2403
|
if (g === "Right")
|
|
2405
2404
|
J && B ? B.focus() : G && E && E.focus();
|
|
2406
2405
|
else if (g === "Left")
|
|
@@ -2410,7 +2409,7 @@ const Ut = 300, T1 = ({
|
|
|
2410
2409
|
return;
|
|
2411
2410
|
x.focus();
|
|
2412
2411
|
}
|
|
2413
|
-
}, [m, R,
|
|
2412
|
+
}, [m, R, V, g]), v(() => {
|
|
2414
2413
|
if (o) {
|
|
2415
2414
|
if (G)
|
|
2416
2415
|
return Le();
|
|
@@ -2442,10 +2441,10 @@ const Ut = 300, T1 = ({
|
|
|
2442
2441
|
const { src: x } = e;
|
|
2443
2442
|
if (x) {
|
|
2444
2443
|
const E = A.findIndex((B, I) => B.src === x);
|
|
2445
|
-
|
|
2444
|
+
p(E);
|
|
2446
2445
|
}
|
|
2447
2446
|
}, [A, e]), Qe = M((x) => {
|
|
2448
|
-
|
|
2447
|
+
p(null);
|
|
2449
2448
|
}, []), $e = M(
|
|
2450
2449
|
(x) => {
|
|
2451
2450
|
a(x ? s + s * 0.25 : s - s * 0.25);
|
|
@@ -2488,20 +2487,20 @@ const Ut = 300, T1 = ({
|
|
|
2488
2487
|
}
|
|
2489
2488
|
return !1;
|
|
2490
2489
|
}, [z, s]), Le = () => {
|
|
2491
|
-
m !== null && (
|
|
2490
|
+
m !== null && (y("Left"), p(m - 1));
|
|
2492
2491
|
}, Me = () => {
|
|
2493
|
-
m !== null && (
|
|
2492
|
+
m !== null && (y("Right"), p(m + 1));
|
|
2494
2493
|
}, G = m !== null && m > 0 && A.length > 1, J = m !== null && A.length - 1 > m;
|
|
2495
2494
|
return /* @__PURE__ */ b(_, { children: [
|
|
2496
2495
|
/* @__PURE__ */ i(Ye, { visible: m !== null, onClick: Qe, children: /* @__PURE__ */ b(
|
|
2497
|
-
|
|
2496
|
+
Vn,
|
|
2498
2497
|
{
|
|
2499
|
-
onMouseDown: () =>
|
|
2500
|
-
onMouseMove: () =>
|
|
2501
|
-
onTouchStart: () =>
|
|
2502
|
-
onKeyDown: () =>
|
|
2498
|
+
onMouseDown: () => h(),
|
|
2499
|
+
onMouseMove: () => h(),
|
|
2500
|
+
onTouchStart: () => h(),
|
|
2501
|
+
onKeyDown: () => h(),
|
|
2503
2502
|
children: [
|
|
2504
|
-
/* @__PURE__ */ i(
|
|
2503
|
+
/* @__PURE__ */ i(Nn, { show: f.toString(), children: /* @__PURE__ */ i(
|
|
2505
2504
|
zn,
|
|
2506
2505
|
{
|
|
2507
2506
|
ref: R,
|
|
@@ -2514,7 +2513,7 @@ const Ut = 300, T1 = ({
|
|
|
2514
2513
|
},
|
|
2515
2514
|
{
|
|
2516
2515
|
id: "lightbox-close",
|
|
2517
|
-
onClick: () =>
|
|
2516
|
+
onClick: () => p(null),
|
|
2518
2517
|
icon: "lightbox-close",
|
|
2519
2518
|
ariaLabel: "Close"
|
|
2520
2519
|
}
|
|
@@ -2550,8 +2549,8 @@ const Ut = 300, T1 = ({
|
|
|
2550
2549
|
/* @__PURE__ */ i(
|
|
2551
2550
|
Bn,
|
|
2552
2551
|
{
|
|
2553
|
-
ref:
|
|
2554
|
-
show:
|
|
2552
|
+
ref: V,
|
|
2553
|
+
show: f.toString(),
|
|
2555
2554
|
buttons: [
|
|
2556
2555
|
{
|
|
2557
2556
|
id: "previous",
|
|
@@ -2574,7 +2573,7 @@ const Ut = 300, T1 = ({
|
|
|
2574
2573
|
]
|
|
2575
2574
|
}
|
|
2576
2575
|
),
|
|
2577
|
-
/* @__PURE__ */ b(Wn, { show:
|
|
2576
|
+
/* @__PURE__ */ b(Wn, { show: f.toString(), children: [
|
|
2578
2577
|
/* @__PURE__ */ i(
|
|
2579
2578
|
Dn,
|
|
2580
2579
|
{
|
|
@@ -2639,7 +2638,7 @@ const Ut = 300, T1 = ({
|
|
|
2639
2638
|
onClick: c,
|
|
2640
2639
|
icon: l,
|
|
2641
2640
|
className: u
|
|
2642
|
-
},
|
|
2641
|
+
}, f) => /* @__PURE__ */ i(
|
|
2643
2642
|
Hn,
|
|
2644
2643
|
{
|
|
2645
2644
|
circle: s.toString(),
|
|
@@ -2651,32 +2650,32 @@ const Ut = 300, T1 = ({
|
|
|
2651
2650
|
"aria-label": d,
|
|
2652
2651
|
children: /* @__PURE__ */ i(Q, { size: 24, symbol: { type: "Svg", content: l } })
|
|
2653
2652
|
},
|
|
2654
|
-
r +
|
|
2653
|
+
r + f.toString()
|
|
2655
2654
|
)
|
|
2656
2655
|
)
|
|
2657
2656
|
}
|
|
2658
2657
|
)
|
|
2659
|
-
), Xe =
|
|
2658
|
+
), Xe = C.div`
|
|
2660
2659
|
transition: opacity 0.3s ease 0s;
|
|
2661
2660
|
z-index: 5;
|
|
2662
2661
|
${(e) => e.show === "true" ? "opacity: 1;" : k`
|
|
2663
2662
|
opacity: 0;
|
|
2664
2663
|
pointer-events: none;
|
|
2665
2664
|
`}
|
|
2666
|
-
`, En =
|
|
2665
|
+
`, En = C(xe)`
|
|
2667
2666
|
display: inline-block !important;
|
|
2668
2667
|
|
|
2669
2668
|
${(e) => (e.alignment === "right" || e.alignment === "left") && k`
|
|
2670
2669
|
float: ${e.alignment};
|
|
2671
2670
|
`}
|
|
2672
|
-
`, Rn =
|
|
2671
|
+
`, Rn = C(Xe)`
|
|
2673
2672
|
position: fixed;
|
|
2674
2673
|
display: flex;
|
|
2675
2674
|
gap: ${(e) => {
|
|
2676
2675
|
var t;
|
|
2677
2676
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2678
2677
|
}};
|
|
2679
|
-
`, me = "39px", Hn =
|
|
2678
|
+
`, me = "39px", Hn = C(se)`
|
|
2680
2679
|
width: ${me};
|
|
2681
2680
|
height: ${me};
|
|
2682
2681
|
display: flex;
|
|
@@ -2741,7 +2740,7 @@ const Ut = 300, T1 = ({
|
|
|
2741
2740
|
opacity: 0;
|
|
2742
2741
|
pointer-events: none;
|
|
2743
2742
|
`}
|
|
2744
|
-
`, zn =
|
|
2743
|
+
`, zn = C(we)`
|
|
2745
2744
|
top: ${(e) => {
|
|
2746
2745
|
var t;
|
|
2747
2746
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2750,7 +2749,7 @@ const Ut = 300, T1 = ({
|
|
|
2750
2749
|
var t;
|
|
2751
2750
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2752
2751
|
}};
|
|
2753
|
-
`, Dn =
|
|
2752
|
+
`, Dn = C(we)`
|
|
2754
2753
|
bottom: ${(e) => {
|
|
2755
2754
|
var t;
|
|
2756
2755
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2758,7 +2757,7 @@ const Ut = 300, T1 = ({
|
|
|
2758
2757
|
width: 100%;
|
|
2759
2758
|
align-items: center;
|
|
2760
2759
|
justify-content: center;
|
|
2761
|
-
`, Bn =
|
|
2760
|
+
`, Bn = C(we)`
|
|
2762
2761
|
display: block;
|
|
2763
2762
|
button {
|
|
2764
2763
|
position: fixed;
|
|
@@ -2776,7 +2775,7 @@ const Ut = 300, T1 = ({
|
|
|
2776
2775
|
}};
|
|
2777
2776
|
}
|
|
2778
2777
|
}
|
|
2779
|
-
`, Tn =
|
|
2778
|
+
`, Tn = C(X)`
|
|
2780
2779
|
position: fixed;
|
|
2781
2780
|
bottom: ${(e) => {
|
|
2782
2781
|
var t;
|
|
@@ -2795,29 +2794,29 @@ const Ut = 300, T1 = ({
|
|
|
2795
2794
|
var t;
|
|
2796
2795
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2797
2796
|
}};
|
|
2798
|
-
`, Ue =
|
|
2797
|
+
`, Ue = C(Xe)`
|
|
2799
2798
|
position: absolute;
|
|
2800
2799
|
width: 100vw;
|
|
2801
2800
|
height: 88px;
|
|
2802
2801
|
left: 0px;
|
|
2803
2802
|
z-index: 5;
|
|
2804
|
-
`,
|
|
2803
|
+
`, Vn = C.div`
|
|
2805
2804
|
width: 100%;
|
|
2806
|
-
`,
|
|
2805
|
+
`, Nn = C(Ue)`
|
|
2807
2806
|
top: 0px;
|
|
2808
2807
|
background-image: linear-gradient(
|
|
2809
2808
|
to bottom,
|
|
2810
2809
|
rgb(34, 34, 34, 0.8),
|
|
2811
2810
|
rgba(34, 34, 34, 0)
|
|
2812
2811
|
);
|
|
2813
|
-
`, Wn =
|
|
2812
|
+
`, Wn = C(Ue)`
|
|
2814
2813
|
bottom: 0px;
|
|
2815
2814
|
background-image: linear-gradient(
|
|
2816
2815
|
to top,
|
|
2817
2816
|
rgb(34, 34, 34, 0.8),
|
|
2818
2817
|
rgba(34, 34, 34, 0)
|
|
2819
2818
|
);
|
|
2820
|
-
`, Zn =
|
|
2819
|
+
`, Zn = C.div`
|
|
2821
2820
|
width: 100%;
|
|
2822
2821
|
height: 100vh;
|
|
2823
2822
|
overflow: auto;
|
|
@@ -2826,7 +2825,7 @@ const Ut = 300, T1 = ({
|
|
|
2826
2825
|
white-space: nowrap;
|
|
2827
2826
|
justify-content: center;
|
|
2828
2827
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2829
|
-
`, In =
|
|
2828
|
+
`, In = C.img`
|
|
2830
2829
|
cursor: pointer;
|
|
2831
2830
|
`, On = H(
|
|
2832
2831
|
({
|
|
@@ -2838,17 +2837,17 @@ const Ut = 300, T1 = ({
|
|
|
2838
2837
|
close: r = !1,
|
|
2839
2838
|
...s
|
|
2840
2839
|
}, a) => {
|
|
2841
|
-
const [d, c] = Fe(), [l, u] = Ae(!0),
|
|
2840
|
+
const [d, c] = Fe(), [l, u] = Ae(!0), f = L(), h = L(U()), m = j("Escape");
|
|
2842
2841
|
v(() => {
|
|
2843
2842
|
(m || r) && c(!1);
|
|
2844
2843
|
}, [m, r]), v(() => {
|
|
2845
|
-
d &&
|
|
2846
|
-
}, [d,
|
|
2844
|
+
d && f.current && f.current.focus();
|
|
2845
|
+
}, [d, f.current]), ae("router:changed", () => {
|
|
2847
2846
|
c(!1);
|
|
2848
2847
|
});
|
|
2849
|
-
const
|
|
2850
|
-
(
|
|
2851
|
-
c(!1), o(
|
|
2848
|
+
const p = M(
|
|
2849
|
+
(y) => {
|
|
2850
|
+
c(!1), o(y);
|
|
2852
2851
|
},
|
|
2853
2852
|
[o, c]
|
|
2854
2853
|
);
|
|
@@ -2857,17 +2856,17 @@ const Ut = 300, T1 = ({
|
|
|
2857
2856
|
c(!1);
|
|
2858
2857
|
}
|
|
2859
2858
|
}));
|
|
2860
|
-
const g = M(() => ye(
|
|
2859
|
+
const g = M(() => ye(h.current, () => {
|
|
2861
2860
|
c(!1);
|
|
2862
|
-
}), [
|
|
2861
|
+
}), [h.current]);
|
|
2863
2862
|
return /* @__PURE__ */ b(_, { children: [
|
|
2864
|
-
/* @__PURE__ */ i(Ye, { visible: d, onClick:
|
|
2863
|
+
/* @__PURE__ */ i(Ye, { visible: d, onClick: p, children: /* @__PURE__ */ b(
|
|
2865
2864
|
An,
|
|
2866
2865
|
{
|
|
2867
2866
|
className: $(
|
|
2868
2867
|
e,
|
|
2869
2868
|
"humany-modal",
|
|
2870
|
-
`humany-modal-${
|
|
2869
|
+
`humany-modal-${h.current}`
|
|
2871
2870
|
),
|
|
2872
2871
|
css: l,
|
|
2873
2872
|
tabIndex: -1,
|
|
@@ -2879,7 +2878,7 @@ const Ut = 300, T1 = ({
|
|
|
2879
2878
|
{
|
|
2880
2879
|
onClick: () => c(!1),
|
|
2881
2880
|
tabIndex: 0,
|
|
2882
|
-
ref:
|
|
2881
|
+
ref: f,
|
|
2883
2882
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
2884
2883
|
}
|
|
2885
2884
|
),
|
|
@@ -2888,13 +2887,13 @@ const Ut = 300, T1 = ({
|
|
|
2888
2887
|
}
|
|
2889
2888
|
) }),
|
|
2890
2889
|
oe.cloneElement(n, {
|
|
2891
|
-
onClick: (
|
|
2890
|
+
onClick: (y) => {
|
|
2892
2891
|
c(), g();
|
|
2893
2892
|
}
|
|
2894
2893
|
})
|
|
2895
2894
|
] });
|
|
2896
2895
|
}
|
|
2897
|
-
), An =
|
|
2896
|
+
), An = C.div`
|
|
2898
2897
|
font-family: ${(e) => {
|
|
2899
2898
|
var t;
|
|
2900
2899
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2926,11 +2925,11 @@ const Ut = 300, T1 = ({
|
|
|
2926
2925
|
confirmLabel: d = ""
|
|
2927
2926
|
}) => {
|
|
2928
2927
|
const c = L(), l = M(() => {
|
|
2929
|
-
var
|
|
2930
|
-
r(), (
|
|
2928
|
+
var f;
|
|
2929
|
+
r(), (f = c == null ? void 0 : c.current) == null || f.close();
|
|
2931
2930
|
}, [r]), u = M(() => {
|
|
2932
|
-
var
|
|
2933
|
-
s(), (
|
|
2931
|
+
var f;
|
|
2932
|
+
s(), (f = c == null ? void 0 : c.current) == null || f.close();
|
|
2934
2933
|
}, [s]);
|
|
2935
2934
|
return /* @__PURE__ */ b(
|
|
2936
2935
|
Fn,
|
|
@@ -2947,7 +2946,7 @@ const Ut = 300, T1 = ({
|
|
|
2947
2946
|
]
|
|
2948
2947
|
}
|
|
2949
2948
|
);
|
|
2950
|
-
}, Fn =
|
|
2949
|
+
}, Fn = C(On)`
|
|
2951
2950
|
display: block;
|
|
2952
2951
|
|
|
2953
2952
|
span {
|
|
@@ -2965,7 +2964,7 @@ const Ut = 300, T1 = ({
|
|
|
2965
2964
|
}};
|
|
2966
2965
|
}
|
|
2967
2966
|
}
|
|
2968
|
-
`, Pn =
|
|
2967
|
+
`, Pn = C(se)`
|
|
2969
2968
|
display: inline-block;
|
|
2970
2969
|
min-width: 50px;
|
|
2971
2970
|
${(e) => {
|
|
@@ -2995,7 +2994,7 @@ const Ut = 300, T1 = ({
|
|
|
2995
2994
|
&:focus-visible {
|
|
2996
2995
|
${O}
|
|
2997
2996
|
}
|
|
2998
|
-
`, jn =
|
|
2997
|
+
`, jn = C(se)`
|
|
2999
2998
|
display: inline-block;
|
|
3000
2999
|
min-width: 50px;
|
|
3001
3000
|
${(e) => {
|
|
@@ -3031,10 +3030,10 @@ const Ut = 300, T1 = ({
|
|
|
3031
3030
|
/* @__PURE__ */ i("span", { children: n }),
|
|
3032
3031
|
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
|
|
3033
3032
|
] })
|
|
3034
|
-
] }), Kn =
|
|
3033
|
+
] }), Kn = C.div`
|
|
3035
3034
|
display: flex;
|
|
3036
3035
|
flex-wrap: wrap;
|
|
3037
|
-
`, Yn =
|
|
3036
|
+
`, Yn = C.div`
|
|
3038
3037
|
${(e) => ie(e)(
|
|
3039
3038
|
"h2",
|
|
3040
3039
|
k`
|
|
@@ -3044,7 +3043,7 @@ const Ut = 300, T1 = ({
|
|
|
3044
3043
|
font-size: 7em;
|
|
3045
3044
|
`
|
|
3046
3045
|
)}
|
|
3047
|
-
`, Xn =
|
|
3046
|
+
`, Xn = C.div`
|
|
3048
3047
|
margin-left: ${(e) => {
|
|
3049
3048
|
var t;
|
|
3050
3049
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3071,7 +3070,7 @@ const Ut = 300, T1 = ({
|
|
|
3071
3070
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3072
3071
|
}};
|
|
3073
3072
|
}
|
|
3074
|
-
`, Un =
|
|
3073
|
+
`, Un = C.div`
|
|
3075
3074
|
margin-top: ${(e) => {
|
|
3076
3075
|
var t;
|
|
3077
3076
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3158,31 +3157,31 @@ const P1 = ({
|
|
|
3158
3157
|
sticky: o = !1,
|
|
3159
3158
|
...r
|
|
3160
3159
|
}) => {
|
|
3161
|
-
const [s, a] = w(!1), d = L(U()), c = L(), [{ x: l, y: u },
|
|
3162
|
-
const { target: g } =
|
|
3160
|
+
const [s, a] = w(!1), d = L(U()), c = L(), [{ x: l, y: u }, f] = je(s, d.current, c.current), h = (p) => {
|
|
3161
|
+
const { target: g } = p;
|
|
3163
3162
|
!c.current || !g || c.current !== g && !c.current.contains(g) && a(!1);
|
|
3164
3163
|
};
|
|
3165
3164
|
v(() => {
|
|
3166
3165
|
if (o)
|
|
3167
|
-
return window.addEventListener("click",
|
|
3168
|
-
window.removeEventListener("click",
|
|
3166
|
+
return window.addEventListener("click", h), () => {
|
|
3167
|
+
window.removeEventListener("click", h);
|
|
3169
3168
|
};
|
|
3170
3169
|
}, [s, o]);
|
|
3171
3170
|
const m = M(
|
|
3172
|
-
(
|
|
3173
|
-
|
|
3171
|
+
(p, g) => {
|
|
3172
|
+
f(p, c.current), a(g);
|
|
3174
3173
|
},
|
|
3175
|
-
[
|
|
3174
|
+
[f, a]
|
|
3176
3175
|
);
|
|
3177
3176
|
return /* @__PURE__ */ b(
|
|
3178
3177
|
Gn,
|
|
3179
3178
|
{
|
|
3180
3179
|
ref: c,
|
|
3181
3180
|
className: "humany-tooltip-trigger",
|
|
3182
|
-
onMouseEnter: o ? void 0 : (
|
|
3183
|
-
onMouseLeave: o ? void 0 : (
|
|
3184
|
-
onTouchEnd: o ? (
|
|
3185
|
-
onClick: o ? (
|
|
3181
|
+
onMouseEnter: o ? void 0 : (p) => m(p, !0),
|
|
3182
|
+
onMouseLeave: o ? void 0 : (p) => m(p, !1),
|
|
3183
|
+
onTouchEnd: o ? (p) => m(p, !s) : void 0,
|
|
3184
|
+
onClick: o ? (p) => m(p, !s) : void 0,
|
|
3186
3185
|
children: [
|
|
3187
3186
|
t,
|
|
3188
3187
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
@@ -3198,10 +3197,10 @@ const P1 = ({
|
|
|
3198
3197
|
]
|
|
3199
3198
|
}
|
|
3200
3199
|
);
|
|
3201
|
-
}, Gn =
|
|
3200
|
+
}, Gn = C.div`
|
|
3202
3201
|
display: flex;
|
|
3203
3202
|
align-items: center;
|
|
3204
|
-
`, Jn =
|
|
3203
|
+
`, Jn = C.div`
|
|
3205
3204
|
color: #ffffff;
|
|
3206
3205
|
background: #161616;
|
|
3207
3206
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3262,17 +3261,17 @@ const P1 = ({
|
|
|
3262
3261
|
}
|
|
3263
3262
|
};
|
|
3264
3263
|
if (typeof a == "object") {
|
|
3265
|
-
const { enter:
|
|
3264
|
+
const { enter: f, exit: h } = a;
|
|
3266
3265
|
return {
|
|
3267
3266
|
enter: {
|
|
3268
3267
|
transitionKeys: (l = a.enter) == null ? void 0 : l.type,
|
|
3269
3268
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3270
|
-
easing:
|
|
3269
|
+
easing: f.easing ? f.easing : "ease-in"
|
|
3271
3270
|
},
|
|
3272
3271
|
exit: {
|
|
3273
3272
|
transitionKeys: (u = a.enter) == null ? void 0 : u.type,
|
|
3274
3273
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3275
|
-
easing:
|
|
3274
|
+
easing: h.easing ? h.easing : "ease-out"
|
|
3276
3275
|
}
|
|
3277
3276
|
};
|
|
3278
3277
|
}
|
|
@@ -3290,7 +3289,7 @@ const P1 = ({
|
|
|
3290
3289
|
mountOnEnter: n,
|
|
3291
3290
|
unmountOnExit: o,
|
|
3292
3291
|
onEnter: (l) => l.clientHeight,
|
|
3293
|
-
children: (l) => s && s(l, c &&
|
|
3292
|
+
children: (l) => s && s(l, c && fe.compose(l, c))
|
|
3294
3293
|
}
|
|
3295
3294
|
);
|
|
3296
3295
|
}, e1 = H(
|
|
@@ -3304,47 +3303,47 @@ const P1 = ({
|
|
|
3304
3303
|
...s
|
|
3305
3304
|
}, a) => {
|
|
3306
3305
|
const d = T(), c = () => {
|
|
3307
|
-
const { implementation:
|
|
3308
|
-
return
|
|
3306
|
+
const { implementation: f } = d.get("$widget");
|
|
3307
|
+
return f.widgets.get(o);
|
|
3309
3308
|
};
|
|
3310
3309
|
v(() => {
|
|
3311
|
-
const
|
|
3312
|
-
return
|
|
3313
|
-
|
|
3310
|
+
const f = c();
|
|
3311
|
+
return f == null || f.activate(r).then(() => f.invoke("attach")), () => {
|
|
3312
|
+
f == null || f.deactivate();
|
|
3314
3313
|
};
|
|
3315
3314
|
}, [o]);
|
|
3316
|
-
const l = (
|
|
3317
|
-
const
|
|
3318
|
-
if (
|
|
3319
|
-
const
|
|
3320
|
-
|
|
3321
|
-
(g) => g === ne.open ?
|
|
3315
|
+
const l = (f) => {
|
|
3316
|
+
const h = c(), m = f.currentTarget;
|
|
3317
|
+
if (h) {
|
|
3318
|
+
const p = () => {
|
|
3319
|
+
h.invoke("renderState").then(
|
|
3320
|
+
(g) => g === ne.open ? h.invoke("close") : h.invoke("open")
|
|
3322
3321
|
).then(() => {
|
|
3323
|
-
|
|
3322
|
+
h.events.subscribeOnce(
|
|
3324
3323
|
"widget:area-rendered",
|
|
3325
|
-
(g,
|
|
3324
|
+
(g, y) => {
|
|
3326
3325
|
d.get(
|
|
3327
3326
|
"widgetDOMElement"
|
|
3328
|
-
) &&
|
|
3329
|
-
name:
|
|
3327
|
+
) && h.events.dispatch("widget:modal-opened", {
|
|
3328
|
+
name: h.name,
|
|
3330
3329
|
ref: m
|
|
3331
3330
|
});
|
|
3332
3331
|
}
|
|
3333
3332
|
);
|
|
3334
3333
|
});
|
|
3335
3334
|
};
|
|
3336
|
-
|
|
3335
|
+
h.state === ft.Deactivated ? h.activate(r).then(() => h.invoke("attach")).then(p) : p();
|
|
3337
3336
|
}
|
|
3338
|
-
}, u = (
|
|
3339
|
-
|
|
3337
|
+
}, u = (f) => {
|
|
3338
|
+
f.key === "Enter" && (f.preventDefault(), l(f));
|
|
3340
3339
|
};
|
|
3341
3340
|
return /* @__PURE__ */ i(
|
|
3342
3341
|
xe,
|
|
3343
3342
|
{
|
|
3344
3343
|
className: $(e, "humany-widget-link"),
|
|
3345
3344
|
onKeyDown: u,
|
|
3346
|
-
onClick: (
|
|
3347
|
-
n(
|
|
3345
|
+
onClick: (f) => {
|
|
3346
|
+
n(f), l(f);
|
|
3348
3347
|
},
|
|
3349
3348
|
...s,
|
|
3350
3349
|
ref: a,
|
|
@@ -3372,7 +3371,7 @@ const P1 = ({
|
|
|
3372
3371
|
}
|
|
3373
3372
|
) }) : null;
|
|
3374
3373
|
}
|
|
3375
|
-
), t1 =
|
|
3374
|
+
), t1 = C.div`
|
|
3376
3375
|
background-color: #ffffff;
|
|
3377
3376
|
position: absolute;
|
|
3378
3377
|
top: 0;
|
|
@@ -3393,16 +3392,16 @@ export {
|
|
|
3393
3392
|
p1 as Checkbox,
|
|
3394
3393
|
Tt as ColumnContext,
|
|
3395
3394
|
Ze as ComponentNodeContext,
|
|
3396
|
-
|
|
3395
|
+
Vt as ComponentPropertyContext,
|
|
3397
3396
|
I1 as Confirm,
|
|
3398
3397
|
Bt as ContainerContext,
|
|
3399
3398
|
Wt as ConversationContext,
|
|
3400
3399
|
qn as DateFormats,
|
|
3401
3400
|
T1 as Drawer,
|
|
3402
3401
|
Xt as DrawerAnimationType,
|
|
3403
|
-
|
|
3402
|
+
V1 as Dropdown,
|
|
3404
3403
|
nn as Empty,
|
|
3405
|
-
|
|
3404
|
+
N1 as Grid,
|
|
3406
3405
|
Ke as Html,
|
|
3407
3406
|
sn as Icon,
|
|
3408
3407
|
W1 as Input,
|
|
@@ -3417,7 +3416,7 @@ export {
|
|
|
3417
3416
|
cn as Paragraph,
|
|
3418
3417
|
q as Portal,
|
|
3419
3418
|
un as RouteLink,
|
|
3420
|
-
|
|
3419
|
+
Nt as RoutingContext,
|
|
3421
3420
|
Be as StyledText,
|
|
3422
3421
|
Q as SymbolBadge,
|
|
3423
3422
|
A1 as TabStop,
|
|
@@ -3450,7 +3449,7 @@ export {
|
|
|
3450
3449
|
Pt as list,
|
|
3451
3450
|
z1 as paddedBorderTabStyle,
|
|
3452
3451
|
Et as processHtmlString,
|
|
3453
|
-
|
|
3452
|
+
fe as transitionComposer,
|
|
3454
3453
|
C1 as useAction,
|
|
3455
3454
|
y1 as useChildren,
|
|
3456
3455
|
b1 as useColumns,
|
|
@@ -3462,7 +3461,7 @@ export {
|
|
|
3462
3461
|
Zt as useContext,
|
|
3463
3462
|
x1 as useConversation,
|
|
3464
3463
|
w1 as useDispatch,
|
|
3465
|
-
|
|
3464
|
+
N as useEventListener,
|
|
3466
3465
|
It as useEvents,
|
|
3467
3466
|
W as useIsMounted,
|
|
3468
3467
|
k1 as useIsTabbing,
|