@telia-ace/widget-ui 1.0.28-experimental.16 → 1.0.28-experimental.18
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/_icon.d.ts +7 -0
- package/dist/components/icon.d.ts +8 -6
- package/dist/components/index.d.ts +1 -2
- package/dist/components/ui-html.d.ts +1 -0
- package/dist/components/ui-symbol-badge.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1395 -1845
- package/dist/index.js.map +1 -1
- package/package.json +8 -9
- package/src/styles/mixins.scss +257 -0
package/dist/index.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var zt = Object.defineProperty, Lt = Object.defineProperties;
|
|
2
|
+
var Pt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var he = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ye = Object.prototype.hasOwnProperty, Ue = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var qe = (e, t, n) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Ye.call(t, n) && qe(e, n, t[n]);
|
|
8
|
+
if (he)
|
|
9
|
+
for (var n of he(t))
|
|
10
|
+
Ue.call(t, n) && qe(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, S = (e, t) => Lt(e, Pt(t));
|
|
13
|
+
var T = (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
|
+
Ye.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && he)
|
|
18
|
+
for (var o of he(e))
|
|
19
|
+
t.indexOf(o) < 0 && Ue.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var pe = (e, t, n) => new Promise((o, r) => {
|
|
23
|
+
var s = (l) => {
|
|
24
24
|
try {
|
|
25
|
-
|
|
26
|
-
} catch (
|
|
27
|
-
r(
|
|
25
|
+
c(n.next(l));
|
|
26
|
+
} catch (a) {
|
|
27
|
+
r(a);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, i = (l) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
32
|
-
} catch (
|
|
33
|
-
r(
|
|
31
|
+
c(n.throw(l));
|
|
32
|
+
} catch (a) {
|
|
33
|
+
r(a);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
|
|
35
|
+
}, c = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(s, i);
|
|
36
|
+
c((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { Container as
|
|
39
|
-
import
|
|
40
|
-
import { ComponentPlatform as
|
|
41
|
-
import { css as
|
|
42
|
-
import
|
|
43
|
-
import { kebabCase as
|
|
44
|
-
import { LitElement as
|
|
45
|
-
import { property as
|
|
46
|
-
import { html as
|
|
47
|
-
import { spread as
|
|
48
|
-
import { styleMap as
|
|
49
|
-
import { CSSTransition as
|
|
50
|
-
import { createPortal as
|
|
51
|
-
import { HistoryMode as
|
|
52
|
-
import { Link as
|
|
53
|
-
import
|
|
54
|
-
import { dedupeMixin as
|
|
55
|
-
const
|
|
38
|
+
import { Container as Nt, WidgetState as Rt } from "@webprovisions/platform";
|
|
39
|
+
import d, { forwardRef as B, createContext as oe, useContext as J, useState as C, useEffect as w, useRef as _, useCallback as M, useImperativeHandle as Te, useMemo as ge, Component as Ot, lazy as It } from "react";
|
|
40
|
+
import { ComponentPlatform as ze, asDescriptor as nt, createEventSubscriber as Bt, ComponentQuery as Wt, WidgetRenderState as fe, extendComponent as ot } from "@telia-ace/widget-core";
|
|
41
|
+
import { css as k, keyframes as rt } from "@emotion/react";
|
|
42
|
+
import y from "@emotion/styled";
|
|
43
|
+
import { kebabCase as Ht, appendClassNames as z, uuid as ae, removeNullAndUndefinedValues as Xe, Logger as Ee } from "@telia-ace/widget-utilities";
|
|
44
|
+
import { LitElement as ce, html as I, css as te, unsafeCSS as ke, nothing as jt } from "lit";
|
|
45
|
+
import { property as O, customElement as Vt, state as X } from "lit/decorators.js";
|
|
46
|
+
import { html as st, unsafeStatic as it } from "lit/static-html.js";
|
|
47
|
+
import { spread as R } from "@open-wc/lit-helpers";
|
|
48
|
+
import { styleMap as A } from "lit/directives/style-map.js";
|
|
49
|
+
import { CSSTransition as at, Transition as Ft } from "react-transition-group";
|
|
50
|
+
import { createPortal as At } from "react-dom";
|
|
51
|
+
import { HistoryMode as Ze, getSpecificWidgetPath as Kt } from "@telia-ace/widget-routing";
|
|
52
|
+
import { Link as Ce } from "react-router-dom";
|
|
53
|
+
import Qe from "htmr";
|
|
54
|
+
import { dedupeMixin as ct } from "@open-wc/dedupe-mixin";
|
|
55
|
+
const qt = (e) => e === "entering" || e === "entered", Yt = (e) => e === "exiting" || e === "exited", G = {
|
|
56
56
|
fade: {
|
|
57
57
|
in: "opacity: 1;",
|
|
58
58
|
out: "opacity: 0;"
|
|
@@ -77,29 +77,29 @@ const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exitin
|
|
|
77
77
|
in: "transform: scale(1);",
|
|
78
78
|
out: "transform: scale(0);"
|
|
79
79
|
}
|
|
80
|
-
},
|
|
80
|
+
}, Ut = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], Se = {
|
|
81
81
|
compose: (e = "exited", t) => {
|
|
82
|
-
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "),
|
|
83
|
-
if (
|
|
84
|
-
return r && r.length > 0 ?
|
|
85
|
-
${r && r.length > 0 && r.map((
|
|
86
|
-
transition: ${
|
|
82
|
+
const { enter: n, exit: o } = t, r = n.transitionKeys.split(" "), s = Ut.indexOf(r[0]) > -1 ? "transform" : "opacity";
|
|
83
|
+
if (qt(e))
|
|
84
|
+
return r && r.length > 0 ? k`
|
|
85
|
+
${r && r.length > 0 && r.map((c) => G[c] ? G[c].in : "")}
|
|
86
|
+
transition: ${s} ${n.duration}ms ${n.easing};
|
|
87
87
|
` : "";
|
|
88
|
-
const
|
|
89
|
-
${r.map((
|
|
88
|
+
const i = r && r.length > 0 && k`
|
|
89
|
+
${r.map((c) => G[c] ? G[c].out : "")}
|
|
90
90
|
`;
|
|
91
|
-
if (
|
|
92
|
-
const
|
|
93
|
-
return
|
|
94
|
-
${
|
|
95
|
-
${
|
|
96
|
-
transition: ${
|
|
97
|
-
` :
|
|
91
|
+
if (Yt(e)) {
|
|
92
|
+
const c = o.transitionKeys.split(" ");
|
|
93
|
+
return c && c.length > 0 && e === "exiting" ? k`
|
|
94
|
+
${i};
|
|
95
|
+
${c.map((l) => G[l] ? G[l].out : "")}
|
|
96
|
+
transition: ${s} ${o.duration}ms ${o.easing};
|
|
97
|
+
` : i;
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
composeViewTransition: (e, t, n) => {
|
|
101
101
|
if (t === "slide")
|
|
102
|
-
return
|
|
102
|
+
return Se.compose(e, {
|
|
103
103
|
enter: {
|
|
104
104
|
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
105
105
|
duration: 500
|
|
@@ -110,7 +110,7 @@ const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exitin
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
if (t === "fade")
|
|
113
|
-
return
|
|
113
|
+
return Se.compose(e, {
|
|
114
114
|
enter: {
|
|
115
115
|
transitionKeys: "fade",
|
|
116
116
|
duration: 500
|
|
@@ -123,124 +123,124 @@ const jt = (e) => e === "entering" || e === "entered", At = (e) => e === "exitin
|
|
|
123
123
|
},
|
|
124
124
|
get: (e) => G[e]
|
|
125
125
|
};
|
|
126
|
-
var
|
|
127
|
-
const
|
|
126
|
+
var _e = /* @__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))(_e || {});
|
|
127
|
+
const Ge = () => {
|
|
128
128
|
const {
|
|
129
129
|
opr: e,
|
|
130
130
|
opera: t,
|
|
131
131
|
InstallTrigger: n,
|
|
132
132
|
HTMLElement: o,
|
|
133
133
|
safari: r,
|
|
134
|
-
documentMode:
|
|
135
|
-
StyleMedia:
|
|
136
|
-
chrome:
|
|
137
|
-
CSS:
|
|
138
|
-
} = window,
|
|
139
|
-
if (
|
|
134
|
+
documentMode: s,
|
|
135
|
+
StyleMedia: i,
|
|
136
|
+
chrome: c,
|
|
137
|
+
CSS: l
|
|
138
|
+
} = window, a = !!e && !!e.addons || !!t || navigator.userAgent.indexOf(" OPR/") >= 0;
|
|
139
|
+
if (a)
|
|
140
140
|
return "opera";
|
|
141
141
|
if (n)
|
|
142
142
|
return "firefox";
|
|
143
|
-
const
|
|
144
|
-
if (/constructor/i.test(o) ||
|
|
143
|
+
const u = ((m) => m.toString() === "[object SafariRemoteNotification]")(!r || typeof r != "undefined" && r.pushNotification);
|
|
144
|
+
if (/constructor/i.test(o) || u)
|
|
145
145
|
return "safari";
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
146
|
+
const h = !!s;
|
|
147
|
+
if (h)
|
|
148
148
|
return "internet-explorer";
|
|
149
|
-
if (!
|
|
149
|
+
if (!h && !!i)
|
|
150
150
|
return "edge";
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
151
|
+
const p = !!c && (!!c.webstore || !!c.runtime);
|
|
152
|
+
if (p)
|
|
153
153
|
return "chrome";
|
|
154
|
-
if (
|
|
154
|
+
if (p && navigator.userAgent.indexOf("Edg") !== -1)
|
|
155
155
|
return "edge-chromium";
|
|
156
|
-
if ((
|
|
156
|
+
if ((p || a) && !!l)
|
|
157
157
|
return "blink";
|
|
158
|
-
},
|
|
158
|
+
}, Xt = ["string", "number"], W = (e) => Object.keys(e).reduce((t, n) => {
|
|
159
159
|
const o = typeof e[n] == "undefined" ? "" : e[n], r = typeof o;
|
|
160
|
-
if (
|
|
161
|
-
const
|
|
162
|
-
|
|
160
|
+
if (Xt.indexOf(r) > -1) {
|
|
161
|
+
const s = n.substring(0, 5);
|
|
162
|
+
s === "data-" || s === "aria-" ? t[Ht(n)] = o.toString() : n.substring(0, 4) !== "css-" && (t[n] = o.toString());
|
|
163
163
|
} else
|
|
164
164
|
t[n] = o;
|
|
165
165
|
return t;
|
|
166
|
-
}, {}),
|
|
167
|
-
var r = o, { children: t } = r, n =
|
|
166
|
+
}, {}), Zt = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ d.createElement(ho, b({}, t)) : null, us = Zt, Qt = (e) => new RegExp("^#", "i").test(e), Gt = (e) => (o) => {
|
|
167
|
+
var r = o, { children: t } = r, n = T(r, ["children"]);
|
|
168
168
|
const {
|
|
169
|
-
implementation:
|
|
170
|
-
name:
|
|
171
|
-
} = e.get("$widget"), { href:
|
|
172
|
-
if (
|
|
173
|
-
return /* @__PURE__ */
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
178
|
-
return /* @__PURE__ */
|
|
169
|
+
implementation: s,
|
|
170
|
+
name: i
|
|
171
|
+
} = e.get("$widget"), { href: c = "" } = n;
|
|
172
|
+
if (Qt(c))
|
|
173
|
+
return /* @__PURE__ */ d.createElement(cn, { smooth: !0, to: c }, t);
|
|
174
|
+
const l = s.bindings.map((h) => h.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(c);
|
|
175
|
+
if (u && u.length >= 4) {
|
|
176
|
+
const h = u[4];
|
|
177
|
+
if (s.widgets.get(h) && !h.startsWith("blob?") && !h.startsWith(i))
|
|
178
|
+
return /* @__PURE__ */ d.createElement(Er, { widgetName: h }, t);
|
|
179
179
|
}
|
|
180
|
-
return /* @__PURE__ */
|
|
181
|
-
},
|
|
180
|
+
return /* @__PURE__ */ d.createElement("a", b({}, n), t);
|
|
181
|
+
}, Jt = Gt, lt = (e) => {
|
|
182
182
|
const t = {};
|
|
183
183
|
return Object.keys(e).forEach((n) => {
|
|
184
184
|
n.indexOf("css-") > -1 && (t[n] = e[n]);
|
|
185
185
|
}), t;
|
|
186
|
-
},
|
|
186
|
+
}, en = (e) => {
|
|
187
187
|
let t = "";
|
|
188
|
-
return Object.keys(
|
|
188
|
+
return Object.keys(lt(e)).forEach((n) => {
|
|
189
189
|
n.indexOf("css-") > -1 && (t += `${n.replace("css-", "")}:${e[n]};`);
|
|
190
|
-
}),
|
|
190
|
+
}), k`
|
|
191
191
|
${t}
|
|
192
192
|
`;
|
|
193
|
-
},
|
|
193
|
+
}, tn = lt, nn = (e, t) => {
|
|
194
194
|
let n = "";
|
|
195
195
|
const o = () => {
|
|
196
196
|
n = "";
|
|
197
|
-
}, r = (
|
|
198
|
-
const
|
|
199
|
-
return
|
|
200
|
-
},
|
|
201
|
-
e.scroll || ((
|
|
202
|
-
), !1),
|
|
203
|
-
return t === "a" && (
|
|
204
|
-
},
|
|
197
|
+
}, r = (h) => {
|
|
198
|
+
const p = document.getElementById(n);
|
|
199
|
+
return p !== null ? (h(p), o(), !0) : !1;
|
|
200
|
+
}, s = (h) => (h.preventDefault(), o(), e.onClick && e.onClick(h), typeof e.to == "string" && (n = e.to.split("#").slice(1).join("#")), n !== "" && r(
|
|
201
|
+
e.scroll || ((p) => e.smooth ? p.scrollIntoView({ behavior: "smooth" }) : p.scrollIntoView())
|
|
202
|
+
), !1), u = e, { scroll: i, smooth: c, to: l } = u, a = T(u, ["scroll", "smooth", "to"]);
|
|
203
|
+
return t === "a" && (a.href = "javascript:;"), /* @__PURE__ */ d.createElement(t, S(b({}, a), { onClick: s }), e.children);
|
|
204
|
+
}, ye = (e) => (t, n) => {
|
|
205
205
|
let o = t, r = "";
|
|
206
206
|
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(t))
|
|
207
207
|
o = t;
|
|
208
208
|
else {
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
211
|
-
o =
|
|
212
|
-
const [
|
|
213
|
-
r =
|
|
209
|
+
const c = t.match(/h1|h2|h3|h4|h5|h6/);
|
|
210
|
+
if (c != null && c[0]) {
|
|
211
|
+
o = c[0];
|
|
212
|
+
const [l] = t.split(o);
|
|
213
|
+
r = l;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
const
|
|
217
|
-
return
|
|
218
|
-
${
|
|
216
|
+
const i = ((c, l, a) => a[c] ? `${l}${a[c]}` : `${l}${c}`)(o, r, e.theme.typographyVariantMapping || {});
|
|
217
|
+
return k`
|
|
218
|
+
${i} {
|
|
219
219
|
${n}
|
|
220
220
|
}
|
|
221
221
|
`;
|
|
222
222
|
};
|
|
223
|
-
function
|
|
224
|
-
return t ?
|
|
223
|
+
function on(e, t) {
|
|
224
|
+
return t ? Qe(e, t) : Qe(e);
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const rn = (e) => (t) => /* @__PURE__ */ d.createElement(tr, { attrs: t, htmlBody: e }), sn = (e, t) => ({
|
|
227
227
|
transform: {
|
|
228
|
-
a:
|
|
229
|
-
img:
|
|
228
|
+
a: Jt(e),
|
|
229
|
+
img: rn(t)
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
232
|
-
var
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
}), an = (e) => nn(e, "a"), cn = an, be = B((r, o) => {
|
|
232
|
+
var s = r, { className: e, children: t } = s, n = T(s, ["className", "children"]);
|
|
233
|
+
return /* @__PURE__ */ d.createElement(
|
|
234
|
+
ln,
|
|
235
|
+
S(b({
|
|
236
236
|
type: "button",
|
|
237
|
-
className:
|
|
238
|
-
},
|
|
237
|
+
className: z(e, "humany-button")
|
|
238
|
+
}, W(n)), {
|
|
239
239
|
ref: o
|
|
240
240
|
}),
|
|
241
241
|
t
|
|
242
242
|
);
|
|
243
|
-
}),
|
|
243
|
+
}), ln = y.button`
|
|
244
244
|
-webkit-appearance: button;
|
|
245
245
|
text-transform: none;
|
|
246
246
|
overflow: visible;
|
|
@@ -253,156 +253,156 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
253
253
|
line-height: normal;
|
|
254
254
|
margin: 0;
|
|
255
255
|
padding: 0;
|
|
256
|
-
`,
|
|
257
|
-
var
|
|
256
|
+
`, un = (r) => {
|
|
257
|
+
var s = r, {
|
|
258
258
|
onChange: e = () => {
|
|
259
259
|
},
|
|
260
260
|
onEnter: t = () => {
|
|
261
261
|
},
|
|
262
262
|
className: n
|
|
263
|
-
} =
|
|
263
|
+
} = s, o = T(s, [
|
|
264
264
|
"onChange",
|
|
265
265
|
"onEnter",
|
|
266
266
|
"className"
|
|
267
267
|
]);
|
|
268
|
-
return /* @__PURE__ */
|
|
268
|
+
return /* @__PURE__ */ d.createElement(
|
|
269
269
|
"input",
|
|
270
|
-
|
|
271
|
-
className:
|
|
272
|
-
onKeyDown: (
|
|
273
|
-
|
|
270
|
+
b({
|
|
271
|
+
className: z(n, "humany-checkbox"),
|
|
272
|
+
onKeyDown: (i) => {
|
|
273
|
+
i.key === "Enter" && t(i);
|
|
274
274
|
},
|
|
275
|
-
onChange: (
|
|
276
|
-
},
|
|
275
|
+
onChange: (i) => e(i.target.value, i.currentTarget.checked)
|
|
276
|
+
}, W(o))
|
|
277
277
|
);
|
|
278
|
-
},
|
|
278
|
+
}, ds = un, dn = oe(new Nt()), mn = oe(1), ut = oe({
|
|
279
279
|
id: "",
|
|
280
280
|
type: "",
|
|
281
281
|
name: "",
|
|
282
282
|
branch: ""
|
|
283
|
-
}),
|
|
284
|
-
const n =
|
|
285
|
-
return (r,
|
|
286
|
-
(t || o).getAsync("actionResolver").then((
|
|
287
|
-
|
|
283
|
+
}), hn = oe({}), pn = oe(null), fn = oe(null), gn = () => J(ut), Le = gn, yn = () => J(dn), H = yn, bn = (e, t) => {
|
|
284
|
+
const n = Le().id, o = H();
|
|
285
|
+
return (r, s) => {
|
|
286
|
+
(t || o).getAsync("actionResolver").then((i) => {
|
|
287
|
+
i.action(e || n, r, s);
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
|
-
},
|
|
291
|
-
const t = J(
|
|
290
|
+
}, ms = bn, vn = (e) => {
|
|
291
|
+
const t = J(ut), n = re(), [o, r] = C();
|
|
292
292
|
return w(() => {
|
|
293
293
|
if ((e || t.id) && n) {
|
|
294
|
-
const
|
|
295
|
-
r(
|
|
294
|
+
const s = n.nodes.get(e || t.id);
|
|
295
|
+
r(s);
|
|
296
296
|
}
|
|
297
297
|
}, [e, t.id, n]), o;
|
|
298
|
-
},
|
|
299
|
-
const e =
|
|
298
|
+
}, Pe = vn, $n = () => {
|
|
299
|
+
const e = _(!1);
|
|
300
300
|
return w(() => (e.current = !0, () => {
|
|
301
301
|
e.current = !1;
|
|
302
302
|
}), []), e;
|
|
303
|
-
},
|
|
304
|
-
const t =
|
|
303
|
+
}, q = $n, wn = (e) => {
|
|
304
|
+
const t = H(), [n, o] = C(null), r = q();
|
|
305
305
|
return w(() => {
|
|
306
|
-
|
|
307
|
-
r.current && o(
|
|
306
|
+
ze.getInstance(e || t).then((s) => {
|
|
307
|
+
r.current && o(s);
|
|
308
308
|
});
|
|
309
309
|
}, [r]), n;
|
|
310
|
-
},
|
|
311
|
-
const e =
|
|
312
|
-
(
|
|
313
|
-
if (t && r.current &&
|
|
314
|
-
const
|
|
315
|
-
o(
|
|
310
|
+
}, re = wn, xn = () => {
|
|
311
|
+
const e = Pe(), t = re(), [n, o] = C([]), r = q(), s = M(
|
|
312
|
+
(i) => {
|
|
313
|
+
if (t && r.current && i) {
|
|
314
|
+
const c = t.getBranch(i), l = i.getChildren(c).map((a) => nt(a));
|
|
315
|
+
o(l);
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
[r, t, o, e]
|
|
319
319
|
);
|
|
320
320
|
return w(() => {
|
|
321
|
-
e &&
|
|
321
|
+
e && s(e);
|
|
322
322
|
}, [e, t]), w(() => {
|
|
323
323
|
if (t) {
|
|
324
|
-
const [
|
|
325
|
-
return
|
|
326
|
-
(e ===
|
|
327
|
-
}),
|
|
328
|
-
(e ===
|
|
329
|
-
}),
|
|
330
|
-
(
|
|
324
|
+
const [i, c] = Bt(t.events);
|
|
325
|
+
return i("components:set-layout", (l, a) => {
|
|
326
|
+
(e === a.node.parent || a.node.parent === t.nodes.root) && s(a.node.parent);
|
|
327
|
+
}), i("components:node-appended", (l, a) => {
|
|
328
|
+
(e === a.node.parent || a.node.parent === t.nodes.root) && s(a.node.parent);
|
|
329
|
+
}), i("components:node-removed", (l, { parentNode: a }) => {
|
|
330
|
+
(a === e || a === t.nodes.root) && s(a);
|
|
331
331
|
}), () => {
|
|
332
|
-
|
|
332
|
+
c();
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
}, [e, t,
|
|
336
|
-
},
|
|
337
|
-
const n =
|
|
335
|
+
}, [e, t, s]), n;
|
|
336
|
+
}, hs = xn, En = () => J(mn), ps = En, Cn = (e, t) => {
|
|
337
|
+
const n = Le(), o = H(), [r, s] = C(void 0), i = q(), c = e || n.type || "";
|
|
338
338
|
return w(() => {
|
|
339
|
-
if (
|
|
340
|
-
let
|
|
341
|
-
return (t || o).getAsync("componentResolver").then((
|
|
342
|
-
if (
|
|
343
|
-
const
|
|
344
|
-
|
|
339
|
+
if (c) {
|
|
340
|
+
let l;
|
|
341
|
+
return (t || o).getAsync("componentResolver").then((a) => {
|
|
342
|
+
if (i.current) {
|
|
343
|
+
const u = a.getComponent(c);
|
|
344
|
+
s(u);
|
|
345
345
|
}
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
l = a.registerResolver(c, (u) => {
|
|
347
|
+
i.current && s(u);
|
|
348
348
|
});
|
|
349
349
|
}), () => {
|
|
350
|
-
|
|
350
|
+
l && l();
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
|
-
}, [
|
|
354
|
-
},
|
|
355
|
-
const t =
|
|
353
|
+
}, [i, c, t, o]), r;
|
|
354
|
+
}, fs = Cn, kn = (e) => {
|
|
355
|
+
const t = Pe(e), n = re(), [o, r] = C({}), s = q();
|
|
356
356
|
return w(() => {
|
|
357
|
-
t &&
|
|
358
|
-
}, [
|
|
357
|
+
t && s.current && r(t.attributes.context);
|
|
358
|
+
}, [s, t]), w(() => {
|
|
359
359
|
if (n) {
|
|
360
|
-
const
|
|
360
|
+
const i = n.events.subscribe(
|
|
361
361
|
"components:context-changed",
|
|
362
|
-
(
|
|
363
|
-
t ===
|
|
362
|
+
(c, l) => {
|
|
363
|
+
t === l.node && s.current && r(l.node.attributes.context);
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
return () => {
|
|
367
|
-
|
|
367
|
+
i();
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
}, [
|
|
371
|
-
},
|
|
372
|
-
const e =
|
|
370
|
+
}, [s, n, t]), o;
|
|
371
|
+
}, Sn = kn, _n = () => J(fn), gs = _n, Mn = () => {
|
|
372
|
+
const e = re(), t = Le(), [n, o] = C([]), [r, s] = C();
|
|
373
373
|
return w(() => {
|
|
374
374
|
if (e && t) {
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
|
|
375
|
+
const i = new Wt(e).withId(t.id), c = e.actions(i, t.type || ae());
|
|
376
|
+
s(c), n !== null && (n.forEach((l) => {
|
|
377
|
+
c.dispatch(l.key, l.data).then((a) => l.resolve(a)).catch((a) => l.reject(a));
|
|
378
378
|
}), o(null));
|
|
379
379
|
}
|
|
380
|
-
}, [e, t.id]), (
|
|
380
|
+
}, [e, t.id]), (i, c) => n !== null ? new Promise((l, a) => {
|
|
381
381
|
n.push({
|
|
382
|
-
key:
|
|
383
|
-
data:
|
|
384
|
-
resolve:
|
|
385
|
-
reject:
|
|
382
|
+
key: i,
|
|
383
|
+
data: c,
|
|
384
|
+
resolve: l,
|
|
385
|
+
reject: a
|
|
386
386
|
});
|
|
387
|
-
}) : r.dispatch(
|
|
388
|
-
},
|
|
389
|
-
const r =
|
|
387
|
+
}) : r.dispatch(i, c);
|
|
388
|
+
}, ys = Mn, K = (e, t, n = window, o = () => !0) => {
|
|
389
|
+
const r = _(() => {
|
|
390
390
|
});
|
|
391
391
|
w(() => {
|
|
392
392
|
r.current = t;
|
|
393
393
|
}, [t]), w(() => {
|
|
394
394
|
if (!(n && o()))
|
|
395
395
|
return;
|
|
396
|
-
const
|
|
397
|
-
return n.addEventListener(e,
|
|
398
|
-
n.removeEventListener(e,
|
|
396
|
+
const i = (c) => r.current(c);
|
|
397
|
+
return n.addEventListener(e, i), () => {
|
|
398
|
+
n.removeEventListener(e, i);
|
|
399
399
|
};
|
|
400
400
|
}, [e, n]);
|
|
401
|
-
},
|
|
402
|
-
const t =
|
|
401
|
+
}, Dn = (e) => {
|
|
402
|
+
const t = H(), { events: n } = (e || t).get("$widget");
|
|
403
403
|
return n;
|
|
404
|
-
},
|
|
405
|
-
const [e, t] =
|
|
404
|
+
}, Tn = Dn, zn = () => {
|
|
405
|
+
const [e, t] = C(!1);
|
|
406
406
|
return w(() => {
|
|
407
407
|
const n = () => {
|
|
408
408
|
t(!1);
|
|
@@ -413,117 +413,117 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
413
413
|
window.removeEventListener("keydown", o), window.removeEventListener("click", n);
|
|
414
414
|
};
|
|
415
415
|
}, []), e;
|
|
416
|
-
},
|
|
417
|
-
const [n, o] =
|
|
418
|
-
(
|
|
419
|
-
const { key:
|
|
420
|
-
|
|
416
|
+
}, bs = zn, Ln = (e, t) => {
|
|
417
|
+
const [n, o] = C(!1), r = M(
|
|
418
|
+
(i) => {
|
|
419
|
+
const { key: c } = i;
|
|
420
|
+
c === e && (o(!0), t && t(i));
|
|
421
421
|
},
|
|
422
422
|
[o, t]
|
|
423
|
-
),
|
|
424
|
-
({ key:
|
|
425
|
-
|
|
423
|
+
), s = M(
|
|
424
|
+
({ key: i }) => {
|
|
425
|
+
i === e && o(!1);
|
|
426
426
|
},
|
|
427
427
|
[o]
|
|
428
428
|
);
|
|
429
|
-
return
|
|
430
|
-
}, ee =
|
|
431
|
-
const t =
|
|
429
|
+
return K("keydown", r, window), K("keyup", s, window), n;
|
|
430
|
+
}, ee = Ln, Pn = (e) => {
|
|
431
|
+
const t = Pe(e), n = re(), [o, r] = C({}), s = q();
|
|
432
432
|
return w(() => {
|
|
433
|
-
t &&
|
|
434
|
-
}, [t,
|
|
433
|
+
t && s.current && r(t.attributes.layout);
|
|
434
|
+
}, [t, s]), w(() => {
|
|
435
435
|
if (n) {
|
|
436
|
-
const
|
|
436
|
+
const i = n.events.subscribe(
|
|
437
437
|
"components:layout-changed",
|
|
438
|
-
(
|
|
439
|
-
t ===
|
|
438
|
+
(c, l) => {
|
|
439
|
+
t === l.node && s.current && r(l.node.attributes.layout);
|
|
440
440
|
}
|
|
441
441
|
);
|
|
442
442
|
return () => {
|
|
443
|
-
|
|
443
|
+
i();
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
}, [n,
|
|
447
|
-
},
|
|
448
|
-
const t =
|
|
446
|
+
}, [n, s, t]), o;
|
|
447
|
+
}, vs = Pn, Nn = (e) => {
|
|
448
|
+
const t = _();
|
|
449
449
|
return w(() => {
|
|
450
450
|
t.current = e;
|
|
451
451
|
}), t.current;
|
|
452
|
-
},
|
|
453
|
-
const [t, n] =
|
|
452
|
+
}, dt = Nn, Rn = () => J(hn), $s = Rn, On = (e) => {
|
|
453
|
+
const [t, n] = C(), o = H(), r = q();
|
|
454
454
|
return w(() => {
|
|
455
|
-
let
|
|
456
|
-
const
|
|
457
|
-
if (!
|
|
455
|
+
let s;
|
|
456
|
+
const i = (e || o).get("$widget");
|
|
457
|
+
if (!i)
|
|
458
458
|
return;
|
|
459
|
-
const { name:
|
|
460
|
-
return
|
|
461
|
-
r.current && n(
|
|
462
|
-
}), (e || o).getAsync("actionResolver").then((
|
|
463
|
-
|
|
464
|
-
switch (
|
|
459
|
+
const { name: c, invoke: l } = i;
|
|
460
|
+
return l("renderState").then((a) => {
|
|
461
|
+
r.current && n(a);
|
|
462
|
+
}), (e || o).getAsync("actionResolver").then((a) => {
|
|
463
|
+
s = a.subscribe(c, (u, h) => {
|
|
464
|
+
switch (h) {
|
|
465
465
|
case "close":
|
|
466
466
|
case "open":
|
|
467
467
|
r.current && n(
|
|
468
|
-
|
|
468
|
+
h === "open" ? fe.open : fe.closed
|
|
469
469
|
);
|
|
470
470
|
break;
|
|
471
471
|
case "hide":
|
|
472
|
-
r.current && n(
|
|
472
|
+
r.current && n(fe.hidden);
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
475
|
}), () => {
|
|
476
|
-
|
|
476
|
+
s && s();
|
|
477
477
|
};
|
|
478
478
|
}, [r]), t;
|
|
479
|
-
},
|
|
480
|
-
const t =
|
|
479
|
+
}, ws = On, In = () => J(pn), mt = In, Bn = (e) => {
|
|
480
|
+
const t = H(), n = mt(), [o, r] = C({ name: "", params: {} }), s = q();
|
|
481
481
|
return w(() => {
|
|
482
|
-
const
|
|
483
|
-
if (!
|
|
482
|
+
const i = (e || t).get("$widget");
|
|
483
|
+
if (!i)
|
|
484
484
|
return;
|
|
485
|
-
const { events:
|
|
486
|
-
return
|
|
487
|
-
if (
|
|
488
|
-
const { name:
|
|
489
|
-
|
|
485
|
+
const { events: c } = i;
|
|
486
|
+
return c.subscribe("router:change", (a, { next: { routeData: u } }) => {
|
|
487
|
+
if (s.current) {
|
|
488
|
+
const { name: h, params: p } = u;
|
|
489
|
+
Xe(p), r({ name: h, params: p });
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
|
-
}, [
|
|
493
|
-
if (n && n.history &&
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
}, [n,
|
|
498
|
-
},
|
|
499
|
-
const t =
|
|
492
|
+
}, [s, e, t]), w(() => {
|
|
493
|
+
if (n && n.history && s.current) {
|
|
494
|
+
const i = n.getRouteData(), { name: c, params: l } = i;
|
|
495
|
+
Xe(l), r({ name: c, params: l });
|
|
496
|
+
}
|
|
497
|
+
}, [n, s]), o;
|
|
498
|
+
}, xs = Bn, ht = (e) => {
|
|
499
|
+
const t = _(), n = _(0);
|
|
500
500
|
let o;
|
|
501
|
-
const r =
|
|
502
|
-
var
|
|
503
|
-
(
|
|
504
|
-
var
|
|
505
|
-
(
|
|
501
|
+
const r = M(() => {
|
|
502
|
+
var a;
|
|
503
|
+
(a = t.current) == null || a.classList.add("humany-scrolling"), clearTimeout(o), o = setTimeout(() => {
|
|
504
|
+
var u;
|
|
505
|
+
(u = t.current) == null || u.classList.remove("humany-scrolling");
|
|
506
506
|
}, 500);
|
|
507
|
-
}, [t]),
|
|
508
|
-
(
|
|
509
|
-
n.current =
|
|
507
|
+
}, [t]), s = M(
|
|
508
|
+
(a) => {
|
|
509
|
+
n.current = a.touches[0].clientY;
|
|
510
510
|
},
|
|
511
511
|
[t]
|
|
512
|
-
),
|
|
513
|
-
(
|
|
514
|
-
if (!
|
|
512
|
+
), i = (a) => c(a) ? a === t.current ? a : null : a.parentElement ? i(a.parentElement) : null, c = (a) => a.scrollWidth > a.clientWidth || a.scrollHeight > a.clientHeight, l = M(
|
|
513
|
+
(a) => {
|
|
514
|
+
if (!a.cancelable)
|
|
515
515
|
return;
|
|
516
|
-
const
|
|
517
|
-
if (!
|
|
516
|
+
const u = a.touches[0].clientY, h = i(a.target);
|
|
517
|
+
if (!h)
|
|
518
518
|
return;
|
|
519
|
-
const
|
|
520
|
-
(
|
|
519
|
+
const p = h.scrollTop, m = n.current - u < 0 ? "up" : "down", g = p <= 0 && m === "up", x = p >= h.scrollHeight - h.offsetHeight && m === "down";
|
|
520
|
+
(g || x) && a.preventDefault(), n.current = u;
|
|
521
521
|
},
|
|
522
522
|
[t, n]
|
|
523
523
|
);
|
|
524
|
-
return
|
|
525
|
-
},
|
|
526
|
-
overflow-y: ${
|
|
524
|
+
return K("scroll", r, t.current, () => t.current && e), K("touchstart", s, t.current, () => t.current && e), K("touchmove", l, t.current, () => t.current && e), e ? [Wn, t] : ["", t];
|
|
525
|
+
}, Wn = `
|
|
526
|
+
overflow-y: ${Ge() === _e.Chrome || Ge() === _e.EdgeChromium ? "overlay" : "auto"};
|
|
527
527
|
overflow-x: hidden;
|
|
528
528
|
-ms-overflow-style: none; /* IE 10+ */
|
|
529
529
|
scrollbar-width: thin; /* Firefox */
|
|
@@ -550,65 +550,65 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
550
550
|
background-color: #7F7F7F;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
554
|
-
const [e, t] =
|
|
553
|
+
`, Hn = () => {
|
|
554
|
+
const [e, t] = C(null), n = H(), o = q();
|
|
555
555
|
return w(() => {
|
|
556
556
|
n.get("settings").then((r) => {
|
|
557
557
|
o.current && t(r);
|
|
558
558
|
});
|
|
559
559
|
}, [o]), e;
|
|
560
|
-
},
|
|
561
|
-
const [t, n] =
|
|
562
|
-
n(typeof r == "boolean" ? r : (
|
|
560
|
+
}, Es = Hn, jn = (e = !1) => {
|
|
561
|
+
const [t, n] = C(e), o = M((r) => {
|
|
562
|
+
n(typeof r == "boolean" ? r : (s) => !s);
|
|
563
563
|
}, []);
|
|
564
564
|
return [t, o];
|
|
565
|
-
},
|
|
566
|
-
const t =
|
|
565
|
+
}, pt = jn, Cs = (e) => {
|
|
566
|
+
const t = H(), n = re(), o = t.get("widgetDOMElement"), [r, s] = C(null), [i, c] = C(null), l = q();
|
|
567
567
|
w(() => {
|
|
568
|
-
if (n &&
|
|
569
|
-
const
|
|
570
|
-
if (!(
|
|
568
|
+
if (n && l.current) {
|
|
569
|
+
const u = n.nodes.all.find((p) => p.name === "root-area"), h = n.nodes.all.find((p) => p.type === "view");
|
|
570
|
+
if (!(h != null && h.attributes.properties.animation) && !(u != null && u.attributes.properties.animation))
|
|
571
571
|
e();
|
|
572
572
|
else {
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
const
|
|
576
|
-
|
|
573
|
+
const p = (x = "") => o == null ? void 0 : o.querySelector(`[data-node-id="${x}"]`), m = p(h == null ? void 0 : h.id);
|
|
574
|
+
m && s(m);
|
|
575
|
+
const g = p(u == null ? void 0 : u.id);
|
|
576
|
+
g && c(g);
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
}, [n, t,
|
|
580
|
-
const
|
|
581
|
-
(
|
|
582
|
-
|
|
579
|
+
}, [n, t, l]);
|
|
580
|
+
const a = M(
|
|
581
|
+
(u) => {
|
|
582
|
+
l.current && (u.target === r || u.target === i) && e();
|
|
583
583
|
},
|
|
584
|
-
[e,
|
|
584
|
+
[e, l, r, i]
|
|
585
585
|
);
|
|
586
|
-
|
|
587
|
-
},
|
|
588
|
-
const r =
|
|
586
|
+
K("transitionend", a, r), K("transitionend", a, i);
|
|
587
|
+
}, Vn = (e, t, n = [], o) => {
|
|
588
|
+
const r = Tn(o);
|
|
589
589
|
return w(() => {
|
|
590
590
|
if (r) {
|
|
591
|
-
const
|
|
591
|
+
const s = r.subscribe(e, t);
|
|
592
592
|
return () => {
|
|
593
|
-
|
|
593
|
+
s();
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
-
}, [r].concat(n)), (
|
|
597
|
-
},
|
|
598
|
-
const n =
|
|
596
|
+
}, [r].concat(n)), (s) => r == null ? void 0 : r.dispatch(e, s);
|
|
597
|
+
}, ve = Vn, Fn = (e, t) => {
|
|
598
|
+
const n = ve("widget:menu-toggled", (o, r) => {
|
|
599
599
|
r !== e && t();
|
|
600
600
|
});
|
|
601
601
|
return () => n(e);
|
|
602
|
-
},
|
|
603
|
-
var r = o, { className: e, children: t } = r, n =
|
|
604
|
-
return /* @__PURE__ */
|
|
602
|
+
}, Ne = Fn, An = (o) => {
|
|
603
|
+
var r = o, { className: e, children: t } = r, n = T(r, ["className", "children"]);
|
|
604
|
+
return /* @__PURE__ */ d.createElement(
|
|
605
605
|
"span",
|
|
606
|
-
|
|
607
|
-
className:
|
|
608
|
-
},
|
|
606
|
+
b({
|
|
607
|
+
className: z(e, "humany-text")
|
|
608
|
+
}, W(n)),
|
|
609
609
|
t
|
|
610
610
|
);
|
|
611
|
-
},
|
|
611
|
+
}, Re = An, ft = (e) => k`
|
|
612
612
|
display: flex;
|
|
613
613
|
justify-content: center;
|
|
614
614
|
flex-direction: column;
|
|
@@ -617,9 +617,9 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
617
617
|
border: ${e.theme.border};
|
|
618
618
|
box-shadow: ${e.theme.boxShadow || "none"};
|
|
619
619
|
${e["data-loading"] && "min-height: 150px;"}
|
|
620
|
-
`,
|
|
620
|
+
`, Kn = (e) => {
|
|
621
621
|
var t, n, o;
|
|
622
|
-
return
|
|
622
|
+
return k`
|
|
623
623
|
cursor: pointer;
|
|
624
624
|
text-align: center;
|
|
625
625
|
border: none;
|
|
@@ -629,11 +629,11 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
629
629
|
font-family: ${(n = e.theme.fonts) == null ? void 0 : n.type};
|
|
630
630
|
font-size: ${(o = e.theme.fonts) == null ? void 0 : o.normal};
|
|
631
631
|
`;
|
|
632
|
-
},
|
|
633
|
-
var
|
|
634
|
-
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled:
|
|
635
|
-
return
|
|
636
|
-
${
|
|
632
|
+
}, ks = (e) => {
|
|
633
|
+
var i;
|
|
634
|
+
const { primaryColor: t, secondaryColor: n, active: o, theme: r, disabled: s } = e;
|
|
635
|
+
return k`
|
|
636
|
+
${Kn(e)}
|
|
637
637
|
border: 1px solid ${o ? n : t};
|
|
638
638
|
background-color: ${o ? t : n};
|
|
639
639
|
|
|
@@ -646,10 +646,10 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
646
646
|
a {
|
|
647
647
|
transition: color 200ms ease-out;
|
|
648
648
|
color: ${o ? n : t};
|
|
649
|
-
font-size: ${(
|
|
649
|
+
font-size: ${(i = r.fonts) == null ? void 0 : i.normal};
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
${!
|
|
652
|
+
${!s && k`
|
|
653
653
|
&:hover {
|
|
654
654
|
background-color: ${t};
|
|
655
655
|
color: ${n};
|
|
@@ -663,27 +663,27 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
&:focus-visible {
|
|
666
|
-
${
|
|
666
|
+
${Z(e)};
|
|
667
667
|
}
|
|
668
668
|
`}
|
|
669
669
|
`;
|
|
670
|
-
},
|
|
670
|
+
}, Z = (e) => {
|
|
671
671
|
var t, n, o;
|
|
672
|
-
return
|
|
672
|
+
return k`
|
|
673
673
|
outline: ${(t = e.theme.accessibility) == null ? void 0 : t.border};
|
|
674
674
|
color: ${(o = (n = e.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : o.inactiveText};
|
|
675
675
|
border-color: transparent;
|
|
676
676
|
`;
|
|
677
|
-
},
|
|
678
|
-
${
|
|
677
|
+
}, qn = (e) => k`
|
|
678
|
+
${Z(e)}
|
|
679
679
|
text-decoration: underline;
|
|
680
|
-
`,
|
|
680
|
+
`, Ss = (e) => {
|
|
681
681
|
var t;
|
|
682
|
-
return
|
|
683
|
-
${
|
|
682
|
+
return k`
|
|
683
|
+
${Z(e)}
|
|
684
684
|
outline-offset: ${(t = e.theme.sizes) == null ? void 0 : t.small};
|
|
685
685
|
`;
|
|
686
|
-
},
|
|
686
|
+
}, Oe = y(be)`
|
|
687
687
|
position: absolute;
|
|
688
688
|
top: ${(e) => {
|
|
689
689
|
var t;
|
|
@@ -703,7 +703,7 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
&:focus-visible {
|
|
706
|
-
${
|
|
706
|
+
${Z}
|
|
707
707
|
padding: ${(e) => {
|
|
708
708
|
var t;
|
|
709
709
|
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
@@ -711,7 +711,7 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
711
711
|
height: 15px;
|
|
712
712
|
box-sizing: content-box;
|
|
713
713
|
}
|
|
714
|
-
`,
|
|
714
|
+
`, Je = y(Re)`
|
|
715
715
|
font-size: ${(e) => {
|
|
716
716
|
var t;
|
|
717
717
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
@@ -722,9 +722,9 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
722
722
|
var t;
|
|
723
723
|
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
724
724
|
}};
|
|
725
|
-
`,
|
|
725
|
+
`, Yn = (e) => {
|
|
726
726
|
var t;
|
|
727
|
-
return
|
|
727
|
+
return k`
|
|
728
728
|
padding: 0;
|
|
729
729
|
margin: 0;
|
|
730
730
|
list-style: none;
|
|
@@ -744,13 +744,13 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
744
744
|
margin: 0;
|
|
745
745
|
}
|
|
746
746
|
`;
|
|
747
|
-
},
|
|
747
|
+
}, _s = (e) => {
|
|
748
748
|
var t, n, o, r;
|
|
749
|
-
return
|
|
749
|
+
return k`
|
|
750
750
|
> div {
|
|
751
|
-
${
|
|
751
|
+
${ye(e)(
|
|
752
752
|
"> h1",
|
|
753
|
-
|
|
753
|
+
k`
|
|
754
754
|
margin: 0 0 ${(t = e.theme.sizes) == null ? void 0 : t.normal};
|
|
755
755
|
font-size: ${(n = e.theme.fonts) == null ? void 0 : n.medium};
|
|
756
756
|
font-weight: normal;
|
|
@@ -760,11 +760,11 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
760
760
|
)}
|
|
761
761
|
}
|
|
762
762
|
> ul {
|
|
763
|
-
${
|
|
763
|
+
${Yn(e)}
|
|
764
764
|
}
|
|
765
|
-
${
|
|
765
|
+
${ye(e)(
|
|
766
766
|
"h1",
|
|
767
|
-
|
|
767
|
+
k`
|
|
768
768
|
display: flex;
|
|
769
769
|
align-items: center;
|
|
770
770
|
i {
|
|
@@ -780,9 +780,9 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
780
780
|
`
|
|
781
781
|
)}
|
|
782
782
|
`;
|
|
783
|
-
},
|
|
784
|
-
var t, n, o, r,
|
|
785
|
-
return
|
|
783
|
+
}, Ms = (e) => {
|
|
784
|
+
var t, n, o, r, s, i;
|
|
785
|
+
return k`
|
|
786
786
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
787
787
|
font-weight: 300;
|
|
788
788
|
line-height: 1.5em;
|
|
@@ -809,7 +809,7 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
809
809
|
a {
|
|
810
810
|
color: ${(o = e.theme.colors) == null ? void 0 : o.link};
|
|
811
811
|
&:focus-visible {
|
|
812
|
-
${
|
|
812
|
+
${qn(e)};
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
|
|
@@ -824,533 +824,30 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
824
824
|
}
|
|
825
825
|
|
|
826
826
|
p:first-child {
|
|
827
|
-
margin: 0 0 ${(
|
|
827
|
+
margin: 0 0 ${(s = e.theme.sizes) == null ? void 0 : s.normal};
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
p:last-child {
|
|
831
|
-
margin: ${(
|
|
831
|
+
margin: ${(i = e.theme.sizes) == null ? void 0 : i.normal} 0 0;
|
|
832
832
|
}
|
|
833
833
|
|
|
834
834
|
p:only-child {
|
|
835
835
|
margin: 0;
|
|
836
836
|
}
|
|
837
837
|
`;
|
|
838
|
-
},
|
|
838
|
+
}, Un = ({
|
|
839
839
|
elementId: e = "humany-portal-elements",
|
|
840
840
|
parent: t = document.body,
|
|
841
841
|
children: n
|
|
842
842
|
}) => {
|
|
843
|
-
const [o] =
|
|
843
|
+
const [o] = C(() => {
|
|
844
844
|
const r = document.getElementById(e) || document.createElement("div");
|
|
845
845
|
return r.id = e, r;
|
|
846
846
|
});
|
|
847
847
|
return w(() => (t.appendChild(o), () => {
|
|
848
848
|
o.childElementCount <= 1 && t.removeChild(o);
|
|
849
|
-
}), [o]),
|
|
850
|
-
},
|
|
851
|
-
var u = l, {
|
|
852
|
-
text: e = "",
|
|
853
|
-
backgroundSize: t = "contain",
|
|
854
|
-
size: n = 12,
|
|
855
|
-
symbol: o = {
|
|
856
|
-
content: "",
|
|
857
|
-
type: ""
|
|
858
|
-
},
|
|
859
|
-
elementStyle: r = {},
|
|
860
|
-
className: i
|
|
861
|
-
} = u, a = S(u, [
|
|
862
|
-
"text",
|
|
863
|
-
"backgroundSize",
|
|
864
|
-
"size",
|
|
865
|
-
"symbol",
|
|
866
|
-
"elementStyle",
|
|
867
|
-
"className"
|
|
868
|
-
]);
|
|
869
|
-
const { type: c, content: m } = o, p = {
|
|
870
|
-
"aria-label": e,
|
|
871
|
-
role: "presentation"
|
|
872
|
-
};
|
|
873
|
-
switch (c) {
|
|
874
|
-
case "Uri": {
|
|
875
|
-
const d = {
|
|
876
|
-
backgroundSize: t,
|
|
877
|
-
backgroundImage: `url('${m}')`,
|
|
878
|
-
backgroundRepeat: "no-repeat",
|
|
879
|
-
backgroundPosition: "center",
|
|
880
|
-
backgroundAttachment: "center"
|
|
881
|
-
};
|
|
882
|
-
return /* @__PURE__ */ s.createElement(
|
|
883
|
-
"i",
|
|
884
|
-
f(f({
|
|
885
|
-
className: M(i, "humany-icon", "humany-custom-icon"),
|
|
886
|
-
title: e,
|
|
887
|
-
style: f(f({}, d), r)
|
|
888
|
-
}, p), a)
|
|
889
|
-
);
|
|
890
|
-
}
|
|
891
|
-
case "Svg": {
|
|
892
|
-
const d = k(f({
|
|
893
|
-
className: M(i, "humany-icon"),
|
|
894
|
-
width: `${n}`,
|
|
895
|
-
fill: "none",
|
|
896
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
897
|
-
}, a), {
|
|
898
|
-
ref: null
|
|
899
|
-
}), h = { minWidth: `${n}` };
|
|
900
|
-
switch (m) {
|
|
901
|
-
case "search":
|
|
902
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 32 30" }, d), /* @__PURE__ */ s.createElement(
|
|
903
|
-
"circle",
|
|
904
|
-
{
|
|
905
|
-
cx: "14.8457",
|
|
906
|
-
cy: "14.5175",
|
|
907
|
-
r: "8.14359",
|
|
908
|
-
transform: "rotate(45 14.8457 14.5175)"
|
|
909
|
-
}
|
|
910
|
-
), /* @__PURE__ */ s.createElement("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" }));
|
|
911
|
-
case "clear":
|
|
912
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 27 27" }, d), /* @__PURE__ */ s.createElement(
|
|
913
|
-
"circle",
|
|
914
|
-
{
|
|
915
|
-
cx: "13.4351",
|
|
916
|
-
cy: "13.435",
|
|
917
|
-
r: "9",
|
|
918
|
-
transform: "rotate(45 13.4351 13.435)",
|
|
919
|
-
stroke: "black"
|
|
920
|
-
}
|
|
921
|
-
), /* @__PURE__ */ s.createElement(
|
|
922
|
-
"line",
|
|
923
|
-
{
|
|
924
|
-
x1: "16.6172",
|
|
925
|
-
y1: "10.2531",
|
|
926
|
-
x2: "10.2533",
|
|
927
|
-
y2: "16.6171",
|
|
928
|
-
stroke: "black"
|
|
929
|
-
}
|
|
930
|
-
), /* @__PURE__ */ s.createElement(
|
|
931
|
-
"line",
|
|
932
|
-
{
|
|
933
|
-
x1: "16.6171",
|
|
934
|
-
y1: "16.617",
|
|
935
|
-
x2: "10.2532",
|
|
936
|
-
y2: "10.2531",
|
|
937
|
-
stroke: "black"
|
|
938
|
-
}
|
|
939
|
-
));
|
|
940
|
-
case "close":
|
|
941
|
-
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" }));
|
|
942
|
-
case "caret-right":
|
|
943
|
-
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" }));
|
|
944
|
-
case "caret-left":
|
|
945
|
-
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" }));
|
|
946
|
-
case "caret-up":
|
|
947
|
-
return /* @__PURE__ */ s.createElement(qn, 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" }));
|
|
948
|
-
case "caret-down":
|
|
949
|
-
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" }));
|
|
950
|
-
case "back":
|
|
951
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 18 18" }, d), /* @__PURE__ */ s.createElement(
|
|
952
|
-
"line",
|
|
953
|
-
{
|
|
954
|
-
y1: "-0.5",
|
|
955
|
-
x2: "11.724",
|
|
956
|
-
y2: "-0.5",
|
|
957
|
-
transform: "matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",
|
|
958
|
-
stroke: "white"
|
|
959
|
-
}
|
|
960
|
-
), /* @__PURE__ */ s.createElement(
|
|
961
|
-
"line",
|
|
962
|
-
{
|
|
963
|
-
y1: "-0.5",
|
|
964
|
-
x2: "11.724",
|
|
965
|
-
y2: "-0.5",
|
|
966
|
-
transform: "matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",
|
|
967
|
-
stroke: "white"
|
|
968
|
-
}
|
|
969
|
-
));
|
|
970
|
-
case "alert":
|
|
971
|
-
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(
|
|
972
|
-
"path",
|
|
973
|
-
{
|
|
974
|
-
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",
|
|
975
|
-
fill: "white"
|
|
976
|
-
}
|
|
977
|
-
));
|
|
978
|
-
case "send":
|
|
979
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 20 17" }, d), /* @__PURE__ */ s.createElement(
|
|
980
|
-
"path",
|
|
981
|
-
{
|
|
982
|
-
d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
|
|
983
|
-
fill: "#A6A6A6",
|
|
984
|
-
stroke: "#A6A6A6",
|
|
985
|
-
strokeWidth: "0.1"
|
|
986
|
-
}
|
|
987
|
-
));
|
|
988
|
-
case "chat":
|
|
989
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "-2 -3 40 40" }, d), /* @__PURE__ */ s.createElement(
|
|
990
|
-
"path",
|
|
991
|
-
{
|
|
992
|
-
strokeWidth: "0",
|
|
993
|
-
fillRule: "evenodd",
|
|
994
|
-
clipRule: "evenodd",
|
|
995
|
-
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",
|
|
996
|
-
fill: "currentColor"
|
|
997
|
-
}
|
|
998
|
-
), /* @__PURE__ */ s.createElement(
|
|
999
|
-
"path",
|
|
1000
|
-
{
|
|
1001
|
-
strokeWidth: "0",
|
|
1002
|
-
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",
|
|
1003
|
-
fill: "currentColor"
|
|
1004
|
-
}
|
|
1005
|
-
), /* @__PURE__ */ s.createElement(
|
|
1006
|
-
"path",
|
|
1007
|
-
{
|
|
1008
|
-
strokeWidth: "0",
|
|
1009
|
-
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",
|
|
1010
|
-
fill: "currentColor"
|
|
1011
|
-
}
|
|
1012
|
-
), /* @__PURE__ */ s.createElement(
|
|
1013
|
-
"path",
|
|
1014
|
-
{
|
|
1015
|
-
strokeWidth: "0",
|
|
1016
|
-
d: "M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",
|
|
1017
|
-
fill: "currentColor"
|
|
1018
|
-
}
|
|
1019
|
-
));
|
|
1020
|
-
case "chat-new":
|
|
1021
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 26 24" }, d), /* @__PURE__ */ s.createElement(
|
|
1022
|
-
"path",
|
|
1023
|
-
{
|
|
1024
|
-
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",
|
|
1025
|
-
fill: "currentColor"
|
|
1026
|
-
}
|
|
1027
|
-
), /* @__PURE__ */ s.createElement(
|
|
1028
|
-
"path",
|
|
1029
|
-
{
|
|
1030
|
-
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",
|
|
1031
|
-
fill: "currentColor"
|
|
1032
|
-
}
|
|
1033
|
-
));
|
|
1034
|
-
case "agent":
|
|
1035
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 36 30" }, d), /* @__PURE__ */ s.createElement(
|
|
1036
|
-
"path",
|
|
1037
|
-
{
|
|
1038
|
-
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",
|
|
1039
|
-
stroke: "white"
|
|
1040
|
-
}
|
|
1041
|
-
), /* @__PURE__ */ s.createElement(
|
|
1042
|
-
"path",
|
|
1043
|
-
{
|
|
1044
|
-
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",
|
|
1045
|
-
stroke: "white"
|
|
1046
|
-
}
|
|
1047
|
-
), /* @__PURE__ */ s.createElement(
|
|
1048
|
-
"path",
|
|
1049
|
-
{
|
|
1050
|
-
d: "M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",
|
|
1051
|
-
stroke: "white"
|
|
1052
|
-
}
|
|
1053
|
-
), /* @__PURE__ */ s.createElement("circle", { cx: "17.4074", cy: "26.9795", r: "2.05271", stroke: "white" }), /* @__PURE__ */ s.createElement(
|
|
1054
|
-
"path",
|
|
1055
|
-
{
|
|
1056
|
-
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",
|
|
1057
|
-
stroke: "white"
|
|
1058
|
-
}
|
|
1059
|
-
));
|
|
1060
|
-
case "minimize":
|
|
1061
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 -10 22 22" }, d), /* @__PURE__ */ s.createElement("path", { d: "M0 1H22", stroke: "white" }));
|
|
1062
|
-
case "sorting":
|
|
1063
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 18 14" }, d), /* @__PURE__ */ s.createElement("path", { d: "M18 1H0M8 13H0M13 7H0" }));
|
|
1064
|
-
case "copy":
|
|
1065
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 19 17" }, d), /* @__PURE__ */ s.createElement(
|
|
1066
|
-
"rect",
|
|
1067
|
-
{
|
|
1068
|
-
x: "0.5",
|
|
1069
|
-
y: "0.5",
|
|
1070
|
-
width: "11.6667",
|
|
1071
|
-
height: "11.6014",
|
|
1072
|
-
rx: "1.5",
|
|
1073
|
-
fill: "white"
|
|
1074
|
-
}
|
|
1075
|
-
), /* @__PURE__ */ s.createElement(
|
|
1076
|
-
"rect",
|
|
1077
|
-
{
|
|
1078
|
-
x: "6.83301",
|
|
1079
|
-
y: "4.89868",
|
|
1080
|
-
width: "11.6667",
|
|
1081
|
-
height: "11.6014",
|
|
1082
|
-
rx: "1.5",
|
|
1083
|
-
fill: "white"
|
|
1084
|
-
}
|
|
1085
|
-
));
|
|
1086
|
-
case "print":
|
|
1087
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 16 17" }, d), /* @__PURE__ */ s.createElement(
|
|
1088
|
-
"path",
|
|
1089
|
-
{
|
|
1090
|
-
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",
|
|
1091
|
-
fill: "white",
|
|
1092
|
-
stroke: "black"
|
|
1093
|
-
}
|
|
1094
|
-
), /* @__PURE__ */ s.createElement(
|
|
1095
|
-
"path",
|
|
1096
|
-
{
|
|
1097
|
-
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",
|
|
1098
|
-
fill: "white",
|
|
1099
|
-
stroke: "black"
|
|
1100
|
-
}
|
|
1101
|
-
), /* @__PURE__ */ s.createElement(
|
|
1102
|
-
"path",
|
|
1103
|
-
{
|
|
1104
|
-
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",
|
|
1105
|
-
fill: "white",
|
|
1106
|
-
stroke: "black"
|
|
1107
|
-
}
|
|
1108
|
-
), /* @__PURE__ */ s.createElement(
|
|
1109
|
-
"line",
|
|
1110
|
-
{
|
|
1111
|
-
x1: "5.29004",
|
|
1112
|
-
y1: "10.8323",
|
|
1113
|
-
x2: "10.7101",
|
|
1114
|
-
y2: "10.8323",
|
|
1115
|
-
stroke: "black"
|
|
1116
|
-
}
|
|
1117
|
-
), /* @__PURE__ */ s.createElement(
|
|
1118
|
-
"line",
|
|
1119
|
-
{
|
|
1120
|
-
x1: "5.29004",
|
|
1121
|
-
y1: "12.5242",
|
|
1122
|
-
x2: "10.7101",
|
|
1123
|
-
y2: "12.5242",
|
|
1124
|
-
stroke: "black"
|
|
1125
|
-
}
|
|
1126
|
-
), /* @__PURE__ */ s.createElement(
|
|
1127
|
-
"line",
|
|
1128
|
-
{
|
|
1129
|
-
x1: "5.29004",
|
|
1130
|
-
y1: "14.2161",
|
|
1131
|
-
x2: "10.7101",
|
|
1132
|
-
y2: "14.2161",
|
|
1133
|
-
stroke: "black"
|
|
1134
|
-
}
|
|
1135
|
-
));
|
|
1136
|
-
case "language":
|
|
1137
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 19 19" }, d), /* @__PURE__ */ s.createElement(
|
|
1138
|
-
"path",
|
|
1139
|
-
{
|
|
1140
|
-
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",
|
|
1141
|
-
stroke: "black"
|
|
1142
|
-
}
|
|
1143
|
-
));
|
|
1144
|
-
case "information":
|
|
1145
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 17 17" }, d), /* @__PURE__ */ s.createElement(
|
|
1146
|
-
"path",
|
|
1147
|
-
{
|
|
1148
|
-
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",
|
|
1149
|
-
fill: "black"
|
|
1150
|
-
}
|
|
1151
|
-
), /* @__PURE__ */ s.createElement(
|
|
1152
|
-
"path",
|
|
1153
|
-
{
|
|
1154
|
-
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",
|
|
1155
|
-
fill: "black"
|
|
1156
|
-
}
|
|
1157
|
-
), /* @__PURE__ */ s.createElement(
|
|
1158
|
-
"path",
|
|
1159
|
-
{
|
|
1160
|
-
fillRule: "evenodd",
|
|
1161
|
-
clipRule: "evenodd",
|
|
1162
|
-
d: "M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",
|
|
1163
|
-
fill: "black"
|
|
1164
|
-
}
|
|
1165
|
-
));
|
|
1166
|
-
case "options":
|
|
1167
|
-
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" }));
|
|
1168
|
-
case "browse":
|
|
1169
|
-
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(
|
|
1170
|
-
"path",
|
|
1171
|
-
{
|
|
1172
|
-
fillRule: "evenodd",
|
|
1173
|
-
clipRule: "evenodd",
|
|
1174
|
-
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",
|
|
1175
|
-
fill: "white"
|
|
1176
|
-
}
|
|
1177
|
-
), /* @__PURE__ */ s.createElement(
|
|
1178
|
-
"path",
|
|
1179
|
-
{
|
|
1180
|
-
fillRule: "evenodd",
|
|
1181
|
-
clipRule: "evenodd",
|
|
1182
|
-
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",
|
|
1183
|
-
fill: "white"
|
|
1184
|
-
}
|
|
1185
|
-
), /* @__PURE__ */ s.createElement(
|
|
1186
|
-
"path",
|
|
1187
|
-
{
|
|
1188
|
-
fillRule: "evenodd",
|
|
1189
|
-
clipRule: "evenodd",
|
|
1190
|
-
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",
|
|
1191
|
-
fill: "white"
|
|
1192
|
-
}
|
|
1193
|
-
), /* @__PURE__ */ s.createElement(
|
|
1194
|
-
"path",
|
|
1195
|
-
{
|
|
1196
|
-
fillRule: "evenodd",
|
|
1197
|
-
clipRule: "evenodd",
|
|
1198
|
-
d: "M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",
|
|
1199
|
-
fill: "white"
|
|
1200
|
-
}
|
|
1201
|
-
));
|
|
1202
|
-
case "video":
|
|
1203
|
-
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(
|
|
1204
|
-
"path",
|
|
1205
|
-
{
|
|
1206
|
-
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",
|
|
1207
|
-
stroke: "currentColor",
|
|
1208
|
-
strokeWidth: "1.5",
|
|
1209
|
-
strokeLinecap: "round",
|
|
1210
|
-
strokeLinejoin: "round"
|
|
1211
|
-
}
|
|
1212
|
-
), /* @__PURE__ */ s.createElement(
|
|
1213
|
-
"path",
|
|
1214
|
-
{
|
|
1215
|
-
fillRule: "evenodd",
|
|
1216
|
-
clipRule: "evenodd",
|
|
1217
|
-
d: "M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",
|
|
1218
|
-
stroke: "currentColor",
|
|
1219
|
-
strokeWidth: "1.5",
|
|
1220
|
-
strokeLinecap: "round",
|
|
1221
|
-
strokeLinejoin: "round"
|
|
1222
|
-
}
|
|
1223
|
-
));
|
|
1224
|
-
case "star-empty":
|
|
1225
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ s.createElement(
|
|
1226
|
-
"path",
|
|
1227
|
-
{
|
|
1228
|
-
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",
|
|
1229
|
-
stroke: "black"
|
|
1230
|
-
}
|
|
1231
|
-
));
|
|
1232
|
-
case "star-filled":
|
|
1233
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 13 12" }, d), /* @__PURE__ */ s.createElement(
|
|
1234
|
-
"path",
|
|
1235
|
-
{
|
|
1236
|
-
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",
|
|
1237
|
-
fill: "black",
|
|
1238
|
-
stroke: "black"
|
|
1239
|
-
}
|
|
1240
|
-
));
|
|
1241
|
-
case "cog-wheel":
|
|
1242
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
|
|
1243
|
-
"path",
|
|
1244
|
-
{
|
|
1245
|
-
fillRule: "evenodd",
|
|
1246
|
-
clipRule: "evenodd",
|
|
1247
|
-
d: "M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",
|
|
1248
|
-
fill: "black"
|
|
1249
|
-
}
|
|
1250
|
-
));
|
|
1251
|
-
case "zoom-in":
|
|
1252
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
|
|
1253
|
-
"path",
|
|
1254
|
-
{
|
|
1255
|
-
fillRule: "evenodd",
|
|
1256
|
-
clipRule: "evenodd",
|
|
1257
|
-
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",
|
|
1258
|
-
fill: "white"
|
|
1259
|
-
}
|
|
1260
|
-
), /* @__PURE__ */ s.createElement(
|
|
1261
|
-
"path",
|
|
1262
|
-
{
|
|
1263
|
-
fillRule: "evenodd",
|
|
1264
|
-
clipRule: "evenodd",
|
|
1265
|
-
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",
|
|
1266
|
-
fill: "white"
|
|
1267
|
-
}
|
|
1268
|
-
), /* @__PURE__ */ s.createElement(
|
|
1269
|
-
"path",
|
|
1270
|
-
{
|
|
1271
|
-
fillRule: "evenodd",
|
|
1272
|
-
clipRule: "evenodd",
|
|
1273
|
-
d: "M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",
|
|
1274
|
-
fill: "white"
|
|
1275
|
-
}
|
|
1276
|
-
));
|
|
1277
|
-
case "zoom-out":
|
|
1278
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
|
|
1279
|
-
"path",
|
|
1280
|
-
{
|
|
1281
|
-
fillRule: "evenodd",
|
|
1282
|
-
clipRule: "evenodd",
|
|
1283
|
-
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",
|
|
1284
|
-
fill: "white"
|
|
1285
|
-
}
|
|
1286
|
-
), /* @__PURE__ */ s.createElement(
|
|
1287
|
-
"path",
|
|
1288
|
-
{
|
|
1289
|
-
fillRule: "evenodd",
|
|
1290
|
-
clipRule: "evenodd",
|
|
1291
|
-
d: "M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",
|
|
1292
|
-
fill: "white"
|
|
1293
|
-
}
|
|
1294
|
-
));
|
|
1295
|
-
case "download":
|
|
1296
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
|
|
1297
|
-
"path",
|
|
1298
|
-
{
|
|
1299
|
-
fillRule: "evenodd",
|
|
1300
|
-
clipRule: "evenodd",
|
|
1301
|
-
d: "M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",
|
|
1302
|
-
fill: "white"
|
|
1303
|
-
}
|
|
1304
|
-
));
|
|
1305
|
-
case "lightbox-close":
|
|
1306
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
|
|
1307
|
-
"path",
|
|
1308
|
-
{
|
|
1309
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1310
|
-
fillRule: "evenodd",
|
|
1311
|
-
clipRule: "evenodd",
|
|
1312
|
-
d: "M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",
|
|
1313
|
-
fill: "white"
|
|
1314
|
-
}
|
|
1315
|
-
));
|
|
1316
|
-
case "pagination-left":
|
|
1317
|
-
return /* @__PURE__ */ s.createElement("svg", f({ viewBox: "0 0 24 24" }, d), /* @__PURE__ */ s.createElement(
|
|
1318
|
-
"path",
|
|
1319
|
-
{
|
|
1320
|
-
fillRule: "evenodd",
|
|
1321
|
-
clipRule: "evenodd",
|
|
1322
|
-
d: "M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",
|
|
1323
|
-
fill: "#222222"
|
|
1324
|
-
}
|
|
1325
|
-
));
|
|
1326
|
-
case "pagination-right":
|
|
1327
|
-
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" }));
|
|
1328
|
-
}
|
|
1329
|
-
return null;
|
|
1330
|
-
}
|
|
1331
|
-
case "FontAwesome":
|
|
1332
|
-
return /* @__PURE__ */ s.createElement(
|
|
1333
|
-
fo,
|
|
1334
|
-
f({
|
|
1335
|
-
className: i,
|
|
1336
|
-
faIcon: m,
|
|
1337
|
-
title: e
|
|
1338
|
-
}, a)
|
|
1339
|
-
);
|
|
1340
|
-
default:
|
|
1341
|
-
case "Text":
|
|
1342
|
-
return e ? /* @__PURE__ */ s.createElement(
|
|
1343
|
-
"i",
|
|
1344
|
-
f(f({
|
|
1345
|
-
className: M(i, "humany-letter-symbol"),
|
|
1346
|
-
title: e
|
|
1347
|
-
}, p), a),
|
|
1348
|
-
e.substring(0, 2)
|
|
1349
|
-
) : null;
|
|
1350
|
-
}
|
|
1351
|
-
}, qn = C.svg`
|
|
1352
|
-
transform: rotate(180deg);
|
|
1353
|
-
`, ae = Kn, Un = {
|
|
849
|
+
}), [o]), At(n, o);
|
|
850
|
+
}, le = Un, Xn = () => /* @__PURE__ */ d.createElement("div", null, "Todo:"), ue = Xn, Zn = {
|
|
1354
851
|
h1: "h1",
|
|
1355
852
|
h2: "h2",
|
|
1356
853
|
h3: "h3",
|
|
@@ -1359,92 +856,92 @@ const tn = (e) => (t) => /* @__PURE__ */ s.createElement(Jo, { attrs: t, htmlBod
|
|
|
1359
856
|
h6: "h6",
|
|
1360
857
|
p: "p",
|
|
1361
858
|
span: "span"
|
|
1362
|
-
},
|
|
1363
|
-
const { typographyVariantMapping: r = {} } =
|
|
1364
|
-
return /* @__PURE__ */
|
|
1365
|
-
},
|
|
1366
|
-
var
|
|
1367
|
-
const
|
|
859
|
+
}, Qn = ({ variant: e, component: t, className: n, children: o }) => {
|
|
860
|
+
const { typographyVariantMapping: r = {} } = Sn(), s = b(b({}, Zn), r), i = t || s[e] || "span";
|
|
861
|
+
return /* @__PURE__ */ d.createElement(Gn, { className: n, as: i }, o);
|
|
862
|
+
}, Gn = y.span``, ie = Qn;
|
|
863
|
+
var Jn = /* @__PURE__ */ ((e) => (e.SlideInLeft = "slide-in-left", e.SlideInRight = "slide-in-right", e.SlideInBottom = "slide-in-bottom", e.SlideInTop = "slide-in-top", e))(Jn || {});
|
|
864
|
+
const eo = 300, to = ({
|
|
1368
865
|
className: e,
|
|
1369
866
|
children: t,
|
|
1370
867
|
header: n,
|
|
1371
868
|
onToggle: o,
|
|
1372
869
|
trigger: r,
|
|
1373
|
-
fullScreen:
|
|
1374
|
-
closeButtonAriaLabel:
|
|
1375
|
-
animation:
|
|
870
|
+
fullScreen: s = !1,
|
|
871
|
+
closeButtonAriaLabel: i,
|
|
872
|
+
animation: c = {
|
|
1376
873
|
type: "slide-in-bottom"
|
|
1377
874
|
}
|
|
1378
875
|
}) => {
|
|
1379
|
-
const { duration:
|
|
876
|
+
const { duration: l = eo } = c, a = _(), u = _(), [h, p] = ht(!0), [m, g] = pt(), x = dt(m), v = _(ae());
|
|
1380
877
|
w(() => {
|
|
1381
|
-
o && o(
|
|
1382
|
-
}, [
|
|
1383
|
-
const
|
|
878
|
+
o && o(m);
|
|
879
|
+
}, [m]);
|
|
880
|
+
const $ = ee("Escape");
|
|
1384
881
|
w(() => {
|
|
1385
|
-
|
|
1386
|
-
}, [
|
|
882
|
+
$ && g(!1);
|
|
883
|
+
}, [$]), K(
|
|
1387
884
|
"click",
|
|
1388
|
-
(
|
|
1389
|
-
const { target:
|
|
1390
|
-
!
|
|
885
|
+
(N) => {
|
|
886
|
+
const { target: D } = N;
|
|
887
|
+
!u.current || !p.current || !D || u.current !== D && p.current !== D && !p.current.contains(D) && !u.current.contains(D) && g(!1);
|
|
1391
888
|
},
|
|
1392
889
|
window
|
|
1393
890
|
);
|
|
1394
|
-
const
|
|
1395
|
-
|
|
891
|
+
const f = Ne(v.current, () => {
|
|
892
|
+
g(!1);
|
|
1396
893
|
});
|
|
1397
|
-
|
|
1398
|
-
|
|
894
|
+
ve("router:changed", () => {
|
|
895
|
+
g(!1);
|
|
1399
896
|
}), w(() => {
|
|
1400
|
-
|
|
1401
|
-
}, [
|
|
1402
|
-
const
|
|
1403
|
-
return /* @__PURE__ */
|
|
1404
|
-
|
|
897
|
+
m && a.current ? a.current.focus() : !m && u.current && x && u.current.focus();
|
|
898
|
+
}, [m, a.current, u.current]);
|
|
899
|
+
const L = ao[c.type];
|
|
900
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
901
|
+
at,
|
|
1405
902
|
{
|
|
1406
|
-
in:
|
|
903
|
+
in: m,
|
|
1407
904
|
className: "humany-drawer-transition",
|
|
1408
905
|
classNames: "humany-drawer-transition",
|
|
1409
906
|
unmountOnExit: !0,
|
|
1410
|
-
timeout:
|
|
907
|
+
timeout: l
|
|
1411
908
|
},
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
|
|
909
|
+
/* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
|
|
910
|
+
L,
|
|
1414
911
|
{
|
|
1415
|
-
duration:
|
|
1416
|
-
fullScreen:
|
|
1417
|
-
className:
|
|
912
|
+
duration: l,
|
|
913
|
+
fullScreen: s,
|
|
914
|
+
className: z(
|
|
1418
915
|
e,
|
|
1419
916
|
"humany-drawer",
|
|
1420
|
-
`humany-drawer-${
|
|
917
|
+
`humany-drawer-${v.current}`
|
|
1421
918
|
),
|
|
1422
919
|
clientHeight: document.body.clientHeight,
|
|
1423
|
-
css:
|
|
1424
|
-
ref:
|
|
920
|
+
css: h,
|
|
921
|
+
ref: p
|
|
1425
922
|
},
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
|
|
923
|
+
/* @__PURE__ */ d.createElement(
|
|
924
|
+
Oe,
|
|
1428
925
|
{
|
|
1429
|
-
onClick: () =>
|
|
926
|
+
onClick: () => g(!1),
|
|
1430
927
|
tabIndex: 0,
|
|
1431
|
-
ref:
|
|
1432
|
-
"aria-label":
|
|
928
|
+
ref: a,
|
|
929
|
+
"aria-label": i
|
|
1433
930
|
},
|
|
1434
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
|
|
1435
932
|
),
|
|
1436
|
-
!!n && /* @__PURE__ */
|
|
933
|
+
!!n && /* @__PURE__ */ d.createElement(no, { variant: "h1", className: "humany-drawer-header" }, n),
|
|
1437
934
|
t
|
|
1438
935
|
))
|
|
1439
|
-
),
|
|
1440
|
-
onClick: (
|
|
1441
|
-
|
|
936
|
+
), d.cloneElement(r, {
|
|
937
|
+
onClick: (N) => {
|
|
938
|
+
g(), f();
|
|
1442
939
|
},
|
|
1443
|
-
ref:
|
|
940
|
+
ref: u,
|
|
1444
941
|
"aria-label": r.props.title,
|
|
1445
|
-
"aria-expanded":
|
|
942
|
+
"aria-expanded": m
|
|
1446
943
|
}));
|
|
1447
|
-
},
|
|
944
|
+
}, Ds = to, $e = y.div`
|
|
1448
945
|
font-family: ${(e) => {
|
|
1449
946
|
var t;
|
|
1450
947
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -1461,7 +958,7 @@ const Gn = 300, Jn = ({
|
|
|
1461
958
|
box-shadow: ${(e) => e.theme.boxShadow};
|
|
1462
959
|
background: #ffffff;
|
|
1463
960
|
${(e) => e.css && e.css}
|
|
1464
|
-
`,
|
|
961
|
+
`, no = y(ie)`
|
|
1465
962
|
padding: ${(e) => {
|
|
1466
963
|
var t;
|
|
1467
964
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
@@ -1484,11 +981,11 @@ const Gn = 300, Jn = ({
|
|
|
1484
981
|
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
1485
982
|
}};
|
|
1486
983
|
line-height: 1.2em;
|
|
1487
|
-
`,
|
|
984
|
+
`, we = (e) => k`
|
|
1488
985
|
transition: ${e.duration}ms;
|
|
1489
|
-
`,
|
|
986
|
+
`, oo = y($e)`
|
|
1490
987
|
max-height: 0;
|
|
1491
|
-
${
|
|
988
|
+
${we}
|
|
1492
989
|
|
|
1493
990
|
&.humany-drawer-transition-enter {
|
|
1494
991
|
max-height: 0;
|
|
@@ -1503,8 +1000,8 @@ const Gn = 300, Jn = ({
|
|
|
1503
1000
|
&.humany-drawer-transition-exit-done {
|
|
1504
1001
|
max-height: 0;
|
|
1505
1002
|
}
|
|
1506
|
-
`,
|
|
1507
|
-
${
|
|
1003
|
+
`, ro = y($e)`
|
|
1004
|
+
${we}
|
|
1508
1005
|
transform: translateX(100%);
|
|
1509
1006
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1510
1007
|
|
|
@@ -1521,8 +1018,8 @@ const Gn = 300, Jn = ({
|
|
|
1521
1018
|
&.humany-drawer-transition-exit-done {
|
|
1522
1019
|
transform: translateX(100%);
|
|
1523
1020
|
}
|
|
1524
|
-
`,
|
|
1525
|
-
${
|
|
1021
|
+
`, so = y($e)`
|
|
1022
|
+
${we}
|
|
1526
1023
|
transform: translateX(-100%);
|
|
1527
1024
|
height: ${(e) => e.fullScreen ? "100%" : "auto"};
|
|
1528
1025
|
|
|
@@ -1539,8 +1036,8 @@ const Gn = 300, Jn = ({
|
|
|
1539
1036
|
&.humany-drawer-transition-exit-done {
|
|
1540
1037
|
transform: translateX(-100%);
|
|
1541
1038
|
}
|
|
1542
|
-
`,
|
|
1543
|
-
${
|
|
1039
|
+
`, io = y($e)`
|
|
1040
|
+
${we}
|
|
1544
1041
|
bottom: unset;
|
|
1545
1042
|
top: 0;
|
|
1546
1043
|
height: 0;
|
|
@@ -1558,91 +1055,91 @@ const Gn = 300, Jn = ({
|
|
|
1558
1055
|
&.humany-drawer-transition-exit-done {
|
|
1559
1056
|
height: 0;
|
|
1560
1057
|
}
|
|
1561
|
-
`,
|
|
1562
|
-
["slide-in-bottom"]:
|
|
1563
|
-
["slide-in-right"]:
|
|
1564
|
-
["slide-in-left"]:
|
|
1565
|
-
["slide-in-top"]:
|
|
1566
|
-
},
|
|
1567
|
-
const [o, r] =
|
|
1568
|
-
(
|
|
1569
|
-
if (
|
|
1570
|
-
const
|
|
1571
|
-
r(Math.max(document.body.clientWidth -
|
|
1058
|
+
`, ao = {
|
|
1059
|
+
["slide-in-bottom"]: oo,
|
|
1060
|
+
["slide-in-right"]: ro,
|
|
1061
|
+
["slide-in-left"]: so,
|
|
1062
|
+
["slide-in-top"]: io
|
|
1063
|
+
}, co = (e, t, n) => {
|
|
1064
|
+
const [o, r] = C(0), [s, i] = C(0), c = M(
|
|
1065
|
+
(l, a) => {
|
|
1066
|
+
if (l.preventDefault(), a) {
|
|
1067
|
+
const u = a.getBoundingClientRect();
|
|
1068
|
+
r(Math.max(document.body.clientWidth - u.right, 1)), i(u.bottom + window.scrollY);
|
|
1572
1069
|
}
|
|
1573
1070
|
},
|
|
1574
|
-
[o,
|
|
1071
|
+
[o, s, r, i]
|
|
1575
1072
|
);
|
|
1576
1073
|
return w(() => {
|
|
1577
1074
|
if (!n || !e)
|
|
1578
1075
|
return;
|
|
1579
|
-
const
|
|
1076
|
+
const l = n.getBoundingClientRect(), a = {
|
|
1580
1077
|
x: o,
|
|
1581
|
-
y:
|
|
1078
|
+
y: s
|
|
1582
1079
|
};
|
|
1583
|
-
|
|
1584
|
-
}, [n, e, t]), [{ x: o, y:
|
|
1585
|
-
},
|
|
1586
|
-
(
|
|
1587
|
-
var
|
|
1588
|
-
const
|
|
1589
|
-
|
|
1590
|
-
const
|
|
1080
|
+
l.left < 0 && (a.x = 0), l.bottom > window.innerHeight && (a.y = 0), a.x !== o && r(a.x), a.y !== s && i(a.y);
|
|
1081
|
+
}, [n, e, t]), [{ x: o, y: s }, c];
|
|
1082
|
+
}, gt = co, lo = d.forwardRef(
|
|
1083
|
+
(i, s) => {
|
|
1084
|
+
var c = i, { className: e = "", children: t = null, trigger: n, closeButtonAriaLabel: o } = c, r = T(c, ["className", "children", "trigger", "closeButtonAriaLabel"]);
|
|
1085
|
+
const l = _(), a = _(), u = _();
|
|
1086
|
+
Te(s, () => u.current, [u.current]);
|
|
1087
|
+
const h = _(ae()), [p, m] = C(!1), g = dt(p), [{ x, y: v }, $] = gt(p, h.current, u.current), f = ee("Escape");
|
|
1591
1088
|
w(() => {
|
|
1592
|
-
|
|
1593
|
-
}, [
|
|
1594
|
-
|
|
1595
|
-
}, [
|
|
1089
|
+
f && m(!1);
|
|
1090
|
+
}, [f]), w(() => {
|
|
1091
|
+
p && l.current ? l.current.focus() : !p && a.current && g && a.current.focus();
|
|
1092
|
+
}, [p, l.current, a.current]), K(
|
|
1596
1093
|
"click",
|
|
1597
|
-
(
|
|
1598
|
-
const { target:
|
|
1599
|
-
!
|
|
1094
|
+
(D) => {
|
|
1095
|
+
const { target: V } = D;
|
|
1096
|
+
!u.current || !V || u.current !== V && !u.current.contains(V) && m(!1);
|
|
1600
1097
|
},
|
|
1601
1098
|
window
|
|
1602
|
-
),
|
|
1603
|
-
|
|
1099
|
+
), ve("router:changed", () => {
|
|
1100
|
+
m(!1);
|
|
1604
1101
|
});
|
|
1605
|
-
const
|
|
1606
|
-
|
|
1607
|
-
}),
|
|
1608
|
-
(
|
|
1609
|
-
|
|
1102
|
+
const L = Ne(h.current, () => {
|
|
1103
|
+
m(!1);
|
|
1104
|
+
}), N = M(
|
|
1105
|
+
(D) => {
|
|
1106
|
+
D.stopPropagation(), $(D, a.current), m(!p), L();
|
|
1610
1107
|
},
|
|
1611
|
-
[
|
|
1108
|
+
[L, $, m]
|
|
1612
1109
|
);
|
|
1613
|
-
return /* @__PURE__ */
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
className:
|
|
1110
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, p && /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
|
|
1111
|
+
uo,
|
|
1112
|
+
S(b({
|
|
1113
|
+
className: z(
|
|
1617
1114
|
"humany-dropdown",
|
|
1618
|
-
`humany-dropdown-${
|
|
1115
|
+
`humany-dropdown-${h.current}`,
|
|
1619
1116
|
e
|
|
1620
1117
|
)
|
|
1621
1118
|
}, r), {
|
|
1622
1119
|
x,
|
|
1623
|
-
y:
|
|
1624
|
-
ref:
|
|
1120
|
+
y: v,
|
|
1121
|
+
ref: u
|
|
1625
1122
|
}),
|
|
1626
|
-
/* @__PURE__ */
|
|
1627
|
-
|
|
1123
|
+
/* @__PURE__ */ d.createElement(
|
|
1124
|
+
Oe,
|
|
1628
1125
|
{
|
|
1629
|
-
onClick: () =>
|
|
1126
|
+
onClick: () => m(!1),
|
|
1630
1127
|
tabIndex: 0,
|
|
1631
|
-
ref:
|
|
1128
|
+
ref: l,
|
|
1632
1129
|
"aria-label": o
|
|
1633
1130
|
},
|
|
1634
|
-
/* @__PURE__ */
|
|
1131
|
+
/* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
|
|
1635
1132
|
),
|
|
1636
1133
|
t
|
|
1637
|
-
)),
|
|
1638
|
-
onClick:
|
|
1639
|
-
ref:
|
|
1134
|
+
)), d.cloneElement(n, {
|
|
1135
|
+
onClick: N,
|
|
1136
|
+
ref: a,
|
|
1640
1137
|
"aria-label": n.props.title,
|
|
1641
|
-
"aria-expanded":
|
|
1138
|
+
"aria-expanded": p
|
|
1642
1139
|
}));
|
|
1643
1140
|
}
|
|
1644
|
-
),
|
|
1645
|
-
${
|
|
1141
|
+
), Ts = lo, uo = y.div`
|
|
1142
|
+
${ft}
|
|
1646
1143
|
padding: ${(e) => {
|
|
1647
1144
|
var t;
|
|
1648
1145
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -1656,75 +1153,95 @@ const Gn = 300, Jn = ({
|
|
|
1656
1153
|
let t = "";
|
|
1657
1154
|
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;
|
|
1658
1155
|
}};
|
|
1659
|
-
`,
|
|
1660
|
-
var e =
|
|
1661
|
-
return /* @__PURE__ */
|
|
1662
|
-
},
|
|
1156
|
+
`, mo = (t) => {
|
|
1157
|
+
var e = T(t, []);
|
|
1158
|
+
return /* @__PURE__ */ d.createElement(po, b({}, e));
|
|
1159
|
+
}, ho = mo, po = y.div`
|
|
1663
1160
|
display: none;
|
|
1664
|
-
`,
|
|
1665
|
-
(
|
|
1666
|
-
var
|
|
1667
|
-
return /* @__PURE__ */
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
className:
|
|
1161
|
+
`, zs = B(
|
|
1162
|
+
(i, s) => {
|
|
1163
|
+
var c = i, { children: e, columns: t, gap: n, className: o } = c, r = T(c, ["children", "columns", "gap", "className"]);
|
|
1164
|
+
return /* @__PURE__ */ d.createElement(
|
|
1165
|
+
fo,
|
|
1166
|
+
S(b(b({
|
|
1167
|
+
className: z(o, "humany-grid"),
|
|
1671
1168
|
"data-columns": t,
|
|
1672
1169
|
"data-gap": n
|
|
1673
|
-
},
|
|
1674
|
-
ref:
|
|
1170
|
+
}, tn(r)), W(r)), {
|
|
1171
|
+
ref: s
|
|
1675
1172
|
}),
|
|
1676
1173
|
e
|
|
1677
1174
|
);
|
|
1678
1175
|
}
|
|
1679
|
-
),
|
|
1176
|
+
), fo = y.div`
|
|
1680
1177
|
display: grid;
|
|
1681
1178
|
grid-template-columns: repeat(${(e) => e["data-columns"]}, 1fr);
|
|
1682
1179
|
grid-gap: ${(e) => e["data-gap"]};
|
|
1683
1180
|
justify-content: center;
|
|
1684
1181
|
grid-auto-rows: max-content;
|
|
1685
|
-
${
|
|
1686
|
-
`,
|
|
1687
|
-
(
|
|
1688
|
-
var
|
|
1689
|
-
const
|
|
1182
|
+
${en}
|
|
1183
|
+
`, yt = B(
|
|
1184
|
+
(s, r) => {
|
|
1185
|
+
var i = s, { htmlParseInstruction: e = null, className: t, html: n } = i, o = T(i, ["htmlParseInstruction", "className", "html"]);
|
|
1186
|
+
const c = H(), [l, a] = C();
|
|
1690
1187
|
return w(() => {
|
|
1691
|
-
const
|
|
1692
|
-
transform:
|
|
1693
|
-
}),
|
|
1694
|
-
|
|
1695
|
-
}, [n, e]), /* @__PURE__ */
|
|
1188
|
+
const u = sn(c, n), h = S(b(b({}, u), e), {
|
|
1189
|
+
transform: b(b({}, u.transform), e == null ? void 0 : e.transform)
|
|
1190
|
+
}), p = on(n, h);
|
|
1191
|
+
a(p);
|
|
1192
|
+
}, [n, e]), /* @__PURE__ */ d.createElement(
|
|
1696
1193
|
"div",
|
|
1697
|
-
|
|
1698
|
-
className:
|
|
1699
|
-
},
|
|
1194
|
+
S(b({
|
|
1195
|
+
className: z(t, "humany-html")
|
|
1196
|
+
}, W(o)), {
|
|
1700
1197
|
ref: r
|
|
1701
1198
|
}),
|
|
1702
|
-
|
|
1199
|
+
l
|
|
1703
1200
|
);
|
|
1704
1201
|
}
|
|
1705
|
-
)
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
"
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
|
|
1202
|
+
);
|
|
1203
|
+
var go = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, xe = (e, t, n, o) => {
|
|
1204
|
+
for (var r = o > 1 ? void 0 : o ? yo(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
1205
|
+
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
1206
|
+
return o && r && go(t, n, r), r;
|
|
1207
|
+
};
|
|
1208
|
+
let ne = class extends ce {
|
|
1209
|
+
constructor() {
|
|
1210
|
+
super(), this.role = "presentation";
|
|
1211
|
+
}
|
|
1212
|
+
render() {
|
|
1213
|
+
const e = `fa fa-${this.faIcon}`;
|
|
1214
|
+
return I`
|
|
1215
|
+
<link
|
|
1216
|
+
href="https://flinck-test.humany.cc/ClientLibraries/Supplementary/font-awesome-4.7.0/css/font-awesome.min.css"
|
|
1217
|
+
rel="stylesheet"
|
|
1218
|
+
/>
|
|
1219
|
+
<i class=${e} title=${this.title} role=${this.role} />
|
|
1220
|
+
`;
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
ne.styles = [
|
|
1224
|
+
te`
|
|
1225
|
+
:host {
|
|
1226
|
+
display: block;
|
|
1227
|
+
}
|
|
1228
|
+
`
|
|
1229
|
+
];
|
|
1230
|
+
xe([
|
|
1231
|
+
O({ type: String })
|
|
1232
|
+
], ne.prototype, "faIcon", 2);
|
|
1233
|
+
xe([
|
|
1234
|
+
O({ type: String })
|
|
1235
|
+
], ne.prototype, "title", 2);
|
|
1236
|
+
xe([
|
|
1237
|
+
O({ type: String })
|
|
1238
|
+
], ne.prototype, "role", 2);
|
|
1239
|
+
ne = xe([
|
|
1240
|
+
Vt("ui-icon")
|
|
1241
|
+
], ne);
|
|
1242
|
+
const Ls = B(
|
|
1243
|
+
(h, u) => {
|
|
1244
|
+
var p = h, {
|
|
1728
1245
|
className: e = "",
|
|
1729
1246
|
autoFocus: t = !1,
|
|
1730
1247
|
onFocusChange: n = () => {
|
|
@@ -1733,12 +1250,12 @@ const Gn = 300, Jn = ({
|
|
|
1733
1250
|
},
|
|
1734
1251
|
onEscape: r = () => {
|
|
1735
1252
|
},
|
|
1736
|
-
selectAllOnFocus:
|
|
1737
|
-
onChange:
|
|
1253
|
+
selectAllOnFocus: s,
|
|
1254
|
+
onChange: i = () => {
|
|
1738
1255
|
},
|
|
1739
|
-
disabled:
|
|
1740
|
-
type:
|
|
1741
|
-
} =
|
|
1256
|
+
disabled: c = !1,
|
|
1257
|
+
type: l
|
|
1258
|
+
} = p, a = T(p, [
|
|
1742
1259
|
"className",
|
|
1743
1260
|
"autoFocus",
|
|
1744
1261
|
"onFocusChange",
|
|
@@ -1749,84 +1266,84 @@ const Gn = 300, Jn = ({
|
|
|
1749
1266
|
"disabled",
|
|
1750
1267
|
"type"
|
|
1751
1268
|
]);
|
|
1752
|
-
const [
|
|
1753
|
-
|
|
1754
|
-
var
|
|
1755
|
-
t && ((
|
|
1756
|
-
}, [t,
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1759
|
-
},
|
|
1760
|
-
disabled:
|
|
1269
|
+
const [m, g] = C(t), x = _();
|
|
1270
|
+
Te(u, () => x.current), w(() => {
|
|
1271
|
+
var f;
|
|
1272
|
+
t && ((f = x == null ? void 0 : x.current) == null || f.focus());
|
|
1273
|
+
}, [t, u, x]);
|
|
1274
|
+
const v = (f, L) => {
|
|
1275
|
+
g(f), n && n(f), s && f && L.target.select();
|
|
1276
|
+
}, $ = S(b({}, W(a)), {
|
|
1277
|
+
disabled: c,
|
|
1761
1278
|
autoFocus: t,
|
|
1762
|
-
type:
|
|
1763
|
-
onKeyDown: (
|
|
1764
|
-
|
|
1279
|
+
type: l,
|
|
1280
|
+
onKeyDown: (f) => {
|
|
1281
|
+
f.key === "Enter" && m && o(f), f.key === "Escape" && m && r(f);
|
|
1765
1282
|
},
|
|
1766
|
-
onFocus: (
|
|
1767
|
-
onBlur: (
|
|
1768
|
-
onChange: (
|
|
1769
|
-
className:
|
|
1770
|
-
"data-type":
|
|
1283
|
+
onFocus: (f) => v(!0, f),
|
|
1284
|
+
onBlur: (f) => v(!1, f),
|
|
1285
|
+
onChange: (f) => i(f.target.value || ""),
|
|
1286
|
+
className: z(e, "humany-input"),
|
|
1287
|
+
"data-type": l
|
|
1771
1288
|
});
|
|
1772
|
-
return
|
|
1289
|
+
return l !== "textarea" ? /* @__PURE__ */ d.createElement(
|
|
1773
1290
|
"input",
|
|
1774
|
-
|
|
1291
|
+
S(b({}, $), {
|
|
1775
1292
|
ref: x
|
|
1776
1293
|
})
|
|
1777
|
-
) : /* @__PURE__ */
|
|
1294
|
+
) : /* @__PURE__ */ d.createElement(
|
|
1778
1295
|
"textarea",
|
|
1779
|
-
|
|
1296
|
+
S(b({}, $), {
|
|
1780
1297
|
ref: x
|
|
1781
1298
|
})
|
|
1782
1299
|
);
|
|
1783
1300
|
}
|
|
1784
|
-
),
|
|
1785
|
-
(
|
|
1786
|
-
var
|
|
1787
|
-
return /* @__PURE__ */
|
|
1301
|
+
), bo = B(
|
|
1302
|
+
(i, s) => {
|
|
1303
|
+
var c = i, { className: e, items: t, renderItem: n, renderLi: o = !1 } = c, r = T(c, ["className", "items", "renderItem", "renderLi"]);
|
|
1304
|
+
return /* @__PURE__ */ d.createElement(
|
|
1788
1305
|
"ul",
|
|
1789
|
-
|
|
1790
|
-
className:
|
|
1306
|
+
S(b({
|
|
1307
|
+
className: z(e, "humany-list"),
|
|
1791
1308
|
"data-item-count": t.length
|
|
1792
|
-
},
|
|
1793
|
-
ref:
|
|
1309
|
+
}, W(r)), {
|
|
1310
|
+
ref: s
|
|
1794
1311
|
}),
|
|
1795
1312
|
t.map(
|
|
1796
|
-
(
|
|
1313
|
+
(l, a, u) => o ? /* @__PURE__ */ d.createElement("li", { className: "humany-list-item", key: l.id || a }, n(l, a, u)) : n(l, a, u)
|
|
1797
1314
|
)
|
|
1798
1315
|
);
|
|
1799
1316
|
}
|
|
1800
|
-
),
|
|
1801
|
-
(
|
|
1802
|
-
var
|
|
1803
|
-
return /* @__PURE__ */
|
|
1317
|
+
), vo = B(
|
|
1318
|
+
(l, c) => {
|
|
1319
|
+
var a = l, { text: e, html: t, header: n, className: o, htmlParseInstruction: r, symbol: s } = a, i = T(a, ["text", "html", "header", "className", "htmlParseInstruction", "symbol"]);
|
|
1320
|
+
return /* @__PURE__ */ d.createElement(
|
|
1804
1321
|
"div",
|
|
1805
|
-
|
|
1806
|
-
className:
|
|
1807
|
-
},
|
|
1808
|
-
ref:
|
|
1322
|
+
S(b({
|
|
1323
|
+
className: z(o, "humany-paragraph")
|
|
1324
|
+
}, W(i)), {
|
|
1325
|
+
ref: c
|
|
1809
1326
|
}),
|
|
1810
|
-
n ? /* @__PURE__ */
|
|
1811
|
-
t ? /* @__PURE__ */
|
|
1812
|
-
e ? /* @__PURE__ */
|
|
1327
|
+
n ? /* @__PURE__ */ d.createElement(ie, { variant: "h1" }, s ? /* @__PURE__ */ d.createElement(ue, { symbol: s }) : null, n) : null,
|
|
1328
|
+
t ? /* @__PURE__ */ d.createElement(yt, { html: t, htmlParseInstruction: r }) : null,
|
|
1329
|
+
e ? /* @__PURE__ */ d.createElement(Re, null, e) : null
|
|
1813
1330
|
);
|
|
1814
1331
|
}
|
|
1815
|
-
),
|
|
1816
|
-
(
|
|
1817
|
-
var
|
|
1332
|
+
), $o = B(
|
|
1333
|
+
(m, p) => {
|
|
1334
|
+
var g = m, {
|
|
1818
1335
|
header: e,
|
|
1819
1336
|
customHeader: t,
|
|
1820
1337
|
text: n,
|
|
1821
1338
|
html: o,
|
|
1822
1339
|
className: r,
|
|
1823
|
-
children:
|
|
1824
|
-
symbol:
|
|
1825
|
-
items:
|
|
1826
|
-
renderItem:
|
|
1827
|
-
renderLi:
|
|
1828
|
-
ulProps:
|
|
1829
|
-
} =
|
|
1340
|
+
children: s,
|
|
1341
|
+
symbol: i,
|
|
1342
|
+
items: c,
|
|
1343
|
+
renderItem: l,
|
|
1344
|
+
renderLi: a,
|
|
1345
|
+
ulProps: u
|
|
1346
|
+
} = g, h = T(g, [
|
|
1830
1347
|
"header",
|
|
1831
1348
|
"customHeader",
|
|
1832
1349
|
"text",
|
|
@@ -1839,120 +1356,120 @@ const Gn = 300, Jn = ({
|
|
|
1839
1356
|
"renderLi",
|
|
1840
1357
|
"ulProps"
|
|
1841
1358
|
]);
|
|
1842
|
-
return /* @__PURE__ */
|
|
1359
|
+
return /* @__PURE__ */ d.createElement(
|
|
1843
1360
|
"div",
|
|
1844
|
-
|
|
1845
|
-
className:
|
|
1846
|
-
"data-item-count":
|
|
1847
|
-
},
|
|
1848
|
-
ref:
|
|
1361
|
+
S(b({
|
|
1362
|
+
className: z(r, "humany-item-list"),
|
|
1363
|
+
"data-item-count": c.length
|
|
1364
|
+
}, W(h)), {
|
|
1365
|
+
ref: p
|
|
1849
1366
|
}),
|
|
1850
|
-
t || (e || n || o ? /* @__PURE__ */
|
|
1851
|
-
|
|
1852
|
-
|
|
1367
|
+
t || (e || n || o ? /* @__PURE__ */ d.createElement(vo, { symbol: i, header: e, text: n, html: o }) : null),
|
|
1368
|
+
c.length ? /* @__PURE__ */ d.createElement(bo, b({ items: c, renderItem: l, renderLi: a }, u)) : null,
|
|
1369
|
+
s
|
|
1853
1370
|
);
|
|
1854
1371
|
}
|
|
1855
|
-
),
|
|
1372
|
+
), wo = ({
|
|
1856
1373
|
className: e = "",
|
|
1857
1374
|
tree: t,
|
|
1858
1375
|
renderItem: n,
|
|
1859
1376
|
rootItem: o,
|
|
1860
1377
|
renderUnselected: r = !0,
|
|
1861
|
-
renderEmpty:
|
|
1862
|
-
ulProps:
|
|
1863
|
-
liProps:
|
|
1378
|
+
renderEmpty: s = !0,
|
|
1379
|
+
ulProps: i,
|
|
1380
|
+
liProps: c
|
|
1864
1381
|
}) => {
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1382
|
+
const l = (h) => !a(h), a = (h) => !h || h.length < 1 ? !0 : !h.some((p) => !!p.selected), u = (h, p) => /* @__PURE__ */ d.createElement(
|
|
1383
|
+
$o,
|
|
1867
1384
|
{
|
|
1868
|
-
className:
|
|
1869
|
-
items:
|
|
1870
|
-
ulProps:
|
|
1871
|
-
renderItem: (
|
|
1872
|
-
const { id:
|
|
1873
|
-
return !
|
|
1385
|
+
className: z(`humany-item-tree-level-${p}`),
|
|
1386
|
+
items: h,
|
|
1387
|
+
ulProps: i,
|
|
1388
|
+
renderItem: (m) => {
|
|
1389
|
+
const { id: g, selected: x, items: v, matches: $ } = m, f = x && a(v);
|
|
1390
|
+
return !s && !$ ? null : /* @__PURE__ */ d.createElement(
|
|
1874
1391
|
"li",
|
|
1875
|
-
|
|
1876
|
-
key:
|
|
1392
|
+
S(b({}, W(c)), {
|
|
1393
|
+
key: g,
|
|
1877
1394
|
className: "humany-item-tree-item"
|
|
1878
1395
|
}),
|
|
1879
|
-
n && n(
|
|
1880
|
-
|
|
1396
|
+
n && n(m, p, f),
|
|
1397
|
+
v && (r || f) && u(v, p + 1)
|
|
1881
1398
|
);
|
|
1882
1399
|
}
|
|
1883
1400
|
}
|
|
1884
1401
|
);
|
|
1885
|
-
return /* @__PURE__ */
|
|
1886
|
-
},
|
|
1887
|
-
(
|
|
1888
|
-
var
|
|
1889
|
-
}, name: n = "", to: o = "", params: r = {}, children:
|
|
1890
|
-
const
|
|
1891
|
-
if (!
|
|
1402
|
+
return /* @__PURE__ */ d.createElement("div", { className: z(e, "humany-item-tree") }, o && o(!l(t || [])), t && u(t, 1));
|
|
1403
|
+
}, Ps = wo, xo = B(
|
|
1404
|
+
(l, c) => {
|
|
1405
|
+
var a = l, { className: e, onClick: t = () => {
|
|
1406
|
+
}, name: n = "", to: o = "", params: r = {}, children: s } = a, i = T(a, ["className", "onClick", "name", "to", "params", "children"]);
|
|
1407
|
+
const u = mt(), h = H();
|
|
1408
|
+
if (!u)
|
|
1892
1409
|
return null;
|
|
1893
|
-
let
|
|
1894
|
-
const
|
|
1410
|
+
let p = "";
|
|
1411
|
+
const m = S(b({
|
|
1895
1412
|
onClick: t,
|
|
1896
|
-
className:
|
|
1897
|
-
to:
|
|
1898
|
-
innerRef:
|
|
1899
|
-
},
|
|
1413
|
+
className: z(e, "humany-route-link"),
|
|
1414
|
+
to: p,
|
|
1415
|
+
innerRef: c
|
|
1416
|
+
}, i), {
|
|
1900
1417
|
ref: null
|
|
1901
1418
|
});
|
|
1902
1419
|
if (n) {
|
|
1903
|
-
if (!(
|
|
1904
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
onClick: (
|
|
1908
|
-
t(
|
|
1420
|
+
if (!(u.routes || []).find(($) => $.name === n))
|
|
1421
|
+
return process.env.NODE_ENV !== "production" && Ee.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ d.createElement(
|
|
1422
|
+
Ce,
|
|
1423
|
+
S(b({}, m), {
|
|
1424
|
+
onClick: ($) => {
|
|
1425
|
+
t($), $.preventDefault(), process.env.NODE_ENV !== "production" && Ee.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
1909
1426
|
}
|
|
1910
1427
|
}),
|
|
1911
|
-
|
|
1428
|
+
s
|
|
1912
1429
|
);
|
|
1913
|
-
const
|
|
1430
|
+
const v = Object.keys(r).reduce(($, f) => ($[f] = typeof r[f] == "string" ? encodeURIComponent(r[f]) : r[f], $), {});
|
|
1914
1431
|
try {
|
|
1915
|
-
|
|
1916
|
-
} catch (
|
|
1917
|
-
return /* @__PURE__ */
|
|
1432
|
+
p = u.generate(n, v || {});
|
|
1433
|
+
} catch ($) {
|
|
1434
|
+
return /* @__PURE__ */ d.createElement(Ce, b({}, m), s);
|
|
1918
1435
|
}
|
|
1919
|
-
|
|
1920
|
-
} else if (o &&
|
|
1921
|
-
|
|
1436
|
+
p && u.settings.mode && u.settings.mode === Ze.browser && p[0] !== "/" && (p = `/${p}`);
|
|
1437
|
+
} else if (o && u.history)
|
|
1438
|
+
p = u.history.createHref({
|
|
1922
1439
|
hash: "",
|
|
1923
1440
|
pathname: o,
|
|
1924
1441
|
search: "",
|
|
1925
1442
|
state: void 0
|
|
1926
1443
|
});
|
|
1927
1444
|
else
|
|
1928
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1445
|
+
return process.env.NODE_ENV !== "production" && Ee.warn(
|
|
1929
1446
|
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
1930
1447
|
), null;
|
|
1931
|
-
if (
|
|
1932
|
-
const
|
|
1933
|
-
|
|
1448
|
+
if (u.settings && u.settings.mode === Ze.scopedHash) {
|
|
1449
|
+
const g = h.get("$widget").name;
|
|
1450
|
+
p = Kt(p, g);
|
|
1934
1451
|
}
|
|
1935
|
-
return
|
|
1452
|
+
return m.as ? /* @__PURE__ */ d.createElement(Eo, S(b({}, m), { as: m.as }), s) : /* @__PURE__ */ d.createElement(Ce, S(b({}, m), { to: p }), s);
|
|
1936
1453
|
}
|
|
1937
|
-
),
|
|
1938
|
-
(x,
|
|
1939
|
-
var
|
|
1454
|
+
), Eo = y.span``, Ie = B(
|
|
1455
|
+
(x, g) => {
|
|
1456
|
+
var v = x, {
|
|
1940
1457
|
className: e,
|
|
1941
1458
|
disabled: t = !1,
|
|
1942
1459
|
role: n = "link",
|
|
1943
1460
|
tabIndex: o = 0,
|
|
1944
1461
|
onClick: r = () => {
|
|
1945
1462
|
},
|
|
1946
|
-
onKeyDown:
|
|
1463
|
+
onKeyDown: s = () => {
|
|
1947
1464
|
},
|
|
1948
|
-
title:
|
|
1949
|
-
as:
|
|
1950
|
-
href:
|
|
1951
|
-
children:
|
|
1952
|
-
target:
|
|
1953
|
-
routeName:
|
|
1954
|
-
params:
|
|
1955
|
-
} =
|
|
1465
|
+
title: i,
|
|
1466
|
+
as: c,
|
|
1467
|
+
href: l,
|
|
1468
|
+
children: a,
|
|
1469
|
+
target: u,
|
|
1470
|
+
routeName: h,
|
|
1471
|
+
params: p
|
|
1472
|
+
} = v, m = T(v, [
|
|
1956
1473
|
"className",
|
|
1957
1474
|
"disabled",
|
|
1958
1475
|
"role",
|
|
@@ -1967,79 +1484,79 @@ const Gn = 300, Jn = ({
|
|
|
1967
1484
|
"routeName",
|
|
1968
1485
|
"params"
|
|
1969
1486
|
]);
|
|
1970
|
-
const
|
|
1971
|
-
title:
|
|
1487
|
+
const $ = {
|
|
1488
|
+
title: i,
|
|
1972
1489
|
disabled: t,
|
|
1973
1490
|
role: n,
|
|
1974
|
-
as:
|
|
1491
|
+
as: c,
|
|
1975
1492
|
tabIndex: o,
|
|
1976
|
-
className:
|
|
1977
|
-
onClick: (
|
|
1978
|
-
if (
|
|
1979
|
-
|
|
1493
|
+
className: z(e, "humany-link", [!!t, "humany-disabled"]),
|
|
1494
|
+
onClick: (f) => {
|
|
1495
|
+
if (f.persist(), t) {
|
|
1496
|
+
f.preventDefault();
|
|
1980
1497
|
return;
|
|
1981
1498
|
}
|
|
1982
|
-
r(
|
|
1499
|
+
r(f);
|
|
1983
1500
|
},
|
|
1984
|
-
onKeyDown: (
|
|
1985
|
-
if (
|
|
1986
|
-
|
|
1501
|
+
onKeyDown: (f) => {
|
|
1502
|
+
if (f.persist(), t) {
|
|
1503
|
+
f.key !== "Tab" && f.preventDefault();
|
|
1987
1504
|
return;
|
|
1988
1505
|
}
|
|
1989
|
-
|
|
1506
|
+
s(f);
|
|
1990
1507
|
}
|
|
1991
1508
|
};
|
|
1992
|
-
return
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
name:
|
|
1996
|
-
params:
|
|
1997
|
-
},
|
|
1998
|
-
ref:
|
|
1509
|
+
return h ? /* @__PURE__ */ d.createElement(
|
|
1510
|
+
Co,
|
|
1511
|
+
S(b(b({
|
|
1512
|
+
name: h,
|
|
1513
|
+
params: p
|
|
1514
|
+
}, $), W(m)), {
|
|
1515
|
+
ref: g
|
|
1999
1516
|
}),
|
|
2000
|
-
|
|
2001
|
-
) : /* @__PURE__ */
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
href:
|
|
2005
|
-
target:
|
|
2006
|
-
},
|
|
2007
|
-
ref:
|
|
1517
|
+
a
|
|
1518
|
+
) : /* @__PURE__ */ d.createElement(
|
|
1519
|
+
ko,
|
|
1520
|
+
S(b(b({
|
|
1521
|
+
href: l,
|
|
1522
|
+
target: u
|
|
1523
|
+
}, $), W(m)), {
|
|
1524
|
+
ref: g
|
|
2008
1525
|
}),
|
|
2009
|
-
|
|
1526
|
+
a
|
|
2010
1527
|
);
|
|
2011
1528
|
}
|
|
2012
|
-
),
|
|
1529
|
+
), Co = y(xo)`
|
|
2013
1530
|
${(e) => e.disabled ? `
|
|
2014
1531
|
pointer-events: none;
|
|
2015
1532
|
opacity: .7;
|
|
2016
1533
|
` : "cursor: pointer;"}
|
|
2017
|
-
`,
|
|
1534
|
+
`, ko = y.a`
|
|
2018
1535
|
${(e) => e.disabled ? `
|
|
2019
1536
|
pointer-events: none;
|
|
2020
1537
|
opacity: .7;
|
|
2021
1538
|
` : "cursor: pointer;"}
|
|
2022
|
-
`,
|
|
2023
|
-
var
|
|
1539
|
+
`, So = (s) => {
|
|
1540
|
+
var i = s, {
|
|
2024
1541
|
visible: e,
|
|
2025
1542
|
duration: t = 500,
|
|
2026
1543
|
children: n,
|
|
2027
1544
|
onClick: o = () => {
|
|
2028
1545
|
}
|
|
2029
|
-
} =
|
|
1546
|
+
} = i, r = T(i, [
|
|
2030
1547
|
"visible",
|
|
2031
1548
|
"duration",
|
|
2032
1549
|
"children",
|
|
2033
1550
|
"onClick"
|
|
2034
1551
|
]);
|
|
2035
|
-
const
|
|
2036
|
-
(
|
|
2037
|
-
|
|
1552
|
+
const c = _(), l = M(
|
|
1553
|
+
(a) => {
|
|
1554
|
+
a.target === c.current && o(a);
|
|
2038
1555
|
},
|
|
2039
1556
|
[o]
|
|
2040
1557
|
);
|
|
2041
|
-
return /* @__PURE__ */
|
|
2042
|
-
|
|
1558
|
+
return /* @__PURE__ */ d.createElement(
|
|
1559
|
+
at,
|
|
2043
1560
|
{
|
|
2044
1561
|
in: e,
|
|
2045
1562
|
className: "humany-overlay-transition",
|
|
@@ -2047,18 +1564,18 @@ const Gn = 300, Jn = ({
|
|
|
2047
1564
|
unmountOnExit: !0,
|
|
2048
1565
|
timeout: t
|
|
2049
1566
|
},
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
|
|
2052
|
-
|
|
1567
|
+
/* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
|
|
1568
|
+
_o,
|
|
1569
|
+
b({
|
|
2053
1570
|
className: "humany-overlay",
|
|
2054
1571
|
duration: t,
|
|
2055
|
-
ref:
|
|
2056
|
-
onClick:
|
|
1572
|
+
ref: c,
|
|
1573
|
+
onClick: l
|
|
2057
1574
|
}, r),
|
|
2058
1575
|
n
|
|
2059
1576
|
))
|
|
2060
1577
|
);
|
|
2061
|
-
},
|
|
1578
|
+
}, _o = y.div`
|
|
2062
1579
|
background: rgba(0, 0, 0, 0.6);
|
|
2063
1580
|
min-width: 100%;
|
|
2064
1581
|
min-height: 100%;
|
|
@@ -2088,11 +1605,11 @@ const Gn = 300, Jn = ({
|
|
|
2088
1605
|
&.humany-overlay-transition-exit-done {
|
|
2089
1606
|
opacity: 0;
|
|
2090
1607
|
}
|
|
2091
|
-
`,
|
|
1608
|
+
`, bt = So, Mo = rt`
|
|
2092
1609
|
100% {
|
|
2093
1610
|
transform: rotate(360deg);
|
|
2094
1611
|
}
|
|
2095
|
-
`,
|
|
1612
|
+
`, Do = rt`
|
|
2096
1613
|
0% {
|
|
2097
1614
|
stroke-dasharray: 1, 200;
|
|
2098
1615
|
stroke-dashoffset: 0;
|
|
@@ -2105,8 +1622,8 @@ const Gn = 300, Jn = ({
|
|
|
2105
1622
|
stroke-dasharray: 89, 200;
|
|
2106
1623
|
stroke-dashoffset: -124px;
|
|
2107
1624
|
}
|
|
2108
|
-
`,
|
|
2109
|
-
animation: ${
|
|
1625
|
+
`, To = y.svg`
|
|
1626
|
+
animation: ${Mo} 2s linear infinite;
|
|
2110
1627
|
height: 100%;
|
|
2111
1628
|
transform-origin: center center;
|
|
2112
1629
|
width: 100%;
|
|
@@ -2117,7 +1634,7 @@ const Gn = 300, Jn = ({
|
|
|
2117
1634
|
right: 0;
|
|
2118
1635
|
margin: auto;
|
|
2119
1636
|
transition: 200ms ease-out opacity;
|
|
2120
|
-
`,
|
|
1637
|
+
`, zo = y.div`
|
|
2121
1638
|
position: absolute;
|
|
2122
1639
|
top: 0;
|
|
2123
1640
|
bottom: 0;
|
|
@@ -2135,7 +1652,7 @@ const Gn = 300, Jn = ({
|
|
|
2135
1652
|
svg {
|
|
2136
1653
|
opacity: ${(e) => e["data-loading"] ? "1" : "0"};
|
|
2137
1654
|
}
|
|
2138
|
-
`,
|
|
1655
|
+
`, Lo = y.div`
|
|
2139
1656
|
position: relative;
|
|
2140
1657
|
margin: 0 auto;
|
|
2141
1658
|
width: 100px;
|
|
@@ -2144,18 +1661,18 @@ const Gn = 300, Jn = ({
|
|
|
2144
1661
|
display: block;
|
|
2145
1662
|
padding-top: 100%;
|
|
2146
1663
|
}
|
|
2147
|
-
`,
|
|
1664
|
+
`, Po = y.circle`
|
|
2148
1665
|
stroke-dasharray: 1, 200;
|
|
2149
1666
|
stroke-dashoffset: 0;
|
|
2150
|
-
animation: ${
|
|
1667
|
+
animation: ${Do} 1.5s ease-in-out infinite;
|
|
2151
1668
|
stroke-linecap: round;
|
|
2152
1669
|
stroke: ${(e) => {
|
|
2153
1670
|
var t;
|
|
2154
1671
|
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
2155
1672
|
}};
|
|
2156
1673
|
stroke-width: 2px;
|
|
2157
|
-
`,
|
|
2158
|
-
|
|
1674
|
+
`, No = ({ className: e, loading: t = !1 }) => /* @__PURE__ */ d.createElement(zo, { className: z("humany-loader", e), "data-loading": t }, /* @__PURE__ */ d.createElement(Lo, { className: "humany-spinner" }, /* @__PURE__ */ d.createElement(To, { viewBox: "25 25 50 50" }, /* @__PURE__ */ d.createElement(
|
|
1675
|
+
Po,
|
|
2159
1676
|
{
|
|
2160
1677
|
cx: "50",
|
|
2161
1678
|
cy: "50",
|
|
@@ -2164,62 +1681,62 @@ const Gn = 300, Jn = ({
|
|
|
2164
1681
|
"stroke-width": "2",
|
|
2165
1682
|
"stroke-miterlimit": "10"
|
|
2166
1683
|
}
|
|
2167
|
-
)))),
|
|
2168
|
-
var
|
|
1684
|
+
)))), Ro = No, Oo = (r) => {
|
|
1685
|
+
var s = r, {
|
|
2169
1686
|
zoomState: e,
|
|
2170
1687
|
image: t,
|
|
2171
1688
|
changeZoom: n
|
|
2172
|
-
} =
|
|
1689
|
+
} = s, o = T(s, [
|
|
2173
1690
|
"zoomState",
|
|
2174
1691
|
"image",
|
|
2175
1692
|
"changeZoom"
|
|
2176
1693
|
]);
|
|
2177
|
-
var
|
|
2178
|
-
const
|
|
2179
|
-
const
|
|
2180
|
-
if (
|
|
2181
|
-
const
|
|
2182
|
-
return
|
|
1694
|
+
var $;
|
|
1695
|
+
const i = _(null), [c, l] = C(!1), [a, u] = C(!1), v = o.style || {}, { width: h, height: p } = v, m = T(v, ["width", "height"]), g = M(() => {
|
|
1696
|
+
const f = i.current;
|
|
1697
|
+
if (f) {
|
|
1698
|
+
const L = window.innerWidth / f.width, N = window.innerHeight / f.height, D = Math.min(L, N);
|
|
1699
|
+
return N >= 1 && L >= 1 ? 1 : D;
|
|
2183
1700
|
}
|
|
2184
1701
|
return 1;
|
|
2185
|
-
}, [
|
|
2186
|
-
const
|
|
2187
|
-
if (
|
|
2188
|
-
if (!
|
|
2189
|
-
|
|
2190
|
-
const
|
|
2191
|
-
n(
|
|
1702
|
+
}, [c, t.src]), x = ge(() => {
|
|
1703
|
+
const f = i.current;
|
|
1704
|
+
if (f) {
|
|
1705
|
+
if (!a) {
|
|
1706
|
+
u(!0);
|
|
1707
|
+
const L = g();
|
|
1708
|
+
n(L);
|
|
2192
1709
|
}
|
|
2193
|
-
return
|
|
1710
|
+
return f.width >= f.height ? [`${e * t.originalWidth}px`, "auto"] : ["auto", `${e * t.originalHeight}px`];
|
|
2194
1711
|
}
|
|
2195
1712
|
return null;
|
|
2196
|
-
}, [e,
|
|
2197
|
-
return w(() => (
|
|
2198
|
-
|
|
2199
|
-
}), [t.src]), /* @__PURE__ */
|
|
2200
|
-
|
|
2201
|
-
|
|
1713
|
+
}, [e, i, c, t.src]);
|
|
1714
|
+
return w(() => (l(!1), function() {
|
|
1715
|
+
u(!1);
|
|
1716
|
+
}), [t.src]), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(Io, { loading: !c }), /* @__PURE__ */ d.createElement(
|
|
1717
|
+
Bo,
|
|
1718
|
+
S(b({
|
|
2202
1719
|
onLoad: () => {
|
|
2203
|
-
|
|
1720
|
+
l(!0);
|
|
2204
1721
|
},
|
|
2205
|
-
ref:
|
|
1722
|
+
ref: i,
|
|
2206
1723
|
imageSize: x,
|
|
2207
1724
|
draggable: "false"
|
|
2208
1725
|
}, o), {
|
|
2209
|
-
alt: ((
|
|
2210
|
-
style:
|
|
1726
|
+
alt: (($ = o.alt) == null ? void 0 : $.toString()) || "",
|
|
1727
|
+
style: m,
|
|
2211
1728
|
src: t.src,
|
|
2212
|
-
loaded:
|
|
1729
|
+
loaded: c
|
|
2213
1730
|
})
|
|
2214
|
-
), /* @__PURE__ */
|
|
2215
|
-
},
|
|
1731
|
+
), /* @__PURE__ */ d.createElement(Wo, null));
|
|
1732
|
+
}, Io = y(Ro)`
|
|
2216
1733
|
svg circle {
|
|
2217
1734
|
stroke: #ffffff;
|
|
2218
1735
|
}
|
|
2219
|
-
`,
|
|
1736
|
+
`, Bo = y.img`
|
|
2220
1737
|
transform: none;
|
|
2221
1738
|
|
|
2222
|
-
${(e) => e.imageSize &&
|
|
1739
|
+
${(e) => e.imageSize && k`
|
|
2223
1740
|
width: ${e.imageSize[0]};
|
|
2224
1741
|
height: ${e.imageSize[1]};
|
|
2225
1742
|
display: inline-block;
|
|
@@ -2227,267 +1744,267 @@ const Gn = 300, Jn = ({
|
|
|
2227
1744
|
vertical-align: middle;
|
|
2228
1745
|
position: relative;
|
|
2229
1746
|
${(e) => !e.loaded && "display:none;"}
|
|
2230
|
-
`,
|
|
1747
|
+
`, Wo = y.div`
|
|
2231
1748
|
height: 100%;
|
|
2232
1749
|
display: inline-block;
|
|
2233
1750
|
vertical-align: middle;
|
|
2234
|
-
`,
|
|
2235
|
-
const e =
|
|
1751
|
+
`, Ho = Oo, jo = () => {
|
|
1752
|
+
const e = _(), [t, n] = C(!0), o = M(() => (t || n(!0), e.current && clearTimeout(e.current), e.current = setTimeout(() => {
|
|
2236
1753
|
n(!1);
|
|
2237
1754
|
}, 3e3), () => {
|
|
2238
1755
|
e.current && clearTimeout(e.current);
|
|
2239
1756
|
}), [t, e]);
|
|
2240
1757
|
return [t, o];
|
|
2241
|
-
},
|
|
2242
|
-
var
|
|
2243
|
-
const n = ee("Escape"), o = ee("ArrowLeft"), r = ee("ArrowRight"), [
|
|
1758
|
+
}, Vo = ({ attrs: e, htmlBody: t }) => {
|
|
1759
|
+
var Ae;
|
|
1760
|
+
const n = ee("Escape"), o = ee("ArrowLeft"), r = ee("ArrowRight"), [s, i] = C(1), [c, l] = C({ top: 0, left: 0, x: 0, y: 0 }), [a, u] = C(!1), [h, p] = jo(), [m, g] = C(null), [x, v] = C(null), $ = _(null), f = _(null), L = _(null), N = _(null);
|
|
2244
1761
|
w(() => {
|
|
2245
|
-
n &&
|
|
1762
|
+
n && g(null);
|
|
2246
1763
|
}, [n]), w(() => {
|
|
2247
|
-
|
|
2248
|
-
}, [
|
|
2249
|
-
var
|
|
2250
|
-
if (
|
|
1764
|
+
i(1);
|
|
1765
|
+
}, [m]), w(() => {
|
|
1766
|
+
var Y, U;
|
|
1767
|
+
if (m === null || f.current === null)
|
|
2251
1768
|
return;
|
|
2252
|
-
const
|
|
1769
|
+
const E = f.current.firstElementChild, P = (Y = L.current) == null ? void 0 : Y.querySelector(".nav-left"), F = (U = L.current) == null ? void 0 : U.querySelector(".nav-right");
|
|
2253
1770
|
if (x === "Right")
|
|
2254
|
-
|
|
1771
|
+
me && F ? F.focus() : de && P && P.focus();
|
|
2255
1772
|
else if (x === "Left")
|
|
2256
|
-
|
|
1773
|
+
de && P ? P.focus() : me && F && F.focus();
|
|
2257
1774
|
else {
|
|
2258
|
-
if (
|
|
1775
|
+
if (!E)
|
|
2259
1776
|
return;
|
|
2260
|
-
|
|
1777
|
+
E.focus();
|
|
2261
1778
|
}
|
|
2262
|
-
}, [
|
|
1779
|
+
}, [m, f, L, x]), w(() => {
|
|
2263
1780
|
if (o) {
|
|
2264
|
-
if (
|
|
2265
|
-
return
|
|
2266
|
-
} else if (r &&
|
|
2267
|
-
return
|
|
1781
|
+
if (de)
|
|
1782
|
+
return Ve();
|
|
1783
|
+
} else if (r && me)
|
|
1784
|
+
return Fe();
|
|
2268
1785
|
}, [o, r]);
|
|
2269
|
-
const
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2272
|
-
const
|
|
2273
|
-
return Array.from(
|
|
2274
|
-
const
|
|
2275
|
-
if (
|
|
2276
|
-
const
|
|
2277
|
-
src:
|
|
2278
|
-
originalWidth:
|
|
2279
|
-
originalHeight:
|
|
1786
|
+
const D = ge(() => {
|
|
1787
|
+
const E = document.createElement("div");
|
|
1788
|
+
E.innerHTML = t || "";
|
|
1789
|
+
const P = E.getElementsByTagName("img");
|
|
1790
|
+
return Array.from(P).reduce((Y, U) => {
|
|
1791
|
+
const Ke = U.getAttribute("src"), Mt = U.height || Number.parseInt(U.style.height, 10), Dt = U.width || Number.parseInt(U.style.width, 10);
|
|
1792
|
+
if (Ke) {
|
|
1793
|
+
const Tt = {
|
|
1794
|
+
src: Ke,
|
|
1795
|
+
originalWidth: Dt,
|
|
1796
|
+
originalHeight: Mt
|
|
2280
1797
|
};
|
|
2281
|
-
|
|
1798
|
+
Y.push(Tt);
|
|
2282
1799
|
}
|
|
2283
|
-
return
|
|
1800
|
+
return Y;
|
|
2284
1801
|
}, []);
|
|
2285
|
-
}, [t]),
|
|
2286
|
-
const { src:
|
|
2287
|
-
if (
|
|
2288
|
-
const
|
|
2289
|
-
|
|
2290
|
-
}
|
|
2291
|
-
}, [
|
|
2292
|
-
|
|
2293
|
-
}, []),
|
|
2294
|
-
(
|
|
2295
|
-
|
|
1802
|
+
}, [t]), V = M(() => {
|
|
1803
|
+
const { src: E } = e;
|
|
1804
|
+
if (E) {
|
|
1805
|
+
const P = D.findIndex((F, Y) => F.src === E);
|
|
1806
|
+
g(P);
|
|
1807
|
+
}
|
|
1808
|
+
}, [D, e]), xt = M((E) => {
|
|
1809
|
+
g(null);
|
|
1810
|
+
}, []), je = M(
|
|
1811
|
+
(E) => {
|
|
1812
|
+
i(E ? s + s * 0.25 : s - s * 0.25);
|
|
2296
1813
|
},
|
|
2297
|
-
[
|
|
2298
|
-
),
|
|
2299
|
-
if (
|
|
2300
|
-
const { src:
|
|
2301
|
-
|
|
2302
|
-
}
|
|
2303
|
-
}, [
|
|
2304
|
-
(
|
|
2305
|
-
const
|
|
2306
|
-
|
|
1814
|
+
[i, s]
|
|
1815
|
+
), Et = M(() => {
|
|
1816
|
+
if (m !== null) {
|
|
1817
|
+
const { src: E } = D[m];
|
|
1818
|
+
E && window.open(E, "_self");
|
|
1819
|
+
}
|
|
1820
|
+
}, [D, m]), Ct = M(
|
|
1821
|
+
(E) => {
|
|
1822
|
+
const P = N.current;
|
|
1823
|
+
P && (l({ top: P.scrollTop, left: P.scrollLeft, x: E.clientX, y: E.clientY }), u(!0));
|
|
2307
1824
|
},
|
|
2308
|
-
[
|
|
2309
|
-
),
|
|
2310
|
-
(
|
|
2311
|
-
const
|
|
2312
|
-
if (
|
|
2313
|
-
const
|
|
2314
|
-
|
|
1825
|
+
[N]
|
|
1826
|
+
), kt = M(
|
|
1827
|
+
(E) => {
|
|
1828
|
+
const P = N.current;
|
|
1829
|
+
if (P && a) {
|
|
1830
|
+
const F = E.clientX - c.x, Y = E.clientY - c.y;
|
|
1831
|
+
P.scrollTop = c.top - Y, P.scrollLeft = c.left - F;
|
|
2315
1832
|
}
|
|
2316
1833
|
},
|
|
2317
|
-
[
|
|
2318
|
-
),
|
|
2319
|
-
|
|
2320
|
-
},
|
|
2321
|
-
if (
|
|
2322
|
-
const
|
|
2323
|
-
if (
|
|
2324
|
-
const
|
|
2325
|
-
return
|
|
1834
|
+
[a, c]
|
|
1835
|
+
), St = (E) => {
|
|
1836
|
+
E.preventDefault(), u(!1);
|
|
1837
|
+
}, _t = ge(() => {
|
|
1838
|
+
if (N.current) {
|
|
1839
|
+
const E = N.current.getElementsByTagName("img");
|
|
1840
|
+
if (E && E.length) {
|
|
1841
|
+
const P = E[0];
|
|
1842
|
+
return P.width > window.innerWidth || P.height > window.innerHeight;
|
|
2326
1843
|
}
|
|
2327
1844
|
}
|
|
2328
1845
|
return !1;
|
|
2329
|
-
}, [
|
|
2330
|
-
|
|
2331
|
-
},
|
|
2332
|
-
|
|
2333
|
-
},
|
|
2334
|
-
return /* @__PURE__ */
|
|
2335
|
-
|
|
1846
|
+
}, [N, s]), Ve = () => {
|
|
1847
|
+
m !== null && (v("Left"), g(m - 1));
|
|
1848
|
+
}, Fe = () => {
|
|
1849
|
+
m !== null && (v("Right"), g(m + 1));
|
|
1850
|
+
}, de = m !== null && m > 0 && D.length > 1, me = m !== null && D.length - 1 > m;
|
|
1851
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(bt, { visible: m !== null, onClick: xt }, /* @__PURE__ */ d.createElement(
|
|
1852
|
+
Zo,
|
|
2336
1853
|
{
|
|
2337
|
-
onMouseDown: () =>
|
|
2338
|
-
onMouseMove: () =>
|
|
2339
|
-
onTouchStart: () =>
|
|
2340
|
-
onKeyDown: () =>
|
|
1854
|
+
onMouseDown: () => p(),
|
|
1855
|
+
onMouseMove: () => p(),
|
|
1856
|
+
onTouchStart: () => p(),
|
|
1857
|
+
onKeyDown: () => p()
|
|
2341
1858
|
},
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
|
|
1859
|
+
/* @__PURE__ */ d.createElement(Qo, { show: h.toString() }, /* @__PURE__ */ d.createElement(
|
|
1860
|
+
qo,
|
|
2344
1861
|
{
|
|
2345
|
-
ref:
|
|
1862
|
+
ref: f,
|
|
2346
1863
|
buttons: [
|
|
2347
1864
|
{
|
|
2348
1865
|
id: "download",
|
|
2349
|
-
onClick:
|
|
1866
|
+
onClick: Et,
|
|
2350
1867
|
icon: "download",
|
|
2351
1868
|
ariaLabel: "Download image"
|
|
2352
1869
|
},
|
|
2353
1870
|
{
|
|
2354
1871
|
id: "lightbox-close",
|
|
2355
|
-
onClick: () =>
|
|
1872
|
+
onClick: () => g(null),
|
|
2356
1873
|
icon: "lightbox-close",
|
|
2357
1874
|
ariaLabel: "Close"
|
|
2358
1875
|
}
|
|
2359
1876
|
]
|
|
2360
1877
|
}
|
|
2361
1878
|
)),
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
|
|
1879
|
+
/* @__PURE__ */ d.createElement(
|
|
1880
|
+
Jo,
|
|
2364
1881
|
{
|
|
2365
|
-
scrolling:
|
|
2366
|
-
isDraggable:
|
|
2367
|
-
ref:
|
|
2368
|
-
onMouseMove:
|
|
2369
|
-
onMouseDown:
|
|
2370
|
-
onMouseUp:
|
|
1882
|
+
scrolling: a.toString(),
|
|
1883
|
+
isDraggable: _t.toString(),
|
|
1884
|
+
ref: N,
|
|
1885
|
+
onMouseMove: kt,
|
|
1886
|
+
onMouseDown: Ct,
|
|
1887
|
+
onMouseUp: St
|
|
2371
1888
|
},
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
changeZoom: (
|
|
2376
|
-
|
|
1889
|
+
m !== null && /* @__PURE__ */ d.createElement(
|
|
1890
|
+
Ho,
|
|
1891
|
+
S(b({
|
|
1892
|
+
changeZoom: (E) => {
|
|
1893
|
+
i(E);
|
|
2377
1894
|
},
|
|
2378
|
-
zoomState:
|
|
1895
|
+
zoomState: s
|
|
2379
1896
|
}, e), {
|
|
2380
|
-
image:
|
|
1897
|
+
image: D[m]
|
|
2381
1898
|
})
|
|
2382
1899
|
)
|
|
2383
1900
|
),
|
|
2384
|
-
/* @__PURE__ */
|
|
2385
|
-
|
|
1901
|
+
/* @__PURE__ */ d.createElement(
|
|
1902
|
+
Uo,
|
|
2386
1903
|
{
|
|
2387
|
-
ref:
|
|
2388
|
-
show:
|
|
1904
|
+
ref: L,
|
|
1905
|
+
show: h.toString(),
|
|
2389
1906
|
buttons: [
|
|
2390
1907
|
{
|
|
2391
1908
|
id: "previous",
|
|
2392
|
-
onClick:
|
|
1909
|
+
onClick: Ve,
|
|
2393
1910
|
icon: "caret-left",
|
|
2394
1911
|
circle: !0,
|
|
2395
|
-
show:
|
|
1912
|
+
show: de,
|
|
2396
1913
|
className: "nav-left",
|
|
2397
1914
|
ariaLabel: "Navigate to previous image"
|
|
2398
1915
|
},
|
|
2399
1916
|
{
|
|
2400
1917
|
id: "next",
|
|
2401
|
-
onClick:
|
|
1918
|
+
onClick: Fe,
|
|
2402
1919
|
icon: "caret-right",
|
|
2403
1920
|
circle: !0,
|
|
2404
|
-
show:
|
|
1921
|
+
show: me,
|
|
2405
1922
|
className: "nav-right",
|
|
2406
1923
|
ariaLabel: "Navigate to next image"
|
|
2407
1924
|
}
|
|
2408
1925
|
]
|
|
2409
1926
|
}
|
|
2410
1927
|
),
|
|
2411
|
-
/* @__PURE__ */
|
|
2412
|
-
|
|
1928
|
+
/* @__PURE__ */ d.createElement(Go, { show: h.toString() }, /* @__PURE__ */ d.createElement(
|
|
1929
|
+
Yo,
|
|
2413
1930
|
{
|
|
2414
1931
|
buttons: [
|
|
2415
1932
|
{
|
|
2416
1933
|
id: "zoom-out",
|
|
2417
|
-
onClick: () =>
|
|
1934
|
+
onClick: () => je(!1),
|
|
2418
1935
|
icon: "zoom-out",
|
|
2419
1936
|
ariaLabel: "Zoom out"
|
|
2420
1937
|
},
|
|
2421
1938
|
{
|
|
2422
1939
|
id: "zoom-in",
|
|
2423
|
-
onClick: () =>
|
|
1940
|
+
onClick: () => je(!0),
|
|
2424
1941
|
icon: "zoom-in",
|
|
2425
1942
|
ariaLabel: "Zoom in"
|
|
2426
1943
|
}
|
|
2427
1944
|
]
|
|
2428
1945
|
}
|
|
2429
|
-
), /* @__PURE__ */
|
|
2430
|
-
)), /* @__PURE__ */
|
|
2431
|
-
|
|
1946
|
+
), /* @__PURE__ */ d.createElement(Xo, { variant: "span" }, Math.trunc(s * 100), "%"))
|
|
1947
|
+
)), /* @__PURE__ */ d.createElement(
|
|
1948
|
+
Fo,
|
|
2432
1949
|
{
|
|
2433
|
-
ref:
|
|
2434
|
-
onClick:
|
|
2435
|
-
onKeyDown: (
|
|
2436
|
-
|
|
1950
|
+
ref: $,
|
|
1951
|
+
onClick: V,
|
|
1952
|
+
onKeyDown: (E) => {
|
|
1953
|
+
E.key === "Enter" && (E.preventDefault(), V());
|
|
2437
1954
|
},
|
|
2438
1955
|
tabIndex: 0
|
|
2439
1956
|
},
|
|
2440
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ d.createElement(er, S(b({}, e), { alt: ((Ae = e.alt) == null ? void 0 : Ae.toString()) || "" }))
|
|
2441
1958
|
));
|
|
2442
|
-
}, Be =
|
|
2443
|
-
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */
|
|
2444
|
-
|
|
1959
|
+
}, Be = B(
|
|
1960
|
+
({ show: e = "true", buttons: t, className: n }, o) => /* @__PURE__ */ d.createElement(
|
|
1961
|
+
Ao,
|
|
2445
1962
|
{
|
|
2446
1963
|
ref: o,
|
|
2447
1964
|
show: e,
|
|
2448
|
-
className:
|
|
1965
|
+
className: z("humany-button-set", n)
|
|
2449
1966
|
},
|
|
2450
1967
|
t.map(
|
|
2451
|
-
({ id: r, circle:
|
|
2452
|
-
|
|
1968
|
+
({ id: r, circle: s = !1, show: i = !0, ariaLabel: c, onClick: l, icon: a, className: u }, h) => /* @__PURE__ */ d.createElement(
|
|
1969
|
+
Ko,
|
|
2453
1970
|
{
|
|
2454
|
-
key: r +
|
|
2455
|
-
circle:
|
|
2456
|
-
onClick:
|
|
2457
|
-
tabIndex:
|
|
2458
|
-
show:
|
|
2459
|
-
icon:
|
|
2460
|
-
className:
|
|
2461
|
-
"aria-label":
|
|
1971
|
+
key: r + h.toString(),
|
|
1972
|
+
circle: s.toString(),
|
|
1973
|
+
onClick: l,
|
|
1974
|
+
tabIndex: i ? void 0 : -1,
|
|
1975
|
+
show: i.toString(),
|
|
1976
|
+
icon: a,
|
|
1977
|
+
className: u,
|
|
1978
|
+
"aria-label": c
|
|
2462
1979
|
},
|
|
2463
|
-
/* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ d.createElement(ue, { size: 24, symbol: { type: "Svg", content: a } })
|
|
2464
1981
|
)
|
|
2465
1982
|
)
|
|
2466
1983
|
)
|
|
2467
|
-
),
|
|
1984
|
+
), vt = y.div`
|
|
2468
1985
|
transition: opacity 0.3s ease 0s;
|
|
2469
1986
|
z-index: 5;
|
|
2470
|
-
${(e) => e.show === "true" ? "opacity: 1;" :
|
|
1987
|
+
${(e) => e.show === "true" ? "opacity: 1;" : k`
|
|
2471
1988
|
opacity: 0;
|
|
2472
1989
|
pointer-events: none;
|
|
2473
1990
|
`}
|
|
2474
|
-
`,
|
|
1991
|
+
`, Fo = y(Ie)`
|
|
2475
1992
|
display: inline-block !important;
|
|
2476
|
-
`,
|
|
1993
|
+
`, Ao = y(vt)`
|
|
2477
1994
|
position: fixed;
|
|
2478
1995
|
display: flex;
|
|
2479
1996
|
gap: ${(e) => {
|
|
2480
1997
|
var t;
|
|
2481
1998
|
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
2482
1999
|
}};
|
|
2483
|
-
`,
|
|
2484
|
-
width: ${
|
|
2485
|
-
height: ${
|
|
2000
|
+
`, Me = "39px", Ko = y(be)`
|
|
2001
|
+
width: ${Me};
|
|
2002
|
+
height: ${Me};
|
|
2486
2003
|
display: flex;
|
|
2487
2004
|
justify-content: center;
|
|
2488
2005
|
align-items: center;
|
|
2489
2006
|
|
|
2490
|
-
${(e) => e.icon === "caret-left" &&
|
|
2007
|
+
${(e) => e.icon === "caret-left" && k`
|
|
2491
2008
|
svg {
|
|
2492
2009
|
position: relative;
|
|
2493
2010
|
left: -2px;
|
|
@@ -2496,7 +2013,7 @@ const Gn = 300, Jn = ({
|
|
|
2496
2013
|
|
|
2497
2014
|
${(e) => {
|
|
2498
2015
|
var t;
|
|
2499
|
-
return e.circle === "true" ?
|
|
2016
|
+
return e.circle === "true" ? k`
|
|
2500
2017
|
background-color: #ffffff;
|
|
2501
2018
|
border-radius: 50%;
|
|
2502
2019
|
|
|
@@ -2508,7 +2025,7 @@ const Gn = 300, Jn = ({
|
|
|
2508
2025
|
}
|
|
2509
2026
|
|
|
2510
2027
|
&:focus-visible {
|
|
2511
|
-
${
|
|
2028
|
+
${Z(e)}
|
|
2512
2029
|
outline-color: #ffffff;
|
|
2513
2030
|
background-color: transparent;
|
|
2514
2031
|
|
|
@@ -2519,7 +2036,7 @@ const Gn = 300, Jn = ({
|
|
|
2519
2036
|
}
|
|
2520
2037
|
}
|
|
2521
2038
|
}
|
|
2522
|
-
` :
|
|
2039
|
+
` : k`
|
|
2523
2040
|
svg {
|
|
2524
2041
|
path,
|
|
2525
2042
|
line {
|
|
@@ -2530,22 +2047,22 @@ const Gn = 300, Jn = ({
|
|
|
2530
2047
|
outline-color: #ffffff;
|
|
2531
2048
|
}
|
|
2532
2049
|
&:focus-visible {
|
|
2533
|
-
${
|
|
2050
|
+
${Z(e)}
|
|
2534
2051
|
}
|
|
2535
2052
|
`;
|
|
2536
2053
|
}}
|
|
2537
2054
|
|
|
2538
|
-
${(e) => e.show === "true" ?
|
|
2055
|
+
${(e) => e.show === "true" ? k`
|
|
2539
2056
|
opacity: 0.8;
|
|
2540
2057
|
transition: opacity 0.3s ease 0s;
|
|
2541
2058
|
&:hover {
|
|
2542
2059
|
opacity: 1;
|
|
2543
2060
|
}
|
|
2544
|
-
` :
|
|
2061
|
+
` : k`
|
|
2545
2062
|
opacity: 0;
|
|
2546
2063
|
pointer-events: none;
|
|
2547
2064
|
`}
|
|
2548
|
-
`,
|
|
2065
|
+
`, qo = y(Be)`
|
|
2549
2066
|
top: ${(e) => {
|
|
2550
2067
|
var t;
|
|
2551
2068
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2554,7 +2071,7 @@ const Gn = 300, Jn = ({
|
|
|
2554
2071
|
var t;
|
|
2555
2072
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
2556
2073
|
}};
|
|
2557
|
-
`,
|
|
2074
|
+
`, Yo = y(Be)`
|
|
2558
2075
|
bottom: ${(e) => {
|
|
2559
2076
|
var t;
|
|
2560
2077
|
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
@@ -2562,11 +2079,11 @@ const Gn = 300, Jn = ({
|
|
|
2562
2079
|
width: 100%;
|
|
2563
2080
|
align-items: center;
|
|
2564
2081
|
justify-content: center;
|
|
2565
|
-
`,
|
|
2082
|
+
`, Uo = y(Be)`
|
|
2566
2083
|
display: block;
|
|
2567
2084
|
button {
|
|
2568
2085
|
position: fixed;
|
|
2569
|
-
top: calc(50% - calc(${
|
|
2086
|
+
top: calc(50% - calc(${Me} / 2));
|
|
2570
2087
|
&:first-child {
|
|
2571
2088
|
left: ${(e) => {
|
|
2572
2089
|
var t;
|
|
@@ -2580,7 +2097,7 @@ const Gn = 300, Jn = ({
|
|
|
2580
2097
|
}};
|
|
2581
2098
|
}
|
|
2582
2099
|
}
|
|
2583
|
-
`,
|
|
2100
|
+
`, Xo = y(ie)`
|
|
2584
2101
|
position: fixed;
|
|
2585
2102
|
bottom: ${(e) => {
|
|
2586
2103
|
var t;
|
|
@@ -2599,21 +2116,21 @@ const Gn = 300, Jn = ({
|
|
|
2599
2116
|
var t;
|
|
2600
2117
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
2601
2118
|
}};
|
|
2602
|
-
`,
|
|
2119
|
+
`, $t = y(vt)`
|
|
2603
2120
|
position: absolute;
|
|
2604
2121
|
width: 100vw;
|
|
2605
2122
|
height: 88px;
|
|
2606
2123
|
left: 0px;
|
|
2607
2124
|
z-index: 5;
|
|
2608
|
-
`,
|
|
2125
|
+
`, Zo = y.div`
|
|
2609
2126
|
width: 100%;
|
|
2610
|
-
`,
|
|
2127
|
+
`, Qo = y($t)`
|
|
2611
2128
|
top: 0px;
|
|
2612
2129
|
background-image: linear-gradient(to bottom, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2613
|
-
`,
|
|
2130
|
+
`, Go = y($t)`
|
|
2614
2131
|
bottom: 0px;
|
|
2615
2132
|
background-image: linear-gradient(to top, rgb(34, 34, 34, 0.8), rgba(34, 34, 34, 0));
|
|
2616
|
-
`,
|
|
2133
|
+
`, Jo = y.div`
|
|
2617
2134
|
width: 100%;
|
|
2618
2135
|
height: 100vh;
|
|
2619
2136
|
overflow: auto;
|
|
@@ -2622,64 +2139,64 @@ const Gn = 300, Jn = ({
|
|
|
2622
2139
|
white-space: nowrap;
|
|
2623
2140
|
justify-content: center;
|
|
2624
2141
|
cursor: ${(e) => e.isDraggable === "true" ? e.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
2625
|
-
`,
|
|
2142
|
+
`, er = y.img`
|
|
2626
2143
|
cursor: pointer;
|
|
2627
|
-
`,
|
|
2628
|
-
(
|
|
2629
|
-
var
|
|
2630
|
-
}, close: r = !1 } =
|
|
2631
|
-
const [
|
|
2144
|
+
`, tr = Vo, nr = B(
|
|
2145
|
+
(c, i) => {
|
|
2146
|
+
var l = c, { className: e, children: t, trigger: n, onOverlayClick: o = () => {
|
|
2147
|
+
}, close: r = !1 } = l, s = T(l, ["className", "children", "trigger", "onOverlayClick", "close"]);
|
|
2148
|
+
const [a, u] = pt(), [h, p] = ht(!0), m = _(), g = _(ae()), x = ee("Escape");
|
|
2632
2149
|
w(() => {
|
|
2633
|
-
(x || r) &&
|
|
2150
|
+
(x || r) && u(!1);
|
|
2634
2151
|
}, [x, r]), w(() => {
|
|
2635
|
-
|
|
2636
|
-
}, [
|
|
2637
|
-
|
|
2152
|
+
a && m.current && m.current.focus();
|
|
2153
|
+
}, [a, m.current]), ve("router:changed", () => {
|
|
2154
|
+
u(!1);
|
|
2638
2155
|
});
|
|
2639
|
-
const
|
|
2640
|
-
(
|
|
2641
|
-
|
|
2156
|
+
const v = M(
|
|
2157
|
+
(f) => {
|
|
2158
|
+
u(!1), o(f);
|
|
2642
2159
|
},
|
|
2643
|
-
[o,
|
|
2160
|
+
[o, u]
|
|
2644
2161
|
);
|
|
2645
|
-
|
|
2162
|
+
Te(i, () => ({
|
|
2646
2163
|
close() {
|
|
2647
|
-
|
|
2164
|
+
u(!1);
|
|
2648
2165
|
}
|
|
2649
2166
|
}));
|
|
2650
|
-
const
|
|
2651
|
-
|
|
2652
|
-
}), [
|
|
2653
|
-
return /* @__PURE__ */
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
className:
|
|
2167
|
+
const $ = M(() => Ne(g.current, () => {
|
|
2168
|
+
u(!1);
|
|
2169
|
+
}), [g.current]);
|
|
2170
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(bt, { visible: a, onClick: v }, /* @__PURE__ */ d.createElement(
|
|
2171
|
+
rr,
|
|
2172
|
+
S(b({
|
|
2173
|
+
className: z(
|
|
2657
2174
|
e,
|
|
2658
2175
|
"humany-modal",
|
|
2659
|
-
`humany-modal-${
|
|
2176
|
+
`humany-modal-${g.current}`
|
|
2660
2177
|
),
|
|
2661
|
-
css:
|
|
2178
|
+
css: h,
|
|
2662
2179
|
tabIndex: -1
|
|
2663
|
-
},
|
|
2664
|
-
ref:
|
|
2180
|
+
}, s), {
|
|
2181
|
+
ref: p
|
|
2665
2182
|
}),
|
|
2666
|
-
/* @__PURE__ */
|
|
2667
|
-
|
|
2183
|
+
/* @__PURE__ */ d.createElement(
|
|
2184
|
+
Oe,
|
|
2668
2185
|
{
|
|
2669
|
-
onClick: () =>
|
|
2186
|
+
onClick: () => u(!1),
|
|
2670
2187
|
tabIndex: 0,
|
|
2671
|
-
ref:
|
|
2188
|
+
ref: m
|
|
2672
2189
|
},
|
|
2673
|
-
/* @__PURE__ */
|
|
2190
|
+
/* @__PURE__ */ d.createElement(ue, { symbol: { type: "Svg", content: "close" } })
|
|
2674
2191
|
),
|
|
2675
2192
|
t
|
|
2676
|
-
)),
|
|
2677
|
-
onClick: (
|
|
2678
|
-
|
|
2193
|
+
)), d.cloneElement(n, {
|
|
2194
|
+
onClick: (f) => {
|
|
2195
|
+
u(), $();
|
|
2679
2196
|
}
|
|
2680
2197
|
}));
|
|
2681
2198
|
}
|
|
2682
|
-
),
|
|
2199
|
+
), or = nr, rr = y.div`
|
|
2683
2200
|
font-family: ${(e) => {
|
|
2684
2201
|
var t;
|
|
2685
2202
|
return (t = e.theme.fonts) == null ? void 0 : t.type;
|
|
@@ -2695,30 +2212,30 @@ const Gn = 300, Jn = ({
|
|
|
2695
2212
|
var t;
|
|
2696
2213
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
2697
2214
|
}};
|
|
2698
|
-
${(e) =>
|
|
2215
|
+
${(e) => ft(e)}
|
|
2699
2216
|
${(e) => e.css && e.css}
|
|
2700
2217
|
outline: none;
|
|
2701
|
-
`,
|
|
2218
|
+
`, sr = ({
|
|
2702
2219
|
className: e,
|
|
2703
2220
|
trigger: t,
|
|
2704
2221
|
header: n = "",
|
|
2705
2222
|
text: o = "",
|
|
2706
2223
|
onCancel: r = () => {
|
|
2707
2224
|
},
|
|
2708
|
-
onConfirm:
|
|
2225
|
+
onConfirm: s = () => {
|
|
2709
2226
|
},
|
|
2710
|
-
cancelLabel:
|
|
2711
|
-
confirmLabel:
|
|
2227
|
+
cancelLabel: i = "",
|
|
2228
|
+
confirmLabel: c = ""
|
|
2712
2229
|
}) => {
|
|
2713
|
-
const
|
|
2714
|
-
var
|
|
2715
|
-
r(), (
|
|
2716
|
-
}, [r]),
|
|
2717
|
-
var
|
|
2718
|
-
|
|
2719
|
-
}, [
|
|
2720
|
-
return /* @__PURE__ */
|
|
2721
|
-
},
|
|
2230
|
+
const l = _(), a = M(() => {
|
|
2231
|
+
var h;
|
|
2232
|
+
r(), (h = l == null ? void 0 : l.current) == null || h.close();
|
|
2233
|
+
}, [r]), u = M(() => {
|
|
2234
|
+
var h;
|
|
2235
|
+
s(), (h = l == null ? void 0 : l.current) == null || h.close();
|
|
2236
|
+
}, [s]);
|
|
2237
|
+
return /* @__PURE__ */ d.createElement(ir, { className: e, trigger: t, ref: l, onOverlayClick: a }, n && /* @__PURE__ */ d.createElement(Je, null, n), o && /* @__PURE__ */ d.createElement(Je, null, o), c && /* @__PURE__ */ d.createElement(ar, { onClick: u }, c), i && /* @__PURE__ */ d.createElement(cr, { onClick: a }, i));
|
|
2238
|
+
}, Ns = sr, ir = y(or)`
|
|
2722
2239
|
display: block;
|
|
2723
2240
|
|
|
2724
2241
|
span {
|
|
@@ -2736,7 +2253,7 @@ const Gn = 300, Jn = ({
|
|
|
2736
2253
|
}};
|
|
2737
2254
|
}
|
|
2738
2255
|
}
|
|
2739
|
-
`,
|
|
2256
|
+
`, ar = y(be)`
|
|
2740
2257
|
display: inline-block;
|
|
2741
2258
|
min-width: 50px;
|
|
2742
2259
|
${(e) => {
|
|
@@ -2764,9 +2281,9 @@ const Gn = 300, Jn = ({
|
|
|
2764
2281
|
}
|
|
2765
2282
|
|
|
2766
2283
|
&:focus-visible {
|
|
2767
|
-
${
|
|
2284
|
+
${Z}
|
|
2768
2285
|
}
|
|
2769
|
-
`,
|
|
2286
|
+
`, cr = y(be)`
|
|
2770
2287
|
display: inline-block;
|
|
2771
2288
|
min-width: 50px;
|
|
2772
2289
|
${(e) => {
|
|
@@ -2785,27 +2302,27 @@ const Gn = 300, Jn = ({
|
|
|
2785
2302
|
}};
|
|
2786
2303
|
|
|
2787
2304
|
&:focus-visible {
|
|
2788
|
-
${
|
|
2305
|
+
${Z};
|
|
2789
2306
|
}
|
|
2790
|
-
`,
|
|
2307
|
+
`, lr = ({
|
|
2791
2308
|
header: e = "",
|
|
2792
2309
|
link: t = "",
|
|
2793
2310
|
suggestionHeader: n = "",
|
|
2794
2311
|
suggestion: o = ""
|
|
2795
|
-
}) => /* @__PURE__ */
|
|
2312
|
+
}) => /* @__PURE__ */ d.createElement(ur, null, /* @__PURE__ */ d.createElement(dr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h2" }, "404")), /* @__PURE__ */ d.createElement(mr, null, /* @__PURE__ */ d.createElement(ie, { variant: "h3" }, e), /* @__PURE__ */ d.createElement(fr, { routeName: "index", "aria-label": t, text: t })), /* @__PURE__ */ d.createElement(hr, null, /* @__PURE__ */ d.createElement("span", null, n), /* @__PURE__ */ d.createElement("ul", null, /* @__PURE__ */ d.createElement("li", null, o)))), Rs = lr, ur = y.div`
|
|
2796
2313
|
display: flex;
|
|
2797
2314
|
flex-wrap: wrap;
|
|
2798
|
-
`,
|
|
2799
|
-
${(e) =>
|
|
2315
|
+
`, dr = y.div`
|
|
2316
|
+
${(e) => ye(e)(
|
|
2800
2317
|
"h2",
|
|
2801
|
-
|
|
2318
|
+
k`
|
|
2802
2319
|
padding: 0;
|
|
2803
2320
|
margin: 0;
|
|
2804
2321
|
color: gray;
|
|
2805
2322
|
font-size: 7em;
|
|
2806
2323
|
`
|
|
2807
2324
|
)}
|
|
2808
|
-
`,
|
|
2325
|
+
`, mr = y.div`
|
|
2809
2326
|
margin-left: ${(e) => {
|
|
2810
2327
|
var t;
|
|
2811
2328
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2813,9 +2330,9 @@ const Gn = 300, Jn = ({
|
|
|
2813
2330
|
|
|
2814
2331
|
${(e) => {
|
|
2815
2332
|
var t;
|
|
2816
|
-
return
|
|
2333
|
+
return ye(e)(
|
|
2817
2334
|
"h3",
|
|
2818
|
-
|
|
2335
|
+
k`
|
|
2819
2336
|
text-transform: uppercase;
|
|
2820
2337
|
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
2821
2338
|
`
|
|
@@ -2832,7 +2349,7 @@ const Gn = 300, Jn = ({
|
|
|
2832
2349
|
return (t = e.theme.fonts) == null ? void 0 : t.small;
|
|
2833
2350
|
}};
|
|
2834
2351
|
}
|
|
2835
|
-
`,
|
|
2352
|
+
`, hr = y.div`
|
|
2836
2353
|
margin-top: ${(e) => {
|
|
2837
2354
|
var t;
|
|
2838
2355
|
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
@@ -2843,7 +2360,7 @@ const Gn = 300, Jn = ({
|
|
|
2843
2360
|
font-weight: bold;
|
|
2844
2361
|
}
|
|
2845
2362
|
`;
|
|
2846
|
-
class
|
|
2363
|
+
class pr extends Ot {
|
|
2847
2364
|
constructor() {
|
|
2848
2365
|
super(...arguments), this.state = {
|
|
2849
2366
|
boundFocus: !1
|
|
@@ -2862,7 +2379,7 @@ class mr extends Ht {
|
|
|
2862
2379
|
this.node && t && (this.onFocusListener = this.node.addEventListener("focus", () => {
|
|
2863
2380
|
const n = t.querySelectorAll(
|
|
2864
2381
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2865
|
-
), r = [].filter.call(n, (
|
|
2382
|
+
), r = [].filter.call(n, (s) => typeof window == "undefined" ? !0 : !(window.getComputedStyle(s).display === "none" || s.offsetWidth <= 0 && s.offsetHeight <= 0))[0];
|
|
2866
2383
|
r && r.focus();
|
|
2867
2384
|
}));
|
|
2868
2385
|
}
|
|
@@ -2870,7 +2387,7 @@ class mr extends Ht {
|
|
|
2870
2387
|
this.node && this.node.removeEventListener("focus", this.onFocusListener);
|
|
2871
2388
|
}
|
|
2872
2389
|
render() {
|
|
2873
|
-
return this.state.boundFocus ? /* @__PURE__ */
|
|
2390
|
+
return this.state.boundFocus ? /* @__PURE__ */ d.createElement(
|
|
2874
2391
|
"div",
|
|
2875
2392
|
{
|
|
2876
2393
|
style: { opacity: 0 },
|
|
@@ -2882,61 +2399,61 @@ class mr extends Ht {
|
|
|
2882
2399
|
) : null;
|
|
2883
2400
|
}
|
|
2884
2401
|
}
|
|
2885
|
-
const
|
|
2886
|
-
(
|
|
2887
|
-
var
|
|
2888
|
-
return /* @__PURE__ */
|
|
2402
|
+
const Os = pr, fr = B(
|
|
2403
|
+
(i, s) => {
|
|
2404
|
+
var c = i, { className: e, description: t, text: n, children: o } = c, r = T(c, ["className", "description", "text", "children"]);
|
|
2405
|
+
return /* @__PURE__ */ d.createElement(Ie, S(b({ className: z(e, "humany-text-link") }, r), { ref: s }), o, /* @__PURE__ */ d.createElement(Re, null, n), t ? /* @__PURE__ */ d.createElement(yt, { html: t, className: "humany-description" }) : null);
|
|
2889
2406
|
}
|
|
2890
2407
|
);
|
|
2891
|
-
var
|
|
2892
|
-
const
|
|
2893
|
-
function
|
|
2894
|
-
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0],
|
|
2895
|
-
return t === "yyyy-mm-dd" ?
|
|
2408
|
+
var gr = /* @__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))(gr || {});
|
|
2409
|
+
const yr = ({ className: e = "", format: t = "hh:mm", timestamp: n }) => /* @__PURE__ */ d.createElement("span", { className: z(e, "humany-timestamp") }, br(n, t)), Is = yr, et = (e) => `0${e}`.slice(-2);
|
|
2410
|
+
function br(e, t) {
|
|
2411
|
+
const n = new Date(e), o = n.toTimeString().split(" ")[0].split(":"), r = o.length > 1 ? `${o[0]}:${o[1]}` : o[0], s = n.getFullYear(), i = n.getMonth() + 1, c = n.getDate(), l = `${s}-${et(i)}-${et(c)}`;
|
|
2412
|
+
return t === "yyyy-mm-dd" ? l : t === "hh:mm" ? r : `${l} ${r}`;
|
|
2896
2413
|
}
|
|
2897
|
-
const
|
|
2898
|
-
var
|
|
2899
|
-
const [
|
|
2900
|
-
const { target:
|
|
2901
|
-
!
|
|
2414
|
+
const vr = (s) => {
|
|
2415
|
+
var i = s, { className: e, children: t, content: n, sticky: o = !1 } = i, r = T(i, ["className", "children", "content", "sticky"]);
|
|
2416
|
+
const [c, l] = C(!1), a = _(ae()), u = _(), [{ x: h, y: p }, m] = gt(c, a.current, u.current), g = (v) => {
|
|
2417
|
+
const { target: $ } = v;
|
|
2418
|
+
!u.current || !$ || u.current !== $ && !u.current.contains($) && l(!1);
|
|
2902
2419
|
};
|
|
2903
2420
|
w(() => {
|
|
2904
2421
|
if (!!o)
|
|
2905
|
-
return window.addEventListener("click",
|
|
2906
|
-
window.removeEventListener("click",
|
|
2422
|
+
return window.addEventListener("click", g), () => {
|
|
2423
|
+
window.removeEventListener("click", g);
|
|
2907
2424
|
};
|
|
2908
|
-
}, [
|
|
2909
|
-
const x =
|
|
2910
|
-
(
|
|
2911
|
-
|
|
2425
|
+
}, [c, o]);
|
|
2426
|
+
const x = M(
|
|
2427
|
+
(v, $) => {
|
|
2428
|
+
m(v, u.current), l($);
|
|
2912
2429
|
},
|
|
2913
|
-
[
|
|
2430
|
+
[m, l]
|
|
2914
2431
|
);
|
|
2915
|
-
return /* @__PURE__ */
|
|
2916
|
-
|
|
2432
|
+
return /* @__PURE__ */ d.createElement(
|
|
2433
|
+
$r,
|
|
2917
2434
|
{
|
|
2918
|
-
ref:
|
|
2435
|
+
ref: u,
|
|
2919
2436
|
className: "humany-tooltip-trigger",
|
|
2920
|
-
onMouseEnter: o ? void 0 : (
|
|
2921
|
-
onMouseLeave: o ? void 0 : (
|
|
2922
|
-
onTouchEnd: o ? (
|
|
2923
|
-
onClick: o ? (
|
|
2437
|
+
onMouseEnter: o ? void 0 : (v) => x(v, !0),
|
|
2438
|
+
onMouseLeave: o ? void 0 : (v) => x(v, !1),
|
|
2439
|
+
onTouchEnd: o ? (v) => x(v, !c) : void 0,
|
|
2440
|
+
onClick: o ? (v) => x(v, !c) : void 0
|
|
2924
2441
|
},
|
|
2925
2442
|
t,
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
className:
|
|
2930
|
-
x:
|
|
2931
|
-
y:
|
|
2443
|
+
c && /* @__PURE__ */ d.createElement(le, null, /* @__PURE__ */ d.createElement(
|
|
2444
|
+
wr,
|
|
2445
|
+
b({
|
|
2446
|
+
className: z(e, "humany-tooltip-container"),
|
|
2447
|
+
x: h,
|
|
2448
|
+
y: p
|
|
2932
2449
|
}, r),
|
|
2933
2450
|
n
|
|
2934
2451
|
))
|
|
2935
2452
|
);
|
|
2936
|
-
},
|
|
2453
|
+
}, $r = y.div`
|
|
2937
2454
|
display: flex;
|
|
2938
2455
|
align-items: center;
|
|
2939
|
-
`,
|
|
2456
|
+
`, wr = y.div`
|
|
2940
2457
|
color: #ffffff;
|
|
2941
2458
|
background: #161616;
|
|
2942
2459
|
border-radius: ${(e) => e.theme.borderRadius};
|
|
@@ -2972,130 +2489,130 @@ const yr = (i) => {
|
|
|
2972
2489
|
let t = "";
|
|
2973
2490
|
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;
|
|
2974
2491
|
}};
|
|
2975
|
-
`, Bs =
|
|
2492
|
+
`, Bs = vr, xr = (e) => {
|
|
2976
2493
|
const {
|
|
2977
2494
|
in: t,
|
|
2978
2495
|
mountOnEnter: n = !0,
|
|
2979
2496
|
unmountOnExit: o = !0,
|
|
2980
2497
|
timeout: r,
|
|
2981
|
-
children:
|
|
2982
|
-
transitions:
|
|
2983
|
-
} = e,
|
|
2984
|
-
var
|
|
2985
|
-
if (!(!
|
|
2986
|
-
if (typeof
|
|
2498
|
+
children: s,
|
|
2499
|
+
transitions: i
|
|
2500
|
+
} = e, l = (() => {
|
|
2501
|
+
var a, u;
|
|
2502
|
+
if (!(!i || i === "none")) {
|
|
2503
|
+
if (typeof i == "string")
|
|
2987
2504
|
return {
|
|
2988
2505
|
enter: {
|
|
2989
|
-
transitionKeys:
|
|
2506
|
+
transitionKeys: i,
|
|
2990
2507
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
2991
2508
|
easing: "ease-in"
|
|
2992
2509
|
},
|
|
2993
2510
|
exit: {
|
|
2994
|
-
transitionKeys:
|
|
2511
|
+
transitionKeys: i,
|
|
2995
2512
|
duration: r ? typeof r == "number" ? r : r.exit : 200,
|
|
2996
2513
|
easing: "ease-out"
|
|
2997
2514
|
}
|
|
2998
2515
|
};
|
|
2999
|
-
if (typeof
|
|
3000
|
-
const { enter:
|
|
2516
|
+
if (typeof i == "object") {
|
|
2517
|
+
const { enter: h, exit: p } = i;
|
|
3001
2518
|
return {
|
|
3002
2519
|
enter: {
|
|
3003
|
-
transitionKeys: (
|
|
2520
|
+
transitionKeys: (a = i.enter) == null ? void 0 : a.type,
|
|
3004
2521
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3005
|
-
easing:
|
|
2522
|
+
easing: h.easing ? h.easing : "ease-in"
|
|
3006
2523
|
},
|
|
3007
2524
|
exit: {
|
|
3008
|
-
transitionKeys: (
|
|
2525
|
+
transitionKeys: (u = i.enter) == null ? void 0 : u.type,
|
|
3009
2526
|
duration: r ? typeof r == "number" ? r : r.enter : 200,
|
|
3010
|
-
easing:
|
|
2527
|
+
easing: p.easing ? p.easing : "ease-out"
|
|
3011
2528
|
}
|
|
3012
2529
|
};
|
|
3013
2530
|
}
|
|
3014
2531
|
}
|
|
3015
2532
|
})();
|
|
3016
|
-
return /* @__PURE__ */
|
|
3017
|
-
|
|
2533
|
+
return /* @__PURE__ */ d.createElement(
|
|
2534
|
+
Ft,
|
|
3018
2535
|
{
|
|
3019
2536
|
timeout: {
|
|
3020
|
-
enter:
|
|
3021
|
-
exit:
|
|
2537
|
+
enter: l && l.enter.duration || 0,
|
|
2538
|
+
exit: l && l.exit.duration || 0
|
|
3022
2539
|
},
|
|
3023
2540
|
in: t,
|
|
3024
2541
|
appear: !0,
|
|
3025
2542
|
mountOnEnter: n,
|
|
3026
2543
|
unmountOnExit: o,
|
|
3027
|
-
onEnter: (
|
|
2544
|
+
onEnter: (a) => a.clientHeight
|
|
3028
2545
|
},
|
|
3029
|
-
(
|
|
2546
|
+
(a) => s && s(a, l && Se.compose(a, l))
|
|
3030
2547
|
);
|
|
3031
|
-
},
|
|
3032
|
-
(
|
|
3033
|
-
var
|
|
3034
|
-
}, widgetName: o, activationOptions: r } =
|
|
3035
|
-
const
|
|
3036
|
-
const { implementation:
|
|
3037
|
-
return
|
|
2548
|
+
}, Ws = xr, Er = B(
|
|
2549
|
+
(c, i) => {
|
|
2550
|
+
var l = c, { className: e, children: t, onClick: n = () => {
|
|
2551
|
+
}, widgetName: o, activationOptions: r } = l, s = T(l, ["className", "children", "onClick", "widgetName", "activationOptions"]);
|
|
2552
|
+
const a = H(), u = () => {
|
|
2553
|
+
const { implementation: m } = a.get("$widget");
|
|
2554
|
+
return m.widgets.get(o);
|
|
3038
2555
|
};
|
|
3039
2556
|
w(() => {
|
|
3040
|
-
const
|
|
3041
|
-
return
|
|
3042
|
-
|
|
2557
|
+
const m = u();
|
|
2558
|
+
return m == null || m.activate(r).then(() => m.invoke("attach")), () => {
|
|
2559
|
+
m == null || m.deactivate();
|
|
3043
2560
|
};
|
|
3044
2561
|
}, [o]);
|
|
3045
|
-
const
|
|
3046
|
-
const
|
|
3047
|
-
if (
|
|
3048
|
-
const
|
|
3049
|
-
|
|
3050
|
-
(
|
|
2562
|
+
const h = (m) => {
|
|
2563
|
+
const g = u(), x = m.currentTarget;
|
|
2564
|
+
if (g) {
|
|
2565
|
+
const v = () => {
|
|
2566
|
+
g.invoke("renderState").then(
|
|
2567
|
+
($) => $ === fe.open ? g.invoke("close") : g.invoke("open")
|
|
3051
2568
|
).then(() => {
|
|
3052
|
-
|
|
3053
|
-
|
|
2569
|
+
g.events.subscribeOnce("widget:area-rendered", ($, f) => {
|
|
2570
|
+
a.get(
|
|
3054
2571
|
"widgetDOMElement"
|
|
3055
|
-
) &&
|
|
3056
|
-
name:
|
|
2572
|
+
) && g.events.dispatch("widget:modal-opened", {
|
|
2573
|
+
name: g.name,
|
|
3057
2574
|
ref: x
|
|
3058
2575
|
});
|
|
3059
2576
|
});
|
|
3060
2577
|
});
|
|
3061
2578
|
};
|
|
3062
|
-
|
|
2579
|
+
g.state === Rt.Deactivated ? g.activate(r).then(() => g.invoke("attach")).then(v) : v();
|
|
3063
2580
|
}
|
|
3064
|
-
},
|
|
3065
|
-
|
|
2581
|
+
}, p = (m) => {
|
|
2582
|
+
m.key === "Enter" && (m.preventDefault(), h(m));
|
|
3066
2583
|
};
|
|
3067
|
-
return /* @__PURE__ */
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
className:
|
|
3071
|
-
onKeyDown:
|
|
3072
|
-
onClick: (
|
|
3073
|
-
n(
|
|
2584
|
+
return /* @__PURE__ */ d.createElement(
|
|
2585
|
+
Ie,
|
|
2586
|
+
S(b({
|
|
2587
|
+
className: z(e, "humany-widget-link"),
|
|
2588
|
+
onKeyDown: p,
|
|
2589
|
+
onClick: (m) => {
|
|
2590
|
+
n(m), h(m);
|
|
3074
2591
|
}
|
|
3075
|
-
},
|
|
3076
|
-
ref:
|
|
2592
|
+
}, s), {
|
|
2593
|
+
ref: i
|
|
3077
2594
|
}),
|
|
3078
2595
|
t
|
|
3079
2596
|
);
|
|
3080
2597
|
}
|
|
3081
|
-
),
|
|
2598
|
+
), Hs = B(
|
|
3082
2599
|
({ portalId: e = "humany-widget-overlay-portal", className: t, children: n }, o) => {
|
|
3083
|
-
const r =
|
|
2600
|
+
const r = H(), s = ge(() => {
|
|
3084
2601
|
if (!r)
|
|
3085
2602
|
return null;
|
|
3086
|
-
const
|
|
3087
|
-
return !
|
|
2603
|
+
const i = r.get("widgetDOMElement");
|
|
2604
|
+
return !i || !i.childElementCount ? null : i.children[0];
|
|
3088
2605
|
}, [r]);
|
|
3089
|
-
return
|
|
3090
|
-
|
|
2606
|
+
return s ? /* @__PURE__ */ d.createElement(le, { elementId: e, parent: s }, /* @__PURE__ */ d.createElement(
|
|
2607
|
+
Cr,
|
|
3091
2608
|
{
|
|
3092
|
-
className:
|
|
2609
|
+
className: z("humany-widget-overlay-outlet", t),
|
|
3093
2610
|
ref: o
|
|
3094
2611
|
},
|
|
3095
2612
|
n
|
|
3096
2613
|
)) : null;
|
|
3097
2614
|
}
|
|
3098
|
-
),
|
|
2615
|
+
), Cr = y.div`
|
|
3099
2616
|
background-color: #ffffff;
|
|
3100
2617
|
position: absolute;
|
|
3101
2618
|
top: 0;
|
|
@@ -3105,19 +2622,19 @@ const yr = (i) => {
|
|
|
3105
2622
|
z-index: 10;
|
|
3106
2623
|
width: 100%;
|
|
3107
2624
|
height: 100%;
|
|
3108
|
-
`,
|
|
2625
|
+
`, kr = (e, t, n, o, r) => e.getAsync("componentResolver").then((s) => (s.registerComponent(
|
|
3109
2626
|
t,
|
|
3110
|
-
|
|
3111
|
-
),
|
|
3112
|
-
}), t, r))),
|
|
3113
|
-
const
|
|
3114
|
-
return console.log("registering component", t, n),
|
|
2627
|
+
It(() => n)
|
|
2628
|
+
), ot(e, t, o || (() => {
|
|
2629
|
+
}), t, r))), js = kr, Sr = (e, t, n, o, r) => pe(void 0, null, function* () {
|
|
2630
|
+
const s = yield e.getAsync("componentResolver");
|
|
2631
|
+
return console.log("registering component", t, n), s.registerComponent(t, () => n), ot(e, t, o || (() => {
|
|
3115
2632
|
}), t, r);
|
|
3116
|
-
}),
|
|
2633
|
+
}), Vs = Sr, _r = `button{appearance:button;text-transform:none;overflow:visible;outline:none;border:none;background:var(--background, transparent);cursor:pointer;font-family:inherit;font-size:var(--font-size, inherit);line-height:normal;margin:0;padding:0;color:var(--text-color, var(--colors-text))}@media (hover: hover){button:hover{background:var(--hover-bg, transparent);text-decoration:var(--hover-text-decoration, none)}}i,svg{color:var(--icon-color, var(--colors-text));display:block}
|
|
3117
2634
|
`;
|
|
3118
|
-
class
|
|
2635
|
+
class wt extends ce {
|
|
3119
2636
|
render() {
|
|
3120
|
-
return
|
|
2637
|
+
return I`
|
|
3121
2638
|
<!-- className={appendClassNames(className, 'humany-button')}
|
|
3122
2639
|
{...convertToStringAttributes(other)} -->
|
|
3123
2640
|
<button type="button" part="container" class="humany-button">
|
|
@@ -3126,38 +2643,41 @@ class bt extends fe {
|
|
|
3126
2643
|
`;
|
|
3127
2644
|
}
|
|
3128
2645
|
}
|
|
3129
|
-
|
|
3130
|
-
customElements.get("ui-button") || customElements.define("ui-button",
|
|
3131
|
-
var
|
|
3132
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3133
|
-
(
|
|
3134
|
-
return o && r &&
|
|
2646
|
+
wt.styles = ke(_r);
|
|
2647
|
+
customElements.get("ui-button") || customElements.define("ui-button", wt);
|
|
2648
|
+
var Mr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, Tr = (e, t, n, o) => {
|
|
2649
|
+
for (var r = o > 1 ? void 0 : o ? Dr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2650
|
+
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2651
|
+
return o && r && Mr(t, n, r), r;
|
|
3135
2652
|
};
|
|
3136
|
-
class
|
|
2653
|
+
class We extends ce {
|
|
3137
2654
|
constructor() {
|
|
3138
2655
|
super(), this.html = "";
|
|
3139
2656
|
}
|
|
3140
2657
|
render() {
|
|
3141
|
-
return
|
|
2658
|
+
return st` <div part="container" class="humany-html">${it(this.html)}</div> `;
|
|
2659
|
+
}
|
|
2660
|
+
createRenderRoot() {
|
|
2661
|
+
return this;
|
|
3142
2662
|
}
|
|
3143
2663
|
}
|
|
3144
|
-
|
|
3145
|
-
|
|
2664
|
+
We.styles = [
|
|
2665
|
+
te`
|
|
3146
2666
|
img {
|
|
3147
2667
|
display: none;
|
|
3148
2668
|
}
|
|
3149
2669
|
`
|
|
3150
2670
|
];
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
],
|
|
3154
|
-
customElements.get("ui-html") || customElements.define("ui-html",
|
|
3155
|
-
var
|
|
3156
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3157
|
-
(
|
|
3158
|
-
return o && r &&
|
|
2671
|
+
Tr([
|
|
2672
|
+
O({ type: String })
|
|
2673
|
+
], We.prototype, "html", 2);
|
|
2674
|
+
customElements.get("ui-html") || customElements.define("ui-html", We);
|
|
2675
|
+
var zr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, se = (e, t, n, o) => {
|
|
2676
|
+
for (var r = o > 1 ? void 0 : o ? Lr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2677
|
+
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2678
|
+
return o && r && zr(t, n, r), r;
|
|
3159
2679
|
};
|
|
3160
|
-
class Q extends
|
|
2680
|
+
class Q extends ce {
|
|
3161
2681
|
constructor() {
|
|
3162
2682
|
super(), this.symbol = {
|
|
3163
2683
|
content: "",
|
|
@@ -3178,13 +2698,13 @@ class Q extends fe {
|
|
|
3178
2698
|
backgroundRepeat: "no-repeat",
|
|
3179
2699
|
backgroundPosition: "center",
|
|
3180
2700
|
backgroundAttachment: "center"
|
|
3181
|
-
},
|
|
3182
|
-
return
|
|
2701
|
+
}, s = b(b({}, r), this.elementStyle);
|
|
2702
|
+
return I`
|
|
3183
2703
|
<i
|
|
3184
2704
|
class="humany-icon humany-custom-icon"
|
|
3185
2705
|
title=${this.text}
|
|
3186
|
-
style=${
|
|
3187
|
-
${
|
|
2706
|
+
style=${A(s)}
|
|
2707
|
+
${R(o)}
|
|
3188
2708
|
/>
|
|
3189
2709
|
`;
|
|
3190
2710
|
}
|
|
@@ -3197,12 +2717,12 @@ class Q extends fe {
|
|
|
3197
2717
|
};
|
|
3198
2718
|
switch (n) {
|
|
3199
2719
|
case "search":
|
|
3200
|
-
return
|
|
2720
|
+
return I`
|
|
3201
2721
|
<svg
|
|
3202
2722
|
viewBox="0 0 32 30"
|
|
3203
|
-
style=${
|
|
3204
|
-
${
|
|
3205
|
-
${
|
|
2723
|
+
style=${A(this.styles)}
|
|
2724
|
+
${R(o)}
|
|
2725
|
+
${R(r)}
|
|
3206
2726
|
>
|
|
3207
2727
|
<circle
|
|
3208
2728
|
cx="14.8457"
|
|
@@ -3221,12 +2741,12 @@ class Q extends fe {
|
|
|
3221
2741
|
</svg>
|
|
3222
2742
|
`;
|
|
3223
2743
|
case "clear":
|
|
3224
|
-
return
|
|
2744
|
+
return I`
|
|
3225
2745
|
<svg
|
|
3226
2746
|
viewBox="0 0 27 27"
|
|
3227
|
-
style=${
|
|
3228
|
-
${
|
|
3229
|
-
${
|
|
2747
|
+
style=${A(this.styles)}
|
|
2748
|
+
${R(o)}
|
|
2749
|
+
${R(r)}
|
|
3230
2750
|
>
|
|
3231
2751
|
<circle
|
|
3232
2752
|
cx="13.4351"
|
|
@@ -3252,24 +2772,24 @@ class Q extends fe {
|
|
|
3252
2772
|
</svg>
|
|
3253
2773
|
`;
|
|
3254
2774
|
case "close":
|
|
3255
|
-
return
|
|
2775
|
+
return I`
|
|
3256
2776
|
<svg
|
|
3257
2777
|
viewBox="0 0 13 13"
|
|
3258
|
-
style=${
|
|
3259
|
-
${
|
|
3260
|
-
${
|
|
2778
|
+
style=${A(this.styles)}
|
|
2779
|
+
${R(o)}
|
|
2780
|
+
${R(r)}
|
|
3261
2781
|
>
|
|
3262
2782
|
<path d="M12.3068 0.50647L1.27246 11.7273" stroke="currentColor" />
|
|
3263
2783
|
<path d="M12.2812 11.9473L1.24686 0.726451" stroke="currentColor" />
|
|
3264
2784
|
</svg>
|
|
3265
2785
|
`;
|
|
3266
2786
|
case "caret-right":
|
|
3267
|
-
return
|
|
2787
|
+
return I`
|
|
3268
2788
|
<svg
|
|
3269
2789
|
viewBox="0 0 14 14"
|
|
3270
|
-
style=${
|
|
3271
|
-
${
|
|
3272
|
-
${
|
|
2790
|
+
style=${A(this.styles)}
|
|
2791
|
+
${R(o)}
|
|
2792
|
+
${R(r)}
|
|
3273
2793
|
>
|
|
3274
2794
|
<line
|
|
3275
2795
|
x1="4.13"
|
|
@@ -3288,12 +2808,12 @@ class Q extends fe {
|
|
|
3288
2808
|
</svg>
|
|
3289
2809
|
`;
|
|
3290
2810
|
case "caret-left":
|
|
3291
|
-
return
|
|
2811
|
+
return I`
|
|
3292
2812
|
<svg
|
|
3293
2813
|
viewBox="0 0 14 14"
|
|
3294
|
-
style=${
|
|
3295
|
-
${
|
|
3296
|
-
${
|
|
2814
|
+
style=${A(this.styles)}
|
|
2815
|
+
${R(o)}
|
|
2816
|
+
${R(r)}
|
|
3297
2817
|
>
|
|
3298
2818
|
<line
|
|
3299
2819
|
x1="10.13"
|
|
@@ -3312,24 +2832,24 @@ class Q extends fe {
|
|
|
3312
2832
|
</svg>
|
|
3313
2833
|
`;
|
|
3314
2834
|
case "caret-up":
|
|
3315
|
-
return this.styles.transform = "rotate(180deg)",
|
|
2835
|
+
return this.styles.transform = "rotate(180deg)", I`
|
|
3316
2836
|
<svg
|
|
3317
2837
|
viewBox="0 0 14 14"
|
|
3318
|
-
style=${
|
|
3319
|
-
${
|
|
3320
|
-
${
|
|
2838
|
+
style=${A(this.styles)}
|
|
2839
|
+
${R(o)}
|
|
2840
|
+
${R(r)}
|
|
3321
2841
|
>
|
|
3322
2842
|
<line x1="13.09" y1="3.99" x2="7.1" y2="9.99" stroke="black" />
|
|
3323
2843
|
<line x1="7.19" y1="9.99" x2="1.19" y2="3.99" stroke="black" />
|
|
3324
2844
|
</svg>
|
|
3325
2845
|
`;
|
|
3326
2846
|
case "caret-down":
|
|
3327
|
-
return
|
|
2847
|
+
return I`
|
|
3328
2848
|
<svg
|
|
3329
2849
|
viewBox="0 0 14 14"
|
|
3330
|
-
style=${
|
|
3331
|
-
${
|
|
3332
|
-
${
|
|
2850
|
+
style=${A(this.styles)}
|
|
2851
|
+
${R(o)}
|
|
2852
|
+
${R(r)}
|
|
3333
2853
|
>
|
|
3334
2854
|
<line
|
|
3335
2855
|
x1="13.09"
|
|
@@ -3347,14 +2867,32 @@ class Q extends fe {
|
|
|
3347
2867
|
/>
|
|
3348
2868
|
</svg>
|
|
3349
2869
|
`;
|
|
2870
|
+
case "send":
|
|
2871
|
+
return I`
|
|
2872
|
+
<svg
|
|
2873
|
+
viewBox="0 0 20 17"
|
|
2874
|
+
style=${A(this.styles)}
|
|
2875
|
+
${R(o)}
|
|
2876
|
+
${R(r)}
|
|
2877
|
+
>
|
|
2878
|
+
<path
|
|
2879
|
+
d="M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z"
|
|
2880
|
+
fill="currentColor"
|
|
2881
|
+
stroke="currentColor"
|
|
2882
|
+
strokeWidth="0.1"
|
|
2883
|
+
/>
|
|
2884
|
+
</svg>
|
|
2885
|
+
`;
|
|
3350
2886
|
}
|
|
3351
2887
|
}
|
|
2888
|
+
case "FontAwesome":
|
|
2889
|
+
return I`<ui-icon .faIcon=${this.symbol.content} title=${this.text} />`;
|
|
3352
2890
|
}
|
|
3353
|
-
return
|
|
2891
|
+
return jt;
|
|
3354
2892
|
}
|
|
3355
2893
|
}
|
|
3356
2894
|
Q.styles = [
|
|
3357
|
-
|
|
2895
|
+
te`
|
|
3358
2896
|
:host {
|
|
3359
2897
|
color: var(--icon-color, inherit);
|
|
3360
2898
|
}
|
|
@@ -3364,32 +2902,32 @@ Q.styles = [
|
|
|
3364
2902
|
}
|
|
3365
2903
|
`
|
|
3366
2904
|
];
|
|
3367
|
-
|
|
3368
|
-
|
|
2905
|
+
se([
|
|
2906
|
+
O({ type: Object })
|
|
3369
2907
|
], Q.prototype, "symbol", 2);
|
|
3370
|
-
|
|
3371
|
-
|
|
2908
|
+
se([
|
|
2909
|
+
O({ type: Object })
|
|
3372
2910
|
], Q.prototype, "elementStyle", 2);
|
|
3373
|
-
|
|
3374
|
-
|
|
2911
|
+
se([
|
|
2912
|
+
O({ type: Number })
|
|
3375
2913
|
], Q.prototype, "size", 2);
|
|
3376
|
-
|
|
3377
|
-
|
|
2914
|
+
se([
|
|
2915
|
+
O({ type: String })
|
|
3378
2916
|
], Q.prototype, "text", 2);
|
|
3379
|
-
|
|
3380
|
-
|
|
2917
|
+
se([
|
|
2918
|
+
O({ type: String })
|
|
3381
2919
|
], Q.prototype, "backgroundSize", 2);
|
|
3382
|
-
|
|
3383
|
-
|
|
2920
|
+
se([
|
|
2921
|
+
X()
|
|
3384
2922
|
], Q.prototype, "styles", 2);
|
|
3385
2923
|
customElements.get("ui-symbol-badge") || customElements.define("ui-symbol-badge", Q);
|
|
3386
|
-
var
|
|
3387
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3388
|
-
(
|
|
3389
|
-
return o && r &&
|
|
2924
|
+
var Pr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, Rr = (e, t, n, o) => {
|
|
2925
|
+
for (var r = o > 1 ? void 0 : o ? Nr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
2926
|
+
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
2927
|
+
return o && r && Pr(t, n, r), r;
|
|
3390
2928
|
};
|
|
3391
|
-
const
|
|
3392
|
-
class
|
|
2929
|
+
const Or = (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e);
|
|
2930
|
+
class He extends ce {
|
|
3393
2931
|
constructor() {
|
|
3394
2932
|
super(), this.variant = "span";
|
|
3395
2933
|
}
|
|
@@ -3398,16 +2936,16 @@ class Ve extends fe {
|
|
|
3398
2936
|
return n ? n.trim() : t;
|
|
3399
2937
|
}
|
|
3400
2938
|
render() {
|
|
3401
|
-
const t =
|
|
3402
|
-
return
|
|
2939
|
+
const t = Or(this.variant) ? this._getTag(this.variant) : this.variant, n = it(t);
|
|
2940
|
+
return st`
|
|
3403
2941
|
<${n}>
|
|
3404
2942
|
<slot />
|
|
3405
2943
|
</${n}>
|
|
3406
2944
|
`;
|
|
3407
2945
|
}
|
|
3408
2946
|
}
|
|
3409
|
-
|
|
3410
|
-
|
|
2947
|
+
He.styles = [
|
|
2948
|
+
te`
|
|
3411
2949
|
h1,
|
|
3412
2950
|
h2,
|
|
3413
2951
|
h3,
|
|
@@ -3424,11 +2962,11 @@ Ve.styles = [
|
|
|
3424
2962
|
}
|
|
3425
2963
|
`
|
|
3426
2964
|
];
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
],
|
|
3430
|
-
customElements.get("ui-typography") || customElements.define("ui-typography",
|
|
3431
|
-
class
|
|
2965
|
+
Rr([
|
|
2966
|
+
O({ type: String })
|
|
2967
|
+
], He.prototype, "variant", 2);
|
|
2968
|
+
customElements.get("ui-typography") || customElements.define("ui-typography", He);
|
|
2969
|
+
class Fs {
|
|
3432
2970
|
constructor(t) {
|
|
3433
2971
|
(this.host = t).addController(this);
|
|
3434
2972
|
}
|
|
@@ -3443,12 +2981,12 @@ class Os {
|
|
|
3443
2981
|
this.host.removeEventListener("set-properties", this.propertyChangeHandler);
|
|
3444
2982
|
}
|
|
3445
2983
|
}
|
|
3446
|
-
class
|
|
2984
|
+
class As {
|
|
3447
2985
|
constructor(t) {
|
|
3448
2986
|
this.nodeId = "", this._host = t;
|
|
3449
2987
|
}
|
|
3450
2988
|
initialize() {
|
|
3451
|
-
return
|
|
2989
|
+
return pe(this, null, function* () {
|
|
3452
2990
|
if (this.nodeId = this._host.getAttribute("nodeId"), !this.nodeId) {
|
|
3453
2991
|
console.warn("Could not get node id in DataProvider.");
|
|
3454
2992
|
return;
|
|
@@ -3457,7 +2995,7 @@ class Ws {
|
|
|
3457
2995
|
console.warn("Could not get data in DataProvider. Container was not defined.");
|
|
3458
2996
|
return;
|
|
3459
2997
|
}
|
|
3460
|
-
const t = yield
|
|
2998
|
+
const t = yield ze.getInstance(this.container);
|
|
3461
2999
|
if (this.node = t.nodes.get(this.nodeId), !this.node) {
|
|
3462
3000
|
console.warn(`Could not get component node with ID: ${this.nodeId}.`);
|
|
3463
3001
|
return;
|
|
@@ -3474,7 +3012,7 @@ class Ws {
|
|
|
3474
3012
|
return this._host.dispatchEvent(n), n.detail.instance;
|
|
3475
3013
|
}
|
|
3476
3014
|
}
|
|
3477
|
-
const
|
|
3015
|
+
const De = "context.connectEvent", Ks = ct(
|
|
3478
3016
|
(e) => {
|
|
3479
3017
|
class t extends e {
|
|
3480
3018
|
constructor() {
|
|
@@ -3486,20 +3024,20 @@ const Le = "context.connectEvent", Zs = it(
|
|
|
3486
3024
|
this._injectContext(o);
|
|
3487
3025
|
}
|
|
3488
3026
|
_injectContext(o) {
|
|
3489
|
-
const r = (
|
|
3490
|
-
this._contextValueChanged(o,
|
|
3491
|
-
},
|
|
3027
|
+
const r = (i, c) => {
|
|
3028
|
+
this._contextValueChanged(o, i, c);
|
|
3029
|
+
}, s = new CustomEvent(De, {
|
|
3492
3030
|
bubbles: !0,
|
|
3493
3031
|
cancelable: !0,
|
|
3494
3032
|
composed: !0,
|
|
3495
3033
|
detail: { key: o, connected: !1, callback: r }
|
|
3496
3034
|
});
|
|
3497
|
-
this.dispatchEvent(
|
|
3498
|
-
unsubscribe:
|
|
3035
|
+
this.dispatchEvent(s), s.detail.connected && this._injectedContexts.set(o, {
|
|
3036
|
+
unsubscribe: s.detail.unsubscribe
|
|
3499
3037
|
});
|
|
3500
3038
|
}
|
|
3501
|
-
_contextValueChanged(o, r,
|
|
3502
|
-
r !==
|
|
3039
|
+
_contextValueChanged(o, r, s) {
|
|
3040
|
+
r !== s && (this[o] = r);
|
|
3503
3041
|
}
|
|
3504
3042
|
disconnectedCallback() {
|
|
3505
3043
|
for (const o of this._injectedContexts.values())
|
|
@@ -3509,7 +3047,7 @@ const Le = "context.connectEvent", Zs = it(
|
|
|
3509
3047
|
}
|
|
3510
3048
|
return t;
|
|
3511
3049
|
}
|
|
3512
|
-
),
|
|
3050
|
+
), Ir = ct(
|
|
3513
3051
|
(e) => {
|
|
3514
3052
|
class t extends e {
|
|
3515
3053
|
constructor() {
|
|
@@ -3521,75 +3059,75 @@ const Le = "context.connectEvent", Zs = it(
|
|
|
3521
3059
|
this._provideContext(o);
|
|
3522
3060
|
}
|
|
3523
3061
|
_provideContext(o) {
|
|
3524
|
-
const r = (
|
|
3525
|
-
const { detail:
|
|
3526
|
-
if (
|
|
3527
|
-
|
|
3528
|
-
const
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
},
|
|
3062
|
+
const r = (s) => {
|
|
3063
|
+
const { detail: i } = s;
|
|
3064
|
+
if (i.key === o) {
|
|
3065
|
+
s.stopPropagation();
|
|
3066
|
+
const c = this._providedContexts.get(o);
|
|
3067
|
+
c.callbacks.add(i.callback), i.connected = !0, i.unsubscribe = () => {
|
|
3068
|
+
c.callbacks.delete(i.callback);
|
|
3069
|
+
}, i.callback(this[o]);
|
|
3532
3070
|
}
|
|
3533
3071
|
};
|
|
3534
|
-
this.addEventListener(
|
|
3072
|
+
this.addEventListener(De, r), this._providedContexts.set(o, {
|
|
3535
3073
|
listener: r,
|
|
3536
3074
|
callbacks: /* @__PURE__ */ new Set()
|
|
3537
3075
|
});
|
|
3538
3076
|
}
|
|
3539
|
-
_updateContextValue(o, r,
|
|
3077
|
+
_updateContextValue(o, r, s) {
|
|
3540
3078
|
if (this._providedContexts.has(o)) {
|
|
3541
|
-
const
|
|
3542
|
-
for (const
|
|
3543
|
-
|
|
3079
|
+
const i = this._providedContexts.get(o);
|
|
3080
|
+
for (const c of i.callbacks)
|
|
3081
|
+
c(r, s);
|
|
3544
3082
|
}
|
|
3545
3083
|
}
|
|
3546
3084
|
shouldUpdate(o) {
|
|
3547
3085
|
const r = super.shouldUpdate(o);
|
|
3548
|
-
for (const [
|
|
3549
|
-
this.constructor.provide.includes(
|
|
3086
|
+
for (const [s, i] of o.entries())
|
|
3087
|
+
this.constructor.provide.includes(s) && this._updateContextValue(s, this[s], i);
|
|
3550
3088
|
return r;
|
|
3551
3089
|
}
|
|
3552
3090
|
disconnectedCallback() {
|
|
3553
3091
|
for (const o of this._providedContexts.values())
|
|
3554
|
-
this.removeEventListener(
|
|
3092
|
+
this.removeEventListener(De, o.listener);
|
|
3555
3093
|
super.disconnectedCallback();
|
|
3556
3094
|
}
|
|
3557
3095
|
}
|
|
3558
3096
|
return t;
|
|
3559
3097
|
}
|
|
3560
3098
|
);
|
|
3561
|
-
var
|
|
3562
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3563
|
-
(
|
|
3564
|
-
return o && r &&
|
|
3099
|
+
var Br = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, tt = (e, t, n, o) => {
|
|
3100
|
+
for (var r = o > 1 ? void 0 : o ? Wr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
3101
|
+
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
3102
|
+
return o && r && Br(t, n, r), r;
|
|
3565
3103
|
};
|
|
3566
|
-
const
|
|
3104
|
+
const qs = (e) => {
|
|
3567
3105
|
class t extends e {
|
|
3568
3106
|
constructor(...o) {
|
|
3569
|
-
super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) =>
|
|
3107
|
+
super(), this.hasPendingChildren = !1, this.pendingCount = 0, this.addEventListener("pending-state", (r) => pe(this, null, function* () {
|
|
3570
3108
|
this.hasPendingChildren = !0, this.pendingCount++, yield r.detail.promise, this.pendingCount--, this.hasPendingChildren = this.pendingCount !== 0;
|
|
3571
3109
|
}));
|
|
3572
3110
|
}
|
|
3573
3111
|
}
|
|
3574
|
-
return
|
|
3575
|
-
|
|
3576
|
-
], t.prototype, "hasPendingChildren", 2),
|
|
3577
|
-
|
|
3112
|
+
return tt([
|
|
3113
|
+
X()
|
|
3114
|
+
], t.prototype, "hasPendingChildren", 2), tt([
|
|
3115
|
+
X()
|
|
3578
3116
|
], t.prototype, "pendingCount", 2), t;
|
|
3579
|
-
},
|
|
3117
|
+
}, Ys = (e) => {
|
|
3580
3118
|
class t extends e {
|
|
3581
3119
|
constructor(...o) {
|
|
3582
3120
|
super(), this._instances = /* @__PURE__ */ new Map(), this.addEventListener("request-instance", (r) => {
|
|
3583
|
-
const
|
|
3584
|
-
|
|
3121
|
+
const s = r.detail.key;
|
|
3122
|
+
this._instances.has(s) && (r.detail.instance = this._instances.get(s), r.stopPropagation());
|
|
3585
3123
|
});
|
|
3586
3124
|
}
|
|
3587
3125
|
provideInstance(o, r) {
|
|
3588
|
-
|
|
3126
|
+
this._instances.set(o, r);
|
|
3589
3127
|
}
|
|
3590
3128
|
}
|
|
3591
3129
|
return t;
|
|
3592
|
-
},
|
|
3130
|
+
}, Hr = (e) => {
|
|
3593
3131
|
class t extends e {
|
|
3594
3132
|
requestInstance(o) {
|
|
3595
3133
|
const r = new CustomEvent("request-instance", {
|
|
@@ -3602,18 +3140,24 @@ const js = (e) => {
|
|
|
3602
3140
|
}
|
|
3603
3141
|
}
|
|
3604
3142
|
return t;
|
|
3605
|
-
},
|
|
3606
|
-
var n, o, r, i,
|
|
3143
|
+
}, jr = (e) => {
|
|
3144
|
+
var n, o, r, s, i, c, l, a, u, h, p, m, g, x, v, $, f, L, N, D, V;
|
|
3607
3145
|
const t = {};
|
|
3608
|
-
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}`), (
|
|
3146
|
+
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}`), (s = e.fonts) != null && s.medium && (t["--fonts-medium"] = `${e.fonts.medium}`), (i = e.fonts) != null && i.large && (t["--fonts-large"] = `${e.fonts.large}`), (c = e.fonts) != null && c.huge && (t["--fonts-huge"] = `${e.fonts.huge}`), (l = e.colors) != null && l.accent && (t["--colors-accent"] = `${e.colors.accent}`), (a = e.colors) != null && a.link && (t["--colors-link"] = `${e.colors.link}`), (u = e.colors) != null && u.primary && (t["--colors-primary"] = `${e.colors.primary}`), (h = e.colors) != null && h.text && (t["--colors-text"] = `${e.colors.text}`), (p = e.colors) != null && p.textLight && (t["--colors-textLight"] = `${e.colors.textLight}`), (m = e.colors) != null && m.warning && (t["--colors-warning"] = `${e.colors.warning}`), (g = e.accessibility) != null && g.border && (t["--accessibility-border"] = `${e.accessibility.border}`), (v = (x = e.accessibility) == null ? void 0 : x.colors) != null && v.inactiveText && (t["--accessibility-colors-inactiveText"] = `${e.accessibility.colors.inactiveText}`), (f = ($ = e.accessibility) == null ? void 0 : $.colors) != null && f.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}`), (L = e.sizes) != null && L.small && (t["--size-small"] = `${e.sizes.small}`), (N = e.sizes) != null && N.normal && (t["--size-normal"] = `${e.sizes.normal}`), (D = e.sizes) != null && D.medium && (t["--size-medium"] = `${e.sizes.medium}`), (V = e.sizes) != null && V.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;
|
|
3609
3147
|
};
|
|
3610
|
-
var
|
|
3611
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
3612
|
-
(
|
|
3613
|
-
return o && r &&
|
|
3148
|
+
var Vr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, j = (e, t, n, o) => {
|
|
3149
|
+
for (var r = o > 1 ? void 0 : o ? Fr(t, n) : t, s = e.length - 1, i; s >= 0; s--)
|
|
3150
|
+
(i = e[s]) && (r = (o ? i(t, n, r) : i(r)) || r);
|
|
3151
|
+
return o && r && Vr(t, n, r), r;
|
|
3614
3152
|
};
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3153
|
+
const Ar = (e) => `w-${e}`, Kr = (e) => Object.entries(e).reduce((t, [n, o]) => {
|
|
3154
|
+
if (n.indexOf("css-") > -1) {
|
|
3155
|
+
const r = n.replace("css-", "");
|
|
3156
|
+
t[r] = o;
|
|
3157
|
+
}
|
|
3158
|
+
return t;
|
|
3159
|
+
}, {}), Us = (e) => {
|
|
3160
|
+
class t extends Ir(Hr(e)) {
|
|
3617
3161
|
constructor() {
|
|
3618
3162
|
super(), this.listeners = [], this.setColumns = (o) => {
|
|
3619
3163
|
this.columns = o;
|
|
@@ -3637,53 +3181,53 @@ const Zr = (e) => `w-${e}`, Fs = (e) => {
|
|
|
3637
3181
|
}
|
|
3638
3182
|
connectedCallback() {
|
|
3639
3183
|
super.connectedCallback(), this.addEventListener("request-descriptor", this.requestNodeDescriptor), this.container = this.requestInstance("container"), this.container && Promise.all([
|
|
3640
|
-
|
|
3184
|
+
ze.getInstance(this.container),
|
|
3641
3185
|
this.container.getAsync("componentResolver")
|
|
3642
3186
|
]).then((o) => {
|
|
3643
|
-
const r = o[0],
|
|
3644
|
-
if (
|
|
3645
|
-
this._descriptor =
|
|
3187
|
+
const r = o[0], s = o[1], i = r.nodes.get(this.nodeId || "");
|
|
3188
|
+
if (i) {
|
|
3189
|
+
this._descriptor = nt(i, this.branch), this._properties = i.attributes.properties, this._context = i.attributes.context, this._layout = i.attributes.layout, this.setProperties(i.attributes.properties), this.listeners.push(
|
|
3646
3190
|
r.events.subscribe(
|
|
3647
3191
|
"components:properties-changed",
|
|
3648
|
-
(
|
|
3649
|
-
var
|
|
3650
|
-
this.nodeId === ((
|
|
3192
|
+
(u, h) => {
|
|
3193
|
+
var p;
|
|
3194
|
+
this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._properties = h.node.attributes.properties, this.setProperties(i.attributes.properties));
|
|
3651
3195
|
}
|
|
3652
3196
|
)
|
|
3653
3197
|
), this.listeners.push(
|
|
3654
3198
|
r.events.subscribe(
|
|
3655
3199
|
"components:context-changed",
|
|
3656
|
-
(
|
|
3657
|
-
var
|
|
3658
|
-
this.nodeId === ((
|
|
3200
|
+
(u, h) => {
|
|
3201
|
+
var p;
|
|
3202
|
+
this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._context = h.node.attributes.context);
|
|
3659
3203
|
}
|
|
3660
3204
|
)
|
|
3661
3205
|
), this.listeners.push(
|
|
3662
3206
|
r.events.subscribe(
|
|
3663
3207
|
"components:layout-changed",
|
|
3664
|
-
(
|
|
3665
|
-
var
|
|
3666
|
-
this.nodeId === ((
|
|
3208
|
+
(u, h) => {
|
|
3209
|
+
var p;
|
|
3210
|
+
this.nodeId === ((p = h.node) == null ? void 0 : p.id) && (this._layout = h.node.attributes.layout);
|
|
3667
3211
|
}
|
|
3668
3212
|
)
|
|
3669
3213
|
);
|
|
3670
|
-
const
|
|
3671
|
-
if (this.listeners.push(
|
|
3214
|
+
const c = i.mount(this.container);
|
|
3215
|
+
if (this.listeners.push(c), !s) {
|
|
3672
3216
|
console.warn(
|
|
3673
3217
|
"Could not find resolver. Make sure it is registered on the container."
|
|
3674
3218
|
);
|
|
3675
3219
|
return;
|
|
3676
3220
|
}
|
|
3677
|
-
const
|
|
3678
|
-
if (customElements.get(
|
|
3221
|
+
const l = Ar(this._descriptor.type);
|
|
3222
|
+
if (customElements.get(l))
|
|
3679
3223
|
return;
|
|
3680
|
-
const
|
|
3681
|
-
if (!
|
|
3224
|
+
const a = s.getComponent(this._descriptor.type);
|
|
3225
|
+
if (!a) {
|
|
3682
3226
|
console.warn("Component is missing or using incorrect import.");
|
|
3683
3227
|
return;
|
|
3684
3228
|
}
|
|
3685
|
-
return
|
|
3686
|
-
customElements.get(
|
|
3229
|
+
return a().then((u) => {
|
|
3230
|
+
customElements.get(l) || customElements.define(l, u.default);
|
|
3687
3231
|
});
|
|
3688
3232
|
}
|
|
3689
3233
|
});
|
|
@@ -3694,19 +3238,25 @@ const Zr = (e) => `w-${e}`, Fs = (e) => {
|
|
|
3694
3238
|
}), this.removeEventListener("request-descriptor", this.requestNodeDescriptor);
|
|
3695
3239
|
}
|
|
3696
3240
|
_getContextStyles() {
|
|
3697
|
-
return this._context ?
|
|
3241
|
+
return this._context ? jr(this._context) : {};
|
|
3698
3242
|
}
|
|
3699
3243
|
render() {
|
|
3700
|
-
const o = super.render(), r = this._getContextStyles(), i =
|
|
3244
|
+
const o = super.render(), r = this._getContextStyles(), s = Kr(this._properties), i = I`
|
|
3701
3245
|
<style>
|
|
3702
3246
|
:host {
|
|
3703
|
-
${Object.entries(r).map(([
|
|
3704
|
-
${
|
|
3247
|
+
${Object.entries(r).map(([c, l]) => te`
|
|
3248
|
+
${ke(`${c}: ${l};`)}
|
|
3249
|
+
`)}
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
:host > * {
|
|
3253
|
+
${Object.entries(s).map(([c, l]) => te`
|
|
3254
|
+
${ke(`${c}: ${l} !important;`)}
|
|
3705
3255
|
`)}
|
|
3706
3256
|
}
|
|
3707
3257
|
</style>
|
|
3708
3258
|
`;
|
|
3709
|
-
return
|
|
3259
|
+
return I`
|
|
3710
3260
|
<style>
|
|
3711
3261
|
:host {
|
|
3712
3262
|
--size: ${this._layout.size || "full"};
|
|
@@ -3719,131 +3269,131 @@ const Zr = (e) => `w-${e}`, Fs = (e) => {
|
|
|
3719
3269
|
`;
|
|
3720
3270
|
}
|
|
3721
3271
|
}
|
|
3722
|
-
return
|
|
3723
|
-
|
|
3724
|
-
], t.prototype, "nodeId", 2),
|
|
3725
|
-
|
|
3726
|
-
], t.prototype, "branch", 2),
|
|
3727
|
-
|
|
3728
|
-
], t.prototype, "width", 2),
|
|
3729
|
-
|
|
3730
|
-
], t.prototype, "_columns", 2),
|
|
3731
|
-
|
|
3732
|
-
], t.prototype, "columns", 2),
|
|
3733
|
-
|
|
3734
|
-
], t.prototype, "_width", 2),
|
|
3735
|
-
|
|
3736
|
-
], t.prototype, "_descriptor", 2),
|
|
3737
|
-
|
|
3738
|
-
], t.prototype, "_properties", 2),
|
|
3739
|
-
|
|
3740
|
-
], t.prototype, "_context", 2),
|
|
3741
|
-
|
|
3272
|
+
return j([
|
|
3273
|
+
O({ type: String })
|
|
3274
|
+
], t.prototype, "nodeId", 2), j([
|
|
3275
|
+
O({ type: String })
|
|
3276
|
+
], t.prototype, "branch", 2), j([
|
|
3277
|
+
O({ type: String })
|
|
3278
|
+
], t.prototype, "width", 2), j([
|
|
3279
|
+
O({ type: Number })
|
|
3280
|
+
], t.prototype, "_columns", 2), j([
|
|
3281
|
+
O({ type: Number })
|
|
3282
|
+
], t.prototype, "columns", 2), j([
|
|
3283
|
+
X()
|
|
3284
|
+
], t.prototype, "_width", 2), j([
|
|
3285
|
+
X()
|
|
3286
|
+
], t.prototype, "_descriptor", 2), j([
|
|
3287
|
+
X()
|
|
3288
|
+
], t.prototype, "_properties", 2), j([
|
|
3289
|
+
X()
|
|
3290
|
+
], t.prototype, "_context", 2), j([
|
|
3291
|
+
X()
|
|
3742
3292
|
], t.prototype, "_layout", 2), t;
|
|
3743
3293
|
};
|
|
3744
3294
|
export {
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3295
|
+
cn as AnchorLink,
|
|
3296
|
+
be as Button,
|
|
3297
|
+
wt as ButtonUi,
|
|
3298
|
+
ds as Checkbox,
|
|
3299
|
+
mn as ColumnContext,
|
|
3300
|
+
ut as ComponentNodeContext,
|
|
3301
|
+
hn as ComponentPropertyContext,
|
|
3302
|
+
Ns as Confirm,
|
|
3303
|
+
Ks as ConsumerMixin,
|
|
3304
|
+
dn as ContainerContext,
|
|
3305
|
+
fn as ConversationContext,
|
|
3306
|
+
As as DataProvider,
|
|
3307
|
+
gr as DateFormats,
|
|
3308
|
+
Ds as Drawer,
|
|
3309
|
+
Jn as DrawerAnimationType,
|
|
3310
|
+
Ts as Dropdown,
|
|
3311
|
+
ho as Empty,
|
|
3312
|
+
zs as Grid,
|
|
3313
|
+
yt as Html,
|
|
3314
|
+
We as HtmlUi,
|
|
3315
|
+
ne as Icon,
|
|
3316
|
+
Ls as Input,
|
|
3317
|
+
$o as ItemList,
|
|
3318
|
+
Ps as ItemTree,
|
|
3319
|
+
tr as Lightbox,
|
|
3320
|
+
Ie as Link,
|
|
3321
|
+
bo as List,
|
|
3322
|
+
or as Modal,
|
|
3323
|
+
Fs as NodeConnector,
|
|
3324
|
+
Rs as NotFound,
|
|
3325
|
+
bt as Overlay,
|
|
3326
|
+
vo as Paragraph,
|
|
3327
|
+
qs as PendingState,
|
|
3328
|
+
le as Portal,
|
|
3329
|
+
Ys as ProviderMixin,
|
|
3330
|
+
Hr as Requester,
|
|
3331
|
+
xo as RouteLink,
|
|
3332
|
+
pn as RoutingContext,
|
|
3333
|
+
Je as StyledText,
|
|
3334
|
+
ue as SymbolBadge,
|
|
3785
3335
|
Q as SymbolBadgeUi,
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3336
|
+
Os as TabStop,
|
|
3337
|
+
Re as Text,
|
|
3338
|
+
fr as TextLink,
|
|
3339
|
+
Is as Timestamp,
|
|
3790
3340
|
Bs as Tooltip,
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3341
|
+
Ws as TransitionComponent,
|
|
3342
|
+
ie as Typography,
|
|
3343
|
+
He as TypographyUi,
|
|
3344
|
+
Us as WidgetComponentMixin,
|
|
3345
|
+
Er as WidgetLink,
|
|
3346
|
+
Hs as WidgetOverlayOutlet,
|
|
3347
|
+
Z as borderTabStyle,
|
|
3348
|
+
Ge as browser,
|
|
3349
|
+
Kn as buttonCss,
|
|
3350
|
+
ft as contentBox,
|
|
3351
|
+
W as convertToStringAttributes,
|
|
3352
|
+
us as createEmptyComponent,
|
|
3353
|
+
js as createReactComponent,
|
|
3354
|
+
Vs as createWebComponent,
|
|
3355
|
+
sn as defaultRenderInstructions,
|
|
3356
|
+
Jt as embeddedLinkMapper,
|
|
3357
|
+
tn as filterCssProps,
|
|
3358
|
+
en as filterCssPropsStyle,
|
|
3359
|
+
nn as genericHashLink,
|
|
3360
|
+
Ms as genericHtml,
|
|
3361
|
+
ye as headingElement,
|
|
3362
|
+
rn as imageLightboxRenderer,
|
|
3363
|
+
ks as invertedHoverButton,
|
|
3364
|
+
_s as itemList,
|
|
3365
|
+
qn as linkTabStyle,
|
|
3366
|
+
Yn as list,
|
|
3367
|
+
Ss as paddedBorderTabStyle,
|
|
3368
|
+
on as processHtmlString,
|
|
3369
|
+
Se as transitionComposer,
|
|
3370
|
+
ms as useAction,
|
|
3371
|
+
hs as useChildren,
|
|
3372
|
+
ps as useColumns,
|
|
3373
|
+
fs as useComponent,
|
|
3374
|
+
Le as useComponentDescriptor,
|
|
3375
|
+
Pe as useComponentNode,
|
|
3376
|
+
re as useComponentPlatform,
|
|
3377
|
+
H as useContainer,
|
|
3378
|
+
Sn as useContext,
|
|
3379
|
+
gs as useConversation,
|
|
3380
|
+
ys as useDispatch,
|
|
3381
|
+
K as useEventListener,
|
|
3382
|
+
Tn as useEvents,
|
|
3383
|
+
q as useIsMounted,
|
|
3384
|
+
bs as useIsTabbing,
|
|
3835
3385
|
ee as useKeyPress,
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3386
|
+
vs as useLayout,
|
|
3387
|
+
dt as usePrevious,
|
|
3388
|
+
$s as useProperties,
|
|
3389
|
+
ws as useRenderState,
|
|
3390
|
+
xs as useRouteData,
|
|
3391
|
+
mt as useRouter,
|
|
3392
|
+
ht as useScroll,
|
|
3393
|
+
Es as useSettings,
|
|
3394
|
+
pt as useToggle,
|
|
3395
|
+
Cs as useTransitionEnd,
|
|
3396
|
+
Ne as useUniqueMenu,
|
|
3397
|
+
ve as useWidgetEvent
|
|
3848
3398
|
};
|
|
3849
3399
|
//# sourceMappingURL=index.js.map
|