@telia-ace/widget-ui 1.0.28-experimental.2 → 1.0.28-experimental.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,37 +1,54 @@
1
- var at = Object.defineProperty, ct = Object.defineProperties;
2
- var lt = Object.getOwnPropertyDescriptors;
3
- var ne = Object.getOwnPropertySymbols;
4
- var He = Object.prototype.hasOwnProperty, Te = Object.prototype.propertyIsEnumerable;
5
- var me = (e, t, n) => t in e ? at(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, h = (e, t) => {
1
+ var yt = Object.defineProperty, bt = Object.defineProperties;
2
+ var vt = Object.getOwnPropertyDescriptors;
3
+ var se = Object.getOwnPropertySymbols;
4
+ var _e = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
5
+ var Ve = (e, t, n) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- He.call(t, n) && me(e, n, t[n]);
8
- if (ne)
9
- for (var n of ne(t))
10
- Te.call(t, n) && me(e, n, t[n]);
7
+ _e.call(t, n) && Ve(e, n, t[n]);
8
+ if (se)
9
+ for (var n of se(t))
10
+ Be.call(t, n) && Ve(e, n, t[n]);
11
11
  return e;
12
- }, k = (e, t) => ct(e, lt(t));
12
+ }, k = (e, t) => bt(e, vt(t));
13
13
  var S = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
- He.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
- if (e != null && ne)
18
- for (var o of ne(e))
19
- t.indexOf(o) < 0 && Te.call(e, o) && (n[o] = e[o]);
16
+ _e.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 && Be.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
23
- import { Container as ut, WidgetState as mt } from "@webprovisions/platform";
24
- import r, { forwardRef as N, createContext as U, useContext as Y, useState as $, useEffect as v, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as se, Component as dt, lazy as ft } from "react";
25
- import { ComponentPlatform as ht, asDescriptor as pt, createEventSubscriber as gt, ComponentQuery as Ct, WidgetRenderState as oe, extendComponent as yt } from "@telia-ace/widget-core";
26
- import { css as L, keyframes as Ze } from "@emotion/react";
22
+ var he = (e, t, n) => new Promise((o, r) => {
23
+ var i = (u) => {
24
+ try {
25
+ l(n.next(u));
26
+ } catch (c) {
27
+ r(c);
28
+ }
29
+ }, a = (u) => {
30
+ try {
31
+ l(n.throw(u));
32
+ } catch (c) {
33
+ r(c);
34
+ }
35
+ }, l = (u) => u.done ? o(u.value) : Promise.resolve(u.value).then(i, a);
36
+ l((n = n.apply(e, t)).next());
37
+ });
38
+ import { Container as wt, WidgetState as Et } from "@webprovisions/platform";
39
+ import s, { forwardRef as _, createContext as Q, useContext as U, useState as $, useEffect as w, useRef as R, useCallback as T, useImperativeHandle as we, useMemo as ae, Component as xt, lazy as $t } from "react";
40
+ import { ComponentPlatform as je, asDescriptor as Ke, createEventSubscriber as kt, ComponentQuery as Lt, WidgetRenderState as ie, extendComponent as Ye } from "@telia-ace/widget-core";
41
+ import { css as L, keyframes as Ue } from "@emotion/react";
27
42
  import y from "@emotion/styled";
