@telia-ace/widget-ui 1.3.0-rc.9 → 1.3.1
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/components/paragraph.d.ts +2 -2
- package/index.js +61 -61
- package/index.mjs +426 -413
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var it = (e, t, n) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var te = (e, t, n) => (it(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { css as k, keyframes as
|
|
4
|
+
import { css as k, keyframes as Ve } from "@emotion/react";
|
|
5
5
|
import { kebabCase as st, appendClassNames as $, uuid as U, removeNullAndUndefinedValues as Re, Logger as ue } from "@telia-ace/widget-utilities";
|
|
6
6
|
import { jsx as i, jsxs as b, Fragment as _ } from "react/jsx-runtime";
|
|
7
|
-
import
|
|
7
|
+
import C from "@emotion/styled";
|
|
8
8
|
import oe, { forwardRef as H, createContext as K, useContext as P, useState as w, useEffect as v, useRef as L, useCallback as M, useImperativeHandle as ge, createElement as at, useMemo as re, Component as ct, lazy as lt } from "react";
|
|
9
|
-
import { CSSTransition as
|
|
9
|
+
import { CSSTransition as Ne, Transition as ut } from "react-transition-group";
|
|
10
10
|
import { Container as dt, 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";
|
|
@@ -52,16 +52,16 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
52
52
|
${r && r.length > 0 && r.map((d) => F[d] ? F[d].in : "")}
|
|
53
53
|
transition: ${s} ${n.duration}ms ${n.easing};
|
|
54
54
|
` : "";
|
|
55
|
-
const
|
|
55
|
+
const c = r && r.length > 0 && k`
|
|
56
56
|
${r.map((d) => F[d] ? F[d].out : "")}
|
|
57
57
|
`;
|
|
58
58
|
if (xt(e)) {
|
|
59
59
|
const d = o.transitionKeys.split(" ");
|
|
60
60
|
return d && d.length > 0 && e === "exiting" ? k`
|
|
61
|
-
${
|
|
62
|
-
${d.map((
|
|
61
|
+
${c};
|
|
62
|
+
${d.map((a) => F[a] ? F[a].out : "")}
|
|
63
63
|
transition: ${s} ${o.duration}ms ${o.easing};
|
|
64
|
-
` :
|
|
64
|
+
` : c;
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
composeViewTransition: (e, t, n) => {
|
|
@@ -99,9 +99,9 @@ const De = () => {
|
|
|
99
99
|
HTMLElement: o,
|
|
100
100
|
safari: r,
|
|
101
101
|
documentMode: s,
|
|
102
|
-
StyleMedia:
|
|
102
|
+
StyleMedia: c,
|
|
103
103
|
chrome: d,
|
|
104
|
-
CSS:
|
|
104
|
+
CSS: a
|
|
105
105
|
} = window, l = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
|
|
106
106
|
if (l)
|
|
107
107
|
return "opera";
|
|
@@ -113,14 +113,14 @@ const De = () => {
|
|
|
113
113
|
const h = !!s;
|
|
114
114
|
if (h)
|
|
115
115
|
return "internet-explorer";
|
|
116
|
-
if (!h &&
|
|
116
|
+
if (!h && c)
|
|
117
117
|
return "edge";
|
|
118
118
|
const f = !!d && (!!d.webstore || !!d.runtime);
|
|
119
119
|
if (f)
|
|
120
120
|
return "chrome";
|
|
121
121
|
if (f && navigator.userAgent.indexOf("Edg") !== -1)
|
|
122
122
|
return "edge-chromium";
|
|
123
|
-
if ((f || l) &&
|
|
123
|
+
if ((f || l) && a)
|
|
124
124
|
return "blink";
|
|
125
125
|
}, kt = ["string", "number"], D = (e) => Object.keys(e).reduce(
|
|
126
126
|
(t, n) => {
|
|
@@ -140,11 +140,11 @@ const De = () => {
|
|
|
140
140
|
} = e.get("$widget"), { href: s = "" } = n;
|
|
141
141
|
if ($t(s))
|
|
142
142
|
return /* @__PURE__ */ i(zt, { smooth: !0, to: s, children: t });
|
|
143
|
-
const
|
|
144
|
-
`^((http[s]?:)?//)?(${
|
|
143
|
+
const c = o.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), a = new RegExp(
|
|
144
|
+
`^((http[s]?:)?//)?(${c})/([^\\s]+)`
|
|
145
145
|
).exec(s);
|
|
146
|
-
if (
|
|
147
|
-
const l =
|
|
146
|
+
if (a && a.length >= 4) {
|
|
147
|
+
const l = a[4];
|
|
148
148
|
if (o.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
149
149
|
return /* @__PURE__ */ i(e1, { widgetName: l, children: t });
|
|
150
150
|
}
|
|
@@ -170,7 +170,7 @@ const De = () => {
|
|
|
170
170
|
return h !== null ? (u(h), o(), !0) : !1;
|
|
171
171
|
}, s = (u) => (u.preventDefault(), o(), e.onClick && e.onClick(u), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
|
|
172
172
|
e.scroll || ((h) => e.smooth ? h.scrollIntoView({ behavior: "smooth" }) : h.scrollIntoView())
|
|
173
|
-
), !1), { scroll:
|
|
173
|
+
), !1), { scroll: c, smooth: d, to: a, ...l } = e;
|
|
174
174
|
return t === "a" && (l.href = "javascript:;"), /* @__PURE__ */ i(t, { ...l, onClick: s, children: e.children });
|
|
175
175
|
}, ie = (e) => (t, n) => {
|
|
176
176
|
let o = t, r = "";
|
|
@@ -180,17 +180,17 @@ const De = () => {
|
|
|
180
180
|
const d = t.match(/h1|h2|h3|h4|h5|h6/);
|
|
181
181
|
if (d != null && d[0]) {
|
|
182
182
|
o = d[0];
|
|
183
|
-
const [
|
|
184
|
-
r =
|
|
183
|
+
const [a] = t.split(o);
|
|
184
|
+
r = a;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const c = ((d, a, l) => l[d] ? `${a}${l[d]}` : `${a}${d}`)(
|
|
188
188
|
o,
|
|
189
189
|
r,
|
|
190
190
|
e.theme.typographyVariantMapping || {}
|
|
191
191
|
);
|
|
192
192
|
return k`
|
|
193
|
-
${
|
|
193
|
+
${c} {
|
|
194
194
|
${n}
|
|
195
195
|
}
|
|
196
196
|
`;
|
|
@@ -214,7 +214,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
214
214
|
children: t
|
|
215
215
|
}
|
|
216
216
|
)
|
|
217
|
-
), Dt =
|
|
217
|
+
), Dt = C.button`
|
|
218
218
|
-webkit-appearance: button;
|
|
219
219
|
text-transform: none;
|
|
220
220
|
overflow: visible;
|
|
@@ -251,13 +251,13 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
251
251
|
type: "",
|
|
252
252
|
name: "",
|
|
253
253
|
branch: ""
|
|
254
|
-
}),
|
|
254
|
+
}), Vt = K(
|
|
255
255
|
{}
|
|
256
|
-
),
|
|
256
|
+
), Nt = K(null), Wt = K(null), pe = () => P(Ze), T = () => P(Bt), C1 = (e, t) => {
|
|
257
257
|
const n = pe().id, o = T();
|
|
258
258
|
return (r, s) => {
|
|
259
|
-
(t || o).getAsync("actionResolver").then((
|
|
260
|
-
|
|
259
|
+
(t || o).getAsync("actionResolver").then((c) => {
|
|
260
|
+
c.action(e || n, r, s);
|
|
261
261
|
});
|
|
262
262
|
};
|
|
263
263
|
}, Ce = (e) => {
|
|
@@ -284,10 +284,10 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
284
284
|
}, [r]), n;
|
|
285
285
|
}, y1 = () => {
|
|
286
286
|
const e = Ce(), t = Y(), [n, o] = w([]), r = W(), s = M(
|
|
287
|
-
(
|
|
288
|
-
if (t && r.current &&
|
|
289
|
-
const d = t.getBranch(
|
|
290
|
-
o(
|
|
287
|
+
(c) => {
|
|
288
|
+
if (t && r.current && c) {
|
|
289
|
+
const d = t.getBranch(c), a = c.getChildren(d).map((l) => mt(l));
|
|
290
|
+
o(a);
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
293
|
[r, t, o, e]
|
|
@@ -296,12 +296,12 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
296
296
|
e && s(e);
|
|
297
297
|
}, [e, t]), v(() => {
|
|
298
298
|
if (t) {
|
|
299
|
-
const [
|
|
300
|
-
return
|
|
299
|
+
const [c, d] = gt(t.events);
|
|
300
|
+
return c("components:set-layout", (a, l) => {
|
|
301
301
|
(e === l.node.parent || l.node.parent === t.nodes.root) && s(l.node.parent);
|
|
302
|
-
}),
|
|
302
|
+
}), c("components:node-appended", (a, l) => {
|
|
303
303
|
(e === l.node.parent || l.node.parent === t.nodes.root) && s(l.node.parent);
|
|
304
|
-
}),
|
|
304
|
+
}), c("components:node-removed", (a, { parentNode: l }) => {
|
|
305
305
|
(l === e || l === t.nodes.root) && s(l);
|
|
306
306
|
}), () => {
|
|
307
307
|
d();
|
|
@@ -309,37 +309,37 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
309
309
|
}
|
|
310
310
|
}, [e, t, s]), n;
|
|
311
311
|
}, b1 = () => P(Tt), v1 = (e, t) => {
|
|
312
|
-
const n = pe(), o = T(), [r, s] = w(void 0),
|
|
312
|
+
const n = pe(), o = T(), [r, s] = w(void 0), c = W(), d = e || n.type || "";
|
|
313
313
|
return v(() => {
|
|
314
314
|
if (d) {
|
|
315
|
-
let
|
|
315
|
+
let a;
|
|
316
316
|
return (t || o).getAsync("componentResolver").then((l) => {
|
|
317
|
-
if (
|
|
317
|
+
if (c.current) {
|
|
318
318
|
const u = l.getComponent(d);
|
|
319
319
|
s(u);
|
|
320
320
|
}
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
a = l.registerResolver(d, (u) => {
|
|
322
|
+
c.current && s(u);
|
|
323
323
|
});
|
|
324
324
|
}), () => {
|
|
325
|
-
|
|
325
|
+
a && a();
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
}, [
|
|
328
|
+
}, [c, d, t, o]), r;
|
|
329
329
|
}, Zt = (e) => {
|
|
330
330
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = W();
|
|
331
331
|
return v(() => {
|
|
332
332
|
t && s.current && r(t.attributes.context);
|
|
333
333
|
}, [s, t]), v(() => {
|
|
334
334
|
if (n) {
|
|
335
|
-
const
|
|
335
|
+
const c = n.events.subscribe(
|
|
336
336
|
"components:context-changed",
|
|
337
|
-
(d,
|
|
338
|
-
t ===
|
|
337
|
+
(d, a) => {
|
|
338
|
+
t === a.node && s.current && r(a.node.attributes.context);
|
|
339
339
|
}
|
|
340
340
|
);
|
|
341
341
|
return () => {
|
|
342
|
-
|
|
342
|
+
c();
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
}, [s, n, t]), o;
|
|
@@ -347,20 +347,20 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
347
347
|
const e = Y(), t = pe(), [n, o] = w([]), [r, s] = w();
|
|
348
348
|
return v(() => {
|
|
349
349
|
if (e && t) {
|
|
350
|
-
const
|
|
351
|
-
s(d), n !== null && (n.forEach((
|
|
352
|
-
d.dispatch(
|
|
350
|
+
const c = new pt(e).withId(t.id), d = e.actions(c, t.type || U());
|
|
351
|
+
s(d), n !== null && (n.forEach((a) => {
|
|
352
|
+
d.dispatch(a.key, a.data).then((l) => a.resolve(l)).catch((l) => a.reject(l));
|
|
353
353
|
}), o(null));
|
|
354
354
|
}
|
|
355
|
-
}, [e, t.id]), (
|
|
355
|
+
}, [e, t.id]), (c, d) => n !== null ? new Promise((a, l) => {
|
|
356
356
|
n.push({
|
|
357
|
-
key:
|
|
357
|
+
key: c,
|
|
358
358
|
data: d,
|
|
359
|
-
resolve:
|
|
359
|
+
resolve: a,
|
|
360
360
|
reject: l
|
|
361
361
|
});
|
|
362
|
-
}) : r.dispatch(
|
|
363
|
-
},
|
|
362
|
+
}) : r.dispatch(c, d);
|
|
363
|
+
}, N = (e, t, n = window, o = () => !0) => {
|
|
364
364
|
const r = L(() => {
|
|
365
365
|
});
|
|
366
366
|
v(() => {
|
|
@@ -368,9 +368,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
368
368
|
}, [t]), v(() => {
|
|
369
369
|
if (!(n && o()))
|
|
370
370
|
return;
|
|
371
|
-
const
|
|
372
|
-
return n.addEventListener(e,
|
|
373
|
-
n.removeEventListener(e,
|
|
371
|
+
const c = (d) => r.current(d);
|
|
372
|
+
return n.addEventListener(e, c), () => {
|
|
373
|
+
n.removeEventListener(e, c);
|
|
374
374
|
};
|
|
375
375
|
}, [e, n]);
|
|
376
376
|
}, It = (e) => {
|
|
@@ -390,32 +390,32 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
390
390
|
}, []), e;
|
|
391
391
|
}, j = (e, t) => {
|
|
392
392
|
const [n, o] = w(!1), r = M(
|
|
393
|
-
(
|
|
394
|
-
const { key: d } =
|
|
395
|
-
d === e && (o(!0), t && t(
|
|
393
|
+
(c) => {
|
|
394
|
+
const { key: d } = c;
|
|
395
|
+
d === e && (o(!0), t && t(c));
|
|
396
396
|
},
|
|
397
397
|
[o, t]
|
|
398
398
|
), s = M(
|
|
399
|
-
({ key:
|
|
400
|
-
|
|
399
|
+
({ key: c }) => {
|
|
400
|
+
c === e && o(!1);
|
|
401
401
|
},
|
|
402
402
|
[o]
|
|
403
403
|
);
|
|
404
|
-
return
|
|
404
|
+
return N("keydown", r, window), N("keyup", s, window), n;
|
|
405
405
|
}, $1 = (e) => {
|
|
406
406
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = W();
|
|
407
407
|
return v(() => {
|
|
408
408
|
t && s.current && r(t.attributes.layout);
|
|
409
409
|
}, [t, s]), v(() => {
|
|
410
410
|
if (n) {
|
|
411
|
-
const
|
|
411
|
+
const c = n.events.subscribe(
|
|
412
412
|
"components:layout-changed",
|
|
413
|
-
(d,
|
|
414
|
-
t ===
|
|
413
|
+
(d, a) => {
|
|
414
|
+
t === a.node && s.current && r(a.node.attributes.layout);
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
417
|
return () => {
|
|
418
|
-
|
|
418
|
+
c();
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
}, [n, s, t]), o;
|
|
@@ -424,15 +424,15 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
424
424
|
return v(() => {
|
|
425
425
|
t.current = e;
|
|
426
426
|
}), t.current;
|
|
427
|
-
}, L1 = () => P(
|
|
427
|
+
}, L1 = () => P(Vt), M1 = (e) => {
|
|
428
428
|
const [t, n] = w(), o = T(), r = W();
|
|
429
429
|
return v(() => {
|
|
430
430
|
let s;
|
|
431
|
-
const
|
|
432
|
-
if (!
|
|
431
|
+
const c = (e || o).get("$widget");
|
|
432
|
+
if (!c)
|
|
433
433
|
return;
|
|
434
|
-
const { name: d, invoke:
|
|
435
|
-
return
|
|
434
|
+
const { name: d, invoke: a } = c;
|
|
435
|
+
return a("renderState").then((l) => {
|
|
436
436
|
r.current && n(l);
|
|
437
437
|
}), (e || o).getAsync("actionResolver").then((l) => {
|
|
438
438
|
s = l.subscribe(d, (u, h) => {
|
|
@@ -451,16 +451,16 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
451
451
|
s && s();
|
|
452
452
|
};
|
|
453
453
|
}, [r]), t;
|
|
454
|
-
}, Oe = () => P(
|
|
454
|
+
}, Oe = () => P(Nt), S1 = (e) => {
|
|
455
455
|
const t = T(), n = Oe(), [o, r] = w({
|
|
456
456
|
name: "",
|
|
457
457
|
params: {}
|
|
458
458
|
}), s = W();
|
|
459
459
|
return v(() => {
|
|
460
|
-
const
|
|
461
|
-
if (!
|
|
460
|
+
const c = (e || t).get("$widget");
|
|
461
|
+
if (!c)
|
|
462
462
|
return;
|
|
463
|
-
const { events: d } =
|
|
463
|
+
const { events: d } = c;
|
|
464
464
|
return d.subscribe(
|
|
465
465
|
"router:change",
|
|
466
466
|
(l, { next: { routeData: u } }) => {
|
|
@@ -472,8 +472,8 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
472
472
|
);
|
|
473
473
|
}, [s, e, t]), v(() => {
|
|
474
474
|
if (n && n.history && s.current) {
|
|
475
|
-
const
|
|
476
|
-
Re(
|
|
475
|
+
const c = n.getRouteData(), { name: d, params: a } = c;
|
|
476
|
+
Re(a), r({ name: d, params: a });
|
|
477
477
|
}
|
|
478
478
|
}, [n, s]), o;
|
|
479
479
|
}, Ae = (e) => {
|
|
@@ -490,31 +490,31 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
490
490
|
n.current = l.touches[0].clientY;
|
|
491
491
|
},
|
|
492
492
|
[t]
|
|
493
|
-
),
|
|
493
|
+
), c = (l) => d(l) ? l === t.current ? l : null : l.parentElement ? c(l.parentElement) : null, d = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, a = M(
|
|
494
494
|
(l) => {
|
|
495
495
|
if (!l.cancelable)
|
|
496
496
|
return;
|
|
497
|
-
const u = l.touches[0].clientY, h =
|
|
497
|
+
const u = l.touches[0].clientY, h = c(l.target);
|
|
498
498
|
if (!h)
|
|
499
499
|
return;
|
|
500
|
-
const f = h.scrollTop, m = n.current - u < 0 ? "up" : "down",
|
|
501
|
-
(
|
|
500
|
+
const f = h.scrollTop, m = n.current - u < 0 ? "up" : "down", p = f <= 0 && m === "up", g = f >= h.scrollHeight - h.offsetHeight && m === "down";
|
|
501
|
+
(p || g) && l.preventDefault(), n.current = u;
|
|
502
502
|
},
|
|
503
503
|
[t, n]
|
|
504
504
|
);
|
|
505
|
-
return
|
|
505
|
+
return N(
|
|
506
506
|
"scroll",
|
|
507
507
|
r,
|
|
508
508
|
t.current,
|
|
509
509
|
() => t.current && e
|
|
510
|
-
),
|
|
510
|
+
), N(
|
|
511
511
|
"touchstart",
|
|
512
512
|
s,
|
|
513
513
|
t.current,
|
|
514
514
|
() => t.current && e
|
|
515
|
-
),
|
|
515
|
+
), N(
|
|
516
516
|
"touchmove",
|
|
517
|
-
|
|
517
|
+
a,
|
|
518
518
|
t.current,
|
|
519
519
|
() => t.current && e
|
|
520
520
|
), e ? [Ot, t] : ["", t];
|
|
@@ -559,34 +559,34 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
559
559
|
}, []);
|
|
560
560
|
return [t, o];
|
|
561
561
|
}, R1 = (e) => {
|
|
562
|
-
const t = T(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [
|
|
562
|
+
const t = T(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [c, d] = w(null), a = W();
|
|
563
563
|
v(() => {
|
|
564
|
-
if (n &&
|
|
564
|
+
if (n && a.current) {
|
|
565
565
|
const u = n.nodes.all.find((f) => f.name === "root-area"), h = n.nodes.all.find((f) => f.type === "view");
|
|
566
566
|
if (!(h != null && h.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
|
|
567
567
|
e();
|
|
568
568
|
else {
|
|
569
569
|
const f = (g = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${g}"]`), m = f(h == null ? void 0 : h.id);
|
|
570
570
|
m && s(m);
|
|
571
|
-
const
|
|
572
|
-
|
|
571
|
+
const p = f(u == null ? void 0 : u.id);
|
|
572
|
+
p && d(p);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
}, [n, t,
|
|
575
|
+
}, [n, t, a]);
|
|
576
576
|
const l = M(
|
|
577
577
|
(u) => {
|
|
578
|
-
|
|
578
|
+
a.current && (u.target === r || u.target === c) && e();
|
|
579
579
|
},
|
|
580
|
-
[e,
|
|
580
|
+
[e, a, r, c]
|
|
581
581
|
);
|
|
582
|
-
|
|
582
|
+
N(
|
|
583
583
|
"transitionend",
|
|
584
584
|
l,
|
|
585
585
|
r
|
|
586
|
-
),
|
|
586
|
+
), N(
|
|
587
587
|
"transitionend",
|
|
588
588
|
l,
|
|
589
|
-
|
|
589
|
+
c
|
|
590
590
|
);
|
|
591
591
|
}, ae = (e, t, n = [], o) => {
|
|
592
592
|
const r = It(o);
|
|
@@ -635,7 +635,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
635
635
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
636
636
|
`;
|
|
637
637
|
}, H1 = (e) => {
|
|
638
|
-
var
|
|
638
|
+
var c;
|
|
639
639
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
640
640
|
return k`
|
|
641
641
|
${At(e)}
|
|
@@ -651,7 +651,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
651
651
|
a {
|
|
652
652
|
transition: color 200ms ease-out;
|
|
653
653
|
color: ${o ? n : t};
|
|
654
|
-
font-size: ${(
|
|
654
|
+
font-size: ${(c = r.fonts) == null ? void 0 : c.normal};
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
${!s && k`
|
|
@@ -688,7 +688,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
688
688
|
${O(e)}
|
|
689
689
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
690
690
|
`;
|
|
691
|
-
}, ve =
|
|
691
|
+
}, ve = C(se)`
|
|
692
692
|
position: absolute;
|
|
693
693
|
top: ${(e) => {
|
|
694
694
|
var t;
|
|
@@ -716,7 +716,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
716
716
|
height: 15px;
|
|
717
717
|
box-sizing: content-box;
|
|
718
718
|
}
|
|
719
|
-
`, Be =
|
|
719
|
+
`, Be = C(be)`
|
|
720
720
|
font-size: ${(e) => {
|
|
721
721
|
var t;
|
|
722
722
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -786,7 +786,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
786
786
|
)}
|
|
787
787
|
`;
|
|
788
788
|
}, B1 = (e) => {
|
|
789
|
-
var t, n, o, r, s,
|
|
789
|
+
var t, n, o, r, s, c;
|
|
790
790
|
return k`
|
|
791
791
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
792
792
|
font-weight: 300;
|
|
@@ -833,7 +833,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
p:last-child {
|
|
836
|
-
margin: ${(
|
|
836
|
+
margin: ${(c = e.theme.sizes) == null ? void 0 : c.normal} 0 0;
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
p:only-child {
|
|
@@ -862,9 +862,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
862
862
|
},
|
|
863
863
|
elementStyle: r = {},
|
|
864
864
|
className: s,
|
|
865
|
-
...
|
|
865
|
+
...c
|
|
866
866
|
}) => {
|
|
867
|
-
const { type: d, content:
|
|
867
|
+
const { type: d, content: a } = o, l = {
|
|
868
868
|
"aria-label": e,
|
|
869
869
|
role: "presentation"
|
|
870
870
|
};
|
|
@@ -872,7 +872,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
872
872
|
case "Uri": {
|
|
873
873
|
const u = {
|
|
874
874
|
backgroundSize: t,
|
|
875
|
-
backgroundImage: `url('${
|
|
875
|
+
backgroundImage: `url('${a}')`,
|
|
876
876
|
backgroundRepeat: "no-repeat",
|
|
877
877
|
backgroundPosition: "center",
|
|
878
878
|
backgroundAttachment: "center"
|
|
@@ -888,7 +888,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
888
888
|
title: e,
|
|
889
889
|
style: { ...u, ...r },
|
|
890
890
|
...l,
|
|
891
|
-
...
|
|
891
|
+
...c
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
894
|
}
|
|
@@ -898,10 +898,10 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
898
898
|
width: `${n}`,
|
|
899
899
|
fill: "none",
|
|
900
900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
901
|
-
...
|
|
901
|
+
...c,
|
|
902
902
|
ref: null
|
|
903
903
|
}, h = { minWidth: `${n}` };
|
|
904
|
-
switch (
|
|
904
|
+
switch (a) {
|
|
905
905
|
case "search":
|
|
906
906
|
return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...u, children: [
|
|
907
907
|
/* @__PURE__ */ i(
|
|
@@ -1440,9 +1440,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
1440
1440
|
sn,
|
|
1441
1441
|
{
|
|
1442
1442
|
className: s,
|
|
1443
|
-
faIcon:
|
|
1443
|
+
faIcon: a,
|
|
1444
1444
|
title: e,
|
|
1445
|
-
...
|
|
1445
|
+
...c
|
|
1446
1446
|
}
|
|
1447
1447
|
);
|
|
1448
1448
|
default:
|
|
@@ -1453,12 +1453,12 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
1453
1453
|
className: $(s, "humany-letter-symbol"),
|
|
1454
1454
|
title: e,
|
|
1455
1455
|
...l,
|
|
1456
|
-
...
|
|
1456
|
+
...c,
|
|
1457
1457
|
children: e.substring(0, 2)
|
|
1458
1458
|
}
|
|
1459
1459
|
) : null;
|
|
1460
1460
|
}
|
|
1461
|
-
}, jt =
|
|
1461
|
+
}, jt = C.svg`
|
|
1462
1462
|
transform: rotate(180deg);
|
|
1463
1463
|
`, Kt = {
|
|
1464
1464
|
h1: "h1",
|
|
@@ -1478,9 +1478,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
|
|
|
1478
1478
|
const { typographyVariantMapping: r = {} } = Zt(), s = {
|
|
1479
1479
|
...Kt,
|
|
1480
1480
|
...r
|
|
1481
|
-
},
|
|
1482
|
-
return /* @__PURE__ */ i(Yt, { className: n, as:
|
|
1483
|
-
}, Yt =
|
|
1481
|
+
}, c = t || s[e] || "span";
|
|
1482
|
+
return /* @__PURE__ */ i(Yt, { className: n, as: c, children: o });
|
|
1483
|
+
}, Yt = C.span``;
|
|
1484
1484
|
var Xt = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Xt || {});
|
|
1485
1485
|
const Ut = 300, T1 = ({
|
|
1486
1486
|
className: e,
|
|
@@ -1489,54 +1489,54 @@ const Ut = 300, T1 = ({
|
|
|
1489
1489
|
onToggle: o,
|
|
1490
1490
|
trigger: r,
|
|
1491
1491
|
fullScreen: s = !1,
|
|
1492
|
-
closeButtonAriaLabel:
|
|
1492
|
+
closeButtonAriaLabel: c,
|
|
1493
1493
|
animation: d = {
|
|
1494
1494
|
type: "slide-in-bottom"
|
|
1495
1495
|
/* SlideInBottom */
|
|
1496
1496
|
}
|
|
1497
1497
|
}) => {
|
|
1498
|
-
const { duration:
|
|
1498
|
+
const { duration: a = Ut } = d, l = L(), u = L(), [h, f] = Ae(!0), [m, p] = Fe(), g = Ie(m), y = L(U());
|
|
1499
1499
|
v(() => {
|
|
1500
1500
|
o && o(m);
|
|
1501
1501
|
}, [m]);
|
|
1502
1502
|
const S = j("Escape");
|
|
1503
1503
|
v(() => {
|
|
1504
|
-
S &&
|
|
1505
|
-
}, [S]),
|
|
1504
|
+
S && p(!1);
|
|
1505
|
+
}, [S]), N(
|
|
1506
1506
|
"click",
|
|
1507
1507
|
(z) => {
|
|
1508
1508
|
const { target: Z } = z;
|
|
1509
|
-
!u.current || !f.current || !Z || u.current !== Z && f.current !== Z && !f.current.contains(Z) && !u.current.contains(Z) &&
|
|
1509
|
+
!u.current || !f.current || !Z || u.current !== Z && f.current !== Z && !f.current.contains(Z) && !u.current.contains(Z) && p(!1);
|
|
1510
1510
|
},
|
|
1511
1511
|
window
|
|
1512
1512
|
);
|
|
1513
|
-
const R = ye(
|
|
1514
|
-
|
|
1513
|
+
const R = ye(y.current, () => {
|
|
1514
|
+
p(!1);
|
|
1515
1515
|
});
|
|
1516
1516
|
ae("router:changed", () => {
|
|
1517
|
-
|
|
1517
|
+
p(!1);
|
|
1518
1518
|
}), v(() => {
|
|
1519
1519
|
m && l.current ? l.current.focus() : !m && u.current && g && u.current.focus();
|
|
1520
1520
|
}, [m, l.current, u.current]);
|
|
1521
|
-
const
|
|
1521
|
+
const V = en[d.type];
|
|
1522
1522
|
return /* @__PURE__ */ b(_, { children: [
|
|
1523
1523
|
/* @__PURE__ */ i(
|
|
1524
|
-
|
|
1524
|
+
Ne,
|
|
1525
1525
|
{
|
|
1526
1526
|
in: m,
|
|
1527
1527
|
className: "humany-drawer-transition",
|
|
1528
1528
|
classNames: "humany-drawer-transition",
|
|
1529
1529
|
unmountOnExit: !0,
|
|
1530
|
-
timeout:
|
|
1530
|
+
timeout: a,
|
|
1531
1531
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1532
|
-
|
|
1532
|
+
V,
|
|
1533
1533
|
{
|
|
1534
|
-
duration:
|
|
1534
|
+
duration: a,
|
|
1535
1535
|
fullScreen: s,
|
|
1536
1536
|
className: $(
|
|
1537
1537
|
e,
|
|
1538
1538
|
"humany-drawer",
|
|
1539
|
-
`humany-drawer-${
|
|
1539
|
+
`humany-drawer-${y.current}`
|
|
1540
1540
|
),
|
|
1541
1541
|
clientHeight: document.body.clientHeight,
|
|
1542
1542
|
css: h,
|
|
@@ -1545,10 +1545,10 @@ const Ut = 300, T1 = ({
|
|
|
1545
1545
|
/* @__PURE__ */ i(
|
|
1546
1546
|
ve,
|
|
1547
1547
|
{
|
|
1548
|
-
onClick: () =>
|
|
1548
|
+
onClick: () => p(!1),
|
|
1549
1549
|
tabIndex: 0,
|
|
1550
1550
|
ref: l,
|
|
1551
|
-
"aria-label":
|
|
1551
|
+
"aria-label": c,
|
|
1552
1552
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
1553
1553
|
}
|
|
1554
1554
|
),
|
|
@@ -1561,14 +1561,14 @@ const Ut = 300, T1 = ({
|
|
|
1561
1561
|
),
|
|
1562
1562
|
oe.cloneElement(r, {
|
|
1563
1563
|
onClick: (z) => {
|
|
1564
|
-
|
|
1564
|
+
p(), R();
|
|
1565
1565
|
},
|
|
1566
1566
|
ref: u,
|
|
1567
1567
|
"aria-label": r.props.title,
|
|
1568
1568
|
"aria-expanded": m
|
|
1569
1569
|
})
|
|
1570
1570
|
] });
|
|
1571
|
-
}, ce =
|
|
1571
|
+
}, ce = C.div`
|
|
1572
1572
|
font-family: ${(e) => {
|
|
1573
1573
|
var t;
|
|
1574
1574
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1585,7 +1585,7 @@ const Ut = 300, T1 = ({
|
|
|
1585
1585
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1586
1586
|
background: #ffffff;
|
|
1587
1587
|
${(e) => e.css && e.css}
|
|
1588
|
-
`, _t =
|
|
1588
|
+
`, _t = C(X)`
|
|
1589
1589
|
padding: ${(e) => {
|
|
1590
1590
|
var t;
|
|
1591
1591
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1610,7 +1610,7 @@ const Ut = 300, T1 = ({
|
|
|
1610
1610
|
line-height: 1.2em;
|
|
1611
1611
|
`, le = (e) => k`
|
|
1612
1612
|
transition: ${e.duration}ms;
|
|
1613
|
-
`, qt =
|
|
1613
|
+
`, qt = C(ce)`
|
|
1614
1614
|
max-height: 0;
|
|
1615
1615
|
${le}
|
|
1616
1616
|
|
|
@@ -1627,7 +1627,7 @@ const Ut = 300, T1 = ({
|
|
|
1627
1627
|
&.humany-drawer-transition-exit-done {
|
|
1628
1628
|
max-height: 0;
|
|
1629
1629
|
}
|
|
1630
|
-
`, Qt =
|
|
1630
|
+
`, Qt = C(ce)`
|
|
1631
1631
|
${le}
|
|
1632
1632
|
transform: translateX(100%);
|
|
1633
1633
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1645,7 +1645,7 @@ const Ut = 300, T1 = ({
|
|
|
1645
1645
|
&.humany-drawer-transition-exit-done {
|
|
1646
1646
|
transform: translateX(100%);
|
|
1647
1647
|
}
|
|
1648
|
-
`, Gt =
|
|
1648
|
+
`, Gt = C(ce)`
|
|
1649
1649
|
${le}
|
|
1650
1650
|
transform: translateX(-100%);
|
|
1651
1651
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1663,7 +1663,7 @@ const Ut = 300, T1 = ({
|
|
|
1663
1663
|
&.humany-drawer-transition-exit-done {
|
|
1664
1664
|
transform: translateX(-100%);
|
|
1665
1665
|
}
|
|
1666
|
-
`, Jt =
|
|
1666
|
+
`, Jt = C(ce)`
|
|
1667
1667
|
${le}
|
|
1668
1668
|
bottom: unset;
|
|
1669
1669
|
top: 0;
|
|
@@ -1700,25 +1700,25 @@ const Ut = 300, T1 = ({
|
|
|
1700
1700
|
/* SlideInTop */
|
|
1701
1701
|
]: Jt
|
|
1702
1702
|
}, je = (e, t, n) => {
|
|
1703
|
-
const [o, r] = w(0), [s,
|
|
1704
|
-
(
|
|
1705
|
-
if (
|
|
1703
|
+
const [o, r] = w(0), [s, c] = w(0), d = M(
|
|
1704
|
+
(a, l) => {
|
|
1705
|
+
if (a.preventDefault(), l) {
|
|
1706
1706
|
const u = l.getBoundingClientRect();
|
|
1707
|
-
r(Math.max(document.body.clientWidth - u.right, 1)),
|
|
1707
|
+
r(Math.max(document.body.clientWidth - u.right, 1)), c(u.bottom + window.scrollY);
|
|
1708
1708
|
}
|
|
1709
1709
|
},
|
|
1710
|
-
[o, s, r,
|
|
1710
|
+
[o, s, r, c]
|
|
1711
1711
|
);
|
|
1712
1712
|
return v(() => {
|
|
1713
1713
|
if (!n || !e)
|
|
1714
1714
|
return;
|
|
1715
|
-
const
|
|
1715
|
+
const a = n.getBoundingClientRect(), l = {
|
|
1716
1716
|
x: o,
|
|
1717
1717
|
y: s
|
|
1718
1718
|
};
|
|
1719
|
-
|
|
1719
|
+
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
1720
|
}, [n, e, t]), [{ x: o, y: s }, d];
|
|
1721
|
-
},
|
|
1721
|
+
}, V1 = oe.forwardRef(
|
|
1722
1722
|
({
|
|
1723
1723
|
className: e = "",
|
|
1724
1724
|
children: t = null,
|
|
@@ -1726,18 +1726,18 @@ const Ut = 300, T1 = ({
|
|
|
1726
1726
|
closeButtonAriaLabel: o,
|
|
1727
1727
|
...r
|
|
1728
1728
|
}, s) => {
|
|
1729
|
-
const
|
|
1730
|
-
ge(s, () =>
|
|
1731
|
-
const l = L(U()), [u, h] = w(!1), f = Ie(u), [{ x: m, y:
|
|
1729
|
+
const c = L(), d = L(), a = L();
|
|
1730
|
+
ge(s, () => a.current, [a.current]);
|
|
1731
|
+
const l = L(U()), [u, h] = w(!1), f = Ie(u), [{ x: m, y: p }, g] = je(u, l.current, a.current), y = j("Escape");
|
|
1732
1732
|
v(() => {
|
|
1733
|
-
|
|
1734
|
-
}, [
|
|
1735
|
-
u &&
|
|
1736
|
-
}, [u,
|
|
1733
|
+
y && h(!1);
|
|
1734
|
+
}, [y]), v(() => {
|
|
1735
|
+
u && c.current ? c.current.focus() : !u && d.current && f && d.current.focus();
|
|
1736
|
+
}, [u, c.current, d.current]), N(
|
|
1737
1737
|
"click",
|
|
1738
|
-
(
|
|
1739
|
-
const { target: z } =
|
|
1740
|
-
!
|
|
1738
|
+
(V) => {
|
|
1739
|
+
const { target: z } = V;
|
|
1740
|
+
!a.current || !z || a.current !== z && !a.current.contains(z) && h(!1);
|
|
1741
1741
|
},
|
|
1742
1742
|
window
|
|
1743
1743
|
), ae("router:changed", () => {
|
|
@@ -1746,8 +1746,8 @@ const Ut = 300, T1 = ({
|
|
|
1746
1746
|
const S = ye(l.current, () => {
|
|
1747
1747
|
h(!1);
|
|
1748
1748
|
}), R = M(
|
|
1749
|
-
(
|
|
1750
|
-
|
|
1749
|
+
(V) => {
|
|
1750
|
+
V.stopPropagation(), g(V, d.current), h(!u), S();
|
|
1751
1751
|
},
|
|
1752
1752
|
[S, g, h]
|
|
1753
1753
|
);
|
|
@@ -1762,15 +1762,15 @@ const Ut = 300, T1 = ({
|
|
|
1762
1762
|
),
|
|
1763
1763
|
...r,
|
|
1764
1764
|
x: m,
|
|
1765
|
-
y:
|
|
1766
|
-
ref:
|
|
1765
|
+
y: p,
|
|
1766
|
+
ref: a,
|
|
1767
1767
|
children: [
|
|
1768
1768
|
/* @__PURE__ */ i(
|
|
1769
1769
|
ve,
|
|
1770
1770
|
{
|
|
1771
1771
|
onClick: () => h(!1),
|
|
1772
1772
|
tabIndex: 0,
|
|
1773
|
-
ref:
|
|
1773
|
+
ref: c,
|
|
1774
1774
|
"aria-label": o,
|
|
1775
1775
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
1776
1776
|
}
|
|
@@ -1787,7 +1787,7 @@ const Ut = 300, T1 = ({
|
|
|
1787
1787
|
})
|
|
1788
1788
|
] });
|
|
1789
1789
|
}
|
|
1790
|
-
), tn =
|
|
1790
|
+
), tn = C.div`
|
|
1791
1791
|
${Pe}
|
|
1792
1792
|
padding: ${(e) => {
|
|
1793
1793
|
var t;
|
|
@@ -1802,9 +1802,9 @@ const Ut = 300, T1 = ({
|
|
|
1802
1802
|
let t = "";
|
|
1803
1803
|
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, t;
|
|
1804
1804
|
}};
|
|
1805
|
-
`, nn = ({ ...e }) => /* @__PURE__ */ i(on, { ...e }), on =
|
|
1805
|
+
`, nn = ({ ...e }) => /* @__PURE__ */ i(on, { ...e }), on = C.div`
|
|
1806
1806
|
display: none;
|
|
1807
|
-
`,
|
|
1807
|
+
`, N1 = H(
|
|
1808
1808
|
({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
|
|
1809
1809
|
rn,
|
|
1810
1810
|
{
|
|
@@ -1817,7 +1817,7 @@ const Ut = 300, T1 = ({
|
|
|
1817
1817
|
children: e
|
|
1818
1818
|
}
|
|
1819
1819
|
)
|
|
1820
|
-
), rn =
|
|
1820
|
+
), rn = C.div`
|
|
1821
1821
|
display: grid;
|
|
1822
1822
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1823
1823
|
grid-gap: ${(e) => e["data-gap"]};
|
|
@@ -1826,13 +1826,13 @@ const Ut = 300, T1 = ({
|
|
|
1826
1826
|
${Mt}
|
|
1827
1827
|
`, Ke = H(
|
|
1828
1828
|
({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
|
|
1829
|
-
const s = T(), [
|
|
1829
|
+
const s = T(), [c, d] = w();
|
|
1830
1830
|
return v(() => {
|
|
1831
|
-
const
|
|
1832
|
-
...
|
|
1831
|
+
const a = Ht(s, n), l = {
|
|
1832
|
+
...a,
|
|
1833
1833
|
...e,
|
|
1834
1834
|
transform: {
|
|
1835
|
-
...
|
|
1835
|
+
...a.transform,
|
|
1836
1836
|
...e == null ? void 0 : e.transform
|
|
1837
1837
|
}
|
|
1838
1838
|
}, u = Et(n, l);
|
|
@@ -1843,7 +1843,7 @@ const Ut = 300, T1 = ({
|
|
|
1843
1843
|
className: $(t, "humany-html"),
|
|
1844
1844
|
...D(o),
|
|
1845
1845
|
ref: r,
|
|
1846
|
-
children:
|
|
1846
|
+
children: c
|
|
1847
1847
|
}
|
|
1848
1848
|
);
|
|
1849
1849
|
}
|
|
@@ -1872,34 +1872,34 @@ const Ut = 300, T1 = ({
|
|
|
1872
1872
|
onEscape: r = () => {
|
|
1873
1873
|
},
|
|
1874
1874
|
selectAllOnFocus: s,
|
|
1875
|
-
onChange:
|
|
1875
|
+
onChange: c = () => {
|
|
1876
1876
|
},
|
|
1877
1877
|
disabled: d = !1,
|
|
1878
|
-
type:
|
|
1878
|
+
type: a,
|
|
1879
1879
|
...l
|
|
1880
1880
|
}, u) => {
|
|
1881
1881
|
const [h, f] = w(t), m = L();
|
|
1882
1882
|
ge(u, () => m.current), v(() => {
|
|
1883
|
-
var
|
|
1884
|
-
t && ((
|
|
1883
|
+
var y;
|
|
1884
|
+
t && ((y = m == null ? void 0 : m.current) == null || y.focus());
|
|
1885
1885
|
}, [t, u, m]);
|
|
1886
|
-
const
|
|
1887
|
-
f(
|
|
1886
|
+
const p = (y, S) => {
|
|
1887
|
+
f(y), n && n(y), s && y && S.target.select();
|
|
1888
1888
|
}, g = {
|
|
1889
1889
|
...D(l),
|
|
1890
1890
|
disabled: d,
|
|
1891
1891
|
autoFocus: t,
|
|
1892
|
-
type:
|
|
1893
|
-
onKeyDown: (
|
|
1894
|
-
|
|
1892
|
+
type: a,
|
|
1893
|
+
onKeyDown: (y) => {
|
|
1894
|
+
y.key === "Enter" && h && o(y), y.key === "Escape" && h && r(y);
|
|
1895
1895
|
},
|
|
1896
|
-
onFocus: (
|
|
1897
|
-
onBlur: (
|
|
1898
|
-
onChange: (
|
|
1896
|
+
onFocus: (y) => p(!0, y),
|
|
1897
|
+
onBlur: (y) => p(!1, y),
|
|
1898
|
+
onChange: (y) => c(y.target.value || ""),
|
|
1899
1899
|
className: $(e, "humany-input"),
|
|
1900
|
-
"data-type":
|
|
1900
|
+
"data-type": a
|
|
1901
1901
|
};
|
|
1902
|
-
return
|
|
1902
|
+
return a !== "textarea" ? /* @__PURE__ */ i(
|
|
1903
1903
|
"input",
|
|
1904
1904
|
{
|
|
1905
1905
|
...g,
|
|
@@ -1914,36 +1914,49 @@ const Ut = 300, T1 = ({
|
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
1916
|
), an = H(
|
|
1917
|
-
({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) =>
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1917
|
+
({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) => {
|
|
1918
|
+
const c = t.length === 1 && t[0].expanded;
|
|
1919
|
+
return /* @__PURE__ */ i(
|
|
1920
|
+
"ul",
|
|
1921
|
+
{
|
|
1922
|
+
role: c ? "none" : void 0,
|
|
1923
|
+
className: $(e, "humany-list"),
|
|
1924
|
+
"data-item-count": t.length,
|
|
1925
|
+
...D(r),
|
|
1926
|
+
ref: s,
|
|
1927
|
+
children: t.map(
|
|
1928
|
+
(d, a, l) => o ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(d, a, l) }, d.id || a) : n(d, a, l)
|
|
1929
|
+
)
|
|
1930
|
+
}
|
|
1931
|
+
);
|
|
1932
|
+
}
|
|
1930
1933
|
), cn = H(
|
|
1931
|
-
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1934
|
+
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, d) => {
|
|
1935
|
+
var l;
|
|
1936
|
+
const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
|
|
1937
|
+
return /* @__PURE__ */ b(
|
|
1938
|
+
"div",
|
|
1939
|
+
{
|
|
1940
|
+
className: $(o, "humany-paragraph"),
|
|
1941
|
+
...D(c),
|
|
1942
|
+
ref: d,
|
|
1943
|
+
children: [
|
|
1944
|
+
n ? /* @__PURE__ */ b(
|
|
1945
|
+
X,
|
|
1946
|
+
{
|
|
1947
|
+
variant: a && a.match(/h1|h2|h3|h4|h5|h6/) ? a : "h1",
|
|
1948
|
+
children: [
|
|
1949
|
+
s ? /* @__PURE__ */ i(Q, { symbol: s }) : null,
|
|
1950
|
+
n
|
|
1951
|
+
]
|
|
1952
|
+
}
|
|
1953
|
+
) : null,
|
|
1954
|
+
t ? /* @__PURE__ */ i(Ke, { html: t, htmlParseInstruction: r }) : null,
|
|
1955
|
+
e ? /* @__PURE__ */ i(be, { children: e }) : null
|
|
1956
|
+
]
|
|
1957
|
+
}
|
|
1958
|
+
);
|
|
1959
|
+
}
|
|
1947
1960
|
), ln = H(
|
|
1948
1961
|
({
|
|
1949
1962
|
header: e,
|
|
@@ -1952,9 +1965,9 @@ const Ut = 300, T1 = ({
|
|
|
1952
1965
|
html: o,
|
|
1953
1966
|
className: r,
|
|
1954
1967
|
children: s,
|
|
1955
|
-
symbol:
|
|
1968
|
+
symbol: c,
|
|
1956
1969
|
items: d,
|
|
1957
|
-
renderItem:
|
|
1970
|
+
renderItem: a,
|
|
1958
1971
|
renderLi: l,
|
|
1959
1972
|
ulProps: u,
|
|
1960
1973
|
...h
|
|
@@ -1966,12 +1979,12 @@ const Ut = 300, T1 = ({
|
|
|
1966
1979
|
...D(h),
|
|
1967
1980
|
ref: f,
|
|
1968
1981
|
children: [
|
|
1969
|
-
t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol:
|
|
1982
|
+
t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol: c, header: e, text: n, html: o }) : null),
|
|
1970
1983
|
d.length ? /* @__PURE__ */ i(
|
|
1971
1984
|
an,
|
|
1972
1985
|
{
|
|
1973
1986
|
items: d,
|
|
1974
|
-
renderItem:
|
|
1987
|
+
renderItem: a,
|
|
1975
1988
|
renderLi: l,
|
|
1976
1989
|
...u
|
|
1977
1990
|
}
|
|
@@ -1987,32 +2000,32 @@ const Ut = 300, T1 = ({
|
|
|
1987
2000
|
rootItem: o,
|
|
1988
2001
|
renderUnselected: r = !0,
|
|
1989
2002
|
renderEmpty: s = !0,
|
|
1990
|
-
ulProps:
|
|
2003
|
+
ulProps: c,
|
|
1991
2004
|
liProps: d
|
|
1992
2005
|
}) => {
|
|
1993
|
-
const
|
|
2006
|
+
const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected), u = (h, f) => /* @__PURE__ */ i(
|
|
1994
2007
|
ln,
|
|
1995
2008
|
{
|
|
1996
2009
|
className: $(`humany-item-tree-level-${f}`),
|
|
1997
2010
|
items: h,
|
|
1998
|
-
ulProps:
|
|
2011
|
+
ulProps: c,
|
|
1999
2012
|
renderItem: (m) => {
|
|
2000
|
-
const { id:
|
|
2013
|
+
const { id: p, selected: g, items: y, matches: S } = m, R = g && l(y);
|
|
2001
2014
|
return !s && !S ? null : /* @__PURE__ */ at(
|
|
2002
2015
|
"li",
|
|
2003
2016
|
{
|
|
2004
2017
|
...D(d),
|
|
2005
|
-
key:
|
|
2018
|
+
key: p,
|
|
2006
2019
|
className: "humany-item-tree-item"
|
|
2007
2020
|
},
|
|
2008
2021
|
n && n(m, f, R),
|
|
2009
|
-
|
|
2022
|
+
y && (r || R) && u(y, f + 1)
|
|
2010
2023
|
);
|
|
2011
2024
|
}
|
|
2012
2025
|
}
|
|
2013
2026
|
);
|
|
2014
2027
|
return /* @__PURE__ */ b("div", { className: $(e, "humany-item-tree"), children: [
|
|
2015
|
-
o && o(!
|
|
2028
|
+
o && o(!a(t || [])),
|
|
2016
2029
|
t && u(t, 1)
|
|
2017
2030
|
] });
|
|
2018
2031
|
}, un = H(
|
|
@@ -2024,10 +2037,10 @@ const Ut = 300, T1 = ({
|
|
|
2024
2037
|
to: o = "",
|
|
2025
2038
|
params: r = {},
|
|
2026
2039
|
children: s,
|
|
2027
|
-
...
|
|
2040
|
+
...c
|
|
2028
2041
|
}, d) => {
|
|
2029
|
-
const
|
|
2030
|
-
if (!
|
|
2042
|
+
const a = Oe(), l = T();
|
|
2043
|
+
if (!a)
|
|
2031
2044
|
return null;
|
|
2032
2045
|
let u = "";
|
|
2033
2046
|
const h = {
|
|
@@ -2035,11 +2048,11 @@ const Ut = 300, T1 = ({
|
|
|
2035
2048
|
className: $(e, "humany-route-link"),
|
|
2036
2049
|
to: u,
|
|
2037
2050
|
innerRef: d,
|
|
2038
|
-
...
|
|
2051
|
+
...c,
|
|
2039
2052
|
ref: null
|
|
2040
2053
|
};
|
|
2041
2054
|
if (n) {
|
|
2042
|
-
if (!(
|
|
2055
|
+
if (!(a.routes || []).find((g) => g.name === n))
|
|
2043
2056
|
return process.env.NODE_ENV !== "production" && ue.warn(
|
|
2044
2057
|
`Unable to create route. No route named "${n}" exist.`
|
|
2045
2058
|
), /* @__PURE__ */ i(
|
|
@@ -2054,27 +2067,27 @@ const Ut = 300, T1 = ({
|
|
|
2054
2067
|
children: s
|
|
2055
2068
|
}
|
|
2056
2069
|
);
|
|
2057
|
-
const
|
|
2058
|
-
(g,
|
|
2059
|
-
const S = r[
|
|
2070
|
+
const p = Object.keys(r).reduce(
|
|
2071
|
+
(g, y) => {
|
|
2072
|
+
const S = r[y];
|
|
2060
2073
|
if (Array.isArray(S)) {
|
|
2061
2074
|
if (S.length === 0)
|
|
2062
2075
|
return g;
|
|
2063
|
-
g[
|
|
2076
|
+
g[y] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
|
|
2064
2077
|
} else
|
|
2065
|
-
g[
|
|
2078
|
+
g[y] = typeof S == "string" ? encodeURIComponent(S) : S;
|
|
2066
2079
|
return g;
|
|
2067
2080
|
},
|
|
2068
2081
|
{}
|
|
2069
2082
|
);
|
|
2070
2083
|
try {
|
|
2071
|
-
u =
|
|
2084
|
+
u = a.generate(n, p || {});
|
|
2072
2085
|
} catch {
|
|
2073
2086
|
return /* @__PURE__ */ i(de, { ...h, ref: h.innerRef, children: s });
|
|
2074
2087
|
}
|
|
2075
|
-
u &&
|
|
2076
|
-
} else if (o &&
|
|
2077
|
-
u =
|
|
2088
|
+
u && a.settings.mode && a.settings.mode === ze.browser && u[0] !== "/" && (u = `/${u}`);
|
|
2089
|
+
} else if (o && a.history)
|
|
2090
|
+
u = a.history.createHref({
|
|
2078
2091
|
hash: "",
|
|
2079
2092
|
pathname: o,
|
|
2080
2093
|
search: "",
|
|
@@ -2084,84 +2097,84 @@ const Ut = 300, T1 = ({
|
|
|
2084
2097
|
return process.env.NODE_ENV !== "production" && ue.warn(
|
|
2085
2098
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2086
2099
|
), null;
|
|
2087
|
-
if (
|
|
2100
|
+
if (a.settings && a.settings.mode === ze.scopedHash) {
|
|
2088
2101
|
const f = l.get("$widget").name;
|
|
2089
2102
|
u = bt(u, f);
|
|
2090
2103
|
}
|
|
2091
2104
|
return h.as ? /* @__PURE__ */ i(dn, { ...h, as: h.as, children: s }) : /* @__PURE__ */ i(de, { ...h, to: u, children: s });
|
|
2092
2105
|
}
|
|
2093
|
-
), dn =
|
|
2106
|
+
), dn = C.span``, xe = H(
|
|
2094
2107
|
({
|
|
2095
2108
|
className: e,
|
|
2096
2109
|
disabled: t = !1,
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
onClick: r = () => {
|
|
2110
|
+
tabIndex: n = 0,
|
|
2111
|
+
onClick: o = () => {
|
|
2100
2112
|
},
|
|
2101
|
-
onKeyDown:
|
|
2113
|
+
onKeyDown: r = () => {
|
|
2102
2114
|
},
|
|
2103
|
-
title:
|
|
2104
|
-
as:
|
|
2105
|
-
href:
|
|
2106
|
-
children:
|
|
2107
|
-
target:
|
|
2108
|
-
routeName:
|
|
2109
|
-
params:
|
|
2110
|
-
...
|
|
2111
|
-
},
|
|
2112
|
-
const
|
|
2113
|
-
title:
|
|
2115
|
+
title: s,
|
|
2116
|
+
as: c,
|
|
2117
|
+
href: d,
|
|
2118
|
+
children: a,
|
|
2119
|
+
target: l,
|
|
2120
|
+
routeName: u,
|
|
2121
|
+
params: h,
|
|
2122
|
+
...f
|
|
2123
|
+
}, m) => {
|
|
2124
|
+
const p = {
|
|
2125
|
+
title: s,
|
|
2126
|
+
role: u === "index" || u === "contact-method" ? "button" : void 0,
|
|
2127
|
+
"aria-expanded": u === "index" ? "false" : void 0,
|
|
2114
2128
|
disabled: t,
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
tabIndex: o,
|
|
2129
|
+
as: c,
|
|
2130
|
+
tabIndex: n,
|
|
2118
2131
|
className: $(e, "humany-link", [
|
|
2119
2132
|
!!t,
|
|
2120
2133
|
"humany-disabled"
|
|
2121
2134
|
]),
|
|
2122
|
-
onClick: (
|
|
2123
|
-
if (
|
|
2124
|
-
|
|
2135
|
+
onClick: (g) => {
|
|
2136
|
+
if (g.persist(), t) {
|
|
2137
|
+
g.preventDefault();
|
|
2125
2138
|
return;
|
|
2126
2139
|
}
|
|
2127
|
-
|
|
2140
|
+
o(g);
|
|
2128
2141
|
},
|
|
2129
|
-
onKeyDown: (
|
|
2130
|
-
if (
|
|
2131
|
-
|
|
2142
|
+
onKeyDown: (g) => {
|
|
2143
|
+
if (g.persist(), t) {
|
|
2144
|
+
g.key !== "Tab" && g.preventDefault();
|
|
2132
2145
|
return;
|
|
2133
2146
|
}
|
|
2134
|
-
|
|
2147
|
+
r(g);
|
|
2135
2148
|
}
|
|
2136
2149
|
};
|
|
2137
|
-
return
|
|
2150
|
+
return f["data-client-name"] === "custom.link" && (p.role = "link"), u ? /* @__PURE__ */ i(
|
|
2138
2151
|
hn,
|
|
2139
2152
|
{
|
|
2140
|
-
name:
|
|
2141
|
-
params:
|
|
2142
|
-
...
|
|
2143
|
-
...D(
|
|
2144
|
-
ref:
|
|
2145
|
-
children:
|
|
2153
|
+
name: u,
|
|
2154
|
+
params: h,
|
|
2155
|
+
...p,
|
|
2156
|
+
...D(f),
|
|
2157
|
+
ref: m,
|
|
2158
|
+
children: a
|
|
2146
2159
|
}
|
|
2147
2160
|
) : /* @__PURE__ */ i(
|
|
2148
2161
|
fn,
|
|
2149
2162
|
{
|
|
2150
|
-
href:
|
|
2151
|
-
target:
|
|
2152
|
-
...
|
|
2153
|
-
...D(
|
|
2154
|
-
ref:
|
|
2155
|
-
children:
|
|
2163
|
+
href: d,
|
|
2164
|
+
target: l,
|
|
2165
|
+
...p,
|
|
2166
|
+
...D(f),
|
|
2167
|
+
ref: m,
|
|
2168
|
+
children: a
|
|
2156
2169
|
}
|
|
2157
2170
|
);
|
|
2158
2171
|
}
|
|
2159
|
-
), hn =
|
|
2172
|
+
), hn = C(un)`
|
|
2160
2173
|
${(e) => e.disabled ? `
|
|
2161
2174
|
pointer-events: none;
|
|
2162
2175
|
opacity: .7;
|
|
2163
2176
|
` : "cursor: pointer;"}
|
|
2164
|
-
`, fn =
|
|
2177
|
+
`, fn = C.a`
|
|
2165
2178
|
${(e) => e.disabled ? `
|
|
2166
2179
|
pointer-events: none;
|
|
2167
2180
|
opacity: .7;
|
|
@@ -2174,14 +2187,14 @@ const Ut = 300, T1 = ({
|
|
|
2174
2187
|
},
|
|
2175
2188
|
...r
|
|
2176
2189
|
}) => {
|
|
2177
|
-
const s = L(),
|
|
2190
|
+
const s = L(), c = M(
|
|
2178
2191
|
(d) => {
|
|
2179
2192
|
d.target === s.current && o(d);
|
|
2180
2193
|
},
|
|
2181
2194
|
[o]
|
|
2182
2195
|
);
|
|
2183
2196
|
return /* @__PURE__ */ i(
|
|
2184
|
-
|
|
2197
|
+
Ne,
|
|
2185
2198
|
{
|
|
2186
2199
|
in: e,
|
|
2187
2200
|
className: "humany-overlay-transition",
|
|
@@ -2194,14 +2207,14 @@ const Ut = 300, T1 = ({
|
|
|
2194
2207
|
className: "humany-overlay",
|
|
2195
2208
|
duration: t,
|
|
2196
2209
|
ref: s,
|
|
2197
|
-
onClick:
|
|
2210
|
+
onClick: c,
|
|
2198
2211
|
...r,
|
|
2199
2212
|
children: n
|
|
2200
2213
|
}
|
|
2201
2214
|
) })
|
|
2202
2215
|
}
|
|
2203
2216
|
);
|
|
2204
|
-
}, mn =
|
|
2217
|
+
}, mn = C.div`
|
|
2205
2218
|
background: rgba(0, 0, 0, 0.6);
|
|
2206
2219
|
min-width: 100%;
|
|
2207
2220
|
min-height: 100%;
|
|
@@ -2231,11 +2244,11 @@ const Ut = 300, T1 = ({
|
|
|
2231
2244
|
&.humany-overlay-transition-exit-done {
|
|
2232
2245
|
opacity: 0;
|
|
2233
2246
|
}
|
|
2234
|
-
`, gn =
|
|
2247
|
+
`, gn = Ve`
|
|
2235
2248
|
100% {
|
|
2236
2249
|
transform: rotate(360deg);
|
|
2237
2250
|
}
|
|
2238
|
-
`, pn =
|
|
2251
|
+
`, pn = Ve`
|
|
2239
2252
|
0% {
|
|
2240
2253
|
stroke-dasharray: 1, 200;
|
|
2241
2254
|
stroke-dashoffset: 0;
|
|
@@ -2248,7 +2261,7 @@ const Ut = 300, T1 = ({
|
|
|
2248
2261
|
stroke-dasharray: 89, 200;
|
|
2249
2262
|
stroke-dashoffset: -124px;
|
|
2250
2263
|
}
|
|
2251
|
-
`, Cn =
|
|
2264
|
+
`, Cn = C.svg`
|
|
2252
2265
|
animation: ${gn} 2s linear infinite;
|
|
2253
2266
|
height: 100%;
|
|
2254
2267
|
transform-origin: center center;
|
|
@@ -2260,7 +2273,7 @@ const Ut = 300, T1 = ({
|
|
|
2260
2273
|
right: 0;
|
|
2261
2274
|
margin: auto;
|
|
2262
2275
|
transition: 200ms ease-out opacity;
|
|
2263
|
-
`, yn =
|
|
2276
|
+
`, yn = C.div`
|
|
2264
2277
|
position: absolute;
|
|
2265
2278
|
top: 0;
|
|
2266
2279
|
bottom: 0;
|
|
@@ -2278,7 +2291,7 @@ const Ut = 300, T1 = ({
|
|
|
2278
2291
|
svg {
|
|
2279
2292
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2280
2293
|
}
|
|
2281
|
-
`, bn =
|
|
2294
|
+
`, bn = C.div`
|
|
2282
2295
|
position: relative;
|
|
2283
2296
|
margin: 0 auto;
|
|
2284
2297
|
width: 100px;
|
|
@@ -2287,7 +2300,7 @@ const Ut = 300, T1 = ({
|
|
|
2287
2300
|
display: block;
|
|
2288
2301
|
padding-top: 100%;
|
|
2289
2302
|
}
|
|
2290
|
-
`, vn =
|
|
2303
|
+
`, vn = C.circle`
|
|
2291
2304
|
stroke-dasharray: 1, 200;
|
|
2292
2305
|
stroke-dashoffset: 0;
|
|
2293
2306
|
animation: ${pn} 1.5s ease-in-out infinite;
|
|
@@ -2320,41 +2333,41 @@ const Ut = 300, T1 = ({
|
|
|
2320
2333
|
changeZoom: n,
|
|
2321
2334
|
...o
|
|
2322
2335
|
}) => {
|
|
2323
|
-
var
|
|
2324
|
-
const r = L(null), [s,
|
|
2336
|
+
var p;
|
|
2337
|
+
const r = L(null), [s, c] = w(!1), [d, a] = w(!1), { width: l, height: u, ...h } = o.style || {}, f = M(() => {
|
|
2325
2338
|
const g = r.current;
|
|
2326
2339
|
if (g) {
|
|
2327
|
-
const
|
|
2328
|
-
return S >= 1 &&
|
|
2340
|
+
const y = window.innerWidth / g.naturalWidth, S = window.innerHeight / g.naturalHeight, R = Math.min(y, S);
|
|
2341
|
+
return S >= 1 && y >= 1 ? 1 : R;
|
|
2329
2342
|
}
|
|
2330
2343
|
return 1;
|
|
2331
2344
|
}, [s, t.src]), m = re(() => {
|
|
2332
2345
|
const g = r.current;
|
|
2333
2346
|
if (g && s) {
|
|
2334
2347
|
if (!d) {
|
|
2335
|
-
|
|
2336
|
-
const
|
|
2337
|
-
n(
|
|
2348
|
+
a(!0);
|
|
2349
|
+
const y = f();
|
|
2350
|
+
n(y);
|
|
2338
2351
|
}
|
|
2339
2352
|
return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
|
|
2340
2353
|
}
|
|
2341
2354
|
return null;
|
|
2342
2355
|
}, [e, r, s, t.src]);
|
|
2343
|
-
return v(() => (
|
|
2344
|
-
|
|
2356
|
+
return v(() => (c(!1), function() {
|
|
2357
|
+
a(!1);
|
|
2345
2358
|
}), [t.src]), /* @__PURE__ */ b(_, { children: [
|
|
2346
2359
|
/* @__PURE__ */ i(kn, { loading: !s }),
|
|
2347
2360
|
/* @__PURE__ */ i(
|
|
2348
2361
|
$n,
|
|
2349
2362
|
{
|
|
2350
2363
|
onLoad: () => {
|
|
2351
|
-
|
|
2364
|
+
c(!0);
|
|
2352
2365
|
},
|
|
2353
2366
|
ref: r,
|
|
2354
2367
|
imageSize: m,
|
|
2355
2368
|
draggable: "false",
|
|
2356
2369
|
...o,
|
|
2357
|
-
alt: ((
|
|
2370
|
+
alt: ((p = o.alt) == null ? void 0 : p.toString()) || "",
|
|
2358
2371
|
style: h,
|
|
2359
2372
|
src: t.src,
|
|
2360
2373
|
loaded: s
|
|
@@ -2362,11 +2375,11 @@ const Ut = 300, T1 = ({
|
|
|
2362
2375
|
),
|
|
2363
2376
|
/* @__PURE__ */ i(Ln, {})
|
|
2364
2377
|
] });
|
|
2365
|
-
}, kn =
|
|
2378
|
+
}, kn = C(xn)`
|
|
2366
2379
|
svg circle {
|
|
2367
2380
|
stroke: #ffffff;
|
|
2368
2381
|
}
|
|
2369
|
-
`, $n =
|
|
2382
|
+
`, $n = C.img`
|
|
2370
2383
|
transform: none;
|
|
2371
2384
|
|
|
2372
2385
|
${(e) => e.imageSize && k`
|
|
@@ -2377,7 +2390,7 @@ const Ut = 300, T1 = ({
|
|
|
2377
2390
|
vertical-align: middle;
|
|
2378
2391
|
position: relative;
|
|
2379
2392
|
${(e) => !e.loaded && "display:none;"}
|
|
2380
|
-
`, Ln =
|
|
2393
|
+
`, Ln = C.div`
|
|
2381
2394
|
height: 100%;
|
|
2382
2395
|
display: inline-block;
|
|
2383
2396
|
vertical-align: middle;
|
|
@@ -2390,16 +2403,16 @@ const Ut = 300, T1 = ({
|
|
|
2390
2403
|
return [t, o];
|
|
2391
2404
|
}, Sn = ({ attrs: e, htmlBody: t }) => {
|
|
2392
2405
|
var Se;
|
|
2393
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s,
|
|
2406
|
+
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [d, a] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, u] = w(!1), [h, f] = Mn(), [m, p] = w(null), [g, y] = w(null), S = L(null), R = L(null), V = L(null), z = L(null), Z = L(null), [_e, qe] = w(null);
|
|
2394
2407
|
v(() => {
|
|
2395
|
-
n &&
|
|
2408
|
+
n && p(null);
|
|
2396
2409
|
}, [n]), v(() => {
|
|
2397
|
-
|
|
2410
|
+
c(1);
|
|
2398
2411
|
}, [m]), v(() => {
|
|
2399
2412
|
var I, ee;
|
|
2400
2413
|
if (m === null || R.current === null)
|
|
2401
2414
|
return;
|
|
2402
|
-
const x = R.current.firstElementChild, E = (I =
|
|
2415
|
+
const x = R.current.firstElementChild, E = (I = V.current) == null ? void 0 : I.querySelector(".nav-left"), B = (ee = V.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2403
2416
|
if (g === "Right")
|
|
2404
2417
|
J && B ? B.focus() : G && E && E.focus();
|
|
2405
2418
|
else if (g === "Left")
|
|
@@ -2409,7 +2422,7 @@ const Ut = 300, T1 = ({
|
|
|
2409
2422
|
return;
|
|
2410
2423
|
x.focus();
|
|
2411
2424
|
}
|
|
2412
|
-
}, [m, R,
|
|
2425
|
+
}, [m, R, V, g]), v(() => {
|
|
2413
2426
|
if (o) {
|
|
2414
2427
|
if (G)
|
|
2415
2428
|
return Le();
|
|
@@ -2441,15 +2454,15 @@ const Ut = 300, T1 = ({
|
|
|
2441
2454
|
const { src: x } = e;
|
|
2442
2455
|
if (x) {
|
|
2443
2456
|
const E = A.findIndex((B, I) => B.src === x);
|
|
2444
|
-
|
|
2457
|
+
p(E);
|
|
2445
2458
|
}
|
|
2446
2459
|
}, [A, e]), Qe = M((x) => {
|
|
2447
|
-
|
|
2460
|
+
p(null);
|
|
2448
2461
|
}, []), $e = M(
|
|
2449
2462
|
(x) => {
|
|
2450
|
-
|
|
2463
|
+
c(x ? s + s * 0.25 : s - s * 0.25);
|
|
2451
2464
|
},
|
|
2452
|
-
[
|
|
2465
|
+
[c, s]
|
|
2453
2466
|
), Ge = M(() => {
|
|
2454
2467
|
if (m !== null) {
|
|
2455
2468
|
const { src: x } = A[m];
|
|
@@ -2458,7 +2471,7 @@ const Ut = 300, T1 = ({
|
|
|
2458
2471
|
}, [A, m]), Je = M(
|
|
2459
2472
|
(x) => {
|
|
2460
2473
|
const E = z.current;
|
|
2461
|
-
E && (
|
|
2474
|
+
E && (a({
|
|
2462
2475
|
top: E.scrollTop,
|
|
2463
2476
|
left: E.scrollLeft,
|
|
2464
2477
|
x: x.clientX,
|
|
@@ -2487,20 +2500,20 @@ const Ut = 300, T1 = ({
|
|
|
2487
2500
|
}
|
|
2488
2501
|
return !1;
|
|
2489
2502
|
}, [z, s]), Le = () => {
|
|
2490
|
-
m !== null && (
|
|
2503
|
+
m !== null && (y("Left"), p(m - 1));
|
|
2491
2504
|
}, Me = () => {
|
|
2492
|
-
m !== null && (
|
|
2505
|
+
m !== null && (y("Right"), p(m + 1));
|
|
2493
2506
|
}, G = m !== null && m > 0 && A.length > 1, J = m !== null && A.length - 1 > m;
|
|
2494
2507
|
return /* @__PURE__ */ b(_, { children: [
|
|
2495
2508
|
/* @__PURE__ */ i(Ye, { visible: m !== null, onClick: Qe, children: /* @__PURE__ */ b(
|
|
2496
|
-
|
|
2509
|
+
Vn,
|
|
2497
2510
|
{
|
|
2498
2511
|
onMouseDown: () => f(),
|
|
2499
2512
|
onMouseMove: () => f(),
|
|
2500
2513
|
onTouchStart: () => f(),
|
|
2501
2514
|
onKeyDown: () => f(),
|
|
2502
2515
|
children: [
|
|
2503
|
-
/* @__PURE__ */ i(
|
|
2516
|
+
/* @__PURE__ */ i(Nn, { show: h.toString(), children: /* @__PURE__ */ i(
|
|
2504
2517
|
zn,
|
|
2505
2518
|
{
|
|
2506
2519
|
ref: R,
|
|
@@ -2513,7 +2526,7 @@ const Ut = 300, T1 = ({
|
|
|
2513
2526
|
},
|
|
2514
2527
|
{
|
|
2515
2528
|
id: "lightbox-close",
|
|
2516
|
-
onClick: () =>
|
|
2529
|
+
onClick: () => p(null),
|
|
2517
2530
|
icon: "lightbox-close",
|
|
2518
2531
|
ariaLabel: "Close"
|
|
2519
2532
|
}
|
|
@@ -2533,7 +2546,7 @@ const Ut = 300, T1 = ({
|
|
|
2533
2546
|
wn,
|
|
2534
2547
|
{
|
|
2535
2548
|
changeZoom: (x) => {
|
|
2536
|
-
|
|
2549
|
+
c(x);
|
|
2537
2550
|
},
|
|
2538
2551
|
zoomState: s,
|
|
2539
2552
|
...e,
|
|
@@ -2549,7 +2562,7 @@ const Ut = 300, T1 = ({
|
|
|
2549
2562
|
/* @__PURE__ */ i(
|
|
2550
2563
|
Bn,
|
|
2551
2564
|
{
|
|
2552
|
-
ref:
|
|
2565
|
+
ref: V,
|
|
2553
2566
|
show: h.toString(),
|
|
2554
2567
|
buttons: [
|
|
2555
2568
|
{
|
|
@@ -2633,18 +2646,18 @@ const Ut = 300, T1 = ({
|
|
|
2633
2646
|
({
|
|
2634
2647
|
id: r,
|
|
2635
2648
|
circle: s = !1,
|
|
2636
|
-
show:
|
|
2649
|
+
show: c = !0,
|
|
2637
2650
|
ariaLabel: d,
|
|
2638
|
-
onClick:
|
|
2651
|
+
onClick: a,
|
|
2639
2652
|
icon: l,
|
|
2640
2653
|
className: u
|
|
2641
2654
|
}, h) => /* @__PURE__ */ i(
|
|
2642
2655
|
Hn,
|
|
2643
2656
|
{
|
|
2644
2657
|
circle: s.toString(),
|
|
2645
|
-
onClick:
|
|
2646
|
-
tabIndex:
|
|
2647
|
-
show:
|
|
2658
|
+
onClick: a,
|
|
2659
|
+
tabIndex: c ? void 0 : -1,
|
|
2660
|
+
show: c.toString(),
|
|
2648
2661
|
icon: l,
|
|
2649
2662
|
className: u,
|
|
2650
2663
|
"aria-label": d,
|
|
@@ -2655,27 +2668,27 @@ const Ut = 300, T1 = ({
|
|
|
2655
2668
|
)
|
|
2656
2669
|
}
|
|
2657
2670
|
)
|
|
2658
|
-
), Xe =
|
|
2671
|
+
), Xe = C.div`
|
|
2659
2672
|
transition: opacity 0.3s ease 0s;
|
|
2660
2673
|
z-index: 5;
|
|
2661
2674
|
${(e) => e.show === "true" ? "opacity: 1;" : k`
|
|
2662
2675
|
opacity: 0;
|
|
2663
2676
|
pointer-events: none;
|
|
2664
2677
|
`}
|
|
2665
|
-
`, En =
|
|
2678
|
+
`, En = C(xe)`
|
|
2666
2679
|
display: inline-block !important;
|
|
2667
2680
|
|
|
2668
2681
|
${(e) => (e.alignment === "right" || e.alignment === "left") && k`
|
|
2669
2682
|
float: ${e.alignment};
|
|
2670
2683
|
`}
|
|
2671
|
-
`, Rn =
|
|
2684
|
+
`, Rn = C(Xe)`
|
|
2672
2685
|
position: fixed;
|
|
2673
2686
|
display: flex;
|
|
2674
2687
|
gap: ${(e) => {
|
|
2675
2688
|
var t;
|
|
2676
2689
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2677
2690
|
}};
|
|
2678
|
-
`, me = "39px", Hn =
|
|
2691
|
+
`, me = "39px", Hn = C(se)`
|
|
2679
2692
|
width: ${me};
|
|
2680
2693
|
height: ${me};
|
|
2681
2694
|
display: flex;
|
|
@@ -2740,7 +2753,7 @@ const Ut = 300, T1 = ({
|
|
|
2740
2753
|
opacity: 0;
|
|
2741
2754
|
pointer-events: none;
|
|
2742
2755
|
`}
|
|
2743
|
-
`, zn =
|
|
2756
|
+
`, zn = C(we)`
|
|
2744
2757
|
top: ${(e) => {
|
|
2745
2758
|
var t;
|
|
2746
2759
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2749,7 +2762,7 @@ const Ut = 300, T1 = ({
|
|
|
2749
2762
|
var t;
|
|
2750
2763
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2751
2764
|
}};
|
|
2752
|
-
`, Dn =
|
|
2765
|
+
`, Dn = C(we)`
|
|
2753
2766
|
bottom: ${(e) => {
|
|
2754
2767
|
var t;
|
|
2755
2768
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2757,7 +2770,7 @@ const Ut = 300, T1 = ({
|
|
|
2757
2770
|
width: 100%;
|
|
2758
2771
|
align-items: center;
|
|
2759
2772
|
justify-content: center;
|
|
2760
|
-
`, Bn =
|
|
2773
|
+
`, Bn = C(we)`
|
|
2761
2774
|
display: block;
|
|
2762
2775
|
button {
|
|
2763
2776
|
position: fixed;
|
|
@@ -2775,7 +2788,7 @@ const Ut = 300, T1 = ({
|
|
|
2775
2788
|
}};
|
|
2776
2789
|
}
|
|
2777
2790
|
}
|
|
2778
|
-
`, Tn =
|
|
2791
|
+
`, Tn = C(X)`
|
|
2779
2792
|
position: fixed;
|
|
2780
2793
|
bottom: ${(e) => {
|
|
2781
2794
|
var t;
|
|
@@ -2794,29 +2807,29 @@ const Ut = 300, T1 = ({
|
|
|
2794
2807
|
var t;
|
|
2795
2808
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2796
2809
|
}};
|
|
2797
|
-
`, Ue =
|
|
2810
|
+
`, Ue = C(Xe)`
|
|
2798
2811
|
position: absolute;
|
|
2799
2812
|
width: 100vw;
|
|
2800
2813
|
height: 88px;
|
|
2801
2814
|
left: 0px;
|
|
2802
2815
|
z-index: 5;
|
|
2803
|
-
`,
|
|
2816
|
+
`, Vn = C.div`
|
|
2804
2817
|
width: 100%;
|
|
2805
|
-
`,
|
|
2818
|
+
`, Nn = C(Ue)`
|
|
2806
2819
|
top: 0px;
|
|
2807
2820
|
background-image: linear-gradient(
|
|
2808
2821
|
to bottom,
|
|
2809
2822
|
rgb(34, 34, 34, 0.8),
|
|
2810
2823
|
rgba(34, 34, 34, 0)
|
|
2811
2824
|
);
|
|
2812
|
-
`, Wn =
|
|
2825
|
+
`, Wn = C(Ue)`
|
|
2813
2826
|
bottom: 0px;
|
|
2814
2827
|
background-image: linear-gradient(
|
|
2815
2828
|
to top,
|
|
2816
2829
|
rgb(34, 34, 34, 0.8),
|
|
2817
2830
|
rgba(34, 34, 34, 0)
|
|
2818
2831
|
);
|
|
2819
|
-
`, Zn =
|
|
2832
|
+
`, Zn = C.div`
|
|
2820
2833
|
width: 100%;
|
|
2821
2834
|
height: 100vh;
|
|
2822
2835
|
overflow: auto;
|
|
@@ -2825,7 +2838,7 @@ const Ut = 300, T1 = ({
|
|
|
2825
2838
|
white-space: nowrap;
|
|
2826
2839
|
justify-content: center;
|
|
2827
2840
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2828
|
-
`, In =
|
|
2841
|
+
`, In = C.img`
|
|
2829
2842
|
cursor: pointer;
|
|
2830
2843
|
`, On = H(
|
|
2831
2844
|
({
|
|
@@ -2836,31 +2849,31 @@ const Ut = 300, T1 = ({
|
|
|
2836
2849
|
},
|
|
2837
2850
|
close: r = !1,
|
|
2838
2851
|
...s
|
|
2839
|
-
},
|
|
2840
|
-
const [d,
|
|
2852
|
+
}, c) => {
|
|
2853
|
+
const [d, a] = Fe(), [l, u] = Ae(!0), h = L(), f = L(U()), m = j("Escape");
|
|
2841
2854
|
v(() => {
|
|
2842
|
-
(m || r) &&
|
|
2855
|
+
(m || r) && a(!1);
|
|
2843
2856
|
}, [m, r]), v(() => {
|
|
2844
2857
|
d && h.current && h.current.focus();
|
|
2845
2858
|
}, [d, h.current]), ae("router:changed", () => {
|
|
2846
|
-
|
|
2859
|
+
a(!1);
|
|
2847
2860
|
});
|
|
2848
|
-
const
|
|
2849
|
-
(
|
|
2850
|
-
|
|
2861
|
+
const p = M(
|
|
2862
|
+
(y) => {
|
|
2863
|
+
a(!1), o(y);
|
|
2851
2864
|
},
|
|
2852
|
-
[o,
|
|
2865
|
+
[o, a]
|
|
2853
2866
|
);
|
|
2854
|
-
ge(
|
|
2867
|
+
ge(c, () => ({
|
|
2855
2868
|
close() {
|
|
2856
|
-
|
|
2869
|
+
a(!1);
|
|
2857
2870
|
}
|
|
2858
2871
|
}));
|
|
2859
2872
|
const g = M(() => ye(f.current, () => {
|
|
2860
|
-
|
|
2873
|
+
a(!1);
|
|
2861
2874
|
}), [f.current]);
|
|
2862
2875
|
return /* @__PURE__ */ b(_, { children: [
|
|
2863
|
-
/* @__PURE__ */ i(Ye, { visible: d, onClick:
|
|
2876
|
+
/* @__PURE__ */ i(Ye, { visible: d, onClick: p, children: /* @__PURE__ */ b(
|
|
2864
2877
|
An,
|
|
2865
2878
|
{
|
|
2866
2879
|
className: $(
|
|
@@ -2876,7 +2889,7 @@ const Ut = 300, T1 = ({
|
|
|
2876
2889
|
/* @__PURE__ */ i(
|
|
2877
2890
|
ve,
|
|
2878
2891
|
{
|
|
2879
|
-
onClick: () =>
|
|
2892
|
+
onClick: () => a(!1),
|
|
2880
2893
|
tabIndex: 0,
|
|
2881
2894
|
ref: h,
|
|
2882
2895
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
@@ -2887,13 +2900,13 @@ const Ut = 300, T1 = ({
|
|
|
2887
2900
|
}
|
|
2888
2901
|
) }),
|
|
2889
2902
|
oe.cloneElement(n, {
|
|
2890
|
-
onClick: (
|
|
2891
|
-
|
|
2903
|
+
onClick: (y) => {
|
|
2904
|
+
a(), g();
|
|
2892
2905
|
}
|
|
2893
2906
|
})
|
|
2894
2907
|
] });
|
|
2895
2908
|
}
|
|
2896
|
-
), An =
|
|
2909
|
+
), An = C.div`
|
|
2897
2910
|
font-family: ${(e) => {
|
|
2898
2911
|
var t;
|
|
2899
2912
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2921,32 +2934,32 @@ const Ut = 300, T1 = ({
|
|
|
2921
2934
|
},
|
|
2922
2935
|
onConfirm: s = () => {
|
|
2923
2936
|
},
|
|
2924
|
-
cancelLabel:
|
|
2937
|
+
cancelLabel: c = "",
|
|
2925
2938
|
confirmLabel: d = ""
|
|
2926
2939
|
}) => {
|
|
2927
|
-
const
|
|
2940
|
+
const a = L(), l = M(() => {
|
|
2928
2941
|
var h;
|
|
2929
|
-
r(), (h =
|
|
2942
|
+
r(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2930
2943
|
}, [r]), u = M(() => {
|
|
2931
2944
|
var h;
|
|
2932
|
-
s(), (h =
|
|
2945
|
+
s(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2933
2946
|
}, [s]);
|
|
2934
2947
|
return /* @__PURE__ */ b(
|
|
2935
2948
|
Fn,
|
|
2936
2949
|
{
|
|
2937
2950
|
className: e,
|
|
2938
2951
|
trigger: t,
|
|
2939
|
-
ref:
|
|
2952
|
+
ref: a,
|
|
2940
2953
|
onOverlayClick: l,
|
|
2941
2954
|
children: [
|
|
2942
2955
|
n && /* @__PURE__ */ i(Be, { children: n }),
|
|
2943
2956
|
o && /* @__PURE__ */ i(Be, { children: o }),
|
|
2944
2957
|
d && /* @__PURE__ */ i(Pn, { onClick: u, children: d }),
|
|
2945
|
-
|
|
2958
|
+
c && /* @__PURE__ */ i(jn, { onClick: l, children: c })
|
|
2946
2959
|
]
|
|
2947
2960
|
}
|
|
2948
2961
|
);
|
|
2949
|
-
}, Fn =
|
|
2962
|
+
}, Fn = C(On)`
|
|
2950
2963
|
display: block;
|
|
2951
2964
|
|
|
2952
2965
|
span {
|
|
@@ -2964,7 +2977,7 @@ const Ut = 300, T1 = ({
|
|
|
2964
2977
|
}};
|
|
2965
2978
|
}
|
|
2966
2979
|
}
|
|
2967
|
-
`, Pn =
|
|
2980
|
+
`, Pn = C(se)`
|
|
2968
2981
|
display: inline-block;
|
|
2969
2982
|
min-width: 50px;
|
|
2970
2983
|
${(e) => {
|
|
@@ -2994,7 +3007,7 @@ const Ut = 300, T1 = ({
|
|
|
2994
3007
|
&:focus-visible {
|
|
2995
3008
|
${O}
|
|
2996
3009
|
}
|
|
2997
|
-
`, jn =
|
|
3010
|
+
`, jn = C(se)`
|
|
2998
3011
|
display: inline-block;
|
|
2999
3012
|
min-width: 50px;
|
|
3000
3013
|
${(e) => {
|
|
@@ -3030,10 +3043,10 @@ const Ut = 300, T1 = ({
|
|
|
3030
3043
|
/* @__PURE__ */ i("span", { children: n }),
|
|
3031
3044
|
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
|
|
3032
3045
|
] })
|
|
3033
|
-
] }), Kn =
|
|
3046
|
+
] }), Kn = C.div`
|
|
3034
3047
|
display: flex;
|
|
3035
3048
|
flex-wrap: wrap;
|
|
3036
|
-
`, Yn =
|
|
3049
|
+
`, Yn = C.div`
|
|
3037
3050
|
${(e) => ie(e)(
|
|
3038
3051
|
"h2",
|
|
3039
3052
|
k`
|
|
@@ -3043,7 +3056,7 @@ const Ut = 300, T1 = ({
|
|
|
3043
3056
|
font-size: 7em;
|
|
3044
3057
|
`
|
|
3045
3058
|
)}
|
|
3046
|
-
`, Xn =
|
|
3059
|
+
`, Xn = C.div`
|
|
3047
3060
|
margin-left: ${(e) => {
|
|
3048
3061
|
var t;
|
|
3049
3062
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3070,7 +3083,7 @@ const Ut = 300, T1 = ({
|
|
|
3070
3083
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3071
3084
|
}};
|
|
3072
3085
|
}
|
|
3073
|
-
`, Un =
|
|
3086
|
+
`, Un = C.div`
|
|
3074
3087
|
margin-top: ${(e) => {
|
|
3075
3088
|
var t;
|
|
3076
3089
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3103,7 +3116,7 @@ class A1 extends ct {
|
|
|
3103
3116
|
this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
|
|
3104
3117
|
const o = n.querySelectorAll(
|
|
3105
3118
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3106
|
-
), s = [].filter.call(o, (
|
|
3119
|
+
), s = [].filter.call(o, (c) => typeof window > "u" ? !0 : !(window.getComputedStyle(c).display === "none" || c.offsetWidth <= 0 && c.offsetHeight <= 0))[0];
|
|
3107
3120
|
s && s.focus();
|
|
3108
3121
|
}));
|
|
3109
3122
|
}
|
|
@@ -3145,10 +3158,10 @@ const F1 = ({
|
|
|
3145
3158
|
timestamp: n
|
|
3146
3159
|
}) => /* @__PURE__ */ i("span", { className: $(e, "humany-timestamp"), children: Qn(n, t) }), Te = (e) => `0${e}`.slice(-2);
|
|
3147
3160
|
function Qn(e, t) {
|
|
3148
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(),
|
|
3161
|
+
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, d = n.getDate(), a = `${s}-${Te(c)}-${Te(
|
|
3149
3162
|
d
|
|
3150
3163
|
)}`;
|
|
3151
|
-
return t === "yyyy-mm-dd" ?
|
|
3164
|
+
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
|
|
3152
3165
|
}
|
|
3153
3166
|
const P1 = ({
|
|
3154
3167
|
className: e,
|
|
@@ -3157,9 +3170,9 @@ const P1 = ({
|
|
|
3157
3170
|
sticky: o = !1,
|
|
3158
3171
|
...r
|
|
3159
3172
|
}) => {
|
|
3160
|
-
const [s,
|
|
3161
|
-
const { target: g } =
|
|
3162
|
-
!
|
|
3173
|
+
const [s, c] = w(!1), d = L(U()), a = L(), [{ x: l, y: u }, h] = je(s, d.current, a.current), f = (p) => {
|
|
3174
|
+
const { target: g } = p;
|
|
3175
|
+
!a.current || !g || a.current !== g && !a.current.contains(g) && c(!1);
|
|
3163
3176
|
};
|
|
3164
3177
|
v(() => {
|
|
3165
3178
|
if (o)
|
|
@@ -3168,20 +3181,20 @@ const P1 = ({
|
|
|
3168
3181
|
};
|
|
3169
3182
|
}, [s, o]);
|
|
3170
3183
|
const m = M(
|
|
3171
|
-
(
|
|
3172
|
-
h(
|
|
3184
|
+
(p, g) => {
|
|
3185
|
+
h(p, a.current), c(g);
|
|
3173
3186
|
},
|
|
3174
|
-
[h,
|
|
3187
|
+
[h, c]
|
|
3175
3188
|
);
|
|
3176
3189
|
return /* @__PURE__ */ b(
|
|
3177
3190
|
Gn,
|
|
3178
3191
|
{
|
|
3179
|
-
ref:
|
|
3192
|
+
ref: a,
|
|
3180
3193
|
className: "humany-tooltip-trigger",
|
|
3181
|
-
onMouseEnter: o ? void 0 : (
|
|
3182
|
-
onMouseLeave: o ? void 0 : (
|
|
3183
|
-
onTouchEnd: o ? (
|
|
3184
|
-
onClick: o ? (
|
|
3194
|
+
onMouseEnter: o ? void 0 : (p) => m(p, !0),
|
|
3195
|
+
onMouseLeave: o ? void 0 : (p) => m(p, !1),
|
|
3196
|
+
onTouchEnd: o ? (p) => m(p, !s) : void 0,
|
|
3197
|
+
onClick: o ? (p) => m(p, !s) : void 0,
|
|
3185
3198
|
children: [
|
|
3186
3199
|
t,
|
|
3187
3200
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
@@ -3197,10 +3210,10 @@ const P1 = ({
|
|
|
3197
3210
|
]
|
|
3198
3211
|
}
|
|
3199
3212
|
);
|
|
3200
|
-
}, Gn =
|
|
3213
|
+
}, Gn = C.div`
|
|
3201
3214
|
display: flex;
|
|
3202
3215
|
align-items: center;
|
|
3203
|
-
`, Jn =
|
|
3216
|
+
`, Jn = C.div`
|
|
3204
3217
|
color: #ffffff;
|
|
3205
3218
|
background: #161616;
|
|
3206
3219
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3243,33 +3256,33 @@ const P1 = ({
|
|
|
3243
3256
|
unmountOnExit: o = !0,
|
|
3244
3257
|
timeout: r,
|
|
3245
3258
|
children: s,
|
|
3246
|
-
transitions:
|
|
3247
|
-
} = e,
|
|
3259
|
+
transitions: c
|
|
3260
|
+
} = e, a = (() => {
|
|
3248
3261
|
var l, u;
|
|
3249
|
-
if (!(!
|
|
3250
|
-
if (typeof
|
|
3262
|
+
if (!(!c || c === "none")) {
|
|
3263
|
+
if (typeof c == "string")
|
|
3251
3264
|
return {
|
|
3252
3265
|
enter: {
|
|
3253
|
-
transitionKeys:
|
|
3266
|
+
transitionKeys: c,
|
|
3254
3267
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3255
3268
|
easing: "ease-in"
|
|
3256
3269
|
},
|
|
3257
3270
|
exit: {
|
|
3258
|
-
transitionKeys:
|
|
3271
|
+
transitionKeys: c,
|
|
3259
3272
|
duration: r ? typeof r == "number" ? r : r.exit : 200,
|
|
3260
3273
|
easing: "ease-out"
|
|
3261
3274
|
}
|
|
3262
3275
|
};
|
|
3263
|
-
if (typeof
|
|
3264
|
-
const { enter: h, exit: f } =
|
|
3276
|
+
if (typeof c == "object") {
|
|
3277
|
+
const { enter: h, exit: f } = c;
|
|
3265
3278
|
return {
|
|
3266
3279
|
enter: {
|
|
3267
|
-
transitionKeys: (l =
|
|
3280
|
+
transitionKeys: (l = c.enter) == null ? void 0 : l.type,
|
|
3268
3281
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3269
3282
|
easing: h.easing ? h.easing : "ease-in"
|
|
3270
3283
|
},
|
|
3271
3284
|
exit: {
|
|
3272
|
-
transitionKeys: (u =
|
|
3285
|
+
transitionKeys: (u = c.enter) == null ? void 0 : u.type,
|
|
3273
3286
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3274
3287
|
easing: f.easing ? f.easing : "ease-out"
|
|
3275
3288
|
}
|
|
@@ -3281,15 +3294,15 @@ const P1 = ({
|
|
|
3281
3294
|
ut,
|
|
3282
3295
|
{
|
|
3283
3296
|
timeout: {
|
|
3284
|
-
enter:
|
|
3285
|
-
exit:
|
|
3297
|
+
enter: a && a.enter.duration || 0,
|
|
3298
|
+
exit: a && a.exit.duration || 0
|
|
3286
3299
|
},
|
|
3287
3300
|
in: t,
|
|
3288
3301
|
appear: !0,
|
|
3289
3302
|
mountOnEnter: n,
|
|
3290
3303
|
unmountOnExit: o,
|
|
3291
3304
|
onEnter: (l) => l.clientHeight,
|
|
3292
|
-
children: (l) => s && s(l,
|
|
3305
|
+
children: (l) => s && s(l, a && he.compose(l, a))
|
|
3293
3306
|
}
|
|
3294
3307
|
);
|
|
3295
3308
|
}, e1 = H(
|
|
@@ -3301,27 +3314,27 @@ const P1 = ({
|
|
|
3301
3314
|
widgetName: o,
|
|
3302
3315
|
activationOptions: r,
|
|
3303
3316
|
...s
|
|
3304
|
-
},
|
|
3305
|
-
const d = T(),
|
|
3317
|
+
}, c) => {
|
|
3318
|
+
const d = T(), a = () => {
|
|
3306
3319
|
const { implementation: h } = d.get("$widget");
|
|
3307
3320
|
return h.widgets.get(o);
|
|
3308
3321
|
};
|
|
3309
3322
|
v(() => {
|
|
3310
|
-
const h =
|
|
3323
|
+
const h = a();
|
|
3311
3324
|
return h == null || h.activate(r).then(() => h.invoke("attach")), () => {
|
|
3312
3325
|
h == null || h.deactivate();
|
|
3313
3326
|
};
|
|
3314
3327
|
}, [o]);
|
|
3315
3328
|
const l = (h) => {
|
|
3316
|
-
const f =
|
|
3329
|
+
const f = a(), m = h.currentTarget;
|
|
3317
3330
|
if (f) {
|
|
3318
|
-
const
|
|
3331
|
+
const p = () => {
|
|
3319
3332
|
f.invoke("renderState").then(
|
|
3320
3333
|
(g) => g === ne.open ? f.invoke("close") : f.invoke("open")
|
|
3321
3334
|
).then(() => {
|
|
3322
3335
|
f.events.subscribeOnce(
|
|
3323
3336
|
"widget:area-rendered",
|
|
3324
|
-
(g,
|
|
3337
|
+
(g, y) => {
|
|
3325
3338
|
d.get(
|
|
3326
3339
|
"widgetDOMElement"
|
|
3327
3340
|
) && f.events.dispatch("widget:modal-opened", {
|
|
@@ -3332,7 +3345,7 @@ const P1 = ({
|
|
|
3332
3345
|
);
|
|
3333
3346
|
});
|
|
3334
3347
|
};
|
|
3335
|
-
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(
|
|
3348
|
+
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(p) : p();
|
|
3336
3349
|
}
|
|
3337
3350
|
}, u = (h) => {
|
|
3338
3351
|
h.key === "Enter" && (h.preventDefault(), l(h));
|
|
@@ -3346,7 +3359,7 @@ const P1 = ({
|
|
|
3346
3359
|
n(h), l(h);
|
|
3347
3360
|
},
|
|
3348
3361
|
...s,
|
|
3349
|
-
ref:
|
|
3362
|
+
ref: c,
|
|
3350
3363
|
children: t
|
|
3351
3364
|
}
|
|
3352
3365
|
);
|
|
@@ -3356,8 +3369,8 @@ const P1 = ({
|
|
|
3356
3369
|
const r = T(), s = re(() => {
|
|
3357
3370
|
if (!r)
|
|
3358
3371
|
return null;
|
|
3359
|
-
const
|
|
3360
|
-
return !
|
|
3372
|
+
const c = r.get("widgetDOMElement");
|
|
3373
|
+
return !c || !c.childElementCount ? null : c.children[0];
|
|
3361
3374
|
}, [r]);
|
|
3362
3375
|
return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
|
|
3363
3376
|
t1,
|
|
@@ -3371,7 +3384,7 @@ const P1 = ({
|
|
|
3371
3384
|
}
|
|
3372
3385
|
) }) : null;
|
|
3373
3386
|
}
|
|
3374
|
-
), t1 =
|
|
3387
|
+
), t1 = C.div`
|
|
3375
3388
|
background-color: #ffffff;
|
|
3376
3389
|
position: absolute;
|
|
3377
3390
|
top: 0;
|
|
@@ -3392,16 +3405,16 @@ export {
|
|
|
3392
3405
|
p1 as Checkbox,
|
|
3393
3406
|
Tt as ColumnContext,
|
|
3394
3407
|
Ze as ComponentNodeContext,
|
|
3395
|
-
|
|
3408
|
+
Vt as ComponentPropertyContext,
|
|
3396
3409
|
I1 as Confirm,
|
|
3397
3410
|
Bt as ContainerContext,
|
|
3398
3411
|
Wt as ConversationContext,
|
|
3399
3412
|
qn as DateFormats,
|
|
3400
3413
|
T1 as Drawer,
|
|
3401
3414
|
Xt as DrawerAnimationType,
|
|
3402
|
-
|
|
3415
|
+
V1 as Dropdown,
|
|
3403
3416
|
nn as Empty,
|
|
3404
|
-
|
|
3417
|
+
N1 as Grid,
|
|
3405
3418
|
Ke as Html,
|
|
3406
3419
|
sn as Icon,
|
|
3407
3420
|
W1 as Input,
|
|
@@ -3416,7 +3429,7 @@ export {
|
|
|
3416
3429
|
cn as Paragraph,
|
|
3417
3430
|
q as Portal,
|
|
3418
3431
|
un as RouteLink,
|
|
3419
|
-
|
|
3432
|
+
Nt as RoutingContext,
|
|
3420
3433
|
Be as StyledText,
|
|
3421
3434
|
Q as SymbolBadge,
|
|
3422
3435
|
A1 as TabStop,
|
|
@@ -3461,7 +3474,7 @@ export {
|
|
|
3461
3474
|
Zt as useContext,
|
|
3462
3475
|
x1 as useConversation,
|
|
3463
3476
|
w1 as useDispatch,
|
|
3464
|
-
|
|
3477
|
+
N as useEventListener,
|
|
3465
3478
|
It as useEvents,
|
|
3466
3479
|
W as useIsMounted,
|
|
3467
3480
|
k1 as useIsTabbing,
|