@telia-ace/widget-ui 1.0.28-experimental.14 → 1.0.28-experimental.16

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,25 +1,25 @@
1
- var vt = Object.defineProperty, wt = Object.defineProperties;
2
- var Et = Object.getOwnPropertyDescriptors;
3
- var se = Object.getOwnPropertySymbols;
4
- var Be = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable;
5
- var Ve = (e, t, n) => t in e ? vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, f = (e, t) => {
1
+ var Rt = Object.defineProperty, _t = Object.defineProperties;
2
+ var Tt = Object.getOwnPropertyDescriptors;
3
+ var ue = Object.getOwnPropertySymbols;
4
+ var Ae = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
5
+ var je = (e, t, n) => t in e ? Rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, f = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- Be.call(t, n) && Ve(e, n, t[n]);
8
- if (se)
9
- for (var n of se(t))
10
- Ie.call(t, n) && Ve(e, n, t[n]);
7
+ Ae.call(t, n) && je(e, n, t[n]);
8
+ if (ue)
9
+ for (var n of ue(t))
10
+ Fe.call(t, n) && je(e, n, t[n]);
11
11
  return e;
12
- }, k = (e, t) => wt(e, Et(t));
12
+ }, k = (e, t) => _t(e, Tt(t));
13
13
  var S = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
