@telia-ace/widget-ui 1.0.28-experimental.20 → 1.0.28-experimental.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +444 -446
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -36,23 +36,23 @@ var pe = (e, t, n) => new Promise((o, r) => {
|
|
|
36
36
|
c((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
38
|
import { Container as It, WidgetState as Bt } from "@webprovisions/platform";
|
|
39
|
-
import d, { forwardRef as B, createContext as
|
|
40
|
-
import { ComponentPlatform as
|
|
39
|
+
import d, { forwardRef as B, createContext as ne, useContext as ee, useState as C, useEffect as w, useRef as _, useCallback as D, useImperativeHandle as Me, useMemo as ge, Component as Wt, lazy as Ht } from "react";
|
|
40
|
+
import { ComponentPlatform as ze, asDescriptor as rt, createEventSubscriber as jt, ComponentQuery as Vt, WidgetRenderState as fe, extendComponent as st } from "@telia-ace/widget-core";
|
|
41
41
|
import { css as S, keyframes as it } from "@emotion/react";
|
|
42
42
|
import y from "@emotion/styled";
|
|
43
|
-
import { kebabCase as Ft, appendClassNames as z, uuid as
|
|
44
|
-
import { LitElement as
|
|
45
|
-
import { property as N,
|
|
43
|
+
import { kebabCase as Ft, appendClassNames as z, uuid as ae, removeNullAndUndefinedValues as Ze, Logger as Ee } from "@telia-ace/widget-utilities";
|
|
44
|
+
import { LitElement as oe, html as I, css as J, unsafeCSS as Se, nothing as At } from "lit";
|
|
45
|
+
import { property as N, state as X } from "lit/decorators.js";
|
|
46
46
|
import { html as at, unsafeStatic as ct } from "lit/static-html.js";
|
|
47
47
|
import { spread as R } from "@open-wc/lit-helpers";
|
|
48
48
|
import { styleMap as A } from "lit/directives/style-map.js";
|
|
49
|
-
import { CSSTransition as lt, Transition as
|
|
50
|
-
import { createPortal as
|
|
51
|
-
import { HistoryMode as Qe, getSpecificWidgetPath as
|
|
52
|
-
import { Link as
|
|
49
|
+
import { CSSTransition as lt, Transition as Kt } from "react-transition-group";
|
|
50
|
+
import { createPortal as qt } from "react-dom";
|
|
51
|
+
import { HistoryMode as Qe, getSpecificWidgetPath as Yt } from "@telia-ace/widget-routing";
|
|
52
|
+
import { Link as Ce } from "react-router-dom";
|
|
53
53
|
import Ge from "htmr";
|
|
54
54
|
import { dedupeMixin as ut } from "@open-wc/dedupe-mixin";
|
|
55
|
-
const
|
|
55
|
+
const Ut = (e) => e === "entering" || e === "entered", Xt = (e) => e === "exiting" || e === "exited", G = {
|
|
56
56
|
fade: {
|
|
57
57
|
in: "opacity: 1;",
|
|
58
58
|
out: "opacity: 0;"
|
|
@@ -77,10 +77,10 @@ const Xt = (e) => e === "entering" || e === "entered", Zt = (e) => e === "exitin
|
|
|
77
77
|
in: "transform: scale(1);",
|
|
78
78
|
out: "transform: scale(0);"
|
|
79
79
|
}
|
|
80
|
-
},
|
|
80
|
+
}, Zt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], ke = {
|
|
81
81
|
compose: (e = "exited", t) => {
|
|
82
|
-
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s =
|
|
83
|
-
if (
|
|
82
|
+
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = Zt.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
83
|
+
if (Ut(e))
|
|
84
84
|
return r && r.length > 0 ? S`
|
|
85
85
|
${r && r.length > 0 && r.map((c) => G[c] ? G[c].in : "")}
|
|
86
86
|
transition: ${s} ${n.duration}ms ${n.easing};
|
|
@@ -88,7 +88,7 @@ const Xt = (e) => e === "entering" || e === "entered", Zt = (e) => e === "exitin
|
|
|
88
88
|
const i = r && r.length > 0 && S`
|
|
89
89
|
${r.map((c) => G[c] ? G[c].out : "")}
|
|
90
90
|
`;
|
|
91
|
-
if (
|
|
91
|
+
if (Xt(e)) {
|
|
92
92
|
const c = o.transitionKeys.split(" ");
|
|
93
93
|
return c && c.length > 0 && e === "exiting" ? S`
|
|
94
94
|
${i};
|
|
@@ -99,7 +99,7 @@ const Xt = (e) => e === "entering" || e === "entered", Zt = (e) => e === "exitin
|
|
|
99
99
|
},
|
|
100
100
|
composeViewTransition: (e, t, n) => {
|
|
101
101
|
if (t === "slide")
|
|
102
|
-
return
|
|
102
|
+
return ke.compose(e, {
|
|
103
103
|
enter: {
|
|
104
104
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
105
105
|
duration: 500
|
|
@@ -110,7 +110,7 @@ const Xt = (e) => e === "entering" || e === "entered", Zt = (e) => e === "exitin
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
if (t === "fade")
|
|
113
|
-
return
|
|
113
|
+
return ke.compose(e, {
|
|
114
114
|
enter: {
|
|
115
115
|
transitionKeys: "fade",
|
|
116
116
|
duration: 500
|
|
@@ -123,7 +123,7 @@ const Xt = (e) => e === "entering" || e === "entered", Zt = (e) => e === "exitin
|
|
|
123
123
|
},
|
|
124
124
|
get: (e) => G[e]
|
|
125
125
|
};
|
|
126
|
-
var
|
|
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
127
|
const Je = () => {
|
|
128
128
|
const {
|
|
129
129
|
opr: e,
|
|
@@ -155,42 +155,42 @@ const Je = () => {
|
|
|
155
155
|
return "edge-chromium";
|
|
156
156
|
if ((p || a) && !!l)
|
|
157
157
|
return "blink";
|
|
158
|
-
},
|
|
158
|
+
}, Qt = ["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 (
|
|
160
|
+
if (Qt.indexOf(r) > -1) {
|
|
161
161
|
const s = n.substring(0, 5);
|
|
162
162
|
s === "data-" || s === "aria-" ? t[Ft(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
|
-
}, {}),
|
|
166
|
+
}, {}), Gt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ d.createElement(fo, b({}, t)) : null, fs = Gt, Jt = (e) => new RegExp("^#", "i").test(e), en = (e) => (o) => {
|
|
167
167
|
var r = o, { children: t } = r, n = M(r, ["children"]);
|
|
168
168
|
const {
|
|
169
169
|
implementation: s,
|
|
170
170
|
name: i
|
|
171
171
|
} = e.get("$widget"), { href: c = "" } = n;
|
|
172
|
-
if (
|
|
173
|
-
return /* @__PURE__ */ d.createElement(
|
|
172
|
+
if (Jt(c))
|
|
173
|
+
return /* @__PURE__ */ d.createElement(un, { smooth: !0, to: c }, t);
|
|
174
174
|
const l = s.bindings.map((h) => h.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(c);
|
|
175
175
|
if (u && u.length >= 4) {
|
|
176
176
|
const h = u[4];
|
|
177
177
|
if (s.widgets.get(h) && !h.startsWith("blob?") && !h.startsWith(i))
|
|
178
|
-
return /* @__PURE__ */ d.createElement(
|
|
178
|
+
return /* @__PURE__ */ d.createElement(Sr, { widgetName: h }, t);
|
|
179
179
|
}
|
|
180
180
|
return /* @__PURE__ */ d.createElement("a", b({}, n), t);
|
|
181
|
-
},
|
|
181
|
+
}, tn = en, dt = (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
|
-
},
|
|
186
|
+
}, nn = (e) => {
|
|
187
187
|
let t = "";
|
|
188
188
|
return Object.keys(dt(e)).forEach((n) => {
|
|
189
189
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
190
190
|
}), S`
|
|
191
191
|
${t}
|
|
192
192
|
`;
|
|
193
|
-
},
|
|
193
|
+
}, on = dt, rn = (e, t) => {
|
|
194
194
|
let n = "";
|
|
195
195
|
const o = () => {
|
|
196
196
|
n = "";
|
|
@@ -220,18 +220,18 @@ const Je = () => {
|
|
|
220
220
|
}
|
|
221
221
|
`;
|
|
222
222
|
};
|
|
223
|
-
function
|
|
223
|
+
function sn(e, t) {
|
|
224
224
|
return t ? Ge(e, t) : Ge(e);
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const an = (e) => (t) => /* @__PURE__ */ d.createElement(or, { attrs: t, htmlBody: e }), cn = (e, t) => ({
|
|
227
227
|
transform: {
|
|
228
|
-
a:
|
|
229
|
-
img:
|
|
228
|
+
a: tn(e),
|
|
229
|
+
img: an(t)
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), ln = (e) => rn(e, "a"), un = ln, be = B((r, o) => {
|
|
232
232
|
var s = r, { className: e, children: t } = s, n = M(s, ["className", "children"]);
|
|
233
233
|
return /* @__PURE__ */ d.createElement(
|
|
234
|
-
|
|
234
|
+
dn,
|
|
235
235
|
k(b({
|
|
236
236
|
type: "button",
|
|
237
237
|
className: z(e, "humany-button")
|
|
@@ -240,7 +240,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
240
240
|
}),
|
|
241
241
|
t
|
|
242
242
|
);
|
|
243
|
-
}),
|
|
243
|
+
}), dn = y.button`
|
|
244
244
|
-webkit-appearance: button;
|
|
245
245
|
text-transform: none;
|
|
246
246
|
overflow: visible;
|
|
@@ -253,7 +253,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
253
253
|
line-height: normal;
|
|
254
254
|
margin: 0;
|
|
255
255
|
padding: 0;
|
|
256
|
-
`,
|
|
256
|
+
`, mn = (r) => {
|
|
257
257
|
var s = r, {
|
|
258
258
|
onChange: e = () => {
|
|
259
259
|
},
|
|
@@ -275,40 +275,40 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
275
275
|
onChange: (i) => e(i.target.value, i.currentTarget.checked)
|
|
276
276
|
}, W(o))
|
|
277
277
|
);
|
|
278
|
-
},
|
|
278
|
+
}, gs = mn, hn = ne(new It()), pn = ne(1), mt = ne({
|
|
279
279
|
id: "",
|
|
280
280
|
type: "",
|
|
281
281
|
name: "",
|
|
282
282
|
branch: ""
|
|
283
|
-
}),
|
|
284
|
-
const n =
|
|
283
|
+
}), fn = ne({}), gn = ne(null), yn = ne(null), bn = () => ee(mt), Le = bn, vn = () => ee(hn), H = vn, $n = (e, t) => {
|
|
284
|
+
const n = Le().id, o = H();
|
|
285
285
|
return (r, s) => {
|
|
286
286
|
(t || o).getAsync("actionResolver").then((i) => {
|
|
287
287
|
i.action(e || n, r, s);
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
|
-
},
|
|
291
|
-
const t = ee(mt), n =
|
|
290
|
+
}, ys = $n, wn = (e) => {
|
|
291
|
+
const t = ee(mt), n = re(), [o, r] = C();
|
|
292
292
|
return w(() => {
|
|
293
293
|
if ((e || t.id) && n) {
|
|
294
294
|
const s = n.nodes.get(e || t.id);
|
|
295
295
|
r(s);
|
|
296
296
|
}
|
|
297
297
|
}, [e, t.id, n]), o;
|
|
298
|
-
},
|
|
298
|
+
}, Pe = wn, xn = () => {
|
|
299
299
|
const e = _(!1);
|
|
300
300
|
return w(() => (e.current = !0, () => {
|
|
301
301
|
e.current = !1;
|
|
302
302
|
}), []), e;
|
|
303
|
-
}, q =
|
|
304
|
-
const t = H(), [n, o] =
|
|
303
|
+
}, q = xn, En = (e) => {
|
|
304
|
+
const t = H(), [n, o] = C(null), r = q();
|
|
305
305
|
return w(() => {
|
|
306
|
-
|
|
306
|
+
ze.getInstance(e || t).then((s) => {
|
|
307
307
|
r.current && o(s);
|
|
308
308
|
});
|
|
309
309
|
}, [r]), n;
|
|
310
|
-
},
|
|
311
|
-
const e =
|
|
310
|
+
}, re = En, Cn = () => {
|
|
311
|
+
const e = Pe(), t = re(), [n, o] = C([]), r = q(), s = D(
|
|
312
312
|
(i) => {
|
|
313
313
|
if (t && r.current && i) {
|
|
314
314
|
const c = t.getBranch(i), l = i.getChildren(c).map((a) => rt(a));
|
|
@@ -333,8 +333,8 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
}, [e, t, s]), n;
|
|
336
|
-
},
|
|
337
|
-
const n =
|
|
336
|
+
}, bs = Cn, Sn = () => ee(pn), vs = Sn, kn = (e, t) => {
|
|
337
|
+
const n = Le(), o = H(), [r, s] = C(void 0), i = q(), c = e || n.type || "";
|
|
338
338
|
return w(() => {
|
|
339
339
|
if (c) {
|
|
340
340
|
let l;
|
|
@@ -351,8 +351,8 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
353
|
}, [i, c, t, o]), r;
|
|
354
|
-
},
|
|
355
|
-
const t =
|
|
354
|
+
}, $s = kn, _n = (e) => {
|
|
355
|
+
const t = Pe(e), n = re(), [o, r] = C({}), s = q();
|
|
356
356
|
return w(() => {
|
|
357
357
|
t && s.current && r(t.attributes.context);
|
|
358
358
|
}, [s, t]), w(() => {
|
|
@@ -368,11 +368,11 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
}, [s, n, t]), o;
|
|
371
|
-
},
|
|
372
|
-
const e =
|
|
371
|
+
}, Dn = _n, Tn = () => ee(yn), ws = Tn, Mn = () => {
|
|
372
|
+
const e = re(), t = Le(), [n, o] = C([]), [r, s] = C();
|
|
373
373
|
return w(() => {
|
|
374
374
|
if (e && t) {
|
|
375
|
-
const i = new Vt(e).withId(t.id), c = e.actions(i, t.type ||
|
|
375
|
+
const i = new Vt(e).withId(t.id), c = e.actions(i, t.type || ae());
|
|
376
376
|
s(c), n !== null && (n.forEach((l) => {
|
|
377
377
|
c.dispatch(l.key, l.data).then((a) => l.resolve(a)).catch((a) => l.reject(a));
|
|
378
378
|
}), o(null));
|
|
@@ -385,7 +385,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
385
385
|
reject: a
|
|
386
386
|
});
|
|
387
387
|
}) : r.dispatch(i, c);
|
|
388
|
-
},
|
|
388
|
+
}, xs = Mn, K = (e, t, n = window, o = () => !0) => {
|
|
389
389
|
const r = _(() => {
|
|
390
390
|
});
|
|
391
391
|
w(() => {
|
|
@@ -398,11 +398,11 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
398
398
|
n.removeEventListener(e, i);
|
|
399
399
|
};
|
|
400
400
|
}, [e, n]);
|
|
401
|
-
},
|
|
401
|
+
}, zn = (e) => {
|
|
402
402
|
const t = H(), { events: n } = (e || t).get("$widget");
|
|
403
403
|
return n;
|
|
404
|
-
},
|
|
405
|
-
const [e, t] =
|
|
404
|
+
}, Ln = zn, Pn = () => {
|
|
405
|
+
const [e, t] = C(!1);
|
|
406
406
|
return w(() => {
|
|
407
407
|
const n = () => {
|
|
408
408
|
t(!1);
|
|
@@ -413,8 +413,8 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
413
413
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
414
414
|
};
|
|
415
415
|
}, []), e;
|
|
416
|
-
}, Es =
|
|
417
|
-
const [n, o] =
|
|
416
|
+
}, Es = Pn, On = (e, t) => {
|
|
417
|
+
const [n, o] = C(!1), r = D(
|
|
418
418
|
(i) => {
|
|
419
419
|
const { key: c } = i;
|
|
420
420
|
c === e && (o(!0), t && t(i));
|
|
@@ -427,8 +427,8 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
427
427
|
[o]
|
|
428
428
|
);
|
|
429
429
|
return K("keydown", r, window), K("keyup", s, window), n;
|
|
430
|
-
}, te =
|
|
431
|
-
const t =
|
|
430
|
+
}, te = On, Rn = (e) => {
|
|
431
|
+
const t = Pe(e), n = re(), [o, r] = C({}), s = q();
|
|
432
432
|
return w(() => {
|
|
433
433
|
t && s.current && r(t.attributes.layout);
|
|
434
434
|
}, [t, s]), w(() => {
|
|
@@ -444,13 +444,13 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
}, [n, s, t]), o;
|
|
447
|
-
},
|
|
447
|
+
}, Cs = Rn, Nn = (e) => {
|
|
448
448
|
const t = _();
|
|
449
449
|
return w(() => {
|
|
450
450
|
t.current = e;
|
|
451
451
|
}), t.current;
|
|
452
|
-
}, ht =
|
|
453
|
-
const [t, n] =
|
|
452
|
+
}, ht = Nn, In = () => ee(fn), Ss = In, Bn = (e) => {
|
|
453
|
+
const [t, n] = C(), o = H(), r = q();
|
|
454
454
|
return w(() => {
|
|
455
455
|
let s;
|
|
456
456
|
const i = (e || o).get("$widget");
|
|
@@ -476,8 +476,8 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
476
476
|
s && s();
|
|
477
477
|
};
|
|
478
478
|
}, [r]), t;
|
|
479
|
-
},
|
|
480
|
-
const t = H(), n = pt(), [o, r] =
|
|
479
|
+
}, ks = Bn, Wn = () => ee(gn), pt = Wn, Hn = (e) => {
|
|
480
|
+
const t = H(), n = pt(), [o, r] = C({ name: "", params: {} }), s = q();
|
|
481
481
|
return w(() => {
|
|
482
482
|
const i = (e || t).get("$widget");
|
|
483
483
|
if (!i)
|
|
@@ -495,7 +495,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
495
495
|
Ze(l), r({ name: c, params: l });
|
|
496
496
|
}
|
|
497
497
|
}, [n, s]), o;
|
|
498
|
-
},
|
|
498
|
+
}, _s = Hn, ft = (e) => {
|
|
499
499
|
const t = _(), n = _(0);
|
|
500
500
|
let o;
|
|
501
501
|
const r = D(() => {
|
|
@@ -521,9 +521,9 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
521
521
|
},
|
|
522
522
|
[t, n]
|
|
523
523
|
);
|
|
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 ? [
|
|
525
|
-
},
|
|
526
|
-
overflow-y: ${Je() ===
|
|
524
|
+
return K("scroll", r, t.current, () => t.current && e), K("touchstart", s, t.current, () => t.current && e), K("touchmove", l, t.current, () => t.current && e), e ? [jn, t] : ["", t];
|
|
525
|
+
}, jn = `
|
|
526
|
+
overflow-y: ${Je() === _e.Chrome || Je() === _e.EdgeChromium ? "overlay" : "auto"};
|
|
527
527
|
overflow-x: hidden;
|
|
528
528
|
-ms-overflow-style: none; /* IE 10+ */
|
|
529
529
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -550,20 +550,20 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
550
550
|
background-color: #7F7F7F;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
554
|
-
const [e, t] =
|
|
553
|
+
`, Vn = () => {
|
|
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
|
-
},
|
|
561
|
-
const [t, n] =
|
|
560
|
+
}, Ds = Vn, Fn = (e = !1) => {
|
|
561
|
+
const [t, n] = C(e), o = D((r) => {
|
|
562
562
|
n(typeof r == "boolean" ? r : (s) => !s);
|
|
563
563
|
}, []);
|
|
564
564
|
return [t, o];
|
|
565
|
-
}, gt =
|
|
566
|
-
const t = H(), n =
|
|
565
|
+
}, gt = Fn, Ts = (e) => {
|
|
566
|
+
const t = H(), n = re(), o = t.get("widgetDOMElement"), [r, s] = C(null), [i, c] = C(null), l = q();
|
|
567
567
|
w(() => {
|
|
568
568
|
if (n && l.current) {
|
|
569
569
|
const u = n.nodes.all.find((p) => p.name === "root-area"), h = n.nodes.all.find((p) => p.type === "view");
|
|
@@ -584,8 +584,8 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
584
584
|
[e, l, r, i]
|
|
585
585
|
);
|
|
586
586
|
K("transitionend", a, r), K("transitionend", a, i);
|
|
587
|
-
},
|
|
588
|
-
const r =
|
|
587
|
+
}, An = (e, t, n = [], o) => {
|
|
588
|
+
const r = Ln(o);
|
|
589
589
|
return w(() => {
|
|
590
590
|
if (r) {
|
|
591
591
|
const s = r.subscribe(e, t);
|
|
@@ -594,12 +594,12 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
}, [r].concat(n)), (s) => r == null ? void 0 : r.dispatch(e, s);
|
|
597
|
-
}, ve =
|
|
597
|
+
}, ve = An, Kn = (e, t) => {
|
|
598
598
|
const n = ve("widget:menu-toggled", (o, r) => {
|
|
599
599
|
r !== e && t();
|
|
600
600
|
});
|
|
601
601
|
return () => n(e);
|
|
602
|
-
},
|
|
602
|
+
}, Oe = Kn, qn = (o) => {
|
|
603
603
|
var r = o, { className: e, children: t } = r, n = M(r, ["className", "children"]);
|
|
604
604
|
return /* @__PURE__ */ d.createElement(
|
|
605
605
|
"span",
|
|
@@ -608,7 +608,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
608
608
|
}, W(n)),
|
|
609
609
|
t
|
|
610
610
|
);
|
|
611
|
-
},
|
|
611
|
+
}, Re = qn, yt = (e) => S`
|
|
612
612
|
display: flex;
|
|
613
613
|
justify-content: center;
|
|
614
614
|
flex-direction: column;
|
|
@@ -617,7 +617,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { 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
|
-
`,
|
|
620
|
+
`, Yn = (e) => {
|
|
621
621
|
var t, n, o;
|
|
622
622
|
return S`
|
|
623
623
|
cursor: pointer;
|
|
@@ -629,11 +629,11 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { 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
|
-
},
|
|
632
|
+
}, Ms = (e) => {
|
|
633
633
|
var i;
|
|
634
634
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
635
635
|
return S`
|
|
636
|
-
${
|
|
636
|
+
${Yn(e)}
|
|
637
637
|
border: 1px solid ${o ? n : t};
|
|
638
638
|
background-color: ${o ? t : n};
|
|
639
639
|
|
|
@@ -674,16 +674,16 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
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
|
-
},
|
|
677
|
+
}, Un = (e) => S`
|
|
678
678
|
${Z(e)}
|
|
679
679
|
text-decoration: underline;
|
|
680
|
-
`,
|
|
680
|
+
`, zs = (e) => {
|
|
681
681
|
var t;
|
|
682
682
|
return S`
|
|
683
683
|
${Z(e)}
|
|
684
684
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
685
685
|
`;
|
|
686
|
-
},
|
|
686
|
+
}, Ne = y(be)`
|
|
687
687
|
position: absolute;
|
|
688
688
|
top: ${(e) => {
|
|
689
689
|
var t;
|
|
@@ -711,7 +711,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
711
711
|
height: 15px;
|
|
712
712
|
box-sizing: content-box;
|
|
713
713
|
}
|
|
714
|
-
`, et = y(
|
|
714
|
+
`, et = y(Re)`
|
|
715
715
|
font-size: ${(e) => {
|
|
716
716
|
var t;
|
|
717
717
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -722,7 +722,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
722
722
|
var t;
|
|
723
723
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
724
724
|
}};
|
|
725
|
-
`,
|
|
725
|
+
`, Xn = (e) => {
|
|
726
726
|
var t;
|
|
727
727
|
return S`
|
|
728
728
|
padding: 0;
|
|
@@ -744,7 +744,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
744
744
|
margin: 0;
|
|
745
745
|
}
|
|
746
746
|
`;
|
|
747
|
-
},
|
|
747
|
+
}, Ls = (e) => {
|
|
748
748
|
var t, n, o, r;
|
|
749
749
|
return S`
|
|
750
750
|
> div {
|
|
@@ -760,7 +760,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
760
760
|
)}
|
|
761
761
|
}
|
|
762
762
|
> ul {
|
|
763
|
-
${
|
|
763
|
+
${Xn(e)}
|
|
764
764
|
}
|
|
765
765
|
${ye(e)(
|
|
766
766
|
"h1",
|
|
@@ -780,7 +780,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
780
780
|
`
|
|
781
781
|
)}
|
|
782
782
|
`;
|
|
783
|
-
},
|
|
783
|
+
}, Ps = (e) => {
|
|
784
784
|
var t, n, o, r, s, i;
|
|
785
785
|
return S`
|
|
786
786
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -809,7 +809,7 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
809
809
|
a {
|
|
810
810
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
811
811
|
&:focus-visible {
|
|
812
|
-
${
|
|
812
|
+
${Un(e)};
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
|
|
@@ -835,19 +835,19 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
835
835
|
margin: 0;
|
|
836
836
|
}
|
|
837
837
|
`;
|
|
838
|
-
},
|
|
838
|
+
}, Zn = ({
|
|
839
839
|
elementId: e = "humany-portal-elements",
|
|
840
840
|
parent: t = document.body,
|
|
841
841
|
children: n
|
|
842
842
|
}) => {
|
|
843
|
-
const [o] =
|
|
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]),
|
|
850
|
-
},
|
|
849
|
+
}), [o]), qt(n, o);
|
|
850
|
+
}, ce = Zn, Qn = () => /* @__PURE__ */ d.createElement("div", null, "Todo:"), le = Qn, Gn = {
|
|
851
851
|
h1: "h1",
|
|
852
852
|
h2: "h2",
|
|
853
853
|
h3: "h3",
|
|
@@ -856,12 +856,12 @@ const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBod
|
|
|
856
856
|
h6: "h6",
|
|
857
857
|
p: "p",
|
|
858
858
|
span: "span"
|
|
859
|
-
},
|
|
860
|
-
const { typographyVariantMapping: r = {} } =
|
|
861
|
-
return /* @__PURE__ */ d.createElement(
|
|
862
|
-
},
|
|
863
|
-
var
|
|
864
|
-
const
|
|
859
|
+
}, Jn = ({ variant: e, component: t, className: n, children: o }) => {
|
|
860
|
+
const { typographyVariantMapping: r = {} } = Dn(), s = b(b({}, Gn), r), i = t || s[e] || "span";
|
|
861
|
+
return /* @__PURE__ */ d.createElement(eo, { className: n, as: i }, o);
|
|
862
|
+
}, eo = y.span``, ie = Jn;
|
|
863
|
+
var to = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(to || {});
|
|
864
|
+
const no = 300, oo = ({
|
|
865
865
|
className: e,
|
|
866
866
|
children: t,
|
|
867
867
|
header: n,
|
|
@@ -873,7 +873,7 @@ const oo = 300, ro = ({
|
|
|
873
873
|
type: "slide-in-bottom"
|
|
874
874
|
}
|
|
875
875
|
}) => {
|
|
876
|
-
const { duration: l =
|
|
876
|
+
const { duration: l = no } = c, a = _(), u = _(), [h, p] = ft(!0), [m, g] = gt(), x = ht(m), v = _(ae());
|
|
877
877
|
w(() => {
|
|
878
878
|
o && o(m);
|
|
879
879
|
}, [m]);
|
|
@@ -888,7 +888,7 @@ const oo = 300, ro = ({
|
|
|
888
888
|
},
|
|
889
889
|
window
|
|
890
890
|
);
|
|
891
|
-
const f =
|
|
891
|
+
const f = Oe(v.current, () => {
|
|
892
892
|
g(!1);
|
|
893
893
|
});
|
|
894
894
|
ve("router:changed", () => {
|
|
@@ -896,7 +896,7 @@ const oo = 300, ro = ({
|
|
|
896
896
|
}), w(() => {
|
|
897
897
|
m && a.current ? a.current.focus() : !m && u.current && x && u.current.focus();
|
|
898
898
|
}, [m, a.current, u.current]);
|
|
899
|
-
const L =
|
|
899
|
+
const L = lo[c.type];
|
|
900
900
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
901
901
|
lt,
|
|
902
902
|
{
|
|
@@ -906,7 +906,7 @@ const oo = 300, ro = ({
|
|
|
906
906
|
unmountOnExit: !0,
|
|
907
907
|
timeout: l
|
|
908
908
|
},
|
|
909
|
-
/* @__PURE__ */ d.createElement(
|
|
909
|
+
/* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
|
|
910
910
|
L,
|
|
911
911
|
{
|
|
912
912
|
duration: l,
|
|
@@ -921,16 +921,16 @@ const oo = 300, ro = ({
|
|
|
921
921
|
ref: p
|
|
922
922
|
},
|
|
923
923
|
/* @__PURE__ */ d.createElement(
|
|
924
|
-
|
|
924
|
+
Ne,
|
|
925
925
|
{
|
|
926
926
|
onClick: () => g(!1),
|
|
927
927
|
tabIndex: 0,
|
|
928
928
|
ref: a,
|
|
929
929
|
"aria-label": i
|
|
930
930
|
},
|
|
931
|
-
/* @__PURE__ */ d.createElement(
|
|
931
|
+
/* @__PURE__ */ d.createElement(le, { symbol: { type: "Svg", content: "close" } })
|
|
932
932
|
),
|
|
933
|
-
!!n && /* @__PURE__ */ d.createElement(
|
|
933
|
+
!!n && /* @__PURE__ */ d.createElement(ro, { variant: "h1", className: "humany-drawer-header" }, n),
|
|
934
934
|
t
|
|
935
935
|
))
|
|
936
936
|
), d.cloneElement(r, {
|
|
@@ -941,7 +941,7 @@ const oo = 300, ro = ({
|
|
|
941
941
|
"aria-label": r.props.title,
|
|
942
942
|
"aria-expanded": m
|
|
943
943
|
}));
|
|
944
|
-
},
|
|
944
|
+
}, Os = oo, $e = y.div`
|
|
945
945
|
font-family: ${(e) => {
|
|
946
946
|
var t;
|
|
947
947
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -958,7 +958,7 @@ const oo = 300, ro = ({
|
|
|
958
958
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
959
959
|
background: #ffffff;
|
|
960
960
|
${(e) => e.css && e.css}
|
|
961
|
-
`,
|
|
961
|
+
`, ro = y(ie)`
|
|
962
962
|
padding: ${(e) => {
|
|
963
963
|
var t;
|
|
964
964
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -983,7 +983,7 @@ const oo = 300, ro = ({
|
|
|
983
983
|
line-height: 1.2em;
|
|
984
984
|
`, we = (e) => S`
|
|
985
985
|
transition: ${e.duration}ms;
|
|
986
|
-
`,
|
|
986
|
+
`, so = y($e)`
|
|
987
987
|
max-height: 0;
|
|
988
988
|
${we}
|
|
989
989
|
|
|
@@ -1000,7 +1000,7 @@ const oo = 300, ro = ({
|
|
|
1000
1000
|
&.humany-drawer-transition-exit-done {
|
|
1001
1001
|
max-height: 0;
|
|
1002
1002
|
}
|
|
1003
|
-
`,
|
|
1003
|
+
`, io = y($e)`
|
|
1004
1004
|
${we}
|
|
1005
1005
|
transform: translateX(100%);
|
|
1006
1006
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1018,7 +1018,7 @@ const oo = 300, ro = ({
|
|
|
1018
1018
|
&.humany-drawer-transition-exit-done {
|
|
1019
1019
|
transform: translateX(100%);
|
|
1020
1020
|
}
|
|
1021
|
-
`,
|
|
1021
|
+
`, ao = y($e)`
|
|
1022
1022
|
${we}
|
|
1023
1023
|
transform: translateX(-100%);
|
|
1024
1024
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1036,7 +1036,7 @@ const oo = 300, ro = ({
|
|
|
1036
1036
|
&.humany-drawer-transition-exit-done {
|
|
1037
1037
|
transform: translateX(-100%);
|
|
1038
1038
|
}
|
|
1039
|
-
`,
|
|
1039
|
+
`, co = y($e)`
|
|
1040
1040
|
${we}
|
|
1041
1041
|
bottom: unset;
|
|
1042
1042
|
top: 0;
|
|
@@ -1055,13 +1055,13 @@ const oo = 300, ro = ({
|
|
|
1055
1055
|
&.humany-drawer-transition-exit-done {
|
|
1056
1056
|
height: 0;
|
|
1057
1057
|
}
|
|
1058
|
-
`,
|
|
1059
|
-
["slide-in-bottom"]:
|
|
1060
|
-
["slide-in-right"]:
|
|
1061
|
-
["slide-in-left"]:
|
|
1062
|
-
["slide-in-top"]:
|
|
1063
|
-
},
|
|
1064
|
-
const [o, r] =
|
|
1058
|
+
`, lo = {
|
|
1059
|
+
["slide-in-bottom"]: so,
|
|
1060
|
+
["slide-in-right"]: io,
|
|
1061
|
+
["slide-in-left"]: ao,
|
|
1062
|
+
["slide-in-top"]: co
|
|
1063
|
+
}, uo = (e, t, n) => {
|
|
1064
|
+
const [o, r] = C(0), [s, i] = C(0), c = D(
|
|
1065
1065
|
(l, a) => {
|
|
1066
1066
|
if (l.preventDefault(), a) {
|
|
1067
1067
|
const u = a.getBoundingClientRect();
|
|
@@ -1079,12 +1079,12 @@ const oo = 300, ro = ({
|
|
|
1079
1079
|
};
|
|
1080
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
1081
|
}, [n, e, t]), [{ x: o, y: s }, c];
|
|
1082
|
-
}, bt =
|
|
1082
|
+
}, bt = uo, mo = d.forwardRef(
|
|
1083
1083
|
(i, s) => {
|
|
1084
1084
|
var c = i, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = c, r = M(c, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1085
1085
|
const l = _(), a = _(), u = _();
|
|
1086
|
-
|
|
1087
|
-
const h = _(
|
|
1086
|
+
Me(s, () => u.current, [u.current]);
|
|
1087
|
+
const h = _(ae()), [p, m] = C(!1), g = ht(p), [{ x, y: v }, $] = bt(p, h.current, u.current), f = te("Escape");
|
|
1088
1088
|
w(() => {
|
|
1089
1089
|
f && m(!1);
|
|
1090
1090
|
}, [f]), w(() => {
|
|
@@ -1099,7 +1099,7 @@ const oo = 300, ro = ({
|
|
|
1099
1099
|
), ve("router:changed", () => {
|
|
1100
1100
|
m(!1);
|
|
1101
1101
|
});
|
|
1102
|
-
const L =
|
|
1102
|
+
const L = Oe(h.current, () => {
|
|
1103
1103
|
m(!1);
|
|
1104
1104
|
}), O = D(
|
|
1105
1105
|
(T) => {
|
|
@@ -1107,8 +1107,8 @@ const oo = 300, ro = ({
|
|
|
1107
1107
|
},
|
|
1108
1108
|
[L, $, m]
|
|
1109
1109
|
);
|
|
1110
|
-
return /* @__PURE__ */ d.createElement(d.Fragment, null, p && /* @__PURE__ */ d.createElement(
|
|
1111
|
-
|
|
1110
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, p && /* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
|
|
1111
|
+
ho,
|
|
1112
1112
|
k(b({
|
|
1113
1113
|
className: z(
|
|
1114
1114
|
"humany-dropdown",
|
|
@@ -1121,14 +1121,14 @@ const oo = 300, ro = ({
|
|
|
1121
1121
|
ref: u
|
|
1122
1122
|
}),
|
|
1123
1123
|
/* @__PURE__ */ d.createElement(
|
|
1124
|
-
|
|
1124
|
+
Ne,
|
|
1125
1125
|
{
|
|
1126
1126
|
onClick: () => m(!1),
|
|
1127
1127
|
tabIndex: 0,
|
|
1128
1128
|
ref: l,
|
|
1129
1129
|
"aria-label": o
|
|
1130
1130
|
},
|
|
1131
|
-
/* @__PURE__ */ d.createElement(
|
|
1131
|
+
/* @__PURE__ */ d.createElement(le, { symbol: { type: "Svg", content: "close" } })
|
|
1132
1132
|
),
|
|
1133
1133
|
t
|
|
1134
1134
|
)), d.cloneElement(n, {
|
|
@@ -1138,7 +1138,7 @@ const oo = 300, ro = ({
|
|
|
1138
1138
|
"aria-expanded": p
|
|
1139
1139
|
}));
|
|
1140
1140
|
}
|
|
1141
|
-
),
|
|
1141
|
+
), Rs = mo, ho = y.div`
|
|
1142
1142
|
${yt}
|
|
1143
1143
|
padding: ${(e) => {
|
|
1144
1144
|
var t;
|
|
@@ -1153,41 +1153,41 @@ const oo = 300, ro = ({
|
|
|
1153
1153
|
let t = "";
|
|
1154
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;
|
|
1155
1155
|
}};
|
|
1156
|
-
`,
|
|
1156
|
+
`, po = (t) => {
|
|
1157
1157
|
var e = M(t, []);
|
|
1158
|
-
return /* @__PURE__ */ d.createElement(
|
|
1159
|
-
},
|
|
1158
|
+
return /* @__PURE__ */ d.createElement(go, b({}, e));
|
|
1159
|
+
}, fo = po, go = y.div`
|
|
1160
1160
|
display: none;
|
|
1161
|
-
`,
|
|
1161
|
+
`, Ns = B(
|
|
1162
1162
|
(i, s) => {
|
|
1163
1163
|
var c = i, { children: e, columns: t, gap: n, className: o } = c, r = M(c, ["children", "columns", "gap", "className"]);
|
|
1164
1164
|
return /* @__PURE__ */ d.createElement(
|
|
1165
|
-
|
|
1165
|
+
yo,
|
|
1166
1166
|
k(b(b({
|
|
1167
1167
|
className: z(o, "humany-grid"),
|
|
1168
1168
|
"data-columns": t,
|
|
1169
1169
|
"data-gap": n
|
|
1170
|
-
},
|
|
1170
|
+
}, on(r)), W(r)), {
|
|
1171
1171
|
ref: s
|
|
1172
1172
|
}),
|
|
1173
1173
|
e
|
|
1174
1174
|
);
|
|
1175
1175
|
}
|
|
1176
|
-
),
|
|
1176
|
+
), yo = y.div`
|
|
1177
1177
|
display: grid;
|
|
1178
1178
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1179
1179
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1180
1180
|
justify-content: center;
|
|
1181
1181
|
grid-auto-rows: max-content;
|
|
1182
|
-
${
|
|
1182
|
+
${nn}
|
|
1183
1183
|
`, vt = B(
|
|
1184
1184
|
(s, r) => {
|
|
1185
1185
|
var i = s, { htmlParseInstruction: e = null, className: t, html: n } = i, o = M(i, ["htmlParseInstruction", "className", "html"]);
|
|
1186
|
-
const c = H(), [l, a] =
|
|
1186
|
+
const c = H(), [l, a] = C();
|
|
1187
1187
|
return w(() => {
|
|
1188
|
-
const u =
|
|
1188
|
+
const u = cn(c, n), h = k(b(b({}, u), e), {
|
|
1189
1189
|
transform: b(b({}, u.transform), e == null ? void 0 : e.transform)
|
|
1190
|
-
}), p =
|
|
1190
|
+
}), p = sn(n, h);
|
|
1191
1191
|
a(p);
|
|
1192
1192
|
}, [n, e]), /* @__PURE__ */ d.createElement(
|
|
1193
1193
|
"div",
|
|
@@ -1200,46 +1200,44 @@ const oo = 300, ro = ({
|
|
|
1200
1200
|
);
|
|
1201
1201
|
}
|
|
1202
1202
|
);
|
|
1203
|
-
var
|
|
1204
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
1203
|
+
var bo = Object.defineProperty, vo = Object.getOwnPropertyDescriptor, Ie = (e, t, n, o) => {
|
|
1204
|
+
for (var r = o > 1 ? void 0 : o ? vo(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
1205
1205
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
1206
|
-
return o && r &&
|
|
1206
|
+
return o && r && bo(t, n, r), r;
|
|
1207
1207
|
};
|
|
1208
|
-
|
|
1208
|
+
class ue extends oe {
|
|
1209
1209
|
constructor() {
|
|
1210
1210
|
super(), this.role = "presentation";
|
|
1211
1211
|
}
|
|
1212
1212
|
render() {
|
|
1213
|
-
const
|
|
1213
|
+
const t = `fa fa-${this.faIcon}`;
|
|
1214
1214
|
return I`
|
|
1215
1215
|
<link
|
|
1216
1216
|
href="https://flinck-test.humany.cc/ClientLibraries/Supplementary/font-awesome-4.7.0/css/font-awesome.min.css"
|
|
1217
1217
|
rel="stylesheet"
|
|
1218
1218
|
/>
|
|
1219
|
-
<i class=${
|
|
1219
|
+
<i class=${t} title=${this.title} role=${this.role} />
|
|
1220
1220
|
`;
|
|
1221
1221
|
}
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1222
|
+
}
|
|
1223
|
+
ue.styles = [
|
|
1224
1224
|
J`
|
|
1225
1225
|
:host {
|
|
1226
1226
|
display: block;
|
|
1227
1227
|
}
|
|
1228
1228
|
`
|
|
1229
1229
|
];
|
|
1230
|
-
|
|
1230
|
+
Ie([
|
|
1231
1231
|
N({ type: String })
|
|
1232
|
-
],
|
|
1233
|
-
|
|
1232
|
+
], ue.prototype, "faIcon", 2);
|
|
1233
|
+
Ie([
|
|
1234
1234
|
N({ type: String })
|
|
1235
|
-
],
|
|
1236
|
-
|
|
1235
|
+
], ue.prototype, "title", 2);
|
|
1236
|
+
Ie([
|
|
1237
1237
|
N({ type: String })
|
|
1238
|
-
],
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
], ne);
|
|
1242
|
-
const Bs = B(
|
|
1238
|
+
], ue.prototype, "role", 2);
|
|
1239
|
+
customElements.get("ui-icon") || customElements.define("ui-icon", ue);
|
|
1240
|
+
const Is = B(
|
|
1243
1241
|
(h, u) => {
|
|
1244
1242
|
var p = h, {
|
|
1245
1243
|
className: e = "",
|
|
@@ -1266,8 +1264,8 @@ const Bs = B(
|
|
|
1266
1264
|
"disabled",
|
|
1267
1265
|
"type"
|
|
1268
1266
|
]);
|
|
1269
|
-
const [m, g] =
|
|
1270
|
-
|
|
1267
|
+
const [m, g] = C(t), x = _();
|
|
1268
|
+
Me(u, () => x.current), w(() => {
|
|
1271
1269
|
var f;
|
|
1272
1270
|
t && ((f = x == null ? void 0 : x.current) == null || f.focus());
|
|
1273
1271
|
}, [t, u, x]);
|
|
@@ -1298,7 +1296,7 @@ const Bs = B(
|
|
|
1298
1296
|
})
|
|
1299
1297
|
);
|
|
1300
1298
|
}
|
|
1301
|
-
),
|
|
1299
|
+
), $o = B(
|
|
1302
1300
|
(i, s) => {
|
|
1303
1301
|
var c = i, { className: e, items: t, renderItem: n, renderLi: o = !1 } = c, r = M(c, ["className", "items", "renderItem", "renderLi"]);
|
|
1304
1302
|
return /* @__PURE__ */ d.createElement(
|
|
@@ -1314,7 +1312,7 @@ const Bs = B(
|
|
|
1314
1312
|
)
|
|
1315
1313
|
);
|
|
1316
1314
|
}
|
|
1317
|
-
),
|
|
1315
|
+
), wo = B(
|
|
1318
1316
|
(l, c) => {
|
|
1319
1317
|
var a = l, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s } = a, i = M(a, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1320
1318
|
return /* @__PURE__ */ d.createElement(
|
|
@@ -1324,12 +1322,12 @@ const Bs = B(
|
|
|
1324
1322
|
}, W(i)), {
|
|
1325
1323
|
ref: c
|
|
1326
1324
|
}),
|
|
1327
|
-
n ? /* @__PURE__ */ d.createElement(
|
|
1325
|
+
n ? /* @__PURE__ */ d.createElement(ie, { variant: "h1" }, s ? /* @__PURE__ */ d.createElement(le, { symbol: s }) : null, n) : null,
|
|
1328
1326
|
t ? /* @__PURE__ */ d.createElement(vt, { html: t, htmlParseInstruction: r }) : null,
|
|
1329
|
-
e ? /* @__PURE__ */ d.createElement(
|
|
1327
|
+
e ? /* @__PURE__ */ d.createElement(Re, null, e) : null
|
|
1330
1328
|
);
|
|
1331
1329
|
}
|
|
1332
|
-
),
|
|
1330
|
+
), xo = B(
|
|
1333
1331
|
(m, p) => {
|
|
1334
1332
|
var g = m, {
|
|
1335
1333
|
header: e,
|
|
@@ -1364,8 +1362,8 @@ const Bs = B(
|
|
|
1364
1362
|
}, W(h)), {
|
|
1365
1363
|
ref: p
|
|
1366
1364
|
}),
|
|
1367
|
-
t || (e || n || o ? /* @__PURE__ */ d.createElement(
|
|
1368
|
-
c.length ? /* @__PURE__ */ d.createElement(
|
|
1365
|
+
t || (e || n || o ? /* @__PURE__ */ d.createElement(wo, { symbol: i, header: e, text: n, html: o }) : null),
|
|
1366
|
+
c.length ? /* @__PURE__ */ d.createElement($o, b({ items: c, renderItem: l, renderLi: a }, u)) : null,
|
|
1369
1367
|
s
|
|
1370
1368
|
);
|
|
1371
1369
|
}
|
|
@@ -1380,7 +1378,7 @@ const Bs = B(
|
|
|
1380
1378
|
liProps: c
|
|
1381
1379
|
}) => {
|
|
1382
1380
|
const l = (h) => !a(h), a = (h) => !h || h.length < 1 ? !0 : !h.some((p) => !!p.selected), u = (h, p) => /* @__PURE__ */ d.createElement(
|
|
1383
|
-
|
|
1381
|
+
xo,
|
|
1384
1382
|
{
|
|
1385
1383
|
className: z(`humany-item-tree-level-${p}`),
|
|
1386
1384
|
items: h,
|
|
@@ -1400,7 +1398,7 @@ const Bs = B(
|
|
|
1400
1398
|
}
|
|
1401
1399
|
);
|
|
1402
1400
|
return /* @__PURE__ */ d.createElement("div", { className: z(e, "humany-item-tree") }, o && o(!l(t || [])), t && u(t, 1));
|
|
1403
|
-
},
|
|
1401
|
+
}, Bs = Eo, Co = B(
|
|
1404
1402
|
(l, c) => {
|
|
1405
1403
|
var a = l, { className: e, onClick: t = () => {
|
|
1406
1404
|
}, name: n = "", to: o = "", params: r = {}, children: s } = a, i = M(a, ["className", "onClick", "name", "to", "params", "children"]);
|
|
@@ -1419,7 +1417,7 @@ const Bs = B(
|
|
|
1419
1417
|
if (n) {
|
|
1420
1418
|
if (!(u.routes || []).find(($) => $.name === n))
|
|
1421
1419
|
return process.env.NODE_ENV !== "production" && Ee.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ d.createElement(
|
|
1422
|
-
|
|
1420
|
+
Ce,
|
|
1423
1421
|
k(b({}, m), {
|
|
1424
1422
|
onClick: ($) => {
|
|
1425
1423
|
t($), $.preventDefault(), process.env.NODE_ENV !== "production" && Ee.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
@@ -1431,7 +1429,7 @@ const Bs = B(
|
|
|
1431
1429
|
try {
|
|
1432
1430
|
p = u.generate(n, v || {});
|
|
1433
1431
|
} catch ($) {
|
|
1434
|
-
return /* @__PURE__ */ d.createElement(
|
|
1432
|
+
return /* @__PURE__ */ d.createElement(Ce, b({}, m), s);
|
|
1435
1433
|
}
|
|
1436
1434
|
p && u.settings.mode && u.settings.mode === Qe.browser && p[0] !== "/" && (p = `/${p}`);
|
|
1437
1435
|
} else if (o && u.history)
|
|
@@ -1447,11 +1445,11 @@ const Bs = B(
|
|
|
1447
1445
|
), null;
|
|
1448
1446
|
if (u.settings && u.settings.mode === Qe.scopedHash) {
|
|
1449
1447
|
const g = h.get("$widget").name;
|
|
1450
|
-
p =
|
|
1448
|
+
p = Yt(p, g);
|
|
1451
1449
|
}
|
|
1452
|
-
return m.as ? /* @__PURE__ */ d.createElement(
|
|
1450
|
+
return m.as ? /* @__PURE__ */ d.createElement(So, k(b({}, m), { as: m.as }), s) : /* @__PURE__ */ d.createElement(Ce, k(b({}, m), { to: p }), s);
|
|
1453
1451
|
}
|
|
1454
|
-
),
|
|
1452
|
+
), So = y.span``, Be = B(
|
|
1455
1453
|
(x, g) => {
|
|
1456
1454
|
var v = x, {
|
|
1457
1455
|
className: e,
|
|
@@ -1507,7 +1505,7 @@ const Bs = B(
|
|
|
1507
1505
|
}
|
|
1508
1506
|
};
|
|
1509
1507
|
return h ? /* @__PURE__ */ d.createElement(
|
|
1510
|
-
|
|
1508
|
+
ko,
|
|
1511
1509
|
k(b(b({
|
|
1512
1510
|
name: h,
|
|
1513
1511
|
params: p
|
|
@@ -1516,7 +1514,7 @@ const Bs = B(
|
|
|
1516
1514
|
}),
|
|
1517
1515
|
a
|
|
1518
1516
|
) : /* @__PURE__ */ d.createElement(
|
|
1519
|
-
|
|
1517
|
+
_o,
|
|
1520
1518
|
k(b(b({
|
|
1521
1519
|
href: l,
|
|
1522
1520
|
target: u
|
|
@@ -1526,17 +1524,17 @@ const Bs = B(
|
|
|
1526
1524
|
a
|
|
1527
1525
|
);
|
|
1528
1526
|
}
|
|
1529
|
-
),
|
|
1527
|
+
), ko = y(Co)`
|
|
1530
1528
|
${(e) => e.disabled ? `
|
|
1531
1529
|
pointer-events: none;
|
|
1532
1530
|
opacity: .7;
|
|
1533
1531
|
` : "cursor: pointer;"}
|
|
1534
|
-
`,
|
|
1532
|
+
`, _o = y.a`
|
|
1535
1533
|
${(e) => e.disabled ? `
|
|
1536
1534
|
pointer-events: none;
|
|
1537
1535
|
opacity: .7;
|
|
1538
1536
|
` : "cursor: pointer;"}
|
|
1539
|
-
`,
|
|
1537
|
+
`, Do = (s) => {
|
|
1540
1538
|
var i = s, {
|
|
1541
1539
|
visible: e,
|
|
1542
1540
|
duration: t = 500,
|
|
@@ -1564,8 +1562,8 @@ const Bs = B(
|
|
|
1564
1562
|
unmountOnExit: !0,
|
|
1565
1563
|
timeout: t
|
|
1566
1564
|
},
|
|
1567
|
-
/* @__PURE__ */ d.createElement(
|
|
1568
|
-
|
|
1565
|
+
/* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
|
|
1566
|
+
To,
|
|
1569
1567
|
b({
|
|
1570
1568
|
className: "humany-overlay",
|
|
1571
1569
|
duration: t,
|
|
@@ -1575,7 +1573,7 @@ const Bs = B(
|
|
|
1575
1573
|
n
|
|
1576
1574
|
))
|
|
1577
1575
|
);
|
|
1578
|
-
},
|
|
1576
|
+
}, To = y.div`
|
|
1579
1577
|
background: rgba(0, 0, 0, 0.6);
|
|
1580
1578
|
min-width: 100%;
|
|
1581
1579
|
min-height: 100%;
|
|
@@ -1605,11 +1603,11 @@ const Bs = B(
|
|
|
1605
1603
|
&.humany-overlay-transition-exit-done {
|
|
1606
1604
|
opacity: 0;
|
|
1607
1605
|
}
|
|
1608
|
-
`, $t =
|
|
1606
|
+
`, $t = Do, Mo = it`
|
|
1609
1607
|
100% {
|
|
1610
1608
|
transform: rotate(360deg);
|
|
1611
1609
|
}
|
|
1612
|
-
`,
|
|
1610
|
+
`, zo = it`
|
|
1613
1611
|
0% {
|
|
1614
1612
|
stroke-dasharray: 1, 200;
|
|
1615
1613
|
stroke-dashoffset: 0;
|
|
@@ -1622,8 +1620,8 @@ const Bs = B(
|
|
|
1622
1620
|
stroke-dasharray: 89, 200;
|
|
1623
1621
|
stroke-dashoffset: -124px;
|
|
1624
1622
|
}
|
|
1625
|
-
`,
|
|
1626
|
-
animation: ${
|
|
1623
|
+
`, Lo = y.svg`
|
|
1624
|
+
animation: ${Mo} 2s linear infinite;
|
|
1627
1625
|
height: 100%;
|
|
1628
1626
|
transform-origin: center center;
|
|
1629
1627
|
width: 100%;
|
|
@@ -1634,7 +1632,7 @@ const Bs = B(
|
|
|
1634
1632
|
right: 0;
|
|
1635
1633
|
margin: auto;
|
|
1636
1634
|
transition: 200ms ease-out opacity;
|
|
1637
|
-
`,
|
|
1635
|
+
`, Po = y.div`
|
|
1638
1636
|
position: absolute;
|
|
1639
1637
|
top: 0;
|
|
1640
1638
|
bottom: 0;
|
|
@@ -1652,7 +1650,7 @@ const Bs = B(
|
|
|
1652
1650
|
svg {
|
|
1653
1651
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
1654
1652
|
}
|
|
1655
|
-
`,
|
|
1653
|
+
`, Oo = y.div`
|
|
1656
1654
|
position: relative;
|
|
1657
1655
|
margin: 0 auto;
|
|
1658
1656
|
width: 100px;
|
|
@@ -1661,18 +1659,18 @@ const Bs = B(
|
|
|
1661
1659
|
display: block;
|
|
1662
1660
|
padding-top: 100%;
|
|
1663
1661
|
}
|
|
1664
|
-
`,
|
|
1662
|
+
`, Ro = y.circle`
|
|
1665
1663
|
stroke-dasharray: 1, 200;
|
|
1666
1664
|
stroke-dashoffset: 0;
|
|
1667
|
-
animation: ${
|
|
1665
|
+
animation: ${zo} 1.5s ease-in-out infinite;
|
|
1668
1666
|
stroke-linecap: round;
|
|
1669
1667
|
stroke: ${(e) => {
|
|
1670
1668
|
var t;
|
|
1671
1669
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
1672
1670
|
}};
|
|
1673
1671
|
stroke-width: 2px;
|
|
1674
|
-
`,
|
|
1675
|
-
|
|
1672
|
+
`, No = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ d.createElement(Po, { className: z("humany-loader", e), "data-loading": t }, /* @__PURE__ */ d.createElement(Oo, { className: "humany-spinner" }, /* @__PURE__ */ d.createElement(Lo, { viewBox: "25 25 50 50" }, /* @__PURE__ */ d.createElement(
|
|
1673
|
+
Ro,
|
|
1676
1674
|
{
|
|
1677
1675
|
cx: "50",
|
|
1678
1676
|
cy: "50",
|
|
@@ -1681,7 +1679,7 @@ const Bs = B(
|
|
|
1681
1679
|
"stroke-width": "2",
|
|
1682
1680
|
"stroke-miterlimit": "10"
|
|
1683
1681
|
}
|
|
1684
|
-
)))),
|
|
1682
|
+
)))), Io = No, Bo = (r) => {
|
|
1685
1683
|
var s = r, {
|
|
1686
1684
|
zoomState: e,
|
|
1687
1685
|
image: t,
|
|
@@ -1692,7 +1690,7 @@ const Bs = B(
|
|
|
1692
1690
|
"changeZoom"
|
|
1693
1691
|
]);
|
|
1694
1692
|
var $;
|
|
1695
|
-
const i = _(null), [c, l] =
|
|
1693
|
+
const i = _(null), [c, l] = C(!1), [a, u] = C(!1), v = o.style || {}, { width: h, height: p } = v, m = M(v, ["width", "height"]), g = D(() => {
|
|
1696
1694
|
const f = i.current;
|
|
1697
1695
|
if (f) {
|
|
1698
1696
|
const L = window.innerWidth / f.width, O = window.innerHeight / f.height, T = Math.min(L, O);
|
|
@@ -1713,8 +1711,8 @@ const Bs = B(
|
|
|
1713
1711
|
}, [e, i, c, t.src]);
|
|
1714
1712
|
return w(() => (l(!1), function() {
|
|
1715
1713
|
u(!1);
|
|
1716
|
-
}), [t.src]), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
1717
|
-
|
|
1714
|
+
}), [t.src]), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(Wo, { loading: !c }), /* @__PURE__ */ d.createElement(
|
|
1715
|
+
Ho,
|
|
1718
1716
|
k(b({
|
|
1719
1717
|
onLoad: () => {
|
|
1720
1718
|
l(!0);
|
|
@@ -1728,12 +1726,12 @@ const Bs = B(
|
|
|
1728
1726
|
src: t.src,
|
|
1729
1727
|
loaded: c
|
|
1730
1728
|
})
|
|
1731
|
-
), /* @__PURE__ */ d.createElement(
|
|
1732
|
-
},
|
|
1729
|
+
), /* @__PURE__ */ d.createElement(jo, null));
|
|
1730
|
+
}, Wo = y(Io)`
|
|
1733
1731
|
svg circle {
|
|
1734
1732
|
stroke: #ffffff;
|
|
1735
1733
|
}
|
|
1736
|
-
`,
|
|
1734
|
+
`, Ho = y.img`
|
|
1737
1735
|
transform: none;
|
|
1738
1736
|
|
|
1739
1737
|
${(e) => e.imageSize && S`
|
|
@@ -1744,20 +1742,20 @@ const Bs = B(
|
|
|
1744
1742
|
vertical-align: middle;
|
|
1745
1743
|
position: relative;
|
|
1746
1744
|
${(e) => !e.loaded && "display:none;"}
|
|
1747
|
-
`,
|
|
1745
|
+
`, jo = y.div`
|
|
1748
1746
|
height: 100%;
|
|
1749
1747
|
display: inline-block;
|
|
1750
1748
|
vertical-align: middle;
|
|
1751
|
-
`,
|
|
1752
|
-
const e = _(), [t, n] =
|
|
1749
|
+
`, Vo = Bo, Fo = () => {
|
|
1750
|
+
const e = _(), [t, n] = C(!0), o = D(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
1753
1751
|
n(!1);
|
|
1754
1752
|
}, 3e3), () => {
|
|
1755
1753
|
e.current && clearTimeout(e.current);
|
|
1756
1754
|
}), [t, e]);
|
|
1757
1755
|
return [t, o];
|
|
1758
|
-
},
|
|
1756
|
+
}, Ao = ({ attrs: e, htmlBody: t }) => {
|
|
1759
1757
|
var Ke;
|
|
1760
|
-
const n = te("Escape"), o = te("ArrowLeft"), r = te("ArrowRight"), [s, i] =
|
|
1758
|
+
const n = te("Escape"), o = te("ArrowLeft"), r = te("ArrowRight"), [s, i] = C(1), [c, l] = C({ top: 0, left: 0, x: 0, y: 0 }), [a, u] = C(!1), [h, p] = Fo(), [m, g] = C(null), [x, v] = C(null), $ = _(null), f = _(null), L = _(null), O = _(null);
|
|
1761
1759
|
w(() => {
|
|
1762
1760
|
n && g(null);
|
|
1763
1761
|
}, [n]), w(() => {
|
|
@@ -1766,15 +1764,15 @@ const Bs = B(
|
|
|
1766
1764
|
var Y, U;
|
|
1767
1765
|
if (m === null || f.current === null)
|
|
1768
1766
|
return;
|
|
1769
|
-
const
|
|
1767
|
+
const E = f.current.firstElementChild, P = (Y = L.current) == null ? void 0 : Y.querySelector(".nav-left"), F = (U = L.current) == null ? void 0 : U.querySelector(".nav-right");
|
|
1770
1768
|
if (x === "Right")
|
|
1771
1769
|
me && F ? F.focus() : de && P && P.focus();
|
|
1772
1770
|
else if (x === "Left")
|
|
1773
1771
|
de && P ? P.focus() : me && F && F.focus();
|
|
1774
1772
|
else {
|
|
1775
|
-
if (!
|
|
1773
|
+
if (!E)
|
|
1776
1774
|
return;
|
|
1777
|
-
|
|
1775
|
+
E.focus();
|
|
1778
1776
|
}
|
|
1779
1777
|
}, [m, f, L, x]), w(() => {
|
|
1780
1778
|
if (o) {
|
|
@@ -1784,9 +1782,9 @@ const Bs = B(
|
|
|
1784
1782
|
return Ae();
|
|
1785
1783
|
}, [o, r]);
|
|
1786
1784
|
const T = ge(() => {
|
|
1787
|
-
const
|
|
1788
|
-
|
|
1789
|
-
const P =
|
|
1785
|
+
const E = document.createElement("div");
|
|
1786
|
+
E.innerHTML = t || "";
|
|
1787
|
+
const P = E.getElementsByTagName("img");
|
|
1790
1788
|
return Array.from(P).reduce((Y, U) => {
|
|
1791
1789
|
const qe = U.getAttribute("src"), zt = U.height || Number.parseInt(U.style.height, 10), Lt = U.width || Number.parseInt(U.style.width, 10);
|
|
1792
1790
|
if (qe) {
|
|
@@ -1800,45 +1798,45 @@ const Bs = B(
|
|
|
1800
1798
|
return Y;
|
|
1801
1799
|
}, []);
|
|
1802
1800
|
}, [t]), V = D(() => {
|
|
1803
|
-
const { src:
|
|
1804
|
-
if (
|
|
1805
|
-
const P = T.findIndex((F, Y) => F.src ===
|
|
1801
|
+
const { src: E } = e;
|
|
1802
|
+
if (E) {
|
|
1803
|
+
const P = T.findIndex((F, Y) => F.src === E);
|
|
1806
1804
|
g(P);
|
|
1807
1805
|
}
|
|
1808
|
-
}, [T, e]), St = D((
|
|
1806
|
+
}, [T, e]), St = D((E) => {
|
|
1809
1807
|
g(null);
|
|
1810
1808
|
}, []), Ve = D(
|
|
1811
|
-
(
|
|
1812
|
-
i(
|
|
1809
|
+
(E) => {
|
|
1810
|
+
i(E ? s + s * 0.25 : s - s * 0.25);
|
|
1813
1811
|
},
|
|
1814
1812
|
[i, s]
|
|
1815
1813
|
), kt = D(() => {
|
|
1816
1814
|
if (m !== null) {
|
|
1817
|
-
const { src:
|
|
1818
|
-
|
|
1815
|
+
const { src: E } = T[m];
|
|
1816
|
+
E && window.open(E, "_self");
|
|
1819
1817
|
}
|
|
1820
1818
|
}, [T, m]), _t = D(
|
|
1821
|
-
(
|
|
1819
|
+
(E) => {
|
|
1822
1820
|
const P = O.current;
|
|
1823
|
-
P && (l({ top: P.scrollTop, left: P.scrollLeft, x:
|
|
1821
|
+
P && (l({ top: P.scrollTop, left: P.scrollLeft, x: E.clientX, y: E.clientY }), u(!0));
|
|
1824
1822
|
},
|
|
1825
1823
|
[O]
|
|
1826
1824
|
), Dt = D(
|
|
1827
|
-
(
|
|
1825
|
+
(E) => {
|
|
1828
1826
|
const P = O.current;
|
|
1829
1827
|
if (P && a) {
|
|
1830
|
-
const F =
|
|
1828
|
+
const F = E.clientX - c.x, Y = E.clientY - c.y;
|
|
1831
1829
|
P.scrollTop = c.top - Y, P.scrollLeft = c.left - F;
|
|
1832
1830
|
}
|
|
1833
1831
|
},
|
|
1834
1832
|
[a, c]
|
|
1835
|
-
), Tt = (
|
|
1836
|
-
|
|
1833
|
+
), Tt = (E) => {
|
|
1834
|
+
E.preventDefault(), u(!1);
|
|
1837
1835
|
}, Mt = ge(() => {
|
|
1838
1836
|
if (O.current) {
|
|
1839
|
-
const
|
|
1840
|
-
if (
|
|
1841
|
-
const P =
|
|
1837
|
+
const E = O.current.getElementsByTagName("img");
|
|
1838
|
+
if (E && E.length) {
|
|
1839
|
+
const P = E[0];
|
|
1842
1840
|
return P.width > window.innerWidth || P.height > window.innerHeight;
|
|
1843
1841
|
}
|
|
1844
1842
|
}
|
|
@@ -1849,15 +1847,15 @@ const Bs = B(
|
|
|
1849
1847
|
m !== null && (v("Right"), g(m + 1));
|
|
1850
1848
|
}, de = m !== null && m > 0 && T.length > 1, me = m !== null && T.length - 1 > m;
|
|
1851
1849
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: m !== null, onClick: St }, /* @__PURE__ */ d.createElement(
|
|
1852
|
-
|
|
1850
|
+
Go,
|
|
1853
1851
|
{
|
|
1854
1852
|
onMouseDown: () => p(),
|
|
1855
1853
|
onMouseMove: () => p(),
|
|
1856
1854
|
onTouchStart: () => p(),
|
|
1857
1855
|
onKeyDown: () => p()
|
|
1858
1856
|
},
|
|
1859
|
-
/* @__PURE__ */ d.createElement(
|
|
1860
|
-
|
|
1857
|
+
/* @__PURE__ */ d.createElement(Jo, { show: h.toString() }, /* @__PURE__ */ d.createElement(
|
|
1858
|
+
Uo,
|
|
1861
1859
|
{
|
|
1862
1860
|
ref: f,
|
|
1863
1861
|
buttons: [
|
|
@@ -1877,7 +1875,7 @@ const Bs = B(
|
|
|
1877
1875
|
}
|
|
1878
1876
|
)),
|
|
1879
1877
|
/* @__PURE__ */ d.createElement(
|
|
1880
|
-
|
|
1878
|
+
tr,
|
|
1881
1879
|
{
|
|
1882
1880
|
scrolling: a.toString(),
|
|
1883
1881
|
isDraggable: Mt.toString(),
|
|
@@ -1887,10 +1885,10 @@ const Bs = B(
|
|
|
1887
1885
|
onMouseUp: Tt
|
|
1888
1886
|
},
|
|
1889
1887
|
m !== null && /* @__PURE__ */ d.createElement(
|
|
1890
|
-
|
|
1888
|
+
Vo,
|
|
1891
1889
|
k(b({
|
|
1892
|
-
changeZoom: (
|
|
1893
|
-
i(
|
|
1890
|
+
changeZoom: (E) => {
|
|
1891
|
+
i(E);
|
|
1894
1892
|
},
|
|
1895
1893
|
zoomState: s
|
|
1896
1894
|
}, e), {
|
|
@@ -1899,7 +1897,7 @@ const Bs = B(
|
|
|
1899
1897
|
)
|
|
1900
1898
|
),
|
|
1901
1899
|
/* @__PURE__ */ d.createElement(
|
|
1902
|
-
|
|
1900
|
+
Zo,
|
|
1903
1901
|
{
|
|
1904
1902
|
ref: L,
|
|
1905
1903
|
show: h.toString(),
|
|
@@ -1925,8 +1923,8 @@ const Bs = B(
|
|
|
1925
1923
|
]
|
|
1926
1924
|
}
|
|
1927
1925
|
),
|
|
1928
|
-
/* @__PURE__ */ d.createElement(
|
|
1929
|
-
|
|
1926
|
+
/* @__PURE__ */ d.createElement(er, { show: h.toString() }, /* @__PURE__ */ d.createElement(
|
|
1927
|
+
Xo,
|
|
1930
1928
|
{
|
|
1931
1929
|
buttons: [
|
|
1932
1930
|
{
|
|
@@ -1943,22 +1941,22 @@ const Bs = B(
|
|
|
1943
1941
|
}
|
|
1944
1942
|
]
|
|
1945
1943
|
}
|
|
1946
|
-
), /* @__PURE__ */ d.createElement(
|
|
1944
|
+
), /* @__PURE__ */ d.createElement(Qo, { variant: "span" }, Math.trunc(s * 100), "%"))
|
|
1947
1945
|
)), /* @__PURE__ */ d.createElement(
|
|
1948
|
-
|
|
1946
|
+
Ko,
|
|
1949
1947
|
{
|
|
1950
1948
|
ref: $,
|
|
1951
1949
|
onClick: V,
|
|
1952
|
-
onKeyDown: (
|
|
1953
|
-
|
|
1950
|
+
onKeyDown: (E) => {
|
|
1951
|
+
E.key === "Enter" && (E.preventDefault(), V());
|
|
1954
1952
|
},
|
|
1955
1953
|
tabIndex: 0
|
|
1956
1954
|
},
|
|
1957
|
-
/* @__PURE__ */ d.createElement(
|
|
1955
|
+
/* @__PURE__ */ d.createElement(nr, k(b({}, e), { alt: ((Ke = e.alt) == null ? void 0 : Ke.toString()) || "" }))
|
|
1958
1956
|
));
|
|
1959
1957
|
}, We = B(
|
|
1960
1958
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ d.createElement(
|
|
1961
|
-
|
|
1959
|
+
qo,
|
|
1962
1960
|
{
|
|
1963
1961
|
ref: o,
|
|
1964
1962
|
show: e,
|
|
@@ -1966,7 +1964,7 @@ const Bs = B(
|
|
|
1966
1964
|
},
|
|
1967
1965
|
t.map(
|
|
1968
1966
|
({ id: r, circle: s = !1, show: i = !0, ariaLabel: c, onClick: l, icon: a, className: u }, h) => /* @__PURE__ */ d.createElement(
|
|
1969
|
-
|
|
1967
|
+
Yo,
|
|
1970
1968
|
{
|
|
1971
1969
|
key: r + h.toString(),
|
|
1972
1970
|
circle: s.toString(),
|
|
@@ -1977,7 +1975,7 @@ const Bs = B(
|
|
|
1977
1975
|
className: u,
|
|
1978
1976
|
"aria-label": c
|
|
1979
1977
|
},
|
|
1980
|
-
/* @__PURE__ */ d.createElement(
|
|
1978
|
+
/* @__PURE__ */ d.createElement(le, { size: 24, symbol: { type: "Svg", content: a } })
|
|
1981
1979
|
)
|
|
1982
1980
|
)
|
|
1983
1981
|
)
|
|
@@ -1988,18 +1986,18 @@ const Bs = B(
|
|
|
1988
1986
|
opacity: 0;
|
|
1989
1987
|
pointer-events: none;
|
|
1990
1988
|
`}
|
|
1991
|
-
`,
|
|
1989
|
+
`, Ko = y(Be)`
|
|
1992
1990
|
display: inline-block !important;
|
|
1993
|
-
`,
|
|
1991
|
+
`, qo = y(wt)`
|
|
1994
1992
|
position: fixed;
|
|
1995
1993
|
display: flex;
|
|
1996
1994
|
gap: ${(e) => {
|
|
1997
1995
|
var t;
|
|
1998
1996
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
1999
1997
|
}};
|
|
2000
|
-
`,
|
|
2001
|
-
width: ${
|
|
2002
|
-
height: ${
|
|
1998
|
+
`, De = "39px", Yo = y(be)`
|
|
1999
|
+
width: ${De};
|
|
2000
|
+
height: ${De};
|
|
2003
2001
|
display: flex;
|
|
2004
2002
|
justify-content: center;
|
|
2005
2003
|
align-items: center;
|
|
@@ -2062,7 +2060,7 @@ const Bs = B(
|
|
|
2062
2060
|
opacity: 0;
|
|
2063
2061
|
pointer-events: none;
|
|
2064
2062
|
`}
|
|
2065
|
-
`,
|
|
2063
|
+
`, Uo = y(We)`
|
|
2066
2064
|
top: ${(e) => {
|
|
2067
2065
|
var t;
|
|
2068
2066
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2071,7 +2069,7 @@ const Bs = B(
|
|
|
2071
2069
|
var t;
|
|
2072
2070
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2073
2071
|
}};
|
|
2074
|
-
`,
|
|
2072
|
+
`, Xo = y(We)`
|
|
2075
2073
|
bottom: ${(e) => {
|
|
2076
2074
|
var t;
|
|
2077
2075
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2079,11 +2077,11 @@ const Bs = B(
|
|
|
2079
2077
|
width: 100%;
|
|
2080
2078
|
align-items: center;
|
|
2081
2079
|
justify-content: center;
|
|
2082
|
-
`,
|
|
2080
|
+
`, Zo = y(We)`
|
|
2083
2081
|
display: block;
|
|
2084
2082
|
button {
|
|
2085
2083
|
position: fixed;
|
|
2086
|
-
top: calc(50% - calc(${
|
|
2084
|
+
top: calc(50% - calc(${De} / 2));
|
|
2087
2085
|
&:first-child {
|
|
2088
2086
|
left: ${(e) => {
|
|
2089
2087
|
var t;
|
|
@@ -2097,7 +2095,7 @@ const Bs = B(
|
|
|
2097
2095
|
}};
|
|
2098
2096
|
}
|
|
2099
2097
|
}
|
|
2100
|
-
`,
|
|
2098
|
+
`, Qo = y(ie)`
|
|
2101
2099
|
position: fixed;
|
|
2102
2100
|
bottom: ${(e) => {
|
|
2103
2101
|
var t;
|
|
@@ -2122,15 +2120,15 @@ const Bs = B(
|
|
|
2122
2120
|
height: 88px;
|
|
2123
2121
|
left: 0px;
|
|
2124
2122
|
z-index: 5;
|
|
2125
|
-
`,
|
|
2123
|
+
`, Go = y.div`
|
|
2126
2124
|
width: 100%;
|
|
2127
|
-
`,
|
|
2125
|
+
`, Jo = y(xt)`
|
|
2128
2126
|
top: 0px;
|
|
2129
2127
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2130
|
-
`,
|
|
2128
|
+
`, er = y(xt)`
|
|
2131
2129
|
bottom: 0px;
|
|
2132
2130
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2133
|
-
`,
|
|
2131
|
+
`, tr = y.div`
|
|
2134
2132
|
width: 100%;
|
|
2135
2133
|
height: 100vh;
|
|
2136
2134
|
overflow: auto;
|
|
@@ -2139,13 +2137,13 @@ const Bs = B(
|
|
|
2139
2137
|
white-space: nowrap;
|
|
2140
2138
|
justify-content: center;
|
|
2141
2139
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2142
|
-
`,
|
|
2140
|
+
`, nr = y.img`
|
|
2143
2141
|
cursor: pointer;
|
|
2144
|
-
`,
|
|
2142
|
+
`, or = Ao, rr = B(
|
|
2145
2143
|
(c, i) => {
|
|
2146
2144
|
var l = c, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2147
2145
|
}, close: r = !1 } = l, s = M(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2148
|
-
const [a, u] = gt(), [h, p] = ft(!0), m = _(), g = _(
|
|
2146
|
+
const [a, u] = gt(), [h, p] = ft(!0), m = _(), g = _(ae()), x = te("Escape");
|
|
2149
2147
|
w(() => {
|
|
2150
2148
|
(x || r) && u(!1);
|
|
2151
2149
|
}, [x, r]), w(() => {
|
|
@@ -2159,16 +2157,16 @@ const Bs = B(
|
|
|
2159
2157
|
},
|
|
2160
2158
|
[o, u]
|
|
2161
2159
|
);
|
|
2162
|
-
|
|
2160
|
+
Me(i, () => ({
|
|
2163
2161
|
close() {
|
|
2164
2162
|
u(!1);
|
|
2165
2163
|
}
|
|
2166
2164
|
}));
|
|
2167
|
-
const $ = D(() =>
|
|
2165
|
+
const $ = D(() => Oe(g.current, () => {
|
|
2168
2166
|
u(!1);
|
|
2169
2167
|
}), [g.current]);
|
|
2170
2168
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: a, onClick: v }, /* @__PURE__ */ d.createElement(
|
|
2171
|
-
|
|
2169
|
+
ir,
|
|
2172
2170
|
k(b({
|
|
2173
2171
|
className: z(
|
|
2174
2172
|
e,
|
|
@@ -2181,13 +2179,13 @@ const Bs = B(
|
|
|
2181
2179
|
ref: p
|
|
2182
2180
|
}),
|
|
2183
2181
|
/* @__PURE__ */ d.createElement(
|
|
2184
|
-
|
|
2182
|
+
Ne,
|
|
2185
2183
|
{
|
|
2186
2184
|
onClick: () => u(!1),
|
|
2187
2185
|
tabIndex: 0,
|
|
2188
2186
|
ref: m
|
|
2189
2187
|
},
|
|
2190
|
-
/* @__PURE__ */ d.createElement(
|
|
2188
|
+
/* @__PURE__ */ d.createElement(le, { symbol: { type: "Svg", content: "close" } })
|
|
2191
2189
|
),
|
|
2192
2190
|
t
|
|
2193
2191
|
)), d.cloneElement(n, {
|
|
@@ -2196,7 +2194,7 @@ const Bs = B(
|
|
|
2196
2194
|
}
|
|
2197
2195
|
}));
|
|
2198
2196
|
}
|
|
2199
|
-
),
|
|
2197
|
+
), sr = rr, ir = y.div`
|
|
2200
2198
|
font-family: ${(e) => {
|
|
2201
2199
|
var t;
|
|
2202
2200
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2215,7 +2213,7 @@ const Bs = B(
|
|
|
2215
2213
|
${(e) => yt(e)}
|
|
2216
2214
|
${(e) => e.css && e.css}
|
|
2217
2215
|
outline: none;
|
|
2218
|
-
`,
|
|
2216
|
+
`, ar = ({
|
|
2219
2217
|
className: e,
|
|
2220
2218
|
trigger: t,
|
|
2221
2219
|
header: n = "",
|
|
@@ -2234,8 +2232,8 @@ const Bs = B(
|
|
|
2234
2232
|
var h;
|
|
2235
2233
|
s(), (h = l == null ? void 0 : l.current) == null || h.close();
|
|
2236
2234
|
}, [s]);
|
|
2237
|
-
return /* @__PURE__ */ d.createElement(
|
|
2238
|
-
},
|
|
2235
|
+
return /* @__PURE__ */ d.createElement(cr, { className: e, trigger: t, ref: l, onOverlayClick: a }, n && /* @__PURE__ */ d.createElement(et, null, n), o && /* @__PURE__ */ d.createElement(et, null, o), c && /* @__PURE__ */ d.createElement(lr, { onClick: u }, c), i && /* @__PURE__ */ d.createElement(ur, { onClick: a }, i));
|
|
2236
|
+
}, Ws = ar, cr = y(sr)`
|
|
2239
2237
|
display: block;
|
|
2240
2238
|
|
|
2241
2239
|
span {
|
|
@@ -2253,7 +2251,7 @@ const Bs = B(
|
|
|
2253
2251
|
}};
|
|
2254
2252
|
}
|
|
2255
2253
|
}
|
|
2256
|
-
`,
|
|
2254
|
+
`, lr = y(be)`
|
|
2257
2255
|
display: inline-block;
|
|
2258
2256
|
min-width: 50px;
|
|
2259
2257
|
${(e) => {
|
|
@@ -2283,7 +2281,7 @@ const Bs = B(
|
|
|
2283
2281
|
&:focus-visible {
|
|
2284
2282
|
${Z}
|
|
2285
2283
|
}
|
|
2286
|
-
`,
|
|
2284
|
+
`, ur = y(be)`
|
|
2287
2285
|
display: inline-block;
|
|
2288
2286
|
min-width: 50px;
|
|
2289
2287
|
${(e) => {
|
|
@@ -2304,15 +2302,15 @@ const Bs = B(
|
|
|
2304
2302
|
&:focus-visible {
|
|
2305
2303
|
${Z};
|
|
2306
2304
|
}
|
|
2307
|
-
`,
|
|
2305
|
+
`, dr = ({
|
|
2308
2306
|
header: e = "",
|
|
2309
2307
|
link: t = "",
|
|
2310
2308
|
suggestionHeader: n = "",
|
|
2311
2309
|
suggestion: o = ""
|
|
2312
|
-
}) => /* @__PURE__ */ d.createElement(
|
|
2310
|
+
}) => /* @__PURE__ */ d.createElement(mr, null, /* @__PURE__ */ d.createElement(hr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h2" }, "404")), /* @__PURE__ */ d.createElement(pr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h3" }, e), /* @__PURE__ */ d.createElement(yr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ d.createElement(fr, null, /* @__PURE__ */ d.createElement("span", null, n), /* @__PURE__ */ d.createElement("ul", null, /* @__PURE__ */ d.createElement("li", null, o)))), Hs = dr, mr = y.div`
|
|
2313
2311
|
display: flex;
|
|
2314
2312
|
flex-wrap: wrap;
|
|
2315
|
-
`,
|
|
2313
|
+
`, hr = y.div`
|
|
2316
2314
|
${(e) => ye(e)(
|
|
2317
2315
|
"h2",
|
|
2318
2316
|
S`
|
|
@@ -2322,7 +2320,7 @@ const Bs = B(
|
|
|
2322
2320
|
font-size: 7em;
|
|
2323
2321
|
`
|
|
2324
2322
|
)}
|
|
2325
|
-
`,
|
|
2323
|
+
`, pr = y.div`
|
|
2326
2324
|
margin-left: ${(e) => {
|
|
2327
2325
|
var t;
|
|
2328
2326
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2349,7 +2347,7 @@ const Bs = B(
|
|
|
2349
2347
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2350
2348
|
}};
|
|
2351
2349
|
}
|
|
2352
|
-
`,
|
|
2350
|
+
`, fr = y.div`
|
|
2353
2351
|
margin-top: ${(e) => {
|
|
2354
2352
|
var t;
|
|
2355
2353
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2360,7 +2358,7 @@ const Bs = B(
|
|
|
2360
2358
|
font-weight: bold;
|
|
2361
2359
|
}
|
|
2362
2360
|
`;
|
|
2363
|
-
class
|
|
2361
|
+
class gr extends Wt {
|
|
2364
2362
|
constructor() {
|
|
2365
2363
|
super(...arguments), this.state = {
|
|
2366
2364
|
boundFocus: !1
|
|
@@ -2399,21 +2397,21 @@ class yr extends Wt {
|
|
|
2399
2397
|
) : null;
|
|
2400
2398
|
}
|
|
2401
2399
|
}
|
|
2402
|
-
const
|
|
2400
|
+
const js = gr, yr = B(
|
|
2403
2401
|
(i, s) => {
|
|
2404
2402
|
var c = i, { className: e, description: t, text: n, children: o } = c, r = M(c, ["className", "description", "text", "children"]);
|
|
2405
|
-
return /* @__PURE__ */ d.createElement(Be, k(b({ className: z(e, "humany-text-link") }, r), { ref: s }), o, /* @__PURE__ */ d.createElement(
|
|
2403
|
+
return /* @__PURE__ */ d.createElement(Be, k(b({ className: z(e, "humany-text-link") }, r), { ref: s }), o, /* @__PURE__ */ d.createElement(Re, null, n), t ? /* @__PURE__ */ d.createElement(vt, { html: t, className: "humany-description" }) : null);
|
|
2406
2404
|
}
|
|
2407
2405
|
);
|
|
2408
|
-
var
|
|
2409
|
-
const
|
|
2410
|
-
function
|
|
2406
|
+
var br = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(br || {});
|
|
2407
|
+
const vr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ d.createElement("span", { className: z(e, "humany-timestamp") }, $r(n, t)), Vs = vr, tt = (e) => `0${e}`.slice(-2);
|
|
2408
|
+
function $r(e, t) {
|
|
2411
2409
|
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${tt(i)}-${tt(c)}`;
|
|
2412
2410
|
return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
|
|
2413
2411
|
}
|
|
2414
|
-
const
|
|
2412
|
+
const wr = (s) => {
|
|
2415
2413
|
var i = s, { className: e, children: t, content: n, sticky: o = !1 } = i, r = M(i, ["className", "children", "content", "sticky"]);
|
|
2416
|
-
const [c, l] =
|
|
2414
|
+
const [c, l] = C(!1), a = _(ae()), u = _(), [{ x: h, y: p }, m] = bt(c, a.current, u.current), g = (v) => {
|
|
2417
2415
|
const { target: $ } = v;
|
|
2418
2416
|
!u.current || !$ || u.current !== $ && !u.current.contains($) && l(!1);
|
|
2419
2417
|
};
|
|
@@ -2430,7 +2428,7 @@ const xr = (s) => {
|
|
|
2430
2428
|
[m, l]
|
|
2431
2429
|
);
|
|
2432
2430
|
return /* @__PURE__ */ d.createElement(
|
|
2433
|
-
|
|
2431
|
+
xr,
|
|
2434
2432
|
{
|
|
2435
2433
|
ref: u,
|
|
2436
2434
|
className: "humany-tooltip-trigger",
|
|
@@ -2440,7 +2438,7 @@ const xr = (s) => {
|
|
|
2440
2438
|
onClick: o ? (v) => x(v, !c) : void 0
|
|
2441
2439
|
},
|
|
2442
2440
|
t,
|
|
2443
|
-
c && /* @__PURE__ */ d.createElement(
|
|
2441
|
+
c && /* @__PURE__ */ d.createElement(ce, null, /* @__PURE__ */ d.createElement(
|
|
2444
2442
|
Er,
|
|
2445
2443
|
b({
|
|
2446
2444
|
className: z(e, "humany-tooltip-container"),
|
|
@@ -2450,7 +2448,7 @@ const xr = (s) => {
|
|
|
2450
2448
|
n
|
|
2451
2449
|
))
|
|
2452
2450
|
);
|
|
2453
|
-
},
|
|
2451
|
+
}, xr = y.div`
|
|
2454
2452
|
display: flex;
|
|
2455
2453
|
align-items: center;
|
|
2456
2454
|
`, Er = y.div`
|
|
@@ -2489,7 +2487,7 @@ const xr = (s) => {
|
|
|
2489
2487
|
let t = "";
|
|
2490
2488
|
return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
|
|
2491
2489
|
}};
|
|
2492
|
-
`,
|
|
2490
|
+
`, Fs = wr, Cr = (e) => {
|
|
2493
2491
|
const {
|
|
2494
2492
|
in: t,
|
|
2495
2493
|
mountOnEnter: n = !0,
|
|
@@ -2531,7 +2529,7 @@ const xr = (s) => {
|
|
|
2531
2529
|
}
|
|
2532
2530
|
})();
|
|
2533
2531
|
return /* @__PURE__ */ d.createElement(
|
|
2534
|
-
|
|
2532
|
+
Kt,
|
|
2535
2533
|
{
|
|
2536
2534
|
timeout: {
|
|
2537
2535
|
enter: l && l.enter.duration || 0,
|
|
@@ -2543,9 +2541,9 @@ const xr = (s) => {
|
|
|
2543
2541
|
unmountOnExit: o,
|
|
2544
2542
|
onEnter: (a) => a.clientHeight
|
|
2545
2543
|
},
|
|
2546
|
-
(a) => s && s(a, l &&
|
|
2544
|
+
(a) => s && s(a, l && ke.compose(a, l))
|
|
2547
2545
|
);
|
|
2548
|
-
},
|
|
2546
|
+
}, As = Cr, Sr = B(
|
|
2549
2547
|
(c, i) => {
|
|
2550
2548
|
var l = c, { className: e, children: t, onClick: n = () => {
|
|
2551
2549
|
}, widgetName: o, activationOptions: r } = l, s = M(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
@@ -2595,7 +2593,7 @@ const xr = (s) => {
|
|
|
2595
2593
|
t
|
|
2596
2594
|
);
|
|
2597
2595
|
}
|
|
2598
|
-
),
|
|
2596
|
+
), Ks = B(
|
|
2599
2597
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
2600
2598
|
const r = H(), s = ge(() => {
|
|
2601
2599
|
if (!r)
|
|
@@ -2603,8 +2601,8 @@ const xr = (s) => {
|
|
|
2603
2601
|
const i = r.get("widgetDOMElement");
|
|
2604
2602
|
return !i || !i.childElementCount ? null : i.children[0];
|
|
2605
2603
|
}, [r]);
|
|
2606
|
-
return s ? /* @__PURE__ */ d.createElement(
|
|
2607
|
-
|
|
2604
|
+
return s ? /* @__PURE__ */ d.createElement(ce, { elementId: e, parent: s }, /* @__PURE__ */ d.createElement(
|
|
2605
|
+
kr,
|
|
2608
2606
|
{
|
|
2609
2607
|
className: z("humany-widget-overlay-outlet", t),
|
|
2610
2608
|
ref: o
|
|
@@ -2612,7 +2610,7 @@ const xr = (s) => {
|
|
|
2612
2610
|
n
|
|
2613
2611
|
)) : null;
|
|
2614
2612
|
}
|
|
2615
|
-
),
|
|
2613
|
+
), kr = y.div`
|
|
2616
2614
|
background-color: #ffffff;
|
|
2617
2615
|
position: absolute;
|
|
2618
2616
|
top: 0;
|
|
@@ -2622,16 +2620,16 @@ const xr = (s) => {
|
|
|
2622
2620
|
z-index: 10;
|
|
2623
2621
|
width: 100%;
|
|
2624
2622
|
height: 100%;
|
|
2625
|
-
`,
|
|
2623
|
+
`, _r = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
2626
2624
|
t,
|
|
2627
2625
|
Ht(() => n)
|
|
2628
2626
|
), st(e, t, o || (() => {
|
|
2629
|
-
}), t, r))),
|
|
2627
|
+
}), t, r))), qs = _r, Dr = (e, t, n, o, r) => pe(void 0, null, function* () {
|
|
2630
2628
|
return (yield e.getAsync("componentResolver")).registerComponent(t, () => n), st(e, t, o || (() => {
|
|
2631
2629
|
}), t, r);
|
|
2632
|
-
}),
|
|
2630
|
+
}), Ys = Dr, Tr = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
|
|
2633
2631
|
`;
|
|
2634
|
-
class
|
|
2632
|
+
class Et extends oe {
|
|
2635
2633
|
render() {
|
|
2636
2634
|
return I`
|
|
2637
2635
|
<!-- className={appendClassNames(className, 'humany-button')}
|
|
@@ -2642,14 +2640,14 @@ class Ct extends re {
|
|
|
2642
2640
|
`;
|
|
2643
2641
|
}
|
|
2644
2642
|
}
|
|
2645
|
-
|
|
2646
|
-
customElements.get("ui-button") || customElements.define("ui-button",
|
|
2647
|
-
var
|
|
2648
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2643
|
+
Et.styles = Se(Tr);
|
|
2644
|
+
customElements.get("ui-button") || customElements.define("ui-button", Et);
|
|
2645
|
+
var Mr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Lr = (e, t, n, o) => {
|
|
2646
|
+
for (var r = o > 1 ? void 0 : o ? zr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2649
2647
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2650
|
-
return o && r &&
|
|
2648
|
+
return o && r && Mr(t, n, r), r;
|
|
2651
2649
|
};
|
|
2652
|
-
class He extends
|
|
2650
|
+
class He extends oe {
|
|
2653
2651
|
constructor() {
|
|
2654
2652
|
super(), this.html = "";
|
|
2655
2653
|
}
|
|
@@ -2667,16 +2665,16 @@ He.styles = [
|
|
|
2667
2665
|
}
|
|
2668
2666
|
`
|
|
2669
2667
|
];
|
|
2670
|
-
|
|
2668
|
+
Lr([
|
|
2671
2669
|
N({ type: String })
|
|
2672
2670
|
], He.prototype, "html", 2);
|
|
2673
2671
|
customElements.get("ui-html") || customElements.define("ui-html", He);
|
|
2674
|
-
var
|
|
2675
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2672
|
+
var Pr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, se = (e, t, n, o) => {
|
|
2673
|
+
for (var r = o > 1 ? void 0 : o ? Or(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2676
2674
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2677
|
-
return o && r &&
|
|
2675
|
+
return o && r && Pr(t, n, r), r;
|
|
2678
2676
|
};
|
|
2679
|
-
class Q extends
|
|
2677
|
+
class Q extends oe {
|
|
2680
2678
|
constructor() {
|
|
2681
2679
|
super(), this.symbol = {
|
|
2682
2680
|
content: "",
|
|
@@ -2913,67 +2911,67 @@ Q.styles = [
|
|
|
2913
2911
|
}
|
|
2914
2912
|
`
|
|
2915
2913
|
];
|
|
2916
|
-
|
|
2914
|
+
se([
|
|
2917
2915
|
N({ type: Object })
|
|
2918
2916
|
], Q.prototype, "symbol", 2);
|
|
2919
|
-
|
|
2917
|
+
se([
|
|
2920
2918
|
N({ type: Object })
|
|
2921
2919
|
], Q.prototype, "elementStyle", 2);
|
|
2922
|
-
|
|
2920
|
+
se([
|
|
2923
2921
|
N({ type: Number })
|
|
2924
2922
|
], Q.prototype, "size", 2);
|
|
2925
|
-
|
|
2923
|
+
se([
|
|
2926
2924
|
N({ type: String })
|
|
2927
2925
|
], Q.prototype, "text", 2);
|
|
2928
|
-
|
|
2926
|
+
se([
|
|
2929
2927
|
N({ type: String })
|
|
2930
2928
|
], Q.prototype, "backgroundSize", 2);
|
|
2931
|
-
|
|
2929
|
+
se([
|
|
2932
2930
|
X()
|
|
2933
2931
|
], Q.prototype, "styles", 2);
|
|
2934
2932
|
customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
|
|
2935
|
-
var
|
|
2936
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2933
|
+
var Rr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, Ct = (e, t, n, o) => {
|
|
2934
|
+
for (var r = o > 1 ? void 0 : o ? Nr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2937
2935
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2938
|
-
return o && r &&
|
|
2936
|
+
return o && r && Rr(t, n, r), r;
|
|
2939
2937
|
};
|
|
2940
2938
|
const nt = (e) => `0${e}`.slice(-2);
|
|
2941
|
-
function
|
|
2939
|
+
function Ir(e, t) {
|
|
2942
2940
|
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${nt(i)}-${nt(c)}`;
|
|
2943
2941
|
return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
|
|
2944
2942
|
}
|
|
2945
|
-
class
|
|
2943
|
+
class xe extends oe {
|
|
2946
2944
|
constructor() {
|
|
2947
2945
|
super(), this.format = "hh:mm";
|
|
2948
2946
|
}
|
|
2949
2947
|
render() {
|
|
2950
|
-
return I`<span class="timestamp">${
|
|
2948
|
+
return I`<span class="timestamp">${Ir(this.timestamp, this.format)}</span>`;
|
|
2951
2949
|
}
|
|
2952
2950
|
createRenderRoot() {
|
|
2953
2951
|
return this;
|
|
2954
2952
|
}
|
|
2955
2953
|
}
|
|
2956
|
-
|
|
2954
|
+
xe.styles = [
|
|
2957
2955
|
J`
|
|
2958
2956
|
:host {
|
|
2959
2957
|
display: block;
|
|
2960
2958
|
}
|
|
2961
2959
|
`
|
|
2962
2960
|
];
|
|
2963
|
-
|
|
2961
|
+
Ct([
|
|
2964
2962
|
N({ type: String })
|
|
2965
|
-
],
|
|
2966
|
-
|
|
2963
|
+
], xe.prototype, "timestamp", 2);
|
|
2964
|
+
Ct([
|
|
2967
2965
|
N({ type: String })
|
|
2968
|
-
],
|
|
2969
|
-
customElements.get("ui-timestamp") || customElements.define("ui-timestamp",
|
|
2970
|
-
var
|
|
2971
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2966
|
+
], xe.prototype, "format", 2);
|
|
2967
|
+
customElements.get("ui-timestamp") || customElements.define("ui-timestamp", xe);
|
|
2968
|
+
var Br = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, Hr = (e, t, n, o) => {
|
|
2969
|
+
for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2972
2970
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2973
|
-
return o && r &&
|
|
2971
|
+
return o && r && Br(t, n, r), r;
|
|
2974
2972
|
};
|
|
2975
|
-
const
|
|
2976
|
-
class je extends
|
|
2973
|
+
const jr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
|
|
2974
|
+
class je extends oe {
|
|
2977
2975
|
constructor() {
|
|
2978
2976
|
super(), this.variant = "span";
|
|
2979
2977
|
}
|
|
@@ -2982,7 +2980,7 @@ class je extends re {
|
|
|
2982
2980
|
return n ? n.trim() : t;
|
|
2983
2981
|
}
|
|
2984
2982
|
render() {
|
|
2985
|
-
const t =
|
|
2983
|
+
const t = jr(this.variant) ? this._getTag(this.variant) : this.variant, n = ct(t);
|
|
2986
2984
|
return at`
|
|
2987
2985
|
<${n}>
|
|
2988
2986
|
<slot />
|
|
@@ -3008,11 +3006,11 @@ je.styles = [
|
|
|
3008
3006
|
}
|
|
3009
3007
|
`
|
|
3010
3008
|
];
|
|
3011
|
-
|
|
3009
|
+
Hr([
|
|
3012
3010
|
N({ type: String })
|
|
3013
3011
|
], je.prototype, "variant", 2);
|
|
3014
3012
|
customElements.get("ui-typography") || customElements.define("ui-typography", je);
|
|
3015
|
-
class
|
|
3013
|
+
class Us {
|
|
3016
3014
|
constructor(t) {
|
|
3017
3015
|
(this.host = t).addController(this);
|
|
3018
3016
|
}
|
|
@@ -3027,7 +3025,7 @@ class Xs {
|
|
|
3027
3025
|
this.host.removeEventListener("set-properties", this.propertyChangeHandler);
|
|
3028
3026
|
}
|
|
3029
3027
|
}
|
|
3030
|
-
class
|
|
3028
|
+
class Xs {
|
|
3031
3029
|
constructor(t) {
|
|
3032
3030
|
this.nodeId = "", this._host = t;
|
|
3033
3031
|
}
|
|
@@ -3041,7 +3039,7 @@ class Zs {
|
|
|
3041
3039
|
console.warn("Could not get data in DataProvider. Container was not defined.");
|
|
3042
3040
|
return;
|
|
3043
3041
|
}
|
|
3044
|
-
const t = yield
|
|
3042
|
+
const t = yield ze.getInstance(this.container);
|
|
3045
3043
|
if (this.node = t.nodes.get(this.nodeId), !this.node) {
|
|
3046
3044
|
console.warn(`Could not get component node with ID: ${this.nodeId}.`);
|
|
3047
3045
|
return;
|
|
@@ -3058,7 +3056,7 @@ class Zs {
|
|
|
3058
3056
|
return this._host.dispatchEvent(n), n.detail.instance;
|
|
3059
3057
|
}
|
|
3060
3058
|
}
|
|
3061
|
-
const
|
|
3059
|
+
const Te = "context.connectEvent", Zs = ut(
|
|
3062
3060
|
(e) => {
|
|
3063
3061
|
class t extends e {
|
|
3064
3062
|
constructor() {
|
|
@@ -3072,7 +3070,7 @@ const Me = "context.connectEvent", Qs = ut(
|
|
|
3072
3070
|
_injectContext(o) {
|
|
3073
3071
|
const r = (i, c) => {
|
|
3074
3072
|
this._contextValueChanged(o, i, c);
|
|
3075
|
-
}, s = new CustomEvent(
|
|
3073
|
+
}, s = new CustomEvent(Te, {
|
|
3076
3074
|
bubbles: !0,
|
|
3077
3075
|
cancelable: !0,
|
|
3078
3076
|
composed: !0,
|
|
@@ -3093,7 +3091,7 @@ const Me = "context.connectEvent", Qs = ut(
|
|
|
3093
3091
|
}
|
|
3094
3092
|
return t;
|
|
3095
3093
|
}
|
|
3096
|
-
),
|
|
3094
|
+
), Vr = ut(
|
|
3097
3095
|
(e) => {
|
|
3098
3096
|
class t extends e {
|
|
3099
3097
|
constructor() {
|
|
@@ -3115,7 +3113,7 @@ const Me = "context.connectEvent", Qs = ut(
|
|
|
3115
3113
|
}, i.callback(this[o]);
|
|
3116
3114
|
}
|
|
3117
3115
|
};
|
|
3118
|
-
this.addEventListener(
|
|
3116
|
+
this.addEventListener(Te, r), this._providedContexts.set(o, {
|
|
3119
3117
|
listener: r,
|
|
3120
3118
|
callbacks: /* @__PURE__ */ new Set()
|
|
3121
3119
|
});
|
|
@@ -3135,19 +3133,19 @@ const Me = "context.connectEvent", Qs = ut(
|
|
|
3135
3133
|
}
|
|
3136
3134
|
disconnectedCallback() {
|
|
3137
3135
|
for (const o of this._providedContexts.values())
|
|
3138
|
-
this.removeEventListener(
|
|
3136
|
+
this.removeEventListener(Te, o.listener);
|
|
3139
3137
|
super.disconnectedCallback();
|
|
3140
3138
|
}
|
|
3141
3139
|
}
|
|
3142
3140
|
return t;
|
|
3143
3141
|
}
|
|
3144
3142
|
);
|
|
3145
|
-
var
|
|
3146
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3143
|
+
var Fr = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, ot = (e, t, n, o) => {
|
|
3144
|
+
for (var r = o > 1 ? void 0 : o ? Ar(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
3147
3145
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
3148
|
-
return o && r &&
|
|
3146
|
+
return o && r && Fr(t, n, r), r;
|
|
3149
3147
|
};
|
|
3150
|
-
const
|
|
3148
|
+
const Qs = (e) => {
|
|
3151
3149
|
class t extends e {
|
|
3152
3150
|
constructor(...o) {
|
|
3153
3151
|
super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => pe(this, null, function* () {
|
|
@@ -3160,7 +3158,7 @@ const Gs = (e) => {
|
|
|
3160
3158
|
], t.prototype, "hasPendingChildren", 2), ot([
|
|
3161
3159
|
X()
|
|
3162
3160
|
], t.prototype, "pendingCount", 2), t;
|
|
3163
|
-
},
|
|
3161
|
+
}, Gs = (e) => {
|
|
3164
3162
|
class t extends e {
|
|
3165
3163
|
constructor(...o) {
|
|
3166
3164
|
super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
|
|
@@ -3173,7 +3171,7 @@ const Gs = (e) => {
|
|
|
3173
3171
|
}
|
|
3174
3172
|
}
|
|
3175
3173
|
return t;
|
|
3176
|
-
},
|
|
3174
|
+
}, Kr = (e) => {
|
|
3177
3175
|
class t extends e {
|
|
3178
3176
|
requestInstance(o) {
|
|
3179
3177
|
const r = new CustomEvent("request-instance", {
|
|
@@ -3186,24 +3184,24 @@ const Gs = (e) => {
|
|
|
3186
3184
|
}
|
|
3187
3185
|
}
|
|
3188
3186
|
return t;
|
|
3189
|
-
},
|
|
3187
|
+
}, qr = (e) => {
|
|
3190
3188
|
var n, o, r, s, i, c, l, a, u, h, p, m, g, x, v, $, f, L, O, T, V;
|
|
3191
3189
|
const t = {};
|
|
3192
3190
|
return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (s = e.fonts) != null && s.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (i = e.fonts) != null && i.large && (t["--fonts-large"] = `${e.fonts.large}`), (c = e.fonts) != null && c.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (l = e.colors) != null && l.accent && (t["--colors-accent"] = `${e.colors.accent}`), (a = e.colors) != null && a.link && (t["--colors-link"] = `${e.colors.link}`), (u = e.colors) != null && u.primary && (t["--colors-primary"] = `${e.colors.primary}`), (h = e.colors) != null && h.text && (t["--colors-text"] = `${e.colors.text}`), (p = e.colors) != null && p.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (m = e.colors) != null && m.warning && (t["--colors-warning"] = `${e.colors.warning}`), (g = e.accessibility) != null && g.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (v = (x = e.accessibility) == null ? void 0 : x.colors) != null && v.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (f = ($ = e.accessibility) == null ? void 0 : $.colors) != null && f.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (L = e.sizes) != null && L.small && (t["--size-small"] = `${e.sizes.small}`), (O = e.sizes) != null && O.normal && (t["--size-normal"] = `${e.sizes.normal}`), (T = e.sizes) != null && T.medium && (t["--size-medium"] = `${e.sizes.medium}`), (V = e.sizes) != null && V.large && (t["--size-large"] = `${e.sizes.large}`), e.typographyVariantMapping && (e.typographyVariantMapping.h1 && (t["--typography-h1"] = `${e.typographyVariantMapping.h1}`), e.typographyVariantMapping.h2 && (t["--typography-h2"] = `${e.typographyVariantMapping.h2}`), e.typographyVariantMapping.h3 && (t["--typography-h3"] = `${e.typographyVariantMapping.h3}`), e.typographyVariantMapping.h4 && (t["--typography-h4"] = `${e.typographyVariantMapping.h4}`), e.typographyVariantMapping.h5 && (t["--typography-h5"] = `${e.typographyVariantMapping.h5}`), e.typographyVariantMapping.h6 && (t["--typography-h6"] = `${e.typographyVariantMapping.h6}`)), t;
|
|
3193
3191
|
};
|
|
3194
|
-
var
|
|
3195
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3192
|
+
var Yr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, j = (e, t, n, o) => {
|
|
3193
|
+
for (var r = o > 1 ? void 0 : o ? Ur(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
3196
3194
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
3197
|
-
return o && r &&
|
|
3195
|
+
return o && r && Yr(t, n, r), r;
|
|
3198
3196
|
};
|
|
3199
|
-
const
|
|
3197
|
+
const Xr = (e) => `w-${e}`, Zr = (e) => Object.entries(e).reduce((t, [n, o]) => {
|
|
3200
3198
|
if (n.indexOf("css-") > -1) {
|
|
3201
3199
|
const r = n.replace("css-", "");
|
|
3202
3200
|
t[r] = o;
|
|
3203
3201
|
}
|
|
3204
3202
|
return t;
|
|
3205
|
-
}, {}),
|
|
3206
|
-
class t extends
|
|
3203
|
+
}, {}), Js = (e) => {
|
|
3204
|
+
class t extends Vr(Kr(e)) {
|
|
3207
3205
|
constructor() {
|
|
3208
3206
|
super(), this.listeners = [], this.setColumns = (o) => {
|
|
3209
3207
|
this.columns = o;
|
|
@@ -3227,7 +3225,7 @@ const Zr = (e) => `w-${e}`, Qr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3227
3225
|
}
|
|
3228
3226
|
connectedCallback() {
|
|
3229
3227
|
super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
|
|
3230
|
-
|
|
3228
|
+
ze.getInstance(this.container),
|
|
3231
3229
|
this.container.getAsync("componentResolver")
|
|
3232
3230
|
]).then((o) => {
|
|
3233
3231
|
const r = o[0], s = o[1], i = r.nodes.get(this.nodeId || "");
|
|
@@ -3264,7 +3262,7 @@ const Zr = (e) => `w-${e}`, Qr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3264
3262
|
);
|
|
3265
3263
|
return;
|
|
3266
3264
|
}
|
|
3267
|
-
const l =
|
|
3265
|
+
const l = Xr(this._descriptor.type);
|
|
3268
3266
|
if (customElements.get(l))
|
|
3269
3267
|
return;
|
|
3270
3268
|
const a = s.getComponent(this._descriptor.type);
|
|
@@ -3284,20 +3282,20 @@ const Zr = (e) => `w-${e}`, Qr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3284
3282
|
}), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
|
|
3285
3283
|
}
|
|
3286
3284
|
_getContextStyles() {
|
|
3287
|
-
return this._context ?
|
|
3285
|
+
return this._context ? qr(this._context) : {};
|
|
3288
3286
|
}
|
|
3289
3287
|
render() {
|
|
3290
|
-
const o = super.render(), r = this._getContextStyles(), s =
|
|
3288
|
+
const o = super.render(), r = this._getContextStyles(), s = Zr(this._properties), i = I`
|
|
3291
3289
|
<style>
|
|
3292
3290
|
:host {
|
|
3293
3291
|
${Object.entries(r).map(([c, l]) => J`
|
|
3294
|
-
${
|
|
3292
|
+
${Se(`${c}: ${l};`)}
|
|
3295
3293
|
`)}
|
|
3296
3294
|
}
|
|
3297
3295
|
|
|
3298
3296
|
:host > * {
|
|
3299
3297
|
${Object.entries(s).map(([c, l]) => J`
|
|
3300
|
-
${
|
|
3298
|
+
${Se(`${c}: ${l} !important;`)}
|
|
3301
3299
|
`)}
|
|
3302
3300
|
}
|
|
3303
3301
|
</style>
|
|
@@ -3338,109 +3336,109 @@ const Zr = (e) => `w-${e}`, Qr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3338
3336
|
], t.prototype, "_layout", 2), t;
|
|
3339
3337
|
};
|
|
3340
3338
|
export {
|
|
3341
|
-
|
|
3339
|
+
un as AnchorLink,
|
|
3342
3340
|
be as Button,
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3341
|
+
Et as ButtonUi,
|
|
3342
|
+
gs as Checkbox,
|
|
3343
|
+
pn as ColumnContext,
|
|
3346
3344
|
mt as ComponentNodeContext,
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3345
|
+
fn as ComponentPropertyContext,
|
|
3346
|
+
Ws as Confirm,
|
|
3347
|
+
Zs as ConsumerMixin,
|
|
3348
|
+
hn as ContainerContext,
|
|
3349
|
+
yn as ConversationContext,
|
|
3350
|
+
Xs as DataProvider,
|
|
3351
|
+
br as DateFormats,
|
|
3352
|
+
Os as Drawer,
|
|
3353
|
+
to as DrawerAnimationType,
|
|
3354
|
+
Rs as Dropdown,
|
|
3355
|
+
fo as Empty,
|
|
3356
|
+
Ns as Grid,
|
|
3359
3357
|
vt as Html,
|
|
3360
3358
|
He as HtmlUi,
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3359
|
+
ue as Icon,
|
|
3360
|
+
Is as Input,
|
|
3361
|
+
xo as ItemList,
|
|
3362
|
+
Bs as ItemTree,
|
|
3363
|
+
or as Lightbox,
|
|
3366
3364
|
Be as Link,
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3365
|
+
$o as List,
|
|
3366
|
+
sr as Modal,
|
|
3367
|
+
Us as NodeConnector,
|
|
3368
|
+
Hs as NotFound,
|
|
3371
3369
|
$t as Overlay,
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3370
|
+
wo as Paragraph,
|
|
3371
|
+
Qs as PendingState,
|
|
3372
|
+
ce as Portal,
|
|
3373
|
+
Gs as ProviderMixin,
|
|
3374
|
+
Kr as Requester,
|
|
3375
|
+
Co as RouteLink,
|
|
3376
|
+
gn as RoutingContext,
|
|
3379
3377
|
et as StyledText,
|
|
3380
|
-
|
|
3378
|
+
le as SymbolBadge,
|
|
3381
3379
|
Q as SymbolBadgeUi,
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3380
|
+
js as TabStop,
|
|
3381
|
+
Re as Text,
|
|
3382
|
+
yr as TextLink,
|
|
3383
|
+
Vs as Timestamp,
|
|
3384
|
+
xe as TimestampUi,
|
|
3385
|
+
Fs as Tooltip,
|
|
3386
|
+
As as TransitionComponent,
|
|
3387
|
+
ie as Typography,
|
|
3390
3388
|
je as TypographyUi,
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3389
|
+
Js as WidgetComponentMixin,
|
|
3390
|
+
Sr as WidgetLink,
|
|
3391
|
+
Ks as WidgetOverlayOutlet,
|
|
3394
3392
|
Z as borderTabStyle,
|
|
3395
3393
|
Je as browser,
|
|
3396
|
-
|
|
3394
|
+
Yn as buttonCss,
|
|
3397
3395
|
yt as contentBox,
|
|
3398
3396
|
W as convertToStringAttributes,
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3397
|
+
fs as createEmptyComponent,
|
|
3398
|
+
qs as createReactComponent,
|
|
3399
|
+
Ys as createWebComponent,
|
|
3400
|
+
cn as defaultRenderInstructions,
|
|
3401
|
+
tn as embeddedLinkMapper,
|
|
3402
|
+
on as filterCssProps,
|
|
3403
|
+
nn as filterCssPropsStyle,
|
|
3404
|
+
rn as genericHashLink,
|
|
3405
|
+
Ps as genericHtml,
|
|
3408
3406
|
ye as headingElement,
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3407
|
+
an as imageLightboxRenderer,
|
|
3408
|
+
Ms as invertedHoverButton,
|
|
3409
|
+
Ls as itemList,
|
|
3410
|
+
Un as linkTabStyle,
|
|
3411
|
+
Xn as list,
|
|
3412
|
+
zs as paddedBorderTabStyle,
|
|
3413
|
+
sn as processHtmlString,
|
|
3414
|
+
ke as transitionComposer,
|
|
3415
|
+
ys as useAction,
|
|
3416
|
+
bs as useChildren,
|
|
3417
|
+
vs as useColumns,
|
|
3418
|
+
$s as useComponent,
|
|
3419
|
+
Le as useComponentDescriptor,
|
|
3420
|
+
Pe as useComponentNode,
|
|
3421
|
+
re as useComponentPlatform,
|
|
3424
3422
|
H as useContainer,
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3423
|
+
Dn as useContext,
|
|
3424
|
+
ws as useConversation,
|
|
3425
|
+
xs as useDispatch,
|
|
3428
3426
|
K as useEventListener,
|
|
3429
|
-
|
|
3427
|
+
Ln as useEvents,
|
|
3430
3428
|
q as useIsMounted,
|
|
3431
3429
|
Es as useIsTabbing,
|
|
3432
3430
|
te as useKeyPress,
|
|
3433
|
-
|
|
3431
|
+
Cs as useLayout,
|
|
3434
3432
|
ht as usePrevious,
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3433
|
+
Ss as useProperties,
|
|
3434
|
+
ks as useRenderState,
|
|
3435
|
+
_s as useRouteData,
|
|
3438
3436
|
pt as useRouter,
|
|
3439
3437
|
ft as useScroll,
|
|
3440
|
-
|
|
3438
|
+
Ds as useSettings,
|
|
3441
3439
|
gt as useToggle,
|
|
3442
|
-
|
|
3443
|
-
|
|
3440
|
+
Ts as useTransitionEnd,
|
|
3441
|
+
Oe as useUniqueMenu,
|
|
3444
3442
|
ve as useWidgetEvent
|
|
3445
3443
|
};
|
|
3446
3444
|
//# sourceMappingURL=index.js.map
|