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