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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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();
@@ -1854,6 +1915,7 @@ const Ut = 300, T1 = ({
1854
1915
  ({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) => /* @__PURE__ */ i(
1855
1916
  "ul",
1856
1917
  {
1918
+ "aria-live": "polite",
1857
1919
  className: $(e, "humany-list"),
1858
1920
  "data-item-count": t.length,
1859
1921
  ...D(r),
@@ -1903,7 +1965,15 @@ const Ut = 300, T1 = ({
1903
1965
  ref: f,
1904
1966
  children: [
1905
1967
  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,
1968
+ d.length ? /* @__PURE__ */ i(
1969
+ an,
1970
+ {
1971
+ items: d,
1972
+ renderItem: c,
1973
+ renderLi: l,
1974
+ ...u
1975
+ }
1976
+ ) : null,
1907
1977
  s
1908
1978
  ]
1909
1979
  }
@@ -1944,8 +2014,16 @@ const Ut = 300, T1 = ({
1944
2014
  t && u(t, 1)
1945
2015
  ] });
1946
2016
  }, un = H(
1947
- ({ className: e, onClick: t = () => {
1948
- }, name: n = "", to: o = "", params: r = {}, children: s, ...a }, d) => {
2017
+ ({
2018
+ className: e,
2019
+ onClick: t = () => {
2020
+ },
2021
+ name: n = "",
2022
+ to: o = "",
2023
+ params: r = {},
2024
+ children: s,
2025
+ ...a
2026
+ }, d) => {
1949
2027
  const c = Oe(), l = T();
1950
2028
  if (!c)
1951
2029
  return null;
@@ -1960,26 +2038,33 @@ const Ut = 300, T1 = ({
1960
2038
  };
1961
2039
  if (n) {
1962
2040
  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(
2041
+ return process.env.NODE_ENV !== "production" && ue.warn(
2042
+ `Unable to create route. No route named "${n}" exist.`
2043
+ ), /* @__PURE__ */ i(
1964
2044
  de,
1965
2045
  {
1966
2046
  ...h,
1967
2047
  onClick: (g) => {
1968
- t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(`Unable to navigate. No route named "${n}" exist.`);
2048
+ t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(
2049
+ `Unable to navigate. No route named "${n}" exist.`
2050
+ );
1969
2051
  },
1970
2052
  children: s
1971
2053
  }
1972
2054
  );
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
- }, {});
2055
+ const C = Object.keys(r).reduce(
2056
+ (g, p) => {
2057
+ const S = r[p];
2058
+ if (Array.isArray(S)) {
2059
+ if (S.length === 0)
2060
+ return g;
2061
+ g[p] = S.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
2062
+ } else
2063
+ g[p] = typeof S == "string" ? encodeURIComponent(S) : S;
2064
+ return g;
2065
+ },
2066
+ {}
2067
+ );
1983
2068
  try {
1984
2069
  u = c.generate(n, C || {});
1985
2070
  } catch {
@@ -2028,7 +2113,10 @@ const Ut = 300, T1 = ({
2028
2113
  role: n,
2029
2114
  as: d,
2030
2115
  tabIndex: o,
2031
- className: $(e, "humany-link", [!!t, "humany-disabled"]),
2116
+ className: $(e, "humany-link", [
2117
+ !!t,
2118
+ "humany-disabled"
2119
+ ]),
2032
2120
  onClick: (p) => {
2033
2121
  if (p.persist(), t) {
2034
2122
  p.preventDefault();
@@ -2067,12 +2155,12 @@ const Ut = 300, T1 = ({
2067
2155
  );
2068
2156
  }
2069
2157
  ), hn = y(un)`
2070
- ${(e) => e.disabled ? `
2158
+ ${(e) => e.disabled ? `
2071
2159
  pointer-events: none;
2072
2160
  opacity: .7;
2073
2161
  ` : "cursor: pointer;"}
2074
2162
  `, fn = y.a`
2075
- ${(e) => e.disabled ? `
2163
+ ${(e) => e.disabled ? `
2076
2164
  pointer-events: none;
2077
2165
  opacity: .7;
2078
2166
  ` : "cursor: pointer;"}
@@ -2112,35 +2200,35 @@ const Ut = 300, T1 = ({
2112
2200
  }
2113
2201
  );
2114
2202
  }, 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;
2203
+ background: rgba(0, 0, 0, 0.6);
2204
+ min-width: 100%;
2205
+ min-height: 100%;
2206
+ position: fixed;
2207
+ top: 0;
2208
+ bottom: 0;
2209
+ right: 0;
2210
+ left: 0;
2211
+ display: flex;
2212
+ justify-content: center;
2213
+ align-items: center;
2214
+ z-index: 7;
2127
2215
 
2128
- transition: ${(e) => e.duration}ms;
2129
- opacity: 0;
2216
+ transition: ${(e) => e.duration}ms;
2217
+ opacity: 0;
2130
2218
 
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
- }
2219
+ &.humany-overlay-transition-enter {
2220
+ opacity: 0.1;
2221
+ }
2222
+ &.humany-overlay-transition-enter-active,
2223
+ &.humany-overlay-transition-enter-done,
2224
+ &.humany-overlay-transition-exit {
2225
+ opacity: 1;
2226
+ }
2139
2227
 
2140
- &.humany-overlay-transition-exit-active,
2141
- &.humany-overlay-transition-exit-done {
2142
- opacity: 0;
2143
- }
2228
+ &.humany-overlay-transition-exit-active,
2229
+ &.humany-overlay-transition-exit-done {
2230
+ opacity: 0;
2231
+ }
2144
2232
  `, gn = Ne`
2145
2233
  100% {
2146
2234
  transform: rotate(360deg);
@@ -2159,65 +2247,72 @@ const Ut = 300, T1 = ({
2159
2247
  stroke-dashoffset: -124px;
2160
2248
  }
2161
2249
  `, 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;
2250
+ animation: ${gn} 2s linear infinite;
2251
+ height: 100%;
2252
+ transform-origin: center center;
2253
+ width: 100%;
2254
+ position: absolute;
2255
+ top: 0;
2256
+ bottom: 0;
2257
+ left: 0;
2258
+ right: 0;
2259
+ margin: auto;
2260
+ transition: 200ms ease-out opacity;
2173
2261
  `, 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
- }
2262
+ position: absolute;
2263
+ top: 0;
2264
+ bottom: 0;
2265
+ left: 0;
2266
+ right: 0;
2267
+ height: 100%;
2268
+ width: 100%;
2269
+ pointer-events: ${(e) => e["data-loading"] ? "all" : "none"};
2270
+ display: flex;
2271
+ flex-direction: column;
2272
+ justify-content: center;
2273
+ transition: 200ms ease-out opacity;
2274
+ box-sizing: border-box;
2275
+ overflow: hidden;
2276
+ svg {
2277
+ opacity: ${(e) => e["data-loading"] ? "1" : "0"};
2278
+ }
2191
2279
  `, 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
- }
2280
+ position: relative;
2281
+ margin: 0 auto;
2282
+ width: 100px;
2283
+ &:before {
2284
+ content: '';
2285
+ display: block;
2286
+ padding-top: 100%;
2287
+ }
2200
2288
  `, 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) => {
2289
+ stroke-dasharray: 1, 200;
2290
+ stroke-dashoffset: 0;
2291
+ animation: ${pn} 1.5s ease-in-out infinite;
2292
+ stroke-linecap: round;
2293
+ stroke: ${(e) => {
2206
2294
  var t;
2207
2295
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2208
2296
  }};
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,
2297
+ stroke-width: 2px;
2298
+ `, xn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
2299
+ yn,
2212
2300
  {
2213
- cx: "50",
2214
- cy: "50",
2215
- r: "20",
2216
- fill: "none",
2217
- "stroke-width": "2",
2218
- "stroke-miterlimit": "10"
2219
- }
2220
- ) }) }) }), wn = ({
2301
+ className: $("humany-loader", e),
2302
+ "data-loading": t,
2303
+ children: /* @__PURE__ */ i(bn, { className: "humany-spinner", children: /* @__PURE__ */ i(Cn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
2304
+ vn,
2305
+ {
2306
+ cx: "50",
2307
+ cy: "50",
2308
+ r: "20",
2309
+ fill: "none",
2310
+ "stroke-width": "2",
2311
+ "stroke-miterlimit": "10"
2312
+ }
2313
+ ) }) })
2314
+ }
2315
+ ), wn = ({
2221
2316
  zoomState: e,
2222
2317
  image: t,
2223
2318
  changeZoom: n,
@@ -2834,81 +2929,90 @@ const Ut = 300, T1 = ({
2834
2929
  var h;
2835
2930
  s(), (h = c == null ? void 0 : c.current) == null || h.close();
2836
2931
  }, [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
- ] });
2932
+ return /* @__PURE__ */ b(
2933
+ Fn,
2934
+ {
2935
+ className: e,
2936
+ trigger: t,
2937
+ ref: c,
2938
+ onOverlayClick: l,
2939
+ children: [
2940
+ n && /* @__PURE__ */ i(Be, { children: n }),
2941
+ o && /* @__PURE__ */ i(Be, { children: o }),
2942
+ d && /* @__PURE__ */ i(Pn, { onClick: u, children: d }),
2943
+ a && /* @__PURE__ */ i(jn, { onClick: l, children: a })
2944
+ ]
2945
+ }
2946
+ );
2843
2947
  }, Fn = y(On)`
2844
- display: block;
2948
+ display: block;
2845
2949
 
2846
- span {
2847
- display: block;
2848
- margin: 0 0 ${(e) => {
2950
+ span {
2951
+ display: block;
2952
+ margin: 0 0 ${(e) => {
2849
2953
  var t;
2850
2954
  return (t = e.theme.sizes) == null ? void 0 : t.normal;
2851
2955
  }};
2852
2956
 
2853
- &:first-of-type:not(:only-of-type) {
2854
- font-weight: 700;
2855
- margin: 0 0 ${(e) => {
2957
+ &:first-of-type:not(:only-of-type) {
2958
+ font-weight: 700;
2959
+ margin: 0 0 ${(e) => {
2856
2960
  var t;
2857
2961
  return (t = e.theme.sizes) == null ? void 0 : t.small;
2858
2962
  }};
2859
- }
2860
2963
  }
2964
+ }
2861
2965
  `, Pn = y(se)`
2862
- display: inline-block;
2863
- min-width: 50px;
2864
- ${(e) => {
2966
+ display: inline-block;
2967
+ min-width: 50px;
2968
+ ${(e) => {
2865
2969
  var t, n;
2866
2970
  return `padding: ${(t = e.theme.sizes) == null ? void 0 : t.small} ${(n = e.theme.sizes) == null ? void 0 : n.normal};`;
2867
2971
  }}
2868
- ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
2972
+ ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
2869
2973
  color: #FFFFFF;
2870
- background-color: ${(e) => {
2974
+ background-color: ${(e) => {
2871
2975
  var t;
2872
2976
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2873
2977
  }};
2874
- border: 1px solid ${(e) => {
2978
+ border: 1px solid ${(e) => {
2875
2979
  var t;
2876
2980
  return (t = e.theme.colors) == null ? void 0 : t.primary;
2877
2981
  }};
2878
2982
 
2879
- margin: 0 ${(e) => {
2983
+ margin: 0 ${(e) => {
2880
2984
  var t;
2881
2985
  return (t = e.theme.sizes) == null ? void 0 : t.small;
2882
2986
  }} 0 0;
2883
2987
 
2884
- &:focus {
2885
- background-color: transparent;
2886
- }
2988
+ &:focus {
2989
+ background-color: transparent;
2990
+ }
2887
2991
 
2888
- &:focus-visible {
2889
- ${O}
2890
- }
2992
+ &:focus-visible {
2993
+ ${O}
2994
+ }
2891
2995
  `, jn = y(se)`
2892
- display: inline-block;
2893
- min-width: 50px;
2894
- ${(e) => {
2996
+ display: inline-block;
2997
+ min-width: 50px;
2998
+ ${(e) => {
2895
2999
  var t, n;
2896
3000
  return `padding: ${(t = e.theme.sizes) == null ? void 0 : t.small} ${(n = e.theme.sizes) == null ? void 0 : n.normal};`;
2897
3001
  }}
2898
- ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
3002
+ ${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
2899
3003
  background-color: transparent;
2900
- color: ${(e) => {
3004
+ color: ${(e) => {
2901
3005
  var t;
2902
3006
  return (t = e.theme.colors) == null ? void 0 : t.text;
2903
3007
  }};
2904
- border: 1px solid ${(e) => {
3008
+ border: 1px solid ${(e) => {
2905
3009
  var t;
2906
3010
  return (t = e.theme.colors) == null ? void 0 : t.text;
2907
3011
  }};
2908
3012
 
2909
- &:focus-visible {
2910
- ${O};
2911
- }
3013
+ &:focus-visible {
3014
+ ${O};
3015
+ }
2912
3016
  `, O1 = ({
2913
3017
  header: e = "",
2914
3018
  link: t = "",
@@ -2925,55 +3029,55 @@ const Ut = 300, T1 = ({
2925
3029
  /* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
2926
3030
  ] })
2927
3031
  ] }), Kn = y.div`
2928
- display: flex;
2929
- flex-wrap: wrap;
3032
+ display: flex;
3033
+ flex-wrap: wrap;
2930
3034
  `, Yn = y.div`
2931
- ${(e) => ie(e)(
3035
+ ${(e) => ie(e)(
2932
3036
  "h2",
2933
3037
  k`
2934
- padding: 0;
2935
- margin: 0;
2936
- color: gray;
2937
- font-size: 7em;
2938
- `
3038
+ padding: 0;
3039
+ margin: 0;
3040
+ color: gray;
3041
+ font-size: 7em;
3042
+ `
2939
3043
  )}
2940
3044
  `, Xn = y.div`
2941
- margin-left: ${(e) => {
3045
+ margin-left: ${(e) => {
2942
3046
  var t;
2943
3047
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2944
3048
  }};
2945
3049
 
2946
- ${(e) => {
3050
+ ${(e) => {
2947
3051
  var t;
2948
3052
  return ie(e)(
2949
3053
  "h3",
2950
3054
  k`
2951
- text-transform: uppercase;
2952
- font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
2953
- `
3055
+ text-transform: uppercase;
3056
+ font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
3057
+ `
2954
3058
  );
2955
3059
  }}
2956
3060
 
2957
- a {
2958
- color: ${(e) => {
3061
+ a {
3062
+ color: ${(e) => {
2959
3063
  var t;
2960
3064
  return (t = e.theme.colors) == null ? void 0 : t.link;
2961
3065
  }};
2962
- font-size: ${(e) => {
3066
+ font-size: ${(e) => {
2963
3067
  var t;
2964
3068
  return (t = e.theme.fonts) == null ? void 0 : t.small;
2965
3069
  }};
2966
- }
3070
+ }
2967
3071
  `, Un = y.div`
2968
- margin-top: ${(e) => {
3072
+ margin-top: ${(e) => {
2969
3073
  var t;
2970
3074
  return (t = e.theme.sizes) == null ? void 0 : t.medium;
2971
3075
  }};
2972
- min-width: 100%;
3076
+ min-width: 100%;
2973
3077
 
2974
- span {
2975
- font-weight: bold;
2976
- }
3078
+ span {
3079
+ font-weight: bold;
3080
+ }
2977
3081
  `;
2978
3082
  class A1 extends ct {
2979
3083
  constructor() {
@@ -3018,19 +3122,39 @@ class A1 extends ct {
3018
3122
  }
3019
3123
  }
3020
3124
  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
- ] })
3125
+ ({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(
3126
+ xe,
3127
+ {
3128
+ className: $(e, "humany-text-link"),
3129
+ ...r,
3130
+ ref: s,
3131
+ children: [
3132
+ o,
3133
+ /* @__PURE__ */ i(be, { children: n }),
3134
+ t ? /* @__PURE__ */ i(Ke, { html: t, className: "humany-description" }) : null
3135
+ ]
3136
+ }
3137
+ )
3026
3138
  );
3027
3139
  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);
3140
+ const F1 = ({
3141
+ className: e = "",
3142
+ format: t = "hh:mm",
3143
+ timestamp: n
3144
+ }) => /* @__PURE__ */ i("span", { className: $(e, "humany-timestamp"), children: Qn(n, t) }), Te = (e) => `0${e}`.slice(-2);
3029
3145
  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)}`;
3146
+ 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(
3147
+ d
3148
+ )}`;
3031
3149
  return t === "yyyy-mm-dd" ? c : t === "hh:mm" ? r : `${c} ${r}`;
