@telia-ace/widget-ui 1.3.28-rc.1 → 1.3.28
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 +64 -64
- package/index.mjs +291 -272
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -5,13 +5,13 @@ import { css as k, keyframes as Be } from "@emotion/react";
|
|
|
5
5
|
import { kebabCase as st, appendClassNames as M, uuid as _, removeNullAndUndefinedValues as Re, 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
|
|
8
|
+
import oe, { forwardRef as D, createContext as K, useContext as P, useState as w, useEffect as v, useRef as L, useCallback as E, useImperativeHandle as ge, createElement as at, useMemo as re, Component as ct, lazy as lt } from "react";
|
|
9
9
|
import { CSSTransition as Ve, Transition as dt } from "react-transition-group";
|
|
10
10
|
import { Container as ut, WidgetState as ht } from "@webprovisions/platform";
|
|
11
11
|
import { ComponentPlatform as ft, 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
|
-
import { HistoryMode as
|
|
14
|
+
import { HistoryMode as Te, getSpecificWidgetPath as bt } from "@telia-ace/widget-routing";
|
|
15
15
|
import { Link as ue } from "react-router-dom";
|
|
16
16
|
const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exiting" || e === "exited", F = {
|
|
17
17
|
fade: {
|
|
@@ -91,7 +91,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
91
91
|
get: (e) => F[e]
|
|
92
92
|
};
|
|
93
93
|
var fe = /* @__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))(fe || {});
|
|
94
|
-
const
|
|
94
|
+
const Ne = () => {
|
|
95
95
|
const {
|
|
96
96
|
opr: e,
|
|
97
97
|
opera: t,
|
|
@@ -133,20 +133,20 @@ const Te = () => {
|
|
|
133
133
|
return t;
|
|
134
134
|
},
|
|
135
135
|
{}
|
|
136
|
-
),
|
|
136
|
+
), yo = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ i(on, { ...t }) : null, $t = (e) => new RegExp("^#", "i").test(e), Lt = (e) => ({ children: t, ...n }) => {
|
|
137
137
|
const {
|
|
138
138
|
implementation: o,
|
|
139
139
|
name: r
|
|
140
140
|
} = e.get("$widget"), { href: s = "" } = n;
|
|
141
141
|
if ($t(s))
|
|
142
|
-
return /* @__PURE__ */ i(
|
|
142
|
+
return /* @__PURE__ */ i(Nt, { smooth: !0, to: s, children: t });
|
|
143
143
|
const c = o.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), a = new RegExp(
|
|
144
144
|
`^((http[s]?:)?//)?(${c})/([^\\s]+)`
|
|
145
145
|
).exec(s);
|
|
146
146
|
if (a && a.length >= 4) {
|
|
147
147
|
const l = a[4];
|
|
148
148
|
if (o.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
149
|
-
return /* @__PURE__ */ i(
|
|
149
|
+
return /* @__PURE__ */ i(no, { widgetName: l, children: t });
|
|
150
150
|
}
|
|
151
151
|
return /* @__PURE__ */ i("a", { ...n, children: t });
|
|
152
152
|
}, We = (e) => {
|
|
@@ -195,17 +195,36 @@ const Te = () => {
|
|
|
195
195
|
}
|
|
196
196
|
`;
|
|
197
197
|
};
|
|
198
|
-
function Et(e
|
|
199
|
-
|
|
198
|
+
function Et(e) {
|
|
199
|
+
if (typeof e != "string")
|
|
200
|
+
throw new TypeError("Expected HTML string");
|
|
201
|
+
const t = document.createElement("div");
|
|
202
|
+
t.innerHTML = e.trim();
|
|
203
|
+
const n = Array.from(t.childNodes).map((o) => {
|
|
204
|
+
const r = o;
|
|
205
|
+
if (!r.tagName || !r.attributes)
|
|
206
|
+
return r;
|
|
207
|
+
const s = document.createElement(r.tagName);
|
|
208
|
+
return s.innerHTML = r.innerHTML, Array.from(r.attributes).forEach((c) => {
|
|
209
|
+
s.setAttribute(
|
|
210
|
+
c.localName.replace(/[^\w-]/g, ""),
|
|
211
|
+
c.value
|
|
212
|
+
);
|
|
213
|
+
}), s;
|
|
214
|
+
});
|
|
215
|
+
return Array.from(n).map((o) => o.tagName ? o.outerHTML : o.textContent).join("");
|
|
216
|
+
}
|
|
217
|
+
function Rt(e, t) {
|
|
218
|
+
return t ? He(Et(e), t) : He(e);
|
|
200
219
|
}
|
|
201
|
-
const
|
|
220
|
+
const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt = (e, t) => ({
|
|
202
221
|
transform: {
|
|
203
222
|
a: Lt(e),
|
|
204
|
-
img:
|
|
223
|
+
img: Ht(t)
|
|
205
224
|
}
|
|
206
|
-
}),
|
|
225
|
+
}), Nt = (e) => St(e, "a"), se = D(
|
|
207
226
|
({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
|
|
208
|
-
|
|
227
|
+
Dt,
|
|
209
228
|
{
|
|
210
229
|
type: "button",
|
|
211
230
|
className: M(e, "humany-button"),
|
|
@@ -214,7 +233,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
214
233
|
children: t
|
|
215
234
|
}
|
|
216
235
|
)
|
|
217
|
-
),
|
|
236
|
+
), Dt = C.button`
|
|
218
237
|
-webkit-appearance: button;
|
|
219
238
|
text-transform: none;
|
|
220
239
|
overflow: visible;
|
|
@@ -227,7 +246,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
227
246
|
line-height: normal;
|
|
228
247
|
margin: 0;
|
|
229
248
|
padding: 0;
|
|
230
|
-
`,
|
|
249
|
+
`, bo = ({
|
|
231
250
|
onChange: e = () => {
|
|
232
251
|
},
|
|
233
252
|
onEnter: t = () => {
|
|
@@ -246,14 +265,14 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
246
265
|
onChange: (s) => e(s.target.value, s.currentTarget.checked),
|
|
247
266
|
...z(r)
|
|
248
267
|
}
|
|
249
|
-
),
|
|
268
|
+
), zt = K(new ut()), Bt = K(1), Ze = K({
|
|
250
269
|
id: "",
|
|
251
270
|
type: "",
|
|
252
271
|
name: "",
|
|
253
272
|
branch: ""
|
|
254
|
-
}),
|
|
273
|
+
}), Vt = K(
|
|
255
274
|
{}
|
|
256
|
-
),
|
|
275
|
+
), Wt = K(null), Zt = K(null), pe = () => P(Ze), B = () => P(zt), vo = (e, t) => {
|
|
257
276
|
const n = pe().id, o = B();
|
|
258
277
|
return (r, s) => {
|
|
259
278
|
(t || o).getAsync("actionResolver").then((c) => {
|
|
@@ -282,7 +301,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
282
301
|
}
|
|
283
302
|
);
|
|
284
303
|
}, [r]), n;
|
|
285
|
-
},
|
|
304
|
+
}, xo = () => {
|
|
286
305
|
const e = Ce(), t = Y(), [n, o] = w([]), r = Z(), s = E(
|
|
287
306
|
(c) => {
|
|
288
307
|
if (t && r.current && c) {
|
|
@@ -308,7 +327,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
308
327
|
};
|
|
309
328
|
}
|
|
310
329
|
}, [e, t, s]), n;
|
|
311
|
-
},
|
|
330
|
+
}, wo = () => P(Bt), ko = (e, t) => {
|
|
312
331
|
const n = pe(), o = B(), [r, s] = w(void 0), c = Z(), u = e || n.type || "";
|
|
313
332
|
return v(() => {
|
|
314
333
|
if (u) {
|
|
@@ -326,7 +345,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
326
345
|
};
|
|
327
346
|
}
|
|
328
347
|
}, [c, u, t, o]), r;
|
|
329
|
-
},
|
|
348
|
+
}, It = (e) => {
|
|
330
349
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
331
350
|
return v(() => {
|
|
332
351
|
t && s.current && r(t.attributes.context);
|
|
@@ -343,7 +362,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
343
362
|
};
|
|
344
363
|
}
|
|
345
364
|
}, [s, n, t]), o;
|
|
346
|
-
},
|
|
365
|
+
}, $o = () => P(Zt), Lo = () => {
|
|
347
366
|
const e = Y(), t = pe(), [n, o] = w([]), [r, s] = w();
|
|
348
367
|
return v(() => {
|
|
349
368
|
if (e && t) {
|
|
@@ -373,10 +392,10 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
373
392
|
n.removeEventListener(e, c);
|
|
374
393
|
};
|
|
375
394
|
}, [e, n]);
|
|
376
|
-
},
|
|
395
|
+
}, Ot = (e) => {
|
|
377
396
|
const t = B(), { events: n } = (e || t).get("$widget");
|
|
378
397
|
return n;
|
|
379
|
-
},
|
|
398
|
+
}, Mo = () => {
|
|
380
399
|
const [e, t] = w(!1);
|
|
381
400
|
return v(() => {
|
|
382
401
|
const n = () => {
|
|
@@ -402,7 +421,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
402
421
|
[o]
|
|
403
422
|
);
|
|
404
423
|
return W("keydown", r, window), W("keyup", s, window), n;
|
|
405
|
-
},
|
|
424
|
+
}, So = (e) => {
|
|
406
425
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
407
426
|
return v(() => {
|
|
408
427
|
t && s.current && r(t.attributes.layout);
|
|
@@ -424,7 +443,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
424
443
|
return v(() => {
|
|
425
444
|
t.current = e;
|
|
426
445
|
}), t.current;
|
|
427
|
-
},
|
|
446
|
+
}, Eo = () => P(Vt), Ro = (e) => {
|
|
428
447
|
const [t, n] = w(), o = B(), r = Z();
|
|
429
448
|
return v(() => {
|
|
430
449
|
let s;
|
|
@@ -451,7 +470,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
451
470
|
s && s();
|
|
452
471
|
};
|
|
453
472
|
}, [r]), t;
|
|
454
|
-
}, Oe = () => P(
|
|
473
|
+
}, Oe = () => P(Wt), Ho = (e) => {
|
|
455
474
|
const t = B(), n = Oe(), [o, r] = w({
|
|
456
475
|
name: "",
|
|
457
476
|
params: {}
|
|
@@ -517,9 +536,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
517
536
|
a,
|
|
518
537
|
t.current,
|
|
519
538
|
() => t.current && e
|
|
520
|
-
), e ? [
|
|
521
|
-
},
|
|
522
|
-
overflow-y: ${
|
|
539
|
+
), e ? [At, t] : ["", t];
|
|
540
|
+
}, At = `
|
|
541
|
+
overflow-y: ${Ne() === fe.Chrome || Ne() === fe.EdgeChromium ? "overlay" : "auto"};
|
|
523
542
|
overflow-x: hidden;
|
|
524
543
|
-ms-overflow-style: none; /* IE 10+ */
|
|
525
544
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -546,7 +565,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
546
565
|
background-color: #7F7F7F;
|
|
547
566
|
}
|
|
548
567
|
}
|
|
549
|
-
`,
|
|
568
|
+
`, To = () => {
|
|
550
569
|
const [e, t] = w(null), n = B(), o = Z();
|
|
551
570
|
return v(() => {
|
|
552
571
|
n.get("settings").then((r) => {
|
|
@@ -558,7 +577,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
558
577
|
n(typeof r == "boolean" ? r : (s) => !s);
|
|
559
578
|
}, []);
|
|
560
579
|
return [t, o];
|
|
561
|
-
},
|
|
580
|
+
}, No = (e) => {
|
|
562
581
|
const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [c, u] = w(null), a = Z();
|
|
563
582
|
v(() => {
|
|
564
583
|
if (n && a.current) {
|
|
@@ -589,7 +608,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
589
608
|
c
|
|
590
609
|
);
|
|
591
610
|
}, ae = (e, t, n = [], o) => {
|
|
592
|
-
const r =
|
|
611
|
+
const r = Ot(o);
|
|
593
612
|
return v(() => {
|
|
594
613
|
if (r) {
|
|
595
614
|
const s = r.subscribe(e, t);
|
|
@@ -603,7 +622,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
603
622
|
r !== e && t();
|
|
604
623
|
});
|
|
605
624
|
return () => n(e);
|
|
606
|
-
}, be =
|
|
625
|
+
}, be = D(
|
|
607
626
|
({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
|
|
608
627
|
"span",
|
|
609
628
|
{
|
|
@@ -622,7 +641,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
622
641
|
border: ${e.theme.border};
|
|
623
642
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
624
643
|
${e["data-loading"] && "min-height: 150px;"}
|
|
625
|
-
`,
|
|
644
|
+
`, Ft = (e) => {
|
|
626
645
|
var t, n, o;
|
|
627
646
|
return k`
|
|
628
647
|
cursor: pointer;
|
|
@@ -634,11 +653,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
634
653
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
635
654
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
636
655
|
`;
|
|
637
|
-
},
|
|
656
|
+
}, Do = (e) => {
|
|
638
657
|
var c;
|
|
639
658
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
640
659
|
return k`
|
|
641
|
-
${
|
|
660
|
+
${Ft(e)}
|
|
642
661
|
border: 1px solid ${o ? n : t};
|
|
643
662
|
background-color: ${o ? t : n};
|
|
644
663
|
|
|
@@ -679,10 +698,10 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
679
698
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
680
699
|
border-color: transparent;
|
|
681
700
|
`;
|
|
682
|
-
},
|
|
701
|
+
}, Pt = (e) => k`
|
|
683
702
|
${O(e)}
|
|
684
703
|
text-decoration: underline;
|
|
685
|
-
`,
|
|
704
|
+
`, zo = (e) => {
|
|
686
705
|
var t;
|
|
687
706
|
return k`
|
|
688
707
|
${O(e)}
|
|
@@ -716,7 +735,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
716
735
|
height: 15px;
|
|
717
736
|
box-sizing: content-box;
|
|
718
737
|
}
|
|
719
|
-
`,
|
|
738
|
+
`, De = C(be)`
|
|
720
739
|
font-size: ${(e) => {
|
|
721
740
|
var t;
|
|
722
741
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -727,7 +746,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
727
746
|
var t;
|
|
728
747
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
729
748
|
}};
|
|
730
|
-
`,
|
|
749
|
+
`, jt = (e) => {
|
|
731
750
|
var t;
|
|
732
751
|
return k`
|
|
733
752
|
padding: 0;
|
|
@@ -749,7 +768,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
749
768
|
margin: 0;
|
|
750
769
|
}
|
|
751
770
|
`;
|
|
752
|
-
},
|
|
771
|
+
}, Bo = (e) => {
|
|
753
772
|
var t, n, o, r;
|
|
754
773
|
return k`
|
|
755
774
|
> div {
|
|
@@ -765,7 +784,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
765
784
|
)}
|
|
766
785
|
}
|
|
767
786
|
> ul {
|
|
768
|
-
${
|
|
787
|
+
${jt(e)}
|
|
769
788
|
}
|
|
770
789
|
${ie(e)(
|
|
771
790
|
"h1",
|
|
@@ -785,7 +804,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
785
804
|
`
|
|
786
805
|
)}
|
|
787
806
|
`;
|
|
788
|
-
},
|
|
807
|
+
}, Vo = (e) => {
|
|
789
808
|
var t, n, o, r, s, c;
|
|
790
809
|
return k`
|
|
791
810
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -814,7 +833,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
814
833
|
a {
|
|
815
834
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
816
835
|
&:focus-visible {
|
|
817
|
-
${
|
|
836
|
+
${Pt(e)};
|
|
818
837
|
}
|
|
819
838
|
}
|
|
820
839
|
|
|
@@ -964,7 +983,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
964
983
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" })
|
|
965
984
|
] });
|
|
966
985
|
case "caret-up":
|
|
967
|
-
return /* @__PURE__ */ b(
|
|
986
|
+
return /* @__PURE__ */ b(Kt, { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
968
987
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
969
988
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
970
989
|
] });
|
|
@@ -1437,7 +1456,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1437
1456
|
}
|
|
1438
1457
|
case "FontAwesome":
|
|
1439
1458
|
return /* @__PURE__ */ i(
|
|
1440
|
-
|
|
1459
|
+
an,
|
|
1441
1460
|
{
|
|
1442
1461
|
className: s,
|
|
1443
1462
|
faIcon: a,
|
|
@@ -1458,9 +1477,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1458
1477
|
}
|
|
1459
1478
|
) : null;
|
|
1460
1479
|
}
|
|
1461
|
-
},
|
|
1480
|
+
}, Kt = C.svg`
|
|
1462
1481
|
transform: rotate(180deg);
|
|
1463
|
-
`,
|
|
1482
|
+
`, Yt = {
|
|
1464
1483
|
h1: "h1",
|
|
1465
1484
|
h2: "h2",
|
|
1466
1485
|
h3: "h3",
|
|
@@ -1475,14 +1494,14 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1475
1494
|
className: n,
|
|
1476
1495
|
children: o
|
|
1477
1496
|
}) => {
|
|
1478
|
-
const { typographyVariantMapping: r = {} } =
|
|
1479
|
-
...
|
|
1497
|
+
const { typographyVariantMapping: r = {} } = It(), s = {
|
|
1498
|
+
...Yt,
|
|
1480
1499
|
...r
|
|
1481
1500
|
}, c = t || s[e] || "span";
|
|
1482
|
-
return /* @__PURE__ */ i(
|
|
1483
|
-
},
|
|
1484
|
-
var
|
|
1485
|
-
const
|
|
1501
|
+
return /* @__PURE__ */ i(Xt, { className: n, as: c, children: o });
|
|
1502
|
+
}, Xt = C.span``;
|
|
1503
|
+
var _t = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(_t || {});
|
|
1504
|
+
const Ut = 300, Wo = ({
|
|
1486
1505
|
className: e,
|
|
1487
1506
|
children: t,
|
|
1488
1507
|
header: n,
|
|
@@ -1495,7 +1514,7 @@ const _t = 300, Vo = ({
|
|
|
1495
1514
|
/* SlideInBottom */
|
|
1496
1515
|
}
|
|
1497
1516
|
}) => {
|
|
1498
|
-
const { duration: a =
|
|
1517
|
+
const { duration: a = Ut } = u, l = L(), d = L(), [h, f] = Ae(!0), [g, m] = Fe(), p = Ie(g), y = L(_());
|
|
1499
1518
|
v(() => {
|
|
1500
1519
|
o && o(g);
|
|
1501
1520
|
}, [g]);
|
|
@@ -1505,8 +1524,8 @@ const _t = 300, Vo = ({
|
|
|
1505
1524
|
}, [$]), W(
|
|
1506
1525
|
"click",
|
|
1507
1526
|
(S) => {
|
|
1508
|
-
const { target:
|
|
1509
|
-
!d.current || !f.current || !
|
|
1527
|
+
const { target: T } = S;
|
|
1528
|
+
!d.current || !f.current || !T || d.current !== T && f.current !== T && !f.current.contains(T) && !d.current.contains(T) && m(!1);
|
|
1510
1529
|
},
|
|
1511
1530
|
window
|
|
1512
1531
|
);
|
|
@@ -1518,7 +1537,7 @@ const _t = 300, Vo = ({
|
|
|
1518
1537
|
}), v(() => {
|
|
1519
1538
|
g && l.current ? l.current.focus() : !g && d.current && p && d.current.focus();
|
|
1520
1539
|
}, [g, l.current, d.current]);
|
|
1521
|
-
const
|
|
1540
|
+
const N = tn[u.type];
|
|
1522
1541
|
return /* @__PURE__ */ b(U, { children: [
|
|
1523
1542
|
/* @__PURE__ */ i(
|
|
1524
1543
|
Ve,
|
|
@@ -1529,7 +1548,7 @@ const _t = 300, Vo = ({
|
|
|
1529
1548
|
unmountOnExit: !0,
|
|
1530
1549
|
timeout: a,
|
|
1531
1550
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1532
|
-
|
|
1551
|
+
N,
|
|
1533
1552
|
{
|
|
1534
1553
|
duration: a,
|
|
1535
1554
|
fullScreen: s,
|
|
@@ -1552,7 +1571,7 @@ const _t = 300, Vo = ({
|
|
|
1552
1571
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
1553
1572
|
}
|
|
1554
1573
|
),
|
|
1555
|
-
!!n && /* @__PURE__ */ i(
|
|
1574
|
+
!!n && /* @__PURE__ */ i(qt, { variant: "h1", className: "humany-drawer-header", children: n }),
|
|
1556
1575
|
t
|
|
1557
1576
|
]
|
|
1558
1577
|
}
|
|
@@ -1585,7 +1604,7 @@ const _t = 300, Vo = ({
|
|
|
1585
1604
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1586
1605
|
background: #ffffff;
|
|
1587
1606
|
${(e) => e.css && e.css}
|
|
1588
|
-
`,
|
|
1607
|
+
`, qt = C(X)`
|
|
1589
1608
|
padding: ${(e) => {
|
|
1590
1609
|
var t;
|
|
1591
1610
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1610,7 +1629,7 @@ const _t = 300, Vo = ({
|
|
|
1610
1629
|
line-height: 1.2em;
|
|
1611
1630
|
`, le = (e) => k`
|
|
1612
1631
|
transition: ${e.duration}ms;
|
|
1613
|
-
`,
|
|
1632
|
+
`, Qt = C(ce)`
|
|
1614
1633
|
max-height: 0;
|
|
1615
1634
|
${le}
|
|
1616
1635
|
|
|
@@ -1627,7 +1646,7 @@ const _t = 300, Vo = ({
|
|
|
1627
1646
|
&.humany-drawer-transition-exit-done {
|
|
1628
1647
|
max-height: 0;
|
|
1629
1648
|
}
|
|
1630
|
-
`,
|
|
1649
|
+
`, Gt = C(ce)`
|
|
1631
1650
|
${le}
|
|
1632
1651
|
transform: translateX(100%);
|
|
1633
1652
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1645,7 +1664,7 @@ const _t = 300, Vo = ({
|
|
|
1645
1664
|
&.humany-drawer-transition-exit-done {
|
|
1646
1665
|
transform: translateX(100%);
|
|
1647
1666
|
}
|
|
1648
|
-
`,
|
|
1667
|
+
`, Jt = C(ce)`
|
|
1649
1668
|
${le}
|
|
1650
1669
|
transform: translateX(-100%);
|
|
1651
1670
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1663,7 +1682,7 @@ const _t = 300, Vo = ({
|
|
|
1663
1682
|
&.humany-drawer-transition-exit-done {
|
|
1664
1683
|
transform: translateX(-100%);
|
|
1665
1684
|
}
|
|
1666
|
-
`,
|
|
1685
|
+
`, en = C(ce)`
|
|
1667
1686
|
${le}
|
|
1668
1687
|
bottom: unset;
|
|
1669
1688
|
top: 0;
|
|
@@ -1682,23 +1701,23 @@ const _t = 300, Vo = ({
|
|
|
1682
1701
|
&.humany-drawer-transition-exit-done {
|
|
1683
1702
|
height: 0;
|
|
1684
1703
|
}
|
|
1685
|
-
`,
|
|
1704
|
+
`, tn = {
|
|
1686
1705
|
[
|
|
1687
1706
|
"slide-in-bottom"
|
|
1688
1707
|
/* SlideInBottom */
|
|
1689
|
-
]:
|
|
1708
|
+
]: Qt,
|
|
1690
1709
|
[
|
|
1691
1710
|
"slide-in-right"
|
|
1692
1711
|
/* SlideInRight */
|
|
1693
|
-
]:
|
|
1712
|
+
]: Gt,
|
|
1694
1713
|
[
|
|
1695
1714
|
"slide-in-left"
|
|
1696
1715
|
/* SlideInLeft */
|
|
1697
|
-
]:
|
|
1716
|
+
]: Jt,
|
|
1698
1717
|
[
|
|
1699
1718
|
"slide-in-top"
|
|
1700
1719
|
/* SlideInTop */
|
|
1701
|
-
]:
|
|
1720
|
+
]: en
|
|
1702
1721
|
}, je = (e, t, n) => {
|
|
1703
1722
|
const [o, r] = w(0), [s, c] = w(0), u = E(
|
|
1704
1723
|
(a, l) => {
|
|
@@ -1718,7 +1737,7 @@ const _t = 300, Vo = ({
|
|
|
1718
1737
|
};
|
|
1719
1738
|
a.left < 0 && (l.x = 0), a.bottom > window.innerHeight && (l.y = 0), l.x !== o && r(l.x), l.y !== s && c(l.y);
|
|
1720
1739
|
}, [n, e, t]), [{ x: o, y: s }, u];
|
|
1721
|
-
},
|
|
1740
|
+
}, Zo = oe.forwardRef(
|
|
1722
1741
|
({
|
|
1723
1742
|
className: e = "",
|
|
1724
1743
|
children: t = null,
|
|
@@ -1735,8 +1754,8 @@ const _t = 300, Vo = ({
|
|
|
1735
1754
|
d && c.current ? c.current.focus() : !d && u.current && f && u.current.focus();
|
|
1736
1755
|
}, [d, c.current, u.current]), W(
|
|
1737
1756
|
"click",
|
|
1738
|
-
(
|
|
1739
|
-
const { target: S } =
|
|
1757
|
+
(N) => {
|
|
1758
|
+
const { target: S } = N;
|
|
1740
1759
|
!a.current || !S || a.current !== S && !a.current.contains(S) && h(!1);
|
|
1741
1760
|
},
|
|
1742
1761
|
window
|
|
@@ -1746,14 +1765,14 @@ const _t = 300, Vo = ({
|
|
|
1746
1765
|
const $ = ye(l.current, () => {
|
|
1747
1766
|
h(!1);
|
|
1748
1767
|
}), R = E(
|
|
1749
|
-
(
|
|
1750
|
-
|
|
1768
|
+
(N) => {
|
|
1769
|
+
N.stopPropagation(), p(N, u.current), h(!d), $();
|
|
1751
1770
|
},
|
|
1752
1771
|
[$, p, h]
|
|
1753
1772
|
);
|
|
1754
1773
|
return /* @__PURE__ */ b(U, { children: [
|
|
1755
1774
|
d && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1756
|
-
|
|
1775
|
+
nn,
|
|
1757
1776
|
{
|
|
1758
1777
|
className: M(
|
|
1759
1778
|
"humany-dropdown",
|
|
@@ -1787,7 +1806,7 @@ const _t = 300, Vo = ({
|
|
|
1787
1806
|
})
|
|
1788
1807
|
] });
|
|
1789
1808
|
}
|
|
1790
|
-
),
|
|
1809
|
+
), nn = C.div`
|
|
1791
1810
|
${Pe}
|
|
1792
1811
|
padding: ${(e) => {
|
|
1793
1812
|
var t;
|
|
@@ -1802,11 +1821,11 @@ const _t = 300, Vo = ({
|
|
|
1802
1821
|
let t = "";
|
|
1803
1822
|
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
1823
|
}};
|
|
1805
|
-
`,
|
|
1824
|
+
`, on = ({ ...e }) => /* @__PURE__ */ i(rn, { ...e }), rn = C.div`
|
|
1806
1825
|
display: none;
|
|
1807
|
-
`,
|
|
1826
|
+
`, Io = D(
|
|
1808
1827
|
({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
|
|
1809
|
-
|
|
1828
|
+
sn,
|
|
1810
1829
|
{
|
|
1811
1830
|
className: M(o, "humany-grid"),
|
|
1812
1831
|
"data-columns": t,
|
|
@@ -1817,25 +1836,25 @@ const _t = 300, Vo = ({
|
|
|
1817
1836
|
children: e
|
|
1818
1837
|
}
|
|
1819
1838
|
)
|
|
1820
|
-
),
|
|
1839
|
+
), sn = C.div`
|
|
1821
1840
|
display: grid;
|
|
1822
1841
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1823
1842
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1824
1843
|
justify-content: center;
|
|
1825
1844
|
grid-auto-rows: max-content;
|
|
1826
1845
|
${Mt}
|
|
1827
|
-
`, Ke =
|
|
1846
|
+
`, Ke = D(
|
|
1828
1847
|
({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
|
|
1829
1848
|
const s = B(), [c, u] = w();
|
|
1830
1849
|
v(() => {
|
|
1831
|
-
const d =
|
|
1850
|
+
const d = Tt(s, n), h = {
|
|
1832
1851
|
...d,
|
|
1833
1852
|
...e,
|
|
1834
1853
|
transform: {
|
|
1835
1854
|
...d.transform,
|
|
1836
1855
|
...e == null ? void 0 : e.transform
|
|
1837
1856
|
}
|
|
1838
|
-
}, f =
|
|
1857
|
+
}, f = Rt(n, h);
|
|
1839
1858
|
u(f);
|
|
1840
1859
|
}, [n, e]);
|
|
1841
1860
|
const a = L(null), l = s.get("$widget");
|
|
@@ -1845,13 +1864,13 @@ const _t = 300, Vo = ({
|
|
|
1845
1864
|
return;
|
|
1846
1865
|
new MutationObserver((f) => {
|
|
1847
1866
|
f.forEach((g) => {
|
|
1848
|
-
var $, R,
|
|
1867
|
+
var $, R, N;
|
|
1849
1868
|
let m = g.target;
|
|
1850
1869
|
if (m.tagName === "DIV" && m.matches("[data-notification]") && m.getAttribute("data-expandable")) {
|
|
1851
1870
|
const S = m.firstChild;
|
|
1852
1871
|
if (S && S.nodeType === Node.TEXT_NODE) {
|
|
1853
|
-
const
|
|
1854
|
-
|
|
1872
|
+
const T = document.createElement("p");
|
|
1873
|
+
T.appendChild(S), m.appendChild(T);
|
|
1855
1874
|
return;
|
|
1856
1875
|
} else
|
|
1857
1876
|
S && S.nodeType === Node.ELEMENT_NODE && (m = S);
|
|
@@ -1859,7 +1878,7 @@ const _t = 300, Vo = ({
|
|
|
1859
1878
|
return;
|
|
1860
1879
|
if (!(m != null && m.closest(".humany-notification-row")))
|
|
1861
1880
|
return;
|
|
1862
|
-
const p = (R = m.closest(".humany-notification-row")) == null ? void 0 : R.getAttribute("data-node-id"), y = (
|
|
1881
|
+
const p = (R = m.closest(".humany-notification-row")) == null ? void 0 : R.getAttribute("data-node-id"), y = (N = m.closest("[data-notification]")) == null ? void 0 : N.getAttribute("data-notification");
|
|
1863
1882
|
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(y), l.events.dispatch("notification:expandable", {
|
|
1864
1883
|
expandable: !0,
|
|
1865
1884
|
notificationRowId: p
|
|
@@ -1882,7 +1901,7 @@ const _t = 300, Vo = ({
|
|
|
1882
1901
|
}
|
|
1883
1902
|
);
|
|
1884
1903
|
}
|
|
1885
|
-
),
|
|
1904
|
+
), an = ({
|
|
1886
1905
|
faIcon: e,
|
|
1887
1906
|
title: t,
|
|
1888
1907
|
className: n = "",
|
|
@@ -1896,7 +1915,7 @@ const _t = 300, Vo = ({
|
|
|
1896
1915
|
role: o,
|
|
1897
1916
|
...z(r)
|
|
1898
1917
|
}
|
|
1899
|
-
),
|
|
1918
|
+
), Oo = D(
|
|
1900
1919
|
({
|
|
1901
1920
|
className: e = "",
|
|
1902
1921
|
autoFocus: t = !1,
|
|
@@ -1948,7 +1967,7 @@ const _t = 300, Vo = ({
|
|
|
1948
1967
|
}
|
|
1949
1968
|
);
|
|
1950
1969
|
}
|
|
1951
|
-
),
|
|
1970
|
+
), cn = D(
|
|
1952
1971
|
({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) => {
|
|
1953
1972
|
const c = t.length === 1 && t[0].expanded;
|
|
1954
1973
|
return /* @__PURE__ */ i(
|
|
@@ -1965,7 +1984,7 @@ const _t = 300, Vo = ({
|
|
|
1965
1984
|
}
|
|
1966
1985
|
);
|
|
1967
1986
|
}
|
|
1968
|
-
),
|
|
1987
|
+
), ln = D(
|
|
1969
1988
|
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, u) => {
|
|
1970
1989
|
var l;
|
|
1971
1990
|
const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
|
|
@@ -1992,7 +2011,7 @@ const _t = 300, Vo = ({
|
|
|
1992
2011
|
}
|
|
1993
2012
|
);
|
|
1994
2013
|
}
|
|
1995
|
-
),
|
|
2014
|
+
), dn = D(
|
|
1996
2015
|
({
|
|
1997
2016
|
header: e,
|
|
1998
2017
|
customHeader: t,
|
|
@@ -2014,9 +2033,9 @@ const _t = 300, Vo = ({
|
|
|
2014
2033
|
...z(h),
|
|
2015
2034
|
ref: f,
|
|
2016
2035
|
children: [
|
|
2017
|
-
t || (e || n || o ? /* @__PURE__ */ i(
|
|
2036
|
+
t || (e || n || o ? /* @__PURE__ */ i(ln, { symbol: c, header: e, text: n, html: o }) : null),
|
|
2018
2037
|
u.length ? /* @__PURE__ */ i(
|
|
2019
|
-
|
|
2038
|
+
cn,
|
|
2020
2039
|
{
|
|
2021
2040
|
items: u,
|
|
2022
2041
|
renderItem: a,
|
|
@@ -2028,7 +2047,7 @@ const _t = 300, Vo = ({
|
|
|
2028
2047
|
]
|
|
2029
2048
|
}
|
|
2030
2049
|
)
|
|
2031
|
-
),
|
|
2050
|
+
), Ao = ({
|
|
2032
2051
|
className: e = "",
|
|
2033
2052
|
tree: t,
|
|
2034
2053
|
renderItem: n,
|
|
@@ -2039,7 +2058,7 @@ const _t = 300, Vo = ({
|
|
|
2039
2058
|
liProps: u
|
|
2040
2059
|
}) => {
|
|
2041
2060
|
const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected), d = (h, f) => /* @__PURE__ */ i(
|
|
2042
|
-
|
|
2061
|
+
dn,
|
|
2043
2062
|
{
|
|
2044
2063
|
className: M(`humany-item-tree-level-${f}`),
|
|
2045
2064
|
items: h,
|
|
@@ -2063,7 +2082,7 @@ const _t = 300, Vo = ({
|
|
|
2063
2082
|
o && o(!a(t || [])),
|
|
2064
2083
|
t && d(t, 1)
|
|
2065
2084
|
] });
|
|
2066
|
-
},
|
|
2085
|
+
}, un = D(
|
|
2067
2086
|
({
|
|
2068
2087
|
className: e,
|
|
2069
2088
|
onClick: t = () => {
|
|
@@ -2120,7 +2139,7 @@ const _t = 300, Vo = ({
|
|
|
2120
2139
|
} catch {
|
|
2121
2140
|
return /* @__PURE__ */ i(ue, { ...h, ref: h.innerRef, children: s });
|
|
2122
2141
|
}
|
|
2123
|
-
d && a.settings.mode && a.settings.mode ===
|
|
2142
|
+
d && a.settings.mode && a.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
|
|
2124
2143
|
} else if (o && a.history)
|
|
2125
2144
|
d = a.history.createHref({
|
|
2126
2145
|
hash: "",
|
|
@@ -2132,13 +2151,13 @@ const _t = 300, Vo = ({
|
|
|
2132
2151
|
return process.env.NODE_ENV !== "production" && de.warn(
|
|
2133
2152
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2134
2153
|
), null;
|
|
2135
|
-
if (a.settings && a.settings.mode ===
|
|
2154
|
+
if (a.settings && a.settings.mode === Te.scopedHash) {
|
|
2136
2155
|
const f = l.get("$widget").name;
|
|
2137
2156
|
d = bt(d, f);
|
|
2138
2157
|
}
|
|
2139
|
-
return h.as ? /* @__PURE__ */ i(
|
|
2158
|
+
return h.as ? /* @__PURE__ */ i(hn, { ...h, as: h.as, children: s }) : /* @__PURE__ */ i(ue, { ...h, to: d, children: s });
|
|
2140
2159
|
}
|
|
2141
|
-
),
|
|
2160
|
+
), hn = C.span``, xe = D(
|
|
2142
2161
|
({
|
|
2143
2162
|
className: e,
|
|
2144
2163
|
disabled: t = !1,
|
|
@@ -2156,7 +2175,7 @@ const _t = 300, Vo = ({
|
|
|
2156
2175
|
params: h,
|
|
2157
2176
|
...f
|
|
2158
2177
|
}, g) => {
|
|
2159
|
-
var
|
|
2178
|
+
var N, S;
|
|
2160
2179
|
const m = {
|
|
2161
2180
|
title: s,
|
|
2162
2181
|
role: d === "index" || d === "contact-method" || t ? "button" : void 0,
|
|
@@ -2168,24 +2187,24 @@ const _t = 300, Vo = ({
|
|
|
2168
2187
|
!!t,
|
|
2169
2188
|
"humany-disabled"
|
|
2170
2189
|
]),
|
|
2171
|
-
onClick: (
|
|
2172
|
-
if (
|
|
2173
|
-
|
|
2190
|
+
onClick: (T) => {
|
|
2191
|
+
if (T.persist(), t) {
|
|
2192
|
+
T.preventDefault();
|
|
2174
2193
|
return;
|
|
2175
2194
|
}
|
|
2176
|
-
o(
|
|
2195
|
+
o(T);
|
|
2177
2196
|
},
|
|
2178
|
-
onKeyDown: (
|
|
2179
|
-
if (
|
|
2180
|
-
|
|
2197
|
+
onKeyDown: (T) => {
|
|
2198
|
+
if (T.persist(), t) {
|
|
2199
|
+
T.key !== "Tab" && T.preventDefault();
|
|
2181
2200
|
return;
|
|
2182
2201
|
}
|
|
2183
|
-
r(
|
|
2202
|
+
r(T);
|
|
2184
2203
|
}
|
|
2185
2204
|
};
|
|
2186
2205
|
f["data-client-name"] === "custom.link" && (m.role = "link");
|
|
2187
|
-
const y = B().get("$settings"), $ = t && ((S = (
|
|
2188
|
-
return $ ? /* @__PURE__ */ b(
|
|
2206
|
+
const y = B().get("$settings"), $ = t && ((S = (N = y == null ? void 0 : y.data) == null ? void 0 : N.accessibility) == null ? void 0 : S.disableInactiveLink), R = f.description || "<p></p>";
|
|
2207
|
+
return $ ? /* @__PURE__ */ b(fn, { className: "disabled-link", children: [
|
|
2189
2208
|
/* @__PURE__ */ i("div", { className: "icon-placeholder" }),
|
|
2190
2209
|
/* @__PURE__ */ b("div", { className: "humany-contact-link-rich-content", children: [
|
|
2191
2210
|
/* @__PURE__ */ i("span", { children: m.title }),
|
|
@@ -2198,7 +2217,7 @@ const _t = 300, Vo = ({
|
|
|
2198
2217
|
)
|
|
2199
2218
|
] })
|
|
2200
2219
|
] }) : d ? /* @__PURE__ */ i(
|
|
2201
|
-
|
|
2220
|
+
mn,
|
|
2202
2221
|
{
|
|
2203
2222
|
name: d,
|
|
2204
2223
|
params: h,
|
|
@@ -2208,7 +2227,7 @@ const _t = 300, Vo = ({
|
|
|
2208
2227
|
children: a
|
|
2209
2228
|
}
|
|
2210
2229
|
) : /* @__PURE__ */ i(
|
|
2211
|
-
|
|
2230
|
+
gn,
|
|
2212
2231
|
{
|
|
2213
2232
|
href: u,
|
|
2214
2233
|
target: l,
|
|
@@ -2219,7 +2238,7 @@ const _t = 300, Vo = ({
|
|
|
2219
2238
|
}
|
|
2220
2239
|
);
|
|
2221
2240
|
}
|
|
2222
|
-
),
|
|
2241
|
+
), fn = C.div`
|
|
2223
2242
|
display: flex;
|
|
2224
2243
|
opacity: 0.7;
|
|
2225
2244
|
.inner-span {
|
|
@@ -2239,12 +2258,12 @@ const _t = 300, Vo = ({
|
|
|
2239
2258
|
vertical-align: bottom;
|
|
2240
2259
|
color: #333333;
|
|
2241
2260
|
}
|
|
2242
|
-
`,
|
|
2261
|
+
`, mn = C(un)`
|
|
2243
2262
|
${(e) => e.disabled ? `
|
|
2244
2263
|
pointer-events: none;
|
|
2245
2264
|
opacity: .7;
|
|
2246
2265
|
` : "cursor: pointer;"}
|
|
2247
|
-
`,
|
|
2266
|
+
`, gn = C.a`
|
|
2248
2267
|
${(e) => e.disabled ? `
|
|
2249
2268
|
pointer-events: none;
|
|
2250
2269
|
opacity: .7;
|
|
@@ -2272,7 +2291,7 @@ const _t = 300, Vo = ({
|
|
|
2272
2291
|
unmountOnExit: !0,
|
|
2273
2292
|
timeout: t,
|
|
2274
2293
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
2275
|
-
|
|
2294
|
+
pn,
|
|
2276
2295
|
{
|
|
2277
2296
|
className: "humany-overlay",
|
|
2278
2297
|
duration: t,
|
|
@@ -2284,7 +2303,7 @@ const _t = 300, Vo = ({
|
|
|
2284
2303
|
) })
|
|
2285
2304
|
}
|
|
2286
2305
|
);
|
|
2287
|
-
},
|
|
2306
|
+
}, pn = C.div`
|
|
2288
2307
|
background: rgba(0, 0, 0, 0.6);
|
|
2289
2308
|
min-width: 100%;
|
|
2290
2309
|
min-height: 100%;
|
|
@@ -2314,11 +2333,11 @@ const _t = 300, Vo = ({
|
|
|
2314
2333
|
&.humany-overlay-transition-exit-done {
|
|
2315
2334
|
opacity: 0;
|
|
2316
2335
|
}
|
|
2317
|
-
`,
|
|
2336
|
+
`, Cn = Be`
|
|
2318
2337
|
100% {
|
|
2319
2338
|
transform: rotate(360deg);
|
|
2320
2339
|
}
|
|
2321
|
-
`,
|
|
2340
|
+
`, yn = Be`
|
|
2322
2341
|
0% {
|
|
2323
2342
|
stroke-dasharray: 1, 200;
|
|
2324
2343
|
stroke-dashoffset: 0;
|
|
@@ -2331,8 +2350,8 @@ const _t = 300, Vo = ({
|
|
|
2331
2350
|
stroke-dasharray: 89, 200;
|
|
2332
2351
|
stroke-dashoffset: -124px;
|
|
2333
2352
|
}
|
|
2334
|
-
`,
|
|
2335
|
-
animation: ${
|
|
2353
|
+
`, bn = C.svg`
|
|
2354
|
+
animation: ${Cn} 2s linear infinite;
|
|
2336
2355
|
height: 100%;
|
|
2337
2356
|
transform-origin: center center;
|
|
2338
2357
|
width: 100%;
|
|
@@ -2343,7 +2362,7 @@ const _t = 300, Vo = ({
|
|
|
2343
2362
|
right: 0;
|
|
2344
2363
|
margin: auto;
|
|
2345
2364
|
transition: 200ms ease-out opacity;
|
|
2346
|
-
`,
|
|
2365
|
+
`, vn = C.div`
|
|
2347
2366
|
position: absolute;
|
|
2348
2367
|
top: 0;
|
|
2349
2368
|
bottom: 0;
|
|
@@ -2361,7 +2380,7 @@ const _t = 300, Vo = ({
|
|
|
2361
2380
|
svg {
|
|
2362
2381
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2363
2382
|
}
|
|
2364
|
-
`,
|
|
2383
|
+
`, xn = C.div`
|
|
2365
2384
|
position: relative;
|
|
2366
2385
|
margin: 0 auto;
|
|
2367
2386
|
width: 100px;
|
|
@@ -2370,23 +2389,23 @@ const _t = 300, Vo = ({
|
|
|
2370
2389
|
display: block;
|
|
2371
2390
|
padding-top: 100%;
|
|
2372
2391
|
}
|
|
2373
|
-
`,
|
|
2392
|
+
`, wn = C.circle`
|
|
2374
2393
|
stroke-dasharray: 1, 200;
|
|
2375
2394
|
stroke-dashoffset: 0;
|
|
2376
|
-
animation: ${
|
|
2395
|
+
animation: ${yn} 1.5s ease-in-out infinite;
|
|
2377
2396
|
stroke-linecap: round;
|
|
2378
2397
|
stroke: ${(e) => {
|
|
2379
2398
|
var t;
|
|
2380
2399
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2381
2400
|
}};
|
|
2382
2401
|
stroke-width: 2px;
|
|
2383
|
-
`,
|
|
2384
|
-
|
|
2402
|
+
`, kn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
|
|
2403
|
+
vn,
|
|
2385
2404
|
{
|
|
2386
2405
|
className: M("humany-loader", e),
|
|
2387
2406
|
"data-loading": t,
|
|
2388
|
-
children: /* @__PURE__ */ i(
|
|
2389
|
-
|
|
2407
|
+
children: /* @__PURE__ */ i(xn, { className: "humany-spinner", children: /* @__PURE__ */ i(bn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
|
|
2408
|
+
wn,
|
|
2390
2409
|
{
|
|
2391
2410
|
cx: "50",
|
|
2392
2411
|
cy: "50",
|
|
@@ -2397,7 +2416,7 @@ const _t = 300, Vo = ({
|
|
|
2397
2416
|
}
|
|
2398
2417
|
) }) })
|
|
2399
2418
|
}
|
|
2400
|
-
),
|
|
2419
|
+
), $n = ({
|
|
2401
2420
|
zoomState: e,
|
|
2402
2421
|
image: t,
|
|
2403
2422
|
changeZoom: n,
|
|
@@ -2426,9 +2445,9 @@ const _t = 300, Vo = ({
|
|
|
2426
2445
|
return v(() => (c(!1), function() {
|
|
2427
2446
|
a(!1);
|
|
2428
2447
|
}), [t.src]), /* @__PURE__ */ b(U, { children: [
|
|
2429
|
-
/* @__PURE__ */ i(
|
|
2448
|
+
/* @__PURE__ */ i(Ln, { loading: !s }),
|
|
2430
2449
|
/* @__PURE__ */ i(
|
|
2431
|
-
|
|
2450
|
+
Mn,
|
|
2432
2451
|
{
|
|
2433
2452
|
onLoad: () => {
|
|
2434
2453
|
c(!0);
|
|
@@ -2443,13 +2462,13 @@ const _t = 300, Vo = ({
|
|
|
2443
2462
|
loaded: s
|
|
2444
2463
|
}
|
|
2445
2464
|
),
|
|
2446
|
-
/* @__PURE__ */ i(
|
|
2465
|
+
/* @__PURE__ */ i(Sn, {})
|
|
2447
2466
|
] });
|
|
2448
|
-
},
|
|
2467
|
+
}, Ln = C(kn)`
|
|
2449
2468
|
svg circle {
|
|
2450
2469
|
stroke: #ffffff;
|
|
2451
2470
|
}
|
|
2452
|
-
`,
|
|
2471
|
+
`, Mn = C.img`
|
|
2453
2472
|
transform: none;
|
|
2454
2473
|
|
|
2455
2474
|
${(e) => e.imageSize && k`
|
|
@@ -2460,20 +2479,20 @@ const _t = 300, Vo = ({
|
|
|
2460
2479
|
vertical-align: middle;
|
|
2461
2480
|
position: relative;
|
|
2462
2481
|
${(e) => !e.loaded && "display:none;"}
|
|
2463
|
-
`,
|
|
2482
|
+
`, Sn = C.div`
|
|
2464
2483
|
height: 100%;
|
|
2465
2484
|
display: inline-block;
|
|
2466
2485
|
vertical-align: middle;
|
|
2467
|
-
`,
|
|
2486
|
+
`, En = () => {
|
|
2468
2487
|
const e = L(), [t, n] = w(!0), o = E(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2469
2488
|
n(!1);
|
|
2470
2489
|
}, 3e3), () => {
|
|
2471
2490
|
e.current && clearTimeout(e.current);
|
|
2472
2491
|
}), [t, e]);
|
|
2473
2492
|
return [t, o];
|
|
2474
|
-
},
|
|
2493
|
+
}, Rn = ({ attrs: e, htmlBody: t }) => {
|
|
2475
2494
|
var Se;
|
|
2476
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [u, a] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, d] = w(!1), [h, f] =
|
|
2495
|
+
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [u, a] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, d] = w(!1), [h, f] = En(), [g, m] = w(null), [p, y] = w(null), $ = L(null), R = L(null), N = L(null), S = L(null), T = L(null), [Ue, qe] = w(null);
|
|
2477
2496
|
v(() => {
|
|
2478
2497
|
n && m(null);
|
|
2479
2498
|
}, [n]), v(() => {
|
|
@@ -2482,7 +2501,7 @@ const _t = 300, Vo = ({
|
|
|
2482
2501
|
var I, ee;
|
|
2483
2502
|
if (g === null || R.current === null)
|
|
2484
2503
|
return;
|
|
2485
|
-
const x = R.current.firstElementChild, H = (I =
|
|
2504
|
+
const x = R.current.firstElementChild, H = (I = N.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = N.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2486
2505
|
if (p === "Right")
|
|
2487
2506
|
J && V ? V.focus() : G && H && H.focus();
|
|
2488
2507
|
else if (p === "Left")
|
|
@@ -2492,7 +2511,7 @@ const _t = 300, Vo = ({
|
|
|
2492
2511
|
return;
|
|
2493
2512
|
x.focus();
|
|
2494
2513
|
}
|
|
2495
|
-
}, [g, R,
|
|
2514
|
+
}, [g, R, N, p]), v(() => {
|
|
2496
2515
|
if (o) {
|
|
2497
2516
|
if (G)
|
|
2498
2517
|
return Le();
|
|
@@ -2500,7 +2519,7 @@ const _t = 300, Vo = ({
|
|
|
2500
2519
|
return Me();
|
|
2501
2520
|
}, [o, r]), v(() => {
|
|
2502
2521
|
var H, V;
|
|
2503
|
-
const x = ((V = (H =
|
|
2522
|
+
const x = ((V = (H = T.current) == null ? void 0 : H.style) == null ? void 0 : V.float) || "";
|
|
2504
2523
|
(x === "left" || x === "right") && qe(x);
|
|
2505
2524
|
}, []);
|
|
2506
2525
|
const A = re(() => {
|
|
@@ -2576,15 +2595,15 @@ const _t = 300, Vo = ({
|
|
|
2576
2595
|
}, G = g !== null && g > 0 && A.length > 1, J = g !== null && A.length - 1 > g;
|
|
2577
2596
|
return /* @__PURE__ */ b(U, { children: [
|
|
2578
2597
|
/* @__PURE__ */ i(Ye, { visible: g !== null, onClick: Qe, children: /* @__PURE__ */ b(
|
|
2579
|
-
|
|
2598
|
+
Wn,
|
|
2580
2599
|
{
|
|
2581
2600
|
onMouseDown: () => f(),
|
|
2582
2601
|
onMouseMove: () => f(),
|
|
2583
2602
|
onTouchStart: () => f(),
|
|
2584
2603
|
onKeyDown: () => f(),
|
|
2585
2604
|
children: [
|
|
2586
|
-
/* @__PURE__ */ i(
|
|
2587
|
-
|
|
2605
|
+
/* @__PURE__ */ i(Zn, { show: h.toString(), children: /* @__PURE__ */ i(
|
|
2606
|
+
Dn,
|
|
2588
2607
|
{
|
|
2589
2608
|
ref: R,
|
|
2590
2609
|
buttons: [
|
|
@@ -2604,7 +2623,7 @@ const _t = 300, Vo = ({
|
|
|
2604
2623
|
}
|
|
2605
2624
|
) }),
|
|
2606
2625
|
/* @__PURE__ */ i(
|
|
2607
|
-
|
|
2626
|
+
On,
|
|
2608
2627
|
{
|
|
2609
2628
|
scrolling: l.toString(),
|
|
2610
2629
|
isDraggable: nt.toString(),
|
|
@@ -2613,7 +2632,7 @@ const _t = 300, Vo = ({
|
|
|
2613
2632
|
onMouseDown: Je,
|
|
2614
2633
|
onMouseUp: tt,
|
|
2615
2634
|
children: g !== null && /* @__PURE__ */ i(
|
|
2616
|
-
|
|
2635
|
+
$n,
|
|
2617
2636
|
{
|
|
2618
2637
|
changeZoom: (x) => {
|
|
2619
2638
|
c(x);
|
|
@@ -2630,9 +2649,9 @@ const _t = 300, Vo = ({
|
|
|
2630
2649
|
}
|
|
2631
2650
|
),
|
|
2632
2651
|
/* @__PURE__ */ i(
|
|
2633
|
-
|
|
2652
|
+
Bn,
|
|
2634
2653
|
{
|
|
2635
|
-
ref:
|
|
2654
|
+
ref: N,
|
|
2636
2655
|
show: h.toString(),
|
|
2637
2656
|
buttons: [
|
|
2638
2657
|
{
|
|
@@ -2656,9 +2675,9 @@ const _t = 300, Vo = ({
|
|
|
2656
2675
|
]
|
|
2657
2676
|
}
|
|
2658
2677
|
),
|
|
2659
|
-
/* @__PURE__ */ b(
|
|
2678
|
+
/* @__PURE__ */ b(In, { show: h.toString(), children: [
|
|
2660
2679
|
/* @__PURE__ */ i(
|
|
2661
|
-
|
|
2680
|
+
zn,
|
|
2662
2681
|
{
|
|
2663
2682
|
buttons: [
|
|
2664
2683
|
{
|
|
@@ -2676,7 +2695,7 @@ const _t = 300, Vo = ({
|
|
|
2676
2695
|
]
|
|
2677
2696
|
}
|
|
2678
2697
|
),
|
|
2679
|
-
/* @__PURE__ */ b(
|
|
2698
|
+
/* @__PURE__ */ b(Vn, { variant: "span", children: [
|
|
2680
2699
|
Math.trunc(s * 100),
|
|
2681
2700
|
"%"
|
|
2682
2701
|
] })
|
|
@@ -2685,7 +2704,7 @@ const _t = 300, Vo = ({
|
|
|
2685
2704
|
}
|
|
2686
2705
|
) }),
|
|
2687
2706
|
/* @__PURE__ */ i(
|
|
2688
|
-
|
|
2707
|
+
Hn,
|
|
2689
2708
|
{
|
|
2690
2709
|
ref: $,
|
|
2691
2710
|
onClick: ke,
|
|
@@ -2695,19 +2714,19 @@ const _t = 300, Vo = ({
|
|
|
2695
2714
|
alignment: Ue,
|
|
2696
2715
|
tabIndex: 0,
|
|
2697
2716
|
children: /* @__PURE__ */ i(
|
|
2698
|
-
|
|
2717
|
+
An,
|
|
2699
2718
|
{
|
|
2700
2719
|
...e,
|
|
2701
2720
|
alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "",
|
|
2702
|
-
ref:
|
|
2721
|
+
ref: T
|
|
2703
2722
|
}
|
|
2704
2723
|
)
|
|
2705
2724
|
}
|
|
2706
2725
|
)
|
|
2707
2726
|
] });
|
|
2708
|
-
}, we =
|
|
2727
|
+
}, we = D(
|
|
2709
2728
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ i(
|
|
2710
|
-
|
|
2729
|
+
Tn,
|
|
2711
2730
|
{
|
|
2712
2731
|
ref: o,
|
|
2713
2732
|
show: e,
|
|
@@ -2722,7 +2741,7 @@ const _t = 300, Vo = ({
|
|
|
2722
2741
|
icon: l,
|
|
2723
2742
|
className: d
|
|
2724
2743
|
}, h) => /* @__PURE__ */ i(
|
|
2725
|
-
|
|
2744
|
+
Nn,
|
|
2726
2745
|
{
|
|
2727
2746
|
circle: s.toString(),
|
|
2728
2747
|
onClick: a,
|
|
@@ -2745,20 +2764,20 @@ const _t = 300, Vo = ({
|
|
|
2745
2764
|
opacity: 0;
|
|
2746
2765
|
pointer-events: none;
|
|
2747
2766
|
`}
|
|
2748
|
-
`,
|
|
2767
|
+
`, Hn = C(xe)`
|
|
2749
2768
|
display: inline-block !important;
|
|
2750
2769
|
|
|
2751
2770
|
${(e) => (e.alignment === "right" || e.alignment === "left") && k`
|
|
2752
2771
|
float: ${e.alignment};
|
|
2753
2772
|
`}
|
|
2754
|
-
`,
|
|
2773
|
+
`, Tn = C(Xe)`
|
|
2755
2774
|
position: fixed;
|
|
2756
2775
|
display: flex;
|
|
2757
2776
|
gap: ${(e) => {
|
|
2758
2777
|
var t;
|
|
2759
2778
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2760
2779
|
}};
|
|
2761
|
-
`, me = "39px",
|
|
2780
|
+
`, me = "39px", Nn = C(se)`
|
|
2762
2781
|
width: ${me};
|
|
2763
2782
|
height: ${me};
|
|
2764
2783
|
display: flex;
|
|
@@ -2823,7 +2842,7 @@ const _t = 300, Vo = ({
|
|
|
2823
2842
|
opacity: 0;
|
|
2824
2843
|
pointer-events: none;
|
|
2825
2844
|
`}
|
|
2826
|
-
`,
|
|
2845
|
+
`, Dn = C(we)`
|
|
2827
2846
|
top: ${(e) => {
|
|
2828
2847
|
var t;
|
|
2829
2848
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2832,7 +2851,7 @@ const _t = 300, Vo = ({
|
|
|
2832
2851
|
var t;
|
|
2833
2852
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2834
2853
|
}};
|
|
2835
|
-
`,
|
|
2854
|
+
`, zn = C(we)`
|
|
2836
2855
|
bottom: ${(e) => {
|
|
2837
2856
|
var t;
|
|
2838
2857
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2840,7 +2859,7 @@ const _t = 300, Vo = ({
|
|
|
2840
2859
|
width: 100%;
|
|
2841
2860
|
align-items: center;
|
|
2842
2861
|
justify-content: center;
|
|
2843
|
-
`,
|
|
2862
|
+
`, Bn = C(we)`
|
|
2844
2863
|
display: block;
|
|
2845
2864
|
button {
|
|
2846
2865
|
position: fixed;
|
|
@@ -2858,7 +2877,7 @@ const _t = 300, Vo = ({
|
|
|
2858
2877
|
}};
|
|
2859
2878
|
}
|
|
2860
2879
|
}
|
|
2861
|
-
`,
|
|
2880
|
+
`, Vn = C(X)`
|
|
2862
2881
|
position: fixed;
|
|
2863
2882
|
bottom: ${(e) => {
|
|
2864
2883
|
var t;
|
|
@@ -2883,23 +2902,23 @@ const _t = 300, Vo = ({
|
|
|
2883
2902
|
height: 88px;
|
|
2884
2903
|
left: 0px;
|
|
2885
2904
|
z-index: 5;
|
|
2886
|
-
`,
|
|
2905
|
+
`, Wn = C.div`
|
|
2887
2906
|
width: 100%;
|
|
2888
|
-
`,
|
|
2907
|
+
`, Zn = C(_e)`
|
|
2889
2908
|
top: 0px;
|
|
2890
2909
|
background-image: linear-gradient(
|
|
2891
2910
|
to bottom,
|
|
2892
2911
|
rgb(34, 34, 34, 0.8),
|
|
2893
2912
|
rgba(34, 34, 34, 0)
|
|
2894
2913
|
);
|
|
2895
|
-
`,
|
|
2914
|
+
`, In = C(_e)`
|
|
2896
2915
|
bottom: 0px;
|
|
2897
2916
|
background-image: linear-gradient(
|
|
2898
2917
|
to top,
|
|
2899
2918
|
rgb(34, 34, 34, 0.8),
|
|
2900
2919
|
rgba(34, 34, 34, 0)
|
|
2901
2920
|
);
|
|
2902
|
-
`,
|
|
2921
|
+
`, On = C.div`
|
|
2903
2922
|
width: 100%;
|
|
2904
2923
|
height: 100vh;
|
|
2905
2924
|
overflow: auto;
|
|
@@ -2908,9 +2927,9 @@ const _t = 300, Vo = ({
|
|
|
2908
2927
|
white-space: nowrap;
|
|
2909
2928
|
justify-content: center;
|
|
2910
2929
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2911
|
-
`,
|
|
2930
|
+
`, An = C.img`
|
|
2912
2931
|
cursor: pointer;
|
|
2913
|
-
`,
|
|
2932
|
+
`, Fn = D(
|
|
2914
2933
|
({
|
|
2915
2934
|
className: e,
|
|
2916
2935
|
children: t,
|
|
@@ -2944,7 +2963,7 @@ const _t = 300, Vo = ({
|
|
|
2944
2963
|
}), [f.current]);
|
|
2945
2964
|
return /* @__PURE__ */ b(U, { children: [
|
|
2946
2965
|
/* @__PURE__ */ i(Ye, { visible: u, onClick: m, children: /* @__PURE__ */ b(
|
|
2947
|
-
|
|
2966
|
+
Pn,
|
|
2948
2967
|
{
|
|
2949
2968
|
className: M(
|
|
2950
2969
|
e,
|
|
@@ -2976,7 +2995,7 @@ const _t = 300, Vo = ({
|
|
|
2976
2995
|
})
|
|
2977
2996
|
] });
|
|
2978
2997
|
}
|
|
2979
|
-
),
|
|
2998
|
+
), Pn = C.div`
|
|
2980
2999
|
font-family: ${(e) => {
|
|
2981
3000
|
var t;
|
|
2982
3001
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2995,7 +3014,7 @@ const _t = 300, Vo = ({
|
|
|
2995
3014
|
${(e) => Pe(e)}
|
|
2996
3015
|
${(e) => e.css && e.css}
|
|
2997
3016
|
outline: none;
|
|
2998
|
-
`,
|
|
3017
|
+
`, Fo = ({
|
|
2999
3018
|
className: e,
|
|
3000
3019
|
trigger: t,
|
|
3001
3020
|
header: n = "",
|
|
@@ -3015,21 +3034,21 @@ const _t = 300, Vo = ({
|
|
|
3015
3034
|
s(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
3016
3035
|
}, [s]);
|
|
3017
3036
|
return /* @__PURE__ */ b(
|
|
3018
|
-
|
|
3037
|
+
jn,
|
|
3019
3038
|
{
|
|
3020
3039
|
className: e,
|
|
3021
3040
|
trigger: t,
|
|
3022
3041
|
ref: a,
|
|
3023
3042
|
onOverlayClick: l,
|
|
3024
3043
|
children: [
|
|
3025
|
-
n && /* @__PURE__ */ i(
|
|
3026
|
-
o && /* @__PURE__ */ i(
|
|
3027
|
-
u && /* @__PURE__ */ i(
|
|
3028
|
-
c && /* @__PURE__ */ i(
|
|
3044
|
+
n && /* @__PURE__ */ i(De, { children: n }),
|
|
3045
|
+
o && /* @__PURE__ */ i(De, { children: o }),
|
|
3046
|
+
u && /* @__PURE__ */ i(Kn, { onClick: d, children: u }),
|
|
3047
|
+
c && /* @__PURE__ */ i(Yn, { onClick: l, children: c })
|
|
3029
3048
|
]
|
|
3030
3049
|
}
|
|
3031
3050
|
);
|
|
3032
|
-
},
|
|
3051
|
+
}, jn = C(Fn)`
|
|
3033
3052
|
display: block;
|
|
3034
3053
|
|
|
3035
3054
|
span {
|
|
@@ -3047,7 +3066,7 @@ const _t = 300, Vo = ({
|
|
|
3047
3066
|
}};
|
|
3048
3067
|
}
|
|
3049
3068
|
}
|
|
3050
|
-
`,
|
|
3069
|
+
`, Kn = C(se)`
|
|
3051
3070
|
display: inline-block;
|
|
3052
3071
|
min-width: 50px;
|
|
3053
3072
|
${(e) => {
|
|
@@ -3077,7 +3096,7 @@ const _t = 300, Vo = ({
|
|
|
3077
3096
|
&:focus-visible {
|
|
3078
3097
|
${O}
|
|
3079
3098
|
}
|
|
3080
|
-
`,
|
|
3099
|
+
`, Yn = C(se)`
|
|
3081
3100
|
display: inline-block;
|
|
3082
3101
|
min-width: 50px;
|
|
3083
3102
|
${(e) => {
|
|
@@ -3098,25 +3117,25 @@ const _t = 300, Vo = ({
|
|
|
3098
3117
|
&:focus-visible {
|
|
3099
3118
|
${O};
|
|
3100
3119
|
}
|
|
3101
|
-
`,
|
|
3120
|
+
`, Po = ({
|
|
3102
3121
|
header: e = "",
|
|
3103
3122
|
link: t = "",
|
|
3104
3123
|
suggestionHeader: n = "",
|
|
3105
3124
|
suggestion: o = ""
|
|
3106
|
-
}) => /* @__PURE__ */ b(
|
|
3107
|
-
/* @__PURE__ */ i(
|
|
3108
|
-
/* @__PURE__ */ b(
|
|
3125
|
+
}) => /* @__PURE__ */ b(Xn, { children: [
|
|
3126
|
+
/* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(X, { variant: "h2", children: "404" }) }),
|
|
3127
|
+
/* @__PURE__ */ b(Un, { children: [
|
|
3109
3128
|
/* @__PURE__ */ i(X, { variant: "h3", children: e }),
|
|
3110
|
-
/* @__PURE__ */ i(
|
|
3129
|
+
/* @__PURE__ */ i(Qn, { routeName: "index", "aria-label": t, text: t })
|
|
3111
3130
|
] }),
|
|
3112
|
-
/* @__PURE__ */ b(
|
|
3131
|
+
/* @__PURE__ */ b(qn, { children: [
|
|
3113
3132
|
/* @__PURE__ */ i("span", { children: n }),
|
|
3114
3133
|
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
|
|
3115
3134
|
] })
|
|
3116
|
-
] }),
|
|
3135
|
+
] }), Xn = C.div`
|
|
3117
3136
|
display: flex;
|
|
3118
3137
|
flex-wrap: wrap;
|
|
3119
|
-
`,
|
|
3138
|
+
`, _n = C.div`
|
|
3120
3139
|
${(e) => ie(e)(
|
|
3121
3140
|
"h2",
|
|
3122
3141
|
k`
|
|
@@ -3126,7 +3145,7 @@ const _t = 300, Vo = ({
|
|
|
3126
3145
|
font-size: 7em;
|
|
3127
3146
|
`
|
|
3128
3147
|
)}
|
|
3129
|
-
`,
|
|
3148
|
+
`, Un = C.div`
|
|
3130
3149
|
margin-left: ${(e) => {
|
|
3131
3150
|
var t;
|
|
3132
3151
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3153,7 +3172,7 @@ const _t = 300, Vo = ({
|
|
|
3153
3172
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3154
3173
|
}};
|
|
3155
3174
|
}
|
|
3156
|
-
`,
|
|
3175
|
+
`, qn = C.div`
|
|
3157
3176
|
margin-top: ${(e) => {
|
|
3158
3177
|
var t;
|
|
3159
3178
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3164,7 +3183,7 @@ const _t = 300, Vo = ({
|
|
|
3164
3183
|
font-weight: bold;
|
|
3165
3184
|
}
|
|
3166
3185
|
`;
|
|
3167
|
-
class
|
|
3186
|
+
class jo extends ct {
|
|
3168
3187
|
constructor() {
|
|
3169
3188
|
super(...arguments);
|
|
3170
3189
|
te(this, "node");
|
|
@@ -3206,7 +3225,7 @@ class Po extends ct {
|
|
|
3206
3225
|
) : null;
|
|
3207
3226
|
}
|
|
3208
3227
|
}
|
|
3209
|
-
const
|
|
3228
|
+
const Qn = D(
|
|
3210
3229
|
({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(
|
|
3211
3230
|
xe,
|
|
3212
3231
|
{
|
|
@@ -3221,19 +3240,19 @@ const qn = N(
|
|
|
3221
3240
|
}
|
|
3222
3241
|
)
|
|
3223
3242
|
);
|
|
3224
|
-
var
|
|
3225
|
-
const
|
|
3243
|
+
var Gn = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(Gn || {});
|
|
3244
|
+
const Ko = ({
|
|
3226
3245
|
className: e = "",
|
|
3227
3246
|
format: t = "hh:mm",
|
|
3228
3247
|
timestamp: n
|
|
3229
|
-
}) => /* @__PURE__ */ i("span", { className: M(e, "humany-timestamp"), children:
|
|
3230
|
-
function
|
|
3248
|
+
}) => /* @__PURE__ */ i("span", { className: M(e, "humany-timestamp"), children: Jn(n, t) }), ze = (e) => `0${e}`.slice(-2);
|
|
3249
|
+
function Jn(e, t) {
|
|
3231
3250
|
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), c = n.getMonth() + 1, u = n.getDate(), a = `${s}-${ze(c)}-${ze(
|
|
3232
3251
|
u
|
|
3233
3252
|
)}`;
|
|
3234
3253
|
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
|
|
3235
3254
|
}
|
|
3236
|
-
const
|
|
3255
|
+
const Yo = ({
|
|
3237
3256
|
className: e,
|
|
3238
3257
|
children: t,
|
|
3239
3258
|
content: n,
|
|
@@ -3257,7 +3276,7 @@ const Ko = ({
|
|
|
3257
3276
|
[h, c]
|
|
3258
3277
|
);
|
|
3259
3278
|
return /* @__PURE__ */ b(
|
|
3260
|
-
|
|
3279
|
+
eo,
|
|
3261
3280
|
{
|
|
3262
3281
|
ref: a,
|
|
3263
3282
|
className: "humany-tooltip-trigger",
|
|
@@ -3268,7 +3287,7 @@ const Ko = ({
|
|
|
3268
3287
|
children: [
|
|
3269
3288
|
t,
|
|
3270
3289
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
3271
|
-
|
|
3290
|
+
to,
|
|
3272
3291
|
{
|
|
3273
3292
|
className: M(e, "humany-tooltip-container"),
|
|
3274
3293
|
x: l,
|
|
@@ -3280,10 +3299,10 @@ const Ko = ({
|
|
|
3280
3299
|
]
|
|
3281
3300
|
}
|
|
3282
3301
|
);
|
|
3283
|
-
},
|
|
3302
|
+
}, eo = C.div`
|
|
3284
3303
|
display: flex;
|
|
3285
3304
|
align-items: center;
|
|
3286
|
-
`,
|
|
3305
|
+
`, to = C.div`
|
|
3287
3306
|
color: #ffffff;
|
|
3288
3307
|
background: #161616;
|
|
3289
3308
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3319,7 +3338,7 @@ const Ko = ({
|
|
|
3319
3338
|
let t = "";
|
|
3320
3339
|
return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
|
|
3321
3340
|
}};
|
|
3322
|
-
`,
|
|
3341
|
+
`, Xo = (e) => {
|
|
3323
3342
|
const {
|
|
3324
3343
|
in: t,
|
|
3325
3344
|
mountOnEnter: n = !0,
|
|
@@ -3375,7 +3394,7 @@ const Ko = ({
|
|
|
3375
3394
|
children: (l) => s && s(l, a && he.compose(l, a))
|
|
3376
3395
|
}
|
|
3377
3396
|
);
|
|
3378
|
-
},
|
|
3397
|
+
}, no = D(
|
|
3379
3398
|
({
|
|
3380
3399
|
className: e,
|
|
3381
3400
|
children: t,
|
|
@@ -3434,7 +3453,7 @@ const Ko = ({
|
|
|
3434
3453
|
}
|
|
3435
3454
|
);
|
|
3436
3455
|
}
|
|
3437
|
-
),
|
|
3456
|
+
), _o = D(
|
|
3438
3457
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3439
3458
|
const r = B(), s = re(() => {
|
|
3440
3459
|
if (!r)
|
|
@@ -3443,7 +3462,7 @@ const Ko = ({
|
|
|
3443
3462
|
return !c || !c.childElementCount ? null : c.children[0];
|
|
3444
3463
|
}, [r]);
|
|
3445
3464
|
return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
|
|
3446
|
-
|
|
3465
|
+
oo,
|
|
3447
3466
|
{
|
|
3448
3467
|
className: M(
|
|
3449
3468
|
"humany-widget-overlay-outlet",
|
|
@@ -3454,7 +3473,7 @@ const Ko = ({
|
|
|
3454
3473
|
}
|
|
3455
3474
|
) }) : null;
|
|
3456
3475
|
}
|
|
3457
|
-
),
|
|
3476
|
+
), oo = C.div`
|
|
3458
3477
|
background-color: #ffffff;
|
|
3459
3478
|
position: absolute;
|
|
3460
3479
|
top: 0;
|
|
@@ -3464,101 +3483,101 @@ const Ko = ({
|
|
|
3464
3483
|
z-index: 10;
|
|
3465
3484
|
width: 100%;
|
|
3466
3485
|
height: 100%;
|
|
3467
|
-
`,
|
|
3486
|
+
`, Uo = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
3468
3487
|
t,
|
|
3469
3488
|
lt(() => n)
|
|
3470
3489
|
), Ct(e, t, o || (() => {
|
|
3471
3490
|
}), t, r)));
|
|
3472
3491
|
export {
|
|
3473
|
-
|
|
3492
|
+
Nt as AnchorLink,
|
|
3474
3493
|
se as Button,
|
|
3475
|
-
|
|
3476
|
-
|
|
3494
|
+
bo as Checkbox,
|
|
3495
|
+
Bt as ColumnContext,
|
|
3477
3496
|
Ze as ComponentNodeContext,
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3497
|
+
Vt as ComponentPropertyContext,
|
|
3498
|
+
Fo as Confirm,
|
|
3499
|
+
zt as ContainerContext,
|
|
3500
|
+
Zt as ConversationContext,
|
|
3501
|
+
Gn as DateFormats,
|
|
3502
|
+
Wo as Drawer,
|
|
3503
|
+
_t as DrawerAnimationType,
|
|
3504
|
+
Zo as Dropdown,
|
|
3505
|
+
on as Empty,
|
|
3506
|
+
Io as Grid,
|
|
3488
3507
|
Ke as Html,
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3508
|
+
an as Icon,
|
|
3509
|
+
Oo as Input,
|
|
3510
|
+
dn as ItemList,
|
|
3511
|
+
Ao as ItemTree,
|
|
3512
|
+
Rn as Lightbox,
|
|
3494
3513
|
xe as Link,
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3514
|
+
cn as List,
|
|
3515
|
+
Fn as Modal,
|
|
3516
|
+
Po as NotFound,
|
|
3498
3517
|
Ye as Overlay,
|
|
3499
|
-
|
|
3518
|
+
ln as Paragraph,
|
|
3500
3519
|
q as Portal,
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3520
|
+
un as RouteLink,
|
|
3521
|
+
Wt as RoutingContext,
|
|
3522
|
+
De as StyledText,
|
|
3504
3523
|
Q as SymbolBadge,
|
|
3505
|
-
|
|
3524
|
+
jo as TabStop,
|
|
3506
3525
|
be as Text,
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3526
|
+
Qn as TextLink,
|
|
3527
|
+
Ko as Timestamp,
|
|
3528
|
+
Yo as Tooltip,
|
|
3529
|
+
Xo as TransitionComponent,
|
|
3511
3530
|
X as Typography,
|
|
3512
|
-
|
|
3513
|
-
|
|
3531
|
+
no as WidgetLink,
|
|
3532
|
+
_o as WidgetOverlayOutlet,
|
|
3514
3533
|
O as borderTabStyle,
|
|
3515
|
-
|
|
3516
|
-
|
|
3534
|
+
Ne as browser,
|
|
3535
|
+
Ft as buttonCss,
|
|
3517
3536
|
Pe as contentBox,
|
|
3518
3537
|
z as convertToStringAttributes,
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3538
|
+
yo as createEmptyComponent,
|
|
3539
|
+
Uo as createReactComponent,
|
|
3540
|
+
Tt as defaultRenderInstructions,
|
|
3522
3541
|
Lt as embeddedLinkMapper,
|
|
3523
3542
|
We as filterCssProps,
|
|
3524
3543
|
Mt as filterCssPropsStyle,
|
|
3525
3544
|
St as genericHashLink,
|
|
3526
|
-
|
|
3545
|
+
Vo as genericHtml,
|
|
3527
3546
|
ie as headingElement,
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3547
|
+
Ht as imageLightboxRenderer,
|
|
3548
|
+
Do as invertedHoverButton,
|
|
3549
|
+
Bo as itemList,
|
|
3550
|
+
Pt as linkTabStyle,
|
|
3551
|
+
jt as list,
|
|
3552
|
+
zo as paddedBorderTabStyle,
|
|
3553
|
+
Rt as processHtmlString,
|
|
3535
3554
|
he as transitionComposer,
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3555
|
+
vo as useAction,
|
|
3556
|
+
xo as useChildren,
|
|
3557
|
+
wo as useColumns,
|
|
3558
|
+
ko as useComponent,
|
|
3540
3559
|
pe as useComponentDescriptor,
|
|
3541
3560
|
Ce as useComponentNode,
|
|
3542
3561
|
Y as useComponentPlatform,
|
|
3543
3562
|
B as useContainer,
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3563
|
+
It as useContext,
|
|
3564
|
+
$o as useConversation,
|
|
3565
|
+
Lo as useDispatch,
|
|
3547
3566
|
W as useEventListener,
|
|
3548
|
-
|
|
3567
|
+
Ot as useEvents,
|
|
3549
3568
|
Z as useIsMounted,
|
|
3550
|
-
|
|
3569
|
+
Mo as useIsTabbing,
|
|
3551
3570
|
j as useKeyPress,
|
|
3552
|
-
|
|
3571
|
+
So as useLayout,
|
|
3553
3572
|
Ie as usePrevious,
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3573
|
+
Eo as useProperties,
|
|
3574
|
+
Ro as useRenderState,
|
|
3575
|
+
Ho as useRouteData,
|
|
3557
3576
|
Oe as useRouter,
|
|
3558
3577
|
Ae as useScroll,
|
|
3559
|
-
|
|
3578
|
+
To as useSettings,
|
|
3560
3579
|
Fe as useToggle,
|
|
3561
|
-
|
|
3580
|
+
No as useTransitionEnd,
|
|
3562
3581
|
ye as useUniqueMenu,
|
|
3563
3582
|
ae as useWidgetEvent
|
|
3564
3583
|
};
|