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