@telia-ace/widget-ui 1.3.0-rc.2 → 1.3.0-rc.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.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 Ne } from "@emotion/react";
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 y from "@emotion/styled";
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 Ve, Transition as ut } from "react-transition-group";
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 a = r && r.length > 0 && k`
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
- ${a};
62
- ${d.map((c) => F[c] ? F[c].out : "")}
61
+ ${c};
62
+ ${d.map((a) => F[a] ? F[a].out : "")}
63
63
  transition: ${s} ${o.duration}ms ${o.easing};
64
- ` : a;
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: a,
102
+ StyleMedia: c,
103
103
  chrome: d,
104
- CSS: c
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 && a)
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) && c)
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 a = o.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), c = new RegExp(
144
- `^((http[s]?:)?//)?(${a})/([^\\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 (c && c.length >= 4) {
147
- const l = c[4];
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: a, smooth: d, to: c, ...l } = e;
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 [c] = t.split(o);
184
- r = c;
183
+ const [a] = t.split(o);
184
+ r = a;
185
185
  }
186
186
  }
187
- const a = ((d, c, l) => l[d] ? `${c}${l[d]}` : `${c}${d}`)(
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
- ${a} {
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 = y.button`
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
- }), Nt = K(
254
+ }), Vt = K(
255
255
  {}
256
- ), Vt = K(null), Wt = K(null), pe = () => P(Ze), T = () => P(Bt), C1 = (e, t) => {
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((a) => {
260
- a.action(e || n, r, s);
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
- (a) => {
288
- if (t && r.current && a) {
289
- const d = t.getBranch(a), c = a.getChildren(d).map((l) => mt(l));
290
- o(c);
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 [a, d] = gt(t.events);
300
- return a("components:set-layout", (c, l) => {
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
- }), a("components:node-appended", (c, l) => {
302
+ }), c("components:node-appended", (a, l) => {
303
303
  (e === l.node.parent || l.node.parent === t.nodes.root) && s(l.node.parent);
304
- }), a("components:node-removed", (c, { parentNode: l }) => {
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), a = W(), d = e || n.type || "";
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 c;
315
+ let a;
316
316
  return (t || o).getAsync("componentResolver").then((l) => {
317
- if (a.current) {
317
+ if (c.current) {
318
318
  const u = l.getComponent(d);
319
319
  s(u);
320
320
  }
321
- c = l.registerResolver(d, (u) => {
322
- a.current && s(u);
321
+ a = l.registerResolver(d, (u) => {
322
+ c.current && s(u);
323
323
  });
324
324
  }), () => {
325
- c && c();
325
+ a && a();
326
326
  };
327
327
  }
328
- }, [a, d, t, o]), r;
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 a = n.events.subscribe(
335
+ const c = n.events.subscribe(
336
336
  "components:context-changed",
337
- (d, c) => {
338
- t === c.node && s.current && r(c.node.attributes.context);
337
+ (d, a) => {
338
+ t === a.node && s.current && r(a.node.attributes.context);
339
339
  }
340
340
  );
341
341
  return () => {
342
- a();
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 a = new pt(e).withId(t.id), d = e.actions(a, t.type || U());
351
- s(d), n !== null && (n.forEach((c) => {
352
- d.dispatch(c.key, c.data).then((l) => c.resolve(l)).catch((l) => c.reject(l));
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]), (a, d) => n !== null ? new Promise((c, l) => {
355
+ }, [e, t.id]), (c, d) => n !== null ? new Promise((a, l) => {
356
356
  n.push({
357
- key: a,
357
+ key: c,
358
358
  data: d,
359
- resolve: c,
359
+ resolve: a,
360
360
  reject: l
361
361
  });
362
- }) : r.dispatch(a, d);
363
- }, V = (e, t, n = window, o = () => !0) => {
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 a = (d) => r.current(d);
372
- return n.addEventListener(e, a), () => {
373
- n.removeEventListener(e, a);
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
- (a) => {
394
- const { key: d } = a;
395
- d === e && (o(!0), t && t(a));
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: a }) => {
400
- a === e && o(!1);
399
+ ({ key: c }) => {
400
+ c === e && o(!1);
401
401
  },
402
402
  [o]
403
403
  );
404
- return V("keydown", r, window), V("keyup", s, window), n;
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 a = n.events.subscribe(
411
+ const c = n.events.subscribe(
412
412
  "components:layout-changed",
413
- (d, c) => {
414
- t === c.node && s.current && r(c.node.attributes.layout);
413
+ (d, a) => {
414
+ t === a.node && s.current && r(a.node.attributes.layout);
415
415
  }
416
416
  );
417
417
  return () => {
418
- a();
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(Nt), M1 = (e) => {
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 a = (e || o).get("$widget");
432
- if (!a)
431
+ const c = (e || o).get("$widget");
432
+ if (!c)
433
433
  return;
434
- const { name: d, invoke: c } = a;
435
- return c("renderState").then((l) => {
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(Vt), S1 = (e) => {
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 a = (e || t).get("$widget");
461
- if (!a)
460
+ const c = (e || t).get("$widget");
461
+ if (!c)
462
462
  return;
463
- const { events: d } = a;
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 a = n.getRouteData(), { name: d, params: c } = a;
476
- Re(c), r({ name: d, params: c });
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
- ), a = (l) => d(l) ? l === t.current ? l : null : l.parentElement ? a(l.parentElement) : null, d = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, c = M(
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 = a(l.target);
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", C = f <= 0 && m === "up", g = f >= h.scrollHeight - h.offsetHeight && m === "down";
501
- (C || g) && l.preventDefault(), n.current = u;
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 V(
505
+ return N(
506
506
  "scroll",
507
507
  r,
508
508
  t.current,
509
509
  () => t.current && e
510
- ), V(
510
+ ), N(
511
511
  "touchstart",
512
512
  s,
513
513
  t.current,
514
514
  () => t.current && e
515
- ), V(
515
+ ), N(
516
516
  "touchmove",
517
- c,
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), [a, d] = w(null), c = W();
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 && c.current) {
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 C = f(u == null ? void 0 : u.id);
572
- C && d(C);
571
+ const p = f(u == null ? void 0 : u.id);
572
+ p && d(p);
573
573
  }
574
574
  }
575
- }, [n, t, c]);
575
+ }, [n, t, a]);
576
576
  const l = M(
577
577
  (u) => {
578
- c.current && (u.target === r || u.target === a) && e();
578
+ a.current && (u.target === r || u.target === c) && e();
579
579
  },
580
- [e, c, r, a]
580
+ [e, a, r, c]
581
581
  );
582
- V(
582
+ N(
583
583
  "transitionend",
584
584
  l,
585
585
  r
586
- ), V(
586
+ ), N(
587
587
  "transitionend",
588
588
  l,
589
- a
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 a;
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: ${(a = r.fonts) == null ? void 0 : a.normal};
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 = y(se)`
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 = y(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, a;
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: ${(a = e.theme.sizes) == null ? void 0 : a.normal} 0 0;
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
- ...a
865
+ ...c
866
866
  }) => {
867
- const { type: d, content: c } = o, l = {
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('${c}')`,
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
- ...a
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
- ...a,
901
+ ...c,
902
902
  ref: null
903
903
  }, h = { minWidth: `${n}` };
904
- switch (c) {
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: c,
1443
+ faIcon: a,
1444
1444
  title: e,
1445
- ...a
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
- ...a,
1456
+ ...c,
1457
1457
  children: e.substring(0, 2)
1458
1458
  }
1459
1459
  ) : null;
1460
1460
  }
1461
- }, jt = y.svg`
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
- }, a = t || s[e] || "span";
1482
- return /* @__PURE__ */ i(Yt, { className: n, as: a, children: o });
1483
- }, Yt = y.span``;
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: a,
1492
+ closeButtonAriaLabel: c,
1493
1493
  animation: d = {
1494
1494
  type: "slide-in-bottom"
1495
1495
  /* SlideInBottom */
1496
1496
  }
1497
1497
  }) => {
1498
- const { duration: c = Ut } = d, l = L(), u = L(), [h, f] = Ae(!0), [m, C] = Fe(), g = Ie(m), p = L(U());
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 && C(!1);
1505
- }, [S]), V(
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) && C(!1);
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(p.current, () => {
1514
- C(!1);
1513
+ const R = ye(y.current, () => {
1514
+ p(!1);
1515
1515
  });
1516
1516
  ae("router:changed", () => {
1517
- C(!1);
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 N = en[d.type];
1521
+ const V = en[d.type];
1522
1522
  return /* @__PURE__ */ b(_, { children: [
1523
1523
  /* @__PURE__ */ i(
1524
- Ve,
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: c,
1530
+ timeout: a,
1531
1531
  children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
1532
- N,
1532
+ V,
1533
1533
  {
1534
- duration: c,
1534
+ duration: a,
1535
1535
  fullScreen: s,
1536
1536
  className: $(
1537
1537
  e,
1538
1538
  "humany-drawer",
1539
- `humany-drawer-${p.current}`
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: () => C(!1),
1548
+ onClick: () => p(!1),
1549
1549
  tabIndex: 0,
1550
1550
  ref: l,
1551
- "aria-label": a,
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
- C(), R();
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 = y.div`
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 = y(X)`
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 = y(ce)`
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 = y(ce)`
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 = y(ce)`
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 = y(ce)`
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, a] = w(0), d = M(
1704
- (c, l) => {
1705
- if (c.preventDefault(), l) {
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)), a(u.bottom + window.scrollY);
1707
+ r(Math.max(document.body.clientWidth - u.right, 1)), c(u.bottom + window.scrollY);
1708
1708
  }
1709
1709
  },
1710
- [o, s, r, a]
1710
+ [o, s, r, c]
1711
1711
  );
1712
1712
  return v(() => {
1713
1713
  if (!n || !e)
1714
1714
  return;
1715
- const c = n.getBoundingClientRect(), l = {
1715
+ const a = n.getBoundingClientRect(), l = {
1716
1716
  x: o,
1717
1717
  y: s
1718
1718
  };
1719
- c.left < 0 && (l.x = 0), c.bottom > window.innerHeight && (l.y = 0), l.x !== o && r(l.x), l.y !== s && a(l.y);
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
- }, N1 = oe.forwardRef(
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 a = L(), d = L(), c = L();
1730
- ge(s, () => c.current, [c.current]);
1731
- const l = L(U()), [u, h] = w(!1), f = Ie(u), [{ x: m, y: C }, g] = je(u, l.current, c.current), p = j("Escape");
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
- p && h(!1);
1734
- }, [p]), v(() => {
1735
- u && a.current ? a.current.focus() : !u && d.current && f && d.current.focus();
1736
- }, [u, a.current, d.current]), V(
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
- (N) => {
1739
- const { target: z } = N;
1740
- !c.current || !z || c.current !== z && !c.current.contains(z) && h(!1);
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
- (N) => {
1750
- N.stopPropagation(), g(N, d.current), h(!u), S();
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: C,
1766
- ref: c,
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: a,
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 = y.div`
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 = y.div`
1805
+ `, nn = ({ ...e }) => /* @__PURE__ */ i(on, { ...e }), on = C.div`
1806
1806
  display: none;
1807
- `, V1 = H(
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 = y.div`
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(), [a, d] = w();
1829
+ const s = T(), [c, d] = w();
1830
1830
  return v(() => {
1831
- const c = Ht(s, n), l = {
1832
- ...c,
1831
+ const a = Ht(s, n), l = {
1832
+ ...a,
1833
1833
  ...e,
1834
1834
  transform: {
1835
- ...c.transform,
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: a
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: a = () => {
1875
+ onChange: c = () => {
1876
1876
  },
1877
1877
  disabled: d = !1,
1878
- type: c,
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 p;
1884
- t && ((p = m == null ? void 0 : m.current) == null || p.focus());
1883
+ var y;
1884
+ t && ((y = m == null ? void 0 : m.current) == null || y.focus());
1885
1885
  }, [t, u, m]);
1886
- const C = (p, S) => {
1887
- f(p), n && n(p), s && p && S.target.select();
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: c,
1893
- onKeyDown: (p) => {
1894
- p.key === "Enter" && h && o(p), p.key === "Escape" && h && r(p);
1892
+ type: a,
1893
+ onKeyDown: (y) => {
1894
+ y.key === "Enter" && h && o(y), y.key === "Escape" && h && r(y);
1895
1895
  },
1896
- onFocus: (p) => C(!0, p),
1897
- onBlur: (p) => C(!1, p),
1898
- onChange: (p) => a(p.target.value || ""),
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": c
1900
+ "data-type": a
1901
1901
  };
1902
- return c !== "textarea" ? /* @__PURE__ */ i(
1902
+ return a !== "textarea" ? /* @__PURE__ */ i(
1903
1903
  "input",
1904
1904
  {
1905
1905
  ...g,
@@ -1914,37 +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) => /* @__PURE__ */ i(
1918
- "ul",
1919
- {
1920
- role: "none",
1921
- "aria-live": "polite",
1922
- className: $(e, "humany-list"),
1923
- "data-item-count": t.length,
1924
- ...D(r),
1925
- ref: s,
1926
- children: t.map(
1927
- (a, d, c) => o ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(a, d, c) }, a.id || d) : n(a, d, c)
1928
- )
1929
- }
1930
- )
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
+ }
1931
1933
  ), cn = H(
1932
- ({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...a }, d) => /* @__PURE__ */ b(
1933
- "div",
1934
- {
1935
- className: $(o, "humany-paragraph"),
1936
- ...D(a),
1937
- ref: d,
1938
- children: [
1939
- n ? /* @__PURE__ */ b(X, { variant: "h1", children: [
1940
- s ? /* @__PURE__ */ i(Q, { symbol: s }) : null,
1941
- n
1942
- ] }) : null,
1943
- t ? /* @__PURE__ */ i(Ke, { html: t, htmlParseInstruction: r }) : null,
1944
- e ? /* @__PURE__ */ i(be, { children: e }) : null
1945
- ]
1946
- }
1947
- )
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
+ }
1948
1960
  ), ln = H(
1949
1961
  ({
1950
1962
  header: e,
@@ -1953,9 +1965,9 @@ const Ut = 300, T1 = ({
1953
1965
  html: o,
1954
1966
  className: r,
1955
1967
  children: s,
1956
- symbol: a,
1968
+ symbol: c,
1957
1969
  items: d,
1958
- renderItem: c,
1970
+ renderItem: a,
1959
1971
  renderLi: l,
1960
1972
  ulProps: u,
1961
1973
  ...h
@@ -1967,12 +1979,12 @@ const Ut = 300, T1 = ({
1967
1979
  ...D(h),
1968
1980
  ref: f,
1969
1981
  children: [
1970
- t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol: a, header: e, text: n, html: o }) : null),
1982
+ t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol: c, header: e, text: n, html: o }) : null),
1971
1983
  d.length ? /* @__PURE__ */ i(
1972
1984
  an,
1973
1985
  {
1974
1986
  items: d,
1975
- renderItem: c,
1987
+ renderItem: a,
1976
1988
  renderLi: l,
1977
1989
  ...u
1978
1990
  }
@@ -1988,32 +2000,32 @@ const Ut = 300, T1 = ({
1988
2000
  rootItem: o,
1989
2001
  renderUnselected: r = !0,
1990
2002
  renderEmpty: s = !0,
1991
- ulProps: a,
2003
+ ulProps: c,
1992
2004
  liProps: d
1993
2005
  }) => {
1994
- const c = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected), u = (h, f) => /* @__PURE__ */ i(
2006
+ const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected), u = (h, f) => /* @__PURE__ */ i(
1995
2007
  ln,
1996
2008
  {
1997
2009
  className: $(`humany-item-tree-level-${f}`),
1998
2010
  items: h,
1999
- ulProps: a,
2011
+ ulProps: c,
2000
2012
  renderItem: (m) => {
2001
- const { id: C, selected: g, items: p, matches: S } = m, R = g && l(p);
2013
+ const { id: p, selected: g, items: y, matches: S } = m, R = g && l(y);
2002
2014
  return !s && !S ? null : /* @__PURE__ */ at(
2003
2015
  "li",
2004
2016
  {
2005
2017
  ...D(d),
2006
- key: C,
2018
+ key: p,
2007
2019
  className: "humany-item-tree-item"
2008
2020
  },
2009
2021
  n && n(m, f, R),
2010
- p && (r || R) && u(p, f + 1)
2022
+ y && (r || R) && u(y, f + 1)
2011
2023
  );
2012
2024
  }
2013
2025
  }
2014
2026
  );
2015
2027
  return /* @__PURE__ */ b("div", { className: $(e, "humany-item-tree"), children: [
2016
- o && o(!c(t || [])),
2028
+ o && o(!a(t || [])),
2017
2029
  t && u(t, 1)
2018
2030
  ] });
2019
2031
  }, un = H(
@@ -2025,10 +2037,10 @@ const Ut = 300, T1 = ({
2025
2037
  to: o = "",
2026
2038
  params: r = {},
2027
2039
  children: s,
2028
- ...a
2040
+ ...c
2029
2041
  }, d) => {
2030
- const c = Oe(), l = T();
2031
- if (!c)
2042
+ const a = Oe(), l = T();
2043
+ if (!a)
2032
2044
  return null;
2033
2045
  let u = "";
2034
2046
  const h = {
@@ -2036,11 +2048,11 @@ const Ut = 300, T1 = ({
2036
2048
  className: $(e, "humany-route-link"),
2037
2049
  to: u,
2038
2050
  innerRef: d,
2039
- ...a,
2051
+ ...c,
2040
2052
  ref: null
2041
2053
  };
2042
2054
  if (n) {
2043
- if (!(c.routes || []).find((g) => g.name === n))
2055
+ if (!(a.routes || []).find((g) => g.name === n))
2044
2056
  return process.env.NODE_ENV !== "production" && ue.warn(
2045
2057
  `Unable to create route. No route named "${n}" exist.`
2046
2058
  ), /* @__PURE__ */ i(
@@ -2055,27 +2067,27 @@ const Ut = 300, T1 = ({
2055
2067
  children: s
2056
2068
  }
2057
2069
  );
2058
- const C = Object.keys(r).reduce(
2059
- (g, p) => {
2060
- const S = r[p];
2070
+ const p = Object.keys(r).reduce(
2071
+ (g, y) => {
2072
+ const S = r[y];
2061
2073
  if (Array.isArray(S)) {
2062
2074
  if (S.length === 0)
2063
2075
  return g;
2064
- g[p] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
2076
+ g[y] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
2065
2077
  } else
2066
- g[p] = typeof S == "string" ? encodeURIComponent(S) : S;
2078
+ g[y] = typeof S == "string" ? encodeURIComponent(S) : S;
2067
2079
  return g;
2068
2080
  },
2069
2081
  {}
2070
2082
  );
2071
2083
  try {
2072
- u = c.generate(n, C || {});
2084
+ u = a.generate(n, p || {});
2073
2085
  } catch {
2074
2086
  return /* @__PURE__ */ i(de, { ...h, ref: h.innerRef, children: s });
2075
2087
  }
2076
- u && c.settings.mode && c.settings.mode === ze.browser && u[0] !== "/" && (u = `/${u}`);
2077
- } else if (o && c.history)
2078
- u = c.history.createHref({
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({
2079
2091
  hash: "",
2080
2092
  pathname: o,
2081
2093
  search: "",
@@ -2085,84 +2097,84 @@ const Ut = 300, T1 = ({
2085
2097
  return process.env.NODE_ENV !== "production" && ue.warn(
2086
2098
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
2087
2099
  ), null;
2088
- if (c.settings && c.settings.mode === ze.scopedHash) {
2100
+ if (a.settings && a.settings.mode === ze.scopedHash) {
2089
2101
  const f = l.get("$widget").name;
2090
2102
  u = bt(u, f);
2091
2103
  }
2092
2104
  return h.as ? /* @__PURE__ */ i(dn, { ...h, as: h.as, children: s }) : /* @__PURE__ */ i(de, { ...h, to: u, children: s });
2093
2105
  }
2094
- ), dn = y.span``, xe = H(
2106
+ ), dn = C.span``, xe = H(
2095
2107
  ({
2096
2108
  className: e,
2097
2109
  disabled: t = !1,
2098
- role: n = "link",
2099
- tabIndex: o = 0,
2100
- onClick: r = () => {
2110
+ tabIndex: n = 0,
2111
+ onClick: o = () => {
2101
2112
  },
2102
- onKeyDown: s = () => {
2113
+ onKeyDown: r = () => {
2103
2114
  },
2104
- title: a,
2105
- as: d,
2106
- href: c,
2107
- children: l,
2108
- target: u,
2109
- routeName: h,
2110
- params: f,
2111
- ...m
2112
- }, C) => {
2113
- const g = {
2114
- title: a,
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,
2115
2128
  disabled: t,
2116
- role: n,
2117
- as: d,
2118
- tabIndex: o,
2129
+ as: c,
2130
+ tabIndex: n,
2119
2131
  className: $(e, "humany-link", [
2120
2132
  !!t,
2121
2133
  "humany-disabled"
2122
2134
  ]),
2123
- onClick: (p) => {
2124
- if (p.persist(), t) {
2125
- p.preventDefault();
2135
+ onClick: (g) => {
2136
+ if (g.persist(), t) {
2137
+ g.preventDefault();
2126
2138
  return;
2127
2139
  }
2128
- r(p);
2140
+ o(g);
2129
2141
  },
2130
- onKeyDown: (p) => {
2131
- if (p.persist(), t) {
2132
- p.key !== "Tab" && p.preventDefault();
2142
+ onKeyDown: (g) => {
2143
+ if (g.persist(), t) {
2144
+ g.key !== "Tab" && g.preventDefault();
2133
2145
  return;
2134
2146
  }
2135
- s(p);
2147
+ r(g);
2136
2148
  }
2137
2149
  };
2138
- return h ? /* @__PURE__ */ i(
2150
+ return f["data-client-name"] === "custom.link" && (p.role = "link"), u ? /* @__PURE__ */ i(
2139
2151
  hn,
2140
2152
  {
2141
- name: h,
2142
- params: f,
2143
- ...g,
2144
- ...D(m),
2145
- ref: C,
2146
- children: l
2153
+ name: u,
2154
+ params: h,
2155
+ ...p,
2156
+ ...D(f),
2157
+ ref: m,
2158
+ children: a
2147
2159
  }
2148
2160
  ) : /* @__PURE__ */ i(
2149
2161
  fn,
2150
2162
  {
2151
- href: c,
2152
- target: u,
2153
- ...g,
2154
- ...D(m),
2155
- ref: C,
2156
- children: l
2163
+ href: d,
2164
+ target: l,
2165
+ ...p,
2166
+ ...D(f),
2167
+ ref: m,
2168
+ children: a
2157
2169
  }
2158
2170
  );
2159
2171
  }
2160
- ), hn = y(un)`
2172
+ ), hn = C(un)`
2161
2173
  ${(e) => e.disabled ? `
2162
2174
  pointer-events: none;
2163
2175
  opacity: .7;
2164
2176
  ` : "cursor: pointer;"}
2165
- `, fn = y.a`
2177
+ `, fn = C.a`
2166
2178
  ${(e) => e.disabled ? `
2167
2179
  pointer-events: none;
2168
2180
  opacity: .7;
@@ -2175,14 +2187,14 @@ const Ut = 300, T1 = ({
2175
2187
  },
2176
2188
  ...r
2177
2189
  }) => {
2178
- const s = L(), a = M(
2190
+ const s = L(), c = M(
2179
2191
  (d) => {
2180
2192
  d.target === s.current && o(d);
2181
2193
  },
2182
2194
  [o]
2183
2195
  );
2184
2196
  return /* @__PURE__ */ i(
2185
- Ve,
2197
+ Ne,
2186
2198
  {
2187
2199
  in: e,
2188
2200
  className: "humany-overlay-transition",
@@ -2195,14 +2207,14 @@ const Ut = 300, T1 = ({
2195
2207
  className: "humany-overlay",
2196
2208
  duration: t,
2197
2209
  ref: s,
2198
- onClick: a,
2210
+ onClick: c,
2199
2211
  ...r,
2200
2212
  children: n
2201
2213
  }
2202
2214
  ) })
2203
2215
  }
2204
2216
  );
2205
- }, mn = y.div`
2217
+ }, mn = C.div`
2206
2218
  background: rgba(0, 0, 0, 0.6);
2207
2219
  min-width: 100%;
2208
2220
  min-height: 100%;
@@ -2232,11 +2244,11 @@ const Ut = 300, T1 = ({
2232
2244
  &.humany-overlay-transition-exit-done {
2233
2245
  opacity: 0;
2234
2246
  }
2235
- `, gn = Ne`
2247
+ `, gn = Ve`
2236
2248
  100% {
2237
2249
  transform: rotate(360deg);
2238
2250
  }
2239
- `, pn = Ne`
2251
+ `, pn = Ve`
2240
2252
  0% {
2241
2253
  stroke-dasharray: 1, 200;
2242
2254
  stroke-dashoffset: 0;
@@ -2249,7 +2261,7 @@ const Ut = 300, T1 = ({
2249
2261
  stroke-dasharray: 89, 200;
2250
2262
  stroke-dashoffset: -124px;
2251
2263
  }
2252
- `, Cn = y.svg`
2264
+ `, Cn = C.svg`
2253
2265
  animation: ${gn} 2s linear infinite;
2254
2266
  height: 100%;
2255
2267
  transform-origin: center center;
@@ -2261,7 +2273,7 @@ const Ut = 300, T1 = ({
2261
2273
  right: 0;
2262
2274
  margin: auto;
2263
2275
  transition: 200ms ease-out opacity;
2264
- `, yn = y.div`
2276
+ `, yn = C.div`
2265
2277
  position: absolute;
2266
2278
  top: 0;
2267
2279
  bottom: 0;
@@ -2279,7 +2291,7 @@ const Ut = 300, T1 = ({
2279
2291
  svg {
2280
2292
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2281
2293
  }
2282
- `, bn = y.div`
2294
+ `, bn = C.div`
2283
2295
  position: relative;
2284
2296
  margin: 0 auto;
2285
2297
  width: 100px;
@@ -2288,7 +2300,7 @@ const Ut = 300, T1 = ({
2288
2300
  display: block;
2289
2301
  padding-top: 100%;
2290
2302
  }
2291
- `, vn = y.circle`
2303
+ `, vn = C.circle`
2292
2304
  stroke-dasharray: 1, 200;
2293
2305
  stroke-dashoffset: 0;
2294
2306
  animation: ${pn} 1.5s ease-in-out infinite;
@@ -2321,41 +2333,41 @@ const Ut = 300, T1 = ({
2321
2333
  changeZoom: n,
2322
2334
  ...o
2323
2335
  }) => {
2324
- var C;
2325
- const r = L(null), [s, a] = w(!1), [d, c] = w(!1), { width: l, height: u, ...h } = o.style || {}, f = M(() => {
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(() => {
2326
2338
  const g = r.current;
2327
2339
  if (g) {
2328
- const p = window.innerWidth / g.naturalWidth, S = window.innerHeight / g.naturalHeight, R = Math.min(p, S);
2329
- return S >= 1 && p >= 1 ? 1 : R;
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;
2330
2342
  }
2331
2343
  return 1;
2332
2344
  }, [s, t.src]), m = re(() => {
2333
2345
  const g = r.current;
2334
2346
  if (g && s) {
2335
2347
  if (!d) {
2336
- c(!0);
2337
- const p = f();
2338
- n(p);
2348
+ a(!0);
2349
+ const y = f();
2350
+ n(y);
2339
2351
  }
2340
2352
  return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
2341
2353
  }
2342
2354
  return null;
2343
2355
  }, [e, r, s, t.src]);
2344
- return v(() => (a(!1), function() {
2345
- c(!1);
2356
+ return v(() => (c(!1), function() {
2357
+ a(!1);
2346
2358
  }), [t.src]), /* @__PURE__ */ b(_, { children: [
2347
2359
  /* @__PURE__ */ i(kn, { loading: !s }),
2348
2360
  /* @__PURE__ */ i(
2349
2361
  $n,
2350
2362
  {
2351
2363
  onLoad: () => {
2352
- a(!0);
2364
+ c(!0);
2353
2365
  },
2354
2366
  ref: r,
2355
2367
  imageSize: m,
2356
2368
  draggable: "false",
2357
2369
  ...o,
2358
- alt: ((C = o.alt) == null ? void 0 : C.toString()) || "",
2370
+ alt: ((p = o.alt) == null ? void 0 : p.toString()) || "",
2359
2371
  style: h,
2360
2372
  src: t.src,
2361
2373
  loaded: s
@@ -2363,11 +2375,11 @@ const Ut = 300, T1 = ({
2363
2375
  ),
2364
2376
  /* @__PURE__ */ i(Ln, {})
2365
2377
  ] });
2366
- }, kn = y(xn)`
2378
+ }, kn = C(xn)`
2367
2379
  svg circle {
2368
2380
  stroke: #ffffff;
2369
2381
  }
2370
- `, $n = y.img`
2382
+ `, $n = C.img`
2371
2383
  transform: none;
2372
2384
 
2373
2385
  ${(e) => e.imageSize && k`
@@ -2378,7 +2390,7 @@ const Ut = 300, T1 = ({
2378
2390
  vertical-align: middle;
2379
2391
  position: relative;
2380
2392
  ${(e) => !e.loaded && "display:none;"}
2381
- `, Ln = y.div`
2393
+ `, Ln = C.div`
2382
2394
  height: 100%;
2383
2395
  display: inline-block;
2384
2396
  vertical-align: middle;
@@ -2391,16 +2403,16 @@ const Ut = 300, T1 = ({
2391
2403
  return [t, o];
2392
2404
  }, Sn = ({ attrs: e, htmlBody: t }) => {
2393
2405
  var Se;
2394
- const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, a] = w(1), [d, c] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, u] = w(!1), [h, f] = Mn(), [m, C] = w(null), [g, p] = w(null), S = L(null), R = L(null), N = L(null), z = L(null), Z = L(null), [_e, qe] = w(null);
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);
2395
2407
  v(() => {
2396
- n && C(null);
2408
+ n && p(null);
2397
2409
  }, [n]), v(() => {
2398
- a(1);
2410
+ c(1);
2399
2411
  }, [m]), v(() => {
2400
2412
  var I, ee;
2401
2413
  if (m === null || R.current === null)
2402
2414
  return;
2403
- const x = R.current.firstElementChild, E = (I = N.current) == null ? void 0 : I.querySelector(".nav-left"), B = (ee = N.current) == null ? void 0 : ee.querySelector(".nav-right");
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");
2404
2416
  if (g === "Right")
2405
2417
  J && B ? B.focus() : G && E && E.focus();
2406
2418
  else if (g === "Left")
@@ -2410,7 +2422,7 @@ const Ut = 300, T1 = ({
2410
2422
  return;
2411
2423
  x.focus();
2412
2424
  }
2413
- }, [m, R, N, g]), v(() => {
2425
+ }, [m, R, V, g]), v(() => {
2414
2426
  if (o) {
2415
2427
  if (G)
2416
2428
  return Le();
@@ -2442,15 +2454,15 @@ const Ut = 300, T1 = ({
2442
2454
  const { src: x } = e;
2443
2455
  if (x) {
2444
2456
  const E = A.findIndex((B, I) => B.src === x);
2445
- C(E);
2457
+ p(E);
2446
2458
  }
2447
2459
  }, [A, e]), Qe = M((x) => {
2448
- C(null);
2460
+ p(null);
2449
2461
  }, []), $e = M(
2450
2462
  (x) => {
2451
- a(x ? s + s * 0.25 : s - s * 0.25);
2463
+ c(x ? s + s * 0.25 : s - s * 0.25);
2452
2464
  },
2453
- [a, s]
2465
+ [c, s]
2454
2466
  ), Ge = M(() => {
2455
2467
  if (m !== null) {
2456
2468
  const { src: x } = A[m];
@@ -2459,7 +2471,7 @@ const Ut = 300, T1 = ({
2459
2471
  }, [A, m]), Je = M(
2460
2472
  (x) => {
2461
2473
  const E = z.current;
2462
- E && (c({
2474
+ E && (a({
2463
2475
  top: E.scrollTop,
2464
2476
  left: E.scrollLeft,
2465
2477
  x: x.clientX,
@@ -2488,20 +2500,20 @@ const Ut = 300, T1 = ({
2488
2500
  }
2489
2501
  return !1;
2490
2502
  }, [z, s]), Le = () => {
2491
- m !== null && (p("Left"), C(m - 1));
2503
+ m !== null && (y("Left"), p(m - 1));
2492
2504
  }, Me = () => {
2493
- m !== null && (p("Right"), C(m + 1));
2505
+ m !== null && (y("Right"), p(m + 1));
2494
2506
  }, G = m !== null && m > 0 && A.length > 1, J = m !== null && A.length - 1 > m;
2495
2507
  return /* @__PURE__ */ b(_, { children: [
2496
2508
  /* @__PURE__ */ i(Ye, { visible: m !== null, onClick: Qe, children: /* @__PURE__ */ b(
2497
- Nn,
2509
+ Vn,
2498
2510
  {
2499
2511
  onMouseDown: () => f(),
2500
2512
  onMouseMove: () => f(),
2501
2513
  onTouchStart: () => f(),
2502
2514
  onKeyDown: () => f(),
2503
2515
  children: [
2504
- /* @__PURE__ */ i(Vn, { show: h.toString(), children: /* @__PURE__ */ i(
2516
+ /* @__PURE__ */ i(Nn, { show: h.toString(), children: /* @__PURE__ */ i(
2505
2517
  zn,
2506
2518
  {
2507
2519
  ref: R,
@@ -2514,7 +2526,7 @@ const Ut = 300, T1 = ({
2514
2526
  },
2515
2527
  {
2516
2528
  id: "lightbox-close",
2517
- onClick: () => C(null),
2529
+ onClick: () => p(null),
2518
2530
  icon: "lightbox-close",
2519
2531
  ariaLabel: "Close"
2520
2532
  }
@@ -2534,7 +2546,7 @@ const Ut = 300, T1 = ({
2534
2546
  wn,
2535
2547
  {
2536
2548
  changeZoom: (x) => {
2537
- a(x);
2549
+ c(x);
2538
2550
  },
2539
2551
  zoomState: s,
2540
2552
  ...e,
@@ -2550,7 +2562,7 @@ const Ut = 300, T1 = ({
2550
2562
  /* @__PURE__ */ i(
2551
2563
  Bn,
2552
2564
  {
2553
- ref: N,
2565
+ ref: V,
2554
2566
  show: h.toString(),
2555
2567
  buttons: [
2556
2568
  {
@@ -2634,18 +2646,18 @@ const Ut = 300, T1 = ({
2634
2646
  ({
2635
2647
  id: r,
2636
2648
  circle: s = !1,
2637
- show: a = !0,
2649
+ show: c = !0,
2638
2650
  ariaLabel: d,
2639
- onClick: c,
2651
+ onClick: a,
2640
2652
  icon: l,
2641
2653
  className: u
2642
2654
  }, h) => /* @__PURE__ */ i(
2643
2655
  Hn,
2644
2656
  {
2645
2657
  circle: s.toString(),
2646
- onClick: c,
2647
- tabIndex: a ? void 0 : -1,
2648
- show: a.toString(),
2658
+ onClick: a,
2659
+ tabIndex: c ? void 0 : -1,
2660
+ show: c.toString(),
2649
2661
  icon: l,
2650
2662
  className: u,
2651
2663
  "aria-label": d,
@@ -2656,27 +2668,27 @@ const Ut = 300, T1 = ({
2656
2668
  )
2657
2669
  }
2658
2670
  )
2659
- ), Xe = y.div`
2671
+ ), Xe = C.div`
2660
2672
  transition: opacity 0.3s ease 0s;
2661
2673
  z-index: 5;
2662
2674
  ${(e) => e.show === "true" ? "opacity: 1;" : k`
2663
2675
  opacity: 0;
2664
2676
  pointer-events: none;
2665
2677
  `}
2666
- `, En = y(xe)`
2678
+ `, En = C(xe)`
2667
2679
  display: inline-block !important;
2668
2680
 
2669
2681
  ${(e) => (e.alignment === "right" || e.alignment === "left") && k`
2670
2682
  float: ${e.alignment};
2671
2683
  `}
2672
- `, Rn = y(Xe)`
2684
+ `, Rn = C(Xe)`
2673
2685
  position: fixed;
2674
2686
  display: flex;
2675
2687
  gap: ${(e) => {
2676
2688
  var t;
2677
2689
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2678
2690
  }};
2679
- `, me = "39px", Hn = y(se)`
2691
+ `, me = "39px", Hn = C(se)`
2680
2692
  width: ${me};
2681
2693
  height: ${me};
2682
2694
  display: flex;
@@ -2741,7 +2753,7 @@ const Ut = 300, T1 = ({
2741
2753
  opacity: 0;
2742
2754
  pointer-events: none;
2743
2755
  `}
2744
- `, zn = y(we)`
2756
+ `, zn = C(we)`
2745
2757
  top: ${(e) => {
2746
2758
  var t;
2747
2759
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2750,7 +2762,7 @@ const Ut = 300, T1 = ({
2750
2762
  var t;
2751
2763
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2752
2764
  }};
2753
- `, Dn = y(we)`
2765
+ `, Dn = C(we)`
2754
2766
  bottom: ${(e) => {
2755
2767
  var t;
2756
2768
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2758,7 +2770,7 @@ const Ut = 300, T1 = ({
2758
2770
  width: 100%;
2759
2771
  align-items: center;
2760
2772
  justify-content: center;
2761
- `, Bn = y(we)`
2773
+ `, Bn = C(we)`
2762
2774
  display: block;
2763
2775
  button {
2764
2776
  position: fixed;
@@ -2776,7 +2788,7 @@ const Ut = 300, T1 = ({
2776
2788
  }};
2777
2789
  }
2778
2790
  }
2779
- `, Tn = y(X)`
2791
+ `, Tn = C(X)`
2780
2792
  position: fixed;
2781
2793
  bottom: ${(e) => {
2782
2794
  var t;
@@ -2795,29 +2807,29 @@ const Ut = 300, T1 = ({
2795
2807
  var t;
2796
2808
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2797
2809
  }};
2798
- `, Ue = y(Xe)`
2810
+ `, Ue = C(Xe)`
2799
2811
  position: absolute;
2800
2812
  width: 100vw;
2801
2813
  height: 88px;
2802
2814
  left: 0px;
2803
2815
  z-index: 5;
2804
- `, Nn = y.div`
2816
+ `, Vn = C.div`
2805
2817
  width: 100%;
2806
- `, Vn = y(Ue)`
2818
+ `, Nn = C(Ue)`
2807
2819
  top: 0px;
2808
2820
  background-image: linear-gradient(
2809
2821
  to bottom,
2810
2822
  rgb(34, 34, 34, 0.8),
2811
2823
  rgba(34, 34, 34, 0)
2812
2824
  );
2813
- `, Wn = y(Ue)`
2825
+ `, Wn = C(Ue)`
2814
2826
  bottom: 0px;
2815
2827
  background-image: linear-gradient(
2816
2828
  to top,
2817
2829
  rgb(34, 34, 34, 0.8),
2818
2830
  rgba(34, 34, 34, 0)
2819
2831
  );
2820
- `, Zn = y.div`
2832
+ `, Zn = C.div`
2821
2833
  width: 100%;
2822
2834
  height: 100vh;
2823
2835
  overflow: auto;
@@ -2826,7 +2838,7 @@ const Ut = 300, T1 = ({
2826
2838
  white-space: nowrap;
2827
2839
  justify-content: center;
2828
2840
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2829
- `, In = y.img`
2841
+ `, In = C.img`
2830
2842
  cursor: pointer;
2831
2843
  `, On = H(
2832
2844
  ({
@@ -2837,31 +2849,31 @@ const Ut = 300, T1 = ({
2837
2849
  },
2838
2850
  close: r = !1,
2839
2851
  ...s
2840
- }, a) => {
2841
- const [d, c] = Fe(), [l, u] = Ae(!0), h = L(), f = L(U()), m = j("Escape");
2852
+ }, c) => {
2853
+ const [d, a] = Fe(), [l, u] = Ae(!0), h = L(), f = L(U()), m = j("Escape");
2842
2854
  v(() => {
2843
- (m || r) && c(!1);
2855
+ (m || r) && a(!1);
2844
2856
  }, [m, r]), v(() => {
2845
2857
  d && h.current && h.current.focus();
2846
2858
  }, [d, h.current]), ae("router:changed", () => {
2847
- c(!1);
2859
+ a(!1);
2848
2860
  });
2849
- const C = M(
2850
- (p) => {
2851
- c(!1), o(p);
2861
+ const p = M(
2862
+ (y) => {
2863
+ a(!1), o(y);
2852
2864
  },
2853
- [o, c]
2865
+ [o, a]
2854
2866
  );
2855
- ge(a, () => ({
2867
+ ge(c, () => ({
2856
2868
  close() {
2857
- c(!1);
2869
+ a(!1);
2858
2870
  }
2859
2871
  }));
2860
2872
  const g = M(() => ye(f.current, () => {
2861
- c(!1);
2873
+ a(!1);
2862
2874
  }), [f.current]);
2863
2875
  return /* @__PURE__ */ b(_, { children: [
2864
- /* @__PURE__ */ i(Ye, { visible: d, onClick: C, children: /* @__PURE__ */ b(
2876
+ /* @__PURE__ */ i(Ye, { visible: d, onClick: p, children: /* @__PURE__ */ b(
2865
2877
  An,
2866
2878
  {
2867
2879
  className: $(
@@ -2877,7 +2889,7 @@ const Ut = 300, T1 = ({
2877
2889
  /* @__PURE__ */ i(
2878
2890
  ve,
2879
2891
  {
2880
- onClick: () => c(!1),
2892
+ onClick: () => a(!1),
2881
2893
  tabIndex: 0,
2882
2894
  ref: h,
2883
2895
  children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
@@ -2888,13 +2900,13 @@ const Ut = 300, T1 = ({
2888
2900
  }
2889
2901
  ) }),
2890
2902
  oe.cloneElement(n, {
2891
- onClick: (p) => {
2892
- c(), g();
2903
+ onClick: (y) => {
2904
+ a(), g();
2893
2905
  }
2894
2906
  })
2895
2907
  ] });
2896
2908
  }
2897
- ), An = y.div`
2909
+ ), An = C.div`
2898
2910
  font-family: ${(e) => {
2899
2911
  var t;
2900
2912
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2922,32 +2934,32 @@ const Ut = 300, T1 = ({
2922
2934
  },
2923
2935
  onConfirm: s = () => {
2924
2936
  },
2925
- cancelLabel: a = "",
2937
+ cancelLabel: c = "",
2926
2938
  confirmLabel: d = ""
2927
2939
  }) => {
2928
- const c = L(), l = M(() => {
2940
+ const a = L(), l = M(() => {
2929
2941
  var h;
2930
- r(), (h = c == null ? void 0 : c.current) == null || h.close();
2942
+ r(), (h = a == null ? void 0 : a.current) == null || h.close();
2931
2943
  }, [r]), u = M(() => {
2932
2944
  var h;
2933
- s(), (h = c == null ? void 0 : c.current) == null || h.close();
2945
+ s(), (h = a == null ? void 0 : a.current) == null || h.close();
2934
2946
  }, [s]);
2935
2947
  return /* @__PURE__ */ b(
2936
2948
  Fn,
2937
2949
  {
2938
2950
  className: e,
2939
2951
  trigger: t,
2940
- ref: c,
2952
+ ref: a,
2941
2953
  onOverlayClick: l,
2942
2954
  children: [
2943
2955
  n && /* @__PURE__ */ i(Be, { children: n }),
2944
2956
  o && /* @__PURE__ */ i(Be, { children: o }),
2945
2957
  d && /* @__PURE__ */ i(Pn, { onClick: u, children: d }),
2946
- a && /* @__PURE__ */ i(jn, { onClick: l, children: a })
2958
+ c && /* @__PURE__ */ i(jn, { onClick: l, children: c })
2947
2959
  ]
2948
2960
  }
2949
2961
  );
2950
- }, Fn = y(On)`
2962
+ }, Fn = C(On)`
2951
2963
  display: block;
2952
2964
 
2953
2965
  span {
@@ -2965,7 +2977,7 @@ const Ut = 300, T1 = ({
2965
2977
  }};
2966
2978
  }
2967
2979
  }
2968
- `, Pn = y(se)`
2980
+ `, Pn = C(se)`
2969
2981
  display: inline-block;
2970
2982
  min-width: 50px;
2971
2983
  ${(e) => {
@@ -2995,7 +3007,7 @@ const Ut = 300, T1 = ({
2995
3007
  &:focus-visible {
2996
3008
  ${O}
2997
3009
  }
2998
- `, jn = y(se)`
3010
+ `, jn = C(se)`
2999
3011
  display: inline-block;
3000
3012
  min-width: 50px;
3001
3013
  ${(e) => {
@@ -3031,10 +3043,10 @@ const Ut = 300, T1 = ({
3031
3043
  /* @__PURE__ */ i("span", { children: n }),
3032
3044
  /* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
3033
3045
  ] })
3034
- ] }), Kn = y.div`
3046
+ ] }), Kn = C.div`
3035
3047
  display: flex;
3036
3048
  flex-wrap: wrap;
3037
- `, Yn = y.div`
3049
+ `, Yn = C.div`
3038
3050
  ${(e) => ie(e)(
3039
3051
  "h2",
3040
3052
  k`
@@ -3044,7 +3056,7 @@ const Ut = 300, T1 = ({
3044
3056
  font-size: 7em;
3045
3057
  `
3046
3058
  )}
3047
- `, Xn = y.div`
3059
+ `, Xn = C.div`
3048
3060
  margin-left: ${(e) => {
3049
3061
  var t;
3050
3062
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -3071,7 +3083,7 @@ const Ut = 300, T1 = ({
3071
3083
  return (t = e.theme.fonts) == null ? void 0 : t.small;
3072
3084
  }};
3073
3085
  }
3074
- `, Un = y.div`
3086
+ `, Un = C.div`
3075
3087
  margin-top: ${(e) => {
3076
3088
  var t;
3077
3089
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -3104,7 +3116,7 @@ class A1 extends ct {
3104
3116
  this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
3105
3117
  const o = n.querySelectorAll(
3106
3118
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
3107
- ), s = [].filter.call(o, (a) => typeof window > "u" ? !0 : !(window.getComputedStyle(a).display === "none" || a.offsetWidth <= 0 && a.offsetHeight <= 0))[0];
3119
+ ), s = [].filter.call(o, (c) => typeof window > "u" ? !0 : !(window.getComputedStyle(c).display === "none" || c.offsetWidth <= 0 && c.offsetHeight <= 0))[0];
3108
3120
  s && s.focus();
3109
3121
  }));
3110
3122
  }
@@ -3146,10 +3158,10 @@ const F1 = ({
3146
3158
  timestamp: n
3147
3159
  }) => /* @__PURE__ */ i("span", { className: $(e, "humany-timestamp"), children: Qn(n, t) }), Te = (e) => `0${e}`.slice(-2);
3148
3160
  function Qn(e, t) {
3149
- const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), a = n.getMonth() + 1, d = n.getDate(), c = `${s}-${Te(a)}-${Te(
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(
3150
3162
  d
3151
3163
  )}`;
3152
- return t === "yyyy-mm-dd" ? c : t === "hh:mm" ? r : `${c} ${r}`;
3164
+ return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
3153
3165
  }
3154
3166
  const P1 = ({
3155
3167
  className: e,
@@ -3158,9 +3170,9 @@ const P1 = ({
3158
3170
  sticky: o = !1,
3159
3171
  ...r
3160
3172
  }) => {
3161
- const [s, a] = w(!1), d = L(U()), c = L(), [{ x: l, y: u }, h] = je(s, d.current, c.current), f = (C) => {
3162
- const { target: g } = C;
3163
- !c.current || !g || c.current !== g && !c.current.contains(g) && a(!1);
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);
3164
3176
  };
3165
3177
  v(() => {
3166
3178
  if (o)
@@ -3169,20 +3181,20 @@ const P1 = ({
3169
3181
  };
3170
3182
  }, [s, o]);
3171
3183
  const m = M(
3172
- (C, g) => {
3173
- h(C, c.current), a(g);
3184
+ (p, g) => {
3185
+ h(p, a.current), c(g);
3174
3186
  },
3175
- [h, a]
3187
+ [h, c]
3176
3188
  );
3177
3189
  return /* @__PURE__ */ b(
3178
3190
  Gn,
3179
3191
  {
3180
- ref: c,
3192
+ ref: a,
3181
3193
  className: "humany-tooltip-trigger",
3182
- onMouseEnter: o ? void 0 : (C) => m(C, !0),
3183
- onMouseLeave: o ? void 0 : (C) => m(C, !1),
3184
- onTouchEnd: o ? (C) => m(C, !s) : void 0,
3185
- onClick: o ? (C) => m(C, !s) : void 0,
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,
3186
3198
  children: [
3187
3199
  t,
3188
3200
  s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
@@ -3198,10 +3210,10 @@ const P1 = ({
3198
3210
  ]
3199
3211
  }
3200
3212
  );
3201
- }, Gn = y.div`
3213
+ }, Gn = C.div`
3202
3214
  display: flex;
3203
3215
  align-items: center;
3204
- `, Jn = y.div`
3216
+ `, Jn = C.div`
3205
3217
  color: #ffffff;
3206
3218
  background: #161616;
3207
3219
  border-radius: ${(e) => e.theme.borderRadius};
@@ -3244,33 +3256,33 @@ const P1 = ({
3244
3256
  unmountOnExit: o = !0,
3245
3257
  timeout: r,
3246
3258
  children: s,
3247
- transitions: a
3248
- } = e, c = (() => {
3259
+ transitions: c
3260
+ } = e, a = (() => {
3249
3261
  var l, u;
3250
- if (!(!a || a === "none")) {
3251
- if (typeof a == "string")
3262
+ if (!(!c || c === "none")) {
3263
+ if (typeof c == "string")
3252
3264
  return {
3253
3265
  enter: {
3254
- transitionKeys: a,
3266
+ transitionKeys: c,
3255
3267
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3256
3268
  easing: "ease-in"
3257
3269
  },
3258
3270
  exit: {
3259
- transitionKeys: a,
3271
+ transitionKeys: c,
3260
3272
  duration: r ? typeof r == "number" ? r : r.exit : 200,
3261
3273
  easing: "ease-out"
3262
3274
  }
3263
3275
  };
3264
- if (typeof a == "object") {
3265
- const { enter: h, exit: f } = a;
3276
+ if (typeof c == "object") {
3277
+ const { enter: h, exit: f } = c;
3266
3278
  return {
3267
3279
  enter: {
3268
- transitionKeys: (l = a.enter) == null ? void 0 : l.type,
3280
+ transitionKeys: (l = c.enter) == null ? void 0 : l.type,
3269
3281
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3270
3282
  easing: h.easing ? h.easing : "ease-in"
3271
3283
  },
3272
3284
  exit: {
3273
- transitionKeys: (u = a.enter) == null ? void 0 : u.type,
3285
+ transitionKeys: (u = c.enter) == null ? void 0 : u.type,
3274
3286
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3275
3287
  easing: f.easing ? f.easing : "ease-out"
3276
3288
  }
@@ -3282,15 +3294,15 @@ const P1 = ({
3282
3294
  ut,
3283
3295
  {
3284
3296
  timeout: {
3285
- enter: c && c.enter.duration || 0,
3286
- exit: c && c.exit.duration || 0
3297
+ enter: a && a.enter.duration || 0,
3298
+ exit: a && a.exit.duration || 0
3287
3299
  },
3288
3300
  in: t,
3289
3301
  appear: !0,
3290
3302
  mountOnEnter: n,
3291
3303
  unmountOnExit: o,
3292
3304
  onEnter: (l) => l.clientHeight,
3293
- children: (l) => s && s(l, c && he.compose(l, c))
3305
+ children: (l) => s && s(l, a && he.compose(l, a))
3294
3306
  }
3295
3307
  );
3296
3308
  }, e1 = H(
@@ -3302,27 +3314,27 @@ const P1 = ({
3302
3314
  widgetName: o,
3303
3315
  activationOptions: r,
3304
3316
  ...s
3305
- }, a) => {
3306
- const d = T(), c = () => {
3317
+ }, c) => {
3318
+ const d = T(), a = () => {
3307
3319
  const { implementation: h } = d.get("$widget");
3308
3320
  return h.widgets.get(o);
3309
3321
  };
3310
3322
  v(() => {
3311
- const h = c();
3323
+ const h = a();
3312
3324
  return h == null || h.activate(r).then(() => h.invoke("attach")), () => {
3313
3325
  h == null || h.deactivate();
3314
3326
  };
3315
3327
  }, [o]);
3316
3328
  const l = (h) => {
3317
- const f = c(), m = h.currentTarget;
3329
+ const f = a(), m = h.currentTarget;
3318
3330
  if (f) {
3319
- const C = () => {
3331
+ const p = () => {
3320
3332
  f.invoke("renderState").then(
3321
3333
  (g) => g === ne.open ? f.invoke("close") : f.invoke("open")
3322
3334
  ).then(() => {
3323
3335
  f.events.subscribeOnce(
3324
3336
  "widget:area-rendered",
3325
- (g, p) => {
3337
+ (g, y) => {
3326
3338
  d.get(
3327
3339
  "widgetDOMElement"
3328
3340
  ) && f.events.dispatch("widget:modal-opened", {
@@ -3333,7 +3345,7 @@ const P1 = ({
3333
3345
  );
3334
3346
  });
3335
3347
  };
3336
- f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(C) : C();
3348
+ f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(p) : p();
3337
3349
  }
3338
3350
  }, u = (h) => {
3339
3351
  h.key === "Enter" && (h.preventDefault(), l(h));
@@ -3347,7 +3359,7 @@ const P1 = ({
3347
3359
  n(h), l(h);
3348
3360
  },
3349
3361
  ...s,
3350
- ref: a,
3362
+ ref: c,
3351
3363
  children: t
3352
3364
  }
3353
3365
  );
@@ -3357,8 +3369,8 @@ const P1 = ({
3357
3369
  const r = T(), s = re(() => {
3358
3370
  if (!r)
3359
3371
  return null;
3360
- const a = r.get("widgetDOMElement");
3361
- return !a || !a.childElementCount ? null : a.children[0];
3372
+ const c = r.get("widgetDOMElement");
3373
+ return !c || !c.childElementCount ? null : c.children[0];
3362
3374
  }, [r]);
3363
3375
  return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
3364
3376
  t1,
@@ -3372,7 +3384,7 @@ const P1 = ({
3372
3384
  }
3373
3385
  ) }) : null;
3374
3386
  }
3375
- ), t1 = y.div`
3387
+ ), t1 = C.div`
3376
3388
  background-color: #ffffff;
3377
3389
  position: absolute;
3378
3390
  top: 0;
@@ -3393,16 +3405,16 @@ export {
3393
3405
  p1 as Checkbox,
3394
3406
  Tt as ColumnContext,
3395
3407
  Ze as ComponentNodeContext,
3396
- Nt as ComponentPropertyContext,
3408
+ Vt as ComponentPropertyContext,
3397
3409
  I1 as Confirm,
3398
3410
  Bt as ContainerContext,
3399
3411
  Wt as ConversationContext,
3400
3412
  qn as DateFormats,
3401
3413
  T1 as Drawer,
3402
3414
  Xt as DrawerAnimationType,
3403
- N1 as Dropdown,
3415
+ V1 as Dropdown,
3404
3416
  nn as Empty,
3405
- V1 as Grid,
3417
+ N1 as Grid,
3406
3418
  Ke as Html,
3407
3419
  sn as Icon,
3408
3420
  W1 as Input,
@@ -3417,7 +3429,7 @@ export {
3417
3429
  cn as Paragraph,
3418
3430
  q as Portal,
3419
3431
  un as RouteLink,
3420
- Vt as RoutingContext,
3432
+ Nt as RoutingContext,
3421
3433
  Be as StyledText,
3422
3434
  Q as SymbolBadge,
3423
3435
  A1 as TabStop,
@@ -3462,7 +3474,7 @@ export {
3462
3474
  Zt as useContext,
3463
3475
  x1 as useConversation,
3464
3476
  w1 as useDispatch,
3465
- V as useEventListener,
3477
+ N as useEventListener,
3466
3478
  It as useEvents,
3467
3479
  W as useIsMounted,
3468
3480
  k1 as useIsTabbing,