@telia-ace/widget-ui 1.0.32-next.3 → 1.0.32
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/index.js +573 -587
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var st = Object.defineProperty, it = Object.defineProperties;
|
|
2
|
+
var at = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ne = Object.getOwnPropertySymbols;
|
|
4
|
+
var He = Object.prototype.hasOwnProperty, Te = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var me = (e, t, n) => t in e ? st(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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
He.call(t, n) && me(e, n, t[n]);
|
|
8
|
+
if (ne)
|
|
9
|
+
for (var n of ne(t))
|
|
10
|
+
Te.call(t, n) && me(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, k = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, k = (e, t) => it(e, at(t));
|
|
13
|
+
var S = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var o of
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
16
|
+
He.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && ne)
|
|
18
|
+
for (var o of ne(e))
|
|
19
|
+
t.indexOf(o) < 0 && Te.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { Container as
|
|
24
|
-
import r, { forwardRef as N, createContext as X, useContext as
|
|
25
|
-
import { ComponentPlatform as
|
|
26
|
-
import { css as L, keyframes as
|
|
22
|
+
var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
|
+
import { Container as ct, WidgetState as lt } from "@webprovisions/platform";
|
|
24
|
+
import r, { forwardRef as N, createContext as X, useContext as K, useState as $, useEffect as E, useRef as R, useCallback as T, useImperativeHandle as Ce, useMemo as se, Component as ut, lazy as mt } from "react";
|
|
25
|
+
import { ComponentPlatform as dt, asDescriptor as ft, createEventSubscriber as ht, ComponentQuery as pt, WidgetRenderState as oe, extendComponent as gt } from "@telia-ace/widget-core";
|
|
26
|
+
import { css as L, keyframes as Ze } from "@emotion/react";
|
|
27
27
|
import y from "@emotion/styled";
|
|
28
|
-
import { kebabCase as
|
|
29
|
-
import { CSSTransition as
|
|
30
|
-
import { createPortal as
|
|
31
|
-
import { HistoryMode as
|
|
32
|
-
import { Link as
|
|
33
|
-
import
|
|
34
|
-
const
|
|
28
|
+
import { kebabCase as Ct, appendClassNames as M, uuid as q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
|
|
29
|
+
import { CSSTransition as Ie, Transition as yt } from "react-transition-group";
|
|
30
|
+
import { createPortal as bt } from "react-dom";
|
|
31
|
+
import { HistoryMode as Be, getSpecificWidgetPath as vt } from "@telia-ace/widget-routing";
|
|
32
|
+
import { Link as fe } from "react-router-dom";
|
|
33
|
+
import ze from "htmr";
|
|
34
|
+
const Et = (e) => e === "entering" || e === "entered", xt = (e) => e === "exiting" || e === "exited", A = {
|
|
35
35
|
fade: {
|
|
36
36
|
in: "opacity: 1;",
|
|
37
37
|
out: "opacity: 0;"
|
|
@@ -56,29 +56,29 @@ const $t = (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
|
+
}, wt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
|
|
60
60
|
compose: (e = "exited", t) => {
|
|
61
|
-
const { enter: n, exit: o } = t, s = n.transitionKeys.split(" "), i =
|
|
62
|
-
if (
|
|
61
|
+
const { enter: n, exit: o } = t, s = n.transitionKeys.split(" "), i = wt.indexOf(s[0]) > -1 ? "transform" : "opacity";
|
|
62
|
+
if (Et(e))
|
|
63
63
|
return s && s.length > 0 ? L`
|
|
64
|
-
${s && s.length > 0 && s.map((l) =>
|
|
64
|
+
${s && s.length > 0 && s.map((l) => A[l] ? A[l].in : "")}
|
|
65
65
|
transition: ${i} ${n.duration}ms ${n.easing};
|
|
66
66
|
` : "";
|
|
67
67
|
const a = s && s.length > 0 && L`
|
|
68
|
-
${s.map((l) =>
|
|
68
|
+
${s.map((l) => A[l] ? A[l].out : "")}
|
|
69
69
|
`;
|
|
70
|
-
if (
|
|
70
|
+
if (xt(e)) {
|
|
71
71
|
const l = o.transitionKeys.split(" ");
|
|
72
72
|
return l && l.length > 0 && e === "exiting" ? L`
|
|
73
73
|
${a};
|
|
74
|
-
${l.map((u) =>
|
|
74
|
+
${l.map((u) => A[u] ? A[u].out : "")}
|
|
75
75
|
transition: ${i} ${o.duration}ms ${o.easing};
|
|
76
76
|
` : a;
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
composeViewTransition: (e, t, n) => {
|
|
80
80
|
if (t === "slide")
|
|
81
|
-
return
|
|
81
|
+
return he.compose(e, {
|
|
82
82
|
enter: {
|
|
83
83
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
84
84
|
duration: 500
|
|
@@ -89,7 +89,7 @@ const $t = (e) => e === "entering" || e === "entered", kt = (e) => e === "exitin
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
if (t === "fade")
|
|
92
|
-
return
|
|
92
|
+
return he.compose(e, {
|
|
93
93
|
enter: {
|
|
94
94
|
transitionKeys: "fade",
|
|
95
95
|
duration: 500
|
|
@@ -100,10 +100,10 @@ const $t = (e) => e === "entering" || e === "entered", kt = (e) => e === "exitin
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
|
-
get: (e) =>
|
|
103
|
+
get: (e) => A[e]
|
|
104
104
|
};
|
|
105
|
-
var
|
|
106
|
-
const
|
|
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
|
+
const Ne = () => {
|
|
107
107
|
const {
|
|
108
108
|
opr: e,
|
|
109
109
|
opera: t,
|
|
@@ -134,42 +134,42 @@ const We = () => {
|
|
|
134
134
|
return "edge-chromium";
|
|
135
135
|
if ((d || c) && !!u)
|
|
136
136
|
return "blink";
|
|
137
|
-
},
|
|
137
|
+
}, $t = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
|
|
138
138
|
const o = typeof e[n] == "undefined" ? "" : e[n], s = typeof o;
|
|
139
|
-
if (
|
|
139
|
+
if ($t.indexOf(s) > -1) {
|
|
140
140
|
const i = n.substring(0, 5);
|
|
141
|
-
i === "data-" || i === "aria-" ? t[
|
|
141
|
+
i === "data-" || i === "aria-" ? t[Ct(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 s = o, { children: t } = s, n =
|
|
145
|
+
}, {}), kt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(Fn, h({}, t)) : null, ho = kt, Lt = (e) => new RegExp("^#", "i").test(e), Mt = (e) => (o) => {
|
|
146
|
+
var s = o, { children: t } = s, n = S(s, ["children"]);
|
|
147
147
|
const {
|
|
148
148
|
implementation: i,
|
|
149
149
|
name: a
|
|
150
150
|
} = e.get("$widget"), { href: l = "" } = n;
|
|
151
|
-
if (
|
|
152
|
-
return /* @__PURE__ */ r.createElement(
|
|
151
|
+
if (Lt(l))
|
|
152
|
+
return /* @__PURE__ */ r.createElement(Vt, { smooth: !0, to: l }, t);
|
|
153
153
|
const u = i.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
|
|
154
154
|
if (m && m.length >= 4) {
|
|
155
155
|
const p = m[4];
|
|
156
156
|
if (i.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
|
|
157
|
-
return /* @__PURE__ */ r.createElement(
|
|
157
|
+
return /* @__PURE__ */ r.createElement(Gr, { widgetName: p }, t);
|
|
158
158
|
}
|
|
159
159
|
return /* @__PURE__ */ r.createElement("a", h({}, n), t);
|
|
160
|
-
},
|
|
160
|
+
}, St = Mt, Oe = (e) => {
|
|
161
161
|
const t = {};
|
|
162
162
|
return Object.keys(e).forEach((n) => {
|
|
163
163
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
164
164
|
}), t;
|
|
165
|
-
},
|
|
165
|
+
}, Rt = (e) => {
|
|
166
166
|
let t = "";
|
|
167
|
-
return Object.keys(
|
|
167
|
+
return Object.keys(Oe(e)).forEach((n) => {
|
|
168
168
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
169
169
|
}), L`
|
|
170
170
|
${t}
|
|
171
171
|
`;
|
|
172
|
-
},
|
|
172
|
+
}, Ht = Oe, Tt = (e, t) => {
|
|
173
173
|
let n = "";
|
|
174
174
|
const o = () => {
|
|
175
175
|
n = "";
|
|
@@ -178,9 +178,9 @@ const We = () => {
|
|
|
178
178
|
return d !== null ? (p(d), o(), !0) : !1;
|
|
179
179
|
}, i = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && s(
|
|
180
180
|
e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
|
|
181
|
-
), !1), m = e, { scroll: a, smooth: l, to: u } = m, c =
|
|
181
|
+
), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
|
|
182
182
|
return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, k(h({}, c), { onClick: i }), e.children);
|
|
183
|
-
},
|
|
183
|
+
}, ie = (e) => (t, n) => {
|
|
184
184
|
let o = t, s = "";
|
|
185
185
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
186
186
|
o = t;
|
|
@@ -199,18 +199,18 @@ const We = () => {
|
|
|
199
199
|
}
|
|
200
200
|
`;
|
|
201
201
|
};
|
|
202
|
-
function
|
|
203
|
-
return t ?
|
|
202
|
+
function Dt(e, t) {
|
|
203
|
+
return t ? ze(e, t) : ze(e);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Hr, { attrs: t, htmlBody: e }), zt = (e, t) => ({
|
|
206
206
|
transform: {
|
|
207
|
-
a:
|
|
208
|
-
img:
|
|
207
|
+
a: St(e),
|
|
208
|
+
img: Bt(t)
|
|
209
209
|
}
|
|
210
|
-
}),
|
|
211
|
-
var i = s, { className: e, children: t } = i, n =
|
|
210
|
+
}), Nt = (e) => Tt(e, "a"), Vt = Nt, ae = N((s, o) => {
|
|
211
|
+
var i = s, { className: e, children: t } = i, n = S(i, ["className", "children"]);
|
|
212
212
|
return /* @__PURE__ */ r.createElement(
|
|
213
|
-
|
|
213
|
+
Wt,
|
|
214
214
|
k(h({
|
|
215
215
|
type: "button",
|
|
216
216
|
className: M(e, "humany-button")
|
|
@@ -219,7 +219,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
219
219
|
}),
|
|
220
220
|
t
|
|
221
221
|
);
|
|
222
|
-
}),
|
|
222
|
+
}), Wt = y.button`
|
|
223
223
|
-webkit-appearance: button;
|
|
224
224
|
text-transform: none;
|
|
225
225
|
overflow: visible;
|
|
@@ -232,14 +232,14 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
232
232
|
line-height: normal;
|
|
233
233
|
margin: 0;
|
|
234
234
|
padding: 0;
|
|
235
|
-
`,
|
|
235
|
+
`, Zt = (s) => {
|
|
236
236
|
var i = s, {
|
|
237
237
|
onChange: e = () => {
|
|
238
238
|
},
|
|
239
239
|
onEnter: t = () => {
|
|
240
240
|
},
|
|
241
241
|
className: n
|
|
242
|
-
} = i, o =
|
|
242
|
+
} = i, o = S(i, [
|
|
243
243
|
"onChange",
|
|
244
244
|
"onEnter",
|
|
245
245
|
"className"
|
|
@@ -254,53 +254,53 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
254
254
|
onChange: (a) => e(a.target.value, a.currentTarget.checked)
|
|
255
255
|
}, V(o))
|
|
256
256
|
);
|
|
257
|
-
},
|
|
257
|
+
}, po = Zt, It = X(new ct()), Ot = X(1), Pe = X({
|
|
258
258
|
id: "",
|
|
259
259
|
type: "",
|
|
260
260
|
name: "",
|
|
261
261
|
branch: ""
|
|
262
|
-
}),
|
|
263
|
-
const n =
|
|
262
|
+
}), Pt = X({}), Ft = X(null), At = X(null), Kt = () => K(Pe), ye = Kt, jt = () => K(It), W = jt, Yt = (e, t) => {
|
|
263
|
+
const n = ye().id, o = W();
|
|
264
264
|
return (s, i) => {
|
|
265
265
|
(t || o).getAsync("actionResolver").then((a) => {
|
|
266
266
|
a.action(e || n, s, i);
|
|
267
267
|
});
|
|
268
268
|
};
|
|
269
|
-
},
|
|
270
|
-
const t =
|
|
271
|
-
return
|
|
269
|
+
}, go = Yt, Xt = (e) => {
|
|
270
|
+
const t = K(Pe), n = U(), [o, s] = $();
|
|
271
|
+
return E(() => {
|
|
272
272
|
if ((e || t.id) && n) {
|
|
273
273
|
const i = n.nodes.get(e || t.id);
|
|
274
274
|
s(i);
|
|
275
275
|
}
|
|
276
276
|
}, [e, t.id, n]), o;
|
|
277
|
-
},
|
|
278
|
-
const e =
|
|
279
|
-
return
|
|
277
|
+
}, be = Xt, Ut = () => {
|
|
278
|
+
const e = R(!1);
|
|
279
|
+
return E(() => (e.current = !0, () => {
|
|
280
280
|
e.current = !1;
|
|
281
281
|
}), []), e;
|
|
282
|
-
}, O =
|
|
282
|
+
}, O = Ut, _t = (e) => {
|
|
283
283
|
const t = W(), [n, o] = $(null), s = O();
|
|
284
|
-
return
|
|
285
|
-
|
|
284
|
+
return E(() => {
|
|
285
|
+
dt.getInstance(e || t).then((i) => {
|
|
286
286
|
s.current && o(i);
|
|
287
287
|
});
|
|
288
288
|
}, [s]), n;
|
|
289
|
-
}, U =
|
|
290
|
-
const e =
|
|
289
|
+
}, U = _t, qt = () => {
|
|
290
|
+
const e = be(), t = U(), [n, o] = $([]), s = O(), i = T(
|
|
291
291
|
(a) => {
|
|
292
292
|
if (t && s.current && a) {
|
|
293
|
-
const l = t.getBranch(a), u = a.getChildren(l).map((c) =>
|
|
293
|
+
const l = t.getBranch(a), u = a.getChildren(l).map((c) => ft(c));
|
|
294
294
|
o(u);
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
297
|
[s, t, o, e]
|
|
298
298
|
);
|
|
299
|
-
return
|
|
299
|
+
return E(() => {
|
|
300
300
|
e && i(e);
|
|
301
|
-
}, [e, t]),
|
|
301
|
+
}, [e, t]), E(() => {
|
|
302
302
|
if (t) {
|
|
303
|
-
const [a, l] =
|
|
303
|
+
const [a, l] = ht(t.events);
|
|
304
304
|
return a("components:set-layout", (u, c) => {
|
|
305
305
|
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
306
306
|
}), a("components:node-appended", (u, c) => {
|
|
@@ -312,9 +312,9 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
}, [e, t, i]), n;
|
|
315
|
-
},
|
|
316
|
-
const n =
|
|
317
|
-
return
|
|
315
|
+
}, Co = qt, Qt = () => K(Ot), yo = Qt, Gt = (e, t) => {
|
|
316
|
+
const n = ye(), o = W(), [s, i] = $(void 0), a = O(), l = e || n.type || "";
|
|
317
|
+
return E(() => {
|
|
318
318
|
if (l) {
|
|
319
319
|
let u;
|
|
320
320
|
return (t || o).getAsync("componentResolver").then((c) => {
|
|
@@ -330,11 +330,11 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
}, [a, l, t, o]), s;
|
|
333
|
-
},
|
|
334
|
-
const t =
|
|
335
|
-
return
|
|
333
|
+
}, bo = Gt, Jt = (e) => {
|
|
334
|
+
const t = be(e), n = U(), [o, s] = $({}), i = O();
|
|
335
|
+
return E(() => {
|
|
336
336
|
t && i.current && s(t.attributes.context);
|
|
337
|
-
}, [i, t]),
|
|
337
|
+
}, [i, t]), E(() => {
|
|
338
338
|
if (n) {
|
|
339
339
|
const a = n.events.subscribe(
|
|
340
340
|
"components:context-changed",
|
|
@@ -347,11 +347,11 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
349
|
}, [i, n, t]), o;
|
|
350
|
-
},
|
|
351
|
-
const e = U(), t =
|
|
352
|
-
return
|
|
350
|
+
}, en = Jt, tn = () => K(At), vo = tn, nn = () => {
|
|
351
|
+
const e = U(), t = ye(), [n, o] = $([]), [s, i] = $();
|
|
352
|
+
return E(() => {
|
|
353
353
|
if (e && t) {
|
|
354
|
-
const a = new
|
|
354
|
+
const a = new pt(e).withId(t.id), l = e.actions(a, t.type || q());
|
|
355
355
|
i(l), n !== null && (n.forEach((u) => {
|
|
356
356
|
l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
|
|
357
357
|
}), o(null));
|
|
@@ -364,12 +364,12 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
364
364
|
reject: c
|
|
365
365
|
});
|
|
366
366
|
}) : s.dispatch(a, l);
|
|
367
|
-
},
|
|
368
|
-
const s =
|
|
367
|
+
}, Eo = nn, I = (e, t, n = window, o = () => !0) => {
|
|
368
|
+
const s = R(() => {
|
|
369
369
|
});
|
|
370
|
-
|
|
370
|
+
E(() => {
|
|
371
371
|
s.current = t;
|
|
372
|
-
}, [t]),
|
|
372
|
+
}, [t]), E(() => {
|
|
373
373
|
if (!(n && o()))
|
|
374
374
|
return;
|
|
375
375
|
const a = (l) => s.current(l);
|
|
@@ -377,12 +377,12 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
377
377
|
n.removeEventListener(e, a);
|
|
378
378
|
};
|
|
379
379
|
}, [e, n]);
|
|
380
|
-
},
|
|
380
|
+
}, rn = (e) => {
|
|
381
381
|
const t = W(), { events: n } = (e || t).get("$widget");
|
|
382
382
|
return n;
|
|
383
|
-
},
|
|
383
|
+
}, on = rn, sn = () => {
|
|
384
384
|
const [e, t] = $(!1);
|
|
385
|
-
return
|
|
385
|
+
return E(() => {
|
|
386
386
|
const n = () => {
|
|
387
387
|
t(!1);
|
|
388
388
|
}, o = (s) => {
|
|
@@ -392,7 +392,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
392
392
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
393
393
|
};
|
|
394
394
|
}, []), e;
|
|
395
|
-
},
|
|
395
|
+
}, xo = sn, an = (e, t) => {
|
|
396
396
|
const [n, o] = $(!1), s = T(
|
|
397
397
|
(a) => {
|
|
398
398
|
const { key: l } = a;
|
|
@@ -406,11 +406,11 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
406
406
|
[o]
|
|
407
407
|
);
|
|
408
408
|
return I("keydown", s, window), I("keyup", i, window), n;
|
|
409
|
-
}, Y =
|
|
410
|
-
const t =
|
|
411
|
-
return
|
|
409
|
+
}, Y = an, cn = (e) => {
|
|
410
|
+
const t = be(e), n = U(), [o, s] = $({}), i = O();
|
|
411
|
+
return E(() => {
|
|
412
412
|
t && i.current && s(t.attributes.layout);
|
|
413
|
-
}, [t, i]),
|
|
413
|
+
}, [t, i]), E(() => {
|
|
414
414
|
if (n) {
|
|
415
415
|
const a = n.events.subscribe(
|
|
416
416
|
"components:layout-changed",
|
|
@@ -423,14 +423,14 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
425
|
}, [n, i, t]), o;
|
|
426
|
-
},
|
|
427
|
-
const t =
|
|
428
|
-
return
|
|
426
|
+
}, wo = cn, ln = (e) => {
|
|
427
|
+
const t = R();
|
|
428
|
+
return E(() => {
|
|
429
429
|
t.current = e;
|
|
430
430
|
}), t.current;
|
|
431
|
-
},
|
|
431
|
+
}, Fe = ln, un = () => K(Pt), $o = un, mn = (e) => {
|
|
432
432
|
const [t, n] = $(), o = W(), s = O();
|
|
433
|
-
return
|
|
433
|
+
return E(() => {
|
|
434
434
|
let i;
|
|
435
435
|
const a = (e || o).get("$widget");
|
|
436
436
|
if (!a)
|
|
@@ -444,20 +444,20 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
444
444
|
case "close":
|
|
445
445
|
case "open":
|
|
446
446
|
s.current && n(
|
|
447
|
-
p === "open" ?
|
|
447
|
+
p === "open" ? oe.open : oe.closed
|
|
448
448
|
);
|
|
449
449
|
break;
|
|
450
450
|
case "hide":
|
|
451
|
-
s.current && n(
|
|
451
|
+
s.current && n(oe.hidden);
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
}), () => {
|
|
455
455
|
i && i();
|
|
456
456
|
};
|
|
457
457
|
}, [s]), t;
|
|
458
|
-
},
|
|
459
|
-
const t = W(), n =
|
|
460
|
-
return
|
|
458
|
+
}, ko = mn, dn = () => K(Ft), Ae = dn, fn = (e) => {
|
|
459
|
+
const t = W(), n = Ae(), [o, s] = $({ name: "", params: {} }), i = O();
|
|
460
|
+
return E(() => {
|
|
461
461
|
const a = (e || t).get("$widget");
|
|
462
462
|
if (!a)
|
|
463
463
|
return;
|
|
@@ -465,17 +465,17 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
465
465
|
return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
|
|
466
466
|
if (i.current) {
|
|
467
467
|
const { name: p, params: d } = m;
|
|
468
|
-
|
|
468
|
+
De(d), s({ name: p, params: d });
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
|
-
}, [i, e, t]),
|
|
471
|
+
}, [i, e, t]), E(() => {
|
|
472
472
|
if (n && n.history && i.current) {
|
|
473
473
|
const a = n.getRouteData(), { name: l, params: u } = a;
|
|
474
|
-
|
|
474
|
+
De(u), s({ name: l, params: u });
|
|
475
475
|
}
|
|
476
476
|
}, [n, i]), o;
|
|
477
|
-
},
|
|
478
|
-
const t =
|
|
477
|
+
}, Lo = fn, Ke = (e) => {
|
|
478
|
+
const t = R(), n = R(0);
|
|
479
479
|
let o;
|
|
480
480
|
const s = T(() => {
|
|
481
481
|
var c;
|
|
@@ -500,9 +500,9 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
500
500
|
},
|
|
501
501
|
[t, n]
|
|
502
502
|
);
|
|
503
|
-
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 ? [
|
|
504
|
-
},
|
|
505
|
-
overflow-y: ${
|
|
503
|
+
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 ? [hn, t] : ["", t];
|
|
504
|
+
}, hn = `
|
|
505
|
+
overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
|
|
506
506
|
overflow-x: hidden;
|
|
507
507
|
-ms-overflow-style: none; /* IE 10+ */
|
|
508
508
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -529,21 +529,21 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
529
529
|
background-color: #7F7F7F;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
`,
|
|
532
|
+
`, pn = () => {
|
|
533
533
|
const [e, t] = $(null), n = W(), o = O();
|
|
534
|
-
return
|
|
534
|
+
return E(() => {
|
|
535
535
|
n.get("settings").then((s) => {
|
|
536
536
|
o.current && t(s);
|
|
537
537
|
});
|
|
538
538
|
}, [o]), e;
|
|
539
|
-
},
|
|
539
|
+
}, Mo = pn, gn = (e = !1) => {
|
|
540
540
|
const [t, n] = $(e), o = T((s) => {
|
|
541
541
|
n(typeof s == "boolean" ? s : (i) => !i);
|
|
542
542
|
}, []);
|
|
543
543
|
return [t, o];
|
|
544
|
-
},
|
|
544
|
+
}, je = gn, So = (e) => {
|
|
545
545
|
const t = W(), n = U(), o = t.get("widgetDOMElement"), [s, i] = $(null), [a, l] = $(null), u = O();
|
|
546
|
-
|
|
546
|
+
E(() => {
|
|
547
547
|
if (n && u.current) {
|
|
548
548
|
const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
|
|
549
549
|
if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
|
|
@@ -563,9 +563,9 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
563
563
|
[e, u, s, a]
|
|
564
564
|
);
|
|
565
565
|
I("transitionend", c, s), I("transitionend", c, a);
|
|
566
|
-
},
|
|
567
|
-
const s =
|
|
568
|
-
return
|
|
566
|
+
}, Cn = (e, t, n = [], o) => {
|
|
567
|
+
const s = on(o);
|
|
568
|
+
return E(() => {
|
|
569
569
|
if (s) {
|
|
570
570
|
const i = s.subscribe(e, t);
|
|
571
571
|
return () => {
|
|
@@ -573,13 +573,13 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
575
|
}, [s].concat(n)), (i) => s == null ? void 0 : s.dispatch(e, i);
|
|
576
|
-
},
|
|
577
|
-
const n =
|
|
576
|
+
}, ce = Cn, yn = (e, t) => {
|
|
577
|
+
const n = ce("widget:menu-toggled", (o, s) => {
|
|
578
578
|
s !== e && t();
|
|
579
579
|
});
|
|
580
580
|
return () => n(e);
|
|
581
|
-
},
|
|
582
|
-
var s = o, { className: e, children: t } = s, n =
|
|
581
|
+
}, ve = yn, bn = (o) => {
|
|
582
|
+
var s = o, { className: e, children: t } = s, n = S(s, ["className", "children"]);
|
|
583
583
|
return /* @__PURE__ */ r.createElement(
|
|
584
584
|
"span",
|
|
585
585
|
h({
|
|
@@ -587,7 +587,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
587
587
|
}, V(n)),
|
|
588
588
|
t
|
|
589
589
|
);
|
|
590
|
-
},
|
|
590
|
+
}, Ee = bn, Ye = (e) => L`
|
|
591
591
|
display: flex;
|
|
592
592
|
justify-content: center;
|
|
593
593
|
flex-direction: column;
|
|
@@ -596,7 +596,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
596
596
|
border: ${e.theme.border};
|
|
597
597
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
598
598
|
${e["data-loading"] && "min-height: 150px;"}
|
|
599
|
-
`,
|
|
599
|
+
`, vn = (e) => {
|
|
600
600
|
var t, n, o;
|
|
601
601
|
return L`
|
|
602
602
|
cursor: pointer;
|
|
@@ -608,11 +608,11 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
608
608
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
609
609
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
610
610
|
`;
|
|
611
|
-
},
|
|
611
|
+
}, Ro = (e) => {
|
|
612
612
|
var a;
|
|
613
613
|
const { primaryColor: t, secondaryColor: n, active: o, theme: s, disabled: i } = e;
|
|
614
614
|
return L`
|
|
615
|
-
${
|
|
615
|
+
${vn(e)}
|
|
616
616
|
border: 1px solid ${o ? n : t};
|
|
617
617
|
background-color: ${o ? t : n};
|
|
618
618
|
|
|
@@ -642,27 +642,27 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
&:focus-visible {
|
|
645
|
-
${
|
|
645
|
+
${F(e)};
|
|
646
646
|
}
|
|
647
647
|
`}
|
|
648
648
|
`;
|
|
649
|
-
},
|
|
649
|
+
}, F = (e) => {
|
|
650
650
|
var t, n, o;
|
|
651
651
|
return L`
|
|
652
652
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
653
653
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
654
654
|
border-color: transparent;
|
|
655
655
|
`;
|
|
656
|
-
},
|
|
657
|
-
${
|
|
656
|
+
}, En = (e) => L`
|
|
657
|
+
${F(e)}
|
|
658
658
|
text-decoration: underline;
|
|
659
|
-
`,
|
|
659
|
+
`, Ho = (e) => {
|
|
660
660
|
var t;
|
|
661
661
|
return L`
|
|
662
|
-
${
|
|
662
|
+
${F(e)}
|
|
663
663
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
664
664
|
`;
|
|
665
|
-
},
|
|
665
|
+
}, xe = y(ae)`
|
|
666
666
|
position: absolute;
|
|
667
667
|
top: ${(e) => {
|
|
668
668
|
var t;
|
|
@@ -682,7 +682,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
&:focus-visible {
|
|
685
|
-
${
|
|
685
|
+
${F}
|
|
686
686
|
padding: ${(e) => {
|
|
687
687
|
var t;
|
|
688
688
|
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
@@ -690,7 +690,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
690
690
|
height: 15px;
|
|
691
691
|
box-sizing: content-box;
|
|
692
692
|
}
|
|
693
|
-
`,
|
|
693
|
+
`, Ve = y(Ee)`
|
|
694
694
|
font-size: ${(e) => {
|
|
695
695
|
var t;
|
|
696
696
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -701,7 +701,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
701
701
|
var t;
|
|
702
702
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
703
703
|
}};
|
|
704
|
-
`,
|
|
704
|
+
`, xn = (e) => {
|
|
705
705
|
var t;
|
|
706
706
|
return L`
|
|
707
707
|
padding: 0;
|
|
@@ -723,11 +723,11 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
723
723
|
margin: 0;
|
|
724
724
|
}
|
|
725
725
|
`;
|
|
726
|
-
},
|
|
726
|
+
}, To = (e) => {
|
|
727
727
|
var t, n, o, s;
|
|
728
728
|
return L`
|
|
729
729
|
> div {
|
|
730
|
-
${
|
|
730
|
+
${ie(e)(
|
|
731
731
|
"> h1",
|
|
732
732
|
L`
|
|
733
733
|
margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
@@ -739,9 +739,9 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
739
739
|
)}
|
|
740
740
|
}
|
|
741
741
|
> ul {
|
|
742
|
-
${
|
|
742
|
+
${xn(e)}
|
|
743
743
|
}
|
|
744
|
-
${
|
|
744
|
+
${ie(e)(
|
|
745
745
|
"h1",
|
|
746
746
|
L`
|
|
747
747
|
display: flex;
|
|
@@ -759,7 +759,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
759
759
|
`
|
|
760
760
|
)}
|
|
761
761
|
`;
|
|
762
|
-
},
|
|
762
|
+
}, Do = (e) => {
|
|
763
763
|
var t, n, o, s, i, a;
|
|
764
764
|
return L`
|
|
765
765
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
@@ -788,7 +788,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
788
788
|
a {
|
|
789
789
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
790
790
|
&:focus-visible {
|
|
791
|
-
${
|
|
791
|
+
${En(e)};
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
|
|
@@ -814,7 +814,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
814
814
|
margin: 0;
|
|
815
815
|
}
|
|
816
816
|
`;
|
|
817
|
-
},
|
|
817
|
+
}, wn = ({
|
|
818
818
|
elementId: e = "humany-portal-elements",
|
|
819
819
|
parent: t = document.body,
|
|
820
820
|
children: n
|
|
@@ -823,10 +823,10 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
823
823
|
const s = document.getElementById(e) || document.createElement("div");
|
|
824
824
|
return s.id = e, s;
|
|
825
825
|
});
|
|
826
|
-
return
|
|
826
|
+
return E(() => (t.appendChild(o), () => {
|
|
827
827
|
o.childElementCount <= 1 && o.remove();
|
|
828
|
-
}), [o]),
|
|
829
|
-
},
|
|
828
|
+
}), [o]), bt(n, o);
|
|
829
|
+
}, Q = wn, $n = (l) => {
|
|
830
830
|
var u = l, {
|
|
831
831
|
text: e = "",
|
|
832
832
|
backgroundSize: t = "contain",
|
|
@@ -837,7 +837,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
837
837
|
},
|
|
838
838
|
elementStyle: s = {},
|
|
839
839
|
className: i
|
|
840
|
-
} = u, a =
|
|
840
|
+
} = u, a = S(u, [
|
|
841
841
|
"text",
|
|
842
842
|
"backgroundSize",
|
|
843
843
|
"size",
|
|
@@ -923,7 +923,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
923
923
|
case "caret-left":
|
|
924
924
|
return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" }));
|
|
925
925
|
case "caret-up":
|
|
926
|
-
return /* @__PURE__ */ r.createElement(
|
|
926
|
+
return /* @__PURE__ */ r.createElement(kn, h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
927
927
|
case "caret-down":
|
|
928
928
|
return /* @__PURE__ */ r.createElement("svg", h({ viewBox: "0 0 14 14", style: f }, d), /* @__PURE__ */ r.createElement("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }), /* @__PURE__ */ r.createElement("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" }));
|
|
929
929
|
case "back":
|
|
@@ -1309,7 +1309,7 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
1309
1309
|
}
|
|
1310
1310
|
case "FontAwesome":
|
|
1311
1311
|
return /* @__PURE__ */ r.createElement(
|
|
1312
|
-
|
|
1312
|
+
Yn,
|
|
1313
1313
|
h({
|
|
1314
1314
|
className: i,
|
|
1315
1315
|
faIcon: m,
|
|
@@ -1327,9 +1327,9 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
1327
1327
|
e.substring(0, 2)
|
|
1328
1328
|
) : null;
|
|
1329
1329
|
}
|
|
1330
|
-
},
|
|
1330
|
+
}, kn = y.svg`
|
|
1331
1331
|
transform: rotate(180deg);
|
|
1332
|
-
`,
|
|
1332
|
+
`, G = $n, Ln = {
|
|
1333
1333
|
h1: "h1",
|
|
1334
1334
|
h2: "h2",
|
|
1335
1335
|
h3: "h3",
|
|
@@ -1338,12 +1338,12 @@ const Vt = (e) => (t) => /* @__PURE__ */ r.createElement(Br, { attrs: t, htmlBod
|
|
|
1338
1338
|
h6: "h6",
|
|
1339
1339
|
p: "p",
|
|
1340
1340
|
span: "span"
|
|
1341
|
-
},
|
|
1342
|
-
const { typographyVariantMapping: s = {} } =
|
|
1343
|
-
return /* @__PURE__ */ r.createElement(
|
|
1344
|
-
},
|
|
1345
|
-
var
|
|
1346
|
-
const
|
|
1341
|
+
}, Mn = ({ variant: e, component: t, className: n, children: o }) => {
|
|
1342
|
+
const { typographyVariantMapping: s = {} } = en(), i = h(h({}, Ln), s), a = t || i[e] || "span";
|
|
1343
|
+
return /* @__PURE__ */ r.createElement(Sn, { className: n, as: a }, o);
|
|
1344
|
+
}, Sn = y.span``, _ = Mn;
|
|
1345
|
+
var Rn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Rn || {});
|
|
1346
|
+
const Hn = 300, Tn = ({
|
|
1347
1347
|
className: e,
|
|
1348
1348
|
children: t,
|
|
1349
1349
|
header: n,
|
|
@@ -1355,32 +1355,32 @@ const Bn = 300, zn = ({
|
|
|
1355
1355
|
type: "slide-in-bottom"
|
|
1356
1356
|
}
|
|
1357
1357
|
}) => {
|
|
1358
|
-
const { duration: u =
|
|
1359
|
-
|
|
1358
|
+
const { duration: u = Hn } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, C] = je(), x = Fe(f), v = R(q());
|
|
1359
|
+
E(() => {
|
|
1360
1360
|
o && o(f);
|
|
1361
1361
|
}, [f]);
|
|
1362
1362
|
const b = Y("Escape");
|
|
1363
|
-
|
|
1363
|
+
E(() => {
|
|
1364
1364
|
b && C(!1);
|
|
1365
1365
|
}, [b]), I(
|
|
1366
1366
|
"click",
|
|
1367
1367
|
(B) => {
|
|
1368
|
-
const { target:
|
|
1369
|
-
!m.current || !d.current || !
|
|
1368
|
+
const { target: D } = B;
|
|
1369
|
+
!m.current || !d.current || !D || m.current !== D && d.current !== D && !d.current.contains(D) && !m.current.contains(D) && C(!1);
|
|
1370
1370
|
},
|
|
1371
1371
|
window
|
|
1372
1372
|
);
|
|
1373
|
-
const g =
|
|
1373
|
+
const g = ve(v.current, () => {
|
|
1374
1374
|
C(!1);
|
|
1375
1375
|
});
|
|
1376
|
-
|
|
1376
|
+
ce("router:changed", () => {
|
|
1377
1377
|
C(!1);
|
|
1378
|
-
}),
|
|
1378
|
+
}), E(() => {
|
|
1379
1379
|
f && c.current ? c.current.focus() : !f && m.current && x && m.current.focus();
|
|
1380
1380
|
}, [f, c.current, m.current]);
|
|
1381
|
-
const H =
|
|
1381
|
+
const H = Wn[l.type];
|
|
1382
1382
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
1383
|
-
|
|
1383
|
+
Ie,
|
|
1384
1384
|
{
|
|
1385
1385
|
in: f,
|
|
1386
1386
|
className: "humany-drawer-transition",
|
|
@@ -1388,7 +1388,7 @@ const Bn = 300, zn = ({
|
|
|
1388
1388
|
unmountOnExit: !0,
|
|
1389
1389
|
timeout: u
|
|
1390
1390
|
},
|
|
1391
|
-
/* @__PURE__ */ r.createElement(
|
|
1391
|
+
/* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
1392
1392
|
H,
|
|
1393
1393
|
{
|
|
1394
1394
|
duration: u,
|
|
@@ -1396,23 +1396,23 @@ const Bn = 300, zn = ({
|
|
|
1396
1396
|
className: M(
|
|
1397
1397
|
e,
|
|
1398
1398
|
"humany-drawer",
|
|
1399
|
-
`humany-drawer-${
|
|
1399
|
+
`humany-drawer-${v.current}`
|
|
1400
1400
|
),
|
|
1401
1401
|
clientHeight: document.body.clientHeight,
|
|
1402
1402
|
css: p,
|
|
1403
1403
|
ref: d
|
|
1404
1404
|
},
|
|
1405
1405
|
/* @__PURE__ */ r.createElement(
|
|
1406
|
-
|
|
1406
|
+
xe,
|
|
1407
1407
|
{
|
|
1408
1408
|
onClick: () => C(!1),
|
|
1409
1409
|
tabIndex: 0,
|
|
1410
1410
|
ref: c,
|
|
1411
1411
|
"aria-label": a
|
|
1412
1412
|
},
|
|
1413
|
-
/* @__PURE__ */ r.createElement(
|
|
1413
|
+
/* @__PURE__ */ r.createElement(G, { symbol: { type: "Svg", content: "close" } })
|
|
1414
1414
|
),
|
|
1415
|
-
!!n && /* @__PURE__ */ r.createElement(
|
|
1415
|
+
!!n && /* @__PURE__ */ r.createElement(Dn, { variant: "h1", className: "humany-drawer-header" }, n),
|
|
1416
1416
|
t
|
|
1417
1417
|
))
|
|
1418
1418
|
), r.cloneElement(s, {
|
|
@@ -1423,7 +1423,7 @@ const Bn = 300, zn = ({
|
|
|
1423
1423
|
"aria-label": s.props.title,
|
|
1424
1424
|
"aria-expanded": f
|
|
1425
1425
|
}));
|
|
1426
|
-
},
|
|
1426
|
+
}, Bo = Tn, le = y.div`
|
|
1427
1427
|
font-family: ${(e) => {
|
|
1428
1428
|
var t;
|
|
1429
1429
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1440,7 +1440,7 @@ const Bn = 300, zn = ({
|
|
|
1440
1440
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1441
1441
|
background: #ffffff;
|
|
1442
1442
|
${(e) => e.css && e.css}
|
|
1443
|
-
`,
|
|
1443
|
+
`, Dn = y(_)`
|
|
1444
1444
|
padding: ${(e) => {
|
|
1445
1445
|
var t;
|
|
1446
1446
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1463,11 +1463,11 @@ const Bn = 300, zn = ({
|
|
|
1463
1463
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1464
1464
|
}};
|
|
1465
1465
|
line-height: 1.2em;
|
|
1466
|
-
`,
|
|
1466
|
+
`, ue = (e) => L`
|
|
1467
1467
|
transition: ${e.duration}ms;
|
|
1468
|
-
`,
|
|
1468
|
+
`, Bn = y(le)`
|
|
1469
1469
|
max-height: 0;
|
|
1470
|
-
${
|
|
1470
|
+
${ue}
|
|
1471
1471
|
|
|
1472
1472
|
&.humany-drawer-transition-enter {
|
|
1473
1473
|
max-height: 0;
|
|
@@ -1482,8 +1482,8 @@ const Bn = 300, zn = ({
|
|
|
1482
1482
|
&.humany-drawer-transition-exit-done {
|
|
1483
1483
|
max-height: 0;
|
|
1484
1484
|
}
|
|
1485
|
-
`,
|
|
1486
|
-
${
|
|
1485
|
+
`, zn = y(le)`
|
|
1486
|
+
${ue}
|
|
1487
1487
|
transform: translateX(100%);
|
|
1488
1488
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1489
1489
|
|
|
@@ -1500,8 +1500,8 @@ const Bn = 300, zn = ({
|
|
|
1500
1500
|
&.humany-drawer-transition-exit-done {
|
|
1501
1501
|
transform: translateX(100%);
|
|
1502
1502
|
}
|
|
1503
|
-
`,
|
|
1504
|
-
${
|
|
1503
|
+
`, Nn = y(le)`
|
|
1504
|
+
${ue}
|
|
1505
1505
|
transform: translateX(-100%);
|
|
1506
1506
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1507
1507
|
|
|
@@ -1518,8 +1518,8 @@ const Bn = 300, zn = ({
|
|
|
1518
1518
|
&.humany-drawer-transition-exit-done {
|
|
1519
1519
|
transform: translateX(-100%);
|
|
1520
1520
|
}
|
|
1521
|
-
`,
|
|
1522
|
-
${
|
|
1521
|
+
`, Vn = y(le)`
|
|
1522
|
+
${ue}
|
|
1523
1523
|
bottom: unset;
|
|
1524
1524
|
top: 0;
|
|
1525
1525
|
height: 0;
|
|
@@ -1537,12 +1537,12 @@ const Bn = 300, zn = ({
|
|
|
1537
1537
|
&.humany-drawer-transition-exit-done {
|
|
1538
1538
|
height: 0;
|
|
1539
1539
|
}
|
|
1540
|
-
`,
|
|
1541
|
-
["slide-in-bottom"]:
|
|
1542
|
-
["slide-in-right"]:
|
|
1543
|
-
["slide-in-left"]:
|
|
1544
|
-
["slide-in-top"]:
|
|
1545
|
-
},
|
|
1540
|
+
`, Wn = {
|
|
1541
|
+
["slide-in-bottom"]: Bn,
|
|
1542
|
+
["slide-in-right"]: zn,
|
|
1543
|
+
["slide-in-left"]: Nn,
|
|
1544
|
+
["slide-in-top"]: Vn
|
|
1545
|
+
}, Zn = (e, t, n) => {
|
|
1546
1546
|
const [o, s] = $(0), [i, a] = $(0), l = T(
|
|
1547
1547
|
(u, c) => {
|
|
1548
1548
|
if (u.preventDefault(), c) {
|
|
@@ -1552,7 +1552,7 @@ const Bn = 300, zn = ({
|
|
|
1552
1552
|
},
|
|
1553
1553
|
[o, i, s, a]
|
|
1554
1554
|
);
|
|
1555
|
-
return
|
|
1555
|
+
return E(() => {
|
|
1556
1556
|
if (!n || !e)
|
|
1557
1557
|
return;
|
|
1558
1558
|
const u = n.getBoundingClientRect(), c = {
|
|
@@ -1561,36 +1561,36 @@ const Bn = 300, zn = ({
|
|
|
1561
1561
|
};
|
|
1562
1562
|
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);
|
|
1563
1563
|
}, [n, e, t]), [{ x: o, y: i }, l];
|
|
1564
|
-
},
|
|
1564
|
+
}, Xe = Zn, In = r.forwardRef(
|
|
1565
1565
|
(a, i) => {
|
|
1566
|
-
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s =
|
|
1567
|
-
const u =
|
|
1568
|
-
|
|
1569
|
-
const p =
|
|
1570
|
-
|
|
1566
|
+
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, s = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1567
|
+
const u = R(), c = R(), m = R();
|
|
1568
|
+
Ce(i, () => m.current, [m.current]);
|
|
1569
|
+
const p = R(q()), [d, f] = $(!1), C = Fe(d), [{ x, y: v }, b] = Xe(d, p.current, m.current), g = Y("Escape");
|
|
1570
|
+
E(() => {
|
|
1571
1571
|
g && f(!1);
|
|
1572
|
-
}, [g]),
|
|
1572
|
+
}, [g]), E(() => {
|
|
1573
1573
|
d && u.current ? u.current.focus() : !d && c.current && C && c.current.focus();
|
|
1574
1574
|
}, [d, u.current, c.current]), I(
|
|
1575
1575
|
"click",
|
|
1576
|
-
(
|
|
1577
|
-
const { target:
|
|
1578
|
-
!m.current || !
|
|
1576
|
+
(D) => {
|
|
1577
|
+
const { target: j } = D;
|
|
1578
|
+
!m.current || !j || m.current !== j && !m.current.contains(j) && f(!1);
|
|
1579
1579
|
},
|
|
1580
1580
|
window
|
|
1581
|
-
),
|
|
1581
|
+
), ce("router:changed", () => {
|
|
1582
1582
|
f(!1);
|
|
1583
1583
|
});
|
|
1584
|
-
const H =
|
|
1584
|
+
const H = ve(p.current, () => {
|
|
1585
1585
|
f(!1);
|
|
1586
1586
|
}), B = T(
|
|
1587
|
-
(
|
|
1588
|
-
|
|
1587
|
+
(D) => {
|
|
1588
|
+
D.stopPropagation(), b(D, c.current), f(!d), H();
|
|
1589
1589
|
},
|
|
1590
1590
|
[H, b, f]
|
|
1591
1591
|
);
|
|
1592
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(
|
|
1593
|
-
|
|
1592
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
1593
|
+
On,
|
|
1594
1594
|
k(h({
|
|
1595
1595
|
className: M(
|
|
1596
1596
|
"humany-dropdown",
|
|
@@ -1599,18 +1599,18 @@ const Bn = 300, zn = ({
|
|
|
1599
1599
|
)
|
|
1600
1600
|
}, s), {
|
|
1601
1601
|
x,
|
|
1602
|
-
y:
|
|
1602
|
+
y: v,
|
|
1603
1603
|
ref: m
|
|
1604
1604
|
}),
|
|
1605
1605
|
/* @__PURE__ */ r.createElement(
|
|
1606
|
-
|
|
1606
|
+
xe,
|
|
1607
1607
|
{
|
|
1608
1608
|
onClick: () => f(!1),
|
|
1609
1609
|
tabIndex: 0,
|
|
1610
1610
|
ref: u,
|
|
1611
1611
|
"aria-label": o
|
|
1612
1612
|
},
|
|
1613
|
-
/* @__PURE__ */ r.createElement(
|
|
1613
|
+
/* @__PURE__ */ r.createElement(G, { symbol: { type: "Svg", content: "close" } })
|
|
1614
1614
|
),
|
|
1615
1615
|
t
|
|
1616
1616
|
)), r.cloneElement(n, {
|
|
@@ -1620,8 +1620,8 @@ const Bn = 300, zn = ({
|
|
|
1620
1620
|
"aria-expanded": d
|
|
1621
1621
|
}));
|
|
1622
1622
|
}
|
|
1623
|
-
),
|
|
1624
|
-
${
|
|
1623
|
+
), zo = In, On = y.div`
|
|
1624
|
+
${Ye}
|
|
1625
1625
|
padding: ${(e) => {
|
|
1626
1626
|
var t;
|
|
1627
1627
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -1635,41 +1635,41 @@ const Bn = 300, zn = ({
|
|
|
1635
1635
|
let t = "";
|
|
1636
1636
|
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;
|
|
1637
1637
|
}};
|
|
1638
|
-
`,
|
|
1639
|
-
var e =
|
|
1640
|
-
return /* @__PURE__ */ r.createElement(
|
|
1641
|
-
},
|
|
1638
|
+
`, Pn = (t) => {
|
|
1639
|
+
var e = S(t, []);
|
|
1640
|
+
return /* @__PURE__ */ r.createElement(An, h({}, e));
|
|
1641
|
+
}, Fn = Pn, An = y.div`
|
|
1642
1642
|
display: none;
|
|
1643
|
-
`,
|
|
1643
|
+
`, No = N(
|
|
1644
1644
|
(a, i) => {
|
|
1645
|
-
var l = a, { children: e, columns: t, gap: n, className: o } = l, s =
|
|
1645
|
+
var l = a, { children: e, columns: t, gap: n, className: o } = l, s = S(l, ["children", "columns", "gap", "className"]);
|
|
1646
1646
|
return /* @__PURE__ */ r.createElement(
|
|
1647
|
-
|
|
1647
|
+
Kn,
|
|
1648
1648
|
k(h(h({
|
|
1649
1649
|
className: M(o, "humany-grid"),
|
|
1650
1650
|
"data-columns": t,
|
|
1651
1651
|
"data-gap": n
|
|
1652
|
-
},
|
|
1652
|
+
}, Ht(s)), V(s)), {
|
|
1653
1653
|
ref: i
|
|
1654
1654
|
}),
|
|
1655
1655
|
e
|
|
1656
1656
|
);
|
|
1657
1657
|
}
|
|
1658
|
-
),
|
|
1658
|
+
), Kn = y.div`
|
|
1659
1659
|
display: grid;
|
|
1660
1660
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1661
1661
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1662
1662
|
justify-content: center;
|
|
1663
1663
|
grid-auto-rows: max-content;
|
|
1664
|
-
${
|
|
1665
|
-
`,
|
|
1664
|
+
${Rt}
|
|
1665
|
+
`, Ue = N(
|
|
1666
1666
|
(i, s) => {
|
|
1667
|
-
var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o =
|
|
1667
|
+
var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
|
|
1668
1668
|
const l = W(), [u, c] = $();
|
|
1669
|
-
return
|
|
1670
|
-
const m =
|
|
1669
|
+
return E(() => {
|
|
1670
|
+
const m = zt(l, n), p = k(h(h({}, m), e), {
|
|
1671
1671
|
transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
|
|
1672
|
-
}), d =
|
|
1672
|
+
}), d = Dt(n, p);
|
|
1673
1673
|
c(d);
|
|
1674
1674
|
}, [n, e]), /* @__PURE__ */ r.createElement(
|
|
1675
1675
|
"div",
|
|
@@ -1681,13 +1681,13 @@ const Bn = 300, zn = ({
|
|
|
1681
1681
|
u
|
|
1682
1682
|
);
|
|
1683
1683
|
}
|
|
1684
|
-
),
|
|
1684
|
+
), jn = (i) => {
|
|
1685
1685
|
var a = i, {
|
|
1686
1686
|
faIcon: e,
|
|
1687
1687
|
title: t,
|
|
1688
1688
|
className: n = "",
|
|
1689
1689
|
role: o = "presentation"
|
|
1690
|
-
} = a, s =
|
|
1690
|
+
} = a, s = S(a, [
|
|
1691
1691
|
"faIcon",
|
|
1692
1692
|
"title",
|
|
1693
1693
|
"className",
|
|
@@ -1701,7 +1701,7 @@ const Bn = 300, zn = ({
|
|
|
1701
1701
|
role: o
|
|
1702
1702
|
}, V(s))
|
|
1703
1703
|
);
|
|
1704
|
-
},
|
|
1704
|
+
}, Yn = jn, Vo = N(
|
|
1705
1705
|
(p, m) => {
|
|
1706
1706
|
var d = p, {
|
|
1707
1707
|
className: e = "",
|
|
@@ -1717,7 +1717,7 @@ const Bn = 300, zn = ({
|
|
|
1717
1717
|
},
|
|
1718
1718
|
disabled: l = !1,
|
|
1719
1719
|
type: u
|
|
1720
|
-
} = d, c =
|
|
1720
|
+
} = d, c = S(d, [
|
|
1721
1721
|
"className",
|
|
1722
1722
|
"autoFocus",
|
|
1723
1723
|
"onFocusChange",
|
|
@@ -1728,12 +1728,12 @@ const Bn = 300, zn = ({
|
|
|
1728
1728
|
"disabled",
|
|
1729
1729
|
"type"
|
|
1730
1730
|
]);
|
|
1731
|
-
const [f, C] = $(t), x =
|
|
1732
|
-
|
|
1731
|
+
const [f, C] = $(t), x = R();
|
|
1732
|
+
Ce(m, () => x.current), E(() => {
|
|
1733
1733
|
var g;
|
|
1734
1734
|
t && ((g = x == null ? void 0 : x.current) == null || g.focus());
|
|
1735
1735
|
}, [t, m, x]);
|
|
1736
|
-
const
|
|
1736
|
+
const v = (g, H) => {
|
|
1737
1737
|
C(g), n && n(g), i && g && H.target.select();
|
|
1738
1738
|
}, b = k(h({}, V(c)), {
|
|
1739
1739
|
disabled: l,
|
|
@@ -1742,8 +1742,8 @@ const Bn = 300, zn = ({
|
|
|
1742
1742
|
onKeyDown: (g) => {
|
|
1743
1743
|
g.key === "Enter" && f && o(g), g.key === "Escape" && f && s(g);
|
|
1744
1744
|
},
|
|
1745
|
-
onFocus: (g) =>
|
|
1746
|
-
onBlur: (g) =>
|
|
1745
|
+
onFocus: (g) => v(!0, g),
|
|
1746
|
+
onBlur: (g) => v(!1, g),
|
|
1747
1747
|
onChange: (g) => a(g.target.value || ""),
|
|
1748
1748
|
className: M(e, "humany-input"),
|
|
1749
1749
|
"data-type": u
|
|
@@ -1760,9 +1760,9 @@ const Bn = 300, zn = ({
|
|
|
1760
1760
|
})
|
|
1761
1761
|
);
|
|
1762
1762
|
}
|
|
1763
|
-
),
|
|
1763
|
+
), Xn = N(
|
|
1764
1764
|
(a, i) => {
|
|
1765
|
-
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, s =
|
|
1765
|
+
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, s = S(l, ["className", "items", "renderItem", "renderLi"]);
|
|
1766
1766
|
return /* @__PURE__ */ r.createElement(
|
|
1767
1767
|
"ul",
|
|
1768
1768
|
k(h({
|
|
@@ -1776,9 +1776,9 @@ const Bn = 300, zn = ({
|
|
|
1776
1776
|
)
|
|
1777
1777
|
);
|
|
1778
1778
|
}
|
|
1779
|
-
),
|
|
1779
|
+
), Un = N(
|
|
1780
1780
|
(u, l) => {
|
|
1781
|
-
var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: s, symbol: i } = c, a =
|
|
1781
|
+
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"]);
|
|
1782
1782
|
return /* @__PURE__ */ r.createElement(
|
|
1783
1783
|
"div",
|
|
1784
1784
|
k(h({
|
|
@@ -1786,12 +1786,12 @@ const Bn = 300, zn = ({
|
|
|
1786
1786
|
}, V(a)), {
|
|
1787
1787
|
ref: l
|
|
1788
1788
|
}),
|
|
1789
|
-
n ? /* @__PURE__ */ r.createElement(
|
|
1790
|
-
t ? /* @__PURE__ */ r.createElement(
|
|
1791
|
-
e ? /* @__PURE__ */ r.createElement(
|
|
1789
|
+
n ? /* @__PURE__ */ r.createElement(_, { variant: "h1" }, i ? /* @__PURE__ */ r.createElement(G, { symbol: i }) : null, n) : null,
|
|
1790
|
+
t ? /* @__PURE__ */ r.createElement(Ue, { html: t, htmlParseInstruction: s }) : null,
|
|
1791
|
+
e ? /* @__PURE__ */ r.createElement(Ee, null, e) : null
|
|
1792
1792
|
);
|
|
1793
1793
|
}
|
|
1794
|
-
),
|
|
1794
|
+
), _n = N(
|
|
1795
1795
|
(f, d) => {
|
|
1796
1796
|
var C = f, {
|
|
1797
1797
|
header: e,
|
|
@@ -1805,7 +1805,7 @@ const Bn = 300, zn = ({
|
|
|
1805
1805
|
renderItem: u,
|
|
1806
1806
|
renderLi: c,
|
|
1807
1807
|
ulProps: m
|
|
1808
|
-
} = C, p =
|
|
1808
|
+
} = C, p = S(C, [
|
|
1809
1809
|
"header",
|
|
1810
1810
|
"customHeader",
|
|
1811
1811
|
"text",
|
|
@@ -1826,12 +1826,12 @@ const Bn = 300, zn = ({
|
|
|
1826
1826
|
}, V(p)), {
|
|
1827
1827
|
ref: d
|
|
1828
1828
|
}),
|
|
1829
|
-
t || (e || n || o ? /* @__PURE__ */ r.createElement(
|
|
1830
|
-
l.length ? /* @__PURE__ */ r.createElement(
|
|
1829
|
+
t || (e || n || o ? /* @__PURE__ */ r.createElement(Un, { symbol: a, header: e, text: n, html: o }) : null),
|
|
1830
|
+
l.length ? /* @__PURE__ */ r.createElement(Xn, h({ items: l, renderItem: u, renderLi: c }, m)) : null,
|
|
1831
1831
|
i
|
|
1832
1832
|
);
|
|
1833
1833
|
}
|
|
1834
|
-
),
|
|
1834
|
+
), qn = ({
|
|
1835
1835
|
className: e = "",
|
|
1836
1836
|
tree: t,
|
|
1837
1837
|
renderItem: n,
|
|
@@ -1842,13 +1842,13 @@ const Bn = 300, zn = ({
|
|
|
1842
1842
|
liProps: l
|
|
1843
1843
|
}) => {
|
|
1844
1844
|
const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(
|
|
1845
|
-
|
|
1845
|
+
_n,
|
|
1846
1846
|
{
|
|
1847
1847
|
className: M(`humany-item-tree-level-${d}`),
|
|
1848
1848
|
items: p,
|
|
1849
1849
|
ulProps: a,
|
|
1850
1850
|
renderItem: (f) => {
|
|
1851
|
-
const { id: C, selected: x, items:
|
|
1851
|
+
const { id: C, selected: x, items: v, matches: b } = f, g = x && c(v);
|
|
1852
1852
|
return !i && !b ? null : /* @__PURE__ */ r.createElement(
|
|
1853
1853
|
"li",
|
|
1854
1854
|
k(h({}, V(l)), {
|
|
@@ -1856,17 +1856,17 @@ const Bn = 300, zn = ({
|
|
|
1856
1856
|
className: "humany-item-tree-item"
|
|
1857
1857
|
}),
|
|
1858
1858
|
n && n(f, d, g),
|
|
1859
|
-
|
|
1859
|
+
v && (s || g) && m(v, d + 1)
|
|
1860
1860
|
);
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
1863
|
);
|
|
1864
1864
|
return /* @__PURE__ */ r.createElement("div", { className: M(e, "humany-item-tree") }, o && o(!u(t || [])), t && m(t, 1));
|
|
1865
|
-
},
|
|
1865
|
+
}, Wo = qn, Qn = N(
|
|
1866
1866
|
(u, l) => {
|
|
1867
1867
|
var c = u, { className: e, onClick: t = () => {
|
|
1868
|
-
}, name: n = "", to: o = "", params: s = {}, children: i } = c, a =
|
|
1869
|
-
const m =
|
|
1868
|
+
}, name: n = "", to: o = "", params: s = {}, children: i } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1869
|
+
const m = Ae(), p = W();
|
|
1870
1870
|
if (!m)
|
|
1871
1871
|
return null;
|
|
1872
1872
|
let d = "";
|
|
@@ -1880,16 +1880,16 @@ const Bn = 300, zn = ({
|
|
|
1880
1880
|
});
|
|
1881
1881
|
if (n) {
|
|
1882
1882
|
if (!(m.routes || []).find((b) => b.name === n))
|
|
1883
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1884
|
-
|
|
1883
|
+
return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(
|
|
1884
|
+
fe,
|
|
1885
1885
|
k(h({}, f), {
|
|
1886
1886
|
onClick: (b) => {
|
|
1887
|
-
t(b), b.preventDefault(), process.env.NODE_ENV !== "production" &&
|
|
1887
|
+
t(b), b.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
1888
1888
|
}
|
|
1889
1889
|
}),
|
|
1890
1890
|
i
|
|
1891
1891
|
);
|
|
1892
|
-
const
|
|
1892
|
+
const v = Object.keys(s).reduce((b, g) => {
|
|
1893
1893
|
const H = s[g];
|
|
1894
1894
|
if (Array.isArray(H)) {
|
|
1895
1895
|
if (H.length === 0)
|
|
@@ -1900,11 +1900,11 @@ const Bn = 300, zn = ({
|
|
|
1900
1900
|
return b;
|
|
1901
1901
|
}, {});
|
|
1902
1902
|
try {
|
|
1903
|
-
d = m.generate(n,
|
|
1903
|
+
d = m.generate(n, v || {});
|
|
1904
1904
|
} catch (b) {
|
|
1905
|
-
return /* @__PURE__ */ r.createElement(
|
|
1905
|
+
return /* @__PURE__ */ r.createElement(fe, k(h({}, f), { ref: f.innerRef }), i);
|
|
1906
1906
|
}
|
|
1907
|
-
d && m.settings.mode && m.settings.mode ===
|
|
1907
|
+
d && m.settings.mode && m.settings.mode === Be.browser && d[0] !== "/" && (d = `/${d}`);
|
|
1908
1908
|
} else if (o && m.history)
|
|
1909
1909
|
d = m.history.createHref({
|
|
1910
1910
|
hash: "",
|
|
@@ -1913,18 +1913,18 @@ const Bn = 300, zn = ({
|
|
|
1913
1913
|
state: void 0
|
|
1914
1914
|
});
|
|
1915
1915
|
else
|
|
1916
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1916
|
+
return process.env.NODE_ENV !== "production" && de.warn(
|
|
1917
1917
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
1918
1918
|
), null;
|
|
1919
|
-
if (m.settings && m.settings.mode ===
|
|
1919
|
+
if (m.settings && m.settings.mode === Be.scopedHash) {
|
|
1920
1920
|
const C = p.get("$widget").name;
|
|
1921
|
-
d =
|
|
1921
|
+
d = vt(d, C);
|
|
1922
1922
|
}
|
|
1923
|
-
return f.as ? /* @__PURE__ */ r.createElement(
|
|
1923
|
+
return f.as ? /* @__PURE__ */ r.createElement(Gn, k(h({}, f), { as: f.as }), i) : /* @__PURE__ */ r.createElement(fe, k(h({}, f), { to: d }), i);
|
|
1924
1924
|
}
|
|
1925
|
-
),
|
|
1925
|
+
), Gn = y.span``, we = N(
|
|
1926
1926
|
(x, C) => {
|
|
1927
|
-
var
|
|
1927
|
+
var v = x, {
|
|
1928
1928
|
className: e,
|
|
1929
1929
|
disabled: t = !1,
|
|
1930
1930
|
role: n = "link",
|
|
@@ -1940,7 +1940,7 @@ const Bn = 300, zn = ({
|
|
|
1940
1940
|
target: m,
|
|
1941
1941
|
routeName: p,
|
|
1942
1942
|
params: d
|
|
1943
|
-
} =
|
|
1943
|
+
} = v, f = S(v, [
|
|
1944
1944
|
"className",
|
|
1945
1945
|
"disabled",
|
|
1946
1946
|
"role",
|
|
@@ -1978,7 +1978,7 @@ const Bn = 300, zn = ({
|
|
|
1978
1978
|
}
|
|
1979
1979
|
};
|
|
1980
1980
|
return p ? /* @__PURE__ */ r.createElement(
|
|
1981
|
-
|
|
1981
|
+
Jn,
|
|
1982
1982
|
k(h(h({
|
|
1983
1983
|
name: p,
|
|
1984
1984
|
params: d
|
|
@@ -1987,7 +1987,7 @@ const Bn = 300, zn = ({
|
|
|
1987
1987
|
}),
|
|
1988
1988
|
c
|
|
1989
1989
|
) : /* @__PURE__ */ r.createElement(
|
|
1990
|
-
|
|
1990
|
+
er,
|
|
1991
1991
|
k(h(h({
|
|
1992
1992
|
href: u,
|
|
1993
1993
|
target: m
|
|
@@ -1997,37 +1997,37 @@ const Bn = 300, zn = ({
|
|
|
1997
1997
|
c
|
|
1998
1998
|
);
|
|
1999
1999
|
}
|
|
2000
|
-
),
|
|
2000
|
+
), Jn = y(Qn)`
|
|
2001
2001
|
${(e) => e.disabled ? `
|
|
2002
2002
|
pointer-events: none;
|
|
2003
2003
|
opacity: .7;
|
|
2004
2004
|
` : "cursor: pointer;"}
|
|
2005
|
-
`,
|
|
2005
|
+
`, er = y.a`
|
|
2006
2006
|
${(e) => e.disabled ? `
|
|
2007
2007
|
pointer-events: none;
|
|
2008
2008
|
opacity: .7;
|
|
2009
2009
|
` : "cursor: pointer;"}
|
|
2010
|
-
`,
|
|
2010
|
+
`, tr = (i) => {
|
|
2011
2011
|
var a = i, {
|
|
2012
2012
|
visible: e,
|
|
2013
2013
|
duration: t = 500,
|
|
2014
2014
|
children: n,
|
|
2015
2015
|
onClick: o = () => {
|
|
2016
2016
|
}
|
|
2017
|
-
} = a, s =
|
|
2017
|
+
} = a, s = S(a, [
|
|
2018
2018
|
"visible",
|
|
2019
2019
|
"duration",
|
|
2020
2020
|
"children",
|
|
2021
2021
|
"onClick"
|
|
2022
2022
|
]);
|
|
2023
|
-
const l =
|
|
2023
|
+
const l = R(), u = T(
|
|
2024
2024
|
(c) => {
|
|
2025
2025
|
c.target === l.current && o(c);
|
|
2026
2026
|
},
|
|
2027
2027
|
[o]
|
|
2028
2028
|
);
|
|
2029
2029
|
return /* @__PURE__ */ r.createElement(
|
|
2030
|
-
|
|
2030
|
+
Ie,
|
|
2031
2031
|
{
|
|
2032
2032
|
in: e,
|
|
2033
2033
|
className: "humany-overlay-transition",
|
|
@@ -2035,8 +2035,8 @@ const Bn = 300, zn = ({
|
|
|
2035
2035
|
unmountOnExit: !0,
|
|
2036
2036
|
timeout: t
|
|
2037
2037
|
},
|
|
2038
|
-
/* @__PURE__ */ r.createElement(
|
|
2039
|
-
|
|
2038
|
+
/* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
2039
|
+
nr,
|
|
2040
2040
|
h({
|
|
2041
2041
|
className: "humany-overlay",
|
|
2042
2042
|
duration: t,
|
|
@@ -2046,7 +2046,7 @@ const Bn = 300, zn = ({
|
|
|
2046
2046
|
n
|
|
2047
2047
|
))
|
|
2048
2048
|
);
|
|
2049
|
-
},
|
|
2049
|
+
}, nr = y.div`
|
|
2050
2050
|
background: rgba(0, 0, 0, 0.6);
|
|
2051
2051
|
min-width: 100%;
|
|
2052
2052
|
min-height: 100%;
|
|
@@ -2076,11 +2076,11 @@ const Bn = 300, zn = ({
|
|
|
2076
2076
|
&.humany-overlay-transition-exit-done {
|
|
2077
2077
|
opacity: 0;
|
|
2078
2078
|
}
|
|
2079
|
-
`,
|
|
2079
|
+
`, _e = tr, rr = Ze`
|
|
2080
2080
|
100% {
|
|
2081
2081
|
transform: rotate(360deg);
|
|
2082
2082
|
}
|
|
2083
|
-
`,
|
|
2083
|
+
`, or = Ze`
|
|
2084
2084
|
0% {
|
|
2085
2085
|
stroke-dasharray: 1, 200;
|
|
2086
2086
|
stroke-dashoffset: 0;
|
|
@@ -2093,8 +2093,8 @@ const Bn = 300, zn = ({
|
|
|
2093
2093
|
stroke-dasharray: 89, 200;
|
|
2094
2094
|
stroke-dashoffset: -124px;
|
|
2095
2095
|
}
|
|
2096
|
-
`,
|
|
2097
|
-
animation: ${
|
|
2096
|
+
`, sr = y.svg`
|
|
2097
|
+
animation: ${rr} 2s linear infinite;
|
|
2098
2098
|
height: 100%;
|
|
2099
2099
|
transform-origin: center center;
|
|
2100
2100
|
width: 100%;
|
|
@@ -2105,7 +2105,7 @@ const Bn = 300, zn = ({
|
|
|
2105
2105
|
right: 0;
|
|
2106
2106
|
margin: auto;
|
|
2107
2107
|
transition: 200ms ease-out opacity;
|
|
2108
|
-
`,
|
|
2108
|
+
`, ir = y.div`
|
|
2109
2109
|
position: absolute;
|
|
2110
2110
|
top: 0;
|
|
2111
2111
|
bottom: 0;
|
|
@@ -2123,7 +2123,7 @@ const Bn = 300, zn = ({
|
|
|
2123
2123
|
svg {
|
|
2124
2124
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2125
2125
|
}
|
|
2126
|
-
`,
|
|
2126
|
+
`, ar = y.div`
|
|
2127
2127
|
position: relative;
|
|
2128
2128
|
margin: 0 auto;
|
|
2129
2129
|
width: 100px;
|
|
@@ -2132,18 +2132,18 @@ const Bn = 300, zn = ({
|
|
|
2132
2132
|
display: block;
|
|
2133
2133
|
padding-top: 100%;
|
|
2134
2134
|
}
|
|
2135
|
-
`,
|
|
2135
|
+
`, cr = y.circle`
|
|
2136
2136
|
stroke-dasharray: 1, 200;
|
|
2137
2137
|
stroke-dashoffset: 0;
|
|
2138
|
-
animation: ${
|
|
2138
|
+
animation: ${or} 1.5s ease-in-out infinite;
|
|
2139
2139
|
stroke-linecap: round;
|
|
2140
2140
|
stroke: ${(e) => {
|
|
2141
2141
|
var t;
|
|
2142
2142
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2143
2143
|
}};
|
|
2144
2144
|
stroke-width: 2px;
|
|
2145
|
-
`,
|
|
2146
|
-
|
|
2145
|
+
`, lr = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(ir, { className: M("humany-loader", e), "data-loading": t }, /* @__PURE__ */ r.createElement(ar, { className: "humany-spinner" }, /* @__PURE__ */ r.createElement(sr, { viewBox: "25 25 50 50" }, /* @__PURE__ */ r.createElement(
|
|
2146
|
+
cr,
|
|
2147
2147
|
{
|
|
2148
2148
|
cx: "50",
|
|
2149
2149
|
cy: "50",
|
|
@@ -2152,25 +2152,25 @@ const Bn = 300, zn = ({
|
|
|
2152
2152
|
"stroke-width": "2",
|
|
2153
2153
|
"stroke-miterlimit": "10"
|
|
2154
2154
|
}
|
|
2155
|
-
)))),
|
|
2155
|
+
)))), ur = lr, mr = (s) => {
|
|
2156
2156
|
var i = s, {
|
|
2157
2157
|
zoomState: e,
|
|
2158
2158
|
image: t,
|
|
2159
2159
|
changeZoom: n
|
|
2160
|
-
} = i, o =
|
|
2160
|
+
} = i, o = S(i, [
|
|
2161
2161
|
"zoomState",
|
|
2162
2162
|
"image",
|
|
2163
2163
|
"changeZoom"
|
|
2164
2164
|
]);
|
|
2165
2165
|
var b;
|
|
2166
|
-
const a =
|
|
2166
|
+
const a = R(null), [l, u] = $(!1), [c, m] = $(!1), v = o.style || {}, { width: p, height: d } = v, f = S(v, ["width", "height"]), C = T(() => {
|
|
2167
2167
|
const g = a.current;
|
|
2168
2168
|
if (g) {
|
|
2169
|
-
const H = window.innerWidth / g.naturalWidth, B = window.innerHeight / g.naturalHeight,
|
|
2170
|
-
return B >= 1 && H >= 1 ? 1 :
|
|
2169
|
+
const H = window.innerWidth / g.naturalWidth, B = window.innerHeight / g.naturalHeight, D = Math.min(H, B);
|
|
2170
|
+
return B >= 1 && H >= 1 ? 1 : D;
|
|
2171
2171
|
}
|
|
2172
2172
|
return 1;
|
|
2173
|
-
}, [l, t.src]), x =
|
|
2173
|
+
}, [l, t.src]), x = se(() => {
|
|
2174
2174
|
const g = a.current;
|
|
2175
2175
|
if (g && l) {
|
|
2176
2176
|
if (!c) {
|
|
@@ -2182,10 +2182,10 @@ const Bn = 300, zn = ({
|
|
|
2182
2182
|
}
|
|
2183
2183
|
return null;
|
|
2184
2184
|
}, [e, a, l, t.src]);
|
|
2185
|
-
return
|
|
2185
|
+
return E(() => (u(!1), function() {
|
|
2186
2186
|
m(!1);
|
|
2187
|
-
}), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
2188
|
-
|
|
2187
|
+
}), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(dr, { loading: !l }), /* @__PURE__ */ r.createElement(
|
|
2188
|
+
fr,
|
|
2189
2189
|
k(h({
|
|
2190
2190
|
onLoad: () => {
|
|
2191
2191
|
u(!0);
|
|
@@ -2199,12 +2199,12 @@ const Bn = 300, zn = ({
|
|
|
2199
2199
|
src: t.src,
|
|
2200
2200
|
loaded: l
|
|
2201
2201
|
})
|
|
2202
|
-
), /* @__PURE__ */ r.createElement(
|
|
2203
|
-
},
|
|
2202
|
+
), /* @__PURE__ */ r.createElement(hr, null));
|
|
2203
|
+
}, dr = y(ur)`
|
|
2204
2204
|
svg circle {
|
|
2205
2205
|
stroke: #ffffff;
|
|
2206
2206
|
}
|
|
2207
|
-
`,
|
|
2207
|
+
`, fr = y.img`
|
|
2208
2208
|
transform: none;
|
|
2209
2209
|
|
|
2210
2210
|
${(e) => e.imageSize && L`
|
|
@@ -2215,127 +2215,124 @@ const Bn = 300, zn = ({
|
|
|
2215
2215
|
vertical-align: middle;
|
|
2216
2216
|
position: relative;
|
|
2217
2217
|
${(e) => !e.loaded && "display:none;"}
|
|
2218
|
-
`,
|
|
2218
|
+
`, hr = y.div`
|
|
2219
2219
|
height: 100%;
|
|
2220
2220
|
display: inline-block;
|
|
2221
2221
|
vertical-align: middle;
|
|
2222
|
-
`,
|
|
2223
|
-
const e =
|
|
2222
|
+
`, pr = mr, gr = () => {
|
|
2223
|
+
const e = R(), [t, n] = $(!0), o = T(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2224
2224
|
n(!1);
|
|
2225
2225
|
}, 3e3), () => {
|
|
2226
2226
|
e.current && clearTimeout(e.current);
|
|
2227
2227
|
}), [t, e]);
|
|
2228
2228
|
return [t, o];
|
|
2229
|
-
},
|
|
2230
|
-
var
|
|
2231
|
-
const n = Y("Escape"), o = Y("ArrowLeft"), s = Y("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] =
|
|
2232
|
-
|
|
2229
|
+
}, Cr = ({ attrs: e, htmlBody: t }) => {
|
|
2230
|
+
var Se;
|
|
2231
|
+
const n = Y("Escape"), o = Y("ArrowLeft"), s = Y("ArrowRight"), [i, a] = $(1), [l, u] = $({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = $(!1), [p, d] = gr(), [f, C] = $(null), [x, v] = $(null), b = R(null), g = R(null), H = R(null), B = R(null);
|
|
2232
|
+
E(() => {
|
|
2233
2233
|
n && C(null);
|
|
2234
|
-
}, [n]),
|
|
2234
|
+
}, [n]), E(() => {
|
|
2235
2235
|
a(1);
|
|
2236
|
-
}, [f]),
|
|
2237
|
-
var P,
|
|
2236
|
+
}, [f]), E(() => {
|
|
2237
|
+
var P, te;
|
|
2238
2238
|
if (f === null || g.current === null)
|
|
2239
2239
|
return;
|
|
2240
|
-
const w = g.current.firstElementChild,
|
|
2240
|
+
const w = g.current.firstElementChild, z = (P = H.current) == null ? void 0 : P.querySelector(".nav-left"), Z = (te = H.current) == null ? void 0 : te.querySelector(".nav-right");
|
|
2241
2241
|
if (x === "Right")
|
|
2242
|
-
|
|
2242
|
+
ee && Z ? Z.focus() : J && z && z.focus();
|
|
2243
2243
|
else if (x === "Left")
|
|
2244
|
-
|
|
2244
|
+
J && z ? z.focus() : ee && Z && Z.focus();
|
|
2245
2245
|
else {
|
|
2246
2246
|
if (!w)
|
|
2247
2247
|
return;
|
|
2248
2248
|
w.focus();
|
|
2249
2249
|
}
|
|
2250
|
-
}, [f, g, H, x]),
|
|
2250
|
+
}, [f, g, H, x]), E(() => {
|
|
2251
2251
|
if (o) {
|
|
2252
|
-
if (
|
|
2253
|
-
return
|
|
2254
|
-
} else if (s &&
|
|
2255
|
-
return
|
|
2256
|
-
}, [o, s])
|
|
2257
|
-
|
|
2258
|
-
((D = (w = z.current) == null ? void 0 : w.style) == null ? void 0 : D.float) === "right" && et("right");
|
|
2259
|
-
}, []);
|
|
2260
|
-
const F = ie(() => {
|
|
2252
|
+
if (J)
|
|
2253
|
+
return Le();
|
|
2254
|
+
} else if (s && ee)
|
|
2255
|
+
return Me();
|
|
2256
|
+
}, [o, s]);
|
|
2257
|
+
const D = se(() => {
|
|
2261
2258
|
const w = document.createElement("div");
|
|
2262
2259
|
w.innerHTML = t || "";
|
|
2263
|
-
const
|
|
2264
|
-
return Array.from(
|
|
2265
|
-
const
|
|
2266
|
-
if (
|
|
2267
|
-
const
|
|
2268
|
-
src:
|
|
2260
|
+
const z = w.getElementsByTagName("img");
|
|
2261
|
+
return Array.from(z).reduce((P, te) => {
|
|
2262
|
+
const Re = te.getAttribute("src");
|
|
2263
|
+
if (Re) {
|
|
2264
|
+
const ot = {
|
|
2265
|
+
src: Re
|
|
2269
2266
|
};
|
|
2270
|
-
P.push(
|
|
2267
|
+
P.push(ot);
|
|
2271
2268
|
}
|
|
2272
2269
|
return P;
|
|
2273
2270
|
}, []);
|
|
2274
|
-
}, [t]),
|
|
2271
|
+
}, [t]), j = T(() => {
|
|
2275
2272
|
const { src: w } = e;
|
|
2276
2273
|
if (w) {
|
|
2277
|
-
const
|
|
2278
|
-
C(
|
|
2274
|
+
const z = D.findIndex((Z, P) => Z.src === w);
|
|
2275
|
+
C(z);
|
|
2279
2276
|
}
|
|
2280
|
-
}, [
|
|
2277
|
+
}, [D, e]), Ge = T((w) => {
|
|
2281
2278
|
C(null);
|
|
2282
|
-
}, []),
|
|
2279
|
+
}, []), ke = T(
|
|
2283
2280
|
(w) => {
|
|
2284
2281
|
a(w ? i + i * 0.25 : i - i * 0.25);
|
|
2285
2282
|
},
|
|
2286
2283
|
[a, i]
|
|
2287
|
-
),
|
|
2284
|
+
), Je = T(() => {
|
|
2288
2285
|
if (f !== null) {
|
|
2289
|
-
const { src: w } =
|
|
2286
|
+
const { src: w } = D[f];
|
|
2290
2287
|
w && window.open(w, "_self");
|
|
2291
2288
|
}
|
|
2292
|
-
}, [
|
|
2289
|
+
}, [D, f]), et = T(
|
|
2293
2290
|
(w) => {
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2291
|
+
const z = B.current;
|
|
2292
|
+
z && (u({ top: z.scrollTop, left: z.scrollLeft, x: w.clientX, y: w.clientY }), m(!0));
|
|
2296
2293
|
},
|
|
2297
2294
|
[B]
|
|
2298
|
-
),
|
|
2295
|
+
), tt = T(
|
|
2299
2296
|
(w) => {
|
|
2300
|
-
const
|
|
2301
|
-
if (
|
|
2297
|
+
const z = B.current;
|
|
2298
|
+
if (z && c) {
|
|
2302
2299
|
const Z = w.clientX - l.x, P = w.clientY - l.y;
|
|
2303
|
-
|
|
2300
|
+
z.scrollTop = l.top - P, z.scrollLeft = l.left - Z;
|
|
2304
2301
|
}
|
|
2305
2302
|
},
|
|
2306
2303
|
[c, l]
|
|
2307
|
-
),
|
|
2304
|
+
), nt = (w) => {
|
|
2308
2305
|
w.preventDefault(), m(!1);
|
|
2309
|
-
},
|
|
2306
|
+
}, rt = se(() => {
|
|
2310
2307
|
if (B.current) {
|
|
2311
2308
|
const w = B.current.getElementsByTagName("img");
|
|
2312
2309
|
if (w && w.length) {
|
|
2313
|
-
const
|
|
2314
|
-
return
|
|
2310
|
+
const z = w[0];
|
|
2311
|
+
return z.width > window.innerWidth || z.height > window.innerHeight;
|
|
2315
2312
|
}
|
|
2316
2313
|
}
|
|
2317
2314
|
return !1;
|
|
2318
|
-
}, [B, i]),
|
|
2319
|
-
f !== null && (
|
|
2320
|
-
},
|
|
2321
|
-
f !== null && (
|
|
2322
|
-
},
|
|
2323
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
2324
|
-
|
|
2315
|
+
}, [B, i]), Le = () => {
|
|
2316
|
+
f !== null && (v("Left"), C(f - 1));
|
|
2317
|
+
}, Me = () => {
|
|
2318
|
+
f !== null && (v("Right"), C(f + 1));
|
|
2319
|
+
}, J = f !== null && f > 0 && D.length > 1, ee = f !== null && D.length - 1 > f;
|
|
2320
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: f !== null, onClick: Ge }, /* @__PURE__ */ r.createElement(
|
|
2321
|
+
kr,
|
|
2325
2322
|
{
|
|
2326
2323
|
onMouseDown: () => d(),
|
|
2327
2324
|
onMouseMove: () => d(),
|
|
2328
2325
|
onTouchStart: () => d(),
|
|
2329
2326
|
onKeyDown: () => d()
|
|
2330
2327
|
},
|
|
2331
|
-
/* @__PURE__ */ r.createElement(
|
|
2332
|
-
|
|
2328
|
+
/* @__PURE__ */ r.createElement(Lr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
|
|
2329
|
+
Er,
|
|
2333
2330
|
{
|
|
2334
2331
|
ref: g,
|
|
2335
2332
|
buttons: [
|
|
2336
2333
|
{
|
|
2337
2334
|
id: "download",
|
|
2338
|
-
onClick:
|
|
2335
|
+
onClick: Je,
|
|
2339
2336
|
icon: "download",
|
|
2340
2337
|
ariaLabel: "Download image"
|
|
2341
2338
|
},
|
|
@@ -2349,95 +2346,88 @@ const Bn = 300, zn = ({
|
|
|
2349
2346
|
}
|
|
2350
2347
|
)),
|
|
2351
2348
|
/* @__PURE__ */ r.createElement(
|
|
2352
|
-
|
|
2349
|
+
Sr,
|
|
2353
2350
|
{
|
|
2354
2351
|
scrolling: c.toString(),
|
|
2355
|
-
isDraggable:
|
|
2352
|
+
isDraggable: rt.toString(),
|
|
2356
2353
|
ref: B,
|
|
2357
|
-
onMouseMove:
|
|
2358
|
-
onMouseDown:
|
|
2359
|
-
onMouseUp:
|
|
2354
|
+
onMouseMove: tt,
|
|
2355
|
+
onMouseDown: et,
|
|
2356
|
+
onMouseUp: nt
|
|
2360
2357
|
},
|
|
2361
2358
|
f !== null && /* @__PURE__ */ r.createElement(
|
|
2362
|
-
|
|
2359
|
+
pr,
|
|
2363
2360
|
k(h({
|
|
2364
2361
|
changeZoom: (w) => {
|
|
2365
2362
|
a(w);
|
|
2366
2363
|
},
|
|
2367
2364
|
zoomState: i
|
|
2368
2365
|
}, e), {
|
|
2369
|
-
image:
|
|
2366
|
+
image: D[f]
|
|
2370
2367
|
})
|
|
2371
2368
|
)
|
|
2372
2369
|
),
|
|
2373
2370
|
/* @__PURE__ */ r.createElement(
|
|
2374
|
-
|
|
2371
|
+
wr,
|
|
2375
2372
|
{
|
|
2376
2373
|
ref: H,
|
|
2377
2374
|
show: p.toString(),
|
|
2378
2375
|
buttons: [
|
|
2379
2376
|
{
|
|
2380
2377
|
id: "previous",
|
|
2381
|
-
onClick:
|
|
2378
|
+
onClick: Le,
|
|
2382
2379
|
icon: "caret-left",
|
|
2383
2380
|
circle: !0,
|
|
2384
|
-
show:
|
|
2381
|
+
show: J,
|
|
2385
2382
|
className: "nav-left",
|
|
2386
2383
|
ariaLabel: "Navigate to previous image"
|
|
2387
2384
|
},
|
|
2388
2385
|
{
|
|
2389
2386
|
id: "next",
|
|
2390
|
-
onClick:
|
|
2387
|
+
onClick: Me,
|
|
2391
2388
|
icon: "caret-right",
|
|
2392
2389
|
circle: !0,
|
|
2393
|
-
show:
|
|
2390
|
+
show: ee,
|
|
2394
2391
|
className: "nav-right",
|
|
2395
2392
|
ariaLabel: "Navigate to next image"
|
|
2396
2393
|
}
|
|
2397
2394
|
]
|
|
2398
2395
|
}
|
|
2399
2396
|
),
|
|
2400
|
-
/* @__PURE__ */ r.createElement(
|
|
2401
|
-
|
|
2397
|
+
/* @__PURE__ */ r.createElement(Mr, { show: p.toString() }, /* @__PURE__ */ r.createElement(
|
|
2398
|
+
xr,
|
|
2402
2399
|
{
|
|
2403
2400
|
buttons: [
|
|
2404
2401
|
{
|
|
2405
2402
|
id: "zoom-out",
|
|
2406
|
-
onClick: () =>
|
|
2403
|
+
onClick: () => ke(!1),
|
|
2407
2404
|
icon: "zoom-out",
|
|
2408
2405
|
ariaLabel: "Zoom out"
|
|
2409
2406
|
},
|
|
2410
2407
|
{
|
|
2411
2408
|
id: "zoom-in",
|
|
2412
|
-
onClick: () =>
|
|
2409
|
+
onClick: () => ke(!0),
|
|
2413
2410
|
icon: "zoom-in",
|
|
2414
2411
|
ariaLabel: "Zoom in"
|
|
2415
2412
|
}
|
|
2416
2413
|
]
|
|
2417
2414
|
}
|
|
2418
|
-
), /* @__PURE__ */ r.createElement(
|
|
2415
|
+
), /* @__PURE__ */ r.createElement($r, { variant: "span" }, Math.trunc(i * 100), "%"))
|
|
2419
2416
|
)), /* @__PURE__ */ r.createElement(
|
|
2420
|
-
|
|
2417
|
+
yr,
|
|
2421
2418
|
{
|
|
2422
2419
|
ref: b,
|
|
2423
|
-
onClick:
|
|
2420
|
+
onClick: j,
|
|
2424
2421
|
onKeyDown: (w) => {
|
|
2425
|
-
w.key === "Enter" && (w.preventDefault(),
|
|
2422
|
+
w.key === "Enter" && (w.preventDefault(), j());
|
|
2426
2423
|
},
|
|
2427
|
-
alignment: _,
|
|
2428
2424
|
tabIndex: 0
|
|
2429
2425
|
},
|
|
2430
|
-
/* @__PURE__ */ r.createElement(
|
|
2431
|
-
Dr,
|
|
2432
|
-
k(h({}, e), {
|
|
2433
|
-
alt: ((He = e.alt) == null ? void 0 : He.toString()) || "",
|
|
2434
|
-
ref: z
|
|
2435
|
-
})
|
|
2436
|
-
)
|
|
2426
|
+
/* @__PURE__ */ r.createElement(Rr, k(h({}, e), { alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || "" }))
|
|
2437
2427
|
));
|
|
2438
|
-
},
|
|
2428
|
+
}, $e = N(
|
|
2439
2429
|
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(
|
|
2440
|
-
|
|
2430
|
+
br,
|
|
2441
2431
|
{
|
|
2442
2432
|
ref: o,
|
|
2443
2433
|
show: e,
|
|
@@ -2445,7 +2435,7 @@ const Bn = 300, zn = ({
|
|
|
2445
2435
|
},
|
|
2446
2436
|
t.map(
|
|
2447
2437
|
({ id: s, circle: i = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(
|
|
2448
|
-
|
|
2438
|
+
vr,
|
|
2449
2439
|
{
|
|
2450
2440
|
key: s + p.toString(),
|
|
2451
2441
|
circle: i.toString(),
|
|
@@ -2456,33 +2446,29 @@ const Bn = 300, zn = ({
|
|
|
2456
2446
|
className: m,
|
|
2457
2447
|
"aria-label": l
|
|
2458
2448
|
},
|
|
2459
|
-
/* @__PURE__ */ r.createElement(
|
|
2449
|
+
/* @__PURE__ */ r.createElement(G, { size: 24, symbol: { type: "Svg", content: c } })
|
|
2460
2450
|
)
|
|
2461
2451
|
)
|
|
2462
2452
|
)
|
|
2463
|
-
),
|
|
2453
|
+
), qe = y.div`
|
|
2464
2454
|
transition: opacity 0.3s ease 0s;
|
|
2465
2455
|
z-index: 5;
|
|
2466
2456
|
${(e) => e.show === "true" ? "opacity: 1;" : L`
|
|
2467
2457
|
opacity: 0;
|
|
2468
2458
|
pointer-events: none;
|
|
2469
2459
|
`}
|
|
2470
|
-
`,
|
|
2460
|
+
`, yr = y(we)`
|
|
2471
2461
|
display: inline-block !important;
|
|
2472
|
-
|
|
2473
|
-
${(e) => e.alignment === "right" && L`
|
|
2474
|
-
float: right;
|
|
2475
|
-
`}
|
|
2476
|
-
`, xr = y(Ge)`
|
|
2462
|
+
`, br = y(qe)`
|
|
2477
2463
|
position: fixed;
|
|
2478
2464
|
display: flex;
|
|
2479
2465
|
gap: ${(e) => {
|
|
2480
2466
|
var t;
|
|
2481
2467
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2482
2468
|
}};
|
|
2483
|
-
`,
|
|
2484
|
-
width: ${
|
|
2485
|
-
height: ${
|
|
2469
|
+
`, ge = "39px", vr = y(ae)`
|
|
2470
|
+
width: ${ge};
|
|
2471
|
+
height: ${ge};
|
|
2486
2472
|
display: flex;
|
|
2487
2473
|
justify-content: center;
|
|
2488
2474
|
align-items: center;
|
|
@@ -2508,7 +2494,7 @@ const Bn = 300, zn = ({
|
|
|
2508
2494
|
}
|
|
2509
2495
|
|
|
2510
2496
|
&:focus-visible {
|
|
2511
|
-
${
|
|
2497
|
+
${F(e)}
|
|
2512
2498
|
outline-color: #ffffff;
|
|
2513
2499
|
background-color: transparent;
|
|
2514
2500
|
|
|
@@ -2530,7 +2516,7 @@ const Bn = 300, zn = ({
|
|
|
2530
2516
|
outline-color: #ffffff;
|
|
2531
2517
|
}
|
|
2532
2518
|
&:focus-visible {
|
|
2533
|
-
${
|
|
2519
|
+
${F(e)}
|
|
2534
2520
|
}
|
|
2535
2521
|
`;
|
|
2536
2522
|
}}
|
|
@@ -2545,7 +2531,7 @@ const Bn = 300, zn = ({
|
|
|
2545
2531
|
opacity: 0;
|
|
2546
2532
|
pointer-events: none;
|
|
2547
2533
|
`}
|
|
2548
|
-
`,
|
|
2534
|
+
`, Er = y($e)`
|
|
2549
2535
|
top: ${(e) => {
|
|
2550
2536
|
var t;
|
|
2551
2537
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2554,7 +2540,7 @@ const Bn = 300, zn = ({
|
|
|
2554
2540
|
var t;
|
|
2555
2541
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2556
2542
|
}};
|
|
2557
|
-
`,
|
|
2543
|
+
`, xr = y($e)`
|
|
2558
2544
|
bottom: ${(e) => {
|
|
2559
2545
|
var t;
|
|
2560
2546
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2562,11 +2548,11 @@ const Bn = 300, zn = ({
|
|
|
2562
2548
|
width: 100%;
|
|
2563
2549
|
align-items: center;
|
|
2564
2550
|
justify-content: center;
|
|
2565
|
-
`,
|
|
2551
|
+
`, wr = y($e)`
|
|
2566
2552
|
display: block;
|
|
2567
2553
|
button {
|
|
2568
2554
|
position: fixed;
|
|
2569
|
-
top: calc(50% - calc(${
|
|
2555
|
+
top: calc(50% - calc(${ge} / 2));
|
|
2570
2556
|
&:first-child {
|
|
2571
2557
|
left: ${(e) => {
|
|
2572
2558
|
var t;
|
|
@@ -2580,7 +2566,7 @@ const Bn = 300, zn = ({
|
|
|
2580
2566
|
}};
|
|
2581
2567
|
}
|
|
2582
2568
|
}
|
|
2583
|
-
`,
|
|
2569
|
+
`, $r = y(_)`
|
|
2584
2570
|
position: fixed;
|
|
2585
2571
|
bottom: ${(e) => {
|
|
2586
2572
|
var t;
|
|
@@ -2599,21 +2585,21 @@ const Bn = 300, zn = ({
|
|
|
2599
2585
|
var t;
|
|
2600
2586
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2601
2587
|
}};
|
|
2602
|
-
`,
|
|
2588
|
+
`, Qe = y(qe)`
|
|
2603
2589
|
position: absolute;
|
|
2604
2590
|
width: 100vw;
|
|
2605
2591
|
height: 88px;
|
|
2606
2592
|
left: 0px;
|
|
2607
2593
|
z-index: 5;
|
|
2608
|
-
`,
|
|
2594
|
+
`, kr = y.div`
|
|
2609
2595
|
width: 100%;
|
|
2610
|
-
`,
|
|
2596
|
+
`, Lr = y(Qe)`
|
|
2611
2597
|
top: 0px;
|
|
2612
2598
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2613
|
-
`,
|
|
2599
|
+
`, Mr = y(Qe)`
|
|
2614
2600
|
bottom: 0px;
|
|
2615
2601
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2616
|
-
`,
|
|
2602
|
+
`, Sr = y.div`
|
|
2617
2603
|
width: 100%;
|
|
2618
2604
|
height: 100vh;
|
|
2619
2605
|
overflow: auto;
|
|
@@ -2622,36 +2608,36 @@ const Bn = 300, zn = ({
|
|
|
2622
2608
|
white-space: nowrap;
|
|
2623
2609
|
justify-content: center;
|
|
2624
2610
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2625
|
-
`,
|
|
2611
|
+
`, Rr = y.img`
|
|
2626
2612
|
cursor: pointer;
|
|
2627
|
-
`,
|
|
2613
|
+
`, Hr = Cr, Tr = N(
|
|
2628
2614
|
(l, a) => {
|
|
2629
2615
|
var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2630
|
-
}, close: s = !1 } = u, i =
|
|
2631
|
-
const [c, m] =
|
|
2632
|
-
|
|
2616
|
+
}, close: s = !1 } = u, i = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2617
|
+
const [c, m] = je(), [p, d] = Ke(!0), f = R(), C = R(q()), x = Y("Escape");
|
|
2618
|
+
E(() => {
|
|
2633
2619
|
(x || s) && m(!1);
|
|
2634
|
-
}, [x, s]),
|
|
2620
|
+
}, [x, s]), E(() => {
|
|
2635
2621
|
c && f.current && f.current.focus();
|
|
2636
|
-
}, [c, f.current]),
|
|
2622
|
+
}, [c, f.current]), ce("router:changed", () => {
|
|
2637
2623
|
m(!1);
|
|
2638
2624
|
});
|
|
2639
|
-
const
|
|
2625
|
+
const v = T(
|
|
2640
2626
|
(g) => {
|
|
2641
2627
|
m(!1), o(g);
|
|
2642
2628
|
},
|
|
2643
2629
|
[o, m]
|
|
2644
2630
|
);
|
|
2645
|
-
|
|
2631
|
+
Ce(a, () => ({
|
|
2646
2632
|
close() {
|
|
2647
2633
|
m(!1);
|
|
2648
2634
|
}
|
|
2649
2635
|
}));
|
|
2650
|
-
const b = T(() =>
|
|
2636
|
+
const b = T(() => ve(C.current, () => {
|
|
2651
2637
|
m(!1);
|
|
2652
2638
|
}), [C.current]);
|
|
2653
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
2654
|
-
|
|
2639
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_e, { visible: c, onClick: v }, /* @__PURE__ */ r.createElement(
|
|
2640
|
+
Br,
|
|
2655
2641
|
k(h({
|
|
2656
2642
|
className: M(
|
|
2657
2643
|
e,
|
|
@@ -2664,13 +2650,13 @@ const Bn = 300, zn = ({
|
|
|
2664
2650
|
ref: d
|
|
2665
2651
|
}),
|
|
2666
2652
|
/* @__PURE__ */ r.createElement(
|
|
2667
|
-
|
|
2653
|
+
xe,
|
|
2668
2654
|
{
|
|
2669
2655
|
onClick: () => m(!1),
|
|
2670
2656
|
tabIndex: 0,
|
|
2671
2657
|
ref: f
|
|
2672
2658
|
},
|
|
2673
|
-
/* @__PURE__ */ r.createElement(
|
|
2659
|
+
/* @__PURE__ */ r.createElement(G, { symbol: { type: "Svg", content: "close" } })
|
|
2674
2660
|
),
|
|
2675
2661
|
t
|
|
2676
2662
|
)), r.cloneElement(n, {
|
|
@@ -2679,7 +2665,7 @@ const Bn = 300, zn = ({
|
|
|
2679
2665
|
}
|
|
2680
2666
|
}));
|
|
2681
2667
|
}
|
|
2682
|
-
),
|
|
2668
|
+
), Dr = Tr, Br = y.div`
|
|
2683
2669
|
font-family: ${(e) => {
|
|
2684
2670
|
var t;
|
|
2685
2671
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2695,10 +2681,10 @@ const Bn = 300, zn = ({
|
|
|
2695
2681
|
var t;
|
|
2696
2682
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2697
2683
|
}};
|
|
2698
|
-
${(e) =>
|
|
2684
|
+
${(e) => Ye(e)}
|
|
2699
2685
|
${(e) => e.css && e.css}
|
|
2700
2686
|
outline: none;
|
|
2701
|
-
`,
|
|
2687
|
+
`, zr = ({
|
|
2702
2688
|
className: e,
|
|
2703
2689
|
trigger: t,
|
|
2704
2690
|
header: n = "",
|
|
@@ -2710,15 +2696,15 @@ const Bn = 300, zn = ({
|
|
|
2710
2696
|
cancelLabel: a = "",
|
|
2711
2697
|
confirmLabel: l = ""
|
|
2712
2698
|
}) => {
|
|
2713
|
-
const u =
|
|
2699
|
+
const u = R(), c = T(() => {
|
|
2714
2700
|
var p;
|
|
2715
2701
|
s(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2716
2702
|
}, [s]), m = T(() => {
|
|
2717
2703
|
var p;
|
|
2718
2704
|
i(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2719
2705
|
}, [i]);
|
|
2720
|
-
return /* @__PURE__ */ r.createElement(
|
|
2721
|
-
},
|
|
2706
|
+
return /* @__PURE__ */ r.createElement(Nr, { className: e, trigger: t, ref: u, onOverlayClick: c }, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Vr, { onClick: m }, l), a && /* @__PURE__ */ r.createElement(Wr, { onClick: c }, a));
|
|
2707
|
+
}, Zo = zr, Nr = y(Dr)`
|
|
2722
2708
|
display: block;
|
|
2723
2709
|
|
|
2724
2710
|
span {
|
|
@@ -2736,7 +2722,7 @@ const Bn = 300, zn = ({
|
|
|
2736
2722
|
}};
|
|
2737
2723
|
}
|
|
2738
2724
|
}
|
|
2739
|
-
`,
|
|
2725
|
+
`, Vr = y(ae)`
|
|
2740
2726
|
display: inline-block;
|
|
2741
2727
|
min-width: 50px;
|
|
2742
2728
|
${(e) => {
|
|
@@ -2764,9 +2750,9 @@ const Bn = 300, zn = ({
|
|
|
2764
2750
|
}
|
|
2765
2751
|
|
|
2766
2752
|
&:focus-visible {
|
|
2767
|
-
${
|
|
2753
|
+
${F}
|
|
2768
2754
|
}
|
|
2769
|
-
`,
|
|
2755
|
+
`, Wr = y(ae)`
|
|
2770
2756
|
display: inline-block;
|
|
2771
2757
|
min-width: 50px;
|
|
2772
2758
|
${(e) => {
|
|
@@ -2785,18 +2771,18 @@ const Bn = 300, zn = ({
|
|
|
2785
2771
|
}};
|
|
2786
2772
|
|
|
2787
2773
|
&:focus-visible {
|
|
2788
|
-
${
|
|
2774
|
+
${F};
|
|
2789
2775
|
}
|
|
2790
|
-
`,
|
|
2776
|
+
`, Zr = ({
|
|
2791
2777
|
header: e = "",
|
|
2792
2778
|
link: t = "",
|
|
2793
2779
|
suggestionHeader: n = "",
|
|
2794
2780
|
suggestion: o = ""
|
|
2795
|
-
}) => /* @__PURE__ */ r.createElement(
|
|
2781
|
+
}) => /* @__PURE__ */ r.createElement(Ir, null, /* @__PURE__ */ r.createElement(Or, null, /* @__PURE__ */ r.createElement(_, { variant: "h2" }, "404")), /* @__PURE__ */ r.createElement(Pr, null, /* @__PURE__ */ r.createElement(_, { variant: "h3" }, e), /* @__PURE__ */ r.createElement(Kr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ r.createElement(Fr, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), Io = Zr, Ir = y.div`
|
|
2796
2782
|
display: flex;
|
|
2797
2783
|
flex-wrap: wrap;
|
|
2798
|
-
`,
|
|
2799
|
-
${(e) =>
|
|
2784
|
+
`, Or = y.div`
|
|
2785
|
+
${(e) => ie(e)(
|
|
2800
2786
|
"h2",
|
|
2801
2787
|
L`
|
|
2802
2788
|
padding: 0;
|
|
@@ -2805,7 +2791,7 @@ const Bn = 300, zn = ({
|
|
|
2805
2791
|
font-size: 7em;
|
|
2806
2792
|
`
|
|
2807
2793
|
)}
|
|
2808
|
-
`,
|
|
2794
|
+
`, Pr = y.div`
|
|
2809
2795
|
margin-left: ${(e) => {
|
|
2810
2796
|
var t;
|
|
2811
2797
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2813,7 +2799,7 @@ const Bn = 300, zn = ({
|
|
|
2813
2799
|
|
|
2814
2800
|
${(e) => {
|
|
2815
2801
|
var t;
|
|
2816
|
-
return
|
|
2802
|
+
return ie(e)(
|
|
2817
2803
|
"h3",
|
|
2818
2804
|
L`
|
|
2819
2805
|
text-transform: uppercase;
|
|
@@ -2832,7 +2818,7 @@ const Bn = 300, zn = ({
|
|
|
2832
2818
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2833
2819
|
}};
|
|
2834
2820
|
}
|
|
2835
|
-
`,
|
|
2821
|
+
`, Fr = y.div`
|
|
2836
2822
|
margin-top: ${(e) => {
|
|
2837
2823
|
var t;
|
|
2838
2824
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2843,12 +2829,12 @@ const Bn = 300, zn = ({
|
|
|
2843
2829
|
font-weight: bold;
|
|
2844
2830
|
}
|
|
2845
2831
|
`;
|
|
2846
|
-
class
|
|
2832
|
+
class Ar extends ut {
|
|
2847
2833
|
constructor() {
|
|
2848
2834
|
super(...arguments);
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2835
|
+
re(this, "node");
|
|
2836
|
+
re(this, "onFocusListener");
|
|
2837
|
+
re(this, "state", {
|
|
2852
2838
|
boundFocus: !1
|
|
2853
2839
|
});
|
|
2854
2840
|
}
|
|
@@ -2885,49 +2871,49 @@ class Yr extends ft {
|
|
|
2885
2871
|
) : null;
|
|
2886
2872
|
}
|
|
2887
2873
|
}
|
|
2888
|
-
const
|
|
2874
|
+
const Oo = Ar, Kr = N(
|
|
2889
2875
|
(a, i) => {
|
|
2890
|
-
var l = a, { className: e, description: t, text: n, children: o } = l, s =
|
|
2891
|
-
return /* @__PURE__ */ r.createElement(
|
|
2876
|
+
var l = a, { className: e, description: t, text: n, children: o } = l, s = S(l, ["className", "description", "text", "children"]);
|
|
2877
|
+
return /* @__PURE__ */ r.createElement(we, k(h({ className: M(e, "humany-text-link") }, s), { ref: i }), o, /* @__PURE__ */ r.createElement(Ee, null, n), t ? /* @__PURE__ */ r.createElement(Ue, { html: t, className: "humany-description" }) : null);
|
|
2892
2878
|
}
|
|
2893
2879
|
);
|
|
2894
|
-
var
|
|
2895
|
-
const
|
|
2896
|
-
function
|
|
2897
|
-
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}-${
|
|
2880
|
+
var jr = /* @__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))(jr || {});
|
|
2881
|
+
const Yr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", { className: M(e, "humany-timestamp") }, Xr(n, t)), Po = Yr, We = (e) => `0${e}`.slice(-2);
|
|
2882
|
+
function Xr(e, t) {
|
|
2883
|
+
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)}`;
|
|
2898
2884
|
return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? s : `${u} ${s}`;
|
|
2899
2885
|
}
|
|
2900
|
-
const
|
|
2901
|
-
var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, s =
|
|
2902
|
-
const [l, u] = $(!1), c =
|
|
2903
|
-
const { target: b } =
|
|
2886
|
+
const Ur = (i) => {
|
|
2887
|
+
var a = i, { className: e, children: t, content: n, sticky: o = !1 } = a, s = S(a, ["className", "children", "content", "sticky"]);
|
|
2888
|
+
const [l, u] = $(!1), c = R(q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), C = (v) => {
|
|
2889
|
+
const { target: b } = v;
|
|
2904
2890
|
!m.current || !b || m.current !== b && !m.current.contains(b) && u(!1);
|
|
2905
2891
|
};
|
|
2906
|
-
|
|
2892
|
+
E(() => {
|
|
2907
2893
|
if (!!o)
|
|
2908
2894
|
return window.addEventListener("click", C), () => {
|
|
2909
2895
|
window.removeEventListener("click", C);
|
|
2910
2896
|
};
|
|
2911
2897
|
}, [l, o]);
|
|
2912
2898
|
const x = T(
|
|
2913
|
-
(
|
|
2914
|
-
f(
|
|
2899
|
+
(v, b) => {
|
|
2900
|
+
f(v, m.current), u(b);
|
|
2915
2901
|
},
|
|
2916
2902
|
[f, u]
|
|
2917
2903
|
);
|
|
2918
2904
|
return /* @__PURE__ */ r.createElement(
|
|
2919
|
-
|
|
2905
|
+
_r,
|
|
2920
2906
|
{
|
|
2921
2907
|
ref: m,
|
|
2922
2908
|
className: "humany-tooltip-trigger",
|
|
2923
|
-
onMouseEnter: o ? void 0 : (
|
|
2924
|
-
onMouseLeave: o ? void 0 : (
|
|
2925
|
-
onTouchEnd: o ? (
|
|
2926
|
-
onClick: o ? (
|
|
2909
|
+
onMouseEnter: o ? void 0 : (v) => x(v, !0),
|
|
2910
|
+
onMouseLeave: o ? void 0 : (v) => x(v, !1),
|
|
2911
|
+
onTouchEnd: o ? (v) => x(v, !l) : void 0,
|
|
2912
|
+
onClick: o ? (v) => x(v, !l) : void 0
|
|
2927
2913
|
},
|
|
2928
2914
|
t,
|
|
2929
|
-
l && /* @__PURE__ */ r.createElement(
|
|
2930
|
-
|
|
2915
|
+
l && /* @__PURE__ */ r.createElement(Q, null, /* @__PURE__ */ r.createElement(
|
|
2916
|
+
qr,
|
|
2931
2917
|
h({
|
|
2932
2918
|
className: M(e, "humany-tooltip-container"),
|
|
2933
2919
|
x: p,
|
|
@@ -2936,10 +2922,10 @@ const Qr = (i) => {
|
|
|
2936
2922
|
n
|
|
2937
2923
|
))
|
|
2938
2924
|
);
|
|
2939
|
-
},
|
|
2925
|
+
}, _r = y.div`
|
|
2940
2926
|
display: flex;
|
|
2941
2927
|
align-items: center;
|
|
2942
|
-
`,
|
|
2928
|
+
`, qr = y.div`
|
|
2943
2929
|
color: #ffffff;
|
|
2944
2930
|
background: #161616;
|
|
2945
2931
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2975,7 +2961,7 @@ const Qr = (i) => {
|
|
|
2975
2961
|
let t = "";
|
|
2976
2962
|
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;
|
|
2977
2963
|
}};
|
|
2978
|
-
`,
|
|
2964
|
+
`, Fo = Ur, Qr = (e) => {
|
|
2979
2965
|
const {
|
|
2980
2966
|
in: t,
|
|
2981
2967
|
mountOnEnter: n = !0,
|
|
@@ -3017,7 +3003,7 @@ const Qr = (i) => {
|
|
|
3017
3003
|
}
|
|
3018
3004
|
})();
|
|
3019
3005
|
return /* @__PURE__ */ r.createElement(
|
|
3020
|
-
|
|
3006
|
+
yt,
|
|
3021
3007
|
{
|
|
3022
3008
|
timeout: {
|
|
3023
3009
|
enter: u && u.enter.duration || 0,
|
|
@@ -3029,17 +3015,17 @@ const Qr = (i) => {
|
|
|
3029
3015
|
unmountOnExit: o,
|
|
3030
3016
|
onEnter: (c) => c.clientHeight
|
|
3031
3017
|
},
|
|
3032
|
-
(c) => i && i(c, u &&
|
|
3018
|
+
(c) => i && i(c, u && he.compose(c, u))
|
|
3033
3019
|
);
|
|
3034
|
-
},
|
|
3020
|
+
}, Ao = Qr, Gr = N(
|
|
3035
3021
|
(l, a) => {
|
|
3036
3022
|
var u = l, { className: e, children: t, onClick: n = () => {
|
|
3037
|
-
}, widgetName: o, activationOptions: s } = u, i =
|
|
3023
|
+
}, widgetName: o, activationOptions: s } = u, i = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
3038
3024
|
const c = W(), m = () => {
|
|
3039
3025
|
const { implementation: f } = c.get("$widget");
|
|
3040
3026
|
return f.widgets.get(o);
|
|
3041
3027
|
};
|
|
3042
|
-
|
|
3028
|
+
E(() => {
|
|
3043
3029
|
const f = m();
|
|
3044
3030
|
return f == null || f.activate(s).then(() => f.invoke("attach")), () => {
|
|
3045
3031
|
f == null || f.deactivate();
|
|
@@ -3048,9 +3034,9 @@ const Qr = (i) => {
|
|
|
3048
3034
|
const p = (f) => {
|
|
3049
3035
|
const C = m(), x = f.currentTarget;
|
|
3050
3036
|
if (C) {
|
|
3051
|
-
const
|
|
3037
|
+
const v = () => {
|
|
3052
3038
|
C.invoke("renderState").then(
|
|
3053
|
-
(b) => b ===
|
|
3039
|
+
(b) => b === oe.open ? C.invoke("close") : C.invoke("open")
|
|
3054
3040
|
).then(() => {
|
|
3055
3041
|
C.events.subscribeOnce("widget:area-rendered", (b, g) => {
|
|
3056
3042
|
c.get(
|
|
@@ -3062,13 +3048,13 @@ const Qr = (i) => {
|
|
|
3062
3048
|
});
|
|
3063
3049
|
});
|
|
3064
3050
|
};
|
|
3065
|
-
C.state ===
|
|
3051
|
+
C.state === lt.Deactivated ? C.activate(s).then(() => C.invoke("attach")).then(v) : v();
|
|
3066
3052
|
}
|
|
3067
3053
|
}, d = (f) => {
|
|
3068
3054
|
f.key === "Enter" && (f.preventDefault(), p(f));
|
|
3069
3055
|
};
|
|
3070
3056
|
return /* @__PURE__ */ r.createElement(
|
|
3071
|
-
|
|
3057
|
+
we,
|
|
3072
3058
|
k(h({
|
|
3073
3059
|
className: M(e, "humany-widget-link"),
|
|
3074
3060
|
onKeyDown: d,
|
|
@@ -3081,16 +3067,16 @@ const Qr = (i) => {
|
|
|
3081
3067
|
t
|
|
3082
3068
|
);
|
|
3083
3069
|
}
|
|
3084
|
-
),
|
|
3070
|
+
), Ko = N(
|
|
3085
3071
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3086
|
-
const s = W(), i =
|
|
3072
|
+
const s = W(), i = se(() => {
|
|
3087
3073
|
if (!s)
|
|
3088
3074
|
return null;
|
|
3089
3075
|
const a = s.get("widgetDOMElement");
|
|
3090
3076
|
return !a || !a.childElementCount ? null : a.children[0];
|
|
3091
3077
|
}, [s]);
|
|
3092
|
-
return i ? /* @__PURE__ */ r.createElement(
|
|
3093
|
-
|
|
3078
|
+
return i ? /* @__PURE__ */ r.createElement(Q, { elementId: e, parent: i }, /* @__PURE__ */ r.createElement(
|
|
3079
|
+
Jr,
|
|
3094
3080
|
{
|
|
3095
3081
|
className: M("humany-widget-overlay-outlet", t),
|
|
3096
3082
|
ref: o
|
|
@@ -3098,7 +3084,7 @@ const Qr = (i) => {
|
|
|
3098
3084
|
n
|
|
3099
3085
|
)) : null;
|
|
3100
3086
|
}
|
|
3101
|
-
),
|
|
3087
|
+
), Jr = y.div`
|
|
3102
3088
|
background-color: #ffffff;
|
|
3103
3089
|
position: absolute;
|
|
3104
3090
|
top: 0;
|
|
@@ -3108,102 +3094,102 @@ const Qr = (i) => {
|
|
|
3108
3094
|
z-index: 10;
|
|
3109
3095
|
width: 100%;
|
|
3110
3096
|
height: 100%;
|
|
3111
|
-
`,
|
|
3097
|
+
`, eo = (e, t, n, o, s) => e.getAsync("componentResolver").then((i) => (i.registerComponent(
|
|
3112
3098
|
t,
|
|
3113
|
-
|
|
3114
|
-
),
|
|
3115
|
-
}), t, s))),
|
|
3099
|
+
mt(() => n)
|
|
3100
|
+
), gt(e, t, o || (() => {
|
|
3101
|
+
}), t, s))), jo = eo;
|
|
3116
3102
|
export {
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3103
|
+
Vt as AnchorLink,
|
|
3104
|
+
ae as Button,
|
|
3105
|
+
po as Checkbox,
|
|
3106
|
+
Ot as ColumnContext,
|
|
3107
|
+
Pe as ComponentNodeContext,
|
|
3108
|
+
Pt as ComponentPropertyContext,
|
|
3109
|
+
Zo as Confirm,
|
|
3110
|
+
It as ContainerContext,
|
|
3111
|
+
At as ConversationContext,
|
|
3112
|
+
jr as DateFormats,
|
|
3113
|
+
Bo as Drawer,
|
|
3114
|
+
Rn as DrawerAnimationType,
|
|
3115
|
+
zo as Dropdown,
|
|
3116
|
+
Fn as Empty,
|
|
3117
|
+
No as Grid,
|
|
3118
|
+
Ue as Html,
|
|
3119
|
+
Yn as Icon,
|
|
3120
|
+
Vo as Input,
|
|
3121
|
+
_n as ItemList,
|
|
3122
|
+
Wo as ItemTree,
|
|
3123
|
+
Hr as Lightbox,
|
|
3124
|
+
we as Link,
|
|
3125
|
+
Xn as List,
|
|
3126
|
+
Dr as Modal,
|
|
3127
|
+
Io as NotFound,
|
|
3128
|
+
_e as Overlay,
|
|
3129
|
+
Un as Paragraph,
|
|
3130
|
+
Q as Portal,
|
|
3131
|
+
Qn as RouteLink,
|
|
3132
|
+
Ft as RoutingContext,
|
|
3133
|
+
Ve as StyledText,
|
|
3134
|
+
G as SymbolBadge,
|
|
3135
|
+
Oo as TabStop,
|
|
3136
|
+
Ee as Text,
|
|
3137
|
+
Kr as TextLink,
|
|
3138
|
+
Po as Timestamp,
|
|
3139
|
+
Fo as Tooltip,
|
|
3140
|
+
Ao as TransitionComponent,
|
|
3141
|
+
_ as Typography,
|
|
3142
|
+
Gr as WidgetLink,
|
|
3143
|
+
Ko as WidgetOverlayOutlet,
|
|
3144
|
+
F as borderTabStyle,
|
|
3145
|
+
Ne as browser,
|
|
3146
|
+
vn as buttonCss,
|
|
3147
|
+
Ye as contentBox,
|
|
3162
3148
|
V as convertToStringAttributes,
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3149
|
+
ho as createEmptyComponent,
|
|
3150
|
+
jo as createReactComponent,
|
|
3151
|
+
zt as defaultRenderInstructions,
|
|
3152
|
+
St as embeddedLinkMapper,
|
|
3153
|
+
Ht as filterCssProps,
|
|
3154
|
+
Rt as filterCssPropsStyle,
|
|
3155
|
+
Tt as genericHashLink,
|
|
3156
|
+
Do as genericHtml,
|
|
3157
|
+
ie as headingElement,
|
|
3158
|
+
Bt as imageLightboxRenderer,
|
|
3159
|
+
Ro as invertedHoverButton,
|
|
3160
|
+
To as itemList,
|
|
3161
|
+
En as linkTabStyle,
|
|
3162
|
+
xn as list,
|
|
3163
|
+
Ho as paddedBorderTabStyle,
|
|
3164
|
+
Dt as processHtmlString,
|
|
3165
|
+
he as transitionComposer,
|
|
3166
|
+
go as useAction,
|
|
3167
|
+
Co as useChildren,
|
|
3168
|
+
yo as useColumns,
|
|
3169
|
+
bo as useComponent,
|
|
3170
|
+
ye as useComponentDescriptor,
|
|
3171
|
+
be as useComponentNode,
|
|
3186
3172
|
U as useComponentPlatform,
|
|
3187
3173
|
W as useContainer,
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3174
|
+
en as useContext,
|
|
3175
|
+
vo as useConversation,
|
|
3176
|
+
Eo as useDispatch,
|
|
3191
3177
|
I as useEventListener,
|
|
3192
|
-
|
|
3178
|
+
on as useEvents,
|
|
3193
3179
|
O as useIsMounted,
|
|
3194
|
-
|
|
3180
|
+
xo as useIsTabbing,
|
|
3195
3181
|
Y as useKeyPress,
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3182
|
+
wo as useLayout,
|
|
3183
|
+
Fe as usePrevious,
|
|
3184
|
+
$o as useProperties,
|
|
3185
|
+
ko as useRenderState,
|
|
3186
|
+
Lo as useRouteData,
|
|
3187
|
+
Ae as useRouter,
|
|
3188
|
+
Ke as useScroll,
|
|
3189
|
+
Mo as useSettings,
|
|
3190
|
+
je as useToggle,
|
|
3191
|
+
So as useTransitionEnd,
|
|
3192
|
+
ve as useUniqueMenu,
|
|
3193
|
+
ce as useWidgetEvent
|
|
3208
3194
|
};
|
|
3209
3195
|
//# sourceMappingURL=index.js.map
|