@telia-ace/widget-ui 1.3.28-rc.0 → 1.3.28-rc.2
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 +69 -69
- package/index.mjs +673 -619
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var it = (e, t, n) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var te = (e, t, n) => (it(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { css as k, keyframes as
|
|
5
|
-
import { kebabCase as st, appendClassNames as
|
|
4
|
+
import { css as k, keyframes as Be } from "@emotion/react";
|
|
5
|
+
import { kebabCase as st, appendClassNames as M, uuid as _, removeNullAndUndefinedValues as Re, Logger as de } from "@telia-ace/widget-utilities";
|
|
6
6
|
import { jsx as i, jsxs as b, Fragment as U } from "react/jsx-runtime";
|
|
7
7
|
import C from "@emotion/styled";
|
|
8
|
-
import oe, { forwardRef as D, createContext as K, useContext as P, useState as w, useEffect as v, useRef as L, useCallback as
|
|
9
|
-
import { CSSTransition as Ve, Transition as
|
|
10
|
-
import { Container as
|
|
8
|
+
import oe, { forwardRef as D, createContext as K, useContext as P, useState as w, useEffect as v, useRef as L, useCallback as E, useImperativeHandle as ge, createElement as at, useMemo as re, Component as ct, lazy as lt } from "react";
|
|
9
|
+
import { CSSTransition as Ve, Transition as dt } from "react-transition-group";
|
|
10
|
+
import { Container as ut, WidgetState as ht } from "@webprovisions/platform";
|
|
11
11
|
import { ComponentPlatform as ft, asDescriptor as mt, createEventSubscriber as gt, ComponentQuery as pt, WidgetRenderState as ne, extendComponent as Ct } from "@telia-ace/widget-core";
|
|
12
12
|
import { createPortal as yt } from "react-dom";
|
|
13
13
|
import He from "htmr";
|
|
14
|
-
import { HistoryMode as
|
|
15
|
-
import { Link as
|
|
14
|
+
import { HistoryMode as Te, getSpecificWidgetPath as bt } from "@telia-ace/widget-routing";
|
|
15
|
+
import { Link as ue } from "react-router-dom";
|
|
16
16
|
const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exiting" || e === "exited", F = {
|
|
17
17
|
fade: {
|
|
18
18
|
in: "opacity: 1;",
|
|
@@ -49,17 +49,17 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
49
49
|
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = wt.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
50
50
|
if (vt(e))
|
|
51
51
|
return r && r.length > 0 ? k`
|
|
52
|
-
${r && r.length > 0 && r.map((
|
|
52
|
+
${r && r.length > 0 && r.map((u) => F[u] ? F[u].in : "")}
|
|
53
53
|
transition: ${s} ${n.duration}ms ${n.easing};
|
|
54
54
|
` : "";
|
|
55
55
|
const c = r && r.length > 0 && k`
|
|
56
|
-
${r.map((
|
|
56
|
+
${r.map((u) => F[u] ? F[u].out : "")}
|
|
57
57
|
`;
|
|
58
58
|
if (xt(e)) {
|
|
59
|
-
const
|
|
60
|
-
return
|
|
59
|
+
const u = o.transitionKeys.split(" ");
|
|
60
|
+
return u && u.length > 0 && e === "exiting" ? k`
|
|
61
61
|
${c};
|
|
62
|
-
${
|
|
62
|
+
${u.map((a) => F[a] ? F[a].out : "")}
|
|
63
63
|
transition: ${s} ${o.duration}ms ${o.easing};
|
|
64
64
|
` : c;
|
|
65
65
|
}
|
|
@@ -91,7 +91,7 @@ const vt = (e) => e === "entering" || e === "entered", xt = (e) => e === "exitin
|
|
|
91
91
|
get: (e) => F[e]
|
|
92
92
|
};
|
|
93
93
|
var fe = /* @__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))(fe || {});
|
|
94
|
-
const
|
|
94
|
+
const Ne = () => {
|
|
95
95
|
const {
|
|
96
96
|
opr: e,
|
|
97
97
|
opera: t,
|
|
@@ -100,29 +100,29 @@ const De = () => {
|
|
|
100
100
|
safari: r,
|
|
101
101
|
documentMode: s,
|
|
102
102
|
StyleMedia: c,
|
|
103
|
-
chrome:
|
|
103
|
+
chrome: u,
|
|
104
104
|
CSS: a
|
|
105
105
|
} = window, l = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
|
|
106
106
|
if (l)
|
|
107
107
|
return "opera";
|
|
108
108
|
if (n)
|
|
109
109
|
return "firefox";
|
|
110
|
-
const
|
|
111
|
-
if (/constructor/i.test(o) ||
|
|
110
|
+
const d = ((g) => g.toString() === "[object SafariRemoteNotification]")(!r || typeof r < "u" && r.pushNotification);
|
|
111
|
+
if (/constructor/i.test(o) || d)
|
|
112
112
|
return "safari";
|
|
113
113
|
const h = !!s;
|
|
114
114
|
if (h)
|
|
115
115
|
return "internet-explorer";
|
|
116
116
|
if (!h && c)
|
|
117
117
|
return "edge";
|
|
118
|
-
const f = !!
|
|
118
|
+
const f = !!u && (!!u.webstore || !!u.runtime);
|
|
119
119
|
if (f)
|
|
120
120
|
return "chrome";
|
|
121
121
|
if (f && navigator.userAgent.indexOf("Edg") !== -1)
|
|
122
122
|
return "edge-chromium";
|
|
123
123
|
if ((f || l) && a)
|
|
124
124
|
return "blink";
|
|
125
|
-
}, kt = ["string", "number"],
|
|
125
|
+
}, kt = ["string", "number"], z = (e) => Object.keys(e).reduce(
|
|
126
126
|
(t, n) => {
|
|
127
127
|
const o = typeof e[n] > "u" ? "" : e[n], r = typeof o;
|
|
128
128
|
if (kt.indexOf(r) > -1) {
|
|
@@ -133,20 +133,20 @@ const De = () => {
|
|
|
133
133
|
return t;
|
|
134
134
|
},
|
|
135
135
|
{}
|
|
136
|
-
),
|
|
136
|
+
), yo = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ i(on, { ...t }) : null, $t = (e) => new RegExp("^#", "i").test(e), Lt = (e) => ({ children: t, ...n }) => {
|
|
137
137
|
const {
|
|
138
138
|
implementation: o,
|
|
139
139
|
name: r
|
|
140
140
|
} = e.get("$widget"), { href: s = "" } = n;
|
|
141
141
|
if ($t(s))
|
|
142
|
-
return /* @__PURE__ */ i(
|
|
142
|
+
return /* @__PURE__ */ i(Nt, { smooth: !0, to: s, children: t });
|
|
143
143
|
const c = o.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), a = new RegExp(
|
|
144
144
|
`^((http[s]?:)?//)?(${c})/([^\\s]+)`
|
|
145
145
|
).exec(s);
|
|
146
146
|
if (a && a.length >= 4) {
|
|
147
147
|
const l = a[4];
|
|
148
148
|
if (o.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
149
|
-
return /* @__PURE__ */ i(
|
|
149
|
+
return /* @__PURE__ */ i(no, { widgetName: l, children: t });
|
|
150
150
|
}
|
|
151
151
|
return /* @__PURE__ */ i("a", { ...n, children: t });
|
|
152
152
|
}, We = (e) => {
|
|
@@ -165,26 +165,26 @@ const De = () => {
|
|
|
165
165
|
let n = "";
|
|
166
166
|
const o = () => {
|
|
167
167
|
n = "";
|
|
168
|
-
}, r = (
|
|
168
|
+
}, r = (d) => {
|
|
169
169
|
const h = document.getElementById(n);
|
|
170
|
-
return h !== null ? (
|
|
171
|
-
}, s = (
|
|
170
|
+
return h !== null ? (d(h), o(), !0) : !1;
|
|
171
|
+
}, s = (d) => (d.preventDefault(), o(), e.onClick && e.onClick(d), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
|
|
172
172
|
e.scroll || ((h) => e.smooth ? h.scrollIntoView({ behavior: "smooth" }) : h.scrollIntoView())
|
|
173
|
-
), !1), { scroll: c, smooth:
|
|
173
|
+
), !1), { scroll: c, smooth: u, to: a, ...l } = e;
|
|
174
174
|
return t === "a" && (l.href = "javascript:;"), /* @__PURE__ */ i(t, { ...l, onClick: s, children: e.children });
|
|
175
175
|
}, ie = (e) => (t, n) => {
|
|
176
176
|
let o = t, r = "";
|
|
177
177
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
178
178
|
o = t;
|
|
179
179
|
else {
|
|
180
|
-
const
|
|
181
|
-
if (
|
|
182
|
-
o =
|
|
180
|
+
const u = t.match(/h1|h2|h3|h4|h5|h6/);
|
|
181
|
+
if (u != null && u[0]) {
|
|
182
|
+
o = u[0];
|
|
183
183
|
const [a] = t.split(o);
|
|
184
184
|
r = a;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
const c = ((
|
|
187
|
+
const c = ((u, a, l) => l[u] ? `${a}${l[u]}` : `${a}${u}`)(
|
|
188
188
|
o,
|
|
189
189
|
r,
|
|
190
190
|
e.theme.typographyVariantMapping || {}
|
|
@@ -195,21 +195,40 @@ const De = () => {
|
|
|
195
195
|
}
|
|
196
196
|
`;
|
|
197
197
|
};
|
|
198
|
-
function Et(e
|
|
199
|
-
|
|
198
|
+
function Et(e) {
|
|
199
|
+
if (typeof e != "string")
|
|
200
|
+
throw new TypeError("Expected HTML string");
|
|
201
|
+
const t = document.createElement("div");
|
|
202
|
+
t.innerHTML = e.trim();
|
|
203
|
+
const n = Array.from(t.childNodes).map((o) => {
|
|
204
|
+
const r = o;
|
|
205
|
+
if (!r.tagName || !r.attributes)
|
|
206
|
+
return r;
|
|
207
|
+
const s = document.createElement(r.tagName);
|
|
208
|
+
return s.innerHTML = r.innerHTML, Array.from(r.attributes).forEach((c) => {
|
|
209
|
+
s.setAttribute(
|
|
210
|
+
c.localName.replace(/[^\w-]/g, ""),
|
|
211
|
+
c.value
|
|
212
|
+
);
|
|
213
|
+
}), s;
|
|
214
|
+
});
|
|
215
|
+
return Array.from(n).map((o) => o.tagName ? o.outerHTML : o.textContent).join("");
|
|
200
216
|
}
|
|
201
|
-
|
|
217
|
+
function Rt(e, t) {
|
|
218
|
+
return t ? He(Et(e), t) : He(e);
|
|
219
|
+
}
|
|
220
|
+
const Ht = (e) => (t) => /* @__PURE__ */ i(Rn, { attrs: t, htmlBody: e }), Tt = (e, t) => ({
|
|
202
221
|
transform: {
|
|
203
222
|
a: Lt(e),
|
|
204
|
-
img:
|
|
223
|
+
img: Ht(t)
|
|
205
224
|
}
|
|
206
|
-
}),
|
|
225
|
+
}), Nt = (e) => St(e, "a"), se = D(
|
|
207
226
|
({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
|
|
208
227
|
Dt,
|
|
209
228
|
{
|
|
210
229
|
type: "button",
|
|
211
|
-
className:
|
|
212
|
-
...
|
|
230
|
+
className: M(e, "humany-button"),
|
|
231
|
+
...z(n),
|
|
213
232
|
ref: o,
|
|
214
233
|
children: t
|
|
215
234
|
}
|
|
@@ -227,7 +246,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
227
246
|
line-height: normal;
|
|
228
247
|
margin: 0;
|
|
229
248
|
padding: 0;
|
|
230
|
-
`,
|
|
249
|
+
`, bo = ({
|
|
231
250
|
onChange: e = () => {
|
|
232
251
|
},
|
|
233
252
|
onEnter: t = () => {
|
|
@@ -238,23 +257,23 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
238
257
|
}) => /* @__PURE__ */ i(
|
|
239
258
|
"input",
|
|
240
259
|
{
|
|
241
|
-
className:
|
|
260
|
+
className: M(n, "humany-checkbox"),
|
|
242
261
|
onKeyDown: (s) => {
|
|
243
262
|
s.key === "Enter" && t(s);
|
|
244
263
|
},
|
|
245
264
|
autoComplete: o,
|
|
246
265
|
onChange: (s) => e(s.target.value, s.currentTarget.checked),
|
|
247
|
-
...
|
|
266
|
+
...z(r)
|
|
248
267
|
}
|
|
249
|
-
),
|
|
268
|
+
), zt = K(new ut()), Bt = K(1), Ze = K({
|
|
250
269
|
id: "",
|
|
251
270
|
type: "",
|
|
252
271
|
name: "",
|
|
253
272
|
branch: ""
|
|
254
|
-
}),
|
|
273
|
+
}), Vt = K(
|
|
255
274
|
{}
|
|
256
|
-
),
|
|
257
|
-
const n = pe().id, o =
|
|
275
|
+
), Wt = K(null), Zt = K(null), pe = () => P(Ze), B = () => P(zt), vo = (e, t) => {
|
|
276
|
+
const n = pe().id, o = B();
|
|
258
277
|
return (r, s) => {
|
|
259
278
|
(t || o).getAsync("actionResolver").then((c) => {
|
|
260
279
|
c.action(e || n, r, s);
|
|
@@ -274,7 +293,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
274
293
|
e.current = !1;
|
|
275
294
|
}), []), e;
|
|
276
295
|
}, Y = (e) => {
|
|
277
|
-
const t =
|
|
296
|
+
const t = B(), [n, o] = w(null), r = Z();
|
|
278
297
|
return v(() => {
|
|
279
298
|
ft.getInstance(e || t).then(
|
|
280
299
|
(s) => {
|
|
@@ -282,11 +301,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
282
301
|
}
|
|
283
302
|
);
|
|
284
303
|
}, [r]), n;
|
|
285
|
-
},
|
|
286
|
-
const e = Ce(), t = Y(), [n, o] = w([]), r = Z(), s =
|
|
304
|
+
}, xo = () => {
|
|
305
|
+
const e = Ce(), t = Y(), [n, o] = w([]), r = Z(), s = E(
|
|
287
306
|
(c) => {
|
|
288
307
|
if (t && r.current && c) {
|
|
289
|
-
const
|
|
308
|
+
const u = t.getBranch(c), a = c.getChildren(u).map((l) => mt(l));
|
|
290
309
|
o(a);
|
|
291
310
|
}
|
|
292
311
|
},
|
|
@@ -296,7 +315,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
296
315
|
e && s(e);
|
|
297
316
|
}, [e, t]), v(() => {
|
|
298
317
|
if (t) {
|
|
299
|
-
const [c,
|
|
318
|
+
const [c, u] = gt(t.events);
|
|
300
319
|
return c("components:set-layout", (a, l) => {
|
|
301
320
|
(e === l.node.parent || l.node.parent === t.nodes.root) && s(l.node.parent);
|
|
302
321
|
}), c("components:node-appended", (a, l) => {
|
|
@@ -304,29 +323,29 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
304
323
|
}), c("components:node-removed", (a, { parentNode: l }) => {
|
|
305
324
|
(l === e || l === t.nodes.root) && s(l);
|
|
306
325
|
}), () => {
|
|
307
|
-
|
|
326
|
+
u();
|
|
308
327
|
};
|
|
309
328
|
}
|
|
310
329
|
}, [e, t, s]), n;
|
|
311
|
-
},
|
|
312
|
-
const n = pe(), o =
|
|
330
|
+
}, wo = () => P(Bt), ko = (e, t) => {
|
|
331
|
+
const n = pe(), o = B(), [r, s] = w(void 0), c = Z(), u = e || n.type || "";
|
|
313
332
|
return v(() => {
|
|
314
|
-
if (
|
|
333
|
+
if (u) {
|
|
315
334
|
let a;
|
|
316
335
|
return (t || o).getAsync("componentResolver").then((l) => {
|
|
317
336
|
if (c.current) {
|
|
318
|
-
const
|
|
319
|
-
s(
|
|
337
|
+
const d = l.getComponent(u);
|
|
338
|
+
s(d);
|
|
320
339
|
}
|
|
321
|
-
a = l.registerResolver(
|
|
322
|
-
c.current && s(
|
|
340
|
+
a = l.registerResolver(u, (d) => {
|
|
341
|
+
c.current && s(d);
|
|
323
342
|
});
|
|
324
343
|
}), () => {
|
|
325
344
|
a && a();
|
|
326
345
|
};
|
|
327
346
|
}
|
|
328
|
-
}, [c,
|
|
329
|
-
},
|
|
347
|
+
}, [c, u, t, o]), r;
|
|
348
|
+
}, It = (e) => {
|
|
330
349
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
331
350
|
return v(() => {
|
|
332
351
|
t && s.current && r(t.attributes.context);
|
|
@@ -334,7 +353,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
334
353
|
if (n) {
|
|
335
354
|
const c = n.events.subscribe(
|
|
336
355
|
"components:context-changed",
|
|
337
|
-
(
|
|
356
|
+
(u, a) => {
|
|
338
357
|
t === a.node && s.current && r(a.node.attributes.context);
|
|
339
358
|
}
|
|
340
359
|
);
|
|
@@ -343,23 +362,23 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
343
362
|
};
|
|
344
363
|
}
|
|
345
364
|
}, [s, n, t]), o;
|
|
346
|
-
},
|
|
365
|
+
}, $o = () => P(Zt), Lo = () => {
|
|
347
366
|
const e = Y(), t = pe(), [n, o] = w([]), [r, s] = w();
|
|
348
367
|
return v(() => {
|
|
349
368
|
if (e && t) {
|
|
350
|
-
const c = new pt(e).withId(t.id),
|
|
351
|
-
s(
|
|
352
|
-
|
|
369
|
+
const c = new pt(e).withId(t.id), u = e.actions(c, t.type || _());
|
|
370
|
+
s(u), n !== null && (n.forEach((a) => {
|
|
371
|
+
u.dispatch(a.key, a.data).then((l) => a.resolve(l)).catch((l) => a.reject(l));
|
|
353
372
|
}), o(null));
|
|
354
373
|
}
|
|
355
|
-
}, [e, t.id]), (c,
|
|
374
|
+
}, [e, t.id]), (c, u) => n !== null ? new Promise((a, l) => {
|
|
356
375
|
n.push({
|
|
357
376
|
key: c,
|
|
358
|
-
data:
|
|
377
|
+
data: u,
|
|
359
378
|
resolve: a,
|
|
360
379
|
reject: l
|
|
361
380
|
});
|
|
362
|
-
}) : r.dispatch(c,
|
|
381
|
+
}) : r.dispatch(c, u);
|
|
363
382
|
}, W = (e, t, n = window, o = () => !0) => {
|
|
364
383
|
const r = L(() => {
|
|
365
384
|
});
|
|
@@ -368,15 +387,15 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
368
387
|
}, [t]), v(() => {
|
|
369
388
|
if (!(n && o()))
|
|
370
389
|
return;
|
|
371
|
-
const c = (
|
|
390
|
+
const c = (u) => r.current(u);
|
|
372
391
|
return n.addEventListener(e, c), () => {
|
|
373
392
|
n.removeEventListener(e, c);
|
|
374
393
|
};
|
|
375
394
|
}, [e, n]);
|
|
376
|
-
},
|
|
377
|
-
const t =
|
|
395
|
+
}, Ot = (e) => {
|
|
396
|
+
const t = B(), { events: n } = (e || t).get("$widget");
|
|
378
397
|
return n;
|
|
379
|
-
},
|
|
398
|
+
}, Mo = () => {
|
|
380
399
|
const [e, t] = w(!1);
|
|
381
400
|
return v(() => {
|
|
382
401
|
const n = () => {
|
|
@@ -389,20 +408,20 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
389
408
|
};
|
|
390
409
|
}, []), e;
|
|
391
410
|
}, j = (e, t) => {
|
|
392
|
-
const [n, o] = w(!1), r =
|
|
411
|
+
const [n, o] = w(!1), r = E(
|
|
393
412
|
(c) => {
|
|
394
|
-
const { key:
|
|
395
|
-
|
|
413
|
+
const { key: u } = c;
|
|
414
|
+
u === e && (o(!0), t && t(c));
|
|
396
415
|
},
|
|
397
416
|
[o, t]
|
|
398
|
-
), s =
|
|
417
|
+
), s = E(
|
|
399
418
|
({ key: c }) => {
|
|
400
419
|
c === e && o(!1);
|
|
401
420
|
},
|
|
402
421
|
[o]
|
|
403
422
|
);
|
|
404
423
|
return W("keydown", r, window), W("keyup", s, window), n;
|
|
405
|
-
},
|
|
424
|
+
}, So = (e) => {
|
|
406
425
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
407
426
|
return v(() => {
|
|
408
427
|
t && s.current && r(t.attributes.layout);
|
|
@@ -410,7 +429,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
410
429
|
if (n) {
|
|
411
430
|
const c = n.events.subscribe(
|
|
412
431
|
"components:layout-changed",
|
|
413
|
-
(
|
|
432
|
+
(u, a) => {
|
|
414
433
|
t === a.node && s.current && r(a.node.attributes.layout);
|
|
415
434
|
}
|
|
416
435
|
);
|
|
@@ -424,18 +443,18 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
424
443
|
return v(() => {
|
|
425
444
|
t.current = e;
|
|
426
445
|
}), t.current;
|
|
427
|
-
},
|
|
428
|
-
const [t, n] = w(), o =
|
|
446
|
+
}, Eo = () => P(Vt), Ro = (e) => {
|
|
447
|
+
const [t, n] = w(), o = B(), r = Z();
|
|
429
448
|
return v(() => {
|
|
430
449
|
let s;
|
|
431
450
|
const c = (e || o).get("$widget");
|
|
432
451
|
if (!c)
|
|
433
452
|
return;
|
|
434
|
-
const { name:
|
|
453
|
+
const { name: u, invoke: a } = c;
|
|
435
454
|
return a("renderState").then((l) => {
|
|
436
455
|
r.current && n(l);
|
|
437
456
|
}), (e || o).getAsync("actionResolver").then((l) => {
|
|
438
|
-
s = l.subscribe(
|
|
457
|
+
s = l.subscribe(u, (d, h) => {
|
|
439
458
|
switch (h) {
|
|
440
459
|
case "close":
|
|
441
460
|
case "open":
|
|
@@ -451,8 +470,8 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
451
470
|
s && s();
|
|
452
471
|
};
|
|
453
472
|
}, [r]), t;
|
|
454
|
-
}, Oe = () => P(
|
|
455
|
-
const t =
|
|
473
|
+
}, Oe = () => P(Wt), Ho = (e) => {
|
|
474
|
+
const t = B(), n = Oe(), [o, r] = w({
|
|
456
475
|
name: "",
|
|
457
476
|
params: {}
|
|
458
477
|
}), s = Z();
|
|
@@ -460,45 +479,45 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
460
479
|
const c = (e || t).get("$widget");
|
|
461
480
|
if (!c)
|
|
462
481
|
return;
|
|
463
|
-
const { events:
|
|
464
|
-
return
|
|
482
|
+
const { events: u } = c;
|
|
483
|
+
return u.subscribe(
|
|
465
484
|
"router:change",
|
|
466
|
-
(l, { next: { routeData:
|
|
485
|
+
(l, { next: { routeData: d } }) => {
|
|
467
486
|
if (s.current) {
|
|
468
|
-
const { name: h, params: f } =
|
|
487
|
+
const { name: h, params: f } = d;
|
|
469
488
|
Re(f), r({ name: h, params: f });
|
|
470
489
|
}
|
|
471
490
|
}
|
|
472
491
|
);
|
|
473
492
|
}, [s, e, t]), v(() => {
|
|
474
493
|
if (n && n.history && s.current) {
|
|
475
|
-
const c = n.getRouteData(), { name:
|
|
476
|
-
Re(a), r({ name:
|
|
494
|
+
const c = n.getRouteData(), { name: u, params: a } = c;
|
|
495
|
+
Re(a), r({ name: u, params: a });
|
|
477
496
|
}
|
|
478
497
|
}, [n, s]), o;
|
|
479
498
|
}, Ae = (e) => {
|
|
480
499
|
const t = L(), n = L(0);
|
|
481
500
|
let o;
|
|
482
|
-
const r =
|
|
501
|
+
const r = E(() => {
|
|
483
502
|
var l;
|
|
484
503
|
(l = t.current) == null || l.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
485
|
-
var
|
|
486
|
-
(
|
|
504
|
+
var d;
|
|
505
|
+
(d = t.current) == null || d.classList.remove("humany-scrolling");
|
|
487
506
|
}, 500);
|
|
488
|
-
}, [t]), s =
|
|
507
|
+
}, [t]), s = E(
|
|
489
508
|
(l) => {
|
|
490
509
|
n.current = l.touches[0].clientY;
|
|
491
510
|
},
|
|
492
511
|
[t]
|
|
493
|
-
), c = (l) =>
|
|
512
|
+
), c = (l) => u(l) ? l === t.current ? l : null : l.parentElement ? c(l.parentElement) : null, u = (l) => l.scrollWidth > l.clientWidth || l.scrollHeight > l.clientHeight, a = E(
|
|
494
513
|
(l) => {
|
|
495
514
|
if (!l.cancelable)
|
|
496
515
|
return;
|
|
497
|
-
const
|
|
516
|
+
const d = l.touches[0].clientY, h = c(l.target);
|
|
498
517
|
if (!h)
|
|
499
518
|
return;
|
|
500
|
-
const f = h.scrollTop,
|
|
501
|
-
(
|
|
519
|
+
const f = h.scrollTop, g = n.current - d < 0 ? "up" : "down", m = f <= 0 && g === "up", p = f >= h.scrollHeight - h.offsetHeight && g === "down";
|
|
520
|
+
(m || p) && l.preventDefault(), n.current = d;
|
|
502
521
|
},
|
|
503
522
|
[t, n]
|
|
504
523
|
);
|
|
@@ -517,9 +536,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
517
536
|
a,
|
|
518
537
|
t.current,
|
|
519
538
|
() => t.current && e
|
|
520
|
-
), e ? [
|
|
521
|
-
},
|
|
522
|
-
overflow-y: ${
|
|
539
|
+
), e ? [At, t] : ["", t];
|
|
540
|
+
}, At = `
|
|
541
|
+
overflow-y: ${Ne() === fe.Chrome || Ne() === fe.EdgeChromium ? "overlay" : "auto"};
|
|
523
542
|
overflow-x: hidden;
|
|
524
543
|
-ms-overflow-style: none; /* IE 10+ */
|
|
525
544
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -546,36 +565,36 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
546
565
|
background-color: #7F7F7F;
|
|
547
566
|
}
|
|
548
567
|
}
|
|
549
|
-
`,
|
|
550
|
-
const [e, t] = w(null), n =
|
|
568
|
+
`, To = () => {
|
|
569
|
+
const [e, t] = w(null), n = B(), o = Z();
|
|
551
570
|
return v(() => {
|
|
552
571
|
n.get("settings").then((r) => {
|
|
553
572
|
o.current && t(r);
|
|
554
573
|
});
|
|
555
574
|
}, [o]), e;
|
|
556
575
|
}, Fe = (e = !1) => {
|
|
557
|
-
const [t, n] = w(e), o =
|
|
576
|
+
const [t, n] = w(e), o = E((r) => {
|
|
558
577
|
n(typeof r == "boolean" ? r : (s) => !s);
|
|
559
578
|
}, []);
|
|
560
579
|
return [t, o];
|
|
561
|
-
},
|
|
562
|
-
const t =
|
|
580
|
+
}, No = (e) => {
|
|
581
|
+
const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [c, u] = w(null), a = Z();
|
|
563
582
|
v(() => {
|
|
564
583
|
if (n && a.current) {
|
|
565
|
-
const
|
|
566
|
-
if (!(h != null && h.attributes.properties.animation) && !(
|
|
584
|
+
const d = n.nodes.all.find((f) => f.name === "root-area"), h = n.nodes.all.find((f) => f.type === "view");
|
|
585
|
+
if (!(h != null && h.attributes.properties.animation) && !(d != null && d.attributes.properties.animation))
|
|
567
586
|
e();
|
|
568
587
|
else {
|
|
569
|
-
const f = (p = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${p}"]`),
|
|
570
|
-
|
|
571
|
-
const
|
|
572
|
-
|
|
588
|
+
const f = (p = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${p}"]`), g = f(h == null ? void 0 : h.id);
|
|
589
|
+
g && s(g);
|
|
590
|
+
const m = f(d == null ? void 0 : d.id);
|
|
591
|
+
m && u(m);
|
|
573
592
|
}
|
|
574
593
|
}
|
|
575
594
|
}, [n, t, a]);
|
|
576
|
-
const l =
|
|
577
|
-
(
|
|
578
|
-
a.current && (
|
|
595
|
+
const l = E(
|
|
596
|
+
(d) => {
|
|
597
|
+
a.current && (d.target === r || d.target === c) && e();
|
|
579
598
|
},
|
|
580
599
|
[e, a, r, c]
|
|
581
600
|
);
|
|
@@ -589,7 +608,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
589
608
|
c
|
|
590
609
|
);
|
|
591
610
|
}, ae = (e, t, n = [], o) => {
|
|
592
|
-
const r =
|
|
611
|
+
const r = Ot(o);
|
|
593
612
|
return v(() => {
|
|
594
613
|
if (r) {
|
|
595
614
|
const s = r.subscribe(e, t);
|
|
@@ -608,8 +627,8 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
608
627
|
"span",
|
|
609
628
|
{
|
|
610
629
|
ref: o,
|
|
611
|
-
className:
|
|
612
|
-
...
|
|
630
|
+
className: M(e, "humany-text"),
|
|
631
|
+
...z(n),
|
|
613
632
|
children: t
|
|
614
633
|
}
|
|
615
634
|
)
|
|
@@ -622,7 +641,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
622
641
|
border: ${e.theme.border};
|
|
623
642
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
624
643
|
${e["data-loading"] && "min-height: 150px;"}
|
|
625
|
-
`,
|
|
644
|
+
`, Ft = (e) => {
|
|
626
645
|
var t, n, o;
|
|
627
646
|
return k`
|
|
628
647
|
cursor: pointer;
|
|
@@ -634,11 +653,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
634
653
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
635
654
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
636
655
|
`;
|
|
637
|
-
},
|
|
656
|
+
}, Do = (e) => {
|
|
638
657
|
var c;
|
|
639
658
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
640
659
|
return k`
|
|
641
|
-
${
|
|
660
|
+
${Ft(e)}
|
|
642
661
|
border: 1px solid ${o ? n : t};
|
|
643
662
|
background-color: ${o ? t : n};
|
|
644
663
|
|
|
@@ -679,10 +698,10 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
679
698
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
680
699
|
border-color: transparent;
|
|
681
700
|
`;
|
|
682
|
-
},
|
|
701
|
+
}, Pt = (e) => k`
|
|
683
702
|
${O(e)}
|
|
684
703
|
text-decoration: underline;
|
|
685
|
-
`,
|
|
704
|
+
`, zo = (e) => {
|
|
686
705
|
var t;
|
|
687
706
|
return k`
|
|
688
707
|
${O(e)}
|
|
@@ -716,7 +735,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
716
735
|
height: 15px;
|
|
717
736
|
box-sizing: content-box;
|
|
718
737
|
}
|
|
719
|
-
`,
|
|
738
|
+
`, De = C(be)`
|
|
720
739
|
font-size: ${(e) => {
|
|
721
740
|
var t;
|
|
722
741
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -727,7 +746,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
727
746
|
var t;
|
|
728
747
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
729
748
|
}};
|
|
730
|
-
`,
|
|
749
|
+
`, jt = (e) => {
|
|
731
750
|
var t;
|
|
732
751
|
return k`
|
|
733
752
|
padding: 0;
|
|
@@ -749,7 +768,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
749
768
|
margin: 0;
|
|
750
769
|
}
|
|
751
770
|
`;
|
|
752
|
-
},
|
|
771
|
+
}, Bo = (e) => {
|
|
753
772
|
var t, n, o, r;
|
|
754
773
|
return k`
|
|
755
774
|
> div {
|
|
@@ -765,7 +784,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
765
784
|
)}
|
|
766
785
|
}
|
|
767
786
|
> ul {
|
|
768
|
-
${
|
|
787
|
+
${jt(e)}
|
|
769
788
|
}
|
|
770
789
|
${ie(e)(
|
|
771
790
|
"h1",
|
|
@@ -785,7 +804,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
785
804
|
`
|
|
786
805
|
)}
|
|
787
806
|
`;
|
|
788
|
-
},
|
|
807
|
+
}, Vo = (e) => {
|
|
789
808
|
var t, n, o, r, s, c;
|
|
790
809
|
return k`
|
|
791
810
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -814,7 +833,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
814
833
|
a {
|
|
815
834
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
816
835
|
&:focus-visible {
|
|
817
|
-
${
|
|
836
|
+
${Pt(e)};
|
|
818
837
|
}
|
|
819
838
|
}
|
|
820
839
|
|
|
@@ -864,13 +883,13 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
864
883
|
className: s,
|
|
865
884
|
...c
|
|
866
885
|
}) => {
|
|
867
|
-
const { type:
|
|
886
|
+
const { type: u, content: a } = o, l = {
|
|
868
887
|
"aria-label": e,
|
|
869
888
|
role: "presentation"
|
|
870
889
|
};
|
|
871
|
-
switch (
|
|
890
|
+
switch (u) {
|
|
872
891
|
case "Uri": {
|
|
873
|
-
const
|
|
892
|
+
const d = {
|
|
874
893
|
backgroundSize: t,
|
|
875
894
|
backgroundImage: `url('${a}')`,
|
|
876
895
|
backgroundRepeat: "no-repeat",
|
|
@@ -880,21 +899,21 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
880
899
|
return /* @__PURE__ */ i(
|
|
881
900
|
"i",
|
|
882
901
|
{
|
|
883
|
-
className:
|
|
902
|
+
className: M(
|
|
884
903
|
s,
|
|
885
904
|
"humany-icon",
|
|
886
905
|
"humany-custom-icon"
|
|
887
906
|
),
|
|
888
907
|
title: e,
|
|
889
|
-
style: { ...
|
|
908
|
+
style: { ...d, ...r },
|
|
890
909
|
...l,
|
|
891
910
|
...c
|
|
892
911
|
}
|
|
893
912
|
);
|
|
894
913
|
}
|
|
895
914
|
case "Svg": {
|
|
896
|
-
const
|
|
897
|
-
className:
|
|
915
|
+
const d = {
|
|
916
|
+
className: M(s, "humany-icon"),
|
|
898
917
|
width: `${n}`,
|
|
899
918
|
fill: "none",
|
|
900
919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -903,7 +922,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
903
922
|
}, h = { minWidth: `${n}` };
|
|
904
923
|
switch (a) {
|
|
905
924
|
case "search":
|
|
906
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...
|
|
925
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...d, children: [
|
|
907
926
|
/* @__PURE__ */ i(
|
|
908
927
|
"circle",
|
|
909
928
|
{
|
|
@@ -916,7 +935,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
916
935
|
/* @__PURE__ */ i("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" })
|
|
917
936
|
] });
|
|
918
937
|
case "clear":
|
|
919
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 27 27", ...
|
|
938
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 27 27", ...d, children: [
|
|
920
939
|
/* @__PURE__ */ i(
|
|
921
940
|
"circle",
|
|
922
941
|
{
|
|
@@ -949,32 +968,32 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
949
968
|
)
|
|
950
969
|
] });
|
|
951
970
|
case "close":
|
|
952
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 13 13", ...
|
|
971
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 13 13", ...d, children: [
|
|
953
972
|
/* @__PURE__ */ i("path", { d: "M12.3068 0.50647L1.27246 11.7273", stroke: "black" }),
|
|
954
973
|
/* @__PURE__ */ i("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" })
|
|
955
974
|
] });
|
|
956
975
|
case "caret-right":
|
|
957
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...
|
|
976
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
958
977
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }),
|
|
959
978
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" })
|
|
960
979
|
] });
|
|
961
980
|
case "caret-left":
|
|
962
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...
|
|
981
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
963
982
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }),
|
|
964
983
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" })
|
|
965
984
|
] });
|
|
966
985
|
case "caret-up":
|
|
967
|
-
return /* @__PURE__ */ b(
|
|
986
|
+
return /* @__PURE__ */ b(Kt, { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
968
987
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
969
988
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
970
989
|
] });
|
|
971
990
|
case "caret-down":
|
|
972
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...
|
|
991
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
973
992
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
974
993
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
975
994
|
] });
|
|
976
995
|
case "back":
|
|
977
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 18 18", ...
|
|
996
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 18 18", ...d, children: [
|
|
978
997
|
/* @__PURE__ */ i(
|
|
979
998
|
"line",
|
|
980
999
|
{
|
|
@@ -997,7 +1016,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
997
1016
|
)
|
|
998
1017
|
] });
|
|
999
1018
|
case "alert":
|
|
1000
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 19", ...
|
|
1019
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 19", ...d, children: [
|
|
1001
1020
|
/* @__PURE__ */ i("circle", { cx: "9.5", cy: "9.5", r: "9.5", fill: "#CA0813" }),
|
|
1002
1021
|
/* @__PURE__ */ i(
|
|
1003
1022
|
"path",
|
|
@@ -1008,7 +1027,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1008
1027
|
)
|
|
1009
1028
|
] });
|
|
1010
1029
|
case "send":
|
|
1011
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 20 17", ...
|
|
1030
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 20 17", ...d, children: /* @__PURE__ */ i(
|
|
1012
1031
|
"path",
|
|
1013
1032
|
{
|
|
1014
1033
|
d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
|
|
@@ -1018,7 +1037,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1018
1037
|
}
|
|
1019
1038
|
) });
|
|
1020
1039
|
case "chat":
|
|
1021
|
-
return /* @__PURE__ */ b("svg", { viewBox: "-2 -3 40 40", ...
|
|
1040
|
+
return /* @__PURE__ */ b("svg", { viewBox: "-2 -3 40 40", ...d, children: [
|
|
1022
1041
|
/* @__PURE__ */ i(
|
|
1023
1042
|
"path",
|
|
1024
1043
|
{
|
|
@@ -1055,7 +1074,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1055
1074
|
)
|
|
1056
1075
|
] });
|
|
1057
1076
|
case "chat-new":
|
|
1058
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 26 24", ...
|
|
1077
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 26 24", ...d, children: [
|
|
1059
1078
|
/* @__PURE__ */ i(
|
|
1060
1079
|
"path",
|
|
1061
1080
|
{
|
|
@@ -1072,7 +1091,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1072
1091
|
)
|
|
1073
1092
|
] });
|
|
1074
1093
|
case "agent":
|
|
1075
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 36 30", ...
|
|
1094
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 36 30", ...d, children: [
|
|
1076
1095
|
/* @__PURE__ */ i(
|
|
1077
1096
|
"path",
|
|
1078
1097
|
{
|
|
@@ -1104,11 +1123,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1104
1123
|
)
|
|
1105
1124
|
] });
|
|
1106
1125
|
case "minimize":
|
|
1107
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 -10 22 22", ...
|
|
1126
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 -10 22 22", ...d, children: /* @__PURE__ */ i("path", { d: "M0 1H22", stroke: "white" }) });
|
|
1108
1127
|
case "sorting":
|
|
1109
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 18 14", ...
|
|
1128
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 18 14", ...d, children: /* @__PURE__ */ i("path", { d: "M18 1H0M8 13H0M13 7H0" }) });
|
|
1110
1129
|
case "copy":
|
|
1111
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 17", ...
|
|
1130
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 17", ...d, children: [
|
|
1112
1131
|
/* @__PURE__ */ i(
|
|
1113
1132
|
"rect",
|
|
1114
1133
|
{
|
|
@@ -1133,7 +1152,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1133
1152
|
)
|
|
1134
1153
|
] });
|
|
1135
1154
|
case "print":
|
|
1136
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 17", ...
|
|
1155
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 17", ...d, children: [
|
|
1137
1156
|
/* @__PURE__ */ i(
|
|
1138
1157
|
"path",
|
|
1139
1158
|
{
|
|
@@ -1190,7 +1209,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1190
1209
|
)
|
|
1191
1210
|
] });
|
|
1192
1211
|
case "language":
|
|
1193
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 19 19", ...
|
|
1212
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 19 19", ...d, children: /* @__PURE__ */ i(
|
|
1194
1213
|
"path",
|
|
1195
1214
|
{
|
|
1196
1215
|
d: "M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",
|
|
@@ -1198,7 +1217,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1198
1217
|
}
|
|
1199
1218
|
) });
|
|
1200
1219
|
case "information":
|
|
1201
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 17 17", ...
|
|
1220
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 17 17", ...d, children: [
|
|
1202
1221
|
/* @__PURE__ */ i(
|
|
1203
1222
|
"path",
|
|
1204
1223
|
{
|
|
@@ -1224,7 +1243,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1224
1243
|
)
|
|
1225
1244
|
] });
|
|
1226
1245
|
case "options":
|
|
1227
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 2", ...
|
|
1246
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 2", ...d, children: [
|
|
1228
1247
|
/* @__PURE__ */ i(
|
|
1229
1248
|
"circle",
|
|
1230
1249
|
{
|
|
@@ -1257,7 +1276,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1257
1276
|
)
|
|
1258
1277
|
] });
|
|
1259
1278
|
case "browse":
|
|
1260
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...
|
|
1279
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...d, children: [
|
|
1261
1280
|
/* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }),
|
|
1262
1281
|
/* @__PURE__ */ i(
|
|
1263
1282
|
"path",
|
|
@@ -1297,7 +1316,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1297
1316
|
)
|
|
1298
1317
|
] });
|
|
1299
1318
|
case "video":
|
|
1300
|
-
return h.minWidth && typeof h.minWidth == "number" && (h.minWidth = `${h.minWidth}px`), /* @__PURE__ */ b("svg", { viewBox: "0 0 25 25", ...
|
|
1319
|
+
return h.minWidth && typeof h.minWidth == "number" && (h.minWidth = `${h.minWidth}px`), /* @__PURE__ */ b("svg", { viewBox: "0 0 25 25", ...d, style: h, children: [
|
|
1301
1320
|
/* @__PURE__ */ i(
|
|
1302
1321
|
"path",
|
|
1303
1322
|
{
|
|
@@ -1322,7 +1341,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1322
1341
|
)
|
|
1323
1342
|
] });
|
|
1324
1343
|
case "star-empty":
|
|
1325
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...
|
|
1344
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...d, children: /* @__PURE__ */ i(
|
|
1326
1345
|
"path",
|
|
1327
1346
|
{
|
|
1328
1347
|
d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
|
|
@@ -1330,7 +1349,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1330
1349
|
}
|
|
1331
1350
|
) });
|
|
1332
1351
|
case "star-filled":
|
|
1333
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...
|
|
1352
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...d, children: /* @__PURE__ */ i(
|
|
1334
1353
|
"path",
|
|
1335
1354
|
{
|
|
1336
1355
|
d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
|
|
@@ -1339,7 +1358,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1339
1358
|
}
|
|
1340
1359
|
) });
|
|
1341
1360
|
case "cog-wheel":
|
|
1342
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1361
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1343
1362
|
"path",
|
|
1344
1363
|
{
|
|
1345
1364
|
fillRule: "evenodd",
|
|
@@ -1349,7 +1368,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1349
1368
|
}
|
|
1350
1369
|
) });
|
|
1351
1370
|
case "zoom-in":
|
|
1352
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...
|
|
1371
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...d, children: [
|
|
1353
1372
|
/* @__PURE__ */ i(
|
|
1354
1373
|
"path",
|
|
1355
1374
|
{
|
|
@@ -1379,7 +1398,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1379
1398
|
)
|
|
1380
1399
|
] });
|
|
1381
1400
|
case "zoom-out":
|
|
1382
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...
|
|
1401
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...d, children: [
|
|
1383
1402
|
/* @__PURE__ */ i(
|
|
1384
1403
|
"path",
|
|
1385
1404
|
{
|
|
@@ -1400,7 +1419,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1400
1419
|
)
|
|
1401
1420
|
] });
|
|
1402
1421
|
case "download":
|
|
1403
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1422
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1404
1423
|
"path",
|
|
1405
1424
|
{
|
|
1406
1425
|
fillRule: "evenodd",
|
|
@@ -1410,7 +1429,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1410
1429
|
}
|
|
1411
1430
|
) });
|
|
1412
1431
|
case "lightbox-close":
|
|
1413
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1432
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1414
1433
|
"path",
|
|
1415
1434
|
{
|
|
1416
1435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1421,7 +1440,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1421
1440
|
}
|
|
1422
1441
|
) });
|
|
1423
1442
|
case "pagination-left":
|
|
1424
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1443
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1425
1444
|
"path",
|
|
1426
1445
|
{
|
|
1427
1446
|
fillRule: "evenodd",
|
|
@@ -1431,13 +1450,13 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1431
1450
|
}
|
|
1432
1451
|
) });
|
|
1433
1452
|
case "pagination-right":
|
|
1434
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1453
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i("path", { d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) });
|
|
1435
1454
|
}
|
|
1436
1455
|
return null;
|
|
1437
1456
|
}
|
|
1438
1457
|
case "FontAwesome":
|
|
1439
1458
|
return /* @__PURE__ */ i(
|
|
1440
|
-
|
|
1459
|
+
an,
|
|
1441
1460
|
{
|
|
1442
1461
|
className: s,
|
|
1443
1462
|
faIcon: a,
|
|
@@ -1450,7 +1469,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1450
1469
|
return e ? /* @__PURE__ */ i(
|
|
1451
1470
|
"i",
|
|
1452
1471
|
{
|
|
1453
|
-
className:
|
|
1472
|
+
className: M(s, "humany-letter-symbol"),
|
|
1454
1473
|
title: e,
|
|
1455
1474
|
...l,
|
|
1456
1475
|
...c,
|
|
@@ -1458,9 +1477,9 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1458
1477
|
}
|
|
1459
1478
|
) : null;
|
|
1460
1479
|
}
|
|
1461
|
-
},
|
|
1480
|
+
}, Kt = C.svg`
|
|
1462
1481
|
transform: rotate(180deg);
|
|
1463
|
-
`,
|
|
1482
|
+
`, Yt = {
|
|
1464
1483
|
h1: "h1",
|
|
1465
1484
|
h2: "h2",
|
|
1466
1485
|
h3: "h3",
|
|
@@ -1475,14 +1494,14 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1475
1494
|
className: n,
|
|
1476
1495
|
children: o
|
|
1477
1496
|
}) => {
|
|
1478
|
-
const { typographyVariantMapping: r = {} } =
|
|
1479
|
-
...
|
|
1497
|
+
const { typographyVariantMapping: r = {} } = It(), s = {
|
|
1498
|
+
...Yt,
|
|
1480
1499
|
...r
|
|
1481
1500
|
}, c = t || s[e] || "span";
|
|
1482
|
-
return /* @__PURE__ */ i(
|
|
1483
|
-
},
|
|
1484
|
-
var
|
|
1485
|
-
const
|
|
1501
|
+
return /* @__PURE__ */ i(Xt, { className: n, as: c, children: o });
|
|
1502
|
+
}, Xt = C.span``;
|
|
1503
|
+
var _t = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(_t || {});
|
|
1504
|
+
const Ut = 300, Wo = ({
|
|
1486
1505
|
className: e,
|
|
1487
1506
|
children: t,
|
|
1488
1507
|
header: n,
|
|
@@ -1490,50 +1509,50 @@ const _t = 300, N1 = ({
|
|
|
1490
1509
|
trigger: r,
|
|
1491
1510
|
fullScreen: s = !1,
|
|
1492
1511
|
closeButtonAriaLabel: c,
|
|
1493
|
-
animation:
|
|
1512
|
+
animation: u = {
|
|
1494
1513
|
type: "slide-in-bottom"
|
|
1495
1514
|
/* SlideInBottom */
|
|
1496
1515
|
}
|
|
1497
1516
|
}) => {
|
|
1498
|
-
const { duration: a =
|
|
1517
|
+
const { duration: a = Ut } = u, l = L(), d = L(), [h, f] = Ae(!0), [g, m] = Fe(), p = Ie(g), y = L(_());
|
|
1499
1518
|
v(() => {
|
|
1500
|
-
o && o(
|
|
1501
|
-
}, [
|
|
1502
|
-
const
|
|
1519
|
+
o && o(g);
|
|
1520
|
+
}, [g]);
|
|
1521
|
+
const $ = j("Escape");
|
|
1503
1522
|
v(() => {
|
|
1504
|
-
|
|
1505
|
-
}, [
|
|
1523
|
+
$ && m(!1);
|
|
1524
|
+
}, [$]), W(
|
|
1506
1525
|
"click",
|
|
1507
|
-
(
|
|
1508
|
-
const { target:
|
|
1509
|
-
!
|
|
1526
|
+
(S) => {
|
|
1527
|
+
const { target: T } = S;
|
|
1528
|
+
!d.current || !f.current || !T || d.current !== T && f.current !== T && !f.current.contains(T) && !d.current.contains(T) && m(!1);
|
|
1510
1529
|
},
|
|
1511
1530
|
window
|
|
1512
1531
|
);
|
|
1513
1532
|
const R = ye(y.current, () => {
|
|
1514
|
-
|
|
1533
|
+
m(!1);
|
|
1515
1534
|
});
|
|
1516
1535
|
ae("router:changed", () => {
|
|
1517
|
-
|
|
1536
|
+
m(!1);
|
|
1518
1537
|
}), v(() => {
|
|
1519
|
-
|
|
1520
|
-
}, [
|
|
1521
|
-
const
|
|
1538
|
+
g && l.current ? l.current.focus() : !g && d.current && p && d.current.focus();
|
|
1539
|
+
}, [g, l.current, d.current]);
|
|
1540
|
+
const N = tn[u.type];
|
|
1522
1541
|
return /* @__PURE__ */ b(U, { children: [
|
|
1523
1542
|
/* @__PURE__ */ i(
|
|
1524
1543
|
Ve,
|
|
1525
1544
|
{
|
|
1526
|
-
in:
|
|
1545
|
+
in: g,
|
|
1527
1546
|
className: "humany-drawer-transition",
|
|
1528
1547
|
classNames: "humany-drawer-transition",
|
|
1529
1548
|
unmountOnExit: !0,
|
|
1530
1549
|
timeout: a,
|
|
1531
1550
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1532
|
-
|
|
1551
|
+
N,
|
|
1533
1552
|
{
|
|
1534
1553
|
duration: a,
|
|
1535
1554
|
fullScreen: s,
|
|
1536
|
-
className:
|
|
1555
|
+
className: M(
|
|
1537
1556
|
e,
|
|
1538
1557
|
"humany-drawer",
|
|
1539
1558
|
`humany-drawer-${y.current}`
|
|
@@ -1545,14 +1564,14 @@ const _t = 300, N1 = ({
|
|
|
1545
1564
|
/* @__PURE__ */ i(
|
|
1546
1565
|
ve,
|
|
1547
1566
|
{
|
|
1548
|
-
onClick: () =>
|
|
1567
|
+
onClick: () => m(!1),
|
|
1549
1568
|
tabIndex: 0,
|
|
1550
1569
|
ref: l,
|
|
1551
1570
|
"aria-label": c,
|
|
1552
1571
|
children: /* @__PURE__ */ i(Q, { symbol: { type: "Svg", content: "close" } })
|
|
1553
1572
|
}
|
|
1554
1573
|
),
|
|
1555
|
-
!!n && /* @__PURE__ */ i(
|
|
1574
|
+
!!n && /* @__PURE__ */ i(qt, { variant: "h1", className: "humany-drawer-header", children: n }),
|
|
1556
1575
|
t
|
|
1557
1576
|
]
|
|
1558
1577
|
}
|
|
@@ -1560,12 +1579,12 @@ const _t = 300, N1 = ({
|
|
|
1560
1579
|
}
|
|
1561
1580
|
),
|
|
1562
1581
|
oe.cloneElement(r, {
|
|
1563
|
-
onClick: (
|
|
1564
|
-
|
|
1582
|
+
onClick: (S) => {
|
|
1583
|
+
m(), R();
|
|
1565
1584
|
},
|
|
1566
|
-
ref:
|
|
1585
|
+
ref: d,
|
|
1567
1586
|
"aria-label": r.props.title,
|
|
1568
|
-
"aria-expanded":
|
|
1587
|
+
"aria-expanded": g
|
|
1569
1588
|
})
|
|
1570
1589
|
] });
|
|
1571
1590
|
}, ce = C.div`
|
|
@@ -1585,7 +1604,7 @@ const _t = 300, N1 = ({
|
|
|
1585
1604
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1586
1605
|
background: #ffffff;
|
|
1587
1606
|
${(e) => e.css && e.css}
|
|
1588
|
-
`,
|
|
1607
|
+
`, qt = C(X)`
|
|
1589
1608
|
padding: ${(e) => {
|
|
1590
1609
|
var t;
|
|
1591
1610
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1610,7 +1629,7 @@ const _t = 300, N1 = ({
|
|
|
1610
1629
|
line-height: 1.2em;
|
|
1611
1630
|
`, le = (e) => k`
|
|
1612
1631
|
transition: ${e.duration}ms;
|
|
1613
|
-
`,
|
|
1632
|
+
`, Qt = C(ce)`
|
|
1614
1633
|
max-height: 0;
|
|
1615
1634
|
${le}
|
|
1616
1635
|
|
|
@@ -1627,7 +1646,7 @@ const _t = 300, N1 = ({
|
|
|
1627
1646
|
&.humany-drawer-transition-exit-done {
|
|
1628
1647
|
max-height: 0;
|
|
1629
1648
|
}
|
|
1630
|
-
`,
|
|
1649
|
+
`, Gt = C(ce)`
|
|
1631
1650
|
${le}
|
|
1632
1651
|
transform: translateX(100%);
|
|
1633
1652
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1645,7 +1664,7 @@ const _t = 300, N1 = ({
|
|
|
1645
1664
|
&.humany-drawer-transition-exit-done {
|
|
1646
1665
|
transform: translateX(100%);
|
|
1647
1666
|
}
|
|
1648
|
-
`,
|
|
1667
|
+
`, Jt = C(ce)`
|
|
1649
1668
|
${le}
|
|
1650
1669
|
transform: translateX(-100%);
|
|
1651
1670
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1663,7 +1682,7 @@ const _t = 300, N1 = ({
|
|
|
1663
1682
|
&.humany-drawer-transition-exit-done {
|
|
1664
1683
|
transform: translateX(-100%);
|
|
1665
1684
|
}
|
|
1666
|
-
`,
|
|
1685
|
+
`, en = C(ce)`
|
|
1667
1686
|
${le}
|
|
1668
1687
|
bottom: unset;
|
|
1669
1688
|
top: 0;
|
|
@@ -1682,29 +1701,29 @@ const _t = 300, N1 = ({
|
|
|
1682
1701
|
&.humany-drawer-transition-exit-done {
|
|
1683
1702
|
height: 0;
|
|
1684
1703
|
}
|
|
1685
|
-
`,
|
|
1704
|
+
`, tn = {
|
|
1686
1705
|
[
|
|
1687
1706
|
"slide-in-bottom"
|
|
1688
1707
|
/* SlideInBottom */
|
|
1689
|
-
]:
|
|
1708
|
+
]: Qt,
|
|
1690
1709
|
[
|
|
1691
1710
|
"slide-in-right"
|
|
1692
1711
|
/* SlideInRight */
|
|
1693
|
-
]:
|
|
1712
|
+
]: Gt,
|
|
1694
1713
|
[
|
|
1695
1714
|
"slide-in-left"
|
|
1696
1715
|
/* SlideInLeft */
|
|
1697
|
-
]:
|
|
1716
|
+
]: Jt,
|
|
1698
1717
|
[
|
|
1699
1718
|
"slide-in-top"
|
|
1700
1719
|
/* SlideInTop */
|
|
1701
|
-
]:
|
|
1720
|
+
]: en
|
|
1702
1721
|
}, je = (e, t, n) => {
|
|
1703
|
-
const [o, r] = w(0), [s, c] = w(0),
|
|
1722
|
+
const [o, r] = w(0), [s, c] = w(0), u = E(
|
|
1704
1723
|
(a, l) => {
|
|
1705
1724
|
if (a.preventDefault(), l) {
|
|
1706
|
-
const
|
|
1707
|
-
r(Math.max(document.body.clientWidth -
|
|
1725
|
+
const d = l.getBoundingClientRect();
|
|
1726
|
+
r(Math.max(document.body.clientWidth - d.right, 1)), c(d.bottom + window.scrollY);
|
|
1708
1727
|
}
|
|
1709
1728
|
},
|
|
1710
1729
|
[o, s, r, c]
|
|
@@ -1717,8 +1736,8 @@ const _t = 300, N1 = ({
|
|
|
1717
1736
|
y: s
|
|
1718
1737
|
};
|
|
1719
1738
|
a.left < 0 && (l.x = 0), a.bottom > window.innerHeight && (l.y = 0), l.x !== o && r(l.x), l.y !== s && c(l.y);
|
|
1720
|
-
}, [n, e, t]), [{ x: o, y: s },
|
|
1721
|
-
},
|
|
1739
|
+
}, [n, e, t]), [{ x: o, y: s }, u];
|
|
1740
|
+
}, Zo = oe.forwardRef(
|
|
1722
1741
|
({
|
|
1723
1742
|
className: e = "",
|
|
1724
1743
|
children: t = null,
|
|
@@ -1726,43 +1745,43 @@ const _t = 300, N1 = ({
|
|
|
1726
1745
|
closeButtonAriaLabel: o,
|
|
1727
1746
|
...r
|
|
1728
1747
|
}, s) => {
|
|
1729
|
-
const c = L(),
|
|
1748
|
+
const c = L(), u = L(), a = L();
|
|
1730
1749
|
ge(s, () => a.current, [a.current]);
|
|
1731
|
-
const l = L(_()), [
|
|
1750
|
+
const l = L(_()), [d, h] = w(!1), f = Ie(d), [{ x: g, y: m }, p] = je(d, l.current, a.current), y = j("Escape");
|
|
1732
1751
|
v(() => {
|
|
1733
1752
|
y && h(!1);
|
|
1734
1753
|
}, [y]), v(() => {
|
|
1735
|
-
|
|
1736
|
-
}, [
|
|
1754
|
+
d && c.current ? c.current.focus() : !d && u.current && f && u.current.focus();
|
|
1755
|
+
}, [d, c.current, u.current]), W(
|
|
1737
1756
|
"click",
|
|
1738
|
-
(
|
|
1739
|
-
const { target:
|
|
1740
|
-
!a.current || !
|
|
1757
|
+
(N) => {
|
|
1758
|
+
const { target: S } = N;
|
|
1759
|
+
!a.current || !S || a.current !== S && !a.current.contains(S) && h(!1);
|
|
1741
1760
|
},
|
|
1742
1761
|
window
|
|
1743
1762
|
), ae("router:changed", () => {
|
|
1744
1763
|
h(!1);
|
|
1745
1764
|
});
|
|
1746
|
-
const
|
|
1765
|
+
const $ = ye(l.current, () => {
|
|
1747
1766
|
h(!1);
|
|
1748
|
-
}), R =
|
|
1749
|
-
(
|
|
1750
|
-
|
|
1767
|
+
}), R = E(
|
|
1768
|
+
(N) => {
|
|
1769
|
+
N.stopPropagation(), p(N, u.current), h(!d), $();
|
|
1751
1770
|
},
|
|
1752
|
-
[
|
|
1771
|
+
[$, p, h]
|
|
1753
1772
|
);
|
|
1754
1773
|
return /* @__PURE__ */ b(U, { children: [
|
|
1755
|
-
|
|
1756
|
-
|
|
1774
|
+
d && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1775
|
+
nn,
|
|
1757
1776
|
{
|
|
1758
|
-
className:
|
|
1777
|
+
className: M(
|
|
1759
1778
|
"humany-dropdown",
|
|
1760
1779
|
`humany-dropdown-${l.current}`,
|
|
1761
1780
|
e
|
|
1762
1781
|
),
|
|
1763
1782
|
...r,
|
|
1764
|
-
x:
|
|
1765
|
-
y:
|
|
1783
|
+
x: g,
|
|
1784
|
+
y: m,
|
|
1766
1785
|
ref: a,
|
|
1767
1786
|
children: [
|
|
1768
1787
|
/* @__PURE__ */ i(
|
|
@@ -1781,13 +1800,13 @@ const _t = 300, N1 = ({
|
|
|
1781
1800
|
) }),
|
|
1782
1801
|
oe.cloneElement(n, {
|
|
1783
1802
|
onClick: R,
|
|
1784
|
-
ref:
|
|
1803
|
+
ref: u,
|
|
1785
1804
|
"aria-label": n.props.title,
|
|
1786
|
-
"aria-expanded":
|
|
1805
|
+
"aria-expanded": d
|
|
1787
1806
|
})
|
|
1788
1807
|
] });
|
|
1789
1808
|
}
|
|
1790
|
-
),
|
|
1809
|
+
), nn = C.div`
|
|
1791
1810
|
${Pe}
|
|
1792
1811
|
padding: ${(e) => {
|
|
1793
1812
|
var t;
|
|
@@ -1802,22 +1821,22 @@ const _t = 300, N1 = ({
|
|
|
1802
1821
|
let t = "";
|
|
1803
1822
|
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((r = e.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, t;
|
|
1804
1823
|
}};
|
|
1805
|
-
`,
|
|
1824
|
+
`, on = ({ ...e }) => /* @__PURE__ */ i(rn, { ...e }), rn = C.div`
|
|
1806
1825
|
display: none;
|
|
1807
|
-
`,
|
|
1826
|
+
`, Io = D(
|
|
1808
1827
|
({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
|
|
1809
|
-
|
|
1828
|
+
sn,
|
|
1810
1829
|
{
|
|
1811
|
-
className:
|
|
1830
|
+
className: M(o, "humany-grid"),
|
|
1812
1831
|
"data-columns": t,
|
|
1813
1832
|
"data-gap": n,
|
|
1814
1833
|
...We(r),
|
|
1815
|
-
...
|
|
1834
|
+
...z(r),
|
|
1816
1835
|
ref: s,
|
|
1817
1836
|
children: e
|
|
1818
1837
|
}
|
|
1819
1838
|
)
|
|
1820
|
-
),
|
|
1839
|
+
), sn = C.div`
|
|
1821
1840
|
display: grid;
|
|
1822
1841
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1823
1842
|
grid-gap: ${(e) => e["data-gap"]};
|
|
@@ -1826,28 +1845,63 @@ const _t = 300, N1 = ({
|
|
|
1826
1845
|
${Mt}
|
|
1827
1846
|
`, Ke = D(
|
|
1828
1847
|
({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
|
|
1829
|
-
const s =
|
|
1830
|
-
|
|
1831
|
-
const
|
|
1832
|
-
...
|
|
1848
|
+
const s = B(), [c, u] = w();
|
|
1849
|
+
v(() => {
|
|
1850
|
+
const d = Tt(s, n), h = {
|
|
1851
|
+
...d,
|
|
1833
1852
|
...e,
|
|
1834
1853
|
transform: {
|
|
1835
|
-
...
|
|
1854
|
+
...d.transform,
|
|
1836
1855
|
...e == null ? void 0 : e.transform
|
|
1837
1856
|
}
|
|
1838
|
-
},
|
|
1839
|
-
|
|
1840
|
-
}, [n, e])
|
|
1857
|
+
}, f = Rt(n, h);
|
|
1858
|
+
u(f);
|
|
1859
|
+
}, [n, e]);
|
|
1860
|
+
const a = L(null), l = s.get("$widget");
|
|
1861
|
+
return v(() => {
|
|
1862
|
+
const d = a.current;
|
|
1863
|
+
if (!d || d.getAttribute("data-observed"))
|
|
1864
|
+
return;
|
|
1865
|
+
new MutationObserver((f) => {
|
|
1866
|
+
f.forEach((g) => {
|
|
1867
|
+
var $, R, N;
|
|
1868
|
+
let m = g.target;
|
|
1869
|
+
if (m.tagName === "DIV" && m.matches("[data-notification]") && m.getAttribute("data-expandable")) {
|
|
1870
|
+
const S = m.firstChild;
|
|
1871
|
+
if (S && S.nodeType === Node.TEXT_NODE) {
|
|
1872
|
+
const T = document.createElement("p");
|
|
1873
|
+
T.appendChild(S), m.appendChild(T);
|
|
1874
|
+
return;
|
|
1875
|
+
} else
|
|
1876
|
+
S && S.nodeType === Node.ELEMENT_NODE && (m = S);
|
|
1877
|
+
} else if (m.tagName !== "P" || !(($ = m.closest("[data-notification]")) != null && $.getAttribute("data-expandable")))
|
|
1878
|
+
return;
|
|
1879
|
+
if (!(m != null && m.closest(".humany-notification-row")))
|
|
1880
|
+
return;
|
|
1881
|
+
const p = (R = m.closest(".humany-notification-row")) == null ? void 0 : R.getAttribute("data-node-id"), y = (N = m.closest("[data-notification]")) == null ? void 0 : N.getAttribute("data-notification");
|
|
1882
|
+
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(y), l.events.dispatch("notification:expandable", {
|
|
1883
|
+
expandable: !0,
|
|
1884
|
+
notificationRowId: p
|
|
1885
|
+
})) : l.events.dispatch("notification:expandable", {
|
|
1886
|
+
expandable: !1,
|
|
1887
|
+
notificationRowId: p
|
|
1888
|
+
});
|
|
1889
|
+
});
|
|
1890
|
+
}).observe(d, {
|
|
1891
|
+
childList: !0,
|
|
1892
|
+
subtree: !0
|
|
1893
|
+
}), d.setAttribute("data-observed", "true");
|
|
1894
|
+
}, [c, l]), /* @__PURE__ */ i(
|
|
1841
1895
|
"div",
|
|
1842
1896
|
{
|
|
1843
|
-
className:
|
|
1844
|
-
...
|
|
1845
|
-
ref:
|
|
1897
|
+
className: M(t, "humany-html"),
|
|
1898
|
+
...z(o),
|
|
1899
|
+
ref: a,
|
|
1846
1900
|
children: c
|
|
1847
1901
|
}
|
|
1848
1902
|
);
|
|
1849
1903
|
}
|
|
1850
|
-
),
|
|
1904
|
+
), an = ({
|
|
1851
1905
|
faIcon: e,
|
|
1852
1906
|
title: t,
|
|
1853
1907
|
className: n = "",
|
|
@@ -1856,12 +1910,12 @@ const _t = 300, N1 = ({
|
|
|
1856
1910
|
}) => /* @__PURE__ */ i(
|
|
1857
1911
|
"i",
|
|
1858
1912
|
{
|
|
1859
|
-
className:
|
|
1913
|
+
className: M(n, `fa fa-${e}`),
|
|
1860
1914
|
title: t,
|
|
1861
1915
|
role: o,
|
|
1862
|
-
...
|
|
1916
|
+
...z(r)
|
|
1863
1917
|
}
|
|
1864
|
-
),
|
|
1918
|
+
), Oo = D(
|
|
1865
1919
|
({
|
|
1866
1920
|
className: e = "",
|
|
1867
1921
|
autoFocus: t = !1,
|
|
@@ -1874,72 +1928,72 @@ const _t = 300, N1 = ({
|
|
|
1874
1928
|
selectAllOnFocus: s,
|
|
1875
1929
|
onChange: c = () => {
|
|
1876
1930
|
},
|
|
1877
|
-
disabled:
|
|
1931
|
+
disabled: u = !1,
|
|
1878
1932
|
type: a,
|
|
1879
1933
|
...l
|
|
1880
|
-
},
|
|
1881
|
-
const [h, f] = w(t),
|
|
1882
|
-
ge(
|
|
1934
|
+
}, d) => {
|
|
1935
|
+
const [h, f] = w(t), g = L();
|
|
1936
|
+
ge(d, () => g.current), v(() => {
|
|
1883
1937
|
var y;
|
|
1884
|
-
t && ((y =
|
|
1885
|
-
}, [t,
|
|
1886
|
-
const
|
|
1887
|
-
f(y), n && n(y), s && y &&
|
|
1938
|
+
t && ((y = g == null ? void 0 : g.current) == null || y.focus());
|
|
1939
|
+
}, [t, d, g]);
|
|
1940
|
+
const m = (y, $) => {
|
|
1941
|
+
f(y), n && n(y), s && y && $.target.select();
|
|
1888
1942
|
}, p = {
|
|
1889
|
-
...
|
|
1890
|
-
disabled:
|
|
1943
|
+
...z(l),
|
|
1944
|
+
disabled: u,
|
|
1891
1945
|
autoFocus: t,
|
|
1892
1946
|
type: a,
|
|
1893
1947
|
onKeyDown: (y) => {
|
|
1894
1948
|
y.key === "Enter" && h && o(y), y.key === "Escape" && h && r(y);
|
|
1895
1949
|
},
|
|
1896
|
-
onFocus: (y) =>
|
|
1897
|
-
onBlur: (y) =>
|
|
1950
|
+
onFocus: (y) => m(!0, y),
|
|
1951
|
+
onBlur: (y) => m(!1, y),
|
|
1898
1952
|
onChange: (y) => c(y.target.value || ""),
|
|
1899
|
-
className:
|
|
1953
|
+
className: M(e, "humany-input"),
|
|
1900
1954
|
"data-type": a
|
|
1901
1955
|
};
|
|
1902
1956
|
return a !== "textarea" ? /* @__PURE__ */ i(
|
|
1903
1957
|
"input",
|
|
1904
1958
|
{
|
|
1905
1959
|
...p,
|
|
1906
|
-
ref:
|
|
1960
|
+
ref: g
|
|
1907
1961
|
}
|
|
1908
1962
|
) : /* @__PURE__ */ i(
|
|
1909
1963
|
"textarea",
|
|
1910
1964
|
{
|
|
1911
1965
|
...p,
|
|
1912
|
-
ref:
|
|
1966
|
+
ref: g
|
|
1913
1967
|
}
|
|
1914
1968
|
);
|
|
1915
1969
|
}
|
|
1916
|
-
),
|
|
1970
|
+
), cn = D(
|
|
1917
1971
|
({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) => {
|
|
1918
1972
|
const c = t.length === 1 && t[0].expanded;
|
|
1919
1973
|
return /* @__PURE__ */ i(
|
|
1920
1974
|
"ul",
|
|
1921
1975
|
{
|
|
1922
1976
|
role: c ? "none" : void 0,
|
|
1923
|
-
className:
|
|
1977
|
+
className: M(e, "humany-list"),
|
|
1924
1978
|
"data-item-count": t.length,
|
|
1925
|
-
...
|
|
1979
|
+
...z(r),
|
|
1926
1980
|
ref: s,
|
|
1927
1981
|
children: t.map(
|
|
1928
|
-
(
|
|
1982
|
+
(u, a, l) => o ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(u, a, l) }, u.id || a) : n(u, a, l)
|
|
1929
1983
|
)
|
|
1930
1984
|
}
|
|
1931
1985
|
);
|
|
1932
1986
|
}
|
|
1933
|
-
),
|
|
1934
|
-
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c },
|
|
1987
|
+
), ln = D(
|
|
1988
|
+
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, u) => {
|
|
1935
1989
|
var l;
|
|
1936
1990
|
const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
|
|
1937
1991
|
return /* @__PURE__ */ b(
|
|
1938
1992
|
"div",
|
|
1939
1993
|
{
|
|
1940
|
-
className:
|
|
1941
|
-
...
|
|
1942
|
-
ref:
|
|
1994
|
+
className: M(o, "humany-paragraph"),
|
|
1995
|
+
...z(c),
|
|
1996
|
+
ref: u,
|
|
1943
1997
|
children: [
|
|
1944
1998
|
n ? /* @__PURE__ */ b(
|
|
1945
1999
|
X,
|
|
@@ -1957,7 +2011,7 @@ const _t = 300, N1 = ({
|
|
|
1957
2011
|
}
|
|
1958
2012
|
);
|
|
1959
2013
|
}
|
|
1960
|
-
),
|
|
2014
|
+
), dn = D(
|
|
1961
2015
|
({
|
|
1962
2016
|
header: e,
|
|
1963
2017
|
customHeader: t,
|
|
@@ -1966,34 +2020,34 @@ const _t = 300, N1 = ({
|
|
|
1966
2020
|
className: r,
|
|
1967
2021
|
children: s,
|
|
1968
2022
|
symbol: c,
|
|
1969
|
-
items:
|
|
2023
|
+
items: u,
|
|
1970
2024
|
renderItem: a,
|
|
1971
2025
|
renderLi: l,
|
|
1972
|
-
ulProps:
|
|
2026
|
+
ulProps: d,
|
|
1973
2027
|
...h
|
|
1974
2028
|
}, f) => /* @__PURE__ */ b(
|
|
1975
2029
|
"div",
|
|
1976
2030
|
{
|
|
1977
|
-
className:
|
|
1978
|
-
"data-item-count":
|
|
1979
|
-
...
|
|
2031
|
+
className: M(r, "humany-item-list"),
|
|
2032
|
+
"data-item-count": u.length,
|
|
2033
|
+
...z(h),
|
|
1980
2034
|
ref: f,
|
|
1981
2035
|
children: [
|
|
1982
|
-
t || (e || n || o ? /* @__PURE__ */ i(
|
|
1983
|
-
|
|
1984
|
-
|
|
2036
|
+
t || (e || n || o ? /* @__PURE__ */ i(ln, { symbol: c, header: e, text: n, html: o }) : null),
|
|
2037
|
+
u.length ? /* @__PURE__ */ i(
|
|
2038
|
+
cn,
|
|
1985
2039
|
{
|
|
1986
|
-
items:
|
|
2040
|
+
items: u,
|
|
1987
2041
|
renderItem: a,
|
|
1988
2042
|
renderLi: l,
|
|
1989
|
-
...
|
|
2043
|
+
...d
|
|
1990
2044
|
}
|
|
1991
2045
|
) : null,
|
|
1992
2046
|
s
|
|
1993
2047
|
]
|
|
1994
2048
|
}
|
|
1995
2049
|
)
|
|
1996
|
-
),
|
|
2050
|
+
), Ao = ({
|
|
1997
2051
|
className: e = "",
|
|
1998
2052
|
tree: t,
|
|
1999
2053
|
renderItem: n,
|
|
@@ -2001,32 +2055,32 @@ const _t = 300, N1 = ({
|
|
|
2001
2055
|
renderUnselected: r = !0,
|
|
2002
2056
|
renderEmpty: s = !0,
|
|
2003
2057
|
ulProps: c,
|
|
2004
|
-
liProps:
|
|
2058
|
+
liProps: u
|
|
2005
2059
|
}) => {
|
|
2006
|
-
const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected),
|
|
2007
|
-
|
|
2060
|
+
const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected), d = (h, f) => /* @__PURE__ */ i(
|
|
2061
|
+
dn,
|
|
2008
2062
|
{
|
|
2009
|
-
className:
|
|
2063
|
+
className: M(`humany-item-tree-level-${f}`),
|
|
2010
2064
|
items: h,
|
|
2011
2065
|
ulProps: c,
|
|
2012
|
-
renderItem: (
|
|
2013
|
-
const { id:
|
|
2014
|
-
return !s &&
|
|
2066
|
+
renderItem: (g) => {
|
|
2067
|
+
const { id: m, selected: p, items: y, matches: $ } = g, R = p && l(y);
|
|
2068
|
+
return !s && !$ ? null : /* @__PURE__ */ at(
|
|
2015
2069
|
"li",
|
|
2016
2070
|
{
|
|
2017
|
-
...
|
|
2018
|
-
key:
|
|
2071
|
+
...z(u),
|
|
2072
|
+
key: m,
|
|
2019
2073
|
className: "humany-item-tree-item"
|
|
2020
2074
|
},
|
|
2021
|
-
n && n(
|
|
2022
|
-
y && (r || R) &&
|
|
2075
|
+
n && n(g, f, R),
|
|
2076
|
+
y && (r || R) && d(y, f + 1)
|
|
2023
2077
|
);
|
|
2024
2078
|
}
|
|
2025
2079
|
}
|
|
2026
2080
|
);
|
|
2027
|
-
return /* @__PURE__ */ b("div", { className:
|
|
2081
|
+
return /* @__PURE__ */ b("div", { className: M(e, "humany-item-tree"), children: [
|
|
2028
2082
|
o && o(!a(t || [])),
|
|
2029
|
-
t &&
|
|
2083
|
+
t && d(t, 1)
|
|
2030
2084
|
] });
|
|
2031
2085
|
}, un = D(
|
|
2032
2086
|
({
|
|
@@ -2038,72 +2092,72 @@ const _t = 300, N1 = ({
|
|
|
2038
2092
|
params: r = {},
|
|
2039
2093
|
children: s,
|
|
2040
2094
|
...c
|
|
2041
|
-
},
|
|
2042
|
-
const a = Oe(), l =
|
|
2095
|
+
}, u) => {
|
|
2096
|
+
const a = Oe(), l = B();
|
|
2043
2097
|
if (!a)
|
|
2044
2098
|
return null;
|
|
2045
|
-
let
|
|
2099
|
+
let d = "";
|
|
2046
2100
|
const h = {
|
|
2047
2101
|
onClick: t,
|
|
2048
|
-
className:
|
|
2049
|
-
to:
|
|
2050
|
-
innerRef:
|
|
2102
|
+
className: M(e, "humany-route-link"),
|
|
2103
|
+
to: d,
|
|
2104
|
+
innerRef: u,
|
|
2051
2105
|
...c,
|
|
2052
2106
|
ref: null
|
|
2053
2107
|
};
|
|
2054
2108
|
if (n) {
|
|
2055
2109
|
if (!(a.routes || []).find((p) => p.name === n))
|
|
2056
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2110
|
+
return process.env.NODE_ENV !== "production" && de.warn(
|
|
2057
2111
|
`Unable to create route. No route named "${n}" exist.`
|
|
2058
2112
|
), /* @__PURE__ */ i(
|
|
2059
|
-
|
|
2113
|
+
ue,
|
|
2060
2114
|
{
|
|
2061
2115
|
...h,
|
|
2062
2116
|
onClick: (p) => {
|
|
2063
|
-
t(p), p.preventDefault(), process.env.NODE_ENV !== "production" &&
|
|
2117
|
+
t(p), p.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(
|
|
2064
2118
|
`Unable to navigate. No route named "${n}" exist.`
|
|
2065
2119
|
);
|
|
2066
2120
|
},
|
|
2067
2121
|
children: s
|
|
2068
2122
|
}
|
|
2069
2123
|
);
|
|
2070
|
-
const
|
|
2124
|
+
const m = Object.keys(r).reduce(
|
|
2071
2125
|
(p, y) => {
|
|
2072
|
-
const
|
|
2073
|
-
if (Array.isArray(
|
|
2074
|
-
if (
|
|
2126
|
+
const $ = r[y];
|
|
2127
|
+
if (Array.isArray($)) {
|
|
2128
|
+
if ($.length === 0)
|
|
2075
2129
|
return p;
|
|
2076
|
-
p[y] =
|
|
2130
|
+
p[y] = $.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
|
|
2077
2131
|
} else
|
|
2078
|
-
p[y] = typeof
|
|
2132
|
+
p[y] = typeof $ == "string" ? encodeURIComponent($) : $;
|
|
2079
2133
|
return p;
|
|
2080
2134
|
},
|
|
2081
2135
|
{}
|
|
2082
2136
|
);
|
|
2083
2137
|
try {
|
|
2084
|
-
|
|
2138
|
+
d = a.generate(n, m || {});
|
|
2085
2139
|
} catch {
|
|
2086
|
-
return /* @__PURE__ */ i(
|
|
2140
|
+
return /* @__PURE__ */ i(ue, { ...h, ref: h.innerRef, children: s });
|
|
2087
2141
|
}
|
|
2088
|
-
|
|
2142
|
+
d && a.settings.mode && a.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
|
|
2089
2143
|
} else if (o && a.history)
|
|
2090
|
-
|
|
2144
|
+
d = a.history.createHref({
|
|
2091
2145
|
hash: "",
|
|
2092
2146
|
pathname: o,
|
|
2093
2147
|
search: "",
|
|
2094
2148
|
state: void 0
|
|
2095
2149
|
});
|
|
2096
2150
|
else
|
|
2097
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2151
|
+
return process.env.NODE_ENV !== "production" && de.warn(
|
|
2098
2152
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2099
2153
|
), null;
|
|
2100
|
-
if (a.settings && a.settings.mode ===
|
|
2154
|
+
if (a.settings && a.settings.mode === Te.scopedHash) {
|
|
2101
2155
|
const f = l.get("$widget").name;
|
|
2102
|
-
|
|
2156
|
+
d = bt(d, f);
|
|
2103
2157
|
}
|
|
2104
|
-
return h.as ? /* @__PURE__ */ i(
|
|
2158
|
+
return h.as ? /* @__PURE__ */ i(hn, { ...h, as: h.as, children: s }) : /* @__PURE__ */ i(ue, { ...h, to: d, children: s });
|
|
2105
2159
|
}
|
|
2106
|
-
),
|
|
2160
|
+
), hn = C.span``, xe = D(
|
|
2107
2161
|
({
|
|
2108
2162
|
className: e,
|
|
2109
2163
|
disabled: t = !1,
|
|
@@ -2114,46 +2168,46 @@ const _t = 300, N1 = ({
|
|
|
2114
2168
|
},
|
|
2115
2169
|
title: s,
|
|
2116
2170
|
as: c,
|
|
2117
|
-
href:
|
|
2171
|
+
href: u,
|
|
2118
2172
|
children: a,
|
|
2119
2173
|
target: l,
|
|
2120
|
-
routeName:
|
|
2174
|
+
routeName: d,
|
|
2121
2175
|
params: h,
|
|
2122
2176
|
...f
|
|
2123
|
-
},
|
|
2124
|
-
var
|
|
2125
|
-
const
|
|
2177
|
+
}, g) => {
|
|
2178
|
+
var N, S;
|
|
2179
|
+
const m = {
|
|
2126
2180
|
title: s,
|
|
2127
|
-
role:
|
|
2128
|
-
"aria-expanded":
|
|
2181
|
+
role: d === "index" || d === "contact-method" || t ? "button" : void 0,
|
|
2182
|
+
"aria-expanded": d === "index" ? "false" : void 0,
|
|
2129
2183
|
disabled: t,
|
|
2130
2184
|
as: c,
|
|
2131
2185
|
tabIndex: n,
|
|
2132
|
-
className:
|
|
2186
|
+
className: M(e, "humany-link", [
|
|
2133
2187
|
!!t,
|
|
2134
2188
|
"humany-disabled"
|
|
2135
2189
|
]),
|
|
2136
|
-
onClick: (
|
|
2137
|
-
if (
|
|
2138
|
-
|
|
2190
|
+
onClick: (T) => {
|
|
2191
|
+
if (T.persist(), t) {
|
|
2192
|
+
T.preventDefault();
|
|
2139
2193
|
return;
|
|
2140
2194
|
}
|
|
2141
|
-
o(
|
|
2195
|
+
o(T);
|
|
2142
2196
|
},
|
|
2143
|
-
onKeyDown: (
|
|
2144
|
-
if (
|
|
2145
|
-
|
|
2197
|
+
onKeyDown: (T) => {
|
|
2198
|
+
if (T.persist(), t) {
|
|
2199
|
+
T.key !== "Tab" && T.preventDefault();
|
|
2146
2200
|
return;
|
|
2147
2201
|
}
|
|
2148
|
-
r(
|
|
2202
|
+
r(T);
|
|
2149
2203
|
}
|
|
2150
2204
|
};
|
|
2151
|
-
f["data-client-name"] === "custom.link" && (
|
|
2152
|
-
const y =
|
|
2153
|
-
return
|
|
2205
|
+
f["data-client-name"] === "custom.link" && (m.role = "link");
|
|
2206
|
+
const y = B().get("$settings"), $ = t && ((S = (N = y == null ? void 0 : y.data) == null ? void 0 : N.accessibility) == null ? void 0 : S.disableInactiveLink), R = f.description || "<p></p>";
|
|
2207
|
+
return $ ? /* @__PURE__ */ b(fn, { className: "disabled-link", children: [
|
|
2154
2208
|
/* @__PURE__ */ i("div", { className: "icon-placeholder" }),
|
|
2155
2209
|
/* @__PURE__ */ b("div", { className: "humany-contact-link-rich-content", children: [
|
|
2156
|
-
/* @__PURE__ */ i("span", { children:
|
|
2210
|
+
/* @__PURE__ */ i("span", { children: m.title }),
|
|
2157
2211
|
/* @__PURE__ */ i(
|
|
2158
2212
|
"div",
|
|
2159
2213
|
{
|
|
@@ -2162,29 +2216,29 @@ const _t = 300, N1 = ({
|
|
|
2162
2216
|
}
|
|
2163
2217
|
)
|
|
2164
2218
|
] })
|
|
2165
|
-
] }) :
|
|
2166
|
-
|
|
2219
|
+
] }) : d ? /* @__PURE__ */ i(
|
|
2220
|
+
mn,
|
|
2167
2221
|
{
|
|
2168
|
-
name:
|
|
2222
|
+
name: d,
|
|
2169
2223
|
params: h,
|
|
2170
|
-
...
|
|
2171
|
-
...
|
|
2172
|
-
ref:
|
|
2224
|
+
...m,
|
|
2225
|
+
...z(f),
|
|
2226
|
+
ref: g,
|
|
2173
2227
|
children: a
|
|
2174
2228
|
}
|
|
2175
2229
|
) : /* @__PURE__ */ i(
|
|
2176
|
-
|
|
2230
|
+
gn,
|
|
2177
2231
|
{
|
|
2178
|
-
href:
|
|
2232
|
+
href: u,
|
|
2179
2233
|
target: l,
|
|
2180
|
-
...
|
|
2181
|
-
...
|
|
2182
|
-
ref:
|
|
2234
|
+
...m,
|
|
2235
|
+
...z(f),
|
|
2236
|
+
ref: g,
|
|
2183
2237
|
children: a
|
|
2184
2238
|
}
|
|
2185
2239
|
);
|
|
2186
2240
|
}
|
|
2187
|
-
),
|
|
2241
|
+
), fn = C.div`
|
|
2188
2242
|
display: flex;
|
|
2189
2243
|
opacity: 0.7;
|
|
2190
2244
|
.inner-span {
|
|
@@ -2204,12 +2258,12 @@ const _t = 300, N1 = ({
|
|
|
2204
2258
|
vertical-align: bottom;
|
|
2205
2259
|
color: #333333;
|
|
2206
2260
|
}
|
|
2207
|
-
`,
|
|
2261
|
+
`, mn = C(un)`
|
|
2208
2262
|
${(e) => e.disabled ? `
|
|
2209
2263
|
pointer-events: none;
|
|
2210
2264
|
opacity: .7;
|
|
2211
2265
|
` : "cursor: pointer;"}
|
|
2212
|
-
`,
|
|
2266
|
+
`, gn = C.a`
|
|
2213
2267
|
${(e) => e.disabled ? `
|
|
2214
2268
|
pointer-events: none;
|
|
2215
2269
|
opacity: .7;
|
|
@@ -2222,9 +2276,9 @@ const _t = 300, N1 = ({
|
|
|
2222
2276
|
},
|
|
2223
2277
|
...r
|
|
2224
2278
|
}) => {
|
|
2225
|
-
const s = L(), c =
|
|
2226
|
-
(
|
|
2227
|
-
|
|
2279
|
+
const s = L(), c = E(
|
|
2280
|
+
(u) => {
|
|
2281
|
+
u.target === s.current && o(u);
|
|
2228
2282
|
},
|
|
2229
2283
|
[o]
|
|
2230
2284
|
);
|
|
@@ -2237,7 +2291,7 @@ const _t = 300, N1 = ({
|
|
|
2237
2291
|
unmountOnExit: !0,
|
|
2238
2292
|
timeout: t,
|
|
2239
2293
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
2240
|
-
|
|
2294
|
+
pn,
|
|
2241
2295
|
{
|
|
2242
2296
|
className: "humany-overlay",
|
|
2243
2297
|
duration: t,
|
|
@@ -2249,7 +2303,7 @@ const _t = 300, N1 = ({
|
|
|
2249
2303
|
) })
|
|
2250
2304
|
}
|
|
2251
2305
|
);
|
|
2252
|
-
},
|
|
2306
|
+
}, pn = C.div`
|
|
2253
2307
|
background: rgba(0, 0, 0, 0.6);
|
|
2254
2308
|
min-width: 100%;
|
|
2255
2309
|
min-height: 100%;
|
|
@@ -2279,11 +2333,11 @@ const _t = 300, N1 = ({
|
|
|
2279
2333
|
&.humany-overlay-transition-exit-done {
|
|
2280
2334
|
opacity: 0;
|
|
2281
2335
|
}
|
|
2282
|
-
`,
|
|
2336
|
+
`, Cn = Be`
|
|
2283
2337
|
100% {
|
|
2284
2338
|
transform: rotate(360deg);
|
|
2285
2339
|
}
|
|
2286
|
-
`,
|
|
2340
|
+
`, yn = Be`
|
|
2287
2341
|
0% {
|
|
2288
2342
|
stroke-dasharray: 1, 200;
|
|
2289
2343
|
stroke-dashoffset: 0;
|
|
@@ -2296,8 +2350,8 @@ const _t = 300, N1 = ({
|
|
|
2296
2350
|
stroke-dasharray: 89, 200;
|
|
2297
2351
|
stroke-dashoffset: -124px;
|
|
2298
2352
|
}
|
|
2299
|
-
`,
|
|
2300
|
-
animation: ${
|
|
2353
|
+
`, bn = C.svg`
|
|
2354
|
+
animation: ${Cn} 2s linear infinite;
|
|
2301
2355
|
height: 100%;
|
|
2302
2356
|
transform-origin: center center;
|
|
2303
2357
|
width: 100%;
|
|
@@ -2308,7 +2362,7 @@ const _t = 300, N1 = ({
|
|
|
2308
2362
|
right: 0;
|
|
2309
2363
|
margin: auto;
|
|
2310
2364
|
transition: 200ms ease-out opacity;
|
|
2311
|
-
`,
|
|
2365
|
+
`, vn = C.div`
|
|
2312
2366
|
position: absolute;
|
|
2313
2367
|
top: 0;
|
|
2314
2368
|
bottom: 0;
|
|
@@ -2326,7 +2380,7 @@ const _t = 300, N1 = ({
|
|
|
2326
2380
|
svg {
|
|
2327
2381
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2328
2382
|
}
|
|
2329
|
-
`,
|
|
2383
|
+
`, xn = C.div`
|
|
2330
2384
|
position: relative;
|
|
2331
2385
|
margin: 0 auto;
|
|
2332
2386
|
width: 100px;
|
|
@@ -2335,23 +2389,23 @@ const _t = 300, N1 = ({
|
|
|
2335
2389
|
display: block;
|
|
2336
2390
|
padding-top: 100%;
|
|
2337
2391
|
}
|
|
2338
|
-
`,
|
|
2392
|
+
`, wn = C.circle`
|
|
2339
2393
|
stroke-dasharray: 1, 200;
|
|
2340
2394
|
stroke-dashoffset: 0;
|
|
2341
|
-
animation: ${
|
|
2395
|
+
animation: ${yn} 1.5s ease-in-out infinite;
|
|
2342
2396
|
stroke-linecap: round;
|
|
2343
2397
|
stroke: ${(e) => {
|
|
2344
2398
|
var t;
|
|
2345
2399
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2346
2400
|
}};
|
|
2347
2401
|
stroke-width: 2px;
|
|
2348
|
-
`,
|
|
2349
|
-
|
|
2402
|
+
`, kn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
|
|
2403
|
+
vn,
|
|
2350
2404
|
{
|
|
2351
|
-
className:
|
|
2405
|
+
className: M("humany-loader", e),
|
|
2352
2406
|
"data-loading": t,
|
|
2353
|
-
children: /* @__PURE__ */ i(
|
|
2354
|
-
|
|
2407
|
+
children: /* @__PURE__ */ i(xn, { className: "humany-spinner", children: /* @__PURE__ */ i(bn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
|
|
2408
|
+
wn,
|
|
2355
2409
|
{
|
|
2356
2410
|
cx: "50",
|
|
2357
2411
|
cy: "50",
|
|
@@ -2362,24 +2416,24 @@ const _t = 300, N1 = ({
|
|
|
2362
2416
|
}
|
|
2363
2417
|
) }) })
|
|
2364
2418
|
}
|
|
2365
|
-
),
|
|
2419
|
+
), $n = ({
|
|
2366
2420
|
zoomState: e,
|
|
2367
2421
|
image: t,
|
|
2368
2422
|
changeZoom: n,
|
|
2369
2423
|
...o
|
|
2370
2424
|
}) => {
|
|
2371
|
-
var
|
|
2372
|
-
const r = L(null), [s, c] = w(!1), [
|
|
2425
|
+
var m;
|
|
2426
|
+
const r = L(null), [s, c] = w(!1), [u, a] = w(!1), { width: l, height: d, ...h } = o.style || {}, f = E(() => {
|
|
2373
2427
|
const p = r.current;
|
|
2374
2428
|
if (p) {
|
|
2375
|
-
const y = window.innerWidth / p.naturalWidth,
|
|
2376
|
-
return
|
|
2429
|
+
const y = window.innerWidth / p.naturalWidth, $ = window.innerHeight / p.naturalHeight, R = Math.min(y, $);
|
|
2430
|
+
return $ >= 1 && y >= 1 ? 1 : R;
|
|
2377
2431
|
}
|
|
2378
2432
|
return 1;
|
|
2379
|
-
}, [s, t.src]),
|
|
2433
|
+
}, [s, t.src]), g = re(() => {
|
|
2380
2434
|
const p = r.current;
|
|
2381
2435
|
if (p && s) {
|
|
2382
|
-
if (!
|
|
2436
|
+
if (!u) {
|
|
2383
2437
|
a(!0);
|
|
2384
2438
|
const y = f();
|
|
2385
2439
|
n(y);
|
|
@@ -2391,30 +2445,30 @@ const _t = 300, N1 = ({
|
|
|
2391
2445
|
return v(() => (c(!1), function() {
|
|
2392
2446
|
a(!1);
|
|
2393
2447
|
}), [t.src]), /* @__PURE__ */ b(U, { children: [
|
|
2394
|
-
/* @__PURE__ */ i(
|
|
2448
|
+
/* @__PURE__ */ i(Ln, { loading: !s }),
|
|
2395
2449
|
/* @__PURE__ */ i(
|
|
2396
|
-
|
|
2450
|
+
Mn,
|
|
2397
2451
|
{
|
|
2398
2452
|
onLoad: () => {
|
|
2399
2453
|
c(!0);
|
|
2400
2454
|
},
|
|
2401
2455
|
ref: r,
|
|
2402
|
-
imageSize:
|
|
2456
|
+
imageSize: g,
|
|
2403
2457
|
draggable: "false",
|
|
2404
2458
|
...o,
|
|
2405
|
-
alt: ((
|
|
2459
|
+
alt: ((m = o.alt) == null ? void 0 : m.toString()) || "",
|
|
2406
2460
|
style: h,
|
|
2407
2461
|
src: t.src,
|
|
2408
2462
|
loaded: s
|
|
2409
2463
|
}
|
|
2410
2464
|
),
|
|
2411
|
-
/* @__PURE__ */ i(
|
|
2465
|
+
/* @__PURE__ */ i(Sn, {})
|
|
2412
2466
|
] });
|
|
2413
|
-
},
|
|
2467
|
+
}, Ln = C(kn)`
|
|
2414
2468
|
svg circle {
|
|
2415
2469
|
stroke: #ffffff;
|
|
2416
2470
|
}
|
|
2417
|
-
`,
|
|
2471
|
+
`, Mn = C.img`
|
|
2418
2472
|
transform: none;
|
|
2419
2473
|
|
|
2420
2474
|
${(e) => e.imageSize && k`
|
|
@@ -2425,54 +2479,54 @@ const _t = 300, N1 = ({
|
|
|
2425
2479
|
vertical-align: middle;
|
|
2426
2480
|
position: relative;
|
|
2427
2481
|
${(e) => !e.loaded && "display:none;"}
|
|
2428
|
-
`,
|
|
2482
|
+
`, Sn = C.div`
|
|
2429
2483
|
height: 100%;
|
|
2430
2484
|
display: inline-block;
|
|
2431
2485
|
vertical-align: middle;
|
|
2432
|
-
`,
|
|
2433
|
-
const e = L(), [t, n] = w(!0), o =
|
|
2486
|
+
`, En = () => {
|
|
2487
|
+
const e = L(), [t, n] = w(!0), o = E(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2434
2488
|
n(!1);
|
|
2435
2489
|
}, 3e3), () => {
|
|
2436
2490
|
e.current && clearTimeout(e.current);
|
|
2437
2491
|
}), [t, e]);
|
|
2438
2492
|
return [t, o];
|
|
2439
|
-
},
|
|
2493
|
+
}, Rn = ({ attrs: e, htmlBody: t }) => {
|
|
2440
2494
|
var Se;
|
|
2441
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [
|
|
2495
|
+
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [u, a] = w({ top: 0, left: 0, x: 0, y: 0 }), [l, d] = w(!1), [h, f] = En(), [g, m] = w(null), [p, y] = w(null), $ = L(null), R = L(null), N = L(null), S = L(null), T = L(null), [Ue, qe] = w(null);
|
|
2442
2496
|
v(() => {
|
|
2443
|
-
n &&
|
|
2497
|
+
n && m(null);
|
|
2444
2498
|
}, [n]), v(() => {
|
|
2445
2499
|
c(1);
|
|
2446
|
-
}, [
|
|
2500
|
+
}, [g]), v(() => {
|
|
2447
2501
|
var I, ee;
|
|
2448
|
-
if (
|
|
2502
|
+
if (g === null || R.current === null)
|
|
2449
2503
|
return;
|
|
2450
|
-
const x = R.current.firstElementChild,
|
|
2504
|
+
const x = R.current.firstElementChild, H = (I = N.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = N.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2451
2505
|
if (p === "Right")
|
|
2452
|
-
J && V ? V.focus() : G &&
|
|
2506
|
+
J && V ? V.focus() : G && H && H.focus();
|
|
2453
2507
|
else if (p === "Left")
|
|
2454
|
-
G &&
|
|
2508
|
+
G && H ? H.focus() : J && V && V.focus();
|
|
2455
2509
|
else {
|
|
2456
2510
|
if (!x)
|
|
2457
2511
|
return;
|
|
2458
2512
|
x.focus();
|
|
2459
2513
|
}
|
|
2460
|
-
}, [
|
|
2514
|
+
}, [g, R, N, p]), v(() => {
|
|
2461
2515
|
if (o) {
|
|
2462
2516
|
if (G)
|
|
2463
2517
|
return Le();
|
|
2464
2518
|
} else if (r && J)
|
|
2465
2519
|
return Me();
|
|
2466
2520
|
}, [o, r]), v(() => {
|
|
2467
|
-
var
|
|
2468
|
-
const x = ((V = (
|
|
2521
|
+
var H, V;
|
|
2522
|
+
const x = ((V = (H = T.current) == null ? void 0 : H.style) == null ? void 0 : V.float) || "";
|
|
2469
2523
|
(x === "left" || x === "right") && qe(x);
|
|
2470
2524
|
}, []);
|
|
2471
2525
|
const A = re(() => {
|
|
2472
2526
|
const x = document.createElement("div");
|
|
2473
2527
|
x.innerHTML = t || "";
|
|
2474
|
-
const
|
|
2475
|
-
return Array.from(
|
|
2528
|
+
const H = x.getElementsByTagName("img");
|
|
2529
|
+
return Array.from(H).reduce(
|
|
2476
2530
|
(I, ee) => {
|
|
2477
2531
|
const Ee = ee.getAttribute("src");
|
|
2478
2532
|
if (Ee) {
|
|
@@ -2485,70 +2539,70 @@ const _t = 300, N1 = ({
|
|
|
2485
2539
|
},
|
|
2486
2540
|
[]
|
|
2487
2541
|
);
|
|
2488
|
-
}, [t]), ke =
|
|
2542
|
+
}, [t]), ke = E(() => {
|
|
2489
2543
|
const { src: x } = e;
|
|
2490
2544
|
if (x) {
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2545
|
+
const H = A.findIndex((V, I) => V.src === x);
|
|
2546
|
+
m(H);
|
|
2493
2547
|
}
|
|
2494
|
-
}, [A, e]), Qe =
|
|
2495
|
-
|
|
2496
|
-
}, []), $e =
|
|
2548
|
+
}, [A, e]), Qe = E((x) => {
|
|
2549
|
+
m(null);
|
|
2550
|
+
}, []), $e = E(
|
|
2497
2551
|
(x) => {
|
|
2498
2552
|
c(x ? s + s * 0.25 : s - s * 0.25);
|
|
2499
2553
|
},
|
|
2500
2554
|
[c, s]
|
|
2501
|
-
), Ge =
|
|
2502
|
-
if (
|
|
2503
|
-
const { src: x } = A[
|
|
2555
|
+
), Ge = E(() => {
|
|
2556
|
+
if (g !== null) {
|
|
2557
|
+
const { src: x } = A[g];
|
|
2504
2558
|
x && window.open(x, "_self");
|
|
2505
2559
|
}
|
|
2506
|
-
}, [A,
|
|
2560
|
+
}, [A, g]), Je = E(
|
|
2507
2561
|
(x) => {
|
|
2508
|
-
const
|
|
2509
|
-
|
|
2510
|
-
top:
|
|
2511
|
-
left:
|
|
2562
|
+
const H = S.current;
|
|
2563
|
+
H && (a({
|
|
2564
|
+
top: H.scrollTop,
|
|
2565
|
+
left: H.scrollLeft,
|
|
2512
2566
|
x: x.clientX,
|
|
2513
2567
|
y: x.clientY
|
|
2514
|
-
}),
|
|
2568
|
+
}), d(!0));
|
|
2515
2569
|
},
|
|
2516
|
-
[
|
|
2517
|
-
), et =
|
|
2570
|
+
[S]
|
|
2571
|
+
), et = E(
|
|
2518
2572
|
(x) => {
|
|
2519
|
-
const
|
|
2520
|
-
if (
|
|
2521
|
-
const V = x.clientX -
|
|
2522
|
-
|
|
2573
|
+
const H = S.current;
|
|
2574
|
+
if (H && l) {
|
|
2575
|
+
const V = x.clientX - u.x, I = x.clientY - u.y;
|
|
2576
|
+
H.scrollTop = u.top - I, H.scrollLeft = u.left - V;
|
|
2523
2577
|
}
|
|
2524
2578
|
},
|
|
2525
|
-
[l,
|
|
2579
|
+
[l, u]
|
|
2526
2580
|
), tt = (x) => {
|
|
2527
|
-
x.preventDefault(),
|
|
2581
|
+
x.preventDefault(), d(!1);
|
|
2528
2582
|
}, nt = re(() => {
|
|
2529
|
-
if (
|
|
2530
|
-
const x =
|
|
2583
|
+
if (S.current) {
|
|
2584
|
+
const x = S.current.getElementsByTagName("img");
|
|
2531
2585
|
if (x && x.length) {
|
|
2532
|
-
const
|
|
2533
|
-
return
|
|
2586
|
+
const H = x[0];
|
|
2587
|
+
return H.width > window.innerWidth || H.height > window.innerHeight;
|
|
2534
2588
|
}
|
|
2535
2589
|
}
|
|
2536
2590
|
return !1;
|
|
2537
|
-
}, [
|
|
2538
|
-
|
|
2591
|
+
}, [S, s]), Le = () => {
|
|
2592
|
+
g !== null && (y("Left"), m(g - 1));
|
|
2539
2593
|
}, Me = () => {
|
|
2540
|
-
|
|
2541
|
-
}, G =
|
|
2594
|
+
g !== null && (y("Right"), m(g + 1));
|
|
2595
|
+
}, G = g !== null && g > 0 && A.length > 1, J = g !== null && A.length - 1 > g;
|
|
2542
2596
|
return /* @__PURE__ */ b(U, { children: [
|
|
2543
|
-
/* @__PURE__ */ i(Ye, { visible:
|
|
2544
|
-
|
|
2597
|
+
/* @__PURE__ */ i(Ye, { visible: g !== null, onClick: Qe, children: /* @__PURE__ */ b(
|
|
2598
|
+
Wn,
|
|
2545
2599
|
{
|
|
2546
2600
|
onMouseDown: () => f(),
|
|
2547
2601
|
onMouseMove: () => f(),
|
|
2548
2602
|
onTouchStart: () => f(),
|
|
2549
2603
|
onKeyDown: () => f(),
|
|
2550
2604
|
children: [
|
|
2551
|
-
/* @__PURE__ */ i(
|
|
2605
|
+
/* @__PURE__ */ i(Zn, { show: h.toString(), children: /* @__PURE__ */ i(
|
|
2552
2606
|
Dn,
|
|
2553
2607
|
{
|
|
2554
2608
|
ref: R,
|
|
@@ -2561,7 +2615,7 @@ const _t = 300, N1 = ({
|
|
|
2561
2615
|
},
|
|
2562
2616
|
{
|
|
2563
2617
|
id: "lightbox-close",
|
|
2564
|
-
onClick: () =>
|
|
2618
|
+
onClick: () => m(null),
|
|
2565
2619
|
icon: "lightbox-close",
|
|
2566
2620
|
ariaLabel: "Close"
|
|
2567
2621
|
}
|
|
@@ -2569,16 +2623,16 @@ const _t = 300, N1 = ({
|
|
|
2569
2623
|
}
|
|
2570
2624
|
) }),
|
|
2571
2625
|
/* @__PURE__ */ i(
|
|
2572
|
-
|
|
2626
|
+
On,
|
|
2573
2627
|
{
|
|
2574
2628
|
scrolling: l.toString(),
|
|
2575
2629
|
isDraggable: nt.toString(),
|
|
2576
|
-
ref:
|
|
2630
|
+
ref: S,
|
|
2577
2631
|
onMouseMove: et,
|
|
2578
2632
|
onMouseDown: Je,
|
|
2579
2633
|
onMouseUp: tt,
|
|
2580
|
-
children:
|
|
2581
|
-
|
|
2634
|
+
children: g !== null && /* @__PURE__ */ i(
|
|
2635
|
+
$n,
|
|
2582
2636
|
{
|
|
2583
2637
|
changeZoom: (x) => {
|
|
2584
2638
|
c(x);
|
|
@@ -2589,15 +2643,15 @@ const _t = 300, N1 = ({
|
|
|
2589
2643
|
...e.style || {},
|
|
2590
2644
|
float: "none"
|
|
2591
2645
|
},
|
|
2592
|
-
image: A[
|
|
2646
|
+
image: A[g]
|
|
2593
2647
|
}
|
|
2594
2648
|
)
|
|
2595
2649
|
}
|
|
2596
2650
|
),
|
|
2597
2651
|
/* @__PURE__ */ i(
|
|
2598
|
-
|
|
2652
|
+
Bn,
|
|
2599
2653
|
{
|
|
2600
|
-
ref:
|
|
2654
|
+
ref: N,
|
|
2601
2655
|
show: h.toString(),
|
|
2602
2656
|
buttons: [
|
|
2603
2657
|
{
|
|
@@ -2621,9 +2675,9 @@ const _t = 300, N1 = ({
|
|
|
2621
2675
|
]
|
|
2622
2676
|
}
|
|
2623
2677
|
),
|
|
2624
|
-
/* @__PURE__ */ b(
|
|
2678
|
+
/* @__PURE__ */ b(In, { show: h.toString(), children: [
|
|
2625
2679
|
/* @__PURE__ */ i(
|
|
2626
|
-
|
|
2680
|
+
zn,
|
|
2627
2681
|
{
|
|
2628
2682
|
buttons: [
|
|
2629
2683
|
{
|
|
@@ -2641,7 +2695,7 @@ const _t = 300, N1 = ({
|
|
|
2641
2695
|
]
|
|
2642
2696
|
}
|
|
2643
2697
|
),
|
|
2644
|
-
/* @__PURE__ */ b(
|
|
2698
|
+
/* @__PURE__ */ b(Vn, { variant: "span", children: [
|
|
2645
2699
|
Math.trunc(s * 100),
|
|
2646
2700
|
"%"
|
|
2647
2701
|
] })
|
|
@@ -2650,9 +2704,9 @@ const _t = 300, N1 = ({
|
|
|
2650
2704
|
}
|
|
2651
2705
|
) }),
|
|
2652
2706
|
/* @__PURE__ */ i(
|
|
2653
|
-
|
|
2707
|
+
Hn,
|
|
2654
2708
|
{
|
|
2655
|
-
ref:
|
|
2709
|
+
ref: $,
|
|
2656
2710
|
onClick: ke,
|
|
2657
2711
|
onKeyDown: (x) => {
|
|
2658
2712
|
x.key === "Enter" && (x.preventDefault(), ke());
|
|
@@ -2660,11 +2714,11 @@ const _t = 300, N1 = ({
|
|
|
2660
2714
|
alignment: Ue,
|
|
2661
2715
|
tabIndex: 0,
|
|
2662
2716
|
children: /* @__PURE__ */ i(
|
|
2663
|
-
|
|
2717
|
+
An,
|
|
2664
2718
|
{
|
|
2665
2719
|
...e,
|
|
2666
2720
|
alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "",
|
|
2667
|
-
ref:
|
|
2721
|
+
ref: T
|
|
2668
2722
|
}
|
|
2669
2723
|
)
|
|
2670
2724
|
}
|
|
@@ -2672,30 +2726,30 @@ const _t = 300, N1 = ({
|
|
|
2672
2726
|
] });
|
|
2673
2727
|
}, we = D(
|
|
2674
2728
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ i(
|
|
2675
|
-
|
|
2729
|
+
Tn,
|
|
2676
2730
|
{
|
|
2677
2731
|
ref: o,
|
|
2678
2732
|
show: e,
|
|
2679
|
-
className:
|
|
2733
|
+
className: M("humany-button-set", n),
|
|
2680
2734
|
children: t.map(
|
|
2681
2735
|
({
|
|
2682
2736
|
id: r,
|
|
2683
2737
|
circle: s = !1,
|
|
2684
2738
|
show: c = !0,
|
|
2685
|
-
ariaLabel:
|
|
2739
|
+
ariaLabel: u,
|
|
2686
2740
|
onClick: a,
|
|
2687
2741
|
icon: l,
|
|
2688
|
-
className:
|
|
2742
|
+
className: d
|
|
2689
2743
|
}, h) => /* @__PURE__ */ i(
|
|
2690
|
-
|
|
2744
|
+
Nn,
|
|
2691
2745
|
{
|
|
2692
2746
|
circle: s.toString(),
|
|
2693
2747
|
onClick: a,
|
|
2694
2748
|
tabIndex: c ? void 0 : -1,
|
|
2695
2749
|
show: c.toString(),
|
|
2696
2750
|
icon: l,
|
|
2697
|
-
className:
|
|
2698
|
-
"aria-label":
|
|
2751
|
+
className: d,
|
|
2752
|
+
"aria-label": u,
|
|
2699
2753
|
children: /* @__PURE__ */ i(Q, { size: 24, symbol: { type: "Svg", content: l } })
|
|
2700
2754
|
},
|
|
2701
2755
|
r + h.toString()
|
|
@@ -2710,20 +2764,20 @@ const _t = 300, N1 = ({
|
|
|
2710
2764
|
opacity: 0;
|
|
2711
2765
|
pointer-events: none;
|
|
2712
2766
|
`}
|
|
2713
|
-
`,
|
|
2767
|
+
`, Hn = C(xe)`
|
|
2714
2768
|
display: inline-block !important;
|
|
2715
2769
|
|
|
2716
2770
|
${(e) => (e.alignment === "right" || e.alignment === "left") && k`
|
|
2717
2771
|
float: ${e.alignment};
|
|
2718
2772
|
`}
|
|
2719
|
-
`,
|
|
2773
|
+
`, Tn = C(Xe)`
|
|
2720
2774
|
position: fixed;
|
|
2721
2775
|
display: flex;
|
|
2722
2776
|
gap: ${(e) => {
|
|
2723
2777
|
var t;
|
|
2724
2778
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2725
2779
|
}};
|
|
2726
|
-
`, me = "39px",
|
|
2780
|
+
`, me = "39px", Nn = C(se)`
|
|
2727
2781
|
width: ${me};
|
|
2728
2782
|
height: ${me};
|
|
2729
2783
|
display: flex;
|
|
@@ -2797,7 +2851,7 @@ const _t = 300, N1 = ({
|
|
|
2797
2851
|
var t;
|
|
2798
2852
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2799
2853
|
}};
|
|
2800
|
-
`,
|
|
2854
|
+
`, zn = C(we)`
|
|
2801
2855
|
bottom: ${(e) => {
|
|
2802
2856
|
var t;
|
|
2803
2857
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2805,7 +2859,7 @@ const _t = 300, N1 = ({
|
|
|
2805
2859
|
width: 100%;
|
|
2806
2860
|
align-items: center;
|
|
2807
2861
|
justify-content: center;
|
|
2808
|
-
`,
|
|
2862
|
+
`, Bn = C(we)`
|
|
2809
2863
|
display: block;
|
|
2810
2864
|
button {
|
|
2811
2865
|
position: fixed;
|
|
@@ -2823,7 +2877,7 @@ const _t = 300, N1 = ({
|
|
|
2823
2877
|
}};
|
|
2824
2878
|
}
|
|
2825
2879
|
}
|
|
2826
|
-
`,
|
|
2880
|
+
`, Vn = C(X)`
|
|
2827
2881
|
position: fixed;
|
|
2828
2882
|
bottom: ${(e) => {
|
|
2829
2883
|
var t;
|
|
@@ -2848,23 +2902,23 @@ const _t = 300, N1 = ({
|
|
|
2848
2902
|
height: 88px;
|
|
2849
2903
|
left: 0px;
|
|
2850
2904
|
z-index: 5;
|
|
2851
|
-
`,
|
|
2905
|
+
`, Wn = C.div`
|
|
2852
2906
|
width: 100%;
|
|
2853
|
-
`,
|
|
2907
|
+
`, Zn = C(_e)`
|
|
2854
2908
|
top: 0px;
|
|
2855
2909
|
background-image: linear-gradient(
|
|
2856
2910
|
to bottom,
|
|
2857
2911
|
rgb(34, 34, 34, 0.8),
|
|
2858
2912
|
rgba(34, 34, 34, 0)
|
|
2859
2913
|
);
|
|
2860
|
-
`,
|
|
2914
|
+
`, In = C(_e)`
|
|
2861
2915
|
bottom: 0px;
|
|
2862
2916
|
background-image: linear-gradient(
|
|
2863
2917
|
to top,
|
|
2864
2918
|
rgb(34, 34, 34, 0.8),
|
|
2865
2919
|
rgba(34, 34, 34, 0)
|
|
2866
2920
|
);
|
|
2867
|
-
`,
|
|
2921
|
+
`, On = C.div`
|
|
2868
2922
|
width: 100%;
|
|
2869
2923
|
height: 100vh;
|
|
2870
2924
|
overflow: auto;
|
|
@@ -2873,9 +2927,9 @@ const _t = 300, N1 = ({
|
|
|
2873
2927
|
white-space: nowrap;
|
|
2874
2928
|
justify-content: center;
|
|
2875
2929
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2876
|
-
`,
|
|
2930
|
+
`, An = C.img`
|
|
2877
2931
|
cursor: pointer;
|
|
2878
|
-
`,
|
|
2932
|
+
`, Fn = D(
|
|
2879
2933
|
({
|
|
2880
2934
|
className: e,
|
|
2881
2935
|
children: t,
|
|
@@ -2885,15 +2939,15 @@ const _t = 300, N1 = ({
|
|
|
2885
2939
|
close: r = !1,
|
|
2886
2940
|
...s
|
|
2887
2941
|
}, c) => {
|
|
2888
|
-
const [
|
|
2942
|
+
const [u, a] = Fe(), [l, d] = Ae(!0), h = L(), f = L(_()), g = j("Escape");
|
|
2889
2943
|
v(() => {
|
|
2890
|
-
(
|
|
2891
|
-
}, [
|
|
2892
|
-
|
|
2893
|
-
}, [
|
|
2944
|
+
(g || r) && a(!1);
|
|
2945
|
+
}, [g, r]), v(() => {
|
|
2946
|
+
u && h.current && h.current.focus();
|
|
2947
|
+
}, [u, h.current]), ae("router:changed", () => {
|
|
2894
2948
|
a(!1);
|
|
2895
2949
|
});
|
|
2896
|
-
const
|
|
2950
|
+
const m = E(
|
|
2897
2951
|
(y) => {
|
|
2898
2952
|
a(!1), o(y);
|
|
2899
2953
|
},
|
|
@@ -2904,14 +2958,14 @@ const _t = 300, N1 = ({
|
|
|
2904
2958
|
a(!1);
|
|
2905
2959
|
}
|
|
2906
2960
|
}));
|
|
2907
|
-
const p =
|
|
2961
|
+
const p = E(() => ye(f.current, () => {
|
|
2908
2962
|
a(!1);
|
|
2909
2963
|
}), [f.current]);
|
|
2910
2964
|
return /* @__PURE__ */ b(U, { children: [
|
|
2911
|
-
/* @__PURE__ */ i(Ye, { visible:
|
|
2912
|
-
|
|
2965
|
+
/* @__PURE__ */ i(Ye, { visible: u, onClick: m, children: /* @__PURE__ */ b(
|
|
2966
|
+
Pn,
|
|
2913
2967
|
{
|
|
2914
|
-
className:
|
|
2968
|
+
className: M(
|
|
2915
2969
|
e,
|
|
2916
2970
|
"humany-modal",
|
|
2917
2971
|
`humany-modal-${f.current}`
|
|
@@ -2919,7 +2973,7 @@ const _t = 300, N1 = ({
|
|
|
2919
2973
|
css: l,
|
|
2920
2974
|
tabIndex: -1,
|
|
2921
2975
|
...s,
|
|
2922
|
-
ref:
|
|
2976
|
+
ref: d,
|
|
2923
2977
|
children: [
|
|
2924
2978
|
/* @__PURE__ */ i(
|
|
2925
2979
|
ve,
|
|
@@ -2941,7 +2995,7 @@ const _t = 300, N1 = ({
|
|
|
2941
2995
|
})
|
|
2942
2996
|
] });
|
|
2943
2997
|
}
|
|
2944
|
-
),
|
|
2998
|
+
), Pn = C.div`
|
|
2945
2999
|
font-family: ${(e) => {
|
|
2946
3000
|
var t;
|
|
2947
3001
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2960,7 +3014,7 @@ const _t = 300, N1 = ({
|
|
|
2960
3014
|
${(e) => Pe(e)}
|
|
2961
3015
|
${(e) => e.css && e.css}
|
|
2962
3016
|
outline: none;
|
|
2963
|
-
`,
|
|
3017
|
+
`, Fo = ({
|
|
2964
3018
|
className: e,
|
|
2965
3019
|
trigger: t,
|
|
2966
3020
|
header: n = "",
|
|
@@ -2970,31 +3024,31 @@ const _t = 300, N1 = ({
|
|
|
2970
3024
|
onConfirm: s = () => {
|
|
2971
3025
|
},
|
|
2972
3026
|
cancelLabel: c = "",
|
|
2973
|
-
confirmLabel:
|
|
3027
|
+
confirmLabel: u = ""
|
|
2974
3028
|
}) => {
|
|
2975
|
-
const a = L(), l =
|
|
3029
|
+
const a = L(), l = E(() => {
|
|
2976
3030
|
var h;
|
|
2977
3031
|
r(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2978
|
-
}, [r]),
|
|
3032
|
+
}, [r]), d = E(() => {
|
|
2979
3033
|
var h;
|
|
2980
3034
|
s(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2981
3035
|
}, [s]);
|
|
2982
3036
|
return /* @__PURE__ */ b(
|
|
2983
|
-
|
|
3037
|
+
jn,
|
|
2984
3038
|
{
|
|
2985
3039
|
className: e,
|
|
2986
3040
|
trigger: t,
|
|
2987
3041
|
ref: a,
|
|
2988
3042
|
onOverlayClick: l,
|
|
2989
3043
|
children: [
|
|
2990
|
-
n && /* @__PURE__ */ i(
|
|
2991
|
-
o && /* @__PURE__ */ i(
|
|
2992
|
-
|
|
2993
|
-
c && /* @__PURE__ */ i(
|
|
3044
|
+
n && /* @__PURE__ */ i(De, { children: n }),
|
|
3045
|
+
o && /* @__PURE__ */ i(De, { children: o }),
|
|
3046
|
+
u && /* @__PURE__ */ i(Kn, { onClick: d, children: u }),
|
|
3047
|
+
c && /* @__PURE__ */ i(Yn, { onClick: l, children: c })
|
|
2994
3048
|
]
|
|
2995
3049
|
}
|
|
2996
3050
|
);
|
|
2997
|
-
},
|
|
3051
|
+
}, jn = C(Fn)`
|
|
2998
3052
|
display: block;
|
|
2999
3053
|
|
|
3000
3054
|
span {
|
|
@@ -3012,7 +3066,7 @@ const _t = 300, N1 = ({
|
|
|
3012
3066
|
}};
|
|
3013
3067
|
}
|
|
3014
3068
|
}
|
|
3015
|
-
`,
|
|
3069
|
+
`, Kn = C(se)`
|
|
3016
3070
|
display: inline-block;
|
|
3017
3071
|
min-width: 50px;
|
|
3018
3072
|
${(e) => {
|
|
@@ -3042,7 +3096,7 @@ const _t = 300, N1 = ({
|
|
|
3042
3096
|
&:focus-visible {
|
|
3043
3097
|
${O}
|
|
3044
3098
|
}
|
|
3045
|
-
`,
|
|
3099
|
+
`, Yn = C(se)`
|
|
3046
3100
|
display: inline-block;
|
|
3047
3101
|
min-width: 50px;
|
|
3048
3102
|
${(e) => {
|
|
@@ -3063,25 +3117,25 @@ const _t = 300, N1 = ({
|
|
|
3063
3117
|
&:focus-visible {
|
|
3064
3118
|
${O};
|
|
3065
3119
|
}
|
|
3066
|
-
`,
|
|
3120
|
+
`, Po = ({
|
|
3067
3121
|
header: e = "",
|
|
3068
3122
|
link: t = "",
|
|
3069
3123
|
suggestionHeader: n = "",
|
|
3070
3124
|
suggestion: o = ""
|
|
3071
|
-
}) => /* @__PURE__ */ b(
|
|
3072
|
-
/* @__PURE__ */ i(
|
|
3073
|
-
/* @__PURE__ */ b(
|
|
3125
|
+
}) => /* @__PURE__ */ b(Xn, { children: [
|
|
3126
|
+
/* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(X, { variant: "h2", children: "404" }) }),
|
|
3127
|
+
/* @__PURE__ */ b(Un, { children: [
|
|
3074
3128
|
/* @__PURE__ */ i(X, { variant: "h3", children: e }),
|
|
3075
|
-
/* @__PURE__ */ i(
|
|
3129
|
+
/* @__PURE__ */ i(Qn, { routeName: "index", "aria-label": t, text: t })
|
|
3076
3130
|
] }),
|
|
3077
|
-
/* @__PURE__ */ b(
|
|
3131
|
+
/* @__PURE__ */ b(qn, { children: [
|
|
3078
3132
|
/* @__PURE__ */ i("span", { children: n }),
|
|
3079
3133
|
/* @__PURE__ */ i("ul", { children: /* @__PURE__ */ i("li", { children: o }) })
|
|
3080
3134
|
] })
|
|
3081
|
-
] }),
|
|
3135
|
+
] }), Xn = C.div`
|
|
3082
3136
|
display: flex;
|
|
3083
3137
|
flex-wrap: wrap;
|
|
3084
|
-
`,
|
|
3138
|
+
`, _n = C.div`
|
|
3085
3139
|
${(e) => ie(e)(
|
|
3086
3140
|
"h2",
|
|
3087
3141
|
k`
|
|
@@ -3091,7 +3145,7 @@ const _t = 300, N1 = ({
|
|
|
3091
3145
|
font-size: 7em;
|
|
3092
3146
|
`
|
|
3093
3147
|
)}
|
|
3094
|
-
`,
|
|
3148
|
+
`, Un = C.div`
|
|
3095
3149
|
margin-left: ${(e) => {
|
|
3096
3150
|
var t;
|
|
3097
3151
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3118,7 +3172,7 @@ const _t = 300, N1 = ({
|
|
|
3118
3172
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3119
3173
|
}};
|
|
3120
3174
|
}
|
|
3121
|
-
`,
|
|
3175
|
+
`, qn = C.div`
|
|
3122
3176
|
margin-top: ${(e) => {
|
|
3123
3177
|
var t;
|
|
3124
3178
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -3129,7 +3183,7 @@ const _t = 300, N1 = ({
|
|
|
3129
3183
|
font-weight: bold;
|
|
3130
3184
|
}
|
|
3131
3185
|
`;
|
|
3132
|
-
class
|
|
3186
|
+
class jo extends ct {
|
|
3133
3187
|
constructor() {
|
|
3134
3188
|
super(...arguments);
|
|
3135
3189
|
te(this, "node");
|
|
@@ -3171,11 +3225,11 @@ class F1 extends ct {
|
|
|
3171
3225
|
) : null;
|
|
3172
3226
|
}
|
|
3173
3227
|
}
|
|
3174
|
-
const
|
|
3228
|
+
const Qn = D(
|
|
3175
3229
|
({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(
|
|
3176
3230
|
xe,
|
|
3177
3231
|
{
|
|
3178
|
-
className:
|
|
3232
|
+
className: M(e, "humany-text-link"),
|
|
3179
3233
|
...r,
|
|
3180
3234
|
ref: s,
|
|
3181
3235
|
children: [
|
|
@@ -3186,27 +3240,27 @@ const qn = D(
|
|
|
3186
3240
|
}
|
|
3187
3241
|
)
|
|
3188
3242
|
);
|
|
3189
|
-
var
|
|
3190
|
-
const
|
|
3243
|
+
var Gn = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(Gn || {});
|
|
3244
|
+
const Ko = ({
|
|
3191
3245
|
className: e = "",
|
|
3192
3246
|
format: t = "hh:mm",
|
|
3193
3247
|
timestamp: n
|
|
3194
|
-
}) => /* @__PURE__ */ i("span", { className:
|
|
3195
|
-
function
|
|
3196
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), c = n.getMonth() + 1,
|
|
3197
|
-
|
|
3248
|
+
}) => /* @__PURE__ */ i("span", { className: M(e, "humany-timestamp"), children: Jn(n, t) }), ze = (e) => `0${e}`.slice(-2);
|
|
3249
|
+
function Jn(e, t) {
|
|
3250
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), c = n.getMonth() + 1, u = n.getDate(), a = `${s}-${ze(c)}-${ze(
|
|
3251
|
+
u
|
|
3198
3252
|
)}`;
|
|
3199
3253
|
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
|
|
3200
3254
|
}
|
|
3201
|
-
const
|
|
3255
|
+
const Yo = ({
|
|
3202
3256
|
className: e,
|
|
3203
3257
|
children: t,
|
|
3204
3258
|
content: n,
|
|
3205
3259
|
sticky: o = !1,
|
|
3206
3260
|
...r
|
|
3207
3261
|
}) => {
|
|
3208
|
-
const [s, c] = w(!1),
|
|
3209
|
-
const { target: p } =
|
|
3262
|
+
const [s, c] = w(!1), u = L(_()), a = L(), [{ x: l, y: d }, h] = je(s, u.current, a.current), f = (m) => {
|
|
3263
|
+
const { target: p } = m;
|
|
3210
3264
|
!a.current || !p || a.current !== p && !a.current.contains(p) && c(!1);
|
|
3211
3265
|
};
|
|
3212
3266
|
v(() => {
|
|
@@ -3215,29 +3269,29 @@ const j1 = ({
|
|
|
3215
3269
|
window.removeEventListener("click", f);
|
|
3216
3270
|
};
|
|
3217
3271
|
}, [s, o]);
|
|
3218
|
-
const
|
|
3219
|
-
(
|
|
3220
|
-
h(
|
|
3272
|
+
const g = E(
|
|
3273
|
+
(m, p) => {
|
|
3274
|
+
h(m, a.current), c(p);
|
|
3221
3275
|
},
|
|
3222
3276
|
[h, c]
|
|
3223
3277
|
);
|
|
3224
3278
|
return /* @__PURE__ */ b(
|
|
3225
|
-
|
|
3279
|
+
eo,
|
|
3226
3280
|
{
|
|
3227
3281
|
ref: a,
|
|
3228
3282
|
className: "humany-tooltip-trigger",
|
|
3229
|
-
onMouseEnter: o ? void 0 : (
|
|
3230
|
-
onMouseLeave: o ? void 0 : (
|
|
3231
|
-
onTouchEnd: o ? (
|
|
3232
|
-
onClick: o ? (
|
|
3283
|
+
onMouseEnter: o ? void 0 : (m) => g(m, !0),
|
|
3284
|
+
onMouseLeave: o ? void 0 : (m) => g(m, !1),
|
|
3285
|
+
onTouchEnd: o ? (m) => g(m, !s) : void 0,
|
|
3286
|
+
onClick: o ? (m) => g(m, !s) : void 0,
|
|
3233
3287
|
children: [
|
|
3234
3288
|
t,
|
|
3235
3289
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
3236
|
-
|
|
3290
|
+
to,
|
|
3237
3291
|
{
|
|
3238
|
-
className:
|
|
3292
|
+
className: M(e, "humany-tooltip-container"),
|
|
3239
3293
|
x: l,
|
|
3240
|
-
y:
|
|
3294
|
+
y: d,
|
|
3241
3295
|
...r,
|
|
3242
3296
|
children: n
|
|
3243
3297
|
}
|
|
@@ -3245,10 +3299,10 @@ const j1 = ({
|
|
|
3245
3299
|
]
|
|
3246
3300
|
}
|
|
3247
3301
|
);
|
|
3248
|
-
},
|
|
3302
|
+
}, eo = C.div`
|
|
3249
3303
|
display: flex;
|
|
3250
3304
|
align-items: center;
|
|
3251
|
-
`,
|
|
3305
|
+
`, to = C.div`
|
|
3252
3306
|
color: #ffffff;
|
|
3253
3307
|
background: #161616;
|
|
3254
3308
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3284,7 +3338,7 @@ const j1 = ({
|
|
|
3284
3338
|
let t = "";
|
|
3285
3339
|
return e.y > 0 ? t += `top: calc(2px + ${e.y || "0"}px);` : t += "bottom: 2px;", e.x > 0 ? t += `right: calc(2px + ${e.x || "0"}px);` : t += "left: 2px;", t;
|
|
3286
3340
|
}};
|
|
3287
|
-
`,
|
|
3341
|
+
`, Xo = (e) => {
|
|
3288
3342
|
const {
|
|
3289
3343
|
in: t,
|
|
3290
3344
|
mountOnEnter: n = !0,
|
|
@@ -3293,7 +3347,7 @@ const j1 = ({
|
|
|
3293
3347
|
children: s,
|
|
3294
3348
|
transitions: c
|
|
3295
3349
|
} = e, a = (() => {
|
|
3296
|
-
var l,
|
|
3350
|
+
var l, d;
|
|
3297
3351
|
if (!(!c || c === "none")) {
|
|
3298
3352
|
if (typeof c == "string")
|
|
3299
3353
|
return {
|
|
@@ -3317,7 +3371,7 @@ const j1 = ({
|
|
|
3317
3371
|
easing: h.easing ? h.easing : "ease-in"
|
|
3318
3372
|
},
|
|
3319
3373
|
exit: {
|
|
3320
|
-
transitionKeys: (
|
|
3374
|
+
transitionKeys: (d = c.enter) == null ? void 0 : d.type,
|
|
3321
3375
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3322
3376
|
easing: f.easing ? f.easing : "ease-out"
|
|
3323
3377
|
}
|
|
@@ -3326,7 +3380,7 @@ const j1 = ({
|
|
|
3326
3380
|
}
|
|
3327
3381
|
})();
|
|
3328
3382
|
return /* @__PURE__ */ i(
|
|
3329
|
-
|
|
3383
|
+
dt,
|
|
3330
3384
|
{
|
|
3331
3385
|
timeout: {
|
|
3332
3386
|
enter: a && a.enter.duration || 0,
|
|
@@ -3340,7 +3394,7 @@ const j1 = ({
|
|
|
3340
3394
|
children: (l) => s && s(l, a && he.compose(l, a))
|
|
3341
3395
|
}
|
|
3342
3396
|
);
|
|
3343
|
-
},
|
|
3397
|
+
}, no = D(
|
|
3344
3398
|
({
|
|
3345
3399
|
className: e,
|
|
3346
3400
|
children: t,
|
|
@@ -3350,8 +3404,8 @@ const j1 = ({
|
|
|
3350
3404
|
activationOptions: r,
|
|
3351
3405
|
...s
|
|
3352
3406
|
}, c) => {
|
|
3353
|
-
const
|
|
3354
|
-
const { implementation: h } =
|
|
3407
|
+
const u = B(), a = () => {
|
|
3408
|
+
const { implementation: h } = u.get("$widget");
|
|
3355
3409
|
return h.widgets.get(o);
|
|
3356
3410
|
};
|
|
3357
3411
|
v(() => {
|
|
@@ -3361,35 +3415,35 @@ const j1 = ({
|
|
|
3361
3415
|
};
|
|
3362
3416
|
}, [o]);
|
|
3363
3417
|
const l = (h) => {
|
|
3364
|
-
const f = a(),
|
|
3418
|
+
const f = a(), g = h.currentTarget;
|
|
3365
3419
|
if (f) {
|
|
3366
|
-
const
|
|
3420
|
+
const m = () => {
|
|
3367
3421
|
f.invoke("renderState").then(
|
|
3368
3422
|
(p) => p === ne.open ? f.invoke("close") : f.invoke("open")
|
|
3369
3423
|
).then(() => {
|
|
3370
3424
|
f.events.subscribeOnce(
|
|
3371
3425
|
"widget:area-rendered",
|
|
3372
3426
|
(p, y) => {
|
|
3373
|
-
|
|
3427
|
+
u.get(
|
|
3374
3428
|
"widgetDOMElement"
|
|
3375
3429
|
) && f.events.dispatch("widget:modal-opened", {
|
|
3376
3430
|
name: f.name,
|
|
3377
|
-
ref:
|
|
3431
|
+
ref: g
|
|
3378
3432
|
});
|
|
3379
3433
|
}
|
|
3380
3434
|
);
|
|
3381
3435
|
});
|
|
3382
3436
|
};
|
|
3383
|
-
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(
|
|
3437
|
+
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(m) : m();
|
|
3384
3438
|
}
|
|
3385
|
-
},
|
|
3439
|
+
}, d = (h) => {
|
|
3386
3440
|
h.key === "Enter" && (h.preventDefault(), l(h));
|
|
3387
3441
|
};
|
|
3388
3442
|
return /* @__PURE__ */ i(
|
|
3389
3443
|
xe,
|
|
3390
3444
|
{
|
|
3391
|
-
className:
|
|
3392
|
-
onKeyDown:
|
|
3445
|
+
className: M(e, "humany-widget-link"),
|
|
3446
|
+
onKeyDown: d,
|
|
3393
3447
|
onClick: (h) => {
|
|
3394
3448
|
n(h), l(h);
|
|
3395
3449
|
},
|
|
@@ -3399,18 +3453,18 @@ const j1 = ({
|
|
|
3399
3453
|
}
|
|
3400
3454
|
);
|
|
3401
3455
|
}
|
|
3402
|
-
),
|
|
3456
|
+
), _o = D(
|
|
3403
3457
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3404
|
-
const r =
|
|
3458
|
+
const r = B(), s = re(() => {
|
|
3405
3459
|
if (!r)
|
|
3406
3460
|
return null;
|
|
3407
3461
|
const c = r.get("widgetDOMElement");
|
|
3408
3462
|
return !c || !c.childElementCount ? null : c.children[0];
|
|
3409
3463
|
}, [r]);
|
|
3410
3464
|
return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
|
|
3411
|
-
|
|
3465
|
+
oo,
|
|
3412
3466
|
{
|
|
3413
|
-
className:
|
|
3467
|
+
className: M(
|
|
3414
3468
|
"humany-widget-overlay-outlet",
|
|
3415
3469
|
t
|
|
3416
3470
|
),
|
|
@@ -3419,7 +3473,7 @@ const j1 = ({
|
|
|
3419
3473
|
}
|
|
3420
3474
|
) }) : null;
|
|
3421
3475
|
}
|
|
3422
|
-
),
|
|
3476
|
+
), oo = C.div`
|
|
3423
3477
|
background-color: #ffffff;
|
|
3424
3478
|
position: absolute;
|
|
3425
3479
|
top: 0;
|
|
@@ -3429,101 +3483,101 @@ const j1 = ({
|
|
|
3429
3483
|
z-index: 10;
|
|
3430
3484
|
width: 100%;
|
|
3431
3485
|
height: 100%;
|
|
3432
|
-
`,
|
|
3486
|
+
`, Uo = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
3433
3487
|
t,
|
|
3434
3488
|
lt(() => n)
|
|
3435
3489
|
), Ct(e, t, o || (() => {
|
|
3436
3490
|
}), t, r)));
|
|
3437
3491
|
export {
|
|
3438
|
-
|
|
3492
|
+
Nt as AnchorLink,
|
|
3439
3493
|
se as Button,
|
|
3440
|
-
|
|
3441
|
-
|
|
3494
|
+
bo as Checkbox,
|
|
3495
|
+
Bt as ColumnContext,
|
|
3442
3496
|
Ze as ComponentNodeContext,
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3497
|
+
Vt as ComponentPropertyContext,
|
|
3498
|
+
Fo as Confirm,
|
|
3499
|
+
zt as ContainerContext,
|
|
3500
|
+
Zt as ConversationContext,
|
|
3501
|
+
Gn as DateFormats,
|
|
3502
|
+
Wo as Drawer,
|
|
3503
|
+
_t as DrawerAnimationType,
|
|
3504
|
+
Zo as Dropdown,
|
|
3505
|
+
on as Empty,
|
|
3506
|
+
Io as Grid,
|
|
3453
3507
|
Ke as Html,
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3508
|
+
an as Icon,
|
|
3509
|
+
Oo as Input,
|
|
3510
|
+
dn as ItemList,
|
|
3511
|
+
Ao as ItemTree,
|
|
3512
|
+
Rn as Lightbox,
|
|
3459
3513
|
xe as Link,
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3514
|
+
cn as List,
|
|
3515
|
+
Fn as Modal,
|
|
3516
|
+
Po as NotFound,
|
|
3463
3517
|
Ye as Overlay,
|
|
3464
|
-
|
|
3518
|
+
ln as Paragraph,
|
|
3465
3519
|
q as Portal,
|
|
3466
3520
|
un as RouteLink,
|
|
3467
|
-
|
|
3468
|
-
|
|
3521
|
+
Wt as RoutingContext,
|
|
3522
|
+
De as StyledText,
|
|
3469
3523
|
Q as SymbolBadge,
|
|
3470
|
-
|
|
3524
|
+
jo as TabStop,
|
|
3471
3525
|
be as Text,
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3526
|
+
Qn as TextLink,
|
|
3527
|
+
Ko as Timestamp,
|
|
3528
|
+
Yo as Tooltip,
|
|
3529
|
+
Xo as TransitionComponent,
|
|
3476
3530
|
X as Typography,
|
|
3477
|
-
|
|
3478
|
-
|
|
3531
|
+
no as WidgetLink,
|
|
3532
|
+
_o as WidgetOverlayOutlet,
|
|
3479
3533
|
O as borderTabStyle,
|
|
3480
|
-
|
|
3481
|
-
|
|
3534
|
+
Ne as browser,
|
|
3535
|
+
Ft as buttonCss,
|
|
3482
3536
|
Pe as contentBox,
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3537
|
+
z as convertToStringAttributes,
|
|
3538
|
+
yo as createEmptyComponent,
|
|
3539
|
+
Uo as createReactComponent,
|
|
3540
|
+
Tt as defaultRenderInstructions,
|
|
3487
3541
|
Lt as embeddedLinkMapper,
|
|
3488
3542
|
We as filterCssProps,
|
|
3489
3543
|
Mt as filterCssPropsStyle,
|
|
3490
3544
|
St as genericHashLink,
|
|
3491
|
-
|
|
3545
|
+
Vo as genericHtml,
|
|
3492
3546
|
ie as headingElement,
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3547
|
+
Ht as imageLightboxRenderer,
|
|
3548
|
+
Do as invertedHoverButton,
|
|
3549
|
+
Bo as itemList,
|
|
3550
|
+
Pt as linkTabStyle,
|
|
3551
|
+
jt as list,
|
|
3552
|
+
zo as paddedBorderTabStyle,
|
|
3553
|
+
Rt as processHtmlString,
|
|
3500
3554
|
he as transitionComposer,
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3555
|
+
vo as useAction,
|
|
3556
|
+
xo as useChildren,
|
|
3557
|
+
wo as useColumns,
|
|
3558
|
+
ko as useComponent,
|
|
3505
3559
|
pe as useComponentDescriptor,
|
|
3506
3560
|
Ce as useComponentNode,
|
|
3507
3561
|
Y as useComponentPlatform,
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3562
|
+
B as useContainer,
|
|
3563
|
+
It as useContext,
|
|
3564
|
+
$o as useConversation,
|
|
3565
|
+
Lo as useDispatch,
|
|
3512
3566
|
W as useEventListener,
|
|
3513
|
-
|
|
3567
|
+
Ot as useEvents,
|
|
3514
3568
|
Z as useIsMounted,
|
|
3515
|
-
|
|
3569
|
+
Mo as useIsTabbing,
|
|
3516
3570
|
j as useKeyPress,
|
|
3517
|
-
|
|
3571
|
+
So as useLayout,
|
|
3518
3572
|
Ie as usePrevious,
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3573
|
+
Eo as useProperties,
|
|
3574
|
+
Ro as useRenderState,
|
|
3575
|
+
Ho as useRouteData,
|
|
3522
3576
|
Oe as useRouter,
|
|
3523
3577
|
Ae as useScroll,
|
|
3524
|
-
|
|
3578
|
+
To as useSettings,
|
|
3525
3579
|
Fe as useToggle,
|
|
3526
|
-
|
|
3580
|
+
No as useTransitionEnd,
|
|
3527
3581
|
ye as useUniqueMenu,
|
|
3528
3582
|
ae as useWidgetEvent
|
|
3529
3583
|
};
|