@telia-ace/widget-ui 1.3.39 → 1.3.41-rc.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/index.js +37 -37
- package/index.mjs +152 -150
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var it = Object.defineProperty;
|
|
2
2
|
var st = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var te = (e, t, n) => (st(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { css as
|
|
4
|
+
import { css as $, keyframes as Be } from "@emotion/react";
|
|
5
5
|
import { kebabCase as at, appendClassNames as M, uuid as _, removeNullAndUndefinedValues as He, Logger as de } from "@telia-ace/widget-utilities";
|
|
6
6
|
import { jsx as i, jsxs as b, Fragment as U } from "react/jsx-runtime";
|
|
7
7
|
import C from "@emotion/styled";
|
|
8
|
-
import oe, { forwardRef as D, createContext as K, useContext as P, useState as
|
|
8
|
+
import oe, { forwardRef as D, createContext as K, useContext as P, useState as k, useEffect as v, useRef as L, useCallback as H, useImperativeHandle as ge, createElement as ct, useMemo as re, Component as lt, lazy as dt } from "react";
|
|
9
9
|
import { CSSTransition as Ve, Transition as ut } from "react-transition-group";
|
|
10
10
|
import { Container as ht, WidgetState as ft } from "@webprovisions/platform";
|
|
11
11
|
import { ComponentPlatform as mt, asDescriptor as gt, createEventSubscriber as pt, ComponentQuery as Ct, WidgetRenderState as ne, extendComponent as yt } from "@telia-ace/widget-core";
|
|
@@ -48,16 +48,16 @@ const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exitin
|
|
|
48
48
|
compose: (e = "exited", t) => {
|
|
49
49
|
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = kt.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
50
50
|
if (xt(e))
|
|
51
|
-
return r && r.length > 0 ?
|
|
51
|
+
return r && r.length > 0 ? $`
|
|
52
52
|
${r && r.length > 0 && r.map((h) => F[h] ? F[h].in : "")}
|
|
53
53
|
transition: ${s} ${n.duration}ms ${n.easing};
|
|
54
54
|
` : "";
|
|
55
|
-
const c = r && r.length > 0 &&
|
|
55
|
+
const c = r && r.length > 0 && $`
|
|
56
56
|
${r.map((h) => F[h] ? F[h].out : "")}
|
|
57
57
|
`;
|
|
58
58
|
if (wt(e)) {
|
|
59
59
|
const h = o.transitionKeys.split(" ");
|
|
60
|
-
return h && h.length > 0 && e === "exiting" ?
|
|
60
|
+
return h && h.length > 0 && e === "exiting" ? $`
|
|
61
61
|
${c};
|
|
62
62
|
${h.map((a) => F[a] ? F[a].out : "")}
|
|
63
63
|
transition: ${s} ${o.duration}ms ${o.easing};
|
|
@@ -158,7 +158,7 @@ const Ne = () => {
|
|
|
158
158
|
let t = "";
|
|
159
159
|
return Object.keys(We(e)).forEach((n) => {
|
|
160
160
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
161
|
-
}),
|
|
161
|
+
}), $`
|
|
162
162
|
${t}
|
|
163
163
|
`;
|
|
164
164
|
}, Et = (e, t) => {
|
|
@@ -189,7 +189,7 @@ const Ne = () => {
|
|
|
189
189
|
r,
|
|
190
190
|
e.theme.typographyVariantMapping || {}
|
|
191
191
|
);
|
|
192
|
-
return
|
|
192
|
+
return $`
|
|
193
193
|
${c} {
|
|
194
194
|
${n}
|
|
195
195
|
}
|
|
@@ -280,7 +280,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
280
280
|
});
|
|
281
281
|
};
|
|
282
282
|
}, Ce = (e) => {
|
|
283
|
-
const t = P(Ze), n = Y(), [o, r] =
|
|
283
|
+
const t = P(Ze), n = Y(), [o, r] = k();
|
|
284
284
|
return v(() => {
|
|
285
285
|
if ((e || t.id) && n) {
|
|
286
286
|
const s = n.nodes.get(e || t.id);
|
|
@@ -293,7 +293,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
293
293
|
e.current = !1;
|
|
294
294
|
}), []), e;
|
|
295
295
|
}, Y = (e) => {
|
|
296
|
-
const t = B(), [n, o] =
|
|
296
|
+
const t = B(), [n, o] = k(null), r = Z();
|
|
297
297
|
return v(() => {
|
|
298
298
|
mt.getInstance(e || t).then(
|
|
299
299
|
(s) => {
|
|
@@ -302,7 +302,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
302
302
|
);
|
|
303
303
|
}, [r]), n;
|
|
304
304
|
}, ko = () => {
|
|
305
|
-
const e = Ce(), t = Y(), [n, o] =
|
|
305
|
+
const e = Ce(), t = Y(), [n, o] = k([]), r = Z(), s = H(
|
|
306
306
|
(c) => {
|
|
307
307
|
if (t && r.current && c) {
|
|
308
308
|
const h = t.getBranch(c), a = c.getChildren(h).map((l) => gt(l));
|
|
@@ -328,7 +328,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
328
328
|
}
|
|
329
329
|
}, [e, t, s]), n;
|
|
330
330
|
}, $o = () => P(Vt), Lo = (e, t) => {
|
|
331
|
-
const n = pe(), o = B(), [r, s] =
|
|
331
|
+
const n = pe(), o = B(), [r, s] = k(void 0), c = Z(), h = e || n.type || "";
|
|
332
332
|
return v(() => {
|
|
333
333
|
if (h) {
|
|
334
334
|
let a;
|
|
@@ -346,7 +346,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
346
346
|
}
|
|
347
347
|
}, [c, h, t, o]), r;
|
|
348
348
|
}, Ot = (e) => {
|
|
349
|
-
const t = Ce(e), n = Y(), [o, r] =
|
|
349
|
+
const t = Ce(e), n = Y(), [o, r] = k({}), s = Z();
|
|
350
350
|
return v(() => {
|
|
351
351
|
t && s.current && r(t.attributes.context);
|
|
352
352
|
}, [s, t]), v(() => {
|
|
@@ -363,7 +363,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
363
363
|
}
|
|
364
364
|
}, [s, n, t]), o;
|
|
365
365
|
}, Mo = () => P(It), So = () => {
|
|
366
|
-
const e = Y(), t = pe(), [n, o] =
|
|
366
|
+
const e = Y(), t = pe(), [n, o] = k([]), [r, s] = k();
|
|
367
367
|
return v(() => {
|
|
368
368
|
if (e && t) {
|
|
369
369
|
const c = new Ct(e).withId(t.id), h = e.actions(c, t.type || _());
|
|
@@ -396,7 +396,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
396
396
|
const t = B(), { events: n } = (e || t).get("$widget");
|
|
397
397
|
return n;
|
|
398
398
|
}, Eo = () => {
|
|
399
|
-
const [e, t] =
|
|
399
|
+
const [e, t] = k(!1);
|
|
400
400
|
return v(() => {
|
|
401
401
|
const n = () => {
|
|
402
402
|
t(!1);
|
|
@@ -408,13 +408,13 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
408
408
|
};
|
|
409
409
|
}, []), e;
|
|
410
410
|
}, j = (e, t) => {
|
|
411
|
-
const [n, o] =
|
|
411
|
+
const [n, o] = k(!1), r = H(
|
|
412
412
|
(c) => {
|
|
413
413
|
const { key: h } = c;
|
|
414
414
|
h === e && (o(!0), t && t(c));
|
|
415
415
|
},
|
|
416
416
|
[o, t]
|
|
417
|
-
), s =
|
|
417
|
+
), s = H(
|
|
418
418
|
({ key: c }) => {
|
|
419
419
|
c === e && o(!1);
|
|
420
420
|
},
|
|
@@ -422,7 +422,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
422
422
|
);
|
|
423
423
|
return W("keydown", r, window), W("keyup", s, window), n;
|
|
424
424
|
}, Ho = (e) => {
|
|
425
|
-
const t = Ce(e), n = Y(), [o, r] =
|
|
425
|
+
const t = Ce(e), n = Y(), [o, r] = k({}), s = Z();
|
|
426
426
|
return v(() => {
|
|
427
427
|
t && s.current && r(t.attributes.layout);
|
|
428
428
|
}, [t, s]), v(() => {
|
|
@@ -444,7 +444,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
444
444
|
t.current = e;
|
|
445
445
|
}), t.current;
|
|
446
446
|
}, Ro = () => P(Wt), To = (e) => {
|
|
447
|
-
const [t, n] =
|
|
447
|
+
const [t, n] = k(), o = B(), r = Z();
|
|
448
448
|
return v(() => {
|
|
449
449
|
let s;
|
|
450
450
|
const c = (e || o).get("$widget");
|
|
@@ -471,7 +471,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
471
471
|
};
|
|
472
472
|
}, [r]), t;
|
|
473
473
|
}, Oe = () => P(Zt), No = (e) => {
|
|
474
|
-
const t = B(), n = Oe(), [o, r] =
|
|
474
|
+
const t = B(), n = Oe(), [o, r] = k({
|
|
475
475
|
name: "",
|
|
476
476
|
params: {}
|
|
477
477
|
}), s = Z();
|
|
@@ -498,18 +498,18 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
498
498
|
}, Ae = (e) => {
|
|
499
499
|
const t = L(), n = L(0);
|
|
500
500
|
let o;
|
|
501
|
-
const r =
|
|
501
|
+
const r = H(() => {
|
|
502
502
|
var l;
|
|
503
503
|
(l = t.current) == null || l.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
504
504
|
var d;
|
|
505
505
|
(d = t.current) == null || d.classList.remove("humany-scrolling");
|
|
506
506
|
}, 500);
|
|
507
|
-
}, [t]), s =
|
|
507
|
+
}, [t]), s = H(
|
|
508
508
|
(l) => {
|
|
509
509
|
n.current = l.touches[0].clientY;
|
|
510
510
|
},
|
|
511
511
|
[t]
|
|
512
|
-
), c = (l) => h(l) ? l === t.current ? l : null : l.parentElement ? c(l.parentElement) : null, h = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, a =
|
|
512
|
+
), c = (l) => h(l) ? l === t.current ? l : null : l.parentElement ? c(l.parentElement) : null, h = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, a = H(
|
|
513
513
|
(l) => {
|
|
514
514
|
if (!l.cancelable)
|
|
515
515
|
return;
|
|
@@ -566,19 +566,19 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
`, Do = () => {
|
|
569
|
-
const [e, t] =
|
|
569
|
+
const [e, t] = k(null), n = B(), o = Z();
|
|
570
570
|
return v(() => {
|
|
571
571
|
n.get("settings").then((r) => {
|
|
572
572
|
o.current && t(r);
|
|
573
573
|
});
|
|
574
574
|
}, [o]), e;
|
|
575
575
|
}, Fe = (e = !1) => {
|
|
576
|
-
const [t, n] =
|
|
576
|
+
const [t, n] = k(e), o = H((r) => {
|
|
577
577
|
n(typeof r == "boolean" ? r : (s) => !s);
|
|
578
578
|
}, []);
|
|
579
579
|
return [t, o];
|
|
580
580
|
}, zo = (e) => {
|
|
581
|
-
const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] =
|
|
581
|
+
const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = k(null), [c, h] = k(null), a = Z();
|
|
582
582
|
v(() => {
|
|
583
583
|
if (n && a.current) {
|
|
584
584
|
const d = n.nodes.all.find((f) => f.name === "root-area"), u = n.nodes.all.find((f) => f.type === "view");
|
|
@@ -592,7 +592,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
}, [n, t, a]);
|
|
595
|
-
const l =
|
|
595
|
+
const l = H(
|
|
596
596
|
(d) => {
|
|
597
597
|
a.current && (d.target === r || d.target === c) && e();
|
|
598
598
|
},
|
|
@@ -632,7 +632,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
632
632
|
children: t
|
|
633
633
|
}
|
|
634
634
|
)
|
|
635
|
-
), Pe = (e) =>
|
|
635
|
+
), Pe = (e) => $`
|
|
636
636
|
display: flex;
|
|
637
637
|
justify-content: center;
|
|
638
638
|
flex-direction: column;
|
|
@@ -643,7 +643,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
643
643
|
${e["data-loading"] && "min-height: 150px;"}
|
|
644
644
|
`, Pt = (e) => {
|
|
645
645
|
var t, n, o;
|
|
646
|
-
return
|
|
646
|
+
return $`
|
|
647
647
|
cursor: pointer;
|
|
648
648
|
text-align: center;
|
|
649
649
|
border: none;
|
|
@@ -656,7 +656,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
656
656
|
}, Bo = (e) => {
|
|
657
657
|
var c;
|
|
658
658
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
659
|
-
return
|
|
659
|
+
return $`
|
|
660
660
|
${Pt(e)}
|
|
661
661
|
border: 1px solid ${o ? n : t};
|
|
662
662
|
background-color: ${o ? t : n};
|
|
@@ -673,7 +673,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
673
673
|
font-size: ${(c = r.fonts) == null ? void 0 : c.normal};
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
-
${!s &&
|
|
676
|
+
${!s && $`
|
|
677
677
|
&:hover {
|
|
678
678
|
background-color: ${t};
|
|
679
679
|
color: ${n};
|
|
@@ -693,17 +693,17 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
693
693
|
`;
|
|
694
694
|
}, O = (e) => {
|
|
695
695
|
var t, n, o;
|
|
696
|
-
return
|
|
696
|
+
return $`
|
|
697
697
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
698
698
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
699
699
|
border-color: transparent;
|
|
700
700
|
`;
|
|
701
|
-
}, jt = (e) =>
|
|
701
|
+
}, jt = (e) => $`
|
|
702
702
|
${O(e)}
|
|
703
703
|
text-decoration: underline;
|
|
704
704
|
`, Vo = (e) => {
|
|
705
705
|
var t;
|
|
706
|
-
return
|
|
706
|
+
return $`
|
|
707
707
|
${O(e)}
|
|
708
708
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
709
709
|
`;
|
|
@@ -748,7 +748,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
748
748
|
}};
|
|
749
749
|
`, Kt = (e) => {
|
|
750
750
|
var t;
|
|
751
|
-
return
|
|
751
|
+
return $`
|
|
752
752
|
padding: 0;
|
|
753
753
|
margin: 0;
|
|
754
754
|
list-style: none;
|
|
@@ -770,11 +770,11 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
770
770
|
`;
|
|
771
771
|
}, Wo = (e) => {
|
|
772
772
|
var t, n, o, r;
|
|
773
|
-
return
|
|
773
|
+
return $`
|
|
774
774
|
> div {
|
|
775
775
|
${ie(e)(
|
|
776
776
|
"> h1",
|
|
777
|
-
|
|
777
|
+
$`
|
|
778
778
|
margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
779
779
|
font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
|
|
780
780
|
font-weight: normal;
|
|
@@ -788,7 +788,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
788
788
|
}
|
|
789
789
|
${ie(e)(
|
|
790
790
|
"h1",
|
|
791
|
-
|
|
791
|
+
$`
|
|
792
792
|
display: flex;
|
|
793
793
|
align-items: center;
|
|
794
794
|
i {
|
|
@@ -806,7 +806,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
806
806
|
`;
|
|
807
807
|
}, Zo = (e) => {
|
|
808
808
|
var t, n, o, r, s, c;
|
|
809
|
-
return
|
|
809
|
+
return $`
|
|
810
810
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
811
811
|
font-weight: 300;
|
|
812
812
|
line-height: 1.5em;
|
|
@@ -864,7 +864,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
864
864
|
parent: t = document.body,
|
|
865
865
|
children: n
|
|
866
866
|
}) => {
|
|
867
|
-
const [o] =
|
|
867
|
+
const [o] = k(() => {
|
|
868
868
|
const r = document.getElementById(e) || document.createElement("div");
|
|
869
869
|
return r.id = e, r;
|
|
870
870
|
});
|
|
@@ -1514,22 +1514,22 @@ const qt = 300, Io = ({
|
|
|
1514
1514
|
/* SlideInBottom */
|
|
1515
1515
|
}
|
|
1516
1516
|
}) => {
|
|
1517
|
-
const { duration: a = qt } = h, l = L(), d = L(), [u, f] = Ae(!0), [g, m] = Fe(), p = Ie(g),
|
|
1517
|
+
const { duration: a = qt } = h, l = L(), d = L(), [u, f] = Ae(!0), [g, m] = Fe(), p = Ie(g), w = L(_());
|
|
1518
1518
|
v(() => {
|
|
1519
1519
|
o && o(g);
|
|
1520
1520
|
}, [g]);
|
|
1521
|
-
const
|
|
1521
|
+
const y = j("Escape");
|
|
1522
1522
|
v(() => {
|
|
1523
|
-
|
|
1524
|
-
}, [
|
|
1523
|
+
y && m(!1);
|
|
1524
|
+
}, [y]), W(
|
|
1525
1525
|
"click",
|
|
1526
|
-
(
|
|
1527
|
-
const { target: R } =
|
|
1526
|
+
(E) => {
|
|
1527
|
+
const { target: R } = E;
|
|
1528
1528
|
!d.current || !f.current || !R || d.current !== R && f.current !== R && !f.current.contains(R) && !d.current.contains(R) && m(!1);
|
|
1529
1529
|
},
|
|
1530
1530
|
window
|
|
1531
1531
|
);
|
|
1532
|
-
const
|
|
1532
|
+
const S = ye(w.current, () => {
|
|
1533
1533
|
m(!1);
|
|
1534
1534
|
});
|
|
1535
1535
|
ae("router:changed", () => {
|
|
@@ -1555,7 +1555,7 @@ const qt = 300, Io = ({
|
|
|
1555
1555
|
className: M(
|
|
1556
1556
|
e,
|
|
1557
1557
|
"humany-drawer",
|
|
1558
|
-
`humany-drawer-${
|
|
1558
|
+
`humany-drawer-${w.current}`
|
|
1559
1559
|
),
|
|
1560
1560
|
clientHeight: document.body.clientHeight,
|
|
1561
1561
|
css: u,
|
|
@@ -1579,8 +1579,8 @@ const qt = 300, Io = ({
|
|
|
1579
1579
|
}
|
|
1580
1580
|
),
|
|
1581
1581
|
oe.cloneElement(r, {
|
|
1582
|
-
onClick: (
|
|
1583
|
-
m(),
|
|
1582
|
+
onClick: (E) => {
|
|
1583
|
+
m(), S();
|
|
1584
1584
|
},
|
|
1585
1585
|
ref: d,
|
|
1586
1586
|
"aria-label": r.props.title,
|
|
@@ -1627,7 +1627,7 @@ const qt = 300, Io = ({
|
|
|
1627
1627
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1628
1628
|
}};
|
|
1629
1629
|
line-height: 1.2em;
|
|
1630
|
-
`, le = (e) =>
|
|
1630
|
+
`, le = (e) => $`
|
|
1631
1631
|
transition: ${e.duration}ms;
|
|
1632
1632
|
`, Gt = C(ce)`
|
|
1633
1633
|
max-height: 0;
|
|
@@ -1707,7 +1707,7 @@ const qt = 300, Io = ({
|
|
|
1707
1707
|
"slide-in-left": en,
|
|
1708
1708
|
"slide-in-top": tn
|
|
1709
1709
|
}, je = (e, t, n) => {
|
|
1710
|
-
const [o, r] =
|
|
1710
|
+
const [o, r] = k(0), [s, c] = k(0), h = H(
|
|
1711
1711
|
(a, l) => {
|
|
1712
1712
|
if (a.preventDefault(), l) {
|
|
1713
1713
|
const d = l.getBoundingClientRect();
|
|
@@ -1735,28 +1735,28 @@ const qt = 300, Io = ({
|
|
|
1735
1735
|
}, s) => {
|
|
1736
1736
|
const c = L(), h = L(), a = L();
|
|
1737
1737
|
ge(s, () => a.current, [a.current]);
|
|
1738
|
-
const l = L(_()), [d, u] =
|
|
1738
|
+
const l = L(_()), [d, u] = k(!1), f = Ie(d), [{ x: g, y: m }, p] = je(d, l.current, a.current), w = j("Escape");
|
|
1739
1739
|
v(() => {
|
|
1740
|
-
|
|
1741
|
-
}, [
|
|
1740
|
+
w && u(!1);
|
|
1741
|
+
}, [w]), v(() => {
|
|
1742
1742
|
d && c.current ? c.current.focus() : !d && h.current && f && h.current.focus();
|
|
1743
1743
|
}, [d, c.current, h.current]), W(
|
|
1744
1744
|
"click",
|
|
1745
1745
|
(N) => {
|
|
1746
|
-
const { target:
|
|
1747
|
-
!a.current || !
|
|
1746
|
+
const { target: E } = N;
|
|
1747
|
+
!a.current || !E || a.current !== E && !a.current.contains(E) && u(!1);
|
|
1748
1748
|
},
|
|
1749
1749
|
window
|
|
1750
1750
|
), ae("router:changed", () => {
|
|
1751
1751
|
u(!1);
|
|
1752
1752
|
});
|
|
1753
|
-
const
|
|
1753
|
+
const y = ye(l.current, () => {
|
|
1754
1754
|
u(!1);
|
|
1755
|
-
}),
|
|
1755
|
+
}), S = H(
|
|
1756
1756
|
(N) => {
|
|
1757
|
-
N.stopPropagation(), p(N, h.current), u(!d),
|
|
1757
|
+
N.stopPropagation(), p(N, h.current), u(!d), y();
|
|
1758
1758
|
},
|
|
1759
|
-
[
|
|
1759
|
+
[y, p, u]
|
|
1760
1760
|
);
|
|
1761
1761
|
return /* @__PURE__ */ b(U, { children: [
|
|
1762
1762
|
d && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
@@ -1787,7 +1787,7 @@ const qt = 300, Io = ({
|
|
|
1787
1787
|
}
|
|
1788
1788
|
) }),
|
|
1789
1789
|
oe.cloneElement(n, {
|
|
1790
|
-
onClick:
|
|
1790
|
+
onClick: S,
|
|
1791
1791
|
ref: h,
|
|
1792
1792
|
"aria-label": n.props.title,
|
|
1793
1793
|
"aria-expanded": d
|
|
@@ -1833,7 +1833,7 @@ const qt = 300, Io = ({
|
|
|
1833
1833
|
${St}
|
|
1834
1834
|
`, Ke = D(
|
|
1835
1835
|
({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
|
|
1836
|
-
const s = B(), [c, h] =
|
|
1836
|
+
const s = B(), [c, h] = k();
|
|
1837
1837
|
v(() => {
|
|
1838
1838
|
const d = Nt(s, n), u = {
|
|
1839
1839
|
...d,
|
|
@@ -1852,22 +1852,22 @@ const qt = 300, Io = ({
|
|
|
1852
1852
|
return;
|
|
1853
1853
|
new MutationObserver((f) => {
|
|
1854
1854
|
f.forEach((g) => {
|
|
1855
|
-
var
|
|
1855
|
+
var y, S, N;
|
|
1856
1856
|
let m = g.target;
|
|
1857
1857
|
if (m.tagName === "DIV" && m.matches("[data-notification]") && m.getAttribute("data-expandable")) {
|
|
1858
|
-
const
|
|
1859
|
-
if (
|
|
1858
|
+
const E = m.firstChild;
|
|
1859
|
+
if (E && E.nodeType === Node.TEXT_NODE) {
|
|
1860
1860
|
const R = document.createElement("p");
|
|
1861
|
-
R.appendChild(
|
|
1861
|
+
R.appendChild(E), m.appendChild(R);
|
|
1862
1862
|
return;
|
|
1863
1863
|
} else
|
|
1864
|
-
|
|
1865
|
-
} else if (m.tagName !== "P" || !((
|
|
1864
|
+
E && E.nodeType === Node.ELEMENT_NODE && (m = E);
|
|
1865
|
+
} else if (m.tagName !== "P" || !((y = m.closest("[data-notification]")) != null && y.getAttribute("data-expandable")))
|
|
1866
1866
|
return;
|
|
1867
1867
|
if (!(m != null && m.closest(".humany-notification-row")))
|
|
1868
1868
|
return;
|
|
1869
|
-
const p = (
|
|
1870
|
-
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(
|
|
1869
|
+
const p = (S = m.closest(".humany-notification-row")) == null ? void 0 : S.getAttribute("data-node-id"), w = (N = m.closest("[data-notification]")) == null ? void 0 : N.getAttribute("data-notification");
|
|
1870
|
+
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(w), l.events.dispatch("notification:expandable", {
|
|
1871
1871
|
expandable: !0,
|
|
1872
1872
|
notificationRowId: p
|
|
1873
1873
|
})) : l.events.dispatch("notification:expandable", {
|
|
@@ -1918,40 +1918,42 @@ const qt = 300, Io = ({
|
|
|
1918
1918
|
},
|
|
1919
1919
|
disabled: h = !1,
|
|
1920
1920
|
type: a,
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1921
|
+
autoComplete: l,
|
|
1922
|
+
...d
|
|
1923
|
+
}, u) => {
|
|
1924
|
+
const [f, g] = k(t), m = L();
|
|
1925
|
+
ge(u, () => m.current), v(() => {
|
|
1925
1926
|
var y;
|
|
1926
|
-
t && ((y =
|
|
1927
|
-
}, [t,
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1930
|
-
},
|
|
1931
|
-
...z(
|
|
1927
|
+
t && ((y = m == null ? void 0 : m.current) == null || y.focus());
|
|
1928
|
+
}, [t, u, m]);
|
|
1929
|
+
const p = (y, S) => {
|
|
1930
|
+
g(y), n && n(y), s && y && S.target.select();
|
|
1931
|
+
}, w = {
|
|
1932
|
+
...z(d),
|
|
1932
1933
|
disabled: h,
|
|
1933
1934
|
autoFocus: t,
|
|
1934
1935
|
type: a,
|
|
1935
1936
|
onKeyDown: (y) => {
|
|
1936
|
-
y.key === "Enter" &&
|
|
1937
|
+
y.key === "Enter" && f && o(y), y.key === "Escape" && f && r(y);
|
|
1937
1938
|
},
|
|
1938
|
-
onFocus: (y) =>
|
|
1939
|
-
onBlur: (y) =>
|
|
1939
|
+
onFocus: (y) => p(!0, y),
|
|
1940
|
+
onBlur: (y) => p(!1, y),
|
|
1940
1941
|
onChange: (y) => c(y.target.value || ""),
|
|
1941
1942
|
className: M(e, "humany-input"),
|
|
1942
|
-
"data-type": a
|
|
1943
|
+
"data-type": a,
|
|
1944
|
+
...l && { autoComplete: l }
|
|
1943
1945
|
};
|
|
1944
1946
|
return a !== "textarea" ? /* @__PURE__ */ i(
|
|
1945
1947
|
"input",
|
|
1946
1948
|
{
|
|
1947
|
-
...
|
|
1948
|
-
ref:
|
|
1949
|
+
...w,
|
|
1950
|
+
ref: m
|
|
1949
1951
|
}
|
|
1950
1952
|
) : /* @__PURE__ */ i(
|
|
1951
1953
|
"textarea",
|
|
1952
1954
|
{
|
|
1953
|
-
...
|
|
1954
|
-
ref:
|
|
1955
|
+
...w,
|
|
1956
|
+
ref: m
|
|
1955
1957
|
}
|
|
1956
1958
|
);
|
|
1957
1959
|
}
|
|
@@ -2052,16 +2054,16 @@ const qt = 300, Io = ({
|
|
|
2052
2054
|
items: u,
|
|
2053
2055
|
ulProps: c,
|
|
2054
2056
|
renderItem: (g) => {
|
|
2055
|
-
const { id: m, selected: p, items:
|
|
2056
|
-
return !s &&
|
|
2057
|
+
const { id: m, selected: p, items: w, matches: y } = g, S = p && l(w);
|
|
2058
|
+
return !s && !y ? null : /* @__PURE__ */ ct(
|
|
2057
2059
|
"li",
|
|
2058
2060
|
{
|
|
2059
2061
|
...z(h),
|
|
2060
2062
|
key: m,
|
|
2061
2063
|
className: "humany-item-tree-item"
|
|
2062
2064
|
},
|
|
2063
|
-
n && n(g, f,
|
|
2064
|
-
|
|
2065
|
+
n && n(g, f, S),
|
|
2066
|
+
w && (r || S) && d(w, f + 1)
|
|
2065
2067
|
);
|
|
2066
2068
|
}
|
|
2067
2069
|
}
|
|
@@ -2110,14 +2112,14 @@ const qt = 300, Io = ({
|
|
|
2110
2112
|
}
|
|
2111
2113
|
);
|
|
2112
2114
|
const m = Object.keys(r).reduce(
|
|
2113
|
-
(p,
|
|
2114
|
-
const
|
|
2115
|
-
if (Array.isArray(
|
|
2116
|
-
if (
|
|
2115
|
+
(p, w) => {
|
|
2116
|
+
const y = r[w];
|
|
2117
|
+
if (Array.isArray(y)) {
|
|
2118
|
+
if (y.length === 0)
|
|
2117
2119
|
return p;
|
|
2118
|
-
p[
|
|
2120
|
+
p[w] = y.map((S) => typeof S == "string" ? encodeURIComponent(S) : S).join(",");
|
|
2119
2121
|
} else
|
|
2120
|
-
p[
|
|
2122
|
+
p[w] = typeof y == "string" ? encodeURIComponent(y) : y;
|
|
2121
2123
|
return p;
|
|
2122
2124
|
},
|
|
2123
2125
|
{}
|
|
@@ -2167,7 +2169,7 @@ const mn = (e) => {
|
|
|
2167
2169
|
params: u,
|
|
2168
2170
|
...f
|
|
2169
2171
|
}, g) => {
|
|
2170
|
-
var N,
|
|
2172
|
+
var N, E;
|
|
2171
2173
|
const m = {
|
|
2172
2174
|
title: s,
|
|
2173
2175
|
role: d === "index" || d === "contact-method" || t ? "button" : void 0,
|
|
@@ -2195,8 +2197,8 @@ const mn = (e) => {
|
|
|
2195
2197
|
}
|
|
2196
2198
|
};
|
|
2197
2199
|
f["data-client-name"] === "custom.link" && (m.role = "link");
|
|
2198
|
-
const
|
|
2199
|
-
return
|
|
2200
|
+
const w = B().get("$settings"), y = t && ((E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.accessibility) == null ? void 0 : E.disableInactiveLink), S = f.description || "<p></p>";
|
|
2201
|
+
return y ? /* @__PURE__ */ b(gn, { className: "disabled-link", children: [
|
|
2200
2202
|
/* @__PURE__ */ i("div", { className: "icon-placeholder" }),
|
|
2201
2203
|
/* @__PURE__ */ b("div", { className: "humany-contact-link-rich-content", children: [
|
|
2202
2204
|
/* @__PURE__ */ i("span", { children: m.title }),
|
|
@@ -2204,7 +2206,7 @@ const mn = (e) => {
|
|
|
2204
2206
|
"div",
|
|
2205
2207
|
{
|
|
2206
2208
|
className: "inner-span",
|
|
2207
|
-
dangerouslySetInnerHTML: { __html:
|
|
2209
|
+
dangerouslySetInnerHTML: { __html: S }
|
|
2208
2210
|
}
|
|
2209
2211
|
)
|
|
2210
2212
|
] })
|
|
@@ -2268,7 +2270,7 @@ const mn = (e) => {
|
|
|
2268
2270
|
},
|
|
2269
2271
|
...r
|
|
2270
2272
|
}) => {
|
|
2271
|
-
const s = L(), c =
|
|
2273
|
+
const s = L(), c = H(
|
|
2272
2274
|
(h) => {
|
|
2273
2275
|
h.target === s.current && o(h);
|
|
2274
2276
|
},
|
|
@@ -2415,11 +2417,11 @@ const mn = (e) => {
|
|
|
2415
2417
|
...o
|
|
2416
2418
|
}) => {
|
|
2417
2419
|
var m;
|
|
2418
|
-
const r = L(null), [s, c] =
|
|
2420
|
+
const r = L(null), [s, c] = k(!1), [h, a] = k(!1), { width: l, height: d, ...u } = o.style || {}, f = H(() => {
|
|
2419
2421
|
const p = r.current;
|
|
2420
2422
|
if (p) {
|
|
2421
|
-
const
|
|
2422
|
-
return
|
|
2423
|
+
const w = window.innerWidth / p.naturalWidth, y = window.innerHeight / p.naturalHeight, S = Math.min(w, y);
|
|
2424
|
+
return y >= 1 && w >= 1 ? 1 : S;
|
|
2423
2425
|
}
|
|
2424
2426
|
return 1;
|
|
2425
2427
|
}, [s, t.src]), g = re(() => {
|
|
@@ -2427,8 +2429,8 @@ const mn = (e) => {
|
|
|
2427
2429
|
if (p && s) {
|
|
2428
2430
|
if (!h) {
|
|
2429
2431
|
a(!0);
|
|
2430
|
-
const
|
|
2431
|
-
n(
|
|
2432
|
+
const w = f();
|
|
2433
|
+
n(w);
|
|
2432
2434
|
}
|
|
2433
2435
|
return p.naturalWidth >= p.naturalHeight ? [`${e * p.naturalWidth}px`, "auto"] : ["auto", `${e * p.naturalHeight}px`];
|
|
2434
2436
|
}
|
|
@@ -2463,7 +2465,7 @@ const mn = (e) => {
|
|
|
2463
2465
|
`, En = C.img`
|
|
2464
2466
|
transform: none;
|
|
2465
2467
|
|
|
2466
|
-
${(e) => e.imageSize &&
|
|
2468
|
+
${(e) => e.imageSize && $`
|
|
2467
2469
|
width: ${e.imageSize[0]};
|
|
2468
2470
|
height: ${e.imageSize[1]};
|
|
2469
2471
|
display: inline-block;
|
|
@@ -2476,7 +2478,7 @@ const mn = (e) => {
|
|
|
2476
2478
|
display: inline-block;
|
|
2477
2479
|
vertical-align: middle;
|
|
2478
2480
|
`, Rn = () => {
|
|
2479
|
-
const e = L(), [t, n] =
|
|
2481
|
+
const e = L(), [t, n] = k(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2480
2482
|
n(!1);
|
|
2481
2483
|
}, 3e3), () => {
|
|
2482
2484
|
e.current && clearTimeout(e.current);
|
|
@@ -2484,16 +2486,16 @@ const mn = (e) => {
|
|
|
2484
2486
|
return [t, o];
|
|
2485
2487
|
}, Tn = ({ attrs: e, htmlBody: t }) => {
|
|
2486
2488
|
var Se;
|
|
2487
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] =
|
|
2489
|
+
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = k(1), [h, a] = k({ top: 0, left: 0, x: 0, y: 0 }), [l, d] = k(!1), [u, f] = Rn(), [g, m] = k(null), [p, w] = k(null), y = L(null), S = L(null), N = L(null), E = L(null), R = L(null), [qe, Qe] = k(null);
|
|
2488
2490
|
v(() => {
|
|
2489
2491
|
n && m(null);
|
|
2490
2492
|
}, [n]), v(() => {
|
|
2491
2493
|
c(1);
|
|
2492
2494
|
}, [g]), v(() => {
|
|
2493
2495
|
var I, ee;
|
|
2494
|
-
if (g === null ||
|
|
2496
|
+
if (g === null || S.current === null)
|
|
2495
2497
|
return;
|
|
2496
|
-
const x =
|
|
2498
|
+
const x = S.current.firstElementChild, T = (I = N.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = N.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2497
2499
|
if (p === "Right")
|
|
2498
2500
|
J && V ? V.focus() : G && T && T.focus();
|
|
2499
2501
|
else if (p === "Left")
|
|
@@ -2503,7 +2505,7 @@ const mn = (e) => {
|
|
|
2503
2505
|
return;
|
|
2504
2506
|
x.focus();
|
|
2505
2507
|
}
|
|
2506
|
-
}, [g,
|
|
2508
|
+
}, [g, S, N, p]), v(() => {
|
|
2507
2509
|
if (o) {
|
|
2508
2510
|
if (G)
|
|
2509
2511
|
return Le();
|
|
@@ -2531,27 +2533,27 @@ const mn = (e) => {
|
|
|
2531
2533
|
},
|
|
2532
2534
|
[]
|
|
2533
2535
|
);
|
|
2534
|
-
}, [t]), ke =
|
|
2536
|
+
}, [t]), ke = H(() => {
|
|
2535
2537
|
const { src: x } = e;
|
|
2536
2538
|
if (x) {
|
|
2537
2539
|
const T = A.findIndex((V, I) => V.src === x);
|
|
2538
2540
|
m(T);
|
|
2539
2541
|
}
|
|
2540
|
-
}, [A, e]), Ge =
|
|
2542
|
+
}, [A, e]), Ge = H((x) => {
|
|
2541
2543
|
m(null);
|
|
2542
|
-
}, []), $e =
|
|
2544
|
+
}, []), $e = H(
|
|
2543
2545
|
(x) => {
|
|
2544
2546
|
c(x ? s + s * 0.25 : s - s * 0.25);
|
|
2545
2547
|
},
|
|
2546
2548
|
[c, s]
|
|
2547
|
-
), Je =
|
|
2549
|
+
), Je = H(() => {
|
|
2548
2550
|
if (g !== null) {
|
|
2549
2551
|
const { src: x } = A[g];
|
|
2550
2552
|
x && window.open(x, "_self");
|
|
2551
2553
|
}
|
|
2552
|
-
}, [A, g]), et =
|
|
2554
|
+
}, [A, g]), et = H(
|
|
2553
2555
|
(x) => {
|
|
2554
|
-
const T =
|
|
2556
|
+
const T = E.current;
|
|
2555
2557
|
T && (a({
|
|
2556
2558
|
top: T.scrollTop,
|
|
2557
2559
|
left: T.scrollLeft,
|
|
@@ -2559,10 +2561,10 @@ const mn = (e) => {
|
|
|
2559
2561
|
y: x.clientY
|
|
2560
2562
|
}), d(!0));
|
|
2561
2563
|
},
|
|
2562
|
-
[
|
|
2563
|
-
), tt =
|
|
2564
|
+
[E]
|
|
2565
|
+
), tt = H(
|
|
2564
2566
|
(x) => {
|
|
2565
|
-
const T =
|
|
2567
|
+
const T = E.current;
|
|
2566
2568
|
if (T && l) {
|
|
2567
2569
|
const V = x.clientX - h.x, I = x.clientY - h.y;
|
|
2568
2570
|
T.scrollTop = h.top - I, T.scrollLeft = h.left - V;
|
|
@@ -2572,18 +2574,18 @@ const mn = (e) => {
|
|
|
2572
2574
|
), nt = (x) => {
|
|
2573
2575
|
x.preventDefault(), d(!1);
|
|
2574
2576
|
}, ot = re(() => {
|
|
2575
|
-
if (
|
|
2576
|
-
const x =
|
|
2577
|
+
if (E.current) {
|
|
2578
|
+
const x = E.current.getElementsByTagName("img");
|
|
2577
2579
|
if (x && x.length) {
|
|
2578
2580
|
const T = x[0];
|
|
2579
2581
|
return T.width > window.innerWidth || T.height > window.innerHeight;
|
|
2580
2582
|
}
|
|
2581
2583
|
}
|
|
2582
2584
|
return !1;
|
|
2583
|
-
}, [
|
|
2584
|
-
g !== null && (
|
|
2585
|
+
}, [E, s]), Le = () => {
|
|
2586
|
+
g !== null && (w("Left"), m(g - 1));
|
|
2585
2587
|
}, Me = () => {
|
|
2586
|
-
g !== null && (
|
|
2588
|
+
g !== null && (w("Right"), m(g + 1));
|
|
2587
2589
|
}, G = g !== null && g > 0 && A.length > 1, J = g !== null && A.length - 1 > g;
|
|
2588
2590
|
return /* @__PURE__ */ b(U, { children: [
|
|
2589
2591
|
/* @__PURE__ */ i(Xe, { visible: g !== null, onClick: Ge, children: /* @__PURE__ */ b(
|
|
@@ -2597,7 +2599,7 @@ const mn = (e) => {
|
|
|
2597
2599
|
/* @__PURE__ */ i(On, { show: u.toString(), children: /* @__PURE__ */ i(
|
|
2598
2600
|
Bn,
|
|
2599
2601
|
{
|
|
2600
|
-
ref:
|
|
2602
|
+
ref: S,
|
|
2601
2603
|
buttons: [
|
|
2602
2604
|
{
|
|
2603
2605
|
id: "download",
|
|
@@ -2619,7 +2621,7 @@ const mn = (e) => {
|
|
|
2619
2621
|
{
|
|
2620
2622
|
scrolling: l.toString(),
|
|
2621
2623
|
isDraggable: ot.toString(),
|
|
2622
|
-
ref:
|
|
2624
|
+
ref: E,
|
|
2623
2625
|
onMouseMove: tt,
|
|
2624
2626
|
onMouseDown: et,
|
|
2625
2627
|
onMouseUp: nt,
|
|
@@ -2698,7 +2700,7 @@ const mn = (e) => {
|
|
|
2698
2700
|
/* @__PURE__ */ i(
|
|
2699
2701
|
Nn,
|
|
2700
2702
|
{
|
|
2701
|
-
ref:
|
|
2703
|
+
ref: y,
|
|
2702
2704
|
onClick: ke,
|
|
2703
2705
|
onKeyDown: (x) => {
|
|
2704
2706
|
x.key === "Enter" && (x.preventDefault(), ke());
|
|
@@ -2752,14 +2754,14 @@ const mn = (e) => {
|
|
|
2752
2754
|
), _e = C.div`
|
|
2753
2755
|
transition: opacity 0.3s ease 0s;
|
|
2754
2756
|
z-index: 5;
|
|
2755
|
-
${(e) => e.show === "true" ? "opacity: 1;" :
|
|
2757
|
+
${(e) => e.show === "true" ? "opacity: 1;" : $`
|
|
2756
2758
|
opacity: 0;
|
|
2757
2759
|
pointer-events: none;
|
|
2758
2760
|
`}
|
|
2759
2761
|
`, Nn = C(xe)`
|
|
2760
2762
|
display: inline-block !important;
|
|
2761
2763
|
|
|
2762
|
-
${(e) => (e.alignment === "right" || e.alignment === "left") &&
|
|
2764
|
+
${(e) => (e.alignment === "right" || e.alignment === "left") && $`
|
|
2763
2765
|
float: ${e.alignment};
|
|
2764
2766
|
`}
|
|
2765
2767
|
`, Dn = C(_e)`
|
|
@@ -2776,7 +2778,7 @@ const mn = (e) => {
|
|
|
2776
2778
|
justify-content: center;
|
|
2777
2779
|
align-items: center;
|
|
2778
2780
|
|
|
2779
|
-
${(e) => e.icon === "caret-left" &&
|
|
2781
|
+
${(e) => e.icon === "caret-left" && $`
|
|
2780
2782
|
svg {
|
|
2781
2783
|
position: relative;
|
|
2782
2784
|
left: -2px;
|
|
@@ -2785,7 +2787,7 @@ const mn = (e) => {
|
|
|
2785
2787
|
|
|
2786
2788
|
${(e) => {
|
|
2787
2789
|
var t;
|
|
2788
|
-
return e.circle === "true" ?
|
|
2790
|
+
return e.circle === "true" ? $`
|
|
2789
2791
|
background-color: #ffffff;
|
|
2790
2792
|
border-radius: 50%;
|
|
2791
2793
|
|
|
@@ -2808,7 +2810,7 @@ const mn = (e) => {
|
|
|
2808
2810
|
}
|
|
2809
2811
|
}
|
|
2810
2812
|
}
|
|
2811
|
-
` :
|
|
2813
|
+
` : $`
|
|
2812
2814
|
svg {
|
|
2813
2815
|
path,
|
|
2814
2816
|
line {
|
|
@@ -2824,13 +2826,13 @@ const mn = (e) => {
|
|
|
2824
2826
|
`;
|
|
2825
2827
|
}}
|
|
2826
2828
|
|
|
2827
|
-
${(e) => e.show === "true" ?
|
|
2829
|
+
${(e) => e.show === "true" ? $`
|
|
2828
2830
|
opacity: 0.8;
|
|
2829
2831
|
transition: opacity 0.3s ease 0s;
|
|
2830
2832
|
&:hover {
|
|
2831
2833
|
opacity: 1;
|
|
2832
2834
|
}
|
|
2833
|
-
` :
|
|
2835
|
+
` : $`
|
|
2834
2836
|
opacity: 0;
|
|
2835
2837
|
pointer-events: none;
|
|
2836
2838
|
`}
|
|
@@ -2939,9 +2941,9 @@ const mn = (e) => {
|
|
|
2939
2941
|
}, [h, u.current]), ae("router:changed", () => {
|
|
2940
2942
|
a(!1);
|
|
2941
2943
|
});
|
|
2942
|
-
const m =
|
|
2943
|
-
(
|
|
2944
|
-
a(!1), o(
|
|
2944
|
+
const m = H(
|
|
2945
|
+
(w) => {
|
|
2946
|
+
a(!1), o(w);
|
|
2945
2947
|
},
|
|
2946
2948
|
[o, a]
|
|
2947
2949
|
);
|
|
@@ -2950,7 +2952,7 @@ const mn = (e) => {
|
|
|
2950
2952
|
a(!1);
|
|
2951
2953
|
}
|
|
2952
2954
|
}));
|
|
2953
|
-
const p =
|
|
2955
|
+
const p = H(() => ye(f.current, () => {
|
|
2954
2956
|
a(!1);
|
|
2955
2957
|
}), [f.current]);
|
|
2956
2958
|
return /* @__PURE__ */ b(U, { children: [
|
|
@@ -2981,7 +2983,7 @@ const mn = (e) => {
|
|
|
2981
2983
|
}
|
|
2982
2984
|
) }),
|
|
2983
2985
|
oe.cloneElement(n, {
|
|
2984
|
-
onClick: (
|
|
2986
|
+
onClick: (w) => {
|
|
2985
2987
|
a(), p();
|
|
2986
2988
|
}
|
|
2987
2989
|
})
|
|
@@ -3018,10 +3020,10 @@ const mn = (e) => {
|
|
|
3018
3020
|
cancelLabel: c = "",
|
|
3019
3021
|
confirmLabel: h = ""
|
|
3020
3022
|
}) => {
|
|
3021
|
-
const a = L(), l =
|
|
3023
|
+
const a = L(), l = H(() => {
|
|
3022
3024
|
var u;
|
|
3023
3025
|
r(), (u = a == null ? void 0 : a.current) == null || u.close();
|
|
3024
|
-
}, [r]), d =
|
|
3026
|
+
}, [r]), d = H(() => {
|
|
3025
3027
|
var u;
|
|
3026
3028
|
s(), (u = a == null ? void 0 : a.current) == null || u.close();
|
|
3027
3029
|
}, [s]);
|
|
@@ -3130,7 +3132,7 @@ const mn = (e) => {
|
|
|
3130
3132
|
`, qn = C.div`
|
|
3131
3133
|
${(e) => ie(e)(
|
|
3132
3134
|
"h2",
|
|
3133
|
-
|
|
3135
|
+
$`
|
|
3134
3136
|
padding: 0;
|
|
3135
3137
|
margin: 0;
|
|
3136
3138
|
color: gray;
|
|
@@ -3147,7 +3149,7 @@ const mn = (e) => {
|
|
|
3147
3149
|
var t;
|
|
3148
3150
|
return ie(e)(
|
|
3149
3151
|
"h3",
|
|
3150
|
-
|
|
3152
|
+
$`
|
|
3151
3153
|
text-transform: uppercase;
|
|
3152
3154
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
3153
3155
|
`
|
|
@@ -3251,7 +3253,7 @@ const Uo = ({
|
|
|
3251
3253
|
sticky: o = !1,
|
|
3252
3254
|
...r
|
|
3253
3255
|
}) => {
|
|
3254
|
-
const [s, c] =
|
|
3256
|
+
const [s, c] = k(!1), h = L(_()), a = L(), [{ x: l, y: d }, u] = je(s, h.current, a.current), f = (m) => {
|
|
3255
3257
|
const { target: p } = m;
|
|
3256
3258
|
!a.current || !p || a.current !== p && !a.current.contains(p) && c(!1);
|
|
3257
3259
|
};
|
|
@@ -3261,7 +3263,7 @@ const Uo = ({
|
|
|
3261
3263
|
window.removeEventListener("click", f);
|
|
3262
3264
|
};
|
|
3263
3265
|
}, [s, o]);
|
|
3264
|
-
const g =
|
|
3266
|
+
const g = H(
|
|
3265
3267
|
(m, p) => {
|
|
3266
3268
|
u(m, a.current), c(p);
|
|
3267
3269
|
},
|
|
@@ -3415,7 +3417,7 @@ const Uo = ({
|
|
|
3415
3417
|
).then(() => {
|
|
3416
3418
|
f.events.subscribeOnce(
|
|
3417
3419
|
"widget:area-rendered",
|
|
3418
|
-
(p,
|
|
3420
|
+
(p, w) => {
|
|
3419
3421
|
h.get(
|
|
3420
3422
|
"widgetDOMElement"
|
|
3421
3423
|
) && f.events.dispatch("widget:modal-opened", {
|