@telia-ace/widget-ui 1.3.33 → 1.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.js +65 -65
- package/index.mjs +479 -473
- package/package.json +4 -4
- package/utils/tabbing-state.d.ts +2 -0
package/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var te = (e, t, n) => (
|
|
1
|
+
var it = Object.defineProperty;
|
|
2
|
+
var st = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var te = (e, t, n) => (st(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { css as k, keyframes as Be } from "@emotion/react";
|
|
5
|
-
import { kebabCase as
|
|
5
|
+
import { kebabCase as at, appendClassNames as M, uuid as _, removeNullAndUndefinedValues as He, Logger as de } from "@telia-ace/widget-utilities";
|
|
6
6
|
import { jsx as i, jsxs as b, Fragment as U } from "react/jsx-runtime";
|
|
7
7
|
import C from "@emotion/styled";
|
|
8
|
-
import oe, { forwardRef as D, createContext as K, useContext as P, useState as w, useEffect as v, useRef as L, useCallback as E, useImperativeHandle as ge, createElement as
|
|
9
|
-
import { CSSTransition as Ve, Transition as
|
|
10
|
-
import { Container as
|
|
11
|
-
import { ComponentPlatform as
|
|
12
|
-
import { createPortal as
|
|
13
|
-
import
|
|
14
|
-
import { HistoryMode as Te, getSpecificWidgetPath as
|
|
8
|
+
import oe, { forwardRef as D, createContext as K, useContext as P, useState as w, useEffect as v, useRef as L, useCallback as E, useImperativeHandle as ge, createElement as ct, useMemo as re, Component as lt, lazy as dt } from "react";
|
|
9
|
+
import { CSSTransition as Ve, Transition as ut } from "react-transition-group";
|
|
10
|
+
import { Container as ht, WidgetState as ft } from "@webprovisions/platform";
|
|
11
|
+
import { ComponentPlatform as mt, asDescriptor as gt, createEventSubscriber as pt, ComponentQuery as Ct, WidgetRenderState as ne, extendComponent as yt } from "@telia-ace/widget-core";
|
|
12
|
+
import { createPortal as bt } from "react-dom";
|
|
13
|
+
import Re from "htmr";
|
|
14
|
+
import { HistoryMode as Te, getSpecificWidgetPath as vt } from "@telia-ace/widget-routing";
|
|
15
15
|
import { Link as ue } from "react-router-dom";
|
|
16
|
-
const
|
|
16
|
+
const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exiting" || e === "exited", F = {
|
|
17
17
|
fade: {
|
|
18
18
|
in: "opacity: 1;",
|
|
19
19
|
out: "opacity: 0;"
|
|
@@ -38,7 +38,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
38
38
|
in: "transform: scale(1);",
|
|
39
39
|
out: "transform: scale(0);"
|
|
40
40
|
}
|
|
41
|
-
},
|
|
41
|
+
}, kt = [
|
|
42
42
|
"slide-up",
|
|
43
43
|
"slide-down",
|
|
44
44
|
"slide-left",
|
|
@@ -46,20 +46,20 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
46
46
|
"scale"
|
|
47
47
|
], he = {
|
|
48
48
|
compose: (e = "exited", t) => {
|
|
49
|
-
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s =
|
|
50
|
-
if (
|
|
49
|
+
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = kt.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
50
|
+
if (xt(e))
|
|
51
51
|
return r && r.length > 0 ? k`
|
|
52
|
-
${r && r.length > 0 && r.map((
|
|
52
|
+
${r && r.length > 0 && r.map((h) => F[h] ? F[h].in : "")}
|
|
53
53
|
transition: ${s} ${n.duration}ms ${n.easing};
|
|
54
54
|
` : "";
|
|
55
55
|
const c = r && r.length > 0 && k`
|
|
56
|
-
${r.map((
|
|
56
|
+
${r.map((h) => F[h] ? F[h].out : "")}
|
|
57
57
|
`;
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
return
|
|
58
|
+
if (wt(e)) {
|
|
59
|
+
const h = o.transitionKeys.split(" ");
|
|
60
|
+
return h && h.length > 0 && e === "exiting" ? k`
|
|
61
61
|
${c};
|
|
62
|
-
${
|
|
62
|
+
${h.map((a) => F[a] ? F[a].out : "")}
|
|
63
63
|
transition: ${s} ${o.duration}ms ${o.easing};
|
|
64
64
|
` : c;
|
|
65
65
|
}
|
|
@@ -100,7 +100,7 @@ const Ne = () => {
|
|
|
100
100
|
safari: r,
|
|
101
101
|
documentMode: s,
|
|
102
102
|
StyleMedia: c,
|
|
103
|
-
chrome:
|
|
103
|
+
chrome: h,
|
|
104
104
|
CSS: a
|
|
105
105
|
} = window, l = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
|
|
106
106
|
if (l)
|
|
@@ -110,43 +110,43 @@ const Ne = () => {
|
|
|
110
110
|
const d = ((g) => g.toString() === "[object SafariRemoteNotification]")(!r || typeof r < "u" && r.pushNotification);
|
|
111
111
|
if (/constructor/i.test(o) || d)
|
|
112
112
|
return "safari";
|
|
113
|
-
const
|
|
114
|
-
if (
|
|
113
|
+
const u = !!s;
|
|
114
|
+
if (u)
|
|
115
115
|
return "internet-explorer";
|
|
116
|
-
if (!
|
|
116
|
+
if (!u && c)
|
|
117
117
|
return "edge";
|
|
118
|
-
const f = !!
|
|
118
|
+
const f = !!h && (!!h.webstore || !!h.runtime);
|
|
119
119
|
if (f)
|
|
120
120
|
return "chrome";
|
|
121
121
|
if (f && navigator.userAgent.indexOf("Edg") !== -1)
|
|
122
122
|
return "edge-chromium";
|
|
123
123
|
if ((f || l) && a)
|
|
124
124
|
return "blink";
|
|
125
|
-
},
|
|
125
|
+
}, $t = ["string", "number"], z = (e) => Object.keys(e).reduce(
|
|
126
126
|
(t, n) => {
|
|
127
127
|
const o = typeof e[n] > "u" ? "" : e[n], r = typeof o;
|
|
128
|
-
if (
|
|
128
|
+
if ($t.indexOf(r) > -1) {
|
|
129
129
|
const s = n.substring(0, 5);
|
|
130
|
-
s === "data-" || s === "aria-" ? t[
|
|
130
|
+
s === "data-" || s === "aria-" ? t[at(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
|
|
131
131
|
} else
|
|
132
132
|
t[n] = o;
|
|
133
133
|
return t;
|
|
134
134
|
},
|
|
135
135
|
{}
|
|
136
|
-
),
|
|
136
|
+
), vo = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ i(rn, { ...t }) : null, Lt = (e) => new RegExp("^#", "i").test(e), Mt = (e) => ({ children: t, ...n }) => {
|
|
137
137
|
const {
|
|
138
138
|
implementation: o,
|
|
139
139
|
name: r
|
|
140
140
|
} = e.get("$widget"), { href: s = "" } = n;
|
|
141
|
-
if (
|
|
142
|
-
return /* @__PURE__ */ i(
|
|
141
|
+
if (Lt(s))
|
|
142
|
+
return /* @__PURE__ */ i(Dt, { smooth: !0, to: s, children: t });
|
|
143
143
|
const c = o.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), a = new RegExp(
|
|
144
144
|
`^((http[s]?:)?//)?(${c})/([^\\s]+)`
|
|
145
145
|
).exec(s);
|
|
146
146
|
if (a && a.length >= 4) {
|
|
147
147
|
const l = a[4];
|
|
148
148
|
if (o.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
149
|
-
return /* @__PURE__ */ i(
|
|
149
|
+
return /* @__PURE__ */ i(ro, { widgetName: l, children: t });
|
|
150
150
|
}
|
|
151
151
|
return /* @__PURE__ */ i("a", { ...n, children: t });
|
|
152
152
|
}, We = (e) => {
|
|
@@ -154,37 +154,37 @@ const Ne = () => {
|
|
|
154
154
|
return Object.keys(e).forEach((n) => {
|
|
155
155
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
156
156
|
}), t;
|
|
157
|
-
},
|
|
157
|
+
}, St = (e) => {
|
|
158
158
|
let t = "";
|
|
159
159
|
return Object.keys(We(e)).forEach((n) => {
|
|
160
160
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
161
161
|
}), k`
|
|
162
162
|
${t}
|
|
163
163
|
`;
|
|
164
|
-
},
|
|
164
|
+
}, Et = (e, t) => {
|
|
165
165
|
let n = "";
|
|
166
166
|
const o = () => {
|
|
167
167
|
n = "";
|
|
168
168
|
}, r = (d) => {
|
|
169
|
-
const
|
|
170
|
-
return
|
|
169
|
+
const u = document.getElementById(n);
|
|
170
|
+
return u !== null ? (d(u), o(), !0) : !1;
|
|
171
171
|
}, s = (d) => (d.preventDefault(), o(), e.onClick && e.onClick(d), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
|
|
172
|
-
e.scroll || ((
|
|
173
|
-
), !1), { scroll: c, smooth:
|
|
172
|
+
e.scroll || ((u) => e.smooth ? u.scrollIntoView({ behavior: "smooth" }) : u.scrollIntoView())
|
|
173
|
+
), !1), { scroll: c, smooth: h, to: a, ...l } = e;
|
|
174
174
|
return t === "a" && (l.href = "javascript:;"), /* @__PURE__ */ i(t, { ...l, onClick: s, children: e.children });
|
|
175
175
|
}, ie = (e) => (t, n) => {
|
|
176
176
|
let o = t, r = "";
|
|
177
177
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
178
178
|
o = t;
|
|
179
179
|
else {
|
|
180
|
-
const
|
|
181
|
-
if (
|
|
182
|
-
o =
|
|
180
|
+
const h = t.match(/h1|h2|h3|h4|h5|h6/);
|
|
181
|
+
if (h != null && h[0]) {
|
|
182
|
+
o = h[0];
|
|
183
183
|
const [a] = t.split(o);
|
|
184
184
|
r = a;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
const c = ((
|
|
187
|
+
const c = ((h, a, l) => l[h] ? `${a}${l[h]}` : `${a}${h}`)(
|
|
188
188
|
o,
|
|
189
189
|
r,
|
|
190
190
|
e.theme.typographyVariantMapping || {}
|
|
@@ -195,7 +195,7 @@ const Ne = () => {
|
|
|
195
195
|
}
|
|
196
196
|
`;
|
|
197
197
|
};
|
|
198
|
-
function
|
|
198
|
+
function Ht(e) {
|
|
199
199
|
if (typeof e != "string")
|
|
200
200
|
throw new TypeError("Expected HTML string");
|
|
201
201
|
const t = document.createElement("div");
|
|
@@ -215,16 +215,16 @@ function Et(e) {
|
|
|
215
215
|
return Array.from(n).map((o) => o.tagName ? o.outerHTML : o.textContent).join("");
|
|
216
216
|
}
|
|
217
217
|
function Rt(e, t) {
|
|
218
|
-
return t ?
|
|
218
|
+
return t ? Re(Ht(e), t) : Re(e);
|
|
219
219
|
}
|
|
220
|
-
const
|
|
220
|
+
const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt = (e, t) => ({
|
|
221
221
|
transform: {
|
|
222
|
-
a:
|
|
223
|
-
img:
|
|
222
|
+
a: Mt(e),
|
|
223
|
+
img: Tt(t)
|
|
224
224
|
}
|
|
225
|
-
}),
|
|
225
|
+
}), Dt = (e) => Et(e, "a"), se = D(
|
|
226
226
|
({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
|
|
227
|
-
|
|
227
|
+
zt,
|
|
228
228
|
{
|
|
229
229
|
type: "button",
|
|
230
230
|
className: M(e, "humany-button"),
|
|
@@ -233,7 +233,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
233
233
|
children: t
|
|
234
234
|
}
|
|
235
235
|
)
|
|
236
|
-
),
|
|
236
|
+
), zt = C.button`
|
|
237
237
|
-webkit-appearance: button;
|
|
238
238
|
text-transform: none;
|
|
239
239
|
overflow: visible;
|
|
@@ -246,7 +246,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
246
246
|
line-height: normal;
|
|
247
247
|
margin: 0;
|
|
248
248
|
padding: 0;
|
|
249
|
-
`,
|
|
249
|
+
`, xo = ({
|
|
250
250
|
onChange: e = () => {
|
|
251
251
|
},
|
|
252
252
|
onEnter: t = () => {
|
|
@@ -261,18 +261,18 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
261
261
|
onKeyDown: (s) => {
|
|
262
262
|
s.key === "Enter" && t(s);
|
|
263
263
|
},
|
|
264
|
-
autoComplete: o,
|
|
264
|
+
autoComplete: o || void 0,
|
|
265
265
|
onChange: (s) => e(s.target.value, s.currentTarget.checked),
|
|
266
266
|
...z(r)
|
|
267
267
|
}
|
|
268
|
-
),
|
|
268
|
+
), Bt = K(new ht()), Vt = K(1), Ze = K({
|
|
269
269
|
id: "",
|
|
270
270
|
type: "",
|
|
271
271
|
name: "",
|
|
272
272
|
branch: ""
|
|
273
|
-
}),
|
|
273
|
+
}), Wt = K(
|
|
274
274
|
{}
|
|
275
|
-
),
|
|
275
|
+
), Zt = K(null), It = K(null), pe = () => P(Ze), B = () => P(Bt), wo = (e, t) => {
|
|
276
276
|
const n = pe().id, o = B();
|
|
277
277
|
return (r, s) => {
|
|
278
278
|
(t || o).getAsync("actionResolver").then((c) => {
|
|
@@ -295,17 +295,17 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
295
295
|
}, Y = (e) => {
|
|
296
296
|
const t = B(), [n, o] = w(null), r = Z();
|
|
297
297
|
return v(() => {
|
|
298
|
-
|
|
298
|
+
mt.getInstance(e || t).then(
|
|
299
299
|
(s) => {
|
|
300
300
|
r.current && o(s);
|
|
301
301
|
}
|
|
302
302
|
);
|
|
303
303
|
}, [r]), n;
|
|
304
|
-
},
|
|
304
|
+
}, ko = () => {
|
|
305
305
|
const e = Ce(), t = Y(), [n, o] = w([]), r = Z(), s = E(
|
|
306
306
|
(c) => {
|
|
307
307
|
if (t && r.current && c) {
|
|
308
|
-
const
|
|
308
|
+
const h = t.getBranch(c), a = c.getChildren(h).map((l) => gt(l));
|
|
309
309
|
o(a);
|
|
310
310
|
}
|
|
311
311
|
},
|
|
@@ -315,7 +315,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
315
315
|
e && s(e);
|
|
316
316
|
}, [e, t]), v(() => {
|
|
317
317
|
if (t) {
|
|
318
|
-
const [c,
|
|
318
|
+
const [c, h] = pt(t.events);
|
|
319
319
|
return c("components:set-layout", (a, l) => {
|
|
320
320
|
(e === l.node.parent || l.node.parent === t.nodes.root) && s(l.node.parent);
|
|
321
321
|
}), c("components:node-appended", (a, l) => {
|
|
@@ -323,29 +323,29 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
323
323
|
}), c("components:node-removed", (a, { parentNode: l }) => {
|
|
324
324
|
(l === e || l === t.nodes.root) && s(l);
|
|
325
325
|
}), () => {
|
|
326
|
-
|
|
326
|
+
h();
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
}, [e, t, s]), n;
|
|
330
|
-
},
|
|
331
|
-
const n = pe(), o = B(), [r, s] = w(void 0), c = Z(),
|
|
330
|
+
}, $o = () => P(Vt), Lo = (e, t) => {
|
|
331
|
+
const n = pe(), o = B(), [r, s] = w(void 0), c = Z(), h = e || n.type || "";
|
|
332
332
|
return v(() => {
|
|
333
|
-
if (
|
|
333
|
+
if (h) {
|
|
334
334
|
let a;
|
|
335
335
|
return (t || o).getAsync("componentResolver").then((l) => {
|
|
336
336
|
if (c.current) {
|
|
337
|
-
const d = l.getComponent(
|
|
337
|
+
const d = l.getComponent(h);
|
|
338
338
|
s(d);
|
|
339
339
|
}
|
|
340
|
-
a = l.registerResolver(
|
|
340
|
+
a = l.registerResolver(h, (d) => {
|
|
341
341
|
c.current && s(d);
|
|
342
342
|
});
|
|
343
343
|
}), () => {
|
|
344
344
|
a && a();
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
}, [c,
|
|
348
|
-
},
|
|
347
|
+
}, [c, h, t, o]), r;
|
|
348
|
+
}, Ot = (e) => {
|
|
349
349
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
350
350
|
return v(() => {
|
|
351
351
|
t && s.current && r(t.attributes.context);
|
|
@@ -353,7 +353,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
353
353
|
if (n) {
|
|
354
354
|
const c = n.events.subscribe(
|
|
355
355
|
"components:context-changed",
|
|
356
|
-
(
|
|
356
|
+
(h, a) => {
|
|
357
357
|
t === a.node && s.current && r(a.node.attributes.context);
|
|
358
358
|
}
|
|
359
359
|
);
|
|
@@ -362,23 +362,23 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
}, [s, n, t]), o;
|
|
365
|
-
},
|
|
365
|
+
}, Mo = () => P(It), So = () => {
|
|
366
366
|
const e = Y(), t = pe(), [n, o] = w([]), [r, s] = w();
|
|
367
367
|
return v(() => {
|
|
368
368
|
if (e && t) {
|
|
369
|
-
const c = new
|
|
370
|
-
s(
|
|
371
|
-
|
|
369
|
+
const c = new Ct(e).withId(t.id), h = e.actions(c, t.type || _());
|
|
370
|
+
s(h), n !== null && (n.forEach((a) => {
|
|
371
|
+
h.dispatch(a.key, a.data).then((l) => a.resolve(l)).catch((l) => a.reject(l));
|
|
372
372
|
}), o(null));
|
|
373
373
|
}
|
|
374
|
-
}, [e, t.id]), (c,
|
|
374
|
+
}, [e, t.id]), (c, h) => n !== null ? new Promise((a, l) => {
|
|
375
375
|
n.push({
|
|
376
376
|
key: c,
|
|
377
|
-
data:
|
|
377
|
+
data: h,
|
|
378
378
|
resolve: a,
|
|
379
379
|
reject: l
|
|
380
380
|
});
|
|
381
|
-
}) : r.dispatch(c,
|
|
381
|
+
}) : r.dispatch(c, h);
|
|
382
382
|
}, W = (e, t, n = window, o = () => !0) => {
|
|
383
383
|
const r = L(() => {
|
|
384
384
|
});
|
|
@@ -387,15 +387,15 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
387
387
|
}, [t]), v(() => {
|
|
388
388
|
if (!(n && o()))
|
|
389
389
|
return;
|
|
390
|
-
const c = (
|
|
390
|
+
const c = (h) => r.current(h);
|
|
391
391
|
return n.addEventListener(e, c), () => {
|
|
392
392
|
n.removeEventListener(e, c);
|
|
393
393
|
};
|
|
394
394
|
}, [e, n]);
|
|
395
|
-
},
|
|
395
|
+
}, At = (e) => {
|
|
396
396
|
const t = B(), { events: n } = (e || t).get("$widget");
|
|
397
397
|
return n;
|
|
398
|
-
},
|
|
398
|
+
}, Eo = () => {
|
|
399
399
|
const [e, t] = w(!1);
|
|
400
400
|
return v(() => {
|
|
401
401
|
const n = () => {
|
|
@@ -410,8 +410,8 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
410
410
|
}, j = (e, t) => {
|
|
411
411
|
const [n, o] = w(!1), r = E(
|
|
412
412
|
(c) => {
|
|
413
|
-
const { key:
|
|
414
|
-
|
|
413
|
+
const { key: h } = c;
|
|
414
|
+
h === e && (o(!0), t && t(c));
|
|
415
415
|
},
|
|
416
416
|
[o, t]
|
|
417
417
|
), s = E(
|
|
@@ -421,7 +421,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
421
421
|
[o]
|
|
422
422
|
);
|
|
423
423
|
return W("keydown", r, window), W("keyup", s, window), n;
|
|
424
|
-
},
|
|
424
|
+
}, Ho = (e) => {
|
|
425
425
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
426
426
|
return v(() => {
|
|
427
427
|
t && s.current && r(t.attributes.layout);
|
|
@@ -429,7 +429,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
429
429
|
if (n) {
|
|
430
430
|
const c = n.events.subscribe(
|
|
431
431
|
"components:layout-changed",
|
|
432
|
-
(
|
|
432
|
+
(h, a) => {
|
|
433
433
|
t === a.node && s.current && r(a.node.attributes.layout);
|
|
434
434
|
}
|
|
435
435
|
);
|
|
@@ -443,23 +443,23 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
443
443
|
return v(() => {
|
|
444
444
|
t.current = e;
|
|
445
445
|
}), t.current;
|
|
446
|
-
},
|
|
446
|
+
}, Ro = () => P(Wt), To = (e) => {
|
|
447
447
|
const [t, n] = w(), o = B(), r = Z();
|
|
448
448
|
return v(() => {
|
|
449
449
|
let s;
|
|
450
450
|
const c = (e || o).get("$widget");
|
|
451
451
|
if (!c)
|
|
452
452
|
return;
|
|
453
|
-
const { name:
|
|
453
|
+
const { name: h, invoke: a } = c;
|
|
454
454
|
return a("renderState").then((l) => {
|
|
455
455
|
r.current && n(l);
|
|
456
456
|
}), (e || o).getAsync("actionResolver").then((l) => {
|
|
457
|
-
s = l.subscribe(
|
|
458
|
-
switch (
|
|
457
|
+
s = l.subscribe(h, (d, u) => {
|
|
458
|
+
switch (u) {
|
|
459
459
|
case "close":
|
|
460
460
|
case "open":
|
|
461
461
|
r.current && n(
|
|
462
|
-
|
|
462
|
+
u === "open" ? ne.open : ne.closed
|
|
463
463
|
);
|
|
464
464
|
break;
|
|
465
465
|
case "hide":
|
|
@@ -470,7 +470,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
470
470
|
s && s();
|
|
471
471
|
};
|
|
472
472
|
}, [r]), t;
|
|
473
|
-
}, Oe = () => P(
|
|
473
|
+
}, Oe = () => P(Zt), No = (e) => {
|
|
474
474
|
const t = B(), n = Oe(), [o, r] = w({
|
|
475
475
|
name: "",
|
|
476
476
|
params: {}
|
|
@@ -479,20 +479,20 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
479
479
|
const c = (e || t).get("$widget");
|
|
480
480
|
if (!c)
|
|
481
481
|
return;
|
|
482
|
-
const { events:
|
|
483
|
-
return
|
|
482
|
+
const { events: h } = c;
|
|
483
|
+
return h.subscribe(
|
|
484
484
|
"router:change",
|
|
485
485
|
(l, { next: { routeData: d } }) => {
|
|
486
486
|
if (s.current) {
|
|
487
|
-
const { name:
|
|
488
|
-
|
|
487
|
+
const { name: u, params: f } = d;
|
|
488
|
+
He(f), r({ name: u, params: f });
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
492
|
}, [s, e, t]), v(() => {
|
|
493
493
|
if (n && n.history && s.current) {
|
|
494
|
-
const c = n.getRouteData(), { name:
|
|
495
|
-
|
|
494
|
+
const c = n.getRouteData(), { name: h, params: a } = c;
|
|
495
|
+
He(a), r({ name: h, params: a });
|
|
496
496
|
}
|
|
497
497
|
}, [n, s]), o;
|
|
498
498
|
}, Ae = (e) => {
|
|
@@ -509,14 +509,14 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
509
509
|
n.current = l.touches[0].clientY;
|
|
510
510
|
},
|
|
511
511
|
[t]
|
|
512
|
-
), c = (l) =>
|
|
512
|
+
), c = (l) => h(l) ? l === t.current ? l : null : l.parentElement ? c(l.parentElement) : null, h = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, a = E(
|
|
513
513
|
(l) => {
|
|
514
514
|
if (!l.cancelable)
|
|
515
515
|
return;
|
|
516
|
-
const d = l.touches[0].clientY,
|
|
517
|
-
if (!
|
|
516
|
+
const d = l.touches[0].clientY, u = c(l.target);
|
|
517
|
+
if (!u)
|
|
518
518
|
return;
|
|
519
|
-
const f =
|
|
519
|
+
const f = u.scrollTop, g = n.current - d < 0 ? "up" : "down", m = f <= 0 && g === "up", p = f >= u.scrollHeight - u.offsetHeight && g === "down";
|
|
520
520
|
(m || p) && l.preventDefault(), n.current = d;
|
|
521
521
|
},
|
|
522
522
|
[t, n]
|
|
@@ -536,8 +536,8 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
536
536
|
a,
|
|
537
537
|
t.current,
|
|
538
538
|
() => t.current && e
|
|
539
|
-
), e ? [
|
|
540
|
-
},
|
|
539
|
+
), e ? [Ft, t] : ["", t];
|
|
540
|
+
}, Ft = `
|
|
541
541
|
overflow-y: ${Ne() === fe.Chrome || Ne() === fe.EdgeChromium ? "overlay" : "auto"};
|
|
542
542
|
overflow-x: hidden;
|
|
543
543
|
-ms-overflow-style: none; /* IE 10+ */
|
|
@@ -565,7 +565,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
565
565
|
background-color: #7F7F7F;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
`,
|
|
568
|
+
`, Do = () => {
|
|
569
569
|
const [e, t] = w(null), n = B(), o = Z();
|
|
570
570
|
return v(() => {
|
|
571
571
|
n.get("settings").then((r) => {
|
|
@@ -577,18 +577,18 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
577
577
|
n(typeof r == "boolean" ? r : (s) => !s);
|
|
578
578
|
}, []);
|
|
579
579
|
return [t, o];
|
|
580
|
-
},
|
|
581
|
-
const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [c,
|
|
580
|
+
}, zo = (e) => {
|
|
581
|
+
const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [c, h] = w(null), a = Z();
|
|
582
582
|
v(() => {
|
|
583
583
|
if (n && a.current) {
|
|
584
|
-
const d = n.nodes.all.find((f) => f.name === "root-area"),
|
|
585
|
-
if (!(
|
|
584
|
+
const d = n.nodes.all.find((f) => f.name === "root-area"), u = n.nodes.all.find((f) => f.type === "view");
|
|
585
|
+
if (!(u != null && u.attributes.properties.animation) && !(d != null && d.attributes.properties.animation))
|
|
586
586
|
e();
|
|
587
587
|
else {
|
|
588
|
-
const f = (p = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${p}"]`), g = f(
|
|
588
|
+
const f = (p = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${p}"]`), g = f(u == null ? void 0 : u.id);
|
|
589
589
|
g && s(g);
|
|
590
590
|
const m = f(d == null ? void 0 : d.id);
|
|
591
|
-
m &&
|
|
591
|
+
m && h(m);
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
}, [n, t, a]);
|
|
@@ -608,7 +608,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
608
608
|
c
|
|
609
609
|
);
|
|
610
610
|
}, ae = (e, t, n = [], o) => {
|
|
611
|
-
const r =
|
|
611
|
+
const r = At(o);
|
|
612
612
|
return v(() => {
|
|
613
613
|
if (r) {
|
|
614
614
|
const s = r.subscribe(e, t);
|
|
@@ -641,7 +641,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
641
641
|
border: ${e.theme.border};
|
|
642
642
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
643
643
|
${e["data-loading"] && "min-height: 150px;"}
|
|
644
|
-
`,
|
|
644
|
+
`, Pt = (e) => {
|
|
645
645
|
var t, n, o;
|
|
646
646
|
return k`
|
|
647
647
|
cursor: pointer;
|
|
@@ -653,11 +653,11 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
653
653
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
654
654
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
655
655
|
`;
|
|
656
|
-
},
|
|
656
|
+
}, Bo = (e) => {
|
|
657
657
|
var c;
|
|
658
658
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
659
659
|
return k`
|
|
660
|
-
${
|
|
660
|
+
${Pt(e)}
|
|
661
661
|
border: 1px solid ${o ? n : t};
|
|
662
662
|
background-color: ${o ? t : n};
|
|
663
663
|
|
|
@@ -698,10 +698,10 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
698
698
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
699
699
|
border-color: transparent;
|
|
700
700
|
`;
|
|
701
|
-
},
|
|
701
|
+
}, jt = (e) => k`
|
|
702
702
|
${O(e)}
|
|
703
703
|
text-decoration: underline;
|
|
704
|
-
`,
|
|
704
|
+
`, Vo = (e) => {
|
|
705
705
|
var t;
|
|
706
706
|
return k`
|
|
707
707
|
${O(e)}
|
|
@@ -746,7 +746,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
746
746
|
var t;
|
|
747
747
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
748
748
|
}};
|
|
749
|
-
`,
|
|
749
|
+
`, Kt = (e) => {
|
|
750
750
|
var t;
|
|
751
751
|
return k`
|
|
752
752
|
padding: 0;
|
|
@@ -768,7 +768,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
768
768
|
margin: 0;
|
|
769
769
|
}
|
|
770
770
|
`;
|
|
771
|
-
},
|
|
771
|
+
}, Wo = (e) => {
|
|
772
772
|
var t, n, o, r;
|
|
773
773
|
return k`
|
|
774
774
|
> div {
|
|
@@ -784,7 +784,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
784
784
|
)}
|
|
785
785
|
}
|
|
786
786
|
> ul {
|
|
787
|
-
${
|
|
787
|
+
${Kt(e)}
|
|
788
788
|
}
|
|
789
789
|
${ie(e)(
|
|
790
790
|
"h1",
|
|
@@ -804,7 +804,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
804
804
|
`
|
|
805
805
|
)}
|
|
806
806
|
`;
|
|
807
|
-
},
|
|
807
|
+
}, Zo = (e) => {
|
|
808
808
|
var t, n, o, r, s, c;
|
|
809
809
|
return k`
|
|
810
810
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -833,7 +833,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
833
833
|
a {
|
|
834
834
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
835
835
|
&:focus-visible {
|
|
836
|
-
${
|
|
836
|
+
${jt(e)};
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
|
|
@@ -870,7 +870,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
870
870
|
});
|
|
871
871
|
return v(() => (t.appendChild(o), () => {
|
|
872
872
|
o.childElementCount <= 1 && o.remove();
|
|
873
|
-
}), [o]),
|
|
873
|
+
}), [o]), bt(n, o);
|
|
874
874
|
}, Q = ({
|
|
875
875
|
text: e = "",
|
|
876
876
|
backgroundSize: t = "contain",
|
|
@@ -883,11 +883,11 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
883
883
|
className: s,
|
|
884
884
|
...c
|
|
885
885
|
}) => {
|
|
886
|
-
const { type:
|
|
886
|
+
const { type: h, content: a } = o, l = {
|
|
887
887
|
"aria-label": e,
|
|
888
888
|
role: "presentation"
|
|
889
889
|
};
|
|
890
|
-
switch (
|
|
890
|
+
switch (h) {
|
|
891
891
|
case "Uri": {
|
|
892
892
|
const d = {
|
|
893
893
|
backgroundSize: t,
|
|
@@ -919,7 +919,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
919
919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
920
920
|
...c,
|
|
921
921
|
ref: null
|
|
922
|
-
},
|
|
922
|
+
}, u = { minWidth: `${n}` };
|
|
923
923
|
switch (a) {
|
|
924
924
|
case "search":
|
|
925
925
|
return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...d, children: [
|
|
@@ -973,22 +973,22 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
973
973
|
/* @__PURE__ */ i("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" })
|
|
974
974
|
] });
|
|
975
975
|
case "caret-right":
|
|
976
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style:
|
|
976
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: u, ...d, children: [
|
|
977
977
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }),
|
|
978
978
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" })
|
|
979
979
|
] });
|
|
980
980
|
case "caret-left":
|
|
981
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style:
|
|
981
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: u, ...d, children: [
|
|
982
982
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }),
|
|
983
983
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" })
|
|
984
984
|
] });
|
|
985
985
|
case "caret-up":
|
|
986
|
-
return /* @__PURE__ */ b(
|
|
986
|
+
return /* @__PURE__ */ b(Yt, { viewBox: "0 0 14 14", style: u, ...d, children: [
|
|
987
987
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
988
988
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
989
989
|
] });
|
|
990
990
|
case "caret-down":
|
|
991
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style:
|
|
991
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: u, ...d, children: [
|
|
992
992
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
993
993
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
994
994
|
] });
|
|
@@ -1316,7 +1316,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
1316
1316
|
)
|
|
1317
1317
|
] });
|
|
1318
1318
|
case "video":
|
|
1319
|
-
return
|
|
1319
|
+
return u.minWidth && typeof u.minWidth == "number" && (u.minWidth = `${u.minWidth}px`), /* @__PURE__ */ b("svg", { viewBox: "0 0 25 25", ...d, style: u, children: [
|
|
1320
1320
|
/* @__PURE__ */ i(
|
|
1321
1321
|
"path",
|
|
1322
1322
|
{
|
|
@@ -1456,7 +1456,7 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
1456
1456
|
}
|
|
1457
1457
|
case "FontAwesome":
|
|
1458
1458
|
return /* @__PURE__ */ i(
|
|
1459
|
-
|
|
1459
|
+
cn,
|
|
1460
1460
|
{
|
|
1461
1461
|
className: s,
|
|
1462
1462
|
faIcon: a,
|
|
@@ -1477,9 +1477,9 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
1477
1477
|
}
|
|
1478
1478
|
) : null;
|
|
1479
1479
|
}
|
|
1480
|
-
},
|
|
1480
|
+
}, Yt = C.svg`
|
|
1481
1481
|
transform: rotate(180deg);
|
|
1482
|
-
`,
|
|
1482
|
+
`, Xt = {
|
|
1483
1483
|
h1: "h1",
|
|
1484
1484
|
h2: "h2",
|
|
1485
1485
|
h3: "h3",
|
|
@@ -1494,14 +1494,14 @@ const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt =
|
|
|
1494
1494
|
className: n,
|
|
1495
1495
|
children: o
|
|
1496
1496
|
}) => {
|
|
1497
|
-
const { typographyVariantMapping: r = {} } =
|
|
1498
|
-
...
|
|
1497
|
+
const { typographyVariantMapping: r = {} } = Ot(), s = {
|
|
1498
|
+
...Xt,
|
|
1499
1499
|
...r
|
|
1500
1500
|
}, c = t || s[e] || "span";
|
|
1501
|
-
return /* @__PURE__ */ i(
|
|
1502
|
-
},
|
|
1503
|
-
var
|
|
1504
|
-
const
|
|
1501
|
+
return /* @__PURE__ */ i(_t, { className: n, as: c, children: o });
|
|
1502
|
+
}, _t = C.span``;
|
|
1503
|
+
var Ut = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Ut || {});
|
|
1504
|
+
const qt = 300, Io = ({
|
|
1505
1505
|
className: e,
|
|
1506
1506
|
children: t,
|
|
1507
1507
|
header: n,
|
|
@@ -1509,12 +1509,12 @@ const Ut = 300, Wo = ({
|
|
|
1509
1509
|
trigger: r,
|
|
1510
1510
|
fullScreen: s = !1,
|
|
1511
1511
|
closeButtonAriaLabel: c,
|
|
1512
|
-
animation:
|
|
1512
|
+
animation: h = {
|
|
1513
1513
|
type: "slide-in-bottom"
|
|
1514
1514
|
/* SlideInBottom */
|
|
1515
1515
|
}
|
|
1516
1516
|
}) => {
|
|
1517
|
-
const { duration: a =
|
|
1517
|
+
const { duration: a = qt } = h, l = L(), d = L(), [u, f] = Ae(!0), [g, m] = Fe(), p = Ie(g), y = L(_());
|
|
1518
1518
|
v(() => {
|
|
1519
1519
|
o && o(g);
|
|
1520
1520
|
}, [g]);
|
|
@@ -1529,7 +1529,7 @@ const Ut = 300, Wo = ({
|
|
|
1529
1529
|
},
|
|
1530
1530
|
window
|
|
1531
1531
|
);
|
|
1532
|
-
const
|
|
1532
|
+
const H = ye(y.current, () => {
|
|
1533
1533
|
m(!1);
|
|
1534
1534
|
});
|
|
1535
1535
|
ae("router:changed", () => {
|
|
@@ -1537,7 +1537,7 @@ const Ut = 300, Wo = ({
|
|
|
1537
1537
|
}), v(() => {
|
|
1538
1538
|
g && l.current ? l.current.focus() : !g && d.current && p && d.current.focus();
|
|
1539
1539
|
}, [g, l.current, d.current]);
|
|
1540
|
-
const N =
|
|
1540
|
+
const N = nn[h.type];
|
|
1541
1541
|
return /* @__PURE__ */ b(U, { children: [
|
|
1542
1542
|
/* @__PURE__ */ i(
|
|
1543
1543
|
Ve,
|
|
@@ -1558,7 +1558,7 @@ const Ut = 300, Wo = ({
|
|
|
1558
1558
|
`humany-drawer-${y.current}`
|
|
1559
1559
|
),
|
|
1560
1560
|
clientHeight: document.body.clientHeight,
|
|
1561
|
-
css:
|
|
1561
|
+
css: u,
|
|
1562
1562
|
ref: f,
|
|
1563
1563
|
children: [
|
|
1564
1564
|
/* @__PURE__ */ i(
|
|
@@ -1571,7 +1571,7 @@ const Ut = 300, Wo = ({
|
|
|
1571
1571
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
1572
1572
|
}
|
|
1573
1573
|
),
|
|
1574
|
-
!!n && /* @__PURE__ */ i(
|
|
1574
|
+
!!n && /* @__PURE__ */ i(Qt, { variant: "h1", className: "humany-drawer-header", children: n }),
|
|
1575
1575
|
t
|
|
1576
1576
|
]
|
|
1577
1577
|
}
|
|
@@ -1580,7 +1580,7 @@ const Ut = 300, Wo = ({
|
|
|
1580
1580
|
),
|
|
1581
1581
|
oe.cloneElement(r, {
|
|
1582
1582
|
onClick: (S) => {
|
|
1583
|
-
m(),
|
|
1583
|
+
m(), H();
|
|
1584
1584
|
},
|
|
1585
1585
|
ref: d,
|
|
1586
1586
|
"aria-label": r.props.title,
|
|
@@ -1604,7 +1604,7 @@ const Ut = 300, Wo = ({
|
|
|
1604
1604
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1605
1605
|
background: #ffffff;
|
|
1606
1606
|
${(e) => e.css && e.css}
|
|
1607
|
-
`,
|
|
1607
|
+
`, Qt = C(X)`
|
|
1608
1608
|
padding: ${(e) => {
|
|
1609
1609
|
var t;
|
|
1610
1610
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1629,7 +1629,7 @@ const Ut = 300, Wo = ({
|
|
|
1629
1629
|
line-height: 1.2em;
|
|
1630
1630
|
`, le = (e) => k`
|
|
1631
1631
|
transition: ${e.duration}ms;
|
|
1632
|
-
`,
|
|
1632
|
+
`, Gt = C(ce)`
|
|
1633
1633
|
max-height: 0;
|
|
1634
1634
|
${le}
|
|
1635
1635
|
|
|
@@ -1646,7 +1646,7 @@ const Ut = 300, Wo = ({
|
|
|
1646
1646
|
&.humany-drawer-transition-exit-done {
|
|
1647
1647
|
max-height: 0;
|
|
1648
1648
|
}
|
|
1649
|
-
`,
|
|
1649
|
+
`, Jt = C(ce)`
|
|
1650
1650
|
${le}
|
|
1651
1651
|
transform: translateX(100%);
|
|
1652
1652
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1664,7 +1664,7 @@ const Ut = 300, Wo = ({
|
|
|
1664
1664
|
&.humany-drawer-transition-exit-done {
|
|
1665
1665
|
transform: translateX(100%);
|
|
1666
1666
|
}
|
|
1667
|
-
`,
|
|
1667
|
+
`, en = C(ce)`
|
|
1668
1668
|
${le}
|
|
1669
1669
|
transform: translateX(-100%);
|
|
1670
1670
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1682,7 +1682,7 @@ const Ut = 300, Wo = ({
|
|
|
1682
1682
|
&.humany-drawer-transition-exit-done {
|
|
1683
1683
|
transform: translateX(-100%);
|
|
1684
1684
|
}
|
|
1685
|
-
`,
|
|
1685
|
+
`, tn = C(ce)`
|
|
1686
1686
|
${le}
|
|
1687
1687
|
bottom: unset;
|
|
1688
1688
|
top: 0;
|
|
@@ -1701,13 +1701,13 @@ const Ut = 300, Wo = ({
|
|
|
1701
1701
|
&.humany-drawer-transition-exit-done {
|
|
1702
1702
|
height: 0;
|
|
1703
1703
|
}
|
|
1704
|
-
`,
|
|
1705
|
-
"slide-in-bottom":
|
|
1706
|
-
"slide-in-right":
|
|
1707
|
-
"slide-in-left":
|
|
1708
|
-
"slide-in-top":
|
|
1704
|
+
`, nn = {
|
|
1705
|
+
"slide-in-bottom": Gt,
|
|
1706
|
+
"slide-in-right": Jt,
|
|
1707
|
+
"slide-in-left": en,
|
|
1708
|
+
"slide-in-top": tn
|
|
1709
1709
|
}, je = (e, t, n) => {
|
|
1710
|
-
const [o, r] = w(0), [s, c] = w(0),
|
|
1710
|
+
const [o, r] = w(0), [s, c] = w(0), h = E(
|
|
1711
1711
|
(a, l) => {
|
|
1712
1712
|
if (a.preventDefault(), l) {
|
|
1713
1713
|
const d = l.getBoundingClientRect();
|
|
@@ -1724,8 +1724,8 @@ const Ut = 300, Wo = ({
|
|
|
1724
1724
|
y: s
|
|
1725
1725
|
};
|
|
1726
1726
|
a.left < 0 && (l.x = 0), a.bottom > window.innerHeight && (l.y = 0), l.x !== o && r(l.x), l.y !== s && c(l.y);
|
|
1727
|
-
}, [n, e, t]), [{ x: o, y: s },
|
|
1728
|
-
},
|
|
1727
|
+
}, [n, e, t]), [{ x: o, y: s }, h];
|
|
1728
|
+
}, Oo = oe.forwardRef(
|
|
1729
1729
|
({
|
|
1730
1730
|
className: e = "",
|
|
1731
1731
|
children: t = null,
|
|
@@ -1733,34 +1733,34 @@ const Ut = 300, Wo = ({
|
|
|
1733
1733
|
closeButtonAriaLabel: o,
|
|
1734
1734
|
...r
|
|
1735
1735
|
}, s) => {
|
|
1736
|
-
const c = L(),
|
|
1736
|
+
const c = L(), h = L(), a = L();
|
|
1737
1737
|
ge(s, () => a.current, [a.current]);
|
|
1738
|
-
const l = L(_()), [d,
|
|
1738
|
+
const l = L(_()), [d, u] = w(!1), f = Ie(d), [{ x: g, y: m }, p] = je(d, l.current, a.current), y = j("Escape");
|
|
1739
1739
|
v(() => {
|
|
1740
|
-
y &&
|
|
1740
|
+
y && u(!1);
|
|
1741
1741
|
}, [y]), v(() => {
|
|
1742
|
-
d && c.current ? c.current.focus() : !d &&
|
|
1743
|
-
}, [d, c.current,
|
|
1742
|
+
d && c.current ? c.current.focus() : !d && h.current && f && h.current.focus();
|
|
1743
|
+
}, [d, c.current, h.current]), W(
|
|
1744
1744
|
"click",
|
|
1745
1745
|
(N) => {
|
|
1746
1746
|
const { target: S } = N;
|
|
1747
|
-
!a.current || !S || a.current !== S && !a.current.contains(S) &&
|
|
1747
|
+
!a.current || !S || a.current !== S && !a.current.contains(S) && u(!1);
|
|
1748
1748
|
},
|
|
1749
1749
|
window
|
|
1750
1750
|
), ae("router:changed", () => {
|
|
1751
|
-
|
|
1751
|
+
u(!1);
|
|
1752
1752
|
});
|
|
1753
1753
|
const $ = ye(l.current, () => {
|
|
1754
|
-
|
|
1755
|
-
}),
|
|
1754
|
+
u(!1);
|
|
1755
|
+
}), H = E(
|
|
1756
1756
|
(N) => {
|
|
1757
|
-
N.stopPropagation(), p(N,
|
|
1757
|
+
N.stopPropagation(), p(N, h.current), u(!d), $();
|
|
1758
1758
|
},
|
|
1759
|
-
[$, p,
|
|
1759
|
+
[$, p, u]
|
|
1760
1760
|
);
|
|
1761
1761
|
return /* @__PURE__ */ b(U, { children: [
|
|
1762
1762
|
d && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1763
|
-
|
|
1763
|
+
on,
|
|
1764
1764
|
{
|
|
1765
1765
|
className: M(
|
|
1766
1766
|
"humany-dropdown",
|
|
@@ -1775,7 +1775,7 @@ const Ut = 300, Wo = ({
|
|
|
1775
1775
|
/* @__PURE__ */ i(
|
|
1776
1776
|
ve,
|
|
1777
1777
|
{
|
|
1778
|
-
onClick: () =>
|
|
1778
|
+
onClick: () => u(!1),
|
|
1779
1779
|
tabIndex: 0,
|
|
1780
1780
|
ref: c,
|
|
1781
1781
|
"aria-label": o,
|
|
@@ -1787,14 +1787,14 @@ const Ut = 300, Wo = ({
|
|
|
1787
1787
|
}
|
|
1788
1788
|
) }),
|
|
1789
1789
|
oe.cloneElement(n, {
|
|
1790
|
-
onClick:
|
|
1791
|
-
ref:
|
|
1790
|
+
onClick: H,
|
|
1791
|
+
ref: h,
|
|
1792
1792
|
"aria-label": n.props.title,
|
|
1793
1793
|
"aria-expanded": d
|
|
1794
1794
|
})
|
|
1795
1795
|
] });
|
|
1796
1796
|
}
|
|
1797
|
-
),
|
|
1797
|
+
), on = C.div`
|
|
1798
1798
|
${Pe}
|
|
1799
1799
|
padding: ${(e) => {
|
|
1800
1800
|
var t;
|
|
@@ -1809,11 +1809,11 @@ const Ut = 300, Wo = ({
|
|
|
1809
1809
|
let t = "";
|
|
1810
1810
|
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;
|
|
1811
1811
|
}};
|
|
1812
|
-
`,
|
|
1812
|
+
`, rn = ({ ...e }) => /* @__PURE__ */ i(sn, { ...e }), sn = C.div`
|
|
1813
1813
|
display: none;
|
|
1814
|
-
`,
|
|
1814
|
+
`, Ao = D(
|
|
1815
1815
|
({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
|
|
1816
|
-
|
|
1816
|
+
an,
|
|
1817
1817
|
{
|
|
1818
1818
|
className: M(o, "humany-grid"),
|
|
1819
1819
|
"data-columns": t,
|
|
@@ -1824,26 +1824,26 @@ const Ut = 300, Wo = ({
|
|
|
1824
1824
|
children: e
|
|
1825
1825
|
}
|
|
1826
1826
|
)
|
|
1827
|
-
),
|
|
1827
|
+
), an = C.div`
|
|
1828
1828
|
display: grid;
|
|
1829
1829
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1830
1830
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1831
1831
|
justify-content: center;
|
|
1832
1832
|
grid-auto-rows: max-content;
|
|
1833
|
-
${
|
|
1833
|
+
${St}
|
|
1834
1834
|
`, Ke = D(
|
|
1835
1835
|
({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
|
|
1836
|
-
const s = B(), [c,
|
|
1836
|
+
const s = B(), [c, h] = w();
|
|
1837
1837
|
v(() => {
|
|
1838
|
-
const d =
|
|
1838
|
+
const d = Nt(s, n), u = {
|
|
1839
1839
|
...d,
|
|
1840
1840
|
...e,
|
|
1841
1841
|
transform: {
|
|
1842
1842
|
...d.transform,
|
|
1843
1843
|
...e == null ? void 0 : e.transform
|
|
1844
1844
|
}
|
|
1845
|
-
}, f = Rt(n,
|
|
1846
|
-
|
|
1845
|
+
}, f = Rt(n, u);
|
|
1846
|
+
h(f);
|
|
1847
1847
|
}, [n, e]);
|
|
1848
1848
|
const a = L(null), l = s.get("$widget");
|
|
1849
1849
|
return v(() => {
|
|
@@ -1852,7 +1852,7 @@ const Ut = 300, Wo = ({
|
|
|
1852
1852
|
return;
|
|
1853
1853
|
new MutationObserver((f) => {
|
|
1854
1854
|
f.forEach((g) => {
|
|
1855
|
-
var $,
|
|
1855
|
+
var $, H, N;
|
|
1856
1856
|
let m = g.target;
|
|
1857
1857
|
if (m.tagName === "DIV" && m.matches("[data-notification]") && m.getAttribute("data-expandable")) {
|
|
1858
1858
|
const S = m.firstChild;
|
|
@@ -1866,7 +1866,7 @@ const Ut = 300, Wo = ({
|
|
|
1866
1866
|
return;
|
|
1867
1867
|
if (!(m != null && m.closest(".humany-notification-row")))
|
|
1868
1868
|
return;
|
|
1869
|
-
const p = (
|
|
1869
|
+
const p = (H = m.closest(".humany-notification-row")) == null ? void 0 : H.getAttribute("data-node-id"), y = (N = m.closest("[data-notification]")) == null ? void 0 : N.getAttribute("data-notification");
|
|
1870
1870
|
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(y), l.events.dispatch("notification:expandable", {
|
|
1871
1871
|
expandable: !0,
|
|
1872
1872
|
notificationRowId: p
|
|
@@ -1889,7 +1889,7 @@ const Ut = 300, Wo = ({
|
|
|
1889
1889
|
}
|
|
1890
1890
|
);
|
|
1891
1891
|
}
|
|
1892
|
-
),
|
|
1892
|
+
), cn = ({
|
|
1893
1893
|
faIcon: e,
|
|
1894
1894
|
title: t,
|
|
1895
1895
|
className: n = "",
|
|
@@ -1903,7 +1903,7 @@ const Ut = 300, Wo = ({
|
|
|
1903
1903
|
role: o,
|
|
1904
1904
|
...z(r)
|
|
1905
1905
|
}
|
|
1906
|
-
),
|
|
1906
|
+
), Fo = D(
|
|
1907
1907
|
({
|
|
1908
1908
|
className: e = "",
|
|
1909
1909
|
autoFocus: t = !1,
|
|
@@ -1916,11 +1916,11 @@ const Ut = 300, Wo = ({
|
|
|
1916
1916
|
selectAllOnFocus: s,
|
|
1917
1917
|
onChange: c = () => {
|
|
1918
1918
|
},
|
|
1919
|
-
disabled:
|
|
1919
|
+
disabled: h = !1,
|
|
1920
1920
|
type: a,
|
|
1921
1921
|
...l
|
|
1922
1922
|
}, d) => {
|
|
1923
|
-
const [
|
|
1923
|
+
const [u, f] = w(t), g = L();
|
|
1924
1924
|
ge(d, () => g.current), v(() => {
|
|
1925
1925
|
var y;
|
|
1926
1926
|
t && ((y = g == null ? void 0 : g.current) == null || y.focus());
|
|
@@ -1929,11 +1929,11 @@ const Ut = 300, Wo = ({
|
|
|
1929
1929
|
f(y), n && n(y), s && y && $.target.select();
|
|
1930
1930
|
}, p = {
|
|
1931
1931
|
...z(l),
|
|
1932
|
-
disabled:
|
|
1932
|
+
disabled: h,
|
|
1933
1933
|
autoFocus: t,
|
|
1934
1934
|
type: a,
|
|
1935
1935
|
onKeyDown: (y) => {
|
|
1936
|
-
y.key === "Enter" &&
|
|
1936
|
+
y.key === "Enter" && u && o(y), y.key === "Escape" && u && r(y);
|
|
1937
1937
|
},
|
|
1938
1938
|
onFocus: (y) => m(!0, y),
|
|
1939
1939
|
onBlur: (y) => m(!1, y),
|
|
@@ -1955,7 +1955,7 @@ const Ut = 300, Wo = ({
|
|
|
1955
1955
|
}
|
|
1956
1956
|
);
|
|
1957
1957
|
}
|
|
1958
|
-
),
|
|
1958
|
+
), ln = D(
|
|
1959
1959
|
({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) => {
|
|
1960
1960
|
const c = t.length === 1 && t[0].expanded;
|
|
1961
1961
|
return /* @__PURE__ */ i(
|
|
@@ -1967,13 +1967,13 @@ const Ut = 300, Wo = ({
|
|
|
1967
1967
|
...z(r),
|
|
1968
1968
|
ref: s,
|
|
1969
1969
|
children: t.map(
|
|
1970
|
-
(
|
|
1970
|
+
(h, a, l) => o ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(h, a, l) }, h.id || a) : n(h, a, l)
|
|
1971
1971
|
)
|
|
1972
1972
|
}
|
|
1973
1973
|
);
|
|
1974
1974
|
}
|
|
1975
|
-
),
|
|
1976
|
-
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c },
|
|
1975
|
+
), dn = D(
|
|
1976
|
+
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, h) => {
|
|
1977
1977
|
var l;
|
|
1978
1978
|
const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
|
|
1979
1979
|
return /* @__PURE__ */ b(
|
|
@@ -1981,7 +1981,7 @@ const Ut = 300, Wo = ({
|
|
|
1981
1981
|
{
|
|
1982
1982
|
className: M(o, "humany-paragraph"),
|
|
1983
1983
|
...z(c),
|
|
1984
|
-
ref:
|
|
1984
|
+
ref: h,
|
|
1985
1985
|
children: [
|
|
1986
1986
|
n ? /* @__PURE__ */ b(
|
|
1987
1987
|
X,
|
|
@@ -1999,7 +1999,7 @@ const Ut = 300, Wo = ({
|
|
|
1999
1999
|
}
|
|
2000
2000
|
);
|
|
2001
2001
|
}
|
|
2002
|
-
),
|
|
2002
|
+
), un = D(
|
|
2003
2003
|
({
|
|
2004
2004
|
header: e,
|
|
2005
2005
|
customHeader: t,
|
|
@@ -2008,24 +2008,24 @@ const Ut = 300, Wo = ({
|
|
|
2008
2008
|
className: r,
|
|
2009
2009
|
children: s,
|
|
2010
2010
|
symbol: c,
|
|
2011
|
-
items:
|
|
2011
|
+
items: h,
|
|
2012
2012
|
renderItem: a,
|
|
2013
2013
|
renderLi: l,
|
|
2014
2014
|
ulProps: d,
|
|
2015
|
-
...
|
|
2015
|
+
...u
|
|
2016
2016
|
}, f) => /* @__PURE__ */ b(
|
|
2017
2017
|
"div",
|
|
2018
2018
|
{
|
|
2019
2019
|
className: M(r, "humany-item-list"),
|
|
2020
|
-
"data-item-count":
|
|
2021
|
-
...z(
|
|
2020
|
+
"data-item-count": h.length,
|
|
2021
|
+
...z(u),
|
|
2022
2022
|
ref: f,
|
|
2023
2023
|
children: [
|
|
2024
|
-
t || (e || n || o ? /* @__PURE__ */ i(
|
|
2025
|
-
|
|
2026
|
-
|
|
2024
|
+
t || (e || n || o ? /* @__PURE__ */ i(dn, { symbol: c, header: e, text: n, html: o }) : null),
|
|
2025
|
+
h.length ? /* @__PURE__ */ i(
|
|
2026
|
+
ln,
|
|
2027
2027
|
{
|
|
2028
|
-
items:
|
|
2028
|
+
items: h,
|
|
2029
2029
|
renderItem: a,
|
|
2030
2030
|
renderLi: l,
|
|
2031
2031
|
...d
|
|
@@ -2035,7 +2035,7 @@ const Ut = 300, Wo = ({
|
|
|
2035
2035
|
]
|
|
2036
2036
|
}
|
|
2037
2037
|
)
|
|
2038
|
-
),
|
|
2038
|
+
), Po = ({
|
|
2039
2039
|
className: e = "",
|
|
2040
2040
|
tree: t,
|
|
2041
2041
|
renderItem: n,
|
|
@@ -2043,25 +2043,25 @@ const Ut = 300, Wo = ({
|
|
|
2043
2043
|
renderUnselected: r = !0,
|
|
2044
2044
|
renderEmpty: s = !0,
|
|
2045
2045
|
ulProps: c,
|
|
2046
|
-
liProps:
|
|
2046
|
+
liProps: h
|
|
2047
2047
|
}) => {
|
|
2048
|
-
const a = (
|
|
2049
|
-
|
|
2048
|
+
const a = (u) => !l(u), l = (u) => !u || u.length < 1 ? !0 : !u.some((f) => !!f.selected), d = (u, f) => /* @__PURE__ */ i(
|
|
2049
|
+
un,
|
|
2050
2050
|
{
|
|
2051
2051
|
className: M(`humany-item-tree-level-${f}`),
|
|
2052
|
-
items:
|
|
2052
|
+
items: u,
|
|
2053
2053
|
ulProps: c,
|
|
2054
2054
|
renderItem: (g) => {
|
|
2055
|
-
const { id: m, selected: p, items: y, matches: $ } = g,
|
|
2056
|
-
return !s && !$ ? null : /* @__PURE__ */
|
|
2055
|
+
const { id: m, selected: p, items: y, matches: $ } = g, H = p && l(y);
|
|
2056
|
+
return !s && !$ ? null : /* @__PURE__ */ ct(
|
|
2057
2057
|
"li",
|
|
2058
2058
|
{
|
|
2059
|
-
...z(
|
|
2059
|
+
...z(h),
|
|
2060
2060
|
key: m,
|
|
2061
2061
|
className: "humany-item-tree-item"
|
|
2062
2062
|
},
|
|
2063
|
-
n && n(g, f,
|
|
2064
|
-
y && (r ||
|
|
2063
|
+
n && n(g, f, H),
|
|
2064
|
+
y && (r || H) && d(y, f + 1)
|
|
2065
2065
|
);
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
@@ -2070,7 +2070,7 @@ const Ut = 300, Wo = ({
|
|
|
2070
2070
|
o && o(!a(t || [])),
|
|
2071
2071
|
t && d(t, 1)
|
|
2072
2072
|
] });
|
|
2073
|
-
},
|
|
2073
|
+
}, hn = D(
|
|
2074
2074
|
({
|
|
2075
2075
|
className: e,
|
|
2076
2076
|
onClick: t = () => {
|
|
@@ -2080,16 +2080,16 @@ const Ut = 300, Wo = ({
|
|
|
2080
2080
|
params: r = {},
|
|
2081
2081
|
children: s,
|
|
2082
2082
|
...c
|
|
2083
|
-
},
|
|
2083
|
+
}, h) => {
|
|
2084
2084
|
const a = Oe(), l = B();
|
|
2085
2085
|
if (!a)
|
|
2086
2086
|
return null;
|
|
2087
2087
|
let d = "";
|
|
2088
|
-
const
|
|
2088
|
+
const u = {
|
|
2089
2089
|
onClick: t,
|
|
2090
2090
|
className: M(e, "humany-route-link"),
|
|
2091
2091
|
to: d,
|
|
2092
|
-
innerRef:
|
|
2092
|
+
innerRef: h,
|
|
2093
2093
|
...c,
|
|
2094
2094
|
ref: null
|
|
2095
2095
|
};
|
|
@@ -2100,7 +2100,7 @@ const Ut = 300, Wo = ({
|
|
|
2100
2100
|
), /* @__PURE__ */ i(
|
|
2101
2101
|
ue,
|
|
2102
2102
|
{
|
|
2103
|
-
...
|
|
2103
|
+
...u,
|
|
2104
2104
|
onClick: (p) => {
|
|
2105
2105
|
t(p), p.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(
|
|
2106
2106
|
`Unable to navigate. No route named "${n}" exist.`
|
|
@@ -2115,7 +2115,7 @@ const Ut = 300, Wo = ({
|
|
|
2115
2115
|
if (Array.isArray($)) {
|
|
2116
2116
|
if ($.length === 0)
|
|
2117
2117
|
return p;
|
|
2118
|
-
p[y] = $.map((
|
|
2118
|
+
p[y] = $.map((H) => typeof H == "string" ? encodeURIComponent(H) : H).join(",");
|
|
2119
2119
|
} else
|
|
2120
2120
|
p[y] = typeof $ == "string" ? encodeURIComponent($) : $;
|
|
2121
2121
|
return p;
|
|
@@ -2125,7 +2125,7 @@ const Ut = 300, Wo = ({
|
|
|
2125
2125
|
try {
|
|
2126
2126
|
d = a.generate(n, m || {});
|
|
2127
2127
|
} catch {
|
|
2128
|
-
return /* @__PURE__ */ i(ue, { ...
|
|
2128
|
+
return /* @__PURE__ */ i(ue, { ...u, ref: u.innerRef, children: s });
|
|
2129
2129
|
}
|
|
2130
2130
|
d && a.settings.mode && a.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
|
|
2131
2131
|
} else if (o && a.history)
|
|
@@ -2141,11 +2141,15 @@ const Ut = 300, Wo = ({
|
|
|
2141
2141
|
), null;
|
|
2142
2142
|
if (a.settings && a.settings.mode === Te.scopedHash) {
|
|
2143
2143
|
const f = l.get("$widget").name;
|
|
2144
|
-
d =
|
|
2144
|
+
d = vt(d, f);
|
|
2145
2145
|
}
|
|
2146
|
-
return
|
|
2146
|
+
return u.as ? /* @__PURE__ */ i(fn, { ...u, as: u.as, children: s }) : /* @__PURE__ */ i(ue, { ...u, to: d, children: s });
|
|
2147
2147
|
}
|
|
2148
|
-
),
|
|
2148
|
+
), fn = C.span``;
|
|
2149
|
+
let Ye = !1;
|
|
2150
|
+
const mn = (e) => {
|
|
2151
|
+
Ye = e;
|
|
2152
|
+
}, jo = () => Ye, xe = D(
|
|
2149
2153
|
({
|
|
2150
2154
|
className: e,
|
|
2151
2155
|
disabled: t = !1,
|
|
@@ -2156,18 +2160,18 @@ const Ut = 300, Wo = ({
|
|
|
2156
2160
|
},
|
|
2157
2161
|
title: s,
|
|
2158
2162
|
as: c,
|
|
2159
|
-
href:
|
|
2163
|
+
href: h,
|
|
2160
2164
|
children: a,
|
|
2161
2165
|
target: l,
|
|
2162
2166
|
routeName: d,
|
|
2163
|
-
params:
|
|
2167
|
+
params: u,
|
|
2164
2168
|
...f
|
|
2165
2169
|
}, g) => {
|
|
2166
2170
|
var N, S;
|
|
2167
2171
|
const m = {
|
|
2168
2172
|
title: s,
|
|
2169
2173
|
role: d === "index" || d === "contact-method" || t ? "button" : void 0,
|
|
2170
|
-
"aria-expanded": d === "index" ? "false" : void 0,
|
|
2174
|
+
"aria-expanded": d === "index" && (u != null && u.guide) ? "false" : void 0,
|
|
2171
2175
|
disabled: t,
|
|
2172
2176
|
as: c,
|
|
2173
2177
|
tabIndex: n,
|
|
@@ -2183,7 +2187,7 @@ const Ut = 300, Wo = ({
|
|
|
2183
2187
|
o(T);
|
|
2184
2188
|
},
|
|
2185
2189
|
onKeyDown: (T) => {
|
|
2186
|
-
if (T.persist(), t) {
|
|
2190
|
+
if (T.persist(), T.key === "Enter" && mn(!0), t) {
|
|
2187
2191
|
T.key !== "Tab" && T.preventDefault();
|
|
2188
2192
|
return;
|
|
2189
2193
|
}
|
|
@@ -2191,8 +2195,8 @@ const Ut = 300, Wo = ({
|
|
|
2191
2195
|
}
|
|
2192
2196
|
};
|
|
2193
2197
|
f["data-client-name"] === "custom.link" && (m.role = "link");
|
|
2194
|
-
const y = B().get("$settings"), $ = t && ((S = (N = y == null ? void 0 : y.data) == null ? void 0 : N.accessibility) == null ? void 0 : S.disableInactiveLink),
|
|
2195
|
-
return $ ? /* @__PURE__ */ b(
|
|
2198
|
+
const y = B().get("$settings"), $ = t && ((S = (N = y == null ? void 0 : y.data) == null ? void 0 : N.accessibility) == null ? void 0 : S.disableInactiveLink), H = f.description || "<p></p>";
|
|
2199
|
+
return $ ? /* @__PURE__ */ b(gn, { className: "disabled-link", children: [
|
|
2196
2200
|
/* @__PURE__ */ i("div", { className: "icon-placeholder" }),
|
|
2197
2201
|
/* @__PURE__ */ b("div", { className: "humany-contact-link-rich-content", children: [
|
|
2198
2202
|
/* @__PURE__ */ i("span", { children: m.title }),
|
|
@@ -2200,24 +2204,24 @@ const Ut = 300, Wo = ({
|
|
|
2200
2204
|
"div",
|
|
2201
2205
|
{
|
|
2202
2206
|
className: "inner-span",
|
|
2203
|
-
dangerouslySetInnerHTML: { __html:
|
|
2207
|
+
dangerouslySetInnerHTML: { __html: H }
|
|
2204
2208
|
}
|
|
2205
2209
|
)
|
|
2206
2210
|
] })
|
|
2207
2211
|
] }) : d ? /* @__PURE__ */ i(
|
|
2208
|
-
|
|
2212
|
+
pn,
|
|
2209
2213
|
{
|
|
2210
2214
|
name: d,
|
|
2211
|
-
params:
|
|
2215
|
+
params: u,
|
|
2212
2216
|
...m,
|
|
2213
2217
|
...z(f),
|
|
2214
2218
|
ref: g,
|
|
2215
2219
|
children: a
|
|
2216
2220
|
}
|
|
2217
2221
|
) : /* @__PURE__ */ i(
|
|
2218
|
-
|
|
2222
|
+
Cn,
|
|
2219
2223
|
{
|
|
2220
|
-
href:
|
|
2224
|
+
href: h,
|
|
2221
2225
|
target: l,
|
|
2222
2226
|
...m,
|
|
2223
2227
|
...z(f),
|
|
@@ -2226,7 +2230,7 @@ const Ut = 300, Wo = ({
|
|
|
2226
2230
|
}
|
|
2227
2231
|
);
|
|
2228
2232
|
}
|
|
2229
|
-
),
|
|
2233
|
+
), gn = C.div`
|
|
2230
2234
|
display: flex;
|
|
2231
2235
|
opacity: 0.7;
|
|
2232
2236
|
.inner-span {
|
|
@@ -2246,17 +2250,17 @@ const Ut = 300, Wo = ({
|
|
|
2246
2250
|
vertical-align: bottom;
|
|
2247
2251
|
color: #333333;
|
|
2248
2252
|
}
|
|
2249
|
-
`,
|
|
2253
|
+
`, pn = C(hn)`
|
|
2250
2254
|
${(e) => e.disabled ? `
|
|
2251
2255
|
pointer-events: none;
|
|
2252
2256
|
opacity: .7;
|
|
2253
2257
|
` : "cursor: pointer;"}
|
|
2254
|
-
`,
|
|
2258
|
+
`, Cn = C.a`
|
|
2255
2259
|
${(e) => e.disabled ? `
|
|
2256
2260
|
pointer-events: none;
|
|
2257
2261
|
opacity: .7;
|
|
2258
2262
|
` : "cursor: pointer;"}
|
|
2259
|
-
`,
|
|
2263
|
+
`, Xe = ({
|
|
2260
2264
|
visible: e,
|
|
2261
2265
|
duration: t = 500,
|
|
2262
2266
|
children: n,
|
|
@@ -2265,8 +2269,8 @@ const Ut = 300, Wo = ({
|
|
|
2265
2269
|
...r
|
|
2266
2270
|
}) => {
|
|
2267
2271
|
const s = L(), c = E(
|
|
2268
|
-
(
|
|
2269
|
-
|
|
2272
|
+
(h) => {
|
|
2273
|
+
h.target === s.current && o(h);
|
|
2270
2274
|
},
|
|
2271
2275
|
[o]
|
|
2272
2276
|
);
|
|
@@ -2279,7 +2283,7 @@ const Ut = 300, Wo = ({
|
|
|
2279
2283
|
unmountOnExit: !0,
|
|
2280
2284
|
timeout: t,
|
|
2281
2285
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
2282
|
-
|
|
2286
|
+
yn,
|
|
2283
2287
|
{
|
|
2284
2288
|
className: "humany-overlay",
|
|
2285
2289
|
duration: t,
|
|
@@ -2291,7 +2295,7 @@ const Ut = 300, Wo = ({
|
|
|
2291
2295
|
) })
|
|
2292
2296
|
}
|
|
2293
2297
|
);
|
|
2294
|
-
},
|
|
2298
|
+
}, yn = C.div`
|
|
2295
2299
|
background: rgba(0, 0, 0, 0.6);
|
|
2296
2300
|
min-width: 100%;
|
|
2297
2301
|
min-height: 100%;
|
|
@@ -2321,11 +2325,11 @@ const Ut = 300, Wo = ({
|
|
|
2321
2325
|
&.humany-overlay-transition-exit-done {
|
|
2322
2326
|
opacity: 0;
|
|
2323
2327
|
}
|
|
2324
|
-
`,
|
|
2328
|
+
`, bn = Be`
|
|
2325
2329
|
100% {
|
|
2326
2330
|
transform: rotate(360deg);
|
|
2327
2331
|
}
|
|
2328
|
-
`,
|
|
2332
|
+
`, vn = Be`
|
|
2329
2333
|
0% {
|
|
2330
2334
|
stroke-dasharray: 1, 200;
|
|
2331
2335
|
stroke-dashoffset: 0;
|
|
@@ -2338,8 +2342,8 @@ const Ut = 300, Wo = ({
|
|
|
2338
2342
|
stroke-dasharray: 89, 200;
|
|
2339
2343
|
stroke-dashoffset: -124px;
|
|
2340
2344
|
}
|
|
2341
|
-
`,
|
|
2342
|
-
animation: ${
|
|
2345
|
+
`, xn = C.svg`
|
|
2346
|
+
animation: ${bn} 2s linear infinite;
|
|
2343
2347
|
height: 100%;
|
|
2344
2348
|
transform-origin: center center;
|
|
2345
2349
|
width: 100%;
|
|
@@ -2350,7 +2354,7 @@ const Ut = 300, Wo = ({
|
|
|
2350
2354
|
right: 0;
|
|
2351
2355
|
margin: auto;
|
|
2352
2356
|
transition: 200ms ease-out opacity;
|
|
2353
|
-
`,
|
|
2357
|
+
`, wn = C.div`
|
|
2354
2358
|
position: absolute;
|
|
2355
2359
|
top: 0;
|
|
2356
2360
|
bottom: 0;
|
|
@@ -2368,7 +2372,7 @@ const Ut = 300, Wo = ({
|
|
|
2368
2372
|
svg {
|
|
2369
2373
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2370
2374
|
}
|
|
2371
|
-
`,
|
|
2375
|
+
`, kn = C.div`
|
|
2372
2376
|
position: relative;
|
|
2373
2377
|
margin: 0 auto;
|
|
2374
2378
|
width: 100px;
|
|
@@ -2377,23 +2381,23 @@ const Ut = 300, Wo = ({
|
|
|
2377
2381
|
display: block;
|
|
2378
2382
|
padding-top: 100%;
|
|
2379
2383
|
}
|
|
2380
|
-
`,
|
|
2384
|
+
`, $n = C.circle`
|
|
2381
2385
|
stroke-dasharray: 1, 200;
|
|
2382
2386
|
stroke-dashoffset: 0;
|
|
2383
|
-
animation: ${
|
|
2387
|
+
animation: ${vn} 1.5s ease-in-out infinite;
|
|
2384
2388
|
stroke-linecap: round;
|
|
2385
2389
|
stroke: ${(e) => {
|
|
2386
2390
|
var t;
|
|
2387
2391
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2388
2392
|
}};
|
|
2389
2393
|
stroke-width: 2px;
|
|
2390
|
-
`,
|
|
2391
|
-
|
|
2394
|
+
`, Ln = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
|
|
2395
|
+
wn,
|
|
2392
2396
|
{
|
|
2393
2397
|
className: M("humany-loader", e),
|
|
2394
2398
|
"data-loading": t,
|
|
2395
|
-
children: /* @__PURE__ */ i(
|
|
2396
|
-
|
|
2399
|
+
children: /* @__PURE__ */ i(kn, { className: "humany-spinner", children: /* @__PURE__ */ i(xn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
|
|
2400
|
+
$n,
|
|
2397
2401
|
{
|
|
2398
2402
|
cx: "50",
|
|
2399
2403
|
cy: "50",
|
|
@@ -2404,24 +2408,24 @@ const Ut = 300, Wo = ({
|
|
|
2404
2408
|
}
|
|
2405
2409
|
) }) })
|
|
2406
2410
|
}
|
|
2407
|
-
),
|
|
2411
|
+
), Mn = ({
|
|
2408
2412
|
zoomState: e,
|
|
2409
2413
|
image: t,
|
|
2410
2414
|
changeZoom: n,
|
|
2411
2415
|
...o
|
|
2412
2416
|
}) => {
|
|
2413
2417
|
var m;
|
|
2414
|
-
const r = L(null), [s, c] = w(!1), [
|
|
2418
|
+
const r = L(null), [s, c] = w(!1), [h, a] = w(!1), { width: l, height: d, ...u } = o.style || {}, f = E(() => {
|
|
2415
2419
|
const p = r.current;
|
|
2416
2420
|
if (p) {
|
|
2417
|
-
const y = window.innerWidth / p.naturalWidth, $ = window.innerHeight / p.naturalHeight,
|
|
2418
|
-
return $ >= 1 && y >= 1 ? 1 :
|
|
2421
|
+
const y = window.innerWidth / p.naturalWidth, $ = window.innerHeight / p.naturalHeight, H = Math.min(y, $);
|
|
2422
|
+
return $ >= 1 && y >= 1 ? 1 : H;
|
|
2419
2423
|
}
|
|
2420
2424
|
return 1;
|
|
2421
2425
|
}, [s, t.src]), g = re(() => {
|
|
2422
2426
|
const p = r.current;
|
|
2423
2427
|
if (p && s) {
|
|
2424
|
-
if (!
|
|
2428
|
+
if (!h) {
|
|
2425
2429
|
a(!0);
|
|
2426
2430
|
const y = f();
|
|
2427
2431
|
n(y);
|
|
@@ -2433,9 +2437,9 @@ const Ut = 300, Wo = ({
|
|
|
2433
2437
|
return v(() => (c(!1), function() {
|
|
2434
2438
|
a(!1);
|
|
2435
2439
|
}), [t.src]), /* @__PURE__ */ b(U, { children: [
|
|
2436
|
-
/* @__PURE__ */ i(
|
|
2440
|
+
/* @__PURE__ */ i(Sn, { loading: !s }),
|
|
2437
2441
|
/* @__PURE__ */ i(
|
|
2438
|
-
|
|
2442
|
+
En,
|
|
2439
2443
|
{
|
|
2440
2444
|
onLoad: () => {
|
|
2441
2445
|
c(!0);
|
|
@@ -2445,18 +2449,18 @@ const Ut = 300, Wo = ({
|
|
|
2445
2449
|
draggable: "false",
|
|
2446
2450
|
...o,
|
|
2447
2451
|
alt: ((m = o.alt) == null ? void 0 : m.toString()) || "",
|
|
2448
|
-
style:
|
|
2452
|
+
style: u,
|
|
2449
2453
|
src: t.src,
|
|
2450
2454
|
loaded: s
|
|
2451
2455
|
}
|
|
2452
2456
|
),
|
|
2453
|
-
/* @__PURE__ */ i(
|
|
2457
|
+
/* @__PURE__ */ i(Hn, {})
|
|
2454
2458
|
] });
|
|
2455
|
-
},
|
|
2459
|
+
}, Sn = C(Ln)`
|
|
2456
2460
|
svg circle {
|
|
2457
2461
|
stroke: #ffffff;
|
|
2458
2462
|
}
|
|
2459
|
-
`,
|
|
2463
|
+
`, En = C.img`
|
|
2460
2464
|
transform: none;
|
|
2461
2465
|
|
|
2462
2466
|
${(e) => e.imageSize && k`
|
|
@@ -2467,61 +2471,61 @@ const Ut = 300, Wo = ({
|
|
|
2467
2471
|
vertical-align: middle;
|
|
2468
2472
|
position: relative;
|
|
2469
2473
|
${(e) => !e.loaded && "display:none;"}
|
|
2470
|
-
`,
|
|
2474
|
+
`, Hn = C.div`
|
|
2471
2475
|
height: 100%;
|
|
2472
2476
|
display: inline-block;
|
|
2473
2477
|
vertical-align: middle;
|
|
2474
|
-
`,
|
|
2478
|
+
`, Rn = () => {
|
|
2475
2479
|
const e = L(), [t, n] = w(!0), o = E(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2476
2480
|
n(!1);
|
|
2477
2481
|
}, 3e3), () => {
|
|
2478
2482
|
e.current && clearTimeout(e.current);
|
|
2479
2483
|
}), [t, e]);
|
|
2480
2484
|
return [t, o];
|
|
2481
|
-
},
|
|
2485
|
+
}, Tn = ({ attrs: e, htmlBody: t }) => {
|
|
2482
2486
|
var Se;
|
|
2483
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [
|
|
2487
|
+
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [h, a] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, d] = w(!1), [u, f] = Rn(), [g, m] = w(null), [p, y] = w(null), $ = L(null), H = L(null), N = L(null), S = L(null), T = L(null), [qe, Qe] = w(null);
|
|
2484
2488
|
v(() => {
|
|
2485
2489
|
n && m(null);
|
|
2486
2490
|
}, [n]), v(() => {
|
|
2487
2491
|
c(1);
|
|
2488
2492
|
}, [g]), v(() => {
|
|
2489
2493
|
var I, ee;
|
|
2490
|
-
if (g === null ||
|
|
2494
|
+
if (g === null || H.current === null)
|
|
2491
2495
|
return;
|
|
2492
|
-
const x =
|
|
2496
|
+
const x = H.current.firstElementChild, R = (I = N.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = N.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2493
2497
|
if (p === "Right")
|
|
2494
|
-
J && V ? V.focus() : G &&
|
|
2498
|
+
J && V ? V.focus() : G && R && R.focus();
|
|
2495
2499
|
else if (p === "Left")
|
|
2496
|
-
G &&
|
|
2500
|
+
G && R ? R.focus() : J && V && V.focus();
|
|
2497
2501
|
else {
|
|
2498
2502
|
if (!x)
|
|
2499
2503
|
return;
|
|
2500
2504
|
x.focus();
|
|
2501
2505
|
}
|
|
2502
|
-
}, [g,
|
|
2506
|
+
}, [g, H, N, p]), v(() => {
|
|
2503
2507
|
if (o) {
|
|
2504
2508
|
if (G)
|
|
2505
2509
|
return Le();
|
|
2506
2510
|
} else if (r && J)
|
|
2507
2511
|
return Me();
|
|
2508
2512
|
}, [o, r]), v(() => {
|
|
2509
|
-
var
|
|
2510
|
-
const x = ((V = (
|
|
2511
|
-
(x === "left" || x === "right") &&
|
|
2513
|
+
var R, V;
|
|
2514
|
+
const x = ((V = (R = T.current) == null ? void 0 : R.style) == null ? void 0 : V.float) || "";
|
|
2515
|
+
(x === "left" || x === "right") && Qe(x);
|
|
2512
2516
|
}, []);
|
|
2513
2517
|
const A = re(() => {
|
|
2514
2518
|
const x = document.createElement("div");
|
|
2515
2519
|
x.innerHTML = t || "";
|
|
2516
|
-
const
|
|
2517
|
-
return Array.from(
|
|
2520
|
+
const R = x.getElementsByTagName("img");
|
|
2521
|
+
return Array.from(R).reduce(
|
|
2518
2522
|
(I, ee) => {
|
|
2519
2523
|
const Ee = ee.getAttribute("src");
|
|
2520
2524
|
if (Ee) {
|
|
2521
|
-
const
|
|
2525
|
+
const rt = {
|
|
2522
2526
|
src: Ee
|
|
2523
2527
|
};
|
|
2524
|
-
I.push(
|
|
2528
|
+
I.push(rt);
|
|
2525
2529
|
}
|
|
2526
2530
|
return I;
|
|
2527
2531
|
},
|
|
@@ -2530,49 +2534,49 @@ const Ut = 300, Wo = ({
|
|
|
2530
2534
|
}, [t]), ke = E(() => {
|
|
2531
2535
|
const { src: x } = e;
|
|
2532
2536
|
if (x) {
|
|
2533
|
-
const
|
|
2534
|
-
m(
|
|
2537
|
+
const R = A.findIndex((V, I) => V.src === x);
|
|
2538
|
+
m(R);
|
|
2535
2539
|
}
|
|
2536
|
-
}, [A, e]),
|
|
2540
|
+
}, [A, e]), Ge = E((x) => {
|
|
2537
2541
|
m(null);
|
|
2538
2542
|
}, []), $e = E(
|
|
2539
2543
|
(x) => {
|
|
2540
2544
|
c(x ? s + s * 0.25 : s - s * 0.25);
|
|
2541
2545
|
},
|
|
2542
2546
|
[c, s]
|
|
2543
|
-
),
|
|
2547
|
+
), Je = E(() => {
|
|
2544
2548
|
if (g !== null) {
|
|
2545
2549
|
const { src: x } = A[g];
|
|
2546
2550
|
x && window.open(x, "_self");
|
|
2547
2551
|
}
|
|
2548
|
-
}, [A, g]),
|
|
2552
|
+
}, [A, g]), et = E(
|
|
2549
2553
|
(x) => {
|
|
2550
|
-
const
|
|
2551
|
-
|
|
2552
|
-
top:
|
|
2553
|
-
left:
|
|
2554
|
+
const R = S.current;
|
|
2555
|
+
R && (a({
|
|
2556
|
+
top: R.scrollTop,
|
|
2557
|
+
left: R.scrollLeft,
|
|
2554
2558
|
x: x.clientX,
|
|
2555
2559
|
y: x.clientY
|
|
2556
2560
|
}), d(!0));
|
|
2557
2561
|
},
|
|
2558
2562
|
[S]
|
|
2559
|
-
),
|
|
2563
|
+
), tt = E(
|
|
2560
2564
|
(x) => {
|
|
2561
|
-
const
|
|
2562
|
-
if (
|
|
2563
|
-
const V = x.clientX -
|
|
2564
|
-
|
|
2565
|
+
const R = S.current;
|
|
2566
|
+
if (R && l) {
|
|
2567
|
+
const V = x.clientX - h.x, I = x.clientY - h.y;
|
|
2568
|
+
R.scrollTop = h.top - I, R.scrollLeft = h.left - V;
|
|
2565
2569
|
}
|
|
2566
2570
|
},
|
|
2567
|
-
[l,
|
|
2568
|
-
),
|
|
2571
|
+
[l, h]
|
|
2572
|
+
), nt = (x) => {
|
|
2569
2573
|
x.preventDefault(), d(!1);
|
|
2570
|
-
},
|
|
2574
|
+
}, ot = re(() => {
|
|
2571
2575
|
if (S.current) {
|
|
2572
2576
|
const x = S.current.getElementsByTagName("img");
|
|
2573
2577
|
if (x && x.length) {
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
2578
|
+
const R = x[0];
|
|
2579
|
+
return R.width > window.innerWidth || R.height > window.innerHeight;
|
|
2576
2580
|
}
|
|
2577
2581
|
}
|
|
2578
2582
|
return !1;
|
|
@@ -2582,22 +2586,22 @@ const Ut = 300, Wo = ({
|
|
|
2582
2586
|
g !== null && (y("Right"), m(g + 1));
|
|
2583
2587
|
}, G = g !== null && g > 0 && A.length > 1, J = g !== null && A.length - 1 > g;
|
|
2584
2588
|
return /* @__PURE__ */ b(U, { children: [
|
|
2585
|
-
/* @__PURE__ */ i(
|
|
2586
|
-
|
|
2589
|
+
/* @__PURE__ */ i(Xe, { visible: g !== null, onClick: Ge, children: /* @__PURE__ */ b(
|
|
2590
|
+
In,
|
|
2587
2591
|
{
|
|
2588
2592
|
onMouseDown: () => f(),
|
|
2589
2593
|
onMouseMove: () => f(),
|
|
2590
2594
|
onTouchStart: () => f(),
|
|
2591
2595
|
onKeyDown: () => f(),
|
|
2592
2596
|
children: [
|
|
2593
|
-
/* @__PURE__ */ i(
|
|
2594
|
-
|
|
2597
|
+
/* @__PURE__ */ i(On, { show: u.toString(), children: /* @__PURE__ */ i(
|
|
2598
|
+
Bn,
|
|
2595
2599
|
{
|
|
2596
|
-
ref:
|
|
2600
|
+
ref: H,
|
|
2597
2601
|
buttons: [
|
|
2598
2602
|
{
|
|
2599
2603
|
id: "download",
|
|
2600
|
-
onClick:
|
|
2604
|
+
onClick: Je,
|
|
2601
2605
|
icon: "download",
|
|
2602
2606
|
ariaLabel: "Download image"
|
|
2603
2607
|
},
|
|
@@ -2611,16 +2615,16 @@ const Ut = 300, Wo = ({
|
|
|
2611
2615
|
}
|
|
2612
2616
|
) }),
|
|
2613
2617
|
/* @__PURE__ */ i(
|
|
2614
|
-
|
|
2618
|
+
Fn,
|
|
2615
2619
|
{
|
|
2616
2620
|
scrolling: l.toString(),
|
|
2617
|
-
isDraggable:
|
|
2621
|
+
isDraggable: ot.toString(),
|
|
2618
2622
|
ref: S,
|
|
2619
|
-
onMouseMove:
|
|
2620
|
-
onMouseDown:
|
|
2621
|
-
onMouseUp:
|
|
2623
|
+
onMouseMove: tt,
|
|
2624
|
+
onMouseDown: et,
|
|
2625
|
+
onMouseUp: nt,
|
|
2622
2626
|
children: g !== null && /* @__PURE__ */ i(
|
|
2623
|
-
|
|
2627
|
+
Mn,
|
|
2624
2628
|
{
|
|
2625
2629
|
changeZoom: (x) => {
|
|
2626
2630
|
c(x);
|
|
@@ -2637,10 +2641,10 @@ const Ut = 300, Wo = ({
|
|
|
2637
2641
|
}
|
|
2638
2642
|
),
|
|
2639
2643
|
/* @__PURE__ */ i(
|
|
2640
|
-
|
|
2644
|
+
Wn,
|
|
2641
2645
|
{
|
|
2642
2646
|
ref: N,
|
|
2643
|
-
show:
|
|
2647
|
+
show: u.toString(),
|
|
2644
2648
|
buttons: [
|
|
2645
2649
|
{
|
|
2646
2650
|
id: "previous",
|
|
@@ -2663,9 +2667,9 @@ const Ut = 300, Wo = ({
|
|
|
2663
2667
|
]
|
|
2664
2668
|
}
|
|
2665
2669
|
),
|
|
2666
|
-
/* @__PURE__ */ b(
|
|
2670
|
+
/* @__PURE__ */ b(An, { show: u.toString(), children: [
|
|
2667
2671
|
/* @__PURE__ */ i(
|
|
2668
|
-
|
|
2672
|
+
Vn,
|
|
2669
2673
|
{
|
|
2670
2674
|
buttons: [
|
|
2671
2675
|
{
|
|
@@ -2683,7 +2687,7 @@ const Ut = 300, Wo = ({
|
|
|
2683
2687
|
]
|
|
2684
2688
|
}
|
|
2685
2689
|
),
|
|
2686
|
-
/* @__PURE__ */ b(
|
|
2690
|
+
/* @__PURE__ */ b(Zn, { variant: "span", children: [
|
|
2687
2691
|
Math.trunc(s * 100),
|
|
2688
2692
|
"%"
|
|
2689
2693
|
] })
|
|
@@ -2692,17 +2696,17 @@ const Ut = 300, Wo = ({
|
|
|
2692
2696
|
}
|
|
2693
2697
|
) }),
|
|
2694
2698
|
/* @__PURE__ */ i(
|
|
2695
|
-
|
|
2699
|
+
Nn,
|
|
2696
2700
|
{
|
|
2697
2701
|
ref: $,
|
|
2698
2702
|
onClick: ke,
|
|
2699
2703
|
onKeyDown: (x) => {
|
|
2700
2704
|
x.key === "Enter" && (x.preventDefault(), ke());
|
|
2701
2705
|
},
|
|
2702
|
-
alignment:
|
|
2706
|
+
alignment: qe,
|
|
2703
2707
|
tabIndex: 0,
|
|
2704
2708
|
children: /* @__PURE__ */ i(
|
|
2705
|
-
|
|
2709
|
+
Pn,
|
|
2706
2710
|
{
|
|
2707
2711
|
...e,
|
|
2708
2712
|
alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "",
|
|
@@ -2714,7 +2718,7 @@ const Ut = 300, Wo = ({
|
|
|
2714
2718
|
] });
|
|
2715
2719
|
}, we = D(
|
|
2716
2720
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ i(
|
|
2717
|
-
|
|
2721
|
+
Dn,
|
|
2718
2722
|
{
|
|
2719
2723
|
ref: o,
|
|
2720
2724
|
show: e,
|
|
@@ -2724,12 +2728,12 @@ const Ut = 300, Wo = ({
|
|
|
2724
2728
|
id: r,
|
|
2725
2729
|
circle: s = !1,
|
|
2726
2730
|
show: c = !0,
|
|
2727
|
-
ariaLabel:
|
|
2731
|
+
ariaLabel: h,
|
|
2728
2732
|
onClick: a,
|
|
2729
2733
|
icon: l,
|
|
2730
2734
|
className: d
|
|
2731
|
-
},
|
|
2732
|
-
|
|
2735
|
+
}, u) => /* @__PURE__ */ i(
|
|
2736
|
+
zn,
|
|
2733
2737
|
{
|
|
2734
2738
|
circle: s.toString(),
|
|
2735
2739
|
onClick: a,
|
|
@@ -2737,35 +2741,35 @@ const Ut = 300, Wo = ({
|
|
|
2737
2741
|
show: c.toString(),
|
|
2738
2742
|
icon: l,
|
|
2739
2743
|
className: d,
|
|
2740
|
-
"aria-label":
|
|
2744
|
+
"aria-label": h,
|
|
2741
2745
|
children: /* @__PURE__ */ i(Q, { size: 24, symbol: { type: "Svg", content: l } })
|
|
2742
2746
|
},
|
|
2743
|
-
r +
|
|
2747
|
+
r + u.toString()
|
|
2744
2748
|
)
|
|
2745
2749
|
)
|
|
2746
2750
|
}
|
|
2747
2751
|
)
|
|
2748
|
-
),
|
|
2752
|
+
), _e = C.div`
|
|
2749
2753
|
transition: opacity 0.3s ease 0s;
|
|
2750
2754
|
z-index: 5;
|
|
2751
2755
|
${(e) => e.show === "true" ? "opacity: 1;" : k`
|
|
2752
2756
|
opacity: 0;
|
|
2753
2757
|
pointer-events: none;
|
|
2754
2758
|
`}
|
|
2755
|
-
`,
|
|
2759
|
+
`, Nn = C(xe)`
|
|
2756
2760
|
display: inline-block !important;
|
|
2757
2761
|
|
|
2758
2762
|
${(e) => (e.alignment === "right" || e.alignment === "left") && k`
|
|
2759
2763
|
float: ${e.alignment};
|
|
2760
2764
|
`}
|
|
2761
|
-
`,
|
|
2765
|
+
`, Dn = C(_e)`
|
|
2762
2766
|
position: fixed;
|
|
2763
2767
|
display: flex;
|
|
2764
2768
|
gap: ${(e) => {
|
|
2765
2769
|
var t;
|
|
2766
2770
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2767
2771
|
}};
|
|
2768
|
-
`, me = "39px",
|
|
2772
|
+
`, me = "39px", zn = C(se)`
|
|
2769
2773
|
width: ${me};
|
|
2770
2774
|
height: ${me};
|
|
2771
2775
|
display: flex;
|
|
@@ -2830,7 +2834,7 @@ const Ut = 300, Wo = ({
|
|
|
2830
2834
|
opacity: 0;
|
|
2831
2835
|
pointer-events: none;
|
|
2832
2836
|
`}
|
|
2833
|
-
`,
|
|
2837
|
+
`, Bn = C(we)`
|
|
2834
2838
|
top: ${(e) => {
|
|
2835
2839
|
var t;
|
|
2836
2840
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2839,7 +2843,7 @@ const Ut = 300, Wo = ({
|
|
|
2839
2843
|
var t;
|
|
2840
2844
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2841
2845
|
}};
|
|
2842
|
-
`,
|
|
2846
|
+
`, Vn = C(we)`
|
|
2843
2847
|
bottom: ${(e) => {
|
|
2844
2848
|
var t;
|
|
2845
2849
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2847,7 +2851,7 @@ const Ut = 300, Wo = ({
|
|
|
2847
2851
|
width: 100%;
|
|
2848
2852
|
align-items: center;
|
|
2849
2853
|
justify-content: center;
|
|
2850
|
-
`,
|
|
2854
|
+
`, Wn = C(we)`
|
|
2851
2855
|
display: block;
|
|
2852
2856
|
button {
|
|
2853
2857
|
position: fixed;
|
|
@@ -2865,7 +2869,7 @@ const Ut = 300, Wo = ({
|
|
|
2865
2869
|
}};
|
|
2866
2870
|
}
|
|
2867
2871
|
}
|
|
2868
|
-
`,
|
|
2872
|
+
`, Zn = C(X)`
|
|
2869
2873
|
position: fixed;
|
|
2870
2874
|
bottom: ${(e) => {
|
|
2871
2875
|
var t;
|
|
@@ -2884,29 +2888,29 @@ const Ut = 300, Wo = ({
|
|
|
2884
2888
|
var t;
|
|
2885
2889
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2886
2890
|
}};
|
|
2887
|
-
`,
|
|
2891
|
+
`, Ue = C(_e)`
|
|
2888
2892
|
position: absolute;
|
|
2889
2893
|
width: 100vw;
|
|
2890
2894
|
height: 88px;
|
|
2891
2895
|
left: 0px;
|
|
2892
2896
|
z-index: 5;
|
|
2893
|
-
`,
|
|
2897
|
+
`, In = C.div`
|
|
2894
2898
|
width: 100%;
|
|
2895
|
-
`,
|
|
2899
|
+
`, On = C(Ue)`
|
|
2896
2900
|
top: 0px;
|
|
2897
2901
|
background-image: linear-gradient(
|
|
2898
2902
|
to bottom,
|
|
2899
2903
|
rgb(34, 34, 34, 0.8),
|
|
2900
2904
|
rgba(34, 34, 34, 0)
|
|
2901
2905
|
);
|
|
2902
|
-
`,
|
|
2906
|
+
`, An = C(Ue)`
|
|
2903
2907
|
bottom: 0px;
|
|
2904
2908
|
background-image: linear-gradient(
|
|
2905
2909
|
to top,
|
|
2906
2910
|
rgb(34, 34, 34, 0.8),
|
|
2907
2911
|
rgba(34, 34, 34, 0)
|
|
2908
2912
|
);
|
|
2909
|
-
`,
|
|
2913
|
+
`, Fn = C.div`
|
|
2910
2914
|
width: 100%;
|
|
2911
2915
|
height: 100vh;
|
|
2912
2916
|
overflow: auto;
|
|
@@ -2915,9 +2919,9 @@ const Ut = 300, Wo = ({
|
|
|
2915
2919
|
white-space: nowrap;
|
|
2916
2920
|
justify-content: center;
|
|
2917
2921
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2918
|
-
`,
|
|
2922
|
+
`, Pn = C.img`
|
|
2919
2923
|
cursor: pointer;
|
|
2920
|
-
`,
|
|
2924
|
+
`, jn = D(
|
|
2921
2925
|
({
|
|
2922
2926
|
className: e,
|
|
2923
2927
|
children: t,
|
|
@@ -2927,12 +2931,12 @@ const Ut = 300, Wo = ({
|
|
|
2927
2931
|
close: r = !1,
|
|
2928
2932
|
...s
|
|
2929
2933
|
}, c) => {
|
|
2930
|
-
const [
|
|
2934
|
+
const [h, a] = Fe(), [l, d] = Ae(!0), u = L(), f = L(_()), g = j("Escape");
|
|
2931
2935
|
v(() => {
|
|
2932
2936
|
(g || r) && a(!1);
|
|
2933
2937
|
}, [g, r]), v(() => {
|
|
2934
|
-
|
|
2935
|
-
}, [
|
|
2938
|
+
h && u.current && u.current.focus();
|
|
2939
|
+
}, [h, u.current]), ae("router:changed", () => {
|
|
2936
2940
|
a(!1);
|
|
2937
2941
|
});
|
|
2938
2942
|
const m = E(
|
|
@@ -2950,8 +2954,8 @@ const Ut = 300, Wo = ({
|
|
|
2950
2954
|
a(!1);
|
|
2951
2955
|
}), [f.current]);
|
|
2952
2956
|
return /* @__PURE__ */ b(U, { children: [
|
|
2953
|
-
/* @__PURE__ */ i(
|
|
2954
|
-
|
|
2957
|
+
/* @__PURE__ */ i(Xe, { visible: h, onClick: m, children: /* @__PURE__ */ b(
|
|
2958
|
+
Kn,
|
|
2955
2959
|
{
|
|
2956
2960
|
className: M(
|
|
2957
2961
|
e,
|
|
@@ -2968,7 +2972,7 @@ const Ut = 300, Wo = ({
|
|
|
2968
2972
|
{
|
|
2969
2973
|
onClick: () => a(!1),
|
|
2970
2974
|
tabIndex: 0,
|
|
2971
|
-
ref:
|
|
2975
|
+
ref: u,
|
|
2972
2976
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
2973
2977
|
}
|
|
2974
2978
|
),
|
|
@@ -2983,7 +2987,7 @@ const Ut = 300, Wo = ({
|
|
|
2983
2987
|
})
|
|
2984
2988
|
] });
|
|
2985
2989
|
}
|
|
2986
|
-
),
|
|
2990
|
+
), Kn = C.div`
|
|
2987
2991
|
font-family: ${(e) => {
|
|
2988
2992
|
var t;
|
|
2989
2993
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -3002,7 +3006,7 @@ const Ut = 300, Wo = ({
|
|
|
3002
3006
|
${(e) => Pe(e)}
|
|
3003
3007
|
${(e) => e.css && e.css}
|
|
3004
3008
|
outline: none;
|
|
3005
|
-
`,
|
|
3009
|
+
`, Ko = ({
|
|
3006
3010
|
className: e,
|
|
3007
3011
|
trigger: t,
|
|
3008
3012
|
header: n = "",
|
|
@@ -3012,17 +3016,17 @@ const Ut = 300, Wo = ({
|
|
|
3012
3016
|
onConfirm: s = () => {
|
|
3013
3017
|
},
|
|
3014
3018
|
cancelLabel: c = "",
|
|
3015
|
-
confirmLabel:
|
|
3019
|
+
confirmLabel: h = ""
|
|
3016
3020
|
}) => {
|
|
3017
3021
|
const a = L(), l = E(() => {
|
|
3018
|
-
var
|
|
3019
|
-
r(), (
|
|
3022
|
+
var u;
|
|
3023
|
+
r(), (u = a == null ? void 0 : a.current) == null || u.close();
|
|
3020
3024
|
}, [r]), d = E(() => {
|
|
3021
|
-
var
|
|
3022
|
-
s(), (
|
|
3025
|
+
var u;
|
|
3026
|
+
s(), (u = a == null ? void 0 : a.current) == null || u.close();
|
|
3023
3027
|
}, [s]);
|
|
3024
3028
|
return /* @__PURE__ */ b(
|
|
3025
|
-
|
|
3029
|
+
Yn,
|
|
3026
3030
|
{
|
|
3027
3031
|
className: e,
|
|
3028
3032
|
trigger: t,
|
|
@@ -3031,12 +3035,12 @@ const Ut = 300, Wo = ({
|
|
|
3031
3035
|
children: [
|
|
3032
3036
|
n && /* @__PURE__ */ i(De, { children: n }),
|
|
3033
3037
|
o && /* @__PURE__ */ i(De, { children: o }),
|
|
3034
|
-
|
|
3035
|
-
c && /* @__PURE__ */ i(
|
|
3038
|
+
h && /* @__PURE__ */ i(Xn, { onClick: d, children: h }),
|
|
3039
|
+
c && /* @__PURE__ */ i(_n, { onClick: l, children: c })
|
|
3036
3040
|
]
|
|
3037
3041
|
}
|
|
3038
3042
|
);
|
|
3039
|
-
},
|
|
3043
|
+
}, Yn = C(jn)`
|
|
3040
3044
|
display: block;
|
|
3041
3045
|
|
|
3042
3046
|
span {
|
|
@@ -3054,7 +3058,7 @@ const Ut = 300, Wo = ({
|
|
|
3054
3058
|
}};
|
|
3055
3059
|
}
|
|
3056
3060
|
}
|
|
3057
|
-
`,
|
|
3061
|
+
`, Xn = C(se)`
|
|
3058
3062
|
display: inline-block;
|
|
3059
3063
|
min-width: 50px;
|
|
3060
3064
|
${(e) => {
|
|
@@ -3084,7 +3088,7 @@ const Ut = 300, Wo = ({
|
|
|
3084
3088
|
&:focus-visible {
|
|
3085
3089
|
${O}
|
|
3086
3090
|
}
|
|
3087
|
-
`,
|
|
3091
|
+
`, _n = C(se)`
|
|
3088
3092
|
display: inline-block;
|
|
3089
3093
|
min-width: 50px;
|
|
3090
3094
|
${(e) => {
|
|
@@ -3105,25 +3109,25 @@ const Ut = 300, Wo = ({
|
|
|
3105
3109
|
&:focus-visible {
|
|
3106
3110
|
${O};
|
|
3107
3111
|
}
|
|
3108
|
-
`,
|
|
3112
|
+
`, Yo = ({
|
|
3109
3113
|
header: e = "",
|
|
3110
3114
|
link: t = "",
|
|
3111
3115
|
suggestionHeader: n = "",
|
|
3112
3116
|
suggestion: o = ""
|
|
3113
|
-
}) => /* @__PURE__ */ b(
|
|
3114
|
-
/* @__PURE__ */ i(
|
|
3115
|
-
/* @__PURE__ */ b(
|
|
3117
|
+
}) => /* @__PURE__ */ b(Un, { children: [
|
|
3118
|
+
/* @__PURE__ */ i(qn, { children: /* @__PURE__ */ i(X, { variant: "h2", children: "404" }) }),
|
|
3119
|
+
/* @__PURE__ */ b(Qn, { children: [
|
|
3116
3120
|
/* @__PURE__ */ i(X, { variant: "h3", children: e }),
|
|
3117
|
-
/* @__PURE__ */ i(
|
|
3121
|
+
/* @__PURE__ */ i(Jn, { routeName: "index", "aria-label": t, text: t })
|
|
3118
3122
|
] }),
|
|
3119
|
-
/* @__PURE__ */ b(
|
|
3123
|
+
/* @__PURE__ */ b(Gn, { children: [
|
|
3120
3124
|
/* @__PURE__ */ i("span", { children: n }),
|
|
3121
3125
|
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
|
|
3122
3126
|
] })
|
|
3123
|
-
] }),
|
|
3127
|
+
] }), Un = C.div`
|
|
3124
3128
|
display: flex;
|
|
3125
3129
|
flex-wrap: wrap;
|
|
3126
|
-
`,
|
|
3130
|
+
`, qn = C.div`
|
|
3127
3131
|
${(e) => ie(e)(
|
|
3128
3132
|
"h2",
|
|
3129
3133
|
k`
|
|
@@ -3133,7 +3137,7 @@ const Ut = 300, Wo = ({
|
|
|
3133
3137
|
font-size: 7em;
|
|
3134
3138
|
`
|
|
3135
3139
|
)}
|
|
3136
|
-
`,
|
|
3140
|
+
`, Qn = C.div`
|
|
3137
3141
|
margin-left: ${(e) => {
|
|
3138
3142
|
var t;
|
|
3139
3143
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3160,7 +3164,7 @@ const Ut = 300, Wo = ({
|
|
|
3160
3164
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3161
3165
|
}};
|
|
3162
3166
|
}
|
|
3163
|
-
`,
|
|
3167
|
+
`, Gn = C.div`
|
|
3164
3168
|
margin-top: ${(e) => {
|
|
3165
3169
|
var t;
|
|
3166
3170
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3171,7 +3175,7 @@ const Ut = 300, Wo = ({
|
|
|
3171
3175
|
font-weight: bold;
|
|
3172
3176
|
}
|
|
3173
3177
|
`;
|
|
3174
|
-
class
|
|
3178
|
+
class Xo extends lt {
|
|
3175
3179
|
constructor() {
|
|
3176
3180
|
super(...arguments);
|
|
3177
3181
|
te(this, "node");
|
|
@@ -3213,7 +3217,7 @@ class jo extends ct {
|
|
|
3213
3217
|
) : null;
|
|
3214
3218
|
}
|
|
3215
3219
|
}
|
|
3216
|
-
const
|
|
3220
|
+
const Jn = D(
|
|
3217
3221
|
({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(
|
|
3218
3222
|
xe,
|
|
3219
3223
|
{
|
|
@@ -3228,26 +3232,26 @@ const Qn = D(
|
|
|
3228
3232
|
}
|
|
3229
3233
|
)
|
|
3230
3234
|
);
|
|
3231
|
-
var
|
|
3232
|
-
const
|
|
3235
|
+
var eo = /* @__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))(eo || {});
|
|
3236
|
+
const _o = ({
|
|
3233
3237
|
className: e = "",
|
|
3234
3238
|
format: t = "hh:mm",
|
|
3235
3239
|
timestamp: n
|
|
3236
|
-
}) => /* @__PURE__ */ i("span", { className: M(e, "humany-timestamp"), children:
|
|
3237
|
-
function
|
|
3238
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), c = n.getMonth() + 1,
|
|
3239
|
-
|
|
3240
|
+
}) => /* @__PURE__ */ i("span", { className: M(e, "humany-timestamp"), children: to(n, t) }), ze = (e) => `0${e}`.slice(-2);
|
|
3241
|
+
function to(e, t) {
|
|
3242
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), c = n.getMonth() + 1, h = n.getDate(), a = `${s}-${ze(c)}-${ze(
|
|
3243
|
+
h
|
|
3240
3244
|
)}`;
|
|
3241
3245
|
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
|
|
3242
3246
|
}
|
|
3243
|
-
const
|
|
3247
|
+
const Uo = ({
|
|
3244
3248
|
className: e,
|
|
3245
3249
|
children: t,
|
|
3246
3250
|
content: n,
|
|
3247
3251
|
sticky: o = !1,
|
|
3248
3252
|
...r
|
|
3249
3253
|
}) => {
|
|
3250
|
-
const [s, c] = w(!1),
|
|
3254
|
+
const [s, c] = w(!1), h = L(_()), a = L(), [{ x: l, y: d }, u] = je(s, h.current, a.current), f = (m) => {
|
|
3251
3255
|
const { target: p } = m;
|
|
3252
3256
|
!a.current || !p || a.current !== p && !a.current.contains(p) && c(!1);
|
|
3253
3257
|
};
|
|
@@ -3259,12 +3263,12 @@ const Yo = ({
|
|
|
3259
3263
|
}, [s, o]);
|
|
3260
3264
|
const g = E(
|
|
3261
3265
|
(m, p) => {
|
|
3262
|
-
|
|
3266
|
+
u(m, a.current), c(p);
|
|
3263
3267
|
},
|
|
3264
|
-
[
|
|
3268
|
+
[u, c]
|
|
3265
3269
|
);
|
|
3266
3270
|
return /* @__PURE__ */ b(
|
|
3267
|
-
|
|
3271
|
+
no,
|
|
3268
3272
|
{
|
|
3269
3273
|
ref: a,
|
|
3270
3274
|
className: "humany-tooltip-trigger",
|
|
@@ -3275,7 +3279,7 @@ const Yo = ({
|
|
|
3275
3279
|
children: [
|
|
3276
3280
|
t,
|
|
3277
3281
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
3278
|
-
|
|
3282
|
+
oo,
|
|
3279
3283
|
{
|
|
3280
3284
|
className: M(e, "humany-tooltip-container"),
|
|
3281
3285
|
x: l,
|
|
@@ -3287,10 +3291,10 @@ const Yo = ({
|
|
|
3287
3291
|
]
|
|
3288
3292
|
}
|
|
3289
3293
|
);
|
|
3290
|
-
},
|
|
3294
|
+
}, no = C.div`
|
|
3291
3295
|
display: flex;
|
|
3292
3296
|
align-items: center;
|
|
3293
|
-
`,
|
|
3297
|
+
`, oo = C.div`
|
|
3294
3298
|
color: #ffffff;
|
|
3295
3299
|
background: #161616;
|
|
3296
3300
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3326,7 +3330,7 @@ const Yo = ({
|
|
|
3326
3330
|
let t = "";
|
|
3327
3331
|
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;
|
|
3328
3332
|
}};
|
|
3329
|
-
`,
|
|
3333
|
+
`, qo = (e) => {
|
|
3330
3334
|
const {
|
|
3331
3335
|
in: t,
|
|
3332
3336
|
mountOnEnter: n = !0,
|
|
@@ -3351,12 +3355,12 @@ const Yo = ({
|
|
|
3351
3355
|
}
|
|
3352
3356
|
};
|
|
3353
3357
|
if (typeof c == "object") {
|
|
3354
|
-
const { enter:
|
|
3358
|
+
const { enter: u, exit: f } = c;
|
|
3355
3359
|
return {
|
|
3356
3360
|
enter: {
|
|
3357
3361
|
transitionKeys: (l = c.enter) == null ? void 0 : l.type,
|
|
3358
3362
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3359
|
-
easing:
|
|
3363
|
+
easing: u.easing ? u.easing : "ease-in"
|
|
3360
3364
|
},
|
|
3361
3365
|
exit: {
|
|
3362
3366
|
transitionKeys: (d = c.enter) == null ? void 0 : d.type,
|
|
@@ -3368,7 +3372,7 @@ const Yo = ({
|
|
|
3368
3372
|
}
|
|
3369
3373
|
})();
|
|
3370
3374
|
return /* @__PURE__ */ i(
|
|
3371
|
-
|
|
3375
|
+
ut,
|
|
3372
3376
|
{
|
|
3373
3377
|
timeout: {
|
|
3374
3378
|
enter: a && a.enter.duration || 0,
|
|
@@ -3382,7 +3386,7 @@ const Yo = ({
|
|
|
3382
3386
|
children: (l) => s && s(l, a && he.compose(l, a))
|
|
3383
3387
|
}
|
|
3384
3388
|
);
|
|
3385
|
-
},
|
|
3389
|
+
}, ro = D(
|
|
3386
3390
|
({
|
|
3387
3391
|
className: e,
|
|
3388
3392
|
children: t,
|
|
@@ -3392,18 +3396,18 @@ const Yo = ({
|
|
|
3392
3396
|
activationOptions: r,
|
|
3393
3397
|
...s
|
|
3394
3398
|
}, c) => {
|
|
3395
|
-
const
|
|
3396
|
-
const { implementation:
|
|
3397
|
-
return
|
|
3399
|
+
const h = B(), a = () => {
|
|
3400
|
+
const { implementation: u } = h.get("$widget");
|
|
3401
|
+
return u.widgets.get(o);
|
|
3398
3402
|
};
|
|
3399
3403
|
v(() => {
|
|
3400
|
-
const
|
|
3401
|
-
return
|
|
3402
|
-
|
|
3404
|
+
const u = a();
|
|
3405
|
+
return u == null || u.activate(r).then(() => u.invoke("attach")), () => {
|
|
3406
|
+
u == null || u.deactivate();
|
|
3403
3407
|
};
|
|
3404
3408
|
}, [o]);
|
|
3405
|
-
const l = (
|
|
3406
|
-
const f = a(), g =
|
|
3409
|
+
const l = (u) => {
|
|
3410
|
+
const f = a(), g = u.currentTarget;
|
|
3407
3411
|
if (f) {
|
|
3408
3412
|
const m = () => {
|
|
3409
3413
|
f.invoke("renderState").then(
|
|
@@ -3412,7 +3416,7 @@ const Yo = ({
|
|
|
3412
3416
|
f.events.subscribeOnce(
|
|
3413
3417
|
"widget:area-rendered",
|
|
3414
3418
|
(p, y) => {
|
|
3415
|
-
|
|
3419
|
+
h.get(
|
|
3416
3420
|
"widgetDOMElement"
|
|
3417
3421
|
) && f.events.dispatch("widget:modal-opened", {
|
|
3418
3422
|
name: f.name,
|
|
@@ -3422,18 +3426,18 @@ const Yo = ({
|
|
|
3422
3426
|
);
|
|
3423
3427
|
});
|
|
3424
3428
|
};
|
|
3425
|
-
f.state ===
|
|
3429
|
+
f.state === ft.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(m) : m();
|
|
3426
3430
|
}
|
|
3427
|
-
}, d = (
|
|
3428
|
-
|
|
3431
|
+
}, d = (u) => {
|
|
3432
|
+
u.key === "Enter" && (u.preventDefault(), l(u));
|
|
3429
3433
|
};
|
|
3430
3434
|
return /* @__PURE__ */ i(
|
|
3431
3435
|
xe,
|
|
3432
3436
|
{
|
|
3433
3437
|
className: M(e, "humany-widget-link"),
|
|
3434
3438
|
onKeyDown: d,
|
|
3435
|
-
onClick: (
|
|
3436
|
-
n(
|
|
3439
|
+
onClick: (u) => {
|
|
3440
|
+
n(u), l(u);
|
|
3437
3441
|
},
|
|
3438
3442
|
...s,
|
|
3439
3443
|
ref: c,
|
|
@@ -3441,7 +3445,7 @@ const Yo = ({
|
|
|
3441
3445
|
}
|
|
3442
3446
|
);
|
|
3443
3447
|
}
|
|
3444
|
-
),
|
|
3448
|
+
), Qo = D(
|
|
3445
3449
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3446
3450
|
const r = B(), s = re(() => {
|
|
3447
3451
|
if (!r)
|
|
@@ -3450,7 +3454,7 @@ const Yo = ({
|
|
|
3450
3454
|
return !c || !c.childElementCount ? null : c.children[0];
|
|
3451
3455
|
}, [r]);
|
|
3452
3456
|
return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
|
|
3453
|
-
|
|
3457
|
+
io,
|
|
3454
3458
|
{
|
|
3455
3459
|
className: M(
|
|
3456
3460
|
"humany-widget-overlay-outlet",
|
|
@@ -3461,7 +3465,7 @@ const Yo = ({
|
|
|
3461
3465
|
}
|
|
3462
3466
|
) }) : null;
|
|
3463
3467
|
}
|
|
3464
|
-
),
|
|
3468
|
+
), io = C.div`
|
|
3465
3469
|
background-color: #ffffff;
|
|
3466
3470
|
position: absolute;
|
|
3467
3471
|
top: 0;
|
|
@@ -3471,101 +3475,103 @@ const Yo = ({
|
|
|
3471
3475
|
z-index: 10;
|
|
3472
3476
|
width: 100%;
|
|
3473
3477
|
height: 100%;
|
|
3474
|
-
`,
|
|
3478
|
+
`, Go = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
3475
3479
|
t,
|
|
3476
|
-
|
|
3477
|
-
),
|
|
3480
|
+
dt(() => n)
|
|
3481
|
+
), yt(e, t, o || (() => {
|
|
3478
3482
|
}), t, r)));
|
|
3479
3483
|
export {
|
|
3480
|
-
|
|
3484
|
+
Dt as AnchorLink,
|
|
3481
3485
|
se as Button,
|
|
3482
|
-
|
|
3483
|
-
|
|
3486
|
+
xo as Checkbox,
|
|
3487
|
+
Vt as ColumnContext,
|
|
3484
3488
|
Ze as ComponentNodeContext,
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3489
|
+
Wt as ComponentPropertyContext,
|
|
3490
|
+
Ko as Confirm,
|
|
3491
|
+
Bt as ContainerContext,
|
|
3492
|
+
It as ConversationContext,
|
|
3493
|
+
eo as DateFormats,
|
|
3494
|
+
Io as Drawer,
|
|
3495
|
+
Ut as DrawerAnimationType,
|
|
3496
|
+
Oo as Dropdown,
|
|
3497
|
+
rn as Empty,
|
|
3498
|
+
Ao as Grid,
|
|
3495
3499
|
Ke as Html,
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3500
|
+
cn as Icon,
|
|
3501
|
+
Fo as Input,
|
|
3502
|
+
un as ItemList,
|
|
3503
|
+
Po as ItemTree,
|
|
3504
|
+
Tn as Lightbox,
|
|
3501
3505
|
xe as Link,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3506
|
+
ln as List,
|
|
3507
|
+
jn as Modal,
|
|
3508
|
+
Yo as NotFound,
|
|
3509
|
+
Xe as Overlay,
|
|
3510
|
+
dn as Paragraph,
|
|
3507
3511
|
q as Portal,
|
|
3508
|
-
|
|
3509
|
-
|
|
3512
|
+
hn as RouteLink,
|
|
3513
|
+
Zt as RoutingContext,
|
|
3510
3514
|
De as StyledText,
|
|
3511
3515
|
Q as SymbolBadge,
|
|
3512
|
-
|
|
3516
|
+
Xo as TabStop,
|
|
3513
3517
|
be as Text,
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
+
Jn as TextLink,
|
|
3519
|
+
_o as Timestamp,
|
|
3520
|
+
Uo as Tooltip,
|
|
3521
|
+
qo as TransitionComponent,
|
|
3518
3522
|
X as Typography,
|
|
3519
|
-
|
|
3520
|
-
|
|
3523
|
+
ro as WidgetLink,
|
|
3524
|
+
Qo as WidgetOverlayOutlet,
|
|
3521
3525
|
O as borderTabStyle,
|
|
3522
3526
|
Ne as browser,
|
|
3523
|
-
|
|
3527
|
+
Pt as buttonCss,
|
|
3524
3528
|
Pe as contentBox,
|
|
3525
3529
|
z as convertToStringAttributes,
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
+
vo as createEmptyComponent,
|
|
3531
|
+
Go as createReactComponent,
|
|
3532
|
+
Nt as defaultRenderInstructions,
|
|
3533
|
+
Mt as embeddedLinkMapper,
|
|
3530
3534
|
We as filterCssProps,
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3535
|
+
St as filterCssPropsStyle,
|
|
3536
|
+
Et as genericHashLink,
|
|
3537
|
+
Zo as genericHtml,
|
|
3538
|
+
jo as getHumanyIsTabbing,
|
|
3534
3539
|
ie as headingElement,
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3540
|
+
Tt as imageLightboxRenderer,
|
|
3541
|
+
Bo as invertedHoverButton,
|
|
3542
|
+
Wo as itemList,
|
|
3543
|
+
jt as linkTabStyle,
|
|
3544
|
+
Kt as list,
|
|
3545
|
+
Vo as paddedBorderTabStyle,
|
|
3541
3546
|
Rt as processHtmlString,
|
|
3547
|
+
mn as setHumanyIsTabbing,
|
|
3542
3548
|
he as transitionComposer,
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3549
|
+
wo as useAction,
|
|
3550
|
+
ko as useChildren,
|
|
3551
|
+
$o as useColumns,
|
|
3552
|
+
Lo as useComponent,
|
|
3547
3553
|
pe as useComponentDescriptor,
|
|
3548
3554
|
Ce as useComponentNode,
|
|
3549
3555
|
Y as useComponentPlatform,
|
|
3550
3556
|
B as useContainer,
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3557
|
+
Ot as useContext,
|
|
3558
|
+
Mo as useConversation,
|
|
3559
|
+
So as useDispatch,
|
|
3554
3560
|
W as useEventListener,
|
|
3555
|
-
|
|
3561
|
+
At as useEvents,
|
|
3556
3562
|
Z as useIsMounted,
|
|
3557
|
-
|
|
3563
|
+
Eo as useIsTabbing,
|
|
3558
3564
|
j as useKeyPress,
|
|
3559
|
-
|
|
3565
|
+
Ho as useLayout,
|
|
3560
3566
|
Ie as usePrevious,
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3567
|
+
Ro as useProperties,
|
|
3568
|
+
To as useRenderState,
|
|
3569
|
+
No as useRouteData,
|
|
3564
3570
|
Oe as useRouter,
|
|
3565
3571
|
Ae as useScroll,
|
|
3566
|
-
|
|
3572
|
+
Do as useSettings,
|
|
3567
3573
|
Fe as useToggle,
|
|
3568
|
-
|
|
3574
|
+
zo as useTransitionEnd,
|
|
3569
3575
|
ye as useUniqueMenu,
|
|
3570
3576
|
ae as useWidgetEvent
|
|
3571
3577
|
};
|