@telia-ace/widget-ui 1.0.23-next.9 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,37 +1,37 @@
1
- var ct = Object.defineProperty, lt = Object.defineProperties;
2
- var ut = Object.getOwnPropertyDescriptors;
1
+ var at = Object.defineProperty, ct = Object.defineProperties;
2
+ var lt = Object.getOwnPropertyDescriptors;
3
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) => {
4
+ var He = Object.prototype.hasOwnProperty, Te = Object.prototype.propertyIsEnumerable;
5
+ var me = (e, t, n) => t in e ? at(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
7
  He.call(t, n) && me(e, n, t[n]);
8
8
  if (ne)
9
9
  for (var n of ne(t))
10
- ze.call(t, n) && me(e, n, t[n]);
10
+ Te.call(t, n) && me(e, n, t[n]);
11
11
  return e;
12
- }, $ = (e, t) => lt(e, ut(t));
12
+ }, k = (e, t) => ct(e, lt(t));
13
13
  var S = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
16
  He.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
17
  if (e != null && ne)
18
18
  for (var o of ne(e))
19
- t.indexOf(o) < 0 && ze.call(e, o) && (n[o] = e[o]);
19
+ t.indexOf(o) < 0 && Te.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
22
  var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
23
- import { css as L, keyframes as We } from "@emotion/react";
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 _, useContext as Y, useState as k, useEffect as v, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as ie, Component as dt, lazy as ft } from "react";
23
+ import { Container as ut, WidgetState as mt } from "@webprovisions/platform";
24
+ import r, { forwardRef as N, createContext as U, useContext as Y, useState as $, useEffect as v, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as se, Component as dt, lazy as ft } from "react";
25
+ import { ComponentPlatform as ht, asDescriptor as pt, createEventSubscriber as gt, ComponentQuery as Ct, WidgetRenderState as oe, extendComponent as yt } from "@telia-ace/widget-core";
26
+ import { css as L, keyframes as Ze } from "@emotion/react";
26
27
  import y from "@emotion/styled";
27
- import { CSSTransition as Ie, Transition as ht } from "react-transition-group";
28
- import { Container as gt, WidgetState as pt } from "@webprovisions/platform";
29
- import { ComponentPlatform as Ct, asDescriptor as yt, createEventSubscriber as bt, ComponentQuery as vt, WidgetRenderState as oe, extendComponent as wt } from "@telia-ace/widget-core";
28
+ import { kebabCase as bt, appendClassNames as M, uuid as Q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
29
+ import { CSSTransition as Ie, Transition as vt } from "react-transition-group";
30
30
  import { createPortal as Et } from "react-dom";
31
- import Be from "htmr";
32
- import { HistoryMode as Te, getSpecificWidgetPath as xt } from "@telia-ace/widget-routing";
31
+ import { HistoryMode as Be, getSpecificWidgetPath as xt } from "@telia-ace/widget-routing";
33
32
  import { Link as fe } from "react-router-dom";
34
- const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exiting" || e === "exited", K = {
33
+ import ze from "htmr";
34
+ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exiting" || e === "exited", K = {
35
35
  fade: {
36
36
  in: "opacity: 1;",
37
37
  out: "opacity: 0;"
@@ -56,23 +56,23 @@ const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
56
56
  in: "transform: scale(1);",
57
57
  out: "transform: scale(0);"
58
58
  }
59
- }, Lt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
59
+ }, kt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
60
60
  compose: (e = "exited", t) => {
61
- const { enter: n, exit: o } = t, i = n.transitionKeys.split(" "), s = Lt.indexOf(i[0]) > -1 ? "transform" : "opacity";
62
- if (kt(e))
63
- return i && i.length > 0 ? L`
64
- ${i && i.length > 0 && i.map((l) => K[l] ? K[l].in : "")}
65
- transition: ${s} ${n.duration}ms ${n.easing};
61
+ const { enter: n, exit: o } = t, s = n.transitionKeys.split(" "), i = kt.indexOf(s[0]) > -1 ? "transform" : "opacity";
62
+ if (wt(e))
63
+ return s && s.length > 0 ? L`
64
+ ${s && s.length > 0 && s.map((l) => K[l] ? K[l].in : "")}
65
+ transition: ${i} ${n.duration}ms ${n.easing};
66
66
  ` : "";
67
- const a = i && i.length > 0 && L`
68
- ${i.map((l) => K[l] ? K[l].out : "")}
67
+ const a = s && s.length > 0 && L`
68
+ ${s.map((l) => K[l] ? K[l].out : "")}
69
69
  `;
70
70
  if ($t(e)) {
71
71
  const l = o.transitionKeys.split(" ");
72
72
  return l && l.length > 0 && e === "exiting" ? L`
73
73
  ${a};
74
74
  ${l.map((u) => K[u] ? K[u].out : "")}
75
- transition: ${s} ${o.duration}ms ${o.easing};
75
+ transition: ${i} ${o.duration}ms ${o.easing};
76
76
  ` : a;
77
77
  }
78
78
  },
@@ -102,15 +102,15 @@ const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
102
102
  },
103
103
  get: (e) => K[e]
104
104
  };
