@telia-ace/widget-ui 1.2.8 → 1.2.9

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