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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- var ct = Object.defineProperty, lt = Object.defineProperties;
2
- var ut = Object.getOwnPropertyDescriptors;
1
+ var at = Object.defineProperty, ct = Object.defineProperties;
2
+ var lt = Object.getOwnPropertyDescriptors;
3
3
  var ne = Object.getOwnPropertySymbols;
4
4
  var He = Object.prototype.hasOwnProperty, ze = Object.prototype.propertyIsEnumerable;
5
- var me = (e, t, n) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, h = (e, t) => {
5
+ var me = (e, t, n) => t in e ? at(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, h = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
7
  He.call(t, n) && me(e, n, t[n]);
8
8
  if (ne)
9
9
  for (var n of ne(t))
10
10
  ze.call(t, n) && me(e, n, t[n]);
11
11
  return e;
12
- }, $ = (e, t) => lt(e, ut(t));
12
+ }, $ = (e, t) => ct(e, lt(t));
13
13
  var S = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
@@ -20,17 +20,18 @@ var S = (e, t) => {
20
20
  return n;
21
21
  };
22
22
  var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
23
- import C, { css as L, keyframes as We } from "styled-components";
24
- import { kebabCase as mt, appendClassNames as M, uuid as q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
25
- import r, { forwardRef as N, createContext as Q, useContext as X, useState as k, useEffect as w, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as ie, Component as dt, lazy as ft } from "react";
26
- import { CSSTransition as Ie, Transition as ht } from "react-transition-group";
27
- import { Container as pt, WidgetState as gt } from "@webprovisions/platform";
28
- import { ComponentPlatform as Ct, asDescriptor as yt, createEventSubscriber as bt, ComponentQuery as vt, WidgetRenderState as oe, extendComponent as wt } from "@telia-ace/widget-core";
29
- import { createPortal as Et } from "react-dom";
23
+ import { css as L, keyframes as We } from "@emotion/react";
24
+ import { kebabCase as ut, appendClassNames as M, uuid as Q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
25
+ import r, { forwardRef as N, createContext as _, useContext as Y, useState as k, useEffect as v, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as ie, Component as mt, lazy as dt } from "react";
26
+ import y from "@emotion/styled";
27
+ import { CSSTransition as Ie, Transition as ft } from "react-transition-group";
28
+ import { Container as ht, WidgetState as gt } from "@webprovisions/platform";
29
+ import { ComponentPlatform as pt, asDescriptor as Ct, createEventSubscriber as yt, ComponentQuery as bt, WidgetRenderState as oe, extendComponent as vt } from "@telia-ace/widget-core";
30
+ import { createPortal as wt } from "react-dom";
30
31
  import Be from "htmr";
31
- import { HistoryMode as Te, getSpecificWidgetPath as xt } from "@telia-ace/widget-routing";
32
+ import { HistoryMode as Te, getSpecificWidgetPath as Et } from "@telia-ace/widget-routing";
32
33
  import { Link as fe } from "react-router-dom";
33
- const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exiting" || e === "exited", K = {
34
+ const xt = (e) => e === "entering" || e === "entered", kt = (e) => e === "exiting" || e === "exited", K = {
34
35
  fade: {
35
36
  in: "opacity: 1;",
36
37
  out: "opacity: 0;"
@@ -55,10 +56,10 @@ const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
55
56
  in: "transform: scale(1);",
56
57
  out: "transform: scale(0);"
57
58
  }
58
- }, Lt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
59
+ }, $t = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
59
60
  compose: (e = "exited", t) => {
60
- const { enter: n, exit: o } = t, i = n.transitionKeys.split(" "), s = Lt.indexOf(i[0]) > -1 ? "transform" : "opacity";
61
- if (kt(e))
61
+ const { enter: n, exit: o } = t, i = n.transitionKeys.split(" "), s = $t.indexOf(i[0]) > -1 ? "transform" : "opacity";
62
+ if (xt(e))
62
63
  return i && i.length > 0 ? L`
63
64
  ${i && i.length > 0 && i.map((l) => K[l] ? K[l].in : "")}
64
65
  transition: ${s} ${n.duration}ms ${n.easing};
@@ -66,7 +67,7 @@ const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
66
67
  const a = i && i.length > 0 && L`
67
68
  ${i.map((l) => K[l] ? K[l].out : "")}
68
69
  `;
69
- if ($t(e)) {
70
+ if (kt(e)) {
70
71
  const l = o.transitionKeys.split(" ");
71
72
  return l && l.length > 0 && e === "exiting" ? L`
72
73
  ${a};
@@ -101,7 +102,7 @@ const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
101
102
  },
102
103
  get: (e) => K[e]
103
104
  };
