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

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 oe, useContext as ee, useState as E, useEffect as w, useRef as _, useCallback as D, useImperativeHandle as ze, useMemo as ge, Component as Wt, lazy as Ht } from "react";
40
+ import { ComponentPlatform as Le, 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 ce, removeNullAndUndefinedValues as Ze, Logger as Ee } from "@telia-ace/widget-utilities";
44
+ import { LitElement as re, html as I, css as J, unsafeCSS as ke, nothing as At } from "lit";
45
+ import { property as N, customElement as Kt, 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 qt } from "react-transition-group";
50
+ import { createPortal as Yt } from "react-dom";
51
+ import { HistoryMode as Qe, getSpecificWidgetPath as Ut } from "@telia-ace/widget-routing";
52
+ import { Link as Se } from "react-router-dom";
53
+ import Ge from "htmr";
54
+ import { dedupeMixin as ut } from "@open-wc/dedupe-mixin";
55
+ const Xt = (e) => e === "entering" || e === "entered", Zt = (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
+ }, Qt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], _e = {
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 = Qt.indexOf(r[0]) > -1 ? "transform" : "opacity";
83
+ if (Xt(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 (Zt(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 _e.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 _e.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 De = /* @__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))(De || {});
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
+ }, Gt = ["string", "number"], W = (e) => Object.keys(e).reduce((t, n) => {
159
+ const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
160
+ if (Gt.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
+ }, {}), Jt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ d.createElement(go, b({}, t)) : null, gs = Jt, en = (e) => new RegExp("^#", "i").test(e), tn = (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 (en(c))
173
+ return /* @__PURE__ */ d.createElement(dn, { 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(kr, { 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
+ }, nn = tn, 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
+ }, on = (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
+ }, rn = dt, sn = (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 an(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 cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBody: e }), ln = (e, t) => ({
206
227
  transform: {
207
- a: Ht(e),
208
- img: Nt(t)
228
+ a: nn(e),
229
+ img: cn(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
+ }), un = (e) => sn(e, "a"), dn = un, be = B((r, o) => {
232
+ var s = r, { className: e, children: t } = s, n = M(s, ["className", "children"]);
233
+ return /* @__PURE__ */ d.createElement(
234
+ mn,
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
+ }), mn = 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
+ `, hn = (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
+ }, ys = hn, pn = oe(new It()), fn = oe(1), mt = oe({
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
+ }), gn = oe({}), yn = oe(null), bn = oe(null), vn = () => ee(mt), Pe = vn, $n = () => ee(pn), H = $n, wn = (e, t) => {
284
+ const n = Pe().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
+ }, bs = wn, xn = (e) => {
291
+ const t = ee(mt), n = se(), [o, r] = E();
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
+ }, Oe = xn, Cn = () => {
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 = Cn, En = (e) => {
304
+ const t = H(), [n, o] = E(null), r = q();
305
+ return w(() => {
306
+ Le.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
+ }, se = En, Sn = () => {
311
+ const e = Oe(), t = se(), [n, o] = E([]), 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
+ }, vs = Sn, kn = () => ee(fn), $s = kn, _n = (e, t) => {
337
+ const n = Pe(), o = H(), [r, s] = E(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
+ }, ws = _n, Dn = (e) => {
355
+ const t = Oe(e), n = se(), [o, r] = E({}), 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
+ }, Tn = Dn, Mn = () => ee(bn), xs = Mn, zn = () => {
372
+ const e = se(), t = Pe(), [n, o] = E([]), [r, s] = E();
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 || ce());
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
+ }, Cs = zn, 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
+ }, Ln = (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
+ }, Pn = Ln, On = () => {
405
+ const [e, t] = E(!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 = On, Rn = (e, t) => {
417
+ const [n, o] = E(!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 = Rn, Nn = (e) => {
431
+ const t = Oe(e), n = se(), [o, r] = E({}), 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
+ }, Ss = Nn, In = (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 = In, Bn = () => ee(gn), ks = Bn, Wn = (e) => {
453
+ const [t, n] = E(), 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
+ }, _s = Wn, Hn = () => ee(yn), pt = Hn, jn = (e) => {
480
+ const t = H(), n = pt(), [o, r] = E({ 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
+ }, Ds = jn, 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 ? [Vn, t] : ["", t];
525
+ }, Vn = `
526
+ overflow-y: ${Je() === De.Chrome || Je() === De.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
+ `, Fn = () => {
554
+ const [e, t] = E(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
+ }, Ts = Fn, An = (e = !1) => {
561
+ const [t, n] = E(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 = An, Ms = (e) => {
566
+ const t = H(), n = se(), o = t.get("widgetDOMElement"), [r, s] = E(null), [i, c] = E(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
+ }, Kn = (e, t, n = [], o) => {
588
+ const r = Pn(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 = Kn, qn = (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
+ }, Re = qn, Yn = (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
+ }, Ne = Yn, 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
+ `, Un = (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
+ }, zs = (e) => {
633
+ var i;
634
+ const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
635
+ return S`
636
+ ${Un(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
+ }, Xn = (e) => S`
678
+ ${Z(e)}
658
679
  text-decoration: underline;
659
- `, Do = (e) => {
680
+ `, Ls = (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
+ }, Ie = 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(Ne)`
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
+ `, Zn = (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
+ }, Ps = (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
+ ${Zn(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
+ }, Os = (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
+ ${Xn(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
+ }, Qn = ({
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] = E(() => {
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]), Yt(n, o);
850
+ }, le = Qn, Gn = () => /* @__PURE__ */ d.createElement("div", null, "Todo:"), ue = Gn, Jn = {
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
+ }, eo = ({ variant: e, component: t, className: n, children: o }) => {
860
+ const { typographyVariantMapping: r = {} } = Tn(), s = b(b({}, Jn), r), i = t || s[e] || "span";
861
+ return /* @__PURE__ */ d.createElement(to, { className: n, as: i }, o);
862
+ }, to = y.span``, ae = eo;
863
+ var no = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(no || {});
864
+ const oo = 300, ro = ({
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 = oo } = c, a = _(), u = _(), [h, p] = ft(!0), [m, g] = gt(), x = ht(m), v = _(ce());
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 = Re(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 = uo[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(le, 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
+ Ie,
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(ue, { 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(so, { 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
+ }, Rs = ro, $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
+ `, so = y(ae)`
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
+ `, io = 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
+ `, ao = 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
+ `, co = 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
+ `, lo = 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
+ `, uo = {
1059
+ ["slide-in-bottom"]: io,
1060
+ ["slide-in-right"]: ao,
1061
+ ["slide-in-left"]: co,
1062
+ ["slide-in-top"]: lo
1063
+ }, mo = (e, t, n) => {
1064
+ const [o, r] = E(0), [s, i] = E(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 = mo, ho = 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
+ ze(s, () => u.current, [u.current]);
1087
+ const h = _(ce()), [p, m] = E(!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 = Re(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(le, null, /* @__PURE__ */ d.createElement(
1111
+ po,
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
+ Ie,
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(ue, { 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
+ ), Ns = ho, po = 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,113 @@ 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
+ `, fo = (t) => {
1157
+ var e = M(t, []);
1158
+ return /* @__PURE__ */ d.createElement(yo, b({}, e));
1159
+ }, go = fo, yo = 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
+ `, Is = 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
+ bo,
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
+ }, rn(r)), W(r)), {
1171
+ ref: s
1654
1172
  }),
1655
1173
  e
1656
1174
  );
1657
1175
  }
1658
- ), jn = y.div`
1176
+ ), bo = 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
+ ${on}
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] = E();
1187
+ return w(() => {
1188
+ const u = ln(c, n), h = k(b(b({}, u), e), {
1189
+ transform: b(b({}, u.transform), e == null ? void 0 : e.transform)
1190
+ }), p = an(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 vo = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, xe = (e, t, n, o) => {
1204
+ for (var r = o > 1 ? void 0 : o ? $o(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 && vo(t, n, r), r;
1207
+ };
1208
+ let ne = class extends re {
1209
+ constructor() {
1210
+ super(), this.role = "presentation";
1211
+ }
1212
+ render() {
1213
+ const e = `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=${e} title=${this.title} role=${this.role} />
1220
+ `;
1221
+ }
1222
+ };
1223
+ ne.styles = [
1224
+ J`
1225
+ :host {
1226
+ display: block;
1227
+ }
1228
+ `
1229
+ ];
1230
+ xe([
1231
+ N({ type: String })
1232
+ ], ne.prototype, "faIcon", 2);
1233
+ xe([
1234
+ N({ type: String })
1235
+ ], ne.prototype, "title", 2);
1236
+ xe([
1237
+ N({ type: String })
1238
+ ], ne.prototype, "role", 2);
1239
+ ne = xe([
1240
+ Kt("ui-icon")
1241
+ ], ne);
1242
+ const Bs = B(
1243
+ (h, u) => {
1244
+ var p = h, {
1707
1245
  className: e = "",
1708
1246
  autoFocus: t = !1,
1709
1247
  onFocusChange: n = () => {
1710
1248
  },
1711
1249
  onEnter: o = () => {
1712
1250
  },
1713
- onEscape: s = () => {
1251
+ onEscape: r = () => {
1714
1252
  },
1715
- selectAllOnFocus: i,
1716
- onChange: a = () => {
1253
+ selectAllOnFocus: s,
1254
+ onChange: i = () => {
1717
1255
  },
1718
- disabled: l = !1,
1719
- type: u
1720
- } = d, c = S(d, [
1256
+ disabled: c = !1,
1257
+ type: l
1258
+ } = p, a = M(p, [
1721
1259
  "className",
1722
1260
  "autoFocus",
1723
1261
  "onFocusChange",
@@ -1728,84 +1266,84 @@ const Dn = 300, Bn = ({
1728
1266
  "disabled",
1729
1267
  "type"
1730
1268
  ]);
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,
1269
+ const [m, g] = E(t), x = _();
1270
+ ze(u, () => x.current), w(() => {
1271
+ var f;
1272
+ t && ((f = x == null ? void 0 : x.current) == null || f.focus());
1273
+ }, [t, u, x]);
1274
+ const v = (f, L) => {
1275
+ g(f), n && n(f), s && f && L.target.select();
1276
+ }, $ = k(b({}, W(a)), {
1277
+ disabled: c,
1740
1278
  autoFocus: t,
1741
- type: u,
1742
- onKeyDown: (g) => {
1743
- g.key === "Enter" && f && o(g), g.key === "Escape" && f && s(g);
1279
+ type: l,
1280
+ onKeyDown: (f) => {
1281
+ f.key === "Enter" && m && o(f), f.key === "Escape" && m && r(f);
1744
1282
  },
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
1283
+ onFocus: (f) => v(!0, f),
1284
+ onBlur: (f) => v(!1, f),
1285
+ onChange: (f) => i(f.target.value || ""),
1286
+ className: z(e, "humany-input"),
1287
+ "data-type": l
1750
1288
  });
1751
- return u !== "textarea" ? /* @__PURE__ */ r.createElement(
1289
+ return l !== "textarea" ? /* @__PURE__ */ d.createElement(
1752
1290
  "input",
1753
- k(h({}, E), {
1291
+ k(b({}, $), {
1754
1292
  ref: x
1755
1293
  })
1756
- ) : /* @__PURE__ */ r.createElement(
1294
+ ) : /* @__PURE__ */ d.createElement(
1757
1295
  "textarea",
1758
- k(h({}, E), {
1296
+ k(b({}, $), {
1759
1297
  ref: x
1760
1298
  })
1761
1299
  );
1762
1300
  }
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(
1301
+ ), wo = B(
1302
+ (i, s) => {
1303
+ var c = i, { className: e, items: t, renderItem: n, renderLi: o = !1 } = c, r = M(c, ["className", "items", "renderItem", "renderLi"]);
1304
+ return /* @__PURE__ */ d.createElement(
1767
1305
  "ul",
1768
- k(h({
1769
- className: M(e, "humany-list"),
1306
+ k(b({
1307
+ className: z(e, "humany-list"),
1770
1308
  "data-item-count": t.length
1771
- }, V(s)), {
1772
- ref: i
1309
+ }, W(r)), {
1310
+ ref: s
1773
1311
  }),
1774
1312
  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)
1313
+ (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
1314
  )
1777
1315
  );
1778
1316
  }
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(
1317
+ ), xo = B(
1318
+ (l, c) => {
1319
+ 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"]);
1320
+ return /* @__PURE__ */ d.createElement(
1783
1321
  "div",
1784
- k(h({
1785
- className: M(o, "humany-paragraph")
1786
- }, V(a)), {
1787
- ref: l
1322
+ k(b({
1323
+ className: z(o, "humany-paragraph")
1324
+ }, W(i)), {
1325
+ ref: c
1788
1326
  }),
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
1327
+ n ? /* @__PURE__ */ d.createElement(ae, { variant: "h1" }, s ? /* @__PURE__ */ d.createElement(ue, { symbol: s }) : null, n) : null,
1328
+ t ? /* @__PURE__ */ d.createElement(vt, { html: t, htmlParseInstruction: r }) : null,
1329
+ e ? /* @__PURE__ */ d.createElement(Ne, null, e) : null
1792
1330
  );
1793
1331
  }
1794
- ), Qn = N(
1795
- (f, d) => {
1796
- var C = f, {
1332
+ ), Co = B(
1333
+ (m, p) => {
1334
+ var g = m, {
1797
1335
  header: e,
1798
1336
  customHeader: t,
1799
1337
  text: n,
1800
1338
  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, [
1339
+ className: r,
1340
+ children: s,
1341
+ symbol: i,
1342
+ items: c,
1343
+ renderItem: l,
1344
+ renderLi: a,
1345
+ ulProps: u
1346
+ } = g, h = M(g, [
1809
1347
  "header",
1810
1348
  "customHeader",
1811
1349
  "text",
@@ -1818,120 +1356,120 @@ const Dn = 300, Bn = ({
1818
1356
  "renderLi",
1819
1357
  "ulProps"
1820
1358
  ]);
1821
- return /* @__PURE__ */ r.createElement(
1359
+ return /* @__PURE__ */ d.createElement(
1822
1360
  "div",
1823
- k(h({
1824
- className: M(s, "humany-item-list"),
1825
- "data-item-count": l.length
1826
- }, V(p)), {
1827
- ref: d
1361
+ k(b({
1362
+ className: z(r, "humany-item-list"),
1363
+ "data-item-count": c.length
1364
+ }, W(h)), {
1365
+ ref: p
1828
1366
  }),
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
1367
+ t || (e || n || o ? /* @__PURE__ */ d.createElement(xo, { symbol: i, header: e, text: n, html: o }) : null),
1368
+ c.length ? /* @__PURE__ */ d.createElement(wo, b({ items: c, renderItem: l, renderLi: a }, u)) : null,
1369
+ s
1832
1370
  );
1833
1371
  }
1834
- ), Gn = ({
1372
+ ), Eo = ({
1835
1373
  className: e = "",
1836
1374
  tree: t,
1837
1375
  renderItem: n,
1838
1376
  rootItem: o,
1839
- renderUnselected: s = !0,
1840
- renderEmpty: i = !0,
1841
- ulProps: a,
1842
- liProps: l
1377
+ renderUnselected: r = !0,
1378
+ renderEmpty: s = !0,
1379
+ ulProps: i,
1380
+ liProps: c
1843
1381
  }) => {
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,
1382
+ const l = (h) => !a(h), a = (h) => !h || h.length < 1 ? !0 : !h.some((p) => !!p.selected), u = (h, p) => /* @__PURE__ */ d.createElement(
1383
+ Co,
1846
1384
  {
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(
1385
+ className: z(`humany-item-tree-level-${p}`),
1386
+ items: h,
1387
+ ulProps: i,
1388
+ renderItem: (m) => {
1389
+ const { id: g, selected: x, items: v, matches: $ } = m, f = x && a(v);
1390
+ return !s && !$ ? null : /* @__PURE__ */ d.createElement(
1853
1391
  "li",
1854
- k(h({}, V(l)), {
1855
- key: C,
1392
+ k(b({}, W(c)), {
1393
+ key: g,
1856
1394
  className: "humany-item-tree-item"
1857
1395
  }),
1858
- n && n(f, d, g),
1859
- b && (s || g) && m(b, d + 1)
1396
+ n && n(m, p, f),
1397
+ v && (r || f) && u(v, p + 1)
1860
1398
  );
1861
1399
  }
1862
1400
  }
1863
1401
  );
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)
1402
+ return /* @__PURE__ */ d.createElement("div", { className: z(e, "humany-item-tree") }, o && o(!l(t || [])), t && u(t, 1));
1403
+ }, Ws = Eo, So = B(
1404
+ (l, c) => {
1405
+ var a = l, { className: e, onClick: t = () => {
1406
+ }, name: n = "", to: o = "", params: r = {}, children: s } = a, i = M(a, ["className", "onClick", "name", "to", "params", "children"]);
1407
+ const u = pt(), h = H();
1408
+ if (!u)
1871
1409
  return null;
1872
- let d = "";
1873
- const f = k(h({
1410
+ let p = "";
1411
+ const m = k(b({
1874
1412
  onClick: t,
1875
- className: M(e, "humany-route-link"),
1876
- to: d,
1877
- innerRef: l
1878
- }, a), {
1413
+ className: z(e, "humany-route-link"),
1414
+ to: p,
1415
+ innerRef: c
1416
+ }, i), {
1879
1417
  ref: null
1880
1418
  });
1881
1419
  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.`);
1420
+ if (!(u.routes || []).find(($) => $.name === n))
1421
+ return process.env.NODE_ENV !== "production" && Ee.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ d.createElement(
1422
+ Se,
1423
+ k(b({}, m), {
1424
+ onClick: ($) => {
1425
+ t($), $.preventDefault(), process.env.NODE_ENV !== "production" && Ee.warn(`Unable to navigate. No route named "${n}" exist.`);
1888
1426
  }
1889
1427
  }),
1890
- i
1428
+ s
1891
1429
  );
1892
- const b = Object.keys(s).reduce((E, g) => (E[g] = typeof s[g] == "string" ? encodeURIComponent(s[g]) : s[g], E), {});
1430
+ const v = Object.keys(r).reduce(($, f) => ($[f] = typeof r[f] == "string" ? encodeURIComponent(r[f]) : r[f], $), {});
1893
1431
  try {
1894
- d = m.generate(n, b || {});
1895
- } catch (E) {
1896
- return /* @__PURE__ */ r.createElement(fe, h({}, f), i);
1432
+ p = u.generate(n, v || {});
1433
+ } catch ($) {
1434
+ return /* @__PURE__ */ d.createElement(Se, b({}, m), s);
1897
1435
  }
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({
1436
+ p && u.settings.mode && u.settings.mode === Qe.browser && p[0] !== "/" && (p = `/${p}`);
1437
+ } else if (o && u.history)
1438
+ p = u.history.createHref({
1901
1439
  hash: "",
1902
1440
  pathname: o,
1903
1441
  search: "",
1904
1442
  state: void 0
1905
1443
  });
1906
1444
  else
1907
- return process.env.NODE_ENV !== "production" && de.warn(
1445
+ return process.env.NODE_ENV !== "production" && Ee.warn(
1908
1446
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1909
1447
  ), null;
1910
- if (m.settings && m.settings.mode === Be.scopedHash) {
1911
- const C = p.get("$widget").name;
1912
- d = xt(d, C);
1448
+ if (u.settings && u.settings.mode === Qe.scopedHash) {
1449
+ const g = h.get("$widget").name;
1450
+ p = Ut(p, g);
1913
1451
  }
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);
1452
+ return m.as ? /* @__PURE__ */ d.createElement(ko, k(b({}, m), { as: m.as }), s) : /* @__PURE__ */ d.createElement(Se, k(b({}, m), { to: p }), s);
1915
1453
  }
1916
- ), er = y.span``, we = N(
1917
- (x, C) => {
1918
- var b = x, {
1454
+ ), ko = y.span``, Be = B(
1455
+ (x, g) => {
1456
+ var v = x, {
1919
1457
  className: e,
1920
1458
  disabled: t = !1,
1921
1459
  role: n = "link",
1922
1460
  tabIndex: o = 0,
1923
- onClick: s = () => {
1461
+ onClick: r = () => {
1924
1462
  },
1925
- onKeyDown: i = () => {
1463
+ onKeyDown: s = () => {
1926
1464
  },
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, [
1465
+ title: i,
1466
+ as: c,
1467
+ href: l,
1468
+ children: a,
1469
+ target: u,
1470
+ routeName: h,
1471
+ params: p
1472
+ } = v, m = M(v, [
1935
1473
  "className",
1936
1474
  "disabled",
1937
1475
  "role",
@@ -1946,79 +1484,79 @@ const Dn = 300, Bn = ({
1946
1484
  "routeName",
1947
1485
  "params"
1948
1486
  ]);
1949
- const E = {
1950
- title: a,
1487
+ const $ = {
1488
+ title: i,
1951
1489
  disabled: t,
1952
1490
  role: n,
1953
- as: l,
1491
+ as: c,
1954
1492
  tabIndex: o,
1955
- className: M(e, "humany-link", [!!t, "humany-disabled"]),
1956
- onClick: (g) => {
1957
- if (g.persist(), t) {
1958
- g.preventDefault();
1493
+ className: z(e, "humany-link", [!!t, "humany-disabled"]),
1494
+ onClick: (f) => {
1495
+ if (f.persist(), t) {
1496
+ f.preventDefault();
1959
1497
  return;
1960
1498
  }
1961
- s(g);
1499
+ r(f);
1962
1500
  },
1963
- onKeyDown: (g) => {
1964
- if (g.persist(), t) {
1965
- g.key !== "Tab" && g.preventDefault();
1501
+ onKeyDown: (f) => {
1502
+ if (f.persist(), t) {
1503
+ f.key !== "Tab" && f.preventDefault();
1966
1504
  return;
1967
1505
  }
1968
- i(g);
1506
+ s(f);
1969
1507
  }
1970
1508
  };
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
1509
+ return h ? /* @__PURE__ */ d.createElement(
1510
+ _o,
1511
+ k(b(b({
1512
+ name: h,
1513
+ params: p
1514
+ }, $), W(m)), {
1515
+ ref: g
1978
1516
  }),
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
1517
+ a
1518
+ ) : /* @__PURE__ */ d.createElement(
1519
+ Do,
1520
+ k(b(b({
1521
+ href: l,
1522
+ target: u
1523
+ }, $), W(m)), {
1524
+ ref: g
1987
1525
  }),
1988
- c
1526
+ a
1989
1527
  );
1990
1528
  }
1991
- ), tr = y(Jn)`
1529
+ ), _o = y(So)`
1992
1530
  ${(e) => e.disabled ? `
1993
1531
  pointer-events: none;
1994
1532
  opacity: .7;
1995
1533
  ` : "cursor: pointer;"}
1996
- `, nr = y.a`
1534
+ `, Do = y.a`
1997
1535
  ${(e) => e.disabled ? `
1998
1536
  pointer-events: none;
1999
1537
  opacity: .7;
2000
1538
  ` : "cursor: pointer;"}
2001
- `, rr = (i) => {
2002
- var a = i, {
1539
+ `, To = (s) => {
1540
+ var i = s, {
2003
1541
  visible: e,
2004
1542
  duration: t = 500,
2005
1543
  children: n,
2006
1544
  onClick: o = () => {
2007
1545
  }
2008
- } = a, s = S(a, [
1546
+ } = i, r = M(i, [
2009
1547
  "visible",
2010
1548
  "duration",
2011
1549
  "children",
2012
1550
  "onClick"
2013
1551
  ]);
2014
- const l = R(), u = H(
2015
- (c) => {
2016
- c.target === l.current && o(c);
1552
+ const c = _(), l = D(
1553
+ (a) => {
1554
+ a.target === c.current && o(a);
2017
1555
  },
2018
1556
  [o]
2019
1557
  );
2020
- return /* @__PURE__ */ r.createElement(
2021
- Ie,
1558
+ return /* @__PURE__ */ d.createElement(
1559
+ lt,
2022
1560
  {
2023
1561
  in: e,
2024
1562
  className: "humany-overlay-transition",
@@ -2026,18 +1564,18 @@ const Dn = 300, Bn = ({
2026
1564
  unmountOnExit: !0,
2027
1565
  timeout: t
2028
1566
  },
2029
- /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
2030
- or,
2031
- h({
1567
+ /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
1568
+ Mo,
1569
+ b({
2032
1570
  className: "humany-overlay",
2033
1571
  duration: t,
2034
- ref: l,
2035
- onClick: u
2036
- }, s),
1572
+ ref: c,
1573
+ onClick: l
1574
+ }, r),
2037
1575
  n
2038
1576
  ))
2039
1577
  );
2040
- }, or = y.div`
1578
+ }, Mo = y.div`
2041
1579
  background: rgba(0, 0, 0, 0.6);
2042
1580
  min-width: 100%;
2043
1581
  min-height: 100%;
@@ -2067,11 +1605,11 @@ const Dn = 300, Bn = ({
2067
1605
  &.humany-overlay-transition-exit-done {
2068
1606
  opacity: 0;
2069
1607
  }
2070
- `, _e = rr, sr = Ze`
1608
+ `, $t = To, zo = it`
2071
1609
  100% {
2072
1610
  transform: rotate(360deg);
2073
1611
  }
2074
- `, ir = Ze`
1612
+ `, Lo = it`
2075
1613
  0% {
2076
1614
  stroke-dasharray: 1, 200;
2077
1615
  stroke-dashoffset: 0;
@@ -2084,8 +1622,8 @@ const Dn = 300, Bn = ({
2084
1622
  stroke-dasharray: 89, 200;
2085
1623
  stroke-dashoffset: -124px;
2086
1624
  }
2087
- `, ar = y.svg`
2088
- animation: ${sr} 2s linear infinite;
1625
+ `, Po = y.svg`
1626
+ animation: ${zo} 2s linear infinite;
2089
1627
  height: 100%;
2090
1628
  transform-origin: center center;
2091
1629
  width: 100%;
@@ -2096,7 +1634,7 @@ const Dn = 300, Bn = ({
2096
1634
  right: 0;
2097
1635
  margin: auto;
2098
1636
  transition: 200ms ease-out opacity;
2099
- `, cr = y.div`
1637
+ `, Oo = y.div`
2100
1638
  position: absolute;
2101
1639
  top: 0;
2102
1640
  bottom: 0;
@@ -2114,7 +1652,7 @@ const Dn = 300, Bn = ({
2114
1652
  svg {
2115
1653
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2116
1654
  }
2117
- `, lr = y.div`
1655
+ `, Ro = y.div`
2118
1656
  position: relative;
2119
1657
  margin: 0 auto;
2120
1658
  width: 100px;
@@ -2123,18 +1661,18 @@ const Dn = 300, Bn = ({
2123
1661
  display: block;
2124
1662
  padding-top: 100%;
2125
1663
  }
2126
- `, ur = y.circle`
1664
+ `, No = y.circle`
2127
1665
  stroke-dasharray: 1, 200;
2128
1666
  stroke-dashoffset: 0;
2129
- animation: ${ir} 1.5s ease-in-out infinite;
1667
+ animation: ${Lo} 1.5s ease-in-out infinite;
2130
1668
  stroke-linecap: round;
2131
1669
  stroke: ${(e) => {
2132
1670
  var t;
2133
1671
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2134
1672
  }};
2135
1673
  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,
1674
+ `, Io = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ d.createElement(Oo, { className: z("humany-loader", e), "data-loading": t }, /* @__PURE__ */ d.createElement(Ro, { className: "humany-spinner" }, /* @__PURE__ */ d.createElement(Po, { viewBox: "25 25 50 50" }, /* @__PURE__ */ d.createElement(
1675
+ No,
2138
1676
  {
2139
1677
  cx: "50",
2140
1678
  cy: "50",
@@ -2143,62 +1681,62 @@ const Dn = 300, Bn = ({
2143
1681
  "stroke-width": "2",
2144
1682
  "stroke-miterlimit": "10"
2145
1683
  }
2146
- )))), dr = mr, fr = (s) => {
2147
- var i = s, {
1684
+ )))), Bo = Io, Wo = (r) => {
1685
+ var s = r, {
2148
1686
  zoomState: e,
2149
1687
  image: t,
2150
1688
  changeZoom: n
2151
- } = i, o = S(i, [
1689
+ } = s, o = M(s, [
2152
1690
  "zoomState",
2153
1691
  "image",
2154
1692
  "changeZoom"
2155
1693
  ]);
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;
1694
+ var $;
1695
+ const i = _(null), [c, l] = E(!1), [a, u] = E(!1), v = o.style || {}, { width: h, height: p } = v, m = M(v, ["width", "height"]), g = D(() => {
1696
+ const f = i.current;
1697
+ if (f) {
1698
+ const L = window.innerWidth / f.width, O = window.innerHeight / f.height, T = Math.min(L, O);
1699
+ return O >= 1 && L >= 1 ? 1 : T;
2162
1700
  }
2163
1701
  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);
1702
+ }, [c, t.src]), x = ge(() => {
1703
+ const f = i.current;
1704
+ if (f) {
1705
+ if (!a) {
1706
+ u(!0);
1707
+ const L = g();
1708
+ n(L);
2171
1709
  }
2172
- return g.width >= g.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
1710
+ return f.width >= f.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
2173
1711
  }
2174
1712
  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({
1713
+ }, [e, i, c, t.src]);
1714
+ return w(() => (l(!1), function() {
1715
+ u(!1);
1716
+ }), [t.src]), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(Ho, { loading: !c }), /* @__PURE__ */ d.createElement(
1717
+ jo,
1718
+ k(b({
2181
1719
  onLoad: () => {
2182
- u(!0);
1720
+ l(!0);
2183
1721
  },
2184
- ref: a,
1722
+ ref: i,
2185
1723
  imageSize: x,
2186
1724
  draggable: "false"
2187
1725
  }, o), {
2188
- alt: ((E = o.alt) == null ? void 0 : E.toString()) || "",
2189
- style: f,
1726
+ alt: (($ = o.alt) == null ? void 0 : $.toString()) || "",
1727
+ style: m,
2190
1728
  src: t.src,
2191
- loaded: l
1729
+ loaded: c
2192
1730
  })
2193
- ), /* @__PURE__ */ r.createElement(gr, null));
2194
- }, hr = y(dr)`
1731
+ ), /* @__PURE__ */ d.createElement(Vo, null));
1732
+ }, Ho = y(Bo)`
2195
1733
  svg circle {
2196
1734
  stroke: #ffffff;
2197
1735
  }
2198
- `, pr = y.img`
1736
+ `, jo = y.img`
2199
1737
  transform: none;
2200
1738
 
2201
- ${(e) => e.imageSize && L`
1739
+ ${(e) => e.imageSize && S`
2202
1740
  width: ${e.imageSize[0]};
2203
1741
  height: ${e.imageSize[1]};
2204
1742
  display: inline-block;
@@ -2206,267 +1744,267 @@ const Dn = 300, Bn = ({
2206
1744
  vertical-align: middle;
2207
1745
  position: relative;
2208
1746
  ${(e) => !e.loaded && "display:none;"}
2209
- `, gr = y.div`
1747
+ `, Vo = y.div`
2210
1748
  height: 100%;
2211
1749
  display: inline-block;
2212
1750
  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(() => {
1751
+ `, Fo = Wo, Ao = () => {
1752
+ const e = _(), [t, n] = E(!0), o = D(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2215
1753
  n(!1);
2216
1754
  }, 3e3), () => {
2217
1755
  e.current && clearTimeout(e.current);
2218
1756
  }), [t, e]);
2219
1757
  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)
1758
+ }, Ko = ({ attrs: e, htmlBody: t }) => {
1759
+ var Ke;
1760
+ const n = te("Escape"), o = te("ArrowLeft"), r = te("ArrowRight"), [s, i] = E(1), [c, l] = E({ top: 0, left: 0, x: 0, y: 0 }), [a, u] = E(!1), [h, p] = Ao(), [m, g] = E(null), [x, v] = E(null), $ = _(null), f = _(null), L = _(null), O = _(null);
1761
+ w(() => {
1762
+ n && g(null);
1763
+ }, [n]), w(() => {
1764
+ i(1);
1765
+ }, [m]), w(() => {
1766
+ var Y, U;
1767
+ if (m === null || f.current === null)
2230
1768
  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");
1769
+ const C = 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
1770
  if (x === "Right")
2233
- te && Z ? Z.focus() : ee && D && D.focus();
1771
+ me && F ? F.focus() : de && P && P.focus();
2234
1772
  else if (x === "Left")
2235
- ee && D ? D.focus() : te && Z && Z.focus();
1773
+ de && P ? P.focus() : me && F && F.focus();
2236
1774
  else {
2237
- if (!w)
1775
+ if (!C)
2238
1776
  return;
2239
- w.focus();
1777
+ C.focus();
2240
1778
  }
2241
- }, [f, g, B, x]), v(() => {
1779
+ }, [m, f, L, x]), w(() => {
2242
1780
  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
1781
+ if (de)
1782
+ return Fe();
1783
+ } else if (r && me)
1784
+ return Ae();
1785
+ }, [o, r]);
1786
+ const T = ge(() => {
1787
+ const C = document.createElement("div");
1788
+ C.innerHTML = t || "";
1789
+ const P = C.getElementsByTagName("img");
1790
+ return Array.from(P).reduce((Y, U) => {
1791
+ const qe = U.getAttribute("src"), zt = U.height || Number.parseInt(U.style.height, 10), Lt = U.width || Number.parseInt(U.style.width, 10);
1792
+ if (qe) {
1793
+ const Pt = {
1794
+ src: qe,
1795
+ originalWidth: Lt,
1796
+ originalHeight: zt
2259
1797
  };
2260
- P.push(it);
1798
+ Y.push(Pt);
2261
1799
  }
2262
- return P;
1800
+ return Y;
2263
1801
  }, []);
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);
1802
+ }, [t]), V = D(() => {
1803
+ const { src: C } = e;
1804
+ if (C) {
1805
+ const P = T.findIndex((F, Y) => F.src === C);
1806
+ g(P);
1807
+ }
1808
+ }, [T, e]), St = D((C) => {
1809
+ g(null);
1810
+ }, []), Ve = D(
1811
+ (C) => {
1812
+ i(C ? s + s * 0.25 : s - s * 0.25);
2275
1813
  },
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));
1814
+ [i, s]
1815
+ ), kt = D(() => {
1816
+ if (m !== null) {
1817
+ const { src: C } = T[m];
1818
+ C && window.open(C, "_self");
1819
+ }
1820
+ }, [T, m]), _t = D(
1821
+ (C) => {
1822
+ const P = O.current;
1823
+ P && (l({ top: P.scrollTop, left: P.scrollLeft, x: C.clientX, y: C.clientY }), u(!0));
2286
1824
  },
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;
1825
+ [O]
1826
+ ), Dt = D(
1827
+ (C) => {
1828
+ const P = O.current;
1829
+ if (P && a) {
1830
+ const F = C.clientX - c.x, Y = C.clientY - c.y;
1831
+ P.scrollTop = c.top - Y, P.scrollLeft = c.left - F;
2294
1832
  }
2295
1833
  },
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;
1834
+ [a, c]
1835
+ ), Tt = (C) => {
1836
+ C.preventDefault(), u(!1);
1837
+ }, Mt = ge(() => {
1838
+ if (O.current) {
1839
+ const C = O.current.getElementsByTagName("img");
1840
+ if (C && C.length) {
1841
+ const P = C[0];
1842
+ return P.width > window.innerWidth || P.height > window.innerHeight;
2305
1843
  }
2306
1844
  }
2307
1845
  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,
1846
+ }, [O, s]), Fe = () => {
1847
+ m !== null && (v("Left"), g(m - 1));
1848
+ }, Ae = () => {
1849
+ m !== null && (v("Right"), g(m + 1));
1850
+ }, de = m !== null && m > 0 && T.length > 1, me = m !== null && T.length - 1 > m;
1851
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: m !== null, onClick: St }, /* @__PURE__ */ d.createElement(
1852
+ Jo,
2315
1853
  {
2316
- onMouseDown: () => d(),
2317
- onMouseMove: () => d(),
2318
- onTouchStart: () => d(),
2319
- onKeyDown: () => d()
1854
+ onMouseDown: () => p(),
1855
+ onMouseMove: () => p(),
1856
+ onTouchStart: () => p(),
1857
+ onKeyDown: () => p()
2320
1858
  },
2321
- /* @__PURE__ */ r.createElement(Sr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
2322
- wr,
1859
+ /* @__PURE__ */ d.createElement(er, { show: h.toString() }, /* @__PURE__ */ d.createElement(
1860
+ Xo,
2323
1861
  {
2324
- ref: g,
1862
+ ref: f,
2325
1863
  buttons: [
2326
1864
  {
2327
1865
  id: "download",
2328
- onClick: Je,
1866
+ onClick: kt,
2329
1867
  icon: "download",
2330
1868
  ariaLabel: "Download image"
2331
1869
  },
2332
1870
  {
2333
1871
  id: "lightbox-close",
2334
- onClick: () => C(null),
1872
+ onClick: () => g(null),
2335
1873
  icon: "lightbox-close",
2336
1874
  ariaLabel: "Close"
2337
1875
  }
2338
1876
  ]
2339
1877
  }
2340
1878
  )),
2341
- /* @__PURE__ */ r.createElement(
2342
- Hr,
1879
+ /* @__PURE__ */ d.createElement(
1880
+ nr,
2343
1881
  {
2344
- scrolling: c.toString(),
2345
- isDraggable: rt.toString(),
2346
- ref: z,
2347
- onMouseMove: tt,
2348
- onMouseDown: et,
2349
- onMouseUp: nt
1882
+ scrolling: a.toString(),
1883
+ isDraggable: Mt.toString(),
1884
+ ref: O,
1885
+ onMouseMove: Dt,
1886
+ onMouseDown: _t,
1887
+ onMouseUp: Tt
2350
1888
  },
2351
- f !== null && /* @__PURE__ */ r.createElement(
2352
- Cr,
2353
- k(h({
2354
- changeZoom: (w) => {
2355
- a(w);
1889
+ m !== null && /* @__PURE__ */ d.createElement(
1890
+ Fo,
1891
+ k(b({
1892
+ changeZoom: (C) => {
1893
+ i(C);
2356
1894
  },
2357
- zoomState: i
1895
+ zoomState: s
2358
1896
  }, e), {
2359
- image: T[f]
1897
+ image: T[m]
2360
1898
  })
2361
1899
  )
2362
1900
  ),
2363
- /* @__PURE__ */ r.createElement(
2364
- kr,
1901
+ /* @__PURE__ */ d.createElement(
1902
+ Qo,
2365
1903
  {
2366
- ref: B,
2367
- show: p.toString(),
1904
+ ref: L,
1905
+ show: h.toString(),
2368
1906
  buttons: [
2369
1907
  {
2370
1908
  id: "previous",
2371
- onClick: Le,
1909
+ onClick: Fe,
2372
1910
  icon: "caret-left",
2373
1911
  circle: !0,
2374
- show: ee,
1912
+ show: de,
2375
1913
  className: "nav-left",
2376
1914
  ariaLabel: "Navigate to previous image"
2377
1915
  },
2378
1916
  {
2379
1917
  id: "next",
2380
- onClick: Me,
1918
+ onClick: Ae,
2381
1919
  icon: "caret-right",
2382
1920
  circle: !0,
2383
- show: te,
1921
+ show: me,
2384
1922
  className: "nav-right",
2385
1923
  ariaLabel: "Navigate to next image"
2386
1924
  }
2387
1925
  ]
2388
1926
  }
2389
1927
  ),
2390
- /* @__PURE__ */ r.createElement(Rr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
2391
- $r,
1928
+ /* @__PURE__ */ d.createElement(tr, { show: h.toString() }, /* @__PURE__ */ d.createElement(
1929
+ Zo,
2392
1930
  {
2393
1931
  buttons: [
2394
1932
  {
2395
1933
  id: "zoom-out",
2396
- onClick: () => ke(!1),
1934
+ onClick: () => Ve(!1),
2397
1935
  icon: "zoom-out",
2398
1936
  ariaLabel: "Zoom out"
2399
1937
  },
2400
1938
  {
2401
1939
  id: "zoom-in",
2402
- onClick: () => ke(!0),
1940
+ onClick: () => Ve(!0),
2403
1941
  icon: "zoom-in",
2404
1942
  ariaLabel: "Zoom in"
2405
1943
  }
2406
1944
  ]
2407
1945
  }
2408
- ), /* @__PURE__ */ r.createElement(Lr, { variant: "span" }, Math.trunc(i * 100), "%"))
2409
- )), /* @__PURE__ */ r.createElement(
2410
- vr,
1946
+ ), /* @__PURE__ */ d.createElement(Go, { variant: "span" }, Math.trunc(s * 100), "%"))
1947
+ )), /* @__PURE__ */ d.createElement(
1948
+ qo,
2411
1949
  {
2412
- ref: E,
2413
- onClick: j,
2414
- onKeyDown: (w) => {
2415
- w.key === "Enter" && (w.preventDefault(), j());
1950
+ ref: $,
1951
+ onClick: V,
1952
+ onKeyDown: (C) => {
1953
+ C.key === "Enter" && (C.preventDefault(), V());
2416
1954
  },
2417
1955
  tabIndex: 0
2418
1956
  },
2419
- /* @__PURE__ */ r.createElement(Tr, k(h({}, e), { alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "" }))
1957
+ /* @__PURE__ */ d.createElement(or, k(b({}, e), { alt: ((Ke = e.alt) == null ? void 0 : Ke.toString()) || "" }))
2420
1958
  ));
2421
- }, $e = N(
2422
- ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(
2423
- Er,
1959
+ }, We = B(
1960
+ ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ d.createElement(
1961
+ Yo,
2424
1962
  {
2425
1963
  ref: o,
2426
1964
  show: e,
2427
- className: M("humany-button-set", n)
1965
+ className: z("humany-button-set", n)
2428
1966
  },
2429
1967
  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,
1968
+ ({ id: r, circle: s = !1, show: i = !0, ariaLabel: c, onClick: l, icon: a, className: u }, h) => /* @__PURE__ */ d.createElement(
1969
+ Uo,
2432
1970
  {
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
1971
+ key: r + h.toString(),
1972
+ circle: s.toString(),
1973
+ onClick: l,
1974
+ tabIndex: i ? void 0 : -1,
1975
+ show: i.toString(),
1976
+ icon: a,
1977
+ className: u,
1978
+ "aria-label": c
2441
1979
  },
2442
- /* @__PURE__ */ r.createElement(J, { size: 24, symbol: { type: "Svg", content: c } })
1980
+ /* @__PURE__ */ d.createElement(ue, { size: 24, symbol: { type: "Svg", content: a } })
2443
1981
  )
2444
1982
  )
2445
1983
  )
2446
- ), qe = y.div`
1984
+ ), wt = y.div`
2447
1985
  transition: opacity 0.3s ease 0s;
2448
1986
  z-index: 5;
2449
- ${(e) => e.show === "true" ? "opacity: 1;" : L`
1987
+ ${(e) => e.show === "true" ? "opacity: 1;" : S`
2450
1988
  opacity: 0;
2451
1989
  pointer-events: none;
2452
1990
  `}
2453
- `, vr = y(we)`
1991
+ `, qo = y(Be)`
2454
1992
  display: inline-block !important;
2455
- `, Er = y(qe)`
1993
+ `, Yo = y(wt)`
2456
1994
  position: fixed;
2457
1995
  display: flex;
2458
1996
  gap: ${(e) => {
2459
1997
  var t;
2460
1998
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2461
1999
  }};
2462
- `, ge = "39px", xr = y(ae)`
2463
- width: ${ge};
2464
- height: ${ge};
2000
+ `, Te = "39px", Uo = y(be)`
2001
+ width: ${Te};
2002
+ height: ${Te};
2465
2003
  display: flex;
2466
2004
  justify-content: center;
2467
2005
  align-items: center;
2468
2006
 
2469
- ${(e) => e.icon === "caret-left" && L`
2007
+ ${(e) => e.icon === "caret-left" && S`
2470
2008
  svg {
2471
2009
  position: relative;
2472
2010
  left: -2px;
@@ -2475,7 +2013,7 @@ const Dn = 300, Bn = ({
2475
2013
 
2476
2014
  ${(e) => {
2477
2015
  var t;
2478
- return e.circle === "true" ? L`
2016
+ return e.circle === "true" ? S`
2479
2017
  background-color: #ffffff;
2480
2018
  border-radius: 50%;
2481
2019
 
@@ -2487,7 +2025,7 @@ const Dn = 300, Bn = ({
2487
2025
  }
2488
2026
 
2489
2027
  &:focus-visible {
2490
- ${A(e)}
2028
+ ${Z(e)}
2491
2029
  outline-color: #ffffff;
2492
2030
  background-color: transparent;
2493
2031
 
@@ -2498,7 +2036,7 @@ const Dn = 300, Bn = ({
2498
2036
  }
2499
2037
  }
2500
2038
  }
2501
- ` : L`
2039
+ ` : S`
2502
2040
  svg {
2503
2041
  path,
2504
2042
  line {
@@ -2509,22 +2047,22 @@ const Dn = 300, Bn = ({
2509
2047
  outline-color: #ffffff;
2510
2048
  }
2511
2049
  &:focus-visible {
2512
- ${A(e)}
2050
+ ${Z(e)}
2513
2051
  }
2514
2052
  `;
2515
2053
  }}
2516
2054
 
2517
- ${(e) => e.show === "true" ? L`
2055
+ ${(e) => e.show === "true" ? S`
2518
2056
  opacity: 0.8;
2519
2057
  transition: opacity 0.3s ease 0s;
2520
2058
  &:hover {
2521
2059
  opacity: 1;
2522
2060
  }
2523
- ` : L`
2061
+ ` : S`
2524
2062
  opacity: 0;
2525
2063
  pointer-events: none;
2526
2064
  `}
2527
- `, wr = y($e)`
2065
+ `, Xo = y(We)`
2528
2066
  top: ${(e) => {
2529
2067
  var t;
2530
2068
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2533,7 +2071,7 @@ const Dn = 300, Bn = ({
2533
2071
  var t;
2534
2072
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2535
2073
  }};
2536
- `, $r = y($e)`
2074
+ `, Zo = y(We)`
2537
2075
  bottom: ${(e) => {
2538
2076
  var t;
2539
2077
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2541,11 +2079,11 @@ const Dn = 300, Bn = ({
2541
2079
  width: 100%;
2542
2080
  align-items: center;
2543
2081
  justify-content: center;
2544
- `, kr = y($e)`
2082
+ `, Qo = y(We)`
2545
2083
  display: block;
2546
2084
  button {
2547
2085
  position: fixed;
2548
- top: calc(50% - calc(${ge} / 2));
2086
+ top: calc(50% - calc(${Te} / 2));
2549
2087
  &:first-child {
2550
2088
  left: ${(e) => {
2551
2089
  var t;
@@ -2559,7 +2097,7 @@ const Dn = 300, Bn = ({
2559
2097
  }};
2560
2098
  }
2561
2099
  }
2562
- `, Lr = y(q)`
2100
+ `, Go = y(ae)`
2563
2101
  position: fixed;
2564
2102
  bottom: ${(e) => {
2565
2103
  var t;
@@ -2578,21 +2116,21 @@ const Dn = 300, Bn = ({
2578
2116
  var t;
2579
2117
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2580
2118
  }};
2581
- `, Qe = y(qe)`
2119
+ `, xt = y(wt)`
2582
2120
  position: absolute;
2583
2121
  width: 100vw;
2584
2122
  height: 88px;
2585
2123
  left: 0px;
2586
2124
  z-index: 5;
2587
- `, Mr = y.div`
2125
+ `, Jo = y.div`
2588
2126
  width: 100%;
2589
- `, Sr = y(Qe)`
2127
+ `, er = y(xt)`
2590
2128
  top: 0px;
2591
2129
  background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2592
- `, Rr = y(Qe)`
2130
+ `, tr = y(xt)`
2593
2131
  bottom: 0px;
2594
2132
  background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2595
- `, Hr = y.div`
2133
+ `, nr = y.div`
2596
2134
  width: 100%;
2597
2135
  height: 100vh;
2598
2136
  overflow: auto;
@@ -2601,64 +2139,64 @@ const Dn = 300, Bn = ({
2601
2139
  white-space: nowrap;
2602
2140
  justify-content: center;
2603
2141
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2604
- `, Tr = y.img`
2142
+ `, or = y.img`
2605
2143
  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);
2144
+ `, rr = Ko, sr = B(
2145
+ (c, i) => {
2146
+ var l = c, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2147
+ }, close: r = !1 } = l, s = M(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
2148
+ const [a, u] = gt(), [h, p] = ft(!0), m = _(), g = _(ce()), x = te("Escape");
2149
+ w(() => {
2150
+ (x || r) && u(!1);
2151
+ }, [x, r]), w(() => {
2152
+ a && m.current && m.current.focus();
2153
+ }, [a, m.current]), ve("router:changed", () => {
2154
+ u(!1);
2617
2155
  });
2618
- const b = H(
2619
- (g) => {
2620
- m(!1), o(g);
2156
+ const v = D(
2157
+ (f) => {
2158
+ u(!1), o(f);
2621
2159
  },
2622
- [o, m]
2160
+ [o, u]
2623
2161
  );
2624
- Ce(a, () => ({
2162
+ ze(i, () => ({
2625
2163
  close() {
2626
- m(!1);
2164
+ u(!1);
2627
2165
  }
2628
2166
  }));
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(
2167
+ const $ = D(() => Re(g.current, () => {
2168
+ u(!1);
2169
+ }), [g.current]);
2170
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: a, onClick: v }, /* @__PURE__ */ d.createElement(
2171
+ ar,
2172
+ k(b({
2173
+ className: z(
2636
2174
  e,
2637
2175
  "humany-modal",
2638
- `humany-modal-${C.current}`
2176
+ `humany-modal-${g.current}`
2639
2177
  ),
2640
- css: p,
2178
+ css: h,
2641
2179
  tabIndex: -1
2642
- }, i), {
2643
- ref: d
2180
+ }, s), {
2181
+ ref: p
2644
2182
  }),
2645
- /* @__PURE__ */ r.createElement(
2646
- xe,
2183
+ /* @__PURE__ */ d.createElement(
2184
+ Ie,
2647
2185
  {
2648
- onClick: () => m(!1),
2186
+ onClick: () => u(!1),
2649
2187
  tabIndex: 0,
2650
- ref: f
2188
+ ref: m
2651
2189
  },
2652
- /* @__PURE__ */ r.createElement(J, { symbol: { type: "Svg", content: "close" } })
2190
+ /* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
2653
2191
  ),
2654
2192
  t
2655
- )), r.cloneElement(n, {
2656
- onClick: (g) => {
2657
- m(), E();
2193
+ )), d.cloneElement(n, {
2194
+ onClick: (f) => {
2195
+ u(), $();
2658
2196
  }
2659
2197
  }));
2660
2198
  }
2661
- ), zr = Br, Nr = y.div`
2199
+ ), ir = sr, ar = y.div`
2662
2200
  font-family: ${(e) => {
2663
2201
  var t;
2664
2202
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2674,30 +2212,30 @@ const Dn = 300, Bn = ({
2674
2212
  var t;
2675
2213
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2676
2214
  }};
2677
- ${(e) => je(e)}
2215
+ ${(e) => yt(e)}
2678
2216
  ${(e) => e.css && e.css}
2679
2217
  outline: none;
2680
- `, Vr = ({
2218
+ `, cr = ({
2681
2219
  className: e,
2682
2220
  trigger: t,
2683
2221
  header: n = "",
2684
2222
  text: o = "",
2685
- onCancel: s = () => {
2223
+ onCancel: r = () => {
2686
2224
  },
2687
- onConfirm: i = () => {
2225
+ onConfirm: s = () => {
2688
2226
  },
2689
- cancelLabel: a = "",
2690
- confirmLabel: l = ""
2227
+ cancelLabel: i = "",
2228
+ confirmLabel: c = ""
2691
2229
  }) => {
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)`
2230
+ const l = _(), a = D(() => {
2231
+ var h;
2232
+ r(), (h = l == null ? void 0 : l.current) == null || h.close();
2233
+ }, [r]), u = D(() => {
2234
+ var h;
2235
+ s(), (h = l == null ? void 0 : l.current) == null || h.close();
2236
+ }, [s]);
2237
+ return /* @__PURE__ */ d.createElement(lr, { 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(ur, { onClick: u }, c), i && /* @__PURE__ */ d.createElement(dr, { onClick: a }, i));
2238
+ }, Hs = cr, lr = y(ir)`
2701
2239
  display: block;
2702
2240
 
2703
2241
  span {
@@ -2715,7 +2253,7 @@ const Dn = 300, Bn = ({
2715
2253
  }};
2716
2254
  }
2717
2255
  }
2718
- `, Zr = y(ae)`
2256
+ `, ur = y(be)`
2719
2257
  display: inline-block;
2720
2258
  min-width: 50px;
2721
2259
  ${(e) => {
@@ -2743,9 +2281,9 @@ const Dn = 300, Bn = ({
2743
2281
  }
2744
2282
 
2745
2283
  &:focus-visible {
2746
- ${A}
2284
+ ${Z}
2747
2285
  }
2748
- `, Ir = y(ae)`
2286
+ `, dr = y(be)`
2749
2287
  display: inline-block;
2750
2288
  min-width: 50px;
2751
2289
  ${(e) => {
@@ -2764,27 +2302,27 @@ const Dn = 300, Bn = ({
2764
2302
  }};
2765
2303
 
2766
2304
  &:focus-visible {
2767
- ${A};
2305
+ ${Z};
2768
2306
  }
2769
- `, Or = ({
2307
+ `, mr = ({
2770
2308
  header: e = "",
2771
2309
  link: t = "",
2772
2310
  suggestionHeader: n = "",
2773
2311
  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`
2312
+ }) => /* @__PURE__ */ d.createElement(hr, null, /* @__PURE__ */ d.createElement(pr, null, /* @__PURE__ */ d.createElement(ae, { variant: "h2" }, "404")), /* @__PURE__ */ d.createElement(fr, null, /* @__PURE__ */ d.createElement(ae, { variant: "h3" }, e), /* @__PURE__ */ d.createElement(br, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ d.createElement(gr, null, /* @__PURE__ */ d.createElement("span", null, n), /* @__PURE__ */ d.createElement("ul", null, /* @__PURE__ */ d.createElement("li", null, o)))), js = mr, hr = y.div`
2775
2313
  display: flex;
2776
2314
  flex-wrap: wrap;
2777
- `, Fr = y.div`
2778
- ${(e) => ie(e)(
2315
+ `, pr = y.div`
2316
+ ${(e) => ye(e)(
2779
2317
  "h2",
2780
- L`
2318
+ S`
2781
2319
  padding: 0;
2782
2320
  margin: 0;
2783
2321
  color: gray;
2784
2322
  font-size: 7em;
2785
2323
  `
2786
2324
  )}
2787
- `, Ar = y.div`
2325
+ `, fr = y.div`
2788
2326
  margin-left: ${(e) => {
2789
2327
  var t;
2790
2328
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2792,9 +2330,9 @@ const Dn = 300, Bn = ({
2792
2330
 
2793
2331
  ${(e) => {
2794
2332
  var t;
2795
- return ie(e)(
2333
+ return ye(e)(
2796
2334
  "h3",
2797
- L`
2335
+ S`
2798
2336
  text-transform: uppercase;
2799
2337
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
2800
2338
  `
@@ -2811,7 +2349,7 @@ const Dn = 300, Bn = ({
2811
2349
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2812
2350
  }};
2813
2351
  }
2814
- `, Kr = y.div`
2352
+ `, gr = y.div`
2815
2353
  margin-top: ${(e) => {
2816
2354
  var t;
2817
2355
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2822,103 +2360,100 @@ const Dn = 300, Bn = ({
2822
2360
  font-weight: bold;
2823
2361
  }
2824
2362
  `;
2825
- class Yr extends dt {
2363
+ class yr extends Wt {
2826
2364
  constructor() {
2827
- super(...arguments);
2828
- re(this, "node");
2829
- re(this, "onFocusListener");
2830
- re(this, "state", {
2365
+ super(...arguments), this.state = {
2831
2366
  boundFocus: !1
2832
- });
2367
+ };
2833
2368
  }
2834
2369
  componentWillMount() {
2835
- const n = this.props.container.get("accessibilitySettings");
2836
- n && n.boundFocus && this.setState({
2370
+ const t = this.props.container.get("accessibilitySettings");
2371
+ t && t.boundFocus && this.setState({
2837
2372
  boundFocus: !0
2838
2373
  });
2839
2374
  }
2840
2375
  componentDidMount() {
2841
2376
  if (!this.state.boundFocus)
2842
2377
  return;
2843
- const n = this.props.container.get("widgetDOMElement");
2844
- this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
2845
- const o = n.querySelectorAll(
2378
+ const t = this.props.container.get("widgetDOMElement");
2379
+ this.node && t && (this.onFocusListener = this.node.addEventListener("focus", () => {
2380
+ const n = t.querySelectorAll(
2846
2381
  '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();
2382
+ ), r = [].filter.call(n, (s) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(s).display === "none" || s.offsetWidth <= 0 && s.offsetHeight <= 0))[0];
2383
+ r && r.focus();
2849
2384
  }));
2850
2385
  }
2851
2386
  componentWillUnmount() {
2852
2387
  this.node && this.node.removeEventListener("focus", this.onFocusListener);
2853
2388
  }
2854
2389
  render() {
2855
- return this.state.boundFocus ? /* @__PURE__ */ r.createElement(
2390
+ return this.state.boundFocus ? /* @__PURE__ */ d.createElement(
2856
2391
  "div",
2857
2392
  {
2858
2393
  style: { opacity: 0 },
2859
2394
  tabIndex: 0,
2860
- ref: (n) => {
2861
- this.node = n;
2395
+ ref: (t) => {
2396
+ this.node = t;
2862
2397
  }
2863
2398
  }
2864
2399
  ) : null;
2865
2400
  }
2866
2401
  }
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);
2402
+ const Vs = yr, br = B(
2403
+ (i, s) => {
2404
+ var c = i, { className: e, description: t, text: n, children: o } = c, r = M(c, ["className", "description", "text", "children"]);
2405
+ return /* @__PURE__ */ d.createElement(Be, k(b({ className: z(e, "humany-text-link") }, r), { ref: s }), o, /* @__PURE__ */ d.createElement(Ne, null, n), t ? /* @__PURE__ */ d.createElement(vt, { html: t, className: "humany-description" }) : null);
2871
2406
  }
2872
2407
  );
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}`;
2408
+ var vr = /* @__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))(vr || {});
2409
+ const $r = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ d.createElement("span", { className: z(e, "humany-timestamp") }, wr(n, t)), Fs = $r, tt = (e) => `0${e}`.slice(-2);
2410
+ function wr(e, t) {
2411
+ 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)}`;
2412
+ return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
2878
2413
  }
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);
2414
+ const xr = (s) => {
2415
+ var i = s, { className: e, children: t, content: n, sticky: o = !1 } = i, r = M(i, ["className", "children", "content", "sticky"]);
2416
+ const [c, l] = E(!1), a = _(ce()), u = _(), [{ x: h, y: p }, m] = bt(c, a.current, u.current), g = (v) => {
2417
+ const { target: $ } = v;
2418
+ !u.current || !$ || u.current !== $ && !u.current.contains($) && l(!1);
2884
2419
  };
2885
- v(() => {
2420
+ w(() => {
2886
2421
  if (!!o)
2887
- return window.addEventListener("click", C), () => {
2888
- window.removeEventListener("click", C);
2422
+ return window.addEventListener("click", g), () => {
2423
+ window.removeEventListener("click", g);
2889
2424
  };
2890
- }, [l, o]);
2891
- const x = H(
2892
- (b, E) => {
2893
- f(b, m.current), u(E);
2425
+ }, [c, o]);
2426
+ const x = D(
2427
+ (v, $) => {
2428
+ m(v, u.current), l($);
2894
2429
  },
2895
- [f, u]
2430
+ [m, l]
2896
2431
  );
2897
- return /* @__PURE__ */ r.createElement(
2898
- Qr,
2432
+ return /* @__PURE__ */ d.createElement(
2433
+ Cr,
2899
2434
  {
2900
- ref: m,
2435
+ ref: u,
2901
2436
  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
2437
+ onMouseEnter: o ? void 0 : (v) => x(v, !0),
2438
+ onMouseLeave: o ? void 0 : (v) => x(v, !1),
2439
+ onTouchEnd: o ? (v) => x(v, !c) : void 0,
2440
+ onClick: o ? (v) => x(v, !c) : void 0
2906
2441
  },
2907
2442
  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),
2443
+ c && /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
2444
+ Er,
2445
+ b({
2446
+ className: z(e, "humany-tooltip-container"),
2447
+ x: h,
2448
+ y: p
2449
+ }, r),
2915
2450
  n
2916
2451
  ))
2917
2452
  );
2918
- }, Qr = y.div`
2453
+ }, Cr = y.div`
2919
2454
  display: flex;
2920
2455
  align-items: center;
2921
- `, Gr = y.div`
2456
+ `, Er = y.div`
2922
2457
  color: #ffffff;
2923
2458
  background: #161616;
2924
2459
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2954,130 +2489,130 @@ const qr = (i) => {
2954
2489
  let t = "";
2955
2490
  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
2491
  }};
2957
- `, Ko = qr, Jr = (e) => {
2492
+ `, As = xr, Sr = (e) => {
2958
2493
  const {
2959
2494
  in: t,
2960
2495
  mountOnEnter: n = !0,
2961
2496
  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")
2497
+ timeout: r,
2498
+ children: s,
2499
+ transitions: i
2500
+ } = e, l = (() => {
2501
+ var a, u;
2502
+ if (!(!i || i === "none")) {
2503
+ if (typeof i == "string")
2969
2504
  return {
2970
2505
  enter: {
2971
- transitionKeys: a,
2972
- duration: s ? typeof s == "number" ? s : s.enter : 200,
2506
+ transitionKeys: i,
2507
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2973
2508
  easing: "ease-in"
2974
2509
  },
2975
2510
  exit: {
2976
- transitionKeys: a,
2977
- duration: s ? typeof s == "number" ? s : s.exit : 200,
2511
+ transitionKeys: i,
2512
+ duration: r ? typeof r == "number" ? r : r.exit : 200,
2978
2513
  easing: "ease-out"
2979
2514
  }
2980
2515
  };
2981
- if (typeof a == "object") {
2982
- const { enter: p, exit: d } = a;
2516
+ if (typeof i == "object") {
2517
+ const { enter: h, exit: p } = i;
2983
2518
  return {
2984
2519
  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"
2520
+ transitionKeys: (a = i.enter) == null ? void 0 : a.type,
2521
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2522
+ easing: h.easing ? h.easing : "ease-in"
2988
2523
  },
2989
2524
  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"
2525
+ transitionKeys: (u = i.enter) == null ? void 0 : u.type,
2526
+ duration: r ? typeof r == "number" ? r : r.enter : 200,
2527
+ easing: p.easing ? p.easing : "ease-out"
2993
2528
  }
2994
2529
  };
2995
2530
  }
2996
2531
  }
2997
2532
  })();
2998
- return /* @__PURE__ */ r.createElement(
2999
- vt,
2533
+ return /* @__PURE__ */ d.createElement(
2534
+ qt,
3000
2535
  {
3001
2536
  timeout: {
3002
- enter: u && u.enter.duration || 0,
3003
- exit: u && u.exit.duration || 0
2537
+ enter: l && l.enter.duration || 0,
2538
+ exit: l && l.exit.duration || 0
3004
2539
  },
3005
2540
  in: t,
3006
2541
  appear: !0,
3007
2542
  mountOnEnter: n,
3008
2543
  unmountOnExit: o,
3009
- onEnter: (c) => c.clientHeight
2544
+ onEnter: (a) => a.clientHeight
3010
2545
  },
3011
- (c) => i && i(c, u && he.compose(c, u))
2546
+ (a) => s && s(a, l && _e.compose(a, l))
3012
2547
  );
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);
2548
+ }, Ks = Sr, kr = B(
2549
+ (c, i) => {
2550
+ var l = c, { className: e, children: t, onClick: n = () => {
2551
+ }, widgetName: o, activationOptions: r } = l, s = M(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
2552
+ const a = H(), u = () => {
2553
+ const { implementation: m } = a.get("$widget");
2554
+ return m.widgets.get(o);
3020
2555
  };
3021
- v(() => {
3022
- const f = m();
3023
- return f == null || f.activate(s).then(() => f.invoke("attach")), () => {
3024
- f == null || f.deactivate();
2556
+ w(() => {
2557
+ const m = u();
2558
+ return m == null || m.activate(r).then(() => m.invoke("attach")), () => {
2559
+ m == null || m.deactivate();
3025
2560
  };
3026
2561
  }, [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")
2562
+ const h = (m) => {
2563
+ const g = u(), x = m.currentTarget;
2564
+ if (g) {
2565
+ const v = () => {
2566
+ g.invoke("renderState").then(
2567
+ ($) => $ === fe.open ? g.invoke("close") : g.invoke("open")
3033
2568
  ).then(() => {
3034
- C.events.subscribeOnce("widget:area-rendered", (E, g) => {
3035
- c.get(
2569
+ g.events.subscribeOnce("widget:area-rendered", ($, f) => {
2570
+ a.get(
3036
2571
  "widgetDOMElement"
3037
- ) && C.events.dispatch("widget:modal-opened", {
3038
- name: C.name,
2572
+ ) && g.events.dispatch("widget:modal-opened", {
2573
+ name: g.name,
3039
2574
  ref: x
3040
2575
  });
3041
2576
  });
3042
2577
  });
3043
2578
  };
3044
- C.state === mt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(b) : b();
2579
+ g.state === Bt.Deactivated ? g.activate(r).then(() => g.invoke("attach")).then(v) : v();
3045
2580
  }
3046
- }, d = (f) => {
3047
- f.key === "Enter" && (f.preventDefault(), p(f));
2581
+ }, p = (m) => {
2582
+ m.key === "Enter" && (m.preventDefault(), h(m));
3048
2583
  };
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);
2584
+ return /* @__PURE__ */ d.createElement(
2585
+ Be,
2586
+ k(b({
2587
+ className: z(e, "humany-widget-link"),
2588
+ onKeyDown: p,
2589
+ onClick: (m) => {
2590
+ n(m), h(m);
3056
2591
  }
3057
- }, i), {
3058
- ref: a
2592
+ }, s), {
2593
+ ref: i
3059
2594
  }),
3060
2595
  t
3061
2596
  );
3062
2597
  }
3063
- ), jo = N(
2598
+ ), qs = B(
3064
2599
  ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3065
- const s = W(), i = se(() => {
3066
- if (!s)
2600
+ const r = H(), s = ge(() => {
2601
+ if (!r)
3067
2602
  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,
2603
+ const i = r.get("widgetDOMElement");
2604
+ return !i || !i.childElementCount ? null : i.children[0];
2605
+ }, [r]);
2606
+ return s ? /* @__PURE__ */ d.createElement(le, { elementId: e, parent: s }, /* @__PURE__ */ d.createElement(
2607
+ _r,
3073
2608
  {
3074
- className: M("humany-widget-overlay-outlet", t),
2609
+ className: z("humany-widget-overlay-outlet", t),
3075
2610
  ref: o
3076
2611
  },
3077
2612
  n
3078
2613
  )) : null;
3079
2614
  }
3080
- ), to = y.div`
2615
+ ), _r = y.div`
3081
2616
  background-color: #ffffff;
3082
2617
  position: absolute;
3083
2618
  top: 0;
@@ -3087,102 +2622,825 @@ const qr = (i) => {
3087
2622
  z-index: 10;
3088
2623
  width: 100%;
3089
2624
  height: 100%;
3090
- `, no = (e, t, n, o, s) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
2625
+ `, Dr = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3091
2626
  t,
3092
- ft(() => n)
3093
- ), yt(e, t, o || (() => {
3094
- }), t, s))), Xo = no;
2627
+ Ht(() => n)
2628
+ ), st(e, t, o || (() => {
2629
+ }), t, r))), Ys = Dr, Tr = (e, t, n, o, r) => pe(void 0, null, function* () {
2630
+ return (yield e.getAsync("componentResolver")).registerComponent(t, () => n), st(e, t, o || (() => {
2631
+ }), t, r);
2632
+ }), Us = Tr, Mr = `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}
2633
+ `;
2634
+ class Ct extends re {
2635
+ render() {
2636
+ return I`
2637
+ <!-- className={appendClassNames(className, 'humany-button')}
2638
+ {...convertToStringAttributes(other)} -->
2639
+ <button type="button" part="container" class="humany-button">
2640
+ <slot />
2641
+ </button>
2642
+ `;
2643
+ }
2644
+ }
2645
+ Ct.styles = ke(Mr);
2646
+ customElements.get("ui-button") || customElements.define("ui-button", Ct);
2647
+ var zr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, Pr = (e, t, n, o) => {
2648
+ for (var r = o > 1 ? void 0 : o ? Lr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2649
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2650
+ return o && r && zr(t, n, r), r;
2651
+ };
2652
+ class He extends re {
2653
+ constructor() {
2654
+ super(), this.html = "";
2655
+ }
2656
+ render() {
2657
+ return at` <div part="container" class="humany-html">${ct(this.html)}</div> `;
2658
+ }
2659
+ createRenderRoot() {
2660
+ return this;
2661
+ }
2662
+ }
2663
+ He.styles = [
2664
+ J`
2665
+ img {
2666
+ display: none;
2667
+ }
2668
+ `
2669
+ ];
2670
+ Pr([
2671
+ N({ type: String })
2672
+ ], He.prototype, "html", 2);
2673
+ customElements.get("ui-html") || customElements.define("ui-html", He);
2674
+ var Or = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, ie = (e, t, n, o) => {
2675
+ for (var r = o > 1 ? void 0 : o ? Rr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2676
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2677
+ return o && r && Or(t, n, r), r;
2678
+ };
2679
+ class Q extends re {
2680
+ constructor() {
2681
+ super(), this.symbol = {
2682
+ content: "",
2683
+ type: ""
2684
+ }, this.elementStyle = {}, this.size = 12, this.text = "", this.backgroundSize = "contain", this.styles = { minWidth: `${this.size}px` };
2685
+ }
2686
+ render() {
2687
+ const { type: t, content: n } = this.symbol, o = {
2688
+ "aria-label": this.text,
2689
+ role: "presentation",
2690
+ part: "container"
2691
+ };
2692
+ switch (t) {
2693
+ case "Uri": {
2694
+ const r = {
2695
+ backgroundSize: this.backgroundSize,
2696
+ backgroundImage: `url('${n}')`,
2697
+ backgroundRepeat: "no-repeat",
2698
+ backgroundPosition: "center",
2699
+ backgroundAttachment: "center"
2700
+ }, s = b(b({}, r), this.elementStyle);
2701
+ return I`
2702
+ <i
2703
+ class="humany-icon humany-custom-icon"
2704
+ title=${this.text}
2705
+ style=${A(s)}
2706
+ ${R(o)}
2707
+ />
2708
+ `;
2709
+ }
2710
+ case "Svg": {
2711
+ const r = {
2712
+ class: "humany-icon",
2713
+ width: `${this.size}`,
2714
+ fill: "none",
2715
+ xmlns: "http://www.w3.org/2000/svg"
2716
+ };
2717
+ switch (n) {
2718
+ case "search":
2719
+ return I`
2720
+ <svg
2721
+ viewBox="0 0 32 30"
2722
+ style=${A(this.styles)}
2723
+ ${R(o)}
2724
+ ${R(r)}
2725
+ >
2726
+ <circle
2727
+ cx="14.8457"
2728
+ cy="14.5175"
2729
+ r="8.14359"
2730
+ stroke="currentColor"
2731
+ transform="rotate(45 14.8457 14.5175)"
2732
+ />
2733
+ <line
2734
+ x1="21.1001"
2735
+ y1="20.4865"
2736
+ x2="26.5798"
2737
+ y2="25.9661"
2738
+ stroke="currentColor"
2739
+ />
2740
+ </svg>
2741
+ `;
2742
+ case "clear":
2743
+ return I`
2744
+ <svg
2745
+ viewBox="0 0 27 27"
2746
+ style=${A(this.styles)}
2747
+ ${R(o)}
2748
+ ${R(r)}
2749
+ >
2750
+ <circle
2751
+ cx="13.4351"
2752
+ cy="13.435"
2753
+ r="9"
2754
+ transform="rotate(45 13.4351 13.435)"
2755
+ stroke="currentColor"
2756
+ />
2757
+ <line
2758
+ x1="16.6172"
2759
+ y1="10.2531"
2760
+ x2="10.2533"
2761
+ y2="16.6171"
2762
+ stroke="currentColor"
2763
+ />
2764
+ <line
2765
+ x1="16.6171"
2766
+ y1="16.617"
2767
+ x2="10.2532"
2768
+ y2="10.2531"
2769
+ stroke="currentColor"
2770
+ />
2771
+ </svg>
2772
+ `;
2773
+ case "close":
2774
+ return I`
2775
+ <svg
2776
+ viewBox="0 0 13 13"
2777
+ style=${A(this.styles)}
2778
+ ${R(o)}
2779
+ ${R(r)}
2780
+ >
2781
+ <path d="M12.3068 0.50647L1.27246 11.7273" stroke="currentColor" />
2782
+ <path d="M12.2812 11.9473L1.24686 0.726451" stroke="currentColor" />
2783
+ </svg>
2784
+ `;
2785
+ case "caret-right":
2786
+ return I`
2787
+ <svg
2788
+ viewBox="0 0 14 14"
2789
+ style=${A(this.styles)}
2790
+ ${R(o)}
2791
+ ${R(r)}
2792
+ >
2793
+ <line
2794
+ x1="4.13"
2795
+ y1="1.05"
2796
+ x2="10.13"
2797
+ y2="7.05"
2798
+ stroke="currentColor"
2799
+ />
2800
+ <line
2801
+ x1="10.13"
2802
+ y1="6.95"
2803
+ x2="4.13"
2804
+ y2="12.95"
2805
+ stroke="currentColor"
2806
+ />
2807
+ </svg>
2808
+ `;
2809
+ case "caret-left":
2810
+ return I`
2811
+ <svg
2812
+ viewBox="0 0 14 14"
2813
+ style=${A(this.styles)}
2814
+ ${R(o)}
2815
+ ${R(r)}
2816
+ >
2817
+ <line
2818
+ x1="10.13"
2819
+ y1="12.95"
2820
+ x2="4.13"
2821
+ y2="6.95"
2822
+ stroke="currentColor"
2823
+ />
2824
+ <line
2825
+ x1="4.13"
2826
+ y1="7.05"
2827
+ x2="10.13"
2828
+ y2="1.05"
2829
+ stroke="currentColor"
2830
+ />
2831
+ </svg>
2832
+ `;
2833
+ case "caret-up":
2834
+ return this.styles.transform = "rotate(180deg)", I`
2835
+ <svg
2836
+ viewBox="0 0 14 14"
2837
+ style=${A(this.styles)}
2838
+ ${R(o)}
2839
+ ${R(r)}
2840
+ >
2841
+ <line
2842
+ x1="13.09"
2843
+ y1="3.99"
2844
+ x2="7.1"
2845
+ y2="9.99"
2846
+ stroke="currentColor"
2847
+ />
2848
+ <line
2849
+ x1="7.19"
2850
+ y1="9.99"
2851
+ x2="1.19"
2852
+ y2="3.99"
2853
+ stroke="currentColor"
2854
+ />
2855
+ </svg>
2856
+ `;
2857
+ case "caret-down":
2858
+ return I`
2859
+ <svg
2860
+ viewBox="0 0 14 14"
2861
+ style=${A(this.styles)}
2862
+ ${R(o)}
2863
+ ${R(r)}
2864
+ >
2865
+ <line
2866
+ x1="13.09"
2867
+ y1="3.99"
2868
+ x2="7.1"
2869
+ y2="9.99"
2870
+ stroke="currentcolor"
2871
+ />
2872
+ <line
2873
+ x1="7.19"
2874
+ y1="9.99"
2875
+ x2="1.19"
2876
+ y2="3.99"
2877
+ stroke="currentcolor"
2878
+ />
2879
+ </svg>
2880
+ `;
2881
+ case "send":
2882
+ return I`
2883
+ <svg
2884
+ viewBox="0 0 20 17"
2885
+ style=${A(this.styles)}
2886
+ ${R(o)}
2887
+ ${R(r)}
2888
+ >
2889
+ <path
2890
+ d="M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z"
2891
+ fill="currentColor"
2892
+ stroke="currentColor"
2893
+ strokeWidth="0.1"
2894
+ />
2895
+ </svg>
2896
+ `;
2897
+ }
2898
+ }
2899
+ case "FontAwesome":
2900
+ return I`<ui-icon .faIcon=${this.symbol.content} title=${this.text} />`;
2901
+ }
2902
+ return At;
2903
+ }
2904
+ }
2905
+ Q.styles = [
2906
+ J`
2907
+ :host {
2908
+ color: var(--icon-color, inherit);
2909
+ }
2910
+ i,
2911
+ svg {
2912
+ color: var(--icon-color, inherit);
2913
+ }
2914
+ `
2915
+ ];
2916
+ ie([
2917
+ N({ type: Object })
2918
+ ], Q.prototype, "symbol", 2);
2919
+ ie([
2920
+ N({ type: Object })
2921
+ ], Q.prototype, "elementStyle", 2);
2922
+ ie([
2923
+ N({ type: Number })
2924
+ ], Q.prototype, "size", 2);
2925
+ ie([
2926
+ N({ type: String })
2927
+ ], Q.prototype, "text", 2);
2928
+ ie([
2929
+ N({ type: String })
2930
+ ], Q.prototype, "backgroundSize", 2);
2931
+ ie([
2932
+ X()
2933
+ ], Q.prototype, "styles", 2);
2934
+ customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
2935
+ var Nr = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, Et = (e, t, n, o) => {
2936
+ for (var r = o > 1 ? void 0 : o ? Ir(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2937
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2938
+ return o && r && Nr(t, n, r), r;
2939
+ };
2940
+ const nt = (e) => `0${e}`.slice(-2);
2941
+ function Br(e, t) {
2942
+ 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)}`;
2943
+ return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
2944
+ }
2945
+ class Ce extends re {
2946
+ constructor() {
2947
+ super(), this.format = "hh:mm";
2948
+ }
2949
+ render() {
2950
+ return I`<span class="timestamp">${Br(this.timestamp, this.format)}</span>`;
2951
+ }
2952
+ createRenderRoot() {
2953
+ return this;
2954
+ }
2955
+ }
2956
+ Ce.styles = [
2957
+ J`
2958
+ :host {
2959
+ display: block;
2960
+ }
2961
+ `
2962
+ ];
2963
+ Et([
2964
+ N({ type: String })
2965
+ ], Ce.prototype, "timestamp", 2);
2966
+ Et([
2967
+ N({ type: String })
2968
+ ], Ce.prototype, "format", 2);
2969
+ customElements.get("ui-timestamp") || customElements.define("ui-timestamp", Ce);
2970
+ var Wr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, jr = (e, t, n, o) => {
2971
+ for (var r = o > 1 ? void 0 : o ? Hr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2972
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2973
+ return o && r && Wr(t, n, r), r;
2974
+ };
2975
+ const Vr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
2976
+ class je extends re {
2977
+ constructor() {
2978
+ super(), this.variant = "span";
2979
+ }
2980
+ _getTag(t) {
2981
+ const n = window.getComputedStyle(this).getPropertyValue(`--typography-${t}`);
2982
+ return n ? n.trim() : t;
2983
+ }
2984
+ render() {
2985
+ const t = Vr(this.variant) ? this._getTag(this.variant) : this.variant, n = ct(t);
2986
+ return at`
2987
+ <${n}>
2988
+ <slot />
2989
+ </${n}>
2990
+ `;
2991
+ }
2992
+ }
2993
+ je.styles = [
2994
+ J`
2995
+ h1,
2996
+ h2,
2997
+ h3,
2998
+ h4,
2999
+ h5,
3000
+ h6,
3001
+ p,
3002
+ span {
3003
+ margin: var(--typography-margin, 0);
3004
+ font-size: var(--typography-font-size, var(--fonts-normal));
3005
+ font-weight: var(--typography-font-weight, normal);
3006
+ line-height: var(--typography-line-height, inherit);
3007
+ color: var(--typography-color, var(--colors-text));
3008
+ }
3009
+ `
3010
+ ];
3011
+ jr([
3012
+ N({ type: String })
3013
+ ], je.prototype, "variant", 2);
3014
+ customElements.get("ui-typography") || customElements.define("ui-typography", je);
3015
+ class Xs {
3016
+ constructor(t) {
3017
+ (this.host = t).addController(this);
3018
+ }
3019
+ propertyChangeHandler(t) {
3020
+ const n = t.detail;
3021
+ Object.keys(n).filter((o) => `_${o}` in this).forEach((o) => this[`_${o}`] = n[o]);
3022
+ }
3023
+ hostConnected() {
3024
+ this.host.addEventListener("set-properties", this.propertyChangeHandler);
3025
+ }
3026
+ hostDisconnected() {
3027
+ this.host.removeEventListener("set-properties", this.propertyChangeHandler);
3028
+ }
3029
+ }
3030
+ class Zs {
3031
+ constructor(t) {
3032
+ this.nodeId = "", this._host = t;
3033
+ }
3034
+ initialize() {
3035
+ return pe(this, null, function* () {
3036
+ if (this.nodeId = this._host.getAttribute("nodeId"), !this.nodeId) {
3037
+ console.warn("Could not get node id in DataProvider.");
3038
+ return;
3039
+ }
3040
+ if (this.container = this._requestInstance("container"), !this.container) {
3041
+ console.warn("Could not get data in DataProvider. Container was not defined.");
3042
+ return;
3043
+ }
3044
+ const t = yield Le.getInstance(this.container);
3045
+ if (this.node = t.nodes.get(this.nodeId), !this.node) {
3046
+ console.warn(`Could not get component node with ID: ${this.nodeId}.`);
3047
+ return;
3048
+ }
3049
+ });
3050
+ }
3051
+ _requestInstance(t) {
3052
+ const n = new CustomEvent("request-instance", {
3053
+ detail: { key: t },
3054
+ bubbles: !0,
3055
+ composed: !0,
3056
+ cancelable: !0
3057
+ });
3058
+ return this._host.dispatchEvent(n), n.detail.instance;
3059
+ }
3060
+ }
3061
+ const Me = "context.connectEvent", Qs = ut(
3062
+ (e) => {
3063
+ class t extends e {
3064
+ constructor() {
3065
+ super(...arguments), this._injectedContexts = /* @__PURE__ */ new Map();
3066
+ }
3067
+ connectedCallback() {
3068
+ super.connectedCallback(), this._injectedContexts = /* @__PURE__ */ new Map();
3069
+ for (const o of this.constructor.inject)
3070
+ this._injectContext(o);
3071
+ }
3072
+ _injectContext(o) {
3073
+ const r = (i, c) => {
3074
+ this._contextValueChanged(o, i, c);
3075
+ }, s = new CustomEvent(Me, {
3076
+ bubbles: !0,
3077
+ cancelable: !0,
3078
+ composed: !0,
3079
+ detail: { key: o, connected: !1, callback: r }
3080
+ });
3081
+ this.dispatchEvent(s), s.detail.connected && this._injectedContexts.set(o, {
3082
+ unsubscribe: s.detail.unsubscribe
3083
+ });
3084
+ }
3085
+ _contextValueChanged(o, r, s) {
3086
+ r !== s && (this[o] = r);
3087
+ }
3088
+ disconnectedCallback() {
3089
+ for (const o of this._injectedContexts.values())
3090
+ o.unsubscribe();
3091
+ super.disconnectedCallback();
3092
+ }
3093
+ }
3094
+ return t;
3095
+ }
3096
+ ), Fr = ut(
3097
+ (e) => {
3098
+ class t extends e {
3099
+ constructor() {
3100
+ super(...arguments), this._providedContexts = /* @__PURE__ */ new Map();
3101
+ }
3102
+ connectedCallback() {
3103
+ super.connectedCallback(), this._providedContexts = /* @__PURE__ */ new Map();
3104
+ for (const o of this.constructor.provide)
3105
+ this._provideContext(o);
3106
+ }
3107
+ _provideContext(o) {
3108
+ const r = (s) => {
3109
+ const { detail: i } = s;
3110
+ if (i.key === o) {
3111
+ s.stopPropagation();
3112
+ const c = this._providedContexts.get(o);
3113
+ c.callbacks.add(i.callback), i.connected = !0, i.unsubscribe = () => {
3114
+ c.callbacks.delete(i.callback);
3115
+ }, i.callback(this[o]);
3116
+ }
3117
+ };
3118
+ this.addEventListener(Me, r), this._providedContexts.set(o, {
3119
+ listener: r,
3120
+ callbacks: /* @__PURE__ */ new Set()
3121
+ });
3122
+ }
3123
+ _updateContextValue(o, r, s) {
3124
+ if (this._providedContexts.has(o)) {
3125
+ const i = this._providedContexts.get(o);
3126
+ for (const c of i.callbacks)
3127
+ c(r, s);
3128
+ }
3129
+ }
3130
+ shouldUpdate(o) {
3131
+ const r = super.shouldUpdate(o);
3132
+ for (const [s, i] of o.entries())
3133
+ this.constructor.provide.includes(s) && this._updateContextValue(s, this[s], i);
3134
+ return r;
3135
+ }
3136
+ disconnectedCallback() {
3137
+ for (const o of this._providedContexts.values())
3138
+ this.removeEventListener(Me, o.listener);
3139
+ super.disconnectedCallback();
3140
+ }
3141
+ }
3142
+ return t;
3143
+ }
3144
+ );
3145
+ var Ar = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, ot = (e, t, n, o) => {
3146
+ for (var r = o > 1 ? void 0 : o ? Kr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3147
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
3148
+ return o && r && Ar(t, n, r), r;
3149
+ };
3150
+ const Gs = (e) => {
3151
+ class t extends e {
3152
+ constructor(...o) {
3153
+ super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => pe(this, null, function* () {
3154
+ this.hasPendingChildren = !0, this.pendingCount++, yield r.detail.promise, this.pendingCount--, this.hasPendingChildren = this.pendingCount !== 0;
3155
+ }));
3156
+ }
3157
+ }
3158
+ return ot([
3159
+ X()
3160
+ ], t.prototype, "hasPendingChildren", 2), ot([
3161
+ X()
3162
+ ], t.prototype, "pendingCount", 2), t;
3163
+ }, Js = (e) => {
3164
+ class t extends e {
3165
+ constructor(...o) {
3166
+ super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
3167
+ const s = r.detail.key;
3168
+ this._instances.has(s) && (r.detail.instance = this._instances.get(s), r.stopPropagation());
3169
+ });
3170
+ }
3171
+ provideInstance(o, r) {
3172
+ this._instances.set(o, r);
3173
+ }
3174
+ }
3175
+ return t;
3176
+ }, qr = (e) => {
3177
+ class t extends e {
3178
+ requestInstance(o) {
3179
+ const r = new CustomEvent("request-instance", {
3180
+ detail: { key: o },
3181
+ bubbles: !0,
3182
+ composed: !0,
3183
+ cancelable: !0
3184
+ });
3185
+ return this.dispatchEvent(r), r.detail.instance;
3186
+ }
3187
+ }
3188
+ return t;
3189
+ }, Yr = (e) => {
3190
+ var n, o, r, s, i, c, l, a, u, h, p, m, g, x, v, $, f, L, O, T, V;
3191
+ const t = {};
3192
+ 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;
3193
+ };
3194
+ var Ur = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, j = (e, t, n, o) => {
3195
+ for (var r = o > 1 ? void 0 : o ? Xr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3196
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
3197
+ return o && r && Ur(t, n, r), r;
3198
+ };
3199
+ const Zr = (e) => `w-${e}`, Qr = (e) => Object.entries(e).reduce((t, [n, o]) => {
3200
+ if (n.indexOf("css-") > -1) {
3201
+ const r = n.replace("css-", "");
3202
+ t[r] = o;
3203
+ }
3204
+ return t;
3205
+ }, {}), ei = (e) => {
3206
+ class t extends Fr(qr(e)) {
3207
+ constructor() {
3208
+ super(), this.listeners = [], this.setColumns = (o) => {
3209
+ this.columns = o;
3210
+ }, this.branch = "default", this.width = "full", this._columns = 1, this.columns = 1, this._width = 1, this._descriptor = null, this._properties = {}, this._layout = {};
3211
+ }
3212
+ static get provide() {
3213
+ return ["columns", "setColumns"];
3214
+ }
3215
+ setProperties(o) {
3216
+ o.columns && (this.columns = o.columns), this.dispatchEvent(
3217
+ new CustomEvent("set-properties", {
3218
+ bubbles: !1,
3219
+ composed: !1,
3220
+ cancelable: !1,
3221
+ detail: o
3222
+ })
3223
+ );
3224
+ }
3225
+ requestNodeDescriptor(o) {
3226
+ o.stopPropagation(), o.detail.descriptor = this._descriptor;
3227
+ }
3228
+ connectedCallback() {
3229
+ super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
3230
+ Le.getInstance(this.container),
3231
+ this.container.getAsync("componentResolver")
3232
+ ]).then((o) => {
3233
+ const r = o[0], s = o[1], i = r.nodes.get(this.nodeId || "");
3234
+ if (i) {
3235
+ 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(
3236
+ r.events.subscribe(
3237
+ "components:properties-changed",
3238
+ (u, h) => {
3239
+ var p;
3240
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._properties = h.node.attributes.properties, this.setProperties(i.attributes.properties));
3241
+ }
3242
+ )
3243
+ ), this.listeners.push(
3244
+ r.events.subscribe(
3245
+ "components:context-changed",
3246
+ (u, h) => {
3247
+ var p;
3248
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._context = h.node.attributes.context);
3249
+ }
3250
+ )
3251
+ ), this.listeners.push(
3252
+ r.events.subscribe(
3253
+ "components:layout-changed",
3254
+ (u, h) => {
3255
+ var p;
3256
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._layout = h.node.attributes.layout);
3257
+ }
3258
+ )
3259
+ );
3260
+ const c = i.mount(this.container);
3261
+ if (this.listeners.push(c), !s) {
3262
+ console.warn(
3263
+ "Could not find resolver. Make sure it is registered on the container."
3264
+ );
3265
+ return;
3266
+ }
3267
+ const l = Zr(this._descriptor.type);
3268
+ if (customElements.get(l))
3269
+ return;
3270
+ const a = s.getComponent(this._descriptor.type);
3271
+ if (!a) {
3272
+ console.warn("Component is missing or using incorrect import.");
3273
+ return;
3274
+ }
3275
+ return a().then((u) => {
3276
+ customElements.get(l) || customElements.define(l, u.default);
3277
+ });
3278
+ }
3279
+ });
3280
+ }
3281
+ disconnectedCallback() {
3282
+ this.listeners.forEach((o) => {
3283
+ o();
3284
+ }), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
3285
+ }
3286
+ _getContextStyles() {
3287
+ return this._context ? Yr(this._context) : {};
3288
+ }
3289
+ render() {
3290
+ const o = super.render(), r = this._getContextStyles(), s = Qr(this._properties), i = I`
3291
+ <style>
3292
+ :host {
3293
+ ${Object.entries(r).map(([c, l]) => J`
3294
+ ${ke(`${c}: ${l};`)}
3295
+ `)}
3296
+ }
3297
+
3298
+ :host > * {
3299
+ ${Object.entries(s).map(([c, l]) => J`
3300
+ ${ke(`${c}: ${l} !important;`)}
3301
+ `)}
3302
+ }
3303
+ </style>
3304
+ `;
3305
+ return I`
3306
+ <style>
3307
+ :host {
3308
+ --size: ${this._layout.size || "full"};
3309
+ --width: ${(this._layout.size || "full") === "full" ? "var(--columns)" : `min(var(--columns), ${this._layout.size})`};
3310
+ grid-column: span var(--width);
3311
+ }
3312
+ </style>
3313
+
3314
+ ${i} ${o}
3315
+ `;
3316
+ }
3317
+ }
3318
+ return j([
3319
+ N({ type: String })
3320
+ ], t.prototype, "nodeId", 2), j([
3321
+ N({ type: String })
3322
+ ], t.prototype, "branch", 2), j([
3323
+ N({ type: String })
3324
+ ], t.prototype, "width", 2), j([
3325
+ N({ type: Number })
3326
+ ], t.prototype, "_columns", 2), j([
3327
+ N({ type: Number })
3328
+ ], t.prototype, "columns", 2), j([
3329
+ X()
3330
+ ], t.prototype, "_width", 2), j([
3331
+ X()
3332
+ ], t.prototype, "_descriptor", 2), j([
3333
+ X()
3334
+ ], t.prototype, "_properties", 2), j([
3335
+ X()
3336
+ ], t.prototype, "_context", 2), j([
3337
+ X()
3338
+ ], t.prototype, "_layout", 2), t;
3339
+ };
3095
3340
  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
3341
+ dn as AnchorLink,
3342
+ be as Button,
3343
+ Ct as ButtonUi,
3344
+ ys as Checkbox,
3345
+ fn as ColumnContext,
3346
+ mt as ComponentNodeContext,
3347
+ gn as ComponentPropertyContext,
3348
+ Hs as Confirm,
3349
+ Qs as ConsumerMixin,
3350
+ pn as ContainerContext,
3351
+ bn as ConversationContext,
3352
+ Zs as DataProvider,
3353
+ vr as DateFormats,
3354
+ Rs as Drawer,
3355
+ no as DrawerAnimationType,
3356
+ Ns as Dropdown,
3357
+ go as Empty,
3358
+ Is as Grid,
3359
+ vt as Html,
3360
+ He as HtmlUi,
3361
+ ne as Icon,
3362
+ Bs as Input,
3363
+ Co as ItemList,
3364
+ Ws as ItemTree,
3365
+ rr as Lightbox,
3366
+ Be as Link,
3367
+ wo as List,
3368
+ ir as Modal,
3369
+ Xs as NodeConnector,
3370
+ js as NotFound,
3371
+ $t as Overlay,
3372
+ xo as Paragraph,
3373
+ Gs as PendingState,
3374
+ le as Portal,
3375
+ Js as ProviderMixin,
3376
+ qr as Requester,
3377
+ So as RouteLink,
3378
+ yn as RoutingContext,
3379
+ et as StyledText,
3380
+ ue as SymbolBadge,
3381
+ Q as SymbolBadgeUi,
3382
+ Vs as TabStop,
3383
+ Ne as Text,
3384
+ br as TextLink,
3385
+ Fs as Timestamp,
3386
+ Ce as TimestampUi,
3387
+ As as Tooltip,
3388
+ Ks as TransitionComponent,
3389
+ ae as Typography,
3390
+ je as TypographyUi,
3391
+ ei as WidgetComponentMixin,
3392
+ kr as WidgetLink,
3393
+ qs as WidgetOverlayOutlet,
3394
+ Z as borderTabStyle,
3395
+ Je as browser,
3396
+ Un as buttonCss,
3397
+ yt as contentBox,
3398
+ W as convertToStringAttributes,
3399
+ gs as createEmptyComponent,
3400
+ Ys as createReactComponent,
3401
+ Us as createWebComponent,
3402
+ ln as defaultRenderInstructions,
3403
+ nn as embeddedLinkMapper,
3404
+ rn as filterCssProps,
3405
+ on as filterCssPropsStyle,
3406
+ sn as genericHashLink,
3407
+ Os as genericHtml,
3408
+ ye as headingElement,
3409
+ cn as imageLightboxRenderer,
3410
+ zs as invertedHoverButton,
3411
+ Ps as itemList,
3412
+ Xn as linkTabStyle,
3413
+ Zn as list,
3414
+ Ls as paddedBorderTabStyle,
3415
+ an as processHtmlString,
3416
+ _e as transitionComposer,
3417
+ bs as useAction,
3418
+ vs as useChildren,
3419
+ $s as useColumns,
3420
+ ws as useComponent,
3421
+ Pe as useComponentDescriptor,
3422
+ Oe as useComponentNode,
3423
+ se as useComponentPlatform,
3424
+ H as useContainer,
3425
+ Tn as useContext,
3426
+ xs as useConversation,
3427
+ Cs as useDispatch,
3428
+ K as useEventListener,
3429
+ Pn as useEvents,
3430
+ q as useIsMounted,
3431
+ Es as useIsTabbing,
3432
+ te as useKeyPress,
3433
+ Ss as useLayout,
3434
+ ht as usePrevious,
3435
+ ks as useProperties,
3436
+ _s as useRenderState,
3437
+ Ds as useRouteData,
3438
+ pt as useRouter,
3439
+ ft as useScroll,
3440
+ Ts as useSettings,
3441
+ gt as useToggle,
3442
+ Ms as useTransitionEnd,
3443
+ Re as useUniqueMenu,
3444
+ ve as useWidgetEvent
3187
3445
  };
3188
3446
  //# sourceMappingURL=index.js.map