@telia-ace/knowledge-widget-types-grid 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-37d41a7c.js +1 -0
- package/index-4000749f.mjs +18 -0
- package/index-4a7683d6.mjs +7686 -0
- package/{index-2a0d3b27.mjs → index-53f86cb1.mjs} +15 -10
- package/index-6573c0b0.js +1258 -0
- package/index-83935001.js +1 -0
- package/index-89e0c636.js +1 -0
- package/{index-ef4f44cd.mjs → index-8ea3d174.mjs} +34 -29
- package/{index-e3bba2b0.mjs → index-a20f39e4.mjs} +157 -152
- package/index-a53df8cf.js +642 -0
- package/{index-6cc56345.js → index-da27700c.js} +1 -1
- package/{index-2a67ee55.mjs → index-f2febaed.mjs} +71 -66
- package/index.js +1 -1
- package/index.mjs +18 -13
- package/package.json +5 -5
- package/render-6b17449a.js +1 -0
- package/render-e363a527.mjs +57 -0
- package/unmount-7ebc3b77.js +1 -0
- package/index-0d4037dc.js +0 -1
- package/index-48abc5fd.js +0 -1
- package/index-6e1f4d54.js +0 -1291
- package/index-a87d669f.js +0 -642
- package/index-ddecdfc6.mjs +0 -13
- package/index-f35c9d50.js +0 -1
- package/index-f6d7c0ea.mjs +0 -11776
- package/render-8a105395.js +0 -1
- package/render-e917ce7f.mjs +0 -51
- package/unmount-481ce5a7.js +0 -1
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
var Ye = Object.defineProperty;
|
|
2
2
|
var je = (t, e, o) => e in t ? Ye(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
3
|
var _ = (t, e, o) => (je(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
-
import {
|
|
4
|
+
import { a9 as Oe, aa as C, ab as Re, o as Q, l as Le, ac as re, ad as se, ae as Y, af as J, ag as ne, ah as le, ai as M, aj as F, ak as E, al as me, am as U, an as X, ao as Ve, ap as x, aq as j, ar as ce, as as Be, at as G, au as He, av as P, aw as de, ax as fe, ay as _e, az as qe } from "./index-4a7683d6.mjs";
|
|
5
5
|
import { jsx as c, jsxs as y, Fragment as Ge } from "react/jsx-runtime";
|
|
6
|
+
import { css as g, keyframes as he } from "@emotion/react";
|
|
6
7
|
import { useState as ge, useEffect as Z, lazy as Je, forwardRef as L, useCallback as A, useMemo as Ue, useRef as Ze, useImperativeHandle as Ke } from "react";
|
|
7
8
|
import "react-dom";
|
|
9
|
+
import "react-transition-group";
|
|
10
|
+
import m from "@emotion/styled";
|
|
8
11
|
import { c as O } from "./create-params-4e652cc7.mjs";
|
|
12
|
+
import "react-router-dom";
|
|
13
|
+
import "react-router";
|
|
9
14
|
const ee = (t) => {
|
|
10
15
|
if (!t)
|
|
11
16
|
return "";
|
|
@@ -99,38 +104,38 @@ const ee = (t) => {
|
|
|
99
104
|
{ from: /[ю]+/gi, to: "yu" },
|
|
100
105
|
{ from: /[Я]+/gi, to: "Ya" },
|
|
101
106
|
{ from: /[я]+/gi, to: "ya" }
|
|
102
|
-
], o = /[^a-zA-Z0-9]+/g,
|
|
103
|
-
let
|
|
107
|
+
], o = /[^a-zA-Z0-9]+/g, i = /[-]$/;
|
|
108
|
+
let a = t;
|
|
104
109
|
for (const r in e)
|
|
105
|
-
e.hasOwnProperty(r) && e[r].from.test(t) && (
|
|
106
|
-
return
|
|
110
|
+
e.hasOwnProperty(r) && e[r].from.test(t) && (a = a.replace(e[r].from, e[r].to));
|
|
111
|
+
return a = a.replace(o, "-"), a = a.replace(i, ""), a = a.toLowerCase(), a || "humany";
|
|
107
112
|
}, We = (t) => {
|
|
108
113
|
let e;
|
|
109
114
|
t.split(",")[0].indexOf("base64") !== -1 ? e = atob(t.split(",")[1]) : e = decodeURI(t.split(",")[1]);
|
|
110
|
-
const o = t.split(",")[0].split(":")[1].split(";")[0],
|
|
111
|
-
for (let
|
|
112
|
-
a
|
|
113
|
-
return new Blob([new Uint8Array(
|
|
115
|
+
const o = t.split(",")[0].split(":")[1].split(";")[0], i = [];
|
|
116
|
+
for (let a = 0; a < e.length; a++)
|
|
117
|
+
i[a] = e.charCodeAt(a);
|
|
118
|
+
return new Blob([new Uint8Array(i)], { type: o });
|
|
114
119
|
}, Qe = (t, e) => {
|
|
115
120
|
if (!t || !e)
|
|
116
121
|
return !0;
|
|
117
|
-
let o = e.parentNode,
|
|
122
|
+
let o = e.parentNode, i = !1;
|
|
118
123
|
for (; o !== null; )
|
|
119
|
-
o === t && (
|
|
120
|
-
return
|
|
121
|
-
}, ue = (t, e = {}, o = {},
|
|
124
|
+
o === t && (i = !0), o = o.parentNode;
|
|
125
|
+
return i;
|
|
126
|
+
}, ue = (t, e = {}, o = {}, i = () => {
|
|
122
127
|
}) => {
|
|
123
|
-
t.properties && Object.keys(t.properties).forEach((
|
|
128
|
+
t.properties && Object.keys(t.properties).forEach((a) => {
|
|
124
129
|
const r = {
|
|
125
|
-
schema: t.properties[
|
|
126
|
-
layout: e[
|
|
127
|
-
data: o[
|
|
128
|
-
}, n = { data: { options: (o["data:options"] || {})[
|
|
129
|
-
|
|
130
|
+
schema: t.properties[a],
|
|
131
|
+
layout: e[a],
|
|
132
|
+
data: o[a]
|
|
133
|
+
}, n = { data: { options: (o["data:options"] || {})[a] } };
|
|
134
|
+
i(new Oe(a, r), n), typeof r.schema == "object" && ue(
|
|
130
135
|
r.schema,
|
|
131
136
|
r.layout,
|
|
132
137
|
r.data,
|
|
133
|
-
|
|
138
|
+
i
|
|
134
139
|
);
|
|
135
140
|
});
|
|
136
141
|
};
|
|
@@ -141,11 +146,11 @@ class Xe {
|
|
|
141
146
|
findValue(e) {
|
|
142
147
|
}
|
|
143
148
|
traverse(e) {
|
|
144
|
-
const { schema: o, layout:
|
|
145
|
-
ue(o,
|
|
149
|
+
const { schema: o, layout: i, data: a } = this.form;
|
|
150
|
+
ue(o, i, a, e);
|
|
146
151
|
}
|
|
147
152
|
export(e = !1) {
|
|
148
|
-
const o = new FormData(),
|
|
153
|
+
const o = new FormData(), i = {}, a = {};
|
|
149
154
|
return this.traverse((r, s) => {
|
|
150
155
|
switch (r.component) {
|
|
151
156
|
case "Name":
|
|
@@ -157,20 +162,20 @@ class Xe {
|
|
|
157
162
|
const { data: n } = s, { options: l } = n;
|
|
158
163
|
if (l) {
|
|
159
164
|
const { fileName: f } = l;
|
|
160
|
-
|
|
165
|
+
i[r.name] = f;
|
|
161
166
|
}
|
|
162
167
|
if (e)
|
|
163
|
-
|
|
168
|
+
a[r.name] = { component: r, extra: s };
|
|
164
169
|
else if (r.value) {
|
|
165
170
|
const f = s.data.options.fileName || r.name, d = We(r.value);
|
|
166
171
|
o.append(r.name, d, f);
|
|
167
172
|
}
|
|
168
173
|
break;
|
|
169
174
|
default:
|
|
170
|
-
|
|
175
|
+
i[r.name] = r.value;
|
|
171
176
|
break;
|
|
172
177
|
}
|
|
173
|
-
}), o.append("components", JSON.stringify(
|
|
178
|
+
}), o.append("components", JSON.stringify(i)), { formData: o, values: i, excluded: a };
|
|
174
179
|
}
|
|
175
180
|
}
|
|
176
181
|
const et = () => {
|
|
@@ -178,27 +183,27 @@ const et = () => {
|
|
|
178
183
|
return Z(() => {
|
|
179
184
|
const o = () => {
|
|
180
185
|
e(!1);
|
|
181
|
-
},
|
|
182
|
-
|
|
186
|
+
}, i = (a) => {
|
|
187
|
+
a.keyCode === 9 && e(!0);
|
|
183
188
|
};
|
|
184
|
-
return window.addEventListener("keydown",
|
|
185
|
-
window.removeEventListener("keydown",
|
|
189
|
+
return window.addEventListener("keydown", i), window.addEventListener("click", o), () => {
|
|
190
|
+
window.removeEventListener("keydown", i), window.removeEventListener("click", o);
|
|
186
191
|
};
|
|
187
192
|
}, []), t;
|
|
188
193
|
};
|
|
189
194
|
var pe = /* @__PURE__ */ ((t) => (t.HH_MM = "hh:mm", t.YYYY_MM_DD = "yyyy-mm-dd", t.YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm", t))(pe || {});
|
|
190
195
|
const ye = ({ className: t = "", format: e = "hh:mm", timestamp: o }) => /* @__PURE__ */ c("span", { className: C(t, "humany-timestamp"), children: tt(o, e) }), te = (t) => `0${t}`.slice(-2);
|
|
191
196
|
function tt(t, e) {
|
|
192
|
-
const o = new Date(t),
|
|
193
|
-
return e === "yyyy-mm-dd" ? l : e === "hh:mm" ?
|
|
197
|
+
const o = new Date(t), i = o.toTimeString().split(" ")[0].split(":"), a = i.length > 1 ? `${i[0]}:${i[1]}` : i[0], r = o.getFullYear(), s = o.getMonth() + 1, n = o.getDate(), l = `${r}-${te(s)}-${te(n)}`;
|
|
198
|
+
return e === "yyyy-mm-dd" ? l : e === "hh:mm" ? a : `${l} ${a}`;
|
|
194
199
|
}
|
|
195
|
-
const ve = (t, e, o = !1) => t.getManyAsync("matchingClient", "router").then((
|
|
196
|
-
const { formData:
|
|
200
|
+
const ve = (t, e, o = !1) => t.getManyAsync("matchingClient", "router").then((i) => {
|
|
201
|
+
const { formData: a } = new Xe(e.body.form).export(o), { router: r, matchingClient: s } = i, { params: n } = r.getRouteData();
|
|
197
202
|
return s.customRequest(
|
|
198
203
|
`contactmethods/${e.id}${o ? "/validatedwithpayload" : ""}`,
|
|
199
204
|
"POST",
|
|
200
205
|
{
|
|
201
|
-
body:
|
|
206
|
+
body: a,
|
|
202
207
|
configuration: {
|
|
203
208
|
guideId: e.body.guideId || n.guideId
|
|
204
209
|
}
|
|
@@ -208,21 +213,21 @@ const ve = (t, e, o = !1) => t.getManyAsync("matchingClient", "router").then((a)
|
|
|
208
213
|
valid: o.Validation.IsValid,
|
|
209
214
|
errors: o.Validation.Errors,
|
|
210
215
|
errorTypes: o.Validation.ErrorTypes
|
|
211
|
-
})),
|
|
216
|
+
})), it = (t, e) => ve(t, e, !0).then(
|
|
212
217
|
(o) => Re.fromLegacyForm(e.id, o.ContactMethod.Form).get()
|
|
213
|
-
),
|
|
218
|
+
), at = (t, e) => t.getAsync("matchingClient").then((o) => {
|
|
214
219
|
o.completeContactMethod(e.id);
|
|
215
220
|
}), rt = async (t, e) => {
|
|
216
221
|
const o = t.get(e.clientName);
|
|
217
|
-
let { description:
|
|
222
|
+
let { description: i, disabled: a, onClick: r } = e;
|
|
218
223
|
if (o) {
|
|
219
224
|
const { handleClick: s, handleDescription: n, handleDisabled: l } = o;
|
|
220
|
-
typeof s == "function" && (r = await Promise.resolve(s(e))), typeof n == "function" && (
|
|
225
|
+
typeof s == "function" && (r = await Promise.resolve(s(e))), typeof n == "function" && (i = await Promise.resolve(n(e))), typeof l == "function" && (a = await Promise.resolve(l(e)));
|
|
221
226
|
}
|
|
222
227
|
return Promise.resolve({
|
|
223
228
|
...e,
|
|
224
|
-
description:
|
|
225
|
-
disabled:
|
|
229
|
+
description: i,
|
|
230
|
+
disabled: a,
|
|
226
231
|
onClick: r
|
|
227
232
|
});
|
|
228
233
|
};
|
|
@@ -248,8 +253,8 @@ class R {
|
|
|
248
253
|
return n(s);
|
|
249
254
|
}
|
|
250
255
|
);
|
|
251
|
-
const
|
|
252
|
-
|
|
256
|
+
const a = o.components().ofType("guide").select();
|
|
257
|
+
a.actions.watch("guide.fetched", async (s, n) => {
|
|
253
258
|
const { contactMethods: l } = s;
|
|
254
259
|
if (l) {
|
|
255
260
|
const f = Promise.all(
|
|
@@ -262,7 +267,7 @@ class R {
|
|
|
262
267
|
});
|
|
263
268
|
}
|
|
264
269
|
return n(s);
|
|
265
|
-
}),
|
|
270
|
+
}), a.actions.watch("guide.handover", async (s, n) => {
|
|
266
271
|
const { handoverContactMethods: l } = s;
|
|
267
272
|
if (l) {
|
|
268
273
|
const f = Promise.all(
|
|
@@ -291,46 +296,46 @@ class R {
|
|
|
291
296
|
return rt(this.adapters, e);
|
|
292
297
|
}
|
|
293
298
|
static getInstance(e, o = "contactMethods") {
|
|
294
|
-
return Le(e)(() => e.getAsync(o).then((
|
|
295
|
-
let
|
|
296
|
-
return
|
|
299
|
+
return Le(e)(() => e.getAsync(o).then((i) => {
|
|
300
|
+
let a = i;
|
|
301
|
+
return a || Q.getInstance(e).then((r) => (a = new R(
|
|
297
302
|
e,
|
|
298
303
|
r
|
|
299
|
-
), e.registerAsync(o, () =>
|
|
304
|
+
), e.registerAsync(o, () => a), a));
|
|
300
305
|
}));
|
|
301
306
|
}
|
|
302
307
|
track(e = {}, o) {
|
|
303
|
-
const { events:
|
|
304
|
-
|
|
308
|
+
const { events: i } = this.container.get("$widget");
|
|
309
|
+
i.dispatch("tracking:service-client-response", {
|
|
305
310
|
type: o,
|
|
306
311
|
data: e
|
|
307
312
|
});
|
|
308
313
|
}
|
|
309
314
|
complete(e) {
|
|
310
|
-
const { id: o, title:
|
|
315
|
+
const { id: o, title: i, clientName: a, expanded: r, body: s } = e;
|
|
311
316
|
this.track(
|
|
312
317
|
{
|
|
313
|
-
contactMethod: { id: o, title:
|
|
318
|
+
contactMethod: { id: o, title: i, expanded: r, type: a },
|
|
314
319
|
hasGuide: !!s.guideId
|
|
315
320
|
},
|
|
316
321
|
"contact-method-complete"
|
|
317
322
|
/* ContactMethodComplete */
|
|
318
323
|
);
|
|
319
|
-
const n = this.adapters.get(
|
|
324
|
+
const n = this.adapters.get(a);
|
|
320
325
|
if (n && n.onComplete)
|
|
321
326
|
return n.onComplete(e);
|
|
322
327
|
}
|
|
323
328
|
evaluate(e) {
|
|
324
|
-
const { clientName: o } = e,
|
|
325
|
-
return
|
|
329
|
+
const { clientName: o } = e, i = this.adapters.get(o);
|
|
330
|
+
return i && i.onEvaluate ? Promise.resolve(i.onEvaluate(e)) : Promise.resolve(e.body.form);
|
|
326
331
|
}
|
|
327
332
|
validate(e) {
|
|
328
|
-
const { id: o, title:
|
|
333
|
+
const { id: o, title: i, clientName: a } = e, r = this.adapters.get(a);
|
|
329
334
|
return r && r.onValidate ? Promise.resolve(r.onValidate(e)).then(
|
|
330
335
|
(s) => {
|
|
331
336
|
this.track(
|
|
332
337
|
{
|
|
333
|
-
contactMethod: { id: o, title:
|
|
338
|
+
contactMethod: { id: o, title: i, type: a },
|
|
334
339
|
isValid: s.valid
|
|
335
340
|
},
|
|
336
341
|
"contact-method-validate"
|
|
@@ -342,21 +347,21 @@ class R {
|
|
|
342
347
|
) : Promise.resolve({ valid: !0 });
|
|
343
348
|
}
|
|
344
349
|
submit(e) {
|
|
345
|
-
const { clientName: o } = e,
|
|
346
|
-
return
|
|
350
|
+
const { clientName: o } = e, i = this.adapters.get(o);
|
|
351
|
+
return i && i.onSubmit ? Promise.resolve(i.onSubmit(e)).then((a) => (this.complete(e), a)) : Promise.resolve("");
|
|
347
352
|
}
|
|
348
353
|
create(e) {
|
|
349
|
-
const { clientName: o, render:
|
|
354
|
+
const { clientName: o, render: i } = e;
|
|
350
355
|
return this.adapters.set(o, {
|
|
351
|
-
onValidate: (
|
|
352
|
-
onEvaluate: (
|
|
353
|
-
onComplete: (
|
|
356
|
+
onValidate: (a) => ot(this.container, a),
|
|
357
|
+
onEvaluate: (a) => it(this.container, a),
|
|
358
|
+
onComplete: (a) => at(this.container, a),
|
|
354
359
|
...e
|
|
355
|
-
}), this.container.getAsync("componentResolver").then((
|
|
356
|
-
typeof
|
|
357
|
-
|
|
360
|
+
}), this.container.getAsync("componentResolver").then((a) => {
|
|
361
|
+
typeof i == "string" ? this.subs.push(a.registerAlias(o, i)) : this.subs.push(
|
|
362
|
+
a.registerComponent(
|
|
358
363
|
o,
|
|
359
|
-
Je(() =>
|
|
364
|
+
Je(() => i)
|
|
360
365
|
)
|
|
361
366
|
);
|
|
362
367
|
});
|
|
@@ -365,12 +370,12 @@ class R {
|
|
|
365
370
|
this.subs.forEach((e) => e());
|
|
366
371
|
}
|
|
367
372
|
}
|
|
368
|
-
const
|
|
373
|
+
const Yt = R, st = ({
|
|
369
374
|
title: t = "",
|
|
370
375
|
className: e,
|
|
371
376
|
id: o,
|
|
372
|
-
parent:
|
|
373
|
-
connection:
|
|
377
|
+
parent: i,
|
|
378
|
+
connection: a,
|
|
374
379
|
type: r,
|
|
375
380
|
target: s,
|
|
376
381
|
href: n,
|
|
@@ -381,8 +386,8 @@ const Ft = R, st = ({
|
|
|
381
386
|
switch (r) {
|
|
382
387
|
case "default":
|
|
383
388
|
case "guide":
|
|
384
|
-
const { id: k, title: b } =
|
|
385
|
-
let w = f ||
|
|
389
|
+
const { id: k, title: b } = i;
|
|
390
|
+
let w = f || a;
|
|
386
391
|
k !== o && !f && (w = void 0), d.routeName = h, d.params = O({
|
|
387
392
|
...p,
|
|
388
393
|
guide: o,
|
|
@@ -407,14 +412,14 @@ const Ft = R, st = ({
|
|
|
407
412
|
);
|
|
408
413
|
};
|
|
409
414
|
L(
|
|
410
|
-
({ className: t, dialog: e, ...o },
|
|
415
|
+
({ className: t, dialog: e, ...o }, i) => e.length ? /* @__PURE__ */ c(
|
|
411
416
|
nt,
|
|
412
417
|
{
|
|
413
418
|
className: C(t, "humany-dialog"),
|
|
414
419
|
items: e,
|
|
415
|
-
renderItem: (
|
|
420
|
+
renderItem: (a) => /* @__PURE__ */ c("li", { "data-dialog": a.connection, children: /* @__PURE__ */ c(st, { ...a }) }, a.connection),
|
|
416
421
|
...o,
|
|
417
|
-
ref:
|
|
422
|
+
ref: i
|
|
418
423
|
}
|
|
419
424
|
) : null
|
|
420
425
|
);
|
|
@@ -442,8 +447,8 @@ const nt = m(J)`
|
|
|
442
447
|
}} 0 0;
|
|
443
448
|
}
|
|
444
449
|
`;
|
|
445
|
-
m(
|
|
446
|
-
${
|
|
450
|
+
m(M)`
|
|
451
|
+
${F}
|
|
447
452
|
font-family: ${(t) => {
|
|
448
453
|
var e;
|
|
449
454
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
@@ -544,8 +549,8 @@ m(J)`
|
|
|
544
549
|
}
|
|
545
550
|
}
|
|
546
551
|
`;
|
|
547
|
-
m(
|
|
548
|
-
${
|
|
552
|
+
m(M)`
|
|
553
|
+
${F}
|
|
549
554
|
font-family: ${(t) => {
|
|
550
555
|
var e;
|
|
551
556
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
@@ -645,8 +650,8 @@ const mt = m(U)`
|
|
|
645
650
|
addFavoriteTooltip: t,
|
|
646
651
|
removeFavoriteCancelLabel: e,
|
|
647
652
|
removeFavoriteConfirmLabel: o,
|
|
648
|
-
removeFavoriteHeader:
|
|
649
|
-
removeFavoriteLabel:
|
|
653
|
+
removeFavoriteHeader: i,
|
|
654
|
+
removeFavoriteLabel: a,
|
|
650
655
|
removeFavoriteTooltip: r,
|
|
651
656
|
id: s,
|
|
652
657
|
isFavorite: n,
|
|
@@ -686,8 +691,8 @@ const mt = m(U)`
|
|
|
686
691
|
onConfirm: p,
|
|
687
692
|
cancelLabel: e,
|
|
688
693
|
confirmLabel: o,
|
|
689
|
-
header:
|
|
690
|
-
text:
|
|
694
|
+
header: i,
|
|
695
|
+
text: a
|
|
691
696
|
}
|
|
692
697
|
) : /* @__PURE__ */ y(
|
|
693
698
|
oe,
|
|
@@ -730,17 +735,17 @@ const mt = m(U)`
|
|
|
730
735
|
}
|
|
731
736
|
|
|
732
737
|
${(t) => {
|
|
733
|
-
var e, o,
|
|
738
|
+
var e, o, i, a, r, s, n;
|
|
734
739
|
return ((e = t.theme.colors) == null ? void 0 : e.text) && g`
|
|
735
740
|
svg {
|
|
736
741
|
stroke: ${(o = t.theme.colors) == null ? void 0 : o.text};
|
|
737
742
|
|
|
738
743
|
path {
|
|
739
|
-
stroke: ${(
|
|
744
|
+
stroke: ${(i = t.theme.colors) == null ? void 0 : i.text};
|
|
740
745
|
}
|
|
741
746
|
|
|
742
747
|
${t["data-favorite"] === "true" && `
|
|
743
|
-
fill: ${(
|
|
748
|
+
fill: ${(a = t.theme.colors) == null ? void 0 : a.text};
|
|
744
749
|
|
|
745
750
|
path {
|
|
746
751
|
fill: ${(r = t.theme.colors) == null ? void 0 : r.text};
|
|
@@ -774,8 +779,8 @@ L(
|
|
|
774
779
|
},
|
|
775
780
|
direction: e = "horizontal",
|
|
776
781
|
className: o,
|
|
777
|
-
header:
|
|
778
|
-
positive:
|
|
782
|
+
header: i,
|
|
783
|
+
positive: a,
|
|
779
784
|
negative: r,
|
|
780
785
|
selected: s,
|
|
781
786
|
...n
|
|
@@ -787,9 +792,9 @@ L(
|
|
|
787
792
|
...ce(n),
|
|
788
793
|
ref: l,
|
|
789
794
|
children: [
|
|
790
|
-
!!
|
|
795
|
+
!!i && /* @__PURE__ */ c(dt, { children: i }),
|
|
791
796
|
/* @__PURE__ */ y(
|
|
792
|
-
|
|
797
|
+
ie,
|
|
793
798
|
{
|
|
794
799
|
className: "humany-feedback-button",
|
|
795
800
|
disabled: !!s,
|
|
@@ -798,12 +803,12 @@ L(
|
|
|
798
803
|
onClick: () => t("positive"),
|
|
799
804
|
children: [
|
|
800
805
|
/* @__PURE__ */ c(Y, { faIcon: "smile-o" }),
|
|
801
|
-
/* @__PURE__ */ c("span", { children:
|
|
806
|
+
/* @__PURE__ */ c("span", { children: a })
|
|
802
807
|
]
|
|
803
808
|
}
|
|
804
809
|
),
|
|
805
810
|
/* @__PURE__ */ y(
|
|
806
|
-
|
|
811
|
+
ie,
|
|
807
812
|
{
|
|
808
813
|
className: "humany-feedback-button",
|
|
809
814
|
disabled: !!s,
|
|
@@ -831,7 +836,7 @@ const dt = m(j)`
|
|
|
831
836
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
832
837
|
}};
|
|
833
838
|
display: block;
|
|
834
|
-
`,
|
|
839
|
+
`, ie = m(U)`
|
|
835
840
|
display: inline-block;
|
|
836
841
|
font-size: ${(t) => {
|
|
837
842
|
var e;
|
|
@@ -886,10 +891,10 @@ const dt = m(j)`
|
|
|
886
891
|
`;
|
|
887
892
|
}}
|
|
888
893
|
`, ht = () => {
|
|
889
|
-
const t = Be(), [e, o] = ge([]),
|
|
894
|
+
const t = Be(), [e, o] = ge([]), i = t.get("favorites");
|
|
890
895
|
Z(() => {
|
|
891
|
-
if (
|
|
892
|
-
o(
|
|
896
|
+
if (i) {
|
|
897
|
+
o(i.get());
|
|
893
898
|
const { events: l } = t.get("$widget");
|
|
894
899
|
return l.subscribe(
|
|
895
900
|
"widget:favorites-updated",
|
|
@@ -899,8 +904,8 @@ const dt = m(j)`
|
|
|
899
904
|
);
|
|
900
905
|
}
|
|
901
906
|
}, []);
|
|
902
|
-
const
|
|
903
|
-
(l) => e.indexOf(l) > -1 ? r(l) :
|
|
907
|
+
const a = (l) => i ? i.add(l) : Promise.resolve([]), r = (l) => i ? i.remove(l) : Promise.resolve([]), s = () => i ? i.clear() : Promise.resolve([]), n = A(
|
|
908
|
+
(l) => e.indexOf(l) > -1 ? r(l) : a(l),
|
|
904
909
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
905
910
|
[e]
|
|
906
911
|
);
|
|
@@ -908,7 +913,7 @@ const dt = m(j)`
|
|
|
908
913
|
e,
|
|
909
914
|
Ue(
|
|
910
915
|
() => ({
|
|
911
|
-
addFavorite:
|
|
916
|
+
addFavorite: a,
|
|
912
917
|
removeFavorite: r,
|
|
913
918
|
clearFavorites: s,
|
|
914
919
|
toggleFavorite: n
|
|
@@ -921,8 +926,8 @@ const dt = m(j)`
|
|
|
921
926
|
format: t = pe.YYYY_MM_DD_HH_MM,
|
|
922
927
|
className: e = "",
|
|
923
928
|
byLabel: o = "",
|
|
924
|
-
modifiedLabel:
|
|
925
|
-
publishedLabel:
|
|
929
|
+
modifiedLabel: i = "",
|
|
930
|
+
publishedLabel: a = "",
|
|
926
931
|
modifiedBy: r = "",
|
|
927
932
|
publishedBy: s = "",
|
|
928
933
|
showModified: n = !1,
|
|
@@ -930,21 +935,21 @@ const dt = m(j)`
|
|
|
930
935
|
modified: f,
|
|
931
936
|
published: d
|
|
932
937
|
}) => {
|
|
933
|
-
const h = l && d ? /* @__PURE__ */ c(
|
|
938
|
+
const h = l && d ? /* @__PURE__ */ c(ae, { format: t, timestamp: d }) : null, p = n && f ? /* @__PURE__ */ c(ae, { format: t, timestamp: f }) : null;
|
|
934
939
|
return !h && !p ? null : /* @__PURE__ */ y(q, { className: C(e, "humany-metadata"), children: [
|
|
935
940
|
h && /* @__PURE__ */ y(q, { className: "humany-published", children: [
|
|
936
|
-
|
|
941
|
+
a,
|
|
937
942
|
h,
|
|
938
943
|
o && s && ` ${o.replace("{{editor}}", s)}`
|
|
939
944
|
] }),
|
|
940
945
|
p && /* @__PURE__ */ y(q, { className: "humany-modified", children: [
|
|
941
946
|
h && ", ",
|
|
942
|
-
|
|
947
|
+
i,
|
|
943
948
|
p,
|
|
944
949
|
o && r && ` ${o.replace("{{editor}}", r)}`
|
|
945
950
|
] })
|
|
946
951
|
] });
|
|
947
|
-
},
|
|
952
|
+
}, ae = m(ye)`
|
|
948
953
|
&:not(:first-child) {
|
|
949
954
|
margin-left: 4px;
|
|
950
955
|
}
|
|
@@ -958,10 +963,10 @@ const dt = m(j)`
|
|
|
958
963
|
{
|
|
959
964
|
className: "humany-guide-list-tags",
|
|
960
965
|
items: t,
|
|
961
|
-
renderItem: ({ id: e, symbol: o, title:
|
|
966
|
+
renderItem: ({ id: e, symbol: o, title: i }) => o && /* @__PURE__ */ c("li", { "data-tag": e, children: /* @__PURE__ */ c($t, { size: 18, symbol: o, title: i }) }, e)
|
|
962
967
|
}
|
|
963
968
|
) : null;
|
|
964
|
-
L(({ title: t, id: e, route: o, symbolSize:
|
|
969
|
+
L(({ title: t, id: e, route: o, symbolSize: i, collapseUri: a, children: r }, s) => {
|
|
965
970
|
const { params: n } = re();
|
|
966
971
|
return /* @__PURE__ */ y(pt, { ref: s, "data-guide": e, children: [
|
|
967
972
|
/* @__PURE__ */ c(
|
|
@@ -972,7 +977,7 @@ L(({ title: t, id: e, route: o, symbolSize: a, collapseUri: i, children: r }, s)
|
|
|
972
977
|
routeName: o,
|
|
973
978
|
params: O({
|
|
974
979
|
...n,
|
|
975
|
-
uriName:
|
|
980
|
+
uriName: a || void 0,
|
|
976
981
|
id: void 0,
|
|
977
982
|
guide: void 0,
|
|
978
983
|
accordion: void 0
|
|
@@ -981,7 +986,7 @@ L(({ title: t, id: e, route: o, symbolSize: a, collapseUri: i, children: r }, s)
|
|
|
981
986
|
children: /* @__PURE__ */ c(
|
|
982
987
|
x,
|
|
983
988
|
{
|
|
984
|
-
size:
|
|
989
|
+
size: i,
|
|
985
990
|
symbol: { type: "Svg", content: "caret-up" }
|
|
986
991
|
}
|
|
987
992
|
)
|
|
@@ -1009,8 +1014,8 @@ L(
|
|
|
1009
1014
|
expandable: t = !1,
|
|
1010
1015
|
routing: e = {},
|
|
1011
1016
|
paramMappers: o = {},
|
|
1012
|
-
symbolSize:
|
|
1013
|
-
pageRole:
|
|
1017
|
+
symbolSize: i = 11,
|
|
1018
|
+
pageRole: a = "link",
|
|
1014
1019
|
pageCaret: r = "down",
|
|
1015
1020
|
showTags: s = !1,
|
|
1016
1021
|
showFavoriteToggle: n = !1,
|
|
@@ -1036,15 +1041,15 @@ L(
|
|
|
1036
1041
|
const K = et(), N = Ze(), S = He(w), { guide: Se = "guide", page: Te = "index" } = e, {
|
|
1037
1042
|
guide: Pe = ({ id: u }) => O({ guide: u }),
|
|
1038
1043
|
page: W = () => O()
|
|
1039
|
-
} = o, [Ae,
|
|
1044
|
+
} = o, [Ae, Me] = ht();
|
|
1040
1045
|
Ke(Ne, () => N.current);
|
|
1041
1046
|
const B = (u) => {
|
|
1042
|
-
const { id: $, title: v, tags: z, published:
|
|
1047
|
+
const { id: $, title: v, tags: z, published: I, modified: T, publishedBy: D, modifiedBy: H } = u;
|
|
1043
1048
|
return /* @__PURE__ */ y(
|
|
1044
1049
|
"li",
|
|
1045
1050
|
{
|
|
1046
1051
|
"data-guide": $,
|
|
1047
|
-
"has-metadata": (!!(h != null && h.showPublished) && !!
|
|
1052
|
+
"has-metadata": (!!(h != null && h.showPublished) && !!I || !!(h != null && h.showModified) && !!T).toString(),
|
|
1048
1053
|
children: [
|
|
1049
1054
|
/* @__PURE__ */ c(
|
|
1050
1055
|
G,
|
|
@@ -1053,13 +1058,13 @@ L(
|
|
|
1053
1058
|
title: v,
|
|
1054
1059
|
"aria-label": v,
|
|
1055
1060
|
routeName: Se,
|
|
1056
|
-
onClick: (
|
|
1061
|
+
onClick: (De) => f(De, u),
|
|
1057
1062
|
params: Pe(u),
|
|
1058
1063
|
text: v,
|
|
1059
1064
|
children: /* @__PURE__ */ c(
|
|
1060
1065
|
x,
|
|
1061
1066
|
{
|
|
1062
|
-
size:
|
|
1067
|
+
size: i,
|
|
1063
1068
|
symbol: {
|
|
1064
1069
|
type: "Svg",
|
|
1065
1070
|
content: t ? "caret-down" : "caret-right"
|
|
@@ -1079,7 +1084,7 @@ L(
|
|
|
1079
1084
|
removeFavoriteLabel: ke,
|
|
1080
1085
|
removeFavoriteTooltip: ze,
|
|
1081
1086
|
isFavorite: Ae.indexOf($) > -1,
|
|
1082
|
-
actions:
|
|
1087
|
+
actions: Me,
|
|
1083
1088
|
id: $
|
|
1084
1089
|
}
|
|
1085
1090
|
),
|
|
@@ -1088,10 +1093,10 @@ L(
|
|
|
1088
1093
|
bt,
|
|
1089
1094
|
{
|
|
1090
1095
|
...h,
|
|
1091
|
-
indent: t ? void 0 :
|
|
1096
|
+
indent: t ? void 0 : i,
|
|
1092
1097
|
modified: T,
|
|
1093
|
-
published:
|
|
1094
|
-
publishedBy:
|
|
1098
|
+
published: I,
|
|
1099
|
+
publishedBy: D,
|
|
1095
1100
|
modifiedBy: H
|
|
1096
1101
|
}
|
|
1097
1102
|
)
|
|
@@ -1099,7 +1104,7 @@ L(
|
|
|
1099
1104
|
},
|
|
1100
1105
|
$
|
|
1101
1106
|
);
|
|
1102
|
-
},
|
|
1107
|
+
}, Fe = A(
|
|
1103
1108
|
(u, $, v) => V ? V(u, $, v, B) : B(u),
|
|
1104
1109
|
[V, B]
|
|
1105
1110
|
), Ee = A(
|
|
@@ -1122,13 +1127,13 @@ L(
|
|
|
1122
1127
|
z && z.focus();
|
|
1123
1128
|
}
|
|
1124
1129
|
} else
|
|
1125
|
-
$ && new MutationObserver((z,
|
|
1130
|
+
$ && new MutationObserver((z, I) => {
|
|
1126
1131
|
z.forEach((T) => {
|
|
1127
1132
|
if (T.addedNodes) {
|
|
1128
|
-
const
|
|
1133
|
+
const D = Array.from(
|
|
1129
1134
|
T.addedNodes
|
|
1130
1135
|
).find((H) => H.tagName === "A");
|
|
1131
|
-
|
|
1136
|
+
D && Qe(N.current, document.activeElement) && (K && D.focus(), I.disconnect());
|
|
1132
1137
|
}
|
|
1133
1138
|
});
|
|
1134
1139
|
}).observe($, {
|
|
@@ -1141,7 +1146,7 @@ L(
|
|
|
1141
1146
|
});
|
|
1142
1147
|
}
|
|
1143
1148
|
});
|
|
1144
|
-
const
|
|
1149
|
+
const Ie = !!Object.keys(h).filter(
|
|
1145
1150
|
(u) => typeof h[u] < "u"
|
|
1146
1151
|
).length;
|
|
1147
1152
|
return /* @__PURE__ */ y(
|
|
@@ -1150,10 +1155,10 @@ L(
|
|
|
1150
1155
|
className: C(k, "humany-guide-list"),
|
|
1151
1156
|
"data-item-count": w.length,
|
|
1152
1157
|
items: w,
|
|
1153
|
-
renderItem:
|
|
1158
|
+
renderItem: Fe,
|
|
1154
1159
|
isTabbing: K,
|
|
1155
1160
|
expandable: t ? "true" : "false",
|
|
1156
|
-
"grid-items": s || n ||
|
|
1161
|
+
"grid-items": s || n || Ie ? "true" : "false",
|
|
1157
1162
|
...ce(Ce),
|
|
1158
1163
|
ref: N,
|
|
1159
1164
|
children: [
|
|
@@ -1164,13 +1169,13 @@ L(
|
|
|
1164
1169
|
title: p,
|
|
1165
1170
|
"aria-label": p,
|
|
1166
1171
|
routeName: Te,
|
|
1167
|
-
role:
|
|
1172
|
+
role: a,
|
|
1168
1173
|
params: W(),
|
|
1169
1174
|
onClick: Ee,
|
|
1170
1175
|
children: /* @__PURE__ */ c(
|
|
1171
1176
|
x,
|
|
1172
1177
|
{
|
|
1173
|
-
size:
|
|
1178
|
+
size: i,
|
|
1174
1179
|
symbol: { type: "Svg", content: `caret-${r}` }
|
|
1175
1180
|
}
|
|
1176
1181
|
)
|
|
@@ -1182,8 +1187,8 @@ L(
|
|
|
1182
1187
|
);
|
|
1183
1188
|
}
|
|
1184
1189
|
);
|
|
1185
|
-
const yt = m(
|
|
1186
|
-
${
|
|
1190
|
+
const yt = m(M)`
|
|
1191
|
+
${F}
|
|
1187
1192
|
padding: ${(t) => {
|
|
1188
1193
|
var e;
|
|
1189
1194
|
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
@@ -1378,11 +1383,11 @@ const yt = m(F)`
|
|
|
1378
1383
|
var e;
|
|
1379
1384
|
return typeof t.indent == "number" && `text-indent: calc(${(e = t.theme.sizes) == null ? void 0 : e.small} * 2 + ${t.indent}px);`;
|
|
1380
1385
|
}}
|
|
1381
|
-
`, wt =
|
|
1386
|
+
`, wt = he`
|
|
1382
1387
|
100% {
|
|
1383
1388
|
transform: rotate(360deg);
|
|
1384
1389
|
}
|
|
1385
|
-
`, xt =
|
|
1390
|
+
`, xt = he`
|
|
1386
1391
|
0% {
|
|
1387
1392
|
stroke-dasharray: 1, 200;
|
|
1388
1393
|
stroke-dashoffset: 0;
|
|
@@ -1488,9 +1493,9 @@ m(U)`
|
|
|
1488
1493
|
}
|
|
1489
1494
|
}
|
|
1490
1495
|
`;
|
|
1491
|
-
m(
|
|
1496
|
+
m(M)`
|
|
1492
1497
|
${lt}
|
|
1493
|
-
${
|
|
1498
|
+
${F}
|
|
1494
1499
|
overflow: hidden;
|
|
1495
1500
|
justify-content: flex-start;
|
|
1496
1501
|
padding: ${(t) => {
|
|
@@ -1514,8 +1519,8 @@ m(F)`
|
|
|
1514
1519
|
}
|
|
1515
1520
|
}
|
|
1516
1521
|
`;
|
|
1517
|
-
m(
|
|
1518
|
-
${
|
|
1522
|
+
m(de)`
|
|
1523
|
+
${fe}
|
|
1519
1524
|
font-weight: 300;
|
|
1520
1525
|
|
|
1521
1526
|
p {
|
|
@@ -1527,9 +1532,9 @@ m.li`
|
|
|
1527
1532
|
display: none;
|
|
1528
1533
|
&:not(:only-child) {
|
|
1529
1534
|
${(t) => {
|
|
1530
|
-
var e, o,
|
|
1535
|
+
var e, o, i;
|
|
1531
1536
|
return ((e = t.theme.sizes) == null ? void 0 : e.cardinal) && ((o = t.theme.sizes) == null ? void 0 : o.normal) && g`
|
|
1532
|
-
margin: ${(
|
|
1537
|
+
margin: ${(i = t.theme.sizes) == null ? void 0 : i.normal} 0;
|
|
1533
1538
|
`;
|
|
1534
1539
|
}}
|
|
1535
1540
|
}
|
|
@@ -1569,7 +1574,7 @@ m(ye)`
|
|
|
1569
1574
|
}};
|
|
1570
1575
|
font-weight: 300;
|
|
1571
1576
|
`;
|
|
1572
|
-
m(
|
|
1577
|
+
m(de)`
|
|
1573
1578
|
${(t) => {
|
|
1574
1579
|
var e;
|
|
1575
1580
|
return E(t)(
|
|
@@ -1582,7 +1587,7 @@ m(fe)`
|
|
|
1582
1587
|
}}
|
|
1583
1588
|
`;
|
|
1584
1589
|
m(_e)`
|
|
1585
|
-
${
|
|
1590
|
+
${fe}
|
|
1586
1591
|
font-weight: 300;
|
|
1587
1592
|
line-height: 1.5em;
|
|
1588
1593
|
button:focus-visible {
|
|
@@ -1594,7 +1599,7 @@ m(_e)`
|
|
|
1594
1599
|
}
|
|
1595
1600
|
`;
|
|
1596
1601
|
const kt = (t) => {
|
|
1597
|
-
var e, o,
|
|
1602
|
+
var e, o, i, a, r, s, n, l;
|
|
1598
1603
|
return g`
|
|
1599
1604
|
display: flex;
|
|
1600
1605
|
padding: ${(e = t.theme.sizes) == null ? void 0 : e.large};
|
|
@@ -1605,8 +1610,8 @@ const kt = (t) => {
|
|
|
1605
1610
|
color: ${(o = t.theme.colors) == null ? void 0 : o.text};
|
|
1606
1611
|
}
|
|
1607
1612
|
i {
|
|
1608
|
-
font-size: ${(
|
|
1609
|
-
margin: 0 ${(
|
|
1613
|
+
font-size: ${(i = t.theme.fonts) == null ? void 0 : i.large};
|
|
1614
|
+
margin: 0 ${(a = t.theme.sizes) == null ? void 0 : a.large} 0 0;
|
|
1610
1615
|
min-height: ${(r = t.theme.fonts) == null ? void 0 : r.large};
|
|
1611
1616
|
min-width: ${(s = t.theme.fonts) == null ? void 0 : s.large};
|
|
1612
1617
|
line-height: ${(n = t.theme.fonts) == null ? void 0 : n.large};
|
|
@@ -1638,9 +1643,9 @@ m.div`
|
|
|
1638
1643
|
}}
|
|
1639
1644
|
`;
|
|
1640
1645
|
const zt = (t) => {
|
|
1641
|
-
var e, o,
|
|
1646
|
+
var e, o, i;
|
|
1642
1647
|
return g`
|
|
1643
|
-
${
|
|
1648
|
+
${F(t)}
|
|
1644
1649
|
|
|
1645
1650
|
> div {
|
|
1646
1651
|
padding: ${(e = t.theme.sizes) == null ? void 0 : e.large};
|
|
@@ -1686,19 +1691,19 @@ const zt = (t) => {
|
|
|
1686
1691
|
|
|
1687
1692
|
@media (hover: hover) {
|
|
1688
1693
|
a:hover {
|
|
1689
|
-
background-color: ${(
|
|
1694
|
+
background-color: ${(i = t.theme.colors) == null ? void 0 : i.accent};
|
|
1690
1695
|
}
|
|
1691
1696
|
}
|
|
1692
1697
|
`;
|
|
1693
1698
|
};
|
|
1694
|
-
m(
|
|
1699
|
+
m(M)`
|
|
1695
1700
|
${(t) => zt(t)}
|
|
1696
1701
|
`;
|
|
1697
1702
|
export {
|
|
1698
|
-
|
|
1703
|
+
Yt as ContactMethodPlatform,
|
|
1699
1704
|
zt as contactItemList,
|
|
1700
1705
|
kt as contactLink,
|
|
1701
|
-
|
|
1702
|
-
|
|
1706
|
+
at as defaultComplete,
|
|
1707
|
+
it as defaultEvaluate,
|
|
1703
1708
|
ot as defaultValidate
|
|
1704
1709
|
};
|