105
- var ge = /* @__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))(ge || {});
105
+ 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 || {});
106
106
  const Ne = () => {
107
107
  const {
108
108
  opr: e,
109
109
  opera: t,
110
110
  InstallTrigger: n,
111
111
  HTMLElement: o,
112
- safari: i,
113
- documentMode: s,
112
+ safari: s,
113
+ documentMode: i,
114
114
  StyleMedia: a,
115
115
  chrome: l,
116
116
  CSS: u
@@ -119,13 +119,13 @@ const Ne = () => {
119
119
  return "opera";
120
120
  if (n)
121
121
  return "firefox";
122
- const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!i || typeof i != "undefined" && i.pushNotification);
122
+ const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!s || typeof s != "undefined" && s.pushNotification);
123
123
  if (/constructor/i.test(o) || m)
124
124
  return "safari";
125
- const g = !!s;
126
- if (g)
125
+ const p = !!i;
126
+ if (p)
127
127
  return "internet-explorer";
128
- if (!g && !!a)
128
+ if (!p && !!a)
129
129
  return "edge";
130
130
  const d = !!l && (!!l.webstore || !!l.runtime);
131
131
  if (d)
@@ -134,61 +134,61 @@ const Ne = () => {
134
134
  return "edge-chromium";
135
135
  if ((d || c) && !!u)
136
136
  return "blink";
137
- }, Mt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
138
- const o = typeof e[n] == "undefined" ? "" : e[n], i = typeof o;
139
- if (Mt.indexOf(i) > -1) {
140
- const s = n.substring(0, 5);
141
- s === "data-" || s === "aria-" ? t[mt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
137
+ }, Lt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
138
+ const o = typeof e[n] == "undefined" ? "" : e[n], s = typeof o;
139
+ if (Lt.indexOf(s) > -1) {
140
+ const i = n.substring(0, 5);
141
+ i === "data-" || i === "aria-" ? t[bt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
142
142
  } else
143
143
  t[n] = o;
144
144
  return t;
145
- }, {}), Cr = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(an, h({}, t)) : null, St = (e) => new RegExp("^#", "i").test(e), Rt = (e) => (o) => {
146
- var i = o, { children: t } = i, n = S(i, ["children"]);
145
+ }, {}), Mt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(Kn, h({}, t)) : null, go = Mt, St = (e) => new RegExp("^#", "i").test(e), Rt = (e) => (o) => {
146
+ var s = o, { children: t } = s, n = S(s, ["children"]);
147
147
  const {
148
- implementation: s,
148
+ implementation: i,
149
149
  name: a
150
150
  } = e.get("$widget"), { href: l = "" } = n;
151
151
  if (St(l))
152
- return /* @__PURE__ */ r.createElement(Nt, {
152
+ return /* @__PURE__ */ r.createElement(Zt, {
153
153
  smooth: !0,
154
154
  to: l
155
155
  }, t);
156
- const u = s.bindings.map((g) => g.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
156
+ const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
157
157
  if (m && m.length >= 4) {
158
- const g = m[4];
159
- if (s.widgets.get(g) && !g.startsWith("blob?") && !g.startsWith(a))
160
- return /* @__PURE__ */ r.createElement(rr, {
161
- widgetName: g
158
+ const p = m[4];
159
+ if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
160
+ return /* @__PURE__ */ r.createElement(eo, {
161
+ widgetName: p
162
162
  }, t);
163
163
  }
164
164
  return /* @__PURE__ */ r.createElement("a", h({}, n), t);
165
- }, Oe = (e) => {
165
+ }, Ht = Rt, Oe = (e) => {
166
166
  const t = {};
167
167
  return Object.keys(e).forEach((n) => {
168
168
  n.indexOf("css-") > -1 && (t[n] = e[n]);
169
169
  }), t;
170
- }, Ht = (e) => {
170
+ }, Tt = (e) => {
171
171
  let t = "";
172
172
  return Object.keys(Oe(e)).forEach((n) => {
173
173
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
174
174
  }), L`
175
175
  ${t}
176
176
  `;
177
- }, zt = (e, t) => {
177
+ }, Dt = Oe, Bt = (e, t) => {
178
178
  let n = "";
179
179
  const o = () => {
180
180
  n = "";
181
- }, i = (g) => {
181
+ }, s = (p) => {
182
182
  const d = document.getElementById(n);
183
- return d !== null ? (g(d), o(), !0) : !1;
184
- }, s = (g) => (g.preventDefault(), o(), e.onClick && e.onClick(g), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && i(
183
+ return d !== null ? (p(d), o(), !0) : !1;
184
+ }, i = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && s(
185
185
  e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
186
186
  ), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
187
- return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, $(h({}, c), {
188
- onClick: s
187
+ return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, k(h({}, c), {
188
+ onClick: i
189
189
  }), e.children);
190
- }, se = (e) => (t, n) => {
191
- let o = t, i = "";
190
+ }, ie = (e) => (t, n) => {
191
+ let o = t, s = "";
192
192
  if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
193
193
  o = t;
194
194
  else {
@@ -196,36 +196,36 @@ const Ne = () => {
196
196
  if (l != null && l[0]) {
197
197
  o = l[0];
198
198
  const [u] = t.split(o);
199
- i = u;
199
+ s = u;
200
200
  }
201
201
  }
202
- const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, i, e.theme.typographyVariantMapping || {});
202
+ const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, s, e.theme.typographyVariantMapping || {});
203
203
  return L`
204
204
  ${a} {
205
205
  ${n}
206
206
  }
207
207
  `;
208
208
  };
209
- function Dt(e, t) {
210
- return t ? Be(e, t) : Be(e);
209
+ function zt(e, t) {
210
+ return t ? ze(e, t) : ze(e);
211
211
  }
212
- const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
212
+ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, {
213
213
  attrs: t,
214
214
  htmlBody: e
215
- }), Tt = (e, t) => ({
215
+ }), Vt = (e, t) => ({
216
216
  transform: {
217
- a: Rt(e),
218
- img: Bt(t)
217
+ a: Ht(e),
218
+ img: Nt(t)
219
219
  }
220
- }), Nt = (e) => zt(e, "a"), ae = N((i, o) => {
221
- var s = i, { className: e, children: t } = s, n = S(s, ["className", "children"]);
222
- return /* @__PURE__ */ r.createElement(Vt, $(h({
220
+ }), Wt = (e) => Bt(e, "a"), Zt = Wt, ae = N((s, o) => {
221
+ var i = s, { className: e, children: t } = i, n = S(i, ["className", "children"]);
222
+ return /* @__PURE__ */ r.createElement(It, k(h({
223
223
  type: "button",
224
224
  className: M(e, "humany-button")
225
225
  }, V(n)), {
226
226
  ref: o
227
227
  }), t);
228
- }), Vt = y.button`
228
+ }), It = y.button`
229
229
  -webkit-appearance: button;
230
230
  text-transform: none;
231
231
  overflow: visible;
@@ -238,14 +238,14 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
238
238
  line-height: normal;
239
239
  margin: 0;
240
240
  padding: 0;
241
- `, yr = (i) => {
242
- var s = i, {
241
+ `, Ot = (s) => {
242
+ var i = s, {
243
243
  onChange: e = () => {
244
244
  },
245
245
  onEnter: t = () => {
246
246
  },
247
247
  className: n
248
- } = s, o = S(s, [
248
+ } = i, o = S(i, [
249
249
  "onChange",
250
250
  "onEnter",
251
251
  "className"
@@ -257,105 +257,105 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
257
257
  },
258
258
  onChange: (a) => e(a.target.value, a.currentTarget.checked)
259
259
  }, V(o)));
260
- }, Zt = _(new gt()), Wt = _(1), Fe = _({
260
+ }, Co = Ot, Pt = U(new ut()), Ft = U(1), Pe = U({
261
261
  id: "",
262
262
  type: "",
263
263
  name: "",
264
264
  branch: ""
265
- }), It = _({}), Ot = _(null), Ft = _(null), ye = () => Y(Fe), Z = () => Y(Zt), br = (e, t) => {
266
- const n = ye().id, o = Z();
267
- return (i, s) => {
265
+ }), At = U({}), Kt = U(null), Yt = U(null), jt = () => Y(Pe), ye = jt, Xt = () => Y(Pt), W = Xt, Ut = (e, t) => {
266
+ const n = ye().id, o = W();
267
+ return (s, i) => {
268
268
  (t || o).getAsync("actionResolver").then((a) => {
269
- a.action(e || n, i, s);
269
+ a.action(e || n, s, i);
270
270
  });
271
271
  };
272
- }, be = (e) => {
273
- const t = Y(Fe), n = U(), [o, i] = k();
272
+ }, yo = Ut, _t = (e) => {
273
+ const t = Y(Pe), n = _(), [o, s] = $();
274
274
  return v(() => {
275
275
  if ((e || t.id) && n) {
276
- const s = n.nodes.get(e || t.id);
277
- i(s);
276
+ const i = n.nodes.get(e || t.id);
277
+ s(i);
278
278
  }
279
279
  }, [e, t.id, n]), o;
280
- }, O = () => {
280
+ }, be = _t, qt = () => {
281
281
  const e = R(!1);
282
282
  return v(() => (e.current = !0, () => {
283
283
  e.current = !1;
284
284
  }), []), e;
285
- }, U = (e) => {
286
- const t = Z(), [n, o] = k(null), i = O();
285
+ }, O = qt, Qt = (e) => {
286
+ const t = W(), [n, o] = $(null), s = O();
287
287
  return v(() => {
288
- Ct.getInstance(e || t).then((s) => {
289
- i.current && o(s);
288
+ ht.getInstance(e || t).then((i) => {
289
+ s.current && o(i);
290
290
  });
291
- }, [i]), n;
292
- }, vr = () => {
293
- const e = be(), t = U(), [n, o] = k([]), i = O(), s = H(
291
+ }, [s]), n;
292
+ }, _ = Qt, Gt = () => {
293
+ const e = be(), t = _(), [n, o] = $([]), s = O(), i = H(
294
294
  (a) => {
295
- if (t && i.current) {
296
- const l = t.getBranch(a), u = a.getChildren(l).map((c) => yt(c));
295
+ if (t && s.current) {
296
+ const l = t.getBranch(a), u = a.getChildren(l).map((c) => pt(c));
297
297
  o(u);
298
298
  }
299
299
  },
300
- [i, t, o]
300
+ [s, t, o, e]
301
301
  );
302
302
  return v(() => {
303
- e && s(e);
303
+ e && i(e);
304
304
  }, [e, t]), v(() => {
305
305
  if (t) {
306
- const [a, l] = bt(t.events);
306
+ const [a, l] = gt(t.events);
307
307
  return a("components:set-layout", (u, c) => {
308
- (e === c.node.parent || c.node.parent === t.nodes.root) && s(c.node.parent);
308
+ (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
309
309
  }), a("components:node-appended", (u, c) => {
310
- (e === c.node.parent || c.node.parent === t.nodes.root) && s(c.node.parent);
310
+ (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
311
311
  }), a("components:node-removed", (u, { parentNode: c }) => {
312
- (c === e || c === t.nodes.root) && s(c);
312
+ (c === e || c === t.nodes.root) && i(c);
313
313
  }), () => {
314
314
  l();
315
315
  };
316
316
  }
317
- }, [e, t, s]), n;
318
- }, wr = () => Y(Wt), Er = (e, t) => {
319
- const n = ye(), o = Z(), [i, s] = k(void 0), a = O(), l = e || n.type || "";
317
+ }, [e, t, i]), n;
318
+ }, bo = Gt, Jt = () => Y(Ft), vo = Jt, en = (e, t) => {
319
+ const n = ye(), o = W(), [s, i] = $(void 0), a = O(), l = e || n.type || "";
320
320
  return v(() => {
321
321
  if (l) {
322
322
  let u;
323
323
  return (t || o).getAsync("componentResolver").then((c) => {
324
324
  if (a.current) {
325
325
  const m = c.getComponent(l);
326
- s(m);
326
+ i(m);
327
327
  }
328
328
  u = c.registerResolver(l, (m) => {
329
- a.current && s(m);
329
+ a.current && i(m);
330
330
  });
331
331
  }), () => {
332
332
  u && u();
333
333
  };
334
334
  }
335
- }, [a, l, t, o]), i;
336
- }, At = (e) => {
337
- const t = be(e), n = U(), [o, i] = k({}), s = O();
335
+ }, [a, l, t, o]), s;
336
+ }, Eo = en, tn = (e) => {
337
+ const t = be(e), n = _(), [o, s] = $({}), i = O();
338
338
  return v(() => {
339
- t && s.current && i(t.attributes.context);
340
- }, [s, t]), v(() => {
339
+ t && i.current && s(t.attributes.context);
340
+ }, [i, t]), v(() => {
341
341
  if (n) {
342
342
  const a = n.events.subscribe(
343
343
  "components:context-changed",
344
344
  (l, u) => {
345
- t === u.node && s.current && i(u.node.attributes.context);
345
+ t === u.node && i.current && s(u.node.attributes.context);
346
346
  }
347
347
  );
348
348
  return () => {
349
349
  a();
350
350
  };
351
351
  }
352
- }, [s, n]), o;
353
- }, xr = () => Y(Ft), kr = () => {
354
- const e = U(), t = ye(), [n, o] = k([]), [i, s] = k();
352
+ }, [i, n, t]), o;
353
+ }, nn = tn, rn = () => Y(Yt), xo = rn, on = () => {
354
+ const e = _(), t = ye(), [n, o] = $([]), [s, i] = $();
355
355
  return v(() => {
356
356
  if (e && t) {
357
- const a = new vt(e).withId(t.id), l = e.actions(a, t.type || Q());
358
- s(l), n !== null && (n.forEach((u) => {
357
+ const a = new Ct(e).withId(t.id), l = e.actions(a, t.type || Q());
358
+ i(l), n !== null && (n.forEach((u) => {
359
359
  l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
360
360
  }), o(null));
361
361
  }
@@ -366,127 +366,127 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
366
366
  resolve: u,
367
367
  reject: c
368
368
  });
369
- }) : i.dispatch(a, l);
370
- }, I = (e, t, n = window, o = () => !0) => {
371
- const i = R(() => {
369
+ }) : s.dispatch(a, l);
370
+ }, wo = on, I = (e, t, n = window, o = () => !0) => {
371
+ const s = R(() => {
372
372
  });
373
373
  v(() => {
374
- i.current = t;
374
+ s.current = t;
375
375
  }, [t]), v(() => {
376
376
  if (!(n && o()))
377
377
  return;
378
- const a = (l) => i.current(l);
378
+ const a = (l) => s.current(l);
379
379
  return n.addEventListener(e, a), () => {
380
380
  n.removeEventListener(e, a);
381
381
  };
382
382
  }, [e, n]);
383
- }, Pt = (e) => {
384
- const t = Z(), { events: n } = (e || t).get("$widget");
383
+ }, sn = (e) => {
384
+ const t = W(), { events: n } = (e || t).get("$widget");
385
385
  return n;
386
- }, $r = () => {
387
- const [e, t] = k(!1);
386
+ }, an = sn, cn = () => {
387
+ const [e, t] = $(!1);
388
388
  return v(() => {
389
389
  const n = () => {
390
390
  t(!1);
391
- }, o = (i) => {
392
- i.keyCode === 9 && t(!0);
391
+ }, o = (s) => {
392
+ s.keyCode === 9 && t(!0);
393
393
  };
394
394
  return window.addEventListener("keydown", o), window.addEventListener("click", n), () => {
395
395
  window.removeEventListener("keydown", o), window.removeEventListener("click", n);
396
396
  };
397
397
  }, []), e;
398
- }, X = (e, t) => {
399
- const [n, o] = k(!1), i = H(
398
+ }, $o = cn, ln = (e, t) => {
399
+ const [n, o] = $(!1), s = H(
400
400
  (a) => {
401
401
  const { key: l } = a;
402
402
  l === e && (o(!0), t && t(a));
403
403
  },
404
404
  [o, t]
405
- ), s = H(
405
+ ), i = H(
406
406
  ({ key: a }) => {
407
407
  a === e && o(!1);
408
408
  },
409
409
  [o]
410
410
  );
411
- return I("keydown", i, window), I("keyup", s, window), n;
412
- }, Lr = (e) => {
413
- const t = be(e), n = U(), [o, i] = k({}), s = O();
411
+ return I("keydown", s, window), I("keyup", i, window), n;
412
+ }, X = ln, un = (e) => {
413
+ const t = be(e), n = _(), [o, s] = $({}), i = O();
414
414
  return v(() => {
415
- t && s.current && i(t.attributes.layout);
416
- }, [t, s]), v(() => {
415
+ t && i.current && s(t.attributes.layout);
416
+ }, [t, i]), v(() => {
417
417
  if (n) {
418
418
  const a = n.events.subscribe(
419
419
  "components:layout-changed",
420
420
  (l, u) => {
421
- t === u.node && s.current && i(u.node.attributes.layout);
421
+ t === u.node && i.current && s(u.node.attributes.layout);
422
422
  }
423
423
  );
424
424
  return () => {
425
425
  a();
426
426
  };
427
427
  }
428
- }, [n, s]), o;
429
- }, Ae = (e) => {
428
+ }, [n, i, t]), o;
429
+ }, ko = un, mn = (e) => {
430
430
  const t = R();
431
431
  return v(() => {
432
432
  t.current = e;
433
433
  }), t.current;
434
- }, Mr = () => Y(It), Sr = (e) => {
435
- const [t, n] = k(), o = Z(), i = O();
434
+ }, Fe = mn, dn = () => Y(At), Lo = dn, fn = (e) => {
435
+ const [t, n] = $(), o = W(), s = O();
436
436
  return v(() => {
437
- let s;
437
+ let i;
438
438
  const a = (e || o).get("$widget");
439
439
  if (!a)
440
440
  return;
441
441
  const { name: l, invoke: u } = a;
442
442
  return u("renderState").then((c) => {
443
- i.current && n(c);
443
+ s.current && n(c);
444
444
  }), (e || o).getAsync("actionResolver").then((c) => {
445
- s = c.subscribe(l, (m, g) => {
446
- switch (g) {
445
+ i = c.subscribe(l, (m, p) => {
446
+ switch (p) {
447
447
  case "close":
448
448
  case "open":
449
- i.current && n(
450
- g === "open" ? oe.open : oe.closed
449
+ s.current && n(
450
+ p === "open" ? oe.open : oe.closed
451
451
  );
452
452
  break;
453
453
  case "hide":
454
- i.current && n(oe.hidden);
454
+ s.current && n(oe.hidden);
455
455
  }
456
456
  });
457
457
  }), () => {
458
- s && s();
458
+ i && i();
459
459
  };
460
- }, [i]), t;
461
- }, Pe = () => Y(Ot), Rr = (e) => {
462
- const t = Z(), n = Pe(), [o, i] = k({ name: "", params: {} }), s = O();
460
+ }, [s]), t;
461
+ }, Mo = fn, hn = () => Y(Kt), Ae = hn, pn = (e) => {
462
+ const t = W(), n = Ae(), [o, s] = $({ name: "", params: {} }), i = O();
463
463
  return v(() => {
464
464
  const a = (e || t).get("$widget");
465
465
  if (!a)
466
466
  return;
467
467
  const { events: l } = a;
468
468
  return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
469
- if (s.current) {
470
- const { name: g, params: d } = m;
471
- De(d), i({ name: g, params: d });
469
+ if (i.current) {
470
+ const { name: p, params: d } = m;
471
+ De(d), s({ name: p, params: d });
472
472
  }
473
473
  });
474
- }, [s, e, t]), v(() => {
475
- if (n && n.history && s.current) {
474
+ }, [i, e, t]), v(() => {
475
+ if (n && n.history && i.current) {
476
476
  const a = n.getRouteData(), { name: l, params: u } = a;
477
- De(u), i({ name: l, params: u });
477
+ De(u), s({ name: l, params: u });
478
478
  }
479
- }, [n, s]), o;
480
- }, Ke = (e) => {
479
+ }, [n, i]), o;
480
+ }, So = pn, Ke = (e) => {
481
481
  const t = R(), n = R(0);
482
482
  let o;
483
- const i = H(() => {
483
+ const s = H(() => {
484
484
  var c;
485
485
  (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
486
486
  var m;
487
487
  (m = t.current) == null || m.classList.remove("humany-scrolling");
488
488
  }, 500);
489
- }, [t]), s = H(
489
+ }, [t]), i = H(
490
490
  (c) => {
491
491
  n.current = c.touches[0].clientY;
492
492
  },
@@ -495,17 +495,17 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
495
495
  (c) => {
496
496
  if (!c.cancelable)
497
497
  return;
498
- const m = c.touches[0].clientY, g = a(c.target);
499
- if (!g)
498
+ const m = c.touches[0].clientY, p = a(c.target);
499
+ if (!p)
500
500
  return;
501
- const d = g.scrollTop, f = n.current - m < 0 ? "up" : "down", C = d <= 0 && f === "up", E = d >= g.scrollHeight - g.offsetHeight && f === "down";
502
- (C || E) && c.preventDefault(), n.current = m;
501
+ const d = p.scrollTop, f = n.current - m < 0 ? "up" : "down", C = d <= 0 && f === "up", x = d >= p.scrollHeight - p.offsetHeight && f === "down";
502
+ (C || x) && c.preventDefault(), n.current = m;
503
503
  },
504
504
  [t, n]
505
505
  );
506
- 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 ? [Kt, t] : ["", t];
507
- }, Kt = `
508
- overflow-y: ${Ne() === ge.Chrome || Ne() === ge.EdgeChromium ? "overlay" : "auto"};
506
+ return I("scroll", s, t.current, () => t.current && e), I("touchstart", i, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [gn, t] : ["", t];
507
+ }, gn = `
508
+ overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
509
509
  overflow-x: hidden;
510
510
  -ms-overflow-style: none; /* IE 10+ */
511
511
  scrollbar-width: thin; /* Firefox */
@@ -532,28 +532,28 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
532
532
  background-color: #7F7F7F;
533
533
  }
534
534
  }
535
- `, Hr = () => {
536
- const [e, t] = k(null), n = Z(), o = O();
535
+ `, Cn = () => {
536
+ const [e, t] = $(null), n = W(), o = O();
537
537
  return v(() => {
538
- n.get("settings").then((i) => {
539
- o.current && t(i);
538
+ n.get("settings").then((s) => {
539
+ o.current && t(s);
540
540
  });
541
541
  }, [o]), e;
542
- }, Ye = (e = !1) => {
543
- const [t, n] = k(e), o = H((i) => {
544
- n(typeof i == "boolean" ? i : (s) => !s);
542
+ }, Ro = Cn, yn = (e = !1) => {
543
+ const [t, n] = $(e), o = H((s) => {
544
+ n(typeof s == "boolean" ? s : (i) => !i);
545
545
  }, []);
546
546
  return [t, o];
547
- }, zr = (e) => {
548
- const t = Z(), n = U(), o = t.get("widgetDOMElement"), [i, s] = k(null), [a, l] = k(null), u = O();
547
+ }, Ye = yn, Ho = (e) => {
548
+ const t = W(), n = _(), o = t.get("widgetDOMElement"), [s, i] = $(null), [a, l] = $(null), u = O();
549
549
  v(() => {
550
550
  if (n && u.current) {
551
- const m = n.nodes.all.find((d) => d.name === "root-area"), g = n.nodes.all.find((d) => d.type === "view");
552
- if (!(g != null && g.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
551
+ const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
552
+ if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
553
553
  e();
554
554
  else {
555
- const d = (E = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${E}"]`), f = d(g == null ? void 0 : g.id);
556
- f && s(f);
555
+ const d = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), f = d(p == null ? void 0 : p.id);
556
+ f && i(f);
557
557
  const C = d(m == null ? void 0 : m.id);
558
558
  C && l(C);
559
559
  }
@@ -561,32 +561,32 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
561
561
  }, [n, t, u]);
562
562
  const c = H(
563
563
  (m) => {
564
- u.current && (m.target === i || m.target === a) && e();
564
+ u.current && (m.target === s || m.target === a) && e();
565
565
  },
566
- [e, u, i, a]
566
+ [e, u, s, a]
567
567
  );
568
- I("transitionend", c, i), I("transitionend", c, a);
569
- }, ce = (e, t, n = [], o) => {
570
- const i = Pt(o);
568
+ I("transitionend", c, s), I("transitionend", c, a);
569
+ }, bn = (e, t, n = [], o) => {
570
+ const s = an(o);
571
571
  return v(() => {
572
- if (i) {
573
- const s = i.subscribe(e, t);
572
+ if (s) {
573
+ const i = s.subscribe(e, t);
574
574
  return () => {
575
- s();
575
+ i();
576
576
  };
577
577
  }
578
- }, [i].concat(n)), (s) => i == null ? void 0 : i.dispatch(e, s);
579
- }, ve = (e, t) => {
580
- const n = ce("widget:menu-toggled", (o, i) => {
581
- i !== e && t();
578
+ }, [s].concat(n)), (i) => s == null ? void 0 : s.dispatch(e, i);
579
+ }, ce = bn, vn = (e, t) => {
580
+ const n = ce("widget:menu-toggled", (o, s) => {
581
+ s !== e && t();
582
582
  });
583
583
  return () => n(e);
584
- }, we = (o) => {
585
- var i = o, { className: e, children: t } = i, n = S(i, ["className", "children"]);
584
+ }, ve = vn, En = (o) => {
585
+ var s = o, { className: e, children: t } = s, n = S(s, ["className", "children"]);
586
586
  return /* @__PURE__ */ r.createElement("span", h({
587
587
  className: M(e, "humany-text")
588
588
  }, V(n)), t);
589
- }, je = (e) => L`
589
+ }, Ee = En, je = (e) => L`
590
590
  display: flex;
591
591
  justify-content: center;
592
592
  flex-direction: column;
@@ -595,7 +595,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
595
595
  border: ${e.theme.border};
596
596
  box-shadow: ${e.theme.boxShadow || "none"};
597
597
  ${e["data-loading"] && "min-height: 150px;"}
598
- `, Yt = (e) => {
598
+ `, xn = (e) => {
599
599
  var t, n, o;
600
600
  return L`
601
601
  cursor: pointer;
@@ -607,11 +607,11 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
607
607
  font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
608
608
  font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
609
609
  `;
610
- }, Dr = (e) => {
610
+ }, To = (e) => {
611
611
  var a;
612
- const { primaryColor: t, secondaryColor: n, active: o, theme: i, disabled: s } = e;
612
+ const { primaryColor: t, secondaryColor: n, active: o, theme: s, disabled: i } = e;
613
613
  return L`
614
- ${Yt(e)}
614
+ ${xn(e)}
615
615
  border: 1px solid ${o ? n : t};
616
616
  background-color: ${o ? t : n};
617
617
 
@@ -624,10 +624,10 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
624
624
  a {
625
625
  transition: color 200ms ease-out;
626
626
  color: ${o ? n : t};
627
- font-size: ${(a = i.fonts) == null ? void 0 : a.normal};
627
+ font-size: ${(a = s.fonts) == null ? void 0 : a.normal};
628
628
  }
629
629
 
630
- ${!s && L`
630
+ ${!i && L`
631
631
  &:hover {
632
632
  background-color: ${t};
633
633
  color: ${n};
@@ -641,27 +641,27 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
641
641
  }
642
642
 
643
643
  &:focus-visible {
644
- ${P(e)};
644
+ ${A(e)};
645
645
  }
646
646
  `}
647
647
  `;
648
- }, P = (e) => {
648
+ }, A = (e) => {
649
649
  var t, n, o;
650
650
  return L`
651
651
  outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
652
652
  color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
653
653
  border-color: transparent;
654
654
  `;
655
- }, jt = (e) => L`
656
- ${P(e)}
655
+ }, wn = (e) => L`
656
+ ${A(e)}
657
657
  text-decoration: underline;
658
- `, Br = (e) => {
658
+ `, Do = (e) => {
659
659
  var t;
660
660
  return L`
661
- ${P(e)}
661
+ ${A(e)}
662
662
  outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
663
663
  `;
664
- }, Ee = y(ae)`
664
+ }, xe = y(ae)`
665
665
  position: absolute;
666
666
  top: ${(e) => {
667
667
  var t;
@@ -681,7 +681,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
681
681
  }
682
682
 
683
683
  &:focus-visible {
684
- ${P}
684
+ ${A}
685
685
  padding: ${(e) => {
686
686
  var t;
687
687
  return (t = e.theme.sizes) == null ? void 0 : t.small;
@@ -689,7 +689,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
689
689
  height: 15px;
690
690
  box-sizing: content-box;
691
691
  }
692
- `, Ve = y(we)`
692
+ `, Ve = y(Ee)`
693
693
  font-size: ${(e) => {
694
694
  var t;
695
695
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -700,7 +700,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
700
700
  var t;
701
701
  return (t = e.theme.colors) == null ? void 0 : t.text;
702
702
  }};
703
- `, Xt = (e) => {
703
+ `, $n = (e) => {
704
704
  var t;
705
705
  return L`
706
706
  padding: 0;
@@ -722,11 +722,11 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
722
722
  margin: 0;
723
723
  }
724
724
  `;
725
- }, Tr = (e) => {
726
- var t, n, o, i;
725
+ }, Bo = (e) => {
726
+ var t, n, o, s;
727
727
  return L`
728
728
  > div {
729
- ${se(e)(
729
+ ${ie(e)(
730
730
  "> h1",
731
731
  L`
732
732
  margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
@@ -738,15 +738,15 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
738
738
  )}
739
739
  }
740
740
  > ul {
741
- ${Xt(e)}
741
+ ${$n(e)}
742
742
  }
743
- ${se(e)(
743
+ ${ie(e)(
744
744
  "h1",
745
745
  L`
746
746
  display: flex;
747
747
  align-items: center;
748
748
  i {
749
- margin: 7px ${(i = e.theme.sizes) == null ? void 0 : i.normal} 0 0;
749
+ margin: 7px ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0 0;
750
750
  width: 24px;
751
751
  display: inline-block;
752
752
  vertical-align: text-bottom;
@@ -758,8 +758,8 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
758
758
  `
759
759
  )}
760
760
  `;
761
- }, Nr = (e) => {
762
- var t, n, o, i, s, a;
761
+ }, zo = (e) => {
762
+ var t, n, o, s, i, a;
763
763
  return L`
764
764
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
765
765
  font-weight: 300;
@@ -787,7 +787,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
787
787
  a {
788
788
  color: ${(o = e.theme.colors) == null ? void 0 : o.link};
789
789
  &:focus-visible {
790
- ${jt(e)};
790
+ ${wn(e)};
791
791
  }
792
792
  }
793
793
 
@@ -798,11 +798,11 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
798
798
 
799
799
  p {
800
800
  word-break: break-word;
801
- margin: ${(i = e.theme.sizes) == null ? void 0 : i.normal} 0;
801
+ margin: ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0;
802
802
  }
803
803
 
804
804
  p:first-child {
805
- margin: 0 0 ${(s = e.theme.sizes) == null ? void 0 : s.normal};
805
+ margin: 0 0 ${(i = e.theme.sizes) == null ? void 0 : i.normal};
806
806
  }
807
807
 
808
808
  p:last-child {
@@ -813,19 +813,19 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
813
813
  margin: 0;
814
814
  }
815
815
  `;
816
- }, G = ({
816
+ }, kn = ({
817
817
  elementId: e = "humany-portal-elements",
818
818
  parent: t = document.body,
819
819
  children: n
820
820
  }) => {
821
- const [o] = k(() => {
822
- const i = document.getElementById(e) || document.createElement("div");
823
- return i.id = e, i;
821
+ const [o] = $(() => {
822
+ const s = document.getElementById(e) || document.createElement("div");
823
+ return s.id = e, s;
824
824
  });
825
825
  return v(() => (t.appendChild(o), () => {
826
826
  o.childElementCount <= 1 && t.removeChild(o);
827
827
  }), [o]), Et(n, o);
828
- }, J = (l) => {
828
+ }, G = kn, Ln = (l) => {
829
829
  var u = l, {
830
830
  text: e = "",
831
831
  backgroundSize: t = "contain",
@@ -834,8 +834,8 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
834
834
  content: "",
835
835
  type: ""
836
836
  },
837
- elementStyle: i = {},
838
- className: s
837
+ elementStyle: s = {},
838
+ className: i
839
839
  } = u, a = S(u, [
840
840
  "text",
841
841
  "backgroundSize",
@@ -844,7 +844,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
844
844
  "elementStyle",
845
845
  "className"
846
846
  ]);
847
- const { type: c, content: m } = o, g = {
847
+ const { type: c, content: m } = o, p = {
848
848
  "aria-label": e,
849
849
  role: "presentation"
850
850
  };
@@ -858,14 +858,14 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
858
858
  backgroundAttachment: "center"
859
859
  };
860
860
  return /* @__PURE__ */ r.createElement("i", h(h({
861
- className: M(s, "humany-icon", "humany-custom-icon"),
861
+ className: M(i, "humany-icon", "humany-custom-icon"),
862
862
  title: e,
863
- style: h(h({}, d), i)
864
- }, g), a));
863
+ style: h(h({}, d), s)
864
+ }, p), a));
865
865
  }
866
866
  case "Svg": {
867
- const d = $(h({
868
- className: M(s, "humany-icon"),
867
+ const d = k(h({
868
+ className: M(i, "humany-icon"),
869
869
  width: `${n}`,
870
870
  fill: "none",
871
871
  xmlns: "http://www.w3.org/2000/svg"
@@ -954,7 +954,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
954
954
  stroke: "black"
955
955
  }));
956
956
  case "caret-up":
957
- return /* @__PURE__ */ r.createElement(_t, h({
957
+ return /* @__PURE__ */ r.createElement(Mn, h({
958
958
  viewBox: "0 0 14 14",
959
959
  style: f
960
960
  }, d), /* @__PURE__ */ r.createElement("line", {
@@ -1216,7 +1216,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
1216
1216
  fill: "white"
1217
1217
  }));
1218
1218
  case "video":
1219
- return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ r.createElement("svg", $(h({
1219
+ return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ r.createElement("svg", k(h({
1220
1220
  viewBox: "0 0 25 25"
1221
1221
  }, d), {
1222
1222
  style: f
@@ -1330,21 +1330,21 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
1330
1330
  return null;
1331
1331
  }
1332
1332
  case "FontAwesome":
1333
- return /* @__PURE__ */ r.createElement(un, h({
1334
- className: s,
1333
+ return /* @__PURE__ */ r.createElement(Un, h({
1334
+ className: i,
1335
1335
  faIcon: m,
1336
1336
  title: e
1337
1337
  }, a));
1338
1338
  default:
1339
1339
  case "Text":
1340
1340
  return e ? /* @__PURE__ */ r.createElement("i", h(h({
1341
- className: M(s, "humany-letter-symbol"),
1341
+ className: M(i, "humany-letter-symbol"),
1342
1342
  title: e
1343
- }, g), a), e.substring(0, 2)) : null;
1343
+ }, p), a), e.substring(0, 2)) : null;
1344
1344
  }
1345
- }, _t = y.svg`
1345
+ }, Mn = y.svg`
1346
1346
  transform: rotate(180deg);
1347
- `, Ut = {
1347
+ `, J = Ln, Sn = {
1348
1348
  h1: "h1",
1349
1349
  h2: "h2",
1350
1350
  h3: "h3",
@@ -1353,50 +1353,50 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
1353
1353
  h6: "h6",
1354
1354
  p: "p",
1355
1355
  span: "span"
1356
- }, q = ({ variant: e, component: t, className: n, children: o }) => {
1357
- const { typographyVariantMapping: i = {} } = At(), s = h(h({}, Ut), i), a = t || s[e] || "span";
1358
- return /* @__PURE__ */ r.createElement(qt, {
1356
+ }, Rn = ({ variant: e, component: t, className: n, children: o }) => {
1357
+ const { typographyVariantMapping: s = {} } = nn(), i = h(h({}, Sn), s), a = t || i[e] || "span";
1358
+ return /* @__PURE__ */ r.createElement(Hn, {
1359
1359
  className: n,
1360
1360
  as: a
1361
1361
  }, o);
1362
- }, qt = y.span``;
1363
- 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 || {});
1364
- const Gt = 300, Vr = ({
1362
+ }, Hn = y.span``, q = Rn;
1363
+ var Tn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Tn || {});
1364
+ const Dn = 300, Bn = ({
1365
1365
  className: e,
1366
1366
  children: t,
1367
1367
  header: n,
1368
1368
  onToggle: o,
1369
- trigger: i,
1370
- fullScreen: s = !1,
1369
+ trigger: s,
1370
+ fullScreen: i = !1,
1371
1371
  closeButtonAriaLabel: a,
1372
1372
  animation: l = {
1373
1373
  type: "slide-in-bottom"
1374
1374
  }
1375
1375
  }) => {
1376
- const { duration: u = Gt } = l, c = R(), m = R(), [g, d] = Ke(!0), [f, C] = Ye(), E = Ae(f), b = R(Q());
1376
+ const { duration: u = Dn } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, C] = Ye(), x = Fe(f), b = R(Q());
1377
1377
  v(() => {
1378
1378
  o && o(f);
1379
1379
  }, [f]);
1380
- const w = X("Escape");
1380
+ const E = X("Escape");
1381
1381
  v(() => {
1382
- w && C(!1);
1383
- }, [w]), I(
1382
+ E && C(!1);
1383
+ }, [E]), I(
1384
1384
  "click",
1385
- (T) => {
1386
- const { target: z } = T;
1387
- !m.current || !d.current || !z || m.current !== z && d.current !== z && !d.current.contains(z) && !m.current.contains(z) && C(!1);
1385
+ (z) => {
1386
+ const { target: T } = z;
1387
+ !m.current || !d.current || !T || m.current !== T && d.current !== T && !d.current.contains(T) && !m.current.contains(T) && C(!1);
1388
1388
  },
1389
1389
  window
1390
1390
  );
1391
- const p = ve(b.current, () => {
1391
+ const g = ve(b.current, () => {
1392
1392
  C(!1);
1393
1393
  });
1394
1394
  ce("router:changed", () => {
1395
1395
  C(!1);
1396
1396
  }), v(() => {
1397
- f && c.current ? c.current.focus() : !f && m.current && E && m.current.focus();
1397
+ f && c.current ? c.current.focus() : !f && m.current && x && m.current.focus();
1398
1398
  }, [f, c.current, m.current]);
1399
- const B = on[l.type];
1399
+ const B = In[l.type];
1400
1400
  return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ie, {
1401
1401
  in: f,
1402
1402
  className: "humany-drawer-transition",
@@ -1405,34 +1405,34 @@ const Gt = 300, Vr = ({
1405
1405
  timeout: u
1406
1406
  }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(B, {
1407
1407
  duration: u,
1408
- fullScreen: s,
1408
+ fullScreen: i,
1409
1409
  className: M(
1410
1410
  e,
1411
1411
  "humany-drawer",
1412
1412
  `humany-drawer-${b.current}`
1413
1413
  ),
1414
1414
  clientHeight: document.body.clientHeight,
1415
- css: g,
1415
+ css: p,
1416
1416
  ref: d
1417
- }, /* @__PURE__ */ r.createElement(Ee, {
1417
+ }, /* @__PURE__ */ r.createElement(xe, {
1418
1418
  onClick: () => C(!1),
1419
1419
  tabIndex: 0,
1420
1420
  ref: c,
1421
1421
  "aria-label": a
1422
1422
  }, /* @__PURE__ */ r.createElement(J, {
1423
1423
  symbol: { type: "Svg", content: "close" }
1424
- })), !!n && /* @__PURE__ */ r.createElement(Jt, {
1424
+ })), !!n && /* @__PURE__ */ r.createElement(zn, {
1425
1425
  variant: "h1",
1426
1426
  className: "humany-drawer-header"
1427
- }, n), t))), r.cloneElement(i, {
1428
- onClick: (T) => {
1429
- C(), p();
1427
+ }, n), t))), r.cloneElement(s, {
1428
+ onClick: (z) => {
1429
+ C(), g();
1430
1430
  },
1431
1431
  ref: m,
1432
- "aria-label": i.props.title,
1432
+ "aria-label": s.props.title,
1433
1433
  "aria-expanded": f
1434
1434
  }));
1435
- }, le = y.div`
1435
+ }, No = Bn, le = y.div`
1436
1436
  font-family: ${(e) => {
1437
1437
  var t;
1438
1438
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1449,7 +1449,7 @@ const Gt = 300, Vr = ({
1449
1449
  box-shadow: ${(e) => e.theme.boxShadow};
1450
1450
  background: #ffffff;
1451
1451
  ${(e) => e.css && e.css}
1452
- `, Jt = y(q)`
1452
+ `, zn = y(q)`
1453
1453
  padding: ${(e) => {
1454
1454
  var t;
1455
1455
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
@@ -1474,7 +1474,7 @@ const Gt = 300, Vr = ({
1474
1474
  line-height: 1.2em;
1475
1475
  `, ue = (e) => L`
1476
1476
  transition: ${e.duration}ms;
1477
- `, en = y(le)`
1477
+ `, Nn = y(le)`
1478
1478
  max-height: 0;
1479
1479
  ${ue}
1480
1480
 
@@ -1491,7 +1491,7 @@ const Gt = 300, Vr = ({
1491
1491
  &.humany-drawer-transition-exit-done {
1492
1492
  max-height: 0;
1493
1493
  }
1494
- `, tn = y(le)`
1494
+ `, Vn = y(le)`
1495
1495
  ${ue}
1496
1496
  transform: translateX(100%);
1497
1497
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
@@ -1509,7 +1509,7 @@ const Gt = 300, Vr = ({
1509
1509
  &.humany-drawer-transition-exit-done {
1510
1510
  transform: translateX(100%);
1511
1511
  }
1512
- `, nn = y(le)`
1512
+ `, Wn = y(le)`
1513
1513
  ${ue}
1514
1514
  transform: translateX(-100%);
1515
1515
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
@@ -1527,7 +1527,7 @@ const Gt = 300, Vr = ({
1527
1527
  &.humany-drawer-transition-exit-done {
1528
1528
  transform: translateX(-100%);
1529
1529
  }
1530
- `, rn = y(le)`
1530
+ `, Zn = y(le)`
1531
1531
  ${ue}
1532
1532
  bottom: unset;
1533
1533
  top: 0;
@@ -1546,69 +1546,69 @@ const Gt = 300, Vr = ({
1546
1546
  &.humany-drawer-transition-exit-done {
1547
1547
  height: 0;
1548
1548
  }
1549
- `, on = {
1550
- ["slide-in-bottom"]: en,
1551
- ["slide-in-right"]: tn,
1552
- ["slide-in-left"]: nn,
1553
- ["slide-in-top"]: rn
1554
- }, Xe = (e, t, n) => {
1555
- const [o, i] = k(0), [s, a] = k(0), l = H(
1549
+ `, In = {
1550
+ ["slide-in-bottom"]: Nn,
1551
+ ["slide-in-right"]: Vn,
1552
+ ["slide-in-left"]: Wn,
1553
+ ["slide-in-top"]: Zn
1554
+ }, On = (e, t, n) => {
1555
+ const [o, s] = $(0), [i, a] = $(0), l = H(
1556
1556
  (u, c) => {
1557
1557
  if (u.preventDefault(), c) {
1558
1558
  const m = c.getBoundingClientRect();
1559
- i(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
1559
+ s(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
1560
1560
  }
1561
1561
  },
1562
- [o, s, i, a]
1562
+ [o, i, s, a]
1563
1563
  );
1564
1564
  return v(() => {
1565
1565
  if (!n || !e)
1566
1566
  return;
1567
1567
  const u = n.getBoundingClientRect(), c = {
1568
1568
  x: o,
1569
- y: s
1569
+ y: i
1570
1570
  };
1571
- 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);
1572
- }, [n, e, t]), [{ x: o, y: s }, l];
1573
- }, Zr = r.forwardRef(
1574
- (a, s) => {
1575
- var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, i = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1571
+ u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && s(c.x), c.y !== i && a(c.y);
1572
+ }, [n, e, t]), [{ x: o, y: i }, l];
1573
+ }, Xe = On, Pn = r.forwardRef(
1574
+ (a, i) => {
1575
+ var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1576
1576
  const u = R(), c = R(), m = R();
1577
- Ce(s, () => m.current, [m.current]);
1578
- const g = R(Q()), [d, f] = k(!1), C = Ae(d), [{ x: E, y: b }, w] = Xe(d, g.current, m.current), p = X("Escape");
1577
+ Ce(i, () => m.current, [m.current]);
1578
+ const p = R(Q()), [d, f] = $(!1), C = Fe(d), [{ x, y: b }, E] = Xe(d, p.current, m.current), g = X("Escape");
1579
1579
  v(() => {
1580
- p && f(!1);
1581
- }, [p]), v(() => {
1580
+ g && f(!1);
1581
+ }, [g]), v(() => {
1582
1582
  d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
1583
1583
  }, [d, u.current, c.current]), I(
1584
1584
  "click",
1585
- (z) => {
1586
- const { target: j } = z;
1585
+ (T) => {
1586
+ const { target: j } = T;
1587
1587
  !m.current || !j || m.current !== j && !m.current.contains(j) && f(!1);
1588
1588
  },
1589
1589
  window
1590
1590
  ), ce("router:changed", () => {
1591
1591
  f(!1);
1592
1592
  });
1593
- const B = ve(g.current, () => {
1593
+ const B = ve(p.current, () => {
1594
1594
  f(!1);
1595
- }), T = H(
1596
- (z) => {
1597
- z.stopPropagation(), w(z, c.current), f(!d), B();
1595
+ }), z = H(
1596
+ (T) => {
1597
+ T.stopPropagation(), E(T, c.current), f(!d), B();
1598
1598
  },
1599
- [B, w, f]
1599
+ [B, E, f]
1600
1600
  );
1601
- return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(sn, $(h({
1601
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(Fn, k(h({
1602
1602
  className: M(
1603
1603
  "humany-dropdown",
1604
- `humany-dropdown-${g.current}`,
1604
+ `humany-dropdown-${p.current}`,
1605
1605
  e
1606
1606
  )
1607
- }, i), {
1608
- x: E,
1607
+ }, s), {
1608
+ x,
1609
1609
  y: b,
1610
1610
  ref: m
1611
- }), /* @__PURE__ */ r.createElement(Ee, {
1611
+ }), /* @__PURE__ */ r.createElement(xe, {
1612
1612
  onClick: () => f(!1),
1613
1613
  tabIndex: 0,
1614
1614
  ref: u,
@@ -1616,13 +1616,13 @@ const Gt = 300, Vr = ({
1616
1616
  }, /* @__PURE__ */ r.createElement(J, {
1617
1617
  symbol: { type: "Svg", content: "close" }
1618
1618
  })), t)), r.cloneElement(n, {
1619
- onClick: T,
1619
+ onClick: z,
1620
1620
  ref: c,
1621
1621
  "aria-label": n.props.title,
1622
1622
  "aria-expanded": d
1623
1623
  }));
1624
1624
  }
1625
- ), sn = y.div`
1625
+ ), Vo = Pn, Fn = y.div`
1626
1626
  ${je}
1627
1627
  padding: ${(e) => {
1628
1628
  var t;
@@ -1633,55 +1633,55 @@ const Gt = 300, Vr = ({
1633
1633
  box-shadow: ${(e) => e.theme.boxShadow};
1634
1634
 
1635
1635
  ${(e) => {
1636
- var n, o, i;
1636
+ var n, o, s;
1637
1637
  let t = "";
1638
- 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;
1638
+ 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: ${((s = e.theme.sizes) == null ? void 0 : s.normal) || "0px"};`, t;
1639
1639
  }};
1640
- `, an = (t) => {
1640
+ `, An = (t) => {
1641
1641
  var e = S(t, []);
1642
- return /* @__PURE__ */ r.createElement(cn, h({}, e));
1643
- }, cn = y.div`
1642
+ return /* @__PURE__ */ r.createElement(Yn, h({}, e));
1643
+ }, Kn = An, Yn = y.div`
1644
1644
  display: none;
1645
- `, Wr = N(
1646
- (a, s) => {
1647
- var l = a, { children: e, columns: t, gap: n, className: o } = l, i = S(l, ["children", "columns", "gap", "className"]);
1648
- return /* @__PURE__ */ r.createElement(ln, $(h(h({
1645
+ `, Wo = N(
1646
+ (a, i) => {
1647
+ var l = a, { children: e, columns: t, gap: n, className: o } = l, s = S(l, ["children", "columns", "gap", "className"]);
1648
+ return /* @__PURE__ */ r.createElement(jn, k(h(h({
1649
1649
  className: M(o, "humany-grid"),
1650
1650
  "data-columns": t,
1651
1651
  "data-gap": n
1652
- }, Oe(i)), V(i)), {
1653
- ref: s
1652
+ }, Dt(s)), V(s)), {
1653
+ ref: i
1654
1654
  }), e);
1655
1655
  }
1656
- ), ln = y.div`
1656
+ ), jn = y.div`
1657
1657
  display: grid;
1658
1658
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1659
1659
  grid-gap: ${(e) => e["data-gap"]};
1660
1660
  justify-content: center;
1661
1661
  grid-auto-rows: max-content;
1662
- ${Ht}
1663
- `, _e = N(
1664
- (s, i) => {
1665
- var a = s, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1666
- const l = Z(), [u, c] = k();
1662
+ ${Tt}
1663
+ `, Ue = N(
1664
+ (i, s) => {
1665
+ var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1666
+ const l = W(), [u, c] = $();
1667
1667
  return v(() => {
1668
- const m = Tt(l, n), g = $(h(h({}, m), e), {
1668
+ const m = Vt(l, n), p = k(h(h({}, m), e), {
1669
1669
  transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
1670
- }), d = Dt(n, g);
1670
+ }), d = zt(n, p);
1671
1671
  c(d);
1672
- }, [n, e]), /* @__PURE__ */ r.createElement("div", $(h({
1672
+ }, [n, e]), /* @__PURE__ */ r.createElement("div", k(h({
1673
1673
  className: M(t, "humany-html")
1674
1674
  }, V(o)), {
1675
- ref: i
1675
+ ref: s
1676
1676
  }), u);
1677
1677
  }
1678
- ), un = (s) => {
1679
- var a = s, {
1678
+ ), Xn = (i) => {
1679
+ var a = i, {
1680
1680
  faIcon: e,
1681
1681
  title: t,
1682
1682
  className: n = "",
1683
1683
  role: o = "presentation"
1684
- } = a, i = S(a, [
1684
+ } = a, s = S(a, [
1685
1685
  "faIcon",
1686
1686
  "title",
1687
1687
  "className",
@@ -1691,19 +1691,19 @@ const Gt = 300, Vr = ({
1691
1691
  className: M(n, `fa fa-${e}`),
1692
1692
  title: t,
1693
1693
  role: o
1694
- }, V(i)));
1695
- }, Ir = N(
1696
- (g, m) => {
1697
- var d = g, {
1694
+ }, V(s)));
1695
+ }, Un = Xn, Zo = N(
1696
+ (p, m) => {
1697
+ var d = p, {
1698
1698
  className: e = "",
1699
1699
  autoFocus: t = !1,
1700
1700
  onFocusChange: n = () => {
1701
1701
  },
1702
1702
  onEnter: o = () => {
1703
1703
  },
1704
- onEscape: i = () => {
1704
+ onEscape: s = () => {
1705
1705
  },
1706
- selectAllOnFocus: s,
1706
+ selectAllOnFocus: i,
1707
1707
  onChange: a = () => {
1708
1708
  },
1709
1709
  disabled: l = !1,
@@ -1719,40 +1719,40 @@ const Gt = 300, Vr = ({
1719
1719
  "disabled",
1720
1720
  "type"
1721
1721
  ]);
1722
- const [f, C] = k(t), E = R();
1723
- Ce(m, () => E.current), v(() => {
1724
- var p;
1725
- t && ((p = E == null ? void 0 : E.current) == null || p.focus());
1726
- }, [t, m, E]);
1727
- const b = (p, B) => {
1728
- C(p), n && n(p), s && p && B.target.select();
1729
- }, w = $(h({}, V(c)), {
1722
+ const [f, C] = $(t), x = R();
1723
+ Ce(m, () => x.current), v(() => {
1724
+ var g;
1725
+ t && ((g = x == null ? void 0 : x.current) == null || g.focus());
1726
+ }, [t, m, x]);
1727
+ const b = (g, B) => {
1728
+ C(g), n && n(g), i && g && B.target.select();
1729
+ }, E = k(h({}, V(c)), {
1730
1730
  disabled: l,
1731
1731
  autoFocus: t,
1732
1732
  type: u,
1733
- onKeyDown: (p) => {
1734
- p.key === "Enter" && f && o(p), p.key === "Escape" && f && i(p);
1733
+ onKeyDown: (g) => {
1734
+ g.key === "Enter" && f && o(g), g.key === "Escape" && f && s(g);
1735
1735
  },
1736
- onFocus: (p) => b(!0, p),
1737
- onBlur: (p) => b(!1, p),
1738
- onChange: (p) => a(p.target.value || ""),
1736
+ onFocus: (g) => b(!0, g),
1737
+ onBlur: (g) => b(!1, g),
1738
+ onChange: (g) => a(g.target.value || ""),
1739
1739
  className: M(e, "humany-input"),
1740
1740
  "data-type": u
1741
1741
  });
1742
- return u !== "textarea" ? /* @__PURE__ */ r.createElement("input", $(h({}, w), {
1743
- ref: E
1744
- })) : /* @__PURE__ */ r.createElement("textarea", $(h({}, w), {
1745
- ref: E
1742
+ return u !== "textarea" ? /* @__PURE__ */ r.createElement("input", k(h({}, E), {
1743
+ ref: x
1744
+ })) : /* @__PURE__ */ r.createElement("textarea", k(h({}, E), {
1745
+ ref: x
1746
1746
  }));
1747
1747
  }
1748
- ), mn = N(
1749
- (a, s) => {
1750
- var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, i = S(l, ["className", "items", "renderItem", "renderLi"]);
1751
- return /* @__PURE__ */ r.createElement("ul", $(h({
1748
+ ), _n = N(
1749
+ (a, i) => {
1750
+ var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, s = S(l, ["className", "items", "renderItem", "renderLi"]);
1751
+ return /* @__PURE__ */ r.createElement("ul", k(h({
1752
1752
  className: M(e, "humany-list"),
1753
1753
  "data-item-count": t.length
1754
- }, V(i)), {
1755
- ref: s
1754
+ }, V(s)), {
1755
+ ref: i
1756
1756
  }), t.map(
1757
1757
  (u, c, m) => o ? /* @__PURE__ */ r.createElement("li", {
1758
1758
  className: "humany-list-item",
@@ -1760,37 +1760,37 @@ const Gt = 300, Vr = ({
1760
1760
  }, n(u, c, m)) : n(u, c, m)
1761
1761
  ));
1762
1762
  }
1763
- ), dn = N(
1763
+ ), qn = N(
1764
1764
  (u, l) => {
1765
- 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"]);
1766
- return /* @__PURE__ */ r.createElement("div", $(h({
1765
+ var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: s, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1766
+ return /* @__PURE__ */ r.createElement("div", k(h({
1767
1767
  className: M(o, "humany-paragraph")
1768
1768
  }, V(a)), {
1769
1769
  ref: l
1770
1770
  }), n ? /* @__PURE__ */ r.createElement(q, {
1771
1771
  variant: "h1"
1772
- }, s ? /* @__PURE__ */ r.createElement(J, {
1773
- symbol: s
1774
- }) : null, n) : null, t ? /* @__PURE__ */ r.createElement(_e, {
1772
+ }, i ? /* @__PURE__ */ r.createElement(J, {
1773
+ symbol: i
1774
+ }) : null, n) : null, t ? /* @__PURE__ */ r.createElement(Ue, {
1775
1775
  html: t,
1776
- htmlParseInstruction: i
1777
- }) : null, e ? /* @__PURE__ */ r.createElement(we, null, e) : null);
1776
+ htmlParseInstruction: s
1777
+ }) : null, e ? /* @__PURE__ */ r.createElement(Ee, null, e) : null);
1778
1778
  }
1779
- ), fn = N(
1779
+ ), Qn = N(
1780
1780
  (f, d) => {
1781
1781
  var C = f, {
1782
1782
  header: e,
1783
1783
  customHeader: t,
1784
1784
  text: n,
1785
1785
  html: o,
1786
- className: i,
1787
- children: s,
1786
+ className: s,
1787
+ children: i,
1788
1788
  symbol: a,
1789
1789
  items: l,
1790
1790
  renderItem: u,
1791
1791
  renderLi: c,
1792
1792
  ulProps: m
1793
- } = C, g = S(C, [
1793
+ } = C, p = S(C, [
1794
1794
  "header",
1795
1795
  "customHeader",
1796
1796
  "text",
@@ -1803,56 +1803,56 @@ const Gt = 300, Vr = ({
1803
1803
  "renderLi",
1804
1804
  "ulProps"
1805
1805
  ]);
1806
- return /* @__PURE__ */ r.createElement("div", $(h({
1807
- className: M(i, "humany-item-list"),
1806
+ return /* @__PURE__ */ r.createElement("div", k(h({
1807
+ className: M(s, "humany-item-list"),
1808
1808
  "data-item-count": l.length
1809
- }, V(g)), {
1809
+ }, V(p)), {
1810
1810
  ref: d
1811
- }), t || (e || n || o ? /* @__PURE__ */ r.createElement(dn, {
1811
+ }), t || (e || n || o ? /* @__PURE__ */ r.createElement(qn, {
1812
1812
  symbol: a,
1813
1813
  header: e,
1814
1814
  text: n,
1815
1815
  html: o
1816
- }) : null), l.length ? /* @__PURE__ */ r.createElement(mn, h({
1816
+ }) : null), l.length ? /* @__PURE__ */ r.createElement(_n, h({
1817
1817
  items: l,
1818
1818
  renderItem: u,
1819
1819
  renderLi: c
1820
- }, m)) : null, s);
1820
+ }, m)) : null, i);
1821
1821
  }
1822
- ), Or = ({
1822
+ ), Gn = ({
1823
1823
  className: e = "",
1824
1824
  tree: t,
1825
1825
  renderItem: n,
1826
1826
  rootItem: o,
1827
- renderUnselected: i = !0,
1828
- renderEmpty: s = !0,
1827
+ renderUnselected: s = !0,
1828
+ renderEmpty: i = !0,
1829
1829
  ulProps: a,
1830
1830
  liProps: l
1831
1831
  }) => {
1832
- const u = (g) => !c(g), c = (g) => !g || g.length < 1 ? !0 : !g.some((d) => !!d.selected), m = (g, d) => /* @__PURE__ */ r.createElement(fn, {
1832
+ const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(Qn, {
1833
1833
  className: M(`humany-item-tree-level-${d}`),
1834
- items: g,
1834
+ items: p,
1835
1835
  ulProps: a,
1836
1836
  renderItem: (f) => {
1837
- const { id: C, selected: E, items: b, matches: w } = f, p = E && c(b);
1838
- return !s && !w ? null : /* @__PURE__ */ r.createElement("li", $(h({}, V(l)), {
1837
+ const { id: C, selected: x, items: b, matches: E } = f, g = x && c(b);
1838
+ return !i && !E ? null : /* @__PURE__ */ r.createElement("li", k(h({}, V(l)), {
1839
1839
  key: C,
1840
1840
  className: "humany-item-tree-item"
1841
- }), n && n(f, d, p), b && (i || p) && m(b, d + 1));
1841
+ }), n && n(f, d, g), b && (s || g) && m(b, d + 1));
1842
1842
  }
1843
1843
  });
1844
1844
  return /* @__PURE__ */ r.createElement("div", {
1845
1845
  className: M(e, "humany-item-tree")
1846
1846
  }, o && o(!u(t || [])), t && m(t, 1));
1847
- }, hn = N(
1847
+ }, Io = Gn, Jn = N(
1848
1848
  (u, l) => {
1849
1849
  var c = u, { className: e, onClick: t = () => {
1850
- }, name: n = "", to: o = "", params: i = {}, children: s } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1851
- const m = Pe(), g = Z();
1850
+ }, name: n = "", to: o = "", params: s = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1851
+ const m = Ae(), p = W();
1852
1852
  if (!m)
1853
1853
  return null;
1854
1854
  let d = "";
1855
- const f = $(h({
1855
+ const f = k(h({
1856
1856
  onClick: t,
1857
1857
  className: M(e, "humany-route-link"),
1858
1858
  to: d,
@@ -1861,19 +1861,19 @@ const Gt = 300, Vr = ({
1861
1861
  ref: null
1862
1862
  });
1863
1863
  if (n) {
1864
- if (!(m.routes || []).find((w) => w.name === n))
1865
- return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
1866
- onClick: (w) => {
1867
- t(w), w.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1864
+ if (!(m.routes || []).find((E) => E.name === n))
1865
+ return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(fe, k(h({}, f), {
1866
+ onClick: (E) => {
1867
+ t(E), E.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1868
1868
  }
1869
- }), s);
1870
- const b = Object.keys(i).reduce((w, p) => (w[p] = typeof i[p] == "string" ? encodeURIComponent(i[p]) : i[p], w), {});
1869
+ }), i);
1870
+ const b = Object.keys(s).reduce((E, g) => (E[g] = typeof s[g] == "string" ? encodeURIComponent(s[g]) : s[g], E), {});
1871
1871
  try {
1872
1872
  d = m.generate(n, b || {});
1873
- } catch (w) {
1874
- return /* @__PURE__ */ r.createElement(fe, h({}, f), s);
1873
+ } catch (E) {
1874
+ return /* @__PURE__ */ r.createElement(fe, h({}, f), i);
1875
1875
  }
1876
- d && m.settings.mode && m.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
1876
+ d && m.settings.mode && m.settings.mode === Be.browser && d[0] !== "/" && (d = `/${d}`);
1877
1877
  } else if (o && m.history)
1878
1878
  d = m.history.createHref({
1879
1879
  hash: "",
@@ -1885,33 +1885,33 @@ const Gt = 300, Vr = ({
1885
1885
  return process.env.NODE_ENV !== "production" && de.warn(
1886
1886
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1887
1887
  ), null;
1888
- if (m.settings && m.settings.mode === Te.scopedHash) {
1889
- const C = g.get("$widget").name;
1888
+ if (m.settings && m.settings.mode === Be.scopedHash) {
1889
+ const C = p.get("$widget").name;
1890
1890
  d = xt(d, C);
1891
1891
  }
1892
- return f.as ? /* @__PURE__ */ r.createElement(gn, $(h({}, f), {
1892
+ return f.as ? /* @__PURE__ */ r.createElement(er, k(h({}, f), {
1893
1893
  as: f.as
1894
- }), s) : /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
1894
+ }), i) : /* @__PURE__ */ r.createElement(fe, k(h({}, f), {
1895
1895
  to: d
1896
- }), s);
1896
+ }), i);
1897
1897
  }
1898
- ), gn = y.span``, xe = N(
1899
- (E, C) => {
1900
- var b = E, {
1898
+ ), er = y.span``, we = N(
1899
+ (x, C) => {
1900
+ var b = x, {
1901
1901
  className: e,
1902
1902
  disabled: t = !1,
1903
1903
  role: n = "link",
1904
1904
  tabIndex: o = 0,
1905
- onClick: i = () => {
1905
+ onClick: s = () => {
1906
1906
  },
1907
- onKeyDown: s = () => {
1907
+ onKeyDown: i = () => {
1908
1908
  },
1909
1909
  title: a,
1910
1910
  as: l,
1911
1911
  href: u,
1912
1912
  children: c,
1913
1913
  target: m,
1914
- routeName: g,
1914
+ routeName: p,
1915
1915
  params: d
1916
1916
  } = b, f = S(b, [
1917
1917
  "className",
@@ -1928,58 +1928,58 @@ const Gt = 300, Vr = ({
1928
1928
  "routeName",
1929
1929
  "params"
1930
1930
  ]);
1931
- const w = {
1931
+ const E = {
1932
1932
  title: a,
1933
1933
  disabled: t,
1934
1934
  role: n,
1935
1935
  as: l,
1936
1936
  tabIndex: o,
1937
1937
  className: M(e, "humany-link", [!!t, "humany-disabled"]),
1938
- onClick: (p) => {
1939
- if (p.persist(), t) {
1940
- p.preventDefault();
1938
+ onClick: (g) => {
1939
+ if (g.persist(), t) {
1940
+ g.preventDefault();
1941
1941
  return;
1942
1942
  }
1943
- i(p);
1943
+ s(g);
1944
1944
  },
1945
- onKeyDown: (p) => {
1946
- if (p.persist(), t) {
1947
- p.key !== "Tab" && p.preventDefault();
1945
+ onKeyDown: (g) => {
1946
+ if (g.persist(), t) {
1947
+ g.key !== "Tab" && g.preventDefault();
1948
1948
  return;
1949
1949
  }
1950
- s(p);
1950
+ i(g);
1951
1951
  }
1952
1952
  };
1953
- return g ? /* @__PURE__ */ r.createElement(pn, $(h(h({
1954
- name: g,
1953
+ return p ? /* @__PURE__ */ r.createElement(tr, k(h(h({
1954
+ name: p,
1955
1955
  params: d
1956
- }, w), V(f)), {
1956
+ }, E), V(f)), {
1957
1957
  ref: C
1958
- }), c) : /* @__PURE__ */ r.createElement(Cn, $(h(h({
1958
+ }), c) : /* @__PURE__ */ r.createElement(nr, k(h(h({
1959
1959
  href: u,
1960
1960
  target: m
1961
- }, w), V(f)), {
1961
+ }, E), V(f)), {
1962
1962
  ref: C
1963
1963
  }), c);
1964
1964
  }
1965
- ), pn = y(hn)`
1965
+ ), tr = y(Jn)`
1966
1966
  ${(e) => e.disabled ? `
1967
1967
  pointer-events: none;
1968
1968
  opacity: .7;
1969
1969
  ` : "cursor: pointer;"}
1970
- `, Cn = y.a`
1970
+ `, nr = y.a`
1971
1971
  ${(e) => e.disabled ? `
1972
1972
  pointer-events: none;
1973
1973
  opacity: .7;
1974
1974
  ` : "cursor: pointer;"}
1975
- `, Ue = (s) => {
1976
- var a = s, {
1975
+ `, rr = (i) => {
1976
+ var a = i, {
1977
1977
  visible: e,
1978
1978
  duration: t = 500,
1979
1979
  children: n,
1980
1980
  onClick: o = () => {
1981
1981
  }
1982
- } = a, i = S(a, [
1982
+ } = a, s = S(a, [
1983
1983
  "visible",
1984
1984
  "duration",
1985
1985
  "children",
@@ -1997,13 +1997,13 @@ const Gt = 300, Vr = ({
1997
1997
  classNames: "humany-overlay-transition",
1998
1998
  unmountOnExit: !0,
1999
1999
  timeout: t
2000
- }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(yn, h({
2000
+ }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(or, h({
2001
2001
  className: "humany-overlay",
2002
2002
  duration: t,
2003
2003
  ref: l,
2004
2004
  onClick: u
2005
- }, i), n)));
2006
- }, yn = y.div`
2005
+ }, s), n)));
2006
+ }, or = y.div`
2007
2007
  background: rgba(0, 0, 0, 0.6);
2008
2008
  min-width: 100%;
2009
2009
  min-height: 100%;
@@ -2033,11 +2033,11 @@ const Gt = 300, Vr = ({
2033
2033
  &.humany-overlay-transition-exit-done {
2034
2034
  opacity: 0;
2035
2035
  }
2036
- `, bn = We`
2036
+ `, _e = rr, sr = Ze`
2037
2037
  100% {
2038
2038
  transform: rotate(360deg);
2039
2039
  }
2040
- `, vn = We`
2040
+ `, ir = Ze`
2041
2041
  0% {
2042
2042
  stroke-dasharray: 1, 200;
2043
2043
  stroke-dashoffset: 0;
@@ -2050,8 +2050,8 @@ const Gt = 300, Vr = ({
2050
2050
  stroke-dasharray: 89, 200;
2051
2051
  stroke-dashoffset: -124px;
2052
2052
  }
2053
- `, qe = y.svg`
2054
- animation: ${bn} 2s linear infinite;
2053
+ `, ar = y.svg`
2054
+ animation: ${sr} 2s linear infinite;
2055
2055
  height: 100%;
2056
2056
  transform-origin: center center;
2057
2057
  width: 100%;
@@ -2062,7 +2062,7 @@ const Gt = 300, Vr = ({
2062
2062
  right: 0;
2063
2063
  margin: auto;
2064
2064
  transition: 200ms ease-out opacity;
2065
- `, wn = y.div`
2065
+ `, cr = y.div`
2066
2066
  position: absolute;
2067
2067
  top: 0;
2068
2068
  bottom: 0;
@@ -2077,10 +2077,10 @@ const Gt = 300, Vr = ({
2077
2077
  transition: 200ms ease-out opacity;
2078
2078
  box-sizing: border-box;
2079
2079
  overflow: hidden;
2080
- ${qe} {
2080
+ svg {
2081
2081
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2082
2082
  }
2083
- `, En = y.div`
2083
+ `, lr = y.div`
2084
2084
  position: relative;
2085
2085
  margin: 0 auto;
2086
2086
  width: 100px;
@@ -2089,82 +2089,82 @@ const Gt = 300, Vr = ({
2089
2089
  display: block;
2090
2090
  padding-top: 100%;
2091
2091
  }
2092
- `, xn = y.circle`
2092
+ `, ur = y.circle`
2093
2093
  stroke-dasharray: 1, 200;
2094
2094
  stroke-dashoffset: 0;
2095
- animation: ${vn} 1.5s ease-in-out infinite;
2095
+ animation: ${ir} 1.5s ease-in-out infinite;
2096
2096
  stroke-linecap: round;
2097
2097
  stroke: ${(e) => {
2098
2098
  var t;
2099
2099
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2100
2100
  }};
2101
2101
  stroke-width: 2px;
2102
- `, kn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(wn, {
2102
+ `, mr = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(cr, {
2103
2103
  className: M("humany-loader", e),
2104
2104
  "data-loading": t
2105
- }, /* @__PURE__ */ r.createElement(En, {
2105
+ }, /* @__PURE__ */ r.createElement(lr, {
2106
2106
  className: "humany-spinner"
2107
- }, /* @__PURE__ */ r.createElement(qe, {
2107
+ }, /* @__PURE__ */ r.createElement(ar, {
2108
2108
  viewBox: "25 25 50 50"
2109
- }, /* @__PURE__ */ r.createElement(xn, {
2109
+ }, /* @__PURE__ */ r.createElement(ur, {
2110
2110
  cx: "50",
2111
2111
  cy: "50",
2112
2112
  r: "20",
2113
2113
  fill: "none",
2114
2114
  "stroke-width": "2",
2115
2115
  "stroke-miterlimit": "10"
2116
- })))), $n = (i) => {
2117
- var s = i, {
2116
+ })))), dr = mr, fr = (s) => {
2117
+ var i = s, {
2118
2118
  zoomState: e,
2119
2119
  image: t,
2120
2120
  changeZoom: n
2121
- } = s, o = S(s, [
2121
+ } = i, o = S(i, [
2122
2122
  "zoomState",
2123
2123
  "image",
2124
2124
  "changeZoom"
2125
2125
  ]);
2126
- var w;
2127
- const a = R(null), [l, u] = k(!1), [c, m] = k(!1), b = o.style || {}, { width: g, height: d } = b, f = S(b, ["width", "height"]), C = H(() => {
2128
- const p = a.current;
2129
- if (p) {
2130
- const B = window.innerWidth / p.width, T = window.innerHeight / p.height, z = Math.min(B, T);
2131
- return T >= 1 && B >= 1 ? 1 : z;
2126
+ var E;
2127
+ const a = R(null), [l, u] = $(!1), [c, m] = $(!1), b = o.style || {}, { width: p, height: d } = b, f = S(b, ["width", "height"]), C = H(() => {
2128
+ const g = a.current;
2129
+ if (g) {
2130
+ const B = window.innerWidth / g.width, z = window.innerHeight / g.height, T = Math.min(B, z);
2131
+ return z >= 1 && B >= 1 ? 1 : T;
2132
2132
  }
2133
2133
  return 1;
2134
- }, [l, t.src]), E = ie(() => {
2135
- const p = a.current;
2136
- if (p) {
2134
+ }, [l, t.src]), x = se(() => {
2135
+ const g = a.current;
2136
+ if (g) {
2137
2137
  if (!c) {
2138
2138
  m(!0);
2139
2139
  const B = C();
2140
2140
  n(B);
2141
2141
  }
2142
- return p.width >= p.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
2142
+ return g.width >= g.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
2143
2143
  }
2144
2144
  return null;
2145
2145
  }, [e, a, l, t.src]);
2146
2146
  return v(() => (u(!1), function() {
2147
2147
  m(!1);
2148
- }), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ln, {
2148
+ }), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(hr, {
2149
2149
  loading: !l
2150
- }), /* @__PURE__ */ r.createElement(Mn, $(h({
2150
+ }), /* @__PURE__ */ r.createElement(pr, k(h({
2151
2151
  onLoad: () => {
2152
2152
  u(!0);
2153
2153
  },
2154
2154
  ref: a,
2155
- imageSize: E,
2155
+ imageSize: x,
2156
2156
  draggable: "false"
2157
2157
  }, o), {
2158
- alt: ((w = o.alt) == null ? void 0 : w.toString()) || "",
2158
+ alt: ((E = o.alt) == null ? void 0 : E.toString()) || "",
2159
2159
  style: f,
2160
2160
  src: t.src,
2161
2161
  loaded: l
2162
- })), /* @__PURE__ */ r.createElement(Sn, null));
2163
- }, Ln = y(kn)`
2162
+ })), /* @__PURE__ */ r.createElement(gr, null));
2163
+ }, hr = y(dr)`
2164
2164
  svg circle {
2165
2165
  stroke: #ffffff;
2166
2166
  }
2167
- `, Mn = y.img`
2167
+ `, pr = y.img`
2168
2168
  transform: none;
2169
2169
 
2170
2170
  ${(e) => e.imageSize && L`
@@ -2175,126 +2175,126 @@ const Gt = 300, Vr = ({
2175
2175
  vertical-align: middle;
2176
2176
  position: relative;
2177
2177
  ${(e) => !e.loaded && "display:none;"}
2178
- `, Sn = y.div`
2178
+ `, gr = y.div`
2179
2179
  height: 100%;
2180
2180
  display: inline-block;
2181
2181
  vertical-align: middle;
2182
- `, Rn = () => {
2183
- const e = R(), [t, n] = k(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2182
+ `, Cr = fr, yr = () => {
2183
+ const e = R(), [t, n] = $(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2184
2184
  n(!1);
2185
2185
  }, 3e3), () => {
2186
2186
  e.current && clearTimeout(e.current);
2187
2187
  }), [t, e]);
2188
2188
  return [t, o];
2189
- }, Hn = ({ attrs: e, htmlBody: t }) => {
2189
+ }, br = ({ attrs: e, htmlBody: t }) => {
2190
2190
  var Se;
2191
- const n = X("Escape"), o = X("ArrowLeft"), i = X("ArrowRight"), [s, a] = k(1), [l, u] = k({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = k(!1), [g, d] = Rn(), [f, C] = k(null), [E, b] = k(null), w = R(null), p = R(null), B = R(null), T = R(null);
2191
+ const n = X("Escape"), o = X("ArrowLeft"), s = X("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] = yr(), [f, C] = $(null), [x, b] = $(null), E = R(null), g = R(null), B = R(null), z = R(null);
2192
2192
  v(() => {
2193
2193
  n && C(null);
2194
2194
  }, [n]), v(() => {
2195
2195
  a(1);
2196
2196
  }, [f]), v(() => {
2197
- var F, A;
2198
- if (f === null || p.current === null)
2197
+ var P, F;
2198
+ if (f === null || g.current === null)
2199
2199
  return;
2200
- const x = p.current.firstElementChild, D = (F = B.current) == null ? void 0 : F.querySelector(".nav-left"), W = (A = B.current) == null ? void 0 : A.querySelector(".nav-right");
2201
- if (E === "Right")
2202
- te && W ? W.focus() : ee && D && D.focus();
2203
- else if (E === "Left")
2204
- ee && D ? D.focus() : te && W && W.focus();
2200
+ const w = g.current.firstElementChild, D = (P = B.current) == null ? void 0 : P.querySelector(".nav-left"), Z = (F = B.current) == null ? void 0 : F.querySelector(".nav-right");
2201
+ if (x === "Right")
2202
+ te && Z ? Z.focus() : ee && D && D.focus();
2203
+ else if (x === "Left")
2204
+ ee && D ? D.focus() : te && Z && Z.focus();
2205
2205
  else {
2206
- if (!x)
2206
+ if (!w)
2207
2207
  return;
2208
- x.focus();
2208
+ w.focus();
2209
2209
  }
2210
- }, [f, p, B, E]), v(() => {
2210
+ }, [f, g, B, x]), v(() => {
2211
2211
  if (o) {
2212
2212
  if (ee)
2213
2213
  return Le();
2214
- } else if (i && te)
2214
+ } else if (s && te)
2215
2215
  return Me();
2216
- }, [o, i]);
2217
- const z = ie(() => {
2218
- const x = document.createElement("div");
2219
- x.innerHTML = t || "";
2220
- const D = x.getElementsByTagName("img");
2221
- return Array.from(D).reduce((F, A) => {
2222
- const Re = A.getAttribute("src"), it = A.height || Number.parseInt(A.style.height, 10), st = A.width || Number.parseInt(A.style.width, 10);
2216
+ }, [o, s]);
2217
+ const T = se(() => {
2218
+ const w = document.createElement("div");
2219
+ w.innerHTML = t || "";
2220
+ const D = w.getElementsByTagName("img");
2221
+ return Array.from(D).reduce((P, F) => {
2222
+ const Re = F.getAttribute("src"), ot = F.height || Number.parseInt(F.style.height, 10), st = F.width || Number.parseInt(F.style.width, 10);
2223
2223
  if (Re) {
2224
- const at = {
2224
+ const it = {
2225
2225
  src: Re,
2226
2226
  originalWidth: st,
2227
- originalHeight: it
2227
+ originalHeight: ot
2228
2228
  };
2229
- F.push(at);
2229
+ P.push(it);
2230
2230
  }
2231
- return F;
2231
+ return P;
2232
2232
  }, []);
2233
2233
  }, [t]), j = H(() => {
2234
- const { src: x } = e;
2235
- if (x) {
2236
- const D = z.findIndex((W, F) => W.src === x);
2234
+ const { src: w } = e;
2235
+ if (w) {
2236
+ const D = T.findIndex((Z, P) => Z.src === w);
2237
2237
  C(D);
2238
2238
  }
2239
- }, [z, e]), Je = H((x) => {
2239
+ }, [T, e]), Ge = H((w) => {
2240
2240
  C(null);
2241
- }, []), $e = H(
2242
- (x) => {
2243
- a(x ? s + s * 0.25 : s - s * 0.25);
2241
+ }, []), ke = H(
2242
+ (w) => {
2243
+ a(w ? i + i * 0.25 : i - i * 0.25);
2244
2244
  },
2245
- [a, s]
2246
- ), et = H(() => {
2245
+ [a, i]
2246
+ ), Je = H(() => {
2247
2247
  if (f !== null) {
2248
- const { src: x } = z[f];
2249
- x && window.open(x, "_self");
2248
+ const { src: w } = T[f];
2249
+ w && window.open(w, "_self");
2250
2250
  }
2251
- }, [z, f]), tt = H(
2252
- (x) => {
2253
- const D = T.current;
2254
- D && (u({ top: D.scrollTop, left: D.scrollLeft, x: x.clientX, y: x.clientY }), m(!0));
2251
+ }, [T, f]), et = H(
2252
+ (w) => {
2253
+ const D = z.current;
2254
+ D && (u({ top: D.scrollTop, left: D.scrollLeft, x: w.clientX, y: w.clientY }), m(!0));
2255
2255
  },
2256
- [T]
2257
- ), nt = H(
2258
- (x) => {
2259
- const D = T.current;
2256
+ [z]
2257
+ ), tt = H(
2258
+ (w) => {
2259
+ const D = z.current;
2260
2260
  if (D && c) {
2261
- const W = x.clientX - l.x, F = x.clientY - l.y;
2262
- D.scrollTop = l.top - F, D.scrollLeft = l.left - W;
2261
+ const Z = w.clientX - l.x, P = w.clientY - l.y;
2262
+ D.scrollTop = l.top - P, D.scrollLeft = l.left - Z;
2263
2263
  }
2264
2264
  },
2265
2265
  [c, l]
2266
- ), rt = (x) => {
2267
- x.preventDefault(), m(!1);
2268
- }, ot = ie(() => {
2269
- if (T.current) {
2270
- const x = T.current.getElementsByTagName("img");
2271
- if (x && x.length) {
2272
- const D = x[0];
2266
+ ), nt = (w) => {
2267
+ w.preventDefault(), m(!1);
2268
+ }, rt = se(() => {
2269
+ if (z.current) {
2270
+ const w = z.current.getElementsByTagName("img");
2271
+ if (w && w.length) {
2272
+ const D = w[0];
2273
2273
  return D.width > window.innerWidth || D.height > window.innerHeight;
2274
2274
  }
2275
2275
  }
2276
2276
  return !1;
2277
- }, [T, s]), Le = () => {
2277
+ }, [z, i]), Le = () => {
2278
2278
  f !== null && (b("Left"), C(f - 1));
2279
2279
  }, Me = () => {
2280
2280
  f !== null && (b("Right"), C(f + 1));
2281
- }, ee = f !== null && f > 0 && z.length > 1, te = f !== null && z.length - 1 > f;
2282
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
2281
+ }, ee = f !== null && f > 0 && T.length > 1, te = f !== null && T.length - 1 > f;
2282
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, {
2283
2283
  visible: f !== null,
2284
- onClick: Je
2285
- }, /* @__PURE__ */ r.createElement(Wn, {
2284
+ onClick: Ge
2285
+ }, /* @__PURE__ */ r.createElement(Mr, {
2286
2286
  onMouseDown: () => d(),
2287
2287
  onMouseMove: () => d(),
2288
2288
  onTouchStart: () => d(),
2289
2289
  onKeyDown: () => d()
2290
- }, /* @__PURE__ */ r.createElement(In, {
2291
- show: g.toString()
2292
- }, /* @__PURE__ */ r.createElement(Tn, {
2293
- ref: p,
2290
+ }, /* @__PURE__ */ r.createElement(Sr, {
2291
+ show: p.toString()
2292
+ }, /* @__PURE__ */ r.createElement(wr, {
2293
+ ref: g,
2294
2294
  buttons: [
2295
2295
  {
2296
2296
  id: "download",
2297
- onClick: et,
2297
+ onClick: Je,
2298
2298
  icon: "download",
2299
2299
  ariaLabel: "Download image"
2300
2300
  },
@@ -2305,23 +2305,23 @@ const Gt = 300, Vr = ({
2305
2305
  ariaLabel: "Close"
2306
2306
  }
2307
2307
  ]
2308
- })), /* @__PURE__ */ r.createElement(Fn, {
2308
+ })), /* @__PURE__ */ r.createElement(Hr, {
2309
2309
  scrolling: c.toString(),
2310
- isDraggable: ot.toString(),
2311
- ref: T,
2312
- onMouseMove: nt,
2313
- onMouseDown: tt,
2314
- onMouseUp: rt
2315
- }, f !== null && /* @__PURE__ */ r.createElement($n, $(h({
2316
- changeZoom: (x) => {
2317
- a(x);
2310
+ isDraggable: rt.toString(),
2311
+ ref: z,
2312
+ onMouseMove: tt,
2313
+ onMouseDown: et,
2314
+ onMouseUp: nt
2315
+ }, f !== null && /* @__PURE__ */ r.createElement(Cr, k(h({
2316
+ changeZoom: (w) => {
2317
+ a(w);
2318
2318
  },
2319
- zoomState: s
2319
+ zoomState: i
2320
2320
  }, e), {
2321
- image: z[f]
2322
- }))), /* @__PURE__ */ r.createElement(Vn, {
2321
+ image: T[f]
2322
+ }))), /* @__PURE__ */ r.createElement(kr, {
2323
2323
  ref: B,
2324
- show: g.toString(),
2324
+ show: p.toString(),
2325
2325
  buttons: [
2326
2326
  {
2327
2327
  id: "previous",
@@ -2342,44 +2342,44 @@ const Gt = 300, Vr = ({
2342
2342
  ariaLabel: "Navigate to next image"
2343
2343
  }
2344
2344
  ]
2345
- }), /* @__PURE__ */ r.createElement(On, {
2346
- show: g.toString()
2347
- }, /* @__PURE__ */ r.createElement(Nn, {
2345
+ }), /* @__PURE__ */ r.createElement(Rr, {
2346
+ show: p.toString()
2347
+ }, /* @__PURE__ */ r.createElement($r, {
2348
2348
  buttons: [
2349
2349
  {
2350
2350
  id: "zoom-out",
2351
- onClick: () => $e(!1),
2351
+ onClick: () => ke(!1),
2352
2352
  icon: "zoom-out",
2353
2353
  ariaLabel: "Zoom out"
2354
2354
  },
2355
2355
  {
2356
2356
  id: "zoom-in",
2357
- onClick: () => $e(!0),
2357
+ onClick: () => ke(!0),
2358
2358
  icon: "zoom-in",
2359
2359
  ariaLabel: "Zoom in"
2360
2360
  }
2361
2361
  ]
2362
- }), /* @__PURE__ */ r.createElement(Zn, {
2362
+ }), /* @__PURE__ */ r.createElement(Lr, {
2363
2363
  variant: "span"
2364
- }, Math.trunc(s * 100), "%")))), /* @__PURE__ */ r.createElement(zn, {
2365
- ref: w,
2364
+ }, Math.trunc(i * 100), "%")))), /* @__PURE__ */ r.createElement(vr, {
2365
+ ref: E,
2366
2366
  onClick: j,
2367
- onKeyDown: (x) => {
2368
- x.key === "Enter" && (x.preventDefault(), j());
2367
+ onKeyDown: (w) => {
2368
+ w.key === "Enter" && (w.preventDefault(), j());
2369
2369
  },
2370
2370
  tabIndex: 0
2371
- }, /* @__PURE__ */ r.createElement(An, $(h({}, e), {
2371
+ }, /* @__PURE__ */ r.createElement(Tr, k(h({}, e), {
2372
2372
  alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || ""
2373
2373
  }))));
2374
- }, ke = N(
2375
- ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(Dn, {
2374
+ }, $e = N(
2375
+ ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(Er, {
2376
2376
  ref: o,
2377
2377
  show: e,
2378
2378
  className: M("humany-button-set", n)
2379
2379
  }, t.map(
2380
- ({ id: i, circle: s = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, g) => /* @__PURE__ */ r.createElement(Bn, {
2381
- key: i + g.toString(),
2382
- circle: s.toString(),
2380
+ ({ id: s, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(xr, {
2381
+ key: s + p.toString(),
2382
+ circle: i.toString(),
2383
2383
  onClick: u,
2384
2384
  tabIndex: a ? void 0 : -1,
2385
2385
  show: a.toString(),
@@ -2391,25 +2391,25 @@ const Gt = 300, Vr = ({
2391
2391
  symbol: { type: "Svg", content: c }
2392
2392
  }))
2393
2393
  ))
2394
- ), Qe = y.div`
2394
+ ), qe = y.div`
2395
2395
  transition: opacity 0.3s ease 0s;
2396
2396
  z-index: 5;
2397
2397
  ${(e) => e.show === "true" ? "opacity: 1;" : L`
2398
2398
  opacity: 0;
2399
2399
  pointer-events: none;
2400
2400
  `}
2401
- `, zn = y(xe)`
2401
+ `, vr = y(we)`
2402
2402
  display: inline-block !important;
2403
- `, Dn = y(Qe)`
2403
+ `, Er = y(qe)`
2404
2404
  position: fixed;
2405
2405
  display: flex;
2406
2406
  gap: ${(e) => {
2407
2407
  var t;
2408
2408
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2409
2409
  }};
2410
- `, pe = "39px", Bn = y(ae)`
2411
- width: ${pe};
2412
- height: ${pe};
2410
+ `, ge = "39px", xr = y(ae)`
2411
+ width: ${ge};
2412
+ height: ${ge};
2413
2413
  display: flex;
2414
2414
  justify-content: center;
2415
2415
  align-items: center;
@@ -2435,7 +2435,7 @@ const Gt = 300, Vr = ({
2435
2435
  }
2436
2436
 
2437
2437
  &:focus-visible {
2438
- ${P(e)}
2438
+ ${A(e)}
2439
2439
  outline-color: #ffffff;
2440
2440
  background-color: transparent;
2441
2441
 
@@ -2457,7 +2457,7 @@ const Gt = 300, Vr = ({
2457
2457
  outline-color: #ffffff;
2458
2458
  }
2459
2459
  &:focus-visible {
2460
- ${P(e)}
2460
+ ${A(e)}
2461
2461
  }
2462
2462
  `;
2463
2463
  }}
@@ -2472,7 +2472,7 @@ const Gt = 300, Vr = ({
2472
2472
  opacity: 0;
2473
2473
  pointer-events: none;
2474
2474
  `}
2475
- `, Tn = y(ke)`
2475
+ `, wr = y($e)`
2476
2476
  top: ${(e) => {
2477
2477
  var t;
2478
2478
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2481,7 +2481,7 @@ const Gt = 300, Vr = ({
2481
2481
  var t;
2482
2482
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2483
2483
  }};
2484
- `, Nn = y(ke)`
2484
+ `, $r = y($e)`
2485
2485
  bottom: ${(e) => {
2486
2486
  var t;
2487
2487
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2489,11 +2489,11 @@ const Gt = 300, Vr = ({
2489
2489
  width: 100%;
2490
2490
  align-items: center;
2491
2491
  justify-content: center;
2492
- `, Vn = y(ke)`
2492
+ `, kr = y($e)`
2493
2493
  display: block;
2494
2494
  button {
2495
2495
  position: fixed;
2496
- top: calc(50% - calc(${pe} / 2));
2496
+ top: calc(50% - calc(${ge} / 2));
2497
2497
  &:first-child {
2498
2498
  left: ${(e) => {
2499
2499
  var t;
@@ -2507,7 +2507,7 @@ const Gt = 300, Vr = ({
2507
2507
  }};
2508
2508
  }
2509
2509
  }
2510
- `, Zn = y(q)`
2510
+ `, Lr = y(q)`
2511
2511
  position: fixed;
2512
2512
  bottom: ${(e) => {
2513
2513
  var t;
@@ -2526,21 +2526,21 @@ const Gt = 300, Vr = ({
2526
2526
  var t;
2527
2527
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2528
2528
  }};
2529
- `, Ge = y(Qe)`
2529
+ `, Qe = y(qe)`
2530
2530
  position: absolute;
2531
2531
  width: 100vw;
2532
2532
  height: 88px;
2533
2533
  left: 0px;
2534
2534
  z-index: 5;
2535
- `, Wn = y.div`
2535
+ `, Mr = y.div`
2536
2536
  width: 100%;
2537
- `, In = y(Ge)`
2537
+ `, Sr = y(Qe)`
2538
2538
  top: 0px;
2539
2539
  background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2540
- `, On = y(Ge)`
2540
+ `, Rr = y(Qe)`
2541
2541
  bottom: 0px;
2542
2542
  background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2543
- `, Fn = y.div`
2543
+ `, Hr = y.div`
2544
2544
  width: 100%;
2545
2545
  height: 100vh;
2546
2546
  overflow: auto;
@@ -2549,23 +2549,23 @@ const Gt = 300, Vr = ({
2549
2549
  white-space: nowrap;
2550
2550
  justify-content: center;
2551
2551
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2552
- `, An = y.img`
2552
+ `, Tr = y.img`
2553
2553
  cursor: pointer;
2554
- `, Pn = N(
2554
+ `, Dr = br, Br = N(
2555
2555
  (l, a) => {
2556
2556
  var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2557
- }, close: i = !1 } = u, s = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2558
- const [c, m] = Ye(), [g, d] = Ke(!0), f = R(), C = R(Q()), E = X("Escape");
2557
+ }, close: s = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2558
+ const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), C = R(Q()), x = X("Escape");
2559
2559
  v(() => {
2560
- (E || i) && m(!1);
2561
- }, [E, i]), v(() => {
2560
+ (x || s) && m(!1);
2561
+ }, [x, s]), v(() => {
2562
2562
  c && f.current && f.current.focus();
2563
2563
  }, [c, f.current]), ce("router:changed", () => {
2564
2564
  m(!1);
2565
2565
  });
2566
2566
  const b = H(
2567
- (p) => {
2568
- m(!1), o(p);
2567
+ (g) => {
2568
+ m(!1), o(g);
2569
2569
  },
2570
2570
  [o, m]
2571
2571
  );
@@ -2574,35 +2574,35 @@ const Gt = 300, Vr = ({
2574
2574
  m(!1);
2575
2575
  }
2576
2576
  }));
2577
- const w = H(() => ve(C.current, () => {
2577
+ const E = H(() => ve(C.current, () => {
2578
2578
  m(!1);
2579
2579
  }), [C.current]);
2580
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
2580
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, {
2581
2581
  visible: c,
2582
2582
  onClick: b
2583
- }, /* @__PURE__ */ r.createElement(Kn, $(h({
2583
+ }, /* @__PURE__ */ r.createElement(Nr, k(h({
2584
2584
  className: M(
2585
2585
  e,
2586
2586
  "humany-modal",
2587
2587
  `humany-modal-${C.current}`
2588
2588
  ),
2589
- css: g,
2589
+ css: p,
2590
2590
  tabIndex: -1
2591
- }, s), {
2591
+ }, i), {
2592
2592
  ref: d
2593
- }), /* @__PURE__ */ r.createElement(Ee, {
2593
+ }), /* @__PURE__ */ r.createElement(xe, {
2594
2594
  onClick: () => m(!1),
2595
2595
  tabIndex: 0,
2596
2596
  ref: f
2597
2597
  }, /* @__PURE__ */ r.createElement(J, {
2598
2598
  symbol: { type: "Svg", content: "close" }
2599
2599
  })), t)), r.cloneElement(n, {
2600
- onClick: (p) => {
2601
- m(), w();
2600
+ onClick: (g) => {
2601
+ m(), E();
2602
2602
  }
2603
2603
  }));
2604
2604
  }
2605
- ), Kn = y.div`
2605
+ ), zr = Br, Nr = y.div`
2606
2606
  font-family: ${(e) => {
2607
2607
  var t;
2608
2608
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2621,36 +2621,36 @@ const Gt = 300, Vr = ({
2621
2621
  ${(e) => je(e)}
2622
2622
  ${(e) => e.css && e.css}
2623
2623
  outline: none;
2624
- `, Fr = ({
2624
+ `, Vr = ({
2625
2625
  className: e,
2626
2626
  trigger: t,
2627
2627
  header: n = "",
2628
2628
  text: o = "",
2629
- onCancel: i = () => {
2629
+ onCancel: s = () => {
2630
2630
  },
2631
- onConfirm: s = () => {
2631
+ onConfirm: i = () => {
2632
2632
  },
2633
2633
  cancelLabel: a = "",
2634
2634
  confirmLabel: l = ""
2635
2635
  }) => {
2636
2636
  const u = R(), c = H(() => {
2637
- var g;
2638
- i(), (g = u == null ? void 0 : u.current) == null || g.close();
2639
- }, [i]), m = H(() => {
2640
- var g;
2641
- s(), (g = u == null ? void 0 : u.current) == null || g.close();
2642
- }, [s]);
2643
- return /* @__PURE__ */ r.createElement(Yn, {
2637
+ var p;
2638
+ s(), (p = u == null ? void 0 : u.current) == null || p.close();
2639
+ }, [s]), m = H(() => {
2640
+ var p;
2641
+ i(), (p = u == null ? void 0 : u.current) == null || p.close();
2642
+ }, [i]);
2643
+ return /* @__PURE__ */ r.createElement(Wr, {
2644
2644
  className: e,
2645
2645
  trigger: t,
2646
2646
  ref: u,
2647
2647
  onOverlayClick: c
2648
- }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(jn, {
2648
+ }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Zr, {
2649
2649
  onClick: m
2650
- }, l), a && /* @__PURE__ */ r.createElement(Xn, {
2650
+ }, l), a && /* @__PURE__ */ r.createElement(Ir, {
2651
2651
  onClick: c
2652
2652
  }, a));
2653
- }, Yn = y(Pn)`
2653
+ }, Oo = Vr, Wr = y(zr)`
2654
2654
  display: block;
2655
2655
 
2656
2656
  span {
@@ -2668,7 +2668,7 @@ const Gt = 300, Vr = ({
2668
2668
  }};
2669
2669
  }
2670
2670
  }
2671
- `, jn = y(ae)`
2671
+ `, Zr = y(ae)`
2672
2672
  display: inline-block;
2673
2673
  min-width: 50px;
2674
2674
  ${(e) => {
@@ -2696,9 +2696,9 @@ const Gt = 300, Vr = ({
2696
2696
  }
2697
2697
 
2698
2698
  &:focus-visible {
2699
- ${P}
2699
+ ${A}
2700
2700
  }
2701
- `, Xn = y(ae)`
2701
+ `, Ir = y(ae)`
2702
2702
  display: inline-block;
2703
2703
  min-width: 50px;
2704
2704
  ${(e) => {
@@ -2717,26 +2717,26 @@ const Gt = 300, Vr = ({
2717
2717
  }};
2718
2718
 
2719
2719
  &:focus-visible {
2720
- ${P};
2720
+ ${A};
2721
2721
  }
2722
- `, Ar = ({
2722
+ `, Or = ({
2723
2723
  header: e = "",
2724
2724
  link: t = "",
2725
2725
  suggestionHeader: n = "",
2726
2726
  suggestion: o = ""
2727
- }) => /* @__PURE__ */ r.createElement(_n, null, /* @__PURE__ */ r.createElement(Un, null, /* @__PURE__ */ r.createElement(q, {
2727
+ }) => /* @__PURE__ */ r.createElement(Pr, null, /* @__PURE__ */ r.createElement(Fr, null, /* @__PURE__ */ r.createElement(q, {
2728
2728
  variant: "h2"
2729
- }, "404")), /* @__PURE__ */ r.createElement(qn, null, /* @__PURE__ */ r.createElement(q, {
2729
+ }, "404")), /* @__PURE__ */ r.createElement(Ar, null, /* @__PURE__ */ r.createElement(q, {
2730
2730
  variant: "h3"
2731
- }, e), /* @__PURE__ */ r.createElement(Gn, {
2731
+ }, e), /* @__PURE__ */ r.createElement(jr, {
2732
2732
  routeName: "index",
2733
2733
  "aria-label": t,
2734
2734
  text: t
2735
- })), /* @__PURE__ */ r.createElement(Qn, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), _n = y.div`
2735
+ })), /* @__PURE__ */ r.createElement(Kr, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), Po = Or, Pr = y.div`
2736
2736
  display: flex;
2737
2737
  flex-wrap: wrap;
2738
- `, Un = y.div`
2739
- ${(e) => se(e)(
2738
+ `, Fr = y.div`
2739
+ ${(e) => ie(e)(
2740
2740
  "h2",
2741
2741
  L`
2742
2742
  padding: 0;
@@ -2745,7 +2745,7 @@ const Gt = 300, Vr = ({
2745
2745
  font-size: 7em;
2746
2746
  `
2747
2747
  )}
2748
- `, qn = y.div`
2748
+ `, Ar = y.div`
2749
2749
  margin-left: ${(e) => {
2750
2750
  var t;
2751
2751
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2753,7 +2753,7 @@ const Gt = 300, Vr = ({
2753
2753
 
2754
2754
  ${(e) => {
2755
2755
  var t;
2756
- return se(e)(
2756
+ return ie(e)(
2757
2757
  "h3",
2758
2758
  L`
2759
2759
  text-transform: uppercase;
@@ -2772,7 +2772,7 @@ const Gt = 300, Vr = ({
2772
2772
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2773
2773
  }};
2774
2774
  }
2775
- `, Qn = y.div`
2775
+ `, Kr = y.div`
2776
2776
  margin-top: ${(e) => {
2777
2777
  var t;
2778
2778
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2783,7 +2783,7 @@ const Gt = 300, Vr = ({
2783
2783
  font-weight: bold;
2784
2784
  }
2785
2785
  `;
2786
- class Pr extends dt {
2786
+ class Yr extends dt {
2787
2787
  constructor() {
2788
2788
  super(...arguments);
2789
2789
  re(this, "node");
@@ -2805,8 +2805,8 @@ class Pr extends dt {
2805
2805
  this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
2806
2806
  const o = n.querySelectorAll(
2807
2807
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2808
- ), s = [].filter.call(o, (a) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(a).display === "none" || a.offsetWidth <= 0 && a.offsetHeight <= 0))[0];
2809
- s && s.focus();
2808
+ ), i = [].filter.call(o, (a) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(a).display === "none" || a.offsetWidth <= 0 && a.offsetHeight <= 0))[0];
2809
+ i && i.focus();
2810
2810
  }));
2811
2811
  }
2812
2812
  componentWillUnmount() {
@@ -2822,32 +2822,32 @@ class Pr extends dt {
2822
2822
  }) : null;
2823
2823
  }
2824
2824
  }
2825
- const Gn = N(
2826
- (a, s) => {
2827
- var l = a, { className: e, description: t, text: n, children: o } = l, i = S(l, ["className", "description", "text", "children"]);
2828
- return /* @__PURE__ */ r.createElement(xe, $(h({
2825
+ const Fo = Yr, jr = N(
2826
+ (a, i) => {
2827
+ var l = a, { className: e, description: t, text: n, children: o } = l, s = S(l, ["className", "description", "text", "children"]);
2828
+ return /* @__PURE__ */ r.createElement(we, k(h({
2829
2829
  className: M(e, "humany-text-link")
2830
- }, i), {
2831
- ref: s
2832
- }), o, /* @__PURE__ */ r.createElement(we, null, n), t ? /* @__PURE__ */ r.createElement(_e, {
2830
+ }, s), {
2831
+ ref: i
2832
+ }), o, /* @__PURE__ */ r.createElement(Ee, null, n), t ? /* @__PURE__ */ r.createElement(Ue, {
2833
2833
  html: t,
2834
2834
  className: "humany-description"
2835
2835
  }) : null);
2836
2836
  }
2837
2837
  );
2838
- var Jn = /* @__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))(Jn || {});
2839
- const Kr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
2838
+ var Xr = /* @__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))(Xr || {});
2839
+ const Ur = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
2840
2840
  className: M(e, "humany-timestamp")
2841
- }, er(n, t)), Ze = (e) => `0${e}`.slice(-2);
2842
- function er(e, t) {
2843
- 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)}`;
2844
- return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? i : `${u} ${i}`;
2841
+ }, _r(n, t)), Ao = Ur, We = (e) => `0${e}`.slice(-2);
2842
+ function _r(e, t) {
2843
+ const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), s = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${We(a)}-${We(l)}`;
2844
+ return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? s : `${u} ${s}`;
2845
2845
  }
2846
- const Yr = (s) => {
2847
- var a = s, { className: e, children: t, content: n, sticky: o = !1 } = a, i = S(a, ["className", "children", "content", "sticky"]);
2848
- const [l, u] = k(!1), c = R(Q()), m = R(), [{ x: g, y: d }, f] = Xe(l, c.current, m.current), C = (b) => {
2849
- const { target: w } = b;
2850
- !m.current || !w || m.current !== w && !m.current.contains(w) && u(!1);
2846
+ const qr = (i) => {
2847
+ var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, s = S(a, ["className", "children", "content", "sticky"]);
2848
+ const [l, u] = $(!1), c = R(Q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), C = (b) => {
2849
+ const { target: E } = b;
2850
+ !m.current || !E || m.current !== E && !m.current.contains(E) && u(!1);
2851
2851
  };
2852
2852
  v(() => {
2853
2853
  if (!!o)
@@ -2855,28 +2855,28 @@ const Yr = (s) => {
2855
2855
  window.removeEventListener("click", C);
2856
2856
  };
2857
2857
  }, [l, o]);
2858
- const E = H(
2859
- (b, w) => {
2860
- f(b, m.current), u(w);
2858
+ const x = H(
2859
+ (b, E) => {
2860
+ f(b, m.current), u(E);
2861
2861
  },
2862
2862
  [f, u]
2863
2863
  );
2864
- return /* @__PURE__ */ r.createElement(tr, {
2864
+ return /* @__PURE__ */ r.createElement(Qr, {
2865
2865
  ref: m,
2866
2866
  className: "humany-tooltip-trigger",
2867
- onMouseEnter: o ? void 0 : (b) => E(b, !0),
2868
- onMouseLeave: o ? void 0 : (b) => E(b, !1),
2869
- onTouchEnd: o ? (b) => E(b, !l) : void 0,
2870
- onClick: o ? (b) => E(b, !l) : void 0
2871
- }, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(nr, h({
2867
+ onMouseEnter: o ? void 0 : (b) => x(b, !0),
2868
+ onMouseLeave: o ? void 0 : (b) => x(b, !1),
2869
+ onTouchEnd: o ? (b) => x(b, !l) : void 0,
2870
+ onClick: o ? (b) => x(b, !l) : void 0
2871
+ }, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(Gr, h({
2872
2872
  className: M(e, "humany-tooltip-container"),
2873
- x: g,
2873
+ x: p,
2874
2874
  y: d
2875
- }, i), n)));
2876
- }, tr = y.div`
2875
+ }, s), n)));
2876
+ }, Qr = y.div`
2877
2877
  display: flex;
2878
2878
  align-items: center;
2879
- `, nr = y.div`
2879
+ `, Gr = y.div`
2880
2880
  color: #ffffff;
2881
2881
  background: #161616;
2882
2882
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2912,13 +2912,13 @@ const Yr = (s) => {
2912
2912
  let t = "";
2913
2913
  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;
2914
2914
  }};
2915
- `, jr = (e) => {
2915
+ `, Ko = qr, Jr = (e) => {
2916
2916
  const {
2917
2917
  in: t,
2918
2918
  mountOnEnter: n = !0,
2919
2919
  unmountOnExit: o = !0,
2920
- timeout: i,
2921
- children: s,
2920
+ timeout: s,
2921
+ children: i,
2922
2922
  transitions: a
2923
2923
  } = e, u = (() => {
2924
2924
  var c, m;
@@ -2927,33 +2927,33 @@ const Yr = (s) => {
2927
2927
  return {
2928
2928
  enter: {
2929
2929
  transitionKeys: a,
2930
- duration: i ? typeof i == "number" ? i : i.enter : 200,
2930
+ duration: s ? typeof s == "number" ? s : s.enter : 200,
2931
2931
  easing: "ease-in"
2932
2932
  },
2933
2933
  exit: {
2934
2934
  transitionKeys: a,
2935
- duration: i ? typeof i == "number" ? i : i.exit : 200,
2935
+ duration: s ? typeof s == "number" ? s : s.exit : 200,
2936
2936
  easing: "ease-out"
2937
2937
  }
2938
2938
  };
2939
2939
  if (typeof a == "object") {
2940
- const { enter: g, exit: d } = a;
2940
+ const { enter: p, exit: d } = a;
2941
2941
  return {
2942
2942
  enter: {
2943
2943
  transitionKeys: (c = a.enter) == null ? void 0 : c.type,
2944
- duration: i ? typeof i == "number" ? i : i.enter : 200,
2945
- easing: g.easing ? g.easing : "ease-in"
2944
+ duration: s ? typeof s == "number" ? s : s.enter : 200,
2945
+ easing: p.easing ? p.easing : "ease-in"
2946
2946
  },
2947
2947
  exit: {
2948
2948
  transitionKeys: (m = a.enter) == null ? void 0 : m.type,
2949
- duration: i ? typeof i == "number" ? i : i.enter : 200,
2949
+ duration: s ? typeof s == "number" ? s : s.enter : 200,
2950
2950
  easing: d.easing ? d.easing : "ease-out"
2951
2951
  }
2952
2952
  };
2953
2953
  }
2954
2954
  }
2955
2955
  })();
2956
- return /* @__PURE__ */ r.createElement(ht, {
2956
+ return /* @__PURE__ */ r.createElement(vt, {
2957
2957
  timeout: {
2958
2958
  enter: u && u.enter.duration || 0,
2959
2959
  exit: u && u.exit.duration || 0
@@ -2963,70 +2963,70 @@ const Yr = (s) => {
2963
2963
  mountOnEnter: n,
2964
2964
  unmountOnExit: o,
2965
2965
  onEnter: (c) => c.clientHeight
2966
- }, (c) => s && s(c, u && he.compose(c, u)));
2967
- }, rr = N(
2966
+ }, (c) => i && i(c, u && he.compose(c, u)));
2967
+ }, Yo = Jr, eo = N(
2968
2968
  (l, a) => {
2969
2969
  var u = l, { className: e, children: t, onClick: n = () => {
2970
- }, widgetName: o, activationOptions: i } = u, s = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
2971
- const c = Z(), m = () => {
2970
+ }, widgetName: o, activationOptions: s } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
2971
+ const c = W(), m = () => {
2972
2972
  const { implementation: f } = c.get("$widget");
2973
2973
  return f.widgets.get(o);
2974
2974
  };
2975
2975
  v(() => {
2976
2976
  const f = m();
2977
- return f == null || f.activate(i).then(() => f.invoke("attach")), () => {
2977
+ return f == null || f.activate(s).then(() => f.invoke("attach")), () => {
2978
2978
  f == null || f.deactivate();
2979
2979
  };
2980
2980
  }, [o]);
2981
- const g = (f) => {
2982
- const C = m(), E = f.currentTarget;
2981
+ const p = (f) => {
2982
+ const C = m(), x = f.currentTarget;
2983
2983
  if (C) {
2984
2984
  const b = () => {
2985
2985
  C.invoke("renderState").then(
2986
- (w) => w === oe.open ? C.invoke("close") : C.invoke("open")
2986
+ (E) => E === oe.open ? C.invoke("close") : C.invoke("open")
2987
2987
  ).then(() => {
2988
- C.events.subscribeOnce("widget:area-rendered", (w, p) => {
2988
+ C.events.subscribeOnce("widget:area-rendered", (E, g) => {
2989
2989
  c.get(
2990
2990
  "widgetDOMElement"
2991
2991
  ) && C.events.dispatch("widget:modal-opened", {
2992
2992
  name: C.name,
2993
- ref: E
2993
+ ref: x
2994
2994
  });
2995
2995
  });
2996
2996
  });
2997
2997
  };
2998
- C.state === pt.Deactivated ? C.activate(i).then(() => C.invoke("attach")).then(b) : b();
2998
+ C.state === mt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(b) : b();
2999
2999
  }
3000
3000
  }, d = (f) => {
3001
- f.key === "Enter" && (f.preventDefault(), g(f));
3001
+ f.key === "Enter" && (f.preventDefault(), p(f));
3002
3002
  };
3003
- return /* @__PURE__ */ r.createElement(xe, $(h({
3003
+ return /* @__PURE__ */ r.createElement(we, k(h({
3004
3004
  className: M(e, "humany-widget-link"),
3005
3005
  onKeyDown: d,
3006
3006
  onClick: (f) => {
3007
- n(f), g(f);
3007
+ n(f), p(f);
3008
3008
  }
3009
- }, s), {
3009
+ }, i), {
3010
3010
  ref: a
3011
3011
  }), t);
3012
3012
  }
3013
- ), Xr = N(
3013
+ ), jo = N(
3014
3014
  ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3015
- const i = Z(), s = ie(() => {
3016
- if (!i)
3015
+ const s = W(), i = se(() => {
3016
+ if (!s)
3017
3017
  return null;
3018
- const a = i.get("widgetDOMElement");
3018
+ const a = s.get("widgetDOMElement");
3019
3019
  return !a || !a.childElementCount ? null : a.children[0];
3020
- }, [i]);
3021
- return s ? /* @__PURE__ */ r.createElement(G, {
3020
+ }, [s]);
3021
+ return i ? /* @__PURE__ */ r.createElement(G, {
3022
3022
  elementId: e,
3023
- parent: s
3024
- }, /* @__PURE__ */ r.createElement(or, {
3023
+ parent: i
3024
+ }, /* @__PURE__ */ r.createElement(to, {
3025
3025
  className: M("humany-widget-overlay-outlet", t),
3026
3026
  ref: o
3027
3027
  }, n)) : null;
3028
3028
  }
3029
- ), or = y.div`
3029
+ ), to = y.div`
3030
3030
  background-color: #ffffff;
3031
3031
  position: absolute;
3032
3032
  top: 0;
@@ -3036,101 +3036,101 @@ const Yr = (s) => {
3036
3036
  z-index: 10;
3037
3037
  width: 100%;
3038
3038
  height: 100%;
3039
- `, _r = (e, t, n, o, i) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3039
+ `, no = (e, t, n, o, s) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
3040
3040
  t,
3041
3041
  ft(() => n)
3042
- ), wt(e, t, o || (() => {
3043
- }), t, i)));
3042
+ ), yt(e, t, o || (() => {
3043
+ }), t, s))), Xo = no;
3044
3044
  export {
3045
- Nt as AnchorLink,
3045
+ Zt as AnchorLink,
3046
3046
  ae as Button,
3047
- yr as Checkbox,
3048
- Wt as ColumnContext,
3049
- Fe as ComponentNodeContext,
3050
- It as ComponentPropertyContext,
3051
- Fr as Confirm,
3052
- Zt as ContainerContext,
3053
- Ft as ConversationContext,
3054
- Jn as DateFormats,
3055
- Vr as Drawer,
3056
- Qt as DrawerAnimationType,
3057
- Zr as Dropdown,
3058
- an as Empty,
3059
- Wr as Grid,
3060
- _e as Html,
3061
- un as Icon,
3062
- Ir as Input,
3063
- fn as ItemList,
3064
- Or as ItemTree,
3065
- Hn as Lightbox,
3066
- xe as Link,
3067
- mn as List,
3068
- Pn as Modal,
3069
- Ar as NotFound,
3070
- Ue as Overlay,
3071
- dn as Paragraph,
3047
+ Co as Checkbox,
3048
+ Ft as ColumnContext,
3049
+ Pe as ComponentNodeContext,
3050
+ At as ComponentPropertyContext,
3051
+ Oo as Confirm,
3052
+ Pt as ContainerContext,
3053
+ Yt as ConversationContext,
3054
+ Xr as DateFormats,
3055
+ No as Drawer,
3056
+ Tn as DrawerAnimationType,
3057
+ Vo as Dropdown,
3058
+ Kn as Empty,
3059
+ Wo as Grid,
3060
+ Ue as Html,
3061
+ Un as Icon,
3062
+ Zo as Input,
3063
+ Qn as ItemList,
3064
+ Io as ItemTree,
3065
+ Dr as Lightbox,
3066
+ we as Link,
3067
+ _n as List,
3068
+ zr as Modal,
3069
+ Po as NotFound,
3070
+ _e as Overlay,
3071
+ qn as Paragraph,
3072
3072
  G as Portal,
3073
- hn as RouteLink,
3074
- Ot as RoutingContext,
3073
+ Jn as RouteLink,
3074
+ Kt as RoutingContext,
3075
3075
  Ve as StyledText,
3076
3076
  J as SymbolBadge,
3077
- Pr as TabStop,
3078
- we as Text,
3079
- Gn as TextLink,
3080
- Kr as Timestamp,
3081
- Yr as Tooltip,
3082
- jr as TransitionComponent,
3077
+ Fo as TabStop,
3078
+ Ee as Text,
3079
+ jr as TextLink,
3080
+ Ao as Timestamp,
3081
+ Ko as Tooltip,
3082
+ Yo as TransitionComponent,
3083
3083
  q as Typography,
3084
- rr as WidgetLink,
3085
- Xr as WidgetOverlayOutlet,
3086
- P as borderTabStyle,
3084
+ eo as WidgetLink,
3085
+ jo as WidgetOverlayOutlet,
3086
+ A as borderTabStyle,
3087
3087
  Ne as browser,
3088
- Yt as buttonCss,
3088
+ xn as buttonCss,
3089
3089
  je as contentBox,
3090
3090
  V as convertToStringAttributes,
3091
- Cr as createEmptyComponent,
3092
- _r as createReactComponent,
3093
- Tt as defaultRenderInstructions,
3094
- Rt as embeddedLinkMapper,
3095
- Oe as filterCssProps,
3096
- Ht as filterCssPropsStyle,
3097
- zt as genericHashLink,
3098
- Nr as genericHtml,
3099
- se as headingElement,
3100
- Bt as imageLightboxRenderer,
3101
- Dr as invertedHoverButton,
3102
- Tr as itemList,
3103
- jt as linkTabStyle,
3104
- Xt as list,
3105
- Br as paddedBorderTabStyle,
3106
- Dt as processHtmlString,
3091
+ go as createEmptyComponent,
3092
+ Xo as createReactComponent,
3093
+ Vt as defaultRenderInstructions,
3094
+ Ht as embeddedLinkMapper,
3095
+ Dt as filterCssProps,
3096
+ Tt as filterCssPropsStyle,
3097
+ Bt as genericHashLink,
3098
+ zo as genericHtml,
3099
+ ie as headingElement,
3100
+ Nt as imageLightboxRenderer,
3101
+ To as invertedHoverButton,
3102
+ Bo as itemList,
3103
+ wn as linkTabStyle,
3104
+ $n as list,
3105
+ Do as paddedBorderTabStyle,
3106
+ zt as processHtmlString,
3107
3107
  he as transitionComposer,
3108
- br as useAction,
3109
- vr as useChildren,
3110
- wr as useColumns,
3111
- Er as useComponent,
3108
+ yo as useAction,
3109
+ bo as useChildren,
3110
+ vo as useColumns,
3111
+ Eo as useComponent,
3112
3112
  ye as useComponentDescriptor,
3113
3113
  be as useComponentNode,
3114
- U as useComponentPlatform,
3115
- Z as useContainer,
3116
- At as useContext,
3117
- xr as useConversation,
3118
- kr as useDispatch,
3114
+ _ as useComponentPlatform,
3115
+ W as useContainer,
3116
+ nn as useContext,
3117
+ xo as useConversation,
3118
+ wo as useDispatch,
3119
3119
  I as useEventListener,
3120
- Pt as useEvents,
3120
+ an as useEvents,
3121
3121
  O as useIsMounted,
3122
- $r as useIsTabbing,
3122
+ $o as useIsTabbing,
3123
3123
  X as useKeyPress,
3124
- Lr as useLayout,
3125
- Ae as usePrevious,
3126
- Mr as useProperties,
3127
- Sr as useRenderState,
3128
- Rr as useRouteData,
3129
- Pe as useRouter,
3124
+ ko as useLayout,
3125
+ Fe as usePrevious,
3126
+ Lo as useProperties,
3127
+ Mo as useRenderState,
3128
+ So as useRouteData,
3129
+ Ae as useRouter,
3130
3130
  Ke as useScroll,
3131
- Hr as useSettings,
3131
+ Ro as useSettings,
3132
3132
  Ye as useToggle,
3133
- zr as useTransitionEnd,
3133
+ Ho as useTransitionEnd,
3134
3134
  ve as useUniqueMenu,
3135
3135
  ce as useWidgetEvent
3136
3136
  };