@telia-ace/widget-ui 1.3.57 → 1.3.58-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +82 -82
  2. package/index.mjs +671 -671
  3. package/package.json +4 -4
package/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  var it = Object.defineProperty;
2
2
  var st = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var te = (e, t, n) => st(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { css as $, keyframes as Be } from "@emotion/react";
5
- import { kebabCase as at, appendClassNames as M, uuid as _, removeNullAndUndefinedValues as He, Logger as de } from "@telia-ace/widget-utilities";
4
+ import { css as L, keyframes as Ve } from "@emotion/react";
5
+ import { kebabCase as at, appendClassNames as S, uuid as _, removeNullAndUndefinedValues as Re, markEscapeHandled as se, Logger as ue } from "@telia-ace/widget-utilities";
6
6
  import { jsx as i, jsxs as b, Fragment as U } from "react/jsx-runtime";
7
- import C from "@emotion/styled";
8
- import oe, { forwardRef as D, createContext as K, useContext as P, useState as k, useEffect as v, useRef as L, useCallback as H, useImperativeHandle as ge, createElement as ct, useMemo as re, Component as lt, lazy as dt } from "react";
9
- import { CSSTransition as Ve, Transition as ut } from "react-transition-group";
7
+ import p from "@emotion/styled";
8
+ import oe, { forwardRef as D, createContext as K, useContext as P, useState as w, useEffect as v, useRef as M, useCallback as E, useImperativeHandle as pe, createElement as ct, useMemo as re, Component as lt, lazy as dt } from "react";
9
+ import { CSSTransition as We, Transition as ut } from "react-transition-group";
10
10
  import { Container as ht, WidgetState as ft } from "@webprovisions/platform";
11
11
  import { ComponentPlatform as mt, asDescriptor as gt, createEventSubscriber as pt, ComponentQuery as Ct, WidgetRenderState as ne, extendComponent as yt } from "@telia-ace/widget-core";
12
12
  import { createPortal as bt } from "react-dom";
13
- import Re from "htmr";
14
- import { HistoryMode as Te, getSpecificWidgetPath as vt } from "@telia-ace/widget-routing";
15
- import { Link as ue } from "react-router-dom";
13
+ import Te from "htmr";
14
+ import { HistoryMode as Ne, getSpecificWidgetPath as vt } from "@telia-ace/widget-routing";
15
+ import { Link as he } from "react-router-dom";
16
16
  const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exiting" || e === "exited", F = {
17
17
  fade: {
18
18
  in: "opacity: 1;",
@@ -44,29 +44,29 @@ const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exitin
44
44
  "slide-left",
45
45
  "slide-right",
46
46
  "scale"
47
- ], he = {
47
+ ], fe = {
48
48
  compose: (e = "exited", t) => {
49
- const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = kt.indexOf(r[0]) > -1 ? "transform" : "opacity";
49
+ const { enter: n, exit: r } = t, o = n.transitionKeys.split(" "), s = kt.indexOf(o[0]) > -1 ? "transform" : "opacity";
50
50
  if (xt(e))
51
- return r && r.length > 0 ? $`
52
- ${r && r.length > 0 && r.map((h) => F[h] ? F[h].in : "")}
51
+ return o && o.length > 0 ? L`
52
+ ${o && o.length > 0 && o.map((h) => F[h] ? F[h].in : "")}
53
53
  transition: ${s} ${n.duration}ms ${n.easing};
54
54
  ` : "";
55
- const c = r && r.length > 0 && $`
56
- ${r.map((h) => F[h] ? F[h].out : "")}
55
+ const c = o && o.length > 0 && L`
56
+ ${o.map((h) => F[h] ? F[h].out : "")}
57
57
  `;
58
58
  if (wt(e)) {
59
- const h = o.transitionKeys.split(" ");
60
- return h && h.length > 0 && e === "exiting" ? $`
59
+ const h = r.transitionKeys.split(" ");
60
+ return h && h.length > 0 && e === "exiting" ? L`
61
61
  ${c};
62
62
  ${h.map((a) => F[a] ? F[a].out : "")}
63
- transition: ${s} ${o.duration}ms ${o.easing};
63
+ transition: ${s} ${r.duration}ms ${r.easing};
64
64
  ` : c;
65
65
  }
66
66
  },
67
67
  composeViewTransition: (e, t, n) => {
68
68
  if (t === "slide")
69
- return he.compose(e, {
69
+ return fe.compose(e, {
70
70
  enter: {
71
71
  transitionKeys: n === "forth" ? "slide-right" : "slide-left",
72
72
  duration: 500
@@ -77,7 +77,7 @@ const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exitin
77
77
  }
78
78
  });
79
79
  if (t === "fade")
80
- return he.compose(e, {
80
+ return fe.compose(e, {
81
81
  enter: {
82
82
  transitionKeys: "fade",
83
83
  duration: 500
@@ -90,14 +90,14 @@ const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exitin
90
90
  },
91
91
  get: (e) => F[e]
92
92
  };
93
- var fe = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(fe || {});
94
- const Ne = () => {
93
+ var me = /* @__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))(me || {});
94
+ const De = () => {
95
95
  const {
96
96
  opr: e,
97
97
  opera: t,
98
98
  InstallTrigger: n,
99
- HTMLElement: o,
100
- safari: r,
99
+ HTMLElement: r,
100
+ safari: o,
101
101
  documentMode: s,
102
102
  StyleMedia: c,
103
103
  chrome: h,
@@ -107,8 +107,8 @@ const Ne = () => {
107
107
  return "opera";
108
108
  if (n)
109
109
  return "firefox";
110
- const d = ((g) => g.toString() === "[object SafariRemoteNotification]")(!r || typeof r < "u" && r.pushNotification);
111
- if (/constructor/i.test(o) || d)
110
+ const d = ((C) => C.toString() === "[object SafariRemoteNotification]")(!o || typeof o < "u" && o.pushNotification);
111
+ if (/constructor/i.test(r) || d)
112
112
  return "safari";
113
113
  const u = !!s;
114
114
  if (u)
@@ -124,72 +124,72 @@ const Ne = () => {
124
124
  return "blink";
125
125
  }, $t = ["string", "number"], z = (e) => Object.keys(e).reduce(
126
126
  (t, n) => {
127
- const o = typeof e[n] > "u" ? "" : e[n], r = typeof o;
128
- if ($t.indexOf(r) > -1) {
127
+ const r = typeof e[n] > "u" ? "" : e[n], o = typeof r;
128
+ if ($t.indexOf(o) > -1) {
129
129
  const s = n.substring(0, 5);
130
- s === "data-" || s === "aria-" ? t[at(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
130
+ s === "data-" || s === "aria-" ? t[at(n)] = r.toString() : n.substring(0, 4) !== "css-" && (t[n] = r.toString());
131
131
  } else
132
- t[n] = o;
132
+ t[n] = r;
133
133
  return t;
134
134
  },
135
135
  {}
136
136
  ), vo = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ i(rn, { ...t }) : null, Lt = (e) => new RegExp("^#", "i").test(e), Mt = (e) => ({ children: t, ...n }) => {
137
137
  const {
138
- implementation: o,
139
- name: r
138
+ implementation: r,
139
+ name: o
140
140
  } = e.get("$widget"), { href: s = "" } = n;
141
141
  if (Lt(s))
142
142
  return /* @__PURE__ */ i(Dt, { smooth: !0, to: s, children: t });
143
- const c = o.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), a = new RegExp(
143
+ const c = r.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), a = new RegExp(
144
144
  `^((http[s]?:)?//)?(${c})/([^\\s]+)`
145
145
  ).exec(s);
146
146
  if (a && a.length >= 4) {
147
147
  const l = a[4];
148
- if (o.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
148
+ if (r.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(o))
149
149
  return /* @__PURE__ */ i(ro, { widgetName: l, children: t });
150
150
  }
151
151
  return /* @__PURE__ */ i("a", { ...n, children: t });
152
- }, We = (e) => {
152
+ }, Ze = (e) => {
153
153
  const t = {};
154
154
  return Object.keys(e).forEach((n) => {
155
155
  n.indexOf("css-") > -1 && (t[n] = e[n]);
156
156
  }), t;
157
157
  }, St = (e) => {
158
158
  let t = "";
159
- return Object.keys(We(e)).forEach((n) => {
159
+ return Object.keys(Ze(e)).forEach((n) => {
160
160
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
161
- }), $`
161
+ }), L`
162
162
  ${t}
163
163
  `;
164
164
  }, Et = (e, t) => {
165
165
  let n = "";
166
- const o = () => {
166
+ const r = () => {
167
167
  n = "";
168
- }, r = (d) => {
168
+ }, o = (d) => {
169
169
  const u = document.getElementById(n);
170
- return u !== null ? (d(u), o(), !0) : !1;
171
- }, s = (d) => (d.preventDefault(), o(), e.onClick && e.onClick(d), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
170
+ return u !== null ? (d(u), r(), !0) : !1;
171
+ }, s = (d) => (d.preventDefault(), r(), e.onClick && e.onClick(d), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && o(
172
172
  e.scroll || ((u) => e.smooth ? u.scrollIntoView({ behavior: "smooth" }) : u.scrollIntoView())
173
173
  ), !1), { scroll: c, smooth: h, to: a, ...l } = e;
174
174
  return t === "a" && (l.href = "javascript:;"), /* @__PURE__ */ i(t, { ...l, onClick: s, children: e.children });
175
175
  }, ie = (e) => (t, n) => {
176
- let o = t, r = "";
176
+ let r = t, o = "";
177
177
  if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
178
- o = t;
178
+ r = t;
179
179
  else {
180
180
  const h = t.match(/h1|h2|h3|h4|h5|h6/);
181
181
  if (h != null && h[0]) {
182
- o = h[0];
183
- const [a] = t.split(o);
184
- r = a;
182
+ r = h[0];
183
+ const [a] = t.split(r);
184
+ o = a;
185
185
  }
186
186
  }
187
187
  const c = ((h, a, l) => l[h] ? `${a}${l[h]}` : `${a}${h}`)(
188
- o,
189
188
  r,
189
+ o,
190
190
  e.theme.typographyVariantMapping || {}
191
191
  );
192
- return $`
192
+ return L`
193
193
  ${c} {
194
194
  ${n}
195
195
  }
@@ -199,39 +199,39 @@ function Ht(e) {
199
199
  if (typeof e != "string") throw new TypeError("Expected HTML string");
200
200
  const t = document.createElement("div");
201
201
  t.innerHTML = e.trim();
202
- const n = Array.from(t.childNodes).map((o) => {
203
- const r = o;
204
- if (!r.tagName || !r.attributes) return r;
205
- const s = document.createElement(r.tagName);
206
- return s.innerHTML = r.innerHTML, Array.from(r.attributes).forEach((c) => {
202
+ const n = Array.from(t.childNodes).map((r) => {
203
+ const o = r;
204
+ if (!o.tagName || !o.attributes) return o;
205
+ const s = document.createElement(o.tagName);
206
+ return s.innerHTML = o.innerHTML, Array.from(o.attributes).forEach((c) => {
207
207
  s.setAttribute(
208
208
  c.localName.replace(/[^\w-]/g, ""),
209
209
  c.value
210
210
  );
211
211
  }), s;
212
212
  });
213
- return Array.from(n).map((o) => o.tagName ? o.outerHTML : o.textContent).join("");
213
+ return Array.from(n).map((r) => r.tagName ? r.outerHTML : r.textContent).join("");
214
214
  }
215
215
  function Rt(e, t) {
216
- return t ? Re(Ht(e), t) : Re(e);
216
+ return t ? Te(Ht(e), t) : Te(e);
217
217
  }
218
218
  const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt = (e, t) => ({
219
219
  transform: {
220
220
  a: Mt(e),
221
221
  img: Tt(t)
222
222
  }
223
- }), Dt = (e) => Et(e, "a"), se = D(
224
- ({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
223
+ }), Dt = (e) => Et(e, "a"), ae = D(
224
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i(
225
225
  zt,
226
226
  {
227
227
  type: "button",
228
- className: M(e, "humany-button"),
228
+ className: S(e, "humany-button"),
229
229
  ...z(n),
230
- ref: o,
230
+ ref: r,
231
231
  children: t
232
232
  }
233
233
  )
234
- ), zt = C.button`
234
+ ), zt = p.button`
235
235
  -webkit-appearance: button;
236
236
  text-transform: none;
237
237
  overflow: visible;
@@ -250,64 +250,64 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
250
250
  onEnter: t = () => {
251
251
  },
252
252
  className: n,
253
- autoComplete: o = "",
254
- ...r
253
+ autoComplete: r = "",
254
+ ...o
255
255
  }) => /* @__PURE__ */ i(
256
256
  "input",
257
257
  {
258
- className: M(n, "humany-checkbox"),
258
+ className: S(n, "humany-checkbox"),
259
259
  onKeyDown: (s) => {
260
260
  s.key === "Enter" && t(s);
261
261
  },
262
- autoComplete: o || void 0,
262
+ autoComplete: r || void 0,
263
263
  onChange: (s) => e(s.target.value, s.currentTarget.checked),
264
- ...z(r)
264
+ ...z(o)
265
265
  }
266
- ), Bt = K(new ht()), Vt = K(1), Ze = K({
266
+ ), Bt = K(new ht()), Vt = K(1), Ie = K({
267
267
  id: "",
268
268
  type: "",
269
269
  name: "",
270
270
  branch: ""
271
271
  }), Wt = K(
272
272
  {}
273
- ), Zt = K(null), It = K(null), pe = () => P(Ze), B = () => P(Bt), wo = (e, t) => {
274
- const n = pe().id, o = B();
275
- return (r, s) => {
276
- (t || o).getAsync("actionResolver").then((c) => {
277
- c.action(e || n, r, s);
273
+ ), Zt = K(null), It = K(null), Ce = () => P(Ie), B = () => P(Bt), wo = (e, t) => {
274
+ const n = Ce().id, r = B();
275
+ return (o, s) => {
276
+ (t || r).getAsync("actionResolver").then((c) => {
277
+ c.action(e || n, o, s);
278
278
  });
279
279
  };
280
- }, Ce = (e) => {
281
- const t = P(Ze), n = Y(), [o, r] = k();
280
+ }, ye = (e) => {
281
+ const t = P(Ie), n = Y(), [r, o] = w();
282
282
  return v(() => {
283
283
  if ((e || t.id) && n) {
284
284
  const s = n.nodes.get(e || t.id);
285
- r(s);
285
+ o(s);
286
286
  }
287
- }, [e, t.id, n]), o;
287
+ }, [e, t.id, n]), r;
288
288
  }, Z = () => {
289
- const e = L(!1);
289
+ const e = M(!1);
290
290
  return v(() => (e.current = !0, () => {
291
291
  e.current = !1;
292
292
  }), []), e;
293
293
  }, Y = (e) => {
294
- const t = B(), [n, o] = k(null), r = Z();
294
+ const t = B(), [n, r] = w(null), o = Z();
295
295
  return v(() => {
296
296
  mt.getInstance(e || t).then(
297
297
  (s) => {
298
- r.current && o(s);
298
+ o.current && r(s);
299
299
  }
300
300
  );
301
- }, [r]), n;
301
+ }, [o]), n;
302
302
  }, ko = () => {
303
- const e = Ce(), t = Y(), [n, o] = k([]), r = Z(), s = H(
303
+ const e = ye(), t = Y(), [n, r] = w([]), o = Z(), s = E(
304
304
  (c) => {
305
- if (t && r.current && c) {
305
+ if (t && o.current && c) {
306
306
  const h = t.getBranch(c), a = c.getChildren(h).map((l) => gt(l));
307
- o(a);
307
+ r(a);
308
308
  }
309
309
  },
310
- [r, t, o, e]
310
+ [o, t, r, e]
311
311
  );
312
312
  return v(() => {
313
313
  e && s(e);
@@ -326,11 +326,11 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
326
326
  }
327
327
  }, [e, t, s]), n;
328
328
  }, $o = () => P(Vt), Lo = (e, t) => {
329
- const n = pe(), o = B(), [r, s] = k(void 0), c = Z(), h = e || n.type || "";
329
+ const n = Ce(), r = B(), [o, s] = w(void 0), c = Z(), h = e || n.type || "";
330
330
  return v(() => {
331
331
  if (h) {
332
332
  let a;
333
- return (t || o).getAsync("componentResolver").then((l) => {
333
+ return (t || r).getAsync("componentResolver").then((l) => {
334
334
  if (c.current) {
335
335
  const d = l.getComponent(h);
336
336
  s(d);
@@ -342,32 +342,32 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
342
342
  a && a();
343
343
  };
344
344
  }
345
- }, [c, h, t, o]), r;
345
+ }, [c, h, t, r]), o;
346
346
  }, Ot = (e) => {
347
- const t = Ce(e), n = Y(), [o, r] = k({}), s = Z();
347
+ const t = ye(e), n = Y(), [r, o] = w({}), s = Z();
348
348
  return v(() => {
349
- t && s.current && r(t.attributes.context);
349
+ t && s.current && o(t.attributes.context);
350
350
  }, [s, t]), v(() => {
351
351
  if (n) {
352
352
  const c = n.events.subscribe(
353
353
  "components:context-changed",
354
354
  (h, a) => {
355
- t === a.node && s.current && r(a.node.attributes.context);
355
+ t === a.node && s.current && o(a.node.attributes.context);
356
356
  }
357
357
  );
358
358
  return () => {
359
359
  c();
360
360
  };
361
361
  }
362
- }, [s, n, t]), o;
362
+ }, [s, n, t]), r;
363
363
  }, Mo = () => P(It), So = () => {
364
- const e = Y(), t = pe(), [n, o] = k([]), [r, s] = k();
364
+ const e = Y(), t = Ce(), [n, r] = w([]), [o, s] = w();
365
365
  return v(() => {
366
366
  if (e && t) {
367
367
  const c = new Ct(e).withId(t.id), h = e.actions(c, t.type || _());
368
368
  s(h), n !== null && (n.forEach((a) => {
369
369
  h.dispatch(a.key, a.data).then((l) => a.resolve(l)).catch((l) => a.reject(l));
370
- }), o(null));
370
+ }), r(null));
371
371
  }
372
372
  }, [e, t.id]), (c, h) => n !== null ? new Promise((a, l) => {
373
373
  n.push({
@@ -376,15 +376,15 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
376
376
  resolve: a,
377
377
  reject: l
378
378
  });
379
- }) : r.dispatch(c, h);
380
- }, W = (e, t, n = window, o = () => !0) => {
381
- const r = L(() => {
379
+ }) : o.dispatch(c, h);
380
+ }, W = (e, t, n = window, r = () => !0) => {
381
+ const o = M(() => {
382
382
  });
383
383
  v(() => {
384
- r.current = t;
384
+ o.current = t;
385
385
  }, [t]), v(() => {
386
- if (!(n && o())) return;
387
- const c = (h) => r.current(h);
386
+ if (!(n && r())) return;
387
+ const c = (h) => o.current(h);
388
388
  return n.addEventListener(e, c), () => {
389
389
  n.removeEventListener(e, c);
390
390
  };
@@ -393,82 +393,82 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
393
393
  const t = B(), { events: n } = (e || t).get("$widget");
394
394
  return n;
395
395
  }, Eo = () => {
396
- const [e, t] = k(!1);
396
+ const [e, t] = w(!1);
397
397
  return v(() => {
398
398
  const n = () => {
399
399
  t(!1);
400
- }, o = (r) => {
401
- r.keyCode === 9 && t(!0);
400
+ }, r = (o) => {
401
+ o.keyCode === 9 && t(!0);
402
402
  };
403
- return window.addEventListener("keydown", o), window.addEventListener("click", n), () => {
404
- window.removeEventListener("keydown", o), window.removeEventListener("click", n);
403
+ return window.addEventListener("keydown", r), window.addEventListener("click", n), () => {
404
+ window.removeEventListener("keydown", r), window.removeEventListener("click", n);
405
405
  };
406
406
  }, []), e;
407
407
  }, j = (e, t) => {
408
- const [n, o] = k(!1), r = H(
408
+ const [n, r] = w(!1), o = E(
409
409
  (c) => {
410
410
  const { key: h } = c;
411
- h === e && (o(!0), t && t(c));
411
+ h === e && (r(!0), t && t(c));
412
412
  },
413
- [o, t]
414
- ), s = H(
413
+ [r, t]
414
+ ), s = E(
415
415
  ({ key: c }) => {
416
- c === e && o(!1);
416
+ c === e && r(!1);
417
417
  },
418
- [o]
418
+ [r]
419
419
  );
420
- return W("keydown", r, window), W("keyup", s, window), n;
420
+ return W("keydown", o, window), W("keyup", s, window), n;
421
421
  }, Ho = (e) => {
422
- const t = Ce(e), n = Y(), [o, r] = k({}), s = Z();
422
+ const t = ye(e), n = Y(), [r, o] = w({}), s = Z();
423
423
  return v(() => {
424
- t && s.current && r(t.attributes.layout);
424
+ t && s.current && o(t.attributes.layout);
425
425
  }, [t, s]), v(() => {
426
426
  if (n) {
427
427
  const c = n.events.subscribe(
428
428
  "components:layout-changed",
429
429
  (h, a) => {
430
- t === a.node && s.current && r(a.node.attributes.layout);
430
+ t === a.node && s.current && o(a.node.attributes.layout);
431
431
  }
432
432
  );
433
433
  return () => {
434
434
  c();
435
435
  };
436
436
  }
437
- }, [n, s, t]), o;
438
- }, Ie = (e) => {
439
- const t = L();
437
+ }, [n, s, t]), r;
438
+ }, Oe = (e) => {
439
+ const t = M();
440
440
  return v(() => {
441
441
  t.current = e;
442
442
  }), t.current;
443
443
  }, Ro = () => P(Wt), To = (e) => {
444
- const [t, n] = k(), o = B(), r = Z();
444
+ const [t, n] = w(), r = B(), o = Z();
445
445
  return v(() => {
446
446
  let s;
447
- const c = (e || o).get("$widget");
447
+ const c = (e || r).get("$widget");
448
448
  if (!c)
449
449
  return;
450
450
  const { name: h, invoke: a } = c;
451
451
  return a("renderState").then((l) => {
452
- r.current && n(l);
453
- }), (e || o).getAsync("actionResolver").then((l) => {
452
+ o.current && n(l);
453
+ }), (e || r).getAsync("actionResolver").then((l) => {
454
454
  s = l.subscribe(h, (d, u) => {
455
455
  switch (u) {
456
456
  case "close":
457
457
  case "open":
458
- r.current && n(
458
+ o.current && n(
459
459
  u === "open" ? ne.open : ne.closed
460
460
  );
461
461
  break;
462
462
  case "hide":
463
- r.current && n(ne.hidden);
463
+ o.current && n(ne.hidden);
464
464
  }
465
465
  });
466
466
  }), () => {
467
467
  s && s();
468
468
  };
469
- }, [r]), t;
470
- }, Oe = () => P(Zt), No = (e) => {
471
- const t = B(), n = Oe(), [o, r] = k({
469
+ }, [o]), t;
470
+ }, Ae = () => P(Zt), No = (e) => {
471
+ const t = B(), n = Ae(), [r, o] = w({
472
472
  name: "",
473
473
  params: {}
474
474
  }), s = Z();
@@ -482,45 +482,45 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
482
482
  (l, { next: { routeData: d } }) => {
483
483
  if (s.current) {
484
484
  const { name: u, params: f } = d;
485
- He(f), r({ name: u, params: f });
485
+ Re(f), o({ name: u, params: f });
486
486
  }
487
487
  }
488
488
  );
489
489
  }, [s, e, t]), v(() => {
490
490
  if (n && n.history && s.current) {
491
491
  const c = n.getRouteData(), { name: h, params: a } = c;
492
- He(a), r({ name: h, params: a });
492
+ Re(a), o({ name: h, params: a });
493
493
  }
494
- }, [n, s]), o;
495
- }, Ae = (e) => {
496
- const t = L(), n = L(0);
497
- let o;
498
- const r = H(() => {
494
+ }, [n, s]), r;
495
+ }, Fe = (e) => {
496
+ const t = M(), n = M(0);
497
+ let r;
498
+ const o = E(() => {
499
499
  var l;
500
- (l = t.current) == null || l.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
500
+ (l = t.current) == null || l.classList.add("humany-scrolling"), clearTimeout(r), r = setTimeout(() => {
501
501
  var d;
502
502
  (d = t.current) == null || d.classList.remove("humany-scrolling");
503
503
  }, 500);
504
- }, [t]), s = H(
504
+ }, [t]), s = E(
505
505
  (l) => {
506
506
  n.current = l.touches[0].clientY;
507
507
  },
508
508
  [t]
509
- ), c = (l) => h(l) ? l === t.current ? l : null : l.parentElement ? c(l.parentElement) : null, h = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, a = H(
509
+ ), c = (l) => h(l) ? l === t.current ? l : null : l.parentElement ? c(l.parentElement) : null, h = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, a = E(
510
510
  (l) => {
511
511
  if (!l.cancelable)
512
512
  return;
513
513
  const d = l.touches[0].clientY, u = c(l.target);
514
514
  if (!u)
515
515
  return;
516
- const f = u.scrollTop, g = n.current - d < 0 ? "up" : "down", m = f <= 0 && g === "up", p = f >= u.scrollHeight - u.offsetHeight && g === "down";
517
- (m || p) && l.preventDefault(), n.current = d;
516
+ const f = u.scrollTop, C = n.current - d < 0 ? "up" : "down", m = f <= 0 && C === "up", g = f >= u.scrollHeight - u.offsetHeight && C === "down";
517
+ (m || g) && l.preventDefault(), n.current = d;
518
518
  },
519
519
  [t, n]
520
520
  );
521
521
  return W(
522
522
  "scroll",
523
- r,
523
+ o,
524
524
  t.current,
525
525
  () => t.current && e
526
526
  ), W(
@@ -535,7 +535,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
535
535
  () => t.current && e
536
536
  ), e ? [Ft, t] : ["", t];
537
537
  }, Ft = `
538
- overflow-y: ${Ne() === fe.Chrome || Ne() === fe.EdgeChromium ? "overlay" : "auto"};
538
+ overflow-y: ${De() === me.Chrome || De() === me.EdgeChromium ? "overlay" : "auto"};
539
539
  overflow-x: hidden;
540
540
  -ms-overflow-style: none; /* IE 10+ */
541
541
  scrollbar-width: thin; /* Firefox */
@@ -563,73 +563,73 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
563
563
  }
564
564
  }
565
565
  `, Do = () => {
566
- const [e, t] = k(null), n = B(), o = Z();
566
+ const [e, t] = w(null), n = B(), r = Z();
567
567
  return v(() => {
568
- n.get("settings").then((r) => {
569
- o.current && t(r);
568
+ n.get("settings").then((o) => {
569
+ r.current && t(o);
570
570
  });
571
- }, [o]), e;
572
- }, Fe = (e = !1) => {
573
- const [t, n] = k(e), o = H((r) => {
574
- n(typeof r == "boolean" ? r : (s) => !s);
571
+ }, [r]), e;
572
+ }, Pe = (e = !1) => {
573
+ const [t, n] = w(e), r = E((o) => {
574
+ n(typeof o == "boolean" ? o : (s) => !s);
575
575
  }, []);
576
- return [t, o];
576
+ return [t, r];
577
577
  }, zo = (e) => {
578
- const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = k(null), [c, h] = k(null), a = Z();
578
+ const t = B(), n = Y(), r = t.get("widgetDOMElement"), [o, s] = w(null), [c, h] = w(null), a = Z();
579
579
  v(() => {
580
580
  if (n && a.current) {
581
581
  const d = n.nodes.all.find((f) => f.name === "root-area"), u = n.nodes.all.find((f) => f.type === "view");
582
582
  if (!(u != null && u.attributes.properties.animation) && !(d != null && d.attributes.properties.animation))
583
583
  e();
584
584
  else {
585
- const f = (p = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${p}"]`), g = f(u == null ? void 0 : u.id);
586
- g && s(g);
585
+ const f = (g = "") => r == null ? void 0 : r.querySelector(`[data-node-id="${g}"]`), C = f(u == null ? void 0 : u.id);
586
+ C && s(C);
587
587
  const m = f(d == null ? void 0 : d.id);
588
588
  m && h(m);
589
589
  }
590
590
  }
591
591
  }, [n, t, a]);
