@telia-ace/widget-ui 1.1.2-rc.1 → 1.1.2-rc.2

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/index.mjs CHANGED
@@ -38,24 +38,30 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
38
38
  in: "transform: scale(1);",
39
39
  out: "transform: scale(0);"
40
40
  }
41
- }, wt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
41
+ }, wt = [
42
+ "slide-up",
43
+ "slide-down",
44
+ "slide-left",
45
+ "slide-right",
46
+ "scale"
47
+ ], he = {
42
48
  compose: (e = "exited", t) => {
43
49
  const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = wt.indexOf(r[0]) > -1 ? "transform" : "opacity";
44
50
  if (vt(e))
45
51
  return r && r.length > 0 ? k`
46
- ${r && r.length > 0 && r.map((d) => F[d] ? F[d].in : "")}
47
- transition: ${s} ${n.duration}ms ${n.easing};
48
- ` : "";
52
+ ${r && r.length > 0 && r.map((d) => F[d] ? F[d].in : "")}
53
+ transition: ${s} ${n.duration}ms ${n.easing};
54
+ ` : "";
49
55
  const a = r && r.length > 0 && k`
50
- ${r.map((d) => F[d] ? F[d].out : "")}
51
- `;
56
+ ${r.map((d) => F[d] ? F[d].out : "")}
57
+ `;
52
58
  if (xt(e)) {
53
59
  const d = o.transitionKeys.split(" ");
54
60
  return d && d.length > 0 && e === "exiting" ? k`
55
- ${a};
56
- ${d.map((c) => F[c] ? F[c].out : "")}
57
- transition: ${s} ${o.duration}ms ${o.easing};
58
- ` : a;
61
+ ${a};
62
+ ${d.map((c) => F[c] ? F[c].out : "")}
63
+ transition: ${s} ${o.duration}ms ${o.easing};
64
+ ` : a;
59
65
  }
60
66
  },
61
67
  composeViewTransition: (e, t, n) => {
@@ -116,15 +122,18 @@ const De = () => {
116
122
  return "edge-chromium";
117
123
  if ((f || l) && c)
118
124
  return "blink";
119
- }, kt = ["string", "number"], D = (e) => Object.keys(e).reduce((t, n) => {
120
- const o = typeof e[n] > "u" ? "" : e[n], r = typeof o;
121
- if (kt.indexOf(r) > -1) {
122
- const s = n.substring(0, 5);
123
- s === "data-" || s === "aria-" ? t[st(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
124
- } else
125
- t[n] = o;
126
- return t;
127
- }, {}), g1 = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ i(nn, { ...t }) : null, $t = (e) => new RegExp("^#", "i").test(e), Lt = (e) => ({ children: t, ...n }) => {
125
+ }, kt = ["string", "number"], D = (e) => Object.keys(e).reduce(
126
+ (t, n) => {
127
+ const o = typeof e[n] > "u" ? "" : e[n], r = typeof o;
128
+ if (kt.indexOf(r) > -1) {
129
+ const s = n.substring(0, 5);
130
+ s === "data-" || s === "aria-" ? t[st(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
131
+ } else
132
+ t[n] = o;
133
+ return t;
134
+ },
135
+ {}
136
+ ), g1 = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ i(nn, { ...t }) : null, $t = (e) => new RegExp("^#", "i").test(e), Lt = (e) => ({ children: t, ...n }) => {
128
137
  const {
129
138
  implementation: o,
130
139
  name: r
@@ -150,8 +159,8 @@ const De = () => {
150
159
  return Object.keys(We(e)).forEach((n) => {
151
160
  n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
152
161
  }), k`
153
- ${t}
154
- `;
162
+ ${t}
163
+ `;
155
164
  }, St = (e, t) => {
156
165
  let n = "";
157
166
  const o = () => {
@@ -175,11 +184,15 @@ const De = () => {
175
184
  r = c;
176
185
  }
177
186
  }
178
- const a = ((d, c, l) => l[d] ? `${c}${l[d]}` : `${c}${d}`)(o, r, e.theme.typographyVariantMapping || {});
187
+ const a = ((d, c, l) => l[d] ? `${c}${l[d]}` : `${c}${d}`)(
188
+ o,
189
+ r,
190
+ e.theme.typographyVariantMapping || {}
191
+ );
179
192
  return k`
180
- ${a} {
181
- ${n}
182
- }
193
+ ${a} {
194
+ ${n}
195
+ }
183
196
  `;
184
197
  };
185
198
  function Et(e, t) {
@@ -190,28 +203,30 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
190
203
  a: Lt(e),
191
204
  img: Rt(t)
192
205
  }
193
- }), zt = (e) => St(e, "a"), se = H(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
194
- Dt,
195
- {
196
- type: "button",
197
- className: $(e, "humany-button"),
198
- ...D(n),
199
- ref: o,
200
- children: t
201
- }
202
- )), Dt = y.button`
203
- -webkit-appearance: button;
204
- text-transform: none;
205
- overflow: visible;
206
- outline: none;
207
- border: none;
208
- background-color: transparent;
209
- cursor: pointer;
210
- font-family: inherit;
211
- font-size: inherit;
212
- line-height: normal;
213
- margin: 0;
214
- padding: 0;
206
+ }), zt = (e) => St(e, "a"), se = H(
207
+ ({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
208
+ Dt,
209
+ {
210
+ type: "button",
211
+ className: $(e, "humany-button"),
212
+ ...D(n),
213
+ ref: o,
214
+ children: t
215
+ }
216
+ )
217
+ ), Dt = y.button`
218
+ -webkit-appearance: button;
219
+ text-transform: none;
220
+ overflow: visible;
221
+ outline: none;
222
+ border: none;
223
+ background-color: transparent;
224
+ cursor: pointer;
225
+ font-family: inherit;
226
+ font-size: inherit;
227
+ line-height: normal;
228
+ margin: 0;
229
+ padding: 0;
215
230
  `, p1 = ({
216
231
  onChange: e = () => {
217
232
  },
@@ -234,7 +249,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
234
249
  type: "",
235
250
  name: "",
236
251
  branch: ""
237
- }), Nt = K({}), Vt = K(null), Wt = K(null), pe = () => P(Ze), T = () => P(Bt), C1 = (e, t) => {
252
+ }), Nt = K(
253
+ {}
254
+ ), Vt = K(null), Wt = K(null), pe = () => P(Ze), T = () => P(Bt), C1 = (e, t) => {
238
255
  const n = pe().id, o = T();
239
256
  return (r, s) => {
240
257
  (t || o).getAsync("actionResolver").then((a) => {
@@ -433,18 +450,24 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
433
450
  };
434
451
  }, [r]), t;
435
452
  }, Oe = () => P(Vt), S1 = (e) => {
436
- const t = T(), n = Oe(), [o, r] = w({ name: "", params: {} }), s = W();
453
+ const t = T(), n = Oe(), [o, r] = w({
454
+ name: "",
455
+ params: {}
456
+ }), s = W();
437
457
  return v(() => {
438
458
  const a = (e || t).get("$widget");
439
459
  if (!a)
440
460
  return;
441
461
  const { events: d } = a;
442
- return d.subscribe("router:change", (l, { next: { routeData: u } }) => {
443
- if (s.current) {
444
- const { name: h, params: f } = u;
445
- Re(f), r({ name: h, params: f });
462
+ return d.subscribe(
463
+ "router:change",
464
+ (l, { next: { routeData: u } }) => {
465
+ if (s.current) {
466
+ const { name: h, params: f } = u;
467
+ Re(f), r({ name: h, params: f });
468
+ }
446
469
  }
447
- });
470
+ );
448
471
  }, [s, e, t]), v(() => {
449
472
  if (n && n.history && s.current) {
450
473
  const a = n.getRouteData(), { name: d, params: c } = a;
@@ -578,15 +601,17 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
578
601
  r !== e && t();
579
602
  });
580
603
  return () => n(e);
581
- }, be = H(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
582
- "span",
583
- {
584
- ref: o,
585
- className: $(e, "humany-text"),
586
- ...D(n),
587
- children: t
588
- }
589
- )), Pe = (e) => k`
604
+ }, be = H(
605
+ ({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
606
+ "span",
607
+ {
608
+ ref: o,
609
+ className: $(e, "humany-text"),
610
+ ...D(n),
611
+ children: t
612
+ }
613
+ )
614
+ ), Pe = (e) => k`
590
615
  display: flex;
591
616
  justify-content: center;
592
617
  flex-direction: column;
@@ -853,7 +878,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
853
878
  return /* @__PURE__ */ i(
854
879
  "i",
855
880
  {
856
- className: $(s, "humany-icon", "humany-custom-icon"),
881
+ className: $(
882
+ s,
883
+ "humany-icon",
884
+ "humany-custom-icon"
885
+ ),
857
886
  title: e,
858
887
  style: { ...u, ...r },
859
888
  ...l,
@@ -1194,9 +1223,36 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
1194
1223
  ] });
1195
1224
  case "options":
1196
1225
  return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 2", ...u, children: [
1197
- /* @__PURE__ */ i("circle", { cx: "15", cy: "1", r: "1", transform: "rotate(90 15 1)", fill: "black" }),
1198
- /* @__PURE__ */ i("circle", { cx: "1", cy: "1", r: "1", transform: "rotate(90 1 1)", fill: "black" }),
1199
- /* @__PURE__ */ i("circle", { cx: "8", cy: "1", r: "1", transform: "rotate(90 8 1)", fill: "black" })
1226
+ /* @__PURE__ */ i(
1227
+ "circle",
1228
+ {
1229
+ cx: "15",
1230
+ cy: "1",
1231
+ r: "1",
1232
+ transform: "rotate(90 15 1)",
1233
+ fill: "black"
1234
+ }
1235
+ ),
1236
+ /* @__PURE__ */ i(
1237
+ "circle",
1238
+ {
1239
+ cx: "1",
1240
+ cy: "1",
1241
+ r: "1",
1242
+ transform: "rotate(90 1 1)",
1243
+ fill: "black"
1244
+ }
1245
+ ),
1246
+ /* @__PURE__ */ i(
1247
+ "circle",
1248
+ {
1249
+ cx: "8",
1250
+ cy: "1",
1251
+ r: "1",
1252
+ transform: "rotate(90 8 1)",
1253
+ fill: "black"
1254
+ }
1255
+ )
1200
1256
  ] });
1201
1257
  case "browse":
1202
1258
  return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...u, children: [
@@ -1401,7 +1457,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
1401
1457
  ) : null;
1402
1458
  }
1403
1459
  }, jt = y.svg`
1404
- transform: rotate(180deg);
1460
+ transform: rotate(180deg);
1405
1461
  `, Kt = {
1406
1462
  h1: "h1",
1407
1463
  h2: "h2",
@@ -1411,7 +1467,12 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(Sn, { attrs: t, htmlBody: e }), Ht =
1411
1467
  h6: "h6",
1412
1468
  p: "p",
1413
1469
  span: "span"
1414
- }, X = ({ variant: e, component: t, className: n, children: o }) => {
1470
+ }, X = ({
1471
+ variant: e,
1472
+ component: t,
1473
+ className: n,
1474
+ children: o
1475
+ }) => {
1415
1476
  const { typographyVariantMapping: r = {} } = Zt(), s = {
1416
1477
  ...Kt,
1417
1478
  ...r
@@ -1740,7 +1801,7 @@ const Ut = 300, T1 = ({
1740
1801
  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;
1741
1802
  }};
1742
1803
  `, nn = ({ ...e }) => /* @__PURE__ */ i(on, { ...e }), on = y.div`
1743
- display: none;
1804
+ display: none;
1744
1805
  `, V1 = H(
1745
1806
  ({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
1746
1807
  rn,
@@ -1755,12 +1816,12 @@ const Ut = 300, T1 = ({
1755
1816
  }
1756
1817
  )
1757
1818
  ), rn = y.div`
1758
- display: grid;
1759
- grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1760
- grid-gap: ${(e) => e["data-gap"]};
1761
- justify-content: center;
1762
- grid-auto-rows: max-content;
1763
- ${Mt}
1819
+ display: grid;
1820
+ grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
1821
+ grid-gap: ${(e) => e["data-gap"]};
1822
+ justify-content: center;
1823
+ grid-auto-rows: max-content;
1824
+ ${Mt}
1764
1825
  `, Ke = H(
1765
1826
  ({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
1766
1827
  const s = T(), [a, d] = w();
@@ -1903,7 +1964,15 @@ const Ut = 300, T1 = ({
1903
1964
  ref: f,
1904
1965
  children: [
1905
1966
  t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol: a, header: e, text: n, html: o }) : null),
1906
- d.length ? /* @__PURE__ */ i(an, { items: d, renderItem: c, renderLi: l, ...u }) : null,
1967
+ d.length ? /* @__PURE__ */ i(
1968
+ an,
1969
+ {
1970
+ items: d,
1971
+ renderItem: c,
1972
+ renderLi: l,
1973
+ ...u
1974
+ }
1975
+ ) : null,
1907
1976
  s
1908
1977
  ]
1909
1978
  }
@@ -1944,8 +2013,16 @@ const Ut = 300, T1 = ({
1944
2013
  t && u(t, 1)
1945
2014
  ] });
1946
2015
  }, un = H(
1947
- ({ className: e, onClick: t = () => {
1948
- }, name: n = "", to: o = "", params: r = {}, children: s, ...a }, d) => {
2016
+ ({
2017
+ className: e,
2018
+ onClick: t = () => {
2019
+ },
2020
+ name: n = "",
2021
+ to: o = "",
2022
+ params: r = {},
2023
+ children: s,
2024
+ ...a
2025
+ }, d) => {
1949
2026
  const c = Oe(), l = T();
1950
2027
  if (!c)
1951
2028
  return null;
@@ -1960,26 +2037,33 @@ const Ut = 300, T1 = ({
1960
2037
  };
1961
2038
  if (n) {
1962
2039
  if (!(c.routes || []).find((g) => g.name === n))
1963
- return process.env.NODE_ENV !== "production" && ue.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ i(
2040
+ return process.env.NODE_ENV !== "production" && ue.warn(
2041
+ `Unable to create route. No route named "${n}" exist.`
2042
+ ), /* @__PURE__ */ i(
1964
2043
  de,
1965
2044
  {
1966
2045
  ...h,
1967
2046
  onClick: (g) => {
1968
- t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(`Unable to navigate. No route named "${n}" exist.`);
2047
+ t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(
2048
+ `Unable to navigate. No route named "${n}" exist.`
2049
+ );
1969
2050
  },
1970
2051
  children: s
1971
2052
  }
1972
2053
  );
1973
- const C = Object.keys(r).reduce((g, p) => {
1974
- const S = r[p];
1975
- if (Array.isArray(S)) {
1976
- if (S.length === 0)
1977
- return g;
1978
- g[p] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
1979
- } else
1980
- g[p] = typeof S == "string" ? encodeURIComponent(S) : S;
1981
- return g;
1982
- }, {});
2054
+ const C = Object.keys(r).reduce(
2055
+ (g, p) => {
2056
+ const S = r[p];
2057
+ if (Array.isArray(S)) {
2058
+ if (S.length === 0)
2059
+ return g;
2060
+ g[p] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
2061
+ } else
2062
+ g[p] = typeof S == "string" ? encodeURIComponent(S) : S;
2063
+ return g;
2064
+ },
2065
+ {}
2066
+ );
1983
2067
  try {
1984
2068
  u = c.generate(n, C || {});
1985
2069
  } catch {
@@ -2028,7 +2112,10 @@ const Ut = 300, T1 = ({
2028
2112
  role: n,
2029
2113
  as: d,
2030
2114
  tabIndex: o,
2031
- className: $(e, "humany-link", [!!t, "humany-disabled"]),
2115
+ className: $(e, "humany-link", [
2116
+ !!t,
2117
+ "humany-disabled"
2118
+ ]),
2032
2119
  onClick: (p) => {
2033
2120
  if (p.persist(), t) {
2034
2121
  p.preventDefault();
@@ -2067,12 +2154,12 @@ const Ut = 300, T1 = ({
2067
2154
  );
2068
2155
  }
2069
2156
  ), hn = y(un)`
2070
- ${(e) => e.disabled ? `
2157
+ ${(e) => e.disabled ? `
2071
2158
  pointer-events: none;
2072
2159
  opacity: .7;
2073
2160
  ` : "cursor: pointer;"}
2074
2161
  `, fn = y.a`
2075
- ${(e) => e.disabled ? `
2162
+ ${(e) => e.disabled ? `
2076
2163
  pointer-events: none;
2077
2164
  opacity: .7;
2078
2165
  ` : "cursor: pointer;"}
@@ -2112,35 +2199,35 @@ const Ut = 300, T1 = ({
2112
2199
  }
2113
2200
  );
2114
2201
  }, mn = y.div`
2115
- background: rgba(0, 0, 0, 0.6);
2116
- min-width: 100%;
2117
- min-height: 100%;
2118
- position: fixed;
2119
- top: 0;
2120
- bottom: 0;
2121
- right: 0;
2122
- left: 0;
2123
- display: flex;
2124
- justify-content: center;
2125
- align-items: center;
2126
- z-index: 7;
2202
+ background: rgba(0, 0, 0, 0.6);
2203
+ min-width: 100%;
2204
+ min-height: 100%;
2205
+ position: fixed;
2206
+ top: 0;
2207
+ bottom: 0;
2208
+ right: 0;
2209
+ left: 0;
2210
+ display: flex;
2211
+ justify-content: center;
2212
+ align-items: center;
2213
+ z-index: 7;
2127
2214
 
2128
- transition: ${(e) => e.duration}ms;
2129
- opacity: 0;
2215
+ transition: ${(e) => e.duration}ms;
2216
+ opacity: 0;
2130
2217
 
2131
- &.humany-overlay-transition-enter {
2132
- opacity: 0.1;
2133
- }
2134
- &.humany-overlay-transition-enter-active,
2135
- &.humany-overlay-transition-enter-done,
2136
- &.humany-overlay-transition-exit {
2137
- opacity: 1;
2138
- }
2218
+ &.humany-overlay-transition-enter {
2219
+ opacity: 0.1;
2220
+ }
2221
+ &.humany-overlay-transition-enter-active,
2222
+ &.humany-overlay-transition-enter-done,
2223
+ &.humany-overlay-transition-exit {
2224
+ opacity: 1;
2225
+ }
2139
2226
 
2140
- &.humany-overlay-transition-exit-active,
2141
- &.humany-overlay-transition-exit-done {
2142
- opacity: 0;
2143
- }
2227
+ &.humany-overlay-transition-exit-active,
2228
+ &.humany-overlay-transition-exit-done {
2229
+ opacity: 0;
2230
+ }
2144
2231
  `, gn = Ne`
2145
2232
  100% {
2146
2233
  transform: rotate(360deg);
@@ -2159,65 +2246,72 @@ const Ut = 300, T1 = ({
2159
2246
  stroke-dashoffset: -124px;
2160
2247
  }
2161
2248
  `, Cn = y.svg`
2162
- animation: ${gn} 2s linear infinite;
2163
- height: 100%;
2164
- transform-origin: center center;
2165
- width: 100%;
2166
- position: absolute;
2167
- top: 0;
2168
- bottom: 0;
2169
- left: 0;
2170
- right: 0;
2171
- margin: auto;
2172
- transition: 200ms ease-out opacity;
2249
+ animation: ${gn} 2s linear infinite;
2250
+ height: 100%;
2251
+ transform-origin: center center;
2252
+ width: 100%;
2253
+ position: absolute;
2254
+ top: 0;
2255
+ bottom: 0;
2256
+ left: 0;
2257
+ right: 0;
2258
+ margin: auto;
2259
+ transition: 200ms ease-out opacity;
2173
2260
  `, yn = y.div`
2174
- position: absolute;
2175
- top: 0;
2176
- bottom: 0;
2177
- left: 0;
2178
- right: 0;
2179
- height: 100%;
2180
- width: 100%;
2181
- pointer-events: ${(e) => e["data-loading"] ? "all" : "none"};
2182
- display: flex;
2183
- flex-direction: column;
2184
- justify-content: center;
2185
- transition: 200ms ease-out opacity;
2186
- box-sizing: border-box;
2187
- overflow: hidden;
2188
- svg {
2189
- opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2190
- }
2261
+ position: absolute;
2262
+ top: 0;
2263
+ bottom: 0;
2264
+ left: 0;
2265
+ right: 0;
2266
+ height: 100%;
2267
+ width: 100%;
2268
+ pointer-events: ${(e) => e["data-loading"] ? "all" : "none"};
2269
+ display: flex;
2270
+ flex-direction: column;
2271
+ justify-content: center;
2272
+ transition: 200ms ease-out opacity;
2273
+ box-sizing: border-box;
2274
+ overflow: hidden;
2275
+ svg {
2276
+ opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2277
+ }
2191
2278
  `, bn = y.div`
2192
- position: relative;
2193
- margin: 0 auto;
2194
- width: 100px;
2195
- &:before {
2196
- content: '';
2197
- display: block;
2198
- padding-top: 100%;
2199
- }
2279
+ position: relative;
2280
+ margin: 0 auto;
2281
+ width: 100px;
2282
+ &:before {
2283
+ content: '';
2284
+ display: block;
2285
+ padding-top: 100%;
2286
+ }
2200
2287
  `, vn = y.circle`
2201
- stroke-dasharray: 1, 200;
2202
- stroke-dashoffset: 0;
2203
- animation: ${pn} 1.5s ease-in-out infinite;
2204
- stroke-linecap: round;
2205
- stroke: ${(e) => {
2288
+ stroke-dasharray: 1, 200;
2289
+ stroke-dashoffset: 0;
2290
+ animation: ${pn} 1.5s ease-in-out infinite;
2291
+ stroke-linecap: round;
2292
+ stroke: ${(e) => {
2206
2293
  var t;
2207
2294
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2208
2295
  }};
2209
- stroke-width: 2px;
2210
- `, xn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(yn, { className: $("humany-loader", e), "data-loading": t, children: /* @__PURE__ */ i(bn, { className: "humany-spinner", children: /* @__PURE__ */ i(Cn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
2211
- vn,
2296
+ stroke-width: 2px;
2297
+ `, xn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
2298
+ yn,
2212
2299
  {
2213
- cx: "50",
2214
- cy: "50",
2215
- r: "20",
2216
- fill: "none",
2217
- "stroke-width": "2",
2218
- "stroke-miterlimit": "10"
2219
- }
2220
- ) }) }) }), wn = ({
2300
+ className: $("humany-loader", e),
2301
+ "data-loading": t,
2302
+ children: /* @__PURE__ */ i(bn, { className: "humany-spinner", children: /* @__PURE__ */ i(Cn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
2303
+ vn,
2304
+ {
2305
+ cx: "50",
2306
+ cy: "50",
2307
+ r: "20",
2308
+ fill: "none",
2309
+ "stroke-width": "2",
2310
+ "stroke-miterlimit": "10"
2311
+ }
2312
+ ) }) })
2313
+ }
2314
+ ), wn = ({
2221
2315
  zoomState: e,
2222
2316
  image: t,
2223
2317
  changeZoom: n,
@@ -2834,81 +2928,90 @@ const Ut = 300, T1 = ({
2834
2928
  var h;
2835
2929
  s(), (h = c == null ? void 0 : c.current) == null || h.close();
2836
2930
  }, [s]);
2837
- return /* @__PURE__ */ b(Fn, { className: e, trigger: t, ref: c, onOverlayClick: l, children: [
2838
- n && /* @__PURE__ */ i(Be, { children: n }),
2839
- o && /* @__PURE__ */ i(Be, { children: o }),
2840
- d && /* @__PURE__ */ i(Pn, { onClick: u, children: d }),
2841
- a && /* @__PURE__ */ i(jn, { onClick: l, children: a })
2842
- ] });
2931
+ return /* @__PURE__ */ b(
2932
+ Fn,
2933
+ {
2934
+ className: e,
2935
+ trigger: t,
2936
+ ref: c,
2937
+ onOverlayClick: l,
2938
+ children: [
2939
+ n && /* @__PURE__ */ i(Be, { children: n }),
2940
+ o && /* @__PURE__ */ i(Be, { children: o }),
2941
+ d && /* @__PURE__ */ i(Pn, { onClick: u, children: d }),
2942
+ a && /* @__PURE__ */ i(jn, { onClick: l, children: a })
2943
+ ]
2944
+ }
2945
+ );
2843
2946
  }, Fn = y(On)`
2844
- display: block;
2947
+ display: block;
2845
2948
 
2846
- span {
2847
- display: block;
2848
- margin: 0 0 ${(e) => {
2949
+ span {
2950
+ display: block;
2951
+ margin: 0 0 ${(e) => {
2849
2952
  var t;
2850
2953
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2851
2954
  }};
2852
2955
 
2853
- &:first-of-type:not(:only-of-type) {
2854
- font-weight: 700;
2855
- margin: 0 0 ${(e) => {
2956
+ &:first-of-type:not(:only-of-type) {
2957
+ font-weight: 700;
2958
+ margin: 0 0 ${(e) => {
2856
2959
  var t;
2857
2960
  return (t = e.theme.sizes) == null ? void 0 : t.small;
2858
2961
  }};
2859
- }
2860
2962
  }
2963
+ }
2861
2964
  `, Pn = y(se)`
2862
- display: inline-block;
2863
- min-width: 50px;
2864
- ${(e) => {
2965
+ display: inline-block;
2966
+ min-width: 50px;
2967
+ ${(e) => {
2865
2968
  var t, n;
2866
2969
  return `padding: ${(t = e.theme.sizes) == null ? void 0 : t.small} ${(n = e.theme.sizes) == null ? void 0 : n.normal};`;
2867
2970
  }}
2868
- ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
2971
+ ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
2869
2972
  color: #FFFFFF;
2870
- background-color: ${(e) => {
2973
+ background-color: ${(e) => {
2871
2974
  var t;
2872
2975
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2873
2976
  }};
2874
- border: 1px solid ${(e) => {
2977
+ border: 1px solid ${(e) => {
2875
2978
  var t;
2876
2979
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2877
2980
  }};
2878
2981
 
2879
- margin: 0 ${(e) => {
2982
+ margin: 0 ${(e) => {
2880
2983
  var t;
2881
2984
  return (t = e.theme.sizes) == null ? void 0 : t.small;
2882
2985
  }} 0 0;
2883
2986
 
2884
- &:focus {
2885
- background-color: transparent;
2886
- }
2987
+ &:focus {
2988
+ background-color: transparent;
2989
+ }
2887
2990
 
2888
- &:focus-visible {
2889
- ${O}
2890
- }
2991
+ &:focus-visible {
2992
+ ${O}
2993
+ }
2891
2994
  `, jn = y(se)`
2892
- display: inline-block;
2893
- min-width: 50px;
2894
- ${(e) => {
2995
+ display: inline-block;
2996
+ min-width: 50px;
2997
+ ${(e) => {
2895
2998
  var t, n;
2896
2999
  return `padding: ${(t = e.theme.sizes) == null ? void 0 : t.small} ${(n = e.theme.sizes) == null ? void 0 : n.normal};`;
2897
3000
  }}
2898
- ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
3001
+ ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
2899
3002
  background-color: transparent;
2900
- color: ${(e) => {
3003
+ color: ${(e) => {
2901
3004
  var t;
2902
3005
  return (t = e.theme.colors) == null ? void 0 : t.text;
2903
3006
  }};
2904
- border: 1px solid ${(e) => {
3007
+ border: 1px solid ${(e) => {
2905
3008
  var t;
2906
3009
  return (t = e.theme.colors) == null ? void 0 : t.text;
2907
3010
  }};
2908
3011
 
2909
- &:focus-visible {
2910
- ${O};
2911
- }
3012
+ &:focus-visible {
3013
+ ${O};
3014
+ }
2912
3015
  `, O1 = ({
2913
3016
  header: e = "",
2914
3017
  link: t = "",
@@ -2925,55 +3028,55 @@ const Ut = 300, T1 = ({
2925
3028
  /* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
2926
3029
  ] })
2927
3030
  ] }), Kn = y.div`
2928
- display: flex;
2929
- flex-wrap: wrap;
3031
+ display: flex;
3032
+ flex-wrap: wrap;
2930
3033
  `, Yn = y.div`
2931
- ${(e) => ie(e)(
3034
+ ${(e) => ie(e)(
2932
3035
  "h2",
2933
3036
  k`
2934
- padding: 0;
2935
- margin: 0;
2936
- color: gray;
2937
- font-size: 7em;
2938
- `
3037
+ padding: 0;
3038
+ margin: 0;
3039
+ color: gray;
3040
+ font-size: 7em;
3041
+ `
2939
3042
  )}
2940
3043
  `, Xn = y.div`
2941
- margin-left: ${(e) => {
3044
+ margin-left: ${(e) => {
2942
3045
  var t;
2943
3046
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2944
3047
  }};
2945
3048
 
2946
- ${(e) => {
3049
+ ${(e) => {
2947
3050
  var t;
2948
3051
  return ie(e)(
2949
3052
  "h3",
2950
3053
  k`
2951
- text-transform: uppercase;
2952
- font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
2953
- `
3054
+ text-transform: uppercase;
3055
+ font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
3056
+ `
2954
3057
  );
2955
3058
  }}
2956
3059
 
2957
- a {
2958
- color: ${(e) => {
3060
+ a {
3061
+ color: ${(e) => {
2959
3062
  var t;
2960
3063
  return (t = e.theme.colors) == null ? void 0 : t.link;
2961
3064
  }};
2962
- font-size: ${(e) => {
3065
+ font-size: ${(e) => {
2963
3066
  var t;
2964
3067
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2965
3068
  }};
2966
- }
3069
+ }
2967
3070
  `, Un = y.div`
2968
- margin-top: ${(e) => {
3071
+ margin-top: ${(e) => {
2969
3072
  var t;
2970
3073
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2971
3074
  }};
2972
- min-width: 100%;
3075
+ min-width: 100%;
2973
3076
 
2974
- span {
2975
- font-weight: bold;
2976
- }
3077
+ span {
3078
+ font-weight: bold;
3079
+ }
2977
3080
  `;
2978
3081
  class A1 extends ct {
2979
3082
  constructor() {
@@ -3018,19 +3121,39 @@ class A1 extends ct {
3018
3121
  }
3019
3122
  }
3020
3123
  const _n = H(
3021
- ({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(xe, { className: $(e, "humany-text-link"), ...r, ref: s, children: [
3022
- o,
3023
- /* @__PURE__ */ i(be, { children: n }),
3024
- t ? /* @__PURE__ */ i(Ke, { html: t, className: "humany-description" }) : null
3025
- ] })
3124
+ ({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(
3125
+ xe,
3126
+ {
3127
+ className: $(e, "humany-text-link"),
3128
+ ...r,
3129
+ ref: s,
3130
+ children: [
3131
+ o,
3132
+ /* @__PURE__ */ i(be, { children: n }),
3133
+ t ? /* @__PURE__ */ i(Ke, { html: t, className: "humany-description" }) : null
3134
+ ]
3135
+ }
3136
+ )
3026
3137
  );
3027
3138
  var qn = /* @__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))(qn || {});
3028
- const F1 = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ i("span", { className: $(e, "humany-timestamp"), children: Qn(n, t) }), Te = (e) => `0${e}`.slice(-2);
3139
+ const F1 = ({
3140
+ className: e = "",
3141
+ format: t = "hh:mm",
3142
+ timestamp: n
3143
+ }) => /* @__PURE__ */ i("span", { className: $(e, "humany-timestamp"), children: Qn(n, t) }), Te = (e) => `0${e}`.slice(-2);
3029
3144
  function Qn(e, t) {
3030
- const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), a = n.getMonth() + 1, d = n.getDate(), c = `${s}-${Te(a)}-${Te(d)}`;
3145
+ const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), a = n.getMonth() + 1, d = n.getDate(), c = `${s}-${Te(a)}-${Te(
3146
+ d
3147
+ )}`;
3031
3148
  return t === "yyyy-mm-dd" ? c : t === "hh:mm" ? r : `${c} ${r}`;
3032
3149
  }
3033
- const P1 = ({ className: e, children: t, content: n, sticky: o = !1, ...r }) => {
3150
+ const P1 = ({
3151
+ className: e,
3152
+ children: t,
3153
+ content: n,
3154
+ sticky: o = !1,
3155
+ ...r
3156
+ }) => {
3034
3157
  const [s, a] = w(!1), d = L(U()), c = L(), [{ x: l, y: u }, h] = je(s, d.current, c.current), f = (C) => {
3035
3158
  const { target: g } = C;
3036
3159
  !c.current || !g || c.current !== g && !c.current.contains(g) && a(!1);
@@ -3072,41 +3195,41 @@ const P1 = ({ className: e, children: t, content: n, sticky: o = !1, ...r }) =>
3072
3195
  }
3073
3196
  );
3074
3197
  }, Gn = y.div`
3075
- display: flex;
3076
- align-items: center;
3198
+ display: flex;
3199
+ align-items: center;
3077
3200
  `, Jn = y.div`
3078
- color: #ffffff;
3079
- background: #161616;
3080
- border-radius: ${(e) => e.theme.borderRadius};
3081
- padding: calc(${(e) => {
3201
+ color: #ffffff;
3202
+ background: #161616;
3203
+ border-radius: ${(e) => e.theme.borderRadius};
3204
+ padding: calc(${(e) => {
3082
3205
  var t;
3083
3206
  return (t = e.theme.sizes) == null ? void 0 : t.small;
3084
3207
  }} * 2);
3085
- font-size: ${(e) => {
3208
+ font-size: ${(e) => {
3086
3209
  var t;
3087
3210
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
3088
3211
  }};
3089
- font-family: ${(e) => {
3212
+ font-family: ${(e) => {
3090
3213
  var t;
3091
3214
  return (t = e.theme.fonts) == null ? void 0 : t.type;
3092
3215
  }};
3093
- position: absolute;
3094
- z-index: 10;
3216
+ position: absolute;
3217
+ z-index: 10;
3095
3218
 
3096
- a {
3097
- color: ${(e) => e.color ? e.color : "inherit"};
3098
- text-decoration: none;
3099
- }
3219
+ a {
3220
+ color: ${(e) => e.color ? e.color : "inherit"};
3221
+ text-decoration: none;
3222
+ }
3100
3223
 
3101
- i,
3102
- svg {
3103
- margin-right: ${(e) => {
3224
+ i,
3225
+ svg {
3226
+ margin-right: ${(e) => {
3104
3227
  var t;
3105
3228
  return (t = e.theme.sizes) == null ? void 0 : t.small;
3106
3229
  }};
3107
- }
3230
+ }
3108
3231
 
3109
- ${(e) => {
3232
+ ${(e) => {
3110
3233
  let t = "";
3111
3234
  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;
3112
3235
  }};
@@ -3236,22 +3359,25 @@ const P1 = ({ className: e, children: t, content: n, sticky: o = !1, ...r }) =>
3236
3359
  return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
3237
3360
  t1,
3238
3361
  {
3239
- className: $("humany-widget-overlay-outlet", t),
3362
+ className: $(
3363
+ "humany-widget-overlay-outlet",
3364
+ t
3365
+ ),
3240
3366
  ref: o,
3241
3367
  children: n
3242
3368
  }
3243
3369
  ) }) : null;
3244
3370
  }
3245
3371
  ), t1 = y.div`
3246
- background-color: #ffffff;
3247
- position: absolute;
3248
- top: 0;
3249
- left: 0;
3250
- bottom: 0;
3251
- right: 0;
3252
- z-index: 10;
3253
- width: 100%;
3254
- height: 100%;
3372
+ background-color: #ffffff;
3373
+ position: absolute;
3374
+ top: 0;
3375
+ left: 0;
3376
+ bottom: 0;
3377
+ right: 0;
3378
+ z-index: 10;
3379
+ width: 100%;
3380
+ height: 100%;
3255
3381
  `, Y1 = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3256
3382
  t,
3257
3383
  lt(() => n)