@telia-ace/widget-ui 1.0.31 → 1.0.32-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ var S = (e, t) => {
21
21
  };
22
22
  var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
23
23
  import { Container as ct, WidgetState as lt } from "@webprovisions/platform";
24
- import r, { forwardRef as N, createContext as X, useContext as K, useState as $, useEffect as v, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as se, Component as ut, lazy as mt } from "react";
24
+ import r, { forwardRef as N, createContext as X, useContext as K, useState as $, useEffect as E, useRef as R, useCallback as T, useImperativeHandle as Ce, useMemo as se, Component as ut, lazy as mt } from "react";
25
25
  import { ComponentPlatform as dt, asDescriptor as ft, createEventSubscriber as ht, ComponentQuery as pt, WidgetRenderState as oe, extendComponent as gt } from "@telia-ace/widget-core";
26
26
  import { css as L, keyframes as Ze } from "@emotion/react";
27
27
  import y from "@emotion/styled";
@@ -259,16 +259,16 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
259
259
  type: "",
260
260
  name: "",
261
261
  branch: ""
262
- }), Pt = X({}), Ft = X(null), At = X(null), Kt = () => K(Pe), ye = Kt, Yt = () => K(It), W = Yt, jt = (e, t) => {
262
+ }), Pt = X({}), Ft = X(null), At = X(null), Kt = () => K(Pe), ye = Kt, jt = () => K(It), W = jt, Yt = (e, t) => {
263
263
  const n = ye().id, o = W();
264
264
  return (s, i) => {
265
265
  (t || o).getAsync("actionResolver").then((a) => {
266
266
  a.action(e || n, s, i);
267
267
  });
268
268
  };
269
- }, go = jt, Xt = (e) => {
269
+ }, go = Yt, Xt = (e) => {
270
270
  const t = K(Pe), n = U(), [o, s] = $();
271
- return v(() => {
271
+ return E(() => {
272
272
  if ((e || t.id) && n) {
273
273
  const i = n.nodes.get(e || t.id);
274
274
  s(i);
@@ -276,18 +276,18 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
276
276
  }, [e, t.id, n]), o;
277
277
  }, be = Xt, Ut = () => {
278
278
  const e = R(!1);
279
- return v(() => (e.current = !0, () => {
279
+ return E(() => (e.current = !0, () => {
280
280
  e.current = !1;
281
281
  }), []), e;
282
282
  }, O = Ut, _t = (e) => {
283
283
  const t = W(), [n, o] = $(null), s = O();
284
- return v(() => {
284
+ return E(() => {
285
285
  dt.getInstance(e || t).then((i) => {
286
286
  s.current && o(i);
287
287
  });
288
288
  }, [s]), n;
289
289
  }, U = _t, qt = () => {
290
- const e = be(), t = U(), [n, o] = $([]), s = O(), i = H(
290
+ const e = be(), t = U(), [n, o] = $([]), s = O(), i = T(
291
291
  (a) => {
292
292
  if (t && s.current && a) {
293
293
  const l = t.getBranch(a), u = a.getChildren(l).map((c) => ft(c));
@@ -296,9 +296,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
296
296
  },
297
297
  [s, t, o, e]
298
298
  );
299
- return v(() => {
299
+ return E(() => {
300
300
  e && i(e);
301
- }, [e, t]), v(() => {
301
+ }, [e, t]), E(() => {
302
302
  if (t) {
303
303
  const [a, l] = ht(t.events);
304
304
  return a("components:set-layout", (u, c) => {
@@ -314,7 +314,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
314
314
  }, [e, t, i]), n;
315
315
  }, Co = qt, Qt = () => K(Ot), yo = Qt, Gt = (e, t) => {
316
316
  const n = ye(), o = W(), [s, i] = $(void 0), a = O(), l = e || n.type || "";
317
- return v(() => {
317
+ return E(() => {
318
318
  if (l) {
319
319
  let u;
320
320
  return (t || o).getAsync("componentResolver").then((c) => {
@@ -332,9 +332,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
332
332
  }, [a, l, t, o]), s;
333
333
  }, bo = Gt, Jt = (e) => {
334
334
  const t = be(e), n = U(), [o, s] = $({}), i = O();
335
- return v(() => {
335
+ return E(() => {
336
336
  t && i.current && s(t.attributes.context);
337
- }, [i, t]), v(() => {
337
+ }, [i, t]), E(() => {
338
338
  if (n) {
339
339
  const a = n.events.subscribe(
340
340
  "components:context-changed",
@@ -349,7 +349,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
349
349
  }, [i, n, t]), o;
350
350
  }, en = Jt, tn = () => K(At), vo = tn, nn = () => {
351
351
  const e = U(), t = ye(), [n, o] = $([]), [s, i] = $();
352
- return v(() => {
352
+ return E(() => {
353
353
  if (e && t) {
354
354
  const a = new pt(e).withId(t.id), l = e.actions(a, t.type || q());
355
355
  i(l), n !== null && (n.forEach((u) => {
@@ -367,9 +367,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
367
367
  }, Eo = nn, I = (e, t, n = window, o = () => !0) => {
368
368
  const s = R(() => {
369
369
  });
370
- v(() => {
370
+ E(() => {
371
371
  s.current = t;
372
- }, [t]), v(() => {
372
+ }, [t]), E(() => {
373
373
  if (!(n && o()))
374
374
  return;
375
375
  const a = (l) => s.current(l);
@@ -382,7 +382,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
382
382
  return n;
383
383
  }, on = rn, sn = () => {
384
384
  const [e, t] = $(!1);
385
- return v(() => {
385
+ return E(() => {
386
386
  const n = () => {
387
387
  t(!1);
388
388
  }, o = (s) => {
@@ -393,24 +393,24 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
393
393
  };
394
394
  }, []), e;
395
395
  }, xo = sn, an = (e, t) => {
396
- const [n, o] = $(!1), s = H(
396
+ const [n, o] = $(!1), s = T(
397
397
  (a) => {
398
398
  const { key: l } = a;
399
399
  l === e && (o(!0), t && t(a));
400
400
  },
401
401
  [o, t]
402
- ), i = H(
402
+ ), i = T(
403
403
  ({ key: a }) => {
404
404
  a === e && o(!1);
405
405
  },
406
406
  [o]
407
407
  );
408
408
  return I("keydown", s, window), I("keyup", i, window), n;
409
- }, j = an, cn = (e) => {
409
+ }, Y = an, cn = (e) => {
410
410
  const t = be(e), n = U(), [o, s] = $({}), i = O();
411
- return v(() => {
411
+ return E(() => {
412
412
  t && i.current && s(t.attributes.layout);
413
- }, [t, i]), v(() => {
413
+ }, [t, i]), E(() => {
414
414
  if (n) {
415
415
  const a = n.events.subscribe(
416
416
  "components:layout-changed",
@@ -425,12 +425,12 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
425
425
  }, [n, i, t]), o;
426
426
  }, wo = cn, ln = (e) => {
427
427
  const t = R();
428
- return v(() => {
428
+ return E(() => {
429
429
  t.current = e;
430
430
  }), t.current;
431
431
  }, Fe = ln, un = () => K(Pt), $o = un, mn = (e) => {
432
432
  const [t, n] = $(), o = W(), s = O();
433
- return v(() => {
433
+ return E(() => {
434
434
  let i;
435
435
  const a = (e || o).get("$widget");
436
436
  if (!a)
@@ -457,7 +457,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
457
457
  }, [s]), t;
458
458
  }, ko = mn, dn = () => K(Ft), Ae = dn, fn = (e) => {
459
459
  const t = W(), n = Ae(), [o, s] = $({ name: "", params: {} }), i = O();
460
- return v(() => {
460
+ return E(() => {
461
461
  const a = (e || t).get("$widget");
462
462
  if (!a)
463
463
  return;
@@ -468,7 +468,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
468
468
  De(d), s({ name: p, params: d });
469
469
  }
470
470
  });
471
- }, [i, e, t]), v(() => {
471
+ }, [i, e, t]), E(() => {
472
472
  if (n && n.history && i.current) {
473
473
  const a = n.getRouteData(), { name: l, params: u } = a;
474
474
  De(u), s({ name: l, params: u });
@@ -477,18 +477,18 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
477
477
  }, Lo = fn, Ke = (e) => {
478
478
  const t = R(), n = R(0);
479
479
  let o;
480
- const s = H(() => {
480
+ const s = T(() => {
481
481
  var c;
482
482
  (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
483
483
  var m;
484
484
  (m = t.current) == null || m.classList.remove("humany-scrolling");
485
485
  }, 500);
486
- }, [t]), i = H(
486
+ }, [t]), i = T(
487
487
  (c) => {
488
488
  n.current = c.touches[0].clientY;
489
489
  },
490
490
  [t]
491
- ), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = H(
491
+ ), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = T(
492
492
  (c) => {
493
493
  if (!c.cancelable)
494
494
  return;
@@ -531,19 +531,19 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
531
531
  }
532
532
  `, pn = () => {
533
533
  const [e, t] = $(null), n = W(), o = O();
534
- return v(() => {
534
+ return E(() => {
535
535
  n.get("settings").then((s) => {
536
536
  o.current && t(s);
537
537
  });
538
538
  }, [o]), e;
539
539
  }, Mo = pn, gn = (e = !1) => {
540
- const [t, n] = $(e), o = H((s) => {
540
+ const [t, n] = $(e), o = T((s) => {
541
541
  n(typeof s == "boolean" ? s : (i) => !i);
542
542
  }, []);
543
543
  return [t, o];
544
- }, Ye = gn, So = (e) => {
544
+ }, je = gn, So = (e) => {
545
545
  const t = W(), n = U(), o = t.get("widgetDOMElement"), [s, i] = $(null), [a, l] = $(null), u = O();
546
- v(() => {
546
+ E(() => {
547
547
  if (n && u.current) {
548
548
  const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
549
549
  if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
@@ -556,7 +556,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
556
556
  }
557
557
  }
558
558
  }, [n, t, u]);
559
- const c = H(
559
+ const c = T(
560
560
  (m) => {
561
561
  u.current && (m.target === s || m.target === a) && e();
562
562
  },
@@ -565,7 +565,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
565
565
  I("transitionend", c, s), I("transitionend", c, a);
566
566
  }, Cn = (e, t, n = [], o) => {
567
567
  const s = on(o);
568
- return v(() => {
568
+ return E(() => {
569
569
  if (s) {
570
570
  const i = s.subscribe(e, t);
571
571
  return () => {
@@ -587,7 +587,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
587
587
  }, V(n)),
588
588
  t
589
589
  );
590
- }, Ee = bn, je = (e) => L`
590
+ }, Ee = bn, Ye = (e) => L`
591
591
  display: flex;
592
592
  justify-content: center;
593
593
  flex-direction: column;
@@ -719,7 +719,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
719
719
  text-decoration: none;
720
720
  }
721
721
  }
722
- > li:last-child {
722
+ > li:last-of-type {
723
723
  margin: 0;
724
724
  }
725
725
  `;
@@ -823,7 +823,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
823
823
  const s = document.getElementById(e) || document.createElement("div");
824
824
  return s.id = e, s;
825
825
  });
826
- return v(() => (t.appendChild(o), () => {
826
+ return E(() => (t.appendChild(o), () => {
827
827
  o.childElementCount <= 1 && o.remove();
828
828
  }), [o]), bt(n, o);
829
829
  }, Q = wn, $n = (l) => {
@@ -1309,7 +1309,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBod
1309
1309
  }
1310
1310
  case "FontAwesome":
1311
1311
  return /* @__PURE__ */ r.createElement(
1312
- jn,
1312
+ Yn,
1313
1313
  h({
1314
1314
  className: i,
1315
1315
  faIcon: m,
@@ -1355,30 +1355,30 @@ const Hn = 300, Tn = ({
1355
1355
  type: "slide-in-bottom"
1356
1356
  }
1357
1357
  }) => {
1358
- const { duration: u = Hn } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, C] = Ye(), x = Fe(f), b = R(q());
1359
- v(() => {
1358
+ const { duration: u = Hn } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, C] = je(), x = Fe(f), v = R(q());
1359
+ E(() => {
1360
1360
  o && o(f);
1361
1361
  }, [f]);
1362
- const E = j("Escape");
1363
- v(() => {
1364
- E && C(!1);
1365
- }, [E]), I(
1362
+ const b = Y("Escape");
1363
+ E(() => {
1364
+ b && C(!1);
1365
+ }, [b]), I(
1366
1366
  "click",
1367
- (z) => {
1368
- const { target: T } = z;
1369
- !m.current || !d.current || !T || m.current !== T && d.current !== T && !d.current.contains(T) && !m.current.contains(T) && C(!1);
1367
+ (B) => {
1368
+ const { target: D } = B;
1369
+ !m.current || !d.current || !D || m.current !== D && d.current !== D && !d.current.contains(D) && !m.current.contains(D) && C(!1);
1370
1370
  },
1371
1371
  window
1372
1372
  );
1373
- const g = ve(b.current, () => {
1373
+ const g = ve(v.current, () => {
1374
1374
  C(!1);
1375
1375
  });
1376
1376
  ce("router:changed", () => {
1377
1377
  C(!1);
1378
- }), v(() => {
1378
+ }), E(() => {
1379
1379
  f && c.current ? c.current.focus() : !f && m.current && x && m.current.focus();
1380
1380
  }, [f, c.current, m.current]);
1381
- const B = Wn[l.type];
1381
+ const H = Wn[l.type];
1382
1382
  return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
1383
1383
  Ie,
1384
1384
  {
@@ -1389,14 +1389,14 @@ const Hn = 300, Tn = ({
1389
1389
  timeout: u
1390
1390
  },
1391
1391
  /* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
1392
- B,
1392
+ H,
1393
1393
  {
1394
1394
  duration: u,
1395
1395
  fullScreen: i,
1396
1396
  className: M(
1397
1397
  e,
1398
1398
  "humany-drawer",
1399
- `humany-drawer-${b.current}`
1399
+ `humany-drawer-${v.current}`
1400
1400
  ),
1401
1401
  clientHeight: document.body.clientHeight,
1402
1402
  css: p,
@@ -1416,7 +1416,7 @@ const Hn = 300, Tn = ({
1416
1416
  t
1417
1417
  ))
1418
1418
  ), r.cloneElement(s, {
1419
- onClick: (z) => {
1419
+ onClick: (B) => {
1420
1420
  C(), g();
1421
1421
  },
1422
1422
  ref: m,
@@ -1543,7 +1543,7 @@ const Hn = 300, Tn = ({
1543
1543
  ["slide-in-left"]: Nn,
1544
1544
  ["slide-in-top"]: Vn
1545
1545
  }, Zn = (e, t, n) => {
1546
- const [o, s] = $(0), [i, a] = $(0), l = H(
1546
+ const [o, s] = $(0), [i, a] = $(0), l = T(
1547
1547
  (u, c) => {
1548
1548
  if (u.preventDefault(), c) {
1549
1549
  const m = c.getBoundingClientRect();
@@ -1552,7 +1552,7 @@ const Hn = 300, Tn = ({
1552
1552
  },
1553
1553
  [o, i, s, a]
1554
1554
  );
1555
- return v(() => {
1555
+ return E(() => {
1556
1556
  if (!n || !e)
1557
1557
  return;
1558
1558
  const u = n.getBoundingClientRect(), c = {
@@ -1566,28 +1566,28 @@ const Hn = 300, Tn = ({
1566
1566
  var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1567
1567
  const u = R(), c = R(), m = R();
1568
1568
  Ce(i, () => m.current, [m.current]);
1569
- const p = R(q()), [d, f] = $(!1), C = Fe(d), [{ x, y: b }, E] = Xe(d, p.current, m.current), g = j("Escape");
1570
- v(() => {
1569
+ const p = R(q()), [d, f] = $(!1), C = Fe(d), [{ x, y: v }, b] = Xe(d, p.current, m.current), g = Y("Escape");
1570
+ E(() => {
1571
1571
  g && f(!1);
1572
- }, [g]), v(() => {
1572
+ }, [g]), E(() => {
1573
1573
  d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
1574
1574
  }, [d, u.current, c.current]), I(
1575
1575
  "click",
1576
- (T) => {
1577
- const { target: Y } = T;
1578
- !m.current || !Y || m.current !== Y && !m.current.contains(Y) && f(!1);
1576
+ (D) => {
1577
+ const { target: j } = D;
1578
+ !m.current || !j || m.current !== j && !m.current.contains(j) && f(!1);
1579
1579
  },
1580
1580
  window
1581
1581
  ), ce("router:changed", () => {
1582
1582
  f(!1);
1583
1583
  });
1584
- const B = ve(p.current, () => {
1584
+ const H = ve(p.current, () => {
1585
1585
  f(!1);
1586
- }), z = H(
1587
- (T) => {
1588
- T.stopPropagation(), E(T, c.current), f(!d), B();
1586
+ }), B = T(
1587
+ (D) => {
1588
+ D.stopPropagation(), b(D, c.current), f(!d), H();
1589
1589
  },
1590
- [B, E, f]
1590
+ [H, b, f]
1591
1591
  );
1592
1592
  return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
1593
1593
  On,
@@ -1599,7 +1599,7 @@ const Hn = 300, Tn = ({
1599
1599
  )
1600
1600
  }, s), {
1601
1601
  x,
1602
- y: b,
1602
+ y: v,
1603
1603
  ref: m
1604
1604
  }),
1605
1605
  /* @__PURE__ */ r.createElement(
@@ -1614,14 +1614,14 @@ const Hn = 300, Tn = ({
1614
1614
  ),
1615
1615
  t
1616
1616
  )), r.cloneElement(n, {
1617
- onClick: z,
1617
+ onClick: B,
1618
1618
  ref: c,
1619
1619
  "aria-label": n.props.title,
1620
1620
  "aria-expanded": d
1621
1621
  }));
1622
1622
  }
1623
1623
  ), zo = In, On = y.div`
1624
- ${je}
1624
+ ${Ye}
1625
1625
  padding: ${(e) => {
1626
1626
  var t;
1627
1627
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -1666,7 +1666,7 @@ const Hn = 300, Tn = ({
1666
1666
  (i, s) => {
1667
1667
  var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1668
1668
  const l = W(), [u, c] = $();
1669
- return v(() => {
1669
+ return E(() => {
1670
1670
  const m = zt(l, n), p = k(h(h({}, m), e), {
1671
1671
  transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
1672
1672
  }), d = Dt(n, p);
@@ -1681,7 +1681,7 @@ const Hn = 300, Tn = ({
1681
1681
  u
1682
1682
  );
1683
1683
  }
1684
- ), Yn = (i) => {
1684
+ ), jn = (i) => {
1685
1685
  var a = i, {
1686
1686
  faIcon: e,
1687
1687
  title: t,
@@ -1701,7 +1701,7 @@ const Hn = 300, Tn = ({
1701
1701
  role: o
1702
1702
  }, V(s))
1703
1703
  );
1704
- }, jn = Yn, Vo = N(
1704
+ }, Yn = jn, Vo = N(
1705
1705
  (p, m) => {
1706
1706
  var d = p, {
1707
1707
  className: e = "",
@@ -1729,33 +1729,33 @@ const Hn = 300, Tn = ({
1729
1729
  "type"
1730
1730
  ]);
1731
1731
  const [f, C] = $(t), x = R();
1732
- Ce(m, () => x.current), v(() => {
1732
+ Ce(m, () => x.current), E(() => {
1733
1733
  var g;
1734
1734
  t && ((g = x == null ? void 0 : x.current) == null || g.focus());
1735
1735
  }, [t, m, x]);
1736
- const b = (g, B) => {
1737
- C(g), n && n(g), i && g && B.target.select();
1738
- }, E = k(h({}, V(c)), {
1736
+ const v = (g, H) => {
1737
+ C(g), n && n(g), i && g && H.target.select();
1738
+ }, b = k(h({}, V(c)), {
1739
1739
  disabled: l,
1740
1740
  autoFocus: t,
1741
1741
  type: u,
1742
1742
  onKeyDown: (g) => {
1743
1743
  g.key === "Enter" && f && o(g), g.key === "Escape" && f && s(g);
1744
1744
  },
1745
- onFocus: (g) => b(!0, g),
1746
- onBlur: (g) => b(!1, g),
1745
+ onFocus: (g) => v(!0, g),
1746
+ onBlur: (g) => v(!1, g),
1747
1747
  onChange: (g) => a(g.target.value || ""),
1748
1748
  className: M(e, "humany-input"),
1749
1749
  "data-type": u
1750
1750
  });
1751
1751
  return u !== "textarea" ? /* @__PURE__ */ r.createElement(
1752
1752
  "input",
1753
- k(h({}, E), {
1753
+ k(h({}, b), {
1754
1754
  ref: x
1755
1755
  })
1756
1756
  ) : /* @__PURE__ */ r.createElement(
1757
1757
  "textarea",
1758
- k(h({}, E), {
1758
+ k(h({}, b), {
1759
1759
  ref: x
1760
1760
  })
1761
1761
  );
@@ -1848,15 +1848,15 @@ const Hn = 300, Tn = ({
1848
1848
  items: p,
1849
1849
  ulProps: a,
1850
1850
  renderItem: (f) => {
1851
- const { id: C, selected: x, items: b, matches: E } = f, g = x && c(b);
1852
- return !i && !E ? null : /* @__PURE__ */ r.createElement(
1851
+ const { id: C, selected: x, items: v, matches: b } = f, g = x && c(v);
1852
+ return !i && !b ? null : /* @__PURE__ */ r.createElement(
1853
1853
  "li",
1854
1854
  k(h({}, V(l)), {
1855
1855
  key: C,
1856
1856
  className: "humany-item-tree-item"
1857
1857
  }),
1858
1858
  n && n(f, d, g),
1859
- b && (s || g) && m(b, d + 1)
1859
+ v && (s || g) && m(v, d + 1)
1860
1860
  );
1861
1861
  }
1862
1862
  }
@@ -1879,21 +1879,30 @@ const Hn = 300, Tn = ({
1879
1879
  ref: null
1880
1880
  });
1881
1881
  if (n) {
1882
- if (!(m.routes || []).find((E) => E.name === n))
1882
+ if (!(m.routes || []).find((b) => b.name === n))
1883
1883
  return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(
1884
1884
  fe,
1885
1885
  k(h({}, f), {
1886
- onClick: (E) => {
1887
- t(E), E.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1886
+ onClick: (b) => {
1887
+ t(b), b.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1888
1888
  }
1889
1889
  }),
1890
1890
  i
1891
1891
  );
1892
- const b = Object.keys(s).reduce((E, g) => (E[g] = typeof s[g] == "string" ? encodeURIComponent(s[g]) : s[g], E), {});
1892
+ const v = Object.keys(s).reduce((b, g) => {
1893
+ const H = s[g];
1894
+ if (Array.isArray(H)) {
1895
+ if (H.length === 0)
1896
+ return b;
1897
+ b[g] = H.map((B) => typeof B == "string" ? encodeURIComponent(B) : B).join(",");
1898
+ } else
1899
+ b[g] = typeof H == "string" ? encodeURIComponent(H) : H;
1900
+ return b;
1901
+ }, {});
1893
1902
  try {
1894
- d = m.generate(n, b || {});
1895
- } catch (E) {
1896
- return /* @__PURE__ */ r.createElement(fe, h({}, f), i);
1903
+ d = m.generate(n, v || {});
1904
+ } catch (b) {
1905
+ return /* @__PURE__ */ r.createElement(fe, k(h({}, f), { ref: f.innerRef }), i);
1897
1906
  }
1898
1907
  d && m.settings.mode && m.settings.mode === Be.browser && d[0] !== "/" && (d = `/${d}`);
1899
1908
  } else if (o && m.history)
@@ -1915,7 +1924,7 @@ const Hn = 300, Tn = ({
1915
1924
  }
1916
1925
  ), Gn = y.span``, we = N(
1917
1926
  (x, C) => {
1918
- var b = x, {
1927
+ var v = x, {
1919
1928
  className: e,
1920
1929
  disabled: t = !1,
1921
1930
  role: n = "link",
@@ -1931,7 +1940,7 @@ const Hn = 300, Tn = ({
1931
1940
  target: m,
1932
1941
  routeName: p,
1933
1942
  params: d
1934
- } = b, f = S(b, [
1943
+ } = v, f = S(v, [
1935
1944
  "className",
1936
1945
  "disabled",
1937
1946
  "role",
@@ -1946,7 +1955,7 @@ const Hn = 300, Tn = ({
1946
1955
  "routeName",
1947
1956
  "params"
1948
1957
  ]);
1949
- const E = {
1958
+ const b = {
1950
1959
  title: a,
1951
1960
  disabled: t,
1952
1961
  role: n,
@@ -1973,7 +1982,7 @@ const Hn = 300, Tn = ({
1973
1982
  k(h(h({
1974
1983
  name: p,
1975
1984
  params: d
1976
- }, E), V(f)), {
1985
+ }, b), V(f)), {
1977
1986
  ref: C
1978
1987
  }),
1979
1988
  c
@@ -1982,7 +1991,7 @@ const Hn = 300, Tn = ({
1982
1991
  k(h(h({
1983
1992
  href: u,
1984
1993
  target: m
1985
- }, E), V(f)), {
1994
+ }, b), V(f)), {
1986
1995
  ref: C
1987
1996
  }),
1988
1997
  c
@@ -2011,7 +2020,7 @@ const Hn = 300, Tn = ({
2011
2020
  "children",
2012
2021
  "onClick"
2013
2022
  ]);
2014
- const l = R(), u = H(
2023
+ const l = R(), u = T(
2015
2024
  (c) => {
2016
2025
  c.target === l.current && o(c);
2017
2026
  },
@@ -2153,12 +2162,12 @@ const Hn = 300, Tn = ({
2153
2162
  "image",
2154
2163
  "changeZoom"
2155
2164
  ]);
2156
- var E;
2157
- const a = R(null), [l, u] = $(!1), [c, m] = $(!1), b = o.style || {}, { width: p, height: d } = b, f = S(b, ["width", "height"]), C = H(() => {
2165
+ var b;
2166
+ const a = R(null), [l, u] = $(!1), [c, m] = $(!1), v = o.style || {}, { width: p, height: d } = v, f = S(v, ["width", "height"]), C = T(() => {
2158
2167
  const g = a.current;
2159
2168
  if (g) {
2160
- const B = window.innerWidth / g.naturalWidth, z = window.innerHeight / g.naturalHeight, T = Math.min(B, z);
2161
- return z >= 1 && B >= 1 ? 1 : T;
2169
+ const H = window.innerWidth / g.naturalWidth, B = window.innerHeight / g.naturalHeight, D = Math.min(H, B);
2170
+ return B >= 1 && H >= 1 ? 1 : D;
2162
2171
  }
2163
2172
  return 1;
2164
2173
  }, [l, t.src]), x = se(() => {
@@ -2166,14 +2175,14 @@ const Hn = 300, Tn = ({
2166
2175
  if (g && l) {
2167
2176
  if (!c) {
2168
2177
  m(!0);
2169
- const B = C();
2170
- n(B);
2178
+ const H = C();
2179
+ n(H);
2171
2180
  }
2172
2181
  return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
2173
2182
  }
2174
2183
  return null;
2175
2184
  }, [e, a, l, t.src]);
2176
- return v(() => (u(!1), function() {
2185
+ return E(() => (u(!1), function() {
2177
2186
  m(!1);
2178
2187
  }), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(dr, { loading: !l }), /* @__PURE__ */ r.createElement(
2179
2188
  fr,
@@ -2185,7 +2194,7 @@ const Hn = 300, Tn = ({
2185
2194
  imageSize: x,
2186
2195
  draggable: "false"
2187
2196
  }, o), {
2188
- alt: ((E = o.alt) == null ? void 0 : E.toString()) || "",
2197
+ alt: ((b = o.alt) == null ? void 0 : b.toString()) || "",
2189
2198
  style: f,
2190
2199
  src: t.src,
2191
2200
  loaded: l
@@ -2211,7 +2220,7 @@ const Hn = 300, Tn = ({
2211
2220
  display: inline-block;
2212
2221
  vertical-align: middle;
2213
2222
  `, pr = mr, gr = () => {
2214
- const e = R(), [t, n] = $(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2223
+ const e = R(), [t, n] = $(!0), o = T(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2215
2224
  n(!1);
2216
2225
  }, 3e3), () => {
2217
2226
  e.current && clearTimeout(e.current);
@@ -2219,37 +2228,37 @@ const Hn = 300, Tn = ({
2219
2228
  return [t, o];
2220
2229
  }, Cr = ({ attrs: e, htmlBody: t }) => {
2221
2230
  var Se;
2222
- const n = j("Escape"), o = j("ArrowLeft"), s = j("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] = gr(), [f, C] = $(null), [x, b] = $(null), E = R(null), g = R(null), B = R(null), z = R(null);
2223
- v(() => {
2231
+ const n = Y("Escape"), o = Y("ArrowLeft"), s = Y("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] = gr(), [f, C] = $(null), [x, v] = $(null), b = R(null), g = R(null), H = R(null), B = R(null);
2232
+ E(() => {
2224
2233
  n && C(null);
2225
- }, [n]), v(() => {
2234
+ }, [n]), E(() => {
2226
2235
  a(1);
2227
- }, [f]), v(() => {
2236
+ }, [f]), E(() => {
2228
2237
  var P, te;
2229
2238
  if (f === null || g.current === null)
2230
2239
  return;
2231
- const w = g.current.firstElementChild, D = (P = B.current) == null ? void 0 : P.querySelector(".nav-left"), Z = (te = B.current) == null ? void 0 : te.querySelector(".nav-right");
2240
+ const w = g.current.firstElementChild, z = (P = H.current) == null ? void 0 : P.querySelector(".nav-left"), Z = (te = H.current) == null ? void 0 : te.querySelector(".nav-right");
2232
2241
  if (x === "Right")
2233
- ee && Z ? Z.focus() : J && D && D.focus();
2242
+ ee && Z ? Z.focus() : J && z && z.focus();
2234
2243
  else if (x === "Left")
2235
- J && D ? D.focus() : ee && Z && Z.focus();
2244
+ J && z ? z.focus() : ee && Z && Z.focus();
2236
2245
  else {
2237
2246
  if (!w)
2238
2247
  return;
2239
2248
  w.focus();
2240
2249
  }
2241
- }, [f, g, B, x]), v(() => {
2250
+ }, [f, g, H, x]), E(() => {
2242
2251
  if (o) {
2243
2252
  if (J)
2244
2253
  return Le();
2245
2254
  } else if (s && ee)
2246
2255
  return Me();
2247
2256
  }, [o, s]);
2248
- const T = se(() => {
2257
+ const D = se(() => {
2249
2258
  const w = document.createElement("div");
2250
2259
  w.innerHTML = t || "";
2251
- const D = w.getElementsByTagName("img");
2252
- return Array.from(D).reduce((P, te) => {
2260
+ const z = w.getElementsByTagName("img");
2261
+ return Array.from(z).reduce((P, te) => {
2253
2262
  const Re = te.getAttribute("src");
2254
2263
  if (Re) {
2255
2264
  const ot = {
@@ -2259,55 +2268,55 @@ const Hn = 300, Tn = ({
2259
2268
  }
2260
2269
  return P;
2261
2270
  }, []);
2262
- }, [t]), Y = H(() => {
2271
+ }, [t]), j = T(() => {
2263
2272
  const { src: w } = e;
2264
2273
  if (w) {
2265
- const D = T.findIndex((Z, P) => Z.src === w);
2266
- C(D);
2274
+ const z = D.findIndex((Z, P) => Z.src === w);
2275
+ C(z);
2267
2276
  }
2268
- }, [T, e]), Ge = H((w) => {
2277
+ }, [D, e]), Ge = T((w) => {
2269
2278
  C(null);
2270
- }, []), ke = H(
2279
+ }, []), ke = T(
2271
2280
  (w) => {
2272
2281
  a(w ? i + i * 0.25 : i - i * 0.25);
2273
2282
  },
2274
2283
  [a, i]
2275
- ), Je = H(() => {
2284
+ ), Je = T(() => {
2276
2285
  if (f !== null) {
2277
- const { src: w } = T[f];
2286
+ const { src: w } = D[f];
2278
2287
  w && window.open(w, "_self");
2279
2288
  }
2280
- }, [T, f]), et = H(
2289
+ }, [D, f]), et = T(
2281
2290
  (w) => {
2282
- const D = z.current;
2283
- D && (u({ top: D.scrollTop, left: D.scrollLeft, x: w.clientX, y: w.clientY }), m(!0));
2291
+ const z = B.current;
2292
+ z && (u({ top: z.scrollTop, left: z.scrollLeft, x: w.clientX, y: w.clientY }), m(!0));
2284
2293
  },
2285
- [z]
2286
- ), tt = H(
2294
+ [B]
2295
+ ), tt = T(
2287
2296
  (w) => {
2288
- const D = z.current;
2289
- if (D && c) {
2297
+ const z = B.current;
2298
+ if (z && c) {
2290
2299
  const Z = w.clientX - l.x, P = w.clientY - l.y;
2291
- D.scrollTop = l.top - P, D.scrollLeft = l.left - Z;
2300
+ z.scrollTop = l.top - P, z.scrollLeft = l.left - Z;
2292
2301
  }
2293
2302
  },
2294
2303
  [c, l]
2295
2304
  ), nt = (w) => {
2296
2305
  w.preventDefault(), m(!1);
2297
2306
  }, rt = se(() => {
2298
- if (z.current) {
2299
- const w = z.current.getElementsByTagName("img");
2307
+ if (B.current) {
2308
+ const w = B.current.getElementsByTagName("img");
2300
2309
  if (w && w.length) {
2301
- const D = w[0];
2302
- return D.width > window.innerWidth || D.height > window.innerHeight;
2310
+ const z = w[0];
2311
+ return z.width > window.innerWidth || z.height > window.innerHeight;
2303
2312
  }
2304
2313
  }
2305
2314
  return !1;
2306
- }, [z, i]), Le = () => {
2307
- f !== null && (b("Left"), C(f - 1));
2315
+ }, [B, i]), Le = () => {
2316
+ f !== null && (v("Left"), C(f - 1));
2308
2317
  }, Me = () => {
2309
- f !== null && (b("Right"), C(f + 1));
2310
- }, J = f !== null && f > 0 && T.length > 1, ee = f !== null && T.length - 1 > f;
2318
+ f !== null && (v("Right"), C(f + 1));
2319
+ }, J = f !== null && f > 0 && D.length > 1, ee = f !== null && D.length - 1 > f;
2311
2320
  return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: f !== null, onClick: Ge }, /* @__PURE__ */ r.createElement(
2312
2321
  kr,
2313
2322
  {
@@ -2341,7 +2350,7 @@ const Hn = 300, Tn = ({
2341
2350
  {
2342
2351
  scrolling: c.toString(),
2343
2352
  isDraggable: rt.toString(),
2344
- ref: z,
2353
+ ref: B,
2345
2354
  onMouseMove: tt,
2346
2355
  onMouseDown: et,
2347
2356
  onMouseUp: nt
@@ -2354,14 +2363,14 @@ const Hn = 300, Tn = ({
2354
2363
  },
2355
2364
  zoomState: i
2356
2365
  }, e), {
2357
- image: T[f]
2366
+ image: D[f]
2358
2367
  })
2359
2368
  )
2360
2369
  ),
2361
2370
  /* @__PURE__ */ r.createElement(
2362
2371
  wr,
2363
2372
  {
2364
- ref: B,
2373
+ ref: H,
2365
2374
  show: p.toString(),
2366
2375
  buttons: [
2367
2376
  {
@@ -2407,10 +2416,10 @@ const Hn = 300, Tn = ({
2407
2416
  )), /* @__PURE__ */ r.createElement(
2408
2417
  yr,
2409
2418
  {
2410
- ref: E,
2411
- onClick: Y,
2419
+ ref: b,
2420
+ onClick: j,
2412
2421
  onKeyDown: (w) => {
2413
- w.key === "Enter" && (w.preventDefault(), Y());
2422
+ w.key === "Enter" && (w.preventDefault(), j());
2414
2423
  },
2415
2424
  tabIndex: 0
2416
2425
  },
@@ -2605,15 +2614,15 @@ const Hn = 300, Tn = ({
2605
2614
  (l, a) => {
2606
2615
  var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2607
2616
  }, close: s = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2608
- const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), C = R(q()), x = j("Escape");
2609
- v(() => {
2617
+ const [c, m] = je(), [p, d] = Ke(!0), f = R(), C = R(q()), x = Y("Escape");
2618
+ E(() => {
2610
2619
  (x || s) && m(!1);
2611
- }, [x, s]), v(() => {
2620
+ }, [x, s]), E(() => {
2612
2621
  c && f.current && f.current.focus();
2613
2622
  }, [c, f.current]), ce("router:changed", () => {
2614
2623
  m(!1);
2615
2624
  });
2616
- const b = H(
2625
+ const v = T(
2617
2626
  (g) => {
2618
2627
  m(!1), o(g);
2619
2628
  },
@@ -2624,10 +2633,10 @@ const Hn = 300, Tn = ({
2624
2633
  m(!1);
2625
2634
  }
2626
2635
  }));
2627
- const E = H(() => ve(C.current, () => {
2636
+ const b = T(() => ve(C.current, () => {
2628
2637
  m(!1);
2629
2638
  }), [C.current]);
2630
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: c, onClick: b }, /* @__PURE__ */ r.createElement(
2639
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: c, onClick: v }, /* @__PURE__ */ r.createElement(
2631
2640
  Br,
2632
2641
  k(h({
2633
2642
  className: M(
@@ -2652,7 +2661,7 @@ const Hn = 300, Tn = ({
2652
2661
  t
2653
2662
  )), r.cloneElement(n, {
2654
2663
  onClick: (g) => {
2655
- m(), E();
2664
+ m(), b();
2656
2665
  }
2657
2666
  }));
2658
2667
  }
@@ -2672,7 +2681,7 @@ const Hn = 300, Tn = ({
2672
2681
  var t;
2673
2682
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2674
2683
  }};
2675
- ${(e) => je(e)}
2684
+ ${(e) => Ye(e)}
2676
2685
  ${(e) => e.css && e.css}
2677
2686
  outline: none;
2678
2687
  `, zr = ({
@@ -2687,10 +2696,10 @@ const Hn = 300, Tn = ({
2687
2696
  cancelLabel: a = "",
2688
2697
  confirmLabel: l = ""
2689
2698
  }) => {
2690
- const u = R(), c = H(() => {
2699
+ const u = R(), c = T(() => {
2691
2700
  var p;
2692
2701
  s(), (p = u == null ? void 0 : u.current) == null || p.close();
2693
- }, [s]), m = H(() => {
2702
+ }, [s]), m = T(() => {
2694
2703
  var p;
2695
2704
  i(), (p = u == null ? void 0 : u.current) == null || p.close();
2696
2705
  }, [i]);
@@ -2868,27 +2877,27 @@ const Oo = Ar, Kr = N(
2868
2877
  return /* @__PURE__ */ r.createElement(we, k(h({ className: M(e, "humany-text-link") }, s), { ref: i }), o, /* @__PURE__ */ r.createElement(Ee, null, n), t ? /* @__PURE__ */ r.createElement(Ue, { html: t, className: "humany-description" }) : null);
2869
2878
  }
2870
2879
  );
2871
- var Yr = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(Yr || {});
2872
- const jr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", { className: M(e, "humany-timestamp") }, Xr(n, t)), Po = jr, We = (e) => `0${e}`.slice(-2);
2880
+ var jr = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(jr || {});
2881
+ const Yr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", { className: M(e, "humany-timestamp") }, Xr(n, t)), Po = Yr, We = (e) => `0${e}`.slice(-2);
2873
2882
  function Xr(e, t) {
2874
2883
  const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), s = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${We(a)}-${We(l)}`;
2875
2884
  return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? s : `${u} ${s}`;
2876
2885
  }
2877
2886
  const Ur = (i) => {
2878
2887
  var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, s = S(a, ["className", "children", "content", "sticky"]);
2879
- const [l, u] = $(!1), c = R(q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), C = (b) => {
2880
- const { target: E } = b;
2881
- !m.current || !E || m.current !== E && !m.current.contains(E) && u(!1);
2888
+ const [l, u] = $(!1), c = R(q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), C = (v) => {
2889
+ const { target: b } = v;
2890
+ !m.current || !b || m.current !== b && !m.current.contains(b) && u(!1);
2882
2891
  };
2883
- v(() => {
2892
+ E(() => {
2884
2893
  if (!!o)
2885
2894
  return window.addEventListener("click", C), () => {
2886
2895
  window.removeEventListener("click", C);
2887
2896
  };
2888
2897
  }, [l, o]);
2889
- const x = H(
2890
- (b, E) => {
2891
- f(b, m.current), u(E);
2898
+ const x = T(
2899
+ (v, b) => {
2900
+ f(v, m.current), u(b);
2892
2901
  },
2893
2902
  [f, u]
2894
2903
  );
@@ -2897,10 +2906,10 @@ const Ur = (i) => {
2897
2906
  {
2898
2907
  ref: m,
2899
2908
  className: "humany-tooltip-trigger",
2900
- onMouseEnter: o ? void 0 : (b) => x(b, !0),
2901
- onMouseLeave: o ? void 0 : (b) => x(b, !1),
2902
- onTouchEnd: o ? (b) => x(b, !l) : void 0,
2903
- onClick: o ? (b) => x(b, !l) : void 0
2909
+ onMouseEnter: o ? void 0 : (v) => x(v, !0),
2910
+ onMouseLeave: o ? void 0 : (v) => x(v, !1),
2911
+ onTouchEnd: o ? (v) => x(v, !l) : void 0,
2912
+ onClick: o ? (v) => x(v, !l) : void 0
2904
2913
  },
2905
2914
  t,
2906
2915
  l && /* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
@@ -3016,7 +3025,7 @@ const Ur = (i) => {
3016
3025
  const { implementation: f } = c.get("$widget");
3017
3026
  return f.widgets.get(o);
3018
3027
  };
3019
- v(() => {
3028
+ E(() => {
3020
3029
  const f = m();
3021
3030
  return f == null || f.activate(s).then(() => f.invoke("attach")), () => {
3022
3031
  f == null || f.deactivate();
@@ -3025,11 +3034,11 @@ const Ur = (i) => {
3025
3034
  const p = (f) => {
3026
3035
  const C = m(), x = f.currentTarget;
3027
3036
  if (C) {
3028
- const b = () => {
3037
+ const v = () => {
3029
3038
  C.invoke("renderState").then(
3030
- (E) => E === oe.open ? C.invoke("close") : C.invoke("open")
3039
+ (b) => b === oe.open ? C.invoke("close") : C.invoke("open")
3031
3040
  ).then(() => {
3032
- C.events.subscribeOnce("widget:area-rendered", (E, g) => {
3041
+ C.events.subscribeOnce("widget:area-rendered", (b, g) => {
3033
3042
  c.get(
3034
3043
  "widgetDOMElement"
3035
3044
  ) && C.events.dispatch("widget:modal-opened", {
@@ -3039,7 +3048,7 @@ const Ur = (i) => {
3039
3048
  });
3040
3049
  });
3041
3050
  };
3042
- C.state === lt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(b) : b();
3051
+ C.state === lt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(v) : v();
3043
3052
  }
3044
3053
  }, d = (f) => {
3045
3054
  f.key === "Enter" && (f.preventDefault(), p(f));
@@ -3089,7 +3098,7 @@ const Ur = (i) => {
3089
3098
  t,
3090
3099
  mt(() => n)
3091
3100
  ), gt(e, t, o || (() => {
3092
- }), t, s))), Yo = eo;
3101
+ }), t, s))), jo = eo;
3093
3102
  export {
3094
3103
  Vt as AnchorLink,
3095
3104
  ae as Button,
@@ -3100,14 +3109,14 @@ export {
3100
3109
  Zo as Confirm,
3101
3110
  It as ContainerContext,
3102
3111
  At as ConversationContext,
3103
- Yr as DateFormats,
3112
+ jr as DateFormats,
3104
3113
  Bo as Drawer,
3105
3114
  Rn as DrawerAnimationType,
3106
3115
  zo as Dropdown,
3107
3116
  Fn as Empty,
3108
3117
  No as Grid,
3109
3118
  Ue as Html,
3110
- jn as Icon,
3119
+ Yn as Icon,
3111
3120
  Vo as Input,
3112
3121
  _n as ItemList,
3113
3122
  Wo as ItemTree,
@@ -3135,10 +3144,10 @@ export {
3135
3144
  F as borderTabStyle,
3136
3145
  Ne as browser,
3137
3146
  vn as buttonCss,
3138
- je as contentBox,
3147
+ Ye as contentBox,
3139
3148
  V as convertToStringAttributes,
3140
3149
  ho as createEmptyComponent,
3141
- Yo as createReactComponent,
3150
+ jo as createReactComponent,
3142
3151
  zt as defaultRenderInstructions,
3143
3152
  St as embeddedLinkMapper,
3144
3153
  Ht as filterCssProps,
@@ -3169,7 +3178,7 @@ export {
3169
3178
  on as useEvents,
3170
3179
  O as useIsMounted,
3171
3180
  xo as useIsTabbing,
3172
- j as useKeyPress,
3181
+ Y as useKeyPress,
3173
3182
  wo as useLayout,
3174
3183
  Fe as usePrevious,
3175
3184
  $o as useProperties,
@@ -3178,7 +3187,7 @@ export {
3178
3187
  Ae as useRouter,
3179
3188
  Ke as useScroll,
3180
3189
  Mo as useSettings,
3181
- Ye as useToggle,
3190
+ je as useToggle,
3182
3191
  So as useTransitionEnd,
3183
3192
  ve as useUniqueMenu,
3184
3193
  ce as useWidgetEvent