@telia-ace/widget-ui 1.3.57 → 1.3.58-rc.1
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.js +82 -82
- package/index.mjs +671 -671
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var it = Object.defineProperty;
|
|
2
2
|
var st = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var te = (e, t, n) => st(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { css as
|
|
5
|
-
import { kebabCase as at, appendClassNames as
|
|
4
|
+
import { css as L, keyframes as Ve } from "@emotion/react";
|
|
5
|
+
import { kebabCase as at, appendClassNames as S, uuid as _, removeNullAndUndefinedValues as Re, markEscapeHandled as se, Logger as ue } from "@telia-ace/widget-utilities";
|
|
6
6
|
import { jsx as i, jsxs as b, Fragment as U } from "react/jsx-runtime";
|
|
7
|
-
import
|
|
8
|
-
import oe, { forwardRef as D, createContext as K, useContext as P, useState as
|
|
9
|
-
import { CSSTransition as
|
|
7
|
+
import p from "@emotion/styled";
|
|
8
|
+
import oe, { forwardRef as D, createContext as K, useContext as P, useState as w, useEffect as v, useRef as M, useCallback as E, useImperativeHandle as pe, createElement as ct, useMemo as re, Component as lt, lazy as dt } from "react";
|
|
9
|
+
import { CSSTransition as We, Transition as ut } from "react-transition-group";
|
|
10
10
|
import { Container as ht, WidgetState as ft } from "@webprovisions/platform";
|
|
11
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
12
|
import { createPortal as bt } from "react-dom";
|
|
13
|
-
import
|
|
14
|
-
import { HistoryMode as
|
|
15
|
-
import { Link as
|
|
13
|
+
import Te from "htmr";
|
|
14
|
+
import { HistoryMode as Ne, getSpecificWidgetPath as vt } from "@telia-ace/widget-routing";
|
|
15
|
+
import { Link as he } from "react-router-dom";
|
|
16
16
|
const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exiting" || e === "exited", F = {
|
|
17
17
|
fade: {
|
|
18
18
|
in: "opacity: 1;",
|
|
@@ -44,29 +44,29 @@ const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exitin
|
|
|
44
44
|
"slide-left",
|
|
45
45
|
"slide-right",
|
|
46
46
|
"scale"
|
|
47
|
-
],
|
|
47
|
+
], fe = {
|
|
48
48
|
compose: (e = "exited", t) => {
|
|
49
|
-
const { enter: n, exit:
|
|
49
|
+
const { enter: n, exit: r } = t, o = n.transitionKeys.split(" "), s = kt.indexOf(o[0]) > -1 ? "transform" : "opacity";
|
|
50
50
|
if (xt(e))
|
|
51
|
-
return
|
|
52
|
-
${
|
|
51
|
+
return o && o.length > 0 ? L`
|
|
52
|
+
${o && o.length > 0 && o.map((h) => F[h] ? F[h].in : "")}
|
|
53
53
|
transition: ${s} ${n.duration}ms ${n.easing};
|
|
54
54
|
` : "";
|
|
55
|
-
const c =
|
|
56
|
-
${
|
|
55
|
+
const c = o && o.length > 0 && L`
|
|
56
|
+
${o.map((h) => F[h] ? F[h].out : "")}
|
|
57
57
|
`;
|
|
58
58
|
if (wt(e)) {
|
|
59
|
-
const h =
|
|
60
|
-
return h && h.length > 0 && e === "exiting" ?
|
|
59
|
+
const h = r.transitionKeys.split(" ");
|
|
60
|
+
return h && h.length > 0 && e === "exiting" ? L`
|
|
61
61
|
${c};
|
|
62
62
|
${h.map((a) => F[a] ? F[a].out : "")}
|
|
63
|
-
transition: ${s} ${
|
|
63
|
+
transition: ${s} ${r.duration}ms ${r.easing};
|
|
64
64
|
` : c;
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
composeViewTransition: (e, t, n) => {
|
|
68
68
|
if (t === "slide")
|
|
69
|
-
return
|
|
69
|
+
return fe.compose(e, {
|
|
70
70
|
enter: {
|
|
71
71
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
72
72
|
duration: 500
|
|
@@ -77,7 +77,7 @@ const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exitin
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
if (t === "fade")
|
|
80
|
-
return
|
|
80
|
+
return fe.compose(e, {
|
|
81
81
|
enter: {
|
|
82
82
|
transitionKeys: "fade",
|
|
83
83
|
duration: 500
|
|
@@ -90,14 +90,14 @@ const xt = (e) => e === "entering" || e === "entered", wt = (e) => e === "exitin
|
|
|
90
90
|
},
|
|
91
91
|
get: (e) => F[e]
|
|
92
92
|
};
|
|
93
|
-
var
|
|
94
|
-
const
|
|
93
|
+
var me = /* @__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))(me || {});
|
|
94
|
+
const De = () => {
|
|
95
95
|
const {
|
|
96
96
|
opr: e,
|
|
97
97
|
opera: t,
|
|
98
98
|
InstallTrigger: n,
|
|
99
|
-
HTMLElement:
|
|
100
|
-
safari:
|
|
99
|
+
HTMLElement: r,
|
|
100
|
+
safari: o,
|
|
101
101
|
documentMode: s,
|
|
102
102
|
StyleMedia: c,
|
|
103
103
|
chrome: h,
|
|
@@ -107,8 +107,8 @@ const Ne = () => {
|
|
|
107
107
|
return "opera";
|
|
108
108
|
if (n)
|
|
109
109
|
return "firefox";
|
|
110
|
-
const d = ((
|
|
111
|
-
if (/constructor/i.test(
|
|
110
|
+
const d = ((C) => C.toString() === "[object SafariRemoteNotification]")(!o || typeof o < "u" && o.pushNotification);
|
|
111
|
+
if (/constructor/i.test(r) || d)
|
|
112
112
|
return "safari";
|
|
113
113
|
const u = !!s;
|
|
114
114
|
if (u)
|
|
@@ -124,72 +124,72 @@ const Ne = () => {
|
|
|
124
124
|
return "blink";
|
|
125
125
|
}, $t = ["string", "number"], z = (e) => Object.keys(e).reduce(
|
|
126
126
|
(t, n) => {
|
|
127
|
-
const
|
|
128
|
-
if ($t.indexOf(
|
|
127
|
+
const r = typeof e[n] > "u" ? "" : e[n], o = typeof r;
|
|
128
|
+
if ($t.indexOf(o) > -1) {
|
|
129
129
|
const s = n.substring(0, 5);
|
|
130
|
-
s === "data-" || s === "aria-" ? t[at(n)] =
|
|
130
|
+
s === "data-" || s === "aria-" ? t[at(n)] = r.toString() : n.substring(0, 4) !== "css-" && (t[n] = r.toString());
|
|
131
131
|
} else
|
|
132
|
-
t[n] =
|
|
132
|
+
t[n] = r;
|
|
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
|
-
implementation:
|
|
139
|
-
name:
|
|
138
|
+
implementation: r,
|
|
139
|
+
name: o
|
|
140
140
|
} = e.get("$widget"), { href: s = "" } = n;
|
|
141
141
|
if (Lt(s))
|
|
142
142
|
return /* @__PURE__ */ i(Dt, { smooth: !0, to: s, children: t });
|
|
143
|
-
const c =
|
|
143
|
+
const c = r.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
|
-
if (
|
|
148
|
+
if (r.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(o))
|
|
149
149
|
return /* @__PURE__ */ i(ro, { widgetName: l, children: t });
|
|
150
150
|
}
|
|
151
151
|
return /* @__PURE__ */ i("a", { ...n, children: t });
|
|
152
|
-
},
|
|
152
|
+
}, Ze = (e) => {
|
|
153
153
|
const t = {};
|
|
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
|
-
return Object.keys(
|
|
159
|
+
return Object.keys(Ze(e)).forEach((n) => {
|
|
160
160
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
161
|
-
}),
|
|
161
|
+
}), L`
|
|
162
162
|
${t}
|
|
163
163
|
`;
|
|
164
164
|
}, Et = (e, t) => {
|
|
165
165
|
let n = "";
|
|
166
|
-
const
|
|
166
|
+
const r = () => {
|
|
167
167
|
n = "";
|
|
168
|
-
},
|
|
168
|
+
}, o = (d) => {
|
|
169
169
|
const u = document.getElementById(n);
|
|
170
|
-
return u !== null ? (d(u),
|
|
171
|
-
}, s = (d) => (d.preventDefault(),
|
|
170
|
+
return u !== null ? (d(u), r(), !0) : !1;
|
|
171
|
+
}, s = (d) => (d.preventDefault(), r(), e.onClick && e.onClick(d), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && o(
|
|
172
172
|
e.scroll || ((u) => e.smooth ? u.scrollIntoView({ behavior: "smooth" }) : u.scrollIntoView())
|
|
173
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
|
-
let
|
|
176
|
+
let r = t, o = "";
|
|
177
177
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
178
|
-
|
|
178
|
+
r = t;
|
|
179
179
|
else {
|
|
180
180
|
const h = t.match(/h1|h2|h3|h4|h5|h6/);
|
|
181
181
|
if (h != null && h[0]) {
|
|
182
|
-
|
|
183
|
-
const [a] = t.split(
|
|
184
|
-
|
|
182
|
+
r = h[0];
|
|
183
|
+
const [a] = t.split(r);
|
|
184
|
+
o = a;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
const c = ((h, a, l) => l[h] ? `${a}${l[h]}` : `${a}${h}`)(
|
|
188
|
-
o,
|
|
189
188
|
r,
|
|
189
|
+
o,
|
|
190
190
|
e.theme.typographyVariantMapping || {}
|
|
191
191
|
);
|
|
192
|
-
return
|
|
192
|
+
return L`
|
|
193
193
|
${c} {
|
|
194
194
|
${n}
|
|
195
195
|
}
|
|
@@ -199,39 +199,39 @@ function Ht(e) {
|
|
|
199
199
|
if (typeof e != "string") throw new TypeError("Expected HTML string");
|
|
200
200
|
const t = document.createElement("div");
|
|
201
201
|
t.innerHTML = e.trim();
|
|
202
|
-
const n = Array.from(t.childNodes).map((
|
|
203
|
-
const
|
|
204
|
-
if (!
|
|
205
|
-
const s = document.createElement(
|
|
206
|
-
return s.innerHTML =
|
|
202
|
+
const n = Array.from(t.childNodes).map((r) => {
|
|
203
|
+
const o = r;
|
|
204
|
+
if (!o.tagName || !o.attributes) return o;
|
|
205
|
+
const s = document.createElement(o.tagName);
|
|
206
|
+
return s.innerHTML = o.innerHTML, Array.from(o.attributes).forEach((c) => {
|
|
207
207
|
s.setAttribute(
|
|
208
208
|
c.localName.replace(/[^\w-]/g, ""),
|
|
209
209
|
c.value
|
|
210
210
|
);
|
|
211
211
|
}), s;
|
|
212
212
|
});
|
|
213
|
-
return Array.from(n).map((
|
|
213
|
+
return Array.from(n).map((r) => r.tagName ? r.outerHTML : r.textContent).join("");
|
|
214
214
|
}
|
|
215
215
|
function Rt(e, t) {
|
|
216
|
-
return t ?
|
|
216
|
+
return t ? Te(Ht(e), t) : Te(e);
|
|
217
217
|
}
|
|
218
218
|
const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt = (e, t) => ({
|
|
219
219
|
transform: {
|
|
220
220
|
a: Mt(e),
|
|
221
221
|
img: Tt(t)
|
|
222
222
|
}
|
|
223
|
-
}), Dt = (e) => Et(e, "a"),
|
|
224
|
-
({ className: e, children: t, ...n },
|
|
223
|
+
}), Dt = (e) => Et(e, "a"), ae = D(
|
|
224
|
+
({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i(
|
|
225
225
|
zt,
|
|
226
226
|
{
|
|
227
227
|
type: "button",
|
|
228
|
-
className:
|
|
228
|
+
className: S(e, "humany-button"),
|
|
229
229
|
...z(n),
|
|
230
|
-
ref:
|
|
230
|
+
ref: r,
|
|
231
231
|
children: t
|
|
232
232
|
}
|
|
233
233
|
)
|
|
234
|
-
), zt =
|
|
234
|
+
), zt = p.button`
|
|
235
235
|
-webkit-appearance: button;
|
|
236
236
|
text-transform: none;
|
|
237
237
|
overflow: visible;
|
|
@@ -250,64 +250,64 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
250
250
|
onEnter: t = () => {
|
|
251
251
|
},
|
|
252
252
|
className: n,
|
|
253
|
-
autoComplete:
|
|
254
|
-
...
|
|
253
|
+
autoComplete: r = "",
|
|
254
|
+
...o
|
|
255
255
|
}) => /* @__PURE__ */ i(
|
|
256
256
|
"input",
|
|
257
257
|
{
|
|
258
|
-
className:
|
|
258
|
+
className: S(n, "humany-checkbox"),
|
|
259
259
|
onKeyDown: (s) => {
|
|
260
260
|
s.key === "Enter" && t(s);
|
|
261
261
|
},
|
|
262
|
-
autoComplete:
|
|
262
|
+
autoComplete: r || void 0,
|
|
263
263
|
onChange: (s) => e(s.target.value, s.currentTarget.checked),
|
|
264
|
-
...z(
|
|
264
|
+
...z(o)
|
|
265
265
|
}
|
|
266
|
-
), Bt = K(new ht()), Vt = K(1),
|
|
266
|
+
), Bt = K(new ht()), Vt = K(1), Ie = K({
|
|
267
267
|
id: "",
|
|
268
268
|
type: "",
|
|
269
269
|
name: "",
|
|
270
270
|
branch: ""
|
|
271
271
|
}), Wt = K(
|
|
272
272
|
{}
|
|
273
|
-
), Zt = K(null), It = K(null),
|
|
274
|
-
const n =
|
|
275
|
-
return (
|
|
276
|
-
(t ||
|
|
277
|
-
c.action(e || n,
|
|
273
|
+
), Zt = K(null), It = K(null), Ce = () => P(Ie), B = () => P(Bt), wo = (e, t) => {
|
|
274
|
+
const n = Ce().id, r = B();
|
|
275
|
+
return (o, s) => {
|
|
276
|
+
(t || r).getAsync("actionResolver").then((c) => {
|
|
277
|
+
c.action(e || n, o, s);
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
|
-
},
|
|
281
|
-
const t = P(
|
|
280
|
+
}, ye = (e) => {
|
|
281
|
+
const t = P(Ie), n = Y(), [r, o] = w();
|
|
282
282
|
return v(() => {
|
|
283
283
|
if ((e || t.id) && n) {
|
|
284
284
|
const s = n.nodes.get(e || t.id);
|
|
285
|
-
|
|
285
|
+
o(s);
|
|
286
286
|
}
|
|
287
|
-
}, [e, t.id, n]),
|
|
287
|
+
}, [e, t.id, n]), r;
|
|
288
288
|
}, Z = () => {
|
|
289
|
-
const e =
|
|
289
|
+
const e = M(!1);
|
|
290
290
|
return v(() => (e.current = !0, () => {
|
|
291
291
|
e.current = !1;
|
|
292
292
|
}), []), e;
|
|
293
293
|
}, Y = (e) => {
|
|
294
|
-
const t = B(), [n,
|
|
294
|
+
const t = B(), [n, r] = w(null), o = Z();
|
|
295
295
|
return v(() => {
|
|
296
296
|
mt.getInstance(e || t).then(
|
|
297
297
|
(s) => {
|
|
298
|
-
|
|
298
|
+
o.current && r(s);
|
|
299
299
|
}
|
|
300
300
|
);
|
|
301
|
-
}, [
|
|
301
|
+
}, [o]), n;
|
|
302
302
|
}, ko = () => {
|
|
303
|
-
const e =
|
|
303
|
+
const e = ye(), t = Y(), [n, r] = w([]), o = Z(), s = E(
|
|
304
304
|
(c) => {
|
|
305
|
-
if (t &&
|
|
305
|
+
if (t && o.current && c) {
|
|
306
306
|
const h = t.getBranch(c), a = c.getChildren(h).map((l) => gt(l));
|
|
307
|
-
|
|
307
|
+
r(a);
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
|
-
[
|
|
310
|
+
[o, t, r, e]
|
|
311
311
|
);
|
|
312
312
|
return v(() => {
|
|
313
313
|
e && s(e);
|
|
@@ -326,11 +326,11 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
326
326
|
}
|
|
327
327
|
}, [e, t, s]), n;
|
|
328
328
|
}, $o = () => P(Vt), Lo = (e, t) => {
|
|
329
|
-
const n =
|
|
329
|
+
const n = Ce(), r = B(), [o, s] = w(void 0), c = Z(), h = e || n.type || "";
|
|
330
330
|
return v(() => {
|
|
331
331
|
if (h) {
|
|
332
332
|
let a;
|
|
333
|
-
return (t ||
|
|
333
|
+
return (t || r).getAsync("componentResolver").then((l) => {
|
|
334
334
|
if (c.current) {
|
|
335
335
|
const d = l.getComponent(h);
|
|
336
336
|
s(d);
|
|
@@ -342,32 +342,32 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
342
342
|
a && a();
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
}, [c, h, t,
|
|
345
|
+
}, [c, h, t, r]), o;
|
|
346
346
|
}, Ot = (e) => {
|
|
347
|
-
const t =
|
|
347
|
+
const t = ye(e), n = Y(), [r, o] = w({}), s = Z();
|
|
348
348
|
return v(() => {
|
|
349
|
-
t && s.current &&
|
|
349
|
+
t && s.current && o(t.attributes.context);
|
|
350
350
|
}, [s, t]), v(() => {
|
|
351
351
|
if (n) {
|
|
352
352
|
const c = n.events.subscribe(
|
|
353
353
|
"components:context-changed",
|
|
354
354
|
(h, a) => {
|
|
355
|
-
t === a.node && s.current &&
|
|
355
|
+
t === a.node && s.current && o(a.node.attributes.context);
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
358
|
return () => {
|
|
359
359
|
c();
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
}, [s, n, t]),
|
|
362
|
+
}, [s, n, t]), r;
|
|
363
363
|
}, Mo = () => P(It), So = () => {
|
|
364
|
-
const e = Y(), t =
|
|
364
|
+
const e = Y(), t = Ce(), [n, r] = w([]), [o, s] = w();
|
|
365
365
|
return v(() => {
|
|
366
366
|
if (e && t) {
|
|
367
367
|
const c = new Ct(e).withId(t.id), h = e.actions(c, t.type || _());
|
|
368
368
|
s(h), n !== null && (n.forEach((a) => {
|
|
369
369
|
h.dispatch(a.key, a.data).then((l) => a.resolve(l)).catch((l) => a.reject(l));
|
|
370
|
-
}),
|
|
370
|
+
}), r(null));
|
|
371
371
|
}
|
|
372
372
|
}, [e, t.id]), (c, h) => n !== null ? new Promise((a, l) => {
|
|
373
373
|
n.push({
|
|
@@ -376,15 +376,15 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
376
376
|
resolve: a,
|
|
377
377
|
reject: l
|
|
378
378
|
});
|
|
379
|
-
}) :
|
|
380
|
-
}, W = (e, t, n = window,
|
|
381
|
-
const
|
|
379
|
+
}) : o.dispatch(c, h);
|
|
380
|
+
}, W = (e, t, n = window, r = () => !0) => {
|
|
381
|
+
const o = M(() => {
|
|
382
382
|
});
|
|
383
383
|
v(() => {
|
|
384
|
-
|
|
384
|
+
o.current = t;
|
|
385
385
|
}, [t]), v(() => {
|
|
386
|
-
if (!(n &&
|
|
387
|
-
const c = (h) =>
|
|
386
|
+
if (!(n && r())) return;
|
|
387
|
+
const c = (h) => o.current(h);
|
|
388
388
|
return n.addEventListener(e, c), () => {
|
|
389
389
|
n.removeEventListener(e, c);
|
|
390
390
|
};
|
|
@@ -393,82 +393,82 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
393
393
|
const t = B(), { events: n } = (e || t).get("$widget");
|
|
394
394
|
return n;
|
|
395
395
|
}, Eo = () => {
|
|
396
|
-
const [e, t] =
|
|
396
|
+
const [e, t] = w(!1);
|
|
397
397
|
return v(() => {
|
|
398
398
|
const n = () => {
|
|
399
399
|
t(!1);
|
|
400
|
-
},
|
|
401
|
-
|
|
400
|
+
}, r = (o) => {
|
|
401
|
+
o.keyCode === 9 && t(!0);
|
|
402
402
|
};
|
|
403
|
-
return window.addEventListener("keydown",
|
|
404
|
-
window.removeEventListener("keydown",
|
|
403
|
+
return window.addEventListener("keydown", r), window.addEventListener("click", n), () => {
|
|
404
|
+
window.removeEventListener("keydown", r), window.removeEventListener("click", n);
|
|
405
405
|
};
|
|
406
406
|
}, []), e;
|
|
407
407
|
}, j = (e, t) => {
|
|
408
|
-
const [n,
|
|
408
|
+
const [n, r] = w(!1), o = E(
|
|
409
409
|
(c) => {
|
|
410
410
|
const { key: h } = c;
|
|
411
|
-
h === e && (
|
|
411
|
+
h === e && (r(!0), t && t(c));
|
|
412
412
|
},
|
|
413
|
-
[
|
|
414
|
-
), s =
|
|
413
|
+
[r, t]
|
|
414
|
+
), s = E(
|
|
415
415
|
({ key: c }) => {
|
|
416
|
-
c === e &&
|
|
416
|
+
c === e && r(!1);
|
|
417
417
|
},
|
|
418
|
-
[
|
|
418
|
+
[r]
|
|
419
419
|
);
|
|
420
|
-
return W("keydown",
|
|
420
|
+
return W("keydown", o, window), W("keyup", s, window), n;
|
|
421
421
|
}, Ho = (e) => {
|
|
422
|
-
const t =
|
|
422
|
+
const t = ye(e), n = Y(), [r, o] = w({}), s = Z();
|
|
423
423
|
return v(() => {
|
|
424
|
-
t && s.current &&
|
|
424
|
+
t && s.current && o(t.attributes.layout);
|
|
425
425
|
}, [t, s]), v(() => {
|
|
426
426
|
if (n) {
|
|
427
427
|
const c = n.events.subscribe(
|
|
428
428
|
"components:layout-changed",
|
|
429
429
|
(h, a) => {
|
|
430
|
-
t === a.node && s.current &&
|
|
430
|
+
t === a.node && s.current && o(a.node.attributes.layout);
|
|
431
431
|
}
|
|
432
432
|
);
|
|
433
433
|
return () => {
|
|
434
434
|
c();
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
-
}, [n, s, t]),
|
|
438
|
-
},
|
|
439
|
-
const t =
|
|
437
|
+
}, [n, s, t]), r;
|
|
438
|
+
}, Oe = (e) => {
|
|
439
|
+
const t = M();
|
|
440
440
|
return v(() => {
|
|
441
441
|
t.current = e;
|
|
442
442
|
}), t.current;
|
|
443
443
|
}, Ro = () => P(Wt), To = (e) => {
|
|
444
|
-
const [t, n] =
|
|
444
|
+
const [t, n] = w(), r = B(), o = Z();
|
|
445
445
|
return v(() => {
|
|
446
446
|
let s;
|
|
447
|
-
const c = (e ||
|
|
447
|
+
const c = (e || r).get("$widget");
|
|
448
448
|
if (!c)
|
|
449
449
|
return;
|
|
450
450
|
const { name: h, invoke: a } = c;
|
|
451
451
|
return a("renderState").then((l) => {
|
|
452
|
-
|
|
453
|
-
}), (e ||
|
|
452
|
+
o.current && n(l);
|
|
453
|
+
}), (e || r).getAsync("actionResolver").then((l) => {
|
|
454
454
|
s = l.subscribe(h, (d, u) => {
|
|
455
455
|
switch (u) {
|
|
456
456
|
case "close":
|
|
457
457
|
case "open":
|
|
458
|
-
|
|
458
|
+
o.current && n(
|
|
459
459
|
u === "open" ? ne.open : ne.closed
|
|
460
460
|
);
|
|
461
461
|
break;
|
|
462
462
|
case "hide":
|
|
463
|
-
|
|
463
|
+
o.current && n(ne.hidden);
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
}), () => {
|
|
467
467
|
s && s();
|
|
468
468
|
};
|
|
469
|
-
}, [
|
|
470
|
-
},
|
|
471
|
-
const t = B(), n =
|
|
469
|
+
}, [o]), t;
|
|
470
|
+
}, Ae = () => P(Zt), No = (e) => {
|
|
471
|
+
const t = B(), n = Ae(), [r, o] = w({
|
|
472
472
|
name: "",
|
|
473
473
|
params: {}
|
|
474
474
|
}), s = Z();
|
|
@@ -482,45 +482,45 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
482
482
|
(l, { next: { routeData: d } }) => {
|
|
483
483
|
if (s.current) {
|
|
484
484
|
const { name: u, params: f } = d;
|
|
485
|
-
|
|
485
|
+
Re(f), o({ name: u, params: f });
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
);
|
|
489
489
|
}, [s, e, t]), v(() => {
|
|
490
490
|
if (n && n.history && s.current) {
|
|
491
491
|
const c = n.getRouteData(), { name: h, params: a } = c;
|
|
492
|
-
|
|
492
|
+
Re(a), o({ name: h, params: a });
|
|
493
493
|
}
|
|
494
|
-
}, [n, s]),
|
|
495
|
-
},
|
|
496
|
-
const t =
|
|
497
|
-
let
|
|
498
|
-
const
|
|
494
|
+
}, [n, s]), r;
|
|
495
|
+
}, Fe = (e) => {
|
|
496
|
+
const t = M(), n = M(0);
|
|
497
|
+
let r;
|
|
498
|
+
const o = E(() => {
|
|
499
499
|
var l;
|
|
500
|
-
(l = t.current) == null || l.classList.add("humany-scrolling"), clearTimeout(
|
|
500
|
+
(l = t.current) == null || l.classList.add("humany-scrolling"), clearTimeout(r), r = setTimeout(() => {
|
|
501
501
|
var d;
|
|
502
502
|
(d = t.current) == null || d.classList.remove("humany-scrolling");
|
|
503
503
|
}, 500);
|
|
504
|
-
}, [t]), s =
|
|
504
|
+
}, [t]), s = E(
|
|
505
505
|
(l) => {
|
|
506
506
|
n.current = l.touches[0].clientY;
|
|
507
507
|
},
|
|
508
508
|
[t]
|
|
509
|
-
), 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 =
|
|
509
|
+
), 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(
|
|
510
510
|
(l) => {
|
|
511
511
|
if (!l.cancelable)
|
|
512
512
|
return;
|
|
513
513
|
const d = l.touches[0].clientY, u = c(l.target);
|
|
514
514
|
if (!u)
|
|
515
515
|
return;
|
|
516
|
-
const f = u.scrollTop,
|
|
517
|
-
(m ||
|
|
516
|
+
const f = u.scrollTop, C = n.current - d < 0 ? "up" : "down", m = f <= 0 && C === "up", g = f >= u.scrollHeight - u.offsetHeight && C === "down";
|
|
517
|
+
(m || g) && l.preventDefault(), n.current = d;
|
|
518
518
|
},
|
|
519
519
|
[t, n]
|
|
520
520
|
);
|
|
521
521
|
return W(
|
|
522
522
|
"scroll",
|
|
523
|
-
|
|
523
|
+
o,
|
|
524
524
|
t.current,
|
|
525
525
|
() => t.current && e
|
|
526
526
|
), W(
|
|
@@ -535,7 +535,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
535
535
|
() => t.current && e
|
|
536
536
|
), e ? [Ft, t] : ["", t];
|
|
537
537
|
}, Ft = `
|
|
538
|
-
overflow-y: ${
|
|
538
|
+
overflow-y: ${De() === me.Chrome || De() === me.EdgeChromium ? "overlay" : "auto"};
|
|
539
539
|
overflow-x: hidden;
|
|
540
540
|
-ms-overflow-style: none; /* IE 10+ */
|
|
541
541
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -563,73 +563,73 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
`, Do = () => {
|
|
566
|
-
const [e, t] =
|
|
566
|
+
const [e, t] = w(null), n = B(), r = Z();
|
|
567
567
|
return v(() => {
|
|
568
|
-
n.get("settings").then((
|
|
569
|
-
|
|
568
|
+
n.get("settings").then((o) => {
|
|
569
|
+
r.current && t(o);
|
|
570
570
|
});
|
|
571
|
-
}, [
|
|
572
|
-
},
|
|
573
|
-
const [t, n] =
|
|
574
|
-
n(typeof
|
|
571
|
+
}, [r]), e;
|
|
572
|
+
}, Pe = (e = !1) => {
|
|
573
|
+
const [t, n] = w(e), r = E((o) => {
|
|
574
|
+
n(typeof o == "boolean" ? o : (s) => !s);
|
|
575
575
|
}, []);
|
|
576
|
-
return [t,
|
|
576
|
+
return [t, r];
|
|
577
577
|
}, zo = (e) => {
|
|
578
|
-
const t = B(), n = Y(),
|
|
578
|
+
const t = B(), n = Y(), r = t.get("widgetDOMElement"), [o, s] = w(null), [c, h] = w(null), a = Z();
|
|
579
579
|
v(() => {
|
|
580
580
|
if (n && a.current) {
|
|
581
581
|
const d = n.nodes.all.find((f) => f.name === "root-area"), u = n.nodes.all.find((f) => f.type === "view");
|
|
582
582
|
if (!(u != null && u.attributes.properties.animation) && !(d != null && d.attributes.properties.animation))
|
|
583
583
|
e();
|
|
584
584
|
else {
|
|
585
|
-
const f = (
|
|
586
|
-
|
|
585
|
+
const f = (g = "") => r == null ? void 0 : r.querySelector(`[data-node-id="${g}"]`), C = f(u == null ? void 0 : u.id);
|
|
586
|
+
C && s(C);
|
|
587
587
|
const m = f(d == null ? void 0 : d.id);
|
|
588
588
|
m && h(m);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
}, [n, t, a]);
|
|
592
|
-
const l =
|
|
592
|
+
const l = E(
|
|
593
593
|
(d) => {
|
|
594
|
-
a.current && (d.target ===
|
|
594
|
+
a.current && (d.target === o || d.target === c) && e();
|
|
595
595
|
},
|
|
596
|
-
[e, a,
|
|
596
|
+
[e, a, o, c]
|
|
597
597
|
);
|
|
598
598
|
W(
|
|
599
599
|
"transitionend",
|
|
600
600
|
l,
|
|
601
|
-
|
|
601
|
+
o
|
|
602
602
|
), W(
|
|
603
603
|
"transitionend",
|
|
604
604
|
l,
|
|
605
605
|
c
|
|
606
606
|
);
|
|
607
|
-
},
|
|
608
|
-
const
|
|
607
|
+
}, ce = (e, t, n = [], r) => {
|
|
608
|
+
const o = At(r);
|
|
609
609
|
return v(() => {
|
|
610
|
-
if (
|
|
611
|
-
const s =
|
|
610
|
+
if (o) {
|
|
611
|
+
const s = o.subscribe(e, t);
|
|
612
612
|
return () => {
|
|
613
613
|
s();
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
}, [
|
|
617
|
-
},
|
|
618
|
-
const n =
|
|
619
|
-
|
|
616
|
+
}, [o].concat(n)), (s) => o == null ? void 0 : o.dispatch(e, s);
|
|
617
|
+
}, be = (e, t) => {
|
|
618
|
+
const n = ce("widget:menu-toggled", (r, o) => {
|
|
619
|
+
o !== e && t();
|
|
620
620
|
});
|
|
621
621
|
return () => n(e);
|
|
622
|
-
},
|
|
623
|
-
({ className: e, children: t, ...n },
|
|
622
|
+
}, ve = D(
|
|
623
|
+
({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i(
|
|
624
624
|
"span",
|
|
625
625
|
{
|
|
626
|
-
ref:
|
|
627
|
-
className:
|
|
626
|
+
ref: r,
|
|
627
|
+
className: S(e, "humany-text"),
|
|
628
628
|
...z(n),
|
|
629
629
|
children: t
|
|
630
630
|
}
|
|
631
631
|
)
|
|
632
|
-
),
|
|
632
|
+
), je = (e) => L`
|
|
633
633
|
display: flex;
|
|
634
634
|
justify-content: center;
|
|
635
635
|
flex-direction: column;
|
|
@@ -639,8 +639,8 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
639
639
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
640
640
|
${e["data-loading"] && "min-height: 150px;"}
|
|
641
641
|
`, Pt = (e) => {
|
|
642
|
-
var t, n,
|
|
643
|
-
return
|
|
642
|
+
var t, n, r;
|
|
643
|
+
return L`
|
|
644
644
|
cursor: pointer;
|
|
645
645
|
text-align: center;
|
|
646
646
|
border: none;
|
|
@@ -648,17 +648,17 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
648
648
|
padding: ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
649
649
|
border-radius: ${e.theme.borderRadius};
|
|
650
650
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
651
|
-
font-size: ${(
|
|
651
|
+
font-size: ${(r = e.theme.fonts) == null ? void 0 : r.normal};
|
|
652
652
|
`;
|
|
653
653
|
}, Bo = (e) => {
|
|
654
654
|
var c;
|
|
655
|
-
const { primaryColor: t, secondaryColor: n, active:
|
|
656
|
-
return
|
|
655
|
+
const { primaryColor: t, secondaryColor: n, active: r, theme: o, disabled: s } = e;
|
|
656
|
+
return L`
|
|
657
657
|
${Pt(e)}
|
|
658
|
-
border: 1px solid ${
|
|
659
|
-
background-color: ${
|
|
658
|
+
border: 1px solid ${r ? n : t};
|
|
659
|
+
background-color: ${r ? t : n};
|
|
660
660
|
|
|
661
|
-
color: ${
|
|
661
|
+
color: ${r ? n : t};
|
|
662
662
|
transition: background-color 200ms ease-out, color 200ms ease-out;
|
|
663
663
|
|
|
664
664
|
span,
|
|
@@ -666,11 +666,11 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
666
666
|
p,
|
|
667
667
|
a {
|
|
668
668
|
transition: color 200ms ease-out;
|
|
669
|
-
color: ${
|
|
670
|
-
font-size: ${(c =
|
|
669
|
+
color: ${r ? n : t};
|
|
670
|
+
font-size: ${(c = o.fonts) == null ? void 0 : c.normal};
|
|
671
671
|
}
|
|
672
672
|
|
|
673
|
-
${!s &&
|
|
673
|
+
${!s && L`
|
|
674
674
|
&:hover {
|
|
675
675
|
background-color: ${t};
|
|
676
676
|
color: ${n};
|
|
@@ -689,22 +689,22 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
689
689
|
`}
|
|
690
690
|
`;
|
|
691
691
|
}, O = (e) => {
|
|
692
|
-
var t, n,
|
|
693
|
-
return
|
|
692
|
+
var t, n, r;
|
|
693
|
+
return L`
|
|
694
694
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
695
|
-
color: ${(
|
|
695
|
+
color: ${(r = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : r.inactiveText};
|
|
696
696
|
border-color: transparent;
|
|
697
697
|
`;
|
|
698
|
-
}, jt = (e) =>
|
|
698
|
+
}, jt = (e) => L`
|
|
699
699
|
${O(e)}
|
|
700
700
|
text-decoration: underline;
|
|
701
701
|
`, Vo = (e) => {
|
|
702
702
|
var t;
|
|
703
|
-
return
|
|
703
|
+
return L`
|
|
704
704
|
${O(e)}
|
|
705
705
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
706
706
|
`;
|
|
707
|
-
},
|
|
707
|
+
}, xe = p(ae)`
|
|
708
708
|
position: absolute;
|
|
709
709
|
top: ${(e) => {
|
|
710
710
|
var t;
|
|
@@ -732,7 +732,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
732
732
|
height: 15px;
|
|
733
733
|
box-sizing: content-box;
|
|
734
734
|
}
|
|
735
|
-
`,
|
|
735
|
+
`, ze = p(ve)`
|
|
736
736
|
font-size: ${(e) => {
|
|
737
737
|
var t;
|
|
738
738
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -745,7 +745,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
745
745
|
}};
|
|
746
746
|
`, Kt = (e) => {
|
|
747
747
|
var t;
|
|
748
|
-
return
|
|
748
|
+
return L`
|
|
749
749
|
padding: 0;
|
|
750
750
|
margin: 0;
|
|
751
751
|
list-style: none;
|
|
@@ -766,17 +766,17 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
766
766
|
}
|
|
767
767
|
`;
|
|
768
768
|
}, Wo = (e) => {
|
|
769
|
-
var t, n,
|
|
770
|
-
return
|
|
769
|
+
var t, n, r, o;
|
|
770
|
+
return L`
|
|
771
771
|
> div {
|
|
772
772
|
${ie(e)(
|
|
773
773
|
"> h1",
|
|
774
|
-
|
|
774
|
+
L`
|
|
775
775
|
margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
776
776
|
font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
|
|
777
777
|
font-weight: normal;
|
|
778
778
|
line-height: 1.8em;
|
|
779
|
-
color: ${(
|
|
779
|
+
color: ${(r = e.theme.colors) == null ? void 0 : r.text};
|
|
780
780
|
`
|
|
781
781
|
)}
|
|
782
782
|
}
|
|
@@ -785,11 +785,11 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
785
785
|
}
|
|
786
786
|
${ie(e)(
|
|
787
787
|
"h1",
|
|
788
|
-
|
|
788
|
+
L`
|
|
789
789
|
display: flex;
|
|
790
790
|
align-items: center;
|
|
791
791
|
i {
|
|
792
|
-
margin: 7px ${(
|
|
792
|
+
margin: 7px ${(o = e.theme.sizes) == null ? void 0 : o.normal} 0 0;
|
|
793
793
|
width: 24px;
|
|
794
794
|
display: inline-block;
|
|
795
795
|
vertical-align: text-bottom;
|
|
@@ -802,8 +802,8 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
802
802
|
)}
|
|
803
803
|
`;
|
|
804
804
|
}, Zo = (e) => {
|
|
805
|
-
var t, n,
|
|
806
|
-
return
|
|
805
|
+
var t, n, r, o, s, c;
|
|
806
|
+
return L`
|
|
807
807
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
808
808
|
font-weight: 300;
|
|
809
809
|
line-height: 1.5em;
|
|
@@ -828,7 +828,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
a {
|
|
831
|
-
color: ${(
|
|
831
|
+
color: ${(r = e.theme.colors) == null ? void 0 : r.link};
|
|
832
832
|
&:focus-visible {
|
|
833
833
|
${jt(e)};
|
|
834
834
|
}
|
|
@@ -841,7 +841,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
841
841
|
|
|
842
842
|
p {
|
|
843
843
|
word-break: break-word;
|
|
844
|
-
margin: ${(
|
|
844
|
+
margin: ${(o = e.theme.sizes) == null ? void 0 : o.normal} 0;
|
|
845
845
|
}
|
|
846
846
|
|
|
847
847
|
p:first-child {
|
|
@@ -861,26 +861,26 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
861
861
|
parent: t = document.body,
|
|
862
862
|
children: n
|
|
863
863
|
}) => {
|
|
864
|
-
const [
|
|
865
|
-
const
|
|
866
|
-
return
|
|
864
|
+
const [r] = w(() => {
|
|
865
|
+
const o = document.getElementById(e) || document.createElement("div");
|
|
866
|
+
return o.id = e, o;
|
|
867
867
|
});
|
|
868
|
-
return v(() => (t.appendChild(
|
|
869
|
-
|
|
870
|
-
}), [
|
|
868
|
+
return v(() => (t.appendChild(r), () => {
|
|
869
|
+
r.childElementCount <= 1 && r.remove();
|
|
870
|
+
}), [r]), bt(n, r);
|
|
871
871
|
}, Q = ({
|
|
872
872
|
text: e = "",
|
|
873
873
|
backgroundSize: t = "contain",
|
|
874
874
|
size: n = 12,
|
|
875
|
-
symbol:
|
|
875
|
+
symbol: r = {
|
|
876
876
|
content: "",
|
|
877
877
|
type: ""
|
|
878
878
|
},
|
|
879
|
-
elementStyle:
|
|
879
|
+
elementStyle: o = {},
|
|
880
880
|
className: s,
|
|
881
881
|
...c
|
|
882
882
|
}) => {
|
|
883
|
-
const { type: h, content: a } =
|
|
883
|
+
const { type: h, content: a } = r, l = {
|
|
884
884
|
"aria-label": e,
|
|
885
885
|
role: "presentation"
|
|
886
886
|
};
|
|
@@ -896,13 +896,13 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
896
896
|
return /* @__PURE__ */ i(
|
|
897
897
|
"i",
|
|
898
898
|
{
|
|
899
|
-
className:
|
|
899
|
+
className: S(
|
|
900
900
|
s,
|
|
901
901
|
"humany-icon",
|
|
902
902
|
"humany-custom-icon"
|
|
903
903
|
),
|
|
904
904
|
title: e,
|
|
905
|
-
style: { ...d, ...
|
|
905
|
+
style: { ...d, ...o },
|
|
906
906
|
...l,
|
|
907
907
|
...c
|
|
908
908
|
}
|
|
@@ -910,7 +910,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
910
910
|
}
|
|
911
911
|
case "Svg": {
|
|
912
912
|
const d = {
|
|
913
|
-
className:
|
|
913
|
+
className: S(s, "humany-icon"),
|
|
914
914
|
width: `${n}`,
|
|
915
915
|
fill: "none",
|
|
916
916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1466,7 +1466,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
1466
1466
|
return e ? /* @__PURE__ */ i(
|
|
1467
1467
|
"i",
|
|
1468
1468
|
{
|
|
1469
|
-
className:
|
|
1469
|
+
className: S(s, "humany-letter-symbol"),
|
|
1470
1470
|
title: e,
|
|
1471
1471
|
...l,
|
|
1472
1472
|
...c,
|
|
@@ -1474,7 +1474,7 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
1474
1474
|
}
|
|
1475
1475
|
) : null;
|
|
1476
1476
|
}
|
|
1477
|
-
}, Yt =
|
|
1477
|
+
}, Yt = p.svg`
|
|
1478
1478
|
transform: rotate(180deg);
|
|
1479
1479
|
`, Xt = {
|
|
1480
1480
|
h1: "h1",
|
|
@@ -1489,21 +1489,21 @@ const Tt = (e) => (t) => /* @__PURE__ */ i(Tn, { attrs: t, htmlBody: e }), Nt =
|
|
|
1489
1489
|
variant: e,
|
|
1490
1490
|
component: t,
|
|
1491
1491
|
className: n,
|
|
1492
|
-
children:
|
|
1492
|
+
children: r
|
|
1493
1493
|
}) => {
|
|
1494
|
-
const { typographyVariantMapping:
|
|
1494
|
+
const { typographyVariantMapping: o = {} } = Ot(), s = {
|
|
1495
1495
|
...Xt,
|
|
1496
|
-
...
|
|
1496
|
+
...o
|
|
1497
1497
|
}, c = t || s[e] || "span";
|
|
1498
|
-
return /* @__PURE__ */ i(_t, { className: n, as: c, children:
|
|
1499
|
-
}, _t =
|
|
1498
|
+
return /* @__PURE__ */ i(_t, { className: n, as: c, children: r });
|
|
1499
|
+
}, _t = p.span``;
|
|
1500
1500
|
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 || {});
|
|
1501
1501
|
const qt = 300, Io = ({
|
|
1502
1502
|
className: e,
|
|
1503
1503
|
children: t,
|
|
1504
1504
|
header: n,
|
|
1505
|
-
onToggle:
|
|
1506
|
-
trigger:
|
|
1505
|
+
onToggle: r,
|
|
1506
|
+
trigger: o,
|
|
1507
1507
|
fullScreen: s = !1,
|
|
1508
1508
|
closeButtonAriaLabel: c,
|
|
1509
1509
|
animation: h = {
|
|
@@ -1511,55 +1511,53 @@ const qt = 300, Io = ({
|
|
|
1511
1511
|
/* SlideInBottom */
|
|
1512
1512
|
}
|
|
1513
1513
|
}) => {
|
|
1514
|
-
const { duration: a = qt } = h, l =
|
|
1514
|
+
const { duration: a = qt } = h, l = M(), d = M(), [u, f] = Fe(!0), [C, m] = Pe(), g = Oe(C), k = M(_());
|
|
1515
1515
|
v(() => {
|
|
1516
|
-
|
|
1517
|
-
}, [
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
y && m(!1);
|
|
1521
|
-
}, [y]), W(
|
|
1516
|
+
r && r(C);
|
|
1517
|
+
}, [C]), j("Escape", (H) => {
|
|
1518
|
+
C && (se(H), m(!1));
|
|
1519
|
+
}), W(
|
|
1522
1520
|
"click",
|
|
1523
|
-
(
|
|
1524
|
-
const { target:
|
|
1525
|
-
!d.current || !f.current || !
|
|
1521
|
+
(H) => {
|
|
1522
|
+
const { target: T } = H;
|
|
1523
|
+
!d.current || !f.current || !T || d.current !== T && f.current !== T && !f.current.contains(T) && !d.current.contains(T) && m(!1);
|
|
1526
1524
|
},
|
|
1527
1525
|
window
|
|
1528
1526
|
);
|
|
1529
|
-
const
|
|
1527
|
+
const y = be(k.current, () => {
|
|
1530
1528
|
m(!1);
|
|
1531
1529
|
});
|
|
1532
|
-
|
|
1530
|
+
ce("router:changed", () => {
|
|
1533
1531
|
m(!1);
|
|
1534
1532
|
}), v(() => {
|
|
1535
|
-
|
|
1536
|
-
}, [
|
|
1537
|
-
const
|
|
1533
|
+
C && l.current ? l.current.focus() : !C && d.current && g && d.current.focus();
|
|
1534
|
+
}, [C, l.current, d.current]);
|
|
1535
|
+
const $ = nn[h.type];
|
|
1538
1536
|
return /* @__PURE__ */ b(U, { children: [
|
|
1539
1537
|
/* @__PURE__ */ i(
|
|
1540
|
-
|
|
1538
|
+
We,
|
|
1541
1539
|
{
|
|
1542
|
-
in:
|
|
1540
|
+
in: C,
|
|
1543
1541
|
className: "humany-drawer-transition",
|
|
1544
1542
|
classNames: "humany-drawer-transition",
|
|
1545
1543
|
unmountOnExit: !0,
|
|
1546
1544
|
timeout: a,
|
|
1547
1545
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1548
|
-
|
|
1546
|
+
$,
|
|
1549
1547
|
{
|
|
1550
1548
|
duration: a,
|
|
1551
1549
|
fullScreen: s,
|
|
1552
|
-
className:
|
|
1550
|
+
className: S(
|
|
1553
1551
|
e,
|
|
1554
1552
|
"humany-drawer",
|
|
1555
|
-
`humany-drawer-${
|
|
1553
|
+
`humany-drawer-${k.current}`
|
|
1556
1554
|
),
|
|
1557
1555
|
clientHeight: document.body.clientHeight,
|
|
1558
1556
|
css: u,
|
|
1559
1557
|
ref: f,
|
|
1560
1558
|
children: [
|
|
1561
1559
|
/* @__PURE__ */ i(
|
|
1562
|
-
|
|
1560
|
+
xe,
|
|
1563
1561
|
{
|
|
1564
1562
|
onClick: () => m(!1),
|
|
1565
1563
|
tabIndex: 0,
|
|
@@ -1575,16 +1573,16 @@ const qt = 300, Io = ({
|
|
|
1575
1573
|
) })
|
|
1576
1574
|
}
|
|
1577
1575
|
),
|
|
1578
|
-
oe.cloneElement(
|
|
1579
|
-
onClick: (
|
|
1580
|
-
m(),
|
|
1576
|
+
oe.cloneElement(o, {
|
|
1577
|
+
onClick: (H) => {
|
|
1578
|
+
m(), y();
|
|
1581
1579
|
},
|
|
1582
1580
|
ref: d,
|
|
1583
|
-
"aria-label":
|
|
1584
|
-
"aria-expanded":
|
|
1581
|
+
"aria-label": o.props.title,
|
|
1582
|
+
"aria-expanded": C
|
|
1585
1583
|
})
|
|
1586
1584
|
] });
|
|
1587
|
-
},
|
|
1585
|
+
}, le = p.div`
|
|
1588
1586
|
font-family: ${(e) => {
|
|
1589
1587
|
var t;
|
|
1590
1588
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1601,7 +1599,7 @@ const qt = 300, Io = ({
|
|
|
1601
1599
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1602
1600
|
background: #ffffff;
|
|
1603
1601
|
${(e) => e.css && e.css}
|
|
1604
|
-
`, Qt =
|
|
1602
|
+
`, Qt = p(X)`
|
|
1605
1603
|
padding: ${(e) => {
|
|
1606
1604
|
var t;
|
|
1607
1605
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1624,11 +1622,11 @@ const qt = 300, Io = ({
|
|
|
1624
1622
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1625
1623
|
}};
|
|
1626
1624
|
line-height: 1.2em;
|
|
1627
|
-
`,
|
|
1625
|
+
`, de = (e) => L`
|
|
1628
1626
|
transition: ${e.duration}ms;
|
|
1629
|
-
`, Gt =
|
|
1627
|
+
`, Gt = p(le)`
|
|
1630
1628
|
max-height: 0;
|
|
1631
|
-
${
|
|
1629
|
+
${de}
|
|
1632
1630
|
|
|
1633
1631
|
&.humany-drawer-transition-enter {
|
|
1634
1632
|
max-height: 0;
|
|
@@ -1643,8 +1641,8 @@ const qt = 300, Io = ({
|
|
|
1643
1641
|
&.humany-drawer-transition-exit-done {
|
|
1644
1642
|
max-height: 0;
|
|
1645
1643
|
}
|
|
1646
|
-
`, Jt =
|
|
1647
|
-
${
|
|
1644
|
+
`, Jt = p(le)`
|
|
1645
|
+
${de}
|
|
1648
1646
|
transform: translateX(100%);
|
|
1649
1647
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1650
1648
|
|
|
@@ -1661,8 +1659,8 @@ const qt = 300, Io = ({
|
|
|
1661
1659
|
&.humany-drawer-transition-exit-done {
|
|
1662
1660
|
transform: translateX(100%);
|
|
1663
1661
|
}
|
|
1664
|
-
`, en =
|
|
1665
|
-
${
|
|
1662
|
+
`, en = p(le)`
|
|
1663
|
+
${de}
|
|
1666
1664
|
transform: translateX(-100%);
|
|
1667
1665
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1668
1666
|
|
|
@@ -1679,8 +1677,8 @@ const qt = 300, Io = ({
|
|
|
1679
1677
|
&.humany-drawer-transition-exit-done {
|
|
1680
1678
|
transform: translateX(-100%);
|
|
1681
1679
|
}
|
|
1682
|
-
`, tn =
|
|
1683
|
-
${
|
|
1680
|
+
`, tn = p(le)`
|
|
1681
|
+
${de}
|
|
1684
1682
|
bottom: unset;
|
|
1685
1683
|
top: 0;
|
|
1686
1684
|
height: 0;
|
|
@@ -1703,79 +1701,79 @@ const qt = 300, Io = ({
|
|
|
1703
1701
|
"slide-in-right": Jt,
|
|
1704
1702
|
"slide-in-left": en,
|
|
1705
1703
|
"slide-in-top": tn
|
|
1706
|
-
},
|
|
1707
|
-
const [
|
|
1704
|
+
}, Ke = (e, t, n) => {
|
|
1705
|
+
const [r, o] = w(0), [s, c] = w(0), h = E(
|
|
1708
1706
|
(a, l) => {
|
|
1709
1707
|
if (a.preventDefault(), l) {
|
|
1710
1708
|
const d = l.getBoundingClientRect();
|
|
1711
|
-
|
|
1709
|
+
o(Math.max(document.body.clientWidth - d.right, 1)), c(d.bottom + window.scrollY);
|
|
1712
1710
|
}
|
|
1713
1711
|
},
|
|
1714
|
-
[
|
|
1712
|
+
[r, s, o, c]
|
|
1715
1713
|
);
|
|
1716
1714
|
return v(() => {
|
|
1717
1715
|
if (!n || !e)
|
|
1718
1716
|
return;
|
|
1719
1717
|
const a = n.getBoundingClientRect(), l = {
|
|
1720
|
-
x:
|
|
1718
|
+
x: r,
|
|
1721
1719
|
y: s
|
|
1722
1720
|
};
|
|
1723
|
-
a.left < 0 && (l.x = 0), a.bottom > window.innerHeight && (l.y = 0), l.x !==
|
|
1724
|
-
}, [n, e, t]), [{ x:
|
|
1721
|
+
a.left < 0 && (l.x = 0), a.bottom > window.innerHeight && (l.y = 0), l.x !== r && o(l.x), l.y !== s && c(l.y);
|
|
1722
|
+
}, [n, e, t]), [{ x: r, y: s }, h];
|
|
1725
1723
|
}, Oo = oe.forwardRef(
|
|
1726
1724
|
({
|
|
1727
1725
|
className: e = "",
|
|
1728
1726
|
children: t = null,
|
|
1729
1727
|
trigger: n,
|
|
1730
|
-
closeButtonAriaLabel:
|
|
1731
|
-
...
|
|
1728
|
+
closeButtonAriaLabel: r,
|
|
1729
|
+
...o
|
|
1732
1730
|
}, s) => {
|
|
1733
|
-
const c =
|
|
1734
|
-
|
|
1735
|
-
const l =
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
}
|
|
1731
|
+
const c = M(), h = M(), a = M();
|
|
1732
|
+
pe(s, () => a.current, [a.current]);
|
|
1733
|
+
const l = M(_()), [d, u] = w(!1), f = Oe(d), [{ x: C, y: m }, g] = Ke(d, l.current, a.current);
|
|
1734
|
+
j("Escape", ($) => {
|
|
1735
|
+
d && (se($), u(!1));
|
|
1736
|
+
}), v(() => {
|
|
1739
1737
|
d && c.current ? c.current.focus() : !d && h.current && f && h.current.focus();
|
|
1740
1738
|
}, [d, c.current, h.current]), W(
|
|
1741
1739
|
"click",
|
|
1742
|
-
(
|
|
1743
|
-
const { target:
|
|
1744
|
-
!a.current || !
|
|
1740
|
+
($) => {
|
|
1741
|
+
const { target: H } = $;
|
|
1742
|
+
!a.current || !H || a.current !== H && !a.current.contains(H) && u(!1);
|
|
1745
1743
|
},
|
|
1746
1744
|
window
|
|
1747
|
-
),
|
|
1745
|
+
), ce("router:changed", () => {
|
|
1748
1746
|
u(!1);
|
|
1749
1747
|
});
|
|
1750
|
-
const
|
|
1748
|
+
const k = be(l.current, () => {
|
|
1751
1749
|
u(!1);
|
|
1752
|
-
}),
|
|
1753
|
-
(
|
|
1754
|
-
|
|
1750
|
+
}), y = E(
|
|
1751
|
+
($) => {
|
|
1752
|
+
$.stopPropagation(), g($, h.current), u(!d), k();
|
|
1755
1753
|
},
|
|
1756
|
-
[
|
|
1754
|
+
[k, g, u]
|
|
1757
1755
|
);
|
|
1758
1756
|
return /* @__PURE__ */ b(U, { children: [
|
|
1759
1757
|
d && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1760
1758
|
on,
|
|
1761
1759
|
{
|
|
1762
|
-
className:
|
|
1760
|
+
className: S(
|
|
1763
1761
|
"humany-dropdown",
|
|
1764
1762
|
`humany-dropdown-${l.current}`,
|
|
1765
1763
|
e
|
|
1766
1764
|
),
|
|
1767
|
-
...
|
|
1768
|
-
x:
|
|
1765
|
+
...o,
|
|
1766
|
+
x: C,
|
|
1769
1767
|
y: m,
|
|
1770
1768
|
ref: a,
|
|
1771
1769
|
children: [
|
|
1772
1770
|
/* @__PURE__ */ i(
|
|
1773
|
-
|
|
1771
|
+
xe,
|
|
1774
1772
|
{
|
|
1775
1773
|
onClick: () => u(!1),
|
|
1776
1774
|
tabIndex: 0,
|
|
1777
1775
|
ref: c,
|
|
1778
|
-
"aria-label":
|
|
1776
|
+
"aria-label": r,
|
|
1779
1777
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
1780
1778
|
}
|
|
1781
1779
|
),
|
|
@@ -1784,15 +1782,15 @@ const qt = 300, Io = ({
|
|
|
1784
1782
|
}
|
|
1785
1783
|
) }),
|
|
1786
1784
|
oe.cloneElement(n, {
|
|
1787
|
-
onClick:
|
|
1785
|
+
onClick: y,
|
|
1788
1786
|
ref: h,
|
|
1789
1787
|
"aria-label": n.props.title,
|
|
1790
1788
|
"aria-expanded": d
|
|
1791
1789
|
})
|
|
1792
1790
|
] });
|
|
1793
1791
|
}
|
|
1794
|
-
), on =
|
|
1795
|
-
${
|
|
1792
|
+
), on = p.div`
|
|
1793
|
+
${je}
|
|
1796
1794
|
padding: ${(e) => {
|
|
1797
1795
|
var t;
|
|
1798
1796
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -1802,35 +1800,35 @@ const qt = 300, Io = ({
|
|
|
1802
1800
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1803
1801
|
|
|
1804
1802
|
${(e) => {
|
|
1805
|
-
var n,
|
|
1803
|
+
var n, r, o;
|
|
1806
1804
|
let t = "";
|
|
1807
|
-
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((
|
|
1805
|
+
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, t;
|
|
1808
1806
|
}};
|
|
1809
|
-
`, rn = ({ ...e }) => /* @__PURE__ */ i(sn, { ...e }), sn =
|
|
1807
|
+
`, rn = ({ ...e }) => /* @__PURE__ */ i(sn, { ...e }), sn = p.div`
|
|
1810
1808
|
display: none;
|
|
1811
1809
|
`, Ao = D(
|
|
1812
|
-
({ children: e, columns: t, gap: n, className:
|
|
1810
|
+
({ children: e, columns: t, gap: n, className: r, ...o }, s) => /* @__PURE__ */ i(
|
|
1813
1811
|
an,
|
|
1814
1812
|
{
|
|
1815
|
-
className:
|
|
1813
|
+
className: S(r, "humany-grid"),
|
|
1816
1814
|
"data-columns": t,
|
|
1817
1815
|
"data-gap": n,
|
|
1818
|
-
...
|
|
1819
|
-
...z(
|
|
1816
|
+
...Ze(o),
|
|
1817
|
+
...z(o),
|
|
1820
1818
|
ref: s,
|
|
1821
1819
|
children: e
|
|
1822
1820
|
}
|
|
1823
1821
|
)
|
|
1824
|
-
), an =
|
|
1822
|
+
), an = p.div`
|
|
1825
1823
|
display: grid;
|
|
1826
1824
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1827
1825
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1828
1826
|
justify-content: center;
|
|
1829
1827
|
grid-auto-rows: max-content;
|
|
1830
1828
|
${St}
|
|
1831
|
-
`,
|
|
1832
|
-
({ htmlParseInstruction: e = null, className: t, html: n, ...
|
|
1833
|
-
const s = B(), [c, h] =
|
|
1829
|
+
`, Ye = D(
|
|
1830
|
+
({ htmlParseInstruction: e = null, className: t, html: n, ...r }, o) => {
|
|
1831
|
+
const s = B(), [c, h] = w();
|
|
1834
1832
|
v(() => {
|
|
1835
1833
|
const d = Nt(s, n), u = {
|
|
1836
1834
|
...d,
|
|
@@ -1842,31 +1840,31 @@ const qt = 300, Io = ({
|
|
|
1842
1840
|
}, f = Rt(n, u);
|
|
1843
1841
|
h(f);
|
|
1844
1842
|
}, [n, e]);
|
|
1845
|
-
const a =
|
|
1843
|
+
const a = M(null), l = s.get("$widget");
|
|
1846
1844
|
return v(() => {
|
|
1847
1845
|
const d = a.current;
|
|
1848
1846
|
if (!d || d.getAttribute("data-observed")) return;
|
|
1849
1847
|
new MutationObserver((f) => {
|
|
1850
|
-
f.forEach((
|
|
1851
|
-
var y,
|
|
1852
|
-
let m =
|
|
1848
|
+
f.forEach((C) => {
|
|
1849
|
+
var y, $, H;
|
|
1850
|
+
let m = C.target;
|
|
1853
1851
|
if (m.tagName === "DIV" && m.matches("[data-notification]") && m.getAttribute("data-expandable")) {
|
|
1854
|
-
const
|
|
1855
|
-
if (
|
|
1856
|
-
const
|
|
1857
|
-
|
|
1852
|
+
const T = m.firstChild;
|
|
1853
|
+
if (T && T.nodeType === Node.TEXT_NODE) {
|
|
1854
|
+
const N = document.createElement("p");
|
|
1855
|
+
N.appendChild(T), m.appendChild(N);
|
|
1858
1856
|
return;
|
|
1859
|
-
} else
|
|
1857
|
+
} else T && T.nodeType === Node.ELEMENT_NODE && (m = T);
|
|
1860
1858
|
} else if (m.tagName !== "P" || !((y = m.closest("[data-notification]")) != null && y.getAttribute("data-expandable")))
|
|
1861
1859
|
return;
|
|
1862
1860
|
if (!(m != null && m.closest(".humany-notification-row"))) return;
|
|
1863
|
-
const
|
|
1864
|
-
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(
|
|
1861
|
+
const g = ($ = m.closest(".humany-notification-row")) == null ? void 0 : $.getAttribute("data-node-id"), k = (H = m.closest("[data-notification]")) == null ? void 0 : H.getAttribute("data-notification");
|
|
1862
|
+
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(k), l.events.dispatch("notification:expandable", {
|
|
1865
1863
|
expandable: !0,
|
|
1866
|
-
notificationRowId:
|
|
1864
|
+
notificationRowId: g
|
|
1867
1865
|
})) : l.events.dispatch("notification:expandable", {
|
|
1868
1866
|
expandable: !1,
|
|
1869
|
-
notificationRowId:
|
|
1867
|
+
notificationRowId: g
|
|
1870
1868
|
});
|
|
1871
1869
|
});
|
|
1872
1870
|
}).observe(d, {
|
|
@@ -1876,8 +1874,8 @@ const qt = 300, Io = ({
|
|
|
1876
1874
|
}, [c, l]), /* @__PURE__ */ i(
|
|
1877
1875
|
"div",
|
|
1878
1876
|
{
|
|
1879
|
-
className:
|
|
1880
|
-
...z(
|
|
1877
|
+
className: S(t, "humany-html"),
|
|
1878
|
+
...z(r),
|
|
1881
1879
|
ref: a,
|
|
1882
1880
|
children: c
|
|
1883
1881
|
}
|
|
@@ -1887,15 +1885,15 @@ const qt = 300, Io = ({
|
|
|
1887
1885
|
faIcon: e,
|
|
1888
1886
|
title: t,
|
|
1889
1887
|
className: n = "",
|
|
1890
|
-
role:
|
|
1891
|
-
...
|
|
1888
|
+
role: r = "presentation",
|
|
1889
|
+
...o
|
|
1892
1890
|
}) => /* @__PURE__ */ i(
|
|
1893
1891
|
"i",
|
|
1894
1892
|
{
|
|
1895
|
-
className:
|
|
1893
|
+
className: S(n, `fa fa-${e}`),
|
|
1896
1894
|
title: t,
|
|
1897
|
-
role:
|
|
1898
|
-
...z(
|
|
1895
|
+
role: r,
|
|
1896
|
+
...z(o)
|
|
1899
1897
|
}
|
|
1900
1898
|
), Fo = D(
|
|
1901
1899
|
({
|
|
@@ -1903,9 +1901,9 @@ const qt = 300, Io = ({
|
|
|
1903
1901
|
autoFocus: t = !1,
|
|
1904
1902
|
onFocusChange: n = () => {
|
|
1905
1903
|
},
|
|
1906
|
-
onEnter:
|
|
1904
|
+
onEnter: r = () => {
|
|
1907
1905
|
},
|
|
1908
|
-
onEscape:
|
|
1906
|
+
onEscape: o = () => {
|
|
1909
1907
|
},
|
|
1910
1908
|
selectAllOnFocus: s,
|
|
1911
1909
|
onChange: c = () => {
|
|
@@ -1915,67 +1913,67 @@ const qt = 300, Io = ({
|
|
|
1915
1913
|
autoComplete: l,
|
|
1916
1914
|
...d
|
|
1917
1915
|
}, u) => {
|
|
1918
|
-
const [f,
|
|
1919
|
-
|
|
1916
|
+
const [f, C] = w(t), m = M();
|
|
1917
|
+
pe(u, () => m.current), v(() => {
|
|
1920
1918
|
var y;
|
|
1921
1919
|
t && ((y = m == null ? void 0 : m.current) == null || y.focus());
|
|
1922
1920
|
}, [t, u, m]);
|
|
1923
|
-
const
|
|
1924
|
-
|
|
1925
|
-
},
|
|
1921
|
+
const g = (y, $) => {
|
|
1922
|
+
C(y), n && n(y), s && y && $.target.select();
|
|
1923
|
+
}, k = {
|
|
1926
1924
|
...z(d),
|
|
1927
1925
|
disabled: h,
|
|
1928
1926
|
autoFocus: t,
|
|
1929
1927
|
type: a,
|
|
1930
1928
|
onKeyDown: (y) => {
|
|
1931
|
-
y.key === "Enter" && f &&
|
|
1929
|
+
y.key === "Enter" && f && r(y), y.key === "Escape" && f && o(y);
|
|
1932
1930
|
},
|
|
1933
|
-
onFocus: (y) =>
|
|
1934
|
-
onBlur: (y) =>
|
|
1931
|
+
onFocus: (y) => g(!0, y),
|
|
1932
|
+
onBlur: (y) => g(!1, y),
|
|
1935
1933
|
onChange: (y) => c(y.target.value || ""),
|
|
1936
|
-
className:
|
|
1934
|
+
className: S(e, "humany-input"),
|
|
1937
1935
|
"data-type": a,
|
|
1938
1936
|
...l && { autoComplete: l }
|
|
1939
1937
|
};
|
|
1940
1938
|
return a !== "textarea" ? /* @__PURE__ */ i(
|
|
1941
1939
|
"input",
|
|
1942
1940
|
{
|
|
1943
|
-
...
|
|
1941
|
+
...k,
|
|
1944
1942
|
ref: m
|
|
1945
1943
|
}
|
|
1946
1944
|
) : /* @__PURE__ */ i(
|
|
1947
1945
|
"textarea",
|
|
1948
1946
|
{
|
|
1949
|
-
...
|
|
1947
|
+
...k,
|
|
1950
1948
|
ref: m
|
|
1951
1949
|
}
|
|
1952
1950
|
);
|
|
1953
1951
|
}
|
|
1954
1952
|
), ln = D(
|
|
1955
|
-
({ className: e, items: t, renderItem: n, renderLi:
|
|
1953
|
+
({ className: e, items: t, renderItem: n, renderLi: r = !1, ...o }, s) => {
|
|
1956
1954
|
const c = t.length === 1 && t[0].expanded;
|
|
1957
1955
|
return /* @__PURE__ */ i(
|
|
1958
1956
|
"ul",
|
|
1959
1957
|
{
|
|
1960
1958
|
role: c ? "none" : void 0,
|
|
1961
|
-
className:
|
|
1959
|
+
className: S(e, "humany-list"),
|
|
1962
1960
|
"data-item-count": t.length,
|
|
1963
|
-
...z(
|
|
1961
|
+
...z(o),
|
|
1964
1962
|
ref: s,
|
|
1965
1963
|
children: t.map(
|
|
1966
|
-
(h, a, l) =>
|
|
1964
|
+
(h, a, l) => r ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(h, a, l) }, h.id || a) : n(h, a, l)
|
|
1967
1965
|
)
|
|
1968
1966
|
}
|
|
1969
1967
|
);
|
|
1970
1968
|
}
|
|
1971
1969
|
), dn = D(
|
|
1972
|
-
({ text: e, html: t, header: n, className:
|
|
1970
|
+
({ text: e, html: t, header: n, className: r, htmlParseInstruction: o, symbol: s, ...c }, h) => {
|
|
1973
1971
|
var l;
|
|
1974
1972
|
const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
|
|
1975
1973
|
return /* @__PURE__ */ b(
|
|
1976
1974
|
"div",
|
|
1977
1975
|
{
|
|
1978
|
-
className:
|
|
1976
|
+
className: S(r, "humany-paragraph"),
|
|
1979
1977
|
...z(c),
|
|
1980
1978
|
ref: h,
|
|
1981
1979
|
children: [
|
|
@@ -1989,8 +1987,8 @@ const qt = 300, Io = ({
|
|
|
1989
1987
|
]
|
|
1990
1988
|
}
|
|
1991
1989
|
) : null,
|
|
1992
|
-
t ? /* @__PURE__ */ i(
|
|
1993
|
-
e ? /* @__PURE__ */ i(
|
|
1990
|
+
t ? /* @__PURE__ */ i(Ye, { html: t, htmlParseInstruction: o }) : null,
|
|
1991
|
+
e ? /* @__PURE__ */ i(ve, { children: e }) : null
|
|
1994
1992
|
]
|
|
1995
1993
|
}
|
|
1996
1994
|
);
|
|
@@ -2000,8 +1998,8 @@ const qt = 300, Io = ({
|
|
|
2000
1998
|
header: e,
|
|
2001
1999
|
customHeader: t,
|
|
2002
2000
|
text: n,
|
|
2003
|
-
html:
|
|
2004
|
-
className:
|
|
2001
|
+
html: r,
|
|
2002
|
+
className: o,
|
|
2005
2003
|
children: s,
|
|
2006
2004
|
symbol: c,
|
|
2007
2005
|
items: h,
|
|
@@ -2012,12 +2010,12 @@ const qt = 300, Io = ({
|
|
|
2012
2010
|
}, f) => /* @__PURE__ */ b(
|
|
2013
2011
|
"div",
|
|
2014
2012
|
{
|
|
2015
|
-
className:
|
|
2013
|
+
className: S(o, "humany-item-list"),
|
|
2016
2014
|
"data-item-count": h.length,
|
|
2017
2015
|
...z(u),
|
|
2018
2016
|
ref: f,
|
|
2019
2017
|
children: [
|
|
2020
|
-
t || (e || n ||
|
|
2018
|
+
t || (e || n || r ? /* @__PURE__ */ i(dn, { symbol: c, header: e, text: n, html: r }) : null),
|
|
2021
2019
|
h.length ? /* @__PURE__ */ i(
|
|
2022
2020
|
ln,
|
|
2023
2021
|
{
|
|
@@ -2035,8 +2033,8 @@ const qt = 300, Io = ({
|
|
|
2035
2033
|
className: e = "",
|
|
2036
2034
|
tree: t,
|
|
2037
2035
|
renderItem: n,
|
|
2038
|
-
rootItem:
|
|
2039
|
-
renderUnselected:
|
|
2036
|
+
rootItem: r,
|
|
2037
|
+
renderUnselected: o = !0,
|
|
2040
2038
|
renderEmpty: s = !0,
|
|
2041
2039
|
ulProps: c,
|
|
2042
2040
|
liProps: h
|
|
@@ -2044,11 +2042,11 @@ const qt = 300, Io = ({
|
|
|
2044
2042
|
const a = (u) => !l(u), l = (u) => !u || u.length < 1 ? !0 : !u.some((f) => !!f.selected), d = (u, f) => /* @__PURE__ */ i(
|
|
2045
2043
|
un,
|
|
2046
2044
|
{
|
|
2047
|
-
className:
|
|
2045
|
+
className: S(`humany-item-tree-level-${f}`),
|
|
2048
2046
|
items: u,
|
|
2049
2047
|
ulProps: c,
|
|
2050
|
-
renderItem: (
|
|
2051
|
-
const { id: m, selected:
|
|
2048
|
+
renderItem: (C) => {
|
|
2049
|
+
const { id: m, selected: g, items: k, matches: y } = C, $ = g && l(k);
|
|
2052
2050
|
return !s && !y ? null : /* @__PURE__ */ ct(
|
|
2053
2051
|
"li",
|
|
2054
2052
|
{
|
|
@@ -2056,14 +2054,14 @@ const qt = 300, Io = ({
|
|
|
2056
2054
|
key: m,
|
|
2057
2055
|
className: "humany-item-tree-item"
|
|
2058
2056
|
},
|
|
2059
|
-
n && n(
|
|
2060
|
-
|
|
2057
|
+
n && n(C, f, $),
|
|
2058
|
+
k && (o || $) && d(k, f + 1)
|
|
2061
2059
|
);
|
|
2062
2060
|
}
|
|
2063
2061
|
}
|
|
2064
2062
|
);
|
|
2065
|
-
return /* @__PURE__ */ b("div", { className:
|
|
2066
|
-
|
|
2063
|
+
return /* @__PURE__ */ b("div", { className: S(e, "humany-item-tree"), children: [
|
|
2064
|
+
r && r(!a(t || [])),
|
|
2067
2065
|
t && d(t, 1)
|
|
2068
2066
|
] });
|
|
2069
2067
|
}, hn = D(
|
|
@@ -2072,87 +2070,87 @@ const qt = 300, Io = ({
|
|
|
2072
2070
|
onClick: t = () => {
|
|
2073
2071
|
},
|
|
2074
2072
|
name: n = "",
|
|
2075
|
-
to:
|
|
2076
|
-
params:
|
|
2073
|
+
to: r = "",
|
|
2074
|
+
params: o = {},
|
|
2077
2075
|
children: s,
|
|
2078
2076
|
...c
|
|
2079
2077
|
}, h) => {
|
|
2080
|
-
const a =
|
|
2078
|
+
const a = Ae(), l = B();
|
|
2081
2079
|
if (!a)
|
|
2082
2080
|
return null;
|
|
2083
2081
|
let d = "";
|
|
2084
2082
|
const u = {
|
|
2085
2083
|
onClick: t,
|
|
2086
|
-
className:
|
|
2084
|
+
className: S(e, "humany-route-link"),
|
|
2087
2085
|
to: d,
|
|
2088
2086
|
innerRef: h,
|
|
2089
2087
|
...c,
|
|
2090
2088
|
ref: null
|
|
2091
2089
|
};
|
|
2092
2090
|
if (n) {
|
|
2093
|
-
if (!(a.routes || []).find((
|
|
2094
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2091
|
+
if (!(a.routes || []).find((g) => g.name === n))
|
|
2092
|
+
return process.env.NODE_ENV !== "production" && ue.warn(
|
|
2095
2093
|
`Unable to create route. No route named "${n}" exist.`
|
|
2096
2094
|
), /* @__PURE__ */ i(
|
|
2097
|
-
|
|
2095
|
+
he,
|
|
2098
2096
|
{
|
|
2099
2097
|
...u,
|
|
2100
|
-
onClick: (
|
|
2101
|
-
t(
|
|
2098
|
+
onClick: (g) => {
|
|
2099
|
+
t(g), g.preventDefault(), process.env.NODE_ENV !== "production" && ue.warn(
|
|
2102
2100
|
`Unable to navigate. No route named "${n}" exist.`
|
|
2103
2101
|
);
|
|
2104
2102
|
},
|
|
2105
2103
|
children: s
|
|
2106
2104
|
}
|
|
2107
2105
|
);
|
|
2108
|
-
const m = Object.keys(
|
|
2109
|
-
(
|
|
2110
|
-
const y =
|
|
2106
|
+
const m = Object.keys(o).reduce(
|
|
2107
|
+
(g, k) => {
|
|
2108
|
+
const y = o[k];
|
|
2111
2109
|
if (Array.isArray(y)) {
|
|
2112
2110
|
if (y.length === 0)
|
|
2113
|
-
return
|
|
2114
|
-
|
|
2111
|
+
return g;
|
|
2112
|
+
g[k] = y.map(($) => typeof $ == "string" ? encodeURIComponent($) : $).join(",");
|
|
2115
2113
|
} else
|
|
2116
|
-
|
|
2117
|
-
return
|
|
2114
|
+
g[k] = typeof y == "string" ? encodeURIComponent(y) : y;
|
|
2115
|
+
return g;
|
|
2118
2116
|
},
|
|
2119
2117
|
{}
|
|
2120
2118
|
);
|
|
2121
2119
|
try {
|
|
2122
2120
|
d = a.generate(n, m || {});
|
|
2123
2121
|
} catch {
|
|
2124
|
-
return /* @__PURE__ */ i(
|
|
2122
|
+
return /* @__PURE__ */ i(he, { ...u, ref: u.innerRef, children: s });
|
|
2125
2123
|
}
|
|
2126
|
-
d && a.settings.mode && a.settings.mode ===
|
|
2127
|
-
} else if (
|
|
2124
|
+
d && a.settings.mode && a.settings.mode === Ne.browser && d[0] !== "/" && (d = `/${d}`);
|
|
2125
|
+
} else if (r && a.history)
|
|
2128
2126
|
d = a.history.createHref({
|
|
2129
2127
|
hash: "",
|
|
2130
|
-
pathname:
|
|
2128
|
+
pathname: r,
|
|
2131
2129
|
search: "",
|
|
2132
2130
|
state: void 0
|
|
2133
2131
|
});
|
|
2134
2132
|
else
|
|
2135
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2133
|
+
return process.env.NODE_ENV !== "production" && ue.warn(
|
|
2136
2134
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2137
2135
|
), null;
|
|
2138
|
-
if (a.settings && a.settings.mode ===
|
|
2136
|
+
if (a.settings && a.settings.mode === Ne.scopedHash) {
|
|
2139
2137
|
const f = l.get("$widget").name;
|
|
2140
2138
|
d = vt(d, f);
|
|
2141
2139
|
}
|
|
2142
|
-
return u.as ? /* @__PURE__ */ i(fn, { ...u, as: u.as, children: s }) : /* @__PURE__ */ i(
|
|
2140
|
+
return u.as ? /* @__PURE__ */ i(fn, { ...u, as: u.as, children: s }) : /* @__PURE__ */ i(he, { ...u, to: d, children: s });
|
|
2143
2141
|
}
|
|
2144
|
-
), fn =
|
|
2145
|
-
let
|
|
2142
|
+
), fn = p.span``;
|
|
2143
|
+
let Xe = !1;
|
|
2146
2144
|
const mn = (e) => {
|
|
2147
|
-
|
|
2148
|
-
}, jo = () =>
|
|
2145
|
+
Xe = e;
|
|
2146
|
+
}, jo = () => Xe, we = D(
|
|
2149
2147
|
({
|
|
2150
2148
|
className: e,
|
|
2151
2149
|
disabled: t = !1,
|
|
2152
2150
|
tabIndex: n = 0,
|
|
2153
|
-
onClick:
|
|
2151
|
+
onClick: r = () => {
|
|
2154
2152
|
},
|
|
2155
|
-
onKeyDown:
|
|
2153
|
+
onKeyDown: o = () => {
|
|
2156
2154
|
},
|
|
2157
2155
|
title: s,
|
|
2158
2156
|
as: c,
|
|
@@ -2162,8 +2160,8 @@ const mn = (e) => {
|
|
|
2162
2160
|
routeName: d,
|
|
2163
2161
|
params: u,
|
|
2164
2162
|
...f
|
|
2165
|
-
},
|
|
2166
|
-
var
|
|
2163
|
+
}, C) => {
|
|
2164
|
+
var H, T;
|
|
2167
2165
|
const m = {
|
|
2168
2166
|
title: s,
|
|
2169
2167
|
role: d === "index" || d === "contact-method" || t ? "button" : void 0,
|
|
@@ -2171,27 +2169,27 @@ const mn = (e) => {
|
|
|
2171
2169
|
disabled: t,
|
|
2172
2170
|
as: c,
|
|
2173
2171
|
tabIndex: n,
|
|
2174
|
-
className:
|
|
2172
|
+
className: S(e, "humany-link", [
|
|
2175
2173
|
!!t,
|
|
2176
2174
|
"humany-disabled"
|
|
2177
2175
|
]),
|
|
2178
|
-
onClick: (
|
|
2179
|
-
if (
|
|
2180
|
-
|
|
2176
|
+
onClick: (N) => {
|
|
2177
|
+
if (N.persist(), t) {
|
|
2178
|
+
N.preventDefault();
|
|
2181
2179
|
return;
|
|
2182
2180
|
}
|
|
2183
|
-
|
|
2181
|
+
r(N);
|
|
2184
2182
|
},
|
|
2185
|
-
onKeyDown: (
|
|
2186
|
-
if (
|
|
2187
|
-
|
|
2183
|
+
onKeyDown: (N) => {
|
|
2184
|
+
if (N.persist(), N.key === "Enter" && N.target.closest(".humany-guide-category-tree") && mn(!0), t) {
|
|
2185
|
+
N.key !== "Tab" && N.preventDefault();
|
|
2188
2186
|
return;
|
|
2189
2187
|
}
|
|
2190
|
-
|
|
2188
|
+
o(N);
|
|
2191
2189
|
}
|
|
2192
2190
|
};
|
|
2193
2191
|
f["data-client-name"] === "custom.link" && (m.role = "link");
|
|
2194
|
-
const
|
|
2192
|
+
const k = B().get("$settings"), y = t && ((T = (H = k == null ? void 0 : k.data) == null ? void 0 : H.accessibility) == null ? void 0 : T.disableInactiveLink), $ = f.description || "<p></p>";
|
|
2195
2193
|
return y ? /* @__PURE__ */ b(gn, { className: "disabled-link", children: [
|
|
2196
2194
|
/* @__PURE__ */ i("div", { className: "icon-placeholder" }),
|
|
2197
2195
|
/* @__PURE__ */ b("div", { className: "humany-contact-link-rich-content", children: [
|
|
@@ -2200,7 +2198,7 @@ const mn = (e) => {
|
|
|
2200
2198
|
"div",
|
|
2201
2199
|
{
|
|
2202
2200
|
className: "inner-span",
|
|
2203
|
-
dangerouslySetInnerHTML: { __html:
|
|
2201
|
+
dangerouslySetInnerHTML: { __html: $ }
|
|
2204
2202
|
}
|
|
2205
2203
|
)
|
|
2206
2204
|
] })
|
|
@@ -2211,7 +2209,7 @@ const mn = (e) => {
|
|
|
2211
2209
|
params: u,
|
|
2212
2210
|
...m,
|
|
2213
2211
|
...z(f),
|
|
2214
|
-
ref:
|
|
2212
|
+
ref: C,
|
|
2215
2213
|
children: a
|
|
2216
2214
|
}
|
|
2217
2215
|
) : /* @__PURE__ */ i(
|
|
@@ -2221,12 +2219,12 @@ const mn = (e) => {
|
|
|
2221
2219
|
target: l,
|
|
2222
2220
|
...m,
|
|
2223
2221
|
...z(f),
|
|
2224
|
-
ref:
|
|
2222
|
+
ref: C,
|
|
2225
2223
|
children: a
|
|
2226
2224
|
}
|
|
2227
2225
|
);
|
|
2228
2226
|
}
|
|
2229
|
-
), gn =
|
|
2227
|
+
), gn = p.div`
|
|
2230
2228
|
display: flex;
|
|
2231
2229
|
opacity: 0.7;
|
|
2232
2230
|
.inner-span {
|
|
@@ -2246,32 +2244,32 @@ const mn = (e) => {
|
|
|
2246
2244
|
vertical-align: bottom;
|
|
2247
2245
|
color: #333333;
|
|
2248
2246
|
}
|
|
2249
|
-
`, pn =
|
|
2247
|
+
`, pn = p(hn)`
|
|
2250
2248
|
${(e) => e.disabled ? `
|
|
2251
2249
|
pointer-events: none;
|
|
2252
2250
|
opacity: .7;
|
|
2253
2251
|
` : "cursor: pointer;"}
|
|
2254
|
-
`, Cn =
|
|
2252
|
+
`, Cn = p.a`
|
|
2255
2253
|
${(e) => e.disabled ? `
|
|
2256
2254
|
pointer-events: none;
|
|
2257
2255
|
opacity: .7;
|
|
2258
2256
|
` : "cursor: pointer;"}
|
|
2259
|
-
`,
|
|
2257
|
+
`, _e = ({
|
|
2260
2258
|
visible: e,
|
|
2261
2259
|
duration: t = 500,
|
|
2262
2260
|
children: n,
|
|
2263
|
-
onClick:
|
|
2261
|
+
onClick: r = () => {
|
|
2264
2262
|
},
|
|
2265
|
-
...
|
|
2263
|
+
...o
|
|
2266
2264
|
}) => {
|
|
2267
|
-
const s =
|
|
2265
|
+
const s = M(), c = E(
|
|
2268
2266
|
(h) => {
|
|
2269
|
-
h.target === s.current &&
|
|
2267
|
+
h.target === s.current && r(h);
|
|
2270
2268
|
},
|
|
2271
|
-
[
|
|
2269
|
+
[r]
|
|
2272
2270
|
);
|
|
2273
2271
|
return /* @__PURE__ */ i(
|
|
2274
|
-
|
|
2272
|
+
We,
|
|
2275
2273
|
{
|
|
2276
2274
|
in: e,
|
|
2277
2275
|
className: "humany-overlay-transition",
|
|
@@ -2285,13 +2283,13 @@ const mn = (e) => {
|
|
|
2285
2283
|
duration: t,
|
|
2286
2284
|
ref: s,
|
|
2287
2285
|
onClick: c,
|
|
2288
|
-
...
|
|
2286
|
+
...o,
|
|
2289
2287
|
children: n
|
|
2290
2288
|
}
|
|
2291
2289
|
) })
|
|
2292
2290
|
}
|
|
2293
2291
|
);
|
|
2294
|
-
}, yn =
|
|
2292
|
+
}, yn = p.div`
|
|
2295
2293
|
background: rgba(0, 0, 0, 0.6);
|
|
2296
2294
|
min-width: 100%;
|
|
2297
2295
|
min-height: 100%;
|
|
@@ -2321,11 +2319,11 @@ const mn = (e) => {
|
|
|
2321
2319
|
&.humany-overlay-transition-exit-done {
|
|
2322
2320
|
opacity: 0;
|
|
2323
2321
|
}
|
|
2324
|
-
`, bn =
|
|
2322
|
+
`, bn = Ve`
|
|
2325
2323
|
100% {
|
|
2326
2324
|
transform: rotate(360deg);
|
|
2327
2325
|
}
|
|
2328
|
-
`, vn =
|
|
2326
|
+
`, vn = Ve`
|
|
2329
2327
|
0% {
|
|
2330
2328
|
stroke-dasharray: 1, 200;
|
|
2331
2329
|
stroke-dashoffset: 0;
|
|
@@ -2338,7 +2336,7 @@ const mn = (e) => {
|
|
|
2338
2336
|
stroke-dasharray: 89, 200;
|
|
2339
2337
|
stroke-dashoffset: -124px;
|
|
2340
2338
|
}
|
|
2341
|
-
`, xn =
|
|
2339
|
+
`, xn = p.svg`
|
|
2342
2340
|
animation: ${bn} 2s linear infinite;
|
|
2343
2341
|
height: 100%;
|
|
2344
2342
|
transform-origin: center center;
|
|
@@ -2350,7 +2348,7 @@ const mn = (e) => {
|
|
|
2350
2348
|
right: 0;
|
|
2351
2349
|
margin: auto;
|
|
2352
2350
|
transition: 200ms ease-out opacity;
|
|
2353
|
-
`, wn =
|
|
2351
|
+
`, wn = p.div`
|
|
2354
2352
|
position: absolute;
|
|
2355
2353
|
top: 0;
|
|
2356
2354
|
bottom: 0;
|
|
@@ -2368,7 +2366,7 @@ const mn = (e) => {
|
|
|
2368
2366
|
svg {
|
|
2369
2367
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2370
2368
|
}
|
|
2371
|
-
`, kn =
|
|
2369
|
+
`, kn = p.div`
|
|
2372
2370
|
position: relative;
|
|
2373
2371
|
margin: 0 auto;
|
|
2374
2372
|
width: 100px;
|
|
@@ -2377,7 +2375,7 @@ const mn = (e) => {
|
|
|
2377
2375
|
display: block;
|
|
2378
2376
|
padding-top: 100%;
|
|
2379
2377
|
}
|
|
2380
|
-
`, $n =
|
|
2378
|
+
`, $n = p.circle`
|
|
2381
2379
|
stroke-dasharray: 1, 200;
|
|
2382
2380
|
stroke-dashoffset: 0;
|
|
2383
2381
|
animation: ${vn} 1.5s ease-in-out infinite;
|
|
@@ -2390,7 +2388,7 @@ const mn = (e) => {
|
|
|
2390
2388
|
`, Ln = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
|
|
2391
2389
|
wn,
|
|
2392
2390
|
{
|
|
2393
|
-
className:
|
|
2391
|
+
className: S("humany-loader", e),
|
|
2394
2392
|
"data-loading": t,
|
|
2395
2393
|
children: /* @__PURE__ */ i(kn, { className: "humany-spinner", children: /* @__PURE__ */ i(xn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
|
|
2396
2394
|
$n,
|
|
@@ -2408,28 +2406,28 @@ const mn = (e) => {
|
|
|
2408
2406
|
zoomState: e,
|
|
2409
2407
|
image: t,
|
|
2410
2408
|
changeZoom: n,
|
|
2411
|
-
...
|
|
2409
|
+
...r
|
|
2412
2410
|
}) => {
|
|
2413
2411
|
var m;
|
|
2414
|
-
const
|
|
2415
|
-
const
|
|
2416
|
-
if (
|
|
2417
|
-
const
|
|
2418
|
-
return y >= 1 &&
|
|
2412
|
+
const o = M(null), [s, c] = w(!1), [h, a] = w(!1), { width: l, height: d, ...u } = r.style || {}, f = E(() => {
|
|
2413
|
+
const g = o.current;
|
|
2414
|
+
if (g) {
|
|
2415
|
+
const k = window.innerWidth / g.naturalWidth, y = window.innerHeight / g.naturalHeight, $ = Math.min(k, y);
|
|
2416
|
+
return y >= 1 && k >= 1 ? 1 : $;
|
|
2419
2417
|
}
|
|
2420
2418
|
return 1;
|
|
2421
|
-
}, [s, t.src]),
|
|
2422
|
-
const
|
|
2423
|
-
if (
|
|
2419
|
+
}, [s, t.src]), C = re(() => {
|
|
2420
|
+
const g = o.current;
|
|
2421
|
+
if (g && s) {
|
|
2424
2422
|
if (!h) {
|
|
2425
2423
|
a(!0);
|
|
2426
|
-
const
|
|
2427
|
-
n(
|
|
2424
|
+
const k = f();
|
|
2425
|
+
n(k);
|
|
2428
2426
|
}
|
|
2429
|
-
return
|
|
2427
|
+
return g.naturalWidth >= g.naturalHeight ? [`${e * g.naturalWidth}px`, "auto"] : ["auto", `${e * g.naturalHeight}px`];
|
|
2430
2428
|
}
|
|
2431
2429
|
return null;
|
|
2432
|
-
}, [e,
|
|
2430
|
+
}, [e, o, s, t.src]);
|
|
2433
2431
|
return v(() => (c(!1), function() {
|
|
2434
2432
|
a(!1);
|
|
2435
2433
|
}), [t.src]), /* @__PURE__ */ b(U, { children: [
|
|
@@ -2440,11 +2438,11 @@ const mn = (e) => {
|
|
|
2440
2438
|
onLoad: () => {
|
|
2441
2439
|
c(!0);
|
|
2442
2440
|
},
|
|
2443
|
-
ref:
|
|
2444
|
-
imageSize:
|
|
2441
|
+
ref: o,
|
|
2442
|
+
imageSize: C,
|
|
2445
2443
|
draggable: "false",
|
|
2446
|
-
...
|
|
2447
|
-
alt: ((m =
|
|
2444
|
+
...r,
|
|
2445
|
+
alt: ((m = r.alt) == null ? void 0 : m.toString()) || "",
|
|
2448
2446
|
style: u,
|
|
2449
2447
|
src: t.src,
|
|
2450
2448
|
loaded: s
|
|
@@ -2452,14 +2450,14 @@ const mn = (e) => {
|
|
|
2452
2450
|
),
|
|
2453
2451
|
/* @__PURE__ */ i(Hn, {})
|
|
2454
2452
|
] });
|
|
2455
|
-
}, Sn =
|
|
2453
|
+
}, Sn = p(Ln)`
|
|
2456
2454
|
svg circle {
|
|
2457
2455
|
stroke: #ffffff;
|
|
2458
2456
|
}
|
|
2459
|
-
`, En =
|
|
2457
|
+
`, En = p.img`
|
|
2460
2458
|
transform: none;
|
|
2461
2459
|
|
|
2462
|
-
${(e) => e.imageSize &&
|
|
2460
|
+
${(e) => e.imageSize && L`
|
|
2463
2461
|
width: ${e.imageSize[0]};
|
|
2464
2462
|
height: ${e.imageSize[1]};
|
|
2465
2463
|
display: inline-block;
|
|
@@ -2467,58 +2465,58 @@ const mn = (e) => {
|
|
|
2467
2465
|
vertical-align: middle;
|
|
2468
2466
|
position: relative;
|
|
2469
2467
|
${(e) => !e.loaded && "display:none;"}
|
|
2470
|
-
`, Hn =
|
|
2468
|
+
`, Hn = p.div`
|
|
2471
2469
|
height: 100%;
|
|
2472
2470
|
display: inline-block;
|
|
2473
2471
|
vertical-align: middle;
|
|
2474
2472
|
`, Rn = () => {
|
|
2475
|
-
const e =
|
|
2473
|
+
const e = M(), [t, n] = w(!0), r = E(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2476
2474
|
n(!1);
|
|
2477
2475
|
}, 3e3), () => {
|
|
2478
2476
|
e.current && clearTimeout(e.current);
|
|
2479
2477
|
}), [t, e]);
|
|
2480
|
-
return [t,
|
|
2478
|
+
return [t, r];
|
|
2481
2479
|
}, Tn = ({ attrs: e, htmlBody: t }) => {
|
|
2482
|
-
var
|
|
2483
|
-
const n = j("
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
}, [
|
|
2480
|
+
var Ee;
|
|
2481
|
+
const n = j("ArrowLeft"), r = j("ArrowRight"), [o, s] = w(1), [c, h] = w({ top: 0, left: 0, x: 0, y: 0 }), [a, l] = w(!1), [d, u] = Rn(), [f, C] = w(null), [m, g] = w(null), k = M(null), y = M(null), $ = M(null), H = M(null), T = M(null), [N, Qe] = w(null);
|
|
2482
|
+
j("Escape", (x) => {
|
|
2483
|
+
f !== null && (se(x), C(null));
|
|
2484
|
+
}), v(() => {
|
|
2485
|
+
s(1);
|
|
2486
|
+
}, [f]), v(() => {
|
|
2489
2487
|
var I, ee;
|
|
2490
|
-
if (
|
|
2488
|
+
if (f === null || y.current === null)
|
|
2491
2489
|
return;
|
|
2492
|
-
const x =
|
|
2493
|
-
if (
|
|
2494
|
-
J && V ? V.focus() : G &&
|
|
2495
|
-
else if (
|
|
2496
|
-
G &&
|
|
2490
|
+
const x = y.current.firstElementChild, R = (I = $.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = $.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2491
|
+
if (m === "Right")
|
|
2492
|
+
J && V ? V.focus() : G && R && R.focus();
|
|
2493
|
+
else if (m === "Left")
|
|
2494
|
+
G && R ? R.focus() : J && V && V.focus();
|
|
2497
2495
|
else {
|
|
2498
2496
|
if (!x)
|
|
2499
2497
|
return;
|
|
2500
2498
|
x.focus();
|
|
2501
2499
|
}
|
|
2502
|
-
}, [
|
|
2503
|
-
if (
|
|
2504
|
-
if (G) return
|
|
2500
|
+
}, [f, y, $, m]), v(() => {
|
|
2501
|
+
if (n) {
|
|
2502
|
+
if (G) return Me();
|
|
2505
2503
|
} else if (r && J)
|
|
2506
|
-
return
|
|
2507
|
-
}, [
|
|
2508
|
-
var
|
|
2509
|
-
const x = ((V = (
|
|
2504
|
+
return Se();
|
|
2505
|
+
}, [n, r]), v(() => {
|
|
2506
|
+
var R, V;
|
|
2507
|
+
const x = ((V = (R = T.current) == null ? void 0 : R.style) == null ? void 0 : V.float) || "";
|
|
2510
2508
|
(x === "left" || x === "right") && Qe(x);
|
|
2511
2509
|
}, []);
|
|
2512
2510
|
const A = re(() => {
|
|
2513
2511
|
const x = document.createElement("div");
|
|
2514
2512
|
x.innerHTML = t || "";
|
|
2515
|
-
const
|
|
2516
|
-
return Array.from(
|
|
2513
|
+
const R = x.getElementsByTagName("img");
|
|
2514
|
+
return Array.from(R).reduce(
|
|
2517
2515
|
(I, ee) => {
|
|
2518
|
-
const
|
|
2519
|
-
if (
|
|
2516
|
+
const He = ee.getAttribute("src");
|
|
2517
|
+
if (He) {
|
|
2520
2518
|
const rt = {
|
|
2521
|
-
src:
|
|
2519
|
+
src: He
|
|
2522
2520
|
};
|
|
2523
2521
|
I.push(rt);
|
|
2524
2522
|
}
|
|
@@ -2526,73 +2524,73 @@ const mn = (e) => {
|
|
|
2526
2524
|
},
|
|
2527
2525
|
[]
|
|
2528
2526
|
);
|
|
2529
|
-
}, [t]),
|
|
2527
|
+
}, [t]), $e = E(() => {
|
|
2530
2528
|
const { src: x } = e;
|
|
2531
2529
|
if (x) {
|
|
2532
|
-
const
|
|
2533
|
-
|
|
2530
|
+
const R = A.findIndex((V, I) => V.src === x);
|
|
2531
|
+
C(R);
|
|
2534
2532
|
}
|
|
2535
|
-
}, [A, e]), Ge =
|
|
2536
|
-
|
|
2537
|
-
}, []),
|
|
2533
|
+
}, [A, e]), Ge = E((x) => {
|
|
2534
|
+
C(null);
|
|
2535
|
+
}, []), Le = E(
|
|
2538
2536
|
(x) => {
|
|
2539
|
-
|
|
2537
|
+
s(x ? o + o * 0.25 : o - o * 0.25);
|
|
2540
2538
|
},
|
|
2541
|
-
[
|
|
2542
|
-
), Je =
|
|
2543
|
-
if (
|
|
2544
|
-
const { src: x } = A[
|
|
2539
|
+
[s, o]
|
|
2540
|
+
), Je = E(() => {
|
|
2541
|
+
if (f !== null) {
|
|
2542
|
+
const { src: x } = A[f];
|
|
2545
2543
|
x && window.open(x, "_self");
|
|
2546
2544
|
}
|
|
2547
|
-
}, [A,
|
|
2545
|
+
}, [A, f]), et = E(
|
|
2548
2546
|
(x) => {
|
|
2549
|
-
const
|
|
2550
|
-
|
|
2551
|
-
top:
|
|
2552
|
-
left:
|
|
2547
|
+
const R = H.current;
|
|
2548
|
+
R && (h({
|
|
2549
|
+
top: R.scrollTop,
|
|
2550
|
+
left: R.scrollLeft,
|
|
2553
2551
|
x: x.clientX,
|
|
2554
2552
|
y: x.clientY
|
|
2555
|
-
}),
|
|
2553
|
+
}), l(!0));
|
|
2556
2554
|
},
|
|
2557
|
-
[
|
|
2558
|
-
), tt =
|
|
2555
|
+
[H]
|
|
2556
|
+
), tt = E(
|
|
2559
2557
|
(x) => {
|
|
2560
|
-
const
|
|
2561
|
-
if (
|
|
2562
|
-
const V = x.clientX -
|
|
2563
|
-
|
|
2558
|
+
const R = H.current;
|
|
2559
|
+
if (R && a) {
|
|
2560
|
+
const V = x.clientX - c.x, I = x.clientY - c.y;
|
|
2561
|
+
R.scrollTop = c.top - I, R.scrollLeft = c.left - V;
|
|
2564
2562
|
}
|
|
2565
2563
|
},
|
|
2566
|
-
[
|
|
2564
|
+
[a, c]
|
|
2567
2565
|
), nt = (x) => {
|
|
2568
|
-
x.preventDefault(),
|
|
2566
|
+
x.preventDefault(), l(!1);
|
|
2569
2567
|
}, ot = re(() => {
|
|
2570
|
-
if (
|
|
2571
|
-
const x =
|
|
2568
|
+
if (H.current) {
|
|
2569
|
+
const x = H.current.getElementsByTagName("img");
|
|
2572
2570
|
if (x && x.length) {
|
|
2573
|
-
const
|
|
2574
|
-
return
|
|
2571
|
+
const R = x[0];
|
|
2572
|
+
return R.width > window.innerWidth || R.height > window.innerHeight;
|
|
2575
2573
|
}
|
|
2576
2574
|
}
|
|
2577
2575
|
return !1;
|
|
2578
|
-
}, [
|
|
2579
|
-
|
|
2580
|
-
},
|
|
2581
|
-
|
|
2582
|
-
}, G =
|
|
2576
|
+
}, [H, o]), Me = () => {
|
|
2577
|
+
f !== null && (g("Left"), C(f - 1));
|
|
2578
|
+
}, Se = () => {
|
|
2579
|
+
f !== null && (g("Right"), C(f + 1));
|
|
2580
|
+
}, G = f !== null && f > 0 && A.length > 1, J = f !== null && A.length - 1 > f;
|
|
2583
2581
|
return /* @__PURE__ */ b(U, { children: [
|
|
2584
|
-
/* @__PURE__ */ i(
|
|
2582
|
+
/* @__PURE__ */ i(_e, { visible: f !== null, onClick: Ge, children: /* @__PURE__ */ b(
|
|
2585
2583
|
In,
|
|
2586
2584
|
{
|
|
2587
|
-
onMouseDown: () =>
|
|
2588
|
-
onMouseMove: () =>
|
|
2589
|
-
onTouchStart: () =>
|
|
2590
|
-
onKeyDown: () =>
|
|
2585
|
+
onMouseDown: () => u(),
|
|
2586
|
+
onMouseMove: () => u(),
|
|
2587
|
+
onTouchStart: () => u(),
|
|
2588
|
+
onKeyDown: () => u(),
|
|
2591
2589
|
children: [
|
|
2592
|
-
/* @__PURE__ */ i(On, { show:
|
|
2590
|
+
/* @__PURE__ */ i(On, { show: d.toString(), children: /* @__PURE__ */ i(
|
|
2593
2591
|
Bn,
|
|
2594
2592
|
{
|
|
2595
|
-
ref:
|
|
2593
|
+
ref: y,
|
|
2596
2594
|
buttons: [
|
|
2597
2595
|
{
|
|
2598
2596
|
id: "download",
|
|
@@ -2602,7 +2600,7 @@ const mn = (e) => {
|
|
|
2602
2600
|
},
|
|
2603
2601
|
{
|
|
2604
2602
|
id: "lightbox-close",
|
|
2605
|
-
onClick: () =>
|
|
2603
|
+
onClick: () => C(null),
|
|
2606
2604
|
icon: "lightbox-close",
|
|
2607
2605
|
ariaLabel: "Close"
|
|
2608
2606
|
}
|
|
@@ -2612,25 +2610,25 @@ const mn = (e) => {
|
|
|
2612
2610
|
/* @__PURE__ */ i(
|
|
2613
2611
|
Fn,
|
|
2614
2612
|
{
|
|
2615
|
-
scrolling:
|
|
2613
|
+
scrolling: a.toString(),
|
|
2616
2614
|
isDraggable: ot.toString(),
|
|
2617
|
-
ref:
|
|
2615
|
+
ref: H,
|
|
2618
2616
|
onMouseMove: tt,
|
|
2619
2617
|
onMouseDown: et,
|
|
2620
2618
|
onMouseUp: nt,
|
|
2621
|
-
children:
|
|
2619
|
+
children: f !== null && /* @__PURE__ */ i(
|
|
2622
2620
|
Mn,
|
|
2623
2621
|
{
|
|
2624
2622
|
changeZoom: (x) => {
|
|
2625
|
-
|
|
2623
|
+
s(x);
|
|
2626
2624
|
},
|
|
2627
|
-
zoomState:
|
|
2625
|
+
zoomState: o,
|
|
2628
2626
|
...e,
|
|
2629
2627
|
style: {
|
|
2630
2628
|
...e.style || {},
|
|
2631
2629
|
float: "none"
|
|
2632
2630
|
},
|
|
2633
|
-
image: A[
|
|
2631
|
+
image: A[f]
|
|
2634
2632
|
}
|
|
2635
2633
|
)
|
|
2636
2634
|
}
|
|
@@ -2638,12 +2636,12 @@ const mn = (e) => {
|
|
|
2638
2636
|
/* @__PURE__ */ i(
|
|
2639
2637
|
Wn,
|
|
2640
2638
|
{
|
|
2641
|
-
ref:
|
|
2642
|
-
show:
|
|
2639
|
+
ref: $,
|
|
2640
|
+
show: d.toString(),
|
|
2643
2641
|
buttons: [
|
|
2644
2642
|
{
|
|
2645
2643
|
id: "previous",
|
|
2646
|
-
onClick:
|
|
2644
|
+
onClick: Me,
|
|
2647
2645
|
icon: "caret-left",
|
|
2648
2646
|
circle: !0,
|
|
2649
2647
|
show: G,
|
|
@@ -2652,7 +2650,7 @@ const mn = (e) => {
|
|
|
2652
2650
|
},
|
|
2653
2651
|
{
|
|
2654
2652
|
id: "next",
|
|
2655
|
-
onClick:
|
|
2653
|
+
onClick: Se,
|
|
2656
2654
|
icon: "caret-right",
|
|
2657
2655
|
circle: !0,
|
|
2658
2656
|
show: J,
|
|
@@ -2662,20 +2660,20 @@ const mn = (e) => {
|
|
|
2662
2660
|
]
|
|
2663
2661
|
}
|
|
2664
2662
|
),
|
|
2665
|
-
/* @__PURE__ */ b(An, { show:
|
|
2663
|
+
/* @__PURE__ */ b(An, { show: d.toString(), children: [
|
|
2666
2664
|
/* @__PURE__ */ i(
|
|
2667
2665
|
Vn,
|
|
2668
2666
|
{
|
|
2669
2667
|
buttons: [
|
|
2670
2668
|
{
|
|
2671
2669
|
id: "zoom-out",
|
|
2672
|
-
onClick: () =>
|
|
2670
|
+
onClick: () => Le(!1),
|
|
2673
2671
|
icon: "zoom-out",
|
|
2674
2672
|
ariaLabel: "Zoom out"
|
|
2675
2673
|
},
|
|
2676
2674
|
{
|
|
2677
2675
|
id: "zoom-in",
|
|
2678
|
-
onClick: () =>
|
|
2676
|
+
onClick: () => Le(!0),
|
|
2679
2677
|
icon: "zoom-in",
|
|
2680
2678
|
ariaLabel: "Zoom in"
|
|
2681
2679
|
}
|
|
@@ -2683,7 +2681,7 @@ const mn = (e) => {
|
|
|
2683
2681
|
}
|
|
2684
2682
|
),
|
|
2685
2683
|
/* @__PURE__ */ b(Zn, { variant: "span", children: [
|
|
2686
|
-
Math.trunc(
|
|
2684
|
+
Math.trunc(o * 100),
|
|
2687
2685
|
"%"
|
|
2688
2686
|
] })
|
|
2689
2687
|
] })
|
|
@@ -2693,34 +2691,34 @@ const mn = (e) => {
|
|
|
2693
2691
|
/* @__PURE__ */ i(
|
|
2694
2692
|
Nn,
|
|
2695
2693
|
{
|
|
2696
|
-
ref:
|
|
2697
|
-
onClick:
|
|
2694
|
+
ref: k,
|
|
2695
|
+
onClick: $e,
|
|
2698
2696
|
onKeyDown: (x) => {
|
|
2699
|
-
x.key === "Enter" && (x.preventDefault(),
|
|
2697
|
+
x.key === "Enter" && (x.preventDefault(), $e());
|
|
2700
2698
|
},
|
|
2701
|
-
alignment:
|
|
2699
|
+
alignment: N,
|
|
2702
2700
|
tabIndex: 0,
|
|
2703
2701
|
children: /* @__PURE__ */ i(
|
|
2704
2702
|
Pn,
|
|
2705
2703
|
{
|
|
2706
2704
|
...e,
|
|
2707
|
-
alt: ((
|
|
2708
|
-
ref:
|
|
2705
|
+
alt: ((Ee = e.alt) == null ? void 0 : Ee.toString()) || "",
|
|
2706
|
+
ref: T
|
|
2709
2707
|
}
|
|
2710
2708
|
)
|
|
2711
2709
|
}
|
|
2712
2710
|
)
|
|
2713
2711
|
] });
|
|
2714
|
-
},
|
|
2715
|
-
({ show: e = "true", buttons: t, className: n },
|
|
2712
|
+
}, ke = D(
|
|
2713
|
+
({ show: e = "true", buttons: t, className: n }, r) => /* @__PURE__ */ i(
|
|
2716
2714
|
Dn,
|
|
2717
2715
|
{
|
|
2718
|
-
ref:
|
|
2716
|
+
ref: r,
|
|
2719
2717
|
show: e,
|
|
2720
|
-
className:
|
|
2718
|
+
className: S("humany-button-set", n),
|
|
2721
2719
|
children: t.map(
|
|
2722
2720
|
({
|
|
2723
|
-
id:
|
|
2721
|
+
id: o,
|
|
2724
2722
|
circle: s = !1,
|
|
2725
2723
|
show: c = !0,
|
|
2726
2724
|
ariaLabel: h,
|
|
@@ -2739,39 +2737,39 @@ const mn = (e) => {
|
|
|
2739
2737
|
"aria-label": h,
|
|
2740
2738
|
children: /* @__PURE__ */ i(Q, { size: 24, symbol: { type: "Svg", content: l } })
|
|
2741
2739
|
},
|
|
2742
|
-
|
|
2740
|
+
o + u.toString()
|
|
2743
2741
|
)
|
|
2744
2742
|
)
|
|
2745
2743
|
}
|
|
2746
2744
|
)
|
|
2747
|
-
),
|
|
2745
|
+
), Ue = p.div`
|
|
2748
2746
|
transition: opacity 0.3s ease 0s;
|
|
2749
2747
|
z-index: 5;
|
|
2750
|
-
${(e) => e.show === "true" ? "opacity: 1;" :
|
|
2748
|
+
${(e) => e.show === "true" ? "opacity: 1;" : L`
|
|
2751
2749
|
opacity: 0;
|
|
2752
2750
|
pointer-events: none;
|
|
2753
2751
|
`}
|
|
2754
|
-
`, Nn =
|
|
2752
|
+
`, Nn = p(we)`
|
|
2755
2753
|
display: inline-block !important;
|
|
2756
2754
|
|
|
2757
|
-
${(e) => (e.alignment === "right" || e.alignment === "left") &&
|
|
2755
|
+
${(e) => (e.alignment === "right" || e.alignment === "left") && L`
|
|
2758
2756
|
float: ${e.alignment};
|
|
2759
2757
|
`}
|
|
2760
|
-
`, Dn =
|
|
2758
|
+
`, Dn = p(Ue)`
|
|
2761
2759
|
position: fixed;
|
|
2762
2760
|
display: flex;
|
|
2763
2761
|
gap: ${(e) => {
|
|
2764
2762
|
var t;
|
|
2765
2763
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2766
2764
|
}};
|
|
2767
|
-
`,
|
|
2768
|
-
width: ${
|
|
2769
|
-
height: ${
|
|
2765
|
+
`, ge = "39px", zn = p(ae)`
|
|
2766
|
+
width: ${ge};
|
|
2767
|
+
height: ${ge};
|
|
2770
2768
|
display: flex;
|
|
2771
2769
|
justify-content: center;
|
|
2772
2770
|
align-items: center;
|
|
2773
2771
|
|
|
2774
|
-
${(e) => e.icon === "caret-left" &&
|
|
2772
|
+
${(e) => e.icon === "caret-left" && L`
|
|
2775
2773
|
svg {
|
|
2776
2774
|
position: relative;
|
|
2777
2775
|
left: -2px;
|
|
@@ -2780,7 +2778,7 @@ const mn = (e) => {
|
|
|
2780
2778
|
|
|
2781
2779
|
${(e) => {
|
|
2782
2780
|
var t;
|
|
2783
|
-
return e.circle === "true" ?
|
|
2781
|
+
return e.circle === "true" ? L`
|
|
2784
2782
|
background-color: #ffffff;
|
|
2785
2783
|
border-radius: 50%;
|
|
2786
2784
|
|
|
@@ -2803,7 +2801,7 @@ const mn = (e) => {
|
|
|
2803
2801
|
}
|
|
2804
2802
|
}
|
|
2805
2803
|
}
|
|
2806
|
-
` :
|
|
2804
|
+
` : L`
|
|
2807
2805
|
svg {
|
|
2808
2806
|
path,
|
|
2809
2807
|
line {
|
|
@@ -2819,17 +2817,17 @@ const mn = (e) => {
|
|
|
2819
2817
|
`;
|
|
2820
2818
|
}}
|
|
2821
2819
|
|
|
2822
|
-
${(e) => e.show === "true" ?
|
|
2820
|
+
${(e) => e.show === "true" ? L`
|
|
2823
2821
|
opacity: 0.8;
|
|
2824
2822
|
transition: opacity 0.3s ease 0s;
|
|
2825
2823
|
&:hover {
|
|
2826
2824
|
opacity: 1;
|
|
2827
2825
|
}
|
|
2828
|
-
` :
|
|
2826
|
+
` : L`
|
|
2829
2827
|
opacity: 0;
|
|
2830
2828
|
pointer-events: none;
|
|
2831
2829
|
`}
|
|
2832
|
-
`, Bn =
|
|
2830
|
+
`, Bn = p(ke)`
|
|
2833
2831
|
top: ${(e) => {
|
|
2834
2832
|
var t;
|
|
2835
2833
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2838,7 +2836,7 @@ const mn = (e) => {
|
|
|
2838
2836
|
var t;
|
|
2839
2837
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2840
2838
|
}};
|
|
2841
|
-
`, Vn =
|
|
2839
|
+
`, Vn = p(ke)`
|
|
2842
2840
|
bottom: ${(e) => {
|
|
2843
2841
|
var t;
|
|
2844
2842
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2846,11 +2844,11 @@ const mn = (e) => {
|
|
|
2846
2844
|
width: 100%;
|
|
2847
2845
|
align-items: center;
|
|
2848
2846
|
justify-content: center;
|
|
2849
|
-
`, Wn =
|
|
2847
|
+
`, Wn = p(ke)`
|
|
2850
2848
|
display: block;
|
|
2851
2849
|
button {
|
|
2852
2850
|
position: fixed;
|
|
2853
|
-
top: calc(50% - calc(${
|
|
2851
|
+
top: calc(50% - calc(${ge} / 2));
|
|
2854
2852
|
&:first-child {
|
|
2855
2853
|
left: ${(e) => {
|
|
2856
2854
|
var t;
|
|
@@ -2864,7 +2862,7 @@ const mn = (e) => {
|
|
|
2864
2862
|
}};
|
|
2865
2863
|
}
|
|
2866
2864
|
}
|
|
2867
|
-
`, Zn =
|
|
2865
|
+
`, Zn = p(X)`
|
|
2868
2866
|
position: fixed;
|
|
2869
2867
|
bottom: ${(e) => {
|
|
2870
2868
|
var t;
|
|
@@ -2883,29 +2881,29 @@ const mn = (e) => {
|
|
|
2883
2881
|
var t;
|
|
2884
2882
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2885
2883
|
}};
|
|
2886
|
-
`,
|
|
2884
|
+
`, qe = p(Ue)`
|
|
2887
2885
|
position: absolute;
|
|
2888
2886
|
width: 100vw;
|
|
2889
2887
|
height: 88px;
|
|
2890
2888
|
left: 0px;
|
|
2891
2889
|
z-index: 5;
|
|
2892
|
-
`, In =
|
|
2890
|
+
`, In = p.div`
|
|
2893
2891
|
width: 100%;
|
|
2894
|
-
`, On =
|
|
2892
|
+
`, On = p(qe)`
|
|
2895
2893
|
top: 0px;
|
|
2896
2894
|
background-image: linear-gradient(
|
|
2897
2895
|
to bottom,
|
|
2898
2896
|
rgb(34, 34, 34, 0.8),
|
|
2899
2897
|
rgba(34, 34, 34, 0)
|
|
2900
2898
|
);
|
|
2901
|
-
`, An =
|
|
2899
|
+
`, An = p(qe)`
|
|
2902
2900
|
bottom: 0px;
|
|
2903
2901
|
background-image: linear-gradient(
|
|
2904
2902
|
to top,
|
|
2905
2903
|
rgb(34, 34, 34, 0.8),
|
|
2906
2904
|
rgba(34, 34, 34, 0)
|
|
2907
2905
|
);
|
|
2908
|
-
`, Fn =
|
|
2906
|
+
`, Fn = p.div`
|
|
2909
2907
|
width: 100%;
|
|
2910
2908
|
height: 100vh;
|
|
2911
2909
|
overflow: auto;
|
|
@@ -2914,45 +2912,47 @@ const mn = (e) => {
|
|
|
2914
2912
|
white-space: nowrap;
|
|
2915
2913
|
justify-content: center;
|
|
2916
2914
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2917
|
-
`, Pn =
|
|
2915
|
+
`, Pn = p.img`
|
|
2918
2916
|
cursor: pointer;
|
|
2919
2917
|
`, jn = D(
|
|
2920
2918
|
({
|
|
2921
2919
|
className: e,
|
|
2922
2920
|
children: t,
|
|
2923
2921
|
trigger: n,
|
|
2924
|
-
onOverlayClick:
|
|
2922
|
+
onOverlayClick: r = () => {
|
|
2925
2923
|
},
|
|
2926
|
-
close:
|
|
2924
|
+
close: o = !1,
|
|
2927
2925
|
...s
|
|
2928
2926
|
}, c) => {
|
|
2929
|
-
const [h, a] =
|
|
2930
|
-
|
|
2931
|
-
(g
|
|
2932
|
-
}
|
|
2927
|
+
const [h, a] = Pe(), [l, d] = Fe(!0), u = M(), f = M(_());
|
|
2928
|
+
j("Escape", (g) => {
|
|
2929
|
+
h && (se(g), a(!1));
|
|
2930
|
+
}), v(() => {
|
|
2931
|
+
o && a(!1);
|
|
2932
|
+
}, [o]), v(() => {
|
|
2933
2933
|
h && u.current && u.current.focus();
|
|
2934
|
-
}, [h, u.current]),
|
|
2934
|
+
}, [h, u.current]), ce("router:changed", () => {
|
|
2935
2935
|
a(!1);
|
|
2936
2936
|
});
|
|
2937
|
-
const
|
|
2938
|
-
(
|
|
2939
|
-
a(!1),
|
|
2937
|
+
const C = E(
|
|
2938
|
+
(g) => {
|
|
2939
|
+
a(!1), r(g);
|
|
2940
2940
|
},
|
|
2941
|
-
[
|
|
2941
|
+
[r, a]
|
|
2942
2942
|
);
|
|
2943
|
-
|
|
2943
|
+
pe(c, () => ({
|
|
2944
2944
|
close() {
|
|
2945
2945
|
a(!1);
|
|
2946
2946
|
}
|
|
2947
2947
|
}));
|
|
2948
|
-
const
|
|
2948
|
+
const m = E(() => be(f.current, () => {
|
|
2949
2949
|
a(!1);
|
|
2950
2950
|
}), [f.current]);
|
|
2951
2951
|
return /* @__PURE__ */ b(U, { children: [
|
|
2952
|
-
/* @__PURE__ */ i(
|
|
2952
|
+
/* @__PURE__ */ i(_e, { visible: h, onClick: C, children: /* @__PURE__ */ b(
|
|
2953
2953
|
Kn,
|
|
2954
2954
|
{
|
|
2955
|
-
className:
|
|
2955
|
+
className: S(
|
|
2956
2956
|
e,
|
|
2957
2957
|
"humany-modal",
|
|
2958
2958
|
`humany-modal-${f.current}`
|
|
@@ -2963,7 +2963,7 @@ const mn = (e) => {
|
|
|
2963
2963
|
ref: d,
|
|
2964
2964
|
children: [
|
|
2965
2965
|
/* @__PURE__ */ i(
|
|
2966
|
-
|
|
2966
|
+
xe,
|
|
2967
2967
|
{
|
|
2968
2968
|
onClick: () => a(!1),
|
|
2969
2969
|
tabIndex: 0,
|
|
@@ -2976,13 +2976,13 @@ const mn = (e) => {
|
|
|
2976
2976
|
}
|
|
2977
2977
|
) }),
|
|
2978
2978
|
oe.cloneElement(n, {
|
|
2979
|
-
onClick: (
|
|
2980
|
-
a(),
|
|
2979
|
+
onClick: (g) => {
|
|
2980
|
+
a(), m();
|
|
2981
2981
|
}
|
|
2982
2982
|
})
|
|
2983
2983
|
] });
|
|
2984
2984
|
}
|
|
2985
|
-
), Kn =
|
|
2985
|
+
), Kn = p.div`
|
|
2986
2986
|
font-family: ${(e) => {
|
|
2987
2987
|
var t;
|
|
2988
2988
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2998,25 +2998,25 @@ const mn = (e) => {
|
|
|
2998
2998
|
var t;
|
|
2999
2999
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
3000
3000
|
}};
|
|
3001
|
-
${(e) =>
|
|
3001
|
+
${(e) => je(e)}
|
|
3002
3002
|
${(e) => e.css && e.css}
|
|
3003
3003
|
outline: none;
|
|
3004
3004
|
`, Ko = ({
|
|
3005
3005
|
className: e,
|
|
3006
3006
|
trigger: t,
|
|
3007
3007
|
header: n = "",
|
|
3008
|
-
text:
|
|
3009
|
-
onCancel:
|
|
3008
|
+
text: r = "",
|
|
3009
|
+
onCancel: o = () => {
|
|
3010
3010
|
},
|
|
3011
3011
|
onConfirm: s = () => {
|
|
3012
3012
|
},
|
|
3013
3013
|
cancelLabel: c = "",
|
|
3014
3014
|
confirmLabel: h = ""
|
|
3015
3015
|
}) => {
|
|
3016
|
-
const a =
|
|
3016
|
+
const a = M(), l = E(() => {
|
|
3017
3017
|
var u;
|
|
3018
|
-
|
|
3019
|
-
}, [
|
|
3018
|
+
o(), (u = a == null ? void 0 : a.current) == null || u.close();
|
|
3019
|
+
}, [o]), d = E(() => {
|
|
3020
3020
|
var u;
|
|
3021
3021
|
s(), (u = a == null ? void 0 : a.current) == null || u.close();
|
|
3022
3022
|
}, [s]);
|
|
@@ -3028,14 +3028,14 @@ const mn = (e) => {
|
|
|
3028
3028
|
ref: a,
|
|
3029
3029
|
onOverlayClick: l,
|
|
3030
3030
|
children: [
|
|
3031
|
-
n && /* @__PURE__ */ i(
|
|
3032
|
-
|
|
3031
|
+
n && /* @__PURE__ */ i(ze, { children: n }),
|
|
3032
|
+
r && /* @__PURE__ */ i(ze, { children: r }),
|
|
3033
3033
|
h && /* @__PURE__ */ i(Xn, { onClick: d, children: h }),
|
|
3034
3034
|
c && /* @__PURE__ */ i(_n, { onClick: l, children: c })
|
|
3035
3035
|
]
|
|
3036
3036
|
}
|
|
3037
3037
|
);
|
|
3038
|
-
}, Yn =
|
|
3038
|
+
}, Yn = p(jn)`
|
|
3039
3039
|
display: block;
|
|
3040
3040
|
|
|
3041
3041
|
span {
|
|
@@ -3053,7 +3053,7 @@ const mn = (e) => {
|
|
|
3053
3053
|
}};
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
`, Xn =
|
|
3056
|
+
`, Xn = p(ae)`
|
|
3057
3057
|
display: inline-block;
|
|
3058
3058
|
min-width: 50px;
|
|
3059
3059
|
${(e) => {
|
|
@@ -3083,7 +3083,7 @@ const mn = (e) => {
|
|
|
3083
3083
|
&:focus-visible {
|
|
3084
3084
|
${O}
|
|
3085
3085
|
}
|
|
3086
|
-
`, _n =
|
|
3086
|
+
`, _n = p(ae)`
|
|
3087
3087
|
display: inline-block;
|
|
3088
3088
|
min-width: 50px;
|
|
3089
3089
|
${(e) => {
|
|
@@ -3108,7 +3108,7 @@ const mn = (e) => {
|
|
|
3108
3108
|
header: e = "",
|
|
3109
3109
|
link: t = "",
|
|
3110
3110
|
suggestionHeader: n = "",
|
|
3111
|
-
suggestion:
|
|
3111
|
+
suggestion: r = ""
|
|
3112
3112
|
}) => /* @__PURE__ */ b(Un, { children: [
|
|
3113
3113
|
/* @__PURE__ */ i(qn, { children: /* @__PURE__ */ i(X, { variant: "h2", children: "404" }) }),
|
|
3114
3114
|
/* @__PURE__ */ b(Qn, { children: [
|
|
@@ -3117,22 +3117,22 @@ const mn = (e) => {
|
|
|
3117
3117
|
] }),
|
|
3118
3118
|
/* @__PURE__ */ b(Gn, { children: [
|
|
3119
3119
|
/* @__PURE__ */ i("span", { children: n }),
|
|
3120
|
-
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children:
|
|
3120
|
+
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: r }) })
|
|
3121
3121
|
] })
|
|
3122
|
-
] }), Un =
|
|
3122
|
+
] }), Un = p.div`
|
|
3123
3123
|
display: flex;
|
|
3124
3124
|
flex-wrap: wrap;
|
|
3125
|
-
`, qn =
|
|
3125
|
+
`, qn = p.div`
|
|
3126
3126
|
${(e) => ie(e)(
|
|
3127
3127
|
"h2",
|
|
3128
|
-
|
|
3128
|
+
L`
|
|
3129
3129
|
padding: 0;
|
|
3130
3130
|
margin: 0;
|
|
3131
3131
|
color: gray;
|
|
3132
3132
|
font-size: 7em;
|
|
3133
3133
|
`
|
|
3134
3134
|
)}
|
|
3135
|
-
`, Qn =
|
|
3135
|
+
`, Qn = p.div`
|
|
3136
3136
|
margin-left: ${(e) => {
|
|
3137
3137
|
var t;
|
|
3138
3138
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3142,7 +3142,7 @@ const mn = (e) => {
|
|
|
3142
3142
|
var t;
|
|
3143
3143
|
return ie(e)(
|
|
3144
3144
|
"h3",
|
|
3145
|
-
|
|
3145
|
+
L`
|
|
3146
3146
|
text-transform: uppercase;
|
|
3147
3147
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
3148
3148
|
`
|
|
@@ -3159,7 +3159,7 @@ const mn = (e) => {
|
|
|
3159
3159
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3160
3160
|
}};
|
|
3161
3161
|
}
|
|
3162
|
-
`, Gn =
|
|
3162
|
+
`, Gn = p.div`
|
|
3163
3163
|
margin-top: ${(e) => {
|
|
3164
3164
|
var t;
|
|
3165
3165
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3190,9 +3190,9 @@ class Xo extends lt {
|
|
|
3190
3190
|
return;
|
|
3191
3191
|
const n = this.props.container.get("widgetDOMElement");
|
|
3192
3192
|
this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
|
|
3193
|
-
const
|
|
3193
|
+
const r = n.querySelectorAll(
|
|
3194
3194
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3195
|
-
), s = [].filter.call(
|
|
3195
|
+
), s = [].filter.call(r, (c) => typeof window > "u" ? !0 : !(window.getComputedStyle(c).display === "none" || c.offsetWidth <= 0 && c.offsetHeight <= 0))[0];
|
|
3196
3196
|
s && s.focus();
|
|
3197
3197
|
}));
|
|
3198
3198
|
}
|
|
@@ -3213,16 +3213,16 @@ class Xo extends lt {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
}
|
|
3215
3215
|
const Jn = D(
|
|
3216
|
-
({ className: e, description: t, text: n, children:
|
|
3217
|
-
|
|
3216
|
+
({ className: e, description: t, text: n, children: r, ...o }, s) => /* @__PURE__ */ b(
|
|
3217
|
+
we,
|
|
3218
3218
|
{
|
|
3219
|
-
className:
|
|
3220
|
-
...
|
|
3219
|
+
className: S(e, "humany-text-link"),
|
|
3220
|
+
...o,
|
|
3221
3221
|
ref: s,
|
|
3222
3222
|
children: [
|
|
3223
|
-
|
|
3224
|
-
/* @__PURE__ */ i(
|
|
3225
|
-
t ? /* @__PURE__ */ i(
|
|
3223
|
+
r,
|
|
3224
|
+
/* @__PURE__ */ i(ve, { children: n }),
|
|
3225
|
+
t ? /* @__PURE__ */ i(Ye, { html: t, className: "humany-description" }) : null
|
|
3226
3226
|
]
|
|
3227
3227
|
}
|
|
3228
3228
|
)
|
|
@@ -3232,33 +3232,33 @@ const _o = ({
|
|
|
3232
3232
|
className: e = "",
|
|
3233
3233
|
format: t = "hh:mm",
|
|
3234
3234
|
timestamp: n
|
|
3235
|
-
}) => /* @__PURE__ */ i("span", { className:
|
|
3235
|
+
}) => /* @__PURE__ */ i("span", { className: S(e, "humany-timestamp"), children: to(n, t) }), Be = (e) => `0${e}`.slice(-2);
|
|
3236
3236
|
function to(e, t) {
|
|
3237
|
-
const n = new Date(e),
|
|
3237
|
+
const n = new Date(e), r = n.toTimeString().split(" ")[0].split(":"), o = r.length > 1 ? `${r[0]}:${r[1]}` : r[0], s = n.getFullYear(), c = n.getMonth() + 1, h = n.getDate(), a = `${s}-${Be(c)}-${Be(
|
|
3238
3238
|
h
|
|
3239
3239
|
)}`;
|
|
3240
|
-
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ?
|
|
3240
|
+
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? o : `${a} ${o}`;
|
|
3241
3241
|
}
|
|
3242
3242
|
const Uo = ({
|
|
3243
3243
|
className: e,
|
|
3244
3244
|
children: t,
|
|
3245
3245
|
content: n,
|
|
3246
|
-
sticky:
|
|
3247
|
-
...
|
|
3246
|
+
sticky: r = !1,
|
|
3247
|
+
...o
|
|
3248
3248
|
}) => {
|
|
3249
|
-
const [s, c] =
|
|
3250
|
-
const { target:
|
|
3251
|
-
!a.current || !
|
|
3249
|
+
const [s, c] = w(!1), h = M(_()), a = M(), [{ x: l, y: d }, u] = Ke(s, h.current, a.current), f = (m) => {
|
|
3250
|
+
const { target: g } = m;
|
|
3251
|
+
!a.current || !g || a.current !== g && !a.current.contains(g) && c(!1);
|
|
3252
3252
|
};
|
|
3253
3253
|
v(() => {
|
|
3254
|
-
if (
|
|
3254
|
+
if (r)
|
|
3255
3255
|
return window.addEventListener("click", f), () => {
|
|
3256
3256
|
window.removeEventListener("click", f);
|
|
3257
3257
|
};
|
|
3258
|
-
}, [s,
|
|
3259
|
-
const
|
|
3260
|
-
(m,
|
|
3261
|
-
u(m, a.current), c(
|
|
3258
|
+
}, [s, r]);
|
|
3259
|
+
const C = E(
|
|
3260
|
+
(m, g) => {
|
|
3261
|
+
u(m, a.current), c(g);
|
|
3262
3262
|
},
|
|
3263
3263
|
[u, c]
|
|
3264
3264
|
);
|
|
@@ -3267,29 +3267,29 @@ const Uo = ({
|
|
|
3267
3267
|
{
|
|
3268
3268
|
ref: a,
|
|
3269
3269
|
className: "humany-tooltip-trigger",
|
|
3270
|
-
onMouseEnter:
|
|
3271
|
-
onMouseLeave:
|
|
3272
|
-
onTouchEnd:
|
|
3273
|
-
onClick:
|
|
3270
|
+
onMouseEnter: r ? void 0 : (m) => C(m, !0),
|
|
3271
|
+
onMouseLeave: r ? void 0 : (m) => C(m, !1),
|
|
3272
|
+
onTouchEnd: r ? (m) => C(m, !s) : void 0,
|
|
3273
|
+
onClick: r ? (m) => C(m, !s) : void 0,
|
|
3274
3274
|
children: [
|
|
3275
3275
|
t,
|
|
3276
3276
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
3277
3277
|
oo,
|
|
3278
3278
|
{
|
|
3279
|
-
className:
|
|
3279
|
+
className: S(e, "humany-tooltip-container"),
|
|
3280
3280
|
x: l,
|
|
3281
3281
|
y: d,
|
|
3282
|
-
...
|
|
3282
|
+
...o,
|
|
3283
3283
|
children: n
|
|
3284
3284
|
}
|
|
3285
3285
|
) })
|
|
3286
3286
|
]
|
|
3287
3287
|
}
|
|
3288
3288
|
);
|
|
3289
|
-
}, no =
|
|
3289
|
+
}, no = p.div`
|
|
3290
3290
|
display: flex;
|
|
3291
3291
|
align-items: center;
|
|
3292
|
-
`, oo =
|
|
3292
|
+
`, oo = p.div`
|
|
3293
3293
|
color: #ffffff;
|
|
3294
3294
|
background: #161616;
|
|
3295
3295
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3329,8 +3329,8 @@ const Uo = ({
|
|
|
3329
3329
|
const {
|
|
3330
3330
|
in: t,
|
|
3331
3331
|
mountOnEnter: n = !0,
|
|
3332
|
-
unmountOnExit:
|
|
3333
|
-
timeout:
|
|
3332
|
+
unmountOnExit: r = !0,
|
|
3333
|
+
timeout: o,
|
|
3334
3334
|
children: s,
|
|
3335
3335
|
transitions: c
|
|
3336
3336
|
} = e, a = (() => {
|
|
@@ -3340,12 +3340,12 @@ const Uo = ({
|
|
|
3340
3340
|
return {
|
|
3341
3341
|
enter: {
|
|
3342
3342
|
transitionKeys: c,
|
|
3343
|
-
duration:
|
|
3343
|
+
duration: o ? typeof o == "number" ? o : o.enter : 200,
|
|
3344
3344
|
easing: "ease-in"
|
|
3345
3345
|
},
|
|
3346
3346
|
exit: {
|
|
3347
3347
|
transitionKeys: c,
|
|
3348
|
-
duration:
|
|
3348
|
+
duration: o ? typeof o == "number" ? o : o.exit : 200,
|
|
3349
3349
|
easing: "ease-out"
|
|
3350
3350
|
}
|
|
3351
3351
|
};
|
|
@@ -3354,12 +3354,12 @@ const Uo = ({
|
|
|
3354
3354
|
return {
|
|
3355
3355
|
enter: {
|
|
3356
3356
|
transitionKeys: (l = c.enter) == null ? void 0 : l.type,
|
|
3357
|
-
duration:
|
|
3357
|
+
duration: o ? typeof o == "number" ? o : o.enter : 200,
|
|
3358
3358
|
easing: u.easing ? u.easing : "ease-in"
|
|
3359
3359
|
},
|
|
3360
3360
|
exit: {
|
|
3361
3361
|
transitionKeys: (d = c.enter) == null ? void 0 : d.type,
|
|
3362
|
-
duration:
|
|
3362
|
+
duration: o ? typeof o == "number" ? o : o.enter : 200,
|
|
3363
3363
|
easing: f.easing ? f.easing : "ease-out"
|
|
3364
3364
|
}
|
|
3365
3365
|
};
|
|
@@ -3376,9 +3376,9 @@ const Uo = ({
|
|
|
3376
3376
|
in: t,
|
|
3377
3377
|
appear: !0,
|
|
3378
3378
|
mountOnEnter: n,
|
|
3379
|
-
unmountOnExit:
|
|
3379
|
+
unmountOnExit: r,
|
|
3380
3380
|
onEnter: (l) => l.clientHeight,
|
|
3381
|
-
children: (l) => s && s(l, a &&
|
|
3381
|
+
children: (l) => s && s(l, a && fe.compose(l, a))
|
|
3382
3382
|
}
|
|
3383
3383
|
);
|
|
3384
3384
|
}, ro = D(
|
|
@@ -3387,49 +3387,49 @@ const Uo = ({
|
|
|
3387
3387
|
children: t,
|
|
3388
3388
|
onClick: n = () => {
|
|
3389
3389
|
},
|
|
3390
|
-
widgetName:
|
|
3391
|
-
activationOptions:
|
|
3390
|
+
widgetName: r,
|
|
3391
|
+
activationOptions: o,
|
|
3392
3392
|
...s
|
|
3393
3393
|
}, c) => {
|
|
3394
3394
|
const h = B(), a = () => {
|
|
3395
3395
|
const { implementation: u } = h.get("$widget");
|
|
3396
|
-
return u.widgets.get(
|
|
3396
|
+
return u.widgets.get(r);
|
|
3397
3397
|
};
|
|
3398
3398
|
v(() => {
|
|
3399
3399
|
const u = a();
|
|
3400
|
-
return u == null || u.activate(
|
|
3400
|
+
return u == null || u.activate(o).then(() => u.invoke("attach")), () => {
|
|
3401
3401
|
u == null || u.deactivate();
|
|
3402
3402
|
};
|
|
3403
|
-
}, [
|
|
3403
|
+
}, [r]);
|
|
3404
3404
|
const l = (u) => {
|
|
3405
|
-
const f = a(),
|
|
3405
|
+
const f = a(), C = u.currentTarget;
|
|
3406
3406
|
if (f) {
|
|
3407
3407
|
const m = () => {
|
|
3408
3408
|
f.invoke("renderState").then(
|
|
3409
|
-
(
|
|
3409
|
+
(g) => g === ne.open ? f.invoke("close") : f.invoke("open")
|
|
3410
3410
|
).then(() => {
|
|
3411
3411
|
f.events.subscribeOnce(
|
|
3412
3412
|
"widget:area-rendered",
|
|
3413
|
-
(
|
|
3413
|
+
(g, k) => {
|
|
3414
3414
|
h.get(
|
|
3415
3415
|
"widgetDOMElement"
|
|
3416
3416
|
) && f.events.dispatch("widget:modal-opened", {
|
|
3417
3417
|
name: f.name,
|
|
3418
|
-
ref:
|
|
3418
|
+
ref: C
|
|
3419
3419
|
});
|
|
3420
3420
|
}
|
|
3421
3421
|
);
|
|
3422
3422
|
});
|
|
3423
3423
|
};
|
|
3424
|
-
f.state === ft.Deactivated ? f.activate(
|
|
3424
|
+
f.state === ft.Deactivated ? f.activate(o).then(() => f.invoke("attach")).then(m) : m();
|
|
3425
3425
|
}
|
|
3426
3426
|
}, d = (u) => {
|
|
3427
3427
|
u.key === "Enter" && (u.preventDefault(), l(u));
|
|
3428
3428
|
};
|
|
3429
3429
|
return /* @__PURE__ */ i(
|
|
3430
|
-
|
|
3430
|
+
we,
|
|
3431
3431
|
{
|
|
3432
|
-
className:
|
|
3432
|
+
className: S(e, "humany-widget-link"),
|
|
3433
3433
|
onKeyDown: d,
|
|
3434
3434
|
onClick: (u) => {
|
|
3435
3435
|
n(u), l(u);
|
|
@@ -3441,25 +3441,25 @@ const Uo = ({
|
|
|
3441
3441
|
);
|
|
3442
3442
|
}
|
|
3443
3443
|
), Qo = D(
|
|
3444
|
-
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n },
|
|
3445
|
-
const
|
|
3446
|
-
if (!
|
|
3447
|
-
const c =
|
|
3444
|
+
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, r) => {
|
|
3445
|
+
const o = B(), s = re(() => {
|
|
3446
|
+
if (!o) return null;
|
|
3447
|
+
const c = o.get("widgetDOMElement");
|
|
3448
3448
|
return !c || !c.childElementCount ? null : c.children[0];
|
|
3449
|
-
}, [
|
|
3449
|
+
}, [o]);
|
|
3450
3450
|
return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
|
|
3451
3451
|
io,
|
|
3452
3452
|
{
|
|
3453
|
-
className:
|
|
3453
|
+
className: S(
|
|
3454
3454
|
"humany-widget-overlay-outlet",
|
|
3455
3455
|
t
|
|
3456
3456
|
),
|
|
3457
|
-
ref:
|
|
3457
|
+
ref: r,
|
|
3458
3458
|
children: n
|
|
3459
3459
|
}
|
|
3460
3460
|
) }) : null;
|
|
3461
3461
|
}
|
|
3462
|
-
), io =
|
|
3462
|
+
), io = p.div`
|
|
3463
3463
|
background-color: #ffffff;
|
|
3464
3464
|
position: absolute;
|
|
3465
3465
|
top: 0;
|
|
@@ -3469,17 +3469,17 @@ const Uo = ({
|
|
|
3469
3469
|
z-index: 10;
|
|
3470
3470
|
width: 100%;
|
|
3471
3471
|
height: 100%;
|
|
3472
|
-
`, Go = (e, t, n,
|
|
3472
|
+
`, Go = (e, t, n, r, o) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
3473
3473
|
t,
|
|
3474
3474
|
dt(() => n)
|
|
3475
|
-
), yt(e, t,
|
|
3476
|
-
}), t,
|
|
3475
|
+
), yt(e, t, r || (() => {
|
|
3476
|
+
}), t, o)));
|
|
3477
3477
|
export {
|
|
3478
3478
|
Dt as AnchorLink,
|
|
3479
|
-
|
|
3479
|
+
ae as Button,
|
|
3480
3480
|
xo as Checkbox,
|
|
3481
3481
|
Vt as ColumnContext,
|
|
3482
|
-
|
|
3482
|
+
Ie as ComponentNodeContext,
|
|
3483
3483
|
Wt as ComponentPropertyContext,
|
|
3484
3484
|
Ko as Confirm,
|
|
3485
3485
|
Bt as ContainerContext,
|
|
@@ -3490,25 +3490,25 @@ export {
|
|
|
3490
3490
|
Oo as Dropdown,
|
|
3491
3491
|
rn as Empty,
|
|
3492
3492
|
Ao as Grid,
|
|
3493
|
-
|
|
3493
|
+
Ye as Html,
|
|
3494
3494
|
cn as Icon,
|
|
3495
3495
|
Fo as Input,
|
|
3496
3496
|
un as ItemList,
|
|
3497
3497
|
Po as ItemTree,
|
|
3498
3498
|
Tn as Lightbox,
|
|
3499
|
-
|
|
3499
|
+
we as Link,
|
|
3500
3500
|
ln as List,
|
|
3501
3501
|
jn as Modal,
|
|
3502
3502
|
Yo as NotFound,
|
|
3503
|
-
|
|
3503
|
+
_e as Overlay,
|
|
3504
3504
|
dn as Paragraph,
|
|
3505
3505
|
q as Portal,
|
|
3506
3506
|
hn as RouteLink,
|
|
3507
3507
|
Zt as RoutingContext,
|
|
3508
|
-
|
|
3508
|
+
ze as StyledText,
|
|
3509
3509
|
Q as SymbolBadge,
|
|
3510
3510
|
Xo as TabStop,
|
|
3511
|
-
|
|
3511
|
+
ve as Text,
|
|
3512
3512
|
Jn as TextLink,
|
|
3513
3513
|
_o as Timestamp,
|
|
3514
3514
|
Uo as Tooltip,
|
|
@@ -3517,15 +3517,15 @@ export {
|
|
|
3517
3517
|
ro as WidgetLink,
|
|
3518
3518
|
Qo as WidgetOverlayOutlet,
|
|
3519
3519
|
O as borderTabStyle,
|
|
3520
|
-
|
|
3520
|
+
De as browser,
|
|
3521
3521
|
Pt as buttonCss,
|
|
3522
|
-
|
|
3522
|
+
je as contentBox,
|
|
3523
3523
|
z as convertToStringAttributes,
|
|
3524
3524
|
vo as createEmptyComponent,
|
|
3525
3525
|
Go as createReactComponent,
|
|
3526
3526
|
Nt as defaultRenderInstructions,
|
|
3527
3527
|
Mt as embeddedLinkMapper,
|
|
3528
|
-
|
|
3528
|
+
Ze as filterCssProps,
|
|
3529
3529
|
St as filterCssPropsStyle,
|
|
3530
3530
|
Et as genericHashLink,
|
|
3531
3531
|
Zo as genericHtml,
|
|
@@ -3539,13 +3539,13 @@ export {
|
|
|
3539
3539
|
Vo as paddedBorderTabStyle,
|
|
3540
3540
|
Rt as processHtmlString,
|
|
3541
3541
|
mn as setHumanyIsTabbing,
|
|
3542
|
-
|
|
3542
|
+
fe as transitionComposer,
|
|
3543
3543
|
wo as useAction,
|
|
3544
3544
|
ko as useChildren,
|
|
3545
3545
|
$o as useColumns,
|
|
3546
3546
|
Lo as useComponent,
|
|
3547
|
-
|
|
3548
|
-
|
|
3547
|
+
Ce as useComponentDescriptor,
|
|
3548
|
+
ye as useComponentNode,
|
|
3549
3549
|
Y as useComponentPlatform,
|
|
3550
3550
|
B as useContainer,
|
|
3551
3551
|
Ot as useContext,
|
|
@@ -3557,15 +3557,15 @@ export {
|
|
|
3557
3557
|
Eo as useIsTabbing,
|
|
3558
3558
|
j as useKeyPress,
|
|
3559
3559
|
Ho as useLayout,
|
|
3560
|
-
|
|
3560
|
+
Oe as usePrevious,
|
|
3561
3561
|
Ro as useProperties,
|
|
3562
3562
|
To as useRenderState,
|
|
3563
3563
|
No as useRouteData,
|
|
3564
|
-
|
|
3565
|
-
|
|
3564
|
+
Ae as useRouter,
|
|
3565
|
+
Fe as useScroll,
|
|
3566
3566
|
Do as useSettings,
|
|
3567
|
-
|
|
3567
|
+
Pe as useToggle,
|
|
3568
3568
|
zo as useTransitionEnd,
|
|
3569
|
-
|
|
3570
|
-
|
|
3569
|
+
be as useUniqueMenu,
|
|
3570
|
+
ce as useWidgetEvent
|
|
3571
3571
|
};
|