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