@telia-ace/widget-ui 1.3.0-rc.9 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/paragraph.d.ts +2 -2
- package/index.js +61 -61
- package/index.mjs +411 -401
- 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,
|
|
@@ -1923,27 +1923,37 @@ const Ut = 300, T1 = ({
|
|
|
1923
1923
|
...D(r),
|
|
1924
1924
|
ref: s,
|
|
1925
1925
|
children: t.map(
|
|
1926
|
-
(
|
|
1926
|
+
(c, d, a) => o ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(c, d, a) }, c.id || d) : n(c, d, a)
|
|
1927
1927
|
)
|
|
1928
1928
|
}
|
|
1929
1929
|
)
|
|
1930
1930
|
), 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
|
-
|
|
1931
|
+
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, d) => {
|
|
1932
|
+
var l;
|
|
1933
|
+
const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
|
|
1934
|
+
return /* @__PURE__ */ b(
|
|
1935
|
+
"div",
|
|
1936
|
+
{
|
|
1937
|
+
className: $(o, "humany-paragraph"),
|
|
1938
|
+
...D(c),
|
|
1939
|
+
ref: d,
|
|
1940
|
+
children: [
|
|
1941
|
+
n ? /* @__PURE__ */ b(
|
|
1942
|
+
X,
|
|
1943
|
+
{
|
|
1944
|
+
variant: a && a.match(/h1|h2|h3|h4|h5|h6/) ? a : "h1",
|
|
1945
|
+
children: [
|
|
1946
|
+
s ? /* @__PURE__ */ i(Q, { symbol: s }) : null,
|
|
1947
|
+
n
|
|
1948
|
+
]
|
|
1949
|
+
}
|
|
1950
|
+
) : null,
|
|
1951
|
+
t ? /* @__PURE__ */ i(Ke, { html: t, htmlParseInstruction: r }) : null,
|
|
1952
|
+
e ? /* @__PURE__ */ i(be, { children: e }) : null
|
|
1953
|
+
]
|
|
1954
|
+
}
|
|
1955
|
+
);
|
|
1956
|
+
}
|
|
1947
1957
|
), ln = H(
|
|
1948
1958
|
({
|
|
1949
1959
|
header: e,
|
|
@@ -1952,9 +1962,9 @@ const Ut = 300, T1 = ({
|
|
|
1952
1962
|
html: o,
|
|
1953
1963
|
className: r,
|
|
1954
1964
|
children: s,
|
|
1955
|
-
symbol:
|
|
1965
|
+
symbol: c,
|
|
1956
1966
|
items: d,
|
|
1957
|
-
renderItem:
|
|
1967
|
+
renderItem: a,
|
|
1958
1968
|
renderLi: l,
|
|
1959
1969
|
ulProps: u,
|
|
1960
1970
|
...h
|
|
@@ -1966,12 +1976,12 @@ const Ut = 300, T1 = ({
|
|
|
1966
1976
|
...D(h),
|
|
1967
1977
|
ref: f,
|
|
1968
1978
|
children: [
|
|
1969
|
-
t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol:
|
|
1979
|
+
t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol: c, header: e, text: n, html: o }) : null),
|
|
1970
1980
|
d.length ? /* @__PURE__ */ i(
|
|
1971
1981
|
an,
|
|
1972
1982
|
{
|
|
1973
1983
|
items: d,
|
|
1974
|
-
renderItem:
|
|
1984
|
+
renderItem: a,
|
|
1975
1985
|
renderLi: l,
|
|
1976
1986
|
...u
|
|
1977
1987
|
}
|
|
@@ -1987,32 +1997,32 @@ const Ut = 300, T1 = ({
|
|
|
1987
1997
|
rootItem: o,
|
|
1988
1998
|
renderUnselected: r = !0,
|
|
1989
1999
|
renderEmpty: s = !0,
|
|
1990
|
-
ulProps:
|
|
2000
|
+
ulProps: c,
|
|
1991
2001
|
liProps: d
|
|
1992
2002
|
}) => {
|
|
1993
|
-
const
|
|
2003
|
+
const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected), u = (h, f) => /* @__PURE__ */ i(
|
|
1994
2004
|
ln,
|
|
1995
2005
|
{
|
|
1996
2006
|
className: $(`humany-item-tree-level-${f}`),
|
|
1997
2007
|
items: h,
|
|
1998
|
-
ulProps:
|
|
2008
|
+
ulProps: c,
|
|
1999
2009
|
renderItem: (m) => {
|
|
2000
|
-
const { id:
|
|
2010
|
+
const { id: p, selected: g, items: y, matches: S } = m, R = g && l(y);
|
|
2001
2011
|
return !s && !S ? null : /* @__PURE__ */ at(
|
|
2002
2012
|
"li",
|
|
2003
2013
|
{
|
|
2004
2014
|
...D(d),
|
|
2005
|
-
key:
|
|
2015
|
+
key: p,
|
|
2006
2016
|
className: "humany-item-tree-item"
|
|
2007
2017
|
},
|
|
2008
2018
|
n && n(m, f, R),
|
|
2009
|
-
|
|
2019
|
+
y && (r || R) && u(y, f + 1)
|
|
2010
2020
|
);
|
|
2011
2021
|
}
|
|
2012
2022
|
}
|
|
2013
2023
|
);
|
|
2014
2024
|
return /* @__PURE__ */ b("div", { className: $(e, "humany-item-tree"), children: [
|
|
2015
|
-
o && o(!
|
|
2025
|
+
o && o(!a(t || [])),
|
|
2016
2026
|
t && u(t, 1)
|
|
2017
2027
|
] });
|
|
2018
2028
|
}, un = H(
|
|
@@ -2024,10 +2034,10 @@ const Ut = 300, T1 = ({
|
|
|
2024
2034
|
to: o = "",
|
|
2025
2035
|
params: r = {},
|
|
2026
2036
|
children: s,
|
|
2027
|
-
...
|
|
2037
|
+
...c
|
|
2028
2038
|
}, d) => {
|
|
2029
|
-
const
|
|
2030
|
-
if (!
|
|
2039
|
+
const a = Oe(), l = T();
|
|
2040
|
+
if (!a)
|
|
2031
2041
|
return null;
|
|
2032
2042
|
let u = "";
|
|
2033
2043
|
const h = {
|
|
@@ -2035,11 +2045,11 @@ const Ut = 300, T1 = ({
|
|
|
2035
2045
|
className: $(e, "humany-route-link"),
|
|
2036
2046
|
to: u,
|
|
2037
2047
|
innerRef: d,
|
|
2038
|
-
...
|
|
2048
|
+
...c,
|
|
2039
2049
|
ref: null
|
|
2040
2050
|
};
|
|
2041
2051
|
if (n) {
|
|
2042
|
-
if (!(
|
|
2052
|
+
if (!(a.routes || []).find((g) => g.name === n))
|
|
2043
2053
|
return process.env.NODE_ENV !== "production" && ue.warn(
|
|
2044
2054
|
`Unable to create route. No route named "${n}" exist.`
|
|
2045
2055
|
), /* @__PURE__ */ i(
|
|
@@ -2054,27 +2064,27 @@ const Ut = 300, T1 = ({
|
|
|
2054
2064
|
children: s
|
|
2055
2065
|
}
|
|
2056
2066
|
);
|
|
2057
|
-
const
|
|
2058
|
-
(g,
|
|
2059
|
-
const S = r[
|
|
2067
|
+
const p = Object.keys(r).reduce(
|
|
2068
|
+
(g, y) => {
|
|
2069
|
+
const S = r[y];
|
|
2060
2070
|
if (Array.isArray(S)) {
|
|
2061
2071
|
if (S.length === 0)
|
|
2062
2072
|
return g;
|
|
2063
|
-
g[
|
|
2073
|
+
g[y] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
|
|
2064
2074
|
} else
|
|
2065
|
-
g[
|
|
2075
|
+
g[y] = typeof S == "string" ? encodeURIComponent(S) : S;
|
|
2066
2076
|
return g;
|
|
2067
2077
|
},
|
|
2068
2078
|
{}
|
|
2069
2079
|
);
|
|
2070
2080
|
try {
|
|
2071
|
-
u =
|
|
2081
|
+
u = a.generate(n, p || {});
|
|
2072
2082
|
} catch {
|
|
2073
2083
|
return /* @__PURE__ */ i(de, { ...h, ref: h.innerRef, children: s });
|
|
2074
2084
|
}
|
|
2075
|
-
u &&
|
|
2076
|
-
} else if (o &&
|
|
2077
|
-
u =
|
|
2085
|
+
u && a.settings.mode && a.settings.mode === ze.browser && u[0] !== "/" && (u = `/${u}`);
|
|
2086
|
+
} else if (o && a.history)
|
|
2087
|
+
u = a.history.createHref({
|
|
2078
2088
|
hash: "",
|
|
2079
2089
|
pathname: o,
|
|
2080
2090
|
search: "",
|
|
@@ -2084,84 +2094,84 @@ const Ut = 300, T1 = ({
|
|
|
2084
2094
|
return process.env.NODE_ENV !== "production" && ue.warn(
|
|
2085
2095
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2086
2096
|
), null;
|
|
2087
|
-
if (
|
|
2097
|
+
if (a.settings && a.settings.mode === ze.scopedHash) {
|
|
2088
2098
|
const f = l.get("$widget").name;
|
|
2089
2099
|
u = bt(u, f);
|
|
2090
2100
|
}
|
|
2091
2101
|
return h.as ? /* @__PURE__ */ i(dn, { ...h, as: h.as, children: s }) : /* @__PURE__ */ i(de, { ...h, to: u, children: s });
|
|
2092
2102
|
}
|
|
2093
|
-
), dn =
|
|
2103
|
+
), dn = C.span``, xe = H(
|
|
2094
2104
|
({
|
|
2095
2105
|
className: e,
|
|
2096
2106
|
disabled: t = !1,
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
onClick: r = () => {
|
|
2107
|
+
tabIndex: n = 0,
|
|
2108
|
+
onClick: o = () => {
|
|
2100
2109
|
},
|
|
2101
|
-
onKeyDown:
|
|
2110
|
+
onKeyDown: r = () => {
|
|
2102
2111
|
},
|
|
2103
|
-
title:
|
|
2104
|
-
as:
|
|
2105
|
-
href:
|
|
2106
|
-
children:
|
|
2107
|
-
target:
|
|
2108
|
-
routeName:
|
|
2109
|
-
params:
|
|
2110
|
-
...
|
|
2111
|
-
},
|
|
2112
|
-
const
|
|
2113
|
-
title:
|
|
2112
|
+
title: s,
|
|
2113
|
+
as: c,
|
|
2114
|
+
href: d,
|
|
2115
|
+
children: a,
|
|
2116
|
+
target: l,
|
|
2117
|
+
routeName: u,
|
|
2118
|
+
params: h,
|
|
2119
|
+
...f
|
|
2120
|
+
}, m) => {
|
|
2121
|
+
const p = {
|
|
2122
|
+
title: s,
|
|
2123
|
+
role: u === "index" ? "button" : void 0,
|
|
2124
|
+
"aria-expanded": u === "index" ? "false" : void 0,
|
|
2114
2125
|
disabled: t,
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
tabIndex: o,
|
|
2126
|
+
as: c,
|
|
2127
|
+
tabIndex: n,
|
|
2118
2128
|
className: $(e, "humany-link", [
|
|
2119
2129
|
!!t,
|
|
2120
2130
|
"humany-disabled"
|
|
2121
2131
|
]),
|
|
2122
|
-
onClick: (
|
|
2123
|
-
if (
|
|
2124
|
-
|
|
2132
|
+
onClick: (g) => {
|
|
2133
|
+
if (g.persist(), t) {
|
|
2134
|
+
g.preventDefault();
|
|
2125
2135
|
return;
|
|
2126
2136
|
}
|
|
2127
|
-
|
|
2137
|
+
o(g);
|
|
2128
2138
|
},
|
|
2129
|
-
onKeyDown: (
|
|
2130
|
-
if (
|
|
2131
|
-
|
|
2139
|
+
onKeyDown: (g) => {
|
|
2140
|
+
if (g.persist(), t) {
|
|
2141
|
+
g.key !== "Tab" && g.preventDefault();
|
|
2132
2142
|
return;
|
|
2133
2143
|
}
|
|
2134
|
-
|
|
2144
|
+
r(g);
|
|
2135
2145
|
}
|
|
2136
2146
|
};
|
|
2137
|
-
return
|
|
2147
|
+
return f["data-client-name"] === "custom.link" && (p.role = "link"), u ? /* @__PURE__ */ i(
|
|
2138
2148
|
hn,
|
|
2139
2149
|
{
|
|
2140
|
-
name:
|
|
2141
|
-
params:
|
|
2142
|
-
...
|
|
2143
|
-
...D(
|
|
2144
|
-
ref:
|
|
2145
|
-
children:
|
|
2150
|
+
name: u,
|
|
2151
|
+
params: h,
|
|
2152
|
+
...p,
|
|
2153
|
+
...D(f),
|
|
2154
|
+
ref: m,
|
|
2155
|
+
children: a
|
|
2146
2156
|
}
|
|
2147
2157
|
) : /* @__PURE__ */ i(
|
|
2148
2158
|
fn,
|
|
2149
2159
|
{
|
|
2150
|
-
href:
|
|
2151
|
-
target:
|
|
2152
|
-
...
|
|
2153
|
-
...D(
|
|
2154
|
-
ref:
|
|
2155
|
-
children:
|
|
2160
|
+
href: d,
|
|
2161
|
+
target: l,
|
|
2162
|
+
...p,
|
|
2163
|
+
...D(f),
|
|
2164
|
+
ref: m,
|
|
2165
|
+
children: a
|
|
2156
2166
|
}
|
|
2157
2167
|
);
|
|
2158
2168
|
}
|
|
2159
|
-
), hn =
|
|
2169
|
+
), hn = C(un)`
|
|
2160
2170
|
${(e) => e.disabled ? `
|
|
2161
2171
|
pointer-events: none;
|
|
2162
2172
|
opacity: .7;
|
|
2163
2173
|
` : "cursor: pointer;"}
|
|
2164
|
-
`, fn =
|
|
2174
|
+
`, fn = C.a`
|
|
2165
2175
|
${(e) => e.disabled ? `
|
|
2166
2176
|
pointer-events: none;
|
|
2167
2177
|
opacity: .7;
|
|
@@ -2174,14 +2184,14 @@ const Ut = 300, T1 = ({
|
|
|
2174
2184
|
},
|
|
2175
2185
|
...r
|
|
2176
2186
|
}) => {
|
|
2177
|
-
const s = L(),
|
|
2187
|
+
const s = L(), c = M(
|
|
2178
2188
|
(d) => {
|
|
2179
2189
|
d.target === s.current && o(d);
|
|
2180
2190
|
},
|
|
2181
2191
|
[o]
|
|
2182
2192
|
);
|
|
2183
2193
|
return /* @__PURE__ */ i(
|
|
2184
|
-
|
|
2194
|
+
Ne,
|
|
2185
2195
|
{
|
|
2186
2196
|
in: e,
|
|
2187
2197
|
className: "humany-overlay-transition",
|
|
@@ -2194,14 +2204,14 @@ const Ut = 300, T1 = ({
|
|
|
2194
2204
|
className: "humany-overlay",
|
|
2195
2205
|
duration: t,
|
|
2196
2206
|
ref: s,
|
|
2197
|
-
onClick:
|
|
2207
|
+
onClick: c,
|
|
2198
2208
|
...r,
|
|
2199
2209
|
children: n
|
|
2200
2210
|
}
|
|
2201
2211
|
) })
|
|
2202
2212
|
}
|
|
2203
2213
|
);
|
|
2204
|
-
}, mn =
|
|
2214
|
+
}, mn = C.div`
|
|
2205
2215
|
background: rgba(0, 0, 0, 0.6);
|
|
2206
2216
|
min-width: 100%;
|
|
2207
2217
|
min-height: 100%;
|
|
@@ -2231,11 +2241,11 @@ const Ut = 300, T1 = ({
|
|
|
2231
2241
|
&.humany-overlay-transition-exit-done {
|
|
2232
2242
|
opacity: 0;
|
|
2233
2243
|
}
|
|
2234
|
-
`, gn =
|
|
2244
|
+
`, gn = Ve`
|
|
2235
2245
|
100% {
|
|
2236
2246
|
transform: rotate(360deg);
|
|
2237
2247
|
}
|
|
2238
|
-
`, pn =
|
|
2248
|
+
`, pn = Ve`
|
|
2239
2249
|
0% {
|
|
2240
2250
|
stroke-dasharray: 1, 200;
|
|
2241
2251
|
stroke-dashoffset: 0;
|
|
@@ -2248,7 +2258,7 @@ const Ut = 300, T1 = ({
|
|
|
2248
2258
|
stroke-dasharray: 89, 200;
|
|
2249
2259
|
stroke-dashoffset: -124px;
|
|
2250
2260
|
}
|
|
2251
|
-
`, Cn =
|
|
2261
|
+
`, Cn = C.svg`
|
|
2252
2262
|
animation: ${gn} 2s linear infinite;
|
|
2253
2263
|
height: 100%;
|
|
2254
2264
|
transform-origin: center center;
|
|
@@ -2260,7 +2270,7 @@ const Ut = 300, T1 = ({
|
|
|
2260
2270
|
right: 0;
|
|
2261
2271
|
margin: auto;
|
|
2262
2272
|
transition: 200ms ease-out opacity;
|
|
2263
|
-
`, yn =
|
|
2273
|
+
`, yn = C.div`
|
|
2264
2274
|
position: absolute;
|
|
2265
2275
|
top: 0;
|
|
2266
2276
|
bottom: 0;
|
|
@@ -2278,7 +2288,7 @@ const Ut = 300, T1 = ({
|
|
|
2278
2288
|
svg {
|
|
2279
2289
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2280
2290
|
}
|
|
2281
|
-
`, bn =
|
|
2291
|
+
`, bn = C.div`
|
|
2282
2292
|
position: relative;
|
|
2283
2293
|
margin: 0 auto;
|
|
2284
2294
|
width: 100px;
|
|
@@ -2287,7 +2297,7 @@ const Ut = 300, T1 = ({
|
|
|
2287
2297
|
display: block;
|
|
2288
2298
|
padding-top: 100%;
|
|
2289
2299
|
}
|
|
2290
|
-
`, vn =
|
|
2300
|
+
`, vn = C.circle`
|
|
2291
2301
|
stroke-dasharray: 1, 200;
|
|
2292
2302
|
stroke-dashoffset: 0;
|
|
2293
2303
|
animation: ${pn} 1.5s ease-in-out infinite;
|
|
@@ -2320,41 +2330,41 @@ const Ut = 300, T1 = ({
|
|
|
2320
2330
|
changeZoom: n,
|
|
2321
2331
|
...o
|
|
2322
2332
|
}) => {
|
|
2323
|
-
var
|
|
2324
|
-
const r = L(null), [s,
|
|
2333
|
+
var p;
|
|
2334
|
+
const r = L(null), [s, c] = w(!1), [d, a] = w(!1), { width: l, height: u, ...h } = o.style || {}, f = M(() => {
|
|
2325
2335
|
const g = r.current;
|
|
2326
2336
|
if (g) {
|
|
2327
|
-
const
|
|
2328
|
-
return S >= 1 &&
|
|
2337
|
+
const y = window.innerWidth / g.naturalWidth, S = window.innerHeight / g.naturalHeight, R = Math.min(y, S);
|
|
2338
|
+
return S >= 1 && y >= 1 ? 1 : R;
|
|
2329
2339
|
}
|
|
2330
2340
|
return 1;
|
|
2331
2341
|
}, [s, t.src]), m = re(() => {
|
|
2332
2342
|
const g = r.current;
|
|
2333
2343
|
if (g && s) {
|
|
2334
2344
|
if (!d) {
|
|
2335
|
-
|
|
2336
|
-
const
|
|
2337
|
-
n(
|
|
2345
|
+
a(!0);
|
|
2346
|
+
const y = f();
|
|
2347
|
+
n(y);
|
|
2338
2348
|
}
|
|
2339
2349
|
return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
|
|
2340
2350
|
}
|
|
2341
2351
|
return null;
|
|
2342
2352
|
}, [e, r, s, t.src]);
|
|
2343
|
-
return v(() => (
|
|
2344
|
-
|
|
2353
|
+
return v(() => (c(!1), function() {
|
|
2354
|
+
a(!1);
|
|
2345
2355
|
}), [t.src]), /* @__PURE__ */ b(_, { children: [
|
|
2346
2356
|
/* @__PURE__ */ i(kn, { loading: !s }),
|
|
2347
2357
|
/* @__PURE__ */ i(
|
|
2348
2358
|
$n,
|
|
2349
2359
|
{
|
|
2350
2360
|
onLoad: () => {
|
|
2351
|
-
|
|
2361
|
+
c(!0);
|
|
2352
2362
|
},
|
|
2353
2363
|
ref: r,
|
|
2354
2364
|
imageSize: m,
|
|
2355
2365
|
draggable: "false",
|
|
2356
2366
|
...o,
|
|
2357
|
-
alt: ((
|
|
2367
|
+
alt: ((p = o.alt) == null ? void 0 : p.toString()) || "",
|
|
2358
2368
|
style: h,
|
|
2359
2369
|
src: t.src,
|
|
2360
2370
|
loaded: s
|
|
@@ -2362,11 +2372,11 @@ const Ut = 300, T1 = ({
|
|
|
2362
2372
|
),
|
|
2363
2373
|
/* @__PURE__ */ i(Ln, {})
|
|
2364
2374
|
] });
|
|
2365
|
-
}, kn =
|
|
2375
|
+
}, kn = C(xn)`
|
|
2366
2376
|
svg circle {
|
|
2367
2377
|
stroke: #ffffff;
|
|
2368
2378
|
}
|
|
2369
|
-
`, $n =
|
|
2379
|
+
`, $n = C.img`
|
|
2370
2380
|
transform: none;
|
|
2371
2381
|
|
|
2372
2382
|
${(e) => e.imageSize && k`
|
|
@@ -2377,7 +2387,7 @@ const Ut = 300, T1 = ({
|
|
|
2377
2387
|
vertical-align: middle;
|
|
2378
2388
|
position: relative;
|
|
2379
2389
|
${(e) => !e.loaded && "display:none;"}
|
|
2380
|
-
`, Ln =
|
|
2390
|
+
`, Ln = C.div`
|
|
2381
2391
|
height: 100%;
|
|
2382
2392
|
display: inline-block;
|
|
2383
2393
|
vertical-align: middle;
|
|
@@ -2390,16 +2400,16 @@ const Ut = 300, T1 = ({
|
|
|
2390
2400
|
return [t, o];
|
|
2391
2401
|
}, Sn = ({ attrs: e, htmlBody: t }) => {
|
|
2392
2402
|
var Se;
|
|
2393
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s,
|
|
2403
|
+
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
2404
|
v(() => {
|
|
2395
|
-
n &&
|
|
2405
|
+
n && p(null);
|
|
2396
2406
|
}, [n]), v(() => {
|
|
2397
|
-
|
|
2407
|
+
c(1);
|
|
2398
2408
|
}, [m]), v(() => {
|
|
2399
2409
|
var I, ee;
|
|
2400
2410
|
if (m === null || R.current === null)
|
|
2401
2411
|
return;
|
|
2402
|
-
const x = R.current.firstElementChild, E = (I =
|
|
2412
|
+
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
2413
|
if (g === "Right")
|
|
2404
2414
|
J && B ? B.focus() : G && E && E.focus();
|
|
2405
2415
|
else if (g === "Left")
|
|
@@ -2409,7 +2419,7 @@ const Ut = 300, T1 = ({
|
|
|
2409
2419
|
return;
|
|
2410
2420
|
x.focus();
|
|
2411
2421
|
}
|
|
2412
|
-
}, [m, R,
|
|
2422
|
+
}, [m, R, V, g]), v(() => {
|
|
2413
2423
|
if (o) {
|
|
2414
2424
|
if (G)
|
|
2415
2425
|
return Le();
|
|
@@ -2441,15 +2451,15 @@ const Ut = 300, T1 = ({
|
|
|
2441
2451
|
const { src: x } = e;
|
|
2442
2452
|
if (x) {
|
|
2443
2453
|
const E = A.findIndex((B, I) => B.src === x);
|
|
2444
|
-
|
|
2454
|
+
p(E);
|
|
2445
2455
|
}
|
|
2446
2456
|
}, [A, e]), Qe = M((x) => {
|
|
2447
|
-
|
|
2457
|
+
p(null);
|
|
2448
2458
|
}, []), $e = M(
|
|
2449
2459
|
(x) => {
|
|
2450
|
-
|
|
2460
|
+
c(x ? s + s * 0.25 : s - s * 0.25);
|
|
2451
2461
|
},
|
|
2452
|
-
[
|
|
2462
|
+
[c, s]
|
|
2453
2463
|
), Ge = M(() => {
|
|
2454
2464
|
if (m !== null) {
|
|
2455
2465
|
const { src: x } = A[m];
|
|
@@ -2458,7 +2468,7 @@ const Ut = 300, T1 = ({
|
|
|
2458
2468
|
}, [A, m]), Je = M(
|
|
2459
2469
|
(x) => {
|
|
2460
2470
|
const E = z.current;
|
|
2461
|
-
E && (
|
|
2471
|
+
E && (a({
|
|
2462
2472
|
top: E.scrollTop,
|
|
2463
2473
|
left: E.scrollLeft,
|
|
2464
2474
|
x: x.clientX,
|
|
@@ -2487,20 +2497,20 @@ const Ut = 300, T1 = ({
|
|
|
2487
2497
|
}
|
|
2488
2498
|
return !1;
|
|
2489
2499
|
}, [z, s]), Le = () => {
|
|
2490
|
-
m !== null && (
|
|
2500
|
+
m !== null && (y("Left"), p(m - 1));
|
|
2491
2501
|
}, Me = () => {
|
|
2492
|
-
m !== null && (
|
|
2502
|
+
m !== null && (y("Right"), p(m + 1));
|
|
2493
2503
|
}, G = m !== null && m > 0 && A.length > 1, J = m !== null && A.length - 1 > m;
|
|
2494
2504
|
return /* @__PURE__ */ b(_, { children: [
|
|
2495
2505
|
/* @__PURE__ */ i(Ye, { visible: m !== null, onClick: Qe, children: /* @__PURE__ */ b(
|
|
2496
|
-
|
|
2506
|
+
Vn,
|
|
2497
2507
|
{
|
|
2498
2508
|
onMouseDown: () => f(),
|
|
2499
2509
|
onMouseMove: () => f(),
|
|
2500
2510
|
onTouchStart: () => f(),
|
|
2501
2511
|
onKeyDown: () => f(),
|
|
2502
2512
|
children: [
|
|
2503
|
-
/* @__PURE__ */ i(
|
|
2513
|
+
/* @__PURE__ */ i(Nn, { show: h.toString(), children: /* @__PURE__ */ i(
|
|
2504
2514
|
zn,
|
|
2505
2515
|
{
|
|
2506
2516
|
ref: R,
|
|
@@ -2513,7 +2523,7 @@ const Ut = 300, T1 = ({
|
|
|
2513
2523
|
},
|
|
2514
2524
|
{
|
|
2515
2525
|
id: "lightbox-close",
|
|
2516
|
-
onClick: () =>
|
|
2526
|
+
onClick: () => p(null),
|
|
2517
2527
|
icon: "lightbox-close",
|
|
2518
2528
|
ariaLabel: "Close"
|
|
2519
2529
|
}
|
|
@@ -2533,7 +2543,7 @@ const Ut = 300, T1 = ({
|
|
|
2533
2543
|
wn,
|
|
2534
2544
|
{
|
|
2535
2545
|
changeZoom: (x) => {
|
|
2536
|
-
|
|
2546
|
+
c(x);
|
|
2537
2547
|
},
|
|
2538
2548
|
zoomState: s,
|
|
2539
2549
|
...e,
|
|
@@ -2549,7 +2559,7 @@ const Ut = 300, T1 = ({
|
|
|
2549
2559
|
/* @__PURE__ */ i(
|
|
2550
2560
|
Bn,
|
|
2551
2561
|
{
|
|
2552
|
-
ref:
|
|
2562
|
+
ref: V,
|
|
2553
2563
|
show: h.toString(),
|
|
2554
2564
|
buttons: [
|
|
2555
2565
|
{
|
|
@@ -2633,18 +2643,18 @@ const Ut = 300, T1 = ({
|
|
|
2633
2643
|
({
|
|
2634
2644
|
id: r,
|
|
2635
2645
|
circle: s = !1,
|
|
2636
|
-
show:
|
|
2646
|
+
show: c = !0,
|
|
2637
2647
|
ariaLabel: d,
|
|
2638
|
-
onClick:
|
|
2648
|
+
onClick: a,
|
|
2639
2649
|
icon: l,
|
|
2640
2650
|
className: u
|
|
2641
2651
|
}, h) => /* @__PURE__ */ i(
|
|
2642
2652
|
Hn,
|
|
2643
2653
|
{
|
|
2644
2654
|
circle: s.toString(),
|
|
2645
|
-
onClick:
|
|
2646
|
-
tabIndex:
|
|
2647
|
-
show:
|
|
2655
|
+
onClick: a,
|
|
2656
|
+
tabIndex: c ? void 0 : -1,
|
|
2657
|
+
show: c.toString(),
|
|
2648
2658
|
icon: l,
|
|
2649
2659
|
className: u,
|
|
2650
2660
|
"aria-label": d,
|
|
@@ -2655,27 +2665,27 @@ const Ut = 300, T1 = ({
|
|
|
2655
2665
|
)
|
|
2656
2666
|
}
|
|
2657
2667
|
)
|
|
2658
|
-
), Xe =
|
|
2668
|
+
), Xe = C.div`
|
|
2659
2669
|
transition: opacity 0.3s ease 0s;
|
|
2660
2670
|
z-index: 5;
|
|
2661
2671
|
${(e) => e.show === "true" ? "opacity: 1;" : k`
|
|
2662
2672
|
opacity: 0;
|
|
2663
2673
|
pointer-events: none;
|
|
2664
2674
|
`}
|
|
2665
|
-
`, En =
|
|
2675
|
+
`, En = C(xe)`
|
|
2666
2676
|
display: inline-block !important;
|
|
2667
2677
|
|
|
2668
2678
|
${(e) => (e.alignment === "right" || e.alignment === "left") && k`
|
|
2669
2679
|
float: ${e.alignment};
|
|
2670
2680
|
`}
|
|
2671
|
-
`, Rn =
|
|
2681
|
+
`, Rn = C(Xe)`
|
|
2672
2682
|
position: fixed;
|
|
2673
2683
|
display: flex;
|
|
2674
2684
|
gap: ${(e) => {
|
|
2675
2685
|
var t;
|
|
2676
2686
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2677
2687
|
}};
|
|
2678
|
-
`, me = "39px", Hn =
|
|
2688
|
+
`, me = "39px", Hn = C(se)`
|
|
2679
2689
|
width: ${me};
|
|
2680
2690
|
height: ${me};
|
|
2681
2691
|
display: flex;
|
|
@@ -2740,7 +2750,7 @@ const Ut = 300, T1 = ({
|
|
|
2740
2750
|
opacity: 0;
|
|
2741
2751
|
pointer-events: none;
|
|
2742
2752
|
`}
|
|
2743
|
-
`, zn =
|
|
2753
|
+
`, zn = C(we)`
|
|
2744
2754
|
top: ${(e) => {
|
|
2745
2755
|
var t;
|
|
2746
2756
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2749,7 +2759,7 @@ const Ut = 300, T1 = ({
|
|
|
2749
2759
|
var t;
|
|
2750
2760
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2751
2761
|
}};
|
|
2752
|
-
`, Dn =
|
|
2762
|
+
`, Dn = C(we)`
|
|
2753
2763
|
bottom: ${(e) => {
|
|
2754
2764
|
var t;
|
|
2755
2765
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2757,7 +2767,7 @@ const Ut = 300, T1 = ({
|
|
|
2757
2767
|
width: 100%;
|
|
2758
2768
|
align-items: center;
|
|
2759
2769
|
justify-content: center;
|
|
2760
|
-
`, Bn =
|
|
2770
|
+
`, Bn = C(we)`
|
|
2761
2771
|
display: block;
|
|
2762
2772
|
button {
|
|
2763
2773
|
position: fixed;
|
|
@@ -2775,7 +2785,7 @@ const Ut = 300, T1 = ({
|
|
|
2775
2785
|
}};
|
|
2776
2786
|
}
|
|
2777
2787
|
}
|
|
2778
|
-
`, Tn =
|
|
2788
|
+
`, Tn = C(X)`
|
|
2779
2789
|
position: fixed;
|
|
2780
2790
|
bottom: ${(e) => {
|
|
2781
2791
|
var t;
|
|
@@ -2794,29 +2804,29 @@ const Ut = 300, T1 = ({
|
|
|
2794
2804
|
var t;
|
|
2795
2805
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2796
2806
|
}};
|
|
2797
|
-
`, Ue =
|
|
2807
|
+
`, Ue = C(Xe)`
|
|
2798
2808
|
position: absolute;
|
|
2799
2809
|
width: 100vw;
|
|
2800
2810
|
height: 88px;
|
|
2801
2811
|
left: 0px;
|
|
2802
2812
|
z-index: 5;
|
|
2803
|
-
`,
|
|
2813
|
+
`, Vn = C.div`
|
|
2804
2814
|
width: 100%;
|
|
2805
|
-
`,
|
|
2815
|
+
`, Nn = C(Ue)`
|
|
2806
2816
|
top: 0px;
|
|
2807
2817
|
background-image: linear-gradient(
|
|
2808
2818
|
to bottom,
|
|
2809
2819
|
rgb(34, 34, 34, 0.8),
|
|
2810
2820
|
rgba(34, 34, 34, 0)
|
|
2811
2821
|
);
|
|
2812
|
-
`, Wn =
|
|
2822
|
+
`, Wn = C(Ue)`
|
|
2813
2823
|
bottom: 0px;
|
|
2814
2824
|
background-image: linear-gradient(
|
|
2815
2825
|
to top,
|
|
2816
2826
|
rgb(34, 34, 34, 0.8),
|
|
2817
2827
|
rgba(34, 34, 34, 0)
|
|
2818
2828
|
);
|
|
2819
|
-
`, Zn =
|
|
2829
|
+
`, Zn = C.div`
|
|
2820
2830
|
width: 100%;
|
|
2821
2831
|
height: 100vh;
|
|
2822
2832
|
overflow: auto;
|
|
@@ -2825,7 +2835,7 @@ const Ut = 300, T1 = ({
|
|
|
2825
2835
|
white-space: nowrap;
|
|
2826
2836
|
justify-content: center;
|
|
2827
2837
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2828
|
-
`, In =
|
|
2838
|
+
`, In = C.img`
|
|
2829
2839
|
cursor: pointer;
|
|
2830
2840
|
`, On = H(
|
|
2831
2841
|
({
|
|
@@ -2836,31 +2846,31 @@ const Ut = 300, T1 = ({
|
|
|
2836
2846
|
},
|
|
2837
2847
|
close: r = !1,
|
|
2838
2848
|
...s
|
|
2839
|
-
},
|
|
2840
|
-
const [d,
|
|
2849
|
+
}, c) => {
|
|
2850
|
+
const [d, a] = Fe(), [l, u] = Ae(!0), h = L(), f = L(U()), m = j("Escape");
|
|
2841
2851
|
v(() => {
|
|
2842
|
-
(m || r) &&
|
|
2852
|
+
(m || r) && a(!1);
|
|
2843
2853
|
}, [m, r]), v(() => {
|
|
2844
2854
|
d && h.current && h.current.focus();
|
|
2845
2855
|
}, [d, h.current]), ae("router:changed", () => {
|
|
2846
|
-
|
|
2856
|
+
a(!1);
|
|
2847
2857
|
});
|
|
2848
|
-
const
|
|
2849
|
-
(
|
|
2850
|
-
|
|
2858
|
+
const p = M(
|
|
2859
|
+
(y) => {
|
|
2860
|
+
a(!1), o(y);
|
|
2851
2861
|
},
|
|
2852
|
-
[o,
|
|
2862
|
+
[o, a]
|
|
2853
2863
|
);
|
|
2854
|
-
ge(
|
|
2864
|
+
ge(c, () => ({
|
|
2855
2865
|
close() {
|
|
2856
|
-
|
|
2866
|
+
a(!1);
|
|
2857
2867
|
}
|
|
2858
2868
|
}));
|
|
2859
2869
|
const g = M(() => ye(f.current, () => {
|
|
2860
|
-
|
|
2870
|
+
a(!1);
|
|
2861
2871
|
}), [f.current]);
|
|
2862
2872
|
return /* @__PURE__ */ b(_, { children: [
|
|
2863
|
-
/* @__PURE__ */ i(Ye, { visible: d, onClick:
|
|
2873
|
+
/* @__PURE__ */ i(Ye, { visible: d, onClick: p, children: /* @__PURE__ */ b(
|
|
2864
2874
|
An,
|
|
2865
2875
|
{
|
|
2866
2876
|
className: $(
|
|
@@ -2876,7 +2886,7 @@ const Ut = 300, T1 = ({
|
|
|
2876
2886
|
/* @__PURE__ */ i(
|
|
2877
2887
|
ve,
|
|
2878
2888
|
{
|
|
2879
|
-
onClick: () =>
|
|
2889
|
+
onClick: () => a(!1),
|
|
2880
2890
|
tabIndex: 0,
|
|
2881
2891
|
ref: h,
|
|
2882
2892
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
@@ -2887,13 +2897,13 @@ const Ut = 300, T1 = ({
|
|
|
2887
2897
|
}
|
|
2888
2898
|
) }),
|
|
2889
2899
|
oe.cloneElement(n, {
|
|
2890
|
-
onClick: (
|
|
2891
|
-
|
|
2900
|
+
onClick: (y) => {
|
|
2901
|
+
a(), g();
|
|
2892
2902
|
}
|
|
2893
2903
|
})
|
|
2894
2904
|
] });
|
|
2895
2905
|
}
|
|
2896
|
-
), An =
|
|
2906
|
+
), An = C.div`
|
|
2897
2907
|
font-family: ${(e) => {
|
|
2898
2908
|
var t;
|
|
2899
2909
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2921,32 +2931,32 @@ const Ut = 300, T1 = ({
|
|
|
2921
2931
|
},
|
|
2922
2932
|
onConfirm: s = () => {
|
|
2923
2933
|
},
|
|
2924
|
-
cancelLabel:
|
|
2934
|
+
cancelLabel: c = "",
|
|
2925
2935
|
confirmLabel: d = ""
|
|
2926
2936
|
}) => {
|
|
2927
|
-
const
|
|
2937
|
+
const a = L(), l = M(() => {
|
|
2928
2938
|
var h;
|
|
2929
|
-
r(), (h =
|
|
2939
|
+
r(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2930
2940
|
}, [r]), u = M(() => {
|
|
2931
2941
|
var h;
|
|
2932
|
-
s(), (h =
|
|
2942
|
+
s(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2933
2943
|
}, [s]);
|
|
2934
2944
|
return /* @__PURE__ */ b(
|
|
2935
2945
|
Fn,
|
|
2936
2946
|
{
|
|
2937
2947
|
className: e,
|
|
2938
2948
|
trigger: t,
|
|
2939
|
-
ref:
|
|
2949
|
+
ref: a,
|
|
2940
2950
|
onOverlayClick: l,
|
|
2941
2951
|
children: [
|
|
2942
2952
|
n && /* @__PURE__ */ i(Be, { children: n }),
|
|
2943
2953
|
o && /* @__PURE__ */ i(Be, { children: o }),
|
|
2944
2954
|
d && /* @__PURE__ */ i(Pn, { onClick: u, children: d }),
|
|
2945
|
-
|
|
2955
|
+
c && /* @__PURE__ */ i(jn, { onClick: l, children: c })
|
|
2946
2956
|
]
|
|
2947
2957
|
}
|
|
2948
2958
|
);
|
|
2949
|
-
}, Fn =
|
|
2959
|
+
}, Fn = C(On)`
|
|
2950
2960
|
display: block;
|
|
2951
2961
|
|
|
2952
2962
|
span {
|
|
@@ -2964,7 +2974,7 @@ const Ut = 300, T1 = ({
|
|
|
2964
2974
|
}};
|
|
2965
2975
|
}
|
|
2966
2976
|
}
|
|
2967
|
-
`, Pn =
|
|
2977
|
+
`, Pn = C(se)`
|
|
2968
2978
|
display: inline-block;
|
|
2969
2979
|
min-width: 50px;
|
|
2970
2980
|
${(e) => {
|
|
@@ -2994,7 +3004,7 @@ const Ut = 300, T1 = ({
|
|
|
2994
3004
|
&:focus-visible {
|
|
2995
3005
|
${O}
|
|
2996
3006
|
}
|
|
2997
|
-
`, jn =
|
|
3007
|
+
`, jn = C(se)`
|
|
2998
3008
|
display: inline-block;
|
|
2999
3009
|
min-width: 50px;
|
|
3000
3010
|
${(e) => {
|
|
@@ -3030,10 +3040,10 @@ const Ut = 300, T1 = ({
|
|
|
3030
3040
|
/* @__PURE__ */ i("span", { children: n }),
|
|
3031
3041
|
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
|
|
3032
3042
|
] })
|
|
3033
|
-
] }), Kn =
|
|
3043
|
+
] }), Kn = C.div`
|
|
3034
3044
|
display: flex;
|
|
3035
3045
|
flex-wrap: wrap;
|
|
3036
|
-
`, Yn =
|
|
3046
|
+
`, Yn = C.div`
|
|
3037
3047
|
${(e) => ie(e)(
|
|
3038
3048
|
"h2",
|
|
3039
3049
|
k`
|
|
@@ -3043,7 +3053,7 @@ const Ut = 300, T1 = ({
|
|
|
3043
3053
|
font-size: 7em;
|
|
3044
3054
|
`
|
|
3045
3055
|
)}
|
|
3046
|
-
`, Xn =
|
|
3056
|
+
`, Xn = C.div`
|
|
3047
3057
|
margin-left: ${(e) => {
|
|
3048
3058
|
var t;
|
|
3049
3059
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3070,7 +3080,7 @@ const Ut = 300, T1 = ({
|
|
|
3070
3080
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3071
3081
|
}};
|
|
3072
3082
|
}
|
|
3073
|
-
`, Un =
|
|
3083
|
+
`, Un = C.div`
|
|
3074
3084
|
margin-top: ${(e) => {
|
|
3075
3085
|
var t;
|
|
3076
3086
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3103,7 +3113,7 @@ class A1 extends ct {
|
|
|
3103
3113
|
this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
|
|
3104
3114
|
const o = n.querySelectorAll(
|
|
3105
3115
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3106
|
-
), s = [].filter.call(o, (
|
|
3116
|
+
), s = [].filter.call(o, (c) => typeof window > "u" ? !0 : !(window.getComputedStyle(c).display === "none" || c.offsetWidth <= 0 && c.offsetHeight <= 0))[0];
|
|
3107
3117
|
s && s.focus();
|
|
3108
3118
|
}));
|
|
3109
3119
|
}
|
|
@@ -3145,10 +3155,10 @@ const F1 = ({
|
|
|
3145
3155
|
timestamp: n
|
|
3146
3156
|
}) => /* @__PURE__ */ i("span", { className: $(e, "humany-timestamp"), children: Qn(n, t) }), Te = (e) => `0${e}`.slice(-2);
|
|
3147
3157
|
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(),
|
|
3158
|
+
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
3159
|
d
|
|
3150
3160
|
)}`;
|
|
3151
|
-
return t === "yyyy-mm-dd" ?
|
|
3161
|
+
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
|
|
3152
3162
|
}
|
|
3153
3163
|
const P1 = ({
|
|
3154
3164
|
className: e,
|
|
@@ -3157,9 +3167,9 @@ const P1 = ({
|
|
|
3157
3167
|
sticky: o = !1,
|
|
3158
3168
|
...r
|
|
3159
3169
|
}) => {
|
|
3160
|
-
const [s,
|
|
3161
|
-
const { target: g } =
|
|
3162
|
-
!
|
|
3170
|
+
const [s, c] = w(!1), d = L(U()), a = L(), [{ x: l, y: u }, h] = je(s, d.current, a.current), f = (p) => {
|
|
3171
|
+
const { target: g } = p;
|
|
3172
|
+
!a.current || !g || a.current !== g && !a.current.contains(g) && c(!1);
|
|
3163
3173
|
};
|
|
3164
3174
|
v(() => {
|
|
3165
3175
|
if (o)
|
|
@@ -3168,20 +3178,20 @@ const P1 = ({
|
|
|
3168
3178
|
};
|
|
3169
3179
|
}, [s, o]);
|
|
3170
3180
|
const m = M(
|
|
3171
|
-
(
|
|
3172
|
-
h(
|
|
3181
|
+
(p, g) => {
|
|
3182
|
+
h(p, a.current), c(g);
|
|
3173
3183
|
},
|
|
3174
|
-
[h,
|
|
3184
|
+
[h, c]
|
|
3175
3185
|
);
|
|
3176
3186
|
return /* @__PURE__ */ b(
|
|
3177
3187
|
Gn,
|
|
3178
3188
|
{
|
|
3179
|
-
ref:
|
|
3189
|
+
ref: a,
|
|
3180
3190
|
className: "humany-tooltip-trigger",
|
|
3181
|
-
onMouseEnter: o ? void 0 : (
|
|
3182
|
-
onMouseLeave: o ? void 0 : (
|
|
3183
|
-
onTouchEnd: o ? (
|
|
3184
|
-
onClick: o ? (
|
|
3191
|
+
onMouseEnter: o ? void 0 : (p) => m(p, !0),
|
|
3192
|
+
onMouseLeave: o ? void 0 : (p) => m(p, !1),
|
|
3193
|
+
onTouchEnd: o ? (p) => m(p, !s) : void 0,
|
|
3194
|
+
onClick: o ? (p) => m(p, !s) : void 0,
|
|
3185
3195
|
children: [
|
|
3186
3196
|
t,
|
|
3187
3197
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
@@ -3197,10 +3207,10 @@ const P1 = ({
|
|
|
3197
3207
|
]
|
|
3198
3208
|
}
|
|
3199
3209
|
);
|
|
3200
|
-
}, Gn =
|
|
3210
|
+
}, Gn = C.div`
|
|
3201
3211
|
display: flex;
|
|
3202
3212
|
align-items: center;
|
|
3203
|
-
`, Jn =
|
|
3213
|
+
`, Jn = C.div`
|
|
3204
3214
|
color: #ffffff;
|
|
3205
3215
|
background: #161616;
|
|
3206
3216
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3243,33 +3253,33 @@ const P1 = ({
|
|
|
3243
3253
|
unmountOnExit: o = !0,
|
|
3244
3254
|
timeout: r,
|
|
3245
3255
|
children: s,
|
|
3246
|
-
transitions:
|
|
3247
|
-
} = e,
|
|
3256
|
+
transitions: c
|
|
3257
|
+
} = e, a = (() => {
|
|
3248
3258
|
var l, u;
|
|
3249
|
-
if (!(!
|
|
3250
|
-
if (typeof
|
|
3259
|
+
if (!(!c || c === "none")) {
|
|
3260
|
+
if (typeof c == "string")
|
|
3251
3261
|
return {
|
|
3252
3262
|
enter: {
|
|
3253
|
-
transitionKeys:
|
|
3263
|
+
transitionKeys: c,
|
|
3254
3264
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3255
3265
|
easing: "ease-in"
|
|
3256
3266
|
},
|
|
3257
3267
|
exit: {
|
|
3258
|
-
transitionKeys:
|
|
3268
|
+
transitionKeys: c,
|
|
3259
3269
|
duration: r ? typeof r == "number" ? r : r.exit : 200,
|
|
3260
3270
|
easing: "ease-out"
|
|
3261
3271
|
}
|
|
3262
3272
|
};
|
|
3263
|
-
if (typeof
|
|
3264
|
-
const { enter: h, exit: f } =
|
|
3273
|
+
if (typeof c == "object") {
|
|
3274
|
+
const { enter: h, exit: f } = c;
|
|
3265
3275
|
return {
|
|
3266
3276
|
enter: {
|
|
3267
|
-
transitionKeys: (l =
|
|
3277
|
+
transitionKeys: (l = c.enter) == null ? void 0 : l.type,
|
|
3268
3278
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3269
3279
|
easing: h.easing ? h.easing : "ease-in"
|
|
3270
3280
|
},
|
|
3271
3281
|
exit: {
|
|
3272
|
-
transitionKeys: (u =
|
|
3282
|
+
transitionKeys: (u = c.enter) == null ? void 0 : u.type,
|
|
3273
3283
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3274
3284
|
easing: f.easing ? f.easing : "ease-out"
|
|
3275
3285
|
}
|
|
@@ -3281,15 +3291,15 @@ const P1 = ({
|
|
|
3281
3291
|
ut,
|
|
3282
3292
|
{
|
|
3283
3293
|
timeout: {
|
|
3284
|
-
enter:
|
|
3285
|
-
exit:
|
|
3294
|
+
enter: a && a.enter.duration || 0,
|
|
3295
|
+
exit: a && a.exit.duration || 0
|
|
3286
3296
|
},
|
|
3287
3297
|
in: t,
|
|
3288
3298
|
appear: !0,
|
|
3289
3299
|
mountOnEnter: n,
|
|
3290
3300
|
unmountOnExit: o,
|
|
3291
3301
|
onEnter: (l) => l.clientHeight,
|
|
3292
|
-
children: (l) => s && s(l,
|
|
3302
|
+
children: (l) => s && s(l, a && he.compose(l, a))
|
|
3293
3303
|
}
|
|
3294
3304
|
);
|
|
3295
3305
|
}, e1 = H(
|
|
@@ -3301,27 +3311,27 @@ const P1 = ({
|
|
|
3301
3311
|
widgetName: o,
|
|
3302
3312
|
activationOptions: r,
|
|
3303
3313
|
...s
|
|
3304
|
-
},
|
|
3305
|
-
const d = T(),
|
|
3314
|
+
}, c) => {
|
|
3315
|
+
const d = T(), a = () => {
|
|
3306
3316
|
const { implementation: h } = d.get("$widget");
|
|
3307
3317
|
return h.widgets.get(o);
|
|
3308
3318
|
};
|
|
3309
3319
|
v(() => {
|
|
3310
|
-
const h =
|
|
3320
|
+
const h = a();
|
|
3311
3321
|
return h == null || h.activate(r).then(() => h.invoke("attach")), () => {
|
|
3312
3322
|
h == null || h.deactivate();
|
|
3313
3323
|
};
|
|
3314
3324
|
}, [o]);
|
|
3315
3325
|
const l = (h) => {
|
|
3316
|
-
const f =
|
|
3326
|
+
const f = a(), m = h.currentTarget;
|
|
3317
3327
|
if (f) {
|
|
3318
|
-
const
|
|
3328
|
+
const p = () => {
|
|
3319
3329
|
f.invoke("renderState").then(
|
|
3320
3330
|
(g) => g === ne.open ? f.invoke("close") : f.invoke("open")
|
|
3321
3331
|
).then(() => {
|
|
3322
3332
|
f.events.subscribeOnce(
|
|
3323
3333
|
"widget:area-rendered",
|
|
3324
|
-
(g,
|
|
3334
|
+
(g, y) => {
|
|
3325
3335
|
d.get(
|
|
3326
3336
|
"widgetDOMElement"
|
|
3327
3337
|
) && f.events.dispatch("widget:modal-opened", {
|
|
@@ -3332,7 +3342,7 @@ const P1 = ({
|
|
|
3332
3342
|
);
|
|
3333
3343
|
});
|
|
3334
3344
|
};
|
|
3335
|
-
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(
|
|
3345
|
+
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(p) : p();
|
|
3336
3346
|
}
|
|
3337
3347
|
}, u = (h) => {
|
|
3338
3348
|
h.key === "Enter" && (h.preventDefault(), l(h));
|
|
@@ -3346,7 +3356,7 @@ const P1 = ({
|
|
|
3346
3356
|
n(h), l(h);
|
|
3347
3357
|
},
|
|
3348
3358
|
...s,
|
|
3349
|
-
ref:
|
|
3359
|
+
ref: c,
|
|
3350
3360
|
children: t
|
|
3351
3361
|
}
|
|
3352
3362
|
);
|
|
@@ -3356,8 +3366,8 @@ const P1 = ({
|
|
|
3356
3366
|
const r = T(), s = re(() => {
|
|
3357
3367
|
if (!r)
|
|
3358
3368
|
return null;
|
|
3359
|
-
const
|
|
3360
|
-
return !
|
|
3369
|
+
const c = r.get("widgetDOMElement");
|
|
3370
|
+
return !c || !c.childElementCount ? null : c.children[0];
|
|
3361
3371
|
}, [r]);
|
|
3362
3372
|
return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
|
|
3363
3373
|
t1,
|
|
@@ -3371,7 +3381,7 @@ const P1 = ({
|
|
|
3371
3381
|
}
|
|
3372
3382
|
) }) : null;
|
|
3373
3383
|
}
|
|
3374
|
-
), t1 =
|
|
3384
|
+
), t1 = C.div`
|
|
3375
3385
|
background-color: #ffffff;
|
|
3376
3386
|
position: absolute;
|
|
3377
3387
|
top: 0;
|
|
@@ -3392,16 +3402,16 @@ export {
|
|
|
3392
3402
|
p1 as Checkbox,
|
|
3393
3403
|
Tt as ColumnContext,
|
|
3394
3404
|
Ze as ComponentNodeContext,
|
|
3395
|
-
|
|
3405
|
+
Vt as ComponentPropertyContext,
|
|
3396
3406
|
I1 as Confirm,
|
|
3397
3407
|
Bt as ContainerContext,
|
|
3398
3408
|
Wt as ConversationContext,
|
|
3399
3409
|
qn as DateFormats,
|
|
3400
3410
|
T1 as Drawer,
|
|
3401
3411
|
Xt as DrawerAnimationType,
|
|
3402
|
-
|
|
3412
|
+
V1 as Dropdown,
|
|
3403
3413
|
nn as Empty,
|
|
3404
|
-
|
|
3414
|
+
N1 as Grid,
|
|
3405
3415
|
Ke as Html,
|
|
3406
3416
|
sn as Icon,
|
|
3407
3417
|
W1 as Input,
|
|
@@ -3416,7 +3426,7 @@ export {
|
|
|
3416
3426
|
cn as Paragraph,
|
|
3417
3427
|
q as Portal,
|
|
3418
3428
|
un as RouteLink,
|
|
3419
|
-
|
|
3429
|
+
Nt as RoutingContext,
|
|
3420
3430
|
Be as StyledText,
|
|
3421
3431
|
Q as SymbolBadge,
|
|
3422
3432
|
A1 as TabStop,
|
|
@@ -3461,7 +3471,7 @@ export {
|
|
|
3461
3471
|
Zt as useContext,
|
|
3462
3472
|
x1 as useConversation,
|
|
3463
3473
|
w1 as useDispatch,
|
|
3464
|
-
|
|
3474
|
+
N as useEventListener,
|
|
3465
3475
|
It as useEvents,
|
|
3466
3476
|
W as useIsMounted,
|
|
3467
3477
|
k1 as useIsTabbing,
|