592
- const l = H(
592
+ const l = E(
593
593
  (d) => {
594
- a.current && (d.target === r || d.target === c) && e();
594
+ a.current && (d.target === o || d.target === c) && e();
595
595
  },
596
- [e, a, r, c]
596
+ [e, a, o, c]
597
597
  );
598
598
  W(
599
599
  "transitionend",
600
600
  l,
601
- r
601
+ o
602
602
  ), W(
603
603
  "transitionend",
604
604
  l,
605
605
  c
606
606
  );
607
- }, ae = (e, t, n = [], o) => {
608
- const r = At(o);
607
+ }, ce = (e, t, n = [], r) => {
608
+ const o = At(r);
609
609
  return v(() => {
610
- if (r) {
611
- const s = r.subscribe(e, t);
610
+ if (o) {
611
+ const s = o.subscribe(e, t);
612
612
  return () => {
613
613
  s();
614
614
  };
615
615
  }
616
- }, [r].concat(n)), (s) => r == null ? void 0 : r.dispatch(e, s);
617
- }, ye = (e, t) => {
618
- const n = ae("widget:menu-toggled", (o, r) => {
619
- r !== e && t();
616
+ }, [o].concat(n)), (s) => o == null ? void 0 : o.dispatch(e, s);
617
+ }, be = (e, t) => {
618
+ const n = ce("widget:menu-toggled", (r, o) => {
619
+ o !== e && t();
620
620
  });
621
621
  return () => n(e);
622
- }, be = D(
623
- ({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
622
+ }, ve = D(
623
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i(
624
624
  "span",
625
625
  {
626
- ref: o,
627
- className: M(e, "humany-text"),
626
+ ref: r,
627
+ className: S(e, "humany-text"),
628
628
  ...z(n),
629
629
  children: t
630
630
  }
631
631
  )
632
- ), Pe = (e) => $`
632
+ ), je = (e) => L`
633
633
  display: flex;
634
634
  justify-content: center;
635
635
  flex-direction: column;
@@ -639,8 +639,8 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
639
639
  box-shadow: ${e.theme.boxShadow || "none"};
640
640
  ${e["data-loading"] && "min-height: 150px;"}
641
641
  `, Pt = (e) => {
642
- var t, n, o;
643
- return $`
642
+ var t, n, r;
643
+ return L`
644
644
  cursor: pointer;
645
645
  text-align: center;
646
646
  border: none;
@@ -648,17 +648,17 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
648
648
  padding: ${(t = e.theme.sizes) == null ? void 0 : t.normal};
649
649
  border-radius: ${e.theme.borderRadius};
650
650
  font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
651
- font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
651
+ font-size: ${(r = e.theme.fonts) == null ? void 0 : r.normal};
652
652
  `;
653
653
  }, Bo = (e) => {
654
654
  var c;
655
- const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
656
- return $`
655
+ const { primaryColor: t, secondaryColor: n, active: r, theme: o, disabled: s } = e;
656
+ return L`
657
657
  ${Pt(e)}
658
- border: 1px solid ${o ? n : t};
659
- background-color: ${o ? t : n};
658
+ border: 1px solid ${r ? n : t};
659
+ background-color: ${r ? t : n};
660
660
 
661
- color: ${o ? n : t};
661
+ color: ${r ? n : t};
662
662
  transition: background-color 200ms ease-out, color 200ms ease-out;
663
663
 
664
664
  span,
@@ -666,11 +666,11 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
666
666
  p,
667
667
  a {
668
668
  transition: color 200ms ease-out;
669
- color: ${o ? n : t};
670
- font-size: ${(c = r.fonts) == null ? void 0 : c.normal};
669
+ color: ${r ? n : t};
670
+ font-size: ${(c = o.fonts) == null ? void 0 : c.normal};
671
671
  }
672
672
 
673
- ${!s && $`
673
+ ${!s && L`
674
674
  &:hover {
675
675
  background-color: ${t};
676
676
  color: ${n};
@@ -689,22 +689,22 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
689
689
  `}
690
690
  `;
691
691
  }, O = (e) => {
692
- var t, n, o;
693
- return $`
692
+ var t, n, r;
693
+ return L`
694
694
  outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
695
- color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
695
+ color: ${(r = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : r.inactiveText};
696
696
  border-color: transparent;
697
697
  `;
698
- }, jt = (e) => $`
698
+ }, jt = (e) => L`
699
699
  ${O(e)}
700
700
  text-decoration: underline;
701
701
  `, Vo = (e) => {
702
702
  var t;
703
- return $`
703
+ return L`
704
704
  ${O(e)}
705
705
  outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
706
706
  `;
707
- }, ve = C(se)`
707
+ }, xe = p(ae)`
708
708
  position: absolute;
709
709
  top: ${(e) => {
710
710
  var t;
@@ -732,7 +732,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
732
732
  height: 15px;
733
733
  box-sizing: content-box;
734
734
  }
735
- `, De = C(be)`
735
+ `, ze = p(ve)`
736
736
  font-size: ${(e) => {
737
737
  var t;
738
738
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -745,7 +745,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
745
745
  }};
746
746
  `, Kt = (e) => {
747
747
  var t;
748
- return $`
748
+ return L`
749
749
  padding: 0;
750
750
  margin: 0;
751
751
  list-style: none;
@@ -766,17 +766,17 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
766
766
  }
767
767
  `;
768
768
  }, Wo = (e) => {
769
- var t, n, o, r;
770
- return $`
769
+ var t, n, r, o;
770
+ return L`
771
771
  > div {
772
772
  ${ie(e)(
773
773
  "> h1",
774
- $`
774
+ L`
775
775
  margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
776
776
  font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
777
777
  font-weight: normal;
778
778
  line-height: 1.8em;
779
- color: ${(o = e.theme.colors) == null ? void 0 : o.text};
779
+ color: ${(r = e.theme.colors) == null ? void 0 : r.text};
780
780
  `
781
781
  )}
782
782
  }
@@ -785,11 +785,11 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
785
785
  }
786
786
  ${ie(e)(
787
787
  "h1",
788
- $`
788
+ L`
789
789
  display: flex;
790
790
  align-items: center;
791
791
  i {
792
- margin: 7px ${(r = e.theme.sizes) == null ? void 0 : r.normal} 0 0;
792
+ margin: 7px ${(o = e.theme.sizes) == null ? void 0 : o.normal} 0 0;
793
793
  width: 24px;
794
794
  display: inline-block;
795
795
  vertical-align: text-bottom;
@@ -802,8 +802,8 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
802
802
  )}
803
803
  `;
804
804
  }, Zo = (e) => {
805
- var t, n, o, r, s, c;
806
- return $`
805
+ var t, n, r, o, s, c;
806
+ return L`
807
807
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
808
808
  font-weight: 300;
809
809
  line-height: 1.5em;
@@ -828,7 +828,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
828
828
  }
829
829
 
830
830
  a {
831
- color: ${(o = e.theme.colors) == null ? void 0 : o.link};
831
+ color: ${(r = e.theme.colors) == null ? void 0 : r.link};
832
832
  &:focus-visible {
833
833
  ${jt(e)};
834
834
  }
@@ -841,7 +841,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
841
841
 
842
842
  p {
843
843
  word-break: break-word;
844
- margin: ${(r = e.theme.sizes) == null ? void 0 : r.normal} 0;
844
+ margin: ${(o = e.theme.sizes) == null ? void 0 : o.normal} 0;
845
845
  }
846
846
 
847
847
  p:first-child {
@@ -861,26 +861,26 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
861
861
  parent: t = document.body,
862
862
  children: n
863
863
  }) => {
864
- const [o] = k(() => {
865
- const r = document.getElementById(e) || document.createElement("div");
866
- return r.id = e, r;
864
+ const [r] = w(() => {
865
+ const o = document.getElementById(e) || document.createElement("div");
866
+ return o.id = e, o;
867
867
  });
868
- return v(() => (t.appendChild(o), () => {
869
- o.childElementCount <= 1 && o.remove();
870
- }), [o]), bt(n, o);
868
+ return v(() => (t.appendChild(r), () => {
869
+ r.childElementCount <= 1 && r.remove();
870
+ }), [r]), bt(n, r);
871
871
  }, Q = ({
872
872
  text: e = "",
873
873
  backgroundSize: t = "contain",
874
874
  size: n = 12,
875
- symbol: o = {
875
+ symbol: r = {
876
876
  content: "",
877
877
  type: ""
878
878
  },
879
- elementStyle: r = {},
879
+ elementStyle: o = {},
880
880
  className: s,
881
881
  ...c
882
882
  }) => {
883
- const { type: h, content: a } = o, l = {
883
+ const { type: h, content: a } = r, l = {
884
884
  "aria-label": e,
885
885
  role: "presentation"
886
886
  };
@@ -896,13 +896,13 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
896
896
  return /* @__PURE__ */ i(
897
897
  "i",
898
898
  {
899
- className: M(
899
+ className: S(
900
900
  s,
901
901
  "humany-icon",
902
902
  "humany-custom-icon"
903
903
  ),
904
904
  title: e,
905
- style: { ...d, ...r },
905
+ style: { ...d, ...o },
906
906
  ...l,
907
907
  ...c
908
908
  }
@@ -910,7 +910,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
910
910
  }
911
911
  case "Svg": {
912
912
  const d = {
913
- className: M(s, "humany-icon"),
913
+ className: S(s, "humany-icon"),
914
914
  width: `${n}`,
915
915
  fill: "none",
916
916
  xmlns: "http://www.w3.org/2000/svg",
@@ -1466,7 +1466,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
1466
1466
  return e ? /* @__PURE__ */ i(
1467
1467
  "i",
1468
1468
  {
1469
- className: M(s, "humany-letter-symbol"),
1469
+ className: S(s, "humany-letter-symbol"),
1470
1470
  title: e,
1471
1471
  ...l,
1472
1472
  ...c,
@@ -1474,7 +1474,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
1474
1474
  }
1475
1475
  ) : null;
1476
1476
  }
1477
- }, Yt = C.svg`
1477
+ }, Yt = p.svg`
1478
1478
  transform: rotate(180deg);
1479
1479
  `, Xt = {
1480
1480
  h1: "h1",
@@ -1489,21 +1489,21 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
1489
1489
  variant: e,
1490
1490
  component: t,
1491
1491
  className: n,
1492
- children: o
1492
+ children: r
1493
1493
  }) => {
1494
- const { typographyVariantMapping: r = {} } = Ot(), s = {
1494
+ const { typographyVariantMapping: o = {} } = Ot(), s = {
1495
1495
  ...Xt,
1496
- ...r
1496
+ ...o
1497
1497
  }, c = t || s[e] || "span";
1498
- return /* @__PURE__ */ i(_t, { className: n, as: c, children: o });
1499
- }, _t = C.span``;
1498
+ return /* @__PURE__ */ i(_t, { className: n, as: c, children: r });
1499
+ }, _t = p.span``;
1500
1500
  var Ut = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Ut || {});
