@telia-ace/widget-ui 1.0.21 → 1.0.23-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/LICENSE.txt +5 -5
  2. package/README.md +3 -3
  3. package/dist/components/anchor-link.d.ts +4 -4
  4. package/dist/components/button.d.ts +4 -4
  5. package/dist/components/checkbox.d.ts +7 -7
  6. package/dist/components/drawer/drawer.d.ts +22 -21
  7. package/dist/components/drawer/index.d.ts +3 -3
  8. package/dist/components/dropdown/dropdown.d.ts +9 -9
  9. package/dist/components/dropdown/index.d.ts +4 -4
  10. package/dist/components/dropdown/use-position.d.ts +5 -5
  11. package/dist/components/empty.d.ts +4 -4
  12. package/dist/components/grid.d.ts +7 -7
  13. package/dist/components/html.d.ts +12 -12
  14. package/dist/components/icon.d.ts +7 -7
  15. package/dist/components/index.d.ts +59 -58
  16. package/dist/components/input.d.ts +10 -10
  17. package/dist/components/item-list.d.ts +10 -10
  18. package/dist/components/item-tree.d.ts +13 -13
  19. package/dist/components/lightbox.d.ts +12 -6
  20. package/dist/components/link.d.ts +11 -11
  21. package/dist/components/list.d.ts +9 -9
  22. package/dist/components/loader.d.ts +10 -0
  23. package/dist/components/modal/confirm.d.ts +12 -12
  24. package/dist/components/modal/index.d.ts +4 -4
  25. package/dist/components/modal/modal.d.ts +10 -10
  26. package/dist/components/not-found.d.ts +9 -9
  27. package/dist/components/overlay.d.ts +8 -8
  28. package/dist/components/paragraph.d.ts +11 -11
  29. package/dist/components/portal.d.ts +8 -7
  30. package/dist/components/route-link.d.ts +11 -11
  31. package/dist/components/symbol-badge.d.ts +15 -15
  32. package/dist/components/tab-stop.d.ts +18 -18
  33. package/dist/components/text-link.d.ts +8 -8
  34. package/dist/components/text.d.ts +4 -4
  35. package/dist/components/timestamp.d.ts +13 -13
  36. package/dist/components/tooltip.d.ts +8 -8
  37. package/dist/components/transition-component.d.ts +30 -30
  38. package/dist/components/typography.d.ts +9 -9
  39. package/dist/components/widget-link.d.ts +10 -10
  40. package/dist/components/widget-overlay-outlet.d.ts +8 -0
  41. package/dist/components/zoomable-img.d.ts +9 -0
  42. package/dist/contexts/index.d.ts +9 -9
  43. package/dist/create-react-component.d.ts +11 -11
  44. package/dist/hooks/index.d.ts +28 -27
  45. package/dist/hooks/use-action.d.ts +4 -4
  46. package/dist/hooks/use-children.d.ts +4 -4
  47. package/dist/hooks/use-columns.d.ts +2 -2
  48. package/dist/hooks/use-component-descriptor.d.ts +2 -2
  49. package/dist/hooks/use-component-node.d.ts +6 -6
  50. package/dist/hooks/use-component-platform.d.ts +4 -4
  51. package/dist/hooks/use-component.d.ts +3 -3
  52. package/dist/hooks/use-container.d.ts +2 -2
  53. package/dist/hooks/use-context.d.ts +3 -3
  54. package/dist/hooks/use-dispatch.d.ts +3 -3
  55. package/dist/hooks/use-event-listener.d.ts +2 -2
  56. package/dist/hooks/use-events.d.ts +3 -3
  57. package/dist/hooks/use-is-mounted.d.ts +3 -3
  58. package/dist/hooks/use-is-tabbing.d.ts +2 -0
  59. package/dist/hooks/use-key-press.d.ts +2 -2
  60. package/dist/hooks/use-layout.d.ts +3 -3
  61. package/dist/hooks/use-previous.d.ts +2 -2
  62. package/dist/hooks/use-properties.d.ts +6 -6
  63. package/dist/hooks/use-render-state.d.ts +4 -4
  64. package/dist/hooks/use-route-data.d.ts +4 -4
  65. package/dist/hooks/use-router.d.ts +3 -3
  66. package/dist/hooks/use-scroll.d.ts +2 -2
  67. package/dist/hooks/use-settings.d.ts +3 -3
  68. package/dist/hooks/use-toggle.d.ts +2 -2
  69. package/dist/hooks/use-transition-end.d.ts +2 -2
  70. package/dist/hooks/use-unique-menu.d.ts +2 -2
  71. package/dist/hooks/use-widget-event.d.ts +3 -3
  72. package/dist/index.d.ts +9 -9
  73. package/dist/index.js +1952 -1143
  74. package/dist/index.js.map +1 -1
  75. package/dist/styles.d.ts +20 -19
  76. package/dist/utils/animations.d.ts +18 -18
  77. package/dist/utils/browser.d.ts +12 -12
  78. package/dist/utils/convert-to-string-attributes.d.ts +2 -2
  79. package/dist/utils/create-empty-component.d.ts +4 -3
  80. package/dist/utils/embedded-link-mapper.d.ts +4 -3
  81. package/dist/utils/filter-css-props.d.ts +8 -8
  82. package/dist/utils/generic-hash-link.d.ts +8 -8
  83. package/dist/utils/heading-styles.d.ts +1 -1
  84. package/dist/utils/index.d.ts +12 -12
  85. package/dist/utils/process-html-string.d.ts +4 -4
  86. package/dist/utils/render-instructions.d.ts +9 -8
  87. package/package.json +15 -15