28
- import { kebabCase as bt, appendClassNames as M, uuid as Q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
29
- import { CSSTransition as Ie, Transition as vt } from "react-transition-group";
30
- import { createPortal as Et } from "react-dom";
31
- import { HistoryMode as Be, getSpecificWidgetPath as xt } from "@telia-ace/widget-routing";
32
- import { Link as fe } from "react-router-dom";
33
- import ze from "htmr";
34
- const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exiting" || e === "exited", K = {
43
+ import { kebabCase as Mt, appendClassNames as M, uuid as ee, removeNullAndUndefinedValues as Ne, Logger as fe } from "@telia-ace/widget-utilities";
44
+ import { CSSTransition as Xe, Transition as St } from "react-transition-group";
45
+ import { createPortal as Rt } from "react-dom";
46
+ import { HistoryMode as Pe, getSpecificWidgetPath as Tt } from "@telia-ace/widget-routing";
47
+ import { Link as pe } from "react-router-dom";
48
+ import Ie from "htmr";
49
+ import { dedupeMixin as qe } from "@open-wc/dedupe-mixin";
50
+ import { html as We, css as zt, unsafeCSS as Ht } from "lit";
51
+ const Dt = (e) => e === "entering" || e === "entered", Vt = (e) => e === "exiting" || e === "exited", K = {
35
52
  fade: {
36
53
  in: "opacity: 1;",
37
54
  out: "opacity: 0;"
@@ -56,18 +73,18 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
56
73
  in: "transform: scale(1);",
57
74
  out: "transform: scale(0);"
58
75
  }
59
- }, kt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
76
+ }, _t = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], Ce = {
60
77
  compose: (e = "exited", t) => {
61
- const { enter: n, exit: o } = t, s = n.transitionKeys.split(" "), i = kt.indexOf(s[0]) > -1 ? "transform" : "opacity";
62
- if (wt(e))
63
- return s && s.length > 0 ? L`
64
- ${s && s.length > 0 && s.map((l) => K[l] ? K[l].in : "")}
78
+ const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i = _t.indexOf(r[0]) > -1 ? "transform" : "opacity";
79
+ if (Dt(e))
80
+ return r && r.length > 0 ? L`
81
+ ${r && r.length > 0 && r.map((l) => K[l] ? K[l].in : "")}
65
82
  transition: ${i} ${n.duration}ms ${n.easing};
66
83
  ` : "";
67
- const a = s && s.length > 0 && L`
68
- ${s.map((l) => K[l] ? K[l].out : "")}
84
+ const a = r && r.length > 0 && L`
85
+ ${r.map((l) => K[l] ? K[l].out : "")}
69
86
  `;
70
- if ($t(e)) {
87
+ if (Vt(e)) {
71
88
  const l = o.transitionKeys.split(" ");
72
89
  return l && l.length > 0 && e === "exiting" ? L`
73
90
  ${a};
@@ -78,7 +95,7 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
78
95
  },
79
96
  composeViewTransition: (e, t, n) => {
80
97
  if (t === "slide")
81
- return he.compose(e, {
98
+ return Ce.compose(e, {
82
99
  enter: {
83
100
  transitionKeys: n === "forth" ? "slide-right" : "slide-left",
84
101
  duration: 500
@@ -89,7 +106,7 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
89
106
  }
90
107
  });
91
108
  if (t === "fade")
92
- return he.compose(e, {
109
+ return Ce.compose(e, {
93
110
  enter: {
94
111
  transitionKeys: "fade",
95
112
  duration: 500
@@ -102,14 +119,14 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
102
119
  },
103
120
  get: (e) => K[e]
104
121
  };
105
- var pe = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(pe || {});
106
- const Ne = () => {
122
+ 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 || {});
123
+ const Ze = () => {
107
124
  const {
108
125
  opr: e,
109
126
  opera: t,
110
127
  InstallTrigger: n,
111
128
  HTMLElement: o,
112
- safari: s,
129
+ safari: r,
113
130
  documentMode: i,
114
131
  StyleMedia: a,
115
132
  chrome: l,
@@ -119,13 +136,13 @@ const Ne = () => {
119
136
  return "opera";
120
137
  if (n)
121
138
  return "firefox";
122
- const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!s || typeof s != "undefined" && s.pushNotification);
139
+ const m = ((h) => h.toString() === "[object SafariRemoteNotification]")(!r || typeof r != "undefined" && r.pushNotification);
123
140
  if (/constructor/i.test(o) || m)
124
141
  return "safari";
125
- const p = !!i;
126
- if (p)
142
+ const f = !!i;
143
+ if (f)
127
144
  return "internet-explorer";
128
- if (!p && !!a)
145
+ if (!f && !!a)
129
146
  return "edge";
130
147
  const d = !!l && (!!l.webstore || !!l.runtime);
131
148
  if (d)
@@ -134,54 +151,54 @@ const Ne = () => {
134
151
  return "edge-chromium";
135
152
  if ((d || c) && !!u)
136
153
  return "blink";
137
- }, Lt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
138
- const o = typeof e[n] == "undefined" ? "" : e[n], s = typeof o;
139
- if (Lt.indexOf(s) > -1) {
154
+ }, Bt = ["string", "number"], B = (e) => Object.keys(e).reduce((t, n) => {
155
+ const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
156
+ if (Bt.indexOf(r) > -1) {
140
157
  const i = n.substring(0, 5);
141
- i === "data-" || i === "aria-" ? t[bt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
158
+ i === "data-" || i === "aria-" ? t[Mt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
142
159
  } else
143
160
  t[n] = o;
144
161
  return t;
145
- }, {}), Mt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(Kn, h({}, t)) : null, go = Mt, St = (e) => new RegExp("^#", "i").test(e), Rt = (e) => (o) => {
146
- var s = o, { children: t } = s, n = S(s, ["children"]);
162
+ }, {}), Nt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ s.createElement(eo, p({}, t)) : null, Pr = Nt, Pt = (e) => new RegExp("^#", "i").test(e), It = (e) => (o) => {
163
+ var r = o, { children: t } = r, n = S(r, ["children"]);
147
164
  const {
148
165
  implementation: i,
149
166
  name: a
150
167
  } = e.get("$widget"), { href: l = "" } = n;
151
- if (St(l))
152
- return /* @__PURE__ */ r.createElement(Zt, { smooth: !0, to: l }, t);
153
- const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
168
+ if (Pt(l))
169
+ return /* @__PURE__ */ s.createElement(Ut, { smooth: !0, to: l }, t);
170
+ const u = i.bindings.map((f) => f.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
154
171
  if (m && m.length >= 4) {
155
- const p = m[4];
156
- if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
157
- return /* @__PURE__ */ r.createElement(eo, { widgetName: p }, t);
172
+ const f = m[4];
173
+ if (i.widgets.get(f) && !f.startsWith("blob?") && !f.startsWith(a))
174
+ return /* @__PURE__ */ s.createElement(dr, { widgetName: f }, t);
158
175
  }
159
- return /* @__PURE__ */ r.createElement("a", h({}, n), t);
160
- }, Ht = Rt, Oe = (e) => {
176
+ return /* @__PURE__ */ s.createElement("a", p({}, n), t);
177
+ }, Wt = It, Qe = (e) => {
161
178
  const t = {};
162
179
  return Object.keys(e).forEach((n) => {
163
180
  n.indexOf("css-") > -1 && (t[n] = e[n]);
164
181
  }), t;
165
- }, Tt = (e) => {
182
+ }, Zt = (e) => {
166
183
  let t = "";
167
- return Object.keys(Oe(e)).forEach((n) => {
184
+ return Object.keys(Qe(e)).forEach((n) => {
168
185
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
169
186
  }), L`
170
187
  ${t}
171
188
  `;
172
- }, Dt = Oe, Bt = (e, t) => {
189
+ }, Ot = Qe, Ft = (e, t) => {
173
190
  let n = "";
174
191
  const o = () => {
175
192
  n = "";
176
- }, s = (p) => {
193
+ }, r = (f) => {
177
194
  const d = document.getElementById(n);
178
- return d !== null ? (p(d), o(), !0) : !1;
179
- }, i = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && s(
195
+ return d !== null ? (f(d), o(), !0) : !1;
196
+ }, i = (f) => (f.preventDefault(), o(), e.onClick && e.onClick(f), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
180
197
  e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
181
198
  ), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
182
- return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, k(h({}, c), { onClick: i }), e.children);
183
- }, ie = (e) => (t, n) => {
184
- let o = t, s = "";
199
+ return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ s.createElement(t, k(p({}, c), { onClick: i }), e.children);
200
+ }, ce = (e) => (t, n) => {
201
+ let o = t, r = "";
185
202
  if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
186
203
  o = t;
187
204
  else {
@@ -189,37 +206,37 @@ const Ne = () => {
189
206
  if (l != null && l[0]) {
190
207
  o = l[0];
191
208
  const [u] = t.split(o);
192
- s = u;
209
+ r = u;
193
210
  }
194
211
  }
195
- const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, s, e.theme.typographyVariantMapping || {});
212
+ const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, r, e.theme.typographyVariantMapping || {});
196
213
  return L`
197
214
  ${a} {
198
215
  ${n}
199
216
  }
200
217
  `;
201
218
  };
202
- function zt(e, t) {
203
- return t ? ze(e, t) : ze(e);
219
+ function At(e, t) {
220
+ return t ? Ie(e, t) : Ie(e);
204
221
  }
205
- const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBody: e }), Vt = (e, t) => ({
222
+ const jt = (e) => (t) => /* @__PURE__ */ s.createElement(Fo, { attrs: t, htmlBody: e }), Kt = (e, t) => ({
206
223
  transform: {
207
- a: Ht(e),
208
- img: Nt(t)
224
+ a: Wt(e),
225
+ img: jt(t)
209
226
  }
210
- }), Wt = (e) => Bt(e, "a"), Zt = Wt, ae = N((s, o) => {
211
- var i = s, { className: e, children: t } = i, n = S(i, ["className", "children"]);
212
- return /* @__PURE__ */ r.createElement(
213
- It,
214
- k(h({
227
+ }), Yt = (e) => Ft(e, "a"), Ut = Yt, le = _((r, o) => {
228
+ var i = r, { className: e, children: t } = i, n = S(i, ["className", "children"]);
229
+ return /* @__PURE__ */ s.createElement(
230
+ Xt,
231
+ k(p({
215
232
  type: "button",
216
233
  className: M(e, "humany-button")
217
- }, V(n)), {
234
+ }, B(n)), {
218
235
  ref: o
219
236
  }),
220
237
  t
221
238
  );
222
- }), It = y.button`
239
+ }), Xt = y.button`
223
240
  -webkit-appearance: button;
224
241
  text-transform: none;
225
242
  overflow: visible;
@@ -232,8 +249,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
232
249
  line-height: normal;
233
250
  margin: 0;
234
251
  padding: 0;
235
- `, Ot = (s) => {
236
- var i = s, {
252
+ `, qt = (r) => {
253
+ var i = r, {
237
254
  onChange: e = () => {
238
255
  },
239
256
  onEnter: t = () => {
@@ -244,63 +261,63 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
244
261
  "onEnter",
245
262
  "className"
246
263
  ]);
247
- return /* @__PURE__ */ r.createElement(
264
+ return /* @__PURE__ */ s.createElement(
248
265
  "input",
249
- h({
266
+ p({
250
267
  className: M(n, "humany-checkbox"),
251
268
  onKeyDown: (a) => {
252
269
  a.key === "Enter" && t(a);
253
270
  },
254
271
  onChange: (a) => e(a.target.value, a.currentTarget.checked)
255
- }, V(o))
272
+ }, B(o))
256
273
  );
257
- }, Co = Ot, Pt = U(new ut()), Ft = U(1), Pe = U({
274
+ }, Ir = qt, Qt = Q(new wt()), Gt = Q(1), Ge = Q({
258
275
  id: "",
259
276
  type: "",
260
277
  name: "",
261
278
  branch: ""
262
- }), At = U({}), Kt = U(null), Yt = U(null), jt = () => Y(Pe), ye = jt, Xt = () => Y(Pt), W = Xt, Ut = (e, t) => {
263
- const n = ye().id, o = W();
264
- return (s, i) => {
279
+ }), Jt = Q({}), en = Q(null), tn = Q(null), nn = () => U(Ge), Ee = nn, on = () => U(Qt), N = on, rn = (e, t) => {
280
+ const n = Ee().id, o = N();
281
+ return (r, i) => {
265
282
  (t || o).getAsync("actionResolver").then((a) => {
266
- a.action(e || n, s, i);
283
+ a.action(e || n, r, i);
267
284
  });
268
285
  };
269
- }, yo = Ut, _t = (e) => {
270
- const t = Y(Pe), n = _(), [o, s] = $();
271
- return v(() => {
286
+ }, Wr = rn, sn = (e) => {
287
+ const t = U(Ge), n = G(), [o, r] = $();
288
+ return w(() => {
272
289
  if ((e || t.id) && n) {
273
290
  const i = n.nodes.get(e || t.id);
274
- s(i);
291
+ r(i);
275
292
  }
276
293
  }, [e, t.id, n]), o;
277
- }, be = _t, qt = () => {
294
+ }, xe = sn, an = () => {
278
295
  const e = R(!1);
279
- return v(() => (e.current = !0, () => {
296
+ return w(() => (e.current = !0, () => {
280
297
  e.current = !1;
281
298
  }), []), e;
282
- }, O = qt, Qt = (e) => {
283
- const t = W(), [n, o] = $(null), s = O();
284
- return v(() => {
285
- ht.getInstance(e || t).then((i) => {
286
- s.current && o(i);
299
+ }, O = an, cn = (e) => {
300
+ const t = N(), [n, o] = $(null), r = O();
301
+ return w(() => {
302
+ je.getInstance(e || t).then((i) => {
303
+ r.current && o(i);
287
304
  });
288
- }, [s]), n;
289
- }, _ = Qt, Gt = () => {
290
- const e = be(), t = _(), [n, o] = $([]), s = O(), i = H(
305
+ }, [r]), n;
306
+ }, G = cn, ln = () => {
307
+ const e = xe(), t = G(), [n, o] = $([]), r = O(), i = T(
291
308
  (a) => {
292
- if (t && s.current && a) {
293
- const l = t.getBranch(a), u = a.getChildren(l).map((c) => pt(c));
309
+ if (t && r.current && a) {
310
+ const l = t.getBranch(a), u = a.getChildren(l).map((c) => Ke(c));
294
311
  o(u);
295
312
  }
296
313
  },
297
- [s, t, o, e]
314
+ [r, t, o, e]
298
315
  );
299
- return v(() => {
316
+ return w(() => {
300
317
  e && i(e);
301
- }, [e, t]), v(() => {
318
+ }, [e, t]), w(() => {
302
319
  if (t) {
303
- const [a, l] = gt(t.events);
320
+ const [a, l] = kt(t.events);
304
321
  return a("components:set-layout", (u, c) => {
305
322
  (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
306
323
  }), a("components:node-appended", (u, c) => {
@@ -312,9 +329,9 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
312
329
  };
313
330
  }
314
331
  }, [e, t, i]), n;
315
- }, bo = Gt, Jt = () => Y(Ft), vo = Jt, en = (e, t) => {
316
- const n = ye(), o = W(), [s, i] = $(void 0), a = O(), l = e || n.type || "";
317
- return v(() => {
332
+ }, Zr = ln, un = () => U(Gt), Or = un, dn = (e, t) => {
333
+ const n = Ee(), o = N(), [r, i] = $(void 0), a = O(), l = e || n.type || "";
334
+ return w(() => {
318
335
  if (l) {
319
336
  let u;
320
337
  return (t || o).getAsync("componentResolver").then((c) => {
@@ -329,17 +346,17 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
329
346
  u && u();
330
347
  };
331
348
  }
332
- }, [a, l, t, o]), s;
333
- }, Eo = en, tn = (e) => {
334
- const t = be(e), n = _(), [o, s] = $({}), i = O();
335
- return v(() => {
336
- t && i.current && s(t.attributes.context);
337
- }, [i, t]), v(() => {
349
+ }, [a, l, t, o]), r;
350
+ }, Fr = dn, mn = (e) => {
351
+ const t = xe(e), n = G(), [o, r] = $({}), i = O();
352
+ return w(() => {
353
+ t && i.current && r(t.attributes.context);
354
+ }, [i, t]), w(() => {
338
355
  if (n) {
339
356
  const a = n.events.subscribe(
340
357
  "components:context-changed",
341
358
  (l, u) => {
342
- t === u.node && i.current && s(u.node.attributes.context);
359
+ t === u.node && i.current && r(u.node.attributes.context);
343
360
  }
344
361
  );
345
362
  return () => {
@@ -347,11 +364,11 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
347
364
  };
348
365
  }
349
366
  }, [i, n, t]), o;
350
- }, nn = tn, rn = () => Y(Yt), xo = rn, on = () => {
351
- const e = _(), t = ye(), [n, o] = $([]), [s, i] = $();
352
- return v(() => {
367
+ }, hn = mn, fn = () => U(tn), Ar = fn, pn = () => {
368
+ const e = G(), t = Ee(), [n, o] = $([]), [r, i] = $();
369
+ return w(() => {
353
370
  if (e && t) {
354
- const a = new Ct(e).withId(t.id), l = e.actions(a, t.type || Q());
371
+ const a = new Lt(e).withId(t.id), l = e.actions(a, t.type || ee());
355
372
  i(l), n !== null && (n.forEach((u) => {
356
373
  l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
357
374
  }), o(null));
@@ -363,59 +380,59 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
363
380
  resolve: u,
364
381
  reject: c
365
382
  });
366
- }) : s.dispatch(a, l);
367
- }, wo = on, I = (e, t, n = window, o = () => !0) => {
368
- const s = R(() => {
383
+ }) : r.dispatch(a, l);
384
+ }, jr = pn, Z = (e, t, n = window, o = () => !0) => {
385
+ const r = R(() => {
369
386
  });
370
- v(() => {
371
- s.current = t;
372
- }, [t]), v(() => {
387
+ w(() => {
388
+ r.current = t;
389
+ }, [t]), w(() => {
373
390
  if (!(n && o()))
374
391
  return;
375
- const a = (l) => s.current(l);
392
+ const a = (l) => r.current(l);
376
393
  return n.addEventListener(e, a), () => {
377
394
  n.removeEventListener(e, a);
378
395
  };
379
396
  }, [e, n]);
380
- }, sn = (e) => {
381
- const t = W(), { events: n } = (e || t).get("$widget");
397
+ }, gn = (e) => {
398
+ const t = N(), { events: n } = (e || t).get("$widget");
382
399
  return n;
383
- }, an = sn, cn = () => {
400
+ }, Cn = gn, yn = () => {
384
401
  const [e, t] = $(!1);
385
- return v(() => {
402
+ return w(() => {
386
403
  const n = () => {
387
404
  t(!1);
388
- }, o = (s) => {
389
- s.keyCode === 9 && t(!0);
405
+ }, o = (r) => {
406
+ r.keyCode === 9 && t(!0);
390
407
  };
391
408
  return window.addEventListener("keydown", o), window.addEventListener("click", n), () => {
392
409
  window.removeEventListener("keydown", o), window.removeEventListener("click", n);
393
410
  };
394
411
  }, []), e;
395
- }, $o = cn, ln = (e, t) => {
396
- const [n, o] = $(!1), s = H(
412
+ }, Kr = yn, bn = (e, t) => {
413
+ const [n, o] = $(!1), r = T(
397
414
  (a) => {
398
415
  const { key: l } = a;
399
416
  l === e && (o(!0), t && t(a));
400
417
  },
401
418
  [o, t]
402
- ), i = H(
419
+ ), i = T(
403
420
  ({ key: a }) => {
404
421
  a === e && o(!1);
405
422
  },
406
423
  [o]
407
424
  );
408
- return I("keydown", s, window), I("keyup", i, window), n;
409
- }, X = ln, un = (e) => {
410
- const t = be(e), n = _(), [o, s] = $({}), i = O();
411
- return v(() => {
412
- t && i.current && s(t.attributes.layout);
413
- }, [t, i]), v(() => {
425
+ return Z("keydown", r, window), Z("keyup", i, window), n;
426
+ }, q = bn, vn = (e) => {
427
+ const t = xe(e), n = G(), [o, r] = $({}), i = O();
428
+ return w(() => {
429
+ t && i.current && r(t.attributes.layout);
430
+ }, [t, i]), w(() => {
414
431
  if (n) {
415
432
  const a = n.events.subscribe(
416
433
  "components:layout-changed",
417
434
  (l, u) => {
418
- t === u.node && i.current && s(u.node.attributes.layout);
435
+ t === u.node && i.current && r(u.node.attributes.layout);
419
436
  }
420
437
  );
421
438
  return () => {
@@ -423,86 +440,86 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
423
440
  };
424
441
  }
425
442
  }, [n, i, t]), o;
426
- }, ko = un, mn = (e) => {
443
+ }, Yr = vn, wn = (e) => {
427
444
  const t = R();
428
- return v(() => {
445
+ return w(() => {
429
446
  t.current = e;
430
447
  }), t.current;
431
- }, Fe = mn, dn = () => Y(At), Lo = dn, fn = (e) => {
432
- const [t, n] = $(), o = W(), s = O();
433
- return v(() => {
448
+ }, Je = wn, En = () => U(Jt), Ur = En, xn = (e) => {
449
+ const [t, n] = $(), o = N(), r = O();
450
+ return w(() => {
434
451
  let i;
435
452
  const a = (e || o).get("$widget");
436
453
  if (!a)
437
454
  return;
438
455
  const { name: l, invoke: u } = a;
439
456
  return u("renderState").then((c) => {
440
- s.current && n(c);
457
+ r.current && n(c);
441
458
  }), (e || o).getAsync("actionResolver").then((c) => {
442
- i = c.subscribe(l, (m, p) => {
443
- switch (p) {
459
+ i = c.subscribe(l, (m, f) => {
460
+ switch (f) {
444
461
  case "close":
445
462
  case "open":
446
- s.current && n(
447
- p === "open" ? oe.open : oe.closed
463
+ r.current && n(
464
+ f === "open" ? ie.open : ie.closed
448
465
  );
449
466
  break;
450
467
  case "hide":
451
- s.current && n(oe.hidden);
468
+ r.current && n(ie.hidden);
452
469
  }
453
470
  });
454
471
  }), () => {
455
472
  i && i();
456
473
  };
457
- }, [s]), t;
458
- }, Mo = fn, hn = () => Y(Kt), Ae = hn, pn = (e) => {
459
- const t = W(), n = Ae(), [o, s] = $({ name: "", params: {} }), i = O();
460
- return v(() => {
474
+ }, [r]), t;
475
+ }, Xr = xn, $n = () => U(en), et = $n, kn = (e) => {
476
+ const t = N(), n = et(), [o, r] = $({ name: "", params: {} }), i = O();
477
+ return w(() => {
461
478
  const a = (e || t).get("$widget");
462
479
  if (!a)
463
480
  return;
464
481
  const { events: l } = a;
465
482
  return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
466
483
  if (i.current) {
467
- const { name: p, params: d } = m;
468
- De(d), s({ name: p, params: d });
484
+ const { name: f, params: d } = m;
485
+ Ne(d), r({ name: f, params: d });
469
486
  }
470
487
  });
471
- }, [i, e, t]), v(() => {
488
+ }, [i, e, t]), w(() => {
472
489
  if (n && n.history && i.current) {
473
490
  const a = n.getRouteData(), { name: l, params: u } = a;
474
- De(u), s({ name: l, params: u });
491
+ Ne(u), r({ name: l, params: u });
475
492
  }
476
493
  }, [n, i]), o;
477
- }, So = pn, Ke = (e) => {
494
+ }, qr = kn, tt = (e) => {
478
495
  const t = R(), n = R(0);
479
496
  let o;
480
- const s = H(() => {
497
+ const r = T(() => {
481
498
  var c;
482
499
  (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
483
500
  var m;
484
501
  (m = t.current) == null || m.classList.remove("humany-scrolling");
485
502
  }, 500);
486
- }, [t]), i = H(
503
+ }, [t]), i = T(
487
504
  (c) => {
488
505
  n.current = c.touches[0].clientY;
489
506
  },
490
507
  [t]
491
- ), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = H(
508
+ ), 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(
492
509
  (c) => {
493
510
  if (!c.cancelable)
494
511
  return;
495
- const m = c.touches[0].clientY, p = a(c.target);
496
- if (!p)
512
+ const m = c.touches[0].clientY, f = a(c.target);
513
+ if (!f)
497
514
  return;
498
- const d = p.scrollTop, f = n.current - m < 0 ? "up" : "down", C = d <= 0 && f === "up", x = d >= p.scrollHeight - p.offsetHeight && f === "down";
499
- (C || x) && c.preventDefault(), n.current = m;
515
+ const d = f.scrollTop, h = n.current - m < 0 ? "up" : "down", C = d <= 0 && h === "up", E = d >= f.scrollHeight - f.offsetHeight && h === "down";
516
+ (C || E) && c.preventDefault(), n.current = m;
500
517
  },
501
518
  [t, n]
502
519
  );
503
- return I("scroll", s, t.current, () => t.current && e), I("touchstart", i, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [gn, t] : ["", t];
504
- }, gn = `
505
- overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
520
+ return Z("scroll", r, t.current, () => t.current && e), Z("touchstart", i, t.current, () => t.current && e), Z("touchmove", u, t.current, () => t.current && e), e ? [Ln, t] : ["", t];
521
+ }, Ln = `
522
+ overflow-y: ${Ze() === ye.Chrome || Ze() === ye.EdgeChromium ? "overlay" : "auto"};
506
523
  overflow-x: hidden;
507
524
  -ms-overflow-style: none; /* IE 10+ */
508
525
  scrollbar-width: thin; /* Firefox */
@@ -529,65 +546,65 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
529
546
  background-color: #7F7F7F;
530
547
  }
531
548
  }
532
- `, Cn = () => {
533
- const [e, t] = $(null), n = W(), o = O();
534
- return v(() => {
535
- n.get("settings").then((s) => {
536
- o.current && t(s);
549
+ `, Mn = () => {
550
+ const [e, t] = $(null), n = N(), o = O();
551
+ return w(() => {
552
+ n.get("settings").then((r) => {
553
+ o.current && t(r);
537
554
  });
538
555
  }, [o]), e;
539
- }, Ro = Cn, yn = (e = !1) => {
540
- const [t, n] = $(e), o = H((s) => {
541
- n(typeof s == "boolean" ? s : (i) => !i);
556
+ }, Qr = Mn, Sn = (e = !1) => {
557
+ const [t, n] = $(e), o = T((r) => {
558
+ n(typeof r == "boolean" ? r : (i) => !i);
542
559
  }, []);
543
560
  return [t, o];
544
- }, Ye = yn, Ho = (e) => {
545
- const t = W(), n = _(), o = t.get("widgetDOMElement"), [s, i] = $(null), [a, l] = $(null), u = O();
546
- v(() => {
561
+ }, nt = Sn, Gr = (e) => {
562
+ const t = N(), n = G(), o = t.get("widgetDOMElement"), [r, i] = $(null), [a, l] = $(null), u = O();
563
+ w(() => {
547
564
  if (n && u.current) {
548
- const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
549
- if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
565
+ const m = n.nodes.all.find((d) => d.name === "root-area"), f = n.nodes.all.find((d) => d.type === "view");
566
+ if (!(f != null && f.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
550
567
  e();
551
568
  else {
552
- const d = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), f = d(p == null ? void 0 : p.id);
553
- f && i(f);
569
+ const d = (E = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${E}"]`), h = d(f == null ? void 0 : f.id);
570
+ h && i(h);
554
571
  const C = d(m == null ? void 0 : m.id);
555
572
  C && l(C);
556
573
  }
557
574
  }
558
575
  }, [n, t, u]);
559
- const c = H(
576
+ const c = T(
560
577
  (m) => {
561
- u.current && (m.target === s || m.target === a) && e();
578
+ u.current && (m.target === r || m.target === a) && e();
562
579
  },
563
- [e, u, s, a]
580
+ [e, u, r, a]
564
581
  );
565
- I("transitionend", c, s), I("transitionend", c, a);
566
- }, bn = (e, t, n = [], o) => {
567
- const s = an(o);
568
- return v(() => {
569
- if (s) {
570
- const i = s.subscribe(e, t);
582
+ Z("transitionend", c, r), Z("transitionend", c, a);
583
+ }, Rn = (e, t, n = [], o) => {
584
+ const r = Cn(o);
585
+ return w(() => {
586
+ if (r) {
587
+ const i = r.subscribe(e, t);
571
588
  return () => {
572
589
  i();
573
590
  };
574
591
  }
575
- }, [s].concat(n)), (i) => s == null ? void 0 : s.dispatch(e, i);
576
- }, ce = bn, vn = (e, t) => {
577
- const n = ce("widget:menu-toggled", (o, s) => {
578
- s !== e && t();
592
+ }, [r].concat(n)), (i) => r == null ? void 0 : r.dispatch(e, i);
593
+ }, ue = Rn, Tn = (e, t) => {
594
+ const n = ue("widget:menu-toggled", (o, r) => {
595
+ r !== e && t();
579
596
  });
580
597
  return () => n(e);
581
- }, ve = vn, En = (o) => {
582
- var s = o, { className: e, children: t } = s, n = S(s, ["className", "children"]);
583
- return /* @__PURE__ */ r.createElement(
598
+ }, $e = Tn, zn = (o) => {
599
+ var r = o, { className: e, children: t } = r, n = S(r, ["className", "children"]);
600
+ return /* @__PURE__ */ s.createElement(
584
601
  "span",
585
- h({
602
+ p({
586
603
  className: M(e, "humany-text")
587
- }, V(n)),
604
+ }, B(n)),
588
605
  t
589
606
  );
590
- }, Ee = En, je = (e) => L`
607
+ }, ke = zn, ot = (e) => L`
591
608
  display: flex;
592
609
  justify-content: center;
593
610
  flex-direction: column;
@@ -596,7 +613,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
596
613
  border: ${e.theme.border};
597
614
  box-shadow: ${e.theme.boxShadow || "none"};
598
615
  ${e["data-loading"] && "min-height: 150px;"}
599
- `, xn = (e) => {
616
+ `, Hn = (e) => {
600
617
  var t, n, o;
601
618
  return L`
602
619
  cursor: pointer;
@@ -608,11 +625,11 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
608
625
  font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
609
626
  font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
610
627
  `;
611
- }, To = (e) => {
628
+ }, Jr = (e) => {
612
629
  var a;
613
- const { primaryColor: t, secondaryColor: n, active: o, theme: s, disabled: i } = e;
630
+ const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: i } = e;
614
631
  return L`
615
- ${xn(e)}
632
+ ${Hn(e)}
616
633
  border: 1px solid ${o ? n : t};
617
634
  background-color: ${o ? t : n};
618
635
 
@@ -625,7 +642,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
625
642
  a {
626
643
  transition: color 200ms ease-out;
627
644
  color: ${o ? n : t};
628
- font-size: ${(a = s.fonts) == null ? void 0 : a.normal};
645
+ font-size: ${(a = r.fonts) == null ? void 0 : a.normal};
629
646
  }
630
647
 
631
648
  ${!i && L`
@@ -642,27 +659,27 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
642
659
  }
643
660
 
644
661
  &:focus-visible {
645
- ${A(e)};
662
+ ${j(e)};
646
663
  }
647
664
  `}
648
665
  `;
649
- }, A = (e) => {
666
+ }, j = (e) => {
650
667
  var t, n, o;
651
668
  return L`
652
669
  outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
653
670
  color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
654
671
  border-color: transparent;
655
672
  `;
656
- }, wn = (e) => L`
657
- ${A(e)}
673
+ }, Dn = (e) => L`
674
+ ${j(e)}
658
675
  text-decoration: underline;
659
- `, Do = (e) => {
676
+ `, es = (e) => {
660
677
  var t;
661
678
  return L`
662
- ${A(e)}
679
+ ${j(e)}
663
680
  outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
664
681
  `;
665
- }, xe = y(ae)`
682
+ }, Le = y(le)`
666
683
  position: absolute;
667
684
  top: ${(e) => {
668
685
  var t;
@@ -682,7 +699,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
682
699
  }
683
700
 
684
701
  &:focus-visible {
685
- ${A}
702
+ ${j}
686
703
  padding: ${(e) => {
687
704
  var t;
688
705
  return (t = e.theme.sizes) == null ? void 0 : t.small;
@@ -690,7 +707,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
690
707
  height: 15px;
691
708
  box-sizing: content-box;
692
709
  }
693
- `, Ve = y(Ee)`
710
+ `, Oe = y(ke)`
694
711
  font-size: ${(e) => {
695
712
  var t;
696
713
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -701,7 +718,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
701
718
  var t;
702
719
  return (t = e.theme.colors) == null ? void 0 : t.text;
703
720
  }};
704
- `, $n = (e) => {
721
+ `, Vn = (e) => {
705
722
  var t;
706
723
  return L`
707
724
  padding: 0;
@@ -723,11 +740,11 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
723
740
  margin: 0;
724
741
  }
725
742
  `;
726
- }, Bo = (e) => {
727
- var t, n, o, s;
743
+ }, ts = (e) => {
744
+ var t, n, o, r;
728
745
  return L`
729
746
  > div {
730
- ${ie(e)(
747
+ ${ce(e)(
731
748
  "> h1",
732
749
  L`
733
750
  margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
@@ -739,15 +756,15 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
739
756
  )}
740
757
  }
741
758
  > ul {
742
- ${$n(e)}
759
+ ${Vn(e)}
743
760
  }
744
- ${ie(e)(
761
+ ${ce(e)(
745
762
  "h1",
746
763
  L`
747
764
  display: flex;
748
765
  align-items: center;
749
766
  i {
750
- margin: 7px ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0 0;
767
+ margin: 7px ${(r = e.theme.sizes) == null ? void 0 : r.normal} 0 0;
751
768
  width: 24px;
752
769
  display: inline-block;
753
770
  vertical-align: text-bottom;
@@ -759,8 +776,8 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
759
776
  `
760
777
  )}
761
778
  `;
762
- }, zo = (e) => {
763
- var t, n, o, s, i, a;
779
+ }, ns = (e) => {
780
+ var t, n, o, r, i, a;
764
781
  return L`
765
782
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
766
783
  font-weight: 300;
@@ -788,7 +805,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
788
805
  a {
789
806
  color: ${(o = e.theme.colors) == null ? void 0 : o.link};
790
807
  &:focus-visible {
791
- ${wn(e)};
808
+ ${Dn(e)};
792
809
  }
793
810
  }
794
811
 
@@ -799,7 +816,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
799
816
 
800
817
  p {
801
818
  word-break: break-word;
802
- margin: ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0;
819
+ margin: ${(r = e.theme.sizes) == null ? void 0 : r.normal} 0;
803
820
  }
804
821
 
805
822
  p:first-child {
@@ -814,19 +831,19 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
814
831
  margin: 0;
815
832
  }
816
833
  `;
817
- }, kn = ({
834
+ }, _n = ({
818
835
  elementId: e = "humany-portal-elements",
819
836
  parent: t = document.body,
820
837
  children: n
821
838
  }) => {
822
839
  const [o] = $(() => {
823
- const s = document.getElementById(e) || document.createElement("div");
824
- return s.id = e, s;
840
+ const r = document.getElementById(e) || document.createElement("div");
841
+ return r.id = e, r;
825
842
  });
826
- return v(() => (t.appendChild(o), () => {
843
+ return w(() => (t.appendChild(o), () => {
827
844
  o.childElementCount <= 1 && t.removeChild(o);
828
- }), [o]), Et(n, o);
829
- }, G = kn, Ln = (l) => {
845
+ }), [o]), Rt(n, o);
846
+ }, te = _n, Bn = (l) => {
830
847
  var u = l, {
831
848
  text: e = "",
832
849
  backgroundSize: t = "contain",
@@ -835,7 +852,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
835
852
  content: "",
836
853
  type: ""
837
854
  },
838
- elementStyle: s = {},
855
+ elementStyle: r = {},
839
856
  className: i
840
857
  } = u, a = S(u, [
841
858
  "text",
@@ -845,7 +862,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
845
862
  "elementStyle",
846
863
  "className"
847
864
  ]);
848
- const { type: c, content: m } = o, p = {
865
+ const { type: c, content: m } = o, f = {
849
866
  "aria-label": e,
850
867
  role: "presentation"
851
868
  };
@@ -858,27 +875,27 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
858
875
  backgroundPosition: "center",
859
876
  backgroundAttachment: "center"
860
877
  };
861
- return /* @__PURE__ */ r.createElement(
878
+ return /* @__PURE__ */ s.createElement(
862
879
  "i",
863
- h(h({
880
+ p(p({
864
881
  className: M(i, "humany-icon", "humany-custom-icon"),
865
882
  title: e,
866
- style: h(h({}, d), s)
867
- }, p), a)
883
+ style: p(p({}, d), r)
884
+ }, f), a)
868
885
  );
869
886
  }
870
887
  case "Svg": {
871
- const d = k(h({
888
+ const d = k(p({
872
889
  className: M(i, "humany-icon"),
873
890
  width: `${n}`,
874
891
  fill: "none",
875
892
  xmlns: "http://www.w3.org/2000/svg"
876
893
  }, a), {
877
894
  ref: null
878
- }), f = { minWidth: `${n}` };
895
+ }), h = { minWidth: `${n}` };
879
896
  switch (m) {
880
897
  case "search":
881
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 32 30" }, d), /* @__PURE__ */ r.createElement(
898
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 32 30" }, d), /* @__PURE__ */ s.createElement(
882
899
  "circle",
883
900
  {
884
901
  cx: "14.8457",
@@ -886,9 +903,9 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
886
903
  r: "8.14359",
887
904
  transform: "rotate(45 14.8457 14.5175)"
888
905
  }
889
- ), /* @__PURE__ */ r.createElement("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" }));
906
+ ), /* @__PURE__ */ s.createElement("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" }));
890
907
  case "clear":
891
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 27 27" }, d), /* @__PURE__ */ r.createElement(
908
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 27 27" }, d), /* @__PURE__ */ s.createElement(
892
909
  "circle",
893
910
  {
894
911
  cx: "13.4351",
@@ -897,7 +914,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
897
914
  transform: "rotate(45 13.4351 13.435)",
898
915
  stroke: "black"
899
916
  }
900
- ), /* @__PURE__ */ r.createElement(
917
+ ), /* @__PURE__ */ s.createElement(
901
918
  "line",
902
919
  {
903
920
  x1: "16.6172",
@@ -906,7 +923,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
906
923
  y2: "16.6171",
907
924
  stroke: "black"
908
925
  }
909
- ), /* @__PURE__ */ r.createElement(
926
+ ), /* @__PURE__ */ s.createElement(
910
927
  "line",
911
928
  {
912
929
  x1: "16.6171",
@@ -917,17 +934,17 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
917
934
  }
918
935
  ));
919
936
  case "close":
920
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 13 13" }, d), /* @__PURE__ */ r.createElement("path", { d: "M12.3068 0.50647L1.27246 11.7273", stroke: "black" }), /* @__PURE__ */ r.createElement("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" }));
937
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 13 13" }, d), /* @__PURE__ */ s.createElement("path", { d: "M12.3068 0.50647L1.27246 11.7273", stroke: "black" }), /* @__PURE__ */ s.createElement("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" }));
921
938
  case "caret-right":
922
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" }));
939
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" }));
923
940
  case "caret-left":
924
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" }));
941
+ return /* @__PURE__ */ s.createElement("svg", p({ 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" }));
925
942
  case "caret-up":
926
- return /* @__PURE__ */ r.createElement(Mn, h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
943
+ return /* @__PURE__ */ s.createElement(Nn, p({ 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" }));
927
944
  case "caret-down":
928
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
945
+ return /* @__PURE__ */ s.createElement("svg", p({ 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" }));
929
946
  case "back":
930
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 18 18" }, d), /* @__PURE__ */ r.createElement(
947
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 18 18" }, d), /* @__PURE__ */ s.createElement(
931
948
  "line",
932
949
  {
933
950
  y1: "-0.5",
@@ -936,7 +953,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
936
953
  transform: "matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",
937
954
  stroke: "white"
938
955
  }
939
- ), /* @__PURE__ */ r.createElement(
956
+ ), /* @__PURE__ */ s.createElement(
940
957
  "line",
941
958
  {
942
959
  y1: "-0.5",
@@ -947,7 +964,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
947
964
  }
948
965
  ));
949
966
  case "alert":
950
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ r.createElement("circle", { cx: "9.5", cy: "9.5", r: "9.5", fill: "#CA0813" }), /* @__PURE__ */ r.createElement(
967
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ s.createElement("circle", { cx: "9.5", cy: "9.5", r: "9.5", fill: "#CA0813" }), /* @__PURE__ */ s.createElement(
951
968
  "path",
952
969
  {
953
970
  d: "M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",
@@ -955,7 +972,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
955
972
  }
956
973
  ));
957
974
  case "send":
958
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 20 17" }, d), /* @__PURE__ */ r.createElement(
975
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 20 17" }, d), /* @__PURE__ */ s.createElement(
959
976
  "path",
960
977
  {
961
978
  d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
@@ -965,7 +982,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
965
982
  }
966
983
  ));
967
984
  case "chat":
968
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "-2 -3 40 40" }, d), /* @__PURE__ */ r.createElement(
985
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "-2 -3 40 40" }, d), /* @__PURE__ */ s.createElement(
969
986
  "path",
970
987
  {
971
988
  strokeWidth: "0",
@@ -974,21 +991,21 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
974
991
  d: "M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",
975
992
  fill: "currentColor"
976
993
  }
977
- ), /* @__PURE__ */ r.createElement(
994
+ ), /* @__PURE__ */ s.createElement(
978
995
  "path",
979
996
  {
980
997
  strokeWidth: "0",
981
998
  d: "M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",
982
999
  fill: "currentColor"
983
1000
  }
984
- ), /* @__PURE__ */ r.createElement(
1001
+ ), /* @__PURE__ */ s.createElement(
985
1002
  "path",
986
1003
  {
987
1004
  strokeWidth: "0",
988
1005
  d: "M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",
989
1006
  fill: "currentColor"
990
1007
  }
991
- ), /* @__PURE__ */ r.createElement(
1008
+ ), /* @__PURE__ */ s.createElement(
992
1009
  "path",
993
1010
  {
994
1011
  strokeWidth: "0",
@@ -997,13 +1014,13 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
997
1014
  }
998
1015
  ));
999
1016
  case "chat-new":
1000
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 26 24" }, d), /* @__PURE__ */ r.createElement(
1017
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 26 24" }, d), /* @__PURE__ */ s.createElement(
1001
1018
  "path",
1002
1019
  {
1003
1020
  d: "M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",
1004
1021
  fill: "currentColor"
1005
1022
  }
1006
- ), /* @__PURE__ */ r.createElement(
1023
+ ), /* @__PURE__ */ s.createElement(
1007
1024
  "path",
1008
1025
  {
1009
1026
  d: "M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",
@@ -1011,25 +1028,25 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1011
1028
  }
1012
1029
  ));
1013
1030
  case "agent":
1014
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 36 30" }, d), /* @__PURE__ */ r.createElement(
1031
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 36 30" }, d), /* @__PURE__ */ s.createElement(
1015
1032
  "path",
1016
1033
  {
1017
1034
  d: "M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",
1018
1035
  stroke: "white"
1019
1036
  }
1020
- ), /* @__PURE__ */ r.createElement(
1037
+ ), /* @__PURE__ */ s.createElement(
1021
1038
  "path",
1022
1039
  {
1023
1040
  d: "M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",
1024
1041
  stroke: "white"
1025
1042
  }
1026
- ), /* @__PURE__ */ r.createElement(
1043
+ ), /* @__PURE__ */ s.createElement(
1027
1044
  "path",
1028
1045
  {
1029
1046
  d: "M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",
1030
1047
  stroke: "white"
1031
1048
  }
1032
- ), /* @__PURE__ */ r.createElement("circle", { cx: "17.4074", cy: "26.9795", r: "2.05271", stroke: "white" }), /* @__PURE__ */ r.createElement(
1049
+ ), /* @__PURE__ */ s.createElement("circle", { cx: "17.4074", cy: "26.9795", r: "2.05271", stroke: "white" }), /* @__PURE__ */ s.createElement(
1033
1050
  "path",
1034
1051
  {
1035
1052
  d: "M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",
@@ -1037,11 +1054,11 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1037
1054
  }
1038
1055
  ));
1039
1056
  case "minimize":
1040
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 -10 22 22" }, d), /* @__PURE__ */ r.createElement("path", { d: "M0 1H22", stroke: "white" }));
1057
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 -10 22 22" }, d), /* @__PURE__ */ s.createElement("path", { d: "M0 1H22", stroke: "white" }));
1041
1058
  case "sorting":
1042
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 18 14" }, d), /* @__PURE__ */ r.createElement("path", { d: "M18 1H0M8 13H0M13 7H0" }));
1059
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 18 14" }, d), /* @__PURE__ */ s.createElement("path", { d: "M18 1H0M8 13H0M13 7H0" }));
1043
1060
  case "copy":
1044
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 19 17" }, d), /* @__PURE__ */ r.createElement(
1061
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 19 17" }, d), /* @__PURE__ */ s.createElement(
1045
1062
  "rect",
1046
1063
  {
1047
1064
  x: "0.5",
@@ -1051,7 +1068,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1051
1068
  rx: "1.5",
1052
1069
  fill: "white"
1053
1070
  }
1054
- ), /* @__PURE__ */ r.createElement(
1071
+ ), /* @__PURE__ */ s.createElement(
1055
1072
  "rect",
1056
1073
  {
1057
1074
  x: "6.83301",
@@ -1063,28 +1080,28 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1063
1080
  }
1064
1081
  ));
1065
1082
  case "print":
1066
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 16 17" }, d), /* @__PURE__ */ r.createElement(
1083
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 16 17" }, d), /* @__PURE__ */ s.createElement(
1067
1084
  "path",
1068
1085
  {
1069
1086
  d: "M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",
1070
1087
  fill: "white",
1071
1088
  stroke: "black"
1072
1089
  }
1073
- ), /* @__PURE__ */ r.createElement(
1090
+ ), /* @__PURE__ */ s.createElement(
1074
1091
  "path",
1075
1092
  {
1076
1093
  d: "M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",
1077
1094
  fill: "white",
1078
1095
  stroke: "black"
1079
1096
  }
1080
- ), /* @__PURE__ */ r.createElement(
1097
+ ), /* @__PURE__ */ s.createElement(
1081
1098
  "path",
1082
1099
  {
1083
1100
  d: "M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",
1084
1101
  fill: "white",
1085
1102
  stroke: "black"
1086
1103
  }
1087
- ), /* @__PURE__ */ r.createElement(
1104
+ ), /* @__PURE__ */ s.createElement(
1088
1105
  "line",
1089
1106
  {
1090
1107
  x1: "5.29004",
@@ -1093,7 +1110,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1093
1110
  y2: "10.8323",
1094
1111
  stroke: "black"
1095
1112
  }
1096
- ), /* @__PURE__ */ r.createElement(
1113
+ ), /* @__PURE__ */ s.createElement(
1097
1114
  "line",
1098
1115
  {
1099
1116
  x1: "5.29004",
@@ -1102,7 +1119,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1102
1119
  y2: "12.5242",
1103
1120
  stroke: "black"
1104
1121
  }
1105
- ), /* @__PURE__ */ r.createElement(
1122
+ ), /* @__PURE__ */ s.createElement(
1106
1123
  "line",
1107
1124
  {
1108
1125
  x1: "5.29004",
@@ -1113,7 +1130,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1113
1130
  }
1114
1131
  ));
1115
1132
  case "language":
1116
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ r.createElement(
1133
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ s.createElement(
1117
1134
  "path",
1118
1135
  {
1119
1136
  d: "M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",
@@ -1121,19 +1138,19 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1121
1138
  }
1122
1139
  ));
1123
1140
  case "information":
1124
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 17 17" }, d), /* @__PURE__ */ r.createElement(
1141
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 17 17" }, d), /* @__PURE__ */ s.createElement(
1125
1142
  "path",
1126
1143
  {
1127
1144
  d: "M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",
1128
1145
  fill: "black"
1129
1146
  }
1130
- ), /* @__PURE__ */ r.createElement(
1147
+ ), /* @__PURE__ */ s.createElement(
1131
1148
  "path",
1132
1149
  {
1133
1150
  d: "M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",
1134
1151
  fill: "black"
1135
1152
  }
1136
- ), /* @__PURE__ */ r.createElement(
1153
+ ), /* @__PURE__ */ s.createElement(
1137
1154
  "path",
1138
1155
  {
1139
1156
  fillRule: "evenodd",
@@ -1143,9 +1160,9 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1143
1160
  }
1144
1161
  ));
1145
1162
  case "options":
1146
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 16 2" }, d), /* @__PURE__ */ r.createElement("circle", { cx: "15", cy: "1", r: "1", transform: "rotate(90 15 1)", fill: "black" }), /* @__PURE__ */ r.createElement("circle", { cx: "1", cy: "1", r: "1", transform: "rotate(90 1 1)", fill: "black" }), /* @__PURE__ */ r.createElement("circle", { cx: "8", cy: "1", r: "1", transform: "rotate(90 8 1)", fill: "black" }));
1163
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 16 2" }, d), /* @__PURE__ */ s.createElement("circle", { cx: "15", cy: "1", r: "1", transform: "rotate(90 15 1)", fill: "black" }), /* @__PURE__ */ s.createElement("circle", { cx: "1", cy: "1", r: "1", transform: "rotate(90 1 1)", fill: "black" }), /* @__PURE__ */ s.createElement("circle", { cx: "8", cy: "1", r: "1", transform: "rotate(90 8 1)", fill: "black" }));
1147
1164
  case "browse":
1148
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }), /* @__PURE__ */ r.createElement(
1165
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }), /* @__PURE__ */ s.createElement(
1149
1166
  "path",
1150
1167
  {
1151
1168
  fillRule: "evenodd",
@@ -1153,7 +1170,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1153
1170
  d: "M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",
1154
1171
  fill: "white"
1155
1172
  }
1156
- ), /* @__PURE__ */ r.createElement(
1173
+ ), /* @__PURE__ */ s.createElement(
1157
1174
  "path",
1158
1175
  {
1159
1176
  fillRule: "evenodd",
@@ -1161,7 +1178,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1161
1178
  d: "M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",
1162
1179
  fill: "white"
1163
1180
  }
1164
- ), /* @__PURE__ */ r.createElement(
1181
+ ), /* @__PURE__ */ s.createElement(
1165
1182
  "path",
1166
1183
  {
1167
1184
  fillRule: "evenodd",
@@ -1169,7 +1186,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1169
1186
  d: "M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",
1170
1187
  fill: "white"
1171
1188
  }
1172
- ), /* @__PURE__ */ r.createElement(
1189
+ ), /* @__PURE__ */ s.createElement(
1173
1190
  "path",
1174
1191
  {
1175
1192
  fillRule: "evenodd",
@@ -1179,7 +1196,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1179
1196
  }
1180
1197
  ));
1181
1198
  case "video":
1182
- return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ r.createElement("svg", k(h({ viewBox: "0 0 25 25" }, d), { style: f }), /* @__PURE__ */ r.createElement(
1199
+ return h.minWidth && typeof h.minWidth == "number" && (h.minWidth = `${h.minWidth}px`), /* @__PURE__ */ s.createElement("svg", k(p({ viewBox: "0 0 25 25" }, d), { style: h }), /* @__PURE__ */ s.createElement(
1183
1200
  "path",
1184
1201
  {
1185
1202
  d: "M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",
@@ -1188,7 +1205,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1188
1205
  strokeLinecap: "round",
1189
1206
  strokeLinejoin: "round"
1190
1207
  }
1191
- ), /* @__PURE__ */ r.createElement(
1208
+ ), /* @__PURE__ */ s.createElement(
1192
1209
  "path",
1193
1210
  {
1194
1211
  fillRule: "evenodd",
@@ -1201,7 +1218,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1201
1218
  }
1202
1219
  ));
1203
1220
  case "star-empty":
1204
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ r.createElement(
1221
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ s.createElement(
1205
1222
  "path",
1206
1223
  {
1207
1224
  d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
@@ -1209,7 +1226,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1209
1226
  }
1210
1227
  ));
1211
1228
  case "star-filled":
1212
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ r.createElement(
1229
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ s.createElement(
1213
1230
  "path",
1214
1231
  {
1215
1232
  d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
@@ -1218,7 +1235,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1218
1235
  }
1219
1236
  ));
1220
1237
  case "cog-wheel":
1221
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1238
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1222
1239
  "path",
1223
1240
  {
1224
1241
  fillRule: "evenodd",
@@ -1228,7 +1245,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1228
1245
  }
1229
1246
  ));
1230
1247
  case "zoom-in":
1231
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1248
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1232
1249
  "path",
1233
1250
  {
1234
1251
  fillRule: "evenodd",
@@ -1236,7 +1253,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1236
1253
  d: "M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",
1237
1254
  fill: "white"
1238
1255
  }
1239
- ), /* @__PURE__ */ r.createElement(
1256
+ ), /* @__PURE__ */ s.createElement(
1240
1257
  "path",
1241
1258
  {
1242
1259
  fillRule: "evenodd",
@@ -1244,7 +1261,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1244
1261
  d: "M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",
1245
1262
  fill: "white"
1246
1263
  }
1247
- ), /* @__PURE__ */ r.createElement(
1264
+ ), /* @__PURE__ */ s.createElement(
1248
1265
  "path",
1249
1266
  {
1250
1267
  fillRule: "evenodd",
@@ -1254,7 +1271,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1254
1271
  }
1255
1272
  ));
1256
1273
  case "zoom-out":
1257
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1274
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1258
1275
  "path",
1259
1276
  {
1260
1277
  fillRule: "evenodd",
@@ -1262,7 +1279,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1262
1279
  d: "M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",
1263
1280
  fill: "white"
1264
1281
  }
1265
- ), /* @__PURE__ */ r.createElement(
1282
+ ), /* @__PURE__ */ s.createElement(
1266
1283
  "path",
1267
1284
  {
1268
1285
  fillRule: "evenodd",
@@ -1272,7 +1289,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1272
1289
  }
1273
1290
  ));
1274
1291
  case "download":
1275
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1292
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1276
1293
  "path",
1277
1294
  {
1278
1295
  fillRule: "evenodd",
@@ -1282,7 +1299,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1282
1299
  }
1283
1300
  ));
1284
1301
  case "lightbox-close":
1285
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1302
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1286
1303
  "path",
1287
1304
  {
1288
1305
  xmlns: "http://www.w3.org/2000/svg",
@@ -1293,7 +1310,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1293
1310
  }
1294
1311
  ));
1295
1312
  case "pagination-left":
1296
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1313
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1297
1314
  "path",
1298
1315
  {
1299
1316
  fillRule: "evenodd",
@@ -1303,14 +1320,14 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1303
1320
  }
1304
1321
  ));
1305
1322
  case "pagination-right":
1306
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement("path", { d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }));
1323
+ return /* @__PURE__ */ s.createElement("svg", p({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement("path", { d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }));
1307
1324
  }
1308
1325
  return null;
1309
1326
  }
1310
1327
  case "FontAwesome":
1311
- return /* @__PURE__ */ r.createElement(
1312
- Un,
1313
- h({
1328
+ return /* @__PURE__ */ s.createElement(
1329
+ ro,
1330
+ p({
1314
1331
  className: i,
1315
1332
  faIcon: m,
1316
1333
  title: e
@@ -1318,18 +1335,18 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1318
1335
  );
1319
1336
  default:
1320
1337
  case "Text":
1321
- return e ? /* @__PURE__ */ r.createElement(
1338
+ return e ? /* @__PURE__ */ s.createElement(
1322
1339
  "i",
1323
- h(h({
1340
+ p(p({
1324
1341
  className: M(i, "humany-letter-symbol"),
1325
1342
  title: e
1326
- }, p), a),
1343
+ }, f), a),
1327
1344
  e.substring(0, 2)
1328
1345
  ) : null;
1329
1346
  }
1330
- }, Mn = y.svg`
1347
+ }, Nn = y.svg`
1331
1348
  transform: rotate(180deg);
1332
- `, J = Ln, Sn = {
1349
+ `, ne = Bn, Pn = {
1333
1350
  h1: "h1",
1334
1351
  h2: "h2",
1335
1352
  h3: "h3",
@@ -1338,58 +1355,58 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1338
1355
  h6: "h6",
1339
1356
  p: "p",
1340
1357
  span: "span"
1341
- }, Rn = ({ variant: e, component: t, className: n, children: o }) => {
1342
- const { typographyVariantMapping: s = {} } = nn(), i = h(h({}, Sn), s), a = t || i[e] || "span";
1343
- return /* @__PURE__ */ r.createElement(Hn, { className: n, as: a }, o);
1344
- }, Hn = y.span``, q = Rn;
1345
- var Tn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Tn || {});
1346
- const Dn = 300, Bn = ({
1358
+ }, In = ({ variant: e, component: t, className: n, children: o }) => {
1359
+ const { typographyVariantMapping: r = {} } = hn(), i = p(p({}, Pn), r), a = t || i[e] || "span";
1360
+ return /* @__PURE__ */ s.createElement(Wn, { className: n, as: a }, o);
1361
+ }, Wn = y.span``, J = In;
1362
+ var Zn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Zn || {});
1363
+ const On = 300, Fn = ({
1347
1364
  className: e,
1348
1365
  children: t,
1349
1366
  header: n,
1350
1367
  onToggle: o,
1351
- trigger: s,
1368
+ trigger: r,
1352
1369
  fullScreen: i = !1,
1353
1370
  closeButtonAriaLabel: a,
1354
1371
  animation: l = {
1355
1372
  type: "slide-in-bottom"
1356
1373
  }
1357
1374
  }) => {
1358
- const { duration: u = Dn } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, C] = Ye(), x = Fe(f), b = R(Q());
1359
- v(() => {
1360
- o && o(f);
1361
- }, [f]);
1362
- const E = X("Escape");
1363
- v(() => {
1364
- E && C(!1);
1365
- }, [E]), I(
1375
+ const { duration: u = On } = l, c = R(), m = R(), [f, d] = tt(!0), [h, C] = nt(), E = Je(h), b = R(ee());
1376
+ w(() => {
1377
+ o && o(h);
1378
+ }, [h]);
1379
+ const v = q("Escape");
1380
+ w(() => {
1381
+ v && C(!1);
1382
+ }, [v]), Z(
1366
1383
  "click",
1367
- (z) => {
1368
- const { target: T } = z;
1369
- !m.current || !d.current || !T || m.current !== T && d.current !== T && !d.current.contains(T) && !m.current.contains(T) && C(!1);
1384
+ (V) => {
1385
+ const { target: z } = V;
1386
+ !m.current || !d.current || !z || m.current !== z && d.current !== z && !d.current.contains(z) && !m.current.contains(z) && C(!1);
1370
1387
  },
1371
1388
  window
1372
1389
  );
1373
- const g = ve(b.current, () => {
1390
+ const g = $e(b.current, () => {
1374
1391
  C(!1);
1375
1392
  });
1376
- ce("router:changed", () => {
1393
+ ue("router:changed", () => {
1377
1394
  C(!1);
1378
- }), v(() => {
1379
- f && c.current ? c.current.focus() : !f && m.current && x && m.current.focus();
1380
- }, [f, c.current, m.current]);
1381
- const B = In[l.type];
1382
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
1383
- Ie,
1395
+ }), w(() => {
1396
+ h && c.current ? c.current.focus() : !h && m.current && E && m.current.focus();
1397
+ }, [h, c.current, m.current]);
1398
+ const H = Xn[l.type];
1399
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
1400
+ Xe,
1384
1401
  {
1385
- in: f,
1402
+ in: h,
1386
1403
  className: "humany-drawer-transition",
1387
1404
  classNames: "humany-drawer-transition",
1388
1405
  unmountOnExit: !0,
1389
1406
  timeout: u
1390
1407
  },
1391
- /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
1392
- B,
1408
+ /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
1409
+ H,
1393
1410
  {
1394
1411
  duration: u,
1395
1412
  fullScreen: i,
@@ -1399,31 +1416,31 @@ const Dn = 300, Bn = ({
1399
1416
  `humany-drawer-${b.current}`
1400
1417
  ),
1401
1418
  clientHeight: document.body.clientHeight,
1402
- css: p,
1419
+ css: f,
1403
1420
  ref: d
1404
1421
  },
1405
- /* @__PURE__ */ r.createElement(
1406
- xe,
1422
+ /* @__PURE__ */ s.createElement(
1423
+ Le,
1407
1424
  {
1408
1425
  onClick: () => C(!1),
1409
1426
  tabIndex: 0,
1410
1427
  ref: c,
1411
1428
  "aria-label": a
1412
1429
  },
1413
- /* @__PURE__ */ r.createElement(J, { symbol: { type: "Svg", content: "close" } })
1430
+ /* @__PURE__ */ s.createElement(ne, { symbol: { type: "Svg", content: "close" } })
1414
1431
  ),
1415
- !!n && /* @__PURE__ */ r.createElement(zn, { variant: "h1", className: "humany-drawer-header" }, n),
1432
+ !!n && /* @__PURE__ */ s.createElement(An, { variant: "h1", className: "humany-drawer-header" }, n),
1416
1433
  t
1417
1434
  ))
1418
- ), r.cloneElement(s, {
1419
- onClick: (z) => {
1435
+ ), s.cloneElement(r, {
1436
+ onClick: (V) => {
1420
1437
  C(), g();
1421
1438
  },
1422
1439
  ref: m,
1423
- "aria-label": s.props.title,
1424
- "aria-expanded": f
1440
+ "aria-label": r.props.title,
1441
+ "aria-expanded": h
1425
1442
  }));
1426
- }, No = Bn, le = y.div`
1443
+ }, os = Fn, de = y.div`
1427
1444
  font-family: ${(e) => {
1428
1445
  var t;
1429
1446
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1440,7 +1457,7 @@ const Dn = 300, Bn = ({
1440
1457
  box-shadow: ${(e) => e.theme.boxShadow};
1441
1458
  background: #ffffff;
1442
1459
  ${(e) => e.css && e.css}
1443
- `, zn = y(q)`
1460
+ `, An = y(J)`
1444
1461
  padding: ${(e) => {
1445
1462
  var t;
1446
1463
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
@@ -1463,11 +1480,11 @@ const Dn = 300, Bn = ({
1463
1480
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
1464
1481
  }};
1465
1482
  line-height: 1.2em;
1466
- `, ue = (e) => L`
1483
+ `, me = (e) => L`
1467
1484
  transition: ${e.duration}ms;
1468
- `, Nn = y(le)`
1485
+ `, jn = y(de)`
1469
1486
  max-height: 0;
1470
- ${ue}
1487
+ ${me}
1471
1488
 
1472
1489
  &.humany-drawer-transition-enter {
1473
1490
  max-height: 0;
@@ -1482,8 +1499,8 @@ const Dn = 300, Bn = ({
1482
1499
  &.humany-drawer-transition-exit-done {
1483
1500
  max-height: 0;
1484
1501
  }
1485
- `, Vn = y(le)`
1486
- ${ue}
1502
+ `, Kn = y(de)`
1503
+ ${me}
1487
1504
  transform: translateX(100%);
1488
1505
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1489
1506
 
@@ -1500,8 +1517,8 @@ const Dn = 300, Bn = ({
1500
1517
  &.humany-drawer-transition-exit-done {
1501
1518
  transform: translateX(100%);
1502
1519
  }
1503
- `, Wn = y(le)`
1504
- ${ue}
1520
+ `, Yn = y(de)`
1521
+ ${me}
1505
1522
  transform: translateX(-100%);
1506
1523
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1507
1524
 
@@ -1518,8 +1535,8 @@ const Dn = 300, Bn = ({
1518
1535
  &.humany-drawer-transition-exit-done {
1519
1536
  transform: translateX(-100%);
1520
1537
  }
1521
- `, Zn = y(le)`
1522
- ${ue}
1538
+ `, Un = y(de)`
1539
+ ${me}
1523
1540
  bottom: unset;
1524
1541
  top: 0;
1525
1542
  height: 0;
@@ -1537,91 +1554,91 @@ const Dn = 300, Bn = ({
1537
1554
  &.humany-drawer-transition-exit-done {
1538
1555
  height: 0;
1539
1556
  }
1540
- `, In = {
1541
- ["slide-in-bottom"]: Nn,
1542
- ["slide-in-right"]: Vn,
1543
- ["slide-in-left"]: Wn,
1544
- ["slide-in-top"]: Zn
1545
- }, On = (e, t, n) => {
1546
- const [o, s] = $(0), [i, a] = $(0), l = H(
1557
+ `, Xn = {
1558
+ ["slide-in-bottom"]: jn,
1559
+ ["slide-in-right"]: Kn,
1560
+ ["slide-in-left"]: Yn,
1561
+ ["slide-in-top"]: Un
1562
+ }, qn = (e, t, n) => {
1563
+ const [o, r] = $(0), [i, a] = $(0), l = T(
1547
1564
  (u, c) => {
1548
1565
  if (u.preventDefault(), c) {
1549
1566
  const m = c.getBoundingClientRect();
1550
- s(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
1567
+ r(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
1551
1568
  }
1552
1569
  },
1553
- [o, i, s, a]
1570
+ [o, i, r, a]
1554
1571
  );
1555
- return v(() => {
1572
+ return w(() => {
1556
1573
  if (!n || !e)
1557
1574
  return;
1558
1575
  const u = n.getBoundingClientRect(), c = {
1559
1576
  x: o,
1560
1577
  y: i
1561
1578
  };
1562
- u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && s(c.x), c.y !== i && a(c.y);
1579
+ 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);
1563
1580
  }, [n, e, t]), [{ x: o, y: i }, l];
1564
- }, Xe = On, Pn = r.forwardRef(
1581
+ }, rt = qn, Qn = s.forwardRef(
1565
1582
  (a, i) => {
1566
- var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1583
+ var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, r = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1567
1584
  const u = R(), c = R(), m = R();
1568
- Ce(i, () => m.current, [m.current]);
1569
- const p = R(Q()), [d, f] = $(!1), C = Fe(d), [{ x, y: b }, E] = Xe(d, p.current, m.current), g = X("Escape");
1570
- v(() => {
1571
- g && f(!1);
1572
- }, [g]), v(() => {
1585
+ we(i, () => m.current, [m.current]);
1586
+ const f = R(ee()), [d, h] = $(!1), C = Je(d), [{ x: E, y: b }, v] = rt(d, f.current, m.current), g = q("Escape");
1587
+ w(() => {
1588
+ g && h(!1);
1589
+ }, [g]), w(() => {
1573
1590
  d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
1574
- }, [d, u.current, c.current]), I(
1591
+ }, [d, u.current, c.current]), Z(
1575
1592
  "click",
1576
- (T) => {
1577
- const { target: j } = T;
1578
- !m.current || !j || m.current !== j && !m.current.contains(j) && f(!1);
1593
+ (z) => {
1594
+ const { target: I } = z;
1595
+ !m.current || !I || m.current !== I && !m.current.contains(I) && h(!1);
1579
1596
  },
1580
1597
  window
1581
- ), ce("router:changed", () => {
1582
- f(!1);
1598
+ ), ue("router:changed", () => {
1599
+ h(!1);
1583
1600
  });
1584
- const B = ve(p.current, () => {
1585
- f(!1);
1586
- }), z = H(
1587
- (T) => {
1588
- T.stopPropagation(), E(T, c.current), f(!d), B();
1601
+ const H = $e(f.current, () => {
1602
+ h(!1);
1603
+ }), V = T(
1604
+ (z) => {
1605
+ z.stopPropagation(), v(z, c.current), h(!d), H();
1589
1606
  },
1590
- [B, E, f]
1607
+ [H, v, h]
1591
1608
  );
1592
- return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
1593
- Fn,
1594
- k(h({
1609
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, d && /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
1610
+ Gn,
1611
+ k(p({
1595
1612
  className: M(
1596
1613
  "humany-dropdown",
1597
- `humany-dropdown-${p.current}`,
1614
+ `humany-dropdown-${f.current}`,
1598
1615
  e
1599
1616
  )
1600
- }, s), {
1601
- x,
1617
+ }, r), {
1618
+ x: E,
1602
1619
  y: b,
1603
1620
  ref: m
1604
1621
  }),
1605
- /* @__PURE__ */ r.createElement(
1606
- xe,
1622
+ /* @__PURE__ */ s.createElement(
1623
+ Le,
1607
1624
  {
1608
- onClick: () => f(!1),
1625
+ onClick: () => h(!1),
1609
1626
  tabIndex: 0,
1610
1627
  ref: u,
1611
1628
  "aria-label": o
1612
1629
  },
1613
- /* @__PURE__ */ r.createElement(J, { symbol: { type: "Svg", content: "close" } })
1630
+ /* @__PURE__ */ s.createElement(ne, { symbol: { type: "Svg", content: "close" } })
1614
1631
  ),
1615
1632
  t
1616
- )), r.cloneElement(n, {
1617
- onClick: z,
1633
+ )), s.cloneElement(n, {
1634
+ onClick: V,
1618
1635
  ref: c,
1619
1636
  "aria-label": n.props.title,
1620
1637
  "aria-expanded": d
1621
1638
  }));
1622
1639
  }
1623
- ), Vo = Pn, Fn = y.div`
1624
- ${je}
1640
+ ), rs = Qn, Gn = y.div`
1641
+ ${ot}
1625
1642
  padding: ${(e) => {
1626
1643
  var t;
1627
1644
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -1631,86 +1648,86 @@ const Dn = 300, Bn = ({
1631
1648
  box-shadow: ${(e) => e.theme.boxShadow};
1632
1649
 
1633
1650
  ${(e) => {
1634
- var n, o, s;
1651
+ var n, o, r;
1635
1652
  let t = "";
1636
- return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((s = e.theme.sizes) == null ? void 0 : s.normal) || "0px"};`, t;
1653
+ 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;
1637
1654
  }};
1638
- `, An = (t) => {
1655
+ `, Jn = (t) => {
1639
1656
  var e = S(t, []);
1640
- return /* @__PURE__ */ r.createElement(Yn, h({}, e));
1641
- }, Kn = An, Yn = y.div`
1657
+ return /* @__PURE__ */ s.createElement(to, p({}, e));
1658
+ }, eo = Jn, to = y.div`
1642
1659
  display: none;
1643
- `, Wo = N(
1660
+ `, ss = _(
1644
1661
  (a, i) => {
1645
- var l = a, { children: e, columns: t, gap: n, className: o } = l, s = S(l, ["children", "columns", "gap", "className"]);
1646
- return /* @__PURE__ */ r.createElement(
1647
- jn,
1648
- k(h(h({
1662
+ var l = a, { children: e, columns: t, gap: n, className: o } = l, r = S(l, ["children", "columns", "gap", "className"]);
1663
+ return /* @__PURE__ */ s.createElement(
1664
+ no,
1665
+ k(p(p({
1649
1666
  className: M(o, "humany-grid"),
1650
1667
  "data-columns": t,
1651
1668
  "data-gap": n
1652
- }, Dt(s)), V(s)), {
1669
+ }, Ot(r)), B(r)), {
1653
1670
  ref: i
1654
1671
  }),
1655
1672
  e
1656
1673
  );
1657
1674
  }
1658
- ), jn = y.div`
1675
+ ), no = y.div`
1659
1676
  display: grid;
1660
1677
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1661
1678
  grid-gap: ${(e) => e["data-gap"]};
1662
1679
  justify-content: center;
1663
1680
  grid-auto-rows: max-content;
1664
- ${Tt}
1665
- `, Ue = N(
1666
- (i, s) => {
1681
+ ${Zt}
1682
+ `, st = _(
1683
+ (i, r) => {
1667
1684
  var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1668
- const l = W(), [u, c] = $();
1669
- return v(() => {
1670
- const m = Vt(l, n), p = k(h(h({}, m), e), {
1671
- transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
1672
- }), d = zt(n, p);
1685
+ const l = N(), [u, c] = $();
1686
+ return w(() => {
1687
+ const m = Kt(l, n), f = k(p(p({}, m), e), {
1688
+ transform: p(p({}, m.transform), e == null ? void 0 : e.transform)
1689
+ }), d = At(n, f);
1673
1690
  c(d);
1674
- }, [n, e]), /* @__PURE__ */ r.createElement(
1691
+ }, [n, e]), /* @__PURE__ */ s.createElement(
1675
1692
  "div",
1676
- k(h({
1693
+ k(p({
1677
1694
  className: M(t, "humany-html")
1678
- }, V(o)), {
1679
- ref: s
1695
+ }, B(o)), {
1696
+ ref: r
1680
1697
  }),
1681
1698
  u
1682
1699
  );
1683
1700
  }
1684
- ), Xn = (i) => {
1701
+ ), oo = (i) => {
1685
1702
  var a = i, {
1686
1703
  faIcon: e,
1687
1704
  title: t,
1688
1705
  className: n = "",
1689
1706
  role: o = "presentation"
1690
- } = a, s = S(a, [
1707
+ } = a, r = S(a, [
1691
1708
  "faIcon",
1692
1709
  "title",
1693
1710
  "className",
1694
1711
  "role"
1695
1712
  ]);
1696
- return /* @__PURE__ */ r.createElement(
1713
+ return /* @__PURE__ */ s.createElement(
1697
1714
  "i",
1698
- h({
1715
+ p({
1699
1716
  className: M(n, `fa fa-${e}`),
1700
1717
  title: t,
1701
1718
  role: o
1702
- }, V(s))
1719
+ }, B(r))
1703
1720
  );
1704
- }, Un = Xn, Zo = N(
1705
- (p, m) => {
1706
- var d = p, {
1721
+ }, ro = oo, is = _(
1722
+ (f, m) => {
1723
+ var d = f, {
1707
1724
  className: e = "",
1708
1725
  autoFocus: t = !1,
1709
1726
  onFocusChange: n = () => {
1710
1727
  },
1711
1728
  onEnter: o = () => {
1712
1729
  },
1713
- onEscape: s = () => {
1730
+ onEscape: r = () => {
1714
1731
  },
1715
1732
  selectAllOnFocus: i,
1716
1733
  onChange: a = () => {
@@ -1728,19 +1745,19 @@ const Dn = 300, Bn = ({
1728
1745
  "disabled",
1729
1746
  "type"
1730
1747
  ]);
1731
- const [f, C] = $(t), x = R();
1732
- Ce(m, () => x.current), v(() => {
1748
+ const [h, C] = $(t), E = R();
1749
+ we(m, () => E.current), w(() => {
1733
1750
  var g;
1734
- t && ((g = x == null ? void 0 : x.current) == null || g.focus());
1735
- }, [t, m, x]);
1736
- const b = (g, B) => {
1737
- C(g), n && n(g), i && g && B.target.select();
1738
- }, E = k(h({}, V(c)), {
1751
+ t && ((g = E == null ? void 0 : E.current) == null || g.focus());
1752
+ }, [t, m, E]);
1753
+ const b = (g, H) => {
1754
+ C(g), n && n(g), i && g && H.target.select();
1755
+ }, v = k(p({}, B(c)), {
1739
1756
  disabled: l,
1740
1757
  autoFocus: t,
1741
1758
  type: u,
1742
1759
  onKeyDown: (g) => {
1743
- g.key === "Enter" && f && o(g), g.key === "Escape" && f && s(g);
1760
+ g.key === "Enter" && h && o(g), g.key === "Escape" && h && r(g);
1744
1761
  },
1745
1762
  onFocus: (g) => b(!0, g),
1746
1763
  onBlur: (g) => b(!1, g),
@@ -1748,64 +1765,64 @@ const Dn = 300, Bn = ({
1748
1765
  className: M(e, "humany-input"),
1749
1766
  "data-type": u
1750
1767
  });
1751
- return u !== "textarea" ? /* @__PURE__ */ r.createElement(
1768
+ return u !== "textarea" ? /* @__PURE__ */ s.createElement(
1752
1769
  "input",
1753
- k(h({}, E), {
1754
- ref: x
1770
+ k(p({}, v), {
1771
+ ref: E
1755
1772
  })
1756
- ) : /* @__PURE__ */ r.createElement(
1773
+ ) : /* @__PURE__ */ s.createElement(
1757
1774
  "textarea",
1758
- k(h({}, E), {
1759
- ref: x
1775
+ k(p({}, v), {
1776
+ ref: E
1760
1777
  })
1761
1778
  );
1762
1779
  }
1763
- ), _n = N(
1780
+ ), so = _(
1764
1781
  (a, i) => {
1765
- var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, s = S(l, ["className", "items", "renderItem", "renderLi"]);
1766
- return /* @__PURE__ */ r.createElement(
1782
+ var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, r = S(l, ["className", "items", "renderItem", "renderLi"]);
1783
+ return /* @__PURE__ */ s.createElement(
1767
1784
  "ul",
1768
- k(h({
1785
+ k(p({
1769
1786
  className: M(e, "humany-list"),
1770
1787
  "data-item-count": t.length
1771
- }, V(s)), {
1788
+ }, B(r)), {
1772
1789
  ref: i
1773
1790
  }),
1774
1791
  t.map(
1775
- (u, c, m) => o ? /* @__PURE__ */ r.createElement("li", { className: "humany-list-item", key: u.id || c }, n(u, c, m)) : n(u, c, m)
1792
+ (u, c, m) => o ? /* @__PURE__ */ s.createElement("li", { className: "humany-list-item", key: u.id || c }, n(u, c, m)) : n(u, c, m)
1776
1793
  )
1777
1794
  );
1778
1795
  }
1779
- ), qn = N(
1796
+ ), io = _(
1780
1797
  (u, l) => {
1781
- var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: s, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1782
- return /* @__PURE__ */ r.createElement(
1798
+ 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"]);
1799
+ return /* @__PURE__ */ s.createElement(
1783
1800
  "div",
1784
- k(h({
1801
+ k(p({
1785
1802
  className: M(o, "humany-paragraph")
1786
- }, V(a)), {
1803
+ }, B(a)), {
1787
1804
  ref: l
1788
1805
  }),
1789
- n ? /* @__PURE__ */ r.createElement(q, { variant: "h1" }, i ? /* @__PURE__ */ r.createElement(J, { symbol: i }) : null, n) : null,
1790
- t ? /* @__PURE__ */ r.createElement(Ue, { html: t, htmlParseInstruction: s }) : null,
1791
- e ? /* @__PURE__ */ r.createElement(Ee, null, e) : null
1806
+ n ? /* @__PURE__ */ s.createElement(J, { variant: "h1" }, i ? /* @__PURE__ */ s.createElement(ne, { symbol: i }) : null, n) : null,
1807
+ t ? /* @__PURE__ */ s.createElement(st, { html: t, htmlParseInstruction: r }) : null,
1808
+ e ? /* @__PURE__ */ s.createElement(ke, null, e) : null
1792
1809
  );
1793
1810
  }
1794
- ), Qn = N(
1795
- (f, d) => {
1796
- var C = f, {
1811
+ ), ao = _(
1812
+ (h, d) => {
1813
+ var C = h, {
1797
1814
  header: e,
1798
1815
  customHeader: t,
1799
1816
  text: n,
1800
1817
  html: o,
1801
- className: s,
1818
+ className: r,
1802
1819
  children: i,
1803
1820
  symbol: a,
1804
1821
  items: l,
1805
1822
  renderItem: u,
1806
1823
  renderLi: c,
1807
1824
  ulProps: m
1808
- } = C, p = S(C, [
1825
+ } = C, f = S(C, [
1809
1826
  "header",
1810
1827
  "customHeader",
1811
1828
  "text",
@@ -1818,59 +1835,59 @@ const Dn = 300, Bn = ({
1818
1835
  "renderLi",
1819
1836
  "ulProps"
1820
1837
  ]);
1821
- return /* @__PURE__ */ r.createElement(
1838
+ return /* @__PURE__ */ s.createElement(
1822
1839
  "div",
1823
- k(h({
1824
- className: M(s, "humany-item-list"),
1840
+ k(p({
1841
+ className: M(r, "humany-item-list"),
1825
1842
  "data-item-count": l.length
1826
- }, V(p)), {
1843
+ }, B(f)), {
1827
1844
  ref: d
1828
1845
  }),
1829
- t || (e || n || o ? /* @__PURE__ */ r.createElement(qn, { symbol: a, header: e, text: n, html: o }) : null),
1830
- l.length ? /* @__PURE__ */ r.createElement(_n, h({ items: l, renderItem: u, renderLi: c }, m)) : null,
1846
+ t || (e || n || o ? /* @__PURE__ */ s.createElement(io, { symbol: a, header: e, text: n, html: o }) : null),
1847
+ l.length ? /* @__PURE__ */ s.createElement(so, p({ items: l, renderItem: u, renderLi: c }, m)) : null,
1831
1848
  i
1832
1849
  );
1833
1850
  }
1834
- ), Gn = ({
1851
+ ), co = ({
1835
1852
  className: e = "",
1836
1853
  tree: t,
1837
1854
  renderItem: n,
1838
1855
  rootItem: o,
1839
- renderUnselected: s = !0,
1856
+ renderUnselected: r = !0,
1840
1857
  renderEmpty: i = !0,
1841
1858
  ulProps: a,
1842
1859
  liProps: l
1843
1860
  }) => {
1844
- const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(
1845
- Qn,
1861
+ const u = (f) => !c(f), c = (f) => !f || f.length < 1 ? !0 : !f.some((d) => !!d.selected), m = (f, d) => /* @__PURE__ */ s.createElement(
1862
+ ao,
1846
1863
  {
1847
1864
  className: M(`humany-item-tree-level-${d}`),
1848
- items: p,
1865
+ items: f,
1849
1866
  ulProps: a,
1850
- renderItem: (f) => {
1851
- const { id: C, selected: x, items: b, matches: E } = f, g = x && c(b);
1852
- return !i && !E ? null : /* @__PURE__ */ r.createElement(
1867
+ renderItem: (h) => {
1868
+ const { id: C, selected: E, items: b, matches: v } = h, g = E && c(b);
1869
+ return !i && !v ? null : /* @__PURE__ */ s.createElement(
1853
1870
  "li",
1854
- k(h({}, V(l)), {
1871
+ k(p({}, B(l)), {
1855
1872
  key: C,
1856
1873
  className: "humany-item-tree-item"
1857
1874
  }),
1858
- n && n(f, d, g),
1859
- b && (s || g) && m(b, d + 1)
1875
+ n && n(h, d, g),
1876
+ b && (r || g) && m(b, d + 1)
1860
1877
  );
1861
1878
  }
1862
1879
  }
1863
1880
  );
1864
- return /* @__PURE__ */ r.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
1865
- }, Io = Gn, Jn = N(
1881
+ return /* @__PURE__ */ s.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
1882
+ }, as = co, lo = _(
1866
1883
  (u, l) => {
1867
1884
  var c = u, { className: e, onClick: t = () => {
1868
- }, name: n = "", to: o = "", params: s = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1869
- const m = Ae(), p = W();
1885
+ }, name: n = "", to: o = "", params: r = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1886
+ const m = et(), f = N();
1870
1887
  if (!m)
1871
1888
  return null;
1872
1889
  let d = "";
1873
- const f = k(h({
1890
+ const h = k(p({
1874
1891
  onClick: t,
1875
1892
  className: M(e, "humany-route-link"),
1876
1893
  to: d,
@@ -1879,23 +1896,23 @@ const Dn = 300, Bn = ({
1879
1896
  ref: null
1880
1897
  });
1881
1898
  if (n) {
1882
- if (!(m.routes || []).find((E) => E.name === n))
1883
- return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(
1884
- fe,
1885
- k(h({}, f), {
1886
- onClick: (E) => {
1887
- t(E), E.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
1899
+ if (!(m.routes || []).find((v) => v.name === n))
1900
+ return process.env.NODE_ENV !== "production" && fe.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ s.createElement(
1901
+ pe,
1902
+ k(p({}, h), {
1903
+ onClick: (v) => {
1904
+ t(v), v.preventDefault(), process.env.NODE_ENV !== "production" && fe.warn(`Unable to navigate. No route named "${n}" exist.`);
1888
1905
  }
1889
1906
  }),
1890
1907
  i
1891
1908
  );
1892
- const b = Object.keys(s).reduce((E, g) => (E[g] = typeof s[g] == "string" ? encodeURIComponent(s[g]) : s[g], E), {});
1909
+ const b = Object.keys(r).reduce((v, g) => (v[g] = typeof r[g] == "string" ? encodeURIComponent(r[g]) : r[g], v), {});
1893
1910
  try {
1894
1911
  d = m.generate(n, b || {});
1895
- } catch (E) {
1896
- return /* @__PURE__ */ r.createElement(fe, h({}, f), i);
1912
+ } catch (v) {
1913
+ return /* @__PURE__ */ s.createElement(pe, p({}, h), i);
1897
1914
  }
1898
- d && m.settings.mode && m.settings.mode === Be.browser && d[0] !== "/" && (d = `/${d}`);
1915
+ d && m.settings.mode && m.settings.mode === Pe.browser && d[0] !== "/" && (d = `/${d}`);
1899
1916
  } else if (o && m.history)
1900
1917
  d = m.history.createHref({
1901
1918
  hash: "",
@@ -1904,23 +1921,23 @@ const Dn = 300, Bn = ({
1904
1921
  state: void 0
1905
1922
  });
1906
1923
  else
1907
- return process.env.NODE_ENV !== "production" && de.warn(
1924
+ return process.env.NODE_ENV !== "production" && fe.warn(
1908
1925
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1909
1926
  ), null;
1910
- if (m.settings && m.settings.mode === Be.scopedHash) {
1911
- const C = p.get("$widget").name;
1912
- d = xt(d, C);
1927
+ if (m.settings && m.settings.mode === Pe.scopedHash) {
1928
+ const C = f.get("$widget").name;
1929
+ d = Tt(d, C);
1913
1930
  }
1914
- return f.as ? /* @__PURE__ */ r.createElement(er, k(h({}, f), { as: f.as }), i) : /* @__PURE__ */ r.createElement(fe, k(h({}, f), { to: d }), i);
1931
+ return h.as ? /* @__PURE__ */ s.createElement(uo, k(p({}, h), { as: h.as }), i) : /* @__PURE__ */ s.createElement(pe, k(p({}, h), { to: d }), i);
1915
1932
  }
1916
- ), er = y.span``, we = N(
1917
- (x, C) => {
1918
- var b = x, {
1933
+ ), uo = y.span``, Me = _(
1934
+ (E, C) => {
1935
+ var b = E, {
1919
1936
  className: e,
1920
1937
  disabled: t = !1,
1921
1938
  role: n = "link",
1922
1939
  tabIndex: o = 0,
1923
- onClick: s = () => {
1940
+ onClick: r = () => {
1924
1941
  },
1925
1942
  onKeyDown: i = () => {
1926
1943
  },
@@ -1929,9 +1946,9 @@ const Dn = 300, Bn = ({
1929
1946
  href: u,
1930
1947
  children: c,
1931
1948
  target: m,
1932
- routeName: p,
1949
+ routeName: f,
1933
1950
  params: d
1934
- } = b, f = S(b, [
1951
+ } = b, h = S(b, [
1935
1952
  "className",
1936
1953
  "disabled",
1937
1954
  "role",
@@ -1946,7 +1963,7 @@ const Dn = 300, Bn = ({
1946
1963
  "routeName",
1947
1964
  "params"
1948
1965
  ]);
1949
- const E = {
1966
+ const v = {
1950
1967
  title: a,
1951
1968
  disabled: t,
1952
1969
  role: n,
@@ -1958,7 +1975,7 @@ const Dn = 300, Bn = ({
1958
1975
  g.preventDefault();
1959
1976
  return;
1960
1977
  }
1961
- s(g);
1978
+ r(g);
1962
1979
  },
1963
1980
  onKeyDown: (g) => {
1964
1981
  if (g.persist(), t) {
@@ -1968,57 +1985,57 @@ const Dn = 300, Bn = ({
1968
1985
  i(g);
1969
1986
  }
1970
1987
  };
1971
- return p ? /* @__PURE__ */ r.createElement(
1972
- tr,
1973
- k(h(h({
1974
- name: p,
1988
+ return f ? /* @__PURE__ */ s.createElement(
1989
+ mo,
1990
+ k(p(p({
1991
+ name: f,
1975
1992
  params: d
1976
- }, E), V(f)), {
1993
+ }, v), B(h)), {
1977
1994
  ref: C
1978
1995
  }),
1979
1996
  c
1980
- ) : /* @__PURE__ */ r.createElement(
1981
- nr,
1982
- k(h(h({
1997
+ ) : /* @__PURE__ */ s.createElement(
1998
+ ho,
1999
+ k(p(p({
1983
2000
  href: u,
1984
2001
  target: m
1985
- }, E), V(f)), {
2002
+ }, v), B(h)), {
1986
2003
  ref: C
1987
2004
  }),
1988
2005
  c
1989
2006
  );
1990
2007
  }
1991
- ), tr = y(Jn)`
2008
+ ), mo = y(lo)`
1992
2009
  ${(e) => e.disabled ? `
1993
2010
  pointer-events: none;
1994
2011
  opacity: .7;
1995
2012
  ` : "cursor: pointer;"}
1996
- `, nr = y.a`
2013
+ `, ho = y.a`
1997
2014
  ${(e) => e.disabled ? `
1998
2015
  pointer-events: none;
1999
2016
  opacity: .7;
2000
2017
  ` : "cursor: pointer;"}
2001
- `, rr = (i) => {
2018
+ `, fo = (i) => {
2002
2019
  var a = i, {
2003
2020
  visible: e,
2004
2021
  duration: t = 500,
2005
2022
  children: n,
2006
2023
  onClick: o = () => {
2007
2024
  }
2008
- } = a, s = S(a, [
2025
+ } = a, r = S(a, [
2009
2026
  "visible",
2010
2027
  "duration",
2011
2028
  "children",
2012
2029
  "onClick"
2013
2030
  ]);
2014
- const l = R(), u = H(
2031
+ const l = R(), u = T(
2015
2032
  (c) => {
2016
2033
  c.target === l.current && o(c);
2017
2034
  },
2018
2035
  [o]
2019
2036
  );
2020
- return /* @__PURE__ */ r.createElement(
2021
- Ie,
2037
+ return /* @__PURE__ */ s.createElement(
2038
+ Xe,
2022
2039
  {
2023
2040
  in: e,
2024
2041
  className: "humany-overlay-transition",
@@ -2026,18 +2043,18 @@ const Dn = 300, Bn = ({
2026
2043
  unmountOnExit: !0,
2027
2044
  timeout: t
2028
2045
  },
2029
- /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
2030
- or,
2031
- h({
2046
+ /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
2047
+ po,
2048
+ p({
2032
2049
  className: "humany-overlay",
2033
2050
  duration: t,
2034
2051
  ref: l,
2035
2052
  onClick: u
2036
- }, s),
2053
+ }, r),
2037
2054
  n
2038
2055
  ))
2039
2056
  );
2040
- }, or = y.div`
2057
+ }, po = y.div`
2041
2058
  background: rgba(0, 0, 0, 0.6);
2042
2059
  min-width: 100%;
2043
2060
  min-height: 100%;
@@ -2067,11 +2084,11 @@ const Dn = 300, Bn = ({
2067
2084
  &.humany-overlay-transition-exit-done {
2068
2085
  opacity: 0;
2069
2086
  }
2070
- `, _e = rr, sr = Ze`
2087
+ `, it = fo, go = Ue`
2071
2088
  100% {
2072
2089
  transform: rotate(360deg);
2073
2090
  }
2074
- `, ir = Ze`
2091
+ `, Co = Ue`
2075
2092
  0% {
2076
2093
  stroke-dasharray: 1, 200;
2077
2094
  stroke-dashoffset: 0;
@@ -2084,8 +2101,8 @@ const Dn = 300, Bn = ({
2084
2101
  stroke-dasharray: 89, 200;
2085
2102
  stroke-dashoffset: -124px;
2086
2103
  }
2087
- `, ar = y.svg`
2088
- animation: ${sr} 2s linear infinite;
2104
+ `, yo = y.svg`
2105
+ animation: ${go} 2s linear infinite;
2089
2106
  height: 100%;
2090
2107
  transform-origin: center center;
2091
2108
  width: 100%;
@@ -2096,7 +2113,7 @@ const Dn = 300, Bn = ({
2096
2113
  right: 0;
2097
2114
  margin: auto;
2098
2115
  transition: 200ms ease-out opacity;
2099
- `, cr = y.div`
2116
+ `, bo = y.div`
2100
2117
  position: absolute;
2101
2118
  top: 0;
2102
2119
  bottom: 0;
@@ -2114,7 +2131,7 @@ const Dn = 300, Bn = ({
2114
2131
  svg {
2115
2132
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2116
2133
  }
2117
- `, lr = y.div`
2134
+ `, vo = y.div`
2118
2135
  position: relative;
2119
2136
  margin: 0 auto;
2120
2137
  width: 100px;
@@ -2123,18 +2140,18 @@ const Dn = 300, Bn = ({
2123
2140
  display: block;
2124
2141
  padding-top: 100%;
2125
2142
  }
2126
- `, ur = y.circle`
2143
+ `, wo = y.circle`
2127
2144
  stroke-dasharray: 1, 200;
2128
2145
  stroke-dashoffset: 0;
2129
- animation: ${ir} 1.5s ease-in-out infinite;
2146
+ animation: ${Co} 1.5s ease-in-out infinite;
2130
2147
  stroke-linecap: round;
2131
2148
  stroke: ${(e) => {
2132
2149
  var t;
2133
2150
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2134
2151
  }};
2135
2152
  stroke-width: 2px;
2136
- `, mr = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(cr, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ r.createElement(lr, { className: "humany-spinner" }, /* @__PURE__ */ r.createElement(ar, { viewBox: "25 25 50 50" }, /* @__PURE__ */ r.createElement(
2137
- ur,
2153
+ `, Eo = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ s.createElement(bo, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ s.createElement(vo, { className: "humany-spinner" }, /* @__PURE__ */ s.createElement(yo, { viewBox: "25 25 50 50" }, /* @__PURE__ */ s.createElement(
2154
+ wo,
2138
2155
  {
2139
2156
  cx: "50",
2140
2157
  cy: "50",
@@ -2143,8 +2160,8 @@ const Dn = 300, Bn = ({
2143
2160
  "stroke-width": "2",
2144
2161
  "stroke-miterlimit": "10"
2145
2162
  }
2146
- )))), dr = mr, fr = (s) => {
2147
- var i = s, {
2163
+ )))), xo = Eo, $o = (r) => {
2164
+ var i = r, {
2148
2165
  zoomState: e,
2149
2166
  image: t,
2150
2167
  changeZoom: n
@@ -2153,49 +2170,49 @@ const Dn = 300, Bn = ({
2153
2170
  "image",
2154
2171
  "changeZoom"
2155
2172
  ]);
2156
- var E;
2157
- const a = R(null), [l, u] = $(!1), [c, m] = $(!1), b = o.style || {}, { width: p, height: d } = b, f = S(b, ["width", "height"]), C = H(() => {
2173
+ var v;
2174
+ const a = R(null), [l, u] = $(!1), [c, m] = $(!1), b = o.style || {}, { width: f, height: d } = b, h = S(b, ["width", "height"]), C = T(() => {
2158
2175
  const g = a.current;
2159
2176
  if (g) {
2160
- const B = window.innerWidth / g.width, z = window.innerHeight / g.height, T = Math.min(B, z);
2161
- return z >= 1 && B >= 1 ? 1 : T;
2177
+ const H = window.innerWidth / g.width, V = window.innerHeight / g.height, z = Math.min(H, V);
2178
+ return V >= 1 && H >= 1 ? 1 : z;
2162
2179
  }
2163
2180
  return 1;
2164
- }, [l, t.src]), x = se(() => {
2181
+ }, [l, t.src]), E = ae(() => {
2165
2182
  const g = a.current;
2166
2183
  if (g) {
2167
2184
  if (!c) {
2168
2185
  m(!0);
2169
- const B = C();
2170
- n(B);
2186
+ const H = C();
2187
+ n(H);
2171
2188
  }
2172
2189
  return g.width >= g.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
2173
2190
  }
2174
2191
  return null;
2175
2192
  }, [e, a, l, t.src]);
2176
- return v(() => (u(!1), function() {
2193
+ return w(() => (u(!1), function() {
2177
2194
  m(!1);
2178
- }), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(hr, { loading: !l }), /* @__PURE__ */ r.createElement(
2179
- pr,
2180
- k(h({
2195
+ }), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ko, { loading: !l }), /* @__PURE__ */ s.createElement(
2196
+ Lo,
2197
+ k(p({
2181
2198
  onLoad: () => {
2182
2199
  u(!0);
2183
2200
  },
2184
2201
  ref: a,
2185
- imageSize: x,
2202
+ imageSize: E,
2186
2203
  draggable: "false"
2187
2204
  }, o), {
2188
- alt: ((E = o.alt) == null ? void 0 : E.toString()) || "",
2189
- style: f,
2205
+ alt: ((v = o.alt) == null ? void 0 : v.toString()) || "",
2206
+ style: h,
2190
2207
  src: t.src,
2191
2208
  loaded: l
2192
2209
  })
2193
- ), /* @__PURE__ */ r.createElement(gr, null));
2194
- }, hr = y(dr)`
2210
+ ), /* @__PURE__ */ s.createElement(Mo, null));
2211
+ }, ko = y(xo)`
2195
2212
  svg circle {
2196
2213
  stroke: #ffffff;
2197
2214
  }
2198
- `, pr = y.img`
2215
+ `, Lo = y.img`
2199
2216
  transform: none;
2200
2217
 
2201
2218
  ${(e) => e.imageSize && L`
@@ -2206,126 +2223,126 @@ const Dn = 300, Bn = ({
2206
2223
  vertical-align: middle;
2207
2224
  position: relative;
2208
2225
  ${(e) => !e.loaded && "display:none;"}
2209
- `, gr = y.div`
2226
+ `, Mo = y.div`
2210
2227
  height: 100%;
2211
2228
  display: inline-block;
2212
2229
  vertical-align: middle;
2213
- `, Cr = fr, yr = () => {
2214
- const e = R(), [t, n] = $(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2230
+ `, So = $o, Ro = () => {
2231
+ const e = R(), [t, n] = $(!0), o = T(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2215
2232
  n(!1);
2216
2233
  }, 3e3), () => {
2217
2234
  e.current && clearTimeout(e.current);
2218
2235
  }), [t, e]);
2219
2236
  return [t, o];
2220
- }, br = ({ attrs: e, htmlBody: t }) => {
2221
- var Se;
2222
- const n = X("Escape"), o = X("ArrowLeft"), s = X("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] = yr(), [f, C] = $(null), [x, b] = $(null), E = R(null), g = R(null), B = R(null), z = R(null);
2223
- v(() => {
2237
+ }, To = ({ attrs: e, htmlBody: t }) => {
2238
+ var He;
2239
+ const n = q("Escape"), o = q("ArrowLeft"), r = q("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [f, d] = Ro(), [h, C] = $(null), [E, b] = $(null), v = R(null), g = R(null), H = R(null), V = R(null);
2240
+ w(() => {
2224
2241
  n && C(null);
2225
- }, [n]), v(() => {
2242
+ }, [n]), w(() => {
2226
2243
  a(1);
2227
- }, [f]), v(() => {
2228
- var P, F;
2229
- if (f === null || g.current === null)
2244
+ }, [h]), w(() => {
2245
+ var F, A;
2246
+ if (h === null || g.current === null)
2230
2247
  return;
2231
- const w = g.current.firstElementChild, D = (P = B.current) == null ? void 0 : P.querySelector(".nav-left"), Z = (F = B.current) == null ? void 0 : F.querySelector(".nav-right");
2232
- if (x === "Right")
2233
- te && Z ? Z.focus() : ee && D && D.focus();
2234
- else if (x === "Left")
2235
- ee && D ? D.focus() : te && Z && Z.focus();
2248
+ const x = g.current.firstElementChild, D = (F = H.current) == null ? void 0 : F.querySelector(".nav-left"), W = (A = H.current) == null ? void 0 : A.querySelector(".nav-right");
2249
+ if (E === "Right")
2250
+ re && W ? W.focus() : oe && D && D.focus();
2251
+ else if (E === "Left")
2252
+ oe && D ? D.focus() : re && W && W.focus();
2236
2253
  else {
2237
- if (!w)
2254
+ if (!x)
2238
2255
  return;
2239
- w.focus();
2256
+ x.focus();
2240
2257
  }
2241
- }, [f, g, B, x]), v(() => {
2258
+ }, [h, g, H, E]), w(() => {
2242
2259
  if (o) {
2243
- if (ee)
2244
- return Le();
2245
- } else if (s && te)
2246
- return Me();
2247
- }, [o, s]);
2248
- const T = se(() => {
2249
- const w = document.createElement("div");
2250
- w.innerHTML = t || "";
2251
- const D = w.getElementsByTagName("img");
2252
- return Array.from(D).reduce((P, F) => {
2253
- const Re = F.getAttribute("src"), ot = F.height || Number.parseInt(F.style.height, 10), st = F.width || Number.parseInt(F.style.width, 10);
2254
- if (Re) {
2255
- const it = {
2256
- src: Re,
2257
- originalWidth: st,
2258
- originalHeight: ot
2260
+ if (oe)
2261
+ return Te();
2262
+ } else if (r && re)
2263
+ return ze();
2264
+ }, [o, r]);
2265
+ const z = ae(() => {
2266
+ const x = document.createElement("div");
2267
+ x.innerHTML = t || "";
2268
+ const D = x.getElementsByTagName("img");
2269
+ return Array.from(D).reduce((F, A) => {
2270
+ const De = A.getAttribute("src"), pt = A.height || Number.parseInt(A.style.height, 10), gt = A.width || Number.parseInt(A.style.width, 10);
2271
+ if (De) {
2272
+ const Ct = {
2273
+ src: De,
2274
+ originalWidth: gt,
2275
+ originalHeight: pt
2259
2276
  };
2260
- P.push(it);
2277
+ F.push(Ct);
2261
2278
  }
2262
- return P;
2279
+ return F;
2263
2280
  }, []);
2264
- }, [t]), j = H(() => {
2265
- const { src: w } = e;
2266
- if (w) {
2267
- const D = T.findIndex((Z, P) => Z.src === w);
2281
+ }, [t]), I = T(() => {
2282
+ const { src: x } = e;
2283
+ if (x) {
2284
+ const D = z.findIndex((W, F) => W.src === x);
2268
2285
  C(D);
2269
2286
  }
2270
- }, [T, e]), Ge = H((w) => {
2287
+ }, [z, e]), lt = T((x) => {
2271
2288
  C(null);
2272
- }, []), ke = H(
2273
- (w) => {
2274
- a(w ? i + i * 0.25 : i - i * 0.25);
2289
+ }, []), Re = T(
2290
+ (x) => {
2291
+ a(x ? i + i * 0.25 : i - i * 0.25);
2275
2292
  },
2276
2293
  [a, i]
2277
- ), Je = H(() => {
2278
- if (f !== null) {
2279
- const { src: w } = T[f];
2280
- w && window.open(w, "_self");
2281
- }
2282
- }, [T, f]), et = H(
2283
- (w) => {
2284
- const D = z.current;
2285
- D && (u({ top: D.scrollTop, left: D.scrollLeft, x: w.clientX, y: w.clientY }), m(!0));
2294
+ ), ut = T(() => {
2295
+ if (h !== null) {
2296
+ const { src: x } = z[h];
2297
+ x && window.open(x, "_self");
2298
+ }
2299
+ }, [z, h]), dt = T(
2300
+ (x) => {
2301
+ const D = V.current;
2302
+ D && (u({ top: D.scrollTop, left: D.scrollLeft, x: x.clientX, y: x.clientY }), m(!0));
2286
2303
  },
2287
- [z]
2288
- ), tt = H(
2289
- (w) => {
2290
- const D = z.current;
2304
+ [V]
2305
+ ), mt = T(
2306
+ (x) => {
2307
+ const D = V.current;
2291
2308
  if (D && c) {
2292
- const Z = w.clientX - l.x, P = w.clientY - l.y;
2293
- D.scrollTop = l.top - P, D.scrollLeft = l.left - Z;
2309
+ const W = x.clientX - l.x, F = x.clientY - l.y;
2310
+ D.scrollTop = l.top - F, D.scrollLeft = l.left - W;
2294
2311
  }
2295
2312
  },
2296
2313
  [c, l]
2297
- ), nt = (w) => {
2298
- w.preventDefault(), m(!1);
2299
- }, rt = se(() => {
2300
- if (z.current) {
2301
- const w = z.current.getElementsByTagName("img");
2302
- if (w && w.length) {
2303
- const D = w[0];
2314
+ ), ht = (x) => {
2315
+ x.preventDefault(), m(!1);
2316
+ }, ft = ae(() => {
2317
+ if (V.current) {
2318
+ const x = V.current.getElementsByTagName("img");
2319
+ if (x && x.length) {
2320
+ const D = x[0];
2304
2321
  return D.width > window.innerWidth || D.height > window.innerHeight;
2305
2322
  }
2306
2323
  }
2307
2324
  return !1;
2308
- }, [z, i]), Le = () => {
2309
- f !== null && (b("Left"), C(f - 1));
2310
- }, Me = () => {
2311
- f !== null && (b("Right"), C(f + 1));
2312
- }, ee = f !== null && f > 0 && T.length > 1, te = f !== null && T.length - 1 > f;
2313
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: f !== null, onClick: Ge }, /* @__PURE__ */ r.createElement(
2314
- Mr,
2325
+ }, [V, i]), Te = () => {
2326
+ h !== null && (b("Left"), C(h - 1));
2327
+ }, ze = () => {
2328
+ h !== null && (b("Right"), C(h + 1));
2329
+ }, oe = h !== null && h > 0 && z.length > 1, re = h !== null && z.length - 1 > h;
2330
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(it, { visible: h !== null, onClick: lt }, /* @__PURE__ */ s.createElement(
2331
+ Po,
2315
2332
  {
2316
2333
  onMouseDown: () => d(),
2317
2334
  onMouseMove: () => d(),
2318
2335
  onTouchStart: () => d(),
2319
2336
  onKeyDown: () => d()
2320
2337
  },
2321
- /* @__PURE__ */ r.createElement(Sr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
2322
- wr,
2338
+ /* @__PURE__ */ s.createElement(Io, { show: f.toString() }, /* @__PURE__ */ s.createElement(
2339
+ Vo,
2323
2340
  {
2324
2341
  ref: g,
2325
2342
  buttons: [
2326
2343
  {
2327
2344
  id: "download",
2328
- onClick: Je,
2345
+ onClick: ut,
2329
2346
  icon: "download",
2330
2347
  ariaLabel: "Download image"
2331
2348
  },
@@ -2338,99 +2355,99 @@ const Dn = 300, Bn = ({
2338
2355
  ]
2339
2356
  }
2340
2357
  )),
2341
- /* @__PURE__ */ r.createElement(
2342
- Hr,
2358
+ /* @__PURE__ */ s.createElement(
2359
+ Zo,
2343
2360
  {
2344
2361
  scrolling: c.toString(),
2345
- isDraggable: rt.toString(),
2346
- ref: z,
2347
- onMouseMove: tt,
2348
- onMouseDown: et,
2349
- onMouseUp: nt
2362
+ isDraggable: ft.toString(),
2363
+ ref: V,
2364
+ onMouseMove: mt,
2365
+ onMouseDown: dt,
2366
+ onMouseUp: ht
2350
2367
  },
2351
- f !== null && /* @__PURE__ */ r.createElement(
2352
- Cr,
2353
- k(h({
2354
- changeZoom: (w) => {
2355
- a(w);
2368
+ h !== null && /* @__PURE__ */ s.createElement(
2369
+ So,
2370
+ k(p({
2371
+ changeZoom: (x) => {
2372
+ a(x);
2356
2373
  },
2357
2374
  zoomState: i
2358
2375
  }, e), {
2359
- image: T[f]
2376
+ image: z[h]
2360
2377
  })
2361
2378
  )
2362
2379
  ),
2363
- /* @__PURE__ */ r.createElement(
2364
- kr,
2380
+ /* @__PURE__ */ s.createElement(
2381
+ Bo,
2365
2382
  {
2366
- ref: B,
2367
- show: p.toString(),
2383
+ ref: H,
2384
+ show: f.toString(),
2368
2385
  buttons: [
2369
2386
  {
2370
2387
  id: "previous",
2371
- onClick: Le,
2388
+ onClick: Te,
2372
2389
  icon: "caret-left",
2373
2390
  circle: !0,
2374
- show: ee,
2391
+ show: oe,
2375
2392
  className: "nav-left",
2376
2393
  ariaLabel: "Navigate to previous image"
2377
2394
  },
2378
2395
  {
2379
2396
  id: "next",
2380
- onClick: Me,
2397
+ onClick: ze,
2381
2398
  icon: "caret-right",
2382
2399
  circle: !0,
2383
- show: te,
2400
+ show: re,
2384
2401
  className: "nav-right",
2385
2402
  ariaLabel: "Navigate to next image"
2386
2403
  }
2387
2404
  ]
2388
2405
  }
2389
2406
  ),
2390
- /* @__PURE__ */ r.createElement(Rr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
2391
- $r,
2407
+ /* @__PURE__ */ s.createElement(Wo, { show: f.toString() }, /* @__PURE__ */ s.createElement(
2408
+ _o,
2392
2409
  {
2393
2410
  buttons: [
2394
2411
  {
2395
2412
  id: "zoom-out",
2396
- onClick: () => ke(!1),
2413
+ onClick: () => Re(!1),
2397
2414
  icon: "zoom-out",
2398
2415
  ariaLabel: "Zoom out"
2399
2416
  },
2400
2417
  {
2401
2418
  id: "zoom-in",
2402
- onClick: () => ke(!0),
2419
+ onClick: () => Re(!0),
2403
2420
  icon: "zoom-in",
2404
2421
  ariaLabel: "Zoom in"
2405
2422
  }
2406
2423
  ]
2407
2424
  }
2408
- ), /* @__PURE__ */ r.createElement(Lr, { variant: "span" }, Math.trunc(i * 100), "%"))
2409
- )), /* @__PURE__ */ r.createElement(
2410
- vr,
2425
+ ), /* @__PURE__ */ s.createElement(No, { variant: "span" }, Math.trunc(i * 100), "%"))
2426
+ )), /* @__PURE__ */ s.createElement(
2427
+ zo,
2411
2428
  {
2412
- ref: E,
2413
- onClick: j,
2414
- onKeyDown: (w) => {
2415
- w.key === "Enter" && (w.preventDefault(), j());
2429
+ ref: v,
2430
+ onClick: I,
2431
+ onKeyDown: (x) => {
2432
+ x.key === "Enter" && (x.preventDefault(), I());
2416
2433
  },
2417
2434
  tabIndex: 0
2418
2435
  },
2419
- /* @__PURE__ */ r.createElement(Tr, k(h({}, e), { alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "" }))
2436
+ /* @__PURE__ */ s.createElement(Oo, k(p({}, e), { alt: ((He = e.alt) == null ? void 0 : He.toString()) || "" }))
2420
2437
  ));
2421
- }, $e = N(
2422
- ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(
2423
- Er,
2438
+ }, Se = _(
2439
+ ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ s.createElement(
2440
+ Ho,
2424
2441
  {
2425
2442
  ref: o,
2426
2443
  show: e,
2427
2444
  className: M("humany-button-set", n)
2428
2445
  },
2429
2446
  t.map(
2430
- ({ id: s, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(
2431
- xr,
2447
+ ({ id: r, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, f) => /* @__PURE__ */ s.createElement(
2448
+ Do,
2432
2449
  {
2433
- key: s + p.toString(),
2450
+ key: r + f.toString(),
2434
2451
  circle: i.toString(),
2435
2452
  onClick: u,
2436
2453
  tabIndex: a ? void 0 : -1,
@@ -2439,29 +2456,29 @@ const Dn = 300, Bn = ({
2439
2456
  className: m,
2440
2457
  "aria-label": l
2441
2458
  },
2442
- /* @__PURE__ */ r.createElement(J, { size: 24, symbol: { type: "Svg", content: c } })
2459
+ /* @__PURE__ */ s.createElement(ne, { size: 24, symbol: { type: "Svg", content: c } })
2443
2460
  )
2444
2461
  )
2445
2462
  )
2446
- ), qe = y.div`
2463
+ ), at = y.div`
2447
2464
  transition: opacity 0.3s ease 0s;
2448
2465
  z-index: 5;
2449
2466
  ${(e) => e.show === "true" ? "opacity: 1;" : L`
2450
2467
  opacity: 0;
2451
2468
  pointer-events: none;
2452
2469
  `}
2453
- `, vr = y(we)`
2470
+ `, zo = y(Me)`
2454
2471
  display: inline-block !important;
2455
- `, Er = y(qe)`
2472
+ `, Ho = y(at)`
2456
2473
  position: fixed;
2457
2474
  display: flex;
2458
2475
  gap: ${(e) => {
2459
2476
  var t;
2460
2477
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2461
2478
  }};
2462
- `, ge = "39px", xr = y(ae)`
2463
- width: ${ge};
2464
- height: ${ge};
2479
+ `, be = "39px", Do = y(le)`
2480
+ width: ${be};
2481
+ height: ${be};
2465
2482
  display: flex;
2466
2483
  justify-content: center;
2467
2484
  align-items: center;
@@ -2487,7 +2504,7 @@ const Dn = 300, Bn = ({
2487
2504
  }
2488
2505
 
2489
2506
  &:focus-visible {
2490
- ${A(e)}
2507
+ ${j(e)}
2491
2508
  outline-color: #ffffff;
2492
2509
  background-color: transparent;
2493
2510
 
@@ -2509,7 +2526,7 @@ const Dn = 300, Bn = ({
2509
2526
  outline-color: #ffffff;
2510
2527
  }
2511
2528
  &:focus-visible {
2512
- ${A(e)}
2529
+ ${j(e)}
2513
2530
  }
2514
2531
  `;
2515
2532
  }}
@@ -2524,7 +2541,7 @@ const Dn = 300, Bn = ({
2524
2541
  opacity: 0;
2525
2542
  pointer-events: none;
2526
2543
  `}
2527
- `, wr = y($e)`
2544
+ `, Vo = y(Se)`
2528
2545
  top: ${(e) => {
2529
2546
  var t;
2530
2547
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2533,7 +2550,7 @@ const Dn = 300, Bn = ({
2533
2550
  var t;
2534
2551
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2535
2552
  }};
2536
- `, $r = y($e)`
2553
+ `, _o = y(Se)`
2537
2554
  bottom: ${(e) => {
2538
2555
  var t;
2539
2556
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2541,11 +2558,11 @@ const Dn = 300, Bn = ({
2541
2558
  width: 100%;
2542
2559
  align-items: center;
2543
2560
  justify-content: center;
2544
- `, kr = y($e)`
2561
+ `, Bo = y(Se)`
2545
2562
  display: block;
2546
2563
  button {
2547
2564
  position: fixed;
2548
- top: calc(50% - calc(${ge} / 2));
2565
+ top: calc(50% - calc(${be} / 2));
2549
2566
  &:first-child {
2550
2567
  left: ${(e) => {
2551
2568
  var t;
@@ -2559,7 +2576,7 @@ const Dn = 300, Bn = ({
2559
2576
  }};
2560
2577
  }
2561
2578
  }
2562
- `, Lr = y(q)`
2579
+ `, No = y(J)`
2563
2580
  position: fixed;
2564
2581
  bottom: ${(e) => {
2565
2582
  var t;
@@ -2578,21 +2595,21 @@ const Dn = 300, Bn = ({
2578
2595
  var t;
2579
2596
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2580
2597
  }};
2581
- `, Qe = y(qe)`
2598
+ `, ct = y(at)`
2582
2599
  position: absolute;
2583
2600
  width: 100vw;
2584
2601
  height: 88px;
2585
2602
  left: 0px;
2586
2603
  z-index: 5;
2587
- `, Mr = y.div`
2604
+ `, Po = y.div`
2588
2605
  width: 100%;
2589
- `, Sr = y(Qe)`
2606
+ `, Io = y(ct)`
2590
2607
  top: 0px;
2591
2608
  background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2592
- `, Rr = y(Qe)`
2609
+ `, Wo = y(ct)`
2593
2610
  bottom: 0px;
2594
2611
  background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2595
- `, Hr = y.div`
2612
+ `, Zo = y.div`
2596
2613
  width: 100%;
2597
2614
  height: 100vh;
2598
2615
  overflow: auto;
@@ -2601,64 +2618,64 @@ const Dn = 300, Bn = ({
2601
2618
  white-space: nowrap;
2602
2619
  justify-content: center;
2603
2620
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2604
- `, Tr = y.img`
2621
+ `, Oo = y.img`
2605
2622
  cursor: pointer;
2606
- `, Dr = br, Br = N(
2623
+ `, Fo = To, Ao = _(
2607
2624
  (l, a) => {
2608
2625
  var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2609
- }, close: s = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2610
- const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), C = R(Q()), x = X("Escape");
2611
- v(() => {
2612
- (x || s) && m(!1);
2613
- }, [x, s]), v(() => {
2614
- c && f.current && f.current.focus();
2615
- }, [c, f.current]), ce("router:changed", () => {
2626
+ }, close: r = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2627
+ const [c, m] = nt(), [f, d] = tt(!0), h = R(), C = R(ee()), E = q("Escape");
2628
+ w(() => {
2629
+ (E || r) && m(!1);
2630
+ }, [E, r]), w(() => {
2631
+ c && h.current && h.current.focus();
2632
+ }, [c, h.current]), ue("router:changed", () => {
2616
2633
  m(!1);
2617
2634
  });
2618
- const b = H(
2635
+ const b = T(
2619
2636
  (g) => {
2620
2637
  m(!1), o(g);
2621
2638
  },
2622
2639
  [o, m]
2623
2640
  );
2624
- Ce(a, () => ({
2641
+ we(a, () => ({
2625
2642
  close() {
2626
2643
  m(!1);
2627
2644
  }
2628
2645
  }));
2629
- const E = H(() => ve(C.current, () => {
2646
+ const v = T(() => $e(C.current, () => {
2630
2647
  m(!1);
2631
2648
  }), [C.current]);
2632
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: c, onClick: b }, /* @__PURE__ */ r.createElement(
2633
- Nr,
2634
- k(h({
2649
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(it, { visible: c, onClick: b }, /* @__PURE__ */ s.createElement(
2650
+ Ko,
2651
+ k(p({
2635
2652
  className: M(
2636
2653
  e,
2637
2654
  "humany-modal",
2638
2655
  `humany-modal-${C.current}`
2639
2656
  ),
2640
- css: p,
2657
+ css: f,
2641
2658
  tabIndex: -1
2642
2659
  }, i), {
2643
2660
  ref: d
2644
2661
  }),
2645
- /* @__PURE__ */ r.createElement(
2646
- xe,
2662
+ /* @__PURE__ */ s.createElement(
2663
+ Le,
2647
2664
  {
2648
2665
  onClick: () => m(!1),
2649
2666
  tabIndex: 0,
2650
- ref: f
2667
+ ref: h
2651
2668
  },
2652
- /* @__PURE__ */ r.createElement(J, { symbol: { type: "Svg", content: "close" } })
2669
+ /* @__PURE__ */ s.createElement(ne, { symbol: { type: "Svg", content: "close" } })
2653
2670
  ),
2654
2671
  t
2655
- )), r.cloneElement(n, {
2672
+ )), s.cloneElement(n, {
2656
2673
  onClick: (g) => {
2657
- m(), E();
2674
+ m(), v();
2658
2675
  }
2659
2676
  }));
2660
2677
  }
2661
- ), zr = Br, Nr = y.div`
2678
+ ), jo = Ao, Ko = y.div`
2662
2679
  font-family: ${(e) => {
2663
2680
  var t;
2664
2681
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2674,30 +2691,30 @@ const Dn = 300, Bn = ({
2674
2691
  var t;
2675
2692
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2676
2693
  }};
2677
- ${(e) => je(e)}
2694
+ ${(e) => ot(e)}
2678
2695
  ${(e) => e.css && e.css}
2679
2696
  outline: none;
2680
- `, Vr = ({
2697
+ `, Yo = ({
2681
2698
  className: e,
2682
2699
  trigger: t,
2683
2700
  header: n = "",
2684
2701
  text: o = "",
2685
- onCancel: s = () => {
2702
+ onCancel: r = () => {
2686
2703
  },
2687
2704
  onConfirm: i = () => {
2688
2705
  },
2689
2706
  cancelLabel: a = "",
2690
2707
  confirmLabel: l = ""
2691
2708
  }) => {
2692
- const u = R(), c = H(() => {
2693
- var p;
2694
- s(), (p = u == null ? void 0 : u.current) == null || p.close();
2695
- }, [s]), m = H(() => {
2696
- var p;
2697
- i(), (p = u == null ? void 0 : u.current) == null || p.close();
2709
+ const u = R(), c = T(() => {
2710
+ var f;
2711
+ r(), (f = u == null ? void 0 : u.current) == null || f.close();
2712
+ }, [r]), m = T(() => {
2713
+ var f;
2714
+ i(), (f = u == null ? void 0 : u.current) == null || f.close();
2698
2715
  }, [i]);
2699
- return /* @__PURE__ */ r.createElement(Wr, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Zr, { onClick: m }, l), a && /* @__PURE__ */ r.createElement(Ir, { onClick: c }, a));
2700
- }, Oo = Vr, Wr = y(zr)`
2716
+ return /* @__PURE__ */ s.createElement(Uo, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ s.createElement(Oe, null, n), o && /* @__PURE__ */ s.createElement(Oe, null, o), l && /* @__PURE__ */ s.createElement(Xo, { onClick: m }, l), a && /* @__PURE__ */ s.createElement(qo, { onClick: c }, a));
2717
+ }, cs = Yo, Uo = y(jo)`
2701
2718
  display: block;
2702
2719
 
2703
2720
  span {
@@ -2715,7 +2732,7 @@ const Dn = 300, Bn = ({
2715
2732
  }};
2716
2733
  }
2717
2734
  }
2718
- `, Zr = y(ae)`
2735
+ `, Xo = y(le)`
2719
2736
  display: inline-block;
2720
2737
  min-width: 50px;
2721
2738
  ${(e) => {
@@ -2743,9 +2760,9 @@ const Dn = 300, Bn = ({
2743
2760
  }
2744
2761
 
2745
2762
  &:focus-visible {
2746
- ${A}
2763
+ ${j}
2747
2764
  }
2748
- `, Ir = y(ae)`
2765
+ `, qo = y(le)`
2749
2766
  display: inline-block;
2750
2767
  min-width: 50px;
2751
2768
  ${(e) => {
@@ -2764,18 +2781,18 @@ const Dn = 300, Bn = ({
2764
2781
  }};
2765
2782
 
2766
2783
  &:focus-visible {
2767
- ${A};
2784
+ ${j};
2768
2785
  }
2769
- `, Or = ({
2786
+ `, Qo = ({
2770
2787
  header: e = "",
2771
2788
  link: t = "",
2772
2789
  suggestionHeader: n = "",
2773
2790
  suggestion: o = ""
2774
- }) => /* @__PURE__ */ r.createElement(Pr, null, /* @__PURE__ */ r.createElement(Fr, null, /* @__PURE__ */ r.createElement(q, { variant: "h2" }, "404")), /* @__PURE__ */ r.createElement(Ar, null, /* @__PURE__ */ r.createElement(q, { variant: "h3" }, e), /* @__PURE__ */ r.createElement(jr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ r.createElement(Kr, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), Po = Or, Pr = y.div`
2791
+ }) => /* @__PURE__ */ s.createElement(Go, null, /* @__PURE__ */ s.createElement(Jo, null, /* @__PURE__ */ s.createElement(J, { variant: "h2" }, "404")), /* @__PURE__ */ s.createElement(er, null, /* @__PURE__ */ s.createElement(J, { variant: "h3" }, e), /* @__PURE__ */ s.createElement(or, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ s.createElement(tr, null, /* @__PURE__ */ s.createElement("span", null, n), /* @__PURE__ */ s.createElement("ul", null, /* @__PURE__ */ s.createElement("li", null, o)))), ls = Qo, Go = y.div`
2775
2792
  display: flex;
2776
2793
  flex-wrap: wrap;
2777
- `, Fr = y.div`
2778
- ${(e) => ie(e)(
2794
+ `, Jo = y.div`
2795
+ ${(e) => ce(e)(
2779
2796
  "h2",
2780
2797
  L`
2781
2798
  padding: 0;
@@ -2784,7 +2801,7 @@ const Dn = 300, Bn = ({
2784
2801
  font-size: 7em;
2785
2802
  `
2786
2803
  )}
2787
- `, Ar = y.div`
2804
+ `, er = y.div`
2788
2805
  margin-left: ${(e) => {
2789
2806
  var t;
2790
2807
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2792,7 +2809,7 @@ const Dn = 300, Bn = ({
2792
2809
 
2793
2810
  ${(e) => {
2794
2811
  var t;
2795
- return ie(e)(
2812
+ return ce(e)(
2796
2813
  "h3",
2797
2814
  L`
2798
2815
  text-transform: uppercase;
@@ -2811,7 +2828,7 @@ const Dn = 300, Bn = ({
2811
2828
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2812
2829
  }};
2813
2830
  }
2814
- `, Kr = y.div`
2831
+ `, tr = y.div`
2815
2832
  margin-top: ${(e) => {
2816
2833
  var t;
2817
2834
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2822,103 +2839,100 @@ const Dn = 300, Bn = ({
2822
2839
  font-weight: bold;
2823
2840
  }
2824
2841
  `;
2825
- class Yr extends dt {
2842
+ class nr extends xt {
2826
2843
  constructor() {
2827
- super(...arguments);
2828
- re(this, "node");
2829
- re(this, "onFocusListener");
2830
- re(this, "state", {
2844
+ super(...arguments), this.state = {
2831
2845
  boundFocus: !1
2832
- });
2846
+ };
2833
2847
  }
2834
2848
  componentWillMount() {
2835
- const n = this.props.container.get("accessibilitySettings");
2836
- n && n.boundFocus && this.setState({
2849
+ const t = this.props.container.get("accessibilitySettings");
2850
+ t && t.boundFocus && this.setState({
2837
2851
  boundFocus: !0
2838
2852
  });
2839
2853
  }
2840
2854
  componentDidMount() {
2841
2855
  if (!this.state.boundFocus)
2842
2856
  return;
2843
- const n = this.props.container.get("widgetDOMElement");
2844
- this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
2845
- const o = n.querySelectorAll(
2857
+ const t = this.props.container.get("widgetDOMElement");
2858
+ this.node && t && (this.onFocusListener = this.node.addEventListener("focus", () => {
2859
+ const n = t.querySelectorAll(
2846
2860
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2847
- ), i = [].filter.call(o, (a) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(a).display === "none" || a.offsetWidth <= 0 && a.offsetHeight <= 0))[0];
2848
- i && i.focus();
2861
+ ), r = [].filter.call(n, (i) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(i).display === "none" || i.offsetWidth <= 0 && i.offsetHeight <= 0))[0];
2862
+ r && r.focus();
2849
2863
  }));
2850
2864
  }
2851
2865
  componentWillUnmount() {
2852
2866
  this.node && this.node.removeEventListener("focus", this.onFocusListener);
2853
2867
  }
2854
2868
  render() {
2855
- return this.state.boundFocus ? /* @__PURE__ */ r.createElement(
2869
+ return this.state.boundFocus ? /* @__PURE__ */ s.createElement(
2856
2870
  "div",
2857
2871
  {
2858
2872
  style: { opacity: 0 },
2859
2873
  tabIndex: 0,
2860
- ref: (n) => {
2861
- this.node = n;
2874
+ ref: (t) => {
2875
+ this.node = t;
2862
2876
  }
2863
2877
  }
2864
2878
  ) : null;
2865
2879
  }
2866
2880
  }
2867
- const Fo = Yr, jr = N(
2881
+ const us = nr, or = _(
2868
2882
  (a, i) => {
2869
- var l = a, { className: e, description: t, text: n, children: o } = l, s = S(l, ["className", "description", "text", "children"]);
2870
- return /* @__PURE__ */ r.createElement(we, k(h({ className: M(e, "humany-text-link") }, s), { ref: i }), o, /* @__PURE__ */ r.createElement(Ee, null, n), t ? /* @__PURE__ */ r.createElement(Ue, { html: t, className: "humany-description" }) : null);
2883
+ var l = a, { className: e, description: t, text: n, children: o } = l, r = S(l, ["className", "description", "text", "children"]);
2884
+ return /* @__PURE__ */ s.createElement(Me, k(p({ className: M(e, "humany-text-link") }, r), { ref: i }), o, /* @__PURE__ */ s.createElement(ke, null, n), t ? /* @__PURE__ */ s.createElement(st, { html: t, className: "humany-description" }) : null);
2871
2885
  }
2872
2886
  );
2873
- var Xr = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(Xr || {});
2874
- const Ur = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", { className: M(e, "humany-timestamp") }, _r(n, t)), Ao = Ur, We = (e) => `0${e}`.slice(-2);
2875
- function _r(e, t) {
2876
- const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), s = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${We(a)}-${We(l)}`;
2877
- return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? s : `${u} ${s}`;
2887
+ var rr = /* @__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))(rr || {});
2888
+ const sr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ s.createElement("span", { className: M(e, "humany-timestamp") }, ir(n, t)), ds = sr, Fe = (e) => `0${e}`.slice(-2);
2889
+ function ir(e, t) {
2890
+ 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}-${Fe(a)}-${Fe(l)}`;
2891
+ return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? r : `${u} ${r}`;
2878
2892
  }
2879
- const qr = (i) => {
2880
- var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, s = S(a, ["className", "children", "content", "sticky"]);
2881
- const [l, u] = $(!1), c = R(Q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), C = (b) => {
2882
- const { target: E } = b;
2883
- !m.current || !E || m.current !== E && !m.current.contains(E) && u(!1);
2893
+ const ar = (i) => {
2894
+ var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, r = S(a, ["className", "children", "content", "sticky"]);
2895
+ const [l, u] = $(!1), c = R(ee()), m = R(), [{ x: f, y: d }, h] = rt(l, c.current, m.current), C = (b) => {
2896
+ const { target: v } = b;
2897
+ !m.current || !v || m.current !== v && !m.current.contains(v) && u(!1);
2884
2898
  };
2885
- v(() => {
2899
+ w(() => {
2886
2900
  if (!!o)
2887
2901
  return window.addEventListener("click", C), () => {
2888
2902
  window.removeEventListener("click", C);
2889
2903
  };
2890
2904
  }, [l, o]);
2891
- const x = H(
2892
- (b, E) => {
2893
- f(b, m.current), u(E);
2905
+ const E = T(
2906
+ (b, v) => {
2907
+ h(b, m.current), u(v);
2894
2908
  },
2895
- [f, u]
2909
+ [h, u]
2896
2910
  );
2897
- return /* @__PURE__ */ r.createElement(
2898
- Qr,
2911
+ return /* @__PURE__ */ s.createElement(
2912
+ cr,
2899
2913
  {
2900
2914
  ref: m,
2901
2915
  className: "humany-tooltip-trigger",
2902
- onMouseEnter: o ? void 0 : (b) => x(b, !0),
2903
- onMouseLeave: o ? void 0 : (b) => x(b, !1),
2904
- onTouchEnd: o ? (b) => x(b, !l) : void 0,
2905
- onClick: o ? (b) => x(b, !l) : void 0
2916
+ onMouseEnter: o ? void 0 : (b) => E(b, !0),
2917
+ onMouseLeave: o ? void 0 : (b) => E(b, !1),
2918
+ onTouchEnd: o ? (b) => E(b, !l) : void 0,
2919
+ onClick: o ? (b) => E(b, !l) : void 0
2906
2920
  },
2907
2921
  t,
2908
- l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
2909
- Gr,
2910
- h({
2922
+ l && /* @__PURE__ */ s.createElement(te, null, /* @__PURE__ */ s.createElement(
2923
+ lr,
2924
+ p({
2911
2925
  className: M(e, "humany-tooltip-container"),
2912
- x: p,
2926
+ x: f,
2913
2927
  y: d
2914
- }, s),
2928
+ }, r),
2915
2929
  n
2916
2930
  ))
2917
2931
  );
2918
- }, Qr = y.div`
2932
+ }, cr = y.div`
2919
2933
  display: flex;
2920
2934
  align-items: center;
2921
- `, Gr = y.div`
2935
+ `, lr = y.div`
2922
2936
  color: #ffffff;
2923
2937
  background: #161616;
2924
2938
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2954,12 +2968,12 @@ const qr = (i) => {
2954
2968
  let t = "";
2955
2969
  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;
2956
2970
  }};
2957
- `, Ko = qr, Jr = (e) => {
2971
+ `, ms = ar, ur = (e) => {
2958
2972
  const {
2959
2973
  in: t,
2960
2974
  mountOnEnter: n = !0,
2961
2975
  unmountOnExit: o = !0,
2962
- timeout: s,
2976
+ timeout: r,
2963
2977
  children: i,
2964
2978
  transitions: a
2965
2979
  } = e, u = (() => {
@@ -2969,34 +2983,34 @@ const qr = (i) => {
2969
2983
  return {
2970
2984
  enter: {
2971
2985
  transitionKeys: a,
2972
- duration: s ? typeof s == "number" ? s : s.enter : 200,
2986
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2973
2987
  easing: "ease-in"
2974
2988
  },
2975
2989
  exit: {
2976
2990
  transitionKeys: a,
2977
- duration: s ? typeof s == "number" ? s : s.exit : 200,
2991
+ duration: r ? typeof r == "number" ? r : r.exit : 200,
2978
2992
  easing: "ease-out"
2979
2993
  }
2980
2994
  };
2981
2995
  if (typeof a == "object") {
2982
- const { enter: p, exit: d } = a;
2996
+ const { enter: f, exit: d } = a;
2983
2997
  return {
2984
2998
  enter: {
2985
2999
  transitionKeys: (c = a.enter) == null ? void 0 : c.type,
2986
- duration: s ? typeof s == "number" ? s : s.enter : 200,
2987
- easing: p.easing ? p.easing : "ease-in"
3000
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
3001
+ easing: f.easing ? f.easing : "ease-in"
2988
3002
  },
2989
3003
  exit: {
2990
3004
  transitionKeys: (m = a.enter) == null ? void 0 : m.type,
2991
- duration: s ? typeof s == "number" ? s : s.enter : 200,
3005
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2992
3006
  easing: d.easing ? d.easing : "ease-out"
2993
3007
  }
2994
3008
  };
2995
3009
  }
2996
3010
  }
2997
3011
  })();
2998
- return /* @__PURE__ */ r.createElement(
2999
- vt,
3012
+ return /* @__PURE__ */ s.createElement(
3013
+ St,
3000
3014
  {
3001
3015
  timeout: {
3002
3016
  enter: u && u.enter.duration || 0,
@@ -3008,51 +3022,51 @@ const qr = (i) => {
3008
3022
  unmountOnExit: o,
3009
3023
  onEnter: (c) => c.clientHeight
3010
3024
  },
3011
- (c) => i && i(c, u && he.compose(c, u))
3025
+ (c) => i && i(c, u && Ce.compose(c, u))
3012
3026
  );
3013
- }, Yo = Jr, eo = N(
3027
+ }, hs = ur, dr = _(
3014
3028
  (l, a) => {
3015
3029
  var u = l, { className: e, children: t, onClick: n = () => {
3016
- }, widgetName: o, activationOptions: s } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
3017
- const c = W(), m = () => {
3018
- const { implementation: f } = c.get("$widget");
3019
- return f.widgets.get(o);
3030
+ }, widgetName: o, activationOptions: r } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
3031
+ const c = N(), m = () => {
3032
+ const { implementation: h } = c.get("$widget");
3033
+ return h.widgets.get(o);
3020
3034
  };
3021
- v(() => {
3022
- const f = m();
3023
- return f == null || f.activate(s).then(() => f.invoke("attach")), () => {
3024
- f == null || f.deactivate();
3035
+ w(() => {
3036
+ const h = m();
3037
+ return h == null || h.activate(r).then(() => h.invoke("attach")), () => {
3038
+ h == null || h.deactivate();
3025
3039
  };
3026
3040
  }, [o]);
3027
- const p = (f) => {
3028
- const C = m(), x = f.currentTarget;
3041
+ const f = (h) => {
3042
+ const C = m(), E = h.currentTarget;
3029
3043
  if (C) {
3030
3044
  const b = () => {
3031
3045
  C.invoke("renderState").then(
3032
- (E) => E === oe.open ? C.invoke("close") : C.invoke("open")
3046
+ (v) => v === ie.open ? C.invoke("close") : C.invoke("open")
3033
3047
  ).then(() => {
3034
- C.events.subscribeOnce("widget:area-rendered", (E, g) => {
3048
+ C.events.subscribeOnce("widget:area-rendered", (v, g) => {
3035
3049
  c.get(
3036
3050
  "widgetDOMElement"
3037
3051
  ) && C.events.dispatch("widget:modal-opened", {
3038
3052
  name: C.name,
3039
- ref: x
3053
+ ref: E
3040
3054
  });
3041
3055
  });
3042
3056
  });
3043
3057
  };
3044
- C.state === mt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(b) : b();
3058
+ C.state === Et.Deactivated ? C.activate(r).then(() => C.invoke("attach")).then(b) : b();
3045
3059
  }
3046
- }, d = (f) => {
3047
- f.key === "Enter" && (f.preventDefault(), p(f));
3060
+ }, d = (h) => {
3061
+ h.key === "Enter" && (h.preventDefault(), f(h));
3048
3062
  };
3049
- return /* @__PURE__ */ r.createElement(
3050
- we,
3051
- k(h({
3063
+ return /* @__PURE__ */ s.createElement(
3064
+ Me,
3065
+ k(p({
3052
3066
  className: M(e, "humany-widget-link"),
3053
3067
  onKeyDown: d,
3054
- onClick: (f) => {
3055
- n(f), p(f);
3068
+ onClick: (h) => {
3069
+ n(h), f(h);
3056
3070
  }
3057
3071
  }, i), {
3058
3072
  ref: a
@@ -3060,16 +3074,16 @@ const qr = (i) => {
3060
3074
  t
3061
3075
  );
3062
3076
  }
3063
- ), jo = N(
3077
+ ), fs = _(
3064
3078
  ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3065
- const s = W(), i = se(() => {
3066
- if (!s)
3079
+ const r = N(), i = ae(() => {
3080
+ if (!r)
3067
3081
  return null;
3068
- const a = s.get("widgetDOMElement");
3082
+ const a = r.get("widgetDOMElement");
3069
3083
  return !a || !a.childElementCount ? null : a.children[0];
3070
- }, [s]);
3071
- return i ? /* @__PURE__ */ r.createElement(G, { elementId: e, parent: i }, /* @__PURE__ */ r.createElement(
3072
- to,
3084
+ }, [r]);
3085
+ return i ? /* @__PURE__ */ s.createElement(te, { elementId: e, parent: i }, /* @__PURE__ */ s.createElement(
3086
+ mr,
3073
3087
  {
3074
3088
  className: M("humany-widget-overlay-outlet", t),
3075
3089
  ref: o
@@ -3077,7 +3091,7 @@ const qr = (i) => {
3077
3091
  n
3078
3092
  )) : null;
3079
3093
  }
3080
- ), to = y.div`
3094
+ ), mr = y.div`
3081
3095
  background-color: #ffffff;
3082
3096
  position: absolute;
3083
3097
  top: 0;
@@ -3087,102 +3101,424 @@ const qr = (i) => {
3087
3101
  z-index: 10;
3088
3102
  width: 100%;
3089
3103
  height: 100%;
3090
- `, no = (e, t, n, o, s) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
3104
+ `, hr = (e, t, n, o, r) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
3091
3105
  t,
3092
- ft(() => n)
3093
- ), yt(e, t, o || (() => {
3094
- }), t, s))), Xo = no;
3106
+ $t(() => n)
3107
+ ), Ye(e, t, o || (() => {
3108
+ }), t, r))), ps = hr, fr = (e, t, n, o, r) => he(void 0, null, function* () {
3109
+ const i = yield e.getAsync("componentResolver");
3110
+ return console.log("registering component", t, n), i.registerComponent(t, () => n), yield Ye(e, t, o || (() => {
3111
+ }), t, r);
3112
+ }), gs = fr;
3113
+ class Cs {
3114
+ constructor(t) {
3115
+ (this.host = t).addController(this);
3116
+ }
3117
+ propertyChangeHandler(t) {
3118
+ const n = t.detail;
3119
+ Object.keys(n).filter((o) => `_${o}` in this).forEach((o) => this[`_${o}`] = n[o]);
3120
+ }
3121
+ hostConnected() {
3122
+ this.host.addEventListener("set-properties", this.propertyChangeHandler);
3123
+ }
3124
+ hostDisconnected() {
3125
+ this.host.removeEventListener("set-properties", this.propertyChangeHandler);
3126
+ }
3127
+ }
3128
+ const ve = "context.connectEvent", ys = qe(
3129
+ (e) => {
3130
+ class t extends e {
3131
+ constructor() {
3132
+ super(...arguments), this._injectedContexts = /* @__PURE__ */ new Map();
3133
+ }
3134
+ connectedCallback() {
3135
+ super.connectedCallback(), this._injectedContexts = /* @__PURE__ */ new Map();
3136
+ for (const o of this.constructor.inject)
3137
+ this._injectContext(o);
3138
+ }
3139
+ _injectContext(o) {
3140
+ const r = (a, l) => {
3141
+ this._contextValueChanged(o, a, l);
3142
+ }, i = new CustomEvent(ve, {
3143
+ bubbles: !0,
3144
+ cancelable: !0,
3145
+ composed: !0,
3146
+ detail: { key: o, connected: !1, callback: r }
3147
+ });
3148
+ this.dispatchEvent(i), i.detail.connected && this._injectedContexts.set(o, {
3149
+ unsubscribe: i.detail.unsubscribe
3150
+ });
3151
+ }
3152
+ _contextValueChanged(o, r, i) {
3153
+ r !== i && (this[o] = r);
3154
+ }
3155
+ disconnectedCallback() {
3156
+ for (const o of this._injectedContexts.values())
3157
+ o.unsubscribe();
3158
+ super.disconnectedCallback();
3159
+ }
3160
+ }
3161
+ return t;
3162
+ }
3163
+ ), pr = qe(
3164
+ (e) => {
3165
+ class t extends e {
3166
+ constructor() {
3167
+ super(...arguments), this._providedContexts = /* @__PURE__ */ new Map();
3168
+ }
3169
+ connectedCallback() {
3170
+ super.connectedCallback(), this._providedContexts = /* @__PURE__ */ new Map();
3171
+ for (const o of this.constructor.provide)
3172
+ this._provideContext(o);
3173
+ }
3174
+ _provideContext(o) {
3175
+ const r = (i) => {
3176
+ const { detail: a } = i;
3177
+ if (a.key === o) {
3178
+ i.stopPropagation();
3179
+ const l = this._providedContexts.get(o);
3180
+ l.callbacks.add(a.callback), a.connected = !0, a.unsubscribe = () => {
3181
+ l.callbacks.delete(a.callback);
3182
+ }, a.callback(this[o]);
3183
+ }
3184
+ };
3185
+ this.addEventListener(ve, r), this._providedContexts.set(o, {
3186
+ listener: r,
3187
+ callbacks: /* @__PURE__ */ new Set()
3188
+ });
3189
+ }
3190
+ _updateContextValue(o, r, i) {
3191
+ if (this._providedContexts.has(o)) {
3192
+ const a = this._providedContexts.get(o);
3193
+ for (const l of a.callbacks)
3194
+ l(r, i);
3195
+ }
3196
+ }
3197
+ shouldUpdate(o) {
3198
+ const r = super.shouldUpdate(o);
3199
+ for (const [i, a] of o.entries())
3200
+ this.constructor.provide.includes(i) && this._updateContextValue(i, this[i], a);
3201
+ return r;
3202
+ }
3203
+ disconnectedCallback() {
3204
+ for (const o of this._providedContexts.values())
3205
+ this.removeEventListener(ve, o.listener);
3206
+ super.disconnectedCallback();
3207
+ }
3208
+ }
3209
+ return t;
3210
+ }
3211
+ );
3212
+ /**
3213
+ * @license
3214
+ * Copyright 2017 Google LLC
3215
+ * SPDX-License-Identifier: BSD-3-Clause
3216
+ */
3217
+ const gr = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? k(p({}, t), { finisher(n) {
3218
+ n.createProperty(t.key, e);
3219
+ } }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
3220
+ typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
3221
+ }, finisher(n) {
3222
+ n.createProperty(t.key, e);
3223
+ } };
3224
+ function X(e) {
3225
+ return (t, n) => n !== void 0 ? ((o, r, i) => {
3226
+ r.constructor.createProperty(i, o);
3227
+ })(e, t, n) : gr(e, t);
3228
+ }
3229
+ /**
3230
+ * @license
3231
+ * Copyright 2017 Google LLC
3232
+ * SPDX-License-Identifier: BSD-3-Clause
3233
+ */
3234
+ function Y(e) {
3235
+ return X(k(p({}, e), { state: !0 }));
3236
+ }
3237
+ /**
3238
+ * @license
3239
+ * Copyright 2021 Google LLC
3240
+ * SPDX-License-Identifier: BSD-3-Clause
3241
+ */
3242
+ var ge;
3243
+ ((ge = window.HTMLSlotElement) === null || ge === void 0 ? void 0 : ge.prototype.assignedElements) != null;
3244
+ var Cr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, Ae = (e, t, n, o) => {
3245
+ for (var r = o > 1 ? void 0 : o ? yr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3246
+ (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3247
+ return o && r && Cr(t, n, r), r;
3248
+ };
3249
+ const bs = (e) => {
3250
+ class t extends e {
3251
+ constructor(...o) {
3252
+ super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => he(this, null, function* () {
3253
+ this.hasPendingChildren = !0, this.pendingCount++, yield r.detail.promise, this.pendingCount--, this.hasPendingChildren = this.pendingCount !== 0;
3254
+ }));
3255
+ }
3256
+ }
3257
+ return Ae([
3258
+ Y()
3259
+ ], t.prototype, "hasPendingChildren", 2), Ae([
3260
+ Y()
3261
+ ], t.prototype, "pendingCount", 2), t;
3262
+ }, vs = (e) => {
3263
+ class t extends e {
3264
+ constructor(...o) {
3265
+ super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
3266
+ const i = r.detail.key;
3267
+ console.log("listener fired"), this._instances.has(i) && (r.detail.instance = this._instances.get(i), r.stopPropagation());
3268
+ });
3269
+ }
3270
+ provideInstance(o, r) {
3271
+ console.log("providing instance", o, r), this._instances.set(o, r);
3272
+ }
3273
+ }
3274
+ return t;
3275
+ }, br = (e) => {
3276
+ class t extends e {
3277
+ requestInstance(o) {
3278
+ const r = new CustomEvent("request-instance", {
3279
+ detail: { key: o },
3280
+ bubbles: !0,
3281
+ composed: !0,
3282
+ cancelable: !0
3283
+ });
3284
+ return this.dispatchEvent(r), r.detail.instance;
3285
+ }
3286
+ }
3287
+ return t;
3288
+ }, vr = (e) => {
3289
+ var n, o, r, i, a, l, u, c, m, f, d, h, C, E, b, v, g, H, V, z, I;
3290
+ const t = {};
3291
+ 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}`), (f = e.colors) != null && f.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}`), (H = e.sizes) != null && H.small && (t["--size-small"] = `${e.sizes.small}`), (V = e.sizes) != null && V.normal && (t["--size-normal"] = `${e.sizes.normal}`), (z = e.sizes) != null && z.medium && (t["--size-medium"] = `${e.sizes.medium}`), (I = e.sizes) != null && I.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;
3292
+ };
3293
+ var wr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, P = (e, t, n, o) => {
3294
+ for (var r = o > 1 ? void 0 : o ? Er(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3295
+ (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3296
+ return o && r && wr(t, n, r), r;
3297
+ };
3298
+ const xr = (e) => `w-${e}`, ws = (e) => {
3299
+ class t extends pr(br(e)) {
3300
+ constructor() {
3301
+ super(), this.listeners = [], this.setColumns = (o) => {
3302
+ this.columns = o;
3303
+ }, this.branch = "default", this.width = "full", this._columns = 1, this.columns = 1, this._width = 1, this._descriptor = null, this._properties = {}, this._layout = {};
3304
+ }
3305
+ static get provide() {
3306
+ return ["columns", "setColumns"];
3307
+ }
3308
+ setProperties(o) {
3309
+ o.columns && (this.columns = o.columns), this.dispatchEvent(
3310
+ new CustomEvent("set-properties", {
3311
+ bubbles: !1,
3312
+ composed: !1,
3313
+ cancelable: !1,
3314
+ detail: o
3315
+ })
3316
+ );
3317
+ }
3318
+ connectedCallback() {
3319
+ super.connectedCallback(), this.container = this.requestInstance("container"), this.container && Promise.all([
3320
+ je.getInstance(this.container),
3321
+ this.container.getAsync("componentResolver")
3322
+ ]).then((o) => {
3323
+ const r = o[0], i = o[1], a = r.nodes.get(this.nodeId || "");
3324
+ if (a) {
3325
+ 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(
3326
+ r.events.subscribe(
3327
+ "components:properties-changed",
3328
+ (m, f) => {
3329
+ var d;
3330
+ this.nodeId === ((d = f.node) == null ? void 0 : d.id) && (this._properties = f.node.attributes.properties, this.setProperties(a.attributes.properties));
3331
+ }
3332
+ )
3333
+ ), this.listeners.push(
3334
+ r.events.subscribe(
3335
+ "components:context-changed",
3336
+ (m, f) => {
3337
+ var d;
3338
+ this.nodeId === ((d = f.node) == null ? void 0 : d.id) && (this._context = f.node.attributes.context);
3339
+ }
3340
+ )
3341
+ ), this.listeners.push(
3342
+ r.events.subscribe(
3343
+ "components:layout-changed",
3344
+ (m, f) => {
3345
+ var d;
3346
+ this.nodeId === ((d = f.node) == null ? void 0 : d.id) && (this._layout = f.node.attributes.layout);
3347
+ }
3348
+ )
3349
+ );
3350
+ const l = a.mount(this.container);
3351
+ if (this.listeners.push(l), !i) {
3352
+ console.warn(
3353
+ "Could not find resolver. Make sure it is registered on the container."
3354
+ );
3355
+ return;
3356
+ }
3357
+ const u = xr(this._descriptor.type);
3358
+ if (customElements.get(u))
3359
+ return;
3360
+ const c = i.getComponent(this._descriptor.type);
3361
+ if (!c) {
3362
+ console.warn("Component is missing or using incorrect import.");
3363
+ return;
3364
+ }
3365
+ return c().then((m) => {
3366
+ customElements.get(u) || customElements.define(u, m.default);
3367
+ });
3368
+ }
3369
+ });
3370
+ }
3371
+ disconnectedCallback() {
3372
+ this.listeners.forEach((o) => {
3373
+ o();
3374
+ });
3375
+ }
3376
+ _getContextStyles() {
3377
+ return this._context ? vr(this._context) : {};
3378
+ }
3379
+ render() {
3380
+ const o = super.render(), r = this._getContextStyles(), i = We`
3381
+ <style>
3382
+ :host {
3383
+ ${Object.entries(r).map(([a, l]) => zt`
3384
+ ${Ht(`${a}: ${l};`)}
3385
+ `)}
3386
+ }
3387
+ </style>
3388
+ `;
3389
+ return We`
3390
+ <style>
3391
+ :host {
3392
+ --size: ${this._layout.size || "full"};
3393
+ --width: ${(this._layout.size || "full") === "full" ? "var(--columns)" : `min(var(--columns), ${this._layout.size})`};
3394
+ grid-column: span var(--width);
3395
+ }
3396
+ </style>
3397
+
3398
+ ${i} ${o}
3399
+ `;
3400
+ }
3401
+ }
3402
+ return P([
3403
+ X({ type: String })
3404
+ ], t.prototype, "nodeId", 2), P([
3405
+ X({ type: String })
3406
+ ], t.prototype, "branch", 2), P([
3407
+ X({ type: String })
3408
+ ], t.prototype, "width", 2), P([
3409
+ X({ type: Number })
3410
+ ], t.prototype, "_columns", 2), P([
3411
+ X({ type: Number })
3412
+ ], t.prototype, "columns", 2), P([
3413
+ Y()
3414
+ ], t.prototype, "_width", 2), P([
3415
+ Y()
3416
+ ], t.prototype, "_descriptor", 2), P([
3417
+ Y()
3418
+ ], t.prototype, "_properties", 2), P([
3419
+ Y()
3420
+ ], t.prototype, "_context", 2), P([
3421
+ Y()
3422
+ ], t.prototype, "_layout", 2), t;
3423
+ };
3095
3424
  export {
3096
- Zt as AnchorLink,
3097
- ae as Button,
3098
- Co as Checkbox,
3099
- Ft as ColumnContext,
3100
- Pe as ComponentNodeContext,
3101
- At as ComponentPropertyContext,
3102
- Oo as Confirm,
3103
- Pt as ContainerContext,
3104
- Yt as ConversationContext,
3105
- Xr as DateFormats,
3106
- No as Drawer,
3107
- Tn as DrawerAnimationType,
3108
- Vo as Dropdown,
3109
- Kn as Empty,
3110
- Wo as Grid,
3111
- Ue as Html,
3112
- Un as Icon,
3113
- Zo as Input,
3114
- Qn as ItemList,
3115
- Io as ItemTree,
3116
- Dr as Lightbox,
3117
- we as Link,
3118
- _n as List,
3119
- zr as Modal,
3120
- Po as NotFound,
3121
- _e as Overlay,
3122
- qn as Paragraph,
3123
- G as Portal,
3124
- Jn as RouteLink,
3125
- Kt as RoutingContext,
3126
- Ve as StyledText,
3127
- J as SymbolBadge,
3128
- Fo as TabStop,
3129
- Ee as Text,
3130
- jr as TextLink,
3131
- Ao as Timestamp,
3132
- Ko as Tooltip,
3133
- Yo as TransitionComponent,
3134
- q as Typography,
3135
- eo as WidgetLink,
3136
- jo as WidgetOverlayOutlet,
3137
- A as borderTabStyle,
3138
- Ne as browser,
3139
- xn as buttonCss,
3140
- je as contentBox,
3141
- V as convertToStringAttributes,
3142
- go as createEmptyComponent,
3143
- Xo as createReactComponent,
3144
- Vt as defaultRenderInstructions,
3145
- Ht as embeddedLinkMapper,
3146
- Dt as filterCssProps,
3147
- Tt as filterCssPropsStyle,
3148
- Bt as genericHashLink,
3149
- zo as genericHtml,
3150
- ie as headingElement,
3151
- Nt as imageLightboxRenderer,
3152
- To as invertedHoverButton,
3153
- Bo as itemList,
3154
- wn as linkTabStyle,
3155
- $n as list,
3156
- Do as paddedBorderTabStyle,
3157
- zt as processHtmlString,
3158
- he as transitionComposer,
3159
- yo as useAction,
3160
- bo as useChildren,
3161
- vo as useColumns,
3162
- Eo as useComponent,
3163
- ye as useComponentDescriptor,
3164
- be as useComponentNode,
3165
- _ as useComponentPlatform,
3166
- W as useContainer,
3167
- nn as useContext,
3168
- xo as useConversation,
3169
- wo as useDispatch,
3170
- I as useEventListener,
3171
- an as useEvents,
3425
+ Ut as AnchorLink,
3426
+ le as Button,
3427
+ Ir as Checkbox,
3428
+ Gt as ColumnContext,
3429
+ Ge as ComponentNodeContext,
3430
+ Jt as ComponentPropertyContext,
3431
+ cs as Confirm,
3432
+ ys as ConsumerMixin,
3433
+ Qt as ContainerContext,
3434
+ tn as ConversationContext,
3435
+ rr as DateFormats,
3436
+ os as Drawer,
3437
+ Zn as DrawerAnimationType,
3438
+ rs as Dropdown,
3439
+ eo as Empty,
3440
+ ss as Grid,
3441
+ st as Html,
3442
+ ro as Icon,
3443
+ is as Input,
3444
+ ao as ItemList,
3445
+ as as ItemTree,
3446
+ Fo as Lightbox,
3447
+ Me as Link,
3448
+ so as List,
3449
+ jo as Modal,
3450
+ Cs as NodeConnector,
3451
+ ls as NotFound,
3452
+ it as Overlay,
3453
+ io as Paragraph,
3454
+ bs as PendingState,
3455
+ te as Portal,
3456
+ vs as ProviderMixin,
3457
+ br as Requester,
3458
+ lo as RouteLink,
3459
+ en as RoutingContext,
3460
+ Oe as StyledText,
3461
+ ne as SymbolBadge,
3462
+ us as TabStop,
3463
+ ke as Text,
3464
+ or as TextLink,
3465
+ ds as Timestamp,
3466
+ ms as Tooltip,
3467
+ hs as TransitionComponent,
3468
+ J as Typography,
3469
+ ws as WidgetComponentMixin,
3470
+ dr as WidgetLink,
3471
+ fs as WidgetOverlayOutlet,
3472
+ j as borderTabStyle,
3473
+ Ze as browser,
3474
+ Hn as buttonCss,
3475
+ ot as contentBox,
3476
+ B as convertToStringAttributes,
3477
+ Pr as createEmptyComponent,
3478
+ ps as createReactComponent,
3479
+ gs as createWebComponent,
3480
+ Kt as defaultRenderInstructions,
3481
+ Wt as embeddedLinkMapper,
3482
+ Ot as filterCssProps,
3483
+ Zt as filterCssPropsStyle,
3484
+ Ft as genericHashLink,
3485
+ ns as genericHtml,
3486
+ ce as headingElement,
3487
+ jt as imageLightboxRenderer,
3488
+ Jr as invertedHoverButton,
3489
+ ts as itemList,
3490
+ Dn as linkTabStyle,
3491
+ Vn as list,
3492
+ es as paddedBorderTabStyle,
3493
+ At as processHtmlString,
3494
+ Ce as transitionComposer,
3495
+ Wr as useAction,
3496
+ Zr as useChildren,
3497
+ Or as useColumns,
3498
+ Fr as useComponent,
3499
+ Ee as useComponentDescriptor,
3500
+ xe as useComponentNode,
3501
+ G as useComponentPlatform,
3502
+ N as useContainer,
3503
+ hn as useContext,
3504
+ Ar as useConversation,
3505
+ jr as useDispatch,
3506
+ Z as useEventListener,
3507
+ Cn as useEvents,
3172
3508
  O as useIsMounted,
3173
- $o as useIsTabbing,
3174
- X as useKeyPress,
3175
- ko as useLayout,
3176
- Fe as usePrevious,
3177
- Lo as useProperties,
3178
- Mo as useRenderState,
3179
- So as useRouteData,
3180
- Ae as useRouter,
3181
- Ke as useScroll,
3182
- Ro as useSettings,
3183
- Ye as useToggle,
3184
- Ho as useTransitionEnd,
3185
- ve as useUniqueMenu,
3186
- ce as useWidgetEvent
3509
+ Kr as useIsTabbing,
3510
+ q as useKeyPress,
3511
+ Yr as useLayout,
3512
+ Je as usePrevious,
3513
+ Ur as useProperties,
3514
+ Xr as useRenderState,
3515
+ qr as useRouteData,
3516
+ et as useRouter,
3517
+ tt as useScroll,
3518
+ Qr as useSettings,
3519
+ nt as useToggle,
3520
+ Gr as useTransitionEnd,
3521
+ $e as useUniqueMenu,
3522
+ ue as useWidgetEvent
3187
3523
  };
3188
3524
  //# sourceMappingURL=index.js.map