1501
1501
  const qt = 300, Io = ({
1502
1502
  className: e,
1503
1503
  children: t,
1504
1504
  header: n,
1505
- onToggle: o,
1506
- trigger: r,
1505
+ onToggle: r,
1506
+ trigger: o,
1507
1507
  fullScreen: s = !1,
1508
1508
  closeButtonAriaLabel: c,
1509
1509
  animation: h = {
@@ -1511,55 +1511,53 @@ const qt = 300, Io = ({
1511
1511
  /* SlideInBottom */
1512
1512
  }
1513
1513
  }) => {
1514
- const { duration: a = qt } = h, l = L(), d = L(), [u, f] = Ae(!0), [g, m] = Fe(), p = Ie(g), w = L(_());
1514
+ const { duration: a = qt } = h, l = M(), d = M(), [u, f] = Fe(!0), [C, m] = Pe(), g = Oe(C), k = M(_());
1515
1515
  v(() => {
1516
- o && o(g);
1517
- }, [g]);
1518
- const y = j("Escape");
1519
- v(() => {
1520
- y && m(!1);
1521
- }, [y]), W(
1516
+ r && r(C);
1517
+ }, [C]), j("Escape", (H) => {
1518
+ C && (se(H), m(!1));
1519
+ }), W(
1522
1520
  "click",
1523
- (E) => {
1524
- const { target: R } = E;
1525
- !d.current || !f.current || !R || d.current !== R && f.current !== R && !f.current.contains(R) && !d.current.contains(R) && m(!1);
1521
+ (H) => {
1522
+ const { target: T } = H;
1523
+ !d.current || !f.current || !T || d.current !== T && f.current !== T && !f.current.contains(T) && !d.current.contains(T) && m(!1);
1526
1524
  },
1527
1525
  window
1528
1526
  );
1529
- const S = ye(w.current, () => {
1527
+ const y = be(k.current, () => {
1530
1528
  m(!1);
1531
1529
  });
1532
- ae("router:changed", () => {
1530
+ ce("router:changed", () => {
1533
1531
  m(!1);
1534
1532
  }), v(() => {
1535
- g && l.current ? l.current.focus() : !g && d.current && p && d.current.focus();
1536
- }, [g, l.current, d.current]);
1537
- const N = nn[h.type];
1533
+ C && l.current ? l.current.focus() : !C && d.current && g && d.current.focus();
1534
+ }, [C, l.current, d.current]);
1535
+ const $ = nn[h.type];
1538
1536
  return /* @__PURE__ */ b(U, { children: [
1539
1537
  /* @__PURE__ */ i(
1540
- Ve,
1538
+ We,
1541
1539
  {
1542
- in: g,
1540
+ in: C,
1543
1541
  className: "humany-drawer-transition",
1544
1542
  classNames: "humany-drawer-transition",
1545
1543
  unmountOnExit: !0,
1546
1544
  timeout: a,
1547
1545
  children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
1548
- N,
1546
+ $,
1549
1547
  {
1550
1548
  duration: a,
1551
1549
  fullScreen: s,
1552
- className: M(
1550
+ className: S(
1553
1551
  e,
1554
1552
  "humany-drawer",
1555
- `humany-drawer-${w.current}`
1553
+ `humany-drawer-${k.current}`
1556
1554
  ),
1557
1555
  clientHeight: document.body.clientHeight,
1558
1556
  css: u,
1559
1557
  ref: f,
1560
1558
  children: [
1561
1559
  /* @__PURE__ */ i(
1562
- ve,
1560
+ xe,
1563
1561
  {
1564
1562
  onClick: () => m(!1),
1565
1563
  tabIndex: 0,
@@ -1575,16 +1573,16 @@ const qt = 300, Io = ({
1575
1573
  ) })
1576
1574
  }
1577
1575
  ),
1578
- oe.cloneElement(r, {
1579
- onClick: (E) => {
1580
- m(), S();
1576
+ oe.cloneElement(o, {
1577
+ onClick: (H) => {
1578
+ m(), y();
1581
1579
  },
1582
1580
  ref: d,
1583
- "aria-label": r.props.title,
1584
- "aria-expanded": g
1581
+ "aria-label": o.props.title,
1582
+ "aria-expanded": C
1585
1583
  })
1586
1584
  ] });
1587
- }, ce = C.div`
1585
+ }, le = p.div`
1588
1586
  font-family: ${(e) => {
1589
1587
  var t;
1590
1588
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1601,7 +1599,7 @@ const qt = 300, Io = ({
1601
1599
  box-shadow: ${(e) => e.theme.boxShadow};
1602
1600
  background: #ffffff;
1603
1601
  ${(e) => e.css && e.css}
1604
- `, Qt = C(X)`
1602
+ `, Qt = p(X)`
1605
1603
  padding: ${(e) => {
1606
1604
  var t;
1607
1605
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
@@ -1624,11 +1622,11 @@ const qt = 300, Io = ({
1624
1622
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
1625
1623
  }};
1626
1624
  line-height: 1.2em;
1627
- `, le = (e) => $`
1625
+ `, de = (e) => L`
1628
1626
  transition: ${e.duration}ms;
1629
- `, Gt = C(ce)`
1627
+ `, Gt = p(le)`
1630
1628
  max-height: 0;
1631
- ${le}
1629
+ ${de}
1632
1630
 
1633
1631
  &.humany-drawer-transition-enter {
1634
1632
  max-height: 0;
@@ -1643,8 +1641,8 @@ const qt = 300, Io = ({
1643
1641
  &.humany-drawer-transition-exit-done {
1644
1642
  max-height: 0;
1645
1643
  }
1646
- `, Jt = C(ce)`
1647
- ${le}
1644
+ `, Jt = p(le)`
1645
+ ${de}
1648
1646
  transform: translateX(100%);
1649
1647
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1650
1648
 
@@ -1661,8 +1659,8 @@ const qt = 300, Io = ({
1661
1659
  &.humany-drawer-transition-exit-done {
1662
1660
  transform: translateX(100%);
1663
1661
  }
1664
- `, en = C(ce)`
1665
- ${le}
1662
+ `, en = p(le)`
1663
+ ${de}
1666
1664
  transform: translateX(-100%);
1667
1665
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1668
1666
 
@@ -1679,8 +1677,8 @@ const qt = 300, Io = ({
1679
1677
  &.humany-drawer-transition-exit-done {
1680
1678
  transform: translateX(-100%);
1681
1679
  }
1682
- `, tn = C(ce)`
1683
- ${le}
1680
+ `, tn = p(le)`
1681
+ ${de}
1684
1682
  bottom: unset;
1685
1683
  top: 0;
1686
1684
  height: 0;
@@ -1703,79 +1701,79 @@ const qt = 300, Io = ({
1703
1701
  "slide-in-right": Jt,
1704
1702
  "slide-in-left": en,
1705
1703
  "slide-in-top": tn
1706
- }, je = (e, t, n) => {
1707
- const [o, r] = k(0), [s, c] = k(0), h = H(
1704
+ }, Ke = (e, t, n) => {
1705
+ const [r, o] = w(0), [s, c] = w(0), h = E(
1708
1706
  (a, l) => {
1709
1707
  if (a.preventDefault(), l) {
1710
1708
  const d = l.getBoundingClientRect();
1711
- r(Math.max(document.body.clientWidth - d.right, 1)), c(d.bottom + window.scrollY);
1709
+ o(Math.max(document.body.clientWidth - d.right, 1)), c(d.bottom + window.scrollY);
1712
1710
  }
1713
1711
  },
1714
- [o, s, r, c]
1712
+ [r, s, o, c]
1715
1713
  );
1716
1714
  return v(() => {
1717
1715
  if (!n || !e)
1718
1716
  return;
1719
1717
  const a = n.getBoundingClientRect(), l = {
1720
- x: o,
1718
+ x: r,
1721
1719
  y: s
1722
1720
  };
1723
- a.left < 0 && (l.x = 0), a.bottom > window.innerHeight && (l.y = 0), l.x !== o && r(l.x), l.y !== s && c(l.y);
1724
- }, [n, e, t]), [{ x: o, y: s }, h];
1721
+ a.left < 0 && (l.x = 0), a.bottom > window.innerHeight && (l.y = 0), l.x !== r && o(l.x), l.y !== s && c(l.y);
1722
+ }, [n, e, t]), [{ x: r, y: s }, h];
1725
1723
  }, Oo = oe.forwardRef(
1726
1724
  ({
1727
1725
  className: e = "",
1728
1726
  children: t = null,
1729
1727
  trigger: n,
1730
- closeButtonAriaLabel: o,
1731
- ...r
1728
+ closeButtonAriaLabel: r,
1729
+ ...o
1732
1730
  }, s) => {
1733
- const c = L(), h = L(), a = L();
1734
- ge(s, () => a.current, [a.current]);
1735
- const l = L(_()), [d, u] = k(!1), f = Ie(d), [{ x: g, y: m }, p] = je(d, l.current, a.current), w = j("Escape");
1736
- v(() => {
1737
- w && u(!1);
1738
- }, [w]), v(() => {
1731
+ const c = M(), h = M(), a = M();
1732
+ pe(s, () => a.current, [a.current]);
1733
+ const l = M(_()), [d, u] = w(!1), f = Oe(d), [{ x: C, y: m }, g] = Ke(d, l.current, a.current);
1734
+ j("Escape", ($) => {
1735
+ d && (se($), u(!1));
1736
+ }), v(() => {
1739
1737
  d && c.current ? c.current.focus() : !d && h.current && f && h.current.focus();
1740
1738
  }, [d, c.current, h.current]), W(
1741
1739
  "click",
1742
- (N) => {
1743
- const { target: E } = N;
1744
- !a.current || !E || a.current !== E && !a.current.contains(E) && u(!1);
1740
+ ($) => {
1741
+ const { target: H } = $;
1742
+ !a.current || !H || a.current !== H && !a.current.contains(H) && u(!1);
1745
1743
  },
1746
1744
  window
1747
- ), ae("router:changed", () => {
1745
+ ), ce("router:changed", () => {
1748
1746
  u(!1);
1749
1747
  });
1750
- const y = ye(l.current, () => {
1748
+ const k = be(l.current, () => {
1751
1749
  u(!1);
1752
- }), S = H(
1753
- (N) => {
1754
- N.stopPropagation(), p(N, h.current), u(!d), y();
1750
+ }), y = E(
1751
+ ($) => {
1752
+ $.stopPropagation(), g($, h.current), u(!d), k();
1755
1753
  },
1756
- [y, p, u]
1754
+ [k, g, u]
1757
1755
  );
1758
1756
  return /* @__PURE__ */ b(U, { children: [
1759
1757
  d && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
1760
1758
  on,
1761
1759
  {
1762
- className: M(
1760
+ className: S(
1763
1761
  "humany-dropdown",
1764
1762
  `humany-dropdown-${l.current}`,
1765
1763
  e
1766
1764
  ),
1767
- ...r,
1768
- x: g,
1765
+ ...o,
1766
+ x: C,
1769
1767
  y: m,
1770
1768
  ref: a,
1771
1769
  children: [
1772
1770
  /* @__PURE__ */ i(
1773
- ve,
1771
+ xe,
1774
1772
  {
1775
1773
  onClick: () => u(!1),
1776
1774
  tabIndex: 0,
1777
1775
  ref: c,
1778
- "aria-label": o,
1776
+ "aria-label": r,
1779
1777
  children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
1780
1778
  }
1781
1779
  ),
@@ -1784,15 +1782,15 @@ const qt = 300, Io = ({
1784
1782
  }
1785
1783
  ) }),
1786
1784
  oe.cloneElement(n, {
1787
- onClick: S,
1785
+ onClick: y,
1788
1786
  ref: h,
1789
1787
  "aria-label": n.props.title,
1790
1788
  "aria-expanded": d
1791
1789
  })
1792
1790
  ] });
1793
1791
  }
1794
- ), on = C.div`
1795
- ${Pe}
1792
+ ), on = p.div`
1793
+ ${je}
1796
1794
  padding: ${(e) => {
1797
1795
  var t;
1798
1796
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -1802,35 +1800,35 @@ const qt = 300, Io = ({
1802
1800
  box-shadow: ${(e) => e.theme.boxShadow};
1803
1801
 
1804
1802
  ${(e) => {
1805
- var n, o, r;
1803
+ var n, r, o;
1806
1804
  let t = "";
1807
- return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, t;
1805
+ return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, t;
1808
1806
  }};
1809
- `, rn = ({ ...e }) => /* @__PURE__ */ i(sn, { ...e }), sn = C.div`
1807
+ `, rn = ({ ...e }) => /* @__PURE__ */ i(sn, { ...e }), sn = p.div`
1810
1808
  display: none;
1811
1809
  `, Ao = D(
1812
- ({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
1810
+ ({ children: e, columns: t, gap: n, className: r, ...o }, s) => /* @__PURE__ */ i(
1813
1811
  an,
1814
1812
  {
1815
- className: M(o, "humany-grid"),
1813
+ className: S(r, "humany-grid"),
1816
1814
  "data-columns": t,
1817
1815
  "data-gap": n,
1818
- ...We(r),
1819
- ...z(r),
1816
+ ...Ze(o),
1817
+ ...z(o),
1820
1818
  ref: s,
1821
1819
  children: e
1822
1820
  }
1823
1821
  )
1824
- ), an = C.div`
1822
+ ), an = p.div`
1825
1823
  display: grid;
1826
1824
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1827
1825
  grid-gap: ${(e) => e["data-gap"]};
1828
1826
  justify-content: center;
1829
1827
  grid-auto-rows: max-content;
1830
1828
  ${St}
1831
- `, Ke = D(
1832
- ({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
1833
- const s = B(), [c, h] = k();
1829
+ `, Ye = D(
1830
+ ({ htmlParseInstruction: e = null, className: t, html: n, ...r }, o) => {
1831
+ const s = B(), [c, h] = w();
1834
1832
  v(() => {
1835
1833
  const d = Nt(s, n), u = {
1836
1834
  ...d,
@@ -1842,31 +1840,31 @@ const qt = 300, Io = ({
1842
1840
  }, f = Rt(n, u);
1843
1841
  h(f);
1844
1842
  }, [n, e]);
1845
- const a = L(null), l = s.get("$widget");
1843
+ const a = M(null), l = s.get("$widget");
1846
1844
  return v(() => {
1847
1845
  const d = a.current;
1848
1846
  if (!d || d.getAttribute("data-observed")) return;
1849
1847
  new MutationObserver((f) => {
1850
- f.forEach((g) => {
1851
- var y, S, N;
1852
- let m = g.target;
1848
+ f.forEach((C) => {
1849
+ var y, $, H;
1850
+ let m = C.target;
1853
1851
  if (m.tagName === "DIV" && m.matches("[data-notification]") && m.getAttribute("data-expandable")) {
1854
- const E = m.firstChild;
1855
- if (E && E.nodeType === Node.TEXT_NODE) {
1856
- const R = document.createElement("p");
1857
- R.appendChild(E), m.appendChild(R);
1852
+ const T = m.firstChild;
1853
+ if (T && T.nodeType === Node.TEXT_NODE) {
1854
+ const N = document.createElement("p");
1855
+ N.appendChild(T), m.appendChild(N);
1858
1856
  return;
1859
- } else E && E.nodeType === Node.ELEMENT_NODE && (m = E);
1857
+ } else T && T.nodeType === Node.ELEMENT_NODE && (m = T);
1860
1858
  } else if (m.tagName !== "P" || !((y = m.closest("[data-notification]")) != null && y.getAttribute("data-expandable")))
1861
1859
  return;
1862
1860
  if (!(m != null && m.closest(".humany-notification-row"))) return;
1863
- const p = (S = m.closest(".humany-notification-row")) == null ? void 0 : S.getAttribute("data-node-id"), w = (N = m.closest("[data-notification]")) == null ? void 0 : N.getAttribute("data-notification");
1864
- m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(w), l.events.dispatch("notification:expandable", {
1861
+ const g = ($ = m.closest(".humany-notification-row")) == null ? void 0 : $.getAttribute("data-node-id"), k = (H = m.closest("[data-notification]")) == null ? void 0 : H.getAttribute("data-notification");
1862
+ m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(k), l.events.dispatch("notification:expandable", {
1865
1863
  expandable: !0,
1866
- notificationRowId: p
1864
+ notificationRowId: g
1867
1865
  })) : l.events.dispatch("notification:expandable", {
1868
1866
  expandable: !1,
1869
- notificationRowId: p
1867
+ notificationRowId: g
1870
1868
  });
1871
1869
  });
1872
1870
  }).observe(d, {
@@ -1876,8 +1874,8 @@ const qt = 300, Io = ({
1876
1874
  }, [c, l]), /* @__PURE__ */ i(
1877
1875
  "div",
1878
1876
  {
1879
- className: M(t, "humany-html"),
1880
- ...z(o),
1877
+ className: S(t, "humany-html"),
1878
+ ...z(r),
1881
1879
  ref: a,
1882
1880
  children: c
1883
1881
  }
@@ -1887,15 +1885,15 @@ const qt = 300, Io = ({
1887
1885
  faIcon: e,
1888
1886
  title: t,
1889
1887
  className: n = "",
1890
- role: o = "presentation",
1891
- ...r
1888
+ role: r = "presentation",
1889
+ ...o
1892
1890
  }) => /* @__PURE__ */ i(
1893
1891
  "i",
1894
1892
  {
1895
- className: M(n, `fa fa-${e}`),
1893
+ className: S(n, `fa fa-${e}`),
1896
1894
  title: t,
1897
- role: o,
1898
- ...z(r)
1895
+ role: r,
1896
+ ...z(o)
1899
1897
  }
1900
1898
  ), Fo = D(
1901
1899
  ({
@@ -1903,9 +1901,9 @@ const qt = 300, Io = ({
1903
1901
  autoFocus: t = !1,
1904
1902
  onFocusChange: n = () => {
1905
1903
  },
1906
- onEnter: o = () => {
1904
+ onEnter: r = () => {
1907
1905
  },
1908
- onEscape: r = () => {
1906
+ onEscape: o = () => {
1909
1907
  },
1910
1908
  selectAllOnFocus: s,
1911
1909
  onChange: c = () => {
@@ -1915,67 +1913,67 @@ const qt = 300, Io = ({
1915
1913
  autoComplete: l,
1916
1914
  ...d
1917
1915
  }, u) => {
1918
- const [f, g] = k(t), m = L();
1919
- ge(u, () => m.current), v(() => {
1916
+ const [f, C] = w(t), m = M();
1917
+ pe(u, () => m.current), v(() => {
1920
1918
  var y;
1921
1919
  t && ((y = m == null ? void 0 : m.current) == null || y.focus());
1922
1920
  }, [t, u, m]);
1923
- const p = (y, S) => {
1924
- g(y), n && n(y), s && y && S.target.select();
1925
- }, w = {
1921
+ const g = (y, $) => {
1922
+ C(y), n && n(y), s && y && $.target.select();
1923
+ }, k = {
1926
1924
  ...z(d),
1927
1925
  disabled: h,
1928
1926
  autoFocus: t,
1929
1927
  type: a,
1930
1928
  onKeyDown: (y) => {
1931
- y.key === "Enter" && f && o(y), y.key === "Escape" && f && r(y);
1929
+ y.key === "Enter" && f && r(y), y.key === "Escape" && f && o(y);
1932
1930
  },
1933
- onFocus: (y) => p(!0, y),
1934
- onBlur: (y) => p(!1, y),
1931
+ onFocus: (y) => g(!0, y),
1932
+ onBlur: (y) => g(!1, y),
1935
1933
  onChange: (y) => c(y.target.value || ""),
1936
- className: M(e, "humany-input"),
1934
+ className: S(e, "humany-input"),
1937
1935
  "data-type": a,
1938
1936
  ...l && { autoComplete: l }
1939
1937
  };
1940
1938
  return a !== "textarea" ? /* @__PURE__ */ i(
1941
1939
  "input",
1942
1940
  {
1943
- ...w,
1941
+ ...k,
1944
1942
  ref: m
1945
1943
  }
1946
1944
  ) : /* @__PURE__ */ i(
1947
1945
  "textarea",
1948
1946
  {
1949
- ...w,
1947
+ ...k,
1950
1948
  ref: m
1951
1949
  }
1952
1950
  );
1953
1951
  }
1954
1952
  ), ln = D(
1955
- ({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) => {
1953
+ ({ className: e, items: t, renderItem: n, renderLi: r = !1, ...o }, s) => {
1956
1954
  const c = t.length === 1 && t[0].expanded;
1957
1955
  return /* @__PURE__ */ i(
1958
1956
  "ul",
1959
1957
  {
1960
1958
  role: c ? "none" : void 0,
1961
- className: M(e, "humany-list"),
1959
+ className: S(e, "humany-list"),
1962
1960
  "data-item-count": t.length,
1963
- ...z(r),
1961
+ ...z(o),
1964
1962
  ref: s,
1965
1963
  children: t.map(
1966
- (h, a, l) => o ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(h, a, l) }, h.id || a) : n(h, a, l)
1964
+ (h, a, l) => r ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(h, a, l) }, h.id || a) : n(h, a, l)
1967
1965
  )
1968
1966
  }
1969
1967
  );
1970
1968
  }
1971
1969
  ), dn = D(
1972
- ({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, h) => {
1970
+ ({ text: e, html: t, header: n, className: r, htmlParseInstruction: o, symbol: s, ...c }, h) => {
1973
1971
  var l;
1974
1972
  const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
1975
1973
  return /* @__PURE__ */ b(
1976
1974
  "div",
1977
1975
  {
1978
- className: M(o, "humany-paragraph"),
1976
+ className: S(r, "humany-paragraph"),
1979
1977
  ...z(c),
1980
1978
  ref: h,
1981
1979
  children: [
@@ -1989,8 +1987,8 @@ const qt = 300, Io = ({
1989
1987
  ]
1990
1988
  }
1991
1989
  ) : null,
1992
- t ? /* @__PURE__ */ i(Ke, { html: t, htmlParseInstruction: r }) : null,
1993
- e ? /* @__PURE__ */ i(be, { children: e }) : null
1990
+ t ? /* @__PURE__ */ i(Ye, { html: t, htmlParseInstruction: o }) : null,
1991
+ e ? /* @__PURE__ */ i(ve, { children: e }) : null
1994
1992
  ]
1995
1993
  }
1996
1994
  );
@@ -2000,8 +1998,8 @@ const qt = 300, Io = ({
2000
1998
  header: e,
2001
1999
  customHeader: t,
2002
2000
  text: n,
2003
- html: o,
2004
- className: r,
2001
+ html: r,
2002
+ className: o,
2005
2003
  children: s,
2006
2004
  symbol: c,
2007
2005
  items: h,
@@ -2012,12 +2010,12 @@ const qt = 300, Io = ({
2012
2010
  }, f) => /* @__PURE__ */ b(
2013
2011
  "div",
2014
2012
  {
2015
- className: M(r, "humany-item-list"),
2013
+ className: S(o, "humany-item-list"),
2016
2014
  "data-item-count": h.length,
2017
2015
  ...z(u),
2018
2016
  ref: f,
2019
2017
  children: [
2020
- t || (e || n || o ? /* @__PURE__ */ i(dn, { symbol: c, header: e, text: n, html: o }) : null),
2018
+ t || (e || n || r ? /* @__PURE__ */ i(dn, { symbol: c, header: e, text: n, html: r }) : null),
2021
2019
  h.length ? /* @__PURE__ */ i(
2022
2020
  ln,
2023
2021
  {
@@ -2035,8 +2033,8 @@ const qt = 300, Io = ({
2035
2033
  className: e = "",
2036
2034
  tree: t,
2037
2035
  renderItem: n,
2038
- rootItem: o,
2039
- renderUnselected: r = !0,
2036
+ rootItem: r,
2037
+ renderUnselected: o = !0,
2040
2038
  renderEmpty: s = !0,
2041
2039
  ulProps: c,
2042
2040
  liProps: h
@@ -2044,11 +2042,11 @@ const qt = 300, Io = ({
2044
2042
  const a = (u) => !l(u), l = (u) => !u || u.length < 1 ? !0 : !u.some((f) => !!f.selected), d = (u, f) => /* @__PURE__ */ i(
2045
2043
  un,
2046
2044
  {
2047
- className: M(`humany-item-tree-level-${f}`),
2045
+ className: S(`humany-item-tree-level-${f}`),
2048
2046
  items: u,
2049
2047
  ulProps: c,
2050
- renderItem: (g) => {
2051
- const { id: m, selected: p, items: w, matches: y } = g, S = p && l(w);
2048
+ renderItem: (C) => {
2049
+ const { id: m, selected: g, items: k, matches: y } = C, $ = g && l(k);
2052
2050
  return !s && !y ? null : /* @__PURE__ */ ct(
2053
2051
  "li",
2054
2052
  {
@@ -2056,14 +2054,14 @@ const qt = 300, Io = ({
2056
2054
  key: m,
2057
2055
  className: "humany-item-tree-item"
2058
2056
  },
2059
- n && n(g, f, S),
2060
- w && (r || S) && d(w, f + 1)
2057
+ n && n(C, f, $),
2058
+ k && (o || $) && d(k, f + 1)
2061
2059
  );
2062
2060
  }
2063
2061
  }
2064
2062
  );
2065
- return /* @__PURE__ */ b("div", { className: M(e, "humany-item-tree"), children: [
2066
- o && o(!a(t || [])),
2063
+ return /* @__PURE__ */ b("div", { className: S(e, "humany-item-tree"), children: [
2064
+ r && r(!a(t || [])),
2067
2065
  t && d(t, 1)
2068
2066
  ] });
2069
2067
  }, hn = D(
@@ -2072,87 +2070,87 @@ const qt = 300, Io = ({
2072
2070
  onClick: t = () => {
2073
2071
  },
2074
2072
  name: n = "",
2075
- to: o = "",
2076
- params: r = {},
2073
+ to: r = "",
2074
+ params: o = {},
2077
2075
  children: s,
2078
2076
  ...c
2079
2077
  }, h) => {
2080
- const a = Oe(), l = B();
2078
+ const a = Ae(), l = B();
2081
2079
  if (!a)
2082
2080
  return null;
2083
2081
  let d = "";
2084
2082
  const u = {
2085
2083
  onClick: t,
2086
- className: M(e, "humany-route-link"),
2084
+ className: S(e, "humany-route-link"),
2087
2085
  to: d,
2088
2086
  innerRef: h,
2089
2087
  ...c,
2090
2088
  ref: null
2091
2089
  };
2092
2090
  if (n) {
2093
- if (!(a.routes || []).find((p) => p.name === n))
2094
- return process.env.NODE_ENV !== "production" && de.warn(
2091
+ if (!(a.routes || []).find((g) => g.name === n))
2092
+ return process.env.NODE_ENV !== "production" && ue.warn(
2095
2093
  `Unable to create route. No route named "${n}" exist.`
2096
2094
  ), /* @__PURE__ */ i(
2097
- ue,
2095
+ he,
2098
2096
  {
2099
2097
  ...u,
2100
- onClick: (p) => {
2101
- t(p), p.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(
2098
+ onClick: (g) => {
2099
+ t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(
2102
2100
  `Unable to navigate. No route named "${n}" exist.`
2103
2101
  );
2104
2102
  },
2105
2103
  children: s
2106
2104
  }
2107
2105
  );
2108
- const m = Object.keys(r).reduce(
2109
- (p, w) => {
2110
- const y = r[w];
2106
+ const m = Object.keys(o).reduce(
2107
+ (g, k) => {
2108
+ const y = o[k];
2111
2109
  if (Array.isArray(y)) {
2112
2110
  if (y.length === 0)
2113
- return p;
2114
- p[w] = y.map((S) => typeof S == "string" ? encodeURIComponent(S) : S).join(",");
2111
+ return g;
2112
+ g[k] = y.map(($) => typeof $ == "string" ? encodeURIComponent($) : $).join(",");
2115
2113
  } else
2116
- p[w] = typeof y == "string" ? encodeURIComponent(y) : y;
2117
- return p;
2114
+ g[k] = typeof y == "string" ? encodeURIComponent(y) : y;
2115
+ return g;
2118
2116
  },
2119
2117
  {}
2120
2118
  );
2121
2119
  try {
2122
2120
  d = a.generate(n, m || {});
2123
2121
  } catch {
2124
- return /* @__PURE__ */ i(ue, { ...u, ref: u.innerRef, children: s });
2122
+ return /* @__PURE__ */ i(he, { ...u, ref: u.innerRef, children: s });
2125
2123
  }
2126
- d && a.settings.mode && a.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
2127
- } else if (o && a.history)
2124
+ d && a.settings.mode && a.settings.mode === Ne.browser && d[0] !== "/" && (d = `/${d}`);
2125
+ } else if (r && a.history)
2128
2126
  d = a.history.createHref({
2129
2127
  hash: "",
2130
- pathname: o,
2128
+ pathname: r,
2131
2129
  search: "",
2132
2130
  state: void 0
2133
2131
  });
2134
2132
  else
2135
- return process.env.NODE_ENV !== "production" && de.warn(
2133
+ return process.env.NODE_ENV !== "production" && ue.warn(
2136
2134
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
2137
2135
  ), null;
2138
- if (a.settings && a.settings.mode === Te.scopedHash) {
2136
+ if (a.settings && a.settings.mode === Ne.scopedHash) {
2139
2137
  const f = l.get("$widget").name;
2140
2138
  d = vt(d, f);
2141
2139
  }
2142
- return u.as ? /* @__PURE__ */ i(fn, { ...u, as: u.as, children: s }) : /* @__PURE__ */ i(ue, { ...u, to: d, children: s });
2140
+ return u.as ? /* @__PURE__ */ i(fn, { ...u, as: u.as, children: s }) : /* @__PURE__ */ i(he, { ...u, to: d, children: s });
2143
2141
  }
2144
- ), fn = C.span``;
2145
- let Ye = !1;
2142
+ ), fn = p.span``;
2143
+ let Xe = !1;
2146
2144
  const mn = (e) => {
2147
- Ye = e;
2148
- }, jo = () => Ye, xe = D(
2145
+ Xe = e;
2146
+ }, jo = () => Xe, we = D(
2149
2147
  ({
2150
2148
  className: e,
2151
2149
  disabled: t = !1,
2152
2150
  tabIndex: n = 0,
2153
- onClick: o = () => {
2151
+ onClick: r = () => {
2154
2152
  },
2155
- onKeyDown: r = () => {
2153
+ onKeyDown: o = () => {
2156
2154
  },
2157
2155
  title: s,
2158
2156
  as: c,
@@ -2162,8 +2160,8 @@ const mn = (e) => {
2162
2160
  routeName: d,
2163
2161
  params: u,
2164
2162
  ...f
2165
- }, g) => {
2166
- var N, E;
2163
+ }, C) => {
2164
+ var H, T;
2167
2165
  const m = {
2168
2166
  title: s,
2169
2167
  role: d === "index" || d === "contact-method" || t ? "button" : void 0,
@@ -2171,27 +2169,27 @@ const mn = (e) => {
2171
2169
  disabled: t,
2172
2170
  as: c,
2173
2171
  tabIndex: n,
2174
- className: M(e, "humany-link", [
2172
+ className: S(e, "humany-link", [
2175
2173
  !!t,
2176
2174
  "humany-disabled"
2177
2175
  ]),
2178
- onClick: (R) => {
2179
- if (R.persist(), t) {
2180
- R.preventDefault();
2176
+ onClick: (N) => {
2177
+ if (N.persist(), t) {
2178
+ N.preventDefault();
2181
2179
  return;
2182
2180
  }
2183
- o(R);
2181
+ r(N);
2184
2182
  },
2185
- onKeyDown: (R) => {
2186
- if (R.persist(), R.key === "Enter" && R.target.closest(".humany-guide-category-tree") && mn(!0), t) {
2187
- R.key !== "Tab" && R.preventDefault();
2183
+ onKeyDown: (N) => {
2184
+ if (N.persist(), N.key === "Enter" && N.target.closest(".humany-guide-category-tree") && mn(!0), t) {
2185
+ N.key !== "Tab" && N.preventDefault();
2188
2186
  return;
2189
2187
  }
2190
- r(R);
2188
+ o(N);
2191
2189
  }
2192
2190
  };
2193
2191
  f["data-client-name"] === "custom.link" && (m.role = "link");
2194
- const w = B().get("$settings"), y = t && ((E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.accessibility) == null ? void 0 : E.disableInactiveLink), S = f.description || "<p></p>";
2192
+ const k = B().get("$settings"), y = t && ((T = (H = k == null ? void 0 : k.data) == null ? void 0 : H.accessibility) == null ? void 0 : T.disableInactiveLink), $ = f.description || "<p></p>";
2195
2193
  return y ? /* @__PURE__ */ b(gn, { className: "disabled-link", children: [
2196
2194
  /* @__PURE__ */ i("div", { className: "icon-placeholder" }),
2197
2195
  /* @__PURE__ */ b("div", { className: "humany-contact-link-rich-content", children: [
@@ -2200,7 +2198,7 @@ const mn = (e) => {
2200
2198
  "div",
2201
2199
  {
2202
2200
  className: "inner-span",
2203
- dangerouslySetInnerHTML: { __html: S }
2201
+ dangerouslySetInnerHTML: { __html: $ }
2204
2202
  }
2205
2203
  )
2206
2204
  ] })
@@ -2211,7 +2209,7 @@ const mn = (e) => {
2211
2209
  params: u,
2212
2210
  ...m,
2213
2211
  ...z(f),
2214
- ref: g,
2212
+ ref: C,
2215
2213
  children: a
2216
2214
  }
2217
2215
  ) : /* @__PURE__ */ i(
@@ -2221,12 +2219,12 @@ const mn = (e) => {
2221
2219
  target: l,
2222
2220
  ...m,
2223
2221
  ...z(f),
2224
- ref: g,
2222
+ ref: C,
2225
2223
  children: a
2226
2224
  }
2227
2225
  );
2228
2226
  }
2229
- ), gn = C.div`
2227
+ ), gn = p.div`
2230
2228
  display: flex;
2231
2229
  opacity: 0.7;
2232
2230
  .inner-span {
@@ -2246,32 +2244,32 @@ const mn = (e) => {
2246
2244
  vertical-align: bottom;
2247
2245
  color: #333333;
2248
2246
  }
2249
- `, pn = C(hn)`
2247
+ `, pn = p(hn)`
2250
2248
  ${(e) => e.disabled ? `
2251
2249
  pointer-events: none;
2252
2250
  opacity: .7;
2253
2251
  ` : "cursor: pointer;"}
2254
- `, Cn = C.a`
2252
+ `, Cn = p.a`
2255
2253
  ${(e) => e.disabled ? `
2256
2254
  pointer-events: none;
2257
2255
  opacity: .7;
2258
2256
  ` : "cursor: pointer;"}
2259
- `, Xe = ({
2257
+ `, _e = ({
2260
2258
  visible: e,
2261
2259
  duration: t = 500,
2262
2260
  children: n,
2263
- onClick: o = () => {
2261
+ onClick: r = () => {
2264
2262
  },
2265
- ...r
2263
+ ...o
2266
2264
  }) => {
2267
- const s = L(), c = H(
2265
+ const s = M(), c = E(
2268
2266
  (h) => {
2269
- h.target === s.current && o(h);
2267
+ h.target === s.current && r(h);
2270
2268
  },
2271
- [o]
2269
+ [r]
2272
2270
  );
2273
2271
  return /* @__PURE__ */ i(
2274
- Ve,
2272
+ We,
2275
2273
  {
2276
2274
  in: e,
2277
2275
  className: "humany-overlay-transition",
@@ -2285,13 +2283,13 @@ const mn = (e) => {
2285
2283
  duration: t,
2286
2284
  ref: s,
2287
2285
  onClick: c,
2288
- ...r,
2286
+ ...o,
2289
2287
  children: n
2290
2288
  }
2291
2289
  ) })
2292
2290
  }
2293
2291
  );
2294
- }, yn = C.div`
2292
+ }, yn = p.div`
2295
2293
  background: rgba(0, 0, 0, 0.6);
2296
2294
  min-width: 100%;
2297
2295
  min-height: 100%;
@@ -2321,11 +2319,11 @@ const mn = (e) => {
2321
2319
  &.humany-overlay-transition-exit-done {
2322
2320
  opacity: 0;
2323
2321
  }
2324
- `, bn = Be`
2322
+ `, bn = Ve`
2325
2323
  100% {
2326
2324
  transform: rotate(360deg);
2327
2325
  }
2328
- `, vn = Be`
2326
+ `, vn = Ve`
2329
2327
  0% {
2330
2328
  stroke-dasharray: 1, 200;
2331
2329
  stroke-dashoffset: 0;
@@ -2338,7 +2336,7 @@ const mn = (e) => {
2338
2336
  stroke-dasharray: 89, 200;
2339
2337
  stroke-dashoffset: -124px;
2340
2338
  }
2341
- `, xn = C.svg`
2339
+ `, xn = p.svg`
2342
2340
  animation: ${bn} 2s linear infinite;
2343
2341
  height: 100%;
2344
2342
  transform-origin: center center;
@@ -2350,7 +2348,7 @@ const mn = (e) => {
2350
2348
  right: 0;
2351
2349
  margin: auto;
2352
2350
  transition: 200ms ease-out opacity;
2353
- `, wn = C.div`
2351
+ `, wn = p.div`
2354
2352
  position: absolute;
2355
2353
  top: 0;
2356
2354
  bottom: 0;
@@ -2368,7 +2366,7 @@ const mn = (e) => {
2368
2366
  svg {
2369
2367
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2370
2368
  }
2371
- `, kn = C.div`
2369
+ `, kn = p.div`
2372
2370
  position: relative;
2373
2371
  margin: 0 auto;
2374
2372
  width: 100px;
@@ -2377,7 +2375,7 @@ const mn = (e) => {
2377
2375
  display: block;
2378
2376
  padding-top: 100%;
2379
2377
  }
2380
- `, $n = C.circle`
2378
+ `, $n = p.circle`
2381
2379
  stroke-dasharray: 1, 200;
2382
2380
  stroke-dashoffset: 0;
2383
2381
  animation: ${vn} 1.5s ease-in-out infinite;
@@ -2390,7 +2388,7 @@ const mn = (e) => {
2390
2388
  `, Ln = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
2391
2389
  wn,
2392
2390
  {
2393
- className: M("humany-loader", e),
2391
+ className: S("humany-loader", e),
2394
2392
  "data-loading": t,
2395
2393
  children: /* @__PURE__ */ i(kn, { className: "humany-spinner", children: /* @__PURE__ */ i(xn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
2396
2394
  $n,
@@ -2408,28 +2406,28 @@ const mn = (e) => {
2408
2406
  zoomState: e,
2409
2407
  image: t,
2410
2408
  changeZoom: n,
2411
- ...o
2409
+ ...r
2412
2410
  }) => {
2413
2411
  var m;
2414
- const r = L(null), [s, c] = k(!1), [h, a] = k(!1), { width: l, height: d, ...u } = o.style || {}, f = H(() => {
2415
- const p = r.current;
2416
- if (p) {
2417
- const w = window.innerWidth / p.naturalWidth, y = window.innerHeight / p.naturalHeight, S = Math.min(w, y);
2418
- return y >= 1 && w >= 1 ? 1 : S;
2412
+ const o = M(null), [s, c] = w(!1), [h, a] = w(!1), { width: l, height: d, ...u } = r.style || {}, f = E(() => {
2413
+ const g = o.current;
2414
+ if (g) {
2415
+ const k = window.innerWidth / g.naturalWidth, y = window.innerHeight / g.naturalHeight, $ = Math.min(k, y);
2416
+ return y >= 1 && k >= 1 ? 1 : $;
2419
2417
  }
2420
2418
  return 1;
2421
- }, [s, t.src]), g = re(() => {
2422
- const p = r.current;
2423
- if (p && s) {
2419
+ }, [s, t.src]), C = re(() => {
2420
+ const g = o.current;
2421
+ if (g && s) {
2424
2422
  if (!h) {
2425
2423
  a(!0);
2426
- const w = f();
2427
- n(w);
2424
+ const k = f();
2425
+ n(k);
2428
2426
  }
2429
- return p.naturalWidth >= p.naturalHeight ? [`${e * p.naturalWidth}px`, "auto"] : ["auto", `${e * p.naturalHeight}px`];
2427
+ return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
2430
2428
  }
2431
2429
  return null;
2432
- }, [e, r, s, t.src]);
2430
+ }, [e, o, s, t.src]);
2433
2431
  return v(() => (c(!1), function() {
2434
2432
  a(!1);
2435
2433
  }), [t.src]), /* @__PURE__ */ b(U, { children: [
@@ -2440,11 +2438,11 @@ const mn = (e) => {
2440
2438
  onLoad: () => {
2441
2439
  c(!0);
2442
2440
  },
2443
- ref: r,
2444
- imageSize: g,
2441
+ ref: o,
2442
+ imageSize: C,
2445
2443
  draggable: "false",
2446
- ...o,
2447
- alt: ((m = o.alt) == null ? void 0 : m.toString()) || "",
2444
+ ...r,
2445
+ alt: ((m = r.alt) == null ? void 0 : m.toString()) || "",
2448
2446
  style: u,
2449
2447
  src: t.src,
2450
2448
  loaded: s
@@ -2452,14 +2450,14 @@ const mn = (e) => {
2452
2450
  ),
2453
2451
  /* @__PURE__ */ i(Hn, {})
2454
2452
  ] });
2455
- }, Sn = C(Ln)`
2453
+ }, Sn = p(Ln)`
2456
2454
  svg circle {
2457
2455
  stroke: #ffffff;
2458
2456
  }
2459
- `, En = C.img`
2457
+ `, En = p.img`
2460
2458
  transform: none;
2461
2459
 
2462
- ${(e) => e.imageSize && $`
2460
+ ${(e) => e.imageSize && L`
2463
2461
  width: ${e.imageSize[0]};
2464
2462
  height: ${e.imageSize[1]};
2465
2463
  display: inline-block;
@@ -2467,58 +2465,58 @@ const mn = (e) => {
2467
2465
  vertical-align: middle;
2468
2466
  position: relative;
2469
2467
  ${(e) => !e.loaded && "display:none;"}
2470
- `, Hn = C.div`
2468
+ `, Hn = p.div`
2471
2469
  height: 100%;
2472
2470
  display: inline-block;
2473
2471
  vertical-align: middle;
2474
2472
  `, Rn = () => {
2475
- const e = L(), [t, n] = k(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2473
+ const e = M(), [t, n] = w(!0), r = E(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2476
2474
  n(!1);
2477
2475
  }, 3e3), () => {
2478
2476
  e.current && clearTimeout(e.current);
2479
2477
  }), [t, e]);
2480
- return [t, o];
2478
+ return [t, r];
2481
2479
  }, Tn = ({ attrs: e, htmlBody: t }) => {
2482
- var Se;
2483
- const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = k(1), [h, a] = k({ top: 0, left: 0, x: 0, y: 0 }), [l, d] = k(!1), [u, f] = Rn(), [g, m] = k(null), [p, w] = k(null), y = L(null), S = L(null), N = L(null), E = L(null), R = L(null), [qe, Qe] = k(null);
2484
- v(() => {
2485
- n && m(null);
2486
- }, [n]), v(() => {
2487
- c(1);
2488
- }, [g]), v(() => {
2480
+ var Ee;
2481
+ const n = j("ArrowLeft"), r = j("ArrowRight"), [o, s] = w(1), [c, h] = w({ top: 0, left: 0, x: 0, y: 0 }), [a, l] = w(!1), [d, u] = Rn(), [f, C] = w(null), [m, g] = w(null), k = M(null), y = M(null), $ = M(null), H = M(null), T = M(null), [N, Qe] = w(null);
2482
+ j("Escape", (x) => {
2483
+ f !== null && (se(x), C(null));
2484
+ }), v(() => {
2485
+ s(1);
2486
+ }, [f]), v(() => {
2489
2487
  var I, ee;
2490
- if (g === null || S.current === null)
2488
+ if (f === null || y.current === null)
2491
2489
  return;
2492
- const x = S.current.firstElementChild, T = (I = N.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = N.current) == null ? void 0 : ee.querySelector(".nav-right");
2493
- if (p === "Right")
2494
- J && V ? V.focus() : G && T && T.focus();
2495
- else if (p === "Left")
2496
- G && T ? T.focus() : J && V && V.focus();
2490
+ const x = y.current.firstElementChild, R = (I = $.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = $.current) == null ? void 0 : ee.querySelector(".nav-right");
2491
+ if (m === "Right")
2492
+ J && V ? V.focus() : G && R && R.focus();
2493
+ else if (m === "Left")
2494
+ G && R ? R.focus() : J && V && V.focus();
2497
2495
  else {
2498
2496
  if (!x)
2499
2497
  return;
2500
2498
  x.focus();
2501
2499
  }
2502
- }, [g, S, N, p]), v(() => {
2503
- if (o) {
2504
- if (G) return Le();
2500
+ }, [f, y, $, m]), v(() => {
2501
+ if (n) {
2502
+ if (G) return Me();
2505
2503
  } else if (r && J)
2506
- return Me();
2507
- }, [o, r]), v(() => {
2508
- var T, V;
2509
- const x = ((V = (T = R.current) == null ? void 0 : T.style) == null ? void 0 : V.float) || "";
2504
+ return Se();
2505
+ }, [n, r]), v(() => {
2506
+ var R, V;
2507
+ const x = ((V = (R = T.current) == null ? void 0 : R.style) == null ? void 0 : V.float) || "";
2510
2508
  (x === "left" || x === "right") && Qe(x);
2511
2509
  }, []);
2512
2510
  const A = re(() => {
2513
2511
  const x = document.createElement("div");
2514
2512
  x.innerHTML = t || "";
2515
- const T = x.getElementsByTagName("img");
2516
- return Array.from(T).reduce(
2513
+ const R = x.getElementsByTagName("img");
2514
+ return Array.from(R).reduce(
2517
2515
  (I, ee) => {
2518
- const Ee = ee.getAttribute("src");
2519
- if (Ee) {
2516
+ const He = ee.getAttribute("src");
2517
+ if (He) {
2520
2518
  const rt = {
2521
- src: Ee
2519
+ src: He
2522
2520
  };
2523
2521
  I.push(rt);
2524
2522
  }
@@ -2526,73 +2524,73 @@ const mn = (e) => {
2526
2524
  },
2527
2525
  []
2528
2526
  );
2529
- }, [t]), ke = H(() => {
2527
+ }, [t]), $e = E(() => {
2530
2528
  const { src: x } = e;
2531
2529
  if (x) {
2532
- const T = A.findIndex((V, I) => V.src === x);
2533
- m(T);
2530
+ const R = A.findIndex((V, I) => V.src === x);
2531
+ C(R);
2534
2532
  }
2535
- }, [A, e]), Ge = H((x) => {
2536
- m(null);
2537
- }, []), $e = H(
2533
+ }, [A, e]), Ge = E((x) => {
2534
+ C(null);
2535
+ }, []), Le = E(
2538
2536
  (x) => {
2539
- c(x ? s + s * 0.25 : s - s * 0.25);
2537
+ s(x ? o + o * 0.25 : o - o * 0.25);
2540
2538
  },
2541
- [c, s]
2542
- ), Je = H(() => {
2543
- if (g !== null) {
2544
- const { src: x } = A[g];
2539
+ [s, o]
2540
+ ), Je = E(() => {
2541
+ if (f !== null) {
2542
+ const { src: x } = A[f];
2545
2543
  x && window.open(x, "_self");
2546
2544
  }
2547
- }, [A, g]), et = H(
2545
+ }, [A, f]), et = E(
2548
2546
  (x) => {
2549
- const T = E.current;
2550
- T && (a({
2551
- top: T.scrollTop,
2552
- left: T.scrollLeft,
2547
+ const R = H.current;
2548
+ R && (h({
2549
+ top: R.scrollTop,
2550
+ left: R.scrollLeft,
2553
2551
  x: x.clientX,
2554
2552
  y: x.clientY
2555
- }), d(!0));
2553
+ }), l(!0));
2556
2554
  },
2557
- [E]
2558
- ), tt = H(
2555
+ [H]
2556
+ ), tt = E(
2559
2557
  (x) => {
2560
- const T = E.current;
2561
- if (T && l) {
2562
- const V = x.clientX - h.x, I = x.clientY - h.y;
2563
- T.scrollTop = h.top - I, T.scrollLeft = h.left - V;
2558
+ const R = H.current;
2559
+ if (R && a) {
2560
+ const V = x.clientX - c.x, I = x.clientY - c.y;
2561
+ R.scrollTop = c.top - I, R.scrollLeft = c.left - V;
2564
2562
  }
2565
2563
  },
2566
- [l, h]
2564
+ [a, c]
2567
2565
  ), nt = (x) => {
2568
- x.preventDefault(), d(!1);
2566
+ x.preventDefault(), l(!1);
2569
2567
  }, ot = re(() => {
2570
- if (E.current) {
2571
- const x = E.current.getElementsByTagName("img");
2568
+ if (H.current) {
2569
+ const x = H.current.getElementsByTagName("img");
2572
2570
  if (x && x.length) {
2573
- const T = x[0];
2574
- return T.width > window.innerWidth || T.height > window.innerHeight;
2571
+ const R = x[0];
2572
+ return R.width > window.innerWidth || R.height > window.innerHeight;
2575
2573
  }
2576
2574
  }
2577
2575
  return !1;
2578
- }, [E, s]), Le = () => {
2579
- g !== null && (w("Left"), m(g - 1));
2580
- }, Me = () => {
2581
- g !== null && (w("Right"), m(g + 1));
2582
- }, G = g !== null && g > 0 && A.length > 1, J = g !== null && A.length - 1 > g;
2576
+ }, [H, o]), Me = () => {
2577
+ f !== null && (g("Left"), C(f - 1));
2578
+ }, Se = () => {
2579
+ f !== null && (g("Right"), C(f + 1));
2580
+ }, G = f !== null && f > 0 && A.length > 1, J = f !== null && A.length - 1 > f;
2583
2581
  return /* @__PURE__ */ b(U, { children: [
2584
- /* @__PURE__ */ i(Xe, { visible: g !== null, onClick: Ge, children: /* @__PURE__ */ b(
2582
+ /* @__PURE__ */ i(_e, { visible: f !== null, onClick: Ge, children: /* @__PURE__ */ b(
2585
2583
  In,
2586
2584
  {
2587
- onMouseDown: () => f(),
2588
- onMouseMove: () => f(),
2589
- onTouchStart: () => f(),
2590
- onKeyDown: () => f(),
2585
+ onMouseDown: () => u(),
2586
+ onMouseMove: () => u(),
2587
+ onTouchStart: () => u(),
2588
+ onKeyDown: () => u(),
2591
2589
  children: [
2592
- /* @__PURE__ */ i(On, { show: u.toString(), children: /* @__PURE__ */ i(
2590
+ /* @__PURE__ */ i(On, { show: d.toString(), children: /* @__PURE__ */ i(
2593
2591
  Bn,
2594
2592
  {
2595
- ref: S,
2593
+ ref: y,
2596
2594
  buttons: [
2597
2595
  {
2598
2596
  id: "download",
@@ -2602,7 +2600,7 @@ const mn = (e) => {
2602
2600
  },
2603
2601
  {
2604
2602
  id: "lightbox-close",
2605
- onClick: () => m(null),
2603
+ onClick: () => C(null),
2606
2604
  icon: "lightbox-close",
2607
2605
  ariaLabel: "Close"
2608
2606
  }
@@ -2612,25 +2610,25 @@ const mn = (e) => {
2612
2610
  /* @__PURE__ */ i(
2613
2611
  Fn,
2614
2612
  {
2615
- scrolling: l.toString(),
2613
+ scrolling: a.toString(),
2616
2614
  isDraggable: ot.toString(),
2617
- ref: E,
2615
+ ref: H,
2618
2616
  onMouseMove: tt,
2619
2617
  onMouseDown: et,
2620
2618
  onMouseUp: nt,
2621
- children: g !== null && /* @__PURE__ */ i(
2619
+ children: f !== null && /* @__PURE__ */ i(
2622
2620
  Mn,
2623
2621
  {
2624
2622
  changeZoom: (x) => {
2625
- c(x);
2623
+ s(x);
2626
2624
  },
2627
- zoomState: s,
2625
+ zoomState: o,
2628
2626
  ...e,
2629
2627
  style: {
2630
2628
  ...e.style || {},
2631
2629
  float: "none"
2632
2630
  },
2633
- image: A[g]
2631
+ image: A[f]
2634
2632
  }
2635
2633
  )
2636
2634
  }
@@ -2638,12 +2636,12 @@ const mn = (e) => {
2638
2636
  /* @__PURE__ */ i(
2639
2637
  Wn,
2640
2638
  {
2641
- ref: N,
2642
- show: u.toString(),
2639
+ ref: $,
2640
+ show: d.toString(),
2643
2641
  buttons: [
2644
2642
  {
2645
2643
  id: "previous",
2646
- onClick: Le,
2644
+ onClick: Me,
2647
2645
  icon: "caret-left",
2648
2646
  circle: !0,
2649
2647
  show: G,
@@ -2652,7 +2650,7 @@ const mn = (e) => {
2652
2650
  },
2653
2651
  {
2654
2652
  id: "next",
2655
- onClick: Me,
2653
+ onClick: Se,
2656
2654
  icon: "caret-right",
2657
2655
  circle: !0,
2658
2656
  show: J,
@@ -2662,20 +2660,20 @@ const mn = (e) => {
2662
2660
  ]
2663
2661
  }
2664
2662
  ),
2665
- /* @__PURE__ */ b(An, { show: u.toString(), children: [
2663
+ /* @__PURE__ */ b(An, { show: d.toString(), children: [
2666
2664
  /* @__PURE__ */ i(
2667
2665
  Vn,
2668
2666
  {
2669
2667
  buttons: [
2670
2668
  {
2671
2669
  id: "zoom-out",
2672
- onClick: () => $e(!1),
2670
+ onClick: () => Le(!1),
2673
2671
  icon: "zoom-out",
2674
2672
  ariaLabel: "Zoom out"
2675
2673
  },
2676
2674
  {
2677
2675
  id: "zoom-in",
2678
- onClick: () => $e(!0),
2676
+ onClick: () => Le(!0),
2679
2677
  icon: "zoom-in",
2680
2678
  ariaLabel: "Zoom in"
2681
2679
  }
@@ -2683,7 +2681,7 @@ const mn = (e) => {
2683
2681
  }
2684
2682
  ),
2685
2683
  /* @__PURE__ */ b(Zn, { variant: "span", children: [
2686
- Math.trunc(s * 100),
2684
+ Math.trunc(o * 100),
2687
2685
  "%"
2688
2686
  ] })
2689
2687
  ] })
@@ -2693,34 +2691,34 @@ const mn = (e) => {
2693
2691
  /* @__PURE__ */ i(
2694
2692
  Nn,
2695
2693
  {
2696
- ref: y,
2697
- onClick: ke,
2694
+ ref: k,
2695
+ onClick: $e,
2698
2696
  onKeyDown: (x) => {
2699
- x.key === "Enter" && (x.preventDefault(), ke());
2697
+ x.key === "Enter" && (x.preventDefault(), $e());
2700
2698
  },
2701
- alignment: qe,
2699
+ alignment: N,
2702
2700
  tabIndex: 0,
2703
2701
  children: /* @__PURE__ */ i(
2704
2702
  Pn,
2705
2703
  {
2706
2704
  ...e,
2707
- alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "",
2708
- ref: R
2705
+ alt: ((Ee = e.alt) == null ? void 0 : Ee.toString()) || "",
2706
+ ref: T
2709
2707
  }
2710
2708
  )
2711
2709
  }
2712
2710
  )
2713
2711
  ] });
2714
- }, we = D(
2715
- ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ i(
2712
+ }, ke = D(
2713
+ ({ show: e = "true", buttons: t, className: n }, r) => /* @__PURE__ */ i(
2716
2714
  Dn,
2717
2715
  {
2718
- ref: o,
2716
+ ref: r,
2719
2717
  show: e,
2720
- className: M("humany-button-set", n),
2718
+ className: S("humany-button-set", n),
2721
2719
  children: t.map(
2722
2720
  ({
2723
- id: r,
2721
+ id: o,
2724
2722
  circle: s = !1,
2725
2723
  show: c = !0,
2726
2724
  ariaLabel: h,
@@ -2739,39 +2737,39 @@ const mn = (e) => {
2739
2737
  "aria-label": h,
2740
2738
  children: /* @__PURE__ */ i(Q, { size: 24, symbol: { type: "Svg", content: l } })
2741
2739
  },
2742
- r + u.toString()
2740
+ o + u.toString()
2743
2741
  )
2744
2742
  )
2745
2743
  }
2746
2744
  )
2747
- ), _e = C.div`
2745
+ ), Ue = p.div`
2748
2746
  transition: opacity 0.3s ease 0s;
2749
2747
  z-index: 5;
2750
- ${(e) => e.show === "true" ? "opacity: 1;" : $`
2748
+ ${(e) => e.show === "true" ? "opacity: 1;" : L`
2751
2749
  opacity: 0;
2752
2750
  pointer-events: none;
2753
2751
  `}
2754
- `, Nn = C(xe)`
2752
+ `, Nn = p(we)`
2755
2753
  display: inline-block !important;
2756
2754
 
2757
- ${(e) => (e.alignment === "right" || e.alignment === "left") && $`
2755
+ ${(e) => (e.alignment === "right" || e.alignment === "left") && L`
2758
2756
  float: ${e.alignment};
2759
2757
  `}
2760
- `, Dn = C(_e)`
2758
+ `, Dn = p(Ue)`
2761
2759
  position: fixed;
2762
2760
  display: flex;
2763
2761
  gap: ${(e) => {
2764
2762
  var t;
2765
2763
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2766
2764
  }};
2767
- `, me = "39px", zn = C(se)`
2768
- width: ${me};
2769
- height: ${me};
2765
+ `, ge = "39px", zn = p(ae)`
2766
+ width: ${ge};
2767
+ height: ${ge};
2770
2768
  display: flex;
2771
2769
  justify-content: center;
2772
2770
  align-items: center;
2773
2771
 
2774
- ${(e) => e.icon === "caret-left" && $`
2772
+ ${(e) => e.icon === "caret-left" && L`
2775
2773
  svg {
2776
2774
  position: relative;
2777
2775
  left: -2px;
@@ -2780,7 +2778,7 @@ const mn = (e) => {
2780
2778
 
2781
2779
  ${(e) => {
2782
2780
  var t;
2783
- return e.circle === "true" ? $`
2781
+ return e.circle === "true" ? L`
2784
2782
  background-color: #ffffff;
2785
2783
  border-radius: 50%;
2786
2784
 
@@ -2803,7 +2801,7 @@ const mn = (e) => {
2803
2801
  }
2804
2802
  }
2805
2803
  }
2806
- ` : $`
2804
+ ` : L`
2807
2805
  svg {
2808
2806
  path,
2809
2807
  line {
@@ -2819,17 +2817,17 @@ const mn = (e) => {
2819
2817
  `;
2820
2818
  }}
2821
2819
 
2822
- ${(e) => e.show === "true" ? $`
2820
+ ${(e) => e.show === "true" ? L`
2823
2821
  opacity: 0.8;
2824
2822
  transition: opacity 0.3s ease 0s;
2825
2823
  &:hover {
2826
2824
  opacity: 1;
2827
2825
  }
2828
- ` : $`
2826
+ ` : L`
2829
2827
  opacity: 0;
2830
2828
  pointer-events: none;
2831
2829
  `}
2832
- `, Bn = C(we)`
2830
+ `, Bn = p(ke)`
2833
2831
  top: ${(e) => {
2834
2832
  var t;
2835
2833
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2838,7 +2836,7 @@ const mn = (e) => {
2838
2836
  var t;
2839
2837
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2840
2838
  }};
2841
- `, Vn = C(we)`
2839
+ `, Vn = p(ke)`
2842
2840
  bottom: ${(e) => {
2843
2841
  var t;
2844
2842
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2846,11 +2844,11 @@ const mn = (e) => {
2846
2844
  width: 100%;
2847
2845
  align-items: center;
2848
2846
  justify-content: center;
2849
- `, Wn = C(we)`
2847
+ `, Wn = p(ke)`
2850
2848
  display: block;
2851
2849
  button {
2852
2850
  position: fixed;
2853
- top: calc(50% - calc(${me} / 2));
2851
+ top: calc(50% - calc(${ge} / 2));
2854
2852
  &:first-child {
2855
2853
  left: ${(e) => {
2856
2854
  var t;
@@ -2864,7 +2862,7 @@ const mn = (e) => {
2864
2862
  }};
2865
2863
  }
2866
2864
  }
2867
- `, Zn = C(X)`
2865
+ `, Zn = p(X)`
2868
2866
  position: fixed;
2869
2867
  bottom: ${(e) => {
2870
2868
  var t;
@@ -2883,29 +2881,29 @@ const mn = (e) => {
2883
2881
  var t;
2884
2882
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2885
2883
  }};
2886
- `, Ue = C(_e)`
2884
+ `, qe = p(Ue)`
2887
2885
  position: absolute;
2888
2886
  width: 100vw;
2889
2887
  height: 88px;
2890
2888
  left: 0px;
2891
2889
  z-index: 5;
2892
- `, In = C.div`
2890
+ `, In = p.div`
2893
2891
  width: 100%;
2894
- `, On = C(Ue)`
2892
+ `, On = p(qe)`
2895
2893
  top: 0px;
2896
2894
  background-image: linear-gradient(
2897
2895
  to bottom,
2898
2896
  rgb(34, 34, 34, 0.8),
2899
2897
  rgba(34, 34, 34, 0)
2900
2898
  );
2901
- `, An = C(Ue)`
2899
+ `, An = p(qe)`
2902
2900
  bottom: 0px;
2903
2901
  background-image: linear-gradient(
2904
2902
  to top,
2905
2903
  rgb(34, 34, 34, 0.8),
2906
2904
  rgba(34, 34, 34, 0)
2907
2905
  );
2908
- `, Fn = C.div`
2906
+ `, Fn = p.div`
2909
2907
  width: 100%;
2910
2908
  height: 100vh;
2911
2909
  overflow: auto;
@@ -2914,45 +2912,47 @@ const mn = (e) => {
2914
2912
  white-space: nowrap;
2915
2913
  justify-content: center;
2916
2914
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2917
- `, Pn = C.img`
2915
+ `, Pn = p.img`
2918
2916
  cursor: pointer;
2919
2917
  `, jn = D(
2920
2918
  ({
2921
2919
  className: e,
2922
2920
  children: t,
2923
2921
  trigger: n,
2924
- onOverlayClick: o = () => {
2922
+ onOverlayClick: r = () => {
2925
2923
  },
2926
- close: r = !1,
2924
+ close: o = !1,
2927
2925
  ...s
2928
2926
  }, c) => {
2929
- const [h, a] = Fe(), [l, d] = Ae(!0), u = L(), f = L(_()), g = j("Escape");
2930
- v(() => {
2931
- (g || r) && a(!1);
2932
- }, [g, r]), v(() => {
2927
+ const [h, a] = Pe(), [l, d] = Fe(!0), u = M(), f = M(_());
2928
+ j("Escape", (g) => {
2929
+ h && (se(g), a(!1));
2930
+ }), v(() => {
2931
+ o && a(!1);
2932
+ }, [o]), v(() => {
2933
2933
  h && u.current && u.current.focus();
2934
- }, [h, u.current]), ae("router:changed", () => {
2934
+ }, [h, u.current]), ce("router:changed", () => {
2935
2935
  a(!1);
2936
2936
  });
2937
- const m = H(
2938
- (w) => {
2939
- a(!1), o(w);
2937
+ const C = E(
2938
+ (g) => {
2939
+ a(!1), r(g);
2940
2940
  },
2941
- [o, a]
2941
+ [r, a]
2942
2942
  );
2943
- ge(c, () => ({
2943
+ pe(c, () => ({
2944
2944
  close() {
2945
2945
  a(!1);
2946
2946
  }
2947
2947
  }));
2948
- const p = H(() => ye(f.current, () => {
2948
+ const m = E(() => be(f.current, () => {
2949
2949
  a(!1);
2950
2950
  }), [f.current]);
2951
2951
  return /* @__PURE__ */ b(U, { children: [
2952
- /* @__PURE__ */ i(Xe, { visible: h, onClick: m, children: /* @__PURE__ */ b(
2952
+ /* @__PURE__ */ i(_e, { visible: h, onClick: C, children: /* @__PURE__ */ b(
2953
2953
  Kn,
2954
2954
  {
2955
- className: M(
2955
+ className: S(
2956
2956
  e,
2957
2957
  "humany-modal",
2958
2958
  `humany-modal-${f.current}`
@@ -2963,7 +2963,7 @@ const mn = (e) => {
2963
2963
  ref: d,
2964
2964
  children: [
2965
2965
  /* @__PURE__ */ i(
2966
- ve,
2966
+ xe,
2967
2967
  {
2968
2968
  onClick: () => a(!1),
2969
2969
  tabIndex: 0,
@@ -2976,13 +2976,13 @@ const mn = (e) => {
2976
2976
  }
2977
2977
  ) }),
2978
2978
  oe.cloneElement(n, {
2979
- onClick: (w) => {
2980
- a(), p();
2979
+ onClick: (g) => {
2980
+ a(), m();
2981
2981
  }
2982
2982
  })
2983
2983
  ] });
2984
2984
  }
2985
- ), Kn = C.div`
2985
+ ), Kn = p.div`
2986
2986
  font-family: ${(e) => {
2987
2987
  var t;
2988
2988
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2998,25 +2998,25 @@ const mn = (e) => {
2998
2998
  var t;
2999
2999
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
3000
3000
  }};
3001
- ${(e) => Pe(e)}
3001
+ ${(e) => je(e)}
3002
3002
  ${(e) => e.css && e.css}
3003
3003
  outline: none;
3004
3004
  `, Ko = ({
3005
3005
  className: e,
3006
3006
  trigger: t,
3007
3007
  header: n = "",
3008
- text: o = "",
3009
- onCancel: r = () => {
3008
+ text: r = "",
3009
+ onCancel: o = () => {
3010
3010
  },
3011
3011
  onConfirm: s = () => {
3012
3012
  },
3013
3013
  cancelLabel: c = "",
3014
3014
  confirmLabel: h = ""
3015
3015
  }) => {
3016
- const a = L(), l = H(() => {
3016
+ const a = M(), l = E(() => {
3017
3017
  var u;
3018
- r(), (u = a == null ? void 0 : a.current) == null || u.close();
3019
- }, [r]), d = H(() => {
3018
+ o(), (u = a == null ? void 0 : a.current) == null || u.close();
3019
+ }, [o]), d = E(() => {
3020
3020
  var u;
3021
3021
  s(), (u = a == null ? void 0 : a.current) == null || u.close();
3022
3022
  }, [s]);
@@ -3028,14 +3028,14 @@ const mn = (e) => {
3028
3028
  ref: a,
3029
3029
  onOverlayClick: l,
3030
3030
  children: [
3031
- n && /* @__PURE__ */ i(De, { children: n }),
3032
- o && /* @__PURE__ */ i(De, { children: o }),
3031
+ n && /* @__PURE__ */ i(ze, { children: n }),
3032
+ r && /* @__PURE__ */ i(ze, { children: r }),
3033
3033
  h && /* @__PURE__ */ i(Xn, { onClick: d, children: h }),
3034
3034
  c && /* @__PURE__ */ i(_n, { onClick: l, children: c })
3035
3035
  ]
3036
3036
  }
3037
3037
  );
3038
- }, Yn = C(jn)`
3038
+ }, Yn = p(jn)`
3039
3039
  display: block;
3040
3040
 
3041
3041
  span {
@@ -3053,7 +3053,7 @@ const mn = (e) => {
3053
3053
  }};
3054
3054
  }
3055
3055
  }
3056
- `, Xn = C(se)`
3056
+ `, Xn = p(ae)`
3057
3057
  display: inline-block;
3058
3058
  min-width: 50px;
3059
3059
  ${(e) => {
@@ -3083,7 +3083,7 @@ const mn = (e) => {
3083
3083
  &:focus-visible {
3084
3084
  ${O}
3085
3085
  }
3086
- `, _n = C(se)`
3086
+ `, _n = p(ae)`
3087
3087
  display: inline-block;
3088
3088
  min-width: 50px;
3089
3089
  ${(e) => {
@@ -3108,7 +3108,7 @@ const mn = (e) => {
3108
3108
  header: e = "",
3109
3109
  link: t = "",
3110
3110
  suggestionHeader: n = "",
3111
- suggestion: o = ""
3111
+ suggestion: r = ""
3112
3112
  }) => /* @__PURE__ */ b(Un, { children: [
3113
3113
  /* @__PURE__ */ i(qn, { children: /* @__PURE__ */ i(X, { variant: "h2", children: "404" }) }),
3114
3114
  /* @__PURE__ */ b(Qn, { children: [
@@ -3117,22 +3117,22 @@ const mn = (e) => {
3117
3117
  ] }),
3118
3118
  /* @__PURE__ */ b(Gn, { children: [
3119
3119
  /* @__PURE__ */ i("span", { children: n }),
3120
- /* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
3120
+ /* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: r }) })
3121
3121
  ] })
3122
- ] }), Un = C.div`
3122
+ ] }), Un = p.div`
3123
3123
  display: flex;
3124
3124
  flex-wrap: wrap;
3125
- `, qn = C.div`
3125
+ `, qn = p.div`
3126
3126
  ${(e) => ie(e)(
3127
3127
  "h2",
3128
- $`
3128
+ L`
3129
3129
  padding: 0;
3130
3130
  margin: 0;
3131
3131
  color: gray;
3132
3132
  font-size: 7em;
3133
3133
  `
3134
3134
  )}
3135
- `, Qn = C.div`
3135
+ `, Qn = p.div`
3136
3136
  margin-left: ${(e) => {
3137
3137
  var t;
3138
3138
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -3142,7 +3142,7 @@ const mn = (e) => {
3142
3142
  var t;
3143
3143
  return ie(e)(
3144
3144
  "h3",
3145
- $`
3145
+ L`
3146
3146
  text-transform: uppercase;
3147
3147
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
3148
3148
  `
@@ -3159,7 +3159,7 @@ const mn = (e) => {
3159
3159
  return (t = e.theme.fonts) == null ? void 0 : t.small;
3160
3160
  }};
3161
3161
  }
3162
- `, Gn = C.div`
3162
+ `, Gn = p.div`
3163
3163
  margin-top: ${(e) => {
3164
3164
  var t;
3165
3165
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -3190,9 +3190,9 @@ class Xo extends lt {
3190
3190
  return;
3191
3191
  const n = this.props.container.get("widgetDOMElement");
3192
3192
  this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
3193
- const o = n.querySelectorAll(
3193
+ const r = n.querySelectorAll(
3194
3194
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
3195
- ), s = [].filter.call(o, (c) => typeof window > "u" ? !0 : !(window.getComputedStyle(c).display === "none" || c.offsetWidth <= 0 && c.offsetHeight <= 0))[0];
3195
+ ), s = [].filter.call(r, (c) => typeof window > "u" ? !0 : !(window.getComputedStyle(c).display === "none" || c.offsetWidth <= 0 && c.offsetHeight <= 0))[0];
3196
3196
  s && s.focus();
3197
3197
  }));
3198
3198
  }
@@ -3213,16 +3213,16 @@ class Xo extends lt {
3213
3213
  }
3214
3214
  }
3215
3215
  const Jn = D(
3216
- ({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(
3217
- xe,
3216
+ ({ className: e, description: t, text: n, children: r, ...o }, s) => /* @__PURE__ */ b(
3217
+ we,
3218
3218
  {
3219
- className: M(e, "humany-text-link"),
3220
- ...r,
3219
+ className: S(e, "humany-text-link"),
3220
+ ...o,
3221
3221
  ref: s,
3222
3222
  children: [
3223
- o,
3224
- /* @__PURE__ */ i(be, { children: n }),
3225
- t ? /* @__PURE__ */ i(Ke, { html: t, className: "humany-description" }) : null
3223
+ r,
3224
+ /* @__PURE__ */ i(ve, { children: n }),
3225
+ t ? /* @__PURE__ */ i(Ye, { html: t, className: "humany-description" }) : null
3226
3226
  ]
3227
3227
  }
3228
3228
  )
@@ -3232,33 +3232,33 @@ const _o = ({
3232
3232
  className: e = "",
3233
3233
  format: t = "hh:mm",
3234
3234
  timestamp: n
3235
- }) => /* @__PURE__ */ i("span", { className: M(e, "humany-timestamp"), children: to(n, t) }), ze = (e) => `0${e}`.slice(-2);
3235
+ }) => /* @__PURE__ */ i("span", { className: S(e, "humany-timestamp"), children: to(n, t) }), Be = (e) => `0${e}`.slice(-2);
3236
3236
  function to(e, t) {
3237
- const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), c = n.getMonth() + 1, h = n.getDate(), a = `${s}-${ze(c)}-${ze(
3237
+ const n = new Date(e), r = n.toTimeString().split(" ")[0].split(":"), o = r.length > 1 ? `${r[0]}:${r[1]}` : r[0], s = n.getFullYear(), c = n.getMonth() + 1, h = n.getDate(), a = `${s}-${Be(c)}-${Be(
3238
3238
  h
3239
3239
  )}`;
3240
- return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
3240
+ return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? o : `${a} ${o}`;
3241
3241
  }
3242
3242
  const Uo = ({
3243
3243
  className: e,
3244
3244
  children: t,
3245
3245
  content: n,
3246
- sticky: o = !1,
3247
- ...r
3246
+ sticky: r = !1,
3247
+ ...o
3248
3248
  }) => {
3249
- const [s, c] = k(!1), h = L(_()), a = L(), [{ x: l, y: d }, u] = je(s, h.current, a.current), f = (m) => {
3250
- const { target: p } = m;
3251
- !a.current || !p || a.current !== p && !a.current.contains(p) && c(!1);
3249
+ const [s, c] = w(!1), h = M(_()), a = M(), [{ x: l, y: d }, u] = Ke(s, h.current, a.current), f = (m) => {
3250
+ const { target: g } = m;
3251
+ !a.current || !g || a.current !== g && !a.current.contains(g) && c(!1);
3252
3252
  };
3253
3253
  v(() => {
3254
- if (o)
3254
+ if (r)
3255
3255
  return window.addEventListener("click", f), () => {
3256
3256
  window.removeEventListener("click", f);
3257
3257
  };
3258
- }, [s, o]);
3259
- const g = H(
3260
- (m, p) => {
3261
- u(m, a.current), c(p);
3258
+ }, [s, r]);
3259
+ const C = E(
3260
+ (m, g) => {
3261
+ u(m, a.current), c(g);
3262
3262
  },
3263
3263
  [u, c]
3264
3264
  );
@@ -3267,29 +3267,29 @@ const Uo = ({
3267
3267
  {
3268
3268
  ref: a,
3269
3269
  className: "humany-tooltip-trigger",
3270
- onMouseEnter: o ? void 0 : (m) => g(m, !0),
3271
- onMouseLeave: o ? void 0 : (m) => g(m, !1),
3272
- onTouchEnd: o ? (m) => g(m, !s) : void 0,
3273
- onClick: o ? (m) => g(m, !s) : void 0,
3270
+ onMouseEnter: r ? void 0 : (m) => C(m, !0),
3271
+ onMouseLeave: r ? void 0 : (m) => C(m, !1),
3272
+ onTouchEnd: r ? (m) => C(m, !s) : void 0,
3273
+ onClick: r ? (m) => C(m, !s) : void 0,
3274
3274
  children: [
3275
3275
  t,
3276
3276
  s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
3277
3277
  oo,
3278
3278
  {
3279
- className: M(e, "humany-tooltip-container"),
3279
+ className: S(e, "humany-tooltip-container"),
3280
3280
  x: l,
3281
3281
  y: d,
3282
- ...r,
3282
+ ...o,
3283
3283
  children: n
3284
3284
  }
3285
3285
  ) })
3286
3286
  ]
3287
3287
  }
3288
3288
  );
3289
- }, no = C.div`
3289
+ }, no = p.div`
3290
3290
  display: flex;
3291
3291
  align-items: center;
3292
- `, oo = C.div`
3292
+ `, oo = p.div`
3293
3293
  color: #ffffff;
3294
3294
  background: #161616;
3295
3295
  border-radius: ${(e) => e.theme.borderRadius};
@@ -3329,8 +3329,8 @@ const Uo = ({
3329
3329
  const {
3330
3330
  in: t,
3331
3331
  mountOnEnter: n = !0,
3332
- unmountOnExit: o = !0,
3333
- timeout: r,
3332
+ unmountOnExit: r = !0,
3333
+ timeout: o,
3334
3334
  children: s,
3335
3335
  transitions: c
3336
3336
  } = e, a = (() => {
@@ -3340,12 +3340,12 @@ const Uo = ({
3340
3340
  return {
3341
3341
  enter: {
3342
3342
  transitionKeys: c,
3343
- duration: r ? typeof r == "number" ? r : r.enter : 200,
3343
+ duration: o ? typeof o == "number" ? o : o.enter : 200,
3344
3344
  easing: "ease-in"
3345
3345
  },
3346
3346
  exit: {
3347
3347
  transitionKeys: c,
3348
- duration: r ? typeof r == "number" ? r : r.exit : 200,
3348
+ duration: o ? typeof o == "number" ? o : o.exit : 200,
3349
3349
  easing: "ease-out"
3350
3350
  }
3351
3351
  };
@@ -3354,12 +3354,12 @@ const Uo = ({
3354
3354
  return {
3355
3355
  enter: {
3356
3356
  transitionKeys: (l = c.enter) == null ? void 0 : l.type,
3357
- duration: r ? typeof r == "number" ? r : r.enter : 200,
3357
+ duration: o ? typeof o == "number" ? o : o.enter : 200,
3358
3358
  easing: u.easing ? u.easing : "ease-in"
3359
3359
  },
3360
3360
  exit: {
3361
3361
  transitionKeys: (d = c.enter) == null ? void 0 : d.type,
3362
- duration: r ? typeof r == "number" ? r : r.enter : 200,
3362
+ duration: o ? typeof o == "number" ? o : o.enter : 200,
3363
3363
  easing: f.easing ? f.easing : "ease-out"
3364
3364
  }
3365
3365
  };
@@ -3376,9 +3376,9 @@ const Uo = ({
3376
3376
  in: t,
3377
3377
  appear: !0,
3378
3378
  mountOnEnter: n,
3379
- unmountOnExit: o,
3379
+ unmountOnExit: r,
3380
3380
  onEnter: (l) => l.clientHeight,
3381
- children: (l) => s && s(l, a && he.compose(l, a))
3381
+ children: (l) => s && s(l, a && fe.compose(l, a))
3382
3382
  }
3383
3383
  );
3384
3384
  }, ro = D(
@@ -3387,49 +3387,49 @@ const Uo = ({
3387
3387
  children: t,
3388
3388
  onClick: n = () => {
3389
3389
  },
3390
- widgetName: o,
3391
- activationOptions: r,
3390
+ widgetName: r,
3391
+ activationOptions: o,
3392
3392
  ...s
3393
3393
  }, c) => {
3394
3394
  const h = B(), a = () => {
3395
3395
  const { implementation: u } = h.get("$widget");
3396
- return u.widgets.get(o);
3396
+ return u.widgets.get(r);
3397
3397
  };
3398
3398
  v(() => {
3399
3399
  const u = a();
3400
- return u == null || u.activate(r).then(() => u.invoke("attach")), () => {
3400
+ return u == null || u.activate(o).then(() => u.invoke("attach")), () => {
3401
3401
  u == null || u.deactivate();
3402
3402
  };
3403
- }, [o]);
3403
+ }, [r]);
3404
3404
  const l = (u) => {
3405
- const f = a(), g = u.currentTarget;
3405
+ const f = a(), C = u.currentTarget;
3406
3406
  if (f) {
3407
3407
  const m = () => {
3408
3408
  f.invoke("renderState").then(
3409
- (p) => p === ne.open ? f.invoke("close") : f.invoke("open")
3409
+ (g) => g === ne.open ? f.invoke("close") : f.invoke("open")
3410
3410
  ).then(() => {
3411
3411
  f.events.subscribeOnce(
3412
3412
  "widget:area-rendered",
3413
- (p, w) => {
3413
+ (g, k) => {
3414
3414
  h.get(
3415
3415
  "widgetDOMElement"
3416
3416
  ) && f.events.dispatch("widget:modal-opened", {
3417
3417
  name: f.name,
3418
- ref: g
3418
+ ref: C
3419
3419
  });
3420
3420
  }
3421
3421
  );
3422
3422
  });
3423
3423
  };
3424
- f.state === ft.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(m) : m();
3424
+ f.state === ft.Deactivated ? f.activate(o).then(() => f.invoke("attach")).then(m) : m();
3425
3425
  }
3426
3426
  }, d = (u) => {
3427
3427
  u.key === "Enter" && (u.preventDefault(), l(u));
3428
3428
  };
3429
3429
  return /* @__PURE__ */ i(
3430
- xe,
3430
+ we,
3431
3431
  {
3432
- className: M(e, "humany-widget-link"),
3432
+ className: S(e, "humany-widget-link"),
3433
3433
  onKeyDown: d,
3434
3434
  onClick: (u) => {
3435
3435
  n(u), l(u);
@@ -3441,25 +3441,25 @@ const Uo = ({
3441
3441
  );
3442
3442
  }
3443
3443
  ), Qo = D(
3444
- ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3445
- const r = B(), s = re(() => {
3446
- if (!r) return null;
3447
- const c = r.get("widgetDOMElement");
3444
+ ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, r) => {
3445
+ const o = B(), s = re(() => {
3446
+ if (!o) return null;
3447
+ const c = o.get("widgetDOMElement");
3448
3448
  return !c || !c.childElementCount ? null : c.children[0];
3449
- }, [r]);
3449
+ }, [o]);
3450
3450
  return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
3451
3451
  io,
3452
3452
  {
3453
- className: M(
3453
+ className: S(
3454
3454
  "humany-widget-overlay-outlet",
3455
3455
  t
3456
3456
  ),
3457
- ref: o,
3457
+ ref: r,
3458
3458
  children: n
3459
3459
  }
3460
3460
  ) }) : null;
3461
3461
  }
3462
- ), io = C.div`
3462
+ ), io = p.div`
3463
3463
  background-color: #ffffff;
3464
3464
  position: absolute;
3465
3465
  top: 0;
@@ -3469,17 +3469,17 @@ const Uo = ({
3469
3469
  z-index: 10;
3470
3470
  width: 100%;
3471
3471
  height: 100%;
3472
- `, Go = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3472
+ `, Go = (e, t, n, r, o) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3473
3473
  t,
3474
3474
  dt(() => n)
3475
- ), yt(e, t, o || (() => {
3476
- }), t, r)));
3475
+ ), yt(e, t, r || (() => {
3476
+ }), t, o)));
3477
3477
  export {
3478
3478
  Dt as AnchorLink,
3479
- se as Button,
3479
+ ae as Button,
3480
3480
  xo as Checkbox,
3481
3481
  Vt as ColumnContext,
3482
- Ze as ComponentNodeContext,
3482
+ Ie as ComponentNodeContext,
3483
3483
  Wt as ComponentPropertyContext,
3484
3484
  Ko as Confirm,
3485
3485
  Bt as ContainerContext,
@@ -3490,25 +3490,25 @@ export {
3490
3490
  Oo as Dropdown,
3491
3491
  rn as Empty,
3492
3492
  Ao as Grid,
3493
- Ke as Html,
3493
+ Ye as Html,
3494
3494
  cn as Icon,
3495
3495
  Fo as Input,
3496
3496
  un as ItemList,
3497
3497
  Po as ItemTree,
3498
3498
  Tn as Lightbox,
3499
- xe as Link,
3499
+ we as Link,
3500
3500
  ln as List,
3501
3501
  jn as Modal,
3502
3502
  Yo as NotFound,
3503
- Xe as Overlay,
3503
+ _e as Overlay,
3504
3504
  dn as Paragraph,
3505
3505
  q as Portal,
3506
3506
  hn as RouteLink,
3507
3507
  Zt as RoutingContext,
3508
- De as StyledText,
3508
+ ze as StyledText,
3509
3509
  Q as SymbolBadge,
3510
3510
  Xo as TabStop,
3511
- be as Text,
3511
+ ve as Text,
3512
3512
  Jn as TextLink,
3513
3513
  _o as Timestamp,
3514
3514
  Uo as Tooltip,
@@ -3517,15 +3517,15 @@ export {
3517
3517
  ro as WidgetLink,
3518
3518
  Qo as WidgetOverlayOutlet,
3519
3519
  O as borderTabStyle,
3520
- Ne as browser,
3520
+ De as browser,
3521
3521
  Pt as buttonCss,
3522
- Pe as contentBox,
3522
+ je as contentBox,
3523
3523
  z as convertToStringAttributes,
3524
3524
  vo as createEmptyComponent,
3525
3525
  Go as createReactComponent,
3526
3526
  Nt as defaultRenderInstructions,
3527
3527
  Mt as embeddedLinkMapper,
3528
- We as filterCssProps,
3528
+ Ze as filterCssProps,
3529
3529
  St as filterCssPropsStyle,
3530
3530
  Et as genericHashLink,
3531
3531
  Zo as genericHtml,
@@ -3539,13 +3539,13 @@ export {
3539
3539
  Vo as paddedBorderTabStyle,
3540
3540
  Rt as processHtmlString,
3541
3541
  mn as setHumanyIsTabbing,
3542
- he as transitionComposer,
3542
+ fe as transitionComposer,
3543
3543
  wo as useAction,
3544
3544
  ko as useChildren,
3545
3545
  $o as useColumns,
3546
3546
  Lo as useComponent,
3547
- pe as useComponentDescriptor,
3548
- Ce as useComponentNode,
3547
+ Ce as useComponentDescriptor,
3548
+ ye as useComponentNode,
3549
3549
  Y as useComponentPlatform,
3550
3550
  B as useContainer,
3551
3551
  Ot as useContext,
@@ -3557,15 +3557,15 @@ export {
3557
3557
  Eo as useIsTabbing,
3558
3558
  j as useKeyPress,
3559
3559
  Ho as useLayout,
3560
- Ie as usePrevious,
3560
+ Oe as usePrevious,
3561
3561
  Ro as useProperties,
3562
3562
  To as useRenderState,
3563
3563
  No as useRouteData,
3564
- Oe as useRouter,
3565
- Ae as useScroll,
3564
+ Ae as useRouter,
3565
+ Fe as useScroll,
3566
3566
  Do as useSettings,
3567
- Fe as useToggle,
3567
+ Pe as useToggle,
3568
3568
  zo as useTransitionEnd,
3569
- ye as useUniqueMenu,
3570
- ae as useWidgetEvent
3569
+ be as useUniqueMenu,
3570
+ ce as useWidgetEvent
3571
3571
  };