104
- var pe = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(pe || {});
105
+ var ge = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(ge || {});
105
106
  const Ne = () => {
106
107
  const {
107
108
  opr: e,
@@ -121,10 +122,10 @@ const Ne = () => {
121
122
  const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!i || typeof i != "undefined" && i.pushNotification);
122
123
  if (/constructor/i.test(o) || m)
123
124
  return "safari";
124
- const p = !!s;
125
- if (p)
125
+ const g = !!s;
126
+ if (g)
126
127
  return "internet-explorer";
127
- if (!p && !!a)
128
+ if (!g && !!a)
128
129
  return "edge";
129
130
  const d = !!l && (!!l.webstore || !!l.runtime);
130
131
  if (d)
@@ -133,31 +134,31 @@ const Ne = () => {
133
134
  return "edge-chromium";
134
135
  if ((d || c) && !!u)
135
136
  return "blink";
136
- }, Mt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
137
+ }, Lt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
137
138
  const o = typeof e[n] == "undefined" ? "" : e[n], i = typeof o;
138
- if (Mt.indexOf(i) > -1) {
139
+ if (Lt.indexOf(i) > -1) {
139
140
  const s = n.substring(0, 5);
140
- s === "data-" || s === "aria-" ? t[mt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
141
+ s === "data-" || s === "aria-" ? t[ut(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
141
142
  } else
142
143
  t[n] = o;
143
144
  return t;
144
- }, {}), h1 = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(sn, h({}, t)) : null, St = (e) => new RegExp("^#", "i").test(e), Rt = (e) => (o) => {
145
+ }, {}), Cr = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(sn, h({}, t)) : null, Mt = (e) => new RegExp("^#", "i").test(e), St = (e) => (o) => {
145
146
  var i = o, { children: t } = i, n = S(i, ["children"]);
146
147
  const {
147
148
  implementation: s,
148
149
  name: a
149
150
  } = e.get("$widget"), { href: l = "" } = n;
150
- if (St(l))
151
- return /* @__PURE__ */ r.createElement(Nt, {
151
+ if (Mt(l))
152
+ return /* @__PURE__ */ r.createElement(Tt, {
152
153
  smooth: !0,
153
154
  to: l
154
155
  }, t);
155
- const u = s.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
156
+ const u = s.bindings.map((g) => g.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
156
157
  if (m && m.length >= 4) {
157
- const p = m[4];
158
- if (s.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
159
- return /* @__PURE__ */ r.createElement(t1, {
160
- widgetName: p
158
+ const g = m[4];
159
+ if (s.widgets.get(g) && !g.startsWith("blob?") && !g.startsWith(a))
160
+ return /* @__PURE__ */ r.createElement(rr, {
161
+ widgetName: g
161
162
  }, t);
162
163
  }
163
164
  return /* @__PURE__ */ r.createElement("a", h({}, n), t);
@@ -166,65 +167,65 @@ const Ne = () => {
166
167
  return Object.keys(e).forEach((n) => {
167
168
  n.indexOf("css-") > -1 && (t[n] = e[n]);
168
169
  }), t;
169
- }, Ht = L`
170
- ${(e) => {
170
+ }, Rt = (e) => {
171
171
  let t = "";
172
172
  return Object.keys(Oe(e)).forEach((n) => {
173
173
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
174
- }), t;
175
- }}
176
- `, zt = (e, t) => {
174
+ }), L`
175
+ ${t}
176
+ `;
177
+ }, Ht = (e, t) => {
177
178
  let n = "";
178
179
  const o = () => {
179
180
  n = "";
180
- }, i = (p) => {
181
+ }, i = (g) => {
181
182
  const d = document.getElementById(n);
182
- return d !== null ? (p(d), o(), !0) : !1;
183
- }, s = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && i(
183
+ return d !== null ? (g(d), o(), !0) : !1;
184
+ }, s = (g) => (g.preventDefault(), o(), e.onClick && e.onClick(g), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && i(
184
185
  e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
185
186
  ), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
186
187
  return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, $(h({}, c), {
187
188
  onClick: s
188
189
  }), e.children);
189
- }, se = (e, t) => {
190
- let n = e, o = "";
191
- if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(e))
192
- n = e;
190
+ }, se = (e) => (t, n) => {
191
+ let o = t, i = "";
192
+ if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
193
+ o = t;
193
194
  else {
194
- const s = e.match(/h1|h2|h3|h4|h5|h6/);
195
- if (s != null && s[0]) {
196
- n = s[0];
197
- const [a] = e.split(n);
198
- o = a;
195
+ const l = t.match(/h1|h2|h3|h4|h5|h6/);
196
+ if (l != null && l[0]) {
197
+ o = l[0];
198
+ const [u] = t.split(o);
199
+ i = u;
199
200
  }
200
201
  }
201
- const i = (s, a, l) => l[s] ? `${a}${l[s]}` : `${a}${s}`;
202
+ const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, i, e.theme.typographyVariantMapping || {});
202
203
  return L`
203
- ${(s) => i(n, o, s.theme.typographyVariantMapping || {})} {
204
- ${t}
204
+ ${a} {
205
+ ${n}
205
206
  }
206
207
  `;
207
208
  };
208
- function Dt(e, t) {
209
+ function zt(e, t) {
209
210
  return t ? Be(e, t) : Be(e);
210
211
  }
211
- const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
212
+ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
212
213
  attrs: t,
213
214
  htmlBody: e
214
- }), Tt = (e, t) => ({
215
+ }), Bt = (e, t) => ({
215
216
  transform: {
216
- a: Rt(e),
217
- img: Bt(t)
217
+ a: St(e),
218
+ img: Dt(t)
218
219
  }
219
- }), Nt = (e) => zt(e, "a"), ae = N((i, o) => {
220
+ }), Tt = (e) => Ht(e, "a"), ae = N((i, o) => {
220
221
  var s = i, { className: e, children: t } = s, n = S(s, ["className", "children"]);
221
- return /* @__PURE__ */ r.createElement(Vt, $(h({
222
+ return /* @__PURE__ */ r.createElement(Nt, $(h({
222
223
  type: "button",
223
224
  className: M(e, "humany-button")
224
225
  }, V(n)), {
225
226
  ref: o
226
227
  }), t);
227
- }), Vt = C.button`
228
+ }), Nt = y.button`
228
229
  -webkit-appearance: button;
229
230
  text-transform: none;
230
231
  overflow: visible;
@@ -237,7 +238,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
237
238
  line-height: normal;
238
239
  margin: 0;
239
240
  padding: 0;
240
- `, p1 = (i) => {
241
+ `, yr = (i) => {
241
242
  var s = i, {
242
243
  onChange: e = () => {
243
244
  },
@@ -256,12 +257,12 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
256
257
  },
257
258
  onChange: (a) => e(a.target.value, a.currentTarget.checked)
258
259
  }, V(o)));
259
- }, Zt = Q(new pt()), Wt = Q(1), Fe = Q({
260
+ }, Vt = _(new ht()), Zt = _(1), Fe = _({
260
261
  id: "",
261
262
  type: "",
262
263
  name: "",
263
264
  branch: ""
264
- }), It = Q({}), Ot = Q(null), ye = () => X(Fe), Z = () => X(Zt), g1 = (e, t) => {
265
+ }), Wt = _({}), It = _(null), Ot = _(null), ye = () => Y(Fe), Z = () => Y(Vt), br = (e, t) => {
265
266
  const n = ye().id, o = Z();
266
267
  return (i, s) => {
267
268
  (t || o).getAsync("actionResolver").then((a) => {
@@ -269,8 +270,8 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
269
270
  });
270
271
  };
271
272
  }, be = (e) => {
272
- const t = X(Fe), n = _(), [o, i] = k();
273
- return w(() => {
273
+ const t = Y(Fe), n = U(), [o, i] = k();
274
+ return v(() => {
274
275
  if ((e || t.id) && n) {
275
276
  const s = n.nodes.get(e || t.id);
276
277
  i(s);
@@ -278,31 +279,31 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
278
279
  }, [e, t.id, n]), o;
279
280
  }, O = () => {
280
281
  const e = R(!1);
281
- return w(() => (e.current = !0, () => {
282
+ return v(() => (e.current = !0, () => {
282
283
  e.current = !1;
283
284
  }), []), e;
284
- }, _ = (e) => {
285
+ }, U = (e) => {
285
286
  const t = Z(), [n, o] = k(null), i = O();
286
- return w(() => {
287
- Ct.getInstance(e || t).then((s) => {
287
+ return v(() => {
288
+ pt.getInstance(e || t).then((s) => {
288
289
  i.current && o(s);
289
290
  });
290
291
  }, [i]), n;
291
- }, C1 = () => {
292
- const e = be(), t = _(), [n, o] = k([]), i = O(), s = H(
292
+ }, vr = () => {
293
+ const e = be(), t = U(), [n, o] = k([]), i = O(), s = H(
293
294
  (a) => {
294
295
  if (t && i.current) {
295
- const l = t.getBranch(a), u = a.getChildren(l).map((c) => yt(c));
296
+ const l = t.getBranch(a), u = a.getChildren(l).map((c) => Ct(c));
296
297
  o(u);
297
298
  }
298
299
  },
299
300
  [i, t, o]
300
301
  );
301
- return w(() => {
302
+ return v(() => {
302
303
  e && s(e);
303
- }, [e, t]), w(() => {
304
+ }, [e, t]), v(() => {
304
305
  if (t) {
305
- const [a, l] = bt(t.events);
306
+ const [a, l] = yt(t.events);
306
307
  return a("components:set-layout", (u, c) => {
307
308
  (e === c.node.parent || c.node.parent === t.nodes.root) && s(c.node.parent);
308
309
  }), a("components:node-appended", (u, c) => {
@@ -314,9 +315,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
314
315
  };
315
316
  }
316
317
  }, [e, t, s]), n;
317
- }, y1 = () => X(Wt), b1 = (e, t) => {
318
+ }, wr = () => Y(Zt), Er = (e, t) => {
318
319
  const n = ye(), o = Z(), [i, s] = k(void 0), a = O(), l = e || n.type || "";
319
- return w(() => {
320
+ return v(() => {
320
321
  if (l) {
321
322
  let u;
322
323
  return (t || o).getAsync("componentResolver").then((c) => {
@@ -333,10 +334,10 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
333
334
  }
334
335
  }, [a, l, t, o]), i;
335
336
  }, Ft = (e) => {
336
- const t = be(e), n = _(), [o, i] = k({}), s = O();
337
- return w(() => {
337
+ const t = be(e), n = U(), [o, i] = k({}), s = O();
338
+ return v(() => {
338
339
  t && s.current && i(t.attributes.context);
339
- }, [s, t]), w(() => {
340
+ }, [s, t]), v(() => {
340
341
  if (n) {
341
342
  const a = n.events.subscribe(
342
343
  "components:context-changed",
@@ -349,11 +350,11 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
349
350
  };
350
351
  }
351
352
  }, [s, n]), o;
352
- }, v1 = () => {
353
- const e = _(), t = ye(), [n, o] = k([]), [i, s] = k();
354
- return w(() => {
353
+ }, xr = () => Y(Ot), kr = () => {
354
+ const e = U(), t = ye(), [n, o] = k([]), [i, s] = k();
355
+ return v(() => {
355
356
  if (e && t) {
356
- const a = new vt(e).withId(t.id), l = e.actions(a, t.type || q());
357
+ const a = new bt(e).withId(t.id), l = e.actions(a, t.type || Q());
357
358
  s(l), n !== null && (n.forEach((u) => {
358
359
  l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
359
360
  }), o(null));
@@ -369,9 +370,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
369
370
  }, I = (e, t, n = window, o = () => !0) => {
370
371
  const i = R(() => {
371
372
  });
372
- w(() => {
373
+ v(() => {
373
374
  i.current = t;
374
- }, [t]), w(() => {
375
+ }, [t]), v(() => {
375
376
  if (!(n && o()))
376
377
  return;
377
378
  const a = (l) => i.current(l);
@@ -382,9 +383,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
382
383
  }, At = (e) => {
383
384
  const t = Z(), { events: n } = (e || t).get("$widget");
384
385
  return n;
385
- }, w1 = () => {
386
+ }, $r = () => {
386
387
  const [e, t] = k(!1);
387
- return w(() => {
388
+ return v(() => {
388
389
  const n = () => {
389
390
  t(!1);
390
391
  }, o = (i) => {
@@ -394,7 +395,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
394
395
  window.removeEventListener("keydown", o), window.removeEventListener("click", n);
395
396
  };
396
397
  }, []), e;
397
- }, j = (e, t) => {
398
+ }, X = (e, t) => {
398
399
  const [n, o] = k(!1), i = H(
399
400
  (a) => {
400
401
  const { key: l } = a;
@@ -408,11 +409,11 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
408
409
  [o]
409
410
  );
410
411
  return I("keydown", i, window), I("keyup", s, window), n;
411
- }, E1 = (e) => {
412
- const t = be(e), n = _(), [o, i] = k({}), s = O();
413
- return w(() => {
412
+ }, Lr = (e) => {
413
+ const t = be(e), n = U(), [o, i] = k({}), s = O();
414
+ return v(() => {
414
415
  t && s.current && i(t.attributes.layout);
415
- }, [t, s]), w(() => {
416
+ }, [t, s]), v(() => {
416
417
  if (n) {
417
418
  const a = n.events.subscribe(
418
419
  "components:layout-changed",
@@ -427,12 +428,12 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
427
428
  }, [n, s]), o;
428
429
  }, Ae = (e) => {
429
430
  const t = R();
430
- return w(() => {
431
+ return v(() => {
431
432
  t.current = e;
432
433
  }), t.current;
433
- }, x1 = () => X(It), k1 = (e) => {
434
+ }, Mr = () => Y(Wt), Sr = (e) => {
434
435
  const [t, n] = k(), o = Z(), i = O();
435
- return w(() => {
436
+ return v(() => {
436
437
  let s;
437
438
  const a = (e || o).get("$widget");
438
439
  if (!a)
@@ -441,12 +442,12 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
441
442
  return u("renderState").then((c) => {
442
443
  i.current && n(c);
443
444
  }), (e || o).getAsync("actionResolver").then((c) => {
444
- s = c.subscribe(l, (m, p) => {
445
- switch (p) {
445
+ s = c.subscribe(l, (m, g) => {
446
+ switch (g) {
446
447
  case "close":
447
448
  case "open":
448
449
  i.current && n(
449
- p === "open" ? oe.open : oe.closed
450
+ g === "open" ? oe.open : oe.closed
450
451
  );
451
452
  break;
452
453
  case "hide":
@@ -457,20 +458,20 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
457
458
  s && s();
458
459
  };
459
460
  }, [i]), t;
460
- }, Pe = () => X(Ot), $1 = (e) => {
461
+ }, Pe = () => Y(It), Rr = (e) => {
461
462
  const t = Z(), n = Pe(), [o, i] = k({ name: "", params: {} }), s = O();
462
- return w(() => {
463
+ return v(() => {
463
464
  const a = (e || t).get("$widget");
464
465
  if (!a)
465
466
  return;
466
467
  const { events: l } = a;
467
468
  return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
468
469
  if (s.current) {
469
- const { name: p, params: d } = m;
470
- De(d), i({ name: p, params: d });
470
+ const { name: g, params: d } = m;
471
+ De(d), i({ name: g, params: d });
471
472
  }
472
473
  });
473
- }, [s, e, t]), w(() => {
474
+ }, [s, e, t]), v(() => {
474
475
  if (n && n.history && s.current) {
475
476
  const a = n.getRouteData(), { name: l, params: u } = a;
476
477
  De(u), i({ name: l, params: u });
@@ -494,17 +495,17 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
494
495
  (c) => {
495
496
  if (!c.cancelable)
496
497
  return;
497
- const m = c.touches[0].clientY, p = a(c.target);
498
- if (!p)
498
+ const m = c.touches[0].clientY, g = a(c.target);
499
+ if (!g)
499
500
  return;
500
- const d = p.scrollTop, f = n.current - m < 0 ? "up" : "down", g = d <= 0 && f === "up", E = d >= p.scrollHeight - p.offsetHeight && f === "down";
501
- (g || E) && c.preventDefault(), n.current = m;
501
+ const d = g.scrollTop, f = n.current - m < 0 ? "up" : "down", C = d <= 0 && f === "up", E = d >= g.scrollHeight - g.offsetHeight && f === "down";
502
+ (C || E) && c.preventDefault(), n.current = m;
502
503
  },
503
504
  [t, n]
504
505
  );
505
506
  return I("scroll", i, t.current, () => t.current && e), I("touchstart", s, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [Pt, t] : ["", t];
506
507
  }, Pt = `
507
- overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
508
+ overflow-y: ${Ne() === ge.Chrome || Ne() === ge.EdgeChromium ? "overlay" : "auto"};
508
509
  overflow-x: hidden;
509
510
  -ms-overflow-style: none; /* IE 10+ */
510
511
  scrollbar-width: thin; /* Firefox */
@@ -531,9 +532,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
531
532
  background-color: #7F7F7F;
532
533
  }
533
534
  }
534
- `, L1 = () => {
535
+ `, Hr = () => {
535
536
  const [e, t] = k(null), n = Z(), o = O();
536
- return w(() => {
537
+ return v(() => {
537
538
  n.get("settings").then((i) => {
538
539
  o.current && t(i);
539
540
  });
@@ -543,18 +544,18 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
543
544
  n(typeof i == "boolean" ? i : (s) => !s);
544
545
  }, []);
545
546
  return [t, o];
546
- }, M1 = (e) => {
547
- const t = Z(), n = _(), o = t.get("widgetDOMElement"), [i, s] = k(null), [a, l] = k(null), u = O();
548
- w(() => {
547
+ }, zr = (e) => {
548
+ const t = Z(), n = U(), o = t.get("widgetDOMElement"), [i, s] = k(null), [a, l] = k(null), u = O();
549
+ v(() => {
549
550
  if (n && u.current) {
550
- const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
551
- if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
551
+ const m = n.nodes.all.find((d) => d.name === "root-area"), g = n.nodes.all.find((d) => d.type === "view");
552
+ if (!(g != null && g.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
552
553
  e();
553
554
  else {
554
- const d = (E = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${E}"]`), f = d(p == null ? void 0 : p.id);
555
+ const d = (E = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${E}"]`), f = d(g == null ? void 0 : g.id);
555
556
  f && s(f);
556
- const g = d(m == null ? void 0 : m.id);
557
- g && l(g);
557
+ const C = d(m == null ? void 0 : m.id);
558
+ C && l(C);
558
559
  }
559
560
  }
560
561
  }, [n, t, u]);
@@ -567,7 +568,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
567
568
  I("transitionend", c, i), I("transitionend", c, a);
568
569
  }, ce = (e, t, n = [], o) => {
569
570
  const i = At(o);
570
- return w(() => {
571
+ return v(() => {
571
572
  if (i) {
572
573
  const s = i.subscribe(e, t);
573
574
  return () => {
@@ -585,94 +586,82 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
585
586
  return /* @__PURE__ */ r.createElement("span", h({
586
587
  className: M(e, "humany-text")
587
588
  }, V(n)), t);
588
- }, je = L`
589
+ }, je = (e) => L`
589
590
  display: flex;
590
591
  justify-content: center;
591
592
  flex-direction: column;
592
593
  background: #ffffff;
593
- border-radius: ${(e) => e.theme.borderRadius};
594
- border: ${(e) => e.theme.border};
595
- box-shadow: ${(e) => e.theme.boxShadow || "none"};
596
- ${(e) => e["data-loading"] && "min-height: 150px;"}
597
- `, Kt = L`
594
+ border-radius: ${e.theme.borderRadius};
595
+ border: ${e.theme.border};
596
+ box-shadow: ${e.theme.boxShadow || "none"};
597
+ ${e["data-loading"] && "min-height: 150px;"}
598
+ `, Kt = (e) => {
599
+ var t, n, o;
600
+ return L`
598
601
  cursor: pointer;
599
602
  text-align: center;
600
603
  border: none;
601
- padding: ${(e) => {
602
- var t;
603
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
604
- }};
605
- border-radius: ${(e) => e.theme.borderRadius};
606
- font-family: ${(e) => {
607
- var t;
608
- return (t = e.theme.fonts) == null ? void 0 : t.type;
609
- }};
610
- font-size: ${(e) => {
611
- var t;
612
- return (t = e.theme.fonts) == null ? void 0 : t.normal;
613
- }};
614
604
  font-weight: 300;
615
- `, S1 = ({
616
- primaryColor: e,
617
- secondaryColor: t,
618
- active: n
619
- }) => L`
620
- ${Kt}
621
- border: 1px solid ${n ? t : e};
622
- background-color: ${n ? e : t};
605
+ padding: ${(t = e.theme.sizes) == null ? void 0 : t.normal};
606
+ border-radius: ${e.theme.borderRadius};
607
+ font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
608
+ font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
609
+ `;
610
+ }, Dr = (e) => {
611
+ var a;
612
+ const { primaryColor: t, secondaryColor: n, active: o, theme: i, disabled: s } = e;
613
+ return L`
614
+ ${Kt(e)}
615
+ border: 1px solid ${o ? n : t};
616
+ background-color: ${o ? t : n};
623
617
 
624
- color: ${n ? t : e};
625
- transition: background-color 200ms ease-out, color 200ms ease-out;
618
+ color: ${o ? n : t};
619
+ transition: background-color 200ms ease-out, color 200ms ease-out;
626
620
 
627
- span,
628
- i,
629
- p,
630
- a {
631
- transition: color 200ms ease-out;
632
- color: ${n ? t : e};
633
- font-size: ${(o) => {
634
- var i;
635
- return (i = o.theme.fonts) == null ? void 0 : i.normal;
636
- }};
637
- }
621
+ span,
622
+ i,
623
+ p,
624
+ a {
625
+ transition: color 200ms ease-out;
626
+ color: ${o ? n : t};
627
+ font-size: ${(a = i.fonts) == null ? void 0 : a.normal};
628
+ }
638
629
 
639
- ${(o) => !o.disabled && L`
630
+ ${!s && L`
640
631
  &:hover {
641
- background-color: ${e};
642
- color: ${t};
632
+ background-color: ${t};
633
+ color: ${n};
643
634
 
644
635
  span,
645
636
  i,
646
637
  p,
647
638
  a {
648
- color: ${t};
639
+ color: ${n};
649
640
  }
650
641
  }
651
642
 
652
643
  &:focus-visible {
653
- ${P};
644
+ ${P(e)};
654
645
  }
655
646
  `}
656
- `, P = L`
657
- outline: ${(e) => {
658
- var t;
659
- return (t = e.theme.accessibility) == null ? void 0 : t.border;
660
- }};
661
- color: ${(e) => {
662
- var t, n;
663
- return (n = (t = e.theme.accessibility) == null ? void 0 : t.colors) == null ? void 0 : n.inactiveText;
664
- }};
647
+ `;
648
+ }, P = (e) => {
649
+ var t, n, o;
650
+ return L`
651
+ outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
652
+ color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
665
653
  border-color: transparent;
666
- `, Yt = L`
667
- ${P}
654
+ `;
655
+ }, Yt = (e) => L`
656
+ ${P(e)}
668
657
  text-decoration: underline;
669
- `, R1 = L`
670
- ${P}
671
- outline-offset: ${(e) => {
658
+ `, Br = (e) => {
672
659
  var t;
673
- return (t = e.theme.sizes) == null ? void 0 : t.small;
674
- }};
675
- `, Ee = C(ae)`
660
+ return L`
661
+ ${P(e)}
662
+ outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
663
+ `;
664
+ }, Ee = y(ae)`
676
665
  position: absolute;
677
666
  top: ${(e) => {
678
667
  var t;
@@ -700,7 +689,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
700
689
  height: 15px;
701
690
  box-sizing: content-box;
702
691
  }
703
- `, Ve = C(we)`
692
+ `, Ve = y(we)`
704
693
  font-size: ${(e) => {
705
694
  var t;
706
695
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -711,15 +700,14 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
711
700
  var t;
712
701
  return (t = e.theme.colors) == null ? void 0 : t.text;
713
702
  }};
714
- `, jt = L`
703
+ `, jt = (e) => {
704
+ var t;
705
+ return L`
715
706
  padding: 0;
716
707
  margin: 0;
717
708
  list-style: none;
718
709
  > li {
719
- margin: 0 0 ${(e) => {
720
- var t;
721
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
722
- }};
710
+ margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
723
711
  white-space: nowrap;
724
712
  text-overflow: ellipsis;
725
713
  min-width: 0;
@@ -733,43 +721,32 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
733
721
  > li:last-child {
734
722
  margin: 0;
735
723
  }
736
- `, H1 = L`
724
+ `;
725
+ }, Tr = (e) => {
726
+ var t, n, o, i;
727
+ return L`
737
728
  > div {
738
- ${se(
739
- "> h1",
740
- L`
741
- margin: 0 0 ${(e) => {
742
- var t;
743
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
744
- }};
745
- font-size: ${(e) => {
746
- var t;
747
- return (t = e.theme.fonts) == null ? void 0 : t.medium;
748
- }};
729
+ ${se(e)(
730
+ "> h1",
731
+ L`
732
+ margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
733
+ font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
749
734
  font-weight: normal;
750
735
  line-height: 1.8em;
751
- color: ${(e) => {
752
- var t;
753
- return (t = e.theme.colors) == null ? void 0 : t.text;
754
- }};
736
+ color: ${(o = e.theme.colors) == null ? void 0 : o.text};
755
737
  `
756
- )}
738
+ )}
757
739
  }
758
740
  > ul {
759
- ${jt}
741
+ ${jt(e)}
760
742
  }
761
-
762
- ${se(
763
- "h1",
764
- L`
743
+ ${se(e)(
744
+ "h1",
745
+ L`
765
746
  display: flex;
766
747
  align-items: center;
767
-
768
748
  i {
769
- margin: 7px ${(e) => {
770
- var t;
771
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
772
- }} 0 0;
749
+ margin: 7px ${(i = e.theme.sizes) == null ? void 0 : i.normal} 0 0;
773
750
  width: 24px;
774
751
  display: inline-block;
775
752
  vertical-align: text-bottom;
@@ -779,18 +756,15 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
779
756
  text-align: center;
780
757
  }
781
758
  `
782
- )}
783
- `, z1 = L`
784
- font-size: ${(e) => {
785
- var t;
786
- return (t = e.theme.fonts) == null ? void 0 : t.normal;
787
- }};
759
+ )}
760
+ `;
761
+ }, Nr = (e) => {
762
+ var t, n, o, i, s, a;
763
+ return L`
764
+ font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
788
765
  font-weight: 300;
789
766
  line-height: 1.5em;
790
- color: ${(e) => {
791
- var t;
792
- return (t = e.theme.colors) == null ? void 0 : t.text;
793
- }};
767
+ color: ${(n = e.theme.colors) == null ? void 0 : n.text};
794
768
 
795
769
  h1,
796
770
  h2,
@@ -811,12 +785,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
811
785
  }
812
786
 
813
787
  a {
814
- color: ${(e) => {
815
- var t;
816
- return (t = e.theme.colors) == null ? void 0 : t.link;
817
- }};
788
+ color: ${(o = e.theme.colors) == null ? void 0 : o.link};
818
789
  &:focus-visible {
819
- ${Yt};
790
+ ${Yt(e)};
820
791
  }
821
792
  }
822
793
 
@@ -827,30 +798,22 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
827
798
 
828
799
  p {
829
800
  word-break: break-word;
830
- margin: ${(e) => {
831
- var t;
832
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
833
- }} 0;
801
+ margin: ${(i = e.theme.sizes) == null ? void 0 : i.normal} 0;
834
802
  }
835
803
 
836
804
  p:first-child {
837
- margin: 0 0 ${(e) => {
838
- var t;
839
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
840
- }};
805
+ margin: 0 0 ${(s = e.theme.sizes) == null ? void 0 : s.normal};
841
806
  }
842
807
 
843
808
  p:last-child {
844
- margin: ${(e) => {
845
- var t;
846
- return (t = e.theme.sizes) == null ? void 0 : t.normal;
847
- }} 0 0;
809
+ margin: ${(a = e.theme.sizes) == null ? void 0 : a.normal} 0 0;
848
810
  }
849
811
 
850
812
  p:only-child {
851
813
  margin: 0;
852
814
  }
853
- `, G = ({
815
+ `;
816
+ }, G = ({
854
817
  elementId: e = "humany-portal-elements",
855
818
  parent: t = document.body,
856
819
  children: n
@@ -859,9 +822,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
859
822
  const i = document.getElementById(e) || document.createElement("div");
860
823
  return i.id = e, i;
861
824
  });
862
- return w(() => (t.appendChild(o), () => {
825
+ return v(() => (t.appendChild(o), () => {
863
826
  o.childElementCount <= 1 && t.removeChild(o);
864
- }), [o]), Et(n, o);
827
+ }), [o]), wt(n, o);
865
828
  }, J = (l) => {
866
829
  var u = l, {
867
830
  text: e = "",
@@ -881,7 +844,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
881
844
  "elementStyle",
882
845
  "className"
883
846
  ]);
884
- const { type: c, content: m } = o, p = {
847
+ const { type: c, content: m } = o, g = {
885
848
  "aria-label": e,
886
849
  role: "presentation"
887
850
  };
@@ -898,7 +861,7 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
898
861
  className: M(s, "humany-icon", "humany-custom-icon"),
899
862
  title: e,
900
863
  style: h(h({}, d), i)
901
- }, p), a));
864
+ }, g), a));
902
865
  }
903
866
  case "Svg": {
904
867
  const d = $(h({
@@ -1377,9 +1340,9 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
1377
1340
  return e ? /* @__PURE__ */ r.createElement("i", h(h({
1378
1341
  className: M(s, "humany-letter-symbol"),
1379
1342
  title: e
1380
- }, p), a), e.substring(0, 2)) : null;
1343
+ }, g), a), e.substring(0, 2)) : null;
1381
1344
  }
1382
- }, Xt = C.svg`
1345
+ }, Xt = y.svg`
1383
1346
  transform: rotate(180deg);
1384
1347
  `, _t = {
1385
1348
  h1: "h1",
@@ -1390,15 +1353,15 @@ const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
1390
1353
  h6: "h6",
1391
1354
  p: "p",
1392
1355
  span: "span"
1393
- }, U = ({ variant: e, component: t, className: n, children: o }) => {
1356
+ }, q = ({ variant: e, component: t, className: n, children: o }) => {
1394
1357
  const { typographyVariantMapping: i = {} } = Ft(), s = h(h({}, _t), i), a = t || s[e] || "span";
1395
1358
  return /* @__PURE__ */ r.createElement(Ut, {
1396
1359
  className: n,
1397
1360
  as: a
1398
1361
  }, o);
1399
- }, Ut = C.span``;
1362
+ }, Ut = y.span``;
1400
1363
  var qt = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(qt || {});
1401
- const Qt = 300, D1 = ({
1364
+ const Qt = 300, Vr = ({
1402
1365
  className: e,
1403
1366
  children: t,
1404
1367
  header: n,
@@ -1410,27 +1373,27 @@ const Qt = 300, D1 = ({
1410
1373
  type: "slide-in-bottom"
1411
1374
  }
1412
1375
  }) => {
1413
- const { duration: u = Qt } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, g] = Ye(), E = Ae(f), v = R(q());
1414
- w(() => {
1376
+ const { duration: u = Qt } = l, c = R(), m = R(), [g, d] = Ke(!0), [f, C] = Ye(), E = Ae(f), b = R(Q());
1377
+ v(() => {
1415
1378
  o && o(f);
1416
1379
  }, [f]);
1417
- const b = j("Escape");
1418
- w(() => {
1419
- b && g(!1);
1420
- }, [b]), I(
1380
+ const w = X("Escape");
1381
+ v(() => {
1382
+ w && C(!1);
1383
+ }, [w]), I(
1421
1384
  "click",
1422
1385
  (T) => {
1423
1386
  const { target: z } = T;
1424
- !m.current || !d.current || !z || m.current !== z && d.current !== z && !d.current.contains(z) && !m.current.contains(z) && g(!1);
1387
+ !m.current || !d.current || !z || m.current !== z && d.current !== z && !d.current.contains(z) && !m.current.contains(z) && C(!1);
1425
1388
  },
1426
1389
  window
1427
1390
  );
1428
- const y = ve(v.current, () => {
1429
- g(!1);
1391
+ const p = ve(b.current, () => {
1392
+ C(!1);
1430
1393
  });
1431
1394
  ce("router:changed", () => {
1432
- g(!1);
1433
- }), w(() => {
1395
+ C(!1);
1396
+ }), v(() => {
1434
1397
  f && c.current ? c.current.focus() : !f && m.current && E && m.current.focus();
1435
1398
  }, [f, c.current, m.current]);
1436
1399
  const B = rn[l.type];
@@ -1446,13 +1409,13 @@ const Qt = 300, D1 = ({
1446
1409
  className: M(
1447
1410
  e,
1448
1411
  "humany-drawer",
1449
- `humany-drawer-${v.current}`
1412
+ `humany-drawer-${b.current}`
1450
1413
  ),
1451
1414
  clientHeight: document.body.clientHeight,
1452
- css: p,
1415
+ css: g,
1453
1416
  ref: d
1454
1417
  }, /* @__PURE__ */ r.createElement(Ee, {
1455
- onClick: () => g(!1),
1418
+ onClick: () => C(!1),
1456
1419
  tabIndex: 0,
1457
1420
  ref: c,
1458
1421
  "aria-label": a
@@ -1463,13 +1426,13 @@ const Qt = 300, D1 = ({
1463
1426
  className: "humany-drawer-header"
1464
1427
  }, n), t))), r.cloneElement(i, {
1465
1428
  onClick: (T) => {
1466
- g(), y();
1429
+ C(), p();
1467
1430
  },
1468
1431
  ref: m,
1469
1432
  "aria-label": i.props.title,
1470
1433
  "aria-expanded": f
1471
1434
  }));
1472
- }, le = C.div`
1435
+ }, le = y.div`
1473
1436
  font-family: ${(e) => {
1474
1437
  var t;
1475
1438
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1486,8 +1449,11 @@ const Qt = 300, D1 = ({
1486
1449
  box-shadow: ${(e) => e.theme.boxShadow};
1487
1450
  background: #ffffff;
1488
1451
  ${(e) => e.css && e.css}
1489
- `, Gt = C(U)`
1490
- padding: ${(e) => e.theme.sizes.normal};
1452
+ `, Gt = y(q)`
1453
+ padding: ${(e) => {
1454
+ var t;
1455
+ return (t = e.theme.sizes) == null ? void 0 : t.normal;
1456
+ }};
1491
1457
  margin: 0;
1492
1458
  text-align: center;
1493
1459
  border-bottom: #eeeeee 1px solid;
@@ -1506,9 +1472,9 @@ const Qt = 300, D1 = ({
1506
1472
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
1507
1473
  }};
1508
1474
  line-height: 1.2em;
1509
- `, ue = L`
1510
- transition: ${(e) => e.duration}ms;
1511
- `, Jt = C(le)`
1475
+ `, ue = (e) => L`
1476
+ transition: ${e.duration}ms;
1477
+ `, Jt = y(le)`
1512
1478
  max-height: 0;
1513
1479
  ${ue}
1514
1480
 
@@ -1525,7 +1491,7 @@ const Qt = 300, D1 = ({
1525
1491
  &.humany-drawer-transition-exit-done {
1526
1492
  max-height: 0;
1527
1493
  }
1528
- `, en = C(le)`
1494
+ `, en = y(le)`
1529
1495
  ${ue}
1530
1496
  transform: translateX(100%);
1531
1497
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
@@ -1543,7 +1509,7 @@ const Qt = 300, D1 = ({
1543
1509
  &.humany-drawer-transition-exit-done {
1544
1510
  transform: translateX(100%);
1545
1511
  }
1546
- `, tn = C(le)`
1512
+ `, tn = y(le)`
1547
1513
  ${ue}
1548
1514
  transform: translateX(-100%);
1549
1515
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
@@ -1561,7 +1527,7 @@ const Qt = 300, D1 = ({
1561
1527
  &.humany-drawer-transition-exit-done {
1562
1528
  transform: translateX(-100%);
1563
1529
  }
1564
- `, nn = C(le)`
1530
+ `, nn = y(le)`
1565
1531
  ${ue}
1566
1532
  bottom: unset;
1567
1533
  top: 0;
@@ -1595,7 +1561,7 @@ const Qt = 300, D1 = ({
1595
1561
  },
1596
1562
  [o, s, i, a]
1597
1563
  );
1598
- return w(() => {
1564
+ return v(() => {
1599
1565
  if (!n || !e)
1600
1566
  return;
1601
1567
  const u = n.getBoundingClientRect(), c = {
@@ -1604,43 +1570,43 @@ const Qt = 300, D1 = ({
1604
1570
  };
1605
1571
  u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && i(c.x), c.y !== s && a(c.y);
1606
1572
  }, [n, e, t]), [{ x: o, y: s }, l];
1607
- }, B1 = r.forwardRef(
1573
+ }, Zr = r.forwardRef(
1608
1574
  (a, s) => {
1609
1575
  var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, i = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1610
1576
  const u = R(), c = R(), m = R();
1611
1577
  Ce(s, () => m.current, [m.current]);
1612
- const p = R(q()), [d, f] = k(!1), g = Ae(d), [{ x: E, y: v }, b] = Xe(d, p.current, m.current), y = j("Escape");
1613
- w(() => {
1614
- y && f(!1);
1615
- }, [y]), w(() => {
1616
- d && u.current ? u.current.focus() : !d && c.current && g && c.current.focus();
1578
+ const g = R(Q()), [d, f] = k(!1), C = Ae(d), [{ x: E, y: b }, w] = Xe(d, g.current, m.current), p = X("Escape");
1579
+ v(() => {
1580
+ p && f(!1);
1581
+ }, [p]), v(() => {
1582
+ d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
1617
1583
  }, [d, u.current, c.current]), I(
1618
1584
  "click",
1619
1585
  (z) => {
1620
- const { target: Y } = z;
1621
- !m.current || !Y || m.current !== Y && !m.current.contains(Y) && f(!1);
1586
+ const { target: j } = z;
1587
+ !m.current || !j || m.current !== j && !m.current.contains(j) && f(!1);
1622
1588
  },
1623
1589
  window
1624
1590
  ), ce("router:changed", () => {
1625
1591
  f(!1);
1626
1592
  });
1627
- const B = ve(p.current, () => {
1593
+ const B = ve(g.current, () => {
1628
1594
  f(!1);
1629
1595
  }), T = H(
1630
1596
  (z) => {
1631
- z.stopPropagation(), b(z, c.current), f(!d), B();
1597
+ z.stopPropagation(), w(z, c.current), f(!d), B();
1632
1598
  },
1633
- [B, b, f]
1599
+ [B, w, f]
1634
1600
  );
1635
1601
  return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(on, $(h({
1636
1602
  className: M(
1637
1603
  "humany-dropdown",
1638
- `humany-dropdown-${p.current}`,
1604
+ `humany-dropdown-${g.current}`,
1639
1605
  e
1640
1606
  )
1641
1607
  }, i), {
1642
1608
  x: E,
1643
- y: v,
1609
+ y: b,
1644
1610
  ref: m
1645
1611
  }), /* @__PURE__ */ r.createElement(Ee, {
1646
1612
  onClick: () => f(!1),
@@ -1656,7 +1622,7 @@ const Qt = 300, D1 = ({
1656
1622
  "aria-expanded": d
1657
1623
  }));
1658
1624
  }
1659
- ), on = C.div`
1625
+ ), on = y.div`
1660
1626
  ${je}
1661
1627
  padding: ${(e) => {
1662
1628
  var t;
@@ -1674,9 +1640,9 @@ const Qt = 300, D1 = ({
1674
1640
  `, sn = (t) => {
1675
1641
  var e = S(t, []);
1676
1642
  return /* @__PURE__ */ r.createElement(an, h({}, e));
1677
- }, an = C.div`
1643
+ }, an = y.div`
1678
1644
  display: none;
1679
- `, T1 = N(
1645
+ `, Wr = N(
1680
1646
  (a, s) => {
1681
1647
  var l = a, { children: e, columns: t, gap: n, className: o } = l, i = S(l, ["children", "columns", "gap", "className"]);
1682
1648
  return /* @__PURE__ */ r.createElement(cn, $(h(h({
@@ -1687,21 +1653,21 @@ const Qt = 300, D1 = ({
1687
1653
  ref: s
1688
1654
  }), e);
1689
1655
  }
1690
- ), cn = C.div`
1656
+ ), cn = y.div`
1691
1657
  display: grid;
1692
1658
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1693
1659
  grid-gap: ${(e) => e["data-gap"]};
1694
1660
  justify-content: center;
1695
1661
  grid-auto-rows: max-content;
1696
- ${Ht}
1662
+ ${Rt}
1697
1663
  `, _e = N(
1698
1664
  (s, i) => {
1699
1665
  var a = s, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1700
1666
  const l = Z(), [u, c] = k();
1701
- return w(() => {
1702
- const m = Tt(l, n), p = $(h(h({}, m), e), {
1667
+ return v(() => {
1668
+ const m = Bt(l, n), g = $(h(h({}, m), e), {
1703
1669
  transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
1704
- }), d = Dt(n, p);
1670
+ }), d = zt(n, g);
1705
1671
  c(d);
1706
1672
  }, [n, e]), /* @__PURE__ */ r.createElement("div", $(h({
1707
1673
  className: M(t, "humany-html")
@@ -1726,9 +1692,9 @@ const Qt = 300, D1 = ({
1726
1692
  title: t,
1727
1693
  role: o
1728
1694
  }, V(i)));
1729
- }, N1 = N(
1730
- (p, m) => {
1731
- var d = p, {
1695
+ }, Ir = N(
1696
+ (g, m) => {
1697
+ var d = g, {
1732
1698
  className: e = "",
1733
1699
  autoFocus: t = !1,
1734
1700
  onFocusChange: n = () => {
@@ -1753,29 +1719,29 @@ const Qt = 300, D1 = ({
1753
1719
  "disabled",
1754
1720
  "type"
1755
1721
  ]);
1756
- const [f, g] = k(t), E = R();
1757
- Ce(m, () => E.current), w(() => {
1758
- var y;
1759
- t && ((y = E == null ? void 0 : E.current) == null || y.focus());
1722
+ const [f, C] = k(t), E = R();
1723
+ Ce(m, () => E.current), v(() => {
1724
+ var p;
1725
+ t && ((p = E == null ? void 0 : E.current) == null || p.focus());
1760
1726
  }, [t, m, E]);
1761
- const v = (y, B) => {
1762
- g(y), n && n(y), s && y && B.target.select();
1763
- }, b = $(h({}, V(c)), {
1727
+ const b = (p, B) => {
1728
+ C(p), n && n(p), s && p && B.target.select();
1729
+ }, w = $(h({}, V(c)), {
1764
1730
  disabled: l,
1765
1731
  autoFocus: t,
1766
1732
  type: u,
1767
- onKeyDown: (y) => {
1768
- y.key === "Enter" && f && o(y), y.key === "Escape" && f && i(y);
1733
+ onKeyDown: (p) => {
1734
+ p.key === "Enter" && f && o(p), p.key === "Escape" && f && i(p);
1769
1735
  },
1770
- onFocus: (y) => v(!0, y),
1771
- onBlur: (y) => v(!1, y),
1772
- onChange: (y) => a(y.target.value || ""),
1736
+ onFocus: (p) => b(!0, p),
1737
+ onBlur: (p) => b(!1, p),
1738
+ onChange: (p) => a(p.target.value || ""),
1773
1739
  className: M(e, "humany-input"),
1774
1740
  "data-type": u
1775
1741
  });
1776
- return u !== "textarea" ? /* @__PURE__ */ r.createElement("input", $(h({}, b), {
1742
+ return u !== "textarea" ? /* @__PURE__ */ r.createElement("input", $(h({}, w), {
1777
1743
  ref: E
1778
- })) : /* @__PURE__ */ r.createElement("textarea", $(h({}, b), {
1744
+ })) : /* @__PURE__ */ r.createElement("textarea", $(h({}, w), {
1779
1745
  ref: E
1780
1746
  }));
1781
1747
  }
@@ -1801,7 +1767,7 @@ const Qt = 300, D1 = ({
1801
1767
  className: M(o, "humany-paragraph")
1802
1768
  }, V(a)), {
1803
1769
  ref: l
1804
- }), n ? /* @__PURE__ */ r.createElement(U, {
1770
+ }), n ? /* @__PURE__ */ r.createElement(q, {
1805
1771
  variant: "h1"
1806
1772
  }, s ? /* @__PURE__ */ r.createElement(J, {
1807
1773
  symbol: s
@@ -1812,7 +1778,7 @@ const Qt = 300, D1 = ({
1812
1778
  }
1813
1779
  ), dn = N(
1814
1780
  (f, d) => {
1815
- var g = f, {
1781
+ var C = f, {
1816
1782
  header: e,
1817
1783
  customHeader: t,
1818
1784
  text: n,
@@ -1824,7 +1790,7 @@ const Qt = 300, D1 = ({
1824
1790
  renderItem: u,
1825
1791
  renderLi: c,
1826
1792
  ulProps: m
1827
- } = g, p = S(g, [
1793
+ } = C, g = S(C, [
1828
1794
  "header",
1829
1795
  "customHeader",
1830
1796
  "text",
@@ -1840,7 +1806,7 @@ const Qt = 300, D1 = ({
1840
1806
  return /* @__PURE__ */ r.createElement("div", $(h({
1841
1807
  className: M(i, "humany-item-list"),
1842
1808
  "data-item-count": l.length
1843
- }, V(p)), {
1809
+ }, V(g)), {
1844
1810
  ref: d
1845
1811
  }), t || (e || n || o ? /* @__PURE__ */ r.createElement(mn, {
1846
1812
  symbol: a,
@@ -1853,7 +1819,7 @@ const Qt = 300, D1 = ({
1853
1819
  renderLi: c
1854
1820
  }, m)) : null, s);
1855
1821
  }
1856
- ), V1 = ({
1822
+ ), Or = ({
1857
1823
  className: e = "",
1858
1824
  tree: t,
1859
1825
  renderItem: n,
@@ -1863,16 +1829,16 @@ const Qt = 300, D1 = ({
1863
1829
  ulProps: a,
1864
1830
  liProps: l
1865
1831
  }) => {
1866
- const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(dn, {
1832
+ const u = (g) => !c(g), c = (g) => !g || g.length < 1 ? !0 : !g.some((d) => !!d.selected), m = (g, d) => /* @__PURE__ */ r.createElement(dn, {
1867
1833
  className: M(`humany-item-tree-level-${d}`),
1868
- items: p,
1834
+ items: g,
1869
1835
  ulProps: a,
1870
1836
  renderItem: (f) => {
1871
- const { id: g, selected: E, items: v, matches: b } = f, y = E && c(v);
1872
- return !s && !b ? null : /* @__PURE__ */ r.createElement("li", $(h({}, V(l)), {
1873
- key: g,
1837
+ const { id: C, selected: E, items: b, matches: w } = f, p = E && c(b);
1838
+ return !s && !w ? null : /* @__PURE__ */ r.createElement("li", $(h({}, V(l)), {
1839
+ key: C,
1874
1840
  className: "humany-item-tree-item"
1875
- }), n && n(f, d, y), v && (i || y) && m(v, d + 1));
1841
+ }), n && n(f, d, p), b && (i || p) && m(b, d + 1));
1876
1842
  }
1877
1843
  });
1878
1844
  return /* @__PURE__ */ r.createElement("div", {
@@ -1882,7 +1848,7 @@ const Qt = 300, D1 = ({
1882
1848
  (u, l) => {
1883
1849
  var c = u, { className: e, onClick: t = () => {
1884
1850
  }, name: n = "", to: o = "", params: i = {}, children: s } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1885
- const m = Pe(), p = Z();
1851
+ const m = Pe(), g = Z();
1886
1852
  if (!m)
1887
1853
  return null;
1888
1854
  let d = "";
@@ -1895,16 +1861,16 @@ const Qt = 300, D1 = ({
1895
1861
  ref: null
1896
1862
  });
1897
1863
  if (n) {
1898
- if (!(m.routes || []).find((b) => b.name === n))
1864
+ if (!(m.routes || []).find((w) => w.name === n))
1899
1865
  return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
1900
- onClick: (b) => {
1901
- t(b), b.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1866
+ onClick: (w) => {
1867
+ t(w), w.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1902
1868
  }
1903
1869
  }), s);
1904
- const v = Object.keys(i).reduce((b, y) => (b[y] = typeof i[y] == "string" ? encodeURIComponent(i[y]) : i[y], b), {});
1870
+ const b = Object.keys(i).reduce((w, p) => (w[p] = typeof i[p] == "string" ? encodeURIComponent(i[p]) : i[p], w), {});
1905
1871
  try {
1906
- d = m.generate(n, v || {});
1907
- } catch (b) {
1872
+ d = m.generate(n, b || {});
1873
+ } catch (w) {
1908
1874
  return /* @__PURE__ */ r.createElement(fe, h({}, f), s);
1909
1875
  }
1910
1876
  d && m.settings.mode && m.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
@@ -1920,16 +1886,18 @@ const Qt = 300, D1 = ({
1920
1886
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1921
1887
  ), null;
1922
1888
  if (m.settings && m.settings.mode === Te.scopedHash) {
1923
- const g = p.get("$widget").name;
1924
- d = xt(d, g);
1889
+ const C = g.get("$widget").name;
1890
+ d = Et(d, C);
1925
1891
  }
1926
- return /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
1892
+ return f.as ? /* @__PURE__ */ r.createElement(hn, $(h({}, f), {
1893
+ as: f.as
1894
+ }), s) : /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
1927
1895
  to: d
1928
1896
  }), s);
1929
1897
  }
1930
- ), xe = N(
1931
- (g, f) => {
1932
- var E = g, {
1898
+ ), hn = y.span``, xe = N(
1899
+ (E, C) => {
1900
+ var b = E, {
1933
1901
  className: e,
1934
1902
  disabled: t = !1,
1935
1903
  role: n = "link",
@@ -1939,12 +1907,13 @@ const Qt = 300, D1 = ({
1939
1907
  onKeyDown: s = () => {
1940
1908
  },
1941
1909
  title: a,
1942
- href: l,
1943
- children: u,
1944
- target: c,
1945
- routeName: m,
1946
- params: p
1947
- } = E, d = S(E, [
1910
+ as: l,
1911
+ href: u,
1912
+ children: c,
1913
+ target: m,
1914
+ routeName: g,
1915
+ params: d
1916
+ } = b, f = S(b, [
1948
1917
  "className",
1949
1918
  "disabled",
1950
1919
  "role",
@@ -1952,51 +1921,53 @@ const Qt = 300, D1 = ({
1952
1921
  "onClick",
1953
1922
  "onKeyDown",
1954
1923
  "title",
1924
+ "as",
1955
1925
  "href",
1956
1926
  "children",
1957
1927
  "target",
1958
1928
  "routeName",
1959
1929
  "params"
1960
1930
  ]);
1961
- const v = {
1931
+ const w = {
1962
1932
  title: a,
1963
1933
  disabled: t,
1964
1934
  role: n,
1935
+ as: l,
1965
1936
  tabIndex: o,
1966
1937
  className: M(e, "humany-link", [!!t, "humany-disabled"]),
1967
- onClick: (b) => {
1968
- if (b.persist(), t) {
1969
- b.preventDefault();
1938
+ onClick: (p) => {
1939
+ if (p.persist(), t) {
1940
+ p.preventDefault();
1970
1941
  return;
1971
1942
  }
1972
- i(b);
1943
+ i(p);
1973
1944
  },
1974
- onKeyDown: (b) => {
1975
- if (b.persist(), t) {
1976
- b.key !== "Tab" && b.preventDefault();
1945
+ onKeyDown: (p) => {
1946
+ if (p.persist(), t) {
1947
+ p.key !== "Tab" && p.preventDefault();
1977
1948
  return;
1978
1949
  }
1979
- s(b);
1950
+ s(p);
1980
1951
  }
1981
1952
  };
1982
- return m ? /* @__PURE__ */ r.createElement(hn, $(h(h({
1983
- name: m,
1984
- params: p
1985
- }, v), V(d)), {
1986
- ref: f
1987
- }), u) : /* @__PURE__ */ r.createElement(pn, $(h(h({
1988
- href: l,
1989
- target: c
1990
- }, v), V(d)), {
1991
- ref: f
1992
- }), u);
1953
+ return g ? /* @__PURE__ */ r.createElement(gn, $(h(h({
1954
+ name: g,
1955
+ params: d
1956
+ }, w), V(f)), {
1957
+ ref: C
1958
+ }), c) : /* @__PURE__ */ r.createElement(pn, $(h(h({
1959
+ href: u,
1960
+ target: m
1961
+ }, w), V(f)), {
1962
+ ref: C
1963
+ }), c);
1993
1964
  }
1994
- ), hn = C(fn)`
1965
+ ), gn = y(fn)`
1995
1966
  ${(e) => e.disabled ? `
1996
1967
  pointer-events: none;
1997
1968
  opacity: .7;
1998
1969
  ` : "cursor: pointer;"}
1999
- `, pn = C.a`
1970
+ `, pn = y.a`
2000
1971
  ${(e) => e.disabled ? `
2001
1972
  pointer-events: none;
2002
1973
  opacity: .7;
@@ -2026,13 +1997,13 @@ const Qt = 300, D1 = ({
2026
1997
  classNames: "humany-overlay-transition",
2027
1998
  unmountOnExit: !0,
2028
1999
  timeout: t
2029
- }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(gn, h({
2000
+ }, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(Cn, h({
2030
2001
  className: "humany-overlay",
2031
2002
  duration: t,
2032
2003
  ref: l,
2033
2004
  onClick: u
2034
2005
  }, i), n)));
2035
- }, gn = C.div`
2006
+ }, Cn = y.div`
2036
2007
  background: rgba(0, 0, 0, 0.6);
2037
2008
  min-width: 100%;
2038
2009
  min-height: 100%;
@@ -2062,11 +2033,11 @@ const Qt = 300, D1 = ({
2062
2033
  &.humany-overlay-transition-exit-done {
2063
2034
  opacity: 0;
2064
2035
  }
2065
- `, Cn = We`
2036
+ `, yn = We`
2066
2037
  100% {
2067
2038
  transform: rotate(360deg);
2068
2039
  }
2069
- `, yn = We`
2040
+ `, bn = We`
2070
2041
  0% {
2071
2042
  stroke-dasharray: 1, 200;
2072
2043
  stroke-dashoffset: 0;
@@ -2079,8 +2050,8 @@ const Qt = 300, D1 = ({
2079
2050
  stroke-dasharray: 89, 200;
2080
2051
  stroke-dashoffset: -124px;
2081
2052
  }
2082
- `, qe = C.svg`
2083
- animation: ${Cn} 2s linear infinite;
2053
+ `, vn = y.svg`
2054
+ animation: ${yn} 2s linear infinite;
2084
2055
  height: 100%;
2085
2056
  transform-origin: center center;
2086
2057
  width: 100%;
@@ -2091,25 +2062,25 @@ const Qt = 300, D1 = ({
2091
2062
  right: 0;
2092
2063
  margin: auto;
2093
2064
  transition: 200ms ease-out opacity;
2094
- `, bn = C.div`
2095
- position: absolute;
2096
- top: 0;
2097
- bottom: 0;
2098
- left: 0;
2099
- right: 0;
2100
- height: 100%;
2101
- width: 100%;
2102
- pointer-events: ${(e) => e["data-loading"] ? "all" : "none"}
2103
- display: flex;
2104
- flex-direction: column;
2105
- justify-content: center;
2106
- transition: 200ms ease-out opacity;
2107
- box-sizing: border-box;
2108
- overflow: hidden;
2109
- ${qe} {
2110
- opacity: ${(e) => e["data-loading"] ? "1" : "0"}
2111
- }
2112
- `, vn = C.div`
2065
+ `, wn = y.div`
2066
+ position: absolute;
2067
+ top: 0;
2068
+ bottom: 0;
2069
+ left: 0;
2070
+ right: 0;
2071
+ height: 100%;
2072
+ width: 100%;
2073
+ pointer-events: ${(e) => e["data-loading"] ? "all" : "none"};
2074
+ display: flex;
2075
+ flex-direction: column;
2076
+ justify-content: center;
2077
+ transition: 200ms ease-out opacity;
2078
+ box-sizing: border-box;
2079
+ overflow: hidden;
2080
+ svg {
2081
+ opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2082
+ }
2083
+ `, En = y.div`
2113
2084
  position: relative;
2114
2085
  margin: 0 auto;
2115
2086
  width: 100px;
@@ -2118,31 +2089,31 @@ const Qt = 300, D1 = ({
2118
2089
  display: block;
2119
2090
  padding-top: 100%;
2120
2091
  }
2121
- `, wn = C.circle`
2092
+ `, xn = y.circle`
2122
2093
  stroke-dasharray: 1, 200;
2123
2094
  stroke-dashoffset: 0;
2124
- animation: ${yn} 1.5s ease-in-out infinite;
2095
+ animation: ${bn} 1.5s ease-in-out infinite;
2125
2096
  stroke-linecap: round;
2126
2097
  stroke: ${(e) => {
2127
2098
  var t;
2128
2099
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2129
2100
  }};
2130
2101
  stroke-width: 2px;
2131
- `, En = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(bn, {
2102
+ `, kn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(wn, {
2132
2103
  className: M("humany-loader", e),
2133
2104
  "data-loading": t
2134
- }, /* @__PURE__ */ r.createElement(vn, {
2105
+ }, /* @__PURE__ */ r.createElement(En, {
2135
2106
  className: "humany-spinner"
2136
- }, /* @__PURE__ */ r.createElement(qe, {
2107
+ }, /* @__PURE__ */ r.createElement(vn, {
2137
2108
  viewBox: "25 25 50 50"
2138
- }, /* @__PURE__ */ r.createElement(wn, {
2109
+ }, /* @__PURE__ */ r.createElement(xn, {
2139
2110
  cx: "50",
2140
2111
  cy: "50",
2141
2112
  r: "20",
2142
2113
  fill: "none",
2143
2114
  "stroke-width": "2",
2144
2115
  "stroke-miterlimit": "10"
2145
- })))), xn = (i) => {
2116
+ })))), $n = (i) => {
2146
2117
  var s = i, {
2147
2118
  zoomState: e,
2148
2119
  image: t,
@@ -2152,31 +2123,31 @@ const Qt = 300, D1 = ({
2152
2123
  "image",
2153
2124
  "changeZoom"
2154
2125
  ]);
2155
- var b;
2156
- const a = R(null), [l, u] = k(!1), [c, m] = k(!1), v = o.style || {}, { width: p, height: d } = v, f = S(v, ["width", "height"]), g = H(() => {
2157
- const y = a.current;
2158
- if (y) {
2159
- const B = window.innerWidth / y.width, T = window.innerHeight / y.height, z = Math.min(B, T);
2126
+ var w;
2127
+ const a = R(null), [l, u] = k(!1), [c, m] = k(!1), b = o.style || {}, { width: g, height: d } = b, f = S(b, ["width", "height"]), C = H(() => {
2128
+ const p = a.current;
2129
+ if (p) {
2130
+ const B = window.innerWidth / p.width, T = window.innerHeight / p.height, z = Math.min(B, T);
2160
2131
  return T >= 1 && B >= 1 ? 1 : z;
2161
2132
  }
2162
2133
  return 1;
2163
2134
  }, [l, t.src]), E = ie(() => {
2164
- const y = a.current;
2165
- if (y) {
2135
+ const p = a.current;
2136
+ if (p) {
2166
2137
  if (!c) {
2167
2138
  m(!0);
2168
- const B = g();
2139
+ const B = C();
2169
2140
  n(B);
2170
2141
  }
2171
- return y.width >= y.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
2142
+ return p.width >= p.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
2172
2143
  }
2173
2144
  return null;
2174
2145
  }, [e, a, l, t.src]);
2175
- return w(() => (u(!1), function() {
2146
+ return v(() => (u(!1), function() {
2176
2147
  m(!1);
2177
- }), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(kn, {
2148
+ }), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ln, {
2178
2149
  loading: !l
2179
- }), /* @__PURE__ */ r.createElement($n, $(h({
2150
+ }), /* @__PURE__ */ r.createElement(Mn, $(h({
2180
2151
  onLoad: () => {
2181
2152
  u(!0);
2182
2153
  },
@@ -2184,16 +2155,16 @@ const Qt = 300, D1 = ({
2184
2155
  imageSize: E,
2185
2156
  draggable: "false"
2186
2157
  }, o), {
2187
- alt: ((b = o.alt) == null ? void 0 : b.toString()) || "",
2158
+ alt: ((w = o.alt) == null ? void 0 : w.toString()) || "",
2188
2159
  style: f,
2189
2160
  src: t.src,
2190
2161
  loaded: l
2191
- })), /* @__PURE__ */ r.createElement(Ln, null));
2192
- }, kn = C(En)`
2162
+ })), /* @__PURE__ */ r.createElement(Sn, null));
2163
+ }, Ln = y(kn)`
2193
2164
  svg circle {
2194
2165
  stroke: #ffffff;
2195
2166
  }
2196
- `, $n = C.img`
2167
+ `, Mn = y.img`
2197
2168
  transform: none;
2198
2169
 
2199
2170
  ${(e) => e.imageSize && L`
@@ -2204,29 +2175,29 @@ const Qt = 300, D1 = ({
2204
2175
  vertical-align: middle;
2205
2176
  position: relative;
2206
2177
  ${(e) => !e.loaded && "display:none;"}
2207
- `, Ln = C.div`
2178
+ `, Sn = y.div`
2208
2179
  height: 100%;
2209
2180
  display: inline-block;
2210
2181
  vertical-align: middle;
2211
- `, Mn = () => {
2182
+ `, Rn = () => {
2212
2183
  const e = R(), [t, n] = k(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2213
2184
  n(!1);
2214
2185
  }, 3e3), () => {
2215
2186
  e.current && clearTimeout(e.current);
2216
2187
  }), [t, e]);
2217
2188
  return [t, o];
2218
- }, Sn = ({ attrs: e, htmlBody: t }) => {
2189
+ }, Hn = ({ attrs: e, htmlBody: t }) => {
2219
2190
  var Se;
2220
- const n = j("Escape"), o = j("ArrowLeft"), i = j("ArrowRight"), [s, a] = k(1), [l, u] = k({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = k(!1), [p, d] = Mn(), [f, g] = k(null), [E, v] = k(null), b = R(null), y = R(null), B = R(null), T = R(null);
2221
- w(() => {
2222
- n && g(null);
2223
- }, [n]), w(() => {
2191
+ const n = X("Escape"), o = X("ArrowLeft"), i = X("ArrowRight"), [s, a] = k(1), [l, u] = k({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = k(!1), [g, d] = Rn(), [f, C] = k(null), [E, b] = k(null), w = R(null), p = R(null), B = R(null), T = R(null);
2192
+ v(() => {
2193
+ n && C(null);
2194
+ }, [n]), v(() => {
2224
2195
  a(1);
2225
- }, [f]), w(() => {
2196
+ }, [f]), v(() => {
2226
2197
  var F, A;
2227
- if (f === null || y.current === null)
2198
+ if (f === null || p.current === null)
2228
2199
  return;
2229
- const x = y.current.firstElementChild, D = (F = B.current) == null ? void 0 : F.querySelector(".nav-left"), W = (A = B.current) == null ? void 0 : A.querySelector(".nav-right");
2200
+ const x = p.current.firstElementChild, D = (F = B.current) == null ? void 0 : F.querySelector(".nav-left"), W = (A = B.current) == null ? void 0 : A.querySelector(".nav-right");
2230
2201
  if (E === "Right")
2231
2202
  te && W ? W.focus() : ee && D && D.focus();
2232
2203
  else if (E === "Left")
@@ -2236,7 +2207,7 @@ const Qt = 300, D1 = ({
2236
2207
  return;
2237
2208
  x.focus();
2238
2209
  }
2239
- }, [f, y, B, E]), w(() => {
2210
+ }, [f, p, B, E]), v(() => {
2240
2211
  if (o) {
2241
2212
  if (ee)
2242
2213
  return Le();
@@ -2248,42 +2219,42 @@ const Qt = 300, D1 = ({
2248
2219
  x.innerHTML = t || "";
2249
2220
  const D = x.getElementsByTagName("img");
2250
2221
  return Array.from(D).reduce((F, A) => {
2251
- const Re = A.getAttribute("src"), it = A.height || Number.parseInt(A.style.height, 10), st = A.width || Number.parseInt(A.style.width, 10);
2222
+ const Re = A.getAttribute("src"), ot = A.height || Number.parseInt(A.style.height, 10), it = A.width || Number.parseInt(A.style.width, 10);
2252
2223
  if (Re) {
2253
- const at = {
2224
+ const st = {
2254
2225
  src: Re,
2255
- originalWidth: st,
2256
- originalHeight: it
2226
+ originalWidth: it,
2227
+ originalHeight: ot
2257
2228
  };
2258
- F.push(at);
2229
+ F.push(st);
2259
2230
  }
2260
2231
  return F;
2261
2232
  }, []);
2262
- }, [t]), Y = H(() => {
2233
+ }, [t]), j = H(() => {
2263
2234
  const { src: x } = e;
2264
2235
  if (x) {
2265
2236
  const D = z.findIndex((W, F) => W.src === x);
2266
- g(D);
2237
+ C(D);
2267
2238
  }
2268
- }, [z, e]), Je = H((x) => {
2269
- g(null);
2239
+ }, [z, e]), Ge = H((x) => {
2240
+ C(null);
2270
2241
  }, []), $e = H(
2271
2242
  (x) => {
2272
2243
  a(x ? s + s * 0.25 : s - s * 0.25);
2273
2244
  },
2274
2245
  [a, s]
2275
- ), et = H(() => {
2246
+ ), Je = H(() => {
2276
2247
  if (f !== null) {
2277
2248
  const { src: x } = z[f];
2278
2249
  x && window.open(x, "_self");
2279
2250
  }
2280
- }, [z, f]), tt = H(
2251
+ }, [z, f]), et = H(
2281
2252
  (x) => {
2282
2253
  const D = T.current;
2283
2254
  D && (u({ top: D.scrollTop, left: D.scrollLeft, x: x.clientX, y: x.clientY }), m(!0));
2284
2255
  },
2285
2256
  [T]
2286
- ), nt = H(
2257
+ ), tt = H(
2287
2258
  (x) => {
2288
2259
  const D = T.current;
2289
2260
  if (D && c) {
@@ -2292,9 +2263,9 @@ const Qt = 300, D1 = ({
2292
2263
  }
2293
2264
  },
2294
2265
  [c, l]
2295
- ), rt = (x) => {
2266
+ ), nt = (x) => {
2296
2267
  x.preventDefault(), m(!1);
2297
- }, ot = ie(() => {
2268
+ }, rt = ie(() => {
2298
2269
  if (T.current) {
2299
2270
  const x = T.current.getElementsByTagName("img");
2300
2271
  if (x && x.length) {
@@ -2304,53 +2275,53 @@ const Qt = 300, D1 = ({
2304
2275
  }
2305
2276
  return !1;
2306
2277
  }, [T, s]), Le = () => {
2307
- f !== null && (v("Left"), g(f - 1));
2278
+ f !== null && (b("Left"), C(f - 1));
2308
2279
  }, Me = () => {
2309
- f !== null && (v("Right"), g(f + 1));
2280
+ f !== null && (b("Right"), C(f + 1));
2310
2281
  }, ee = f !== null && f > 0 && z.length > 1, te = f !== null && z.length - 1 > f;
2311
2282
  return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
2312
2283
  visible: f !== null,
2313
- onClick: Je
2314
- }, /* @__PURE__ */ r.createElement(Vn, {
2284
+ onClick: Ge
2285
+ }, /* @__PURE__ */ r.createElement(Wn, {
2315
2286
  onMouseDown: () => d(),
2316
2287
  onMouseMove: () => d(),
2317
2288
  onTouchStart: () => d(),
2318
2289
  onKeyDown: () => d()
2319
- }, /* @__PURE__ */ r.createElement(Zn, {
2320
- show: p.toString()
2321
- }, /* @__PURE__ */ r.createElement(Dn, {
2322
- ref: y,
2290
+ }, /* @__PURE__ */ r.createElement(In, {
2291
+ show: g.toString()
2292
+ }, /* @__PURE__ */ r.createElement(Tn, {
2293
+ ref: p,
2323
2294
  buttons: [
2324
2295
  {
2325
2296
  id: "download",
2326
- onClick: et,
2297
+ onClick: Je,
2327
2298
  icon: "download",
2328
2299
  ariaLabel: "Download image"
2329
2300
  },
2330
2301
  {
2331
2302
  id: "lightbox-close",
2332
- onClick: () => g(null),
2303
+ onClick: () => C(null),
2333
2304
  icon: "lightbox-close",
2334
2305
  ariaLabel: "Close"
2335
2306
  }
2336
2307
  ]
2337
- })), /* @__PURE__ */ r.createElement(In, {
2308
+ })), /* @__PURE__ */ r.createElement(Fn, {
2338
2309
  scrolling: c.toString(),
2339
- isDraggable: ot.toString(),
2310
+ isDraggable: rt.toString(),
2340
2311
  ref: T,
2341
- onMouseMove: nt,
2342
- onMouseDown: tt,
2343
- onMouseUp: rt
2344
- }, f !== null && /* @__PURE__ */ r.createElement(xn, $(h({
2312
+ onMouseMove: tt,
2313
+ onMouseDown: et,
2314
+ onMouseUp: nt
2315
+ }, f !== null && /* @__PURE__ */ r.createElement($n, $(h({
2345
2316
  changeZoom: (x) => {
2346
2317
  a(x);
2347
2318
  },
2348
2319
  zoomState: s
2349
2320
  }, e), {
2350
2321
  image: z[f]
2351
- }))), /* @__PURE__ */ r.createElement(Tn, {
2322
+ }))), /* @__PURE__ */ r.createElement(Vn, {
2352
2323
  ref: B,
2353
- show: p.toString(),
2324
+ show: g.toString(),
2354
2325
  buttons: [
2355
2326
  {
2356
2327
  id: "previous",
@@ -2371,9 +2342,9 @@ const Qt = 300, D1 = ({
2371
2342
  ariaLabel: "Navigate to next image"
2372
2343
  }
2373
2344
  ]
2374
- }), /* @__PURE__ */ r.createElement(Wn, {
2375
- show: p.toString()
2376
- }, /* @__PURE__ */ r.createElement(Bn, {
2345
+ }), /* @__PURE__ */ r.createElement(On, {
2346
+ show: g.toString()
2347
+ }, /* @__PURE__ */ r.createElement(Nn, {
2377
2348
  buttons: [
2378
2349
  {
2379
2350
  id: "zoom-out",
@@ -2388,26 +2359,26 @@ const Qt = 300, D1 = ({
2388
2359
  ariaLabel: "Zoom in"
2389
2360
  }
2390
2361
  ]
2391
- }), /* @__PURE__ */ r.createElement(Nn, {
2362
+ }), /* @__PURE__ */ r.createElement(Zn, {
2392
2363
  variant: "span"
2393
- }, Math.trunc(s * 100), "%")))), /* @__PURE__ */ r.createElement(Rn, {
2394
- ref: b,
2395
- onClick: Y,
2364
+ }, Math.trunc(s * 100), "%")))), /* @__PURE__ */ r.createElement(zn, {
2365
+ ref: w,
2366
+ onClick: j,
2396
2367
  onKeyDown: (x) => {
2397
- x.key === "Enter" && (x.preventDefault(), Y());
2368
+ x.key === "Enter" && (x.preventDefault(), j());
2398
2369
  },
2399
2370
  tabIndex: 0
2400
- }, /* @__PURE__ */ r.createElement(On, $(h({}, e), {
2371
+ }, /* @__PURE__ */ r.createElement(An, $(h({}, e), {
2401
2372
  alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || ""
2402
2373
  }))));
2403
2374
  }, ke = N(
2404
- ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(Hn, {
2375
+ ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(Dn, {
2405
2376
  ref: o,
2406
2377
  show: e,
2407
2378
  className: M("humany-button-set", n)
2408
2379
  }, t.map(
2409
- ({ id: i, circle: s = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(zn, {
2410
- key: i + p.toString(),
2380
+ ({ id: i, circle: s = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, g) => /* @__PURE__ */ r.createElement(Bn, {
2381
+ key: i + g.toString(),
2411
2382
  circle: s.toString(),
2412
2383
  onClick: u,
2413
2384
  tabIndex: a ? void 0 : -1,
@@ -2420,25 +2391,25 @@ const Qt = 300, D1 = ({
2420
2391
  symbol: { type: "Svg", content: c }
2421
2392
  }))
2422
2393
  ))
2423
- ), Qe = C.div`
2394
+ ), qe = y.div`
2424
2395
  transition: opacity 0.3s ease 0s;
2425
2396
  z-index: 5;
2426
2397
  ${(e) => e.show === "true" ? "opacity: 1;" : L`
2427
2398
  opacity: 0;
2428
2399
  pointer-events: none;
2429
2400
  `}
2430
- `, Rn = C(xe)`
2401
+ `, zn = y(xe)`
2431
2402
  display: inline-block !important;
2432
- `, Hn = C(Qe)`
2403
+ `, Dn = y(qe)`
2433
2404
  position: fixed;
2434
2405
  display: flex;
2435
2406
  gap: ${(e) => {
2436
2407
  var t;
2437
2408
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2438
2409
  }};
2439
- `, ge = "39px", zn = C(ae)`
2440
- width: ${ge};
2441
- height: ${ge};
2410
+ `, pe = "39px", Bn = y(ae)`
2411
+ width: ${pe};
2412
+ height: ${pe};
2442
2413
  display: flex;
2443
2414
  justify-content: center;
2444
2415
  align-items: center;
@@ -2464,7 +2435,7 @@ const Qt = 300, D1 = ({
2464
2435
  }
2465
2436
 
2466
2437
  &:focus-visible {
2467
- ${P}
2438
+ ${P(e)}
2468
2439
  outline-color: #ffffff;
2469
2440
  background-color: transparent;
2470
2441
 
@@ -2486,7 +2457,7 @@ const Qt = 300, D1 = ({
2486
2457
  outline-color: #ffffff;
2487
2458
  }
2488
2459
  &:focus-visible {
2489
- ${P}
2460
+ ${P(e)}
2490
2461
  }
2491
2462
  `;
2492
2463
  }}
@@ -2501,7 +2472,7 @@ const Qt = 300, D1 = ({
2501
2472
  opacity: 0;
2502
2473
  pointer-events: none;
2503
2474
  `}
2504
- `, Dn = C(ke)`
2475
+ `, Tn = y(ke)`
2505
2476
  top: ${(e) => {
2506
2477
  var t;
2507
2478
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2510,7 +2481,7 @@ const Qt = 300, D1 = ({
2510
2481
  var t;
2511
2482
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2512
2483
  }};
2513
- `, Bn = C(ke)`
2484
+ `, Nn = y(ke)`
2514
2485
  bottom: ${(e) => {
2515
2486
  var t;
2516
2487
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2518,11 +2489,11 @@ const Qt = 300, D1 = ({
2518
2489
  width: 100%;
2519
2490
  align-items: center;
2520
2491
  justify-content: center;
2521
- `, Tn = C(ke)`
2492
+ `, Vn = y(ke)`
2522
2493
  display: block;
2523
2494
  button {
2524
2495
  position: fixed;
2525
- top: calc(50% - calc(${ge} / 2));
2496
+ top: calc(50% - calc(${pe} / 2));
2526
2497
  &:first-child {
2527
2498
  left: ${(e) => {
2528
2499
  var t;
@@ -2536,7 +2507,7 @@ const Qt = 300, D1 = ({
2536
2507
  }};
2537
2508
  }
2538
2509
  }
2539
- `, Nn = C(U)`
2510
+ `, Zn = y(q)`
2540
2511
  position: fixed;
2541
2512
  bottom: ${(e) => {
2542
2513
  var t;
@@ -2555,21 +2526,21 @@ const Qt = 300, D1 = ({
2555
2526
  var t;
2556
2527
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2557
2528
  }};
2558
- `, Ge = C(Qe)`
2529
+ `, Qe = y(qe)`
2559
2530
  position: absolute;
2560
2531
  width: 100vw;
2561
2532
  height: 88px;
2562
2533
  left: 0px;
2563
2534
  z-index: 5;
2564
- `, Vn = C.div`
2535
+ `, Wn = y.div`
2565
2536
  width: 100%;
2566
- `, Zn = C(Ge)`
2537
+ `, In = y(Qe)`
2567
2538
  top: 0px;
2568
2539
  background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2569
- `, Wn = C(Ge)`
2540
+ `, On = y(Qe)`
2570
2541
  bottom: 0px;
2571
2542
  background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2572
- `, In = C.div`
2543
+ `, Fn = y.div`
2573
2544
  width: 100%;
2574
2545
  height: 100vh;
2575
2546
  overflow: auto;
@@ -2578,23 +2549,23 @@ const Qt = 300, D1 = ({
2578
2549
  white-space: nowrap;
2579
2550
  justify-content: center;
2580
2551
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2581
- `, On = C.img`
2552
+ `, An = y.img`
2582
2553
  cursor: pointer;
2583
- `, Fn = N(
2554
+ `, Pn = N(
2584
2555
  (l, a) => {
2585
2556
  var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2586
2557
  }, close: i = !1 } = u, s = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2587
- const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), g = R(q()), E = j("Escape");
2588
- w(() => {
2558
+ const [c, m] = Ye(), [g, d] = Ke(!0), f = R(), C = R(Q()), E = X("Escape");
2559
+ v(() => {
2589
2560
  (E || i) && m(!1);
2590
- }, [E, i]), w(() => {
2561
+ }, [E, i]), v(() => {
2591
2562
  c && f.current && f.current.focus();
2592
2563
  }, [c, f.current]), ce("router:changed", () => {
2593
2564
  m(!1);
2594
2565
  });
2595
- const v = H(
2596
- (y) => {
2597
- m(!1), o(y);
2566
+ const b = H(
2567
+ (p) => {
2568
+ m(!1), o(p);
2598
2569
  },
2599
2570
  [o, m]
2600
2571
  );
@@ -2603,19 +2574,19 @@ const Qt = 300, D1 = ({
2603
2574
  m(!1);
2604
2575
  }
2605
2576
  }));
2606
- const b = H(() => ve(g.current, () => {
2577
+ const w = H(() => ve(C.current, () => {
2607
2578
  m(!1);
2608
- }), [g.current]);
2579
+ }), [C.current]);
2609
2580
  return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
2610
2581
  visible: c,
2611
- onClick: v
2612
- }, /* @__PURE__ */ r.createElement(An, $(h({
2582
+ onClick: b
2583
+ }, /* @__PURE__ */ r.createElement(Kn, $(h({
2613
2584
  className: M(
2614
2585
  e,
2615
2586
  "humany-modal",
2616
- `humany-modal-${g.current}`
2587
+ `humany-modal-${C.current}`
2617
2588
  ),
2618
- css: p,
2589
+ css: g,
2619
2590
  tabIndex: -1
2620
2591
  }, s), {
2621
2592
  ref: d
@@ -2626,12 +2597,12 @@ const Qt = 300, D1 = ({
2626
2597
  }, /* @__PURE__ */ r.createElement(J, {
2627
2598
  symbol: { type: "Svg", content: "close" }
2628
2599
  })), t)), r.cloneElement(n, {
2629
- onClick: (y) => {
2630
- m(), b();
2600
+ onClick: (p) => {
2601
+ m(), w();
2631
2602
  }
2632
2603
  }));
2633
2604
  }
2634
- ), An = C.div`
2605
+ ), Kn = y.div`
2635
2606
  font-family: ${(e) => {
2636
2607
  var t;
2637
2608
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2647,10 +2618,10 @@ const Qt = 300, D1 = ({
2647
2618
  var t;
2648
2619
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2649
2620
  }};
2650
- ${je}
2621
+ ${(e) => je(e)}
2651
2622
  ${(e) => e.css && e.css}
2652
2623
  outline: none;
2653
- `, Z1 = ({
2624
+ `, Fr = ({
2654
2625
  className: e,
2655
2626
  trigger: t,
2656
2627
  header: n = "",
@@ -2663,23 +2634,23 @@ const Qt = 300, D1 = ({
2663
2634
  confirmLabel: l = ""
2664
2635
  }) => {
2665
2636
  const u = R(), c = H(() => {
2666
- var p;
2667
- i(), (p = u == null ? void 0 : u.current) == null || p.close();
2637
+ var g;
2638
+ i(), (g = u == null ? void 0 : u.current) == null || g.close();
2668
2639
  }, [i]), m = H(() => {
2669
- var p;
2670
- s(), (p = u == null ? void 0 : u.current) == null || p.close();
2640
+ var g;
2641
+ s(), (g = u == null ? void 0 : u.current) == null || g.close();
2671
2642
  }, [s]);
2672
- return /* @__PURE__ */ r.createElement(Pn, {
2643
+ return /* @__PURE__ */ r.createElement(Yn, {
2673
2644
  className: e,
2674
2645
  trigger: t,
2675
2646
  ref: u,
2676
2647
  onOverlayClick: c
2677
- }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Kn, {
2648
+ }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(jn, {
2678
2649
  onClick: m
2679
- }, l), a && /* @__PURE__ */ r.createElement(Yn, {
2650
+ }, l), a && /* @__PURE__ */ r.createElement(Xn, {
2680
2651
  onClick: c
2681
2652
  }, a));
2682
- }, Pn = C(Fn)`
2653
+ }, Yn = y(Pn)`
2683
2654
  display: block;
2684
2655
 
2685
2656
  span {
@@ -2697,7 +2668,7 @@ const Qt = 300, D1 = ({
2697
2668
  }};
2698
2669
  }
2699
2670
  }
2700
- `, Kn = C(ae)`
2671
+ `, jn = y(ae)`
2701
2672
  display: inline-block;
2702
2673
  min-width: 50px;
2703
2674
  ${(e) => {
@@ -2727,7 +2698,7 @@ const Qt = 300, D1 = ({
2727
2698
  &:focus-visible {
2728
2699
  ${P}
2729
2700
  }
2730
- `, Yn = C(ae)`
2701
+ `, Xn = y(ae)`
2731
2702
  display: inline-block;
2732
2703
  min-width: 50px;
2733
2704
  ${(e) => {
@@ -2748,48 +2719,48 @@ const Qt = 300, D1 = ({
2748
2719
  &:focus-visible {
2749
2720
  ${P};
2750
2721
  }
2751
- `, W1 = ({
2722
+ `, Ar = ({
2752
2723
  header: e = "",
2753
2724
  link: t = "",
2754
2725
  suggestionHeader: n = "",
2755
2726
  suggestion: o = ""
2756
- }) => /* @__PURE__ */ r.createElement(jn, null, /* @__PURE__ */ r.createElement(Xn, null, /* @__PURE__ */ r.createElement(U, {
2727
+ }) => /* @__PURE__ */ r.createElement(_n, null, /* @__PURE__ */ r.createElement(Un, null, /* @__PURE__ */ r.createElement(q, {
2757
2728
  variant: "h2"
2758
- }, "404")), /* @__PURE__ */ r.createElement(_n, null, /* @__PURE__ */ r.createElement(U, {
2729
+ }, "404")), /* @__PURE__ */ r.createElement(qn, null, /* @__PURE__ */ r.createElement(q, {
2759
2730
  variant: "h3"
2760
- }, e), /* @__PURE__ */ r.createElement(qn, {
2731
+ }, e), /* @__PURE__ */ r.createElement(Gn, {
2761
2732
  routeName: "index",
2762
2733
  "aria-label": t,
2763
2734
  text: t
2764
- })), /* @__PURE__ */ r.createElement(Un, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), jn = C.div`
2735
+ })), /* @__PURE__ */ r.createElement(Qn, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), _n = y.div`
2765
2736
  display: flex;
2766
2737
  flex-wrap: wrap;
2767
- `, Xn = C.div`
2768
- ${se(
2738
+ `, Un = y.div`
2739
+ ${(e) => se(e)(
2769
2740
  "h2",
2770
2741
  L`
2771
- padding: 0;
2772
- margin: 0;
2773
- color: gray;
2774
- font-size: 7em;
2775
- `
2742
+ padding: 0;
2743
+ margin: 0;
2744
+ color: gray;
2745
+ font-size: 7em;
2746
+ `
2776
2747
  )}
2777
- `, _n = C.div`
2748
+ `, qn = y.div`
2778
2749
  margin-left: ${(e) => {
2779
2750
  var t;
2780
2751
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2781
2752
  }};
2782
2753
 
2783
- ${se(
2784
- "h3",
2785
- L`
2786
- text-transform: uppercase;
2787
- font-size: ${(e) => {
2788
- var t;
2789
- return (t = e.theme.fonts) == null ? void 0 : t.normal;
2790
- }};
2791
- `
2792
- )}
2754
+ ${(e) => {
2755
+ var t;
2756
+ return se(e)(
2757
+ "h3",
2758
+ L`
2759
+ text-transform: uppercase;
2760
+ font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
2761
+ `
2762
+ );
2763
+ }}
2793
2764
 
2794
2765
  a {
2795
2766
  color: ${(e) => {
@@ -2801,7 +2772,7 @@ const Qt = 300, D1 = ({
2801
2772
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2802
2773
  }};
2803
2774
  }
2804
- `, Un = C.div`
2775
+ `, Qn = y.div`
2805
2776
  margin-top: ${(e) => {
2806
2777
  var t;
2807
2778
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2812,7 +2783,7 @@ const Qt = 300, D1 = ({
2812
2783
  font-weight: bold;
2813
2784
  }
2814
2785
  `;
2815
- class I1 extends dt {
2786
+ class Pr extends mt {
2816
2787
  constructor() {
2817
2788
  super(...arguments);
2818
2789
  re(this, "node");
@@ -2851,7 +2822,7 @@ class I1 extends dt {
2851
2822
  }) : null;
2852
2823
  }
2853
2824
  }
2854
- const qn = N(
2825
+ const Gn = N(
2855
2826
  (a, s) => {
2856
2827
  var l = a, { className: e, description: t, text: n, children: o } = l, i = S(l, ["className", "description", "text", "children"]);
2857
2828
  return /* @__PURE__ */ r.createElement(xe, $(h({
@@ -2864,48 +2835,48 @@ const qn = N(
2864
2835
  }) : null);
2865
2836
  }
2866
2837
  );
2867
- var Qn = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(Qn || {});
2868
- const O1 = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
2838
+ var Jn = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(Jn || {});
2839
+ const Kr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
2869
2840
  className: M(e, "humany-timestamp")
2870
- }, Gn(n, t)), Ze = (e) => `0${e}`.slice(-2);
2871
- function Gn(e, t) {
2841
+ }, er(n, t)), Ze = (e) => `0${e}`.slice(-2);
2842
+ function er(e, t) {
2872
2843
  const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), i = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${s}-${Ze(a)}-${Ze(l)}`;
2873
2844
  return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? i : `${u} ${i}`;
2874
2845
  }
2875
- const F1 = (s) => {
2846
+ const Yr = (s) => {
2876
2847
  var a = s, { className: e, children: t, content: n, sticky: o = !1 } = a, i = S(a, ["className", "children", "content", "sticky"]);
2877
- const [l, u] = k(!1), c = R(q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), g = (v) => {
2878
- const { target: b } = v;
2879
- !m.current || !b || m.current !== b && !m.current.contains(b) && u(!1);
2848
+ const [l, u] = k(!1), c = R(Q()), m = R(), [{ x: g, y: d }, f] = Xe(l, c.current, m.current), C = (b) => {
2849
+ const { target: w } = b;
2850
+ !m.current || !w || m.current !== w && !m.current.contains(w) && u(!1);
2880
2851
  };
2881
- w(() => {
2852
+ v(() => {
2882
2853
  if (!!o)
2883
- return window.addEventListener("click", g), () => {
2884
- window.removeEventListener("click", g);
2854
+ return window.addEventListener("click", C), () => {
2855
+ window.removeEventListener("click", C);
2885
2856
  };
2886
2857
  }, [l, o]);
2887
2858
  const E = H(
2888
- (v, b) => {
2889
- f(v, m.current), u(b);
2859
+ (b, w) => {
2860
+ f(b, m.current), u(w);
2890
2861
  },
2891
2862
  [f, u]
2892
2863
  );
2893
- return /* @__PURE__ */ r.createElement(Jn, {
2864
+ return /* @__PURE__ */ r.createElement(tr, {
2894
2865
  ref: m,
2895
2866
  className: "humany-tooltip-trigger",
2896
- onMouseEnter: o ? void 0 : (v) => E(v, !0),
2897
- onMouseLeave: o ? void 0 : (v) => E(v, !1),
2898
- onTouchEnd: o ? (v) => E(v, !l) : void 0,
2899
- onClick: o ? (v) => E(v, !l) : void 0
2900
- }, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(e1, h({
2867
+ onMouseEnter: o ? void 0 : (b) => E(b, !0),
2868
+ onMouseLeave: o ? void 0 : (b) => E(b, !1),
2869
+ onTouchEnd: o ? (b) => E(b, !l) : void 0,
2870
+ onClick: o ? (b) => E(b, !l) : void 0
2871
+ }, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(nr, h({
2901
2872
  className: M(e, "humany-tooltip-container"),
2902
- x: p,
2873
+ x: g,
2903
2874
  y: d
2904
2875
  }, i), n)));
2905
- }, Jn = C.div`
2876
+ }, tr = y.div`
2906
2877
  display: flex;
2907
2878
  align-items: center;
2908
- `, e1 = C.div`
2879
+ `, nr = y.div`
2909
2880
  color: #ffffff;
2910
2881
  background: #161616;
2911
2882
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2931,14 +2902,17 @@ const F1 = (s) => {
2931
2902
 
2932
2903
  i,
2933
2904
  svg {
2934
- margin-right: ${(e) => e.theme.sizes.small};
2905
+ margin-right: ${(e) => {
2906
+ var t;
2907
+ return (t = e.theme.sizes) == null ? void 0 : t.small;
2908
+ }};
2935
2909
  }
2936
2910
 
2937
2911
  ${(e) => {
2938
2912
  let t = "";
2939
2913
  return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
2940
2914
  }};
2941
- `, A1 = (e) => {
2915
+ `, jr = (e) => {
2942
2916
  const {
2943
2917
  in: t,
2944
2918
  mountOnEnter: n = !0,
@@ -2963,12 +2937,12 @@ const F1 = (s) => {
2963
2937
  }
2964
2938
  };
2965
2939
  if (typeof a == "object") {
2966
- const { enter: p, exit: d } = a;
2940
+ const { enter: g, exit: d } = a;
2967
2941
  return {
2968
2942
  enter: {
2969
2943
  transitionKeys: (c = a.enter) == null ? void 0 : c.type,
2970
2944
  duration: i ? typeof i == "number" ? i : i.enter : 200,
2971
- easing: p.easing ? p.easing : "ease-in"
2945
+ easing: g.easing ? g.easing : "ease-in"
2972
2946
  },
2973
2947
  exit: {
2974
2948
  transitionKeys: (m = a.enter) == null ? void 0 : m.type,
@@ -2979,7 +2953,7 @@ const F1 = (s) => {
2979
2953
  }
2980
2954
  }
2981
2955
  })();
2982
- return /* @__PURE__ */ r.createElement(ht, {
2956
+ return /* @__PURE__ */ r.createElement(ft, {
2983
2957
  timeout: {
2984
2958
  enter: u && u.enter.duration || 0,
2985
2959
  exit: u && u.exit.duration || 0
@@ -2990,7 +2964,7 @@ const F1 = (s) => {
2990
2964
  unmountOnExit: o,
2991
2965
  onEnter: (c) => c.clientHeight
2992
2966
  }, (c) => s && s(c, u && he.compose(c, u)));
2993
- }, t1 = N(
2967
+ }, rr = N(
2994
2968
  (l, a) => {
2995
2969
  var u = l, { className: e, children: t, onClick: n = () => {
2996
2970
  }, widgetName: o, activationOptions: i } = u, s = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
@@ -2998,45 +2972,45 @@ const F1 = (s) => {
2998
2972
  const { implementation: f } = c.get("$widget");
2999
2973
  return f.widgets.get(o);
3000
2974
  };
3001
- w(() => {
2975
+ v(() => {
3002
2976
  const f = m();
3003
2977
  return f == null || f.activate(i).then(() => f.invoke("attach")), () => {
3004
2978
  f == null || f.deactivate();
3005
2979
  };
3006
2980
  }, [o]);
3007
- const p = (f) => {
3008
- const g = m(), E = f.currentTarget;
3009
- if (g) {
3010
- const v = () => {
3011
- g.invoke("renderState").then(
3012
- (b) => b === oe.open ? g.invoke("close") : g.invoke("open")
2981
+ const g = (f) => {
2982
+ const C = m(), E = f.currentTarget;
2983
+ if (C) {
2984
+ const b = () => {
2985
+ C.invoke("renderState").then(
2986
+ (w) => w === oe.open ? C.invoke("close") : C.invoke("open")
3013
2987
  ).then(() => {
3014
- g.events.subscribeOnce("widget:area-rendered", (b, y) => {
2988
+ C.events.subscribeOnce("widget:area-rendered", (w, p) => {
3015
2989
  c.get(
3016
2990
  "widgetDOMElement"
3017
- ) && g.events.dispatch("widget:modal-opened", {
3018
- name: g.name,
2991
+ ) && C.events.dispatch("widget:modal-opened", {
2992
+ name: C.name,
3019
2993
  ref: E
3020
2994
  });
3021
2995
  });
3022
2996
  });
3023
2997
  };
3024
- g.state === gt.Deactivated ? g.activate(i).then(() => g.invoke("attach")).then(v) : v();
2998
+ C.state === gt.Deactivated ? C.activate(i).then(() => C.invoke("attach")).then(b) : b();
3025
2999
  }
3026
3000
  }, d = (f) => {
3027
- f.key === "Enter" && (f.preventDefault(), p(f));
3001
+ f.key === "Enter" && (f.preventDefault(), g(f));
3028
3002
  };
3029
3003
  return /* @__PURE__ */ r.createElement(xe, $(h({
3030
3004
  className: M(e, "humany-widget-link"),
3031
3005
  onKeyDown: d,
3032
3006
  onClick: (f) => {
3033
- n(f), p(f);
3007
+ n(f), g(f);
3034
3008
  }
3035
3009
  }, s), {
3036
3010
  ref: a
3037
3011
  }), t);
3038
3012
  }
3039
- ), P1 = N(
3013
+ ), Xr = N(
3040
3014
  ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3041
3015
  const i = Z(), s = ie(() => {
3042
3016
  if (!i)
@@ -3047,12 +3021,12 @@ const F1 = (s) => {
3047
3021
  return s ? /* @__PURE__ */ r.createElement(G, {
3048
3022
  elementId: e,
3049
3023
  parent: s
3050
- }, /* @__PURE__ */ r.createElement(n1, {
3024
+ }, /* @__PURE__ */ r.createElement(or, {
3051
3025
  className: M("humany-widget-overlay-outlet", t),
3052
3026
  ref: o
3053
3027
  }, n)) : null;
3054
3028
  }
3055
- ), n1 = C.div`
3029
+ ), or = y.div`
3056
3030
  background-color: #ffffff;
3057
3031
  position: absolute;
3058
3032
  top: 0;
@@ -3062,99 +3036,101 @@ const F1 = (s) => {
3062
3036
  z-index: 10;
3063
3037
  width: 100%;
3064
3038
  height: 100%;
3065
- `, K1 = (e, t, n, o, i) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3039
+ `, _r = (e, t, n, o, i) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3066
3040
  t,
3067
- ft(() => n)
3068
- ), wt(e, t, o || (() => {
3041
+ dt(() => n)
3042
+ ), vt(e, t, o || (() => {
3069
3043
  }), t, i)));
3070
3044
  export {
3071
- Nt as AnchorLink,
3045
+ Tt as AnchorLink,
3072
3046
  ae as Button,
3073
- p1 as Checkbox,
3074
- Wt as ColumnContext,
3047
+ yr as Checkbox,
3048
+ Zt as ColumnContext,
3075
3049
  Fe as ComponentNodeContext,
3076
- It as ComponentPropertyContext,
3077
- Z1 as Confirm,
3078
- Zt as ContainerContext,
3079
- Qn as DateFormats,
3080
- D1 as Drawer,
3050
+ Wt as ComponentPropertyContext,
3051
+ Fr as Confirm,
3052
+ Vt as ContainerContext,
3053
+ Ot as ConversationContext,
3054
+ Jn as DateFormats,
3055
+ Vr as Drawer,
3081
3056
  qt as DrawerAnimationType,
3082
- B1 as Dropdown,
3057
+ Zr as Dropdown,
3083
3058
  sn as Empty,
3084
- T1 as Grid,
3059
+ Wr as Grid,
3085
3060
  _e as Html,
3086
3061
  ln as Icon,
3087
- N1 as Input,
3062
+ Ir as Input,
3088
3063
  dn as ItemList,
3089
- V1 as ItemTree,
3090
- Sn as Lightbox,
3064
+ Or as ItemTree,
3065
+ Hn as Lightbox,
3091
3066
  xe as Link,
3092
3067
  un as List,
3093
- Fn as Modal,
3094
- W1 as NotFound,
3068
+ Pn as Modal,
3069
+ Ar as NotFound,
3095
3070
  Ue as Overlay,
3096
3071
  mn as Paragraph,
3097
3072
  G as Portal,
3098
3073
  fn as RouteLink,
3099
- Ot as RoutingContext,
3074
+ It as RoutingContext,
3100
3075
  Ve as StyledText,
3101
3076
  J as SymbolBadge,
3102
- I1 as TabStop,
3077
+ Pr as TabStop,
3103
3078
  we as Text,
3104
- qn as TextLink,
3105
- O1 as Timestamp,
3106
- F1 as Tooltip,
3107
- A1 as TransitionComponent,
3108
- U as Typography,
3109
- t1 as WidgetLink,
3110
- P1 as WidgetOverlayOutlet,
3079
+ Gn as TextLink,
3080
+ Kr as Timestamp,
3081
+ Yr as Tooltip,
3082
+ jr as TransitionComponent,
3083
+ q as Typography,
3084
+ rr as WidgetLink,
3085
+ Xr as WidgetOverlayOutlet,
3111
3086
  P as borderTabStyle,
3112
3087
  Ne as browser,
3113
3088
  Kt as buttonCss,
3114
3089
  je as contentBox,
3115
3090
  V as convertToStringAttributes,
3116
- h1 as createEmptyComponent,
3117
- K1 as createReactComponent,
3118
- Tt as defaultRenderInstructions,
3119
- Rt as embeddedLinkMapper,
3091
+ Cr as createEmptyComponent,
3092
+ _r as createReactComponent,
3093
+ Bt as defaultRenderInstructions,
3094
+ St as embeddedLinkMapper,
3120
3095
  Oe as filterCssProps,
3121
- Ht as filterCssPropsStyle,
3122
- zt as genericHashLink,
3123
- z1 as genericHtml,
3096
+ Rt as filterCssPropsStyle,
3097
+ Ht as genericHashLink,
3098
+ Nr as genericHtml,
3124
3099
  se as headingElement,
3125
- Bt as imageLightboxRenderer,
3126
- S1 as invertedHoverButton,
3127
- H1 as itemList,
3100
+ Dt as imageLightboxRenderer,
3101
+ Dr as invertedHoverButton,
3102
+ Tr as itemList,
3128
3103
  Yt as linkTabStyle,
3129
3104
  jt as list,
3130
- R1 as paddedBorderTabStyle,
3131
- Dt as processHtmlString,
3105
+ Br as paddedBorderTabStyle,
3106
+ zt as processHtmlString,
3132
3107
  he as transitionComposer,
3133
- g1 as useAction,
3134
- C1 as useChildren,
3135
- y1 as useColumns,
3136
- b1 as useComponent,
3108
+ br as useAction,
3109
+ vr as useChildren,
3110
+ wr as useColumns,
3111
+ Er as useComponent,
3137
3112
  ye as useComponentDescriptor,
3138
3113
  be as useComponentNode,
3139
- _ as useComponentPlatform,
3114
+ U as useComponentPlatform,
3140
3115
  Z as useContainer,
3141
3116
  Ft as useContext,
3142
- v1 as useDispatch,
3117
+ xr as useConversation,
3118
+ kr as useDispatch,
3143
3119
  I as useEventListener,
3144
3120
  At as useEvents,
3145
3121
  O as useIsMounted,
3146
- w1 as useIsTabbing,
3147
- j as useKeyPress,
3148
- E1 as useLayout,
3122
+ $r as useIsTabbing,
3123
+ X as useKeyPress,
3124
+ Lr as useLayout,
3149
3125
  Ae as usePrevious,
3150
- x1 as useProperties,
3151
- k1 as useRenderState,
3152
- $1 as useRouteData,
3126
+ Mr as useProperties,
3127
+ Sr as useRenderState,
3128
+ Rr as useRouteData,
3153
3129
  Pe as useRouter,
3154
3130
  Ke as useScroll,
3155
- L1 as useSettings,
3131
+ Hr as useSettings,
3156
3132
  Ye as useToggle,
3157
- M1 as useTransitionEnd,
3133
+ zr as useTransitionEnd,
3158
3134
  ve as useUniqueMenu,
3159
3135
  ce as useWidgetEvent
3160
3136
  };