@telia-ace/widget-ui 1.0.23-next.13 → 1.0.23-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/input.d.ts +1 -1
- package/dist/index.js +752 -752
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +9 -9
- package/dist/utils/animations.d.ts +2 -2
- package/dist/utils/filter-css-props.d.ts +1 -1
- package/dist/utils/heading-styles.d.ts +1 -1
- package/package.json +54 -54
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
var at = Object.defineProperty, ct = Object.defineProperties;
|
|
2
2
|
var lt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ne = Object.getOwnPropertySymbols;
|
|
4
|
-
var He = Object.prototype.hasOwnProperty,
|
|
4
|
+
var He = Object.prototype.hasOwnProperty, Te = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var me = (e, t, n) => t in e ? at(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, h = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
He.call(t, n) && me(e, n, t[n]);
|
|
8
8
|
if (ne)
|
|
9
9
|
for (var n of ne(t))
|
|
10
|
-
|
|
10
|
+
Te.call(t, n) && me(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, k = (e, t) => ct(e, lt(t));
|
|
13
13
|
var S = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
16
|
He.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
17
|
if (e != null && ne)
|
|
18
18
|
for (var o of ne(e))
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
19
|
+
t.indexOf(o) < 0 && Te.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
22
|
var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
23
|
+
import { Container as ut, WidgetState as mt } from "@webprovisions/platform";
|
|
24
|
+
import r, { forwardRef as N, createContext as U, useContext as Y, useState as $, useEffect as v, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as se, Component as dt, lazy as ft } from "react";
|
|
25
|
+
import { ComponentPlatform as ht, asDescriptor as pt, createEventSubscriber as gt, ComponentQuery as Ct, WidgetRenderState as oe, extendComponent as yt } from "@telia-ace/widget-core";
|
|
26
|
+
import { css as L, keyframes as Ze } from "@emotion/react";
|
|
26
27
|
import y from "@emotion/styled";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import Be from "htmr";
|
|
32
|
-
import { HistoryMode as Te, getSpecificWidgetPath as Et } from "@telia-ace/widget-routing";
|
|
28
|
+
import { kebabCase as bt, appendClassNames as M, uuid as Q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
|
|
29
|
+
import { CSSTransition as Ie, Transition as vt } from "react-transition-group";
|
|
30
|
+
import { createPortal as Et } from "react-dom";
|
|
31
|
+
import { HistoryMode as Be, getSpecificWidgetPath as xt } from "@telia-ace/widget-routing";
|
|
33
32
|
import { Link as fe } from "react-router-dom";
|
|
34
|
-
|
|
33
|
+
import ze from "htmr";
|
|
34
|
+
const wt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exiting" || e === "exited", K = {
|
|
35
35
|
fade: {
|
|
36
36
|
in: "opacity: 1;",
|
|
37
37
|
out: "opacity: 0;"
|
|
@@ -56,23 +56,23 @@ const xt = (e) => e === "entering" || e === "entered", kt = (e) => e === "exitin
|
|
|
56
56
|
in: "transform: scale(1);",
|
|
57
57
|
out: "transform: scale(0);"
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, kt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
|
|
60
60
|
compose: (e = "exited", t) => {
|
|
61
|
-
const { enter: n, exit: o } = t,
|
|
62
|
-
if (
|
|
63
|
-
return
|
|
64
|
-
${
|
|
65
|
-
transition: ${
|
|
61
|
+
const { enter: n, exit: o } = t, s = n.transitionKeys.split(" "), i = kt.indexOf(s[0]) > -1 ? "transform" : "opacity";
|
|
62
|
+
if (wt(e))
|
|
63
|
+
return s && s.length > 0 ? L`
|
|
64
|
+
${s && s.length > 0 && s.map((l) => K[l] ? K[l].in : "")}
|
|
65
|
+
transition: ${i} ${n.duration}ms ${n.easing};
|
|
66
66
|
` : "";
|
|
67
|
-
const a =
|
|
68
|
-
${
|
|
67
|
+
const a = s && s.length > 0 && L`
|
|
68
|
+
${s.map((l) => K[l] ? K[l].out : "")}
|
|
69
69
|
`;
|
|
70
|
-
if (
|
|
70
|
+
if ($t(e)) {
|
|
71
71
|
const l = o.transitionKeys.split(" ");
|
|
72
72
|
return l && l.length > 0 && e === "exiting" ? L`
|
|
73
73
|
${a};
|
|
74
74
|
${l.map((u) => K[u] ? K[u].out : "")}
|
|
75
|
-
transition: ${
|
|
75
|
+
transition: ${i} ${o.duration}ms ${o.easing};
|
|
76
76
|
` : a;
|
|
77
77
|
}
|
|
78
78
|
},
|
|
@@ -102,15 +102,15 @@ const xt = (e) => e === "entering" || e === "entered", kt = (e) => e === "exitin
|
|
|
102
102
|
},
|
|
103
103
|
get: (e) => K[e]
|
|
104
104
|
};
|
|
105
|
-
var
|
|
105
|
+
var pe = /* @__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))(pe || {});
|
|
106
106
|
const Ne = () => {
|
|
107
107
|
const {
|
|
108
108
|
opr: e,
|
|
109
109
|
opera: t,
|
|
110
110
|
InstallTrigger: n,
|
|
111
111
|
HTMLElement: o,
|
|
112
|
-
safari:
|
|
113
|
-
documentMode:
|
|
112
|
+
safari: s,
|
|
113
|
+
documentMode: i,
|
|
114
114
|
StyleMedia: a,
|
|
115
115
|
chrome: l,
|
|
116
116
|
CSS: u
|
|
@@ -119,13 +119,13 @@ const Ne = () => {
|
|
|
119
119
|
return "opera";
|
|
120
120
|
if (n)
|
|
121
121
|
return "firefox";
|
|
122
|
-
const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!
|
|
122
|
+
const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!s || typeof s != "undefined" && s.pushNotification);
|
|
123
123
|
if (/constructor/i.test(o) || m)
|
|
124
124
|
return "safari";
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
125
|
+
const p = !!i;
|
|
126
|
+
if (p)
|
|
127
127
|
return "internet-explorer";
|
|
128
|
-
if (!
|
|
128
|
+
if (!p && !!a)
|
|
129
129
|
return "edge";
|
|
130
130
|
const d = !!l && (!!l.webstore || !!l.runtime);
|
|
131
131
|
if (d)
|
|
@@ -135,60 +135,60 @@ const Ne = () => {
|
|
|
135
135
|
if ((d || c) && !!u)
|
|
136
136
|
return "blink";
|
|
137
137
|
}, Lt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
|
|
138
|
-
const o = typeof e[n] == "undefined" ? "" : e[n],
|
|
139
|
-
if (Lt.indexOf(
|
|
140
|
-
const
|
|
141
|
-
|
|
138
|
+
const o = typeof e[n] == "undefined" ? "" : e[n], s = typeof o;
|
|
139
|
+
if (Lt.indexOf(s) > -1) {
|
|
140
|
+
const i = n.substring(0, 5);
|
|
141
|
+
i === "data-" || i === "aria-" ? t[bt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
|
|
142
142
|
} else
|
|
143
143
|
t[n] = o;
|
|
144
144
|
return t;
|
|
145
|
-
}, {}),
|
|
146
|
-
var
|
|
145
|
+
}, {}), Mt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(Kn, h({}, t)) : null, go = Mt, St = (e) => new RegExp("^#", "i").test(e), Rt = (e) => (o) => {
|
|
146
|
+
var s = o, { children: t } = s, n = S(s, ["children"]);
|
|
147
147
|
const {
|
|
148
|
-
implementation:
|
|
148
|
+
implementation: i,
|
|
149
149
|
name: a
|
|
150
150
|
} = e.get("$widget"), { href: l = "" } = n;
|
|
151
|
-
if (
|
|
152
|
-
return /* @__PURE__ */ r.createElement(
|
|
151
|
+
if (St(l))
|
|
152
|
+
return /* @__PURE__ */ r.createElement(Zt, {
|
|
153
153
|
smooth: !0,
|
|
154
154
|
to: l
|
|
155
155
|
}, t);
|
|
156
|
-
const u =
|
|
156
|
+
const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
|
|
157
157
|
if (m && m.length >= 4) {
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
160
|
-
return /* @__PURE__ */ r.createElement(
|
|
161
|
-
widgetName:
|
|
158
|
+
const p = m[4];
|
|
159
|
+
if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
|
|
160
|
+
return /* @__PURE__ */ r.createElement(eo, {
|
|
161
|
+
widgetName: p
|
|
162
162
|
}, t);
|
|
163
163
|
}
|
|
164
164
|
return /* @__PURE__ */ r.createElement("a", h({}, n), t);
|
|
165
|
-
}, Oe = (e) => {
|
|
165
|
+
}, Ht = Rt, Oe = (e) => {
|
|
166
166
|
const t = {};
|
|
167
167
|
return Object.keys(e).forEach((n) => {
|
|
168
168
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
169
169
|
}), t;
|
|
170
|
-
},
|
|
170
|
+
}, Tt = (e) => {
|
|
171
171
|
let t = "";
|
|
172
172
|
return Object.keys(Oe(e)).forEach((n) => {
|
|
173
173
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
174
174
|
}), L`
|
|
175
175
|
${t}
|
|
176
176
|
`;
|
|
177
|
-
},
|
|
177
|
+
}, Dt = Oe, Bt = (e, t) => {
|
|
178
178
|
let n = "";
|
|
179
179
|
const o = () => {
|
|
180
180
|
n = "";
|
|
181
|
-
},
|
|
181
|
+
}, s = (p) => {
|
|
182
182
|
const d = document.getElementById(n);
|
|
183
|
-
return d !== null ? (
|
|
184
|
-
},
|
|
183
|
+
return d !== null ? (p(d), o(), !0) : !1;
|
|
184
|
+
}, i = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && s(
|
|
185
185
|
e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
|
|
186
186
|
), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
|
|
187
|
-
return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t,
|
|
188
|
-
onClick:
|
|
187
|
+
return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, k(h({}, c), {
|
|
188
|
+
onClick: i
|
|
189
189
|
}), e.children);
|
|
190
|
-
},
|
|
191
|
-
let o = t,
|
|
190
|
+
}, ie = (e) => (t, n) => {
|
|
191
|
+
let o = t, s = "";
|
|
192
192
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
193
193
|
o = t;
|
|
194
194
|
else {
|
|
@@ -196,10 +196,10 @@ const Ne = () => {
|
|
|
196
196
|
if (l != null && l[0]) {
|
|
197
197
|
o = l[0];
|
|
198
198
|
const [u] = t.split(o);
|
|
199
|
-
|
|
199
|
+
s = u;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o,
|
|
202
|
+
const a = ((l, u, c) => c[l] ? `${u}${c[l]}` : `${u}${l}`)(o, s, e.theme.typographyVariantMapping || {});
|
|
203
203
|
return L`
|
|
204
204
|
${a} {
|
|
205
205
|
${n}
|
|
@@ -207,25 +207,25 @@ const Ne = () => {
|
|
|
207
207
|
`;
|
|
208
208
|
};
|
|
209
209
|
function zt(e, t) {
|
|
210
|
-
return t ?
|
|
210
|
+
return t ? ze(e, t) : ze(e);
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const Nt = (e) => (t) => /* @__PURE__ */ r.createElement(Dr, {
|
|
213
213
|
attrs: t,
|
|
214
214
|
htmlBody: e
|
|
215
|
-
}),
|
|
215
|
+
}), Vt = (e, t) => ({
|
|
216
216
|
transform: {
|
|
217
|
-
a:
|
|
218
|
-
img:
|
|
217
|
+
a: Ht(e),
|
|
218
|
+
img: Nt(t)
|
|
219
219
|
}
|
|
220
|
-
}),
|
|
221
|
-
var
|
|
222
|
-
return /* @__PURE__ */ r.createElement(
|
|
220
|
+
}), Wt = (e) => Bt(e, "a"), Zt = Wt, ae = N((s, o) => {
|
|
221
|
+
var i = s, { className: e, children: t } = i, n = S(i, ["className", "children"]);
|
|
222
|
+
return /* @__PURE__ */ r.createElement(It, k(h({
|
|
223
223
|
type: "button",
|
|
224
224
|
className: M(e, "humany-button")
|
|
225
225
|
}, V(n)), {
|
|
226
226
|
ref: o
|
|
227
227
|
}), t);
|
|
228
|
-
}),
|
|
228
|
+
}), It = y.button`
|
|
229
229
|
-webkit-appearance: button;
|
|
230
230
|
text-transform: none;
|
|
231
231
|
overflow: visible;
|
|
@@ -238,14 +238,14 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
238
238
|
line-height: normal;
|
|
239
239
|
margin: 0;
|
|
240
240
|
padding: 0;
|
|
241
|
-
`,
|
|
242
|
-
var
|
|
241
|
+
`, Ot = (s) => {
|
|
242
|
+
var i = s, {
|
|
243
243
|
onChange: e = () => {
|
|
244
244
|
},
|
|
245
245
|
onEnter: t = () => {
|
|
246
246
|
},
|
|
247
247
|
className: n
|
|
248
|
-
} =
|
|
248
|
+
} = i, o = S(i, [
|
|
249
249
|
"onChange",
|
|
250
250
|
"onEnter",
|
|
251
251
|
"className"
|
|
@@ -257,105 +257,105 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
257
257
|
},
|
|
258
258
|
onChange: (a) => e(a.target.value, a.currentTarget.checked)
|
|
259
259
|
}, V(o)));
|
|
260
|
-
},
|
|
260
|
+
}, Co = Ot, Pt = U(new ut()), Ft = U(1), Pe = U({
|
|
261
261
|
id: "",
|
|
262
262
|
type: "",
|
|
263
263
|
name: "",
|
|
264
264
|
branch: ""
|
|
265
|
-
}),
|
|
266
|
-
const n = ye().id, o =
|
|
267
|
-
return (
|
|
265
|
+
}), At = U({}), Kt = U(null), Yt = U(null), jt = () => Y(Pe), ye = jt, Xt = () => Y(Pt), W = Xt, Ut = (e, t) => {
|
|
266
|
+
const n = ye().id, o = W();
|
|
267
|
+
return (s, i) => {
|
|
268
268
|
(t || o).getAsync("actionResolver").then((a) => {
|
|
269
|
-
a.action(e || n,
|
|
269
|
+
a.action(e || n, s, i);
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
},
|
|
273
|
-
const t = Y(
|
|
272
|
+
}, yo = Ut, _t = (e) => {
|
|
273
|
+
const t = Y(Pe), n = _(), [o, s] = $();
|
|
274
274
|
return v(() => {
|
|
275
275
|
if ((e || t.id) && n) {
|
|
276
|
-
const
|
|
277
|
-
i
|
|
276
|
+
const i = n.nodes.get(e || t.id);
|
|
277
|
+
s(i);
|
|
278
278
|
}
|
|
279
279
|
}, [e, t.id, n]), o;
|
|
280
|
-
},
|
|
280
|
+
}, be = _t, qt = () => {
|
|
281
281
|
const e = R(!1);
|
|
282
282
|
return v(() => (e.current = !0, () => {
|
|
283
283
|
e.current = !1;
|
|
284
284
|
}), []), e;
|
|
285
|
-
},
|
|
286
|
-
const t =
|
|
285
|
+
}, O = qt, Qt = (e) => {
|
|
286
|
+
const t = W(), [n, o] = $(null), s = O();
|
|
287
287
|
return v(() => {
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
ht.getInstance(e || t).then((i) => {
|
|
289
|
+
s.current && o(i);
|
|
290
290
|
});
|
|
291
|
-
}, [
|
|
292
|
-
},
|
|
293
|
-
const e = be(), t =
|
|
291
|
+
}, [s]), n;
|
|
292
|
+
}, _ = Qt, Gt = () => {
|
|
293
|
+
const e = be(), t = _(), [n, o] = $([]), s = O(), i = H(
|
|
294
294
|
(a) => {
|
|
295
|
-
if (t &&
|
|
296
|
-
const l = t.getBranch(a), u = a.getChildren(l).map((c) =>
|
|
295
|
+
if (t && s.current) {
|
|
296
|
+
const l = t.getBranch(a), u = a.getChildren(l).map((c) => pt(c));
|
|
297
297
|
o(u);
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
|
-
[
|
|
300
|
+
[s, t, o]
|
|
301
301
|
);
|
|
302
302
|
return v(() => {
|
|
303
|
-
e &&
|
|
303
|
+
e && i(e);
|
|
304
304
|
}, [e, t]), v(() => {
|
|
305
305
|
if (t) {
|
|
306
|
-
const [a, l] =
|
|
306
|
+
const [a, l] = gt(t.events);
|
|
307
307
|
return a("components:set-layout", (u, c) => {
|
|
308
|
-
(e === c.node.parent || c.node.parent === t.nodes.root) &&
|
|
308
|
+
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
309
309
|
}), a("components:node-appended", (u, c) => {
|
|
310
|
-
(e === c.node.parent || c.node.parent === t.nodes.root) &&
|
|
310
|
+
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
311
311
|
}), a("components:node-removed", (u, { parentNode: c }) => {
|
|
312
|
-
(c === e || c === t.nodes.root) &&
|
|
312
|
+
(c === e || c === t.nodes.root) && i(c);
|
|
313
313
|
}), () => {
|
|
314
314
|
l();
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
}, [e, t,
|
|
318
|
-
},
|
|
319
|
-
const n = ye(), o =
|
|
317
|
+
}, [e, t, i]), n;
|
|
318
|
+
}, bo = Gt, Jt = () => Y(Ft), vo = Jt, en = (e, t) => {
|
|
319
|
+
const n = ye(), o = W(), [s, i] = $(void 0), a = O(), l = e || n.type || "";
|
|
320
320
|
return v(() => {
|
|
321
321
|
if (l) {
|
|
322
322
|
let u;
|
|
323
323
|
return (t || o).getAsync("componentResolver").then((c) => {
|
|
324
324
|
if (a.current) {
|
|
325
325
|
const m = c.getComponent(l);
|
|
326
|
-
|
|
326
|
+
i(m);
|
|
327
327
|
}
|
|
328
328
|
u = c.registerResolver(l, (m) => {
|
|
329
|
-
a.current &&
|
|
329
|
+
a.current && i(m);
|
|
330
330
|
});
|
|
331
331
|
}), () => {
|
|
332
332
|
u && u();
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
}, [a, l, t, o]),
|
|
336
|
-
},
|
|
337
|
-
const t = be(e), n =
|
|
335
|
+
}, [a, l, t, o]), s;
|
|
336
|
+
}, Eo = en, tn = (e) => {
|
|
337
|
+
const t = be(e), n = _(), [o, s] = $({}), i = O();
|
|
338
338
|
return v(() => {
|
|
339
|
-
t &&
|
|
340
|
-
}, [
|
|
339
|
+
t && i.current && s(t.attributes.context);
|
|
340
|
+
}, [i, t]), v(() => {
|
|
341
341
|
if (n) {
|
|
342
342
|
const a = n.events.subscribe(
|
|
343
343
|
"components:context-changed",
|
|
344
344
|
(l, u) => {
|
|
345
|
-
t === u.node &&
|
|
345
|
+
t === u.node && i.current && s(u.node.attributes.context);
|
|
346
346
|
}
|
|
347
347
|
);
|
|
348
348
|
return () => {
|
|
349
349
|
a();
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
}, [
|
|
353
|
-
},
|
|
354
|
-
const e =
|
|
352
|
+
}, [i, n, t]), o;
|
|
353
|
+
}, nn = tn, rn = () => Y(Yt), xo = rn, on = () => {
|
|
354
|
+
const e = _(), t = ye(), [n, o] = $([]), [s, i] = $();
|
|
355
355
|
return v(() => {
|
|
356
356
|
if (e && t) {
|
|
357
|
-
const a = new
|
|
358
|
-
|
|
357
|
+
const a = new Ct(e).withId(t.id), l = e.actions(a, t.type || Q());
|
|
358
|
+
i(l), n !== null && (n.forEach((u) => {
|
|
359
359
|
l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
|
|
360
360
|
}), o(null));
|
|
361
361
|
}
|
|
@@ -366,127 +366,127 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
366
366
|
resolve: u,
|
|
367
367
|
reject: c
|
|
368
368
|
});
|
|
369
|
-
}) :
|
|
370
|
-
}, I = (e, t, n = window, o = () => !0) => {
|
|
371
|
-
const
|
|
369
|
+
}) : s.dispatch(a, l);
|
|
370
|
+
}, wo = on, I = (e, t, n = window, o = () => !0) => {
|
|
371
|
+
const s = R(() => {
|
|
372
372
|
});
|
|
373
373
|
v(() => {
|
|
374
|
-
|
|
374
|
+
s.current = t;
|
|
375
375
|
}, [t]), v(() => {
|
|
376
376
|
if (!(n && o()))
|
|
377
377
|
return;
|
|
378
|
-
const a = (l) =>
|
|
378
|
+
const a = (l) => s.current(l);
|
|
379
379
|
return n.addEventListener(e, a), () => {
|
|
380
380
|
n.removeEventListener(e, a);
|
|
381
381
|
};
|
|
382
382
|
}, [e, n]);
|
|
383
|
-
},
|
|
384
|
-
const t =
|
|
383
|
+
}, sn = (e) => {
|
|
384
|
+
const t = W(), { events: n } = (e || t).get("$widget");
|
|
385
385
|
return n;
|
|
386
|
-
},
|
|
387
|
-
const [e, t] =
|
|
386
|
+
}, an = sn, cn = () => {
|
|
387
|
+
const [e, t] = $(!1);
|
|
388
388
|
return v(() => {
|
|
389
389
|
const n = () => {
|
|
390
390
|
t(!1);
|
|
391
|
-
}, o = (
|
|
392
|
-
|
|
391
|
+
}, o = (s) => {
|
|
392
|
+
s.keyCode === 9 && t(!0);
|
|
393
393
|
};
|
|
394
394
|
return window.addEventListener("keydown", o), window.addEventListener("click", n), () => {
|
|
395
395
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
396
396
|
};
|
|
397
397
|
}, []), e;
|
|
398
|
-
},
|
|
399
|
-
const [n, o] =
|
|
398
|
+
}, $o = cn, ln = (e, t) => {
|
|
399
|
+
const [n, o] = $(!1), s = H(
|
|
400
400
|
(a) => {
|
|
401
401
|
const { key: l } = a;
|
|
402
402
|
l === e && (o(!0), t && t(a));
|
|
403
403
|
},
|
|
404
404
|
[o, t]
|
|
405
|
-
),
|
|
405
|
+
), i = H(
|
|
406
406
|
({ key: a }) => {
|
|
407
407
|
a === e && o(!1);
|
|
408
408
|
},
|
|
409
409
|
[o]
|
|
410
410
|
);
|
|
411
|
-
return I("keydown",
|
|
412
|
-
},
|
|
413
|
-
const t = be(e), n =
|
|
411
|
+
return I("keydown", s, window), I("keyup", i, window), n;
|
|
412
|
+
}, X = ln, un = (e) => {
|
|
413
|
+
const t = be(e), n = _(), [o, s] = $({}), i = O();
|
|
414
414
|
return v(() => {
|
|
415
|
-
t &&
|
|
416
|
-
}, [t,
|
|
415
|
+
t && i.current && s(t.attributes.layout);
|
|
416
|
+
}, [t, i]), v(() => {
|
|
417
417
|
if (n) {
|
|
418
418
|
const a = n.events.subscribe(
|
|
419
419
|
"components:layout-changed",
|
|
420
420
|
(l, u) => {
|
|
421
|
-
t === u.node &&
|
|
421
|
+
t === u.node && i.current && s(u.node.attributes.layout);
|
|
422
422
|
}
|
|
423
423
|
);
|
|
424
424
|
return () => {
|
|
425
425
|
a();
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
|
-
}, [n,
|
|
429
|
-
},
|
|
428
|
+
}, [n, i, t]), o;
|
|
429
|
+
}, ko = un, mn = (e) => {
|
|
430
430
|
const t = R();
|
|
431
431
|
return v(() => {
|
|
432
432
|
t.current = e;
|
|
433
433
|
}), t.current;
|
|
434
|
-
},
|
|
435
|
-
const [t, n] =
|
|
434
|
+
}, Fe = mn, dn = () => Y(At), Lo = dn, fn = (e) => {
|
|
435
|
+
const [t, n] = $(), o = W(), s = O();
|
|
436
436
|
return v(() => {
|
|
437
|
-
let
|
|
437
|
+
let i;
|
|
438
438
|
const a = (e || o).get("$widget");
|
|
439
439
|
if (!a)
|
|
440
440
|
return;
|
|
441
441
|
const { name: l, invoke: u } = a;
|
|
442
442
|
return u("renderState").then((c) => {
|
|
443
|
-
|
|
443
|
+
s.current && n(c);
|
|
444
444
|
}), (e || o).getAsync("actionResolver").then((c) => {
|
|
445
|
-
|
|
446
|
-
switch (
|
|
445
|
+
i = c.subscribe(l, (m, p) => {
|
|
446
|
+
switch (p) {
|
|
447
447
|
case "close":
|
|
448
448
|
case "open":
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
s.current && n(
|
|
450
|
+
p === "open" ? oe.open : oe.closed
|
|
451
451
|
);
|
|
452
452
|
break;
|
|
453
453
|
case "hide":
|
|
454
|
-
|
|
454
|
+
s.current && n(oe.hidden);
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
457
|
}), () => {
|
|
458
|
-
|
|
458
|
+
i && i();
|
|
459
459
|
};
|
|
460
|
-
}, [
|
|
461
|
-
},
|
|
462
|
-
const t =
|
|
460
|
+
}, [s]), t;
|
|
461
|
+
}, Mo = fn, hn = () => Y(Kt), Ae = hn, pn = (e) => {
|
|
462
|
+
const t = W(), n = Ae(), [o, s] = $({ name: "", params: {} }), i = O();
|
|
463
463
|
return v(() => {
|
|
464
464
|
const a = (e || t).get("$widget");
|
|
465
465
|
if (!a)
|
|
466
466
|
return;
|
|
467
467
|
const { events: l } = a;
|
|
468
468
|
return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
|
|
469
|
-
if (
|
|
470
|
-
const { name:
|
|
471
|
-
De(d),
|
|
469
|
+
if (i.current) {
|
|
470
|
+
const { name: p, params: d } = m;
|
|
471
|
+
De(d), s({ name: p, params: d });
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
|
-
}, [
|
|
475
|
-
if (n && n.history &&
|
|
474
|
+
}, [i, e, t]), v(() => {
|
|
475
|
+
if (n && n.history && i.current) {
|
|
476
476
|
const a = n.getRouteData(), { name: l, params: u } = a;
|
|
477
|
-
De(u),
|
|
477
|
+
De(u), s({ name: l, params: u });
|
|
478
478
|
}
|
|
479
|
-
}, [n,
|
|
480
|
-
}, Ke = (e) => {
|
|
479
|
+
}, [n, i]), o;
|
|
480
|
+
}, So = pn, Ke = (e) => {
|
|
481
481
|
const t = R(), n = R(0);
|
|
482
482
|
let o;
|
|
483
|
-
const
|
|
483
|
+
const s = H(() => {
|
|
484
484
|
var c;
|
|
485
485
|
(c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
486
486
|
var m;
|
|
487
487
|
(m = t.current) == null || m.classList.remove("humany-scrolling");
|
|
488
488
|
}, 500);
|
|
489
|
-
}, [t]),
|
|
489
|
+
}, [t]), i = H(
|
|
490
490
|
(c) => {
|
|
491
491
|
n.current = c.touches[0].clientY;
|
|
492
492
|
},
|
|
@@ -495,17 +495,17 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
495
495
|
(c) => {
|
|
496
496
|
if (!c.cancelable)
|
|
497
497
|
return;
|
|
498
|
-
const m = c.touches[0].clientY,
|
|
499
|
-
if (!
|
|
498
|
+
const m = c.touches[0].clientY, p = a(c.target);
|
|
499
|
+
if (!p)
|
|
500
500
|
return;
|
|
501
|
-
const d =
|
|
502
|
-
(C ||
|
|
501
|
+
const d = p.scrollTop, f = n.current - m < 0 ? "up" : "down", C = d <= 0 && f === "up", x = d >= p.scrollHeight - p.offsetHeight && f === "down";
|
|
502
|
+
(C || x) && c.preventDefault(), n.current = m;
|
|
503
503
|
},
|
|
504
504
|
[t, n]
|
|
505
505
|
);
|
|
506
|
-
return I("scroll",
|
|
507
|
-
},
|
|
508
|
-
overflow-y: ${Ne() ===
|
|
506
|
+
return I("scroll", s, t.current, () => t.current && e), I("touchstart", i, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [gn, t] : ["", t];
|
|
507
|
+
}, gn = `
|
|
508
|
+
overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
|
|
509
509
|
overflow-x: hidden;
|
|
510
510
|
-ms-overflow-style: none; /* IE 10+ */
|
|
511
511
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -532,28 +532,28 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
532
532
|
background-color: #7F7F7F;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
`,
|
|
536
|
-
const [e, t] =
|
|
535
|
+
`, Cn = () => {
|
|
536
|
+
const [e, t] = $(null), n = W(), o = O();
|
|
537
537
|
return v(() => {
|
|
538
|
-
n.get("settings").then((
|
|
539
|
-
o.current && t(
|
|
538
|
+
n.get("settings").then((s) => {
|
|
539
|
+
o.current && t(s);
|
|
540
540
|
});
|
|
541
541
|
}, [o]), e;
|
|
542
|
-
},
|
|
543
|
-
const [t, n] =
|
|
544
|
-
n(typeof
|
|
542
|
+
}, Ro = Cn, yn = (e = !1) => {
|
|
543
|
+
const [t, n] = $(e), o = H((s) => {
|
|
544
|
+
n(typeof s == "boolean" ? s : (i) => !i);
|
|
545
545
|
}, []);
|
|
546
546
|
return [t, o];
|
|
547
|
-
},
|
|
548
|
-
const t =
|
|
547
|
+
}, Ye = yn, Ho = (e) => {
|
|
548
|
+
const t = W(), n = _(), o = t.get("widgetDOMElement"), [s, i] = $(null), [a, l] = $(null), u = O();
|
|
549
549
|
v(() => {
|
|
550
550
|
if (n && u.current) {
|
|
551
|
-
const m = n.nodes.all.find((d) => d.name === "root-area"),
|
|
552
|
-
if (!(
|
|
551
|
+
const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
|
|
552
|
+
if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
|
|
553
553
|
e();
|
|
554
554
|
else {
|
|
555
|
-
const d = (
|
|
556
|
-
f &&
|
|
555
|
+
const d = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), f = d(p == null ? void 0 : p.id);
|
|
556
|
+
f && i(f);
|
|
557
557
|
const C = d(m == null ? void 0 : m.id);
|
|
558
558
|
C && l(C);
|
|
559
559
|
}
|
|
@@ -561,32 +561,32 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
561
561
|
}, [n, t, u]);
|
|
562
562
|
const c = H(
|
|
563
563
|
(m) => {
|
|
564
|
-
u.current && (m.target ===
|
|
564
|
+
u.current && (m.target === s || m.target === a) && e();
|
|
565
565
|
},
|
|
566
|
-
[e, u,
|
|
566
|
+
[e, u, s, a]
|
|
567
567
|
);
|
|
568
|
-
I("transitionend", c,
|
|
569
|
-
},
|
|
570
|
-
const
|
|
568
|
+
I("transitionend", c, s), I("transitionend", c, a);
|
|
569
|
+
}, bn = (e, t, n = [], o) => {
|
|
570
|
+
const s = an(o);
|
|
571
571
|
return v(() => {
|
|
572
|
-
if (
|
|
573
|
-
const
|
|
572
|
+
if (s) {
|
|
573
|
+
const i = s.subscribe(e, t);
|
|
574
574
|
return () => {
|
|
575
|
-
|
|
575
|
+
i();
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
}, [
|
|
579
|
-
},
|
|
580
|
-
const n = ce("widget:menu-toggled", (o,
|
|
581
|
-
|
|
578
|
+
}, [s].concat(n)), (i) => s == null ? void 0 : s.dispatch(e, i);
|
|
579
|
+
}, ce = bn, vn = (e, t) => {
|
|
580
|
+
const n = ce("widget:menu-toggled", (o, s) => {
|
|
581
|
+
s !== e && t();
|
|
582
582
|
});
|
|
583
583
|
return () => n(e);
|
|
584
|
-
},
|
|
585
|
-
var
|
|
584
|
+
}, ve = vn, En = (o) => {
|
|
585
|
+
var s = o, { className: e, children: t } = s, n = S(s, ["className", "children"]);
|
|
586
586
|
return /* @__PURE__ */ r.createElement("span", h({
|
|
587
587
|
className: M(e, "humany-text")
|
|
588
588
|
}, V(n)), t);
|
|
589
|
-
}, je = (e) => L`
|
|
589
|
+
}, Ee = En, je = (e) => L`
|
|
590
590
|
display: flex;
|
|
591
591
|
justify-content: center;
|
|
592
592
|
flex-direction: column;
|
|
@@ -595,7 +595,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
595
595
|
border: ${e.theme.border};
|
|
596
596
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
597
597
|
${e["data-loading"] && "min-height: 150px;"}
|
|
598
|
-
`,
|
|
598
|
+
`, xn = (e) => {
|
|
599
599
|
var t, n, o;
|
|
600
600
|
return L`
|
|
601
601
|
cursor: pointer;
|
|
@@ -607,11 +607,11 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
607
607
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
608
608
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
609
609
|
`;
|
|
610
|
-
},
|
|
610
|
+
}, To = (e) => {
|
|
611
611
|
var a;
|
|
612
|
-
const { primaryColor: t, secondaryColor: n, active: o, theme:
|
|
612
|
+
const { primaryColor: t, secondaryColor: n, active: o, theme: s, disabled: i } = e;
|
|
613
613
|
return L`
|
|
614
|
-
${
|
|
614
|
+
${xn(e)}
|
|
615
615
|
border: 1px solid ${o ? n : t};
|
|
616
616
|
background-color: ${o ? t : n};
|
|
617
617
|
|
|
@@ -624,10 +624,10 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
624
624
|
a {
|
|
625
625
|
transition: color 200ms ease-out;
|
|
626
626
|
color: ${o ? n : t};
|
|
627
|
-
font-size: ${(a =
|
|
627
|
+
font-size: ${(a = s.fonts) == null ? void 0 : a.normal};
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
${!
|
|
630
|
+
${!i && L`
|
|
631
631
|
&:hover {
|
|
632
632
|
background-color: ${t};
|
|
633
633
|
color: ${n};
|
|
@@ -641,27 +641,27 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
&:focus-visible {
|
|
644
|
-
${
|
|
644
|
+
${A(e)};
|
|
645
645
|
}
|
|
646
646
|
`}
|
|
647
647
|
`;
|
|
648
|
-
},
|
|
648
|
+
}, A = (e) => {
|
|
649
649
|
var t, n, o;
|
|
650
650
|
return L`
|
|
651
651
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
652
652
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
653
653
|
border-color: transparent;
|
|
654
654
|
`;
|
|
655
|
-
},
|
|
656
|
-
${
|
|
655
|
+
}, wn = (e) => L`
|
|
656
|
+
${A(e)}
|
|
657
657
|
text-decoration: underline;
|
|
658
|
-
`,
|
|
658
|
+
`, Do = (e) => {
|
|
659
659
|
var t;
|
|
660
660
|
return L`
|
|
661
|
-
${
|
|
661
|
+
${A(e)}
|
|
662
662
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
663
663
|
`;
|
|
664
|
-
},
|
|
664
|
+
}, xe = y(ae)`
|
|
665
665
|
position: absolute;
|
|
666
666
|
top: ${(e) => {
|
|
667
667
|
var t;
|
|
@@ -681,7 +681,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
&:focus-visible {
|
|
684
|
-
${
|
|
684
|
+
${A}
|
|
685
685
|
padding: ${(e) => {
|
|
686
686
|
var t;
|
|
687
687
|
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
@@ -689,7 +689,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
689
689
|
height: 15px;
|
|
690
690
|
box-sizing: content-box;
|
|
691
691
|
}
|
|
692
|
-
`, Ve = y(
|
|
692
|
+
`, Ve = y(Ee)`
|
|
693
693
|
font-size: ${(e) => {
|
|
694
694
|
var t;
|
|
695
695
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -700,7 +700,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
700
700
|
var t;
|
|
701
701
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
702
702
|
}};
|
|
703
|
-
`,
|
|
703
|
+
`, $n = (e) => {
|
|
704
704
|
var t;
|
|
705
705
|
return L`
|
|
706
706
|
padding: 0;
|
|
@@ -722,11 +722,11 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
722
722
|
margin: 0;
|
|
723
723
|
}
|
|
724
724
|
`;
|
|
725
|
-
},
|
|
726
|
-
var t, n, o,
|
|
725
|
+
}, Bo = (e) => {
|
|
726
|
+
var t, n, o, s;
|
|
727
727
|
return L`
|
|
728
728
|
> div {
|
|
729
|
-
${
|
|
729
|
+
${ie(e)(
|
|
730
730
|
"> h1",
|
|
731
731
|
L`
|
|
732
732
|
margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
@@ -738,15 +738,15 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
738
738
|
)}
|
|
739
739
|
}
|
|
740
740
|
> ul {
|
|
741
|
-
${
|
|
741
|
+
${$n(e)}
|
|
742
742
|
}
|
|
743
|
-
${
|
|
743
|
+
${ie(e)(
|
|
744
744
|
"h1",
|
|
745
745
|
L`
|
|
746
746
|
display: flex;
|
|
747
747
|
align-items: center;
|
|
748
748
|
i {
|
|
749
|
-
margin: 7px ${(
|
|
749
|
+
margin: 7px ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0 0;
|
|
750
750
|
width: 24px;
|
|
751
751
|
display: inline-block;
|
|
752
752
|
vertical-align: text-bottom;
|
|
@@ -758,8 +758,8 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
758
758
|
`
|
|
759
759
|
)}
|
|
760
760
|
`;
|
|
761
|
-
},
|
|
762
|
-
var t, n, o,
|
|
761
|
+
}, zo = (e) => {
|
|
762
|
+
var t, n, o, s, i, a;
|
|
763
763
|
return L`
|
|
764
764
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
765
765
|
font-weight: 300;
|
|
@@ -787,7 +787,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
787
787
|
a {
|
|
788
788
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
789
789
|
&:focus-visible {
|
|
790
|
-
${
|
|
790
|
+
${wn(e)};
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
|
|
@@ -798,11 +798,11 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
798
798
|
|
|
799
799
|
p {
|
|
800
800
|
word-break: break-word;
|
|
801
|
-
margin: ${(
|
|
801
|
+
margin: ${(s = e.theme.sizes) == null ? void 0 : s.normal} 0;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
804
|
p:first-child {
|
|
805
|
-
margin: 0 0 ${(
|
|
805
|
+
margin: 0 0 ${(i = e.theme.sizes) == null ? void 0 : i.normal};
|
|
806
806
|
}
|
|
807
807
|
|
|
808
808
|
p:last-child {
|
|
@@ -813,19 +813,19 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
813
813
|
margin: 0;
|
|
814
814
|
}
|
|
815
815
|
`;
|
|
816
|
-
},
|
|
816
|
+
}, kn = ({
|
|
817
817
|
elementId: e = "humany-portal-elements",
|
|
818
818
|
parent: t = document.body,
|
|
819
819
|
children: n
|
|
820
820
|
}) => {
|
|
821
|
-
const [o] =
|
|
822
|
-
const
|
|
823
|
-
return
|
|
821
|
+
const [o] = $(() => {
|
|
822
|
+
const s = document.getElementById(e) || document.createElement("div");
|
|
823
|
+
return s.id = e, s;
|
|
824
824
|
});
|
|
825
825
|
return v(() => (t.appendChild(o), () => {
|
|
826
826
|
o.childElementCount <= 1 && t.removeChild(o);
|
|
827
|
-
}), [o]),
|
|
828
|
-
},
|
|
827
|
+
}), [o]), Et(n, o);
|
|
828
|
+
}, G = kn, Ln = (l) => {
|
|
829
829
|
var u = l, {
|
|
830
830
|
text: e = "",
|
|
831
831
|
backgroundSize: t = "contain",
|
|
@@ -834,8 +834,8 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
834
834
|
content: "",
|
|
835
835
|
type: ""
|
|
836
836
|
},
|
|
837
|
-
elementStyle:
|
|
838
|
-
className:
|
|
837
|
+
elementStyle: s = {},
|
|
838
|
+
className: i
|
|
839
839
|
} = u, a = S(u, [
|
|
840
840
|
"text",
|
|
841
841
|
"backgroundSize",
|
|
@@ -844,7 +844,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
844
844
|
"elementStyle",
|
|
845
845
|
"className"
|
|
846
846
|
]);
|
|
847
|
-
const { type: c, content: m } = o,
|
|
847
|
+
const { type: c, content: m } = o, p = {
|
|
848
848
|
"aria-label": e,
|
|
849
849
|
role: "presentation"
|
|
850
850
|
};
|
|
@@ -858,14 +858,14 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
858
858
|
backgroundAttachment: "center"
|
|
859
859
|
};
|
|
860
860
|
return /* @__PURE__ */ r.createElement("i", h(h({
|
|
861
|
-
className: M(
|
|
861
|
+
className: M(i, "humany-icon", "humany-custom-icon"),
|
|
862
862
|
title: e,
|
|
863
|
-
style: h(h({}, d),
|
|
864
|
-
},
|
|
863
|
+
style: h(h({}, d), s)
|
|
864
|
+
}, p), a));
|
|
865
865
|
}
|
|
866
866
|
case "Svg": {
|
|
867
|
-
const d =
|
|
868
|
-
className: M(
|
|
867
|
+
const d = k(h({
|
|
868
|
+
className: M(i, "humany-icon"),
|
|
869
869
|
width: `${n}`,
|
|
870
870
|
fill: "none",
|
|
871
871
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -954,7 +954,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
954
954
|
stroke: "black"
|
|
955
955
|
}));
|
|
956
956
|
case "caret-up":
|
|
957
|
-
return /* @__PURE__ */ r.createElement(
|
|
957
|
+
return /* @__PURE__ */ r.createElement(Mn, h({
|
|
958
958
|
viewBox: "0 0 14 14",
|
|
959
959
|
style: f
|
|
960
960
|
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
@@ -1216,7 +1216,7 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
1216
1216
|
fill: "white"
|
|
1217
1217
|
}));
|
|
1218
1218
|
case "video":
|
|
1219
|
-
return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ r.createElement("svg",
|
|
1219
|
+
return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ r.createElement("svg", k(h({
|
|
1220
1220
|
viewBox: "0 0 25 25"
|
|
1221
1221
|
}, d), {
|
|
1222
1222
|
style: f
|
|
@@ -1330,21 +1330,21 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
1330
1330
|
return null;
|
|
1331
1331
|
}
|
|
1332
1332
|
case "FontAwesome":
|
|
1333
|
-
return /* @__PURE__ */ r.createElement(
|
|
1334
|
-
className:
|
|
1333
|
+
return /* @__PURE__ */ r.createElement(Un, h({
|
|
1334
|
+
className: i,
|
|
1335
1335
|
faIcon: m,
|
|
1336
1336
|
title: e
|
|
1337
1337
|
}, a));
|
|
1338
1338
|
default:
|
|
1339
1339
|
case "Text":
|
|
1340
1340
|
return e ? /* @__PURE__ */ r.createElement("i", h(h({
|
|
1341
|
-
className: M(
|
|
1341
|
+
className: M(i, "humany-letter-symbol"),
|
|
1342
1342
|
title: e
|
|
1343
|
-
},
|
|
1343
|
+
}, p), a), e.substring(0, 2)) : null;
|
|
1344
1344
|
}
|
|
1345
|
-
},
|
|
1345
|
+
}, Mn = y.svg`
|
|
1346
1346
|
transform: rotate(180deg);
|
|
1347
|
-
`,
|
|
1347
|
+
`, J = Ln, Sn = {
|
|
1348
1348
|
h1: "h1",
|
|
1349
1349
|
h2: "h2",
|
|
1350
1350
|
h3: "h3",
|
|
@@ -1353,50 +1353,50 @@ const Dt = (e) => (t) => /* @__PURE__ */ r.createElement(Hn, {
|
|
|
1353
1353
|
h6: "h6",
|
|
1354
1354
|
p: "p",
|
|
1355
1355
|
span: "span"
|
|
1356
|
-
},
|
|
1357
|
-
const { typographyVariantMapping:
|
|
1358
|
-
return /* @__PURE__ */ r.createElement(
|
|
1356
|
+
}, Rn = ({ variant: e, component: t, className: n, children: o }) => {
|
|
1357
|
+
const { typographyVariantMapping: s = {} } = nn(), i = h(h({}, Sn), s), a = t || i[e] || "span";
|
|
1358
|
+
return /* @__PURE__ */ r.createElement(Hn, {
|
|
1359
1359
|
className: n,
|
|
1360
1360
|
as: a
|
|
1361
1361
|
}, o);
|
|
1362
|
-
},
|
|
1363
|
-
var
|
|
1364
|
-
const
|
|
1362
|
+
}, Hn = y.span``, q = Rn;
|
|
1363
|
+
var Tn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Tn || {});
|
|
1364
|
+
const Dn = 300, Bn = ({
|
|
1365
1365
|
className: e,
|
|
1366
1366
|
children: t,
|
|
1367
1367
|
header: n,
|
|
1368
1368
|
onToggle: o,
|
|
1369
|
-
trigger:
|
|
1370
|
-
fullScreen:
|
|
1369
|
+
trigger: s,
|
|
1370
|
+
fullScreen: i = !1,
|
|
1371
1371
|
closeButtonAriaLabel: a,
|
|
1372
1372
|
animation: l = {
|
|
1373
1373
|
type: "slide-in-bottom"
|
|
1374
1374
|
}
|
|
1375
1375
|
}) => {
|
|
1376
|
-
const { duration: u =
|
|
1376
|
+
const { duration: u = Dn } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, C] = Ye(), x = Fe(f), b = R(Q());
|
|
1377
1377
|
v(() => {
|
|
1378
1378
|
o && o(f);
|
|
1379
1379
|
}, [f]);
|
|
1380
|
-
const
|
|
1380
|
+
const E = X("Escape");
|
|
1381
1381
|
v(() => {
|
|
1382
|
-
|
|
1383
|
-
}, [
|
|
1382
|
+
E && C(!1);
|
|
1383
|
+
}, [E]), I(
|
|
1384
1384
|
"click",
|
|
1385
|
-
(
|
|
1386
|
-
const { target:
|
|
1387
|
-
!m.current || !d.current || !
|
|
1385
|
+
(z) => {
|
|
1386
|
+
const { target: T } = z;
|
|
1387
|
+
!m.current || !d.current || !T || m.current !== T && d.current !== T && !d.current.contains(T) && !m.current.contains(T) && C(!1);
|
|
1388
1388
|
},
|
|
1389
1389
|
window
|
|
1390
1390
|
);
|
|
1391
|
-
const
|
|
1391
|
+
const g = ve(b.current, () => {
|
|
1392
1392
|
C(!1);
|
|
1393
1393
|
});
|
|
1394
1394
|
ce("router:changed", () => {
|
|
1395
1395
|
C(!1);
|
|
1396
1396
|
}), v(() => {
|
|
1397
|
-
f && c.current ? c.current.focus() : !f && m.current &&
|
|
1397
|
+
f && c.current ? c.current.focus() : !f && m.current && x && m.current.focus();
|
|
1398
1398
|
}, [f, c.current, m.current]);
|
|
1399
|
-
const B =
|
|
1399
|
+
const B = In[l.type];
|
|
1400
1400
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ie, {
|
|
1401
1401
|
in: f,
|
|
1402
1402
|
className: "humany-drawer-transition",
|
|
@@ -1405,34 +1405,34 @@ const Qt = 300, Vr = ({
|
|
|
1405
1405
|
timeout: u
|
|
1406
1406
|
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(B, {
|
|
1407
1407
|
duration: u,
|
|
1408
|
-
fullScreen:
|
|
1408
|
+
fullScreen: i,
|
|
1409
1409
|
className: M(
|
|
1410
1410
|
e,
|
|
1411
1411
|
"humany-drawer",
|
|
1412
1412
|
`humany-drawer-${b.current}`
|
|
1413
1413
|
),
|
|
1414
1414
|
clientHeight: document.body.clientHeight,
|
|
1415
|
-
css:
|
|
1415
|
+
css: p,
|
|
1416
1416
|
ref: d
|
|
1417
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1417
|
+
}, /* @__PURE__ */ r.createElement(xe, {
|
|
1418
1418
|
onClick: () => C(!1),
|
|
1419
1419
|
tabIndex: 0,
|
|
1420
1420
|
ref: c,
|
|
1421
1421
|
"aria-label": a
|
|
1422
1422
|
}, /* @__PURE__ */ r.createElement(J, {
|
|
1423
1423
|
symbol: { type: "Svg", content: "close" }
|
|
1424
|
-
})), !!n && /* @__PURE__ */ r.createElement(
|
|
1424
|
+
})), !!n && /* @__PURE__ */ r.createElement(zn, {
|
|
1425
1425
|
variant: "h1",
|
|
1426
1426
|
className: "humany-drawer-header"
|
|
1427
|
-
}, n), t))), r.cloneElement(
|
|
1428
|
-
onClick: (
|
|
1429
|
-
C(),
|
|
1427
|
+
}, n), t))), r.cloneElement(s, {
|
|
1428
|
+
onClick: (z) => {
|
|
1429
|
+
C(), g();
|
|
1430
1430
|
},
|
|
1431
1431
|
ref: m,
|
|
1432
|
-
"aria-label":
|
|
1432
|
+
"aria-label": s.props.title,
|
|
1433
1433
|
"aria-expanded": f
|
|
1434
1434
|
}));
|
|
1435
|
-
}, le = y.div`
|
|
1435
|
+
}, No = Bn, le = y.div`
|
|
1436
1436
|
font-family: ${(e) => {
|
|
1437
1437
|
var t;
|
|
1438
1438
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1449,7 +1449,7 @@ const Qt = 300, Vr = ({
|
|
|
1449
1449
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1450
1450
|
background: #ffffff;
|
|
1451
1451
|
${(e) => e.css && e.css}
|
|
1452
|
-
`,
|
|
1452
|
+
`, zn = y(q)`
|
|
1453
1453
|
padding: ${(e) => {
|
|
1454
1454
|
var t;
|
|
1455
1455
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1474,7 +1474,7 @@ const Qt = 300, Vr = ({
|
|
|
1474
1474
|
line-height: 1.2em;
|
|
1475
1475
|
`, ue = (e) => L`
|
|
1476
1476
|
transition: ${e.duration}ms;
|
|
1477
|
-
`,
|
|
1477
|
+
`, Nn = y(le)`
|
|
1478
1478
|
max-height: 0;
|
|
1479
1479
|
${ue}
|
|
1480
1480
|
|
|
@@ -1491,7 +1491,7 @@ const Qt = 300, Vr = ({
|
|
|
1491
1491
|
&.humany-drawer-transition-exit-done {
|
|
1492
1492
|
max-height: 0;
|
|
1493
1493
|
}
|
|
1494
|
-
`,
|
|
1494
|
+
`, Vn = y(le)`
|
|
1495
1495
|
${ue}
|
|
1496
1496
|
transform: translateX(100%);
|
|
1497
1497
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1509,7 +1509,7 @@ const Qt = 300, Vr = ({
|
|
|
1509
1509
|
&.humany-drawer-transition-exit-done {
|
|
1510
1510
|
transform: translateX(100%);
|
|
1511
1511
|
}
|
|
1512
|
-
`,
|
|
1512
|
+
`, Wn = y(le)`
|
|
1513
1513
|
${ue}
|
|
1514
1514
|
transform: translateX(-100%);
|
|
1515
1515
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
@@ -1527,7 +1527,7 @@ const Qt = 300, Vr = ({
|
|
|
1527
1527
|
&.humany-drawer-transition-exit-done {
|
|
1528
1528
|
transform: translateX(-100%);
|
|
1529
1529
|
}
|
|
1530
|
-
`,
|
|
1530
|
+
`, Zn = y(le)`
|
|
1531
1531
|
${ue}
|
|
1532
1532
|
bottom: unset;
|
|
1533
1533
|
top: 0;
|
|
@@ -1546,69 +1546,69 @@ const Qt = 300, Vr = ({
|
|
|
1546
1546
|
&.humany-drawer-transition-exit-done {
|
|
1547
1547
|
height: 0;
|
|
1548
1548
|
}
|
|
1549
|
-
`,
|
|
1550
|
-
["slide-in-bottom"]:
|
|
1551
|
-
["slide-in-right"]:
|
|
1552
|
-
["slide-in-left"]:
|
|
1553
|
-
["slide-in-top"]:
|
|
1554
|
-
},
|
|
1555
|
-
const [o,
|
|
1549
|
+
`, In = {
|
|
1550
|
+
["slide-in-bottom"]: Nn,
|
|
1551
|
+
["slide-in-right"]: Vn,
|
|
1552
|
+
["slide-in-left"]: Wn,
|
|
1553
|
+
["slide-in-top"]: Zn
|
|
1554
|
+
}, On = (e, t, n) => {
|
|
1555
|
+
const [o, s] = $(0), [i, a] = $(0), l = H(
|
|
1556
1556
|
(u, c) => {
|
|
1557
1557
|
if (u.preventDefault(), c) {
|
|
1558
1558
|
const m = c.getBoundingClientRect();
|
|
1559
|
-
|
|
1559
|
+
s(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
|
|
1560
1560
|
}
|
|
1561
1561
|
},
|
|
1562
|
-
[o,
|
|
1562
|
+
[o, i, s, a]
|
|
1563
1563
|
);
|
|
1564
1564
|
return v(() => {
|
|
1565
1565
|
if (!n || !e)
|
|
1566
1566
|
return;
|
|
1567
1567
|
const u = n.getBoundingClientRect(), c = {
|
|
1568
1568
|
x: o,
|
|
1569
|
-
y:
|
|
1569
|
+
y: i
|
|
1570
1570
|
};
|
|
1571
|
-
u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o &&
|
|
1572
|
-
}, [n, e, t]), [{ x: o, y:
|
|
1573
|
-
},
|
|
1574
|
-
(a,
|
|
1575
|
-
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l,
|
|
1571
|
+
u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && s(c.x), c.y !== i && a(c.y);
|
|
1572
|
+
}, [n, e, t]), [{ x: o, y: i }, l];
|
|
1573
|
+
}, Xe = On, Pn = r.forwardRef(
|
|
1574
|
+
(a, i) => {
|
|
1575
|
+
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1576
1576
|
const u = R(), c = R(), m = R();
|
|
1577
|
-
Ce(
|
|
1578
|
-
const
|
|
1577
|
+
Ce(i, () => m.current, [m.current]);
|
|
1578
|
+
const p = R(Q()), [d, f] = $(!1), C = Fe(d), [{ x, y: b }, E] = Xe(d, p.current, m.current), g = X("Escape");
|
|
1579
1579
|
v(() => {
|
|
1580
|
-
|
|
1581
|
-
}, [
|
|
1580
|
+
g && f(!1);
|
|
1581
|
+
}, [g]), v(() => {
|
|
1582
1582
|
d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
|
|
1583
1583
|
}, [d, u.current, c.current]), I(
|
|
1584
1584
|
"click",
|
|
1585
|
-
(
|
|
1586
|
-
const { target: j } =
|
|
1585
|
+
(T) => {
|
|
1586
|
+
const { target: j } = T;
|
|
1587
1587
|
!m.current || !j || m.current !== j && !m.current.contains(j) && f(!1);
|
|
1588
1588
|
},
|
|
1589
1589
|
window
|
|
1590
1590
|
), ce("router:changed", () => {
|
|
1591
1591
|
f(!1);
|
|
1592
1592
|
});
|
|
1593
|
-
const B = ve(
|
|
1593
|
+
const B = ve(p.current, () => {
|
|
1594
1594
|
f(!1);
|
|
1595
|
-
}),
|
|
1596
|
-
(
|
|
1597
|
-
|
|
1595
|
+
}), z = H(
|
|
1596
|
+
(T) => {
|
|
1597
|
+
T.stopPropagation(), E(T, c.current), f(!d), B();
|
|
1598
1598
|
},
|
|
1599
|
-
[B,
|
|
1599
|
+
[B, E, f]
|
|
1600
1600
|
);
|
|
1601
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
|
|
1601
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(Fn, k(h({
|
|
1602
1602
|
className: M(
|
|
1603
1603
|
"humany-dropdown",
|
|
1604
|
-
`humany-dropdown-${
|
|
1604
|
+
`humany-dropdown-${p.current}`,
|
|
1605
1605
|
e
|
|
1606
1606
|
)
|
|
1607
|
-
},
|
|
1608
|
-
x
|
|
1607
|
+
}, s), {
|
|
1608
|
+
x,
|
|
1609
1609
|
y: b,
|
|
1610
1610
|
ref: m
|
|
1611
|
-
}), /* @__PURE__ */ r.createElement(
|
|
1611
|
+
}), /* @__PURE__ */ r.createElement(xe, {
|
|
1612
1612
|
onClick: () => f(!1),
|
|
1613
1613
|
tabIndex: 0,
|
|
1614
1614
|
ref: u,
|
|
@@ -1616,13 +1616,13 @@ const Qt = 300, Vr = ({
|
|
|
1616
1616
|
}, /* @__PURE__ */ r.createElement(J, {
|
|
1617
1617
|
symbol: { type: "Svg", content: "close" }
|
|
1618
1618
|
})), t)), r.cloneElement(n, {
|
|
1619
|
-
onClick:
|
|
1619
|
+
onClick: z,
|
|
1620
1620
|
ref: c,
|
|
1621
1621
|
"aria-label": n.props.title,
|
|
1622
1622
|
"aria-expanded": d
|
|
1623
1623
|
}));
|
|
1624
1624
|
}
|
|
1625
|
-
),
|
|
1625
|
+
), Vo = Pn, Fn = y.div`
|
|
1626
1626
|
${je}
|
|
1627
1627
|
padding: ${(e) => {
|
|
1628
1628
|
var t;
|
|
@@ -1633,55 +1633,55 @@ const Qt = 300, Vr = ({
|
|
|
1633
1633
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1634
1634
|
|
|
1635
1635
|
${(e) => {
|
|
1636
|
-
var n, o,
|
|
1636
|
+
var n, o, s;
|
|
1637
1637
|
let t = "";
|
|
1638
|
-
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((
|
|
1638
|
+
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((s = e.theme.sizes) == null ? void 0 : s.normal) || "0px"};`, t;
|
|
1639
1639
|
}};
|
|
1640
|
-
`,
|
|
1640
|
+
`, An = (t) => {
|
|
1641
1641
|
var e = S(t, []);
|
|
1642
|
-
return /* @__PURE__ */ r.createElement(
|
|
1643
|
-
},
|
|
1642
|
+
return /* @__PURE__ */ r.createElement(Yn, h({}, e));
|
|
1643
|
+
}, Kn = An, Yn = y.div`
|
|
1644
1644
|
display: none;
|
|
1645
|
-
`,
|
|
1646
|
-
(a,
|
|
1647
|
-
var l = a, { children: e, columns: t, gap: n, className: o } = l,
|
|
1648
|
-
return /* @__PURE__ */ r.createElement(
|
|
1645
|
+
`, Wo = N(
|
|
1646
|
+
(a, i) => {
|
|
1647
|
+
var l = a, { children: e, columns: t, gap: n, className: o } = l, s = S(l, ["children", "columns", "gap", "className"]);
|
|
1648
|
+
return /* @__PURE__ */ r.createElement(jn, k(h(h({
|
|
1649
1649
|
className: M(o, "humany-grid"),
|
|
1650
1650
|
"data-columns": t,
|
|
1651
1651
|
"data-gap": n
|
|
1652
|
-
},
|
|
1653
|
-
ref:
|
|
1652
|
+
}, Dt(s)), V(s)), {
|
|
1653
|
+
ref: i
|
|
1654
1654
|
}), e);
|
|
1655
1655
|
}
|
|
1656
|
-
),
|
|
1656
|
+
), jn = y.div`
|
|
1657
1657
|
display: grid;
|
|
1658
1658
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1659
1659
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1660
1660
|
justify-content: center;
|
|
1661
1661
|
grid-auto-rows: max-content;
|
|
1662
|
-
${
|
|
1663
|
-
`,
|
|
1664
|
-
(
|
|
1665
|
-
var a =
|
|
1666
|
-
const l =
|
|
1662
|
+
${Tt}
|
|
1663
|
+
`, Ue = N(
|
|
1664
|
+
(i, s) => {
|
|
1665
|
+
var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
|
|
1666
|
+
const l = W(), [u, c] = $();
|
|
1667
1667
|
return v(() => {
|
|
1668
|
-
const m =
|
|
1668
|
+
const m = Vt(l, n), p = k(h(h({}, m), e), {
|
|
1669
1669
|
transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
|
|
1670
|
-
}), d = zt(n,
|
|
1670
|
+
}), d = zt(n, p);
|
|
1671
1671
|
c(d);
|
|
1672
|
-
}, [n, e]), /* @__PURE__ */ r.createElement("div",
|
|
1672
|
+
}, [n, e]), /* @__PURE__ */ r.createElement("div", k(h({
|
|
1673
1673
|
className: M(t, "humany-html")
|
|
1674
1674
|
}, V(o)), {
|
|
1675
|
-
ref:
|
|
1675
|
+
ref: s
|
|
1676
1676
|
}), u);
|
|
1677
1677
|
}
|
|
1678
|
-
),
|
|
1679
|
-
var a =
|
|
1678
|
+
), Xn = (i) => {
|
|
1679
|
+
var a = i, {
|
|
1680
1680
|
faIcon: e,
|
|
1681
1681
|
title: t,
|
|
1682
1682
|
className: n = "",
|
|
1683
1683
|
role: o = "presentation"
|
|
1684
|
-
} = a,
|
|
1684
|
+
} = a, s = S(a, [
|
|
1685
1685
|
"faIcon",
|
|
1686
1686
|
"title",
|
|
1687
1687
|
"className",
|
|
@@ -1691,19 +1691,19 @@ const Qt = 300, Vr = ({
|
|
|
1691
1691
|
className: M(n, `fa fa-${e}`),
|
|
1692
1692
|
title: t,
|
|
1693
1693
|
role: o
|
|
1694
|
-
}, V(
|
|
1695
|
-
},
|
|
1696
|
-
(
|
|
1697
|
-
var d =
|
|
1694
|
+
}, V(s)));
|
|
1695
|
+
}, Un = Xn, Zo = N(
|
|
1696
|
+
(p, m) => {
|
|
1697
|
+
var d = p, {
|
|
1698
1698
|
className: e = "",
|
|
1699
1699
|
autoFocus: t = !1,
|
|
1700
1700
|
onFocusChange: n = () => {
|
|
1701
1701
|
},
|
|
1702
1702
|
onEnter: o = () => {
|
|
1703
1703
|
},
|
|
1704
|
-
onEscape:
|
|
1704
|
+
onEscape: s = () => {
|
|
1705
1705
|
},
|
|
1706
|
-
selectAllOnFocus:
|
|
1706
|
+
selectAllOnFocus: i,
|
|
1707
1707
|
onChange: a = () => {
|
|
1708
1708
|
},
|
|
1709
1709
|
disabled: l = !1,
|
|
@@ -1719,40 +1719,40 @@ const Qt = 300, Vr = ({
|
|
|
1719
1719
|
"disabled",
|
|
1720
1720
|
"type"
|
|
1721
1721
|
]);
|
|
1722
|
-
const [f, C] =
|
|
1723
|
-
Ce(m, () =>
|
|
1724
|
-
var
|
|
1725
|
-
t && ((
|
|
1726
|
-
}, [t, m,
|
|
1727
|
-
const b = (
|
|
1728
|
-
C(
|
|
1729
|
-
},
|
|
1722
|
+
const [f, C] = $(t), x = R();
|
|
1723
|
+
Ce(m, () => x.current), v(() => {
|
|
1724
|
+
var g;
|
|
1725
|
+
t && ((g = x == null ? void 0 : x.current) == null || g.focus());
|
|
1726
|
+
}, [t, m, x]);
|
|
1727
|
+
const b = (g, B) => {
|
|
1728
|
+
C(g), n && n(g), i && g && B.target.select();
|
|
1729
|
+
}, E = k(h({}, V(c)), {
|
|
1730
1730
|
disabled: l,
|
|
1731
1731
|
autoFocus: t,
|
|
1732
1732
|
type: u,
|
|
1733
|
-
onKeyDown: (
|
|
1734
|
-
|
|
1733
|
+
onKeyDown: (g) => {
|
|
1734
|
+
g.key === "Enter" && f && o(g), g.key === "Escape" && f && s(g);
|
|
1735
1735
|
},
|
|
1736
|
-
onFocus: (
|
|
1737
|
-
onBlur: (
|
|
1738
|
-
onChange: (
|
|
1736
|
+
onFocus: (g) => b(!0, g),
|
|
1737
|
+
onBlur: (g) => b(!1, g),
|
|
1738
|
+
onChange: (g) => a(g.target.value || ""),
|
|
1739
1739
|
className: M(e, "humany-input"),
|
|
1740
1740
|
"data-type": u
|
|
1741
1741
|
});
|
|
1742
|
-
return u !== "textarea" ? /* @__PURE__ */ r.createElement("input",
|
|
1743
|
-
ref:
|
|
1744
|
-
})) : /* @__PURE__ */ r.createElement("textarea",
|
|
1745
|
-
ref:
|
|
1742
|
+
return u !== "textarea" ? /* @__PURE__ */ r.createElement("input", k(h({}, E), {
|
|
1743
|
+
ref: x
|
|
1744
|
+
})) : /* @__PURE__ */ r.createElement("textarea", k(h({}, E), {
|
|
1745
|
+
ref: x
|
|
1746
1746
|
}));
|
|
1747
1747
|
}
|
|
1748
|
-
),
|
|
1749
|
-
(a,
|
|
1750
|
-
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l,
|
|
1751
|
-
return /* @__PURE__ */ r.createElement("ul",
|
|
1748
|
+
), _n = N(
|
|
1749
|
+
(a, i) => {
|
|
1750
|
+
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, s = S(l, ["className", "items", "renderItem", "renderLi"]);
|
|
1751
|
+
return /* @__PURE__ */ r.createElement("ul", k(h({
|
|
1752
1752
|
className: M(e, "humany-list"),
|
|
1753
1753
|
"data-item-count": t.length
|
|
1754
|
-
}, V(
|
|
1755
|
-
ref:
|
|
1754
|
+
}, V(s)), {
|
|
1755
|
+
ref: i
|
|
1756
1756
|
}), t.map(
|
|
1757
1757
|
(u, c, m) => o ? /* @__PURE__ */ r.createElement("li", {
|
|
1758
1758
|
className: "humany-list-item",
|
|
@@ -1760,37 +1760,37 @@ const Qt = 300, Vr = ({
|
|
|
1760
1760
|
}, n(u, c, m)) : n(u, c, m)
|
|
1761
1761
|
));
|
|
1762
1762
|
}
|
|
1763
|
-
),
|
|
1763
|
+
), qn = N(
|
|
1764
1764
|
(u, l) => {
|
|
1765
|
-
var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction:
|
|
1766
|
-
return /* @__PURE__ */ r.createElement("div",
|
|
1765
|
+
var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: s, symbol: i } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1766
|
+
return /* @__PURE__ */ r.createElement("div", k(h({
|
|
1767
1767
|
className: M(o, "humany-paragraph")
|
|
1768
1768
|
}, V(a)), {
|
|
1769
1769
|
ref: l
|
|
1770
1770
|
}), n ? /* @__PURE__ */ r.createElement(q, {
|
|
1771
1771
|
variant: "h1"
|
|
1772
|
-
},
|
|
1773
|
-
symbol:
|
|
1774
|
-
}) : null, n) : null, t ? /* @__PURE__ */ r.createElement(
|
|
1772
|
+
}, i ? /* @__PURE__ */ r.createElement(J, {
|
|
1773
|
+
symbol: i
|
|
1774
|
+
}) : null, n) : null, t ? /* @__PURE__ */ r.createElement(Ue, {
|
|
1775
1775
|
html: t,
|
|
1776
|
-
htmlParseInstruction:
|
|
1777
|
-
}) : null, e ? /* @__PURE__ */ r.createElement(
|
|
1776
|
+
htmlParseInstruction: s
|
|
1777
|
+
}) : null, e ? /* @__PURE__ */ r.createElement(Ee, null, e) : null);
|
|
1778
1778
|
}
|
|
1779
|
-
),
|
|
1779
|
+
), Qn = N(
|
|
1780
1780
|
(f, d) => {
|
|
1781
1781
|
var C = f, {
|
|
1782
1782
|
header: e,
|
|
1783
1783
|
customHeader: t,
|
|
1784
1784
|
text: n,
|
|
1785
1785
|
html: o,
|
|
1786
|
-
className:
|
|
1787
|
-
children:
|
|
1786
|
+
className: s,
|
|
1787
|
+
children: i,
|
|
1788
1788
|
symbol: a,
|
|
1789
1789
|
items: l,
|
|
1790
1790
|
renderItem: u,
|
|
1791
1791
|
renderLi: c,
|
|
1792
1792
|
ulProps: m
|
|
1793
|
-
} = C,
|
|
1793
|
+
} = C, p = S(C, [
|
|
1794
1794
|
"header",
|
|
1795
1795
|
"customHeader",
|
|
1796
1796
|
"text",
|
|
@@ -1803,56 +1803,56 @@ const Qt = 300, Vr = ({
|
|
|
1803
1803
|
"renderLi",
|
|
1804
1804
|
"ulProps"
|
|
1805
1805
|
]);
|
|
1806
|
-
return /* @__PURE__ */ r.createElement("div",
|
|
1807
|
-
className: M(
|
|
1806
|
+
return /* @__PURE__ */ r.createElement("div", k(h({
|
|
1807
|
+
className: M(s, "humany-item-list"),
|
|
1808
1808
|
"data-item-count": l.length
|
|
1809
|
-
}, V(
|
|
1809
|
+
}, V(p)), {
|
|
1810
1810
|
ref: d
|
|
1811
|
-
}), t || (e || n || o ? /* @__PURE__ */ r.createElement(
|
|
1811
|
+
}), t || (e || n || o ? /* @__PURE__ */ r.createElement(qn, {
|
|
1812
1812
|
symbol: a,
|
|
1813
1813
|
header: e,
|
|
1814
1814
|
text: n,
|
|
1815
1815
|
html: o
|
|
1816
|
-
}) : null), l.length ? /* @__PURE__ */ r.createElement(
|
|
1816
|
+
}) : null), l.length ? /* @__PURE__ */ r.createElement(_n, h({
|
|
1817
1817
|
items: l,
|
|
1818
1818
|
renderItem: u,
|
|
1819
1819
|
renderLi: c
|
|
1820
|
-
}, m)) : null,
|
|
1820
|
+
}, m)) : null, i);
|
|
1821
1821
|
}
|
|
1822
|
-
),
|
|
1822
|
+
), Gn = ({
|
|
1823
1823
|
className: e = "",
|
|
1824
1824
|
tree: t,
|
|
1825
1825
|
renderItem: n,
|
|
1826
1826
|
rootItem: o,
|
|
1827
|
-
renderUnselected:
|
|
1828
|
-
renderEmpty:
|
|
1827
|
+
renderUnselected: s = !0,
|
|
1828
|
+
renderEmpty: i = !0,
|
|
1829
1829
|
ulProps: a,
|
|
1830
1830
|
liProps: l
|
|
1831
1831
|
}) => {
|
|
1832
|
-
const u = (
|
|
1832
|
+
const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(Qn, {
|
|
1833
1833
|
className: M(`humany-item-tree-level-${d}`),
|
|
1834
|
-
items:
|
|
1834
|
+
items: p,
|
|
1835
1835
|
ulProps: a,
|
|
1836
1836
|
renderItem: (f) => {
|
|
1837
|
-
const { id: C, selected:
|
|
1838
|
-
return !
|
|
1837
|
+
const { id: C, selected: x, items: b, matches: E } = f, g = x && c(b);
|
|
1838
|
+
return !i && !E ? null : /* @__PURE__ */ r.createElement("li", k(h({}, V(l)), {
|
|
1839
1839
|
key: C,
|
|
1840
1840
|
className: "humany-item-tree-item"
|
|
1841
|
-
}), n && n(f, d,
|
|
1841
|
+
}), n && n(f, d, g), b && (s || g) && m(b, d + 1));
|
|
1842
1842
|
}
|
|
1843
1843
|
});
|
|
1844
1844
|
return /* @__PURE__ */ r.createElement("div", {
|
|
1845
1845
|
className: M(e, "humany-item-tree")
|
|
1846
1846
|
}, o && o(!u(t || [])), t && m(t, 1));
|
|
1847
|
-
},
|
|
1847
|
+
}, Io = Gn, Jn = N(
|
|
1848
1848
|
(u, l) => {
|
|
1849
1849
|
var c = u, { className: e, onClick: t = () => {
|
|
1850
|
-
}, name: n = "", to: o = "", params:
|
|
1851
|
-
const m =
|
|
1850
|
+
}, name: n = "", to: o = "", params: s = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1851
|
+
const m = Ae(), p = W();
|
|
1852
1852
|
if (!m)
|
|
1853
1853
|
return null;
|
|
1854
1854
|
let d = "";
|
|
1855
|
-
const f =
|
|
1855
|
+
const f = k(h({
|
|
1856
1856
|
onClick: t,
|
|
1857
1857
|
className: M(e, "humany-route-link"),
|
|
1858
1858
|
to: d,
|
|
@@ -1861,19 +1861,19 @@ const Qt = 300, Vr = ({
|
|
|
1861
1861
|
ref: null
|
|
1862
1862
|
});
|
|
1863
1863
|
if (n) {
|
|
1864
|
-
if (!(m.routes || []).find((
|
|
1865
|
-
return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(fe,
|
|
1866
|
-
onClick: (
|
|
1867
|
-
t(
|
|
1864
|
+
if (!(m.routes || []).find((E) => E.name === n))
|
|
1865
|
+
return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(fe, k(h({}, f), {
|
|
1866
|
+
onClick: (E) => {
|
|
1867
|
+
t(E), E.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
1868
1868
|
}
|
|
1869
|
-
}),
|
|
1870
|
-
const b = Object.keys(
|
|
1869
|
+
}), i);
|
|
1870
|
+
const b = Object.keys(s).reduce((E, g) => (E[g] = typeof s[g] == "string" ? encodeURIComponent(s[g]) : s[g], E), {});
|
|
1871
1871
|
try {
|
|
1872
1872
|
d = m.generate(n, b || {});
|
|
1873
|
-
} catch (
|
|
1874
|
-
return /* @__PURE__ */ r.createElement(fe, h({}, f),
|
|
1873
|
+
} catch (E) {
|
|
1874
|
+
return /* @__PURE__ */ r.createElement(fe, h({}, f), i);
|
|
1875
1875
|
}
|
|
1876
|
-
d && m.settings.mode && m.settings.mode ===
|
|
1876
|
+
d && m.settings.mode && m.settings.mode === Be.browser && d[0] !== "/" && (d = `/${d}`);
|
|
1877
1877
|
} else if (o && m.history)
|
|
1878
1878
|
d = m.history.createHref({
|
|
1879
1879
|
hash: "",
|
|
@@ -1885,33 +1885,33 @@ const Qt = 300, Vr = ({
|
|
|
1885
1885
|
return process.env.NODE_ENV !== "production" && de.warn(
|
|
1886
1886
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
1887
1887
|
), null;
|
|
1888
|
-
if (m.settings && m.settings.mode ===
|
|
1889
|
-
const C =
|
|
1890
|
-
d =
|
|
1888
|
+
if (m.settings && m.settings.mode === Be.scopedHash) {
|
|
1889
|
+
const C = p.get("$widget").name;
|
|
1890
|
+
d = xt(d, C);
|
|
1891
1891
|
}
|
|
1892
|
-
return f.as ? /* @__PURE__ */ r.createElement(
|
|
1892
|
+
return f.as ? /* @__PURE__ */ r.createElement(er, k(h({}, f), {
|
|
1893
1893
|
as: f.as
|
|
1894
|
-
}),
|
|
1894
|
+
}), i) : /* @__PURE__ */ r.createElement(fe, k(h({}, f), {
|
|
1895
1895
|
to: d
|
|
1896
|
-
}),
|
|
1896
|
+
}), i);
|
|
1897
1897
|
}
|
|
1898
|
-
),
|
|
1899
|
-
(
|
|
1900
|
-
var b =
|
|
1898
|
+
), er = y.span``, we = N(
|
|
1899
|
+
(x, C) => {
|
|
1900
|
+
var b = x, {
|
|
1901
1901
|
className: e,
|
|
1902
1902
|
disabled: t = !1,
|
|
1903
1903
|
role: n = "link",
|
|
1904
1904
|
tabIndex: o = 0,
|
|
1905
|
-
onClick:
|
|
1905
|
+
onClick: s = () => {
|
|
1906
1906
|
},
|
|
1907
|
-
onKeyDown:
|
|
1907
|
+
onKeyDown: i = () => {
|
|
1908
1908
|
},
|
|
1909
1909
|
title: a,
|
|
1910
1910
|
as: l,
|
|
1911
1911
|
href: u,
|
|
1912
1912
|
children: c,
|
|
1913
1913
|
target: m,
|
|
1914
|
-
routeName:
|
|
1914
|
+
routeName: p,
|
|
1915
1915
|
params: d
|
|
1916
1916
|
} = b, f = S(b, [
|
|
1917
1917
|
"className",
|
|
@@ -1928,58 +1928,58 @@ const Qt = 300, Vr = ({
|
|
|
1928
1928
|
"routeName",
|
|
1929
1929
|
"params"
|
|
1930
1930
|
]);
|
|
1931
|
-
const
|
|
1931
|
+
const E = {
|
|
1932
1932
|
title: a,
|
|
1933
1933
|
disabled: t,
|
|
1934
1934
|
role: n,
|
|
1935
1935
|
as: l,
|
|
1936
1936
|
tabIndex: o,
|
|
1937
1937
|
className: M(e, "humany-link", [!!t, "humany-disabled"]),
|
|
1938
|
-
onClick: (
|
|
1939
|
-
if (
|
|
1940
|
-
|
|
1938
|
+
onClick: (g) => {
|
|
1939
|
+
if (g.persist(), t) {
|
|
1940
|
+
g.preventDefault();
|
|
1941
1941
|
return;
|
|
1942
1942
|
}
|
|
1943
|
-
|
|
1943
|
+
s(g);
|
|
1944
1944
|
},
|
|
1945
|
-
onKeyDown: (
|
|
1946
|
-
if (
|
|
1947
|
-
|
|
1945
|
+
onKeyDown: (g) => {
|
|
1946
|
+
if (g.persist(), t) {
|
|
1947
|
+
g.key !== "Tab" && g.preventDefault();
|
|
1948
1948
|
return;
|
|
1949
1949
|
}
|
|
1950
|
-
|
|
1950
|
+
i(g);
|
|
1951
1951
|
}
|
|
1952
1952
|
};
|
|
1953
|
-
return
|
|
1954
|
-
name:
|
|
1953
|
+
return p ? /* @__PURE__ */ r.createElement(tr, k(h(h({
|
|
1954
|
+
name: p,
|
|
1955
1955
|
params: d
|
|
1956
|
-
},
|
|
1956
|
+
}, E), V(f)), {
|
|
1957
1957
|
ref: C
|
|
1958
|
-
}), c) : /* @__PURE__ */ r.createElement(
|
|
1958
|
+
}), c) : /* @__PURE__ */ r.createElement(nr, k(h(h({
|
|
1959
1959
|
href: u,
|
|
1960
1960
|
target: m
|
|
1961
|
-
},
|
|
1961
|
+
}, E), V(f)), {
|
|
1962
1962
|
ref: C
|
|
1963
1963
|
}), c);
|
|
1964
1964
|
}
|
|
1965
|
-
),
|
|
1965
|
+
), tr = y(Jn)`
|
|
1966
1966
|
${(e) => e.disabled ? `
|
|
1967
1967
|
pointer-events: none;
|
|
1968
1968
|
opacity: .7;
|
|
1969
1969
|
` : "cursor: pointer;"}
|
|
1970
|
-
`,
|
|
1970
|
+
`, nr = y.a`
|
|
1971
1971
|
${(e) => e.disabled ? `
|
|
1972
1972
|
pointer-events: none;
|
|
1973
1973
|
opacity: .7;
|
|
1974
1974
|
` : "cursor: pointer;"}
|
|
1975
|
-
`,
|
|
1976
|
-
var a =
|
|
1975
|
+
`, rr = (i) => {
|
|
1976
|
+
var a = i, {
|
|
1977
1977
|
visible: e,
|
|
1978
1978
|
duration: t = 500,
|
|
1979
1979
|
children: n,
|
|
1980
1980
|
onClick: o = () => {
|
|
1981
1981
|
}
|
|
1982
|
-
} = a,
|
|
1982
|
+
} = a, s = S(a, [
|
|
1983
1983
|
"visible",
|
|
1984
1984
|
"duration",
|
|
1985
1985
|
"children",
|
|
@@ -1997,13 +1997,13 @@ const Qt = 300, Vr = ({
|
|
|
1997
1997
|
classNames: "humany-overlay-transition",
|
|
1998
1998
|
unmountOnExit: !0,
|
|
1999
1999
|
timeout: t
|
|
2000
|
-
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
|
|
2000
|
+
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(or, h({
|
|
2001
2001
|
className: "humany-overlay",
|
|
2002
2002
|
duration: t,
|
|
2003
2003
|
ref: l,
|
|
2004
2004
|
onClick: u
|
|
2005
|
-
},
|
|
2006
|
-
},
|
|
2005
|
+
}, s), n)));
|
|
2006
|
+
}, or = y.div`
|
|
2007
2007
|
background: rgba(0, 0, 0, 0.6);
|
|
2008
2008
|
min-width: 100%;
|
|
2009
2009
|
min-height: 100%;
|
|
@@ -2033,11 +2033,11 @@ const Qt = 300, Vr = ({
|
|
|
2033
2033
|
&.humany-overlay-transition-exit-done {
|
|
2034
2034
|
opacity: 0;
|
|
2035
2035
|
}
|
|
2036
|
-
`,
|
|
2036
|
+
`, _e = rr, sr = Ze`
|
|
2037
2037
|
100% {
|
|
2038
2038
|
transform: rotate(360deg);
|
|
2039
2039
|
}
|
|
2040
|
-
`,
|
|
2040
|
+
`, ir = Ze`
|
|
2041
2041
|
0% {
|
|
2042
2042
|
stroke-dasharray: 1, 200;
|
|
2043
2043
|
stroke-dashoffset: 0;
|
|
@@ -2050,8 +2050,8 @@ const Qt = 300, Vr = ({
|
|
|
2050
2050
|
stroke-dasharray: 89, 200;
|
|
2051
2051
|
stroke-dashoffset: -124px;
|
|
2052
2052
|
}
|
|
2053
|
-
`,
|
|
2054
|
-
animation: ${
|
|
2053
|
+
`, ar = y.svg`
|
|
2054
|
+
animation: ${sr} 2s linear infinite;
|
|
2055
2055
|
height: 100%;
|
|
2056
2056
|
transform-origin: center center;
|
|
2057
2057
|
width: 100%;
|
|
@@ -2062,7 +2062,7 @@ const Qt = 300, Vr = ({
|
|
|
2062
2062
|
right: 0;
|
|
2063
2063
|
margin: auto;
|
|
2064
2064
|
transition: 200ms ease-out opacity;
|
|
2065
|
-
`,
|
|
2065
|
+
`, cr = y.div`
|
|
2066
2066
|
position: absolute;
|
|
2067
2067
|
top: 0;
|
|
2068
2068
|
bottom: 0;
|
|
@@ -2080,7 +2080,7 @@ const Qt = 300, Vr = ({
|
|
|
2080
2080
|
svg {
|
|
2081
2081
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2082
2082
|
}
|
|
2083
|
-
`,
|
|
2083
|
+
`, lr = y.div`
|
|
2084
2084
|
position: relative;
|
|
2085
2085
|
margin: 0 auto;
|
|
2086
2086
|
width: 100px;
|
|
@@ -2089,82 +2089,82 @@ const Qt = 300, Vr = ({
|
|
|
2089
2089
|
display: block;
|
|
2090
2090
|
padding-top: 100%;
|
|
2091
2091
|
}
|
|
2092
|
-
`,
|
|
2092
|
+
`, ur = y.circle`
|
|
2093
2093
|
stroke-dasharray: 1, 200;
|
|
2094
2094
|
stroke-dashoffset: 0;
|
|
2095
|
-
animation: ${
|
|
2095
|
+
animation: ${ir} 1.5s ease-in-out infinite;
|
|
2096
2096
|
stroke-linecap: round;
|
|
2097
2097
|
stroke: ${(e) => {
|
|
2098
2098
|
var t;
|
|
2099
2099
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2100
2100
|
}};
|
|
2101
2101
|
stroke-width: 2px;
|
|
2102
|
-
`,
|
|
2102
|
+
`, mr = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(cr, {
|
|
2103
2103
|
className: M("humany-loader", e),
|
|
2104
2104
|
"data-loading": t
|
|
2105
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2105
|
+
}, /* @__PURE__ */ r.createElement(lr, {
|
|
2106
2106
|
className: "humany-spinner"
|
|
2107
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2107
|
+
}, /* @__PURE__ */ r.createElement(ar, {
|
|
2108
2108
|
viewBox: "25 25 50 50"
|
|
2109
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2109
|
+
}, /* @__PURE__ */ r.createElement(ur, {
|
|
2110
2110
|
cx: "50",
|
|
2111
2111
|
cy: "50",
|
|
2112
2112
|
r: "20",
|
|
2113
2113
|
fill: "none",
|
|
2114
2114
|
"stroke-width": "2",
|
|
2115
2115
|
"stroke-miterlimit": "10"
|
|
2116
|
-
})))),
|
|
2117
|
-
var
|
|
2116
|
+
})))), dr = mr, fr = (s) => {
|
|
2117
|
+
var i = s, {
|
|
2118
2118
|
zoomState: e,
|
|
2119
2119
|
image: t,
|
|
2120
2120
|
changeZoom: n
|
|
2121
|
-
} =
|
|
2121
|
+
} = i, o = S(i, [
|
|
2122
2122
|
"zoomState",
|
|
2123
2123
|
"image",
|
|
2124
2124
|
"changeZoom"
|
|
2125
2125
|
]);
|
|
2126
|
-
var
|
|
2127
|
-
const a = R(null), [l, u] =
|
|
2128
|
-
const
|
|
2129
|
-
if (
|
|
2130
|
-
const B = window.innerWidth /
|
|
2131
|
-
return
|
|
2126
|
+
var E;
|
|
2127
|
+
const a = R(null), [l, u] = $(!1), [c, m] = $(!1), b = o.style || {}, { width: p, height: d } = b, f = S(b, ["width", "height"]), C = H(() => {
|
|
2128
|
+
const g = a.current;
|
|
2129
|
+
if (g) {
|
|
2130
|
+
const B = window.innerWidth / g.width, z = window.innerHeight / g.height, T = Math.min(B, z);
|
|
2131
|
+
return z >= 1 && B >= 1 ? 1 : T;
|
|
2132
2132
|
}
|
|
2133
2133
|
return 1;
|
|
2134
|
-
}, [l, t.src]),
|
|
2135
|
-
const
|
|
2136
|
-
if (
|
|
2134
|
+
}, [l, t.src]), x = se(() => {
|
|
2135
|
+
const g = a.current;
|
|
2136
|
+
if (g) {
|
|
2137
2137
|
if (!c) {
|
|
2138
2138
|
m(!0);
|
|
2139
2139
|
const B = C();
|
|
2140
2140
|
n(B);
|
|
2141
2141
|
}
|
|
2142
|
-
return
|
|
2142
|
+
return g.width >= g.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
|
|
2143
2143
|
}
|
|
2144
2144
|
return null;
|
|
2145
2145
|
}, [e, a, l, t.src]);
|
|
2146
2146
|
return v(() => (u(!1), function() {
|
|
2147
2147
|
m(!1);
|
|
2148
|
-
}), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
2148
|
+
}), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(hr, {
|
|
2149
2149
|
loading: !l
|
|
2150
|
-
}), /* @__PURE__ */ r.createElement(
|
|
2150
|
+
}), /* @__PURE__ */ r.createElement(pr, k(h({
|
|
2151
2151
|
onLoad: () => {
|
|
2152
2152
|
u(!0);
|
|
2153
2153
|
},
|
|
2154
2154
|
ref: a,
|
|
2155
|
-
imageSize:
|
|
2155
|
+
imageSize: x,
|
|
2156
2156
|
draggable: "false"
|
|
2157
2157
|
}, o), {
|
|
2158
|
-
alt: ((
|
|
2158
|
+
alt: ((E = o.alt) == null ? void 0 : E.toString()) || "",
|
|
2159
2159
|
style: f,
|
|
2160
2160
|
src: t.src,
|
|
2161
2161
|
loaded: l
|
|
2162
|
-
})), /* @__PURE__ */ r.createElement(
|
|
2163
|
-
},
|
|
2162
|
+
})), /* @__PURE__ */ r.createElement(gr, null));
|
|
2163
|
+
}, hr = y(dr)`
|
|
2164
2164
|
svg circle {
|
|
2165
2165
|
stroke: #ffffff;
|
|
2166
2166
|
}
|
|
2167
|
-
`,
|
|
2167
|
+
`, pr = y.img`
|
|
2168
2168
|
transform: none;
|
|
2169
2169
|
|
|
2170
2170
|
${(e) => e.imageSize && L`
|
|
@@ -2175,122 +2175,122 @@ const Qt = 300, Vr = ({
|
|
|
2175
2175
|
vertical-align: middle;
|
|
2176
2176
|
position: relative;
|
|
2177
2177
|
${(e) => !e.loaded && "display:none;"}
|
|
2178
|
-
`,
|
|
2178
|
+
`, gr = y.div`
|
|
2179
2179
|
height: 100%;
|
|
2180
2180
|
display: inline-block;
|
|
2181
2181
|
vertical-align: middle;
|
|
2182
|
-
`,
|
|
2183
|
-
const e = R(), [t, n] =
|
|
2182
|
+
`, Cr = fr, yr = () => {
|
|
2183
|
+
const e = R(), [t, n] = $(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2184
2184
|
n(!1);
|
|
2185
2185
|
}, 3e3), () => {
|
|
2186
2186
|
e.current && clearTimeout(e.current);
|
|
2187
2187
|
}), [t, e]);
|
|
2188
2188
|
return [t, o];
|
|
2189
|
-
},
|
|
2189
|
+
}, br = ({ attrs: e, htmlBody: t }) => {
|
|
2190
2190
|
var Se;
|
|
2191
|
-
const n = X("Escape"), o = X("ArrowLeft"),
|
|
2191
|
+
const n = X("Escape"), o = X("ArrowLeft"), s = X("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] = yr(), [f, C] = $(null), [x, b] = $(null), E = R(null), g = R(null), B = R(null), z = R(null);
|
|
2192
2192
|
v(() => {
|
|
2193
2193
|
n && C(null);
|
|
2194
2194
|
}, [n]), v(() => {
|
|
2195
2195
|
a(1);
|
|
2196
2196
|
}, [f]), v(() => {
|
|
2197
|
-
var
|
|
2198
|
-
if (f === null ||
|
|
2197
|
+
var P, F;
|
|
2198
|
+
if (f === null || g.current === null)
|
|
2199
2199
|
return;
|
|
2200
|
-
const
|
|
2201
|
-
if (
|
|
2202
|
-
te &&
|
|
2203
|
-
else if (
|
|
2204
|
-
ee && D ? D.focus() : te &&
|
|
2200
|
+
const w = g.current.firstElementChild, D = (P = B.current) == null ? void 0 : P.querySelector(".nav-left"), Z = (F = B.current) == null ? void 0 : F.querySelector(".nav-right");
|
|
2201
|
+
if (x === "Right")
|
|
2202
|
+
te && Z ? Z.focus() : ee && D && D.focus();
|
|
2203
|
+
else if (x === "Left")
|
|
2204
|
+
ee && D ? D.focus() : te && Z && Z.focus();
|
|
2205
2205
|
else {
|
|
2206
|
-
if (!
|
|
2206
|
+
if (!w)
|
|
2207
2207
|
return;
|
|
2208
|
-
|
|
2208
|
+
w.focus();
|
|
2209
2209
|
}
|
|
2210
|
-
}, [f,
|
|
2210
|
+
}, [f, g, B, x]), v(() => {
|
|
2211
2211
|
if (o) {
|
|
2212
2212
|
if (ee)
|
|
2213
2213
|
return Le();
|
|
2214
|
-
} else if (
|
|
2214
|
+
} else if (s && te)
|
|
2215
2215
|
return Me();
|
|
2216
|
-
}, [o,
|
|
2217
|
-
const
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2220
|
-
const D =
|
|
2221
|
-
return Array.from(D).reduce((
|
|
2222
|
-
const Re =
|
|
2216
|
+
}, [o, s]);
|
|
2217
|
+
const T = se(() => {
|
|
2218
|
+
const w = document.createElement("div");
|
|
2219
|
+
w.innerHTML = t || "";
|
|
2220
|
+
const D = w.getElementsByTagName("img");
|
|
2221
|
+
return Array.from(D).reduce((P, F) => {
|
|
2222
|
+
const Re = F.getAttribute("src"), ot = F.height || Number.parseInt(F.style.height, 10), st = F.width || Number.parseInt(F.style.width, 10);
|
|
2223
2223
|
if (Re) {
|
|
2224
|
-
const
|
|
2224
|
+
const it = {
|
|
2225
2225
|
src: Re,
|
|
2226
|
-
originalWidth:
|
|
2226
|
+
originalWidth: st,
|
|
2227
2227
|
originalHeight: ot
|
|
2228
2228
|
};
|
|
2229
|
-
|
|
2229
|
+
P.push(it);
|
|
2230
2230
|
}
|
|
2231
|
-
return
|
|
2231
|
+
return P;
|
|
2232
2232
|
}, []);
|
|
2233
2233
|
}, [t]), j = H(() => {
|
|
2234
|
-
const { src:
|
|
2235
|
-
if (
|
|
2236
|
-
const D =
|
|
2234
|
+
const { src: w } = e;
|
|
2235
|
+
if (w) {
|
|
2236
|
+
const D = T.findIndex((Z, P) => Z.src === w);
|
|
2237
2237
|
C(D);
|
|
2238
2238
|
}
|
|
2239
|
-
}, [
|
|
2239
|
+
}, [T, e]), Ge = H((w) => {
|
|
2240
2240
|
C(null);
|
|
2241
|
-
}, []),
|
|
2242
|
-
(
|
|
2243
|
-
a(
|
|
2241
|
+
}, []), ke = H(
|
|
2242
|
+
(w) => {
|
|
2243
|
+
a(w ? i + i * 0.25 : i - i * 0.25);
|
|
2244
2244
|
},
|
|
2245
|
-
[a,
|
|
2245
|
+
[a, i]
|
|
2246
2246
|
), Je = H(() => {
|
|
2247
2247
|
if (f !== null) {
|
|
2248
|
-
const { src:
|
|
2249
|
-
|
|
2248
|
+
const { src: w } = T[f];
|
|
2249
|
+
w && window.open(w, "_self");
|
|
2250
2250
|
}
|
|
2251
|
-
}, [
|
|
2252
|
-
(
|
|
2253
|
-
const D =
|
|
2254
|
-
D && (u({ top: D.scrollTop, left: D.scrollLeft, x:
|
|
2251
|
+
}, [T, f]), et = H(
|
|
2252
|
+
(w) => {
|
|
2253
|
+
const D = z.current;
|
|
2254
|
+
D && (u({ top: D.scrollTop, left: D.scrollLeft, x: w.clientX, y: w.clientY }), m(!0));
|
|
2255
2255
|
},
|
|
2256
|
-
[
|
|
2256
|
+
[z]
|
|
2257
2257
|
), tt = H(
|
|
2258
|
-
(
|
|
2259
|
-
const D =
|
|
2258
|
+
(w) => {
|
|
2259
|
+
const D = z.current;
|
|
2260
2260
|
if (D && c) {
|
|
2261
|
-
const
|
|
2262
|
-
D.scrollTop = l.top -
|
|
2261
|
+
const Z = w.clientX - l.x, P = w.clientY - l.y;
|
|
2262
|
+
D.scrollTop = l.top - P, D.scrollLeft = l.left - Z;
|
|
2263
2263
|
}
|
|
2264
2264
|
},
|
|
2265
2265
|
[c, l]
|
|
2266
|
-
), nt = (
|
|
2267
|
-
|
|
2268
|
-
}, rt =
|
|
2269
|
-
if (
|
|
2270
|
-
const
|
|
2271
|
-
if (
|
|
2272
|
-
const D =
|
|
2266
|
+
), nt = (w) => {
|
|
2267
|
+
w.preventDefault(), m(!1);
|
|
2268
|
+
}, rt = se(() => {
|
|
2269
|
+
if (z.current) {
|
|
2270
|
+
const w = z.current.getElementsByTagName("img");
|
|
2271
|
+
if (w && w.length) {
|
|
2272
|
+
const D = w[0];
|
|
2273
2273
|
return D.width > window.innerWidth || D.height > window.innerHeight;
|
|
2274
2274
|
}
|
|
2275
2275
|
}
|
|
2276
2276
|
return !1;
|
|
2277
|
-
}, [
|
|
2277
|
+
}, [z, i]), Le = () => {
|
|
2278
2278
|
f !== null && (b("Left"), C(f - 1));
|
|
2279
2279
|
}, Me = () => {
|
|
2280
2280
|
f !== null && (b("Right"), C(f + 1));
|
|
2281
|
-
}, ee = f !== null && f > 0 &&
|
|
2282
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
2281
|
+
}, ee = f !== null && f > 0 && T.length > 1, te = f !== null && T.length - 1 > f;
|
|
2282
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, {
|
|
2283
2283
|
visible: f !== null,
|
|
2284
2284
|
onClick: Ge
|
|
2285
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2285
|
+
}, /* @__PURE__ */ r.createElement(Mr, {
|
|
2286
2286
|
onMouseDown: () => d(),
|
|
2287
2287
|
onMouseMove: () => d(),
|
|
2288
2288
|
onTouchStart: () => d(),
|
|
2289
2289
|
onKeyDown: () => d()
|
|
2290
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2291
|
-
show:
|
|
2292
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2293
|
-
ref:
|
|
2290
|
+
}, /* @__PURE__ */ r.createElement(Sr, {
|
|
2291
|
+
show: p.toString()
|
|
2292
|
+
}, /* @__PURE__ */ r.createElement(wr, {
|
|
2293
|
+
ref: g,
|
|
2294
2294
|
buttons: [
|
|
2295
2295
|
{
|
|
2296
2296
|
id: "download",
|
|
@@ -2305,23 +2305,23 @@ const Qt = 300, Vr = ({
|
|
|
2305
2305
|
ariaLabel: "Close"
|
|
2306
2306
|
}
|
|
2307
2307
|
]
|
|
2308
|
-
})), /* @__PURE__ */ r.createElement(
|
|
2308
|
+
})), /* @__PURE__ */ r.createElement(Hr, {
|
|
2309
2309
|
scrolling: c.toString(),
|
|
2310
2310
|
isDraggable: rt.toString(),
|
|
2311
|
-
ref:
|
|
2311
|
+
ref: z,
|
|
2312
2312
|
onMouseMove: tt,
|
|
2313
2313
|
onMouseDown: et,
|
|
2314
2314
|
onMouseUp: nt
|
|
2315
|
-
}, f !== null && /* @__PURE__ */ r.createElement(
|
|
2316
|
-
changeZoom: (
|
|
2317
|
-
a(
|
|
2315
|
+
}, f !== null && /* @__PURE__ */ r.createElement(Cr, k(h({
|
|
2316
|
+
changeZoom: (w) => {
|
|
2317
|
+
a(w);
|
|
2318
2318
|
},
|
|
2319
|
-
zoomState:
|
|
2319
|
+
zoomState: i
|
|
2320
2320
|
}, e), {
|
|
2321
|
-
image:
|
|
2322
|
-
}))), /* @__PURE__ */ r.createElement(
|
|
2321
|
+
image: T[f]
|
|
2322
|
+
}))), /* @__PURE__ */ r.createElement(kr, {
|
|
2323
2323
|
ref: B,
|
|
2324
|
-
show:
|
|
2324
|
+
show: p.toString(),
|
|
2325
2325
|
buttons: [
|
|
2326
2326
|
{
|
|
2327
2327
|
id: "previous",
|
|
@@ -2342,44 +2342,44 @@ const Qt = 300, Vr = ({
|
|
|
2342
2342
|
ariaLabel: "Navigate to next image"
|
|
2343
2343
|
}
|
|
2344
2344
|
]
|
|
2345
|
-
}), /* @__PURE__ */ r.createElement(
|
|
2346
|
-
show:
|
|
2347
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2345
|
+
}), /* @__PURE__ */ r.createElement(Rr, {
|
|
2346
|
+
show: p.toString()
|
|
2347
|
+
}, /* @__PURE__ */ r.createElement($r, {
|
|
2348
2348
|
buttons: [
|
|
2349
2349
|
{
|
|
2350
2350
|
id: "zoom-out",
|
|
2351
|
-
onClick: () =>
|
|
2351
|
+
onClick: () => ke(!1),
|
|
2352
2352
|
icon: "zoom-out",
|
|
2353
2353
|
ariaLabel: "Zoom out"
|
|
2354
2354
|
},
|
|
2355
2355
|
{
|
|
2356
2356
|
id: "zoom-in",
|
|
2357
|
-
onClick: () =>
|
|
2357
|
+
onClick: () => ke(!0),
|
|
2358
2358
|
icon: "zoom-in",
|
|
2359
2359
|
ariaLabel: "Zoom in"
|
|
2360
2360
|
}
|
|
2361
2361
|
]
|
|
2362
|
-
}), /* @__PURE__ */ r.createElement(
|
|
2362
|
+
}), /* @__PURE__ */ r.createElement(Lr, {
|
|
2363
2363
|
variant: "span"
|
|
2364
|
-
}, Math.trunc(
|
|
2365
|
-
ref:
|
|
2364
|
+
}, Math.trunc(i * 100), "%")))), /* @__PURE__ */ r.createElement(vr, {
|
|
2365
|
+
ref: E,
|
|
2366
2366
|
onClick: j,
|
|
2367
|
-
onKeyDown: (
|
|
2368
|
-
|
|
2367
|
+
onKeyDown: (w) => {
|
|
2368
|
+
w.key === "Enter" && (w.preventDefault(), j());
|
|
2369
2369
|
},
|
|
2370
2370
|
tabIndex: 0
|
|
2371
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2371
|
+
}, /* @__PURE__ */ r.createElement(Tr, k(h({}, e), {
|
|
2372
2372
|
alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || ""
|
|
2373
2373
|
}))));
|
|
2374
|
-
},
|
|
2375
|
-
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(
|
|
2374
|
+
}, $e = N(
|
|
2375
|
+
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(Er, {
|
|
2376
2376
|
ref: o,
|
|
2377
2377
|
show: e,
|
|
2378
2378
|
className: M("humany-button-set", n)
|
|
2379
2379
|
}, t.map(
|
|
2380
|
-
({ id:
|
|
2381
|
-
key:
|
|
2382
|
-
circle:
|
|
2380
|
+
({ id: s, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(xr, {
|
|
2381
|
+
key: s + p.toString(),
|
|
2382
|
+
circle: i.toString(),
|
|
2383
2383
|
onClick: u,
|
|
2384
2384
|
tabIndex: a ? void 0 : -1,
|
|
2385
2385
|
show: a.toString(),
|
|
@@ -2398,18 +2398,18 @@ const Qt = 300, Vr = ({
|
|
|
2398
2398
|
opacity: 0;
|
|
2399
2399
|
pointer-events: none;
|
|
2400
2400
|
`}
|
|
2401
|
-
`,
|
|
2401
|
+
`, vr = y(we)`
|
|
2402
2402
|
display: inline-block !important;
|
|
2403
|
-
`,
|
|
2403
|
+
`, Er = y(qe)`
|
|
2404
2404
|
position: fixed;
|
|
2405
2405
|
display: flex;
|
|
2406
2406
|
gap: ${(e) => {
|
|
2407
2407
|
var t;
|
|
2408
2408
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2409
2409
|
}};
|
|
2410
|
-
`,
|
|
2411
|
-
width: ${
|
|
2412
|
-
height: ${
|
|
2410
|
+
`, ge = "39px", xr = y(ae)`
|
|
2411
|
+
width: ${ge};
|
|
2412
|
+
height: ${ge};
|
|
2413
2413
|
display: flex;
|
|
2414
2414
|
justify-content: center;
|
|
2415
2415
|
align-items: center;
|
|
@@ -2435,7 +2435,7 @@ const Qt = 300, Vr = ({
|
|
|
2435
2435
|
}
|
|
2436
2436
|
|
|
2437
2437
|
&:focus-visible {
|
|
2438
|
-
${
|
|
2438
|
+
${A(e)}
|
|
2439
2439
|
outline-color: #ffffff;
|
|
2440
2440
|
background-color: transparent;
|
|
2441
2441
|
|
|
@@ -2457,7 +2457,7 @@ const Qt = 300, Vr = ({
|
|
|
2457
2457
|
outline-color: #ffffff;
|
|
2458
2458
|
}
|
|
2459
2459
|
&:focus-visible {
|
|
2460
|
-
${
|
|
2460
|
+
${A(e)}
|
|
2461
2461
|
}
|
|
2462
2462
|
`;
|
|
2463
2463
|
}}
|
|
@@ -2472,7 +2472,7 @@ const Qt = 300, Vr = ({
|
|
|
2472
2472
|
opacity: 0;
|
|
2473
2473
|
pointer-events: none;
|
|
2474
2474
|
`}
|
|
2475
|
-
`,
|
|
2475
|
+
`, wr = y($e)`
|
|
2476
2476
|
top: ${(e) => {
|
|
2477
2477
|
var t;
|
|
2478
2478
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2481,7 +2481,7 @@ const Qt = 300, Vr = ({
|
|
|
2481
2481
|
var t;
|
|
2482
2482
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2483
2483
|
}};
|
|
2484
|
-
`,
|
|
2484
|
+
`, $r = y($e)`
|
|
2485
2485
|
bottom: ${(e) => {
|
|
2486
2486
|
var t;
|
|
2487
2487
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2489,11 +2489,11 @@ const Qt = 300, Vr = ({
|
|
|
2489
2489
|
width: 100%;
|
|
2490
2490
|
align-items: center;
|
|
2491
2491
|
justify-content: center;
|
|
2492
|
-
`,
|
|
2492
|
+
`, kr = y($e)`
|
|
2493
2493
|
display: block;
|
|
2494
2494
|
button {
|
|
2495
2495
|
position: fixed;
|
|
2496
|
-
top: calc(50% - calc(${
|
|
2496
|
+
top: calc(50% - calc(${ge} / 2));
|
|
2497
2497
|
&:first-child {
|
|
2498
2498
|
left: ${(e) => {
|
|
2499
2499
|
var t;
|
|
@@ -2507,7 +2507,7 @@ const Qt = 300, Vr = ({
|
|
|
2507
2507
|
}};
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
|
-
`,
|
|
2510
|
+
`, Lr = y(q)`
|
|
2511
2511
|
position: fixed;
|
|
2512
2512
|
bottom: ${(e) => {
|
|
2513
2513
|
var t;
|
|
@@ -2532,15 +2532,15 @@ const Qt = 300, Vr = ({
|
|
|
2532
2532
|
height: 88px;
|
|
2533
2533
|
left: 0px;
|
|
2534
2534
|
z-index: 5;
|
|
2535
|
-
`,
|
|
2535
|
+
`, Mr = y.div`
|
|
2536
2536
|
width: 100%;
|
|
2537
|
-
`,
|
|
2537
|
+
`, Sr = y(Qe)`
|
|
2538
2538
|
top: 0px;
|
|
2539
2539
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2540
|
-
`,
|
|
2540
|
+
`, Rr = y(Qe)`
|
|
2541
2541
|
bottom: 0px;
|
|
2542
2542
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2543
|
-
`,
|
|
2543
|
+
`, Hr = y.div`
|
|
2544
2544
|
width: 100%;
|
|
2545
2545
|
height: 100vh;
|
|
2546
2546
|
overflow: auto;
|
|
@@ -2549,23 +2549,23 @@ const Qt = 300, Vr = ({
|
|
|
2549
2549
|
white-space: nowrap;
|
|
2550
2550
|
justify-content: center;
|
|
2551
2551
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2552
|
-
`,
|
|
2552
|
+
`, Tr = y.img`
|
|
2553
2553
|
cursor: pointer;
|
|
2554
|
-
`,
|
|
2554
|
+
`, Dr = br, Br = N(
|
|
2555
2555
|
(l, a) => {
|
|
2556
2556
|
var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2557
|
-
}, close:
|
|
2558
|
-
const [c, m] = Ye(), [
|
|
2557
|
+
}, close: s = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2558
|
+
const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), C = R(Q()), x = X("Escape");
|
|
2559
2559
|
v(() => {
|
|
2560
|
-
(
|
|
2561
|
-
}, [
|
|
2560
|
+
(x || s) && m(!1);
|
|
2561
|
+
}, [x, s]), v(() => {
|
|
2562
2562
|
c && f.current && f.current.focus();
|
|
2563
2563
|
}, [c, f.current]), ce("router:changed", () => {
|
|
2564
2564
|
m(!1);
|
|
2565
2565
|
});
|
|
2566
2566
|
const b = H(
|
|
2567
|
-
(
|
|
2568
|
-
m(!1), o(
|
|
2567
|
+
(g) => {
|
|
2568
|
+
m(!1), o(g);
|
|
2569
2569
|
},
|
|
2570
2570
|
[o, m]
|
|
2571
2571
|
);
|
|
@@ -2574,35 +2574,35 @@ const Qt = 300, Vr = ({
|
|
|
2574
2574
|
m(!1);
|
|
2575
2575
|
}
|
|
2576
2576
|
}));
|
|
2577
|
-
const
|
|
2577
|
+
const E = H(() => ve(C.current, () => {
|
|
2578
2578
|
m(!1);
|
|
2579
2579
|
}), [C.current]);
|
|
2580
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
2580
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, {
|
|
2581
2581
|
visible: c,
|
|
2582
2582
|
onClick: b
|
|
2583
|
-
}, /* @__PURE__ */ r.createElement(
|
|
2583
|
+
}, /* @__PURE__ */ r.createElement(Nr, k(h({
|
|
2584
2584
|
className: M(
|
|
2585
2585
|
e,
|
|
2586
2586
|
"humany-modal",
|
|
2587
2587
|
`humany-modal-${C.current}`
|
|
2588
2588
|
),
|
|
2589
|
-
css:
|
|
2589
|
+
css: p,
|
|
2590
2590
|
tabIndex: -1
|
|
2591
|
-
},
|
|
2591
|
+
}, i), {
|
|
2592
2592
|
ref: d
|
|
2593
|
-
}), /* @__PURE__ */ r.createElement(
|
|
2593
|
+
}), /* @__PURE__ */ r.createElement(xe, {
|
|
2594
2594
|
onClick: () => m(!1),
|
|
2595
2595
|
tabIndex: 0,
|
|
2596
2596
|
ref: f
|
|
2597
2597
|
}, /* @__PURE__ */ r.createElement(J, {
|
|
2598
2598
|
symbol: { type: "Svg", content: "close" }
|
|
2599
2599
|
})), t)), r.cloneElement(n, {
|
|
2600
|
-
onClick: (
|
|
2601
|
-
m(),
|
|
2600
|
+
onClick: (g) => {
|
|
2601
|
+
m(), E();
|
|
2602
2602
|
}
|
|
2603
2603
|
}));
|
|
2604
2604
|
}
|
|
2605
|
-
),
|
|
2605
|
+
), zr = Br, Nr = y.div`
|
|
2606
2606
|
font-family: ${(e) => {
|
|
2607
2607
|
var t;
|
|
2608
2608
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2621,36 +2621,36 @@ const Qt = 300, Vr = ({
|
|
|
2621
2621
|
${(e) => je(e)}
|
|
2622
2622
|
${(e) => e.css && e.css}
|
|
2623
2623
|
outline: none;
|
|
2624
|
-
`,
|
|
2624
|
+
`, Vr = ({
|
|
2625
2625
|
className: e,
|
|
2626
2626
|
trigger: t,
|
|
2627
2627
|
header: n = "",
|
|
2628
2628
|
text: o = "",
|
|
2629
|
-
onCancel:
|
|
2629
|
+
onCancel: s = () => {
|
|
2630
2630
|
},
|
|
2631
|
-
onConfirm:
|
|
2631
|
+
onConfirm: i = () => {
|
|
2632
2632
|
},
|
|
2633
2633
|
cancelLabel: a = "",
|
|
2634
2634
|
confirmLabel: l = ""
|
|
2635
2635
|
}) => {
|
|
2636
2636
|
const u = R(), c = H(() => {
|
|
2637
|
-
var
|
|
2638
|
-
|
|
2639
|
-
}, [
|
|
2640
|
-
var
|
|
2641
|
-
|
|
2642
|
-
}, [
|
|
2643
|
-
return /* @__PURE__ */ r.createElement(
|
|
2637
|
+
var p;
|
|
2638
|
+
s(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2639
|
+
}, [s]), m = H(() => {
|
|
2640
|
+
var p;
|
|
2641
|
+
i(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2642
|
+
}, [i]);
|
|
2643
|
+
return /* @__PURE__ */ r.createElement(Wr, {
|
|
2644
2644
|
className: e,
|
|
2645
2645
|
trigger: t,
|
|
2646
2646
|
ref: u,
|
|
2647
2647
|
onOverlayClick: c
|
|
2648
|
-
}, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(
|
|
2648
|
+
}, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Zr, {
|
|
2649
2649
|
onClick: m
|
|
2650
|
-
}, l), a && /* @__PURE__ */ r.createElement(
|
|
2650
|
+
}, l), a && /* @__PURE__ */ r.createElement(Ir, {
|
|
2651
2651
|
onClick: c
|
|
2652
2652
|
}, a));
|
|
2653
|
-
},
|
|
2653
|
+
}, Oo = Vr, Wr = y(zr)`
|
|
2654
2654
|
display: block;
|
|
2655
2655
|
|
|
2656
2656
|
span {
|
|
@@ -2668,7 +2668,7 @@ const Qt = 300, Vr = ({
|
|
|
2668
2668
|
}};
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
|
-
`,
|
|
2671
|
+
`, Zr = y(ae)`
|
|
2672
2672
|
display: inline-block;
|
|
2673
2673
|
min-width: 50px;
|
|
2674
2674
|
${(e) => {
|
|
@@ -2696,9 +2696,9 @@ const Qt = 300, Vr = ({
|
|
|
2696
2696
|
}
|
|
2697
2697
|
|
|
2698
2698
|
&:focus-visible {
|
|
2699
|
-
${
|
|
2699
|
+
${A}
|
|
2700
2700
|
}
|
|
2701
|
-
`,
|
|
2701
|
+
`, Ir = y(ae)`
|
|
2702
2702
|
display: inline-block;
|
|
2703
2703
|
min-width: 50px;
|
|
2704
2704
|
${(e) => {
|
|
@@ -2717,26 +2717,26 @@ const Qt = 300, Vr = ({
|
|
|
2717
2717
|
}};
|
|
2718
2718
|
|
|
2719
2719
|
&:focus-visible {
|
|
2720
|
-
${
|
|
2720
|
+
${A};
|
|
2721
2721
|
}
|
|
2722
|
-
`,
|
|
2722
|
+
`, Or = ({
|
|
2723
2723
|
header: e = "",
|
|
2724
2724
|
link: t = "",
|
|
2725
2725
|
suggestionHeader: n = "",
|
|
2726
2726
|
suggestion: o = ""
|
|
2727
|
-
}) => /* @__PURE__ */ r.createElement(
|
|
2727
|
+
}) => /* @__PURE__ */ r.createElement(Pr, null, /* @__PURE__ */ r.createElement(Fr, null, /* @__PURE__ */ r.createElement(q, {
|
|
2728
2728
|
variant: "h2"
|
|
2729
|
-
}, "404")), /* @__PURE__ */ r.createElement(
|
|
2729
|
+
}, "404")), /* @__PURE__ */ r.createElement(Ar, null, /* @__PURE__ */ r.createElement(q, {
|
|
2730
2730
|
variant: "h3"
|
|
2731
|
-
}, e), /* @__PURE__ */ r.createElement(
|
|
2731
|
+
}, e), /* @__PURE__ */ r.createElement(jr, {
|
|
2732
2732
|
routeName: "index",
|
|
2733
2733
|
"aria-label": t,
|
|
2734
2734
|
text: t
|
|
2735
|
-
})), /* @__PURE__ */ r.createElement(
|
|
2735
|
+
})), /* @__PURE__ */ r.createElement(Kr, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), Po = Or, Pr = y.div`
|
|
2736
2736
|
display: flex;
|
|
2737
2737
|
flex-wrap: wrap;
|
|
2738
|
-
`,
|
|
2739
|
-
${(e) =>
|
|
2738
|
+
`, Fr = y.div`
|
|
2739
|
+
${(e) => ie(e)(
|
|
2740
2740
|
"h2",
|
|
2741
2741
|
L`
|
|
2742
2742
|
padding: 0;
|
|
@@ -2745,7 +2745,7 @@ const Qt = 300, Vr = ({
|
|
|
2745
2745
|
font-size: 7em;
|
|
2746
2746
|
`
|
|
2747
2747
|
)}
|
|
2748
|
-
`,
|
|
2748
|
+
`, Ar = y.div`
|
|
2749
2749
|
margin-left: ${(e) => {
|
|
2750
2750
|
var t;
|
|
2751
2751
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2753,7 +2753,7 @@ const Qt = 300, Vr = ({
|
|
|
2753
2753
|
|
|
2754
2754
|
${(e) => {
|
|
2755
2755
|
var t;
|
|
2756
|
-
return
|
|
2756
|
+
return ie(e)(
|
|
2757
2757
|
"h3",
|
|
2758
2758
|
L`
|
|
2759
2759
|
text-transform: uppercase;
|
|
@@ -2772,7 +2772,7 @@ const Qt = 300, Vr = ({
|
|
|
2772
2772
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2773
2773
|
}};
|
|
2774
2774
|
}
|
|
2775
|
-
`,
|
|
2775
|
+
`, Kr = y.div`
|
|
2776
2776
|
margin-top: ${(e) => {
|
|
2777
2777
|
var t;
|
|
2778
2778
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2783,7 +2783,7 @@ const Qt = 300, Vr = ({
|
|
|
2783
2783
|
font-weight: bold;
|
|
2784
2784
|
}
|
|
2785
2785
|
`;
|
|
2786
|
-
class
|
|
2786
|
+
class Yr extends dt {
|
|
2787
2787
|
constructor() {
|
|
2788
2788
|
super(...arguments);
|
|
2789
2789
|
re(this, "node");
|
|
@@ -2805,8 +2805,8 @@ class Pr extends mt {
|
|
|
2805
2805
|
this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
|
|
2806
2806
|
const o = n.querySelectorAll(
|
|
2807
2807
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2808
|
-
),
|
|
2809
|
-
|
|
2808
|
+
), i = [].filter.call(o, (a) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(a).display === "none" || a.offsetWidth <= 0 && a.offsetHeight <= 0))[0];
|
|
2809
|
+
i && i.focus();
|
|
2810
2810
|
}));
|
|
2811
2811
|
}
|
|
2812
2812
|
componentWillUnmount() {
|
|
@@ -2822,32 +2822,32 @@ class Pr extends mt {
|
|
|
2822
2822
|
}) : null;
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
|
-
const
|
|
2826
|
-
(a,
|
|
2827
|
-
var l = a, { className: e, description: t, text: n, children: o } = l,
|
|
2828
|
-
return /* @__PURE__ */ r.createElement(
|
|
2825
|
+
const Fo = Yr, jr = N(
|
|
2826
|
+
(a, i) => {
|
|
2827
|
+
var l = a, { className: e, description: t, text: n, children: o } = l, s = S(l, ["className", "description", "text", "children"]);
|
|
2828
|
+
return /* @__PURE__ */ r.createElement(we, k(h({
|
|
2829
2829
|
className: M(e, "humany-text-link")
|
|
2830
|
-
},
|
|
2831
|
-
ref:
|
|
2832
|
-
}), o, /* @__PURE__ */ r.createElement(
|
|
2830
|
+
}, s), {
|
|
2831
|
+
ref: i
|
|
2832
|
+
}), o, /* @__PURE__ */ r.createElement(Ee, null, n), t ? /* @__PURE__ */ r.createElement(Ue, {
|
|
2833
2833
|
html: t,
|
|
2834
2834
|
className: "humany-description"
|
|
2835
2835
|
}) : null);
|
|
2836
2836
|
}
|
|
2837
2837
|
);
|
|
2838
|
-
var
|
|
2839
|
-
const
|
|
2838
|
+
var Xr = /* @__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))(Xr || {});
|
|
2839
|
+
const Ur = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
|
|
2840
2840
|
className: M(e, "humany-timestamp")
|
|
2841
|
-
},
|
|
2842
|
-
function
|
|
2843
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"),
|
|
2844
|
-
return t === "yyyy-mm-dd" ? u : t === "hh:mm" ?
|
|
2841
|
+
}, _r(n, t)), Ao = Ur, We = (e) => `0${e}`.slice(-2);
|
|
2842
|
+
function _r(e, t) {
|
|
2843
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), s = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], i = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${i}-${We(a)}-${We(l)}`;
|
|
2844
|
+
return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? s : `${u} ${s}`;
|
|
2845
2845
|
}
|
|
2846
|
-
const
|
|
2847
|
-
var a =
|
|
2848
|
-
const [l, u] =
|
|
2849
|
-
const { target:
|
|
2850
|
-
!m.current || !
|
|
2846
|
+
const qr = (i) => {
|
|
2847
|
+
var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, s = S(a, ["className", "children", "content", "sticky"]);
|
|
2848
|
+
const [l, u] = $(!1), c = R(Q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), C = (b) => {
|
|
2849
|
+
const { target: E } = b;
|
|
2850
|
+
!m.current || !E || m.current !== E && !m.current.contains(E) && u(!1);
|
|
2851
2851
|
};
|
|
2852
2852
|
v(() => {
|
|
2853
2853
|
if (!!o)
|
|
@@ -2855,28 +2855,28 @@ const Yr = (s) => {
|
|
|
2855
2855
|
window.removeEventListener("click", C);
|
|
2856
2856
|
};
|
|
2857
2857
|
}, [l, o]);
|
|
2858
|
-
const
|
|
2859
|
-
(b,
|
|
2860
|
-
f(b, m.current), u(
|
|
2858
|
+
const x = H(
|
|
2859
|
+
(b, E) => {
|
|
2860
|
+
f(b, m.current), u(E);
|
|
2861
2861
|
},
|
|
2862
2862
|
[f, u]
|
|
2863
2863
|
);
|
|
2864
|
-
return /* @__PURE__ */ r.createElement(
|
|
2864
|
+
return /* @__PURE__ */ r.createElement(Qr, {
|
|
2865
2865
|
ref: m,
|
|
2866
2866
|
className: "humany-tooltip-trigger",
|
|
2867
|
-
onMouseEnter: o ? void 0 : (b) =>
|
|
2868
|
-
onMouseLeave: o ? void 0 : (b) =>
|
|
2869
|
-
onTouchEnd: o ? (b) =>
|
|
2870
|
-
onClick: o ? (b) =>
|
|
2871
|
-
}, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
|
|
2867
|
+
onMouseEnter: o ? void 0 : (b) => x(b, !0),
|
|
2868
|
+
onMouseLeave: o ? void 0 : (b) => x(b, !1),
|
|
2869
|
+
onTouchEnd: o ? (b) => x(b, !l) : void 0,
|
|
2870
|
+
onClick: o ? (b) => x(b, !l) : void 0
|
|
2871
|
+
}, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(Gr, h({
|
|
2872
2872
|
className: M(e, "humany-tooltip-container"),
|
|
2873
|
-
x:
|
|
2873
|
+
x: p,
|
|
2874
2874
|
y: d
|
|
2875
|
-
},
|
|
2876
|
-
},
|
|
2875
|
+
}, s), n)));
|
|
2876
|
+
}, Qr = y.div`
|
|
2877
2877
|
display: flex;
|
|
2878
2878
|
align-items: center;
|
|
2879
|
-
`,
|
|
2879
|
+
`, Gr = y.div`
|
|
2880
2880
|
color: #ffffff;
|
|
2881
2881
|
background: #161616;
|
|
2882
2882
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2912,13 +2912,13 @@ const Yr = (s) => {
|
|
|
2912
2912
|
let t = "";
|
|
2913
2913
|
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;
|
|
2914
2914
|
}};
|
|
2915
|
-
`,
|
|
2915
|
+
`, Ko = qr, Jr = (e) => {
|
|
2916
2916
|
const {
|
|
2917
2917
|
in: t,
|
|
2918
2918
|
mountOnEnter: n = !0,
|
|
2919
2919
|
unmountOnExit: o = !0,
|
|
2920
|
-
timeout:
|
|
2921
|
-
children:
|
|
2920
|
+
timeout: s,
|
|
2921
|
+
children: i,
|
|
2922
2922
|
transitions: a
|
|
2923
2923
|
} = e, u = (() => {
|
|
2924
2924
|
var c, m;
|
|
@@ -2927,33 +2927,33 @@ const Yr = (s) => {
|
|
|
2927
2927
|
return {
|
|
2928
2928
|
enter: {
|
|
2929
2929
|
transitionKeys: a,
|
|
2930
|
-
duration:
|
|
2930
|
+
duration: s ? typeof s == "number" ? s : s.enter : 200,
|
|
2931
2931
|
easing: "ease-in"
|
|
2932
2932
|
},
|
|
2933
2933
|
exit: {
|
|
2934
2934
|
transitionKeys: a,
|
|
2935
|
-
duration:
|
|
2935
|
+
duration: s ? typeof s == "number" ? s : s.exit : 200,
|
|
2936
2936
|
easing: "ease-out"
|
|
2937
2937
|
}
|
|
2938
2938
|
};
|
|
2939
2939
|
if (typeof a == "object") {
|
|
2940
|
-
const { enter:
|
|
2940
|
+
const { enter: p, exit: d } = a;
|
|
2941
2941
|
return {
|
|
2942
2942
|
enter: {
|
|
2943
2943
|
transitionKeys: (c = a.enter) == null ? void 0 : c.type,
|
|
2944
|
-
duration:
|
|
2945
|
-
easing:
|
|
2944
|
+
duration: s ? typeof s == "number" ? s : s.enter : 200,
|
|
2945
|
+
easing: p.easing ? p.easing : "ease-in"
|
|
2946
2946
|
},
|
|
2947
2947
|
exit: {
|
|
2948
2948
|
transitionKeys: (m = a.enter) == null ? void 0 : m.type,
|
|
2949
|
-
duration:
|
|
2949
|
+
duration: s ? typeof s == "number" ? s : s.enter : 200,
|
|
2950
2950
|
easing: d.easing ? d.easing : "ease-out"
|
|
2951
2951
|
}
|
|
2952
2952
|
};
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
2955
|
})();
|
|
2956
|
-
return /* @__PURE__ */ r.createElement(
|
|
2956
|
+
return /* @__PURE__ */ r.createElement(vt, {
|
|
2957
2957
|
timeout: {
|
|
2958
2958
|
enter: u && u.enter.duration || 0,
|
|
2959
2959
|
exit: u && u.exit.duration || 0
|
|
@@ -2963,70 +2963,70 @@ const Yr = (s) => {
|
|
|
2963
2963
|
mountOnEnter: n,
|
|
2964
2964
|
unmountOnExit: o,
|
|
2965
2965
|
onEnter: (c) => c.clientHeight
|
|
2966
|
-
}, (c) =>
|
|
2967
|
-
},
|
|
2966
|
+
}, (c) => i && i(c, u && he.compose(c, u)));
|
|
2967
|
+
}, Yo = Jr, eo = N(
|
|
2968
2968
|
(l, a) => {
|
|
2969
2969
|
var u = l, { className: e, children: t, onClick: n = () => {
|
|
2970
|
-
}, widgetName: o, activationOptions:
|
|
2971
|
-
const c =
|
|
2970
|
+
}, widgetName: o, activationOptions: s } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
2971
|
+
const c = W(), m = () => {
|
|
2972
2972
|
const { implementation: f } = c.get("$widget");
|
|
2973
2973
|
return f.widgets.get(o);
|
|
2974
2974
|
};
|
|
2975
2975
|
v(() => {
|
|
2976
2976
|
const f = m();
|
|
2977
|
-
return f == null || f.activate(
|
|
2977
|
+
return f == null || f.activate(s).then(() => f.invoke("attach")), () => {
|
|
2978
2978
|
f == null || f.deactivate();
|
|
2979
2979
|
};
|
|
2980
2980
|
}, [o]);
|
|
2981
|
-
const
|
|
2982
|
-
const C = m(),
|
|
2981
|
+
const p = (f) => {
|
|
2982
|
+
const C = m(), x = f.currentTarget;
|
|
2983
2983
|
if (C) {
|
|
2984
2984
|
const b = () => {
|
|
2985
2985
|
C.invoke("renderState").then(
|
|
2986
|
-
(
|
|
2986
|
+
(E) => E === oe.open ? C.invoke("close") : C.invoke("open")
|
|
2987
2987
|
).then(() => {
|
|
2988
|
-
C.events.subscribeOnce("widget:area-rendered", (
|
|
2988
|
+
C.events.subscribeOnce("widget:area-rendered", (E, g) => {
|
|
2989
2989
|
c.get(
|
|
2990
2990
|
"widgetDOMElement"
|
|
2991
2991
|
) && C.events.dispatch("widget:modal-opened", {
|
|
2992
2992
|
name: C.name,
|
|
2993
|
-
ref:
|
|
2993
|
+
ref: x
|
|
2994
2994
|
});
|
|
2995
2995
|
});
|
|
2996
2996
|
});
|
|
2997
2997
|
};
|
|
2998
|
-
C.state ===
|
|
2998
|
+
C.state === mt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(b) : b();
|
|
2999
2999
|
}
|
|
3000
3000
|
}, d = (f) => {
|
|
3001
|
-
f.key === "Enter" && (f.preventDefault(),
|
|
3001
|
+
f.key === "Enter" && (f.preventDefault(), p(f));
|
|
3002
3002
|
};
|
|
3003
|
-
return /* @__PURE__ */ r.createElement(
|
|
3003
|
+
return /* @__PURE__ */ r.createElement(we, k(h({
|
|
3004
3004
|
className: M(e, "humany-widget-link"),
|
|
3005
3005
|
onKeyDown: d,
|
|
3006
3006
|
onClick: (f) => {
|
|
3007
|
-
n(f),
|
|
3007
|
+
n(f), p(f);
|
|
3008
3008
|
}
|
|
3009
|
-
},
|
|
3009
|
+
}, i), {
|
|
3010
3010
|
ref: a
|
|
3011
3011
|
}), t);
|
|
3012
3012
|
}
|
|
3013
|
-
),
|
|
3013
|
+
), jo = N(
|
|
3014
3014
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3015
|
-
const
|
|
3016
|
-
if (!
|
|
3015
|
+
const s = W(), i = se(() => {
|
|
3016
|
+
if (!s)
|
|
3017
3017
|
return null;
|
|
3018
|
-
const a =
|
|
3018
|
+
const a = s.get("widgetDOMElement");
|
|
3019
3019
|
return !a || !a.childElementCount ? null : a.children[0];
|
|
3020
|
-
}, [
|
|
3021
|
-
return
|
|
3020
|
+
}, [s]);
|
|
3021
|
+
return i ? /* @__PURE__ */ r.createElement(G, {
|
|
3022
3022
|
elementId: e,
|
|
3023
|
-
parent:
|
|
3024
|
-
}, /* @__PURE__ */ r.createElement(
|
|
3023
|
+
parent: i
|
|
3024
|
+
}, /* @__PURE__ */ r.createElement(to, {
|
|
3025
3025
|
className: M("humany-widget-overlay-outlet", t),
|
|
3026
3026
|
ref: o
|
|
3027
3027
|
}, n)) : null;
|
|
3028
3028
|
}
|
|
3029
|
-
),
|
|
3029
|
+
), to = y.div`
|
|
3030
3030
|
background-color: #ffffff;
|
|
3031
3031
|
position: absolute;
|
|
3032
3032
|
top: 0;
|
|
@@ -3036,101 +3036,101 @@ const Yr = (s) => {
|
|
|
3036
3036
|
z-index: 10;
|
|
3037
3037
|
width: 100%;
|
|
3038
3038
|
height: 100%;
|
|
3039
|
-
`,
|
|
3039
|
+
`, no = (e, t, n, o, s) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
|
|
3040
3040
|
t,
|
|
3041
|
-
|
|
3042
|
-
),
|
|
3043
|
-
}), t,
|
|
3041
|
+
ft(() => n)
|
|
3042
|
+
), yt(e, t, o || (() => {
|
|
3043
|
+
}), t, s))), Xo = no;
|
|
3044
3044
|
export {
|
|
3045
|
-
|
|
3045
|
+
Zt as AnchorLink,
|
|
3046
3046
|
ae as Button,
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3047
|
+
Co as Checkbox,
|
|
3048
|
+
Ft as ColumnContext,
|
|
3049
|
+
Pe as ComponentNodeContext,
|
|
3050
|
+
At as ComponentPropertyContext,
|
|
3051
|
+
Oo as Confirm,
|
|
3052
|
+
Pt as ContainerContext,
|
|
3053
|
+
Yt as ConversationContext,
|
|
3054
|
+
Xr as DateFormats,
|
|
3055
|
+
No as Drawer,
|
|
3056
|
+
Tn as DrawerAnimationType,
|
|
3057
|
+
Vo as Dropdown,
|
|
3058
|
+
Kn as Empty,
|
|
3059
|
+
Wo as Grid,
|
|
3060
|
+
Ue as Html,
|
|
3061
|
+
Un as Icon,
|
|
3062
|
+
Zo as Input,
|
|
3063
|
+
Qn as ItemList,
|
|
3064
|
+
Io as ItemTree,
|
|
3065
|
+
Dr as Lightbox,
|
|
3066
|
+
we as Link,
|
|
3067
|
+
_n as List,
|
|
3068
|
+
zr as Modal,
|
|
3069
|
+
Po as NotFound,
|
|
3070
|
+
_e as Overlay,
|
|
3071
|
+
qn as Paragraph,
|
|
3072
3072
|
G as Portal,
|
|
3073
|
-
|
|
3074
|
-
|
|
3073
|
+
Jn as RouteLink,
|
|
3074
|
+
Kt as RoutingContext,
|
|
3075
3075
|
Ve as StyledText,
|
|
3076
3076
|
J as SymbolBadge,
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3077
|
+
Fo as TabStop,
|
|
3078
|
+
Ee as Text,
|
|
3079
|
+
jr as TextLink,
|
|
3080
|
+
Ao as Timestamp,
|
|
3081
|
+
Ko as Tooltip,
|
|
3082
|
+
Yo as TransitionComponent,
|
|
3083
3083
|
q as Typography,
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3084
|
+
eo as WidgetLink,
|
|
3085
|
+
jo as WidgetOverlayOutlet,
|
|
3086
|
+
A as borderTabStyle,
|
|
3087
3087
|
Ne as browser,
|
|
3088
|
-
|
|
3088
|
+
xn as buttonCss,
|
|
3089
3089
|
je as contentBox,
|
|
3090
3090
|
V as convertToStringAttributes,
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3091
|
+
go as createEmptyComponent,
|
|
3092
|
+
Xo as createReactComponent,
|
|
3093
|
+
Vt as defaultRenderInstructions,
|
|
3094
|
+
Ht as embeddedLinkMapper,
|
|
3095
|
+
Dt as filterCssProps,
|
|
3096
|
+
Tt as filterCssPropsStyle,
|
|
3097
|
+
Bt as genericHashLink,
|
|
3098
|
+
zo as genericHtml,
|
|
3099
|
+
ie as headingElement,
|
|
3100
|
+
Nt as imageLightboxRenderer,
|
|
3101
|
+
To as invertedHoverButton,
|
|
3102
|
+
Bo as itemList,
|
|
3103
|
+
wn as linkTabStyle,
|
|
3104
|
+
$n as list,
|
|
3105
|
+
Do as paddedBorderTabStyle,
|
|
3106
3106
|
zt as processHtmlString,
|
|
3107
3107
|
he as transitionComposer,
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3108
|
+
yo as useAction,
|
|
3109
|
+
bo as useChildren,
|
|
3110
|
+
vo as useColumns,
|
|
3111
|
+
Eo as useComponent,
|
|
3112
3112
|
ye as useComponentDescriptor,
|
|
3113
3113
|
be as useComponentNode,
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3114
|
+
_ as useComponentPlatform,
|
|
3115
|
+
W as useContainer,
|
|
3116
|
+
nn as useContext,
|
|
3117
|
+
xo as useConversation,
|
|
3118
|
+
wo as useDispatch,
|
|
3119
3119
|
I as useEventListener,
|
|
3120
|
-
|
|
3120
|
+
an as useEvents,
|
|
3121
3121
|
O as useIsMounted,
|
|
3122
|
-
$
|
|
3122
|
+
$o as useIsTabbing,
|
|
3123
3123
|
X as useKeyPress,
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3124
|
+
ko as useLayout,
|
|
3125
|
+
Fe as usePrevious,
|
|
3126
|
+
Lo as useProperties,
|
|
3127
|
+
Mo as useRenderState,
|
|
3128
|
+
So as useRouteData,
|
|
3129
|
+
Ae as useRouter,
|
|
3130
3130
|
Ke as useScroll,
|
|
3131
|
-
|
|
3131
|
+
Ro as useSettings,
|
|
3132
3132
|
Ye as useToggle,
|
|
3133
|
-
|
|
3133
|
+
Ho as useTransitionEnd,
|
|
3134
3134
|
ve as useUniqueMenu,
|
|
3135
3135
|
ce as useWidgetEvent
|
|
3136
3136
|
};
|