- Be.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
- if (e != null && se)
18
- for (var o of se(e))
19
- t.indexOf(o) < 0 && Ie.call(e, o) && (n[o] = e[o]);
16
+ Ae.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
+ if (e != null && ue)
18
+ for (var o of ue(e))
19
+ t.indexOf(o) < 0 && Fe.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- var ie = (e, t, n) => new Promise((o, r) => {
22
+ var de = (e, t, n) => new Promise((o, r) => {
23
23
  var i = (u) => {
24
24
  try {
25
25
  l(n.next(u));
@@ -35,22 +35,24 @@ var ie = (e, t, n) => new Promise((o, r) => {
35
35
  }, l = (u) => u.done ? o(u.value) : Promise.resolve(u.value).then(i, a);
36
36
  l((n = n.apply(e, t)).next());
37
37
  });
38
- import { Container as $t, WidgetState as xt } from "@webprovisions/platform";
39
- import s, { forwardRef as V, createContext as Q, useContext as U, useState as x, useEffect as w, useRef as R, useCallback as T, useImperativeHandle as we, useMemo as ce, Component as kt, lazy as Lt } from "react";
40
- import { ComponentPlatform as Ee, asDescriptor as Ke, createEventSubscriber as Mt, ComponentQuery as St, WidgetRenderState as ae, extendComponent as Ye } from "@telia-ace/widget-core";
41
- import { css as L, keyframes as Ue } from "@emotion/react";
42
- import y from "@emotion/styled";
43
- import { kebabCase as Rt, appendClassNames as M, uuid as ee, removeNullAndUndefinedValues as Pe, Logger as fe } from "@telia-ace/widget-utilities";
44
- import { LitElement as Tt, css as qe, html as Ne, unsafeCSS as Dt } from "lit";
45
- import { property as q, customElement as zt, state as Y } from "lit/decorators.js";
46
- import { unsafeStatic as _t, html as Ht } from "lit/static-html.js";
47
- import { CSSTransition as Xe, Transition as Vt } from "react-transition-group";
48
- import { createPortal as Bt } from "react-dom";
49
- import { HistoryMode as We, getSpecificWidgetPath as It } from "@telia-ace/widget-routing";
50
- import { Link as ge } from "react-router-dom";
51
- import Oe from "htmr";
52
- import { dedupeMixin as Qe } from "@open-wc/dedupe-mixin";
53
- const Pt = (e) => e === "entering" || e === "entered", Nt = (e) => e === "exiting" || e === "exited", K = {
38
+ import { Container as zt, WidgetState as Dt } from "@webprovisions/platform";
39
+ import s, { forwardRef as P, createContext as te, useContext as J, useState as E, useEffect as w, useRef as R, useCallback as _, useImperativeHandle as Me, useMemo as he, Component as Ht, lazy as Bt } from "react";
40
+ import { ComponentPlatform as Se, asDescriptor as Je, createEventSubscriber as Pt, ComponentQuery as Vt, WidgetRenderState as me, extendComponent as et } from "@telia-ace/widget-core";
41
+ import { css as L, keyframes as tt } from "@emotion/react";
42
+ import C from "@emotion/styled";
43
+ import { kebabCase as Nt, appendClassNames as M, uuid as se, removeNullAndUndefinedValues as Ke, Logger as we } from "@telia-ace/widget-utilities";
44
+ import { LitElement as fe, html as O, unsafeCSS as nt, css as ge, nothing as It } from "lit";
45
+ import { property as N, state as Y } from "lit/decorators.js";
46
+ import { html as ot, unsafeStatic as rt } from "lit/static-html.js";
47
+ import { spread as B } from "@open-wc/lit-helpers";
48
+ import { styleMap as U } from "lit/directives/style-map.js";
49
+ import { CSSTransition as st, Transition as Ot } from "react-transition-group";
50
+ import { createPortal as Wt } from "react-dom";
51
+ import { HistoryMode as qe, getSpecificWidgetPath as Zt } from "@telia-ace/widget-routing";
52
+ import { Link as xe } from "react-router-dom";
53
+ import Ue from "htmr";
54
+ import { dedupeMixin as it } from "@open-wc/dedupe-mixin";
55
+ const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exiting" || e === "exited", G = {
54
56
  fade: {
55
57
  in: "opacity: 1;",
56
58
  out: "opacity: 0;"
@@ -75,29 +77,29 @@ const Pt = (e) => e === "entering" || e === "entered", Nt = (e) => e === "exitin
75
77
  in: "transform: scale(1);",
76
78
  out: "transform: scale(0);"
77
79
  }
78
- }, Wt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], Ce = {
80
+ }, Ft = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], $e = {
79
81
  compose: (e = "exited", t) => {
80
- const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i = Wt.indexOf(r[0]) > -1 ? "transform" : "opacity";
81
- if (Pt(e))
82
+ const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i = Ft.indexOf(r[0]) > -1 ? "transform" : "opacity";
83
+ if (jt(e))
82
84
  return r && r.length > 0 ? L`
83
- ${r && r.length > 0 && r.map((l) => K[l] ? K[l].in : "")}
85
+ ${r && r.length > 0 && r.map((l) => G[l] ? G[l].in : "")}
84
86
  transition: ${i} ${n.duration}ms ${n.easing};
85
87
  ` : "";
86
88
  const a = r && r.length > 0 && L`
87
- ${r.map((l) => K[l] ? K[l].out : "")}
89
+ ${r.map((l) => G[l] ? G[l].out : "")}
88
90
  `;
89
- if (Nt(e)) {
91
+ if (At(e)) {
90
92
  const l = o.transitionKeys.split(" ");
91
93
  return l && l.length > 0 && e === "exiting" ? L`
92
94
  ${a};
93
- ${l.map((u) => K[u] ? K[u].out : "")}
95
+ ${l.map((u) => G[u] ? G[u].out : "")}
94
96
  transition: ${i} ${o.duration}ms ${o.easing};
95
97
  ` : a;
96
98
  }
97
99
  },
98
100
  composeViewTransition: (e, t, n) => {
99
101
  if (t === "slide")
100
- return Ce.compose(e, {
102
+ return $e.compose(e, {
101
103
  enter: {
102
104
  transitionKeys: n === "forth" ? "slide-right" : "slide-left",
103
105
  duration: 500
@@ -108,7 +110,7 @@ const Pt = (e) => e === "entering" || e === "entered", Nt = (e) => e === "exitin
108
110
  }
109
111
  });
110
112
  if (t === "fade")
111
- return Ce.compose(e, {
113
+ return $e.compose(e, {
112
114
  enter: {
113
115
  transitionKeys: "fade",
114
116
  duration: 500
@@ -119,10 +121,10 @@ const Pt = (e) => e === "entering" || e === "entered", Nt = (e) => e === "exitin
119
121
  }
120
122
  });
121
123
  },
122
- get: (e) => K[e]
124
+ get: (e) => G[e]
123
125
  };
124
- var ye = /* @__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))(ye || {});
125
- const Ze = () => {
126
+ var Ee = /* @__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))(Ee || {});
127
+ const Ye = () => {
126
128
  const {
127
129
  opr: e,
128
130
  opera: t,
@@ -153,42 +155,42 @@ const Ze = () => {
153
155
  return "edge-chromium";
154
156
  if ((d || c) && !!u)
155
157
  return "blink";
156
- }, Ot = ["string", "number"], B = (e) => Object.keys(e).reduce((t, n) => {
158
+ }, Kt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
157
159
  const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
158
- if (Ot.indexOf(r) > -1) {
160
+ if (Kt.indexOf(r) > -1) {
159
161
  const i = n.substring(0, 5);
160
- i === "data-" || i === "aria-" ? t[Rt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
162
+ i === "data-" || i === "aria-" ? t[Nt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
161
163
  } else
162
164
  t[n] = o;
163
165
  return t;
164
- }, {}), Zt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ s.createElement(so, f({}, t)) : null, Yr = Zt, jt = (e) => new RegExp("^#", "i").test(e), At = (e) => (o) => {
166
+ }, {}), qt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ s.createElement(uo, f({}, t)) : null, as = qt, Ut = (e) => new RegExp("^#", "i").test(e), Yt = (e) => (o) => {
165
167
  var r = o, { children: t } = r, n = S(r, ["children"]);
166
168
  const {
167
169
  implementation: i,
168
170
  name: a
169
171
  } = e.get("$widget"), { href: l = "" } = n;
170
- if (jt(l))
171
- return /* @__PURE__ */ s.createElement(Jt, { smooth: !0, to: l }, t);
172
+ if (Ut(l))
173
+ return /* @__PURE__ */ s.createElement(rn, { smooth: !0, to: l }, t);
172
174
  const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
173
175
  if (m && m.length >= 4) {
174
176
  const p = m[4];
175
177
  if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
176
- return /* @__PURE__ */ s.createElement(gr, { widgetName: p }, t);
178
+ return /* @__PURE__ */ s.createElement(wr, { widgetName: p }, t);
177
179
  }
178
180
  return /* @__PURE__ */ s.createElement("a", f({}, n), t);
179
- }, Ft = At, Ge = (e) => {
181
+ }, Xt = Yt, at = (e) => {
180
182
  const t = {};
181
183
  return Object.keys(e).forEach((n) => {
182
184
  n.indexOf("css-") > -1 && (t[n] = e[n]);
183
185
  }), t;
184
- }, Kt = (e) => {
186
+ }, Qt = (e) => {
185
187
  let t = "";
186
- return Object.keys(Ge(e)).forEach((n) => {
188
+ return Object.keys(at(e)).forEach((n) => {
187
189
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
188
190
  }), L`
189
191
  ${t}
190
192
  `;
191
- }, Yt = Ge, Ut = (e, t) => {
193
+ }, Gt = at, Jt = (e, t) => {
192
194
  let n = "";
193
195
  const o = () => {
194
196
  n = "";
@@ -199,7 +201,7 @@ const Ze = () => {
199
201
  e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
200
202
  ), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
201
203
  return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ s.createElement(t, k(f({}, c), { onClick: i }), e.children);
202
- }, le = (e) => (t, n) => {
204
+ }, pe = (e) => (t, n) => {
203
205
  let o = t, r = "";
204
206
  if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
205
207
  o = t;
@@ -218,27 +220,27 @@ const Ze = () => {
218
220
  }
219
221
  `;
220
222
  };
221
- function qt(e, t) {
222
- return t ? Oe(e, t) : Oe(e);
223
+ function en(e, t) {
224
+ return t ? Ue(e, t) : Ue(e);
223
225
  }
224
- const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBody: e }), Qt = (e, t) => ({
226
+ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBody: e }), nn = (e, t) => ({
225
227
  transform: {
226
- a: Ft(e),
227
- img: Xt(t)
228
+ a: Xt(e),
229
+ img: tn(t)
228
230
  }
229
- }), Gt = (e) => Ut(e, "a"), Jt = Gt, de = V((r, o) => {
231
+ }), on = (e) => Jt(e, "a"), rn = on, ye = P((r, o) => {
230
232
  var i = r, { className: e, children: t } = i, n = S(i, ["className", "children"]);
231
233
  return /* @__PURE__ */ s.createElement(
232
- en,
234
+ sn,
233
235
  k(f({
234
236
  type: "button",
235
237
  className: M(e, "humany-button")
236
- }, B(n)), {
238
+ }, V(n)), {
237
239
  ref: o
238
240
  }),
239
241
  t
240
242
  );
241
- }), en = y.button`
243
+ }), sn = C.button`
242
244
  -webkit-appearance: button;
243
245
  text-transform: none;
244
246
  overflow: visible;
@@ -251,7 +253,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
251
253
  line-height: normal;
252
254
  margin: 0;
253
255
  padding: 0;
254
- `, tn = (r) => {
256
+ `, an = (r) => {
255
257
  var i = r, {
256
258
  onChange: e = () => {
257
259
  },
@@ -271,45 +273,45 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
271
273
  a.key === "Enter" && t(a);
272
274
  },
273
275
  onChange: (a) => e(a.target.value, a.currentTarget.checked)
274
- }, B(o))
276
+ }, V(o))
275
277
  );
276
- }, Ur = tn, nn = Q(new $t()), on = Q(1), Je = Q({
278
+ }, cs = an, cn = te(new zt()), ln = te(1), ct = te({
277
279
  id: "",
278
280
  type: "",
279
281
  name: "",
280
282
  branch: ""
281
- }), rn = Q({}), sn = Q(null), an = Q(null), cn = () => U(Je), $e = cn, ln = () => U(nn), I = ln, un = (e, t) => {
282
- const n = $e().id, o = I();
283
+ }), un = te({}), dn = te(null), mn = te(null), hn = () => J(ct), Re = hn, pn = () => J(cn), I = pn, fn = (e, t) => {
284
+ const n = Re().id, o = I();
283
285
  return (r, i) => {
284
286
  (t || o).getAsync("actionResolver").then((a) => {
285
287
  a.action(e || n, r, i);
286
288
  });
287
289
  };
288
- }, qr = un, dn = (e) => {
289
- const t = U(Je), n = G(), [o, r] = x();
290
+ }, ls = fn, gn = (e) => {
291
+ const t = J(ct), n = ne(), [o, r] = E();
290
292
  return w(() => {
291
293
  if ((e || t.id) && n) {
292
294
  const i = n.nodes.get(e || t.id);
293
295
  r(i);
294
296
  }
295
297
  }, [e, t.id, n]), o;
296
- }, xe = dn, mn = () => {
298
+ }, _e = gn, yn = () => {
297
299
  const e = R(!1);
298
300
  return w(() => (e.current = !0, () => {
299
301
  e.current = !1;
300
302
  }), []), e;
301
- }, Z = mn, hn = (e) => {
302
- const t = I(), [n, o] = x(null), r = Z();
303
+ }, F = yn, Cn = (e) => {
304
+ const t = I(), [n, o] = E(null), r = F();
303
305
  return w(() => {
304
- Ee.getInstance(e || t).then((i) => {
306
+ Se.getInstance(e || t).then((i) => {
305
307
  r.current && o(i);
306
308
  });
307
309
  }, [r]), n;
308
- }, G = hn, pn = () => {
309
- const e = xe(), t = G(), [n, o] = x([]), r = Z(), i = T(
310
+ }, ne = Cn, bn = () => {
311
+ const e = _e(), t = ne(), [n, o] = E([]), r = F(), i = _(
310
312
  (a) => {
311
313
  if (t && r.current && a) {
312
- const l = t.getBranch(a), u = a.getChildren(l).map((c) => Ke(c));
314
+ const l = t.getBranch(a), u = a.getChildren(l).map((c) => Je(c));
313
315
  o(u);
314
316
  }
315
317
  },
@@ -319,7 +321,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
319
321
  e && i(e);
320
322
  }, [e, t]), w(() => {
321
323
  if (t) {
322
- const [a, l] = Mt(t.events);
324
+ const [a, l] = Pt(t.events);
323
325
  return a("components:set-layout", (u, c) => {
324
326
  (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
325
327
  }), a("components:node-appended", (u, c) => {
@@ -331,8 +333,8 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
331
333
  };
332
334
  }
333
335
  }, [e, t, i]), n;
334
- }, Xr = pn, fn = () => U(on), Qr = fn, gn = (e, t) => {
335
- const n = $e(), o = I(), [r, i] = x(void 0), a = Z(), l = e || n.type || "";
336
+ }, us = bn, vn = () => J(ln), ds = vn, wn = (e, t) => {
337
+ const n = Re(), o = I(), [r, i] = E(void 0), a = F(), l = e || n.type || "";
336
338
  return w(() => {
337
339
  if (l) {
338
340
  let u;
@@ -349,8 +351,8 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
349
351
  };
350
352
  }
351
353
  }, [a, l, t, o]), r;
352
- }, Gr = gn, Cn = (e) => {
353
- const t = xe(e), n = G(), [o, r] = x({}), i = Z();
354
+ }, ms = wn, xn = (e) => {
355
+ const t = _e(e), n = ne(), [o, r] = E({}), i = F();
354
356
  return w(() => {
355
357
  t && i.current && r(t.attributes.context);
356
358
  }, [i, t]), w(() => {
@@ -366,11 +368,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
366
368
  };
367
369
  }
368
370
  }, [i, n, t]), o;
369
- }, yn = Cn, bn = () => U(an), Jr = bn, vn = () => {
370
- const e = G(), t = $e(), [n, o] = x([]), [r, i] = x();
371
+ }, $n = xn, En = () => J(mn), hs = En, kn = () => {
372
+ const e = ne(), t = Re(), [n, o] = E([]), [r, i] = E();
371
373
  return w(() => {
372
374
  if (e && t) {
373
- const a = new St(e).withId(t.id), l = e.actions(a, t.type || ee());
375
+ const a = new Vt(e).withId(t.id), l = e.actions(a, t.type || se());
374
376
  i(l), n !== null && (n.forEach((u) => {
375
377
  l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
376
378
  }), o(null));
@@ -383,7 +385,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
383
385
  reject: c
384
386
  });
385
387
  }) : r.dispatch(a, l);
386
- }, es = vn, O = (e, t, n = window, o = () => !0) => {
388
+ }, ps = kn, A = (e, t, n = window, o = () => !0) => {
387
389
  const r = R(() => {
388
390
  });
389
391
  w(() => {
@@ -396,11 +398,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
396
398
  n.removeEventListener(e, a);
397
399
  };
398
400
  }, [e, n]);
399
- }, wn = (e) => {
401
+ }, Ln = (e) => {
400
402
  const t = I(), { events: n } = (e || t).get("$widget");
401
403
  return n;
402
- }, En = wn, $n = () => {
403
- const [e, t] = x(!1);
404
+ }, Mn = Ln, Sn = () => {
405
+ const [e, t] = E(!1);
404
406
  return w(() => {
405
407
  const n = () => {
406
408
  t(!1);
@@ -411,22 +413,22 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
411
413
  window.removeEventListener("keydown", o), window.removeEventListener("click", n);
412
414
  };
413
415
  }, []), e;
414
- }, ts = $n, xn = (e, t) => {
415
- const [n, o] = x(!1), r = T(
416
+ }, fs = Sn, Rn = (e, t) => {
417
+ const [n, o] = E(!1), r = _(
416
418
  (a) => {
417
419
  const { key: l } = a;
418
420
  l === e && (o(!0), t && t(a));
419
421
  },
420
422
  [o, t]
421
- ), i = T(
423
+ ), i = _(
422
424
  ({ key: a }) => {
423
425
  a === e && o(!1);
424
426
  },
425
427
  [o]
426
428
  );
427
- return O("keydown", r, window), O("keyup", i, window), n;
428
- }, X = xn, kn = (e) => {
429
- const t = xe(e), n = G(), [o, r] = x({}), i = Z();
429
+ return A("keydown", r, window), A("keyup", i, window), n;
430
+ }, ee = Rn, _n = (e) => {
431
+ const t = _e(e), n = ne(), [o, r] = E({}), i = F();
430
432
  return w(() => {
431
433
  t && i.current && r(t.attributes.layout);
432
434
  }, [t, i]), w(() => {
@@ -442,13 +444,13 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
442
444
  };
443
445
  }
444
446
  }, [n, i, t]), o;
445
- }, ns = kn, Ln = (e) => {
447
+ }, gs = _n, Tn = (e) => {
446
448
  const t = R();
447
449
  return w(() => {
448
450
  t.current = e;
449
451
  }), t.current;
450
- }, et = Ln, Mn = () => U(rn), os = Mn, Sn = (e) => {
451
- const [t, n] = x(), o = I(), r = Z();
452
+ }, lt = Tn, zn = () => J(un), ys = zn, Dn = (e) => {
453
+ const [t, n] = E(), o = I(), r = F();
452
454
  return w(() => {
453
455
  let i;
454
456
  const a = (e || o).get("$widget");
@@ -463,19 +465,19 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
463
465
  case "close":
464
466
  case "open":
465
467
  r.current && n(
466
- p === "open" ? ae.open : ae.closed
468
+ p === "open" ? me.open : me.closed
467
469
  );
468
470
  break;
469
471
  case "hide":
470
- r.current && n(ae.hidden);
472
+ r.current && n(me.hidden);
471
473
  }
472
474
  });
473
475
  }), () => {
474
476
  i && i();
475
477
  };
476
478
  }, [r]), t;
477
- }, rs = Sn, Rn = () => U(sn), tt = Rn, Tn = (e) => {
478
- const t = I(), n = tt(), [o, r] = x({ name: "", params: {} }), i = Z();
479
+ }, Cs = Dn, Hn = () => J(dn), ut = Hn, Bn = (e) => {
480
+ const t = I(), n = ut(), [o, r] = E({ name: "", params: {} }), i = F();
479
481
  return w(() => {
480
482
  const a = (e || t).get("$widget");
481
483
  if (!a)
@@ -484,44 +486,44 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
484
486
  return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
485
487
  if (i.current) {
486
488
  const { name: p, params: d } = m;
487
- Pe(d), r({ name: p, params: d });
489
+ Ke(d), r({ name: p, params: d });
488
490
  }
489
491
  });
490
492
  }, [i, e, t]), w(() => {
491
493
  if (n && n.history && i.current) {
492
494
  const a = n.getRouteData(), { name: l, params: u } = a;
493
- Pe(u), r({ name: l, params: u });
495
+ Ke(u), r({ name: l, params: u });
494
496
  }
495
497
  }, [n, i]), o;
496
- }, ss = Tn, nt = (e) => {
498
+ }, bs = Bn, dt = (e) => {
497
499
  const t = R(), n = R(0);
498
500
  let o;
499
- const r = T(() => {
501
+ const r = _(() => {
500
502
  var c;
501
503
  (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
502
504
  var m;
503
505
  (m = t.current) == null || m.classList.remove("humany-scrolling");
504
506
  }, 500);
505
- }, [t]), i = T(
507
+ }, [t]), i = _(
506
508
  (c) => {
507
509
  n.current = c.touches[0].clientY;
508
510
  },
509
511
  [t]
510
- ), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = T(
512
+ ), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = _(
511
513
  (c) => {
512
514
  if (!c.cancelable)
513
515
  return;
514
516
  const m = c.touches[0].clientY, p = a(c.target);
515
517
  if (!p)
516
518
  return;
517
- const d = p.scrollTop, h = n.current - m < 0 ? "up" : "down", C = d <= 0 && h === "up", E = d >= p.scrollHeight - p.offsetHeight && h === "down";
518
- (C || E) && c.preventDefault(), n.current = m;
519
+ const d = p.scrollTop, h = n.current - m < 0 ? "up" : "down", y = d <= 0 && h === "up", x = d >= p.scrollHeight - p.offsetHeight && h === "down";
520
+ (y || x) && c.preventDefault(), n.current = m;
519
521
  },
520
522
  [t, n]
521
523
  );
522
- return O("scroll", r, t.current, () => t.current && e), O("touchstart", i, t.current, () => t.current && e), O("touchmove", u, t.current, () => t.current && e), e ? [Dn, t] : ["", t];
523
- }, Dn = `
524
- overflow-y: ${Ze() === ye.Chrome || Ze() === ye.EdgeChromium ? "overlay" : "auto"};
524
+ return A("scroll", r, t.current, () => t.current && e), A("touchstart", i, t.current, () => t.current && e), A("touchmove", u, t.current, () => t.current && e), e ? [Pn, t] : ["", t];
525
+ }, Pn = `
526
+ overflow-y: ${Ye() === Ee.Chrome || Ye() === Ee.EdgeChromium ? "overlay" : "auto"};
525
527
  overflow-x: hidden;
526
528
  -ms-overflow-style: none; /* IE 10+ */
527
529
  scrollbar-width: thin; /* Firefox */
@@ -548,42 +550,42 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
548
550
  background-color: #7F7F7F;
549
551
  }
550
552
  }
551
- `, zn = () => {
552
- const [e, t] = x(null), n = I(), o = Z();
553
+ `, Vn = () => {
554
+ const [e, t] = E(null), n = I(), o = F();
553
555
  return w(() => {
554
556
  n.get("settings").then((r) => {
555
557
  o.current && t(r);
556
558
  });
557
559
  }, [o]), e;
558
- }, is = zn, _n = (e = !1) => {
559
- const [t, n] = x(e), o = T((r) => {
560
+ }, vs = Vn, Nn = (e = !1) => {
561
+ const [t, n] = E(e), o = _((r) => {
560
562
  n(typeof r == "boolean" ? r : (i) => !i);
561
563
  }, []);
562
564
  return [t, o];
563
- }, ot = _n, as = (e) => {
564
- const t = I(), n = G(), o = t.get("widgetDOMElement"), [r, i] = x(null), [a, l] = x(null), u = Z();
565
+ }, mt = Nn, ws = (e) => {
566
+ const t = I(), n = ne(), o = t.get("widgetDOMElement"), [r, i] = E(null), [a, l] = E(null), u = F();
565
567
  w(() => {
566
568
  if (n && u.current) {
567
569
  const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
568
570
  if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
569
571
  e();
570
572
  else {
571
- const d = (E = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${E}"]`), h = d(p == null ? void 0 : p.id);
573
+ const d = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), h = d(p == null ? void 0 : p.id);
572
574
  h && i(h);
573
- const C = d(m == null ? void 0 : m.id);
574
- C && l(C);
575
+ const y = d(m == null ? void 0 : m.id);
576
+ y && l(y);
575
577
  }
576
578
  }
577
579
  }, [n, t, u]);
578
- const c = T(
580
+ const c = _(
579
581
  (m) => {
580
582
  u.current && (m.target === r || m.target === a) && e();
581
583
  },
582
584
  [e, u, r, a]
583
585
  );
584
- O("transitionend", c, r), O("transitionend", c, a);
585
- }, Hn = (e, t, n = [], o) => {
586
- const r = En(o);
586
+ A("transitionend", c, r), A("transitionend", c, a);
587
+ }, In = (e, t, n = [], o) => {
588
+ const r = Mn(o);
587
589
  return w(() => {
588
590
  if (r) {
589
591
  const i = r.subscribe(e, t);
@@ -592,21 +594,21 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
592
594
  };
593
595
  }
594
596
  }, [r].concat(n)), (i) => r == null ? void 0 : r.dispatch(e, i);
595
- }, me = Hn, Vn = (e, t) => {
596
- const n = me("widget:menu-toggled", (o, r) => {
597
+ }, Ce = In, On = (e, t) => {
598
+ const n = Ce("widget:menu-toggled", (o, r) => {
597
599
  r !== e && t();
598
600
  });
599
601
  return () => n(e);
600
- }, ke = Vn, Bn = (o) => {
602
+ }, Te = On, Wn = (o) => {
601
603
  var r = o, { className: e, children: t } = r, n = S(r, ["className", "children"]);
602
604
  return /* @__PURE__ */ s.createElement(
603
605
  "span",
604
606
  f({
605
607
  className: M(e, "humany-text")
606
- }, B(n)),
608
+ }, V(n)),
607
609
  t
608
610
  );
609
- }, Le = Bn, rt = (e) => L`
611
+ }, ze = Wn, ht = (e) => L`
610
612
  display: flex;
611
613
  justify-content: center;
612
614
  flex-direction: column;
@@ -615,7 +617,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
615
617
  border: ${e.theme.border};
616
618
  box-shadow: ${e.theme.boxShadow || "none"};
617
619
  ${e["data-loading"] && "min-height: 150px;"}
618
- `, In = (e) => {
620
+ `, Zn = (e) => {
619
621
  var t, n, o;
620
622
  return L`
621
623
  cursor: pointer;
@@ -627,11 +629,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
627
629
  font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
628
630
  font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
629
631
  `;
630
- }, cs = (e) => {
632
+ }, xs = (e) => {
631
633
  var a;
632
634
  const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: i } = e;
633
635
  return L`
634
- ${In(e)}
636
+ ${Zn(e)}
635
637
  border: 1px solid ${o ? n : t};
636
638
  background-color: ${o ? t : n};
637
639
 
@@ -661,27 +663,27 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
661
663
  }
662
664
 
663
665
  &:focus-visible {
664
- ${F(e)};
666
+ ${X(e)};
665
667
  }
666
668
  `}
667
669
  `;
668
- }, F = (e) => {
670
+ }, X = (e) => {
669
671
  var t, n, o;
670
672
  return L`
671
673
  outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
672
674
  color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
673
675
  border-color: transparent;
674
676
  `;
675
- }, Pn = (e) => L`
676
- ${F(e)}
677
+ }, jn = (e) => L`
678
+ ${X(e)}
677
679
  text-decoration: underline;
678
- `, ls = (e) => {
680
+ `, $s = (e) => {
679
681
  var t;
680
682
  return L`
681
- ${F(e)}
683
+ ${X(e)}
682
684
  outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
683
685
  `;
684
- }, Me = y(de)`
686
+ }, De = C(ye)`
685
687
  position: absolute;
686
688
  top: ${(e) => {
687
689
  var t;
@@ -701,7 +703,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
701
703
  }
702
704
 
703
705
  &:focus-visible {
704
- ${F}
706
+ ${X}
705
707
  padding: ${(e) => {
706
708
  var t;
707
709
  return (t = e.theme.sizes) == null ? void 0 : t.small;
@@ -709,7 +711,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
709
711
  height: 15px;
710
712
  box-sizing: content-box;
711
713
  }
712
- `, je = y(Le)`
714
+ `, Xe = C(ze)`
713
715
  font-size: ${(e) => {
714
716
  var t;
715
717
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -720,7 +722,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
720
722
  var t;
721
723
  return (t = e.theme.colors) == null ? void 0 : t.text;
722
724
  }};
723
- `, Nn = (e) => {
725
+ `, An = (e) => {
724
726
  var t;
725
727
  return L`
726
728
  padding: 0;
@@ -742,11 +744,11 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
742
744
  margin: 0;
743
745
  }
744
746
  `;
745
- }, us = (e) => {
747
+ }, Es = (e) => {
746
748
  var t, n, o, r;
747
749
  return L`
748
750
  > div {
749
- ${le(e)(
751
+ ${pe(e)(
750
752
  "> h1",
751
753
  L`
752
754
  margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
@@ -758,9 +760,9 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
758
760
  )}
759
761
  }
760
762
  > ul {
761
- ${Nn(e)}
763
+ ${An(e)}
762
764
  }
763
- ${le(e)(
765
+ ${pe(e)(
764
766
  "h1",
765
767
  L`
766
768
  display: flex;
@@ -778,7 +780,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
778
780
  `
779
781
  )}
780
782
  `;
781
- }, ds = (e) => {
783
+ }, ks = (e) => {
782
784
  var t, n, o, r, i, a;
783
785
  return L`
784
786
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
@@ -807,7 +809,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
807
809
  a {
808
810
  color: ${(o = e.theme.colors) == null ? void 0 : o.link};
809
811
  &:focus-visible {
810
- ${Pn(e)};
812
+ ${jn(e)};
811
813
  }
812
814
  }
813
815
 
@@ -833,19 +835,19 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
833
835
  margin: 0;
834
836
  }
835
837
  `;
836
- }, Wn = ({
838
+ }, Fn = ({
837
839
  elementId: e = "humany-portal-elements",
838
840
  parent: t = document.body,
839
841
  children: n
840
842
  }) => {
841
- const [o] = x(() => {
843
+ const [o] = E(() => {
842
844
  const r = document.getElementById(e) || document.createElement("div");
843
845
  return r.id = e, r;
844
846
  });
845
847
  return w(() => (t.appendChild(o), () => {
846
848
  o.childElementCount <= 1 && t.removeChild(o);
847
- }), [o]), Bt(n, o);
848
- }, te = Wn, On = (l) => {
849
+ }), [o]), Wt(n, o);
850
+ }, ie = Fn, Kn = (l) => {
849
851
  var u = l, {
850
852
  text: e = "",
851
853
  backgroundSize: t = "contain",
@@ -942,7 +944,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
942
944
  case "caret-left":
943
945
  return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" }));
944
946
  case "caret-up":
945
- return /* @__PURE__ */ s.createElement(Zn, f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
947
+ return /* @__PURE__ */ s.createElement(qn, f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
946
948
  case "caret-down":
947
949
  return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
948
950
  case "back":
@@ -1328,7 +1330,7 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
1328
1330
  }
1329
1331
  case "FontAwesome":
1330
1332
  return /* @__PURE__ */ s.createElement(
1331
- lo,
1333
+ fo,
1332
1334
  f({
1333
1335
  className: i,
1334
1336
  faIcon: m,
@@ -1346,9 +1348,9 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
1346
1348
  e.substring(0, 2)
1347
1349
  ) : null;
1348
1350
  }
1349
- }, Zn = y.svg`
1351
+ }, qn = C.svg`
1350
1352
  transform: rotate(180deg);
1351
- `, ne = On, jn = {
1353
+ `, ae = Kn, Un = {
1352
1354
  h1: "h1",
1353
1355
  h2: "h2",
1354
1356
  h3: "h3",
@@ -1357,12 +1359,12 @@ const Xt = (e) => (t) => /* @__PURE__ */ s.createElement(Uo, { attrs: t, htmlBod
1357
1359
  h6: "h6",
1358
1360
  p: "p",
1359
1361
  span: "span"
1360
- }, An = ({ variant: e, component: t, className: n, children: o }) => {
1361
- const { typographyVariantMapping: r = {} } = yn(), i = f(f({}, jn), r), a = t || i[e] || "span";
1362
- return /* @__PURE__ */ s.createElement(Fn, { className: n, as: a }, o);
1363
- }, Fn = y.span``, J = An;
1364
- var Kn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Kn || {});
1365
- const Yn = 300, Un = ({
1362
+ }, Yn = ({ variant: e, component: t, className: n, children: o }) => {
1363
+ const { typographyVariantMapping: r = {} } = $n(), i = f(f({}, Un), r), a = t || i[e] || "span";
1364
+ return /* @__PURE__ */ s.createElement(Xn, { className: n, as: a }, o);
1365
+ }, Xn = C.span``, re = Yn;
1366
+ var Qn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Qn || {});
1367
+ const Gn = 300, Jn = ({
1366
1368
  className: e,
1367
1369
  children: t,
1368
1370
  header: n,
@@ -1374,32 +1376,32 @@ const Yn = 300, Un = ({
1374
1376
  type: "slide-in-bottom"
1375
1377
  }
1376
1378
  }) => {
1377
- const { duration: u = Yn } = l, c = R(), m = R(), [p, d] = nt(!0), [h, C] = ot(), E = et(h), b = R(ee());
1379
+ const { duration: u = Gn } = l, c = R(), m = R(), [p, d] = dt(!0), [h, y] = mt(), x = lt(h), b = R(se());
1378
1380
  w(() => {
1379
1381
  o && o(h);
1380
1382
  }, [h]);
1381
- const v = X("Escape");
1383
+ const v = ee("Escape");
1382
1384
  w(() => {
1383
- v && C(!1);
1384
- }, [v]), O(
1385
+ v && y(!1);
1386
+ }, [v]), A(
1385
1387
  "click",
1386
1388
  (H) => {
1387
- const { target: D } = H;
1388
- !m.current || !d.current || !D || m.current !== D && d.current !== D && !d.current.contains(D) && !m.current.contains(D) && C(!1);
1389
+ const { target: T } = H;
1390
+ !m.current || !d.current || !T || m.current !== T && d.current !== T && !d.current.contains(T) && !m.current.contains(T) && y(!1);
1389
1391
  },
1390
1392
  window
1391
1393
  );
1392
- const g = ke(b.current, () => {
1393
- C(!1);
1394
+ const g = Te(b.current, () => {
1395
+ y(!1);
1394
1396
  });
1395
- me("router:changed", () => {
1396
- C(!1);
1397
+ Ce("router:changed", () => {
1398
+ y(!1);
1397
1399
  }), w(() => {
1398
- h && c.current ? c.current.focus() : !h && m.current && E && m.current.focus();
1400
+ h && c.current ? c.current.focus() : !h && m.current && x && m.current.focus();
1399
1401
  }, [h, c.current, m.current]);
1400
- const z = eo[l.type];
1402
+ const z = so[l.type];
1401
1403
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
1402
- Xe,
1404
+ st,
1403
1405
  {
1404
1406
  in: h,
1405
1407
  className: "humany-drawer-transition",
@@ -1407,7 +1409,7 @@ const Yn = 300, Un = ({
1407
1409
  unmountOnExit: !0,
1408
1410
  timeout: u
1409
1411
  },
1410
- /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
1412
+ /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
1411
1413
  z,
1412
1414
  {
1413
1415
  duration: u,
@@ -1422,27 +1424,27 @@ const Yn = 300, Un = ({
1422
1424
  ref: d
1423
1425
  },
1424
1426
  /* @__PURE__ */ s.createElement(
1425
- Me,
1427
+ De,
1426
1428
  {
1427
- onClick: () => C(!1),
1429
+ onClick: () => y(!1),
1428
1430
  tabIndex: 0,
1429
1431
  ref: c,
1430
1432
  "aria-label": a
1431
1433
  },
1432
- /* @__PURE__ */ s.createElement(ne, { symbol: { type: "Svg", content: "close" } })
1434
+ /* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
1433
1435
  ),
1434
- !!n && /* @__PURE__ */ s.createElement(qn, { variant: "h1", className: "humany-drawer-header" }, n),
1436
+ !!n && /* @__PURE__ */ s.createElement(eo, { variant: "h1", className: "humany-drawer-header" }, n),
1435
1437
  t
1436
1438
  ))
1437
1439
  ), s.cloneElement(r, {
1438
1440
  onClick: (H) => {
1439
- C(), g();
1441
+ y(), g();
1440
1442
  },
1441
1443
  ref: m,
1442
1444
  "aria-label": r.props.title,
1443
1445
  "aria-expanded": h
1444
1446
  }));
1445
- }, ms = Un, he = y.div`
1447
+ }, Ls = Jn, be = C.div`
1446
1448
  font-family: ${(e) => {
1447
1449
  var t;
1448
1450
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1459,7 +1461,7 @@ const Yn = 300, Un = ({
1459
1461
  box-shadow: ${(e) => e.theme.boxShadow};
1460
1462
  background: #ffffff;
1461
1463
  ${(e) => e.css && e.css}
1462
- `, qn = y(J)`
1464
+ `, eo = C(re)`
1463
1465
  padding: ${(e) => {
1464
1466
  var t;
1465
1467
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
@@ -1482,11 +1484,11 @@ const Yn = 300, Un = ({
1482
1484
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
1483
1485
  }};
1484
1486
  line-height: 1.2em;
1485
- `, pe = (e) => L`
1487
+ `, ve = (e) => L`
1486
1488
  transition: ${e.duration}ms;
1487
- `, Xn = y(he)`
1489
+ `, to = C(be)`
1488
1490
  max-height: 0;
1489
- ${pe}
1491
+ ${ve}
1490
1492
 
1491
1493
  &.humany-drawer-transition-enter {
1492
1494
  max-height: 0;
@@ -1501,8 +1503,8 @@ const Yn = 300, Un = ({
1501
1503
  &.humany-drawer-transition-exit-done {
1502
1504
  max-height: 0;
1503
1505
  }
1504
- `, Qn = y(he)`
1505
- ${pe}
1506
+ `, no = C(be)`
1507
+ ${ve}
1506
1508
  transform: translateX(100%);
1507
1509
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1508
1510
 
@@ -1519,8 +1521,8 @@ const Yn = 300, Un = ({
1519
1521
  &.humany-drawer-transition-exit-done {
1520
1522
  transform: translateX(100%);
1521
1523
  }
1522
- `, Gn = y(he)`
1523
- ${pe}
1524
+ `, oo = C(be)`
1525
+ ${ve}
1524
1526
  transform: translateX(-100%);
1525
1527
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1526
1528
 
@@ -1537,8 +1539,8 @@ const Yn = 300, Un = ({
1537
1539
  &.humany-drawer-transition-exit-done {
1538
1540
  transform: translateX(-100%);
1539
1541
  }
1540
- `, Jn = y(he)`
1541
- ${pe}
1542
+ `, ro = C(be)`
1543
+ ${ve}
1542
1544
  bottom: unset;
1543
1545
  top: 0;
1544
1546
  height: 0;
@@ -1556,13 +1558,13 @@ const Yn = 300, Un = ({
1556
1558
  &.humany-drawer-transition-exit-done {
1557
1559
  height: 0;
1558
1560
  }
1559
- `, eo = {
1560
- ["slide-in-bottom"]: Xn,
1561
- ["slide-in-right"]: Qn,
1562
- ["slide-in-left"]: Gn,
1563
- ["slide-in-top"]: Jn
1564
- }, to = (e, t, n) => {
1565
- const [o, r] = x(0), [i, a] = x(0), l = T(
1561
+ `, so = {
1562
+ ["slide-in-bottom"]: to,
1563
+ ["slide-in-right"]: no,
1564
+ ["slide-in-left"]: oo,
1565
+ ["slide-in-top"]: ro
1566
+ }, io = (e, t, n) => {
1567
+ const [o, r] = E(0), [i, a] = E(0), l = _(
1566
1568
  (u, c) => {
1567
1569
  if (u.preventDefault(), c) {
1568
1570
  const m = c.getBoundingClientRect();
@@ -1580,36 +1582,36 @@ const Yn = 300, Un = ({
1580
1582
  };
1581
1583
  u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && r(c.x), c.y !== i && a(c.y);
1582
1584
  }, [n, e, t]), [{ x: o, y: i }, l];
1583
- }, st = to, no = s.forwardRef(
1585
+ }, pt = io, ao = s.forwardRef(
1584
1586
  (a, i) => {
1585
1587
  var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, r = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1586
1588
  const u = R(), c = R(), m = R();
1587
- we(i, () => m.current, [m.current]);
1588
- const p = R(ee()), [d, h] = x(!1), C = et(d), [{ x: E, y: b }, v] = st(d, p.current, m.current), g = X("Escape");
1589
+ Me(i, () => m.current, [m.current]);
1590
+ const p = R(se()), [d, h] = E(!1), y = lt(d), [{ x, y: b }, v] = pt(d, p.current, m.current), g = ee("Escape");
1589
1591
  w(() => {
1590
1592
  g && h(!1);
1591
1593
  }, [g]), w(() => {
1592
- d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
1593
- }, [d, u.current, c.current]), O(
1594
+ d && u.current ? u.current.focus() : !d && c.current && y && c.current.focus();
1595
+ }, [d, u.current, c.current]), A(
1594
1596
  "click",
1595
- (D) => {
1596
- const { target: N } = D;
1597
- !m.current || !N || m.current !== N && !m.current.contains(N) && h(!1);
1597
+ (T) => {
1598
+ const { target: Z } = T;
1599
+ !m.current || !Z || m.current !== Z && !m.current.contains(Z) && h(!1);
1598
1600
  },
1599
1601
  window
1600
- ), me("router:changed", () => {
1602
+ ), Ce("router:changed", () => {
1601
1603
  h(!1);
1602
1604
  });
1603
- const z = ke(p.current, () => {
1605
+ const z = Te(p.current, () => {
1604
1606
  h(!1);
1605
- }), H = T(
1606
- (D) => {
1607
- D.stopPropagation(), v(D, c.current), h(!d), z();
1607
+ }), H = _(
1608
+ (T) => {
1609
+ T.stopPropagation(), v(T, c.current), h(!d), z();
1608
1610
  },
1609
1611
  [z, v, h]
1610
1612
  );
1611
- return /* @__PURE__ */ s.createElement(s.Fragment, null, d && /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
1612
- oo,
1613
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, d && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
1614
+ co,
1613
1615
  k(f({
1614
1616
  className: M(
1615
1617
  "humany-dropdown",
@@ -1617,19 +1619,19 @@ const Yn = 300, Un = ({
1617
1619
  e
1618
1620
  )
1619
1621
  }, r), {
1620
- x: E,
1622
+ x,
1621
1623
  y: b,
1622
1624
  ref: m
1623
1625
  }),
1624
1626
  /* @__PURE__ */ s.createElement(
1625
- Me,
1627
+ De,
1626
1628
  {
1627
1629
  onClick: () => h(!1),
1628
1630
  tabIndex: 0,
1629
1631
  ref: u,
1630
1632
  "aria-label": o
1631
1633
  },
1632
- /* @__PURE__ */ s.createElement(ne, { symbol: { type: "Svg", content: "close" } })
1634
+ /* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
1633
1635
  ),
1634
1636
  t
1635
1637
  )), s.cloneElement(n, {
@@ -1639,8 +1641,8 @@ const Yn = 300, Un = ({
1639
1641
  "aria-expanded": d
1640
1642
  }));
1641
1643
  }
1642
- ), hs = no, oo = y.div`
1643
- ${rt}
1644
+ ), Ms = ao, co = C.div`
1645
+ ${ht}
1644
1646
  padding: ${(e) => {
1645
1647
  var t;
1646
1648
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -1654,53 +1656,53 @@ const Yn = 300, Un = ({
1654
1656
  let t = "";
1655
1657
  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;
1656
1658
  }};
1657
- `, ro = (t) => {
1659
+ `, lo = (t) => {
1658
1660
  var e = S(t, []);
1659
- return /* @__PURE__ */ s.createElement(io, f({}, e));
1660
- }, so = ro, io = y.div`
1661
+ return /* @__PURE__ */ s.createElement(mo, f({}, e));
1662
+ }, uo = lo, mo = C.div`
1661
1663
  display: none;
1662
- `, ps = V(
1664
+ `, Ss = P(
1663
1665
  (a, i) => {
1664
1666
  var l = a, { children: e, columns: t, gap: n, className: o } = l, r = S(l, ["children", "columns", "gap", "className"]);
1665
1667
  return /* @__PURE__ */ s.createElement(
1666
- ao,
1668
+ ho,
1667
1669
  k(f(f({
1668
1670
  className: M(o, "humany-grid"),
1669
1671
  "data-columns": t,
1670
1672
  "data-gap": n
1671
- }, Yt(r)), B(r)), {
1673
+ }, Gt(r)), V(r)), {
1672
1674
  ref: i
1673
1675
  }),
1674
1676
  e
1675
1677
  );
1676
1678
  }
1677
- ), ao = y.div`
1679
+ ), ho = C.div`
1678
1680
  display: grid;
1679
1681
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1680
1682
  grid-gap: ${(e) => e["data-gap"]};
1681
1683
  justify-content: center;
1682
1684
  grid-auto-rows: max-content;
1683
- ${Kt}
1684
- `, it = V(
1685
+ ${Qt}
1686
+ `, ft = P(
1685
1687
  (i, r) => {
1686
1688
  var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1687
- const l = I(), [u, c] = x();
1689
+ const l = I(), [u, c] = E();
1688
1690
  return w(() => {
1689
- const m = Qt(l, n), p = k(f(f({}, m), e), {
1691
+ const m = nn(l, n), p = k(f(f({}, m), e), {
1690
1692
  transform: f(f({}, m.transform), e == null ? void 0 : e.transform)
1691
- }), d = qt(n, p);
1693
+ }), d = en(n, p);
1692
1694
  c(d);
1693
1695
  }, [n, e]), /* @__PURE__ */ s.createElement(
1694
1696
  "div",
1695
1697
  k(f({
1696
1698
  className: M(t, "humany-html")
1697
- }, B(o)), {
1699
+ }, V(o)), {
1698
1700
  ref: r
1699
1701
  }),
1700
1702
  u
1701
1703
  );
1702
1704
  }
1703
- ), co = (i) => {
1705
+ ), po = (i) => {
1704
1706
  var a = i, {
1705
1707
  faIcon: e,
1706
1708
  title: t,
@@ -1718,9 +1720,9 @@ const Yn = 300, Un = ({
1718
1720
  className: M(n, `fa fa-${e}`),
1719
1721
  title: t,
1720
1722
  role: o
1721
- }, B(r))
1723
+ }, V(r))
1722
1724
  );
1723
- }, lo = co, fs = V(
1725
+ }, fo = po, Rs = P(
1724
1726
  (p, m) => {
1725
1727
  var d = p, {
1726
1728
  className: e = "",
@@ -1747,14 +1749,14 @@ const Yn = 300, Un = ({
1747
1749
  "disabled",
1748
1750
  "type"
1749
1751
  ]);
1750
- const [h, C] = x(t), E = R();
1751
- we(m, () => E.current), w(() => {
1752
+ const [h, y] = E(t), x = R();
1753
+ Me(m, () => x.current), w(() => {
1752
1754
  var g;
1753
- t && ((g = E == null ? void 0 : E.current) == null || g.focus());
1754
- }, [t, m, E]);
1755
+ t && ((g = x == null ? void 0 : x.current) == null || g.focus());
1756
+ }, [t, m, x]);
1755
1757
  const b = (g, z) => {
1756
- C(g), n && n(g), i && g && z.target.select();
1757
- }, v = k(f({}, B(c)), {
1758
+ y(g), n && n(g), i && g && z.target.select();
1759
+ }, v = k(f({}, V(c)), {
1758
1760
  disabled: l,
1759
1761
  autoFocus: t,
1760
1762
  type: u,
@@ -1770,16 +1772,16 @@ const Yn = 300, Un = ({
1770
1772
  return u !== "textarea" ? /* @__PURE__ */ s.createElement(
1771
1773
  "input",
1772
1774
  k(f({}, v), {
1773
- ref: E
1775
+ ref: x
1774
1776
  })
1775
1777
  ) : /* @__PURE__ */ s.createElement(
1776
1778
  "textarea",
1777
1779
  k(f({}, v), {
1778
- ref: E
1780
+ ref: x
1779
1781
  })
1780
1782
  );
1781
1783
  }
1782
- ), uo = V(
1784
+ ), go = P(
1783
1785
  (a, i) => {
1784
1786
  var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, r = S(l, ["className", "items", "renderItem", "renderLi"]);
1785
1787
  return /* @__PURE__ */ s.createElement(
@@ -1787,7 +1789,7 @@ const Yn = 300, Un = ({
1787
1789
  k(f({
1788
1790
  className: M(e, "humany-list"),
1789
1791
  "data-item-count": t.length
1790
- }, B(r)), {
1792
+ }, V(r)), {
1791
1793
  ref: i
1792
1794
  }),
1793
1795
  t.map(
@@ -1795,24 +1797,24 @@ const Yn = 300, Un = ({
1795
1797
  )
1796
1798
  );
1797
1799
  }
1798
- ), mo = V(
1800
+ ), yo = P(
1799
1801
  (u, l) => {
1800
1802
  var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1801
1803
  return /* @__PURE__ */ s.createElement(
1802
1804
  "div",
1803
1805
  k(f({
1804
1806
  className: M(o, "humany-paragraph")
1805
- }, B(a)), {
1807
+ }, V(a)), {
1806
1808
  ref: l
1807
1809
  }),
1808
- n ? /* @__PURE__ */ s.createElement(J, { variant: "h1" }, i ? /* @__PURE__ */ s.createElement(ne, { symbol: i }) : null, n) : null,
1809
- t ? /* @__PURE__ */ s.createElement(it, { html: t, htmlParseInstruction: r }) : null,
1810
- e ? /* @__PURE__ */ s.createElement(Le, null, e) : null
1810
+ n ? /* @__PURE__ */ s.createElement(re, { variant: "h1" }, i ? /* @__PURE__ */ s.createElement(ae, { symbol: i }) : null, n) : null,
1811
+ t ? /* @__PURE__ */ s.createElement(ft, { html: t, htmlParseInstruction: r }) : null,
1812
+ e ? /* @__PURE__ */ s.createElement(ze, null, e) : null
1811
1813
  );
1812
1814
  }
1813
- ), ho = V(
1815
+ ), Co = P(
1814
1816
  (h, d) => {
1815
- var C = h, {
1817
+ var y = h, {
1816
1818
  header: e,
1817
1819
  customHeader: t,
1818
1820
  text: n,
@@ -1824,7 +1826,7 @@ const Yn = 300, Un = ({
1824
1826
  renderItem: u,
1825
1827
  renderLi: c,
1826
1828
  ulProps: m
1827
- } = C, p = S(C, [
1829
+ } = y, p = S(y, [
1828
1830
  "header",
1829
1831
  "customHeader",
1830
1832
  "text",
@@ -1842,15 +1844,15 @@ const Yn = 300, Un = ({
1842
1844
  k(f({
1843
1845
  className: M(r, "humany-item-list"),
1844
1846
  "data-item-count": l.length
1845
- }, B(p)), {
1847
+ }, V(p)), {
1846
1848
  ref: d
1847
1849
  }),
1848
- t || (e || n || o ? /* @__PURE__ */ s.createElement(mo, { symbol: a, header: e, text: n, html: o }) : null),
1849
- l.length ? /* @__PURE__ */ s.createElement(uo, f({ items: l, renderItem: u, renderLi: c }, m)) : null,
1850
+ t || (e || n || o ? /* @__PURE__ */ s.createElement(yo, { symbol: a, header: e, text: n, html: o }) : null),
1851
+ l.length ? /* @__PURE__ */ s.createElement(go, f({ items: l, renderItem: u, renderLi: c }, m)) : null,
1850
1852
  i
1851
1853
  );
1852
1854
  }
1853
- ), po = ({
1855
+ ), bo = ({
1854
1856
  className: e = "",
1855
1857
  tree: t,
1856
1858
  renderItem: n,
@@ -1861,17 +1863,17 @@ const Yn = 300, Un = ({
1861
1863
  liProps: l
1862
1864
  }) => {
1863
1865
  const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ s.createElement(
1864
- ho,
1866
+ Co,
1865
1867
  {
1866
1868
  className: M(`humany-item-tree-level-${d}`),
1867
1869
  items: p,
1868
1870
  ulProps: a,
1869
1871
  renderItem: (h) => {
1870
- const { id: C, selected: E, items: b, matches: v } = h, g = E && c(b);
1872
+ const { id: y, selected: x, items: b, matches: v } = h, g = x && c(b);
1871
1873
  return !i && !v ? null : /* @__PURE__ */ s.createElement(
1872
1874
  "li",
1873
- k(f({}, B(l)), {
1874
- key: C,
1875
+ k(f({}, V(l)), {
1876
+ key: y,
1875
1877
  className: "humany-item-tree-item"
1876
1878
  }),
1877
1879
  n && n(h, d, g),
@@ -1881,11 +1883,11 @@ const Yn = 300, Un = ({
1881
1883
  }
1882
1884
  );
1883
1885
  return /* @__PURE__ */ s.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
1884
- }, gs = po, fo = V(
1886
+ }, _s = bo, vo = P(
1885
1887
  (u, l) => {
1886
1888
  var c = u, { className: e, onClick: t = () => {
1887
1889
  }, name: n = "", to: o = "", params: r = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1888
- const m = tt(), p = I();
1890
+ const m = ut(), p = I();
1889
1891
  if (!m)
1890
1892
  return null;
1891
1893
  let d = "";
@@ -1899,11 +1901,11 @@ const Yn = 300, Un = ({
1899
1901
  });
1900
1902
  if (n) {
1901
1903
  if (!(m.routes || []).find((v) => v.name === n))
1902
- return process.env.NODE_ENV !== "production" && fe.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ s.createElement(
1903
- ge,
1904
+ return process.env.NODE_ENV !== "production" && we.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ s.createElement(
1905
+ xe,
1904
1906
  k(f({}, h), {
1905
1907
  onClick: (v) => {
1906
- t(v), v.preventDefault(), process.env.NODE_ENV !== "production" && fe.warn(`Unable to navigate. No route named "${n}" exist.`);
1908
+ t(v), v.preventDefault(), process.env.NODE_ENV !== "production" && we.warn(`Unable to navigate. No route named "${n}" exist.`);
1907
1909
  }
1908
1910
  }),
1909
1911
  i
@@ -1912,9 +1914,9 @@ const Yn = 300, Un = ({
1912
1914
  try {
1913
1915
  d = m.generate(n, b || {});
1914
1916
  } catch (v) {
1915
- return /* @__PURE__ */ s.createElement(ge, f({}, h), i);
1917
+ return /* @__PURE__ */ s.createElement(xe, f({}, h), i);
1916
1918
  }
1917
- d && m.settings.mode && m.settings.mode === We.browser && d[0] !== "/" && (d = `/${d}`);
1919
+ d && m.settings.mode && m.settings.mode === qe.browser && d[0] !== "/" && (d = `/${d}`);
1918
1920
  } else if (o && m.history)
1919
1921
  d = m.history.createHref({
1920
1922
  hash: "",
@@ -1923,18 +1925,18 @@ const Yn = 300, Un = ({
1923
1925
  state: void 0
1924
1926
  });
1925
1927
  else
1926
- return process.env.NODE_ENV !== "production" && fe.warn(
1928
+ return process.env.NODE_ENV !== "production" && we.warn(
1927
1929
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1928
1930
  ), null;
1929
- if (m.settings && m.settings.mode === We.scopedHash) {
1930
- const C = p.get("$widget").name;
1931
- d = It(d, C);
1931
+ if (m.settings && m.settings.mode === qe.scopedHash) {
1932
+ const y = p.get("$widget").name;
1933
+ d = Zt(d, y);
1932
1934
  }
1933
- return h.as ? /* @__PURE__ */ s.createElement(go, k(f({}, h), { as: h.as }), i) : /* @__PURE__ */ s.createElement(ge, k(f({}, h), { to: d }), i);
1935
+ return h.as ? /* @__PURE__ */ s.createElement(wo, k(f({}, h), { as: h.as }), i) : /* @__PURE__ */ s.createElement(xe, k(f({}, h), { to: d }), i);
1934
1936
  }
1935
- ), go = y.span``, Se = V(
1936
- (E, C) => {
1937
- var b = E, {
1937
+ ), wo = C.span``, He = P(
1938
+ (x, y) => {
1939
+ var b = x, {
1938
1940
  className: e,
1939
1941
  disabled: t = !1,
1940
1942
  role: n = "link",
@@ -1988,36 +1990,36 @@ const Yn = 300, Un = ({
1988
1990
  }
1989
1991
  };
1990
1992
  return p ? /* @__PURE__ */ s.createElement(
1991
- Co,
1993
+ xo,
1992
1994
  k(f(f({
1993
1995
  name: p,
1994
1996
  params: d
1995
- }, v), B(h)), {
1996
- ref: C
1997
+ }, v), V(h)), {
1998
+ ref: y
1997
1999
  }),
1998
2000
  c
1999
2001
  ) : /* @__PURE__ */ s.createElement(
2000
- yo,
2002
+ $o,
2001
2003
  k(f(f({
2002
2004
  href: u,
2003
2005
  target: m
2004
- }, v), B(h)), {
2005
- ref: C
2006
+ }, v), V(h)), {
2007
+ ref: y
2006
2008
  }),
2007
2009
  c
2008
2010
  );
2009
2011
  }
2010
- ), Co = y(fo)`
2012
+ ), xo = C(vo)`
2011
2013
  ${(e) => e.disabled ? `
2012
2014
  pointer-events: none;
2013
2015
  opacity: .7;
2014
2016
  ` : "cursor: pointer;"}
2015
- `, yo = y.a`
2017
+ `, $o = C.a`
2016
2018
  ${(e) => e.disabled ? `
2017
2019
  pointer-events: none;
2018
2020
  opacity: .7;
2019
2021
  ` : "cursor: pointer;"}
2020
- `, bo = (i) => {
2022
+ `, Eo = (i) => {
2021
2023
  var a = i, {
2022
2024
  visible: e,
2023
2025
  duration: t = 500,
@@ -2030,14 +2032,14 @@ const Yn = 300, Un = ({
2030
2032
  "children",
2031
2033
  "onClick"
2032
2034
  ]);
2033
- const l = R(), u = T(
2035
+ const l = R(), u = _(
2034
2036
  (c) => {
2035
2037
  c.target === l.current && o(c);
2036
2038
  },
2037
2039
  [o]
2038
2040
  );
2039
2041
  return /* @__PURE__ */ s.createElement(
2040
- Xe,
2042
+ st,
2041
2043
  {
2042
2044
  in: e,
2043
2045
  className: "humany-overlay-transition",
@@ -2045,8 +2047,8 @@ const Yn = 300, Un = ({
2045
2047
  unmountOnExit: !0,
2046
2048
  timeout: t
2047
2049
  },
2048
- /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
2049
- vo,
2050
+ /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
2051
+ ko,
2050
2052
  f({
2051
2053
  className: "humany-overlay",
2052
2054
  duration: t,
@@ -2056,7 +2058,7 @@ const Yn = 300, Un = ({
2056
2058
  n
2057
2059
  ))
2058
2060
  );
2059
- }, vo = y.div`
2061
+ }, ko = C.div`
2060
2062
  background: rgba(0, 0, 0, 0.6);
2061
2063
  min-width: 100%;
2062
2064
  min-height: 100%;
@@ -2086,11 +2088,11 @@ const Yn = 300, Un = ({
2086
2088
  &.humany-overlay-transition-exit-done {
2087
2089
  opacity: 0;
2088
2090
  }
2089
- `, at = bo, wo = Ue`
2091
+ `, gt = Eo, Lo = tt`
2090
2092
  100% {
2091
2093
  transform: rotate(360deg);
2092
2094
  }
2093
- `, Eo = Ue`
2095
+ `, Mo = tt`
2094
2096
  0% {
2095
2097
  stroke-dasharray: 1, 200;
2096
2098
  stroke-dashoffset: 0;
@@ -2103,8 +2105,8 @@ const Yn = 300, Un = ({
2103
2105
  stroke-dasharray: 89, 200;
2104
2106
  stroke-dashoffset: -124px;
2105
2107
  }
2106
- `, $o = y.svg`
2107
- animation: ${wo} 2s linear infinite;
2108
+ `, So = C.svg`
2109
+ animation: ${Lo} 2s linear infinite;
2108
2110
  height: 100%;
2109
2111
  transform-origin: center center;
2110
2112
  width: 100%;
@@ -2115,7 +2117,7 @@ const Yn = 300, Un = ({
2115
2117
  right: 0;
2116
2118
  margin: auto;
2117
2119
  transition: 200ms ease-out opacity;
2118
- `, xo = y.div`
2120
+ `, Ro = C.div`
2119
2121
  position: absolute;
2120
2122
  top: 0;
2121
2123
  bottom: 0;
@@ -2133,7 +2135,7 @@ const Yn = 300, Un = ({
2133
2135
  svg {
2134
2136
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2135
2137
  }
2136
- `, ko = y.div`
2138
+ `, _o = C.div`
2137
2139
  position: relative;
2138
2140
  margin: 0 auto;
2139
2141
  width: 100px;
@@ -2142,18 +2144,18 @@ const Yn = 300, Un = ({
2142
2144
  display: block;
2143
2145
  padding-top: 100%;
2144
2146
  }
2145
- `, Lo = y.circle`
2147
+ `, To = C.circle`
2146
2148
  stroke-dasharray: 1, 200;
2147
2149
  stroke-dashoffset: 0;
2148
- animation: ${Eo} 1.5s ease-in-out infinite;
2150
+ animation: ${Mo} 1.5s ease-in-out infinite;
2149
2151
  stroke-linecap: round;
2150
2152
  stroke: ${(e) => {
2151
2153
  var t;
2152
2154
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2153
2155
  }};
2154
2156
  stroke-width: 2px;
2155
- `, Mo = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ s.createElement(xo, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ s.createElement(ko, { className: "humany-spinner" }, /* @__PURE__ */ s.createElement($o, { viewBox: "25 25 50 50" }, /* @__PURE__ */ s.createElement(
2156
- Lo,
2157
+ `, zo = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ s.createElement(Ro, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ s.createElement(_o, { className: "humany-spinner" }, /* @__PURE__ */ s.createElement(So, { viewBox: "25 25 50 50" }, /* @__PURE__ */ s.createElement(
2158
+ To,
2157
2159
  {
2158
2160
  cx: "50",
2159
2161
  cy: "50",
@@ -2162,7 +2164,7 @@ const Yn = 300, Un = ({
2162
2164
  "stroke-width": "2",
2163
2165
  "stroke-miterlimit": "10"
2164
2166
  }
2165
- )))), So = Mo, Ro = (r) => {
2167
+ )))), Do = zo, Ho = (r) => {
2166
2168
  var i = r, {
2167
2169
  zoomState: e,
2168
2170
  image: t,
@@ -2173,19 +2175,19 @@ const Yn = 300, Un = ({
2173
2175
  "changeZoom"
2174
2176
  ]);
2175
2177
  var v;
2176
- const a = R(null), [l, u] = x(!1), [c, m] = x(!1), b = o.style || {}, { width: p, height: d } = b, h = S(b, ["width", "height"]), C = T(() => {
2178
+ const a = R(null), [l, u] = E(!1), [c, m] = E(!1), b = o.style || {}, { width: p, height: d } = b, h = S(b, ["width", "height"]), y = _(() => {
2177
2179
  const g = a.current;
2178
2180
  if (g) {
2179
- const z = window.innerWidth / g.width, H = window.innerHeight / g.height, D = Math.min(z, H);
2180
- return H >= 1 && z >= 1 ? 1 : D;
2181
+ const z = window.innerWidth / g.width, H = window.innerHeight / g.height, T = Math.min(z, H);
2182
+ return H >= 1 && z >= 1 ? 1 : T;
2181
2183
  }
2182
2184
  return 1;
2183
- }, [l, t.src]), E = ce(() => {
2185
+ }, [l, t.src]), x = he(() => {
2184
2186
  const g = a.current;
2185
2187
  if (g) {
2186
2188
  if (!c) {
2187
2189
  m(!0);
2188
- const z = C();
2190
+ const z = y();
2189
2191
  n(z);
2190
2192
  }
2191
2193
  return g.width >= g.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
@@ -2194,14 +2196,14 @@ const Yn = 300, Un = ({
2194
2196
  }, [e, a, l, t.src]);
2195
2197
  return w(() => (u(!1), function() {
2196
2198
  m(!1);
2197
- }), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(To, { loading: !l }), /* @__PURE__ */ s.createElement(
2198
- Do,
2199
+ }), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(Bo, { loading: !l }), /* @__PURE__ */ s.createElement(
2200
+ Po,
2199
2201
  k(f({
2200
2202
  onLoad: () => {
2201
2203
  u(!0);
2202
2204
  },
2203
2205
  ref: a,
2204
- imageSize: E,
2206
+ imageSize: x,
2205
2207
  draggable: "false"
2206
2208
  }, o), {
2207
2209
  alt: ((v = o.alt) == null ? void 0 : v.toString()) || "",
@@ -2209,12 +2211,12 @@ const Yn = 300, Un = ({
2209
2211
  src: t.src,
2210
2212
  loaded: l
2211
2213
  })
2212
- ), /* @__PURE__ */ s.createElement(zo, null));
2213
- }, To = y(So)`
2214
+ ), /* @__PURE__ */ s.createElement(Vo, null));
2215
+ }, Bo = C(Do)`
2214
2216
  svg circle {
2215
2217
  stroke: #ffffff;
2216
2218
  }
2217
- `, Do = y.img`
2219
+ `, Po = C.img`
2218
2220
  transform: none;
2219
2221
 
2220
2222
  ${(e) => e.imageSize && L`
@@ -2225,132 +2227,132 @@ const Yn = 300, Un = ({
2225
2227
  vertical-align: middle;
2226
2228
  position: relative;
2227
2229
  ${(e) => !e.loaded && "display:none;"}
2228
- `, zo = y.div`
2230
+ `, Vo = C.div`
2229
2231
  height: 100%;
2230
2232
  display: inline-block;
2231
2233
  vertical-align: middle;
2232
- `, _o = Ro, Ho = () => {
2233
- const e = R(), [t, n] = x(!0), o = T(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2234
+ `, No = Ho, Io = () => {
2235
+ const e = R(), [t, n] = E(!0), o = _(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2234
2236
  n(!1);
2235
2237
  }, 3e3), () => {
2236
2238
  e.current && clearTimeout(e.current);
2237
2239
  }), [t, e]);
2238
2240
  return [t, o];
2239
- }, Vo = ({ attrs: e, htmlBody: t }) => {
2240
- var _e;
2241
- const n = X("Escape"), o = X("ArrowLeft"), r = X("ArrowRight"), [i, a] = x(1), [l, u] = x({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = x(!1), [p, d] = Ho(), [h, C] = x(null), [E, b] = x(null), v = R(null), g = R(null), z = R(null), H = R(null);
2241
+ }, Oo = ({ attrs: e, htmlBody: t }) => {
2242
+ var We;
2243
+ const n = ee("Escape"), o = ee("ArrowLeft"), r = ee("ArrowRight"), [i, a] = E(1), [l, u] = E({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = E(!1), [p, d] = Io(), [h, y] = E(null), [x, b] = E(null), v = R(null), g = R(null), z = R(null), H = R(null);
2242
2244
  w(() => {
2243
- n && C(null);
2245
+ n && y(null);
2244
2246
  }, [n]), w(() => {
2245
2247
  a(1);
2246
2248
  }, [h]), w(() => {
2247
- var j, A;
2249
+ var K, q;
2248
2250
  if (h === null || g.current === null)
2249
2251
  return;
2250
- const $ = g.current.firstElementChild, _ = (j = z.current) == null ? void 0 : j.querySelector(".nav-left"), W = (A = z.current) == null ? void 0 : A.querySelector(".nav-right");
2251
- if (E === "Right")
2252
- re && W ? W.focus() : oe && _ && _.focus();
2253
- else if (E === "Left")
2254
- oe && _ ? _.focus() : re && W && W.focus();
2252
+ const $ = g.current.firstElementChild, D = (K = z.current) == null ? void 0 : K.querySelector(".nav-left"), j = (q = z.current) == null ? void 0 : q.querySelector(".nav-right");
2253
+ if (x === "Right")
2254
+ le && j ? j.focus() : ce && D && D.focus();
2255
+ else if (x === "Left")
2256
+ ce && D ? D.focus() : le && j && j.focus();
2255
2257
  else {
2256
2258
  if (!$)
2257
2259
  return;
2258
2260
  $.focus();
2259
2261
  }
2260
- }, [h, g, z, E]), w(() => {
2262
+ }, [h, g, z, x]), w(() => {
2261
2263
  if (o) {
2262
- if (oe)
2263
- return De();
2264
- } else if (r && re)
2265
- return ze();
2264
+ if (ce)
2265
+ return Ie();
2266
+ } else if (r && le)
2267
+ return Oe();
2266
2268
  }, [o, r]);
2267
- const D = ce(() => {
2269
+ const T = he(() => {
2268
2270
  const $ = document.createElement("div");
2269
2271
  $.innerHTML = t || "";
2270
- const _ = $.getElementsByTagName("img");
2271
- return Array.from(_).reduce((j, A) => {
2272
- const He = A.getAttribute("src"), Ct = A.height || Number.parseInt(A.style.height, 10), yt = A.width || Number.parseInt(A.style.width, 10);
2273
- if (He) {
2274
- const bt = {
2275
- src: He,
2276
- originalWidth: yt,
2277
- originalHeight: Ct
2272
+ const D = $.getElementsByTagName("img");
2273
+ return Array.from(D).reduce((K, q) => {
2274
+ const Ze = q.getAttribute("src"), Lt = q.height || Number.parseInt(q.style.height, 10), Mt = q.width || Number.parseInt(q.style.width, 10);
2275
+ if (Ze) {
2276
+ const St = {
2277
+ src: Ze,
2278
+ originalWidth: Mt,
2279
+ originalHeight: Lt
2278
2280
  };
2279
- j.push(bt);
2281
+ K.push(St);
2280
2282
  }
2281
- return j;
2283
+ return K;
2282
2284
  }, []);
2283
- }, [t]), N = T(() => {
2285
+ }, [t]), Z = _(() => {
2284
2286
  const { src: $ } = e;
2285
2287
  if ($) {
2286
- const _ = D.findIndex((W, j) => W.src === $);
2287
- C(_);
2288
+ const D = T.findIndex((j, K) => j.src === $);
2289
+ y(D);
2288
2290
  }
2289
- }, [D, e]), dt = T(($) => {
2290
- C(null);
2291
- }, []), Te = T(
2291
+ }, [T, e]), vt = _(($) => {
2292
+ y(null);
2293
+ }, []), Ne = _(
2292
2294
  ($) => {
2293
2295
  a($ ? i + i * 0.25 : i - i * 0.25);
2294
2296
  },
2295
2297
  [a, i]
2296
- ), mt = T(() => {
2298
+ ), wt = _(() => {
2297
2299
  if (h !== null) {
2298
- const { src: $ } = D[h];
2300
+ const { src: $ } = T[h];
2299
2301
  $ && window.open($, "_self");
2300
2302
  }
2301
- }, [D, h]), ht = T(
2303
+ }, [T, h]), xt = _(
2302
2304
  ($) => {
2303
- const _ = H.current;
2304
- _ && (u({ top: _.scrollTop, left: _.scrollLeft, x: $.clientX, y: $.clientY }), m(!0));
2305
+ const D = H.current;
2306
+ D && (u({ top: D.scrollTop, left: D.scrollLeft, x: $.clientX, y: $.clientY }), m(!0));
2305
2307
  },
2306
2308
  [H]
2307
- ), pt = T(
2309
+ ), $t = _(
2308
2310
  ($) => {
2309
- const _ = H.current;
2310
- if (_ && c) {
2311
- const W = $.clientX - l.x, j = $.clientY - l.y;
2312
- _.scrollTop = l.top - j, _.scrollLeft = l.left - W;
2311
+ const D = H.current;
2312
+ if (D && c) {
2313
+ const j = $.clientX - l.x, K = $.clientY - l.y;
2314
+ D.scrollTop = l.top - K, D.scrollLeft = l.left - j;
2313
2315
  }
2314
2316
  },
2315
2317
  [c, l]
2316
- ), ft = ($) => {
2318
+ ), Et = ($) => {
2317
2319
  $.preventDefault(), m(!1);
2318
- }, gt = ce(() => {
2320
+ }, kt = he(() => {
2319
2321
  if (H.current) {
2320
2322
  const $ = H.current.getElementsByTagName("img");
2321
2323
  if ($ && $.length) {
2322
- const _ = $[0];
2323
- return _.width > window.innerWidth || _.height > window.innerHeight;
2324
+ const D = $[0];
2325
+ return D.width > window.innerWidth || D.height > window.innerHeight;
2324
2326
  }
2325
2327
  }
2326
2328
  return !1;
2327
- }, [H, i]), De = () => {
2328
- h !== null && (b("Left"), C(h - 1));
2329
- }, ze = () => {
2330
- h !== null && (b("Right"), C(h + 1));
2331
- }, oe = h !== null && h > 0 && D.length > 1, re = h !== null && D.length - 1 > h;
2332
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(at, { visible: h !== null, onClick: dt }, /* @__PURE__ */ s.createElement(
2333
- jo,
2329
+ }, [H, i]), Ie = () => {
2330
+ h !== null && (b("Left"), y(h - 1));
2331
+ }, Oe = () => {
2332
+ h !== null && (b("Right"), y(h + 1));
2333
+ }, ce = h !== null && h > 0 && T.length > 1, le = h !== null && T.length - 1 > h;
2334
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(gt, { visible: h !== null, onClick: vt }, /* @__PURE__ */ s.createElement(
2335
+ Uo,
2334
2336
  {
2335
2337
  onMouseDown: () => d(),
2336
2338
  onMouseMove: () => d(),
2337
2339
  onTouchStart: () => d(),
2338
2340
  onKeyDown: () => d()
2339
2341
  },
2340
- /* @__PURE__ */ s.createElement(Ao, { show: p.toString() }, /* @__PURE__ */ s.createElement(
2341
- No,
2342
+ /* @__PURE__ */ s.createElement(Yo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
2343
+ Ao,
2342
2344
  {
2343
2345
  ref: g,
2344
2346
  buttons: [
2345
2347
  {
2346
2348
  id: "download",
2347
- onClick: mt,
2349
+ onClick: wt,
2348
2350
  icon: "download",
2349
2351
  ariaLabel: "Download image"
2350
2352
  },
2351
2353
  {
2352
2354
  id: "lightbox-close",
2353
- onClick: () => C(null),
2355
+ onClick: () => y(null),
2354
2356
  icon: "lightbox-close",
2355
2357
  ariaLabel: "Close"
2356
2358
  }
@@ -2358,88 +2360,88 @@ const Yn = 300, Un = ({
2358
2360
  }
2359
2361
  )),
2360
2362
  /* @__PURE__ */ s.createElement(
2361
- Ko,
2363
+ Qo,
2362
2364
  {
2363
2365
  scrolling: c.toString(),
2364
- isDraggable: gt.toString(),
2366
+ isDraggable: kt.toString(),
2365
2367
  ref: H,
2366
- onMouseMove: pt,
2367
- onMouseDown: ht,
2368
- onMouseUp: ft
2368
+ onMouseMove: $t,
2369
+ onMouseDown: xt,
2370
+ onMouseUp: Et
2369
2371
  },
2370
2372
  h !== null && /* @__PURE__ */ s.createElement(
2371
- _o,
2373
+ No,
2372
2374
  k(f({
2373
2375
  changeZoom: ($) => {
2374
2376
  a($);
2375
2377
  },
2376
2378
  zoomState: i
2377
2379
  }, e), {
2378
- image: D[h]
2380
+ image: T[h]
2379
2381
  })
2380
2382
  )
2381
2383
  ),
2382
2384
  /* @__PURE__ */ s.createElement(
2383
- Oo,
2385
+ Ko,
2384
2386
  {
2385
2387
  ref: z,
2386
2388
  show: p.toString(),
2387
2389
  buttons: [
2388
2390
  {
2389
2391
  id: "previous",
2390
- onClick: De,
2392
+ onClick: Ie,
2391
2393
  icon: "caret-left",
2392
2394
  circle: !0,
2393
- show: oe,
2395
+ show: ce,
2394
2396
  className: "nav-left",
2395
2397
  ariaLabel: "Navigate to previous image"
2396
2398
  },
2397
2399
  {
2398
2400
  id: "next",
2399
- onClick: ze,
2401
+ onClick: Oe,
2400
2402
  icon: "caret-right",
2401
2403
  circle: !0,
2402
- show: re,
2404
+ show: le,
2403
2405
  className: "nav-right",
2404
2406
  ariaLabel: "Navigate to next image"
2405
2407
  }
2406
2408
  ]
2407
2409
  }
2408
2410
  ),
2409
- /* @__PURE__ */ s.createElement(Fo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
2410
- Wo,
2411
+ /* @__PURE__ */ s.createElement(Xo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
2412
+ Fo,
2411
2413
  {
2412
2414
  buttons: [
2413
2415
  {
2414
2416
  id: "zoom-out",
2415
- onClick: () => Te(!1),
2417
+ onClick: () => Ne(!1),
2416
2418
  icon: "zoom-out",
2417
2419
  ariaLabel: "Zoom out"
2418
2420
  },
2419
2421
  {
2420
2422
  id: "zoom-in",
2421
- onClick: () => Te(!0),
2423
+ onClick: () => Ne(!0),
2422
2424
  icon: "zoom-in",
2423
2425
  ariaLabel: "Zoom in"
2424
2426
  }
2425
2427
  ]
2426
2428
  }
2427
- ), /* @__PURE__ */ s.createElement(Zo, { variant: "span" }, Math.trunc(i * 100), "%"))
2429
+ ), /* @__PURE__ */ s.createElement(qo, { variant: "span" }, Math.trunc(i * 100), "%"))
2428
2430
  )), /* @__PURE__ */ s.createElement(
2429
- Bo,
2431
+ Wo,
2430
2432
  {
2431
2433
  ref: v,
2432
- onClick: N,
2434
+ onClick: Z,
2433
2435
  onKeyDown: ($) => {
2434
- $.key === "Enter" && ($.preventDefault(), N());
2436
+ $.key === "Enter" && ($.preventDefault(), Z());
2435
2437
  },
2436
2438
  tabIndex: 0
2437
2439
  },
2438
- /* @__PURE__ */ s.createElement(Yo, k(f({}, e), { alt: ((_e = e.alt) == null ? void 0 : _e.toString()) || "" }))
2440
+ /* @__PURE__ */ s.createElement(Go, k(f({}, e), { alt: ((We = e.alt) == null ? void 0 : We.toString()) || "" }))
2439
2441
  ));
2440
- }, Re = V(
2442
+ }, Be = P(
2441
2443
  ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ s.createElement(
2442
- Io,
2444
+ Zo,
2443
2445
  {
2444
2446
  ref: o,
2445
2447
  show: e,
@@ -2447,7 +2449,7 @@ const Yn = 300, Un = ({
2447
2449
  },
2448
2450
  t.map(
2449
2451
  ({ id: r, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ s.createElement(
2450
- Po,
2452
+ jo,
2451
2453
  {
2452
2454
  key: r + p.toString(),
2453
2455
  circle: i.toString(),
@@ -2458,29 +2460,29 @@ const Yn = 300, Un = ({
2458
2460
  className: m,
2459
2461
  "aria-label": l
2460
2462
  },
2461
- /* @__PURE__ */ s.createElement(ne, { size: 24, symbol: { type: "Svg", content: c } })
2463
+ /* @__PURE__ */ s.createElement(ae, { size: 24, symbol: { type: "Svg", content: c } })
2462
2464
  )
2463
2465
  )
2464
2466
  )
2465
- ), ct = y.div`
2467
+ ), yt = C.div`
2466
2468
  transition: opacity 0.3s ease 0s;
2467
2469
  z-index: 5;
2468
2470
  ${(e) => e.show === "true" ? "opacity: 1;" : L`
2469
2471
  opacity: 0;
2470
2472
  pointer-events: none;
2471
2473
  `}
2472
- `, Bo = y(Se)`
2474
+ `, Wo = C(He)`
2473
2475
  display: inline-block !important;
2474
- `, Io = y(ct)`
2476
+ `, Zo = C(yt)`
2475
2477
  position: fixed;
2476
2478
  display: flex;
2477
2479
  gap: ${(e) => {
2478
2480
  var t;
2479
2481
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2480
2482
  }};
2481
- `, be = "39px", Po = y(de)`
2482
- width: ${be};
2483
- height: ${be};
2483
+ `, ke = "39px", jo = C(ye)`
2484
+ width: ${ke};
2485
+ height: ${ke};
2484
2486
  display: flex;
2485
2487
  justify-content: center;
2486
2488
  align-items: center;
@@ -2506,7 +2508,7 @@ const Yn = 300, Un = ({
2506
2508
  }
2507
2509
 
2508
2510
  &:focus-visible {
2509
- ${F(e)}
2511
+ ${X(e)}
2510
2512
  outline-color: #ffffff;
2511
2513
  background-color: transparent;
2512
2514
 
@@ -2528,7 +2530,7 @@ const Yn = 300, Un = ({
2528
2530
  outline-color: #ffffff;
2529
2531
  }
2530
2532
  &:focus-visible {
2531
- ${F(e)}
2533
+ ${X(e)}
2532
2534
  }
2533
2535
  `;
2534
2536
  }}
@@ -2543,7 +2545,7 @@ const Yn = 300, Un = ({
2543
2545
  opacity: 0;
2544
2546
  pointer-events: none;
2545
2547
  `}
2546
- `, No = y(Re)`
2548
+ `, Ao = C(Be)`
2547
2549
  top: ${(e) => {
2548
2550
  var t;
2549
2551
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2552,7 +2554,7 @@ const Yn = 300, Un = ({
2552
2554
  var t;
2553
2555
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2554
2556
  }};
2555
- `, Wo = y(Re)`
2557
+ `, Fo = C(Be)`
2556
2558
  bottom: ${(e) => {
2557
2559
  var t;
2558
2560
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2560,11 +2562,11 @@ const Yn = 300, Un = ({
2560
2562
  width: 100%;
2561
2563
  align-items: center;
2562
2564
  justify-content: center;
2563
- `, Oo = y(Re)`
2565
+ `, Ko = C(Be)`
2564
2566
  display: block;
2565
2567
  button {
2566
2568
  position: fixed;
2567
- top: calc(50% - calc(${be} / 2));
2569
+ top: calc(50% - calc(${ke} / 2));
2568
2570
  &:first-child {
2569
2571
  left: ${(e) => {
2570
2572
  var t;
@@ -2578,7 +2580,7 @@ const Yn = 300, Un = ({
2578
2580
  }};
2579
2581
  }
2580
2582
  }
2581
- `, Zo = y(J)`
2583
+ `, qo = C(re)`
2582
2584
  position: fixed;
2583
2585
  bottom: ${(e) => {
2584
2586
  var t;
@@ -2597,21 +2599,21 @@ const Yn = 300, Un = ({
2597
2599
  var t;
2598
2600
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2599
2601
  }};
2600
- `, lt = y(ct)`
2602
+ `, Ct = C(yt)`
2601
2603
  position: absolute;
2602
2604
  width: 100vw;
2603
2605
  height: 88px;
2604
2606
  left: 0px;
2605
2607
  z-index: 5;
2606
- `, jo = y.div`
2608
+ `, Uo = C.div`
2607
2609
  width: 100%;
2608
- `, Ao = y(lt)`
2610
+ `, Yo = C(Ct)`
2609
2611
  top: 0px;
2610
2612
  background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2611
- `, Fo = y(lt)`
2613
+ `, Xo = C(Ct)`
2612
2614
  bottom: 0px;
2613
2615
  background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2614
- `, Ko = y.div`
2616
+ `, Qo = C.div`
2615
2617
  width: 100%;
2616
2618
  height: 100vh;
2617
2619
  overflow: auto;
@@ -2620,41 +2622,41 @@ const Yn = 300, Un = ({
2620
2622
  white-space: nowrap;
2621
2623
  justify-content: center;
2622
2624
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2623
- `, Yo = y.img`
2625
+ `, Go = C.img`
2624
2626
  cursor: pointer;
2625
- `, Uo = Vo, qo = V(
2627
+ `, Jo = Oo, er = P(
2626
2628
  (l, a) => {
2627
2629
  var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2628
2630
  }, close: r = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2629
- const [c, m] = ot(), [p, d] = nt(!0), h = R(), C = R(ee()), E = X("Escape");
2631
+ const [c, m] = mt(), [p, d] = dt(!0), h = R(), y = R(se()), x = ee("Escape");
2630
2632
  w(() => {
2631
- (E || r) && m(!1);
2632
- }, [E, r]), w(() => {
2633
+ (x || r) && m(!1);
2634
+ }, [x, r]), w(() => {
2633
2635
  c && h.current && h.current.focus();
2634
- }, [c, h.current]), me("router:changed", () => {
2636
+ }, [c, h.current]), Ce("router:changed", () => {
2635
2637
  m(!1);
2636
2638
  });
2637
- const b = T(
2639
+ const b = _(
2638
2640
  (g) => {
2639
2641
  m(!1), o(g);
2640
2642
  },
2641
2643
  [o, m]
2642
2644
  );
2643
- we(a, () => ({
2645
+ Me(a, () => ({
2644
2646
  close() {
2645
2647
  m(!1);
2646
2648
  }
2647
2649
  }));
2648
- const v = T(() => ke(C.current, () => {
2650
+ const v = _(() => Te(y.current, () => {
2649
2651
  m(!1);
2650
- }), [C.current]);
2651
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(at, { visible: c, onClick: b }, /* @__PURE__ */ s.createElement(
2652
- Qo,
2652
+ }), [y.current]);
2653
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(gt, { visible: c, onClick: b }, /* @__PURE__ */ s.createElement(
2654
+ nr,
2653
2655
  k(f({
2654
2656
  className: M(
2655
2657
  e,
2656
2658
  "humany-modal",
2657
- `humany-modal-${C.current}`
2659
+ `humany-modal-${y.current}`
2658
2660
  ),
2659
2661
  css: p,
2660
2662
  tabIndex: -1
@@ -2662,13 +2664,13 @@ const Yn = 300, Un = ({
2662
2664
  ref: d
2663
2665
  }),
2664
2666
  /* @__PURE__ */ s.createElement(
2665
- Me,
2667
+ De,
2666
2668
  {
2667
2669
  onClick: () => m(!1),
2668
2670
  tabIndex: 0,
2669
2671
  ref: h
2670
2672
  },
2671
- /* @__PURE__ */ s.createElement(ne, { symbol: { type: "Svg", content: "close" } })
2673
+ /* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
2672
2674
  ),
2673
2675
  t
2674
2676
  )), s.cloneElement(n, {
@@ -2677,7 +2679,7 @@ const Yn = 300, Un = ({
2677
2679
  }
2678
2680
  }));
2679
2681
  }
2680
- ), Xo = qo, Qo = y.div`
2682
+ ), tr = er, nr = C.div`
2681
2683
  font-family: ${(e) => {
2682
2684
  var t;
2683
2685
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2693,10 +2695,10 @@ const Yn = 300, Un = ({
2693
2695
  var t;
2694
2696
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2695
2697
  }};
2696
- ${(e) => rt(e)}
2698
+ ${(e) => ht(e)}
2697
2699
  ${(e) => e.css && e.css}
2698
2700
  outline: none;
2699
- `, Go = ({
2701
+ `, or = ({
2700
2702
  className: e,
2701
2703
  trigger: t,
2702
2704
  header: n = "",
@@ -2708,15 +2710,15 @@ const Yn = 300, Un = ({
2708
2710
  cancelLabel: a = "",
2709
2711
  confirmLabel: l = ""
2710
2712
  }) => {
2711
- const u = R(), c = T(() => {
2713
+ const u = R(), c = _(() => {
2712
2714
  var p;
2713
2715
  r(), (p = u == null ? void 0 : u.current) == null || p.close();
2714
- }, [r]), m = T(() => {
2716
+ }, [r]), m = _(() => {
2715
2717
  var p;
2716
2718
  i(), (p = u == null ? void 0 : u.current) == null || p.close();
2717
2719
  }, [i]);
2718
- return /* @__PURE__ */ s.createElement(Jo, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ s.createElement(je, null, n), o && /* @__PURE__ */ s.createElement(je, null, o), l && /* @__PURE__ */ s.createElement(er, { onClick: m }, l), a && /* @__PURE__ */ s.createElement(tr, { onClick: c }, a));
2719
- }, Cs = Go, Jo = y(Xo)`
2720
+ return /* @__PURE__ */ s.createElement(rr, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ s.createElement(Xe, null, n), o && /* @__PURE__ */ s.createElement(Xe, null, o), l && /* @__PURE__ */ s.createElement(sr, { onClick: m }, l), a && /* @__PURE__ */ s.createElement(ir, { onClick: c }, a));
2721
+ }, Ts = or, rr = C(tr)`
2720
2722
  display: block;
2721
2723
 
2722
2724
  span {
@@ -2734,7 +2736,7 @@ const Yn = 300, Un = ({
2734
2736
  }};
2735
2737
  }
2736
2738
  }
2737
- `, er = y(de)`
2739
+ `, sr = C(ye)`
2738
2740
  display: inline-block;
2739
2741
  min-width: 50px;
2740
2742
  ${(e) => {
@@ -2762,9 +2764,9 @@ const Yn = 300, Un = ({
2762
2764
  }
2763
2765
 
2764
2766
  &:focus-visible {
2765
- ${F}
2767
+ ${X}
2766
2768
  }
2767
- `, tr = y(de)`
2769
+ `, ir = C(ye)`
2768
2770
  display: inline-block;
2769
2771
  min-width: 50px;
2770
2772
  ${(e) => {
@@ -2783,18 +2785,18 @@ const Yn = 300, Un = ({
2783
2785
  }};
2784
2786
 
2785
2787
  &:focus-visible {
2786
- ${F};
2788
+ ${X};
2787
2789
  }
2788
- `, nr = ({
2790
+ `, ar = ({
2789
2791
  header: e = "",
2790
2792
  link: t = "",
2791
2793
  suggestionHeader: n = "",
2792
2794
  suggestion: o = ""
2793
- }) => /* @__PURE__ */ s.createElement(or, null, /* @__PURE__ */ s.createElement(rr, null, /* @__PURE__ */ s.createElement(J, { variant: "h2" }, "404")), /* @__PURE__ */ s.createElement(sr, null, /* @__PURE__ */ s.createElement(J, { variant: "h3" }, e), /* @__PURE__ */ s.createElement(cr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ s.createElement(ir, null, /* @__PURE__ */ s.createElement("span", null, n), /* @__PURE__ */ s.createElement("ul", null, /* @__PURE__ */ s.createElement("li", null, o)))), ys = nr, or = y.div`
2795
+ }) => /* @__PURE__ */ s.createElement(cr, null, /* @__PURE__ */ s.createElement(lr, null, /* @__PURE__ */ s.createElement(re, { variant: "h2" }, "404")), /* @__PURE__ */ s.createElement(ur, null, /* @__PURE__ */ s.createElement(re, { variant: "h3" }, e), /* @__PURE__ */ s.createElement(hr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ s.createElement(dr, null, /* @__PURE__ */ s.createElement("span", null, n), /* @__PURE__ */ s.createElement("ul", null, /* @__PURE__ */ s.createElement("li", null, o)))), zs = ar, cr = C.div`
2794
2796
  display: flex;
2795
2797
  flex-wrap: wrap;
2796
- `, rr = y.div`
2797
- ${(e) => le(e)(
2798
+ `, lr = C.div`
2799
+ ${(e) => pe(e)(
2798
2800
  "h2",
2799
2801
  L`
2800
2802
  padding: 0;
@@ -2803,7 +2805,7 @@ const Yn = 300, Un = ({
2803
2805
  font-size: 7em;
2804
2806
  `
2805
2807
  )}
2806
- `, sr = y.div`
2808
+ `, ur = C.div`
2807
2809
  margin-left: ${(e) => {
2808
2810
  var t;
2809
2811
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2811,7 +2813,7 @@ const Yn = 300, Un = ({
2811
2813
 
2812
2814
  ${(e) => {
2813
2815
  var t;
2814
- return le(e)(
2816
+ return pe(e)(
2815
2817
  "h3",
2816
2818
  L`
2817
2819
  text-transform: uppercase;
@@ -2830,7 +2832,7 @@ const Yn = 300, Un = ({
2830
2832
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2831
2833
  }};
2832
2834
  }
2833
- `, ir = y.div`
2835
+ `, dr = C.div`
2834
2836
  margin-top: ${(e) => {
2835
2837
  var t;
2836
2838
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2841,7 +2843,7 @@ const Yn = 300, Un = ({
2841
2843
  font-weight: bold;
2842
2844
  }
2843
2845
  `;
2844
- class ar extends kt {
2846
+ class mr extends Ht {
2845
2847
  constructor() {
2846
2848
  super(...arguments), this.state = {
2847
2849
  boundFocus: !1
@@ -2880,49 +2882,49 @@ class ar extends kt {
2880
2882
  ) : null;
2881
2883
  }
2882
2884
  }
2883
- const bs = ar, cr = V(
2885
+ const Ds = mr, hr = P(
2884
2886
  (a, i) => {
2885
2887
  var l = a, { className: e, description: t, text: n, children: o } = l, r = S(l, ["className", "description", "text", "children"]);
2886
- return /* @__PURE__ */ s.createElement(Se, k(f({ className: M(e, "humany-text-link") }, r), { ref: i }), o, /* @__PURE__ */ s.createElement(Le, null, n), t ? /* @__PURE__ */ s.createElement(it, { html: t, className: "humany-description" }) : null);
2888
+ return /* @__PURE__ */ s.createElement(He, k(f({ className: M(e, "humany-text-link") }, r), { ref: i }), o, /* @__PURE__ */ s.createElement(ze, null, n), t ? /* @__PURE__ */ s.createElement(ft, { html: t, className: "humany-description" }) : null);
2887
2889
  }
2888
2890
  );
2889
- var lr = /* @__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))(lr || {});
2890
- const ur = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ s.createElement("span", { className: M(e, "humany-timestamp") }, dr(n, t)), vs = ur, Ae = (e) => `0${e}`.slice(-2);
2891
- function dr(e, t) {
2892
- const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${Ae(a)}-${Ae(l)}`;
2891
+ var pr = /* @__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))(pr || {});
2892
+ const fr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ s.createElement("span", { className: M(e, "humany-timestamp") }, gr(n, t)), Hs = fr, Qe = (e) => `0${e}`.slice(-2);
2893
+ function gr(e, t) {
2894
+ const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${Qe(a)}-${Qe(l)}`;
2893
2895
  return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? r : `${u} ${r}`;
2894
2896
  }
2895
- const mr = (i) => {
2897
+ const yr = (i) => {
2896
2898
  var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, r = S(a, ["className", "children", "content", "sticky"]);
2897
- const [l, u] = x(!1), c = R(ee()), m = R(), [{ x: p, y: d }, h] = st(l, c.current, m.current), C = (b) => {
2899
+ const [l, u] = E(!1), c = R(se()), m = R(), [{ x: p, y: d }, h] = pt(l, c.current, m.current), y = (b) => {
2898
2900
  const { target: v } = b;
2899
2901
  !m.current || !v || m.current !== v && !m.current.contains(v) && u(!1);
2900
2902
  };
2901
2903
  w(() => {
2902
2904
  if (!!o)
2903
- return window.addEventListener("click", C), () => {
2904
- window.removeEventListener("click", C);
2905
+ return window.addEventListener("click", y), () => {
2906
+ window.removeEventListener("click", y);
2905
2907
  };
2906
2908
  }, [l, o]);
2907
- const E = T(
2909
+ const x = _(
2908
2910
  (b, v) => {
2909
2911
  h(b, m.current), u(v);
2910
2912
  },
2911
2913
  [h, u]
2912
2914
  );
2913
2915
  return /* @__PURE__ */ s.createElement(
2914
- hr,
2916
+ Cr,
2915
2917
  {
2916
2918
  ref: m,
2917
2919
  className: "humany-tooltip-trigger",
2918
- onMouseEnter: o ? void 0 : (b) => E(b, !0),
2919
- onMouseLeave: o ? void 0 : (b) => E(b, !1),
2920
- onTouchEnd: o ? (b) => E(b, !l) : void 0,
2921
- onClick: o ? (b) => E(b, !l) : void 0
2920
+ onMouseEnter: o ? void 0 : (b) => x(b, !0),
2921
+ onMouseLeave: o ? void 0 : (b) => x(b, !1),
2922
+ onTouchEnd: o ? (b) => x(b, !l) : void 0,
2923
+ onClick: o ? (b) => x(b, !l) : void 0
2922
2924
  },
2923
2925
  t,
2924
- l && /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
2925
- pr,
2926
+ l && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
2927
+ br,
2926
2928
  f({
2927
2929
  className: M(e, "humany-tooltip-container"),
2928
2930
  x: p,
@@ -2931,10 +2933,10 @@ const mr = (i) => {
2931
2933
  n
2932
2934
  ))
2933
2935
  );
2934
- }, hr = y.div`
2936
+ }, Cr = C.div`
2935
2937
  display: flex;
2936
2938
  align-items: center;
2937
- `, pr = y.div`
2939
+ `, br = C.div`
2938
2940
  color: #ffffff;
2939
2941
  background: #161616;
2940
2942
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2970,7 +2972,7 @@ const mr = (i) => {
2970
2972
  let t = "";
2971
2973
  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;
2972
2974
  }};
2973
- `, ws = mr, fr = (e) => {
2975
+ `, Bs = yr, vr = (e) => {
2974
2976
  const {
2975
2977
  in: t,
2976
2978
  mountOnEnter: n = !0,
@@ -3012,7 +3014,7 @@ const mr = (i) => {
3012
3014
  }
3013
3015
  })();
3014
3016
  return /* @__PURE__ */ s.createElement(
3015
- Vt,
3017
+ Ot,
3016
3018
  {
3017
3019
  timeout: {
3018
3020
  enter: u && u.enter.duration || 0,
@@ -3024,9 +3026,9 @@ const mr = (i) => {
3024
3026
  unmountOnExit: o,
3025
3027
  onEnter: (c) => c.clientHeight
3026
3028
  },
3027
- (c) => i && i(c, u && Ce.compose(c, u))
3029
+ (c) => i && i(c, u && $e.compose(c, u))
3028
3030
  );
3029
- }, Es = fr, gr = V(
3031
+ }, Ps = vr, wr = P(
3030
3032
  (l, a) => {
3031
3033
  var u = l, { className: e, children: t, onClick: n = () => {
3032
3034
  }, widgetName: o, activationOptions: r } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
@@ -3041,29 +3043,29 @@ const mr = (i) => {
3041
3043
  };
3042
3044
  }, [o]);
3043
3045
  const p = (h) => {
3044
- const C = m(), E = h.currentTarget;
3045
- if (C) {
3046
+ const y = m(), x = h.currentTarget;
3047
+ if (y) {
3046
3048
  const b = () => {
3047
- C.invoke("renderState").then(
3048
- (v) => v === ae.open ? C.invoke("close") : C.invoke("open")
3049
+ y.invoke("renderState").then(
3050
+ (v) => v === me.open ? y.invoke("close") : y.invoke("open")
3049
3051
  ).then(() => {
3050
- C.events.subscribeOnce("widget:area-rendered", (v, g) => {
3052
+ y.events.subscribeOnce("widget:area-rendered", (v, g) => {
3051
3053
  c.get(
3052
3054
  "widgetDOMElement"
3053
- ) && C.events.dispatch("widget:modal-opened", {
3054
- name: C.name,
3055
- ref: E
3055
+ ) && y.events.dispatch("widget:modal-opened", {
3056
+ name: y.name,
3057
+ ref: x
3056
3058
  });
3057
3059
  });
3058
3060
  });
3059
3061
  };
3060
- C.state === xt.Deactivated ? C.activate(r).then(() => C.invoke("attach")).then(b) : b();
3062
+ y.state === Dt.Deactivated ? y.activate(r).then(() => y.invoke("attach")).then(b) : b();
3061
3063
  }
3062
3064
  }, d = (h) => {
3063
3065
  h.key === "Enter" && (h.preventDefault(), p(h));
3064
3066
  };
3065
3067
  return /* @__PURE__ */ s.createElement(
3066
- Se,
3068
+ He,
3067
3069
  k(f({
3068
3070
  className: M(e, "humany-widget-link"),
3069
3071
  onKeyDown: d,
@@ -3076,16 +3078,16 @@ const mr = (i) => {
3076
3078
  t
3077
3079
  );
3078
3080
  }
3079
- ), $s = V(
3081
+ ), Vs = P(
3080
3082
  ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3081
- const r = I(), i = ce(() => {
3083
+ const r = I(), i = he(() => {
3082
3084
  if (!r)
3083
3085
  return null;
3084
3086
  const a = r.get("widgetDOMElement");
3085
3087
  return !a || !a.childElementCount ? null : a.children[0];
3086
3088
  }, [r]);
3087
- return i ? /* @__PURE__ */ s.createElement(te, { elementId: e, parent: i }, /* @__PURE__ */ s.createElement(
3088
- Cr,
3089
+ return i ? /* @__PURE__ */ s.createElement(ie, { elementId: e, parent: i }, /* @__PURE__ */ s.createElement(
3090
+ xr,
3089
3091
  {
3090
3092
  className: M("humany-widget-overlay-outlet", t),
3091
3093
  ref: o
@@ -3093,7 +3095,7 @@ const mr = (i) => {
3093
3095
  n
3094
3096
  )) : null;
3095
3097
  }
3096
- ), Cr = y.div`
3098
+ ), xr = C.div`
3097
3099
  background-color: #ffffff;
3098
3100
  position: absolute;
3099
3101
  top: 0;
@@ -3103,40 +3105,309 @@ const mr = (i) => {
3103
3105
  z-index: 10;
3104
3106
  width: 100%;
3105
3107
  height: 100%;
3106
- `, yr = (e, t, n, o, r) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
3108
+ `, $r = (e, t, n, o, r) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
3107
3109
  t,
3108
- Lt(() => n)
3109
- ), Ye(e, t, o || (() => {
3110
- }), t, r))), xs = yr, br = (e, t, n, o, r) => ie(void 0, null, function* () {
3110
+ Bt(() => n)
3111
+ ), et(e, t, o || (() => {
3112
+ }), t, r))), Ns = $r, Er = (e, t, n, o, r) => de(void 0, null, function* () {
3111
3113
  const i = yield e.getAsync("componentResolver");
3112
- return console.log("registering component", t, n), i.registerComponent(t, () => n), yield Ye(e, t, o || (() => {
3114
+ return console.log("registering component", t, n), i.registerComponent(t, () => n), et(e, t, o || (() => {
3113
3115
  }), t, r);
3114
- }), ks = br;
3115
- var vr = Object.defineProperty, wr = Object.getOwnPropertyDescriptor, ut = (e, t, n, o) => {
3116
- for (var r = o > 1 ? void 0 : o ? wr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3116
+ }), Is = Er, kr = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
3117
+ `;
3118
+ class bt extends fe {
3119
+ render() {
3120
+ return O`
3121
+ <!-- className={appendClassNames(className, 'humany-button')}
3122
+ {...convertToStringAttributes(other)} -->
3123
+ <button type="button" part="container" class="humany-button">
3124
+ <slot />
3125
+ </button>
3126
+ `;
3127
+ }
3128
+ }
3129
+ bt.styles = nt(kr);
3130
+ customElements.get("ui-button") || customElements.define("ui-button", bt);
3131
+ var Lr = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, Sr = (e, t, n, o) => {
3132
+ for (var r = o > 1 ? void 0 : o ? Mr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3117
3133
  (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3118
- return o && r && vr(t, n, r), r;
3134
+ return o && r && Lr(t, n, r), r;
3119
3135
  };
3120
- const Er = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
3121
- let ue = class extends Tt {
3136
+ class Pe extends fe {
3122
3137
  constructor() {
3123
- super(...arguments), this.variant = "span";
3138
+ super(), this.html = "";
3124
3139
  }
3125
- _getTag(e) {
3126
- const t = window.getComputedStyle(this).getPropertyValue(`--typography-${e}`);
3127
- return t ? t.trim() : e;
3140
+ render() {
3141
+ return ot` <div part="container" class="humany-html">${rt(this.html)}</div> `;
3142
+ }
3143
+ }
3144
+ Pe.styles = [
3145
+ ge`
3146
+ img {
3147
+ display: none;
3148
+ }
3149
+ `
3150
+ ];
3151
+ Sr([
3152
+ N({ type: String })
3153
+ ], Pe.prototype, "html", 2);
3154
+ customElements.get("ui-html") || customElements.define("ui-html", Pe);
3155
+ var Rr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, oe = (e, t, n, o) => {
3156
+ for (var r = o > 1 ? void 0 : o ? _r(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3157
+ (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3158
+ return o && r && Rr(t, n, r), r;
3159
+ };
3160
+ class Q extends fe {
3161
+ constructor() {
3162
+ super(), this.symbol = {
3163
+ content: "",
3164
+ type: ""
3165
+ }, this.elementStyle = {}, this.size = 12, this.text = "", this.backgroundSize = "contain", this.styles = { minWidth: `${this.size}px` };
3128
3166
  }
3129
3167
  render() {
3130
- const e = Er(this.variant) ? this._getTag(this.variant) : this.variant, t = _t(e);
3131
- return Ht`
3132
- <${t}>
3168
+ const { type: t, content: n } = this.symbol, o = {
3169
+ "aria-label": this.text,
3170
+ role: "presentation",
3171
+ part: "container"
3172
+ };
3173
+ switch (t) {
3174
+ case "Uri": {
3175
+ const r = {
3176
+ backgroundSize: this.backgroundSize,
3177
+ backgroundImage: `url('${n}')`,
3178
+ backgroundRepeat: "no-repeat",
3179
+ backgroundPosition: "center",
3180
+ backgroundAttachment: "center"
3181
+ }, i = f(f({}, r), this.elementStyle);
3182
+ return O`
3183
+ <i
3184
+ class="humany-icon humany-custom-icon"
3185
+ title=${this.text}
3186
+ style=${U(i)}
3187
+ ${B(o)}
3188
+ />
3189
+ `;
3190
+ }
3191
+ case "Svg": {
3192
+ const r = {
3193
+ class: "humany-icon",
3194
+ width: `${this.size}`,
3195
+ fill: "none",
3196
+ xmlns: "http://www.w3.org/2000/svg"
3197
+ };
3198
+ switch (n) {
3199
+ case "search":
3200
+ return O`
3201
+ <svg
3202
+ viewBox="0 0 32 30"
3203
+ style=${U(this.styles)}
3204
+ ${B(o)}
3205
+ ${B(r)}
3206
+ >
3207
+ <circle
3208
+ cx="14.8457"
3209
+ cy="14.5175"
3210
+ r="8.14359"
3211
+ stroke="currentColor"
3212
+ transform="rotate(45 14.8457 14.5175)"
3213
+ />
3214
+ <line
3215
+ x1="21.1001"
3216
+ y1="20.4865"
3217
+ x2="26.5798"
3218
+ y2="25.9661"
3219
+ stroke="currentColor"
3220
+ />
3221
+ </svg>
3222
+ `;
3223
+ case "clear":
3224
+ return O`
3225
+ <svg
3226
+ viewBox="0 0 27 27"
3227
+ style=${U(this.styles)}
3228
+ ${B(o)}
3229
+ ${B(r)}
3230
+ >
3231
+ <circle
3232
+ cx="13.4351"
3233
+ cy="13.435"
3234
+ r="9"
3235
+ transform="rotate(45 13.4351 13.435)"
3236
+ stroke="currentColor"
3237
+ />
3238
+ <line
3239
+ x1="16.6172"
3240
+ y1="10.2531"
3241
+ x2="10.2533"
3242
+ y2="16.6171"
3243
+ stroke="currentColor"
3244
+ />
3245
+ <line
3246
+ x1="16.6171"
3247
+ y1="16.617"
3248
+ x2="10.2532"
3249
+ y2="10.2531"
3250
+ stroke="currentColor"
3251
+ />
3252
+ </svg>
3253
+ `;
3254
+ case "close":
3255
+ return O`
3256
+ <svg
3257
+ viewBox="0 0 13 13"
3258
+ style=${U(this.styles)}
3259
+ ${B(o)}
3260
+ ${B(r)}
3261
+ >
3262
+ <path d="M12.3068 0.50647L1.27246 11.7273" stroke="currentColor" />
3263
+ <path d="M12.2812 11.9473L1.24686 0.726451" stroke="currentColor" />
3264
+ </svg>
3265
+ `;
3266
+ case "caret-right":
3267
+ return O`
3268
+ <svg
3269
+ viewBox="0 0 14 14"
3270
+ style=${U(this.styles)}
3271
+ ${B(o)}
3272
+ ${B(r)}
3273
+ >
3274
+ <line
3275
+ x1="4.13"
3276
+ y1="1.05"
3277
+ x2="10.13"
3278
+ y2="7.05"
3279
+ stroke="currentColor"
3280
+ />
3281
+ <line
3282
+ x1="10.13"
3283
+ y1="6.95"
3284
+ x2="4.13"
3285
+ y2="12.95"
3286
+ stroke="currentColor"
3287
+ />
3288
+ </svg>
3289
+ `;
3290
+ case "caret-left":
3291
+ return O`
3292
+ <svg
3293
+ viewBox="0 0 14 14"
3294
+ style=${U(this.styles)}
3295
+ ${B(o)}
3296
+ ${B(r)}
3297
+ >
3298
+ <line
3299
+ x1="10.13"
3300
+ y1="12.95"
3301
+ x2="4.13"
3302
+ y2="6.95"
3303
+ stroke="currentColor"
3304
+ />
3305
+ <line
3306
+ x1="4.13"
3307
+ y1="7.05"
3308
+ x2="10.13"
3309
+ y2="1.05"
3310
+ stroke="currentColor"
3311
+ />
3312
+ </svg>
3313
+ `;
3314
+ case "caret-up":
3315
+ return this.styles.transform = "rotate(180deg)", O`
3316
+ <svg
3317
+ viewBox="0 0 14 14"
3318
+ style=${U(this.styles)}
3319
+ ${B(o)}
3320
+ ${B(r)}
3321
+ >
3322
+ <line x1="13.09" y1="3.99" x2="7.1" y2="9.99" stroke="black" />
3323
+ <line x1="7.19" y1="9.99" x2="1.19" y2="3.99" stroke="black" />
3324
+ </svg>
3325
+ `;
3326
+ case "caret-down":
3327
+ return O`
3328
+ <svg
3329
+ viewBox="0 0 14 14"
3330
+ style=${U(this.styles)}
3331
+ ${B(o)}
3332
+ ${B(r)}
3333
+ >
3334
+ <line
3335
+ x1="13.09"
3336
+ y1="3.99"
3337
+ x2="7.1"
3338
+ y2="9.99"
3339
+ stroke="currentcolor"
3340
+ />
3341
+ <line
3342
+ x1="7.19"
3343
+ y1="9.99"
3344
+ x2="1.19"
3345
+ y2="3.99"
3346
+ stroke="currentcolor"
3347
+ />
3348
+ </svg>
3349
+ `;
3350
+ }
3351
+ }
3352
+ }
3353
+ return It;
3354
+ }
3355
+ }
3356
+ Q.styles = [
3357
+ ge`
3358
+ :host {
3359
+ color: var(--icon-color, inherit);
3360
+ }
3361
+ i,
3362
+ svg {
3363
+ color: var(--icon-color, inherit);
3364
+ }
3365
+ `
3366
+ ];
3367
+ oe([
3368
+ N({ type: Object })
3369
+ ], Q.prototype, "symbol", 2);
3370
+ oe([
3371
+ N({ type: Object })
3372
+ ], Q.prototype, "elementStyle", 2);
3373
+ oe([
3374
+ N({ type: Number })
3375
+ ], Q.prototype, "size", 2);
3376
+ oe([
3377
+ N({ type: String })
3378
+ ], Q.prototype, "text", 2);
3379
+ oe([
3380
+ N({ type: String })
3381
+ ], Q.prototype, "backgroundSize", 2);
3382
+ oe([
3383
+ Y()
3384
+ ], Q.prototype, "styles", 2);
3385
+ customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
3386
+ var Tr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Dr = (e, t, n, o) => {
3387
+ for (var r = o > 1 ? void 0 : o ? zr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3388
+ (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3389
+ return o && r && Tr(t, n, r), r;
3390
+ };
3391
+ const Hr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
3392
+ class Ve extends fe {
3393
+ constructor() {
3394
+ super(), this.variant = "span";
3395
+ }
3396
+ _getTag(t) {
3397
+ const n = window.getComputedStyle(this).getPropertyValue(`--typography-${t}`);
3398
+ return n ? n.trim() : t;
3399
+ }
3400
+ render() {
3401
+ const t = Hr(this.variant) ? this._getTag(this.variant) : this.variant, n = rt(t);
3402
+ return ot`
3403
+ <${n}>
3133
3404
  <slot />
3134
- </${t}>
3405
+ </${n}>
3135
3406
  `;
3136
3407
  }
3137
- };
3138
- ue.styles = [
3139
- qe`
3408
+ }
3409
+ Ve.styles = [
3410
+ ge`
3140
3411
  h1,
3141
3412
  h2,
3142
3413
  h3,
@@ -3153,13 +3424,11 @@ ue.styles = [
3153
3424
  }
3154
3425
  `
3155
3426
  ];
3156
- ut([
3157
- q({ type: String })
3158
- ], ue.prototype, "variant", 2);
3159
- ue = ut([
3160
- zt("ui-typography")
3161
- ], ue);
3162
- class Ls {
3427
+ Dr([
3428
+ N({ type: String })
3429
+ ], Ve.prototype, "variant", 2);
3430
+ customElements.get("ui-typography") || customElements.define("ui-typography", Ve);
3431
+ class Os {
3163
3432
  constructor(t) {
3164
3433
  (this.host = t).addController(this);
3165
3434
  }
@@ -3174,12 +3443,12 @@ class Ls {
3174
3443
  this.host.removeEventListener("set-properties", this.propertyChangeHandler);
3175
3444
  }
3176
3445
  }
3177
- class Ms {
3446
+ class Ws {
3178
3447
  constructor(t) {
3179
3448
  this.nodeId = "", this._host = t;
3180
3449
  }
3181
3450
  initialize() {
3182
- return ie(this, null, function* () {
3451
+ return de(this, null, function* () {
3183
3452
  if (this.nodeId = this._host.getAttribute("nodeId"), !this.nodeId) {
3184
3453
  console.warn("Could not get node id in DataProvider.");
3185
3454
  return;
@@ -3188,7 +3457,7 @@ class Ms {
3188
3457
  console.warn("Could not get data in DataProvider. Container was not defined.");
3189
3458
  return;
3190
3459
  }
3191
- const t = yield Ee.getInstance(this.container);
3460
+ const t = yield Se.getInstance(this.container);
3192
3461
  if (this.node = t.nodes.get(this.nodeId), !this.node) {
3193
3462
  console.warn(`Could not get component node with ID: ${this.nodeId}.`);
3194
3463
  return;
@@ -3205,7 +3474,7 @@ class Ms {
3205
3474
  return this._host.dispatchEvent(n), n.detail.instance;
3206
3475
  }
3207
3476
  }
3208
- const ve = "context.connectEvent", Ss = Qe(
3477
+ const Le = "context.connectEvent", Zs = it(
3209
3478
  (e) => {
3210
3479
  class t extends e {
3211
3480
  constructor() {
@@ -3219,7 +3488,7 @@ const ve = "context.connectEvent", Ss = Qe(
3219
3488
  _injectContext(o) {
3220
3489
  const r = (a, l) => {
3221
3490
  this._contextValueChanged(o, a, l);
3222
- }, i = new CustomEvent(ve, {
3491
+ }, i = new CustomEvent(Le, {
3223
3492
  bubbles: !0,
3224
3493
  cancelable: !0,
3225
3494
  composed: !0,
@@ -3240,7 +3509,7 @@ const ve = "context.connectEvent", Ss = Qe(
3240
3509
  }
3241
3510
  return t;
3242
3511
  }
3243
- ), $r = Qe(
3512
+ ), Br = it(
3244
3513
  (e) => {
3245
3514
  class t extends e {
3246
3515
  constructor() {
@@ -3262,7 +3531,7 @@ const ve = "context.connectEvent", Ss = Qe(
3262
3531
  }, a.callback(this[o]);
3263
3532
  }
3264
3533
  };
3265
- this.addEventListener(ve, r), this._providedContexts.set(o, {
3534
+ this.addEventListener(Le, r), this._providedContexts.set(o, {
3266
3535
  listener: r,
3267
3536
  callbacks: /* @__PURE__ */ new Set()
3268
3537
  });
@@ -3282,32 +3551,32 @@ const ve = "context.connectEvent", Ss = Qe(
3282
3551
  }
3283
3552
  disconnectedCallback() {
3284
3553
  for (const o of this._providedContexts.values())
3285
- this.removeEventListener(ve, o.listener);
3554
+ this.removeEventListener(Le, o.listener);
3286
3555
  super.disconnectedCallback();
3287
3556
  }
3288
3557
  }
3289
3558
  return t;
3290
3559
  }
3291
3560
  );
3292
- var xr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, Fe = (e, t, n, o) => {
3293
- for (var r = o > 1 ? void 0 : o ? kr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3561
+ var Pr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, Ge = (e, t, n, o) => {
3562
+ for (var r = o > 1 ? void 0 : o ? Vr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3294
3563
  (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3295
- return o && r && xr(t, n, r), r;
3564
+ return o && r && Pr(t, n, r), r;
3296
3565
  };
3297
- const Rs = (e) => {
3566
+ const js = (e) => {
3298
3567
  class t extends e {
3299
3568
  constructor(...o) {
3300
- super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => ie(this, null, function* () {
3569
+ super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => de(this, null, function* () {
3301
3570
  this.hasPendingChildren = !0, this.pendingCount++, yield r.detail.promise, this.pendingCount--, this.hasPendingChildren = this.pendingCount !== 0;
3302
3571
  }));
3303
3572
  }
3304
3573
  }
3305
- return Fe([
3574
+ return Ge([
3306
3575
  Y()
3307
- ], t.prototype, "hasPendingChildren", 2), Fe([
3576
+ ], t.prototype, "hasPendingChildren", 2), Ge([
3308
3577
  Y()
3309
3578
  ], t.prototype, "pendingCount", 2), t;
3310
- }, Ts = (e) => {
3579
+ }, As = (e) => {
3311
3580
  class t extends e {
3312
3581
  constructor(...o) {
3313
3582
  super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
@@ -3320,7 +3589,7 @@ const Rs = (e) => {
3320
3589
  }
3321
3590
  }
3322
3591
  return t;
3323
- }, Lr = (e) => {
3592
+ }, Nr = (e) => {
3324
3593
  class t extends e {
3325
3594
  requestInstance(o) {
3326
3595
  const r = new CustomEvent("request-instance", {
@@ -3333,18 +3602,18 @@ const Rs = (e) => {
3333
3602
  }
3334
3603
  }
3335
3604
  return t;
3336
- }, Mr = (e) => {
3337
- var n, o, r, i, a, l, u, c, m, p, d, h, C, E, b, v, g, z, H, D, N;
3605
+ }, Ir = (e) => {
3606
+ var n, o, r, i, a, l, u, c, m, p, d, h, y, x, b, v, g, z, H, T, Z;
3338
3607
  const t = {};
3339
- return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (i = e.fonts) != null && i.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (a = e.fonts) != null && a.large && (t["--fonts-large"] = `${e.fonts.large}`), (l = e.fonts) != null && l.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (u = e.colors) != null && u.accent && (t["--colors-accent"] = `${e.colors.accent}`), (c = e.colors) != null && c.link && (t["--colors-link"] = `${e.colors.link}`), (m = e.colors) != null && m.primary && (t["--colors-primary"] = `${e.colors.primary}`), (p = e.colors) != null && p.text && (t["--colors-text"] = `${e.colors.text}`), (d = e.colors) != null && d.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (h = e.colors) != null && h.warning && (t["--colors-warning"] = `${e.colors.warning}`), (C = e.accessibility) != null && C.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (b = (E = e.accessibility) == null ? void 0 : E.colors) != null && b.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (g = (v = e.accessibility) == null ? void 0 : v.colors) != null && g.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (z = e.sizes) != null && z.small && (t["--size-small"] = `${e.sizes.small}`), (H = e.sizes) != null && H.normal && (t["--size-normal"] = `${e.sizes.normal}`), (D = e.sizes) != null && D.medium && (t["--size-medium"] = `${e.sizes.medium}`), (N = e.sizes) != null && N.large && (t["--size-large"] = `${e.sizes.large}`), e.typographyVariantMapping && (e.typographyVariantMapping.h1 && (t["--typography-h1"] = `${e.typographyVariantMapping.h1}`), e.typographyVariantMapping.h2 && (t["--typography-h2"] = `${e.typographyVariantMapping.h2}`), e.typographyVariantMapping.h3 && (t["--typography-h3"] = `${e.typographyVariantMapping.h3}`), e.typographyVariantMapping.h4 && (t["--typography-h4"] = `${e.typographyVariantMapping.h4}`), e.typographyVariantMapping.h5 && (t["--typography-h5"] = `${e.typographyVariantMapping.h5}`), e.typographyVariantMapping.h6 && (t["--typography-h6"] = `${e.typographyVariantMapping.h6}`)), t;
3608
+ return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (i = e.fonts) != null && i.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (a = e.fonts) != null && a.large && (t["--fonts-large"] = `${e.fonts.large}`), (l = e.fonts) != null && l.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (u = e.colors) != null && u.accent && (t["--colors-accent"] = `${e.colors.accent}`), (c = e.colors) != null && c.link && (t["--colors-link"] = `${e.colors.link}`), (m = e.colors) != null && m.primary && (t["--colors-primary"] = `${e.colors.primary}`), (p = e.colors) != null && p.text && (t["--colors-text"] = `${e.colors.text}`), (d = e.colors) != null && d.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (h = e.colors) != null && h.warning && (t["--colors-warning"] = `${e.colors.warning}`), (y = e.accessibility) != null && y.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (b = (x = e.accessibility) == null ? void 0 : x.colors) != null && b.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (g = (v = e.accessibility) == null ? void 0 : v.colors) != null && g.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (z = e.sizes) != null && z.small && (t["--size-small"] = `${e.sizes.small}`), (H = e.sizes) != null && H.normal && (t["--size-normal"] = `${e.sizes.normal}`), (T = e.sizes) != null && T.medium && (t["--size-medium"] = `${e.sizes.medium}`), (Z = e.sizes) != null && Z.large && (t["--size-large"] = `${e.sizes.large}`), e.typographyVariantMapping && (e.typographyVariantMapping.h1 && (t["--typography-h1"] = `${e.typographyVariantMapping.h1}`), e.typographyVariantMapping.h2 && (t["--typography-h2"] = `${e.typographyVariantMapping.h2}`), e.typographyVariantMapping.h3 && (t["--typography-h3"] = `${e.typographyVariantMapping.h3}`), e.typographyVariantMapping.h4 && (t["--typography-h4"] = `${e.typographyVariantMapping.h4}`), e.typographyVariantMapping.h5 && (t["--typography-h5"] = `${e.typographyVariantMapping.h5}`), e.typographyVariantMapping.h6 && (t["--typography-h6"] = `${e.typographyVariantMapping.h6}`)), t;
3340
3609
  };
3341
- var Sr = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, P = (e, t, n, o) => {
3342
- for (var r = o > 1 ? void 0 : o ? Rr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3610
+ var Or = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, W = (e, t, n, o) => {
3611
+ for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3343
3612
  (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3344
- return o && r && Sr(t, n, r), r;
3613
+ return o && r && Or(t, n, r), r;
3345
3614
  };
3346
- const Tr = (e) => `w-${e}`, Ds = (e) => {
3347
- class t extends $r(Lr(e)) {
3615
+ const Zr = (e) => `w-${e}`, Fs = (e) => {
3616
+ class t extends Br(Nr(e)) {
3348
3617
  constructor() {
3349
3618
  super(), this.listeners = [], this.setColumns = (o) => {
3350
3619
  this.columns = o;
@@ -3363,14 +3632,17 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
3363
3632
  })
3364
3633
  );
3365
3634
  }
3635
+ requestNodeDescriptor(o) {
3636
+ o.stopPropagation(), o.detail.descriptor = this._descriptor;
3637
+ }
3366
3638
  connectedCallback() {
3367
- super.connectedCallback(), this.container = this.requestInstance("container"), this.container && Promise.all([
3368
- Ee.getInstance(this.container),
3639
+ super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
3640
+ Se.getInstance(this.container),
3369
3641
  this.container.getAsync("componentResolver")
3370
3642
  ]).then((o) => {
3371
3643
  const r = o[0], i = o[1], a = r.nodes.get(this.nodeId || "");
3372
3644
  if (a) {
3373
- this._descriptor = Ke(a, this.branch), this._properties = a.attributes.properties, this._context = a.attributes.context, this._layout = a.attributes.layout, this.setProperties(a.attributes.properties), this.listeners.push(
3645
+ this._descriptor = Je(a, this.branch), this._properties = a.attributes.properties, this._context = a.attributes.context, this._layout = a.attributes.layout, this.setProperties(a.attributes.properties), this.listeners.push(
3374
3646
  r.events.subscribe(
3375
3647
  "components:properties-changed",
3376
3648
  (m, p) => {
@@ -3402,7 +3674,7 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
3402
3674
  );
3403
3675
  return;
3404
3676
  }
3405
- const u = Tr(this._descriptor.type);
3677
+ const u = Zr(this._descriptor.type);
3406
3678
  if (customElements.get(u))
3407
3679
  return;
3408
3680
  const c = i.getComponent(this._descriptor.type);
@@ -3419,22 +3691,22 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
3419
3691
  disconnectedCallback() {
3420
3692
  this.listeners.forEach((o) => {
3421
3693
  o();
3422
- });
3694
+ }), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
3423
3695
  }
3424
3696
  _getContextStyles() {
3425
- return this._context ? Mr(this._context) : {};
3697
+ return this._context ? Ir(this._context) : {};
3426
3698
  }
3427
3699
  render() {
3428
- const o = super.render(), r = this._getContextStyles(), i = Ne`
3700
+ const o = super.render(), r = this._getContextStyles(), i = O`
3429
3701
  <style>
3430
3702
  :host {
3431
- ${Object.entries(r).map(([a, l]) => qe`
3432
- ${Dt(`${a}: ${l};`)}
3703
+ ${Object.entries(r).map(([a, l]) => ge`
3704
+ ${nt(`${a}: ${l};`)}
3433
3705
  `)}
3434
3706
  }
3435
3707
  </style>
3436
3708
  `;
3437
- return Ne`
3709
+ return O`
3438
3710
  <style>
3439
3711
  :host {
3440
3712
  --size: ${this._layout.size || "full"};
@@ -3447,128 +3719,131 @@ const Tr = (e) => `w-${e}`, Ds = (e) => {
3447
3719
  `;
3448
3720
  }
3449
3721
  }
3450
- return P([
3451
- q({ type: String })
3452
- ], t.prototype, "nodeId", 2), P([
3453
- q({ type: String })
3454
- ], t.prototype, "branch", 2), P([
3455
- q({ type: String })
3456
- ], t.prototype, "width", 2), P([
3457
- q({ type: Number })
3458
- ], t.prototype, "_columns", 2), P([
3459
- q({ type: Number })
3460
- ], t.prototype, "columns", 2), P([
3722
+ return W([
3723
+ N({ type: String })
3724
+ ], t.prototype, "nodeId", 2), W([
3725
+ N({ type: String })
3726
+ ], t.prototype, "branch", 2), W([
3727
+ N({ type: String })
3728
+ ], t.prototype, "width", 2), W([
3729
+ N({ type: Number })
3730
+ ], t.prototype, "_columns", 2), W([
3731
+ N({ type: Number })
3732
+ ], t.prototype, "columns", 2), W([
3461
3733
  Y()
3462
- ], t.prototype, "_width", 2), P([
3734
+ ], t.prototype, "_width", 2), W([
3463
3735
  Y()
3464
- ], t.prototype, "_descriptor", 2), P([
3736
+ ], t.prototype, "_descriptor", 2), W([
3465
3737
  Y()
3466
- ], t.prototype, "_properties", 2), P([
3738
+ ], t.prototype, "_properties", 2), W([
3467
3739
  Y()
3468
- ], t.prototype, "_context", 2), P([
3740
+ ], t.prototype, "_context", 2), W([
3469
3741
  Y()
3470
3742
  ], t.prototype, "_layout", 2), t;
3471
3743
  };
3472
3744
  export {
3473
- Jt as AnchorLink,
3474
- de as Button,
3475
- Ur as Checkbox,
3476
- on as ColumnContext,
3477
- Je as ComponentNodeContext,
3478
- rn as ComponentPropertyContext,
3479
- Cs as Confirm,
3480
- Ss as ConsumerMixin,
3481
- nn as ContainerContext,
3482
- an as ConversationContext,
3483
- Ms as DataProvider,
3484
- lr as DateFormats,
3485
- ms as Drawer,
3486
- Kn as DrawerAnimationType,
3487
- hs as Dropdown,
3488
- so as Empty,
3489
- ps as Grid,
3490
- it as Html,
3491
- lo as Icon,
3492
- fs as Input,
3493
- ho as ItemList,
3494
- gs as ItemTree,
3495
- Uo as Lightbox,
3496
- Se as Link,
3497
- uo as List,
3498
- Xo as Modal,
3499
- Ls as NodeConnector,
3500
- ys as NotFound,
3501
- at as Overlay,
3502
- mo as Paragraph,
3503
- Rs as PendingState,
3504
- te as Portal,
3505
- Ts as ProviderMixin,
3506
- Lr as Requester,
3507
- fo as RouteLink,
3508
- sn as RoutingContext,
3509
- je as StyledText,
3510
- ne as SymbolBadge,
3511
- bs as TabStop,
3512
- Le as Text,
3513
- cr as TextLink,
3514
- vs as Timestamp,
3515
- ws as Tooltip,
3516
- Es as TransitionComponent,
3517
- J as Typography,
3518
- ue as TypographyUi,
3519
- Ds as WidgetComponentMixin,
3520
- gr as WidgetLink,
3521
- $s as WidgetOverlayOutlet,
3522
- F as borderTabStyle,
3523
- Ze as browser,
3524
- In as buttonCss,
3525
- rt as contentBox,
3526
- B as convertToStringAttributes,
3527
- Yr as createEmptyComponent,
3528
- xs as createReactComponent,
3529
- ks as createWebComponent,
3530
- Qt as defaultRenderInstructions,
3531
- Ft as embeddedLinkMapper,
3532
- Yt as filterCssProps,
3533
- Kt as filterCssPropsStyle,
3534
- Ut as genericHashLink,
3535
- ds as genericHtml,
3536
- le as headingElement,
3537
- Xt as imageLightboxRenderer,
3538
- cs as invertedHoverButton,
3539
- us as itemList,
3540
- Pn as linkTabStyle,
3541
- Nn as list,
3542
- ls as paddedBorderTabStyle,
3543
- qt as processHtmlString,
3544
- Ce as transitionComposer,
3545
- qr as useAction,
3546
- Xr as useChildren,
3547
- Qr as useColumns,
3548
- Gr as useComponent,
3549
- $e as useComponentDescriptor,
3550
- xe as useComponentNode,
3551
- G as useComponentPlatform,
3745
+ rn as AnchorLink,
3746
+ ye as Button,
3747
+ bt as ButtonUi,
3748
+ cs as Checkbox,
3749
+ ln as ColumnContext,
3750
+ ct as ComponentNodeContext,
3751
+ un as ComponentPropertyContext,
3752
+ Ts as Confirm,
3753
+ Zs as ConsumerMixin,
3754
+ cn as ContainerContext,
3755
+ mn as ConversationContext,
3756
+ Ws as DataProvider,
3757
+ pr as DateFormats,
3758
+ Ls as Drawer,
3759
+ Qn as DrawerAnimationType,
3760
+ Ms as Dropdown,
3761
+ uo as Empty,
3762
+ Ss as Grid,
3763
+ ft as Html,
3764
+ Pe as HtmlUi,
3765
+ fo as Icon,
3766
+ Rs as Input,
3767
+ Co as ItemList,
3768
+ _s as ItemTree,
3769
+ Jo as Lightbox,
3770
+ He as Link,
3771
+ go as List,
3772
+ tr as Modal,
3773
+ Os as NodeConnector,
3774
+ zs as NotFound,
3775
+ gt as Overlay,
3776
+ yo as Paragraph,
3777
+ js as PendingState,
3778
+ ie as Portal,
3779
+ As as ProviderMixin,
3780
+ Nr as Requester,
3781
+ vo as RouteLink,
3782
+ dn as RoutingContext,
3783
+ Xe as StyledText,
3784
+ ae as SymbolBadge,
3785
+ Q as SymbolBadgeUi,
3786
+ Ds as TabStop,
3787
+ ze as Text,
3788
+ hr as TextLink,
3789
+ Hs as Timestamp,
3790
+ Bs as Tooltip,
3791
+ Ps as TransitionComponent,
3792
+ re as Typography,
3793
+ Ve as TypographyUi,
3794
+ Fs as WidgetComponentMixin,
3795
+ wr as WidgetLink,
3796
+ Vs as WidgetOverlayOutlet,
3797
+ X as borderTabStyle,
3798
+ Ye as browser,
3799
+ Zn as buttonCss,
3800
+ ht as contentBox,
3801
+ V as convertToStringAttributes,
3802
+ as as createEmptyComponent,
3803
+ Ns as createReactComponent,
3804
+ Is as createWebComponent,
3805
+ nn as defaultRenderInstructions,
3806
+ Xt as embeddedLinkMapper,
3807
+ Gt as filterCssProps,
3808
+ Qt as filterCssPropsStyle,
3809
+ Jt as genericHashLink,
3810
+ ks as genericHtml,
3811
+ pe as headingElement,
3812
+ tn as imageLightboxRenderer,
3813
+ xs as invertedHoverButton,
3814
+ Es as itemList,
3815
+ jn as linkTabStyle,
3816
+ An as list,
3817
+ $s as paddedBorderTabStyle,
3818
+ en as processHtmlString,
3819
+ $e as transitionComposer,
3820
+ ls as useAction,
3821
+ us as useChildren,
3822
+ ds as useColumns,
3823
+ ms as useComponent,
3824
+ Re as useComponentDescriptor,
3825
+ _e as useComponentNode,
3826
+ ne as useComponentPlatform,
3552
3827
  I as useContainer,
3553
- yn as useContext,
3554
- Jr as useConversation,
3555
- es as useDispatch,
3556
- O as useEventListener,
3557
- En as useEvents,
3558
- Z as useIsMounted,
3559
- ts as useIsTabbing,
3560
- X as useKeyPress,
3561
- ns as useLayout,
3562
- et as usePrevious,
3563
- os as useProperties,
3564
- rs as useRenderState,
3565
- ss as useRouteData,
3566
- tt as useRouter,
3567
- nt as useScroll,
3568
- is as useSettings,
3569
- ot as useToggle,
3570
- as as useTransitionEnd,
3571
- ke as useUniqueMenu,
3572
- me as useWidgetEvent
3828
+ $n as useContext,
3829
+ hs as useConversation,
3830
+ ps as useDispatch,
3831
+ A as useEventListener,
3832
+ Mn as useEvents,
3833
+ F as useIsMounted,
3834
+ fs as useIsTabbing,
3835
+ ee as useKeyPress,
3836
+ gs as useLayout,
3837
+ lt as usePrevious,
3838
+ ys as useProperties,
3839
+ Cs as useRenderState,
3840
+ bs as useRouteData,
3841
+ ut as useRouter,
3842
+ dt as useScroll,
3843
+ vs as useSettings,
3844
+ mt as useToggle,
3845
+ ws as useTransitionEnd,
3846
+ Te as useUniqueMenu,
3847
+ Ce as useWidgetEvent
3573
3848
  };
3574
3849
  //# sourceMappingURL=index.js.map