3032
3150
  }
3033
- const P1 = ({ className: e, children: t, content: n, sticky: o = !1, ...r }) => {
3151
+ const P1 = ({
3152
+ className: e,
3153
+ children: t,
3154
+ content: n,
3155
+ sticky: o = !1,
3156
+ ...r
3157
+ }) => {
3034
3158
  const [s, a] = w(!1), d = L(U()), c = L(), [{ x: l, y: u }, h] = je(s, d.current, c.current), f = (C) => {
3035
3159
  const { target: g } = C;
3036
3160
  !c.current || !g || c.current !== g && !c.current.contains(g) && a(!1);
@@ -3072,41 +3196,41 @@ const P1 = ({ className: e, children: t, content: n, sticky: o = !1, ...r }) =>
3072
3196
  }
3073
3197
  );
3074
3198
  }, Gn = y.div`
3075
- display: flex;
3076
- align-items: center;
3199
+ display: flex;
3200
+ align-items: center;
3077
3201
  `, Jn = y.div`
3078
- color: #ffffff;
3079
- background: #161616;
3080
- border-radius: ${(e) => e.theme.borderRadius};
3081
- padding: calc(${(e) => {
3202
+ color: #ffffff;
3203
+ background: #161616;
3204
+ border-radius: ${(e) => e.theme.borderRadius};
3205
+ padding: calc(${(e) => {
3082
3206
  var t;
3083
3207
  return (t = e.theme.sizes) == null ? void 0 : t.small;
3084
3208
  }} * 2);
3085
- font-size: ${(e) => {
3209
+ font-size: ${(e) => {
3086
3210
  var t;
3087
3211
  return (t = e.theme.fonts) == null ? void 0 : t.normal;
3088
3212
  }};
3089
- font-family: ${(e) => {
3213
+ font-family: ${(e) => {
3090
3214
  var t;
3091
3215
  return (t = e.theme.fonts) == null ? void 0 : t.type;
3092
3216
  }};
3093
- position: absolute;
3094
- z-index: 10;
3217
+ position: absolute;
3218
+ z-index: 10;
3095
3219
 
3096
- a {
3097
- color: ${(e) => e.color ? e.color : "inherit"};
3098
- text-decoration: none;
3099
- }
3220
+ a {
3221
+ color: ${(e) => e.color ? e.color : "inherit"};
3222
+ text-decoration: none;
3223
+ }
3100
3224
 
3101
- i,
3102
- svg {
3103
- margin-right: ${(e) => {
3225
+ i,
3226
+ svg {
3227
+ margin-right: ${(e) => {
3104
3228
  var t;
3105
3229
  return (t = e.theme.sizes) == null ? void 0 : t.small;
3106
3230
  }};
3107
- }
3231
+ }
3108
3232
 
3109
- ${(e) => {
3233
+ ${(e) => {
3110
3234
  let t = "";
3111
3235
  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
3236
  }};
@@ -3236,22 +3360,25 @@ const P1 = ({ className: e, children: t, content: n, sticky: o = !1, ...r }) =>
3236
3360
  return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
3237
3361
  t1,
3238
3362
  {
3239
- className: $("humany-widget-overlay-outlet", t),
3363
+ className: $(
3364
+ "humany-widget-overlay-outlet",
3365
+ t
3366
+ ),
3240
3367
  ref: o,
3241
3368
  children: n
3242
3369
  }
3243
3370
  ) }) : null;
3244
3371
  }
3245
3372
  ), 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%;
3373
+ background-color: #ffffff;
3374
+ position: absolute;
3375
+ top: 0;
3376
+ left: 0;
3377
+ bottom: 0;
3378
+ right: 0;
3379
+ z-index: 10;
3380
+ width: 100%;
3381
+ height: 100%;
3255
3382
  `, Y1 = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
3256
3383
  t,
3257
3384
  lt(() => n)