@telia-ace/widget-components-widget-header 1.1.1-rc.1 → 1.1.1-rc.2
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/index-8825e52f.mjs +4091 -0
- package/index-f80d12f5.js +591 -0
- package/index.js +1 -1
- package/index.mjs +6 -2
- package/package.json +5 -5
- package/widget-header-b177d340.js +88 -0
- package/{widget-header-6ff6cb4a.mjs → widget-header-d82a1b88.mjs} +44 -40
- package/index-8e05a7b4.js +0 -624
- package/index-addbd6d9.mjs +0 -7971
- package/widget-header-0370023d.js +0 -88
|
@@ -0,0 +1,4091 @@
|
|
|
1
|
+
var Ut = Object.defineProperty;
|
|
2
|
+
var Jt = (t, e, n) => e in t ? Ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var b = (t, e, n) => (Jt(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { css as D, keyframes as Ct } from "@emotion/react";
|
|
5
|
+
import { jsx as h, jsxs as w, Fragment as $e } from "react/jsx-runtime";
|
|
6
|
+
import Ce, { forwardRef as V, createContext as ae, useContext as Ue, useState as M, useEffect as E, useRef as A, useCallback as T, useImperativeHandle as Je, useMemo as we, lazy as qt } from "react";
|
|
7
|
+
import v from "@emotion/styled";
|
|
8
|
+
import { CSSTransition as Xt } from "react-transition-group";
|
|
9
|
+
import { createPortal as Yt } from "react-dom";
|
|
10
|
+
import { Link as Re } from "react-router-dom";
|
|
11
|
+
const Te = /* @__PURE__ */ new WeakMap();
|
|
12
|
+
function Qt() {
|
|
13
|
+
return (t) => (Te.has(t) || Te.set(t, {}), Te.get(t));
|
|
14
|
+
}
|
|
15
|
+
const Pe = (t, e, n, ...r) => {
|
|
16
|
+
const s = `[${t.get("$environment").name || "webprovisions"}] ${n}`;
|
|
17
|
+
switch (e) {
|
|
18
|
+
case "info":
|
|
19
|
+
console.info(s, ...r);
|
|
20
|
+
break;
|
|
21
|
+
case "warning":
|
|
22
|
+
console.warn(s, ...r);
|
|
23
|
+
break;
|
|
24
|
+
case "error":
|
|
25
|
+
console.error(s, ...r);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}, ne = (t) => {
|
|
29
|
+
const e = t.container || t;
|
|
30
|
+
return {
|
|
31
|
+
info: (n, ...r) => Pe(e, "info", n, ...r),
|
|
32
|
+
warn: (n, ...r) => Pe(e, "warning", n, ...r),
|
|
33
|
+
error: (n, ...r) => Pe(e, "error", n, ...r)
|
|
34
|
+
};
|
|
35
|
+
}, O = Qt(), qe = (() => {
|
|
36
|
+
let t = 0;
|
|
37
|
+
return () => ++t;
|
|
38
|
+
})(), Xe = (t, e, n) => {
|
|
39
|
+
const r = O(t).touchQueue.get(e);
|
|
40
|
+
r && r.forEach((s) => {
|
|
41
|
+
s(n, t);
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
class Gt {
|
|
45
|
+
constructor(e, n, r, s) {
|
|
46
|
+
this.key = e, this.factory = n, this.parent = r, this.container = s, this.id = qe(), this.resolved = !1, this.constructed = !1, this.async = !0;
|
|
47
|
+
}
|
|
48
|
+
resolve() {
|
|
49
|
+
if (!this.constructed) {
|
|
50
|
+
const e = this.factory(this.parent, this.container);
|
|
51
|
+
return this.constructed = !0, this.value = Promise.resolve(e).then((n) => (this.resolved = !0, Xe(this.container, this.key, n), n));
|
|
52
|
+
}
|
|
53
|
+
return this.value;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
class en {
|
|
57
|
+
constructor(e, n, r, s) {
|
|
58
|
+
this.key = e, this.value = n, this.parent = r, this.container = s, this.id = qe(), this.async = !1, this.resolved = !1, this.constructed = !0, this.resolve = () => (this.resolved = !0, Xe(this.container, this.key, this.value), this.value);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
class tn {
|
|
62
|
+
constructor(e, n, r, s) {
|
|
63
|
+
this.key = e, this.value = n, this.parent = r, this.container = s, this.id = qe(), this.async = !1, this.resolved = !1, this.constructed = !1, this.resolve = () => {
|
|
64
|
+
this.resolved = !0, this.constructed = !0;
|
|
65
|
+
const o = this.value(this.parent, this.container);
|
|
66
|
+
return Xe(this.container, this.key, this.value), o;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
class Ye {
|
|
71
|
+
/**
|
|
72
|
+
* Creates a new instance of `Container`.
|
|
73
|
+
* @param owner The object owning this inctance.
|
|
74
|
+
* @param name Optional name for the container.
|
|
75
|
+
* @param parent Parent container this should be a child of.
|
|
76
|
+
*/
|
|
77
|
+
constructor(e, n, r) {
|
|
78
|
+
this.owner = e, this.name = n, this.parent = r, O(this).resolvers = /* @__PURE__ */ new Map(), O(this).touchQueue = /* @__PURE__ */ new Map(), O(this).children = [];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Deletes an existing resolver by its unique id.
|
|
82
|
+
* @param id Resolver id.
|
|
83
|
+
*/
|
|
84
|
+
delete(e) {
|
|
85
|
+
const n = O(this).resolvers, r = Array.from(n.values()).find((s) => s.id === e);
|
|
86
|
+
return r ? (O(this).touchQueue.delete(r.key), Promise.resolve(n.delete(r.key))) : this.parent ? this.parent.delete(e) : Promise.resolve(!1);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Clears the `Container` and any child containers by deleteing all registered resolvers.
|
|
90
|
+
*/
|
|
91
|
+
clear() {
|
|
92
|
+
const e = O(this).resolvers, n = Array.from(e.values());
|
|
93
|
+
return Promise.all(n.map((r) => {
|
|
94
|
+
if (r.constructed)
|
|
95
|
+
return Promise.resolve(r.resolve()).then((s) => {
|
|
96
|
+
if (s !== null && typeof s == "object" && typeof s.dispose == "function")
|
|
97
|
+
return s.dispose.call(s, this, r);
|
|
98
|
+
});
|
|
99
|
+
})).then(() => {
|
|
100
|
+
n.forEach((r) => this.delete(r.id)), O(this).children.forEach((r) => r.clear());
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Detaches this `Container` instance from its parent, allowing it to be garbage-collected.
|
|
105
|
+
*/
|
|
106
|
+
detach() {
|
|
107
|
+
if (this.parent) {
|
|
108
|
+
const e = O(this.parent).children, n = e.indexOf(this);
|
|
109
|
+
n > -1 && (e.splice(n, 1), delete this.parent);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Provides a way of touching a value in the `Container` without forcing it to be resolved.
|
|
114
|
+
* @param key Key of the resolved value to touch.
|
|
115
|
+
* @param handler Handler function for touching the resolved value.
|
|
116
|
+
*/
|
|
117
|
+
touch(e, n) {
|
|
118
|
+
const r = O(this).resolvers.get(e);
|
|
119
|
+
if (r && r.constructed)
|
|
120
|
+
Promise.resolve(r.resolve()).then((s) => {
|
|
121
|
+
n(s, this);
|
|
122
|
+
});
|
|
123
|
+
else {
|
|
124
|
+
const s = O(this).touchQueue;
|
|
125
|
+
let o = s.get(e);
|
|
126
|
+
o || (o = [], s.set(e, o)), o.push(n);
|
|
127
|
+
}
|
|
128
|
+
return this.parent && !r ? this.parent.touch(e, n) : Promise.resolve();
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Registers an asynchronous resolver.
|
|
132
|
+
* @param key Key of the resolver.
|
|
133
|
+
* @param factory Value factory.
|
|
134
|
+
*/
|
|
135
|
+
registerAsync(e, n) {
|
|
136
|
+
const r = O(this).resolvers.get(e);
|
|
137
|
+
r && !r.async && process.env.NODE_ENV !== "production" && ne(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${e}') previously used by a non-async resolver.`);
|
|
138
|
+
const s = new Gt(e, n, r, this);
|
|
139
|
+
return O(this).resolvers.set(e, s), s.id;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Registers a factory resolver for constructing the value to be resolved.
|
|
143
|
+
* @param key Key of the resolver.
|
|
144
|
+
* @param factory Value factory.
|
|
145
|
+
*/
|
|
146
|
+
registerFactory(e, n) {
|
|
147
|
+
const r = O(this).resolvers.get(e);
|
|
148
|
+
r && r.async && process.env.NODE_ENV !== "production" && ne(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);
|
|
149
|
+
const s = new tn(e, n, r, this);
|
|
150
|
+
return O(this).resolvers.set(e, s), s.id;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Registers an synchronous resolver.
|
|
154
|
+
* @param key Key of the resolver.
|
|
155
|
+
* @param value Value.
|
|
156
|
+
*/
|
|
157
|
+
register(e, n) {
|
|
158
|
+
const r = O(this).resolvers.get(e);
|
|
159
|
+
r && r.async && process.env.NODE_ENV !== "production" && ne(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);
|
|
160
|
+
const s = new en(e, n, r, this);
|
|
161
|
+
return O(this).resolvers.set(e, s), s.id;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Gets the value for a synchronous resolver.
|
|
165
|
+
* @param key Key of resolver to get.
|
|
166
|
+
*/
|
|
167
|
+
get(e) {
|
|
168
|
+
const n = O(this).resolvers.get(e);
|
|
169
|
+
if (n)
|
|
170
|
+
return n.async && process.env.NODE_ENV !== "production" && ne(this).warn(`You are retrieving an async value (with key '${e}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`), n.resolve();
|
|
171
|
+
if (this.parent)
|
|
172
|
+
return this.parent.get(e);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Gets the value for a asynchronous resolver.
|
|
176
|
+
* @param key Key of resolver to get.
|
|
177
|
+
*/
|
|
178
|
+
getAsync(e) {
|
|
179
|
+
const n = O(this).resolvers.get(e);
|
|
180
|
+
if (n) {
|
|
181
|
+
if (!n.async)
|
|
182
|
+
throw process.env.NODE_ENV !== "production" && ne(this).warn(`You are retrieving a non-async value (with key '${e}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`), "Mismatching resolver type";
|
|
183
|
+
return n.resolve();
|
|
184
|
+
}
|
|
185
|
+
return this.parent ? this.parent.getAsync(e) : Promise.resolve(void 0);
|
|
186
|
+
}
|
|
187
|
+
getMany(...e) {
|
|
188
|
+
const n = {};
|
|
189
|
+
return e.forEach((r) => n[r] = this.get(r)), n;
|
|
190
|
+
}
|
|
191
|
+
getManyAsync(...e) {
|
|
192
|
+
const n = {};
|
|
193
|
+
return Promise.all(e.map((r) => this.getAsync(r).then((s) => n[r] = s))).then(() => n);
|
|
194
|
+
}
|
|
195
|
+
createChild(e, n) {
|
|
196
|
+
const r = new Ye(e, n, this);
|
|
197
|
+
return O(this).children.push(r), r;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
var xe = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(xe || {}), G = /* @__PURE__ */ ((t) => (t.Pre = "pre", t.Post = "post", t))(G || {});
|
|
201
|
+
const nn = (t, e, n, r) => {
|
|
202
|
+
try {
|
|
203
|
+
const s = new e(n, r);
|
|
204
|
+
return {
|
|
205
|
+
name: t,
|
|
206
|
+
invoke: (o, i) => {
|
|
207
|
+
let c;
|
|
208
|
+
return s[o] && (c = s[o].call(s, i)), Promise.resolve(c);
|
|
209
|
+
},
|
|
210
|
+
getInstance: () => s
|
|
211
|
+
};
|
|
212
|
+
} catch (s) {
|
|
213
|
+
if (s.message && s.message.indexOf("is not a constructor") >= 0)
|
|
214
|
+
return {
|
|
215
|
+
name: t,
|
|
216
|
+
invoke: (o) => {
|
|
217
|
+
let i;
|
|
218
|
+
return o === "initialize" && (i = e(n, r)), Promise.resolve(i);
|
|
219
|
+
},
|
|
220
|
+
getInstance: () => e
|
|
221
|
+
};
|
|
222
|
+
throw s;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
function ft(t, e) {
|
|
226
|
+
return typeof t > "u" ? e : t;
|
|
227
|
+
}
|
|
228
|
+
class rn {
|
|
229
|
+
constructor(e = {}) {
|
|
230
|
+
this.part = e;
|
|
231
|
+
}
|
|
232
|
+
createCommand(e, n, r) {
|
|
233
|
+
let s;
|
|
234
|
+
typeof n == "function" ? s = {
|
|
235
|
+
scope: xe.Widget,
|
|
236
|
+
stage: G.Post,
|
|
237
|
+
defaultArgs: void 0,
|
|
238
|
+
handlerResolver: n
|
|
239
|
+
} : s = {
|
|
240
|
+
scope: ft(n.scope, xe.Widget),
|
|
241
|
+
stage: ft(n.stage, G.Post),
|
|
242
|
+
defaultArgs: n.defaultArgs,
|
|
243
|
+
handlerResolver: r
|
|
244
|
+
};
|
|
245
|
+
let o = this.part;
|
|
246
|
+
const i = e.split(".");
|
|
247
|
+
return i.forEach((c, l) => {
|
|
248
|
+
l === i.length - 1 ? o[c] || (o[c] = () => s) : o = this.part[c] = this.part[c] || {};
|
|
249
|
+
}), this;
|
|
250
|
+
}
|
|
251
|
+
get() {
|
|
252
|
+
return this.part;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
const Ee = (t) => {
|
|
256
|
+
const e = new rn({});
|
|
257
|
+
return t(e), e.get();
|
|
258
|
+
};
|
|
259
|
+
Ee((t) => {
|
|
260
|
+
t.createCommand(
|
|
261
|
+
"types.register",
|
|
262
|
+
{ scope: xe.Implementation, stage: G.Pre },
|
|
263
|
+
(e) => (n, r) => {
|
|
264
|
+
e.container.get("$types")[n] = r;
|
|
265
|
+
}
|
|
266
|
+
).createCommand(
|
|
267
|
+
"type",
|
|
268
|
+
{ stage: G.Pre },
|
|
269
|
+
(e) => (n) => {
|
|
270
|
+
e.container.register("$type", n);
|
|
271
|
+
}
|
|
272
|
+
).createCommand(
|
|
273
|
+
"settings",
|
|
274
|
+
{ stage: G.Pre, defaultArgs: [null] },
|
|
275
|
+
(e) => (n) => {
|
|
276
|
+
e.events.dispatch(
|
|
277
|
+
"settings:change",
|
|
278
|
+
n,
|
|
279
|
+
{ bubbles: !0 }
|
|
280
|
+
), e.container.register("$settings", n);
|
|
281
|
+
}
|
|
282
|
+
).createCommand(
|
|
283
|
+
"plugin",
|
|
284
|
+
{ stage: G.Pre },
|
|
285
|
+
(e) => (n, r, s) => {
|
|
286
|
+
const { container: o } = e;
|
|
287
|
+
let i = null, c = n, l = r;
|
|
288
|
+
typeof n == "string" && (i = n, c = r, l = s);
|
|
289
|
+
const d = (a) => {
|
|
290
|
+
const { transformPluginSettings: u } = e.container.get("$environmentOptions"), f = u ? u(
|
|
291
|
+
l || {},
|
|
292
|
+
i,
|
|
293
|
+
e.container,
|
|
294
|
+
c
|
|
295
|
+
) : r;
|
|
296
|
+
try {
|
|
297
|
+
const p = nn(
|
|
298
|
+
i,
|
|
299
|
+
c,
|
|
300
|
+
o,
|
|
301
|
+
f
|
|
302
|
+
);
|
|
303
|
+
o.get("$plugins").push(p), a && p.invoke("initialize", null);
|
|
304
|
+
} catch (p) {
|
|
305
|
+
ne(e).warn("Error when initializing plugin", p);
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
e.container.get("$instance") ? d(!0) : e.events.subscribeOnce("widget:instance-created", () => d(!1));
|
|
309
|
+
}
|
|
310
|
+
).createCommand(
|
|
311
|
+
"container.register",
|
|
312
|
+
(e) => (n, r) => {
|
|
313
|
+
e.container.register(n, r);
|
|
314
|
+
}
|
|
315
|
+
).createCommand(
|
|
316
|
+
"container.registerAsync",
|
|
317
|
+
(e) => (n, r) => {
|
|
318
|
+
e.container.registerAsync(n, r);
|
|
319
|
+
}
|
|
320
|
+
).createCommand(
|
|
321
|
+
"container.registerFactory",
|
|
322
|
+
(e) => (n, r) => {
|
|
323
|
+
e.container.registerFactory(n, r);
|
|
324
|
+
}
|
|
325
|
+
).createCommand(
|
|
326
|
+
"container.touch",
|
|
327
|
+
(e) => (n, r) => {
|
|
328
|
+
e.container.touch(n, r);
|
|
329
|
+
}
|
|
330
|
+
).createCommand(
|
|
331
|
+
"csp",
|
|
332
|
+
{},
|
|
333
|
+
(e) => (n) => {
|
|
334
|
+
e.container.register("csp", n);
|
|
335
|
+
}
|
|
336
|
+
);
|
|
337
|
+
});
|
|
338
|
+
var wt = /* @__PURE__ */ ((t) => (t.Activating = "activating", t.Loading = "loading", t.Activated = "activated", t.Deactivating = "deactivating", t.Deactivated = "deactivated", t))(wt || {});
|
|
339
|
+
const xt = (t) => {
|
|
340
|
+
const e = [];
|
|
341
|
+
return [
|
|
342
|
+
(r, s) => {
|
|
343
|
+
e.push(t.subscribe(r, s));
|
|
344
|
+
},
|
|
345
|
+
() => {
|
|
346
|
+
e.forEach((r) => {
|
|
347
|
+
r();
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
];
|
|
351
|
+
};
|
|
352
|
+
class Qe {
|
|
353
|
+
constructor(e, n = []) {
|
|
354
|
+
this.platform = e, this.rules = n;
|
|
355
|
+
}
|
|
356
|
+
match(e) {
|
|
357
|
+
return this.rules.every((n) => !(n.id && n.id !== e.id || n.type && n.type !== e.type));
|
|
358
|
+
}
|
|
359
|
+
ofType(e) {
|
|
360
|
+
return this.rules.push({ type: e }), this;
|
|
361
|
+
}
|
|
362
|
+
withId(e) {
|
|
363
|
+
return this.rules.push({ id: e }), this;
|
|
364
|
+
}
|
|
365
|
+
select() {
|
|
366
|
+
return new sn(this.platform, this);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
class kt {
|
|
370
|
+
constructor(e, n, r) {
|
|
371
|
+
b(this, "actions");
|
|
372
|
+
b(this, "subscribe");
|
|
373
|
+
b(this, "unsubscribe");
|
|
374
|
+
this.platform = e, this.node = n, this.actions = new Ge(
|
|
375
|
+
e,
|
|
376
|
+
new Qe(e).withId(n.id),
|
|
377
|
+
r
|
|
378
|
+
);
|
|
379
|
+
const [s, o] = xt(this.platform.events);
|
|
380
|
+
this.subscribe = s, this.unsubscribe = o;
|
|
381
|
+
}
|
|
382
|
+
properties(e) {
|
|
383
|
+
return e && this.node.touchProperties((n) => e(n)), this.node.attributes.properties;
|
|
384
|
+
}
|
|
385
|
+
context(e) {
|
|
386
|
+
return e && this.subscribe("components:context-changed", (n, { node: r }) => {
|
|
387
|
+
r === this.node && e(this.node.attributes.context);
|
|
388
|
+
}), this.node.attributes.context;
|
|
389
|
+
}
|
|
390
|
+
layout(e) {
|
|
391
|
+
return e && this.subscribe("components:layout-changed", (n, { node: r }) => {
|
|
392
|
+
r === this.node && e(this.node.attributes.layout);
|
|
393
|
+
}), this.node.attributes.layout;
|
|
394
|
+
}
|
|
395
|
+
writeProperties(e, n) {
|
|
396
|
+
this.node.writeProperties(e, n);
|
|
397
|
+
}
|
|
398
|
+
writeContext(e, n) {
|
|
399
|
+
this.node.writeProperties(e, n);
|
|
400
|
+
}
|
|
401
|
+
writeLayout(e, n) {
|
|
402
|
+
this.node.writeLayout(e, n);
|
|
403
|
+
}
|
|
404
|
+
dispose() {
|
|
405
|
+
this.unsubscribe(), this.actions.dispose();
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
class sn {
|
|
409
|
+
constructor(e, n, r = !0) {
|
|
410
|
+
b(this, "actions");
|
|
411
|
+
b(this, "removes", []);
|
|
412
|
+
this.platform = e, this.target = n, this.clearOnDispose = r, this.actions = new Ge(this.platform, this.target);
|
|
413
|
+
}
|
|
414
|
+
writeProperties(e, n) {
|
|
415
|
+
this.removes.push(
|
|
416
|
+
this.platform.write({
|
|
417
|
+
options: n,
|
|
418
|
+
attributes: { properties: e },
|
|
419
|
+
target: this.target,
|
|
420
|
+
removable: this.clearOnDispose
|
|
421
|
+
})
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
writeContext(e, n) {
|
|
425
|
+
this.removes.push(
|
|
426
|
+
this.platform.write({
|
|
427
|
+
options: n,
|
|
428
|
+
attributes: { context: e },
|
|
429
|
+
target: this.target,
|
|
430
|
+
removable: this.clearOnDispose
|
|
431
|
+
})
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
writeLayout(e, n) {
|
|
435
|
+
this.removes.push(
|
|
436
|
+
this.platform.write({
|
|
437
|
+
options: n,
|
|
438
|
+
attributes: { layout: e },
|
|
439
|
+
target: this.target,
|
|
440
|
+
removable: this.clearOnDispose
|
|
441
|
+
})
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
dispose() {
|
|
445
|
+
this.removes.forEach((e) => {
|
|
446
|
+
e();
|
|
447
|
+
}), this.actions.dispose();
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
const on = (t, e, n) => {
|
|
451
|
+
const r = t.concat(), s = (o, i, c) => {
|
|
452
|
+
let l = !0;
|
|
453
|
+
if (r.length) {
|
|
454
|
+
const d = r.shift(), a = (u, f) => (l = !1, s(u, Object.assign({}, i, f), c));
|
|
455
|
+
return Promise.resolve(d(o, a, c)).then((u) => ({
|
|
456
|
+
...u,
|
|
457
|
+
cancelled: l
|
|
458
|
+
}));
|
|
459
|
+
}
|
|
460
|
+
return Promise.resolve({ data: o, cancelled: !1, options: i });
|
|
461
|
+
};
|
|
462
|
+
return s(e, {}, n);
|
|
463
|
+
};
|
|
464
|
+
class Ge {
|
|
465
|
+
constructor(e, n, r) {
|
|
466
|
+
b(this, "subscriptions", []);
|
|
467
|
+
this.platform = e, this.target = n, this.ns = r, this.create = this.create.bind(this);
|
|
468
|
+
}
|
|
469
|
+
create(e, n = () => {
|
|
470
|
+
}) {
|
|
471
|
+
const r = {
|
|
472
|
+
key: e,
|
|
473
|
+
fn: n,
|
|
474
|
+
target: this.target,
|
|
475
|
+
ns: this.ns
|
|
476
|
+
};
|
|
477
|
+
this.platform.actionsState.handlers.push(r);
|
|
478
|
+
const s = () => {
|
|
479
|
+
const o = this.platform.actionsState.handlers.indexOf(r);
|
|
480
|
+
o > -1 && this.platform.actionsState.handlers.splice(o, 1);
|
|
481
|
+
};
|
|
482
|
+
return this.subscriptions.push(s), s;
|
|
483
|
+
}
|
|
484
|
+
dispatch(e, n) {
|
|
485
|
+
const r = this.platform.nodes.all.concat(
|
|
486
|
+
this.platform.nodes.detached
|
|
487
|
+
), s = {}, o = this.platform.actionsState.handlers.filter(
|
|
488
|
+
(i) => i.key === e && (!i.ns || !this.ns || i.ns === this.ns)
|
|
489
|
+
);
|
|
490
|
+
return Promise.all(
|
|
491
|
+
o.map((i) => {
|
|
492
|
+
const c = r.filter(
|
|
493
|
+
(d) => i.target.match(d) && this.target.match(d)
|
|
494
|
+
), l = this.platform.actionsState.watchers.filter((d) => d.key === e && (!d.ns || !this.ns || d.ns === this.ns) && c.some((a) => d.target.match(a))).map((d) => d.fn);
|
|
495
|
+
return Promise.all(
|
|
496
|
+
c.map((d) => {
|
|
497
|
+
const a = new kt(
|
|
498
|
+
this.platform,
|
|
499
|
+
d,
|
|
500
|
+
this.ns
|
|
501
|
+
);
|
|
502
|
+
return on(l, n, a).then((u) => {
|
|
503
|
+
const { data: f = {}, options: p, cancelled: y } = u;
|
|
504
|
+
return Promise.resolve(
|
|
505
|
+
y ? {} : i.fn(f, p, a)
|
|
506
|
+
).then((m) => {
|
|
507
|
+
s[d.id] = m;
|
|
508
|
+
});
|
|
509
|
+
});
|
|
510
|
+
})
|
|
511
|
+
);
|
|
512
|
+
})
|
|
513
|
+
).then(() => s);
|
|
514
|
+
}
|
|
515
|
+
watch(e, n) {
|
|
516
|
+
let r = e, s = this.ns;
|
|
517
|
+
const o = e.split(".");
|
|
518
|
+
o.length > 1 && (s = o[0], r = o.splice(1).join("."));
|
|
519
|
+
const i = {
|
|
520
|
+
fn: n,
|
|
521
|
+
target: this.target,
|
|
522
|
+
key: r,
|
|
523
|
+
ns: s
|
|
524
|
+
};
|
|
525
|
+
this.platform.actionsState.watchers.push(i);
|
|
526
|
+
const c = () => {
|
|
527
|
+
const l = this.platform.actionsState.watchers.indexOf(i);
|
|
528
|
+
l > -1 && this.platform.actionsState.watchers.splice(l, 1);
|
|
529
|
+
};
|
|
530
|
+
return this.subscriptions.push(c), c;
|
|
531
|
+
}
|
|
532
|
+
dispose() {
|
|
533
|
+
this.subscriptions.forEach((e) => e());
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
Ee((t) => {
|
|
537
|
+
t.createCommand("components", (e) => (n) => {
|
|
538
|
+
e.events.subscribeOnce("components:platform-created", (r, { platform: s }) => {
|
|
539
|
+
n.handlers && n.handlers.forEach(([o, i]) => {
|
|
540
|
+
s.addComponentHandler(o, i);
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
function an(t) {
|
|
546
|
+
const e = [];
|
|
547
|
+
return t.forEach((n) => {
|
|
548
|
+
e.indexOf(n) === -1 && e.push(n);
|
|
549
|
+
}), e;
|
|
550
|
+
}
|
|
551
|
+
function Ze(t = "", e = "") {
|
|
552
|
+
const n = t.split(" ").concat(e.split(" "));
|
|
553
|
+
return an(n).join(" ").trim();
|
|
554
|
+
}
|
|
555
|
+
function cn(t, e) {
|
|
556
|
+
if (t) {
|
|
557
|
+
if (typeof e == "string")
|
|
558
|
+
return e;
|
|
559
|
+
if (Array.isArray(e)) {
|
|
560
|
+
let n = "";
|
|
561
|
+
return e.forEach((r) => n = Ze(n, r)), n;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
function N(...t) {
|
|
566
|
+
let e = "";
|
|
567
|
+
return t.length && t.forEach((n) => {
|
|
568
|
+
typeof n == "string" ? e = Ze(e, n) : Array.isArray(n) ? e = Ze(e, cn(...n)) : typeof n < "u" && n !== null && process.env.NODE_ENV !== "production" && P.warn(
|
|
569
|
+
"appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",
|
|
570
|
+
...t
|
|
571
|
+
);
|
|
572
|
+
}), e;
|
|
573
|
+
}
|
|
574
|
+
const ge = (t, e, ...n) => typeof e == "string" ? t(`[humany] ${e}`, ...n) : t(e, ...n), re = class {
|
|
575
|
+
constructor() {
|
|
576
|
+
b(this, "keys", []);
|
|
577
|
+
/**
|
|
578
|
+
* Checks if key already has been logged.
|
|
579
|
+
* If not, passes following args to console.log
|
|
580
|
+
* and stores key in logged messages.
|
|
581
|
+
*/
|
|
582
|
+
b(this, "log", (e, ...n) => this.lookup(e, () => re.log(...n)));
|
|
583
|
+
/**
|
|
584
|
+
* Checks if key already has been logged.
|
|
585
|
+
* If not, passes following args to console.warn
|
|
586
|
+
* and stores key in logged messages.
|
|
587
|
+
*/
|
|
588
|
+
b(this, "warn", (e, ...n) => this.lookup(e, () => re.warn(...n)));
|
|
589
|
+
/**
|
|
590
|
+
* Checks if key already has been logged.
|
|
591
|
+
* If not, passes following args to console.error
|
|
592
|
+
* and stores key in logged messages.
|
|
593
|
+
*/
|
|
594
|
+
b(this, "error", (e, ...n) => this.lookup(e, () => re.error(...n)));
|
|
595
|
+
/**
|
|
596
|
+
* Checks if key already has been logged.
|
|
597
|
+
* If not, passes following args to console.info
|
|
598
|
+
* and stores key in logged messages.
|
|
599
|
+
*/
|
|
600
|
+
b(this, "info", (e, ...n) => this.lookup(e, () => re.info(...n)));
|
|
601
|
+
}
|
|
602
|
+
lookup(e, n) {
|
|
603
|
+
this.keys.indexOf(e) === -1 && (this.keys.push(e), n());
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
let P = re;
|
|
607
|
+
/**
|
|
608
|
+
* Passes args to console.log
|
|
609
|
+
*/
|
|
610
|
+
b(P, "log", (...e) => ge(console.log, ...e)), /**
|
|
611
|
+
* Passes args to console.warn
|
|
612
|
+
*/
|
|
613
|
+
b(P, "warn", (...e) => ge(console.warn, ...e)), /**
|
|
614
|
+
* Passes args to console.error
|
|
615
|
+
*/
|
|
616
|
+
b(P, "error", (...e) => ge(console.error, ...e)), /**
|
|
617
|
+
* Passes args to console.info
|
|
618
|
+
*/
|
|
619
|
+
b(P, "info", (...e) => ge(console.info, ...e));
|
|
620
|
+
const $t = (t) => {
|
|
621
|
+
let e = {}, n, r;
|
|
622
|
+
if (typeof t != "object" || t === null)
|
|
623
|
+
return t;
|
|
624
|
+
e = Array.isArray(t) ? [] : {};
|
|
625
|
+
for (r in t)
|
|
626
|
+
n = t[r], e[r] = typeof n == "object" && n !== null ? $t(n) : n;
|
|
627
|
+
return e;
|
|
628
|
+
};
|
|
629
|
+
function pt(t) {
|
|
630
|
+
let e = 0;
|
|
631
|
+
if (t.length === 0)
|
|
632
|
+
return e.toString();
|
|
633
|
+
for (let n = 0; n < t.length; n++) {
|
|
634
|
+
const r = t.charCodeAt(n);
|
|
635
|
+
e = (e << 5) - e + r, e = e & e;
|
|
636
|
+
}
|
|
637
|
+
return e.toString();
|
|
638
|
+
}
|
|
639
|
+
function ln(t) {
|
|
640
|
+
return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/\s+/g, "-").toLowerCase();
|
|
641
|
+
}
|
|
642
|
+
class un {
|
|
643
|
+
constructor(e, n) {
|
|
644
|
+
b(this, "tasks", []);
|
|
645
|
+
b(this, "current", Promise.resolve());
|
|
646
|
+
this.lockWarningTime = e, this.lockErrorTime = n, this.next = this.next.bind(this);
|
|
647
|
+
}
|
|
648
|
+
add(e, n, r, s) {
|
|
649
|
+
this.tasks.push({ task: e, resolve: n, reject: r, done: s }), this.next();
|
|
650
|
+
}
|
|
651
|
+
next() {
|
|
652
|
+
this.current = this.current.then(() => {
|
|
653
|
+
const e = this.tasks.shift();
|
|
654
|
+
if (e) {
|
|
655
|
+
let n;
|
|
656
|
+
const r = setTimeout(() => {
|
|
657
|
+
process.env.NODE_ENV !== "production" && P.warn(
|
|
658
|
+
`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,
|
|
659
|
+
e
|
|
660
|
+
), n = setTimeout(() => {
|
|
661
|
+
e.reject("lock timeout exceeded");
|
|
662
|
+
}, this.lockErrorTime);
|
|
663
|
+
}, this.lockWarningTime), s = Promise.resolve(e.task()).then((o) => (clearTimeout(r), clearTimeout(n), o));
|
|
664
|
+
return Promise.resolve(s).then(this.next).then(
|
|
665
|
+
() => s.then((o) => {
|
|
666
|
+
e.done(), e.resolve(o);
|
|
667
|
+
})
|
|
668
|
+
).catch((o) => (e.done(), e.reject(o), this.next()));
|
|
669
|
+
}
|
|
670
|
+
return Promise.resolve();
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
const ye = /* @__PURE__ */ new WeakMap();
|
|
675
|
+
function Le(t, e = 5e3, n = 1e3) {
|
|
676
|
+
return ye.has(t) || ye.set(t, new un(e, n)), (r) => new Promise((s, o) => {
|
|
677
|
+
const i = ye.get(t);
|
|
678
|
+
i.add(r, s, o, () => {
|
|
679
|
+
i.tasks.length || ye.delete(t);
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
const hn = (t = {}) => (Object.keys(t).forEach((e) => {
|
|
684
|
+
(t[e] === null || typeof t[e] > "u") && delete t[e];
|
|
685
|
+
}), t), Y = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
686
|
+
function he() {
|
|
687
|
+
return Y() + Y() + "-" + Y() + "-" + Y() + "-" + Y() + "-" + Y() + Y() + Y();
|
|
688
|
+
}
|
|
689
|
+
class mt {
|
|
690
|
+
constructor(e, n) {
|
|
691
|
+
b(this, "id");
|
|
692
|
+
b(this, "type");
|
|
693
|
+
b(this, "name");
|
|
694
|
+
b(this, "parent");
|
|
695
|
+
b(this, "tags", []);
|
|
696
|
+
b(this, "children", {});
|
|
697
|
+
b(this, "changesets", []);
|
|
698
|
+
b(this, "attributes");
|
|
699
|
+
b(this, "mountCount", 0);
|
|
700
|
+
this.events = e, this.id = he(), this.type = n, this.attributes = {
|
|
701
|
+
context: {},
|
|
702
|
+
properties: {},
|
|
703
|
+
layout: {},
|
|
704
|
+
tags: []
|
|
705
|
+
}, this.writeLayout({ size: "full", indent: 0 });
|
|
706
|
+
}
|
|
707
|
+
mount(e, n) {
|
|
708
|
+
let r = e.get("mounted-nodes");
|
|
709
|
+
return r || (r = /* @__PURE__ */ new Map(), e.register("mounted-nodes", r)), r.has(this) ? (process.env.NODE_ENV !== "production" && P.error(
|
|
710
|
+
"Trying to mount an already mounted component node.",
|
|
711
|
+
this
|
|
712
|
+
), () => {
|
|
713
|
+
}) : (this.events.dispatch("components:node-mounted", { node: this }), this.mountCount === 0 && (this.mountCount = this.mountCount + 1, this.events.dispatch("components:node-enter", { node: this })), () => {
|
|
714
|
+
r.delete(this), this.events.dispatch("components:node-unmounted", { node: this }), this.mountCount = this.mountCount - 1, this.mountCount === 0 && this.events.dispatch("components:node-exit", { node: this });
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
appendChild(e, n = "default") {
|
|
718
|
+
if (e.parent) {
|
|
719
|
+
if (e.parent === this)
|
|
720
|
+
return;
|
|
721
|
+
e.parent.removeChild(e);
|
|
722
|
+
}
|
|
723
|
+
e.parent = this, this.children[n] || (this.children[n] = []), this.children[n].push(e), this.events.dispatch("components:node-appended", { node: e });
|
|
724
|
+
}
|
|
725
|
+
prependChild(e, n = "default") {
|
|
726
|
+
if (e.parent) {
|
|
727
|
+
if (e.parent === this)
|
|
728
|
+
return;
|
|
729
|
+
e.parent.removeChild(e);
|
|
730
|
+
}
|
|
731
|
+
e.parent = this, this.children[n] || (this.children[n] = []), this.children[n].unshift(e), this.events.dispatch("components:node-appended", { node: e });
|
|
732
|
+
}
|
|
733
|
+
touchProperties(e, n = {}, r) {
|
|
734
|
+
const o = [{ properties: e }, n];
|
|
735
|
+
return this.changesets.push(o), this.events.dispatch("components:set-properties", { node: this }), () => {
|
|
736
|
+
if (r) {
|
|
737
|
+
const i = this.changesets.indexOf(o);
|
|
738
|
+
i > -1 && (this.changesets.splice(i, 1), this.events.dispatch("components:set-properties", { node: this }));
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
writeProperties(e, n = {}, r) {
|
|
743
|
+
const o = [{ properties: e }, n];
|
|
744
|
+
return this.changesets.push(o), this.events.dispatch("components:set-properties", { node: this }), () => {
|
|
745
|
+
if (r) {
|
|
746
|
+
const i = this.changesets.indexOf(o);
|
|
747
|
+
i > -1 && (this.changesets.splice(i, 1), this.events.dispatch("components:set-properties", { node: this }));
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
writeLayout(e, n = {}, r) {
|
|
752
|
+
const o = [{ layout: e }, n];
|
|
753
|
+
return this.changesets.push(o), this.events.dispatch("components:set-layout", { node: this }), () => {
|
|
754
|
+
if (!r)
|
|
755
|
+
return;
|
|
756
|
+
const i = this.changesets.indexOf(o);
|
|
757
|
+
i > -1 && (this.changesets.splice(i, 1), this.events.dispatch("components:set-layout", { node: this }));
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
writeContext(e, n = {}, r) {
|
|
761
|
+
const o = [{ context: e }, n];
|
|
762
|
+
return this.changesets.push(o), this.events.dispatch("components:set-context", { node: this }), () => {
|
|
763
|
+
if (!r)
|
|
764
|
+
return;
|
|
765
|
+
const i = this.changesets.indexOf(o);
|
|
766
|
+
i > -1 && (this.changesets.splice(i, 1), this.events.dispatch("components:set-context", { node: this }));
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
getChildren(e = "default") {
|
|
770
|
+
const n = this.children[e] || [];
|
|
771
|
+
return n.reduce((r, s, o) => {
|
|
772
|
+
const { order: i = o } = s.attributes.layout;
|
|
773
|
+
return r[i] ? r.splice(i, 0, s) : r[i] = s, r;
|
|
774
|
+
}, Array(n.length));
|
|
775
|
+
}
|
|
776
|
+
remove() {
|
|
777
|
+
this.parent && this.parent.removeChild(this);
|
|
778
|
+
}
|
|
779
|
+
removeChild(e) {
|
|
780
|
+
Object.keys(this.children).forEach((n) => {
|
|
781
|
+
const r = this.children[n], s = r.indexOf(e);
|
|
782
|
+
s > -1 && (r.splice(s, 1), this.events.dispatch("components:node-removed", {
|
|
783
|
+
node: e,
|
|
784
|
+
parentNode: this
|
|
785
|
+
}));
|
|
786
|
+
}), delete e.parent;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
const Et = (t, e, n) => {
|
|
790
|
+
for (let r = 0, s = t.length; r < s && n(t[r]) !== !0; r++) {
|
|
791
|
+
const o = e[t[r].id] || "default", i = t[r].getChildren(o);
|
|
792
|
+
Et(i, e, n);
|
|
793
|
+
}
|
|
794
|
+
}, et = (t, e, n) => {
|
|
795
|
+
if (n(t) !== !0) {
|
|
796
|
+
const r = e[t.id] || "default", s = t.children[r];
|
|
797
|
+
Et(s, e, n);
|
|
798
|
+
}
|
|
799
|
+
}, De = (t, e) => {
|
|
800
|
+
const n = [];
|
|
801
|
+
return et(t, e, (r) => {
|
|
802
|
+
n.push(r);
|
|
803
|
+
}), n;
|
|
804
|
+
}, dn = (t, e, n) => {
|
|
805
|
+
let r;
|
|
806
|
+
return et(t, e, (s) => {
|
|
807
|
+
if (n(s))
|
|
808
|
+
return r = s, !0;
|
|
809
|
+
}), r;
|
|
810
|
+
};
|
|
811
|
+
class fn {
|
|
812
|
+
constructor(e, n, r) {
|
|
813
|
+
b(this, "all", []);
|
|
814
|
+
b(this, "visible", []);
|
|
815
|
+
b(this, "detached", []);
|
|
816
|
+
this.root = e, this.switches = n, r.subscribe("components:node-appended", (s, o) => {
|
|
817
|
+
this.all.push(o.node), this.visible = De(e, n);
|
|
818
|
+
}), r.subscribe("components:node-removed", (s, o) => {
|
|
819
|
+
let i = this.all.indexOf(o.node);
|
|
820
|
+
i > -1 && this.all.splice(i, 1), i = this.visible.indexOf(o.node), i > -1 && this.visible.splice(i, 1), this.visible = De(e, n);
|
|
821
|
+
}), r.subscribe("components:node-switched", (s, o) => {
|
|
822
|
+
this.visible = De(e, n);
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
query(e = {}) {
|
|
826
|
+
const n = [];
|
|
827
|
+
return et(this.root, this.switches, (r) => {
|
|
828
|
+
Object.keys(e).every((o) => e[o] === r[o]) && n.push(r);
|
|
829
|
+
}), n;
|
|
830
|
+
}
|
|
831
|
+
get(e) {
|
|
832
|
+
return dn(this.root, this.switches, (n) => n.id === e) || this.detached.find((n) => n.id === e);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
class pn {
|
|
836
|
+
constructor() {
|
|
837
|
+
b(this, "handlers", /* @__PURE__ */ new Map());
|
|
838
|
+
}
|
|
839
|
+
add(e, n) {
|
|
840
|
+
this.handlers.set(e, n);
|
|
841
|
+
}
|
|
842
|
+
get(e) {
|
|
843
|
+
return this.handlers.get(e);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
const mn = (t) => {
|
|
847
|
+
let e = t, n = 0;
|
|
848
|
+
for (; e.parent; )
|
|
849
|
+
n = n + 1, e = e.parent;
|
|
850
|
+
return n;
|
|
851
|
+
}, gn = (t) => t.map(([n, r]) => [mn(n), n, r]).sort(([n], [r]) => n - r).map(([, n, r]) => [n, r]), He = (t) => t instanceof Date ? !1 : t && typeof t == "object" && !Array.isArray(t), K = (t, ...e) => {
|
|
852
|
+
if (!e.length)
|
|
853
|
+
return t;
|
|
854
|
+
const n = e.shift();
|
|
855
|
+
if (He(t) && He(n))
|
|
856
|
+
for (const r in n)
|
|
857
|
+
He(n[r]) ? (t[r] || Object.assign(t, { [r]: {} }), K(t[r], n[r])) : Object.assign(t, { [r]: n[r] });
|
|
858
|
+
return K(t, ...e);
|
|
859
|
+
}, yn = (t, e) => !t || t === "all" ? !0 : t.some((n) => e.indexOf(n) > -1), vn = (t, e) => {
|
|
860
|
+
let n = [], r = [], s;
|
|
861
|
+
const o = () => {
|
|
862
|
+
process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
|
|
863
|
+
const c = /* @__PURE__ */ new Map(), l = gn(n.map((a, u) => [a, r[u]])), d = (a, u) => {
|
|
864
|
+
var R;
|
|
865
|
+
const f = c.get(a) || {}, p = u.context && !f.context, y = u.properties && !f.properties, m = u.layout && !f.layout;
|
|
866
|
+
c.set(a, {
|
|
867
|
+
context: f.context || p,
|
|
868
|
+
properties: f.properties || y,
|
|
869
|
+
layout: f.layout || m
|
|
870
|
+
}), y && (a.attributes.properties = {}), m && (a.attributes.layout = {}), p && (a.attributes.context = K({}, (R = a.parent) == null ? void 0 : R.attributes.context));
|
|
871
|
+
const g = [], k = [], $ = [];
|
|
872
|
+
if (a.changesets.forEach((x) => {
|
|
873
|
+
const [L, I] = x;
|
|
874
|
+
yn(I.breakpoints, t.breakpoints) && (y && (typeof L.properties == "function" ? g.push(
|
|
875
|
+
L.properties
|
|
876
|
+
) : K(a.attributes.properties, L.properties)), m && (typeof L.layout == "function" ? k.push(L.layout) : K(a.attributes.layout, L.layout)), p && (typeof L.context == "function" ? $.push(L.context) : K(a.attributes.context, L.context)));
|
|
877
|
+
}), g.forEach((x) => {
|
|
878
|
+
K(a.attributes.properties, x(a.attributes.properties));
|
|
879
|
+
}), k.forEach((x) => {
|
|
880
|
+
K(a.attributes.layout, x(a.attributes.layout));
|
|
881
|
+
}), $.forEach((x) => {
|
|
882
|
+
K(a.attributes.context, x(a.attributes.context));
|
|
883
|
+
}), p || u.recursive) {
|
|
884
|
+
const x = t.getBranch(a), L = u.recursive ? u : {
|
|
885
|
+
context: !!p
|
|
886
|
+
};
|
|
887
|
+
a.getChildren(x).forEach((I) => {
|
|
888
|
+
d(I, L);
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
process.env.NODE_ENV !== "production" && console.timeEnd("state-processor.flush"), l.forEach(([a, u]) => {
|
|
893
|
+
d(a, u);
|
|
894
|
+
}), n = [], r = [], e(c);
|
|
895
|
+
}, i = () => {
|
|
896
|
+
clearTimeout(s), s = setTimeout(o, 0);
|
|
897
|
+
};
|
|
898
|
+
return (c, l) => {
|
|
899
|
+
const d = n.indexOf(c);
|
|
900
|
+
if (d > -1) {
|
|
901
|
+
const a = r[d];
|
|
902
|
+
return l.context && (a.context = !0), l.properties && (a.properties = !0), l.layout && (a.layout = !0), l.recursive && (a.recursive = !0), i();
|
|
903
|
+
}
|
|
904
|
+
return n.push(c), r.push(l), i();
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
class Lt {
|
|
908
|
+
constructor(e, n = {}) {
|
|
909
|
+
b(this, "events");
|
|
910
|
+
b(this, "breakpoints", []);
|
|
911
|
+
b(this, "nodes");
|
|
912
|
+
// internal
|
|
913
|
+
b(this, "actionsState", { handlers: [], watchers: [] });
|
|
914
|
+
b(this, "switches", {});
|
|
915
|
+
b(this, "changesets", []);
|
|
916
|
+
b(this, "subscriptions", []);
|
|
917
|
+
b(this, "processNode");
|
|
918
|
+
b(this, "customComponentHandler", new pn());
|
|
919
|
+
this.providers = n, this.events = e.events.createChild(this);
|
|
920
|
+
const r = new mt(this.events, "root");
|
|
921
|
+
r.name = `root-${e.name}`, this.nodes = new fn(r, this.switches, this.events);
|
|
922
|
+
const s = this.processNode = vn(this, (o) => {
|
|
923
|
+
const i = Array.from(o.keys());
|
|
924
|
+
process.env.NODE_ENV !== "production" && console.info(`STATE PROCESSOR: ${i.length} node(s) processed:
|
|
925
|
+
${i.map(
|
|
926
|
+
(c) => `${c.name || "<no name>"} (${c.id})
|
|
927
|
+
`
|
|
928
|
+
)}`), i.forEach((c) => {
|
|
929
|
+
const l = o.get(c);
|
|
930
|
+
c.parent && c.parent.type === "root" && this.events.dispatch("components:root-children-changed", { node: c }), l != null && l.context && this.events.dispatch("components:context-changed", { node: c }), l != null && l.properties && this.events.dispatch("components:properties-changed", { node: c }), l != null && l.layout && this.events.dispatch("components:layout-changed", { node: c });
|
|
931
|
+
}), this.events.dispatch("components:component-model-initialized", {}, { bubbles: !0 });
|
|
932
|
+
});
|
|
933
|
+
Promise.all(
|
|
934
|
+
Object.keys(n).map((o) => n[o].load(this))
|
|
935
|
+
), this.subscriptions.push(
|
|
936
|
+
this.events.subscribe(
|
|
937
|
+
"components:node-appended",
|
|
938
|
+
(o, i) => {
|
|
939
|
+
const { node: c } = i;
|
|
940
|
+
this.changesets.forEach((l) => {
|
|
941
|
+
const { changeset: d, target: a, removes: u } = l, [f, p] = d;
|
|
942
|
+
a.match(i.node) && (f.properties && u.push(c.writeProperties(f.properties, p)), f.context && u.push(c.writeContext(f.context, p)), f.layout && u.push(c.writeLayout(f.layout, p)));
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
)
|
|
946
|
+
), this.subscriptions.push(
|
|
947
|
+
this.events.subscribe(
|
|
948
|
+
"components:node-appended",
|
|
949
|
+
(o, i) => {
|
|
950
|
+
s(i.node, { properties: !0, context: !0 });
|
|
951
|
+
}
|
|
952
|
+
)
|
|
953
|
+
), this.subscriptions.push(
|
|
954
|
+
this.events.subscribe(
|
|
955
|
+
"components:set-properties",
|
|
956
|
+
(o, i) => {
|
|
957
|
+
s(i.node, { properties: !0 });
|
|
958
|
+
}
|
|
959
|
+
)
|
|
960
|
+
), this.subscriptions.push(
|
|
961
|
+
this.events.subscribe(
|
|
962
|
+
"components:set-context",
|
|
963
|
+
(o, i) => {
|
|
964
|
+
s(i.node, { properties: !0, context: !0 });
|
|
965
|
+
}
|
|
966
|
+
)
|
|
967
|
+
), this.subscriptions.push(
|
|
968
|
+
this.events.subscribe(
|
|
969
|
+
"components:set-indent",
|
|
970
|
+
(o, i) => {
|
|
971
|
+
s(i.node, { layout: !0 });
|
|
972
|
+
}
|
|
973
|
+
)
|
|
974
|
+
), this.subscriptions.push(
|
|
975
|
+
this.events.subscribe(
|
|
976
|
+
"components:set-layout",
|
|
977
|
+
(o, i) => {
|
|
978
|
+
s(i.node, { layout: !0 });
|
|
979
|
+
}
|
|
980
|
+
)
|
|
981
|
+
), this.subscriptions.push(
|
|
982
|
+
this.events.subscribe("components:node-switched", (o, { node: i, branch: c }) => {
|
|
983
|
+
s(i, {
|
|
984
|
+
layout: !0,
|
|
985
|
+
recursive: !0,
|
|
986
|
+
properties: !0,
|
|
987
|
+
context: !0
|
|
988
|
+
});
|
|
989
|
+
})
|
|
990
|
+
), this.subscriptions.push(
|
|
991
|
+
this.events.subscribe("components:node-removed", (o, { parentNode: i }) => {
|
|
992
|
+
s(i, { properties: !0 });
|
|
993
|
+
})
|
|
994
|
+
), this.events.parent && this.events.parent.dispatch("components:platform-created", { platform: this });
|
|
995
|
+
}
|
|
996
|
+
static getInstance(e) {
|
|
997
|
+
return e.getAsync("components");
|
|
998
|
+
}
|
|
999
|
+
addBreakpoint(e) {
|
|
1000
|
+
this.breakpoints.indexOf(e) === -1 && (this.breakpoints.push(e), this.processNode(this.nodes.root, {
|
|
1001
|
+
context: !0,
|
|
1002
|
+
properties: !0,
|
|
1003
|
+
layout: !0,
|
|
1004
|
+
recursive: !0
|
|
1005
|
+
}));
|
|
1006
|
+
}
|
|
1007
|
+
removeBreakpoint(e) {
|
|
1008
|
+
const n = this.breakpoints.indexOf(e);
|
|
1009
|
+
n > -1 && (this.breakpoints.splice(n, 1), this.processNode(this.nodes.root, {
|
|
1010
|
+
context: !0,
|
|
1011
|
+
properties: !0,
|
|
1012
|
+
layout: !0,
|
|
1013
|
+
recursive: !0
|
|
1014
|
+
}));
|
|
1015
|
+
}
|
|
1016
|
+
setSwitch(e, n) {
|
|
1017
|
+
this.switches[e.id] = n, this.events.dispatch("components:node-switched", { node: e, branch: n });
|
|
1018
|
+
}
|
|
1019
|
+
getBranch(e) {
|
|
1020
|
+
return this.switches[e.id];
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Creates a `ComponentNode` of the specified type.
|
|
1024
|
+
* @param type Type of node.
|
|
1025
|
+
*/
|
|
1026
|
+
createNode(e, n = {}) {
|
|
1027
|
+
const r = new mt(this.events, e);
|
|
1028
|
+
return n.detached && this.nodes.detached.push(r), r;
|
|
1029
|
+
}
|
|
1030
|
+
components() {
|
|
1031
|
+
return new Qe(this);
|
|
1032
|
+
}
|
|
1033
|
+
actions(e, n) {
|
|
1034
|
+
return new Ge(this, e, n);
|
|
1035
|
+
}
|
|
1036
|
+
write(e) {
|
|
1037
|
+
const { provider: n, target: r, attributes: s, options: o = {}, removable: i } = e, c = e.key || he(), d = { changeset: [s, o], target: r, removes: [] };
|
|
1038
|
+
if (n) {
|
|
1039
|
+
const a = this.providers[n];
|
|
1040
|
+
a.write(c, r, s, o), d.removes.push(() => {
|
|
1041
|
+
a.remove(c);
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
return this.changesets.push(d), this.nodes.all.forEach((a) => {
|
|
1045
|
+
if (r.match(a)) {
|
|
1046
|
+
let u = () => {
|
|
1047
|
+
};
|
|
1048
|
+
s.properties && (u = a.writeProperties(s.properties, o, i)), s.context && (u = a.writeContext(s.context, o, i)), s.layout && (u = a.writeContext(s.layout, o, i)), d.removes.push(u);
|
|
1049
|
+
}
|
|
1050
|
+
}), () => {
|
|
1051
|
+
if (i) {
|
|
1052
|
+
d.removes.forEach((u) => u());
|
|
1053
|
+
const a = this.changesets.indexOf(d);
|
|
1054
|
+
a > -1 && this.changesets.splice(a, 1);
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
addComponentHandler(e, n) {
|
|
1059
|
+
this.customComponentHandler.add(e, n);
|
|
1060
|
+
}
|
|
1061
|
+
getComponentHandler(e) {
|
|
1062
|
+
return this.customComponentHandler.get(e);
|
|
1063
|
+
}
|
|
1064
|
+
dispose() {
|
|
1065
|
+
this.subscriptions.forEach((e) => e());
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
const bn = (t, e, n, r = he(), s = {}) => t.getAsync("components").then((o) => {
|
|
1069
|
+
let i;
|
|
1070
|
+
if (typeof e == "string") {
|
|
1071
|
+
const d = new Qe(o);
|
|
1072
|
+
d.ofType(e), i = d;
|
|
1073
|
+
} else
|
|
1074
|
+
i = e;
|
|
1075
|
+
const c = {}, l = (d) => {
|
|
1076
|
+
const a = c[d.id];
|
|
1077
|
+
return a ? Promise.resolve(a.controller) : Lt.getInstance(t).then((u) => new kt(u, d, r));
|
|
1078
|
+
};
|
|
1079
|
+
o.events.subscribe(
|
|
1080
|
+
"components:node-enter",
|
|
1081
|
+
(d, { node: a }) => {
|
|
1082
|
+
i.match(a) && l(a).then((u) => {
|
|
1083
|
+
Promise.resolve(n(u)).then((f) => {
|
|
1084
|
+
c[a.id] = {
|
|
1085
|
+
dispose: f,
|
|
1086
|
+
controller: u
|
|
1087
|
+
};
|
|
1088
|
+
});
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
), o.events.subscribe(
|
|
1092
|
+
"components:node-exit",
|
|
1093
|
+
(d, { node: a }) => {
|
|
1094
|
+
const u = c[a.id];
|
|
1095
|
+
u && (u.dispose && u.dispose(), s.reuseController || (u.controller.dispose(), delete c[a.id]));
|
|
1096
|
+
}
|
|
1097
|
+
);
|
|
1098
|
+
});
|
|
1099
|
+
var St = /* @__PURE__ */ ((t) => (t.open = "open", t.closed = "closed", t.hidden = "hidden", t))(St || {}), We = /* @__PURE__ */ ((t) => (t.Opera = "opera", t.Chrome = "chrome", t.Firefox = "firefox", t.Safari = "safari", t.Edge = "edge", t.EdgeChromium = "edge-chromium", t.Blink = "blink", t.IE = "internet-explorer", t))(We || {});
|
|
1100
|
+
const gt = () => {
|
|
1101
|
+
const {
|
|
1102
|
+
opr: t,
|
|
1103
|
+
opera: e,
|
|
1104
|
+
InstallTrigger: n,
|
|
1105
|
+
HTMLElement: r,
|
|
1106
|
+
safari: s,
|
|
1107
|
+
documentMode: o,
|
|
1108
|
+
StyleMedia: i,
|
|
1109
|
+
chrome: c,
|
|
1110
|
+
CSS: l
|
|
1111
|
+
} = window, d = !!t && !!t.addons || !!e || navigator.userAgent.indexOf(" OPR/") >= 0;
|
|
1112
|
+
if (d)
|
|
1113
|
+
return "opera";
|
|
1114
|
+
if (n)
|
|
1115
|
+
return "firefox";
|
|
1116
|
+
const a = ((p) => p.toString() === "[object SafariRemoteNotification]")(!s || typeof s < "u" && s.pushNotification);
|
|
1117
|
+
if (/constructor/i.test(r) || a)
|
|
1118
|
+
return "safari";
|
|
1119
|
+
const u = !!o;
|
|
1120
|
+
if (u)
|
|
1121
|
+
return "internet-explorer";
|
|
1122
|
+
if (!u && i)
|
|
1123
|
+
return "edge";
|
|
1124
|
+
const f = !!c && (!!c.webstore || !!c.runtime);
|
|
1125
|
+
if (f)
|
|
1126
|
+
return "chrome";
|
|
1127
|
+
if (f && navigator.userAgent.indexOf("Edg") !== -1)
|
|
1128
|
+
return "edge-chromium";
|
|
1129
|
+
if ((f || d) && l)
|
|
1130
|
+
return "blink";
|
|
1131
|
+
}, Cn = ["string", "number"], W = (t) => Object.keys(t).reduce((e, n) => {
|
|
1132
|
+
const r = typeof t[n] > "u" ? "" : t[n], s = typeof r;
|
|
1133
|
+
if (Cn.indexOf(s) > -1) {
|
|
1134
|
+
const o = n.substring(0, 5);
|
|
1135
|
+
o === "data-" || o === "aria-" ? e[ln(n)] = r.toString() : n.substring(0, 4) !== "css-" && (e[n] = r.toString());
|
|
1136
|
+
} else
|
|
1137
|
+
e[n] = r;
|
|
1138
|
+
return e;
|
|
1139
|
+
}, {}), wn = (t) => new RegExp("^#", "i").test(t), xn = (t) => ({ children: e, ...n }) => {
|
|
1140
|
+
const {
|
|
1141
|
+
implementation: r,
|
|
1142
|
+
name: s
|
|
1143
|
+
} = t.get("$widget"), { href: o = "" } = n;
|
|
1144
|
+
if (wn(o))
|
|
1145
|
+
return /* @__PURE__ */ h(An, { smooth: !0, to: o, children: e });
|
|
1146
|
+
const i = r.bindings.map((d) => d.replace(/\./g, "\\.")).join("|"), l = new RegExp(
|
|
1147
|
+
`^((http[s]?:)?//)?(${i})/([^\\s]+)`
|
|
1148
|
+
).exec(o);
|
|
1149
|
+
if (l && l.length >= 4) {
|
|
1150
|
+
const d = l[4];
|
|
1151
|
+
if (r.widgets.get(d) && !d.startsWith("blob?") && !d.startsWith(s))
|
|
1152
|
+
return /* @__PURE__ */ h(Gr, { widgetName: d, children: e });
|
|
1153
|
+
}
|
|
1154
|
+
return /* @__PURE__ */ h("a", { ...n, children: e });
|
|
1155
|
+
}, Nt = (t) => {
|
|
1156
|
+
const e = {};
|
|
1157
|
+
return Object.keys(t).forEach((n) => {
|
|
1158
|
+
n.indexOf("css-") > -1 && (e[n] = t[n]);
|
|
1159
|
+
}), e;
|
|
1160
|
+
}, kn = (t) => {
|
|
1161
|
+
let e = "";
|
|
1162
|
+
return Object.keys(Nt(t)).forEach((n) => {
|
|
1163
|
+
n.indexOf("css-") > -1 && (e += `${n.replace("css-", "")}:${t[n]};`);
|
|
1164
|
+
}), D`
|
|
1165
|
+
${e}
|
|
1166
|
+
`;
|
|
1167
|
+
}, $n = (t, e) => {
|
|
1168
|
+
let n = "";
|
|
1169
|
+
const r = () => {
|
|
1170
|
+
n = "";
|
|
1171
|
+
}, s = (a) => {
|
|
1172
|
+
const u = document.getElementById(n);
|
|
1173
|
+
return u !== null ? (a(u), r(), !0) : !1;
|
|
1174
|
+
}, o = (a) => (a.preventDefault(), r(), t.onClick && t.onClick(a), typeof t.to == "string" && (n = t.to.split("#").slice(1).join("#")), n !== "" && s(
|
|
1175
|
+
t.scroll || ((u) => t.smooth ? u.scrollIntoView({ behavior: "smooth" }) : u.scrollIntoView())
|
|
1176
|
+
), !1), { scroll: i, smooth: c, to: l, ...d } = t;
|
|
1177
|
+
return e === "a" && (d.href = "javascript:;"), /* @__PURE__ */ h(e, { ...d, onClick: o, children: t.children });
|
|
1178
|
+
}, Ot = (t) => (e, n) => {
|
|
1179
|
+
let r = e, s = "";
|
|
1180
|
+
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(e))
|
|
1181
|
+
r = e;
|
|
1182
|
+
else {
|
|
1183
|
+
const c = e.match(/h1|h2|h3|h4|h5|h6/);
|
|
1184
|
+
if (c != null && c[0]) {
|
|
1185
|
+
r = c[0];
|
|
1186
|
+
const [l] = e.split(r);
|
|
1187
|
+
s = l;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
const i = ((c, l, d) => d[c] ? `${l}${d[c]}` : `${l}${c}`)(r, s, t.theme.typographyVariantMapping || {});
|
|
1191
|
+
return D`
|
|
1192
|
+
${i} {
|
|
1193
|
+
${n}
|
|
1194
|
+
}
|
|
1195
|
+
`;
|
|
1196
|
+
};
|
|
1197
|
+
var En = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1198
|
+
function Ln(t) {
|
|
1199
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1200
|
+
}
|
|
1201
|
+
function Mt(t) {
|
|
1202
|
+
if (t.__esModule)
|
|
1203
|
+
return t;
|
|
1204
|
+
var e = t.default;
|
|
1205
|
+
if (typeof e == "function") {
|
|
1206
|
+
var n = function r() {
|
|
1207
|
+
if (this instanceof r) {
|
|
1208
|
+
var s = [null];
|
|
1209
|
+
s.push.apply(s, arguments);
|
|
1210
|
+
var o = Function.bind.apply(e, s);
|
|
1211
|
+
return new o();
|
|
1212
|
+
}
|
|
1213
|
+
return e.apply(this, arguments);
|
|
1214
|
+
};
|
|
1215
|
+
n.prototype = e.prototype;
|
|
1216
|
+
} else
|
|
1217
|
+
n = {};
|
|
1218
|
+
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
|
|
1219
|
+
var s = Object.getOwnPropertyDescriptor(t, r);
|
|
1220
|
+
Object.defineProperty(n, r, s.get ? s : {
|
|
1221
|
+
enumerable: !0,
|
|
1222
|
+
get: function() {
|
|
1223
|
+
return t[r];
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
}), n;
|
|
1227
|
+
}
|
|
1228
|
+
var At = { exports: {} };
|
|
1229
|
+
(function(t, e) {
|
|
1230
|
+
(function(n, r) {
|
|
1231
|
+
t.exports = r(Ce);
|
|
1232
|
+
})(En, function(n) {
|
|
1233
|
+
function r(u, f, p, y) {
|
|
1234
|
+
return f === void 0 && (f = {}), Object.keys(f).reduce(function(m, g) {
|
|
1235
|
+
if (/^on.*/.test(g))
|
|
1236
|
+
return m;
|
|
1237
|
+
var k = g;
|
|
1238
|
+
/^(data|aria)-/.test(g) || p.filter(function(Z) {
|
|
1239
|
+
return Z instanceof RegExp ? Z.test(g) : Z === g;
|
|
1240
|
+
}).length === 0 && (k = s(g));
|
|
1241
|
+
var $, R, x = y(u, k);
|
|
1242
|
+
if (x.name === "style")
|
|
1243
|
+
m[x.name] = ($ = f.style, R = {}, $.split(";").filter(function(Z) {
|
|
1244
|
+
return Z.trim() !== "";
|
|
1245
|
+
}).forEach(function(Z) {
|
|
1246
|
+
var H, j = Z.split(":");
|
|
1247
|
+
if (j.length > 1) {
|
|
1248
|
+
var Q = function(z) {
|
|
1249
|
+
return /^-ms-/.test(z) && (z = z.substr(1)), z.startsWith("--") ? z : s(z);
|
|
1250
|
+
}(j[0].trim()), J = (H = j.slice(1).join(":").trim(), /^\d+$/.test(H) ? Number(H) : H.replace(/'/g, '"'));
|
|
1251
|
+
R[Q] = J;
|
|
1252
|
+
}
|
|
1253
|
+
}), R);
|
|
1254
|
+
else {
|
|
1255
|
+
var L = f[g], I = L === "" || String(L).toLowerCase() === k.toLowerCase();
|
|
1256
|
+
m[x.name] = x.isBoolean ? I : L;
|
|
1257
|
+
}
|
|
1258
|
+
return m;
|
|
1259
|
+
}, {});
|
|
1260
|
+
}
|
|
1261
|
+
function s(u) {
|
|
1262
|
+
return u.replace(/(-|:)(.)/g, function(f, p, y) {
|
|
1263
|
+
return y.toUpperCase();
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
n = n && n.hasOwnProperty("default") ? n.default : n;
|
|
1267
|
+
var o = ["table", "tbody", "thead", "tfoot", "tr"], i = { for: "htmlFor", class: "className", allowfullscreen: ["allowFullScreen", "allowFullscreen"], autocomplete: "autoComplete", autofocus: ["autoFocus"], contenteditable: "contentEditable", spellcheck: "spellCheck", srcdoc: "srcDoc", srcset: "srcSet", itemscope: "itemScope", itemprop: "itemProp", itemtype: "itemType" };
|
|
1268
|
+
function c(u, f) {
|
|
1269
|
+
var p = i[f], y = document.createElement(u);
|
|
1270
|
+
if (p)
|
|
1271
|
+
return { name: Array.isArray(p) ? p[0] : p, isBoolean: l(y, Array.isArray(p) ? p[1] || f : p) };
|
|
1272
|
+
for (var m in y)
|
|
1273
|
+
if (m.toLowerCase() === f.toLowerCase())
|
|
1274
|
+
return { name: m, isBoolean: l(y, m) };
|
|
1275
|
+
return { name: f, isBoolean: l(y, f) };
|
|
1276
|
+
}
|
|
1277
|
+
function l(u, f) {
|
|
1278
|
+
return u.setAttribute(f, ""), u[f] === !0 || d.indexOf(f) > -1;
|
|
1279
|
+
}
|
|
1280
|
+
var d = ["itemScope"];
|
|
1281
|
+
function a(u, f, p, y) {
|
|
1282
|
+
y === void 0 && (y = null);
|
|
1283
|
+
var m = p[u], g = p._;
|
|
1284
|
+
return m ? n.createElement(m, f, y) : g ? g(u, f, y) : n.createElement(u, f, y);
|
|
1285
|
+
}
|
|
1286
|
+
return function(u, f) {
|
|
1287
|
+
if (f === void 0 && (f = {}), typeof u != "string")
|
|
1288
|
+
throw new TypeError("Expected HTML string");
|
|
1289
|
+
var p = document.createElement("div");
|
|
1290
|
+
p.innerHTML = u.trim();
|
|
1291
|
+
var y = Array.from(p.childNodes).map(function(m, g) {
|
|
1292
|
+
return function k($, R, x) {
|
|
1293
|
+
var L = x.transform || {}, I = x.preserveAttributes || [], Z = x.dangerouslySetChildren || ["style"], H = L._;
|
|
1294
|
+
if ($.nodeType === 8)
|
|
1295
|
+
return null;
|
|
1296
|
+
if ($.nodeType === 3) {
|
|
1297
|
+
var j = $.textContent;
|
|
1298
|
+
return H ? H(j) : j;
|
|
1299
|
+
}
|
|
1300
|
+
for (var Q = {}, J = $.attributes, z = 0; z < J.length; z++)
|
|
1301
|
+
Q[J[z].name] = J[z].value;
|
|
1302
|
+
Q.key = R.toString();
|
|
1303
|
+
var F = $.tagName.toLowerCase(), le = r(F, Q, I, c), de = Array.from($.childNodes).map(function(q, te) {
|
|
1304
|
+
return o.indexOf(F) > -1 && q.nodeType === 3 && (q.textContent = q.textContent.trim(), q.textContent === "") ? null : k(q, R + "." + te, x);
|
|
1305
|
+
}).filter(Boolean);
|
|
1306
|
+
if (Z.indexOf(F) > -1) {
|
|
1307
|
+
var ee = $.innerHTML;
|
|
1308
|
+
return ee && (F !== "style" && F !== "script" && (ee = ee.replace(/"/g, """)), le.dangerouslySetInnerHTML = { __html: ee.trim() }), a(F, le, L);
|
|
1309
|
+
}
|
|
1310
|
+
var fe = de.length === 0 ? null : de;
|
|
1311
|
+
return a(F, le, L, fe);
|
|
1312
|
+
}(m, String(g), f);
|
|
1313
|
+
}).filter(Boolean);
|
|
1314
|
+
return y.length === 1 ? y[0] : y;
|
|
1315
|
+
};
|
|
1316
|
+
});
|
|
1317
|
+
})(At);
|
|
1318
|
+
var Sn = At.exports;
|
|
1319
|
+
const yt = /* @__PURE__ */ Ln(Sn);
|
|
1320
|
+
function Nn(t, e) {
|
|
1321
|
+
return e ? yt(t, e) : yt(t);
|
|
1322
|
+
}
|
|
1323
|
+
const On = (t) => (e) => /* @__PURE__ */ h(zr, { attrs: e, htmlBody: t }), Mn = (t, e) => ({
|
|
1324
|
+
transform: {
|
|
1325
|
+
a: xn(t),
|
|
1326
|
+
img: On(e)
|
|
1327
|
+
}
|
|
1328
|
+
}), An = (t) => $n(t, "a"), Se = V(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ h(
|
|
1329
|
+
Rn,
|
|
1330
|
+
{
|
|
1331
|
+
type: "button",
|
|
1332
|
+
className: N(t, "humany-button"),
|
|
1333
|
+
...W(n),
|
|
1334
|
+
ref: r,
|
|
1335
|
+
children: e
|
|
1336
|
+
}
|
|
1337
|
+
)), Rn = v.button`
|
|
1338
|
+
-webkit-appearance: button;
|
|
1339
|
+
text-transform: none;
|
|
1340
|
+
overflow: visible;
|
|
1341
|
+
outline: none;
|
|
1342
|
+
border: none;
|
|
1343
|
+
background-color: transparent;
|
|
1344
|
+
cursor: pointer;
|
|
1345
|
+
font-family: inherit;
|
|
1346
|
+
font-size: inherit;
|
|
1347
|
+
line-height: normal;
|
|
1348
|
+
margin: 0;
|
|
1349
|
+
padding: 0;
|
|
1350
|
+
`, Tn = ae(new Ye());
|
|
1351
|
+
ae(1);
|
|
1352
|
+
const Pn = ae({
|
|
1353
|
+
id: "",
|
|
1354
|
+
type: "",
|
|
1355
|
+
name: "",
|
|
1356
|
+
branch: ""
|
|
1357
|
+
}), hs = ae({}), Dn = ae(null);
|
|
1358
|
+
ae(null);
|
|
1359
|
+
const ce = () => Ue(Tn), Hn = (t) => {
|
|
1360
|
+
const e = Ue(Pn), n = Tt(), [r, s] = M();
|
|
1361
|
+
return E(() => {
|
|
1362
|
+
if ((t || e.id) && n) {
|
|
1363
|
+
const o = n.nodes.get(t || e.id);
|
|
1364
|
+
s(o);
|
|
1365
|
+
}
|
|
1366
|
+
}, [t, e.id, n]), r;
|
|
1367
|
+
}, Rt = () => {
|
|
1368
|
+
const t = A(!1);
|
|
1369
|
+
return E(() => (t.current = !0, () => {
|
|
1370
|
+
t.current = !1;
|
|
1371
|
+
}), []), t;
|
|
1372
|
+
}, Tt = (t) => {
|
|
1373
|
+
const e = ce(), [n, r] = M(null), s = Rt();
|
|
1374
|
+
return E(() => {
|
|
1375
|
+
Lt.getInstance(t || e).then(
|
|
1376
|
+
(o) => {
|
|
1377
|
+
s.current && r(o);
|
|
1378
|
+
}
|
|
1379
|
+
);
|
|
1380
|
+
}, [s]), n;
|
|
1381
|
+
}, Vn = (t) => {
|
|
1382
|
+
const e = Hn(t), n = Tt(), [r, s] = M({}), o = Rt();
|
|
1383
|
+
return E(() => {
|
|
1384
|
+
e && o.current && s(e.attributes.context);
|
|
1385
|
+
}, [o, e]), E(() => {
|
|
1386
|
+
if (n) {
|
|
1387
|
+
const i = n.events.subscribe(
|
|
1388
|
+
"components:context-changed",
|
|
1389
|
+
(c, l) => {
|
|
1390
|
+
e === l.node && o.current && s(l.node.attributes.context);
|
|
1391
|
+
}
|
|
1392
|
+
);
|
|
1393
|
+
return () => {
|
|
1394
|
+
i();
|
|
1395
|
+
};
|
|
1396
|
+
}
|
|
1397
|
+
}, [o, n, e]), r;
|
|
1398
|
+
}, se = (t, e, n = window, r = () => !0) => {
|
|
1399
|
+
const s = A(() => {
|
|
1400
|
+
});
|
|
1401
|
+
E(() => {
|
|
1402
|
+
s.current = e;
|
|
1403
|
+
}, [e]), E(() => {
|
|
1404
|
+
if (!(n && r()))
|
|
1405
|
+
return;
|
|
1406
|
+
const i = (c) => s.current(c);
|
|
1407
|
+
return n.addEventListener(t, i), () => {
|
|
1408
|
+
n.removeEventListener(t, i);
|
|
1409
|
+
};
|
|
1410
|
+
}, [t, n]);
|
|
1411
|
+
}, zn = (t) => {
|
|
1412
|
+
const e = ce(), { events: n } = (t || e).get("$widget");
|
|
1413
|
+
return n;
|
|
1414
|
+
}, ue = (t, e) => {
|
|
1415
|
+
const [n, r] = M(!1), s = T(
|
|
1416
|
+
(i) => {
|
|
1417
|
+
const { key: c } = i;
|
|
1418
|
+
c === t && (r(!0), e && e(i));
|
|
1419
|
+
},
|
|
1420
|
+
[r, e]
|
|
1421
|
+
), o = T(
|
|
1422
|
+
({ key: i }) => {
|
|
1423
|
+
i === t && r(!1);
|
|
1424
|
+
},
|
|
1425
|
+
[r]
|
|
1426
|
+
);
|
|
1427
|
+
return se("keydown", s, window), se("keyup", o, window), n;
|
|
1428
|
+
}, Bn = (t) => {
|
|
1429
|
+
const e = A();
|
|
1430
|
+
return E(() => {
|
|
1431
|
+
e.current = t;
|
|
1432
|
+
}), e.current;
|
|
1433
|
+
}, _n = () => Ue(Dn), Zn = (t) => {
|
|
1434
|
+
const e = A(), n = A(0);
|
|
1435
|
+
let r;
|
|
1436
|
+
const s = T(() => {
|
|
1437
|
+
var d;
|
|
1438
|
+
(d = e.current) == null || d.classList.add("humany-scrolling"), clearTimeout(r), r = setTimeout(() => {
|
|
1439
|
+
var a;
|
|
1440
|
+
(a = e.current) == null || a.classList.remove("humany-scrolling");
|
|
1441
|
+
}, 500);
|
|
1442
|
+
}, [e]), o = T(
|
|
1443
|
+
(d) => {
|
|
1444
|
+
n.current = d.touches[0].clientY;
|
|
1445
|
+
},
|
|
1446
|
+
[e]
|
|
1447
|
+
), i = (d) => c(d) ? d === e.current ? d : null : d.parentElement ? i(d.parentElement) : null, c = (d) => d.scrollWidth > d.clientWidth || d.scrollHeight > d.clientHeight, l = T(
|
|
1448
|
+
(d) => {
|
|
1449
|
+
if (!d.cancelable)
|
|
1450
|
+
return;
|
|
1451
|
+
const a = d.touches[0].clientY, u = i(d.target);
|
|
1452
|
+
if (!u)
|
|
1453
|
+
return;
|
|
1454
|
+
const f = u.scrollTop, p = n.current - a < 0 ? "up" : "down", y = f <= 0 && p === "up", m = f >= u.scrollHeight - u.offsetHeight && p === "down";
|
|
1455
|
+
(y || m) && d.preventDefault(), n.current = a;
|
|
1456
|
+
},
|
|
1457
|
+
[e, n]
|
|
1458
|
+
);
|
|
1459
|
+
return se(
|
|
1460
|
+
"scroll",
|
|
1461
|
+
s,
|
|
1462
|
+
e.current,
|
|
1463
|
+
() => e.current && t
|
|
1464
|
+
), se(
|
|
1465
|
+
"touchstart",
|
|
1466
|
+
o,
|
|
1467
|
+
e.current,
|
|
1468
|
+
() => e.current && t
|
|
1469
|
+
), se(
|
|
1470
|
+
"touchmove",
|
|
1471
|
+
l,
|
|
1472
|
+
e.current,
|
|
1473
|
+
() => e.current && t
|
|
1474
|
+
), t ? [Wn, e] : ["", e];
|
|
1475
|
+
}, Wn = `
|
|
1476
|
+
overflow-y: ${gt() === We.Chrome || gt() === We.EdgeChromium ? "overlay" : "auto"};
|
|
1477
|
+
overflow-x: hidden;
|
|
1478
|
+
-ms-overflow-style: none; /* IE 10+ */
|
|
1479
|
+
scrollbar-width: thin; /* Firefox */
|
|
1480
|
+
scrollbar-color: transparent transparent; /* Firefox */
|
|
1481
|
+
|
|
1482
|
+
::-webkit-scrollbar {
|
|
1483
|
+
width: 3px !important;
|
|
1484
|
+
background-color: transparent;
|
|
1485
|
+
border-left: none;
|
|
1486
|
+
}
|
|
1487
|
+
::-webkit-scrollbar-thumb {
|
|
1488
|
+
background-color: transparent;
|
|
1489
|
+
}
|
|
1490
|
+
::-webkit-scrollbar-track {
|
|
1491
|
+
-webkit-box-shadow: none !important;
|
|
1492
|
+
background-color: transparent;
|
|
1493
|
+
}
|
|
1494
|
+
&.humany-scrolling {
|
|
1495
|
+
scrollbar-color: #7F7F7F transparent;
|
|
1496
|
+
scrollbar-width: thin; /* Firefox */
|
|
1497
|
+
-ms-overflow-style: none; /* IE 10+ */
|
|
1498
|
+
|
|
1499
|
+
::-webkit-scrollbar-thumb {
|
|
1500
|
+
background-color: #7F7F7F;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
`, In = (t = !1) => {
|
|
1504
|
+
const [e, n] = M(t), r = T((s) => {
|
|
1505
|
+
n(typeof s == "boolean" ? s : (o) => !o);
|
|
1506
|
+
}, []);
|
|
1507
|
+
return [e, r];
|
|
1508
|
+
}, tt = (t, e, n = [], r) => {
|
|
1509
|
+
const s = zn(r);
|
|
1510
|
+
return E(() => {
|
|
1511
|
+
if (s) {
|
|
1512
|
+
const o = s.subscribe(t, e);
|
|
1513
|
+
return () => {
|
|
1514
|
+
o();
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
}, [s].concat(n)), (o) => s == null ? void 0 : s.dispatch(t, o);
|
|
1518
|
+
}, Pt = (t, e) => {
|
|
1519
|
+
const n = tt("widget:menu-toggled", (r, s) => {
|
|
1520
|
+
s !== t && e();
|
|
1521
|
+
});
|
|
1522
|
+
return () => n(t);
|
|
1523
|
+
}, nt = V(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ h(
|
|
1524
|
+
"span",
|
|
1525
|
+
{
|
|
1526
|
+
ref: r,
|
|
1527
|
+
className: N(t, "humany-text"),
|
|
1528
|
+
...W(n),
|
|
1529
|
+
children: e
|
|
1530
|
+
}
|
|
1531
|
+
)), Dt = (t) => D`
|
|
1532
|
+
display: flex;
|
|
1533
|
+
justify-content: center;
|
|
1534
|
+
flex-direction: column;
|
|
1535
|
+
background: #ffffff;
|
|
1536
|
+
border-radius: ${t.theme.borderRadius};
|
|
1537
|
+
border: ${t.theme.border};
|
|
1538
|
+
box-shadow: ${t.theme.boxShadow || "none"};
|
|
1539
|
+
${t["data-loading"] && "min-height: 150px;"}
|
|
1540
|
+
`, ie = (t) => {
|
|
1541
|
+
var e, n, r;
|
|
1542
|
+
return D`
|
|
1543
|
+
outline: ${(e = t.theme.accessibility) == null ? void 0 : e.border};
|
|
1544
|
+
color: ${(r = (n = t.theme.accessibility) == null ? void 0 : n.colors) == null ? void 0 : r.inactiveText};
|
|
1545
|
+
border-color: transparent;
|
|
1546
|
+
`;
|
|
1547
|
+
}, ds = (t) => D`
|
|
1548
|
+
${ie(t)}
|
|
1549
|
+
text-decoration: underline;
|
|
1550
|
+
`, Ht = v(Se)`
|
|
1551
|
+
position: absolute;
|
|
1552
|
+
top: ${(t) => {
|
|
1553
|
+
var e;
|
|
1554
|
+
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
1555
|
+
}};
|
|
1556
|
+
right: ${(t) => {
|
|
1557
|
+
var e;
|
|
1558
|
+
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
1559
|
+
}};
|
|
1560
|
+
z-index: 1;
|
|
1561
|
+
|
|
1562
|
+
svg {
|
|
1563
|
+
stroke: ${(t) => {
|
|
1564
|
+
var e;
|
|
1565
|
+
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
1566
|
+
}};
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
&:focus-visible {
|
|
1570
|
+
${ie}
|
|
1571
|
+
padding: ${(t) => {
|
|
1572
|
+
var e;
|
|
1573
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
1574
|
+
}};
|
|
1575
|
+
height: 15px;
|
|
1576
|
+
box-sizing: content-box;
|
|
1577
|
+
}
|
|
1578
|
+
`;
|
|
1579
|
+
v(nt)`
|
|
1580
|
+
font-size: ${(t) => {
|
|
1581
|
+
var e;
|
|
1582
|
+
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
1583
|
+
}};
|
|
1584
|
+
font-weight: normal;
|
|
1585
|
+
line-height: 1.2em;
|
|
1586
|
+
color: ${(t) => {
|
|
1587
|
+
var e;
|
|
1588
|
+
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
1589
|
+
}};
|
|
1590
|
+
`;
|
|
1591
|
+
const rt = ({
|
|
1592
|
+
elementId: t = "humany-portal-elements",
|
|
1593
|
+
parent: e = document.body,
|
|
1594
|
+
children: n
|
|
1595
|
+
}) => {
|
|
1596
|
+
const [r] = M(() => {
|
|
1597
|
+
const s = document.getElementById(t) || document.createElement("div");
|
|
1598
|
+
return s.id = t, s;
|
|
1599
|
+
});
|
|
1600
|
+
return E(() => (e.appendChild(r), () => {
|
|
1601
|
+
r.childElementCount <= 1 && r.remove();
|
|
1602
|
+
}), [r]), Yt(n, r);
|
|
1603
|
+
}, Ne = ({
|
|
1604
|
+
text: t = "",
|
|
1605
|
+
backgroundSize: e = "contain",
|
|
1606
|
+
size: n = 12,
|
|
1607
|
+
symbol: r = {
|
|
1608
|
+
content: "",
|
|
1609
|
+
type: ""
|
|
1610
|
+
},
|
|
1611
|
+
elementStyle: s = {},
|
|
1612
|
+
className: o,
|
|
1613
|
+
...i
|
|
1614
|
+
}) => {
|
|
1615
|
+
const { type: c, content: l } = r, d = {
|
|
1616
|
+
"aria-label": t,
|
|
1617
|
+
role: "presentation"
|
|
1618
|
+
};
|
|
1619
|
+
switch (c) {
|
|
1620
|
+
case "Uri": {
|
|
1621
|
+
const a = {
|
|
1622
|
+
backgroundSize: e,
|
|
1623
|
+
backgroundImage: `url('${l}')`,
|
|
1624
|
+
backgroundRepeat: "no-repeat",
|
|
1625
|
+
backgroundPosition: "center",
|
|
1626
|
+
backgroundAttachment: "center"
|
|
1627
|
+
};
|
|
1628
|
+
return /* @__PURE__ */ h(
|
|
1629
|
+
"i",
|
|
1630
|
+
{
|
|
1631
|
+
className: N(o, "humany-icon", "humany-custom-icon"),
|
|
1632
|
+
title: t,
|
|
1633
|
+
style: { ...a, ...s },
|
|
1634
|
+
...d,
|
|
1635
|
+
...i
|
|
1636
|
+
}
|
|
1637
|
+
);
|
|
1638
|
+
}
|
|
1639
|
+
case "Svg": {
|
|
1640
|
+
const a = {
|
|
1641
|
+
className: N(o, "humany-icon"),
|
|
1642
|
+
width: `${n}`,
|
|
1643
|
+
fill: "none",
|
|
1644
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1645
|
+
...i,
|
|
1646
|
+
ref: null
|
|
1647
|
+
}, u = { minWidth: `${n}` };
|
|
1648
|
+
switch (l) {
|
|
1649
|
+
case "search":
|
|
1650
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 32 30", ...a, children: [
|
|
1651
|
+
/* @__PURE__ */ h(
|
|
1652
|
+
"circle",
|
|
1653
|
+
{
|
|
1654
|
+
cx: "14.8457",
|
|
1655
|
+
cy: "14.5175",
|
|
1656
|
+
r: "8.14359",
|
|
1657
|
+
transform: "rotate(45 14.8457 14.5175)"
|
|
1658
|
+
}
|
|
1659
|
+
),
|
|
1660
|
+
/* @__PURE__ */ h("line", { x1: "21.1001", y1: "20.4865", x2: "26.5798", y2: "25.9661" })
|
|
1661
|
+
] });
|
|
1662
|
+
case "clear":
|
|
1663
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 27 27", ...a, children: [
|
|
1664
|
+
/* @__PURE__ */ h(
|
|
1665
|
+
"circle",
|
|
1666
|
+
{
|
|
1667
|
+
cx: "13.4351",
|
|
1668
|
+
cy: "13.435",
|
|
1669
|
+
r: "9",
|
|
1670
|
+
transform: "rotate(45 13.4351 13.435)",
|
|
1671
|
+
stroke: "black"
|
|
1672
|
+
}
|
|
1673
|
+
),
|
|
1674
|
+
/* @__PURE__ */ h(
|
|
1675
|
+
"line",
|
|
1676
|
+
{
|
|
1677
|
+
x1: "16.6172",
|
|
1678
|
+
y1: "10.2531",
|
|
1679
|
+
x2: "10.2533",
|
|
1680
|
+
y2: "16.6171",
|
|
1681
|
+
stroke: "black"
|
|
1682
|
+
}
|
|
1683
|
+
),
|
|
1684
|
+
/* @__PURE__ */ h(
|
|
1685
|
+
"line",
|
|
1686
|
+
{
|
|
1687
|
+
x1: "16.6171",
|
|
1688
|
+
y1: "16.617",
|
|
1689
|
+
x2: "10.2532",
|
|
1690
|
+
y2: "10.2531",
|
|
1691
|
+
stroke: "black"
|
|
1692
|
+
}
|
|
1693
|
+
)
|
|
1694
|
+
] });
|
|
1695
|
+
case "close":
|
|
1696
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 13 13", ...a, children: [
|
|
1697
|
+
/* @__PURE__ */ h("path", { d: "M12.3068 0.50647L1.27246 11.7273", stroke: "black" }),
|
|
1698
|
+
/* @__PURE__ */ h("path", { d: "M12.2812 11.9473L1.24686 0.726451", stroke: "black" })
|
|
1699
|
+
] });
|
|
1700
|
+
case "caret-right":
|
|
1701
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 14 14", style: u, ...a, children: [
|
|
1702
|
+
/* @__PURE__ */ h("line", { x1: "4.13", y1: "1.05", x2: "10.13", y2: "7.05", stroke: "black" }),
|
|
1703
|
+
/* @__PURE__ */ h("line", { x1: "10.13", y1: "6.95", x2: "4.13", y2: "12.95", stroke: "black" })
|
|
1704
|
+
] });
|
|
1705
|
+
case "caret-left":
|
|
1706
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 14 14", style: u, ...a, children: [
|
|
1707
|
+
/* @__PURE__ */ h("line", { x1: "10.13", y1: "12.95", x2: "4.13", y2: "6.95", stroke: "black" }),
|
|
1708
|
+
/* @__PURE__ */ h("line", { x1: "4.13", y1: "7.05", x2: "10.13", y2: "1.05", stroke: "black" })
|
|
1709
|
+
] });
|
|
1710
|
+
case "caret-up":
|
|
1711
|
+
return /* @__PURE__ */ w(jn, { viewBox: "0 0 14 14", style: u, ...a, children: [
|
|
1712
|
+
/* @__PURE__ */ h("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
1713
|
+
/* @__PURE__ */ h("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
1714
|
+
] });
|
|
1715
|
+
case "caret-down":
|
|
1716
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 14 14", style: u, ...a, children: [
|
|
1717
|
+
/* @__PURE__ */ h("line", { x1: "13.09", y1: "3.99", x2: "7.1", y2: "9.99", stroke: "black" }),
|
|
1718
|
+
/* @__PURE__ */ h("line", { x1: "7.19", y1: "9.99", x2: "1.19", y2: "3.99", stroke: "black" })
|
|
1719
|
+
] });
|
|
1720
|
+
case "back":
|
|
1721
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 18 18", ...a, children: [
|
|
1722
|
+
/* @__PURE__ */ h(
|
|
1723
|
+
"line",
|
|
1724
|
+
{
|
|
1725
|
+
y1: "-0.5",
|
|
1726
|
+
x2: "11.724",
|
|
1727
|
+
y2: "-0.5",
|
|
1728
|
+
transform: "matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",
|
|
1729
|
+
stroke: "white"
|
|
1730
|
+
}
|
|
1731
|
+
),
|
|
1732
|
+
/* @__PURE__ */ h(
|
|
1733
|
+
"line",
|
|
1734
|
+
{
|
|
1735
|
+
y1: "-0.5",
|
|
1736
|
+
x2: "11.724",
|
|
1737
|
+
y2: "-0.5",
|
|
1738
|
+
transform: "matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",
|
|
1739
|
+
stroke: "white"
|
|
1740
|
+
}
|
|
1741
|
+
)
|
|
1742
|
+
] });
|
|
1743
|
+
case "alert":
|
|
1744
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 19 19", ...a, children: [
|
|
1745
|
+
/* @__PURE__ */ h("circle", { cx: "9.5", cy: "9.5", r: "9.5", fill: "#CA0813" }),
|
|
1746
|
+
/* @__PURE__ */ h(
|
|
1747
|
+
"path",
|
|
1748
|
+
{
|
|
1749
|
+
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",
|
|
1750
|
+
fill: "white"
|
|
1751
|
+
}
|
|
1752
|
+
)
|
|
1753
|
+
] });
|
|
1754
|
+
case "send":
|
|
1755
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 20 17", ...a, children: /* @__PURE__ */ h(
|
|
1756
|
+
"path",
|
|
1757
|
+
{
|
|
1758
|
+
d: "M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",
|
|
1759
|
+
fill: "#A6A6A6",
|
|
1760
|
+
stroke: "#A6A6A6",
|
|
1761
|
+
strokeWidth: "0.1"
|
|
1762
|
+
}
|
|
1763
|
+
) });
|
|
1764
|
+
case "chat":
|
|
1765
|
+
return /* @__PURE__ */ w("svg", { viewBox: "-2 -3 40 40", ...a, children: [
|
|
1766
|
+
/* @__PURE__ */ h(
|
|
1767
|
+
"path",
|
|
1768
|
+
{
|
|
1769
|
+
strokeWidth: "0",
|
|
1770
|
+
fillRule: "evenodd",
|
|
1771
|
+
clipRule: "evenodd",
|
|
1772
|
+
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",
|
|
1773
|
+
fill: "currentColor"
|
|
1774
|
+
}
|
|
1775
|
+
),
|
|
1776
|
+
/* @__PURE__ */ h(
|
|
1777
|
+
"path",
|
|
1778
|
+
{
|
|
1779
|
+
strokeWidth: "0",
|
|
1780
|
+
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",
|
|
1781
|
+
fill: "currentColor"
|
|
1782
|
+
}
|
|
1783
|
+
),
|
|
1784
|
+
/* @__PURE__ */ h(
|
|
1785
|
+
"path",
|
|
1786
|
+
{
|
|
1787
|
+
strokeWidth: "0",
|
|
1788
|
+
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",
|
|
1789
|
+
fill: "currentColor"
|
|
1790
|
+
}
|
|
1791
|
+
),
|
|
1792
|
+
/* @__PURE__ */ h(
|
|
1793
|
+
"path",
|
|
1794
|
+
{
|
|
1795
|
+
strokeWidth: "0",
|
|
1796
|
+
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",
|
|
1797
|
+
fill: "currentColor"
|
|
1798
|
+
}
|
|
1799
|
+
)
|
|
1800
|
+
] });
|
|
1801
|
+
case "chat-new":
|
|
1802
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 26 24", ...a, children: [
|
|
1803
|
+
/* @__PURE__ */ h(
|
|
1804
|
+
"path",
|
|
1805
|
+
{
|
|
1806
|
+
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",
|
|
1807
|
+
fill: "currentColor"
|
|
1808
|
+
}
|
|
1809
|
+
),
|
|
1810
|
+
/* @__PURE__ */ h(
|
|
1811
|
+
"path",
|
|
1812
|
+
{
|
|
1813
|
+
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",
|
|
1814
|
+
fill: "currentColor"
|
|
1815
|
+
}
|
|
1816
|
+
)
|
|
1817
|
+
] });
|
|
1818
|
+
case "agent":
|
|
1819
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 36 30", ...a, children: [
|
|
1820
|
+
/* @__PURE__ */ h(
|
|
1821
|
+
"path",
|
|
1822
|
+
{
|
|
1823
|
+
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",
|
|
1824
|
+
stroke: "white"
|
|
1825
|
+
}
|
|
1826
|
+
),
|
|
1827
|
+
/* @__PURE__ */ h(
|
|
1828
|
+
"path",
|
|
1829
|
+
{
|
|
1830
|
+
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",
|
|
1831
|
+
stroke: "white"
|
|
1832
|
+
}
|
|
1833
|
+
),
|
|
1834
|
+
/* @__PURE__ */ h(
|
|
1835
|
+
"path",
|
|
1836
|
+
{
|
|
1837
|
+
d: "M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",
|
|
1838
|
+
stroke: "white"
|
|
1839
|
+
}
|
|
1840
|
+
),
|
|
1841
|
+
/* @__PURE__ */ h("circle", { cx: "17.4074", cy: "26.9795", r: "2.05271", stroke: "white" }),
|
|
1842
|
+
/* @__PURE__ */ h(
|
|
1843
|
+
"path",
|
|
1844
|
+
{
|
|
1845
|
+
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",
|
|
1846
|
+
stroke: "white"
|
|
1847
|
+
}
|
|
1848
|
+
)
|
|
1849
|
+
] });
|
|
1850
|
+
case "minimize":
|
|
1851
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 -10 22 22", ...a, children: /* @__PURE__ */ h("path", { d: "M0 1H22", stroke: "white" }) });
|
|
1852
|
+
case "sorting":
|
|
1853
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 18 14", ...a, children: /* @__PURE__ */ h("path", { d: "M18 1H0M8 13H0M13 7H0" }) });
|
|
1854
|
+
case "copy":
|
|
1855
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 19 17", ...a, children: [
|
|
1856
|
+
/* @__PURE__ */ h(
|
|
1857
|
+
"rect",
|
|
1858
|
+
{
|
|
1859
|
+
x: "0.5",
|
|
1860
|
+
y: "0.5",
|
|
1861
|
+
width: "11.6667",
|
|
1862
|
+
height: "11.6014",
|
|
1863
|
+
rx: "1.5",
|
|
1864
|
+
fill: "white"
|
|
1865
|
+
}
|
|
1866
|
+
),
|
|
1867
|
+
/* @__PURE__ */ h(
|
|
1868
|
+
"rect",
|
|
1869
|
+
{
|
|
1870
|
+
x: "6.83301",
|
|
1871
|
+
y: "4.89868",
|
|
1872
|
+
width: "11.6667",
|
|
1873
|
+
height: "11.6014",
|
|
1874
|
+
rx: "1.5",
|
|
1875
|
+
fill: "white"
|
|
1876
|
+
}
|
|
1877
|
+
)
|
|
1878
|
+
] });
|
|
1879
|
+
case "print":
|
|
1880
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 16 17", ...a, children: [
|
|
1881
|
+
/* @__PURE__ */ h(
|
|
1882
|
+
"path",
|
|
1883
|
+
{
|
|
1884
|
+
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",
|
|
1885
|
+
fill: "white",
|
|
1886
|
+
stroke: "black"
|
|
1887
|
+
}
|
|
1888
|
+
),
|
|
1889
|
+
/* @__PURE__ */ h(
|
|
1890
|
+
"path",
|
|
1891
|
+
{
|
|
1892
|
+
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",
|
|
1893
|
+
fill: "white",
|
|
1894
|
+
stroke: "black"
|
|
1895
|
+
}
|
|
1896
|
+
),
|
|
1897
|
+
/* @__PURE__ */ h(
|
|
1898
|
+
"path",
|
|
1899
|
+
{
|
|
1900
|
+
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",
|
|
1901
|
+
fill: "white",
|
|
1902
|
+
stroke: "black"
|
|
1903
|
+
}
|
|
1904
|
+
),
|
|
1905
|
+
/* @__PURE__ */ h(
|
|
1906
|
+
"line",
|
|
1907
|
+
{
|
|
1908
|
+
x1: "5.29004",
|
|
1909
|
+
y1: "10.8323",
|
|
1910
|
+
x2: "10.7101",
|
|
1911
|
+
y2: "10.8323",
|
|
1912
|
+
stroke: "black"
|
|
1913
|
+
}
|
|
1914
|
+
),
|
|
1915
|
+
/* @__PURE__ */ h(
|
|
1916
|
+
"line",
|
|
1917
|
+
{
|
|
1918
|
+
x1: "5.29004",
|
|
1919
|
+
y1: "12.5242",
|
|
1920
|
+
x2: "10.7101",
|
|
1921
|
+
y2: "12.5242",
|
|
1922
|
+
stroke: "black"
|
|
1923
|
+
}
|
|
1924
|
+
),
|
|
1925
|
+
/* @__PURE__ */ h(
|
|
1926
|
+
"line",
|
|
1927
|
+
{
|
|
1928
|
+
x1: "5.29004",
|
|
1929
|
+
y1: "14.2161",
|
|
1930
|
+
x2: "10.7101",
|
|
1931
|
+
y2: "14.2161",
|
|
1932
|
+
stroke: "black"
|
|
1933
|
+
}
|
|
1934
|
+
)
|
|
1935
|
+
] });
|
|
1936
|
+
case "language":
|
|
1937
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 19 19", ...a, children: /* @__PURE__ */ h(
|
|
1938
|
+
"path",
|
|
1939
|
+
{
|
|
1940
|
+
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",
|
|
1941
|
+
stroke: "black"
|
|
1942
|
+
}
|
|
1943
|
+
) });
|
|
1944
|
+
case "information":
|
|
1945
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 17 17", ...a, children: [
|
|
1946
|
+
/* @__PURE__ */ h(
|
|
1947
|
+
"path",
|
|
1948
|
+
{
|
|
1949
|
+
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",
|
|
1950
|
+
fill: "black"
|
|
1951
|
+
}
|
|
1952
|
+
),
|
|
1953
|
+
/* @__PURE__ */ h(
|
|
1954
|
+
"path",
|
|
1955
|
+
{
|
|
1956
|
+
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",
|
|
1957
|
+
fill: "black"
|
|
1958
|
+
}
|
|
1959
|
+
),
|
|
1960
|
+
/* @__PURE__ */ h(
|
|
1961
|
+
"path",
|
|
1962
|
+
{
|
|
1963
|
+
fillRule: "evenodd",
|
|
1964
|
+
clipRule: "evenodd",
|
|
1965
|
+
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",
|
|
1966
|
+
fill: "black"
|
|
1967
|
+
}
|
|
1968
|
+
)
|
|
1969
|
+
] });
|
|
1970
|
+
case "options":
|
|
1971
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 16 2", ...a, children: [
|
|
1972
|
+
/* @__PURE__ */ h("circle", { cx: "15", cy: "1", r: "1", transform: "rotate(90 15 1)", fill: "black" }),
|
|
1973
|
+
/* @__PURE__ */ h("circle", { cx: "1", cy: "1", r: "1", transform: "rotate(90 1 1)", fill: "black" }),
|
|
1974
|
+
/* @__PURE__ */ h("circle", { cx: "8", cy: "1", r: "1", transform: "rotate(90 8 1)", fill: "black" })
|
|
1975
|
+
] });
|
|
1976
|
+
case "browse":
|
|
1977
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", ...a, children: [
|
|
1978
|
+
/* @__PURE__ */ h("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }),
|
|
1979
|
+
/* @__PURE__ */ h(
|
|
1980
|
+
"path",
|
|
1981
|
+
{
|
|
1982
|
+
fillRule: "evenodd",
|
|
1983
|
+
clipRule: "evenodd",
|
|
1984
|
+
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",
|
|
1985
|
+
fill: "white"
|
|
1986
|
+
}
|
|
1987
|
+
),
|
|
1988
|
+
/* @__PURE__ */ h(
|
|
1989
|
+
"path",
|
|
1990
|
+
{
|
|
1991
|
+
fillRule: "evenodd",
|
|
1992
|
+
clipRule: "evenodd",
|
|
1993
|
+
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",
|
|
1994
|
+
fill: "white"
|
|
1995
|
+
}
|
|
1996
|
+
),
|
|
1997
|
+
/* @__PURE__ */ h(
|
|
1998
|
+
"path",
|
|
1999
|
+
{
|
|
2000
|
+
fillRule: "evenodd",
|
|
2001
|
+
clipRule: "evenodd",
|
|
2002
|
+
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",
|
|
2003
|
+
fill: "white"
|
|
2004
|
+
}
|
|
2005
|
+
),
|
|
2006
|
+
/* @__PURE__ */ h(
|
|
2007
|
+
"path",
|
|
2008
|
+
{
|
|
2009
|
+
fillRule: "evenodd",
|
|
2010
|
+
clipRule: "evenodd",
|
|
2011
|
+
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",
|
|
2012
|
+
fill: "white"
|
|
2013
|
+
}
|
|
2014
|
+
)
|
|
2015
|
+
] });
|
|
2016
|
+
case "video":
|
|
2017
|
+
return u.minWidth && typeof u.minWidth == "number" && (u.minWidth = `${u.minWidth}px`), /* @__PURE__ */ w("svg", { viewBox: "0 0 25 25", ...a, style: u, children: [
|
|
2018
|
+
/* @__PURE__ */ h(
|
|
2019
|
+
"path",
|
|
2020
|
+
{
|
|
2021
|
+
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",
|
|
2022
|
+
stroke: "currentColor",
|
|
2023
|
+
strokeWidth: "1.5",
|
|
2024
|
+
strokeLinecap: "round",
|
|
2025
|
+
strokeLinejoin: "round"
|
|
2026
|
+
}
|
|
2027
|
+
),
|
|
2028
|
+
/* @__PURE__ */ h(
|
|
2029
|
+
"path",
|
|
2030
|
+
{
|
|
2031
|
+
fillRule: "evenodd",
|
|
2032
|
+
clipRule: "evenodd",
|
|
2033
|
+
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",
|
|
2034
|
+
stroke: "currentColor",
|
|
2035
|
+
strokeWidth: "1.5",
|
|
2036
|
+
strokeLinecap: "round",
|
|
2037
|
+
strokeLinejoin: "round"
|
|
2038
|
+
}
|
|
2039
|
+
)
|
|
2040
|
+
] });
|
|
2041
|
+
case "star-empty":
|
|
2042
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 13 12", ...a, children: /* @__PURE__ */ h(
|
|
2043
|
+
"path",
|
|
2044
|
+
{
|
|
2045
|
+
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",
|
|
2046
|
+
stroke: "black"
|
|
2047
|
+
}
|
|
2048
|
+
) });
|
|
2049
|
+
case "star-filled":
|
|
2050
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 13 12", ...a, children: /* @__PURE__ */ h(
|
|
2051
|
+
"path",
|
|
2052
|
+
{
|
|
2053
|
+
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",
|
|
2054
|
+
fill: "black",
|
|
2055
|
+
stroke: "black"
|
|
2056
|
+
}
|
|
2057
|
+
) });
|
|
2058
|
+
case "cog-wheel":
|
|
2059
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 24 24", ...a, children: /* @__PURE__ */ h(
|
|
2060
|
+
"path",
|
|
2061
|
+
{
|
|
2062
|
+
fillRule: "evenodd",
|
|
2063
|
+
clipRule: "evenodd",
|
|
2064
|
+
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",
|
|
2065
|
+
fill: "black"
|
|
2066
|
+
}
|
|
2067
|
+
) });
|
|
2068
|
+
case "zoom-in":
|
|
2069
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", ...a, children: [
|
|
2070
|
+
/* @__PURE__ */ h(
|
|
2071
|
+
"path",
|
|
2072
|
+
{
|
|
2073
|
+
fillRule: "evenodd",
|
|
2074
|
+
clipRule: "evenodd",
|
|
2075
|
+
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",
|
|
2076
|
+
fill: "white"
|
|
2077
|
+
}
|
|
2078
|
+
),
|
|
2079
|
+
/* @__PURE__ */ h(
|
|
2080
|
+
"path",
|
|
2081
|
+
{
|
|
2082
|
+
fillRule: "evenodd",
|
|
2083
|
+
clipRule: "evenodd",
|
|
2084
|
+
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",
|
|
2085
|
+
fill: "white"
|
|
2086
|
+
}
|
|
2087
|
+
),
|
|
2088
|
+
/* @__PURE__ */ h(
|
|
2089
|
+
"path",
|
|
2090
|
+
{
|
|
2091
|
+
fillRule: "evenodd",
|
|
2092
|
+
clipRule: "evenodd",
|
|
2093
|
+
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",
|
|
2094
|
+
fill: "white"
|
|
2095
|
+
}
|
|
2096
|
+
)
|
|
2097
|
+
] });
|
|
2098
|
+
case "zoom-out":
|
|
2099
|
+
return /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", ...a, children: [
|
|
2100
|
+
/* @__PURE__ */ h(
|
|
2101
|
+
"path",
|
|
2102
|
+
{
|
|
2103
|
+
fillRule: "evenodd",
|
|
2104
|
+
clipRule: "evenodd",
|
|
2105
|
+
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",
|
|
2106
|
+
fill: "white"
|
|
2107
|
+
}
|
|
2108
|
+
),
|
|
2109
|
+
/* @__PURE__ */ h(
|
|
2110
|
+
"path",
|
|
2111
|
+
{
|
|
2112
|
+
fillRule: "evenodd",
|
|
2113
|
+
clipRule: "evenodd",
|
|
2114
|
+
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",
|
|
2115
|
+
fill: "white"
|
|
2116
|
+
}
|
|
2117
|
+
)
|
|
2118
|
+
] });
|
|
2119
|
+
case "download":
|
|
2120
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 24 24", ...a, children: /* @__PURE__ */ h(
|
|
2121
|
+
"path",
|
|
2122
|
+
{
|
|
2123
|
+
fillRule: "evenodd",
|
|
2124
|
+
clipRule: "evenodd",
|
|
2125
|
+
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",
|
|
2126
|
+
fill: "white"
|
|
2127
|
+
}
|
|
2128
|
+
) });
|
|
2129
|
+
case "lightbox-close":
|
|
2130
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 24 24", ...a, children: /* @__PURE__ */ h(
|
|
2131
|
+
"path",
|
|
2132
|
+
{
|
|
2133
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2134
|
+
fillRule: "evenodd",
|
|
2135
|
+
clipRule: "evenodd",
|
|
2136
|
+
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",
|
|
2137
|
+
fill: "white"
|
|
2138
|
+
}
|
|
2139
|
+
) });
|
|
2140
|
+
case "pagination-left":
|
|
2141
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 24 24", ...a, children: /* @__PURE__ */ h(
|
|
2142
|
+
"path",
|
|
2143
|
+
{
|
|
2144
|
+
fillRule: "evenodd",
|
|
2145
|
+
clipRule: "evenodd",
|
|
2146
|
+
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",
|
|
2147
|
+
fill: "#222222"
|
|
2148
|
+
}
|
|
2149
|
+
) });
|
|
2150
|
+
case "pagination-right":
|
|
2151
|
+
return /* @__PURE__ */ h("svg", { viewBox: "0 0 24 24", ...a, children: /* @__PURE__ */ h("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" }) });
|
|
2152
|
+
}
|
|
2153
|
+
return null;
|
|
2154
|
+
}
|
|
2155
|
+
case "FontAwesome":
|
|
2156
|
+
return /* @__PURE__ */ h(
|
|
2157
|
+
Xn,
|
|
2158
|
+
{
|
|
2159
|
+
className: o,
|
|
2160
|
+
faIcon: l,
|
|
2161
|
+
title: t,
|
|
2162
|
+
...i
|
|
2163
|
+
}
|
|
2164
|
+
);
|
|
2165
|
+
default:
|
|
2166
|
+
case "Text":
|
|
2167
|
+
return t ? /* @__PURE__ */ h(
|
|
2168
|
+
"i",
|
|
2169
|
+
{
|
|
2170
|
+
className: N(o, "humany-letter-symbol"),
|
|
2171
|
+
title: t,
|
|
2172
|
+
...d,
|
|
2173
|
+
...i,
|
|
2174
|
+
children: t.substring(0, 2)
|
|
2175
|
+
}
|
|
2176
|
+
) : null;
|
|
2177
|
+
}
|
|
2178
|
+
}, jn = v.svg`
|
|
2179
|
+
transform: rotate(180deg);
|
|
2180
|
+
`, Fn = {
|
|
2181
|
+
h1: "h1",
|
|
2182
|
+
h2: "h2",
|
|
2183
|
+
h3: "h3",
|
|
2184
|
+
h4: "h4",
|
|
2185
|
+
h5: "h5",
|
|
2186
|
+
h6: "h6",
|
|
2187
|
+
p: "p",
|
|
2188
|
+
span: "span"
|
|
2189
|
+
}, st = ({ variant: t, component: e, className: n, children: r }) => {
|
|
2190
|
+
const { typographyVariantMapping: s = {} } = Vn(), o = {
|
|
2191
|
+
...Fn,
|
|
2192
|
+
...s
|
|
2193
|
+
}, i = e || o[t] || "span";
|
|
2194
|
+
return /* @__PURE__ */ h(Kn, { className: n, as: i, children: r });
|
|
2195
|
+
}, Kn = v.span``, Oe = v.div`
|
|
2196
|
+
font-family: ${(t) => {
|
|
2197
|
+
var e;
|
|
2198
|
+
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
2199
|
+
}};
|
|
2200
|
+
font-size: ${(t) => {
|
|
2201
|
+
var e;
|
|
2202
|
+
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
2203
|
+
}};
|
|
2204
|
+
position: fixed;
|
|
2205
|
+
bottom: 0;
|
|
2206
|
+
left: 0;
|
|
2207
|
+
border: ${(t) => t.theme.border};
|
|
2208
|
+
width: 100%;
|
|
2209
|
+
box-shadow: ${(t) => t.theme.boxShadow};
|
|
2210
|
+
background: #ffffff;
|
|
2211
|
+
${(t) => t.css && t.css}
|
|
2212
|
+
`;
|
|
2213
|
+
v(st)`
|
|
2214
|
+
padding: ${(t) => {
|
|
2215
|
+
var e;
|
|
2216
|
+
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
2217
|
+
}};
|
|
2218
|
+
margin: 0;
|
|
2219
|
+
text-align: center;
|
|
2220
|
+
border-bottom: #eeeeee 1px solid;
|
|
2221
|
+
background: #ffffff;
|
|
2222
|
+
position: relative;
|
|
2223
|
+
display: flex;
|
|
2224
|
+
justify-content: center;
|
|
2225
|
+
align-items: center;
|
|
2226
|
+
font-weight: bold;
|
|
2227
|
+
color: ${(t) => {
|
|
2228
|
+
var e;
|
|
2229
|
+
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
2230
|
+
}};
|
|
2231
|
+
font-size: ${(t) => {
|
|
2232
|
+
var e;
|
|
2233
|
+
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
2234
|
+
}};
|
|
2235
|
+
line-height: 1.2em;
|
|
2236
|
+
`;
|
|
2237
|
+
const Me = (t) => D`
|
|
2238
|
+
transition: ${t.duration}ms;
|
|
2239
|
+
`;
|
|
2240
|
+
v(Oe)`
|
|
2241
|
+
max-height: 0;
|
|
2242
|
+
${Me}
|
|
2243
|
+
|
|
2244
|
+
&.humany-drawer-transition-enter {
|
|
2245
|
+
max-height: 0;
|
|
2246
|
+
}
|
|
2247
|
+
&.humany-drawer-transition-enter-active,
|
|
2248
|
+
&.humany-drawer-transition-enter-done,
|
|
2249
|
+
&.humany-drawer-transition-exit {
|
|
2250
|
+
max-height: ${(t) => t.fullScreen ? "100%" : "400px"};
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
&.humany-drawer-transition-exit-active,
|
|
2254
|
+
&.humany-drawer-transition-exit-done {
|
|
2255
|
+
max-height: 0;
|
|
2256
|
+
}
|
|
2257
|
+
`;
|
|
2258
|
+
v(Oe)`
|
|
2259
|
+
${Me}
|
|
2260
|
+
transform: translateX(100%);
|
|
2261
|
+
height: ${(t) => t.fullScreen ? "100%" : "auto"};
|
|
2262
|
+
|
|
2263
|
+
&.humany-drawer-transition-enter {
|
|
2264
|
+
transform: translateX(100%);
|
|
2265
|
+
}
|
|
2266
|
+
&.humany-drawer-transition-enter-active,
|
|
2267
|
+
&.humany-drawer-transition-enter-done,
|
|
2268
|
+
&.humany-drawer-transition-exit {
|
|
2269
|
+
transform: translateX(0);
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
&.humany-drawer-transition-exit-active,
|
|
2273
|
+
&.humany-drawer-transition-exit-done {
|
|
2274
|
+
transform: translateX(100%);
|
|
2275
|
+
}
|
|
2276
|
+
`;
|
|
2277
|
+
v(Oe)`
|
|
2278
|
+
${Me}
|
|
2279
|
+
transform: translateX(-100%);
|
|
2280
|
+
height: ${(t) => t.fullScreen ? "100%" : "auto"};
|
|
2281
|
+
|
|
2282
|
+
&.humany-drawer-transition-enter {
|
|
2283
|
+
transform: translateX(-100%);
|
|
2284
|
+
}
|
|
2285
|
+
&.humany-drawer-transition-enter-active,
|
|
2286
|
+
&.humany-drawer-transition-enter-done,
|
|
2287
|
+
&.humany-drawer-transition-exit {
|
|
2288
|
+
transform: translateX(0);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
&.humany-drawer-transition-exit-active,
|
|
2292
|
+
&.humany-drawer-transition-exit-done {
|
|
2293
|
+
transform: translateX(-100%);
|
|
2294
|
+
}
|
|
2295
|
+
`;
|
|
2296
|
+
v(Oe)`
|
|
2297
|
+
${Me}
|
|
2298
|
+
bottom: unset;
|
|
2299
|
+
top: 0;
|
|
2300
|
+
height: 0;
|
|
2301
|
+
|
|
2302
|
+
&.humany-drawer-transition-enter {
|
|
2303
|
+
height: 0;
|
|
2304
|
+
}
|
|
2305
|
+
&.humany-drawer-transition-enter-active,
|
|
2306
|
+
&.humany-drawer-transition-enter-done,
|
|
2307
|
+
&.humany-drawer-transition-exit {
|
|
2308
|
+
height: ${(t) => t.clientHeight}px;
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
&.humany-drawer-transition-exit-active,
|
|
2312
|
+
&.humany-drawer-transition-exit-done {
|
|
2313
|
+
height: 0;
|
|
2314
|
+
}
|
|
2315
|
+
`;
|
|
2316
|
+
const Un = (t, e, n) => {
|
|
2317
|
+
const [r, s] = M(0), [o, i] = M(0), c = T(
|
|
2318
|
+
(l, d) => {
|
|
2319
|
+
if (l.preventDefault(), d) {
|
|
2320
|
+
const a = d.getBoundingClientRect();
|
|
2321
|
+
s(Math.max(document.body.clientWidth - a.right, 1)), i(a.bottom + window.scrollY);
|
|
2322
|
+
}
|
|
2323
|
+
},
|
|
2324
|
+
[r, o, s, i]
|
|
2325
|
+
);
|
|
2326
|
+
return E(() => {
|
|
2327
|
+
if (!n || !t)
|
|
2328
|
+
return;
|
|
2329
|
+
const l = n.getBoundingClientRect(), d = {
|
|
2330
|
+
x: r,
|
|
2331
|
+
y: o
|
|
2332
|
+
};
|
|
2333
|
+
l.left < 0 && (d.x = 0), l.bottom > window.innerHeight && (d.y = 0), d.x !== r && s(d.x), d.y !== o && i(d.y);
|
|
2334
|
+
}, [n, t, e]), [{ x: r, y: o }, c];
|
|
2335
|
+
};
|
|
2336
|
+
Ce.forwardRef(
|
|
2337
|
+
({
|
|
2338
|
+
className: t = "",
|
|
2339
|
+
children: e = null,
|
|
2340
|
+
trigger: n,
|
|
2341
|
+
closeButtonAriaLabel: r,
|
|
2342
|
+
...s
|
|
2343
|
+
}, o) => {
|
|
2344
|
+
const i = A(), c = A(), l = A();
|
|
2345
|
+
Je(o, () => l.current, [l.current]);
|
|
2346
|
+
const d = A(he()), [a, u] = M(!1), f = Bn(a), [{ x: p, y }, m] = Un(a, d.current, l.current), g = ue("Escape");
|
|
2347
|
+
E(() => {
|
|
2348
|
+
g && u(!1);
|
|
2349
|
+
}, [g]), E(() => {
|
|
2350
|
+
a && i.current ? i.current.focus() : !a && c.current && f && c.current.focus();
|
|
2351
|
+
}, [a, i.current, c.current]), se(
|
|
2352
|
+
"click",
|
|
2353
|
+
(R) => {
|
|
2354
|
+
const { target: x } = R;
|
|
2355
|
+
!l.current || !x || l.current !== x && !l.current.contains(x) && u(!1);
|
|
2356
|
+
},
|
|
2357
|
+
window
|
|
2358
|
+
), tt("router:changed", () => {
|
|
2359
|
+
u(!1);
|
|
2360
|
+
});
|
|
2361
|
+
const k = Pt(d.current, () => {
|
|
2362
|
+
u(!1);
|
|
2363
|
+
}), $ = T(
|
|
2364
|
+
(R) => {
|
|
2365
|
+
R.stopPropagation(), m(R, c.current), u(!a), k();
|
|
2366
|
+
},
|
|
2367
|
+
[k, m, u]
|
|
2368
|
+
);
|
|
2369
|
+
return /* @__PURE__ */ w($e, { children: [
|
|
2370
|
+
a && /* @__PURE__ */ h(rt, { children: /* @__PURE__ */ w(
|
|
2371
|
+
Jn,
|
|
2372
|
+
{
|
|
2373
|
+
className: N(
|
|
2374
|
+
"humany-dropdown",
|
|
2375
|
+
`humany-dropdown-${d.current}`,
|
|
2376
|
+
t
|
|
2377
|
+
),
|
|
2378
|
+
...s,
|
|
2379
|
+
x: p,
|
|
2380
|
+
y,
|
|
2381
|
+
ref: l,
|
|
2382
|
+
children: [
|
|
2383
|
+
/* @__PURE__ */ h(
|
|
2384
|
+
Ht,
|
|
2385
|
+
{
|
|
2386
|
+
onClick: () => u(!1),
|
|
2387
|
+
tabIndex: 0,
|
|
2388
|
+
ref: i,
|
|
2389
|
+
"aria-label": r,
|
|
2390
|
+
children: /* @__PURE__ */ h(Ne, { symbol: { type: "Svg", content: "close" } })
|
|
2391
|
+
}
|
|
2392
|
+
),
|
|
2393
|
+
e
|
|
2394
|
+
]
|
|
2395
|
+
}
|
|
2396
|
+
) }),
|
|
2397
|
+
Ce.cloneElement(n, {
|
|
2398
|
+
onClick: $,
|
|
2399
|
+
ref: c,
|
|
2400
|
+
"aria-label": n.props.title,
|
|
2401
|
+
"aria-expanded": a
|
|
2402
|
+
})
|
|
2403
|
+
] });
|
|
2404
|
+
}
|
|
2405
|
+
);
|
|
2406
|
+
const Jn = v.div`
|
|
2407
|
+
${Dt}
|
|
2408
|
+
padding: ${(t) => {
|
|
2409
|
+
var e;
|
|
2410
|
+
return (e = t.theme.sizes) == null ? void 0 : e.medium;
|
|
2411
|
+
}};
|
|
2412
|
+
min-width: 150px;
|
|
2413
|
+
position: absolute;
|
|
2414
|
+
box-shadow: ${(t) => t.theme.boxShadow};
|
|
2415
|
+
|
|
2416
|
+
${(t) => {
|
|
2417
|
+
var n, r, s;
|
|
2418
|
+
let e = "";
|
|
2419
|
+
return t.y > 0 ? e += `top: calc(${((n = t.theme.sizes) == null ? void 0 : n.small) || "0px"} + ${t.y || "0"}px);` : e += `bottom: ${((r = t.theme.sizes) == null ? void 0 : r.normal) || "0px"};`, t.x > 0 ? e += `right: ${t.x || "0"}px;` : e += `left: ${((s = t.theme.sizes) == null ? void 0 : s.normal) || "0px"};`, e;
|
|
2420
|
+
}};
|
|
2421
|
+
`;
|
|
2422
|
+
v.div`
|
|
2423
|
+
display: none;
|
|
2424
|
+
`;
|
|
2425
|
+
V(
|
|
2426
|
+
({ children: t, columns: e, gap: n, className: r, ...s }, o) => /* @__PURE__ */ h(
|
|
2427
|
+
qn,
|
|
2428
|
+
{
|
|
2429
|
+
className: N(r, "humany-grid"),
|
|
2430
|
+
"data-columns": e,
|
|
2431
|
+
"data-gap": n,
|
|
2432
|
+
...Nt(s),
|
|
2433
|
+
...W(s),
|
|
2434
|
+
ref: o,
|
|
2435
|
+
children: t
|
|
2436
|
+
}
|
|
2437
|
+
)
|
|
2438
|
+
);
|
|
2439
|
+
const qn = v.div`
|
|
2440
|
+
display: grid;
|
|
2441
|
+
grid-template-columns: repeat(${(t) => t["data-columns"]}, 1fr);
|
|
2442
|
+
grid-gap: ${(t) => t["data-gap"]};
|
|
2443
|
+
justify-content: center;
|
|
2444
|
+
grid-auto-rows: max-content;
|
|
2445
|
+
${kn}
|
|
2446
|
+
`, Vt = V(
|
|
2447
|
+
({ htmlParseInstruction: t = null, className: e, html: n, ...r }, s) => {
|
|
2448
|
+
const o = ce(), [i, c] = M();
|
|
2449
|
+
return E(() => {
|
|
2450
|
+
const l = Mn(o, n), d = {
|
|
2451
|
+
...l,
|
|
2452
|
+
...t,
|
|
2453
|
+
transform: {
|
|
2454
|
+
...l.transform,
|
|
2455
|
+
...t == null ? void 0 : t.transform
|
|
2456
|
+
}
|
|
2457
|
+
}, a = Nn(n, d);
|
|
2458
|
+
c(a);
|
|
2459
|
+
}, [n, t]), /* @__PURE__ */ h(
|
|
2460
|
+
"div",
|
|
2461
|
+
{
|
|
2462
|
+
className: N(e, "humany-html"),
|
|
2463
|
+
...W(r),
|
|
2464
|
+
ref: s,
|
|
2465
|
+
children: i
|
|
2466
|
+
}
|
|
2467
|
+
);
|
|
2468
|
+
}
|
|
2469
|
+
), Xn = ({
|
|
2470
|
+
faIcon: t,
|
|
2471
|
+
title: e,
|
|
2472
|
+
className: n = "",
|
|
2473
|
+
role: r = "presentation",
|
|
2474
|
+
...s
|
|
2475
|
+
}) => /* @__PURE__ */ h(
|
|
2476
|
+
"i",
|
|
2477
|
+
{
|
|
2478
|
+
className: N(n, `fa fa-${t}`),
|
|
2479
|
+
title: e,
|
|
2480
|
+
role: r,
|
|
2481
|
+
...W(s)
|
|
2482
|
+
}
|
|
2483
|
+
);
|
|
2484
|
+
V(
|
|
2485
|
+
({
|
|
2486
|
+
className: t = "",
|
|
2487
|
+
autoFocus: e = !1,
|
|
2488
|
+
onFocusChange: n = () => {
|
|
2489
|
+
},
|
|
2490
|
+
onEnter: r = () => {
|
|
2491
|
+
},
|
|
2492
|
+
onEscape: s = () => {
|
|
2493
|
+
},
|
|
2494
|
+
selectAllOnFocus: o,
|
|
2495
|
+
onChange: i = () => {
|
|
2496
|
+
},
|
|
2497
|
+
disabled: c = !1,
|
|
2498
|
+
type: l,
|
|
2499
|
+
...d
|
|
2500
|
+
}, a) => {
|
|
2501
|
+
const [u, f] = M(e), p = A();
|
|
2502
|
+
Je(a, () => p.current), E(() => {
|
|
2503
|
+
var g;
|
|
2504
|
+
e && ((g = p == null ? void 0 : p.current) == null || g.focus());
|
|
2505
|
+
}, [e, a, p]);
|
|
2506
|
+
const y = (g, k) => {
|
|
2507
|
+
f(g), n && n(g), o && g && k.target.select();
|
|
2508
|
+
}, m = {
|
|
2509
|
+
...W(d),
|
|
2510
|
+
disabled: c,
|
|
2511
|
+
autoFocus: e,
|
|
2512
|
+
type: l,
|
|
2513
|
+
onKeyDown: (g) => {
|
|
2514
|
+
g.key === "Enter" && u && r(g), g.key === "Escape" && u && s(g);
|
|
2515
|
+
},
|
|
2516
|
+
onFocus: (g) => y(!0, g),
|
|
2517
|
+
onBlur: (g) => y(!1, g),
|
|
2518
|
+
onChange: (g) => i(g.target.value || ""),
|
|
2519
|
+
className: N(t, "humany-input"),
|
|
2520
|
+
"data-type": l
|
|
2521
|
+
};
|
|
2522
|
+
return l !== "textarea" ? /* @__PURE__ */ h(
|
|
2523
|
+
"input",
|
|
2524
|
+
{
|
|
2525
|
+
...m,
|
|
2526
|
+
ref: p
|
|
2527
|
+
}
|
|
2528
|
+
) : /* @__PURE__ */ h(
|
|
2529
|
+
"textarea",
|
|
2530
|
+
{
|
|
2531
|
+
...m,
|
|
2532
|
+
ref: p
|
|
2533
|
+
}
|
|
2534
|
+
);
|
|
2535
|
+
}
|
|
2536
|
+
);
|
|
2537
|
+
const Yn = V(
|
|
2538
|
+
({ className: t, items: e, renderItem: n, renderLi: r = !1, ...s }, o) => /* @__PURE__ */ h(
|
|
2539
|
+
"ul",
|
|
2540
|
+
{
|
|
2541
|
+
className: N(t, "humany-list"),
|
|
2542
|
+
"data-item-count": e.length,
|
|
2543
|
+
...W(s),
|
|
2544
|
+
ref: o,
|
|
2545
|
+
children: e.map(
|
|
2546
|
+
(i, c, l) => r ? /* @__PURE__ */ h("li", { className: "humany-list-item", children: n(i, c, l) }, i.id || c) : n(i, c, l)
|
|
2547
|
+
)
|
|
2548
|
+
}
|
|
2549
|
+
)
|
|
2550
|
+
), Qn = V(
|
|
2551
|
+
({ text: t, html: e, header: n, className: r, htmlParseInstruction: s, symbol: o, ...i }, c) => /* @__PURE__ */ w(
|
|
2552
|
+
"div",
|
|
2553
|
+
{
|
|
2554
|
+
className: N(r, "humany-paragraph"),
|
|
2555
|
+
...W(i),
|
|
2556
|
+
ref: c,
|
|
2557
|
+
children: [
|
|
2558
|
+
n ? /* @__PURE__ */ w(st, { variant: "h1", children: [
|
|
2559
|
+
o ? /* @__PURE__ */ h(Ne, { symbol: o }) : null,
|
|
2560
|
+
n
|
|
2561
|
+
] }) : null,
|
|
2562
|
+
e ? /* @__PURE__ */ h(Vt, { html: e, htmlParseInstruction: s }) : null,
|
|
2563
|
+
t ? /* @__PURE__ */ h(nt, { children: t }) : null
|
|
2564
|
+
]
|
|
2565
|
+
}
|
|
2566
|
+
)
|
|
2567
|
+
);
|
|
2568
|
+
V(
|
|
2569
|
+
({
|
|
2570
|
+
header: t,
|
|
2571
|
+
customHeader: e,
|
|
2572
|
+
text: n,
|
|
2573
|
+
html: r,
|
|
2574
|
+
className: s,
|
|
2575
|
+
children: o,
|
|
2576
|
+
symbol: i,
|
|
2577
|
+
items: c,
|
|
2578
|
+
renderItem: l,
|
|
2579
|
+
renderLi: d,
|
|
2580
|
+
ulProps: a,
|
|
2581
|
+
...u
|
|
2582
|
+
}, f) => /* @__PURE__ */ w(
|
|
2583
|
+
"div",
|
|
2584
|
+
{
|
|
2585
|
+
className: N(s, "humany-item-list"),
|
|
2586
|
+
"data-item-count": c.length,
|
|
2587
|
+
...W(u),
|
|
2588
|
+
ref: f,
|
|
2589
|
+
children: [
|
|
2590
|
+
e || (t || n || r ? /* @__PURE__ */ h(Qn, { symbol: i, header: t, text: n, html: r }) : null),
|
|
2591
|
+
c.length ? /* @__PURE__ */ h(Yn, { items: c, renderItem: l, renderLi: d, ...a }) : null,
|
|
2592
|
+
o
|
|
2593
|
+
]
|
|
2594
|
+
}
|
|
2595
|
+
)
|
|
2596
|
+
);
|
|
2597
|
+
var zt = function() {
|
|
2598
|
+
};
|
|
2599
|
+
process.env.NODE_ENV !== "production" && (zt = function(t, e, n) {
|
|
2600
|
+
var r = arguments.length;
|
|
2601
|
+
n = new Array(r > 2 ? r - 2 : 0);
|
|
2602
|
+
for (var s = 2; s < r; s++)
|
|
2603
|
+
n[s - 2] = arguments[s];
|
|
2604
|
+
if (e === void 0)
|
|
2605
|
+
throw new Error(
|
|
2606
|
+
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
2607
|
+
);
|
|
2608
|
+
if (e.length < 10 || /^[s\W]*$/.test(e))
|
|
2609
|
+
throw new Error(
|
|
2610
|
+
"The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: " + e
|
|
2611
|
+
);
|
|
2612
|
+
if (!t) {
|
|
2613
|
+
var o = 0, i = "Warning: " + e.replace(/%s/g, function() {
|
|
2614
|
+
return n[o++];
|
|
2615
|
+
});
|
|
2616
|
+
typeof console < "u" && console.error(i);
|
|
2617
|
+
try {
|
|
2618
|
+
throw new Error(i);
|
|
2619
|
+
} catch {
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
});
|
|
2623
|
+
var Gn = zt, er = Gn;
|
|
2624
|
+
tr(er);
|
|
2625
|
+
function tr(t) {
|
|
2626
|
+
return t && t.__esModule ? t : { default: t };
|
|
2627
|
+
}
|
|
2628
|
+
function ve(t) {
|
|
2629
|
+
return t.charAt(0) === "/";
|
|
2630
|
+
}
|
|
2631
|
+
function Ve(t, e) {
|
|
2632
|
+
for (var n = e, r = n + 1, s = t.length; r < s; n += 1, r += 1)
|
|
2633
|
+
t[n] = t[r];
|
|
2634
|
+
t.pop();
|
|
2635
|
+
}
|
|
2636
|
+
function nr(t) {
|
|
2637
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", n = t && t.split("/") || [], r = e && e.split("/") || [], s = t && ve(t), o = e && ve(e), i = s || o;
|
|
2638
|
+
if (t && ve(t) ? r = n : n.length && (r.pop(), r = r.concat(n)), !r.length)
|
|
2639
|
+
return "/";
|
|
2640
|
+
var c = void 0;
|
|
2641
|
+
if (r.length) {
|
|
2642
|
+
var l = r[r.length - 1];
|
|
2643
|
+
c = l === "." || l === ".." || l === "";
|
|
2644
|
+
} else
|
|
2645
|
+
c = !1;
|
|
2646
|
+
for (var d = 0, a = r.length; a >= 0; a--) {
|
|
2647
|
+
var u = r[a];
|
|
2648
|
+
u === "." ? Ve(r, a) : u === ".." ? (Ve(r, a), d++) : d && (Ve(r, a), d--);
|
|
2649
|
+
}
|
|
2650
|
+
if (!i)
|
|
2651
|
+
for (; d--; d)
|
|
2652
|
+
r.unshift("..");
|
|
2653
|
+
i && r[0] !== "" && (!r[0] || !ve(r[0])) && r.unshift("");
|
|
2654
|
+
var f = r.join("/");
|
|
2655
|
+
return c && f.substr(-1) !== "/" && (f += "/"), f;
|
|
2656
|
+
}
|
|
2657
|
+
const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2658
|
+
__proto__: null,
|
|
2659
|
+
default: nr
|
|
2660
|
+
}, Symbol.toStringTag, { value: "Module" })), sr = /* @__PURE__ */ Mt(rr);
|
|
2661
|
+
var vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2662
|
+
return typeof t;
|
|
2663
|
+
} : function(t) {
|
|
2664
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2665
|
+
};
|
|
2666
|
+
function be(t, e) {
|
|
2667
|
+
if (t === e)
|
|
2668
|
+
return !0;
|
|
2669
|
+
if (t == null || e == null)
|
|
2670
|
+
return !1;
|
|
2671
|
+
if (Array.isArray(t))
|
|
2672
|
+
return Array.isArray(e) && t.length === e.length && t.every(function(l, d) {
|
|
2673
|
+
return be(l, e[d]);
|
|
2674
|
+
});
|
|
2675
|
+
var n = typeof t > "u" ? "undefined" : vt(t), r = typeof e > "u" ? "undefined" : vt(e);
|
|
2676
|
+
if (n !== r)
|
|
2677
|
+
return !1;
|
|
2678
|
+
if (n === "object") {
|
|
2679
|
+
var s = t.valueOf(), o = e.valueOf();
|
|
2680
|
+
if (s !== t || o !== e)
|
|
2681
|
+
return be(s, o);
|
|
2682
|
+
var i = Object.keys(t), c = Object.keys(e);
|
|
2683
|
+
return i.length !== c.length ? !1 : i.every(function(l) {
|
|
2684
|
+
return be(t[l], e[l]);
|
|
2685
|
+
});
|
|
2686
|
+
}
|
|
2687
|
+
return !1;
|
|
2688
|
+
}
|
|
2689
|
+
const or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2690
|
+
__proto__: null,
|
|
2691
|
+
default: be
|
|
2692
|
+
}, Symbol.toStringTag, { value: "Module" })), ir = /* @__PURE__ */ Mt(or);
|
|
2693
|
+
var ar = sr;
|
|
2694
|
+
Bt(ar);
|
|
2695
|
+
var cr = ir;
|
|
2696
|
+
Bt(cr);
|
|
2697
|
+
function Bt(t) {
|
|
2698
|
+
return t && t.__esModule ? t : { default: t };
|
|
2699
|
+
}
|
|
2700
|
+
var Ie = /* @__PURE__ */ ((t) => (t.scopedHash = "scopedHash", t.hash = "hash", t.browser = "browser", t.memory = "memory", t))(Ie || {});
|
|
2701
|
+
const lr = (t, e) => {
|
|
2702
|
+
const n = `humany-${e}=([^&?]+)&?`, r = new RegExp(n, "i"), s = t.match(r);
|
|
2703
|
+
return s && s[1] || "/";
|
|
2704
|
+
};
|
|
2705
|
+
Ee((t) => {
|
|
2706
|
+
t.createCommand("routing", (e) => (n) => {
|
|
2707
|
+
const r = {
|
|
2708
|
+
mode: n.mode
|
|
2709
|
+
};
|
|
2710
|
+
n.basePath && (r.basePath = n.basePath), e.container.register("routingSettings", r);
|
|
2711
|
+
});
|
|
2712
|
+
});
|
|
2713
|
+
var U = /* @__PURE__ */ ((t) => (t.Cookie = "cookie", t.Local = "local", t.Session = "session", t))(U || {}), ot = /* @__PURE__ */ ((t) => (t.Tenant = "tenant", t.Implementation = "implementation", t.Widget = "widget", t))(ot || {}), _ = /* @__PURE__ */ ((t) => (t.Necessary = "necessary", t.Functional = "functional", t.Analytical = "analytical", t.Marketing = "marketing", t))(_ || {});
|
|
2714
|
+
const ur = (t, e, n, r = {}) => bt(t, n).then((s) => (process.env.NODE_ENV !== "production" && s && P.warn(
|
|
2715
|
+
`createStorageWriter: Attempted to create storage writer using unallowed category.
|
|
2716
|
+
Key: ${e}
|
|
2717
|
+
Category: ${JSON.stringify(n)}
|
|
2718
|
+
Options: ${JSON.stringify(r)}`
|
|
2719
|
+
), (o) => (at(t), bt(t, n).then((i) => {
|
|
2720
|
+
if (i) {
|
|
2721
|
+
process.env.NODE_ENV !== "production" && P.warn(
|
|
2722
|
+
`storageWriter: Attempted to write to storage using unallowed category.
|
|
2723
|
+
Key: ${e}
|
|
2724
|
+
Category: ${JSON.stringify(n)}
|
|
2725
|
+
Value: ${JSON.stringify(o)}
|
|
2726
|
+
Options: ${JSON.stringify(r)}`
|
|
2727
|
+
);
|
|
2728
|
+
return;
|
|
2729
|
+
}
|
|
2730
|
+
const {
|
|
2731
|
+
scope: c = ot.Widget,
|
|
2732
|
+
medium: l = U.Session,
|
|
2733
|
+
duration: d
|
|
2734
|
+
} = r, a = fr();
|
|
2735
|
+
return a[c][e] = Wt(o, n, d), l === U.Cookie ? vr(t, a) : Cr(t, l, a);
|
|
2736
|
+
})))), hr = (t, e, n = U.Session) => (at(t), typeof e > "u" ? (process.env.NODE_ENV !== "production" && P.warn("readStorage: Undefined key passed when reading storage. ", e, n), Promise.resolve(void 0)) : n === U.Cookie ? yr(t).then((r) => Fe(r, e)) : br(t, n).then((r) => Fe(r, e))), oe = (t) => !!Object.entries(t).filter(([e, n]) => typeof n < "u").length, ze = (t) => Object.entries(t).filter(([e, n]) => typeof n < "u").forEach(([e, { value: n }]) => {
|
|
2737
|
+
typeof n > "u" && delete t[e];
|
|
2738
|
+
}), _t = (t, e) => {
|
|
2739
|
+
const n = {
|
|
2740
|
+
tenant: { ...t.tenant, ...e.tenant },
|
|
2741
|
+
implementation: { ...t.implementation, ...e.implementation },
|
|
2742
|
+
widget: { ...t.widget, ...e.widget }
|
|
2743
|
+
};
|
|
2744
|
+
return ze(n.tenant), ze(n.implementation), ze(n.widget), n;
|
|
2745
|
+
}, dr = (t) => Object.entries(t).reduce((n, r) => {
|
|
2746
|
+
const [s, o] = r;
|
|
2747
|
+
return Object.entries(o).forEach((i) => {
|
|
2748
|
+
const [c, { expiration: l }] = i;
|
|
2749
|
+
l && n.push(l);
|
|
2750
|
+
}), n;
|
|
2751
|
+
}, []).slice().sort((n, r) => new Date(r).valueOf() - new Date(n).valueOf()).shift() || ct(), Ae = (t) => {
|
|
2752
|
+
const {
|
|
2753
|
+
name: e,
|
|
2754
|
+
implementation: { name: n, tenant: r }
|
|
2755
|
+
} = t.get("$widget");
|
|
2756
|
+
return [
|
|
2757
|
+
`humany_${r}`,
|
|
2758
|
+
`humany_${pt(r + n)}`,
|
|
2759
|
+
`humany_${pt(r + n + e)}`
|
|
2760
|
+
];
|
|
2761
|
+
}, Be = (t) => {
|
|
2762
|
+
const e = new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`, "i"), n = document.cookie.match(e);
|
|
2763
|
+
return n && n[1] && JSON.parse(n[1]) || void 0;
|
|
2764
|
+
}, _e = (t, e, n) => {
|
|
2765
|
+
const r = `${t}=${JSON.stringify(e).trim()}`, s = `expires=${new Date(n).toUTCString()}`, o = "path=/", i = "SameSite=None;Secure";
|
|
2766
|
+
return document.cookie = `${r}; ${s}; ${o}; ${i}`;
|
|
2767
|
+
}, it = (t) => {
|
|
2768
|
+
const [e, n, r] = Ae(t), s = Be(e) || {}, o = Be(n) || {}, i = Be(r) || {};
|
|
2769
|
+
return {
|
|
2770
|
+
tenant: s,
|
|
2771
|
+
implementation: o,
|
|
2772
|
+
widget: i
|
|
2773
|
+
};
|
|
2774
|
+
}, Zt = (t, e) => {
|
|
2775
|
+
const n = it(t), r = _t(n, e), [s, o, i] = Ae(t), { tenant: c, implementation: l, widget: d } = r, a = dr(e), u = ct({ days: -1 });
|
|
2776
|
+
_e(s, c, oe(c) ? a : u), _e(
|
|
2777
|
+
o,
|
|
2778
|
+
l,
|
|
2779
|
+
oe(l) ? a : u
|
|
2780
|
+
), _e(i, d, oe(d) ? a : u);
|
|
2781
|
+
}, ke = (t, e) => {
|
|
2782
|
+
const [n, r, s] = Ae(t), o = e.getItem(n) || "{}", i = e.getItem(r) || "{}", c = e.getItem(s) || "{}";
|
|
2783
|
+
return {
|
|
2784
|
+
tenant: JSON.parse(o),
|
|
2785
|
+
implementation: JSON.parse(i),
|
|
2786
|
+
widget: JSON.parse(c)
|
|
2787
|
+
};
|
|
2788
|
+
}, je = (t, e, n) => {
|
|
2789
|
+
const r = ke(t, e), s = _t(r, n), [o, i, c] = Ae(t), { tenant: l, implementation: d, widget: a } = s;
|
|
2790
|
+
oe(l) ? e.setItem(o, JSON.stringify(l)) : e.removeItem(o), oe(d) ? e.setItem(i, JSON.stringify(d)) : e.removeItem(i), oe(a) ? e.setItem(c, JSON.stringify(a)) : e.removeItem(c);
|
|
2791
|
+
}, fr = () => ({ tenant: {}, implementation: {}, widget: {} }), pr = (t) => t ? !!t && /* @__PURE__ */ new Date() > new Date(t) : !1, Fe = (t, e) => {
|
|
2792
|
+
const n = t.widget[e] || t.implementation[e] || t.tenant[e];
|
|
2793
|
+
return n == null ? void 0 : n.value;
|
|
2794
|
+
}, Wt = (t, e, n) => n ? {
|
|
2795
|
+
value: t,
|
|
2796
|
+
category: e,
|
|
2797
|
+
expiration: typeof n == "object" ? ct(n) : n
|
|
2798
|
+
} : {
|
|
2799
|
+
value: t,
|
|
2800
|
+
category: e
|
|
2801
|
+
}, mr = (t, e) => {
|
|
2802
|
+
const n = $t(t);
|
|
2803
|
+
return Object.entries(n).forEach(([r, s]) => {
|
|
2804
|
+
Object.entries(s).forEach(([o, i]) => {
|
|
2805
|
+
const { expiration: c, category: l } = i;
|
|
2806
|
+
(pr(c) || gr(e, l)) && (s[o] = Wt(void 0, l, c));
|
|
2807
|
+
});
|
|
2808
|
+
}), n;
|
|
2809
|
+
}, bt = (t, e) => hr(t, "storagePolicy", U.Cookie).then(
|
|
2810
|
+
(n = [_.Necessary]) => !!e && n.indexOf(e) === -1
|
|
2811
|
+
), gr = (t = [_.Necessary], e) => !!e && t.indexOf(e) === -1, at = (t) => {
|
|
2812
|
+
const e = it(t), n = ke(t, window.localStorage), r = ke(t, sessionStorage), s = Fe(e, "storagePolicy"), [o, i, c] = [
|
|
2813
|
+
e,
|
|
2814
|
+
n,
|
|
2815
|
+
r
|
|
2816
|
+
].map((l) => mr(l, s));
|
|
2817
|
+
Zt(t, o), je(t, window.localStorage, i), je(t, window.sessionStorage, c);
|
|
2818
|
+
}, ct = (t = { days: 30 }) => {
|
|
2819
|
+
const { days: e = 0, hours: n = 0, minutes: r = 0, seconds: s = 0 } = t, o = /* @__PURE__ */ new Date();
|
|
2820
|
+
return o.setTime(o.getTime() + n * 60 * 60 * 1e3), o.setTime(o.getTime() + e * 24 * 60 * 60 * 1e3), o.setTime(o.getTime() + r * 60 * 1e3), o.setTime(o.getTime() + s * 1e3), o.toISOString();
|
|
2821
|
+
}, yr = (t) => Le(document)(() => it(t)), vr = (t, e) => Le(document)(() => Zt(t, e)), br = (t, e) => {
|
|
2822
|
+
const n = e === U.Local ? window.localStorage : window.sessionStorage;
|
|
2823
|
+
return Le(n)(() => ke(t, n));
|
|
2824
|
+
}, Cr = (t, e, n) => {
|
|
2825
|
+
const r = e === U.Local ? window.localStorage : window.sessionStorage;
|
|
2826
|
+
return Le(r)(() => je(t, r, n));
|
|
2827
|
+
};
|
|
2828
|
+
Ee((t) => {
|
|
2829
|
+
t.createCommand("storage", (e) => (n = {}) => {
|
|
2830
|
+
const { consent: r } = n;
|
|
2831
|
+
if (typeof r < "u") {
|
|
2832
|
+
if (typeof r != "number" && typeof r != "string" && !Array.isArray(r)) {
|
|
2833
|
+
process.env.NODE_ENV !== "production" && P.warn(
|
|
2834
|
+
`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
|
2835
|
+
Passed consent: ${JSON.stringify(r)}`
|
|
2836
|
+
);
|
|
2837
|
+
return;
|
|
2838
|
+
}
|
|
2839
|
+
if (Array.isArray(r) && !r.every(
|
|
2840
|
+
(o) => typeof o == "number" || typeof o == "string"
|
|
2841
|
+
)) {
|
|
2842
|
+
process.env.NODE_ENV !== "production" && P.warn(
|
|
2843
|
+
`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
|
2844
|
+
Passed consent: ${JSON.stringify(r)}`
|
|
2845
|
+
);
|
|
2846
|
+
return;
|
|
2847
|
+
}
|
|
2848
|
+
const s = [
|
|
2849
|
+
_.Necessary,
|
|
2850
|
+
_.Functional,
|
|
2851
|
+
_.Analytical,
|
|
2852
|
+
_.Marketing
|
|
2853
|
+
].filter((o, i, c) => typeof r == "number" ? r > i : typeof r == "string" ? c.indexOf(r) + 1 > i : Array.isArray(r) ? r.findIndex((l) => l === i + 1 || l === o) > -1 : !0);
|
|
2854
|
+
return s.indexOf(_.Necessary) === -1 && (process.env.NODE_ENV !== "production" && P.warn(
|
|
2855
|
+
`storagePolicyConfigurationApi: passed consent does not include category: '${_.Necessary}'. Consent has to atleast include the '${_.Necessary}' category.
|
|
2856
|
+
Passed consent: ${JSON.stringify(r)}`
|
|
2857
|
+
), s.unshift(_.Necessary)), ur(
|
|
2858
|
+
e.container,
|
|
2859
|
+
"storagePolicy",
|
|
2860
|
+
_.Necessary,
|
|
2861
|
+
{
|
|
2862
|
+
medium: U.Cookie,
|
|
2863
|
+
scope: ot.Tenant,
|
|
2864
|
+
duration: { days: 365 }
|
|
2865
|
+
}
|
|
2866
|
+
).then((o) => o(s)).then(() => {
|
|
2867
|
+
at(e.container), e.events.dispatch("storage:policy-changed", s);
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
});
|
|
2871
|
+
});
|
|
2872
|
+
const wr = V(
|
|
2873
|
+
({ className: t, onClick: e = () => {
|
|
2874
|
+
}, name: n = "", to: r = "", params: s = {}, children: o, ...i }, c) => {
|
|
2875
|
+
const l = _n(), d = ce();
|
|
2876
|
+
if (!l)
|
|
2877
|
+
return null;
|
|
2878
|
+
let a = "";
|
|
2879
|
+
const u = {
|
|
2880
|
+
onClick: e,
|
|
2881
|
+
className: N(t, "humany-route-link"),
|
|
2882
|
+
to: a,
|
|
2883
|
+
innerRef: c,
|
|
2884
|
+
...i,
|
|
2885
|
+
ref: null
|
|
2886
|
+
};
|
|
2887
|
+
if (n) {
|
|
2888
|
+
if (!(l.routes || []).find((m) => m.name === n))
|
|
2889
|
+
return process.env.NODE_ENV !== "production" && P.warn(`Unable to create route. No route named "${n}" exist.`), /* @__PURE__ */ h(
|
|
2890
|
+
Re,
|
|
2891
|
+
{
|
|
2892
|
+
...u,
|
|
2893
|
+
onClick: (m) => {
|
|
2894
|
+
e(m), m.preventDefault(), process.env.NODE_ENV !== "production" && P.warn(`Unable to navigate. No route named "${n}" exist.`);
|
|
2895
|
+
},
|
|
2896
|
+
children: o
|
|
2897
|
+
}
|
|
2898
|
+
);
|
|
2899
|
+
const y = Object.keys(s).reduce((m, g) => {
|
|
2900
|
+
const k = s[g];
|
|
2901
|
+
if (Array.isArray(k)) {
|
|
2902
|
+
if (k.length === 0)
|
|
2903
|
+
return m;
|
|
2904
|
+
m[g] = k.map(($) => typeof $ == "string" ? encodeURIComponent($) : $).join(",");
|
|
2905
|
+
} else
|
|
2906
|
+
m[g] = typeof k == "string" ? encodeURIComponent(k) : k;
|
|
2907
|
+
return m;
|
|
2908
|
+
}, {});
|
|
2909
|
+
try {
|
|
2910
|
+
a = l.generate(n, y || {});
|
|
2911
|
+
} catch {
|
|
2912
|
+
return /* @__PURE__ */ h(Re, { ...u, ref: u.innerRef, children: o });
|
|
2913
|
+
}
|
|
2914
|
+
a && l.settings.mode && l.settings.mode === Ie.browser && a[0] !== "/" && (a = `/${a}`);
|
|
2915
|
+
} else if (r && l.history)
|
|
2916
|
+
a = l.history.createHref({
|
|
2917
|
+
hash: "",
|
|
2918
|
+
pathname: r,
|
|
2919
|
+
search: "",
|
|
2920
|
+
state: void 0
|
|
2921
|
+
});
|
|
2922
|
+
else
|
|
2923
|
+
return process.env.NODE_ENV !== "production" && P.warn(
|
|
2924
|
+
'Unable to generate path for route link. Either specify route name or use the "to" prop.'
|
|
2925
|
+
), null;
|
|
2926
|
+
if (l.settings && l.settings.mode === Ie.scopedHash) {
|
|
2927
|
+
const f = d.get("$widget").name;
|
|
2928
|
+
a = lr(a, f);
|
|
2929
|
+
}
|
|
2930
|
+
return u.as ? /* @__PURE__ */ h(xr, { ...u, as: u.as, children: o }) : /* @__PURE__ */ h(Re, { ...u, to: a, children: o });
|
|
2931
|
+
}
|
|
2932
|
+
), xr = v.span``, lt = V(
|
|
2933
|
+
({
|
|
2934
|
+
className: t,
|
|
2935
|
+
disabled: e = !1,
|
|
2936
|
+
role: n = "link",
|
|
2937
|
+
tabIndex: r = 0,
|
|
2938
|
+
onClick: s = () => {
|
|
2939
|
+
},
|
|
2940
|
+
onKeyDown: o = () => {
|
|
2941
|
+
},
|
|
2942
|
+
title: i,
|
|
2943
|
+
as: c,
|
|
2944
|
+
href: l,
|
|
2945
|
+
children: d,
|
|
2946
|
+
target: a,
|
|
2947
|
+
routeName: u,
|
|
2948
|
+
params: f,
|
|
2949
|
+
...p
|
|
2950
|
+
}, y) => {
|
|
2951
|
+
const m = {
|
|
2952
|
+
title: i,
|
|
2953
|
+
disabled: e,
|
|
2954
|
+
role: n,
|
|
2955
|
+
as: c,
|
|
2956
|
+
tabIndex: r,
|
|
2957
|
+
className: N(t, "humany-link", [!!e, "humany-disabled"]),
|
|
2958
|
+
onClick: (g) => {
|
|
2959
|
+
if (g.persist(), e) {
|
|
2960
|
+
g.preventDefault();
|
|
2961
|
+
return;
|
|
2962
|
+
}
|
|
2963
|
+
s(g);
|
|
2964
|
+
},
|
|
2965
|
+
onKeyDown: (g) => {
|
|
2966
|
+
if (g.persist(), e) {
|
|
2967
|
+
g.key !== "Tab" && g.preventDefault();
|
|
2968
|
+
return;
|
|
2969
|
+
}
|
|
2970
|
+
o(g);
|
|
2971
|
+
}
|
|
2972
|
+
};
|
|
2973
|
+
return u ? /* @__PURE__ */ h(
|
|
2974
|
+
kr,
|
|
2975
|
+
{
|
|
2976
|
+
name: u,
|
|
2977
|
+
params: f,
|
|
2978
|
+
...m,
|
|
2979
|
+
...W(p),
|
|
2980
|
+
ref: y,
|
|
2981
|
+
children: d
|
|
2982
|
+
}
|
|
2983
|
+
) : /* @__PURE__ */ h(
|
|
2984
|
+
$r,
|
|
2985
|
+
{
|
|
2986
|
+
href: l,
|
|
2987
|
+
target: a,
|
|
2988
|
+
...m,
|
|
2989
|
+
...W(p),
|
|
2990
|
+
ref: y,
|
|
2991
|
+
children: d
|
|
2992
|
+
}
|
|
2993
|
+
);
|
|
2994
|
+
}
|
|
2995
|
+
), kr = v(wr)`
|
|
2996
|
+
${(t) => t.disabled ? `
|
|
2997
|
+
pointer-events: none;
|
|
2998
|
+
opacity: .7;
|
|
2999
|
+
` : "cursor: pointer;"}
|
|
3000
|
+
`, $r = v.a`
|
|
3001
|
+
${(t) => t.disabled ? `
|
|
3002
|
+
pointer-events: none;
|
|
3003
|
+
opacity: .7;
|
|
3004
|
+
` : "cursor: pointer;"}
|
|
3005
|
+
`, It = ({
|
|
3006
|
+
visible: t,
|
|
3007
|
+
duration: e = 500,
|
|
3008
|
+
children: n,
|
|
3009
|
+
onClick: r = () => {
|
|
3010
|
+
},
|
|
3011
|
+
...s
|
|
3012
|
+
}) => {
|
|
3013
|
+
const o = A(), i = T(
|
|
3014
|
+
(c) => {
|
|
3015
|
+
c.target === o.current && r(c);
|
|
3016
|
+
},
|
|
3017
|
+
[r]
|
|
3018
|
+
);
|
|
3019
|
+
return /* @__PURE__ */ h(
|
|
3020
|
+
Xt,
|
|
3021
|
+
{
|
|
3022
|
+
in: t,
|
|
3023
|
+
className: "humany-overlay-transition",
|
|
3024
|
+
classNames: "humany-overlay-transition",
|
|
3025
|
+
unmountOnExit: !0,
|
|
3026
|
+
timeout: e,
|
|
3027
|
+
children: /* @__PURE__ */ h(rt, { children: /* @__PURE__ */ h(
|
|
3028
|
+
Er,
|
|
3029
|
+
{
|
|
3030
|
+
className: "humany-overlay",
|
|
3031
|
+
duration: e,
|
|
3032
|
+
ref: o,
|
|
3033
|
+
onClick: i,
|
|
3034
|
+
...s,
|
|
3035
|
+
children: n
|
|
3036
|
+
}
|
|
3037
|
+
) })
|
|
3038
|
+
}
|
|
3039
|
+
);
|
|
3040
|
+
}, Er = v.div`
|
|
3041
|
+
background: rgba(0, 0, 0, 0.6);
|
|
3042
|
+
min-width: 100%;
|
|
3043
|
+
min-height: 100%;
|
|
3044
|
+
position: fixed;
|
|
3045
|
+
top: 0;
|
|
3046
|
+
bottom: 0;
|
|
3047
|
+
right: 0;
|
|
3048
|
+
left: 0;
|
|
3049
|
+
display: flex;
|
|
3050
|
+
justify-content: center;
|
|
3051
|
+
align-items: center;
|
|
3052
|
+
z-index: 7;
|
|
3053
|
+
|
|
3054
|
+
transition: ${(t) => t.duration}ms;
|
|
3055
|
+
opacity: 0;
|
|
3056
|
+
|
|
3057
|
+
&.humany-overlay-transition-enter {
|
|
3058
|
+
opacity: 0.1;
|
|
3059
|
+
}
|
|
3060
|
+
&.humany-overlay-transition-enter-active,
|
|
3061
|
+
&.humany-overlay-transition-enter-done,
|
|
3062
|
+
&.humany-overlay-transition-exit {
|
|
3063
|
+
opacity: 1;
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
&.humany-overlay-transition-exit-active,
|
|
3067
|
+
&.humany-overlay-transition-exit-done {
|
|
3068
|
+
opacity: 0;
|
|
3069
|
+
}
|
|
3070
|
+
`, Lr = Ct`
|
|
3071
|
+
100% {
|
|
3072
|
+
transform: rotate(360deg);
|
|
3073
|
+
}
|
|
3074
|
+
`, Sr = Ct`
|
|
3075
|
+
0% {
|
|
3076
|
+
stroke-dasharray: 1, 200;
|
|
3077
|
+
stroke-dashoffset: 0;
|
|
3078
|
+
}
|
|
3079
|
+
50% {
|
|
3080
|
+
stroke-dasharray: 89, 200;
|
|
3081
|
+
stroke-dashoffset: -35px;
|
|
3082
|
+
}
|
|
3083
|
+
100% {
|
|
3084
|
+
stroke-dasharray: 89, 200;
|
|
3085
|
+
stroke-dashoffset: -124px;
|
|
3086
|
+
}
|
|
3087
|
+
`, Nr = v.svg`
|
|
3088
|
+
animation: ${Lr} 2s linear infinite;
|
|
3089
|
+
height: 100%;
|
|
3090
|
+
transform-origin: center center;
|
|
3091
|
+
width: 100%;
|
|
3092
|
+
position: absolute;
|
|
3093
|
+
top: 0;
|
|
3094
|
+
bottom: 0;
|
|
3095
|
+
left: 0;
|
|
3096
|
+
right: 0;
|
|
3097
|
+
margin: auto;
|
|
3098
|
+
transition: 200ms ease-out opacity;
|
|
3099
|
+
`, Or = v.div`
|
|
3100
|
+
position: absolute;
|
|
3101
|
+
top: 0;
|
|
3102
|
+
bottom: 0;
|
|
3103
|
+
left: 0;
|
|
3104
|
+
right: 0;
|
|
3105
|
+
height: 100%;
|
|
3106
|
+
width: 100%;
|
|
3107
|
+
pointer-events: ${(t) => t["data-loading"] ? "all" : "none"};
|
|
3108
|
+
display: flex;
|
|
3109
|
+
flex-direction: column;
|
|
3110
|
+
justify-content: center;
|
|
3111
|
+
transition: 200ms ease-out opacity;
|
|
3112
|
+
box-sizing: border-box;
|
|
3113
|
+
overflow: hidden;
|
|
3114
|
+
svg {
|
|
3115
|
+
opacity: ${(t) => t["data-loading"] ? "1" : "0"};
|
|
3116
|
+
}
|
|
3117
|
+
`, Mr = v.div`
|
|
3118
|
+
position: relative;
|
|
3119
|
+
margin: 0 auto;
|
|
3120
|
+
width: 100px;
|
|
3121
|
+
&:before {
|
|
3122
|
+
content: '';
|
|
3123
|
+
display: block;
|
|
3124
|
+
padding-top: 100%;
|
|
3125
|
+
}
|
|
3126
|
+
`, Ar = v.circle`
|
|
3127
|
+
stroke-dasharray: 1, 200;
|
|
3128
|
+
stroke-dashoffset: 0;
|
|
3129
|
+
animation: ${Sr} 1.5s ease-in-out infinite;
|
|
3130
|
+
stroke-linecap: round;
|
|
3131
|
+
stroke: ${(t) => {
|
|
3132
|
+
var e;
|
|
3133
|
+
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
3134
|
+
}};
|
|
3135
|
+
stroke-width: 2px;
|
|
3136
|
+
`, Rr = ({ className: t, loading: e = !1 }) => /* @__PURE__ */ h(Or, { className: N("humany-loader", t), "data-loading": e, children: /* @__PURE__ */ h(Mr, { className: "humany-spinner", children: /* @__PURE__ */ h(Nr, { viewBox: "25 25 50 50", children: /* @__PURE__ */ h(
|
|
3137
|
+
Ar,
|
|
3138
|
+
{
|
|
3139
|
+
cx: "50",
|
|
3140
|
+
cy: "50",
|
|
3141
|
+
r: "20",
|
|
3142
|
+
fill: "none",
|
|
3143
|
+
"stroke-width": "2",
|
|
3144
|
+
"stroke-miterlimit": "10"
|
|
3145
|
+
}
|
|
3146
|
+
) }) }) }), Tr = ({
|
|
3147
|
+
zoomState: t,
|
|
3148
|
+
image: e,
|
|
3149
|
+
changeZoom: n,
|
|
3150
|
+
...r
|
|
3151
|
+
}) => {
|
|
3152
|
+
var y;
|
|
3153
|
+
const s = A(null), [o, i] = M(!1), [c, l] = M(!1), { width: d, height: a, ...u } = r.style || {}, f = T(() => {
|
|
3154
|
+
const m = s.current;
|
|
3155
|
+
if (m) {
|
|
3156
|
+
const g = window.innerWidth / m.naturalWidth, k = window.innerHeight / m.naturalHeight, $ = Math.min(g, k);
|
|
3157
|
+
return k >= 1 && g >= 1 ? 1 : $;
|
|
3158
|
+
}
|
|
3159
|
+
return 1;
|
|
3160
|
+
}, [o, e.src]), p = we(() => {
|
|
3161
|
+
const m = s.current;
|
|
3162
|
+
if (m && o) {
|
|
3163
|
+
if (!c) {
|
|
3164
|
+
l(!0);
|
|
3165
|
+
const g = f();
|
|
3166
|
+
n(g);
|
|
3167
|
+
}
|
|
3168
|
+
return m.naturalWidth >= m.naturalHeight ? [`${t * m.naturalWidth}px`, "auto"] : ["auto", `${t * m.naturalHeight}px`];
|
|
3169
|
+
}
|
|
3170
|
+
return null;
|
|
3171
|
+
}, [t, s, o, e.src]);
|
|
3172
|
+
return E(() => (i(!1), function() {
|
|
3173
|
+
l(!1);
|
|
3174
|
+
}), [e.src]), /* @__PURE__ */ w($e, { children: [
|
|
3175
|
+
/* @__PURE__ */ h(Pr, { loading: !o }),
|
|
3176
|
+
/* @__PURE__ */ h(
|
|
3177
|
+
Dr,
|
|
3178
|
+
{
|
|
3179
|
+
onLoad: () => {
|
|
3180
|
+
i(!0);
|
|
3181
|
+
},
|
|
3182
|
+
ref: s,
|
|
3183
|
+
imageSize: p,
|
|
3184
|
+
draggable: "false",
|
|
3185
|
+
...r,
|
|
3186
|
+
alt: ((y = r.alt) == null ? void 0 : y.toString()) || "",
|
|
3187
|
+
style: u,
|
|
3188
|
+
src: e.src,
|
|
3189
|
+
loaded: o
|
|
3190
|
+
}
|
|
3191
|
+
),
|
|
3192
|
+
/* @__PURE__ */ h(Hr, {})
|
|
3193
|
+
] });
|
|
3194
|
+
}, Pr = v(Rr)`
|
|
3195
|
+
svg circle {
|
|
3196
|
+
stroke: #ffffff;
|
|
3197
|
+
}
|
|
3198
|
+
`, Dr = v.img`
|
|
3199
|
+
transform: none;
|
|
3200
|
+
|
|
3201
|
+
${(t) => t.imageSize && D`
|
|
3202
|
+
width: ${t.imageSize[0]};
|
|
3203
|
+
height: ${t.imageSize[1]};
|
|
3204
|
+
display: inline-block;
|
|
3205
|
+
`}
|
|
3206
|
+
vertical-align: middle;
|
|
3207
|
+
position: relative;
|
|
3208
|
+
${(t) => !t.loaded && "display:none;"}
|
|
3209
|
+
`, Hr = v.div`
|
|
3210
|
+
height: 100%;
|
|
3211
|
+
display: inline-block;
|
|
3212
|
+
vertical-align: middle;
|
|
3213
|
+
`, Vr = () => {
|
|
3214
|
+
const t = A(), [e, n] = M(!0), r = T(() => (e || n(!0), t.current && clearTimeout(t.current), t.current = setTimeout(() => {
|
|
3215
|
+
n(!1);
|
|
3216
|
+
}, 3e3), () => {
|
|
3217
|
+
t.current && clearTimeout(t.current);
|
|
3218
|
+
}), [e, t]);
|
|
3219
|
+
return [e, r];
|
|
3220
|
+
}, zr = ({ attrs: t, htmlBody: e }) => {
|
|
3221
|
+
var ht;
|
|
3222
|
+
const n = ue("Escape"), r = ue("ArrowLeft"), s = ue("ArrowRight"), [o, i] = M(1), [c, l] = M({ top: 0, left: 0, x: 0, y: 0 }), [d, a] = M(!1), [u, f] = Vr(), [p, y] = M(null), [m, g] = M(null), k = A(null), $ = A(null), R = A(null), x = A(null), L = A(null), [I, Z] = M(null);
|
|
3223
|
+
E(() => {
|
|
3224
|
+
n && y(null);
|
|
3225
|
+
}, [n]), E(() => {
|
|
3226
|
+
i(1);
|
|
3227
|
+
}, [p]), E(() => {
|
|
3228
|
+
var X, me;
|
|
3229
|
+
if (p === null || $.current === null)
|
|
3230
|
+
return;
|
|
3231
|
+
const C = $.current.firstElementChild, S = (X = R.current) == null ? void 0 : X.querySelector(".nav-left"), B = (me = R.current) == null ? void 0 : me.querySelector(".nav-right");
|
|
3232
|
+
if (m === "Right")
|
|
3233
|
+
pe && B ? B.focus() : te && S && S.focus();
|
|
3234
|
+
else if (m === "Left")
|
|
3235
|
+
te && S ? S.focus() : pe && B && B.focus();
|
|
3236
|
+
else {
|
|
3237
|
+
if (!C)
|
|
3238
|
+
return;
|
|
3239
|
+
C.focus();
|
|
3240
|
+
}
|
|
3241
|
+
}, [p, $, R, m]), E(() => {
|
|
3242
|
+
if (r) {
|
|
3243
|
+
if (te)
|
|
3244
|
+
return fe();
|
|
3245
|
+
} else if (s && pe)
|
|
3246
|
+
return q();
|
|
3247
|
+
}, [r, s]), E(() => {
|
|
3248
|
+
var S, B;
|
|
3249
|
+
const C = ((B = (S = L.current) == null ? void 0 : S.style) == null ? void 0 : B.float) || "";
|
|
3250
|
+
(C === "left" || C === "right") && Z(C);
|
|
3251
|
+
}, []);
|
|
3252
|
+
const H = we(() => {
|
|
3253
|
+
const C = document.createElement("div");
|
|
3254
|
+
C.innerHTML = e || "";
|
|
3255
|
+
const S = C.getElementsByTagName("img");
|
|
3256
|
+
return Array.from(S).reduce(
|
|
3257
|
+
(X, me) => {
|
|
3258
|
+
const dt = me.getAttribute("src");
|
|
3259
|
+
if (dt) {
|
|
3260
|
+
const Kt = {
|
|
3261
|
+
src: dt
|
|
3262
|
+
};
|
|
3263
|
+
X.push(Kt);
|
|
3264
|
+
}
|
|
3265
|
+
return X;
|
|
3266
|
+
},
|
|
3267
|
+
[]
|
|
3268
|
+
);
|
|
3269
|
+
}, [e]), j = T(() => {
|
|
3270
|
+
const { src: C } = t;
|
|
3271
|
+
if (C) {
|
|
3272
|
+
const S = H.findIndex((B, X) => B.src === C);
|
|
3273
|
+
y(S);
|
|
3274
|
+
}
|
|
3275
|
+
}, [H, t]), Q = T((C) => {
|
|
3276
|
+
y(null);
|
|
3277
|
+
}, []), J = T(
|
|
3278
|
+
(C) => {
|
|
3279
|
+
i(C ? o + o * 0.25 : o - o * 0.25);
|
|
3280
|
+
},
|
|
3281
|
+
[i, o]
|
|
3282
|
+
), z = T(() => {
|
|
3283
|
+
if (p !== null) {
|
|
3284
|
+
const { src: C } = H[p];
|
|
3285
|
+
C && window.open(C, "_self");
|
|
3286
|
+
}
|
|
3287
|
+
}, [H, p]), F = T(
|
|
3288
|
+
(C) => {
|
|
3289
|
+
const S = x.current;
|
|
3290
|
+
S && (l({
|
|
3291
|
+
top: S.scrollTop,
|
|
3292
|
+
left: S.scrollLeft,
|
|
3293
|
+
x: C.clientX,
|
|
3294
|
+
y: C.clientY
|
|
3295
|
+
}), a(!0));
|
|
3296
|
+
},
|
|
3297
|
+
[x]
|
|
3298
|
+
), le = T(
|
|
3299
|
+
(C) => {
|
|
3300
|
+
const S = x.current;
|
|
3301
|
+
if (S && d) {
|
|
3302
|
+
const B = C.clientX - c.x, X = C.clientY - c.y;
|
|
3303
|
+
S.scrollTop = c.top - X, S.scrollLeft = c.left - B;
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
3306
|
+
[d, c]
|
|
3307
|
+
), de = (C) => {
|
|
3308
|
+
C.preventDefault(), a(!1);
|
|
3309
|
+
}, ee = we(() => {
|
|
3310
|
+
if (x.current) {
|
|
3311
|
+
const C = x.current.getElementsByTagName("img");
|
|
3312
|
+
if (C && C.length) {
|
|
3313
|
+
const S = C[0];
|
|
3314
|
+
return S.width > window.innerWidth || S.height > window.innerHeight;
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
return !1;
|
|
3318
|
+
}, [x, o]), fe = () => {
|
|
3319
|
+
p !== null && (g("Left"), y(p - 1));
|
|
3320
|
+
}, q = () => {
|
|
3321
|
+
p !== null && (g("Right"), y(p + 1));
|
|
3322
|
+
}, te = p !== null && p > 0 && H.length > 1, pe = p !== null && H.length - 1 > p;
|
|
3323
|
+
return /* @__PURE__ */ w($e, { children: [
|
|
3324
|
+
/* @__PURE__ */ h(It, { visible: p !== null, onClick: Q, children: /* @__PURE__ */ w(
|
|
3325
|
+
Kr,
|
|
3326
|
+
{
|
|
3327
|
+
onMouseDown: () => f(),
|
|
3328
|
+
onMouseMove: () => f(),
|
|
3329
|
+
onTouchStart: () => f(),
|
|
3330
|
+
onKeyDown: () => f(),
|
|
3331
|
+
children: [
|
|
3332
|
+
/* @__PURE__ */ h(Ur, { show: u.toString(), children: /* @__PURE__ */ h(
|
|
3333
|
+
Wr,
|
|
3334
|
+
{
|
|
3335
|
+
ref: $,
|
|
3336
|
+
buttons: [
|
|
3337
|
+
{
|
|
3338
|
+
id: "download",
|
|
3339
|
+
onClick: z,
|
|
3340
|
+
icon: "download",
|
|
3341
|
+
ariaLabel: "Download image"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
id: "lightbox-close",
|
|
3345
|
+
onClick: () => y(null),
|
|
3346
|
+
icon: "lightbox-close",
|
|
3347
|
+
ariaLabel: "Close"
|
|
3348
|
+
}
|
|
3349
|
+
]
|
|
3350
|
+
}
|
|
3351
|
+
) }),
|
|
3352
|
+
/* @__PURE__ */ h(
|
|
3353
|
+
qr,
|
|
3354
|
+
{
|
|
3355
|
+
scrolling: d.toString(),
|
|
3356
|
+
isDraggable: ee.toString(),
|
|
3357
|
+
ref: x,
|
|
3358
|
+
onMouseMove: le,
|
|
3359
|
+
onMouseDown: F,
|
|
3360
|
+
onMouseUp: de,
|
|
3361
|
+
children: p !== null && /* @__PURE__ */ h(
|
|
3362
|
+
Tr,
|
|
3363
|
+
{
|
|
3364
|
+
changeZoom: (C) => {
|
|
3365
|
+
i(C);
|
|
3366
|
+
},
|
|
3367
|
+
zoomState: o,
|
|
3368
|
+
...t,
|
|
3369
|
+
style: {
|
|
3370
|
+
...t.style || {},
|
|
3371
|
+
float: "none"
|
|
3372
|
+
},
|
|
3373
|
+
image: H[p]
|
|
3374
|
+
}
|
|
3375
|
+
)
|
|
3376
|
+
}
|
|
3377
|
+
),
|
|
3378
|
+
/* @__PURE__ */ h(
|
|
3379
|
+
jr,
|
|
3380
|
+
{
|
|
3381
|
+
ref: R,
|
|
3382
|
+
show: u.toString(),
|
|
3383
|
+
buttons: [
|
|
3384
|
+
{
|
|
3385
|
+
id: "previous",
|
|
3386
|
+
onClick: fe,
|
|
3387
|
+
icon: "caret-left",
|
|
3388
|
+
circle: !0,
|
|
3389
|
+
show: te,
|
|
3390
|
+
className: "nav-left",
|
|
3391
|
+
ariaLabel: "Navigate to previous image"
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
id: "next",
|
|
3395
|
+
onClick: q,
|
|
3396
|
+
icon: "caret-right",
|
|
3397
|
+
circle: !0,
|
|
3398
|
+
show: pe,
|
|
3399
|
+
className: "nav-right",
|
|
3400
|
+
ariaLabel: "Navigate to next image"
|
|
3401
|
+
}
|
|
3402
|
+
]
|
|
3403
|
+
}
|
|
3404
|
+
),
|
|
3405
|
+
/* @__PURE__ */ w(Jr, { show: u.toString(), children: [
|
|
3406
|
+
/* @__PURE__ */ h(
|
|
3407
|
+
Ir,
|
|
3408
|
+
{
|
|
3409
|
+
buttons: [
|
|
3410
|
+
{
|
|
3411
|
+
id: "zoom-out",
|
|
3412
|
+
onClick: () => J(!1),
|
|
3413
|
+
icon: "zoom-out",
|
|
3414
|
+
ariaLabel: "Zoom out"
|
|
3415
|
+
},
|
|
3416
|
+
{
|
|
3417
|
+
id: "zoom-in",
|
|
3418
|
+
onClick: () => J(!0),
|
|
3419
|
+
icon: "zoom-in",
|
|
3420
|
+
ariaLabel: "Zoom in"
|
|
3421
|
+
}
|
|
3422
|
+
]
|
|
3423
|
+
}
|
|
3424
|
+
),
|
|
3425
|
+
/* @__PURE__ */ w(Fr, { variant: "span", children: [
|
|
3426
|
+
Math.trunc(o * 100),
|
|
3427
|
+
"%"
|
|
3428
|
+
] })
|
|
3429
|
+
] })
|
|
3430
|
+
]
|
|
3431
|
+
}
|
|
3432
|
+
) }),
|
|
3433
|
+
/* @__PURE__ */ h(
|
|
3434
|
+
Br,
|
|
3435
|
+
{
|
|
3436
|
+
ref: k,
|
|
3437
|
+
onClick: j,
|
|
3438
|
+
onKeyDown: (C) => {
|
|
3439
|
+
C.key === "Enter" && (C.preventDefault(), j());
|
|
3440
|
+
},
|
|
3441
|
+
alignment: I,
|
|
3442
|
+
tabIndex: 0,
|
|
3443
|
+
children: /* @__PURE__ */ h(
|
|
3444
|
+
Xr,
|
|
3445
|
+
{
|
|
3446
|
+
...t,
|
|
3447
|
+
alt: ((ht = t.alt) == null ? void 0 : ht.toString()) || "",
|
|
3448
|
+
ref: L
|
|
3449
|
+
}
|
|
3450
|
+
)
|
|
3451
|
+
}
|
|
3452
|
+
)
|
|
3453
|
+
] });
|
|
3454
|
+
}, ut = V(
|
|
3455
|
+
({ show: t = "true", buttons: e, className: n }, r) => /* @__PURE__ */ h(
|
|
3456
|
+
_r,
|
|
3457
|
+
{
|
|
3458
|
+
ref: r,
|
|
3459
|
+
show: t,
|
|
3460
|
+
className: N("humany-button-set", n),
|
|
3461
|
+
children: e.map(
|
|
3462
|
+
({
|
|
3463
|
+
id: s,
|
|
3464
|
+
circle: o = !1,
|
|
3465
|
+
show: i = !0,
|
|
3466
|
+
ariaLabel: c,
|
|
3467
|
+
onClick: l,
|
|
3468
|
+
icon: d,
|
|
3469
|
+
className: a
|
|
3470
|
+
}, u) => /* @__PURE__ */ h(
|
|
3471
|
+
Zr,
|
|
3472
|
+
{
|
|
3473
|
+
circle: o.toString(),
|
|
3474
|
+
onClick: l,
|
|
3475
|
+
tabIndex: i ? void 0 : -1,
|
|
3476
|
+
show: i.toString(),
|
|
3477
|
+
icon: d,
|
|
3478
|
+
className: a,
|
|
3479
|
+
"aria-label": c,
|
|
3480
|
+
children: /* @__PURE__ */ h(Ne, { size: 24, symbol: { type: "Svg", content: d } })
|
|
3481
|
+
},
|
|
3482
|
+
s + u.toString()
|
|
3483
|
+
)
|
|
3484
|
+
)
|
|
3485
|
+
}
|
|
3486
|
+
)
|
|
3487
|
+
), jt = v.div`
|
|
3488
|
+
transition: opacity 0.3s ease 0s;
|
|
3489
|
+
z-index: 5;
|
|
3490
|
+
${(t) => t.show === "true" ? "opacity: 1;" : D`
|
|
3491
|
+
opacity: 0;
|
|
3492
|
+
pointer-events: none;
|
|
3493
|
+
`}
|
|
3494
|
+
`, Br = v(lt)`
|
|
3495
|
+
display: inline-block !important;
|
|
3496
|
+
|
|
3497
|
+
${(t) => (t.alignment === "right" || t.alignment === "left") && D`
|
|
3498
|
+
float: ${t.alignment};
|
|
3499
|
+
`}
|
|
3500
|
+
`, _r = v(jt)`
|
|
3501
|
+
position: fixed;
|
|
3502
|
+
display: flex;
|
|
3503
|
+
gap: ${(t) => {
|
|
3504
|
+
var e;
|
|
3505
|
+
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
3506
|
+
}};
|
|
3507
|
+
`, Ke = "39px", Zr = v(Se)`
|
|
3508
|
+
width: ${Ke};
|
|
3509
|
+
height: ${Ke};
|
|
3510
|
+
display: flex;
|
|
3511
|
+
justify-content: center;
|
|
3512
|
+
align-items: center;
|
|
3513
|
+
|
|
3514
|
+
${(t) => t.icon === "caret-left" && D`
|
|
3515
|
+
svg {
|
|
3516
|
+
position: relative;
|
|
3517
|
+
left: -2px;
|
|
3518
|
+
}
|
|
3519
|
+
`}
|
|
3520
|
+
|
|
3521
|
+
${(t) => {
|
|
3522
|
+
var e;
|
|
3523
|
+
return t.circle === "true" ? D`
|
|
3524
|
+
background-color: #ffffff;
|
|
3525
|
+
border-radius: 50%;
|
|
3526
|
+
|
|
3527
|
+
svg {
|
|
3528
|
+
path,
|
|
3529
|
+
line {
|
|
3530
|
+
stroke: ${(e = t.theme.colors) == null ? void 0 : e.text};
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
&:focus-visible {
|
|
3535
|
+
${ie(t)}
|
|
3536
|
+
outline-color: #ffffff;
|
|
3537
|
+
background-color: transparent;
|
|
3538
|
+
|
|
3539
|
+
svg {
|
|
3540
|
+
path,
|
|
3541
|
+
line {
|
|
3542
|
+
stroke: #ffffff;
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
` : D`
|
|
3547
|
+
svg {
|
|
3548
|
+
path,
|
|
3549
|
+
line {
|
|
3550
|
+
stroke: #ffffff;
|
|
3551
|
+
}
|
|
3552
|
+
}
|
|
3553
|
+
&:focus {
|
|
3554
|
+
outline-color: #ffffff;
|
|
3555
|
+
}
|
|
3556
|
+
&:focus-visible {
|
|
3557
|
+
${ie(t)}
|
|
3558
|
+
}
|
|
3559
|
+
`;
|
|
3560
|
+
}}
|
|
3561
|
+
|
|
3562
|
+
${(t) => t.show === "true" ? D`
|
|
3563
|
+
opacity: 0.8;
|
|
3564
|
+
transition: opacity 0.3s ease 0s;
|
|
3565
|
+
&:hover {
|
|
3566
|
+
opacity: 1;
|
|
3567
|
+
}
|
|
3568
|
+
` : D`
|
|
3569
|
+
opacity: 0;
|
|
3570
|
+
pointer-events: none;
|
|
3571
|
+
`}
|
|
3572
|
+
`, Wr = v(ut)`
|
|
3573
|
+
top: ${(t) => {
|
|
3574
|
+
var e;
|
|
3575
|
+
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
3576
|
+
}};
|
|
3577
|
+
right: ${(t) => {
|
|
3578
|
+
var e;
|
|
3579
|
+
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
3580
|
+
}};
|
|
3581
|
+
`, Ir = v(ut)`
|
|
3582
|
+
bottom: ${(t) => {
|
|
3583
|
+
var e;
|
|
3584
|
+
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
3585
|
+
}};
|
|
3586
|
+
width: 100%;
|
|
3587
|
+
align-items: center;
|
|
3588
|
+
justify-content: center;
|
|
3589
|
+
`, jr = v(ut)`
|
|
3590
|
+
display: block;
|
|
3591
|
+
button {
|
|
3592
|
+
position: fixed;
|
|
3593
|
+
top: calc(50% - calc(${Ke} / 2));
|
|
3594
|
+
&:first-child {
|
|
3595
|
+
left: ${(t) => {
|
|
3596
|
+
var e;
|
|
3597
|
+
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
3598
|
+
}};
|
|
3599
|
+
}
|
|
3600
|
+
&:last-child {
|
|
3601
|
+
right: ${(t) => {
|
|
3602
|
+
var e;
|
|
3603
|
+
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
3604
|
+
}};
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3607
|
+
`, Fr = v(st)`
|
|
3608
|
+
position: fixed;
|
|
3609
|
+
bottom: ${(t) => {
|
|
3610
|
+
var e;
|
|
3611
|
+
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
3612
|
+
}};
|
|
3613
|
+
right: ${(t) => {
|
|
3614
|
+
var e;
|
|
3615
|
+
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
3616
|
+
}};
|
|
3617
|
+
color: #ffffff;
|
|
3618
|
+
font-size: ${(t) => {
|
|
3619
|
+
var e;
|
|
3620
|
+
return (e = t.theme.fonts) == null ? void 0 : e.medium;
|
|
3621
|
+
}};
|
|
3622
|
+
font-family: ${(t) => {
|
|
3623
|
+
var e;
|
|
3624
|
+
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
3625
|
+
}};
|
|
3626
|
+
`, Ft = v(jt)`
|
|
3627
|
+
position: absolute;
|
|
3628
|
+
width: 100vw;
|
|
3629
|
+
height: 88px;
|
|
3630
|
+
left: 0px;
|
|
3631
|
+
z-index: 5;
|
|
3632
|
+
`, Kr = v.div`
|
|
3633
|
+
width: 100%;
|
|
3634
|
+
`, Ur = v(Ft)`
|
|
3635
|
+
top: 0px;
|
|
3636
|
+
background-image: linear-gradient(
|
|
3637
|
+
to bottom,
|
|
3638
|
+
rgb(34, 34, 34, 0.8),
|
|
3639
|
+
rgba(34, 34, 34, 0)
|
|
3640
|
+
);
|
|
3641
|
+
`, Jr = v(Ft)`
|
|
3642
|
+
bottom: 0px;
|
|
3643
|
+
background-image: linear-gradient(
|
|
3644
|
+
to top,
|
|
3645
|
+
rgb(34, 34, 34, 0.8),
|
|
3646
|
+
rgba(34, 34, 34, 0)
|
|
3647
|
+
);
|
|
3648
|
+
`, qr = v.div`
|
|
3649
|
+
width: 100%;
|
|
3650
|
+
height: 100vh;
|
|
3651
|
+
overflow: auto;
|
|
3652
|
+
text-align: center;
|
|
3653
|
+
vertical-align: middle;
|
|
3654
|
+
white-space: nowrap;
|
|
3655
|
+
justify-content: center;
|
|
3656
|
+
cursor: ${(t) => t.isDraggable === "true" ? t.scrolling === "true" ? "grabbing" : "grab" : "auto"};
|
|
3657
|
+
`, Xr = v.img`
|
|
3658
|
+
cursor: pointer;
|
|
3659
|
+
`, Yr = V(
|
|
3660
|
+
({
|
|
3661
|
+
className: t,
|
|
3662
|
+
children: e,
|
|
3663
|
+
trigger: n,
|
|
3664
|
+
onOverlayClick: r = () => {
|
|
3665
|
+
},
|
|
3666
|
+
close: s = !1,
|
|
3667
|
+
...o
|
|
3668
|
+
}, i) => {
|
|
3669
|
+
const [c, l] = In(), [d, a] = Zn(!0), u = A(), f = A(he()), p = ue("Escape");
|
|
3670
|
+
E(() => {
|
|
3671
|
+
(p || s) && l(!1);
|
|
3672
|
+
}, [p, s]), E(() => {
|
|
3673
|
+
c && u.current && u.current.focus();
|
|
3674
|
+
}, [c, u.current]), tt("router:changed", () => {
|
|
3675
|
+
l(!1);
|
|
3676
|
+
});
|
|
3677
|
+
const y = T(
|
|
3678
|
+
(g) => {
|
|
3679
|
+
l(!1), r(g);
|
|
3680
|
+
},
|
|
3681
|
+
[r, l]
|
|
3682
|
+
);
|
|
3683
|
+
Je(i, () => ({
|
|
3684
|
+
close() {
|
|
3685
|
+
l(!1);
|
|
3686
|
+
}
|
|
3687
|
+
}));
|
|
3688
|
+
const m = T(() => Pt(f.current, () => {
|
|
3689
|
+
l(!1);
|
|
3690
|
+
}), [f.current]);
|
|
3691
|
+
return /* @__PURE__ */ w($e, { children: [
|
|
3692
|
+
/* @__PURE__ */ h(It, { visible: c, onClick: y, children: /* @__PURE__ */ w(
|
|
3693
|
+
Qr,
|
|
3694
|
+
{
|
|
3695
|
+
className: N(
|
|
3696
|
+
t,
|
|
3697
|
+
"humany-modal",
|
|
3698
|
+
`humany-modal-${f.current}`
|
|
3699
|
+
),
|
|
3700
|
+
css: d,
|
|
3701
|
+
tabIndex: -1,
|
|
3702
|
+
...o,
|
|
3703
|
+
ref: a,
|
|
3704
|
+
children: [
|
|
3705
|
+
/* @__PURE__ */ h(
|
|
3706
|
+
Ht,
|
|
3707
|
+
{
|
|
3708
|
+
onClick: () => l(!1),
|
|
3709
|
+
tabIndex: 0,
|
|
3710
|
+
ref: u,
|
|
3711
|
+
children: /* @__PURE__ */ h(Ne, { symbol: { type: "Svg", content: "close" } })
|
|
3712
|
+
}
|
|
3713
|
+
),
|
|
3714
|
+
e
|
|
3715
|
+
]
|
|
3716
|
+
}
|
|
3717
|
+
) }),
|
|
3718
|
+
Ce.cloneElement(n, {
|
|
3719
|
+
onClick: (g) => {
|
|
3720
|
+
l(), m();
|
|
3721
|
+
}
|
|
3722
|
+
})
|
|
3723
|
+
] });
|
|
3724
|
+
}
|
|
3725
|
+
), Qr = v.div`
|
|
3726
|
+
font-family: ${(t) => {
|
|
3727
|
+
var e;
|
|
3728
|
+
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
3729
|
+
}};
|
|
3730
|
+
font-size: ${(t) => {
|
|
3731
|
+
var e;
|
|
3732
|
+
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
3733
|
+
}};
|
|
3734
|
+
position: relative;
|
|
3735
|
+
max-width: 50%;
|
|
3736
|
+
min-width: 200px;
|
|
3737
|
+
padding: ${(t) => {
|
|
3738
|
+
var e;
|
|
3739
|
+
return (e = t.theme.sizes) == null ? void 0 : e.medium;
|
|
3740
|
+
}};
|
|
3741
|
+
${(t) => Dt(t)}
|
|
3742
|
+
${(t) => t.css && t.css}
|
|
3743
|
+
outline: none;
|
|
3744
|
+
`;
|
|
3745
|
+
v(Yr)`
|
|
3746
|
+
display: block;
|
|
3747
|
+
|
|
3748
|
+
span {
|
|
3749
|
+
display: block;
|
|
3750
|
+
margin: 0 0 ${(t) => {
|
|
3751
|
+
var e;
|
|
3752
|
+
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
3753
|
+
}};
|
|
3754
|
+
|
|
3755
|
+
&:first-of-type:not(:only-of-type) {
|
|
3756
|
+
font-weight: 700;
|
|
3757
|
+
margin: 0 0 ${(t) => {
|
|
3758
|
+
var e;
|
|
3759
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
3760
|
+
}};
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
`;
|
|
3764
|
+
v(Se)`
|
|
3765
|
+
display: inline-block;
|
|
3766
|
+
min-width: 50px;
|
|
3767
|
+
${(t) => {
|
|
3768
|
+
var e, n;
|
|
3769
|
+
return `padding: ${(e = t.theme.sizes) == null ? void 0 : e.small} ${(n = t.theme.sizes) == null ? void 0 : n.normal};`;
|
|
3770
|
+
}}
|
|
3771
|
+
${(t) => t.theme.borderRadius && `border-radius: ${t.theme.borderRadius};`}
|
|
3772
|
+
color: #FFFFFF;
|
|
3773
|
+
background-color: ${(t) => {
|
|
3774
|
+
var e;
|
|
3775
|
+
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
3776
|
+
}};
|
|
3777
|
+
border: 1px solid ${(t) => {
|
|
3778
|
+
var e;
|
|
3779
|
+
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
3780
|
+
}};
|
|
3781
|
+
|
|
3782
|
+
margin: 0 ${(t) => {
|
|
3783
|
+
var e;
|
|
3784
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
3785
|
+
}} 0 0;
|
|
3786
|
+
|
|
3787
|
+
&:focus {
|
|
3788
|
+
background-color: transparent;
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
&:focus-visible {
|
|
3792
|
+
${ie}
|
|
3793
|
+
}
|
|
3794
|
+
`;
|
|
3795
|
+
v(Se)`
|
|
3796
|
+
display: inline-block;
|
|
3797
|
+
min-width: 50px;
|
|
3798
|
+
${(t) => {
|
|
3799
|
+
var e, n;
|
|
3800
|
+
return `padding: ${(e = t.theme.sizes) == null ? void 0 : e.small} ${(n = t.theme.sizes) == null ? void 0 : n.normal};`;
|
|
3801
|
+
}}
|
|
3802
|
+
${(t) => t.theme.borderRadius && `border-radius: ${t.theme.borderRadius};`}
|
|
3803
|
+
background-color: transparent;
|
|
3804
|
+
color: ${(t) => {
|
|
3805
|
+
var e;
|
|
3806
|
+
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
3807
|
+
}};
|
|
3808
|
+
border: 1px solid ${(t) => {
|
|
3809
|
+
var e;
|
|
3810
|
+
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
3811
|
+
}};
|
|
3812
|
+
|
|
3813
|
+
&:focus-visible {
|
|
3814
|
+
${ie};
|
|
3815
|
+
}
|
|
3816
|
+
`;
|
|
3817
|
+
v.div`
|
|
3818
|
+
display: flex;
|
|
3819
|
+
flex-wrap: wrap;
|
|
3820
|
+
`;
|
|
3821
|
+
v.div`
|
|
3822
|
+
${(t) => Ot(t)(
|
|
3823
|
+
"h2",
|
|
3824
|
+
D`
|
|
3825
|
+
padding: 0;
|
|
3826
|
+
margin: 0;
|
|
3827
|
+
color: gray;
|
|
3828
|
+
font-size: 7em;
|
|
3829
|
+
`
|
|
3830
|
+
)}
|
|
3831
|
+
`;
|
|
3832
|
+
v.div`
|
|
3833
|
+
margin-left: ${(t) => {
|
|
3834
|
+
var e;
|
|
3835
|
+
return (e = t.theme.sizes) == null ? void 0 : e.medium;
|
|
3836
|
+
}};
|
|
3837
|
+
|
|
3838
|
+
${(t) => {
|
|
3839
|
+
var e;
|
|
3840
|
+
return Ot(t)(
|
|
3841
|
+
"h3",
|
|
3842
|
+
D`
|
|
3843
|
+
text-transform: uppercase;
|
|
3844
|
+
font-size: ${(e = t.theme.fonts) == null ? void 0 : e.normal};
|
|
3845
|
+
`
|
|
3846
|
+
);
|
|
3847
|
+
}}
|
|
3848
|
+
|
|
3849
|
+
a {
|
|
3850
|
+
color: ${(t) => {
|
|
3851
|
+
var e;
|
|
3852
|
+
return (e = t.theme.colors) == null ? void 0 : e.link;
|
|
3853
|
+
}};
|
|
3854
|
+
font-size: ${(t) => {
|
|
3855
|
+
var e;
|
|
3856
|
+
return (e = t.theme.fonts) == null ? void 0 : e.small;
|
|
3857
|
+
}};
|
|
3858
|
+
}
|
|
3859
|
+
`;
|
|
3860
|
+
v.div`
|
|
3861
|
+
margin-top: ${(t) => {
|
|
3862
|
+
var e;
|
|
3863
|
+
return (e = t.theme.sizes) == null ? void 0 : e.medium;
|
|
3864
|
+
}};
|
|
3865
|
+
min-width: 100%;
|
|
3866
|
+
|
|
3867
|
+
span {
|
|
3868
|
+
font-weight: bold;
|
|
3869
|
+
}
|
|
3870
|
+
`;
|
|
3871
|
+
V(
|
|
3872
|
+
({ className: t, description: e, text: n, children: r, ...s }, o) => /* @__PURE__ */ w(lt, { className: N(t, "humany-text-link"), ...s, ref: o, children: [
|
|
3873
|
+
r,
|
|
3874
|
+
/* @__PURE__ */ h(nt, { children: n }),
|
|
3875
|
+
e ? /* @__PURE__ */ h(Vt, { html: e, className: "humany-description" }) : null
|
|
3876
|
+
] })
|
|
3877
|
+
);
|
|
3878
|
+
v.div`
|
|
3879
|
+
display: flex;
|
|
3880
|
+
align-items: center;
|
|
3881
|
+
`;
|
|
3882
|
+
v.div`
|
|
3883
|
+
color: #ffffff;
|
|
3884
|
+
background: #161616;
|
|
3885
|
+
border-radius: ${(t) => t.theme.borderRadius};
|
|
3886
|
+
padding: calc(${(t) => {
|
|
3887
|
+
var e;
|
|
3888
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
3889
|
+
}} * 2);
|
|
3890
|
+
font-size: ${(t) => {
|
|
3891
|
+
var e;
|
|
3892
|
+
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
3893
|
+
}};
|
|
3894
|
+
font-family: ${(t) => {
|
|
3895
|
+
var e;
|
|
3896
|
+
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
3897
|
+
}};
|
|
3898
|
+
position: absolute;
|
|
3899
|
+
z-index: 10;
|
|
3900
|
+
|
|
3901
|
+
a {
|
|
3902
|
+
color: ${(t) => t.color ? t.color : "inherit"};
|
|
3903
|
+
text-decoration: none;
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
i,
|
|
3907
|
+
svg {
|
|
3908
|
+
margin-right: ${(t) => {
|
|
3909
|
+
var e;
|
|
3910
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
3911
|
+
}};
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3914
|
+
${(t) => {
|
|
3915
|
+
let e = "";
|
|
3916
|
+
return t.y > 0 ? e += `top: calc(2px + ${t.y || "0"}px);` : e += "bottom: 2px;", t.x > 0 ? e += `right: calc(2px + ${t.x || "0"}px);` : e += "left: 2px;", e;
|
|
3917
|
+
}};
|
|
3918
|
+
`;
|
|
3919
|
+
const Gr = V(
|
|
3920
|
+
({
|
|
3921
|
+
className: t,
|
|
3922
|
+
children: e,
|
|
3923
|
+
onClick: n = () => {
|
|
3924
|
+
},
|
|
3925
|
+
widgetName: r,
|
|
3926
|
+
activationOptions: s,
|
|
3927
|
+
...o
|
|
3928
|
+
}, i) => {
|
|
3929
|
+
const c = ce(), l = () => {
|
|
3930
|
+
const { implementation: u } = c.get("$widget");
|
|
3931
|
+
return u.widgets.get(r);
|
|
3932
|
+
};
|
|
3933
|
+
E(() => {
|
|
3934
|
+
const u = l();
|
|
3935
|
+
return u == null || u.activate(s).then(() => u.invoke("attach")), () => {
|
|
3936
|
+
u == null || u.deactivate();
|
|
3937
|
+
};
|
|
3938
|
+
}, [r]);
|
|
3939
|
+
const d = (u) => {
|
|
3940
|
+
const f = l(), p = u.currentTarget;
|
|
3941
|
+
if (f) {
|
|
3942
|
+
const y = () => {
|
|
3943
|
+
f.invoke("renderState").then(
|
|
3944
|
+
(m) => m === St.open ? f.invoke("close") : f.invoke("open")
|
|
3945
|
+
).then(() => {
|
|
3946
|
+
f.events.subscribeOnce(
|
|
3947
|
+
"widget:area-rendered",
|
|
3948
|
+
(m, g) => {
|
|
3949
|
+
c.get(
|
|
3950
|
+
"widgetDOMElement"
|
|
3951
|
+
) && f.events.dispatch("widget:modal-opened", {
|
|
3952
|
+
name: f.name,
|
|
3953
|
+
ref: p
|
|
3954
|
+
});
|
|
3955
|
+
}
|
|
3956
|
+
);
|
|
3957
|
+
});
|
|
3958
|
+
};
|
|
3959
|
+
f.state === wt.Deactivated ? f.activate(s).then(() => f.invoke("attach")).then(y) : y();
|
|
3960
|
+
}
|
|
3961
|
+
}, a = (u) => {
|
|
3962
|
+
u.key === "Enter" && (u.preventDefault(), d(u));
|
|
3963
|
+
};
|
|
3964
|
+
return /* @__PURE__ */ h(
|
|
3965
|
+
lt,
|
|
3966
|
+
{
|
|
3967
|
+
className: N(t, "humany-widget-link"),
|
|
3968
|
+
onKeyDown: a,
|
|
3969
|
+
onClick: (u) => {
|
|
3970
|
+
n(u), d(u);
|
|
3971
|
+
},
|
|
3972
|
+
...o,
|
|
3973
|
+
ref: i,
|
|
3974
|
+
children: e
|
|
3975
|
+
}
|
|
3976
|
+
);
|
|
3977
|
+
}
|
|
3978
|
+
);
|
|
3979
|
+
V(
|
|
3980
|
+
({ portalId: t = "humany-widget-overlay-portal", className: e, children: n }, r) => {
|
|
3981
|
+
const s = ce(), o = we(() => {
|
|
3982
|
+
if (!s)
|
|
3983
|
+
return null;
|
|
3984
|
+
const i = s.get("widgetDOMElement");
|
|
3985
|
+
return !i || !i.childElementCount ? null : i.children[0];
|
|
3986
|
+
}, [s]);
|
|
3987
|
+
return o ? /* @__PURE__ */ h(rt, { elementId: t, parent: o, children: /* @__PURE__ */ h(
|
|
3988
|
+
es,
|
|
3989
|
+
{
|
|
3990
|
+
className: N("humany-widget-overlay-outlet", e),
|
|
3991
|
+
ref: r,
|
|
3992
|
+
children: n
|
|
3993
|
+
}
|
|
3994
|
+
) }) : null;
|
|
3995
|
+
}
|
|
3996
|
+
);
|
|
3997
|
+
const es = v.div`
|
|
3998
|
+
background-color: #ffffff;
|
|
3999
|
+
position: absolute;
|
|
4000
|
+
top: 0;
|
|
4001
|
+
left: 0;
|
|
4002
|
+
bottom: 0;
|
|
4003
|
+
right: 0;
|
|
4004
|
+
z-index: 10;
|
|
4005
|
+
width: 100%;
|
|
4006
|
+
height: 100%;
|
|
4007
|
+
`, ts = (t, e, n, r, s) => t.getAsync("componentResolver").then((o) => (o.registerComponent(
|
|
4008
|
+
e,
|
|
4009
|
+
qt(() => n)
|
|
4010
|
+
), bn(t, e, r || (() => {
|
|
4011
|
+
}), e, s))), fs = (t, e, n) => {
|
|
4012
|
+
if (n !== "center")
|
|
4013
|
+
return {};
|
|
4014
|
+
const r = (l) => l.reduce((d, a) => {
|
|
4015
|
+
const [u] = a.padding.split("px"), [f] = a.size.split("px");
|
|
4016
|
+
return d + (+f + +u * 2);
|
|
4017
|
+
}, 0), s = r(t), o = r(e), i = s - o;
|
|
4018
|
+
return i === 0 ? {} : {
|
|
4019
|
+
[s > o ? "right" : "left"]: `${Math.abs(i)}px`
|
|
4020
|
+
};
|
|
4021
|
+
}, ps = (t) => Object.keys(t).reduce(
|
|
4022
|
+
(e, n) => {
|
|
4023
|
+
const r = t[n];
|
|
4024
|
+
if (!r)
|
|
4025
|
+
return e;
|
|
4026
|
+
const [s, o] = e, i = r.position === "left" ? s : o;
|
|
4027
|
+
return t[n].symbol, i.push({
|
|
4028
|
+
symbol: r.symbol && typeof r.symbol == "string" ? { type: "Uri", content: r.symbol } : r.symbol,
|
|
4029
|
+
type: n,
|
|
4030
|
+
padding: r.padding || "10px",
|
|
4031
|
+
label: r.label,
|
|
4032
|
+
size: r.size || "64px",
|
|
4033
|
+
tooltip: r.tooltip,
|
|
4034
|
+
order: r.order || 0,
|
|
4035
|
+
show: r.show
|
|
4036
|
+
}), e;
|
|
4037
|
+
},
|
|
4038
|
+
[[], []]
|
|
4039
|
+
), ns = (t) => t.getAsync("router").then((e) => {
|
|
4040
|
+
if (!e)
|
|
4041
|
+
return !0;
|
|
4042
|
+
const n = e.getInitialRoute(), { name: r, params: s } = e.getRouteData();
|
|
4043
|
+
return hn(s), !((n == null ? void 0 : n.name) !== r || Object.keys(s).length > 0);
|
|
4044
|
+
}), ms = (t) => ts(
|
|
4045
|
+
t,
|
|
4046
|
+
"widget-header",
|
|
4047
|
+
import("./widget-header-d82a1b88.mjs"),
|
|
4048
|
+
(e) => {
|
|
4049
|
+
const { events: n } = t.get("$widget"), [r, s] = xt(n), { actions: o = {} } = e.properties();
|
|
4050
|
+
if (e.actions.create("close", (i, c) => c.preventDefault ? void 0 : t.get("$widget").invoke("close")), e.actions.create("back", (i, c) => {
|
|
4051
|
+
if (!c.preventDefault)
|
|
4052
|
+
return t.getAsync("router").then((l) => {
|
|
4053
|
+
l.goBack();
|
|
4054
|
+
});
|
|
4055
|
+
}), e.properties((i) => {
|
|
4056
|
+
const { actions: c = {} } = i;
|
|
4057
|
+
if (c.back)
|
|
4058
|
+
return Object.keys(c).forEach((l) => {
|
|
4059
|
+
const d = c[l];
|
|
4060
|
+
l === "back" && (d.show = i.showBack);
|
|
4061
|
+
}), { actions: c };
|
|
4062
|
+
}), e.actions.create("show-back", (i) => {
|
|
4063
|
+
e.writeProperties({ showBack: i });
|
|
4064
|
+
}), o.back) {
|
|
4065
|
+
const i = () => ns(t).then(
|
|
4066
|
+
(c) => e.actions.dispatch("show-back", !c)
|
|
4067
|
+
);
|
|
4068
|
+
i(), r("router:changed", i);
|
|
4069
|
+
}
|
|
4070
|
+
return e.actions.create("minimize", (i, c) => c.preventDefault ? void 0 : t.get("$widget").invoke("hide")), () => {
|
|
4071
|
+
s();
|
|
4072
|
+
};
|
|
4073
|
+
}
|
|
4074
|
+
);
|
|
4075
|
+
export {
|
|
4076
|
+
Pn as C,
|
|
4077
|
+
lt as L,
|
|
4078
|
+
Ne as S,
|
|
4079
|
+
st as T,
|
|
4080
|
+
ms as W,
|
|
4081
|
+
Qe as a,
|
|
4082
|
+
he as b,
|
|
4083
|
+
hs as c,
|
|
4084
|
+
ie as d,
|
|
4085
|
+
ps as e,
|
|
4086
|
+
N as f,
|
|
4087
|
+
fs as g,
|
|
4088
|
+
Ot as h,
|
|
4089
|
+
ds as l,
|
|
4090
|
+
Tt as u
|
|
4091
|
+
};
|