@telia-ace/widget-ui 1.3.27 → 1.3.28-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +38 -38
- package/index.mjs +540 -505
- 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
|
|
9
|
-
import { CSSTransition as Ve, Transition as
|
|
10
|
-
import { Container as
|
|
8
|
+
import oe, { forwardRef as N, 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 De, 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 Te = () => {
|
|
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
|
+
), Co = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ i(nn, { ...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(Dt, { smooth: !0, to: s, children: t });
|
|
143
143
|
const c = o.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), a = new RegExp(
|
|
144
144
|
`^((http[s]?:)?//)?(${c})/([^\\s]+)`
|
|
145
145
|
).exec(s);
|
|
146
146
|
if (a && a.length >= 4) {
|
|
147
147
|
const l = a[4];
|
|
148
148
|
if (o.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
149
|
-
return /* @__PURE__ */ i(
|
|
149
|
+
return /* @__PURE__ */ i(to, { 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 || {}
|
|
@@ -203,18 +203,18 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
203
203
|
a: Lt(e),
|
|
204
204
|
img: Rt(t)
|
|
205
205
|
}
|
|
206
|
-
}),
|
|
206
|
+
}), Dt = (e) => St(e, "a"), se = N(
|
|
207
207
|
({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
|
|
208
|
-
|
|
208
|
+
Tt,
|
|
209
209
|
{
|
|
210
210
|
type: "button",
|
|
211
|
-
className:
|
|
212
|
-
...
|
|
211
|
+
className: M(e, "humany-button"),
|
|
212
|
+
...z(n),
|
|
213
213
|
ref: o,
|
|
214
214
|
children: t
|
|
215
215
|
}
|
|
216
216
|
)
|
|
217
|
-
),
|
|
217
|
+
), Tt = C.button`
|
|
218
218
|
-webkit-appearance: button;
|
|
219
219
|
text-transform: none;
|
|
220
220
|
overflow: visible;
|
|
@@ -227,7 +227,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
227
227
|
line-height: normal;
|
|
228
228
|
margin: 0;
|
|
229
229
|
padding: 0;
|
|
230
|
-
`,
|
|
230
|
+
`, yo = ({
|
|
231
231
|
onChange: e = () => {
|
|
232
232
|
},
|
|
233
233
|
onEnter: t = () => {
|
|
@@ -238,23 +238,23 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
238
238
|
}) => /* @__PURE__ */ i(
|
|
239
239
|
"input",
|
|
240
240
|
{
|
|
241
|
-
className:
|
|
241
|
+
className: M(n, "humany-checkbox"),
|
|
242
242
|
onKeyDown: (s) => {
|
|
243
243
|
s.key === "Enter" && t(s);
|
|
244
244
|
},
|
|
245
245
|
autoComplete: o,
|
|
246
246
|
onChange: (s) => e(s.target.value, s.currentTarget.checked),
|
|
247
|
-
...
|
|
247
|
+
...z(r)
|
|
248
248
|
}
|
|
249
|
-
),
|
|
249
|
+
), Nt = K(new ut()), zt = K(1), Ze = K({
|
|
250
250
|
id: "",
|
|
251
251
|
type: "",
|
|
252
252
|
name: "",
|
|
253
253
|
branch: ""
|
|
254
|
-
}),
|
|
254
|
+
}), Bt = K(
|
|
255
255
|
{}
|
|
256
|
-
), Vt = K(null), Wt = K(null), pe = () => P(Ze),
|
|
257
|
-
const n = pe().id, o =
|
|
256
|
+
), Vt = K(null), Wt = K(null), pe = () => P(Ze), B = () => P(Nt), bo = (e, t) => {
|
|
257
|
+
const n = pe().id, o = B();
|
|
258
258
|
return (r, s) => {
|
|
259
259
|
(t || o).getAsync("actionResolver").then((c) => {
|
|
260
260
|
c.action(e || n, r, s);
|
|
@@ -274,7 +274,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
274
274
|
e.current = !1;
|
|
275
275
|
}), []), e;
|
|
276
276
|
}, Y = (e) => {
|
|
277
|
-
const t =
|
|
277
|
+
const t = B(), [n, o] = w(null), r = Z();
|
|
278
278
|
return v(() => {
|
|
279
279
|
ft.getInstance(e || t).then(
|
|
280
280
|
(s) => {
|
|
@@ -282,11 +282,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
282
282
|
}
|
|
283
283
|
);
|
|
284
284
|
}, [r]), n;
|
|
285
|
-
},
|
|
286
|
-
const e = Ce(), t = Y(), [n, o] = w([]), r = Z(), s =
|
|
285
|
+
}, vo = () => {
|
|
286
|
+
const e = Ce(), t = Y(), [n, o] = w([]), r = Z(), s = E(
|
|
287
287
|
(c) => {
|
|
288
288
|
if (t && r.current && c) {
|
|
289
|
-
const
|
|
289
|
+
const u = t.getBranch(c), a = c.getChildren(u).map((l) => mt(l));
|
|
290
290
|
o(a);
|
|
291
291
|
}
|
|
292
292
|
},
|
|
@@ -296,7 +296,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
296
296
|
e && s(e);
|
|
297
297
|
}, [e, t]), v(() => {
|
|
298
298
|
if (t) {
|
|
299
|
-
const [c,
|
|
299
|
+
const [c, u] = gt(t.events);
|
|
300
300
|
return c("components:set-layout", (a, l) => {
|
|
301
301
|
(e === l.node.parent || l.node.parent === t.nodes.root) && s(l.node.parent);
|
|
302
302
|
}), c("components:node-appended", (a, l) => {
|
|
@@ -304,28 +304,28 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
304
304
|
}), c("components:node-removed", (a, { parentNode: l }) => {
|
|
305
305
|
(l === e || l === t.nodes.root) && s(l);
|
|
306
306
|
}), () => {
|
|
307
|
-
|
|
307
|
+
u();
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
310
|
}, [e, t, s]), n;
|
|
311
|
-
},
|
|
312
|
-
const n = pe(), o =
|
|
311
|
+
}, xo = () => P(zt), wo = (e, t) => {
|
|
312
|
+
const n = pe(), o = B(), [r, s] = w(void 0), c = Z(), u = e || n.type || "";
|
|
313
313
|
return v(() => {
|
|
314
|
-
if (
|
|
314
|
+
if (u) {
|
|
315
315
|
let a;
|
|
316
316
|
return (t || o).getAsync("componentResolver").then((l) => {
|
|
317
317
|
if (c.current) {
|
|
318
|
-
const
|
|
319
|
-
s(
|
|
318
|
+
const d = l.getComponent(u);
|
|
319
|
+
s(d);
|
|
320
320
|
}
|
|
321
|
-
a = l.registerResolver(
|
|
322
|
-
c.current && s(
|
|
321
|
+
a = l.registerResolver(u, (d) => {
|
|
322
|
+
c.current && s(d);
|
|
323
323
|
});
|
|
324
324
|
}), () => {
|
|
325
325
|
a && a();
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
}, [c,
|
|
328
|
+
}, [c, u, t, o]), r;
|
|
329
329
|
}, Zt = (e) => {
|
|
330
330
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
331
331
|
return v(() => {
|
|
@@ -334,7 +334,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
334
334
|
if (n) {
|
|
335
335
|
const c = n.events.subscribe(
|
|
336
336
|
"components:context-changed",
|
|
337
|
-
(
|
|
337
|
+
(u, a) => {
|
|
338
338
|
t === a.node && s.current && r(a.node.attributes.context);
|
|
339
339
|
}
|
|
340
340
|
);
|
|
@@ -343,23 +343,23 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
}, [s, n, t]), o;
|
|
346
|
-
},
|
|
346
|
+
}, ko = () => P(Wt), $o = () => {
|
|
347
347
|
const e = Y(), t = pe(), [n, o] = w([]), [r, s] = w();
|
|
348
348
|
return v(() => {
|
|
349
349
|
if (e && t) {
|
|
350
|
-
const c = new pt(e).withId(t.id),
|
|
351
|
-
s(
|
|
352
|
-
|
|
350
|
+
const c = new pt(e).withId(t.id), u = e.actions(c, t.type || _());
|
|
351
|
+
s(u), n !== null && (n.forEach((a) => {
|
|
352
|
+
u.dispatch(a.key, a.data).then((l) => a.resolve(l)).catch((l) => a.reject(l));
|
|
353
353
|
}), o(null));
|
|
354
354
|
}
|
|
355
|
-
}, [e, t.id]), (c,
|
|
355
|
+
}, [e, t.id]), (c, u) => n !== null ? new Promise((a, l) => {
|
|
356
356
|
n.push({
|
|
357
357
|
key: c,
|
|
358
|
-
data:
|
|
358
|
+
data: u,
|
|
359
359
|
resolve: a,
|
|
360
360
|
reject: l
|
|
361
361
|
});
|
|
362
|
-
}) : r.dispatch(c,
|
|
362
|
+
}) : r.dispatch(c, u);
|
|
363
363
|
}, W = (e, t, n = window, o = () => !0) => {
|
|
364
364
|
const r = L(() => {
|
|
365
365
|
});
|
|
@@ -368,15 +368,15 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
368
368
|
}, [t]), v(() => {
|
|
369
369
|
if (!(n && o()))
|
|
370
370
|
return;
|
|
371
|
-
const c = (
|
|
371
|
+
const c = (u) => r.current(u);
|
|
372
372
|
return n.addEventListener(e, c), () => {
|
|
373
373
|
n.removeEventListener(e, c);
|
|
374
374
|
};
|
|
375
375
|
}, [e, n]);
|
|
376
376
|
}, It = (e) => {
|
|
377
|
-
const t =
|
|
377
|
+
const t = B(), { events: n } = (e || t).get("$widget");
|
|
378
378
|
return n;
|
|
379
|
-
},
|
|
379
|
+
}, Lo = () => {
|
|
380
380
|
const [e, t] = w(!1);
|
|
381
381
|
return v(() => {
|
|
382
382
|
const n = () => {
|
|
@@ -389,20 +389,20 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
389
389
|
};
|
|
390
390
|
}, []), e;
|
|
391
391
|
}, j = (e, t) => {
|
|
392
|
-
const [n, o] = w(!1), r =
|
|
392
|
+
const [n, o] = w(!1), r = E(
|
|
393
393
|
(c) => {
|
|
394
|
-
const { key:
|
|
395
|
-
|
|
394
|
+
const { key: u } = c;
|
|
395
|
+
u === e && (o(!0), t && t(c));
|
|
396
396
|
},
|
|
397
397
|
[o, t]
|
|
398
|
-
), s =
|
|
398
|
+
), s = E(
|
|
399
399
|
({ key: c }) => {
|
|
400
400
|
c === e && o(!1);
|
|
401
401
|
},
|
|
402
402
|
[o]
|
|
403
403
|
);
|
|
404
404
|
return W("keydown", r, window), W("keyup", s, window), n;
|
|
405
|
-
},
|
|
405
|
+
}, Mo = (e) => {
|
|
406
406
|
const t = Ce(e), n = Y(), [o, r] = w({}), s = Z();
|
|
407
407
|
return v(() => {
|
|
408
408
|
t && s.current && r(t.attributes.layout);
|
|
@@ -410,7 +410,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
410
410
|
if (n) {
|
|
411
411
|
const c = n.events.subscribe(
|
|
412
412
|
"components:layout-changed",
|
|
413
|
-
(
|
|
413
|
+
(u, a) => {
|
|
414
414
|
t === a.node && s.current && r(a.node.attributes.layout);
|
|
415
415
|
}
|
|
416
416
|
);
|
|
@@ -424,18 +424,18 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
424
424
|
return v(() => {
|
|
425
425
|
t.current = e;
|
|
426
426
|
}), t.current;
|
|
427
|
-
},
|
|
428
|
-
const [t, n] = w(), o =
|
|
427
|
+
}, So = () => P(Bt), Eo = (e) => {
|
|
428
|
+
const [t, n] = w(), o = B(), r = Z();
|
|
429
429
|
return v(() => {
|
|
430
430
|
let s;
|
|
431
431
|
const c = (e || o).get("$widget");
|
|
432
432
|
if (!c)
|
|
433
433
|
return;
|
|
434
|
-
const { name:
|
|
434
|
+
const { name: u, invoke: a } = c;
|
|
435
435
|
return a("renderState").then((l) => {
|
|
436
436
|
r.current && n(l);
|
|
437
437
|
}), (e || o).getAsync("actionResolver").then((l) => {
|
|
438
|
-
s = l.subscribe(
|
|
438
|
+
s = l.subscribe(u, (d, h) => {
|
|
439
439
|
switch (h) {
|
|
440
440
|
case "close":
|
|
441
441
|
case "open":
|
|
@@ -451,8 +451,8 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
451
451
|
s && s();
|
|
452
452
|
};
|
|
453
453
|
}, [r]), t;
|
|
454
|
-
}, Oe = () => P(Vt),
|
|
455
|
-
const t =
|
|
454
|
+
}, Oe = () => P(Vt), Ro = (e) => {
|
|
455
|
+
const t = B(), n = Oe(), [o, r] = w({
|
|
456
456
|
name: "",
|
|
457
457
|
params: {}
|
|
458
458
|
}), s = Z();
|
|
@@ -460,45 +460,45 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
460
460
|
const c = (e || t).get("$widget");
|
|
461
461
|
if (!c)
|
|
462
462
|
return;
|
|
463
|
-
const { events:
|
|
464
|
-
return
|
|
463
|
+
const { events: u } = c;
|
|
464
|
+
return u.subscribe(
|
|
465
465
|
"router:change",
|
|
466
|
-
(l, { next: { routeData:
|
|
466
|
+
(l, { next: { routeData: d } }) => {
|
|
467
467
|
if (s.current) {
|
|
468
|
-
const { name: h, params: f } =
|
|
468
|
+
const { name: h, params: f } = d;
|
|
469
469
|
Re(f), r({ name: h, params: f });
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
);
|
|
473
473
|
}, [s, e, t]), v(() => {
|
|
474
474
|
if (n && n.history && s.current) {
|
|
475
|
-
const c = n.getRouteData(), { name:
|
|
476
|
-
Re(a), r({ name:
|
|
475
|
+
const c = n.getRouteData(), { name: u, params: a } = c;
|
|
476
|
+
Re(a), r({ name: u, params: a });
|
|
477
477
|
}
|
|
478
478
|
}, [n, s]), o;
|
|
479
479
|
}, Ae = (e) => {
|
|
480
480
|
const t = L(), n = L(0);
|
|
481
481
|
let o;
|
|
482
|
-
const r =
|
|
482
|
+
const r = E(() => {
|
|
483
483
|
var l;
|
|
484
484
|
(l = t.current) == null || l.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
485
|
-
var
|
|
486
|
-
(
|
|
485
|
+
var d;
|
|
486
|
+
(d = t.current) == null || d.classList.remove("humany-scrolling");
|
|
487
487
|
}, 500);
|
|
488
|
-
}, [t]), s =
|
|
488
|
+
}, [t]), s = E(
|
|
489
489
|
(l) => {
|
|
490
490
|
n.current = l.touches[0].clientY;
|
|
491
491
|
},
|
|
492
492
|
[t]
|
|
493
|
-
), c = (l) =>
|
|
493
|
+
), 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
494
|
(l) => {
|
|
495
495
|
if (!l.cancelable)
|
|
496
496
|
return;
|
|
497
|
-
const
|
|
497
|
+
const d = l.touches[0].clientY, h = c(l.target);
|
|
498
498
|
if (!h)
|
|
499
499
|
return;
|
|
500
|
-
const f = h.scrollTop,
|
|
501
|
-
(
|
|
500
|
+
const f = h.scrollTop, g = n.current - d < 0 ? "up" : "down", m = f <= 0 && g === "up", p = f >= h.scrollHeight - h.offsetHeight && g === "down";
|
|
501
|
+
(m || p) && l.preventDefault(), n.current = d;
|
|
502
502
|
},
|
|
503
503
|
[t, n]
|
|
504
504
|
);
|
|
@@ -519,7 +519,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
519
519
|
() => t.current && e
|
|
520
520
|
), e ? [Ot, t] : ["", t];
|
|
521
521
|
}, Ot = `
|
|
522
|
-
overflow-y: ${
|
|
522
|
+
overflow-y: ${Te() === fe.Chrome || Te() === fe.EdgeChromium ? "overlay" : "auto"};
|
|
523
523
|
overflow-x: hidden;
|
|
524
524
|
-ms-overflow-style: none; /* IE 10+ */
|
|
525
525
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -546,36 +546,36 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
546
546
|
background-color: #7F7F7F;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
`,
|
|
550
|
-
const [e, t] = w(null), n =
|
|
549
|
+
`, Ho = () => {
|
|
550
|
+
const [e, t] = w(null), n = B(), o = Z();
|
|
551
551
|
return v(() => {
|
|
552
552
|
n.get("settings").then((r) => {
|
|
553
553
|
o.current && t(r);
|
|
554
554
|
});
|
|
555
555
|
}, [o]), e;
|
|
556
556
|
}, Fe = (e = !1) => {
|
|
557
|
-
const [t, n] = w(e), o =
|
|
557
|
+
const [t, n] = w(e), o = E((r) => {
|
|
558
558
|
n(typeof r == "boolean" ? r : (s) => !s);
|
|
559
559
|
}, []);
|
|
560
560
|
return [t, o];
|
|
561
|
-
},
|
|
562
|
-
const t =
|
|
561
|
+
}, Do = (e) => {
|
|
562
|
+
const t = B(), n = Y(), o = t.get("widgetDOMElement"), [r, s] = w(null), [c, u] = w(null), a = Z();
|
|
563
563
|
v(() => {
|
|
564
564
|
if (n && a.current) {
|
|
565
|
-
const
|
|
566
|
-
if (!(h != null && h.attributes.properties.animation) && !(
|
|
565
|
+
const d = n.nodes.all.find((f) => f.name === "root-area"), h = n.nodes.all.find((f) => f.type === "view");
|
|
566
|
+
if (!(h != null && h.attributes.properties.animation) && !(d != null && d.attributes.properties.animation))
|
|
567
567
|
e();
|
|
568
568
|
else {
|
|
569
|
-
const f = (p = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${p}"]`),
|
|
570
|
-
|
|
571
|
-
const
|
|
572
|
-
|
|
569
|
+
const f = (p = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${p}"]`), g = f(h == null ? void 0 : h.id);
|
|
570
|
+
g && s(g);
|
|
571
|
+
const m = f(d == null ? void 0 : d.id);
|
|
572
|
+
m && u(m);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
}, [n, t, a]);
|
|
576
|
-
const l =
|
|
577
|
-
(
|
|
578
|
-
a.current && (
|
|
576
|
+
const l = E(
|
|
577
|
+
(d) => {
|
|
578
|
+
a.current && (d.target === r || d.target === c) && e();
|
|
579
579
|
},
|
|
580
580
|
[e, a, r, c]
|
|
581
581
|
);
|
|
@@ -603,13 +603,13 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
603
603
|
r !== e && t();
|
|
604
604
|
});
|
|
605
605
|
return () => n(e);
|
|
606
|
-
}, be =
|
|
606
|
+
}, be = N(
|
|
607
607
|
({ className: e, children: t, ...n }, o) => /* @__PURE__ */ i(
|
|
608
608
|
"span",
|
|
609
609
|
{
|
|
610
610
|
ref: o,
|
|
611
|
-
className:
|
|
612
|
-
...
|
|
611
|
+
className: M(e, "humany-text"),
|
|
612
|
+
...z(n),
|
|
613
613
|
children: t
|
|
614
614
|
}
|
|
615
615
|
)
|
|
@@ -634,7 +634,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
634
634
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
635
635
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
636
636
|
`;
|
|
637
|
-
},
|
|
637
|
+
}, To = (e) => {
|
|
638
638
|
var c;
|
|
639
639
|
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
640
640
|
return k`
|
|
@@ -682,7 +682,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
682
682
|
}, Ft = (e) => k`
|
|
683
683
|
${O(e)}
|
|
684
684
|
text-decoration: underline;
|
|
685
|
-
`,
|
|
685
|
+
`, No = (e) => {
|
|
686
686
|
var t;
|
|
687
687
|
return k`
|
|
688
688
|
${O(e)}
|
|
@@ -716,7 +716,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
716
716
|
height: 15px;
|
|
717
717
|
box-sizing: content-box;
|
|
718
718
|
}
|
|
719
|
-
`,
|
|
719
|
+
`, Ne = C(be)`
|
|
720
720
|
font-size: ${(e) => {
|
|
721
721
|
var t;
|
|
722
722
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -749,7 +749,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
749
749
|
margin: 0;
|
|
750
750
|
}
|
|
751
751
|
`;
|
|
752
|
-
},
|
|
752
|
+
}, zo = (e) => {
|
|
753
753
|
var t, n, o, r;
|
|
754
754
|
return k`
|
|
755
755
|
> div {
|
|
@@ -785,7 +785,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
785
785
|
`
|
|
786
786
|
)}
|
|
787
787
|
`;
|
|
788
|
-
},
|
|
788
|
+
}, Bo = (e) => {
|
|
789
789
|
var t, n, o, r, s, c;
|
|
790
790
|
return k`
|
|
791
791
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -864,13 +864,13 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
864
864
|
className: s,
|
|
865
865
|
...c
|
|
866
866
|
}) => {
|
|
867
|
-
const { type:
|
|
867
|
+
const { type: u, content: a } = o, l = {
|
|
868
868
|
"aria-label": e,
|
|
869
869
|
role: "presentation"
|
|
870
870
|
};
|
|
871
|
-
switch (
|
|
871
|
+
switch (u) {
|
|
872
872
|
case "Uri": {
|
|
873
|
-
const
|
|
873
|
+
const d = {
|
|
874
874
|
backgroundSize: t,
|
|
875
875
|
backgroundImage: `url('${a}')`,
|
|
876
876
|
backgroundRepeat: "no-repeat",
|
|
@@ -880,21 +880,21 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
880
880
|
return /* @__PURE__ */ i(
|
|
881
881
|
"i",
|
|
882
882
|
{
|
|
883
|
-
className:
|
|
883
|
+
className: M(
|
|
884
884
|
s,
|
|
885
885
|
"humany-icon",
|
|
886
886
|
"humany-custom-icon"
|
|
887
887
|
),
|
|
888
888
|
title: e,
|
|
889
|
-
style: { ...
|
|
889
|
+
style: { ...d, ...r },
|
|
890
890
|
...l,
|
|
891
891
|
...c
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
894
|
}
|
|
895
895
|
case "Svg": {
|
|
896
|
-
const
|
|
897
|
-
className:
|
|
896
|
+
const d = {
|
|
897
|
+
className: M(s, "humany-icon"),
|
|
898
898
|
width: `${n}`,
|
|
899
899
|
fill: "none",
|
|
900
900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -903,7 +903,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
903
903
|
}, h = { minWidth: `${n}` };
|
|
904
904
|
switch (a) {
|
|
905
905
|
case "search":
|
|
906
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...
|
|
906
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 32 30", ...d, children: [
|
|
907
907
|
/* @__PURE__ */ i(
|
|
908
908
|
"circle",
|
|
909
909
|
{
|
|
@@ -916,7 +916,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
916
916
|
/* @__PURE__ */ i("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" })
|
|
917
917
|
] });
|
|
918
918
|
case "clear":
|
|
919
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 27 27", ...
|
|
919
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 27 27", ...d, children: [
|
|
920
920
|
/* @__PURE__ */ i(
|
|
921
921
|
"circle",
|
|
922
922
|
{
|
|
@@ -949,32 +949,32 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
949
949
|
)
|
|
950
950
|
] });
|
|
951
951
|
case "close":
|
|
952
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 13 13", ...
|
|
952
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 13 13", ...d, children: [
|
|
953
953
|
/* @__PURE__ */ i("path", { d: "M12.3068 0.50647L1.27246 11.7273", stroke: "black" }),
|
|
954
954
|
/* @__PURE__ */ i("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" })
|
|
955
955
|
] });
|
|
956
956
|
case "caret-right":
|
|
957
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...
|
|
957
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
958
958
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }),
|
|
959
959
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" })
|
|
960
960
|
] });
|
|
961
961
|
case "caret-left":
|
|
962
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...
|
|
962
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
963
963
|
/* @__PURE__ */ i("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }),
|
|
964
964
|
/* @__PURE__ */ i("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" })
|
|
965
965
|
] });
|
|
966
966
|
case "caret-up":
|
|
967
|
-
return /* @__PURE__ */ b(jt, { viewBox: "0 0 14 14", style: h, ...
|
|
967
|
+
return /* @__PURE__ */ b(jt, { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
968
968
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
969
969
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
970
970
|
] });
|
|
971
971
|
case "caret-down":
|
|
972
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...
|
|
972
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 14 14", style: h, ...d, children: [
|
|
973
973
|
/* @__PURE__ */ i("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
974
974
|
/* @__PURE__ */ i("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
975
975
|
] });
|
|
976
976
|
case "back":
|
|
977
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 18 18", ...
|
|
977
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 18 18", ...d, children: [
|
|
978
978
|
/* @__PURE__ */ i(
|
|
979
979
|
"line",
|
|
980
980
|
{
|
|
@@ -997,7 +997,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
997
997
|
)
|
|
998
998
|
] });
|
|
999
999
|
case "alert":
|
|
1000
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 19", ...
|
|
1000
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 19", ...d, children: [
|
|
1001
1001
|
/* @__PURE__ */ i("circle", { cx: "9.5", cy: "9.5", r: "9.5", fill: "#CA0813" }),
|
|
1002
1002
|
/* @__PURE__ */ i(
|
|
1003
1003
|
"path",
|
|
@@ -1008,7 +1008,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1008
1008
|
)
|
|
1009
1009
|
] });
|
|
1010
1010
|
case "send":
|
|
1011
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 20 17", ...
|
|
1011
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 20 17", ...d, children: /* @__PURE__ */ i(
|
|
1012
1012
|
"path",
|
|
1013
1013
|
{
|
|
1014
1014
|
d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
|
|
@@ -1018,7 +1018,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1018
1018
|
}
|
|
1019
1019
|
) });
|
|
1020
1020
|
case "chat":
|
|
1021
|
-
return /* @__PURE__ */ b("svg", { viewBox: "-2 -3 40 40", ...
|
|
1021
|
+
return /* @__PURE__ */ b("svg", { viewBox: "-2 -3 40 40", ...d, children: [
|
|
1022
1022
|
/* @__PURE__ */ i(
|
|
1023
1023
|
"path",
|
|
1024
1024
|
{
|
|
@@ -1055,7 +1055,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1055
1055
|
)
|
|
1056
1056
|
] });
|
|
1057
1057
|
case "chat-new":
|
|
1058
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 26 24", ...
|
|
1058
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 26 24", ...d, children: [
|
|
1059
1059
|
/* @__PURE__ */ i(
|
|
1060
1060
|
"path",
|
|
1061
1061
|
{
|
|
@@ -1072,7 +1072,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1072
1072
|
)
|
|
1073
1073
|
] });
|
|
1074
1074
|
case "agent":
|
|
1075
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 36 30", ...
|
|
1075
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 36 30", ...d, children: [
|
|
1076
1076
|
/* @__PURE__ */ i(
|
|
1077
1077
|
"path",
|
|
1078
1078
|
{
|
|
@@ -1104,11 +1104,11 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1104
1104
|
)
|
|
1105
1105
|
] });
|
|
1106
1106
|
case "minimize":
|
|
1107
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 -10 22 22", ...
|
|
1107
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 -10 22 22", ...d, children: /* @__PURE__ */ i("path", { d: "M0 1H22", stroke: "white" }) });
|
|
1108
1108
|
case "sorting":
|
|
1109
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 18 14", ...
|
|
1109
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 18 14", ...d, children: /* @__PURE__ */ i("path", { d: "M18 1H0M8 13H0M13 7H0" }) });
|
|
1110
1110
|
case "copy":
|
|
1111
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 17", ...
|
|
1111
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 19 17", ...d, children: [
|
|
1112
1112
|
/* @__PURE__ */ i(
|
|
1113
1113
|
"rect",
|
|
1114
1114
|
{
|
|
@@ -1133,7 +1133,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1133
1133
|
)
|
|
1134
1134
|
] });
|
|
1135
1135
|
case "print":
|
|
1136
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 17", ...
|
|
1136
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 17", ...d, children: [
|
|
1137
1137
|
/* @__PURE__ */ i(
|
|
1138
1138
|
"path",
|
|
1139
1139
|
{
|
|
@@ -1190,7 +1190,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1190
1190
|
)
|
|
1191
1191
|
] });
|
|
1192
1192
|
case "language":
|
|
1193
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 19 19", ...
|
|
1193
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 19 19", ...d, children: /* @__PURE__ */ i(
|
|
1194
1194
|
"path",
|
|
1195
1195
|
{
|
|
1196
1196
|
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 +1198,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1198
1198
|
}
|
|
1199
1199
|
) });
|
|
1200
1200
|
case "information":
|
|
1201
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 17 17", ...
|
|
1201
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 17 17", ...d, children: [
|
|
1202
1202
|
/* @__PURE__ */ i(
|
|
1203
1203
|
"path",
|
|
1204
1204
|
{
|
|
@@ -1224,7 +1224,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1224
1224
|
)
|
|
1225
1225
|
] });
|
|
1226
1226
|
case "options":
|
|
1227
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 2", ...
|
|
1227
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 16 2", ...d, children: [
|
|
1228
1228
|
/* @__PURE__ */ i(
|
|
1229
1229
|
"circle",
|
|
1230
1230
|
{
|
|
@@ -1257,7 +1257,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1257
1257
|
)
|
|
1258
1258
|
] });
|
|
1259
1259
|
case "browse":
|
|
1260
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...
|
|
1260
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...d, children: [
|
|
1261
1261
|
/* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }),
|
|
1262
1262
|
/* @__PURE__ */ i(
|
|
1263
1263
|
"path",
|
|
@@ -1297,7 +1297,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1297
1297
|
)
|
|
1298
1298
|
] });
|
|
1299
1299
|
case "video":
|
|
1300
|
-
return h.minWidth && typeof h.minWidth == "number" && (h.minWidth = `${h.minWidth}px`), /* @__PURE__ */ b("svg", { viewBox: "0 0 25 25", ...
|
|
1300
|
+
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
1301
|
/* @__PURE__ */ i(
|
|
1302
1302
|
"path",
|
|
1303
1303
|
{
|
|
@@ -1322,7 +1322,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1322
1322
|
)
|
|
1323
1323
|
] });
|
|
1324
1324
|
case "star-empty":
|
|
1325
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...
|
|
1325
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...d, children: /* @__PURE__ */ i(
|
|
1326
1326
|
"path",
|
|
1327
1327
|
{
|
|
1328
1328
|
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 +1330,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1330
1330
|
}
|
|
1331
1331
|
) });
|
|
1332
1332
|
case "star-filled":
|
|
1333
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...
|
|
1333
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 13 12", ...d, children: /* @__PURE__ */ i(
|
|
1334
1334
|
"path",
|
|
1335
1335
|
{
|
|
1336
1336
|
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 +1339,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1339
1339
|
}
|
|
1340
1340
|
) });
|
|
1341
1341
|
case "cog-wheel":
|
|
1342
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1342
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1343
1343
|
"path",
|
|
1344
1344
|
{
|
|
1345
1345
|
fillRule: "evenodd",
|
|
@@ -1349,7 +1349,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1349
1349
|
}
|
|
1350
1350
|
) });
|
|
1351
1351
|
case "zoom-in":
|
|
1352
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...
|
|
1352
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...d, children: [
|
|
1353
1353
|
/* @__PURE__ */ i(
|
|
1354
1354
|
"path",
|
|
1355
1355
|
{
|
|
@@ -1379,7 +1379,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1379
1379
|
)
|
|
1380
1380
|
] });
|
|
1381
1381
|
case "zoom-out":
|
|
1382
|
-
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...
|
|
1382
|
+
return /* @__PURE__ */ b("svg", { viewBox: "0 0 24 24", ...d, children: [
|
|
1383
1383
|
/* @__PURE__ */ i(
|
|
1384
1384
|
"path",
|
|
1385
1385
|
{
|
|
@@ -1400,7 +1400,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1400
1400
|
)
|
|
1401
1401
|
] });
|
|
1402
1402
|
case "download":
|
|
1403
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1403
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1404
1404
|
"path",
|
|
1405
1405
|
{
|
|
1406
1406
|
fillRule: "evenodd",
|
|
@@ -1410,7 +1410,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1410
1410
|
}
|
|
1411
1411
|
) });
|
|
1412
1412
|
case "lightbox-close":
|
|
1413
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1413
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1414
1414
|
"path",
|
|
1415
1415
|
{
|
|
1416
1416
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1421,7 +1421,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1421
1421
|
}
|
|
1422
1422
|
) });
|
|
1423
1423
|
case "pagination-left":
|
|
1424
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1424
|
+
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...d, children: /* @__PURE__ */ i(
|
|
1425
1425
|
"path",
|
|
1426
1426
|
{
|
|
1427
1427
|
fillRule: "evenodd",
|
|
@@ -1431,7 +1431,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1431
1431
|
}
|
|
1432
1432
|
) });
|
|
1433
1433
|
case "pagination-right":
|
|
1434
|
-
return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", ...
|
|
1434
|
+
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
1435
|
}
|
|
1436
1436
|
return null;
|
|
1437
1437
|
}
|
|
@@ -1450,7 +1450,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1450
1450
|
return e ? /* @__PURE__ */ i(
|
|
1451
1451
|
"i",
|
|
1452
1452
|
{
|
|
1453
|
-
className:
|
|
1453
|
+
className: M(s, "humany-letter-symbol"),
|
|
1454
1454
|
title: e,
|
|
1455
1455
|
...l,
|
|
1456
1456
|
...c,
|
|
@@ -1482,7 +1482,7 @@ const Rt = (e) => (t) => /* @__PURE__ */ i(En, { attrs: t, htmlBody: e }), Ht =
|
|
|
1482
1482
|
return /* @__PURE__ */ i(Yt, { className: n, as: c, children: o });
|
|
1483
1483
|
}, Yt = C.span``;
|
|
1484
1484
|
var Xt = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Xt || {});
|
|
1485
|
-
const _t = 300,
|
|
1485
|
+
const _t = 300, Vo = ({
|
|
1486
1486
|
className: e,
|
|
1487
1487
|
children: t,
|
|
1488
1488
|
header: n,
|
|
@@ -1490,50 +1490,50 @@ const _t = 300, N1 = ({
|
|
|
1490
1490
|
trigger: r,
|
|
1491
1491
|
fullScreen: s = !1,
|
|
1492
1492
|
closeButtonAriaLabel: c,
|
|
1493
|
-
animation:
|
|
1493
|
+
animation: u = {
|
|
1494
1494
|
type: "slide-in-bottom"
|
|
1495
1495
|
/* SlideInBottom */
|
|
1496
1496
|
}
|
|
1497
1497
|
}) => {
|
|
1498
|
-
const { duration: a = _t } =
|
|
1498
|
+
const { duration: a = _t } = u, l = L(), d = L(), [h, f] = Ae(!0), [g, m] = Fe(), p = Ie(g), y = L(_());
|
|
1499
1499
|
v(() => {
|
|
1500
|
-
o && o(
|
|
1501
|
-
}, [
|
|
1502
|
-
const
|
|
1500
|
+
o && o(g);
|
|
1501
|
+
}, [g]);
|
|
1502
|
+
const $ = j("Escape");
|
|
1503
1503
|
v(() => {
|
|
1504
|
-
|
|
1505
|
-
}, [
|
|
1504
|
+
$ && m(!1);
|
|
1505
|
+
}, [$]), W(
|
|
1506
1506
|
"click",
|
|
1507
|
-
(
|
|
1508
|
-
const { target:
|
|
1509
|
-
!
|
|
1507
|
+
(S) => {
|
|
1508
|
+
const { target: D } = S;
|
|
1509
|
+
!d.current || !f.current || !D || d.current !== D && f.current !== D && !f.current.contains(D) && !d.current.contains(D) && m(!1);
|
|
1510
1510
|
},
|
|
1511
1511
|
window
|
|
1512
1512
|
);
|
|
1513
1513
|
const R = ye(y.current, () => {
|
|
1514
|
-
|
|
1514
|
+
m(!1);
|
|
1515
1515
|
});
|
|
1516
1516
|
ae("router:changed", () => {
|
|
1517
|
-
|
|
1517
|
+
m(!1);
|
|
1518
1518
|
}), v(() => {
|
|
1519
|
-
|
|
1520
|
-
}, [
|
|
1521
|
-
const
|
|
1519
|
+
g && l.current ? l.current.focus() : !g && d.current && p && d.current.focus();
|
|
1520
|
+
}, [g, l.current, d.current]);
|
|
1521
|
+
const T = en[u.type];
|
|
1522
1522
|
return /* @__PURE__ */ b(U, { children: [
|
|
1523
1523
|
/* @__PURE__ */ i(
|
|
1524
1524
|
Ve,
|
|
1525
1525
|
{
|
|
1526
|
-
in:
|
|
1526
|
+
in: g,
|
|
1527
1527
|
className: "humany-drawer-transition",
|
|
1528
1528
|
classNames: "humany-drawer-transition",
|
|
1529
1529
|
unmountOnExit: !0,
|
|
1530
1530
|
timeout: a,
|
|
1531
1531
|
children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1532
|
-
|
|
1532
|
+
T,
|
|
1533
1533
|
{
|
|
1534
1534
|
duration: a,
|
|
1535
1535
|
fullScreen: s,
|
|
1536
|
-
className:
|
|
1536
|
+
className: M(
|
|
1537
1537
|
e,
|
|
1538
1538
|
"humany-drawer",
|
|
1539
1539
|
`humany-drawer-${y.current}`
|
|
@@ -1545,7 +1545,7 @@ const _t = 300, N1 = ({
|
|
|
1545
1545
|
/* @__PURE__ */ i(
|
|
1546
1546
|
ve,
|
|
1547
1547
|
{
|
|
1548
|
-
onClick: () =>
|
|
1548
|
+
onClick: () => m(!1),
|
|
1549
1549
|
tabIndex: 0,
|
|
1550
1550
|
ref: l,
|
|
1551
1551
|
"aria-label": c,
|
|
@@ -1560,12 +1560,12 @@ const _t = 300, N1 = ({
|
|
|
1560
1560
|
}
|
|
1561
1561
|
),
|
|
1562
1562
|
oe.cloneElement(r, {
|
|
1563
|
-
onClick: (
|
|
1564
|
-
|
|
1563
|
+
onClick: (S) => {
|
|
1564
|
+
m(), R();
|
|
1565
1565
|
},
|
|
1566
|
-
ref:
|
|
1566
|
+
ref: d,
|
|
1567
1567
|
"aria-label": r.props.title,
|
|
1568
|
-
"aria-expanded":
|
|
1568
|
+
"aria-expanded": g
|
|
1569
1569
|
})
|
|
1570
1570
|
] });
|
|
1571
1571
|
}, ce = C.div`
|
|
@@ -1700,11 +1700,11 @@ const _t = 300, N1 = ({
|
|
|
1700
1700
|
/* SlideInTop */
|
|
1701
1701
|
]: Jt
|
|
1702
1702
|
}, je = (e, t, n) => {
|
|
1703
|
-
const [o, r] = w(0), [s, c] = w(0),
|
|
1703
|
+
const [o, r] = w(0), [s, c] = w(0), u = E(
|
|
1704
1704
|
(a, l) => {
|
|
1705
1705
|
if (a.preventDefault(), l) {
|
|
1706
|
-
const
|
|
1707
|
-
r(Math.max(document.body.clientWidth -
|
|
1706
|
+
const d = l.getBoundingClientRect();
|
|
1707
|
+
r(Math.max(document.body.clientWidth - d.right, 1)), c(d.bottom + window.scrollY);
|
|
1708
1708
|
}
|
|
1709
1709
|
},
|
|
1710
1710
|
[o, s, r, c]
|
|
@@ -1717,8 +1717,8 @@ const _t = 300, N1 = ({
|
|
|
1717
1717
|
y: s
|
|
1718
1718
|
};
|
|
1719
1719
|
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
|
-
},
|
|
1720
|
+
}, [n, e, t]), [{ x: o, y: s }, u];
|
|
1721
|
+
}, Wo = oe.forwardRef(
|
|
1722
1722
|
({
|
|
1723
1723
|
className: e = "",
|
|
1724
1724
|
children: t = null,
|
|
@@ -1726,43 +1726,43 @@ const _t = 300, N1 = ({
|
|
|
1726
1726
|
closeButtonAriaLabel: o,
|
|
1727
1727
|
...r
|
|
1728
1728
|
}, s) => {
|
|
1729
|
-
const c = L(),
|
|
1729
|
+
const c = L(), u = L(), a = L();
|
|
1730
1730
|
ge(s, () => a.current, [a.current]);
|
|
1731
|
-
const l = L(_()), [
|
|
1731
|
+
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
1732
|
v(() => {
|
|
1733
1733
|
y && h(!1);
|
|
1734
1734
|
}, [y]), v(() => {
|
|
1735
|
-
|
|
1736
|
-
}, [
|
|
1735
|
+
d && c.current ? c.current.focus() : !d && u.current && f && u.current.focus();
|
|
1736
|
+
}, [d, c.current, u.current]), W(
|
|
1737
1737
|
"click",
|
|
1738
|
-
(
|
|
1739
|
-
const { target:
|
|
1740
|
-
!a.current || !
|
|
1738
|
+
(T) => {
|
|
1739
|
+
const { target: S } = T;
|
|
1740
|
+
!a.current || !S || a.current !== S && !a.current.contains(S) && h(!1);
|
|
1741
1741
|
},
|
|
1742
1742
|
window
|
|
1743
1743
|
), ae("router:changed", () => {
|
|
1744
1744
|
h(!1);
|
|
1745
1745
|
});
|
|
1746
|
-
const
|
|
1746
|
+
const $ = ye(l.current, () => {
|
|
1747
1747
|
h(!1);
|
|
1748
|
-
}), R =
|
|
1749
|
-
(
|
|
1750
|
-
|
|
1748
|
+
}), R = E(
|
|
1749
|
+
(T) => {
|
|
1750
|
+
T.stopPropagation(), p(T, u.current), h(!d), $();
|
|
1751
1751
|
},
|
|
1752
|
-
[
|
|
1752
|
+
[$, p, h]
|
|
1753
1753
|
);
|
|
1754
1754
|
return /* @__PURE__ */ b(U, { children: [
|
|
1755
|
-
|
|
1755
|
+
d && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ b(
|
|
1756
1756
|
tn,
|
|
1757
1757
|
{
|
|
1758
|
-
className:
|
|
1758
|
+
className: M(
|
|
1759
1759
|
"humany-dropdown",
|
|
1760
1760
|
`humany-dropdown-${l.current}`,
|
|
1761
1761
|
e
|
|
1762
1762
|
),
|
|
1763
1763
|
...r,
|
|
1764
|
-
x:
|
|
1765
|
-
y:
|
|
1764
|
+
x: g,
|
|
1765
|
+
y: m,
|
|
1766
1766
|
ref: a,
|
|
1767
1767
|
children: [
|
|
1768
1768
|
/* @__PURE__ */ i(
|
|
@@ -1781,9 +1781,9 @@ const _t = 300, N1 = ({
|
|
|
1781
1781
|
) }),
|
|
1782
1782
|
oe.cloneElement(n, {
|
|
1783
1783
|
onClick: R,
|
|
1784
|
-
ref:
|
|
1784
|
+
ref: u,
|
|
1785
1785
|
"aria-label": n.props.title,
|
|
1786
|
-
"aria-expanded":
|
|
1786
|
+
"aria-expanded": d
|
|
1787
1787
|
})
|
|
1788
1788
|
] });
|
|
1789
1789
|
}
|
|
@@ -1804,15 +1804,15 @@ const _t = 300, N1 = ({
|
|
|
1804
1804
|
}};
|
|
1805
1805
|
`, nn = ({ ...e }) => /* @__PURE__ */ i(on, { ...e }), on = C.div`
|
|
1806
1806
|
display: none;
|
|
1807
|
-
`,
|
|
1807
|
+
`, Zo = N(
|
|
1808
1808
|
({ children: e, columns: t, gap: n, className: o, ...r }, s) => /* @__PURE__ */ i(
|
|
1809
1809
|
rn,
|
|
1810
1810
|
{
|
|
1811
|
-
className:
|
|
1811
|
+
className: M(o, "humany-grid"),
|
|
1812
1812
|
"data-columns": t,
|
|
1813
1813
|
"data-gap": n,
|
|
1814
1814
|
...We(r),
|
|
1815
|
-
...
|
|
1815
|
+
...z(r),
|
|
1816
1816
|
ref: s,
|
|
1817
1817
|
children: e
|
|
1818
1818
|
}
|
|
@@ -1824,25 +1824,60 @@ const _t = 300, N1 = ({
|
|
|
1824
1824
|
justify-content: center;
|
|
1825
1825
|
grid-auto-rows: max-content;
|
|
1826
1826
|
${Mt}
|
|
1827
|
-
`, Ke =
|
|
1827
|
+
`, Ke = N(
|
|
1828
1828
|
({ htmlParseInstruction: e = null, className: t, html: n, ...o }, r) => {
|
|
1829
|
-
const s =
|
|
1830
|
-
|
|
1831
|
-
const
|
|
1832
|
-
...
|
|
1829
|
+
const s = B(), [c, u] = w();
|
|
1830
|
+
v(() => {
|
|
1831
|
+
const d = Ht(s, n), h = {
|
|
1832
|
+
...d,
|
|
1833
1833
|
...e,
|
|
1834
1834
|
transform: {
|
|
1835
|
-
...
|
|
1835
|
+
...d.transform,
|
|
1836
1836
|
...e == null ? void 0 : e.transform
|
|
1837
1837
|
}
|
|
1838
|
-
},
|
|
1839
|
-
|
|
1840
|
-
}, [n, e])
|
|
1838
|
+
}, f = Et(n, h);
|
|
1839
|
+
u(f);
|
|
1840
|
+
}, [n, e]);
|
|
1841
|
+
const a = L(null), l = s.get("$widget");
|
|
1842
|
+
return v(() => {
|
|
1843
|
+
const d = a.current;
|
|
1844
|
+
if (!d || d.getAttribute("data-observed"))
|
|
1845
|
+
return;
|
|
1846
|
+
new MutationObserver((f) => {
|
|
1847
|
+
f.forEach((g) => {
|
|
1848
|
+
var $, R, T;
|
|
1849
|
+
let m = g.target;
|
|
1850
|
+
if (m.tagName === "DIV" && m.matches("[data-notification]") && m.getAttribute("data-expandable")) {
|
|
1851
|
+
const S = m.firstChild;
|
|
1852
|
+
if (S && S.nodeType === Node.TEXT_NODE) {
|
|
1853
|
+
const D = document.createElement("p");
|
|
1854
|
+
D.appendChild(S), m.appendChild(D);
|
|
1855
|
+
return;
|
|
1856
|
+
} else
|
|
1857
|
+
S && S.nodeType === Node.ELEMENT_NODE && (m = S);
|
|
1858
|
+
} else if (m.tagName !== "P" || !(($ = m.closest("[data-notification]")) != null && $.getAttribute("data-expandable")))
|
|
1859
|
+
return;
|
|
1860
|
+
if (!(m != null && m.closest(".humany-notification-row")))
|
|
1861
|
+
return;
|
|
1862
|
+
const p = (R = m.closest(".humany-notification-row")) == null ? void 0 : R.getAttribute("data-node-id"), y = (T = m.closest("[data-notification]")) == null ? void 0 : T.getAttribute("data-notification");
|
|
1863
|
+
m.scrollWidth > m.clientWidth ? (l.container.expandableNotifications || (l.container.expandableNotifications = /* @__PURE__ */ new Set()), l.container.expandableNotifications.add(y), l.events.dispatch("notification:expandable", {
|
|
1864
|
+
expandable: !0,
|
|
1865
|
+
notificationRowId: p
|
|
1866
|
+
})) : l.events.dispatch("notification:expandable", {
|
|
1867
|
+
expandable: !1,
|
|
1868
|
+
notificationRowId: p
|
|
1869
|
+
});
|
|
1870
|
+
});
|
|
1871
|
+
}).observe(d, {
|
|
1872
|
+
childList: !0,
|
|
1873
|
+
subtree: !0
|
|
1874
|
+
}), d.setAttribute("data-observed", "true");
|
|
1875
|
+
}, [c, l]), /* @__PURE__ */ i(
|
|
1841
1876
|
"div",
|
|
1842
1877
|
{
|
|
1843
|
-
className:
|
|
1844
|
-
...
|
|
1845
|
-
ref:
|
|
1878
|
+
className: M(t, "humany-html"),
|
|
1879
|
+
...z(o),
|
|
1880
|
+
ref: a,
|
|
1846
1881
|
children: c
|
|
1847
1882
|
}
|
|
1848
1883
|
);
|
|
@@ -1856,12 +1891,12 @@ const _t = 300, N1 = ({
|
|
|
1856
1891
|
}) => /* @__PURE__ */ i(
|
|
1857
1892
|
"i",
|
|
1858
1893
|
{
|
|
1859
|
-
className:
|
|
1894
|
+
className: M(n, `fa fa-${e}`),
|
|
1860
1895
|
title: t,
|
|
1861
1896
|
role: o,
|
|
1862
|
-
...
|
|
1897
|
+
...z(r)
|
|
1863
1898
|
}
|
|
1864
|
-
),
|
|
1899
|
+
), Io = N(
|
|
1865
1900
|
({
|
|
1866
1901
|
className: e = "",
|
|
1867
1902
|
autoFocus: t = !1,
|
|
@@ -1874,72 +1909,72 @@ const _t = 300, N1 = ({
|
|
|
1874
1909
|
selectAllOnFocus: s,
|
|
1875
1910
|
onChange: c = () => {
|
|
1876
1911
|
},
|
|
1877
|
-
disabled:
|
|
1912
|
+
disabled: u = !1,
|
|
1878
1913
|
type: a,
|
|
1879
1914
|
...l
|
|
1880
|
-
},
|
|
1881
|
-
const [h, f] = w(t),
|
|
1882
|
-
ge(
|
|
1915
|
+
}, d) => {
|
|
1916
|
+
const [h, f] = w(t), g = L();
|
|
1917
|
+
ge(d, () => g.current), v(() => {
|
|
1883
1918
|
var y;
|
|
1884
|
-
t && ((y =
|
|
1885
|
-
}, [t,
|
|
1886
|
-
const
|
|
1887
|
-
f(y), n && n(y), s && y &&
|
|
1919
|
+
t && ((y = g == null ? void 0 : g.current) == null || y.focus());
|
|
1920
|
+
}, [t, d, g]);
|
|
1921
|
+
const m = (y, $) => {
|
|
1922
|
+
f(y), n && n(y), s && y && $.target.select();
|
|
1888
1923
|
}, p = {
|
|
1889
|
-
...
|
|
1890
|
-
disabled:
|
|
1924
|
+
...z(l),
|
|
1925
|
+
disabled: u,
|
|
1891
1926
|
autoFocus: t,
|
|
1892
1927
|
type: a,
|
|
1893
1928
|
onKeyDown: (y) => {
|
|
1894
1929
|
y.key === "Enter" && h && o(y), y.key === "Escape" && h && r(y);
|
|
1895
1930
|
},
|
|
1896
|
-
onFocus: (y) =>
|
|
1897
|
-
onBlur: (y) =>
|
|
1931
|
+
onFocus: (y) => m(!0, y),
|
|
1932
|
+
onBlur: (y) => m(!1, y),
|
|
1898
1933
|
onChange: (y) => c(y.target.value || ""),
|
|
1899
|
-
className:
|
|
1934
|
+
className: M(e, "humany-input"),
|
|
1900
1935
|
"data-type": a
|
|
1901
1936
|
};
|
|
1902
1937
|
return a !== "textarea" ? /* @__PURE__ */ i(
|
|
1903
1938
|
"input",
|
|
1904
1939
|
{
|
|
1905
1940
|
...p,
|
|
1906
|
-
ref:
|
|
1941
|
+
ref: g
|
|
1907
1942
|
}
|
|
1908
1943
|
) : /* @__PURE__ */ i(
|
|
1909
1944
|
"textarea",
|
|
1910
1945
|
{
|
|
1911
1946
|
...p,
|
|
1912
|
-
ref:
|
|
1947
|
+
ref: g
|
|
1913
1948
|
}
|
|
1914
1949
|
);
|
|
1915
1950
|
}
|
|
1916
|
-
), an =
|
|
1951
|
+
), an = N(
|
|
1917
1952
|
({ className: e, items: t, renderItem: n, renderLi: o = !1, ...r }, s) => {
|
|
1918
1953
|
const c = t.length === 1 && t[0].expanded;
|
|
1919
1954
|
return /* @__PURE__ */ i(
|
|
1920
1955
|
"ul",
|
|
1921
1956
|
{
|
|
1922
1957
|
role: c ? "none" : void 0,
|
|
1923
|
-
className:
|
|
1958
|
+
className: M(e, "humany-list"),
|
|
1924
1959
|
"data-item-count": t.length,
|
|
1925
|
-
...
|
|
1960
|
+
...z(r),
|
|
1926
1961
|
ref: s,
|
|
1927
1962
|
children: t.map(
|
|
1928
|
-
(
|
|
1963
|
+
(u, a, l) => o ? /* @__PURE__ */ i("li", { className: "humany-list-item", children: n(u, a, l) }, u.id || a) : n(u, a, l)
|
|
1929
1964
|
)
|
|
1930
1965
|
}
|
|
1931
1966
|
);
|
|
1932
1967
|
}
|
|
1933
|
-
), cn =
|
|
1934
|
-
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c },
|
|
1968
|
+
), cn = N(
|
|
1969
|
+
({ text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s, ...c }, u) => {
|
|
1935
1970
|
var l;
|
|
1936
1971
|
const a = (l = window.humany) == null ? void 0 : l.deflectionHeaderTag;
|
|
1937
1972
|
return /* @__PURE__ */ b(
|
|
1938
1973
|
"div",
|
|
1939
1974
|
{
|
|
1940
|
-
className:
|
|
1941
|
-
...
|
|
1942
|
-
ref:
|
|
1975
|
+
className: M(o, "humany-paragraph"),
|
|
1976
|
+
...z(c),
|
|
1977
|
+
ref: u,
|
|
1943
1978
|
children: [
|
|
1944
1979
|
n ? /* @__PURE__ */ b(
|
|
1945
1980
|
X,
|
|
@@ -1957,7 +1992,7 @@ const _t = 300, N1 = ({
|
|
|
1957
1992
|
}
|
|
1958
1993
|
);
|
|
1959
1994
|
}
|
|
1960
|
-
), ln =
|
|
1995
|
+
), ln = N(
|
|
1961
1996
|
({
|
|
1962
1997
|
header: e,
|
|
1963
1998
|
customHeader: t,
|
|
@@ -1966,34 +2001,34 @@ const _t = 300, N1 = ({
|
|
|
1966
2001
|
className: r,
|
|
1967
2002
|
children: s,
|
|
1968
2003
|
symbol: c,
|
|
1969
|
-
items:
|
|
2004
|
+
items: u,
|
|
1970
2005
|
renderItem: a,
|
|
1971
2006
|
renderLi: l,
|
|
1972
|
-
ulProps:
|
|
2007
|
+
ulProps: d,
|
|
1973
2008
|
...h
|
|
1974
2009
|
}, f) => /* @__PURE__ */ b(
|
|
1975
2010
|
"div",
|
|
1976
2011
|
{
|
|
1977
|
-
className:
|
|
1978
|
-
"data-item-count":
|
|
1979
|
-
...
|
|
2012
|
+
className: M(r, "humany-item-list"),
|
|
2013
|
+
"data-item-count": u.length,
|
|
2014
|
+
...z(h),
|
|
1980
2015
|
ref: f,
|
|
1981
2016
|
children: [
|
|
1982
2017
|
t || (e || n || o ? /* @__PURE__ */ i(cn, { symbol: c, header: e, text: n, html: o }) : null),
|
|
1983
|
-
|
|
2018
|
+
u.length ? /* @__PURE__ */ i(
|
|
1984
2019
|
an,
|
|
1985
2020
|
{
|
|
1986
|
-
items:
|
|
2021
|
+
items: u,
|
|
1987
2022
|
renderItem: a,
|
|
1988
2023
|
renderLi: l,
|
|
1989
|
-
...
|
|
2024
|
+
...d
|
|
1990
2025
|
}
|
|
1991
2026
|
) : null,
|
|
1992
2027
|
s
|
|
1993
2028
|
]
|
|
1994
2029
|
}
|
|
1995
2030
|
)
|
|
1996
|
-
),
|
|
2031
|
+
), Oo = ({
|
|
1997
2032
|
className: e = "",
|
|
1998
2033
|
tree: t,
|
|
1999
2034
|
renderItem: n,
|
|
@@ -2001,34 +2036,34 @@ const _t = 300, N1 = ({
|
|
|
2001
2036
|
renderUnselected: r = !0,
|
|
2002
2037
|
renderEmpty: s = !0,
|
|
2003
2038
|
ulProps: c,
|
|
2004
|
-
liProps:
|
|
2039
|
+
liProps: u
|
|
2005
2040
|
}) => {
|
|
2006
|
-
const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected),
|
|
2041
|
+
const a = (h) => !l(h), l = (h) => !h || h.length < 1 ? !0 : !h.some((f) => !!f.selected), d = (h, f) => /* @__PURE__ */ i(
|
|
2007
2042
|
ln,
|
|
2008
2043
|
{
|
|
2009
|
-
className:
|
|
2044
|
+
className: M(`humany-item-tree-level-${f}`),
|
|
2010
2045
|
items: h,
|
|
2011
2046
|
ulProps: c,
|
|
2012
|
-
renderItem: (
|
|
2013
|
-
const { id:
|
|
2014
|
-
return !s &&
|
|
2047
|
+
renderItem: (g) => {
|
|
2048
|
+
const { id: m, selected: p, items: y, matches: $ } = g, R = p && l(y);
|
|
2049
|
+
return !s && !$ ? null : /* @__PURE__ */ at(
|
|
2015
2050
|
"li",
|
|
2016
2051
|
{
|
|
2017
|
-
...
|
|
2018
|
-
key:
|
|
2052
|
+
...z(u),
|
|
2053
|
+
key: m,
|
|
2019
2054
|
className: "humany-item-tree-item"
|
|
2020
2055
|
},
|
|
2021
|
-
n && n(
|
|
2022
|
-
y && (r || R) &&
|
|
2056
|
+
n && n(g, f, R),
|
|
2057
|
+
y && (r || R) && d(y, f + 1)
|
|
2023
2058
|
);
|
|
2024
2059
|
}
|
|
2025
2060
|
}
|
|
2026
2061
|
);
|
|
2027
|
-
return /* @__PURE__ */ b("div", { className:
|
|
2062
|
+
return /* @__PURE__ */ b("div", { className: M(e, "humany-item-tree"), children: [
|
|
2028
2063
|
o && o(!a(t || [])),
|
|
2029
|
-
t &&
|
|
2064
|
+
t && d(t, 1)
|
|
2030
2065
|
] });
|
|
2031
|
-
},
|
|
2066
|
+
}, dn = N(
|
|
2032
2067
|
({
|
|
2033
2068
|
className: e,
|
|
2034
2069
|
onClick: t = () => {
|
|
@@ -2038,72 +2073,72 @@ const _t = 300, N1 = ({
|
|
|
2038
2073
|
params: r = {},
|
|
2039
2074
|
children: s,
|
|
2040
2075
|
...c
|
|
2041
|
-
},
|
|
2042
|
-
const a = Oe(), l =
|
|
2076
|
+
}, u) => {
|
|
2077
|
+
const a = Oe(), l = B();
|
|
2043
2078
|
if (!a)
|
|
2044
2079
|
return null;
|
|
2045
|
-
let
|
|
2080
|
+
let d = "";
|
|
2046
2081
|
const h = {
|
|
2047
2082
|
onClick: t,
|
|
2048
|
-
className:
|
|
2049
|
-
to:
|
|
2050
|
-
innerRef:
|
|
2083
|
+
className: M(e, "humany-route-link"),
|
|
2084
|
+
to: d,
|
|
2085
|
+
innerRef: u,
|
|
2051
2086
|
...c,
|
|
2052
2087
|
ref: null
|
|
2053
2088
|
};
|
|
2054
2089
|
if (n) {
|
|
2055
2090
|
if (!(a.routes || []).find((p) => p.name === n))
|
|
2056
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2091
|
+
return process.env.NODE_ENV !== "production" && de.warn(
|
|
2057
2092
|
`Unable to create route. No route named "${n}" exist.`
|
|
2058
2093
|
), /* @__PURE__ */ i(
|
|
2059
|
-
|
|
2094
|
+
ue,
|
|
2060
2095
|
{
|
|
2061
2096
|
...h,
|
|
2062
2097
|
onClick: (p) => {
|
|
2063
|
-
t(p), p.preventDefault(), process.env.NODE_ENV !== "production" &&
|
|
2098
|
+
t(p), p.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(
|
|
2064
2099
|
`Unable to navigate. No route named "${n}" exist.`
|
|
2065
2100
|
);
|
|
2066
2101
|
},
|
|
2067
2102
|
children: s
|
|
2068
2103
|
}
|
|
2069
2104
|
);
|
|
2070
|
-
const
|
|
2105
|
+
const m = Object.keys(r).reduce(
|
|
2071
2106
|
(p, y) => {
|
|
2072
|
-
const
|
|
2073
|
-
if (Array.isArray(
|
|
2074
|
-
if (
|
|
2107
|
+
const $ = r[y];
|
|
2108
|
+
if (Array.isArray($)) {
|
|
2109
|
+
if ($.length === 0)
|
|
2075
2110
|
return p;
|
|
2076
|
-
p[y] =
|
|
2111
|
+
p[y] = $.map((R) => typeof R == "string" ? encodeURIComponent(R) : R).join(",");
|
|
2077
2112
|
} else
|
|
2078
|
-
p[y] = typeof
|
|
2113
|
+
p[y] = typeof $ == "string" ? encodeURIComponent($) : $;
|
|
2079
2114
|
return p;
|
|
2080
2115
|
},
|
|
2081
2116
|
{}
|
|
2082
2117
|
);
|
|
2083
2118
|
try {
|
|
2084
|
-
|
|
2119
|
+
d = a.generate(n, m || {});
|
|
2085
2120
|
} catch {
|
|
2086
|
-
return /* @__PURE__ */ i(
|
|
2121
|
+
return /* @__PURE__ */ i(ue, { ...h, ref: h.innerRef, children: s });
|
|
2087
2122
|
}
|
|
2088
|
-
|
|
2123
|
+
d && a.settings.mode && a.settings.mode === De.browser && d[0] !== "/" && (d = `/${d}`);
|
|
2089
2124
|
} else if (o && a.history)
|
|
2090
|
-
|
|
2125
|
+
d = a.history.createHref({
|
|
2091
2126
|
hash: "",
|
|
2092
2127
|
pathname: o,
|
|
2093
2128
|
search: "",
|
|
2094
2129
|
state: void 0
|
|
2095
2130
|
});
|
|
2096
2131
|
else
|
|
2097
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2132
|
+
return process.env.NODE_ENV !== "production" && de.warn(
|
|
2098
2133
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2099
2134
|
), null;
|
|
2100
|
-
if (a.settings && a.settings.mode ===
|
|
2135
|
+
if (a.settings && a.settings.mode === De.scopedHash) {
|
|
2101
2136
|
const f = l.get("$widget").name;
|
|
2102
|
-
|
|
2137
|
+
d = bt(d, f);
|
|
2103
2138
|
}
|
|
2104
|
-
return h.as ? /* @__PURE__ */ i(
|
|
2139
|
+
return h.as ? /* @__PURE__ */ i(un, { ...h, as: h.as, children: s }) : /* @__PURE__ */ i(ue, { ...h, to: d, children: s });
|
|
2105
2140
|
}
|
|
2106
|
-
),
|
|
2141
|
+
), un = C.span``, xe = N(
|
|
2107
2142
|
({
|
|
2108
2143
|
className: e,
|
|
2109
2144
|
disabled: t = !1,
|
|
@@ -2114,46 +2149,46 @@ const _t = 300, N1 = ({
|
|
|
2114
2149
|
},
|
|
2115
2150
|
title: s,
|
|
2116
2151
|
as: c,
|
|
2117
|
-
href:
|
|
2152
|
+
href: u,
|
|
2118
2153
|
children: a,
|
|
2119
2154
|
target: l,
|
|
2120
|
-
routeName:
|
|
2155
|
+
routeName: d,
|
|
2121
2156
|
params: h,
|
|
2122
2157
|
...f
|
|
2123
|
-
},
|
|
2124
|
-
var
|
|
2125
|
-
const
|
|
2158
|
+
}, g) => {
|
|
2159
|
+
var T, S;
|
|
2160
|
+
const m = {
|
|
2126
2161
|
title: s,
|
|
2127
|
-
role:
|
|
2128
|
-
"aria-expanded":
|
|
2162
|
+
role: d === "index" || d === "contact-method" || t ? "button" : void 0,
|
|
2163
|
+
"aria-expanded": d === "index" ? "false" : void 0,
|
|
2129
2164
|
disabled: t,
|
|
2130
2165
|
as: c,
|
|
2131
2166
|
tabIndex: n,
|
|
2132
|
-
className:
|
|
2167
|
+
className: M(e, "humany-link", [
|
|
2133
2168
|
!!t,
|
|
2134
2169
|
"humany-disabled"
|
|
2135
2170
|
]),
|
|
2136
|
-
onClick: (
|
|
2137
|
-
if (
|
|
2138
|
-
|
|
2171
|
+
onClick: (D) => {
|
|
2172
|
+
if (D.persist(), t) {
|
|
2173
|
+
D.preventDefault();
|
|
2139
2174
|
return;
|
|
2140
2175
|
}
|
|
2141
|
-
o(
|
|
2176
|
+
o(D);
|
|
2142
2177
|
},
|
|
2143
|
-
onKeyDown: (
|
|
2144
|
-
if (
|
|
2145
|
-
|
|
2178
|
+
onKeyDown: (D) => {
|
|
2179
|
+
if (D.persist(), t) {
|
|
2180
|
+
D.key !== "Tab" && D.preventDefault();
|
|
2146
2181
|
return;
|
|
2147
2182
|
}
|
|
2148
|
-
r(
|
|
2183
|
+
r(D);
|
|
2149
2184
|
}
|
|
2150
2185
|
};
|
|
2151
|
-
f["data-client-name"] === "custom.link" && (
|
|
2152
|
-
const y =
|
|
2153
|
-
return
|
|
2186
|
+
f["data-client-name"] === "custom.link" && (m.role = "link");
|
|
2187
|
+
const y = B().get("$settings"), $ = t && ((S = (T = y == null ? void 0 : y.data) == null ? void 0 : T.accessibility) == null ? void 0 : S.disableInactiveLink), R = f.description || "<p></p>";
|
|
2188
|
+
return $ ? /* @__PURE__ */ b(hn, { className: "disabled-link", children: [
|
|
2154
2189
|
/* @__PURE__ */ i("div", { className: "icon-placeholder" }),
|
|
2155
2190
|
/* @__PURE__ */ b("div", { className: "humany-contact-link-rich-content", children: [
|
|
2156
|
-
/* @__PURE__ */ i("span", { children:
|
|
2191
|
+
/* @__PURE__ */ i("span", { children: m.title }),
|
|
2157
2192
|
/* @__PURE__ */ i(
|
|
2158
2193
|
"div",
|
|
2159
2194
|
{
|
|
@@ -2162,24 +2197,24 @@ const _t = 300, N1 = ({
|
|
|
2162
2197
|
}
|
|
2163
2198
|
)
|
|
2164
2199
|
] })
|
|
2165
|
-
] }) :
|
|
2200
|
+
] }) : d ? /* @__PURE__ */ i(
|
|
2166
2201
|
fn,
|
|
2167
2202
|
{
|
|
2168
|
-
name:
|
|
2203
|
+
name: d,
|
|
2169
2204
|
params: h,
|
|
2170
|
-
...
|
|
2171
|
-
...
|
|
2172
|
-
ref:
|
|
2205
|
+
...m,
|
|
2206
|
+
...z(f),
|
|
2207
|
+
ref: g,
|
|
2173
2208
|
children: a
|
|
2174
2209
|
}
|
|
2175
2210
|
) : /* @__PURE__ */ i(
|
|
2176
2211
|
mn,
|
|
2177
2212
|
{
|
|
2178
|
-
href:
|
|
2213
|
+
href: u,
|
|
2179
2214
|
target: l,
|
|
2180
|
-
...
|
|
2181
|
-
...
|
|
2182
|
-
ref:
|
|
2215
|
+
...m,
|
|
2216
|
+
...z(f),
|
|
2217
|
+
ref: g,
|
|
2183
2218
|
children: a
|
|
2184
2219
|
}
|
|
2185
2220
|
);
|
|
@@ -2204,7 +2239,7 @@ const _t = 300, N1 = ({
|
|
|
2204
2239
|
vertical-align: bottom;
|
|
2205
2240
|
color: #333333;
|
|
2206
2241
|
}
|
|
2207
|
-
`, fn = C(
|
|
2242
|
+
`, fn = C(dn)`
|
|
2208
2243
|
${(e) => e.disabled ? `
|
|
2209
2244
|
pointer-events: none;
|
|
2210
2245
|
opacity: .7;
|
|
@@ -2222,9 +2257,9 @@ const _t = 300, N1 = ({
|
|
|
2222
2257
|
},
|
|
2223
2258
|
...r
|
|
2224
2259
|
}) => {
|
|
2225
|
-
const s = L(), c =
|
|
2226
|
-
(
|
|
2227
|
-
|
|
2260
|
+
const s = L(), c = E(
|
|
2261
|
+
(u) => {
|
|
2262
|
+
u.target === s.current && o(u);
|
|
2228
2263
|
},
|
|
2229
2264
|
[o]
|
|
2230
2265
|
);
|
|
@@ -2279,11 +2314,11 @@ const _t = 300, N1 = ({
|
|
|
2279
2314
|
&.humany-overlay-transition-exit-done {
|
|
2280
2315
|
opacity: 0;
|
|
2281
2316
|
}
|
|
2282
|
-
`, pn =
|
|
2317
|
+
`, pn = Be`
|
|
2283
2318
|
100% {
|
|
2284
2319
|
transform: rotate(360deg);
|
|
2285
2320
|
}
|
|
2286
|
-
`, Cn =
|
|
2321
|
+
`, Cn = Be`
|
|
2287
2322
|
0% {
|
|
2288
2323
|
stroke-dasharray: 1, 200;
|
|
2289
2324
|
stroke-dashoffset: 0;
|
|
@@ -2348,7 +2383,7 @@ const _t = 300, N1 = ({
|
|
|
2348
2383
|
`, wn = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ i(
|
|
2349
2384
|
bn,
|
|
2350
2385
|
{
|
|
2351
|
-
className:
|
|
2386
|
+
className: M("humany-loader", e),
|
|
2352
2387
|
"data-loading": t,
|
|
2353
2388
|
children: /* @__PURE__ */ i(vn, { className: "humany-spinner", children: /* @__PURE__ */ i(yn, { viewBox: "25 25 50 50", children: /* @__PURE__ */ i(
|
|
2354
2389
|
xn,
|
|
@@ -2368,18 +2403,18 @@ const _t = 300, N1 = ({
|
|
|
2368
2403
|
changeZoom: n,
|
|
2369
2404
|
...o
|
|
2370
2405
|
}) => {
|
|
2371
|
-
var
|
|
2372
|
-
const r = L(null), [s, c] = w(!1), [
|
|
2406
|
+
var m;
|
|
2407
|
+
const r = L(null), [s, c] = w(!1), [u, a] = w(!1), { width: l, height: d, ...h } = o.style || {}, f = E(() => {
|
|
2373
2408
|
const p = r.current;
|
|
2374
2409
|
if (p) {
|
|
2375
|
-
const y = window.innerWidth / p.naturalWidth,
|
|
2376
|
-
return
|
|
2410
|
+
const y = window.innerWidth / p.naturalWidth, $ = window.innerHeight / p.naturalHeight, R = Math.min(y, $);
|
|
2411
|
+
return $ >= 1 && y >= 1 ? 1 : R;
|
|
2377
2412
|
}
|
|
2378
2413
|
return 1;
|
|
2379
|
-
}, [s, t.src]),
|
|
2414
|
+
}, [s, t.src]), g = re(() => {
|
|
2380
2415
|
const p = r.current;
|
|
2381
2416
|
if (p && s) {
|
|
2382
|
-
if (!
|
|
2417
|
+
if (!u) {
|
|
2383
2418
|
a(!0);
|
|
2384
2419
|
const y = f();
|
|
2385
2420
|
n(y);
|
|
@@ -2399,10 +2434,10 @@ const _t = 300, N1 = ({
|
|
|
2399
2434
|
c(!0);
|
|
2400
2435
|
},
|
|
2401
2436
|
ref: r,
|
|
2402
|
-
imageSize:
|
|
2437
|
+
imageSize: g,
|
|
2403
2438
|
draggable: "false",
|
|
2404
2439
|
...o,
|
|
2405
|
-
alt: ((
|
|
2440
|
+
alt: ((m = o.alt) == null ? void 0 : m.toString()) || "",
|
|
2406
2441
|
style: h,
|
|
2407
2442
|
src: t.src,
|
|
2408
2443
|
loaded: s
|
|
@@ -2430,7 +2465,7 @@ const _t = 300, N1 = ({
|
|
|
2430
2465
|
display: inline-block;
|
|
2431
2466
|
vertical-align: middle;
|
|
2432
2467
|
`, Sn = () => {
|
|
2433
|
-
const e = L(), [t, n] = w(!0), o =
|
|
2468
|
+
const e = L(), [t, n] = w(!0), o = E(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2434
2469
|
n(!1);
|
|
2435
2470
|
}, 3e3), () => {
|
|
2436
2471
|
e.current && clearTimeout(e.current);
|
|
@@ -2438,41 +2473,41 @@ const _t = 300, N1 = ({
|
|
|
2438
2473
|
return [t, o];
|
|
2439
2474
|
}, En = ({ attrs: e, htmlBody: t }) => {
|
|
2440
2475
|
var Se;
|
|
2441
|
-
const n = j("Escape"), o = j("ArrowLeft"), r = j("ArrowRight"), [s, c] = w(1), [
|
|
2476
|
+
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] = Sn(), [g, m] = w(null), [p, y] = w(null), $ = L(null), R = L(null), T = L(null), S = L(null), D = L(null), [Ue, qe] = w(null);
|
|
2442
2477
|
v(() => {
|
|
2443
|
-
n &&
|
|
2478
|
+
n && m(null);
|
|
2444
2479
|
}, [n]), v(() => {
|
|
2445
2480
|
c(1);
|
|
2446
|
-
}, [
|
|
2481
|
+
}, [g]), v(() => {
|
|
2447
2482
|
var I, ee;
|
|
2448
|
-
if (
|
|
2483
|
+
if (g === null || R.current === null)
|
|
2449
2484
|
return;
|
|
2450
|
-
const x = R.current.firstElementChild,
|
|
2485
|
+
const x = R.current.firstElementChild, H = (I = T.current) == null ? void 0 : I.querySelector(".nav-left"), V = (ee = T.current) == null ? void 0 : ee.querySelector(".nav-right");
|
|
2451
2486
|
if (p === "Right")
|
|
2452
|
-
J && V ? V.focus() : G &&
|
|
2487
|
+
J && V ? V.focus() : G && H && H.focus();
|
|
2453
2488
|
else if (p === "Left")
|
|
2454
|
-
G &&
|
|
2489
|
+
G && H ? H.focus() : J && V && V.focus();
|
|
2455
2490
|
else {
|
|
2456
2491
|
if (!x)
|
|
2457
2492
|
return;
|
|
2458
2493
|
x.focus();
|
|
2459
2494
|
}
|
|
2460
|
-
}, [
|
|
2495
|
+
}, [g, R, T, p]), v(() => {
|
|
2461
2496
|
if (o) {
|
|
2462
2497
|
if (G)
|
|
2463
2498
|
return Le();
|
|
2464
2499
|
} else if (r && J)
|
|
2465
2500
|
return Me();
|
|
2466
2501
|
}, [o, r]), v(() => {
|
|
2467
|
-
var
|
|
2468
|
-
const x = ((V = (
|
|
2502
|
+
var H, V;
|
|
2503
|
+
const x = ((V = (H = D.current) == null ? void 0 : H.style) == null ? void 0 : V.float) || "";
|
|
2469
2504
|
(x === "left" || x === "right") && qe(x);
|
|
2470
2505
|
}, []);
|
|
2471
2506
|
const A = re(() => {
|
|
2472
2507
|
const x = document.createElement("div");
|
|
2473
2508
|
x.innerHTML = t || "";
|
|
2474
|
-
const
|
|
2475
|
-
return Array.from(
|
|
2509
|
+
const H = x.getElementsByTagName("img");
|
|
2510
|
+
return Array.from(H).reduce(
|
|
2476
2511
|
(I, ee) => {
|
|
2477
2512
|
const Ee = ee.getAttribute("src");
|
|
2478
2513
|
if (Ee) {
|
|
@@ -2485,62 +2520,62 @@ const _t = 300, N1 = ({
|
|
|
2485
2520
|
},
|
|
2486
2521
|
[]
|
|
2487
2522
|
);
|
|
2488
|
-
}, [t]), ke =
|
|
2523
|
+
}, [t]), ke = E(() => {
|
|
2489
2524
|
const { src: x } = e;
|
|
2490
2525
|
if (x) {
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2526
|
+
const H = A.findIndex((V, I) => V.src === x);
|
|
2527
|
+
m(H);
|
|
2493
2528
|
}
|
|
2494
|
-
}, [A, e]), Qe =
|
|
2495
|
-
|
|
2496
|
-
}, []), $e =
|
|
2529
|
+
}, [A, e]), Qe = E((x) => {
|
|
2530
|
+
m(null);
|
|
2531
|
+
}, []), $e = E(
|
|
2497
2532
|
(x) => {
|
|
2498
2533
|
c(x ? s + s * 0.25 : s - s * 0.25);
|
|
2499
2534
|
},
|
|
2500
2535
|
[c, s]
|
|
2501
|
-
), Ge =
|
|
2502
|
-
if (
|
|
2503
|
-
const { src: x } = A[
|
|
2536
|
+
), Ge = E(() => {
|
|
2537
|
+
if (g !== null) {
|
|
2538
|
+
const { src: x } = A[g];
|
|
2504
2539
|
x && window.open(x, "_self");
|
|
2505
2540
|
}
|
|
2506
|
-
}, [A,
|
|
2541
|
+
}, [A, g]), Je = E(
|
|
2507
2542
|
(x) => {
|
|
2508
|
-
const
|
|
2509
|
-
|
|
2510
|
-
top:
|
|
2511
|
-
left:
|
|
2543
|
+
const H = S.current;
|
|
2544
|
+
H && (a({
|
|
2545
|
+
top: H.scrollTop,
|
|
2546
|
+
left: H.scrollLeft,
|
|
2512
2547
|
x: x.clientX,
|
|
2513
2548
|
y: x.clientY
|
|
2514
|
-
}),
|
|
2549
|
+
}), d(!0));
|
|
2515
2550
|
},
|
|
2516
|
-
[
|
|
2517
|
-
), et =
|
|
2551
|
+
[S]
|
|
2552
|
+
), et = E(
|
|
2518
2553
|
(x) => {
|
|
2519
|
-
const
|
|
2520
|
-
if (
|
|
2521
|
-
const V = x.clientX -
|
|
2522
|
-
|
|
2554
|
+
const H = S.current;
|
|
2555
|
+
if (H && l) {
|
|
2556
|
+
const V = x.clientX - u.x, I = x.clientY - u.y;
|
|
2557
|
+
H.scrollTop = u.top - I, H.scrollLeft = u.left - V;
|
|
2523
2558
|
}
|
|
2524
2559
|
},
|
|
2525
|
-
[l,
|
|
2560
|
+
[l, u]
|
|
2526
2561
|
), tt = (x) => {
|
|
2527
|
-
x.preventDefault(),
|
|
2562
|
+
x.preventDefault(), d(!1);
|
|
2528
2563
|
}, nt = re(() => {
|
|
2529
|
-
if (
|
|
2530
|
-
const x =
|
|
2564
|
+
if (S.current) {
|
|
2565
|
+
const x = S.current.getElementsByTagName("img");
|
|
2531
2566
|
if (x && x.length) {
|
|
2532
|
-
const
|
|
2533
|
-
return
|
|
2567
|
+
const H = x[0];
|
|
2568
|
+
return H.width > window.innerWidth || H.height > window.innerHeight;
|
|
2534
2569
|
}
|
|
2535
2570
|
}
|
|
2536
2571
|
return !1;
|
|
2537
|
-
}, [
|
|
2538
|
-
|
|
2572
|
+
}, [S, s]), Le = () => {
|
|
2573
|
+
g !== null && (y("Left"), m(g - 1));
|
|
2539
2574
|
}, Me = () => {
|
|
2540
|
-
|
|
2541
|
-
}, G =
|
|
2575
|
+
g !== null && (y("Right"), m(g + 1));
|
|
2576
|
+
}, G = g !== null && g > 0 && A.length > 1, J = g !== null && A.length - 1 > g;
|
|
2542
2577
|
return /* @__PURE__ */ b(U, { children: [
|
|
2543
|
-
/* @__PURE__ */ i(Ye, { visible:
|
|
2578
|
+
/* @__PURE__ */ i(Ye, { visible: g !== null, onClick: Qe, children: /* @__PURE__ */ b(
|
|
2544
2579
|
Vn,
|
|
2545
2580
|
{
|
|
2546
2581
|
onMouseDown: () => f(),
|
|
@@ -2549,7 +2584,7 @@ const _t = 300, N1 = ({
|
|
|
2549
2584
|
onKeyDown: () => f(),
|
|
2550
2585
|
children: [
|
|
2551
2586
|
/* @__PURE__ */ i(Wn, { show: h.toString(), children: /* @__PURE__ */ i(
|
|
2552
|
-
|
|
2587
|
+
Tn,
|
|
2553
2588
|
{
|
|
2554
2589
|
ref: R,
|
|
2555
2590
|
buttons: [
|
|
@@ -2561,7 +2596,7 @@ const _t = 300, N1 = ({
|
|
|
2561
2596
|
},
|
|
2562
2597
|
{
|
|
2563
2598
|
id: "lightbox-close",
|
|
2564
|
-
onClick: () =>
|
|
2599
|
+
onClick: () => m(null),
|
|
2565
2600
|
icon: "lightbox-close",
|
|
2566
2601
|
ariaLabel: "Close"
|
|
2567
2602
|
}
|
|
@@ -2573,11 +2608,11 @@ const _t = 300, N1 = ({
|
|
|
2573
2608
|
{
|
|
2574
2609
|
scrolling: l.toString(),
|
|
2575
2610
|
isDraggable: nt.toString(),
|
|
2576
|
-
ref:
|
|
2611
|
+
ref: S,
|
|
2577
2612
|
onMouseMove: et,
|
|
2578
2613
|
onMouseDown: Je,
|
|
2579
2614
|
onMouseUp: tt,
|
|
2580
|
-
children:
|
|
2615
|
+
children: g !== null && /* @__PURE__ */ i(
|
|
2581
2616
|
kn,
|
|
2582
2617
|
{
|
|
2583
2618
|
changeZoom: (x) => {
|
|
@@ -2589,15 +2624,15 @@ const _t = 300, N1 = ({
|
|
|
2589
2624
|
...e.style || {},
|
|
2590
2625
|
float: "none"
|
|
2591
2626
|
},
|
|
2592
|
-
image: A[
|
|
2627
|
+
image: A[g]
|
|
2593
2628
|
}
|
|
2594
2629
|
)
|
|
2595
2630
|
}
|
|
2596
2631
|
),
|
|
2597
2632
|
/* @__PURE__ */ i(
|
|
2598
|
-
|
|
2633
|
+
zn,
|
|
2599
2634
|
{
|
|
2600
|
-
ref:
|
|
2635
|
+
ref: T,
|
|
2601
2636
|
show: h.toString(),
|
|
2602
2637
|
buttons: [
|
|
2603
2638
|
{
|
|
@@ -2623,7 +2658,7 @@ const _t = 300, N1 = ({
|
|
|
2623
2658
|
),
|
|
2624
2659
|
/* @__PURE__ */ b(Zn, { show: h.toString(), children: [
|
|
2625
2660
|
/* @__PURE__ */ i(
|
|
2626
|
-
|
|
2661
|
+
Nn,
|
|
2627
2662
|
{
|
|
2628
2663
|
buttons: [
|
|
2629
2664
|
{
|
|
@@ -2641,7 +2676,7 @@ const _t = 300, N1 = ({
|
|
|
2641
2676
|
]
|
|
2642
2677
|
}
|
|
2643
2678
|
),
|
|
2644
|
-
/* @__PURE__ */ b(
|
|
2679
|
+
/* @__PURE__ */ b(Bn, { variant: "span", children: [
|
|
2645
2680
|
Math.trunc(s * 100),
|
|
2646
2681
|
"%"
|
|
2647
2682
|
] })
|
|
@@ -2652,7 +2687,7 @@ const _t = 300, N1 = ({
|
|
|
2652
2687
|
/* @__PURE__ */ i(
|
|
2653
2688
|
Rn,
|
|
2654
2689
|
{
|
|
2655
|
-
ref:
|
|
2690
|
+
ref: $,
|
|
2656
2691
|
onClick: ke,
|
|
2657
2692
|
onKeyDown: (x) => {
|
|
2658
2693
|
x.key === "Enter" && (x.preventDefault(), ke());
|
|
@@ -2664,38 +2699,38 @@ const _t = 300, N1 = ({
|
|
|
2664
2699
|
{
|
|
2665
2700
|
...e,
|
|
2666
2701
|
alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "",
|
|
2667
|
-
ref:
|
|
2702
|
+
ref: D
|
|
2668
2703
|
}
|
|
2669
2704
|
)
|
|
2670
2705
|
}
|
|
2671
2706
|
)
|
|
2672
2707
|
] });
|
|
2673
|
-
}, we =
|
|
2708
|
+
}, we = N(
|
|
2674
2709
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ i(
|
|
2675
2710
|
Hn,
|
|
2676
2711
|
{
|
|
2677
2712
|
ref: o,
|
|
2678
2713
|
show: e,
|
|
2679
|
-
className:
|
|
2714
|
+
className: M("humany-button-set", n),
|
|
2680
2715
|
children: t.map(
|
|
2681
2716
|
({
|
|
2682
2717
|
id: r,
|
|
2683
2718
|
circle: s = !1,
|
|
2684
2719
|
show: c = !0,
|
|
2685
|
-
ariaLabel:
|
|
2720
|
+
ariaLabel: u,
|
|
2686
2721
|
onClick: a,
|
|
2687
2722
|
icon: l,
|
|
2688
|
-
className:
|
|
2723
|
+
className: d
|
|
2689
2724
|
}, h) => /* @__PURE__ */ i(
|
|
2690
|
-
|
|
2725
|
+
Dn,
|
|
2691
2726
|
{
|
|
2692
2727
|
circle: s.toString(),
|
|
2693
2728
|
onClick: a,
|
|
2694
2729
|
tabIndex: c ? void 0 : -1,
|
|
2695
2730
|
show: c.toString(),
|
|
2696
2731
|
icon: l,
|
|
2697
|
-
className:
|
|
2698
|
-
"aria-label":
|
|
2732
|
+
className: d,
|
|
2733
|
+
"aria-label": u,
|
|
2699
2734
|
children: /* @__PURE__ */ i(Q, { size: 24, symbol: { type: "Svg", content: l } })
|
|
2700
2735
|
},
|
|
2701
2736
|
r + h.toString()
|
|
@@ -2723,7 +2758,7 @@ const _t = 300, N1 = ({
|
|
|
2723
2758
|
var t;
|
|
2724
2759
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2725
2760
|
}};
|
|
2726
|
-
`, me = "39px",
|
|
2761
|
+
`, me = "39px", Dn = C(se)`
|
|
2727
2762
|
width: ${me};
|
|
2728
2763
|
height: ${me};
|
|
2729
2764
|
display: flex;
|
|
@@ -2788,7 +2823,7 @@ const _t = 300, N1 = ({
|
|
|
2788
2823
|
opacity: 0;
|
|
2789
2824
|
pointer-events: none;
|
|
2790
2825
|
`}
|
|
2791
|
-
`,
|
|
2826
|
+
`, Tn = C(we)`
|
|
2792
2827
|
top: ${(e) => {
|
|
2793
2828
|
var t;
|
|
2794
2829
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2797,7 +2832,7 @@ const _t = 300, N1 = ({
|
|
|
2797
2832
|
var t;
|
|
2798
2833
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2799
2834
|
}};
|
|
2800
|
-
`,
|
|
2835
|
+
`, Nn = C(we)`
|
|
2801
2836
|
bottom: ${(e) => {
|
|
2802
2837
|
var t;
|
|
2803
2838
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2805,7 +2840,7 @@ const _t = 300, N1 = ({
|
|
|
2805
2840
|
width: 100%;
|
|
2806
2841
|
align-items: center;
|
|
2807
2842
|
justify-content: center;
|
|
2808
|
-
`,
|
|
2843
|
+
`, zn = C(we)`
|
|
2809
2844
|
display: block;
|
|
2810
2845
|
button {
|
|
2811
2846
|
position: fixed;
|
|
@@ -2823,7 +2858,7 @@ const _t = 300, N1 = ({
|
|
|
2823
2858
|
}};
|
|
2824
2859
|
}
|
|
2825
2860
|
}
|
|
2826
|
-
`,
|
|
2861
|
+
`, Bn = C(X)`
|
|
2827
2862
|
position: fixed;
|
|
2828
2863
|
bottom: ${(e) => {
|
|
2829
2864
|
var t;
|
|
@@ -2875,7 +2910,7 @@ const _t = 300, N1 = ({
|
|
|
2875
2910
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2876
2911
|
`, On = C.img`
|
|
2877
2912
|
cursor: pointer;
|
|
2878
|
-
`, An =
|
|
2913
|
+
`, An = N(
|
|
2879
2914
|
({
|
|
2880
2915
|
className: e,
|
|
2881
2916
|
children: t,
|
|
@@ -2885,15 +2920,15 @@ const _t = 300, N1 = ({
|
|
|
2885
2920
|
close: r = !1,
|
|
2886
2921
|
...s
|
|
2887
2922
|
}, c) => {
|
|
2888
|
-
const [
|
|
2923
|
+
const [u, a] = Fe(), [l, d] = Ae(!0), h = L(), f = L(_()), g = j("Escape");
|
|
2889
2924
|
v(() => {
|
|
2890
|
-
(
|
|
2891
|
-
}, [
|
|
2892
|
-
|
|
2893
|
-
}, [
|
|
2925
|
+
(g || r) && a(!1);
|
|
2926
|
+
}, [g, r]), v(() => {
|
|
2927
|
+
u && h.current && h.current.focus();
|
|
2928
|
+
}, [u, h.current]), ae("router:changed", () => {
|
|
2894
2929
|
a(!1);
|
|
2895
2930
|
});
|
|
2896
|
-
const
|
|
2931
|
+
const m = E(
|
|
2897
2932
|
(y) => {
|
|
2898
2933
|
a(!1), o(y);
|
|
2899
2934
|
},
|
|
@@ -2904,14 +2939,14 @@ const _t = 300, N1 = ({
|
|
|
2904
2939
|
a(!1);
|
|
2905
2940
|
}
|
|
2906
2941
|
}));
|
|
2907
|
-
const p =
|
|
2942
|
+
const p = E(() => ye(f.current, () => {
|
|
2908
2943
|
a(!1);
|
|
2909
2944
|
}), [f.current]);
|
|
2910
2945
|
return /* @__PURE__ */ b(U, { children: [
|
|
2911
|
-
/* @__PURE__ */ i(Ye, { visible:
|
|
2946
|
+
/* @__PURE__ */ i(Ye, { visible: u, onClick: m, children: /* @__PURE__ */ b(
|
|
2912
2947
|
Fn,
|
|
2913
2948
|
{
|
|
2914
|
-
className:
|
|
2949
|
+
className: M(
|
|
2915
2950
|
e,
|
|
2916
2951
|
"humany-modal",
|
|
2917
2952
|
`humany-modal-${f.current}`
|
|
@@ -2919,7 +2954,7 @@ const _t = 300, N1 = ({
|
|
|
2919
2954
|
css: l,
|
|
2920
2955
|
tabIndex: -1,
|
|
2921
2956
|
...s,
|
|
2922
|
-
ref:
|
|
2957
|
+
ref: d,
|
|
2923
2958
|
children: [
|
|
2924
2959
|
/* @__PURE__ */ i(
|
|
2925
2960
|
ve,
|
|
@@ -2960,7 +2995,7 @@ const _t = 300, N1 = ({
|
|
|
2960
2995
|
${(e) => Pe(e)}
|
|
2961
2996
|
${(e) => e.css && e.css}
|
|
2962
2997
|
outline: none;
|
|
2963
|
-
`,
|
|
2998
|
+
`, Ao = ({
|
|
2964
2999
|
className: e,
|
|
2965
3000
|
trigger: t,
|
|
2966
3001
|
header: n = "",
|
|
@@ -2970,12 +3005,12 @@ const _t = 300, N1 = ({
|
|
|
2970
3005
|
onConfirm: s = () => {
|
|
2971
3006
|
},
|
|
2972
3007
|
cancelLabel: c = "",
|
|
2973
|
-
confirmLabel:
|
|
3008
|
+
confirmLabel: u = ""
|
|
2974
3009
|
}) => {
|
|
2975
|
-
const a = L(), l =
|
|
3010
|
+
const a = L(), l = E(() => {
|
|
2976
3011
|
var h;
|
|
2977
3012
|
r(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2978
|
-
}, [r]),
|
|
3013
|
+
}, [r]), d = E(() => {
|
|
2979
3014
|
var h;
|
|
2980
3015
|
s(), (h = a == null ? void 0 : a.current) == null || h.close();
|
|
2981
3016
|
}, [s]);
|
|
@@ -2987,9 +3022,9 @@ const _t = 300, N1 = ({
|
|
|
2987
3022
|
ref: a,
|
|
2988
3023
|
onOverlayClick: l,
|
|
2989
3024
|
children: [
|
|
2990
|
-
n && /* @__PURE__ */ i(
|
|
2991
|
-
o && /* @__PURE__ */ i(
|
|
2992
|
-
|
|
3025
|
+
n && /* @__PURE__ */ i(Ne, { children: n }),
|
|
3026
|
+
o && /* @__PURE__ */ i(Ne, { children: o }),
|
|
3027
|
+
u && /* @__PURE__ */ i(jn, { onClick: d, children: u }),
|
|
2993
3028
|
c && /* @__PURE__ */ i(Kn, { onClick: l, children: c })
|
|
2994
3029
|
]
|
|
2995
3030
|
}
|
|
@@ -3063,7 +3098,7 @@ const _t = 300, N1 = ({
|
|
|
3063
3098
|
&:focus-visible {
|
|
3064
3099
|
${O};
|
|
3065
3100
|
}
|
|
3066
|
-
`,
|
|
3101
|
+
`, Fo = ({
|
|
3067
3102
|
header: e = "",
|
|
3068
3103
|
link: t = "",
|
|
3069
3104
|
suggestionHeader: n = "",
|
|
@@ -3129,7 +3164,7 @@ const _t = 300, N1 = ({
|
|
|
3129
3164
|
font-weight: bold;
|
|
3130
3165
|
}
|
|
3131
3166
|
`;
|
|
3132
|
-
class
|
|
3167
|
+
class Po extends ct {
|
|
3133
3168
|
constructor() {
|
|
3134
3169
|
super(...arguments);
|
|
3135
3170
|
te(this, "node");
|
|
@@ -3171,11 +3206,11 @@ class F1 extends ct {
|
|
|
3171
3206
|
) : null;
|
|
3172
3207
|
}
|
|
3173
3208
|
}
|
|
3174
|
-
const qn =
|
|
3209
|
+
const qn = N(
|
|
3175
3210
|
({ className: e, description: t, text: n, children: o, ...r }, s) => /* @__PURE__ */ b(
|
|
3176
3211
|
xe,
|
|
3177
3212
|
{
|
|
3178
|
-
className:
|
|
3213
|
+
className: M(e, "humany-text-link"),
|
|
3179
3214
|
...r,
|
|
3180
3215
|
ref: s,
|
|
3181
3216
|
children: [
|
|
@@ -3187,26 +3222,26 @@ const qn = D(
|
|
|
3187
3222
|
)
|
|
3188
3223
|
);
|
|
3189
3224
|
var Qn = /* @__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))(Qn || {});
|
|
3190
|
-
const
|
|
3225
|
+
const jo = ({
|
|
3191
3226
|
className: e = "",
|
|
3192
3227
|
format: t = "hh:mm",
|
|
3193
3228
|
timestamp: n
|
|
3194
|
-
}) => /* @__PURE__ */ i("span", { className:
|
|
3229
|
+
}) => /* @__PURE__ */ i("span", { className: M(e, "humany-timestamp"), children: Gn(n, t) }), ze = (e) => `0${e}`.slice(-2);
|
|
3195
3230
|
function Gn(e, t) {
|
|
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
|
-
|
|
3231
|
+
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(
|
|
3232
|
+
u
|
|
3198
3233
|
)}`;
|
|
3199
3234
|
return t === "yyyy-mm-dd" ? a : t === "hh:mm" ? r : `${a} ${r}`;
|
|
3200
3235
|
}
|
|
3201
|
-
const
|
|
3236
|
+
const Ko = ({
|
|
3202
3237
|
className: e,
|
|
3203
3238
|
children: t,
|
|
3204
3239
|
content: n,
|
|
3205
3240
|
sticky: o = !1,
|
|
3206
3241
|
...r
|
|
3207
3242
|
}) => {
|
|
3208
|
-
const [s, c] = w(!1),
|
|
3209
|
-
const { target: p } =
|
|
3243
|
+
const [s, c] = w(!1), u = L(_()), a = L(), [{ x: l, y: d }, h] = je(s, u.current, a.current), f = (m) => {
|
|
3244
|
+
const { target: p } = m;
|
|
3210
3245
|
!a.current || !p || a.current !== p && !a.current.contains(p) && c(!1);
|
|
3211
3246
|
};
|
|
3212
3247
|
v(() => {
|
|
@@ -3215,9 +3250,9 @@ const j1 = ({
|
|
|
3215
3250
|
window.removeEventListener("click", f);
|
|
3216
3251
|
};
|
|
3217
3252
|
}, [s, o]);
|
|
3218
|
-
const
|
|
3219
|
-
(
|
|
3220
|
-
h(
|
|
3253
|
+
const g = E(
|
|
3254
|
+
(m, p) => {
|
|
3255
|
+
h(m, a.current), c(p);
|
|
3221
3256
|
},
|
|
3222
3257
|
[h, c]
|
|
3223
3258
|
);
|
|
@@ -3226,18 +3261,18 @@ const j1 = ({
|
|
|
3226
3261
|
{
|
|
3227
3262
|
ref: a,
|
|
3228
3263
|
className: "humany-tooltip-trigger",
|
|
3229
|
-
onMouseEnter: o ? void 0 : (
|
|
3230
|
-
onMouseLeave: o ? void 0 : (
|
|
3231
|
-
onTouchEnd: o ? (
|
|
3232
|
-
onClick: o ? (
|
|
3264
|
+
onMouseEnter: o ? void 0 : (m) => g(m, !0),
|
|
3265
|
+
onMouseLeave: o ? void 0 : (m) => g(m, !1),
|
|
3266
|
+
onTouchEnd: o ? (m) => g(m, !s) : void 0,
|
|
3267
|
+
onClick: o ? (m) => g(m, !s) : void 0,
|
|
3233
3268
|
children: [
|
|
3234
3269
|
t,
|
|
3235
3270
|
s && /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(
|
|
3236
|
-
|
|
3271
|
+
eo,
|
|
3237
3272
|
{
|
|
3238
|
-
className:
|
|
3273
|
+
className: M(e, "humany-tooltip-container"),
|
|
3239
3274
|
x: l,
|
|
3240
|
-
y:
|
|
3275
|
+
y: d,
|
|
3241
3276
|
...r,
|
|
3242
3277
|
children: n
|
|
3243
3278
|
}
|
|
@@ -3248,7 +3283,7 @@ const j1 = ({
|
|
|
3248
3283
|
}, Jn = C.div`
|
|
3249
3284
|
display: flex;
|
|
3250
3285
|
align-items: center;
|
|
3251
|
-
`,
|
|
3286
|
+
`, eo = C.div`
|
|
3252
3287
|
color: #ffffff;
|
|
3253
3288
|
background: #161616;
|
|
3254
3289
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -3284,7 +3319,7 @@ const j1 = ({
|
|
|
3284
3319
|
let t = "";
|
|
3285
3320
|
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
3321
|
}};
|
|
3287
|
-
`,
|
|
3322
|
+
`, Yo = (e) => {
|
|
3288
3323
|
const {
|
|
3289
3324
|
in: t,
|
|
3290
3325
|
mountOnEnter: n = !0,
|
|
@@ -3293,7 +3328,7 @@ const j1 = ({
|
|
|
3293
3328
|
children: s,
|
|
3294
3329
|
transitions: c
|
|
3295
3330
|
} = e, a = (() => {
|
|
3296
|
-
var l,
|
|
3331
|
+
var l, d;
|
|
3297
3332
|
if (!(!c || c === "none")) {
|
|
3298
3333
|
if (typeof c == "string")
|
|
3299
3334
|
return {
|
|
@@ -3317,7 +3352,7 @@ const j1 = ({
|
|
|
3317
3352
|
easing: h.easing ? h.easing : "ease-in"
|
|
3318
3353
|
},
|
|
3319
3354
|
exit: {
|
|
3320
|
-
transitionKeys: (
|
|
3355
|
+
transitionKeys: (d = c.enter) == null ? void 0 : d.type,
|
|
3321
3356
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3322
3357
|
easing: f.easing ? f.easing : "ease-out"
|
|
3323
3358
|
}
|
|
@@ -3326,7 +3361,7 @@ const j1 = ({
|
|
|
3326
3361
|
}
|
|
3327
3362
|
})();
|
|
3328
3363
|
return /* @__PURE__ */ i(
|
|
3329
|
-
|
|
3364
|
+
dt,
|
|
3330
3365
|
{
|
|
3331
3366
|
timeout: {
|
|
3332
3367
|
enter: a && a.enter.duration || 0,
|
|
@@ -3340,7 +3375,7 @@ const j1 = ({
|
|
|
3340
3375
|
children: (l) => s && s(l, a && he.compose(l, a))
|
|
3341
3376
|
}
|
|
3342
3377
|
);
|
|
3343
|
-
},
|
|
3378
|
+
}, to = N(
|
|
3344
3379
|
({
|
|
3345
3380
|
className: e,
|
|
3346
3381
|
children: t,
|
|
@@ -3350,8 +3385,8 @@ const j1 = ({
|
|
|
3350
3385
|
activationOptions: r,
|
|
3351
3386
|
...s
|
|
3352
3387
|
}, c) => {
|
|
3353
|
-
const
|
|
3354
|
-
const { implementation: h } =
|
|
3388
|
+
const u = B(), a = () => {
|
|
3389
|
+
const { implementation: h } = u.get("$widget");
|
|
3355
3390
|
return h.widgets.get(o);
|
|
3356
3391
|
};
|
|
3357
3392
|
v(() => {
|
|
@@ -3361,35 +3396,35 @@ const j1 = ({
|
|
|
3361
3396
|
};
|
|
3362
3397
|
}, [o]);
|
|
3363
3398
|
const l = (h) => {
|
|
3364
|
-
const f = a(),
|
|
3399
|
+
const f = a(), g = h.currentTarget;
|
|
3365
3400
|
if (f) {
|
|
3366
|
-
const
|
|
3401
|
+
const m = () => {
|
|
3367
3402
|
f.invoke("renderState").then(
|
|
3368
3403
|
(p) => p === ne.open ? f.invoke("close") : f.invoke("open")
|
|
3369
3404
|
).then(() => {
|
|
3370
3405
|
f.events.subscribeOnce(
|
|
3371
3406
|
"widget:area-rendered",
|
|
3372
3407
|
(p, y) => {
|
|
3373
|
-
|
|
3408
|
+
u.get(
|
|
3374
3409
|
"widgetDOMElement"
|
|
3375
3410
|
) && f.events.dispatch("widget:modal-opened", {
|
|
3376
3411
|
name: f.name,
|
|
3377
|
-
ref:
|
|
3412
|
+
ref: g
|
|
3378
3413
|
});
|
|
3379
3414
|
}
|
|
3380
3415
|
);
|
|
3381
3416
|
});
|
|
3382
3417
|
};
|
|
3383
|
-
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(
|
|
3418
|
+
f.state === ht.Deactivated ? f.activate(r).then(() => f.invoke("attach")).then(m) : m();
|
|
3384
3419
|
}
|
|
3385
|
-
},
|
|
3420
|
+
}, d = (h) => {
|
|
3386
3421
|
h.key === "Enter" && (h.preventDefault(), l(h));
|
|
3387
3422
|
};
|
|
3388
3423
|
return /* @__PURE__ */ i(
|
|
3389
3424
|
xe,
|
|
3390
3425
|
{
|
|
3391
|
-
className:
|
|
3392
|
-
onKeyDown:
|
|
3426
|
+
className: M(e, "humany-widget-link"),
|
|
3427
|
+
onKeyDown: d,
|
|
3393
3428
|
onClick: (h) => {
|
|
3394
3429
|
n(h), l(h);
|
|
3395
3430
|
},
|
|
@@ -3399,18 +3434,18 @@ const j1 = ({
|
|
|
3399
3434
|
}
|
|
3400
3435
|
);
|
|
3401
3436
|
}
|
|
3402
|
-
),
|
|
3437
|
+
), Xo = N(
|
|
3403
3438
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3404
|
-
const r =
|
|
3439
|
+
const r = B(), s = re(() => {
|
|
3405
3440
|
if (!r)
|
|
3406
3441
|
return null;
|
|
3407
3442
|
const c = r.get("widgetDOMElement");
|
|
3408
3443
|
return !c || !c.childElementCount ? null : c.children[0];
|
|
3409
3444
|
}, [r]);
|
|
3410
3445
|
return s ? /* @__PURE__ */ i(q, { elementId: e, parent: s, children: /* @__PURE__ */ i(
|
|
3411
|
-
|
|
3446
|
+
no,
|
|
3412
3447
|
{
|
|
3413
|
-
className:
|
|
3448
|
+
className: M(
|
|
3414
3449
|
"humany-widget-overlay-outlet",
|
|
3415
3450
|
t
|
|
3416
3451
|
),
|
|
@@ -3419,7 +3454,7 @@ const j1 = ({
|
|
|
3419
3454
|
}
|
|
3420
3455
|
) }) : null;
|
|
3421
3456
|
}
|
|
3422
|
-
),
|
|
3457
|
+
), no = C.div`
|
|
3423
3458
|
background-color: #ffffff;
|
|
3424
3459
|
position: absolute;
|
|
3425
3460
|
top: 0;
|
|
@@ -3429,101 +3464,101 @@ const j1 = ({
|
|
|
3429
3464
|
z-index: 10;
|
|
3430
3465
|
width: 100%;
|
|
3431
3466
|
height: 100%;
|
|
3432
|
-
`,
|
|
3467
|
+
`, _o = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
3433
3468
|
t,
|
|
3434
3469
|
lt(() => n)
|
|
3435
3470
|
), Ct(e, t, o || (() => {
|
|
3436
3471
|
}), t, r)));
|
|
3437
3472
|
export {
|
|
3438
|
-
|
|
3473
|
+
Dt as AnchorLink,
|
|
3439
3474
|
se as Button,
|
|
3440
|
-
|
|
3441
|
-
|
|
3475
|
+
yo as Checkbox,
|
|
3476
|
+
zt as ColumnContext,
|
|
3442
3477
|
Ze as ComponentNodeContext,
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3478
|
+
Bt as ComponentPropertyContext,
|
|
3479
|
+
Ao as Confirm,
|
|
3480
|
+
Nt as ContainerContext,
|
|
3446
3481
|
Wt as ConversationContext,
|
|
3447
3482
|
Qn as DateFormats,
|
|
3448
|
-
|
|
3483
|
+
Vo as Drawer,
|
|
3449
3484
|
Xt as DrawerAnimationType,
|
|
3450
|
-
|
|
3485
|
+
Wo as Dropdown,
|
|
3451
3486
|
nn as Empty,
|
|
3452
|
-
|
|
3487
|
+
Zo as Grid,
|
|
3453
3488
|
Ke as Html,
|
|
3454
3489
|
sn as Icon,
|
|
3455
|
-
|
|
3490
|
+
Io as Input,
|
|
3456
3491
|
ln as ItemList,
|
|
3457
|
-
|
|
3492
|
+
Oo as ItemTree,
|
|
3458
3493
|
En as Lightbox,
|
|
3459
3494
|
xe as Link,
|
|
3460
3495
|
an as List,
|
|
3461
3496
|
An as Modal,
|
|
3462
|
-
|
|
3497
|
+
Fo as NotFound,
|
|
3463
3498
|
Ye as Overlay,
|
|
3464
3499
|
cn as Paragraph,
|
|
3465
3500
|
q as Portal,
|
|
3466
|
-
|
|
3501
|
+
dn as RouteLink,
|
|
3467
3502
|
Vt as RoutingContext,
|
|
3468
|
-
|
|
3503
|
+
Ne as StyledText,
|
|
3469
3504
|
Q as SymbolBadge,
|
|
3470
|
-
|
|
3505
|
+
Po as TabStop,
|
|
3471
3506
|
be as Text,
|
|
3472
3507
|
qn as TextLink,
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3508
|
+
jo as Timestamp,
|
|
3509
|
+
Ko as Tooltip,
|
|
3510
|
+
Yo as TransitionComponent,
|
|
3476
3511
|
X as Typography,
|
|
3477
|
-
|
|
3478
|
-
|
|
3512
|
+
to as WidgetLink,
|
|
3513
|
+
Xo as WidgetOverlayOutlet,
|
|
3479
3514
|
O as borderTabStyle,
|
|
3480
|
-
|
|
3515
|
+
Te as browser,
|
|
3481
3516
|
At as buttonCss,
|
|
3482
3517
|
Pe as contentBox,
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3518
|
+
z as convertToStringAttributes,
|
|
3519
|
+
Co as createEmptyComponent,
|
|
3520
|
+
_o as createReactComponent,
|
|
3486
3521
|
Ht as defaultRenderInstructions,
|
|
3487
3522
|
Lt as embeddedLinkMapper,
|
|
3488
3523
|
We as filterCssProps,
|
|
3489
3524
|
Mt as filterCssPropsStyle,
|
|
3490
3525
|
St as genericHashLink,
|
|
3491
|
-
|
|
3526
|
+
Bo as genericHtml,
|
|
3492
3527
|
ie as headingElement,
|
|
3493
3528
|
Rt as imageLightboxRenderer,
|
|
3494
|
-
|
|
3495
|
-
|
|
3529
|
+
To as invertedHoverButton,
|
|
3530
|
+
zo as itemList,
|
|
3496
3531
|
Ft as linkTabStyle,
|
|
3497
3532
|
Pt as list,
|
|
3498
|
-
|
|
3533
|
+
No as paddedBorderTabStyle,
|
|
3499
3534
|
Et as processHtmlString,
|
|
3500
3535
|
he as transitionComposer,
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3536
|
+
bo as useAction,
|
|
3537
|
+
vo as useChildren,
|
|
3538
|
+
xo as useColumns,
|
|
3539
|
+
wo as useComponent,
|
|
3505
3540
|
pe as useComponentDescriptor,
|
|
3506
3541
|
Ce as useComponentNode,
|
|
3507
3542
|
Y as useComponentPlatform,
|
|
3508
|
-
|
|
3543
|
+
B as useContainer,
|
|
3509
3544
|
Zt as useContext,
|
|
3510
|
-
|
|
3511
|
-
|
|
3545
|
+
ko as useConversation,
|
|
3546
|
+
$o as useDispatch,
|
|
3512
3547
|
W as useEventListener,
|
|
3513
3548
|
It as useEvents,
|
|
3514
3549
|
Z as useIsMounted,
|
|
3515
|
-
|
|
3550
|
+
Lo as useIsTabbing,
|
|
3516
3551
|
j as useKeyPress,
|
|
3517
|
-
|
|
3552
|
+
Mo as useLayout,
|
|
3518
3553
|
Ie as usePrevious,
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3554
|
+
So as useProperties,
|
|
3555
|
+
Eo as useRenderState,
|
|
3556
|
+
Ro as useRouteData,
|
|
3522
3557
|
Oe as useRouter,
|
|
3523
3558
|
Ae as useScroll,
|
|
3524
|
-
|
|
3559
|
+
Ho as useSettings,
|
|
3525
3560
|
Fe as useToggle,
|
|
3526
|
-
|
|
3561
|
+
Do as useTransitionEnd,
|
|
3527
3562
|
ye as useUniqueMenu,
|
|
3528
3563
|
ae as useWidgetEvent
|
|
3529
3564
|
};
|