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

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,58 @@
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 Ot = Object.defineProperty, Rt = Object.defineProperties;
2
+ var Nt = Object.getOwnPropertyDescriptors;
3
+ var he = Object.getOwnPropertySymbols;
4
+ var Ue = Object.prototype.hasOwnProperty, Xe = Object.prototype.propertyIsEnumerable;
5
+ var Ye = (e, t, n) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (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
+ Ue.call(t, n) && Ye(e, n, t[n]);
8
+ if (he)
9
+ for (var n of he(t))
10
+ Xe.call(t, n) && Ye(e, n, t[n]);
11
11
  return e;
12
- }, k = (e, t) => ct(e, lt(t));
13
- var S = (e, t) => {
12
+ }, k = (e, t) => Rt(e, Nt(t));
13
+ var M = (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
+ Ue.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
+ if (e != null && he)
18
+ for (var o of he(e))
19
+ t.indexOf(o) < 0 && Xe.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 pe = (e, t, n) => new Promise((o, r) => {
23
+ var s = (l) => {
24
+ try {
25
+ c(n.next(l));
26
+ } catch (a) {
27
+ r(a);
28
+ }
29
+ }, i = (l) => {
30
+ try {
31
+ c(n.throw(l));
32
+ } catch (a) {
33
+ r(a);
34
+ }
35
+ }, c = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(s, i);
36
+ c((n = n.apply(e, t)).next());
37
+ });
38
+ import { Container as It, WidgetState as Bt } from "@webprovisions/platform";
39
+ import d, { forwardRef as B, createContext as ne, useContext as ee, useState as C, useEffect as w, useRef as _, useCallback as D, useImperativeHandle as Me, useMemo as ge, Component as Wt, lazy as Ht } from "react";
40
+ import { ComponentPlatform as ze, asDescriptor as rt, createEventSubscriber as jt, ComponentQuery as Vt, WidgetRenderState as fe, extendComponent as st } from "@telia-ace/widget-core";
41
+ import { css as S, keyframes as it } 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 Ft, appendClassNames as z, uuid as ae, removeNullAndUndefinedValues as Ze, Logger as Ee } from "@telia-ace/widget-utilities";
44
+ import { LitElement as oe, html as I, css as J, unsafeCSS as Se, nothing as At } from "lit";
45
+ import { property as N, state as X } from "lit/decorators.js";
46
+ import { html as at, unsafeStatic as ct } from "lit/static-html.js";
47
+ import { spread as R } from "@open-wc/lit-helpers";
48
+ import { styleMap as A } from "lit/directives/style-map.js";
49
+ import { CSSTransition as lt, Transition as Kt } from "react-transition-group";
50
+ import { createPortal as qt } from "react-dom";
51
+ import { HistoryMode as Qe, getSpecificWidgetPath as Yt } from "@telia-ace/widget-routing";
52
+ import { Link as Ce } from "react-router-dom";
53
+ import Ge from "htmr";
54
+ import { dedupeMixin as ut } from "@open-wc/dedupe-mixin";
55
+ const Ut = (e) => e === "entering" || e === "entered", Xt = (e) => e === "exiting" || e === "exited", G = {
35
56
  fade: {
36
57
  in: "opacity: 1;",
37
58
  out: "opacity: 0;"
@@ -56,29 +77,29 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
56
77
  in: "transform: scale(1);",
57
78
  out: "transform: scale(0);"
58
79
  }
59
- }, kt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
80
+ }, Zt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], ke = {
60
81
  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 : "")}
65
- transition: ${i} ${n.duration}ms ${n.easing};
82
+ const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = Zt.indexOf(r[0]) > -1 ? "transform" : "opacity";
83
+ if (Ut(e))
84
+ return r && r.length > 0 ? S`
85
+ ${r && r.length > 0 && r.map((c) => G[c] ? G[c].in : "")}
86
+ transition: ${s} ${n.duration}ms ${n.easing};
66
87
  ` : "";
67
- const a = s && s.length > 0 && L`
68
- ${s.map((l) => K[l] ? K[l].out : "")}
88
+ const i = r && r.length > 0 && S`
89
+ ${r.map((c) => G[c] ? G[c].out : "")}
69
90
  `;
70
- if ($t(e)) {
71
- const l = o.transitionKeys.split(" ");
72
- return l && l.length > 0 && e === "exiting" ? L`
73
- ${a};
74
- ${l.map((u) => K[u] ? K[u].out : "")}
75
- transition: ${i} ${o.duration}ms ${o.easing};
76
- ` : a;
91
+ if (Xt(e)) {
92
+ const c = o.transitionKeys.split(" ");
93
+ return c && c.length > 0 && e === "exiting" ? S`
94
+ ${i};
95
+ ${c.map((l) => G[l] ? G[l].out : "")}
96
+ transition: ${s} ${o.duration}ms ${o.easing};
97
+ ` : i;
77
98
  }
78
99
  },
79
100
  composeViewTransition: (e, t, n) => {
80
101
  if (t === "slide")
81
- return he.compose(e, {
102
+ return ke.compose(e, {
82
103
  enter: {
83
104
  transitionKeys: n === "forth" ? "slide-right" : "slide-left",
84
105
  duration: 500
@@ -89,7 +110,7 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
89
110
  }
90
111
  });
91
112
  if (t === "fade")
92
- return he.compose(e, {
113
+ return ke.compose(e, {
93
114
  enter: {
94
115
  transitionKeys: "fade",
95
116
  duration: 500
@@ -100,126 +121,126 @@ const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exitin
100
121
  }
101
122
  });
102
123
  },
103
- get: (e) => K[e]
124
+ get: (e) => G[e]
104
125
  };
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 = () => {
126
+ var _e = /* @__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))(_e || {});
127
+ const Je = () => {
107
128
  const {
108
129
  opr: e,
109
130
  opera: t,
110
131
  InstallTrigger: n,
111
132
  HTMLElement: o,
112
- safari: s,
113
- documentMode: i,
114
- StyleMedia: a,
115
- chrome: l,
116
- CSS: u
117
- } = window, c = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
118
- if (c)
133
+ safari: r,
134
+ documentMode: s,
135
+ StyleMedia: i,
136
+ chrome: c,
137
+ CSS: l
138
+ } = window, a = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
139
+ if (a)
119
140
  return "opera";
120
141
  if (n)
121
142
  return "firefox";
122
- const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!s || typeof s != "undefined" && s.pushNotification);
123
- if (/constructor/i.test(o) || m)
143
+ const u = ((m) => m.toString() === "[object SafariRemoteNotification]")(!r || typeof r != "undefined" && r.pushNotification);
144
+ if (/constructor/i.test(o) || u)
124
145
  return "safari";
125
- const p = !!i;
126
- if (p)
146
+ const h = !!s;
147
+ if (h)
127
148
  return "internet-explorer";
128
- if (!p && !!a)
149
+ if (!h && !!i)
129
150
  return "edge";
130
- const d = !!l && (!!l.webstore || !!l.runtime);
131
- if (d)
151
+ const p = !!c && (!!c.webstore || !!c.runtime);
152
+ if (p)
132
153
  return "chrome";
133
- if (d && navigator.userAgent.indexOf("Edg") !== -1)
154
+ if (p && navigator.userAgent.indexOf("Edg") !== -1)
134
155
  return "edge-chromium";
135
- if ((d || c) && !!u)
156
+ if ((p || a) && !!l)
136
157
  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) {
140
- const i = n.substring(0, 5);
141
- i === "data-" || i === "aria-" ? t[bt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
158
+ }, Qt = ["string", "number"], W = (e) => Object.keys(e).reduce((t, n) => {
159
+ const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
160
+ if (Qt.indexOf(r) > -1) {
161
+ const s = n.substring(0, 5);
162
+ s === "data-" || s === "aria-" ? t[Ft(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
142
163
  } else
143
164
  t[n] = o;
144
165
  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"]);
166
+ }, {}), Gt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ d.createElement(fo, b({}, t)) : null, fs = Gt, Jt = (e) => new RegExp("^#", "i").test(e), en = (e) => (o) => {
167
+ var r = o, { children: t } = r, n = M(r, ["children"]);
147
168
  const {
148
- implementation: i,
149
- name: a
150
- } = 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);
154
- 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);
169
+ implementation: s,
170
+ name: i
171
+ } = e.get("$widget"), { href: c = "" } = n;
172
+ if (Jt(c))
173
+ return /* @__PURE__ */ d.createElement(un, { smooth: !0, to: c }, t);
174
+ const l = s.bindings.map((h) => h.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(c);
175
+ if (u && u.length >= 4) {
176
+ const h = u[4];
177
+ if (s.widgets.get(h) && !h.startsWith("blob?") && !h.startsWith(i))
178
+ return /* @__PURE__ */ d.createElement(Sr, { widgetName: h }, t);
158
179
  }
159
- return /* @__PURE__ */ r.createElement("a", h({}, n), t);
160
- }, Ht = Rt, Oe = (e) => {
180
+ return /* @__PURE__ */ d.createElement("a", b({}, n), t);
181
+ }, tn = en, dt = (e) => {
161
182
  const t = {};
162
183
  return Object.keys(e).forEach((n) => {
163
184
  n.indexOf("css-") > -1 && (t[n] = e[n]);
164
185
  }), t;
165
- }, Tt = (e) => {
186
+ }, nn = (e) => {
166
187
  let t = "";
167
- return Object.keys(Oe(e)).forEach((n) => {
188
+ return Object.keys(dt(e)).forEach((n) => {
168
189
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
169
- }), L`
190
+ }), S`
170
191
  ${t}
171
192
  `;
