@telia-ace/widget-ui 1.0.28-experimental.15 → 1.0.28-experimental.16
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/components/ui-html.d.ts +1 -0
- package/dist/components/ui-typography.d.ts +1 -0
- package/dist/index.js +608 -618
- package/dist/index.js.map +1 -1
- package/package.json +13 -7
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Rt = Object.defineProperty, _t = Object.defineProperties;
|
|
2
|
+
var Tt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ue = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Ae = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var je = (e, t, n) => t in e ? Rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, f = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Ae.call(t, n) && je(e, n, t[n]);
|
|
8
8
|
if (ue)
|
|
9
9
|
for (var n of ue(t))
|
|
10
|
-
|
|
10
|
+
Fe.call(t, n) && je(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, k = (e, t) =>
|
|
12
|
+
}, k = (e, t) => _t(e, Tt(t));
|
|
13
13
|
var S = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
16
|
+
Ae.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
17
|
if (e != null && ue)
|
|
18
18
|
for (var o of ue(e))
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
19
|
+
t.indexOf(o) < 0 && Fe.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
22
|
var de = (e, t, n) => new Promise((o, r) => {
|
|
@@ -35,24 +35,24 @@ var de = (e, t, n) => new Promise((o, r) => {
|
|
|
35
35
|
}, l = (u) => u.done ? o(u.value) : Promise.resolve(u.value).then(i, a);
|
|
36
36
|
l((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { Container as
|
|
39
|
-
import s, { forwardRef as P, createContext as
|
|
40
|
-
import { ComponentPlatform as
|
|
41
|
-
import { css as L, keyframes as
|
|
38
|
+
import { Container as zt, WidgetState as Dt } from "@webprovisions/platform";
|
|
39
|
+
import s, { forwardRef as P, createContext as te, useContext as J, useState as E, useEffect as w, useRef as R, useCallback as _, useImperativeHandle as Me, useMemo as he, Component as Ht, lazy as Bt } from "react";
|
|
40
|
+
import { ComponentPlatform as Se, asDescriptor as Je, createEventSubscriber as Pt, ComponentQuery as Vt, WidgetRenderState as me, extendComponent as et } from "@telia-ace/widget-core";
|
|
41
|
+
import { css as L, keyframes as tt } from "@emotion/react";
|
|
42
42
|
import C from "@emotion/styled";
|
|
43
|
-
import { kebabCase as
|
|
44
|
-
import { LitElement as
|
|
45
|
-
import {
|
|
46
|
-
import { html as
|
|
43
|
+
import { kebabCase as Nt, appendClassNames as M, uuid as se, removeNullAndUndefinedValues as Ke, Logger as we } from "@telia-ace/widget-utilities";
|
|
44
|
+
import { LitElement as fe, html as O, unsafeCSS as nt, css as ge, nothing as It } from "lit";
|
|
45
|
+
import { property as N, state as Y } from "lit/decorators.js";
|
|
46
|
+
import { html as ot, unsafeStatic as rt } from "lit/static-html.js";
|
|
47
47
|
import { spread as B } from "@open-wc/lit-helpers";
|
|
48
|
-
import { styleMap as
|
|
49
|
-
import { CSSTransition as
|
|
50
|
-
import { createPortal as
|
|
51
|
-
import { HistoryMode as qe, getSpecificWidgetPath as
|
|
52
|
-
import { Link as
|
|
53
|
-
import
|
|
54
|
-
import { dedupeMixin as
|
|
55
|
-
const
|
|
48
|
+
import { styleMap as U } from "lit/directives/style-map.js";
|
|
49
|
+
import { CSSTransition as st, Transition as Ot } from "react-transition-group";
|
|
50
|
+
import { createPortal as Wt } from "react-dom";
|
|
51
|
+
import { HistoryMode as qe, getSpecificWidgetPath as Zt } from "@telia-ace/widget-routing";
|
|
52
|
+
import { Link as xe } from "react-router-dom";
|
|
53
|
+
import Ue from "htmr";
|
|
54
|
+
import { dedupeMixin as it } from "@open-wc/dedupe-mixin";
|
|
55
|
+
const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exiting" || e === "exited", G = {
|
|
56
56
|
fade: {
|
|
57
57
|
in: "opacity: 1;",
|
|
58
58
|
out: "opacity: 0;"
|
|
@@ -77,10 +77,10 @@ const Kt = (e) => e === "entering" || e === "entered", Ut = (e) => e === "exitin
|
|
|
77
77
|
in: "transform: scale(1);",
|
|
78
78
|
out: "transform: scale(0);"
|
|
79
79
|
}
|
|
80
|
-
},
|
|
80
|
+
}, Ft = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], $e = {
|
|
81
81
|
compose: (e = "exited", t) => {
|
|
82
|
-
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i =
|
|
83
|
-
if (
|
|
82
|
+
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), i = Ft.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
83
|
+
if (jt(e))
|
|
84
84
|
return r && r.length > 0 ? L`
|
|
85
85
|
${r && r.length > 0 && r.map((l) => G[l] ? G[l].in : "")}
|
|
86
86
|
transition: ${i} ${n.duration}ms ${n.easing};
|
|
@@ -88,7 +88,7 @@ const Kt = (e) => e === "entering" || e === "entered", Ut = (e) => e === "exitin
|
|
|
88
88
|
const a = r && r.length > 0 && L`
|
|
89
89
|
${r.map((l) => G[l] ? G[l].out : "")}
|
|
90
90
|
`;
|
|
91
|
-
if (
|
|
91
|
+
if (At(e)) {
|
|
92
92
|
const l = o.transitionKeys.split(" ");
|
|
93
93
|
return l && l.length > 0 && e === "exiting" ? L`
|
|
94
94
|
${a};
|
|
@@ -99,7 +99,7 @@ const Kt = (e) => e === "entering" || e === "entered", Ut = (e) => e === "exitin
|
|
|
99
99
|
},
|
|
100
100
|
composeViewTransition: (e, t, n) => {
|
|
101
101
|
if (t === "slide")
|
|
102
|
-
return
|
|
102
|
+
return $e.compose(e, {
|
|
103
103
|
enter: {
|
|
104
104
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
105
105
|
duration: 500
|
|
@@ -110,7 +110,7 @@ const Kt = (e) => e === "entering" || e === "entered", Ut = (e) => e === "exitin
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
if (t === "fade")
|
|
113
|
-
return
|
|
113
|
+
return $e.compose(e, {
|
|
114
114
|
enter: {
|
|
115
115
|
transitionKeys: "fade",
|
|
116
116
|
duration: 500
|
|
@@ -123,8 +123,8 @@ const Kt = (e) => e === "entering" || e === "entered", Ut = (e) => e === "exitin
|
|
|
123
123
|
},
|
|
124
124
|
get: (e) => G[e]
|
|
125
125
|
};
|
|
126
|
-
var
|
|
127
|
-
const
|
|
126
|
+
var Ee = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(Ee || {});
|
|
127
|
+
const Ye = () => {
|
|
128
128
|
const {
|
|
129
129
|
opr: e,
|
|
130
130
|
opera: t,
|
|
@@ -155,42 +155,42 @@ const Qe = () => {
|
|
|
155
155
|
return "edge-chromium";
|
|
156
156
|
if ((d || c) && !!u)
|
|
157
157
|
return "blink";
|
|
158
|
-
},
|
|
158
|
+
}, Kt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
|
|
159
159
|
const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
|
|
160
|
-
if (
|
|
160
|
+
if (Kt.indexOf(r) > -1) {
|
|
161
161
|
const i = n.substring(0, 5);
|
|
162
|
-
i === "data-" || i === "aria-" ? t[
|
|
162
|
+
i === "data-" || i === "aria-" ? t[Nt(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
|
+
}, {}), qt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ s.createElement(uo, f({}, t)) : null, as = qt, Ut = (e) => new RegExp("^#", "i").test(e), Yt = (e) => (o) => {
|
|
167
167
|
var r = o, { children: t } = r, n = S(r, ["children"]);
|
|
168
168
|
const {
|
|
169
169
|
implementation: i,
|
|
170
170
|
name: a
|
|
171
171
|
} = e.get("$widget"), { href: l = "" } = n;
|
|
172
|
-
if (
|
|
173
|
-
return /* @__PURE__ */ s.createElement(
|
|
172
|
+
if (Ut(l))
|
|
173
|
+
return /* @__PURE__ */ s.createElement(rn, { smooth: !0, to: l }, t);
|
|
174
174
|
const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
|
|
175
175
|
if (m && m.length >= 4) {
|
|
176
176
|
const p = m[4];
|
|
177
177
|
if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
|
|
178
|
-
return /* @__PURE__ */ s.createElement(
|
|
178
|
+
return /* @__PURE__ */ s.createElement(wr, { widgetName: p }, t);
|
|
179
179
|
}
|
|
180
180
|
return /* @__PURE__ */ s.createElement("a", f({}, n), t);
|
|
181
|
-
},
|
|
181
|
+
}, Xt = Yt, at = (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
|
+
}, Qt = (e) => {
|
|
187
187
|
let t = "";
|
|
188
|
-
return Object.keys(
|
|
188
|
+
return Object.keys(at(e)).forEach((n) => {
|
|
189
189
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
190
190
|
}), L`
|
|
191
191
|
${t}
|
|
192
192
|
`;
|
|
193
|
-
},
|
|
193
|
+
}, Gt = at, Jt = (e, t) => {
|
|
194
194
|
let n = "";
|
|
195
195
|
const o = () => {
|
|
196
196
|
n = "";
|
|
@@ -220,18 +220,18 @@ const Qe = () => {
|
|
|
220
220
|
}
|
|
221
221
|
`;
|
|
222
222
|
};
|
|
223
|
-
function
|
|
224
|
-
return t ?
|
|
223
|
+
function en(e, t) {
|
|
224
|
+
return t ? Ue(e, t) : Ue(e);
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBody: e }), nn = (e, t) => ({
|
|
227
227
|
transform: {
|
|
228
|
-
a:
|
|
229
|
-
img:
|
|
228
|
+
a: Xt(e),
|
|
229
|
+
img: tn(t)
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), on = (e) => Jt(e, "a"), rn = on, ye = P((r, o) => {
|
|
232
232
|
var i = r, { className: e, children: t } = i, n = S(i, ["className", "children"]);
|
|
233
233
|
return /* @__PURE__ */ s.createElement(
|
|
234
|
-
|
|
234
|
+
sn,
|
|
235
235
|
k(f({
|
|
236
236
|
type: "button",
|
|
237
237
|
className: M(e, "humany-button")
|
|
@@ -240,7 +240,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
240
240
|
}),
|
|
241
241
|
t
|
|
242
242
|
);
|
|
243
|
-
}),
|
|
243
|
+
}), sn = C.button`
|
|
244
244
|
-webkit-appearance: button;
|
|
245
245
|
text-transform: none;
|
|
246
246
|
overflow: visible;
|
|
@@ -253,7 +253,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
253
253
|
line-height: normal;
|
|
254
254
|
margin: 0;
|
|
255
255
|
padding: 0;
|
|
256
|
-
`,
|
|
256
|
+
`, an = (r) => {
|
|
257
257
|
var i = r, {
|
|
258
258
|
onChange: e = () => {
|
|
259
259
|
},
|
|
@@ -275,43 +275,43 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
275
275
|
onChange: (a) => e(a.target.value, a.currentTarget.checked)
|
|
276
276
|
}, V(o))
|
|
277
277
|
);
|
|
278
|
-
},
|
|
278
|
+
}, cs = an, cn = te(new zt()), ln = te(1), ct = te({
|
|
279
279
|
id: "",
|
|
280
280
|
type: "",
|
|
281
281
|
name: "",
|
|
282
282
|
branch: ""
|
|
283
|
-
}),
|
|
284
|
-
const n =
|
|
283
|
+
}), un = te({}), dn = te(null), mn = te(null), hn = () => J(ct), Re = hn, pn = () => J(cn), I = pn, fn = (e, t) => {
|
|
284
|
+
const n = Re().id, o = I();
|
|
285
285
|
return (r, i) => {
|
|
286
286
|
(t || o).getAsync("actionResolver").then((a) => {
|
|
287
287
|
a.action(e || n, r, i);
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
|
-
},
|
|
291
|
-
const t = J(
|
|
290
|
+
}, ls = fn, gn = (e) => {
|
|
291
|
+
const t = J(ct), n = ne(), [o, r] = E();
|
|
292
292
|
return w(() => {
|
|
293
293
|
if ((e || t.id) && n) {
|
|
294
294
|
const i = n.nodes.get(e || t.id);
|
|
295
295
|
r(i);
|
|
296
296
|
}
|
|
297
297
|
}, [e, t.id, n]), o;
|
|
298
|
-
},
|
|
298
|
+
}, _e = gn, yn = () => {
|
|
299
299
|
const e = R(!1);
|
|
300
300
|
return w(() => (e.current = !0, () => {
|
|
301
301
|
e.current = !1;
|
|
302
302
|
}), []), e;
|
|
303
|
-
},
|
|
304
|
-
const t = I(), [n, o] = E(null), r =
|
|
303
|
+
}, F = yn, Cn = (e) => {
|
|
304
|
+
const t = I(), [n, o] = E(null), r = F();
|
|
305
305
|
return w(() => {
|
|
306
|
-
|
|
306
|
+
Se.getInstance(e || t).then((i) => {
|
|
307
307
|
r.current && o(i);
|
|
308
308
|
});
|
|
309
309
|
}, [r]), n;
|
|
310
|
-
},
|
|
311
|
-
const e =
|
|
310
|
+
}, ne = Cn, bn = () => {
|
|
311
|
+
const e = _e(), t = ne(), [n, o] = E([]), r = F(), i = _(
|
|
312
312
|
(a) => {
|
|
313
313
|
if (t && r.current && a) {
|
|
314
|
-
const l = t.getBranch(a), u = a.getChildren(l).map((c) =>
|
|
314
|
+
const l = t.getBranch(a), u = a.getChildren(l).map((c) => Je(c));
|
|
315
315
|
o(u);
|
|
316
316
|
}
|
|
317
317
|
},
|
|
@@ -321,7 +321,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
321
321
|
e && i(e);
|
|
322
322
|
}, [e, t]), w(() => {
|
|
323
323
|
if (t) {
|
|
324
|
-
const [a, l] =
|
|
324
|
+
const [a, l] = Pt(t.events);
|
|
325
325
|
return a("components:set-layout", (u, c) => {
|
|
326
326
|
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
327
327
|
}), a("components:node-appended", (u, c) => {
|
|
@@ -333,8 +333,8 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
}, [e, t, i]), n;
|
|
336
|
-
},
|
|
337
|
-
const n =
|
|
336
|
+
}, us = bn, vn = () => J(ln), ds = vn, wn = (e, t) => {
|
|
337
|
+
const n = Re(), o = I(), [r, i] = E(void 0), a = F(), l = e || n.type || "";
|
|
338
338
|
return w(() => {
|
|
339
339
|
if (l) {
|
|
340
340
|
let u;
|
|
@@ -351,8 +351,8 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
353
|
}, [a, l, t, o]), r;
|
|
354
|
-
},
|
|
355
|
-
const t =
|
|
354
|
+
}, ms = wn, xn = (e) => {
|
|
355
|
+
const t = _e(e), n = ne(), [o, r] = E({}), i = F();
|
|
356
356
|
return w(() => {
|
|
357
357
|
t && i.current && r(t.attributes.context);
|
|
358
358
|
}, [i, t]), w(() => {
|
|
@@ -368,11 +368,11 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
}, [i, n, t]), o;
|
|
371
|
-
},
|
|
372
|
-
const e =
|
|
371
|
+
}, $n = xn, En = () => J(mn), hs = En, kn = () => {
|
|
372
|
+
const e = ne(), t = Re(), [n, o] = E([]), [r, i] = E();
|
|
373
373
|
return w(() => {
|
|
374
374
|
if (e && t) {
|
|
375
|
-
const a = new
|
|
375
|
+
const a = new Vt(e).withId(t.id), l = e.actions(a, t.type || se());
|
|
376
376
|
i(l), n !== null && (n.forEach((u) => {
|
|
377
377
|
l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
|
|
378
378
|
}), o(null));
|
|
@@ -385,7 +385,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
385
385
|
reject: c
|
|
386
386
|
});
|
|
387
387
|
}) : r.dispatch(a, l);
|
|
388
|
-
},
|
|
388
|
+
}, ps = kn, A = (e, t, n = window, o = () => !0) => {
|
|
389
389
|
const r = R(() => {
|
|
390
390
|
});
|
|
391
391
|
w(() => {
|
|
@@ -398,10 +398,10 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
398
398
|
n.removeEventListener(e, a);
|
|
399
399
|
};
|
|
400
400
|
}, [e, n]);
|
|
401
|
-
},
|
|
401
|
+
}, Ln = (e) => {
|
|
402
402
|
const t = I(), { events: n } = (e || t).get("$widget");
|
|
403
403
|
return n;
|
|
404
|
-
},
|
|
404
|
+
}, Mn = Ln, Sn = () => {
|
|
405
405
|
const [e, t] = E(!1);
|
|
406
406
|
return w(() => {
|
|
407
407
|
const n = () => {
|
|
@@ -413,7 +413,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
413
413
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
414
414
|
};
|
|
415
415
|
}, []), e;
|
|
416
|
-
},
|
|
416
|
+
}, fs = Sn, Rn = (e, t) => {
|
|
417
417
|
const [n, o] = E(!1), r = _(
|
|
418
418
|
(a) => {
|
|
419
419
|
const { key: l } = a;
|
|
@@ -427,8 +427,8 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
427
427
|
[o]
|
|
428
428
|
);
|
|
429
429
|
return A("keydown", r, window), A("keyup", i, window), n;
|
|
430
|
-
},
|
|
431
|
-
const t =
|
|
430
|
+
}, ee = Rn, _n = (e) => {
|
|
431
|
+
const t = _e(e), n = ne(), [o, r] = E({}), i = F();
|
|
432
432
|
return w(() => {
|
|
433
433
|
t && i.current && r(t.attributes.layout);
|
|
434
434
|
}, [t, i]), w(() => {
|
|
@@ -444,13 +444,13 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
}, [n, i, t]), o;
|
|
447
|
-
},
|
|
447
|
+
}, gs = _n, Tn = (e) => {
|
|
448
448
|
const t = R();
|
|
449
449
|
return w(() => {
|
|
450
450
|
t.current = e;
|
|
451
451
|
}), t.current;
|
|
452
|
-
},
|
|
453
|
-
const [t, n] = E(), o = I(), r =
|
|
452
|
+
}, lt = Tn, zn = () => J(un), ys = zn, Dn = (e) => {
|
|
453
|
+
const [t, n] = E(), o = I(), r = F();
|
|
454
454
|
return w(() => {
|
|
455
455
|
let i;
|
|
456
456
|
const a = (e || o).get("$widget");
|
|
@@ -476,8 +476,8 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
476
476
|
i && i();
|
|
477
477
|
};
|
|
478
478
|
}, [r]), t;
|
|
479
|
-
},
|
|
480
|
-
const t = I(), n =
|
|
479
|
+
}, Cs = Dn, Hn = () => J(dn), ut = Hn, Bn = (e) => {
|
|
480
|
+
const t = I(), n = ut(), [o, r] = E({ name: "", params: {} }), i = F();
|
|
481
481
|
return w(() => {
|
|
482
482
|
const a = (e || t).get("$widget");
|
|
483
483
|
if (!a)
|
|
@@ -486,16 +486,16 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
486
486
|
return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
|
|
487
487
|
if (i.current) {
|
|
488
488
|
const { name: p, params: d } = m;
|
|
489
|
-
|
|
489
|
+
Ke(d), r({ name: p, params: d });
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
}, [i, e, t]), w(() => {
|
|
493
493
|
if (n && n.history && i.current) {
|
|
494
494
|
const a = n.getRouteData(), { name: l, params: u } = a;
|
|
495
|
-
|
|
495
|
+
Ke(u), r({ name: l, params: u });
|
|
496
496
|
}
|
|
497
497
|
}, [n, i]), o;
|
|
498
|
-
},
|
|
498
|
+
}, bs = Bn, dt = (e) => {
|
|
499
499
|
const t = R(), n = R(0);
|
|
500
500
|
let o;
|
|
501
501
|
const r = _(() => {
|
|
@@ -521,9 +521,9 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
521
521
|
},
|
|
522
522
|
[t, n]
|
|
523
523
|
);
|
|
524
|
-
return A("scroll", r, t.current, () => t.current && e), A("touchstart", i, t.current, () => t.current && e), A("touchmove", u, t.current, () => t.current && e), e ? [
|
|
525
|
-
},
|
|
526
|
-
overflow-y: ${
|
|
524
|
+
return A("scroll", r, t.current, () => t.current && e), A("touchstart", i, t.current, () => t.current && e), A("touchmove", u, t.current, () => t.current && e), e ? [Pn, t] : ["", t];
|
|
525
|
+
}, Pn = `
|
|
526
|
+
overflow-y: ${Ye() === Ee.Chrome || Ye() === Ee.EdgeChromium ? "overlay" : "auto"};
|
|
527
527
|
overflow-x: hidden;
|
|
528
528
|
-ms-overflow-style: none; /* IE 10+ */
|
|
529
529
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -550,20 +550,20 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
550
550
|
background-color: #7F7F7F;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
554
|
-
const [e, t] = E(null), n = I(), o =
|
|
553
|
+
`, Vn = () => {
|
|
554
|
+
const [e, t] = E(null), n = I(), o = F();
|
|
555
555
|
return w(() => {
|
|
556
556
|
n.get("settings").then((r) => {
|
|
557
557
|
o.current && t(r);
|
|
558
558
|
});
|
|
559
559
|
}, [o]), e;
|
|
560
|
-
},
|
|
560
|
+
}, vs = Vn, Nn = (e = !1) => {
|
|
561
561
|
const [t, n] = E(e), o = _((r) => {
|
|
562
562
|
n(typeof r == "boolean" ? r : (i) => !i);
|
|
563
563
|
}, []);
|
|
564
564
|
return [t, o];
|
|
565
|
-
},
|
|
566
|
-
const t = I(), n =
|
|
565
|
+
}, mt = Nn, ws = (e) => {
|
|
566
|
+
const t = I(), n = ne(), o = t.get("widgetDOMElement"), [r, i] = E(null), [a, l] = E(null), u = F();
|
|
567
567
|
w(() => {
|
|
568
568
|
if (n && u.current) {
|
|
569
569
|
const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
|
|
@@ -584,8 +584,8 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
584
584
|
[e, u, r, a]
|
|
585
585
|
);
|
|
586
586
|
A("transitionend", c, r), A("transitionend", c, a);
|
|
587
|
-
},
|
|
588
|
-
const r =
|
|
587
|
+
}, In = (e, t, n = [], o) => {
|
|
588
|
+
const r = Mn(o);
|
|
589
589
|
return w(() => {
|
|
590
590
|
if (r) {
|
|
591
591
|
const i = r.subscribe(e, t);
|
|
@@ -594,12 +594,12 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
}, [r].concat(n)), (i) => r == null ? void 0 : r.dispatch(e, i);
|
|
597
|
-
},
|
|
598
|
-
const n =
|
|
597
|
+
}, Ce = In, On = (e, t) => {
|
|
598
|
+
const n = Ce("widget:menu-toggled", (o, r) => {
|
|
599
599
|
r !== e && t();
|
|
600
600
|
});
|
|
601
601
|
return () => n(e);
|
|
602
|
-
},
|
|
602
|
+
}, Te = On, Wn = (o) => {
|
|
603
603
|
var r = o, { className: e, children: t } = r, n = S(r, ["className", "children"]);
|
|
604
604
|
return /* @__PURE__ */ s.createElement(
|
|
605
605
|
"span",
|
|
@@ -608,7 +608,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
608
608
|
}, V(n)),
|
|
609
609
|
t
|
|
610
610
|
);
|
|
611
|
-
},
|
|
611
|
+
}, ze = Wn, ht = (e) => L`
|
|
612
612
|
display: flex;
|
|
613
613
|
justify-content: center;
|
|
614
614
|
flex-direction: column;
|
|
@@ -617,7 +617,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { 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
|
+
`, Zn = (e) => {
|
|
621
621
|
var t, n, o;
|
|
622
622
|
return L`
|
|
623
623
|
cursor: pointer;
|
|
@@ -629,11 +629,11 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { 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
|
+
}, xs = (e) => {
|
|
633
633
|
var a;
|
|
634
634
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: i } = e;
|
|
635
635
|
return L`
|
|
636
|
-
${
|
|
636
|
+
${Zn(e)}
|
|
637
637
|
border: 1px solid ${o ? n : t};
|
|
638
638
|
background-color: ${o ? t : n};
|
|
639
639
|
|
|
@@ -663,27 +663,27 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
&:focus-visible {
|
|
666
|
-
${
|
|
666
|
+
${X(e)};
|
|
667
667
|
}
|
|
668
668
|
`}
|
|
669
669
|
`;
|
|
670
|
-
},
|
|
670
|
+
}, X = (e) => {
|
|
671
671
|
var t, n, o;
|
|
672
672
|
return L`
|
|
673
673
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
674
674
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
675
675
|
border-color: transparent;
|
|
676
676
|
`;
|
|
677
|
-
},
|
|
678
|
-
${
|
|
677
|
+
}, jn = (e) => L`
|
|
678
|
+
${X(e)}
|
|
679
679
|
text-decoration: underline;
|
|
680
|
-
`,
|
|
680
|
+
`, $s = (e) => {
|
|
681
681
|
var t;
|
|
682
682
|
return L`
|
|
683
|
-
${
|
|
683
|
+
${X(e)}
|
|
684
684
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
685
685
|
`;
|
|
686
|
-
},
|
|
686
|
+
}, De = C(ye)`
|
|
687
687
|
position: absolute;
|
|
688
688
|
top: ${(e) => {
|
|
689
689
|
var t;
|
|
@@ -703,7 +703,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
&:focus-visible {
|
|
706
|
-
${
|
|
706
|
+
${X}
|
|
707
707
|
padding: ${(e) => {
|
|
708
708
|
var t;
|
|
709
709
|
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
@@ -711,7 +711,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
711
711
|
height: 15px;
|
|
712
712
|
box-sizing: content-box;
|
|
713
713
|
}
|
|
714
|
-
`,
|
|
714
|
+
`, Xe = C(ze)`
|
|
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 rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
722
722
|
var t;
|
|
723
723
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
724
724
|
}};
|
|
725
|
-
`,
|
|
725
|
+
`, An = (e) => {
|
|
726
726
|
var t;
|
|
727
727
|
return L`
|
|
728
728
|
padding: 0;
|
|
@@ -744,7 +744,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
744
744
|
margin: 0;
|
|
745
745
|
}
|
|
746
746
|
`;
|
|
747
|
-
},
|
|
747
|
+
}, Es = (e) => {
|
|
748
748
|
var t, n, o, r;
|
|
749
749
|
return L`
|
|
750
750
|
> div {
|
|
@@ -760,7 +760,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
760
760
|
)}
|
|
761
761
|
}
|
|
762
762
|
> ul {
|
|
763
|
-
${
|
|
763
|
+
${An(e)}
|
|
764
764
|
}
|
|
765
765
|
${pe(e)(
|
|
766
766
|
"h1",
|
|
@@ -780,7 +780,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
780
780
|
`
|
|
781
781
|
)}
|
|
782
782
|
`;
|
|
783
|
-
},
|
|
783
|
+
}, ks = (e) => {
|
|
784
784
|
var t, n, o, r, i, a;
|
|
785
785
|
return L`
|
|
786
786
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -809,7 +809,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
809
809
|
a {
|
|
810
810
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
811
811
|
&:focus-visible {
|
|
812
|
-
${
|
|
812
|
+
${jn(e)};
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
|
|
@@ -835,7 +835,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
835
835
|
margin: 0;
|
|
836
836
|
}
|
|
837
837
|
`;
|
|
838
|
-
},
|
|
838
|
+
}, Fn = ({
|
|
839
839
|
elementId: e = "humany-portal-elements",
|
|
840
840
|
parent: t = document.body,
|
|
841
841
|
children: n
|
|
@@ -846,8 +846,8 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
846
846
|
});
|
|
847
847
|
return w(() => (t.appendChild(o), () => {
|
|
848
848
|
o.childElementCount <= 1 && t.removeChild(o);
|
|
849
|
-
}), [o]),
|
|
850
|
-
}, ie =
|
|
849
|
+
}), [o]), Wt(n, o);
|
|
850
|
+
}, ie = Fn, Kn = (l) => {
|
|
851
851
|
var u = l, {
|
|
852
852
|
text: e = "",
|
|
853
853
|
backgroundSize: t = "contain",
|
|
@@ -944,7 +944,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
944
944
|
case "caret-left":
|
|
945
945
|
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" }));
|
|
946
946
|
case "caret-up":
|
|
947
|
-
return /* @__PURE__ */ s.createElement(
|
|
947
|
+
return /* @__PURE__ */ s.createElement(qn, f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
948
948
|
case "caret-down":
|
|
949
949
|
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 14 14", style: h }, d), /* @__PURE__ */ s.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ s.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
950
950
|
case "back":
|
|
@@ -1330,7 +1330,7 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
1330
1330
|
}
|
|
1331
1331
|
case "FontAwesome":
|
|
1332
1332
|
return /* @__PURE__ */ s.createElement(
|
|
1333
|
-
|
|
1333
|
+
fo,
|
|
1334
1334
|
f({
|
|
1335
1335
|
className: i,
|
|
1336
1336
|
faIcon: m,
|
|
@@ -1348,9 +1348,9 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
1348
1348
|
e.substring(0, 2)
|
|
1349
1349
|
) : null;
|
|
1350
1350
|
}
|
|
1351
|
-
},
|
|
1351
|
+
}, qn = C.svg`
|
|
1352
1352
|
transform: rotate(180deg);
|
|
1353
|
-
`, ae =
|
|
1353
|
+
`, ae = Kn, Un = {
|
|
1354
1354
|
h1: "h1",
|
|
1355
1355
|
h2: "h2",
|
|
1356
1356
|
h3: "h3",
|
|
@@ -1359,12 +1359,12 @@ const rn = (e) => (t) => /* @__PURE__ */ s.createElement(nr, { attrs: t, htmlBod
|
|
|
1359
1359
|
h6: "h6",
|
|
1360
1360
|
p: "p",
|
|
1361
1361
|
span: "span"
|
|
1362
|
-
},
|
|
1363
|
-
const { typographyVariantMapping: r = {} } =
|
|
1364
|
-
return /* @__PURE__ */ s.createElement(
|
|
1365
|
-
},
|
|
1366
|
-
var
|
|
1367
|
-
const
|
|
1362
|
+
}, Yn = ({ variant: e, component: t, className: n, children: o }) => {
|
|
1363
|
+
const { typographyVariantMapping: r = {} } = $n(), i = f(f({}, Un), r), a = t || i[e] || "span";
|
|
1364
|
+
return /* @__PURE__ */ s.createElement(Xn, { className: n, as: a }, o);
|
|
1365
|
+
}, Xn = C.span``, re = Yn;
|
|
1366
|
+
var Qn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Qn || {});
|
|
1367
|
+
const Gn = 300, Jn = ({
|
|
1368
1368
|
className: e,
|
|
1369
1369
|
children: t,
|
|
1370
1370
|
header: n,
|
|
@@ -1376,14 +1376,14 @@ const to = 300, no = ({
|
|
|
1376
1376
|
type: "slide-in-bottom"
|
|
1377
1377
|
}
|
|
1378
1378
|
}) => {
|
|
1379
|
-
const { duration: u =
|
|
1379
|
+
const { duration: u = Gn } = l, c = R(), m = R(), [p, d] = dt(!0), [h, y] = mt(), x = lt(h), b = R(se());
|
|
1380
1380
|
w(() => {
|
|
1381
1381
|
o && o(h);
|
|
1382
1382
|
}, [h]);
|
|
1383
|
-
const
|
|
1383
|
+
const v = ee("Escape");
|
|
1384
1384
|
w(() => {
|
|
1385
|
-
|
|
1386
|
-
}, [
|
|
1385
|
+
v && y(!1);
|
|
1386
|
+
}, [v]), A(
|
|
1387
1387
|
"click",
|
|
1388
1388
|
(H) => {
|
|
1389
1389
|
const { target: T } = H;
|
|
@@ -1391,17 +1391,17 @@ const to = 300, no = ({
|
|
|
1391
1391
|
},
|
|
1392
1392
|
window
|
|
1393
1393
|
);
|
|
1394
|
-
const g =
|
|
1394
|
+
const g = Te(b.current, () => {
|
|
1395
1395
|
y(!1);
|
|
1396
1396
|
});
|
|
1397
|
-
|
|
1397
|
+
Ce("router:changed", () => {
|
|
1398
1398
|
y(!1);
|
|
1399
1399
|
}), w(() => {
|
|
1400
1400
|
h && c.current ? c.current.focus() : !h && m.current && x && m.current.focus();
|
|
1401
1401
|
}, [h, c.current, m.current]);
|
|
1402
|
-
const z =
|
|
1402
|
+
const z = so[l.type];
|
|
1403
1403
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
1404
|
-
|
|
1404
|
+
st,
|
|
1405
1405
|
{
|
|
1406
1406
|
in: h,
|
|
1407
1407
|
className: "humany-drawer-transition",
|
|
@@ -1417,14 +1417,14 @@ const to = 300, no = ({
|
|
|
1417
1417
|
className: M(
|
|
1418
1418
|
e,
|
|
1419
1419
|
"humany-drawer",
|
|
1420
|
-
`humany-drawer-${
|
|
1420
|
+
`humany-drawer-${b.current}`
|
|
1421
1421
|
),
|
|
1422
1422
|
clientHeight: document.body.clientHeight,
|
|
1423
1423
|
css: p,
|
|
1424
1424
|
ref: d
|
|
1425
1425
|
},
|
|
1426
1426
|
/* @__PURE__ */ s.createElement(
|
|
1427
|
-
|
|
1427
|
+
De,
|
|
1428
1428
|
{
|
|
1429
1429
|
onClick: () => y(!1),
|
|
1430
1430
|
tabIndex: 0,
|
|
@@ -1433,7 +1433,7 @@ const to = 300, no = ({
|
|
|
1433
1433
|
},
|
|
1434
1434
|
/* @__PURE__ */ s.createElement(ae, { symbol: { type: "Svg", content: "close" } })
|
|
1435
1435
|
),
|
|
1436
|
-
!!n && /* @__PURE__ */ s.createElement(
|
|
1436
|
+
!!n && /* @__PURE__ */ s.createElement(eo, { variant: "h1", className: "humany-drawer-header" }, n),
|
|
1437
1437
|
t
|
|
1438
1438
|
))
|
|
1439
1439
|
), s.cloneElement(r, {
|
|
@@ -1444,7 +1444,7 @@ const to = 300, no = ({
|
|
|
1444
1444
|
"aria-label": r.props.title,
|
|
1445
1445
|
"aria-expanded": h
|
|
1446
1446
|
}));
|
|
1447
|
-
},
|
|
1447
|
+
}, Ls = Jn, be = C.div`
|
|
1448
1448
|
font-family: ${(e) => {
|
|
1449
1449
|
var t;
|
|
1450
1450
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1461,7 +1461,7 @@ const to = 300, no = ({
|
|
|
1461
1461
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1462
1462
|
background: #ffffff;
|
|
1463
1463
|
${(e) => e.css && e.css}
|
|
1464
|
-
`,
|
|
1464
|
+
`, eo = C(re)`
|
|
1465
1465
|
padding: ${(e) => {
|
|
1466
1466
|
var t;
|
|
1467
1467
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1484,11 +1484,11 @@ const to = 300, no = ({
|
|
|
1484
1484
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1485
1485
|
}};
|
|
1486
1486
|
line-height: 1.2em;
|
|
1487
|
-
`,
|
|
1487
|
+
`, ve = (e) => L`
|
|
1488
1488
|
transition: ${e.duration}ms;
|
|
1489
|
-
`,
|
|
1489
|
+
`, to = C(be)`
|
|
1490
1490
|
max-height: 0;
|
|
1491
|
-
${
|
|
1491
|
+
${ve}
|
|
1492
1492
|
|
|
1493
1493
|
&.humany-drawer-transition-enter {
|
|
1494
1494
|
max-height: 0;
|
|
@@ -1503,8 +1503,8 @@ const to = 300, no = ({
|
|
|
1503
1503
|
&.humany-drawer-transition-exit-done {
|
|
1504
1504
|
max-height: 0;
|
|
1505
1505
|
}
|
|
1506
|
-
`,
|
|
1507
|
-
${
|
|
1506
|
+
`, no = C(be)`
|
|
1507
|
+
${ve}
|
|
1508
1508
|
transform: translateX(100%);
|
|
1509
1509
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1510
1510
|
|
|
@@ -1521,8 +1521,8 @@ const to = 300, no = ({
|
|
|
1521
1521
|
&.humany-drawer-transition-exit-done {
|
|
1522
1522
|
transform: translateX(100%);
|
|
1523
1523
|
}
|
|
1524
|
-
`,
|
|
1525
|
-
${
|
|
1524
|
+
`, oo = C(be)`
|
|
1525
|
+
${ve}
|
|
1526
1526
|
transform: translateX(-100%);
|
|
1527
1527
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1528
1528
|
|
|
@@ -1539,8 +1539,8 @@ const to = 300, no = ({
|
|
|
1539
1539
|
&.humany-drawer-transition-exit-done {
|
|
1540
1540
|
transform: translateX(-100%);
|
|
1541
1541
|
}
|
|
1542
|
-
`,
|
|
1543
|
-
${
|
|
1542
|
+
`, ro = C(be)`
|
|
1543
|
+
${ve}
|
|
1544
1544
|
bottom: unset;
|
|
1545
1545
|
top: 0;
|
|
1546
1546
|
height: 0;
|
|
@@ -1558,12 +1558,12 @@ const to = 300, no = ({
|
|
|
1558
1558
|
&.humany-drawer-transition-exit-done {
|
|
1559
1559
|
height: 0;
|
|
1560
1560
|
}
|
|
1561
|
-
`,
|
|
1562
|
-
["slide-in-bottom"]:
|
|
1563
|
-
["slide-in-right"]:
|
|
1564
|
-
["slide-in-left"]:
|
|
1565
|
-
["slide-in-top"]:
|
|
1566
|
-
},
|
|
1561
|
+
`, so = {
|
|
1562
|
+
["slide-in-bottom"]: to,
|
|
1563
|
+
["slide-in-right"]: no,
|
|
1564
|
+
["slide-in-left"]: oo,
|
|
1565
|
+
["slide-in-top"]: ro
|
|
1566
|
+
}, io = (e, t, n) => {
|
|
1567
1567
|
const [o, r] = E(0), [i, a] = E(0), l = _(
|
|
1568
1568
|
(u, c) => {
|
|
1569
1569
|
if (u.preventDefault(), c) {
|
|
@@ -1582,12 +1582,12 @@ const to = 300, no = ({
|
|
|
1582
1582
|
};
|
|
1583
1583
|
u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && r(c.x), c.y !== i && a(c.y);
|
|
1584
1584
|
}, [n, e, t]), [{ x: o, y: i }, l];
|
|
1585
|
-
},
|
|
1585
|
+
}, pt = io, ao = s.forwardRef(
|
|
1586
1586
|
(a, i) => {
|
|
1587
1587
|
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, r = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1588
1588
|
const u = R(), c = R(), m = R();
|
|
1589
|
-
|
|
1590
|
-
const p = R(se()), [d, h] = E(!1), y =
|
|
1589
|
+
Me(i, () => m.current, [m.current]);
|
|
1590
|
+
const p = R(se()), [d, h] = E(!1), y = lt(d), [{ x, y: b }, v] = pt(d, p.current, m.current), g = ee("Escape");
|
|
1591
1591
|
w(() => {
|
|
1592
1592
|
g && h(!1);
|
|
1593
1593
|
}, [g]), w(() => {
|
|
@@ -1599,19 +1599,19 @@ const to = 300, no = ({
|
|
|
1599
1599
|
!m.current || !Z || m.current !== Z && !m.current.contains(Z) && h(!1);
|
|
1600
1600
|
},
|
|
1601
1601
|
window
|
|
1602
|
-
),
|
|
1602
|
+
), Ce("router:changed", () => {
|
|
1603
1603
|
h(!1);
|
|
1604
1604
|
});
|
|
1605
|
-
const z =
|
|
1605
|
+
const z = Te(p.current, () => {
|
|
1606
1606
|
h(!1);
|
|
1607
1607
|
}), H = _(
|
|
1608
1608
|
(T) => {
|
|
1609
|
-
T.stopPropagation(),
|
|
1609
|
+
T.stopPropagation(), v(T, c.current), h(!d), z();
|
|
1610
1610
|
},
|
|
1611
|
-
[z,
|
|
1611
|
+
[z, v, h]
|
|
1612
1612
|
);
|
|
1613
1613
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, d && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
|
|
1614
|
-
|
|
1614
|
+
co,
|
|
1615
1615
|
k(f({
|
|
1616
1616
|
className: M(
|
|
1617
1617
|
"humany-dropdown",
|
|
@@ -1620,11 +1620,11 @@ const to = 300, no = ({
|
|
|
1620
1620
|
)
|
|
1621
1621
|
}, r), {
|
|
1622
1622
|
x,
|
|
1623
|
-
y:
|
|
1623
|
+
y: b,
|
|
1624
1624
|
ref: m
|
|
1625
1625
|
}),
|
|
1626
1626
|
/* @__PURE__ */ s.createElement(
|
|
1627
|
-
|
|
1627
|
+
De,
|
|
1628
1628
|
{
|
|
1629
1629
|
onClick: () => h(!1),
|
|
1630
1630
|
tabIndex: 0,
|
|
@@ -1641,8 +1641,8 @@ const to = 300, no = ({
|
|
|
1641
1641
|
"aria-expanded": d
|
|
1642
1642
|
}));
|
|
1643
1643
|
}
|
|
1644
|
-
),
|
|
1645
|
-
${
|
|
1644
|
+
), Ms = ao, co = C.div`
|
|
1645
|
+
${ht}
|
|
1646
1646
|
padding: ${(e) => {
|
|
1647
1647
|
var t;
|
|
1648
1648
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -1656,41 +1656,41 @@ const to = 300, no = ({
|
|
|
1656
1656
|
let t = "";
|
|
1657
1657
|
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, t;
|
|
1658
1658
|
}};
|
|
1659
|
-
`,
|
|
1659
|
+
`, lo = (t) => {
|
|
1660
1660
|
var e = S(t, []);
|
|
1661
|
-
return /* @__PURE__ */ s.createElement(
|
|
1662
|
-
},
|
|
1661
|
+
return /* @__PURE__ */ s.createElement(mo, f({}, e));
|
|
1662
|
+
}, uo = lo, mo = C.div`
|
|
1663
1663
|
display: none;
|
|
1664
|
-
`,
|
|
1664
|
+
`, Ss = P(
|
|
1665
1665
|
(a, i) => {
|
|
1666
1666
|
var l = a, { children: e, columns: t, gap: n, className: o } = l, r = S(l, ["children", "columns", "gap", "className"]);
|
|
1667
1667
|
return /* @__PURE__ */ s.createElement(
|
|
1668
|
-
|
|
1668
|
+
ho,
|
|
1669
1669
|
k(f(f({
|
|
1670
1670
|
className: M(o, "humany-grid"),
|
|
1671
1671
|
"data-columns": t,
|
|
1672
1672
|
"data-gap": n
|
|
1673
|
-
},
|
|
1673
|
+
}, Gt(r)), V(r)), {
|
|
1674
1674
|
ref: i
|
|
1675
1675
|
}),
|
|
1676
1676
|
e
|
|
1677
1677
|
);
|
|
1678
1678
|
}
|
|
1679
|
-
),
|
|
1679
|
+
), ho = C.div`
|
|
1680
1680
|
display: grid;
|
|
1681
1681
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1682
1682
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1683
1683
|
justify-content: center;
|
|
1684
1684
|
grid-auto-rows: max-content;
|
|
1685
|
-
${
|
|
1686
|
-
`,
|
|
1685
|
+
${Qt}
|
|
1686
|
+
`, ft = P(
|
|
1687
1687
|
(i, r) => {
|
|
1688
1688
|
var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
|
|
1689
1689
|
const l = I(), [u, c] = E();
|
|
1690
1690
|
return w(() => {
|
|
1691
|
-
const m =
|
|
1691
|
+
const m = nn(l, n), p = k(f(f({}, m), e), {
|
|
1692
1692
|
transform: f(f({}, m.transform), e == null ? void 0 : e.transform)
|
|
1693
|
-
}), d =
|
|
1693
|
+
}), d = en(n, p);
|
|
1694
1694
|
c(d);
|
|
1695
1695
|
}, [n, e]), /* @__PURE__ */ s.createElement(
|
|
1696
1696
|
"div",
|
|
@@ -1702,7 +1702,7 @@ const to = 300, no = ({
|
|
|
1702
1702
|
u
|
|
1703
1703
|
);
|
|
1704
1704
|
}
|
|
1705
|
-
),
|
|
1705
|
+
), po = (i) => {
|
|
1706
1706
|
var a = i, {
|
|
1707
1707
|
faIcon: e,
|
|
1708
1708
|
title: t,
|
|
@@ -1722,7 +1722,7 @@ const to = 300, no = ({
|
|
|
1722
1722
|
role: o
|
|
1723
1723
|
}, V(r))
|
|
1724
1724
|
);
|
|
1725
|
-
},
|
|
1725
|
+
}, fo = po, Rs = P(
|
|
1726
1726
|
(p, m) => {
|
|
1727
1727
|
var d = p, {
|
|
1728
1728
|
className: e = "",
|
|
@@ -1750,38 +1750,38 @@ const to = 300, no = ({
|
|
|
1750
1750
|
"type"
|
|
1751
1751
|
]);
|
|
1752
1752
|
const [h, y] = E(t), x = R();
|
|
1753
|
-
|
|
1753
|
+
Me(m, () => x.current), w(() => {
|
|
1754
1754
|
var g;
|
|
1755
1755
|
t && ((g = x == null ? void 0 : x.current) == null || g.focus());
|
|
1756
1756
|
}, [t, m, x]);
|
|
1757
|
-
const
|
|
1757
|
+
const b = (g, z) => {
|
|
1758
1758
|
y(g), n && n(g), i && g && z.target.select();
|
|
1759
|
-
},
|
|
1759
|
+
}, v = k(f({}, V(c)), {
|
|
1760
1760
|
disabled: l,
|
|
1761
1761
|
autoFocus: t,
|
|
1762
1762
|
type: u,
|
|
1763
1763
|
onKeyDown: (g) => {
|
|
1764
1764
|
g.key === "Enter" && h && o(g), g.key === "Escape" && h && r(g);
|
|
1765
1765
|
},
|
|
1766
|
-
onFocus: (g) =>
|
|
1767
|
-
onBlur: (g) =>
|
|
1766
|
+
onFocus: (g) => b(!0, g),
|
|
1767
|
+
onBlur: (g) => b(!1, g),
|
|
1768
1768
|
onChange: (g) => a(g.target.value || ""),
|
|
1769
1769
|
className: M(e, "humany-input"),
|
|
1770
1770
|
"data-type": u
|
|
1771
1771
|
});
|
|
1772
1772
|
return u !== "textarea" ? /* @__PURE__ */ s.createElement(
|
|
1773
1773
|
"input",
|
|
1774
|
-
k(f({},
|
|
1774
|
+
k(f({}, v), {
|
|
1775
1775
|
ref: x
|
|
1776
1776
|
})
|
|
1777
1777
|
) : /* @__PURE__ */ s.createElement(
|
|
1778
1778
|
"textarea",
|
|
1779
|
-
k(f({},
|
|
1779
|
+
k(f({}, v), {
|
|
1780
1780
|
ref: x
|
|
1781
1781
|
})
|
|
1782
1782
|
);
|
|
1783
1783
|
}
|
|
1784
|
-
),
|
|
1784
|
+
), go = P(
|
|
1785
1785
|
(a, i) => {
|
|
1786
1786
|
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, r = S(l, ["className", "items", "renderItem", "renderLi"]);
|
|
1787
1787
|
return /* @__PURE__ */ s.createElement(
|
|
@@ -1797,7 +1797,7 @@ const to = 300, no = ({
|
|
|
1797
1797
|
)
|
|
1798
1798
|
);
|
|
1799
1799
|
}
|
|
1800
|
-
),
|
|
1800
|
+
), yo = P(
|
|
1801
1801
|
(u, l) => {
|
|
1802
1802
|
var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1803
1803
|
return /* @__PURE__ */ s.createElement(
|
|
@@ -1808,11 +1808,11 @@ const to = 300, no = ({
|
|
|
1808
1808
|
ref: l
|
|
1809
1809
|
}),
|
|
1810
1810
|
n ? /* @__PURE__ */ s.createElement(re, { variant: "h1" }, i ? /* @__PURE__ */ s.createElement(ae, { symbol: i }) : null, n) : null,
|
|
1811
|
-
t ? /* @__PURE__ */ s.createElement(
|
|
1812
|
-
e ? /* @__PURE__ */ s.createElement(
|
|
1811
|
+
t ? /* @__PURE__ */ s.createElement(ft, { html: t, htmlParseInstruction: r }) : null,
|
|
1812
|
+
e ? /* @__PURE__ */ s.createElement(ze, null, e) : null
|
|
1813
1813
|
);
|
|
1814
1814
|
}
|
|
1815
|
-
),
|
|
1815
|
+
), Co = P(
|
|
1816
1816
|
(h, d) => {
|
|
1817
1817
|
var y = h, {
|
|
1818
1818
|
header: e,
|
|
@@ -1847,12 +1847,12 @@ const to = 300, no = ({
|
|
|
1847
1847
|
}, V(p)), {
|
|
1848
1848
|
ref: d
|
|
1849
1849
|
}),
|
|
1850
|
-
t || (e || n || o ? /* @__PURE__ */ s.createElement(
|
|
1851
|
-
l.length ? /* @__PURE__ */ s.createElement(
|
|
1850
|
+
t || (e || n || o ? /* @__PURE__ */ s.createElement(yo, { symbol: a, header: e, text: n, html: o }) : null),
|
|
1851
|
+
l.length ? /* @__PURE__ */ s.createElement(go, f({ items: l, renderItem: u, renderLi: c }, m)) : null,
|
|
1852
1852
|
i
|
|
1853
1853
|
);
|
|
1854
1854
|
}
|
|
1855
|
-
),
|
|
1855
|
+
), bo = ({
|
|
1856
1856
|
className: e = "",
|
|
1857
1857
|
tree: t,
|
|
1858
1858
|
renderItem: n,
|
|
@@ -1863,31 +1863,31 @@ const to = 300, no = ({
|
|
|
1863
1863
|
liProps: l
|
|
1864
1864
|
}) => {
|
|
1865
1865
|
const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ s.createElement(
|
|
1866
|
-
|
|
1866
|
+
Co,
|
|
1867
1867
|
{
|
|
1868
1868
|
className: M(`humany-item-tree-level-${d}`),
|
|
1869
1869
|
items: p,
|
|
1870
1870
|
ulProps: a,
|
|
1871
1871
|
renderItem: (h) => {
|
|
1872
|
-
const { id: y, selected: x, items:
|
|
1873
|
-
return !i && !
|
|
1872
|
+
const { id: y, selected: x, items: b, matches: v } = h, g = x && c(b);
|
|
1873
|
+
return !i && !v ? null : /* @__PURE__ */ s.createElement(
|
|
1874
1874
|
"li",
|
|
1875
1875
|
k(f({}, V(l)), {
|
|
1876
1876
|
key: y,
|
|
1877
1877
|
className: "humany-item-tree-item"
|
|
1878
1878
|
}),
|
|
1879
1879
|
n && n(h, d, g),
|
|
1880
|
-
|
|
1880
|
+
b && (r || g) && m(b, d + 1)
|
|
1881
1881
|
);
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
1884
|
);
|
|
1885
1885
|
return /* @__PURE__ */ s.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
|
|
1886
|
-
},
|
|
1886
|
+
}, _s = bo, vo = P(
|
|
1887
1887
|
(u, l) => {
|
|
1888
1888
|
var c = u, { className: e, onClick: t = () => {
|
|
1889
1889
|
}, name: n = "", to: o = "", params: r = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1890
|
-
const m =
|
|
1890
|
+
const m = ut(), p = I();
|
|
1891
1891
|
if (!m)
|
|
1892
1892
|
return null;
|
|
1893
1893
|
let d = "";
|
|
@@ -1900,21 +1900,21 @@ const to = 300, no = ({
|
|
|
1900
1900
|
ref: null
|
|
1901
1901
|
});
|
|
1902
1902
|
if (n) {
|
|
1903
|
-
if (!(m.routes || []).find((
|
|
1904
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1905
|
-
|
|
1903
|
+
if (!(m.routes || []).find((v) => v.name === n))
|
|
1904
|
+
return process.env.NODE_ENV !== "production" && we.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ s.createElement(
|
|
1905
|
+
xe,
|
|
1906
1906
|
k(f({}, h), {
|
|
1907
|
-
onClick: (
|
|
1908
|
-
t(
|
|
1907
|
+
onClick: (v) => {
|
|
1908
|
+
t(v), v.preventDefault(), process.env.NODE_ENV !== "production" && we.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
1909
1909
|
}
|
|
1910
1910
|
}),
|
|
1911
1911
|
i
|
|
1912
1912
|
);
|
|
1913
|
-
const
|
|
1913
|
+
const b = Object.keys(r).reduce((v, g) => (v[g] = typeof r[g] == "string" ? encodeURIComponent(r[g]) : r[g], v), {});
|
|
1914
1914
|
try {
|
|
1915
|
-
d = m.generate(n,
|
|
1916
|
-
} catch (
|
|
1917
|
-
return /* @__PURE__ */ s.createElement(
|
|
1915
|
+
d = m.generate(n, b || {});
|
|
1916
|
+
} catch (v) {
|
|
1917
|
+
return /* @__PURE__ */ s.createElement(xe, f({}, h), i);
|
|
1918
1918
|
}
|
|
1919
1919
|
d && m.settings.mode && m.settings.mode === qe.browser && d[0] !== "/" && (d = `/${d}`);
|
|
1920
1920
|
} else if (o && m.history)
|
|
@@ -1925,18 +1925,18 @@ const to = 300, no = ({
|
|
|
1925
1925
|
state: void 0
|
|
1926
1926
|
});
|
|
1927
1927
|
else
|
|
1928
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1928
|
+
return process.env.NODE_ENV !== "production" && we.warn(
|
|
1929
1929
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
1930
1930
|
), null;
|
|
1931
1931
|
if (m.settings && m.settings.mode === qe.scopedHash) {
|
|
1932
1932
|
const y = p.get("$widget").name;
|
|
1933
|
-
d =
|
|
1933
|
+
d = Zt(d, y);
|
|
1934
1934
|
}
|
|
1935
|
-
return h.as ? /* @__PURE__ */ s.createElement(
|
|
1935
|
+
return h.as ? /* @__PURE__ */ s.createElement(wo, k(f({}, h), { as: h.as }), i) : /* @__PURE__ */ s.createElement(xe, k(f({}, h), { to: d }), i);
|
|
1936
1936
|
}
|
|
1937
|
-
),
|
|
1937
|
+
), wo = C.span``, He = P(
|
|
1938
1938
|
(x, y) => {
|
|
1939
|
-
var
|
|
1939
|
+
var b = x, {
|
|
1940
1940
|
className: e,
|
|
1941
1941
|
disabled: t = !1,
|
|
1942
1942
|
role: n = "link",
|
|
@@ -1952,7 +1952,7 @@ const to = 300, no = ({
|
|
|
1952
1952
|
target: m,
|
|
1953
1953
|
routeName: p,
|
|
1954
1954
|
params: d
|
|
1955
|
-
} =
|
|
1955
|
+
} = b, h = S(b, [
|
|
1956
1956
|
"className",
|
|
1957
1957
|
"disabled",
|
|
1958
1958
|
"role",
|
|
@@ -1967,7 +1967,7 @@ const to = 300, no = ({
|
|
|
1967
1967
|
"routeName",
|
|
1968
1968
|
"params"
|
|
1969
1969
|
]);
|
|
1970
|
-
const
|
|
1970
|
+
const v = {
|
|
1971
1971
|
title: a,
|
|
1972
1972
|
disabled: t,
|
|
1973
1973
|
role: n,
|
|
@@ -1990,36 +1990,36 @@ const to = 300, no = ({
|
|
|
1990
1990
|
}
|
|
1991
1991
|
};
|
|
1992
1992
|
return p ? /* @__PURE__ */ s.createElement(
|
|
1993
|
-
|
|
1993
|
+
xo,
|
|
1994
1994
|
k(f(f({
|
|
1995
1995
|
name: p,
|
|
1996
1996
|
params: d
|
|
1997
|
-
},
|
|
1997
|
+
}, v), V(h)), {
|
|
1998
1998
|
ref: y
|
|
1999
1999
|
}),
|
|
2000
2000
|
c
|
|
2001
2001
|
) : /* @__PURE__ */ s.createElement(
|
|
2002
|
-
|
|
2002
|
+
$o,
|
|
2003
2003
|
k(f(f({
|
|
2004
2004
|
href: u,
|
|
2005
2005
|
target: m
|
|
2006
|
-
},
|
|
2006
|
+
}, v), V(h)), {
|
|
2007
2007
|
ref: y
|
|
2008
2008
|
}),
|
|
2009
2009
|
c
|
|
2010
2010
|
);
|
|
2011
2011
|
}
|
|
2012
|
-
),
|
|
2012
|
+
), xo = C(vo)`
|
|
2013
2013
|
${(e) => e.disabled ? `
|
|
2014
2014
|
pointer-events: none;
|
|
2015
2015
|
opacity: .7;
|
|
2016
2016
|
` : "cursor: pointer;"}
|
|
2017
|
-
`,
|
|
2017
|
+
`, $o = C.a`
|
|
2018
2018
|
${(e) => e.disabled ? `
|
|
2019
2019
|
pointer-events: none;
|
|
2020
2020
|
opacity: .7;
|
|
2021
2021
|
` : "cursor: pointer;"}
|
|
2022
|
-
`,
|
|
2022
|
+
`, Eo = (i) => {
|
|
2023
2023
|
var a = i, {
|
|
2024
2024
|
visible: e,
|
|
2025
2025
|
duration: t = 500,
|
|
@@ -2039,7 +2039,7 @@ const to = 300, no = ({
|
|
|
2039
2039
|
[o]
|
|
2040
2040
|
);
|
|
2041
2041
|
return /* @__PURE__ */ s.createElement(
|
|
2042
|
-
|
|
2042
|
+
st,
|
|
2043
2043
|
{
|
|
2044
2044
|
in: e,
|
|
2045
2045
|
className: "humany-overlay-transition",
|
|
@@ -2048,7 +2048,7 @@ const to = 300, no = ({
|
|
|
2048
2048
|
timeout: t
|
|
2049
2049
|
},
|
|
2050
2050
|
/* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
|
|
2051
|
-
|
|
2051
|
+
ko,
|
|
2052
2052
|
f({
|
|
2053
2053
|
className: "humany-overlay",
|
|
2054
2054
|
duration: t,
|
|
@@ -2058,7 +2058,7 @@ const to = 300, no = ({
|
|
|
2058
2058
|
n
|
|
2059
2059
|
))
|
|
2060
2060
|
);
|
|
2061
|
-
},
|
|
2061
|
+
}, ko = C.div`
|
|
2062
2062
|
background: rgba(0, 0, 0, 0.6);
|
|
2063
2063
|
min-width: 100%;
|
|
2064
2064
|
min-height: 100%;
|
|
@@ -2088,11 +2088,11 @@ const to = 300, no = ({
|
|
|
2088
2088
|
&.humany-overlay-transition-exit-done {
|
|
2089
2089
|
opacity: 0;
|
|
2090
2090
|
}
|
|
2091
|
-
`,
|
|
2091
|
+
`, gt = Eo, Lo = tt`
|
|
2092
2092
|
100% {
|
|
2093
2093
|
transform: rotate(360deg);
|
|
2094
2094
|
}
|
|
2095
|
-
`,
|
|
2095
|
+
`, Mo = tt`
|
|
2096
2096
|
0% {
|
|
2097
2097
|
stroke-dasharray: 1, 200;
|
|
2098
2098
|
stroke-dashoffset: 0;
|
|
@@ -2105,8 +2105,8 @@ const to = 300, no = ({
|
|
|
2105
2105
|
stroke-dasharray: 89, 200;
|
|
2106
2106
|
stroke-dashoffset: -124px;
|
|
2107
2107
|
}
|
|
2108
|
-
`,
|
|
2109
|
-
animation: ${
|
|
2108
|
+
`, So = C.svg`
|
|
2109
|
+
animation: ${Lo} 2s linear infinite;
|
|
2110
2110
|
height: 100%;
|
|
2111
2111
|
transform-origin: center center;
|
|
2112
2112
|
width: 100%;
|
|
@@ -2117,7 +2117,7 @@ const to = 300, no = ({
|
|
|
2117
2117
|
right: 0;
|
|
2118
2118
|
margin: auto;
|
|
2119
2119
|
transition: 200ms ease-out opacity;
|
|
2120
|
-
`,
|
|
2120
|
+
`, Ro = C.div`
|
|
2121
2121
|
position: absolute;
|
|
2122
2122
|
top: 0;
|
|
2123
2123
|
bottom: 0;
|
|
@@ -2135,7 +2135,7 @@ const to = 300, no = ({
|
|
|
2135
2135
|
svg {
|
|
2136
2136
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2137
2137
|
}
|
|
2138
|
-
`,
|
|
2138
|
+
`, _o = C.div`
|
|
2139
2139
|
position: relative;
|
|
2140
2140
|
margin: 0 auto;
|
|
2141
2141
|
width: 100px;
|
|
@@ -2144,18 +2144,18 @@ const to = 300, no = ({
|
|
|
2144
2144
|
display: block;
|
|
2145
2145
|
padding-top: 100%;
|
|
2146
2146
|
}
|
|
2147
|
-
`,
|
|
2147
|
+
`, To = C.circle`
|
|
2148
2148
|
stroke-dasharray: 1, 200;
|
|
2149
2149
|
stroke-dashoffset: 0;
|
|
2150
|
-
animation: ${
|
|
2150
|
+
animation: ${Mo} 1.5s ease-in-out infinite;
|
|
2151
2151
|
stroke-linecap: round;
|
|
2152
2152
|
stroke: ${(e) => {
|
|
2153
2153
|
var t;
|
|
2154
2154
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2155
2155
|
}};
|
|
2156
2156
|
stroke-width: 2px;
|
|
2157
|
-
`,
|
|
2158
|
-
|
|
2157
|
+
`, zo = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ s.createElement(Ro, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ s.createElement(_o, { className: "humany-spinner" }, /* @__PURE__ */ s.createElement(So, { viewBox: "25 25 50 50" }, /* @__PURE__ */ s.createElement(
|
|
2158
|
+
To,
|
|
2159
2159
|
{
|
|
2160
2160
|
cx: "50",
|
|
2161
2161
|
cy: "50",
|
|
@@ -2164,7 +2164,7 @@ const to = 300, no = ({
|
|
|
2164
2164
|
"stroke-width": "2",
|
|
2165
2165
|
"stroke-miterlimit": "10"
|
|
2166
2166
|
}
|
|
2167
|
-
)))),
|
|
2167
|
+
)))), Do = zo, Ho = (r) => {
|
|
2168
2168
|
var i = r, {
|
|
2169
2169
|
zoomState: e,
|
|
2170
2170
|
image: t,
|
|
@@ -2174,8 +2174,8 @@ const to = 300, no = ({
|
|
|
2174
2174
|
"image",
|
|
2175
2175
|
"changeZoom"
|
|
2176
2176
|
]);
|
|
2177
|
-
var
|
|
2178
|
-
const a = R(null), [l, u] = E(!1), [c, m] = E(!1),
|
|
2177
|
+
var v;
|
|
2178
|
+
const a = R(null), [l, u] = E(!1), [c, m] = E(!1), b = o.style || {}, { width: p, height: d } = b, h = S(b, ["width", "height"]), y = _(() => {
|
|
2179
2179
|
const g = a.current;
|
|
2180
2180
|
if (g) {
|
|
2181
2181
|
const z = window.innerWidth / g.width, H = window.innerHeight / g.height, T = Math.min(z, H);
|
|
@@ -2196,8 +2196,8 @@ const to = 300, no = ({
|
|
|
2196
2196
|
}, [e, a, l, t.src]);
|
|
2197
2197
|
return w(() => (u(!1), function() {
|
|
2198
2198
|
m(!1);
|
|
2199
|
-
}), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
2200
|
-
|
|
2199
|
+
}), [t.src]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(Bo, { loading: !l }), /* @__PURE__ */ s.createElement(
|
|
2200
|
+
Po,
|
|
2201
2201
|
k(f({
|
|
2202
2202
|
onLoad: () => {
|
|
2203
2203
|
u(!0);
|
|
@@ -2206,17 +2206,17 @@ const to = 300, no = ({
|
|
|
2206
2206
|
imageSize: x,
|
|
2207
2207
|
draggable: "false"
|
|
2208
2208
|
}, o), {
|
|
2209
|
-
alt: ((
|
|
2209
|
+
alt: ((v = o.alt) == null ? void 0 : v.toString()) || "",
|
|
2210
2210
|
style: h,
|
|
2211
2211
|
src: t.src,
|
|
2212
2212
|
loaded: l
|
|
2213
2213
|
})
|
|
2214
|
-
), /* @__PURE__ */ s.createElement(
|
|
2215
|
-
},
|
|
2214
|
+
), /* @__PURE__ */ s.createElement(Vo, null));
|
|
2215
|
+
}, Bo = C(Do)`
|
|
2216
2216
|
svg circle {
|
|
2217
2217
|
stroke: #ffffff;
|
|
2218
2218
|
}
|
|
2219
|
-
`,
|
|
2219
|
+
`, Po = C.img`
|
|
2220
2220
|
transform: none;
|
|
2221
2221
|
|
|
2222
2222
|
${(e) => e.imageSize && L`
|
|
@@ -2227,29 +2227,29 @@ const to = 300, no = ({
|
|
|
2227
2227
|
vertical-align: middle;
|
|
2228
2228
|
position: relative;
|
|
2229
2229
|
${(e) => !e.loaded && "display:none;"}
|
|
2230
|
-
`,
|
|
2230
|
+
`, Vo = C.div`
|
|
2231
2231
|
height: 100%;
|
|
2232
2232
|
display: inline-block;
|
|
2233
2233
|
vertical-align: middle;
|
|
2234
|
-
`,
|
|
2234
|
+
`, No = Ho, Io = () => {
|
|
2235
2235
|
const e = R(), [t, n] = E(!0), o = _(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2236
2236
|
n(!1);
|
|
2237
2237
|
}, 3e3), () => {
|
|
2238
2238
|
e.current && clearTimeout(e.current);
|
|
2239
2239
|
}), [t, e]);
|
|
2240
2240
|
return [t, o];
|
|
2241
|
-
},
|
|
2242
|
-
var
|
|
2243
|
-
const n =
|
|
2241
|
+
}, Oo = ({ attrs: e, htmlBody: t }) => {
|
|
2242
|
+
var We;
|
|
2243
|
+
const n = ee("Escape"), o = ee("ArrowLeft"), r = ee("ArrowRight"), [i, a] = E(1), [l, u] = E({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = E(!1), [p, d] = Io(), [h, y] = E(null), [x, b] = E(null), v = R(null), g = R(null), z = R(null), H = R(null);
|
|
2244
2244
|
w(() => {
|
|
2245
2245
|
n && y(null);
|
|
2246
2246
|
}, [n]), w(() => {
|
|
2247
2247
|
a(1);
|
|
2248
2248
|
}, [h]), w(() => {
|
|
2249
|
-
var
|
|
2249
|
+
var K, q;
|
|
2250
2250
|
if (h === null || g.current === null)
|
|
2251
2251
|
return;
|
|
2252
|
-
const $ = g.current.firstElementChild, D = (
|
|
2252
|
+
const $ = g.current.firstElementChild, D = (K = z.current) == null ? void 0 : K.querySelector(".nav-left"), j = (q = z.current) == null ? void 0 : q.querySelector(".nav-right");
|
|
2253
2253
|
if (x === "Right")
|
|
2254
2254
|
le && j ? j.focus() : ce && D && D.focus();
|
|
2255
2255
|
else if (x === "Left")
|
|
@@ -2262,62 +2262,62 @@ const to = 300, no = ({
|
|
|
2262
2262
|
}, [h, g, z, x]), w(() => {
|
|
2263
2263
|
if (o) {
|
|
2264
2264
|
if (ce)
|
|
2265
|
-
return
|
|
2265
|
+
return Ie();
|
|
2266
2266
|
} else if (r && le)
|
|
2267
|
-
return
|
|
2267
|
+
return Oe();
|
|
2268
2268
|
}, [o, r]);
|
|
2269
2269
|
const T = he(() => {
|
|
2270
2270
|
const $ = document.createElement("div");
|
|
2271
2271
|
$.innerHTML = t || "";
|
|
2272
2272
|
const D = $.getElementsByTagName("img");
|
|
2273
|
-
return Array.from(D).reduce((
|
|
2274
|
-
const
|
|
2275
|
-
if (
|
|
2276
|
-
const
|
|
2277
|
-
src:
|
|
2278
|
-
originalWidth:
|
|
2279
|
-
originalHeight:
|
|
2273
|
+
return Array.from(D).reduce((K, q) => {
|
|
2274
|
+
const Ze = q.getAttribute("src"), Lt = q.height || Number.parseInt(q.style.height, 10), Mt = q.width || Number.parseInt(q.style.width, 10);
|
|
2275
|
+
if (Ze) {
|
|
2276
|
+
const St = {
|
|
2277
|
+
src: Ze,
|
|
2278
|
+
originalWidth: Mt,
|
|
2279
|
+
originalHeight: Lt
|
|
2280
2280
|
};
|
|
2281
|
-
|
|
2281
|
+
K.push(St);
|
|
2282
2282
|
}
|
|
2283
|
-
return
|
|
2283
|
+
return K;
|
|
2284
2284
|
}, []);
|
|
2285
2285
|
}, [t]), Z = _(() => {
|
|
2286
2286
|
const { src: $ } = e;
|
|
2287
2287
|
if ($) {
|
|
2288
|
-
const D = T.findIndex((j,
|
|
2288
|
+
const D = T.findIndex((j, K) => j.src === $);
|
|
2289
2289
|
y(D);
|
|
2290
2290
|
}
|
|
2291
|
-
}, [T, e]),
|
|
2291
|
+
}, [T, e]), vt = _(($) => {
|
|
2292
2292
|
y(null);
|
|
2293
|
-
}, []),
|
|
2293
|
+
}, []), Ne = _(
|
|
2294
2294
|
($) => {
|
|
2295
2295
|
a($ ? i + i * 0.25 : i - i * 0.25);
|
|
2296
2296
|
},
|
|
2297
2297
|
[a, i]
|
|
2298
|
-
),
|
|
2298
|
+
), wt = _(() => {
|
|
2299
2299
|
if (h !== null) {
|
|
2300
2300
|
const { src: $ } = T[h];
|
|
2301
2301
|
$ && window.open($, "_self");
|
|
2302
2302
|
}
|
|
2303
|
-
}, [T, h]),
|
|
2303
|
+
}, [T, h]), xt = _(
|
|
2304
2304
|
($) => {
|
|
2305
2305
|
const D = H.current;
|
|
2306
2306
|
D && (u({ top: D.scrollTop, left: D.scrollLeft, x: $.clientX, y: $.clientY }), m(!0));
|
|
2307
2307
|
},
|
|
2308
2308
|
[H]
|
|
2309
|
-
),
|
|
2309
|
+
), $t = _(
|
|
2310
2310
|
($) => {
|
|
2311
2311
|
const D = H.current;
|
|
2312
2312
|
if (D && c) {
|
|
2313
|
-
const j = $.clientX - l.x,
|
|
2314
|
-
D.scrollTop = l.top -
|
|
2313
|
+
const j = $.clientX - l.x, K = $.clientY - l.y;
|
|
2314
|
+
D.scrollTop = l.top - K, D.scrollLeft = l.left - j;
|
|
2315
2315
|
}
|
|
2316
2316
|
},
|
|
2317
2317
|
[c, l]
|
|
2318
|
-
),
|
|
2318
|
+
), Et = ($) => {
|
|
2319
2319
|
$.preventDefault(), m(!1);
|
|
2320
|
-
},
|
|
2320
|
+
}, kt = he(() => {
|
|
2321
2321
|
if (H.current) {
|
|
2322
2322
|
const $ = H.current.getElementsByTagName("img");
|
|
2323
2323
|
if ($ && $.length) {
|
|
@@ -2326,27 +2326,27 @@ const to = 300, no = ({
|
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
2328
|
return !1;
|
|
2329
|
-
}, [H, i]),
|
|
2330
|
-
h !== null && (
|
|
2331
|
-
},
|
|
2332
|
-
h !== null && (
|
|
2329
|
+
}, [H, i]), Ie = () => {
|
|
2330
|
+
h !== null && (b("Left"), y(h - 1));
|
|
2331
|
+
}, Oe = () => {
|
|
2332
|
+
h !== null && (b("Right"), y(h + 1));
|
|
2333
2333
|
}, ce = h !== null && h > 0 && T.length > 1, le = h !== null && T.length - 1 > h;
|
|
2334
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
2335
|
-
|
|
2334
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(gt, { visible: h !== null, onClick: vt }, /* @__PURE__ */ s.createElement(
|
|
2335
|
+
Uo,
|
|
2336
2336
|
{
|
|
2337
2337
|
onMouseDown: () => d(),
|
|
2338
2338
|
onMouseMove: () => d(),
|
|
2339
2339
|
onTouchStart: () => d(),
|
|
2340
2340
|
onKeyDown: () => d()
|
|
2341
2341
|
},
|
|
2342
|
-
/* @__PURE__ */ s.createElement(
|
|
2343
|
-
|
|
2342
|
+
/* @__PURE__ */ s.createElement(Yo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
|
|
2343
|
+
Ao,
|
|
2344
2344
|
{
|
|
2345
2345
|
ref: g,
|
|
2346
2346
|
buttons: [
|
|
2347
2347
|
{
|
|
2348
2348
|
id: "download",
|
|
2349
|
-
onClick:
|
|
2349
|
+
onClick: wt,
|
|
2350
2350
|
icon: "download",
|
|
2351
2351
|
ariaLabel: "Download image"
|
|
2352
2352
|
},
|
|
@@ -2360,17 +2360,17 @@ const to = 300, no = ({
|
|
|
2360
2360
|
}
|
|
2361
2361
|
)),
|
|
2362
2362
|
/* @__PURE__ */ s.createElement(
|
|
2363
|
-
|
|
2363
|
+
Qo,
|
|
2364
2364
|
{
|
|
2365
2365
|
scrolling: c.toString(),
|
|
2366
|
-
isDraggable:
|
|
2366
|
+
isDraggable: kt.toString(),
|
|
2367
2367
|
ref: H,
|
|
2368
|
-
onMouseMove:
|
|
2369
|
-
onMouseDown:
|
|
2370
|
-
onMouseUp:
|
|
2368
|
+
onMouseMove: $t,
|
|
2369
|
+
onMouseDown: xt,
|
|
2370
|
+
onMouseUp: Et
|
|
2371
2371
|
},
|
|
2372
2372
|
h !== null && /* @__PURE__ */ s.createElement(
|
|
2373
|
-
|
|
2373
|
+
No,
|
|
2374
2374
|
k(f({
|
|
2375
2375
|
changeZoom: ($) => {
|
|
2376
2376
|
a($);
|
|
@@ -2382,14 +2382,14 @@ const to = 300, no = ({
|
|
|
2382
2382
|
)
|
|
2383
2383
|
),
|
|
2384
2384
|
/* @__PURE__ */ s.createElement(
|
|
2385
|
-
|
|
2385
|
+
Ko,
|
|
2386
2386
|
{
|
|
2387
2387
|
ref: z,
|
|
2388
2388
|
show: p.toString(),
|
|
2389
2389
|
buttons: [
|
|
2390
2390
|
{
|
|
2391
2391
|
id: "previous",
|
|
2392
|
-
onClick:
|
|
2392
|
+
onClick: Ie,
|
|
2393
2393
|
icon: "caret-left",
|
|
2394
2394
|
circle: !0,
|
|
2395
2395
|
show: ce,
|
|
@@ -2398,7 +2398,7 @@ const to = 300, no = ({
|
|
|
2398
2398
|
},
|
|
2399
2399
|
{
|
|
2400
2400
|
id: "next",
|
|
2401
|
-
onClick:
|
|
2401
|
+
onClick: Oe,
|
|
2402
2402
|
icon: "caret-right",
|
|
2403
2403
|
circle: !0,
|
|
2404
2404
|
show: le,
|
|
@@ -2408,40 +2408,40 @@ const to = 300, no = ({
|
|
|
2408
2408
|
]
|
|
2409
2409
|
}
|
|
2410
2410
|
),
|
|
2411
|
-
/* @__PURE__ */ s.createElement(
|
|
2412
|
-
|
|
2411
|
+
/* @__PURE__ */ s.createElement(Xo, { show: p.toString() }, /* @__PURE__ */ s.createElement(
|
|
2412
|
+
Fo,
|
|
2413
2413
|
{
|
|
2414
2414
|
buttons: [
|
|
2415
2415
|
{
|
|
2416
2416
|
id: "zoom-out",
|
|
2417
|
-
onClick: () =>
|
|
2417
|
+
onClick: () => Ne(!1),
|
|
2418
2418
|
icon: "zoom-out",
|
|
2419
2419
|
ariaLabel: "Zoom out"
|
|
2420
2420
|
},
|
|
2421
2421
|
{
|
|
2422
2422
|
id: "zoom-in",
|
|
2423
|
-
onClick: () =>
|
|
2423
|
+
onClick: () => Ne(!0),
|
|
2424
2424
|
icon: "zoom-in",
|
|
2425
2425
|
ariaLabel: "Zoom in"
|
|
2426
2426
|
}
|
|
2427
2427
|
]
|
|
2428
2428
|
}
|
|
2429
|
-
), /* @__PURE__ */ s.createElement(
|
|
2429
|
+
), /* @__PURE__ */ s.createElement(qo, { variant: "span" }, Math.trunc(i * 100), "%"))
|
|
2430
2430
|
)), /* @__PURE__ */ s.createElement(
|
|
2431
|
-
|
|
2431
|
+
Wo,
|
|
2432
2432
|
{
|
|
2433
|
-
ref:
|
|
2433
|
+
ref: v,
|
|
2434
2434
|
onClick: Z,
|
|
2435
2435
|
onKeyDown: ($) => {
|
|
2436
2436
|
$.key === "Enter" && ($.preventDefault(), Z());
|
|
2437
2437
|
},
|
|
2438
2438
|
tabIndex: 0
|
|
2439
2439
|
},
|
|
2440
|
-
/* @__PURE__ */ s.createElement(
|
|
2440
|
+
/* @__PURE__ */ s.createElement(Go, k(f({}, e), { alt: ((We = e.alt) == null ? void 0 : We.toString()) || "" }))
|
|
2441
2441
|
));
|
|
2442
|
-
},
|
|
2442
|
+
}, Be = P(
|
|
2443
2443
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ s.createElement(
|
|
2444
|
-
|
|
2444
|
+
Zo,
|
|
2445
2445
|
{
|
|
2446
2446
|
ref: o,
|
|
2447
2447
|
show: e,
|
|
@@ -2449,7 +2449,7 @@ const to = 300, no = ({
|
|
|
2449
2449
|
},
|
|
2450
2450
|
t.map(
|
|
2451
2451
|
({ id: r, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ s.createElement(
|
|
2452
|
-
|
|
2452
|
+
jo,
|
|
2453
2453
|
{
|
|
2454
2454
|
key: r + p.toString(),
|
|
2455
2455
|
circle: i.toString(),
|
|
@@ -2464,25 +2464,25 @@ const to = 300, no = ({
|
|
|
2464
2464
|
)
|
|
2465
2465
|
)
|
|
2466
2466
|
)
|
|
2467
|
-
),
|
|
2467
|
+
), yt = C.div`
|
|
2468
2468
|
transition: opacity 0.3s ease 0s;
|
|
2469
2469
|
z-index: 5;
|
|
2470
2470
|
${(e) => e.show === "true" ? "opacity: 1;" : L`
|
|
2471
2471
|
opacity: 0;
|
|
2472
2472
|
pointer-events: none;
|
|
2473
2473
|
`}
|
|
2474
|
-
`,
|
|
2474
|
+
`, Wo = C(He)`
|
|
2475
2475
|
display: inline-block !important;
|
|
2476
|
-
`,
|
|
2476
|
+
`, Zo = C(yt)`
|
|
2477
2477
|
position: fixed;
|
|
2478
2478
|
display: flex;
|
|
2479
2479
|
gap: ${(e) => {
|
|
2480
2480
|
var t;
|
|
2481
2481
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2482
2482
|
}};
|
|
2483
|
-
`,
|
|
2484
|
-
width: ${
|
|
2485
|
-
height: ${
|
|
2483
|
+
`, ke = "39px", jo = C(ye)`
|
|
2484
|
+
width: ${ke};
|
|
2485
|
+
height: ${ke};
|
|
2486
2486
|
display: flex;
|
|
2487
2487
|
justify-content: center;
|
|
2488
2488
|
align-items: center;
|
|
@@ -2508,7 +2508,7 @@ const to = 300, no = ({
|
|
|
2508
2508
|
}
|
|
2509
2509
|
|
|
2510
2510
|
&:focus-visible {
|
|
2511
|
-
${
|
|
2511
|
+
${X(e)}
|
|
2512
2512
|
outline-color: #ffffff;
|
|
2513
2513
|
background-color: transparent;
|
|
2514
2514
|
|
|
@@ -2530,7 +2530,7 @@ const to = 300, no = ({
|
|
|
2530
2530
|
outline-color: #ffffff;
|
|
2531
2531
|
}
|
|
2532
2532
|
&:focus-visible {
|
|
2533
|
-
${
|
|
2533
|
+
${X(e)}
|
|
2534
2534
|
}
|
|
2535
2535
|
`;
|
|
2536
2536
|
}}
|
|
@@ -2545,7 +2545,7 @@ const to = 300, no = ({
|
|
|
2545
2545
|
opacity: 0;
|
|
2546
2546
|
pointer-events: none;
|
|
2547
2547
|
`}
|
|
2548
|
-
`,
|
|
2548
|
+
`, Ao = C(Be)`
|
|
2549
2549
|
top: ${(e) => {
|
|
2550
2550
|
var t;
|
|
2551
2551
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2554,7 +2554,7 @@ const to = 300, no = ({
|
|
|
2554
2554
|
var t;
|
|
2555
2555
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2556
2556
|
}};
|
|
2557
|
-
`,
|
|
2557
|
+
`, Fo = C(Be)`
|
|
2558
2558
|
bottom: ${(e) => {
|
|
2559
2559
|
var t;
|
|
2560
2560
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2562,11 +2562,11 @@ const to = 300, no = ({
|
|
|
2562
2562
|
width: 100%;
|
|
2563
2563
|
align-items: center;
|
|
2564
2564
|
justify-content: center;
|
|
2565
|
-
`,
|
|
2565
|
+
`, Ko = C(Be)`
|
|
2566
2566
|
display: block;
|
|
2567
2567
|
button {
|
|
2568
2568
|
position: fixed;
|
|
2569
|
-
top: calc(50% - calc(${
|
|
2569
|
+
top: calc(50% - calc(${ke} / 2));
|
|
2570
2570
|
&:first-child {
|
|
2571
2571
|
left: ${(e) => {
|
|
2572
2572
|
var t;
|
|
@@ -2580,7 +2580,7 @@ const to = 300, no = ({
|
|
|
2580
2580
|
}};
|
|
2581
2581
|
}
|
|
2582
2582
|
}
|
|
2583
|
-
`,
|
|
2583
|
+
`, qo = C(re)`
|
|
2584
2584
|
position: fixed;
|
|
2585
2585
|
bottom: ${(e) => {
|
|
2586
2586
|
var t;
|
|
@@ -2599,21 +2599,21 @@ const to = 300, no = ({
|
|
|
2599
2599
|
var t;
|
|
2600
2600
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2601
2601
|
}};
|
|
2602
|
-
`,
|
|
2602
|
+
`, Ct = C(yt)`
|
|
2603
2603
|
position: absolute;
|
|
2604
2604
|
width: 100vw;
|
|
2605
2605
|
height: 88px;
|
|
2606
2606
|
left: 0px;
|
|
2607
2607
|
z-index: 5;
|
|
2608
|
-
`,
|
|
2608
|
+
`, Uo = C.div`
|
|
2609
2609
|
width: 100%;
|
|
2610
|
-
`,
|
|
2610
|
+
`, Yo = C(Ct)`
|
|
2611
2611
|
top: 0px;
|
|
2612
2612
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2613
|
-
`,
|
|
2613
|
+
`, Xo = C(Ct)`
|
|
2614
2614
|
bottom: 0px;
|
|
2615
2615
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2616
|
-
`,
|
|
2616
|
+
`, Qo = C.div`
|
|
2617
2617
|
width: 100%;
|
|
2618
2618
|
height: 100vh;
|
|
2619
2619
|
overflow: auto;
|
|
@@ -2622,36 +2622,36 @@ const to = 300, no = ({
|
|
|
2622
2622
|
white-space: nowrap;
|
|
2623
2623
|
justify-content: center;
|
|
2624
2624
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2625
|
-
`,
|
|
2625
|
+
`, Go = C.img`
|
|
2626
2626
|
cursor: pointer;
|
|
2627
|
-
`,
|
|
2627
|
+
`, Jo = Oo, er = P(
|
|
2628
2628
|
(l, a) => {
|
|
2629
2629
|
var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2630
2630
|
}, close: r = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2631
|
-
const [c, m] =
|
|
2631
|
+
const [c, m] = mt(), [p, d] = dt(!0), h = R(), y = R(se()), x = ee("Escape");
|
|
2632
2632
|
w(() => {
|
|
2633
2633
|
(x || r) && m(!1);
|
|
2634
2634
|
}, [x, r]), w(() => {
|
|
2635
2635
|
c && h.current && h.current.focus();
|
|
2636
|
-
}, [c, h.current]),
|
|
2636
|
+
}, [c, h.current]), Ce("router:changed", () => {
|
|
2637
2637
|
m(!1);
|
|
2638
2638
|
});
|
|
2639
|
-
const
|
|
2639
|
+
const b = _(
|
|
2640
2640
|
(g) => {
|
|
2641
2641
|
m(!1), o(g);
|
|
2642
2642
|
},
|
|
2643
2643
|
[o, m]
|
|
2644
2644
|
);
|
|
2645
|
-
|
|
2645
|
+
Me(a, () => ({
|
|
2646
2646
|
close() {
|
|
2647
2647
|
m(!1);
|
|
2648
2648
|
}
|
|
2649
2649
|
}));
|
|
2650
|
-
const
|
|
2650
|
+
const v = _(() => Te(y.current, () => {
|
|
2651
2651
|
m(!1);
|
|
2652
2652
|
}), [y.current]);
|
|
2653
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
2654
|
-
|
|
2653
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(gt, { visible: c, onClick: b }, /* @__PURE__ */ s.createElement(
|
|
2654
|
+
nr,
|
|
2655
2655
|
k(f({
|
|
2656
2656
|
className: M(
|
|
2657
2657
|
e,
|
|
@@ -2664,7 +2664,7 @@ const to = 300, no = ({
|
|
|
2664
2664
|
ref: d
|
|
2665
2665
|
}),
|
|
2666
2666
|
/* @__PURE__ */ s.createElement(
|
|
2667
|
-
|
|
2667
|
+
De,
|
|
2668
2668
|
{
|
|
2669
2669
|
onClick: () => m(!1),
|
|
2670
2670
|
tabIndex: 0,
|
|
@@ -2675,11 +2675,11 @@ const to = 300, no = ({
|
|
|
2675
2675
|
t
|
|
2676
2676
|
)), s.cloneElement(n, {
|
|
2677
2677
|
onClick: (g) => {
|
|
2678
|
-
m(),
|
|
2678
|
+
m(), v();
|
|
2679
2679
|
}
|
|
2680
2680
|
}));
|
|
2681
2681
|
}
|
|
2682
|
-
),
|
|
2682
|
+
), tr = er, nr = C.div`
|
|
2683
2683
|
font-family: ${(e) => {
|
|
2684
2684
|
var t;
|
|
2685
2685
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2695,10 +2695,10 @@ const to = 300, no = ({
|
|
|
2695
2695
|
var t;
|
|
2696
2696
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2697
2697
|
}};
|
|
2698
|
-
${(e) =>
|
|
2698
|
+
${(e) => ht(e)}
|
|
2699
2699
|
${(e) => e.css && e.css}
|
|
2700
2700
|
outline: none;
|
|
2701
|
-
`,
|
|
2701
|
+
`, or = ({
|
|
2702
2702
|
className: e,
|
|
2703
2703
|
trigger: t,
|
|
2704
2704
|
header: n = "",
|
|
@@ -2717,8 +2717,8 @@ const to = 300, no = ({
|
|
|
2717
2717
|
var p;
|
|
2718
2718
|
i(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2719
2719
|
}, [i]);
|
|
2720
|
-
return /* @__PURE__ */ s.createElement(
|
|
2721
|
-
},
|
|
2720
|
+
return /* @__PURE__ */ s.createElement(rr, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ s.createElement(Xe, null, n), o && /* @__PURE__ */ s.createElement(Xe, null, o), l && /* @__PURE__ */ s.createElement(sr, { onClick: m }, l), a && /* @__PURE__ */ s.createElement(ir, { onClick: c }, a));
|
|
2721
|
+
}, Ts = or, rr = C(tr)`
|
|
2722
2722
|
display: block;
|
|
2723
2723
|
|
|
2724
2724
|
span {
|
|
@@ -2736,7 +2736,7 @@ const to = 300, no = ({
|
|
|
2736
2736
|
}};
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
|
-
`,
|
|
2739
|
+
`, sr = C(ye)`
|
|
2740
2740
|
display: inline-block;
|
|
2741
2741
|
min-width: 50px;
|
|
2742
2742
|
${(e) => {
|
|
@@ -2764,9 +2764,9 @@ const to = 300, no = ({
|
|
|
2764
2764
|
}
|
|
2765
2765
|
|
|
2766
2766
|
&:focus-visible {
|
|
2767
|
-
${
|
|
2767
|
+
${X}
|
|
2768
2768
|
}
|
|
2769
|
-
`,
|
|
2769
|
+
`, ir = C(ye)`
|
|
2770
2770
|
display: inline-block;
|
|
2771
2771
|
min-width: 50px;
|
|
2772
2772
|
${(e) => {
|
|
@@ -2785,17 +2785,17 @@ const to = 300, no = ({
|
|
|
2785
2785
|
}};
|
|
2786
2786
|
|
|
2787
2787
|
&:focus-visible {
|
|
2788
|
-
${
|
|
2788
|
+
${X};
|
|
2789
2789
|
}
|
|
2790
|
-
`,
|
|
2790
|
+
`, ar = ({
|
|
2791
2791
|
header: e = "",
|
|
2792
2792
|
link: t = "",
|
|
2793
2793
|
suggestionHeader: n = "",
|
|
2794
2794
|
suggestion: o = ""
|
|
2795
|
-
}) => /* @__PURE__ */ s.createElement(
|
|
2795
|
+
}) => /* @__PURE__ */ s.createElement(cr, null, /* @__PURE__ */ s.createElement(lr, null, /* @__PURE__ */ s.createElement(re, { variant: "h2" }, "404")), /* @__PURE__ */ s.createElement(ur, null, /* @__PURE__ */ s.createElement(re, { variant: "h3" }, e), /* @__PURE__ */ s.createElement(hr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ s.createElement(dr, null, /* @__PURE__ */ s.createElement("span", null, n), /* @__PURE__ */ s.createElement("ul", null, /* @__PURE__ */ s.createElement("li", null, o)))), zs = ar, cr = C.div`
|
|
2796
2796
|
display: flex;
|
|
2797
2797
|
flex-wrap: wrap;
|
|
2798
|
-
`,
|
|
2798
|
+
`, lr = C.div`
|
|
2799
2799
|
${(e) => pe(e)(
|
|
2800
2800
|
"h2",
|
|
2801
2801
|
L`
|
|
@@ -2805,7 +2805,7 @@ const to = 300, no = ({
|
|
|
2805
2805
|
font-size: 7em;
|
|
2806
2806
|
`
|
|
2807
2807
|
)}
|
|
2808
|
-
`,
|
|
2808
|
+
`, ur = C.div`
|
|
2809
2809
|
margin-left: ${(e) => {
|
|
2810
2810
|
var t;
|
|
2811
2811
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2832,7 +2832,7 @@ const to = 300, no = ({
|
|
|
2832
2832
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2833
2833
|
}};
|
|
2834
2834
|
}
|
|
2835
|
-
`,
|
|
2835
|
+
`, dr = C.div`
|
|
2836
2836
|
margin-top: ${(e) => {
|
|
2837
2837
|
var t;
|
|
2838
2838
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2843,7 +2843,7 @@ const to = 300, no = ({
|
|
|
2843
2843
|
font-weight: bold;
|
|
2844
2844
|
}
|
|
2845
2845
|
`;
|
|
2846
|
-
class
|
|
2846
|
+
class mr extends Ht {
|
|
2847
2847
|
constructor() {
|
|
2848
2848
|
super(...arguments), this.state = {
|
|
2849
2849
|
boundFocus: !1
|
|
@@ -2882,23 +2882,23 @@ class fr extends Vt {
|
|
|
2882
2882
|
) : null;
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
|
-
const
|
|
2885
|
+
const Ds = mr, hr = P(
|
|
2886
2886
|
(a, i) => {
|
|
2887
2887
|
var l = a, { className: e, description: t, text: n, children: o } = l, r = S(l, ["className", "description", "text", "children"]);
|
|
2888
|
-
return /* @__PURE__ */ s.createElement(
|
|
2888
|
+
return /* @__PURE__ */ s.createElement(He, k(f({ className: M(e, "humany-text-link") }, r), { ref: i }), o, /* @__PURE__ */ s.createElement(ze, null, n), t ? /* @__PURE__ */ s.createElement(ft, { html: t, className: "humany-description" }) : null);
|
|
2889
2889
|
}
|
|
2890
2890
|
);
|
|
2891
|
-
var
|
|
2892
|
-
const
|
|
2893
|
-
function
|
|
2894
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${
|
|
2891
|
+
var pr = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(pr || {});
|
|
2892
|
+
const fr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ s.createElement("span", { className: M(e, "humany-timestamp") }, gr(n, t)), Hs = fr, Qe = (e) => `0${e}`.slice(-2);
|
|
2893
|
+
function gr(e, t) {
|
|
2894
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${Qe(a)}-${Qe(l)}`;
|
|
2895
2895
|
return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? r : `${u} ${r}`;
|
|
2896
2896
|
}
|
|
2897
|
-
const
|
|
2897
|
+
const yr = (i) => {
|
|
2898
2898
|
var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, r = S(a, ["className", "children", "content", "sticky"]);
|
|
2899
|
-
const [l, u] = E(!1), c = R(se()), m = R(), [{ x: p, y: d }, h] =
|
|
2900
|
-
const { target:
|
|
2901
|
-
!m.current || !
|
|
2899
|
+
const [l, u] = E(!1), c = R(se()), m = R(), [{ x: p, y: d }, h] = pt(l, c.current, m.current), y = (b) => {
|
|
2900
|
+
const { target: v } = b;
|
|
2901
|
+
!m.current || !v || m.current !== v && !m.current.contains(v) && u(!1);
|
|
2902
2902
|
};
|
|
2903
2903
|
w(() => {
|
|
2904
2904
|
if (!!o)
|
|
@@ -2907,24 +2907,24 @@ const br = (i) => {
|
|
|
2907
2907
|
};
|
|
2908
2908
|
}, [l, o]);
|
|
2909
2909
|
const x = _(
|
|
2910
|
-
(
|
|
2911
|
-
h(
|
|
2910
|
+
(b, v) => {
|
|
2911
|
+
h(b, m.current), u(v);
|
|
2912
2912
|
},
|
|
2913
2913
|
[h, u]
|
|
2914
2914
|
);
|
|
2915
2915
|
return /* @__PURE__ */ s.createElement(
|
|
2916
|
-
|
|
2916
|
+
Cr,
|
|
2917
2917
|
{
|
|
2918
2918
|
ref: m,
|
|
2919
2919
|
className: "humany-tooltip-trigger",
|
|
2920
|
-
onMouseEnter: o ? void 0 : (
|
|
2921
|
-
onMouseLeave: o ? void 0 : (
|
|
2922
|
-
onTouchEnd: o ? (
|
|
2923
|
-
onClick: o ? (
|
|
2920
|
+
onMouseEnter: o ? void 0 : (b) => x(b, !0),
|
|
2921
|
+
onMouseLeave: o ? void 0 : (b) => x(b, !1),
|
|
2922
|
+
onTouchEnd: o ? (b) => x(b, !l) : void 0,
|
|
2923
|
+
onClick: o ? (b) => x(b, !l) : void 0
|
|
2924
2924
|
},
|
|
2925
2925
|
t,
|
|
2926
2926
|
l && /* @__PURE__ */ s.createElement(ie, null, /* @__PURE__ */ s.createElement(
|
|
2927
|
-
|
|
2927
|
+
br,
|
|
2928
2928
|
f({
|
|
2929
2929
|
className: M(e, "humany-tooltip-container"),
|
|
2930
2930
|
x: p,
|
|
@@ -2933,10 +2933,10 @@ const br = (i) => {
|
|
|
2933
2933
|
n
|
|
2934
2934
|
))
|
|
2935
2935
|
);
|
|
2936
|
-
},
|
|
2936
|
+
}, Cr = C.div`
|
|
2937
2937
|
display: flex;
|
|
2938
2938
|
align-items: center;
|
|
2939
|
-
`,
|
|
2939
|
+
`, br = C.div`
|
|
2940
2940
|
color: #ffffff;
|
|
2941
2941
|
background: #161616;
|
|
2942
2942
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2972,7 +2972,7 @@ const br = (i) => {
|
|
|
2972
2972
|
let t = "";
|
|
2973
2973
|
return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
|
|
2974
2974
|
}};
|
|
2975
|
-
`,
|
|
2975
|
+
`, Bs = yr, vr = (e) => {
|
|
2976
2976
|
const {
|
|
2977
2977
|
in: t,
|
|
2978
2978
|
mountOnEnter: n = !0,
|
|
@@ -3014,7 +3014,7 @@ const br = (i) => {
|
|
|
3014
3014
|
}
|
|
3015
3015
|
})();
|
|
3016
3016
|
return /* @__PURE__ */ s.createElement(
|
|
3017
|
-
|
|
3017
|
+
Ot,
|
|
3018
3018
|
{
|
|
3019
3019
|
timeout: {
|
|
3020
3020
|
enter: u && u.enter.duration || 0,
|
|
@@ -3026,9 +3026,9 @@ const br = (i) => {
|
|
|
3026
3026
|
unmountOnExit: o,
|
|
3027
3027
|
onEnter: (c) => c.clientHeight
|
|
3028
3028
|
},
|
|
3029
|
-
(c) => i && i(c, u &&
|
|
3029
|
+
(c) => i && i(c, u && $e.compose(c, u))
|
|
3030
3030
|
);
|
|
3031
|
-
},
|
|
3031
|
+
}, Ps = vr, wr = P(
|
|
3032
3032
|
(l, a) => {
|
|
3033
3033
|
var u = l, { className: e, children: t, onClick: n = () => {
|
|
3034
3034
|
}, widgetName: o, activationOptions: r } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
@@ -3045,11 +3045,11 @@ const br = (i) => {
|
|
|
3045
3045
|
const p = (h) => {
|
|
3046
3046
|
const y = m(), x = h.currentTarget;
|
|
3047
3047
|
if (y) {
|
|
3048
|
-
const
|
|
3048
|
+
const b = () => {
|
|
3049
3049
|
y.invoke("renderState").then(
|
|
3050
|
-
(
|
|
3050
|
+
(v) => v === me.open ? y.invoke("close") : y.invoke("open")
|
|
3051
3051
|
).then(() => {
|
|
3052
|
-
y.events.subscribeOnce("widget:area-rendered", (
|
|
3052
|
+
y.events.subscribeOnce("widget:area-rendered", (v, g) => {
|
|
3053
3053
|
c.get(
|
|
3054
3054
|
"widgetDOMElement"
|
|
3055
3055
|
) && y.events.dispatch("widget:modal-opened", {
|
|
@@ -3059,13 +3059,13 @@ const br = (i) => {
|
|
|
3059
3059
|
});
|
|
3060
3060
|
});
|
|
3061
3061
|
};
|
|
3062
|
-
y.state ===
|
|
3062
|
+
y.state === Dt.Deactivated ? y.activate(r).then(() => y.invoke("attach")).then(b) : b();
|
|
3063
3063
|
}
|
|
3064
3064
|
}, d = (h) => {
|
|
3065
3065
|
h.key === "Enter" && (h.preventDefault(), p(h));
|
|
3066
3066
|
};
|
|
3067
3067
|
return /* @__PURE__ */ s.createElement(
|
|
3068
|
-
|
|
3068
|
+
He,
|
|
3069
3069
|
k(f({
|
|
3070
3070
|
className: M(e, "humany-widget-link"),
|
|
3071
3071
|
onKeyDown: d,
|
|
@@ -3078,7 +3078,7 @@ const br = (i) => {
|
|
|
3078
3078
|
t
|
|
3079
3079
|
);
|
|
3080
3080
|
}
|
|
3081
|
-
),
|
|
3081
|
+
), Vs = P(
|
|
3082
3082
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3083
3083
|
const r = I(), i = he(() => {
|
|
3084
3084
|
if (!r)
|
|
@@ -3087,7 +3087,7 @@ const br = (i) => {
|
|
|
3087
3087
|
return !a || !a.childElementCount ? null : a.children[0];
|
|
3088
3088
|
}, [r]);
|
|
3089
3089
|
return i ? /* @__PURE__ */ s.createElement(ie, { elementId: e, parent: i }, /* @__PURE__ */ s.createElement(
|
|
3090
|
-
|
|
3090
|
+
xr,
|
|
3091
3091
|
{
|
|
3092
3092
|
className: M("humany-widget-overlay-outlet", t),
|
|
3093
3093
|
ref: o
|
|
@@ -3095,7 +3095,7 @@ const br = (i) => {
|
|
|
3095
3095
|
n
|
|
3096
3096
|
)) : null;
|
|
3097
3097
|
}
|
|
3098
|
-
),
|
|
3098
|
+
), xr = C.div`
|
|
3099
3099
|
background-color: #ffffff;
|
|
3100
3100
|
position: absolute;
|
|
3101
3101
|
top: 0;
|
|
@@ -3105,22 +3105,17 @@ const br = (i) => {
|
|
|
3105
3105
|
z-index: 10;
|
|
3106
3106
|
width: 100%;
|
|
3107
3107
|
height: 100%;
|
|
3108
|
-
`,
|
|
3108
|
+
`, $r = (e, t, n, o, r) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
|
|
3109
3109
|
t,
|
|
3110
|
-
|
|
3111
|
-
),
|
|
3112
|
-
}), t, r))),
|
|
3110
|
+
Bt(() => n)
|
|
3111
|
+
), et(e, t, o || (() => {
|
|
3112
|
+
}), t, r))), Ns = $r, Er = (e, t, n, o, r) => de(void 0, null, function* () {
|
|
3113
3113
|
const i = yield e.getAsync("componentResolver");
|
|
3114
|
-
return console.log("registering component", t, n), i.registerComponent(t, () => n),
|
|
3114
|
+
return console.log("registering component", t, n), i.registerComponent(t, () => n), et(e, t, o || (() => {
|
|
3115
3115
|
}), t, r);
|
|
3116
|
-
}),
|
|
3116
|
+
}), Is = Er, kr = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
|
|
3117
3117
|
`;
|
|
3118
|
-
|
|
3119
|
-
for (var r = o > 1 ? void 0 : o ? _r(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3120
|
-
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3121
|
-
return o && r && Rr(t, n, r), r;
|
|
3122
|
-
};
|
|
3123
|
-
let Re = class extends ye {
|
|
3118
|
+
class bt extends fe {
|
|
3124
3119
|
render() {
|
|
3125
3120
|
return O`
|
|
3126
3121
|
<!-- className={appendClassNames(className, 'humany-button')}
|
|
@@ -3130,88 +3125,84 @@ let Re = class extends ye {
|
|
|
3130
3125
|
</button>
|
|
3131
3126
|
`;
|
|
3132
3127
|
}
|
|
3133
|
-
}
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
var zr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, wt = (e, t, n, o) => {
|
|
3139
|
-
for (var r = o > 1 ? void 0 : o ? Dr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3128
|
+
}
|
|
3129
|
+
bt.styles = nt(kr);
|
|
3130
|
+
customElements.get("ui-button") || customElements.define("ui-button", bt);
|
|
3131
|
+
var Lr = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, Sr = (e, t, n, o) => {
|
|
3132
|
+
for (var r = o > 1 ? void 0 : o ? Mr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3140
3133
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3141
|
-
return o && r &&
|
|
3134
|
+
return o && r && Lr(t, n, r), r;
|
|
3142
3135
|
};
|
|
3143
|
-
|
|
3136
|
+
class Pe extends fe {
|
|
3144
3137
|
constructor() {
|
|
3145
|
-
super(
|
|
3138
|
+
super(), this.html = "";
|
|
3146
3139
|
}
|
|
3147
3140
|
render() {
|
|
3148
|
-
return
|
|
3141
|
+
return ot` <div part="container" class="humany-html">${rt(this.html)}</div> `;
|
|
3149
3142
|
}
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
|
-
|
|
3143
|
+
}
|
|
3144
|
+
Pe.styles = [
|
|
3145
|
+
ge`
|
|
3153
3146
|
img {
|
|
3154
3147
|
display: none;
|
|
3155
3148
|
}
|
|
3156
3149
|
`
|
|
3157
3150
|
];
|
|
3158
|
-
|
|
3151
|
+
Sr([
|
|
3159
3152
|
N({ type: String })
|
|
3160
|
-
],
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
var Hr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, ee = (e, t, n, o) => {
|
|
3165
|
-
for (var r = o > 1 ? void 0 : o ? Br(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3153
|
+
], Pe.prototype, "html", 2);
|
|
3154
|
+
customElements.get("ui-html") || customElements.define("ui-html", Pe);
|
|
3155
|
+
var Rr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, oe = (e, t, n, o) => {
|
|
3156
|
+
for (var r = o > 1 ? void 0 : o ? _r(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3166
3157
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3167
|
-
return o && r &&
|
|
3158
|
+
return o && r && Rr(t, n, r), r;
|
|
3168
3159
|
};
|
|
3169
|
-
|
|
3160
|
+
class Q extends fe {
|
|
3170
3161
|
constructor() {
|
|
3171
3162
|
super(), this.symbol = {
|
|
3172
3163
|
content: "",
|
|
3173
3164
|
type: ""
|
|
3174
|
-
}, this.elementStyle = {}, this.size = 12, this.text = "", this.backgroundSize = "contain", this.styles = {
|
|
3165
|
+
}, this.elementStyle = {}, this.size = 12, this.text = "", this.backgroundSize = "contain", this.styles = { minWidth: `${this.size}px` };
|
|
3175
3166
|
}
|
|
3176
3167
|
render() {
|
|
3177
|
-
const { type:
|
|
3168
|
+
const { type: t, content: n } = this.symbol, o = {
|
|
3178
3169
|
"aria-label": this.text,
|
|
3179
3170
|
role: "presentation",
|
|
3180
3171
|
part: "container"
|
|
3181
3172
|
};
|
|
3182
|
-
switch (
|
|
3173
|
+
switch (t) {
|
|
3183
3174
|
case "Uri": {
|
|
3184
|
-
const
|
|
3175
|
+
const r = {
|
|
3185
3176
|
backgroundSize: this.backgroundSize,
|
|
3186
|
-
backgroundImage: `url('${
|
|
3177
|
+
backgroundImage: `url('${n}')`,
|
|
3187
3178
|
backgroundRepeat: "no-repeat",
|
|
3188
3179
|
backgroundPosition: "center",
|
|
3189
3180
|
backgroundAttachment: "center"
|
|
3190
|
-
},
|
|
3181
|
+
}, i = f(f({}, r), this.elementStyle);
|
|
3191
3182
|
return O`
|
|
3192
3183
|
<i
|
|
3193
3184
|
class="humany-icon humany-custom-icon"
|
|
3194
3185
|
title=${this.text}
|
|
3195
|
-
style=${
|
|
3196
|
-
${B(
|
|
3186
|
+
style=${U(i)}
|
|
3187
|
+
${B(o)}
|
|
3197
3188
|
/>
|
|
3198
3189
|
`;
|
|
3199
3190
|
}
|
|
3200
3191
|
case "Svg": {
|
|
3201
|
-
const
|
|
3192
|
+
const r = {
|
|
3202
3193
|
class: "humany-icon",
|
|
3203
3194
|
width: `${this.size}`,
|
|
3204
3195
|
fill: "none",
|
|
3205
3196
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3206
3197
|
};
|
|
3207
|
-
switch (
|
|
3198
|
+
switch (n) {
|
|
3208
3199
|
case "search":
|
|
3209
3200
|
return O`
|
|
3210
3201
|
<svg
|
|
3211
3202
|
viewBox="0 0 32 30"
|
|
3212
|
-
style=${
|
|
3213
|
-
${B(n)}
|
|
3203
|
+
style=${U(this.styles)}
|
|
3214
3204
|
${B(o)}
|
|
3205
|
+
${B(r)}
|
|
3215
3206
|
>
|
|
3216
3207
|
<circle
|
|
3217
3208
|
cx="14.8457"
|
|
@@ -3233,9 +3224,9 @@ let F = class extends ye {
|
|
|
3233
3224
|
return O`
|
|
3234
3225
|
<svg
|
|
3235
3226
|
viewBox="0 0 27 27"
|
|
3236
|
-
style=${
|
|
3237
|
-
${B(n)}
|
|
3227
|
+
style=${U(this.styles)}
|
|
3238
3228
|
${B(o)}
|
|
3229
|
+
${B(r)}
|
|
3239
3230
|
>
|
|
3240
3231
|
<circle
|
|
3241
3232
|
cx="13.4351"
|
|
@@ -3264,9 +3255,9 @@ let F = class extends ye {
|
|
|
3264
3255
|
return O`
|
|
3265
3256
|
<svg
|
|
3266
3257
|
viewBox="0 0 13 13"
|
|
3267
|
-
style=${
|
|
3268
|
-
${B(n)}
|
|
3258
|
+
style=${U(this.styles)}
|
|
3269
3259
|
${B(o)}
|
|
3260
|
+
${B(r)}
|
|
3270
3261
|
>
|
|
3271
3262
|
<path d="M12.3068 0.50647L1.27246 11.7273" stroke="currentColor" />
|
|
3272
3263
|
<path d="M12.2812 11.9473L1.24686 0.726451" stroke="currentColor" />
|
|
@@ -3276,9 +3267,9 @@ let F = class extends ye {
|
|
|
3276
3267
|
return O`
|
|
3277
3268
|
<svg
|
|
3278
3269
|
viewBox="0 0 14 14"
|
|
3279
|
-
style=${
|
|
3280
|
-
${B(n)}
|
|
3270
|
+
style=${U(this.styles)}
|
|
3281
3271
|
${B(o)}
|
|
3272
|
+
${B(r)}
|
|
3282
3273
|
>
|
|
3283
3274
|
<line
|
|
3284
3275
|
x1="4.13"
|
|
@@ -3300,9 +3291,9 @@ let F = class extends ye {
|
|
|
3300
3291
|
return O`
|
|
3301
3292
|
<svg
|
|
3302
3293
|
viewBox="0 0 14 14"
|
|
3303
|
-
style=${
|
|
3304
|
-
${B(n)}
|
|
3294
|
+
style=${U(this.styles)}
|
|
3305
3295
|
${B(o)}
|
|
3296
|
+
${B(r)}
|
|
3306
3297
|
>
|
|
3307
3298
|
<line
|
|
3308
3299
|
x1="10.13"
|
|
@@ -3324,9 +3315,9 @@ let F = class extends ye {
|
|
|
3324
3315
|
return this.styles.transform = "rotate(180deg)", O`
|
|
3325
3316
|
<svg
|
|
3326
3317
|
viewBox="0 0 14 14"
|
|
3327
|
-
style=${
|
|
3328
|
-
${B(n)}
|
|
3318
|
+
style=${U(this.styles)}
|
|
3329
3319
|
${B(o)}
|
|
3320
|
+
${B(r)}
|
|
3330
3321
|
>
|
|
3331
3322
|
<line x1="13.09" y1="3.99" x2="7.1" y2="9.99" stroke="black" />
|
|
3332
3323
|
<line x1="7.19" y1="9.99" x2="1.19" y2="3.99" stroke="black" />
|
|
@@ -3336,9 +3327,9 @@ let F = class extends ye {
|
|
|
3336
3327
|
return O`
|
|
3337
3328
|
<svg
|
|
3338
3329
|
viewBox="0 0 14 14"
|
|
3339
|
-
style=${
|
|
3340
|
-
${B(n)}
|
|
3330
|
+
style=${U(this.styles)}
|
|
3341
3331
|
${B(o)}
|
|
3332
|
+
${B(r)}
|
|
3342
3333
|
>
|
|
3343
3334
|
<line
|
|
3344
3335
|
x1="13.09"
|
|
@@ -3359,11 +3350,11 @@ let F = class extends ye {
|
|
|
3359
3350
|
}
|
|
3360
3351
|
}
|
|
3361
3352
|
}
|
|
3362
|
-
return
|
|
3353
|
+
return It;
|
|
3363
3354
|
}
|
|
3364
|
-
}
|
|
3365
|
-
|
|
3366
|
-
|
|
3355
|
+
}
|
|
3356
|
+
Q.styles = [
|
|
3357
|
+
ge`
|
|
3367
3358
|
:host {
|
|
3368
3359
|
color: var(--icon-color, inherit);
|
|
3369
3360
|
}
|
|
@@ -3373,52 +3364,50 @@ F.styles = [
|
|
|
3373
3364
|
}
|
|
3374
3365
|
`
|
|
3375
3366
|
];
|
|
3376
|
-
|
|
3367
|
+
oe([
|
|
3377
3368
|
N({ type: Object })
|
|
3378
|
-
],
|
|
3379
|
-
|
|
3369
|
+
], Q.prototype, "symbol", 2);
|
|
3370
|
+
oe([
|
|
3380
3371
|
N({ type: Object })
|
|
3381
|
-
],
|
|
3382
|
-
|
|
3372
|
+
], Q.prototype, "elementStyle", 2);
|
|
3373
|
+
oe([
|
|
3383
3374
|
N({ type: Number })
|
|
3384
|
-
],
|
|
3385
|
-
|
|
3375
|
+
], Q.prototype, "size", 2);
|
|
3376
|
+
oe([
|
|
3386
3377
|
N({ type: String })
|
|
3387
|
-
],
|
|
3388
|
-
|
|
3378
|
+
], Q.prototype, "text", 2);
|
|
3379
|
+
oe([
|
|
3389
3380
|
N({ type: String })
|
|
3390
|
-
],
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
],
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
var Pr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, xt = (e, t, n, o) => {
|
|
3398
|
-
for (var r = o > 1 ? void 0 : o ? Vr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3381
|
+
], Q.prototype, "backgroundSize", 2);
|
|
3382
|
+
oe([
|
|
3383
|
+
Y()
|
|
3384
|
+
], Q.prototype, "styles", 2);
|
|
3385
|
+
customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
|
|
3386
|
+
var Tr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Dr = (e, t, n, o) => {
|
|
3387
|
+
for (var r = o > 1 ? void 0 : o ? zr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3399
3388
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3400
|
-
return o && r &&
|
|
3389
|
+
return o && r && Tr(t, n, r), r;
|
|
3401
3390
|
};
|
|
3402
|
-
const
|
|
3403
|
-
|
|
3391
|
+
const Hr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
|
|
3392
|
+
class Ve extends fe {
|
|
3404
3393
|
constructor() {
|
|
3405
|
-
super(
|
|
3394
|
+
super(), this.variant = "span";
|
|
3406
3395
|
}
|
|
3407
|
-
_getTag(
|
|
3408
|
-
const
|
|
3409
|
-
return
|
|
3396
|
+
_getTag(t) {
|
|
3397
|
+
const n = window.getComputedStyle(this).getPropertyValue(`--typography-${t}`);
|
|
3398
|
+
return n ? n.trim() : t;
|
|
3410
3399
|
}
|
|
3411
3400
|
render() {
|
|
3412
|
-
const
|
|
3413
|
-
return
|
|
3414
|
-
<${
|
|
3401
|
+
const t = Hr(this.variant) ? this._getTag(this.variant) : this.variant, n = rt(t);
|
|
3402
|
+
return ot`
|
|
3403
|
+
<${n}>
|
|
3415
3404
|
<slot />
|
|
3416
|
-
</${
|
|
3405
|
+
</${n}>
|
|
3417
3406
|
`;
|
|
3418
3407
|
}
|
|
3419
|
-
}
|
|
3420
|
-
|
|
3421
|
-
|
|
3408
|
+
}
|
|
3409
|
+
Ve.styles = [
|
|
3410
|
+
ge`
|
|
3422
3411
|
h1,
|
|
3423
3412
|
h2,
|
|
3424
3413
|
h3,
|
|
@@ -3435,13 +3424,11 @@ ge.styles = [
|
|
|
3435
3424
|
}
|
|
3436
3425
|
`
|
|
3437
3426
|
];
|
|
3438
|
-
|
|
3427
|
+
Dr([
|
|
3439
3428
|
N({ type: String })
|
|
3440
|
-
],
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
], ge);
|
|
3444
|
-
class As {
|
|
3429
|
+
], Ve.prototype, "variant", 2);
|
|
3430
|
+
customElements.get("ui-typography") || customElements.define("ui-typography", Ve);
|
|
3431
|
+
class Os {
|
|
3445
3432
|
constructor(t) {
|
|
3446
3433
|
(this.host = t).addController(this);
|
|
3447
3434
|
}
|
|
@@ -3456,7 +3443,7 @@ class As {
|
|
|
3456
3443
|
this.host.removeEventListener("set-properties", this.propertyChangeHandler);
|
|
3457
3444
|
}
|
|
3458
3445
|
}
|
|
3459
|
-
class
|
|
3446
|
+
class Ws {
|
|
3460
3447
|
constructor(t) {
|
|
3461
3448
|
this.nodeId = "", this._host = t;
|
|
3462
3449
|
}
|
|
@@ -3470,7 +3457,7 @@ class Fs {
|
|
|
3470
3457
|
console.warn("Could not get data in DataProvider. Container was not defined.");
|
|
3471
3458
|
return;
|
|
3472
3459
|
}
|
|
3473
|
-
const t = yield
|
|
3460
|
+
const t = yield Se.getInstance(this.container);
|
|
3474
3461
|
if (this.node = t.nodes.get(this.nodeId), !this.node) {
|
|
3475
3462
|
console.warn(`Could not get component node with ID: ${this.nodeId}.`);
|
|
3476
3463
|
return;
|
|
@@ -3487,7 +3474,7 @@ class Fs {
|
|
|
3487
3474
|
return this._host.dispatchEvent(n), n.detail.instance;
|
|
3488
3475
|
}
|
|
3489
3476
|
}
|
|
3490
|
-
const
|
|
3477
|
+
const Le = "context.connectEvent", Zs = it(
|
|
3491
3478
|
(e) => {
|
|
3492
3479
|
class t extends e {
|
|
3493
3480
|
constructor() {
|
|
@@ -3501,7 +3488,7 @@ const _e = "context.connectEvent", Ks = ct(
|
|
|
3501
3488
|
_injectContext(o) {
|
|
3502
3489
|
const r = (a, l) => {
|
|
3503
3490
|
this._contextValueChanged(o, a, l);
|
|
3504
|
-
}, i = new CustomEvent(
|
|
3491
|
+
}, i = new CustomEvent(Le, {
|
|
3505
3492
|
bubbles: !0,
|
|
3506
3493
|
cancelable: !0,
|
|
3507
3494
|
composed: !0,
|
|
@@ -3522,7 +3509,7 @@ const _e = "context.connectEvent", Ks = ct(
|
|
|
3522
3509
|
}
|
|
3523
3510
|
return t;
|
|
3524
3511
|
}
|
|
3525
|
-
),
|
|
3512
|
+
), Br = it(
|
|
3526
3513
|
(e) => {
|
|
3527
3514
|
class t extends e {
|
|
3528
3515
|
constructor() {
|
|
@@ -3544,7 +3531,7 @@ const _e = "context.connectEvent", Ks = ct(
|
|
|
3544
3531
|
}, a.callback(this[o]);
|
|
3545
3532
|
}
|
|
3546
3533
|
};
|
|
3547
|
-
this.addEventListener(
|
|
3534
|
+
this.addEventListener(Le, r), this._providedContexts.set(o, {
|
|
3548
3535
|
listener: r,
|
|
3549
3536
|
callbacks: /* @__PURE__ */ new Set()
|
|
3550
3537
|
});
|
|
@@ -3564,19 +3551,19 @@ const _e = "context.connectEvent", Ks = ct(
|
|
|
3564
3551
|
}
|
|
3565
3552
|
disconnectedCallback() {
|
|
3566
3553
|
for (const o of this._providedContexts.values())
|
|
3567
|
-
this.removeEventListener(
|
|
3554
|
+
this.removeEventListener(Le, o.listener);
|
|
3568
3555
|
super.disconnectedCallback();
|
|
3569
3556
|
}
|
|
3570
3557
|
}
|
|
3571
3558
|
return t;
|
|
3572
3559
|
}
|
|
3573
3560
|
);
|
|
3574
|
-
var
|
|
3575
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3561
|
+
var Pr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, Ge = (e, t, n, o) => {
|
|
3562
|
+
for (var r = o > 1 ? void 0 : o ? Vr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3576
3563
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3577
|
-
return o && r &&
|
|
3564
|
+
return o && r && Pr(t, n, r), r;
|
|
3578
3565
|
};
|
|
3579
|
-
const
|
|
3566
|
+
const js = (e) => {
|
|
3580
3567
|
class t extends e {
|
|
3581
3568
|
constructor(...o) {
|
|
3582
3569
|
super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => de(this, null, function* () {
|
|
@@ -3584,12 +3571,12 @@ const Us = (e) => {
|
|
|
3584
3571
|
}));
|
|
3585
3572
|
}
|
|
3586
3573
|
}
|
|
3587
|
-
return
|
|
3588
|
-
|
|
3589
|
-
], t.prototype, "hasPendingChildren", 2),
|
|
3590
|
-
|
|
3574
|
+
return Ge([
|
|
3575
|
+
Y()
|
|
3576
|
+
], t.prototype, "hasPendingChildren", 2), Ge([
|
|
3577
|
+
Y()
|
|
3591
3578
|
], t.prototype, "pendingCount", 2), t;
|
|
3592
|
-
},
|
|
3579
|
+
}, As = (e) => {
|
|
3593
3580
|
class t extends e {
|
|
3594
3581
|
constructor(...o) {
|
|
3595
3582
|
super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
|
|
@@ -3602,7 +3589,7 @@ const Us = (e) => {
|
|
|
3602
3589
|
}
|
|
3603
3590
|
}
|
|
3604
3591
|
return t;
|
|
3605
|
-
},
|
|
3592
|
+
}, Nr = (e) => {
|
|
3606
3593
|
class t extends e {
|
|
3607
3594
|
requestInstance(o) {
|
|
3608
3595
|
const r = new CustomEvent("request-instance", {
|
|
@@ -3615,18 +3602,18 @@ const Us = (e) => {
|
|
|
3615
3602
|
}
|
|
3616
3603
|
}
|
|
3617
3604
|
return t;
|
|
3618
|
-
},
|
|
3619
|
-
var n, o, r, i, a, l, u, c, m, p, d, h, y, x,
|
|
3605
|
+
}, Ir = (e) => {
|
|
3606
|
+
var n, o, r, i, a, l, u, c, m, p, d, h, y, x, b, v, g, z, H, T, Z;
|
|
3620
3607
|
const t = {};
|
|
3621
|
-
return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (i = e.fonts) != null && i.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (a = e.fonts) != null && a.large && (t["--fonts-large"] = `${e.fonts.large}`), (l = e.fonts) != null && l.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (u = e.colors) != null && u.accent && (t["--colors-accent"] = `${e.colors.accent}`), (c = e.colors) != null && c.link && (t["--colors-link"] = `${e.colors.link}`), (m = e.colors) != null && m.primary && (t["--colors-primary"] = `${e.colors.primary}`), (p = e.colors) != null && p.text && (t["--colors-text"] = `${e.colors.text}`), (d = e.colors) != null && d.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (h = e.colors) != null && h.warning && (t["--colors-warning"] = `${e.colors.warning}`), (y = e.accessibility) != null && y.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (
|
|
3608
|
+
return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (i = e.fonts) != null && i.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (a = e.fonts) != null && a.large && (t["--fonts-large"] = `${e.fonts.large}`), (l = e.fonts) != null && l.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (u = e.colors) != null && u.accent && (t["--colors-accent"] = `${e.colors.accent}`), (c = e.colors) != null && c.link && (t["--colors-link"] = `${e.colors.link}`), (m = e.colors) != null && m.primary && (t["--colors-primary"] = `${e.colors.primary}`), (p = e.colors) != null && p.text && (t["--colors-text"] = `${e.colors.text}`), (d = e.colors) != null && d.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (h = e.colors) != null && h.warning && (t["--colors-warning"] = `${e.colors.warning}`), (y = e.accessibility) != null && y.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (b = (x = e.accessibility) == null ? void 0 : x.colors) != null && b.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (g = (v = e.accessibility) == null ? void 0 : v.colors) != null && g.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (z = e.sizes) != null && z.small && (t["--size-small"] = `${e.sizes.small}`), (H = e.sizes) != null && H.normal && (t["--size-normal"] = `${e.sizes.normal}`), (T = e.sizes) != null && T.medium && (t["--size-medium"] = `${e.sizes.medium}`), (Z = e.sizes) != null && Z.large && (t["--size-large"] = `${e.sizes.large}`), e.typographyVariantMapping && (e.typographyVariantMapping.h1 && (t["--typography-h1"] = `${e.typographyVariantMapping.h1}`), e.typographyVariantMapping.h2 && (t["--typography-h2"] = `${e.typographyVariantMapping.h2}`), e.typographyVariantMapping.h3 && (t["--typography-h3"] = `${e.typographyVariantMapping.h3}`), e.typographyVariantMapping.h4 && (t["--typography-h4"] = `${e.typographyVariantMapping.h4}`), e.typographyVariantMapping.h5 && (t["--typography-h5"] = `${e.typographyVariantMapping.h5}`), e.typographyVariantMapping.h6 && (t["--typography-h6"] = `${e.typographyVariantMapping.h6}`)), t;
|
|
3622
3609
|
};
|
|
3623
|
-
var
|
|
3624
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3610
|
+
var Or = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, W = (e, t, n, o) => {
|
|
3611
|
+
for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3625
3612
|
(a = e[i]) && (r = (o ? a(t, n, r) : a(r)) || r);
|
|
3626
|
-
return o && r &&
|
|
3613
|
+
return o && r && Or(t, n, r), r;
|
|
3627
3614
|
};
|
|
3628
|
-
const
|
|
3629
|
-
class t extends
|
|
3615
|
+
const Zr = (e) => `w-${e}`, Fs = (e) => {
|
|
3616
|
+
class t extends Br(Nr(e)) {
|
|
3630
3617
|
constructor() {
|
|
3631
3618
|
super(), this.listeners = [], this.setColumns = (o) => {
|
|
3632
3619
|
this.columns = o;
|
|
@@ -3645,14 +3632,17 @@ const Kr = (e) => `w-${e}`, qs = (e) => {
|
|
|
3645
3632
|
})
|
|
3646
3633
|
);
|
|
3647
3634
|
}
|
|
3635
|
+
requestNodeDescriptor(o) {
|
|
3636
|
+
o.stopPropagation(), o.detail.descriptor = this._descriptor;
|
|
3637
|
+
}
|
|
3648
3638
|
connectedCallback() {
|
|
3649
|
-
super.connectedCallback(), this.container = this.requestInstance("container"), this.container && Promise.all([
|
|
3650
|
-
|
|
3639
|
+
super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
|
|
3640
|
+
Se.getInstance(this.container),
|
|
3651
3641
|
this.container.getAsync("componentResolver")
|
|
3652
3642
|
]).then((o) => {
|
|
3653
3643
|
const r = o[0], i = o[1], a = r.nodes.get(this.nodeId || "");
|
|
3654
3644
|
if (a) {
|
|
3655
|
-
this._descriptor =
|
|
3645
|
+
this._descriptor = Je(a, this.branch), this._properties = a.attributes.properties, this._context = a.attributes.context, this._layout = a.attributes.layout, this.setProperties(a.attributes.properties), this.listeners.push(
|
|
3656
3646
|
r.events.subscribe(
|
|
3657
3647
|
"components:properties-changed",
|
|
3658
3648
|
(m, p) => {
|
|
@@ -3684,7 +3674,7 @@ const Kr = (e) => `w-${e}`, qs = (e) => {
|
|
|
3684
3674
|
);
|
|
3685
3675
|
return;
|
|
3686
3676
|
}
|
|
3687
|
-
const u =
|
|
3677
|
+
const u = Zr(this._descriptor.type);
|
|
3688
3678
|
if (customElements.get(u))
|
|
3689
3679
|
return;
|
|
3690
3680
|
const c = i.getComponent(this._descriptor.type);
|
|
@@ -3701,17 +3691,17 @@ const Kr = (e) => `w-${e}`, qs = (e) => {
|
|
|
3701
3691
|
disconnectedCallback() {
|
|
3702
3692
|
this.listeners.forEach((o) => {
|
|
3703
3693
|
o();
|
|
3704
|
-
});
|
|
3694
|
+
}), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
|
|
3705
3695
|
}
|
|
3706
3696
|
_getContextStyles() {
|
|
3707
|
-
return this._context ?
|
|
3697
|
+
return this._context ? Ir(this._context) : {};
|
|
3708
3698
|
}
|
|
3709
3699
|
render() {
|
|
3710
3700
|
const o = super.render(), r = this._getContextStyles(), i = O`
|
|
3711
3701
|
<style>
|
|
3712
3702
|
:host {
|
|
3713
|
-
${Object.entries(r).map(([a, l]) =>
|
|
3714
|
-
${
|
|
3703
|
+
${Object.entries(r).map(([a, l]) => ge`
|
|
3704
|
+
${nt(`${a}: ${l};`)}
|
|
3715
3705
|
`)}
|
|
3716
3706
|
}
|
|
3717
3707
|
</style>
|
|
@@ -3740,120 +3730,120 @@ const Kr = (e) => `w-${e}`, qs = (e) => {
|
|
|
3740
3730
|
], t.prototype, "_columns", 2), W([
|
|
3741
3731
|
N({ type: Number })
|
|
3742
3732
|
], t.prototype, "columns", 2), W([
|
|
3743
|
-
|
|
3733
|
+
Y()
|
|
3744
3734
|
], t.prototype, "_width", 2), W([
|
|
3745
|
-
|
|
3735
|
+
Y()
|
|
3746
3736
|
], t.prototype, "_descriptor", 2), W([
|
|
3747
|
-
|
|
3737
|
+
Y()
|
|
3748
3738
|
], t.prototype, "_properties", 2), W([
|
|
3749
|
-
|
|
3739
|
+
Y()
|
|
3750
3740
|
], t.prototype, "_context", 2), W([
|
|
3751
|
-
|
|
3741
|
+
Y()
|
|
3752
3742
|
], t.prototype, "_layout", 2), t;
|
|
3753
3743
|
};
|
|
3754
3744
|
export {
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3745
|
+
rn as AnchorLink,
|
|
3746
|
+
ye as Button,
|
|
3747
|
+
bt as ButtonUi,
|
|
3748
|
+
cs as Checkbox,
|
|
3749
|
+
ln as ColumnContext,
|
|
3750
|
+
ct as ComponentNodeContext,
|
|
3751
|
+
un as ComponentPropertyContext,
|
|
3752
|
+
Ts as Confirm,
|
|
3753
|
+
Zs as ConsumerMixin,
|
|
3754
|
+
cn as ContainerContext,
|
|
3755
|
+
mn as ConversationContext,
|
|
3756
|
+
Ws as DataProvider,
|
|
3757
|
+
pr as DateFormats,
|
|
3758
|
+
Ls as Drawer,
|
|
3759
|
+
Qn as DrawerAnimationType,
|
|
3760
|
+
Ms as Dropdown,
|
|
3761
|
+
uo as Empty,
|
|
3762
|
+
Ss as Grid,
|
|
3763
|
+
ft as Html,
|
|
3764
|
+
Pe as HtmlUi,
|
|
3765
|
+
fo as Icon,
|
|
3766
|
+
Rs as Input,
|
|
3767
|
+
Co as ItemList,
|
|
3768
|
+
_s as ItemTree,
|
|
3769
|
+
Jo as Lightbox,
|
|
3770
|
+
He as Link,
|
|
3771
|
+
go as List,
|
|
3772
|
+
tr as Modal,
|
|
3773
|
+
Os as NodeConnector,
|
|
3774
|
+
zs as NotFound,
|
|
3775
|
+
gt as Overlay,
|
|
3776
|
+
yo as Paragraph,
|
|
3777
|
+
js as PendingState,
|
|
3788
3778
|
ie as Portal,
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3779
|
+
As as ProviderMixin,
|
|
3780
|
+
Nr as Requester,
|
|
3781
|
+
vo as RouteLink,
|
|
3782
|
+
dn as RoutingContext,
|
|
3783
|
+
Xe as StyledText,
|
|
3794
3784
|
ae as SymbolBadge,
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3785
|
+
Q as SymbolBadgeUi,
|
|
3786
|
+
Ds as TabStop,
|
|
3787
|
+
ze as Text,
|
|
3788
|
+
hr as TextLink,
|
|
3789
|
+
Hs as Timestamp,
|
|
3790
|
+
Bs as Tooltip,
|
|
3791
|
+
Ps as TransitionComponent,
|
|
3802
3792
|
re as Typography,
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3793
|
+
Ve as TypographyUi,
|
|
3794
|
+
Fs as WidgetComponentMixin,
|
|
3795
|
+
wr as WidgetLink,
|
|
3796
|
+
Vs as WidgetOverlayOutlet,
|
|
3797
|
+
X as borderTabStyle,
|
|
3798
|
+
Ye as browser,
|
|
3799
|
+
Zn as buttonCss,
|
|
3800
|
+
ht as contentBox,
|
|
3811
3801
|
V as convertToStringAttributes,
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3802
|
+
as as createEmptyComponent,
|
|
3803
|
+
Ns as createReactComponent,
|
|
3804
|
+
Is as createWebComponent,
|
|
3805
|
+
nn as defaultRenderInstructions,
|
|
3806
|
+
Xt as embeddedLinkMapper,
|
|
3807
|
+
Gt as filterCssProps,
|
|
3808
|
+
Qt as filterCssPropsStyle,
|
|
3809
|
+
Jt as genericHashLink,
|
|
3810
|
+
ks as genericHtml,
|
|
3821
3811
|
pe as headingElement,
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3812
|
+
tn as imageLightboxRenderer,
|
|
3813
|
+
xs as invertedHoverButton,
|
|
3814
|
+
Es as itemList,
|
|
3815
|
+
jn as linkTabStyle,
|
|
3816
|
+
An as list,
|
|
3817
|
+
$s as paddedBorderTabStyle,
|
|
3818
|
+
en as processHtmlString,
|
|
3819
|
+
$e as transitionComposer,
|
|
3820
|
+
ls as useAction,
|
|
3821
|
+
us as useChildren,
|
|
3822
|
+
ds as useColumns,
|
|
3823
|
+
ms as useComponent,
|
|
3824
|
+
Re as useComponentDescriptor,
|
|
3825
|
+
_e as useComponentNode,
|
|
3826
|
+
ne as useComponentPlatform,
|
|
3837
3827
|
I as useContainer,
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3828
|
+
$n as useContext,
|
|
3829
|
+
hs as useConversation,
|
|
3830
|
+
ps as useDispatch,
|
|
3841
3831
|
A as useEventListener,
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3832
|
+
Mn as useEvents,
|
|
3833
|
+
F as useIsMounted,
|
|
3834
|
+
fs as useIsTabbing,
|
|
3835
|
+
ee as useKeyPress,
|
|
3836
|
+
gs as useLayout,
|
|
3837
|
+
lt as usePrevious,
|
|
3838
|
+
ys as useProperties,
|
|
3839
|
+
Cs as useRenderState,
|
|
3840
|
+
bs as useRouteData,
|
|
3841
|
+
ut as useRouter,
|
|
3842
|
+
dt as useScroll,
|
|
3843
|
+
vs as useSettings,
|
|
3844
|
+
mt as useToggle,
|
|
3845
|
+
ws as useTransitionEnd,
|
|
3846
|
+
Te as useUniqueMenu,
|
|
3847
|
+
Ce as useWidgetEvent
|
|
3858
3848
|
};
|
|
3859
3849
|
//# sourceMappingURL=index.js.map
|