@telia-ace/widget-ui 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dropdown/use-position.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/lightbox.d.ts +8 -2
- package/dist/components/loader.d.ts +10 -0
- package/dist/components/portal.d.ts +3 -2
- package/dist/components/widget-overlay-outlet.d.ts +8 -0
- package/dist/components/zoomable-img.d.ts +9 -0
- package/dist/create-react-component.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-action.d.ts +1 -1
- package/dist/hooks/use-component-node.d.ts +1 -1
- package/dist/hooks/use-component-platform.d.ts +1 -1
- package/dist/hooks/use-component.d.ts +1 -1
- package/dist/hooks/use-context.d.ts +1 -1
- package/dist/hooks/use-events.d.ts +1 -1
- package/dist/hooks/use-is-tabbing.d.ts +2 -0
- package/dist/hooks/use-layout.d.ts +1 -1
- package/dist/hooks/use-render-state.d.ts +1 -1
- package/dist/hooks/use-route-data.d.ts +1 -1
- package/dist/hooks/use-toggle.d.ts +1 -1
- package/dist/hooks/use-widget-event.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1952 -1143
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/utils/animations.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/render-instructions.d.ts +2 -1
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
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 ne = Object.getOwnPropertySymbols;
|
|
4
|
+
var He = Object.prototype.hasOwnProperty, ze = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var me = (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
|
+
He.call(t, n) && me(e, n, t[n]);
|
|
8
|
+
if (ne)
|
|
9
|
+
for (var n of ne(t))
|
|
10
|
+
ze.call(t, n) && me(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, $ = (e, t) => lt(e, ut(t));
|
|
13
|
+
var S = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var
|
|
19
|
-
t.indexOf(
|
|
15
|
+
for (var o in e)
|
|
16
|
+
He.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && ne)
|
|
18
|
+
for (var o of ne(e))
|
|
19
|
+
t.indexOf(o) < 0 && ze.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
|
|
22
|
+
var re = (e, t, n) => (me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
|
+
import C, { css as L, keyframes as We } from "styled-components";
|
|
24
|
+
import { kebabCase as mt, appendClassNames as M, uuid as q, removeNullAndUndefinedValues as De, Logger as de } from "@telia-ace/widget-utilities";
|
|
25
|
+
import r, { forwardRef as N, createContext as Q, useContext as X, useState as k, useEffect as w, useRef as R, useCallback as H, useImperativeHandle as Ce, useMemo as ie, Component as dt, lazy as ft } from "react";
|
|
26
|
+
import { CSSTransition as Ie, Transition as ht } from "react-transition-group";
|
|
27
|
+
import { Container as pt, WidgetState as gt } from "@webprovisions/platform";
|
|
28
|
+
import { ComponentPlatform as Ct, asDescriptor as yt, createEventSubscriber as bt, ComponentQuery as vt, WidgetRenderState as oe, extendComponent as wt } from "@telia-ace/widget-core";
|
|
29
|
+
import { createPortal as Et } from "react-dom";
|
|
30
|
+
import Be from "htmr";
|
|
31
|
+
import { HistoryMode as Te, getSpecificWidgetPath as xt } from "@telia-ace/widget-routing";
|
|
32
|
+
import { Link as fe } from "react-router-dom";
|
|
33
|
+
const kt = (e) => e === "entering" || e === "entered", $t = (e) => e === "exiting" || e === "exited", K = {
|
|
33
34
|
fade: {
|
|
34
35
|
in: "opacity: 1;",
|
|
35
36
|
out: "opacity: 0;"
|
|
@@ -54,29 +55,29 @@ const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exitin
|
|
|
54
55
|
in: "transform: scale(1);",
|
|
55
56
|
out: "transform: scale(0);"
|
|
56
57
|
}
|
|
57
|
-
},
|
|
58
|
+
}, Lt = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], he = {
|
|
58
59
|
compose: (e = "exited", t) => {
|
|
59
|
-
const { enter: n, exit:
|
|
60
|
-
if (
|
|
61
|
-
return
|
|
62
|
-
${
|
|
63
|
-
transition: ${
|
|
60
|
+
const { enter: n, exit: o } = t, i = n.transitionKeys.split(" "), s = Lt.indexOf(i[0]) > -1 ? "transform" : "opacity";
|
|
61
|
+
if (kt(e))
|
|
62
|
+
return i && i.length > 0 ? L`
|
|
63
|
+
${i && i.length > 0 && i.map((l) => K[l] ? K[l].in : "")}
|
|
64
|
+
transition: ${s} ${n.duration}ms ${n.easing};
|
|
64
65
|
` : "";
|
|
65
|
-
const a =
|
|
66
|
-
${
|
|
66
|
+
const a = i && i.length > 0 && L`
|
|
67
|
+
${i.map((l) => K[l] ? K[l].out : "")}
|
|
67
68
|
`;
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
return
|
|
69
|
+
if ($t(e)) {
|
|
70
|
+
const l = o.transitionKeys.split(" ");
|
|
71
|
+
return l && l.length > 0 && e === "exiting" ? L`
|
|
71
72
|
${a};
|
|
72
|
-
${
|
|
73
|
-
transition: ${
|
|
73
|
+
${l.map((u) => K[u] ? K[u].out : "")}
|
|
74
|
+
transition: ${s} ${o.duration}ms ${o.easing};
|
|
74
75
|
` : a;
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
composeViewTransition: (e, t, n) => {
|
|
78
79
|
if (t === "slide")
|
|
79
|
-
return
|
|
80
|
+
return he.compose(e, {
|
|
80
81
|
enter: {
|
|
81
82
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
82
83
|
duration: 500
|
|
@@ -87,7 +88,7 @@ const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exitin
|
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
90
|
if (t === "fade")
|
|
90
|
-
return
|
|
91
|
+
return he.compose(e, {
|
|
91
92
|
enter: {
|
|
92
93
|
transitionKeys: "fade",
|
|
93
94
|
duration: 500
|
|
@@ -98,129 +99,132 @@ const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exitin
|
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
},
|
|
101
|
-
get: (e) =>
|
|
102
|
+
get: (e) => K[e]
|
|
102
103
|
};
|
|
103
|
-
var
|
|
104
|
-
const
|
|
104
|
+
var pe = /* @__PURE__ */ ((e) => (e.Opera = "opera", e.Chrome = "chrome", e.Firefox = "firefox", e.Safari = "safari", e.Edge = "edge", e.EdgeChromium = "edge-chromium", e.Blink = "blink", e.IE = "internet-explorer", e))(pe || {});
|
|
105
|
+
const Ne = () => {
|
|
105
106
|
const {
|
|
106
107
|
opr: e,
|
|
107
108
|
opera: t,
|
|
108
109
|
InstallTrigger: n,
|
|
109
|
-
HTMLElement:
|
|
110
|
-
safari:
|
|
111
|
-
documentMode:
|
|
110
|
+
HTMLElement: o,
|
|
111
|
+
safari: i,
|
|
112
|
+
documentMode: s,
|
|
112
113
|
StyleMedia: a,
|
|
113
|
-
chrome:
|
|
114
|
-
CSS:
|
|
114
|
+
chrome: l,
|
|
115
|
+
CSS: u
|
|
115
116
|
} = window, c = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
|
|
116
117
|
if (c)
|
|
117
118
|
return "opera";
|
|
118
119
|
if (n)
|
|
119
120
|
return "firefox";
|
|
120
|
-
const
|
|
121
|
-
if (/constructor/i.test(
|
|
121
|
+
const m = ((f) => f.toString() === "[object SafariRemoteNotification]")(!i || typeof i != "undefined" && i.pushNotification);
|
|
122
|
+
if (/constructor/i.test(o) || m)
|
|
122
123
|
return "safari";
|
|
123
|
-
const
|
|
124
|
-
if (
|
|
124
|
+
const p = !!s;
|
|
125
|
+
if (p)
|
|
125
126
|
return "internet-explorer";
|
|
126
|
-
if (!
|
|
127
|
+
if (!p && !!a)
|
|
127
128
|
return "edge";
|
|
128
|
-
const d = !!
|
|
129
|
+
const d = !!l && (!!l.webstore || !!l.runtime);
|
|
129
130
|
if (d)
|
|
130
131
|
return "chrome";
|
|
131
132
|
if (d && navigator.userAgent.indexOf("Edg") !== -1)
|
|
132
133
|
return "edge-chromium";
|
|
133
|
-
if ((d || c) && !!
|
|
134
|
+
if ((d || c) && !!u)
|
|
134
135
|
return "blink";
|
|
135
|
-
},
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
|
|
136
|
+
}, Mt = ["string", "number"], V = (e) => Object.keys(e).reduce((t, n) => {
|
|
137
|
+
const o = typeof e[n] == "undefined" ? "" : e[n], i = typeof o;
|
|
138
|
+
if (Mt.indexOf(i) > -1) {
|
|
139
|
+
const s = n.substring(0, 5);
|
|
140
|
+
s === "data-" || s === "aria-" ? t[mt(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
|
|
140
141
|
} else
|
|
141
|
-
t[n] =
|
|
142
|
+
t[n] = o;
|
|
142
143
|
return t;
|
|
143
|
-
}, {}),
|
|
144
|
-
var
|
|
144
|
+
}, {}), h1 = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(sn, h({}, t)) : null, St = (e) => new RegExp("^#", "i").test(e), Rt = (e) => (o) => {
|
|
145
|
+
var i = o, { children: t } = i, n = S(i, ["children"]);
|
|
145
146
|
const {
|
|
146
|
-
implementation:
|
|
147
|
+
implementation: s,
|
|
147
148
|
name: a
|
|
148
|
-
} = e.get("$widget"), { href:
|
|
149
|
-
if (
|
|
150
|
-
return /* @__PURE__ */ r.createElement(
|
|
149
|
+
} = e.get("$widget"), { href: l = "" } = n;
|
|
150
|
+
if (St(l))
|
|
151
|
+
return /* @__PURE__ */ r.createElement(Nt, {
|
|
151
152
|
smooth: !0,
|
|
152
|
-
to:
|
|
153
|
+
to: l
|
|
153
154
|
}, t);
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
158
|
-
return /* @__PURE__ */ r.createElement(
|
|
159
|
-
widgetName:
|
|
155
|
+
const u = s.bindings.map((p) => p.replace(/\./g, "\\.")).join("|"), m = new RegExp(`^((http[s]?:)?//)?(${u})/([^\\s]+)`).exec(l);
|
|
156
|
+
if (m && m.length >= 4) {
|
|
157
|
+
const p = m[4];
|
|
158
|
+
if (s.widgets.get(p) && !p.startsWith("blob?") && !p.startsWith(a))
|
|
159
|
+
return /* @__PURE__ */ r.createElement(t1, {
|
|
160
|
+
widgetName: p
|
|
160
161
|
}, t);
|
|
161
162
|
}
|
|
162
|
-
return /* @__PURE__ */ r.createElement("a",
|
|
163
|
-
},
|
|
163
|
+
return /* @__PURE__ */ r.createElement("a", h({}, n), t);
|
|
164
|
+
}, Oe = (e) => {
|
|
164
165
|
const t = {};
|
|
165
166
|
return Object.keys(e).forEach((n) => {
|
|
166
167
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
167
168
|
}), t;
|
|
168
|
-
},
|
|
169
|
+
}, Ht = L`
|
|
169
170
|
${(e) => {
|
|
170
171
|
let t = "";
|
|
171
|
-
return Object.keys(
|
|
172
|
+
return Object.keys(Oe(e)).forEach((n) => {
|
|
172
173
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
173
174
|
}), t;
|
|
174
175
|
}}
|
|
175
|
-
`,
|
|
176
|
+
`, zt = (e, t) => {
|
|
176
177
|
let n = "";
|
|
177
|
-
const
|
|
178
|
+
const o = () => {
|
|
178
179
|
n = "";
|
|
179
|
-
},
|
|
180
|
+
}, i = (p) => {
|
|
180
181
|
const d = document.getElementById(n);
|
|
181
|
-
return d !== null ? (
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
return d !== null ? (p(d), o(), !0) : !1;
|
|
183
|
+
}, s = (p) => (p.preventDefault(), o(), e.onClick && e.onClick(p), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && i(
|
|
184
|
+
e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())
|
|
185
|
+
), !1), m = e, { scroll: a, smooth: l, to: u } = m, c = S(m, ["scroll", "smooth", "to"]);
|
|
186
|
+
return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, $(h({}, c), {
|
|
187
|
+
onClick: s
|
|
185
188
|
}), e.children);
|
|
186
|
-
},
|
|
187
|
-
let n = e,
|
|
189
|
+
}, se = (e, t) => {
|
|
190
|
+
let n = e, o = "";
|
|
188
191
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(e))
|
|
189
192
|
n = e;
|
|
190
193
|
else {
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
n =
|
|
194
|
+
const s = e.match(/h1|h2|h3|h4|h5|h6/);
|
|
195
|
+
if (s != null && s[0]) {
|
|
196
|
+
n = s[0];
|
|
194
197
|
const [a] = e.split(n);
|
|
195
|
-
|
|
198
|
+
o = a;
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
|
-
const
|
|
199
|
-
return
|
|
200
|
-
${(
|
|
201
|
+
const i = (s, a, l) => l[s] ? `${a}${l[s]}` : `${a}${s}`;
|
|
202
|
+
return L`
|
|
203
|
+
${(s) => i(n, o, s.theme.typographyVariantMapping || {})} {
|
|
201
204
|
${t}
|
|
202
205
|
}
|
|
203
206
|
`;
|
|
204
207
|
};
|
|
205
|
-
function
|
|
206
|
-
return t ?
|
|
208
|
+
function Dt(e, t) {
|
|
209
|
+
return t ? Be(e, t) : Be(e);
|
|
207
210
|
}
|
|
208
|
-
const
|
|
209
|
-
attrs:
|
|
210
|
-
|
|
211
|
+
const Bt = (e) => (t) => /* @__PURE__ */ r.createElement(Sn, {
|
|
212
|
+
attrs: t,
|
|
213
|
+
htmlBody: e
|
|
214
|
+
}), Tt = (e, t) => ({
|
|
211
215
|
transform: {
|
|
212
|
-
a:
|
|
213
|
-
img:
|
|
216
|
+
a: Rt(e),
|
|
217
|
+
img: Bt(t)
|
|
214
218
|
}
|
|
215
|
-
}),
|
|
216
|
-
var
|
|
217
|
-
return /* @__PURE__ */ r.createElement(
|
|
219
|
+
}), Nt = (e) => zt(e, "a"), ae = N((i, o) => {
|
|
220
|
+
var s = i, { className: e, children: t } = s, n = S(s, ["className", "children"]);
|
|
221
|
+
return /* @__PURE__ */ r.createElement(Vt, $(h({
|
|
218
222
|
type: "button",
|
|
219
|
-
className:
|
|
220
|
-
},
|
|
221
|
-
ref:
|
|
223
|
+
className: M(e, "humany-button")
|
|
224
|
+
}, V(n)), {
|
|
225
|
+
ref: o
|
|
222
226
|
}), t);
|
|
223
|
-
}),
|
|
227
|
+
}), Vt = C.button`
|
|
224
228
|
-webkit-appearance: button;
|
|
225
229
|
text-transform: none;
|
|
226
230
|
overflow: visible;
|
|
@@ -233,239 +237,274 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
233
237
|
line-height: normal;
|
|
234
238
|
margin: 0;
|
|
235
239
|
padding: 0;
|
|
236
|
-
`,
|
|
237
|
-
var
|
|
240
|
+
`, p1 = (i) => {
|
|
241
|
+
var s = i, {
|
|
238
242
|
onChange: e = () => {
|
|
239
243
|
},
|
|
240
244
|
onEnter: t = () => {
|
|
241
245
|
},
|
|
242
246
|
className: n
|
|
243
|
-
} =
|
|
247
|
+
} = s, o = S(s, [
|
|
244
248
|
"onChange",
|
|
245
249
|
"onEnter",
|
|
246
250
|
"className"
|
|
247
251
|
]);
|
|
248
|
-
return /* @__PURE__ */ r.createElement("input",
|
|
249
|
-
className:
|
|
252
|
+
return /* @__PURE__ */ r.createElement("input", h({
|
|
253
|
+
className: M(n, "humany-checkbox"),
|
|
250
254
|
onKeyDown: (a) => {
|
|
251
255
|
a.key === "Enter" && t(a);
|
|
252
256
|
},
|
|
253
257
|
onChange: (a) => e(a.target.value, a.currentTarget.checked)
|
|
254
|
-
},
|
|
255
|
-
},
|
|
258
|
+
}, V(o)));
|
|
259
|
+
}, Zt = Q(new pt()), Wt = Q(1), Fe = Q({
|
|
256
260
|
id: "",
|
|
257
261
|
type: "",
|
|
258
262
|
name: "",
|
|
259
263
|
branch: ""
|
|
260
|
-
}),
|
|
261
|
-
const n =
|
|
262
|
-
return (
|
|
263
|
-
(t ||
|
|
264
|
-
a.action(e || n,
|
|
264
|
+
}), It = Q({}), Ot = Q(null), ye = () => X(Fe), Z = () => X(Zt), g1 = (e, t) => {
|
|
265
|
+
const n = ye().id, o = Z();
|
|
266
|
+
return (i, s) => {
|
|
267
|
+
(t || o).getAsync("actionResolver").then((a) => {
|
|
268
|
+
a.action(e || n, i, s);
|
|
265
269
|
});
|
|
266
270
|
};
|
|
267
|
-
},
|
|
268
|
-
const t =
|
|
269
|
-
return
|
|
271
|
+
}, be = (e) => {
|
|
272
|
+
const t = X(Fe), n = _(), [o, i] = k();
|
|
273
|
+
return w(() => {
|
|
270
274
|
if ((e || t.id) && n) {
|
|
271
|
-
const
|
|
272
|
-
|
|
275
|
+
const s = n.nodes.get(e || t.id);
|
|
276
|
+
i(s);
|
|
273
277
|
}
|
|
274
|
-
}, [e, t.id, n]),
|
|
275
|
-
},
|
|
276
|
-
const e =
|
|
277
|
-
return
|
|
278
|
+
}, [e, t.id, n]), o;
|
|
279
|
+
}, O = () => {
|
|
280
|
+
const e = R(!1);
|
|
281
|
+
return w(() => (e.current = !0, () => {
|
|
278
282
|
e.current = !1;
|
|
279
283
|
}), []), e;
|
|
280
|
-
},
|
|
281
|
-
const t =
|
|
282
|
-
return
|
|
283
|
-
|
|
284
|
-
|
|
284
|
+
}, _ = (e) => {
|
|
285
|
+
const t = Z(), [n, o] = k(null), i = O();
|
|
286
|
+
return w(() => {
|
|
287
|
+
Ct.getInstance(e || t).then((s) => {
|
|
288
|
+
i.current && o(s);
|
|
285
289
|
});
|
|
286
|
-
}, [
|
|
287
|
-
},
|
|
288
|
-
const e =
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
290
|
+
}, [i]), n;
|
|
291
|
+
}, C1 = () => {
|
|
292
|
+
const e = be(), t = _(), [n, o] = k([]), i = O(), s = H(
|
|
293
|
+
(a) => {
|
|
294
|
+
if (t && i.current) {
|
|
295
|
+
const l = t.getBranch(a), u = a.getChildren(l).map((c) => yt(c));
|
|
296
|
+
o(u);
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
[i, t, o]
|
|
300
|
+
);
|
|
301
|
+
return w(() => {
|
|
302
|
+
e && s(e);
|
|
303
|
+
}, [e, t]), w(() => {
|
|
297
304
|
if (t) {
|
|
298
|
-
const [a,
|
|
299
|
-
return a("components:set-layout", (
|
|
300
|
-
(e === c.node.parent || c.node.parent === t.nodes.root) &&
|
|
301
|
-
}), a("components:node-appended", (
|
|
302
|
-
(e === c.node.parent || c.node.parent === t.nodes.root) &&
|
|
303
|
-
}), a("components:node-removed", (
|
|
304
|
-
(c === e || c === t.nodes.root) &&
|
|
305
|
+
const [a, l] = bt(t.events);
|
|
306
|
+
return a("components:set-layout", (u, c) => {
|
|
307
|
+
(e === c.node.parent || c.node.parent === t.nodes.root) && s(c.node.parent);
|
|
308
|
+
}), a("components:node-appended", (u, c) => {
|
|
309
|
+
(e === c.node.parent || c.node.parent === t.nodes.root) && s(c.node.parent);
|
|
310
|
+
}), a("components:node-removed", (u, { parentNode: c }) => {
|
|
311
|
+
(c === e || c === t.nodes.root) && s(c);
|
|
305
312
|
}), () => {
|
|
306
|
-
|
|
313
|
+
l();
|
|
307
314
|
};
|
|
308
315
|
}
|
|
309
|
-
}, [e, t,
|
|
310
|
-
},
|
|
311
|
-
const n =
|
|
312
|
-
return
|
|
313
|
-
if (
|
|
314
|
-
let
|
|
315
|
-
return (t ||
|
|
316
|
+
}, [e, t, s]), n;
|
|
317
|
+
}, y1 = () => X(Wt), b1 = (e, t) => {
|
|
318
|
+
const n = ye(), o = Z(), [i, s] = k(void 0), a = O(), l = e || n.type || "";
|
|
319
|
+
return w(() => {
|
|
320
|
+
if (l) {
|
|
321
|
+
let u;
|
|
322
|
+
return (t || o).getAsync("componentResolver").then((c) => {
|
|
316
323
|
if (a.current) {
|
|
317
|
-
const
|
|
318
|
-
|
|
324
|
+
const m = c.getComponent(l);
|
|
325
|
+
s(m);
|
|
319
326
|
}
|
|
320
|
-
|
|
321
|
-
a.current &&
|
|
327
|
+
u = c.registerResolver(l, (m) => {
|
|
328
|
+
a.current && s(m);
|
|
322
329
|
});
|
|
323
330
|
}), () => {
|
|
324
|
-
|
|
331
|
+
u && u();
|
|
325
332
|
};
|
|
326
333
|
}
|
|
327
|
-
}, [a,
|
|
328
|
-
},
|
|
329
|
-
const t =
|
|
330
|
-
return
|
|
331
|
-
t &&
|
|
332
|
-
}, [
|
|
334
|
+
}, [a, l, t, o]), i;
|
|
335
|
+
}, Ft = (e) => {
|
|
336
|
+
const t = be(e), n = _(), [o, i] = k({}), s = O();
|
|
337
|
+
return w(() => {
|
|
338
|
+
t && s.current && i(t.attributes.context);
|
|
339
|
+
}, [s, t]), w(() => {
|
|
333
340
|
if (n) {
|
|
334
|
-
const a = n.events.subscribe(
|
|
335
|
-
|
|
336
|
-
|
|
341
|
+
const a = n.events.subscribe(
|
|
342
|
+
"components:context-changed",
|
|
343
|
+
(l, u) => {
|
|
344
|
+
t === u.node && s.current && i(u.node.attributes.context);
|
|
345
|
+
}
|
|
346
|
+
);
|
|
337
347
|
return () => {
|
|
338
348
|
a();
|
|
339
349
|
};
|
|
340
350
|
}
|
|
341
|
-
}, [
|
|
342
|
-
},
|
|
343
|
-
const e =
|
|
344
|
-
return
|
|
351
|
+
}, [s, n]), o;
|
|
352
|
+
}, v1 = () => {
|
|
353
|
+
const e = _(), t = ye(), [n, o] = k([]), [i, s] = k();
|
|
354
|
+
return w(() => {
|
|
345
355
|
if (e && t) {
|
|
346
|
-
const a = new
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}),
|
|
356
|
+
const a = new vt(e).withId(t.id), l = e.actions(a, t.type || q());
|
|
357
|
+
s(l), n !== null && (n.forEach((u) => {
|
|
358
|
+
l.dispatch(u.key, u.data).then((c) => u.resolve(c)).catch((c) => u.reject(c));
|
|
359
|
+
}), o(null));
|
|
350
360
|
}
|
|
351
|
-
}, [e, t.id]), (a,
|
|
361
|
+
}, [e, t.id]), (a, l) => n !== null ? new Promise((u, c) => {
|
|
352
362
|
n.push({
|
|
353
363
|
key: a,
|
|
354
|
-
data:
|
|
355
|
-
resolve:
|
|
364
|
+
data: l,
|
|
365
|
+
resolve: u,
|
|
356
366
|
reject: c
|
|
357
367
|
});
|
|
358
|
-
}) :
|
|
359
|
-
},
|
|
360
|
-
const
|
|
368
|
+
}) : i.dispatch(a, l);
|
|
369
|
+
}, I = (e, t, n = window, o = () => !0) => {
|
|
370
|
+
const i = R(() => {
|
|
361
371
|
});
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}, [t]),
|
|
365
|
-
if (!(n &&
|
|
372
|
+
w(() => {
|
|
373
|
+
i.current = t;
|
|
374
|
+
}, [t]), w(() => {
|
|
375
|
+
if (!(n && o()))
|
|
366
376
|
return;
|
|
367
|
-
const a = (
|
|
377
|
+
const a = (l) => i.current(l);
|
|
368
378
|
return n.addEventListener(e, a), () => {
|
|
369
379
|
n.removeEventListener(e, a);
|
|
370
380
|
};
|
|
371
381
|
}, [e, n]);
|
|
372
|
-
},
|
|
373
|
-
const t =
|
|
382
|
+
}, At = (e) => {
|
|
383
|
+
const t = Z(), { events: n } = (e || t).get("$widget");
|
|
374
384
|
return n;
|
|
375
|
-
},
|
|
376
|
-
const [
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
385
|
+
}, w1 = () => {
|
|
386
|
+
const [e, t] = k(!1);
|
|
387
|
+
return w(() => {
|
|
388
|
+
const n = () => {
|
|
389
|
+
t(!1);
|
|
390
|
+
}, o = (i) => {
|
|
391
|
+
i.keyCode === 9 && t(!0);
|
|
392
|
+
};
|
|
393
|
+
return window.addEventListener("keydown", o), window.addEventListener("click", n), () => {
|
|
394
|
+
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
395
|
+
};
|
|
396
|
+
}, []), e;
|
|
397
|
+
}, j = (e, t) => {
|
|
398
|
+
const [n, o] = k(!1), i = H(
|
|
399
|
+
(a) => {
|
|
400
|
+
const { key: l } = a;
|
|
401
|
+
l === e && (o(!0), t && t(a));
|
|
402
|
+
},
|
|
403
|
+
[o, t]
|
|
404
|
+
), s = H(
|
|
405
|
+
({ key: a }) => {
|
|
406
|
+
a === e && o(!1);
|
|
407
|
+
},
|
|
408
|
+
[o]
|
|
409
|
+
);
|
|
410
|
+
return I("keydown", i, window), I("keyup", s, window), n;
|
|
411
|
+
}, E1 = (e) => {
|
|
412
|
+
const t = be(e), n = _(), [o, i] = k({}), s = O();
|
|
413
|
+
return w(() => {
|
|
414
|
+
t && s.current && i(t.attributes.layout);
|
|
415
|
+
}, [t, s]), w(() => {
|
|
388
416
|
if (n) {
|
|
389
|
-
const a = n.events.subscribe(
|
|
390
|
-
|
|
391
|
-
|
|
417
|
+
const a = n.events.subscribe(
|
|
418
|
+
"components:layout-changed",
|
|
419
|
+
(l, u) => {
|
|
420
|
+
t === u.node && s.current && i(u.node.attributes.layout);
|
|
421
|
+
}
|
|
422
|
+
);
|
|
392
423
|
return () => {
|
|
393
424
|
a();
|
|
394
425
|
};
|
|
395
426
|
}
|
|
396
|
-
}, [n,
|
|
397
|
-
},
|
|
398
|
-
const t =
|
|
399
|
-
return
|
|
427
|
+
}, [n, s]), o;
|
|
428
|
+
}, Ae = (e) => {
|
|
429
|
+
const t = R();
|
|
430
|
+
return w(() => {
|
|
400
431
|
t.current = e;
|
|
401
432
|
}), t.current;
|
|
402
|
-
},
|
|
403
|
-
const [t, n] =
|
|
404
|
-
return
|
|
405
|
-
let
|
|
406
|
-
const a = (e ||
|
|
433
|
+
}, x1 = () => X(It), k1 = (e) => {
|
|
434
|
+
const [t, n] = k(), o = Z(), i = O();
|
|
435
|
+
return w(() => {
|
|
436
|
+
let s;
|
|
437
|
+
const a = (e || o).get("$widget");
|
|
407
438
|
if (!a)
|
|
408
439
|
return;
|
|
409
|
-
const { name:
|
|
410
|
-
return
|
|
411
|
-
|
|
412
|
-
}), (e ||
|
|
413
|
-
|
|
414
|
-
switch (
|
|
440
|
+
const { name: l, invoke: u } = a;
|
|
441
|
+
return u("renderState").then((c) => {
|
|
442
|
+
i.current && n(c);
|
|
443
|
+
}), (e || o).getAsync("actionResolver").then((c) => {
|
|
444
|
+
s = c.subscribe(l, (m, p) => {
|
|
445
|
+
switch (p) {
|
|
415
446
|
case "close":
|
|
416
447
|
case "open":
|
|
417
|
-
|
|
448
|
+
i.current && n(
|
|
449
|
+
p === "open" ? oe.open : oe.closed
|
|
450
|
+
);
|
|
418
451
|
break;
|
|
419
452
|
case "hide":
|
|
420
|
-
|
|
453
|
+
i.current && n(oe.hidden);
|
|
421
454
|
}
|
|
422
455
|
});
|
|
423
456
|
}), () => {
|
|
424
|
-
|
|
457
|
+
s && s();
|
|
425
458
|
};
|
|
426
|
-
}, [
|
|
427
|
-
},
|
|
428
|
-
const t =
|
|
429
|
-
return
|
|
459
|
+
}, [i]), t;
|
|
460
|
+
}, Pe = () => X(Ot), $1 = (e) => {
|
|
461
|
+
const t = Z(), n = Pe(), [o, i] = k({ name: "", params: {} }), s = O();
|
|
462
|
+
return w(() => {
|
|
430
463
|
const a = (e || t).get("$widget");
|
|
431
464
|
if (!a)
|
|
432
465
|
return;
|
|
433
|
-
const { events:
|
|
434
|
-
return
|
|
435
|
-
if (
|
|
436
|
-
const { name:
|
|
437
|
-
|
|
466
|
+
const { events: l } = a;
|
|
467
|
+
return l.subscribe("router:change", (c, { next: { routeData: m } }) => {
|
|
468
|
+
if (s.current) {
|
|
469
|
+
const { name: p, params: d } = m;
|
|
470
|
+
De(d), i({ name: p, params: d });
|
|
438
471
|
}
|
|
439
472
|
});
|
|
440
|
-
}, [
|
|
441
|
-
if (n && n.history &&
|
|
442
|
-
const a = n.getRouteData(), { name:
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
}, [n,
|
|
446
|
-
},
|
|
447
|
-
const t =
|
|
448
|
-
let
|
|
449
|
-
const
|
|
473
|
+
}, [s, e, t]), w(() => {
|
|
474
|
+
if (n && n.history && s.current) {
|
|
475
|
+
const a = n.getRouteData(), { name: l, params: u } = a;
|
|
476
|
+
De(u), i({ name: l, params: u });
|
|
477
|
+
}
|
|
478
|
+
}, [n, s]), o;
|
|
479
|
+
}, Ke = (e) => {
|
|
480
|
+
const t = R(), n = R(0);
|
|
481
|
+
let o;
|
|
482
|
+
const i = H(() => {
|
|
450
483
|
var c;
|
|
451
|
-
(c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(
|
|
452
|
-
var
|
|
453
|
-
(
|
|
484
|
+
(c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
485
|
+
var m;
|
|
486
|
+
(m = t.current) == null || m.classList.remove("humany-scrolling");
|
|
454
487
|
}, 500);
|
|
455
|
-
}, [t]),
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
488
|
+
}, [t]), s = H(
|
|
489
|
+
(c) => {
|
|
490
|
+
n.current = c.touches[0].clientY;
|
|
491
|
+
},
|
|
492
|
+
[t]
|
|
493
|
+
), a = (c) => l(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, l = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, u = H(
|
|
494
|
+
(c) => {
|
|
495
|
+
if (!c.cancelable)
|
|
496
|
+
return;
|
|
497
|
+
const m = c.touches[0].clientY, p = a(c.target);
|
|
498
|
+
if (!p)
|
|
499
|
+
return;
|
|
500
|
+
const d = p.scrollTop, f = n.current - m < 0 ? "up" : "down", g = d <= 0 && f === "up", E = d >= p.scrollHeight - p.offsetHeight && f === "down";
|
|
501
|
+
(g || E) && c.preventDefault(), n.current = m;
|
|
502
|
+
},
|
|
503
|
+
[t, n]
|
|
504
|
+
);
|
|
505
|
+
return I("scroll", i, t.current, () => t.current && e), I("touchstart", s, t.current, () => t.current && e), I("touchmove", u, t.current, () => t.current && e), e ? [Pt, t] : ["", t];
|
|
506
|
+
}, Pt = `
|
|
507
|
+
overflow-y: ${Ne() === pe.Chrome || Ne() === pe.EdgeChromium ? "overlay" : "auto"};
|
|
469
508
|
overflow-x: hidden;
|
|
470
509
|
-ms-overflow-style: none; /* IE 10+ */
|
|
471
510
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -492,58 +531,61 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
492
531
|
background-color: #7F7F7F;
|
|
493
532
|
}
|
|
494
533
|
}
|
|
495
|
-
`,
|
|
496
|
-
const [e, t] =
|
|
497
|
-
return
|
|
498
|
-
n.get("settings").then((
|
|
499
|
-
|
|
534
|
+
`, L1 = () => {
|
|
535
|
+
const [e, t] = k(null), n = Z(), o = O();
|
|
536
|
+
return w(() => {
|
|
537
|
+
n.get("settings").then((i) => {
|
|
538
|
+
o.current && t(i);
|
|
500
539
|
});
|
|
501
|
-
}, [
|
|
502
|
-
},
|
|
503
|
-
const [t, n] =
|
|
504
|
-
n(typeof
|
|
540
|
+
}, [o]), e;
|
|
541
|
+
}, Ye = (e = !1) => {
|
|
542
|
+
const [t, n] = k(e), o = H((i) => {
|
|
543
|
+
n(typeof i == "boolean" ? i : (s) => !s);
|
|
505
544
|
}, []);
|
|
506
|
-
return [t,
|
|
507
|
-
},
|
|
508
|
-
const t =
|
|
509
|
-
|
|
510
|
-
if (n &&
|
|
511
|
-
const
|
|
512
|
-
if (!(
|
|
545
|
+
return [t, o];
|
|
546
|
+
}, M1 = (e) => {
|
|
547
|
+
const t = Z(), n = _(), o = t.get("widgetDOMElement"), [i, s] = k(null), [a, l] = k(null), u = O();
|
|
548
|
+
w(() => {
|
|
549
|
+
if (n && u.current) {
|
|
550
|
+
const m = n.nodes.all.find((d) => d.name === "root-area"), p = n.nodes.all.find((d) => d.type === "view");
|
|
551
|
+
if (!(p != null && p.attributes.properties.animation) && !(m != null && m.attributes.properties.animation))
|
|
513
552
|
e();
|
|
514
553
|
else {
|
|
515
|
-
const d = (E = "") =>
|
|
516
|
-
|
|
517
|
-
const g = d(
|
|
518
|
-
g &&
|
|
554
|
+
const d = (E = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${E}"]`), f = d(p == null ? void 0 : p.id);
|
|
555
|
+
f && s(f);
|
|
556
|
+
const g = d(m == null ? void 0 : m.id);
|
|
557
|
+
g && l(g);
|
|
519
558
|
}
|
|
520
559
|
}
|
|
521
|
-
}, [n, t,
|
|
522
|
-
const c = H(
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
560
|
+
}, [n, t, u]);
|
|
561
|
+
const c = H(
|
|
562
|
+
(m) => {
|
|
563
|
+
u.current && (m.target === i || m.target === a) && e();
|
|
564
|
+
},
|
|
565
|
+
[e, u, i, a]
|
|
566
|
+
);
|
|
567
|
+
I("transitionend", c, i), I("transitionend", c, a);
|
|
568
|
+
}, ce = (e, t, n = [], o) => {
|
|
569
|
+
const i = At(o);
|
|
570
|
+
return w(() => {
|
|
571
|
+
if (i) {
|
|
572
|
+
const s = i.subscribe(e, t);
|
|
531
573
|
return () => {
|
|
532
|
-
|
|
574
|
+
s();
|
|
533
575
|
};
|
|
534
576
|
}
|
|
535
|
-
}, [
|
|
536
|
-
},
|
|
537
|
-
const n =
|
|
538
|
-
|
|
577
|
+
}, [i].concat(n)), (s) => i == null ? void 0 : i.dispatch(e, s);
|
|
578
|
+
}, ve = (e, t) => {
|
|
579
|
+
const n = ce("widget:menu-toggled", (o, i) => {
|
|
580
|
+
i !== e && t();
|
|
539
581
|
});
|
|
540
582
|
return () => n(e);
|
|
541
|
-
},
|
|
542
|
-
var
|
|
543
|
-
return /* @__PURE__ */ r.createElement("span",
|
|
544
|
-
className:
|
|
545
|
-
},
|
|
546
|
-
},
|
|
583
|
+
}, we = (o) => {
|
|
584
|
+
var i = o, { className: e, children: t } = i, n = S(i, ["className", "children"]);
|
|
585
|
+
return /* @__PURE__ */ r.createElement("span", h({
|
|
586
|
+
className: M(e, "humany-text")
|
|
587
|
+
}, V(n)), t);
|
|
588
|
+
}, je = L`
|
|
547
589
|
display: flex;
|
|
548
590
|
justify-content: center;
|
|
549
591
|
flex-direction: column;
|
|
@@ -552,7 +594,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
552
594
|
border: ${(e) => e.theme.border};
|
|
553
595
|
box-shadow: ${(e) => e.theme.boxShadow || "none"};
|
|
554
596
|
${(e) => e["data-loading"] && "min-height: 150px;"}
|
|
555
|
-
`,
|
|
597
|
+
`, Kt = L`
|
|
556
598
|
cursor: pointer;
|
|
557
599
|
text-align: center;
|
|
558
600
|
border: none;
|
|
@@ -570,12 +612,12 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
570
612
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
571
613
|
}};
|
|
572
614
|
font-weight: 300;
|
|
573
|
-
`,
|
|
615
|
+
`, S1 = ({
|
|
574
616
|
primaryColor: e,
|
|
575
617
|
secondaryColor: t,
|
|
576
618
|
active: n
|
|
577
|
-
}) =>
|
|
578
|
-
${
|
|
619
|
+
}) => L`
|
|
620
|
+
${Kt}
|
|
579
621
|
border: 1px solid ${n ? t : e};
|
|
580
622
|
background-color: ${n ? e : t};
|
|
581
623
|
|
|
@@ -588,13 +630,13 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
588
630
|
a {
|
|
589
631
|
transition: color 200ms ease-out;
|
|
590
632
|
color: ${n ? t : e};
|
|
591
|
-
font-size: ${(
|
|
592
|
-
var
|
|
593
|
-
return (
|
|
633
|
+
font-size: ${(o) => {
|
|
634
|
+
var i;
|
|
635
|
+
return (i = o.theme.fonts) == null ? void 0 : i.normal;
|
|
594
636
|
}};
|
|
595
637
|
}
|
|
596
638
|
|
|
597
|
-
${(
|
|
639
|
+
${(o) => !o.disabled && L`
|
|
598
640
|
&:hover {
|
|
599
641
|
background-color: ${e};
|
|
600
642
|
color: ${t};
|
|
@@ -607,14 +649,11 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
607
649
|
}
|
|
608
650
|
}
|
|
609
651
|
|
|
610
|
-
&:focus {
|
|
611
|
-
${
|
|
612
|
-
var i;
|
|
613
|
-
return ((i = o.theme.accessibility) == null ? void 0 : i.isTabbing) && P;
|
|
614
|
-
}};
|
|
652
|
+
&:focus-visible {
|
|
653
|
+
${P};
|
|
615
654
|
}
|
|
616
655
|
`}
|
|
617
|
-
`, P =
|
|
656
|
+
`, P = L`
|
|
618
657
|
outline: ${(e) => {
|
|
619
658
|
var t;
|
|
620
659
|
return (t = e.theme.accessibility) == null ? void 0 : t.border;
|
|
@@ -624,16 +663,16 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
624
663
|
return (n = (t = e.theme.accessibility) == null ? void 0 : t.colors) == null ? void 0 : n.inactiveText;
|
|
625
664
|
}};
|
|
626
665
|
border-color: transparent;
|
|
627
|
-
`,
|
|
666
|
+
`, Yt = L`
|
|
628
667
|
${P}
|
|
629
668
|
text-decoration: underline;
|
|
630
|
-
`,
|
|
669
|
+
`, R1 = L`
|
|
631
670
|
${P}
|
|
632
671
|
outline-offset: ${(e) => {
|
|
633
672
|
var t;
|
|
634
673
|
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
635
674
|
}};
|
|
636
|
-
`,
|
|
675
|
+
`, Ee = C(ae)`
|
|
637
676
|
position: absolute;
|
|
638
677
|
top: ${(e) => {
|
|
639
678
|
var t;
|
|
@@ -652,21 +691,16 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
652
691
|
}};
|
|
653
692
|
}
|
|
654
693
|
|
|
655
|
-
&:focus {
|
|
656
|
-
${
|
|
694
|
+
&:focus-visible {
|
|
695
|
+
${P}
|
|
696
|
+
padding: ${(e) => {
|
|
657
697
|
var t;
|
|
658
|
-
return (
|
|
659
|
-
${P}
|
|
660
|
-
padding: ${(n) => {
|
|
661
|
-
var s;
|
|
662
|
-
return (s = n.theme.sizes) == null ? void 0 : s.small;
|
|
663
|
-
}};
|
|
664
|
-
height: 15px;
|
|
665
|
-
box-sizing: content-box;
|
|
666
|
-
`;
|
|
698
|
+
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
667
699
|
}};
|
|
700
|
+
height: 15px;
|
|
701
|
+
box-sizing: content-box;
|
|
668
702
|
}
|
|
669
|
-
`,
|
|
703
|
+
`, Ve = C(we)`
|
|
670
704
|
font-size: ${(e) => {
|
|
671
705
|
var t;
|
|
672
706
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -677,7 +711,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
677
711
|
var t;
|
|
678
712
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
679
713
|
}};
|
|
680
|
-
`,
|
|
714
|
+
`, jt = L`
|
|
681
715
|
padding: 0;
|
|
682
716
|
margin: 0;
|
|
683
717
|
list-style: none;
|
|
@@ -699,38 +733,43 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
699
733
|
> li:last-child {
|
|
700
734
|
margin: 0;
|
|
701
735
|
}
|
|
702
|
-
`,
|
|
736
|
+
`, H1 = L`
|
|
703
737
|
> div {
|
|
704
|
-
${
|
|
738
|
+
${se(
|
|
739
|
+
"> h1",
|
|
740
|
+
L`
|
|
705
741
|
margin: 0 0 ${(e) => {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}};
|
|
742
|
+
var t;
|
|
743
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
744
|
+
}};
|
|
709
745
|
font-size: ${(e) => {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}};
|
|
746
|
+
var t;
|
|
747
|
+
return (t = e.theme.fonts) == null ? void 0 : t.medium;
|
|
748
|
+
}};
|
|
713
749
|
font-weight: normal;
|
|
714
750
|
line-height: 1.8em;
|
|
715
751
|
color: ${(e) => {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}};
|
|
719
|
-
`
|
|
752
|
+
var t;
|
|
753
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
754
|
+
}};
|
|
755
|
+
`
|
|
756
|
+
)}
|
|
720
757
|
}
|
|
721
758
|
> ul {
|
|
722
|
-
${
|
|
759
|
+
${jt}
|
|
723
760
|
}
|
|
724
761
|
|
|
725
|
-
${
|
|
762
|
+
${se(
|
|
763
|
+
"h1",
|
|
764
|
+
L`
|
|
726
765
|
display: flex;
|
|
727
766
|
align-items: center;
|
|
728
767
|
|
|
729
768
|
i {
|
|
730
769
|
margin: 7px ${(e) => {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}} 0 0;
|
|
770
|
+
var t;
|
|
771
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
772
|
+
}} 0 0;
|
|
734
773
|
width: 24px;
|
|
735
774
|
display: inline-block;
|
|
736
775
|
vertical-align: text-bottom;
|
|
@@ -739,27 +778,102 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
739
778
|
min-height: 24px;
|
|
740
779
|
text-align: center;
|
|
741
780
|
}
|
|
742
|
-
`
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
781
|
+
`
|
|
782
|
+
)}
|
|
783
|
+
`, z1 = L`
|
|
784
|
+
font-size: ${(e) => {
|
|
785
|
+
var t;
|
|
786
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
787
|
+
}};
|
|
788
|
+
font-weight: 300;
|
|
789
|
+
line-height: 1.5em;
|
|
790
|
+
color: ${(e) => {
|
|
791
|
+
var t;
|
|
792
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
793
|
+
}};
|
|
794
|
+
|
|
795
|
+
h1,
|
|
796
|
+
h2,
|
|
797
|
+
h3,
|
|
798
|
+
h4,
|
|
799
|
+
h5,
|
|
800
|
+
h6 {
|
|
801
|
+
word-break: break-word;
|
|
802
|
+
&:first-child {
|
|
803
|
+
margin-top: 0;
|
|
804
|
+
}
|
|
805
|
+
&:only-child {
|
|
806
|
+
margin: 0;
|
|
807
|
+
}
|
|
808
|
+
&:last-child {
|
|
809
|
+
margin-bottom: 0;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
a {
|
|
814
|
+
color: ${(e) => {
|
|
815
|
+
var t;
|
|
816
|
+
return (t = e.theme.colors) == null ? void 0 : t.link;
|
|
817
|
+
}};
|
|
818
|
+
&:focus-visible {
|
|
819
|
+
${Yt};
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
img {
|
|
824
|
+
max-width: 100% !important;
|
|
825
|
+
height: auto !important;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
p {
|
|
829
|
+
word-break: break-word;
|
|
830
|
+
margin: ${(e) => {
|
|
831
|
+
var t;
|
|
832
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
833
|
+
}} 0;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
p:first-child {
|
|
837
|
+
margin: 0 0 ${(e) => {
|
|
838
|
+
var t;
|
|
839
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
840
|
+
}};
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
p:last-child {
|
|
844
|
+
margin: ${(e) => {
|
|
845
|
+
var t;
|
|
846
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
847
|
+
}} 0 0;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
p:only-child {
|
|
851
|
+
margin: 0;
|
|
852
|
+
}
|
|
853
|
+
`, G = ({
|
|
854
|
+
elementId: e = "humany-portal-elements",
|
|
855
|
+
parent: t = document.body,
|
|
856
|
+
children: n
|
|
857
|
+
}) => {
|
|
858
|
+
const [o] = k(() => {
|
|
859
|
+
const i = document.getElementById(e) || document.createElement("div");
|
|
860
|
+
return i.id = e, i;
|
|
747
861
|
});
|
|
748
|
-
return
|
|
749
|
-
|
|
750
|
-
}), [
|
|
751
|
-
},
|
|
752
|
-
var
|
|
862
|
+
return w(() => (t.appendChild(o), () => {
|
|
863
|
+
o.childElementCount <= 1 && t.removeChild(o);
|
|
864
|
+
}), [o]), Et(n, o);
|
|
865
|
+
}, J = (l) => {
|
|
866
|
+
var u = l, {
|
|
753
867
|
text: e = "",
|
|
754
868
|
backgroundSize: t = "contain",
|
|
755
869
|
size: n = 12,
|
|
756
|
-
symbol:
|
|
870
|
+
symbol: o = {
|
|
757
871
|
content: "",
|
|
758
872
|
type: ""
|
|
759
873
|
},
|
|
760
|
-
elementStyle:
|
|
761
|
-
className:
|
|
762
|
-
} =
|
|
874
|
+
elementStyle: i = {},
|
|
875
|
+
className: s
|
|
876
|
+
} = u, a = S(u, [
|
|
763
877
|
"text",
|
|
764
878
|
"backgroundSize",
|
|
765
879
|
"size",
|
|
@@ -767,7 +881,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
767
881
|
"elementStyle",
|
|
768
882
|
"className"
|
|
769
883
|
]);
|
|
770
|
-
const { type: c, content:
|
|
884
|
+
const { type: c, content: m } = o, p = {
|
|
771
885
|
"aria-label": e,
|
|
772
886
|
role: "presentation"
|
|
773
887
|
};
|
|
@@ -775,29 +889,29 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
775
889
|
case "Uri": {
|
|
776
890
|
const d = {
|
|
777
891
|
backgroundSize: t,
|
|
778
|
-
backgroundImage: `url('${
|
|
892
|
+
backgroundImage: `url('${m}')`,
|
|
779
893
|
backgroundRepeat: "no-repeat",
|
|
780
894
|
backgroundPosition: "center",
|
|
781
895
|
backgroundAttachment: "center"
|
|
782
896
|
};
|
|
783
|
-
return /* @__PURE__ */ r.createElement("i",
|
|
784
|
-
className:
|
|
897
|
+
return /* @__PURE__ */ r.createElement("i", h(h({
|
|
898
|
+
className: M(s, "humany-icon", "humany-custom-icon"),
|
|
785
899
|
title: e,
|
|
786
|
-
style:
|
|
787
|
-
},
|
|
900
|
+
style: h(h({}, d), i)
|
|
901
|
+
}, p), a));
|
|
788
902
|
}
|
|
789
903
|
case "Svg": {
|
|
790
|
-
const d =
|
|
791
|
-
className:
|
|
904
|
+
const d = $(h({
|
|
905
|
+
className: M(s, "humany-icon"),
|
|
792
906
|
width: `${n}`,
|
|
793
907
|
fill: "none",
|
|
794
908
|
xmlns: "http://www.w3.org/2000/svg"
|
|
795
909
|
}, a), {
|
|
796
910
|
ref: null
|
|
797
|
-
}),
|
|
798
|
-
switch (
|
|
911
|
+
}), f = { minWidth: `${n}` };
|
|
912
|
+
switch (m) {
|
|
799
913
|
case "search":
|
|
800
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
914
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
801
915
|
viewBox: "0 0 32 30"
|
|
802
916
|
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
803
917
|
cx: "14.8457",
|
|
@@ -811,7 +925,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
811
925
|
y2: "25.9661"
|
|
812
926
|
}));
|
|
813
927
|
case "clear":
|
|
814
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
928
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
815
929
|
viewBox: "0 0 27 27"
|
|
816
930
|
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
817
931
|
cx: "13.4351",
|
|
@@ -833,7 +947,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
833
947
|
stroke: "black"
|
|
834
948
|
}));
|
|
835
949
|
case "close":
|
|
836
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
950
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
837
951
|
viewBox: "0 0 13 13"
|
|
838
952
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
839
953
|
d: "M12.3068 0.50647L1.27246 11.7273",
|
|
@@ -843,9 +957,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
843
957
|
stroke: "black"
|
|
844
958
|
}));
|
|
845
959
|
case "caret-right":
|
|
846
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
960
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
847
961
|
viewBox: "0 0 14 14",
|
|
848
|
-
style:
|
|
962
|
+
style: f
|
|
849
963
|
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
850
964
|
x1: "4.13",
|
|
851
965
|
y1: "1.05",
|
|
@@ -860,9 +974,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
860
974
|
stroke: "black"
|
|
861
975
|
}));
|
|
862
976
|
case "caret-left":
|
|
863
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
977
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
864
978
|
viewBox: "0 0 14 14",
|
|
865
|
-
style:
|
|
979
|
+
style: f
|
|
866
980
|
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
867
981
|
x1: "10.13",
|
|
868
982
|
y1: "12.95",
|
|
@@ -877,9 +991,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
877
991
|
stroke: "black"
|
|
878
992
|
}));
|
|
879
993
|
case "caret-up":
|
|
880
|
-
return /* @__PURE__ */ r.createElement(
|
|
994
|
+
return /* @__PURE__ */ r.createElement(Xt, h({
|
|
881
995
|
viewBox: "0 0 14 14",
|
|
882
|
-
style:
|
|
996
|
+
style: f
|
|
883
997
|
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
884
998
|
x1: "13.09",
|
|
885
999
|
y1: "3.99",
|
|
@@ -894,9 +1008,9 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
894
1008
|
stroke: "black"
|
|
895
1009
|
}));
|
|
896
1010
|
case "caret-down":
|
|
897
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1011
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
898
1012
|
viewBox: "0 0 14 14",
|
|
899
|
-
style:
|
|
1013
|
+
style: f
|
|
900
1014
|
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
901
1015
|
x1: "13.09",
|
|
902
1016
|
y1: "3.99",
|
|
@@ -911,7 +1025,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
911
1025
|
stroke: "black"
|
|
912
1026
|
}));
|
|
913
1027
|
case "back":
|
|
914
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1028
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
915
1029
|
viewBox: "0 0 18 18"
|
|
916
1030
|
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
917
1031
|
y1: "-0.5",
|
|
@@ -927,7 +1041,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
927
1041
|
stroke: "white"
|
|
928
1042
|
}));
|
|
929
1043
|
case "alert":
|
|
930
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1044
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
931
1045
|
viewBox: "0 0 19 19"
|
|
932
1046
|
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
933
1047
|
cx: "9.5",
|
|
@@ -939,7 +1053,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
939
1053
|
fill: "white"
|
|
940
1054
|
}));
|
|
941
1055
|
case "send":
|
|
942
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1056
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
943
1057
|
viewBox: "0 0 20 17"
|
|
944
1058
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
945
1059
|
d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
|
|
@@ -948,7 +1062,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
948
1062
|
strokeWidth: "0.1"
|
|
949
1063
|
}));
|
|
950
1064
|
case "chat":
|
|
951
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1065
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
952
1066
|
viewBox: "-2 -3 40 40"
|
|
953
1067
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
954
1068
|
strokeWidth: "0",
|
|
@@ -970,7 +1084,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
970
1084
|
fill: "currentColor"
|
|
971
1085
|
}));
|
|
972
1086
|
case "chat-new":
|
|
973
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1087
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
974
1088
|
viewBox: "0 0 26 24"
|
|
975
1089
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
976
1090
|
d: "M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",
|
|
@@ -980,7 +1094,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
980
1094
|
fill: "currentColor"
|
|
981
1095
|
}));
|
|
982
1096
|
case "agent":
|
|
983
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1097
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
984
1098
|
viewBox: "0 0 36 30"
|
|
985
1099
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
986
1100
|
d: "M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",
|
|
@@ -1001,20 +1115,20 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1001
1115
|
stroke: "white"
|
|
1002
1116
|
}));
|
|
1003
1117
|
case "minimize":
|
|
1004
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1118
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1005
1119
|
viewBox: "0 -10 22 22"
|
|
1006
1120
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1007
1121
|
d: "M0 1H22",
|
|
1008
1122
|
stroke: "white"
|
|
1009
1123
|
}));
|
|
1010
1124
|
case "sorting":
|
|
1011
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1125
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1012
1126
|
viewBox: "0 0 18 14"
|
|
1013
1127
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1014
1128
|
d: "M18 1H0M8 13H0M13 7H0"
|
|
1015
1129
|
}));
|
|
1016
1130
|
case "copy":
|
|
1017
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1131
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1018
1132
|
viewBox: "0 0 19 17"
|
|
1019
1133
|
}, d), /* @__PURE__ */ r.createElement("rect", {
|
|
1020
1134
|
x: "0.5",
|
|
@@ -1032,7 +1146,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1032
1146
|
fill: "white"
|
|
1033
1147
|
}));
|
|
1034
1148
|
case "print":
|
|
1035
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1149
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1036
1150
|
viewBox: "0 0 16 17"
|
|
1037
1151
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1038
1152
|
d: "M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",
|
|
@@ -1066,14 +1180,14 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1066
1180
|
stroke: "black"
|
|
1067
1181
|
}));
|
|
1068
1182
|
case "language":
|
|
1069
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1183
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1070
1184
|
viewBox: "0 0 19 19"
|
|
1071
1185
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1072
1186
|
d: "M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",
|
|
1073
1187
|
stroke: "black"
|
|
1074
1188
|
}));
|
|
1075
1189
|
case "information":
|
|
1076
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1190
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1077
1191
|
viewBox: "0 0 17 17"
|
|
1078
1192
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1079
1193
|
d: "M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",
|
|
@@ -1088,7 +1202,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1088
1202
|
fill: "black"
|
|
1089
1203
|
}));
|
|
1090
1204
|
case "options":
|
|
1091
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1205
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1092
1206
|
viewBox: "0 0 16 2"
|
|
1093
1207
|
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
1094
1208
|
cx: "15",
|
|
@@ -1109,15 +1223,64 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1109
1223
|
transform: "rotate(90 8 1)",
|
|
1110
1224
|
fill: "black"
|
|
1111
1225
|
}));
|
|
1226
|
+
case "browse":
|
|
1227
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1228
|
+
viewBox: "0 0 24 24"
|
|
1229
|
+
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
1230
|
+
cx: "12",
|
|
1231
|
+
cy: "12",
|
|
1232
|
+
r: "12",
|
|
1233
|
+
fill: "currentColor"
|
|
1234
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1235
|
+
fillRule: "evenodd",
|
|
1236
|
+
clipRule: "evenodd",
|
|
1237
|
+
d: "M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",
|
|
1238
|
+
fill: "white"
|
|
1239
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1240
|
+
fillRule: "evenodd",
|
|
1241
|
+
clipRule: "evenodd",
|
|
1242
|
+
d: "M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",
|
|
1243
|
+
fill: "white"
|
|
1244
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1245
|
+
fillRule: "evenodd",
|
|
1246
|
+
clipRule: "evenodd",
|
|
1247
|
+
d: "M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",
|
|
1248
|
+
fill: "white"
|
|
1249
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1250
|
+
fillRule: "evenodd",
|
|
1251
|
+
clipRule: "evenodd",
|
|
1252
|
+
d: "M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",
|
|
1253
|
+
fill: "white"
|
|
1254
|
+
}));
|
|
1255
|
+
case "video":
|
|
1256
|
+
return f.minWidth && typeof f.minWidth == "number" && (f.minWidth = `${f.minWidth}px`), /* @__PURE__ */ r.createElement("svg", $(h({
|
|
1257
|
+
viewBox: "0 0 25 25"
|
|
1258
|
+
}, d), {
|
|
1259
|
+
style: f
|
|
1260
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1261
|
+
d: "M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",
|
|
1262
|
+
stroke: "currentColor",
|
|
1263
|
+
strokeWidth: "1.5",
|
|
1264
|
+
strokeLinecap: "round",
|
|
1265
|
+
strokeLinejoin: "round"
|
|
1266
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1267
|
+
fillRule: "evenodd",
|
|
1268
|
+
clipRule: "evenodd",
|
|
1269
|
+
d: "M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",
|
|
1270
|
+
stroke: "currentColor",
|
|
1271
|
+
strokeWidth: "1.5",
|
|
1272
|
+
strokeLinecap: "round",
|
|
1273
|
+
strokeLinejoin: "round"
|
|
1274
|
+
}));
|
|
1112
1275
|
case "star-empty":
|
|
1113
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1276
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1114
1277
|
viewBox: "0 0 13 12"
|
|
1115
1278
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1116
1279
|
d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
|
|
1117
1280
|
stroke: "black"
|
|
1118
1281
|
}));
|
|
1119
1282
|
case "star-filled":
|
|
1120
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1283
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1121
1284
|
viewBox: "0 0 13 12"
|
|
1122
1285
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1123
1286
|
d: "M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",
|
|
@@ -1125,7 +1288,7 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1125
1288
|
stroke: "black"
|
|
1126
1289
|
}));
|
|
1127
1290
|
case "cog-wheel":
|
|
1128
|
-
return /* @__PURE__ */ r.createElement("svg",
|
|
1291
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1129
1292
|
viewBox: "0 0 24 24"
|
|
1130
1293
|
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1131
1294
|
fillRule: "evenodd",
|
|
@@ -1133,25 +1296,92 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1133
1296
|
d: "M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",
|
|
1134
1297
|
fill: "black"
|
|
1135
1298
|
}));
|
|
1299
|
+
case "zoom-in":
|
|
1300
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1301
|
+
viewBox: "0 0 24 24"
|
|
1302
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1303
|
+
fillRule: "evenodd",
|
|
1304
|
+
clipRule: "evenodd",
|
|
1305
|
+
d: "M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",
|
|
1306
|
+
fill: "white"
|
|
1307
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1308
|
+
fillRule: "evenodd",
|
|
1309
|
+
clipRule: "evenodd",
|
|
1310
|
+
d: "M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",
|
|
1311
|
+
fill: "white"
|
|
1312
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1313
|
+
fillRule: "evenodd",
|
|
1314
|
+
clipRule: "evenodd",
|
|
1315
|
+
d: "M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",
|
|
1316
|
+
fill: "white"
|
|
1317
|
+
}));
|
|
1318
|
+
case "zoom-out":
|
|
1319
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1320
|
+
viewBox: "0 0 24 24"
|
|
1321
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1322
|
+
fillRule: "evenodd",
|
|
1323
|
+
clipRule: "evenodd",
|
|
1324
|
+
d: "M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",
|
|
1325
|
+
fill: "white"
|
|
1326
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1327
|
+
fillRule: "evenodd",
|
|
1328
|
+
clipRule: "evenodd",
|
|
1329
|
+
d: "M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",
|
|
1330
|
+
fill: "white"
|
|
1331
|
+
}));
|
|
1332
|
+
case "download":
|
|
1333
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1334
|
+
viewBox: "0 0 24 24"
|
|
1335
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1336
|
+
fillRule: "evenodd",
|
|
1337
|
+
clipRule: "evenodd",
|
|
1338
|
+
d: "M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",
|
|
1339
|
+
fill: "white"
|
|
1340
|
+
}));
|
|
1341
|
+
case "lightbox-close":
|
|
1342
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1343
|
+
viewBox: "0 0 24 24"
|
|
1344
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1345
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1346
|
+
fillRule: "evenodd",
|
|
1347
|
+
clipRule: "evenodd",
|
|
1348
|
+
d: "M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",
|
|
1349
|
+
fill: "white"
|
|
1350
|
+
}));
|
|
1351
|
+
case "pagination-left":
|
|
1352
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1353
|
+
viewBox: "0 0 24 24"
|
|
1354
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1355
|
+
fillRule: "evenodd",
|
|
1356
|
+
clipRule: "evenodd",
|
|
1357
|
+
d: "M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",
|
|
1358
|
+
fill: "#222222"
|
|
1359
|
+
}));
|
|
1360
|
+
case "pagination-right":
|
|
1361
|
+
return /* @__PURE__ */ r.createElement("svg", h({
|
|
1362
|
+
viewBox: "0 0 24 24"
|
|
1363
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1364
|
+
d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
|
|
1365
|
+
}));
|
|
1136
1366
|
}
|
|
1137
1367
|
return null;
|
|
1138
1368
|
}
|
|
1139
1369
|
case "FontAwesome":
|
|
1140
|
-
return /* @__PURE__ */ r.createElement(
|
|
1141
|
-
className:
|
|
1142
|
-
faIcon:
|
|
1370
|
+
return /* @__PURE__ */ r.createElement(ln, h({
|
|
1371
|
+
className: s,
|
|
1372
|
+
faIcon: m,
|
|
1143
1373
|
title: e
|
|
1144
1374
|
}, a));
|
|
1145
1375
|
default:
|
|
1146
1376
|
case "Text":
|
|
1147
|
-
return e ? /* @__PURE__ */ r.createElement("i",
|
|
1148
|
-
className:
|
|
1377
|
+
return e ? /* @__PURE__ */ r.createElement("i", h(h({
|
|
1378
|
+
className: M(s, "humany-letter-symbol"),
|
|
1149
1379
|
title: e
|
|
1150
|
-
},
|
|
1380
|
+
}, p), a), e.substring(0, 2)) : null;
|
|
1151
1381
|
}
|
|
1152
|
-
},
|
|
1382
|
+
}, Xt = C.svg`
|
|
1153
1383
|
transform: rotate(180deg);
|
|
1154
|
-
`,
|
|
1384
|
+
`, _t = {
|
|
1155
1385
|
h1: "h1",
|
|
1156
1386
|
h2: "h2",
|
|
1157
1387
|
h3: "h3",
|
|
@@ -1160,78 +1390,86 @@ const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
|
1160
1390
|
h6: "h6",
|
|
1161
1391
|
p: "p",
|
|
1162
1392
|
span: "span"
|
|
1163
|
-
},
|
|
1164
|
-
const { typographyVariantMapping:
|
|
1165
|
-
return /* @__PURE__ */ r.createElement(
|
|
1393
|
+
}, U = ({ variant: e, component: t, className: n, children: o }) => {
|
|
1394
|
+
const { typographyVariantMapping: i = {} } = Ft(), s = h(h({}, _t), i), a = t || s[e] || "span";
|
|
1395
|
+
return /* @__PURE__ */ r.createElement(Ut, {
|
|
1166
1396
|
className: n,
|
|
1167
1397
|
as: a
|
|
1168
|
-
},
|
|
1169
|
-
},
|
|
1170
|
-
var
|
|
1171
|
-
const
|
|
1398
|
+
}, o);
|
|
1399
|
+
}, Ut = C.span``;
|
|
1400
|
+
var qt = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(qt || {});
|
|
1401
|
+
const Qt = 300, D1 = ({
|
|
1172
1402
|
className: e,
|
|
1173
1403
|
children: t,
|
|
1174
1404
|
header: n,
|
|
1175
|
-
onToggle:
|
|
1176
|
-
trigger:
|
|
1177
|
-
fullScreen:
|
|
1405
|
+
onToggle: o,
|
|
1406
|
+
trigger: i,
|
|
1407
|
+
fullScreen: s = !1,
|
|
1178
1408
|
closeButtonAriaLabel: a,
|
|
1179
|
-
animation:
|
|
1409
|
+
animation: l = {
|
|
1180
1410
|
type: "slide-in-bottom"
|
|
1181
1411
|
}
|
|
1182
1412
|
}) => {
|
|
1183
|
-
const { duration:
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
}, [
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
}, [
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1413
|
+
const { duration: u = Qt } = l, c = R(), m = R(), [p, d] = Ke(!0), [f, g] = Ye(), E = Ae(f), v = R(q());
|
|
1414
|
+
w(() => {
|
|
1415
|
+
o && o(f);
|
|
1416
|
+
}, [f]);
|
|
1417
|
+
const b = j("Escape");
|
|
1418
|
+
w(() => {
|
|
1419
|
+
b && g(!1);
|
|
1420
|
+
}, [b]), I(
|
|
1421
|
+
"click",
|
|
1422
|
+
(T) => {
|
|
1423
|
+
const { target: z } = T;
|
|
1424
|
+
!m.current || !d.current || !z || m.current !== z && d.current !== z && !d.current.contains(z) && !m.current.contains(z) && g(!1);
|
|
1425
|
+
},
|
|
1426
|
+
window
|
|
1427
|
+
);
|
|
1428
|
+
const y = ve(v.current, () => {
|
|
1195
1429
|
g(!1);
|
|
1196
1430
|
});
|
|
1197
|
-
|
|
1431
|
+
ce("router:changed", () => {
|
|
1198
1432
|
g(!1);
|
|
1199
|
-
}),
|
|
1200
|
-
|
|
1201
|
-
}, [
|
|
1202
|
-
const
|
|
1203
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
|
1204
|
-
in:
|
|
1433
|
+
}), w(() => {
|
|
1434
|
+
f && c.current ? c.current.focus() : !f && m.current && E && m.current.focus();
|
|
1435
|
+
}, [f, c.current, m.current]);
|
|
1436
|
+
const B = rn[l.type];
|
|
1437
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ie, {
|
|
1438
|
+
in: f,
|
|
1205
1439
|
className: "humany-drawer-transition",
|
|
1206
1440
|
classNames: "humany-drawer-transition",
|
|
1207
1441
|
unmountOnExit: !0,
|
|
1208
|
-
timeout:
|
|
1209
|
-
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
|
|
1210
|
-
duration:
|
|
1211
|
-
fullScreen:
|
|
1212
|
-
className:
|
|
1442
|
+
timeout: u
|
|
1443
|
+
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(B, {
|
|
1444
|
+
duration: u,
|
|
1445
|
+
fullScreen: s,
|
|
1446
|
+
className: M(
|
|
1447
|
+
e,
|
|
1448
|
+
"humany-drawer",
|
|
1449
|
+
`humany-drawer-${v.current}`
|
|
1450
|
+
),
|
|
1213
1451
|
clientHeight: document.body.clientHeight,
|
|
1214
|
-
css:
|
|
1452
|
+
css: p,
|
|
1215
1453
|
ref: d
|
|
1216
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1454
|
+
}, /* @__PURE__ */ r.createElement(Ee, {
|
|
1217
1455
|
onClick: () => g(!1),
|
|
1218
1456
|
tabIndex: 0,
|
|
1219
1457
|
ref: c,
|
|
1220
1458
|
"aria-label": a
|
|
1221
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1459
|
+
}, /* @__PURE__ */ r.createElement(J, {
|
|
1222
1460
|
symbol: { type: "Svg", content: "close" }
|
|
1223
|
-
})), !!n && /* @__PURE__ */ r.createElement(
|
|
1461
|
+
})), !!n && /* @__PURE__ */ r.createElement(Gt, {
|
|
1224
1462
|
variant: "h1",
|
|
1225
1463
|
className: "humany-drawer-header"
|
|
1226
|
-
}, n), t))), r.cloneElement(
|
|
1227
|
-
onClick: (
|
|
1228
|
-
g(),
|
|
1464
|
+
}, n), t))), r.cloneElement(i, {
|
|
1465
|
+
onClick: (T) => {
|
|
1466
|
+
g(), y();
|
|
1229
1467
|
},
|
|
1230
|
-
ref:
|
|
1231
|
-
"aria-label":
|
|
1232
|
-
"aria-expanded":
|
|
1468
|
+
ref: m,
|
|
1469
|
+
"aria-label": i.props.title,
|
|
1470
|
+
"aria-expanded": f
|
|
1233
1471
|
}));
|
|
1234
|
-
},
|
|
1472
|
+
}, le = C.div`
|
|
1235
1473
|
font-family: ${(e) => {
|
|
1236
1474
|
var t;
|
|
1237
1475
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1248,7 +1486,7 @@ const Et = 300, Bn = ({
|
|
|
1248
1486
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1249
1487
|
background: #ffffff;
|
|
1250
1488
|
${(e) => e.css && e.css}
|
|
1251
|
-
`,
|
|
1489
|
+
`, Gt = C(U)`
|
|
1252
1490
|
padding: ${(e) => e.theme.sizes.normal};
|
|
1253
1491
|
margin: 0;
|
|
1254
1492
|
text-align: center;
|
|
@@ -1268,11 +1506,11 @@ const Et = 300, Bn = ({
|
|
|
1268
1506
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1269
1507
|
}};
|
|
1270
1508
|
line-height: 1.2em;
|
|
1271
|
-
`,
|
|
1509
|
+
`, ue = L`
|
|
1272
1510
|
transition: ${(e) => e.duration}ms;
|
|
1273
|
-
`,
|
|
1511
|
+
`, Jt = C(le)`
|
|
1274
1512
|
max-height: 0;
|
|
1275
|
-
${
|
|
1513
|
+
${ue}
|
|
1276
1514
|
|
|
1277
1515
|
&.humany-drawer-transition-enter {
|
|
1278
1516
|
max-height: 0;
|
|
@@ -1287,8 +1525,8 @@ const Et = 300, Bn = ({
|
|
|
1287
1525
|
&.humany-drawer-transition-exit-done {
|
|
1288
1526
|
max-height: 0;
|
|
1289
1527
|
}
|
|
1290
|
-
`,
|
|
1291
|
-
${
|
|
1528
|
+
`, en = C(le)`
|
|
1529
|
+
${ue}
|
|
1292
1530
|
transform: translateX(100%);
|
|
1293
1531
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1294
1532
|
|
|
@@ -1305,8 +1543,8 @@ const Et = 300, Bn = ({
|
|
|
1305
1543
|
&.humany-drawer-transition-exit-done {
|
|
1306
1544
|
transform: translateX(100%);
|
|
1307
1545
|
}
|
|
1308
|
-
`,
|
|
1309
|
-
${
|
|
1546
|
+
`, tn = C(le)`
|
|
1547
|
+
${ue}
|
|
1310
1548
|
transform: translateX(-100%);
|
|
1311
1549
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1312
1550
|
|
|
@@ -1323,8 +1561,8 @@ const Et = 300, Bn = ({
|
|
|
1323
1561
|
&.humany-drawer-transition-exit-done {
|
|
1324
1562
|
transform: translateX(-100%);
|
|
1325
1563
|
}
|
|
1326
|
-
`,
|
|
1327
|
-
${
|
|
1564
|
+
`, nn = C(le)`
|
|
1565
|
+
${ue}
|
|
1328
1566
|
bottom: unset;
|
|
1329
1567
|
top: 0;
|
|
1330
1568
|
height: 0;
|
|
@@ -1342,68 +1580,84 @@ const Et = 300, Bn = ({
|
|
|
1342
1580
|
&.humany-drawer-transition-exit-done {
|
|
1343
1581
|
height: 0;
|
|
1344
1582
|
}
|
|
1345
|
-
`,
|
|
1346
|
-
["slide-in-bottom"]:
|
|
1347
|
-
["slide-in-right"]:
|
|
1348
|
-
["slide-in-left"]:
|
|
1349
|
-
["slide-in-top"]:
|
|
1350
|
-
},
|
|
1351
|
-
const [
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1583
|
+
`, rn = {
|
|
1584
|
+
["slide-in-bottom"]: Jt,
|
|
1585
|
+
["slide-in-right"]: en,
|
|
1586
|
+
["slide-in-left"]: tn,
|
|
1587
|
+
["slide-in-top"]: nn
|
|
1588
|
+
}, Xe = (e, t, n) => {
|
|
1589
|
+
const [o, i] = k(0), [s, a] = k(0), l = H(
|
|
1590
|
+
(u, c) => {
|
|
1591
|
+
if (u.preventDefault(), c) {
|
|
1592
|
+
const m = c.getBoundingClientRect();
|
|
1593
|
+
i(Math.max(document.body.clientWidth - m.right, 1)), a(m.bottom + window.scrollY);
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
[o, s, i, a]
|
|
1597
|
+
);
|
|
1598
|
+
return w(() => {
|
|
1358
1599
|
if (!n || !e)
|
|
1359
1600
|
return;
|
|
1360
|
-
const
|
|
1361
|
-
x:
|
|
1362
|
-
y:
|
|
1601
|
+
const u = n.getBoundingClientRect(), c = {
|
|
1602
|
+
x: o,
|
|
1603
|
+
y: s
|
|
1363
1604
|
};
|
|
1364
|
-
|
|
1365
|
-
}, [n, e, t]), [{ x:
|
|
1366
|
-
},
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1605
|
+
u.left < 0 && (c.x = 0), u.bottom > window.innerHeight && (c.y = 0), c.x !== o && i(c.x), c.y !== s && a(c.y);
|
|
1606
|
+
}, [n, e, t]), [{ x: o, y: s }, l];
|
|
1607
|
+
}, B1 = r.forwardRef(
|
|
1608
|
+
(a, s) => {
|
|
1609
|
+
var l = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = l, i = S(l, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1610
|
+
const u = R(), c = R(), m = R();
|
|
1611
|
+
Ce(s, () => m.current, [m.current]);
|
|
1612
|
+
const p = R(q()), [d, f] = k(!1), g = Ae(d), [{ x: E, y: v }, b] = Xe(d, p.current, m.current), y = j("Escape");
|
|
1613
|
+
w(() => {
|
|
1614
|
+
y && f(!1);
|
|
1615
|
+
}, [y]), w(() => {
|
|
1616
|
+
d && u.current ? u.current.focus() : !d && c.current && g && c.current.focus();
|
|
1617
|
+
}, [d, u.current, c.current]), I(
|
|
1618
|
+
"click",
|
|
1619
|
+
(z) => {
|
|
1620
|
+
const { target: Y } = z;
|
|
1621
|
+
!m.current || !Y || m.current !== Y && !m.current.contains(Y) && f(!1);
|
|
1622
|
+
},
|
|
1623
|
+
window
|
|
1624
|
+
), ce("router:changed", () => {
|
|
1625
|
+
f(!1);
|
|
1626
|
+
});
|
|
1627
|
+
const B = ve(p.current, () => {
|
|
1628
|
+
f(!1);
|
|
1629
|
+
}), T = H(
|
|
1630
|
+
(z) => {
|
|
1631
|
+
z.stopPropagation(), b(z, c.current), f(!d), B();
|
|
1632
|
+
},
|
|
1633
|
+
[B, b, f]
|
|
1634
|
+
);
|
|
1635
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(on, $(h({
|
|
1636
|
+
className: M(
|
|
1637
|
+
"humany-dropdown",
|
|
1638
|
+
`humany-dropdown-${p.current}`,
|
|
1639
|
+
e
|
|
1640
|
+
)
|
|
1641
|
+
}, i), {
|
|
1642
|
+
x: E,
|
|
1643
|
+
y: v,
|
|
1644
|
+
ref: m
|
|
1645
|
+
}), /* @__PURE__ */ r.createElement(Ee, {
|
|
1646
|
+
onClick: () => f(!1),
|
|
1647
|
+
tabIndex: 0,
|
|
1648
|
+
ref: u,
|
|
1649
|
+
"aria-label": o
|
|
1650
|
+
}, /* @__PURE__ */ r.createElement(J, {
|
|
1651
|
+
symbol: { type: "Svg", content: "close" }
|
|
1652
|
+
})), t)), r.cloneElement(n, {
|
|
1653
|
+
onClick: T,
|
|
1654
|
+
ref: c,
|
|
1655
|
+
"aria-label": n.props.title,
|
|
1656
|
+
"aria-expanded": d
|
|
1657
|
+
}));
|
|
1658
|
+
}
|
|
1659
|
+
), on = C.div`
|
|
1660
|
+
${je}
|
|
1407
1661
|
padding: ${(e) => {
|
|
1408
1662
|
var t;
|
|
1409
1663
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -1413,230 +1667,372 @@ const Et = 300, Bn = ({
|
|
|
1413
1667
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1414
1668
|
|
|
1415
1669
|
${(e) => {
|
|
1416
|
-
var n,
|
|
1670
|
+
var n, o, i;
|
|
1417
1671
|
let t = "";
|
|
1418
|
-
return e.y > 0 ? t += `top: calc(${((n = e.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${e.y || "0"}px);` : t += `bottom: ${((
|
|
1672
|
+
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: ${((i = e.theme.sizes) == null ? void 0 : i.normal) || "0px"};`, t;
|
|
1419
1673
|
}};
|
|
1420
|
-
`,
|
|
1421
|
-
var e =
|
|
1422
|
-
return /* @__PURE__ */ r.createElement(
|
|
1423
|
-
},
|
|
1674
|
+
`, sn = (t) => {
|
|
1675
|
+
var e = S(t, []);
|
|
1676
|
+
return /* @__PURE__ */ r.createElement(an, h({}, e));
|
|
1677
|
+
}, an = C.div`
|
|
1424
1678
|
display: none;
|
|
1425
|
-
`,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
}),
|
|
1679
|
+
`, T1 = N(
|
|
1680
|
+
(a, s) => {
|
|
1681
|
+
var l = a, { children: e, columns: t, gap: n, className: o } = l, i = S(l, ["children", "columns", "gap", "className"]);
|
|
1682
|
+
return /* @__PURE__ */ r.createElement(cn, $(h(h({
|
|
1683
|
+
className: M(o, "humany-grid"),
|
|
1684
|
+
"data-columns": t,
|
|
1685
|
+
"data-gap": n
|
|
1686
|
+
}, Oe(i)), V(i)), {
|
|
1687
|
+
ref: s
|
|
1688
|
+
}), e);
|
|
1689
|
+
}
|
|
1690
|
+
), cn = C.div`
|
|
1435
1691
|
display: grid;
|
|
1436
1692
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1437
1693
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1438
1694
|
justify-content: center;
|
|
1439
1695
|
grid-auto-rows: max-content;
|
|
1440
|
-
${
|
|
1441
|
-
`,
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1696
|
+
${Ht}
|
|
1697
|
+
`, _e = N(
|
|
1698
|
+
(s, i) => {
|
|
1699
|
+
var a = s, { htmlParseInstruction: e = null, className: t, html: n } = a, o = S(a, ["htmlParseInstruction", "className", "html"]);
|
|
1700
|
+
const l = Z(), [u, c] = k();
|
|
1701
|
+
return w(() => {
|
|
1702
|
+
const m = Tt(l, n), p = $(h(h({}, m), e), {
|
|
1703
|
+
transform: h(h({}, m.transform), e == null ? void 0 : e.transform)
|
|
1704
|
+
}), d = Dt(n, p);
|
|
1705
|
+
c(d);
|
|
1706
|
+
}, [n, e]), /* @__PURE__ */ r.createElement("div", $(h({
|
|
1707
|
+
className: M(t, "humany-html")
|
|
1708
|
+
}, V(o)), {
|
|
1709
|
+
ref: i
|
|
1710
|
+
}), u);
|
|
1711
|
+
}
|
|
1712
|
+
), ln = (s) => {
|
|
1713
|
+
var a = s, {
|
|
1454
1714
|
faIcon: e,
|
|
1455
1715
|
title: t,
|
|
1456
1716
|
className: n = "",
|
|
1457
|
-
role:
|
|
1458
|
-
} = a,
|
|
1717
|
+
role: o = "presentation"
|
|
1718
|
+
} = a, i = S(a, [
|
|
1459
1719
|
"faIcon",
|
|
1460
1720
|
"title",
|
|
1461
1721
|
"className",
|
|
1462
1722
|
"role"
|
|
1463
1723
|
]);
|
|
1464
|
-
return /* @__PURE__ */ r.createElement("i",
|
|
1465
|
-
className:
|
|
1724
|
+
return /* @__PURE__ */ r.createElement("i", h({
|
|
1725
|
+
className: M(n, `fa fa-${e}`),
|
|
1466
1726
|
title: t,
|
|
1467
|
-
role:
|
|
1468
|
-
},
|
|
1469
|
-
},
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
})
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
"
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1727
|
+
role: o
|
|
1728
|
+
}, V(i)));
|
|
1729
|
+
}, N1 = N(
|
|
1730
|
+
(p, m) => {
|
|
1731
|
+
var d = p, {
|
|
1732
|
+
className: e = "",
|
|
1733
|
+
autoFocus: t = !1,
|
|
1734
|
+
onFocusChange: n = () => {
|
|
1735
|
+
},
|
|
1736
|
+
onEnter: o = () => {
|
|
1737
|
+
},
|
|
1738
|
+
onEscape: i = () => {
|
|
1739
|
+
},
|
|
1740
|
+
selectAllOnFocus: s,
|
|
1741
|
+
onChange: a = () => {
|
|
1742
|
+
},
|
|
1743
|
+
disabled: l = !1,
|
|
1744
|
+
type: u
|
|
1745
|
+
} = d, c = S(d, [
|
|
1746
|
+
"className",
|
|
1747
|
+
"autoFocus",
|
|
1748
|
+
"onFocusChange",
|
|
1749
|
+
"onEnter",
|
|
1750
|
+
"onEscape",
|
|
1751
|
+
"selectAllOnFocus",
|
|
1752
|
+
"onChange",
|
|
1753
|
+
"disabled",
|
|
1754
|
+
"type"
|
|
1755
|
+
]);
|
|
1756
|
+
const [f, g] = k(t), E = R();
|
|
1757
|
+
Ce(m, () => E.current), w(() => {
|
|
1758
|
+
var y;
|
|
1759
|
+
t && ((y = E == null ? void 0 : E.current) == null || y.focus());
|
|
1760
|
+
}, [t, m, E]);
|
|
1761
|
+
const v = (y, B) => {
|
|
1762
|
+
g(y), n && n(y), s && y && B.target.select();
|
|
1763
|
+
}, b = $(h({}, V(c)), {
|
|
1764
|
+
disabled: l,
|
|
1765
|
+
autoFocus: t,
|
|
1766
|
+
type: u,
|
|
1767
|
+
onKeyDown: (y) => {
|
|
1768
|
+
y.key === "Enter" && f && o(y), y.key === "Escape" && f && i(y);
|
|
1769
|
+
},
|
|
1770
|
+
onFocus: (y) => v(!0, y),
|
|
1771
|
+
onBlur: (y) => v(!1, y),
|
|
1772
|
+
onChange: (y) => a(y.target.value || ""),
|
|
1773
|
+
className: M(e, "humany-input"),
|
|
1774
|
+
"data-type": u
|
|
1775
|
+
});
|
|
1776
|
+
return u !== "textarea" ? /* @__PURE__ */ r.createElement("input", $(h({}, b), {
|
|
1777
|
+
ref: E
|
|
1778
|
+
})) : /* @__PURE__ */ r.createElement("textarea", $(h({}, b), {
|
|
1779
|
+
ref: E
|
|
1780
|
+
}));
|
|
1781
|
+
}
|
|
1782
|
+
), un = N(
|
|
1783
|
+
(a, s) => {
|
|
1784
|
+
var l = a, { className: e, items: t, renderItem: n, renderLi: o = !1 } = l, i = S(l, ["className", "items", "renderItem", "renderLi"]);
|
|
1785
|
+
return /* @__PURE__ */ r.createElement("ul", $(h({
|
|
1786
|
+
className: M(e, "humany-list"),
|
|
1787
|
+
"data-item-count": t.length
|
|
1788
|
+
}, V(i)), {
|
|
1789
|
+
ref: s
|
|
1790
|
+
}), t.map(
|
|
1791
|
+
(u, c, m) => o ? /* @__PURE__ */ r.createElement("li", {
|
|
1792
|
+
className: "humany-list-item",
|
|
1793
|
+
key: u.id || c
|
|
1794
|
+
}, n(u, c, m)) : n(u, c, m)
|
|
1795
|
+
));
|
|
1796
|
+
}
|
|
1797
|
+
), mn = N(
|
|
1798
|
+
(u, l) => {
|
|
1799
|
+
var c = u, { text: e, html: t, header: n, className: o, htmlParseInstruction: i, symbol: s } = c, a = S(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1800
|
+
return /* @__PURE__ */ r.createElement("div", $(h({
|
|
1801
|
+
className: M(o, "humany-paragraph")
|
|
1802
|
+
}, V(a)), {
|
|
1803
|
+
ref: l
|
|
1804
|
+
}), n ? /* @__PURE__ */ r.createElement(U, {
|
|
1805
|
+
variant: "h1"
|
|
1806
|
+
}, s ? /* @__PURE__ */ r.createElement(J, {
|
|
1807
|
+
symbol: s
|
|
1808
|
+
}) : null, n) : null, t ? /* @__PURE__ */ r.createElement(_e, {
|
|
1809
|
+
html: t,
|
|
1810
|
+
htmlParseInstruction: i
|
|
1811
|
+
}) : null, e ? /* @__PURE__ */ r.createElement(we, null, e) : null);
|
|
1812
|
+
}
|
|
1813
|
+
), dn = N(
|
|
1814
|
+
(f, d) => {
|
|
1815
|
+
var g = f, {
|
|
1816
|
+
header: e,
|
|
1817
|
+
customHeader: t,
|
|
1818
|
+
text: n,
|
|
1819
|
+
html: o,
|
|
1820
|
+
className: i,
|
|
1821
|
+
children: s,
|
|
1822
|
+
symbol: a,
|
|
1823
|
+
items: l,
|
|
1824
|
+
renderItem: u,
|
|
1825
|
+
renderLi: c,
|
|
1826
|
+
ulProps: m
|
|
1827
|
+
} = g, p = S(g, [
|
|
1828
|
+
"header",
|
|
1829
|
+
"customHeader",
|
|
1830
|
+
"text",
|
|
1831
|
+
"html",
|
|
1832
|
+
"className",
|
|
1833
|
+
"children",
|
|
1834
|
+
"symbol",
|
|
1835
|
+
"items",
|
|
1836
|
+
"renderItem",
|
|
1837
|
+
"renderLi",
|
|
1838
|
+
"ulProps"
|
|
1839
|
+
]);
|
|
1840
|
+
return /* @__PURE__ */ r.createElement("div", $(h({
|
|
1841
|
+
className: M(i, "humany-item-list"),
|
|
1842
|
+
"data-item-count": l.length
|
|
1843
|
+
}, V(p)), {
|
|
1844
|
+
ref: d
|
|
1845
|
+
}), t || (e || n || o ? /* @__PURE__ */ r.createElement(mn, {
|
|
1846
|
+
symbol: a,
|
|
1847
|
+
header: e,
|
|
1848
|
+
text: n,
|
|
1849
|
+
html: o
|
|
1850
|
+
}) : null), l.length ? /* @__PURE__ */ r.createElement(un, h({
|
|
1851
|
+
items: l,
|
|
1852
|
+
renderItem: u,
|
|
1853
|
+
renderLi: c
|
|
1854
|
+
}, m)) : null, s);
|
|
1855
|
+
}
|
|
1856
|
+
), V1 = ({
|
|
1587
1857
|
className: e = "",
|
|
1588
1858
|
tree: t,
|
|
1589
1859
|
renderItem: n,
|
|
1590
|
-
rootItem:
|
|
1591
|
-
renderUnselected:
|
|
1592
|
-
renderEmpty:
|
|
1860
|
+
rootItem: o,
|
|
1861
|
+
renderUnselected: i = !0,
|
|
1862
|
+
renderEmpty: s = !0,
|
|
1593
1863
|
ulProps: a,
|
|
1594
|
-
liProps:
|
|
1864
|
+
liProps: l
|
|
1595
1865
|
}) => {
|
|
1596
|
-
const
|
|
1597
|
-
className:
|
|
1598
|
-
items:
|
|
1866
|
+
const u = (p) => !c(p), c = (p) => !p || p.length < 1 ? !0 : !p.some((d) => !!d.selected), m = (p, d) => /* @__PURE__ */ r.createElement(dn, {
|
|
1867
|
+
className: M(`humany-item-tree-level-${d}`),
|
|
1868
|
+
items: p,
|
|
1599
1869
|
ulProps: a,
|
|
1600
|
-
renderItem: (
|
|
1601
|
-
const { id: g, selected: E, items:
|
|
1602
|
-
return !
|
|
1870
|
+
renderItem: (f) => {
|
|
1871
|
+
const { id: g, selected: E, items: v, matches: b } = f, y = E && c(v);
|
|
1872
|
+
return !s && !b ? null : /* @__PURE__ */ r.createElement("li", $(h({}, V(l)), {
|
|
1603
1873
|
key: g,
|
|
1604
1874
|
className: "humany-item-tree-item"
|
|
1605
|
-
}), n && n(
|
|
1875
|
+
}), n && n(f, d, y), v && (i || y) && m(v, d + 1));
|
|
1606
1876
|
}
|
|
1607
1877
|
});
|
|
1608
1878
|
return /* @__PURE__ */ r.createElement("div", {
|
|
1609
|
-
className:
|
|
1610
|
-
},
|
|
1611
|
-
},
|
|
1612
|
-
|
|
1879
|
+
className: M(e, "humany-item-tree")
|
|
1880
|
+
}, o && o(!u(t || [])), t && m(t, 1));
|
|
1881
|
+
}, fn = N(
|
|
1882
|
+
(u, l) => {
|
|
1883
|
+
var c = u, { className: e, onClick: t = () => {
|
|
1884
|
+
}, name: n = "", to: o = "", params: i = {}, children: s } = c, a = S(c, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1885
|
+
const m = Pe(), p = Z();
|
|
1886
|
+
if (!m)
|
|
1887
|
+
return null;
|
|
1888
|
+
let d = "";
|
|
1889
|
+
const f = $(h({
|
|
1890
|
+
onClick: t,
|
|
1891
|
+
className: M(e, "humany-route-link"),
|
|
1892
|
+
to: d,
|
|
1893
|
+
innerRef: l
|
|
1894
|
+
}, a), {
|
|
1895
|
+
ref: null
|
|
1896
|
+
});
|
|
1897
|
+
if (n) {
|
|
1898
|
+
if (!(m.routes || []).find((b) => b.name === n))
|
|
1899
|
+
return process.env.NODE_ENV !== "production" && de.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
|
|
1900
|
+
onClick: (b) => {
|
|
1901
|
+
t(b), b.preventDefault(), process.env.NODE_ENV !== "production" && de.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
1902
|
+
}
|
|
1903
|
+
}), s);
|
|
1904
|
+
const v = Object.keys(i).reduce((b, y) => (b[y] = typeof i[y] == "string" ? encodeURIComponent(i[y]) : i[y], b), {});
|
|
1905
|
+
try {
|
|
1906
|
+
d = m.generate(n, v || {});
|
|
1907
|
+
} catch (b) {
|
|
1908
|
+
return /* @__PURE__ */ r.createElement(fe, h({}, f), s);
|
|
1909
|
+
}
|
|
1910
|
+
d && m.settings.mode && m.settings.mode === Te.browser && d[0] !== "/" && (d = `/${d}`);
|
|
1911
|
+
} else if (o && m.history)
|
|
1912
|
+
d = m.history.createHref({
|
|
1913
|
+
hash: "",
|
|
1914
|
+
pathname: o,
|
|
1915
|
+
search: "",
|
|
1916
|
+
state: void 0
|
|
1917
|
+
});
|
|
1918
|
+
else
|
|
1919
|
+
return process.env.NODE_ENV !== "production" && de.warn(
|
|
1920
|
+
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
1921
|
+
), null;
|
|
1922
|
+
if (m.settings && m.settings.mode === Te.scopedHash) {
|
|
1923
|
+
const g = p.get("$widget").name;
|
|
1924
|
+
d = xt(d, g);
|
|
1925
|
+
}
|
|
1926
|
+
return /* @__PURE__ */ r.createElement(fe, $(h({}, f), {
|
|
1927
|
+
to: d
|
|
1928
|
+
}), s);
|
|
1929
|
+
}
|
|
1930
|
+
), xe = N(
|
|
1931
|
+
(g, f) => {
|
|
1932
|
+
var E = g, {
|
|
1933
|
+
className: e,
|
|
1934
|
+
disabled: t = !1,
|
|
1935
|
+
role: n = "link",
|
|
1936
|
+
tabIndex: o = 0,
|
|
1937
|
+
onClick: i = () => {
|
|
1938
|
+
},
|
|
1939
|
+
onKeyDown: s = () => {
|
|
1940
|
+
},
|
|
1941
|
+
title: a,
|
|
1942
|
+
href: l,
|
|
1943
|
+
children: u,
|
|
1944
|
+
target: c,
|
|
1945
|
+
routeName: m,
|
|
1946
|
+
params: p
|
|
1947
|
+
} = E, d = S(E, [
|
|
1948
|
+
"className",
|
|
1949
|
+
"disabled",
|
|
1950
|
+
"role",
|
|
1951
|
+
"tabIndex",
|
|
1952
|
+
"onClick",
|
|
1953
|
+
"onKeyDown",
|
|
1954
|
+
"title",
|
|
1955
|
+
"href",
|
|
1956
|
+
"children",
|
|
1957
|
+
"target",
|
|
1958
|
+
"routeName",
|
|
1959
|
+
"params"
|
|
1960
|
+
]);
|
|
1961
|
+
const v = {
|
|
1962
|
+
title: a,
|
|
1963
|
+
disabled: t,
|
|
1964
|
+
role: n,
|
|
1965
|
+
tabIndex: o,
|
|
1966
|
+
className: M(e, "humany-link", [!!t, "humany-disabled"]),
|
|
1967
|
+
onClick: (b) => {
|
|
1968
|
+
if (b.persist(), t) {
|
|
1969
|
+
b.preventDefault();
|
|
1970
|
+
return;
|
|
1971
|
+
}
|
|
1972
|
+
i(b);
|
|
1973
|
+
},
|
|
1974
|
+
onKeyDown: (b) => {
|
|
1975
|
+
if (b.persist(), t) {
|
|
1976
|
+
b.key !== "Tab" && b.preventDefault();
|
|
1977
|
+
return;
|
|
1978
|
+
}
|
|
1979
|
+
s(b);
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1982
|
+
return m ? /* @__PURE__ */ r.createElement(hn, $(h(h({
|
|
1983
|
+
name: m,
|
|
1984
|
+
params: p
|
|
1985
|
+
}, v), V(d)), {
|
|
1986
|
+
ref: f
|
|
1987
|
+
}), u) : /* @__PURE__ */ r.createElement(pn, $(h(h({
|
|
1988
|
+
href: l,
|
|
1989
|
+
target: c
|
|
1990
|
+
}, v), V(d)), {
|
|
1991
|
+
ref: f
|
|
1992
|
+
}), u);
|
|
1993
|
+
}
|
|
1994
|
+
), hn = C(fn)`
|
|
1995
|
+
${(e) => e.disabled ? `
|
|
1996
|
+
pointer-events: none;
|
|
1997
|
+
opacity: .7;
|
|
1998
|
+
` : "cursor: pointer;"}
|
|
1999
|
+
`, pn = C.a`
|
|
2000
|
+
${(e) => e.disabled ? `
|
|
2001
|
+
pointer-events: none;
|
|
2002
|
+
opacity: .7;
|
|
2003
|
+
` : "cursor: pointer;"}
|
|
2004
|
+
`, Ue = (s) => {
|
|
2005
|
+
var a = s, {
|
|
1613
2006
|
visible: e,
|
|
1614
2007
|
duration: t = 500,
|
|
1615
2008
|
children: n,
|
|
1616
|
-
onClick:
|
|
2009
|
+
onClick: o = () => {
|
|
1617
2010
|
}
|
|
1618
|
-
} = a,
|
|
2011
|
+
} = a, i = S(a, [
|
|
1619
2012
|
"visible",
|
|
1620
2013
|
"duration",
|
|
1621
2014
|
"children",
|
|
1622
2015
|
"onClick"
|
|
1623
2016
|
]);
|
|
1624
|
-
const
|
|
1625
|
-
c
|
|
1626
|
-
|
|
1627
|
-
|
|
2017
|
+
const l = R(), u = H(
|
|
2018
|
+
(c) => {
|
|
2019
|
+
c.target === l.current && o(c);
|
|
2020
|
+
},
|
|
2021
|
+
[o]
|
|
2022
|
+
);
|
|
2023
|
+
return /* @__PURE__ */ r.createElement(Ie, {
|
|
1628
2024
|
in: e,
|
|
1629
2025
|
className: "humany-overlay-transition",
|
|
1630
2026
|
classNames: "humany-overlay-transition",
|
|
1631
2027
|
unmountOnExit: !0,
|
|
1632
2028
|
timeout: t
|
|
1633
|
-
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(
|
|
2029
|
+
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(gn, h({
|
|
1634
2030
|
className: "humany-overlay",
|
|
1635
2031
|
duration: t,
|
|
1636
|
-
ref:
|
|
1637
|
-
onClick:
|
|
1638
|
-
},
|
|
1639
|
-
},
|
|
2032
|
+
ref: l,
|
|
2033
|
+
onClick: u
|
|
2034
|
+
}, i), n)));
|
|
2035
|
+
}, gn = C.div`
|
|
1640
2036
|
background: rgba(0, 0, 0, 0.6);
|
|
1641
2037
|
min-width: 100%;
|
|
1642
2038
|
min-height: 100%;
|
|
@@ -1666,215 +2062,576 @@ const Et = 300, Bn = ({
|
|
|
1666
2062
|
&.humany-overlay-transition-exit-done {
|
|
1667
2063
|
opacity: 0;
|
|
1668
2064
|
}
|
|
1669
|
-
`,
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
2065
|
+
`, Cn = We`
|
|
2066
|
+
100% {
|
|
2067
|
+
transform: rotate(360deg);
|
|
2068
|
+
}
|
|
2069
|
+
`, yn = We`
|
|
2070
|
+
0% {
|
|
2071
|
+
stroke-dasharray: 1, 200;
|
|
2072
|
+
stroke-dashoffset: 0;
|
|
2073
|
+
}
|
|
2074
|
+
50% {
|
|
2075
|
+
stroke-dasharray: 89, 200;
|
|
2076
|
+
stroke-dashoffset: -35px;
|
|
2077
|
+
}
|
|
2078
|
+
100% {
|
|
2079
|
+
stroke-dasharray: 89, 200;
|
|
2080
|
+
stroke-dashoffset: -124px;
|
|
2081
|
+
}
|
|
2082
|
+
`, qe = C.svg`
|
|
2083
|
+
animation: ${Cn} 2s linear infinite;
|
|
2084
|
+
height: 100%;
|
|
2085
|
+
transform-origin: center center;
|
|
2086
|
+
width: 100%;
|
|
2087
|
+
position: absolute;
|
|
2088
|
+
top: 0;
|
|
2089
|
+
bottom: 0;
|
|
2090
|
+
left: 0;
|
|
2091
|
+
right: 0;
|
|
2092
|
+
margin: auto;
|
|
2093
|
+
transition: 200ms ease-out opacity;
|
|
2094
|
+
`, bn = C.div`
|
|
2095
|
+
position: absolute;
|
|
2096
|
+
top: 0;
|
|
2097
|
+
bottom: 0;
|
|
2098
|
+
left: 0;
|
|
2099
|
+
right: 0;
|
|
2100
|
+
height: 100%;
|
|
2101
|
+
width: 100%;
|
|
2102
|
+
pointer-events: ${(e) => e["data-loading"] ? "all" : "none"}
|
|
2103
|
+
display: flex;
|
|
2104
|
+
flex-direction: column;
|
|
2105
|
+
justify-content: center;
|
|
2106
|
+
transition: 200ms ease-out opacity;
|
|
2107
|
+
box-sizing: border-box;
|
|
2108
|
+
overflow: hidden;
|
|
2109
|
+
${qe} {
|
|
2110
|
+
opacity: ${(e) => e["data-loading"] ? "1" : "0"}
|
|
2111
|
+
}
|
|
2112
|
+
`, vn = C.div`
|
|
2113
|
+
position: relative;
|
|
2114
|
+
margin: 0 auto;
|
|
2115
|
+
width: 100px;
|
|
2116
|
+
&:before {
|
|
2117
|
+
content: '';
|
|
2118
|
+
display: block;
|
|
2119
|
+
padding-top: 100%;
|
|
2120
|
+
}
|
|
2121
|
+
`, wn = C.circle`
|
|
2122
|
+
stroke-dasharray: 1, 200;
|
|
2123
|
+
stroke-dashoffset: 0;
|
|
2124
|
+
animation: ${yn} 1.5s ease-in-out infinite;
|
|
2125
|
+
stroke-linecap: round;
|
|
2126
|
+
stroke: ${(e) => {
|
|
1690
2127
|
var t;
|
|
1691
|
-
return (t = e.theme.
|
|
2128
|
+
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
1692
2129
|
}};
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
2130
|
+
stroke-width: 2px;
|
|
2131
|
+
`, En = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ r.createElement(bn, {
|
|
2132
|
+
className: M("humany-loader", e),
|
|
2133
|
+
"data-loading": t
|
|
2134
|
+
}, /* @__PURE__ */ r.createElement(vn, {
|
|
2135
|
+
className: "humany-spinner"
|
|
2136
|
+
}, /* @__PURE__ */ r.createElement(qe, {
|
|
2137
|
+
viewBox: "25 25 50 50"
|
|
2138
|
+
}, /* @__PURE__ */ r.createElement(wn, {
|
|
2139
|
+
cx: "50",
|
|
2140
|
+
cy: "50",
|
|
2141
|
+
r: "20",
|
|
2142
|
+
fill: "none",
|
|
2143
|
+
"stroke-width": "2",
|
|
2144
|
+
"stroke-miterlimit": "10"
|
|
2145
|
+
})))), xn = (i) => {
|
|
2146
|
+
var s = i, {
|
|
2147
|
+
zoomState: e,
|
|
2148
|
+
image: t,
|
|
2149
|
+
changeZoom: n
|
|
2150
|
+
} = s, o = S(s, [
|
|
2151
|
+
"zoomState",
|
|
2152
|
+
"image",
|
|
2153
|
+
"changeZoom"
|
|
2154
|
+
]);
|
|
2155
|
+
var b;
|
|
2156
|
+
const a = R(null), [l, u] = k(!1), [c, m] = k(!1), v = o.style || {}, { width: p, height: d } = v, f = S(v, ["width", "height"]), g = H(() => {
|
|
2157
|
+
const y = a.current;
|
|
2158
|
+
if (y) {
|
|
2159
|
+
const B = window.innerWidth / y.width, T = window.innerHeight / y.height, z = Math.min(B, T);
|
|
2160
|
+
return T >= 1 && B >= 1 ? 1 : z;
|
|
1701
2161
|
}
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
2162
|
+
return 1;
|
|
2163
|
+
}, [l, t.src]), E = ie(() => {
|
|
2164
|
+
const y = a.current;
|
|
2165
|
+
if (y) {
|
|
2166
|
+
if (!c) {
|
|
2167
|
+
m(!0);
|
|
2168
|
+
const B = g();
|
|
2169
|
+
n(B);
|
|
2170
|
+
}
|
|
2171
|
+
return y.width >= y.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
|
|
1711
2172
|
}
|
|
1712
|
-
|
|
1713
|
-
|
|
2173
|
+
return null;
|
|
2174
|
+
}, [e, a, l, t.src]);
|
|
2175
|
+
return w(() => (u(!1), function() {
|
|
2176
|
+
m(!1);
|
|
2177
|
+
}), [t.src]), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(kn, {
|
|
2178
|
+
loading: !l
|
|
2179
|
+
}), /* @__PURE__ */ r.createElement($n, $(h({
|
|
2180
|
+
onLoad: () => {
|
|
2181
|
+
u(!0);
|
|
2182
|
+
},
|
|
2183
|
+
ref: a,
|
|
2184
|
+
imageSize: E,
|
|
2185
|
+
draggable: "false"
|
|
2186
|
+
}, o), {
|
|
2187
|
+
alt: ((b = o.alt) == null ? void 0 : b.toString()) || "",
|
|
2188
|
+
style: f,
|
|
2189
|
+
src: t.src,
|
|
2190
|
+
loaded: l
|
|
2191
|
+
})), /* @__PURE__ */ r.createElement(Ln, null));
|
|
2192
|
+
}, kn = C(En)`
|
|
2193
|
+
svg circle {
|
|
1714
2194
|
stroke: #ffffff;
|
|
1715
2195
|
}
|
|
1716
|
-
`,
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
2196
|
+
`, $n = C.img`
|
|
2197
|
+
transform: none;
|
|
2198
|
+
|
|
2199
|
+
${(e) => e.imageSize && L`
|
|
2200
|
+
width: ${e.imageSize[0]};
|
|
2201
|
+
height: ${e.imageSize[1]};
|
|
2202
|
+
display: inline-block;
|
|
2203
|
+
`}
|
|
2204
|
+
vertical-align: middle;
|
|
2205
|
+
position: relative;
|
|
2206
|
+
${(e) => !e.loaded && "display:none;"}
|
|
2207
|
+
`, Ln = C.div`
|
|
2208
|
+
height: 100%;
|
|
2209
|
+
display: inline-block;
|
|
2210
|
+
vertical-align: middle;
|
|
2211
|
+
`, Mn = () => {
|
|
2212
|
+
const e = R(), [t, n] = k(!0), o = H(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2213
|
+
n(!1);
|
|
2214
|
+
}, 3e3), () => {
|
|
2215
|
+
e.current && clearTimeout(e.current);
|
|
2216
|
+
}), [t, e]);
|
|
2217
|
+
return [t, o];
|
|
2218
|
+
}, Sn = ({ attrs: e, htmlBody: t }) => {
|
|
2219
|
+
var Se;
|
|
2220
|
+
const n = j("Escape"), o = j("ArrowLeft"), i = j("ArrowRight"), [s, a] = k(1), [l, u] = k({ top: 0, left: 0, x: 0, y: 0 }), [c, m] = k(!1), [p, d] = Mn(), [f, g] = k(null), [E, v] = k(null), b = R(null), y = R(null), B = R(null), T = R(null);
|
|
2221
|
+
w(() => {
|
|
2222
|
+
n && g(null);
|
|
2223
|
+
}, [n]), w(() => {
|
|
2224
|
+
a(1);
|
|
2225
|
+
}, [f]), w(() => {
|
|
2226
|
+
var F, A;
|
|
2227
|
+
if (f === null || y.current === null)
|
|
2228
|
+
return;
|
|
2229
|
+
const x = y.current.firstElementChild, D = (F = B.current) == null ? void 0 : F.querySelector(".nav-left"), W = (A = B.current) == null ? void 0 : A.querySelector(".nav-right");
|
|
2230
|
+
if (E === "Right")
|
|
2231
|
+
te && W ? W.focus() : ee && D && D.focus();
|
|
2232
|
+
else if (E === "Left")
|
|
2233
|
+
ee && D ? D.focus() : te && W && W.focus();
|
|
2234
|
+
else {
|
|
2235
|
+
if (!x)
|
|
2236
|
+
return;
|
|
2237
|
+
x.focus();
|
|
2238
|
+
}
|
|
2239
|
+
}, [f, y, B, E]), w(() => {
|
|
2240
|
+
if (o) {
|
|
2241
|
+
if (ee)
|
|
2242
|
+
return Le();
|
|
2243
|
+
} else if (i && te)
|
|
2244
|
+
return Me();
|
|
2245
|
+
}, [o, i]);
|
|
2246
|
+
const z = ie(() => {
|
|
2247
|
+
const x = document.createElement("div");
|
|
2248
|
+
x.innerHTML = t || "";
|
|
2249
|
+
const D = x.getElementsByTagName("img");
|
|
2250
|
+
return Array.from(D).reduce((F, A) => {
|
|
2251
|
+
const Re = A.getAttribute("src"), it = A.height || Number.parseInt(A.style.height, 10), st = A.width || Number.parseInt(A.style.width, 10);
|
|
2252
|
+
if (Re) {
|
|
2253
|
+
const at = {
|
|
2254
|
+
src: Re,
|
|
2255
|
+
originalWidth: st,
|
|
2256
|
+
originalHeight: it
|
|
2257
|
+
};
|
|
2258
|
+
F.push(at);
|
|
2259
|
+
}
|
|
2260
|
+
return F;
|
|
2261
|
+
}, []);
|
|
2262
|
+
}, [t]), Y = H(() => {
|
|
2263
|
+
const { src: x } = e;
|
|
2264
|
+
if (x) {
|
|
2265
|
+
const D = z.findIndex((W, F) => W.src === x);
|
|
2266
|
+
g(D);
|
|
2267
|
+
}
|
|
2268
|
+
}, [z, e]), Je = H((x) => {
|
|
2269
|
+
g(null);
|
|
2270
|
+
}, []), $e = H(
|
|
2271
|
+
(x) => {
|
|
2272
|
+
a(x ? s + s * 0.25 : s - s * 0.25);
|
|
1770
2273
|
},
|
|
1771
|
-
|
|
2274
|
+
[a, s]
|
|
2275
|
+
), et = H(() => {
|
|
2276
|
+
if (f !== null) {
|
|
2277
|
+
const { src: x } = z[f];
|
|
2278
|
+
x && window.open(x, "_self");
|
|
2279
|
+
}
|
|
2280
|
+
}, [z, f]), tt = H(
|
|
2281
|
+
(x) => {
|
|
2282
|
+
const D = T.current;
|
|
2283
|
+
D && (u({ top: D.scrollTop, left: D.scrollLeft, x: x.clientX, y: x.clientY }), m(!0));
|
|
1772
2284
|
},
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
"className",
|
|
1781
|
-
"disabled",
|
|
1782
|
-
"role",
|
|
1783
|
-
"tabIndex",
|
|
1784
|
-
"onClick",
|
|
1785
|
-
"onKeyDown",
|
|
1786
|
-
"title",
|
|
1787
|
-
"href",
|
|
1788
|
-
"children",
|
|
1789
|
-
"target",
|
|
1790
|
-
"routeName",
|
|
1791
|
-
"params"
|
|
1792
|
-
]);
|
|
1793
|
-
const x = {
|
|
1794
|
-
title: a,
|
|
1795
|
-
disabled: t,
|
|
1796
|
-
role: n,
|
|
1797
|
-
tabIndex: s,
|
|
1798
|
-
className: w(e, "humany-link", [!!t, "humany-disabled"]),
|
|
1799
|
-
onClick: (y) => {
|
|
1800
|
-
if (y.persist(), t) {
|
|
1801
|
-
y.preventDefault();
|
|
1802
|
-
return;
|
|
2285
|
+
[T]
|
|
2286
|
+
), nt = H(
|
|
2287
|
+
(x) => {
|
|
2288
|
+
const D = T.current;
|
|
2289
|
+
if (D && c) {
|
|
2290
|
+
const W = x.clientX - l.x, F = x.clientY - l.y;
|
|
2291
|
+
D.scrollTop = l.top - F, D.scrollLeft = l.left - W;
|
|
1803
2292
|
}
|
|
1804
|
-
o(y);
|
|
1805
2293
|
},
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
2294
|
+
[c, l]
|
|
2295
|
+
), rt = (x) => {
|
|
2296
|
+
x.preventDefault(), m(!1);
|
|
2297
|
+
}, ot = ie(() => {
|
|
2298
|
+
if (T.current) {
|
|
2299
|
+
const x = T.current.getElementsByTagName("img");
|
|
2300
|
+
if (x && x.length) {
|
|
2301
|
+
const D = x[0];
|
|
2302
|
+
return D.width > window.innerWidth || D.height > window.innerHeight;
|
|
1810
2303
|
}
|
|
1811
|
-
i(y);
|
|
1812
2304
|
}
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
},
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
})
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
2305
|
+
return !1;
|
|
2306
|
+
}, [T, s]), Le = () => {
|
|
2307
|
+
f !== null && (v("Left"), g(f - 1));
|
|
2308
|
+
}, Me = () => {
|
|
2309
|
+
f !== null && (v("Right"), g(f + 1));
|
|
2310
|
+
}, ee = f !== null && f > 0 && z.length > 1, te = f !== null && z.length - 1 > f;
|
|
2311
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
|
|
2312
|
+
visible: f !== null,
|
|
2313
|
+
onClick: Je
|
|
2314
|
+
}, /* @__PURE__ */ r.createElement(Vn, {
|
|
2315
|
+
onMouseDown: () => d(),
|
|
2316
|
+
onMouseMove: () => d(),
|
|
2317
|
+
onTouchStart: () => d(),
|
|
2318
|
+
onKeyDown: () => d()
|
|
2319
|
+
}, /* @__PURE__ */ r.createElement(Zn, {
|
|
2320
|
+
show: p.toString()
|
|
2321
|
+
}, /* @__PURE__ */ r.createElement(Dn, {
|
|
2322
|
+
ref: y,
|
|
2323
|
+
buttons: [
|
|
2324
|
+
{
|
|
2325
|
+
id: "download",
|
|
2326
|
+
onClick: et,
|
|
2327
|
+
icon: "download",
|
|
2328
|
+
ariaLabel: "Download image"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
id: "lightbox-close",
|
|
2332
|
+
onClick: () => g(null),
|
|
2333
|
+
icon: "lightbox-close",
|
|
2334
|
+
ariaLabel: "Close"
|
|
2335
|
+
}
|
|
2336
|
+
]
|
|
2337
|
+
})), /* @__PURE__ */ r.createElement(In, {
|
|
2338
|
+
scrolling: c.toString(),
|
|
2339
|
+
isDraggable: ot.toString(),
|
|
2340
|
+
ref: T,
|
|
2341
|
+
onMouseMove: nt,
|
|
2342
|
+
onMouseDown: tt,
|
|
2343
|
+
onMouseUp: rt
|
|
2344
|
+
}, f !== null && /* @__PURE__ */ r.createElement(xn, $(h({
|
|
2345
|
+
changeZoom: (x) => {
|
|
2346
|
+
a(x);
|
|
2347
|
+
},
|
|
2348
|
+
zoomState: s
|
|
2349
|
+
}, e), {
|
|
2350
|
+
image: z[f]
|
|
2351
|
+
}))), /* @__PURE__ */ r.createElement(Tn, {
|
|
2352
|
+
ref: B,
|
|
2353
|
+
show: p.toString(),
|
|
2354
|
+
buttons: [
|
|
2355
|
+
{
|
|
2356
|
+
id: "previous",
|
|
2357
|
+
onClick: Le,
|
|
2358
|
+
icon: "caret-left",
|
|
2359
|
+
circle: !0,
|
|
2360
|
+
show: ee,
|
|
2361
|
+
className: "nav-left",
|
|
2362
|
+
ariaLabel: "Navigate to previous image"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
id: "next",
|
|
2366
|
+
onClick: Me,
|
|
2367
|
+
icon: "caret-right",
|
|
2368
|
+
circle: !0,
|
|
2369
|
+
show: te,
|
|
2370
|
+
className: "nav-right",
|
|
2371
|
+
ariaLabel: "Navigate to next image"
|
|
2372
|
+
}
|
|
2373
|
+
]
|
|
2374
|
+
}), /* @__PURE__ */ r.createElement(Wn, {
|
|
2375
|
+
show: p.toString()
|
|
2376
|
+
}, /* @__PURE__ */ r.createElement(Bn, {
|
|
2377
|
+
buttons: [
|
|
2378
|
+
{
|
|
2379
|
+
id: "zoom-out",
|
|
2380
|
+
onClick: () => $e(!1),
|
|
2381
|
+
icon: "zoom-out",
|
|
2382
|
+
ariaLabel: "Zoom out"
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
id: "zoom-in",
|
|
2386
|
+
onClick: () => $e(!0),
|
|
2387
|
+
icon: "zoom-in",
|
|
2388
|
+
ariaLabel: "Zoom in"
|
|
2389
|
+
}
|
|
2390
|
+
]
|
|
2391
|
+
}), /* @__PURE__ */ r.createElement(Nn, {
|
|
2392
|
+
variant: "span"
|
|
2393
|
+
}, Math.trunc(s * 100), "%")))), /* @__PURE__ */ r.createElement(Rn, {
|
|
2394
|
+
ref: b,
|
|
2395
|
+
onClick: Y,
|
|
2396
|
+
onKeyDown: (x) => {
|
|
2397
|
+
x.key === "Enter" && (x.preventDefault(), Y());
|
|
2398
|
+
},
|
|
2399
|
+
tabIndex: 0
|
|
2400
|
+
}, /* @__PURE__ */ r.createElement(On, $(h({}, e), {
|
|
2401
|
+
alt: ((Se = e.alt) == null ? void 0 : Se.toString()) || ""
|
|
2402
|
+
}))));
|
|
2403
|
+
}, ke = N(
|
|
2404
|
+
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ r.createElement(Hn, {
|
|
2405
|
+
ref: o,
|
|
2406
|
+
show: e,
|
|
2407
|
+
className: M("humany-button-set", n)
|
|
2408
|
+
}, t.map(
|
|
2409
|
+
({ id: i, circle: s = !1, show: a = !0, ariaLabel: l, onClick: u, icon: c, className: m }, p) => /* @__PURE__ */ r.createElement(zn, {
|
|
2410
|
+
key: i + p.toString(),
|
|
2411
|
+
circle: s.toString(),
|
|
2412
|
+
onClick: u,
|
|
2413
|
+
tabIndex: a ? void 0 : -1,
|
|
2414
|
+
show: a.toString(),
|
|
2415
|
+
icon: c,
|
|
2416
|
+
className: m,
|
|
2417
|
+
"aria-label": l
|
|
2418
|
+
}, /* @__PURE__ */ r.createElement(J, {
|
|
2419
|
+
size: 24,
|
|
2420
|
+
symbol: { type: "Svg", content: c }
|
|
2421
|
+
}))
|
|
2422
|
+
))
|
|
2423
|
+
), Qe = C.div`
|
|
2424
|
+
transition: opacity 0.3s ease 0s;
|
|
2425
|
+
z-index: 5;
|
|
2426
|
+
${(e) => e.show === "true" ? "opacity: 1;" : L`
|
|
2427
|
+
opacity: 0;
|
|
2428
|
+
pointer-events: none;
|
|
2429
|
+
`}
|
|
2430
|
+
`, Rn = C(xe)`
|
|
2431
|
+
display: inline-block !important;
|
|
2432
|
+
`, Hn = C(Qe)`
|
|
2433
|
+
position: fixed;
|
|
2434
|
+
display: flex;
|
|
2435
|
+
gap: ${(e) => {
|
|
2436
|
+
var t;
|
|
2437
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2438
|
+
}};
|
|
2439
|
+
`, ge = "39px", zn = C(ae)`
|
|
2440
|
+
width: ${ge};
|
|
2441
|
+
height: ${ge};
|
|
2442
|
+
display: flex;
|
|
2443
|
+
justify-content: center;
|
|
2444
|
+
align-items: center;
|
|
2445
|
+
|
|
2446
|
+
${(e) => e.icon === "caret-left" && L`
|
|
2447
|
+
svg {
|
|
2448
|
+
position: relative;
|
|
2449
|
+
left: -2px;
|
|
2450
|
+
}
|
|
2451
|
+
`}
|
|
2452
|
+
|
|
2453
|
+
${(e) => {
|
|
2454
|
+
var t;
|
|
2455
|
+
return e.circle === "true" ? L`
|
|
2456
|
+
background-color: #ffffff;
|
|
2457
|
+
border-radius: 50%;
|
|
2458
|
+
|
|
2459
|
+
svg {
|
|
2460
|
+
path,
|
|
2461
|
+
line {
|
|
2462
|
+
stroke: ${(t = e.theme.colors) == null ? void 0 : t.text};
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
&:focus-visible {
|
|
2467
|
+
${P}
|
|
2468
|
+
outline-color: #ffffff;
|
|
2469
|
+
background-color: transparent;
|
|
2470
|
+
|
|
2471
|
+
svg {
|
|
2472
|
+
path,
|
|
2473
|
+
line {
|
|
2474
|
+
stroke: #ffffff;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
` : L`
|
|
2479
|
+
svg {
|
|
2480
|
+
path,
|
|
2481
|
+
line {
|
|
2482
|
+
stroke: #ffffff;
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
&:focus {
|
|
2486
|
+
outline-color: #ffffff;
|
|
2487
|
+
}
|
|
2488
|
+
&:focus-visible {
|
|
2489
|
+
${P}
|
|
2490
|
+
}
|
|
2491
|
+
`;
|
|
2492
|
+
}}
|
|
2493
|
+
|
|
2494
|
+
${(e) => e.show === "true" ? L`
|
|
2495
|
+
opacity: 0.8;
|
|
2496
|
+
transition: opacity 0.3s ease 0s;
|
|
2497
|
+
&:hover {
|
|
2498
|
+
opacity: 1;
|
|
2499
|
+
}
|
|
2500
|
+
` : L`
|
|
2501
|
+
opacity: 0;
|
|
2502
|
+
pointer-events: none;
|
|
2503
|
+
`}
|
|
2504
|
+
`, Dn = C(ke)`
|
|
2505
|
+
top: ${(e) => {
|
|
2506
|
+
var t;
|
|
2507
|
+
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2508
|
+
}};
|
|
2509
|
+
right: ${(e) => {
|
|
2510
|
+
var t;
|
|
2511
|
+
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2512
|
+
}};
|
|
2513
|
+
`, Bn = C(ke)`
|
|
2514
|
+
bottom: ${(e) => {
|
|
2515
|
+
var t;
|
|
2516
|
+
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2517
|
+
}};
|
|
2518
|
+
width: 100%;
|
|
2519
|
+
align-items: center;
|
|
2520
|
+
justify-content: center;
|
|
2521
|
+
`, Tn = C(ke)`
|
|
2522
|
+
display: block;
|
|
2523
|
+
button {
|
|
2524
|
+
position: fixed;
|
|
2525
|
+
top: calc(50% - calc(${ge} / 2));
|
|
2526
|
+
&:first-child {
|
|
2527
|
+
left: ${(e) => {
|
|
2528
|
+
var t;
|
|
2529
|
+
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2530
|
+
}};
|
|
2531
|
+
}
|
|
2532
|
+
&:last-child {
|
|
2533
|
+
right: ${(e) => {
|
|
2534
|
+
var t;
|
|
2535
|
+
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2536
|
+
}};
|
|
2537
|
+
}
|
|
1875
2538
|
}
|
|
1876
|
-
|
|
1877
|
-
|
|
2539
|
+
`, Nn = C(U)`
|
|
2540
|
+
position: fixed;
|
|
2541
|
+
bottom: ${(e) => {
|
|
2542
|
+
var t;
|
|
2543
|
+
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2544
|
+
}};
|
|
2545
|
+
right: ${(e) => {
|
|
2546
|
+
var t;
|
|
2547
|
+
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2548
|
+
}};
|
|
2549
|
+
color: #ffffff;
|
|
2550
|
+
font-size: ${(e) => {
|
|
2551
|
+
var t;
|
|
2552
|
+
return (t = e.theme.fonts) == null ? void 0 : t.medium;
|
|
2553
|
+
}};
|
|
2554
|
+
font-family: ${(e) => {
|
|
2555
|
+
var t;
|
|
2556
|
+
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2557
|
+
}};
|
|
2558
|
+
`, Ge = C(Qe)`
|
|
2559
|
+
position: absolute;
|
|
2560
|
+
width: 100vw;
|
|
2561
|
+
height: 88px;
|
|
2562
|
+
left: 0px;
|
|
2563
|
+
z-index: 5;
|
|
2564
|
+
`, Vn = C.div`
|
|
2565
|
+
width: 100%;
|
|
2566
|
+
`, Zn = C(Ge)`
|
|
2567
|
+
top: 0px;
|
|
2568
|
+
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2569
|
+
`, Wn = C(Ge)`
|
|
2570
|
+
bottom: 0px;
|
|
2571
|
+
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2572
|
+
`, In = C.div`
|
|
2573
|
+
width: 100%;
|
|
2574
|
+
height: 100vh;
|
|
2575
|
+
overflow: auto;
|
|
2576
|
+
text-align: center;
|
|
2577
|
+
vertical-align: middle;
|
|
2578
|
+
white-space: nowrap;
|
|
2579
|
+
justify-content: center;
|
|
2580
|
+
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2581
|
+
`, On = C.img`
|
|
2582
|
+
cursor: pointer;
|
|
2583
|
+
`, Fn = N(
|
|
2584
|
+
(l, a) => {
|
|
2585
|
+
var u = l, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2586
|
+
}, close: i = !1 } = u, s = S(u, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2587
|
+
const [c, m] = Ye(), [p, d] = Ke(!0), f = R(), g = R(q()), E = j("Escape");
|
|
2588
|
+
w(() => {
|
|
2589
|
+
(E || i) && m(!1);
|
|
2590
|
+
}, [E, i]), w(() => {
|
|
2591
|
+
c && f.current && f.current.focus();
|
|
2592
|
+
}, [c, f.current]), ce("router:changed", () => {
|
|
2593
|
+
m(!1);
|
|
2594
|
+
});
|
|
2595
|
+
const v = H(
|
|
2596
|
+
(y) => {
|
|
2597
|
+
m(!1), o(y);
|
|
2598
|
+
},
|
|
2599
|
+
[o, m]
|
|
2600
|
+
);
|
|
2601
|
+
Ce(a, () => ({
|
|
2602
|
+
close() {
|
|
2603
|
+
m(!1);
|
|
2604
|
+
}
|
|
2605
|
+
}));
|
|
2606
|
+
const b = H(() => ve(g.current, () => {
|
|
2607
|
+
m(!1);
|
|
2608
|
+
}), [g.current]);
|
|
2609
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(Ue, {
|
|
2610
|
+
visible: c,
|
|
2611
|
+
onClick: v
|
|
2612
|
+
}, /* @__PURE__ */ r.createElement(An, $(h({
|
|
2613
|
+
className: M(
|
|
2614
|
+
e,
|
|
2615
|
+
"humany-modal",
|
|
2616
|
+
`humany-modal-${g.current}`
|
|
2617
|
+
),
|
|
2618
|
+
css: p,
|
|
2619
|
+
tabIndex: -1
|
|
2620
|
+
}, s), {
|
|
2621
|
+
ref: d
|
|
2622
|
+
}), /* @__PURE__ */ r.createElement(Ee, {
|
|
2623
|
+
onClick: () => m(!1),
|
|
2624
|
+
tabIndex: 0,
|
|
2625
|
+
ref: f
|
|
2626
|
+
}, /* @__PURE__ */ r.createElement(J, {
|
|
2627
|
+
symbol: { type: "Svg", content: "close" }
|
|
2628
|
+
})), t)), r.cloneElement(n, {
|
|
2629
|
+
onClick: (y) => {
|
|
2630
|
+
m(), b();
|
|
2631
|
+
}
|
|
2632
|
+
}));
|
|
2633
|
+
}
|
|
2634
|
+
), An = C.div`
|
|
1878
2635
|
font-family: ${(e) => {
|
|
1879
2636
|
var t;
|
|
1880
2637
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1890,39 +2647,39 @@ const Et = 300, Bn = ({
|
|
|
1890
2647
|
var t;
|
|
1891
2648
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
1892
2649
|
}};
|
|
1893
|
-
${
|
|
2650
|
+
${je}
|
|
1894
2651
|
${(e) => e.css && e.css}
|
|
1895
2652
|
outline: none;
|
|
1896
|
-
`,
|
|
2653
|
+
`, Z1 = ({
|
|
1897
2654
|
className: e,
|
|
1898
2655
|
trigger: t,
|
|
1899
2656
|
header: n = "",
|
|
1900
|
-
text:
|
|
1901
|
-
onCancel:
|
|
2657
|
+
text: o = "",
|
|
2658
|
+
onCancel: i = () => {
|
|
1902
2659
|
},
|
|
1903
|
-
onConfirm:
|
|
2660
|
+
onConfirm: s = () => {
|
|
1904
2661
|
},
|
|
1905
2662
|
cancelLabel: a = "",
|
|
1906
|
-
confirmLabel:
|
|
2663
|
+
confirmLabel: l = ""
|
|
1907
2664
|
}) => {
|
|
1908
|
-
const
|
|
1909
|
-
var
|
|
1910
|
-
|
|
1911
|
-
}, [
|
|
1912
|
-
var
|
|
1913
|
-
|
|
1914
|
-
}, [
|
|
1915
|
-
return /* @__PURE__ */ r.createElement(
|
|
2665
|
+
const u = R(), c = H(() => {
|
|
2666
|
+
var p;
|
|
2667
|
+
i(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2668
|
+
}, [i]), m = H(() => {
|
|
2669
|
+
var p;
|
|
2670
|
+
s(), (p = u == null ? void 0 : u.current) == null || p.close();
|
|
2671
|
+
}, [s]);
|
|
2672
|
+
return /* @__PURE__ */ r.createElement(Pn, {
|
|
1916
2673
|
className: e,
|
|
1917
2674
|
trigger: t,
|
|
1918
|
-
ref:
|
|
2675
|
+
ref: u,
|
|
1919
2676
|
onOverlayClick: c
|
|
1920
|
-
}, n && /* @__PURE__ */ r.createElement(
|
|
1921
|
-
onClick:
|
|
1922
|
-
},
|
|
2677
|
+
}, n && /* @__PURE__ */ r.createElement(Ve, null, n), o && /* @__PURE__ */ r.createElement(Ve, null, o), l && /* @__PURE__ */ r.createElement(Kn, {
|
|
2678
|
+
onClick: m
|
|
2679
|
+
}, l), a && /* @__PURE__ */ r.createElement(Yn, {
|
|
1923
2680
|
onClick: c
|
|
1924
2681
|
}, a));
|
|
1925
|
-
},
|
|
2682
|
+
}, Pn = C(Fn)`
|
|
1926
2683
|
display: block;
|
|
1927
2684
|
|
|
1928
2685
|
span {
|
|
@@ -1940,7 +2697,7 @@ const Et = 300, Bn = ({
|
|
|
1940
2697
|
}};
|
|
1941
2698
|
}
|
|
1942
2699
|
}
|
|
1943
|
-
`,
|
|
2700
|
+
`, Kn = C(ae)`
|
|
1944
2701
|
display: inline-block;
|
|
1945
2702
|
min-width: 50px;
|
|
1946
2703
|
${(e) => {
|
|
@@ -1964,13 +2721,13 @@ const Et = 300, Bn = ({
|
|
|
1964
2721
|
}} 0 0;
|
|
1965
2722
|
|
|
1966
2723
|
&:focus {
|
|
1967
|
-
${(e) => {
|
|
1968
|
-
var t;
|
|
1969
|
-
return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && P;
|
|
1970
|
-
}};
|
|
1971
2724
|
background-color: transparent;
|
|
1972
2725
|
}
|
|
1973
|
-
|
|
2726
|
+
|
|
2727
|
+
&:focus-visible {
|
|
2728
|
+
${P}
|
|
2729
|
+
}
|
|
2730
|
+
`, Yn = C(ae)`
|
|
1974
2731
|
display: inline-block;
|
|
1975
2732
|
min-width: 50px;
|
|
1976
2733
|
${(e) => {
|
|
@@ -1988,48 +2745,51 @@ const Et = 300, Bn = ({
|
|
|
1988
2745
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
1989
2746
|
}};
|
|
1990
2747
|
|
|
1991
|
-
&:focus {
|
|
1992
|
-
${
|
|
1993
|
-
var t;
|
|
1994
|
-
return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && P;
|
|
1995
|
-
}};
|
|
2748
|
+
&:focus-visible {
|
|
2749
|
+
${P};
|
|
1996
2750
|
}
|
|
1997
|
-
`,
|
|
2751
|
+
`, W1 = ({
|
|
1998
2752
|
header: e = "",
|
|
1999
2753
|
link: t = "",
|
|
2000
2754
|
suggestionHeader: n = "",
|
|
2001
|
-
suggestion:
|
|
2002
|
-
}) => /* @__PURE__ */ r.createElement(
|
|
2755
|
+
suggestion: o = ""
|
|
2756
|
+
}) => /* @__PURE__ */ r.createElement(jn, null, /* @__PURE__ */ r.createElement(Xn, null, /* @__PURE__ */ r.createElement(U, {
|
|
2003
2757
|
variant: "h2"
|
|
2004
|
-
}, "404")), /* @__PURE__ */ r.createElement(
|
|
2758
|
+
}, "404")), /* @__PURE__ */ r.createElement(_n, null, /* @__PURE__ */ r.createElement(U, {
|
|
2005
2759
|
variant: "h3"
|
|
2006
|
-
}, e), /* @__PURE__ */ r.createElement(
|
|
2760
|
+
}, e), /* @__PURE__ */ r.createElement(qn, {
|
|
2007
2761
|
routeName: "index",
|
|
2008
2762
|
"aria-label": t,
|
|
2009
2763
|
text: t
|
|
2010
|
-
})), /* @__PURE__ */ r.createElement(
|
|
2764
|
+
})), /* @__PURE__ */ r.createElement(Un, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, o)))), jn = C.div`
|
|
2011
2765
|
display: flex;
|
|
2012
2766
|
flex-wrap: wrap;
|
|
2013
|
-
`,
|
|
2014
|
-
${
|
|
2767
|
+
`, Xn = C.div`
|
|
2768
|
+
${se(
|
|
2769
|
+
"h2",
|
|
2770
|
+
L`
|
|
2015
2771
|
padding: 0;
|
|
2016
2772
|
margin: 0;
|
|
2017
2773
|
color: gray;
|
|
2018
2774
|
font-size: 7em;
|
|
2019
|
-
`
|
|
2020
|
-
|
|
2775
|
+
`
|
|
2776
|
+
)}
|
|
2777
|
+
`, _n = C.div`
|
|
2021
2778
|
margin-left: ${(e) => {
|
|
2022
2779
|
var t;
|
|
2023
2780
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2024
2781
|
}};
|
|
2025
2782
|
|
|
2026
|
-
${
|
|
2783
|
+
${se(
|
|
2784
|
+
"h3",
|
|
2785
|
+
L`
|
|
2027
2786
|
text-transform: uppercase;
|
|
2028
2787
|
font-size: ${(e) => {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
}};
|
|
2032
|
-
`
|
|
2788
|
+
var t;
|
|
2789
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
2790
|
+
}};
|
|
2791
|
+
`
|
|
2792
|
+
)}
|
|
2033
2793
|
|
|
2034
2794
|
a {
|
|
2035
2795
|
color: ${(e) => {
|
|
@@ -2041,7 +2801,7 @@ const Et = 300, Bn = ({
|
|
|
2041
2801
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2042
2802
|
}};
|
|
2043
2803
|
}
|
|
2044
|
-
`,
|
|
2804
|
+
`, Un = C.div`
|
|
2045
2805
|
margin-top: ${(e) => {
|
|
2046
2806
|
var t;
|
|
2047
2807
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2052,25 +2812,30 @@ const Et = 300, Bn = ({
|
|
|
2052
2812
|
font-weight: bold;
|
|
2053
2813
|
}
|
|
2054
2814
|
`;
|
|
2055
|
-
class
|
|
2815
|
+
class I1 extends dt {
|
|
2056
2816
|
constructor() {
|
|
2057
|
-
super(...arguments)
|
|
2817
|
+
super(...arguments);
|
|
2818
|
+
re(this, "node");
|
|
2819
|
+
re(this, "onFocusListener");
|
|
2820
|
+
re(this, "state", {
|
|
2058
2821
|
boundFocus: !1
|
|
2059
|
-
};
|
|
2822
|
+
});
|
|
2060
2823
|
}
|
|
2061
2824
|
componentWillMount() {
|
|
2062
|
-
const
|
|
2063
|
-
|
|
2825
|
+
const n = this.props.container.get("accessibilitySettings");
|
|
2826
|
+
n && n.boundFocus && this.setState({
|
|
2064
2827
|
boundFocus: !0
|
|
2065
2828
|
});
|
|
2066
2829
|
}
|
|
2067
2830
|
componentDidMount() {
|
|
2068
2831
|
if (!this.state.boundFocus)
|
|
2069
2832
|
return;
|
|
2070
|
-
const
|
|
2071
|
-
this.node &&
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2833
|
+
const n = this.props.container.get("widgetDOMElement");
|
|
2834
|
+
this.node && n && (this.onFocusListener = this.node.addEventListener("focus", () => {
|
|
2835
|
+
const o = n.querySelectorAll(
|
|
2836
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2837
|
+
), s = [].filter.call(o, (a) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(a).display === "none" || a.offsetWidth <= 0 && a.offsetHeight <= 0))[0];
|
|
2838
|
+
s && s.focus();
|
|
2074
2839
|
}));
|
|
2075
2840
|
}
|
|
2076
2841
|
componentWillUnmount() {
|
|
@@ -2080,62 +2845,67 @@ class Zn extends We {
|
|
|
2080
2845
|
return this.state.boundFocus ? /* @__PURE__ */ r.createElement("div", {
|
|
2081
2846
|
style: { opacity: 0 },
|
|
2082
2847
|
tabIndex: 0,
|
|
2083
|
-
ref: (
|
|
2084
|
-
this.node =
|
|
2848
|
+
ref: (n) => {
|
|
2849
|
+
this.node = n;
|
|
2085
2850
|
}
|
|
2086
2851
|
}) : null;
|
|
2087
2852
|
}
|
|
2088
2853
|
}
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
});
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2854
|
+
const qn = N(
|
|
2855
|
+
(a, s) => {
|
|
2856
|
+
var l = a, { className: e, description: t, text: n, children: o } = l, i = S(l, ["className", "description", "text", "children"]);
|
|
2857
|
+
return /* @__PURE__ */ r.createElement(xe, $(h({
|
|
2858
|
+
className: M(e, "humany-text-link")
|
|
2859
|
+
}, i), {
|
|
2860
|
+
ref: s
|
|
2861
|
+
}), o, /* @__PURE__ */ r.createElement(we, null, n), t ? /* @__PURE__ */ r.createElement(_e, {
|
|
2862
|
+
html: t,
|
|
2863
|
+
className: "humany-description"
|
|
2864
|
+
}) : null);
|
|
2865
|
+
}
|
|
2866
|
+
);
|
|
2867
|
+
var Qn = /* @__PURE__ */ ((e) => (e.HH_MM = "hh:mm", e.YYYY_MM_DD = "yyyy-mm-dd", e.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", e))(Qn || {});
|
|
2868
|
+
const O1 = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
|
|
2869
|
+
className: M(e, "humany-timestamp")
|
|
2870
|
+
}, Gn(n, t)), Ze = (e) => `0${e}`.slice(-2);
|
|
2871
|
+
function Gn(e, t) {
|
|
2872
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), i = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), a = n.getMonth() + 1, l = n.getDate(), u = `${s}-${Ze(a)}-${Ze(l)}`;
|
|
2873
|
+
return t === "yyyy-mm-dd" ? u : t === "hh:mm" ? i : `${u} ${i}`;
|
|
2107
2874
|
}
|
|
2108
|
-
const
|
|
2109
|
-
var a =
|
|
2110
|
-
const [
|
|
2111
|
-
const { target:
|
|
2112
|
-
!
|
|
2875
|
+
const F1 = (s) => {
|
|
2876
|
+
var a = s, { className: e, children: t, content: n, sticky: o = !1 } = a, i = S(a, ["className", "children", "content", "sticky"]);
|
|
2877
|
+
const [l, u] = k(!1), c = R(q()), m = R(), [{ x: p, y: d }, f] = Xe(l, c.current, m.current), g = (v) => {
|
|
2878
|
+
const { target: b } = v;
|
|
2879
|
+
!m.current || !b || m.current !== b && !m.current.contains(b) && u(!1);
|
|
2113
2880
|
};
|
|
2114
|
-
|
|
2115
|
-
if (!!
|
|
2881
|
+
w(() => {
|
|
2882
|
+
if (!!o)
|
|
2116
2883
|
return window.addEventListener("click", g), () => {
|
|
2117
2884
|
window.removeEventListener("click", g);
|
|
2118
2885
|
};
|
|
2119
|
-
}, [
|
|
2120
|
-
const E = H(
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2886
|
+
}, [l, o]);
|
|
2887
|
+
const E = H(
|
|
2888
|
+
(v, b) => {
|
|
2889
|
+
f(v, m.current), u(b);
|
|
2890
|
+
},
|
|
2891
|
+
[f, u]
|
|
2892
|
+
);
|
|
2893
|
+
return /* @__PURE__ */ r.createElement(Jn, {
|
|
2894
|
+
ref: m,
|
|
2125
2895
|
className: "humany-tooltip-trigger",
|
|
2126
|
-
onMouseEnter:
|
|
2127
|
-
onMouseLeave:
|
|
2128
|
-
onTouchEnd:
|
|
2129
|
-
onClick:
|
|
2130
|
-
}, t,
|
|
2131
|
-
className:
|
|
2132
|
-
x:
|
|
2896
|
+
onMouseEnter: o ? void 0 : (v) => E(v, !0),
|
|
2897
|
+
onMouseLeave: o ? void 0 : (v) => E(v, !1),
|
|
2898
|
+
onTouchEnd: o ? (v) => E(v, !l) : void 0,
|
|
2899
|
+
onClick: o ? (v) => E(v, !l) : void 0
|
|
2900
|
+
}, t, l && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(e1, h({
|
|
2901
|
+
className: M(e, "humany-tooltip-container"),
|
|
2902
|
+
x: p,
|
|
2133
2903
|
y: d
|
|
2134
|
-
},
|
|
2135
|
-
},
|
|
2904
|
+
}, i), n)));
|
|
2905
|
+
}, Jn = C.div`
|
|
2136
2906
|
display: flex;
|
|
2137
2907
|
align-items: center;
|
|
2138
|
-
`,
|
|
2908
|
+
`, e1 = C.div`
|
|
2139
2909
|
color: #ffffff;
|
|
2140
2910
|
background: #161616;
|
|
2141
2911
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2168,185 +2938,224 @@ const Kn = (i) => {
|
|
|
2168
2938
|
let t = "";
|
|
2169
2939
|
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;
|
|
2170
2940
|
}};
|
|
2171
|
-
`,
|
|
2941
|
+
`, A1 = (e) => {
|
|
2172
2942
|
const {
|
|
2173
2943
|
in: t,
|
|
2174
2944
|
mountOnEnter: n = !0,
|
|
2175
|
-
unmountOnExit:
|
|
2176
|
-
timeout:
|
|
2177
|
-
children:
|
|
2945
|
+
unmountOnExit: o = !0,
|
|
2946
|
+
timeout: i,
|
|
2947
|
+
children: s,
|
|
2178
2948
|
transitions: a
|
|
2179
|
-
} = e,
|
|
2180
|
-
var c,
|
|
2949
|
+
} = e, u = (() => {
|
|
2950
|
+
var c, m;
|
|
2181
2951
|
if (!(!a || a === "none")) {
|
|
2182
2952
|
if (typeof a == "string")
|
|
2183
2953
|
return {
|
|
2184
2954
|
enter: {
|
|
2185
2955
|
transitionKeys: a,
|
|
2186
|
-
duration:
|
|
2956
|
+
duration: i ? typeof i == "number" ? i : i.enter : 200,
|
|
2187
2957
|
easing: "ease-in"
|
|
2188
2958
|
},
|
|
2189
2959
|
exit: {
|
|
2190
2960
|
transitionKeys: a,
|
|
2191
|
-
duration:
|
|
2961
|
+
duration: i ? typeof i == "number" ? i : i.exit : 200,
|
|
2192
2962
|
easing: "ease-out"
|
|
2193
2963
|
}
|
|
2194
2964
|
};
|
|
2195
2965
|
if (typeof a == "object") {
|
|
2196
|
-
const { enter:
|
|
2966
|
+
const { enter: p, exit: d } = a;
|
|
2197
2967
|
return {
|
|
2198
2968
|
enter: {
|
|
2199
2969
|
transitionKeys: (c = a.enter) == null ? void 0 : c.type,
|
|
2200
|
-
duration:
|
|
2201
|
-
easing:
|
|
2970
|
+
duration: i ? typeof i == "number" ? i : i.enter : 200,
|
|
2971
|
+
easing: p.easing ? p.easing : "ease-in"
|
|
2202
2972
|
},
|
|
2203
2973
|
exit: {
|
|
2204
|
-
transitionKeys: (
|
|
2205
|
-
duration:
|
|
2974
|
+
transitionKeys: (m = a.enter) == null ? void 0 : m.type,
|
|
2975
|
+
duration: i ? typeof i == "number" ? i : i.enter : 200,
|
|
2206
2976
|
easing: d.easing ? d.easing : "ease-out"
|
|
2207
2977
|
}
|
|
2208
2978
|
};
|
|
2209
2979
|
}
|
|
2210
2980
|
}
|
|
2211
2981
|
})();
|
|
2212
|
-
return /* @__PURE__ */ r.createElement(
|
|
2982
|
+
return /* @__PURE__ */ r.createElement(ht, {
|
|
2213
2983
|
timeout: {
|
|
2214
|
-
enter:
|
|
2215
|
-
exit:
|
|
2984
|
+
enter: u && u.enter.duration || 0,
|
|
2985
|
+
exit: u && u.exit.duration || 0
|
|
2216
2986
|
},
|
|
2217
2987
|
in: t,
|
|
2218
2988
|
appear: !0,
|
|
2219
2989
|
mountOnEnter: n,
|
|
2220
|
-
unmountOnExit:
|
|
2990
|
+
unmountOnExit: o,
|
|
2221
2991
|
onEnter: (c) => c.clientHeight
|
|
2222
|
-
}, (c) =>
|
|
2223
|
-
},
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
const
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
C(() => {
|
|
2231
|
-
const h = u();
|
|
2232
|
-
return h == null || h.activate(o).then(() => h.invoke("attach")), () => {
|
|
2233
|
-
h == null || h.deactivate();
|
|
2992
|
+
}, (c) => s && s(c, u && he.compose(c, u)));
|
|
2993
|
+
}, t1 = N(
|
|
2994
|
+
(l, a) => {
|
|
2995
|
+
var u = l, { className: e, children: t, onClick: n = () => {
|
|
2996
|
+
}, widgetName: o, activationOptions: i } = u, s = S(u, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
2997
|
+
const c = Z(), m = () => {
|
|
2998
|
+
const { implementation: f } = c.get("$widget");
|
|
2999
|
+
return f.widgets.get(o);
|
|
2234
3000
|
};
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
3001
|
+
w(() => {
|
|
3002
|
+
const f = m();
|
|
3003
|
+
return f == null || f.activate(i).then(() => f.invoke("attach")), () => {
|
|
3004
|
+
f == null || f.deactivate();
|
|
3005
|
+
};
|
|
3006
|
+
}, [o]);
|
|
3007
|
+
const p = (f) => {
|
|
3008
|
+
const g = m(), E = f.currentTarget;
|
|
3009
|
+
if (g) {
|
|
3010
|
+
const v = () => {
|
|
3011
|
+
g.invoke("renderState").then(
|
|
3012
|
+
(b) => b === oe.open ? g.invoke("close") : g.invoke("open")
|
|
3013
|
+
).then(() => {
|
|
3014
|
+
g.events.subscribeOnce("widget:area-rendered", (b, y) => {
|
|
3015
|
+
c.get(
|
|
3016
|
+
"widgetDOMElement"
|
|
3017
|
+
) && g.events.dispatch("widget:modal-opened", {
|
|
3018
|
+
name: g.name,
|
|
3019
|
+
ref: E
|
|
3020
|
+
});
|
|
2245
3021
|
});
|
|
2246
3022
|
});
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
|
|
3023
|
+
};
|
|
3024
|
+
g.state === gt.Deactivated ? g.activate(i).then(() => g.invoke("attach")).then(v) : v();
|
|
3025
|
+
}
|
|
3026
|
+
}, d = (f) => {
|
|
3027
|
+
f.key === "Enter" && (f.preventDefault(), p(f));
|
|
3028
|
+
};
|
|
3029
|
+
return /* @__PURE__ */ r.createElement(xe, $(h({
|
|
3030
|
+
className: M(e, "humany-widget-link"),
|
|
3031
|
+
onKeyDown: d,
|
|
3032
|
+
onClick: (f) => {
|
|
3033
|
+
n(f), p(f);
|
|
3034
|
+
}
|
|
3035
|
+
}, s), {
|
|
3036
|
+
ref: a
|
|
3037
|
+
}), t);
|
|
3038
|
+
}
|
|
3039
|
+
), P1 = N(
|
|
3040
|
+
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3041
|
+
const i = Z(), s = ie(() => {
|
|
3042
|
+
if (!i)
|
|
3043
|
+
return null;
|
|
3044
|
+
const a = i.get("widgetDOMElement");
|
|
3045
|
+
return !a || !a.childElementCount ? null : a.children[0];
|
|
3046
|
+
}, [i]);
|
|
3047
|
+
return s ? /* @__PURE__ */ r.createElement(G, {
|
|
3048
|
+
elementId: e,
|
|
3049
|
+
parent: s
|
|
3050
|
+
}, /* @__PURE__ */ r.createElement(n1, {
|
|
3051
|
+
className: M("humany-widget-overlay-outlet", t),
|
|
3052
|
+
ref: o
|
|
3053
|
+
}, n)) : null;
|
|
3054
|
+
}
|
|
3055
|
+
), n1 = C.div`
|
|
3056
|
+
background-color: #ffffff;
|
|
3057
|
+
position: absolute;
|
|
3058
|
+
top: 0;
|
|
3059
|
+
left: 0;
|
|
3060
|
+
bottom: 0;
|
|
3061
|
+
right: 0;
|
|
3062
|
+
z-index: 10;
|
|
3063
|
+
width: 100%;
|
|
3064
|
+
height: 100%;
|
|
3065
|
+
`, K1 = (e, t, n, o, i) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
3066
|
+
t,
|
|
3067
|
+
ft(() => n)
|
|
3068
|
+
), wt(e, t, o || (() => {
|
|
3069
|
+
}), t, i)));
|
|
2265
3070
|
export {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
3071
|
+
Nt as AnchorLink,
|
|
3072
|
+
ae as Button,
|
|
3073
|
+
p1 as Checkbox,
|
|
3074
|
+
Wt as ColumnContext,
|
|
3075
|
+
Fe as ComponentNodeContext,
|
|
3076
|
+
It as ComponentPropertyContext,
|
|
3077
|
+
Z1 as Confirm,
|
|
3078
|
+
Zt as ContainerContext,
|
|
3079
|
+
Qn as DateFormats,
|
|
3080
|
+
D1 as Drawer,
|
|
3081
|
+
qt as DrawerAnimationType,
|
|
3082
|
+
B1 as Dropdown,
|
|
3083
|
+
sn as Empty,
|
|
3084
|
+
T1 as Grid,
|
|
3085
|
+
_e as Html,
|
|
3086
|
+
ln as Icon,
|
|
3087
|
+
N1 as Input,
|
|
3088
|
+
dn as ItemList,
|
|
3089
|
+
V1 as ItemTree,
|
|
3090
|
+
Sn as Lightbox,
|
|
3091
|
+
xe as Link,
|
|
3092
|
+
un as List,
|
|
3093
|
+
Fn as Modal,
|
|
3094
|
+
W1 as NotFound,
|
|
3095
|
+
Ue as Overlay,
|
|
3096
|
+
mn as Paragraph,
|
|
2292
3097
|
G as Portal,
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
3098
|
+
fn as RouteLink,
|
|
3099
|
+
Ot as RoutingContext,
|
|
3100
|
+
Ve as StyledText,
|
|
3101
|
+
J as SymbolBadge,
|
|
3102
|
+
I1 as TabStop,
|
|
3103
|
+
we as Text,
|
|
3104
|
+
qn as TextLink,
|
|
3105
|
+
O1 as Timestamp,
|
|
3106
|
+
F1 as Tooltip,
|
|
3107
|
+
A1 as TransitionComponent,
|
|
3108
|
+
U as Typography,
|
|
3109
|
+
t1 as WidgetLink,
|
|
3110
|
+
P1 as WidgetOverlayOutlet,
|
|
2305
3111
|
P as borderTabStyle,
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
3112
|
+
Ne as browser,
|
|
3113
|
+
Kt as buttonCss,
|
|
3114
|
+
je as contentBox,
|
|
3115
|
+
V as convertToStringAttributes,
|
|
3116
|
+
h1 as createEmptyComponent,
|
|
3117
|
+
K1 as createReactComponent,
|
|
3118
|
+
Tt as defaultRenderInstructions,
|
|
3119
|
+
Rt as embeddedLinkMapper,
|
|
3120
|
+
Oe as filterCssProps,
|
|
3121
|
+
Ht as filterCssPropsStyle,
|
|
3122
|
+
zt as genericHashLink,
|
|
3123
|
+
z1 as genericHtml,
|
|
3124
|
+
se as headingElement,
|
|
3125
|
+
Bt as imageLightboxRenderer,
|
|
3126
|
+
S1 as invertedHoverButton,
|
|
3127
|
+
H1 as itemList,
|
|
3128
|
+
Yt as linkTabStyle,
|
|
3129
|
+
jt as list,
|
|
3130
|
+
R1 as paddedBorderTabStyle,
|
|
3131
|
+
Dt as processHtmlString,
|
|
3132
|
+
he as transitionComposer,
|
|
3133
|
+
g1 as useAction,
|
|
3134
|
+
C1 as useChildren,
|
|
3135
|
+
y1 as useColumns,
|
|
3136
|
+
b1 as useComponent,
|
|
3137
|
+
ye as useComponentDescriptor,
|
|
3138
|
+
be as useComponentNode,
|
|
3139
|
+
_ as useComponentPlatform,
|
|
3140
|
+
Z as useContainer,
|
|
3141
|
+
Ft as useContext,
|
|
3142
|
+
v1 as useDispatch,
|
|
3143
|
+
I as useEventListener,
|
|
3144
|
+
At as useEvents,
|
|
3145
|
+
O as useIsMounted,
|
|
3146
|
+
w1 as useIsTabbing,
|
|
3147
|
+
j as useKeyPress,
|
|
3148
|
+
E1 as useLayout,
|
|
3149
|
+
Ae as usePrevious,
|
|
3150
|
+
x1 as useProperties,
|
|
3151
|
+
k1 as useRenderState,
|
|
3152
|
+
$1 as useRouteData,
|
|
3153
|
+
Pe as useRouter,
|
|
3154
|
+
Ke as useScroll,
|
|
3155
|
+
L1 as useSettings,
|
|
3156
|
+
Ye as useToggle,
|
|
3157
|
+
M1 as useTransitionEnd,
|
|
3158
|
+
ve as useUniqueMenu,
|
|
3159
|
+
ce as useWidgetEvent
|
|
2351
3160
|
};
|
|
2352
3161
|
//# sourceMappingURL=index.js.map
|