172
- }, Dt = Oe, Bt = (e, t) => {
193
+ }, on = dt, rn = (e, t) => {
173
194
  let n = "";
174
195
  const o = () => {
175
196
  n = "";
176
- }, s = (p) => {
177
- 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(
180
- e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
181
- ), !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 = "";
197
+ }, r = (h) => {
198
+ const p = document.getElementById(n);
199
+ return p !== null ? (h(p), o(), !0) : !1;
200
+ }, s = (h) => (h.preventDefault(), o(), e.onClick && e.onClick(h), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
201
+ e.scroll || ((p) => e.smooth ? p.scrollIntoView({ behavior: "smooth" }) : p.scrollIntoView())
202
+ ), !1), u = e, { scroll: i, smooth: c, to: l } = u, a = M(u, ["scroll", "smooth", "to"]);
203
+ return t === "a" && (a.href = "javascript:;"), /* @__PURE__ */ d.createElement(t, k(b({}, a), { onClick: s }), e.children);
204
+ }, ye = (e) => (t, n) => {
205
+ let o = t, r = "";
185
206
  if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
186
207
  o = t;
187
208
  else {
188
- const l = t.match(/h1|h2|h3|h4|h5|h6/);
189
- if (l != null && l[0]) {
190
- o = l[0];
191
- const [u] = t.split(o);
192
- s = u;
209
+ const c = t.match(/h1|h2|h3|h4|h5|h6/);
210
+ if (c != null && c[0]) {
211
+ o = c[0];
212
+ const [l] = t.split(o);
213
+ r = l;
193
214
  }
194
215
  }
195
- const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, s, e.theme.typographyVariantMapping || {});
196
- return L`
197
- ${a} {
216
+ const i = ((c, l, a) => a[c] ? `${l}${a[c]}` : `${l}${c}`)(o, r, e.theme.typographyVariantMapping || {});
217
+ return S`
218
+ ${i} {
198
219
  ${n}
199
220
  }
200
221
  `;
201
222
  };
202
- function zt(e, t) {
203
- return t ? ze(e, t) : ze(e);
223
+ function sn(e, t) {
224
+ return t ? Ge(e, t) : Ge(e);
204
225
  }
205
- const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBody: e }), Vt = (e, t) => ({
226
+ const an = (e) => (t) => /* @__PURE__ */ d.createElement(or, { attrs: t, htmlBody: e }), cn = (e, t) => ({
206
227
  transform: {
207
- a: Ht(e),
208
- img: Nt(t)
228
+ a: tn(e),
229
+ img: an(t)
209
230
  }
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({
231
+ }), ln = (e) => rn(e, "a"), un = ln, be = B((r, o) => {
232
+ var s = r, { className: e, children: t } = s, n = M(s, ["className", "children"]);
233
+ return /* @__PURE__ */ d.createElement(
234
+ dn,
235
+ k(b({
215
236
  type: "button",
216
- className: M(e, "humany-button")
217
- }, V(n)), {
237
+ className: z(e, "humany-button")
238
+ }, W(n)), {
218
239
  ref: o
219
240
  }),
220
241
  t
221
242
  );
222
- }), It = y.button`
243
+ }), dn = y.button`
223
244
  -webkit-appearance: button;
224
245
  text-transform: none;
225
246
  overflow: visible;
@@ -232,277 +253,277 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
232
253
  line-height: normal;
233
254
  margin: 0;
234
255
  padding: 0;
235
- `, Ot = (s) => {
236
- var i = s, {
256
+ `, mn = (r) => {
257
+ var s = r, {
237
258
  onChange: e = () => {
238
259
  },
239
260
  onEnter: t = () => {
240
261
  },
241
262
  className: n
242
- } = i, o = S(i, [
263
+ } = s, o = M(s, [
243
264
  "onChange",
244
265
  "onEnter",
245
266
  "className"
246
267
  ]);
247
- return /* @__PURE__ */ r.createElement(
268
+ return /* @__PURE__ */ d.createElement(
248
269
  "input",
249
- h({
250
- className: M(n, "humany-checkbox"),
251
- onKeyDown: (a) => {
252
- a.key === "Enter" && t(a);
270
+ b({
271
+ className: z(n, "humany-checkbox"),
272
+ onKeyDown: (i) => {
273
+ i.key === "Enter" && t(i);
253
274
  },
254
- onChange: (a) => e(a.target.value, a.currentTarget.checked)
255
- }, V(o))
275
+ onChange: (i) => e(i.target.value, i.currentTarget.checked)
276
+ }, W(o))
256
277
  );
257
- }, Co = Ot, Pt = U(new ut()), Ft = U(1), Pe = U({
278
+ }, gs = mn, hn = ne(new It()), pn = ne(1), mt = ne({
258
279
  id: "",
259
280
  type: "",
260
281
  name: "",
261
282
  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) => {
265
- (t || o).getAsync("actionResolver").then((a) => {
266
- a.action(e || n, s, i);
283
+ }), fn = ne({}), gn = ne(null), yn = ne(null), bn = () => ee(mt), Le = bn, vn = () => ee(hn), H = vn, $n = (e, t) => {
284
+ const n = Le().id, o = H();
285
+ return (r, s) => {
286
+ (t || o).getAsync("actionResolver").then((i) => {
287
+ i.action(e || n, r, s);
267
288
  });
268
289
  };
269
- }, yo = Ut, _t = (e) => {
270
- const t = Y(Pe), n = _(), [o, s] = $();
271
- return v(() => {
290
+ }, ys = $n, wn = (e) => {
291
+ const t = ee(mt), n = re(), [o, r] = C();
292
+ return w(() => {
272
293
  if ((e || t.id) && n) {
273
- const i = n.nodes.get(e || t.id);
274
- s(i);
294
+ const s = n.nodes.get(e || t.id);
295
+ r(s);
275
296
  }
276
297
  }, [e, t.id, n]), o;
277
- }, be = _t, qt = () => {
278
- const e = R(!1);
279
- return v(() => (e.current = !0, () => {
298
+ }, Pe = wn, xn = () => {
299
+ const e = _(!1);
300
+ return w(() => (e.current = !0, () => {
280
301
  e.current = !1;
281
302
  }), []), 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);
303
+ }, q = xn, En = (e) => {
304
+ const t = H(), [n, o] = C(null), r = q();
305
+ return w(() => {
306
+ ze.getInstance(e || t).then((s) => {
307
+ r.current && o(s);
287
308
  });
288
- }, [s]), n;
289
- }, _ = Qt, Gt = () => {
290
- const e = be(), t = _(), [n, o] = $([]), s = O(), i = H(
291
- (a) => {
292
- if (t && s.current && a) {
293
- const l = t.getBranch(a), u = a.getChildren(l).map((c) => pt(c));
294
- o(u);
309
+ }, [r]), n;
310
+ }, re = En, Cn = () => {
311
+ const e = Pe(), t = re(), [n, o] = C([]), r = q(), s = D(
312
+ (i) => {
313
+ if (t && r.current && i) {
314
+ const c = t.getBranch(i), l = i.getChildren(c).map((a) => rt(a));
315
+ o(l);
295
316
  }
296
317
  },
297
- [s, t, o, e]
318
+ [r, t, o, e]
298
319
  );
299
- return v(() => {
300
- e && i(e);
301
- }, [e, t]), v(() => {
320
+ return w(() => {
321
+ e && s(e);
322
+ }, [e, t]), w(() => {
302
323
  if (t) {
303
- const [a, l] = gt(t.events);
304
- return a("components:set-layout", (u, c) => {
305
- (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
306
- }), a("components:node-appended", (u, c) => {
307
- (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
308
- }), a("components:node-removed", (u, { parentNode: c }) => {
309
- (c === e || c === t.nodes.root) && i(c);
324
+ const [i, c] = jt(t.events);
325
+ return i("components:set-layout", (l, a) => {
326
+ (e === a.node.parent || a.node.parent === t.nodes.root) && s(a.node.parent);
327
+ }), i("components:node-appended", (l, a) => {
328
+ (e === a.node.parent || a.node.parent === t.nodes.root) && s(a.node.parent);
329
+ }), i("components:node-removed", (l, { parentNode: a }) => {
330
+ (a === e || a === t.nodes.root) && s(a);
310
331
  }), () => {
311
- l();
332
+ c();
312
333
  };
313
334
  }
314
- }, [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(() => {
318
- if (l) {
319
- let u;
320
- return (t || o).getAsync("componentResolver").then((c) => {
321
- if (a.current) {
322
- const m = c.getComponent(l);
323
- i(m);
335
+ }, [e, t, s]), n;
336
+ }, bs = Cn, Sn = () => ee(pn), vs = Sn, kn = (e, t) => {
337
+ const n = Le(), o = H(), [r, s] = C(void 0), i = q(), c = e || n.type || "";
338
+ return w(() => {
339
+ if (c) {
340
+ let l;
341
+ return (t || o).getAsync("componentResolver").then((a) => {
342
+ if (i.current) {
343
+ const u = a.getComponent(c);
344
+ s(u);
324
345
  }
325
- u = c.registerResolver(l, (m) => {
326
- a.current && i(m);
346
+ l = a.registerResolver(c, (u) => {
347
+ i.current && s(u);
327
348
  });
328
349
  }), () => {
329
- u && u();
350
+ l && l();
330
351
  };
331
352
  }
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(() => {
353
+ }, [i, c, t, o]), r;
354
+ }, $s = kn, _n = (e) => {
355
+ const t = Pe(e), n = re(), [o, r] = C({}), s = q();
356
+ return w(() => {
357
+ t && s.current && r(t.attributes.context);
358
+ }, [s, t]), w(() => {
338
359
  if (n) {
339
- const a = n.events.subscribe(
360
+ const i = n.events.subscribe(
340
361
  "components:context-changed",
341
- (l, u) => {
342
- t === u.node && i.current && s(u.node.attributes.context);
362
+ (c, l) => {
363
+ t === l.node && s.current && r(l.node.attributes.context);
343
364
  }
344
365
  );
345
366
  return () => {
346
- a();
367
+ i();
347
368
  };
348
369
  }
349
- }, [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(() => {
370
+ }, [s, n, t]), o;
371
+ }, Dn = _n, Tn = () => ee(yn), ws = Tn, Mn = () => {
372
+ const e = re(), t = Le(), [n, o] = C([]), [r, s] = C();
373
+ return w(() => {
353
374
  if (e && t) {
354
- const a = new Ct(e).withId(t.id), l = e.actions(a, t.type || Q());
355
- i(l), n !== null && (n.forEach((u) => {
356
- l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
375
+ const i = new Vt(e).withId(t.id), c = e.actions(i, t.type || ae());
376
+ s(c), n !== null && (n.forEach((l) => {
377
+ c.dispatch(l.key, l.data).then((a) => l.resolve(a)).catch((a) => l.reject(a));
357
378
  }), o(null));
358
379
  }
359
- }, [e, t.id]), (a, l) => n !== null ? new Promise((u, c) => {
380
+ }, [e, t.id]), (i, c) => n !== null ? new Promise((l, a) => {
360
381
  n.push({
361
- key: a,
362
- data: l,
363
- resolve: u,
364
- reject: c
382
+ key: i,
383
+ data: c,
384
+ resolve: l,
385
+ reject: a
365
386
  });
366
- }) : s.dispatch(a, l);
367
- }, wo = on, I = (e, t, n = window, o = () => !0) => {
368
- const s = R(() => {
387
+ }) : r.dispatch(i, c);
388
+ }, xs = Mn, K = (e, t, n = window, o = () => !0) => {
389
+ const r = _(() => {
369
390
  });
370
- v(() => {
371
- s.current = t;
372
- }, [t]), v(() => {
391
+ w(() => {
392
+ r.current = t;
393
+ }, [t]), w(() => {
373
394
  if (!(n && o()))
374
395
  return;
375
- const a = (l) => s.current(l);
376
- return n.addEventListener(e, a), () => {
377
- n.removeEventListener(e, a);
396
+ const i = (c) => r.current(c);
397
+ return n.addEventListener(e, i), () => {
398
+ n.removeEventListener(e, i);
378
399
  };
379
400
  }, [e, n]);
380
- }, sn = (e) => {
381
- const t = W(), { events: n } = (e || t).get("$widget");
401
+ }, zn = (e) => {
402
+ const t = H(), { events: n } = (e || t).get("$widget");
382
403
  return n;
383
- }, an = sn, cn = () => {
384
- const [e, t] = $(!1);
385
- return v(() => {
404
+ }, Ln = zn, Pn = () => {
405
+ const [e, t] = C(!1);
406
+ return w(() => {
386
407
  const n = () => {
387
408
  t(!1);
388
- }, o = (s) => {
389
- s.keyCode === 9 && t(!0);
409
+ }, o = (r) => {
410
+ r.keyCode === 9 && t(!0);
390
411
  };
391
412
  return window.addEventListener("keydown", o), window.addEventListener("click", n), () => {
392
413
  window.removeEventListener("keydown", o), window.removeEventListener("click", n);
393
414
  };
394
415
  }, []), e;
395
- }, $o = cn, ln = (e, t) => {
396
- const [n, o] = $(!1), s = H(
397
- (a) => {
398
- const { key: l } = a;
399
- l === e && (o(!0), t && t(a));
416
+ }, Es = Pn, On = (e, t) => {
417
+ const [n, o] = C(!1), r = D(
418
+ (i) => {
419
+ const { key: c } = i;
420
+ c === e && (o(!0), t && t(i));
400
421
  },
401
422
  [o, t]
402
- ), i = H(
403
- ({ key: a }) => {
404
- a === e && o(!1);
423
+ ), s = D(
424
+ ({ key: i }) => {
425
+ i === e && o(!1);
405
426
  },
406
427
  [o]
407
428
  );
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(() => {
429
+ return K("keydown", r, window), K("keyup", s, window), n;
430
+ }, te = On, Rn = (e) => {
431
+ const t = Pe(e), n = re(), [o, r] = C({}), s = q();
432
+ return w(() => {
433
+ t && s.current && r(t.attributes.layout);
434
+ }, [t, s]), w(() => {
414
435
  if (n) {
415
- const a = n.events.subscribe(
436
+ const i = n.events.subscribe(
416
437
  "components:layout-changed",
417
- (l, u) => {
418
- t === u.node && i.current && s(u.node.attributes.layout);
438
+ (c, l) => {
439
+ t === l.node && s.current && r(l.node.attributes.layout);
419
440
  }
420
441
  );
421
442
  return () => {
422
- a();
443
+ i();
423
444
  };
424
445
  }
425
- }, [n, i, t]), o;
426
- }, ko = un, mn = (e) => {
427
- const t = R();
428
- return v(() => {
446
+ }, [n, s, t]), o;
447
+ }, Cs = Rn, Nn = (e) => {
448
+ const t = _();
449
+ return w(() => {
429
450
  t.current = e;
430
451
  }), t.current;
431
- }, Fe = mn, dn = () => Y(At), Lo = dn, fn = (e) => {
432
- const [t, n] = $(), o = W(), s = O();
433
- return v(() => {
434
- let i;
435
- const a = (e || o).get("$widget");
436
- if (!a)
452
+ }, ht = Nn, In = () => ee(fn), Ss = In, Bn = (e) => {
453
+ const [t, n] = C(), o = H(), r = q();
454
+ return w(() => {
455
+ let s;
456
+ const i = (e || o).get("$widget");
457
+ if (!i)
437
458
  return;
438
- const { name: l, invoke: u } = a;
439
- return u("renderState").then((c) => {
440
- s.current && n(c);
441
- }), (e || o).getAsync("actionResolver").then((c) => {
442
- i = c.subscribe(l, (m, p) => {
443
- switch (p) {
459
+ const { name: c, invoke: l } = i;
460
+ return l("renderState").then((a) => {
461
+ r.current && n(a);
462
+ }), (e || o).getAsync("actionResolver").then((a) => {
463
+ s = a.subscribe(c, (u, h) => {
464
+ switch (h) {
444
465
  case "close":
445
466
  case "open":
446
- s.current && n(
447
- p === "open" ? oe.open : oe.closed
467
+ r.current && n(
468
+ h === "open" ? fe.open : fe.closed
448
469
  );
449
470
  break;
450
471
  case "hide":
451
- s.current && n(oe.hidden);
472
+ r.current && n(fe.hidden);
452
473
  }
453
474
  });
454
475
  }), () => {
455
- i && i();
476
+ s && s();
456
477
  };
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(() => {
461
- const a = (e || t).get("$widget");
462
- if (!a)
478
+ }, [r]), t;
479
+ }, ks = Bn, Wn = () => ee(gn), pt = Wn, Hn = (e) => {
480
+ const t = H(), n = pt(), [o, r] = C({ name: "", params: {} }), s = q();
481
+ return w(() => {
482
+ const i = (e || t).get("$widget");
483
+ if (!i)
463
484
  return;
464
- const { events: l } = a;
465
- return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
466
- if (i.current) {
467
- const { name: p, params: d } = m;
468
- De(d), s({ name: p, params: d });
485
+ const { events: c } = i;
486
+ return c.subscribe("router:change", (a, { next: { routeData: u } }) => {
487
+ if (s.current) {
488
+ const { name: h, params: p } = u;
489
+ Ze(p), r({ name: h, params: p });
469
490
  }
470
491
  });
471
- }, [i, e, t]), v(() => {
472
- if (n && n.history && i.current) {
473
- const a = n.getRouteData(), { name: l, params: u } = a;
474
- De(u), s({ name: l, params: u });
475
- }
476
- }, [n, i]), o;
477
- }, So = pn, Ke = (e) => {
478
- const t = R(), n = R(0);
492
+ }, [s, e, t]), w(() => {
493
+ if (n && n.history && s.current) {
494
+ const i = n.getRouteData(), { name: c, params: l } = i;
495
+ Ze(l), r({ name: c, params: l });
496
+ }
497
+ }, [n, s]), o;
498
+ }, _s = Hn, ft = (e) => {
499
+ const t = _(), n = _(0);
479
500
  let o;
480
- const s = H(() => {
481
- var c;
482
- (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
483
- var m;
484
- (m = t.current) == null || m.classList.remove("humany-scrolling");
501
+ const r = D(() => {
502
+ var a;
503
+ (a = t.current) == null || a.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
504
+ var u;
505
+ (u = t.current) == null || u.classList.remove("humany-scrolling");
485
506
  }, 500);
486
- }, [t]), i = H(
487
- (c) => {
488
- n.current = c.touches[0].clientY;
507
+ }, [t]), s = D(
508
+ (a) => {
509
+ n.current = a.touches[0].clientY;
489
510
  },
490
511
  [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(
492
- (c) => {
493
- if (!c.cancelable)
512
+ ), i = (a) => c(a) ? a === t.current ? a : null : a.parentElement ? i(a.parentElement) : null, c = (a) => a.scrollWidth > a.clientWidth || a.scrollHeight > a.clientHeight, l = D(
513
+ (a) => {
514
+ if (!a.cancelable)
494
515
  return;
495
- const m = c.touches[0].clientY, p = a(c.target);
496
- if (!p)
516
+ const u = a.touches[0].clientY, h = i(a.target);
517
+ if (!h)
497
518
  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;
519
+ const p = h.scrollTop, m = n.current - u < 0 ? "up" : "down", g = p <= 0 && m === "up", x = p >= h.scrollHeight - h.offsetHeight && m === "down";
520
+ (g || x) && a.preventDefault(), n.current = u;
500
521
  },
501
522
  [t, n]
502
523
  );
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"};
524
+ return K("scroll", r, t.current, () => t.current && e), K("touchstart", s, t.current, () => t.current && e), K("touchmove", l, t.current, () => t.current && e), e ? [jn, t] : ["", t];
525
+ }, jn = `
526
+ overflow-y: ${Je() === _e.Chrome || Je() === _e.EdgeChromium ? "overlay" : "auto"};
506
527
  overflow-x: hidden;
507
528
  -ms-overflow-style: none; /* IE 10+ */
508
529
  scrollbar-width: thin; /* Firefox */
@@ -529,65 +550,65 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
529
550
  background-color: #7F7F7F;
530
551
  }
531
552
  }
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);
553
+ `, Vn = () => {
554
+ const [e, t] = C(null), n = H(), o = q();
555
+ return w(() => {
556
+ n.get("settings").then((r) => {
557
+ o.current && t(r);
537
558
  });
538
559
  }, [o]), e;
539
- }, Ro = Cn, yn = (e = !1) => {
540
- const [t, n] = $(e), o = H((s) => {
541
- n(typeof s == "boolean" ? s : (i) => !i);
560
+ }, Ds = Vn, Fn = (e = !1) => {
561
+ const [t, n] = C(e), o = D((r) => {
562
+ n(typeof r == "boolean" ? r : (s) => !s);
542
563
  }, []);
543
564
  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(() => {
547
- 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
+ }, gt = Fn, Ts = (e) => {
566
+ const t = H(), n = re(), o = t.get("widgetDOMElement"), [r, s] = C(null), [i, c] = C(null), l = q();
567
+ w(() => {
568
+ if (n && l.current) {
569
+ const u = n.nodes.all.find((p) => p.name === "root-area"), h = n.nodes.all.find((p) => p.type === "view");
570
+ if (!(h != null && h.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
550
571
  e();
551
572
  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);
554
- const C = d(m == null ? void 0 : m.id);
555
- C && l(C);
573
+ const p = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), m = p(h == null ? void 0 : h.id);
574
+ m && s(m);
575
+ const g = p(u == null ? void 0 : u.id);
576
+ g && c(g);
556
577
  }
557
578
  }
558
- }, [n, t, u]);
559
- const c = H(
560
- (m) => {
561
- u.current && (m.target === s || m.target === a) && e();
579
+ }, [n, t, l]);
580
+ const a = D(
581
+ (u) => {
582
+ l.current && (u.target === r || u.target === i) && e();
562
583
  },
563
- [e, u, s, a]
584
+ [e, l, r, i]
564
585
  );
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);
586
+ K("transitionend", a, r), K("transitionend", a, i);
587
+ }, An = (e, t, n = [], o) => {
588
+ const r = Ln(o);
589
+ return w(() => {
590
+ if (r) {
591
+ const s = r.subscribe(e, t);
571
592
  return () => {
572
- i();
593
+ s();
573
594
  };
574
595
  }
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();
596
+ }, [r].concat(n)), (s) => r == null ? void 0 : r.dispatch(e, s);
597
+ }, ve = An, Kn = (e, t) => {
598
+ const n = ve("widget:menu-toggled", (o, r) => {
599
+ r !== e && t();
579
600
  });
580
601
  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(
602
+ }, Oe = Kn, qn = (o) => {
603
+ var r = o, { className: e, children: t } = r, n = M(r, ["className", "children"]);
604
+ return /* @__PURE__ */ d.createElement(
584
605
  "span",
585
- h({
586
- className: M(e, "humany-text")
587
- }, V(n)),
606
+ b({
607
+ className: z(e, "humany-text")
608
+ }, W(n)),
588
609
  t
589
610
  );
590
- }, Ee = En, je = (e) => L`
611
+ }, Re = qn, yt = (e) => S`
591
612
  display: flex;
592
613
  justify-content: center;
593
614
  flex-direction: column;
@@ -596,9 +617,9 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
596
617
  border: ${e.theme.border};
597
618
  box-shadow: ${e.theme.boxShadow || "none"};
598
619
  ${e["data-loading"] && "min-height: 150px;"}
599
- `, xn = (e) => {
620
+ `, Yn = (e) => {
600
621
  var t, n, o;
601
- return L`
622
+ return S`
602
623
  cursor: pointer;
603
624
  text-align: center;
604
625
  border: none;
@@ -608,11 +629,11 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
608
629
  font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
609
630
  font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
610
631
  `;
611
- }, To = (e) => {
612
- var a;
613
- const { primaryColor: t, secondaryColor: n, active: o, theme: s, disabled: i } = e;
614
- return L`
615
- ${xn(e)}
632
+ }, Ms = (e) => {
633
+ var i;
634
+ const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
635
+ return S`
636
+ ${Yn(e)}
616
637
  border: 1px solid ${o ? n : t};
617
638
  background-color: ${o ? t : n};
618
639
 
@@ -625,10 +646,10 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
625
646
  a {
626
647
  transition: color 200ms ease-out;
627
648
  color: ${o ? n : t};
628
- font-size: ${(a = s.fonts) == null ? void 0 : a.normal};
649
+ font-size: ${(i = r.fonts) == null ? void 0 : i.normal};
629
650
  }
630
651
 
631
- ${!i && L`
652
+ ${!s && S`
632
653
  &:hover {
633
654
  background-color: ${t};
634
655
  color: ${n};
@@ -642,27 +663,27 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
642
663
  }
643
664
 
644
665
  &:focus-visible {
645
- ${A(e)};
666
+ ${Z(e)};
646
667
  }
647
668
  `}
648
669
  `;
649
- }, A = (e) => {
670
+ }, Z = (e) => {
650
671
  var t, n, o;
651
- return L`
672
+ return S`
652
673
  outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
653
674
  color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
654
675
  border-color: transparent;
655
676
  `;
656
- }, wn = (e) => L`
657
- ${A(e)}
677
+ }, Un = (e) => S`
678
+ ${Z(e)}
658
679
  text-decoration: underline;
659
- `, Do = (e) => {
680
+ `, zs = (e) => {
660
681
  var t;
661
- return L`
662
- ${A(e)}
682
+ return S`
683
+ ${Z(e)}
663
684
  outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
664
685
  `;
665
- }, xe = y(ae)`
686
+ }, Ne = y(be)`
666
687
  position: absolute;
667
688
  top: ${(e) => {
668
689
  var t;
@@ -682,7 +703,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
682
703
  }
683
704
 
684
705
  &:focus-visible {
685
- ${A}
706
+ ${Z}
686
707
  padding: ${(e) => {
687
708
  var t;
688
709
  return (t = e.theme.sizes) == null ? void 0 : t.small;
@@ -690,7 +711,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
690
711
  height: 15px;
691
712
  box-sizing: content-box;
692
713
  }
693
- `, Ve = y(Ee)`
714
+ `, et = y(Re)`
694
715
  font-size: ${(e) => {
695
716
  var t;
696
717
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -701,9 +722,9 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
701
722
  var t;
702
723
  return (t = e.theme.colors) == null ? void 0 : t.text;
703
724
  }};
704
- `, $n = (e) => {
725
+ `, Xn = (e) => {
705
726
  var t;
706
- return L`
727
+ return S`
707
728
  padding: 0;
708
729
  margin: 0;
709
730
  list-style: none;
@@ -723,13 +744,13 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
723
744
  margin: 0;
724
745
  }
725
746
  `;
726
- }, Bo = (e) => {
727
- var t, n, o, s;
728
- return L`
747
+ }, Ls = (e) => {
748
+ var t, n, o, r;
749
+ return S`
729
750
  > div {
730
- ${ie(e)(
751
+ ${ye(e)(
731
752
  "> h1",
732
- L`
753
+ S`
733
754
  margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
734
755
  font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
735
756
  font-weight: normal;
@@ -739,15 +760,15 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
739
760
  )}
740
761
  }
741
762
  > ul {
742
- ${$n(e)}
763
+ ${Xn(e)}
743
764
  }
744
- ${ie(e)(
765
+ ${ye(e)(
745
766
  "h1",
746
- L`
767
+ S`
747
768
  display: flex;
748
769
  align-items: center;
749
770
  i {
750
- margin: 7px ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0 0;
771
+ margin: 7px ${(r = e.theme.sizes) == null ? void 0 : r.normal} 0 0;
751
772
  width: 24px;
752
773
  display: inline-block;
753
774
  vertical-align: text-bottom;
@@ -759,9 +780,9 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
759
780
  `
760
781
  )}
761
782
  `;
762
- }, zo = (e) => {
763
- var t, n, o, s, i, a;
764
- return L`
783
+ }, Ps = (e) => {
784
+ var t, n, o, r, s, i;
785
+ return S`
765
786
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
766
787
  font-weight: 300;
767
788
  line-height: 1.5em;
@@ -788,7 +809,7 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
788
809
  a {
789
810
  color: ${(o = e.theme.colors) == null ? void 0 : o.link};
790
811
  &:focus-visible {
791
- ${wn(e)};
812
+ ${Un(e)};
792
813
  }
793
814
  }
794
815
 
@@ -799,537 +820,34 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
799
820
 
800
821
  p {
801
822
  word-break: break-word;
802
- margin: ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0;
823
+ margin: ${(r = e.theme.sizes) == null ? void 0 : r.normal} 0;
803
824
  }
804
825
 
805
826
  p:first-child {
806
- margin: 0 0 ${(i = e.theme.sizes) == null ? void 0 : i.normal};
827
+ margin: 0 0 ${(s = e.theme.sizes) == null ? void 0 : s.normal};
807
828
  }
808
829
 
809
830
  p:last-child {
810
- margin: ${(a = e.theme.sizes) == null ? void 0 : a.normal} 0 0;
831
+ margin: ${(i = e.theme.sizes) == null ? void 0 : i.normal} 0 0;
811
832
  }
812
833
 
813
834
  p:only-child {
814
835
  margin: 0;
815
836
  }
816
837
  `;
817
- }, kn = ({
838
+ }, Zn = ({
818
839
  elementId: e = "humany-portal-elements",
819
840
  parent: t = document.body,
820
841
  children: n
821
842
  }) => {
822
- const [o] = $(() => {
823
- const s = document.getElementById(e) || document.createElement("div");
824
- return s.id = e, s;
843
+ const [o] = C(() => {
844
+ const r = document.getElementById(e) || document.createElement("div");
845
+ return r.id = e, r;
825
846
  });
826
- return v(() => (t.appendChild(o), () => {
847
+ return w(() => (t.appendChild(o), () => {
827
848
  o.childElementCount <= 1 && t.removeChild(o);
828
- }), [o]), Et(n, o);
829
- }, G = kn, Ln = (l) => {
830
- var u = l, {
831
- text: e = "",
832
- backgroundSize: t = "contain",
833
- size: n = 12,
834
- symbol: o = {
835
- content: "",
836
- type: ""
837
- },
838
- elementStyle: s = {},
839
- className: i
840
- } = u, a = S(u, [
841
- "text",
842
- "backgroundSize",
843
- "size",
844
- "symbol",
845
- "elementStyle",
846
- "className"
847
- ]);
848
- const { type: c, content: m } = o, p = {
849
- "aria-label": e,
850
- role: "presentation"
851
- };
852
- switch (c) {
853
- case "Uri": {
854
- const d = {
855
- backgroundSize: t,
856
- backgroundImage: `url('${m}')`,
857
- backgroundRepeat: "no-repeat",
858
- backgroundPosition: "center",
859
- backgroundAttachment: "center"
860
- };
861
- return /* @__PURE__ */ r.createElement(
862
- "i",
863
- h(h({
864
- className: M(i, "humany-icon", "humany-custom-icon"),
865
- title: e,
866
- style: h(h({}, d), s)
867
- }, p), a)
868
- );
869
- }
870
- case "Svg": {
871
- const d = k(h({
872
- className: M(i, "humany-icon"),
873
- width: `${n}`,
874
- fill: "none",
875
- xmlns: "http://www.w3.org/2000/svg"
876
- }, a), {
877
- ref: null
878
- }), f = { minWidth: `${n}` };
879
- switch (m) {
880
- case "search":
881
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 32 30" }, d), /* @__PURE__ */ r.createElement(
882
- "circle",
883
- {
884
- cx: "14.8457",
885
- cy: "14.5175",
886
- r: "8.14359",
887
- transform: "rotate(45 14.8457 14.5175)"
888
- }
889
- ), /* @__PURE__ */ r.createElement("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" }));
890
- case "clear":
891
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 27 27" }, d), /* @__PURE__ */ r.createElement(
892
- "circle",
893
- {
894
- cx: "13.4351",
895
- cy: "13.435",
896
- r: "9",
897
- transform: "rotate(45 13.4351 13.435)",
898
- stroke: "black"
899
- }
900
- ), /* @__PURE__ */ r.createElement(
901
- "line",
902
- {
903
- x1: "16.6172",
904
- y1: "10.2531",
905
- x2: "10.2533",
906
- y2: "16.6171",
907
- stroke: "black"
908
- }
909
- ), /* @__PURE__ */ r.createElement(
910
- "line",
911
- {
912
- x1: "16.6171",
913
- y1: "16.617",
914
- x2: "10.2532",
915
- y2: "10.2531",
916
- stroke: "black"
917
- }
918
- ));
919
- 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" }));
921
- 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" }));
923
- 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" }));
925
- 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" }));
927
- 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" }));
929
- case "back":
930
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 18 18" }, d), /* @__PURE__ */ r.createElement(
931
- "line",
932
- {
933
- y1: "-0.5",
934
- x2: "11.724",
935
- y2: "-0.5",
936
- transform: "matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",
937
- stroke: "white"
938
- }
939
- ), /* @__PURE__ */ r.createElement(
940
- "line",
941
- {
942
- y1: "-0.5",
943
- x2: "11.724",
944
- y2: "-0.5",
945
- transform: "matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",
946
- stroke: "white"
947
- }
948
- ));
949
- 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(
951
- "path",
952
- {
953
- 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",
954
- fill: "white"
955
- }
956
- ));
957
- case "send":
958
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 20 17" }, d), /* @__PURE__ */ r.createElement(
959
- "path",
960
- {
961
- d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
962
- fill: "#A6A6A6",
963
- stroke: "#A6A6A6",
964
- strokeWidth: "0.1"
965
- }
966
- ));
967
- case "chat":
968
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "-2 -3 40 40" }, d), /* @__PURE__ */ r.createElement(
969
- "path",
970
- {
971
- strokeWidth: "0",
972
- fillRule: "evenodd",
973
- clipRule: "evenodd",
974
- 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
- fill: "currentColor"
976
- }
977
- ), /* @__PURE__ */ r.createElement(
978
- "path",
979
- {
980
- strokeWidth: "0",
981
- 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
- fill: "currentColor"
983
- }
984
- ), /* @__PURE__ */ r.createElement(
985
- "path",
986
- {
987
- strokeWidth: "0",
988
- 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
- fill: "currentColor"
990
- }
991
- ), /* @__PURE__ */ r.createElement(
992
- "path",
993
- {
994
- strokeWidth: "0",
995
- d: "M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",
996
- fill: "currentColor"
997
- }
998
- ));
999
- case "chat-new":
1000
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 26 24" }, d), /* @__PURE__ */ r.createElement(
1001
- "path",
1002
- {
1003
- 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
- fill: "currentColor"
1005
- }
1006
- ), /* @__PURE__ */ r.createElement(
1007
- "path",
1008
- {
1009
- 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",
1010
- fill: "currentColor"
1011
- }
1012
- ));
1013
- case "agent":
1014
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 36 30" }, d), /* @__PURE__ */ r.createElement(
1015
- "path",
1016
- {
1017
- 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
- stroke: "white"
1019
- }
1020
- ), /* @__PURE__ */ r.createElement(
1021
- "path",
1022
- {
1023
- 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
- stroke: "white"
1025
- }
1026
- ), /* @__PURE__ */ r.createElement(
1027
- "path",
1028
- {
1029
- d: "M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",
1030
- stroke: "white"
1031
- }
1032
- ), /* @__PURE__ */ r.createElement("circle", { cx: "17.4074", cy: "26.9795", r: "2.05271", stroke: "white" }), /* @__PURE__ */ r.createElement(
1033
- "path",
1034
- {
1035
- 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",
1036
- stroke: "white"
1037
- }
1038
- ));
1039
- case "minimize":
1040
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 -10 22 22" }, d), /* @__PURE__ */ r.createElement("path", { d: "M0 1H22", stroke: "white" }));
1041
- case "sorting":
1042
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 18 14" }, d), /* @__PURE__ */ r.createElement("path", { d: "M18 1H0M8 13H0M13 7H0" }));
1043
- case "copy":
1044
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 19 17" }, d), /* @__PURE__ */ r.createElement(
1045
- "rect",
1046
- {
1047
- x: "0.5",
1048
- y: "0.5",
1049
- width: "11.6667",
1050
- height: "11.6014",
1051
- rx: "1.5",
1052
- fill: "white"
1053
- }
1054
- ), /* @__PURE__ */ r.createElement(
1055
- "rect",
1056
- {
1057
- x: "6.83301",
1058
- y: "4.89868",
1059
- width: "11.6667",
1060
- height: "11.6014",
1061
- rx: "1.5",
1062
- fill: "white"
1063
- }
1064
- ));
1065
- case "print":
1066
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 16 17" }, d), /* @__PURE__ */ r.createElement(
1067
- "path",
1068
- {
1069
- 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
- fill: "white",
1071
- stroke: "black"
1072
- }
1073
- ), /* @__PURE__ */ r.createElement(
1074
- "path",
1075
- {
1076
- 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
- fill: "white",
1078
- stroke: "black"
1079
- }
1080
- ), /* @__PURE__ */ r.createElement(
1081
- "path",
1082
- {
1083
- 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
- fill: "white",
1085
- stroke: "black"
1086
- }
1087
- ), /* @__PURE__ */ r.createElement(
1088
- "line",
1089
- {
1090
- x1: "5.29004",
1091
- y1: "10.8323",
1092
- x2: "10.7101",
1093
- y2: "10.8323",
1094
- stroke: "black"
1095
- }
1096
- ), /* @__PURE__ */ r.createElement(
1097
- "line",
1098
- {
1099
- x1: "5.29004",
1100
- y1: "12.5242",
1101
- x2: "10.7101",
1102
- y2: "12.5242",
1103
- stroke: "black"
1104
- }
1105
- ), /* @__PURE__ */ r.createElement(
1106
- "line",
1107
- {
1108
- x1: "5.29004",
1109
- y1: "14.2161",
1110
- x2: "10.7101",
1111
- y2: "14.2161",
1112
- stroke: "black"
1113
- }
1114
- ));
1115
- case "language":
1116
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ r.createElement(
1117
- "path",
1118
- {
1119
- 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",
1120
- stroke: "black"
1121
- }
1122
- ));
1123
- case "information":
1124
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 17 17" }, d), /* @__PURE__ */ r.createElement(
1125
- "path",
1126
- {
1127
- 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
- fill: "black"
1129
- }
1130
- ), /* @__PURE__ */ r.createElement(
1131
- "path",
1132
- {
1133
- 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
- fill: "black"
1135
- }
1136
- ), /* @__PURE__ */ r.createElement(
1137
- "path",
1138
- {
1139
- fillRule: "evenodd",
1140
- clipRule: "evenodd",
1141
- d: "M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",
1142
- fill: "black"
1143
- }
1144
- ));
1145
- 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" }));
1147
- 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(
1149
- "path",
1150
- {
1151
- fillRule: "evenodd",
1152
- clipRule: "evenodd",
1153
- 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
- fill: "white"
1155
- }
1156
- ), /* @__PURE__ */ r.createElement(
1157
- "path",
1158
- {
1159
- fillRule: "evenodd",
1160
- clipRule: "evenodd",
1161
- 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
- fill: "white"
1163
- }
1164
- ), /* @__PURE__ */ r.createElement(
1165
- "path",
1166
- {
1167
- fillRule: "evenodd",
1168
- clipRule: "evenodd",
1169
- 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
- fill: "white"
1171
- }
1172
- ), /* @__PURE__ */ r.createElement(
1173
- "path",
1174
- {
1175
- fillRule: "evenodd",
1176
- clipRule: "evenodd",
1177
- d: "M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",
1178
- fill: "white"
1179
- }
1180
- ));
1181
- 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(
1183
- "path",
1184
- {
1185
- 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",
1186
- stroke: "currentColor",
1187
- strokeWidth: "1.5",
1188
- strokeLinecap: "round",
1189
- strokeLinejoin: "round"
1190
- }
1191
- ), /* @__PURE__ */ r.createElement(
1192
- "path",
1193
- {
1194
- fillRule: "evenodd",
1195
- clipRule: "evenodd",
1196
- d: "M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",
1197
- stroke: "currentColor",
1198
- strokeWidth: "1.5",
1199
- strokeLinecap: "round",
1200
- strokeLinejoin: "round"
1201
- }
1202
- ));
1203
- case "star-empty":
1204
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ r.createElement(
1205
- "path",
1206
- {
1207
- 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",
1208
- stroke: "black"
1209
- }
1210
- ));
1211
- case "star-filled":
1212
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ r.createElement(
1213
- "path",
1214
- {
1215
- 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",
1216
- fill: "black",
1217
- stroke: "black"
1218
- }
1219
- ));
1220
- case "cog-wheel":
1221
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1222
- "path",
1223
- {
1224
- fillRule: "evenodd",
1225
- clipRule: "evenodd",
1226
- d: "M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",
1227
- fill: "black"
1228
- }
1229
- ));
1230
- case "zoom-in":
1231
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1232
- "path",
1233
- {
1234
- fillRule: "evenodd",
1235
- clipRule: "evenodd",
1236
- 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
- fill: "white"
1238
- }
1239
- ), /* @__PURE__ */ r.createElement(
1240
- "path",
1241
- {
1242
- fillRule: "evenodd",
1243
- clipRule: "evenodd",
1244
- 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
- fill: "white"
1246
- }
1247
- ), /* @__PURE__ */ r.createElement(
1248
- "path",
1249
- {
1250
- fillRule: "evenodd",
1251
- clipRule: "evenodd",
1252
- d: "M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",
1253
- fill: "white"
1254
- }
1255
- ));
1256
- case "zoom-out":
1257
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1258
- "path",
1259
- {
1260
- fillRule: "evenodd",
1261
- clipRule: "evenodd",
1262
- 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
- fill: "white"
1264
- }
1265
- ), /* @__PURE__ */ r.createElement(
1266
- "path",
1267
- {
1268
- fillRule: "evenodd",
1269
- clipRule: "evenodd",
1270
- d: "M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",
1271
- fill: "white"
1272
- }
1273
- ));
1274
- case "download":
1275
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1276
- "path",
1277
- {
1278
- fillRule: "evenodd",
1279
- clipRule: "evenodd",
1280
- d: "M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",
1281
- fill: "white"
1282
- }
1283
- ));
1284
- case "lightbox-close":
1285
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1286
- "path",
1287
- {
1288
- xmlns: "http://www.w3.org/2000/svg",
1289
- fillRule: "evenodd",
1290
- clipRule: "evenodd",
1291
- d: "M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",
1292
- fill: "white"
1293
- }
1294
- ));
1295
- case "pagination-left":
1296
- return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ r.createElement(
1297
- "path",
1298
- {
1299
- fillRule: "evenodd",
1300
- clipRule: "evenodd",
1301
- d: "M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",
1302
- fill: "#222222"
1303
- }
1304
- ));
1305
- 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" }));
1307
- }
1308
- return null;
1309
- }
1310
- case "FontAwesome":
1311
- return /* @__PURE__ */ r.createElement(
1312
- Un,
1313
- h({
1314
- className: i,
1315
- faIcon: m,
1316
- title: e
1317
- }, a)
1318
- );
1319
- default:
1320
- case "Text":
1321
- return e ? /* @__PURE__ */ r.createElement(
1322
- "i",
1323
- h(h({
1324
- className: M(i, "humany-letter-symbol"),
1325
- title: e
1326
- }, p), a),
1327
- e.substring(0, 2)
1328
- ) : null;
1329
- }
1330
- }, Mn = y.svg`
1331
- transform: rotate(180deg);
1332
- `, J = Ln, Sn = {
849
+ }), [o]), qt(n, o);
850
+ }, ce = Zn, Qn = () => /* @__PURE__ */ d.createElement("div", null, "Todo:"), le = Qn, Gn = {
1333
851
  h1: "h1",
1334
852
  h2: "h2",
1335
853
  h3: "h3",
@@ -1338,92 +856,92 @@ const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, { attrs: t, htmlBod
1338
856
  h6: "h6",
1339
857
  p: "p",
1340
858
  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 = ({
859
+ }, Jn = ({ variant: e, component: t, className: n, children: o }) => {
860
+ const { typographyVariantMapping: r = {} } = Dn(), s = b(b({}, Gn), r), i = t || s[e] || "span";
861
+ return /* @__PURE__ */ d.createElement(eo, { className: n, as: i }, o);
862
+ }, eo = y.span``, ie = Jn;
863
+ var to = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(to || {});
864
+ const no = 300, oo = ({
1347
865
  className: e,
1348
866
  children: t,
1349
867
  header: n,
1350
868
  onToggle: o,
1351
- trigger: s,
1352
- fullScreen: i = !1,
1353
- closeButtonAriaLabel: a,
1354
- animation: l = {
869
+ trigger: r,
870
+ fullScreen: s = !1,
871
+ closeButtonAriaLabel: i,
872
+ animation: c = {
1355
873
  type: "slide-in-bottom"
1356
874
  }
1357
875
  }) => {
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(
876
+ const { duration: l = no } = c, a = _(), u = _(), [h, p] = ft(!0), [m, g] = gt(), x = ht(m), v = _(ae());
877
+ w(() => {
878
+ o && o(m);
879
+ }, [m]);
880
+ const $ = te("Escape");
881
+ w(() => {
882
+ $ && g(!1);
883
+ }, [$]), K(
1366
884
  "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);
885
+ (O) => {
886
+ const { target: T } = O;
887
+ !u.current || !p.current || !T || u.current !== T && p.current !== T && !p.current.contains(T) && !u.current.contains(T) && g(!1);
1370
888
  },
1371
889
  window
1372
890
  );
1373
- const g = ve(b.current, () => {
1374
- C(!1);
891
+ const f = Oe(v.current, () => {
892
+ g(!1);
1375
893
  });
1376
- ce("router:changed", () => {
1377
- 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,
894
+ ve("router:changed", () => {
895
+ g(!1);
896
+ }), w(() => {
897
+ m && a.current ? a.current.focus() : !m && u.current && x && u.current.focus();
898
+ }, [m, a.current, u.current]);
899
+ const L = lo[c.type];
900
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
901
+ lt,
1384
902
  {
1385
- in: f,
903
+ in: m,
1386
904
  className: "humany-drawer-transition",
1387
905
  classNames: "humany-drawer-transition",
1388
906
  unmountOnExit: !0,
1389
- timeout: u
907
+ timeout: l
1390
908
  },
1391
- /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
1392
- B,
909
+ /* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
910
+ L,
1393
911
  {
1394
- duration: u,
1395
- fullScreen: i,
1396
- className: M(
912
+ duration: l,
913
+ fullScreen: s,
914
+ className: z(
1397
915
  e,
1398
916
  "humany-drawer",
1399
- `humany-drawer-${b.current}`
917
+ `humany-drawer-${v.current}`
1400
918
  ),
1401
919
  clientHeight: document.body.clientHeight,
1402
- css: p,
1403
- ref: d
920
+ css: h,
921
+ ref: p
1404
922
  },
1405
- /* @__PURE__ */ r.createElement(
1406
- xe,
923
+ /* @__PURE__ */ d.createElement(
924
+ Ne,
1407
925
  {
1408
- onClick: () => C(!1),
926
+ onClick: () => g(!1),
1409
927
  tabIndex: 0,
1410
- ref: c,
1411
- "aria-label": a
928
+ ref: a,
929
+ "aria-label": i
1412
930
  },
1413
- /* @__PURE__ */ r.createElement(J, { symbol: { type: "Svg", content: "close" } })
931
+ /* @__PURE__ */ d.createElement(le, { symbol: { type: "Svg", content: "close" } })
1414
932
  ),
1415
- !!n && /* @__PURE__ */ r.createElement(zn, { variant: "h1", className: "humany-drawer-header" }, n),
933
+ !!n && /* @__PURE__ */ d.createElement(ro, { variant: "h1", className: "humany-drawer-header" }, n),
1416
934
  t
1417
935
  ))
1418
- ), r.cloneElement(s, {
1419
- onClick: (z) => {
1420
- C(), g();
936
+ ), d.cloneElement(r, {
937
+ onClick: (O) => {
938
+ g(), f();
1421
939
  },
1422
- ref: m,
1423
- "aria-label": s.props.title,
1424
- "aria-expanded": f
940
+ ref: u,
941
+ "aria-label": r.props.title,
942
+ "aria-expanded": m
1425
943
  }));
1426
- }, No = Bn, le = y.div`
944
+ }, Os = oo, $e = y.div`
1427
945
  font-family: ${(e) => {
1428
946
  var t;
1429
947
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1440,7 +958,7 @@ const Dn = 300, Bn = ({
1440
958
  box-shadow: ${(e) => e.theme.boxShadow};
1441
959
  background: #ffffff;
1442
960
  ${(e) => e.css && e.css}
1443
- `, zn = y(q)`
961
+ `, ro = y(ie)`
1444
962
  padding: ${(e) => {
1445
963
  var t;
1446
964
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
@@ -1463,11 +981,11 @@ const Dn = 300, Bn = ({
1463
981
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
1464
982
  }};
1465
983
  line-height: 1.2em;
1466
- `, ue = (e) => L`
984
+ `, we = (e) => S`
1467
985
  transition: ${e.duration}ms;
1468
- `, Nn = y(le)`
986
+ `, so = y($e)`
1469
987
  max-height: 0;
1470
- ${ue}
988
+ ${we}
1471
989
 
1472
990
  &.humany-drawer-transition-enter {
1473
991
  max-height: 0;
@@ -1482,8 +1000,8 @@ const Dn = 300, Bn = ({
1482
1000
  &.humany-drawer-transition-exit-done {
1483
1001
  max-height: 0;
1484
1002
  }
1485
- `, Vn = y(le)`
1486
- ${ue}
1003
+ `, io = y($e)`
1004
+ ${we}
1487
1005
  transform: translateX(100%);
1488
1006
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1489
1007
 
@@ -1500,8 +1018,8 @@ const Dn = 300, Bn = ({
1500
1018
  &.humany-drawer-transition-exit-done {
1501
1019
  transform: translateX(100%);
1502
1020
  }
1503
- `, Wn = y(le)`
1504
- ${ue}
1021
+ `, ao = y($e)`
1022
+ ${we}
1505
1023
  transform: translateX(-100%);
1506
1024
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1507
1025
 
@@ -1518,8 +1036,8 @@ const Dn = 300, Bn = ({
1518
1036
  &.humany-drawer-transition-exit-done {
1519
1037
  transform: translateX(-100%);
1520
1038
  }
1521
- `, Zn = y(le)`
1522
- ${ue}
1039
+ `, co = y($e)`
1040
+ ${we}
1523
1041
  bottom: unset;
1524
1042
  top: 0;
1525
1043
  height: 0;
@@ -1537,91 +1055,91 @@ const Dn = 300, Bn = ({
1537
1055
  &.humany-drawer-transition-exit-done {
1538
1056
  height: 0;
1539
1057
  }
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(
1547
- (u, c) => {
1548
- if (u.preventDefault(), c) {
1549
- const m = c.getBoundingClientRect();
1550
- s(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
1058
+ `, lo = {
1059
+ ["slide-in-bottom"]: so,
1060
+ ["slide-in-right"]: io,
1061
+ ["slide-in-left"]: ao,
1062
+ ["slide-in-top"]: co
1063
+ }, uo = (e, t, n) => {
1064
+ const [o, r] = C(0), [s, i] = C(0), c = D(
1065
+ (l, a) => {
1066
+ if (l.preventDefault(), a) {
1067
+ const u = a.getBoundingClientRect();
1068
+ r(Math.max(document.body.clientWidth - u.right, 1)), i(u.bottom + window.scrollY);
1551
1069
  }
1552
1070
  },
1553
- [o, i, s, a]
1071
+ [o, s, r, i]
1554
1072
  );
1555
- return v(() => {
1073
+ return w(() => {
1556
1074
  if (!n || !e)
1557
1075
  return;
1558
- const u = n.getBoundingClientRect(), c = {
1076
+ const l = n.getBoundingClientRect(), a = {
1559
1077
  x: o,
1560
- y: i
1078
+ y: s
1561
1079
  };
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);
1563
- }, [n, e, t]), [{ x: o, y: i }, l];
1564
- }, Xe = On, Pn = r.forwardRef(
1565
- (a, i) => {
1566
- var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1567
- 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(() => {
1573
- d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
1574
- }, [d, u.current, c.current]), I(
1080
+ l.left < 0 && (a.x = 0), l.bottom > window.innerHeight && (a.y = 0), a.x !== o && r(a.x), a.y !== s && i(a.y);
1081
+ }, [n, e, t]), [{ x: o, y: s }, c];
1082
+ }, bt = uo, mo = d.forwardRef(
1083
+ (i, s) => {
1084
+ var c = i, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = c, r = M(c, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1085
+ const l = _(), a = _(), u = _();
1086
+ Me(s, () => u.current, [u.current]);
1087
+ const h = _(ae()), [p, m] = C(!1), g = ht(p), [{ x, y: v }, $] = bt(p, h.current, u.current), f = te("Escape");
1088
+ w(() => {
1089
+ f && m(!1);
1090
+ }, [f]), w(() => {
1091
+ p && l.current ? l.current.focus() : !p && a.current && g && a.current.focus();
1092
+ }, [p, l.current, a.current]), K(
1575
1093
  "click",
1576
1094
  (T) => {
1577
- const { target: j } = T;
1578
- !m.current || !j || m.current !== j && !m.current.contains(j) && f(!1);
1095
+ const { target: V } = T;
1096
+ !u.current || !V || u.current !== V && !u.current.contains(V) && m(!1);
1579
1097
  },
1580
1098
  window
1581
- ), ce("router:changed", () => {
1582
- f(!1);
1099
+ ), ve("router:changed", () => {
1100
+ m(!1);
1583
1101
  });
1584
- const B = ve(p.current, () => {
1585
- f(!1);
1586
- }), z = H(
1102
+ const L = Oe(h.current, () => {
1103
+ m(!1);
1104
+ }), O = D(
1587
1105
  (T) => {
1588
- T.stopPropagation(), E(T, c.current), f(!d), B();
1106
+ T.stopPropagation(), $(T, a.current), m(!p), L();
1589
1107
  },
1590
- [B, E, f]
1108
+ [L, $, m]
1591
1109
  );
1592
- return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
1593
- Fn,
1594
- k(h({
1595
- className: M(
1110
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, p && /* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
1111
+ ho,
1112
+ k(b({
1113
+ className: z(
1596
1114
  "humany-dropdown",
1597
- `humany-dropdown-${p.current}`,
1115
+ `humany-dropdown-${h.current}`,
1598
1116
  e
1599
1117
  )
1600
- }, s), {
1118
+ }, r), {
1601
1119
  x,
1602
- y: b,
1603
- ref: m
1120
+ y: v,
1121
+ ref: u
1604
1122
  }),
1605
- /* @__PURE__ */ r.createElement(
1606
- xe,
1123
+ /* @__PURE__ */ d.createElement(
1124
+ Ne,
1607
1125
  {
1608
- onClick: () => f(!1),
1126
+ onClick: () => m(!1),
1609
1127
  tabIndex: 0,
1610
- ref: u,
1128
+ ref: l,
1611
1129
  "aria-label": o
1612
1130
  },
1613
- /* @__PURE__ */ r.createElement(J, { symbol: { type: "Svg", content: "close" } })
1131
+ /* @__PURE__ */ d.createElement(le, { symbol: { type: "Svg", content: "close" } })
1614
1132
  ),
1615
1133
  t
1616
- )), r.cloneElement(n, {
1617
- onClick: z,
1618
- ref: c,
1134
+ )), d.cloneElement(n, {
1135
+ onClick: O,
1136
+ ref: a,
1619
1137
  "aria-label": n.props.title,
1620
- "aria-expanded": d
1138
+ "aria-expanded": p
1621
1139
  }));
1622
1140
  }
1623
- ), Vo = Pn, Fn = y.div`
1624
- ${je}
1141
+ ), Rs = mo, ho = y.div`
1142
+ ${yt}
1625
1143
  padding: ${(e) => {
1626
1144
  var t;
1627
1145
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -1631,93 +1149,111 @@ const Dn = 300, Bn = ({
1631
1149
  box-shadow: ${(e) => e.theme.boxShadow};
1632
1150
 
1633
1151
  ${(e) => {
1634
- var n, o, s;
1152
+ var n, o, r;
1635
1153
  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;
1154
+ 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
1155
  }};
1638
- `, An = (t) => {
1639
- var e = S(t, []);
1640
- return /* @__PURE__ */ r.createElement(Yn, h({}, e));
1641
- }, Kn = An, Yn = y.div`
1156
+ `, po = (t) => {
1157
+ var e = M(t, []);
1158
+ return /* @__PURE__ */ d.createElement(go, b({}, e));
1159
+ }, fo = po, go = y.div`
1642
1160
  display: none;
1643
- `, Wo = N(
1644
- (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({
1649
- className: M(o, "humany-grid"),
1161
+ `, Ns = B(
1162
+ (i, s) => {
1163
+ var c = i, { children: e, columns: t, gap: n, className: o } = c, r = M(c, ["children", "columns", "gap", "className"]);
1164
+ return /* @__PURE__ */ d.createElement(
1165
+ yo,
1166
+ k(b(b({
1167
+ className: z(o, "humany-grid"),
1650
1168
  "data-columns": t,
1651
1169
  "data-gap": n
1652
- }, Dt(s)), V(s)), {
1653
- ref: i
1170
+ }, on(r)), W(r)), {
1171
+ ref: s
1654
1172
  }),
1655
1173
  e
1656
1174
  );
1657
1175
  }
1658
- ), jn = y.div`
1176
+ ), yo = y.div`
1659
1177
  display: grid;
1660
1178
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1661
1179
  grid-gap: ${(e) => e["data-gap"]};
1662
1180
  justify-content: center;
1663
1181
  grid-auto-rows: max-content;
1664
- ${Tt}
1665
- `, Ue = N(
1666
- (i, s) => {
1667
- 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);
1673
- c(d);
1674
- }, [n, e]), /* @__PURE__ */ r.createElement(
1182
+ ${nn}
1183
+ `, vt = B(
1184
+ (s, r) => {
1185
+ var i = s, { htmlParseInstruction: e = null, className: t, html: n } = i, o = M(i, ["htmlParseInstruction", "className", "html"]);
1186
+ const c = H(), [l, a] = C();
1187
+ return w(() => {
1188
+ const u = cn(c, n), h = k(b(b({}, u), e), {
1189
+ transform: b(b({}, u.transform), e == null ? void 0 : e.transform)
1190
+ }), p = sn(n, h);
1191
+ a(p);
1192
+ }, [n, e]), /* @__PURE__ */ d.createElement(
1675
1193
  "div",
1676
- k(h({
1677
- className: M(t, "humany-html")
1678
- }, V(o)), {
1679
- ref: s
1194
+ k(b({
1195
+ className: z(t, "humany-html")
1196
+ }, W(o)), {
1197
+ ref: r
1680
1198
  }),
1681
- u
1199
+ l
1682
1200
  );
1683
1201
  }
1684
- ), Xn = (i) => {
1685
- var a = i, {
1686
- faIcon: e,
1687
- title: t,
1688
- className: n = "",
1689
- role: o = "presentation"
1690
- } = a, s = S(a, [
1691
- "faIcon",
1692
- "title",
1693
- "className",
1694
- "role"
1695
- ]);
1696
- return /* @__PURE__ */ r.createElement(
1697
- "i",
1698
- h({
1699
- className: M(n, `fa fa-${e}`),
1700
- title: t,
1701
- role: o
1702
- }, V(s))
1703
- );
1704
- }, Un = Xn, Zo = N(
1705
- (p, m) => {
1706
- var d = p, {
1202
+ );
1203
+ var bo = Object.defineProperty, vo = Object.getOwnPropertyDescriptor, Ie = (e, t, n, o) => {
1204
+ for (var r = o > 1 ? void 0 : o ? vo(t, n) : t, s = e.length - 1, i; s >= 0; s--)
1205
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
1206
+ return o && r && bo(t, n, r), r;
1207
+ };
1208
+ class ue extends oe {
1209
+ constructor() {
1210
+ super(), this.role = "presentation";
1211
+ }
1212
+ render() {
1213
+ const t = `fa fa-${this.faIcon}`;
1214
+ return I`
1215
+ <link
1216
+ href="https://flinck-test.humany.cc/ClientLibraries/Supplementary/font-awesome-4.7.0/css/font-awesome.min.css"
1217
+ rel="stylesheet"
1218
+ />
1219
+ <i class=${t} title=${this.title} role=${this.role} />
1220
+ `;
1221
+ }
1222
+ }
1223
+ ue.styles = [
1224
+ J`
1225
+ :host {
1226
+ display: block;
1227
+ }
1228
+ `
1229
+ ];
1230
+ Ie([
1231
+ N({ type: String })
1232
+ ], ue.prototype, "faIcon", 2);
1233
+ Ie([
1234
+ N({ type: String })
1235
+ ], ue.prototype, "title", 2);
1236
+ Ie([
1237
+ N({ type: String })
1238
+ ], ue.prototype, "role", 2);
1239
+ customElements.get("ui-icon") || customElements.define("ui-icon", ue);
1240
+ const Is = B(
1241
+ (h, u) => {
1242
+ var p = h, {
1707
1243
  className: e = "",
1708
1244
  autoFocus: t = !1,
1709
1245
  onFocusChange: n = () => {
1710
1246
  },
1711
1247
  onEnter: o = () => {
1712
1248
  },
1713
- onEscape: s = () => {
1249
+ onEscape: r = () => {
1714
1250
  },
1715
- selectAllOnFocus: i,
1716
- onChange: a = () => {
1251
+ selectAllOnFocus: s,
1252
+ onChange: i = () => {
1717
1253
  },
1718
- disabled: l = !1,
1719
- type: u
1720
- } = d, c = S(d, [
1254
+ disabled: c = !1,
1255
+ type: l
1256
+ } = p, a = M(p, [
1721
1257
  "className",
1722
1258
  "autoFocus",
1723
1259
  "onFocusChange",
@@ -1728,84 +1264,84 @@ const Dn = 300, Bn = ({
1728
1264
  "disabled",
1729
1265
  "type"
1730
1266
  ]);
1731
- const [f, C] = $(t), x = R();
1732
- Ce(m, () => x.current), v(() => {
1733
- 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)), {
1739
- disabled: l,
1267
+ const [m, g] = C(t), x = _();
1268
+ Me(u, () => x.current), w(() => {
1269
+ var f;
1270
+ t && ((f = x == null ? void 0 : x.current) == null || f.focus());
1271
+ }, [t, u, x]);
1272
+ const v = (f, L) => {
1273
+ g(f), n && n(f), s && f && L.target.select();
1274
+ }, $ = k(b({}, W(a)), {
1275
+ disabled: c,
1740
1276
  autoFocus: t,
1741
- type: u,
1742
- onKeyDown: (g) => {
1743
- g.key === "Enter" && f && o(g), g.key === "Escape" && f && s(g);
1277
+ type: l,
1278
+ onKeyDown: (f) => {
1279
+ f.key === "Enter" && m && o(f), f.key === "Escape" && m && r(f);
1744
1280
  },
1745
- onFocus: (g) => b(!0, g),
1746
- onBlur: (g) => b(!1, g),
1747
- onChange: (g) => a(g.target.value || ""),
1748
- className: M(e, "humany-input"),
1749
- "data-type": u
1281
+ onFocus: (f) => v(!0, f),
1282
+ onBlur: (f) => v(!1, f),
1283
+ onChange: (f) => i(f.target.value || ""),
1284
+ className: z(e, "humany-input"),
1285
+ "data-type": l
1750
1286
  });
1751
- return u !== "textarea" ? /* @__PURE__ */ r.createElement(
1287
+ return l !== "textarea" ? /* @__PURE__ */ d.createElement(
1752
1288
  "input",
1753
- k(h({}, E), {
1289
+ k(b({}, $), {
1754
1290
  ref: x
1755
1291
  })
1756
- ) : /* @__PURE__ */ r.createElement(
1292
+ ) : /* @__PURE__ */ d.createElement(
1757
1293
  "textarea",
1758
- k(h({}, E), {
1294
+ k(b({}, $), {
1759
1295
  ref: x
1760
1296
  })
1761
1297
  );
1762
1298
  }
1763
- ), _n = N(
1764
- (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(
1299
+ ), $o = B(
1300
+ (i, s) => {
1301
+ var c = i, { className: e, items: t, renderItem: n, renderLi: o = !1 } = c, r = M(c, ["className", "items", "renderItem", "renderLi"]);
1302
+ return /* @__PURE__ */ d.createElement(
1767
1303
  "ul",
1768
- k(h({
1769
- className: M(e, "humany-list"),
1304
+ k(b({
1305
+ className: z(e, "humany-list"),
1770
1306
  "data-item-count": t.length
1771
- }, V(s)), {
1772
- ref: i
1307
+ }, W(r)), {
1308
+ ref: s
1773
1309
  }),
1774
1310
  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)
1311
+ (l, a, u) => o ? /* @__PURE__ */ d.createElement("li", { className: "humany-list-item", key: l.id || a }, n(l, a, u)) : n(l, a, u)
1776
1312
  )
1777
1313
  );
1778
1314
  }
1779
- ), qn = N(
1780
- (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(
1315
+ ), wo = B(
1316
+ (l, c) => {
1317
+ var a = l, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s } = a, i = M(a, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1318
+ return /* @__PURE__ */ d.createElement(
1783
1319
  "div",
1784
- k(h({
1785
- className: M(o, "humany-paragraph")
1786
- }, V(a)), {
1787
- ref: l
1320
+ k(b({
1321
+ className: z(o, "humany-paragraph")
1322
+ }, W(i)), {
1323
+ ref: c
1788
1324
  }),
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
1325
+ n ? /* @__PURE__ */ d.createElement(ie, { variant: "h1" }, s ? /* @__PURE__ */ d.createElement(le, { symbol: s }) : null, n) : null,
1326
+ t ? /* @__PURE__ */ d.createElement(vt, { html: t, htmlParseInstruction: r }) : null,
1327
+ e ? /* @__PURE__ */ d.createElement(Re, null, e) : null
1792
1328
  );
1793
1329
  }
1794
- ), Qn = N(
1795
- (f, d) => {
1796
- var C = f, {
1330
+ ), xo = B(
1331
+ (m, p) => {
1332
+ var g = m, {
1797
1333
  header: e,
1798
1334
  customHeader: t,
1799
1335
  text: n,
1800
1336
  html: o,
1801
- className: s,
1802
- children: i,
1803
- symbol: a,
1804
- items: l,
1805
- renderItem: u,
1806
- renderLi: c,
1807
- ulProps: m
1808
- } = C, p = S(C, [
1337
+ className: r,
1338
+ children: s,
1339
+ symbol: i,
1340
+ items: c,
1341
+ renderItem: l,
1342
+ renderLi: a,
1343
+ ulProps: u
1344
+ } = g, h = M(g, [
1809
1345
  "header",
1810
1346
  "customHeader",
1811
1347
  "text",
@@ -1818,120 +1354,120 @@ const Dn = 300, Bn = ({
1818
1354
  "renderLi",
1819
1355
  "ulProps"
1820
1356
  ]);
1821
- return /* @__PURE__ */ r.createElement(
1357
+ return /* @__PURE__ */ d.createElement(
1822
1358
  "div",
1823
- k(h({
1824
- className: M(s, "humany-item-list"),
1825
- "data-item-count": l.length
1826
- }, V(p)), {
1827
- ref: d
1359
+ k(b({
1360
+ className: z(r, "humany-item-list"),
1361
+ "data-item-count": c.length
1362
+ }, W(h)), {
1363
+ ref: p
1828
1364
  }),
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,
1831
- i
1365
+ t || (e || n || o ? /* @__PURE__ */ d.createElement(wo, { symbol: i, header: e, text: n, html: o }) : null),
1366
+ c.length ? /* @__PURE__ */ d.createElement($o, b({ items: c, renderItem: l, renderLi: a }, u)) : null,
1367
+ s
1832
1368
  );
1833
1369
  }
1834
- ), Gn = ({
1370
+ ), Eo = ({
1835
1371
  className: e = "",
1836
1372
  tree: t,
1837
1373
  renderItem: n,
1838
1374
  rootItem: o,
1839
- renderUnselected: s = !0,
1840
- renderEmpty: i = !0,
1841
- ulProps: a,
1842
- liProps: l
1375
+ renderUnselected: r = !0,
1376
+ renderEmpty: s = !0,
1377
+ ulProps: i,
1378
+ liProps: c
1843
1379
  }) => {
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,
1380
+ const l = (h) => !a(h), a = (h) => !h || h.length < 1 ? !0 : !h.some((p) => !!p.selected), u = (h, p) => /* @__PURE__ */ d.createElement(
1381
+ xo,
1846
1382
  {
1847
- className: M(`humany-item-tree-level-${d}`),
1848
- items: p,
1849
- 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(
1383
+ className: z(`humany-item-tree-level-${p}`),
1384
+ items: h,
1385
+ ulProps: i,
1386
+ renderItem: (m) => {
1387
+ const { id: g, selected: x, items: v, matches: $ } = m, f = x && a(v);
1388
+ return !s && !$ ? null : /* @__PURE__ */ d.createElement(
1853
1389
  "li",
1854
- k(h({}, V(l)), {
1855
- key: C,
1390
+ k(b({}, W(c)), {
1391
+ key: g,
1856
1392
  className: "humany-item-tree-item"
1857
1393
  }),
1858
- n && n(f, d, g),
1859
- b && (s || g) && m(b, d + 1)
1394
+ n && n(m, p, f),
1395
+ v && (r || f) && u(v, p + 1)
1860
1396
  );
1861
1397
  }
1862
1398
  }
1863
1399
  );
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(
1866
- (u, l) => {
1867
- 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();
1870
- if (!m)
1400
+ return /* @__PURE__ */ d.createElement("div", { className: z(e, "humany-item-tree") }, o && o(!l(t || [])), t && u(t, 1));
1401
+ }, Bs = Eo, Co = B(
1402
+ (l, c) => {
1403
+ var a = l, { className: e, onClick: t = () => {
1404
+ }, name: n = "", to: o = "", params: r = {}, children: s } = a, i = M(a, ["className", "onClick", "name", "to", "params", "children"]);
1405
+ const u = pt(), h = H();
1406
+ if (!u)
1871
1407
  return null;
1872
- let d = "";
1873
- const f = k(h({
1408
+ let p = "";
1409
+ const m = k(b({
1874
1410
  onClick: t,
1875
- className: M(e, "humany-route-link"),
1876
- to: d,
1877
- innerRef: l
1878
- }, a), {
1411
+ className: z(e, "humany-route-link"),
1412
+ to: p,
1413
+ innerRef: c
1414
+ }, i), {
1879
1415
  ref: null
1880
1416
  });
1881
1417
  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.`);
1418
+ if (!(u.routes || []).find(($) => $.name === n))
1419
+ return process.env.NODE_ENV !== "production" && Ee.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ d.createElement(
1420
+ Ce,
1421
+ k(b({}, m), {
1422
+ onClick: ($) => {
1423
+ t($), $.preventDefault(), process.env.NODE_ENV !== "production" && Ee.warn(`Unable to navigate. No route named "${n}" exist.`);
1888
1424
  }
1889
1425
  }),
1890
- i
1426
+ s
1891
1427
  );
1892
- const b = Object.keys(s).reduce((E, g) => (E[g] = typeof s[g] == "string" ? encodeURIComponent(s[g]) : s[g], E), {});
1428
+ const v = Object.keys(r).reduce(($, f) => ($[f] = typeof r[f] == "string" ? encodeURIComponent(r[f]) : r[f], $), {});
1893
1429
  try {
1894
- d = m.generate(n, b || {});
1895
- } catch (E) {
1896
- return /* @__PURE__ */ r.createElement(fe, h({}, f), i);
1430
+ p = u.generate(n, v || {});
1431
+ } catch ($) {
1432
+ return /* @__PURE__ */ d.createElement(Ce, b({}, m), s);
1897
1433
  }
1898
- d && m.settings.mode && m.settings.mode === Be.browser && d[0] !== "/" && (d = `/${d}`);
1899
- } else if (o && m.history)
1900
- d = m.history.createHref({
1434
+ p && u.settings.mode && u.settings.mode === Qe.browser && p[0] !== "/" && (p = `/${p}`);
1435
+ } else if (o && u.history)
1436
+ p = u.history.createHref({
1901
1437
  hash: "",
1902
1438
  pathname: o,
1903
1439
  search: "",
1904
1440
  state: void 0
1905
1441
  });
1906
1442
  else
1907
- return process.env.NODE_ENV !== "production" && de.warn(
1443
+ return process.env.NODE_ENV !== "production" && Ee.warn(
1908
1444
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1909
1445
  ), null;
1910
- if (m.settings && m.settings.mode === Be.scopedHash) {
1911
- const C = p.get("$widget").name;
1912
- d = xt(d, C);
1446
+ if (u.settings && u.settings.mode === Qe.scopedHash) {
1447
+ const g = h.get("$widget").name;
1448
+ p = Yt(p, g);
1913
1449
  }
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);
1450
+ return m.as ? /* @__PURE__ */ d.createElement(So, k(b({}, m), { as: m.as }), s) : /* @__PURE__ */ d.createElement(Ce, k(b({}, m), { to: p }), s);
1915
1451
  }
1916
- ), er = y.span``, we = N(
1917
- (x, C) => {
1918
- var b = x, {
1452
+ ), So = y.span``, Be = B(
1453
+ (x, g) => {
1454
+ var v = x, {
1919
1455
  className: e,
1920
1456
  disabled: t = !1,
1921
1457
  role: n = "link",
1922
1458
  tabIndex: o = 0,
1923
- onClick: s = () => {
1459
+ onClick: r = () => {
1924
1460
  },
1925
- onKeyDown: i = () => {
1461
+ onKeyDown: s = () => {
1926
1462
  },
1927
- title: a,
1928
- as: l,
1929
- href: u,
1930
- children: c,
1931
- target: m,
1932
- routeName: p,
1933
- params: d
1934
- } = b, f = S(b, [
1463
+ title: i,
1464
+ as: c,
1465
+ href: l,
1466
+ children: a,
1467
+ target: u,
1468
+ routeName: h,
1469
+ params: p
1470
+ } = v, m = M(v, [
1935
1471
  "className",
1936
1472
  "disabled",
1937
1473
  "role",
@@ -1946,79 +1482,79 @@ const Dn = 300, Bn = ({
1946
1482
  "routeName",
1947
1483
  "params"
1948
1484
  ]);
1949
- const E = {
1950
- title: a,
1485
+ const $ = {
1486
+ title: i,
1951
1487
  disabled: t,
1952
1488
  role: n,
1953
- as: l,
1489
+ as: c,
1954
1490
  tabIndex: o,
1955
- className: M(e, "humany-link", [!!t, "humany-disabled"]),
1956
- onClick: (g) => {
1957
- if (g.persist(), t) {
1958
- g.preventDefault();
1491
+ className: z(e, "humany-link", [!!t, "humany-disabled"]),
1492
+ onClick: (f) => {
1493
+ if (f.persist(), t) {
1494
+ f.preventDefault();
1959
1495
  return;
1960
1496
  }
1961
- s(g);
1497
+ r(f);
1962
1498
  },
1963
- onKeyDown: (g) => {
1964
- if (g.persist(), t) {
1965
- g.key !== "Tab" && g.preventDefault();
1499
+ onKeyDown: (f) => {
1500
+ if (f.persist(), t) {
1501
+ f.key !== "Tab" && f.preventDefault();
1966
1502
  return;
1967
1503
  }
1968
- i(g);
1504
+ s(f);
1969
1505
  }
1970
1506
  };
1971
- return p ? /* @__PURE__ */ r.createElement(
1972
- tr,
1973
- k(h(h({
1974
- name: p,
1975
- params: d
1976
- }, E), V(f)), {
1977
- ref: C
1507
+ return h ? /* @__PURE__ */ d.createElement(
1508
+ ko,
1509
+ k(b(b({
1510
+ name: h,
1511
+ params: p
1512
+ }, $), W(m)), {
1513
+ ref: g
1978
1514
  }),
1979
- c
1980
- ) : /* @__PURE__ */ r.createElement(
1981
- nr,
1982
- k(h(h({
1983
- href: u,
1984
- target: m
1985
- }, E), V(f)), {
1986
- ref: C
1515
+ a
1516
+ ) : /* @__PURE__ */ d.createElement(
1517
+ _o,
1518
+ k(b(b({
1519
+ href: l,
1520
+ target: u
1521
+ }, $), W(m)), {
1522
+ ref: g
1987
1523
  }),
1988
- c
1524
+ a
1989
1525
  );
1990
1526
  }
1991
- ), tr = y(Jn)`
1527
+ ), ko = y(Co)`
1992
1528
  ${(e) => e.disabled ? `
1993
1529
  pointer-events: none;
1994
1530
  opacity: .7;
1995
1531
  ` : "cursor: pointer;"}
1996
- `, nr = y.a`
1532
+ `, _o = y.a`
1997
1533
  ${(e) => e.disabled ? `
1998
1534
  pointer-events: none;
1999
1535
  opacity: .7;
2000
1536
  ` : "cursor: pointer;"}
2001
- `, rr = (i) => {
2002
- var a = i, {
1537
+ `, Do = (s) => {
1538
+ var i = s, {
2003
1539
  visible: e,
2004
1540
  duration: t = 500,
2005
1541
  children: n,
2006
1542
  onClick: o = () => {
2007
1543
  }
2008
- } = a, s = S(a, [
1544
+ } = i, r = M(i, [
2009
1545
  "visible",
2010
1546
  "duration",
2011
1547
  "children",
2012
1548
  "onClick"
2013
1549
  ]);
2014
- const l = R(), u = H(
2015
- (c) => {
2016
- c.target === l.current && o(c);
1550
+ const c = _(), l = D(
1551
+ (a) => {
1552
+ a.target === c.current && o(a);
2017
1553
  },
2018
1554
  [o]
2019
1555
  );
2020
- return /* @__PURE__ */ r.createElement(
2021
- Ie,
1556
+ return /* @__PURE__ */ d.createElement(
1557
+ lt,
2022
1558
  {
2023
1559
  in: e,
2024
1560
  className: "humany-overlay-transition",
@@ -2026,18 +1562,18 @@ const Dn = 300, Bn = ({
2026
1562
  unmountOnExit: !0,
2027
1563
  timeout: t
2028
1564
  },
2029
- /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
2030
- or,
2031
- h({
1565
+ /* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
1566
+ To,
1567
+ b({
2032
1568
  className: "humany-overlay",
2033
1569
  duration: t,
2034
- ref: l,
2035
- onClick: u
2036
- }, s),
1570
+ ref: c,
1571
+ onClick: l
1572
+ }, r),
2037
1573
  n
2038
1574
  ))
2039
1575
  );
2040
- }, or = y.div`
1576
+ }, To = y.div`
2041
1577
  background: rgba(0, 0, 0, 0.6);
2042
1578
  min-width: 100%;
2043
1579
  min-height: 100%;
@@ -2067,11 +1603,11 @@ const Dn = 300, Bn = ({
2067
1603
  &.humany-overlay-transition-exit-done {
2068
1604
  opacity: 0;
2069
1605
  }
2070
- `, _e = rr, sr = Ze`
1606
+ `, $t = Do, Mo = it`
2071
1607
  100% {
2072
1608
  transform: rotate(360deg);
2073
1609
  }
2074
- `, ir = Ze`
1610
+ `, zo = it`
2075
1611
  0% {
2076
1612
  stroke-dasharray: 1, 200;
2077
1613
  stroke-dashoffset: 0;
@@ -2084,8 +1620,8 @@ const Dn = 300, Bn = ({
2084
1620
  stroke-dasharray: 89, 200;
2085
1621
  stroke-dashoffset: -124px;
2086
1622
  }
2087
- `, ar = y.svg`
2088
- animation: ${sr} 2s linear infinite;
1623
+ `, Lo = y.svg`
1624
+ animation: ${Mo} 2s linear infinite;
2089
1625
  height: 100%;
2090
1626
  transform-origin: center center;
2091
1627
  width: 100%;
@@ -2096,7 +1632,7 @@ const Dn = 300, Bn = ({
2096
1632
  right: 0;
2097
1633
  margin: auto;
2098
1634
  transition: 200ms ease-out opacity;
2099
- `, cr = y.div`
1635
+ `, Po = y.div`
2100
1636
  position: absolute;
2101
1637
  top: 0;
2102
1638
  bottom: 0;
@@ -2114,7 +1650,7 @@ const Dn = 300, Bn = ({
2114
1650
  svg {
2115
1651
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2116
1652
  }
2117
- `, lr = y.div`
1653
+ `, Oo = y.div`
2118
1654
  position: relative;
2119
1655
  margin: 0 auto;
2120
1656
  width: 100px;
@@ -2123,18 +1659,18 @@ const Dn = 300, Bn = ({
2123
1659
  display: block;
2124
1660
  padding-top: 100%;
2125
1661
  }
2126
- `, ur = y.circle`
1662
+ `, Ro = y.circle`
2127
1663
  stroke-dasharray: 1, 200;
2128
1664
  stroke-dashoffset: 0;
2129
- animation: ${ir} 1.5s ease-in-out infinite;
1665
+ animation: ${zo} 1.5s ease-in-out infinite;
2130
1666
  stroke-linecap: round;
2131
1667
  stroke: ${(e) => {
2132
1668
  var t;
2133
1669
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2134
1670
  }};
2135
1671
  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,
1672
+ `, No = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ d.createElement(Po, { className: z("humany-loader", e), "data-loading": t }, /* @__PURE__ */ d.createElement(Oo, { className: "humany-spinner" }, /* @__PURE__ */ d.createElement(Lo, { viewBox: "25 25 50 50" }, /* @__PURE__ */ d.createElement(
1673
+ Ro,
2138
1674
  {
2139
1675
  cx: "50",
2140
1676
  cy: "50",
@@ -2143,62 +1679,62 @@ const Dn = 300, Bn = ({
2143
1679
  "stroke-width": "2",
2144
1680
  "stroke-miterlimit": "10"
2145
1681
  }
2146
- )))), dr = mr, fr = (s) => {
2147
- var i = s, {
1682
+ )))), Io = No, Bo = (r) => {
1683
+ var s = r, {
2148
1684
  zoomState: e,
2149
1685
  image: t,
2150
1686
  changeZoom: n
2151
- } = i, o = S(i, [
1687
+ } = s, o = M(s, [
2152
1688
  "zoomState",
2153
1689
  "image",
2154
1690
  "changeZoom"
2155
1691
  ]);
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(() => {
2158
- const g = a.current;
2159
- 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;
1692
+ var $;
1693
+ const i = _(null), [c, l] = C(!1), [a, u] = C(!1), v = o.style || {}, { width: h, height: p } = v, m = M(v, ["width", "height"]), g = D(() => {
1694
+ const f = i.current;
1695
+ if (f) {
1696
+ const L = window.innerWidth / f.width, O = window.innerHeight / f.height, T = Math.min(L, O);
1697
+ return O >= 1 && L >= 1 ? 1 : T;
2162
1698
  }
2163
1699
  return 1;
2164
- }, [l, t.src]), x = se(() => {
2165
- const g = a.current;
2166
- if (g) {
2167
- if (!c) {
2168
- m(!0);
2169
- const B = C();
2170
- n(B);
1700
+ }, [c, t.src]), x = ge(() => {
1701
+ const f = i.current;
1702
+ if (f) {
1703
+ if (!a) {
1704
+ u(!0);
1705
+ const L = g();
1706
+ n(L);
2171
1707
  }
2172
- return g.width >= g.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
1708
+ return f.width >= f.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
2173
1709
  }
2174
1710
  return null;
2175
- }, [e, a, l, t.src]);
2176
- return v(() => (u(!1), function() {
2177
- 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({
1711
+ }, [e, i, c, t.src]);
1712
+ return w(() => (l(!1), function() {
1713
+ u(!1);
1714
+ }), [t.src]), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(Wo, { loading: !c }), /* @__PURE__ */ d.createElement(
1715
+ Ho,
1716
+ k(b({
2181
1717
  onLoad: () => {
2182
- u(!0);
1718
+ l(!0);
2183
1719
  },
2184
- ref: a,
1720
+ ref: i,
2185
1721
  imageSize: x,
2186
1722
  draggable: "false"
2187
1723
  }, o), {
2188
- alt: ((E = o.alt) == null ? void 0 : E.toString()) || "",
2189
- style: f,
1724
+ alt: (($ = o.alt) == null ? void 0 : $.toString()) || "",
1725
+ style: m,
2190
1726
  src: t.src,
2191
- loaded: l
1727
+ loaded: c
2192
1728
  })
2193
- ), /* @__PURE__ */ r.createElement(gr, null));
2194
- }, hr = y(dr)`
1729
+ ), /* @__PURE__ */ d.createElement(jo, null));
1730
+ }, Wo = y(Io)`
2195
1731
  svg circle {
2196
1732
  stroke: #ffffff;
2197
1733
  }
2198
- `, pr = y.img`
1734
+ `, Ho = y.img`
2199
1735
  transform: none;
2200
1736
 
2201
- ${(e) => e.imageSize && L`
1737
+ ${(e) => e.imageSize && S`
2202
1738
  width: ${e.imageSize[0]};
2203
1739
  height: ${e.imageSize[1]};
2204
1740
  display: inline-block;
@@ -2206,267 +1742,267 @@ const Dn = 300, Bn = ({
2206
1742
  vertical-align: middle;
2207
1743
  position: relative;
2208
1744
  ${(e) => !e.loaded && "display:none;"}
2209
- `, gr = y.div`
1745
+ `, jo = y.div`
2210
1746
  height: 100%;
2211
1747
  display: inline-block;
2212
1748
  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(() => {
1749
+ `, Vo = Bo, Fo = () => {
1750
+ const e = _(), [t, n] = C(!0), o = D(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2215
1751
  n(!1);
2216
1752
  }, 3e3), () => {
2217
1753
  e.current && clearTimeout(e.current);
2218
1754
  }), [t, e]);
2219
1755
  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(() => {
2224
- n && C(null);
2225
- }, [n]), v(() => {
2226
- a(1);
2227
- }, [f]), v(() => {
2228
- var P, F;
2229
- if (f === null || g.current === null)
1756
+ }, Ao = ({ attrs: e, htmlBody: t }) => {
1757
+ var Ke;
1758
+ const n = te("Escape"), o = te("ArrowLeft"), r = te("ArrowRight"), [s, i] = C(1), [c, l] = C({ top: 0, left: 0, x: 0, y: 0 }), [a, u] = C(!1), [h, p] = Fo(), [m, g] = C(null), [x, v] = C(null), $ = _(null), f = _(null), L = _(null), O = _(null);
1759
+ w(() => {
1760
+ n && g(null);
1761
+ }, [n]), w(() => {
1762
+ i(1);
1763
+ }, [m]), w(() => {
1764
+ var Y, U;
1765
+ if (m === null || f.current === null)
2230
1766
  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");
1767
+ const E = f.current.firstElementChild, P = (Y = L.current) == null ? void 0 : Y.querySelector(".nav-left"), F = (U = L.current) == null ? void 0 : U.querySelector(".nav-right");
2232
1768
  if (x === "Right")
2233
- te && Z ? Z.focus() : ee && D && D.focus();
1769
+ me && F ? F.focus() : de && P && P.focus();
2234
1770
  else if (x === "Left")
2235
- ee && D ? D.focus() : te && Z && Z.focus();
1771
+ de && P ? P.focus() : me && F && F.focus();
2236
1772
  else {
2237
- if (!w)
1773
+ if (!E)
2238
1774
  return;
2239
- w.focus();
1775
+ E.focus();
2240
1776
  }
2241
- }, [f, g, B, x]), v(() => {
1777
+ }, [m, f, L, x]), w(() => {
2242
1778
  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
1779
+ if (de)
1780
+ return Fe();
1781
+ } else if (r && me)
1782
+ return Ae();
1783
+ }, [o, r]);
1784
+ const T = ge(() => {
1785
+ const E = document.createElement("div");
1786
+ E.innerHTML = t || "";
1787
+ const P = E.getElementsByTagName("img");
1788
+ return Array.from(P).reduce((Y, U) => {
1789
+ const qe = U.getAttribute("src"), zt = U.height || Number.parseInt(U.style.height, 10), Lt = U.width || Number.parseInt(U.style.width, 10);
1790
+ if (qe) {
1791
+ const Pt = {
1792
+ src: qe,
1793
+ originalWidth: Lt,
1794
+ originalHeight: zt
2259
1795
  };
2260
- P.push(it);
1796
+ Y.push(Pt);
2261
1797
  }
2262
- return P;
1798
+ return Y;
2263
1799
  }, []);
2264
- }, [t]), j = H(() => {
2265
- const { src: w } = e;
2266
- if (w) {
2267
- const D = T.findIndex((Z, P) => Z.src === w);
2268
- C(D);
2269
- }
2270
- }, [T, e]), Ge = H((w) => {
2271
- C(null);
2272
- }, []), ke = H(
2273
- (w) => {
2274
- a(w ? i + i * 0.25 : i - i * 0.25);
1800
+ }, [t]), V = D(() => {
1801
+ const { src: E } = e;
1802
+ if (E) {
1803
+ const P = T.findIndex((F, Y) => F.src === E);
1804
+ g(P);
1805
+ }
1806
+ }, [T, e]), St = D((E) => {
1807
+ g(null);
1808
+ }, []), Ve = D(
1809
+ (E) => {
1810
+ i(E ? s + s * 0.25 : s - s * 0.25);
2275
1811
  },
2276
- [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));
1812
+ [i, s]
1813
+ ), kt = D(() => {
1814
+ if (m !== null) {
1815
+ const { src: E } = T[m];
1816
+ E && window.open(E, "_self");
1817
+ }
1818
+ }, [T, m]), _t = D(
1819
+ (E) => {
1820
+ const P = O.current;
1821
+ P && (l({ top: P.scrollTop, left: P.scrollLeft, x: E.clientX, y: E.clientY }), u(!0));
2286
1822
  },
2287
- [z]
2288
- ), tt = H(
2289
- (w) => {
2290
- const D = z.current;
2291
- 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;
1823
+ [O]
1824
+ ), Dt = D(
1825
+ (E) => {
1826
+ const P = O.current;
1827
+ if (P && a) {
1828
+ const F = E.clientX - c.x, Y = E.clientY - c.y;
1829
+ P.scrollTop = c.top - Y, P.scrollLeft = c.left - F;
2294
1830
  }
2295
1831
  },
2296
- [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];
2304
- return D.width > window.innerWidth || D.height > window.innerHeight;
1832
+ [a, c]
1833
+ ), Tt = (E) => {
1834
+ E.preventDefault(), u(!1);
1835
+ }, Mt = ge(() => {
1836
+ if (O.current) {
1837
+ const E = O.current.getElementsByTagName("img");
1838
+ if (E && E.length) {
1839
+ const P = E[0];
1840
+ return P.width > window.innerWidth || P.height > window.innerHeight;
2305
1841
  }
2306
1842
  }
2307
1843
  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,
1844
+ }, [O, s]), Fe = () => {
1845
+ m !== null && (v("Left"), g(m - 1));
1846
+ }, Ae = () => {
1847
+ m !== null && (v("Right"), g(m + 1));
1848
+ }, de = m !== null && m > 0 && T.length > 1, me = m !== null && T.length - 1 > m;
1849
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: m !== null, onClick: St }, /* @__PURE__ */ d.createElement(
1850
+ Go,
2315
1851
  {
2316
- onMouseDown: () => d(),
2317
- onMouseMove: () => d(),
2318
- onTouchStart: () => d(),
2319
- onKeyDown: () => d()
1852
+ onMouseDown: () => p(),
1853
+ onMouseMove: () => p(),
1854
+ onTouchStart: () => p(),
1855
+ onKeyDown: () => p()
2320
1856
  },
2321
- /* @__PURE__ */ r.createElement(Sr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
2322
- wr,
1857
+ /* @__PURE__ */ d.createElement(Jo, { show: h.toString() }, /* @__PURE__ */ d.createElement(
1858
+ Uo,
2323
1859
  {
2324
- ref: g,
1860
+ ref: f,
2325
1861
  buttons: [
2326
1862
  {
2327
1863
  id: "download",
2328
- onClick: Je,
1864
+ onClick: kt,
2329
1865
  icon: "download",
2330
1866
  ariaLabel: "Download image"
2331
1867
  },
2332
1868
  {
2333
1869
  id: "lightbox-close",
2334
- onClick: () => C(null),
1870
+ onClick: () => g(null),
2335
1871
  icon: "lightbox-close",
2336
1872
  ariaLabel: "Close"
2337
1873
  }
2338
1874
  ]
2339
1875
  }
2340
1876
  )),
2341
- /* @__PURE__ */ r.createElement(
2342
- Hr,
1877
+ /* @__PURE__ */ d.createElement(
1878
+ tr,
2343
1879
  {
2344
- scrolling: c.toString(),
2345
- isDraggable: rt.toString(),
2346
- ref: z,
2347
- onMouseMove: tt,
2348
- onMouseDown: et,
2349
- onMouseUp: nt
1880
+ scrolling: a.toString(),
1881
+ isDraggable: Mt.toString(),
1882
+ ref: O,
1883
+ onMouseMove: Dt,
1884
+ onMouseDown: _t,
1885
+ onMouseUp: Tt
2350
1886
  },
2351
- f !== null && /* @__PURE__ */ r.createElement(
2352
- Cr,
2353
- k(h({
2354
- changeZoom: (w) => {
2355
- a(w);
1887
+ m !== null && /* @__PURE__ */ d.createElement(
1888
+ Vo,
1889
+ k(b({
1890
+ changeZoom: (E) => {
1891
+ i(E);
2356
1892
  },
2357
- zoomState: i
1893
+ zoomState: s
2358
1894
  }, e), {
2359
- image: T[f]
1895
+ image: T[m]
2360
1896
  })
2361
1897
  )
2362
1898
  ),
2363
- /* @__PURE__ */ r.createElement(
2364
- kr,
1899
+ /* @__PURE__ */ d.createElement(
1900
+ Zo,
2365
1901
  {
2366
- ref: B,
2367
- show: p.toString(),
1902
+ ref: L,
1903
+ show: h.toString(),
2368
1904
  buttons: [
2369
1905
  {
2370
1906
  id: "previous",
2371
- onClick: Le,
1907
+ onClick: Fe,
2372
1908
  icon: "caret-left",
2373
1909
  circle: !0,
2374
- show: ee,
1910
+ show: de,
2375
1911
  className: "nav-left",
2376
1912
  ariaLabel: "Navigate to previous image"
2377
1913
  },
2378
1914
  {
2379
1915
  id: "next",
2380
- onClick: Me,
1916
+ onClick: Ae,
2381
1917
  icon: "caret-right",
2382
1918
  circle: !0,
2383
- show: te,
1919
+ show: me,
2384
1920
  className: "nav-right",
2385
1921
  ariaLabel: "Navigate to next image"
2386
1922
  }
2387
1923
  ]
2388
1924
  }
2389
1925
  ),
2390
- /* @__PURE__ */ r.createElement(Rr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
2391
- $r,
1926
+ /* @__PURE__ */ d.createElement(er, { show: h.toString() }, /* @__PURE__ */ d.createElement(
1927
+ Xo,
2392
1928
  {
2393
1929
  buttons: [
2394
1930
  {
2395
1931
  id: "zoom-out",
2396
- onClick: () => ke(!1),
1932
+ onClick: () => Ve(!1),
2397
1933
  icon: "zoom-out",
2398
1934
  ariaLabel: "Zoom out"
2399
1935
  },
2400
1936
  {
2401
1937
  id: "zoom-in",
2402
- onClick: () => ke(!0),
1938
+ onClick: () => Ve(!0),
2403
1939
  icon: "zoom-in",
2404
1940
  ariaLabel: "Zoom in"
2405
1941
  }
2406
1942
  ]
2407
1943
  }
2408
- ), /* @__PURE__ */ r.createElement(Lr, { variant: "span" }, Math.trunc(i * 100), "%"))
2409
- )), /* @__PURE__ */ r.createElement(
2410
- vr,
1944
+ ), /* @__PURE__ */ d.createElement(Qo, { variant: "span" }, Math.trunc(s * 100), "%"))
1945
+ )), /* @__PURE__ */ d.createElement(
1946
+ Ko,
2411
1947
  {
2412
- ref: E,
2413
- onClick: j,
2414
- onKeyDown: (w) => {
2415
- w.key === "Enter" && (w.preventDefault(), j());
1948
+ ref: $,
1949
+ onClick: V,
1950
+ onKeyDown: (E) => {
1951
+ E.key === "Enter" && (E.preventDefault(), V());
2416
1952
  },
2417
1953
  tabIndex: 0
2418
1954
  },
2419
- /* @__PURE__ */ r.createElement(Tr, k(h({}, e), { alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "" }))
1955
+ /* @__PURE__ */ d.createElement(nr, k(b({}, e), { alt: ((Ke = e.alt) == null ? void 0 : Ke.toString()) || "" }))
2420
1956
  ));
2421
- }, $e = N(
2422
- ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(
2423
- Er,
1957
+ }, We = B(
1958
+ ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ d.createElement(
1959
+ qo,
2424
1960
  {
2425
1961
  ref: o,
2426
1962
  show: e,
2427
- className: M("humany-button-set", n)
1963
+ className: z("humany-button-set", n)
2428
1964
  },
2429
1965
  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,
1966
+ ({ id: r, circle: s = !1, show: i = !0, ariaLabel: c, onClick: l, icon: a, className: u }, h) => /* @__PURE__ */ d.createElement(
1967
+ Yo,
2432
1968
  {
2433
- key: s + p.toString(),
2434
- circle: i.toString(),
2435
- onClick: u,
2436
- tabIndex: a ? void 0 : -1,
2437
- show: a.toString(),
2438
- icon: c,
2439
- className: m,
2440
- "aria-label": l
1969
+ key: r + h.toString(),
1970
+ circle: s.toString(),
1971
+ onClick: l,
1972
+ tabIndex: i ? void 0 : -1,
1973
+ show: i.toString(),
1974
+ icon: a,
1975
+ className: u,
1976
+ "aria-label": c
2441
1977
  },
2442
- /* @__PURE__ */ r.createElement(J, { size: 24, symbol: { type: "Svg", content: c } })
1978
+ /* @__PURE__ */ d.createElement(le, { size: 24, symbol: { type: "Svg", content: a } })
2443
1979
  )
2444
1980
  )
2445
1981
  )
2446
- ), qe = y.div`
1982
+ ), wt = y.div`
2447
1983
  transition: opacity 0.3s ease 0s;
2448
1984
  z-index: 5;
2449
- ${(e) => e.show === "true" ? "opacity: 1;" : L`
1985
+ ${(e) => e.show === "true" ? "opacity: 1;" : S`
2450
1986
  opacity: 0;
2451
1987
  pointer-events: none;
2452
1988
  `}
2453
- `, vr = y(we)`
1989
+ `, Ko = y(Be)`
2454
1990
  display: inline-block !important;
2455
- `, Er = y(qe)`
1991
+ `, qo = y(wt)`
2456
1992
  position: fixed;
2457
1993
  display: flex;
2458
1994
  gap: ${(e) => {
2459
1995
  var t;
2460
1996
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2461
1997
  }};
2462
- `, ge = "39px", xr = y(ae)`
2463
- width: ${ge};
2464
- height: ${ge};
1998
+ `, De = "39px", Yo = y(be)`
1999
+ width: ${De};
2000
+ height: ${De};
2465
2001
  display: flex;
2466
2002
  justify-content: center;
2467
2003
  align-items: center;
2468
2004
 
2469
- ${(e) => e.icon === "caret-left" && L`
2005
+ ${(e) => e.icon === "caret-left" && S`
2470
2006
  svg {
2471
2007
  position: relative;
2472
2008
  left: -2px;
@@ -2475,7 +2011,7 @@ const Dn = 300, Bn = ({
2475
2011
 
2476
2012
  ${(e) => {
2477
2013
  var t;
2478
- return e.circle === "true" ? L`
2014
+ return e.circle === "true" ? S`
2479
2015
  background-color: #ffffff;
2480
2016
  border-radius: 50%;
2481
2017
 
@@ -2487,7 +2023,7 @@ const Dn = 300, Bn = ({
2487
2023
  }
2488
2024
 
2489
2025
  &:focus-visible {
2490
- ${A(e)}
2026
+ ${Z(e)}
2491
2027
  outline-color: #ffffff;
2492
2028
  background-color: transparent;
2493
2029
 
@@ -2498,7 +2034,7 @@ const Dn = 300, Bn = ({
2498
2034
  }
2499
2035
  }
2500
2036
  }
2501
- ` : L`
2037
+ ` : S`
2502
2038
  svg {
2503
2039
  path,
2504
2040
  line {
@@ -2509,22 +2045,22 @@ const Dn = 300, Bn = ({
2509
2045
  outline-color: #ffffff;
2510
2046
  }
2511
2047
  &:focus-visible {
2512
- ${A(e)}
2048
+ ${Z(e)}
2513
2049
  }
2514
2050
  `;
2515
2051
  }}
2516
2052
 
2517
- ${(e) => e.show === "true" ? L`
2053
+ ${(e) => e.show === "true" ? S`
2518
2054
  opacity: 0.8;
2519
2055
  transition: opacity 0.3s ease 0s;
2520
2056
  &:hover {
2521
2057
  opacity: 1;
2522
2058
  }
2523
- ` : L`
2059
+ ` : S`
2524
2060
  opacity: 0;
2525
2061
  pointer-events: none;
2526
2062
  `}
2527
- `, wr = y($e)`
2063
+ `, Uo = y(We)`
2528
2064
  top: ${(e) => {
2529
2065
  var t;
2530
2066
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2533,7 +2069,7 @@ const Dn = 300, Bn = ({
2533
2069
  var t;
2534
2070
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2535
2071
  }};
2536
- `, $r = y($e)`
2072
+ `, Xo = y(We)`
2537
2073
  bottom: ${(e) => {
2538
2074
  var t;
2539
2075
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2541,11 +2077,11 @@ const Dn = 300, Bn = ({
2541
2077
  width: 100%;
2542
2078
  align-items: center;
2543
2079
  justify-content: center;
2544
- `, kr = y($e)`
2080
+ `, Zo = y(We)`
2545
2081
  display: block;
2546
2082
  button {
2547
2083
  position: fixed;
2548
- top: calc(50% - calc(${ge} / 2));
2084
+ top: calc(50% - calc(${De} / 2));
2549
2085
  &:first-child {
2550
2086
  left: ${(e) => {
2551
2087
  var t;
@@ -2559,7 +2095,7 @@ const Dn = 300, Bn = ({
2559
2095
  }};
2560
2096
  }
2561
2097
  }
2562
- `, Lr = y(q)`
2098
+ `, Qo = y(ie)`
2563
2099
  position: fixed;
2564
2100
  bottom: ${(e) => {
2565
2101
  var t;
@@ -2578,21 +2114,21 @@ const Dn = 300, Bn = ({
2578
2114
  var t;
2579
2115
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2580
2116
  }};
2581
- `, Qe = y(qe)`
2117
+ `, xt = y(wt)`
2582
2118
  position: absolute;
2583
2119
  width: 100vw;
2584
2120
  height: 88px;
2585
2121
  left: 0px;
2586
2122
  z-index: 5;
2587
- `, Mr = y.div`
2123
+ `, Go = y.div`
2588
2124
  width: 100%;
2589
- `, Sr = y(Qe)`
2125
+ `, Jo = y(xt)`
2590
2126
  top: 0px;
2591
2127
  background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2592
- `, Rr = y(Qe)`
2128
+ `, er = y(xt)`
2593
2129
  bottom: 0px;
2594
2130
  background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2595
- `, Hr = y.div`
2131
+ `, tr = y.div`
2596
2132
  width: 100%;
2597
2133
  height: 100vh;
2598
2134
  overflow: auto;
@@ -2601,64 +2137,64 @@ const Dn = 300, Bn = ({
2601
2137
  white-space: nowrap;
2602
2138
  justify-content: center;
2603
2139
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2604
- `, Tr = y.img`
2140
+ `, nr = y.img`
2605
2141
  cursor: pointer;
2606
- `, Dr = br, Br = N(
2607
- (l, a) => {
2608
- 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", () => {
2616
- m(!1);
2142
+ `, or = Ao, rr = B(
2143
+ (c, i) => {
2144
+ var l = c, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2145
+ }, close: r = !1 } = l, s = M(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
2146
+ const [a, u] = gt(), [h, p] = ft(!0), m = _(), g = _(ae()), x = te("Escape");
2147
+ w(() => {
2148
+ (x || r) && u(!1);
2149
+ }, [x, r]), w(() => {
2150
+ a && m.current && m.current.focus();
2151
+ }, [a, m.current]), ve("router:changed", () => {
2152
+ u(!1);
2617
2153
  });
2618
- const b = H(
2619
- (g) => {
2620
- m(!1), o(g);
2154
+ const v = D(
2155
+ (f) => {
2156
+ u(!1), o(f);
2621
2157
  },
2622
- [o, m]
2158
+ [o, u]
2623
2159
  );
2624
- Ce(a, () => ({
2160
+ Me(i, () => ({
2625
2161
  close() {
2626
- m(!1);
2162
+ u(!1);
2627
2163
  }
2628
2164
  }));
2629
- const E = H(() => ve(C.current, () => {
2630
- m(!1);
2631
- }), [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({
2635
- className: M(
2165
+ const $ = D(() => Oe(g.current, () => {
2166
+ u(!1);
2167
+ }), [g.current]);
2168
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: a, onClick: v }, /* @__PURE__ */ d.createElement(
2169
+ ir,
2170
+ k(b({
2171
+ className: z(
2636
2172
  e,
2637
2173
  "humany-modal",
2638
- `humany-modal-${C.current}`
2174
+ `humany-modal-${g.current}`
2639
2175
  ),
2640
- css: p,
2176
+ css: h,
2641
2177
  tabIndex: -1
2642
- }, i), {
2643
- ref: d
2178
+ }, s), {
2179
+ ref: p
2644
2180
  }),
2645
- /* @__PURE__ */ r.createElement(
2646
- xe,
2181
+ /* @__PURE__ */ d.createElement(
2182
+ Ne,
2647
2183
  {
2648
- onClick: () => m(!1),
2184
+ onClick: () => u(!1),
2649
2185
  tabIndex: 0,
2650
- ref: f
2186
+ ref: m
2651
2187
  },
2652
- /* @__PURE__ */ r.createElement(J, { symbol: { type: "Svg", content: "close" } })
2188
+ /* @__PURE__ */ d.createElement(le, { symbol: { type: "Svg", content: "close" } })
2653
2189
  ),
2654
2190
  t
2655
- )), r.cloneElement(n, {
2656
- onClick: (g) => {
2657
- m(), E();
2191
+ )), d.cloneElement(n, {
2192
+ onClick: (f) => {
2193
+ u(), $();
2658
2194
  }
2659
2195
  }));
2660
2196
  }
2661
- ), zr = Br, Nr = y.div`
2197
+ ), sr = rr, ir = y.div`
2662
2198
  font-family: ${(e) => {
2663
2199
  var t;
2664
2200
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2674,30 +2210,30 @@ const Dn = 300, Bn = ({
2674
2210
  var t;
2675
2211
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2676
2212
  }};
2677
- ${(e) => je(e)}
2213
+ ${(e) => yt(e)}
2678
2214
  ${(e) => e.css && e.css}
2679
2215
  outline: none;
2680
- `, Vr = ({
2216
+ `, ar = ({
2681
2217
  className: e,
2682
2218
  trigger: t,
2683
2219
  header: n = "",
2684
2220
  text: o = "",
2685
- onCancel: s = () => {
2221
+ onCancel: r = () => {
2686
2222
  },
2687
- onConfirm: i = () => {
2223
+ onConfirm: s = () => {
2688
2224
  },
2689
- cancelLabel: a = "",
2690
- confirmLabel: l = ""
2225
+ cancelLabel: i = "",
2226
+ confirmLabel: c = ""
2691
2227
  }) => {
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();
2698
- }, [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)`
2228
+ const l = _(), a = D(() => {
2229
+ var h;
2230
+ r(), (h = l == null ? void 0 : l.current) == null || h.close();
2231
+ }, [r]), u = D(() => {
2232
+ var h;
2233
+ s(), (h = l == null ? void 0 : l.current) == null || h.close();
2234
+ }, [s]);
2235
+ return /* @__PURE__ */ d.createElement(cr, { className: e, trigger: t, ref: l, onOverlayClick: a }, n && /* @__PURE__ */ d.createElement(et, null, n), o && /* @__PURE__ */ d.createElement(et, null, o), c && /* @__PURE__ */ d.createElement(lr, { onClick: u }, c), i && /* @__PURE__ */ d.createElement(ur, { onClick: a }, i));
2236
+ }, Ws = ar, cr = y(sr)`
2701
2237
  display: block;
2702
2238
 
2703
2239
  span {
@@ -2715,7 +2251,7 @@ const Dn = 300, Bn = ({
2715
2251
  }};
2716
2252
  }
2717
2253
  }
2718
- `, Zr = y(ae)`
2254
+ `, lr = y(be)`
2719
2255
  display: inline-block;
2720
2256
  min-width: 50px;
2721
2257
  ${(e) => {
@@ -2743,9 +2279,9 @@ const Dn = 300, Bn = ({
2743
2279
  }
2744
2280
 
2745
2281
  &:focus-visible {
2746
- ${A}
2282
+ ${Z}
2747
2283
  }
2748
- `, Ir = y(ae)`
2284
+ `, ur = y(be)`
2749
2285
  display: inline-block;
2750
2286
  min-width: 50px;
2751
2287
  ${(e) => {
@@ -2764,27 +2300,27 @@ const Dn = 300, Bn = ({
2764
2300
  }};
2765
2301
 
2766
2302
  &:focus-visible {
2767
- ${A};
2303
+ ${Z};
2768
2304
  }
2769
- `, Or = ({
2305
+ `, dr = ({
2770
2306
  header: e = "",
2771
2307
  link: t = "",
2772
2308
  suggestionHeader: n = "",
2773
2309
  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`
2310
+ }) => /* @__PURE__ */ d.createElement(mr, null, /* @__PURE__ */ d.createElement(hr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h2" }, "404")), /* @__PURE__ */ d.createElement(pr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h3" }, e), /* @__PURE__ */ d.createElement(yr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ d.createElement(fr, null, /* @__PURE__ */ d.createElement("span", null, n), /* @__PURE__ */ d.createElement("ul", null, /* @__PURE__ */ d.createElement("li", null, o)))), Hs = dr, mr = y.div`
2775
2311
  display: flex;
2776
2312
  flex-wrap: wrap;
2777
- `, Fr = y.div`
2778
- ${(e) => ie(e)(
2313
+ `, hr = y.div`
2314
+ ${(e) => ye(e)(
2779
2315
  "h2",
2780
- L`
2316
+ S`
2781
2317
  padding: 0;
2782
2318
  margin: 0;
2783
2319
  color: gray;
2784
2320
  font-size: 7em;
2785
2321
  `
2786
2322
  )}
2787
- `, Ar = y.div`
2323
+ `, pr = y.div`
2788
2324
  margin-left: ${(e) => {
2789
2325
  var t;
2790
2326
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2792,9 +2328,9 @@ const Dn = 300, Bn = ({
2792
2328
 
2793
2329
  ${(e) => {
2794
2330
  var t;
2795
- return ie(e)(
2331
+ return ye(e)(
2796
2332
  "h3",
2797
- L`
2333
+ S`
2798
2334
  text-transform: uppercase;
2799
2335
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
2800
2336
  `
@@ -2811,7 +2347,7 @@ const Dn = 300, Bn = ({
2811
2347
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2812
2348
  }};
2813
2349
  }
2814
- `, Kr = y.div`
2350
+ `, fr = y.div`
2815
2351
  margin-top: ${(e) => {
2816
2352
  var t;
2817
2353
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2822,103 +2358,100 @@ const Dn = 300, Bn = ({
2822
2358
  font-weight: bold;
2823
2359
  }
2824
2360
  `;
2825
- class Yr extends dt {
2361
+ class gr extends Wt {
2826
2362
  constructor() {
2827
- super(...arguments);
2828
- re(this, "node");
2829
- re(this, "onFocusListener");
2830
- re(this, "state", {
2363
+ super(...arguments), this.state = {
2831
2364
  boundFocus: !1
2832
- });
2365
+ };
2833
2366
  }
2834
2367
  componentWillMount() {
2835
- const n = this.props.container.get("accessibilitySettings");
2836
- n && n.boundFocus && this.setState({
2368
+ const t = this.props.container.get("accessibilitySettings");
2369
+ t && t.boundFocus && this.setState({
2837
2370
  boundFocus: !0
2838
2371
  });
2839
2372
  }
2840
2373
  componentDidMount() {
2841
2374
  if (!this.state.boundFocus)
2842
2375
  return;
2843
- const n = this.props.container.get("widgetDOMElement");
2844
- this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
2845
- const o = n.querySelectorAll(
2376
+ const t = this.props.container.get("widgetDOMElement");
2377
+ this.node && t && (this.onFocusListener = this.node.addEventListener("focus", () => {
2378
+ const n = t.querySelectorAll(
2846
2379
  '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();
2380
+ ), r = [].filter.call(n, (s) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(s).display === "none" || s.offsetWidth <= 0 && s.offsetHeight <= 0))[0];
2381
+ r && r.focus();
2849
2382
  }));
2850
2383
  }
2851
2384
  componentWillUnmount() {
2852
2385
  this.node && this.node.removeEventListener("focus", this.onFocusListener);
2853
2386
  }
2854
2387
  render() {
2855
- return this.state.boundFocus ? /* @__PURE__ */ r.createElement(
2388
+ return this.state.boundFocus ? /* @__PURE__ */ d.createElement(
2856
2389
  "div",
2857
2390
  {
2858
2391
  style: { opacity: 0 },
2859
2392
  tabIndex: 0,
2860
- ref: (n) => {
2861
- this.node = n;
2393
+ ref: (t) => {
2394
+ this.node = t;
2862
2395
  }
2863
2396
  }
2864
2397
  ) : null;
2865
2398
  }
2866
2399
  }
2867
- const Fo = Yr, jr = N(
2868
- (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);
2400
+ const js = gr, yr = B(
2401
+ (i, s) => {
2402
+ var c = i, { className: e, description: t, text: n, children: o } = c, r = M(c, ["className", "description", "text", "children"]);
2403
+ return /* @__PURE__ */ d.createElement(Be, k(b({ className: z(e, "humany-text-link") }, r), { ref: s }), o, /* @__PURE__ */ d.createElement(Re, null, n), t ? /* @__PURE__ */ d.createElement(vt, { html: t, className: "humany-description" }) : null);
2871
2404
  }
2872
2405
  );
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}`;
2406
+ var br = /* @__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))(br || {});
2407
+ const vr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ d.createElement("span", { className: z(e, "humany-timestamp") }, $r(n, t)), Vs = vr, tt = (e) => `0${e}`.slice(-2);
2408
+ function $r(e, t) {
2409
+ const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${tt(i)}-${tt(c)}`;
2410
+ return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
2878
2411
  }
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);
2412
+ const wr = (s) => {
2413
+ var i = s, { className: e, children: t, content: n, sticky: o = !1 } = i, r = M(i, ["className", "children", "content", "sticky"]);
2414
+ const [c, l] = C(!1), a = _(ae()), u = _(), [{ x: h, y: p }, m] = bt(c, a.current, u.current), g = (v) => {
2415
+ const { target: $ } = v;
2416
+ !u.current || !$ || u.current !== $ && !u.current.contains($) && l(!1);
2884
2417
  };
2885
- v(() => {
2418
+ w(() => {
2886
2419
  if (!!o)
2887
- return window.addEventListener("click", C), () => {
2888
- window.removeEventListener("click", C);
2420
+ return window.addEventListener("click", g), () => {
2421
+ window.removeEventListener("click", g);
2889
2422
  };
2890
- }, [l, o]);
2891
- const x = H(
2892
- (b, E) => {
2893
- f(b, m.current), u(E);
2423
+ }, [c, o]);
2424
+ const x = D(
2425
+ (v, $) => {
2426
+ m(v, u.current), l($);
2894
2427
  },
2895
- [f, u]
2428
+ [m, l]
2896
2429
  );
2897
- return /* @__PURE__ */ r.createElement(
2898
- Qr,
2430
+ return /* @__PURE__ */ d.createElement(
2431
+ xr,
2899
2432
  {
2900
- ref: m,
2433
+ ref: u,
2901
2434
  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
2435
+ onMouseEnter: o ? void 0 : (v) => x(v, !0),
2436
+ onMouseLeave: o ? void 0 : (v) => x(v, !1),
2437
+ onTouchEnd: o ? (v) => x(v, !c) : void 0,
2438
+ onClick: o ? (v) => x(v, !c) : void 0
2906
2439
  },
2907
2440
  t,
2908
- l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
2909
- Gr,
2910
- h({
2911
- className: M(e, "humany-tooltip-container"),
2912
- x: p,
2913
- y: d
2914
- }, s),
2441
+ c && /* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
2442
+ Er,
2443
+ b({
2444
+ className: z(e, "humany-tooltip-container"),
2445
+ x: h,
2446
+ y: p
2447
+ }, r),
2915
2448
  n
2916
2449
  ))
2917
2450
  );
2918
- }, Qr = y.div`
2451
+ }, xr = y.div`
2919
2452
  display: flex;
2920
2453
  align-items: center;
2921
- `, Gr = y.div`
2454
+ `, Er = y.div`
2922
2455
  color: #ffffff;
2923
2456
  background: #161616;
2924
2457
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2954,130 +2487,130 @@ const qr = (i) => {
2954
2487
  let t = "";
2955
2488
  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
2489
  }};
2957
- `, Ko = qr, Jr = (e) => {
2490
+ `, Fs = wr, Cr = (e) => {
2958
2491
  const {
2959
2492
  in: t,
2960
2493
  mountOnEnter: n = !0,
2961
2494
  unmountOnExit: o = !0,
2962
- timeout: s,
2963
- children: i,
2964
- transitions: a
2965
- } = e, u = (() => {
2966
- var c, m;
2967
- if (!(!a || a === "none")) {
2968
- if (typeof a == "string")
2495
+ timeout: r,
2496
+ children: s,
2497
+ transitions: i
2498
+ } = e, l = (() => {
2499
+ var a, u;
2500
+ if (!(!i || i === "none")) {
2501
+ if (typeof i == "string")
2969
2502
  return {
2970
2503
  enter: {
2971
- transitionKeys: a,
2972
- duration: s ? typeof s == "number" ? s : s.enter : 200,
2504
+ transitionKeys: i,
2505
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2973
2506
  easing: "ease-in"
2974
2507
  },
2975
2508
  exit: {
2976
- transitionKeys: a,
2977
- duration: s ? typeof s == "number" ? s : s.exit : 200,
2509
+ transitionKeys: i,
2510
+ duration: r ? typeof r == "number" ? r : r.exit : 200,
2978
2511
  easing: "ease-out"
2979
2512
  }
2980
2513
  };
2981
- if (typeof a == "object") {
2982
- const { enter: p, exit: d } = a;
2514
+ if (typeof i == "object") {
2515
+ const { enter: h, exit: p } = i;
2983
2516
  return {
2984
2517
  enter: {
2985
- 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"
2518
+ transitionKeys: (a = i.enter) == null ? void 0 : a.type,
2519
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2520
+ easing: h.easing ? h.easing : "ease-in"
2988
2521
  },
2989
2522
  exit: {
2990
- transitionKeys: (m = a.enter) == null ? void 0 : m.type,
2991
- duration: s ? typeof s == "number" ? s : s.enter : 200,
2992
- easing: d.easing ? d.easing : "ease-out"
2523
+ transitionKeys: (u = i.enter) == null ? void 0 : u.type,
2524
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2525
+ easing: p.easing ? p.easing : "ease-out"
2993
2526
  }
2994
2527
  };
2995
2528
  }
2996
2529
  }
2997
2530
  })();
2998
- return /* @__PURE__ */ r.createElement(
2999
- vt,
2531
+ return /* @__PURE__ */ d.createElement(
2532
+ Kt,
3000
2533
  {
3001
2534
  timeout: {
3002
- enter: u && u.enter.duration || 0,
3003
- exit: u && u.exit.duration || 0
2535
+ enter: l && l.enter.duration || 0,
2536
+ exit: l && l.exit.duration || 0
3004
2537
  },
3005
2538
  in: t,
3006
2539
  appear: !0,
3007
2540
  mountOnEnter: n,
3008
2541
  unmountOnExit: o,
3009
- onEnter: (c) => c.clientHeight
2542
+ onEnter: (a) => a.clientHeight
3010
2543
  },
3011
- (c) => i && i(c, u && he.compose(c, u))
2544
+ (a) => s && s(a, l && ke.compose(a, l))
3012
2545
  );
3013
- }, Yo = Jr, eo = N(
3014
- (l, a) => {
3015
- 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);
2546
+ }, As = Cr, Sr = B(
2547
+ (c, i) => {
2548
+ var l = c, { className: e, children: t, onClick: n = () => {
2549
+ }, widgetName: o, activationOptions: r } = l, s = M(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
2550
+ const a = H(), u = () => {
2551
+ const { implementation: m } = a.get("$widget");
2552
+ return m.widgets.get(o);
3020
2553
  };
3021
- v(() => {
3022
- const f = m();
3023
- return f == null || f.activate(s).then(() => f.invoke("attach")), () => {
3024
- f == null || f.deactivate();
2554
+ w(() => {
2555
+ const m = u();
2556
+ return m == null || m.activate(r).then(() => m.invoke("attach")), () => {
2557
+ m == null || m.deactivate();
3025
2558
  };
3026
2559
  }, [o]);
3027
- const p = (f) => {
3028
- const C = m(), x = f.currentTarget;
3029
- if (C) {
3030
- const b = () => {
3031
- C.invoke("renderState").then(
3032
- (E) => E === oe.open ? C.invoke("close") : C.invoke("open")
2560
+ const h = (m) => {
2561
+ const g = u(), x = m.currentTarget;
2562
+ if (g) {
2563
+ const v = () => {
2564
+ g.invoke("renderState").then(
2565
+ ($) => $ === fe.open ? g.invoke("close") : g.invoke("open")
3033
2566
  ).then(() => {
3034
- C.events.subscribeOnce("widget:area-rendered", (E, g) => {
3035
- c.get(
2567
+ g.events.subscribeOnce("widget:area-rendered", ($, f) => {
2568
+ a.get(
3036
2569
  "widgetDOMElement"
3037
- ) && C.events.dispatch("widget:modal-opened", {
3038
- name: C.name,
2570
+ ) && g.events.dispatch("widget:modal-opened", {
2571
+ name: g.name,
3039
2572
  ref: x
3040
2573
  });
3041
2574
  });
3042
2575
  });
3043
2576
  };
3044
- C.state === mt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(b) : b();
2577
+ g.state === Bt.Deactivated ? g.activate(r).then(() => g.invoke("attach")).then(v) : v();
3045
2578
  }
3046
- }, d = (f) => {
3047
- f.key === "Enter" && (f.preventDefault(), p(f));
2579
+ }, p = (m) => {
2580
+ m.key === "Enter" && (m.preventDefault(), h(m));
3048
2581
  };
3049
- return /* @__PURE__ */ r.createElement(
3050
- we,
3051
- k(h({
3052
- className: M(e, "humany-widget-link"),
3053
- onKeyDown: d,
3054
- onClick: (f) => {
3055
- n(f), p(f);
2582
+ return /* @__PURE__ */ d.createElement(
2583
+ Be,
2584
+ k(b({
2585
+ className: z(e, "humany-widget-link"),
2586
+ onKeyDown: p,
2587
+ onClick: (m) => {
2588
+ n(m), h(m);
3056
2589
  }
3057
- }, i), {
3058
- ref: a
2590
+ }, s), {
2591
+ ref: i
3059
2592
  }),
3060
2593
  t
3061
2594
  );
3062
2595
  }
3063
- ), jo = N(
2596
+ ), Ks = B(
3064
2597
  ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3065
- const s = W(), i = se(() => {
3066
- if (!s)
2598
+ const r = H(), s = ge(() => {
2599
+ if (!r)
3067
2600
  return null;
3068
- const a = s.get("widgetDOMElement");
3069
- 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,
2601
+ const i = r.get("widgetDOMElement");
2602
+ return !i || !i.childElementCount ? null : i.children[0];
2603
+ }, [r]);
2604
+ return s ? /* @__PURE__ */ d.createElement(ce, { elementId: e, parent: s }, /* @__PURE__ */ d.createElement(
2605
+ kr,
3073
2606
  {
3074
- className: M("humany-widget-overlay-outlet", t),
2607
+ className: z("humany-widget-overlay-outlet", t),
3075
2608
  ref: o
3076
2609
  },
3077
2610
  n
3078
2611
  )) : null;
3079
2612
  }
3080
- ), to = y.div`
2613
+ ), kr = y.div`
3081
2614
  background-color: #ffffff;
3082
2615
  position: absolute;
3083
2616
  top: 0;
@@ -3087,102 +2620,825 @@ const qr = (i) => {
3087
2620
  z-index: 10;
3088
2621
  width: 100%;
3089
2622
  height: 100%;
3090
- `, no = (e, t, n, o, s) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
2623
+ `, _r = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3091
2624
  t,
3092
- ft(() => n)
3093
- ), yt(e, t, o || (() => {
3094
- }), t, s))), Xo = no;
2625
+ Ht(() => n)
2626
+ ), st(e, t, o || (() => {
2627
+ }), t, r))), qs = _r, Dr = (e, t, n, o, r) => pe(void 0, null, function* () {
2628
+ return (yield e.getAsync("componentResolver")).registerComponent(t, () => n), st(e, t, o || (() => {
2629
+ }), t, r);
2630
+ }), Ys = Dr, Tr = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
2631
+ `;
2632
+ class Et extends oe {
2633
+ render() {
2634
+ return I`
2635
+ <!-- className={appendClassNames(className, 'humany-button')}
2636
+ {...convertToStringAttributes(other)} -->
2637
+ <button type="button" part="container" class="humany-button">
2638
+ <slot />
2639
+ </button>
2640
+ `;
2641
+ }
2642
+ }
2643
+ Et.styles = Se(Tr);
2644
+ customElements.get("ui-button") || customElements.define("ui-button", Et);
2645
+ var Mr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Lr = (e, t, n, o) => {
2646
+ for (var r = o > 1 ? void 0 : o ? zr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2647
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2648
+ return o && r && Mr(t, n, r), r;
2649
+ };
2650
+ class He extends oe {
2651
+ constructor() {
2652
+ super(), this.html = "";
2653
+ }
2654
+ render() {
2655
+ return at` <div part="container" class="humany-html">${ct(this.html)}</div> `;
2656
+ }
2657
+ createRenderRoot() {
2658
+ return this;
2659
+ }
2660
+ }
2661
+ He.styles = [
2662
+ J`
2663
+ img {
2664
+ display: none;
2665
+ }
2666
+ `
2667
+ ];
2668
+ Lr([
2669
+ N({ type: String })
2670
+ ], He.prototype, "html", 2);
2671
+ customElements.get("ui-html") || customElements.define("ui-html", He);
2672
+ var Pr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, se = (e, t, n, o) => {
2673
+ for (var r = o > 1 ? void 0 : o ? Or(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2674
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2675
+ return o && r && Pr(t, n, r), r;
2676
+ };
2677
+ class Q extends oe {
2678
+ constructor() {
2679
+ super(), this.symbol = {
2680
+ content: "",
2681
+ type: ""
2682
+ }, this.elementStyle = {}, this.size = 12, this.text = "", this.backgroundSize = "contain", this.styles = { minWidth: `${this.size}px` };
2683
+ }
2684
+ render() {
2685
+ const { type: t, content: n } = this.symbol, o = {
2686
+ "aria-label": this.text,
2687
+ role: "presentation",
2688
+ part: "container"
2689
+ };
2690
+ switch (t) {
2691
+ case "Uri": {
2692
+ const r = {
2693
+ backgroundSize: this.backgroundSize,
2694
+ backgroundImage: `url('${n}')`,
2695
+ backgroundRepeat: "no-repeat",
2696
+ backgroundPosition: "center",
2697
+ backgroundAttachment: "center"
2698
+ }, s = b(b({}, r), this.elementStyle);
2699
+ return I`
2700
+ <i
2701
+ class="humany-icon humany-custom-icon"
2702
+ title=${this.text}
2703
+ style=${A(s)}
2704
+ ${R(o)}
2705
+ />
2706
+ `;
2707
+ }
2708
+ case "Svg": {
2709
+ const r = {
2710
+ class: "humany-icon",
2711
+ width: `${this.size}`,
2712
+ fill: "none",
2713
+ xmlns: "http://www.w3.org/2000/svg"
2714
+ };
2715
+ switch (n) {
2716
+ case "search":
2717
+ return I`
2718
+ <svg
2719
+ viewBox="0 0 32 30"
2720
+ style=${A(this.styles)}
2721
+ ${R(o)}
2722
+ ${R(r)}
2723
+ >
2724
+ <circle
2725
+ cx="14.8457"
2726
+ cy="14.5175"
2727
+ r="8.14359"
2728
+ stroke="currentColor"
2729
+ transform="rotate(45 14.8457 14.5175)"
2730
+ />
2731
+ <line
2732
+ x1="21.1001"
2733
+ y1="20.4865"
2734
+ x2="26.5798"
2735
+ y2="25.9661"
2736
+ stroke="currentColor"
2737
+ />
2738
+ </svg>
2739
+ `;
2740
+ case "clear":
2741
+ return I`
2742
+ <svg
2743
+ viewBox="0 0 27 27"
2744
+ style=${A(this.styles)}
2745
+ ${R(o)}
2746
+ ${R(r)}
2747
+ >
2748
+ <circle
2749
+ cx="13.4351"
2750
+ cy="13.435"
2751
+ r="9"
2752
+ transform="rotate(45 13.4351 13.435)"
2753
+ stroke="currentColor"
2754
+ />
2755
+ <line
2756
+ x1="16.6172"
2757
+ y1="10.2531"
2758
+ x2="10.2533"
2759
+ y2="16.6171"
2760
+ stroke="currentColor"
2761
+ />
2762
+ <line
2763
+ x1="16.6171"
2764
+ y1="16.617"
2765
+ x2="10.2532"
2766
+ y2="10.2531"
2767
+ stroke="currentColor"
2768
+ />
2769
+ </svg>
2770
+ `;
2771
+ case "close":
2772
+ return I`
2773
+ <svg
2774
+ viewBox="0 0 13 13"
2775
+ style=${A(this.styles)}
2776
+ ${R(o)}
2777
+ ${R(r)}
2778
+ >
2779
+ <path d="M12.3068 0.50647L1.27246 11.7273" stroke="currentColor" />
2780
+ <path d="M12.2812 11.9473L1.24686 0.726451" stroke="currentColor" />
2781
+ </svg>
2782
+ `;
2783
+ case "caret-right":
2784
+ return I`
2785
+ <svg
2786
+ viewBox="0 0 14 14"
2787
+ style=${A(this.styles)}
2788
+ ${R(o)}
2789
+ ${R(r)}
2790
+ >
2791
+ <line
2792
+ x1="4.13"
2793
+ y1="1.05"
2794
+ x2="10.13"
2795
+ y2="7.05"
2796
+ stroke="currentColor"
2797
+ />
2798
+ <line
2799
+ x1="10.13"
2800
+ y1="6.95"
2801
+ x2="4.13"
2802
+ y2="12.95"
2803
+ stroke="currentColor"
2804
+ />
2805
+ </svg>
2806
+ `;
2807
+ case "caret-left":
2808
+ return I`
2809
+ <svg
2810
+ viewBox="0 0 14 14"
2811
+ style=${A(this.styles)}
2812
+ ${R(o)}
2813
+ ${R(r)}
2814
+ >
2815
+ <line
2816
+ x1="10.13"
2817
+ y1="12.95"
2818
+ x2="4.13"
2819
+ y2="6.95"
2820
+ stroke="currentColor"
2821
+ />
2822
+ <line
2823
+ x1="4.13"
2824
+ y1="7.05"
2825
+ x2="10.13"
2826
+ y2="1.05"
2827
+ stroke="currentColor"
2828
+ />
2829
+ </svg>
2830
+ `;
2831
+ case "caret-up":
2832
+ return this.styles.transform = "rotate(180deg)", I`
2833
+ <svg
2834
+ viewBox="0 0 14 14"
2835
+ style=${A(this.styles)}
2836
+ ${R(o)}
2837
+ ${R(r)}
2838
+ >
2839
+ <line
2840
+ x1="13.09"
2841
+ y1="3.99"
2842
+ x2="7.1"
2843
+ y2="9.99"
2844
+ stroke="currentColor"
2845
+ />
2846
+ <line
2847
+ x1="7.19"
2848
+ y1="9.99"
2849
+ x2="1.19"
2850
+ y2="3.99"
2851
+ stroke="currentColor"
2852
+ />
2853
+ </svg>
2854
+ `;
2855
+ case "caret-down":
2856
+ return I`
2857
+ <svg
2858
+ viewBox="0 0 14 14"
2859
+ style=${A(this.styles)}
2860
+ ${R(o)}
2861
+ ${R(r)}
2862
+ >
2863
+ <line
2864
+ x1="13.09"
2865
+ y1="3.99"
2866
+ x2="7.1"
2867
+ y2="9.99"
2868
+ stroke="currentcolor"
2869
+ />
2870
+ <line
2871
+ x1="7.19"
2872
+ y1="9.99"
2873
+ x2="1.19"
2874
+ y2="3.99"
2875
+ stroke="currentcolor"
2876
+ />
2877
+ </svg>
2878
+ `;
2879
+ case "send":
2880
+ return I`
2881
+ <svg
2882
+ viewBox="0 0 20 17"
2883
+ style=${A(this.styles)}
2884
+ ${R(o)}
2885
+ ${R(r)}
2886
+ >
2887
+ <path
2888
+ d="M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z"
2889
+ fill="currentColor"
2890
+ stroke="currentColor"
2891
+ strokeWidth="0.1"
2892
+ />
2893
+ </svg>
2894
+ `;
2895
+ }
2896
+ }
2897
+ case "FontAwesome":
2898
+ return I`<ui-icon .faIcon=${this.symbol.content} title=${this.text} />`;
2899
+ }
2900
+ return At;
2901
+ }
2902
+ }
2903
+ Q.styles = [
2904
+ J`
2905
+ :host {
2906
+ color: var(--icon-color, inherit);
2907
+ }
2908
+ i,
2909
+ svg {
2910
+ color: var(--icon-color, inherit);
2911
+ }
2912
+ `
2913
+ ];
2914
+ se([
2915
+ N({ type: Object })
2916
+ ], Q.prototype, "symbol", 2);
2917
+ se([
2918
+ N({ type: Object })
2919
+ ], Q.prototype, "elementStyle", 2);
2920
+ se([
2921
+ N({ type: Number })
2922
+ ], Q.prototype, "size", 2);
2923
+ se([
2924
+ N({ type: String })
2925
+ ], Q.prototype, "text", 2);
2926
+ se([
2927
+ N({ type: String })
2928
+ ], Q.prototype, "backgroundSize", 2);
2929
+ se([
2930
+ X()
2931
+ ], Q.prototype, "styles", 2);
2932
+ customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
2933
+ var Rr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, Ct = (e, t, n, o) => {
2934
+ for (var r = o > 1 ? void 0 : o ? Nr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2935
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2936
+ return o && r && Rr(t, n, r), r;
2937
+ };
2938
+ const nt = (e) => `0${e}`.slice(-2);
2939
+ function Ir(e, t) {
2940
+ const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${nt(i)}-${nt(c)}`;
2941
+ return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
2942
+ }
2943
+ class xe extends oe {
2944
+ constructor() {
2945
+ super(), this.format = "hh:mm";
2946
+ }
2947
+ render() {
2948
+ return I`<span class="timestamp">${Ir(this.timestamp, this.format)}</span>`;
2949
+ }
2950
+ createRenderRoot() {
2951
+ return this;
2952
+ }
2953
+ }
2954
+ xe.styles = [
2955
+ J`
2956
+ :host {
2957
+ display: block;
2958
+ }
2959
+ `
2960
+ ];
2961
+ Ct([
2962
+ N({ type: String })
2963
+ ], xe.prototype, "timestamp", 2);
2964
+ Ct([
2965
+ N({ type: String })
2966
+ ], xe.prototype, "format", 2);
2967
+ customElements.get("ui-timestamp") || customElements.define("ui-timestamp", xe);
2968
+ var Br = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, Hr = (e, t, n, o) => {
2969
+ for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2970
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2971
+ return o && r && Br(t, n, r), r;
2972
+ };
2973
+ const jr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
2974
+ class je extends oe {
2975
+ constructor() {
2976
+ super(), this.variant = "span";
2977
+ }
2978
+ _getTag(t) {
2979
+ const n = window.getComputedStyle(this).getPropertyValue(`--typography-${t}`);
2980
+ return n ? n.trim() : t;
2981
+ }
2982
+ render() {
2983
+ const t = jr(this.variant) ? this._getTag(this.variant) : this.variant, n = ct(t);
2984
+ return at`
2985
+ <${n}>
2986
+ <slot />
2987
+ </${n}>
2988
+ `;
2989
+ }
2990
+ }
2991
+ je.styles = [
2992
+ J`
2993
+ h1,
2994
+ h2,
2995
+ h3,
2996
+ h4,
2997
+ h5,
2998
+ h6,
2999
+ p,
3000
+ span {
3001
+ margin: var(--typography-margin, 0);
3002
+ font-size: var(--typography-font-size, var(--fonts-normal));
3003
+ font-weight: var(--typography-font-weight, normal);
3004
+ line-height: var(--typography-line-height, inherit);
3005
+ color: var(--typography-color, var(--colors-text));
3006
+ }
3007
+ `
3008
+ ];
3009
+ Hr([
3010
+ N({ type: String })
3011
+ ], je.prototype, "variant", 2);
3012
+ customElements.get("ui-typography") || customElements.define("ui-typography", je);
3013
+ class Us {
3014
+ constructor(t) {
3015
+ (this.host = t).addController(this);
3016
+ }
3017
+ propertyChangeHandler(t) {
3018
+ const n = t.detail;
3019
+ Object.keys(n).filter((o) => `_${o}` in this).forEach((o) => this[`_${o}`] = n[o]);
3020
+ }
3021
+ hostConnected() {
3022
+ this.host.addEventListener("set-properties", this.propertyChangeHandler);
3023
+ }
3024
+ hostDisconnected() {
3025
+ this.host.removeEventListener("set-properties", this.propertyChangeHandler);
3026
+ }
3027
+ }
3028
+ class Xs {
3029
+ constructor(t) {
3030
+ this.nodeId = "", this._host = t;
3031
+ }
3032
+ initialize() {
3033
+ return pe(this, null, function* () {
3034
+ if (this.nodeId = this._host.getAttribute("nodeId"), !this.nodeId) {
3035
+ console.warn("Could not get node id in DataProvider.");
3036
+ return;
3037
+ }
3038
+ if (this.container = this._requestInstance("container"), !this.container) {
3039
+ console.warn("Could not get data in DataProvider. Container was not defined.");
3040
+ return;
3041
+ }
3042
+ const t = yield ze.getInstance(this.container);
3043
+ if (this.node = t.nodes.get(this.nodeId), !this.node) {
3044
+ console.warn(`Could not get component node with ID: ${this.nodeId}.`);
3045
+ return;
3046
+ }
3047
+ });
3048
+ }
3049
+ _requestInstance(t) {
3050
+ const n = new CustomEvent("request-instance", {
3051
+ detail: { key: t },
3052
+ bubbles: !0,
3053
+ composed: !0,
3054
+ cancelable: !0
3055
+ });
3056
+ return this._host.dispatchEvent(n), n.detail.instance;
3057
+ }
3058
+ }
3059
+ const Te = "context.connectEvent", Zs = ut(
3060
+ (e) => {
3061
+ class t extends e {
3062
+ constructor() {
3063
+ super(...arguments), this._injectedContexts = /* @__PURE__ */ new Map();
3064
+ }
3065
+ connectedCallback() {
3066
+ super.connectedCallback(), this._injectedContexts = /* @__PURE__ */ new Map();
3067
+ for (const o of this.constructor.inject)
3068
+ this._injectContext(o);
3069
+ }
3070
+ _injectContext(o) {
3071
+ const r = (i, c) => {
3072
+ this._contextValueChanged(o, i, c);
3073
+ }, s = new CustomEvent(Te, {
3074
+ bubbles: !0,
3075
+ cancelable: !0,
3076
+ composed: !0,
3077
+ detail: { key: o, connected: !1, callback: r }
3078
+ });
3079
+ this.dispatchEvent(s), s.detail.connected && this._injectedContexts.set(o, {
3080
+ unsubscribe: s.detail.unsubscribe
3081
+ });
3082
+ }
3083
+ _contextValueChanged(o, r, s) {
3084
+ r !== s && (this[o] = r);
3085
+ }
3086
+ disconnectedCallback() {
3087
+ for (const o of this._injectedContexts.values())
3088
+ o.unsubscribe();
3089
+ super.disconnectedCallback();
3090
+ }
3091
+ }
3092
+ return t;
3093
+ }
3094
+ ), Vr = ut(
3095
+ (e) => {
3096
+ class t extends e {
3097
+ constructor() {
3098
+ super(...arguments), this._providedContexts = /* @__PURE__ */ new Map();
3099
+ }
3100
+ connectedCallback() {
3101
+ super.connectedCallback(), this._providedContexts = /* @__PURE__ */ new Map();
3102
+ for (const o of this.constructor.provide)
3103
+ this._provideContext(o);
3104
+ }
3105
+ _provideContext(o) {
3106
+ const r = (s) => {
3107
+ const { detail: i } = s;
3108
+ if (i.key === o) {
3109
+ s.stopPropagation();
3110
+ const c = this._providedContexts.get(o);
3111
+ c.callbacks.add(i.callback), i.connected = !0, i.unsubscribe = () => {
3112
+ c.callbacks.delete(i.callback);
3113
+ }, i.callback(this[o]);
3114
+ }
3115
+ };
3116
+ this.addEventListener(Te, r), this._providedContexts.set(o, {
3117
+ listener: r,
3118
+ callbacks: /* @__PURE__ */ new Set()
3119
+ });
3120
+ }
3121
+ _updateContextValue(o, r, s) {
3122
+ if (this._providedContexts.has(o)) {
3123
+ const i = this._providedContexts.get(o);
3124
+ for (const c of i.callbacks)
3125
+ c(r, s);
3126
+ }
3127
+ }
3128
+ shouldUpdate(o) {
3129
+ const r = super.shouldUpdate(o);
3130
+ for (const [s, i] of o.entries())
3131
+ this.constructor.provide.includes(s) && this._updateContextValue(s, this[s], i);
3132
+ return r;
3133
+ }
3134
+ disconnectedCallback() {
3135
+ for (const o of this._providedContexts.values())
3136
+ this.removeEventListener(Te, o.listener);
3137
+ super.disconnectedCallback();
3138
+ }
3139
+ }
3140
+ return t;
3141
+ }
3142
+ );
3143
+ var Fr = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, ot = (e, t, n, o) => {
3144
+ for (var r = o > 1 ? void 0 : o ? Ar(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3145
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
3146
+ return o && r && Fr(t, n, r), r;
3147
+ };
3148
+ const Qs = (e) => {
3149
+ class t extends e {
3150
+ constructor(...o) {
3151
+ super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => pe(this, null, function* () {
3152
+ this.hasPendingChildren = !0, this.pendingCount++, yield r.detail.promise, this.pendingCount--, this.hasPendingChildren = this.pendingCount !== 0;
3153
+ }));
3154
+ }
3155
+ }
3156
+ return ot([
3157
+ X()
3158
+ ], t.prototype, "hasPendingChildren", 2), ot([
3159
+ X()
3160
+ ], t.prototype, "pendingCount", 2), t;
3161
+ }, Gs = (e) => {
3162
+ class t extends e {
3163
+ constructor(...o) {
3164
+ super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
3165
+ const s = r.detail.key;
3166
+ this._instances.has(s) && (r.detail.instance = this._instances.get(s), r.stopPropagation());
3167
+ });
3168
+ }
3169
+ provideInstance(o, r) {
3170
+ this._instances.set(o, r);
3171
+ }
3172
+ }
3173
+ return t;
3174
+ }, Kr = (e) => {
3175
+ class t extends e {
3176
+ requestInstance(o) {
3177
+ const r = new CustomEvent("request-instance", {
3178
+ detail: { key: o },
3179
+ bubbles: !0,
3180
+ composed: !0,
3181
+ cancelable: !0
3182
+ });
3183
+ return this.dispatchEvent(r), r.detail.instance;
3184
+ }
3185
+ }
3186
+ return t;
3187
+ }, qr = (e) => {
3188
+ var n, o, r, s, i, c, l, a, u, h, p, m, g, x, v, $, f, L, O, T, V;
3189
+ const t = {};
3190
+ 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}`), (s = e.fonts) != null && s.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (i = e.fonts) != null && i.large && (t["--fonts-large"] = `${e.fonts.large}`), (c = e.fonts) != null && c.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (l = e.colors) != null && l.accent && (t["--colors-accent"] = `${e.colors.accent}`), (a = e.colors) != null && a.link && (t["--colors-link"] = `${e.colors.link}`), (u = e.colors) != null && u.primary && (t["--colors-primary"] = `${e.colors.primary}`), (h = e.colors) != null && h.text && (t["--colors-text"] = `${e.colors.text}`), (p = e.colors) != null && p.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (m = e.colors) != null && m.warning && (t["--colors-warning"] = `${e.colors.warning}`), (g = e.accessibility) != null && g.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (v = (x = e.accessibility) == null ? void 0 : x.colors) != null && v.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (f = ($ = e.accessibility) == null ? void 0 : $.colors) != null && f.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}`), (L = e.sizes) != null && L.small && (t["--size-small"] = `${e.sizes.small}`), (O = e.sizes) != null && O.normal && (t["--size-normal"] = `${e.sizes.normal}`), (T = e.sizes) != null && T.medium && (t["--size-medium"] = `${e.sizes.medium}`), (V = e.sizes) != null && V.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;
3191
+ };
3192
+ var Yr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, j = (e, t, n, o) => {
3193
+ for (var r = o > 1 ? void 0 : o ? Ur(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3194
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
3195
+ return o && r && Yr(t, n, r), r;
3196
+ };
3197
+ const Xr = (e) => `w-${e}`, Zr = (e) => Object.entries(e).reduce((t, [n, o]) => {
3198
+ if (n.indexOf("css-") > -1) {
3199
+ const r = n.replace("css-", "");
3200
+ t[r] = o;
3201
+ }
3202
+ return t;
3203
+ }, {}), Js = (e) => {
3204
+ class t extends Vr(Kr(e)) {
3205
+ constructor() {
3206
+ super(), this.listeners = [], this.setColumns = (o) => {
3207
+ this.columns = o;
3208
+ }, this.branch = "default", this.width = "full", this._columns = 1, this.columns = 1, this._width = 1, this._descriptor = null, this._properties = {}, this._layout = {};
3209
+ }
3210
+ static get provide() {
3211
+ return ["columns", "setColumns"];
3212
+ }
3213
+ setProperties(o) {
3214
+ o.columns && (this.columns = o.columns), this.dispatchEvent(
3215
+ new CustomEvent("set-properties", {
3216
+ bubbles: !1,
3217
+ composed: !1,
3218
+ cancelable: !1,
3219
+ detail: o
3220
+ })
3221
+ );
3222
+ }
3223
+ requestNodeDescriptor(o) {
3224
+ o.stopPropagation(), o.detail.descriptor = this._descriptor;
3225
+ }
3226
+ connectedCallback() {
3227
+ super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
3228
+ ze.getInstance(this.container),
3229
+ this.container.getAsync("componentResolver")
3230
+ ]).then((o) => {
3231
+ const r = o[0], s = o[1], i = r.nodes.get(this.nodeId || "");
3232
+ if (i) {
3233
+ this._descriptor = rt(i, this.branch), this._properties = i.attributes.properties, this._context = i.attributes.context, this._layout = i.attributes.layout, this.setProperties(i.attributes.properties), this.listeners.push(
3234
+ r.events.subscribe(
3235
+ "components:properties-changed",
3236
+ (u, h) => {
3237
+ var p;
3238
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._properties = h.node.attributes.properties, this.setProperties(i.attributes.properties));
3239
+ }
3240
+ )
3241
+ ), this.listeners.push(
3242
+ r.events.subscribe(
3243
+ "components:context-changed",
3244
+ (u, h) => {
3245
+ var p;
3246
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._context = h.node.attributes.context);
3247
+ }
3248
+ )
3249
+ ), this.listeners.push(
3250
+ r.events.subscribe(
3251
+ "components:layout-changed",
3252
+ (u, h) => {
3253
+ var p;
3254
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._layout = h.node.attributes.layout);
3255
+ }
3256
+ )
3257
+ );
3258
+ const c = i.mount(this.container);
3259
+ if (this.listeners.push(c), !s) {
3260
+ console.warn(
3261
+ "Could not find resolver. Make sure it is registered on the container."
3262
+ );
3263
+ return;
3264
+ }
3265
+ const l = Xr(this._descriptor.type);
3266
+ if (customElements.get(l))
3267
+ return;
3268
+ const a = s.getComponent(this._descriptor.type);
3269
+ if (!a) {
3270
+ console.warn("Component is missing or using incorrect import.");
3271
+ return;
3272
+ }
3273
+ return a().then((u) => {
3274
+ customElements.get(l) || customElements.define(l, u.default);
3275
+ });
3276
+ }
3277
+ });
3278
+ }
3279
+ disconnectedCallback() {
3280
+ this.listeners.forEach((o) => {
3281
+ o();
3282
+ }), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
3283
+ }
3284
+ _getContextStyles() {
3285
+ return this._context ? qr(this._context) : {};
3286
+ }
3287
+ render() {
3288
+ const o = super.render(), r = this._getContextStyles(), s = Zr(this._properties), i = I`
3289
+ <style>
3290
+ :host {
3291
+ ${Object.entries(r).map(([c, l]) => J`
3292
+ ${Se(`${c}: ${l};`)}
3293
+ `)}
3294
+ }
3295
+
3296
+ :host > * {
3297
+ ${Object.entries(s).map(([c, l]) => J`
3298
+ ${Se(`${c}: ${l} !important;`)}
3299
+ `)}
3300
+ }
3301
+ </style>
3302
+ `;
3303
+ return I`
3304
+ <style>
3305
+ :host {
3306
+ --size: ${this._layout.size || "full"};
3307
+ --width: ${(this._layout.size || "full") === "full" ? "var(--columns)" : `min(var(--columns), ${this._layout.size})`};
3308
+ grid-column: span var(--width);
3309
+ }
3310
+ </style>
3311
+
3312
+ ${i} ${o}
3313
+ `;
3314
+ }
3315
+ }
3316
+ return j([
3317
+ N({ type: String })
3318
+ ], t.prototype, "nodeId", 2), j([
3319
+ N({ type: String })
3320
+ ], t.prototype, "branch", 2), j([
3321
+ N({ type: String })
3322
+ ], t.prototype, "width", 2), j([
3323
+ N({ type: Number })
3324
+ ], t.prototype, "_columns", 2), j([
3325
+ N({ type: Number })
3326
+ ], t.prototype, "columns", 2), j([
3327
+ X()
3328
+ ], t.prototype, "_width", 2), j([
3329
+ X()
3330
+ ], t.prototype, "_descriptor", 2), j([
3331
+ X()
3332
+ ], t.prototype, "_properties", 2), j([
3333
+ X()
3334
+ ], t.prototype, "_context", 2), j([
3335
+ X()
3336
+ ], t.prototype, "_layout", 2), t;
3337
+ };
3095
3338
  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,
3172
- 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
3339
+ un as AnchorLink,
3340
+ be as Button,
3341
+ Et as ButtonUi,
3342
+ gs as Checkbox,
3343
+ pn as ColumnContext,
3344
+ mt as ComponentNodeContext,
3345
+ fn as ComponentPropertyContext,
3346
+ Ws as Confirm,
3347
+ Zs as ConsumerMixin,
3348
+ hn as ContainerContext,
3349
+ yn as ConversationContext,
3350
+ Xs as DataProvider,
3351
+ br as DateFormats,
3352
+ Os as Drawer,
3353
+ to as DrawerAnimationType,
3354
+ Rs as Dropdown,
3355
+ fo as Empty,
3356
+ Ns as Grid,
3357
+ vt as Html,
3358
+ He as HtmlUi,
3359
+ ue as Icon,
3360
+ Is as Input,
3361
+ xo as ItemList,
3362
+ Bs as ItemTree,
3363
+ or as Lightbox,
3364
+ Be as Link,
3365
+ $o as List,
3366
+ sr as Modal,
3367
+ Us as NodeConnector,
3368
+ Hs as NotFound,
3369
+ $t as Overlay,
3370
+ wo as Paragraph,
3371
+ Qs as PendingState,
3372
+ ce as Portal,
3373
+ Gs as ProviderMixin,
3374
+ Kr as Requester,
3375
+ Co as RouteLink,
3376
+ gn as RoutingContext,
3377
+ et as StyledText,
3378
+ le as SymbolBadge,
3379
+ Q as SymbolBadgeUi,
3380
+ js as TabStop,
3381
+ Re as Text,
3382
+ yr as TextLink,
3383
+ Vs as Timestamp,
3384
+ xe as TimestampUi,
3385
+ Fs as Tooltip,
3386
+ As as TransitionComponent,
3387
+ ie as Typography,
3388
+ je as TypographyUi,
3389
+ Js as WidgetComponentMixin,
3390
+ Sr as WidgetLink,
3391
+ Ks as WidgetOverlayOutlet,
3392
+ Z as borderTabStyle,
3393
+ Je as browser,
3394
+ Yn as buttonCss,
3395
+ yt as contentBox,
3396
+ W as convertToStringAttributes,
3397
+ fs as createEmptyComponent,
3398
+ qs as createReactComponent,
3399
+ Ys as createWebComponent,
3400
+ cn as defaultRenderInstructions,
3401
+ tn as embeddedLinkMapper,
3402
+ on as filterCssProps,
3403
+ nn as filterCssPropsStyle,
3404
+ rn as genericHashLink,
3405
+ Ps as genericHtml,
3406
+ ye as headingElement,
3407
+ an as imageLightboxRenderer,
3408
+ Ms as invertedHoverButton,
3409
+ Ls as itemList,
3410
+ Un as linkTabStyle,
3411
+ Xn as list,
3412
+ zs as paddedBorderTabStyle,
3413
+ sn as processHtmlString,
3414
+ ke as transitionComposer,
3415
+ ys as useAction,
3416
+ bs as useChildren,
3417
+ vs as useColumns,
3418
+ $s as useComponent,
3419
+ Le as useComponentDescriptor,
3420
+ Pe as useComponentNode,
3421
+ re as useComponentPlatform,
3422
+ H as useContainer,
3423
+ Dn as useContext,
3424
+ ws as useConversation,
3425
+ xs as useDispatch,
3426
+ K as useEventListener,
3427
+ Ln as useEvents,
3428
+ q as useIsMounted,
3429
+ Es as useIsTabbing,
3430
+ te as useKeyPress,
3431
+ Cs as useLayout,
3432
+ ht as usePrevious,
3433
+ Ss as useProperties,
3434
+ ks as useRenderState,
3435
+ _s as useRouteData,
3436
+ pt as useRouter,
3437
+ ft as useScroll,
3438
+ Ds as useSettings,
3439
+ gt as useToggle,
3440
+ Ts as useTransitionEnd,
3441
+ Oe as useUniqueMenu,
3442
+ ve as useWidgetEvent
3187
3443
  };
3188
3444
  //# sourceMappingURL=index.js.map