@telia-ace/widget-ui 1.3.0-rc.12 → 1.3.0-rc.13

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
@@ -7,8 +7,8 @@ import { jsx as i, jsxs as b, Fragment as _ } from "react/jsx-runtime";
7
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
9
  import { CSSTransition as Ne, Transition as ut } from "react-transition-group";
10
- import { Container as dt, WidgetState as ft } from "@webprovisions/platform";
11
- import { ComponentPlatform as ht, asDescriptor as mt, createEventSubscriber as gt, ComponentQuery as pt, WidgetRenderState as ne, extendComponent as Ct } from "@telia-ace/widget-core";
10
+ import { Container as dt, WidgetState as ht } from "@webprovisions/platform";
11
+ import { ComponentPlatform as ft, asDescriptor as mt, createEventSubscriber as gt, ComponentQuery as pt, WidgetRenderState as ne, extendComponent as Ct } from "@telia-ace/widget-core";
12
12
  import { createPortal as yt } from "react-dom";
13
13
  import He from "htmr";
14
14
  import { HistoryMode as ze, getSpecificWidgetPath as bt } from "@telia-ace/widget-routing";
@@ -44,7 +44,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
44
44
  "slide-left",
45
45
  "slide-right",
46
46
  "scale"
47
- ], fe = {
47
+ ], he = {
48
48
  compose: (e = "exited", t) => {
49
49
  const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = wt.indexOf(r[0]) > -1 ? "transform" : "opacity";
50
50
  if (vt(e))
@@ -52,21 +52,21 @@ 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) => {
68
68
  if (t === "slide")
69
- return fe.compose(e, {
69
+ return he.compose(e, {
70
70
  enter: {
71
71
  transitionKeys: n === "forth" ? "slide-right" : "slide-left",
72
72
  duration: 500
@@ -77,7 +77,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
77
77
  }
78
78
  });
79
79
  if (t === "fade")
80
- return fe.compose(e, {
80
+ return he.compose(e, {
81
81
  enter: {
82
82
  transitionKeys: "fade",
83
83
  duration: 500
@@ -90,7 +90,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
90
90
  },
91
91
  get: (e) => F[e]
92
92
  };
93
- var he = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(he || {});
93
+ var fe = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(fe || {});
94
94
  const De = () => {
95
95
  const {
96
96
  opr: e,
@@ -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";
@@ -110,17 +110,17 @@ const De = () => {
110
110
  const u = ((m) => m.toString() === "[object SafariRemoteNotification]")(!r || typeof r < "u" && r.pushNotification);
111
111
  if (/constructor/i.test(o) || u)
112
112
  return "safari";
113
- const f = !!s;
114
- if (f)
113
+ const h = !!s;
114
+ if (h)
115
115
  return "internet-explorer";
116
- if (!f && a)
116
+ if (!h && c)
117
117
  return "edge";
118
- const h = !!d && (!!d.webstore || !!d.runtime);
119
- if (h)
118
+ const f = !!d && (!!d.webstore || !!d.runtime);
119
+ if (f)
120
120
  return "chrome";
121
- if (h && navigator.userAgent.indexOf("Edg") !== -1)
121
+ if (f && navigator.userAgent.indexOf("Edg") !== -1)
122
122
  return "edge-chromium";
123
- if ((h || 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
  }
@@ -166,11 +166,11 @@ const De = () => {
166
166
  const o = () => {
167
167
  n = "";
168
168
  }, r = (u) => {
169
- const f = document.getElementById(n);
170
- return f !== null ? (u(f), o(), !0) : !1;
169
+ const h = document.getElementById(n);
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
- e.scroll || ((f) => e.smooth ? f.scrollIntoView({ behavior: "smooth" }) : f.scrollIntoView())
173
- ), !1), { scroll: a, smooth: d, to: c, ...l } = e;
172
+ e.scroll || ((h) => e.smooth ? h.scrollIntoView({ behavior: "smooth" }) : h.scrollIntoView())
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
  `;
@@ -256,8 +256,8 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
256
256
  ), Nt = K(null), Wt = K(null), pe = () => P(Ze), T = () => P(Bt), C1 = (e, t) => {
257
257
  const n = pe().id, o = T();
258
258
  return (r, s) => {
259
- (t || o).getAsync("actionResolver").then((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) => {
@@ -276,7 +276,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
276
276
  }, Y = (e) => {
277
277
  const t = T(), [n, o] = w(null), r = W();
278
278
  return v(() => {
279
- ht.getInstance(e || t).then(
279
+ ft.getInstance(e || t).then(
280
280
  (s) => {
281
281
  r.current && o(s);
282
282
  }
@@ -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,19 +347,19 @@ 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);
362
+ }) : r.dispatch(c, d);
363
363
  }, N = (e, t, n = window, o = () => !0) => {
364
364
  const r = L(() => {
365
365
  });
@@ -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,14 +390,14 @@ 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
  );
@@ -408,14 +408,14 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
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;
@@ -428,19 +428,19 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
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
- s = l.subscribe(d, (u, f) => {
439
- switch (f) {
438
+ s = l.subscribe(d, (u, h) => {
439
+ switch (h) {
440
440
  case "close":
441
441
  case "open":
442
442
  r.current && n(
443
- f === "open" ? ne.open : ne.closed
443
+ h === "open" ? ne.open : ne.closed
444
444
  );
445
445
  break;
446
446
  case "hide":
@@ -457,23 +457,23 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
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 } }) => {
467
467
  if (s.current) {
468
- const { name: f, params: h } = u;
469
- Re(h), r({ name: f, params: h });
468
+ const { name: h, params: f } = u;
469
+ Re(f), r({ name: h, params: f });
470
470
  }
471
471
  }
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,14 +490,14 @@ 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, f = a(l.target);
498
- if (!f)
497
+ const u = l.touches[0].clientY, h = c(l.target);
498
+ if (!h)
499
499
  return;
500
- const h = f.scrollTop, m = n.current - u < 0 ? "up" : "down", p = h <= 0 && m === "up", g = h >= f.scrollHeight - f.offsetHeight && m === "down";
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
501
  (p || g) && l.preventDefault(), n.current = u;
502
502
  },
503
503
  [t, n]
@@ -514,12 +514,12 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
514
514
  () => t.current && e
515
515
  ), N(
516
516
  "touchmove",
517
- c,
517
+ a,
518
518
  t.current,
519
519
  () => t.current && e
520
520
  ), e ? [Ot, t] : ["", t];
521
521
  }, Ot = `
522
- overflow-y: ${De() === he.Chrome || De() === he.EdgeChromium ? "overlay" : "auto"};
522
+ overflow-y: ${De() === fe.Chrome || De() === fe.EdgeChromium ? "overlay" : "auto"};
523
523
  overflow-x: hidden;
524
524
  -ms-overflow-style: none; /* IE 10+ */
525
525
  scrollbar-width: thin; /* Firefox */
@@ -559,25 +559,25 @@ 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) {
565
- const u = n.nodes.all.find((h) => h.name === "root-area"), f = n.nodes.all.find((h) => h.type === "view");
566
- if (!(f != null && f.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
564
+ if (n && a.current) {
565
+ const u = n.nodes.all.find((f) => f.name === "root-area"), h = n.nodes.all.find((f) => f.type === "view");
566
+ if (!(h != null && h.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
567
567
  e();
568
568
  else {
569
- const h = (g = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${g}"]`), m = h(f == null ? void 0 : f.id);
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 p = h(u == null ? void 0 : u.id);
571
+ const p = f(u == null ? void 0 : u.id);
572
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
582
  N(
583
583
  "transitionend",
@@ -586,7 +586,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
586
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`
@@ -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
- }, f = { minWidth: `${n}` };
904
- switch (c) {
903
+ }, h = { minWidth: `${n}` };
904
+ switch (a) {
905
905
  case "search":
906
906
  return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...u, children: [
907
907
  /* @__PURE__ */ i(
@@ -954,22 +954,22 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
954
954
  /* @__PURE__ */ i("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" })
955
955
  ] });
956
956
  case "caret-right":
957
- return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: f, ...u, children: [
957
+ return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...u, children: [
958
958
  /* @__PURE__ */ i("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }),
959
959
  /* @__PURE__ */ i("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" })
960
960
  ] });
961
961
  case "caret-left":
962
- return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: f, ...u, children: [
962
+ return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...u, children: [
963
963
  /* @__PURE__ */ i("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }),
964
964
  /* @__PURE__ */ i("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" })
965
965
  ] });
966
966
  case "caret-up":
967
- return /* @__PURE__ */ b(jt, { viewBox: "0 0 14 14", style: f, ...u, children: [
967
+ return /* @__PURE__ */ b(jt, { viewBox: "0 0 14 14", style: h, ...u, children: [
968
968
  /* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
969
969
  /* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
970
970
  ] });
971
971
  case "caret-down":
972
- return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: f, ...u, children: [
972
+ return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...u, children: [
973
973
  /* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
974
974
  /* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
975
975
  ] });
@@ -1297,7 +1297,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
1297
1297
  )
1298
1298
  ] });
1299
1299
  case "video":
1300
- return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ b("svg", { viewBox: "0 0 25 25", ...u, style: f, children: [
1300
+ return h.minWidth && typeof h.minWidth == "number" && (h.minWidth = `${h.minWidth}px`), /* @__PURE__ */ b("svg", { viewBox: "0 0 25 25", ...u, style: h, children: [
1301
1301
  /* @__PURE__ */ i(
1302
1302
  "path",
1303
1303
  {
@@ -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,7 +1453,7 @@ 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;
@@ -1478,8 +1478,8 @@ 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 });
1481
+ }, c = t || s[e] || "span";
1482
+ return /* @__PURE__ */ i(Yt, { className: n, as: c, children: o });
1483
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 = ({
@@ -1489,13 +1489,13 @@ 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(), [f, h] = Ae(!0), [m, p] = Fe(), g = Ie(m), y = 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]);
@@ -1506,7 +1506,7 @@ const Ut = 300, T1 = ({
1506
1506
  "click",
1507
1507
  (z) => {
1508
1508
  const { target: Z } = z;
1509
- !u.current || !h.current || !Z || u.current !== Z && h.current !== Z && !h.current.contains(Z) && !u.current.contains(Z) && p(!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
  );
@@ -1527,11 +1527,11 @@ const Ut = 300, T1 = ({
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
1532
  V,
1533
1533
  {
1534
- duration: c,
1534
+ duration: a,
1535
1535
  fullScreen: s,
1536
1536
  className: $(
1537
1537
  e,
@@ -1539,8 +1539,8 @@ const Ut = 300, T1 = ({
1539
1539
  `humany-drawer-${y.current}`
1540
1540
  ),
1541
1541
  clientHeight: document.body.clientHeight,
1542
- css: f,
1543
- ref: h,
1542
+ css: h,
1543
+ ref: f,
1544
1544
  children: [
1545
1545
  /* @__PURE__ */ i(
1546
1546
  ve,
@@ -1548,7 +1548,7 @@ const Ut = 300, T1 = ({
1548
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
  ),
@@ -1700,23 +1700,23 @@ 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
1721
  }, V1 = oe.forwardRef(
1722
1722
  ({
@@ -1726,30 +1726,30 @@ 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, f] = w(!1), h = Ie(u), [{ x: m, y: p }, g] = je(u, l.current, c.current), y = 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
- y && f(!1);
1733
+ y && h(!1);
1734
1734
  }, [y]), v(() => {
1735
- u && a.current ? a.current.focus() : !u && d.current && h && d.current.focus();
1736
- }, [u, a.current, d.current]), N(
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
1738
  (V) => {
1739
1739
  const { target: z } = V;
1740
- !c.current || !z || c.current !== z && !c.current.contains(z) && f(!1);
1740
+ !a.current || !z || a.current !== z && !a.current.contains(z) && h(!1);
1741
1741
  },
1742
1742
  window
1743
1743
  ), ae("router:changed", () => {
1744
- f(!1);
1744
+ h(!1);
1745
1745
  });
1746
1746
  const S = ye(l.current, () => {
1747
- f(!1);
1747
+ h(!1);
1748
1748
  }), R = M(
1749
1749
  (V) => {
1750
- V.stopPropagation(), g(V, d.current), f(!u), S();
1750
+ V.stopPropagation(), g(V, d.current), h(!u), S();
1751
1751
  },
1752
- [S, g, f]
1752
+ [S, g, h]
1753
1753
  );
1754
1754
  return /* @__PURE__ */ b(_, { children: [
1755
1755
  u && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
@@ -1763,14 +1763,14 @@ const Ut = 300, T1 = ({
1763
1763
  ...r,
1764
1764
  x: m,
1765
1765
  y: p,
1766
- ref: c,
1766
+ ref: a,
1767
1767
  children: [
1768
1768
  /* @__PURE__ */ i(
1769
1769
  ve,
1770
1770
  {
1771
- onClick: () => f(!1),
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
  }
@@ -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
- const [f, h] = w(t), m = L();
1881
+ const [h, f] = w(t), m = L();
1882
1882
  ge(u, () => m.current), v(() => {
1883
1883
  var y;
1884
1884
  t && ((y = m == null ? void 0 : m.current) == null || y.focus());
1885
1885
  }, [t, u, m]);
1886
1886
  const p = (y, S) => {
1887
- h(y), n && n(y), s && y && S.target.select();
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,
1892
+ type: a,
1893
1893
  onKeyDown: (y) => {
1894
- y.key === "Enter" && f && o(y), y.key === "Escape" && f && r(y);
1894
+ y.key === "Enter" && h && o(y), y.key === "Escape" && h && r(y);
1895
1895
  },
1896
1896
  onFocus: (y) => p(!0, y),
1897
1897
  onBlur: (y) => p(!1, y),
1898
- onChange: (y) => a(y.target.value || ""),
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,
@@ -1923,27 +1923,37 @@ const Ut = 300, T1 = ({
1923
1923
  ...D(r),
1924
1924
  ref: s,
1925
1925
  children: t.map(
1926
- (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)
1927
1927
  )
1928
1928
  }
1929
1929
  )
1930
1930
  ), cn = H(
1931
- ({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...a }, d) => /* @__PURE__ */ b(
1932
- "div",
1933
- {
1934
- className: $(o, "humany-paragraph"),
1935
- ...D(a),
1936
- ref: d,
1937
- children: [
1938
- n ? /* @__PURE__ */ b(X, { variant: "h1", children: [
1939
- s ? /* @__PURE__ */ i(Q, { symbol: s }) : null,
1940
- n
1941
- ] }) : null,
1942
- t ? /* @__PURE__ */ i(Ke, { html: t, htmlParseInstruction: r }) : null,
1943
- e ? /* @__PURE__ */ i(be, { children: e }) : null
1944
- ]
1945
- }
1946
- )
1931
+ ({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, d) => {
1932
+ var l;
1933
+ const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
1934
+ return /* @__PURE__ */ b(
1935
+ "div",
1936
+ {
1937
+ className: $(o, "humany-paragraph"),
1938
+ ...D(c),
1939
+ ref: d,
1940
+ children: [
1941
+ n ? /* @__PURE__ */ b(
1942
+ X,
1943
+ {
1944
+ variant: a && a.match(/h1|h2|h3|h4|h5|h6/) ? a : "h1",
1945
+ children: [
1946
+ s ? /* @__PURE__ */ i(Q, { symbol: s }) : null,
1947
+ n
1948
+ ]
1949
+ }
1950
+ ) : null,
1951
+ t ? /* @__PURE__ */ i(Ke, { html: t, htmlParseInstruction: r }) : null,
1952
+ e ? /* @__PURE__ */ i(be, { children: e }) : null
1953
+ ]
1954
+ }
1955
+ );
1956
+ }
1947
1957
  ), ln = H(
1948
1958
  ({
1949
1959
  header: e,
@@ -1952,26 +1962,26 @@ const Ut = 300, T1 = ({
1952
1962
  html: o,
1953
1963
  className: r,
1954
1964
  children: s,
1955
- symbol: a,
1965
+ symbol: c,
1956
1966
  items: d,
1957
- renderItem: c,
1967
+ renderItem: a,
1958
1968
  renderLi: l,
1959
1969
  ulProps: u,
1960
- ...f
1961
- }, h) => /* @__PURE__ */ b(
1970
+ ...h
1971
+ }, f) => /* @__PURE__ */ b(
1962
1972
  "div",
1963
1973
  {
1964
1974
  className: $(r, "humany-item-list"),
1965
1975
  "data-item-count": d.length,
1966
- ...D(f),
1967
- ref: h,
1976
+ ...D(h),
1977
+ ref: f,
1968
1978
  children: [
1969
- 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),
1970
1980
  d.length ? /* @__PURE__ */ i(
1971
1981
  an,
1972
1982
  {
1973
1983
  items: d,
1974
- renderItem: c,
1984
+ renderItem: a,
1975
1985
  renderLi: l,
1976
1986
  ...u
1977
1987
  }
@@ -1987,15 +1997,15 @@ const Ut = 300, T1 = ({
1987
1997
  rootItem: o,
1988
1998
  renderUnselected: r = !0,
1989
1999
  renderEmpty: s = !0,
1990
- ulProps: a,
2000
+ ulProps: c,
1991
2001
  liProps: d
1992
2002
  }) => {
1993
- const c = (f) => !l(f), l = (f) => !f || f.length < 1 ? !0 : !f.some((h) => !!h.selected), u = (f, h) => /* @__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(
1994
2004
  ln,
1995
2005
  {
1996
- className: $(`humany-item-tree-level-${h}`),
1997
- items: f,
1998
- ulProps: a,
2006
+ className: $(`humany-item-tree-level-${f}`),
2007
+ items: h,
2008
+ ulProps: c,
1999
2009
  renderItem: (m) => {
2000
2010
  const { id: p, selected: g, items: y, matches: S } = m, R = g && l(y);
2001
2011
  return !s && !S ? null : /* @__PURE__ */ at(
@@ -2005,14 +2015,14 @@ const Ut = 300, T1 = ({
2005
2015
  key: p,
2006
2016
  className: "humany-item-tree-item"
2007
2017
  },
2008
- n && n(m, h, R),
2009
- y && (r || R) && u(y, h + 1)
2018
+ n && n(m, f, R),
2019
+ y && (r || R) && u(y, f + 1)
2010
2020
  );
2011
2021
  }
2012
2022
  }
2013
2023
  );
2014
2024
  return /* @__PURE__ */ b("div", { className: $(e, "humany-item-tree"), children: [
2015
- o && o(!c(t || [])),
2025
+ o && o(!a(t || [])),
2016
2026
  t && u(t, 1)
2017
2027
  ] });
2018
2028
  }, un = H(
@@ -2024,28 +2034,28 @@ const Ut = 300, T1 = ({
2024
2034
  to: o = "",
2025
2035
  params: r = {},
2026
2036
  children: s,
2027
- ...a
2037
+ ...c
2028
2038
  }, d) => {
2029
- const c = Oe(), l = T();
2030
- if (!c)
2039
+ const a = Oe(), l = T();
2040
+ if (!a)
2031
2041
  return null;
2032
2042
  let u = "";
2033
- const f = {
2043
+ const h = {
2034
2044
  onClick: t,
2035
2045
  className: $(e, "humany-route-link"),
2036
2046
  to: u,
2037
2047
  innerRef: d,
2038
- ...a,
2048
+ ...c,
2039
2049
  ref: null
2040
2050
  };
2041
2051
  if (n) {
2042
- if (!(c.routes || []).find((g) => g.name === n))
2052
+ if (!(a.routes || []).find((g) => g.name === n))
2043
2053
  return process.env.NODE_ENV !== "production" && ue.warn(
2044
2054
  `Unable to create route. No route named "${n}" exist.`
2045
2055
  ), /* @__PURE__ */ i(
2046
2056
  de,
2047
2057
  {
2048
- ...f,
2058
+ ...h,
2049
2059
  onClick: (g) => {
2050
2060
  t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(
2051
2061
  `Unable to navigate. No route named "${n}" exist.`
@@ -2068,13 +2078,13 @@ const Ut = 300, T1 = ({
2068
2078
  {}
2069
2079
  );
2070
2080
  try {
2071
- u = c.generate(n, p || {});
2081
+ u = a.generate(n, p || {});
2072
2082
  } catch {
2073
- return /* @__PURE__ */ i(de, { ...f, ref: f.innerRef, children: s });
2083
+ return /* @__PURE__ */ i(de, { ...h, ref: h.innerRef, children: s });
2074
2084
  }
2075
- u && c.settings.mode && c.settings.mode === ze.browser && u[0] !== "/" && (u = `/${u}`);
2076
- } else if (o && c.history)
2077
- 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({
2078
2088
  hash: "",
2079
2089
  pathname: o,
2080
2090
  search: "",
@@ -2084,11 +2094,11 @@ const Ut = 300, T1 = ({
2084
2094
  return process.env.NODE_ENV !== "production" && ue.warn(
2085
2095
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
2086
2096
  ), null;
2087
- if (c.settings && c.settings.mode === ze.scopedHash) {
2088
- const h = l.get("$widget").name;
2089
- u = bt(u, h);
2097
+ if (a.settings && a.settings.mode === ze.scopedHash) {
2098
+ const f = l.get("$widget").name;
2099
+ u = bt(u, f);
2090
2100
  }
2091
- return f.as ? /* @__PURE__ */ i(dn, { ...f, as: f.as, children: s }) : /* @__PURE__ */ i(de, { ...f, to: u, children: s });
2101
+ return h.as ? /* @__PURE__ */ i(dn, { ...h, as: h.as, children: s }) : /* @__PURE__ */ i(de, { ...h, to: u, children: s });
2092
2102
  }
2093
2103
  ), dn = C.span``, xe = H(
2094
2104
  ({
@@ -2100,20 +2110,20 @@ const Ut = 300, T1 = ({
2100
2110
  onKeyDown: r = () => {
2101
2111
  },
2102
2112
  title: s,
2103
- as: a,
2113
+ as: c,
2104
2114
  href: d,
2105
- children: c,
2115
+ children: a,
2106
2116
  target: l,
2107
2117
  routeName: u,
2108
- params: f,
2109
- ...h
2118
+ params: h,
2119
+ ...f
2110
2120
  }, m) => {
2111
2121
  const p = {
2112
2122
  title: s,
2113
2123
  role: u === "index" ? "button" : void 0,
2114
2124
  "aria-expanded": u === "index" ? "false" : void 0,
2115
2125
  disabled: t,
2116
- as: a,
2126
+ as: c,
2117
2127
  tabIndex: n,
2118
2128
  className: $(e, "humany-link", [
2119
2129
  !!t,
@@ -2134,34 +2144,34 @@ const Ut = 300, T1 = ({
2134
2144
  r(g);
2135
2145
  }
2136
2146
  };
2137
- return h["data-client-name"] === "custom.link" && (p.role = "link"), u ? /* @__PURE__ */ i(
2138
- fn,
2147
+ return f["data-client-name"] === "custom.link" && (p.role = "link"), u ? /* @__PURE__ */ i(
2148
+ hn,
2139
2149
  {
2140
2150
  name: u,
2141
- params: f,
2151
+ params: h,
2142
2152
  ...p,
2143
- ...D(h),
2153
+ ...D(f),
2144
2154
  ref: m,
2145
- children: c
2155
+ children: a
2146
2156
  }
2147
2157
  ) : /* @__PURE__ */ i(
2148
- hn,
2158
+ fn,
2149
2159
  {
2150
2160
  href: d,
2151
2161
  target: l,
2152
2162
  ...p,
2153
- ...D(h),
2163
+ ...D(f),
2154
2164
  ref: m,
2155
- children: c
2165
+ children: a
2156
2166
  }
2157
2167
  );
2158
2168
  }
2159
- ), fn = C(un)`
2169
+ ), hn = C(un)`
2160
2170
  ${(e) => e.disabled ? `
2161
2171
  pointer-events: none;
2162
2172
  opacity: .7;
2163
2173
  ` : "cursor: pointer;"}
2164
- `, hn = C.a`
2174
+ `, fn = C.a`
2165
2175
  ${(e) => e.disabled ? `
2166
2176
  pointer-events: none;
2167
2177
  opacity: .7;
@@ -2174,7 +2184,7 @@ const Ut = 300, T1 = ({
2174
2184
  },
2175
2185
  ...r
2176
2186
  }) => {
2177
- const s = L(), a = M(
2187
+ const s = L(), c = M(
2178
2188
  (d) => {
2179
2189
  d.target === s.current && o(d);
2180
2190
  },
@@ -2194,7 +2204,7 @@ const Ut = 300, T1 = ({
2194
2204
  className: "humany-overlay",
2195
2205
  duration: t,
2196
2206
  ref: s,
2197
- onClick: a,
2207
+ onClick: c,
2198
2208
  ...r,
2199
2209
  children: n
2200
2210
  }
@@ -2321,7 +2331,7 @@ const Ut = 300, T1 = ({
2321
2331
  ...o
2322
2332
  }) => {
2323
2333
  var p;
2324
- const r = L(null), [s, a] = w(!1), [d, c] = w(!1), { width: l, height: u, ...f } = o.style || {}, h = M(() => {
2334
+ const r = L(null), [s, c] = w(!1), [d, a] = w(!1), { width: l, height: u, ...h } = o.style || {}, f = M(() => {
2325
2335
  const g = r.current;
2326
2336
  if (g) {
2327
2337
  const y = window.innerWidth / g.naturalWidth, S = window.innerHeight / g.naturalHeight, R = Math.min(y, S);
@@ -2332,30 +2342,30 @@ const Ut = 300, T1 = ({
2332
2342
  const g = r.current;
2333
2343
  if (g && s) {
2334
2344
  if (!d) {
2335
- c(!0);
2336
- const y = h();
2345
+ a(!0);
2346
+ const y = f();
2337
2347
  n(y);
2338
2348
  }
2339
2349
  return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
2340
2350
  }
2341
2351
  return null;
2342
2352
  }, [e, r, s, t.src]);
2343
- return v(() => (a(!1), function() {
2344
- c(!1);
2353
+ return v(() => (c(!1), function() {
2354
+ a(!1);
2345
2355
  }), [t.src]), /* @__PURE__ */ b(_, { children: [
2346
2356
  /* @__PURE__ */ i(kn, { loading: !s }),
2347
2357
  /* @__PURE__ */ i(
2348
2358
  $n,
2349
2359
  {
2350
2360
  onLoad: () => {
2351
- a(!0);
2361
+ c(!0);
2352
2362
  },
2353
2363
  ref: r,
2354
2364
  imageSize: m,
2355
2365
  draggable: "false",
2356
2366
  ...o,
2357
2367
  alt: ((p = o.alt) == null ? void 0 : p.toString()) || "",
2358
- style: f,
2368
+ style: h,
2359
2369
  src: t.src,
2360
2370
  loaded: s
2361
2371
  }
@@ -2390,11 +2400,11 @@ const Ut = 300, T1 = ({
2390
2400
  return [t, o];
2391
2401
  }, Sn = ({ attrs: e, htmlBody: t }) => {
2392
2402
  var Se;
2393
- const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, a] = w(1), [d, c] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, u] = w(!1), [f, h] = 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);
2403
+ const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [d, a] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, u] = w(!1), [h, f] = Mn(), [m, p] = w(null), [g, y] = w(null), S = L(null), R = L(null), V = L(null), z = L(null), Z = L(null), [_e, qe] = w(null);
2394
2404
  v(() => {
2395
2405
  n && p(null);
2396
2406
  }, [n]), v(() => {
2397
- a(1);
2407
+ c(1);
2398
2408
  }, [m]), v(() => {
2399
2409
  var I, ee;
2400
2410
  if (m === null || R.current === null)
@@ -2447,9 +2457,9 @@ const Ut = 300, T1 = ({
2447
2457
  p(null);
2448
2458
  }, []), $e = M(
2449
2459
  (x) => {
2450
- a(x ? s + s * 0.25 : s - s * 0.25);
2460
+ c(x ? s + s * 0.25 : s - s * 0.25);
2451
2461
  },
2452
- [a, s]
2462
+ [c, s]
2453
2463
  ), Ge = M(() => {
2454
2464
  if (m !== null) {
2455
2465
  const { src: x } = A[m];
@@ -2458,7 +2468,7 @@ const Ut = 300, T1 = ({
2458
2468
  }, [A, m]), Je = M(
2459
2469
  (x) => {
2460
2470
  const E = z.current;
2461
- E && (c({
2471
+ E && (a({
2462
2472
  top: E.scrollTop,
2463
2473
  left: E.scrollLeft,
2464
2474
  x: x.clientX,
@@ -2495,12 +2505,12 @@ const Ut = 300, T1 = ({
2495
2505
  /* @__PURE__ */ i(Ye, { visible: m !== null, onClick: Qe, children: /* @__PURE__ */ b(
2496
2506
  Vn,
2497
2507
  {
2498
- onMouseDown: () => h(),
2499
- onMouseMove: () => h(),
2500
- onTouchStart: () => h(),
2501
- onKeyDown: () => h(),
2508
+ onMouseDown: () => f(),
2509
+ onMouseMove: () => f(),
2510
+ onTouchStart: () => f(),
2511
+ onKeyDown: () => f(),
2502
2512
  children: [
2503
- /* @__PURE__ */ i(Nn, { show: f.toString(), children: /* @__PURE__ */ i(
2513
+ /* @__PURE__ */ i(Nn, { show: h.toString(), children: /* @__PURE__ */ i(
2504
2514
  zn,
2505
2515
  {
2506
2516
  ref: R,
@@ -2533,7 +2543,7 @@ const Ut = 300, T1 = ({
2533
2543
  wn,
2534
2544
  {
2535
2545
  changeZoom: (x) => {
2536
- a(x);
2546
+ c(x);
2537
2547
  },
2538
2548
  zoomState: s,
2539
2549
  ...e,
@@ -2550,7 +2560,7 @@ const Ut = 300, T1 = ({
2550
2560
  Bn,
2551
2561
  {
2552
2562
  ref: V,
2553
- show: f.toString(),
2563
+ show: h.toString(),
2554
2564
  buttons: [
2555
2565
  {
2556
2566
  id: "previous",
@@ -2573,7 +2583,7 @@ const Ut = 300, T1 = ({
2573
2583
  ]
2574
2584
  }
2575
2585
  ),
2576
- /* @__PURE__ */ b(Wn, { show: f.toString(), children: [
2586
+ /* @__PURE__ */ b(Wn, { show: h.toString(), children: [
2577
2587
  /* @__PURE__ */ i(
2578
2588
  Dn,
2579
2589
  {
@@ -2633,24 +2643,24 @@ const Ut = 300, T1 = ({
2633
2643
  ({
2634
2644
  id: r,
2635
2645
  circle: s = !1,
2636
- show: a = !0,
2646
+ show: c = !0,
2637
2647
  ariaLabel: d,
2638
- onClick: c,
2648
+ onClick: a,
2639
2649
  icon: l,
2640
2650
  className: u
2641
- }, f) => /* @__PURE__ */ i(
2651
+ }, h) => /* @__PURE__ */ i(
2642
2652
  Hn,
2643
2653
  {
2644
2654
  circle: s.toString(),
2645
- onClick: c,
2646
- tabIndex: a ? void 0 : -1,
2647
- show: a.toString(),
2655
+ onClick: a,
2656
+ tabIndex: c ? void 0 : -1,
2657
+ show: c.toString(),
2648
2658
  icon: l,
2649
2659
  className: u,
2650
2660
  "aria-label": d,
2651
2661
  children: /* @__PURE__ */ i(Q, { size: 24, symbol: { type: "Svg", content: l } })
2652
2662
  },
2653
- r + f.toString()
2663
+ r + h.toString()
2654
2664
  )
2655
2665
  )
2656
2666
  }
@@ -2836,29 +2846,29 @@ const Ut = 300, T1 = ({
2836
2846
  },
2837
2847
  close: r = !1,
2838
2848
  ...s
2839
- }, a) => {
2840
- const [d, c] = Fe(), [l, u] = Ae(!0), f = L(), h = L(U()), m = j("Escape");
2849
+ }, c) => {
2850
+ const [d, a] = Fe(), [l, u] = Ae(!0), h = L(), f = L(U()), m = j("Escape");
2841
2851
  v(() => {
2842
- (m || r) && c(!1);
2852
+ (m || r) && a(!1);
2843
2853
  }, [m, r]), v(() => {
2844
- d && f.current && f.current.focus();
2845
- }, [d, f.current]), ae("router:changed", () => {
2846
- c(!1);
2854
+ d && h.current && h.current.focus();
2855
+ }, [d, h.current]), ae("router:changed", () => {
2856
+ a(!1);
2847
2857
  });
2848
2858
  const p = M(
2849
2859
  (y) => {
2850
- c(!1), o(y);
2860
+ a(!1), o(y);
2851
2861
  },
2852
- [o, c]
2862
+ [o, a]
2853
2863
  );
2854
- ge(a, () => ({
2864
+ ge(c, () => ({
2855
2865
  close() {
2856
- c(!1);
2866
+ a(!1);
2857
2867
  }
2858
2868
  }));
2859
- const g = M(() => ye(h.current, () => {
2860
- c(!1);
2861
- }), [h.current]);
2869
+ const g = M(() => ye(f.current, () => {
2870
+ a(!1);
2871
+ }), [f.current]);
2862
2872
  return /* @__PURE__ */ b(_, { children: [
2863
2873
  /* @__PURE__ */ i(Ye, { visible: d, onClick: p, children: /* @__PURE__ */ b(
2864
2874
  An,
@@ -2866,7 +2876,7 @@ const Ut = 300, T1 = ({
2866
2876
  className: $(
2867
2877
  e,
2868
2878
  "humany-modal",
2869
- `humany-modal-${h.current}`
2879
+ `humany-modal-${f.current}`
2870
2880
  ),
2871
2881
  css: l,
2872
2882
  tabIndex: -1,
@@ -2876,9 +2886,9 @@ const Ut = 300, T1 = ({
2876
2886
  /* @__PURE__ */ i(
2877
2887
  ve,
2878
2888
  {
2879
- onClick: () => c(!1),
2889
+ onClick: () => a(!1),
2880
2890
  tabIndex: 0,
2881
- ref: f,
2891
+ ref: h,
2882
2892
  children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
2883
2893
  }
2884
2894
  ),
@@ -2888,7 +2898,7 @@ const Ut = 300, T1 = ({
2888
2898
  ) }),
2889
2899
  oe.cloneElement(n, {
2890
2900
  onClick: (y) => {
2891
- c(), g();
2901
+ a(), g();
2892
2902
  }
2893
2903
  })
2894
2904
  ] });
@@ -2921,28 +2931,28 @@ const Ut = 300, T1 = ({
2921
2931
  },
2922
2932
  onConfirm: s = () => {
2923
2933
  },
2924
- cancelLabel: a = "",
2934
+ cancelLabel: c = "",
2925
2935
  confirmLabel: d = ""
2926
2936
  }) => {
2927
- const c = L(), l = M(() => {
2928
- var f;
2929
- r(), (f = c == null ? void 0 : c.current) == null || f.close();
2937
+ const a = L(), l = M(() => {
2938
+ var h;
2939
+ r(), (h = a == null ? void 0 : a.current) == null || h.close();
2930
2940
  }, [r]), u = M(() => {
2931
- var f;
2932
- s(), (f = c == null ? void 0 : c.current) == null || f.close();
2941
+ var h;
2942
+ s(), (h = a == null ? void 0 : a.current) == null || h.close();
2933
2943
  }, [s]);
2934
2944
  return /* @__PURE__ */ b(
2935
2945
  Fn,
2936
2946
  {
2937
2947
  className: e,
2938
2948
  trigger: t,
2939
- ref: c,
2949
+ ref: a,
2940
2950
  onOverlayClick: l,
2941
2951
  children: [
2942
2952
  n && /* @__PURE__ */ i(Be, { children: n }),
2943
2953
  o && /* @__PURE__ */ i(Be, { children: o }),
2944
2954
  d && /* @__PURE__ */ i(Pn, { onClick: u, children: d }),
2945
- a && /* @__PURE__ */ i(jn, { onClick: l, children: a })
2955
+ c && /* @__PURE__ */ i(jn, { onClick: l, children: c })
2946
2956
  ]
2947
2957
  }
2948
2958
  );
@@ -3103,7 +3113,7 @@ class A1 extends ct {
3103
3113
  this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
3104
3114
  const o = n.querySelectorAll(
3105
3115
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
3106
- ), s = [].filter.call(o, (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];
3107
3117
  s && s.focus();
3108
3118
  }));
3109
3119
  }
@@ -3145,10 +3155,10 @@ const F1 = ({
3145
3155
  timestamp: n
3146
3156
  }) => /* @__PURE__ */ i("span", { className: $(e, "humany-timestamp"), children: Qn(n, t) }), Te = (e) => `0${e}`.slice(-2);
3147
3157
  function Qn(e, t) {
3148
- const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), 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(
3149
3159
  d
3150
3160
  )}`;
3151
- 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}`;
3152
3162
  }
3153
3163
  const P1 = ({
3154
3164
  className: e,
@@ -3157,26 +3167,26 @@ const P1 = ({
3157
3167
  sticky: o = !1,
3158
3168
  ...r
3159
3169
  }) => {
3160
- const [s, a] = w(!1), d = L(U()), c = L(), [{ x: l, y: u }, f] = je(s, d.current, c.current), h = (p) => {
3170
+ const [s, c] = w(!1), d = L(U()), a = L(), [{ x: l, y: u }, h] = je(s, d.current, a.current), f = (p) => {
3161
3171
  const { target: g } = p;
3162
- !c.current || !g || c.current !== g && !c.current.contains(g) && a(!1);
3172
+ !a.current || !g || a.current !== g && !a.current.contains(g) && c(!1);
3163
3173
  };
3164
3174
  v(() => {
3165
3175
  if (o)
3166
- return window.addEventListener("click", h), () => {
3167
- window.removeEventListener("click", h);
3176
+ return window.addEventListener("click", f), () => {
3177
+ window.removeEventListener("click", f);
3168
3178
  };
3169
3179
  }, [s, o]);
3170
3180
  const m = M(
3171
3181
  (p, g) => {
3172
- f(p, c.current), a(g);
3182
+ h(p, a.current), c(g);
3173
3183
  },
3174
- [f, a]
3184
+ [h, c]
3175
3185
  );
3176
3186
  return /* @__PURE__ */ b(
3177
3187
  Gn,
3178
3188
  {
3179
- ref: c,
3189
+ ref: a,
3180
3190
  className: "humany-tooltip-trigger",
3181
3191
  onMouseEnter: o ? void 0 : (p) => m(p, !0),
3182
3192
  onMouseLeave: o ? void 0 : (p) => m(p, !1),
@@ -3243,35 +3253,35 @@ const P1 = ({
3243
3253
  unmountOnExit: o = !0,
3244
3254
  timeout: r,
3245
3255
  children: s,
3246
- transitions: a
3247
- } = e, c = (() => {
3256
+ transitions: c
3257
+ } = e, a = (() => {
3248
3258
  var l, u;
3249
- if (!(!a || a === "none")) {
3250
- if (typeof a == "string")
3259
+ if (!(!c || c === "none")) {
3260
+ if (typeof c == "string")
3251
3261
  return {
3252
3262
  enter: {
3253
- transitionKeys: a,
3263
+ transitionKeys: c,
3254
3264
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3255
3265
  easing: "ease-in"
3256
3266
  },
3257
3267
  exit: {
3258
- transitionKeys: a,
3268
+ transitionKeys: c,
3259
3269
  duration: r ? typeof r == "number" ? r : r.exit : 200,
3260
3270
  easing: "ease-out"
3261
3271
  }
3262
3272
  };
3263
- if (typeof a == "object") {
3264
- const { enter: f, exit: h } = a;
3273
+ if (typeof c == "object") {
3274
+ const { enter: h, exit: f } = c;
3265
3275
  return {
3266
3276
  enter: {
3267
- transitionKeys: (l = a.enter) == null ? void 0 : l.type,
3277
+ transitionKeys: (l = c.enter) == null ? void 0 : l.type,
3268
3278
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3269
- easing: f.easing ? f.easing : "ease-in"
3279
+ easing: h.easing ? h.easing : "ease-in"
3270
3280
  },
3271
3281
  exit: {
3272
- transitionKeys: (u = a.enter) == null ? void 0 : u.type,
3282
+ transitionKeys: (u = c.enter) == null ? void 0 : u.type,
3273
3283
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3274
- easing: h.easing ? h.easing : "ease-out"
3284
+ easing: f.easing ? f.easing : "ease-out"
3275
3285
  }
3276
3286
  };
3277
3287
  }
@@ -3281,15 +3291,15 @@ const P1 = ({
3281
3291
  ut,
3282
3292
  {
3283
3293
  timeout: {
3284
- enter: c && c.enter.duration || 0,
3285
- exit: c && c.exit.duration || 0
3294
+ enter: a && a.enter.duration || 0,
3295
+ exit: a && a.exit.duration || 0
3286
3296
  },
3287
3297
  in: t,
3288
3298
  appear: !0,
3289
3299
  mountOnEnter: n,
3290
3300
  unmountOnExit: o,
3291
3301
  onEnter: (l) => l.clientHeight,
3292
- children: (l) => s && s(l, c && fe.compose(l, c))
3302
+ children: (l) => s && s(l, a && he.compose(l, a))
3293
3303
  }
3294
3304
  );
3295
3305
  }, e1 = H(
@@ -3301,52 +3311,52 @@ const P1 = ({
3301
3311
  widgetName: o,
3302
3312
  activationOptions: r,
3303
3313
  ...s
3304
- }, a) => {
3305
- const d = T(), c = () => {
3306
- const { implementation: f } = d.get("$widget");
3307
- return f.widgets.get(o);
3314
+ }, c) => {
3315
+ const d = T(), a = () => {
3316
+ const { implementation: h } = d.get("$widget");
3317
+ return h.widgets.get(o);
3308
3318
  };
3309
3319
  v(() => {
3310
- const f = c();
3311
- return f == null || f.activate(r).then(() => f.invoke("attach")), () => {
3312
- f == null || f.deactivate();
3320
+ const h = a();
3321
+ return h == null || h.activate(r).then(() => h.invoke("attach")), () => {
3322
+ h == null || h.deactivate();
3313
3323
  };
3314
3324
  }, [o]);
3315
- const l = (f) => {
3316
- const h = c(), m = f.currentTarget;
3317
- if (h) {
3325
+ const l = (h) => {
3326
+ const f = a(), m = h.currentTarget;
3327
+ if (f) {
3318
3328
  const p = () => {
3319
- h.invoke("renderState").then(
3320
- (g) => g === ne.open ? h.invoke("close") : h.invoke("open")
3329
+ f.invoke("renderState").then(
3330
+ (g) => g === ne.open ? f.invoke("close") : f.invoke("open")
3321
3331
  ).then(() => {
3322
- h.events.subscribeOnce(
3332
+ f.events.subscribeOnce(
3323
3333
  "widget:area-rendered",
3324
3334
  (g, y) => {
3325
3335
  d.get(
3326
3336
  "widgetDOMElement"
3327
- ) && h.events.dispatch("widget:modal-opened", {
3328
- name: h.name,
3337
+ ) && f.events.dispatch("widget:modal-opened", {
3338
+ name: f.name,
3329
3339
  ref: m
3330
3340
  });
3331
3341
  }
3332
3342
  );
3333
3343
  });
3334
3344
  };
3335
- h.state === ft.Deactivated ? h.activate(r).then(() => h.invoke("attach")).then(p) : p();
3345
+ f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(p) : p();
3336
3346
  }
3337
- }, u = (f) => {
3338
- f.key === "Enter" && (f.preventDefault(), l(f));
3347
+ }, u = (h) => {
3348
+ h.key === "Enter" && (h.preventDefault(), l(h));
3339
3349
  };
3340
3350
  return /* @__PURE__ */ i(
3341
3351
  xe,
3342
3352
  {
3343
3353
  className: $(e, "humany-widget-link"),
3344
3354
  onKeyDown: u,
3345
- onClick: (f) => {
3346
- n(f), l(f);
3355
+ onClick: (h) => {
3356
+ n(h), l(h);
3347
3357
  },
3348
3358
  ...s,
3349
- ref: a,
3359
+ ref: c,
3350
3360
  children: t
3351
3361
  }
3352
3362
  );
@@ -3356,8 +3366,8 @@ const P1 = ({
3356
3366
  const r = T(), s = re(() => {
3357
3367
  if (!r)
3358
3368
  return null;
3359
- const a = r.get("widgetDOMElement");
3360
- return !a || !a.childElementCount ? null : a.children[0];
3369
+ const c = r.get("widgetDOMElement");
3370
+ return !c || !c.childElementCount ? null : c.children[0];
3361
3371
  }, [r]);
3362
3372
  return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
3363
3373
  t1,
@@ -3449,7 +3459,7 @@ export {
3449
3459
  Pt as list,
3450
3460
  z1 as paddedBorderTabStyle,
3451
3461
  Et as processHtmlString,
3452
- fe as transitionComposer,
3462
+ he as transitionComposer,
3453
3463
  C1 as useAction,
3454
3464
  y1 as useChildren,
3455
3465
  b1 as useColumns,