package/dist/index.js CHANGED
@@ -1,35 +1,36 @@
1
- var Ne = Object.defineProperty, ze = Object.defineProperties;
2
- var Be = Object.getOwnPropertyDescriptors;
3
- var Y = Object.getOwnPropertySymbols;
4
- var he = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable;
5
- var fe = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t) => {
1
+ var ct = Object.defineProperty, lt = Object.defineProperties;
2
+ var ut = Object.getOwnPropertyDescriptors;
3
+ var ne = Object.getOwnPropertySymbols;
4
+ var He = Object.prototype.hasOwnProperty, ze = Object.prototype.propertyIsEnumerable;
5
+ var me = (e, t, n) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, h = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- he.call(t, n) && fe(e, n, t[n]);
8
- if (Y)
9
- for (var n of Y(t))
10
- pe.call(t, n) && fe(e, n, t[n]);
7
+ He.call(t, n) && me(e, n, t[n]);
8
+ if (ne)
9
+ for (var n of ne(t))
10
+ ze.call(t, n) && me(e, n, t[n]);
11
11
  return e;
12
- }, k = (e, t) => ze(e, Be(t));
13
- var $ = (e, t) => {
12
+ }, $ = (e, t) => lt(e, ut(t));
13
+ var S = (e, t) => {
14
14
  var n = {};
15
- for (var s in e)
16
- he.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
17
- if (e != null && Y)
18
- for (var s of Y(e))
19
- t.indexOf(s) < 0 && pe.call(e, s) && (n[s] = e[s]);
15
+ for (var o in e)
16
+ He.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
+ if (e != null && ne)
18
+ for (var o of ne(e))
19
+ t.indexOf(o) < 0 && ze.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- import v, { css as M } from "styled-components";
23
- import { kebabCase as Ve, appendClassNames as w, uuid as F, removeNullAndUndefinedValues as ge, Logger as ne } from "@telia-ace/widget-utilities";
24
- import r, { forwardRef as D, createContext as Z, useContext as O, useState as L, useEffect as C, useRef as S, useCallback as H, useImperativeHandle as ie, Component as We, lazy as Oe } from "react";
25
- import { CSSTransition as ve, Transition as Ie } from "react-transition-group";
26
- import { Container as Pe, WidgetState as Fe } from "@webprovisions/platform";
27
- import { ComponentPlatform as Ze, asDescriptor as Ae, createEventSubscriber as Ke, ComponentQuery as Ye, WidgetRenderState as j, extendComponent as je } from "@telia-ace/widget-core";
28
- import { createPortal as Xe } from "react-dom";
29
- import ye from "htmr";
30
- import { HistoryMode as be, getSpecificWidgetPath as _e } from "@telia-ace/widget-routing";
31
- import { Link as re } from "react-router-dom";
32
- const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exiting" || e === "exited", W = {
22
+ var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
23
+ import C, { css as L, keyframes as We } from "styled-components";
24
+ import { kebabCase as mt, appendClassNames as M, uuid as q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
25
+ import r, { forwardRef as N, createContext as Q, useContext as X, useState as k, useEffect as w, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as ie, Component as dt, lazy as ft } from "react";
26
+ import { CSSTransition as Ie, Transition as ht } from "react-transition-group";
27
+ import { Container as pt, WidgetState as gt } from "@webprovisions/platform";
28
+ import { ComponentPlatform as Ct, asDescriptor as yt, createEventSubscriber as bt, ComponentQuery as vt, WidgetRenderState as oe, extendComponent as wt } from "@telia-ace/widget-core";
29
+ import { createPortal as Et } from "react-dom";
30
+ import Be from "htmr";
31
+ import { HistoryMode as Te, getSpecificWidgetPath as xt } from "@telia-ace/widget-routing";
32
+ import { Link as fe } from "react-router-dom";
33
+ const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exiting" || e === "exited", K = {
33
34
  fade: {
34
35
  in: "opacity: 1;",
35
36
  out: "opacity: 0;"
@@ -54,29 +55,29 @@ const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exitin
54
55
  in: "transform: scale(1);",
55
56
  out: "transform: scale(0);"
56
57
  }
57
- }, Qe = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], oe = {
58
+ }, Lt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
58
59
  compose: (e = "exited", t) => {
59
- const { enter: n, exit: s } = t, o = n.transitionKeys.split(" "), i = Qe.indexOf(o[0]) > -1 ? "transform" : "opacity";
60
- if (Ue(e))
61
- return o && o.length > 0 ? M`
62
- ${o && o.length > 0 && o.map((m) => W[m] ? W[m].in : "")}
63
- transition: ${i} ${n.duration}ms ${n.easing};
60
+ const { enter: n, exit: o } = t, i = n.transitionKeys.split(" "), s = Lt.indexOf(i[0]) > -1 ? "transform" : "opacity";
61
+ if (kt(e))
62
+ return i && i.length > 0 ? L`
63
+ ${i && i.length > 0 && i.map((l) => K[l] ? K[l].in : "")}
64
+ transition: ${s} ${n.duration}ms ${n.easing};
64
65
  ` : "";
65
- const a = o && o.length > 0 && M`
66
- ${o.map((m) => W[m] ? W[m].out : "")}
66
+ const a = i && i.length > 0 && L`
67
+ ${i.map((l) => K[l] ? K[l].out : "")}
67
68
  `;
68
- if (qe(e)) {
69
- const m = s.transitionKeys.split(" ");
70
- return m && m.length > 0 && e === "exiting" ? M`
69
+ if ($t(e)) {
70
+ const l = o.transitionKeys.split(" ");
71
+ return l && l.length > 0 && e === "exiting" ? L`
71
72
  ${a};
72
- ${m.map((l) => W[l] ? W[l].out : "")}
73
- transition: ${i} ${s.duration}ms ${s.easing};
73
+ ${l.map((u) => K[u] ? K[u].out : "")}
74
+ transition: ${s} ${o.duration}ms ${o.easing};
74
75
  ` : a;
75
76
  }
76
77
  },
77
78
  composeViewTransition: (e, t, n) => {
78
79
  if (t === "slide")
79
- return oe.compose(e, {
80
+ return he.compose(e, {
80
81
  enter: {
81
82
  transitionKeys: n === "forth" ? "slide-right" : "slide-left",
82
83
  duration: 500
@@ -87,7 +88,7 @@ const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exitin
87
88
  }
88
89
  });
89
90
  if (t === "fade")
90
- return oe.compose(e, {
91
+ return he.compose(e, {
91
92
  enter: {
92
93
  transitionKeys: "fade",
93
94
  duration: 500
@@ -98,129 +99,132 @@ const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exitin
98
99
  }
99
100
  });
100
101
  },
101
- get: (e) => W[e]
102
+ get: (e) => K[e]
102
103
  };
103
- var se = /* @__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))(se || {});
104
- const Ce = () => {
104
+ var pe = /* @__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))(pe || {});
105
+ const Ne = () => {
105
106
  const {
106
107
  opr: e,
107
108
  opera: t,
108
109
  InstallTrigger: n,
109
- HTMLElement: s,
110
- safari: o,
111
- documentMode: i,
110
+ HTMLElement: o,
111
+ safari: i,
112
+ documentMode: s,
112
113
  StyleMedia: a,
113
- chrome: m,
114
- CSS: l
114
+ chrome: l,
115
+ CSS: u
115
116
  } = window, c = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
116
117
  if (c)
117
118
  return "opera";
118
119
  if (n)
119
120
  return "firefox";
120
- const u = ((h) => h.toString() === "[object SafariRemoteNotification]")(!o || typeof o != "undefined" && o.pushNotification);
121
- if (/constructor/i.test(s) || u)
121
+ const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!i || typeof i != "undefined" && i.pushNotification);
122
+ if (/constructor/i.test(o) || m)
122
123
  return "safari";
123
- const f = !!i;
124
- if (f)
124
+ const p = !!s;
125
+ if (p)
125
126
  return "internet-explorer";
126
- if (!f && !!a)
127
+ if (!p && !!a)
127
128
  return "edge";
128
- const d = !!m && (!!m.webstore || !!m.runtime);
129
+ const d = !!l && (!!l.webstore || !!l.runtime);
129
130
  if (d)
130
131
  return "chrome";
131
132
  if (d && navigator.userAgent.indexOf("Edg") !== -1)
132
133
  return "edge-chromium";
133
- if ((d || c) && !!l)
134
+ if ((d || c) && !!u)
134
135
  return "blink";
135
- }, Ge = ["string", "number"], R = (e) => Object.keys(e).reduce((t, n) => {
136
- const s = typeof e[n] == "undefined" ? "" : e[n], o = typeof s;
137
- if (Ge.indexOf(o) > -1) {
138
- const i = n.substring(0, 5);
139
- i === "data-" || i === "aria-" ? t[Ve(n)] = s.toString() : n.substring(0, 4) !== "css-" && (t[n] = s.toString());
136
+ }, Mt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
137
+ const o = typeof e[n] == "undefined" ? "" : e[n], i = typeof o;
138
+ if (Mt.indexOf(i) > -1) {
139
+ const s = n.substring(0, 5);
140
+ s === "data-" || s === "aria-" ? t[mt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
140
141
  } else
141
- t[n] = s;
142
+ t[n] = o;
142
143
  return t;
143
- }, {}), bn = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(Ht, p({}, t)) : null, Je = (e) => new RegExp("^#", "i").test(e), et = (e) => (s) => {
144
- var o = s, { children: t } = o, n = $(o, ["children"]);
144
+ }, {}), h1 = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(sn, h({}, t)) : null, St = (e) => new RegExp("^#", "i").test(e), Rt = (e) => (o) => {
145
+ var i = o, { children: t } = i, n = S(i, ["children"]);
145
146
  const {
146
- implementation: i,
147
+ implementation: s,
147
148
  name: a
148
- } = e.get("$widget"), { href: m = "" } = n;
149
- if (Je(m))
150
- return /* @__PURE__ */ r.createElement(it, {
149
+ } = e.get("$widget"), { href: l = "" } = n;
150
+ if (St(l))
151
+ return /* @__PURE__ */ r.createElement(Nt, {
151
152
  smooth: !0,
152
- to: m
153
+ to: l
153
154
  }, t);
154
- const l = i.bindings.map((f) => f.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(m);
155
- if (u && u.length >= 4) {
156
- const f = u[4];
157
- if (i.widgets.get(f) && !f.startsWith("blob?") && !f.startsWith(a))
158
- return /* @__PURE__ */ r.createElement(sn, {
159
- widgetName: f
155
+ const u = s.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
156
+ if (m && m.length >= 4) {
157
+ const p = m[4];
158
+ if (s.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
159
+ return /* @__PURE__ */ r.createElement(t1, {
160
+ widgetName: p
160
161
  }, t);
161
162
  }
162
- return /* @__PURE__ */ r.createElement("a", p({}, n), t);
163
- }, we = (e) => {
163
+ return /* @__PURE__ */ r.createElement("a", h({}, n), t);
164
+ }, Oe = (e) => {
164
165
  const t = {};
165
166
  return Object.keys(e).forEach((n) => {
166
167
  n.indexOf("css-") > -1 && (t[n] = e[n]);
167
168
  }), t;
168
- }, tt = M`
169
+ }, Ht = L`
169
170
  ${(e) => {
170
171
  let t = "";
171
- return Object.keys(we(e)).forEach((n) => {
172
+ return Object.keys(Oe(e)).forEach((n) => {
172
173
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
173
174
  }), t;
174
175
  }}
175
- `, nt = (e, t) => {
176
+ `, zt = (e, t) => {
176
177
  let n = "";
177
- const s = () => {
178
+ const o = () => {
178
179
  n = "";
179
- }, o = (f) => {
180
+ }, i = (p) => {
180
181
  const d = document.getElementById(n);
181
- return d !== null ? (f(d), s(), !0) : !1;
182
- }, i = (f) => (f.preventDefault(), s(), e.onClick && e.onClick(f), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && o(e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())), !1), u = e, { scroll: a, smooth: m, to: l } = u, c = $(u, ["scroll", "smooth", "to"]);
183
- return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, k(p({}, c), {
184
- onClick: i
182
+ return d !== null ? (p(d), o(), !0) : !1;
183
+ }, s = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && i(
184
+ e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
185
+ ), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
186
+ return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, $(h({}, c), {
187
+ onClick: s
185
188
  }), e.children);
186
- }, X = (e, t) => {
187
- let n = e, s = "";
189
+ }, se = (e, t) => {
190
+ let n = e, o = "";
188
191
  if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(e))
189
192
  n = e;
190
193
  else {
191
- const i = e.match(/h1|h2|h3|h4|h5|h6/);
192
- if (i != null && i[0]) {
193
- n = i[0];
194
+ const s = e.match(/h1|h2|h3|h4|h5|h6/);
195
+ if (s != null && s[0]) {
196
+ n = s[0];
194
197
  const [a] = e.split(n);
195
- s = a;
198
+ o = a;
196
199
  }
197
200
  }
198
- const o = (i, a, m) => m[i] ? `${a}${m[i]}` : `${a}${i}`;
199
- return M`
200
- ${(i) => o(n, s, i.theme.typographyVariantMapping || {})} {
201
+ const i = (s, a, l) => l[s] ? `${a}${l[s]}` : `${a}${s}`;
202
+ return L`
203
+ ${(s) => i(n, o, s.theme.typographyVariantMapping || {})} {
201
204
  ${t}
202
205
  }
203
206
  `;
204
207
  };
205
- function rt(e, t) {
206
- return t ? ye(e, t) : ye(e);
208
+ function Dt(e, t) {
209
+ return t ? Be(e, t) : Be(e);
207
210
  }
208
- const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
209
- attrs: e
210
- }), st = (e) => ({
211
+ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
212
+ attrs: t,
213
+ htmlBody: e
214
+ }), Tt = (e, t) => ({
211
215
  transform: {
212
- a: et(e),
213
- img: ot
216
+ a: Rt(e),
217
+ img: Bt(t)
214
218
  }
215
- }), it = (e) => nt(e, "a"), U = D((o, s) => {
216
- var i = o, { className: e, children: t } = i, n = $(i, ["className", "children"]);
217
- return /* @__PURE__ */ r.createElement(at, k(p({
219
+ }), Nt = (e) => zt(e, "a"), ae = N((i, o) => {
220
+ var s = i, { className: e, children: t } = s, n = S(s, ["className", "children"]);
221
+ return /* @__PURE__ */ r.createElement(Vt, $(h({
218
222
  type: "button",
219
- className: w(e, "humany-button")
220
- }, R(n)), {
221
- ref: s
223
+ className: M(e, "humany-button")
224
+ }, V(n)), {
225
+ ref: o
222
226
  }), t);
223
- }), at = v.button`
227
+ }), Vt = C.button`
224
228
  -webkit-appearance: button;
225
229
  text-transform: none;
226
230
  overflow: visible;
@@ -233,239 +237,274 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
233
237
  line-height: normal;
234
238
  margin: 0;
235
239
  padding: 0;
236
- `, Cn = (o) => {
237
- var i = o, {
240
+ `, p1 = (i) => {
241
+ var s = i, {
238
242
  onChange: e = () => {
239
243
  },
240
244
  onEnter: t = () => {
241
245
  },
242
246
  className: n
243
- } = i, s = $(i, [
247
+ } = s, o = S(s, [
244
248
  "onChange",
245
249
  "onEnter",
246
250
  "className"
247
251
  ]);
248
- return /* @__PURE__ */ r.createElement("input", p({
249
- className: w(n, "humany-checkbox"),
252
+ return /* @__PURE__ */ r.createElement("input", h({
253
+ className: M(n, "humany-checkbox"),
250
254
  onKeyDown: (a) => {
251
255
  a.key === "Enter" && t(a);
252
256
  },
253
257
  onChange: (a) => e(a.target.value, a.currentTarget.checked)
254
- }, R(s)));
255
- }, ct = Z(new Pe()), lt = Z(1), $e = Z({
258
+ }, V(o)));
259
+ }, Zt = Q(new pt()), Wt = Q(1), Fe = Q({
256
260
  id: "",
257
261
  type: "",
258
262
  name: "",
259
263
  branch: ""
260
- }), ut = Z({}), mt = Z(null), ae = () => O($e), T = () => O(ct), xn = (e, t) => {
261
- const n = ae().id, s = T();
262
- return (o, i) => {
263
- (t || s).getAsync("actionResolver").then((a) => {
264
- a.action(e || n, o, i);
264
+ }), It = Q({}), Ot = Q(null), ye = () => X(Fe), Z = () => X(Zt), g1 = (e, t) => {
265
+ const n = ye().id, o = Z();
266
+ return (i, s) => {
267
+ (t || o).getAsync("actionResolver").then((a) => {
268
+ a.action(e || n, i, s);
265
269
  });
266
270
  };
267
- }, ce = (e) => {
268
- const t = O($e), n = I(), [s, o] = L();
269
- return C(() => {
271
+ }, be = (e) => {
272
+ const t = X(Fe), n = _(), [o, i] = k();
273
+ return w(() => {
270
274
  if ((e || t.id) && n) {
271
- const i = n.nodes.get(e || t.id);
272
- o(i);
275
+ const s = n.nodes.get(e || t.id);
276
+ i(s);
273
277
  }
274
- }, [e, t.id, n]), s;
275
- }, B = () => {
276
- const e = S(!1);
277
- return C(() => (e.current = !0, () => {
278
+ }, [e, t.id, n]), o;
279
+ }, O = () => {
280
+ const e = R(!1);
281
+ return w(() => (e.current = !0, () => {
278
282
  e.current = !1;
279
283
  }), []), e;
280
- }, I = (e) => {
281
- const t = T(), [n, s] = L(null), o = B();
282
- return C(() => {
283
- Ze.getInstance(e || t).then((i) => {
284
- o.current && s(i);
284
+ }, _ = (e) => {
285
+ const t = Z(), [n, o] = k(null), i = O();
286
+ return w(() => {
287
+ Ct.getInstance(e || t).then((s) => {
288
+ i.current && o(s);
285
289
  });
286
- }, [o]), n;
287
- }, En = () => {
288
- const e = ce(), t = I(), [n, s] = L([]), o = B(), i = H((a) => {
289
- if (t && o.current) {
290
- const m = t.getBranch(a), l = a.getChildren(m).map((c) => Ae(c));
291
- s(l);
292
- }
293
- }, [o, t, s]);
294
- return C(() => {
295
- e && i(e);
296
- }, [e, t]), C(() => {
290
+ }, [i]), n;
291
+ }, C1 = () => {
292
+ const e = be(), t = _(), [n, o] = k([]), i = O(), s = H(
293
+ (a) => {
294
+ if (t && i.current) {
295
+ const l = t.getBranch(a), u = a.getChildren(l).map((c) => yt(c));
296
+ o(u);
297
+ }
298
+ },
299
+ [i, t, o]
300
+ );
301
+ return w(() => {
302
+ e && s(e);
303
+ }, [e, t]), w(() => {
297
304
  if (t) {
298
- const [a, m] = Ke(t.events);
299
- return a("components:set-layout", (l, c) => {
300
- (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
301
- }), a("components:node-appended", (l, c) => {
302
- (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
303
- }), a("components:node-removed", (l, { parentNode: c }) => {
304
- (c === e || c === t.nodes.root) && i(c);
305
+ const [a, l] = bt(t.events);
306
+ return a("components:set-layout", (u, c) => {
307
+ (e === c.node.parent || c.node.parent === t.nodes.root) && s(c.node.parent);
308
+ }), a("components:node-appended", (u, c) => {
309
+ (e === c.node.parent || c.node.parent === t.nodes.root) && s(c.node.parent);
310
+ }), a("components:node-removed", (u, { parentNode: c }) => {
311
+ (c === e || c === t.nodes.root) && s(c);
305
312
  }), () => {
306
- m();
313
+ l();
307
314
  };
308
315
  }
309
- }, [e, t, i]), n;
310
- }, vn = () => O(lt), wn = (e, t) => {
311
- const n = ae(), s = T(), [o, i] = L(void 0), a = B(), m = e || n.type || "";
312
- return C(() => {
313
- if (m) {
314
- let l;
315
- return (t || s).getAsync("componentResolver").then((c) => {
316
+ }, [e, t, s]), n;
317
+ }, y1 = () => X(Wt), b1 = (e, t) => {
318
+ const n = ye(), o = Z(), [i, s] = k(void 0), a = O(), l = e || n.type || "";
319
+ return w(() => {
320
+ if (l) {
321
+ let u;
322
+ return (t || o).getAsync("componentResolver").then((c) => {
316
323
  if (a.current) {
317
- const u = c.getComponent(m);
318
- i(u);
324
+ const m = c.getComponent(l);
325
+ s(m);
319
326
  }
320
- l = c.registerResolver(m, (u) => {
321
- a.current && i(u);
327
+ u = c.registerResolver(l, (m) => {
328
+ a.current && s(m);
322
329
  });
323
330
  }), () => {
324
- l && l();
331
+ u && u();
325
332
  };
326
333
  }
327
- }, [a, m, t, s]), o;
328
- }, dt = (e) => {
329
- const t = ce(e), n = I(), [s, o] = L({}), i = B();
330
- return C(() => {
331
- t && i.current && o(t.attributes.context);
332
- }, [i, t]), C(() => {
334
+ }, [a, l, t, o]), i;
335
+ }, Ft = (e) => {
336
+ const t = be(e), n = _(), [o, i] = k({}), s = O();
337
+ return w(() => {
338
+ t && s.current && i(t.attributes.context);
339
+ }, [s, t]), w(() => {
333
340
  if (n) {
334
- const a = n.events.subscribe("components:context-changed", (m, l) => {
335
- t === l.node && i.current && o(l.node.attributes.context);
336
- });
341
+ const a = n.events.subscribe(
342
+ "components:context-changed",
343
+ (l, u) => {
344
+ t === u.node && s.current && i(u.node.attributes.context);
345
+ }
346
+ );
337
347
  return () => {
338
348
  a();
339
349
  };
340
350
  }
341
- }, [i, n]), s;
342
- }, $n = () => {
343
- const e = I(), t = ae(), [n, s] = L([]), [o, i] = L();
344
- return C(() => {
351
+ }, [s, n]), o;
352
+ }, v1 = () => {
353
+ const e = _(), t = ye(), [n, o] = k([]), [i, s] = k();
354
+ return w(() => {
345
355
  if (e && t) {
346
- const a = new Ye(e).withId(t.id), m = e.actions(a, t.type || F());
347
- i(m), n !== null && (n.forEach((l) => {
348
- m.dispatch(l.key, l.data).then((c) => l.resolve(c)).catch((c) => l.reject(c));
349
- }), s(null));
356
+ const a = new vt(e).withId(t.id), l = e.actions(a, t.type || q());
357
+ s(l), n !== null && (n.forEach((u) => {
358
+ l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
359
+ }), o(null));
350
360
  }
351
- }, [e, t.id]), (a, m) => n !== null ? new Promise((l, c) => {
361
+ }, [e, t.id]), (a, l) => n !== null ? new Promise((u, c) => {
352
362
  n.push({
353
363
  key: a,
354
- data: m,
355
- resolve: l,
364
+ data: l,
365
+ resolve: u,
356
366
  reject: c
357
367
  });
358
- }) : o.dispatch(a, m);
359
- }, z = (e, t, n = window, s = () => !0) => {
360
- const o = S(() => {
368
+ }) : i.dispatch(a, l);
369
+ }, I = (e, t, n = window, o = () => !0) => {
370
+ const i = R(() => {
361
371
  });
362
- C(() => {
363
- o.current = t;
364
- }, [t]), C(() => {
365
- if (!(n && s()))
372
+ w(() => {
373
+ i.current = t;
374
+ }, [t]), w(() => {
375
+ if (!(n && o()))
366
376
  return;
367
- const a = (m) => o.current(m);
377
+ const a = (l) => i.current(l);
368
378
  return n.addEventListener(e, a), () => {
369
379
  n.removeEventListener(e, a);
370
380
  };
371
381
  }, [e, n]);
372
- }, ft = (e) => {
373
- const t = T(), { events: n } = (e || t).get("$widget");
382
+ }, At = (e) => {
383
+ const t = Z(), { events: n } = (e || t).get("$widget");
374
384
  return n;
375
- }, q = (e, t) => {
376
- const [n, s] = L(!1), o = H((a) => {
377
- const { key: m } = a;
378
- m === e && (s(!0), t && t(a));
379
- }, [s, t]), i = H(({ key: a }) => {
380
- a === e && s(!1);
381
- }, [s]);
382
- return z("keydown", o, window), z("keyup", i, window), n;
383
- }, kn = (e) => {
384
- const t = ce(e), n = I(), [s, o] = L({}), i = B();
385
- return C(() => {
386
- t && i.current && o(t.attributes.layout);
387
- }, [t, i]), C(() => {
385
+ }, w1 = () => {
386
+ const [e, t] = k(!1);
387
+ return w(() => {
388
+ const n = () => {
389
+ t(!1);
390
+ }, o = (i) => {
391
+ i.keyCode === 9 && t(!0);
392
+ };
393
+ return window.addEventListener("keydown", o), window.addEventListener("click", n), () => {
394
+ window.removeEventListener("keydown", o), window.removeEventListener("click", n);
395
+ };
396
+ }, []), e;
397
+ }, j = (e, t) => {
398
+ const [n, o] = k(!1), i = H(
399
+ (a) => {
400
+ const { key: l } = a;
401
+ l === e && (o(!0), t && t(a));
402
+ },
403
+ [o, t]
404
+ ), s = H(
405
+ ({ key: a }) => {
406
+ a === e && o(!1);
407
+ },
408
+ [o]
409
+ );
410
+ return I("keydown", i, window), I("keyup", s, window), n;
411
+ }, E1 = (e) => {
412
+ const t = be(e), n = _(), [o, i] = k({}), s = O();
413
+ return w(() => {
414
+ t && s.current && i(t.attributes.layout);
415
+ }, [t, s]), w(() => {
388
416
  if (n) {
389
- const a = n.events.subscribe("components:layout-changed", (m, l) => {
390
- t === l.node && i.current && o(l.node.attributes.layout);
391
- });
417
+ const a = n.events.subscribe(
418
+ "components:layout-changed",
419
+ (l, u) => {
420
+ t === u.node && s.current && i(u.node.attributes.layout);
421
+ }
422
+ );
392
423
  return () => {
393
424
  a();
394
425
  };
395
426
  }
396
- }, [n, i]), s;
397
- }, ke = (e) => {
398
- const t = S();
399
- return C(() => {
427
+ }, [n, s]), o;
428
+ }, Ae = (e) => {
429
+ const t = R();
430
+ return w(() => {
400
431
  t.current = e;
401
432
  }), t.current;
402
- }, Ln = () => O(ut), Mn = (e) => {
403
- const [t, n] = L(), s = T(), o = B();
404
- return C(() => {
405
- let i;
406
- const a = (e || s).get("$widget");
433
+ }, x1 = () => X(It), k1 = (e) => {
434
+ const [t, n] = k(), o = Z(), i = O();
435
+ return w(() => {
436
+ let s;
437
+ const a = (e || o).get("$widget");
407
438
  if (!a)
408
439
  return;
409
- const { name: m, invoke: l } = a;
410
- return l("renderState").then((c) => {
411
- o.current && n(c);
412
- }), (e || s).getAsync("actionResolver").then((c) => {
413
- i = c.subscribe(m, (u, f) => {
414
- switch (f) {
440
+ const { name: l, invoke: u } = a;
441
+ return u("renderState").then((c) => {
442
+ i.current && n(c);
443
+ }), (e || o).getAsync("actionResolver").then((c) => {
444
+ s = c.subscribe(l, (m, p) => {
445
+ switch (p) {
415
446
  case "close":
416
447
  case "open":
417
- o.current && n(f === "open" ? j.open : j.closed);
448
+ i.current && n(
449
+ p === "open" ? oe.open : oe.closed
450
+ );
418
451
  break;
419
452
  case "hide":
420
- o.current && n(j.hidden);
453
+ i.current && n(oe.hidden);
421
454
  }
422
455
  });
423
456
  }), () => {
424
- i && i();
457
+ s && s();
425
458
  };
426
- }, [o]), t;
427
- }, Le = () => O(mt), Sn = (e) => {
428
- const t = T(), n = Le(), [s, o] = L({ name: "", params: {} }), i = B();
429
- return C(() => {
459
+ }, [i]), t;
460
+ }, Pe = () => X(Ot), $1 = (e) => {
461
+ const t = Z(), n = Pe(), [o, i] = k({ name: "", params: {} }), s = O();
462
+ return w(() => {
430
463
  const a = (e || t).get("$widget");
431
464
  if (!a)
432
465
  return;
433
- const { events: m } = a;
434
- return m.subscribe("router:change", (c, { next: { routeData: u } }) => {
435
- if (i.current) {
436
- const { name: f, params: d } = u;
437
- ge(d), o({ name: f, params: d });
466
+ const { events: l } = a;
467
+ return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
468
+ if (s.current) {
469
+ const { name: p, params: d } = m;
470
+ De(d), i({ name: p, params: d });
438
471
  }
439
472
  });
440
- }, [i, e, t]), C(() => {
441
- if (n && n.history && i.current) {
442
- const a = n.getRouteData(), { name: m, params: l } = a;
443
- ge(l), o({ name: m, params: l });
444
- }
445
- }, [n, i]), s;
446
- }, Me = (e) => {
447
- const t = S(), n = S(0);
448
- let s;
449
- const o = H(() => {
473
+ }, [s, e, t]), w(() => {
474
+ if (n && n.history && s.current) {
475
+ const a = n.getRouteData(), { name: l, params: u } = a;
476
+ De(u), i({ name: l, params: u });
477
+ }
478
+ }, [n, s]), o;
479
+ }, Ke = (e) => {
480
+ const t = R(), n = R(0);
481
+ let o;
482
+ const i = H(() => {
450
483
  var c;
451
- (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(s), s = setTimeout(() => {
452
- var u;
453
- (u = t.current) == null || u.classList.remove("humany-scrolling");
484
+ (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
485
+ var m;
486
+ (m = t.current) == null || m.classList.remove("humany-scrolling");
454
487
  }, 500);
455
- }, [t]), i = H((c) => {
456
- n.current = c.touches[0].clientY;
457
- }, [t]), a = (c) => m(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, m = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, l = H((c) => {
458
- if (!c.cancelable)
459
- return;
460
- const u = c.touches[0].clientY, f = a(c.target);
461
- if (!f)
462
- return;
463
- const d = f.scrollTop, h = n.current - u < 0 ? "up" : "down", g = d <= 0 && h === "up", E = d >= f.scrollHeight - f.offsetHeight && h === "down";
464
- (g || E) && c.preventDefault(), n.current = u;
465
- }, [t, n]);
466
- return z("scroll", o, t.current, () => t.current && e), z("touchstart", i, t.current, () => t.current && e), z("touchmove", l, t.current, () => t.current && e), e ? [ht, t] : ["", t];
467
- }, ht = `
468
- overflow-y: ${Ce() === se.Chrome || Ce() === se.EdgeChromium ? "overlay" : "auto"};
488
+ }, [t]), s = H(
489
+ (c) => {
490
+ n.current = c.touches[0].clientY;
491
+ },
492
+ [t]
493
+ ), 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(
494
+ (c) => {
495
+ if (!c.cancelable)
496
+ return;
497
+ const m = c.touches[0].clientY, p = a(c.target);
498
+ if (!p)
499
+ return;
500
+ const d = p.scrollTop, f = n.current - m < 0 ? "up" : "down", g = d <= 0 && f === "up", E = d >= p.scrollHeight - p.offsetHeight && f === "down";
501
+ (g || E) && c.preventDefault(), n.current = m;
502
+ },
503
+ [t, n]
504
+ );
505
+ return I("scroll", i, t.current, () => t.current && e), I("touchstart", s, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [Pt, t] : ["", t];
506
+ }, Pt = `
507
+ overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
469
508
  overflow-x: hidden;
470
509
  -ms-overflow-style: none; /* IE 10+ */
471
510
  scrollbar-width: thin; /* Firefox */
@@ -492,58 +531,61 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
492
531
  background-color: #7F7F7F;
493
532
  }
494
533
  }
495
- `, Hn = () => {
496
- const [e, t] = L(null), n = T(), s = B();
497
- return C(() => {
498
- n.get("settings").then((o) => {
499
- s.current && t(o);
534
+ `, L1 = () => {
535
+ const [e, t] = k(null), n = Z(), o = O();
536
+ return w(() => {
537
+ n.get("settings").then((i) => {
538
+ o.current && t(i);
500
539
  });
501
- }, [s]), e;
502
- }, le = (e = !1) => {
503
- const [t, n] = L(e), s = H((o) => {
504
- n(typeof o == "boolean" ? o : (i) => !i);
540
+ }, [o]), e;
541
+ }, Ye = (e = !1) => {
542
+ const [t, n] = k(e), o = H((i) => {
543
+ n(typeof i == "boolean" ? i : (s) => !s);
505
544
  }, []);
506
- return [t, s];
507
- }, Rn = (e) => {
508
- const t = T(), n = I(), s = t.get("widgetDOMElement"), [o, i] = L(null), [a, m] = L(null), l = B();
509
- C(() => {
510
- if (n && l.current) {
511
- const u = n.nodes.all.find((d) => d.name === "root-area"), f = n.nodes.all.find((d) => d.type === "view");
512
- if (!(f != null && f.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
545
+ return [t, o];
546
+ }, M1 = (e) => {
547
+ const t = Z(), n = _(), o = t.get("widgetDOMElement"), [i, s] = k(null), [a, l] = k(null), u = O();
548
+ w(() => {
549
+ if (n && u.current) {
550
+ const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
551
+ if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
513
552
  e();
514
553
  else {
515
- const d = (E = "") => s == null ? void 0 : s.querySelector(`[data-node-id="${E}"]`), h = d(f == null ? void 0 : f.id);
516
- h && i(h);
517
- const g = d(u == null ? void 0 : u.id);
518
- g && m(g);
554
+ const d = (E = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${E}"]`), f = d(p == null ? void 0 : p.id);
555
+ f && s(f);
556
+ const g = d(m == null ? void 0 : m.id);
557
+ g && l(g);
519
558
  }
520
559
  }
521
- }, [n, t, l]);
522
- const c = H((u) => {
523
- l.current && (u.target === o || u.target === a) && e();
524
- }, [e, l, o, a]);
525
- z("transitionend", c, o), z("transitionend", c, a);
526
- }, Q = (e, t, n = [], s) => {
527
- const o = ft(s);
528
- return C(() => {
529
- if (o) {
530
- const i = o.subscribe(e, t);
560
+ }, [n, t, u]);
561
+ const c = H(
562
+ (m) => {
563
+ u.current && (m.target === i || m.target === a) && e();
564
+ },
565
+ [e, u, i, a]
566
+ );
567
+ I("transitionend", c, i), I("transitionend", c, a);
568
+ }, ce = (e, t, n = [], o) => {
569
+ const i = At(o);
570
+ return w(() => {
571
+ if (i) {
572
+ const s = i.subscribe(e, t);
531
573
  return () => {
532
- i();
574
+ s();
533
575
  };
534
576
  }
535
- }, [o].concat(n)), (i) => o == null ? void 0 : o.dispatch(e, i);
536
- }, ue = (e, t) => {
537
- const n = Q("widget:menu-toggled", (s, o) => {
538
- o !== e && t();
577
+ }, [i].concat(n)), (s) => i == null ? void 0 : i.dispatch(e, s);
578
+ }, ve = (e, t) => {
579
+ const n = ce("widget:menu-toggled", (o, i) => {
580
+ i !== e && t();
539
581
  });
540
582
  return () => n(e);
541
- }, me = (s) => {
542
- var o = s, { className: e, children: t } = o, n = $(o, ["className", "children"]);
543
- return /* @__PURE__ */ r.createElement("span", p({
544
- className: w(e, "humany-text")
545
- }, R(n)), t);
546
- }, Se = M`
583
+ }, we = (o) => {
584
+ var i = o, { className: e, children: t } = i, n = S(i, ["className", "children"]);
585
+ return /* @__PURE__ */ r.createElement("span", h({
586
+ className: M(e, "humany-text")
587
+ }, V(n)), t);
588
+ }, je = L`
547
589
  display: flex;
548
590
  justify-content: center;
549
591
  flex-direction: column;
@@ -552,7 +594,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
552
594
  border: ${(e) => e.theme.border};
553
595
  box-shadow: ${(e) => e.theme.boxShadow || "none"};
554
596
  ${(e) => e["data-loading"] && "min-height: 150px;"}
555
- `, pt = M`
597
+ `, Kt = L`
556
598
  cursor: pointer;
557
599
  text-align: center;
558
600
  border: none;
@@ -570,12 +612,12 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
570
612
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
571
613
  }};
572
614
  font-weight: 300;
573
- `, Dn = ({
615
+ `, S1 = ({
574
616
  primaryColor: e,
575
617
  secondaryColor: t,
576
618
  active: n
577
- }) => M`
578
- ${pt}
619
+ }) => L`
620
+ ${Kt}
579
621
  border: 1px solid ${n ? t : e};
580
622
  background-color: ${n ? e : t};
581
623
 
@@ -588,13 +630,13 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
588
630
  a {
589
631
  transition: color 200ms ease-out;
590
632
  color: ${n ? t : e};
591
- font-size: ${(s) => {
592
- var o;
593
- return (o = s.theme.fonts) == null ? void 0 : o.normal;
633
+ font-size: ${(o) => {
634
+ var i;
635
+ return (i = o.theme.fonts) == null ? void 0 : i.normal;
594
636
  }};
595
637
  }
596
638
 
597
- ${(s) => !s.disabled && M`
639
+ ${(o) => !o.disabled && L`
598
640
  &:hover {
599
641
  background-color: ${e};
600
642
  color: ${t};
@@ -607,14 +649,11 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
607
649
  }
608
650
  }
609
651
 
610
- &:focus {
611
- ${(o) => {
612
- var i;
613
- return ((i = o.theme.accessibility) == null ? void 0 : i.isTabbing) && P;
614
- }};
652
+ &:focus-visible {
653
+ ${P};
615
654
  }
616
655
  `}
617
- `, P = M`
656
+ `, P = L`
618
657
  outline: ${(e) => {
619
658
  var t;
620
659
  return (t = e.theme.accessibility) == null ? void 0 : t.border;
@@ -624,16 +663,16 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
624
663
  return (n = (t = e.theme.accessibility) == null ? void 0 : t.colors) == null ? void 0 : n.inactiveText;
625
664
  }};
626
665
  border-color: transparent;
627
- `, Tn = M`
666
+ `, Yt = L`
628
667
  ${P}
629
668
  text-decoration: underline;
630
- `, Nn = M`
669
+ `, R1 = L`
631
670
  ${P}
632
671
  outline-offset: ${(e) => {
633
672
  var t;
634
673
  return (t = e.theme.sizes) == null ? void 0 : t.small;
635
674
  }};
636
- `, de = v(U)`
675
+ `, Ee = C(ae)`
637
676
  position: absolute;
638
677
  top: ${(e) => {
639
678
  var t;
@@ -652,21 +691,16 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
652
691
  }};
653
692
  }
654
693
 
655
- &:focus {
656
- ${(e) => {
694
+ &:focus-visible {
695
+ ${P}
696
+ padding: ${(e) => {
657
697
  var t;
658
- return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && M`
659
- ${P}
660
- padding: ${(n) => {
661
- var s;
662
- return (s = n.theme.sizes) == null ? void 0 : s.small;
663
- }};
664
- height: 15px;
665
- box-sizing: content-box;
666
- `;
698
+ return (t = e.theme.sizes) == null ? void 0 : t.small;
667
699
  }};
700
+ height: 15px;
701
+ box-sizing: content-box;
668
702
  }
669
- `, xe = v(me)`
703
+ `, Ve = C(we)`
670
704
  font-size: ${(e) => {
671
705
  var t;
672
706
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -677,7 +711,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
677
711
  var t;
678
712
  return (t = e.theme.colors) == null ? void 0 : t.text;
679
713
  }};
680
- `, gt = M`
714
+ `, jt = L`
681
715
  padding: 0;
682
716
  margin: 0;
683
717
  list-style: none;
@@ -699,38 +733,43 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
699
733
  > li:last-child {
700
734
  margin: 0;
701
735
  }
702
- `, zn = M`
736
+ `, H1 = L`
703
737
  > div {
704
- ${X("> h1", M`
738
+ ${se(
739
+ "> h1",
740
+ L`
705
741
  margin: 0 0 ${(e) => {
706
- var t;
707
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
708
- }};
742
+ var t;
743
+ return (t = e.theme.sizes) == null ? void 0 : t.normal;
744
+ }};
709
745
  font-size: ${(e) => {
710
- var t;
711
- return (t = e.theme.fonts) == null ? void 0 : t.medium;
712
- }};
746
+ var t;
747
+ return (t = e.theme.fonts) == null ? void 0 : t.medium;
748
+ }};
713
749
  font-weight: normal;
714
750
  line-height: 1.8em;
715
751
  color: ${(e) => {
716
- var t;
717
- return (t = e.theme.colors) == null ? void 0 : t.text;
718
- }};
719
- `)}
752
+ var t;
753
+ return (t = e.theme.colors) == null ? void 0 : t.text;
754
+ }};
755
+ `
756
+ )}
720
757
  }
721
758
  > ul {
722
- ${gt}
759
+ ${jt}
723
760
  }
724
761
 
725
- ${X("h1", M`
762
+ ${se(
763
+ "h1",
764
+ L`
726
765
  display: flex;
727
766
  align-items: center;
728
767
 
729
768
  i {
730
769
  margin: 7px ${(e) => {
731
- var t;
732
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
733
- }} 0 0;
770
+ var t;
771
+ return (t = e.theme.sizes) == null ? void 0 : t.normal;
772
+ }} 0 0;
734
773
  width: 24px;
735
774
  display: inline-block;
736
775
  vertical-align: text-bottom;
@@ -739,27 +778,102 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
739
778
  min-height: 24px;
740
779
  text-align: center;
741
780
  }
742
- `)}
743
- `, G = ({ elementId: e = "humany-portal-elements", children: t }) => {
744
- const [n] = r.useState(() => {
745
- const s = document.getElementById(e) || document.createElement("div");
746
- return s.id = e, s;
781
+ `
782
+ )}
783
+ `, z1 = L`
784
+ font-size: ${(e) => {
785
+ var t;
786
+ return (t = e.theme.fonts) == null ? void 0 : t.normal;
787
+ }};
788
+ font-weight: 300;
789
+ line-height: 1.5em;
790
+ color: ${(e) => {
791
+ var t;
792
+ return (t = e.theme.colors) == null ? void 0 : t.text;
793
+ }};
794
+
795
+ h1,
796
+ h2,
797
+ h3,
798
+ h4,
799
+ h5,
800
+ h6 {
801
+ word-break: break-word;
802
+ &:first-child {
803
+ margin-top: 0;
804
+ }
805
+ &:only-child {
806
+ margin: 0;
807
+ }
808
+ &:last-child {
809
+ margin-bottom: 0;
810
+ }
811
+ }
812
+
813
+ a {
814
+ color: ${(e) => {
815
+ var t;
816
+ return (t = e.theme.colors) == null ? void 0 : t.link;
817
+ }};
818
+ &:focus-visible {
819
+ ${Yt};
820
+ }
821
+ }
822
+
823
+ img {
824
+ max-width: 100% !important;
825
+ height: auto !important;
826
+ }
827
+
828
+ p {
829
+ word-break: break-word;
830
+ margin: ${(e) => {
831
+ var t;
832
+ return (t = e.theme.sizes) == null ? void 0 : t.normal;
833
+ }} 0;
834
+ }
835
+
836
+ p:first-child {
837
+ margin: 0 0 ${(e) => {
838
+ var t;
839
+ return (t = e.theme.sizes) == null ? void 0 : t.normal;
840
+ }};
841
+ }
842
+
843
+ p:last-child {
844
+ margin: ${(e) => {
845
+ var t;
846
+ return (t = e.theme.sizes) == null ? void 0 : t.normal;
847
+ }} 0 0;
848
+ }
849
+
850
+ p:only-child {
851
+ margin: 0;
852
+ }
853
+ `, G = ({
854
+ elementId: e = "humany-portal-elements",
855
+ parent: t = document.body,
856
+ children: n
857
+ }) => {
858
+ const [o] = k(() => {
859
+ const i = document.getElementById(e) || document.createElement("div");
860
+ return i.id = e, i;
747
861
  });
748
- return C(() => (document.body.appendChild(n), () => {
749
- n.childElementCount <= 1 && document.body.removeChild(n);
750
- }), [n]), Xe(t, n);
751
- }, A = (m) => {
752
- var l = m, {
862
+ return w(() => (t.appendChild(o), () => {
863
+ o.childElementCount <= 1 && t.removeChild(o);
864
+ }), [o]), Et(n, o);
865
+ }, J = (l) => {
866
+ var u = l, {
753
867
  text: e = "",
754
868
  backgroundSize: t = "contain",
755
869
  size: n = 12,
756
- symbol: s = {
870
+ symbol: o = {
757
871
  content: "",
758
872
  type: ""
759
873
  },
760
- elementStyle: o = {},
761
- className: i
762
- } = l, a = $(l, [
874
+ elementStyle: i = {},
875
+ className: s
876
+ } = u, a = S(u, [
763
877
  "text",
764
878
  "backgroundSize",
765
879
  "size",
@@ -767,7 +881,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
767
881
  "elementStyle",
768
882
  "className"
769
883
  ]);
770
- const { type: c, content: u } = s, f = {
884
+ const { type: c, content: m } = o, p = {
771
885
  "aria-label": e,
772
886
  role: "presentation"
773
887
  };
@@ -775,29 +889,29 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
775
889
  case "Uri": {
776
890
  const d = {
777
891
  backgroundSize: t,
778
- backgroundImage: `url('${u}')`,
892
+ backgroundImage: `url('${m}')`,
779
893
  backgroundRepeat: "no-repeat",
780
894
  backgroundPosition: "center",
781
895
  backgroundAttachment: "center"
782
896
  };
783
- return /* @__PURE__ */ r.createElement("i", p(p({
784
- className: w(i, "humany-icon", "humany-custom-icon"),
897
+ return /* @__PURE__ */ r.createElement("i", h(h({
898
+ className: M(s, "humany-icon", "humany-custom-icon"),
785
899
  title: e,
786
- style: p(p({}, d), o)
787
- }, f), a));
900
+ style: h(h({}, d), i)
901
+ }, p), a));
788
902
  }
789
903
  case "Svg": {
790
- const d = k(p({
791
- className: w(i, "humany-icon"),
904
+ const d = $(h({
905
+ className: M(s, "humany-icon"),
792
906
  width: `${n}`,
793
907
  fill: "none",
794
908
  xmlns: "http://www.w3.org/2000/svg"
795
909
  }, a), {
796
910
  ref: null
797
- }), h = { minWidth: `${n}` };
798
- switch (u) {
911
+ }), f = { minWidth: `${n}` };
912
+ switch (m) {
799
913
  case "search":
800
- return /* @__PURE__ */ r.createElement("svg", p({
914
+ return /* @__PURE__ */ r.createElement("svg", h({
801
915
  viewBox: "0 0 32 30"
802
916
  }, d), /* @__PURE__ */ r.createElement("circle", {
803
917
  cx: "14.8457",
@@ -811,7 +925,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
811
925
  y2: "25.9661"
812
926
  }));
813
927
  case "clear":
814
- return /* @__PURE__ */ r.createElement("svg", p({
928
+ return /* @__PURE__ */ r.createElement("svg", h({
815
929
  viewBox: "0 0 27 27"
816
930
  }, d), /* @__PURE__ */ r.createElement("circle", {
817
931
  cx: "13.4351",
@@ -833,7 +947,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
833
947
  stroke: "black"
834
948
  }));
835
949
  case "close":
836
- return /* @__PURE__ */ r.createElement("svg", p({
950
+ return /* @__PURE__ */ r.createElement("svg", h({
837
951
  viewBox: "0 0 13 13"
838
952
  }, d), /* @__PURE__ */ r.createElement("path", {
839
953
  d: "M12.3068 0.50647L1.27246 11.7273",
@@ -843,9 +957,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
843
957
  stroke: "black"
844
958
  }));
845
959
  case "caret-right":
846
- return /* @__PURE__ */ r.createElement("svg", p({
960
+ return /* @__PURE__ */ r.createElement("svg", h({
847
961
  viewBox: "0 0 14 14",
848
- style: h
962
+ style: f
849
963
  }, d), /* @__PURE__ */ r.createElement("line", {
850
964
  x1: "4.13",
851
965
  y1: "1.05",
@@ -860,9 +974,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
860
974
  stroke: "black"
861
975
  }));
862
976
  case "caret-left":
863
- return /* @__PURE__ */ r.createElement("svg", p({
977
+ return /* @__PURE__ */ r.createElement("svg", h({
864
978
  viewBox: "0 0 14 14",
865
- style: h
979
+ style: f
866
980
  }, d), /* @__PURE__ */ r.createElement("line", {
867
981
  x1: "10.13",
868
982
  y1: "12.95",
@@ -877,9 +991,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
877
991
  stroke: "black"
878
992
  }));
879
993
  case "caret-up":
880
- return /* @__PURE__ */ r.createElement(yt, p({
994
+ return /* @__PURE__ */ r.createElement(Xt, h({
881
995
  viewBox: "0 0 14 14",
882
- style: h
996
+ style: f
883
997
  }, d), /* @__PURE__ */ r.createElement("line", {
884
998
  x1: "13.09",
885
999
  y1: "3.99",
@@ -894,9 +1008,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
894
1008
  stroke: "black"
895
1009
  }));
896
1010
  case "caret-down":
897
- return /* @__PURE__ */ r.createElement("svg", p({
1011
+ return /* @__PURE__ */ r.createElement("svg", h({
898
1012
  viewBox: "0 0 14 14",
899
- style: h
1013
+ style: f
900
1014
  }, d), /* @__PURE__ */ r.createElement("line", {
901
1015
  x1: "13.09",
902
1016
  y1: "3.99",
@@ -911,7 +1025,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
911
1025
  stroke: "black"
912
1026
  }));
913
1027
  case "back":
914
- return /* @__PURE__ */ r.createElement("svg", p({
1028
+ return /* @__PURE__ */ r.createElement("svg", h({
915
1029
  viewBox: "0 0 18 18"
916
1030
  }, d), /* @__PURE__ */ r.createElement("line", {
917
1031
  y1: "-0.5",
@@ -927,7 +1041,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
927
1041
  stroke: "white"
928
1042
  }));
929
1043
  case "alert":
930
- return /* @__PURE__ */ r.createElement("svg", p({
1044
+ return /* @__PURE__ */ r.createElement("svg", h({
931
1045
  viewBox: "0 0 19 19"
932
1046
  }, d), /* @__PURE__ */ r.createElement("circle", {
933
1047
  cx: "9.5",
@@ -939,7 +1053,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
939
1053
  fill: "white"
940
1054
  }));
941
1055
  case "send":
942
- return /* @__PURE__ */ r.createElement("svg", p({
1056
+ return /* @__PURE__ */ r.createElement("svg", h({
943
1057
  viewBox: "0 0 20 17"
944
1058
  }, d), /* @__PURE__ */ r.createElement("path", {
945
1059
  d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
@@ -948,7 +1062,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
948
1062
  strokeWidth: "0.1"
949
1063
  }));
950
1064
  case "chat":
951
- return /* @__PURE__ */ r.createElement("svg", p({
1065
+ return /* @__PURE__ */ r.createElement("svg", h({
952
1066
  viewBox: "-2 -3 40 40"
953
1067
  }, d), /* @__PURE__ */ r.createElement("path", {
954
1068
  strokeWidth: "0",
@@ -970,7 +1084,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
970
1084
  fill: "currentColor"
971
1085
  }));
972
1086
  case "chat-new":
973
- return /* @__PURE__ */ r.createElement("svg", p({
1087
+ return /* @__PURE__ */ r.createElement("svg", h({
974
1088
  viewBox: "0 0 26 24"
975
1089
  }, d), /* @__PURE__ */ r.createElement("path", {
976
1090
  d: "M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",
@@ -980,7 +1094,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
980
1094
  fill: "currentColor"
981
1095
  }));
982
1096
  case "agent":
983
- return /* @__PURE__ */ r.createElement("svg", p({
1097
+ return /* @__PURE__ */ r.createElement("svg", h({
984
1098
  viewBox: "0 0 36 30"
985
1099
  }, d), /* @__PURE__ */ r.createElement("path", {
986
1100
  d: "M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",
@@ -1001,20 +1115,20 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1001
1115
  stroke: "white"
1002
1116
  }));
1003
1117
  case "minimize":
1004
- return /* @__PURE__ */ r.createElement("svg", p({
1118
+ return /* @__PURE__ */ r.createElement("svg", h({
1005
1119
  viewBox: "0 -10 22 22"
1006
1120
  }, d), /* @__PURE__ */ r.createElement("path", {
1007
1121
  d: "M0 1H22",
1008
1122
  stroke: "white"
1009
1123
  }));
1010
1124
  case "sorting":
1011
- return /* @__PURE__ */ r.createElement("svg", p({
1125
+ return /* @__PURE__ */ r.createElement("svg", h({
1012
1126
  viewBox: "0 0 18 14"
1013
1127
  }, d), /* @__PURE__ */ r.createElement("path", {
1014
1128
  d: "M18 1H0M8 13H0M13 7H0"
1015
1129
  }));
1016
1130
  case "copy":
1017
- return /* @__PURE__ */ r.createElement("svg", p({
1131
+ return /* @__PURE__ */ r.createElement("svg", h({
1018
1132
  viewBox: "0 0 19 17"
1019
1133
  }, d), /* @__PURE__ */ r.createElement("rect", {
1020
1134
  x: "0.5",
@@ -1032,7 +1146,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1032
1146
  fill: "white"
1033
1147
  }));
1034
1148
  case "print":
1035
- return /* @__PURE__ */ r.createElement("svg", p({
1149
+ return /* @__PURE__ */ r.createElement("svg", h({
1036
1150
  viewBox: "0 0 16 17"
1037
1151
  }, d), /* @__PURE__ */ r.createElement("path", {
1038
1152
  d: "M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",
@@ -1066,14 +1180,14 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1066
1180
  stroke: "black"
1067
1181
  }));
1068
1182
  case "language":
1069
- return /* @__PURE__ */ r.createElement("svg", p({
1183
+ return /* @__PURE__ */ r.createElement("svg", h({
1070
1184
  viewBox: "0 0 19 19"
1071
1185
  }, d), /* @__PURE__ */ r.createElement("path", {
1072
1186
  d: "M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",
1073
1187
  stroke: "black"
1074
1188
  }));
1075
1189
  case "information":
1076
- return /* @__PURE__ */ r.createElement("svg", p({
1190
+ return /* @__PURE__ */ r.createElement("svg", h({
1077
1191
  viewBox: "0 0 17 17"
1078
1192
  }, d), /* @__PURE__ */ r.createElement("path", {
1079
1193
  d: "M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",
@@ -1088,7 +1202,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1088
1202
  fill: "black"
1089
1203
  }));
1090
1204
  case "options":
1091
- return /* @__PURE__ */ r.createElement("svg", p({
1205
+ return /* @__PURE__ */ r.createElement("svg", h({
1092
1206
  viewBox: "0 0 16 2"
1093
1207
  }, d), /* @__PURE__ */ r.createElement("circle", {
1094
1208
  cx: "15",
@@ -1109,15 +1223,64 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1109
1223
  transform: "rotate(90 8 1)",
1110
1224
  fill: "black"
1111
1225
  }));
1226
+ case "browse":
1227
+ return /* @__PURE__ */ r.createElement("svg", h({
1228
+ viewBox: "0 0 24 24"
1229
+ }, d), /* @__PURE__ */ r.createElement("circle", {
1230
+ cx: "12",
1231
+ cy: "12",
1232
+ r: "12",
1233
+ fill: "currentColor"
1234
+ }), /* @__PURE__ */ r.createElement("path", {
1235
+ fillRule: "evenodd",
1236
+ clipRule: "evenodd",
1237
+ d: "M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",
1238
+ fill: "white"
1239
+ }), /* @__PURE__ */ r.createElement("path", {
1240
+ fillRule: "evenodd",
1241
+ clipRule: "evenodd",
1242
+ d: "M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",
1243
+ fill: "white"
1244
+ }), /* @__PURE__ */ r.createElement("path", {
1245
+ fillRule: "evenodd",
1246
+ clipRule: "evenodd",
1247
+ d: "M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",
1248
+ fill: "white"
1249
+ }), /* @__PURE__ */ r.createElement("path", {
1250
+ fillRule: "evenodd",
1251
+ clipRule: "evenodd",
1252
+ d: "M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",
1253
+ fill: "white"
1254
+ }));
1255
+ case "video":
1256
+ return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ r.createElement("svg", $(h({
1257
+ viewBox: "0 0 25 25"
1258
+ }, d), {
1259
+ style: f
1260
+ }), /* @__PURE__ */ r.createElement("path", {
1261
+ d: "M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",
1262
+ stroke: "currentColor",
1263
+ strokeWidth: "1.5",
1264
+ strokeLinecap: "round",
1265
+ strokeLinejoin: "round"
1266
+ }), /* @__PURE__ */ r.createElement("path", {
1267
+ fillRule: "evenodd",
1268
+ clipRule: "evenodd",
1269
+ d: "M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",
1270
+ stroke: "currentColor",
1271
+ strokeWidth: "1.5",
1272
+ strokeLinecap: "round",
1273
+ strokeLinejoin: "round"
1274
+ }));
1112
1275
  case "star-empty":
1113
- return /* @__PURE__ */ r.createElement("svg", p({
1276
+ return /* @__PURE__ */ r.createElement("svg", h({
1114
1277
  viewBox: "0 0 13 12"
1115
1278
  }, d), /* @__PURE__ */ r.createElement("path", {
1116
1279
  d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
1117
1280
  stroke: "black"
1118
1281
  }));
1119
1282
  case "star-filled":
1120
- return /* @__PURE__ */ r.createElement("svg", p({
1283
+ return /* @__PURE__ */ r.createElement("svg", h({
1121
1284
  viewBox: "0 0 13 12"
1122
1285
  }, d), /* @__PURE__ */ r.createElement("path", {
1123
1286
  d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
@@ -1125,7 +1288,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1125
1288
  stroke: "black"
1126
1289
  }));
1127
1290
  case "cog-wheel":
1128
- return /* @__PURE__ */ r.createElement("svg", p({
1291
+ return /* @__PURE__ */ r.createElement("svg", h({
1129
1292
  viewBox: "0 0 24 24"
1130
1293
  }, d), /* @__PURE__ */ r.createElement("path", {
1131
1294
  fillRule: "evenodd",
@@ -1133,25 +1296,92 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1133
1296
  d: "M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",
1134
1297
  fill: "black"
1135
1298
  }));
1299
+ case "zoom-in":
1300
+ return /* @__PURE__ */ r.createElement("svg", h({
1301
+ viewBox: "0 0 24 24"
1302
+ }, d), /* @__PURE__ */ r.createElement("path", {
1303
+ fillRule: "evenodd",
1304
+ clipRule: "evenodd",
1305
+ d: "M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",
1306
+ fill: "white"
1307
+ }), /* @__PURE__ */ r.createElement("path", {
1308
+ fillRule: "evenodd",
1309
+ clipRule: "evenodd",
1310
+ d: "M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",
1311
+ fill: "white"
1312
+ }), /* @__PURE__ */ r.createElement("path", {
1313
+ fillRule: "evenodd",
1314
+ clipRule: "evenodd",
1315
+ d: "M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",
1316
+ fill: "white"
1317
+ }));
1318
+ case "zoom-out":
1319
+ return /* @__PURE__ */ r.createElement("svg", h({
1320
+ viewBox: "0 0 24 24"
1321
+ }, d), /* @__PURE__ */ r.createElement("path", {
1322
+ fillRule: "evenodd",
1323
+ clipRule: "evenodd",
1324
+ d: "M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",
1325
+ fill: "white"
1326
+ }), /* @__PURE__ */ r.createElement("path", {
1327
+ fillRule: "evenodd",
1328
+ clipRule: "evenodd",
1329
+ d: "M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",
1330
+ fill: "white"
1331
+ }));
1332
+ case "download":
1333
+ return /* @__PURE__ */ r.createElement("svg", h({
1334
+ viewBox: "0 0 24 24"
1335
+ }, d), /* @__PURE__ */ r.createElement("path", {
1336
+ fillRule: "evenodd",
1337
+ clipRule: "evenodd",
1338
+ d: "M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",
1339
+ fill: "white"
1340
+ }));
1341
+ case "lightbox-close":
1342
+ return /* @__PURE__ */ r.createElement("svg", h({
1343
+ viewBox: "0 0 24 24"
1344
+ }, d), /* @__PURE__ */ r.createElement("path", {
1345
+ xmlns: "http://www.w3.org/2000/svg",
1346
+ fillRule: "evenodd",
1347
+ clipRule: "evenodd",
1348
+ d: "M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",
1349
+ fill: "white"
1350
+ }));
1351
+ case "pagination-left":
1352
+ return /* @__PURE__ */ r.createElement("svg", h({
1353
+ viewBox: "0 0 24 24"
1354
+ }, d), /* @__PURE__ */ r.createElement("path", {
1355
+ fillRule: "evenodd",
1356
+ clipRule: "evenodd",
1357
+ d: "M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",
1358
+ fill: "#222222"
1359
+ }));
1360
+ case "pagination-right":
1361
+ return /* @__PURE__ */ r.createElement("svg", h({
1362
+ viewBox: "0 0 24 24"
1363
+ }, d), /* @__PURE__ */ r.createElement("path", {
1364
+ d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
1365
+ }));
1136
1366
  }
1137
1367
  return null;
1138
1368
  }
1139
1369
  case "FontAwesome":
1140
- return /* @__PURE__ */ r.createElement(Tt, p({
1141
- className: i,
1142
- faIcon: u,
1370
+ return /* @__PURE__ */ r.createElement(ln, h({
1371
+ className: s,
1372
+ faIcon: m,
1143
1373
  title: e
1144
1374
  }, a));
1145
1375
  default:
1146
1376
  case "Text":
1147
- return e ? /* @__PURE__ */ r.createElement("i", p(p({
1148
- className: w(i, "humany-letter-symbol"),
1377
+ return e ? /* @__PURE__ */ r.createElement("i", h(h({
1378
+ className: M(s, "humany-letter-symbol"),
1149
1379
  title: e
1150
- }, f), a), e.substring(0, 2)) : null;
1380
+ }, p), a), e.substring(0, 2)) : null;
1151
1381
  }
1152
- }, yt = v.svg`
1382
+ }, Xt = C.svg`
1153
1383
  transform: rotate(180deg);
1154
- `, bt = {
1384
+ `, _t = {
1155
1385
  h1: "h1",
1156
1386
  h2: "h2",
1157
1387
  h3: "h3",
@@ -1160,78 +1390,86 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
1160
1390
  h6: "h6",
1161
1391
  p: "p",
1162
1392
  span: "span"
1163
- }, _ = ({ variant: e, component: t, className: n, children: s }) => {
1164
- const { typographyVariantMapping: o = {} } = dt(), i = p(p({}, bt), o), a = t || i[e] || "span";
1165
- return /* @__PURE__ */ r.createElement(Ct, {
1393
+ }, U = ({ variant: e, component: t, className: n, children: o }) => {
1394
+ const { typographyVariantMapping: i = {} } = Ft(), s = h(h({}, _t), i), a = t || s[e] || "span";
1395
+ return /* @__PURE__ */ r.createElement(Ut, {
1166
1396
  className: n,
1167
1397
  as: a
1168
- }, s);
1169
- }, Ct = v.span``;
1170
- 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 || {});
1171
- const Et = 300, Bn = ({
1398
+ }, o);
1399
+ }, Ut = C.span``;
1400
+ var qt = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(qt || {});
1401
+ const Qt = 300, D1 = ({
1172
1402
  className: e,
1173
1403
  children: t,
1174
1404
  header: n,
1175
- onToggle: s,
1176
- trigger: o,
1177
- fullScreen: i = !1,
1405
+ onToggle: o,
1406
+ trigger: i,
1407
+ fullScreen: s = !1,
1178
1408
  closeButtonAriaLabel: a,
1179
- animation: m = {
1409
+ animation: l = {
1180
1410
  type: "slide-in-bottom"
1181
1411
  }
1182
1412
  }) => {
1183
- const { duration: l = Et } = m, c = S(), u = S(), [f, d] = Me(!0), [h, g] = le(), E = ke(h), x = S(F());
1184
- C(() => {
1185
- s && s(h);
1186
- }, [h]);
1187
- const y = q("Escape");
1188
- C(() => {
1189
- y && g(!1);
1190
- }, [y]), z("click", (K) => {
1191
- const { target: N } = K;
1192
- !u.current || !d.current || !N || u.current !== N && d.current !== N && !d.current.contains(N) && !u.current.contains(N) && g(!1);
1193
- }, window);
1194
- const b = ue(x.current, () => {
1413
+ const { duration: u = Qt } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, g] = Ye(), E = Ae(f), v = R(q());
1414
+ w(() => {
1415
+ o && o(f);
1416
+ }, [f]);
1417
+ const b = j("Escape");
1418
+ w(() => {
1419
+ b && g(!1);
1420
+ }, [b]), I(
1421
+ "click",
1422
+ (T) => {
1423
+ const { target: z } = T;
1424
+ !m.current || !d.current || !z || m.current !== z && d.current !== z && !d.current.contains(z) && !m.current.contains(z) && g(!1);
1425
+ },
1426
+ window
1427
+ );
1428
+ const y = ve(v.current, () => {
1195
1429
  g(!1);
1196
1430
  });
1197
- Q("router:changed", () => {
1431
+ ce("router:changed", () => {
1198
1432
  g(!1);
1199
- }), C(() => {
1200
- h && c.current ? c.current.focus() : !h && u.current && E && u.current.focus();
1201
- }, [h, c.current, u.current]);
1202
- const V = Mt[m.type];
1203
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(ve, {
1204
- in: h,
1433
+ }), w(() => {
1434
+ f && c.current ? c.current.focus() : !f && m.current && E && m.current.focus();
1435
+ }, [f, c.current, m.current]);
1436
+ const B = rn[l.type];
1437
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ie, {
1438
+ in: f,
1205
1439
  className: "humany-drawer-transition",
1206
1440
  classNames: "humany-drawer-transition",
1207
1441
  unmountOnExit: !0,
1208
- timeout: l
1209
- }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(V, {
1210
- duration: l,
1211
- fullScreen: i,
1212
- className: w(e, "humany-drawer", `humany-drawer-${x.current}`),
1442
+ timeout: u
1443
+ }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(B, {
1444
+ duration: u,
1445
+ fullScreen: s,
1446
+ className: M(
1447
+ e,
1448
+ "humany-drawer",
1449
+ `humany-drawer-${v.current}`
1450
+ ),
1213
1451
  clientHeight: document.body.clientHeight,
1214
- css: f,
1452
+ css: p,
1215
1453
  ref: d
1216
- }, /* @__PURE__ */ r.createElement(de, {
1454
+ }, /* @__PURE__ */ r.createElement(Ee, {
1217
1455
  onClick: () => g(!1),
1218
1456
  tabIndex: 0,
1219
1457
  ref: c,
1220
1458
  "aria-label": a
1221
- }, /* @__PURE__ */ r.createElement(A, {
1459
+ }, /* @__PURE__ */ r.createElement(J, {
1222
1460
  symbol: { type: "Svg", content: "close" }
1223
- })), !!n && /* @__PURE__ */ r.createElement(vt, {
1461
+ })), !!n && /* @__PURE__ */ r.createElement(Gt, {
1224
1462
  variant: "h1",
1225
1463
  className: "humany-drawer-header"
1226
- }, n), t))), r.cloneElement(o, {
1227
- onClick: (K) => {
1228
- g(), b();
1464
+ }, n), t))), r.cloneElement(i, {
1465
+ onClick: (T) => {
1466
+ g(), y();
1229
1467
  },
1230
- ref: u,
1231
- "aria-label": o.props.title,
1232
- "aria-expanded": h
1468
+ ref: m,
1469
+ "aria-label": i.props.title,
1470
+ "aria-expanded": f
1233
1471
  }));
1234
- }, J = v.div`
1472
+ }, le = C.div`
1235
1473
  font-family: ${(e) => {
1236
1474
  var t;
1237
1475
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1248,7 +1486,7 @@ const Et = 300, Bn = ({
1248
1486
  box-shadow: ${(e) => e.theme.boxShadow};
1249
1487
  background: #ffffff;
1250
1488
  ${(e) => e.css && e.css}
1251
- `, vt = v(_)`
1489
+ `, Gt = C(U)`
1252
1490
  padding: ${(e) => e.theme.sizes.normal};
1253
1491
  margin: 0;
1254
1492
  text-align: center;
@@ -1268,11 +1506,11 @@ const Et = 300, Bn = ({
1268
1506
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
1269
1507
  }};
1270
1508
  line-height: 1.2em;
1271
- `, ee = M`
1509
+ `, ue = L`
1272
1510
  transition: ${(e) => e.duration}ms;
1273
- `, wt = v(J)`
1511
+ `, Jt = C(le)`
1274
1512
  max-height: 0;
1275
- ${ee}
1513
+ ${ue}
1276
1514
 
1277
1515
  &.humany-drawer-transition-enter {
1278
1516
  max-height: 0;
@@ -1287,8 +1525,8 @@ const Et = 300, Bn = ({
1287
1525
  &.humany-drawer-transition-exit-done {
1288
1526
  max-height: 0;
1289
1527
  }
1290
- `, $t = v(J)`
1291
- ${ee}
1528
+ `, en = C(le)`
1529
+ ${ue}
1292
1530
  transform: translateX(100%);
1293
1531
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1294
1532
 
@@ -1305,8 +1543,8 @@ const Et = 300, Bn = ({
1305
1543
  &.humany-drawer-transition-exit-done {
1306
1544
  transform: translateX(100%);
1307
1545
  }
1308
- `, kt = v(J)`
1309
- ${ee}
1546
+ `, tn = C(le)`
1547
+ ${ue}
1310
1548
  transform: translateX(-100%);
1311
1549
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1312
1550
 
@@ -1323,8 +1561,8 @@ const Et = 300, Bn = ({
1323
1561
  &.humany-drawer-transition-exit-done {
1324
1562
  transform: translateX(-100%);
1325
1563
  }
1326
- `, Lt = v(J)`
1327
- ${ee}
1564
+ `, nn = C(le)`
1565
+ ${ue}
1328
1566
  bottom: unset;
1329
1567
  top: 0;
1330
1568
  height: 0;
@@ -1342,68 +1580,84 @@ const Et = 300, Bn = ({
1342
1580
  &.humany-drawer-transition-exit-done {
1343
1581
  height: 0;
1344
1582
  }
1345
- `, Mt = {
1346
- ["slide-in-bottom"]: wt,
1347
- ["slide-in-right"]: $t,
1348
- ["slide-in-left"]: kt,
1349
- ["slide-in-top"]: Lt
1350
- }, He = (e, t, n) => {
1351
- const [s, o] = L(0), [i, a] = L(0), m = H((l, c) => {
1352
- if (l.preventDefault(), c) {
1353
- const u = c.getBoundingClientRect();
1354
- o(Math.max(document.body.clientWidth - u.right, 1)), a(u.bottom + window.scrollY);
1355
- }
1356
- }, [s, i, o, a]);
1357
- return C(() => {
1583
+ `, rn = {
1584
+ ["slide-in-bottom"]: Jt,
1585
+ ["slide-in-right"]: en,
1586
+ ["slide-in-left"]: tn,
1587
+ ["slide-in-top"]: nn
1588
+ }, Xe = (e, t, n) => {
1589
+ const [o, i] = k(0), [s, a] = k(0), l = H(
1590
+ (u, c) => {
1591
+ if (u.preventDefault(), c) {
1592
+ const m = c.getBoundingClientRect();
1593
+ i(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
1594
+ }
1595
+ },
1596
+ [o, s, i, a]
1597
+ );
1598
+ return w(() => {
1358
1599
  if (!n || !e)
1359
1600
  return;
1360
- const l = n.getBoundingClientRect(), c = {
1361
- x: s,
1362
- y: i
1601
+ const u = n.getBoundingClientRect(), c = {
1602
+ x: o,
1603
+ y: s
1363
1604
  };
1364
- l.left < 0 && (c.x = 0), l.bottom > window.innerHeight && (c.y = 0), c.x !== s && o(c.x), c.y !== i && a(c.y);
1365
- }, [n, e, t]), [{ x: s, y: i }, m];
1366
- }, Vn = r.forwardRef((a, i) => {
1367
- var m = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: s } = m, o = $(m, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1368
- const l = S(), c = S(), u = S();
1369
- ie(i, () => u.current, [u.current]);
1370
- const f = S(F()), [d, h] = L(!1), g = ke(d), [{ x: E, y: x }, y] = He(d, f.current, u.current), b = q("Escape");
1371
- C(() => {
1372
- b && h(!1);
1373
- }, [b]), C(() => {
1374
- d && l.current ? l.current.focus() : !d && c.current && g && c.current.focus();
1375
- }, [d, l.current, c.current]), z("click", (N) => {
1376
- const { target: te } = N;
1377
- !u.current || !te || u.current !== te && !u.current.contains(te) && h(!1);
1378
- }, window), Q("router:changed", () => {
1379
- h(!1);
1380
- });
1381
- const V = ue(f.current, () => {
1382
- h(!1);
1383
- }), K = H((N) => {
1384
- N.stopPropagation(), y(N, c.current), h(!d), V();
1385
- }, [V, y, h]);
1386
- return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(St, k(p({
1387
- className: w("humany-dropdown", `humany-dropdown-${f.current}`, e)
1388
- }, o), {
1389
- x: E,
1390
- y: x,
1391
- ref: u
1392
- }), /* @__PURE__ */ r.createElement(de, {
1393
- onClick: () => h(!1),
1394
- tabIndex: 0,
1395
- ref: l,
1396
- "aria-label": s
1397
- }, /* @__PURE__ */ r.createElement(A, {
1398
- symbol: { type: "Svg", content: "close" }
1399
- })), t)), r.cloneElement(n, {
1400
- onClick: K,
1401
- ref: c,
1402
- "aria-label": n.props.title,
1403
- "aria-expanded": d
1404
- }));
1405
- }), St = v.div`
1406
- ${Se}
1605
+ u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && i(c.x), c.y !== s && a(c.y);
1606
+ }, [n, e, t]), [{ x: o, y: s }, l];
1607
+ }, B1 = r.forwardRef(
1608
+ (a, s) => {
1609
+ var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, i = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1610
+ const u = R(), c = R(), m = R();
1611
+ Ce(s, () => m.current, [m.current]);
1612
+ const p = R(q()), [d, f] = k(!1), g = Ae(d), [{ x: E, y: v }, b] = Xe(d, p.current, m.current), y = j("Escape");
1613
+ w(() => {
1614
+ y && f(!1);
1615
+ }, [y]), w(() => {
1616
+ d && u.current ? u.current.focus() : !d && c.current && g && c.current.focus();
1617
+ }, [d, u.current, c.current]), I(
1618
+ "click",
1619
+ (z) => {
1620
+ const { target: Y } = z;
1621
+ !m.current || !Y || m.current !== Y && !m.current.contains(Y) && f(!1);
1622
+ },
1623
+ window
1624
+ ), ce("router:changed", () => {
1625
+ f(!1);
1626
+ });
1627
+ const B = ve(p.current, () => {
1628
+ f(!1);
1629
+ }), T = H(
1630
+ (z) => {
1631
+ z.stopPropagation(), b(z, c.current), f(!d), B();
1632
+ },
1633
+ [B, b, f]
1634
+ );
1635
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(on, $(h({
1636
+ className: M(
1637
+ "humany-dropdown",
1638
+ `humany-dropdown-${p.current}`,
1639
+ e
1640
+ )
1641
+ }, i), {
1642
+ x: E,
1643
+ y: v,
1644
+ ref: m
1645
+ }), /* @__PURE__ */ r.createElement(Ee, {
1646
+ onClick: () => f(!1),
1647
+ tabIndex: 0,
1648
+ ref: u,
1649
+ "aria-label": o
1650
+ }, /* @__PURE__ */ r.createElement(J, {
1651
+ symbol: { type: "Svg", content: "close" }
1652
+ })), t)), r.cloneElement(n, {
1653
+ onClick: T,
1654
+ ref: c,
1655
+ "aria-label": n.props.title,
1656
+ "aria-expanded": d
1657
+ }));
1658
+ }
1659
+ ), on = C.div`
1660
+ ${je}
1407
1661
  padding: ${(e) => {
1408
1662
  var t;
1409
1663
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -1413,230 +1667,372 @@ const Et = 300, Bn = ({
1413
1667
  box-shadow: ${(e) => e.theme.boxShadow};
1414
1668
 
1415
1669
  ${(e) => {
1416
- var n, s, o;
1670
+ var n, o, i;
1417
1671
  let t = "";
1418
- return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((s = e.theme.sizes) == null ? void 0 : s.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, t;
1672
+ return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((i = e.theme.sizes) == null ? void 0 : i.normal) || "0px"};`, t;
1419
1673
  }};
1420
- `, Ht = (t) => {
1421
- var e = $(t, []);
1422
- return /* @__PURE__ */ r.createElement(Rt, p({}, e));
1423
- }, Rt = v.div`
1674
+ `, sn = (t) => {
1675
+ var e = S(t, []);
1676
+ return /* @__PURE__ */ r.createElement(an, h({}, e));
1677
+ }, an = C.div`
1424
1678
  display: none;
1425
- `, Wn = D((a, i) => {
1426
- var m = a, { children: e, columns: t, gap: n, className: s } = m, o = $(m, ["children", "columns", "gap", "className"]);
1427
- return /* @__PURE__ */ r.createElement(Dt, k(p(p({
1428
- className: w(s, "humany-grid"),
1429
- "data-columns": t,
1430
- "data-gap": n
1431
- }, we(o)), R(o)), {
1432
- ref: i
1433
- }), e);
1434
- }), Dt = v.div`
1679
+ `, T1 = N(
1680
+ (a, s) => {
1681
+ var l = a, { children: e, columns: t, gap: n, className: o } = l, i = S(l, ["children", "columns", "gap", "className"]);
1682
+ return /* @__PURE__ */ r.createElement(cn, $(h(h({
1683
+ className: M(o, "humany-grid"),
1684
+ "data-columns": t,
1685
+ "data-gap": n
1686
+ }, Oe(i)), V(i)), {
1687
+ ref: s
1688
+ }), e);
1689
+ }
1690
+ ), cn = C.div`
1435
1691
  display: grid;
1436
1692
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1437
1693
  grid-gap: ${(e) => e["data-gap"]};
1438
1694
  justify-content: center;
1439
1695
  grid-auto-rows: max-content;
1440
- ${tt}
1441
- `, Re = D((i, o) => {
1442
- var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, s = $(a, ["htmlParseInstruction", "className", "html"]);
1443
- const m = T(), [l, c] = L();
1444
- return C(() => {
1445
- const u = e || st(m), f = rt(n, u);
1446
- c(f);
1447
- }, [n, e]), /* @__PURE__ */ r.createElement("div", k(p({
1448
- className: w(t, "humany-html")
1449
- }, R(s)), {
1450
- ref: o
1451
- }), l);
1452
- }), Tt = (i) => {
1453
- var a = i, {
1696
+ ${Ht}
1697
+ `, _e = N(
1698
+ (s, i) => {
1699
+ var a = s, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1700
+ const l = Z(), [u, c] = k();
1701
+ return w(() => {
1702
+ const m = Tt(l, n), p = $(h(h({}, m), e), {
1703
+ transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
1704
+ }), d = Dt(n, p);
1705
+ c(d);
1706
+ }, [n, e]), /* @__PURE__ */ r.createElement("div", $(h({
1707
+ className: M(t, "humany-html")
1708
+ }, V(o)), {
1709
+ ref: i
1710
+ }), u);
1711
+ }
1712
+ ), ln = (s) => {
1713
+ var a = s, {
1454
1714
  faIcon: e,
1455
1715
  title: t,
1456
1716
  className: n = "",
1457
- role: s = "presentation"
1458
- } = a, o = $(a, [
1717
+ role: o = "presentation"
1718
+ } = a, i = S(a, [
1459
1719
  "faIcon",
1460
1720
  "title",
1461
1721
  "className",
1462
1722
  "role"
1463
1723
  ]);
1464
- return /* @__PURE__ */ r.createElement("i", p({
1465
- className: w(n, `fa fa-${e}`),
1724
+ return /* @__PURE__ */ r.createElement("i", h({
1725
+ className: M(n, `fa fa-${e}`),
1466
1726
  title: t,
1467
- role: s
1468
- }, R(o)));
1469
- }, On = D((f, u) => {
1470
- var d = f, {
1471
- className: e = "",
1472
- autoFocus: t = !1,
1473
- onFocusChange: n = () => {
1474
- },
1475
- onEnter: s = () => {
1476
- },
1477
- onEscape: o = () => {
1478
- },
1479
- selectAllOnFocus: i,
1480
- onChange: a = () => {
1481
- },
1482
- disabled: m = !1,
1483
- type: l
1484
- } = d, c = $(d, [
1485
- "className",
1486
- "autoFocus",
1487
- "onFocusChange",
1488
- "onEnter",
1489
- "onEscape",
1490
- "selectAllOnFocus",
1491
- "onChange",
1492
- "disabled",
1493
- "type"
1494
- ]);
1495
- const [h, g] = L(t), E = S();
1496
- ie(u, () => E.current), C(() => {
1497
- var b;
1498
- t && ((b = E == null ? void 0 : E.current) == null || b.focus());
1499
- }, [t, u, E]);
1500
- const x = (b, V) => {
1501
- g(b), n && n(b), i && b && V.target.select();
1502
- }, y = k(p({}, R(c)), {
1503
- disabled: m,
1504
- autoFocus: t,
1505
- type: l,
1506
- onKeyDown: (b) => {
1507
- b.key === "Enter" && h && s(b), b.key === "Escape" && h && o(b);
1508
- },
1509
- onFocus: (b) => x(!0, b),
1510
- onBlur: (b) => x(!1, b),
1511
- onChange: (b) => a(b.target.value || ""),
1512
- className: w(e, "humany-input"),
1513
- "data-type": l
1514
- });
1515
- return l !== "textarea" ? /* @__PURE__ */ r.createElement("input", k(p({}, y), {
1516
- ref: E
1517
- })) : /* @__PURE__ */ r.createElement("textarea", k(p({}, y), {
1518
- ref: E
1519
- }));
1520
- }), Nt = D((a, i) => {
1521
- var m = a, { className: e, items: t, renderItem: n, renderLi: s = !1 } = m, o = $(m, ["className", "items", "renderItem", "renderLi"]);
1522
- return /* @__PURE__ */ r.createElement("ul", k(p({
1523
- className: w(e, "humany-list"),
1524
- "data-item-count": t.length
1525
- }, R(o)), {
1526
- ref: i
1527
- }), t.map((l, c, u) => s ? /* @__PURE__ */ r.createElement("li", {
1528
- className: "humany-list-item",
1529
- key: l.id
1530
- }, n(l, c, u)) : n(l, c, u)));
1531
- }), zt = D((l, m) => {
1532
- var c = l, { text: e, html: t, header: n, className: s, htmlParseInstruction: o, symbol: i } = c, a = $(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1533
- return /* @__PURE__ */ r.createElement("div", k(p({
1534
- className: w(s, "humany-paragraph")
1535
- }, R(a)), {
1536
- ref: m
1537
- }), n ? /* @__PURE__ */ r.createElement(_, {
1538
- variant: "h1"
1539
- }, i ? /* @__PURE__ */ r.createElement(A, {
1540
- symbol: i
1541
- }) : null, n) : null, t ? /* @__PURE__ */ r.createElement(Re, {
1542
- html: t,
1543
- htmlParseInstruction: o
1544
- }) : null, e ? /* @__PURE__ */ r.createElement(me, null, e) : null);
1545
- }), Bt = D((h, d) => {
1546
- var g = h, {
1547
- header: e,
1548
- customHeader: t,
1549
- text: n,
1550
- html: s,
1551
- className: o,
1552
- children: i,
1553
- symbol: a,
1554
- items: m,
1555
- renderItem: l,
1556
- renderLi: c,
1557
- ulProps: u
1558
- } = g, f = $(g, [
1559
- "header",
1560
- "customHeader",
1561
- "text",
1562
- "html",
1563
- "className",
1564
- "children",
1565
- "symbol",
1566
- "items",
1567
- "renderItem",
1568
- "renderLi",
1569
- "ulProps"
1570
- ]);
1571
- return /* @__PURE__ */ r.createElement("div", k(p({
1572
- className: w(o, "humany-item-list"),
1573
- "data-item-count": m.length
1574
- }, R(f)), {
1575
- ref: d
1576
- }), t || (e || n || s ? /* @__PURE__ */ r.createElement(zt, {
1577
- symbol: a,
1578
- header: e,
1579
- text: n,
1580
- html: s
1581
- }) : null), m.length ? /* @__PURE__ */ r.createElement(Nt, p({
1582
- items: m,
1583
- renderItem: l,
1584
- renderLi: c
1585
- }, u)) : null, i);
1586
- }), In = ({
1727
+ role: o
1728
+ }, V(i)));
1729
+ }, N1 = N(
1730
+ (p, m) => {
1731
+ var d = p, {
1732
+ className: e = "",
1733
+ autoFocus: t = !1,
1734
+ onFocusChange: n = () => {
1735
+ },
1736
+ onEnter: o = () => {
1737
+ },
1738
+ onEscape: i = () => {
1739
+ },
1740
+ selectAllOnFocus: s,
1741
+ onChange: a = () => {
1742
+ },
1743
+ disabled: l = !1,
1744
+ type: u
1745
+ } = d, c = S(d, [
1746
+ "className",
1747
+ "autoFocus",
1748
+ "onFocusChange",
1749
+ "onEnter",
1750
+ "onEscape",
1751
+ "selectAllOnFocus",
1752
+ "onChange",
1753
+ "disabled",
1754
+ "type"
1755
+ ]);
1756
+ const [f, g] = k(t), E = R();
1757
+ Ce(m, () => E.current), w(() => {
1758
+ var y;
1759
+ t && ((y = E == null ? void 0 : E.current) == null || y.focus());
1760
+ }, [t, m, E]);
1761
+ const v = (y, B) => {
1762
+ g(y), n && n(y), s && y && B.target.select();
1763
+ }, b = $(h({}, V(c)), {
1764
+ disabled: l,
1765
+ autoFocus: t,
1766
+ type: u,
1767
+ onKeyDown: (y) => {
1768
+ y.key === "Enter" && f && o(y), y.key === "Escape" && f && i(y);
1769
+ },
1770
+ onFocus: (y) => v(!0, y),
1771
+ onBlur: (y) => v(!1, y),
1772
+ onChange: (y) => a(y.target.value || ""),
1773
+ className: M(e, "humany-input"),
1774
+ "data-type": u
1775
+ });
1776
+ return u !== "textarea" ? /* @__PURE__ */ r.createElement("input", $(h({}, b), {
1777
+ ref: E
1778
+ })) : /* @__PURE__ */ r.createElement("textarea", $(h({}, b), {
1779
+ ref: E
1780
+ }));
1781
+ }
1782
+ ), un = N(
1783
+ (a, s) => {
1784
+ var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, i = S(l, ["className", "items", "renderItem", "renderLi"]);
1785
+ return /* @__PURE__ */ r.createElement("ul", $(h({
1786
+ className: M(e, "humany-list"),
1787
+ "data-item-count": t.length
1788
+ }, V(i)), {
1789
+ ref: s
1790
+ }), t.map(
1791
+ (u, c, m) => o ? /* @__PURE__ */ r.createElement("li", {
1792
+ className: "humany-list-item",
1793
+ key: u.id || c
1794
+ }, n(u, c, m)) : n(u, c, m)
1795
+ ));
1796
+ }
1797
+ ), mn = N(
1798
+ (u, l) => {
1799
+ var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: i, symbol: s } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1800
+ return /* @__PURE__ */ r.createElement("div", $(h({
1801
+ className: M(o, "humany-paragraph")
1802
+ }, V(a)), {
1803
+ ref: l
1804
+ }), n ? /* @__PURE__ */ r.createElement(U, {
1805
+ variant: "h1"
1806
+ }, s ? /* @__PURE__ */ r.createElement(J, {
1807
+ symbol: s
1808
+ }) : null, n) : null, t ? /* @__PURE__ */ r.createElement(_e, {
1809
+ html: t,
1810
+ htmlParseInstruction: i
1811
+ }) : null, e ? /* @__PURE__ */ r.createElement(we, null, e) : null);
1812
+ }
1813
+ ), dn = N(
1814
+ (f, d) => {
1815
+ var g = f, {
1816
+ header: e,
1817
+ customHeader: t,
1818
+ text: n,
1819
+ html: o,
1820
+ className: i,
1821
+ children: s,
1822
+ symbol: a,
1823
+ items: l,
1824
+ renderItem: u,
1825
+ renderLi: c,
1826
+ ulProps: m
1827
+ } = g, p = S(g, [
1828
+ "header",
1829
+ "customHeader",
1830
+ "text",
1831
+ "html",
1832
+ "className",
1833
+ "children",
1834
+ "symbol",
1835
+ "items",
1836
+ "renderItem",
1837
+ "renderLi",
1838
+ "ulProps"
1839
+ ]);
1840
+ return /* @__PURE__ */ r.createElement("div", $(h({
1841
+ className: M(i, "humany-item-list"),
1842
+ "data-item-count": l.length
1843
+ }, V(p)), {
1844
+ ref: d
1845
+ }), t || (e || n || o ? /* @__PURE__ */ r.createElement(mn, {
1846
+ symbol: a,
1847
+ header: e,
1848
+ text: n,
1849
+ html: o
1850
+ }) : null), l.length ? /* @__PURE__ */ r.createElement(un, h({
1851
+ items: l,
1852
+ renderItem: u,
1853
+ renderLi: c
1854
+ }, m)) : null, s);
1855
+ }
1856
+ ), V1 = ({
1587
1857
  className: e = "",
1588
1858
  tree: t,
1589
1859
  renderItem: n,
1590
- rootItem: s,
1591
- renderUnselected: o = !0,
1592
- renderEmpty: i = !0,
1860
+ rootItem: o,
1861
+ renderUnselected: i = !0,
1862
+ renderEmpty: s = !0,
1593
1863
  ulProps: a,
1594
- liProps: m
1864
+ liProps: l
1595
1865
  }) => {
1596
- const l = (f) => !c(f), c = (f) => !f || f.length < 1 ? !0 : !f.some((d) => !!d.selected), u = (f, d) => /* @__PURE__ */ r.createElement(Bt, {
1597
- className: w(`humany-item-tree-level-${d}`),
1598
- items: f,
1866
+ const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(dn, {
1867
+ className: M(`humany-item-tree-level-${d}`),
1868
+ items: p,
1599
1869
  ulProps: a,
1600
- renderItem: (h) => {
1601
- const { id: g, selected: E, items: x, matches: y } = h, b = E && c(x);
1602
- return !i && !y ? null : /* @__PURE__ */ r.createElement("li", k(p({}, R(m)), {
1870
+ renderItem: (f) => {
1871
+ const { id: g, selected: E, items: v, matches: b } = f, y = E && c(v);
1872
+ return !s && !b ? null : /* @__PURE__ */ r.createElement("li", $(h({}, V(l)), {
1603
1873
  key: g,
1604
1874
  className: "humany-item-tree-item"
1605
- }), n && n(h, d, b), x && (o || b) && u(x, d + 1));
1875
+ }), n && n(f, d, y), v && (i || y) && m(v, d + 1));
1606
1876
  }
1607
1877
  });
1608
1878
  return /* @__PURE__ */ r.createElement("div", {
1609
- className: w(e, "humany-item-tree")
1610
- }, s && s(!l(t || [])), t && u(t, 1));
1611
- }, De = (i) => {
1612
- var a = i, {
1879
+ className: M(e, "humany-item-tree")
1880
+ }, o && o(!u(t || [])), t && m(t, 1));
1881
+ }, fn = N(
1882
+ (u, l) => {
1883
+ var c = u, { className: e, onClick: t = () => {
1884
+ }, name: n = "", to: o = "", params: i = {}, children: s } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1885
+ const m = Pe(), p = Z();
1886
+ if (!m)
1887
+ return null;
1888
+ let d = "";
1889
+ const f = $(h({
1890
+ onClick: t,
1891
+ className: M(e, "humany-route-link"),
1892
+ to: d,
1893
+ innerRef: l
1894
+ }, a), {
1895
+ ref: null
1896
+ });
1897
+ if (n) {
1898
+ if (!(m.routes || []).find((b) => b.name === n))
1899
+ return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
1900
+ onClick: (b) => {
1901
+ t(b), b.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1902
+ }
1903
+ }), s);
1904
+ const v = Object.keys(i).reduce((b, y) => (b[y] = typeof i[y] == "string" ? encodeURIComponent(i[y]) : i[y], b), {});
1905
+ try {
1906
+ d = m.generate(n, v || {});
1907
+ } catch (b) {
1908
+ return /* @__PURE__ */ r.createElement(fe, h({}, f), s);
1909
+ }
1910
+ d && m.settings.mode && m.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
1911
+ } else if (o && m.history)
1912
+ d = m.history.createHref({
1913
+ hash: "",
1914
+ pathname: o,
1915
+ search: "",
1916
+ state: void 0
1917
+ });
1918
+ else
1919
+ return process.env.NODE_ENV !== "production" && de.warn(
1920
+ 'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1921
+ ), null;
1922
+ if (m.settings && m.settings.mode === Te.scopedHash) {
1923
+ const g = p.get("$widget").name;
1924
+ d = xt(d, g);
1925
+ }
1926
+ return /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
1927
+ to: d
1928
+ }), s);
1929
+ }
1930
+ ), xe = N(
1931
+ (g, f) => {
1932
+ var E = g, {
1933
+ className: e,
1934
+ disabled: t = !1,
1935
+ role: n = "link",
1936
+ tabIndex: o = 0,
1937
+ onClick: i = () => {
1938
+ },
1939
+ onKeyDown: s = () => {
1940
+ },
1941
+ title: a,
1942
+ href: l,
1943
+ children: u,
1944
+ target: c,
1945
+ routeName: m,
1946
+ params: p
1947
+ } = E, d = S(E, [
1948
+ "className",
1949
+ "disabled",
1950
+ "role",
1951
+ "tabIndex",
1952
+ "onClick",
1953
+ "onKeyDown",
1954
+ "title",
1955
+ "href",
1956
+ "children",
1957
+ "target",
1958
+ "routeName",
1959
+ "params"
1960
+ ]);
1961
+ const v = {
1962
+ title: a,
1963
+ disabled: t,
1964
+ role: n,
1965
+ tabIndex: o,
1966
+ className: M(e, "humany-link", [!!t, "humany-disabled"]),
1967
+ onClick: (b) => {
1968
+ if (b.persist(), t) {
1969
+ b.preventDefault();
1970
+ return;
1971
+ }
1972
+ i(b);
1973
+ },
1974
+ onKeyDown: (b) => {
1975
+ if (b.persist(), t) {
1976
+ b.key !== "Tab" && b.preventDefault();
1977
+ return;
1978
+ }
1979
+ s(b);
1980
+ }
1981
+ };
1982
+ return m ? /* @__PURE__ */ r.createElement(hn, $(h(h({
1983
+ name: m,
1984
+ params: p
1985
+ }, v), V(d)), {
1986
+ ref: f
1987
+ }), u) : /* @__PURE__ */ r.createElement(pn, $(h(h({
1988
+ href: l,
1989
+ target: c
1990
+ }, v), V(d)), {
1991
+ ref: f
1992
+ }), u);
1993
+ }
1994
+ ), hn = C(fn)`
1995
+ ${(e) => e.disabled ? `
1996
+ pointer-events: none;
1997
+ opacity: .7;
1998
+ ` : "cursor: pointer;"}
1999
+ `, pn = C.a`
2000
+ ${(e) => e.disabled ? `
2001
+ pointer-events: none;
2002
+ opacity: .7;
2003
+ ` : "cursor: pointer;"}
2004
+ `, Ue = (s) => {
2005
+ var a = s, {
1613
2006
  visible: e,
1614
2007
  duration: t = 500,
1615
2008
  children: n,
1616
- onClick: s = () => {
2009
+ onClick: o = () => {
1617
2010
  }
1618
- } = a, o = $(a, [
2011
+ } = a, i = S(a, [
1619
2012
  "visible",
1620
2013
  "duration",
1621
2014
  "children",
1622
2015
  "onClick"
1623
2016
  ]);
1624
- const m = S(), l = H((c) => {
1625
- c.target === m.current && s(c);
1626
- }, [s]);
1627
- return /* @__PURE__ */ r.createElement(ve, {
2017
+ const l = R(), u = H(
2018
+ (c) => {
2019
+ c.target === l.current && o(c);
2020
+ },
2021
+ [o]
2022
+ );
2023
+ return /* @__PURE__ */ r.createElement(Ie, {
1628
2024
  in: e,
1629
2025
  className: "humany-overlay-transition",
1630
2026
  classNames: "humany-overlay-transition",
1631
2027
  unmountOnExit: !0,
1632
2028
  timeout: t
1633
- }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(Vt, p({
2029
+ }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(gn, h({
1634
2030
  className: "humany-overlay",
1635
2031
  duration: t,
1636
- ref: m,
1637
- onClick: l
1638
- }, o), n)));
1639
- }, Vt = v.div`
2032
+ ref: l,
2033
+ onClick: u
2034
+ }, i), n)));
2035
+ }, gn = C.div`
1640
2036
  background: rgba(0, 0, 0, 0.6);
1641
2037
  min-width: 100%;
1642
2038
  min-height: 100%;
@@ -1666,215 +2062,576 @@ const Et = 300, Bn = ({
1666
2062
  &.humany-overlay-transition-exit-done {
1667
2063
  opacity: 0;
1668
2064
  }
1669
- `, Wt = ({ attrs: e }) => {
1670
- const [t, n] = le(!1), s = q("Escape");
1671
- C(() => {
1672
- s && n(!1);
1673
- }, [s]);
1674
- const o = H((i) => {
1675
- n(!1);
1676
- }, [n]);
1677
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(De, {
1678
- visible: t,
1679
- onClick: o
1680
- }, /* @__PURE__ */ r.createElement(It, {
1681
- onClick: () => n(!1)
1682
- }, /* @__PURE__ */ r.createElement(Pt, {
1683
- size: 24,
1684
- symbol: { type: "Svg", content: "close" }
1685
- })), /* @__PURE__ */ r.createElement(Ot, null, /* @__PURE__ */ r.createElement("img", p({}, e)))), /* @__PURE__ */ r.createElement("a", {
1686
- onClick: () => n()
1687
- }, /* @__PURE__ */ r.createElement(Ft, p({}, e))));
1688
- }, Ot = v.div`
1689
- padding: ${(e) => {
2065
+ `, Cn = We`
2066
+ 100% {
2067
+ transform: rotate(360deg);
2068
+ }
2069
+ `, yn = We`
2070
+ 0% {
2071
+ stroke-dasharray: 1, 200;
2072
+ stroke-dashoffset: 0;
2073
+ }
2074
+ 50% {
2075
+ stroke-dasharray: 89, 200;
2076
+ stroke-dashoffset: -35px;
2077
+ }
2078
+ 100% {
2079
+ stroke-dasharray: 89, 200;
2080
+ stroke-dashoffset: -124px;
2081
+ }
2082
+ `, qe = C.svg`
2083
+ animation: ${Cn} 2s linear infinite;
2084
+ height: 100%;
2085
+ transform-origin: center center;
2086
+ width: 100%;
2087
+ position: absolute;
2088
+ top: 0;
2089
+ bottom: 0;
2090
+ left: 0;
2091
+ right: 0;
2092
+ margin: auto;
2093
+ transition: 200ms ease-out opacity;
2094
+ `, bn = C.div`
2095
+ position: absolute;
2096
+ top: 0;
2097
+ bottom: 0;
2098
+ left: 0;
2099
+ right: 0;
2100
+ height: 100%;
2101
+ width: 100%;
2102
+ pointer-events: ${(e) => e["data-loading"] ? "all" : "none"}
2103
+ display: flex;
2104
+ flex-direction: column;
2105
+ justify-content: center;
2106
+ transition: 200ms ease-out opacity;
2107
+ box-sizing: border-box;
2108
+ overflow: hidden;
2109
+ ${qe} {
2110
+ opacity: ${(e) => e["data-loading"] ? "1" : "0"}
2111
+ }
2112
+ `, vn = C.div`
2113
+ position: relative;
2114
+ margin: 0 auto;
2115
+ width: 100px;
2116
+ &:before {
2117
+ content: '';
2118
+ display: block;
2119
+ padding-top: 100%;
2120
+ }
2121
+ `, wn = C.circle`
2122
+ stroke-dasharray: 1, 200;
2123
+ stroke-dashoffset: 0;
2124
+ animation: ${yn} 1.5s ease-in-out infinite;
2125
+ stroke-linecap: round;
2126
+ stroke: ${(e) => {
1690
2127
  var t;
1691
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
2128
+ return (t = e.theme.colors) == null ? void 0 : t.primary;
1692
2129
  }};
1693
- max-width: 80%;
1694
- max-height: 80%;
1695
-
1696
- img {
1697
- width: auto !important;
1698
- height: auto !important;
1699
- max-width: 100%;
1700
- max-height: 100%;
2130
+ stroke-width: 2px;
2131
+ `, En = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(bn, {
2132
+ className: M("humany-loader", e),
2133
+ "data-loading": t
2134
+ }, /* @__PURE__ */ r.createElement(vn, {
2135
+ className: "humany-spinner"
2136
+ }, /* @__PURE__ */ r.createElement(qe, {
2137
+ viewBox: "25 25 50 50"
2138
+ }, /* @__PURE__ */ r.createElement(wn, {
2139
+ cx: "50",
2140
+ cy: "50",
2141
+ r: "20",
2142
+ fill: "none",
2143
+ "stroke-width": "2",
2144
+ "stroke-miterlimit": "10"
2145
+ })))), xn = (i) => {
2146
+ var s = i, {
2147
+ zoomState: e,
2148
+ image: t,
2149
+ changeZoom: n
2150
+ } = s, o = S(s, [
2151
+ "zoomState",
2152
+ "image",
2153
+ "changeZoom"
2154
+ ]);
2155
+ var b;
2156
+ const a = R(null), [l, u] = k(!1), [c, m] = k(!1), v = o.style || {}, { width: p, height: d } = v, f = S(v, ["width", "height"]), g = H(() => {
2157
+ const y = a.current;
2158
+ if (y) {
2159
+ const B = window.innerWidth / y.width, T = window.innerHeight / y.height, z = Math.min(B, T);
2160
+ return T >= 1 && B >= 1 ? 1 : z;
1701
2161
  }
1702
- `, It = v(U)`
1703
- position: fixed;
1704
- top: 50px;
1705
- right: 50px;
1706
- transition: opacity 300ms ease-in-out;
1707
- opacity: 0.7;
1708
-
1709
- &:hover {
1710
- opacity: 1;
2162
+ return 1;
2163
+ }, [l, t.src]), E = ie(() => {
2164
+ const y = a.current;
2165
+ if (y) {
2166
+ if (!c) {
2167
+ m(!0);
2168
+ const B = g();
2169
+ n(B);
2170
+ }
2171
+ return y.width >= y.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
1711
2172
  }
1712
- `, Pt = v(A)`
1713
- path {
2173
+ return null;
2174
+ }, [e, a, l, t.src]);
2175
+ return w(() => (u(!1), function() {
2176
+ m(!1);
2177
+ }), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(kn, {
2178
+ loading: !l
2179
+ }), /* @__PURE__ */ r.createElement($n, $(h({
2180
+ onLoad: () => {
2181
+ u(!0);
2182
+ },
2183
+ ref: a,
2184
+ imageSize: E,
2185
+ draggable: "false"
2186
+ }, o), {
2187
+ alt: ((b = o.alt) == null ? void 0 : b.toString()) || "",
2188
+ style: f,
2189
+ src: t.src,
2190
+ loaded: l
2191
+ })), /* @__PURE__ */ r.createElement(Ln, null));
2192
+ }, kn = C(En)`
2193
+ svg circle {
1714
2194
  stroke: #ffffff;
1715
2195
  }
1716
- `, Ft = v.img`
1717
- cursor: pointer;
1718
- `, Zt = D((l, m) => {
1719
- var c = l, { className: e, onClick: t = () => {
1720
- }, name: n = "", to: s = "", params: o = {}, children: i } = c, a = $(c, ["className", "onClick", "name", "to", "params", "children"]);
1721
- const u = Le(), f = T();
1722
- if (!u)
1723
- return null;
1724
- let d = "";
1725
- const h = k(p({
1726
- onClick: t,
1727
- className: w(e, "humany-route-link"),
1728
- to: d,
1729
- innerRef: m
1730
- }, a), {
1731
- ref: null
1732
- });
1733
- if (n) {
1734
- if (!(u.routes || []).find((y) => y.name === n))
1735
- return process.env.NODE_ENV !== "production" && ne.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(re, k(p({}, h), {
1736
- onClick: (y) => {
1737
- t(y), y.preventDefault(), process.env.NODE_ENV !== "production" && ne.warn(`Unable to navigate. No route named "${n}" exist.`);
1738
- }
1739
- }), i);
1740
- const x = Object.keys(o).reduce((y, b) => (y[b] = typeof o[b] == "string" ? encodeURIComponent(o[b]) : o[b], y), {});
1741
- try {
1742
- d = u.generate(n, x || {});
1743
- } catch (y) {
1744
- return /* @__PURE__ */ r.createElement(re, p({}, h), i);
1745
- }
1746
- d && u.settings.mode && u.settings.mode === be.browser && d[0] !== "/" && (d = `/${d}`);
1747
- } else if (s && u.history)
1748
- d = u.history.createHref({
1749
- hash: "",
1750
- pathname: s,
1751
- search: "",
1752
- state: void 0
1753
- });
1754
- else
1755
- return process.env.NODE_ENV !== "production" && ne.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'), null;
1756
- if (u.settings && u.settings.mode === be.scopedHash) {
1757
- const g = f.get("$widget").name;
1758
- d = _e(d, g);
1759
- }
1760
- return /* @__PURE__ */ r.createElement(re, k(p({}, h), {
1761
- to: d
1762
- }), i);
1763
- }), Te = D((g, h) => {
1764
- var E = g, {
1765
- className: e,
1766
- disabled: t = !1,
1767
- role: n = "link",
1768
- tabIndex: s = 0,
1769
- onClick: o = () => {
2196
+ `, $n = C.img`
2197
+ transform: none;
2198
+
2199
+ ${(e) => e.imageSize && L`
2200
+ width: ${e.imageSize[0]};
2201
+ height: ${e.imageSize[1]};
2202
+ display: inline-block;
2203
+ `}
2204
+ vertical-align: middle;
2205
+ position: relative;
2206
+ ${(e) => !e.loaded && "display:none;"}
2207
+ `, Ln = C.div`
2208
+ height: 100%;
2209
+ display: inline-block;
2210
+ vertical-align: middle;
2211
+ `, Mn = () => {
2212
+ const e = R(), [t, n] = k(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2213
+ n(!1);
2214
+ }, 3e3), () => {
2215
+ e.current && clearTimeout(e.current);
2216
+ }), [t, e]);
2217
+ return [t, o];
2218
+ }, Sn = ({ attrs: e, htmlBody: t }) => {
2219
+ var Se;
2220
+ const n = j("Escape"), o = j("ArrowLeft"), i = j("ArrowRight"), [s, a] = k(1), [l, u] = k({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = k(!1), [p, d] = Mn(), [f, g] = k(null), [E, v] = k(null), b = R(null), y = R(null), B = R(null), T = R(null);
2221
+ w(() => {
2222
+ n && g(null);
2223
+ }, [n]), w(() => {
2224
+ a(1);
2225
+ }, [f]), w(() => {
2226
+ var F, A;
2227
+ if (f === null || y.current === null)
2228
+ return;
2229
+ const x = y.current.firstElementChild, D = (F = B.current) == null ? void 0 : F.querySelector(".nav-left"), W = (A = B.current) == null ? void 0 : A.querySelector(".nav-right");
2230
+ if (E === "Right")
2231
+ te && W ? W.focus() : ee && D && D.focus();
2232
+ else if (E === "Left")
2233
+ ee && D ? D.focus() : te && W && W.focus();
2234
+ else {
2235
+ if (!x)
2236
+ return;
2237
+ x.focus();
2238
+ }
2239
+ }, [f, y, B, E]), w(() => {
2240
+ if (o) {
2241
+ if (ee)
2242
+ return Le();
2243
+ } else if (i && te)
2244
+ return Me();
2245
+ }, [o, i]);
2246
+ const z = ie(() => {
2247
+ const x = document.createElement("div");
2248
+ x.innerHTML = t || "";
2249
+ const D = x.getElementsByTagName("img");
2250
+ return Array.from(D).reduce((F, A) => {
2251
+ const Re = A.getAttribute("src"), it = A.height || Number.parseInt(A.style.height, 10), st = A.width || Number.parseInt(A.style.width, 10);
2252
+ if (Re) {
2253
+ const at = {
2254
+ src: Re,
2255
+ originalWidth: st,
2256
+ originalHeight: it
2257
+ };
2258
+ F.push(at);
2259
+ }
2260
+ return F;
2261
+ }, []);
2262
+ }, [t]), Y = H(() => {
2263
+ const { src: x } = e;
2264
+ if (x) {
2265
+ const D = z.findIndex((W, F) => W.src === x);
2266
+ g(D);
2267
+ }
2268
+ }, [z, e]), Je = H((x) => {
2269
+ g(null);
2270
+ }, []), $e = H(
2271
+ (x) => {
2272
+ a(x ? s + s * 0.25 : s - s * 0.25);
1770
2273
  },
1771
- onKeyDown: i = () => {
2274
+ [a, s]
2275
+ ), et = H(() => {
2276
+ if (f !== null) {
2277
+ const { src: x } = z[f];
2278
+ x && window.open(x, "_self");
2279
+ }
2280
+ }, [z, f]), tt = H(
2281
+ (x) => {
2282
+ const D = T.current;
2283
+ D && (u({ top: D.scrollTop, left: D.scrollLeft, x: x.clientX, y: x.clientY }), m(!0));
1772
2284
  },
1773
- title: a,
1774
- href: m,
1775
- children: l,
1776
- target: c,
1777
- routeName: u,
1778
- params: f
1779
- } = E, d = $(E, [
1780
- "className",
1781
- "disabled",
1782
- "role",
1783
- "tabIndex",
1784
- "onClick",
1785
- "onKeyDown",
1786
- "title",
1787
- "href",
1788
- "children",
1789
- "target",
1790
- "routeName",
1791
- "params"
1792
- ]);
1793
- const x = {
1794
- title: a,
1795
- disabled: t,
1796
- role: n,
1797
- tabIndex: s,
1798
- className: w(e, "humany-link", [!!t, "humany-disabled"]),
1799
- onClick: (y) => {
1800
- if (y.persist(), t) {
1801
- y.preventDefault();
1802
- return;
2285
+ [T]
2286
+ ), nt = H(
2287
+ (x) => {
2288
+ const D = T.current;
2289
+ if (D && c) {
2290
+ const W = x.clientX - l.x, F = x.clientY - l.y;
2291
+ D.scrollTop = l.top - F, D.scrollLeft = l.left - W;
1803
2292
  }
1804
- o(y);
1805
2293
  },
1806
- onKeyDown: (y) => {
1807
- if (y.persist(), t) {
1808
- y.key !== "Tab" && y.preventDefault();
1809
- return;
2294
+ [c, l]
2295
+ ), rt = (x) => {
2296
+ x.preventDefault(), m(!1);
2297
+ }, ot = ie(() => {
2298
+ if (T.current) {
2299
+ const x = T.current.getElementsByTagName("img");
2300
+ if (x && x.length) {
2301
+ const D = x[0];
2302
+ return D.width > window.innerWidth || D.height > window.innerHeight;
1810
2303
  }
1811
- i(y);
1812
2304
  }
1813
- };
1814
- return u ? /* @__PURE__ */ r.createElement(At, k(p(p({
1815
- name: u,
1816
- params: f
1817
- }, x), R(d)), {
1818
- ref: h
1819
- }), l) : /* @__PURE__ */ r.createElement(Kt, k(p(p({
1820
- href: m,
1821
- target: c
1822
- }, x), R(d)), {
1823
- ref: h
1824
- }), l);
1825
- }), At = v(Zt)`
1826
- ${(e) => e.disabled ? `
1827
- pointer-events: none;
1828
- opacity: .7;
1829
- ` : "cursor: pointer;"}
1830
- `, Kt = v.a`
1831
- ${(e) => e.disabled ? `
1832
- pointer-events: none;
1833
- opacity: .7;
1834
- ` : "cursor: pointer;"}
1835
- `, Yt = D((m, a) => {
1836
- var l = m, { className: e, children: t, trigger: n, onOverlayClick: s = () => {
1837
- }, close: o = !1 } = l, i = $(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
1838
- const [c, u] = le(), [f, d] = Me(!0), h = S(), g = S(F()), E = q("Escape");
1839
- C(() => {
1840
- (E || o) && u(!1);
1841
- }, [E, o]), C(() => {
1842
- c && h.current && h.current.focus();
1843
- }, [c, h.current]), Q("router:changed", () => {
1844
- u(!1);
1845
- });
1846
- const x = H((b) => {
1847
- u(!1), s(b);
1848
- }, [s, u]);
1849
- ie(a, () => ({
1850
- close() {
1851
- u(!1);
1852
- }
1853
- }));
1854
- const y = H(() => ue(g.current, () => {
1855
- u(!1);
1856
- }), [g.current]);
1857
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(De, {
1858
- visible: c,
1859
- onClick: x
1860
- }, /* @__PURE__ */ r.createElement(jt, k(p({
1861
- className: w(e, "humany-modal", `humany-modal-${g.current}`),
1862
- css: f,
1863
- tabIndex: -1
1864
- }, i), {
1865
- ref: d
1866
- }), /* @__PURE__ */ r.createElement(de, {
1867
- onClick: () => u(!1),
1868
- tabIndex: 0,
1869
- ref: h
1870
- }, /* @__PURE__ */ r.createElement(A, {
1871
- symbol: { type: "Svg", content: "close" }
1872
- })), t)), r.cloneElement(n, {
1873
- onClick: (b) => {
1874
- u(), y();
2305
+ return !1;
2306
+ }, [T, s]), Le = () => {
2307
+ f !== null && (v("Left"), g(f - 1));
2308
+ }, Me = () => {
2309
+ f !== null && (v("Right"), g(f + 1));
2310
+ }, ee = f !== null && f > 0 && z.length > 1, te = f !== null && z.length - 1 > f;
2311
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
2312
+ visible: f !== null,
2313
+ onClick: Je
2314
+ }, /* @__PURE__ */ r.createElement(Vn, {
2315
+ onMouseDown: () => d(),
2316
+ onMouseMove: () => d(),
2317
+ onTouchStart: () => d(),
2318
+ onKeyDown: () => d()
2319
+ }, /* @__PURE__ */ r.createElement(Zn, {
2320
+ show: p.toString()
2321
+ }, /* @__PURE__ */ r.createElement(Dn, {
2322
+ ref: y,
2323
+ buttons: [
2324
+ {
2325
+ id: "download",
2326
+ onClick: et,
2327
+ icon: "download",
2328
+ ariaLabel: "Download image"
2329
+ },
2330
+ {
2331
+ id: "lightbox-close",
2332
+ onClick: () => g(null),
2333
+ icon: "lightbox-close",
2334
+ ariaLabel: "Close"
2335
+ }
2336
+ ]
2337
+ })), /* @__PURE__ */ r.createElement(In, {
2338
+ scrolling: c.toString(),
2339
+ isDraggable: ot.toString(),
2340
+ ref: T,
2341
+ onMouseMove: nt,
2342
+ onMouseDown: tt,
2343
+ onMouseUp: rt
2344
+ }, f !== null && /* @__PURE__ */ r.createElement(xn, $(h({
2345
+ changeZoom: (x) => {
2346
+ a(x);
2347
+ },
2348
+ zoomState: s
2349
+ }, e), {
2350
+ image: z[f]
2351
+ }))), /* @__PURE__ */ r.createElement(Tn, {
2352
+ ref: B,
2353
+ show: p.toString(),
2354
+ buttons: [
2355
+ {
2356
+ id: "previous",
2357
+ onClick: Le,
2358
+ icon: "caret-left",
2359
+ circle: !0,
2360
+ show: ee,
2361
+ className: "nav-left",
2362
+ ariaLabel: "Navigate to previous image"
2363
+ },
2364
+ {
2365
+ id: "next",
2366
+ onClick: Me,
2367
+ icon: "caret-right",
2368
+ circle: !0,
2369
+ show: te,
2370
+ className: "nav-right",
2371
+ ariaLabel: "Navigate to next image"
2372
+ }
2373
+ ]
2374
+ }), /* @__PURE__ */ r.createElement(Wn, {
2375
+ show: p.toString()
2376
+ }, /* @__PURE__ */ r.createElement(Bn, {
2377
+ buttons: [
2378
+ {
2379
+ id: "zoom-out",
2380
+ onClick: () => $e(!1),
2381
+ icon: "zoom-out",
2382
+ ariaLabel: "Zoom out"
2383
+ },
2384
+ {
2385
+ id: "zoom-in",
2386
+ onClick: () => $e(!0),
2387
+ icon: "zoom-in",
2388
+ ariaLabel: "Zoom in"
2389
+ }
2390
+ ]
2391
+ }), /* @__PURE__ */ r.createElement(Nn, {
2392
+ variant: "span"
2393
+ }, Math.trunc(s * 100), "%")))), /* @__PURE__ */ r.createElement(Rn, {
2394
+ ref: b,
2395
+ onClick: Y,
2396
+ onKeyDown: (x) => {
2397
+ x.key === "Enter" && (x.preventDefault(), Y());
2398
+ },
2399
+ tabIndex: 0
2400
+ }, /* @__PURE__ */ r.createElement(On, $(h({}, e), {
2401
+ alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || ""
2402
+ }))));
2403
+ }, ke = N(
2404
+ ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(Hn, {
2405
+ ref: o,
2406
+ show: e,
2407
+ className: M("humany-button-set", n)
2408
+ }, t.map(
2409
+ ({ id: i, circle: s = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(zn, {
2410
+ key: i + p.toString(),
2411
+ circle: s.toString(),
2412
+ onClick: u,
2413
+ tabIndex: a ? void 0 : -1,
2414
+ show: a.toString(),
2415
+ icon: c,
2416
+ className: m,
2417
+ "aria-label": l
2418
+ }, /* @__PURE__ */ r.createElement(J, {
2419
+ size: 24,
2420
+ symbol: { type: "Svg", content: c }
2421
+ }))
2422
+ ))
2423
+ ), Qe = C.div`
2424
+ transition: opacity 0.3s ease 0s;
2425
+ z-index: 5;
2426
+ ${(e) => e.show === "true" ? "opacity: 1;" : L`
2427
+ opacity: 0;
2428
+ pointer-events: none;
2429
+ `}
2430
+ `, Rn = C(xe)`
2431
+ display: inline-block !important;
2432
+ `, Hn = C(Qe)`
2433
+ position: fixed;
2434
+ display: flex;
2435
+ gap: ${(e) => {
2436
+ var t;
2437
+ return (t = e.theme.sizes) == null ? void 0 : t.normal;
2438
+ }};
2439
+ `, ge = "39px", zn = C(ae)`
2440
+ width: ${ge};
2441
+ height: ${ge};
2442
+ display: flex;
2443
+ justify-content: center;
2444
+ align-items: center;
2445
+
2446
+ ${(e) => e.icon === "caret-left" && L`
2447
+ svg {
2448
+ position: relative;
2449
+ left: -2px;
2450
+ }
2451
+ `}
2452
+
2453
+ ${(e) => {
2454
+ var t;
2455
+ return e.circle === "true" ? L`
2456
+ background-color: #ffffff;
2457
+ border-radius: 50%;
2458
+
2459
+ svg {
2460
+ path,
2461
+ line {
2462
+ stroke: ${(t = e.theme.colors) == null ? void 0 : t.text};
2463
+ }
2464
+ }
2465
+
2466
+ &:focus-visible {
2467
+ ${P}
2468
+ outline-color: #ffffff;
2469
+ background-color: transparent;
2470
+
2471
+ svg {
2472
+ path,
2473
+ line {
2474
+ stroke: #ffffff;
2475
+ }
2476
+ }
2477
+ }
2478
+ ` : L`
2479
+ svg {
2480
+ path,
2481
+ line {
2482
+ stroke: #ffffff;
2483
+ }
2484
+ }
2485
+ &:focus {
2486
+ outline-color: #ffffff;
2487
+ }
2488
+ &:focus-visible {
2489
+ ${P}
2490
+ }
2491
+ `;
2492
+ }}
2493
+
2494
+ ${(e) => e.show === "true" ? L`
2495
+ opacity: 0.8;
2496
+ transition: opacity 0.3s ease 0s;
2497
+ &:hover {
2498
+ opacity: 1;
2499
+ }
2500
+ ` : L`
2501
+ opacity: 0;
2502
+ pointer-events: none;
2503
+ `}
2504
+ `, Dn = C(ke)`
2505
+ top: ${(e) => {
2506
+ var t;
2507
+ return (t = e.theme.sizes) == null ? void 0 : t.large;
2508
+ }};
2509
+ right: ${(e) => {
2510
+ var t;
2511
+ return (t = e.theme.sizes) == null ? void 0 : t.large;
2512
+ }};
2513
+ `, Bn = C(ke)`
2514
+ bottom: ${(e) => {
2515
+ var t;
2516
+ return (t = e.theme.sizes) == null ? void 0 : t.large;
2517
+ }};
2518
+ width: 100%;
2519
+ align-items: center;
2520
+ justify-content: center;
2521
+ `, Tn = C(ke)`
2522
+ display: block;
2523
+ button {
2524
+ position: fixed;
2525
+ top: calc(50% - calc(${ge} / 2));
2526
+ &:first-child {
2527
+ left: ${(e) => {
2528
+ var t;
2529
+ return (t = e.theme.sizes) == null ? void 0 : t.large;
2530
+ }};
2531
+ }
2532
+ &:last-child {
2533
+ right: ${(e) => {
2534
+ var t;
2535
+ return (t = e.theme.sizes) == null ? void 0 : t.large;
2536
+ }};
2537
+ }
1875
2538
  }
1876
- }));
1877
- }), jt = v.div`
2539
+ `, Nn = C(U)`
2540
+ position: fixed;
2541
+ bottom: ${(e) => {
2542
+ var t;
2543
+ return (t = e.theme.sizes) == null ? void 0 : t.large;
2544
+ }};
2545
+ right: ${(e) => {
2546
+ var t;
2547
+ return (t = e.theme.sizes) == null ? void 0 : t.large;
2548
+ }};
2549
+ color: #ffffff;
2550
+ font-size: ${(e) => {
2551
+ var t;
2552
+ return (t = e.theme.fonts) == null ? void 0 : t.medium;
2553
+ }};
2554
+ font-family: ${(e) => {
2555
+ var t;
2556
+ return (t = e.theme.fonts) == null ? void 0 : t.type;
2557
+ }};
2558
+ `, Ge = C(Qe)`
2559
+ position: absolute;
2560
+ width: 100vw;
2561
+ height: 88px;
2562
+ left: 0px;
2563
+ z-index: 5;
2564
+ `, Vn = C.div`
2565
+ width: 100%;
2566
+ `, Zn = C(Ge)`
2567
+ top: 0px;
2568
+ background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2569
+ `, Wn = C(Ge)`
2570
+ bottom: 0px;
2571
+ background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2572
+ `, In = C.div`
2573
+ width: 100%;
2574
+ height: 100vh;
2575
+ overflow: auto;
2576
+ text-align: center;
2577
+ vertical-align: middle;
2578
+ white-space: nowrap;
2579
+ justify-content: center;
2580
+ cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2581
+ `, On = C.img`
2582
+ cursor: pointer;
2583
+ `, Fn = N(
2584
+ (l, a) => {
2585
+ var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2586
+ }, close: i = !1 } = u, s = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2587
+ const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), g = R(q()), E = j("Escape");
2588
+ w(() => {
2589
+ (E || i) && m(!1);
2590
+ }, [E, i]), w(() => {
2591
+ c && f.current && f.current.focus();
2592
+ }, [c, f.current]), ce("router:changed", () => {
2593
+ m(!1);
2594
+ });
2595
+ const v = H(
2596
+ (y) => {
2597
+ m(!1), o(y);
2598
+ },
2599
+ [o, m]
2600
+ );
2601
+ Ce(a, () => ({
2602
+ close() {
2603
+ m(!1);
2604
+ }
2605
+ }));
2606
+ const b = H(() => ve(g.current, () => {
2607
+ m(!1);
2608
+ }), [g.current]);
2609
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
2610
+ visible: c,
2611
+ onClick: v
2612
+ }, /* @__PURE__ */ r.createElement(An, $(h({
2613
+ className: M(
2614
+ e,
2615
+ "humany-modal",
2616
+ `humany-modal-${g.current}`
2617
+ ),
2618
+ css: p,
2619
+ tabIndex: -1
2620
+ }, s), {
2621
+ ref: d
2622
+ }), /* @__PURE__ */ r.createElement(Ee, {
2623
+ onClick: () => m(!1),
2624
+ tabIndex: 0,
2625
+ ref: f
2626
+ }, /* @__PURE__ */ r.createElement(J, {
2627
+ symbol: { type: "Svg", content: "close" }
2628
+ })), t)), r.cloneElement(n, {
2629
+ onClick: (y) => {
2630
+ m(), b();
2631
+ }
2632
+ }));
2633
+ }
2634
+ ), An = C.div`
1878
2635
  font-family: ${(e) => {
1879
2636
  var t;
1880
2637
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1890,39 +2647,39 @@ const Et = 300, Bn = ({
1890
2647
  var t;
1891
2648
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
1892
2649
  }};
1893
- ${Se}
2650
+ ${je}
1894
2651
  ${(e) => e.css && e.css}
1895
2652
  outline: none;
1896
- `, Pn = ({
2653
+ `, Z1 = ({
1897
2654
  className: e,
1898
2655
  trigger: t,
1899
2656
  header: n = "",
1900
- text: s = "",
1901
- onCancel: o = () => {
2657
+ text: o = "",
2658
+ onCancel: i = () => {
1902
2659
  },
1903
- onConfirm: i = () => {
2660
+ onConfirm: s = () => {
1904
2661
  },
1905
2662
  cancelLabel: a = "",
1906
- confirmLabel: m = ""
2663
+ confirmLabel: l = ""
1907
2664
  }) => {
1908
- const l = S(), c = H(() => {
1909
- var f;
1910
- o(), (f = l == null ? void 0 : l.current) == null || f.close();
1911
- }, [o]), u = H(() => {
1912
- var f;
1913
- i(), (f = l == null ? void 0 : l.current) == null || f.close();
1914
- }, [i]);
1915
- return /* @__PURE__ */ r.createElement(Xt, {
2665
+ const u = R(), c = H(() => {
2666
+ var p;
2667
+ i(), (p = u == null ? void 0 : u.current) == null || p.close();
2668
+ }, [i]), m = H(() => {
2669
+ var p;
2670
+ s(), (p = u == null ? void 0 : u.current) == null || p.close();
2671
+ }, [s]);
2672
+ return /* @__PURE__ */ r.createElement(Pn, {
1916
2673
  className: e,
1917
2674
  trigger: t,
1918
- ref: l,
2675
+ ref: u,
1919
2676
  onOverlayClick: c
1920
- }, n && /* @__PURE__ */ r.createElement(xe, null, n), s && /* @__PURE__ */ r.createElement(xe, null, s), m && /* @__PURE__ */ r.createElement(_t, {
1921
- onClick: u
1922
- }, m), a && /* @__PURE__ */ r.createElement(Ut, {
2677
+ }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Kn, {
2678
+ onClick: m
2679
+ }, l), a && /* @__PURE__ */ r.createElement(Yn, {
1923
2680
  onClick: c
1924
2681
  }, a));
1925
- }, Xt = v(Yt)`
2682
+ }, Pn = C(Fn)`
1926
2683
  display: block;
1927
2684
 
1928
2685
  span {
@@ -1940,7 +2697,7 @@ const Et = 300, Bn = ({
1940
2697
  }};
1941
2698
  }
1942
2699
  }
1943
- `, _t = v(U)`
2700
+ `, Kn = C(ae)`
1944
2701
  display: inline-block;
1945
2702
  min-width: 50px;
1946
2703
  ${(e) => {
@@ -1964,13 +2721,13 @@ const Et = 300, Bn = ({
1964
2721
  }} 0 0;
1965
2722
 
1966
2723
  &:focus {
1967
- ${(e) => {
1968
- var t;
1969
- return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && P;
1970
- }};
1971
2724
  background-color: transparent;
1972
2725
  }
1973
- `, Ut = v(U)`
2726
+
2727
+ &:focus-visible {
2728
+ ${P}
2729
+ }
2730
+ `, Yn = C(ae)`
1974
2731
  display: inline-block;
1975
2732
  min-width: 50px;
1976
2733
  ${(e) => {
@@ -1988,48 +2745,51 @@ const Et = 300, Bn = ({
1988
2745
  return (t = e.theme.colors) == null ? void 0 : t.text;
1989
2746
  }};
1990
2747
 
1991
- &:focus {
1992
- ${(e) => {
1993
- var t;
1994
- return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && P;
1995
- }};
2748
+ &:focus-visible {
2749
+ ${P};
1996
2750
  }
1997
- `, Fn = ({
2751
+ `, W1 = ({
1998
2752
  header: e = "",
1999
2753
  link: t = "",
2000
2754
  suggestionHeader: n = "",
2001
- suggestion: s = ""
2002
- }) => /* @__PURE__ */ r.createElement(qt, null, /* @__PURE__ */ r.createElement(Qt, null, /* @__PURE__ */ r.createElement(_, {
2755
+ suggestion: o = ""
2756
+ }) => /* @__PURE__ */ r.createElement(jn, null, /* @__PURE__ */ r.createElement(Xn, null, /* @__PURE__ */ r.createElement(U, {
2003
2757
  variant: "h2"
2004
- }, "404")), /* @__PURE__ */ r.createElement(Gt, null, /* @__PURE__ */ r.createElement(_, {
2758
+ }, "404")), /* @__PURE__ */ r.createElement(_n, null, /* @__PURE__ */ r.createElement(U, {
2005
2759
  variant: "h3"
2006
- }, e), /* @__PURE__ */ r.createElement(en, {
2760
+ }, e), /* @__PURE__ */ r.createElement(qn, {
2007
2761
  routeName: "index",
2008
2762
  "aria-label": t,
2009
2763
  text: t
2010
- })), /* @__PURE__ */ r.createElement(Jt, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, s)))), qt = v.div`
2764
+ })), /* @__PURE__ */ r.createElement(Un, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), jn = C.div`
2011
2765
  display: flex;
2012
2766
  flex-wrap: wrap;
2013
- `, Qt = v.div`
2014
- ${X("h2", M`
2767
+ `, Xn = C.div`
2768
+ ${se(
2769
+ "h2",
2770
+ L`
2015
2771
  padding: 0;
2016
2772
  margin: 0;
2017
2773
  color: gray;
2018
2774
  font-size: 7em;
2019
- `)}
2020
- `, Gt = v.div`
2775
+ `
2776
+ )}
2777
+ `, _n = C.div`
2021
2778
  margin-left: ${(e) => {
2022
2779
  var t;
2023
2780
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2024
2781
  }};
2025
2782
 
2026
- ${X("h3", M`
2783
+ ${se(
2784
+ "h3",
2785
+ L`
2027
2786
  text-transform: uppercase;
2028
2787
  font-size: ${(e) => {
2029
- var t;
2030
- return (t = e.theme.fonts) == null ? void 0 : t.normal;
2031
- }};
2032
- `)}
2788
+ var t;
2789
+ return (t = e.theme.fonts) == null ? void 0 : t.normal;
2790
+ }};
2791
+ `
2792
+ )}
2033
2793
 
2034
2794
  a {
2035
2795
  color: ${(e) => {
@@ -2041,7 +2801,7 @@ const Et = 300, Bn = ({
2041
2801
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2042
2802
  }};
2043
2803
  }
2044
- `, Jt = v.div`
2804
+ `, Un = C.div`
2045
2805
  margin-top: ${(e) => {
2046
2806
  var t;
2047
2807
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2052,25 +2812,30 @@ const Et = 300, Bn = ({
2052
2812
  font-weight: bold;
2053
2813
  }
2054
2814
  `;
2055
- class Zn extends We {
2815
+ class I1 extends dt {
2056
2816
  constructor() {
2057
- super(...arguments), this.state = {
2817
+ super(...arguments);
2818
+ re(this, "node");
2819
+ re(this, "onFocusListener");
2820
+ re(this, "state", {
2058
2821
  boundFocus: !1
2059
- };
2822
+ });
2060
2823
  }
2061
2824
  componentWillMount() {
2062
- const t = this.props.container.get("accessibilitySettings");
2063
- t && t.boundFocus && this.setState({
2825
+ const n = this.props.container.get("accessibilitySettings");
2826
+ n && n.boundFocus && this.setState({
2064
2827
  boundFocus: !0
2065
2828
  });
2066
2829
  }
2067
2830
  componentDidMount() {
2068
2831
  if (!this.state.boundFocus)
2069
2832
  return;
2070
- const t = this.props.container.get("widgetDOMElement");
2071
- this.node && t && (this.onFocusListener = this.node.addEventListener("focus", () => {
2072
- const n = t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'), o = [].filter.call(n, (i) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(i).display === "none" || i.offsetWidth <= 0 && i.offsetHeight <= 0))[0];
2073
- o && o.focus();
2833
+ const n = this.props.container.get("widgetDOMElement");
2834
+ this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
2835
+ const o = n.querySelectorAll(
2836
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2837
+ ), s = [].filter.call(o, (a) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(a).display === "none" || a.offsetWidth <= 0 && a.offsetHeight <= 0))[0];
2838
+ s && s.focus();
2074
2839
  }));
2075
2840
  }
2076
2841
  componentWillUnmount() {
@@ -2080,62 +2845,67 @@ class Zn extends We {
2080
2845
  return this.state.boundFocus ? /* @__PURE__ */ r.createElement("div", {
2081
2846
  style: { opacity: 0 },
2082
2847
  tabIndex: 0,
2083
- ref: (t) => {
2084
- this.node = t;
2848
+ ref: (n) => {
2849
+ this.node = n;
2085
2850
  }
2086
2851
  }) : null;
2087
2852
  }
2088
2853
  }
2089
- const en = D((a, i) => {
2090
- var m = a, { className: e, description: t, text: n, children: s } = m, o = $(m, ["className", "description", "text", "children"]);
2091
- return /* @__PURE__ */ r.createElement(Te, k(p({
2092
- className: w(e, "humany-text-link")
2093
- }, o), {
2094
- ref: i
2095
- }), s, /* @__PURE__ */ r.createElement(me, null, n), t ? /* @__PURE__ */ r.createElement(Re, {
2096
- html: t,
2097
- className: "humany-description"
2098
- }) : null);
2099
- });
2100
- var tn = /* @__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))(tn || {});
2101
- const An = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
2102
- className: w(e, "humany-timestamp")
2103
- }, nn(n, t)), Ee = (e) => `0${e}`.slice(-2);
2104
- function nn(e, t) {
2105
- const n = new Date(e), s = n.toTimeString().split(" ")[0].split(":"), o = s.length > 1 ? `${s[0]}:${s[1]}` : s[0], i = n.getFullYear(), a = n.getMonth() + 1, m = n.getDate(), l = `${i}-${Ee(a)}-${Ee(m)}`;
2106
- return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? o : `${l} ${o}`;
2854
+ const qn = N(
2855
+ (a, s) => {
2856
+ var l = a, { className: e, description: t, text: n, children: o } = l, i = S(l, ["className", "description", "text", "children"]);
2857
+ return /* @__PURE__ */ r.createElement(xe, $(h({
2858
+ className: M(e, "humany-text-link")
2859
+ }, i), {
2860
+ ref: s
2861
+ }), o, /* @__PURE__ */ r.createElement(we, null, n), t ? /* @__PURE__ */ r.createElement(_e, {
2862
+ html: t,
2863
+ className: "humany-description"
2864
+ }) : null);
2865
+ }
2866
+ );
2867
+ var Qn = /* @__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))(Qn || {});
2868
+ const O1 = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
2869
+ className: M(e, "humany-timestamp")
2870
+ }, Gn(n, t)), Ze = (e) => `0${e}`.slice(-2);
2871
+ function Gn(e, t) {
2872
+ const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), i = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${s}-${Ze(a)}-${Ze(l)}`;
2873
+ return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? i : `${u} ${i}`;
2107
2874
  }
2108
- const Kn = (i) => {
2109
- var a = i, { className: e, children: t, content: n, sticky: s = !1 } = a, o = $(a, ["className", "children", "content", "sticky"]);
2110
- const [m, l] = L(!1), c = S(F()), u = S(), [{ x: f, y: d }, h] = He(m, c.current, u.current), g = (x) => {
2111
- const { target: y } = x;
2112
- !u.current || !y || u.current !== y && !u.current.contains(y) && l(!1);
2875
+ const F1 = (s) => {
2876
+ var a = s, { className: e, children: t, content: n, sticky: o = !1 } = a, i = S(a, ["className", "children", "content", "sticky"]);
2877
+ const [l, u] = k(!1), c = R(q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), g = (v) => {
2878
+ const { target: b } = v;
2879
+ !m.current || !b || m.current !== b && !m.current.contains(b) && u(!1);
2113
2880
  };
2114
- C(() => {
2115
- if (!!s)
2881
+ w(() => {
2882
+ if (!!o)
2116
2883
  return window.addEventListener("click", g), () => {
2117
2884
  window.removeEventListener("click", g);
2118
2885
  };
2119
- }, [m, s]);
2120
- const E = H((x, y) => {
2121
- h(x, u.current), l(y);
2122
- }, [h, l]);
2123
- return /* @__PURE__ */ r.createElement(rn, {
2124
- ref: u,
2886
+ }, [l, o]);
2887
+ const E = H(
2888
+ (v, b) => {
2889
+ f(v, m.current), u(b);
2890
+ },
2891
+ [f, u]
2892
+ );
2893
+ return /* @__PURE__ */ r.createElement(Jn, {
2894
+ ref: m,
2125
2895
  className: "humany-tooltip-trigger",
2126
- onMouseEnter: s ? void 0 : (x) => E(x, !0),
2127
- onMouseLeave: s ? void 0 : (x) => E(x, !1),
2128
- onTouchEnd: s ? (x) => E(x, !m) : void 0,
2129
- onClick: s ? (x) => E(x, !m) : void 0
2130
- }, t, m && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(on, p({
2131
- className: w(e, "humany-tooltip-container"),
2132
- x: f,
2896
+ onMouseEnter: o ? void 0 : (v) => E(v, !0),
2897
+ onMouseLeave: o ? void 0 : (v) => E(v, !1),
2898
+ onTouchEnd: o ? (v) => E(v, !l) : void 0,
2899
+ onClick: o ? (v) => E(v, !l) : void 0
2900
+ }, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(e1, h({
2901
+ className: M(e, "humany-tooltip-container"),
2902
+ x: p,
2133
2903
  y: d
2134
- }, o), n)));
2135
- }, rn = v.div`
2904
+ }, i), n)));
2905
+ }, Jn = C.div`
2136
2906
  display: flex;
2137
2907
  align-items: center;
2138
- `, on = v.div`
2908
+ `, e1 = C.div`
2139
2909
  color: #ffffff;
2140
2910
  background: #161616;
2141
2911
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2168,185 +2938,224 @@ const Kn = (i) => {
2168
2938
  let t = "";
2169
2939
  return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
2170
2940
  }};
2171
- `, Yn = (e) => {
2941
+ `, A1 = (e) => {
2172
2942
  const {
2173
2943
  in: t,
2174
2944
  mountOnEnter: n = !0,
2175
- unmountOnExit: s = !0,
2176
- timeout: o,
2177
- children: i,
2945
+ unmountOnExit: o = !0,
2946
+ timeout: i,
2947
+ children: s,
2178
2948
  transitions: a
2179
- } = e, l = (() => {
2180
- var c, u;
2949
+ } = e, u = (() => {
2950
+ var c, m;
2181
2951
  if (!(!a || a === "none")) {
2182
2952
  if (typeof a == "string")
2183
2953
  return {
2184
2954
  enter: {
2185
2955
  transitionKeys: a,
2186
- duration: o ? typeof o == "number" ? o : o.enter : 200,
2956
+ duration: i ? typeof i == "number" ? i : i.enter : 200,
2187
2957
  easing: "ease-in"
2188
2958
  },
2189
2959
  exit: {
2190
2960
  transitionKeys: a,
2191
- duration: o ? typeof o == "number" ? o : o.exit : 200,
2961
+ duration: i ? typeof i == "number" ? i : i.exit : 200,
2192
2962
  easing: "ease-out"
2193
2963
  }
2194
2964
  };
2195
2965
  if (typeof a == "object") {
2196
- const { enter: f, exit: d } = a;
2966
+ const { enter: p, exit: d } = a;
2197
2967
  return {
2198
2968
  enter: {
2199
2969
  transitionKeys: (c = a.enter) == null ? void 0 : c.type,
2200
- duration: o ? typeof o == "number" ? o : o.enter : 200,
2201
- easing: f.easing ? f.easing : "ease-in"
2970
+ duration: i ? typeof i == "number" ? i : i.enter : 200,
2971
+ easing: p.easing ? p.easing : "ease-in"
2202
2972
  },
2203
2973
  exit: {
2204
- transitionKeys: (u = a.enter) == null ? void 0 : u.type,
2205
- duration: o ? typeof o == "number" ? o : o.enter : 200,
2974
+ transitionKeys: (m = a.enter) == null ? void 0 : m.type,
2975
+ duration: i ? typeof i == "number" ? i : i.enter : 200,
2206
2976
  easing: d.easing ? d.easing : "ease-out"
2207
2977
  }
2208
2978
  };
2209
2979
  }
2210
2980
  }
2211
2981
  })();
2212
- return /* @__PURE__ */ r.createElement(Ie, {
2982
+ return /* @__PURE__ */ r.createElement(ht, {
2213
2983
  timeout: {
2214
- enter: l && l.enter.duration || 0,
2215
- exit: l && l.exit.duration || 0
2984
+ enter: u && u.enter.duration || 0,
2985
+ exit: u && u.exit.duration || 0
2216
2986
  },
2217
2987
  in: t,
2218
2988
  appear: !0,
2219
2989
  mountOnEnter: n,
2220
- unmountOnExit: s,
2990
+ unmountOnExit: o,
2221
2991
  onEnter: (c) => c.clientHeight
2222
- }, (c) => i && i(c, l && oe.compose(c, l)));
2223
- }, sn = D((m, a) => {
2224
- var l = m, { className: e, children: t, onClick: n = () => {
2225
- }, widgetName: s, activationOptions: o } = l, i = $(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
2226
- const c = T(), u = () => {
2227
- const { implementation: h } = c.get("$widget");
2228
- return h.widgets.get(s);
2229
- };
2230
- C(() => {
2231
- const h = u();
2232
- return h == null || h.activate(o).then(() => h.invoke("attach")), () => {
2233
- h == null || h.deactivate();
2992
+ }, (c) => s && s(c, u && he.compose(c, u)));
2993
+ }, t1 = N(
2994
+ (l, a) => {
2995
+ var u = l, { className: e, children: t, onClick: n = () => {
2996
+ }, widgetName: o, activationOptions: i } = u, s = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
2997
+ const c = Z(), m = () => {
2998
+ const { implementation: f } = c.get("$widget");
2999
+ return f.widgets.get(o);
2234
3000
  };
2235
- }, [s]);
2236
- const f = (h) => {
2237
- const g = u(), E = h.currentTarget;
2238
- if (g) {
2239
- const x = () => {
2240
- g.invoke("renderState").then((y) => y === j.open ? g.invoke("close") : g.invoke("open")).then(() => {
2241
- g.events.subscribeOnce("widget:area-rendered", (y, b) => {
2242
- c.get("widgetDOMElement") && g.events.dispatch("widget:modal-opened", {
2243
- name: g.name,
2244
- ref: E
3001
+ w(() => {
3002
+ const f = m();
3003
+ return f == null || f.activate(i).then(() => f.invoke("attach")), () => {
3004
+ f == null || f.deactivate();
3005
+ };
3006
+ }, [o]);
3007
+ const p = (f) => {
3008
+ const g = m(), E = f.currentTarget;
3009
+ if (g) {
3010
+ const v = () => {
3011
+ g.invoke("renderState").then(
3012
+ (b) => b === oe.open ? g.invoke("close") : g.invoke("open")
3013
+ ).then(() => {
3014
+ g.events.subscribeOnce("widget:area-rendered", (b, y) => {
3015
+ c.get(
3016
+ "widgetDOMElement"
3017
+ ) && g.events.dispatch("widget:modal-opened", {
3018
+ name: g.name,
3019
+ ref: E
3020
+ });
2245
3021
  });
2246
3022
  });
2247
- });
2248
- };
2249
- g.state === Fe.Deactivated ? g.activate(o).then(() => g.invoke("attach")).then(x) : x();
2250
- }
2251
- }, d = (h) => {
2252
- h.key === "Enter" && (h.preventDefault(), f(h));
2253
- };
2254
- return /* @__PURE__ */ r.createElement(Te, k(p({
2255
- className: w(e, "humany-widget-link"),
2256
- onKeyDown: d,
2257
- onClick: (h) => {
2258
- n(h), f(h);
2259
- }
2260
- }, i), {
2261
- ref: a
2262
- }), t);
2263
- }), jn = (e, t, n, s, o) => e.getAsync("componentResolver").then((i) => (i.registerComponent(t, Oe(() => n)), je(e, t, s || (() => {
2264
- }), t, o)));
3023
+ };
3024
+ g.state === gt.Deactivated ? g.activate(i).then(() => g.invoke("attach")).then(v) : v();
3025
+ }
3026
+ }, d = (f) => {
3027
+ f.key === "Enter" && (f.preventDefault(), p(f));
3028
+ };
3029
+ return /* @__PURE__ */ r.createElement(xe, $(h({
3030
+ className: M(e, "humany-widget-link"),
3031
+ onKeyDown: d,
3032
+ onClick: (f) => {
3033
+ n(f), p(f);
3034
+ }
3035
+ }, s), {
3036
+ ref: a
3037
+ }), t);
3038
+ }
3039
+ ), P1 = N(
3040
+ ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3041
+ const i = Z(), s = ie(() => {
3042
+ if (!i)
3043
+ return null;
3044
+ const a = i.get("widgetDOMElement");
3045
+ return !a || !a.childElementCount ? null : a.children[0];
3046
+ }, [i]);
3047
+ return s ? /* @__PURE__ */ r.createElement(G, {
3048
+ elementId: e,
3049
+ parent: s
3050
+ }, /* @__PURE__ */ r.createElement(n1, {
3051
+ className: M("humany-widget-overlay-outlet", t),
3052
+ ref: o
3053
+ }, n)) : null;
3054
+ }
3055
+ ), n1 = C.div`
3056
+ background-color: #ffffff;
3057
+ position: absolute;
3058
+ top: 0;
3059
+ left: 0;
3060
+ bottom: 0;
3061
+ right: 0;
3062
+ z-index: 10;
3063
+ width: 100%;
3064
+ height: 100%;
3065
+ `, K1 = (e, t, n, o, i) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3066
+ t,
3067
+ ft(() => n)
3068
+ ), wt(e, t, o || (() => {
3069
+ }), t, i)));
2265
3070
  export {
2266
- it as AnchorLink,
2267
- U as Button,
2268
- Cn as Checkbox,
2269
- lt as ColumnContext,
2270
- $e as ComponentNodeContext,
2271
- ut as ComponentPropertyContext,
2272
- Pn as Confirm,
2273
- ct as ContainerContext,
2274
- tn as DateFormats,
2275
- Bn as Drawer,
2276
- xt as DrawerAnimationType,
2277
- Vn as Dropdown,
2278
- Ht as Empty,
2279
- Wn as Grid,
2280
- Re as Html,
2281
- Tt as Icon,
2282
- On as Input,
2283
- Bt as ItemList,
2284
- In as ItemTree,
2285
- Wt as Lightbox,
2286
- Te as Link,
2287
- Nt as List,
2288
- Yt as Modal,
2289
- Fn as NotFound,
2290
- De as Overlay,
2291
- zt as Paragraph,
3071
+ Nt as AnchorLink,
3072
+ ae as Button,
3073
+ p1 as Checkbox,
3074
+ Wt as ColumnContext,
3075
+ Fe as ComponentNodeContext,
3076
+ It as ComponentPropertyContext,
3077
+ Z1 as Confirm,
3078
+ Zt as ContainerContext,
3079
+ Qn as DateFormats,
3080
+ D1 as Drawer,
3081
+ qt as DrawerAnimationType,
3082
+ B1 as Dropdown,
3083
+ sn as Empty,
3084
+ T1 as Grid,
3085
+ _e as Html,
3086
+ ln as Icon,
3087
+ N1 as Input,
3088
+ dn as ItemList,
3089
+ V1 as ItemTree,
3090
+ Sn as Lightbox,
3091
+ xe as Link,
3092
+ un as List,
3093
+ Fn as Modal,
3094
+ W1 as NotFound,
3095
+ Ue as Overlay,
3096
+ mn as Paragraph,
2292
3097
  G as Portal,
2293
- Zt as RouteLink,
2294
- mt as RoutingContext,
2295
- xe as StyledText,
2296
- A as SymbolBadge,
2297
- Zn as TabStop,
2298
- me as Text,
2299
- en as TextLink,
2300
- An as Timestamp,
2301
- Kn as Tooltip,
2302
- Yn as TransitionComponent,
2303
- _ as Typography,
2304
- sn as WidgetLink,
3098
+ fn as RouteLink,
3099
+ Ot as RoutingContext,
3100
+ Ve as StyledText,
3101
+ J as SymbolBadge,
3102
+ I1 as TabStop,
3103
+ we as Text,
3104
+ qn as TextLink,
3105
+ O1 as Timestamp,
3106
+ F1 as Tooltip,
3107
+ A1 as TransitionComponent,
3108
+ U as Typography,
3109
+ t1 as WidgetLink,
3110
+ P1 as WidgetOverlayOutlet,
2305
3111
  P as borderTabStyle,
2306
- Ce as browser,
2307
- pt as buttonCss,
2308
- Se as contentBox,
2309
- R as convertToStringAttributes,
2310
- bn as createEmptyComponent,
2311
- jn as createReactComponent,
2312
- st as defaultRenderInstructions,
2313
- et as embeddedLinkMapper,
2314
- we as filterCssProps,
2315
- tt as filterCssPropsStyle,
2316
- nt as genericHashLink,
2317
- X as headingElement,
2318
- Dn as invertedHoverButton,
2319
- zn as itemList,
2320
- Tn as linkTabStyle,
2321
- gt as list,
2322
- Nn as paddedBorderTabStyle,
2323
- rt as processHtmlString,
2324
- oe as transitionComposer,
2325
- xn as useAction,
2326
- En as useChildren,
2327
- vn as useColumns,
2328
- wn as useComponent,
2329
- ae as useComponentDescriptor,
2330
- ce as useComponentNode,
2331
- I as useComponentPlatform,
2332
- T as useContainer,
2333
- dt as useContext,
2334
- $n as useDispatch,
2335
- z as useEventListener,
2336
- ft as useEvents,
2337
- B as useIsMounted,
2338
- q as useKeyPress,
2339
- kn as useLayout,
2340
- ke as usePrevious,
2341
- Ln as useProperties,
2342
- Mn as useRenderState,
2343
- Sn as useRouteData,
2344
- Le as useRouter,
2345
- Me as useScroll,
2346
- Hn as useSettings,
2347
- le as useToggle,
2348
- Rn as useTransitionEnd,
2349
- ue as useUniqueMenu,
2350
- Q as useWidgetEvent
3112
+ Ne as browser,
3113
+ Kt as buttonCss,
3114
+ je as contentBox,
3115
+ V as convertToStringAttributes,
3116
+ h1 as createEmptyComponent,
3117
+ K1 as createReactComponent,
3118
+ Tt as defaultRenderInstructions,
3119
+ Rt as embeddedLinkMapper,
3120
+ Oe as filterCssProps,
3121
+ Ht as filterCssPropsStyle,
3122
+ zt as genericHashLink,
3123
+ z1 as genericHtml,
3124
+ se as headingElement,
3125
+ Bt as imageLightboxRenderer,
3126
+ S1 as invertedHoverButton,
3127
+ H1 as itemList,
3128
+ Yt as linkTabStyle,
3129
+ jt as list,
3130
+ R1 as paddedBorderTabStyle,
3131
+ Dt as processHtmlString,
3132
+ he as transitionComposer,
3133
+ g1 as useAction,
3134
+ C1 as useChildren,
3135
+ y1 as useColumns,
3136
+ b1 as useComponent,
3137
+ ye as useComponentDescriptor,
3138
+ be as useComponentNode,
3139
+ _ as useComponentPlatform,
3140
+ Z as useContainer,
3141
+ Ft as useContext,
3142
+ v1 as useDispatch,
3143
+ I as useEventListener,
3144
+ At as useEvents,
3145
+ O as useIsMounted,
3146
+ w1 as useIsTabbing,
3147
+ j as useKeyPress,
3148
+ E1 as useLayout,
3149
+ Ae as usePrevious,
3150
+ x1 as useProperties,
3151
+ k1 as useRenderState,
3152
+ $1 as useRouteData,
3153
+ Pe as useRouter,
3154
+ Ke as useScroll,
3155
+ L1 as useSettings,
3156
+ Ye as useToggle,
3157
+ M1 as useTransitionEnd,
3158
+ ve as useUniqueMenu,
3159
+ ce as useWidgetEvent
2351
3160
  };
2352
3161
  //# sourceMappingURL=index.js.map