@telia-ace/widget-ui 1.0.16 → 1.0.19
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/index.d.ts +0 -1
- package/dist/components/portal.d.ts +2 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1455 -2602
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +0 -1
- package/package.json +9 -5
- package/dist/components/loader.d.ts +0 -9
- package/dist/components/widget-overlay-outlet.d.ts +0 -8
- package/dist/components/zoom-buttons.d.ts +0 -7
- package/dist/components/zoomable-img.d.ts +0 -6
package/dist/index.js
CHANGED
|
@@ -1,51 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
import { kebabCase, appendClassNames, uuid, removeNullAndUndefinedValues } from "@telia-ace/widget-utilities";
|
|
34
|
-
import React, { forwardRef, createContext, useContext as useContext$1, useState, useEffect, useRef, useCallback, useImperativeHandle, useMemo, Component, lazy } from "react";
|
|
35
|
-
import { CSSTransition, Transition } from "react-transition-group";
|
|
36
|
-
import { Container, WidgetState } from "@webprovisions/platform";
|
|
37
|
-
import { ComponentPlatform, asDescriptor, createEventSubscriber, ComponentQuery, WidgetRenderState, extendComponent } from "@telia-ace/widget-core";
|
|
38
|
-
import { createPortal } from "react-dom";
|
|
39
|
-
import convert from "htmr";
|
|
40
|
-
import { HistoryMode, getSpecificWidgetPath } from "@telia-ace/widget-routing";
|
|
41
|
-
import { Link as Link$1 } from "react-router-dom";
|
|
42
|
-
const inEnteringState = (status) => {
|
|
43
|
-
return status === "entering" || status === "entered";
|
|
44
|
-
};
|
|
45
|
-
const inExitingState = (status) => {
|
|
46
|
-
return status === "exiting" || status === "exited";
|
|
47
|
-
};
|
|
48
|
-
const partials = {
|
|
1
|
+
var Ne = Object.defineProperty, ze = Object.defineProperties;
|
|
2
|
+
var Be = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Y = Object.getOwnPropertySymbols;
|
|
4
|
+
var he = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var fe = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
he.call(t, n) && fe(e, n, t[n]);
|
|
8
|
+
if (Y)
|
|
9
|
+
for (var n of Y(t))
|
|
10
|
+
pe.call(t, n) && fe(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, k = (e, t) => ze(e, Be(t));
|
|
13
|
+
var $ = (e, t) => {
|
|
14
|
+
var n = {};
|
|
15
|
+
for (var s in e)
|
|
16
|
+
he.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
|
|
17
|
+
if (e != null && Y)
|
|
18
|
+
for (var s of Y(e))
|
|
19
|
+
t.indexOf(s) < 0 && pe.call(e, s) && (n[s] = e[s]);
|
|
20
|
+
return n;
|
|
21
|
+
};
|
|
22
|
+
import v, { css as M } from "styled-components";
|
|
23
|
+
import { kebabCase as Ve, appendClassNames as w, uuid as F, removeNullAndUndefinedValues as ge, Logger as ne } from "@telia-ace/widget-utilities";
|
|
24
|
+
import r, { forwardRef as D, createContext as Z, useContext as O, useState as L, useEffect as C, useRef as S, useCallback as H, useImperativeHandle as ie, Component as We, lazy as Oe } from "react";
|
|
25
|
+
import { CSSTransition as ve, Transition as Ie } from "react-transition-group";
|
|
26
|
+
import { Container as Pe, WidgetState as Fe } from "@webprovisions/platform";
|
|
27
|
+
import { ComponentPlatform as Ze, asDescriptor as Ae, createEventSubscriber as Ke, ComponentQuery as Ye, WidgetRenderState as j, extendComponent as je } from "@telia-ace/widget-core";
|
|
28
|
+
import { createPortal as Xe } from "react-dom";
|
|
29
|
+
import ye from "htmr";
|
|
30
|
+
import { HistoryMode as be, getSpecificWidgetPath as _e } from "@telia-ace/widget-routing";
|
|
31
|
+
import { Link as re } from "react-router-dom";
|
|
32
|
+
const Ue = (e) => e === "entering" || e === "entered", qe = (e) => e === "exiting" || e === "exited", W = {
|
|
49
33
|
fade: {
|
|
50
34
|
in: "opacity: 1;",
|
|
51
35
|
out: "opacity: 0;"
|
|
@@ -70,52 +54,40 @@ const partials = {
|
|
|
70
54
|
in: "transform: scale(1);",
|
|
71
55
|
out: "transform: scale(0);"
|
|
72
56
|
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
${inKeys && inKeys.length > 0 && inKeys.map((key) => partials[key] ? partials[key].in : "")}
|
|
84
|
-
transition: ${transitionProperty} ${enter.duration}ms ${enter.easing};
|
|
85
|
-
`;
|
|
86
|
-
}
|
|
87
|
-
return "";
|
|
88
|
-
}
|
|
89
|
-
const inBase = inKeys && inKeys.length > 0 && css`
|
|
90
|
-
${inKeys.map((key) => partials[key] ? partials[key].out : "")}
|
|
57
|
+
}, Qe = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], oe = {
|
|
58
|
+
compose: (e = "exited", t) => {
|
|
59
|
+
const { enter: n, exit: s } = t, o = n.transitionKeys.split(" "), i = Qe.indexOf(o[0]) > -1 ? "transform" : "opacity";
|
|
60
|
+
if (Ue(e))
|
|
61
|
+
return o && o.length > 0 ? M`
|
|
62
|
+
${o && o.length > 0 && o.map((m) => W[m] ? W[m].in : "")}
|
|
63
|
+
transition: ${i} ${n.duration}ms ${n.easing};
|
|
64
|
+
` : "";
|
|
65
|
+
const a = o && o.length > 0 && M`
|
|
66
|
+
${o.map((m) => W[m] ? W[m].out : "")}
|
|
91
67
|
`;
|
|
92
|
-
if (
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
${
|
|
97
|
-
${
|
|
98
|
-
|
|
99
|
-
`;
|
|
100
|
-
}
|
|
101
|
-
return inBase;
|
|
68
|
+
if (qe(e)) {
|
|
69
|
+
const m = s.transitionKeys.split(" ");
|
|
70
|
+
return m && m.length > 0 && e === "exiting" ? M`
|
|
71
|
+
${a};
|
|
72
|
+
${m.map((l) => W[l] ? W[l].out : "")}
|
|
73
|
+
transition: ${i} ${s.duration}ms ${s.easing};
|
|
74
|
+
` : a;
|
|
102
75
|
}
|
|
103
76
|
},
|
|
104
|
-
composeViewTransition: (
|
|
105
|
-
if (
|
|
106
|
-
return
|
|
77
|
+
composeViewTransition: (e, t, n) => {
|
|
78
|
+
if (t === "slide")
|
|
79
|
+
return oe.compose(e, {
|
|
107
80
|
enter: {
|
|
108
|
-
transitionKeys:
|
|
81
|
+
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
109
82
|
duration: 500
|
|
110
83
|
},
|
|
111
84
|
exit: {
|
|
112
|
-
transitionKeys:
|
|
85
|
+
transitionKeys: n === "forth" ? "slide-left" : "slide-right",
|
|
113
86
|
duration: 500
|
|
114
87
|
}
|
|
115
88
|
});
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return transitionComposer.compose(status, {
|
|
89
|
+
if (t === "fade")
|
|
90
|
+
return oe.compose(e, {
|
|
119
91
|
enter: {
|
|
120
92
|
transitionKeys: "fade",
|
|
121
93
|
duration: 500
|
|
@@ -125,232 +97,130 @@ const transitionComposer = {
|
|
|
125
97
|
duration: 500
|
|
126
98
|
}
|
|
127
99
|
});
|
|
128
|
-
}
|
|
129
100
|
},
|
|
130
|
-
get: (
|
|
131
|
-
return partials[title];
|
|
132
|
-
}
|
|
101
|
+
get: (e) => W[e]
|
|
133
102
|
};
|
|
134
|
-
var
|
|
135
|
-
|
|
136
|
-
Browsers2["Chrome"] = "chrome";
|
|
137
|
-
Browsers2["Firefox"] = "firefox";
|
|
138
|
-
Browsers2["Safari"] = "safari";
|
|
139
|
-
Browsers2["Edge"] = "edge";
|
|
140
|
-
Browsers2["EdgeChromium"] = "edge-chromium";
|
|
141
|
-
Browsers2["Blink"] = "blink";
|
|
142
|
-
Browsers2["IE"] = "internet-explorer";
|
|
143
|
-
return Browsers2;
|
|
144
|
-
})(Browsers || {});
|
|
145
|
-
var browser = () => {
|
|
103
|
+
var se = /* @__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))(se || {});
|
|
104
|
+
const Ce = () => {
|
|
146
105
|
const {
|
|
147
|
-
opr,
|
|
148
|
-
opera,
|
|
149
|
-
InstallTrigger,
|
|
150
|
-
HTMLElement,
|
|
151
|
-
safari,
|
|
152
|
-
documentMode,
|
|
153
|
-
StyleMedia,
|
|
154
|
-
chrome,
|
|
155
|
-
CSS
|
|
156
|
-
} = window;
|
|
157
|
-
|
|
158
|
-
if (isOpera) {
|
|
106
|
+
opr: e,
|
|
107
|
+
opera: t,
|
|
108
|
+
InstallTrigger: n,
|
|
109
|
+
HTMLElement: s,
|
|
110
|
+
safari: o,
|
|
111
|
+
documentMode: i,
|
|
112
|
+
StyleMedia: a,
|
|
113
|
+
chrome: m,
|
|
114
|
+
CSS: l
|
|
115
|
+
} = window, c = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
|
|
116
|
+
if (c)
|
|
159
117
|
return "opera";
|
|
160
|
-
|
|
161
|
-
if (InstallTrigger) {
|
|
118
|
+
if (n)
|
|
162
119
|
return "firefox";
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return p.toString() === "[object SafariRemoteNotification]";
|
|
166
|
-
})(!safari || typeof safari !== "undefined" && safari.pushNotification);
|
|
167
|
-
if (/constructor/i.test(HTMLElement) || safariCheck) {
|
|
120
|
+
const u = ((h) => h.toString() === "[object SafariRemoteNotification]")(!o || typeof o != "undefined" && o.pushNotification);
|
|
121
|
+
if (/constructor/i.test(s) || u)
|
|
168
122
|
return "safari";
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
if (isIE) {
|
|
123
|
+
const f = !!i;
|
|
124
|
+
if (f)
|
|
172
125
|
return "internet-explorer";
|
|
173
|
-
|
|
174
|
-
if (!isIE && !!StyleMedia) {
|
|
126
|
+
if (!f && !!a)
|
|
175
127
|
return "edge";
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (isChrome) {
|
|
128
|
+
const d = !!m && (!!m.webstore || !!m.runtime);
|
|
129
|
+
if (d)
|
|
179
130
|
return "chrome";
|
|
180
|
-
|
|
181
|
-
if (isChrome && navigator.userAgent.indexOf("Edg") !== -1) {
|
|
131
|
+
if (d && navigator.userAgent.indexOf("Edg") !== -1)
|
|
182
132
|
return "edge-chromium";
|
|
183
|
-
|
|
184
|
-
if ((isChrome || isOpera) && !!CSS) {
|
|
133
|
+
if ((d || c) && !!l)
|
|
185
134
|
return "blink";
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
result[kebabCase(key)] = value.toString();
|
|
197
|
-
} else if (key.substring(0, 4) !== "css-") {
|
|
198
|
-
result[key] = value.toString();
|
|
199
|
-
}
|
|
200
|
-
} else {
|
|
201
|
-
result[key] = value;
|
|
202
|
-
}
|
|
203
|
-
return result;
|
|
204
|
-
}, {});
|
|
205
|
-
};
|
|
206
|
-
const createEmptyComponent = (container, props) => {
|
|
207
|
-
if (container.get("seoConfiguration")) {
|
|
208
|
-
return /* @__PURE__ */ React.createElement(Empty, __spreadValues({}, props));
|
|
209
|
-
}
|
|
210
|
-
return null;
|
|
211
|
-
};
|
|
212
|
-
const isAnchorLink = (href) => {
|
|
213
|
-
const re = new RegExp("^#", "i");
|
|
214
|
-
const match = re.test(href);
|
|
215
|
-
return match;
|
|
216
|
-
};
|
|
217
|
-
const embeddedLinkMapper = (container) => (_a) => {
|
|
218
|
-
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
135
|
+
}, Ge = ["string", "number"], R = (e) => Object.keys(e).reduce((t, n) => {
|
|
136
|
+
const s = typeof e[n] == "undefined" ? "" : e[n], o = typeof s;
|
|
137
|
+
if (Ge.indexOf(o) > -1) {
|
|
138
|
+
const i = n.substring(0, 5);
|
|
139
|
+
i === "data-" || i === "aria-" ? t[Ve(n)] = s.toString() : n.substring(0, 4) !== "css-" && (t[n] = s.toString());
|
|
140
|
+
} else
|
|
141
|
+
t[n] = s;
|
|
142
|
+
return t;
|
|
143
|
+
}, {}), bn = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ r.createElement(Ht, p({}, t)) : null, Je = (e) => new RegExp("^#", "i").test(e), et = (e) => (s) => {
|
|
144
|
+
var o = s, { children: t } = o, n = $(o, ["children"]);
|
|
219
145
|
const {
|
|
220
|
-
implementation,
|
|
221
|
-
name:
|
|
222
|
-
} =
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
146
|
+
implementation: i,
|
|
147
|
+
name: a
|
|
148
|
+
} = e.get("$widget"), { href: m = "" } = n;
|
|
149
|
+
if (Je(m))
|
|
150
|
+
return /* @__PURE__ */ r.createElement(it, {
|
|
151
|
+
smooth: !0,
|
|
152
|
+
to: m
|
|
153
|
+
}, t);
|
|
154
|
+
const l = i.bindings.map((f) => f.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(m);
|
|
155
|
+
if (u && u.length >= 4) {
|
|
156
|
+
const f = u[4];
|
|
157
|
+
if (i.widgets.get(f) && !f.startsWith("blob?") && !f.startsWith(a))
|
|
158
|
+
return /* @__PURE__ */ r.createElement(sn, {
|
|
159
|
+
widgetName: f
|
|
160
|
+
}, t);
|
|
229
161
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return /* @__PURE__ */ React.createElement("a", __spreadValues({}, props), children);
|
|
243
|
-
};
|
|
244
|
-
const filterCssProps = (props) => {
|
|
245
|
-
const cssProps = {};
|
|
246
|
-
Object.keys(props).forEach((key) => {
|
|
247
|
-
if (key.indexOf("css-") > -1) {
|
|
248
|
-
cssProps[key] = props[key];
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
return cssProps;
|
|
252
|
-
};
|
|
253
|
-
const filterCssPropsStyle = css`
|
|
254
|
-
${(p) => {
|
|
255
|
-
let css2 = "";
|
|
256
|
-
Object.keys(filterCssProps(p)).forEach((key) => {
|
|
257
|
-
if (key.indexOf("css-") > -1) {
|
|
258
|
-
css2 += `${key.replace("css-", "")}:${p[key]};`;
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
return css2;
|
|
162
|
+
return /* @__PURE__ */ r.createElement("a", p({}, n), t);
|
|
163
|
+
}, we = (e) => {
|
|
164
|
+
const t = {};
|
|
165
|
+
return Object.keys(e).forEach((n) => {
|
|
166
|
+
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
167
|
+
}), t;
|
|
168
|
+
}, tt = M`
|
|
169
|
+
${(e) => {
|
|
170
|
+
let t = "";
|
|
171
|
+
return Object.keys(we(e)).forEach((n) => {
|
|
172
|
+
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
173
|
+
}), t;
|
|
262
174
|
}}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
e.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hashFragment = props.to.split("#").slice(1).join("#");
|
|
285
|
-
}
|
|
286
|
-
if (hashFragment !== "") {
|
|
287
|
-
getElementAndScroll(props.scroll || ((el) => props.smooth ? el.scrollIntoView({ behavior: "smooth" }) : el.scrollIntoView()));
|
|
288
|
-
}
|
|
289
|
-
return false;
|
|
290
|
-
};
|
|
291
|
-
const _a = props, { scroll, smooth, to } = _a, filteredProps = __objRest(_a, ["scroll", "smooth", "to"]);
|
|
292
|
-
if (As === "a") {
|
|
293
|
-
filteredProps.href = "javascript:;";
|
|
294
|
-
}
|
|
295
|
-
return /* @__PURE__ */ React.createElement(As, __spreadProps(__spreadValues({}, filteredProps), {
|
|
296
|
-
onClick: handleClick
|
|
297
|
-
}), props.children);
|
|
298
|
-
};
|
|
299
|
-
const headingElement = (element, style) => {
|
|
300
|
-
let defaultTag = element;
|
|
301
|
-
let prefix = "";
|
|
302
|
-
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(element)) {
|
|
303
|
-
defaultTag = element;
|
|
304
|
-
} else {
|
|
305
|
-
const match = element.match(/h1|h2|h3|h4|h5|h6/);
|
|
306
|
-
if (match == null ? void 0 : match[0]) {
|
|
307
|
-
defaultTag = match[0];
|
|
308
|
-
const [pre] = element.split(defaultTag);
|
|
309
|
-
prefix = pre;
|
|
175
|
+
`, nt = (e, t) => {
|
|
176
|
+
let n = "";
|
|
177
|
+
const s = () => {
|
|
178
|
+
n = "";
|
|
179
|
+
}, o = (f) => {
|
|
180
|
+
const d = document.getElementById(n);
|
|
181
|
+
return d !== null ? (f(d), s(), !0) : !1;
|
|
182
|
+
}, i = (f) => (f.preventDefault(), s(), e.onClick && e.onClick(f), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && o(e.scroll || ((d) => e.smooth ? d.scrollIntoView({ behavior: "smooth" }) : d.scrollIntoView())), !1), u = e, { scroll: a, smooth: m, to: l } = u, c = $(u, ["scroll", "smooth", "to"]);
|
|
183
|
+
return t === "a" && (c.href = "javascript:;"), /* @__PURE__ */ r.createElement(t, k(p({}, c), {
|
|
184
|
+
onClick: i
|
|
185
|
+
}), e.children);
|
|
186
|
+
}, X = (e, t) => {
|
|
187
|
+
let n = e, s = "";
|
|
188
|
+
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(e))
|
|
189
|
+
n = e;
|
|
190
|
+
else {
|
|
191
|
+
const i = e.match(/h1|h2|h3|h4|h5|h6/);
|
|
192
|
+
if (i != null && i[0]) {
|
|
193
|
+
n = i[0];
|
|
194
|
+
const [a] = e.split(n);
|
|
195
|
+
s = a;
|
|
310
196
|
}
|
|
311
197
|
}
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
return `${pre}${element2}`;
|
|
317
|
-
};
|
|
318
|
-
return css`
|
|
319
|
-
${(p) => renderTag(defaultTag, prefix, p.theme.typographyVariantMapping || {})} {
|
|
320
|
-
${style}
|
|
198
|
+
const o = (i, a, m) => m[i] ? `${a}${m[i]}` : `${a}${i}`;
|
|
199
|
+
return M`
|
|
200
|
+
${(i) => o(n, s, i.theme.typographyVariantMapping || {})} {
|
|
201
|
+
${t}
|
|
321
202
|
}
|
|
322
203
|
`;
|
|
323
204
|
};
|
|
324
|
-
function
|
|
325
|
-
|
|
326
|
-
return convert(html, instruction);
|
|
327
|
-
}
|
|
328
|
-
return convert(html);
|
|
205
|
+
function rt(e, t) {
|
|
206
|
+
return t ? ye(e, t) : ye(e);
|
|
329
207
|
}
|
|
330
|
-
const
|
|
331
|
-
attrs
|
|
332
|
-
})
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
};
|
|
341
|
-
const AnchorLink = (props) => {
|
|
342
|
-
return genericHashLink(props, "a");
|
|
343
|
-
};
|
|
344
|
-
var Button = forwardRef((_a, ref) => {
|
|
345
|
-
var _b = _a, { className, children } = _b, other = __objRest(_b, ["className", "children"]);
|
|
346
|
-
return /* @__PURE__ */ React.createElement(StyledButton$2, __spreadProps(__spreadValues({
|
|
208
|
+
const ot = (e) => /* @__PURE__ */ r.createElement(Wt, {
|
|
209
|
+
attrs: e
|
|
210
|
+
}), st = (e) => ({
|
|
211
|
+
transform: {
|
|
212
|
+
a: et(e),
|
|
213
|
+
img: ot
|
|
214
|
+
}
|
|
215
|
+
}), it = (e) => nt(e, "a"), U = D((o, s) => {
|
|
216
|
+
var i = o, { className: e, children: t } = i, n = $(i, ["className", "children"]);
|
|
217
|
+
return /* @__PURE__ */ r.createElement(at, k(p({
|
|
347
218
|
type: "button",
|
|
348
|
-
className:
|
|
349
|
-
},
|
|
350
|
-
ref
|
|
351
|
-
}),
|
|
352
|
-
})
|
|
353
|
-
const StyledButton$2 = styled.button`
|
|
219
|
+
className: w(e, "humany-button")
|
|
220
|
+
}, R(n)), {
|
|
221
|
+
ref: s
|
|
222
|
+
}), t);
|
|
223
|
+
}), at = v.button`
|
|
354
224
|
-webkit-appearance: button;
|
|
355
225
|
text-transform: none;
|
|
356
226
|
overflow: visible;
|
|
@@ -363,423 +233,239 @@ const StyledButton$2 = styled.button`
|
|
|
363
233
|
line-height: normal;
|
|
364
234
|
margin: 0;
|
|
365
235
|
padding: 0;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
onChange = () => {
|
|
236
|
+
`, Cn = (o) => {
|
|
237
|
+
var i = o, {
|
|
238
|
+
onChange: e = () => {
|
|
370
239
|
},
|
|
371
|
-
onEnter = () => {
|
|
240
|
+
onEnter: t = () => {
|
|
372
241
|
},
|
|
373
|
-
className
|
|
374
|
-
} =
|
|
242
|
+
className: n
|
|
243
|
+
} = i, s = $(i, [
|
|
375
244
|
"onChange",
|
|
376
245
|
"onEnter",
|
|
377
246
|
"className"
|
|
378
247
|
]);
|
|
379
|
-
return /* @__PURE__ */
|
|
380
|
-
className:
|
|
381
|
-
onKeyDown: (
|
|
382
|
-
|
|
383
|
-
onEnter(e);
|
|
384
|
-
}
|
|
248
|
+
return /* @__PURE__ */ r.createElement("input", p({
|
|
249
|
+
className: w(n, "humany-checkbox"),
|
|
250
|
+
onKeyDown: (a) => {
|
|
251
|
+
a.key === "Enter" && t(a);
|
|
385
252
|
},
|
|
386
|
-
onChange: (
|
|
387
|
-
},
|
|
388
|
-
}
|
|
389
|
-
const ContainerContext = createContext(new Container());
|
|
390
|
-
const ColumnContext = createContext(1);
|
|
391
|
-
const ComponentNodeContext = createContext({
|
|
253
|
+
onChange: (a) => e(a.target.value, a.currentTarget.checked)
|
|
254
|
+
}, R(s)));
|
|
255
|
+
}, ct = Z(new Pe()), lt = Z(1), $e = Z({
|
|
392
256
|
id: "",
|
|
393
257
|
type: "",
|
|
394
258
|
name: "",
|
|
395
259
|
branch: ""
|
|
396
|
-
})
|
|
397
|
-
const
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
const useAction = (passedOrigin, passedContainer) => {
|
|
402
|
-
const origin = useComponentDescriptor().id;
|
|
403
|
-
const container = useContainer();
|
|
404
|
-
return (action, value) => {
|
|
405
|
-
(passedContainer || container).getAsync("actionResolver").then((resolver) => {
|
|
406
|
-
resolver.action(passedOrigin || origin, action, value);
|
|
260
|
+
}), ut = Z({}), mt = Z(null), ae = () => O($e), T = () => O(ct), xn = (e, t) => {
|
|
261
|
+
const n = ae().id, s = T();
|
|
262
|
+
return (o, i) => {
|
|
263
|
+
(t || s).getAsync("actionResolver").then((a) => {
|
|
264
|
+
a.action(e || n, o, i);
|
|
407
265
|
});
|
|
408
266
|
};
|
|
409
|
-
}
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
isMounted.current = false;
|
|
428
|
-
};
|
|
429
|
-
}, []);
|
|
430
|
-
return isMounted;
|
|
431
|
-
};
|
|
432
|
-
const useComponentPlatform = (passedContainer) => {
|
|
433
|
-
const container = useContainer();
|
|
434
|
-
const [componentPlatform, setComponentPlatform] = useState(null);
|
|
435
|
-
const isMounted = useIsMounted();
|
|
436
|
-
useEffect(() => {
|
|
437
|
-
ComponentPlatform.getInstance(passedContainer || container).then((platform) => {
|
|
438
|
-
if (isMounted.current) {
|
|
439
|
-
setComponentPlatform(platform);
|
|
440
|
-
}
|
|
267
|
+
}, ce = (e) => {
|
|
268
|
+
const t = O($e), n = I(), [s, o] = L();
|
|
269
|
+
return C(() => {
|
|
270
|
+
if ((e || t.id) && n) {
|
|
271
|
+
const i = n.nodes.get(e || t.id);
|
|
272
|
+
o(i);
|
|
273
|
+
}
|
|
274
|
+
}, [e, t.id, n]), s;
|
|
275
|
+
}, B = () => {
|
|
276
|
+
const e = S(!1);
|
|
277
|
+
return C(() => (e.current = !0, () => {
|
|
278
|
+
e.current = !1;
|
|
279
|
+
}), []), e;
|
|
280
|
+
}, I = (e) => {
|
|
281
|
+
const t = T(), [n, s] = L(null), o = B();
|
|
282
|
+
return C(() => {
|
|
283
|
+
Ze.getInstance(e || t).then((i) => {
|
|
284
|
+
o.current && s(i);
|
|
441
285
|
});
|
|
442
|
-
}, [
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
if (components) {
|
|
464
|
-
const [subscribe, unsubscribe] = createEventSubscriber(components.events);
|
|
465
|
-
subscribe("components:set-layout", (event, data) => {
|
|
466
|
-
if (node === data.node.parent || data.node.parent === components.nodes.root) {
|
|
467
|
-
updateChildren(data.node.parent);
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
subscribe("components:node-appended", (event, data) => {
|
|
471
|
-
if (node === data.node.parent || data.node.parent === components.nodes.root) {
|
|
472
|
-
updateChildren(data.node.parent);
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
subscribe("components:node-removed", (event, { parentNode }) => {
|
|
476
|
-
if (parentNode === node || parentNode === components.nodes.root) {
|
|
477
|
-
updateChildren(parentNode);
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
return () => {
|
|
481
|
-
unsubscribe();
|
|
286
|
+
}, [o]), n;
|
|
287
|
+
}, En = () => {
|
|
288
|
+
const e = ce(), t = I(), [n, s] = L([]), o = B(), i = H((a) => {
|
|
289
|
+
if (t && o.current) {
|
|
290
|
+
const m = t.getBranch(a), l = a.getChildren(m).map((c) => Ae(c));
|
|
291
|
+
s(l);
|
|
292
|
+
}
|
|
293
|
+
}, [o, t, s]);
|
|
294
|
+
return C(() => {
|
|
295
|
+
e && i(e);
|
|
296
|
+
}, [e, t]), C(() => {
|
|
297
|
+
if (t) {
|
|
298
|
+
const [a, m] = Ke(t.events);
|
|
299
|
+
return a("components:set-layout", (l, c) => {
|
|
300
|
+
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
301
|
+
}), a("components:node-appended", (l, c) => {
|
|
302
|
+
(e === c.node.parent || c.node.parent === t.nodes.root) && i(c.node.parent);
|
|
303
|
+
}), a("components:node-removed", (l, { parentNode: c }) => {
|
|
304
|
+
(c === e || c === t.nodes.root) && i(c);
|
|
305
|
+
}), () => {
|
|
306
|
+
m();
|
|
482
307
|
};
|
|
483
308
|
}
|
|
484
|
-
}, [
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
useEffect(() => {
|
|
495
|
-
if (type) {
|
|
496
|
-
let unsubscribe;
|
|
497
|
-
(passedContainer || container).getAsync("componentResolver").then((resolver) => {
|
|
498
|
-
if (isMounted.current) {
|
|
499
|
-
const component2 = resolver.getComponent(type);
|
|
500
|
-
setComponent(component2);
|
|
309
|
+
}, [e, t, i]), n;
|
|
310
|
+
}, vn = () => O(lt), wn = (e, t) => {
|
|
311
|
+
const n = ae(), s = T(), [o, i] = L(void 0), a = B(), m = e || n.type || "";
|
|
312
|
+
return C(() => {
|
|
313
|
+
if (m) {
|
|
314
|
+
let l;
|
|
315
|
+
return (t || s).getAsync("componentResolver").then((c) => {
|
|
316
|
+
if (a.current) {
|
|
317
|
+
const u = c.getComponent(m);
|
|
318
|
+
i(u);
|
|
501
319
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
setComponent(component2);
|
|
505
|
-
}
|
|
320
|
+
l = c.registerResolver(m, (u) => {
|
|
321
|
+
a.current && i(u);
|
|
506
322
|
});
|
|
507
|
-
})
|
|
508
|
-
|
|
509
|
-
if (unsubscribe) {
|
|
510
|
-
unsubscribe();
|
|
511
|
-
}
|
|
323
|
+
}), () => {
|
|
324
|
+
l && l();
|
|
512
325
|
};
|
|
513
326
|
}
|
|
514
|
-
}, [
|
|
515
|
-
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
if (node && isMounted.current) {
|
|
524
|
-
setContext(node.attributes.context);
|
|
525
|
-
}
|
|
526
|
-
}, [isMounted, node]);
|
|
527
|
-
useEffect(() => {
|
|
528
|
-
if (components) {
|
|
529
|
-
const unsubscribe = components.events.subscribe("components:context-changed", (event, data) => {
|
|
530
|
-
if (node === data.node && isMounted.current) {
|
|
531
|
-
setContext(data.node.attributes.context);
|
|
532
|
-
}
|
|
327
|
+
}, [a, m, t, s]), o;
|
|
328
|
+
}, dt = (e) => {
|
|
329
|
+
const t = ce(e), n = I(), [s, o] = L({}), i = B();
|
|
330
|
+
return C(() => {
|
|
331
|
+
t && i.current && o(t.attributes.context);
|
|
332
|
+
}, [i, t]), C(() => {
|
|
333
|
+
if (n) {
|
|
334
|
+
const a = n.events.subscribe("components:context-changed", (m, l) => {
|
|
335
|
+
t === l.node && i.current && o(l.node.attributes.context);
|
|
533
336
|
});
|
|
534
337
|
return () => {
|
|
535
|
-
|
|
338
|
+
a();
|
|
536
339
|
};
|
|
537
340
|
}
|
|
538
|
-
}, [
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
}, [components, descriptor.id]);
|
|
559
|
-
return (key, data) => {
|
|
560
|
-
if (queue !== null) {
|
|
561
|
-
return new Promise((resolve, reject) => {
|
|
562
|
-
queue.push({
|
|
563
|
-
key,
|
|
564
|
-
data,
|
|
565
|
-
resolve,
|
|
566
|
-
reject
|
|
567
|
-
});
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
return actions.dispatch(key, data);
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
var useEventListener = (eventName, handler, element = window, condition = () => true) => {
|
|
574
|
-
const savedHandler = useRef(() => {
|
|
341
|
+
}, [i, n]), s;
|
|
342
|
+
}, $n = () => {
|
|
343
|
+
const e = I(), t = ae(), [n, s] = L([]), [o, i] = L();
|
|
344
|
+
return C(() => {
|
|
345
|
+
if (e && t) {
|
|
346
|
+
const a = new Ye(e).withId(t.id), m = e.actions(a, t.type || F());
|
|
347
|
+
i(m), n !== null && (n.forEach((l) => {
|
|
348
|
+
m.dispatch(l.key, l.data).then((c) => l.resolve(c)).catch((c) => l.reject(c));
|
|
349
|
+
}), s(null));
|
|
350
|
+
}
|
|
351
|
+
}, [e, t.id]), (a, m) => n !== null ? new Promise((l, c) => {
|
|
352
|
+
n.push({
|
|
353
|
+
key: a,
|
|
354
|
+
data: m,
|
|
355
|
+
resolve: l,
|
|
356
|
+
reject: c
|
|
357
|
+
});
|
|
358
|
+
}) : o.dispatch(a, m);
|
|
359
|
+
}, z = (e, t, n = window, s = () => !0) => {
|
|
360
|
+
const o = S(() => {
|
|
575
361
|
});
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}, [
|
|
579
|
-
|
|
580
|
-
const isSupported = element && condition();
|
|
581
|
-
if (!isSupported)
|
|
362
|
+
C(() => {
|
|
363
|
+
o.current = t;
|
|
364
|
+
}, [t]), C(() => {
|
|
365
|
+
if (!(n && s()))
|
|
582
366
|
return;
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
element.removeEventListener(eventName, eventListener);
|
|
367
|
+
const a = (m) => o.current(m);
|
|
368
|
+
return n.addEventListener(e, a), () => {
|
|
369
|
+
n.removeEventListener(e, a);
|
|
587
370
|
};
|
|
588
|
-
}, [
|
|
589
|
-
}
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
setKeyPressed(false);
|
|
609
|
-
}
|
|
610
|
-
}, [setKeyPressed]);
|
|
611
|
-
useEventListener("keydown", onKeyDown, window);
|
|
612
|
-
useEventListener("keyup", onKeyUp, window);
|
|
613
|
-
return keyPressed;
|
|
614
|
-
};
|
|
615
|
-
const useLayout = (id) => {
|
|
616
|
-
const node = useComponentNode(id);
|
|
617
|
-
const components = useComponentPlatform();
|
|
618
|
-
const [layout, setLayout] = useState({});
|
|
619
|
-
const isMounted = useIsMounted();
|
|
620
|
-
useEffect(() => {
|
|
621
|
-
if (node && isMounted.current) {
|
|
622
|
-
setLayout(node.attributes.layout);
|
|
623
|
-
}
|
|
624
|
-
}, [node, isMounted]);
|
|
625
|
-
useEffect(() => {
|
|
626
|
-
if (components) {
|
|
627
|
-
const unsubscribe = components.events.subscribe("components:layout-changed", (event, data) => {
|
|
628
|
-
if (node === data.node && isMounted.current) {
|
|
629
|
-
setLayout(data.node.attributes.layout);
|
|
630
|
-
}
|
|
371
|
+
}, [e, n]);
|
|
372
|
+
}, ft = (e) => {
|
|
373
|
+
const t = T(), { events: n } = (e || t).get("$widget");
|
|
374
|
+
return n;
|
|
375
|
+
}, q = (e, t) => {
|
|
376
|
+
const [n, s] = L(!1), o = H((a) => {
|
|
377
|
+
const { key: m } = a;
|
|
378
|
+
m === e && (s(!0), t && t(a));
|
|
379
|
+
}, [s, t]), i = H(({ key: a }) => {
|
|
380
|
+
a === e && s(!1);
|
|
381
|
+
}, [s]);
|
|
382
|
+
return z("keydown", o, window), z("keyup", i, window), n;
|
|
383
|
+
}, kn = (e) => {
|
|
384
|
+
const t = ce(e), n = I(), [s, o] = L({}), i = B();
|
|
385
|
+
return C(() => {
|
|
386
|
+
t && i.current && o(t.attributes.layout);
|
|
387
|
+
}, [t, i]), C(() => {
|
|
388
|
+
if (n) {
|
|
389
|
+
const a = n.events.subscribe("components:layout-changed", (m, l) => {
|
|
390
|
+
t === l.node && i.current && o(l.node.attributes.layout);
|
|
631
391
|
});
|
|
632
392
|
return () => {
|
|
633
|
-
|
|
393
|
+
a();
|
|
634
394
|
};
|
|
635
395
|
}
|
|
636
|
-
}, [
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
return
|
|
645
|
-
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
return properties;
|
|
649
|
-
};
|
|
650
|
-
const useRenderState = (passedContainer) => {
|
|
651
|
-
const [renderState, setRenderState] = useState();
|
|
652
|
-
const container = useContainer();
|
|
653
|
-
const isMounted = useIsMounted();
|
|
654
|
-
useEffect(() => {
|
|
655
|
-
let unsubscribe;
|
|
656
|
-
const widget = (passedContainer || container).get("$widget");
|
|
657
|
-
if (!widget) {
|
|
396
|
+
}, [n, i]), s;
|
|
397
|
+
}, ke = (e) => {
|
|
398
|
+
const t = S();
|
|
399
|
+
return C(() => {
|
|
400
|
+
t.current = e;
|
|
401
|
+
}), t.current;
|
|
402
|
+
}, Ln = () => O(ut), Mn = (e) => {
|
|
403
|
+
const [t, n] = L(), s = T(), o = B();
|
|
404
|
+
return C(() => {
|
|
405
|
+
let i;
|
|
406
|
+
const a = (e || s).get("$widget");
|
|
407
|
+
if (!a)
|
|
658
408
|
return;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
});
|
|
666
|
-
(passedContainer || container).getAsync("actionResolver").then((actionResolver) => {
|
|
667
|
-
unsubscribe = actionResolver.subscribe(name, (origin, action) => {
|
|
668
|
-
switch (action) {
|
|
409
|
+
const { name: m, invoke: l } = a;
|
|
410
|
+
return l("renderState").then((c) => {
|
|
411
|
+
o.current && n(c);
|
|
412
|
+
}), (e || s).getAsync("actionResolver").then((c) => {
|
|
413
|
+
i = c.subscribe(m, (u, f) => {
|
|
414
|
+
switch (f) {
|
|
669
415
|
case "close":
|
|
670
416
|
case "open":
|
|
671
|
-
|
|
672
|
-
setRenderState(action === "open" ? WidgetRenderState.open : WidgetRenderState.closed);
|
|
673
|
-
}
|
|
417
|
+
o.current && n(f === "open" ? j.open : j.closed);
|
|
674
418
|
break;
|
|
675
419
|
case "hide":
|
|
676
|
-
|
|
677
|
-
setRenderState(WidgetRenderState.hidden);
|
|
678
|
-
}
|
|
420
|
+
o.current && n(j.hidden);
|
|
679
421
|
}
|
|
680
422
|
});
|
|
681
|
-
})
|
|
682
|
-
|
|
683
|
-
if (unsubscribe) {
|
|
684
|
-
unsubscribe();
|
|
685
|
-
}
|
|
423
|
+
}), () => {
|
|
424
|
+
i && i();
|
|
686
425
|
};
|
|
687
|
-
}, [
|
|
688
|
-
|
|
689
|
-
};
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
};
|
|
694
|
-
const useRouteData = (passedContainer) => {
|
|
695
|
-
const container = useContainer();
|
|
696
|
-
const router = useRouter();
|
|
697
|
-
const [routeData, setRouteData] = useState({ name: "", params: {} });
|
|
698
|
-
const isMounted = useIsMounted();
|
|
699
|
-
useEffect(() => {
|
|
700
|
-
const widget = (passedContainer || container).get("$widget");
|
|
701
|
-
if (!widget) {
|
|
426
|
+
}, [o]), t;
|
|
427
|
+
}, Le = () => O(mt), Sn = (e) => {
|
|
428
|
+
const t = T(), n = Le(), [s, o] = L({ name: "", params: {} }), i = B();
|
|
429
|
+
return C(() => {
|
|
430
|
+
const a = (e || t).get("$widget");
|
|
431
|
+
if (!a)
|
|
702
432
|
return;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
removeNullAndUndefinedValues(params);
|
|
709
|
-
setRouteData({ name, params });
|
|
433
|
+
const { events: m } = a;
|
|
434
|
+
return m.subscribe("router:change", (c, { next: { routeData: u } }) => {
|
|
435
|
+
if (i.current) {
|
|
436
|
+
const { name: f, params: d } = u;
|
|
437
|
+
ge(d), o({ name: f, params: d });
|
|
710
438
|
}
|
|
711
439
|
});
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
var
|
|
725
|
-
|
|
726
|
-
const previousY = useRef(0);
|
|
727
|
-
let timeoutId;
|
|
728
|
-
const onScroll = useCallback(() => {
|
|
729
|
-
var _a;
|
|
730
|
-
(_a = elem.current) == null ? void 0 : _a.classList.add("humany-scrolling");
|
|
731
|
-
clearTimeout(timeoutId);
|
|
732
|
-
timeoutId = setTimeout(() => {
|
|
733
|
-
var _a2;
|
|
734
|
-
(_a2 = elem.current) == null ? void 0 : _a2.classList.remove("humany-scrolling");
|
|
440
|
+
}, [i, e, t]), C(() => {
|
|
441
|
+
if (n && n.history && i.current) {
|
|
442
|
+
const a = n.getRouteData(), { name: m, params: l } = a;
|
|
443
|
+
ge(l), o({ name: m, params: l });
|
|
444
|
+
}
|
|
445
|
+
}, [n, i]), s;
|
|
446
|
+
}, Me = (e) => {
|
|
447
|
+
const t = S(), n = S(0);
|
|
448
|
+
let s;
|
|
449
|
+
const o = H(() => {
|
|
450
|
+
var c;
|
|
451
|
+
(c = t.current) == null || c.classList.add("humany-scrolling"), clearTimeout(s), s = setTimeout(() => {
|
|
452
|
+
var u;
|
|
453
|
+
(u = t.current) == null || u.classList.remove("humany-scrolling");
|
|
735
454
|
}, 500);
|
|
736
|
-
}, [
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
const traverseScrollable = (element) => {
|
|
741
|
-
if (isScrollable(element)) {
|
|
742
|
-
if (element === elem.current) {
|
|
743
|
-
return element;
|
|
744
|
-
}
|
|
745
|
-
return null;
|
|
746
|
-
}
|
|
747
|
-
if (element.parentElement) {
|
|
748
|
-
return traverseScrollable(element.parentElement);
|
|
749
|
-
}
|
|
750
|
-
return null;
|
|
751
|
-
};
|
|
752
|
-
const isScrollable = (element) => {
|
|
753
|
-
return element.scrollWidth > element.clientWidth || element.scrollHeight > element.clientHeight;
|
|
754
|
-
};
|
|
755
|
-
const onTouchMove = useCallback((event) => {
|
|
756
|
-
if (!event.cancelable) {
|
|
455
|
+
}, [t]), i = H((c) => {
|
|
456
|
+
n.current = c.touches[0].clientY;
|
|
457
|
+
}, [t]), a = (c) => m(c) ? c === t.current ? c : null : c.parentElement ? a(c.parentElement) : null, m = (c) => c.scrollWidth > c.clientWidth || c.scrollHeight > c.clientHeight, l = H((c) => {
|
|
458
|
+
if (!c.cancelable)
|
|
757
459
|
return;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
const firstScrollable = traverseScrollable(event.target);
|
|
761
|
-
if (!firstScrollable) {
|
|
460
|
+
const u = c.touches[0].clientY, f = a(c.target);
|
|
461
|
+
if (!f)
|
|
762
462
|
return;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
event.preventDefault();
|
|
770
|
-
}
|
|
771
|
-
previousY.current = top;
|
|
772
|
-
}, [elem, previousY]);
|
|
773
|
-
useEventListener("scroll", onScroll, elem.current, () => elem.current && scrollable);
|
|
774
|
-
useEventListener("touchstart", onTouchStart, elem.current, () => elem.current && scrollable);
|
|
775
|
-
useEventListener("touchmove", onTouchMove, elem.current, () => elem.current && scrollable);
|
|
776
|
-
if (!scrollable) {
|
|
777
|
-
return ["", elem];
|
|
778
|
-
}
|
|
779
|
-
return [styling, elem];
|
|
780
|
-
};
|
|
781
|
-
const styling = `
|
|
782
|
-
overflow-y: ${browser() === Browsers.Chrome || browser() === Browsers.EdgeChromium ? "overlay" : "auto"};
|
|
463
|
+
const d = f.scrollTop, h = n.current - u < 0 ? "up" : "down", g = d <= 0 && h === "up", E = d >= f.scrollHeight - f.offsetHeight && h === "down";
|
|
464
|
+
(g || E) && c.preventDefault(), n.current = u;
|
|
465
|
+
}, [t, n]);
|
|
466
|
+
return z("scroll", o, t.current, () => t.current && e), z("touchstart", i, t.current, () => t.current && e), z("touchmove", l, t.current, () => t.current && e), e ? [ht, t] : ["", t];
|
|
467
|
+
}, ht = `
|
|
468
|
+
overflow-y: ${Ce() === se.Chrome || Ce() === se.EdgeChromium ? "overlay" : "auto"};
|
|
783
469
|
overflow-x: hidden;
|
|
784
470
|
-ms-overflow-style: none; /* IE 10+ */
|
|
785
471
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -806,126 +492,94 @@ const styling = `
|
|
|
806
492
|
background-color: #7F7F7F;
|
|
807
493
|
}
|
|
808
494
|
}
|
|
809
|
-
|
|
810
|
-
const
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
useEffect(() => {
|
|
815
|
-
container.get("settings").then((settings2) => {
|
|
816
|
-
if (isMounted.current) {
|
|
817
|
-
setSettings(settings2);
|
|
818
|
-
}
|
|
495
|
+
`, Hn = () => {
|
|
496
|
+
const [e, t] = L(null), n = T(), s = B();
|
|
497
|
+
return C(() => {
|
|
498
|
+
n.get("settings").then((o) => {
|
|
499
|
+
s.current && t(o);
|
|
819
500
|
});
|
|
820
|
-
}, [
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
const [value, setValue] = useState(initialValue);
|
|
825
|
-
const toggle = useCallback((forced) => {
|
|
826
|
-
setValue(typeof forced === "boolean" ? forced : (v) => !v);
|
|
501
|
+
}, [s]), e;
|
|
502
|
+
}, le = (e = !1) => {
|
|
503
|
+
const [t, n] = L(e), s = H((o) => {
|
|
504
|
+
n(typeof o == "boolean" ? o : (i) => !i);
|
|
827
505
|
}, []);
|
|
828
|
-
return [
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
if (!(view == null ? void 0 : view.attributes.properties.animation) && !(rootArea == null ? void 0 : rootArea.attributes.properties.animation)) {
|
|
842
|
-
handler();
|
|
843
|
-
} else {
|
|
844
|
-
const getElement = (id = "") => widgetDOMElement == null ? void 0 : widgetDOMElement.querySelector(`[data-node-id="${id}"]`);
|
|
845
|
-
const viewDOMElement2 = getElement(view == null ? void 0 : view.id);
|
|
846
|
-
if (viewDOMElement2) {
|
|
847
|
-
setViewDOMElement(viewDOMElement2);
|
|
848
|
-
}
|
|
849
|
-
const rootDOMElement2 = getElement(rootArea == null ? void 0 : rootArea.id);
|
|
850
|
-
if (rootDOMElement2) {
|
|
851
|
-
setRootDOMElement(rootDOMElement2);
|
|
852
|
-
}
|
|
506
|
+
return [t, s];
|
|
507
|
+
}, Rn = (e) => {
|
|
508
|
+
const t = T(), n = I(), s = t.get("widgetDOMElement"), [o, i] = L(null), [a, m] = L(null), l = B();
|
|
509
|
+
C(() => {
|
|
510
|
+
if (n && l.current) {
|
|
511
|
+
const u = n.nodes.all.find((d) => d.name === "root-area"), f = n.nodes.all.find((d) => d.type === "view");
|
|
512
|
+
if (!(f != null && f.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
|
|
513
|
+
e();
|
|
514
|
+
else {
|
|
515
|
+
const d = (E = "") => s == null ? void 0 : s.querySelector(`[data-node-id="${E}"]`), h = d(f == null ? void 0 : f.id);
|
|
516
|
+
h && i(h);
|
|
517
|
+
const g = d(u == null ? void 0 : u.id);
|
|
518
|
+
g && m(g);
|
|
853
519
|
}
|
|
854
520
|
}
|
|
855
|
-
}, [
|
|
856
|
-
const
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
const events = useEvents(passedContainer);
|
|
866
|
-
useEffect(() => {
|
|
867
|
-
if (events) {
|
|
868
|
-
const unsubscribe = events.subscribe(event, callback);
|
|
521
|
+
}, [n, t, l]);
|
|
522
|
+
const c = H((u) => {
|
|
523
|
+
l.current && (u.target === o || u.target === a) && e();
|
|
524
|
+
}, [e, l, o, a]);
|
|
525
|
+
z("transitionend", c, o), z("transitionend", c, a);
|
|
526
|
+
}, Q = (e, t, n = [], s) => {
|
|
527
|
+
const o = ft(s);
|
|
528
|
+
return C(() => {
|
|
529
|
+
if (o) {
|
|
530
|
+
const i = o.subscribe(e, t);
|
|
869
531
|
return () => {
|
|
870
|
-
|
|
532
|
+
i();
|
|
871
533
|
};
|
|
872
534
|
}
|
|
873
|
-
}, [
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
const dispatch = useWidgetEvent("widget:menu-toggled", (_, triggeredId) => {
|
|
878
|
-
if (triggeredId !== id) {
|
|
879
|
-
callback();
|
|
880
|
-
}
|
|
535
|
+
}, [o].concat(n)), (i) => o == null ? void 0 : o.dispatch(e, i);
|
|
536
|
+
}, ue = (e, t) => {
|
|
537
|
+
const n = Q("widget:menu-toggled", (s, o) => {
|
|
538
|
+
o !== e && t();
|
|
881
539
|
});
|
|
882
|
-
return () =>
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
};
|
|
890
|
-
const contentBox = css`
|
|
540
|
+
return () => n(e);
|
|
541
|
+
}, me = (s) => {
|
|
542
|
+
var o = s, { className: e, children: t } = o, n = $(o, ["className", "children"]);
|
|
543
|
+
return /* @__PURE__ */ r.createElement("span", p({
|
|
544
|
+
className: w(e, "humany-text")
|
|
545
|
+
}, R(n)), t);
|
|
546
|
+
}, Se = M`
|
|
891
547
|
display: flex;
|
|
892
548
|
justify-content: center;
|
|
893
549
|
flex-direction: column;
|
|
894
550
|
background: #ffffff;
|
|
895
|
-
border-radius: ${(
|
|
896
|
-
border: ${(
|
|
897
|
-
box-shadow: ${(
|
|
898
|
-
${(
|
|
899
|
-
|
|
900
|
-
const buttonCss = css`
|
|
551
|
+
border-radius: ${(e) => e.theme.borderRadius};
|
|
552
|
+
border: ${(e) => e.theme.border};
|
|
553
|
+
box-shadow: ${(e) => e.theme.boxShadow || "none"};
|
|
554
|
+
${(e) => e["data-loading"] && "min-height: 150px;"}
|
|
555
|
+
`, pt = M`
|
|
901
556
|
cursor: pointer;
|
|
902
557
|
text-align: center;
|
|
903
558
|
border: none;
|
|
904
|
-
padding: ${(
|
|
905
|
-
var
|
|
906
|
-
return (
|
|
559
|
+
padding: ${(e) => {
|
|
560
|
+
var t;
|
|
561
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
907
562
|
}};
|
|
908
|
-
border-radius: ${(
|
|
909
|
-
font-family: ${(
|
|
910
|
-
var
|
|
911
|
-
return (
|
|
563
|
+
border-radius: ${(e) => e.theme.borderRadius};
|
|
564
|
+
font-family: ${(e) => {
|
|
565
|
+
var t;
|
|
566
|
+
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
912
567
|
}};
|
|
913
|
-
font-size: ${(
|
|
914
|
-
var
|
|
915
|
-
return (
|
|
568
|
+
font-size: ${(e) => {
|
|
569
|
+
var t;
|
|
570
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
916
571
|
}};
|
|
917
572
|
font-weight: 300;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}
|
|
924
|
-
${
|
|
925
|
-
|
|
926
|
-
background-color: ${active ? primaryColor : secondaryColor};
|
|
573
|
+
`, Dn = ({
|
|
574
|
+
primaryColor: e,
|
|
575
|
+
secondaryColor: t,
|
|
576
|
+
active: n
|
|
577
|
+
}) => M`
|
|
578
|
+
${pt}
|
|
579
|
+
border: 1px solid ${n ? t : e};
|
|
580
|
+
background-color: ${n ? e : t};
|
|
927
581
|
|
|
928
|
-
color: ${
|
|
582
|
+
color: ${n ? t : e};
|
|
929
583
|
transition: background-color 200ms ease-out, color 200ms ease-out;
|
|
930
584
|
|
|
931
585
|
span,
|
|
@@ -933,110 +587,104 @@ const invertedHoverButton = ({
|
|
|
933
587
|
p,
|
|
934
588
|
a {
|
|
935
589
|
transition: color 200ms ease-out;
|
|
936
|
-
color: ${
|
|
937
|
-
font-size: ${(
|
|
938
|
-
var
|
|
939
|
-
return (
|
|
590
|
+
color: ${n ? t : e};
|
|
591
|
+
font-size: ${(s) => {
|
|
592
|
+
var o;
|
|
593
|
+
return (o = s.theme.fonts) == null ? void 0 : o.normal;
|
|
940
594
|
}};
|
|
941
595
|
}
|
|
942
596
|
|
|
943
|
-
${(
|
|
597
|
+
${(s) => !s.disabled && M`
|
|
944
598
|
&:hover {
|
|
945
|
-
background-color: ${
|
|
946
|
-
color: ${
|
|
599
|
+
background-color: ${e};
|
|
600
|
+
color: ${t};
|
|
947
601
|
|
|
948
602
|
span,
|
|
949
603
|
i,
|
|
950
604
|
p,
|
|
951
605
|
a {
|
|
952
|
-
color: ${
|
|
606
|
+
color: ${t};
|
|
953
607
|
}
|
|
954
608
|
}
|
|
955
609
|
|
|
956
610
|
&:focus {
|
|
957
|
-
${(
|
|
958
|
-
var
|
|
959
|
-
return ((
|
|
611
|
+
${(o) => {
|
|
612
|
+
var i;
|
|
613
|
+
return ((i = o.theme.accessibility) == null ? void 0 : i.isTabbing) && P;
|
|
960
614
|
}};
|
|
961
615
|
}
|
|
962
616
|
`}
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
return (_a = p.theme.accessibility) == null ? void 0 : _a.border;
|
|
617
|
+
`, P = M`
|
|
618
|
+
outline: ${(e) => {
|
|
619
|
+
var t;
|
|
620
|
+
return (t = e.theme.accessibility) == null ? void 0 : t.border;
|
|
968
621
|
}};
|
|
969
|
-
color: ${(
|
|
970
|
-
var
|
|
971
|
-
return (
|
|
622
|
+
color: ${(e) => {
|
|
623
|
+
var t, n;
|
|
624
|
+
return (n = (t = e.theme.accessibility) == null ? void 0 : t.colors) == null ? void 0 : n.inactiveText;
|
|
972
625
|
}};
|
|
973
626
|
border-color: transparent;
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
${borderTabStyle}
|
|
627
|
+
`, Tn = M`
|
|
628
|
+
${P}
|
|
977
629
|
text-decoration: underline;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
${
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.small;
|
|
630
|
+
`, Nn = M`
|
|
631
|
+
${P}
|
|
632
|
+
outline-offset: ${(e) => {
|
|
633
|
+
var t;
|
|
634
|
+
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
984
635
|
}};
|
|
985
|
-
|
|
986
|
-
const CloseButton$1 = styled(Button)`
|
|
636
|
+
`, de = v(U)`
|
|
987
637
|
position: absolute;
|
|
988
|
-
top: ${(
|
|
989
|
-
var
|
|
990
|
-
return (
|
|
638
|
+
top: ${(e) => {
|
|
639
|
+
var t;
|
|
640
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
991
641
|
}};
|
|
992
|
-
right: ${(
|
|
993
|
-
var
|
|
994
|
-
return (
|
|
642
|
+
right: ${(e) => {
|
|
643
|
+
var t;
|
|
644
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
995
645
|
}};
|
|
996
646
|
z-index: 1;
|
|
997
647
|
|
|
998
648
|
svg {
|
|
999
|
-
stroke: ${(
|
|
1000
|
-
var
|
|
1001
|
-
return (
|
|
649
|
+
stroke: ${(e) => {
|
|
650
|
+
var t;
|
|
651
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
1002
652
|
}};
|
|
1003
653
|
}
|
|
1004
654
|
|
|
1005
655
|
&:focus {
|
|
1006
|
-
${(
|
|
1007
|
-
var
|
|
1008
|
-
return ((
|
|
1009
|
-
${
|
|
1010
|
-
padding: ${(
|
|
1011
|
-
var
|
|
1012
|
-
return (
|
|
656
|
+
${(e) => {
|
|
657
|
+
var t;
|
|
658
|
+
return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && M`
|
|
659
|
+
${P}
|
|
660
|
+
padding: ${(n) => {
|
|
661
|
+
var s;
|
|
662
|
+
return (s = n.theme.sizes) == null ? void 0 : s.small;
|
|
1013
663
|
}};
|
|
1014
664
|
height: 15px;
|
|
1015
665
|
box-sizing: content-box;
|
|
1016
666
|
`;
|
|
1017
667
|
}};
|
|
1018
668
|
}
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
return (_a = p.theme.fonts) == null ? void 0 : _a.normal;
|
|
669
|
+
`, xe = v(me)`
|
|
670
|
+
font-size: ${(e) => {
|
|
671
|
+
var t;
|
|
672
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1024
673
|
}};
|
|
1025
674
|
font-weight: normal;
|
|
1026
675
|
line-height: 1.2em;
|
|
1027
|
-
color: ${(
|
|
1028
|
-
var
|
|
1029
|
-
return (
|
|
676
|
+
color: ${(e) => {
|
|
677
|
+
var t;
|
|
678
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
1030
679
|
}};
|
|
1031
|
-
|
|
1032
|
-
const list = css`
|
|
680
|
+
`, gt = M`
|
|
1033
681
|
padding: 0;
|
|
1034
682
|
margin: 0;
|
|
1035
683
|
list-style: none;
|
|
1036
684
|
> li {
|
|
1037
|
-
margin: 0 0 ${(
|
|
1038
|
-
var
|
|
1039
|
-
return (
|
|
685
|
+
margin: 0 0 ${(e) => {
|
|
686
|
+
var t;
|
|
687
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
1040
688
|
}};
|
|
1041
689
|
white-space: nowrap;
|
|
1042
690
|
text-overflow: ellipsis;
|
|
@@ -1051,38 +699,37 @@ const list = css`
|
|
|
1051
699
|
> li:last-child {
|
|
1052
700
|
margin: 0;
|
|
1053
701
|
}
|
|
1054
|
-
|
|
1055
|
-
const itemList = css`
|
|
702
|
+
`, zn = M`
|
|
1056
703
|
> div {
|
|
1057
|
-
${
|
|
1058
|
-
margin: 0 0 ${(
|
|
1059
|
-
var
|
|
1060
|
-
return (
|
|
704
|
+
${X("> h1", M`
|
|
705
|
+
margin: 0 0 ${(e) => {
|
|
706
|
+
var t;
|
|
707
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
1061
708
|
}};
|
|
1062
|
-
font-size: ${(
|
|
1063
|
-
var
|
|
1064
|
-
return (
|
|
709
|
+
font-size: ${(e) => {
|
|
710
|
+
var t;
|
|
711
|
+
return (t = e.theme.fonts) == null ? void 0 : t.medium;
|
|
1065
712
|
}};
|
|
1066
713
|
font-weight: normal;
|
|
1067
714
|
line-height: 1.8em;
|
|
1068
|
-
color: ${(
|
|
1069
|
-
var
|
|
1070
|
-
return (
|
|
715
|
+
color: ${(e) => {
|
|
716
|
+
var t;
|
|
717
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
1071
718
|
}};
|
|
1072
719
|
`)}
|
|
1073
720
|
}
|
|
1074
721
|
> ul {
|
|
1075
|
-
${
|
|
722
|
+
${gt}
|
|
1076
723
|
}
|
|
1077
724
|
|
|
1078
|
-
${
|
|
725
|
+
${X("h1", M`
|
|
1079
726
|
display: flex;
|
|
1080
727
|
align-items: center;
|
|
1081
728
|
|
|
1082
729
|
i {
|
|
1083
|
-
margin: 7px ${(
|
|
1084
|
-
var
|
|
1085
|
-
return (
|
|
730
|
+
margin: 7px ${(e) => {
|
|
731
|
+
var t;
|
|
732
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
1086
733
|
}} 0 0;
|
|
1087
734
|
width: 24px;
|
|
1088
735
|
display: inline-block;
|
|
@@ -1093,113 +740,26 @@ const itemList = css`
|
|
|
1093
740
|
text-align: center;
|
|
1094
741
|
}
|
|
1095
742
|
`)}
|
|
1096
|
-
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
return (_a = p.theme.fonts) == null ? void 0 : _a.normal;
|
|
1101
|
-
}};
|
|
1102
|
-
font-weight: 300;
|
|
1103
|
-
line-height: 1.5em;
|
|
1104
|
-
color: ${(p) => {
|
|
1105
|
-
var _a;
|
|
1106
|
-
return (_a = p.theme.colors) == null ? void 0 : _a.text;
|
|
1107
|
-
}};
|
|
1108
|
-
|
|
1109
|
-
h1,
|
|
1110
|
-
h2,
|
|
1111
|
-
h3,
|
|
1112
|
-
h4,
|
|
1113
|
-
h5,
|
|
1114
|
-
h6 {
|
|
1115
|
-
word-break: break-word;
|
|
1116
|
-
&:first-child {
|
|
1117
|
-
margin-top: 0;
|
|
1118
|
-
}
|
|
1119
|
-
&:only-child {
|
|
1120
|
-
margin: 0;
|
|
1121
|
-
}
|
|
1122
|
-
&:last-child {
|
|
1123
|
-
margin-bottom: 0;
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
a {
|
|
1128
|
-
color: ${(p) => {
|
|
1129
|
-
var _a;
|
|
1130
|
-
return (_a = p.theme.colors) == null ? void 0 : _a.link;
|
|
1131
|
-
}};
|
|
1132
|
-
&:focus {
|
|
1133
|
-
${(p) => {
|
|
1134
|
-
var _a;
|
|
1135
|
-
return ((_a = p.theme.accessibility) == null ? void 0 : _a.isTabbing) && linkTabStyle;
|
|
1136
|
-
}};
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
img {
|
|
1141
|
-
max-width: 100% !important;
|
|
1142
|
-
height: auto !important;
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
p {
|
|
1146
|
-
word-break: break-word;
|
|
1147
|
-
margin: ${(p) => {
|
|
1148
|
-
var _a;
|
|
1149
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.normal;
|
|
1150
|
-
}} 0;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
p:first-child {
|
|
1154
|
-
margin: 0 0 ${(p) => {
|
|
1155
|
-
var _a;
|
|
1156
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.normal;
|
|
1157
|
-
}};
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
p:last-child {
|
|
1161
|
-
margin: ${(p) => {
|
|
1162
|
-
var _a;
|
|
1163
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.normal;
|
|
1164
|
-
}} 0 0;
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
p:only-child {
|
|
1168
|
-
margin: 0;
|
|
1169
|
-
}
|
|
1170
|
-
`;
|
|
1171
|
-
const Portal = ({
|
|
1172
|
-
elementId = "humany-portal-elements",
|
|
1173
|
-
parent = document.body,
|
|
1174
|
-
children
|
|
1175
|
-
}) => {
|
|
1176
|
-
const [container] = useState(() => {
|
|
1177
|
-
const el = document.getElementById(elementId) || document.createElement("div");
|
|
1178
|
-
el.id = elementId;
|
|
1179
|
-
return el;
|
|
743
|
+
`, G = ({ elementId: e = "humany-portal-elements", children: t }) => {
|
|
744
|
+
const [n] = r.useState(() => {
|
|
745
|
+
const s = document.getElementById(e) || document.createElement("div");
|
|
746
|
+
return s.id = e, s;
|
|
1180
747
|
});
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
};
|
|
1191
|
-
const SymbolBadge = (_g) => {
|
|
1192
|
-
var _h = _g, {
|
|
1193
|
-
text = "",
|
|
1194
|
-
backgroundSize = "contain",
|
|
1195
|
-
size = 12,
|
|
1196
|
-
symbol = {
|
|
748
|
+
return C(() => (document.body.appendChild(n), () => {
|
|
749
|
+
n.childElementCount <= 1 && document.body.removeChild(n);
|
|
750
|
+
}), [n]), Xe(t, n);
|
|
751
|
+
}, A = (m) => {
|
|
752
|
+
var l = m, {
|
|
753
|
+
text: e = "",
|
|
754
|
+
backgroundSize: t = "contain",
|
|
755
|
+
size: n = 12,
|
|
756
|
+
symbol: s = {
|
|
1197
757
|
content: "",
|
|
1198
758
|
type: ""
|
|
1199
759
|
},
|
|
1200
|
-
elementStyle = {},
|
|
1201
|
-
className
|
|
1202
|
-
} =
|
|
760
|
+
elementStyle: o = {},
|
|
761
|
+
className: i
|
|
762
|
+
} = l, a = $(l, [
|
|
1203
763
|
"text",
|
|
1204
764
|
"backgroundSize",
|
|
1205
765
|
"size",
|
|
@@ -1207,280 +767,263 @@ const SymbolBadge = (_g) => {
|
|
|
1207
767
|
"elementStyle",
|
|
1208
768
|
"className"
|
|
1209
769
|
]);
|
|
1210
|
-
const { type, content } =
|
|
1211
|
-
|
|
1212
|
-
"aria-label": text,
|
|
770
|
+
const { type: c, content: u } = s, f = {
|
|
771
|
+
"aria-label": e,
|
|
1213
772
|
role: "presentation"
|
|
1214
773
|
};
|
|
1215
|
-
switch (
|
|
774
|
+
switch (c) {
|
|
1216
775
|
case "Uri": {
|
|
1217
|
-
const
|
|
1218
|
-
backgroundSize,
|
|
1219
|
-
backgroundImage: `url('${
|
|
776
|
+
const d = {
|
|
777
|
+
backgroundSize: t,
|
|
778
|
+
backgroundImage: `url('${u}')`,
|
|
1220
779
|
backgroundRepeat: "no-repeat",
|
|
1221
780
|
backgroundPosition: "center",
|
|
1222
781
|
backgroundAttachment: "center"
|
|
1223
782
|
};
|
|
1224
|
-
return /* @__PURE__ */
|
|
1225
|
-
className:
|
|
1226
|
-
title:
|
|
1227
|
-
style:
|
|
1228
|
-
},
|
|
783
|
+
return /* @__PURE__ */ r.createElement("i", p(p({
|
|
784
|
+
className: w(i, "humany-icon", "humany-custom-icon"),
|
|
785
|
+
title: e,
|
|
786
|
+
style: p(p({}, d), o)
|
|
787
|
+
}, f), a));
|
|
1229
788
|
}
|
|
1230
789
|
case "Svg": {
|
|
1231
|
-
const
|
|
1232
|
-
className:
|
|
1233
|
-
width: `${
|
|
790
|
+
const d = k(p({
|
|
791
|
+
className: w(i, "humany-icon"),
|
|
792
|
+
width: `${n}`,
|
|
1234
793
|
fill: "none",
|
|
1235
794
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1236
|
-
},
|
|
795
|
+
}, a), {
|
|
1237
796
|
ref: null
|
|
1238
|
-
});
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
797
|
+
}), h = { minWidth: `${n}` };
|
|
798
|
+
switch (u) {
|
|
799
|
+
case "search":
|
|
800
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1243
801
|
viewBox: "0 0 32 30"
|
|
1244
|
-
},
|
|
802
|
+
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
1245
803
|
cx: "14.8457",
|
|
1246
804
|
cy: "14.5175",
|
|
1247
805
|
r: "8.14359",
|
|
1248
806
|
transform: "rotate(45 14.8457 14.5175)"
|
|
1249
|
-
}), /* @__PURE__ */
|
|
807
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1250
808
|
x1: "21.1001",
|
|
1251
809
|
y1: "20.4865",
|
|
1252
810
|
x2: "26.5798",
|
|
1253
811
|
y2: "25.9661"
|
|
1254
812
|
}));
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
813
|
+
case "clear":
|
|
814
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1258
815
|
viewBox: "0 0 27 27"
|
|
1259
|
-
},
|
|
816
|
+
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
1260
817
|
cx: "13.4351",
|
|
1261
818
|
cy: "13.435",
|
|
1262
819
|
r: "9",
|
|
1263
820
|
transform: "rotate(45 13.4351 13.435)",
|
|
1264
821
|
stroke: "black"
|
|
1265
|
-
}), /* @__PURE__ */
|
|
822
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1266
823
|
x1: "16.6172",
|
|
1267
824
|
y1: "10.2531",
|
|
1268
825
|
x2: "10.2533",
|
|
1269
826
|
y2: "16.6171",
|
|
1270
827
|
stroke: "black"
|
|
1271
|
-
}), /* @__PURE__ */
|
|
828
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1272
829
|
x1: "16.6171",
|
|
1273
830
|
y1: "16.617",
|
|
1274
831
|
x2: "10.2532",
|
|
1275
832
|
y2: "10.2531",
|
|
1276
833
|
stroke: "black"
|
|
1277
834
|
}));
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
835
|
+
case "close":
|
|
836
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1281
837
|
viewBox: "0 0 13 13"
|
|
1282
|
-
},
|
|
838
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1283
839
|
d: "M12.3068 0.50647L1.27246 11.7273",
|
|
1284
840
|
stroke: "black"
|
|
1285
|
-
}), /* @__PURE__ */
|
|
841
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1286
842
|
d: "M12.2812 11.9473L1.24686 0.726451",
|
|
1287
843
|
stroke: "black"
|
|
1288
844
|
}));
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
845
|
+
case "caret-right":
|
|
846
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1292
847
|
viewBox: "0 0 14 14",
|
|
1293
|
-
style
|
|
1294
|
-
},
|
|
848
|
+
style: h
|
|
849
|
+
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
1295
850
|
x1: "4.13",
|
|
1296
851
|
y1: "1.05",
|
|
1297
852
|
x2: "10.13",
|
|
1298
853
|
y2: "7.05",
|
|
1299
854
|
stroke: "black"
|
|
1300
|
-
}), /* @__PURE__ */
|
|
855
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1301
856
|
x1: "10.13",
|
|
1302
857
|
y1: "6.95",
|
|
1303
858
|
x2: "4.13",
|
|
1304
859
|
y2: "12.95",
|
|
1305
860
|
stroke: "black"
|
|
1306
861
|
}));
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
862
|
+
case "caret-left":
|
|
863
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1310
864
|
viewBox: "0 0 14 14",
|
|
1311
|
-
style
|
|
1312
|
-
},
|
|
865
|
+
style: h
|
|
866
|
+
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
1313
867
|
x1: "10.13",
|
|
1314
868
|
y1: "12.95",
|
|
1315
869
|
x2: "4.13",
|
|
1316
870
|
y2: "6.95",
|
|
1317
871
|
stroke: "black"
|
|
1318
|
-
}), /* @__PURE__ */
|
|
872
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1319
873
|
x1: "4.13",
|
|
1320
874
|
y1: "7.05",
|
|
1321
875
|
x2: "10.13",
|
|
1322
876
|
y2: "1.05",
|
|
1323
877
|
stroke: "black"
|
|
1324
878
|
}));
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
return /* @__PURE__ */ React.createElement(CaretUp, __spreadValues({
|
|
879
|
+
case "caret-up":
|
|
880
|
+
return /* @__PURE__ */ r.createElement(yt, p({
|
|
1328
881
|
viewBox: "0 0 14 14",
|
|
1329
|
-
style
|
|
1330
|
-
},
|
|
882
|
+
style: h
|
|
883
|
+
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
1331
884
|
x1: "13.09",
|
|
1332
885
|
y1: "3.99",
|
|
1333
886
|
x2: "7.1",
|
|
1334
887
|
y2: "9.99",
|
|
1335
888
|
stroke: "black"
|
|
1336
|
-
}), /* @__PURE__ */
|
|
889
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1337
890
|
x1: "7.19",
|
|
1338
891
|
y1: "9.99",
|
|
1339
892
|
x2: "1.19",
|
|
1340
893
|
y2: "3.99",
|
|
1341
894
|
stroke: "black"
|
|
1342
895
|
}));
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
896
|
+
case "caret-down":
|
|
897
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1346
898
|
viewBox: "0 0 14 14",
|
|
1347
|
-
style
|
|
1348
|
-
},
|
|
899
|
+
style: h
|
|
900
|
+
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
1349
901
|
x1: "13.09",
|
|
1350
902
|
y1: "3.99",
|
|
1351
903
|
x2: "7.1",
|
|
1352
904
|
y2: "9.99",
|
|
1353
905
|
stroke: "black"
|
|
1354
|
-
}), /* @__PURE__ */
|
|
906
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1355
907
|
x1: "7.19",
|
|
1356
908
|
y1: "9.99",
|
|
1357
909
|
x2: "1.19",
|
|
1358
910
|
y2: "3.99",
|
|
1359
911
|
stroke: "black"
|
|
1360
912
|
}));
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
913
|
+
case "back":
|
|
914
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1364
915
|
viewBox: "0 0 18 18"
|
|
1365
|
-
},
|
|
916
|
+
}, d), /* @__PURE__ */ r.createElement("line", {
|
|
1366
917
|
y1: "-0.5",
|
|
1367
918
|
x2: "11.724",
|
|
1368
919
|
y2: "-0.5",
|
|
1369
920
|
transform: "matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",
|
|
1370
921
|
stroke: "white"
|
|
1371
|
-
}), /* @__PURE__ */
|
|
922
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1372
923
|
y1: "-0.5",
|
|
1373
924
|
x2: "11.724",
|
|
1374
925
|
y2: "-0.5",
|
|
1375
926
|
transform: "matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",
|
|
1376
927
|
stroke: "white"
|
|
1377
928
|
}));
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
929
|
+
case "alert":
|
|
930
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1381
931
|
viewBox: "0 0 19 19"
|
|
1382
|
-
},
|
|
932
|
+
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
1383
933
|
cx: "9.5",
|
|
1384
934
|
cy: "9.5",
|
|
1385
935
|
r: "9.5",
|
|
1386
936
|
fill: "#CA0813"
|
|
1387
|
-
}), /* @__PURE__ */
|
|
937
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1388
938
|
d: "M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",
|
|
1389
939
|
fill: "white"
|
|
1390
940
|
}));
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
941
|
+
case "send":
|
|
942
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1394
943
|
viewBox: "0 0 20 17"
|
|
1395
|
-
},
|
|
944
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1396
945
|
d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
|
|
1397
946
|
fill: "#A6A6A6",
|
|
1398
947
|
stroke: "#A6A6A6",
|
|
1399
948
|
strokeWidth: "0.1"
|
|
1400
949
|
}));
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
950
|
+
case "chat":
|
|
951
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1404
952
|
viewBox: "-2 -3 40 40"
|
|
1405
|
-
},
|
|
953
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1406
954
|
strokeWidth: "0",
|
|
1407
955
|
fillRule: "evenodd",
|
|
1408
956
|
clipRule: "evenodd",
|
|
1409
957
|
d: "M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",
|
|
1410
958
|
fill: "currentColor"
|
|
1411
|
-
}), /* @__PURE__ */
|
|
959
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1412
960
|
strokeWidth: "0",
|
|
1413
961
|
d: "M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",
|
|
1414
962
|
fill: "currentColor"
|
|
1415
|
-
}), /* @__PURE__ */
|
|
963
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1416
964
|
strokeWidth: "0",
|
|
1417
965
|
d: "M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",
|
|
1418
966
|
fill: "currentColor"
|
|
1419
|
-
}), /* @__PURE__ */
|
|
967
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1420
968
|
strokeWidth: "0",
|
|
1421
969
|
d: "M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",
|
|
1422
970
|
fill: "currentColor"
|
|
1423
971
|
}));
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
972
|
+
case "chat-new":
|
|
973
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1427
974
|
viewBox: "0 0 26 24"
|
|
1428
|
-
},
|
|
975
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1429
976
|
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",
|
|
1430
977
|
fill: "currentColor"
|
|
1431
|
-
}), /* @__PURE__ */
|
|
978
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1432
979
|
d: "M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",
|
|
1433
980
|
fill: "currentColor"
|
|
1434
981
|
}));
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
982
|
+
case "agent":
|
|
983
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1438
984
|
viewBox: "0 0 36 30"
|
|
1439
|
-
},
|
|
985
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1440
986
|
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",
|
|
1441
987
|
stroke: "white"
|
|
1442
|
-
}), /* @__PURE__ */
|
|
988
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1443
989
|
d: "M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",
|
|
1444
990
|
stroke: "white"
|
|
1445
|
-
}), /* @__PURE__ */
|
|
991
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1446
992
|
d: "M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",
|
|
1447
993
|
stroke: "white"
|
|
1448
|
-
}), /* @__PURE__ */
|
|
994
|
+
}), /* @__PURE__ */ r.createElement("circle", {
|
|
1449
995
|
cx: "17.4074",
|
|
1450
996
|
cy: "26.9795",
|
|
1451
997
|
r: "2.05271",
|
|
1452
998
|
stroke: "white"
|
|
1453
|
-
}), /* @__PURE__ */
|
|
999
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1454
1000
|
d: "M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",
|
|
1455
1001
|
stroke: "white"
|
|
1456
1002
|
}));
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1003
|
+
case "minimize":
|
|
1004
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1460
1005
|
viewBox: "0 -10 22 22"
|
|
1461
|
-
},
|
|
1006
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1462
1007
|
d: "M0 1H22",
|
|
1463
1008
|
stroke: "white"
|
|
1464
1009
|
}));
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1010
|
+
case "sorting":
|
|
1011
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1468
1012
|
viewBox: "0 0 18 14"
|
|
1469
|
-
},
|
|
1013
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1470
1014
|
d: "M18 1H0M8 13H0M13 7H0"
|
|
1471
1015
|
}));
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1016
|
+
case "copy":
|
|
1017
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1475
1018
|
viewBox: "0 0 19 17"
|
|
1476
|
-
},
|
|
1019
|
+
}, d), /* @__PURE__ */ r.createElement("rect", {
|
|
1477
1020
|
x: "0.5",
|
|
1478
1021
|
y: "0.5",
|
|
1479
1022
|
width: "11.6667",
|
|
1480
1023
|
height: "11.6014",
|
|
1481
1024
|
rx: "1.5",
|
|
1482
1025
|
fill: "white"
|
|
1483
|
-
}), /* @__PURE__ */
|
|
1026
|
+
}), /* @__PURE__ */ r.createElement("rect", {
|
|
1484
1027
|
x: "6.83301",
|
|
1485
1028
|
y: "4.89868",
|
|
1486
1029
|
width: "11.6667",
|
|
@@ -1488,249 +1031,127 @@ const SymbolBadge = (_g) => {
|
|
|
1488
1031
|
rx: "1.5",
|
|
1489
1032
|
fill: "white"
|
|
1490
1033
|
}));
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1034
|
+
case "print":
|
|
1035
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1494
1036
|
viewBox: "0 0 16 17"
|
|
1495
|
-
},
|
|
1037
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1496
1038
|
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",
|
|
1497
1039
|
fill: "white",
|
|
1498
1040
|
stroke: "black"
|
|
1499
|
-
}), /* @__PURE__ */
|
|
1041
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1500
1042
|
d: "M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",
|
|
1501
1043
|
fill: "white",
|
|
1502
1044
|
stroke: "black"
|
|
1503
|
-
}), /* @__PURE__ */
|
|
1045
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1504
1046
|
d: "M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",
|
|
1505
1047
|
fill: "white",
|
|
1506
1048
|
stroke: "black"
|
|
1507
|
-
}), /* @__PURE__ */
|
|
1049
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1508
1050
|
x1: "5.29004",
|
|
1509
1051
|
y1: "10.8323",
|
|
1510
1052
|
x2: "10.7101",
|
|
1511
1053
|
y2: "10.8323",
|
|
1512
1054
|
stroke: "black"
|
|
1513
|
-
}), /* @__PURE__ */
|
|
1055
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1514
1056
|
x1: "5.29004",
|
|
1515
1057
|
y1: "12.5242",
|
|
1516
1058
|
x2: "10.7101",
|
|
1517
1059
|
y2: "12.5242",
|
|
1518
1060
|
stroke: "black"
|
|
1519
|
-
}), /* @__PURE__ */
|
|
1061
|
+
}), /* @__PURE__ */ r.createElement("line", {
|
|
1520
1062
|
x1: "5.29004",
|
|
1521
1063
|
y1: "14.2161",
|
|
1522
1064
|
x2: "10.7101",
|
|
1523
1065
|
y2: "14.2161",
|
|
1524
1066
|
stroke: "black"
|
|
1525
1067
|
}));
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1068
|
+
case "language":
|
|
1069
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1529
1070
|
viewBox: "0 0 19 19"
|
|
1530
|
-
},
|
|
1071
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1531
1072
|
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",
|
|
1532
1073
|
stroke: "black"
|
|
1533
1074
|
}));
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1075
|
+
case "information":
|
|
1076
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1537
1077
|
viewBox: "0 0 17 17"
|
|
1538
|
-
},
|
|
1078
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1539
1079
|
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",
|
|
1540
1080
|
fill: "black"
|
|
1541
|
-
}), /* @__PURE__ */
|
|
1081
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1542
1082
|
d: "M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",
|
|
1543
1083
|
fill: "black"
|
|
1544
|
-
}), /* @__PURE__ */
|
|
1084
|
+
}), /* @__PURE__ */ r.createElement("path", {
|
|
1545
1085
|
fillRule: "evenodd",
|
|
1546
1086
|
clipRule: "evenodd",
|
|
1547
1087
|
d: "M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",
|
|
1548
1088
|
fill: "black"
|
|
1549
1089
|
}));
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1090
|
+
case "options":
|
|
1091
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1553
1092
|
viewBox: "0 0 16 2"
|
|
1554
|
-
},
|
|
1093
|
+
}, d), /* @__PURE__ */ r.createElement("circle", {
|
|
1555
1094
|
cx: "15",
|
|
1556
1095
|
cy: "1",
|
|
1557
1096
|
r: "1",
|
|
1558
1097
|
transform: "rotate(90 15 1)",
|
|
1559
1098
|
fill: "black"
|
|
1560
|
-
}), /* @__PURE__ */
|
|
1099
|
+
}), /* @__PURE__ */ r.createElement("circle", {
|
|
1561
1100
|
cx: "1",
|
|
1562
1101
|
cy: "1",
|
|
1563
1102
|
r: "1",
|
|
1564
1103
|
transform: "rotate(90 1 1)",
|
|
1565
1104
|
fill: "black"
|
|
1566
|
-
}), /* @__PURE__ */
|
|
1105
|
+
}), /* @__PURE__ */ r.createElement("circle", {
|
|
1567
1106
|
cx: "8",
|
|
1568
1107
|
cy: "1",
|
|
1569
1108
|
r: "1",
|
|
1570
1109
|
transform: "rotate(90 8 1)",
|
|
1571
1110
|
fill: "black"
|
|
1572
1111
|
}));
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1576
|
-
viewBox: "0 0 24 24"
|
|
1577
|
-
}, svgProps), /* @__PURE__ */ React.createElement("circle", {
|
|
1578
|
-
cx: "12",
|
|
1579
|
-
cy: "12",
|
|
1580
|
-
r: "12",
|
|
1581
|
-
fill: "currentColor"
|
|
1582
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1583
|
-
fillRule: "evenodd",
|
|
1584
|
-
clipRule: "evenodd",
|
|
1585
|
-
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",
|
|
1586
|
-
fill: "white"
|
|
1587
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1588
|
-
fillRule: "evenodd",
|
|
1589
|
-
clipRule: "evenodd",
|
|
1590
|
-
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",
|
|
1591
|
-
fill: "white"
|
|
1592
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1593
|
-
fillRule: "evenodd",
|
|
1594
|
-
clipRule: "evenodd",
|
|
1595
|
-
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",
|
|
1596
|
-
fill: "white"
|
|
1597
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1598
|
-
fillRule: "evenodd",
|
|
1599
|
-
clipRule: "evenodd",
|
|
1600
|
-
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",
|
|
1601
|
-
fill: "white"
|
|
1602
|
-
}));
|
|
1603
|
-
}
|
|
1604
|
-
case "video": {
|
|
1605
|
-
if (style.minWidth && typeof style.minWidth === "number") {
|
|
1606
|
-
style.minWidth = `${style.minWidth}px`;
|
|
1607
|
-
}
|
|
1608
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadProps(__spreadValues({
|
|
1609
|
-
viewBox: "0 0 25 25"
|
|
1610
|
-
}, svgProps), {
|
|
1611
|
-
style
|
|
1612
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1613
|
-
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",
|
|
1614
|
-
stroke: "currentColor",
|
|
1615
|
-
strokeWidth: "1.5",
|
|
1616
|
-
strokeLinecap: "round",
|
|
1617
|
-
strokeLinejoin: "round"
|
|
1618
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1619
|
-
fillRule: "evenodd",
|
|
1620
|
-
clipRule: "evenodd",
|
|
1621
|
-
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",
|
|
1622
|
-
stroke: "currentColor",
|
|
1623
|
-
strokeWidth: "1.5",
|
|
1624
|
-
strokeLinecap: "round",
|
|
1625
|
-
strokeLinejoin: "round"
|
|
1626
|
-
}));
|
|
1627
|
-
}
|
|
1628
|
-
case "star-empty": {
|
|
1629
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1112
|
+
case "star-empty":
|
|
1113
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1630
1114
|
viewBox: "0 0 13 12"
|
|
1631
|
-
},
|
|
1115
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1632
1116
|
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",
|
|
1633
1117
|
stroke: "black"
|
|
1634
1118
|
}));
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1119
|
+
case "star-filled":
|
|
1120
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1638
1121
|
viewBox: "0 0 13 12"
|
|
1639
|
-
},
|
|
1122
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1640
1123
|
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",
|
|
1641
1124
|
fill: "black",
|
|
1642
1125
|
stroke: "black"
|
|
1643
1126
|
}));
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1127
|
+
case "cog-wheel":
|
|
1128
|
+
return /* @__PURE__ */ r.createElement("svg", p({
|
|
1647
1129
|
viewBox: "0 0 24 24"
|
|
1648
|
-
},
|
|
1130
|
+
}, d), /* @__PURE__ */ r.createElement("path", {
|
|
1649
1131
|
fillRule: "evenodd",
|
|
1650
1132
|
clipRule: "evenodd",
|
|
1651
1133
|
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",
|
|
1652
1134
|
fill: "black"
|
|
1653
1135
|
}));
|
|
1654
|
-
}
|
|
1655
|
-
case "zoom-in": {
|
|
1656
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1657
|
-
viewBox: "0 0 24 24"
|
|
1658
|
-
}, svgProps), /* @__PURE__ */ React.createElement("path", {
|
|
1659
|
-
fillRule: "evenodd",
|
|
1660
|
-
clipRule: "evenodd",
|
|
1661
|
-
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",
|
|
1662
|
-
fill: "white"
|
|
1663
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1664
|
-
fillRule: "evenodd",
|
|
1665
|
-
clipRule: "evenodd",
|
|
1666
|
-
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",
|
|
1667
|
-
fill: "white"
|
|
1668
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1669
|
-
fillRule: "evenodd",
|
|
1670
|
-
clipRule: "evenodd",
|
|
1671
|
-
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",
|
|
1672
|
-
fill: "white"
|
|
1673
|
-
}));
|
|
1674
|
-
}
|
|
1675
|
-
case "zoom-out": {
|
|
1676
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1677
|
-
viewBox: "0 0 24 24"
|
|
1678
|
-
}, svgProps), /* @__PURE__ */ React.createElement("path", {
|
|
1679
|
-
fillRule: "evenodd",
|
|
1680
|
-
clipRule: "evenodd",
|
|
1681
|
-
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",
|
|
1682
|
-
fill: "white"
|
|
1683
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
1684
|
-
fillRule: "evenodd",
|
|
1685
|
-
clipRule: "evenodd",
|
|
1686
|
-
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",
|
|
1687
|
-
fill: "white"
|
|
1688
|
-
}));
|
|
1689
|
-
}
|
|
1690
|
-
case "download": {
|
|
1691
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1692
|
-
viewBox: "0 0 24 24"
|
|
1693
|
-
}, svgProps), /* @__PURE__ */ React.createElement("path", {
|
|
1694
|
-
fillRule: "evenodd",
|
|
1695
|
-
clipRule: "evenodd",
|
|
1696
|
-
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",
|
|
1697
|
-
fill: "white"
|
|
1698
|
-
}));
|
|
1699
|
-
}
|
|
1700
|
-
case "lightbox-close": {
|
|
1701
|
-
return /* @__PURE__ */ React.createElement("svg", __spreadValues({
|
|
1702
|
-
viewBox: "0 0 24 24"
|
|
1703
|
-
}, svgProps), /* @__PURE__ */ React.createElement("path", {
|
|
1704
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1705
|
-
fillRule: "evenodd",
|
|
1706
|
-
clipRule: "evenodd",
|
|
1707
|
-
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",
|
|
1708
|
-
fill: "white"
|
|
1709
|
-
}));
|
|
1710
|
-
}
|
|
1711
1136
|
}
|
|
1712
1137
|
return null;
|
|
1713
1138
|
}
|
|
1714
|
-
case "FontAwesome":
|
|
1715
|
-
return /* @__PURE__ */
|
|
1716
|
-
className,
|
|
1717
|
-
faIcon:
|
|
1718
|
-
title:
|
|
1719
|
-
},
|
|
1720
|
-
}
|
|
1139
|
+
case "FontAwesome":
|
|
1140
|
+
return /* @__PURE__ */ r.createElement(Tt, p({
|
|
1141
|
+
className: i,
|
|
1142
|
+
faIcon: u,
|
|
1143
|
+
title: e
|
|
1144
|
+
}, a));
|
|
1721
1145
|
default:
|
|
1722
|
-
case "Text":
|
|
1723
|
-
return
|
|
1724
|
-
className:
|
|
1725
|
-
title:
|
|
1726
|
-
},
|
|
1727
|
-
}
|
|
1146
|
+
case "Text":
|
|
1147
|
+
return e ? /* @__PURE__ */ r.createElement("i", p(p({
|
|
1148
|
+
className: w(i, "humany-letter-symbol"),
|
|
1149
|
+
title: e
|
|
1150
|
+
}, f), a), e.substring(0, 2)) : null;
|
|
1728
1151
|
}
|
|
1729
|
-
}
|
|
1730
|
-
const CaretUp = styled.svg`
|
|
1152
|
+
}, yt = v.svg`
|
|
1731
1153
|
transform: rotate(180deg);
|
|
1732
|
-
|
|
1733
|
-
const defaultVariantMapping = {
|
|
1154
|
+
`, bt = {
|
|
1734
1155
|
h1: "h1",
|
|
1735
1156
|
h2: "h2",
|
|
1736
1157
|
h3: "h3",
|
|
@@ -1739,131 +1160,96 @@ const defaultVariantMapping = {
|
|
|
1739
1160
|
h6: "h6",
|
|
1740
1161
|
p: "p",
|
|
1741
1162
|
span: "span"
|
|
1742
|
-
}
|
|
1743
|
-
const
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
})(AnimationType || {});
|
|
1760
|
-
const defaultDuration = 300;
|
|
1761
|
-
const Drawer = ({
|
|
1762
|
-
className,
|
|
1763
|
-
children,
|
|
1764
|
-
header,
|
|
1765
|
-
onToggle,
|
|
1766
|
-
trigger,
|
|
1767
|
-
fullScreen = false,
|
|
1768
|
-
closeButtonAriaLabel,
|
|
1769
|
-
animation = {
|
|
1163
|
+
}, _ = ({ variant: e, component: t, className: n, children: s }) => {
|
|
1164
|
+
const { typographyVariantMapping: o = {} } = dt(), i = p(p({}, bt), o), a = t || i[e] || "span";
|
|
1165
|
+
return /* @__PURE__ */ r.createElement(Ct, {
|
|
1166
|
+
className: n,
|
|
1167
|
+
as: a
|
|
1168
|
+
}, s);
|
|
1169
|
+
}, Ct = v.span``;
|
|
1170
|
+
var xt = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(xt || {});
|
|
1171
|
+
const Et = 300, Bn = ({
|
|
1172
|
+
className: e,
|
|
1173
|
+
children: t,
|
|
1174
|
+
header: n,
|
|
1175
|
+
onToggle: s,
|
|
1176
|
+
trigger: o,
|
|
1177
|
+
fullScreen: i = !1,
|
|
1178
|
+
closeButtonAriaLabel: a,
|
|
1179
|
+
animation: m = {
|
|
1770
1180
|
type: "slide-in-bottom"
|
|
1771
1181
|
}
|
|
1772
1182
|
}) => {
|
|
1773
|
-
const { duration =
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
const
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
}
|
|
1784
|
-
}, [visible]);
|
|
1785
|
-
const esc = useKeyPress("Escape");
|
|
1786
|
-
useEffect(() => {
|
|
1787
|
-
if (esc) {
|
|
1788
|
-
toggleVisible(false);
|
|
1789
|
-
}
|
|
1790
|
-
}, [esc]);
|
|
1791
|
-
useEventListener("click", (event) => {
|
|
1792
|
-
const { target } = event;
|
|
1793
|
-
if (!triggerRef.current || !ref.current || !target) {
|
|
1794
|
-
return;
|
|
1795
|
-
}
|
|
1796
|
-
if (triggerRef.current !== target && ref.current !== target && !ref.current.contains(target) && !triggerRef.current.contains(target)) {
|
|
1797
|
-
toggleVisible(false);
|
|
1798
|
-
}
|
|
1183
|
+
const { duration: l = Et } = m, c = S(), u = S(), [f, d] = Me(!0), [h, g] = le(), E = ke(h), x = S(F());
|
|
1184
|
+
C(() => {
|
|
1185
|
+
s && s(h);
|
|
1186
|
+
}, [h]);
|
|
1187
|
+
const y = q("Escape");
|
|
1188
|
+
C(() => {
|
|
1189
|
+
y && g(!1);
|
|
1190
|
+
}, [y]), z("click", (K) => {
|
|
1191
|
+
const { target: N } = K;
|
|
1192
|
+
!u.current || !d.current || !N || u.current !== N && d.current !== N && !d.current.contains(N) && !u.current.contains(N) && g(!1);
|
|
1799
1193
|
}, window);
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1194
|
+
const b = ue(x.current, () => {
|
|
1195
|
+
g(!1);
|
|
1802
1196
|
});
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
})
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
}
|
|
1812
|
-
}, [visible, closeButtonRef.current, triggerRef.current]);
|
|
1813
|
-
const WrapperWithAnimation = animations[animation.type];
|
|
1814
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CSSTransition, {
|
|
1815
|
-
in: visible,
|
|
1197
|
+
Q("router:changed", () => {
|
|
1198
|
+
g(!1);
|
|
1199
|
+
}), C(() => {
|
|
1200
|
+
h && c.current ? c.current.focus() : !h && u.current && E && u.current.focus();
|
|
1201
|
+
}, [h, c.current, u.current]);
|
|
1202
|
+
const V = Mt[m.type];
|
|
1203
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(ve, {
|
|
1204
|
+
in: h,
|
|
1816
1205
|
className: "humany-drawer-transition",
|
|
1817
1206
|
classNames: "humany-drawer-transition",
|
|
1818
|
-
unmountOnExit:
|
|
1819
|
-
timeout:
|
|
1820
|
-
}, /* @__PURE__ */
|
|
1821
|
-
duration,
|
|
1822
|
-
fullScreen,
|
|
1823
|
-
className:
|
|
1207
|
+
unmountOnExit: !0,
|
|
1208
|
+
timeout: l
|
|
1209
|
+
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(V, {
|
|
1210
|
+
duration: l,
|
|
1211
|
+
fullScreen: i,
|
|
1212
|
+
className: w(e, "humany-drawer", `humany-drawer-${x.current}`),
|
|
1824
1213
|
clientHeight: document.body.clientHeight,
|
|
1825
|
-
css:
|
|
1826
|
-
ref
|
|
1827
|
-
}, /* @__PURE__ */
|
|
1828
|
-
onClick: () =>
|
|
1214
|
+
css: f,
|
|
1215
|
+
ref: d
|
|
1216
|
+
}, /* @__PURE__ */ r.createElement(de, {
|
|
1217
|
+
onClick: () => g(!1),
|
|
1829
1218
|
tabIndex: 0,
|
|
1830
|
-
ref:
|
|
1831
|
-
"aria-label":
|
|
1832
|
-
}, /* @__PURE__ */
|
|
1219
|
+
ref: c,
|
|
1220
|
+
"aria-label": a
|
|
1221
|
+
}, /* @__PURE__ */ r.createElement(A, {
|
|
1833
1222
|
symbol: { type: "Svg", content: "close" }
|
|
1834
|
-
})), !!
|
|
1223
|
+
})), !!n && /* @__PURE__ */ r.createElement(vt, {
|
|
1835
1224
|
variant: "h1",
|
|
1836
1225
|
className: "humany-drawer-header"
|
|
1837
|
-
},
|
|
1838
|
-
onClick: (
|
|
1839
|
-
|
|
1840
|
-
closeMenus();
|
|
1226
|
+
}, n), t))), r.cloneElement(o, {
|
|
1227
|
+
onClick: (K) => {
|
|
1228
|
+
g(), b();
|
|
1841
1229
|
},
|
|
1842
|
-
ref:
|
|
1843
|
-
"aria-label":
|
|
1844
|
-
"aria-expanded":
|
|
1230
|
+
ref: u,
|
|
1231
|
+
"aria-label": o.props.title,
|
|
1232
|
+
"aria-expanded": h
|
|
1845
1233
|
}));
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
return (_a = p.theme.fonts) == null ? void 0 : _a.type;
|
|
1234
|
+
}, J = v.div`
|
|
1235
|
+
font-family: ${(e) => {
|
|
1236
|
+
var t;
|
|
1237
|
+
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
1851
1238
|
}};
|
|
1852
|
-
font-size: ${(
|
|
1853
|
-
var
|
|
1854
|
-
return (
|
|
1239
|
+
font-size: ${(e) => {
|
|
1240
|
+
var t;
|
|
1241
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1855
1242
|
}};
|
|
1856
1243
|
position: fixed;
|
|
1857
1244
|
bottom: 0;
|
|
1858
1245
|
left: 0;
|
|
1859
|
-
border: ${(
|
|
1246
|
+
border: ${(e) => e.theme.border};
|
|
1860
1247
|
width: 100%;
|
|
1861
|
-
box-shadow: ${(
|
|
1248
|
+
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1862
1249
|
background: #ffffff;
|
|
1863
|
-
${(
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
padding: ${(p) => p.theme.sizes.normal};
|
|
1250
|
+
${(e) => e.css && e.css}
|
|
1251
|
+
`, vt = v(_)`
|
|
1252
|
+
padding: ${(e) => e.theme.sizes.normal};
|
|
1867
1253
|
margin: 0;
|
|
1868
1254
|
text-align: center;
|
|
1869
1255
|
border-bottom: #eeeeee 1px solid;
|
|
@@ -1873,22 +1259,20 @@ const Header$1 = styled(Typography)`
|
|
|
1873
1259
|
justify-content: center;
|
|
1874
1260
|
align-items: center;
|
|
1875
1261
|
font-weight: bold;
|
|
1876
|
-
color: ${(
|
|
1877
|
-
var
|
|
1878
|
-
return (
|
|
1262
|
+
color: ${(e) => {
|
|
1263
|
+
var t;
|
|
1264
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
1879
1265
|
}};
|
|
1880
|
-
font-size: ${(
|
|
1881
|
-
var
|
|
1882
|
-
return (
|
|
1266
|
+
font-size: ${(e) => {
|
|
1267
|
+
var t;
|
|
1268
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1883
1269
|
}};
|
|
1884
1270
|
line-height: 1.2em;
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
`;
|
|
1889
|
-
const WrapperWithSlideInBottom = styled(Wrapper$7)`
|
|
1271
|
+
`, ee = M`
|
|
1272
|
+
transition: ${(e) => e.duration}ms;
|
|
1273
|
+
`, wt = v(J)`
|
|
1890
1274
|
max-height: 0;
|
|
1891
|
-
${
|
|
1275
|
+
${ee}
|
|
1892
1276
|
|
|
1893
1277
|
&.humany-drawer-transition-enter {
|
|
1894
1278
|
max-height: 0;
|
|
@@ -1896,18 +1280,17 @@ const WrapperWithSlideInBottom = styled(Wrapper$7)`
|
|
|
1896
1280
|
&.humany-drawer-transition-enter-active,
|
|
1897
1281
|
&.humany-drawer-transition-enter-done,
|
|
1898
1282
|
&.humany-drawer-transition-exit {
|
|
1899
|
-
max-height: ${(
|
|
1283
|
+
max-height: ${(e) => e.fullScreen ? "100%" : "400px"};
|
|
1900
1284
|
}
|
|
1901
1285
|
|
|
1902
1286
|
&.humany-drawer-transition-exit-active,
|
|
1903
1287
|
&.humany-drawer-transition-exit-done {
|
|
1904
1288
|
max-height: 0;
|
|
1905
1289
|
}
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
${AnimationBase}
|
|
1290
|
+
`, $t = v(J)`
|
|
1291
|
+
${ee}
|
|
1909
1292
|
transform: translateX(100%);
|
|
1910
|
-
height: ${(
|
|
1293
|
+
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1911
1294
|
|
|
1912
1295
|
&.humany-drawer-transition-enter {
|
|
1913
1296
|
transform: translateX(100%);
|
|
@@ -1922,11 +1305,10 @@ const WrapperWithSlideInRight = styled(Wrapper$7)`
|
|
|
1922
1305
|
&.humany-drawer-transition-exit-done {
|
|
1923
1306
|
transform: translateX(100%);
|
|
1924
1307
|
}
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
${AnimationBase}
|
|
1308
|
+
`, kt = v(J)`
|
|
1309
|
+
${ee}
|
|
1928
1310
|
transform: translateX(-100%);
|
|
1929
|
-
height: ${(
|
|
1311
|
+
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1930
1312
|
|
|
1931
1313
|
&.humany-drawer-transition-enter {
|
|
1932
1314
|
transform: translateX(-100%);
|
|
@@ -1941,9 +1323,8 @@ const WrapperWithSlideInLeft = styled(Wrapper$7)`
|
|
|
1941
1323
|
&.humany-drawer-transition-exit-done {
|
|
1942
1324
|
transform: translateX(-100%);
|
|
1943
1325
|
}
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
${AnimationBase}
|
|
1326
|
+
`, Lt = v(J)`
|
|
1327
|
+
${ee}
|
|
1947
1328
|
bottom: unset;
|
|
1948
1329
|
top: 0;
|
|
1949
1330
|
height: 0;
|
|
@@ -1954,219 +1335,153 @@ const WrapperWithSlideInTop = styled(Wrapper$7)`
|
|
|
1954
1335
|
&.humany-drawer-transition-enter-active,
|
|
1955
1336
|
&.humany-drawer-transition-enter-done,
|
|
1956
1337
|
&.humany-drawer-transition-exit {
|
|
1957
|
-
height: ${(
|
|
1338
|
+
height: ${(e) => e.clientHeight}px;
|
|
1958
1339
|
}
|
|
1959
1340
|
|
|
1960
1341
|
&.humany-drawer-transition-exit-active,
|
|
1961
1342
|
&.humany-drawer-transition-exit-done {
|
|
1962
1343
|
height: 0;
|
|
1963
1344
|
}
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
["slide-in-
|
|
1967
|
-
["slide-in-
|
|
1968
|
-
["slide-in-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
setPosX(Math.max(document.body.clientWidth - clientRect.right, 1));
|
|
1979
|
-
setPosY(clientRect.bottom + window.scrollY);
|
|
1980
|
-
}
|
|
1981
|
-
}, [posX, posY, setPosX, setPosY]);
|
|
1982
|
-
useEffect(() => {
|
|
1983
|
-
if (!element || !visible) {
|
|
1345
|
+
`, Mt = {
|
|
1346
|
+
["slide-in-bottom"]: wt,
|
|
1347
|
+
["slide-in-right"]: $t,
|
|
1348
|
+
["slide-in-left"]: kt,
|
|
1349
|
+
["slide-in-top"]: Lt
|
|
1350
|
+
}, He = (e, t, n) => {
|
|
1351
|
+
const [s, o] = L(0), [i, a] = L(0), m = H((l, c) => {
|
|
1352
|
+
if (l.preventDefault(), c) {
|
|
1353
|
+
const u = c.getBoundingClientRect();
|
|
1354
|
+
o(Math.max(document.body.clientWidth - u.right, 1)), a(u.bottom + window.scrollY);
|
|
1355
|
+
}
|
|
1356
|
+
}, [s, i, o, a]);
|
|
1357
|
+
return C(() => {
|
|
1358
|
+
if (!n || !e)
|
|
1984
1359
|
return;
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
x: posX,
|
|
1989
|
-
y: posY
|
|
1360
|
+
const l = n.getBoundingClientRect(), c = {
|
|
1361
|
+
x: s,
|
|
1362
|
+
y: i
|
|
1990
1363
|
};
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
var _j = _i, { className = "", children = null, trigger, closeButtonAriaLabel } = _j, props = __objRest(_j, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
2008
|
-
const closeButtonRef = useRef();
|
|
2009
|
-
const triggerRef = useRef();
|
|
2010
|
-
const innerRef = useRef();
|
|
2011
|
-
useImperativeHandle(ref, () => innerRef.current, [innerRef.current]);
|
|
2012
|
-
const id = useRef(uuid());
|
|
2013
|
-
const [visible, setVisible] = useState(false);
|
|
2014
|
-
const previousVisible = usePrevious(visible);
|
|
2015
|
-
const [{ x, y }, set] = usePosition(visible, id.current, innerRef.current);
|
|
2016
|
-
const esc = useKeyPress("Escape");
|
|
2017
|
-
useEffect(() => {
|
|
2018
|
-
if (esc) {
|
|
2019
|
-
setVisible(false);
|
|
2020
|
-
}
|
|
2021
|
-
}, [esc]);
|
|
2022
|
-
useEffect(() => {
|
|
2023
|
-
if (visible && closeButtonRef.current) {
|
|
2024
|
-
closeButtonRef.current.focus();
|
|
2025
|
-
} else if (!visible && triggerRef.current && previousVisible) {
|
|
2026
|
-
triggerRef.current.focus();
|
|
2027
|
-
}
|
|
2028
|
-
}, [visible, closeButtonRef.current, triggerRef.current]);
|
|
2029
|
-
useEventListener("click", (event) => {
|
|
2030
|
-
const { target } = event;
|
|
2031
|
-
if (!innerRef.current || !target) {
|
|
2032
|
-
return;
|
|
2033
|
-
}
|
|
2034
|
-
if (innerRef.current !== target && !innerRef.current.contains(target)) {
|
|
2035
|
-
setVisible(false);
|
|
2036
|
-
}
|
|
2037
|
-
}, window);
|
|
2038
|
-
useWidgetEvent("router:changed", () => {
|
|
2039
|
-
setVisible(false);
|
|
1364
|
+
l.left < 0 && (c.x = 0), l.bottom > window.innerHeight && (c.y = 0), c.x !== s && o(c.x), c.y !== i && a(c.y);
|
|
1365
|
+
}, [n, e, t]), [{ x: s, y: i }, m];
|
|
1366
|
+
}, Vn = r.forwardRef((a, i) => {
|
|
1367
|
+
var m = a, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: s } = m, o = $(m, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1368
|
+
const l = S(), c = S(), u = S();
|
|
1369
|
+
ie(i, () => u.current, [u.current]);
|
|
1370
|
+
const f = S(F()), [d, h] = L(!1), g = ke(d), [{ x: E, y: x }, y] = He(d, f.current, u.current), b = q("Escape");
|
|
1371
|
+
C(() => {
|
|
1372
|
+
b && h(!1);
|
|
1373
|
+
}, [b]), C(() => {
|
|
1374
|
+
d && l.current ? l.current.focus() : !d && c.current && g && c.current.focus();
|
|
1375
|
+
}, [d, l.current, c.current]), z("click", (N) => {
|
|
1376
|
+
const { target: te } = N;
|
|
1377
|
+
!u.current || !te || u.current !== te && !u.current.contains(te) && h(!1);
|
|
1378
|
+
}, window), Q("router:changed", () => {
|
|
1379
|
+
h(!1);
|
|
2040
1380
|
});
|
|
2041
|
-
const
|
|
2042
|
-
|
|
2043
|
-
})
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
},
|
|
2053
|
-
|
|
2054
|
-
y,
|
|
2055
|
-
ref: innerRef
|
|
2056
|
-
}), /* @__PURE__ */ React.createElement(CloseButton$1, {
|
|
2057
|
-
onClick: () => setVisible(false),
|
|
1381
|
+
const V = ue(f.current, () => {
|
|
1382
|
+
h(!1);
|
|
1383
|
+
}), K = H((N) => {
|
|
1384
|
+
N.stopPropagation(), y(N, c.current), h(!d), V();
|
|
1385
|
+
}, [V, y, h]);
|
|
1386
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, d && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(St, k(p({
|
|
1387
|
+
className: w("humany-dropdown", `humany-dropdown-${f.current}`, e)
|
|
1388
|
+
}, o), {
|
|
1389
|
+
x: E,
|
|
1390
|
+
y: x,
|
|
1391
|
+
ref: u
|
|
1392
|
+
}), /* @__PURE__ */ r.createElement(de, {
|
|
1393
|
+
onClick: () => h(!1),
|
|
2058
1394
|
tabIndex: 0,
|
|
2059
|
-
ref:
|
|
2060
|
-
"aria-label":
|
|
2061
|
-
}, /* @__PURE__ */
|
|
1395
|
+
ref: l,
|
|
1396
|
+
"aria-label": s
|
|
1397
|
+
}, /* @__PURE__ */ r.createElement(A, {
|
|
2062
1398
|
symbol: { type: "Svg", content: "close" }
|
|
2063
|
-
})),
|
|
2064
|
-
onClick:
|
|
2065
|
-
ref:
|
|
2066
|
-
"aria-label":
|
|
2067
|
-
"aria-expanded":
|
|
1399
|
+
})), t)), r.cloneElement(n, {
|
|
1400
|
+
onClick: K,
|
|
1401
|
+
ref: c,
|
|
1402
|
+
"aria-label": n.props.title,
|
|
1403
|
+
"aria-expanded": d
|
|
2068
1404
|
}));
|
|
2069
|
-
})
|
|
2070
|
-
|
|
2071
|
-
${
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.medium;
|
|
1405
|
+
}), St = v.div`
|
|
1406
|
+
${Se}
|
|
1407
|
+
padding: ${(e) => {
|
|
1408
|
+
var t;
|
|
1409
|
+
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2075
1410
|
}};
|
|
2076
1411
|
min-width: 150px;
|
|
2077
1412
|
position: absolute;
|
|
2078
|
-
box-shadow: ${(
|
|
1413
|
+
box-shadow: ${(e) => e.theme.boxShadow};
|
|
2079
1414
|
|
|
2080
|
-
${(
|
|
2081
|
-
var
|
|
2082
|
-
let
|
|
2083
|
-
|
|
2084
|
-
css2 += `top: calc(${((_a = p.theme.sizes) == null ? void 0 : _a.small) || "0px"} + ${p.y || "0"}px);`;
|
|
2085
|
-
} else {
|
|
2086
|
-
css2 += `bottom: ${((_b = p.theme.sizes) == null ? void 0 : _b.normal) || "0px"};`;
|
|
2087
|
-
}
|
|
2088
|
-
if (p.x > 0) {
|
|
2089
|
-
css2 += `right: ${p.x || "0"}px;`;
|
|
2090
|
-
} else {
|
|
2091
|
-
css2 += `left: ${((_c = p.theme.sizes) == null ? void 0 : _c.normal) || "0px"};`;
|
|
2092
|
-
}
|
|
2093
|
-
return css2;
|
|
1415
|
+
${(e) => {
|
|
1416
|
+
var n, s, o;
|
|
1417
|
+
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: ${((s = e.theme.sizes) == null ? void 0 : s.normal) || "0px"};`, e.x > 0 ? t += `right: ${e.x || "0"}px;` : t += `left: ${((o = e.theme.sizes) == null ? void 0 : o.normal) || "0px"};`, t;
|
|
2094
1419
|
}};
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
};
|
|
2100
|
-
const Wrapper$6 = styled.div`
|
|
1420
|
+
`, Ht = (t) => {
|
|
1421
|
+
var e = $(t, []);
|
|
1422
|
+
return /* @__PURE__ */ r.createElement(Rt, p({}, e));
|
|
1423
|
+
}, Rt = v.div`
|
|
2101
1424
|
display: none;
|
|
2102
|
-
|
|
2103
|
-
var
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
"data-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
});
|
|
2113
|
-
const Div = styled.div`
|
|
1425
|
+
`, Wn = D((a, i) => {
|
|
1426
|
+
var m = a, { children: e, columns: t, gap: n, className: s } = m, o = $(m, ["children", "columns", "gap", "className"]);
|
|
1427
|
+
return /* @__PURE__ */ r.createElement(Dt, k(p(p({
|
|
1428
|
+
className: w(s, "humany-grid"),
|
|
1429
|
+
"data-columns": t,
|
|
1430
|
+
"data-gap": n
|
|
1431
|
+
}, we(o)), R(o)), {
|
|
1432
|
+
ref: i
|
|
1433
|
+
}), e);
|
|
1434
|
+
}), Dt = v.div`
|
|
2114
1435
|
display: grid;
|
|
2115
|
-
grid-template-columns: repeat(${(
|
|
2116
|
-
grid-gap: ${(
|
|
1436
|
+
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1437
|
+
grid-gap: ${(e) => e["data-gap"]};
|
|
2117
1438
|
justify-content: center;
|
|
2118
1439
|
grid-auto-rows: max-content;
|
|
2119
|
-
${
|
|
2120
|
-
|
|
2121
|
-
var
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
faIcon,
|
|
2139
|
-
title,
|
|
2140
|
-
className = "",
|
|
2141
|
-
role = "presentation"
|
|
2142
|
-
} = _q, other = __objRest(_q, [
|
|
1440
|
+
${tt}
|
|
1441
|
+
`, Re = D((i, o) => {
|
|
1442
|
+
var a = i, { htmlParseInstruction: e = null, className: t, html: n } = a, s = $(a, ["htmlParseInstruction", "className", "html"]);
|
|
1443
|
+
const m = T(), [l, c] = L();
|
|
1444
|
+
return C(() => {
|
|
1445
|
+
const u = e || st(m), f = rt(n, u);
|
|
1446
|
+
c(f);
|
|
1447
|
+
}, [n, e]), /* @__PURE__ */ r.createElement("div", k(p({
|
|
1448
|
+
className: w(t, "humany-html")
|
|
1449
|
+
}, R(s)), {
|
|
1450
|
+
ref: o
|
|
1451
|
+
}), l);
|
|
1452
|
+
}), Tt = (i) => {
|
|
1453
|
+
var a = i, {
|
|
1454
|
+
faIcon: e,
|
|
1455
|
+
title: t,
|
|
1456
|
+
className: n = "",
|
|
1457
|
+
role: s = "presentation"
|
|
1458
|
+
} = a, o = $(a, [
|
|
2143
1459
|
"faIcon",
|
|
2144
1460
|
"title",
|
|
2145
1461
|
"className",
|
|
2146
1462
|
"role"
|
|
2147
1463
|
]);
|
|
2148
|
-
return /* @__PURE__ */
|
|
2149
|
-
className:
|
|
2150
|
-
title,
|
|
2151
|
-
role
|
|
2152
|
-
},
|
|
2153
|
-
}
|
|
2154
|
-
var
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
onFocusChange = () => {
|
|
1464
|
+
return /* @__PURE__ */ r.createElement("i", p({
|
|
1465
|
+
className: w(n, `fa fa-${e}`),
|
|
1466
|
+
title: t,
|
|
1467
|
+
role: s
|
|
1468
|
+
}, R(o)));
|
|
1469
|
+
}, On = D((f, u) => {
|
|
1470
|
+
var d = f, {
|
|
1471
|
+
className: e = "",
|
|
1472
|
+
autoFocus: t = !1,
|
|
1473
|
+
onFocusChange: n = () => {
|
|
2159
1474
|
},
|
|
2160
|
-
onEnter = () => {
|
|
1475
|
+
onEnter: s = () => {
|
|
2161
1476
|
},
|
|
2162
|
-
onEscape = () => {
|
|
1477
|
+
onEscape: o = () => {
|
|
2163
1478
|
},
|
|
2164
|
-
selectAllOnFocus,
|
|
2165
|
-
onChange = () => {
|
|
1479
|
+
selectAllOnFocus: i,
|
|
1480
|
+
onChange: a = () => {
|
|
2166
1481
|
},
|
|
2167
|
-
disabled =
|
|
2168
|
-
type
|
|
2169
|
-
} =
|
|
1482
|
+
disabled: m = !1,
|
|
1483
|
+
type: l
|
|
1484
|
+
} = d, c = $(d, [
|
|
2170
1485
|
"className",
|
|
2171
1486
|
"autoFocus",
|
|
2172
1487
|
"onFocusChange",
|
|
@@ -2177,87 +1492,70 @@ var input = forwardRef((_r, ref) => {
|
|
|
2177
1492
|
"disabled",
|
|
2178
1493
|
"type"
|
|
2179
1494
|
]);
|
|
2180
|
-
const [
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
event.target.select();
|
|
2194
|
-
}
|
|
2195
|
-
};
|
|
2196
|
-
const props = __spreadProps(__spreadValues({}, convertToStringAttributes(other)), {
|
|
2197
|
-
disabled,
|
|
2198
|
-
autoFocus,
|
|
2199
|
-
type,
|
|
2200
|
-
onKeyDown: (e) => {
|
|
2201
|
-
if (e.key === "Enter" && hasFocus) {
|
|
2202
|
-
onEnter(e);
|
|
2203
|
-
}
|
|
2204
|
-
if (e.key === "Escape" && hasFocus) {
|
|
2205
|
-
onEscape(e);
|
|
2206
|
-
}
|
|
1495
|
+
const [h, g] = L(t), E = S();
|
|
1496
|
+
ie(u, () => E.current), C(() => {
|
|
1497
|
+
var b;
|
|
1498
|
+
t && ((b = E == null ? void 0 : E.current) == null || b.focus());
|
|
1499
|
+
}, [t, u, E]);
|
|
1500
|
+
const x = (b, V) => {
|
|
1501
|
+
g(b), n && n(b), i && b && V.target.select();
|
|
1502
|
+
}, y = k(p({}, R(c)), {
|
|
1503
|
+
disabled: m,
|
|
1504
|
+
autoFocus: t,
|
|
1505
|
+
type: l,
|
|
1506
|
+
onKeyDown: (b) => {
|
|
1507
|
+
b.key === "Enter" && h && s(b), b.key === "Escape" && h && o(b);
|
|
2207
1508
|
},
|
|
2208
|
-
onFocus: (
|
|
2209
|
-
onBlur: (
|
|
2210
|
-
onChange: (
|
|
2211
|
-
className:
|
|
2212
|
-
"data-type":
|
|
1509
|
+
onFocus: (b) => x(!0, b),
|
|
1510
|
+
onBlur: (b) => x(!1, b),
|
|
1511
|
+
onChange: (b) => a(b.target.value || ""),
|
|
1512
|
+
className: w(e, "humany-input"),
|
|
1513
|
+
"data-type": l
|
|
2213
1514
|
});
|
|
2214
|
-
return
|
|
2215
|
-
ref:
|
|
2216
|
-
})) : /* @__PURE__ */
|
|
2217
|
-
ref:
|
|
1515
|
+
return l !== "textarea" ? /* @__PURE__ */ r.createElement("input", k(p({}, y), {
|
|
1516
|
+
ref: E
|
|
1517
|
+
})) : /* @__PURE__ */ r.createElement("textarea", k(p({}, y), {
|
|
1518
|
+
ref: E
|
|
2218
1519
|
}));
|
|
2219
|
-
})
|
|
2220
|
-
var
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
}), items.map((item, index, items2) => renderLi ? /* @__PURE__ */ React.createElement("li", {
|
|
1520
|
+
}), Nt = D((a, i) => {
|
|
1521
|
+
var m = a, { className: e, items: t, renderItem: n, renderLi: s = !1 } = m, o = $(m, ["className", "items", "renderItem", "renderLi"]);
|
|
1522
|
+
return /* @__PURE__ */ r.createElement("ul", k(p({
|
|
1523
|
+
className: w(e, "humany-list"),
|
|
1524
|
+
"data-item-count": t.length
|
|
1525
|
+
}, R(o)), {
|
|
1526
|
+
ref: i
|
|
1527
|
+
}), t.map((l, c, u) => s ? /* @__PURE__ */ r.createElement("li", {
|
|
2228
1528
|
className: "humany-list-item",
|
|
2229
|
-
key:
|
|
2230
|
-
},
|
|
2231
|
-
})
|
|
2232
|
-
var
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
}), header ? /* @__PURE__ */ React.createElement(Typography, {
|
|
1529
|
+
key: l.id
|
|
1530
|
+
}, n(l, c, u)) : n(l, c, u)));
|
|
1531
|
+
}), zt = D((l, m) => {
|
|
1532
|
+
var c = l, { text: e, html: t, header: n, className: s, htmlParseInstruction: o, symbol: i } = c, a = $(c, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1533
|
+
return /* @__PURE__ */ r.createElement("div", k(p({
|
|
1534
|
+
className: w(s, "humany-paragraph")
|
|
1535
|
+
}, R(a)), {
|
|
1536
|
+
ref: m
|
|
1537
|
+
}), n ? /* @__PURE__ */ r.createElement(_, {
|
|
2239
1538
|
variant: "h1"
|
|
2240
|
-
},
|
|
2241
|
-
symbol
|
|
2242
|
-
}) : null,
|
|
2243
|
-
html,
|
|
2244
|
-
htmlParseInstruction
|
|
2245
|
-
}) : null,
|
|
2246
|
-
})
|
|
2247
|
-
var
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
} = _y, other = __objRest(_y, [
|
|
1539
|
+
}, i ? /* @__PURE__ */ r.createElement(A, {
|
|
1540
|
+
symbol: i
|
|
1541
|
+
}) : null, n) : null, t ? /* @__PURE__ */ r.createElement(Re, {
|
|
1542
|
+
html: t,
|
|
1543
|
+
htmlParseInstruction: o
|
|
1544
|
+
}) : null, e ? /* @__PURE__ */ r.createElement(me, null, e) : null);
|
|
1545
|
+
}), Bt = D((h, d) => {
|
|
1546
|
+
var g = h, {
|
|
1547
|
+
header: e,
|
|
1548
|
+
customHeader: t,
|
|
1549
|
+
text: n,
|
|
1550
|
+
html: s,
|
|
1551
|
+
className: o,
|
|
1552
|
+
children: i,
|
|
1553
|
+
symbol: a,
|
|
1554
|
+
items: m,
|
|
1555
|
+
renderItem: l,
|
|
1556
|
+
renderLi: c,
|
|
1557
|
+
ulProps: u
|
|
1558
|
+
} = g, f = $(g, [
|
|
2261
1559
|
"header",
|
|
2262
1560
|
"customHeader",
|
|
2263
1561
|
"text",
|
|
@@ -2270,96 +1568,75 @@ var ItemList = forwardRef((_x, ref) => {
|
|
|
2270
1568
|
"renderLi",
|
|
2271
1569
|
"ulProps"
|
|
2272
1570
|
]);
|
|
2273
|
-
return /* @__PURE__ */
|
|
2274
|
-
className:
|
|
2275
|
-
"data-item-count":
|
|
2276
|
-
},
|
|
2277
|
-
ref
|
|
2278
|
-
}),
|
|
2279
|
-
symbol,
|
|
2280
|
-
header,
|
|
2281
|
-
text,
|
|
2282
|
-
html
|
|
2283
|
-
}) : null,
|
|
2284
|
-
items,
|
|
2285
|
-
renderItem,
|
|
2286
|
-
renderLi
|
|
2287
|
-
},
|
|
2288
|
-
})
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
liProps
|
|
1571
|
+
return /* @__PURE__ */ r.createElement("div", k(p({
|
|
1572
|
+
className: w(o, "humany-item-list"),
|
|
1573
|
+
"data-item-count": m.length
|
|
1574
|
+
}, R(f)), {
|
|
1575
|
+
ref: d
|
|
1576
|
+
}), t || (e || n || s ? /* @__PURE__ */ r.createElement(zt, {
|
|
1577
|
+
symbol: a,
|
|
1578
|
+
header: e,
|
|
1579
|
+
text: n,
|
|
1580
|
+
html: s
|
|
1581
|
+
}) : null), m.length ? /* @__PURE__ */ r.createElement(Nt, p({
|
|
1582
|
+
items: m,
|
|
1583
|
+
renderItem: l,
|
|
1584
|
+
renderLi: c
|
|
1585
|
+
}, u)) : null, i);
|
|
1586
|
+
}), In = ({
|
|
1587
|
+
className: e = "",
|
|
1588
|
+
tree: t,
|
|
1589
|
+
renderItem: n,
|
|
1590
|
+
rootItem: s,
|
|
1591
|
+
renderUnselected: o = !0,
|
|
1592
|
+
renderEmpty: i = !0,
|
|
1593
|
+
ulProps: a,
|
|
1594
|
+
liProps: m
|
|
2298
1595
|
}) => {
|
|
2299
|
-
const
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
return /* @__PURE__ */ React.createElement(ItemList, {
|
|
2310
|
-
className: appendClassNames(`humany-item-tree-level-${level}`),
|
|
2311
|
-
items: treeItems,
|
|
2312
|
-
ulProps,
|
|
2313
|
-
renderItem: (itemProps) => {
|
|
2314
|
-
const { id, selected, items, matches } = itemProps;
|
|
2315
|
-
const isSelected = selected && checkIfSelected(items);
|
|
2316
|
-
if (!renderEmpty && !matches) {
|
|
2317
|
-
return null;
|
|
2318
|
-
}
|
|
2319
|
-
return /* @__PURE__ */ React.createElement("li", __spreadProps(__spreadValues({}, convertToStringAttributes(liProps)), {
|
|
2320
|
-
key: id,
|
|
2321
|
-
className: "humany-item-tree-item"
|
|
2322
|
-
}), renderItem && renderItem(itemProps, level, isSelected), items && (renderUnselected || isSelected) && renderTreeItems(items, level + 1));
|
|
2323
|
-
}
|
|
2324
|
-
});
|
|
2325
|
-
};
|
|
2326
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2327
|
-
className: appendClassNames(className, "humany-item-tree")
|
|
2328
|
-
}, rootItem && rootItem(!hasSelectedChildren(tree || [])), tree && renderTreeItems(tree, 1));
|
|
2329
|
-
};
|
|
2330
|
-
const Overlay = (_z) => {
|
|
2331
|
-
var _A = _z, {
|
|
2332
|
-
visible,
|
|
2333
|
-
duration = 500,
|
|
2334
|
-
children,
|
|
2335
|
-
onClick = () => {
|
|
1596
|
+
const l = (f) => !c(f), c = (f) => !f || f.length < 1 ? !0 : !f.some((d) => !!d.selected), u = (f, d) => /* @__PURE__ */ r.createElement(Bt, {
|
|
1597
|
+
className: w(`humany-item-tree-level-${d}`),
|
|
1598
|
+
items: f,
|
|
1599
|
+
ulProps: a,
|
|
1600
|
+
renderItem: (h) => {
|
|
1601
|
+
const { id: g, selected: E, items: x, matches: y } = h, b = E && c(x);
|
|
1602
|
+
return !i && !y ? null : /* @__PURE__ */ r.createElement("li", k(p({}, R(m)), {
|
|
1603
|
+
key: g,
|
|
1604
|
+
className: "humany-item-tree-item"
|
|
1605
|
+
}), n && n(h, d, b), x && (o || b) && u(x, d + 1));
|
|
2336
1606
|
}
|
|
2337
|
-
}
|
|
1607
|
+
});
|
|
1608
|
+
return /* @__PURE__ */ r.createElement("div", {
|
|
1609
|
+
className: w(e, "humany-item-tree")
|
|
1610
|
+
}, s && s(!l(t || [])), t && u(t, 1));
|
|
1611
|
+
}, De = (i) => {
|
|
1612
|
+
var a = i, {
|
|
1613
|
+
visible: e,
|
|
1614
|
+
duration: t = 500,
|
|
1615
|
+
children: n,
|
|
1616
|
+
onClick: s = () => {
|
|
1617
|
+
}
|
|
1618
|
+
} = a, o = $(a, [
|
|
2338
1619
|
"visible",
|
|
2339
1620
|
"duration",
|
|
2340
1621
|
"children",
|
|
2341
1622
|
"onClick"
|
|
2342
1623
|
]);
|
|
2343
|
-
const
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
}, [onClick]);
|
|
2349
|
-
return /* @__PURE__ */ React.createElement(CSSTransition, {
|
|
2350
|
-
in: visible,
|
|
1624
|
+
const m = S(), l = H((c) => {
|
|
1625
|
+
c.target === m.current && s(c);
|
|
1626
|
+
}, [s]);
|
|
1627
|
+
return /* @__PURE__ */ r.createElement(ve, {
|
|
1628
|
+
in: e,
|
|
2351
1629
|
className: "humany-overlay-transition",
|
|
2352
1630
|
classNames: "humany-overlay-transition",
|
|
2353
|
-
unmountOnExit:
|
|
2354
|
-
timeout:
|
|
2355
|
-
}, /* @__PURE__ */
|
|
1631
|
+
unmountOnExit: !0,
|
|
1632
|
+
timeout: t
|
|
1633
|
+
}, /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(Vt, p({
|
|
2356
1634
|
className: "humany-overlay",
|
|
2357
|
-
duration,
|
|
2358
|
-
ref,
|
|
2359
|
-
onClick:
|
|
2360
|
-
},
|
|
2361
|
-
}
|
|
2362
|
-
const Wrapper$5 = styled.div`
|
|
1635
|
+
duration: t,
|
|
1636
|
+
ref: m,
|
|
1637
|
+
onClick: l
|
|
1638
|
+
}, o), n)));
|
|
1639
|
+
}, Vt = v.div`
|
|
2363
1640
|
background: rgba(0, 0, 0, 0.6);
|
|
2364
1641
|
min-width: 100%;
|
|
2365
1642
|
min-height: 100%;
|
|
@@ -2373,7 +1650,7 @@ const Wrapper$5 = styled.div`
|
|
|
2373
1650
|
align-items: center;
|
|
2374
1651
|
z-index: 7;
|
|
2375
1652
|
|
|
2376
|
-
transition: ${(
|
|
1653
|
+
transition: ${(e) => e.duration}ms;
|
|
2377
1654
|
opacity: 0;
|
|
2378
1655
|
|
|
2379
1656
|
&.humany-overlay-transition-enter {
|
|
@@ -2389,460 +1666,117 @@ const Wrapper$5 = styled.div`
|
|
|
2389
1666
|
&.humany-overlay-transition-exit-done {
|
|
2390
1667
|
opacity: 0;
|
|
2391
1668
|
}
|
|
2392
|
-
|
|
2393
|
-
const
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
},
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
onClick: () =>
|
|
2405
|
-
|
|
2406
|
-
}
|
|
2407
|
-
}, /* @__PURE__ */ React.createElement(StyledSymbolBadge$1, {
|
|
1669
|
+
`, Wt = ({ attrs: e }) => {
|
|
1670
|
+
const [t, n] = le(!1), s = q("Escape");
|
|
1671
|
+
C(() => {
|
|
1672
|
+
s && n(!1);
|
|
1673
|
+
}, [s]);
|
|
1674
|
+
const o = H((i) => {
|
|
1675
|
+
n(!1);
|
|
1676
|
+
}, [n]);
|
|
1677
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(De, {
|
|
1678
|
+
visible: t,
|
|
1679
|
+
onClick: o
|
|
1680
|
+
}, /* @__PURE__ */ r.createElement(It, {
|
|
1681
|
+
onClick: () => n(!1)
|
|
1682
|
+
}, /* @__PURE__ */ r.createElement(Pt, {
|
|
2408
1683
|
size: 24,
|
|
2409
|
-
symbol: { type: "Svg", content: "
|
|
2410
|
-
}))
|
|
2411
|
-
|
|
2412
|
-
},
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
position: absolute;
|
|
2418
|
-
bottom: 0;
|
|
2419
|
-
margin-bottom: ${(p) => {
|
|
2420
|
-
var _a;
|
|
2421
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.normal;
|
|
2422
|
-
}};
|
|
2423
|
-
justify-content: center;
|
|
2424
|
-
flex-direction: row;
|
|
2425
|
-
`;
|
|
2426
|
-
const ZoomLevel = styled.div`
|
|
2427
|
-
right: 45px;
|
|
2428
|
-
position: absolute;
|
|
2429
|
-
color: #fff;
|
|
2430
|
-
font-size: ${(p) => {
|
|
2431
|
-
var _a;
|
|
2432
|
-
return (_a = p.theme.fonts) == null ? void 0 : _a.normal;
|
|
2433
|
-
}};
|
|
2434
|
-
line-height: 1.5em;
|
|
2435
|
-
${(p) => {
|
|
2436
|
-
var _a, _b;
|
|
2437
|
-
return ((_a = p.theme.fonts) == null ? void 0 : _a.type) && `
|
|
2438
|
-
font-family: ${(_b = p.theme.fonts) == null ? void 0 : _b.type};
|
|
2439
|
-
`;
|
|
2440
|
-
}}
|
|
2441
|
-
`;
|
|
2442
|
-
const Buttons = styled.div`
|
|
2443
|
-
position: relative;
|
|
2444
|
-
margin: ${(p) => {
|
|
2445
|
-
var _a;
|
|
2446
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.normal;
|
|
2447
|
-
}};
|
|
2448
|
-
`;
|
|
2449
|
-
const StyledSymbolBadge$1 = styled(SymbolBadge)`
|
|
2450
|
-
path {
|
|
2451
|
-
stroke: #ffffff;
|
|
2452
|
-
}
|
|
2453
|
-
`;
|
|
2454
|
-
const StyledButton$1 = styled(Button)`
|
|
2455
|
-
transition: opacity 300ms ease-in-out;
|
|
2456
|
-
opacity: 0.7;
|
|
2457
|
-
&:hover {
|
|
2458
|
-
opacity: 1;
|
|
2459
|
-
}
|
|
2460
|
-
margin: ${(p) => {
|
|
2461
|
-
var _a;
|
|
2462
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.small;
|
|
2463
|
-
}};
|
|
2464
|
-
`;
|
|
2465
|
-
const spin = keyframes`
|
|
2466
|
-
100% {
|
|
2467
|
-
transform: rotate(360deg);
|
|
2468
|
-
}
|
|
2469
|
-
`;
|
|
2470
|
-
const dash = keyframes`
|
|
2471
|
-
0% {
|
|
2472
|
-
stroke-dasharray: 1, 200;
|
|
2473
|
-
stroke-dashoffset: 0;
|
|
2474
|
-
}
|
|
2475
|
-
50% {
|
|
2476
|
-
stroke-dasharray: 89, 200;
|
|
2477
|
-
stroke-dashoffset: -35px;
|
|
2478
|
-
}
|
|
2479
|
-
100% {
|
|
2480
|
-
stroke-dasharray: 89, 200;
|
|
2481
|
-
stroke-dashoffset: -124px;
|
|
2482
|
-
}
|
|
2483
|
-
`;
|
|
2484
|
-
const SpinnerSvg = styled.svg`
|
|
2485
|
-
animation: ${spin} 2s linear infinite;
|
|
2486
|
-
height: 100%;
|
|
2487
|
-
transform-origin: center center;
|
|
2488
|
-
width: 100%;
|
|
2489
|
-
position: absolute;
|
|
2490
|
-
top: 0;
|
|
2491
|
-
bottom: 0;
|
|
2492
|
-
left: 0;
|
|
2493
|
-
right: 0;
|
|
2494
|
-
margin: auto;
|
|
2495
|
-
transition: 200ms ease-out opacity;
|
|
2496
|
-
`;
|
|
2497
|
-
const Wrapper$3 = styled.div`
|
|
2498
|
-
position: absolute;
|
|
2499
|
-
top: 0;
|
|
2500
|
-
bottom: 0;
|
|
2501
|
-
left: 0;
|
|
2502
|
-
right: 0;
|
|
2503
|
-
height: 100%;
|
|
2504
|
-
width: 100%;
|
|
2505
|
-
pointer-events: ${(p) => p["data-loading"] ? "all" : "none"}
|
|
2506
|
-
display: flex;
|
|
2507
|
-
flex-direction: column;
|
|
2508
|
-
justify-content: center;
|
|
2509
|
-
transition: 200ms ease-out opacity;
|
|
2510
|
-
box-sizing: border-box;
|
|
2511
|
-
overflow: hidden;
|
|
2512
|
-
${SpinnerSvg} {
|
|
2513
|
-
opacity: ${(p) => p["data-loading"] ? "1" : "0"}
|
|
2514
|
-
}
|
|
2515
|
-
`;
|
|
2516
|
-
const Spinner = styled.div`
|
|
2517
|
-
position: relative;
|
|
2518
|
-
margin: 0 auto;
|
|
2519
|
-
width: 100px;
|
|
2520
|
-
&:before {
|
|
2521
|
-
content: '';
|
|
2522
|
-
display: block;
|
|
2523
|
-
padding-top: 100%;
|
|
2524
|
-
}
|
|
2525
|
-
`;
|
|
2526
|
-
const SpinnerCircle = styled.circle`
|
|
2527
|
-
stroke-dasharray: 1, 200;
|
|
2528
|
-
stroke-dashoffset: 0;
|
|
2529
|
-
animation: ${dash} 1.5s ease-in-out infinite;
|
|
2530
|
-
stroke-linecap: round;
|
|
2531
|
-
stroke: ${(p) => {
|
|
2532
|
-
var _a;
|
|
2533
|
-
return (_a = p.theme.colors) == null ? void 0 : _a.primary;
|
|
1684
|
+
symbol: { type: "Svg", content: "close" }
|
|
1685
|
+
})), /* @__PURE__ */ r.createElement(Ot, null, /* @__PURE__ */ r.createElement("img", p({}, e)))), /* @__PURE__ */ r.createElement("a", {
|
|
1686
|
+
onClick: () => n()
|
|
1687
|
+
}, /* @__PURE__ */ r.createElement(Ft, p({}, e))));
|
|
1688
|
+
}, Ot = v.div`
|
|
1689
|
+
padding: ${(e) => {
|
|
1690
|
+
var t;
|
|
1691
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2534
1692
|
}};
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
const Loader = ({ loading = false }) => {
|
|
2538
|
-
return /* @__PURE__ */ React.createElement(Wrapper$3, {
|
|
2539
|
-
className: "humany-loader",
|
|
2540
|
-
"data-loading": loading
|
|
2541
|
-
}, /* @__PURE__ */ React.createElement(Spinner, {
|
|
2542
|
-
className: "humany-spinner"
|
|
2543
|
-
}, /* @__PURE__ */ React.createElement(SpinnerSvg, {
|
|
2544
|
-
viewBox: "25 25 50 50"
|
|
2545
|
-
}, /* @__PURE__ */ React.createElement(SpinnerCircle, {
|
|
2546
|
-
cx: "50",
|
|
2547
|
-
cy: "50",
|
|
2548
|
-
r: "20",
|
|
2549
|
-
fill: "none",
|
|
2550
|
-
"stroke-width": "2",
|
|
2551
|
-
"stroke-miterlimit": "10"
|
|
2552
|
-
}))));
|
|
2553
|
-
};
|
|
2554
|
-
const ZoomImg = (_B) => {
|
|
2555
|
-
var _C = _B, { zoomState } = _C, attrs = __objRest(_C, ["zoomState"]);
|
|
2556
|
-
const ref = useRef(null);
|
|
2557
|
-
const [loaded, setLoaded] = useState(false);
|
|
2558
|
-
const _a = attrs.style || {}, { width, height } = _a, restStyle = __objRest(_a, ["width", "height"]);
|
|
2559
|
-
const imageSize = useMemo(() => {
|
|
2560
|
-
const img = ref.current;
|
|
2561
|
-
if (img) {
|
|
2562
|
-
if (img.width >= img.height) {
|
|
2563
|
-
return [`${zoomState}vw`, "auto"];
|
|
2564
|
-
} else {
|
|
2565
|
-
return ["auto", `${zoomState}vh`];
|
|
2566
|
-
}
|
|
2567
|
-
}
|
|
2568
|
-
return null;
|
|
2569
|
-
}, [zoomState, ref, loaded]);
|
|
2570
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Loader, {
|
|
2571
|
-
loading: !loaded
|
|
2572
|
-
}), /* @__PURE__ */ React.createElement(Img, __spreadProps(__spreadValues({
|
|
2573
|
-
onLoad: () => {
|
|
2574
|
-
setLoaded(true);
|
|
2575
|
-
},
|
|
2576
|
-
ref,
|
|
2577
|
-
imageSize,
|
|
2578
|
-
draggable: "false"
|
|
2579
|
-
}, attrs), {
|
|
2580
|
-
style: restStyle
|
|
2581
|
-
})), /* @__PURE__ */ React.createElement(EmptyDiv, null));
|
|
2582
|
-
};
|
|
2583
|
-
const Img = styled.img`
|
|
2584
|
-
transform: none;
|
|
1693
|
+
max-width: 80%;
|
|
1694
|
+
max-height: 80%;
|
|
2585
1695
|
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
vertical-align: middle;
|
|
2592
|
-
position: relative;
|
|
2593
|
-
`;
|
|
2594
|
-
const EmptyDiv = styled.div`
|
|
2595
|
-
height: 100%;
|
|
2596
|
-
display: inline-block;
|
|
2597
|
-
vertical-align: middle;
|
|
2598
|
-
`;
|
|
2599
|
-
const useFadeOut = () => {
|
|
2600
|
-
const timeOut = useRef();
|
|
2601
|
-
const [show, setShow] = useState(true);
|
|
2602
|
-
const triggerChange = useCallback(() => {
|
|
2603
|
-
if (!show)
|
|
2604
|
-
setShow(true);
|
|
2605
|
-
if (timeOut.current) {
|
|
2606
|
-
clearTimeout(timeOut.current);
|
|
2607
|
-
}
|
|
2608
|
-
timeOut.current = setTimeout(() => {
|
|
2609
|
-
setShow(false);
|
|
2610
|
-
}, 3e3);
|
|
2611
|
-
return () => {
|
|
2612
|
-
if (timeOut.current) {
|
|
2613
|
-
clearTimeout(timeOut.current);
|
|
2614
|
-
}
|
|
2615
|
-
};
|
|
2616
|
-
}, [show, timeOut]);
|
|
2617
|
-
return [show, triggerChange];
|
|
2618
|
-
};
|
|
2619
|
-
const Lightbox = ({ attrs }) => {
|
|
2620
|
-
const [visible, toggleVisible] = useToggle(false);
|
|
2621
|
-
const esc = useKeyPress("Escape");
|
|
2622
|
-
const [zoomState, setZoomState] = useState(80);
|
|
2623
|
-
const [scroll, setScroll] = useState({ top: 0, left: 0, x: 0, y: 0 });
|
|
2624
|
-
const [scrolling, setScrolling] = useState(false);
|
|
2625
|
-
const [show, triggerFadeOut] = useFadeOut();
|
|
2626
|
-
const ref = useRef(null);
|
|
2627
|
-
useEffect(() => {
|
|
2628
|
-
if (esc) {
|
|
2629
|
-
toggleVisible(false);
|
|
2630
|
-
}
|
|
2631
|
-
}, [esc]);
|
|
2632
|
-
const overlayClick = useCallback((e) => {
|
|
2633
|
-
toggleVisible(false);
|
|
2634
|
-
}, [toggleVisible]);
|
|
2635
|
-
const changeZoomState = useCallback((zoomIn) => {
|
|
2636
|
-
if (zoomIn) {
|
|
2637
|
-
setZoomState(zoomState + 10);
|
|
2638
|
-
} else {
|
|
2639
|
-
setZoomState(zoomState - 10);
|
|
2640
|
-
}
|
|
2641
|
-
}, [setZoomState, zoomState]);
|
|
2642
|
-
const downloadImage = useCallback(() => {
|
|
2643
|
-
const { src } = attrs;
|
|
2644
|
-
if (src) {
|
|
2645
|
-
window.open(src, "_blank");
|
|
2646
|
-
}
|
|
2647
|
-
}, [attrs]);
|
|
2648
|
-
const mouseDownHandler = useCallback((e) => {
|
|
2649
|
-
const ele = ref.current;
|
|
2650
|
-
if (ele) {
|
|
2651
|
-
setScroll({ top: ele.scrollTop, left: ele.scrollLeft, x: e.clientX, y: e.clientY });
|
|
2652
|
-
setScrolling(true);
|
|
2653
|
-
}
|
|
2654
|
-
}, [ref]);
|
|
2655
|
-
const mouseDragHandler = useCallback((e) => {
|
|
2656
|
-
const ele = ref.current;
|
|
2657
|
-
if (ele && scrolling) {
|
|
2658
|
-
const dx = e.clientX - scroll.x;
|
|
2659
|
-
const dy = e.clientY - scroll.y;
|
|
2660
|
-
ele.scrollTop = scroll.top - dy;
|
|
2661
|
-
ele.scrollLeft = scroll.left - dx;
|
|
2662
|
-
}
|
|
2663
|
-
}, [scrolling, scroll]);
|
|
2664
|
-
const mouseStopDragHandler = (e) => {
|
|
2665
|
-
e.preventDefault();
|
|
2666
|
-
setScrolling(false);
|
|
2667
|
-
};
|
|
2668
|
-
const isDraggable = useMemo(() => {
|
|
2669
|
-
if (ref.current) {
|
|
2670
|
-
const image = ref.current.getElementsByTagName("img");
|
|
2671
|
-
if (image) {
|
|
2672
|
-
const img = image[0];
|
|
2673
|
-
return img.width > window.innerWidth || img.height > window.innerHeight;
|
|
2674
|
-
}
|
|
1696
|
+
img {
|
|
1697
|
+
width: auto !important;
|
|
1698
|
+
height: auto !important;
|
|
1699
|
+
max-width: 100%;
|
|
1700
|
+
max-height: 100%;
|
|
2675
1701
|
}
|
|
2676
|
-
|
|
2677
|
-
}, [ref, zoomState]);
|
|
2678
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Overlay, {
|
|
2679
|
-
visible,
|
|
2680
|
-
onClick: overlayClick
|
|
2681
|
-
}, /* @__PURE__ */ React.createElement(DraggableArea, {
|
|
2682
|
-
onMouseDown: () => triggerFadeOut(),
|
|
2683
|
-
onMouseMove: () => triggerFadeOut(),
|
|
2684
|
-
onTouchStart: () => triggerFadeOut()
|
|
2685
|
-
}, /* @__PURE__ */ React.createElement(TransparentBarTop, {
|
|
2686
|
-
show
|
|
2687
|
-
}, /* @__PURE__ */ React.createElement(DownloadButton, {
|
|
2688
|
-
onClick: () => downloadImage()
|
|
2689
|
-
}, /* @__PURE__ */ React.createElement(StyledSymbolBadge, {
|
|
2690
|
-
size: 20,
|
|
2691
|
-
symbol: { type: "Svg", content: "download" }
|
|
2692
|
-
})), /* @__PURE__ */ React.createElement(CloseButton, {
|
|
2693
|
-
onClick: () => toggleVisible(false)
|
|
2694
|
-
}, /* @__PURE__ */ React.createElement(StyledSymbolBadge, {
|
|
2695
|
-
size: 20,
|
|
2696
|
-
symbol: { type: "Svg", content: "lightbox-close" }
|
|
2697
|
-
}))), /* @__PURE__ */ React.createElement(Content$1, {
|
|
2698
|
-
scrolling,
|
|
2699
|
-
isDraggable,
|
|
2700
|
-
ref,
|
|
2701
|
-
onMouseMove: mouseDragHandler,
|
|
2702
|
-
onMouseDown: mouseDownHandler,
|
|
2703
|
-
onMouseUp: mouseStopDragHandler
|
|
2704
|
-
}, /* @__PURE__ */ React.createElement(ZoomImg, __spreadValues({
|
|
2705
|
-
zoomState
|
|
2706
|
-
}, attrs))), /* @__PURE__ */ React.createElement(TransparentBarBottom, {
|
|
2707
|
-
show
|
|
2708
|
-
}, /* @__PURE__ */ React.createElement(ZoomButtons, {
|
|
2709
|
-
zoom: changeZoomState,
|
|
2710
|
-
zoomLevel: zoomState
|
|
2711
|
-
})))), /* @__PURE__ */ React.createElement("a", {
|
|
2712
|
-
onClick: () => toggleVisible()
|
|
2713
|
-
}, /* @__PURE__ */ React.createElement(Thumbnail, __spreadValues({}, attrs))));
|
|
2714
|
-
};
|
|
2715
|
-
const TransparentBar = styled.div`
|
|
2716
|
-
position: absolute;
|
|
2717
|
-
width: 100vw;
|
|
2718
|
-
height: 88px;
|
|
2719
|
-
left: 0px;
|
|
2720
|
-
transition: opacity 0.3s ease 0s;
|
|
2721
|
-
z-index: 5;
|
|
2722
|
-
${(p) => p.show ? "opacity: 1;" : css`
|
|
2723
|
-
opacity: 0;
|
|
2724
|
-
pointer-events: none;
|
|
2725
|
-
`}
|
|
2726
|
-
`;
|
|
2727
|
-
const DraggableArea = styled.div`
|
|
2728
|
-
width: 100%;
|
|
2729
|
-
`;
|
|
2730
|
-
const TransparentBarTop = styled(TransparentBar)`
|
|
2731
|
-
top: 0px;
|
|
2732
|
-
background-image: linear-gradient(to bottom, rgb(15, 15, 15, 0.8), rgba(30, 30, 30, 0));
|
|
2733
|
-
`;
|
|
2734
|
-
const TransparentBarBottom = styled(TransparentBar)`
|
|
2735
|
-
bottom: 0px;
|
|
2736
|
-
background-image: linear-gradient(to top, rgb(15, 15, 15, 0.8), rgba(30, 30, 30, 0));
|
|
2737
|
-
`;
|
|
2738
|
-
const Content$1 = styled.div`
|
|
2739
|
-
width: 100%;
|
|
2740
|
-
height: 100vh;
|
|
2741
|
-
overflow: auto;
|
|
2742
|
-
text-align: center;
|
|
2743
|
-
vertical-align: middle;
|
|
2744
|
-
white-space: nowrap;
|
|
2745
|
-
justify-content: center;
|
|
2746
|
-
cursor: ${(props) => props.isDraggable ? props.scrolling ? "grabbing" : "grab" : "auto"};
|
|
2747
|
-
`;
|
|
2748
|
-
const StyledButton = styled(Button)`
|
|
1702
|
+
`, It = v(U)`
|
|
2749
1703
|
position: fixed;
|
|
2750
|
-
top:
|
|
1704
|
+
top: 50px;
|
|
1705
|
+
right: 50px;
|
|
2751
1706
|
transition: opacity 300ms ease-in-out;
|
|
2752
1707
|
opacity: 0.7;
|
|
1708
|
+
|
|
2753
1709
|
&:hover {
|
|
2754
1710
|
opacity: 1;
|
|
2755
1711
|
}
|
|
2756
|
-
|
|
2757
|
-
const CloseButton = styled(StyledButton)`
|
|
2758
|
-
right: 32px;
|
|
2759
|
-
`;
|
|
2760
|
-
const DownloadButton = styled(StyledButton)`
|
|
2761
|
-
right: 80px;
|
|
2762
|
-
`;
|
|
2763
|
-
const StyledSymbolBadge = styled(SymbolBadge)`
|
|
1712
|
+
`, Pt = v(A)`
|
|
2764
1713
|
path {
|
|
2765
1714
|
stroke: #ffffff;
|
|
2766
1715
|
}
|
|
2767
|
-
|
|
2768
|
-
const Thumbnail = styled.img`
|
|
1716
|
+
`, Ft = v.img`
|
|
2769
1717
|
cursor: pointer;
|
|
2770
|
-
|
|
2771
|
-
var
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
const container = useContainer();
|
|
2776
|
-
if (!router) {
|
|
1718
|
+
`, Zt = D((l, m) => {
|
|
1719
|
+
var c = l, { className: e, onClick: t = () => {
|
|
1720
|
+
}, name: n = "", to: s = "", params: o = {}, children: i } = c, a = $(c, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1721
|
+
const u = Le(), f = T();
|
|
1722
|
+
if (!u)
|
|
2777
1723
|
return null;
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
}, other), {
|
|
1724
|
+
let d = "";
|
|
1725
|
+
const h = k(p({
|
|
1726
|
+
onClick: t,
|
|
1727
|
+
className: w(e, "humany-route-link"),
|
|
1728
|
+
to: d,
|
|
1729
|
+
innerRef: m
|
|
1730
|
+
}, a), {
|
|
2786
1731
|
ref: null
|
|
2787
1732
|
});
|
|
2788
|
-
if (
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
onClick: (e) => {
|
|
2794
|
-
onClick(e);
|
|
2795
|
-
e.preventDefault();
|
|
1733
|
+
if (n) {
|
|
1734
|
+
if (!(u.routes || []).find((y) => y.name === n))
|
|
1735
|
+
return process.env.NODE_ENV !== "production" && ne.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ r.createElement(re, k(p({}, h), {
|
|
1736
|
+
onClick: (y) => {
|
|
1737
|
+
t(y), y.preventDefault(), process.env.NODE_ENV !== "production" && ne.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
2796
1738
|
}
|
|
2797
|
-
}),
|
|
2798
|
-
}
|
|
2799
|
-
const encodedParams = Object.keys(params).reduce((acc, key) => {
|
|
2800
|
-
acc[key] = typeof params[key] === "string" ? encodeURIComponent(params[key]) : params[key];
|
|
2801
|
-
return acc;
|
|
2802
|
-
}, {});
|
|
1739
|
+
}), i);
|
|
1740
|
+
const x = Object.keys(o).reduce((y, b) => (y[b] = typeof o[b] == "string" ? encodeURIComponent(o[b]) : o[b], y), {});
|
|
2803
1741
|
try {
|
|
2804
|
-
|
|
2805
|
-
} catch (
|
|
2806
|
-
return /* @__PURE__ */
|
|
1742
|
+
d = u.generate(n, x || {});
|
|
1743
|
+
} catch (y) {
|
|
1744
|
+
return /* @__PURE__ */ r.createElement(re, p({}, h), i);
|
|
2807
1745
|
}
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
} else if (to && router.history) {
|
|
2812
|
-
path = router.history.createHref({
|
|
1746
|
+
d && u.settings.mode && u.settings.mode === be.browser && d[0] !== "/" && (d = `/${d}`);
|
|
1747
|
+
} else if (s && u.history)
|
|
1748
|
+
d = u.history.createHref({
|
|
2813
1749
|
hash: "",
|
|
2814
|
-
pathname:
|
|
1750
|
+
pathname: s,
|
|
2815
1751
|
search: "",
|
|
2816
1752
|
state: void 0
|
|
2817
1753
|
});
|
|
2818
|
-
|
|
2819
|
-
return null;
|
|
1754
|
+
else
|
|
1755
|
+
return process.env.NODE_ENV !== "production" && ne.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'), null;
|
|
1756
|
+
if (u.settings && u.settings.mode === be.scopedHash) {
|
|
1757
|
+
const g = f.get("$widget").name;
|
|
1758
|
+
d = _e(d, g);
|
|
2820
1759
|
}
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
className,
|
|
2832
|
-
disabled = false,
|
|
2833
|
-
role = "link",
|
|
2834
|
-
tabIndex = 0,
|
|
2835
|
-
onClick = () => {
|
|
1760
|
+
return /* @__PURE__ */ r.createElement(re, k(p({}, h), {
|
|
1761
|
+
to: d
|
|
1762
|
+
}), i);
|
|
1763
|
+
}), Te = D((g, h) => {
|
|
1764
|
+
var E = g, {
|
|
1765
|
+
className: e,
|
|
1766
|
+
disabled: t = !1,
|
|
1767
|
+
role: n = "link",
|
|
1768
|
+
tabIndex: s = 0,
|
|
1769
|
+
onClick: o = () => {
|
|
2836
1770
|
},
|
|
2837
|
-
onKeyDown = () => {
|
|
1771
|
+
onKeyDown: i = () => {
|
|
2838
1772
|
},
|
|
2839
|
-
title,
|
|
2840
|
-
href,
|
|
2841
|
-
children,
|
|
2842
|
-
target,
|
|
2843
|
-
routeName,
|
|
2844
|
-
params
|
|
2845
|
-
} =
|
|
1773
|
+
title: a,
|
|
1774
|
+
href: m,
|
|
1775
|
+
children: l,
|
|
1776
|
+
target: c,
|
|
1777
|
+
routeName: u,
|
|
1778
|
+
params: f
|
|
1779
|
+
} = E, d = $(E, [
|
|
2846
1780
|
"className",
|
|
2847
1781
|
"disabled",
|
|
2848
1782
|
"role",
|
|
@@ -2856,298 +1790,261 @@ var Link = forwardRef((_F, ref) => {
|
|
|
2856
1790
|
"routeName",
|
|
2857
1791
|
"params"
|
|
2858
1792
|
]);
|
|
2859
|
-
const
|
|
2860
|
-
title,
|
|
2861
|
-
disabled,
|
|
2862
|
-
role,
|
|
2863
|
-
tabIndex,
|
|
2864
|
-
className:
|
|
2865
|
-
onClick: (
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
e.preventDefault();
|
|
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();
|
|
2869
1802
|
return;
|
|
2870
1803
|
}
|
|
2871
|
-
|
|
1804
|
+
o(y);
|
|
2872
1805
|
},
|
|
2873
|
-
onKeyDown: (
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
if (e.key !== "Tab") {
|
|
2877
|
-
e.preventDefault();
|
|
2878
|
-
}
|
|
1806
|
+
onKeyDown: (y) => {
|
|
1807
|
+
if (y.persist(), t) {
|
|
1808
|
+
y.key !== "Tab" && y.preventDefault();
|
|
2879
1809
|
return;
|
|
2880
1810
|
}
|
|
2881
|
-
|
|
1811
|
+
i(y);
|
|
2882
1812
|
}
|
|
2883
1813
|
};
|
|
2884
|
-
return
|
|
2885
|
-
name:
|
|
2886
|
-
params
|
|
2887
|
-
},
|
|
2888
|
-
ref
|
|
2889
|
-
}),
|
|
2890
|
-
href,
|
|
2891
|
-
target
|
|
2892
|
-
},
|
|
2893
|
-
ref
|
|
2894
|
-
}),
|
|
2895
|
-
})
|
|
2896
|
-
|
|
2897
|
-
${(p) => p.disabled ? `
|
|
1814
|
+
return u ? /* @__PURE__ */ r.createElement(At, k(p(p({
|
|
1815
|
+
name: u,
|
|
1816
|
+
params: f
|
|
1817
|
+
}, x), R(d)), {
|
|
1818
|
+
ref: h
|
|
1819
|
+
}), l) : /* @__PURE__ */ r.createElement(Kt, k(p(p({
|
|
1820
|
+
href: m,
|
|
1821
|
+
target: c
|
|
1822
|
+
}, x), R(d)), {
|
|
1823
|
+
ref: h
|
|
1824
|
+
}), l);
|
|
1825
|
+
}), At = v(Zt)`
|
|
1826
|
+
${(e) => e.disabled ? `
|
|
2898
1827
|
pointer-events: none;
|
|
2899
1828
|
opacity: .7;
|
|
2900
1829
|
` : "cursor: pointer;"}
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
${(p) => p.disabled ? `
|
|
1830
|
+
`, Kt = v.a`
|
|
1831
|
+
${(e) => e.disabled ? `
|
|
2904
1832
|
pointer-events: none;
|
|
2905
1833
|
opacity: .7;
|
|
2906
1834
|
` : "cursor: pointer;"}
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
if (esc || close) {
|
|
2918
|
-
toggleVisible(false);
|
|
2919
|
-
}
|
|
2920
|
-
}, [esc, close]);
|
|
2921
|
-
useEffect(() => {
|
|
2922
|
-
if (visible && closeButtonRef.current) {
|
|
2923
|
-
closeButtonRef.current.focus();
|
|
2924
|
-
}
|
|
2925
|
-
}, [visible, closeButtonRef.current]);
|
|
2926
|
-
useWidgetEvent("router:changed", () => {
|
|
2927
|
-
toggleVisible(false);
|
|
1835
|
+
`, Yt = D((m, a) => {
|
|
1836
|
+
var l = m, { className: e, children: t, trigger: n, onOverlayClick: s = () => {
|
|
1837
|
+
}, close: o = !1 } = l, i = $(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
1838
|
+
const [c, u] = le(), [f, d] = Me(!0), h = S(), g = S(F()), E = q("Escape");
|
|
1839
|
+
C(() => {
|
|
1840
|
+
(E || o) && u(!1);
|
|
1841
|
+
}, [E, o]), C(() => {
|
|
1842
|
+
c && h.current && h.current.focus();
|
|
1843
|
+
}, [c, h.current]), Q("router:changed", () => {
|
|
1844
|
+
u(!1);
|
|
2928
1845
|
});
|
|
2929
|
-
const
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
useImperativeHandle(ref, () => ({
|
|
1846
|
+
const x = H((b) => {
|
|
1847
|
+
u(!1), s(b);
|
|
1848
|
+
}, [s, u]);
|
|
1849
|
+
ie(a, () => ({
|
|
2934
1850
|
close() {
|
|
2935
|
-
|
|
1851
|
+
u(!1);
|
|
2936
1852
|
}
|
|
2937
1853
|
}));
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
className: appendClassNames(className, "humany-modal", `humany-modal-${id.current}`),
|
|
2948
|
-
css: css2,
|
|
1854
|
+
const y = H(() => ue(g.current, () => {
|
|
1855
|
+
u(!1);
|
|
1856
|
+
}), [g.current]);
|
|
1857
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(De, {
|
|
1858
|
+
visible: c,
|
|
1859
|
+
onClick: x
|
|
1860
|
+
}, /* @__PURE__ */ r.createElement(jt, k(p({
|
|
1861
|
+
className: w(e, "humany-modal", `humany-modal-${g.current}`),
|
|
1862
|
+
css: f,
|
|
2949
1863
|
tabIndex: -1
|
|
2950
|
-
},
|
|
2951
|
-
ref:
|
|
2952
|
-
}), /* @__PURE__ */
|
|
2953
|
-
onClick: () =>
|
|
1864
|
+
}, i), {
|
|
1865
|
+
ref: d
|
|
1866
|
+
}), /* @__PURE__ */ r.createElement(de, {
|
|
1867
|
+
onClick: () => u(!1),
|
|
2954
1868
|
tabIndex: 0,
|
|
2955
|
-
ref:
|
|
2956
|
-
}, /* @__PURE__ */
|
|
1869
|
+
ref: h
|
|
1870
|
+
}, /* @__PURE__ */ r.createElement(A, {
|
|
2957
1871
|
symbol: { type: "Svg", content: "close" }
|
|
2958
|
-
})),
|
|
2959
|
-
onClick: (
|
|
2960
|
-
|
|
2961
|
-
closeMenus();
|
|
1872
|
+
})), t)), r.cloneElement(n, {
|
|
1873
|
+
onClick: (b) => {
|
|
1874
|
+
u(), y();
|
|
2962
1875
|
}
|
|
2963
1876
|
}));
|
|
2964
|
-
})
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
return (_a = p.theme.fonts) == null ? void 0 : _a.type;
|
|
1877
|
+
}), jt = v.div`
|
|
1878
|
+
font-family: ${(e) => {
|
|
1879
|
+
var t;
|
|
1880
|
+
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2969
1881
|
}};
|
|
2970
|
-
font-size: ${(
|
|
2971
|
-
var
|
|
2972
|
-
return (
|
|
1882
|
+
font-size: ${(e) => {
|
|
1883
|
+
var t;
|
|
1884
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
2973
1885
|
}};
|
|
2974
1886
|
position: relative;
|
|
2975
1887
|
max-width: 50%;
|
|
2976
1888
|
min-width: 200px;
|
|
2977
|
-
padding: ${(
|
|
2978
|
-
var
|
|
2979
|
-
return (
|
|
1889
|
+
padding: ${(e) => {
|
|
1890
|
+
var t;
|
|
1891
|
+
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2980
1892
|
}};
|
|
2981
|
-
${
|
|
2982
|
-
${(
|
|
1893
|
+
${Se}
|
|
1894
|
+
${(e) => e.css && e.css}
|
|
2983
1895
|
outline: none;
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
onCancel = () => {
|
|
1896
|
+
`, Pn = ({
|
|
1897
|
+
className: e,
|
|
1898
|
+
trigger: t,
|
|
1899
|
+
header: n = "",
|
|
1900
|
+
text: s = "",
|
|
1901
|
+
onCancel: o = () => {
|
|
2991
1902
|
},
|
|
2992
|
-
onConfirm = () => {
|
|
1903
|
+
onConfirm: i = () => {
|
|
2993
1904
|
},
|
|
2994
|
-
cancelLabel = "",
|
|
2995
|
-
confirmLabel = ""
|
|
1905
|
+
cancelLabel: a = "",
|
|
1906
|
+
confirmLabel: m = ""
|
|
2996
1907
|
}) => {
|
|
2997
|
-
const
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
},
|
|
3014
|
-
|
|
3015
|
-
}, confirmLabel), cancelLabel && /* @__PURE__ */ React.createElement(StyledCancelButton, {
|
|
3016
|
-
onClick: cancel
|
|
3017
|
-
}, cancelLabel));
|
|
3018
|
-
};
|
|
3019
|
-
const StyledModal = styled(Modal)`
|
|
1908
|
+
const l = S(), c = H(() => {
|
|
1909
|
+
var f;
|
|
1910
|
+
o(), (f = l == null ? void 0 : l.current) == null || f.close();
|
|
1911
|
+
}, [o]), u = H(() => {
|
|
1912
|
+
var f;
|
|
1913
|
+
i(), (f = l == null ? void 0 : l.current) == null || f.close();
|
|
1914
|
+
}, [i]);
|
|
1915
|
+
return /* @__PURE__ */ r.createElement(Xt, {
|
|
1916
|
+
className: e,
|
|
1917
|
+
trigger: t,
|
|
1918
|
+
ref: l,
|
|
1919
|
+
onOverlayClick: c
|
|
1920
|
+
}, n && /* @__PURE__ */ r.createElement(xe, null, n), s && /* @__PURE__ */ r.createElement(xe, null, s), m && /* @__PURE__ */ r.createElement(_t, {
|
|
1921
|
+
onClick: u
|
|
1922
|
+
}, m), a && /* @__PURE__ */ r.createElement(Ut, {
|
|
1923
|
+
onClick: c
|
|
1924
|
+
}, a));
|
|
1925
|
+
}, Xt = v(Yt)`
|
|
3020
1926
|
display: block;
|
|
3021
1927
|
|
|
3022
1928
|
span {
|
|
3023
1929
|
display: block;
|
|
3024
|
-
margin: 0 0 ${(
|
|
3025
|
-
var
|
|
3026
|
-
return (
|
|
1930
|
+
margin: 0 0 ${(e) => {
|
|
1931
|
+
var t;
|
|
1932
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
3027
1933
|
}};
|
|
3028
1934
|
|
|
3029
1935
|
&:first-of-type:not(:only-of-type) {
|
|
3030
1936
|
font-weight: 700;
|
|
3031
|
-
margin: 0 0 ${(
|
|
3032
|
-
var
|
|
3033
|
-
return (
|
|
1937
|
+
margin: 0 0 ${(e) => {
|
|
1938
|
+
var t;
|
|
1939
|
+
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
3034
1940
|
}};
|
|
3035
1941
|
}
|
|
3036
1942
|
}
|
|
3037
|
-
|
|
3038
|
-
const StyledConfirmButton = styled(Button)`
|
|
1943
|
+
`, _t = v(U)`
|
|
3039
1944
|
display: inline-block;
|
|
3040
1945
|
min-width: 50px;
|
|
3041
|
-
${(
|
|
3042
|
-
var
|
|
3043
|
-
return `padding: ${(
|
|
1946
|
+
${(e) => {
|
|
1947
|
+
var t, n;
|
|
1948
|
+
return `padding: ${(t = e.theme.sizes) == null ? void 0 : t.small} ${(n = e.theme.sizes) == null ? void 0 : n.normal};`;
|
|
3044
1949
|
}}
|
|
3045
|
-
${(
|
|
1950
|
+
${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
|
|
3046
1951
|
color: #FFFFFF;
|
|
3047
|
-
background-color: ${(
|
|
3048
|
-
var
|
|
3049
|
-
return (
|
|
1952
|
+
background-color: ${(e) => {
|
|
1953
|
+
var t;
|
|
1954
|
+
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
3050
1955
|
}};
|
|
3051
|
-
border: 1px solid ${(
|
|
3052
|
-
var
|
|
3053
|
-
return (
|
|
1956
|
+
border: 1px solid ${(e) => {
|
|
1957
|
+
var t;
|
|
1958
|
+
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
3054
1959
|
}};
|
|
3055
1960
|
|
|
3056
|
-
margin: 0 ${(
|
|
3057
|
-
var
|
|
3058
|
-
return (
|
|
1961
|
+
margin: 0 ${(e) => {
|
|
1962
|
+
var t;
|
|
1963
|
+
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
3059
1964
|
}} 0 0;
|
|
3060
1965
|
|
|
3061
1966
|
&:focus {
|
|
3062
|
-
${(
|
|
3063
|
-
var
|
|
3064
|
-
return ((
|
|
1967
|
+
${(e) => {
|
|
1968
|
+
var t;
|
|
1969
|
+
return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && P;
|
|
3065
1970
|
}};
|
|
3066
1971
|
background-color: transparent;
|
|
3067
1972
|
}
|
|
3068
|
-
|
|
3069
|
-
const StyledCancelButton = styled(Button)`
|
|
1973
|
+
`, Ut = v(U)`
|
|
3070
1974
|
display: inline-block;
|
|
3071
1975
|
min-width: 50px;
|
|
3072
|
-
${(
|
|
3073
|
-
var
|
|
3074
|
-
return `padding: ${(
|
|
1976
|
+
${(e) => {
|
|
1977
|
+
var t, n;
|
|
1978
|
+
return `padding: ${(t = e.theme.sizes) == null ? void 0 : t.small} ${(n = e.theme.sizes) == null ? void 0 : n.normal};`;
|
|
3075
1979
|
}}
|
|
3076
|
-
${(
|
|
1980
|
+
${(e) => e.theme.borderRadius && `border-radius: ${e.theme.borderRadius};`}
|
|
3077
1981
|
background-color: transparent;
|
|
3078
|
-
color: ${(
|
|
3079
|
-
var
|
|
3080
|
-
return (
|
|
1982
|
+
color: ${(e) => {
|
|
1983
|
+
var t;
|
|
1984
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
3081
1985
|
}};
|
|
3082
|
-
border: 1px solid ${(
|
|
3083
|
-
var
|
|
3084
|
-
return (
|
|
1986
|
+
border: 1px solid ${(e) => {
|
|
1987
|
+
var t;
|
|
1988
|
+
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
3085
1989
|
}};
|
|
3086
1990
|
|
|
3087
1991
|
&:focus {
|
|
3088
|
-
${(
|
|
3089
|
-
var
|
|
3090
|
-
return ((
|
|
1992
|
+
${(e) => {
|
|
1993
|
+
var t;
|
|
1994
|
+
return ((t = e.theme.accessibility) == null ? void 0 : t.isTabbing) && P;
|
|
3091
1995
|
}};
|
|
3092
1996
|
}
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
text: link
|
|
3108
|
-
})), /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement("span", null, suggestionHeader), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, suggestion))));
|
|
3109
|
-
};
|
|
3110
|
-
const Wrapper$1 = styled.div`
|
|
1997
|
+
`, Fn = ({
|
|
1998
|
+
header: e = "",
|
|
1999
|
+
link: t = "",
|
|
2000
|
+
suggestionHeader: n = "",
|
|
2001
|
+
suggestion: s = ""
|
|
2002
|
+
}) => /* @__PURE__ */ r.createElement(qt, null, /* @__PURE__ */ r.createElement(Qt, null, /* @__PURE__ */ r.createElement(_, {
|
|
2003
|
+
variant: "h2"
|
|
2004
|
+
}, "404")), /* @__PURE__ */ r.createElement(Gt, null, /* @__PURE__ */ r.createElement(_, {
|
|
2005
|
+
variant: "h3"
|
|
2006
|
+
}, e), /* @__PURE__ */ r.createElement(en, {
|
|
2007
|
+
routeName: "index",
|
|
2008
|
+
"aria-label": t,
|
|
2009
|
+
text: t
|
|
2010
|
+
})), /* @__PURE__ */ r.createElement(Jt, null, /* @__PURE__ */ r.createElement("span", null, n), /* @__PURE__ */ r.createElement("ul", null, /* @__PURE__ */ r.createElement("li", null, s)))), qt = v.div`
|
|
3111
2011
|
display: flex;
|
|
3112
2012
|
flex-wrap: wrap;
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
${headingElement("h2", css`
|
|
2013
|
+
`, Qt = v.div`
|
|
2014
|
+
${X("h2", M`
|
|
3116
2015
|
padding: 0;
|
|
3117
2016
|
margin: 0;
|
|
3118
2017
|
color: gray;
|
|
3119
2018
|
font-size: 7em;
|
|
3120
2019
|
`)}
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.medium;
|
|
2020
|
+
`, Gt = v.div`
|
|
2021
|
+
margin-left: ${(e) => {
|
|
2022
|
+
var t;
|
|
2023
|
+
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
3126
2024
|
}};
|
|
3127
2025
|
|
|
3128
|
-
${
|
|
2026
|
+
${X("h3", M`
|
|
3129
2027
|
text-transform: uppercase;
|
|
3130
|
-
font-size: ${(
|
|
3131
|
-
var
|
|
3132
|
-
return (
|
|
2028
|
+
font-size: ${(e) => {
|
|
2029
|
+
var t;
|
|
2030
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
3133
2031
|
}};
|
|
3134
2032
|
`)}
|
|
3135
2033
|
|
|
3136
2034
|
a {
|
|
3137
|
-
color: ${(
|
|
3138
|
-
var
|
|
3139
|
-
return (
|
|
2035
|
+
color: ${(e) => {
|
|
2036
|
+
var t;
|
|
2037
|
+
return (t = e.theme.colors) == null ? void 0 : t.link;
|
|
3140
2038
|
}};
|
|
3141
|
-
font-size: ${(
|
|
3142
|
-
var
|
|
3143
|
-
return (
|
|
2039
|
+
font-size: ${(e) => {
|
|
2040
|
+
var t;
|
|
2041
|
+
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
3144
2042
|
}};
|
|
3145
2043
|
}
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
return (_a = p.theme.sizes) == null ? void 0 : _a.medium;
|
|
2044
|
+
`, Jt = v.div`
|
|
2045
|
+
margin-top: ${(e) => {
|
|
2046
|
+
var t;
|
|
2047
|
+
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
3151
2048
|
}};
|
|
3152
2049
|
min-width: 100%;
|
|
3153
2050
|
|
|
@@ -3155,345 +2052,301 @@ const Content = styled.div`
|
|
|
3155
2052
|
font-weight: bold;
|
|
3156
2053
|
}
|
|
3157
2054
|
`;
|
|
3158
|
-
class
|
|
2055
|
+
class Zn extends We {
|
|
3159
2056
|
constructor() {
|
|
3160
|
-
super(...arguments)
|
|
3161
|
-
|
|
3162
|
-
boundFocus: false
|
|
2057
|
+
super(...arguments), this.state = {
|
|
2058
|
+
boundFocus: !1
|
|
3163
2059
|
};
|
|
3164
2060
|
}
|
|
3165
2061
|
componentWillMount() {
|
|
3166
|
-
const
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
});
|
|
3171
|
-
}
|
|
2062
|
+
const t = this.props.container.get("accessibilitySettings");
|
|
2063
|
+
t && t.boundFocus && this.setState({
|
|
2064
|
+
boundFocus: !0
|
|
2065
|
+
});
|
|
3172
2066
|
}
|
|
3173
2067
|
componentDidMount() {
|
|
3174
|
-
if (!this.state.boundFocus)
|
|
2068
|
+
if (!this.state.boundFocus)
|
|
3175
2069
|
return;
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
const filtered = [].filter.call(focusable, (el) => {
|
|
3182
|
-
if (typeof window === "undefined") {
|
|
3183
|
-
return true;
|
|
3184
|
-
}
|
|
3185
|
-
const style = window.getComputedStyle(el);
|
|
3186
|
-
if (style.display === "none" || el.offsetWidth <= 0 && el.offsetHeight <= 0) {
|
|
3187
|
-
return false;
|
|
3188
|
-
}
|
|
3189
|
-
return true;
|
|
3190
|
-
});
|
|
3191
|
-
const firstFocusable = filtered[0];
|
|
3192
|
-
if (firstFocusable) {
|
|
3193
|
-
firstFocusable.focus();
|
|
3194
|
-
}
|
|
3195
|
-
});
|
|
3196
|
-
}
|
|
2070
|
+
const t = this.props.container.get("widgetDOMElement");
|
|
2071
|
+
this.node && t && (this.onFocusListener = this.node.addEventListener("focus", () => {
|
|
2072
|
+
const n = t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'), o = [].filter.call(n, (i) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(i).display === "none" || i.offsetWidth <= 0 && i.offsetHeight <= 0))[0];
|
|
2073
|
+
o && o.focus();
|
|
2074
|
+
}));
|
|
3197
2075
|
}
|
|
3198
2076
|
componentWillUnmount() {
|
|
3199
|
-
|
|
3200
|
-
this.node.removeEventListener("focus", this.onFocusListener);
|
|
3201
|
-
}
|
|
2077
|
+
this.node && this.node.removeEventListener("focus", this.onFocusListener);
|
|
3202
2078
|
}
|
|
3203
2079
|
render() {
|
|
3204
|
-
|
|
3205
|
-
return null;
|
|
3206
|
-
}
|
|
3207
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2080
|
+
return this.state.boundFocus ? /* @__PURE__ */ r.createElement("div", {
|
|
3208
2081
|
style: { opacity: 0 },
|
|
3209
2082
|
tabIndex: 0,
|
|
3210
|
-
ref: (
|
|
3211
|
-
this.node =
|
|
2083
|
+
ref: (t) => {
|
|
2084
|
+
this.node = t;
|
|
3212
2085
|
}
|
|
3213
|
-
});
|
|
2086
|
+
}) : null;
|
|
3214
2087
|
}
|
|
3215
2088
|
}
|
|
3216
|
-
|
|
3217
|
-
var
|
|
3218
|
-
return /* @__PURE__ */
|
|
3219
|
-
className:
|
|
3220
|
-
},
|
|
3221
|
-
ref
|
|
3222
|
-
}),
|
|
3223
|
-
html:
|
|
2089
|
+
const en = D((a, i) => {
|
|
2090
|
+
var m = a, { className: e, description: t, text: n, children: s } = m, o = $(m, ["className", "description", "text", "children"]);
|
|
2091
|
+
return /* @__PURE__ */ r.createElement(Te, k(p({
|
|
2092
|
+
className: w(e, "humany-text-link")
|
|
2093
|
+
}, o), {
|
|
2094
|
+
ref: i
|
|
2095
|
+
}), s, /* @__PURE__ */ r.createElement(me, null, n), t ? /* @__PURE__ */ r.createElement(Re, {
|
|
2096
|
+
html: t,
|
|
3224
2097
|
className: "humany-description"
|
|
3225
2098
|
}) : null);
|
|
3226
2099
|
});
|
|
3227
|
-
var
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
})(
|
|
3233
|
-
|
|
3234
|
-
return /* @__PURE__ */ React.createElement("span", {
|
|
3235
|
-
className: appendClassNames(className, "humany-timestamp")
|
|
3236
|
-
}, formatDate(timestamp, format));
|
|
3237
|
-
};
|
|
3238
|
-
const asTwoDigitString = (input2) => {
|
|
3239
|
-
return `0${input2}`.slice(-2);
|
|
3240
|
-
};
|
|
3241
|
-
function formatDate(unformattedDate, format) {
|
|
3242
|
-
const date = new Date(unformattedDate);
|
|
3243
|
-
const dateArray = date.toTimeString().split(" ")[0].split(":");
|
|
3244
|
-
const timeString = dateArray.length > 1 ? `${dateArray[0]}:${dateArray[1]}` : dateArray[0];
|
|
3245
|
-
const year = date.getFullYear();
|
|
3246
|
-
const month = date.getMonth() + 1;
|
|
3247
|
-
const day = date.getDate();
|
|
3248
|
-
const dateString = `${year}-${asTwoDigitString(month)}-${asTwoDigitString(day)}`;
|
|
3249
|
-
if (format === "yyyy-mm-dd") {
|
|
3250
|
-
return dateString;
|
|
3251
|
-
}
|
|
3252
|
-
if (format === "hh:mm") {
|
|
3253
|
-
return timeString;
|
|
3254
|
-
}
|
|
3255
|
-
return `${dateString} ${timeString}`;
|
|
2100
|
+
var tn = /* @__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))(tn || {});
|
|
2101
|
+
const An = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ r.createElement("span", {
|
|
2102
|
+
className: w(e, "humany-timestamp")
|
|
2103
|
+
}, nn(n, t)), Ee = (e) => `0${e}`.slice(-2);
|
|
2104
|
+
function nn(e, t) {
|
|
2105
|
+
const n = new Date(e), s = n.toTimeString().split(" ")[0].split(":"), o = s.length > 1 ? `${s[0]}:${s[1]}` : s[0], i = n.getFullYear(), a = n.getMonth() + 1, m = n.getDate(), l = `${i}-${Ee(a)}-${Ee(m)}`;
|
|
2106
|
+
return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? o : `${l} ${o}`;
|
|
3256
2107
|
}
|
|
3257
|
-
const
|
|
3258
|
-
var
|
|
3259
|
-
const [
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
const [{ x, y }, set] = usePosition(open, id.current, ref.current);
|
|
3263
|
-
const clickHandler = (event) => {
|
|
3264
|
-
const { target } = event;
|
|
3265
|
-
if (!ref.current || !target) {
|
|
3266
|
-
return;
|
|
3267
|
-
}
|
|
3268
|
-
if (ref.current !== target && !ref.current.contains(target)) {
|
|
3269
|
-
setOpen(false);
|
|
3270
|
-
}
|
|
2108
|
+
const Kn = (i) => {
|
|
2109
|
+
var a = i, { className: e, children: t, content: n, sticky: s = !1 } = a, o = $(a, ["className", "children", "content", "sticky"]);
|
|
2110
|
+
const [m, l] = L(!1), c = S(F()), u = S(), [{ x: f, y: d }, h] = He(m, c.current, u.current), g = (x) => {
|
|
2111
|
+
const { target: y } = x;
|
|
2112
|
+
!u.current || !y || u.current !== y && !u.current.contains(y) && l(!1);
|
|
3271
2113
|
};
|
|
3272
|
-
|
|
3273
|
-
if (
|
|
3274
|
-
return
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
}, [
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
setOpen(value);
|
|
3284
|
-
}, [set, setOpen]);
|
|
3285
|
-
return /* @__PURE__ */ React.createElement(Trigger, {
|
|
3286
|
-
ref,
|
|
2114
|
+
C(() => {
|
|
2115
|
+
if (!!s)
|
|
2116
|
+
return window.addEventListener("click", g), () => {
|
|
2117
|
+
window.removeEventListener("click", g);
|
|
2118
|
+
};
|
|
2119
|
+
}, [m, s]);
|
|
2120
|
+
const E = H((x, y) => {
|
|
2121
|
+
h(x, u.current), l(y);
|
|
2122
|
+
}, [h, l]);
|
|
2123
|
+
return /* @__PURE__ */ r.createElement(rn, {
|
|
2124
|
+
ref: u,
|
|
3287
2125
|
className: "humany-tooltip-trigger",
|
|
3288
|
-
onMouseEnter:
|
|
3289
|
-
onMouseLeave:
|
|
3290
|
-
onTouchEnd:
|
|
3291
|
-
onClick:
|
|
3292
|
-
},
|
|
3293
|
-
className:
|
|
3294
|
-
x,
|
|
3295
|
-
y
|
|
3296
|
-
},
|
|
3297
|
-
}
|
|
3298
|
-
const Trigger = styled.div`
|
|
2126
|
+
onMouseEnter: s ? void 0 : (x) => E(x, !0),
|
|
2127
|
+
onMouseLeave: s ? void 0 : (x) => E(x, !1),
|
|
2128
|
+
onTouchEnd: s ? (x) => E(x, !m) : void 0,
|
|
2129
|
+
onClick: s ? (x) => E(x, !m) : void 0
|
|
2130
|
+
}, t, m && /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(on, p({
|
|
2131
|
+
className: w(e, "humany-tooltip-container"),
|
|
2132
|
+
x: f,
|
|
2133
|
+
y: d
|
|
2134
|
+
}, o), n)));
|
|
2135
|
+
}, rn = v.div`
|
|
3299
2136
|
display: flex;
|
|
3300
2137
|
align-items: center;
|
|
3301
|
-
|
|
3302
|
-
const TooltipContainer = styled.div`
|
|
2138
|
+
`, on = v.div`
|
|
3303
2139
|
color: #ffffff;
|
|
3304
2140
|
background: #161616;
|
|
3305
|
-
border-radius: ${(
|
|
3306
|
-
padding: calc(${(
|
|
3307
|
-
var
|
|
3308
|
-
return (
|
|
2141
|
+
border-radius: ${(e) => e.theme.borderRadius};
|
|
2142
|
+
padding: calc(${(e) => {
|
|
2143
|
+
var t;
|
|
2144
|
+
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
3309
2145
|
}} * 2);
|
|
3310
|
-
font-size: ${(
|
|
3311
|
-
var
|
|
3312
|
-
return (
|
|
2146
|
+
font-size: ${(e) => {
|
|
2147
|
+
var t;
|
|
2148
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
3313
2149
|
}};
|
|
3314
|
-
font-family: ${(
|
|
3315
|
-
var
|
|
3316
|
-
return (
|
|
2150
|
+
font-family: ${(e) => {
|
|
2151
|
+
var t;
|
|
2152
|
+
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
3317
2153
|
}};
|
|
3318
2154
|
position: absolute;
|
|
3319
2155
|
z-index: 10;
|
|
3320
2156
|
|
|
3321
2157
|
a {
|
|
3322
|
-
color: ${(
|
|
2158
|
+
color: ${(e) => e.color ? e.color : "inherit"};
|
|
3323
2159
|
text-decoration: none;
|
|
3324
2160
|
}
|
|
3325
2161
|
|
|
3326
2162
|
i,
|
|
3327
2163
|
svg {
|
|
3328
|
-
margin-right: ${(
|
|
2164
|
+
margin-right: ${(e) => e.theme.sizes.small};
|
|
3329
2165
|
}
|
|
3330
2166
|
|
|
3331
|
-
${(
|
|
3332
|
-
let
|
|
3333
|
-
|
|
3334
|
-
css2 += `top: calc(2px + ${p.y || "0"}px);`;
|
|
3335
|
-
} else {
|
|
3336
|
-
css2 += `bottom: 2px;`;
|
|
3337
|
-
}
|
|
3338
|
-
if (p.x > 0) {
|
|
3339
|
-
css2 += `right: calc(2px + ${p.x || "0"}px);`;
|
|
3340
|
-
} else {
|
|
3341
|
-
css2 += `left: 2px;`;
|
|
3342
|
-
}
|
|
3343
|
-
return css2;
|
|
2167
|
+
${(e) => {
|
|
2168
|
+
let t = "";
|
|
2169
|
+
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;
|
|
3344
2170
|
}};
|
|
3345
|
-
|
|
3346
|
-
const TransitionComponent = (props) => {
|
|
2171
|
+
`, Yn = (e) => {
|
|
3347
2172
|
const {
|
|
3348
|
-
in:
|
|
3349
|
-
mountOnEnter =
|
|
3350
|
-
unmountOnExit =
|
|
3351
|
-
timeout,
|
|
3352
|
-
children,
|
|
3353
|
-
transitions
|
|
3354
|
-
} =
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
}
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
easing: !!exit.easing ? exit.easing : "ease-out"
|
|
3386
|
-
}
|
|
3387
|
-
};
|
|
2173
|
+
in: t,
|
|
2174
|
+
mountOnEnter: n = !0,
|
|
2175
|
+
unmountOnExit: s = !0,
|
|
2176
|
+
timeout: o,
|
|
2177
|
+
children: i,
|
|
2178
|
+
transitions: a
|
|
2179
|
+
} = e, l = (() => {
|
|
2180
|
+
var c, u;
|
|
2181
|
+
if (!(!a || a === "none")) {
|
|
2182
|
+
if (typeof a == "string")
|
|
2183
|
+
return {
|
|
2184
|
+
enter: {
|
|
2185
|
+
transitionKeys: a,
|
|
2186
|
+
duration: o ? typeof o == "number" ? o : o.enter : 200,
|
|
2187
|
+
easing: "ease-in"
|
|
2188
|
+
},
|
|
2189
|
+
exit: {
|
|
2190
|
+
transitionKeys: a,
|
|
2191
|
+
duration: o ? typeof o == "number" ? o : o.exit : 200,
|
|
2192
|
+
easing: "ease-out"
|
|
2193
|
+
}
|
|
2194
|
+
};
|
|
2195
|
+
if (typeof a == "object") {
|
|
2196
|
+
const { enter: f, exit: d } = a;
|
|
2197
|
+
return {
|
|
2198
|
+
enter: {
|
|
2199
|
+
transitionKeys: (c = a.enter) == null ? void 0 : c.type,
|
|
2200
|
+
duration: o ? typeof o == "number" ? o : o.enter : 200,
|
|
2201
|
+
easing: f.easing ? f.easing : "ease-in"
|
|
2202
|
+
},
|
|
2203
|
+
exit: {
|
|
2204
|
+
transitionKeys: (u = a.enter) == null ? void 0 : u.type,
|
|
2205
|
+
duration: o ? typeof o == "number" ? o : o.enter : 200,
|
|
2206
|
+
easing: d.easing ? d.easing : "ease-out"
|
|
2207
|
+
}
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
3388
2210
|
}
|
|
3389
|
-
};
|
|
3390
|
-
|
|
3391
|
-
return /* @__PURE__ */ React.createElement(Transition, {
|
|
2211
|
+
})();
|
|
2212
|
+
return /* @__PURE__ */ r.createElement(Ie, {
|
|
3392
2213
|
timeout: {
|
|
3393
|
-
enter:
|
|
3394
|
-
exit:
|
|
2214
|
+
enter: l && l.enter.duration || 0,
|
|
2215
|
+
exit: l && l.exit.duration || 0
|
|
3395
2216
|
},
|
|
3396
|
-
in:
|
|
3397
|
-
appear:
|
|
3398
|
-
mountOnEnter,
|
|
3399
|
-
unmountOnExit,
|
|
3400
|
-
onEnter: (
|
|
3401
|
-
}, (
|
|
3402
|
-
}
|
|
3403
|
-
var
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
const { implementation } = container.get("$widget");
|
|
3409
|
-
return implementation.widgets.get(widgetName);
|
|
2217
|
+
in: t,
|
|
2218
|
+
appear: !0,
|
|
2219
|
+
mountOnEnter: n,
|
|
2220
|
+
unmountOnExit: s,
|
|
2221
|
+
onEnter: (c) => c.clientHeight
|
|
2222
|
+
}, (c) => i && i(c, l && oe.compose(c, l)));
|
|
2223
|
+
}, sn = D((m, a) => {
|
|
2224
|
+
var l = m, { className: e, children: t, onClick: n = () => {
|
|
2225
|
+
}, widgetName: s, activationOptions: o } = l, i = $(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
2226
|
+
const c = T(), u = () => {
|
|
2227
|
+
const { implementation: h } = c.get("$widget");
|
|
2228
|
+
return h.widgets.get(s);
|
|
3410
2229
|
};
|
|
3411
|
-
|
|
3412
|
-
const
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
widget == null ? void 0 : widget.deactivate();
|
|
2230
|
+
C(() => {
|
|
2231
|
+
const h = u();
|
|
2232
|
+
return h == null || h.activate(o).then(() => h.invoke("attach")), () => {
|
|
2233
|
+
h == null || h.deactivate();
|
|
3416
2234
|
};
|
|
3417
|
-
}, [
|
|
3418
|
-
const
|
|
3419
|
-
const
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
name: widget.name,
|
|
3429
|
-
ref: target
|
|
3430
|
-
});
|
|
3431
|
-
}
|
|
2235
|
+
}, [s]);
|
|
2236
|
+
const f = (h) => {
|
|
2237
|
+
const g = u(), E = h.currentTarget;
|
|
2238
|
+
if (g) {
|
|
2239
|
+
const x = () => {
|
|
2240
|
+
g.invoke("renderState").then((y) => y === j.open ? g.invoke("close") : g.invoke("open")).then(() => {
|
|
2241
|
+
g.events.subscribeOnce("widget:area-rendered", (y, b) => {
|
|
2242
|
+
c.get("widgetDOMElement") && g.events.dispatch("widget:modal-opened", {
|
|
2243
|
+
name: g.name,
|
|
2244
|
+
ref: E
|
|
2245
|
+
});
|
|
3432
2246
|
});
|
|
3433
2247
|
});
|
|
3434
2248
|
};
|
|
3435
|
-
|
|
3436
|
-
widget.activate(activationOptions).then(() => widget.invoke("attach")).then(toggle);
|
|
3437
|
-
} else {
|
|
3438
|
-
toggle();
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
};
|
|
3442
|
-
const onEnter = (e) => {
|
|
3443
|
-
if (e.key === "Enter") {
|
|
3444
|
-
e.preventDefault();
|
|
3445
|
-
openWidget(e);
|
|
2249
|
+
g.state === Fe.Deactivated ? g.activate(o).then(() => g.invoke("attach")).then(x) : x();
|
|
3446
2250
|
}
|
|
2251
|
+
}, d = (h) => {
|
|
2252
|
+
h.key === "Enter" && (h.preventDefault(), f(h));
|
|
3447
2253
|
};
|
|
3448
|
-
return /* @__PURE__ */
|
|
3449
|
-
className:
|
|
3450
|
-
onKeyDown:
|
|
3451
|
-
onClick: (
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
});
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
2254
|
+
return /* @__PURE__ */ r.createElement(Te, k(p({
|
|
2255
|
+
className: w(e, "humany-widget-link"),
|
|
2256
|
+
onKeyDown: d,
|
|
2257
|
+
onClick: (h) => {
|
|
2258
|
+
n(h), f(h);
|
|
2259
|
+
}
|
|
2260
|
+
}, i), {
|
|
2261
|
+
ref: a
|
|
2262
|
+
}), t);
|
|
2263
|
+
}), jn = (e, t, n, s, o) => e.getAsync("componentResolver").then((i) => (i.registerComponent(t, Oe(() => n)), je(e, t, s || (() => {
|
|
2264
|
+
}), t, o)));
|
|
2265
|
+
export {
|
|
2266
|
+
it as AnchorLink,
|
|
2267
|
+
U as Button,
|
|
2268
|
+
Cn as Checkbox,
|
|
2269
|
+
lt as ColumnContext,
|
|
2270
|
+
$e as ComponentNodeContext,
|
|
2271
|
+
ut as ComponentPropertyContext,
|
|
2272
|
+
Pn as Confirm,
|
|
2273
|
+
ct as ContainerContext,
|
|
2274
|
+
tn as DateFormats,
|
|
2275
|
+
Bn as Drawer,
|
|
2276
|
+
xt as DrawerAnimationType,
|
|
2277
|
+
Vn as Dropdown,
|
|
2278
|
+
Ht as Empty,
|
|
2279
|
+
Wn as Grid,
|
|
2280
|
+
Re as Html,
|
|
2281
|
+
Tt as Icon,
|
|
2282
|
+
On as Input,
|
|
2283
|
+
Bt as ItemList,
|
|
2284
|
+
In as ItemTree,
|
|
2285
|
+
Wt as Lightbox,
|
|
2286
|
+
Te as Link,
|
|
2287
|
+
Nt as List,
|
|
2288
|
+
Yt as Modal,
|
|
2289
|
+
Fn as NotFound,
|
|
2290
|
+
De as Overlay,
|
|
2291
|
+
zt as Paragraph,
|
|
2292
|
+
G as Portal,
|
|
2293
|
+
Zt as RouteLink,
|
|
2294
|
+
mt as RoutingContext,
|
|
2295
|
+
xe as StyledText,
|
|
2296
|
+
A as SymbolBadge,
|
|
2297
|
+
Zn as TabStop,
|
|
2298
|
+
me as Text,
|
|
2299
|
+
en as TextLink,
|
|
2300
|
+
An as Timestamp,
|
|
2301
|
+
Kn as Tooltip,
|
|
2302
|
+
Yn as TransitionComponent,
|
|
2303
|
+
_ as Typography,
|
|
2304
|
+
sn as WidgetLink,
|
|
2305
|
+
P as borderTabStyle,
|
|
2306
|
+
Ce as browser,
|
|
2307
|
+
pt as buttonCss,
|
|
2308
|
+
Se as contentBox,
|
|
2309
|
+
R as convertToStringAttributes,
|
|
2310
|
+
bn as createEmptyComponent,
|
|
2311
|
+
jn as createReactComponent,
|
|
2312
|
+
st as defaultRenderInstructions,
|
|
2313
|
+
et as embeddedLinkMapper,
|
|
2314
|
+
we as filterCssProps,
|
|
2315
|
+
tt as filterCssPropsStyle,
|
|
2316
|
+
nt as genericHashLink,
|
|
2317
|
+
X as headingElement,
|
|
2318
|
+
Dn as invertedHoverButton,
|
|
2319
|
+
zn as itemList,
|
|
2320
|
+
Tn as linkTabStyle,
|
|
2321
|
+
gt as list,
|
|
2322
|
+
Nn as paddedBorderTabStyle,
|
|
2323
|
+
rt as processHtmlString,
|
|
2324
|
+
oe as transitionComposer,
|
|
2325
|
+
xn as useAction,
|
|
2326
|
+
En as useChildren,
|
|
2327
|
+
vn as useColumns,
|
|
2328
|
+
wn as useComponent,
|
|
2329
|
+
ae as useComponentDescriptor,
|
|
2330
|
+
ce as useComponentNode,
|
|
2331
|
+
I as useComponentPlatform,
|
|
2332
|
+
T as useContainer,
|
|
2333
|
+
dt as useContext,
|
|
2334
|
+
$n as useDispatch,
|
|
2335
|
+
z as useEventListener,
|
|
2336
|
+
ft as useEvents,
|
|
2337
|
+
B as useIsMounted,
|
|
2338
|
+
q as useKeyPress,
|
|
2339
|
+
kn as useLayout,
|
|
2340
|
+
ke as usePrevious,
|
|
2341
|
+
Ln as useProperties,
|
|
2342
|
+
Mn as useRenderState,
|
|
2343
|
+
Sn as useRouteData,
|
|
2344
|
+
Le as useRouter,
|
|
2345
|
+
Me as useScroll,
|
|
2346
|
+
Hn as useSettings,
|
|
2347
|
+
le as useToggle,
|
|
2348
|
+
Rn as useTransitionEnd,
|
|
2349
|
+
ue as useUniqueMenu,
|
|
2350
|
+
Q as useWidgetEvent
|
|
3497
2351
|
};
|
|
3498
|
-
export { AnchorLink, Button, Checkbox, ColumnContext, ComponentNodeContext, ComponentPropertyContext, Confirm, ContainerContext, DateFormats, Drawer, AnimationType as DrawerAnimationType, Dropdown, Empty, grid as Grid, Html, Icon, input as Input, ItemList, ItemTree, Lightbox, Link, List, Modal, NotFound, Overlay, Paragraph, Portal, RouteLink, RoutingContext, StyledText, SymbolBadge, TabStop, Text, TextLink, Timestamp, Tooltip, TransitionComponent, Typography, WidgetLink, WidgetOverlayOutlet, borderTabStyle, browser, buttonCss, contentBox, convertToStringAttributes, createEmptyComponent, createReactComponent, defaultRenderInstructions, embeddedLinkMapper, filterCssProps, filterCssPropsStyle, genericHashLink, genericHtml, headingElement, invertedHoverButton, itemList, linkTabStyle, list, paddedBorderTabStyle, parseHtmlString as processHtmlString, transitionComposer, useAction, useChildren, useColumns, useComponent, useComponentDescriptor, useComponentNode, useComponentPlatform, useContainer, useContext, useDispatch, useEventListener, useEvents, useIsMounted, useKeyPress, useLayout, usePrevious, useProperties, useRenderState, useRouteData, useRouter, useScroll, useSettings, useToggle, useTransitionEnd, useUniqueMenu, useWidgetEvent };
|
|
3499
2352
|
//# sourceMappingURL=index.js.map
|