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

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,58 +1,58 @@
1
- var Rt = Object.defineProperty, _t = Object.defineProperties;
2
- var Tt = Object.getOwnPropertyDescriptors;
3
- var ue = Object.getOwnPropertySymbols;
4
- var Ae = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
5
- var je = (e, t, n) => t in e ? Rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, f = (e, t) => {
1
+ var zt = Object.defineProperty, Lt = Object.defineProperties;
2
+ var Pt = Object.getOwnPropertyDescriptors;
3
+ var he = Object.getOwnPropertySymbols;
4
+ var Ye = Object.prototype.hasOwnProperty, Ue = Object.prototype.propertyIsEnumerable;
5
+ var qe = (e, t, n) => t in e ? zt(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
- Ae.call(t, n) && je(e, n, t[n]);
8
- if (ue)
9
- for (var n of ue(t))
10
- Fe.call(t, n) && je(e, n, t[n]);
7
+ Ye.call(t, n) && qe(e, n, t[n]);
8
+ if (he)
9
+ for (var n of he(t))
10
+ Ue.call(t, n) && qe(e, n, t[n]);
11
11
  return e;
12
- }, k = (e, t) => _t(e, Tt(t));
13
- var S = (e, t) => {
12
+ }, S = (e, t) => Lt(e, Pt(t));
13
+ var T = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
- Ae.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
- if (e != null && ue)
18
- for (var o of ue(e))
19
- t.indexOf(o) < 0 && Fe.call(e, o) && (n[o] = e[o]);
16
+ Ye.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 && Ue.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- var de = (e, t, n) => new Promise((o, r) => {
23
- var i = (u) => {
22
+ var pe = (e, t, n) => new Promise((o, r) => {
23
+ var s = (l) => {
24
24
  try {
25
- l(n.next(u));
26
- } catch (c) {
27
- r(c);
25
+ c(n.next(l));
26
+ } catch (a) {
27
+ r(a);
28
28
  }
29
- }, a = (u) => {
29
+ }, i = (l) => {
30
30
  try {
31
- l(n.throw(u));
32
- } catch (c) {
33
- r(c);
31
+ c(n.throw(l));
32
+ } catch (a) {
33
+ r(a);
34
34
  }
35
- }, l = (u) => u.done ? o(u.value) : Promise.resolve(u.value).then(i, a);
36
- l((n = n.apply(e, t)).next());
35
+ }, c = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(s, i);
36
+ c((n = n.apply(e, t)).next());
37
37
  });
38
- import { Container as zt, WidgetState as Dt } from "@webprovisions/platform";
39
- import s, { forwardRef as P, createContext as te, useContext as J, useState as E, useEffect as w, useRef as R, useCallback as _, useImperativeHandle as Me, useMemo as he, Component as Ht, lazy as Bt } from "react";
40
- import { ComponentPlatform as Se, asDescriptor as Je, createEventSubscriber as Pt, ComponentQuery as Vt, WidgetRenderState as me, extendComponent as et } from "@telia-ace/widget-core";
41
- import { css as L, keyframes as tt } from "@emotion/react";
42
- import C from "@emotion/styled";
43
- import { kebabCase as Nt, appendClassNames as M, uuid as se, removeNullAndUndefinedValues as Ke, Logger as we } from "@telia-ace/widget-utilities";
44
- import { LitElement as fe, html as O, unsafeCSS as nt, css as ge, nothing as It } from "lit";
45
- import { property as N, state as Y } from "lit/decorators.js";
46
- import { html as ot, unsafeStatic as rt } from "lit/static-html.js";
47
- import { spread as B } from "@open-wc/lit-helpers";
48
- import { styleMap as U } from "lit/directives/style-map.js";
49
- import { CSSTransition as st, Transition as Ot } from "react-transition-group";
50
- import { createPortal as Wt } from "react-dom";
51
- import { HistoryMode as qe, getSpecificWidgetPath as Zt } from "@telia-ace/widget-routing";
52
- import { Link as xe } from "react-router-dom";
53
- import Ue from "htmr";
54
- import { dedupeMixin as it } from "@open-wc/dedupe-mixin";
55
- const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exiting" || e === "exited", G = {
38
+ import { Container as Nt, WidgetState as Rt } from "@webprovisions/platform";
39
+ import d, { forwardRef as B, createContext as oe, useContext as J, useState as C, useEffect as w, useRef as _, useCallback as M, useImperativeHandle as Te, useMemo as ge, Component as Ot, lazy as It } from "react";
40
+ import { ComponentPlatform as ze, asDescriptor as nt, createEventSubscriber as Bt, ComponentQuery as Wt, WidgetRenderState as fe, extendComponent as ot } from "@telia-ace/widget-core";
41
+ import { css as k, keyframes as rt } from "@emotion/react";
42
+ import y from "@emotion/styled";
43
+ import { kebabCase as Ht, appendClassNames as z, uuid as ae, removeNullAndUndefinedValues as Xe, Logger as Ee } from "@telia-ace/widget-utilities";
44
+ import { LitElement as ce, html as I, css as te, unsafeCSS as ke, nothing as jt } from "lit";
45
+ import { property as O, customElement as Vt, state as X } from "lit/decorators.js";
46
+ import { html as st, unsafeStatic as it } 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 at, Transition as Ft } from "react-transition-group";
50
+ import { createPortal as At } from "react-dom";
51
+ import { HistoryMode as Ze, getSpecificWidgetPath as Kt } from "@telia-ace/widget-routing";
52
+ import { Link as Ce } from "react-router-dom";
53
+ import Qe from "htmr";
54
+ import { dedupeMixin as ct } from "@open-wc/dedupe-mixin";
55
+ const qt = (e) => e === "entering" || e === "entered", Yt = (e) => e === "exiting" || e === "exited", G = {
56
56
  fade: {
57
57
  in: "opacity: 1;",
58
58
  out: "opacity: 0;"
@@ -77,29 +77,29 @@ const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exitin
77
77
  in: "transform: scale(1);",
78
78
  out: "transform: scale(0);"
79
79
  }
80
- }, Ft = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], $e = {
80
+ }, Ut = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], Se = {
81
81
  compose: (e = "exited", t) => {
82
- const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i = Ft.indexOf(r[0]) > -1 ? "transform" : "opacity";
83
- if (jt(e))
84
- return r && r.length > 0 ? L`
85
- ${r && r.length > 0 && r.map((l) => G[l] ? G[l].in : "")}
86
- transition: ${i} ${n.duration}ms ${n.easing};
82
+ const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = Ut.indexOf(r[0]) > -1 ? "transform" : "opacity";
83
+ if (qt(e))
84
+ return r && r.length > 0 ? k`
85
+ ${r && r.length > 0 && r.map((c) => G[c] ? G[c].in : "")}
86
+ transition: ${s} ${n.duration}ms ${n.easing};
87
87
  ` : "";
88
- const a = r && r.length > 0 && L`
89
- ${r.map((l) => G[l] ? G[l].out : "")}
88
+ const i = r && r.length > 0 && k`
89
+ ${r.map((c) => G[c] ? G[c].out : "")}
90
90
  `;
91
- if (At(e)) {
92
- const l = o.transitionKeys.split(" ");
93
- return l && l.length > 0 && e === "exiting" ? L`
94
- ${a};
95
- ${l.map((u) => G[u] ? G[u].out : "")}
96
- transition: ${i} ${o.duration}ms ${o.easing};
97
- ` : a;
91
+ if (Yt(e)) {
92
+ const c = o.transitionKeys.split(" ");
93
+ return c && c.length > 0 && e === "exiting" ? k`
94
+ ${i};
95
+ ${c.map((l) => G[l] ? G[l].out : "")}
96
+ transition: ${s} ${o.duration}ms ${o.easing};
97
+ ` : i;
98
98
  }
99
99
  },
100
100
  composeViewTransition: (e, t, n) => {
101
101
  if (t === "slide")
102
- return $e.compose(e, {
102
+ return Se.compose(e, {
103
103
  enter: {
104
104
  transitionKeys: n === "forth" ? "slide-right" : "slide-left",
105
105
  duration: 500
@@ -110,7 +110,7 @@ const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exitin
110
110
  }
111
111
  });
112
112
  if (t === "fade")
113
- return $e.compose(e, {
113
+ return Se.compose(e, {
114
114
  enter: {
115
115
  transitionKeys: "fade",
116
116
  duration: 500
@@ -123,124 +123,124 @@ const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exitin
123
123
  },
124
124
  get: (e) => G[e]
125
125
  };
126
- var Ee = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(Ee || {});
127
- const Ye = () => {
126
+ var _e = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(_e || {});
127
+ const Ge = () => {
128
128
  const {
129
129
  opr: e,
130
130
  opera: t,
131
131
  InstallTrigger: n,
132
132
  HTMLElement: o,
133
133
  safari: r,
134
- documentMode: i,
135
- StyleMedia: a,
136
- chrome: l,
137
- CSS: u
138
- } = window, c = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
139
- if (c)
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)
140
140
  return "opera";
141
141
  if (n)
142
142
  return "firefox";
143
- const m = ((h) => h.toString() === "[object SafariRemoteNotification]")(!r || typeof r != "undefined" && r.pushNotification);
144
- 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)
145
145
  return "safari";
146
- const p = !!i;
147
- if (p)
146
+ const h = !!s;
147
+ if (h)
148
148
  return "internet-explorer";
149
- if (!p && !!a)
149
+ if (!h && !!i)
150
150
  return "edge";
151
- const d = !!l && (!!l.webstore || !!l.runtime);
152
- if (d)
151
+ const p = !!c && (!!c.webstore || !!c.runtime);
152
+ if (p)
153
153
  return "chrome";
154
- if (d && navigator.userAgent.indexOf("Edg") !== -1)
154
+ if (p && navigator.userAgent.indexOf("Edg") !== -1)
155
155
  return "edge-chromium";
156
- if ((d || c) && !!u)
156
+ if ((p || a) && !!l)
157
157
  return "blink";
158
- }, Kt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
158
+ }, Xt = ["string", "number"], W = (e) => Object.keys(e).reduce((t, n) => {
159
159
  const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
160
- if (Kt.indexOf(r) > -1) {
161
- const i = n.substring(0, 5);
162
- i === "data-" || i === "aria-" ? t[Nt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
160
+ if (Xt.indexOf(r) > -1) {
161
+ const s = n.substring(0, 5);
162
+ s === "data-" || s === "aria-" ? t[Ht(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
163
163
  } else
164
164
  t[n] = o;
165
165
  return t;
166
- }, {}), qt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ s.createElement(uo, f({}, t)) : null, as = qt, Ut = (e) => new RegExp("^#", "i").test(e), Yt = (e) => (o) => {
167
- var r = o, { children: t } = r, n = S(r, ["children"]);
166
+ }, {}), Zt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ d.createElement(ho, b({}, t)) : null, us = Zt, Qt = (e) => new RegExp("^#", "i").test(e), Gt = (e) => (o) => {
167
+ var r = o, { children: t } = r, n = T(r, ["children"]);
168
168
  const {
169
- implementation: i,
170
- name: a
171
- } = e.get("$widget"), { href: l = "" } = n;
172
- if (Ut(l))
173
- return /* @__PURE__ */ s.createElement(rn, { smooth: !0, to: l }, t);
174
- const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
175
- if (m && m.length >= 4) {
176
- const p = m[4];
177
- if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
178
- return /* @__PURE__ */ s.createElement(wr, { widgetName: p }, t);
169
+ implementation: s,
170
+ name: i
171
+ } = e.get("$widget"), { href: c = "" } = n;
172
+ if (Qt(c))
173
+ return /* @__PURE__ */ d.createElement(cn, { 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(Er, { widgetName: h }, t);
179
179
  }
180
- return /* @__PURE__ */ s.createElement("a", f({}, n), t);
181
- }, Xt = Yt, at = (e) => {
180
+ return /* @__PURE__ */ d.createElement("a", b({}, n), t);
181
+ }, Jt = Gt, lt = (e) => {
182
182
  const t = {};
183
183
  return Object.keys(e).forEach((n) => {
184
184
  n.indexOf("css-") > -1 && (t[n] = e[n]);
185
185
  }), t;
186
- }, Qt = (e) => {
186
+ }, en = (e) => {
187
187
  let t = "";
188
- return Object.keys(at(e)).forEach((n) => {
188
+ return Object.keys(lt(e)).forEach((n) => {
189
189
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
190
- }), L`
190
+ }), k`
191
191
  ${t}
192
192
  `;
193
- }, Gt = at, Jt = (e, t) => {
193
+ }, tn = lt, nn = (e, t) => {
194
194
  let n = "";
195
195
  const o = () => {
196
196
  n = "";
197
- }, r = (p) => {
198
- const d = document.getElementById(n);
199
- return d !== null ? (p(d), o(), !0) : !1;
200
- }, i = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
201
- e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
202
- ), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
203
- return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ s.createElement(t, k(f({}, c), { onClick: i }), e.children);
204
- }, pe = (e) => (t, n) => {
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 = T(u, ["scroll", "smooth", "to"]);
203
+ return t === "a" && (a.href = "javascript:;"), /* @__PURE__ */ d.createElement(t, S(b({}, a), { onClick: s }), e.children);
204
+ }, ye = (e) => (t, n) => {
205
205
  let o = t, r = "";
206
206
  if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
207
207
  o = t;
208
208
  else {
209
- const l = t.match(/h1|h2|h3|h4|h5|h6/);
210
- if (l != null && l[0]) {
211
- o = l[0];
212
- const [u] = t.split(o);
213
- r = 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;
214
214
  }
215
215
  }
216
- const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, r, e.theme.typographyVariantMapping || {});
217
- return L`
218
- ${a} {
216
+ const i = ((c, l, a) => a[c] ? `${l}${a[c]}` : `${l}${c}`)(o, r, e.theme.typographyVariantMapping || {});
217
+ return k`
218
+ ${i} {
219
219
  ${n}
220
220
  }
221
221
  `;
222
222
  };
223
- function en(e, t) {
224
- return t ? Ue(e, t) : Ue(e);
223
+ function on(e, t) {
224
+ return t ? Qe(e, t) : Qe(e);
225
225
  }
226
- const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBody: e }), nn = (e, t) => ({
226
+ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBody: e }), sn = (e, t) => ({
227
227
  transform: {
228
- a: Xt(e),
229
- img: tn(t)
228
+ a: Jt(e),
229
+ img: rn(t)
230
230
  }
231
- }), on = (e) => Jt(e, "a"), rn = on, ye = P((r, o) => {
232
- var i = r, { className: e, children: t } = i, n = S(i, ["className", "children"]);
233
- return /* @__PURE__ */ s.createElement(
234
- sn,
235
- k(f({
231
+ }), an = (e) => nn(e, "a"), cn = an, be = B((r, o) => {
232
+ var s = r, { className: e, children: t } = s, n = T(s, ["className", "children"]);
233
+ return /* @__PURE__ */ d.createElement(
234
+ ln,
235
+ S(b({
236
236
  type: "button",
237
- className: M(e, "humany-button")
238
- }, V(n)), {
237
+ className: z(e, "humany-button")
238
+ }, W(n)), {
239
239
  ref: o
240
240
  }),
241
241
  t
242
242
  );
243
- }), sn = C.button`
243
+ }), ln = y.button`
244
244
  -webkit-appearance: button;
245
245
  text-transform: none;
246
246
  overflow: visible;
@@ -253,156 +253,156 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
253
253
  line-height: normal;
254
254
  margin: 0;
255
255
  padding: 0;
256
- `, an = (r) => {
257
- var i = r, {
256
+ `, un = (r) => {
257
+ var s = r, {
258
258
  onChange: e = () => {
259
259
  },
260
260
  onEnter: t = () => {
261
261
  },
262
262
  className: n
263
- } = i, o = S(i, [
263
+ } = s, o = T(s, [
264
264
  "onChange",
265
265
  "onEnter",
266
266
  "className"
267
267
  ]);
268
- return /* @__PURE__ */ s.createElement(
268
+ return /* @__PURE__ */ d.createElement(
269
269
  "input",
270
- f({
271
- className: M(n, "humany-checkbox"),
272
- onKeyDown: (a) => {
273
- a.key === "Enter" && t(a);
270
+ b({
271
+ className: z(n, "humany-checkbox"),
272
+ onKeyDown: (i) => {
273
+ i.key === "Enter" && t(i);
274
274
  },
275
- onChange: (a) => e(a.target.value, a.currentTarget.checked)
276
- }, V(o))
275
+ onChange: (i) => e(i.target.value, i.currentTarget.checked)
276
+ }, W(o))
277
277
  );
278
- }, cs = an, cn = te(new zt()), ln = te(1), ct = te({
278
+ }, ds = un, dn = oe(new Nt()), mn = oe(1), ut = oe({
279
279
  id: "",
280
280
  type: "",
281
281
  name: "",
282
282
  branch: ""
283
- }), un = te({}), dn = te(null), mn = te(null), hn = () => J(ct), Re = hn, pn = () => J(cn), I = pn, fn = (e, t) => {
284
- const n = Re().id, o = I();
285
- return (r, i) => {
286
- (t || o).getAsync("actionResolver").then((a) => {
287
- a.action(e || n, r, i);
283
+ }), hn = oe({}), pn = oe(null), fn = oe(null), gn = () => J(ut), Le = gn, yn = () => J(dn), H = yn, bn = (e, t) => {
284
+ const n = Le().id, o = H();
285
+ return (r, s) => {
286
+ (t || o).getAsync("actionResolver").then((i) => {
287
+ i.action(e || n, r, s);
288
288
  });
289
289
  };
290
- }, ls = fn, gn = (e) => {
291
- const t = J(ct), n = ne(), [o, r] = E();
290
+ }, ms = bn, vn = (e) => {
291
+ const t = J(ut), n = re(), [o, r] = C();
292
292
  return w(() => {
293
293
  if ((e || t.id) && n) {
294
- const i = n.nodes.get(e || t.id);
295
- r(i);
294
+ const s = n.nodes.get(e || t.id);
295
+ r(s);
296
296
  }
297
297
  }, [e, t.id, n]), o;
298
- }, _e = gn, yn = () => {
299
- const e = R(!1);
298
+ }, Pe = vn, $n = () => {
299
+ const e = _(!1);
300
300
  return w(() => (e.current = !0, () => {
301
301
  e.current = !1;
302
302
  }), []), e;
303
- }, F = yn, Cn = (e) => {
304
- const t = I(), [n, o] = E(null), r = F();
303
+ }, q = $n, wn = (e) => {
304
+ const t = H(), [n, o] = C(null), r = q();
305
305
  return w(() => {
306
- Se.getInstance(e || t).then((i) => {
307
- r.current && o(i);
306
+ ze.getInstance(e || t).then((s) => {
307
+ r.current && o(s);
308
308
  });
309
309
  }, [r]), n;
310
- }, ne = Cn, bn = () => {
311
- const e = _e(), t = ne(), [n, o] = E([]), r = F(), i = _(
312
- (a) => {
313
- if (t && r.current && a) {
314
- const l = t.getBranch(a), u = a.getChildren(l).map((c) => Je(c));
315
- o(u);
310
+ }, re = wn, xn = () => {
311
+ const e = Pe(), t = re(), [n, o] = C([]), r = q(), s = M(
312
+ (i) => {
313
+ if (t && r.current && i) {
314
+ const c = t.getBranch(i), l = i.getChildren(c).map((a) => nt(a));
315
+ o(l);
316
316
  }
317
317
  },
318
318
  [r, t, o, e]
319
319
  );
320
320
  return w(() => {
321
- e && i(e);
321
+ e && s(e);
322
322
  }, [e, t]), w(() => {
323
323
  if (t) {
324
- const [a, l] = Pt(t.events);
325
- return a("components:set-layout", (u, c) => {
326
- (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
327
- }), a("components:node-appended", (u, c) => {
328
- (e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
329
- }), a("components:node-removed", (u, { parentNode: c }) => {
330
- (c === e || c === t.nodes.root) && i(c);
324
+ const [i, c] = Bt(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);
331
331
  }), () => {
332
- l();
332
+ c();
333
333
  };
334
334
  }
335
- }, [e, t, i]), n;
336
- }, us = bn, vn = () => J(ln), ds = vn, wn = (e, t) => {
337
- const n = Re(), o = I(), [r, i] = E(void 0), a = F(), l = e || n.type || "";
335
+ }, [e, t, s]), n;
336
+ }, hs = xn, En = () => J(mn), ps = En, Cn = (e, t) => {
337
+ const n = Le(), o = H(), [r, s] = C(void 0), i = q(), c = e || n.type || "";
338
338
  return w(() => {
339
- if (l) {
340
- let u;
341
- return (t || o).getAsync("componentResolver").then((c) => {
342
- if (a.current) {
343
- const m = c.getComponent(l);
344
- i(m);
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);
345
345
  }
346
- u = c.registerResolver(l, (m) => {
347
- a.current && i(m);
346
+ l = a.registerResolver(c, (u) => {
347
+ i.current && s(u);
348
348
  });
349
349
  }), () => {
350
- u && u();
350
+ l && l();
351
351
  };
352
352
  }
353
- }, [a, l, t, o]), r;
354
- }, ms = wn, xn = (e) => {
355
- const t = _e(e), n = ne(), [o, r] = E({}), i = F();
353
+ }, [i, c, t, o]), r;
354
+ }, fs = Cn, kn = (e) => {
355
+ const t = Pe(e), n = re(), [o, r] = C({}), s = q();
356
356
  return w(() => {
357
- t && i.current && r(t.attributes.context);
358
- }, [i, t]), w(() => {
357
+ t && s.current && r(t.attributes.context);
358
+ }, [s, t]), w(() => {
359
359
  if (n) {
360
- const a = n.events.subscribe(
360
+ const i = n.events.subscribe(
361
361
  "components:context-changed",
362
- (l, u) => {
363
- t === u.node && i.current && r(u.node.attributes.context);
362
+ (c, l) => {
363
+ t === l.node && s.current && r(l.node.attributes.context);
364
364
  }
365
365
  );
366
366
  return () => {
367
- a();
367
+ i();
368
368
  };
369
369
  }
370
- }, [i, n, t]), o;
371
- }, $n = xn, En = () => J(mn), hs = En, kn = () => {
372
- const e = ne(), t = Re(), [n, o] = E([]), [r, i] = E();
370
+ }, [s, n, t]), o;
371
+ }, Sn = kn, _n = () => J(fn), gs = _n, Mn = () => {
372
+ const e = re(), t = Le(), [n, o] = C([]), [r, s] = C();
373
373
  return w(() => {
374
374
  if (e && t) {
375
- const a = new Vt(e).withId(t.id), l = e.actions(a, t.type || se());
376
- i(l), n !== null && (n.forEach((u) => {
377
- l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
375
+ const i = new Wt(e).withId(t.id), c = e.actions(i, t.type || ae());
376
+ s(c), n !== null && (n.forEach((l) => {
377
+ c.dispatch(l.key, l.data).then((a) => l.resolve(a)).catch((a) => l.reject(a));
378
378
  }), o(null));
379
379
  }
380
- }, [e, t.id]), (a, l) => n !== null ? new Promise((u, c) => {
380
+ }, [e, t.id]), (i, c) => n !== null ? new Promise((l, a) => {
381
381
  n.push({
382
- key: a,
383
- data: l,
384
- resolve: u,
385
- reject: c
382
+ key: i,
383
+ data: c,
384
+ resolve: l,
385
+ reject: a
386
386
  });
387
- }) : r.dispatch(a, l);
388
- }, ps = kn, A = (e, t, n = window, o = () => !0) => {
389
- const r = R(() => {
387
+ }) : r.dispatch(i, c);
388
+ }, ys = Mn, K = (e, t, n = window, o = () => !0) => {
389
+ const r = _(() => {
390
390
  });
391
391
  w(() => {
392
392
  r.current = t;
393
393
  }, [t]), w(() => {
394
394
  if (!(n && o()))
395
395
  return;
396
- const a = (l) => r.current(l);
397
- return n.addEventListener(e, a), () => {
398
- n.removeEventListener(e, a);
396
+ const i = (c) => r.current(c);
397
+ return n.addEventListener(e, i), () => {
398
+ n.removeEventListener(e, i);
399
399
  };
400
400
  }, [e, n]);
401
- }, Ln = (e) => {
402
- const t = I(), { events: n } = (e || t).get("$widget");
401
+ }, Dn = (e) => {
402
+ const t = H(), { events: n } = (e || t).get("$widget");
403
403
  return n;
404
- }, Mn = Ln, Sn = () => {
405
- const [e, t] = E(!1);
404
+ }, Tn = Dn, zn = () => {
405
+ const [e, t] = C(!1);
406
406
  return w(() => {
407
407
  const n = () => {
408
408
  t(!1);
@@ -413,117 +413,117 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
413
413
  window.removeEventListener("keydown", o), window.removeEventListener("click", n);
414
414
  };
415
415
  }, []), e;
416
- }, fs = Sn, Rn = (e, t) => {
417
- const [n, o] = E(!1), r = _(
418
- (a) => {
419
- const { key: l } = a;
420
- l === e && (o(!0), t && t(a));
416
+ }, bs = zn, Ln = (e, t) => {
417
+ const [n, o] = C(!1), r = M(
418
+ (i) => {
419
+ const { key: c } = i;
420
+ c === e && (o(!0), t && t(i));
421
421
  },
422
422
  [o, t]
423
- ), i = _(
424
- ({ key: a }) => {
425
- a === e && o(!1);
423
+ ), s = M(
424
+ ({ key: i }) => {
425
+ i === e && o(!1);
426
426
  },
427
427
  [o]
428
428
  );
429
- return A("keydown", r, window), A("keyup", i, window), n;
430
- }, ee = Rn, _n = (e) => {
431
- const t = _e(e), n = ne(), [o, r] = E({}), i = F();
429
+ return K("keydown", r, window), K("keyup", s, window), n;
430
+ }, ee = Ln, Pn = (e) => {
431
+ const t = Pe(e), n = re(), [o, r] = C({}), s = q();
432
432
  return w(() => {
433
- t && i.current && r(t.attributes.layout);
434
- }, [t, i]), w(() => {
433
+ t && s.current && r(t.attributes.layout);
434
+ }, [t, s]), w(() => {
435
435
  if (n) {
436
- const a = n.events.subscribe(
436
+ const i = n.events.subscribe(
437
437
  "components:layout-changed",
438
- (l, u) => {
439
- t === u.node && i.current && r(u.node.attributes.layout);
438
+ (c, l) => {
439
+ t === l.node && s.current && r(l.node.attributes.layout);
440
440
  }
441
441
  );
442
442
  return () => {
443
- a();
443
+ i();
444
444
  };
445
445
  }
446
- }, [n, i, t]), o;
447
- }, gs = _n, Tn = (e) => {
448
- const t = R();
446
+ }, [n, s, t]), o;
447
+ }, vs = Pn, Nn = (e) => {
448
+ const t = _();
449
449
  return w(() => {
450
450
  t.current = e;
451
451
  }), t.current;
452
- }, lt = Tn, zn = () => J(un), ys = zn, Dn = (e) => {
453
- const [t, n] = E(), o = I(), r = F();
452
+ }, dt = Nn, Rn = () => J(hn), $s = Rn, On = (e) => {
453
+ const [t, n] = C(), o = H(), r = q();
454
454
  return w(() => {
455
- let i;
456
- const a = (e || o).get("$widget");
457
- if (!a)
455
+ let s;
456
+ const i = (e || o).get("$widget");
457
+ if (!i)
458
458
  return;
459
- const { name: l, invoke: u } = a;
460
- return u("renderState").then((c) => {
461
- r.current && n(c);
462
- }), (e || o).getAsync("actionResolver").then((c) => {
463
- i = c.subscribe(l, (m, p) => {
464
- 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) {
465
465
  case "close":
466
466
  case "open":
467
467
  r.current && n(
468
- p === "open" ? me.open : me.closed
468
+ h === "open" ? fe.open : fe.closed
469
469
  );
470
470
  break;
471
471
  case "hide":
472
- r.current && n(me.hidden);
472
+ r.current && n(fe.hidden);
473
473
  }
474
474
  });
475
475
  }), () => {
476
- i && i();
476
+ s && s();
477
477
  };
478
478
  }, [r]), t;
479
- }, Cs = Dn, Hn = () => J(dn), ut = Hn, Bn = (e) => {
480
- const t = I(), n = ut(), [o, r] = E({ name: "", params: {} }), i = F();
479
+ }, ws = On, In = () => J(pn), mt = In, Bn = (e) => {
480
+ const t = H(), n = mt(), [o, r] = C({ name: "", params: {} }), s = q();
481
481
  return w(() => {
482
- const a = (e || t).get("$widget");
483
- if (!a)
482
+ const i = (e || t).get("$widget");
483
+ if (!i)
484
484
  return;
485
- const { events: l } = a;
486
- return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
487
- if (i.current) {
488
- const { name: p, params: d } = m;
489
- Ke(d), r({ 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
+ Xe(p), r({ name: h, params: p });
490
490
  }
491
491
  });
492
- }, [i, e, t]), w(() => {
493
- if (n && n.history && i.current) {
494
- const a = n.getRouteData(), { name: l, params: u } = a;
495
- Ke(u), r({ name: l, params: u });
496
- }
497
- }, [n, i]), o;
498
- }, bs = Bn, dt = (e) => {
499
- 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
+ Xe(l), r({ name: c, params: l });
496
+ }
497
+ }, [n, s]), o;
498
+ }, xs = Bn, ht = (e) => {
499
+ const t = _(), n = _(0);
500
500
  let o;
501
- const r = _(() => {
502
- var c;
503
- (c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
504
- var m;
505
- (m = t.current) == null || m.classList.remove("humany-scrolling");
501
+ const r = M(() => {
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");
506
506
  }, 500);
507
- }, [t]), i = _(
508
- (c) => {
509
- n.current = c.touches[0].clientY;
507
+ }, [t]), s = M(
508
+ (a) => {
509
+ n.current = a.touches[0].clientY;
510
510
  },
511
511
  [t]
512
- ), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = _(
513
- (c) => {
514
- 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 = M(
513
+ (a) => {
514
+ if (!a.cancelable)
515
515
  return;
516
- const m = c.touches[0].clientY, p = a(c.target);
517
- if (!p)
516
+ const u = a.touches[0].clientY, h = i(a.target);
517
+ if (!h)
518
518
  return;
519
- const d = p.scrollTop, h = n.current - m < 0 ? "up" : "down", y = d <= 0 && h === "up", x = d >= p.scrollHeight - p.offsetHeight && h === "down";
520
- (y || x) && c.preventDefault(), n.current = m;
519
+ 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;
521
521
  },
522
522
  [t, n]
523
523
  );
524
- return A("scroll", r, t.current, () => t.current && e), A("touchstart", i, t.current, () => t.current && e), A("touchmove", u, t.current, () => t.current && e), e ? [Pn, t] : ["", t];
525
- }, Pn = `
526
- overflow-y: ${Ye() === Ee.Chrome || Ye() === Ee.EdgeChromium ? "overlay" : "auto"};
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 ? [Wn, t] : ["", t];
525
+ }, Wn = `
526
+ overflow-y: ${Ge() === _e.Chrome || Ge() === _e.EdgeChromium ? "overlay" : "auto"};
527
527
  overflow-x: hidden;
528
528
  -ms-overflow-style: none; /* IE 10+ */
529
529
  scrollbar-width: thin; /* Firefox */
@@ -550,65 +550,65 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
550
550
  background-color: #7F7F7F;
551
551
  }
552
552
  }
553
- `, Vn = () => {
554
- const [e, t] = E(null), n = I(), o = F();
553
+ `, Hn = () => {
554
+ const [e, t] = C(null), n = H(), o = q();
555
555
  return w(() => {
556
556
  n.get("settings").then((r) => {
557
557
  o.current && t(r);
558
558
  });
559
559
  }, [o]), e;
560
- }, vs = Vn, Nn = (e = !1) => {
561
- const [t, n] = E(e), o = _((r) => {
562
- n(typeof r == "boolean" ? r : (i) => !i);
560
+ }, Es = Hn, jn = (e = !1) => {
561
+ const [t, n] = C(e), o = M((r) => {
562
+ n(typeof r == "boolean" ? r : (s) => !s);
563
563
  }, []);
564
564
  return [t, o];
565
- }, mt = Nn, ws = (e) => {
566
- const t = I(), n = ne(), o = t.get("widgetDOMElement"), [r, i] = E(null), [a, l] = E(null), u = F();
565
+ }, pt = jn, Cs = (e) => {
566
+ const t = H(), n = re(), o = t.get("widgetDOMElement"), [r, s] = C(null), [i, c] = C(null), l = q();
567
567
  w(() => {
568
- if (n && u.current) {
569
- const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
570
- if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
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))
571
571
  e();
572
572
  else {
573
- const d = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), h = d(p == null ? void 0 : p.id);
574
- h && i(h);
575
- const y = d(m == null ? void 0 : m.id);
576
- y && l(y);
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);
577
577
  }
578
578
  }
579
- }, [n, t, u]);
580
- const c = _(
581
- (m) => {
582
- u.current && (m.target === r || m.target === a) && e();
579
+ }, [n, t, l]);
580
+ const a = M(
581
+ (u) => {
582
+ l.current && (u.target === r || u.target === i) && e();
583
583
  },
584
- [e, u, r, a]
584
+ [e, l, r, i]
585
585
  );
586
- A("transitionend", c, r), A("transitionend", c, a);
587
- }, In = (e, t, n = [], o) => {
588
- const r = Mn(o);
586
+ K("transitionend", a, r), K("transitionend", a, i);
587
+ }, Vn = (e, t, n = [], o) => {
588
+ const r = Tn(o);
589
589
  return w(() => {
590
590
  if (r) {
591
- const i = r.subscribe(e, t);
591
+ const s = r.subscribe(e, t);
592
592
  return () => {
593
- i();
593
+ s();
594
594
  };
595
595
  }
596
- }, [r].concat(n)), (i) => r == null ? void 0 : r.dispatch(e, i);
597
- }, Ce = In, On = (e, t) => {
598
- const n = Ce("widget:menu-toggled", (o, r) => {
596
+ }, [r].concat(n)), (s) => r == null ? void 0 : r.dispatch(e, s);
597
+ }, ve = Vn, Fn = (e, t) => {
598
+ const n = ve("widget:menu-toggled", (o, r) => {
599
599
  r !== e && t();
600
600
  });
601
601
  return () => n(e);
602
- }, Te = On, Wn = (o) => {
603
- var r = o, { className: e, children: t } = r, n = S(r, ["className", "children"]);
604
- return /* @__PURE__ */ s.createElement(
602
+ }, Ne = Fn, An = (o) => {
603
+ var r = o, { className: e, children: t } = r, n = T(r, ["className", "children"]);
604
+ return /* @__PURE__ */ d.createElement(
605
605
  "span",
606
- f({
607
- className: M(e, "humany-text")
608
- }, V(n)),
606
+ b({
607
+ className: z(e, "humany-text")
608
+ }, W(n)),
609
609
  t
610
610
  );
611
- }, ze = Wn, ht = (e) => L`
611
+ }, Re = An, ft = (e) => k`
612
612
  display: flex;
613
613
  justify-content: center;
614
614
  flex-direction: column;
@@ -617,9 +617,9 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
617
617
  border: ${e.theme.border};
618
618
  box-shadow: ${e.theme.boxShadow || "none"};
619
619
  ${e["data-loading"] && "min-height: 150px;"}
620
- `, Zn = (e) => {
620
+ `, Kn = (e) => {
621
621
  var t, n, o;
622
- return L`
622
+ return k`
623
623
  cursor: pointer;
624
624
  text-align: center;
625
625
  border: none;
@@ -629,11 +629,11 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
629
629
  font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
630
630
  font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
631
631
  `;
632
- }, xs = (e) => {
633
- var a;
634
- const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: i } = e;
635
- return L`
636
- ${Zn(e)}
632
+ }, ks = (e) => {
633
+ var i;
634
+ const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
635
+ return k`
636
+ ${Kn(e)}
637
637
  border: 1px solid ${o ? n : t};
638
638
  background-color: ${o ? t : n};
639
639
 
@@ -646,10 +646,10 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
646
646
  a {
647
647
  transition: color 200ms ease-out;
648
648
  color: ${o ? n : t};
649
- font-size: ${(a = r.fonts) == null ? void 0 : a.normal};
649
+ font-size: ${(i = r.fonts) == null ? void 0 : i.normal};
650
650
  }
651
651
 
652
- ${!i && L`
652
+ ${!s && k`
653
653
  &:hover {
654
654
  background-color: ${t};
655
655
  color: ${n};
@@ -663,27 +663,27 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
663
663
  }
664
664
 
665
665
  &:focus-visible {
666
- ${X(e)};
666
+ ${Z(e)};
667
667
  }
668
668
  `}
669
669
  `;
670
- }, X = (e) => {
670
+ }, Z = (e) => {
671
671
  var t, n, o;
672
- return L`
672
+ return k`
673
673
  outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
674
674
  color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
675
675
  border-color: transparent;
676
676
  `;
677
- }, jn = (e) => L`
678
- ${X(e)}
677
+ }, qn = (e) => k`
678
+ ${Z(e)}
679
679
  text-decoration: underline;
680
- `, $s = (e) => {
680
+ `, Ss = (e) => {
681
681
  var t;
682
- return L`
683
- ${X(e)}
682
+ return k`
683
+ ${Z(e)}
684
684
  outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
685
685
  `;
686
- }, De = C(ye)`
686
+ }, Oe = y(be)`
687
687
  position: absolute;
688
688
  top: ${(e) => {
689
689
  var t;
@@ -703,7 +703,7 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
703
703
  }
704
704
 
705
705
  &:focus-visible {
706
- ${X}
706
+ ${Z}
707
707
  padding: ${(e) => {
708
708
  var t;
709
709
  return (t = e.theme.sizes) == null ? void 0 : t.small;
@@ -711,7 +711,7 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
711
711
  height: 15px;
712
712
  box-sizing: content-box;
713
713
  }
714
- `, Xe = C(ze)`
714
+ `, Je = y(Re)`
715
715
  font-size: ${(e) => {
716
716
  var t;
717
717
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
@@ -722,9 +722,9 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
722
722
  var t;
723
723
  return (t = e.theme.colors) == null ? void 0 : t.text;
724
724
  }};
725
- `, An = (e) => {
725
+ `, Yn = (e) => {
726
726
  var t;
727
- return L`
727
+ return k`
728
728
  padding: 0;
729
729
  margin: 0;
730
730
  list-style: none;
@@ -744,13 +744,13 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
744
744
  margin: 0;
745
745
  }
746
746
  `;
747
- }, Es = (e) => {
747
+ }, _s = (e) => {
748
748
  var t, n, o, r;
749
- return L`
749
+ return k`
750
750
  > div {
751
- ${pe(e)(
751
+ ${ye(e)(
752
752
  "> h1",
753
- L`
753
+ k`
754
754
  margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
755
755
  font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
756
756
  font-weight: normal;
@@ -760,11 +760,11 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
760
760
  )}
761
761
  }
762
762
  > ul {
763
- ${An(e)}
763
+ ${Yn(e)}
764
764
  }
765
- ${pe(e)(
765
+ ${ye(e)(
766
766
  "h1",
767
- L`
767
+ k`
768
768
  display: flex;
769
769
  align-items: center;
770
770
  i {
@@ -780,9 +780,9 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
780
780
  `
781
781
  )}
782
782
  `;
783
- }, ks = (e) => {
784
- var t, n, o, r, i, a;
785
- return L`
783
+ }, Ms = (e) => {
784
+ var t, n, o, r, s, i;
785
+ return k`
786
786
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
787
787
  font-weight: 300;
788
788
  line-height: 1.5em;
@@ -809,7 +809,7 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
809
809
  a {
810
810
  color: ${(o = e.theme.colors) == null ? void 0 : o.link};
811
811
  &:focus-visible {
812
- ${jn(e)};
812
+ ${qn(e)};
813
813
  }
814
814
  }
815
815
 
@@ -824,533 +824,30 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
824
824
  }
825
825
 
826
826
  p:first-child {
827
- 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};
828
828
  }
829
829
 
830
830
  p:last-child {
831
- 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;
832
832
  }
833
833
 
834
834
  p:only-child {
835
835
  margin: 0;
836
836
  }
837
837
  `;
838
- }, Fn = ({
838
+ }, Un = ({
839
839
  elementId: e = "humany-portal-elements",
840
840
  parent: t = document.body,
841
841
  children: n
842
842
  }) => {
843
- const [o] = E(() => {
843
+ const [o] = C(() => {
844
844
  const r = document.getElementById(e) || document.createElement("div");
845
845
  return r.id = e, r;
846
846
  });
847
847
  return w(() => (t.appendChild(o), () => {
848
848
  o.childElementCount <= 1 && t.removeChild(o);
849
- }), [o]), Wt(n, o);
850
- }, ie = Fn, Kn = (l) => {
851
- var u = l, {
852
- text: e = "",
853
- backgroundSize: t = "contain",
854
- size: n = 12,
855
- symbol: o = {
856
- content: "",
857
- type: ""
858
- },
859
- elementStyle: r = {},
860
- className: i
861
- } = u, a = S(u, [
862
- "text",
863
- "backgroundSize",
864
- "size",
865
- "symbol",
866
- "elementStyle",
867
- "className"
868
- ]);
869
- const { type: c, content: m } = o, p = {
870
- "aria-label": e,
871
- role: "presentation"
872
- };
873
- switch (c) {
874
- case "Uri": {
875
- const d = {
876
- backgroundSize: t,
877
- backgroundImage: `url('${m}')`,
878
- backgroundRepeat: "no-repeat",
879
- backgroundPosition: "center",
880
- backgroundAttachment: "center"
881
- };
882
- return /* @__PURE__ */ s.createElement(
883
- "i",
884
- f(f({
885
- className: M(i, "humany-icon", "humany-custom-icon"),
886
- title: e,
887
- style: f(f({}, d), r)
888
- }, p), a)
889
- );
890
- }
891
- case "Svg": {
892
- const d = k(f({
893
- className: M(i, "humany-icon"),
894
- width: `${n}`,
895
- fill: "none",
896
- xmlns: "http://www.w3.org/2000/svg"
897
- }, a), {
898
- ref: null
899
- }), h = { minWidth: `${n}` };
900
- switch (m) {
901
- case "search":
902
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 32 30" }, d), /* @__PURE__ */ s.createElement(
903
- "circle",
904
- {
905
- cx: "14.8457",
906
- cy: "14.5175",
907
- r: "8.14359",
908
- transform: "rotate(45 14.8457 14.5175)"
909
- }
910
- ), /* @__PURE__ */ s.createElement("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" }));
911
- case "clear":
912
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 27 27" }, d), /* @__PURE__ */ s.createElement(
913
- "circle",
914
- {
915
- cx: "13.4351",
916
- cy: "13.435",
917
- r: "9",
918
- transform: "rotate(45 13.4351 13.435)",
919
- stroke: "black"
920
- }
921
- ), /* @__PURE__ */ s.createElement(
922
- "line",
923
- {
924
- x1: "16.6172",
925
- y1: "10.2531",
926
- x2: "10.2533",
927
- y2: "16.6171",
928
- stroke: "black"
929
- }
930
- ), /* @__PURE__ */ s.createElement(
931
- "line",
932
- {
933
- x1: "16.6171",
934
- y1: "16.617",
935
- x2: "10.2532",
936
- y2: "10.2531",
937
- stroke: "black"
938
- }
939
- ));
940
- case "close":
941
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 13 13" }, d), /* @__PURE__ */ s.createElement("path", { d: "M12.3068 0.50647L1.27246 11.7273", stroke: "black" }), /* @__PURE__ */ s.createElement("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" }));
942
- case "caret-right":
943
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" }));
944
- case "caret-left":
945
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" }));
946
- case "caret-up":
947
- return /* @__PURE__ */ s.createElement(qn, f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
948
- case "caret-down":
949
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
950
- case "back":
951
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 18 18" }, d), /* @__PURE__ */ s.createElement(
952
- "line",
953
- {
954
- y1: "-0.5",
955
- x2: "11.724",
956
- y2: "-0.5",
957
- transform: "matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",
958
- stroke: "white"
959
- }
960
- ), /* @__PURE__ */ s.createElement(
961
- "line",
962
- {
963
- y1: "-0.5",
964
- x2: "11.724",
965
- y2: "-0.5",
966
- transform: "matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",
967
- stroke: "white"
968
- }
969
- ));
970
- case "alert":
971
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ s.createElement("circle", { cx: "9.5", cy: "9.5", r: "9.5", fill: "#CA0813" }), /* @__PURE__ */ s.createElement(
972
- "path",
973
- {
974
- 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",
975
- fill: "white"
976
- }
977
- ));
978
- case "send":
979
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 20 17" }, d), /* @__PURE__ */ s.createElement(
980
- "path",
981
- {
982
- d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
983
- fill: "#A6A6A6",
984
- stroke: "#A6A6A6",
985
- strokeWidth: "0.1"
986
- }
987
- ));
988
- case "chat":
989
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "-2 -3 40 40" }, d), /* @__PURE__ */ s.createElement(
990
- "path",
991
- {
992
- strokeWidth: "0",
993
- fillRule: "evenodd",
994
- clipRule: "evenodd",
995
- 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",
996
- fill: "currentColor"
997
- }
998
- ), /* @__PURE__ */ s.createElement(
999
- "path",
1000
- {
1001
- strokeWidth: "0",
1002
- 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",
1003
- fill: "currentColor"
1004
- }
1005
- ), /* @__PURE__ */ s.createElement(
1006
- "path",
1007
- {
1008
- strokeWidth: "0",
1009
- 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",
1010
- fill: "currentColor"
1011
- }
1012
- ), /* @__PURE__ */ s.createElement(
1013
- "path",
1014
- {
1015
- strokeWidth: "0",
1016
- 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",
1017
- fill: "currentColor"
1018
- }
1019
- ));
1020
- case "chat-new":
1021
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 26 24" }, d), /* @__PURE__ */ s.createElement(
1022
- "path",
1023
- {
1024
- 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",
1025
- fill: "currentColor"
1026
- }
1027
- ), /* @__PURE__ */ s.createElement(
1028
- "path",
1029
- {
1030
- 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",
1031
- fill: "currentColor"
1032
- }
1033
- ));
1034
- case "agent":
1035
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 36 30" }, d), /* @__PURE__ */ s.createElement(
1036
- "path",
1037
- {
1038
- 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",
1039
- stroke: "white"
1040
- }
1041
- ), /* @__PURE__ */ s.createElement(
1042
- "path",
1043
- {
1044
- 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",
1045
- stroke: "white"
1046
- }
1047
- ), /* @__PURE__ */ s.createElement(
1048
- "path",
1049
- {
1050
- d: "M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",
1051
- stroke: "white"
1052
- }
1053
- ), /* @__PURE__ */ s.createElement("circle", { cx: "17.4074", cy: "26.9795", r: "2.05271", stroke: "white" }), /* @__PURE__ */ s.createElement(
1054
- "path",
1055
- {
1056
- 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",
1057
- stroke: "white"
1058
- }
1059
- ));
1060
- case "minimize":
1061
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 -10 22 22" }, d), /* @__PURE__ */ s.createElement("path", { d: "M0 1H22", stroke: "white" }));
1062
- case "sorting":
1063
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 18 14" }, d), /* @__PURE__ */ s.createElement("path", { d: "M18 1H0M8 13H0M13 7H0" }));
1064
- case "copy":
1065
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 19 17" }, d), /* @__PURE__ */ s.createElement(
1066
- "rect",
1067
- {
1068
- x: "0.5",
1069
- y: "0.5",
1070
- width: "11.6667",
1071
- height: "11.6014",
1072
- rx: "1.5",
1073
- fill: "white"
1074
- }
1075
- ), /* @__PURE__ */ s.createElement(
1076
- "rect",
1077
- {
1078
- x: "6.83301",
1079
- y: "4.89868",
1080
- width: "11.6667",
1081
- height: "11.6014",
1082
- rx: "1.5",
1083
- fill: "white"
1084
- }
1085
- ));
1086
- case "print":
1087
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 16 17" }, d), /* @__PURE__ */ s.createElement(
1088
- "path",
1089
- {
1090
- 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",
1091
- fill: "white",
1092
- stroke: "black"
1093
- }
1094
- ), /* @__PURE__ */ s.createElement(
1095
- "path",
1096
- {
1097
- 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",
1098
- fill: "white",
1099
- stroke: "black"
1100
- }
1101
- ), /* @__PURE__ */ s.createElement(
1102
- "path",
1103
- {
1104
- 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",
1105
- fill: "white",
1106
- stroke: "black"
1107
- }
1108
- ), /* @__PURE__ */ s.createElement(
1109
- "line",
1110
- {
1111
- x1: "5.29004",
1112
- y1: "10.8323",
1113
- x2: "10.7101",
1114
- y2: "10.8323",
1115
- stroke: "black"
1116
- }
1117
- ), /* @__PURE__ */ s.createElement(
1118
- "line",
1119
- {
1120
- x1: "5.29004",
1121
- y1: "12.5242",
1122
- x2: "10.7101",
1123
- y2: "12.5242",
1124
- stroke: "black"
1125
- }
1126
- ), /* @__PURE__ */ s.createElement(
1127
- "line",
1128
- {
1129
- x1: "5.29004",
1130
- y1: "14.2161",
1131
- x2: "10.7101",
1132
- y2: "14.2161",
1133
- stroke: "black"
1134
- }
1135
- ));
1136
- case "language":
1137
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ s.createElement(
1138
- "path",
1139
- {
1140
- 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",
1141
- stroke: "black"
1142
- }
1143
- ));
1144
- case "information":
1145
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 17 17" }, d), /* @__PURE__ */ s.createElement(
1146
- "path",
1147
- {
1148
- 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",
1149
- fill: "black"
1150
- }
1151
- ), /* @__PURE__ */ s.createElement(
1152
- "path",
1153
- {
1154
- 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",
1155
- fill: "black"
1156
- }
1157
- ), /* @__PURE__ */ s.createElement(
1158
- "path",
1159
- {
1160
- fillRule: "evenodd",
1161
- clipRule: "evenodd",
1162
- 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",
1163
- fill: "black"
1164
- }
1165
- ));
1166
- case "options":
1167
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 16 2" }, d), /* @__PURE__ */ s.createElement("circle", { cx: "15", cy: "1", r: "1", transform: "rotate(90 15 1)", fill: "black" }), /* @__PURE__ */ s.createElement("circle", { cx: "1", cy: "1", r: "1", transform: "rotate(90 1 1)", fill: "black" }), /* @__PURE__ */ s.createElement("circle", { cx: "8", cy: "1", r: "1", transform: "rotate(90 8 1)", fill: "black" }));
1168
- case "browse":
1169
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }), /* @__PURE__ */ s.createElement(
1170
- "path",
1171
- {
1172
- fillRule: "evenodd",
1173
- clipRule: "evenodd",
1174
- 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",
1175
- fill: "white"
1176
- }
1177
- ), /* @__PURE__ */ s.createElement(
1178
- "path",
1179
- {
1180
- fillRule: "evenodd",
1181
- clipRule: "evenodd",
1182
- 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",
1183
- fill: "white"
1184
- }
1185
- ), /* @__PURE__ */ s.createElement(
1186
- "path",
1187
- {
1188
- fillRule: "evenodd",
1189
- clipRule: "evenodd",
1190
- 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",
1191
- fill: "white"
1192
- }
1193
- ), /* @__PURE__ */ s.createElement(
1194
- "path",
1195
- {
1196
- fillRule: "evenodd",
1197
- clipRule: "evenodd",
1198
- 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",
1199
- fill: "white"
1200
- }
1201
- ));
1202
- case "video":
1203
- return h.minWidth && typeof h.minWidth == "number" && (h.minWidth = `${h.minWidth}px`), /* @__PURE__ */ s.createElement("svg", k(f({ viewBox: "0 0 25 25" }, d), { style: h }), /* @__PURE__ */ s.createElement(
1204
- "path",
1205
- {
1206
- 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",
1207
- stroke: "currentColor",
1208
- strokeWidth: "1.5",
1209
- strokeLinecap: "round",
1210
- strokeLinejoin: "round"
1211
- }
1212
- ), /* @__PURE__ */ s.createElement(
1213
- "path",
1214
- {
1215
- fillRule: "evenodd",
1216
- clipRule: "evenodd",
1217
- 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",
1218
- stroke: "currentColor",
1219
- strokeWidth: "1.5",
1220
- strokeLinecap: "round",
1221
- strokeLinejoin: "round"
1222
- }
1223
- ));
1224
- case "star-empty":
1225
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ s.createElement(
1226
- "path",
1227
- {
1228
- 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",
1229
- stroke: "black"
1230
- }
1231
- ));
1232
- case "star-filled":
1233
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ s.createElement(
1234
- "path",
1235
- {
1236
- 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",
1237
- fill: "black",
1238
- stroke: "black"
1239
- }
1240
- ));
1241
- case "cog-wheel":
1242
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1243
- "path",
1244
- {
1245
- fillRule: "evenodd",
1246
- clipRule: "evenodd",
1247
- 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",
1248
- fill: "black"
1249
- }
1250
- ));
1251
- case "zoom-in":
1252
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1253
- "path",
1254
- {
1255
- fillRule: "evenodd",
1256
- clipRule: "evenodd",
1257
- 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",
1258
- fill: "white"
1259
- }
1260
- ), /* @__PURE__ */ s.createElement(
1261
- "path",
1262
- {
1263
- fillRule: "evenodd",
1264
- clipRule: "evenodd",
1265
- 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",
1266
- fill: "white"
1267
- }
1268
- ), /* @__PURE__ */ s.createElement(
1269
- "path",
1270
- {
1271
- fillRule: "evenodd",
1272
- clipRule: "evenodd",
1273
- 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",
1274
- fill: "white"
1275
- }
1276
- ));
1277
- case "zoom-out":
1278
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1279
- "path",
1280
- {
1281
- fillRule: "evenodd",
1282
- clipRule: "evenodd",
1283
- 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",
1284
- fill: "white"
1285
- }
1286
- ), /* @__PURE__ */ s.createElement(
1287
- "path",
1288
- {
1289
- fillRule: "evenodd",
1290
- clipRule: "evenodd",
1291
- 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",
1292
- fill: "white"
1293
- }
1294
- ));
1295
- case "download":
1296
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1297
- "path",
1298
- {
1299
- fillRule: "evenodd",
1300
- clipRule: "evenodd",
1301
- 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",
1302
- fill: "white"
1303
- }
1304
- ));
1305
- case "lightbox-close":
1306
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1307
- "path",
1308
- {
1309
- xmlns: "http://www.w3.org/2000/svg",
1310
- fillRule: "evenodd",
1311
- clipRule: "evenodd",
1312
- 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",
1313
- fill: "white"
1314
- }
1315
- ));
1316
- case "pagination-left":
1317
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
1318
- "path",
1319
- {
1320
- fillRule: "evenodd",
1321
- clipRule: "evenodd",
1322
- 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",
1323
- fill: "#222222"
1324
- }
1325
- ));
1326
- case "pagination-right":
1327
- return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement("path", { d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }));
1328
- }
1329
- return null;
1330
- }
1331
- case "FontAwesome":
1332
- return /* @__PURE__ */ s.createElement(
1333
- fo,
1334
- f({
1335
- className: i,
1336
- faIcon: m,
1337
- title: e
1338
- }, a)
1339
- );
1340
- default:
1341
- case "Text":
1342
- return e ? /* @__PURE__ */ s.createElement(
1343
- "i",
1344
- f(f({
1345
- className: M(i, "humany-letter-symbol"),
1346
- title: e
1347
- }, p), a),
1348
- e.substring(0, 2)
1349
- ) : null;
1350
- }
1351
- }, qn = C.svg`
1352
- transform: rotate(180deg);
1353
- `, ae = Kn, Un = {
849
+ }), [o]), At(n, o);
850
+ }, le = Un, Xn = () => /* @__PURE__ */ d.createElement("div", null, "Todo:"), ue = Xn, Zn = {
1354
851
  h1: "h1",
1355
852
  h2: "h2",
1356
853
  h3: "h3",
@@ -1359,92 +856,92 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
1359
856
  h6: "h6",
1360
857
  p: "p",
1361
858
  span: "span"
1362
- }, Yn = ({ variant: e, component: t, className: n, children: o }) => {
1363
- const { typographyVariantMapping: r = {} } = $n(), i = f(f({}, Un), r), a = t || i[e] || "span";
1364
- return /* @__PURE__ */ s.createElement(Xn, { className: n, as: a }, o);
1365
- }, Xn = C.span``, re = Yn;
1366
- var Qn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Qn || {});
1367
- const Gn = 300, Jn = ({
859
+ }, Qn = ({ variant: e, component: t, className: n, children: o }) => {
860
+ const { typographyVariantMapping: r = {} } = Sn(), s = b(b({}, Zn), r), i = t || s[e] || "span";
861
+ return /* @__PURE__ */ d.createElement(Gn, { className: n, as: i }, o);
862
+ }, Gn = y.span``, ie = Qn;
863
+ var Jn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Jn || {});
864
+ const eo = 300, to = ({
1368
865
  className: e,
1369
866
  children: t,
1370
867
  header: n,
1371
868
  onToggle: o,
1372
869
  trigger: r,
1373
- fullScreen: i = !1,
1374
- closeButtonAriaLabel: a,
1375
- animation: l = {
870
+ fullScreen: s = !1,
871
+ closeButtonAriaLabel: i,
872
+ animation: c = {
1376
873
  type: "slide-in-bottom"
1377
874
  }
1378
875
  }) => {
1379
- const { duration: u = Gn } = l, c = R(), m = R(), [p, d] = dt(!0), [h, y] = mt(), x = lt(h), b = R(se());
876
+ const { duration: l = eo } = c, a = _(), u = _(), [h, p] = ht(!0), [m, g] = pt(), x = dt(m), v = _(ae());
1380
877
  w(() => {
1381
- o && o(h);
1382
- }, [h]);
1383
- const v = ee("Escape");
878
+ o && o(m);
879
+ }, [m]);
880
+ const $ = ee("Escape");
1384
881
  w(() => {
1385
- v && y(!1);
1386
- }, [v]), A(
882
+ $ && g(!1);
883
+ }, [$]), K(
1387
884
  "click",
1388
- (H) => {
1389
- const { target: T } = H;
1390
- !m.current || !d.current || !T || m.current !== T && d.current !== T && !d.current.contains(T) && !m.current.contains(T) && y(!1);
885
+ (N) => {
886
+ const { target: D } = N;
887
+ !u.current || !p.current || !D || u.current !== D && p.current !== D && !p.current.contains(D) && !u.current.contains(D) && g(!1);
1391
888
  },
1392
889
  window
1393
890
  );
1394
- const g = Te(b.current, () => {
1395
- y(!1);
891
+ const f = Ne(v.current, () => {
892
+ g(!1);
1396
893
  });
1397
- Ce("router:changed", () => {
1398
- y(!1);
894
+ ve("router:changed", () => {
895
+ g(!1);
1399
896
  }), w(() => {
1400
- h && c.current ? c.current.focus() : !h && m.current && x && m.current.focus();
1401
- }, [h, c.current, m.current]);
1402
- const z = so[l.type];
1403
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
1404
- st,
897
+ m && a.current ? a.current.focus() : !m && u.current && x && u.current.focus();
898
+ }, [m, a.current, u.current]);
899
+ const L = ao[c.type];
900
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
901
+ at,
1405
902
  {
1406
- in: h,
903
+ in: m,
1407
904
  className: "humany-drawer-transition",
1408
905
  classNames: "humany-drawer-transition",
1409
906
  unmountOnExit: !0,
1410
- timeout: u
907
+ timeout: l
1411
908
  },
1412
- /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
1413
- z,
909
+ /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
910
+ L,
1414
911
  {
1415
- duration: u,
1416
- fullScreen: i,
1417
- className: M(
912
+ duration: l,
913
+ fullScreen: s,
914
+ className: z(
1418
915
  e,
1419
916
  "humany-drawer",
1420
- `humany-drawer-${b.current}`
917
+ `humany-drawer-${v.current}`
1421
918
  ),
1422
919
  clientHeight: document.body.clientHeight,
1423
- css: p,
1424
- ref: d
920
+ css: h,
921
+ ref: p
1425
922
  },
1426
- /* @__PURE__ */ s.createElement(
1427
- De,
923
+ /* @__PURE__ */ d.createElement(
924
+ Oe,
1428
925
  {
1429
- onClick: () => y(!1),
926
+ onClick: () => g(!1),
1430
927
  tabIndex: 0,
1431
- ref: c,
1432
- "aria-label": a
928
+ ref: a,
929
+ "aria-label": i
1433
930
  },
1434
- /* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
931
+ /* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
1435
932
  ),
1436
- !!n && /* @__PURE__ */ s.createElement(eo, { variant: "h1", className: "humany-drawer-header" }, n),
933
+ !!n && /* @__PURE__ */ d.createElement(no, { variant: "h1", className: "humany-drawer-header" }, n),
1437
934
  t
1438
935
  ))
1439
- ), s.cloneElement(r, {
1440
- onClick: (H) => {
1441
- y(), g();
936
+ ), d.cloneElement(r, {
937
+ onClick: (N) => {
938
+ g(), f();
1442
939
  },
1443
- ref: m,
940
+ ref: u,
1444
941
  "aria-label": r.props.title,
1445
- "aria-expanded": h
942
+ "aria-expanded": m
1446
943
  }));
1447
- }, Ls = Jn, be = C.div`
944
+ }, Ds = to, $e = y.div`
1448
945
  font-family: ${(e) => {
1449
946
  var t;
1450
947
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -1461,7 +958,7 @@ const Gn = 300, Jn = ({
1461
958
  box-shadow: ${(e) => e.theme.boxShadow};
1462
959
  background: #ffffff;
1463
960
  ${(e) => e.css && e.css}
1464
- `, eo = C(re)`
961
+ `, no = y(ie)`
1465
962
  padding: ${(e) => {
1466
963
  var t;
1467
964
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
@@ -1484,11 +981,11 @@ const Gn = 300, Jn = ({
1484
981
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
1485
982
  }};
1486
983
  line-height: 1.2em;
1487
- `, ve = (e) => L`
984
+ `, we = (e) => k`
1488
985
  transition: ${e.duration}ms;
1489
- `, to = C(be)`
986
+ `, oo = y($e)`
1490
987
  max-height: 0;
1491
- ${ve}
988
+ ${we}
1492
989
 
1493
990
  &.humany-drawer-transition-enter {
1494
991
  max-height: 0;
@@ -1503,8 +1000,8 @@ const Gn = 300, Jn = ({
1503
1000
  &.humany-drawer-transition-exit-done {
1504
1001
  max-height: 0;
1505
1002
  }
1506
- `, no = C(be)`
1507
- ${ve}
1003
+ `, ro = y($e)`
1004
+ ${we}
1508
1005
  transform: translateX(100%);
1509
1006
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1510
1007
 
@@ -1521,8 +1018,8 @@ const Gn = 300, Jn = ({
1521
1018
  &.humany-drawer-transition-exit-done {
1522
1019
  transform: translateX(100%);
1523
1020
  }
1524
- `, oo = C(be)`
1525
- ${ve}
1021
+ `, so = y($e)`
1022
+ ${we}
1526
1023
  transform: translateX(-100%);
1527
1024
  height: ${(e) => e.fullScreen ? "100%" : "auto"};
1528
1025
 
@@ -1539,8 +1036,8 @@ const Gn = 300, Jn = ({
1539
1036
  &.humany-drawer-transition-exit-done {
1540
1037
  transform: translateX(-100%);
1541
1038
  }
1542
- `, ro = C(be)`
1543
- ${ve}
1039
+ `, io = y($e)`
1040
+ ${we}
1544
1041
  bottom: unset;
1545
1042
  top: 0;
1546
1043
  height: 0;
@@ -1558,91 +1055,91 @@ const Gn = 300, Jn = ({
1558
1055
  &.humany-drawer-transition-exit-done {
1559
1056
  height: 0;
1560
1057
  }
1561
- `, so = {
1562
- ["slide-in-bottom"]: to,
1563
- ["slide-in-right"]: no,
1564
- ["slide-in-left"]: oo,
1565
- ["slide-in-top"]: ro
1566
- }, io = (e, t, n) => {
1567
- const [o, r] = E(0), [i, a] = E(0), l = _(
1568
- (u, c) => {
1569
- if (u.preventDefault(), c) {
1570
- const m = c.getBoundingClientRect();
1571
- r(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
1058
+ `, ao = {
1059
+ ["slide-in-bottom"]: oo,
1060
+ ["slide-in-right"]: ro,
1061
+ ["slide-in-left"]: so,
1062
+ ["slide-in-top"]: io
1063
+ }, co = (e, t, n) => {
1064
+ const [o, r] = C(0), [s, i] = C(0), c = M(
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);
1572
1069
  }
1573
1070
  },
1574
- [o, i, r, a]
1071
+ [o, s, r, i]
1575
1072
  );
1576
1073
  return w(() => {
1577
1074
  if (!n || !e)
1578
1075
  return;
1579
- const u = n.getBoundingClientRect(), c = {
1076
+ const l = n.getBoundingClientRect(), a = {
1580
1077
  x: o,
1581
- y: i
1078
+ y: s
1582
1079
  };
1583
- u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && r(c.x), c.y !== i && a(c.y);
1584
- }, [n, e, t]), [{ x: o, y: i }, l];
1585
- }, pt = io, ao = s.forwardRef(
1586
- (a, i) => {
1587
- var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, r = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1588
- const u = R(), c = R(), m = R();
1589
- Me(i, () => m.current, [m.current]);
1590
- const p = R(se()), [d, h] = E(!1), y = lt(d), [{ x, y: b }, v] = pt(d, p.current, m.current), g = ee("Escape");
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
+ }, gt = co, lo = d.forwardRef(
1083
+ (i, s) => {
1084
+ var c = i, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = c, r = T(c, ["className", "children", "trigger", "closeButtonAriaLabel"]);
1085
+ const l = _(), a = _(), u = _();
1086
+ Te(s, () => u.current, [u.current]);
1087
+ const h = _(ae()), [p, m] = C(!1), g = dt(p), [{ x, y: v }, $] = gt(p, h.current, u.current), f = ee("Escape");
1591
1088
  w(() => {
1592
- g && h(!1);
1593
- }, [g]), w(() => {
1594
- d && u.current ? u.current.focus() : !d && c.current && y && c.current.focus();
1595
- }, [d, u.current, c.current]), A(
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(
1596
1093
  "click",
1597
- (T) => {
1598
- const { target: Z } = T;
1599
- !m.current || !Z || m.current !== Z && !m.current.contains(Z) && h(!1);
1094
+ (D) => {
1095
+ const { target: V } = D;
1096
+ !u.current || !V || u.current !== V && !u.current.contains(V) && m(!1);
1600
1097
  },
1601
1098
  window
1602
- ), Ce("router:changed", () => {
1603
- h(!1);
1099
+ ), ve("router:changed", () => {
1100
+ m(!1);
1604
1101
  });
1605
- const z = Te(p.current, () => {
1606
- h(!1);
1607
- }), H = _(
1608
- (T) => {
1609
- T.stopPropagation(), v(T, c.current), h(!d), z();
1102
+ const L = Ne(h.current, () => {
1103
+ m(!1);
1104
+ }), N = M(
1105
+ (D) => {
1106
+ D.stopPropagation(), $(D, a.current), m(!p), L();
1610
1107
  },
1611
- [z, v, h]
1108
+ [L, $, m]
1612
1109
  );
1613
- return /* @__PURE__ */ s.createElement(s.Fragment, null, d && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
1614
- co,
1615
- k(f({
1616
- className: M(
1110
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, p && /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
1111
+ uo,
1112
+ S(b({
1113
+ className: z(
1617
1114
  "humany-dropdown",
1618
- `humany-dropdown-${p.current}`,
1115
+ `humany-dropdown-${h.current}`,
1619
1116
  e
1620
1117
  )
1621
1118
  }, r), {
1622
1119
  x,
1623
- y: b,
1624
- ref: m
1120
+ y: v,
1121
+ ref: u
1625
1122
  }),
1626
- /* @__PURE__ */ s.createElement(
1627
- De,
1123
+ /* @__PURE__ */ d.createElement(
1124
+ Oe,
1628
1125
  {
1629
- onClick: () => h(!1),
1126
+ onClick: () => m(!1),
1630
1127
  tabIndex: 0,
1631
- ref: u,
1128
+ ref: l,
1632
1129
  "aria-label": o
1633
1130
  },
1634
- /* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
1131
+ /* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
1635
1132
  ),
1636
1133
  t
1637
- )), s.cloneElement(n, {
1638
- onClick: H,
1639
- ref: c,
1134
+ )), d.cloneElement(n, {
1135
+ onClick: N,
1136
+ ref: a,
1640
1137
  "aria-label": n.props.title,
1641
- "aria-expanded": d
1138
+ "aria-expanded": p
1642
1139
  }));
1643
1140
  }
1644
- ), Ms = ao, co = C.div`
1645
- ${ht}
1141
+ ), Ts = lo, uo = y.div`
1142
+ ${ft}
1646
1143
  padding: ${(e) => {
1647
1144
  var t;
1648
1145
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -1656,75 +1153,95 @@ const Gn = 300, Jn = ({
1656
1153
  let t = "";
1657
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;
1658
1155
  }};
1659
- `, lo = (t) => {
1660
- var e = S(t, []);
1661
- return /* @__PURE__ */ s.createElement(mo, f({}, e));
1662
- }, uo = lo, mo = C.div`
1156
+ `, mo = (t) => {
1157
+ var e = T(t, []);
1158
+ return /* @__PURE__ */ d.createElement(po, b({}, e));
1159
+ }, ho = mo, po = y.div`
1663
1160
  display: none;
1664
- `, Ss = P(
1665
- (a, i) => {
1666
- var l = a, { children: e, columns: t, gap: n, className: o } = l, r = S(l, ["children", "columns", "gap", "className"]);
1667
- return /* @__PURE__ */ s.createElement(
1668
- ho,
1669
- k(f(f({
1670
- className: M(o, "humany-grid"),
1161
+ `, zs = B(
1162
+ (i, s) => {
1163
+ var c = i, { children: e, columns: t, gap: n, className: o } = c, r = T(c, ["children", "columns", "gap", "className"]);
1164
+ return /* @__PURE__ */ d.createElement(
1165
+ fo,
1166
+ S(b(b({
1167
+ className: z(o, "humany-grid"),
1671
1168
  "data-columns": t,
1672
1169
  "data-gap": n
1673
- }, Gt(r)), V(r)), {
1674
- ref: i
1170
+ }, tn(r)), W(r)), {
1171
+ ref: s
1675
1172
  }),
1676
1173
  e
1677
1174
  );
1678
1175
  }
1679
- ), ho = C.div`
1176
+ ), fo = y.div`
1680
1177
  display: grid;
1681
1178
  grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1682
1179
  grid-gap: ${(e) => e["data-gap"]};
1683
1180
  justify-content: center;
1684
1181
  grid-auto-rows: max-content;
1685
- ${Qt}
1686
- `, ft = P(
1687
- (i, r) => {
1688
- var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
1689
- const l = I(), [u, c] = E();
1182
+ ${en}
1183
+ `, yt = B(
1184
+ (s, r) => {
1185
+ var i = s, { htmlParseInstruction: e = null, className: t, html: n } = i, o = T(i, ["htmlParseInstruction", "className", "html"]);
1186
+ const c = H(), [l, a] = C();
1690
1187
  return w(() => {
1691
- const m = nn(l, n), p = k(f(f({}, m), e), {
1692
- transform: f(f({}, m.transform), e == null ? void 0 : e.transform)
1693
- }), d = en(n, p);
1694
- c(d);
1695
- }, [n, e]), /* @__PURE__ */ s.createElement(
1188
+ const u = sn(c, n), h = S(b(b({}, u), e), {
1189
+ transform: b(b({}, u.transform), e == null ? void 0 : e.transform)
1190
+ }), p = on(n, h);
1191
+ a(p);
1192
+ }, [n, e]), /* @__PURE__ */ d.createElement(
1696
1193
  "div",
1697
- k(f({
1698
- className: M(t, "humany-html")
1699
- }, V(o)), {
1194
+ S(b({
1195
+ className: z(t, "humany-html")
1196
+ }, W(o)), {
1700
1197
  ref: r
1701
1198
  }),
1702
- u
1199
+ l
1703
1200
  );
1704
1201
  }
1705
- ), po = (i) => {
1706
- var a = i, {
1707
- faIcon: e,
1708
- title: t,
1709
- className: n = "",
1710
- role: o = "presentation"
1711
- } = a, r = S(a, [
1712
- "faIcon",
1713
- "title",
1714
- "className",
1715
- "role"
1716
- ]);
1717
- return /* @__PURE__ */ s.createElement(
1718
- "i",
1719
- f({
1720
- className: M(n, `fa fa-${e}`),
1721
- title: t,
1722
- role: o
1723
- }, V(r))
1724
- );
1725
- }, fo = po, Rs = P(
1726
- (p, m) => {
1727
- var d = p, {
1202
+ );
1203
+ var go = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, xe = (e, t, n, o) => {
1204
+ for (var r = o > 1 ? void 0 : o ? yo(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 && go(t, n, r), r;
1207
+ };
1208
+ let ne = class extends ce {
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
+ te`
1225
+ :host {
1226
+ display: block;
1227
+ }
1228
+ `
1229
+ ];
1230
+ xe([
1231
+ O({ type: String })
1232
+ ], ne.prototype, "faIcon", 2);
1233
+ xe([
1234
+ O({ type: String })
1235
+ ], ne.prototype, "title", 2);
1236
+ xe([
1237
+ O({ type: String })
1238
+ ], ne.prototype, "role", 2);
1239
+ ne = xe([
1240
+ Vt("ui-icon")
1241
+ ], ne);
1242
+ const Ls = B(
1243
+ (h, u) => {
1244
+ var p = h, {
1728
1245
  className: e = "",
1729
1246
  autoFocus: t = !1,
1730
1247
  onFocusChange: n = () => {
@@ -1733,12 +1250,12 @@ const Gn = 300, Jn = ({
1733
1250
  },
1734
1251
  onEscape: r = () => {
1735
1252
  },
1736
- selectAllOnFocus: i,
1737
- onChange: a = () => {
1253
+ selectAllOnFocus: s,
1254
+ onChange: i = () => {
1738
1255
  },
1739
- disabled: l = !1,
1740
- type: u
1741
- } = d, c = S(d, [
1256
+ disabled: c = !1,
1257
+ type: l
1258
+ } = p, a = T(p, [
1742
1259
  "className",
1743
1260
  "autoFocus",
1744
1261
  "onFocusChange",
@@ -1749,84 +1266,84 @@ const Gn = 300, Jn = ({
1749
1266
  "disabled",
1750
1267
  "type"
1751
1268
  ]);
1752
- const [h, y] = E(t), x = R();
1753
- Me(m, () => x.current), w(() => {
1754
- var g;
1755
- t && ((g = x == null ? void 0 : x.current) == null || g.focus());
1756
- }, [t, m, x]);
1757
- const b = (g, z) => {
1758
- y(g), n && n(g), i && g && z.target.select();
1759
- }, v = k(f({}, V(c)), {
1760
- disabled: l,
1269
+ const [m, g] = C(t), x = _();
1270
+ Te(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
+ }, $ = S(b({}, W(a)), {
1277
+ disabled: c,
1761
1278
  autoFocus: t,
1762
- type: u,
1763
- onKeyDown: (g) => {
1764
- g.key === "Enter" && h && o(g), g.key === "Escape" && h && r(g);
1279
+ type: l,
1280
+ onKeyDown: (f) => {
1281
+ f.key === "Enter" && m && o(f), f.key === "Escape" && m && r(f);
1765
1282
  },
1766
- onFocus: (g) => b(!0, g),
1767
- onBlur: (g) => b(!1, g),
1768
- onChange: (g) => a(g.target.value || ""),
1769
- className: M(e, "humany-input"),
1770
- "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
1771
1288
  });
1772
- return u !== "textarea" ? /* @__PURE__ */ s.createElement(
1289
+ return l !== "textarea" ? /* @__PURE__ */ d.createElement(
1773
1290
  "input",
1774
- k(f({}, v), {
1291
+ S(b({}, $), {
1775
1292
  ref: x
1776
1293
  })
1777
- ) : /* @__PURE__ */ s.createElement(
1294
+ ) : /* @__PURE__ */ d.createElement(
1778
1295
  "textarea",
1779
- k(f({}, v), {
1296
+ S(b({}, $), {
1780
1297
  ref: x
1781
1298
  })
1782
1299
  );
1783
1300
  }
1784
- ), go = P(
1785
- (a, i) => {
1786
- var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, r = S(l, ["className", "items", "renderItem", "renderLi"]);
1787
- return /* @__PURE__ */ s.createElement(
1301
+ ), bo = B(
1302
+ (i, s) => {
1303
+ var c = i, { className: e, items: t, renderItem: n, renderLi: o = !1 } = c, r = T(c, ["className", "items", "renderItem", "renderLi"]);
1304
+ return /* @__PURE__ */ d.createElement(
1788
1305
  "ul",
1789
- k(f({
1790
- className: M(e, "humany-list"),
1306
+ S(b({
1307
+ className: z(e, "humany-list"),
1791
1308
  "data-item-count": t.length
1792
- }, V(r)), {
1793
- ref: i
1309
+ }, W(r)), {
1310
+ ref: s
1794
1311
  }),
1795
1312
  t.map(
1796
- (u, c, m) => o ? /* @__PURE__ */ s.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)
1797
1314
  )
1798
1315
  );
1799
1316
  }
1800
- ), yo = P(
1801
- (u, l) => {
1802
- var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1803
- return /* @__PURE__ */ s.createElement(
1317
+ ), vo = B(
1318
+ (l, c) => {
1319
+ var a = l, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s } = a, i = T(a, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
1320
+ return /* @__PURE__ */ d.createElement(
1804
1321
  "div",
1805
- k(f({
1806
- className: M(o, "humany-paragraph")
1807
- }, V(a)), {
1808
- ref: l
1322
+ S(b({
1323
+ className: z(o, "humany-paragraph")
1324
+ }, W(i)), {
1325
+ ref: c
1809
1326
  }),
1810
- n ? /* @__PURE__ */ s.createElement(re, { variant: "h1" }, i ? /* @__PURE__ */ s.createElement(ae, { symbol: i }) : null, n) : null,
1811
- t ? /* @__PURE__ */ s.createElement(ft, { html: t, htmlParseInstruction: r }) : null,
1812
- e ? /* @__PURE__ */ s.createElement(ze, null, e) : null
1327
+ n ? /* @__PURE__ */ d.createElement(ie, { variant: "h1" }, s ? /* @__PURE__ */ d.createElement(ue, { symbol: s }) : null, n) : null,
1328
+ t ? /* @__PURE__ */ d.createElement(yt, { html: t, htmlParseInstruction: r }) : null,
1329
+ e ? /* @__PURE__ */ d.createElement(Re, null, e) : null
1813
1330
  );
1814
1331
  }
1815
- ), Co = P(
1816
- (h, d) => {
1817
- var y = h, {
1332
+ ), $o = B(
1333
+ (m, p) => {
1334
+ var g = m, {
1818
1335
  header: e,
1819
1336
  customHeader: t,
1820
1337
  text: n,
1821
1338
  html: o,
1822
1339
  className: r,
1823
- children: i,
1824
- symbol: a,
1825
- items: l,
1826
- renderItem: u,
1827
- renderLi: c,
1828
- ulProps: m
1829
- } = y, p = S(y, [
1340
+ children: s,
1341
+ symbol: i,
1342
+ items: c,
1343
+ renderItem: l,
1344
+ renderLi: a,
1345
+ ulProps: u
1346
+ } = g, h = T(g, [
1830
1347
  "header",
1831
1348
  "customHeader",
1832
1349
  "text",
@@ -1839,120 +1356,120 @@ const Gn = 300, Jn = ({
1839
1356
  "renderLi",
1840
1357
  "ulProps"
1841
1358
  ]);
1842
- return /* @__PURE__ */ s.createElement(
1359
+ return /* @__PURE__ */ d.createElement(
1843
1360
  "div",
1844
- k(f({
1845
- className: M(r, "humany-item-list"),
1846
- "data-item-count": l.length
1847
- }, V(p)), {
1848
- ref: d
1361
+ S(b({
1362
+ className: z(r, "humany-item-list"),
1363
+ "data-item-count": c.length
1364
+ }, W(h)), {
1365
+ ref: p
1849
1366
  }),
1850
- t || (e || n || o ? /* @__PURE__ */ s.createElement(yo, { symbol: a, header: e, text: n, html: o }) : null),
1851
- l.length ? /* @__PURE__ */ s.createElement(go, f({ items: l, renderItem: u, renderLi: c }, m)) : null,
1852
- i
1367
+ t || (e || n || o ? /* @__PURE__ */ d.createElement(vo, { symbol: i, header: e, text: n, html: o }) : null),
1368
+ c.length ? /* @__PURE__ */ d.createElement(bo, b({ items: c, renderItem: l, renderLi: a }, u)) : null,
1369
+ s
1853
1370
  );
1854
1371
  }
1855
- ), bo = ({
1372
+ ), wo = ({
1856
1373
  className: e = "",
1857
1374
  tree: t,
1858
1375
  renderItem: n,
1859
1376
  rootItem: o,
1860
1377
  renderUnselected: r = !0,
1861
- renderEmpty: i = !0,
1862
- ulProps: a,
1863
- liProps: l
1378
+ renderEmpty: s = !0,
1379
+ ulProps: i,
1380
+ liProps: c
1864
1381
  }) => {
1865
- const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ s.createElement(
1866
- Co,
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
+ $o,
1867
1384
  {
1868
- className: M(`humany-item-tree-level-${d}`),
1869
- items: p,
1870
- ulProps: a,
1871
- renderItem: (h) => {
1872
- const { id: y, selected: x, items: b, matches: v } = h, g = x && c(b);
1873
- return !i && !v ? null : /* @__PURE__ */ s.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(
1874
1391
  "li",
1875
- k(f({}, V(l)), {
1876
- key: y,
1392
+ S(b({}, W(c)), {
1393
+ key: g,
1877
1394
  className: "humany-item-tree-item"
1878
1395
  }),
1879
- n && n(h, d, g),
1880
- b && (r || g) && m(b, d + 1)
1396
+ n && n(m, p, f),
1397
+ v && (r || f) && u(v, p + 1)
1881
1398
  );
1882
1399
  }
1883
1400
  }
1884
1401
  );
1885
- return /* @__PURE__ */ s.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
1886
- }, _s = bo, vo = P(
1887
- (u, l) => {
1888
- var c = u, { className: e, onClick: t = () => {
1889
- }, name: n = "", to: o = "", params: r = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
1890
- const m = ut(), p = I();
1891
- if (!m)
1402
+ return /* @__PURE__ */ d.createElement("div", { className: z(e, "humany-item-tree") }, o && o(!l(t || [])), t && u(t, 1));
1403
+ }, Ps = wo, xo = B(
1404
+ (l, c) => {
1405
+ var a = l, { className: e, onClick: t = () => {
1406
+ }, name: n = "", to: o = "", params: r = {}, children: s } = a, i = T(a, ["className", "onClick", "name", "to", "params", "children"]);
1407
+ const u = mt(), h = H();
1408
+ if (!u)
1892
1409
  return null;
1893
- let d = "";
1894
- const h = k(f({
1410
+ let p = "";
1411
+ const m = S(b({
1895
1412
  onClick: t,
1896
- className: M(e, "humany-route-link"),
1897
- to: d,
1898
- innerRef: l
1899
- }, a), {
1413
+ className: z(e, "humany-route-link"),
1414
+ to: p,
1415
+ innerRef: c
1416
+ }, i), {
1900
1417
  ref: null
1901
1418
  });
1902
1419
  if (n) {
1903
- if (!(m.routes || []).find((v) => v.name === n))
1904
- return process.env.NODE_ENV !== "production" && we.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ s.createElement(
1905
- xe,
1906
- k(f({}, h), {
1907
- onClick: (v) => {
1908
- t(v), v.preventDefault(), process.env.NODE_ENV !== "production" && we.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
+ Ce,
1423
+ S(b({}, m), {
1424
+ onClick: ($) => {
1425
+ t($), $.preventDefault(), process.env.NODE_ENV !== "production" && Ee.warn(`Unable to navigate. No route named "${n}" exist.`);
1909
1426
  }
1910
1427
  }),
1911
- i
1428
+ s
1912
1429
  );
1913
- const b = Object.keys(r).reduce((v, g) => (v[g] = typeof r[g] == "string" ? encodeURIComponent(r[g]) : r[g], v), {});
1430
+ const v = Object.keys(r).reduce(($, f) => ($[f] = typeof r[f] == "string" ? encodeURIComponent(r[f]) : r[f], $), {});
1914
1431
  try {
1915
- d = m.generate(n, b || {});
1916
- } catch (v) {
1917
- return /* @__PURE__ */ s.createElement(xe, f({}, h), i);
1432
+ p = u.generate(n, v || {});
1433
+ } catch ($) {
1434
+ return /* @__PURE__ */ d.createElement(Ce, b({}, m), s);
1918
1435
  }
1919
- d && m.settings.mode && m.settings.mode === qe.browser && d[0] !== "/" && (d = `/${d}`);
1920
- } else if (o && m.history)
1921
- d = m.history.createHref({
1436
+ p && u.settings.mode && u.settings.mode === Ze.browser && p[0] !== "/" && (p = `/${p}`);
1437
+ } else if (o && u.history)
1438
+ p = u.history.createHref({
1922
1439
  hash: "",
1923
1440
  pathname: o,
1924
1441
  search: "",
1925
1442
  state: void 0
1926
1443
  });
1927
1444
  else
1928
- return process.env.NODE_ENV !== "production" && we.warn(
1445
+ return process.env.NODE_ENV !== "production" && Ee.warn(
1929
1446
  'Unable to generate path for route link. Either specify route name or use the "to" prop.'
1930
1447
  ), null;
1931
- if (m.settings && m.settings.mode === qe.scopedHash) {
1932
- const y = p.get("$widget").name;
1933
- d = Zt(d, y);
1448
+ if (u.settings && u.settings.mode === Ze.scopedHash) {
1449
+ const g = h.get("$widget").name;
1450
+ p = Kt(p, g);
1934
1451
  }
1935
- return h.as ? /* @__PURE__ */ s.createElement(wo, k(f({}, h), { as: h.as }), i) : /* @__PURE__ */ s.createElement(xe, k(f({}, h), { to: d }), i);
1452
+ return m.as ? /* @__PURE__ */ d.createElement(Eo, S(b({}, m), { as: m.as }), s) : /* @__PURE__ */ d.createElement(Ce, S(b({}, m), { to: p }), s);
1936
1453
  }
1937
- ), wo = C.span``, He = P(
1938
- (x, y) => {
1939
- var b = x, {
1454
+ ), Eo = y.span``, Ie = B(
1455
+ (x, g) => {
1456
+ var v = x, {
1940
1457
  className: e,
1941
1458
  disabled: t = !1,
1942
1459
  role: n = "link",
1943
1460
  tabIndex: o = 0,
1944
1461
  onClick: r = () => {
1945
1462
  },
1946
- onKeyDown: i = () => {
1463
+ onKeyDown: s = () => {
1947
1464
  },
1948
- title: a,
1949
- as: l,
1950
- href: u,
1951
- children: c,
1952
- target: m,
1953
- routeName: p,
1954
- params: d
1955
- } = b, h = 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 = T(v, [
1956
1473
  "className",
1957
1474
  "disabled",
1958
1475
  "role",
@@ -1967,79 +1484,79 @@ const Gn = 300, Jn = ({
1967
1484
  "routeName",
1968
1485
  "params"
1969
1486
  ]);
1970
- const v = {
1971
- title: a,
1487
+ const $ = {
1488
+ title: i,
1972
1489
  disabled: t,
1973
1490
  role: n,
1974
- as: l,
1491
+ as: c,
1975
1492
  tabIndex: o,
1976
- className: M(e, "humany-link", [!!t, "humany-disabled"]),
1977
- onClick: (g) => {
1978
- if (g.persist(), t) {
1979
- g.preventDefault();
1493
+ className: z(e, "humany-link", [!!t, "humany-disabled"]),
1494
+ onClick: (f) => {
1495
+ if (f.persist(), t) {
1496
+ f.preventDefault();
1980
1497
  return;
1981
1498
  }
1982
- r(g);
1499
+ r(f);
1983
1500
  },
1984
- onKeyDown: (g) => {
1985
- if (g.persist(), t) {
1986
- g.key !== "Tab" && g.preventDefault();
1501
+ onKeyDown: (f) => {
1502
+ if (f.persist(), t) {
1503
+ f.key !== "Tab" && f.preventDefault();
1987
1504
  return;
1988
1505
  }
1989
- i(g);
1506
+ s(f);
1990
1507
  }
1991
1508
  };
1992
- return p ? /* @__PURE__ */ s.createElement(
1993
- xo,
1994
- k(f(f({
1995
- name: p,
1996
- params: d
1997
- }, v), V(h)), {
1998
- ref: y
1509
+ return h ? /* @__PURE__ */ d.createElement(
1510
+ Co,
1511
+ S(b(b({
1512
+ name: h,
1513
+ params: p
1514
+ }, $), W(m)), {
1515
+ ref: g
1999
1516
  }),
2000
- c
2001
- ) : /* @__PURE__ */ s.createElement(
2002
- $o,
2003
- k(f(f({
2004
- href: u,
2005
- target: m
2006
- }, v), V(h)), {
2007
- ref: y
1517
+ a
1518
+ ) : /* @__PURE__ */ d.createElement(
1519
+ ko,
1520
+ S(b(b({
1521
+ href: l,
1522
+ target: u
1523
+ }, $), W(m)), {
1524
+ ref: g
2008
1525
  }),
2009
- c
1526
+ a
2010
1527
  );
2011
1528
  }
2012
- ), xo = C(vo)`
1529
+ ), Co = y(xo)`
2013
1530
  ${(e) => e.disabled ? `
2014
1531
  pointer-events: none;
2015
1532
  opacity: .7;
2016
1533
  ` : "cursor: pointer;"}
2017
- `, $o = C.a`
1534
+ `, ko = y.a`
2018
1535
  ${(e) => e.disabled ? `
2019
1536
  pointer-events: none;
2020
1537
  opacity: .7;
2021
1538
  ` : "cursor: pointer;"}
2022
- `, Eo = (i) => {
2023
- var a = i, {
1539
+ `, So = (s) => {
1540
+ var i = s, {
2024
1541
  visible: e,
2025
1542
  duration: t = 500,
2026
1543
  children: n,
2027
1544
  onClick: o = () => {
2028
1545
  }
2029
- } = a, r = S(a, [
1546
+ } = i, r = T(i, [
2030
1547
  "visible",
2031
1548
  "duration",
2032
1549
  "children",
2033
1550
  "onClick"
2034
1551
  ]);
2035
- const l = R(), u = _(
2036
- (c) => {
2037
- c.target === l.current && o(c);
1552
+ const c = _(), l = M(
1553
+ (a) => {
1554
+ a.target === c.current && o(a);
2038
1555
  },
2039
1556
  [o]
2040
1557
  );
2041
- return /* @__PURE__ */ s.createElement(
2042
- st,
1558
+ return /* @__PURE__ */ d.createElement(
1559
+ at,
2043
1560
  {
2044
1561
  in: e,
2045
1562
  className: "humany-overlay-transition",
@@ -2047,18 +1564,18 @@ const Gn = 300, Jn = ({
2047
1564
  unmountOnExit: !0,
2048
1565
  timeout: t
2049
1566
  },
2050
- /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
2051
- ko,
2052
- f({
1567
+ /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
1568
+ _o,
1569
+ b({
2053
1570
  className: "humany-overlay",
2054
1571
  duration: t,
2055
- ref: l,
2056
- onClick: u
1572
+ ref: c,
1573
+ onClick: l
2057
1574
  }, r),
2058
1575
  n
2059
1576
  ))
2060
1577
  );
2061
- }, ko = C.div`
1578
+ }, _o = y.div`
2062
1579
  background: rgba(0, 0, 0, 0.6);
2063
1580
  min-width: 100%;
2064
1581
  min-height: 100%;
@@ -2088,11 +1605,11 @@ const Gn = 300, Jn = ({
2088
1605
  &.humany-overlay-transition-exit-done {
2089
1606
  opacity: 0;
2090
1607
  }
2091
- `, gt = Eo, Lo = tt`
1608
+ `, bt = So, Mo = rt`
2092
1609
  100% {
2093
1610
  transform: rotate(360deg);
2094
1611
  }
2095
- `, Mo = tt`
1612
+ `, Do = rt`
2096
1613
  0% {
2097
1614
  stroke-dasharray: 1, 200;
2098
1615
  stroke-dashoffset: 0;
@@ -2105,8 +1622,8 @@ const Gn = 300, Jn = ({
2105
1622
  stroke-dasharray: 89, 200;
2106
1623
  stroke-dashoffset: -124px;
2107
1624
  }
2108
- `, So = C.svg`
2109
- animation: ${Lo} 2s linear infinite;
1625
+ `, To = y.svg`
1626
+ animation: ${Mo} 2s linear infinite;
2110
1627
  height: 100%;
2111
1628
  transform-origin: center center;
2112
1629
  width: 100%;
@@ -2117,7 +1634,7 @@ const Gn = 300, Jn = ({
2117
1634
  right: 0;
2118
1635
  margin: auto;
2119
1636
  transition: 200ms ease-out opacity;
2120
- `, Ro = C.div`
1637
+ `, zo = y.div`
2121
1638
  position: absolute;
2122
1639
  top: 0;
2123
1640
  bottom: 0;
@@ -2135,7 +1652,7 @@ const Gn = 300, Jn = ({
2135
1652
  svg {
2136
1653
  opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2137
1654
  }
2138
- `, _o = C.div`
1655
+ `, Lo = y.div`
2139
1656
  position: relative;
2140
1657
  margin: 0 auto;
2141
1658
  width: 100px;
@@ -2144,18 +1661,18 @@ const Gn = 300, Jn = ({
2144
1661
  display: block;
2145
1662
  padding-top: 100%;
2146
1663
  }
2147
- `, To = C.circle`
1664
+ `, Po = y.circle`
2148
1665
  stroke-dasharray: 1, 200;
2149
1666
  stroke-dashoffset: 0;
2150
- animation: ${Mo} 1.5s ease-in-out infinite;
1667
+ animation: ${Do} 1.5s ease-in-out infinite;
2151
1668
  stroke-linecap: round;
2152
1669
  stroke: ${(e) => {
2153
1670
  var t;
2154
1671
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2155
1672
  }};
2156
1673
  stroke-width: 2px;
2157
- `, zo = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ s.createElement(Ro, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ s.createElement(_o, { className: "humany-spinner" }, /* @__PURE__ */ s.createElement(So, { viewBox: "25 25 50 50" }, /* @__PURE__ */ s.createElement(
2158
- To,
1674
+ `, No = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ d.createElement(zo, { className: z("humany-loader", e), "data-loading": t }, /* @__PURE__ */ d.createElement(Lo, { className: "humany-spinner" }, /* @__PURE__ */ d.createElement(To, { viewBox: "25 25 50 50" }, /* @__PURE__ */ d.createElement(
1675
+ Po,
2159
1676
  {
2160
1677
  cx: "50",
2161
1678
  cy: "50",
@@ -2164,62 +1681,62 @@ const Gn = 300, Jn = ({
2164
1681
  "stroke-width": "2",
2165
1682
  "stroke-miterlimit": "10"
2166
1683
  }
2167
- )))), Do = zo, Ho = (r) => {
2168
- var i = r, {
1684
+ )))), Ro = No, Oo = (r) => {
1685
+ var s = r, {
2169
1686
  zoomState: e,
2170
1687
  image: t,
2171
1688
  changeZoom: n
2172
- } = i, o = S(i, [
1689
+ } = s, o = T(s, [
2173
1690
  "zoomState",
2174
1691
  "image",
2175
1692
  "changeZoom"
2176
1693
  ]);
2177
- var v;
2178
- const a = R(null), [l, u] = E(!1), [c, m] = E(!1), b = o.style || {}, { width: p, height: d } = b, h = S(b, ["width", "height"]), y = _(() => {
2179
- const g = a.current;
2180
- if (g) {
2181
- const z = window.innerWidth / g.width, H = window.innerHeight / g.height, T = Math.min(z, H);
2182
- return H >= 1 && z >= 1 ? 1 : T;
1694
+ var $;
1695
+ const i = _(null), [c, l] = C(!1), [a, u] = C(!1), v = o.style || {}, { width: h, height: p } = v, m = T(v, ["width", "height"]), g = M(() => {
1696
+ const f = i.current;
1697
+ if (f) {
1698
+ const L = window.innerWidth / f.width, N = window.innerHeight / f.height, D = Math.min(L, N);
1699
+ return N >= 1 && L >= 1 ? 1 : D;
2183
1700
  }
2184
1701
  return 1;
2185
- }, [l, t.src]), x = he(() => {
2186
- const g = a.current;
2187
- if (g) {
2188
- if (!c) {
2189
- m(!0);
2190
- const z = y();
2191
- n(z);
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);
2192
1709
  }
2193
- 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`];
2194
1711
  }
2195
1712
  return null;
2196
- }, [e, a, l, t.src]);
2197
- return w(() => (u(!1), function() {
2198
- m(!1);
2199
- }), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(Bo, { loading: !l }), /* @__PURE__ */ s.createElement(
2200
- Po,
2201
- k(f({
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(Io, { loading: !c }), /* @__PURE__ */ d.createElement(
1717
+ Bo,
1718
+ S(b({
2202
1719
  onLoad: () => {
2203
- u(!0);
1720
+ l(!0);
2204
1721
  },
2205
- ref: a,
1722
+ ref: i,
2206
1723
  imageSize: x,
2207
1724
  draggable: "false"
2208
1725
  }, o), {
2209
- alt: ((v = o.alt) == null ? void 0 : v.toString()) || "",
2210
- style: h,
1726
+ alt: (($ = o.alt) == null ? void 0 : $.toString()) || "",
1727
+ style: m,
2211
1728
  src: t.src,
2212
- loaded: l
1729
+ loaded: c
2213
1730
  })
2214
- ), /* @__PURE__ */ s.createElement(Vo, null));
2215
- }, Bo = C(Do)`
1731
+ ), /* @__PURE__ */ d.createElement(Wo, null));
1732
+ }, Io = y(Ro)`
2216
1733
  svg circle {
2217
1734
  stroke: #ffffff;
2218
1735
  }
2219
- `, Po = C.img`
1736
+ `, Bo = y.img`
2220
1737
  transform: none;
2221
1738
 
2222
- ${(e) => e.imageSize && L`
1739
+ ${(e) => e.imageSize && k`
2223
1740
  width: ${e.imageSize[0]};
2224
1741
  height: ${e.imageSize[1]};
2225
1742
  display: inline-block;
@@ -2227,267 +1744,267 @@ const Gn = 300, Jn = ({
2227
1744
  vertical-align: middle;
2228
1745
  position: relative;
2229
1746
  ${(e) => !e.loaded && "display:none;"}
2230
- `, Vo = C.div`
1747
+ `, Wo = y.div`
2231
1748
  height: 100%;
2232
1749
  display: inline-block;
2233
1750
  vertical-align: middle;
2234
- `, No = Ho, Io = () => {
2235
- const e = R(), [t, n] = E(!0), o = _(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
1751
+ `, Ho = Oo, jo = () => {
1752
+ const e = _(), [t, n] = C(!0), o = M(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
2236
1753
  n(!1);
2237
1754
  }, 3e3), () => {
2238
1755
  e.current && clearTimeout(e.current);
2239
1756
  }), [t, e]);
2240
1757
  return [t, o];
2241
- }, Oo = ({ attrs: e, htmlBody: t }) => {
2242
- var We;
2243
- const n = ee("Escape"), o = ee("ArrowLeft"), r = ee("ArrowRight"), [i, a] = E(1), [l, u] = E({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = E(!1), [p, d] = Io(), [h, y] = E(null), [x, b] = E(null), v = R(null), g = R(null), z = R(null), H = R(null);
1758
+ }, Vo = ({ attrs: e, htmlBody: t }) => {
1759
+ var Ae;
1760
+ const n = ee("Escape"), o = ee("ArrowLeft"), r = ee("ArrowRight"), [s, i] = C(1), [c, l] = C({ top: 0, left: 0, x: 0, y: 0 }), [a, u] = C(!1), [h, p] = jo(), [m, g] = C(null), [x, v] = C(null), $ = _(null), f = _(null), L = _(null), N = _(null);
2244
1761
  w(() => {
2245
- n && y(null);
1762
+ n && g(null);
2246
1763
  }, [n]), w(() => {
2247
- a(1);
2248
- }, [h]), w(() => {
2249
- var K, q;
2250
- if (h === null || g.current === null)
1764
+ i(1);
1765
+ }, [m]), w(() => {
1766
+ var Y, U;
1767
+ if (m === null || f.current === null)
2251
1768
  return;
2252
- const $ = g.current.firstElementChild, D = (K = z.current) == null ? void 0 : K.querySelector(".nav-left"), j = (q = z.current) == null ? void 0 : q.querySelector(".nav-right");
1769
+ const E = f.current.firstElementChild, P = (Y = L.current) == null ? void 0 : Y.querySelector(".nav-left"), F = (U = L.current) == null ? void 0 : U.querySelector(".nav-right");
2253
1770
  if (x === "Right")
2254
- le && j ? j.focus() : ce && D && D.focus();
1771
+ me && F ? F.focus() : de && P && P.focus();
2255
1772
  else if (x === "Left")
2256
- ce && D ? D.focus() : le && j && j.focus();
1773
+ de && P ? P.focus() : me && F && F.focus();
2257
1774
  else {
2258
- if (!$)
1775
+ if (!E)
2259
1776
  return;
2260
- $.focus();
1777
+ E.focus();
2261
1778
  }
2262
- }, [h, g, z, x]), w(() => {
1779
+ }, [m, f, L, x]), w(() => {
2263
1780
  if (o) {
2264
- if (ce)
2265
- return Ie();
2266
- } else if (r && le)
2267
- return Oe();
1781
+ if (de)
1782
+ return Ve();
1783
+ } else if (r && me)
1784
+ return Fe();
2268
1785
  }, [o, r]);
2269
- const T = he(() => {
2270
- const $ = document.createElement("div");
2271
- $.innerHTML = t || "";
2272
- const D = $.getElementsByTagName("img");
2273
- return Array.from(D).reduce((K, q) => {
2274
- const Ze = q.getAttribute("src"), Lt = q.height || Number.parseInt(q.style.height, 10), Mt = q.width || Number.parseInt(q.style.width, 10);
2275
- if (Ze) {
2276
- const St = {
2277
- src: Ze,
2278
- originalWidth: Mt,
2279
- originalHeight: Lt
1786
+ const D = ge(() => {
1787
+ const E = document.createElement("div");
1788
+ E.innerHTML = t || "";
1789
+ const P = E.getElementsByTagName("img");
1790
+ return Array.from(P).reduce((Y, U) => {
1791
+ const Ke = U.getAttribute("src"), Mt = U.height || Number.parseInt(U.style.height, 10), Dt = U.width || Number.parseInt(U.style.width, 10);
1792
+ if (Ke) {
1793
+ const Tt = {
1794
+ src: Ke,
1795
+ originalWidth: Dt,
1796
+ originalHeight: Mt
2280
1797
  };
2281
- K.push(St);
1798
+ Y.push(Tt);
2282
1799
  }
2283
- return K;
1800
+ return Y;
2284
1801
  }, []);
2285
- }, [t]), Z = _(() => {
2286
- const { src: $ } = e;
2287
- if ($) {
2288
- const D = T.findIndex((j, K) => j.src === $);
2289
- y(D);
2290
- }
2291
- }, [T, e]), vt = _(($) => {
2292
- y(null);
2293
- }, []), Ne = _(
2294
- ($) => {
2295
- a($ ? i + i * 0.25 : i - i * 0.25);
1802
+ }, [t]), V = M(() => {
1803
+ const { src: E } = e;
1804
+ if (E) {
1805
+ const P = D.findIndex((F, Y) => F.src === E);
1806
+ g(P);
1807
+ }
1808
+ }, [D, e]), xt = M((E) => {
1809
+ g(null);
1810
+ }, []), je = M(
1811
+ (E) => {
1812
+ i(E ? s + s * 0.25 : s - s * 0.25);
2296
1813
  },
2297
- [a, i]
2298
- ), wt = _(() => {
2299
- if (h !== null) {
2300
- const { src: $ } = T[h];
2301
- $ && window.open($, "_self");
2302
- }
2303
- }, [T, h]), xt = _(
2304
- ($) => {
2305
- const D = H.current;
2306
- D && (u({ top: D.scrollTop, left: D.scrollLeft, x: $.clientX, y: $.clientY }), m(!0));
1814
+ [i, s]
1815
+ ), Et = M(() => {
1816
+ if (m !== null) {
1817
+ const { src: E } = D[m];
1818
+ E && window.open(E, "_self");
1819
+ }
1820
+ }, [D, m]), Ct = M(
1821
+ (E) => {
1822
+ const P = N.current;
1823
+ P && (l({ top: P.scrollTop, left: P.scrollLeft, x: E.clientX, y: E.clientY }), u(!0));
2307
1824
  },
2308
- [H]
2309
- ), $t = _(
2310
- ($) => {
2311
- const D = H.current;
2312
- if (D && c) {
2313
- const j = $.clientX - l.x, K = $.clientY - l.y;
2314
- D.scrollTop = l.top - K, D.scrollLeft = l.left - j;
1825
+ [N]
1826
+ ), kt = M(
1827
+ (E) => {
1828
+ const P = N.current;
1829
+ if (P && a) {
1830
+ const F = E.clientX - c.x, Y = E.clientY - c.y;
1831
+ P.scrollTop = c.top - Y, P.scrollLeft = c.left - F;
2315
1832
  }
2316
1833
  },
2317
- [c, l]
2318
- ), Et = ($) => {
2319
- $.preventDefault(), m(!1);
2320
- }, kt = he(() => {
2321
- if (H.current) {
2322
- const $ = H.current.getElementsByTagName("img");
2323
- if ($ && $.length) {
2324
- const D = $[0];
2325
- return D.width > window.innerWidth || D.height > window.innerHeight;
1834
+ [a, c]
1835
+ ), St = (E) => {
1836
+ E.preventDefault(), u(!1);
1837
+ }, _t = ge(() => {
1838
+ if (N.current) {
1839
+ const E = N.current.getElementsByTagName("img");
1840
+ if (E && E.length) {
1841
+ const P = E[0];
1842
+ return P.width > window.innerWidth || P.height > window.innerHeight;
2326
1843
  }
2327
1844
  }
2328
1845
  return !1;
2329
- }, [H, i]), Ie = () => {
2330
- h !== null && (b("Left"), y(h - 1));
2331
- }, Oe = () => {
2332
- h !== null && (b("Right"), y(h + 1));
2333
- }, ce = h !== null && h > 0 && T.length > 1, le = h !== null && T.length - 1 > h;
2334
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(gt, { visible: h !== null, onClick: vt }, /* @__PURE__ */ s.createElement(
2335
- Uo,
1846
+ }, [N, s]), Ve = () => {
1847
+ m !== null && (v("Left"), g(m - 1));
1848
+ }, Fe = () => {
1849
+ m !== null && (v("Right"), g(m + 1));
1850
+ }, de = m !== null && m > 0 && D.length > 1, me = m !== null && D.length - 1 > m;
1851
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(bt, { visible: m !== null, onClick: xt }, /* @__PURE__ */ d.createElement(
1852
+ Zo,
2336
1853
  {
2337
- onMouseDown: () => d(),
2338
- onMouseMove: () => d(),
2339
- onTouchStart: () => d(),
2340
- onKeyDown: () => d()
1854
+ onMouseDown: () => p(),
1855
+ onMouseMove: () => p(),
1856
+ onTouchStart: () => p(),
1857
+ onKeyDown: () => p()
2341
1858
  },
2342
- /* @__PURE__ */ s.createElement(Yo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
2343
- Ao,
1859
+ /* @__PURE__ */ d.createElement(Qo, { show: h.toString() }, /* @__PURE__ */ d.createElement(
1860
+ qo,
2344
1861
  {
2345
- ref: g,
1862
+ ref: f,
2346
1863
  buttons: [
2347
1864
  {
2348
1865
  id: "download",
2349
- onClick: wt,
1866
+ onClick: Et,
2350
1867
  icon: "download",
2351
1868
  ariaLabel: "Download image"
2352
1869
  },
2353
1870
  {
2354
1871
  id: "lightbox-close",
2355
- onClick: () => y(null),
1872
+ onClick: () => g(null),
2356
1873
  icon: "lightbox-close",
2357
1874
  ariaLabel: "Close"
2358
1875
  }
2359
1876
  ]
2360
1877
  }
2361
1878
  )),
2362
- /* @__PURE__ */ s.createElement(
2363
- Qo,
1879
+ /* @__PURE__ */ d.createElement(
1880
+ Jo,
2364
1881
  {
2365
- scrolling: c.toString(),
2366
- isDraggable: kt.toString(),
2367
- ref: H,
2368
- onMouseMove: $t,
2369
- onMouseDown: xt,
2370
- onMouseUp: Et
1882
+ scrolling: a.toString(),
1883
+ isDraggable: _t.toString(),
1884
+ ref: N,
1885
+ onMouseMove: kt,
1886
+ onMouseDown: Ct,
1887
+ onMouseUp: St
2371
1888
  },
2372
- h !== null && /* @__PURE__ */ s.createElement(
2373
- No,
2374
- k(f({
2375
- changeZoom: ($) => {
2376
- a($);
1889
+ m !== null && /* @__PURE__ */ d.createElement(
1890
+ Ho,
1891
+ S(b({
1892
+ changeZoom: (E) => {
1893
+ i(E);
2377
1894
  },
2378
- zoomState: i
1895
+ zoomState: s
2379
1896
  }, e), {
2380
- image: T[h]
1897
+ image: D[m]
2381
1898
  })
2382
1899
  )
2383
1900
  ),
2384
- /* @__PURE__ */ s.createElement(
2385
- Ko,
1901
+ /* @__PURE__ */ d.createElement(
1902
+ Uo,
2386
1903
  {
2387
- ref: z,
2388
- show: p.toString(),
1904
+ ref: L,
1905
+ show: h.toString(),
2389
1906
  buttons: [
2390
1907
  {
2391
1908
  id: "previous",
2392
- onClick: Ie,
1909
+ onClick: Ve,
2393
1910
  icon: "caret-left",
2394
1911
  circle: !0,
2395
- show: ce,
1912
+ show: de,
2396
1913
  className: "nav-left",
2397
1914
  ariaLabel: "Navigate to previous image"
2398
1915
  },
2399
1916
  {
2400
1917
  id: "next",
2401
- onClick: Oe,
1918
+ onClick: Fe,
2402
1919
  icon: "caret-right",
2403
1920
  circle: !0,
2404
- show: le,
1921
+ show: me,
2405
1922
  className: "nav-right",
2406
1923
  ariaLabel: "Navigate to next image"
2407
1924
  }
2408
1925
  ]
2409
1926
  }
2410
1927
  ),
2411
- /* @__PURE__ */ s.createElement(Xo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
2412
- Fo,
1928
+ /* @__PURE__ */ d.createElement(Go, { show: h.toString() }, /* @__PURE__ */ d.createElement(
1929
+ Yo,
2413
1930
  {
2414
1931
  buttons: [
2415
1932
  {
2416
1933
  id: "zoom-out",
2417
- onClick: () => Ne(!1),
1934
+ onClick: () => je(!1),
2418
1935
  icon: "zoom-out",
2419
1936
  ariaLabel: "Zoom out"
2420
1937
  },
2421
1938
  {
2422
1939
  id: "zoom-in",
2423
- onClick: () => Ne(!0),
1940
+ onClick: () => je(!0),
2424
1941
  icon: "zoom-in",
2425
1942
  ariaLabel: "Zoom in"
2426
1943
  }
2427
1944
  ]
2428
1945
  }
2429
- ), /* @__PURE__ */ s.createElement(qo, { variant: "span" }, Math.trunc(i * 100), "%"))
2430
- )), /* @__PURE__ */ s.createElement(
2431
- Wo,
1946
+ ), /* @__PURE__ */ d.createElement(Xo, { variant: "span" }, Math.trunc(s * 100), "%"))
1947
+ )), /* @__PURE__ */ d.createElement(
1948
+ Fo,
2432
1949
  {
2433
- ref: v,
2434
- onClick: Z,
2435
- onKeyDown: ($) => {
2436
- $.key === "Enter" && ($.preventDefault(), Z());
1950
+ ref: $,
1951
+ onClick: V,
1952
+ onKeyDown: (E) => {
1953
+ E.key === "Enter" && (E.preventDefault(), V());
2437
1954
  },
2438
1955
  tabIndex: 0
2439
1956
  },
2440
- /* @__PURE__ */ s.createElement(Go, k(f({}, e), { alt: ((We = e.alt) == null ? void 0 : We.toString()) || "" }))
1957
+ /* @__PURE__ */ d.createElement(er, S(b({}, e), { alt: ((Ae = e.alt) == null ? void 0 : Ae.toString()) || "" }))
2441
1958
  ));
2442
- }, Be = P(
2443
- ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ s.createElement(
2444
- Zo,
1959
+ }, Be = B(
1960
+ ({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ d.createElement(
1961
+ Ao,
2445
1962
  {
2446
1963
  ref: o,
2447
1964
  show: e,
2448
- className: M("humany-button-set", n)
1965
+ className: z("humany-button-set", n)
2449
1966
  },
2450
1967
  t.map(
2451
- ({ id: r, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ s.createElement(
2452
- jo,
1968
+ ({ id: r, circle: s = !1, show: i = !0, ariaLabel: c, onClick: l, icon: a, className: u }, h) => /* @__PURE__ */ d.createElement(
1969
+ Ko,
2453
1970
  {
2454
- key: r + p.toString(),
2455
- circle: i.toString(),
2456
- onClick: u,
2457
- tabIndex: a ? void 0 : -1,
2458
- show: a.toString(),
2459
- icon: c,
2460
- className: m,
2461
- "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
2462
1979
  },
2463
- /* @__PURE__ */ s.createElement(ae, { size: 24, symbol: { type: "Svg", content: c } })
1980
+ /* @__PURE__ */ d.createElement(ue, { size: 24, symbol: { type: "Svg", content: a } })
2464
1981
  )
2465
1982
  )
2466
1983
  )
2467
- ), yt = C.div`
1984
+ ), vt = y.div`
2468
1985
  transition: opacity 0.3s ease 0s;
2469
1986
  z-index: 5;
2470
- ${(e) => e.show === "true" ? "opacity: 1;" : L`
1987
+ ${(e) => e.show === "true" ? "opacity: 1;" : k`
2471
1988
  opacity: 0;
2472
1989
  pointer-events: none;
2473
1990
  `}
2474
- `, Wo = C(He)`
1991
+ `, Fo = y(Ie)`
2475
1992
  display: inline-block !important;
2476
- `, Zo = C(yt)`
1993
+ `, Ao = y(vt)`
2477
1994
  position: fixed;
2478
1995
  display: flex;
2479
1996
  gap: ${(e) => {
2480
1997
  var t;
2481
1998
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2482
1999
  }};
2483
- `, ke = "39px", jo = C(ye)`
2484
- width: ${ke};
2485
- height: ${ke};
2000
+ `, Me = "39px", Ko = y(be)`
2001
+ width: ${Me};
2002
+ height: ${Me};
2486
2003
  display: flex;
2487
2004
  justify-content: center;
2488
2005
  align-items: center;
2489
2006
 
2490
- ${(e) => e.icon === "caret-left" && L`
2007
+ ${(e) => e.icon === "caret-left" && k`
2491
2008
  svg {
2492
2009
  position: relative;
2493
2010
  left: -2px;
@@ -2496,7 +2013,7 @@ const Gn = 300, Jn = ({
2496
2013
 
2497
2014
  ${(e) => {
2498
2015
  var t;
2499
- return e.circle === "true" ? L`
2016
+ return e.circle === "true" ? k`
2500
2017
  background-color: #ffffff;
2501
2018
  border-radius: 50%;
2502
2019
 
@@ -2508,7 +2025,7 @@ const Gn = 300, Jn = ({
2508
2025
  }
2509
2026
 
2510
2027
  &:focus-visible {
2511
- ${X(e)}
2028
+ ${Z(e)}
2512
2029
  outline-color: #ffffff;
2513
2030
  background-color: transparent;
2514
2031
 
@@ -2519,7 +2036,7 @@ const Gn = 300, Jn = ({
2519
2036
  }
2520
2037
  }
2521
2038
  }
2522
- ` : L`
2039
+ ` : k`
2523
2040
  svg {
2524
2041
  path,
2525
2042
  line {
@@ -2530,22 +2047,22 @@ const Gn = 300, Jn = ({
2530
2047
  outline-color: #ffffff;
2531
2048
  }
2532
2049
  &:focus-visible {
2533
- ${X(e)}
2050
+ ${Z(e)}
2534
2051
  }
2535
2052
  `;
2536
2053
  }}
2537
2054
 
2538
- ${(e) => e.show === "true" ? L`
2055
+ ${(e) => e.show === "true" ? k`
2539
2056
  opacity: 0.8;
2540
2057
  transition: opacity 0.3s ease 0s;
2541
2058
  &:hover {
2542
2059
  opacity: 1;
2543
2060
  }
2544
- ` : L`
2061
+ ` : k`
2545
2062
  opacity: 0;
2546
2063
  pointer-events: none;
2547
2064
  `}
2548
- `, Ao = C(Be)`
2065
+ `, qo = y(Be)`
2549
2066
  top: ${(e) => {
2550
2067
  var t;
2551
2068
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2554,7 +2071,7 @@ const Gn = 300, Jn = ({
2554
2071
  var t;
2555
2072
  return (t = e.theme.sizes) == null ? void 0 : t.large;
2556
2073
  }};
2557
- `, Fo = C(Be)`
2074
+ `, Yo = y(Be)`
2558
2075
  bottom: ${(e) => {
2559
2076
  var t;
2560
2077
  return (t = e.theme.sizes) == null ? void 0 : t.large;
@@ -2562,11 +2079,11 @@ const Gn = 300, Jn = ({
2562
2079
  width: 100%;
2563
2080
  align-items: center;
2564
2081
  justify-content: center;
2565
- `, Ko = C(Be)`
2082
+ `, Uo = y(Be)`
2566
2083
  display: block;
2567
2084
  button {
2568
2085
  position: fixed;
2569
- top: calc(50% - calc(${ke} / 2));
2086
+ top: calc(50% - calc(${Me} / 2));
2570
2087
  &:first-child {
2571
2088
  left: ${(e) => {
2572
2089
  var t;
@@ -2580,7 +2097,7 @@ const Gn = 300, Jn = ({
2580
2097
  }};
2581
2098
  }
2582
2099
  }
2583
- `, qo = C(re)`
2100
+ `, Xo = y(ie)`
2584
2101
  position: fixed;
2585
2102
  bottom: ${(e) => {
2586
2103
  var t;
@@ -2599,21 +2116,21 @@ const Gn = 300, Jn = ({
2599
2116
  var t;
2600
2117
  return (t = e.theme.fonts) == null ? void 0 : t.type;
2601
2118
  }};
2602
- `, Ct = C(yt)`
2119
+ `, $t = y(vt)`
2603
2120
  position: absolute;
2604
2121
  width: 100vw;
2605
2122
  height: 88px;
2606
2123
  left: 0px;
2607
2124
  z-index: 5;
2608
- `, Uo = C.div`
2125
+ `, Zo = y.div`
2609
2126
  width: 100%;
2610
- `, Yo = C(Ct)`
2127
+ `, Qo = y($t)`
2611
2128
  top: 0px;
2612
2129
  background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2613
- `, Xo = C(Ct)`
2130
+ `, Go = y($t)`
2614
2131
  bottom: 0px;
2615
2132
  background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
2616
- `, Qo = C.div`
2133
+ `, Jo = y.div`
2617
2134
  width: 100%;
2618
2135
  height: 100vh;
2619
2136
  overflow: auto;
@@ -2622,64 +2139,64 @@ const Gn = 300, Jn = ({
2622
2139
  white-space: nowrap;
2623
2140
  justify-content: center;
2624
2141
  cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
2625
- `, Go = C.img`
2142
+ `, er = y.img`
2626
2143
  cursor: pointer;
2627
- `, Jo = Oo, er = P(
2628
- (l, a) => {
2629
- var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2630
- }, close: r = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
2631
- const [c, m] = mt(), [p, d] = dt(!0), h = R(), y = R(se()), x = ee("Escape");
2144
+ `, tr = Vo, nr = B(
2145
+ (c, i) => {
2146
+ var l = c, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
2147
+ }, close: r = !1 } = l, s = T(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
2148
+ const [a, u] = pt(), [h, p] = ht(!0), m = _(), g = _(ae()), x = ee("Escape");
2632
2149
  w(() => {
2633
- (x || r) && m(!1);
2150
+ (x || r) && u(!1);
2634
2151
  }, [x, r]), w(() => {
2635
- c && h.current && h.current.focus();
2636
- }, [c, h.current]), Ce("router:changed", () => {
2637
- m(!1);
2152
+ a && m.current && m.current.focus();
2153
+ }, [a, m.current]), ve("router:changed", () => {
2154
+ u(!1);
2638
2155
  });
2639
- const b = _(
2640
- (g) => {
2641
- m(!1), o(g);
2156
+ const v = M(
2157
+ (f) => {
2158
+ u(!1), o(f);
2642
2159
  },
2643
- [o, m]
2160
+ [o, u]
2644
2161
  );
2645
- Me(a, () => ({
2162
+ Te(i, () => ({
2646
2163
  close() {
2647
- m(!1);
2164
+ u(!1);
2648
2165
  }
2649
2166
  }));
2650
- const v = _(() => Te(y.current, () => {
2651
- m(!1);
2652
- }), [y.current]);
2653
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(gt, { visible: c, onClick: b }, /* @__PURE__ */ s.createElement(
2654
- nr,
2655
- k(f({
2656
- className: M(
2167
+ const $ = M(() => Ne(g.current, () => {
2168
+ u(!1);
2169
+ }), [g.current]);
2170
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(bt, { visible: a, onClick: v }, /* @__PURE__ */ d.createElement(
2171
+ rr,
2172
+ S(b({
2173
+ className: z(
2657
2174
  e,
2658
2175
  "humany-modal",
2659
- `humany-modal-${y.current}`
2176
+ `humany-modal-${g.current}`
2660
2177
  ),
2661
- css: p,
2178
+ css: h,
2662
2179
  tabIndex: -1
2663
- }, i), {
2664
- ref: d
2180
+ }, s), {
2181
+ ref: p
2665
2182
  }),
2666
- /* @__PURE__ */ s.createElement(
2667
- De,
2183
+ /* @__PURE__ */ d.createElement(
2184
+ Oe,
2668
2185
  {
2669
- onClick: () => m(!1),
2186
+ onClick: () => u(!1),
2670
2187
  tabIndex: 0,
2671
- ref: h
2188
+ ref: m
2672
2189
  },
2673
- /* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
2190
+ /* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
2674
2191
  ),
2675
2192
  t
2676
- )), s.cloneElement(n, {
2677
- onClick: (g) => {
2678
- m(), v();
2193
+ )), d.cloneElement(n, {
2194
+ onClick: (f) => {
2195
+ u(), $();
2679
2196
  }
2680
2197
  }));
2681
2198
  }
2682
- ), tr = er, nr = C.div`
2199
+ ), or = nr, rr = y.div`
2683
2200
  font-family: ${(e) => {
2684
2201
  var t;
2685
2202
  return (t = e.theme.fonts) == null ? void 0 : t.type;
@@ -2695,30 +2212,30 @@ const Gn = 300, Jn = ({
2695
2212
  var t;
2696
2213
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2697
2214
  }};
2698
- ${(e) => ht(e)}
2215
+ ${(e) => ft(e)}
2699
2216
  ${(e) => e.css && e.css}
2700
2217
  outline: none;
2701
- `, or = ({
2218
+ `, sr = ({
2702
2219
  className: e,
2703
2220
  trigger: t,
2704
2221
  header: n = "",
2705
2222
  text: o = "",
2706
2223
  onCancel: r = () => {
2707
2224
  },
2708
- onConfirm: i = () => {
2225
+ onConfirm: s = () => {
2709
2226
  },
2710
- cancelLabel: a = "",
2711
- confirmLabel: l = ""
2227
+ cancelLabel: i = "",
2228
+ confirmLabel: c = ""
2712
2229
  }) => {
2713
- const u = R(), c = _(() => {
2714
- var p;
2715
- r(), (p = u == null ? void 0 : u.current) == null || p.close();
2716
- }, [r]), m = _(() => {
2717
- var p;
2718
- i(), (p = u == null ? void 0 : u.current) == null || p.close();
2719
- }, [i]);
2720
- return /* @__PURE__ */ s.createElement(rr, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ s.createElement(Xe, null, n), o && /* @__PURE__ */ s.createElement(Xe, null, o), l && /* @__PURE__ */ s.createElement(sr, { onClick: m }, l), a && /* @__PURE__ */ s.createElement(ir, { onClick: c }, a));
2721
- }, Ts = or, rr = C(tr)`
2230
+ const l = _(), a = M(() => {
2231
+ var h;
2232
+ r(), (h = l == null ? void 0 : l.current) == null || h.close();
2233
+ }, [r]), u = M(() => {
2234
+ var h;
2235
+ s(), (h = l == null ? void 0 : l.current) == null || h.close();
2236
+ }, [s]);
2237
+ return /* @__PURE__ */ d.createElement(ir, { className: e, trigger: t, ref: l, onOverlayClick: a }, n && /* @__PURE__ */ d.createElement(Je, null, n), o && /* @__PURE__ */ d.createElement(Je, null, o), c && /* @__PURE__ */ d.createElement(ar, { onClick: u }, c), i && /* @__PURE__ */ d.createElement(cr, { onClick: a }, i));
2238
+ }, Ns = sr, ir = y(or)`
2722
2239
  display: block;
2723
2240
 
2724
2241
  span {
@@ -2736,7 +2253,7 @@ const Gn = 300, Jn = ({
2736
2253
  }};
2737
2254
  }
2738
2255
  }
2739
- `, sr = C(ye)`
2256
+ `, ar = y(be)`
2740
2257
  display: inline-block;
2741
2258
  min-width: 50px;
2742
2259
  ${(e) => {
@@ -2764,9 +2281,9 @@ const Gn = 300, Jn = ({
2764
2281
  }
2765
2282
 
2766
2283
  &:focus-visible {
2767
- ${X}
2284
+ ${Z}
2768
2285
  }
2769
- `, ir = C(ye)`
2286
+ `, cr = y(be)`
2770
2287
  display: inline-block;
2771
2288
  min-width: 50px;
2772
2289
  ${(e) => {
@@ -2785,27 +2302,27 @@ const Gn = 300, Jn = ({
2785
2302
  }};
2786
2303
 
2787
2304
  &:focus-visible {
2788
- ${X};
2305
+ ${Z};
2789
2306
  }
2790
- `, ar = ({
2307
+ `, lr = ({
2791
2308
  header: e = "",
2792
2309
  link: t = "",
2793
2310
  suggestionHeader: n = "",
2794
2311
  suggestion: o = ""
2795
- }) => /* @__PURE__ */ s.createElement(cr, null, /* @__PURE__ */ s.createElement(lr, null, /* @__PURE__ */ s.createElement(re, { variant: "h2" }, "404")), /* @__PURE__ */ s.createElement(ur, null, /* @__PURE__ */ s.createElement(re, { variant: "h3" }, e), /* @__PURE__ */ s.createElement(hr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ s.createElement(dr, null, /* @__PURE__ */ s.createElement("span", null, n), /* @__PURE__ */ s.createElement("ul", null, /* @__PURE__ */ s.createElement("li", null, o)))), zs = ar, cr = C.div`
2312
+ }) => /* @__PURE__ */ d.createElement(ur, null, /* @__PURE__ */ d.createElement(dr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h2" }, "404")), /* @__PURE__ */ d.createElement(mr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h3" }, e), /* @__PURE__ */ d.createElement(fr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ d.createElement(hr, null, /* @__PURE__ */ d.createElement("span", null, n), /* @__PURE__ */ d.createElement("ul", null, /* @__PURE__ */ d.createElement("li", null, o)))), Rs = lr, ur = y.div`
2796
2313
  display: flex;
2797
2314
  flex-wrap: wrap;
2798
- `, lr = C.div`
2799
- ${(e) => pe(e)(
2315
+ `, dr = y.div`
2316
+ ${(e) => ye(e)(
2800
2317
  "h2",
2801
- L`
2318
+ k`
2802
2319
  padding: 0;
2803
2320
  margin: 0;
2804
2321
  color: gray;
2805
2322
  font-size: 7em;
2806
2323
  `
2807
2324
  )}
2808
- `, ur = C.div`
2325
+ `, mr = y.div`
2809
2326
  margin-left: ${(e) => {
2810
2327
  var t;
2811
2328
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2813,9 +2330,9 @@ const Gn = 300, Jn = ({
2813
2330
 
2814
2331
  ${(e) => {
2815
2332
  var t;
2816
- return pe(e)(
2333
+ return ye(e)(
2817
2334
  "h3",
2818
- L`
2335
+ k`
2819
2336
  text-transform: uppercase;
2820
2337
  font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
2821
2338
  `
@@ -2832,7 +2349,7 @@ const Gn = 300, Jn = ({
2832
2349
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2833
2350
  }};
2834
2351
  }
2835
- `, dr = C.div`
2352
+ `, hr = y.div`
2836
2353
  margin-top: ${(e) => {
2837
2354
  var t;
2838
2355
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
@@ -2843,7 +2360,7 @@ const Gn = 300, Jn = ({
2843
2360
  font-weight: bold;
2844
2361
  }
2845
2362
  `;
2846
- class mr extends Ht {
2363
+ class pr extends Ot {
2847
2364
  constructor() {
2848
2365
  super(...arguments), this.state = {
2849
2366
  boundFocus: !1
@@ -2862,7 +2379,7 @@ class mr extends Ht {
2862
2379
  this.node && t && (this.onFocusListener = this.node.addEventListener("focus", () => {
2863
2380
  const n = t.querySelectorAll(
2864
2381
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2865
- ), r = [].filter.call(n, (i) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(i).display === "none" || i.offsetWidth <= 0 && i.offsetHeight <= 0))[0];
2382
+ ), r = [].filter.call(n, (s) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(s).display === "none" || s.offsetWidth <= 0 && s.offsetHeight <= 0))[0];
2866
2383
  r && r.focus();
2867
2384
  }));
2868
2385
  }
@@ -2870,7 +2387,7 @@ class mr extends Ht {
2870
2387
  this.node && this.node.removeEventListener("focus", this.onFocusListener);
2871
2388
  }
2872
2389
  render() {
2873
- return this.state.boundFocus ? /* @__PURE__ */ s.createElement(
2390
+ return this.state.boundFocus ? /* @__PURE__ */ d.createElement(
2874
2391
  "div",
2875
2392
  {
2876
2393
  style: { opacity: 0 },
@@ -2882,61 +2399,61 @@ class mr extends Ht {
2882
2399
  ) : null;
2883
2400
  }
2884
2401
  }
2885
- const Ds = mr, hr = P(
2886
- (a, i) => {
2887
- var l = a, { className: e, description: t, text: n, children: o } = l, r = S(l, ["className", "description", "text", "children"]);
2888
- return /* @__PURE__ */ s.createElement(He, k(f({ className: M(e, "humany-text-link") }, r), { ref: i }), o, /* @__PURE__ */ s.createElement(ze, null, n), t ? /* @__PURE__ */ s.createElement(ft, { html: t, className: "humany-description" }) : null);
2402
+ const Os = pr, fr = B(
2403
+ (i, s) => {
2404
+ var c = i, { className: e, description: t, text: n, children: o } = c, r = T(c, ["className", "description", "text", "children"]);
2405
+ return /* @__PURE__ */ d.createElement(Ie, S(b({ className: z(e, "humany-text-link") }, r), { ref: s }), o, /* @__PURE__ */ d.createElement(Re, null, n), t ? /* @__PURE__ */ d.createElement(yt, { html: t, className: "humany-description" }) : null);
2889
2406
  }
2890
2407
  );
2891
- var pr = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(pr || {});
2892
- const fr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ s.createElement("span", { className: M(e, "humany-timestamp") }, gr(n, t)), Hs = fr, Qe = (e) => `0${e}`.slice(-2);
2893
- function gr(e, t) {
2894
- const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${Qe(a)}-${Qe(l)}`;
2895
- return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? r : `${u} ${r}`;
2408
+ var gr = /* @__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))(gr || {});
2409
+ const yr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ d.createElement("span", { className: z(e, "humany-timestamp") }, br(n, t)), Is = yr, et = (e) => `0${e}`.slice(-2);
2410
+ function br(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}-${et(i)}-${et(c)}`;
2412
+ return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
2896
2413
  }
2897
- const yr = (i) => {
2898
- var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, r = S(a, ["className", "children", "content", "sticky"]);
2899
- const [l, u] = E(!1), c = R(se()), m = R(), [{ x: p, y: d }, h] = pt(l, c.current, m.current), y = (b) => {
2900
- const { target: v } = b;
2901
- !m.current || !v || m.current !== v && !m.current.contains(v) && u(!1);
2414
+ const vr = (s) => {
2415
+ var i = s, { className: e, children: t, content: n, sticky: o = !1 } = i, r = T(i, ["className", "children", "content", "sticky"]);
2416
+ const [c, l] = C(!1), a = _(ae()), u = _(), [{ x: h, y: p }, m] = gt(c, a.current, u.current), g = (v) => {
2417
+ const { target: $ } = v;
2418
+ !u.current || !$ || u.current !== $ && !u.current.contains($) && l(!1);
2902
2419
  };
2903
2420
  w(() => {
2904
2421
  if (!!o)
2905
- return window.addEventListener("click", y), () => {
2906
- window.removeEventListener("click", y);
2422
+ return window.addEventListener("click", g), () => {
2423
+ window.removeEventListener("click", g);
2907
2424
  };
2908
- }, [l, o]);
2909
- const x = _(
2910
- (b, v) => {
2911
- h(b, m.current), u(v);
2425
+ }, [c, o]);
2426
+ const x = M(
2427
+ (v, $) => {
2428
+ m(v, u.current), l($);
2912
2429
  },
2913
- [h, u]
2430
+ [m, l]
2914
2431
  );
2915
- return /* @__PURE__ */ s.createElement(
2916
- Cr,
2432
+ return /* @__PURE__ */ d.createElement(
2433
+ $r,
2917
2434
  {
2918
- ref: m,
2435
+ ref: u,
2919
2436
  className: "humany-tooltip-trigger",
2920
- onMouseEnter: o ? void 0 : (b) => x(b, !0),
2921
- onMouseLeave: o ? void 0 : (b) => x(b, !1),
2922
- onTouchEnd: o ? (b) => x(b, !l) : void 0,
2923
- onClick: o ? (b) => x(b, !l) : void 0
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
2924
2441
  },
2925
2442
  t,
2926
- l && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
2927
- br,
2928
- f({
2929
- className: M(e, "humany-tooltip-container"),
2930
- x: p,
2931
- y: d
2443
+ c && /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
2444
+ wr,
2445
+ b({
2446
+ className: z(e, "humany-tooltip-container"),
2447
+ x: h,
2448
+ y: p
2932
2449
  }, r),
2933
2450
  n
2934
2451
  ))
2935
2452
  );
2936
- }, Cr = C.div`
2453
+ }, $r = y.div`
2937
2454
  display: flex;
2938
2455
  align-items: center;
2939
- `, br = C.div`
2456
+ `, wr = y.div`
2940
2457
  color: #ffffff;
2941
2458
  background: #161616;
2942
2459
  border-radius: ${(e) => e.theme.borderRadius};
@@ -2972,130 +2489,130 @@ const yr = (i) => {
2972
2489
  let t = "";
2973
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;
2974
2491
  }};
2975
- `, Bs = yr, vr = (e) => {
2492
+ `, Bs = vr, xr = (e) => {
2976
2493
  const {
2977
2494
  in: t,
2978
2495
  mountOnEnter: n = !0,
2979
2496
  unmountOnExit: o = !0,
2980
2497
  timeout: r,
2981
- children: i,
2982
- transitions: a
2983
- } = e, u = (() => {
2984
- var c, m;
2985
- if (!(!a || a === "none")) {
2986
- if (typeof a == "string")
2498
+ children: s,
2499
+ transitions: i
2500
+ } = e, l = (() => {
2501
+ var a, u;
2502
+ if (!(!i || i === "none")) {
2503
+ if (typeof i == "string")
2987
2504
  return {
2988
2505
  enter: {
2989
- transitionKeys: a,
2506
+ transitionKeys: i,
2990
2507
  duration: r ? typeof r == "number" ? r : r.enter : 200,
2991
2508
  easing: "ease-in"
2992
2509
  },
2993
2510
  exit: {
2994
- transitionKeys: a,
2511
+ transitionKeys: i,
2995
2512
  duration: r ? typeof r == "number" ? r : r.exit : 200,
2996
2513
  easing: "ease-out"
2997
2514
  }
2998
2515
  };
2999
- if (typeof a == "object") {
3000
- const { enter: p, exit: d } = a;
2516
+ if (typeof i == "object") {
2517
+ const { enter: h, exit: p } = i;
3001
2518
  return {
3002
2519
  enter: {
3003
- transitionKeys: (c = a.enter) == null ? void 0 : c.type,
2520
+ transitionKeys: (a = i.enter) == null ? void 0 : a.type,
3004
2521
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3005
- easing: p.easing ? p.easing : "ease-in"
2522
+ easing: h.easing ? h.easing : "ease-in"
3006
2523
  },
3007
2524
  exit: {
3008
- transitionKeys: (m = a.enter) == null ? void 0 : m.type,
2525
+ transitionKeys: (u = i.enter) == null ? void 0 : u.type,
3009
2526
  duration: r ? typeof r == "number" ? r : r.enter : 200,
3010
- easing: d.easing ? d.easing : "ease-out"
2527
+ easing: p.easing ? p.easing : "ease-out"
3011
2528
  }
3012
2529
  };
3013
2530
  }
3014
2531
  }
3015
2532
  })();
3016
- return /* @__PURE__ */ s.createElement(
3017
- Ot,
2533
+ return /* @__PURE__ */ d.createElement(
2534
+ Ft,
3018
2535
  {
3019
2536
  timeout: {
3020
- enter: u && u.enter.duration || 0,
3021
- exit: u && u.exit.duration || 0
2537
+ enter: l && l.enter.duration || 0,
2538
+ exit: l && l.exit.duration || 0
3022
2539
  },
3023
2540
  in: t,
3024
2541
  appear: !0,
3025
2542
  mountOnEnter: n,
3026
2543
  unmountOnExit: o,
3027
- onEnter: (c) => c.clientHeight
2544
+ onEnter: (a) => a.clientHeight
3028
2545
  },
3029
- (c) => i && i(c, u && $e.compose(c, u))
2546
+ (a) => s && s(a, l && Se.compose(a, l))
3030
2547
  );
3031
- }, Ps = vr, wr = P(
3032
- (l, a) => {
3033
- var u = l, { className: e, children: t, onClick: n = () => {
3034
- }, widgetName: o, activationOptions: r } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
3035
- const c = I(), m = () => {
3036
- const { implementation: h } = c.get("$widget");
3037
- return h.widgets.get(o);
2548
+ }, Ws = xr, Er = B(
2549
+ (c, i) => {
2550
+ var l = c, { className: e, children: t, onClick: n = () => {
2551
+ }, widgetName: o, activationOptions: r } = l, s = T(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
2552
+ const a = H(), u = () => {
2553
+ const { implementation: m } = a.get("$widget");
2554
+ return m.widgets.get(o);
3038
2555
  };
3039
2556
  w(() => {
3040
- const h = m();
3041
- return h == null || h.activate(r).then(() => h.invoke("attach")), () => {
3042
- h == null || h.deactivate();
2557
+ const m = u();
2558
+ return m == null || m.activate(r).then(() => m.invoke("attach")), () => {
2559
+ m == null || m.deactivate();
3043
2560
  };
3044
2561
  }, [o]);
3045
- const p = (h) => {
3046
- const y = m(), x = h.currentTarget;
3047
- if (y) {
3048
- const b = () => {
3049
- y.invoke("renderState").then(
3050
- (v) => v === me.open ? y.invoke("close") : y.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")
3051
2568
  ).then(() => {
3052
- y.events.subscribeOnce("widget:area-rendered", (v, g) => {
3053
- c.get(
2569
+ g.events.subscribeOnce("widget:area-rendered", ($, f) => {
2570
+ a.get(
3054
2571
  "widgetDOMElement"
3055
- ) && y.events.dispatch("widget:modal-opened", {
3056
- name: y.name,
2572
+ ) && g.events.dispatch("widget:modal-opened", {
2573
+ name: g.name,
3057
2574
  ref: x
3058
2575
  });
3059
2576
  });
3060
2577
  });
3061
2578
  };
3062
- y.state === Dt.Deactivated ? y.activate(r).then(() => y.invoke("attach")).then(b) : b();
2579
+ g.state === Rt.Deactivated ? g.activate(r).then(() => g.invoke("attach")).then(v) : v();
3063
2580
  }
3064
- }, d = (h) => {
3065
- h.key === "Enter" && (h.preventDefault(), p(h));
2581
+ }, p = (m) => {
2582
+ m.key === "Enter" && (m.preventDefault(), h(m));
3066
2583
  };
3067
- return /* @__PURE__ */ s.createElement(
3068
- He,
3069
- k(f({
3070
- className: M(e, "humany-widget-link"),
3071
- onKeyDown: d,
3072
- onClick: (h) => {
3073
- n(h), p(h);
2584
+ return /* @__PURE__ */ d.createElement(
2585
+ Ie,
2586
+ S(b({
2587
+ className: z(e, "humany-widget-link"),
2588
+ onKeyDown: p,
2589
+ onClick: (m) => {
2590
+ n(m), h(m);
3074
2591
  }
3075
- }, i), {
3076
- ref: a
2592
+ }, s), {
2593
+ ref: i
3077
2594
  }),
3078
2595
  t
3079
2596
  );
3080
2597
  }
3081
- ), Vs = P(
2598
+ ), Hs = B(
3082
2599
  ({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
3083
- const r = I(), i = he(() => {
2600
+ const r = H(), s = ge(() => {
3084
2601
  if (!r)
3085
2602
  return null;
3086
- const a = r.get("widgetDOMElement");
3087
- return !a || !a.childElementCount ? null : a.children[0];
2603
+ const i = r.get("widgetDOMElement");
2604
+ return !i || !i.childElementCount ? null : i.children[0];
3088
2605
  }, [r]);
3089
- return i ? /* @__PURE__ */ s.createElement(ie, { elementId: e, parent: i }, /* @__PURE__ */ s.createElement(
3090
- xr,
2606
+ return s ? /* @__PURE__ */ d.createElement(le, { elementId: e, parent: s }, /* @__PURE__ */ d.createElement(
2607
+ Cr,
3091
2608
  {
3092
- className: M("humany-widget-overlay-outlet", t),
2609
+ className: z("humany-widget-overlay-outlet", t),
3093
2610
  ref: o
3094
2611
  },
3095
2612
  n
3096
2613
  )) : null;
3097
2614
  }
3098
- ), xr = C.div`
2615
+ ), Cr = y.div`
3099
2616
  background-color: #ffffff;
3100
2617
  position: absolute;
3101
2618
  top: 0;
@@ -3105,19 +2622,19 @@ const yr = (i) => {
3105
2622
  z-index: 10;
3106
2623
  width: 100%;
3107
2624
  height: 100%;
3108
- `, $r = (e, t, n, o, r) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
2625
+ `, kr = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3109
2626
  t,
3110
- Bt(() => n)
3111
- ), et(e, t, o || (() => {
3112
- }), t, r))), Ns = $r, Er = (e, t, n, o, r) => de(void 0, null, function* () {
3113
- const i = yield e.getAsync("componentResolver");
3114
- return console.log("registering component", t, n), i.registerComponent(t, () => n), et(e, t, o || (() => {
2627
+ It(() => n)
2628
+ ), ot(e, t, o || (() => {
2629
+ }), t, r))), js = kr, Sr = (e, t, n, o, r) => pe(void 0, null, function* () {
2630
+ const s = yield e.getAsync("componentResolver");
2631
+ return console.log("registering component", t, n), s.registerComponent(t, () => n), ot(e, t, o || (() => {
3115
2632
  }), t, r);
3116
- }), Is = Er, kr = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
2633
+ }), Vs = Sr, _r = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
3117
2634
  `;
3118
- class bt extends fe {
2635
+ class wt extends ce {
3119
2636
  render() {
3120
- return O`
2637
+ return I`
3121
2638
  <!-- className={appendClassNames(className, 'humany-button')}
3122
2639
  {...convertToStringAttributes(other)} -->
3123
2640
  <button type="button" part="container" class="humany-button">
@@ -3126,38 +2643,41 @@ class bt extends fe {
3126
2643
  `;
3127
2644
  }
3128
2645
  }
3129
- bt.styles = nt(kr);
3130
- customElements.get("ui-button") || customElements.define("ui-button", bt);
3131
- var Lr = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, Sr = (e, t, n, o) => {
3132
- for (var r = o > 1 ? void 0 : o ? Mr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3133
- (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3134
- return o && r && Lr(t, n, r), r;
2646
+ wt.styles = ke(_r);
2647
+ customElements.get("ui-button") || customElements.define("ui-button", wt);
2648
+ var Mr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, Tr = (e, t, n, o) => {
2649
+ for (var r = o > 1 ? void 0 : o ? Dr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2650
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2651
+ return o && r && Mr(t, n, r), r;
3135
2652
  };
3136
- class Pe extends fe {
2653
+ class We extends ce {
3137
2654
  constructor() {
3138
2655
  super(), this.html = "";
3139
2656
  }
3140
2657
  render() {
3141
- return ot` <div part="container" class="humany-html">${rt(this.html)}</div> `;
2658
+ return st` <div part="container" class="humany-html">${it(this.html)}</div> `;
2659
+ }
2660
+ createRenderRoot() {
2661
+ return this;
3142
2662
  }
3143
2663
  }
3144
- Pe.styles = [
3145
- ge`
2664
+ We.styles = [
2665
+ te`
3146
2666
  img {
3147
2667
  display: none;
3148
2668
  }
3149
2669
  `
3150
2670
  ];
3151
- Sr([
3152
- N({ type: String })
3153
- ], Pe.prototype, "html", 2);
3154
- customElements.get("ui-html") || customElements.define("ui-html", Pe);
3155
- var Rr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, oe = (e, t, n, o) => {
3156
- for (var r = o > 1 ? void 0 : o ? _r(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3157
- (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3158
- return o && r && Rr(t, n, r), r;
2671
+ Tr([
2672
+ O({ type: String })
2673
+ ], We.prototype, "html", 2);
2674
+ customElements.get("ui-html") || customElements.define("ui-html", We);
2675
+ var zr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, se = (e, t, n, o) => {
2676
+ for (var r = o > 1 ? void 0 : o ? Lr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2677
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2678
+ return o && r && zr(t, n, r), r;
3159
2679
  };
3160
- class Q extends fe {
2680
+ class Q extends ce {
3161
2681
  constructor() {
3162
2682
  super(), this.symbol = {
3163
2683
  content: "",
@@ -3178,13 +2698,13 @@ class Q extends fe {
3178
2698
  backgroundRepeat: "no-repeat",
3179
2699
  backgroundPosition: "center",
3180
2700
  backgroundAttachment: "center"
3181
- }, i = f(f({}, r), this.elementStyle);
3182
- return O`
2701
+ }, s = b(b({}, r), this.elementStyle);
2702
+ return I`
3183
2703
  <i
3184
2704
  class="humany-icon humany-custom-icon"
3185
2705
  title=${this.text}
3186
- style=${U(i)}
3187
- ${B(o)}
2706
+ style=${A(s)}
2707
+ ${R(o)}
3188
2708
  />
3189
2709
  `;
3190
2710
  }
@@ -3197,12 +2717,12 @@ class Q extends fe {
3197
2717
  };
3198
2718
  switch (n) {
3199
2719
  case "search":
3200
- return O`
2720
+ return I`
3201
2721
  <svg
3202
2722
  viewBox="0 0 32 30"
3203
- style=${U(this.styles)}
3204
- ${B(o)}
3205
- ${B(r)}
2723
+ style=${A(this.styles)}
2724
+ ${R(o)}
2725
+ ${R(r)}
3206
2726
  >
3207
2727
  <circle
3208
2728
  cx="14.8457"
@@ -3221,12 +2741,12 @@ class Q extends fe {
3221
2741
  </svg>
3222
2742
  `;
3223
2743
  case "clear":
3224
- return O`
2744
+ return I`
3225
2745
  <svg
3226
2746
  viewBox="0 0 27 27"
3227
- style=${U(this.styles)}
3228
- ${B(o)}
3229
- ${B(r)}
2747
+ style=${A(this.styles)}
2748
+ ${R(o)}
2749
+ ${R(r)}
3230
2750
  >
3231
2751
  <circle
3232
2752
  cx="13.4351"
@@ -3252,24 +2772,24 @@ class Q extends fe {
3252
2772
  </svg>
3253
2773
  `;
3254
2774
  case "close":
3255
- return O`
2775
+ return I`
3256
2776
  <svg
3257
2777
  viewBox="0 0 13 13"
3258
- style=${U(this.styles)}
3259
- ${B(o)}
3260
- ${B(r)}
2778
+ style=${A(this.styles)}
2779
+ ${R(o)}
2780
+ ${R(r)}
3261
2781
  >
3262
2782
  <path d="M12.3068 0.50647L1.27246 11.7273" stroke="currentColor" />
3263
2783
  <path d="M12.2812 11.9473L1.24686 0.726451" stroke="currentColor" />
3264
2784
  </svg>
3265
2785
  `;
3266
2786
  case "caret-right":
3267
- return O`
2787
+ return I`
3268
2788
  <svg
3269
2789
  viewBox="0 0 14 14"
3270
- style=${U(this.styles)}
3271
- ${B(o)}
3272
- ${B(r)}
2790
+ style=${A(this.styles)}
2791
+ ${R(o)}
2792
+ ${R(r)}
3273
2793
  >
3274
2794
  <line
3275
2795
  x1="4.13"
@@ -3288,12 +2808,12 @@ class Q extends fe {
3288
2808
  </svg>
3289
2809
  `;
3290
2810
  case "caret-left":
3291
- return O`
2811
+ return I`
3292
2812
  <svg
3293
2813
  viewBox="0 0 14 14"
3294
- style=${U(this.styles)}
3295
- ${B(o)}
3296
- ${B(r)}
2814
+ style=${A(this.styles)}
2815
+ ${R(o)}
2816
+ ${R(r)}
3297
2817
  >
3298
2818
  <line
3299
2819
  x1="10.13"
@@ -3312,24 +2832,24 @@ class Q extends fe {
3312
2832
  </svg>
3313
2833
  `;
3314
2834
  case "caret-up":
3315
- return this.styles.transform = "rotate(180deg)", O`
2835
+ return this.styles.transform = "rotate(180deg)", I`
3316
2836
  <svg
3317
2837
  viewBox="0 0 14 14"
3318
- style=${U(this.styles)}
3319
- ${B(o)}
3320
- ${B(r)}
2838
+ style=${A(this.styles)}
2839
+ ${R(o)}
2840
+ ${R(r)}
3321
2841
  >
3322
2842
  <line x1="13.09" y1="3.99" x2="7.1" y2="9.99" stroke="black" />
3323
2843
  <line x1="7.19" y1="9.99" x2="1.19" y2="3.99" stroke="black" />
3324
2844
  </svg>
3325
2845
  `;
3326
2846
  case "caret-down":
3327
- return O`
2847
+ return I`
3328
2848
  <svg
3329
2849
  viewBox="0 0 14 14"
3330
- style=${U(this.styles)}
3331
- ${B(o)}
3332
- ${B(r)}
2850
+ style=${A(this.styles)}
2851
+ ${R(o)}
2852
+ ${R(r)}
3333
2853
  >
3334
2854
  <line
3335
2855
  x1="13.09"
@@ -3347,14 +2867,32 @@ class Q extends fe {
3347
2867
  />
3348
2868
  </svg>
3349
2869
  `;
2870
+ case "send":
2871
+ return I`
2872
+ <svg
2873
+ viewBox="0 0 20 17"
2874
+ style=${A(this.styles)}
2875
+ ${R(o)}
2876
+ ${R(r)}
2877
+ >
2878
+ <path
2879
+ d="M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z"
2880
+ fill="currentColor"
2881
+ stroke="currentColor"
2882
+ strokeWidth="0.1"
2883
+ />
2884
+ </svg>
2885
+ `;
3350
2886
  }
3351
2887
  }
2888
+ case "FontAwesome":
2889
+ return I`<ui-icon .faIcon=${this.symbol.content} title=${this.text} />`;
3352
2890
  }
3353
- return It;
2891
+ return jt;
3354
2892
  }
3355
2893
  }
3356
2894
  Q.styles = [
3357
- ge`
2895
+ te`
3358
2896
  :host {
3359
2897
  color: var(--icon-color, inherit);
3360
2898
  }
@@ -3364,32 +2902,32 @@ Q.styles = [
3364
2902
  }
3365
2903
  `
3366
2904
  ];
3367
- oe([
3368
- N({ type: Object })
2905
+ se([
2906
+ O({ type: Object })
3369
2907
  ], Q.prototype, "symbol", 2);
3370
- oe([
3371
- N({ type: Object })
2908
+ se([
2909
+ O({ type: Object })
3372
2910
  ], Q.prototype, "elementStyle", 2);
3373
- oe([
3374
- N({ type: Number })
2911
+ se([
2912
+ O({ type: Number })
3375
2913
  ], Q.prototype, "size", 2);
3376
- oe([
3377
- N({ type: String })
2914
+ se([
2915
+ O({ type: String })
3378
2916
  ], Q.prototype, "text", 2);
3379
- oe([
3380
- N({ type: String })
2917
+ se([
2918
+ O({ type: String })
3381
2919
  ], Q.prototype, "backgroundSize", 2);
3382
- oe([
3383
- Y()
2920
+ se([
2921
+ X()
3384
2922
  ], Q.prototype, "styles", 2);
3385
2923
  customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
3386
- var Tr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Dr = (e, t, n, o) => {
3387
- for (var r = o > 1 ? void 0 : o ? zr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3388
- (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3389
- return o && r && Tr(t, n, r), r;
2924
+ var Pr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, Rr = (e, t, n, o) => {
2925
+ for (var r = o > 1 ? void 0 : o ? Nr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
2926
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
2927
+ return o && r && Pr(t, n, r), r;
3390
2928
  };
3391
- const Hr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
3392
- class Ve extends fe {
2929
+ const Or = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
2930
+ class He extends ce {
3393
2931
  constructor() {
3394
2932
  super(), this.variant = "span";
3395
2933
  }
@@ -3398,16 +2936,16 @@ class Ve extends fe {
3398
2936
  return n ? n.trim() : t;
3399
2937
  }
3400
2938
  render() {
3401
- const t = Hr(this.variant) ? this._getTag(this.variant) : this.variant, n = rt(t);
3402
- return ot`
2939
+ const t = Or(this.variant) ? this._getTag(this.variant) : this.variant, n = it(t);
2940
+ return st`
3403
2941
  <${n}>
3404
2942
  <slot />
3405
2943
  </${n}>
3406
2944
  `;
3407
2945
  }
3408
2946
  }
3409
- Ve.styles = [
3410
- ge`
2947
+ He.styles = [
2948
+ te`
3411
2949
  h1,
3412
2950
  h2,
3413
2951
  h3,
@@ -3424,11 +2962,11 @@ Ve.styles = [
3424
2962
  }
3425
2963
  `
3426
2964
  ];
3427
- Dr([
3428
- N({ type: String })
3429
- ], Ve.prototype, "variant", 2);
3430
- customElements.get("ui-typography") || customElements.define("ui-typography", Ve);
3431
- class Os {
2965
+ Rr([
2966
+ O({ type: String })
2967
+ ], He.prototype, "variant", 2);
2968
+ customElements.get("ui-typography") || customElements.define("ui-typography", He);
2969
+ class Fs {
3432
2970
  constructor(t) {
3433
2971
  (this.host = t).addController(this);
3434
2972
  }
@@ -3443,12 +2981,12 @@ class Os {
3443
2981
  this.host.removeEventListener("set-properties", this.propertyChangeHandler);
3444
2982
  }
3445
2983
  }
3446
- class Ws {
2984
+ class As {
3447
2985
  constructor(t) {
3448
2986
  this.nodeId = "", this._host = t;
3449
2987
  }
3450
2988
  initialize() {
3451
- return de(this, null, function* () {
2989
+ return pe(this, null, function* () {
3452
2990
  if (this.nodeId = this._host.getAttribute("nodeId"), !this.nodeId) {
3453
2991
  console.warn("Could not get node id in DataProvider.");
3454
2992
  return;
@@ -3457,7 +2995,7 @@ class Ws {
3457
2995
  console.warn("Could not get data in DataProvider. Container was not defined.");
3458
2996
  return;
3459
2997
  }
3460
- const t = yield Se.getInstance(this.container);
2998
+ const t = yield ze.getInstance(this.container);
3461
2999
  if (this.node = t.nodes.get(this.nodeId), !this.node) {
3462
3000
  console.warn(`Could not get component node with ID: ${this.nodeId}.`);
3463
3001
  return;
@@ -3474,7 +3012,7 @@ class Ws {
3474
3012
  return this._host.dispatchEvent(n), n.detail.instance;
3475
3013
  }
3476
3014
  }
3477
- const Le = "context.connectEvent", Zs = it(
3015
+ const De = "context.connectEvent", Ks = ct(
3478
3016
  (e) => {
3479
3017
  class t extends e {
3480
3018
  constructor() {
@@ -3486,20 +3024,20 @@ const Le = "context.connectEvent", Zs = it(
3486
3024
  this._injectContext(o);
3487
3025
  }
3488
3026
  _injectContext(o) {
3489
- const r = (a, l) => {
3490
- this._contextValueChanged(o, a, l);
3491
- }, i = new CustomEvent(Le, {
3027
+ const r = (i, c) => {
3028
+ this._contextValueChanged(o, i, c);
3029
+ }, s = new CustomEvent(De, {
3492
3030
  bubbles: !0,
3493
3031
  cancelable: !0,
3494
3032
  composed: !0,
3495
3033
  detail: { key: o, connected: !1, callback: r }
3496
3034
  });
3497
- this.dispatchEvent(i), i.detail.connected && this._injectedContexts.set(o, {
3498
- unsubscribe: i.detail.unsubscribe
3035
+ this.dispatchEvent(s), s.detail.connected && this._injectedContexts.set(o, {
3036
+ unsubscribe: s.detail.unsubscribe
3499
3037
  });
3500
3038
  }
3501
- _contextValueChanged(o, r, i) {
3502
- r !== i && (this[o] = r);
3039
+ _contextValueChanged(o, r, s) {
3040
+ r !== s && (this[o] = r);
3503
3041
  }
3504
3042
  disconnectedCallback() {
3505
3043
  for (const o of this._injectedContexts.values())
@@ -3509,7 +3047,7 @@ const Le = "context.connectEvent", Zs = it(
3509
3047
  }
3510
3048
  return t;
3511
3049
  }
3512
- ), Br = it(
3050
+ ), Ir = ct(
3513
3051
  (e) => {
3514
3052
  class t extends e {
3515
3053
  constructor() {
@@ -3521,75 +3059,75 @@ const Le = "context.connectEvent", Zs = it(
3521
3059
  this._provideContext(o);
3522
3060
  }
3523
3061
  _provideContext(o) {
3524
- const r = (i) => {
3525
- const { detail: a } = i;
3526
- if (a.key === o) {
3527
- i.stopPropagation();
3528
- const l = this._providedContexts.get(o);
3529
- l.callbacks.add(a.callback), a.connected = !0, a.unsubscribe = () => {
3530
- l.callbacks.delete(a.callback);
3531
- }, a.callback(this[o]);
3062
+ const r = (s) => {
3063
+ const { detail: i } = s;
3064
+ if (i.key === o) {
3065
+ s.stopPropagation();
3066
+ const c = this._providedContexts.get(o);
3067
+ c.callbacks.add(i.callback), i.connected = !0, i.unsubscribe = () => {
3068
+ c.callbacks.delete(i.callback);
3069
+ }, i.callback(this[o]);
3532
3070
  }
3533
3071
  };
3534
- this.addEventListener(Le, r), this._providedContexts.set(o, {
3072
+ this.addEventListener(De, r), this._providedContexts.set(o, {
3535
3073
  listener: r,
3536
3074
  callbacks: /* @__PURE__ */ new Set()
3537
3075
  });
3538
3076
  }
3539
- _updateContextValue(o, r, i) {
3077
+ _updateContextValue(o, r, s) {
3540
3078
  if (this._providedContexts.has(o)) {
3541
- const a = this._providedContexts.get(o);
3542
- for (const l of a.callbacks)
3543
- l(r, i);
3079
+ const i = this._providedContexts.get(o);
3080
+ for (const c of i.callbacks)
3081
+ c(r, s);
3544
3082
  }
3545
3083
  }
3546
3084
  shouldUpdate(o) {
3547
3085
  const r = super.shouldUpdate(o);
3548
- for (const [i, a] of o.entries())
3549
- this.constructor.provide.includes(i) && this._updateContextValue(i, this[i], a);
3086
+ for (const [s, i] of o.entries())
3087
+ this.constructor.provide.includes(s) && this._updateContextValue(s, this[s], i);
3550
3088
  return r;
3551
3089
  }
3552
3090
  disconnectedCallback() {
3553
3091
  for (const o of this._providedContexts.values())
3554
- this.removeEventListener(Le, o.listener);
3092
+ this.removeEventListener(De, o.listener);
3555
3093
  super.disconnectedCallback();
3556
3094
  }
3557
3095
  }
3558
3096
  return t;
3559
3097
  }
3560
3098
  );
3561
- var Pr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, Ge = (e, t, n, o) => {
3562
- for (var r = o > 1 ? void 0 : o ? Vr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3563
- (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3564
- return o && r && Pr(t, n, r), r;
3099
+ var Br = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, tt = (e, t, n, o) => {
3100
+ for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3101
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
3102
+ return o && r && Br(t, n, r), r;
3565
3103
  };
3566
- const js = (e) => {
3104
+ const qs = (e) => {
3567
3105
  class t extends e {
3568
3106
  constructor(...o) {
3569
- super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => de(this, null, function* () {
3107
+ super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => pe(this, null, function* () {
3570
3108
  this.hasPendingChildren = !0, this.pendingCount++, yield r.detail.promise, this.pendingCount--, this.hasPendingChildren = this.pendingCount !== 0;
3571
3109
  }));
3572
3110
  }
3573
3111
  }
3574
- return Ge([
3575
- Y()
3576
- ], t.prototype, "hasPendingChildren", 2), Ge([
3577
- Y()
3112
+ return tt([
3113
+ X()
3114
+ ], t.prototype, "hasPendingChildren", 2), tt([
3115
+ X()
3578
3116
  ], t.prototype, "pendingCount", 2), t;
3579
- }, As = (e) => {
3117
+ }, Ys = (e) => {
3580
3118
  class t extends e {
3581
3119
  constructor(...o) {
3582
3120
  super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
3583
- const i = r.detail.key;
3584
- console.log("listener fired"), this._instances.has(i) && (r.detail.instance = this._instances.get(i), r.stopPropagation());
3121
+ const s = r.detail.key;
3122
+ this._instances.has(s) && (r.detail.instance = this._instances.get(s), r.stopPropagation());
3585
3123
  });
3586
3124
  }
3587
3125
  provideInstance(o, r) {
3588
- console.log("providing instance", o, r), this._instances.set(o, r);
3126
+ this._instances.set(o, r);
3589
3127
  }
3590
3128
  }
3591
3129
  return t;
3592
- }, Nr = (e) => {
3130
+ }, Hr = (e) => {
3593
3131
  class t extends e {
3594
3132
  requestInstance(o) {
3595
3133
  const r = new CustomEvent("request-instance", {
@@ -3602,18 +3140,24 @@ const js = (e) => {
3602
3140
  }
3603
3141
  }
3604
3142
  return t;
3605
- }, Ir = (e) => {
3606
- var n, o, r, i, a, l, u, c, m, p, d, h, y, x, b, v, g, z, H, T, Z;
3143
+ }, jr = (e) => {
3144
+ var n, o, r, s, i, c, l, a, u, h, p, m, g, x, v, $, f, L, N, D, V;
3607
3145
  const t = {};
3608
- return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (i = e.fonts) != null && i.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (a = e.fonts) != null && a.large && (t["--fonts-large"] = `${e.fonts.large}`), (l = e.fonts) != null && l.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (u = e.colors) != null && u.accent && (t["--colors-accent"] = `${e.colors.accent}`), (c = e.colors) != null && c.link && (t["--colors-link"] = `${e.colors.link}`), (m = e.colors) != null && m.primary && (t["--colors-primary"] = `${e.colors.primary}`), (p = e.colors) != null && p.text && (t["--colors-text"] = `${e.colors.text}`), (d = e.colors) != null && d.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (h = e.colors) != null && h.warning && (t["--colors-warning"] = `${e.colors.warning}`), (y = e.accessibility) != null && y.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (b = (x = e.accessibility) == null ? void 0 : x.colors) != null && b.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (g = (v = e.accessibility) == null ? void 0 : v.colors) != null && g.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (z = e.sizes) != null && z.small && (t["--size-small"] = `${e.sizes.small}`), (H = e.sizes) != null && H.normal && (t["--size-normal"] = `${e.sizes.normal}`), (T = e.sizes) != null && T.medium && (t["--size-medium"] = `${e.sizes.medium}`), (Z = e.sizes) != null && Z.large && (t["--size-large"] = `${e.sizes.large}`), e.typographyVariantMapping && (e.typographyVariantMapping.h1 && (t["--typography-h1"] = `${e.typographyVariantMapping.h1}`), e.typographyVariantMapping.h2 && (t["--typography-h2"] = `${e.typographyVariantMapping.h2}`), e.typographyVariantMapping.h3 && (t["--typography-h3"] = `${e.typographyVariantMapping.h3}`), e.typographyVariantMapping.h4 && (t["--typography-h4"] = `${e.typographyVariantMapping.h4}`), e.typographyVariantMapping.h5 && (t["--typography-h5"] = `${e.typographyVariantMapping.h5}`), e.typographyVariantMapping.h6 && (t["--typography-h6"] = `${e.typographyVariantMapping.h6}`)), t;
3146
+ 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}`), (N = e.sizes) != null && N.normal && (t["--size-normal"] = `${e.sizes.normal}`), (D = e.sizes) != null && D.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;
3609
3147
  };
3610
- var Or = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, W = (e, t, n, o) => {
3611
- for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
3612
- (a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
3613
- return o && r && Or(t, n, r), r;
3148
+ var Vr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, j = (e, t, n, o) => {
3149
+ for (var r = o > 1 ? void 0 : o ? Fr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3150
+ (i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
3151
+ return o && r && Vr(t, n, r), r;
3614
3152
  };
3615
- const Zr = (e) => `w-${e}`, Fs = (e) => {
3616
- class t extends Br(Nr(e)) {
3153
+ const Ar = (e) => `w-${e}`, Kr = (e) => Object.entries(e).reduce((t, [n, o]) => {
3154
+ if (n.indexOf("css-") > -1) {
3155
+ const r = n.replace("css-", "");
3156
+ t[r] = o;
3157
+ }
3158
+ return t;
3159
+ }, {}), Us = (e) => {
3160
+ class t extends Ir(Hr(e)) {
3617
3161
  constructor() {
3618
3162
  super(), this.listeners = [], this.setColumns = (o) => {
3619
3163
  this.columns = o;
@@ -3637,53 +3181,53 @@ const Zr = (e) => `w-${e}`, Fs = (e) => {
3637
3181
  }
3638
3182
  connectedCallback() {
3639
3183
  super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
3640
- Se.getInstance(this.container),
3184
+ ze.getInstance(this.container),
3641
3185
  this.container.getAsync("componentResolver")
3642
3186
  ]).then((o) => {
3643
- const r = o[0], i = o[1], a = r.nodes.get(this.nodeId || "");
3644
- if (a) {
3645
- this._descriptor = Je(a, this.branch), this._properties = a.attributes.properties, this._context = a.attributes.context, this._layout = a.attributes.layout, this.setProperties(a.attributes.properties), this.listeners.push(
3187
+ const r = o[0], s = o[1], i = r.nodes.get(this.nodeId || "");
3188
+ if (i) {
3189
+ this._descriptor = nt(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(
3646
3190
  r.events.subscribe(
3647
3191
  "components:properties-changed",
3648
- (m, p) => {
3649
- var d;
3650
- this.nodeId === ((d = p.node) == null ? void 0 : d.id) && (this._properties = p.node.attributes.properties, this.setProperties(a.attributes.properties));
3192
+ (u, h) => {
3193
+ var p;
3194
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._properties = h.node.attributes.properties, this.setProperties(i.attributes.properties));
3651
3195
  }
3652
3196
  )
3653
3197
  ), this.listeners.push(
3654
3198
  r.events.subscribe(
3655
3199
  "components:context-changed",
3656
- (m, p) => {
3657
- var d;
3658
- this.nodeId === ((d = p.node) == null ? void 0 : d.id) && (this._context = p.node.attributes.context);
3200
+ (u, h) => {
3201
+ var p;
3202
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._context = h.node.attributes.context);
3659
3203
  }
3660
3204
  )
3661
3205
  ), this.listeners.push(
3662
3206
  r.events.subscribe(
3663
3207
  "components:layout-changed",
3664
- (m, p) => {
3665
- var d;
3666
- this.nodeId === ((d = p.node) == null ? void 0 : d.id) && (this._layout = p.node.attributes.layout);
3208
+ (u, h) => {
3209
+ var p;
3210
+ this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._layout = h.node.attributes.layout);
3667
3211
  }
3668
3212
  )
3669
3213
  );
3670
- const l = a.mount(this.container);
3671
- if (this.listeners.push(l), !i) {
3214
+ const c = i.mount(this.container);
3215
+ if (this.listeners.push(c), !s) {
3672
3216
  console.warn(
3673
3217
  "Could not find resolver. Make sure it is registered on the container."
3674
3218
  );
3675
3219
  return;
3676
3220
  }
3677
- const u = Zr(this._descriptor.type);
3678
- if (customElements.get(u))
3221
+ const l = Ar(this._descriptor.type);
3222
+ if (customElements.get(l))
3679
3223
  return;
3680
- const c = i.getComponent(this._descriptor.type);
3681
- if (!c) {
3224
+ const a = s.getComponent(this._descriptor.type);
3225
+ if (!a) {
3682
3226
  console.warn("Component is missing or using incorrect import.");
3683
3227
  return;
3684
3228
  }
3685
- return c().then((m) => {
3686
- customElements.get(u) || customElements.define(u, m.default);
3229
+ return a().then((u) => {
3230
+ customElements.get(l) || customElements.define(l, u.default);
3687
3231
  });
3688
3232
  }
3689
3233
  });
@@ -3694,19 +3238,25 @@ const Zr = (e) => `w-${e}`, Fs = (e) => {
3694
3238
  }), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
3695
3239
  }
3696
3240
  _getContextStyles() {
3697
- return this._context ? Ir(this._context) : {};
3241
+ return this._context ? jr(this._context) : {};
3698
3242
  }
3699
3243
  render() {
3700
- const o = super.render(), r = this._getContextStyles(), i = O`
3244
+ const o = super.render(), r = this._getContextStyles(), s = Kr(this._properties), i = I`
3701
3245
  <style>
3702
3246
  :host {
3703
- ${Object.entries(r).map(([a, l]) => ge`
3704
- ${nt(`${a}: ${l};`)}
3247
+ ${Object.entries(r).map(([c, l]) => te`
3248
+ ${ke(`${c}: ${l};`)}
3249
+ `)}
3250
+ }
3251
+
3252
+ :host > * {
3253
+ ${Object.entries(s).map(([c, l]) => te`
3254
+ ${ke(`${c}: ${l} !important;`)}
3705
3255
  `)}
3706
3256
  }
3707
3257
  </style>
3708
3258
  `;
3709
- return O`
3259
+ return I`
3710
3260
  <style>
3711
3261
  :host {
3712
3262
  --size: ${this._layout.size || "full"};
@@ -3719,131 +3269,131 @@ const Zr = (e) => `w-${e}`, Fs = (e) => {
3719
3269
  `;
3720
3270
  }
3721
3271
  }
3722
- return W([
3723
- N({ type: String })
3724
- ], t.prototype, "nodeId", 2), W([
3725
- N({ type: String })
3726
- ], t.prototype, "branch", 2), W([
3727
- N({ type: String })
3728
- ], t.prototype, "width", 2), W([
3729
- N({ type: Number })
3730
- ], t.prototype, "_columns", 2), W([
3731
- N({ type: Number })
3732
- ], t.prototype, "columns", 2), W([
3733
- Y()
3734
- ], t.prototype, "_width", 2), W([
3735
- Y()
3736
- ], t.prototype, "_descriptor", 2), W([
3737
- Y()
3738
- ], t.prototype, "_properties", 2), W([
3739
- Y()
3740
- ], t.prototype, "_context", 2), W([
3741
- Y()
3272
+ return j([
3273
+ O({ type: String })
3274
+ ], t.prototype, "nodeId", 2), j([
3275
+ O({ type: String })
3276
+ ], t.prototype, "branch", 2), j([
3277
+ O({ type: String })
3278
+ ], t.prototype, "width", 2), j([
3279
+ O({ type: Number })
3280
+ ], t.prototype, "_columns", 2), j([
3281
+ O({ type: Number })
3282
+ ], t.prototype, "columns", 2), j([
3283
+ X()
3284
+ ], t.prototype, "_width", 2), j([
3285
+ X()
3286
+ ], t.prototype, "_descriptor", 2), j([
3287
+ X()
3288
+ ], t.prototype, "_properties", 2), j([
3289
+ X()
3290
+ ], t.prototype, "_context", 2), j([
3291
+ X()
3742
3292
  ], t.prototype, "_layout", 2), t;
3743
3293
  };
3744
3294
  export {
3745
- rn as AnchorLink,
3746
- ye as Button,
3747
- bt as ButtonUi,
3748
- cs as Checkbox,
3749
- ln as ColumnContext,
3750
- ct as ComponentNodeContext,
3751
- un as ComponentPropertyContext,
3752
- Ts as Confirm,
3753
- Zs as ConsumerMixin,
3754
- cn as ContainerContext,
3755
- mn as ConversationContext,
3756
- Ws as DataProvider,
3757
- pr as DateFormats,
3758
- Ls as Drawer,
3759
- Qn as DrawerAnimationType,
3760
- Ms as Dropdown,
3761
- uo as Empty,
3762
- Ss as Grid,
3763
- ft as Html,
3764
- Pe as HtmlUi,
3765
- fo as Icon,
3766
- Rs as Input,
3767
- Co as ItemList,
3768
- _s as ItemTree,
3769
- Jo as Lightbox,
3770
- He as Link,
3771
- go as List,
3772
- tr as Modal,
3773
- Os as NodeConnector,
3774
- zs as NotFound,
3775
- gt as Overlay,
3776
- yo as Paragraph,
3777
- js as PendingState,
3778
- ie as Portal,
3779
- As as ProviderMixin,
3780
- Nr as Requester,
3781
- vo as RouteLink,
3782
- dn as RoutingContext,
3783
- Xe as StyledText,
3784
- ae as SymbolBadge,
3295
+ cn as AnchorLink,
3296
+ be as Button,
3297
+ wt as ButtonUi,
3298
+ ds as Checkbox,
3299
+ mn as ColumnContext,
3300
+ ut as ComponentNodeContext,
3301
+ hn as ComponentPropertyContext,
3302
+ Ns as Confirm,
3303
+ Ks as ConsumerMixin,
3304
+ dn as ContainerContext,
3305
+ fn as ConversationContext,
3306
+ As as DataProvider,
3307
+ gr as DateFormats,
3308
+ Ds as Drawer,
3309
+ Jn as DrawerAnimationType,
3310
+ Ts as Dropdown,
3311
+ ho as Empty,
3312
+ zs as Grid,
3313
+ yt as Html,
3314
+ We as HtmlUi,
3315
+ ne as Icon,
3316
+ Ls as Input,
3317
+ $o as ItemList,
3318
+ Ps as ItemTree,
3319
+ tr as Lightbox,
3320
+ Ie as Link,
3321
+ bo as List,
3322
+ or as Modal,
3323
+ Fs as NodeConnector,
3324
+ Rs as NotFound,
3325
+ bt as Overlay,
3326
+ vo as Paragraph,
3327
+ qs as PendingState,
3328
+ le as Portal,
3329
+ Ys as ProviderMixin,
3330
+ Hr as Requester,
3331
+ xo as RouteLink,
3332
+ pn as RoutingContext,
3333
+ Je as StyledText,
3334
+ ue as SymbolBadge,
3785
3335
  Q as SymbolBadgeUi,
3786
- Ds as TabStop,
3787
- ze as Text,
3788
- hr as TextLink,
3789
- Hs as Timestamp,
3336
+ Os as TabStop,
3337
+ Re as Text,
3338
+ fr as TextLink,
3339
+ Is as Timestamp,
3790
3340
  Bs as Tooltip,
3791
- Ps as TransitionComponent,
3792
- re as Typography,
3793
- Ve as TypographyUi,
3794
- Fs as WidgetComponentMixin,
3795
- wr as WidgetLink,
3796
- Vs as WidgetOverlayOutlet,
3797
- X as borderTabStyle,
3798
- Ye as browser,
3799
- Zn as buttonCss,
3800
- ht as contentBox,
3801
- V as convertToStringAttributes,
3802
- as as createEmptyComponent,
3803
- Ns as createReactComponent,
3804
- Is as createWebComponent,
3805
- nn as defaultRenderInstructions,
3806
- Xt as embeddedLinkMapper,
3807
- Gt as filterCssProps,
3808
- Qt as filterCssPropsStyle,
3809
- Jt as genericHashLink,
3810
- ks as genericHtml,
3811
- pe as headingElement,
3812
- tn as imageLightboxRenderer,
3813
- xs as invertedHoverButton,
3814
- Es as itemList,
3815
- jn as linkTabStyle,
3816
- An as list,
3817
- $s as paddedBorderTabStyle,
3818
- en as processHtmlString,
3819
- $e as transitionComposer,
3820
- ls as useAction,
3821
- us as useChildren,
3822
- ds as useColumns,
3823
- ms as useComponent,
3824
- Re as useComponentDescriptor,
3825
- _e as useComponentNode,
3826
- ne as useComponentPlatform,
3827
- I as useContainer,
3828
- $n as useContext,
3829
- hs as useConversation,
3830
- ps as useDispatch,
3831
- A as useEventListener,
3832
- Mn as useEvents,
3833
- F as useIsMounted,
3834
- fs as useIsTabbing,
3341
+ Ws as TransitionComponent,
3342
+ ie as Typography,
3343
+ He as TypographyUi,
3344
+ Us as WidgetComponentMixin,
3345
+ Er as WidgetLink,
3346
+ Hs as WidgetOverlayOutlet,
3347
+ Z as borderTabStyle,
3348
+ Ge as browser,
3349
+ Kn as buttonCss,
3350
+ ft as contentBox,
3351
+ W as convertToStringAttributes,
3352
+ us as createEmptyComponent,
3353
+ js as createReactComponent,
3354
+ Vs as createWebComponent,
3355
+ sn as defaultRenderInstructions,
3356
+ Jt as embeddedLinkMapper,
3357
+ tn as filterCssProps,
3358
+ en as filterCssPropsStyle,
3359
+ nn as genericHashLink,
3360
+ Ms as genericHtml,
3361
+ ye as headingElement,
3362
+ rn as imageLightboxRenderer,
3363
+ ks as invertedHoverButton,
3364
+ _s as itemList,
3365
+ qn as linkTabStyle,
3366
+ Yn as list,
3367
+ Ss as paddedBorderTabStyle,
3368
+ on as processHtmlString,
3369
+ Se as transitionComposer,
3370
+ ms as useAction,
3371
+ hs as useChildren,
3372
+ ps as useColumns,
3373
+ fs as useComponent,
3374
+ Le as useComponentDescriptor,
3375
+ Pe as useComponentNode,
3376
+ re as useComponentPlatform,
3377
+ H as useContainer,
3378
+ Sn as useContext,
3379
+ gs as useConversation,
3380
+ ys as useDispatch,
3381
+ K as useEventListener,
3382
+ Tn as useEvents,
3383
+ q as useIsMounted,
3384
+ bs as useIsTabbing,
3835
3385
  ee as useKeyPress,
3836
- gs as useLayout,
3837
- lt as usePrevious,
3838
- ys as useProperties,
3839
- Cs as useRenderState,
3840
- bs as useRouteData,
3841
- ut as useRouter,
3842
- dt as useScroll,
3843
- vs as useSettings,
3844
- mt as useToggle,
3845
- ws as useTransitionEnd,
3846
- Te as useUniqueMenu,
3847
- Ce as useWidgetEvent
3386
+ vs as useLayout,
3387
+ dt as usePrevious,
3388
+ $s as useProperties,
3389
+ ws as useRenderState,
3390
+ xs as useRouteData,
3391
+ mt as useRouter,
3392
+ ht as useScroll,
3393
+ Es as useSettings,
3394
+ pt as useToggle,
3395
+ Cs as useTransitionEnd,
3396
+ Ne as useUniqueMenu,
3397
+ ve as useWidgetEvent
3848
3398
  };
3849
3399
  //# sourceMappingURL=index.js.map