@telia-ace/widget-ui 1.0.28-experimental.18 → 1.0.28-experimental.19
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 -1
- package/dist/components/ui-timestamp.d.ts +23 -0
- package/dist/components/ui-typography.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +677 -630
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ot = Object.defineProperty, Rt = Object.defineProperties;
|
|
2
|
+
var Nt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var he = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Ue = Object.prototype.hasOwnProperty, Xe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ye = (e, t, n) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Ue.call(t, n) && Ye(e, n, t[n]);
|
|
8
8
|
if (he)
|
|
9
9
|
for (var n of he(t))
|
|
10
|
-
|
|
10
|
+
Xe.call(t, n) && Ye(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, k = (e, t) => Rt(e, Nt(t));
|
|
13
|
+
var M = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
16
|
+
Ue.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
17
|
if (e != null && he)
|
|
18
18
|
for (var o of he(e))
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
19
|
+
t.indexOf(o) < 0 && Xe.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
22
|
var pe = (e, t, n) => new Promise((o, r) => {
|
|
@@ -35,24 +35,24 @@ var pe = (e, t, n) => new Promise((o, r) => {
|
|
|
35
35
|
}, c = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(s, i);
|
|
36
36
|
c((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { Container as
|
|
39
|
-
import d, { forwardRef as B, createContext as oe, useContext as
|
|
40
|
-
import { ComponentPlatform as
|
|
41
|
-
import { css as
|
|
38
|
+
import { Container as It, WidgetState as Bt } from "@webprovisions/platform";
|
|
39
|
+
import d, { forwardRef as B, createContext as oe, useContext as ee, useState as E, useEffect as w, useRef as _, useCallback as D, useImperativeHandle as ze, useMemo as ge, Component as Wt, lazy as Ht } from "react";
|
|
40
|
+
import { ComponentPlatform as Le, asDescriptor as rt, createEventSubscriber as jt, ComponentQuery as Vt, WidgetRenderState as fe, extendComponent as st } from "@telia-ace/widget-core";
|
|
41
|
+
import { css as S, keyframes as it } from "@emotion/react";
|
|
42
42
|
import y from "@emotion/styled";
|
|
43
|
-
import { kebabCase as
|
|
44
|
-
import { LitElement as
|
|
45
|
-
import { property as
|
|
46
|
-
import { html as
|
|
43
|
+
import { kebabCase as Ft, appendClassNames as z, uuid as ce, removeNullAndUndefinedValues as Ze, Logger as Ee } from "@telia-ace/widget-utilities";
|
|
44
|
+
import { LitElement as re, html as I, css as J, unsafeCSS as ke, nothing as At } from "lit";
|
|
45
|
+
import { property as N, customElement as Kt, state as X } from "lit/decorators.js";
|
|
46
|
+
import { html as at, unsafeStatic as ct } from "lit/static-html.js";
|
|
47
47
|
import { spread as R } from "@open-wc/lit-helpers";
|
|
48
48
|
import { styleMap as A } from "lit/directives/style-map.js";
|
|
49
|
-
import { CSSTransition as
|
|
50
|
-
import { createPortal as
|
|
51
|
-
import { HistoryMode as
|
|
52
|
-
import { Link as
|
|
53
|
-
import
|
|
54
|
-
import { dedupeMixin as
|
|
55
|
-
const
|
|
49
|
+
import { CSSTransition as lt, Transition as qt } from "react-transition-group";
|
|
50
|
+
import { createPortal as Yt } from "react-dom";
|
|
51
|
+
import { HistoryMode as Qe, getSpecificWidgetPath as Ut } from "@telia-ace/widget-routing";
|
|
52
|
+
import { Link as Se } from "react-router-dom";
|
|
53
|
+
import Ge from "htmr";
|
|
54
|
+
import { dedupeMixin as ut } from "@open-wc/dedupe-mixin";
|
|
55
|
+
const Xt = (e) => e === "entering" || e === "entered", Zt = (e) => e === "exiting" || e === "exited", G = {
|
|
56
56
|
fade: {
|
|
57
57
|
in: "opacity: 1;",
|
|
58
58
|
out: "opacity: 0;"
|
|
@@ -77,20 +77,20 @@ const qt = (e) => e === "entering" || e === "entered", Yt = (e) => e === "exitin
|
|
|
77
77
|
in: "transform: scale(1);",
|
|
78
78
|
out: "transform: scale(0);"
|
|
79
79
|
}
|
|
80
|
-
},
|
|
80
|
+
}, Qt = ["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(" "), s =
|
|
83
|
-
if (
|
|
84
|
-
return r && r.length > 0 ?
|
|
82
|
+
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = Qt.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
83
|
+
if (Xt(e))
|
|
84
|
+
return r && r.length > 0 ? S`
|
|
85
85
|
${r && r.length > 0 && r.map((c) => G[c] ? G[c].in : "")}
|
|
86
86
|
transition: ${s} ${n.duration}ms ${n.easing};
|
|
87
87
|
` : "";
|
|
88
|
-
const i = r && r.length > 0 &&
|
|
88
|
+
const i = r && r.length > 0 && S`
|
|
89
89
|
${r.map((c) => G[c] ? G[c].out : "")}
|
|
90
90
|
`;
|
|
91
|
-
if (
|
|
91
|
+
if (Zt(e)) {
|
|
92
92
|
const c = o.transitionKeys.split(" ");
|
|
93
|
-
return c && c.length > 0 && e === "exiting" ?
|
|
93
|
+
return c && c.length > 0 && e === "exiting" ? S`
|
|
94
94
|
${i};
|
|
95
95
|
${c.map((l) => G[l] ? G[l].out : "")}
|
|
96
96
|
transition: ${s} ${o.duration}ms ${o.easing};
|
|
@@ -99,7 +99,7 @@ const qt = (e) => e === "entering" || e === "entered", Yt = (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 qt = (e) => e === "entering" || e === "entered", Yt = (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 qt = (e) => e === "entering" || e === "entered", Yt = (e) => e === "exitin
|
|
|
123
123
|
},
|
|
124
124
|
get: (e) => G[e]
|
|
125
125
|
};
|
|
126
|
-
var
|
|
127
|
-
const
|
|
126
|
+
var De = /* @__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))(De || {});
|
|
127
|
+
const Je = () => {
|
|
128
128
|
const {
|
|
129
129
|
opr: e,
|
|
130
130
|
opera: t,
|
|
@@ -155,42 +155,42 @@ const Ge = () => {
|
|
|
155
155
|
return "edge-chromium";
|
|
156
156
|
if ((p || a) && !!l)
|
|
157
157
|
return "blink";
|
|
158
|
-
},
|
|
158
|
+
}, Gt = ["string", "number"], W = (e) => Object.keys(e).reduce((t, n) => {
|
|
159
159
|
const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
|
|
160
|
-
if (
|
|
160
|
+
if (Gt.indexOf(r) > -1) {
|
|
161
161
|
const s = n.substring(0, 5);
|
|
162
|
-
s === "data-" || s === "aria-" ? t[
|
|
162
|
+
s === "data-" || s === "aria-" ? t[Ft(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
|
|
163
163
|
} else
|
|
164
164
|
t[n] = o;
|
|
165
165
|
return t;
|
|
166
|
-
}, {}),
|
|
167
|
-
var r = o, { children: t } = r, n =
|
|
166
|
+
}, {}), Jt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ d.createElement(go, b({}, t)) : null, gs = Jt, en = (e) => new RegExp("^#", "i").test(e), tn = (e) => (o) => {
|
|
167
|
+
var r = o, { children: t } = r, n = M(r, ["children"]);
|
|
168
168
|
const {
|
|
169
169
|
implementation: s,
|
|
170
170
|
name: i
|
|
171
171
|
} = e.get("$widget"), { href: c = "" } = n;
|
|
172
|
-
if (
|
|
173
|
-
return /* @__PURE__ */ d.createElement(
|
|
172
|
+
if (en(c))
|
|
173
|
+
return /* @__PURE__ */ d.createElement(dn, { smooth: !0, to: c }, t);
|
|
174
174
|
const l = s.bindings.map((h) => h.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(c);
|
|
175
175
|
if (u && u.length >= 4) {
|
|
176
176
|
const h = u[4];
|
|
177
177
|
if (s.widgets.get(h) && !h.startsWith("blob?") && !h.startsWith(i))
|
|
178
|
-
return /* @__PURE__ */ d.createElement(
|
|
178
|
+
return /* @__PURE__ */ d.createElement(kr, { widgetName: h }, t);
|
|
179
179
|
}
|
|
180
180
|
return /* @__PURE__ */ d.createElement("a", b({}, n), t);
|
|
181
|
-
},
|
|
181
|
+
}, nn = tn, dt = (e) => {
|
|
182
182
|
const t = {};
|
|
183
183
|
return Object.keys(e).forEach((n) => {
|
|
184
184
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
185
185
|
}), t;
|
|
186
|
-
},
|
|
186
|
+
}, on = (e) => {
|
|
187
187
|
let t = "";
|
|
188
|
-
return Object.keys(
|
|
188
|
+
return Object.keys(dt(e)).forEach((n) => {
|
|
189
189
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
190
|
-
}),
|
|
190
|
+
}), S`
|
|
191
191
|
${t}
|
|
192
192
|
`;
|
|
193
|
-
},
|
|
193
|
+
}, rn = dt, sn = (e, t) => {
|
|
194
194
|
let n = "";
|
|
195
195
|
const o = () => {
|
|
196
196
|
n = "";
|
|
@@ -199,8 +199,8 @@ const Ge = () => {
|
|
|
199
199
|
return p !== null ? (h(p), o(), !0) : !1;
|
|
200
200
|
}, s = (h) => (h.preventDefault(), o(), e.onClick && e.onClick(h), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
|
|
201
201
|
e.scroll || ((p) => e.smooth ? p.scrollIntoView({ behavior: "smooth" }) : p.scrollIntoView())
|
|
202
|
-
), !1), u = e, { scroll: i, smooth: c, to: l } = u, a =
|
|
203
|
-
return t === "a" && (a.href = "javascript:;"), /* @__PURE__ */ d.createElement(t,
|
|
202
|
+
), !1), u = e, { scroll: i, smooth: c, to: l } = u, a = M(u, ["scroll", "smooth", "to"]);
|
|
203
|
+
return t === "a" && (a.href = "javascript:;"), /* @__PURE__ */ d.createElement(t, k(b({}, a), { onClick: s }), e.children);
|
|
204
204
|
}, ye = (e) => (t, n) => {
|
|
205
205
|
let o = t, r = "";
|
|
206
206
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
@@ -214,25 +214,25 @@ const Ge = () => {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
const i = ((c, l, a) => a[c] ? `${l}${a[c]}` : `${l}${c}`)(o, r, e.theme.typographyVariantMapping || {});
|
|
217
|
-
return
|
|
217
|
+
return S`
|
|
218
218
|
${i} {
|
|
219
219
|
${n}
|
|
220
220
|
}
|
|
221
221
|
`;
|
|
222
222
|
};
|
|
223
|
-
function
|
|
224
|
-
return t ?
|
|
223
|
+
function an(e, t) {
|
|
224
|
+
return t ? Ge(e, t) : Ge(e);
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const cn = (e) => (t) => /* @__PURE__ */ d.createElement(rr, { attrs: t, htmlBody: e }), ln = (e, t) => ({
|
|
227
227
|
transform: {
|
|
228
|
-
a:
|
|
229
|
-
img:
|
|
228
|
+
a: nn(e),
|
|
229
|
+
img: cn(t)
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
232
|
-
var s = r, { className: e, children: t } = s, n =
|
|
231
|
+
}), un = (e) => sn(e, "a"), dn = un, be = B((r, o) => {
|
|
232
|
+
var s = r, { className: e, children: t } = s, n = M(s, ["className", "children"]);
|
|
233
233
|
return /* @__PURE__ */ d.createElement(
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
mn,
|
|
235
|
+
k(b({
|
|
236
236
|
type: "button",
|
|
237
237
|
className: z(e, "humany-button")
|
|
238
238
|
}, W(n)), {
|
|
@@ -240,7 +240,7 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
240
240
|
}),
|
|
241
241
|
t
|
|
242
242
|
);
|
|
243
|
-
}),
|
|
243
|
+
}), mn = y.button`
|
|
244
244
|
-webkit-appearance: button;
|
|
245
245
|
text-transform: none;
|
|
246
246
|
overflow: visible;
|
|
@@ -253,14 +253,14 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
253
253
|
line-height: normal;
|
|
254
254
|
margin: 0;
|
|
255
255
|
padding: 0;
|
|
256
|
-
`,
|
|
256
|
+
`, hn = (r) => {
|
|
257
257
|
var s = r, {
|
|
258
258
|
onChange: e = () => {
|
|
259
259
|
},
|
|
260
260
|
onEnter: t = () => {
|
|
261
261
|
},
|
|
262
262
|
className: n
|
|
263
|
-
} = s, o =
|
|
263
|
+
} = s, o = M(s, [
|
|
264
264
|
"onChange",
|
|
265
265
|
"onEnter",
|
|
266
266
|
"className"
|
|
@@ -275,43 +275,43 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
275
275
|
onChange: (i) => e(i.target.value, i.currentTarget.checked)
|
|
276
276
|
}, W(o))
|
|
277
277
|
);
|
|
278
|
-
},
|
|
278
|
+
}, ys = hn, pn = oe(new It()), fn = oe(1), mt = oe({
|
|
279
279
|
id: "",
|
|
280
280
|
type: "",
|
|
281
281
|
name: "",
|
|
282
282
|
branch: ""
|
|
283
|
-
}),
|
|
284
|
-
const n =
|
|
283
|
+
}), gn = oe({}), yn = oe(null), bn = oe(null), vn = () => ee(mt), Pe = vn, $n = () => ee(pn), H = $n, wn = (e, t) => {
|
|
284
|
+
const n = Pe().id, o = H();
|
|
285
285
|
return (r, s) => {
|
|
286
286
|
(t || o).getAsync("actionResolver").then((i) => {
|
|
287
287
|
i.action(e || n, r, s);
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
|
-
},
|
|
291
|
-
const t =
|
|
290
|
+
}, bs = wn, xn = (e) => {
|
|
291
|
+
const t = ee(mt), n = se(), [o, r] = E();
|
|
292
292
|
return w(() => {
|
|
293
293
|
if ((e || t.id) && n) {
|
|
294
294
|
const s = n.nodes.get(e || t.id);
|
|
295
295
|
r(s);
|
|
296
296
|
}
|
|
297
297
|
}, [e, t.id, n]), o;
|
|
298
|
-
},
|
|
298
|
+
}, Oe = xn, Cn = () => {
|
|
299
299
|
const e = _(!1);
|
|
300
300
|
return w(() => (e.current = !0, () => {
|
|
301
301
|
e.current = !1;
|
|
302
302
|
}), []), e;
|
|
303
|
-
}, q =
|
|
304
|
-
const t = H(), [n, o] =
|
|
303
|
+
}, q = Cn, En = (e) => {
|
|
304
|
+
const t = H(), [n, o] = E(null), r = q();
|
|
305
305
|
return w(() => {
|
|
306
|
-
|
|
306
|
+
Le.getInstance(e || t).then((s) => {
|
|
307
307
|
r.current && o(s);
|
|
308
308
|
});
|
|
309
309
|
}, [r]), n;
|
|
310
|
-
},
|
|
311
|
-
const e =
|
|
310
|
+
}, se = En, Sn = () => {
|
|
311
|
+
const e = Oe(), t = se(), [n, o] = E([]), r = q(), s = D(
|
|
312
312
|
(i) => {
|
|
313
313
|
if (t && r.current && i) {
|
|
314
|
-
const c = t.getBranch(i), l = i.getChildren(c).map((a) =>
|
|
314
|
+
const c = t.getBranch(i), l = i.getChildren(c).map((a) => rt(a));
|
|
315
315
|
o(l);
|
|
316
316
|
}
|
|
317
317
|
},
|
|
@@ -321,7 +321,7 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
321
321
|
e && s(e);
|
|
322
322
|
}, [e, t]), w(() => {
|
|
323
323
|
if (t) {
|
|
324
|
-
const [i, c] =
|
|
324
|
+
const [i, c] = jt(t.events);
|
|
325
325
|
return i("components:set-layout", (l, a) => {
|
|
326
326
|
(e === a.node.parent || a.node.parent === t.nodes.root) && s(a.node.parent);
|
|
327
327
|
}), i("components:node-appended", (l, a) => {
|
|
@@ -333,8 +333,8 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
}, [e, t, s]), n;
|
|
336
|
-
},
|
|
337
|
-
const n =
|
|
336
|
+
}, vs = Sn, kn = () => ee(fn), $s = kn, _n = (e, t) => {
|
|
337
|
+
const n = Pe(), o = H(), [r, s] = E(void 0), i = q(), c = e || n.type || "";
|
|
338
338
|
return w(() => {
|
|
339
339
|
if (c) {
|
|
340
340
|
let l;
|
|
@@ -351,8 +351,8 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
353
|
}, [i, c, t, o]), r;
|
|
354
|
-
},
|
|
355
|
-
const t =
|
|
354
|
+
}, ws = _n, Dn = (e) => {
|
|
355
|
+
const t = Oe(e), n = se(), [o, r] = E({}), s = q();
|
|
356
356
|
return w(() => {
|
|
357
357
|
t && s.current && r(t.attributes.context);
|
|
358
358
|
}, [s, t]), w(() => {
|
|
@@ -368,11 +368,11 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
}, [s, n, t]), o;
|
|
371
|
-
},
|
|
372
|
-
const e =
|
|
371
|
+
}, Tn = Dn, Mn = () => ee(bn), xs = Mn, zn = () => {
|
|
372
|
+
const e = se(), t = Pe(), [n, o] = E([]), [r, s] = E();
|
|
373
373
|
return w(() => {
|
|
374
374
|
if (e && t) {
|
|
375
|
-
const i = new
|
|
375
|
+
const i = new Vt(e).withId(t.id), c = e.actions(i, t.type || ce());
|
|
376
376
|
s(c), n !== null && (n.forEach((l) => {
|
|
377
377
|
c.dispatch(l.key, l.data).then((a) => l.resolve(a)).catch((a) => l.reject(a));
|
|
378
378
|
}), o(null));
|
|
@@ -385,7 +385,7 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
385
385
|
reject: a
|
|
386
386
|
});
|
|
387
387
|
}) : r.dispatch(i, c);
|
|
388
|
-
},
|
|
388
|
+
}, Cs = zn, K = (e, t, n = window, o = () => !0) => {
|
|
389
389
|
const r = _(() => {
|
|
390
390
|
});
|
|
391
391
|
w(() => {
|
|
@@ -398,11 +398,11 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
398
398
|
n.removeEventListener(e, i);
|
|
399
399
|
};
|
|
400
400
|
}, [e, n]);
|
|
401
|
-
},
|
|
401
|
+
}, Ln = (e) => {
|
|
402
402
|
const t = H(), { events: n } = (e || t).get("$widget");
|
|
403
403
|
return n;
|
|
404
|
-
},
|
|
405
|
-
const [e, t] =
|
|
404
|
+
}, Pn = Ln, On = () => {
|
|
405
|
+
const [e, t] = E(!1);
|
|
406
406
|
return w(() => {
|
|
407
407
|
const n = () => {
|
|
408
408
|
t(!1);
|
|
@@ -413,22 +413,22 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
413
413
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
414
414
|
};
|
|
415
415
|
}, []), e;
|
|
416
|
-
},
|
|
417
|
-
const [n, o] =
|
|
416
|
+
}, Es = On, Rn = (e, t) => {
|
|
417
|
+
const [n, o] = E(!1), r = D(
|
|
418
418
|
(i) => {
|
|
419
419
|
const { key: c } = i;
|
|
420
420
|
c === e && (o(!0), t && t(i));
|
|
421
421
|
},
|
|
422
422
|
[o, t]
|
|
423
|
-
), s =
|
|
423
|
+
), s = D(
|
|
424
424
|
({ key: i }) => {
|
|
425
425
|
i === e && o(!1);
|
|
426
426
|
},
|
|
427
427
|
[o]
|
|
428
428
|
);
|
|
429
429
|
return K("keydown", r, window), K("keyup", s, window), n;
|
|
430
|
-
},
|
|
431
|
-
const t =
|
|
430
|
+
}, te = Rn, Nn = (e) => {
|
|
431
|
+
const t = Oe(e), n = se(), [o, r] = E({}), s = q();
|
|
432
432
|
return w(() => {
|
|
433
433
|
t && s.current && r(t.attributes.layout);
|
|
434
434
|
}, [t, s]), w(() => {
|
|
@@ -444,13 +444,13 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
}, [n, s, t]), o;
|
|
447
|
-
},
|
|
447
|
+
}, Ss = Nn, In = (e) => {
|
|
448
448
|
const t = _();
|
|
449
449
|
return w(() => {
|
|
450
450
|
t.current = e;
|
|
451
451
|
}), t.current;
|
|
452
|
-
},
|
|
453
|
-
const [t, n] =
|
|
452
|
+
}, ht = In, Bn = () => ee(gn), ks = Bn, Wn = (e) => {
|
|
453
|
+
const [t, n] = E(), o = H(), r = q();
|
|
454
454
|
return w(() => {
|
|
455
455
|
let s;
|
|
456
456
|
const i = (e || o).get("$widget");
|
|
@@ -476,8 +476,8 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
476
476
|
s && s();
|
|
477
477
|
};
|
|
478
478
|
}, [r]), t;
|
|
479
|
-
},
|
|
480
|
-
const t = H(), n =
|
|
479
|
+
}, _s = Wn, Hn = () => ee(yn), pt = Hn, jn = (e) => {
|
|
480
|
+
const t = H(), n = pt(), [o, r] = E({ name: "", params: {} }), s = q();
|
|
481
481
|
return w(() => {
|
|
482
482
|
const i = (e || t).get("$widget");
|
|
483
483
|
if (!i)
|
|
@@ -486,30 +486,30 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
486
486
|
return c.subscribe("router:change", (a, { next: { routeData: u } }) => {
|
|
487
487
|
if (s.current) {
|
|
488
488
|
const { name: h, params: p } = u;
|
|
489
|
-
|
|
489
|
+
Ze(p), r({ name: h, params: p });
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
}, [s, e, t]), w(() => {
|
|
493
493
|
if (n && n.history && s.current) {
|
|
494
494
|
const i = n.getRouteData(), { name: c, params: l } = i;
|
|
495
|
-
|
|
495
|
+
Ze(l), r({ name: c, params: l });
|
|
496
496
|
}
|
|
497
497
|
}, [n, s]), o;
|
|
498
|
-
},
|
|
498
|
+
}, Ds = jn, ft = (e) => {
|
|
499
499
|
const t = _(), n = _(0);
|
|
500
500
|
let o;
|
|
501
|
-
const r =
|
|
501
|
+
const r = D(() => {
|
|
502
502
|
var a;
|
|
503
503
|
(a = t.current) == null || a.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
504
504
|
var u;
|
|
505
505
|
(u = t.current) == null || u.classList.remove("humany-scrolling");
|
|
506
506
|
}, 500);
|
|
507
|
-
}, [t]), s =
|
|
507
|
+
}, [t]), s = D(
|
|
508
508
|
(a) => {
|
|
509
509
|
n.current = a.touches[0].clientY;
|
|
510
510
|
},
|
|
511
511
|
[t]
|
|
512
|
-
), i = (a) => c(a) ? a === t.current ? a : null : a.parentElement ? i(a.parentElement) : null, c = (a) => a.scrollWidth > a.clientWidth || a.scrollHeight > a.clientHeight, l =
|
|
512
|
+
), i = (a) => c(a) ? a === t.current ? a : null : a.parentElement ? i(a.parentElement) : null, c = (a) => a.scrollWidth > a.clientWidth || a.scrollHeight > a.clientHeight, l = D(
|
|
513
513
|
(a) => {
|
|
514
514
|
if (!a.cancelable)
|
|
515
515
|
return;
|
|
@@ -521,9 +521,9 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
521
521
|
},
|
|
522
522
|
[t, n]
|
|
523
523
|
);
|
|
524
|
-
return K("scroll", r, t.current, () => t.current && e), K("touchstart", s, t.current, () => t.current && e), K("touchmove", l, t.current, () => t.current && e), e ? [
|
|
525
|
-
},
|
|
526
|
-
overflow-y: ${
|
|
524
|
+
return K("scroll", r, t.current, () => t.current && e), K("touchstart", s, t.current, () => t.current && e), K("touchmove", l, t.current, () => t.current && e), e ? [Vn, t] : ["", t];
|
|
525
|
+
}, Vn = `
|
|
526
|
+
overflow-y: ${Je() === De.Chrome || Je() === De.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__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
550
550
|
background-color: #7F7F7F;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
554
|
-
const [e, t] =
|
|
553
|
+
`, Fn = () => {
|
|
554
|
+
const [e, t] = E(null), n = H(), o = q();
|
|
555
555
|
return w(() => {
|
|
556
556
|
n.get("settings").then((r) => {
|
|
557
557
|
o.current && t(r);
|
|
558
558
|
});
|
|
559
559
|
}, [o]), e;
|
|
560
|
-
},
|
|
561
|
-
const [t, n] =
|
|
560
|
+
}, Ts = Fn, An = (e = !1) => {
|
|
561
|
+
const [t, n] = E(e), o = D((r) => {
|
|
562
562
|
n(typeof r == "boolean" ? r : (s) => !s);
|
|
563
563
|
}, []);
|
|
564
564
|
return [t, o];
|
|
565
|
-
},
|
|
566
|
-
const t = H(), n =
|
|
565
|
+
}, gt = An, Ms = (e) => {
|
|
566
|
+
const t = H(), n = se(), o = t.get("widgetDOMElement"), [r, s] = E(null), [i, c] = E(null), l = q();
|
|
567
567
|
w(() => {
|
|
568
568
|
if (n && l.current) {
|
|
569
569
|
const u = n.nodes.all.find((p) => p.name === "root-area"), h = n.nodes.all.find((p) => p.type === "view");
|
|
@@ -577,15 +577,15 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}, [n, t, l]);
|
|
580
|
-
const a =
|
|
580
|
+
const a = D(
|
|
581
581
|
(u) => {
|
|
582
582
|
l.current && (u.target === r || u.target === i) && e();
|
|
583
583
|
},
|
|
584
584
|
[e, l, r, i]
|
|
585
585
|
);
|
|
586
586
|
K("transitionend", a, r), K("transitionend", a, i);
|
|
587
|
-
},
|
|
588
|
-
const r =
|
|
587
|
+
}, Kn = (e, t, n = [], o) => {
|
|
588
|
+
const r = Pn(o);
|
|
589
589
|
return w(() => {
|
|
590
590
|
if (r) {
|
|
591
591
|
const s = r.subscribe(e, t);
|
|
@@ -594,13 +594,13 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
}, [r].concat(n)), (s) => r == null ? void 0 : r.dispatch(e, s);
|
|
597
|
-
}, ve =
|
|
597
|
+
}, ve = Kn, qn = (e, t) => {
|
|
598
598
|
const n = ve("widget:menu-toggled", (o, r) => {
|
|
599
599
|
r !== e && t();
|
|
600
600
|
});
|
|
601
601
|
return () => n(e);
|
|
602
|
-
},
|
|
603
|
-
var r = o, { className: e, children: t } = r, n =
|
|
602
|
+
}, Re = qn, Yn = (o) => {
|
|
603
|
+
var r = o, { className: e, children: t } = r, n = M(r, ["className", "children"]);
|
|
604
604
|
return /* @__PURE__ */ d.createElement(
|
|
605
605
|
"span",
|
|
606
606
|
b({
|
|
@@ -608,7 +608,7 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
608
608
|
}, W(n)),
|
|
609
609
|
t
|
|
610
610
|
);
|
|
611
|
-
},
|
|
611
|
+
}, Ne = Yn, yt = (e) => S`
|
|
612
612
|
display: flex;
|
|
613
613
|
justify-content: center;
|
|
614
614
|
flex-direction: column;
|
|
@@ -617,9 +617,9 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { 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
|
+
`, Un = (e) => {
|
|
621
621
|
var t, n, o;
|
|
622
|
-
return
|
|
622
|
+
return S`
|
|
623
623
|
cursor: pointer;
|
|
624
624
|
text-align: center;
|
|
625
625
|
border: none;
|
|
@@ -629,11 +629,11 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { 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
|
+
}, zs = (e) => {
|
|
633
633
|
var i;
|
|
634
634
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
635
|
-
return
|
|
636
|
-
${
|
|
635
|
+
return S`
|
|
636
|
+
${Un(e)}
|
|
637
637
|
border: 1px solid ${o ? n : t};
|
|
638
638
|
background-color: ${o ? t : n};
|
|
639
639
|
|
|
@@ -649,7 +649,7 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
649
649
|
font-size: ${(i = r.fonts) == null ? void 0 : i.normal};
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
${!s &&
|
|
652
|
+
${!s && S`
|
|
653
653
|
&:hover {
|
|
654
654
|
background-color: ${t};
|
|
655
655
|
color: ${n};
|
|
@@ -669,21 +669,21 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
669
669
|
`;
|
|
670
670
|
}, Z = (e) => {
|
|
671
671
|
var t, n, o;
|
|
672
|
-
return
|
|
672
|
+
return S`
|
|
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
|
-
},
|
|
677
|
+
}, Xn = (e) => S`
|
|
678
678
|
${Z(e)}
|
|
679
679
|
text-decoration: underline;
|
|
680
|
-
`,
|
|
680
|
+
`, Ls = (e) => {
|
|
681
681
|
var t;
|
|
682
|
-
return
|
|
682
|
+
return S`
|
|
683
683
|
${Z(e)}
|
|
684
684
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
685
685
|
`;
|
|
686
|
-
},
|
|
686
|
+
}, Ie = y(be)`
|
|
687
687
|
position: absolute;
|
|
688
688
|
top: ${(e) => {
|
|
689
689
|
var t;
|
|
@@ -711,7 +711,7 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
711
711
|
height: 15px;
|
|
712
712
|
box-sizing: content-box;
|
|
713
713
|
}
|
|
714
|
-
`,
|
|
714
|
+
`, et = y(Ne)`
|
|
715
715
|
font-size: ${(e) => {
|
|
716
716
|
var t;
|
|
717
717
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -722,9 +722,9 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
722
722
|
var t;
|
|
723
723
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
724
724
|
}};
|
|
725
|
-
`,
|
|
725
|
+
`, Zn = (e) => {
|
|
726
726
|
var t;
|
|
727
|
-
return
|
|
727
|
+
return S`
|
|
728
728
|
padding: 0;
|
|
729
729
|
margin: 0;
|
|
730
730
|
list-style: none;
|
|
@@ -744,13 +744,13 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
744
744
|
margin: 0;
|
|
745
745
|
}
|
|
746
746
|
`;
|
|
747
|
-
},
|
|
747
|
+
}, Ps = (e) => {
|
|
748
748
|
var t, n, o, r;
|
|
749
|
-
return
|
|
749
|
+
return S`
|
|
750
750
|
> div {
|
|
751
751
|
${ye(e)(
|
|
752
752
|
"> h1",
|
|
753
|
-
|
|
753
|
+
S`
|
|
754
754
|
margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
755
755
|
font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
|
|
756
756
|
font-weight: normal;
|
|
@@ -760,11 +760,11 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
760
760
|
)}
|
|
761
761
|
}
|
|
762
762
|
> ul {
|
|
763
|
-
${
|
|
763
|
+
${Zn(e)}
|
|
764
764
|
}
|
|
765
765
|
${ye(e)(
|
|
766
766
|
"h1",
|
|
767
|
-
|
|
767
|
+
S`
|
|
768
768
|
display: flex;
|
|
769
769
|
align-items: center;
|
|
770
770
|
i {
|
|
@@ -780,9 +780,9 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
780
780
|
`
|
|
781
781
|
)}
|
|
782
782
|
`;
|
|
783
|
-
},
|
|
783
|
+
}, Os = (e) => {
|
|
784
784
|
var t, n, o, r, s, i;
|
|
785
|
-
return
|
|
785
|
+
return S`
|
|
786
786
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
787
787
|
font-weight: 300;
|
|
788
788
|
line-height: 1.5em;
|
|
@@ -809,7 +809,7 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
809
809
|
a {
|
|
810
810
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
811
811
|
&:focus-visible {
|
|
812
|
-
${
|
|
812
|
+
${Xn(e)};
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
|
|
@@ -835,19 +835,19 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
835
835
|
margin: 0;
|
|
836
836
|
}
|
|
837
837
|
`;
|
|
838
|
-
},
|
|
838
|
+
}, Qn = ({
|
|
839
839
|
elementId: e = "humany-portal-elements",
|
|
840
840
|
parent: t = document.body,
|
|
841
841
|
children: n
|
|
842
842
|
}) => {
|
|
843
|
-
const [o] =
|
|
843
|
+
const [o] = E(() => {
|
|
844
844
|
const r = document.getElementById(e) || document.createElement("div");
|
|
845
845
|
return r.id = e, r;
|
|
846
846
|
});
|
|
847
847
|
return w(() => (t.appendChild(o), () => {
|
|
848
848
|
o.childElementCount <= 1 && t.removeChild(o);
|
|
849
|
-
}), [o]),
|
|
850
|
-
}, le =
|
|
849
|
+
}), [o]), Yt(n, o);
|
|
850
|
+
}, le = Qn, Gn = () => /* @__PURE__ */ d.createElement("div", null, "Todo:"), ue = Gn, Jn = {
|
|
851
851
|
h1: "h1",
|
|
852
852
|
h2: "h2",
|
|
853
853
|
h3: "h3",
|
|
@@ -856,12 +856,12 @@ const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBod
|
|
|
856
856
|
h6: "h6",
|
|
857
857
|
p: "p",
|
|
858
858
|
span: "span"
|
|
859
|
-
},
|
|
860
|
-
const { typographyVariantMapping: r = {} } =
|
|
861
|
-
return /* @__PURE__ */ d.createElement(
|
|
862
|
-
},
|
|
863
|
-
var
|
|
864
|
-
const
|
|
859
|
+
}, eo = ({ variant: e, component: t, className: n, children: o }) => {
|
|
860
|
+
const { typographyVariantMapping: r = {} } = Tn(), s = b(b({}, Jn), r), i = t || s[e] || "span";
|
|
861
|
+
return /* @__PURE__ */ d.createElement(to, { className: n, as: i }, o);
|
|
862
|
+
}, to = y.span``, ae = eo;
|
|
863
|
+
var no = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(no || {});
|
|
864
|
+
const oo = 300, ro = ({
|
|
865
865
|
className: e,
|
|
866
866
|
children: t,
|
|
867
867
|
header: n,
|
|
@@ -873,22 +873,22 @@ const eo = 300, to = ({
|
|
|
873
873
|
type: "slide-in-bottom"
|
|
874
874
|
}
|
|
875
875
|
}) => {
|
|
876
|
-
const { duration: l =
|
|
876
|
+
const { duration: l = oo } = c, a = _(), u = _(), [h, p] = ft(!0), [m, g] = gt(), x = ht(m), v = _(ce());
|
|
877
877
|
w(() => {
|
|
878
878
|
o && o(m);
|
|
879
879
|
}, [m]);
|
|
880
|
-
const $ =
|
|
880
|
+
const $ = te("Escape");
|
|
881
881
|
w(() => {
|
|
882
882
|
$ && g(!1);
|
|
883
883
|
}, [$]), K(
|
|
884
884
|
"click",
|
|
885
|
-
(
|
|
886
|
-
const { target:
|
|
887
|
-
!u.current || !p.current || !
|
|
885
|
+
(O) => {
|
|
886
|
+
const { target: T } = O;
|
|
887
|
+
!u.current || !p.current || !T || u.current !== T && p.current !== T && !p.current.contains(T) && !u.current.contains(T) && g(!1);
|
|
888
888
|
},
|
|
889
889
|
window
|
|
890
890
|
);
|
|
891
|
-
const f =
|
|
891
|
+
const f = Re(v.current, () => {
|
|
892
892
|
g(!1);
|
|
893
893
|
});
|
|
894
894
|
ve("router:changed", () => {
|
|
@@ -896,9 +896,9 @@ const eo = 300, to = ({
|
|
|
896
896
|
}), w(() => {
|
|
897
897
|
m && a.current ? a.current.focus() : !m && u.current && x && u.current.focus();
|
|
898
898
|
}, [m, a.current, u.current]);
|
|
899
|
-
const L =
|
|
899
|
+
const L = uo[c.type];
|
|
900
900
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
901
|
-
|
|
901
|
+
lt,
|
|
902
902
|
{
|
|
903
903
|
in: m,
|
|
904
904
|
className: "humany-drawer-transition",
|
|
@@ -921,7 +921,7 @@ const eo = 300, to = ({
|
|
|
921
921
|
ref: p
|
|
922
922
|
},
|
|
923
923
|
/* @__PURE__ */ d.createElement(
|
|
924
|
-
|
|
924
|
+
Ie,
|
|
925
925
|
{
|
|
926
926
|
onClick: () => g(!1),
|
|
927
927
|
tabIndex: 0,
|
|
@@ -930,18 +930,18 @@ const eo = 300, to = ({
|
|
|
930
930
|
},
|
|
931
931
|
/* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
|
|
932
932
|
),
|
|
933
|
-
!!n && /* @__PURE__ */ d.createElement(
|
|
933
|
+
!!n && /* @__PURE__ */ d.createElement(so, { variant: "h1", className: "humany-drawer-header" }, n),
|
|
934
934
|
t
|
|
935
935
|
))
|
|
936
936
|
), d.cloneElement(r, {
|
|
937
|
-
onClick: (
|
|
937
|
+
onClick: (O) => {
|
|
938
938
|
g(), f();
|
|
939
939
|
},
|
|
940
940
|
ref: u,
|
|
941
941
|
"aria-label": r.props.title,
|
|
942
942
|
"aria-expanded": m
|
|
943
943
|
}));
|
|
944
|
-
},
|
|
944
|
+
}, Rs = ro, $e = y.div`
|
|
945
945
|
font-family: ${(e) => {
|
|
946
946
|
var t;
|
|
947
947
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -958,7 +958,7 @@ const eo = 300, to = ({
|
|
|
958
958
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
959
959
|
background: #ffffff;
|
|
960
960
|
${(e) => e.css && e.css}
|
|
961
|
-
`,
|
|
961
|
+
`, so = y(ae)`
|
|
962
962
|
padding: ${(e) => {
|
|
963
963
|
var t;
|
|
964
964
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -981,9 +981,9 @@ const eo = 300, to = ({
|
|
|
981
981
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
982
982
|
}};
|
|
983
983
|
line-height: 1.2em;
|
|
984
|
-
`, we = (e) =>
|
|
984
|
+
`, we = (e) => S`
|
|
985
985
|
transition: ${e.duration}ms;
|
|
986
|
-
`,
|
|
986
|
+
`, io = y($e)`
|
|
987
987
|
max-height: 0;
|
|
988
988
|
${we}
|
|
989
989
|
|
|
@@ -1000,7 +1000,7 @@ const eo = 300, to = ({
|
|
|
1000
1000
|
&.humany-drawer-transition-exit-done {
|
|
1001
1001
|
max-height: 0;
|
|
1002
1002
|
}
|
|
1003
|
-
`,
|
|
1003
|
+
`, ao = y($e)`
|
|
1004
1004
|
${we}
|
|
1005
1005
|
transform: translateX(100%);
|
|
1006
1006
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1018,7 +1018,7 @@ const eo = 300, to = ({
|
|
|
1018
1018
|
&.humany-drawer-transition-exit-done {
|
|
1019
1019
|
transform: translateX(100%);
|
|
1020
1020
|
}
|
|
1021
|
-
`,
|
|
1021
|
+
`, co = y($e)`
|
|
1022
1022
|
${we}
|
|
1023
1023
|
transform: translateX(-100%);
|
|
1024
1024
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1036,7 +1036,7 @@ const eo = 300, to = ({
|
|
|
1036
1036
|
&.humany-drawer-transition-exit-done {
|
|
1037
1037
|
transform: translateX(-100%);
|
|
1038
1038
|
}
|
|
1039
|
-
`,
|
|
1039
|
+
`, lo = y($e)`
|
|
1040
1040
|
${we}
|
|
1041
1041
|
bottom: unset;
|
|
1042
1042
|
top: 0;
|
|
@@ -1055,13 +1055,13 @@ const eo = 300, to = ({
|
|
|
1055
1055
|
&.humany-drawer-transition-exit-done {
|
|
1056
1056
|
height: 0;
|
|
1057
1057
|
}
|
|
1058
|
-
`,
|
|
1059
|
-
["slide-in-bottom"]:
|
|
1060
|
-
["slide-in-right"]:
|
|
1061
|
-
["slide-in-left"]:
|
|
1062
|
-
["slide-in-top"]:
|
|
1063
|
-
},
|
|
1064
|
-
const [o, r] =
|
|
1058
|
+
`, uo = {
|
|
1059
|
+
["slide-in-bottom"]: io,
|
|
1060
|
+
["slide-in-right"]: ao,
|
|
1061
|
+
["slide-in-left"]: co,
|
|
1062
|
+
["slide-in-top"]: lo
|
|
1063
|
+
}, mo = (e, t, n) => {
|
|
1064
|
+
const [o, r] = E(0), [s, i] = E(0), c = D(
|
|
1065
1065
|
(l, a) => {
|
|
1066
1066
|
if (l.preventDefault(), a) {
|
|
1067
1067
|
const u = a.getBoundingClientRect();
|
|
@@ -1079,37 +1079,37 @@ const eo = 300, to = ({
|
|
|
1079
1079
|
};
|
|
1080
1080
|
l.left < 0 && (a.x = 0), l.bottom > window.innerHeight && (a.y = 0), a.x !== o && r(a.x), a.y !== s && i(a.y);
|
|
1081
1081
|
}, [n, e, t]), [{ x: o, y: s }, c];
|
|
1082
|
-
},
|
|
1082
|
+
}, bt = mo, ho = d.forwardRef(
|
|
1083
1083
|
(i, s) => {
|
|
1084
|
-
var c = i, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = c, r =
|
|
1084
|
+
var c = i, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = c, r = M(c, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1085
1085
|
const l = _(), a = _(), u = _();
|
|
1086
|
-
|
|
1087
|
-
const h = _(
|
|
1086
|
+
ze(s, () => u.current, [u.current]);
|
|
1087
|
+
const h = _(ce()), [p, m] = E(!1), g = ht(p), [{ x, y: v }, $] = bt(p, h.current, u.current), f = te("Escape");
|
|
1088
1088
|
w(() => {
|
|
1089
1089
|
f && m(!1);
|
|
1090
1090
|
}, [f]), w(() => {
|
|
1091
1091
|
p && l.current ? l.current.focus() : !p && a.current && g && a.current.focus();
|
|
1092
1092
|
}, [p, l.current, a.current]), K(
|
|
1093
1093
|
"click",
|
|
1094
|
-
(
|
|
1095
|
-
const { target: V } =
|
|
1094
|
+
(T) => {
|
|
1095
|
+
const { target: V } = T;
|
|
1096
1096
|
!u.current || !V || u.current !== V && !u.current.contains(V) && m(!1);
|
|
1097
1097
|
},
|
|
1098
1098
|
window
|
|
1099
1099
|
), ve("router:changed", () => {
|
|
1100
1100
|
m(!1);
|
|
1101
1101
|
});
|
|
1102
|
-
const L =
|
|
1102
|
+
const L = Re(h.current, () => {
|
|
1103
1103
|
m(!1);
|
|
1104
|
-
}),
|
|
1105
|
-
(
|
|
1106
|
-
|
|
1104
|
+
}), O = D(
|
|
1105
|
+
(T) => {
|
|
1106
|
+
T.stopPropagation(), $(T, a.current), m(!p), L();
|
|
1107
1107
|
},
|
|
1108
1108
|
[L, $, m]
|
|
1109
1109
|
);
|
|
1110
1110
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, p && /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
|
|
1111
|
-
|
|
1112
|
-
|
|
1111
|
+
po,
|
|
1112
|
+
k(b({
|
|
1113
1113
|
className: z(
|
|
1114
1114
|
"humany-dropdown",
|
|
1115
1115
|
`humany-dropdown-${h.current}`,
|
|
@@ -1121,7 +1121,7 @@ const eo = 300, to = ({
|
|
|
1121
1121
|
ref: u
|
|
1122
1122
|
}),
|
|
1123
1123
|
/* @__PURE__ */ d.createElement(
|
|
1124
|
-
|
|
1124
|
+
Ie,
|
|
1125
1125
|
{
|
|
1126
1126
|
onClick: () => m(!1),
|
|
1127
1127
|
tabIndex: 0,
|
|
@@ -1132,14 +1132,14 @@ const eo = 300, to = ({
|
|
|
1132
1132
|
),
|
|
1133
1133
|
t
|
|
1134
1134
|
)), d.cloneElement(n, {
|
|
1135
|
-
onClick:
|
|
1135
|
+
onClick: O,
|
|
1136
1136
|
ref: a,
|
|
1137
1137
|
"aria-label": n.props.title,
|
|
1138
1138
|
"aria-expanded": p
|
|
1139
1139
|
}));
|
|
1140
1140
|
}
|
|
1141
|
-
),
|
|
1142
|
-
${
|
|
1141
|
+
), Ns = ho, po = y.div`
|
|
1142
|
+
${yt}
|
|
1143
1143
|
padding: ${(e) => {
|
|
1144
1144
|
var t;
|
|
1145
1145
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -1153,45 +1153,45 @@ const eo = 300, to = ({
|
|
|
1153
1153
|
let t = "";
|
|
1154
1154
|
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, t;
|
|
1155
1155
|
}};
|
|
1156
|
-
`,
|
|
1157
|
-
var e =
|
|
1158
|
-
return /* @__PURE__ */ d.createElement(
|
|
1159
|
-
},
|
|
1156
|
+
`, fo = (t) => {
|
|
1157
|
+
var e = M(t, []);
|
|
1158
|
+
return /* @__PURE__ */ d.createElement(yo, b({}, e));
|
|
1159
|
+
}, go = fo, yo = y.div`
|
|
1160
1160
|
display: none;
|
|
1161
|
-
`,
|
|
1161
|
+
`, Is = B(
|
|
1162
1162
|
(i, s) => {
|
|
1163
|
-
var c = i, { children: e, columns: t, gap: n, className: o } = c, r =
|
|
1163
|
+
var c = i, { children: e, columns: t, gap: n, className: o } = c, r = M(c, ["children", "columns", "gap", "className"]);
|
|
1164
1164
|
return /* @__PURE__ */ d.createElement(
|
|
1165
|
-
|
|
1166
|
-
|
|
1165
|
+
bo,
|
|
1166
|
+
k(b(b({
|
|
1167
1167
|
className: z(o, "humany-grid"),
|
|
1168
1168
|
"data-columns": t,
|
|
1169
1169
|
"data-gap": n
|
|
1170
|
-
},
|
|
1170
|
+
}, rn(r)), W(r)), {
|
|
1171
1171
|
ref: s
|
|
1172
1172
|
}),
|
|
1173
1173
|
e
|
|
1174
1174
|
);
|
|
1175
1175
|
}
|
|
1176
|
-
),
|
|
1176
|
+
), bo = y.div`
|
|
1177
1177
|
display: grid;
|
|
1178
1178
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1179
1179
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1180
1180
|
justify-content: center;
|
|
1181
1181
|
grid-auto-rows: max-content;
|
|
1182
|
-
${
|
|
1183
|
-
`,
|
|
1182
|
+
${on}
|
|
1183
|
+
`, vt = B(
|
|
1184
1184
|
(s, r) => {
|
|
1185
|
-
var i = s, { htmlParseInstruction: e = null, className: t, html: n } = i, o =
|
|
1186
|
-
const c = H(), [l, a] =
|
|
1185
|
+
var i = s, { htmlParseInstruction: e = null, className: t, html: n } = i, o = M(i, ["htmlParseInstruction", "className", "html"]);
|
|
1186
|
+
const c = H(), [l, a] = E();
|
|
1187
1187
|
return w(() => {
|
|
1188
|
-
const u =
|
|
1188
|
+
const u = ln(c, n), h = k(b(b({}, u), e), {
|
|
1189
1189
|
transform: b(b({}, u.transform), e == null ? void 0 : e.transform)
|
|
1190
|
-
}), p =
|
|
1190
|
+
}), p = an(n, h);
|
|
1191
1191
|
a(p);
|
|
1192
1192
|
}, [n, e]), /* @__PURE__ */ d.createElement(
|
|
1193
1193
|
"div",
|
|
1194
|
-
|
|
1194
|
+
k(b({
|
|
1195
1195
|
className: z(t, "humany-html")
|
|
1196
1196
|
}, W(o)), {
|
|
1197
1197
|
ref: r
|
|
@@ -1200,12 +1200,12 @@ const eo = 300, to = ({
|
|
|
1200
1200
|
);
|
|
1201
1201
|
}
|
|
1202
1202
|
);
|
|
1203
|
-
var
|
|
1204
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
1203
|
+
var vo = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, xe = (e, t, n, o) => {
|
|
1204
|
+
for (var r = o > 1 ? void 0 : o ? $o(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
1205
1205
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
1206
|
-
return o && r &&
|
|
1206
|
+
return o && r && vo(t, n, r), r;
|
|
1207
1207
|
};
|
|
1208
|
-
let ne = class extends
|
|
1208
|
+
let ne = class extends re {
|
|
1209
1209
|
constructor() {
|
|
1210
1210
|
super(), this.role = "presentation";
|
|
1211
1211
|
}
|
|
@@ -1221,25 +1221,25 @@ let ne = class extends ce {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
1223
|
ne.styles = [
|
|
1224
|
-
|
|
1224
|
+
J`
|
|
1225
1225
|
:host {
|
|
1226
1226
|
display: block;
|
|
1227
1227
|
}
|
|
1228
1228
|
`
|
|
1229
1229
|
];
|
|
1230
1230
|
xe([
|
|
1231
|
-
|
|
1231
|
+
N({ type: String })
|
|
1232
1232
|
], ne.prototype, "faIcon", 2);
|
|
1233
1233
|
xe([
|
|
1234
|
-
|
|
1234
|
+
N({ type: String })
|
|
1235
1235
|
], ne.prototype, "title", 2);
|
|
1236
1236
|
xe([
|
|
1237
|
-
|
|
1237
|
+
N({ type: String })
|
|
1238
1238
|
], ne.prototype, "role", 2);
|
|
1239
1239
|
ne = xe([
|
|
1240
|
-
|
|
1240
|
+
Kt("ui-icon")
|
|
1241
1241
|
], ne);
|
|
1242
|
-
const
|
|
1242
|
+
const Bs = B(
|
|
1243
1243
|
(h, u) => {
|
|
1244
1244
|
var p = h, {
|
|
1245
1245
|
className: e = "",
|
|
@@ -1255,7 +1255,7 @@ const Ls = B(
|
|
|
1255
1255
|
},
|
|
1256
1256
|
disabled: c = !1,
|
|
1257
1257
|
type: l
|
|
1258
|
-
} = p, a =
|
|
1258
|
+
} = p, a = M(p, [
|
|
1259
1259
|
"className",
|
|
1260
1260
|
"autoFocus",
|
|
1261
1261
|
"onFocusChange",
|
|
@@ -1266,14 +1266,14 @@ const Ls = B(
|
|
|
1266
1266
|
"disabled",
|
|
1267
1267
|
"type"
|
|
1268
1268
|
]);
|
|
1269
|
-
const [m, g] =
|
|
1270
|
-
|
|
1269
|
+
const [m, g] = E(t), x = _();
|
|
1270
|
+
ze(u, () => x.current), w(() => {
|
|
1271
1271
|
var f;
|
|
1272
1272
|
t && ((f = x == null ? void 0 : x.current) == null || f.focus());
|
|
1273
1273
|
}, [t, u, x]);
|
|
1274
1274
|
const v = (f, L) => {
|
|
1275
1275
|
g(f), n && n(f), s && f && L.target.select();
|
|
1276
|
-
}, $ =
|
|
1276
|
+
}, $ = k(b({}, W(a)), {
|
|
1277
1277
|
disabled: c,
|
|
1278
1278
|
autoFocus: t,
|
|
1279
1279
|
type: l,
|
|
@@ -1288,22 +1288,22 @@ const Ls = B(
|
|
|
1288
1288
|
});
|
|
1289
1289
|
return l !== "textarea" ? /* @__PURE__ */ d.createElement(
|
|
1290
1290
|
"input",
|
|
1291
|
-
|
|
1291
|
+
k(b({}, $), {
|
|
1292
1292
|
ref: x
|
|
1293
1293
|
})
|
|
1294
1294
|
) : /* @__PURE__ */ d.createElement(
|
|
1295
1295
|
"textarea",
|
|
1296
|
-
|
|
1296
|
+
k(b({}, $), {
|
|
1297
1297
|
ref: x
|
|
1298
1298
|
})
|
|
1299
1299
|
);
|
|
1300
1300
|
}
|
|
1301
|
-
),
|
|
1301
|
+
), wo = B(
|
|
1302
1302
|
(i, s) => {
|
|
1303
|
-
var c = i, { className: e, items: t, renderItem: n, renderLi: o = !1 } = c, r =
|
|
1303
|
+
var c = i, { className: e, items: t, renderItem: n, renderLi: o = !1 } = c, r = M(c, ["className", "items", "renderItem", "renderLi"]);
|
|
1304
1304
|
return /* @__PURE__ */ d.createElement(
|
|
1305
1305
|
"ul",
|
|
1306
|
-
|
|
1306
|
+
k(b({
|
|
1307
1307
|
className: z(e, "humany-list"),
|
|
1308
1308
|
"data-item-count": t.length
|
|
1309
1309
|
}, W(r)), {
|
|
@@ -1314,22 +1314,22 @@ const Ls = B(
|
|
|
1314
1314
|
)
|
|
1315
1315
|
);
|
|
1316
1316
|
}
|
|
1317
|
-
),
|
|
1317
|
+
), xo = B(
|
|
1318
1318
|
(l, c) => {
|
|
1319
|
-
var a = l, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s } = a, i =
|
|
1319
|
+
var a = l, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s } = a, i = M(a, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1320
1320
|
return /* @__PURE__ */ d.createElement(
|
|
1321
1321
|
"div",
|
|
1322
|
-
|
|
1322
|
+
k(b({
|
|
1323
1323
|
className: z(o, "humany-paragraph")
|
|
1324
1324
|
}, W(i)), {
|
|
1325
1325
|
ref: c
|
|
1326
1326
|
}),
|
|
1327
|
-
n ? /* @__PURE__ */ d.createElement(
|
|
1328
|
-
t ? /* @__PURE__ */ d.createElement(
|
|
1329
|
-
e ? /* @__PURE__ */ d.createElement(
|
|
1327
|
+
n ? /* @__PURE__ */ d.createElement(ae, { variant: "h1" }, s ? /* @__PURE__ */ d.createElement(ue, { symbol: s }) : null, n) : null,
|
|
1328
|
+
t ? /* @__PURE__ */ d.createElement(vt, { html: t, htmlParseInstruction: r }) : null,
|
|
1329
|
+
e ? /* @__PURE__ */ d.createElement(Ne, null, e) : null
|
|
1330
1330
|
);
|
|
1331
1331
|
}
|
|
1332
|
-
),
|
|
1332
|
+
), Co = B(
|
|
1333
1333
|
(m, p) => {
|
|
1334
1334
|
var g = m, {
|
|
1335
1335
|
header: e,
|
|
@@ -1343,7 +1343,7 @@ const Ls = B(
|
|
|
1343
1343
|
renderItem: l,
|
|
1344
1344
|
renderLi: a,
|
|
1345
1345
|
ulProps: u
|
|
1346
|
-
} = g, h =
|
|
1346
|
+
} = g, h = M(g, [
|
|
1347
1347
|
"header",
|
|
1348
1348
|
"customHeader",
|
|
1349
1349
|
"text",
|
|
@@ -1358,18 +1358,18 @@ const Ls = B(
|
|
|
1358
1358
|
]);
|
|
1359
1359
|
return /* @__PURE__ */ d.createElement(
|
|
1360
1360
|
"div",
|
|
1361
|
-
|
|
1361
|
+
k(b({
|
|
1362
1362
|
className: z(r, "humany-item-list"),
|
|
1363
1363
|
"data-item-count": c.length
|
|
1364
1364
|
}, W(h)), {
|
|
1365
1365
|
ref: p
|
|
1366
1366
|
}),
|
|
1367
|
-
t || (e || n || o ? /* @__PURE__ */ d.createElement(
|
|
1368
|
-
c.length ? /* @__PURE__ */ d.createElement(
|
|
1367
|
+
t || (e || n || o ? /* @__PURE__ */ d.createElement(xo, { symbol: i, header: e, text: n, html: o }) : null),
|
|
1368
|
+
c.length ? /* @__PURE__ */ d.createElement(wo, b({ items: c, renderItem: l, renderLi: a }, u)) : null,
|
|
1369
1369
|
s
|
|
1370
1370
|
);
|
|
1371
1371
|
}
|
|
1372
|
-
),
|
|
1372
|
+
), Eo = ({
|
|
1373
1373
|
className: e = "",
|
|
1374
1374
|
tree: t,
|
|
1375
1375
|
renderItem: n,
|
|
@@ -1380,7 +1380,7 @@ const Ls = B(
|
|
|
1380
1380
|
liProps: c
|
|
1381
1381
|
}) => {
|
|
1382
1382
|
const l = (h) => !a(h), a = (h) => !h || h.length < 1 ? !0 : !h.some((p) => !!p.selected), u = (h, p) => /* @__PURE__ */ d.createElement(
|
|
1383
|
-
|
|
1383
|
+
Co,
|
|
1384
1384
|
{
|
|
1385
1385
|
className: z(`humany-item-tree-level-${p}`),
|
|
1386
1386
|
items: h,
|
|
@@ -1389,7 +1389,7 @@ const Ls = B(
|
|
|
1389
1389
|
const { id: g, selected: x, items: v, matches: $ } = m, f = x && a(v);
|
|
1390
1390
|
return !s && !$ ? null : /* @__PURE__ */ d.createElement(
|
|
1391
1391
|
"li",
|
|
1392
|
-
|
|
1392
|
+
k(b({}, W(c)), {
|
|
1393
1393
|
key: g,
|
|
1394
1394
|
className: "humany-item-tree-item"
|
|
1395
1395
|
}),
|
|
@@ -1400,15 +1400,15 @@ const Ls = B(
|
|
|
1400
1400
|
}
|
|
1401
1401
|
);
|
|
1402
1402
|
return /* @__PURE__ */ d.createElement("div", { className: z(e, "humany-item-tree") }, o && o(!l(t || [])), t && u(t, 1));
|
|
1403
|
-
},
|
|
1403
|
+
}, Ws = Eo, So = B(
|
|
1404
1404
|
(l, c) => {
|
|
1405
1405
|
var a = l, { className: e, onClick: t = () => {
|
|
1406
|
-
}, name: n = "", to: o = "", params: r = {}, children: s } = a, i =
|
|
1407
|
-
const u =
|
|
1406
|
+
}, name: n = "", to: o = "", params: r = {}, children: s } = a, i = M(a, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1407
|
+
const u = pt(), h = H();
|
|
1408
1408
|
if (!u)
|
|
1409
1409
|
return null;
|
|
1410
1410
|
let p = "";
|
|
1411
|
-
const m =
|
|
1411
|
+
const m = k(b({
|
|
1412
1412
|
onClick: t,
|
|
1413
1413
|
className: z(e, "humany-route-link"),
|
|
1414
1414
|
to: p,
|
|
@@ -1419,8 +1419,8 @@ const Ls = B(
|
|
|
1419
1419
|
if (n) {
|
|
1420
1420
|
if (!(u.routes || []).find(($) => $.name === n))
|
|
1421
1421
|
return process.env.NODE_ENV !== "production" && Ee.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ d.createElement(
|
|
1422
|
-
|
|
1423
|
-
|
|
1422
|
+
Se,
|
|
1423
|
+
k(b({}, m), {
|
|
1424
1424
|
onClick: ($) => {
|
|
1425
1425
|
t($), $.preventDefault(), process.env.NODE_ENV !== "production" && Ee.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
1426
1426
|
}
|
|
@@ -1431,9 +1431,9 @@ const Ls = B(
|
|
|
1431
1431
|
try {
|
|
1432
1432
|
p = u.generate(n, v || {});
|
|
1433
1433
|
} catch ($) {
|
|
1434
|
-
return /* @__PURE__ */ d.createElement(
|
|
1434
|
+
return /* @__PURE__ */ d.createElement(Se, b({}, m), s);
|
|
1435
1435
|
}
|
|
1436
|
-
p && u.settings.mode && u.settings.mode ===
|
|
1436
|
+
p && u.settings.mode && u.settings.mode === Qe.browser && p[0] !== "/" && (p = `/${p}`);
|
|
1437
1437
|
} else if (o && u.history)
|
|
1438
1438
|
p = u.history.createHref({
|
|
1439
1439
|
hash: "",
|
|
@@ -1445,13 +1445,13 @@ const Ls = B(
|
|
|
1445
1445
|
return process.env.NODE_ENV !== "production" && Ee.warn(
|
|
1446
1446
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
1447
1447
|
), null;
|
|
1448
|
-
if (u.settings && u.settings.mode ===
|
|
1448
|
+
if (u.settings && u.settings.mode === Qe.scopedHash) {
|
|
1449
1449
|
const g = h.get("$widget").name;
|
|
1450
|
-
p =
|
|
1450
|
+
p = Ut(p, g);
|
|
1451
1451
|
}
|
|
1452
|
-
return m.as ? /* @__PURE__ */ d.createElement(
|
|
1452
|
+
return m.as ? /* @__PURE__ */ d.createElement(ko, k(b({}, m), { as: m.as }), s) : /* @__PURE__ */ d.createElement(Se, k(b({}, m), { to: p }), s);
|
|
1453
1453
|
}
|
|
1454
|
-
),
|
|
1454
|
+
), ko = y.span``, Be = B(
|
|
1455
1455
|
(x, g) => {
|
|
1456
1456
|
var v = x, {
|
|
1457
1457
|
className: e,
|
|
@@ -1469,7 +1469,7 @@ const Ls = B(
|
|
|
1469
1469
|
target: u,
|
|
1470
1470
|
routeName: h,
|
|
1471
1471
|
params: p
|
|
1472
|
-
} = v, m =
|
|
1472
|
+
} = v, m = M(v, [
|
|
1473
1473
|
"className",
|
|
1474
1474
|
"disabled",
|
|
1475
1475
|
"role",
|
|
@@ -1507,8 +1507,8 @@ const Ls = B(
|
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
1509
|
return h ? /* @__PURE__ */ d.createElement(
|
|
1510
|
-
|
|
1511
|
-
|
|
1510
|
+
_o,
|
|
1511
|
+
k(b(b({
|
|
1512
1512
|
name: h,
|
|
1513
1513
|
params: p
|
|
1514
1514
|
}, $), W(m)), {
|
|
@@ -1516,8 +1516,8 @@ const Ls = B(
|
|
|
1516
1516
|
}),
|
|
1517
1517
|
a
|
|
1518
1518
|
) : /* @__PURE__ */ d.createElement(
|
|
1519
|
-
|
|
1520
|
-
|
|
1519
|
+
Do,
|
|
1520
|
+
k(b(b({
|
|
1521
1521
|
href: l,
|
|
1522
1522
|
target: u
|
|
1523
1523
|
}, $), W(m)), {
|
|
@@ -1526,37 +1526,37 @@ const Ls = B(
|
|
|
1526
1526
|
a
|
|
1527
1527
|
);
|
|
1528
1528
|
}
|
|
1529
|
-
),
|
|
1529
|
+
), _o = y(So)`
|
|
1530
1530
|
${(e) => e.disabled ? `
|
|
1531
1531
|
pointer-events: none;
|
|
1532
1532
|
opacity: .7;
|
|
1533
1533
|
` : "cursor: pointer;"}
|
|
1534
|
-
`,
|
|
1534
|
+
`, Do = y.a`
|
|
1535
1535
|
${(e) => e.disabled ? `
|
|
1536
1536
|
pointer-events: none;
|
|
1537
1537
|
opacity: .7;
|
|
1538
1538
|
` : "cursor: pointer;"}
|
|
1539
|
-
`,
|
|
1539
|
+
`, To = (s) => {
|
|
1540
1540
|
var i = s, {
|
|
1541
1541
|
visible: e,
|
|
1542
1542
|
duration: t = 500,
|
|
1543
1543
|
children: n,
|
|
1544
1544
|
onClick: o = () => {
|
|
1545
1545
|
}
|
|
1546
|
-
} = i, r =
|
|
1546
|
+
} = i, r = M(i, [
|
|
1547
1547
|
"visible",
|
|
1548
1548
|
"duration",
|
|
1549
1549
|
"children",
|
|
1550
1550
|
"onClick"
|
|
1551
1551
|
]);
|
|
1552
|
-
const c = _(), l =
|
|
1552
|
+
const c = _(), l = D(
|
|
1553
1553
|
(a) => {
|
|
1554
1554
|
a.target === c.current && o(a);
|
|
1555
1555
|
},
|
|
1556
1556
|
[o]
|
|
1557
1557
|
);
|
|
1558
1558
|
return /* @__PURE__ */ d.createElement(
|
|
1559
|
-
|
|
1559
|
+
lt,
|
|
1560
1560
|
{
|
|
1561
1561
|
in: e,
|
|
1562
1562
|
className: "humany-overlay-transition",
|
|
@@ -1565,7 +1565,7 @@ const Ls = B(
|
|
|
1565
1565
|
timeout: t
|
|
1566
1566
|
},
|
|
1567
1567
|
/* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
|
|
1568
|
-
|
|
1568
|
+
Mo,
|
|
1569
1569
|
b({
|
|
1570
1570
|
className: "humany-overlay",
|
|
1571
1571
|
duration: t,
|
|
@@ -1575,7 +1575,7 @@ const Ls = B(
|
|
|
1575
1575
|
n
|
|
1576
1576
|
))
|
|
1577
1577
|
);
|
|
1578
|
-
},
|
|
1578
|
+
}, Mo = y.div`
|
|
1579
1579
|
background: rgba(0, 0, 0, 0.6);
|
|
1580
1580
|
min-width: 100%;
|
|
1581
1581
|
min-height: 100%;
|
|
@@ -1605,11 +1605,11 @@ const Ls = B(
|
|
|
1605
1605
|
&.humany-overlay-transition-exit-done {
|
|
1606
1606
|
opacity: 0;
|
|
1607
1607
|
}
|
|
1608
|
-
`,
|
|
1608
|
+
`, $t = To, zo = it`
|
|
1609
1609
|
100% {
|
|
1610
1610
|
transform: rotate(360deg);
|
|
1611
1611
|
}
|
|
1612
|
-
`,
|
|
1612
|
+
`, Lo = it`
|
|
1613
1613
|
0% {
|
|
1614
1614
|
stroke-dasharray: 1, 200;
|
|
1615
1615
|
stroke-dashoffset: 0;
|
|
@@ -1622,8 +1622,8 @@ const Ls = B(
|
|
|
1622
1622
|
stroke-dasharray: 89, 200;
|
|
1623
1623
|
stroke-dashoffset: -124px;
|
|
1624
1624
|
}
|
|
1625
|
-
`,
|
|
1626
|
-
animation: ${
|
|
1625
|
+
`, Po = y.svg`
|
|
1626
|
+
animation: ${zo} 2s linear infinite;
|
|
1627
1627
|
height: 100%;
|
|
1628
1628
|
transform-origin: center center;
|
|
1629
1629
|
width: 100%;
|
|
@@ -1634,7 +1634,7 @@ const Ls = B(
|
|
|
1634
1634
|
right: 0;
|
|
1635
1635
|
margin: auto;
|
|
1636
1636
|
transition: 200ms ease-out opacity;
|
|
1637
|
-
`,
|
|
1637
|
+
`, Oo = y.div`
|
|
1638
1638
|
position: absolute;
|
|
1639
1639
|
top: 0;
|
|
1640
1640
|
bottom: 0;
|
|
@@ -1652,7 +1652,7 @@ const Ls = B(
|
|
|
1652
1652
|
svg {
|
|
1653
1653
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
1654
1654
|
}
|
|
1655
|
-
`,
|
|
1655
|
+
`, Ro = y.div`
|
|
1656
1656
|
position: relative;
|
|
1657
1657
|
margin: 0 auto;
|
|
1658
1658
|
width: 100px;
|
|
@@ -1661,18 +1661,18 @@ const Ls = B(
|
|
|
1661
1661
|
display: block;
|
|
1662
1662
|
padding-top: 100%;
|
|
1663
1663
|
}
|
|
1664
|
-
`,
|
|
1664
|
+
`, No = y.circle`
|
|
1665
1665
|
stroke-dasharray: 1, 200;
|
|
1666
1666
|
stroke-dashoffset: 0;
|
|
1667
|
-
animation: ${
|
|
1667
|
+
animation: ${Lo} 1.5s ease-in-out infinite;
|
|
1668
1668
|
stroke-linecap: round;
|
|
1669
1669
|
stroke: ${(e) => {
|
|
1670
1670
|
var t;
|
|
1671
1671
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
1672
1672
|
}};
|
|
1673
1673
|
stroke-width: 2px;
|
|
1674
|
-
`,
|
|
1675
|
-
|
|
1674
|
+
`, Io = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ d.createElement(Oo, { className: z("humany-loader", e), "data-loading": t }, /* @__PURE__ */ d.createElement(Ro, { className: "humany-spinner" }, /* @__PURE__ */ d.createElement(Po, { viewBox: "25 25 50 50" }, /* @__PURE__ */ d.createElement(
|
|
1675
|
+
No,
|
|
1676
1676
|
{
|
|
1677
1677
|
cx: "50",
|
|
1678
1678
|
cy: "50",
|
|
@@ -1681,22 +1681,22 @@ const Ls = B(
|
|
|
1681
1681
|
"stroke-width": "2",
|
|
1682
1682
|
"stroke-miterlimit": "10"
|
|
1683
1683
|
}
|
|
1684
|
-
)))),
|
|
1684
|
+
)))), Bo = Io, Wo = (r) => {
|
|
1685
1685
|
var s = r, {
|
|
1686
1686
|
zoomState: e,
|
|
1687
1687
|
image: t,
|
|
1688
1688
|
changeZoom: n
|
|
1689
|
-
} = s, o =
|
|
1689
|
+
} = s, o = M(s, [
|
|
1690
1690
|
"zoomState",
|
|
1691
1691
|
"image",
|
|
1692
1692
|
"changeZoom"
|
|
1693
1693
|
]);
|
|
1694
1694
|
var $;
|
|
1695
|
-
const i = _(null), [c, l] =
|
|
1695
|
+
const i = _(null), [c, l] = E(!1), [a, u] = E(!1), v = o.style || {}, { width: h, height: p } = v, m = M(v, ["width", "height"]), g = D(() => {
|
|
1696
1696
|
const f = i.current;
|
|
1697
1697
|
if (f) {
|
|
1698
|
-
const L = window.innerWidth / f.width,
|
|
1699
|
-
return
|
|
1698
|
+
const L = window.innerWidth / f.width, O = window.innerHeight / f.height, T = Math.min(L, O);
|
|
1699
|
+
return O >= 1 && L >= 1 ? 1 : T;
|
|
1700
1700
|
}
|
|
1701
1701
|
return 1;
|
|
1702
1702
|
}, [c, t.src]), x = ge(() => {
|
|
@@ -1713,9 +1713,9 @@ const Ls = B(
|
|
|
1713
1713
|
}, [e, i, c, t.src]);
|
|
1714
1714
|
return w(() => (l(!1), function() {
|
|
1715
1715
|
u(!1);
|
|
1716
|
-
}), [t.src]), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
1717
|
-
|
|
1718
|
-
|
|
1716
|
+
}), [t.src]), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(Ho, { loading: !c }), /* @__PURE__ */ d.createElement(
|
|
1717
|
+
jo,
|
|
1718
|
+
k(b({
|
|
1719
1719
|
onLoad: () => {
|
|
1720
1720
|
l(!0);
|
|
1721
1721
|
},
|
|
@@ -1728,15 +1728,15 @@ const Ls = B(
|
|
|
1728
1728
|
src: t.src,
|
|
1729
1729
|
loaded: c
|
|
1730
1730
|
})
|
|
1731
|
-
), /* @__PURE__ */ d.createElement(
|
|
1732
|
-
},
|
|
1731
|
+
), /* @__PURE__ */ d.createElement(Vo, null));
|
|
1732
|
+
}, Ho = y(Bo)`
|
|
1733
1733
|
svg circle {
|
|
1734
1734
|
stroke: #ffffff;
|
|
1735
1735
|
}
|
|
1736
|
-
`,
|
|
1736
|
+
`, jo = y.img`
|
|
1737
1737
|
transform: none;
|
|
1738
1738
|
|
|
1739
|
-
${(e) => e.imageSize &&
|
|
1739
|
+
${(e) => e.imageSize && S`
|
|
1740
1740
|
width: ${e.imageSize[0]};
|
|
1741
1741
|
height: ${e.imageSize[1]};
|
|
1742
1742
|
display: inline-block;
|
|
@@ -1744,20 +1744,20 @@ const Ls = B(
|
|
|
1744
1744
|
vertical-align: middle;
|
|
1745
1745
|
position: relative;
|
|
1746
1746
|
${(e) => !e.loaded && "display:none;"}
|
|
1747
|
-
`,
|
|
1747
|
+
`, Vo = y.div`
|
|
1748
1748
|
height: 100%;
|
|
1749
1749
|
display: inline-block;
|
|
1750
1750
|
vertical-align: middle;
|
|
1751
|
-
`,
|
|
1752
|
-
const e = _(), [t, n] =
|
|
1751
|
+
`, Fo = Wo, Ao = () => {
|
|
1752
|
+
const e = _(), [t, n] = E(!0), o = D(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
1753
1753
|
n(!1);
|
|
1754
1754
|
}, 3e3), () => {
|
|
1755
1755
|
e.current && clearTimeout(e.current);
|
|
1756
1756
|
}), [t, e]);
|
|
1757
1757
|
return [t, o];
|
|
1758
|
-
},
|
|
1759
|
-
var
|
|
1760
|
-
const n =
|
|
1758
|
+
}, Ko = ({ attrs: e, htmlBody: t }) => {
|
|
1759
|
+
var Ke;
|
|
1760
|
+
const n = te("Escape"), o = te("ArrowLeft"), r = te("ArrowRight"), [s, i] = E(1), [c, l] = E({ top: 0, left: 0, x: 0, y: 0 }), [a, u] = E(!1), [h, p] = Ao(), [m, g] = E(null), [x, v] = E(null), $ = _(null), f = _(null), L = _(null), O = _(null);
|
|
1761
1761
|
w(() => {
|
|
1762
1762
|
n && g(null);
|
|
1763
1763
|
}, [n]), w(() => {
|
|
@@ -1766,104 +1766,104 @@ const Ls = B(
|
|
|
1766
1766
|
var Y, U;
|
|
1767
1767
|
if (m === null || f.current === null)
|
|
1768
1768
|
return;
|
|
1769
|
-
const
|
|
1769
|
+
const C = f.current.firstElementChild, P = (Y = L.current) == null ? void 0 : Y.querySelector(".nav-left"), F = (U = L.current) == null ? void 0 : U.querySelector(".nav-right");
|
|
1770
1770
|
if (x === "Right")
|
|
1771
1771
|
me && F ? F.focus() : de && P && P.focus();
|
|
1772
1772
|
else if (x === "Left")
|
|
1773
1773
|
de && P ? P.focus() : me && F && F.focus();
|
|
1774
1774
|
else {
|
|
1775
|
-
if (!
|
|
1775
|
+
if (!C)
|
|
1776
1776
|
return;
|
|
1777
|
-
|
|
1777
|
+
C.focus();
|
|
1778
1778
|
}
|
|
1779
1779
|
}, [m, f, L, x]), w(() => {
|
|
1780
1780
|
if (o) {
|
|
1781
1781
|
if (de)
|
|
1782
|
-
return
|
|
1782
|
+
return Fe();
|
|
1783
1783
|
} else if (r && me)
|
|
1784
|
-
return
|
|
1784
|
+
return Ae();
|
|
1785
1785
|
}, [o, r]);
|
|
1786
|
-
const
|
|
1787
|
-
const
|
|
1788
|
-
|
|
1789
|
-
const P =
|
|
1786
|
+
const T = ge(() => {
|
|
1787
|
+
const C = document.createElement("div");
|
|
1788
|
+
C.innerHTML = t || "";
|
|
1789
|
+
const P = C.getElementsByTagName("img");
|
|
1790
1790
|
return Array.from(P).reduce((Y, U) => {
|
|
1791
|
-
const
|
|
1792
|
-
if (
|
|
1793
|
-
const
|
|
1794
|
-
src:
|
|
1795
|
-
originalWidth:
|
|
1796
|
-
originalHeight:
|
|
1791
|
+
const qe = U.getAttribute("src"), zt = U.height || Number.parseInt(U.style.height, 10), Lt = U.width || Number.parseInt(U.style.width, 10);
|
|
1792
|
+
if (qe) {
|
|
1793
|
+
const Pt = {
|
|
1794
|
+
src: qe,
|
|
1795
|
+
originalWidth: Lt,
|
|
1796
|
+
originalHeight: zt
|
|
1797
1797
|
};
|
|
1798
|
-
Y.push(
|
|
1798
|
+
Y.push(Pt);
|
|
1799
1799
|
}
|
|
1800
1800
|
return Y;
|
|
1801
1801
|
}, []);
|
|
1802
|
-
}, [t]), V =
|
|
1803
|
-
const { src:
|
|
1804
|
-
if (
|
|
1805
|
-
const P =
|
|
1802
|
+
}, [t]), V = D(() => {
|
|
1803
|
+
const { src: C } = e;
|
|
1804
|
+
if (C) {
|
|
1805
|
+
const P = T.findIndex((F, Y) => F.src === C);
|
|
1806
1806
|
g(P);
|
|
1807
1807
|
}
|
|
1808
|
-
}, [
|
|
1808
|
+
}, [T, e]), St = D((C) => {
|
|
1809
1809
|
g(null);
|
|
1810
|
-
}, []),
|
|
1811
|
-
(
|
|
1812
|
-
i(
|
|
1810
|
+
}, []), Ve = D(
|
|
1811
|
+
(C) => {
|
|
1812
|
+
i(C ? s + s * 0.25 : s - s * 0.25);
|
|
1813
1813
|
},
|
|
1814
1814
|
[i, s]
|
|
1815
|
-
),
|
|
1815
|
+
), kt = D(() => {
|
|
1816
1816
|
if (m !== null) {
|
|
1817
|
-
const { src:
|
|
1818
|
-
|
|
1817
|
+
const { src: C } = T[m];
|
|
1818
|
+
C && window.open(C, "_self");
|
|
1819
1819
|
}
|
|
1820
|
-
}, [
|
|
1821
|
-
(
|
|
1822
|
-
const P =
|
|
1823
|
-
P && (l({ top: P.scrollTop, left: P.scrollLeft, x:
|
|
1820
|
+
}, [T, m]), _t = D(
|
|
1821
|
+
(C) => {
|
|
1822
|
+
const P = O.current;
|
|
1823
|
+
P && (l({ top: P.scrollTop, left: P.scrollLeft, x: C.clientX, y: C.clientY }), u(!0));
|
|
1824
1824
|
},
|
|
1825
|
-
[
|
|
1826
|
-
),
|
|
1827
|
-
(
|
|
1828
|
-
const P =
|
|
1825
|
+
[O]
|
|
1826
|
+
), Dt = D(
|
|
1827
|
+
(C) => {
|
|
1828
|
+
const P = O.current;
|
|
1829
1829
|
if (P && a) {
|
|
1830
|
-
const F =
|
|
1830
|
+
const F = C.clientX - c.x, Y = C.clientY - c.y;
|
|
1831
1831
|
P.scrollTop = c.top - Y, P.scrollLeft = c.left - F;
|
|
1832
1832
|
}
|
|
1833
1833
|
},
|
|
1834
1834
|
[a, c]
|
|
1835
|
-
),
|
|
1836
|
-
|
|
1837
|
-
},
|
|
1838
|
-
if (
|
|
1839
|
-
const
|
|
1840
|
-
if (
|
|
1841
|
-
const P =
|
|
1835
|
+
), Tt = (C) => {
|
|
1836
|
+
C.preventDefault(), u(!1);
|
|
1837
|
+
}, Mt = ge(() => {
|
|
1838
|
+
if (O.current) {
|
|
1839
|
+
const C = O.current.getElementsByTagName("img");
|
|
1840
|
+
if (C && C.length) {
|
|
1841
|
+
const P = C[0];
|
|
1842
1842
|
return P.width > window.innerWidth || P.height > window.innerHeight;
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
1845
|
return !1;
|
|
1846
|
-
}, [
|
|
1846
|
+
}, [O, s]), Fe = () => {
|
|
1847
1847
|
m !== null && (v("Left"), g(m - 1));
|
|
1848
|
-
},
|
|
1848
|
+
}, Ae = () => {
|
|
1849
1849
|
m !== null && (v("Right"), g(m + 1));
|
|
1850
|
-
}, de = m !== null && m > 0 &&
|
|
1851
|
-
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
1852
|
-
|
|
1850
|
+
}, de = m !== null && m > 0 && T.length > 1, me = m !== null && T.length - 1 > m;
|
|
1851
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: m !== null, onClick: St }, /* @__PURE__ */ d.createElement(
|
|
1852
|
+
Jo,
|
|
1853
1853
|
{
|
|
1854
1854
|
onMouseDown: () => p(),
|
|
1855
1855
|
onMouseMove: () => p(),
|
|
1856
1856
|
onTouchStart: () => p(),
|
|
1857
1857
|
onKeyDown: () => p()
|
|
1858
1858
|
},
|
|
1859
|
-
/* @__PURE__ */ d.createElement(
|
|
1860
|
-
|
|
1859
|
+
/* @__PURE__ */ d.createElement(er, { show: h.toString() }, /* @__PURE__ */ d.createElement(
|
|
1860
|
+
Xo,
|
|
1861
1861
|
{
|
|
1862
1862
|
ref: f,
|
|
1863
1863
|
buttons: [
|
|
1864
1864
|
{
|
|
1865
1865
|
id: "download",
|
|
1866
|
-
onClick:
|
|
1866
|
+
onClick: kt,
|
|
1867
1867
|
icon: "download",
|
|
1868
1868
|
ariaLabel: "Download image"
|
|
1869
1869
|
},
|
|
@@ -1877,36 +1877,36 @@ const Ls = B(
|
|
|
1877
1877
|
}
|
|
1878
1878
|
)),
|
|
1879
1879
|
/* @__PURE__ */ d.createElement(
|
|
1880
|
-
|
|
1880
|
+
nr,
|
|
1881
1881
|
{
|
|
1882
1882
|
scrolling: a.toString(),
|
|
1883
|
-
isDraggable:
|
|
1884
|
-
ref:
|
|
1885
|
-
onMouseMove:
|
|
1886
|
-
onMouseDown:
|
|
1887
|
-
onMouseUp:
|
|
1883
|
+
isDraggable: Mt.toString(),
|
|
1884
|
+
ref: O,
|
|
1885
|
+
onMouseMove: Dt,
|
|
1886
|
+
onMouseDown: _t,
|
|
1887
|
+
onMouseUp: Tt
|
|
1888
1888
|
},
|
|
1889
1889
|
m !== null && /* @__PURE__ */ d.createElement(
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
changeZoom: (
|
|
1893
|
-
i(
|
|
1890
|
+
Fo,
|
|
1891
|
+
k(b({
|
|
1892
|
+
changeZoom: (C) => {
|
|
1893
|
+
i(C);
|
|
1894
1894
|
},
|
|
1895
1895
|
zoomState: s
|
|
1896
1896
|
}, e), {
|
|
1897
|
-
image:
|
|
1897
|
+
image: T[m]
|
|
1898
1898
|
})
|
|
1899
1899
|
)
|
|
1900
1900
|
),
|
|
1901
1901
|
/* @__PURE__ */ d.createElement(
|
|
1902
|
-
|
|
1902
|
+
Qo,
|
|
1903
1903
|
{
|
|
1904
1904
|
ref: L,
|
|
1905
1905
|
show: h.toString(),
|
|
1906
1906
|
buttons: [
|
|
1907
1907
|
{
|
|
1908
1908
|
id: "previous",
|
|
1909
|
-
onClick:
|
|
1909
|
+
onClick: Fe,
|
|
1910
1910
|
icon: "caret-left",
|
|
1911
1911
|
circle: !0,
|
|
1912
1912
|
show: de,
|
|
@@ -1915,7 +1915,7 @@ const Ls = B(
|
|
|
1915
1915
|
},
|
|
1916
1916
|
{
|
|
1917
1917
|
id: "next",
|
|
1918
|
-
onClick:
|
|
1918
|
+
onClick: Ae,
|
|
1919
1919
|
icon: "caret-right",
|
|
1920
1920
|
circle: !0,
|
|
1921
1921
|
show: me,
|
|
@@ -1925,40 +1925,40 @@ const Ls = B(
|
|
|
1925
1925
|
]
|
|
1926
1926
|
}
|
|
1927
1927
|
),
|
|
1928
|
-
/* @__PURE__ */ d.createElement(
|
|
1929
|
-
|
|
1928
|
+
/* @__PURE__ */ d.createElement(tr, { show: h.toString() }, /* @__PURE__ */ d.createElement(
|
|
1929
|
+
Zo,
|
|
1930
1930
|
{
|
|
1931
1931
|
buttons: [
|
|
1932
1932
|
{
|
|
1933
1933
|
id: "zoom-out",
|
|
1934
|
-
onClick: () =>
|
|
1934
|
+
onClick: () => Ve(!1),
|
|
1935
1935
|
icon: "zoom-out",
|
|
1936
1936
|
ariaLabel: "Zoom out"
|
|
1937
1937
|
},
|
|
1938
1938
|
{
|
|
1939
1939
|
id: "zoom-in",
|
|
1940
|
-
onClick: () =>
|
|
1940
|
+
onClick: () => Ve(!0),
|
|
1941
1941
|
icon: "zoom-in",
|
|
1942
1942
|
ariaLabel: "Zoom in"
|
|
1943
1943
|
}
|
|
1944
1944
|
]
|
|
1945
1945
|
}
|
|
1946
|
-
), /* @__PURE__ */ d.createElement(
|
|
1946
|
+
), /* @__PURE__ */ d.createElement(Go, { variant: "span" }, Math.trunc(s * 100), "%"))
|
|
1947
1947
|
)), /* @__PURE__ */ d.createElement(
|
|
1948
|
-
|
|
1948
|
+
qo,
|
|
1949
1949
|
{
|
|
1950
1950
|
ref: $,
|
|
1951
1951
|
onClick: V,
|
|
1952
|
-
onKeyDown: (
|
|
1953
|
-
|
|
1952
|
+
onKeyDown: (C) => {
|
|
1953
|
+
C.key === "Enter" && (C.preventDefault(), V());
|
|
1954
1954
|
},
|
|
1955
1955
|
tabIndex: 0
|
|
1956
1956
|
},
|
|
1957
|
-
/* @__PURE__ */ d.createElement(
|
|
1957
|
+
/* @__PURE__ */ d.createElement(or, k(b({}, e), { alt: ((Ke = e.alt) == null ? void 0 : Ke.toString()) || "" }))
|
|
1958
1958
|
));
|
|
1959
|
-
},
|
|
1959
|
+
}, We = B(
|
|
1960
1960
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ d.createElement(
|
|
1961
|
-
|
|
1961
|
+
Yo,
|
|
1962
1962
|
{
|
|
1963
1963
|
ref: o,
|
|
1964
1964
|
show: e,
|
|
@@ -1966,7 +1966,7 @@ const Ls = B(
|
|
|
1966
1966
|
},
|
|
1967
1967
|
t.map(
|
|
1968
1968
|
({ id: r, circle: s = !1, show: i = !0, ariaLabel: c, onClick: l, icon: a, className: u }, h) => /* @__PURE__ */ d.createElement(
|
|
1969
|
-
|
|
1969
|
+
Uo,
|
|
1970
1970
|
{
|
|
1971
1971
|
key: r + h.toString(),
|
|
1972
1972
|
circle: s.toString(),
|
|
@@ -1981,30 +1981,30 @@ const Ls = B(
|
|
|
1981
1981
|
)
|
|
1982
1982
|
)
|
|
1983
1983
|
)
|
|
1984
|
-
),
|
|
1984
|
+
), wt = y.div`
|
|
1985
1985
|
transition: opacity 0.3s ease 0s;
|
|
1986
1986
|
z-index: 5;
|
|
1987
|
-
${(e) => e.show === "true" ? "opacity: 1;" :
|
|
1987
|
+
${(e) => e.show === "true" ? "opacity: 1;" : S`
|
|
1988
1988
|
opacity: 0;
|
|
1989
1989
|
pointer-events: none;
|
|
1990
1990
|
`}
|
|
1991
|
-
`,
|
|
1991
|
+
`, qo = y(Be)`
|
|
1992
1992
|
display: inline-block !important;
|
|
1993
|
-
`,
|
|
1993
|
+
`, Yo = y(wt)`
|
|
1994
1994
|
position: fixed;
|
|
1995
1995
|
display: flex;
|
|
1996
1996
|
gap: ${(e) => {
|
|
1997
1997
|
var t;
|
|
1998
1998
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
1999
1999
|
}};
|
|
2000
|
-
`,
|
|
2001
|
-
width: ${
|
|
2002
|
-
height: ${
|
|
2000
|
+
`, Te = "39px", Uo = y(be)`
|
|
2001
|
+
width: ${Te};
|
|
2002
|
+
height: ${Te};
|
|
2003
2003
|
display: flex;
|
|
2004
2004
|
justify-content: center;
|
|
2005
2005
|
align-items: center;
|
|
2006
2006
|
|
|
2007
|
-
${(e) => e.icon === "caret-left" &&
|
|
2007
|
+
${(e) => e.icon === "caret-left" && S`
|
|
2008
2008
|
svg {
|
|
2009
2009
|
position: relative;
|
|
2010
2010
|
left: -2px;
|
|
@@ -2013,7 +2013,7 @@ const Ls = B(
|
|
|
2013
2013
|
|
|
2014
2014
|
${(e) => {
|
|
2015
2015
|
var t;
|
|
2016
|
-
return e.circle === "true" ?
|
|
2016
|
+
return e.circle === "true" ? S`
|
|
2017
2017
|
background-color: #ffffff;
|
|
2018
2018
|
border-radius: 50%;
|
|
2019
2019
|
|
|
@@ -2036,7 +2036,7 @@ const Ls = B(
|
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
|
-
` :
|
|
2039
|
+
` : S`
|
|
2040
2040
|
svg {
|
|
2041
2041
|
path,
|
|
2042
2042
|
line {
|
|
@@ -2052,17 +2052,17 @@ const Ls = B(
|
|
|
2052
2052
|
`;
|
|
2053
2053
|
}}
|
|
2054
2054
|
|
|
2055
|
-
${(e) => e.show === "true" ?
|
|
2055
|
+
${(e) => e.show === "true" ? S`
|
|
2056
2056
|
opacity: 0.8;
|
|
2057
2057
|
transition: opacity 0.3s ease 0s;
|
|
2058
2058
|
&:hover {
|
|
2059
2059
|
opacity: 1;
|
|
2060
2060
|
}
|
|
2061
|
-
` :
|
|
2061
|
+
` : S`
|
|
2062
2062
|
opacity: 0;
|
|
2063
2063
|
pointer-events: none;
|
|
2064
2064
|
`}
|
|
2065
|
-
`,
|
|
2065
|
+
`, Xo = y(We)`
|
|
2066
2066
|
top: ${(e) => {
|
|
2067
2067
|
var t;
|
|
2068
2068
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2071,7 +2071,7 @@ const Ls = B(
|
|
|
2071
2071
|
var t;
|
|
2072
2072
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2073
2073
|
}};
|
|
2074
|
-
`,
|
|
2074
|
+
`, Zo = y(We)`
|
|
2075
2075
|
bottom: ${(e) => {
|
|
2076
2076
|
var t;
|
|
2077
2077
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2079,11 +2079,11 @@ const Ls = B(
|
|
|
2079
2079
|
width: 100%;
|
|
2080
2080
|
align-items: center;
|
|
2081
2081
|
justify-content: center;
|
|
2082
|
-
`,
|
|
2082
|
+
`, Qo = y(We)`
|
|
2083
2083
|
display: block;
|
|
2084
2084
|
button {
|
|
2085
2085
|
position: fixed;
|
|
2086
|
-
top: calc(50% - calc(${
|
|
2086
|
+
top: calc(50% - calc(${Te} / 2));
|
|
2087
2087
|
&:first-child {
|
|
2088
2088
|
left: ${(e) => {
|
|
2089
2089
|
var t;
|
|
@@ -2097,7 +2097,7 @@ const Ls = B(
|
|
|
2097
2097
|
}};
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
|
-
`,
|
|
2100
|
+
`, Go = y(ae)`
|
|
2101
2101
|
position: fixed;
|
|
2102
2102
|
bottom: ${(e) => {
|
|
2103
2103
|
var t;
|
|
@@ -2116,21 +2116,21 @@ const Ls = B(
|
|
|
2116
2116
|
var t;
|
|
2117
2117
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2118
2118
|
}};
|
|
2119
|
-
`,
|
|
2119
|
+
`, xt = y(wt)`
|
|
2120
2120
|
position: absolute;
|
|
2121
2121
|
width: 100vw;
|
|
2122
2122
|
height: 88px;
|
|
2123
2123
|
left: 0px;
|
|
2124
2124
|
z-index: 5;
|
|
2125
|
-
`,
|
|
2125
|
+
`, Jo = y.div`
|
|
2126
2126
|
width: 100%;
|
|
2127
|
-
`,
|
|
2127
|
+
`, er = y(xt)`
|
|
2128
2128
|
top: 0px;
|
|
2129
2129
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2130
|
-
`,
|
|
2130
|
+
`, tr = y(xt)`
|
|
2131
2131
|
bottom: 0px;
|
|
2132
2132
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2133
|
-
`,
|
|
2133
|
+
`, nr = y.div`
|
|
2134
2134
|
width: 100%;
|
|
2135
2135
|
height: 100vh;
|
|
2136
2136
|
overflow: auto;
|
|
@@ -2139,13 +2139,13 @@ const Ls = B(
|
|
|
2139
2139
|
white-space: nowrap;
|
|
2140
2140
|
justify-content: center;
|
|
2141
2141
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2142
|
-
`,
|
|
2142
|
+
`, or = y.img`
|
|
2143
2143
|
cursor: pointer;
|
|
2144
|
-
`,
|
|
2144
|
+
`, rr = Ko, sr = B(
|
|
2145
2145
|
(c, i) => {
|
|
2146
2146
|
var l = c, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2147
|
-
}, close: r = !1 } = l, s =
|
|
2148
|
-
const [a, u] =
|
|
2147
|
+
}, close: r = !1 } = l, s = M(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2148
|
+
const [a, u] = gt(), [h, p] = ft(!0), m = _(), g = _(ce()), x = te("Escape");
|
|
2149
2149
|
w(() => {
|
|
2150
2150
|
(x || r) && u(!1);
|
|
2151
2151
|
}, [x, r]), w(() => {
|
|
@@ -2153,23 +2153,23 @@ const Ls = B(
|
|
|
2153
2153
|
}, [a, m.current]), ve("router:changed", () => {
|
|
2154
2154
|
u(!1);
|
|
2155
2155
|
});
|
|
2156
|
-
const v =
|
|
2156
|
+
const v = D(
|
|
2157
2157
|
(f) => {
|
|
2158
2158
|
u(!1), o(f);
|
|
2159
2159
|
},
|
|
2160
2160
|
[o, u]
|
|
2161
2161
|
);
|
|
2162
|
-
|
|
2162
|
+
ze(i, () => ({
|
|
2163
2163
|
close() {
|
|
2164
2164
|
u(!1);
|
|
2165
2165
|
}
|
|
2166
2166
|
}));
|
|
2167
|
-
const $ =
|
|
2167
|
+
const $ = D(() => Re(g.current, () => {
|
|
2168
2168
|
u(!1);
|
|
2169
2169
|
}), [g.current]);
|
|
2170
|
-
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
2171
|
-
|
|
2172
|
-
|
|
2170
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement($t, { visible: a, onClick: v }, /* @__PURE__ */ d.createElement(
|
|
2171
|
+
ar,
|
|
2172
|
+
k(b({
|
|
2173
2173
|
className: z(
|
|
2174
2174
|
e,
|
|
2175
2175
|
"humany-modal",
|
|
@@ -2181,7 +2181,7 @@ const Ls = B(
|
|
|
2181
2181
|
ref: p
|
|
2182
2182
|
}),
|
|
2183
2183
|
/* @__PURE__ */ d.createElement(
|
|
2184
|
-
|
|
2184
|
+
Ie,
|
|
2185
2185
|
{
|
|
2186
2186
|
onClick: () => u(!1),
|
|
2187
2187
|
tabIndex: 0,
|
|
@@ -2196,7 +2196,7 @@ const Ls = B(
|
|
|
2196
2196
|
}
|
|
2197
2197
|
}));
|
|
2198
2198
|
}
|
|
2199
|
-
),
|
|
2199
|
+
), ir = sr, ar = y.div`
|
|
2200
2200
|
font-family: ${(e) => {
|
|
2201
2201
|
var t;
|
|
2202
2202
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2212,10 +2212,10 @@ const Ls = B(
|
|
|
2212
2212
|
var t;
|
|
2213
2213
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2214
2214
|
}};
|
|
2215
|
-
${(e) =>
|
|
2215
|
+
${(e) => yt(e)}
|
|
2216
2216
|
${(e) => e.css && e.css}
|
|
2217
2217
|
outline: none;
|
|
2218
|
-
`,
|
|
2218
|
+
`, cr = ({
|
|
2219
2219
|
className: e,
|
|
2220
2220
|
trigger: t,
|
|
2221
2221
|
header: n = "",
|
|
@@ -2227,15 +2227,15 @@ const Ls = B(
|
|
|
2227
2227
|
cancelLabel: i = "",
|
|
2228
2228
|
confirmLabel: c = ""
|
|
2229
2229
|
}) => {
|
|
2230
|
-
const l = _(), a =
|
|
2230
|
+
const l = _(), a = D(() => {
|
|
2231
2231
|
var h;
|
|
2232
2232
|
r(), (h = l == null ? void 0 : l.current) == null || h.close();
|
|
2233
|
-
}, [r]), u =
|
|
2233
|
+
}, [r]), u = D(() => {
|
|
2234
2234
|
var h;
|
|
2235
2235
|
s(), (h = l == null ? void 0 : l.current) == null || h.close();
|
|
2236
2236
|
}, [s]);
|
|
2237
|
-
return /* @__PURE__ */ d.createElement(
|
|
2238
|
-
},
|
|
2237
|
+
return /* @__PURE__ */ d.createElement(lr, { className: e, trigger: t, ref: l, onOverlayClick: a }, n && /* @__PURE__ */ d.createElement(et, null, n), o && /* @__PURE__ */ d.createElement(et, null, o), c && /* @__PURE__ */ d.createElement(ur, { onClick: u }, c), i && /* @__PURE__ */ d.createElement(dr, { onClick: a }, i));
|
|
2238
|
+
}, Hs = cr, lr = y(ir)`
|
|
2239
2239
|
display: block;
|
|
2240
2240
|
|
|
2241
2241
|
span {
|
|
@@ -2253,7 +2253,7 @@ const Ls = B(
|
|
|
2253
2253
|
}};
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
|
-
`,
|
|
2256
|
+
`, ur = y(be)`
|
|
2257
2257
|
display: inline-block;
|
|
2258
2258
|
min-width: 50px;
|
|
2259
2259
|
${(e) => {
|
|
@@ -2283,7 +2283,7 @@ const Ls = B(
|
|
|
2283
2283
|
&:focus-visible {
|
|
2284
2284
|
${Z}
|
|
2285
2285
|
}
|
|
2286
|
-
`,
|
|
2286
|
+
`, dr = y(be)`
|
|
2287
2287
|
display: inline-block;
|
|
2288
2288
|
min-width: 50px;
|
|
2289
2289
|
${(e) => {
|
|
@@ -2304,25 +2304,25 @@ const Ls = B(
|
|
|
2304
2304
|
&:focus-visible {
|
|
2305
2305
|
${Z};
|
|
2306
2306
|
}
|
|
2307
|
-
`,
|
|
2307
|
+
`, mr = ({
|
|
2308
2308
|
header: e = "",
|
|
2309
2309
|
link: t = "",
|
|
2310
2310
|
suggestionHeader: n = "",
|
|
2311
2311
|
suggestion: o = ""
|
|
2312
|
-
}) => /* @__PURE__ */ d.createElement(
|
|
2312
|
+
}) => /* @__PURE__ */ d.createElement(hr, null, /* @__PURE__ */ d.createElement(pr, null, /* @__PURE__ */ d.createElement(ae, { variant: "h2" }, "404")), /* @__PURE__ */ d.createElement(fr, null, /* @__PURE__ */ d.createElement(ae, { variant: "h3" }, e), /* @__PURE__ */ d.createElement(br, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ d.createElement(gr, null, /* @__PURE__ */ d.createElement("span", null, n), /* @__PURE__ */ d.createElement("ul", null, /* @__PURE__ */ d.createElement("li", null, o)))), js = mr, hr = y.div`
|
|
2313
2313
|
display: flex;
|
|
2314
2314
|
flex-wrap: wrap;
|
|
2315
|
-
`,
|
|
2315
|
+
`, pr = y.div`
|
|
2316
2316
|
${(e) => ye(e)(
|
|
2317
2317
|
"h2",
|
|
2318
|
-
|
|
2318
|
+
S`
|
|
2319
2319
|
padding: 0;
|
|
2320
2320
|
margin: 0;
|
|
2321
2321
|
color: gray;
|
|
2322
2322
|
font-size: 7em;
|
|
2323
2323
|
`
|
|
2324
2324
|
)}
|
|
2325
|
-
`,
|
|
2325
|
+
`, fr = y.div`
|
|
2326
2326
|
margin-left: ${(e) => {
|
|
2327
2327
|
var t;
|
|
2328
2328
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2332,7 +2332,7 @@ const Ls = B(
|
|
|
2332
2332
|
var t;
|
|
2333
2333
|
return ye(e)(
|
|
2334
2334
|
"h3",
|
|
2335
|
-
|
|
2335
|
+
S`
|
|
2336
2336
|
text-transform: uppercase;
|
|
2337
2337
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
2338
2338
|
`
|
|
@@ -2349,7 +2349,7 @@ const Ls = B(
|
|
|
2349
2349
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2350
2350
|
}};
|
|
2351
2351
|
}
|
|
2352
|
-
`,
|
|
2352
|
+
`, gr = y.div`
|
|
2353
2353
|
margin-top: ${(e) => {
|
|
2354
2354
|
var t;
|
|
2355
2355
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2360,7 +2360,7 @@ const Ls = B(
|
|
|
2360
2360
|
font-weight: bold;
|
|
2361
2361
|
}
|
|
2362
2362
|
`;
|
|
2363
|
-
class
|
|
2363
|
+
class yr extends Wt {
|
|
2364
2364
|
constructor() {
|
|
2365
2365
|
super(...arguments), this.state = {
|
|
2366
2366
|
boundFocus: !1
|
|
@@ -2399,21 +2399,21 @@ class pr extends Ot {
|
|
|
2399
2399
|
) : null;
|
|
2400
2400
|
}
|
|
2401
2401
|
}
|
|
2402
|
-
const
|
|
2402
|
+
const Vs = yr, br = B(
|
|
2403
2403
|
(i, s) => {
|
|
2404
|
-
var c = i, { className: e, description: t, text: n, children: o } = c, r =
|
|
2405
|
-
return /* @__PURE__ */ d.createElement(
|
|
2404
|
+
var c = i, { className: e, description: t, text: n, children: o } = c, r = M(c, ["className", "description", "text", "children"]);
|
|
2405
|
+
return /* @__PURE__ */ d.createElement(Be, k(b({ className: z(e, "humany-text-link") }, r), { ref: s }), o, /* @__PURE__ */ d.createElement(Ne, null, n), t ? /* @__PURE__ */ d.createElement(vt, { html: t, className: "humany-description" }) : null);
|
|
2406
2406
|
}
|
|
2407
2407
|
);
|
|
2408
|
-
var
|
|
2409
|
-
const
|
|
2410
|
-
function
|
|
2411
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${
|
|
2408
|
+
var vr = /* @__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))(vr || {});
|
|
2409
|
+
const $r = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ d.createElement("span", { className: z(e, "humany-timestamp") }, wr(n, t)), Fs = $r, tt = (e) => `0${e}`.slice(-2);
|
|
2410
|
+
function wr(e, t) {
|
|
2411
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${tt(i)}-${tt(c)}`;
|
|
2412
2412
|
return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
|
|
2413
2413
|
}
|
|
2414
|
-
const
|
|
2415
|
-
var i = s, { className: e, children: t, content: n, sticky: o = !1 } = i, r =
|
|
2416
|
-
const [c, l] =
|
|
2414
|
+
const xr = (s) => {
|
|
2415
|
+
var i = s, { className: e, children: t, content: n, sticky: o = !1 } = i, r = M(i, ["className", "children", "content", "sticky"]);
|
|
2416
|
+
const [c, l] = E(!1), a = _(ce()), u = _(), [{ x: h, y: p }, m] = bt(c, a.current, u.current), g = (v) => {
|
|
2417
2417
|
const { target: $ } = v;
|
|
2418
2418
|
!u.current || !$ || u.current !== $ && !u.current.contains($) && l(!1);
|
|
2419
2419
|
};
|
|
@@ -2423,14 +2423,14 @@ const vr = (s) => {
|
|
|
2423
2423
|
window.removeEventListener("click", g);
|
|
2424
2424
|
};
|
|
2425
2425
|
}, [c, o]);
|
|
2426
|
-
const x =
|
|
2426
|
+
const x = D(
|
|
2427
2427
|
(v, $) => {
|
|
2428
2428
|
m(v, u.current), l($);
|
|
2429
2429
|
},
|
|
2430
2430
|
[m, l]
|
|
2431
2431
|
);
|
|
2432
2432
|
return /* @__PURE__ */ d.createElement(
|
|
2433
|
-
|
|
2433
|
+
Cr,
|
|
2434
2434
|
{
|
|
2435
2435
|
ref: u,
|
|
2436
2436
|
className: "humany-tooltip-trigger",
|
|
@@ -2441,7 +2441,7 @@ const vr = (s) => {
|
|
|
2441
2441
|
},
|
|
2442
2442
|
t,
|
|
2443
2443
|
c && /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
|
|
2444
|
-
|
|
2444
|
+
Er,
|
|
2445
2445
|
b({
|
|
2446
2446
|
className: z(e, "humany-tooltip-container"),
|
|
2447
2447
|
x: h,
|
|
@@ -2450,10 +2450,10 @@ const vr = (s) => {
|
|
|
2450
2450
|
n
|
|
2451
2451
|
))
|
|
2452
2452
|
);
|
|
2453
|
-
},
|
|
2453
|
+
}, Cr = y.div`
|
|
2454
2454
|
display: flex;
|
|
2455
2455
|
align-items: center;
|
|
2456
|
-
`,
|
|
2456
|
+
`, Er = y.div`
|
|
2457
2457
|
color: #ffffff;
|
|
2458
2458
|
background: #161616;
|
|
2459
2459
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2489,7 +2489,7 @@ const vr = (s) => {
|
|
|
2489
2489
|
let t = "";
|
|
2490
2490
|
return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
|
|
2491
2491
|
}};
|
|
2492
|
-
`,
|
|
2492
|
+
`, As = xr, Sr = (e) => {
|
|
2493
2493
|
const {
|
|
2494
2494
|
in: t,
|
|
2495
2495
|
mountOnEnter: n = !0,
|
|
@@ -2531,7 +2531,7 @@ const vr = (s) => {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
})();
|
|
2533
2533
|
return /* @__PURE__ */ d.createElement(
|
|
2534
|
-
|
|
2534
|
+
qt,
|
|
2535
2535
|
{
|
|
2536
2536
|
timeout: {
|
|
2537
2537
|
enter: l && l.enter.duration || 0,
|
|
@@ -2543,12 +2543,12 @@ const vr = (s) => {
|
|
|
2543
2543
|
unmountOnExit: o,
|
|
2544
2544
|
onEnter: (a) => a.clientHeight
|
|
2545
2545
|
},
|
|
2546
|
-
(a) => s && s(a, l &&
|
|
2546
|
+
(a) => s && s(a, l && _e.compose(a, l))
|
|
2547
2547
|
);
|
|
2548
|
-
},
|
|
2548
|
+
}, Ks = Sr, kr = B(
|
|
2549
2549
|
(c, i) => {
|
|
2550
2550
|
var l = c, { className: e, children: t, onClick: n = () => {
|
|
2551
|
-
}, widgetName: o, activationOptions: r } = l, s =
|
|
2551
|
+
}, widgetName: o, activationOptions: r } = l, s = M(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
2552
2552
|
const a = H(), u = () => {
|
|
2553
2553
|
const { implementation: m } = a.get("$widget");
|
|
2554
2554
|
return m.widgets.get(o);
|
|
@@ -2576,14 +2576,14 @@ const vr = (s) => {
|
|
|
2576
2576
|
});
|
|
2577
2577
|
});
|
|
2578
2578
|
};
|
|
2579
|
-
g.state ===
|
|
2579
|
+
g.state === Bt.Deactivated ? g.activate(r).then(() => g.invoke("attach")).then(v) : v();
|
|
2580
2580
|
}
|
|
2581
2581
|
}, p = (m) => {
|
|
2582
2582
|
m.key === "Enter" && (m.preventDefault(), h(m));
|
|
2583
2583
|
};
|
|
2584
2584
|
return /* @__PURE__ */ d.createElement(
|
|
2585
|
-
|
|
2586
|
-
|
|
2585
|
+
Be,
|
|
2586
|
+
k(b({
|
|
2587
2587
|
className: z(e, "humany-widget-link"),
|
|
2588
2588
|
onKeyDown: p,
|
|
2589
2589
|
onClick: (m) => {
|
|
@@ -2595,7 +2595,7 @@ const vr = (s) => {
|
|
|
2595
2595
|
t
|
|
2596
2596
|
);
|
|
2597
2597
|
}
|
|
2598
|
-
),
|
|
2598
|
+
), qs = B(
|
|
2599
2599
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
2600
2600
|
const r = H(), s = ge(() => {
|
|
2601
2601
|
if (!r)
|
|
@@ -2604,7 +2604,7 @@ const vr = (s) => {
|
|
|
2604
2604
|
return !i || !i.childElementCount ? null : i.children[0];
|
|
2605
2605
|
}, [r]);
|
|
2606
2606
|
return s ? /* @__PURE__ */ d.createElement(le, { elementId: e, parent: s }, /* @__PURE__ */ d.createElement(
|
|
2607
|
-
|
|
2607
|
+
_r,
|
|
2608
2608
|
{
|
|
2609
2609
|
className: z("humany-widget-overlay-outlet", t),
|
|
2610
2610
|
ref: o
|
|
@@ -2612,7 +2612,7 @@ const vr = (s) => {
|
|
|
2612
2612
|
n
|
|
2613
2613
|
)) : null;
|
|
2614
2614
|
}
|
|
2615
|
-
),
|
|
2615
|
+
), _r = y.div`
|
|
2616
2616
|
background-color: #ffffff;
|
|
2617
2617
|
position: absolute;
|
|
2618
2618
|
top: 0;
|
|
@@ -2622,17 +2622,16 @@ const vr = (s) => {
|
|
|
2622
2622
|
z-index: 10;
|
|
2623
2623
|
width: 100%;
|
|
2624
2624
|
height: 100%;
|
|
2625
|
-
`,
|
|
2625
|
+
`, Dr = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
2626
2626
|
t,
|
|
2627
|
-
|
|
2628
|
-
),
|
|
2629
|
-
}), t, r))),
|
|
2630
|
-
|
|
2631
|
-
return console.log("registering component", t, n), s.registerComponent(t, () => n), ot(e, t, o || (() => {
|
|
2627
|
+
Ht(() => n)
|
|
2628
|
+
), st(e, t, o || (() => {
|
|
2629
|
+
}), t, r))), Ys = Dr, Tr = (e, t, n, o, r) => pe(void 0, null, function* () {
|
|
2630
|
+
return (yield e.getAsync("componentResolver")).registerComponent(t, () => n), st(e, t, o || (() => {
|
|
2632
2631
|
}), t, r);
|
|
2633
|
-
}),
|
|
2632
|
+
}), Us = Tr, Mr = `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}
|
|
2634
2633
|
`;
|
|
2635
|
-
class
|
|
2634
|
+
class Ct extends re {
|
|
2636
2635
|
render() {
|
|
2637
2636
|
return I`
|
|
2638
2637
|
<!-- className={appendClassNames(className, 'humany-button')}
|
|
@@ -2643,41 +2642,41 @@ class wt extends ce {
|
|
|
2643
2642
|
`;
|
|
2644
2643
|
}
|
|
2645
2644
|
}
|
|
2646
|
-
|
|
2647
|
-
customElements.get("ui-button") || customElements.define("ui-button",
|
|
2648
|
-
var
|
|
2649
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2645
|
+
Ct.styles = ke(Mr);
|
|
2646
|
+
customElements.get("ui-button") || customElements.define("ui-button", Ct);
|
|
2647
|
+
var zr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, Pr = (e, t, n, o) => {
|
|
2648
|
+
for (var r = o > 1 ? void 0 : o ? Lr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2650
2649
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2651
|
-
return o && r &&
|
|
2650
|
+
return o && r && zr(t, n, r), r;
|
|
2652
2651
|
};
|
|
2653
|
-
class
|
|
2652
|
+
class He extends re {
|
|
2654
2653
|
constructor() {
|
|
2655
2654
|
super(), this.html = "";
|
|
2656
2655
|
}
|
|
2657
2656
|
render() {
|
|
2658
|
-
return
|
|
2657
|
+
return at` <div part="container" class="humany-html">${ct(this.html)}</div> `;
|
|
2659
2658
|
}
|
|
2660
2659
|
createRenderRoot() {
|
|
2661
2660
|
return this;
|
|
2662
2661
|
}
|
|
2663
2662
|
}
|
|
2664
|
-
|
|
2665
|
-
|
|
2663
|
+
He.styles = [
|
|
2664
|
+
J`
|
|
2666
2665
|
img {
|
|
2667
2666
|
display: none;
|
|
2668
2667
|
}
|
|
2669
2668
|
`
|
|
2670
2669
|
];
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
],
|
|
2674
|
-
customElements.get("ui-html") || customElements.define("ui-html",
|
|
2675
|
-
var
|
|
2676
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2670
|
+
Pr([
|
|
2671
|
+
N({ type: String })
|
|
2672
|
+
], He.prototype, "html", 2);
|
|
2673
|
+
customElements.get("ui-html") || customElements.define("ui-html", He);
|
|
2674
|
+
var Or = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, ie = (e, t, n, o) => {
|
|
2675
|
+
for (var r = o > 1 ? void 0 : o ? Rr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2677
2676
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2678
|
-
return o && r &&
|
|
2677
|
+
return o && r && Or(t, n, r), r;
|
|
2679
2678
|
};
|
|
2680
|
-
class Q extends
|
|
2679
|
+
class Q extends re {
|
|
2681
2680
|
constructor() {
|
|
2682
2681
|
super(), this.symbol = {
|
|
2683
2682
|
content: "",
|
|
@@ -2839,8 +2838,20 @@ class Q extends ce {
|
|
|
2839
2838
|
${R(o)}
|
|
2840
2839
|
${R(r)}
|
|
2841
2840
|
>
|
|
2842
|
-
<line
|
|
2843
|
-
|
|
2841
|
+
<line
|
|
2842
|
+
x1="13.09"
|
|
2843
|
+
y1="3.99"
|
|
2844
|
+
x2="7.1"
|
|
2845
|
+
y2="9.99"
|
|
2846
|
+
stroke="currentColor"
|
|
2847
|
+
/>
|
|
2848
|
+
<line
|
|
2849
|
+
x1="7.19"
|
|
2850
|
+
y1="9.99"
|
|
2851
|
+
x2="1.19"
|
|
2852
|
+
y2="3.99"
|
|
2853
|
+
stroke="currentColor"
|
|
2854
|
+
/>
|
|
2844
2855
|
</svg>
|
|
2845
2856
|
`;
|
|
2846
2857
|
case "caret-down":
|
|
@@ -2888,11 +2899,11 @@ class Q extends ce {
|
|
|
2888
2899
|
case "FontAwesome":
|
|
2889
2900
|
return I`<ui-icon .faIcon=${this.symbol.content} title=${this.text} />`;
|
|
2890
2901
|
}
|
|
2891
|
-
return
|
|
2902
|
+
return At;
|
|
2892
2903
|
}
|
|
2893
2904
|
}
|
|
2894
2905
|
Q.styles = [
|
|
2895
|
-
|
|
2906
|
+
J`
|
|
2896
2907
|
:host {
|
|
2897
2908
|
color: var(--icon-color, inherit);
|
|
2898
2909
|
}
|
|
@@ -2902,32 +2913,67 @@ Q.styles = [
|
|
|
2902
2913
|
}
|
|
2903
2914
|
`
|
|
2904
2915
|
];
|
|
2905
|
-
|
|
2906
|
-
|
|
2916
|
+
ie([
|
|
2917
|
+
N({ type: Object })
|
|
2907
2918
|
], Q.prototype, "symbol", 2);
|
|
2908
|
-
|
|
2909
|
-
|
|
2919
|
+
ie([
|
|
2920
|
+
N({ type: Object })
|
|
2910
2921
|
], Q.prototype, "elementStyle", 2);
|
|
2911
|
-
|
|
2912
|
-
|
|
2922
|
+
ie([
|
|
2923
|
+
N({ type: Number })
|
|
2913
2924
|
], Q.prototype, "size", 2);
|
|
2914
|
-
|
|
2915
|
-
|
|
2925
|
+
ie([
|
|
2926
|
+
N({ type: String })
|
|
2916
2927
|
], Q.prototype, "text", 2);
|
|
2917
|
-
|
|
2918
|
-
|
|
2928
|
+
ie([
|
|
2929
|
+
N({ type: String })
|
|
2919
2930
|
], Q.prototype, "backgroundSize", 2);
|
|
2920
|
-
|
|
2931
|
+
ie([
|
|
2921
2932
|
X()
|
|
2922
2933
|
], Q.prototype, "styles", 2);
|
|
2923
2934
|
customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
|
|
2924
|
-
var
|
|
2925
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
2935
|
+
var Nr = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, Et = (e, t, n, o) => {
|
|
2936
|
+
for (var r = o > 1 ? void 0 : o ? Ir(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2926
2937
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2927
|
-
return o && r &&
|
|
2938
|
+
return o && r && Nr(t, n, r), r;
|
|
2928
2939
|
};
|
|
2929
|
-
const
|
|
2930
|
-
|
|
2940
|
+
const nt = (e) => `0${e}`.slice(-2);
|
|
2941
|
+
function Br(e, t) {
|
|
2942
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${nt(i)}-${nt(c)}`;
|
|
2943
|
+
return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
|
|
2944
|
+
}
|
|
2945
|
+
class Ce extends re {
|
|
2946
|
+
constructor() {
|
|
2947
|
+
super(), this.format = "hh:mm";
|
|
2948
|
+
}
|
|
2949
|
+
render() {
|
|
2950
|
+
return I`<span class="timestamp">${Br(this.timestamp, this.format)}</span>`;
|
|
2951
|
+
}
|
|
2952
|
+
createRenderRoot() {
|
|
2953
|
+
return this;
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
Ce.styles = [
|
|
2957
|
+
J`
|
|
2958
|
+
:host {
|
|
2959
|
+
display: block;
|
|
2960
|
+
}
|
|
2961
|
+
`
|
|
2962
|
+
];
|
|
2963
|
+
Et([
|
|
2964
|
+
N({ type: String })
|
|
2965
|
+
], Ce.prototype, "timestamp", 2);
|
|
2966
|
+
Et([
|
|
2967
|
+
N({ type: String })
|
|
2968
|
+
], Ce.prototype, "format", 2);
|
|
2969
|
+
customElements.get("ui-timestamp") || customElements.define("ui-timestamp", Ce);
|
|
2970
|
+
var Wr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, jr = (e, t, n, o) => {
|
|
2971
|
+
for (var r = o > 1 ? void 0 : o ? Hr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2972
|
+
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2973
|
+
return o && r && Wr(t, n, r), r;
|
|
2974
|
+
};
|
|
2975
|
+
const Vr = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
|
|
2976
|
+
class je extends re {
|
|
2931
2977
|
constructor() {
|
|
2932
2978
|
super(), this.variant = "span";
|
|
2933
2979
|
}
|
|
@@ -2936,16 +2982,16 @@ class He extends ce {
|
|
|
2936
2982
|
return n ? n.trim() : t;
|
|
2937
2983
|
}
|
|
2938
2984
|
render() {
|
|
2939
|
-
const t =
|
|
2940
|
-
return
|
|
2985
|
+
const t = Vr(this.variant) ? this._getTag(this.variant) : this.variant, n = ct(t);
|
|
2986
|
+
return at`
|
|
2941
2987
|
<${n}>
|
|
2942
2988
|
<slot />
|
|
2943
2989
|
</${n}>
|
|
2944
2990
|
`;
|
|
2945
2991
|
}
|
|
2946
2992
|
}
|
|
2947
|
-
|
|
2948
|
-
|
|
2993
|
+
je.styles = [
|
|
2994
|
+
J`
|
|
2949
2995
|
h1,
|
|
2950
2996
|
h2,
|
|
2951
2997
|
h3,
|
|
@@ -2962,11 +3008,11 @@ He.styles = [
|
|
|
2962
3008
|
}
|
|
2963
3009
|
`
|
|
2964
3010
|
];
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
],
|
|
2968
|
-
customElements.get("ui-typography") || customElements.define("ui-typography",
|
|
2969
|
-
class
|
|
3011
|
+
jr([
|
|
3012
|
+
N({ type: String })
|
|
3013
|
+
], je.prototype, "variant", 2);
|
|
3014
|
+
customElements.get("ui-typography") || customElements.define("ui-typography", je);
|
|
3015
|
+
class Xs {
|
|
2970
3016
|
constructor(t) {
|
|
2971
3017
|
(this.host = t).addController(this);
|
|
2972
3018
|
}
|
|
@@ -2981,7 +3027,7 @@ class Fs {
|
|
|
2981
3027
|
this.host.removeEventListener("set-properties", this.propertyChangeHandler);
|
|
2982
3028
|
}
|
|
2983
3029
|
}
|
|
2984
|
-
class
|
|
3030
|
+
class Zs {
|
|
2985
3031
|
constructor(t) {
|
|
2986
3032
|
this.nodeId = "", this._host = t;
|
|
2987
3033
|
}
|
|
@@ -2995,7 +3041,7 @@ class As {
|
|
|
2995
3041
|
console.warn("Could not get data in DataProvider. Container was not defined.");
|
|
2996
3042
|
return;
|
|
2997
3043
|
}
|
|
2998
|
-
const t = yield
|
|
3044
|
+
const t = yield Le.getInstance(this.container);
|
|
2999
3045
|
if (this.node = t.nodes.get(this.nodeId), !this.node) {
|
|
3000
3046
|
console.warn(`Could not get component node with ID: ${this.nodeId}.`);
|
|
3001
3047
|
return;
|
|
@@ -3012,7 +3058,7 @@ class As {
|
|
|
3012
3058
|
return this._host.dispatchEvent(n), n.detail.instance;
|
|
3013
3059
|
}
|
|
3014
3060
|
}
|
|
3015
|
-
const
|
|
3061
|
+
const Me = "context.connectEvent", Qs = ut(
|
|
3016
3062
|
(e) => {
|
|
3017
3063
|
class t extends e {
|
|
3018
3064
|
constructor() {
|
|
@@ -3026,7 +3072,7 @@ const De = "context.connectEvent", Ks = ct(
|
|
|
3026
3072
|
_injectContext(o) {
|
|
3027
3073
|
const r = (i, c) => {
|
|
3028
3074
|
this._contextValueChanged(o, i, c);
|
|
3029
|
-
}, s = new CustomEvent(
|
|
3075
|
+
}, s = new CustomEvent(Me, {
|
|
3030
3076
|
bubbles: !0,
|
|
3031
3077
|
cancelable: !0,
|
|
3032
3078
|
composed: !0,
|
|
@@ -3047,7 +3093,7 @@ const De = "context.connectEvent", Ks = ct(
|
|
|
3047
3093
|
}
|
|
3048
3094
|
return t;
|
|
3049
3095
|
}
|
|
3050
|
-
),
|
|
3096
|
+
), Fr = ut(
|
|
3051
3097
|
(e) => {
|
|
3052
3098
|
class t extends e {
|
|
3053
3099
|
constructor() {
|
|
@@ -3069,7 +3115,7 @@ const De = "context.connectEvent", Ks = ct(
|
|
|
3069
3115
|
}, i.callback(this[o]);
|
|
3070
3116
|
}
|
|
3071
3117
|
};
|
|
3072
|
-
this.addEventListener(
|
|
3118
|
+
this.addEventListener(Me, r), this._providedContexts.set(o, {
|
|
3073
3119
|
listener: r,
|
|
3074
3120
|
callbacks: /* @__PURE__ */ new Set()
|
|
3075
3121
|
});
|
|
@@ -3089,19 +3135,19 @@ const De = "context.connectEvent", Ks = ct(
|
|
|
3089
3135
|
}
|
|
3090
3136
|
disconnectedCallback() {
|
|
3091
3137
|
for (const o of this._providedContexts.values())
|
|
3092
|
-
this.removeEventListener(
|
|
3138
|
+
this.removeEventListener(Me, o.listener);
|
|
3093
3139
|
super.disconnectedCallback();
|
|
3094
3140
|
}
|
|
3095
3141
|
}
|
|
3096
3142
|
return t;
|
|
3097
3143
|
}
|
|
3098
3144
|
);
|
|
3099
|
-
var
|
|
3100
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3145
|
+
var Ar = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, ot = (e, t, n, o) => {
|
|
3146
|
+
for (var r = o > 1 ? void 0 : o ? Kr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
3101
3147
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
3102
|
-
return o && r &&
|
|
3148
|
+
return o && r && Ar(t, n, r), r;
|
|
3103
3149
|
};
|
|
3104
|
-
const
|
|
3150
|
+
const Gs = (e) => {
|
|
3105
3151
|
class t extends e {
|
|
3106
3152
|
constructor(...o) {
|
|
3107
3153
|
super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => pe(this, null, function* () {
|
|
@@ -3109,12 +3155,12 @@ const qs = (e) => {
|
|
|
3109
3155
|
}));
|
|
3110
3156
|
}
|
|
3111
3157
|
}
|
|
3112
|
-
return
|
|
3158
|
+
return ot([
|
|
3113
3159
|
X()
|
|
3114
|
-
], t.prototype, "hasPendingChildren", 2),
|
|
3160
|
+
], t.prototype, "hasPendingChildren", 2), ot([
|
|
3115
3161
|
X()
|
|
3116
3162
|
], t.prototype, "pendingCount", 2), t;
|
|
3117
|
-
},
|
|
3163
|
+
}, Js = (e) => {
|
|
3118
3164
|
class t extends e {
|
|
3119
3165
|
constructor(...o) {
|
|
3120
3166
|
super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
|
|
@@ -3127,7 +3173,7 @@ const qs = (e) => {
|
|
|
3127
3173
|
}
|
|
3128
3174
|
}
|
|
3129
3175
|
return t;
|
|
3130
|
-
},
|
|
3176
|
+
}, qr = (e) => {
|
|
3131
3177
|
class t extends e {
|
|
3132
3178
|
requestInstance(o) {
|
|
3133
3179
|
const r = new CustomEvent("request-instance", {
|
|
@@ -3140,24 +3186,24 @@ const qs = (e) => {
|
|
|
3140
3186
|
}
|
|
3141
3187
|
}
|
|
3142
3188
|
return t;
|
|
3143
|
-
},
|
|
3144
|
-
var n, o, r, s, i, c, l, a, u, h, p, m, g, x, v, $, f, L,
|
|
3189
|
+
}, Yr = (e) => {
|
|
3190
|
+
var n, o, r, s, i, c, l, a, u, h, p, m, g, x, v, $, f, L, O, T, V;
|
|
3145
3191
|
const t = {};
|
|
3146
|
-
return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (s = e.fonts) != null && s.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (i = e.fonts) != null && i.large && (t["--fonts-large"] = `${e.fonts.large}`), (c = e.fonts) != null && c.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (l = e.colors) != null && l.accent && (t["--colors-accent"] = `${e.colors.accent}`), (a = e.colors) != null && a.link && (t["--colors-link"] = `${e.colors.link}`), (u = e.colors) != null && u.primary && (t["--colors-primary"] = `${e.colors.primary}`), (h = e.colors) != null && h.text && (t["--colors-text"] = `${e.colors.text}`), (p = e.colors) != null && p.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (m = e.colors) != null && m.warning && (t["--colors-warning"] = `${e.colors.warning}`), (g = e.accessibility) != null && g.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (v = (x = e.accessibility) == null ? void 0 : x.colors) != null && v.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (f = ($ = e.accessibility) == null ? void 0 : $.colors) != null && f.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (L = e.sizes) != null && L.small && (t["--size-small"] = `${e.sizes.small}`), (
|
|
3192
|
+
return e.cardinal && (t["--cardinal"] = `${e.cardinal}px`), e.gap && (t["--gap"] = `${e.gap}`), (n = e.fonts) != null && n.type && (t["--fonts-type"] = `${e.fonts.type}`), (o = e.fonts) != null && o.small && (t["--fonts-small"] = `${e.fonts.small}`), (r = e.fonts) != null && r.normal && (t["--fonts-normal"] = `${e.fonts.small}`), (s = e.fonts) != null && s.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (i = e.fonts) != null && i.large && (t["--fonts-large"] = `${e.fonts.large}`), (c = e.fonts) != null && c.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (l = e.colors) != null && l.accent && (t["--colors-accent"] = `${e.colors.accent}`), (a = e.colors) != null && a.link && (t["--colors-link"] = `${e.colors.link}`), (u = e.colors) != null && u.primary && (t["--colors-primary"] = `${e.colors.primary}`), (h = e.colors) != null && h.text && (t["--colors-text"] = `${e.colors.text}`), (p = e.colors) != null && p.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (m = e.colors) != null && m.warning && (t["--colors-warning"] = `${e.colors.warning}`), (g = e.accessibility) != null && g.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (v = (x = e.accessibility) == null ? void 0 : x.colors) != null && v.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (f = ($ = e.accessibility) == null ? void 0 : $.colors) != null && f.activeText && (t["--accessibility-colors-activeText"] = `${e.accessibility.colors.activeText}`), e.inputBorder && (t["--inputBorder"] = `${e.inputBorder}`), e.borderRadius && (t["--borderRadius"] = `${e.borderRadius}`), e.boxShadow && (t["--boxShadow"] = `${e.boxShadow}`), e.border && (t["--border"] = `${e.border}`), (L = e.sizes) != null && L.small && (t["--size-small"] = `${e.sizes.small}`), (O = e.sizes) != null && O.normal && (t["--size-normal"] = `${e.sizes.normal}`), (T = e.sizes) != null && T.medium && (t["--size-medium"] = `${e.sizes.medium}`), (V = e.sizes) != null && V.large && (t["--size-large"] = `${e.sizes.large}`), e.typographyVariantMapping && (e.typographyVariantMapping.h1 && (t["--typography-h1"] = `${e.typographyVariantMapping.h1}`), e.typographyVariantMapping.h2 && (t["--typography-h2"] = `${e.typographyVariantMapping.h2}`), e.typographyVariantMapping.h3 && (t["--typography-h3"] = `${e.typographyVariantMapping.h3}`), e.typographyVariantMapping.h4 && (t["--typography-h4"] = `${e.typographyVariantMapping.h4}`), e.typographyVariantMapping.h5 && (t["--typography-h5"] = `${e.typographyVariantMapping.h5}`), e.typographyVariantMapping.h6 && (t["--typography-h6"] = `${e.typographyVariantMapping.h6}`)), t;
|
|
3147
3193
|
};
|
|
3148
|
-
var
|
|
3149
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3194
|
+
var Ur = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, j = (e, t, n, o) => {
|
|
3195
|
+
for (var r = o > 1 ? void 0 : o ? Xr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
3150
3196
|
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
3151
|
-
return o && r &&
|
|
3197
|
+
return o && r && Ur(t, n, r), r;
|
|
3152
3198
|
};
|
|
3153
|
-
const
|
|
3199
|
+
const Zr = (e) => `w-${e}`, Qr = (e) => Object.entries(e).reduce((t, [n, o]) => {
|
|
3154
3200
|
if (n.indexOf("css-") > -1) {
|
|
3155
3201
|
const r = n.replace("css-", "");
|
|
3156
3202
|
t[r] = o;
|
|
3157
3203
|
}
|
|
3158
3204
|
return t;
|
|
3159
|
-
}, {}),
|
|
3160
|
-
class t extends
|
|
3205
|
+
}, {}), ei = (e) => {
|
|
3206
|
+
class t extends Fr(qr(e)) {
|
|
3161
3207
|
constructor() {
|
|
3162
3208
|
super(), this.listeners = [], this.setColumns = (o) => {
|
|
3163
3209
|
this.columns = o;
|
|
@@ -3181,12 +3227,12 @@ const Ar = (e) => `w-${e}`, Kr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3181
3227
|
}
|
|
3182
3228
|
connectedCallback() {
|
|
3183
3229
|
super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
|
|
3184
|
-
|
|
3230
|
+
Le.getInstance(this.container),
|
|
3185
3231
|
this.container.getAsync("componentResolver")
|
|
3186
3232
|
]).then((o) => {
|
|
3187
3233
|
const r = o[0], s = o[1], i = r.nodes.get(this.nodeId || "");
|
|
3188
3234
|
if (i) {
|
|
3189
|
-
this._descriptor =
|
|
3235
|
+
this._descriptor = rt(i, this.branch), this._properties = i.attributes.properties, this._context = i.attributes.context, this._layout = i.attributes.layout, this.setProperties(i.attributes.properties), this.listeners.push(
|
|
3190
3236
|
r.events.subscribe(
|
|
3191
3237
|
"components:properties-changed",
|
|
3192
3238
|
(u, h) => {
|
|
@@ -3218,7 +3264,7 @@ const Ar = (e) => `w-${e}`, Kr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3218
3264
|
);
|
|
3219
3265
|
return;
|
|
3220
3266
|
}
|
|
3221
|
-
const l =
|
|
3267
|
+
const l = Zr(this._descriptor.type);
|
|
3222
3268
|
if (customElements.get(l))
|
|
3223
3269
|
return;
|
|
3224
3270
|
const a = s.getComponent(this._descriptor.type);
|
|
@@ -3238,19 +3284,19 @@ const Ar = (e) => `w-${e}`, Kr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3238
3284
|
}), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
|
|
3239
3285
|
}
|
|
3240
3286
|
_getContextStyles() {
|
|
3241
|
-
return this._context ?
|
|
3287
|
+
return this._context ? Yr(this._context) : {};
|
|
3242
3288
|
}
|
|
3243
3289
|
render() {
|
|
3244
|
-
const o = super.render(), r = this._getContextStyles(), s =
|
|
3290
|
+
const o = super.render(), r = this._getContextStyles(), s = Qr(this._properties), i = I`
|
|
3245
3291
|
<style>
|
|
3246
3292
|
:host {
|
|
3247
|
-
${Object.entries(r).map(([c, l]) =>
|
|
3293
|
+
${Object.entries(r).map(([c, l]) => J`
|
|
3248
3294
|
${ke(`${c}: ${l};`)}
|
|
3249
3295
|
`)}
|
|
3250
3296
|
}
|
|
3251
3297
|
|
|
3252
3298
|
:host > * {
|
|
3253
|
-
${Object.entries(s).map(([c, l]) =>
|
|
3299
|
+
${Object.entries(s).map(([c, l]) => J`
|
|
3254
3300
|
${ke(`${c}: ${l} !important;`)}
|
|
3255
3301
|
`)}
|
|
3256
3302
|
}
|
|
@@ -3270,15 +3316,15 @@ const Ar = (e) => `w-${e}`, Kr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3270
3316
|
}
|
|
3271
3317
|
}
|
|
3272
3318
|
return j([
|
|
3273
|
-
|
|
3319
|
+
N({ type: String })
|
|
3274
3320
|
], t.prototype, "nodeId", 2), j([
|
|
3275
|
-
|
|
3321
|
+
N({ type: String })
|
|
3276
3322
|
], t.prototype, "branch", 2), j([
|
|
3277
|
-
|
|
3323
|
+
N({ type: String })
|
|
3278
3324
|
], t.prototype, "width", 2), j([
|
|
3279
|
-
|
|
3325
|
+
N({ type: Number })
|
|
3280
3326
|
], t.prototype, "_columns", 2), j([
|
|
3281
|
-
|
|
3327
|
+
N({ type: Number })
|
|
3282
3328
|
], t.prototype, "columns", 2), j([
|
|
3283
3329
|
X()
|
|
3284
3330
|
], t.prototype, "_width", 2), j([
|
|
@@ -3292,108 +3338,109 @@ const Ar = (e) => `w-${e}`, Kr = (e) => Object.entries(e).reduce((t, [n, o]) =>
|
|
|
3292
3338
|
], t.prototype, "_layout", 2), t;
|
|
3293
3339
|
};
|
|
3294
3340
|
export {
|
|
3295
|
-
|
|
3341
|
+
dn as AnchorLink,
|
|
3296
3342
|
be as Button,
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3343
|
+
Ct as ButtonUi,
|
|
3344
|
+
ys as Checkbox,
|
|
3345
|
+
fn as ColumnContext,
|
|
3346
|
+
mt as ComponentNodeContext,
|
|
3347
|
+
gn as ComponentPropertyContext,
|
|
3348
|
+
Hs as Confirm,
|
|
3349
|
+
Qs as ConsumerMixin,
|
|
3350
|
+
pn as ContainerContext,
|
|
3351
|
+
bn as ConversationContext,
|
|
3352
|
+
Zs as DataProvider,
|
|
3353
|
+
vr as DateFormats,
|
|
3354
|
+
Rs as Drawer,
|
|
3355
|
+
no as DrawerAnimationType,
|
|
3356
|
+
Ns as Dropdown,
|
|
3357
|
+
go as Empty,
|
|
3358
|
+
Is as Grid,
|
|
3359
|
+
vt as Html,
|
|
3360
|
+
He as HtmlUi,
|
|
3315
3361
|
ne as Icon,
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3362
|
+
Bs as Input,
|
|
3363
|
+
Co as ItemList,
|
|
3364
|
+
Ws as ItemTree,
|
|
3365
|
+
rr as Lightbox,
|
|
3366
|
+
Be as Link,
|
|
3367
|
+
wo as List,
|
|
3368
|
+
ir as Modal,
|
|
3369
|
+
Xs as NodeConnector,
|
|
3370
|
+
js as NotFound,
|
|
3371
|
+
$t as Overlay,
|
|
3372
|
+
xo as Paragraph,
|
|
3373
|
+
Gs as PendingState,
|
|
3328
3374
|
le as Portal,
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3375
|
+
Js as ProviderMixin,
|
|
3376
|
+
qr as Requester,
|
|
3377
|
+
So as RouteLink,
|
|
3378
|
+
yn as RoutingContext,
|
|
3379
|
+
et as StyledText,
|
|
3334
3380
|
ue as SymbolBadge,
|
|
3335
3381
|
Q as SymbolBadgeUi,
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3382
|
+
Vs as TabStop,
|
|
3383
|
+
Ne as Text,
|
|
3384
|
+
br as TextLink,
|
|
3385
|
+
Fs as Timestamp,
|
|
3386
|
+
Ce as TimestampUi,
|
|
3387
|
+
As as Tooltip,
|
|
3388
|
+
Ks as TransitionComponent,
|
|
3389
|
+
ae as Typography,
|
|
3390
|
+
je as TypographyUi,
|
|
3391
|
+
ei as WidgetComponentMixin,
|
|
3392
|
+
kr as WidgetLink,
|
|
3393
|
+
qs as WidgetOverlayOutlet,
|
|
3347
3394
|
Z as borderTabStyle,
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3395
|
+
Je as browser,
|
|
3396
|
+
Un as buttonCss,
|
|
3397
|
+
yt as contentBox,
|
|
3351
3398
|
W as convertToStringAttributes,
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3399
|
+
gs as createEmptyComponent,
|
|
3400
|
+
Ys as createReactComponent,
|
|
3401
|
+
Us as createWebComponent,
|
|
3402
|
+
ln as defaultRenderInstructions,
|
|
3403
|
+
nn as embeddedLinkMapper,
|
|
3404
|
+
rn as filterCssProps,
|
|
3405
|
+
on as filterCssPropsStyle,
|
|
3406
|
+
sn as genericHashLink,
|
|
3407
|
+
Os as genericHtml,
|
|
3361
3408
|
ye as headingElement,
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3409
|
+
cn as imageLightboxRenderer,
|
|
3410
|
+
zs as invertedHoverButton,
|
|
3411
|
+
Ps as itemList,
|
|
3412
|
+
Xn as linkTabStyle,
|
|
3413
|
+
Zn as list,
|
|
3414
|
+
Ls as paddedBorderTabStyle,
|
|
3415
|
+
an as processHtmlString,
|
|
3416
|
+
_e as transitionComposer,
|
|
3417
|
+
bs as useAction,
|
|
3418
|
+
vs as useChildren,
|
|
3419
|
+
$s as useColumns,
|
|
3420
|
+
ws as useComponent,
|
|
3421
|
+
Pe as useComponentDescriptor,
|
|
3422
|
+
Oe as useComponentNode,
|
|
3423
|
+
se as useComponentPlatform,
|
|
3377
3424
|
H as useContainer,
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3425
|
+
Tn as useContext,
|
|
3426
|
+
xs as useConversation,
|
|
3427
|
+
Cs as useDispatch,
|
|
3381
3428
|
K as useEventListener,
|
|
3382
|
-
|
|
3429
|
+
Pn as useEvents,
|
|
3383
3430
|
q as useIsMounted,
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3431
|
+
Es as useIsTabbing,
|
|
3432
|
+
te as useKeyPress,
|
|
3433
|
+
Ss as useLayout,
|
|
3434
|
+
ht as usePrevious,
|
|
3435
|
+
ks as useProperties,
|
|
3436
|
+
_s as useRenderState,
|
|
3437
|
+
Ds as useRouteData,
|
|
3438
|
+
pt as useRouter,
|
|
3439
|
+
ft as useScroll,
|
|
3440
|
+
Ts as useSettings,
|
|
3441
|
+
gt as useToggle,
|
|
3442
|
+
Ms as useTransitionEnd,
|
|
3443
|
+
Re as useUniqueMenu,
|
|
3397
3444
|
ve as useWidgetEvent
|
|
3398
3445
|
};
|
|
3399
3446
|
//# sourceMappingURL=index.js.map
|