@telia-ace/conversational-hub-bot-provider 0.0.11 → 0.0.13
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/{contact-method-c5b03dd4.js → contact-method-429ef265.js} +5 -5
- package/{contact-method-af1adf09.mjs → contact-method-ae387667.mjs} +435 -492
- package/{index-f3027d08.js → index-482ea30a.js} +1 -1
- package/{index-80e2deb5.mjs → index-93f64633.mjs} +2 -3
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { C as
|
|
6
|
-
import { useContext as
|
|
1
|
+
var ot = Object.defineProperty;
|
|
2
|
+
var it = (t, e, o) => e in t ? ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
+
var Y = (t, e, o) => (it(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
+
import { jsx as g, jsxs as C, Fragment as nt } from "react/jsx-runtime";
|
|
5
|
+
import { C as st, u as re, a as Ae, b as rt, c as at, d as ct, e as lt, f as dt, g as F, F as Ce, W as ge, l as mt, h as ht, L as Ee, I as ne, n as y, i as ve, j as Oe, k as Le, m as V, o as W, p as Z, q as $, T as qe, B as $e, r as ke, s as ft, S as E, t as se, v as je, w as ue, x as gt, y as _, z as Fe, P as Be, A as De, H as ut, D as yt, E as pt, G as bt } from "./index-93f64633.mjs";
|
|
6
|
+
import { useContext as Ge, useState as j, useEffect as A, forwardRef as ae, useCallback as P, useMemo as vt, useRef as Pe, useImperativeHandle as $t, Suspense as wt } from "react";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
function
|
|
8
|
+
function Q(t = {}) {
|
|
9
9
|
const {
|
|
10
10
|
phrase: e = "",
|
|
11
11
|
category: o,
|
|
@@ -16,17 +16,17 @@ function W(t = {}) {
|
|
|
16
16
|
accordion: r,
|
|
17
17
|
id: c,
|
|
18
18
|
uriName: l,
|
|
19
|
-
sorting:
|
|
19
|
+
sorting: f,
|
|
20
20
|
tag: m,
|
|
21
|
-
tagId:
|
|
21
|
+
tagId: u,
|
|
22
22
|
tagTitle: b,
|
|
23
|
-
...
|
|
23
|
+
...p
|
|
24
24
|
} = t, d = {};
|
|
25
|
-
return Object.keys(
|
|
26
|
-
typeof t[
|
|
27
|
-
}), typeof e == "string" && e.length && (d.phrase = e), e === null && (d.phrase = e), typeof n == "string" && n !== "0" && (d.guideCategory = n), typeof n == "number" && n !== 0 && (d.guideCategory = n), typeof n == "object" && n !== null && (typeof n.id == "string" && n.id !== "0" && (d.guideCategory = n.id), typeof n.id == "number" && n.id !== 0 && (d.guideCategory = n.id)), typeof i == "string" && i !== "0" && (d.contactCategory = i), typeof i == "number" && i !== 0 && (d.contactCategory = i), typeof i == "object" && i !== null && (typeof i.id == "string" && i.id !== "0" && (d.contactCategory = i.id), typeof i.id == "number" && i.id !== 0 && (d.contactCategory = i.id)), typeof o == "string" && o !== "0" && (d.category = o), typeof o == "number" && o !== 0 && (d.category = o), typeof o == "object" && o !== null && (typeof o.id == "string" && o.id !== "0" && (d.category = o.id), typeof o.id == "number" && o.id !== 0 && (d.category = o.id)), c && (d.id = c), l && (+d.category || +d.guideCategory || +d.guide || +d.contactCategory || +d.contactMethod) && (d.uriName = l), a && (d.connectionKey = a), s && (d.take = s),
|
|
25
|
+
return Object.keys(p).forEach((h) => {
|
|
26
|
+
typeof t[h] == "string" && (d[h] = t[h]);
|
|
27
|
+
}), typeof e == "string" && e.length && (d.phrase = e), e === null && (d.phrase = e), typeof n == "string" && n !== "0" && (d.guideCategory = n), typeof n == "number" && n !== 0 && (d.guideCategory = n), typeof n == "object" && n !== null && (typeof n.id == "string" && n.id !== "0" && (d.guideCategory = n.id), typeof n.id == "number" && n.id !== 0 && (d.guideCategory = n.id)), typeof i == "string" && i !== "0" && (d.contactCategory = i), typeof i == "number" && i !== 0 && (d.contactCategory = i), typeof i == "object" && i !== null && (typeof i.id == "string" && i.id !== "0" && (d.contactCategory = i.id), typeof i.id == "number" && i.id !== 0 && (d.contactCategory = i.id)), typeof o == "string" && o !== "0" && (d.category = o), typeof o == "number" && o !== 0 && (d.category = o), typeof o == "object" && o !== null && (typeof o.id == "string" && o.id !== "0" && (d.category = o.id), typeof o.id == "number" && o.id !== 0 && (d.category = o.id)), c && (d.id = c), l && (+d.category || +d.guideCategory || +d.guide || +d.contactCategory || +d.contactMethod) && (d.uriName = l), a && (d.connectionKey = a), s && (d.take = s), f && (d.sorting = f), typeof r == "string" && r.length > 0 && (d.accordion = r), typeof m == "string" && m !== "0" && (d.tag = m), typeof m == "number" && m !== 0 && (d.tag = m), Array.isArray(m) && m.length && (d.tag = m), (typeof u == "string" || typeof u == "number") && (d.tagId = u), typeof b == "string" && (d.tagTitle = b), typeof d.tag == "string" && (d.tag = d.tag.split(",")), d;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const ye = (t) => {
|
|
30
30
|
if (!t)
|
|
31
31
|
return "";
|
|
32
32
|
const e = [
|
|
@@ -131,7 +131,7 @@ const pe = (t) => {
|
|
|
131
131
|
for (; o !== null; )
|
|
132
132
|
o === t && (n = !0), o = o.parentNode;
|
|
133
133
|
return n;
|
|
134
|
-
},
|
|
134
|
+
}, pe = (t = {}) => (Object.keys(t).forEach((e) => {
|
|
135
135
|
(t[e] === null || typeof t[e] > "u") && delete t[e];
|
|
136
136
|
}), t), oe = (t, e) => {
|
|
137
137
|
let o = !0;
|
|
@@ -141,29 +141,29 @@ const pe = (t) => {
|
|
|
141
141
|
o = s.toString() === a.toString();
|
|
142
142
|
}
|
|
143
143
|
}), o);
|
|
144
|
-
},
|
|
145
|
-
const o =
|
|
146
|
-
return
|
|
144
|
+
}, He = () => Ge(st), Ct = (t, e) => {
|
|
145
|
+
const o = He(), n = re(), [i, s] = j(void 0), a = Ae(), r = t || o.type || "";
|
|
146
|
+
return A(() => {
|
|
147
147
|
if (r) {
|
|
148
148
|
let c;
|
|
149
149
|
return (e || n).getAsync("componentResolver").then((l) => {
|
|
150
150
|
if (a.current) {
|
|
151
|
-
const
|
|
152
|
-
s(
|
|
151
|
+
const f = l.getComponent(r);
|
|
152
|
+
s(f);
|
|
153
153
|
}
|
|
154
|
-
c = l.registerResolver(r, (
|
|
155
|
-
a.current && s(
|
|
154
|
+
c = l.registerResolver(r, (f) => {
|
|
155
|
+
a.current && s(f);
|
|
156
156
|
});
|
|
157
157
|
}), () => {
|
|
158
158
|
c && c();
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
}, [a, r, e, n]), i;
|
|
162
|
-
}, kt = () =>
|
|
163
|
-
const t =
|
|
164
|
-
return
|
|
162
|
+
}, kt = () => Ge(rt), Nt = () => {
|
|
163
|
+
const t = at(), e = He(), [o, n] = j([]), [i, s] = j();
|
|
164
|
+
return A(() => {
|
|
165
165
|
if (t && e) {
|
|
166
|
-
const a = new
|
|
166
|
+
const a = new ct(t).withId(e.id), r = t.actions(a, e.type || lt());
|
|
167
167
|
s(r), o !== null && (o.forEach((c) => {
|
|
168
168
|
r.dispatch(c.key, c.data).then((l) => c.resolve(l)).catch((l) => c.reject(l));
|
|
169
169
|
}), n(null));
|
|
@@ -177,8 +177,8 @@ const pe = (t) => {
|
|
|
177
177
|
});
|
|
178
178
|
}) : i.dispatch(a, r);
|
|
179
179
|
}, Mt = () => {
|
|
180
|
-
const [t, e] =
|
|
181
|
-
return
|
|
180
|
+
const [t, e] = j(!1);
|
|
181
|
+
return A(() => {
|
|
182
182
|
const o = () => {
|
|
183
183
|
e(!1);
|
|
184
184
|
}, n = (i) => {
|
|
@@ -188,52 +188,52 @@ const pe = (t) => {
|
|
|
188
188
|
window.removeEventListener("keydown", n), window.removeEventListener("click", o);
|
|
189
189
|
};
|
|
190
190
|
}, []), t;
|
|
191
|
-
},
|
|
192
|
-
const e = re(), o =
|
|
191
|
+
}, we = (t) => {
|
|
192
|
+
const e = re(), o = dt(), [n, i] = j({
|
|
193
193
|
name: "",
|
|
194
194
|
params: {}
|
|
195
|
-
}), s =
|
|
196
|
-
return
|
|
195
|
+
}), s = Ae();
|
|
196
|
+
return A(() => {
|
|
197
197
|
const a = (t || e).get("$widget");
|
|
198
198
|
if (!a)
|
|
199
199
|
return;
|
|
200
200
|
const { events: r } = a;
|
|
201
201
|
return r.subscribe(
|
|
202
202
|
"router:change",
|
|
203
|
-
(l, { next: { routeData:
|
|
203
|
+
(l, { next: { routeData: f } }) => {
|
|
204
204
|
if (s.current) {
|
|
205
|
-
const { name: m, params:
|
|
206
|
-
|
|
205
|
+
const { name: m, params: u } = f;
|
|
206
|
+
pe(u), i({ name: m, params: u });
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
|
-
}, [s, t, e]),
|
|
210
|
+
}, [s, t, e]), A(() => {
|
|
211
211
|
if (o && o.history && s.current) {
|
|
212
212
|
const a = o.getRouteData(), { name: r, params: c } = a;
|
|
213
|
-
|
|
213
|
+
pe(c), i({ name: r, params: c });
|
|
214
214
|
}
|
|
215
215
|
}, [o, s]), n;
|
|
216
216
|
};
|
|
217
|
-
var
|
|
218
|
-
const
|
|
217
|
+
var Ye = /* @__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))(Ye || {});
|
|
218
|
+
const Ue = ({
|
|
219
219
|
className: t = "",
|
|
220
220
|
format: e = "hh:mm",
|
|
221
221
|
timestamp: o
|
|
222
|
-
}) => /* @__PURE__ */
|
|
222
|
+
}) => /* @__PURE__ */ g("span", { className: F(t, "humany-timestamp"), children: zt(o, e) }), Ne = (t) => `0${t}`.slice(-2);
|
|
223
223
|
function zt(t, e) {
|
|
224
|
-
const o = new Date(t), n = o.toTimeString().split(" ")[0].split(":"), i = n.length > 1 ? `${n[0]}:${n[1]}` : n[0], s = o.getFullYear(), a = o.getMonth() + 1, r = o.getDate(), c = `${s}-${
|
|
224
|
+
const o = new Date(t), n = o.toTimeString().split(" ")[0].split(":"), i = n.length > 1 ? `${n[0]}:${n[1]}` : n[0], s = o.getFullYear(), a = o.getMonth() + 1, r = o.getDate(), c = `${s}-${Ne(a)}-${Ne(
|
|
225
225
|
r
|
|
226
226
|
)}`;
|
|
227
227
|
return e === "yyyy-mm-dd" ? c : e === "hh:mm" ? i : `${c} ${i}`;
|
|
228
228
|
}
|
|
229
229
|
var ie = /* @__PURE__ */ ((t) => (t.guide = "guide", t.link = "link", t.default = "default", t))(ie || {});
|
|
230
|
-
const
|
|
230
|
+
const Me = (t) => import("./index-5c9c2abf.mjs").then(
|
|
231
231
|
({ ServiceClient: e, ServiceProxy: o }) => t.get("settings").then((n) => {
|
|
232
232
|
const { name: i, events: s } = t.get("$widget"), {
|
|
233
233
|
data: { projection: a = "", site: r = "current", forceHttps: c = !1 }
|
|
234
234
|
} = n, l = new o(a, {
|
|
235
235
|
credentials: "same-origin"
|
|
236
|
-
}),
|
|
236
|
+
}), f = new e(
|
|
237
237
|
l,
|
|
238
238
|
{
|
|
239
239
|
funnel: i.replace("_contact-method", "").replace("_contact", ""),
|
|
@@ -244,10 +244,10 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
|
|
|
244
244
|
);
|
|
245
245
|
return s.subscribe(
|
|
246
246
|
"widget:settings-updated",
|
|
247
|
-
(m, { data:
|
|
248
|
-
|
|
247
|
+
(m, { data: u }) => {
|
|
248
|
+
u && u.projection !== a && f.proxy.setBaseUrl(u.projection);
|
|
249
249
|
}
|
|
250
|
-
),
|
|
250
|
+
), f;
|
|
251
251
|
})
|
|
252
252
|
), St = (t, e) => () => {
|
|
253
253
|
const o = (i) => {
|
|
@@ -261,38 +261,38 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
|
|
|
261
261
|
n.host,
|
|
262
262
|
n.pathname
|
|
263
263
|
].join("");
|
|
264
|
-
},
|
|
264
|
+
}, q = (t) => {
|
|
265
265
|
if (t) {
|
|
266
266
|
const { Type: e, Content: o } = t;
|
|
267
267
|
if (e && o)
|
|
268
268
|
return { type: e, content: o };
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, be = (t) => t.map((e) => {
|
|
271
271
|
const o = {
|
|
272
272
|
id: e.Id.toString(),
|
|
273
273
|
title: e.Name,
|
|
274
|
-
symbol:
|
|
275
|
-
activeSymbol: e.ActiveIcon &&
|
|
274
|
+
symbol: q(e.DefaultIcon),
|
|
275
|
+
activeSymbol: e.ActiveIcon && q(e.ActiveIcon),
|
|
276
276
|
description: e.Description || e.Attributes && e.Attributes.description || "",
|
|
277
277
|
matches: e.GuidesCount
|
|
278
278
|
};
|
|
279
|
-
return e.Children && e.Children.length && (o.items =
|
|
280
|
-
}),
|
|
279
|
+
return e.Children && e.Children.length && (o.items = be(e.Children)), o;
|
|
280
|
+
}), I = (t, e) => t.filter(({ Type: o }) => o === e).map(({ Id: o, Title: n, Body: i }) => ({
|
|
281
281
|
id: o.toString(),
|
|
282
282
|
title: n,
|
|
283
283
|
body: i
|
|
284
284
|
})), de = (t) => t.map(({ Id: e, Title: o, DefaultIcon: n, ListNotices: i, Notices: s }) => ({
|
|
285
285
|
id: e.toString(),
|
|
286
286
|
title: o,
|
|
287
|
-
symbol:
|
|
287
|
+
symbol: q(n),
|
|
288
288
|
defaultHeaderOptions: {
|
|
289
289
|
visible: !!i.length
|
|
290
290
|
},
|
|
291
|
-
notifications: (i || []).concat(s || []).map(({ Id: a, Title: r, Body: c, Type: l, Modified:
|
|
291
|
+
notifications: (i || []).concat(s || []).map(({ Id: a, Title: r, Body: c, Type: l, Modified: f }) => ({
|
|
292
292
|
id: a.toString(),
|
|
293
293
|
title: r,
|
|
294
294
|
body: c,
|
|
295
|
-
modified:
|
|
295
|
+
modified: f,
|
|
296
296
|
expandable: l === "listNotice"
|
|
297
297
|
}))
|
|
298
298
|
})), me = ({
|
|
@@ -306,47 +306,47 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
|
|
|
306
306
|
Form: r,
|
|
307
307
|
Description: c
|
|
308
308
|
}, l) => {
|
|
309
|
-
const { Adapter:
|
|
309
|
+
const { Adapter: f } = n || { Adapter: {} }, { ClientName: m = "", Settings: u = {}, CustomClientName: b = "" } = f, p = {
|
|
310
310
|
id: t.toString(),
|
|
311
311
|
title: e,
|
|
312
312
|
description: c,
|
|
313
|
-
symbol:
|
|
313
|
+
symbol: q(o),
|
|
314
314
|
clientName: m === "custom.adapter" ? b : m,
|
|
315
315
|
expanded: !0,
|
|
316
316
|
inline: !0,
|
|
317
317
|
body: {}
|
|
318
318
|
};
|
|
319
319
|
if (m.indexOf("phone") > -1 || m.indexOf("freetext") > -1) {
|
|
320
|
-
const { displayTextBeforeClick: d, textBeforeClick:
|
|
321
|
-
d === "true" && (
|
|
320
|
+
const { displayTextBeforeClick: d, textBeforeClick: h } = u;
|
|
321
|
+
d === "true" && (p.expanded = !1, p.title = h), m.indexOf("phone.text") > -1 ? p.body.phoneNumber = u.phoneNumber : p.body.freetext = u.freetext;
|
|
322
322
|
}
|
|
323
|
-
return (m.indexOf("chat.popup") > -1 || m.indexOf("link") > -1 || m === "custom.adapter" && i === "custom") && (
|
|
323
|
+
return (m.indexOf("chat.popup") > -1 || m.indexOf("link") > -1 || m === "custom.adapter" && i === "custom") && (p.body = u, p.body.confirmationFallback = s), m.indexOf("ace") > -1 && (p.body = u), r && r.HasValueComponents && (l ? p.body.form = Ce.fromLegacyForm(
|
|
324
324
|
t.toString(),
|
|
325
325
|
r,
|
|
326
326
|
l
|
|
327
|
-
).get() :
|
|
327
|
+
).get() : p.body.form = Ce.fromLegacyForm(
|
|
328
328
|
t.toString(),
|
|
329
329
|
r
|
|
330
|
-
).get(), a || (
|
|
331
|
-
},
|
|
330
|
+
).get(), a || (p.expanded = p.inline = !1)), p;
|
|
331
|
+
}, U = (t = []) => t.map(
|
|
332
332
|
({ Id: e, Title: o, TotalMatches: n, Symbol: i, DefaultIcon: s, ActiveIcon: a }) => ({
|
|
333
333
|
id: e.toString(),
|
|
334
334
|
title: o,
|
|
335
335
|
matches: n,
|
|
336
|
-
symbol:
|
|
337
|
-
defaultIcon:
|
|
338
|
-
activeIcon:
|
|
336
|
+
symbol: q(s || i),
|
|
337
|
+
defaultIcon: q(s),
|
|
338
|
+
activeIcon: q(a)
|
|
339
339
|
})
|
|
340
|
-
),
|
|
340
|
+
), he = (t) => t.map(({ Id: e, Title: o, Tags: n, FirstPublishedDate: i, Modified: s }) => ({
|
|
341
341
|
id: e.toString(),
|
|
342
342
|
title: o,
|
|
343
|
-
tags:
|
|
343
|
+
tags: U(n),
|
|
344
344
|
published: i,
|
|
345
345
|
modified: s
|
|
346
346
|
})), Rt = (t, e) => {
|
|
347
347
|
switch (t) {
|
|
348
|
-
case
|
|
349
|
-
case
|
|
348
|
+
case R.MatchByCategory:
|
|
349
|
+
case R.Match: {
|
|
350
350
|
const o = {
|
|
351
351
|
guides: [],
|
|
352
352
|
matches: 0,
|
|
@@ -364,22 +364,22 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
|
|
|
364
364
|
Tags: r,
|
|
365
365
|
ByCategory: c
|
|
366
366
|
} = e;
|
|
367
|
-
return o.guides =
|
|
368
|
-
({ Id: l, Matches:
|
|
367
|
+
return o.guides = he(n), o.matches = i, o.byCategory = (c || []).map(
|
|
368
|
+
({ Id: l, Matches: f, TotalMatches: m }) => ({
|
|
369
369
|
id: l,
|
|
370
|
-
guides:
|
|
370
|
+
guides: he(f),
|
|
371
371
|
matches: m
|
|
372
372
|
})
|
|
373
|
-
), o.tags =
|
|
373
|
+
), o.tags = U(r), o.notificationLists = de(a || []), o.topNotifications = I(s || [], "noticeRowTop"), o.middleNotifications = I(s || [], "noticeRowMiddle"), o.bottomNotifications = I(s || [], "footerNotice"), o;
|
|
374
374
|
}
|
|
375
|
-
case
|
|
375
|
+
case R.Categories: {
|
|
376
376
|
const { Children: o, GuidesCountTotal: n } = e;
|
|
377
377
|
return {
|
|
378
|
-
categories:
|
|
378
|
+
categories: be(o || []),
|
|
379
379
|
matches: n
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
case
|
|
382
|
+
case R.Guide: {
|
|
383
383
|
const {
|
|
384
384
|
Id: o,
|
|
385
385
|
Title: n,
|
|
@@ -389,76 +389,76 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
|
|
|
389
389
|
ConnectionId: r,
|
|
390
390
|
ContactMethods: c,
|
|
391
391
|
EnableFeedback: l,
|
|
392
|
-
HandoverExists:
|
|
392
|
+
HandoverExists: f,
|
|
393
393
|
FirstPublishedDate: m,
|
|
394
|
-
Modified:
|
|
394
|
+
Modified: u,
|
|
395
395
|
ModifiedByDisplayName: b,
|
|
396
|
-
FirstPublishedByDisplayName:
|
|
396
|
+
FirstPublishedByDisplayName: p,
|
|
397
397
|
Categories: d,
|
|
398
|
-
Tags:
|
|
398
|
+
Tags: h,
|
|
399
399
|
SeoMetaDescription: v,
|
|
400
|
-
SeoAllowIndex:
|
|
401
|
-
Perspectives:
|
|
402
|
-
PerspectiveKey:
|
|
403
|
-
Translations:
|
|
404
|
-
} = e,
|
|
405
|
-
(
|
|
406
|
-
) ||
|
|
400
|
+
SeoAllowIndex: O,
|
|
401
|
+
Perspectives: z,
|
|
402
|
+
PerspectiveKey: L,
|
|
403
|
+
Translations: B
|
|
404
|
+
} = e, k = L || Object.values(z).find(
|
|
405
|
+
(M) => M === r
|
|
406
|
+
) || z.Default || null, J = {
|
|
407
407
|
guide: {
|
|
408
408
|
id: o.toString(),
|
|
409
409
|
title: n,
|
|
410
410
|
body: i,
|
|
411
|
-
modified:
|
|
411
|
+
modified: u,
|
|
412
412
|
published: m,
|
|
413
413
|
modifiedBy: b,
|
|
414
|
-
publishedBy:
|
|
414
|
+
publishedBy: p,
|
|
415
415
|
connection: r,
|
|
416
416
|
categories: d,
|
|
417
|
-
hasHandover:
|
|
417
|
+
hasHandover: f,
|
|
418
418
|
allowFeedback: l,
|
|
419
419
|
seoMetaDescription: v,
|
|
420
|
-
seoAllowIndex:
|
|
421
|
-
perspectives:
|
|
422
|
-
perspective:
|
|
423
|
-
translations: Object.keys(
|
|
420
|
+
seoAllowIndex: O,
|
|
421
|
+
perspectives: z,
|
|
422
|
+
perspective: k,
|
|
423
|
+
translations: Object.keys(B || {}).reduce((M, D) => (M[D] = B[D].toString(), M), {})
|
|
424
424
|
},
|
|
425
|
-
related:
|
|
425
|
+
related: he(s || []),
|
|
426
426
|
dialog: [],
|
|
427
427
|
contactMethods: (c || []).map(
|
|
428
|
-
(
|
|
428
|
+
(M) => me(M)
|
|
429
429
|
),
|
|
430
|
-
tags:
|
|
430
|
+
tags: U(h)
|
|
431
431
|
};
|
|
432
432
|
return (a || []).forEach(
|
|
433
|
-
({ CanAccess:
|
|
434
|
-
if (!
|
|
433
|
+
({ CanAccess: M, Description: D, ConnectionId: X, Properties: w }) => {
|
|
434
|
+
if (!M)
|
|
435
435
|
return;
|
|
436
|
-
const
|
|
436
|
+
const N = {
|
|
437
437
|
id: o.toString(),
|
|
438
|
-
title:
|
|
439
|
-
connection:
|
|
440
|
-
connectionKey:
|
|
438
|
+
title: D,
|
|
439
|
+
connection: X,
|
|
440
|
+
connectionKey: w.ConnectionKey,
|
|
441
441
|
type: ie.default,
|
|
442
442
|
parent: {
|
|
443
443
|
id: o.toString(),
|
|
444
444
|
title: n,
|
|
445
|
-
tags:
|
|
445
|
+
tags: U(h)
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
|
-
if (
|
|
449
|
-
switch (
|
|
448
|
+
if (w.Type === "Guide" || w.Type === "Link")
|
|
449
|
+
switch (w.Id && (N.id = w.Id.toString()), w.Uri && (N.href = w.Uri), w.Target && (N.target = w.Target), w.Type) {
|
|
450
450
|
case "Guide":
|
|
451
|
-
|
|
451
|
+
N.type = ie.guide;
|
|
452
452
|
break;
|
|
453
453
|
case "Link":
|
|
454
|
-
|
|
454
|
+
N.type = ie.link;
|
|
455
455
|
break;
|
|
456
456
|
}
|
|
457
|
-
|
|
457
|
+
J.dialog.push(N);
|
|
458
458
|
}
|
|
459
|
-
),
|
|
459
|
+
), J;
|
|
460
460
|
}
|
|
461
|
-
case
|
|
461
|
+
case R.Contacts: {
|
|
462
462
|
const {
|
|
463
463
|
Children: o,
|
|
464
464
|
Matches: n,
|
|
@@ -469,26 +469,26 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
|
|
|
469
469
|
contactMethods: (n || []).map(
|
|
470
470
|
(r) => me(r)
|
|
471
471
|
),
|
|
472
|
-
categories:
|
|
473
|
-
topNotifications:
|
|
474
|
-
middleNotifications:
|
|
475
|
-
bottomNotifications:
|
|
472
|
+
categories: be(o || []),
|
|
473
|
+
topNotifications: I(i || [], "noticeRowTop"),
|
|
474
|
+
middleNotifications: I(i || [], "noticeRowMiddle"),
|
|
475
|
+
bottomNotifications: I(i || [], "footerNotice"),
|
|
476
476
|
notificationLists: de(s || [])
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
case
|
|
479
|
+
case R.ContactMethod: {
|
|
480
480
|
const { ContactMethod: o } = e;
|
|
481
481
|
return me(o || {});
|
|
482
482
|
}
|
|
483
|
-
case
|
|
484
|
-
case
|
|
485
|
-
return
|
|
486
|
-
case
|
|
483
|
+
case R.Tags:
|
|
484
|
+
case R.TagsOnGuides:
|
|
485
|
+
return U(e || []);
|
|
486
|
+
case R.Notifications: {
|
|
487
487
|
const { Notices: o, NoticeLists: n } = e;
|
|
488
488
|
return {
|
|
489
|
-
topNotifications:
|
|
490
|
-
middleNotifications:
|
|
491
|
-
bottomNotifications:
|
|
489
|
+
topNotifications: I(o || [], "noticeRowTop"),
|
|
490
|
+
middleNotifications: I(o || [], "noticeRowMiddle"),
|
|
491
|
+
bottomNotifications: I(o || [], "footerNotice"),
|
|
492
492
|
notificationLists: de(n || [])
|
|
493
493
|
};
|
|
494
494
|
}
|
|
@@ -496,8 +496,8 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
|
|
|
496
496
|
return {};
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
|
-
var Ke = /* @__PURE__ */ ((t) => (t.Guide = "guide", t.Guides = "guides", t.GuidesByCategory = "guides-by-category", t.RowNotifications = "row-notices", t.NotificationLists = "notification-lists", t.GuideCategories = "guide-categories", t.ContactMethodCategories = "contact-method-categories", t.ContactMethod = "contact-method", t.ContactMethods = "contact-methods", t.Tags = "tags", t.TagsOnGuides = "tagsonguides", t))(Ke || {}),
|
|
500
|
-
const
|
|
499
|
+
var Ke = /* @__PURE__ */ ((t) => (t.Guide = "guide", t.Guides = "guides", t.GuidesByCategory = "guides-by-category", t.RowNotifications = "row-notices", t.NotificationLists = "notification-lists", t.GuideCategories = "guide-categories", t.ContactMethodCategories = "contact-method-categories", t.ContactMethod = "contact-method", t.ContactMethods = "contact-methods", t.Tags = "tags", t.TagsOnGuides = "tagsonguides", t))(Ke || {}), R = /* @__PURE__ */ ((t) => (t.Match = "match", t.Categories = "categories", t.Guide = "guide", t.Contacts = "contacts", t.ContactMethod = "contact-method", t.MatchByCategory = "match-by-category", t.Tags = "tags", t.TagsOnGuides = "tagsonguides", t.Notifications = "notifications", t))(R || {});
|
|
500
|
+
const ze = (t) => {
|
|
501
501
|
switch (t) {
|
|
502
502
|
case "guides":
|
|
503
503
|
return "match";
|
|
@@ -526,12 +526,12 @@ const Se = (t) => {
|
|
|
526
526
|
const { invoke: e } = t.get("$widget");
|
|
527
527
|
return await e("renderState") === ge.hidden;
|
|
528
528
|
};
|
|
529
|
-
class
|
|
529
|
+
class K {
|
|
530
530
|
constructor(e, o) {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
531
|
+
Y(this, "queries", /* @__PURE__ */ new Map());
|
|
532
|
+
Y(this, "lastTake", 0);
|
|
533
|
+
Y(this, "events");
|
|
534
|
+
Y(this, "getUnresolvedQueries", () => {
|
|
535
535
|
let e = 0;
|
|
536
536
|
return this.queries.forEach((o, n) => {
|
|
537
537
|
o.some((s) => !s.resolved) && (e = 1);
|
|
@@ -548,21 +548,21 @@ class Q {
|
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
550
|
static getInstance(e, o = "dataClient") {
|
|
551
|
-
return
|
|
551
|
+
return mt(this)(() => e.getAsync(o).then(async (n) => {
|
|
552
552
|
let i = await e.getAsync("matchingClient");
|
|
553
|
-
i || (i = await
|
|
553
|
+
i || (i = await Me(e), e.registerAsync("matchingClient", () => i));
|
|
554
554
|
let s = n;
|
|
555
|
-
return s || (s = new
|
|
555
|
+
return s || (s = new K(e, i), e.registerAsync(o, () => s)), s;
|
|
556
556
|
}));
|
|
557
557
|
}
|
|
558
558
|
fetch(e, o, n) {
|
|
559
559
|
return new Promise((i, s) => {
|
|
560
|
-
o.take && (this.lastTake = +(o.take || 0)),
|
|
561
|
-
const a =
|
|
560
|
+
o.take && (this.lastTake = +(o.take || 0)), pe(o);
|
|
561
|
+
const a = ze(e);
|
|
562
562
|
let r = this.queries.get(a) || [], c = r.find((l) => oe(l.params, o)) || null;
|
|
563
563
|
if (c && (n != null && n.noCache)) {
|
|
564
564
|
const l = r.findIndex(
|
|
565
|
-
(
|
|
565
|
+
(f) => oe(f.params, o)
|
|
566
566
|
);
|
|
567
567
|
r = [...r.slice(0, l), ...r.slice(l + 1)], c = null;
|
|
568
568
|
}
|
|
@@ -587,7 +587,7 @@ class Q {
|
|
|
587
587
|
}
|
|
588
588
|
// query the cached data
|
|
589
589
|
read(e, o) {
|
|
590
|
-
const { select: n } = o, i =
|
|
590
|
+
const { select: n } = o, i = ze(e);
|
|
591
591
|
return (this.queries.get(i) || []).reduce((r, c) => {
|
|
592
592
|
if (typeof n == "function") {
|
|
593
593
|
const l = n(c.data);
|
|
@@ -613,38 +613,38 @@ class Q {
|
|
|
613
613
|
tagId: r = void 0,
|
|
614
614
|
take: c = 5,
|
|
615
615
|
connection: l = "",
|
|
616
|
-
guideId:
|
|
616
|
+
guideId: f,
|
|
617
617
|
expandCategories: m = "descendants",
|
|
618
|
-
currentCategory:
|
|
618
|
+
currentCategory: u,
|
|
619
619
|
sorting: b = "popularity-descending",
|
|
620
|
-
guideIds:
|
|
620
|
+
guideIds: p = []
|
|
621
621
|
} = o, d = n.toString().trim();
|
|
622
622
|
if (await Tt(this.container))
|
|
623
623
|
return Promise.resolve();
|
|
624
624
|
switch (e) {
|
|
625
625
|
case "match": {
|
|
626
|
-
const
|
|
627
|
-
const [
|
|
626
|
+
const h = (v) => {
|
|
627
|
+
const [O, z] = v.split("-");
|
|
628
628
|
return {
|
|
629
629
|
type: (/* @__PURE__ */ new Map([
|
|
630
630
|
["popularity", "popularity"],
|
|
631
631
|
["alphabetic", "title"],
|
|
632
632
|
["modified", "lastModified"],
|
|
633
633
|
["published", "firstPublished"]
|
|
634
|
-
])).get(
|
|
635
|
-
direction:
|
|
634
|
+
])).get(O),
|
|
635
|
+
direction: z
|
|
636
636
|
};
|
|
637
637
|
};
|
|
638
|
-
return
|
|
639
|
-
configuration: { ids:
|
|
638
|
+
return p.length ? this.matchingClient.customRequest("guides", "POST", {
|
|
639
|
+
configuration: { ids: p, take: +c }
|
|
640
640
|
}).then(
|
|
641
641
|
(v) => v && this.handleResponse(v, e, o)
|
|
642
642
|
) : this.matchingClient.match(d, {
|
|
643
643
|
categories: i === "0" ? [] : Array.isArray(i) ? i : [+i],
|
|
644
644
|
take: +c,
|
|
645
645
|
tags: r,
|
|
646
|
-
sorting:
|
|
647
|
-
ids:
|
|
646
|
+
sorting: h(b),
|
|
647
|
+
ids: p
|
|
648
648
|
}).then(
|
|
649
649
|
(v) => v && this.handleResponse(v, e, o)
|
|
650
650
|
);
|
|
@@ -656,15 +656,15 @@ class Q {
|
|
|
656
656
|
take: +c,
|
|
657
657
|
tags: r
|
|
658
658
|
}).then(
|
|
659
|
-
(
|
|
659
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
660
660
|
);
|
|
661
661
|
case "guide":
|
|
662
|
-
return this.matchingClient.getGuide(
|
|
663
|
-
|
|
664
|
-
}).catch((
|
|
662
|
+
return this.matchingClient.getGuide(f, { connectionId: l }).then((h) => {
|
|
663
|
+
h && this.handleResponse(h, e, o);
|
|
664
|
+
}).catch((h) => {
|
|
665
665
|
const v = {
|
|
666
666
|
message: "Something went wrong.",
|
|
667
|
-
status:
|
|
667
|
+
status: h.status || 400
|
|
668
668
|
};
|
|
669
669
|
v.status === 404 && (v.message = "The guide could not be found."), this.handleResponse({}, e, o, v);
|
|
670
670
|
});
|
|
@@ -674,17 +674,17 @@ class Q {
|
|
|
674
674
|
expand: m,
|
|
675
675
|
tags: r
|
|
676
676
|
}).then(
|
|
677
|
-
(
|
|
677
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
678
678
|
);
|
|
679
679
|
case "contacts":
|
|
680
|
-
return
|
|
681
|
-
(
|
|
680
|
+
return f ? this.matchingClient.contactMethods(+f, { phrase: d }).then(
|
|
681
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
682
682
|
) : this.matchingClient.contacts(+s, { phrase: d }).then(
|
|
683
|
-
(
|
|
683
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
684
684
|
);
|
|
685
685
|
case "contact-method":
|
|
686
|
-
return this.matchingClient.getContactMethod(+a, { guideId:
|
|
687
|
-
(
|
|
686
|
+
return this.matchingClient.getContactMethod(+a, { guideId: f, currentCategory: u }).then(
|
|
687
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
688
688
|
);
|
|
689
689
|
case "tags":
|
|
690
690
|
return this.matchingClient.customRequest("tags", "GET", {
|
|
@@ -694,7 +694,7 @@ class Q {
|
|
|
694
694
|
categories: i === "0" ? [] : Array.isArray(i) ? i : [+i]
|
|
695
695
|
}
|
|
696
696
|
}).then(
|
|
697
|
-
(
|
|
697
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
698
698
|
);
|
|
699
699
|
case "tagsonguides":
|
|
700
700
|
return this.matchingClient.customRequest("tagsonguides", "GET", {
|
|
@@ -705,7 +705,7 @@ class Q {
|
|
|
705
705
|
tags: r
|
|
706
706
|
}
|
|
707
707
|
}).then(
|
|
708
|
-
(
|
|
708
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
709
709
|
);
|
|
710
710
|
case "notifications":
|
|
711
711
|
return this.matchingClient.customRequest("notices", "GET", {
|
|
@@ -714,7 +714,7 @@ class Q {
|
|
|
714
714
|
categories: i === "0" ? [] : Array.isArray(i) ? i : [+i]
|
|
715
715
|
}
|
|
716
716
|
}).then(
|
|
717
|
-
(
|
|
717
|
+
(h) => h && this.handleResponse(h, e, o)
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
@@ -759,16 +759,16 @@ class Q {
|
|
|
759
759
|
static create(e) {
|
|
760
760
|
return e.getAsync("matchingClient").then(async (o) => {
|
|
761
761
|
if (o)
|
|
762
|
-
return new
|
|
763
|
-
const n = await
|
|
764
|
-
return e.registerAsync("matchingClient", () => n), new
|
|
762
|
+
return new K(e, o);
|
|
763
|
+
const n = await Me(e);
|
|
764
|
+
return e.registerAsync("matchingClient", () => n), new K(e, n);
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
getClient() {
|
|
768
768
|
return this.matchingClient;
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
const
|
|
771
|
+
const It = ({
|
|
772
772
|
title: t = "",
|
|
773
773
|
className: e,
|
|
774
774
|
id: o,
|
|
@@ -780,49 +780,49 @@ const At = ({
|
|
|
780
780
|
children: c,
|
|
781
781
|
connectionKey: l
|
|
782
782
|
}) => {
|
|
783
|
-
const
|
|
783
|
+
const f = {}, { name: m, params: u } = we();
|
|
784
784
|
switch (s) {
|
|
785
785
|
case "default":
|
|
786
786
|
case "guide":
|
|
787
|
-
const { id: b, title:
|
|
787
|
+
const { id: b, title: p } = n;
|
|
788
788
|
let d = l || i;
|
|
789
|
-
b !== o && !l && (d = void 0),
|
|
790
|
-
...
|
|
789
|
+
b !== o && !l && (d = void 0), f.routeName = m, f.params = Q({
|
|
790
|
+
...u,
|
|
791
791
|
guide: o,
|
|
792
792
|
connection: d,
|
|
793
|
-
uriName:
|
|
793
|
+
uriName: ye(o === b ? p : t)
|
|
794
794
|
});
|
|
795
795
|
break;
|
|
796
796
|
case "link":
|
|
797
|
-
|
|
797
|
+
f.href = r, f.target = a;
|
|
798
798
|
break;
|
|
799
799
|
}
|
|
800
|
-
return /* @__PURE__ */
|
|
801
|
-
|
|
800
|
+
return /* @__PURE__ */ g(
|
|
801
|
+
Ee,
|
|
802
802
|
{
|
|
803
|
-
className:
|
|
804
|
-
...
|
|
805
|
-
children: c || /* @__PURE__ */
|
|
806
|
-
s === "link" && /* @__PURE__ */
|
|
807
|
-
/* @__PURE__ */
|
|
803
|
+
className: F(e, "humany-dialog-link"),
|
|
804
|
+
...f,
|
|
805
|
+
children: c || /* @__PURE__ */ C(nt, { children: [
|
|
806
|
+
s === "link" && /* @__PURE__ */ g(ne, { faIcon: "link" }),
|
|
807
|
+
/* @__PURE__ */ g("span", { children: t })
|
|
808
808
|
] })
|
|
809
809
|
}
|
|
810
810
|
);
|
|
811
811
|
};
|
|
812
812
|
ae(
|
|
813
|
-
({ className: t, dialog: e, ...o }, n) => e.length ? /* @__PURE__ */
|
|
814
|
-
|
|
813
|
+
({ className: t, dialog: e, ...o }, n) => e.length ? /* @__PURE__ */ g(
|
|
814
|
+
At,
|
|
815
815
|
{
|
|
816
|
-
className:
|
|
816
|
+
className: F(t, "humany-dialog"),
|
|
817
817
|
items: e,
|
|
818
|
-
renderItem: (i) => /* @__PURE__ */
|
|
818
|
+
renderItem: (i) => /* @__PURE__ */ g("li", { "data-dialog": i.connection, children: /* @__PURE__ */ g(It, { ...i }) }, i.connection),
|
|
819
819
|
...o,
|
|
820
820
|
ref: n
|
|
821
821
|
}
|
|
822
822
|
) : null
|
|
823
823
|
);
|
|
824
|
-
const
|
|
825
|
-
${
|
|
824
|
+
const At = y(ve)`
|
|
825
|
+
${Oe}
|
|
826
826
|
a {
|
|
827
827
|
min-width: 150px;
|
|
828
828
|
max-width: 400px;
|
|
@@ -830,7 +830,7 @@ const It = p($e)`
|
|
|
830
830
|
white-space: normal;
|
|
831
831
|
${(t) => {
|
|
832
832
|
var e, o;
|
|
833
|
-
return ((e = t.theme.colors) == null ? void 0 : e.primary) &&
|
|
833
|
+
return ((e = t.theme.colors) == null ? void 0 : e.primary) && Le({
|
|
834
834
|
primaryColor: (o = t.theme.colors) == null ? void 0 : o.primary,
|
|
835
835
|
secondaryColor: "#FFFFFF",
|
|
836
836
|
theme: t.theme
|
|
@@ -845,8 +845,8 @@ const It = p($e)`
|
|
|
845
845
|
}} 0 0;
|
|
846
846
|
}
|
|
847
847
|
`;
|
|
848
|
-
|
|
849
|
-
${
|
|
848
|
+
y(V)`
|
|
849
|
+
${W}
|
|
850
850
|
font-family: ${(t) => {
|
|
851
851
|
var e;
|
|
852
852
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
@@ -864,7 +864,7 @@ p(Z)`
|
|
|
864
864
|
}};
|
|
865
865
|
}
|
|
866
866
|
`;
|
|
867
|
-
|
|
867
|
+
y.div`
|
|
868
868
|
background: #fff;
|
|
869
869
|
border: #ccc 1px solid;
|
|
870
870
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
@@ -877,7 +877,7 @@ p.div`
|
|
|
877
877
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
878
878
|
}};
|
|
879
879
|
`;
|
|
880
|
-
|
|
880
|
+
y.div`
|
|
881
881
|
padding: ${(t) => {
|
|
882
882
|
var e;
|
|
883
883
|
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
@@ -911,7 +911,7 @@ p.div`
|
|
|
911
911
|
}};
|
|
912
912
|
}
|
|
913
913
|
`;
|
|
914
|
-
|
|
914
|
+
y(ve)`
|
|
915
915
|
list-style: none;
|
|
916
916
|
padding: 0;
|
|
917
917
|
margin: 0;
|
|
@@ -947,8 +947,8 @@ p($e)`
|
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
`;
|
|
950
|
-
|
|
951
|
-
${
|
|
950
|
+
y(V)`
|
|
951
|
+
${W}
|
|
952
952
|
font-family: ${(t) => {
|
|
953
953
|
var e;
|
|
954
954
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
@@ -956,7 +956,7 @@ p(Z)`
|
|
|
956
956
|
> div {
|
|
957
957
|
${(t) => {
|
|
958
958
|
var e;
|
|
959
|
-
return
|
|
959
|
+
return Z(t)(
|
|
960
960
|
"> h1",
|
|
961
961
|
$`
|
|
962
962
|
font-size: ${(e = t.theme.fonts) == null ? void 0 : e.normal};
|
|
@@ -995,7 +995,7 @@ const Et = (t) => $`
|
|
|
995
995
|
opacity: ${t["data-loading"] ? "1" : "0"};
|
|
996
996
|
}
|
|
997
997
|
`;
|
|
998
|
-
|
|
998
|
+
y(ne)`
|
|
999
999
|
&& {
|
|
1000
1000
|
font-size: ${(t) => {
|
|
1001
1001
|
var e;
|
|
@@ -1004,7 +1004,7 @@ p(ne)`
|
|
|
1004
1004
|
}
|
|
1005
1005
|
width: 1.2em;
|
|
1006
1006
|
`;
|
|
1007
|
-
|
|
1007
|
+
y(qe)`
|
|
1008
1008
|
font-size: ${(t) => {
|
|
1009
1009
|
var e;
|
|
1010
1010
|
return (e = t.theme.fonts) == null ? void 0 : e.medium;
|
|
@@ -1016,7 +1016,7 @@ p(je)`
|
|
|
1016
1016
|
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
1017
1017
|
}};
|
|
1018
1018
|
`;
|
|
1019
|
-
const Ot =
|
|
1019
|
+
const Ot = y($e)`
|
|
1020
1020
|
display: flex;
|
|
1021
1021
|
align-items: center;
|
|
1022
1022
|
|
|
@@ -1055,60 +1055,60 @@ const Ot = p(we)`
|
|
|
1055
1055
|
isFavorite: r,
|
|
1056
1056
|
guideTitle: c,
|
|
1057
1057
|
buttonLabel: l = "",
|
|
1058
|
-
actions: { addFavorite:
|
|
1058
|
+
actions: { addFavorite: f, removeFavorite: m }
|
|
1059
1059
|
}) => {
|
|
1060
|
-
const
|
|
1060
|
+
const u = P(() => {
|
|
1061
1061
|
m(a);
|
|
1062
|
-
}, [a, m]), b =
|
|
1063
|
-
|
|
1064
|
-
}, [a,
|
|
1065
|
-
return r ? /* @__PURE__ */
|
|
1066
|
-
|
|
1062
|
+
}, [a, m]), b = P(() => {
|
|
1063
|
+
f(a);
|
|
1064
|
+
}, [a, f]), p = `${r ? s : t}${c ? `: "${c}"` : ""}`;
|
|
1065
|
+
return r ? /* @__PURE__ */ g(
|
|
1066
|
+
ft,
|
|
1067
1067
|
{
|
|
1068
|
-
trigger: /* @__PURE__ */
|
|
1069
|
-
|
|
1068
|
+
trigger: /* @__PURE__ */ C(
|
|
1069
|
+
Se,
|
|
1070
1070
|
{
|
|
1071
1071
|
className: "humany-favorite-button",
|
|
1072
|
-
title:
|
|
1073
|
-
"aria-label":
|
|
1072
|
+
title: p,
|
|
1073
|
+
"aria-label": p,
|
|
1074
1074
|
"data-favorite": "true",
|
|
1075
1075
|
"data-has-label": l ? "true" : "false",
|
|
1076
1076
|
"data-has-symbol": "true",
|
|
1077
1077
|
children: [
|
|
1078
|
-
/* @__PURE__ */
|
|
1079
|
-
|
|
1078
|
+
/* @__PURE__ */ g(
|
|
1079
|
+
E,
|
|
1080
1080
|
{
|
|
1081
1081
|
size: 16,
|
|
1082
1082
|
symbol: { type: "Svg", content: "star-empty" }
|
|
1083
1083
|
}
|
|
1084
1084
|
),
|
|
1085
|
-
l && /* @__PURE__ */
|
|
1085
|
+
l && /* @__PURE__ */ g(se, { children: l })
|
|
1086
1086
|
]
|
|
1087
1087
|
}
|
|
1088
1088
|
),
|
|
1089
|
-
onConfirm:
|
|
1089
|
+
onConfirm: u,
|
|
1090
1090
|
cancelLabel: e,
|
|
1091
1091
|
confirmLabel: o,
|
|
1092
1092
|
header: n,
|
|
1093
1093
|
text: i
|
|
1094
1094
|
}
|
|
1095
|
-
) : /* @__PURE__ */
|
|
1096
|
-
|
|
1095
|
+
) : /* @__PURE__ */ C(
|
|
1096
|
+
Se,
|
|
1097
1097
|
{
|
|
1098
1098
|
className: "humany-favorite-button",
|
|
1099
|
-
title:
|
|
1100
|
-
"aria-label":
|
|
1099
|
+
title: p,
|
|
1100
|
+
"aria-label": p,
|
|
1101
1101
|
onClick: b,
|
|
1102
1102
|
"data-favorite": "false",
|
|
1103
1103
|
"data-has-label": l ? "true" : "false",
|
|
1104
1104
|
"data-has-symbol": "true",
|
|
1105
1105
|
children: [
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
-
l && /* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ g(E, { size: 16, symbol: { type: "Svg", content: "star-empty" } }),
|
|
1107
|
+
l && /* @__PURE__ */ g(se, { children: l })
|
|
1108
1108
|
]
|
|
1109
1109
|
}
|
|
1110
1110
|
);
|
|
1111
|
-
},
|
|
1111
|
+
}, Se = y(Ot)`
|
|
1112
1112
|
grid-area: favorite;
|
|
1113
1113
|
|
|
1114
1114
|
&:focus-visible {
|
|
@@ -1182,17 +1182,17 @@ ae(
|
|
|
1182
1182
|
negative: s,
|
|
1183
1183
|
selected: a,
|
|
1184
1184
|
...r
|
|
1185
|
-
}, c) => /* @__PURE__ */
|
|
1185
|
+
}, c) => /* @__PURE__ */ C(
|
|
1186
1186
|
jt,
|
|
1187
1187
|
{
|
|
1188
|
-
className:
|
|
1188
|
+
className: F(o, "humany-feedback"),
|
|
1189
1189
|
"data-direction": e,
|
|
1190
|
-
...
|
|
1190
|
+
...je(r),
|
|
1191
1191
|
ref: c,
|
|
1192
1192
|
children: [
|
|
1193
|
-
!!n && /* @__PURE__ */
|
|
1194
|
-
/* @__PURE__ */
|
|
1195
|
-
|
|
1193
|
+
!!n && /* @__PURE__ */ g(qt, { children: n }),
|
|
1194
|
+
/* @__PURE__ */ C(
|
|
1195
|
+
Re,
|
|
1196
1196
|
{
|
|
1197
1197
|
className: "humany-feedback-button",
|
|
1198
1198
|
disabled: !!a,
|
|
@@ -1200,13 +1200,13 @@ ae(
|
|
|
1200
1200
|
"data-direction": e,
|
|
1201
1201
|
onClick: () => t("positive"),
|
|
1202
1202
|
children: [
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
/* @__PURE__ */
|
|
1203
|
+
/* @__PURE__ */ g(ne, { faIcon: "smile-o" }),
|
|
1204
|
+
/* @__PURE__ */ g("span", { children: i })
|
|
1205
1205
|
]
|
|
1206
1206
|
}
|
|
1207
1207
|
),
|
|
1208
|
-
/* @__PURE__ */
|
|
1209
|
-
|
|
1208
|
+
/* @__PURE__ */ C(
|
|
1209
|
+
Re,
|
|
1210
1210
|
{
|
|
1211
1211
|
className: "humany-feedback-button",
|
|
1212
1212
|
disabled: !!a,
|
|
@@ -1214,8 +1214,8 @@ ae(
|
|
|
1214
1214
|
"data-direction": e,
|
|
1215
1215
|
onClick: () => t("negative"),
|
|
1216
1216
|
children: [
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
/* @__PURE__ */
|
|
1217
|
+
/* @__PURE__ */ g(ne, { faIcon: "frown-o" }),
|
|
1218
|
+
/* @__PURE__ */ g("span", { children: s })
|
|
1219
1219
|
]
|
|
1220
1220
|
}
|
|
1221
1221
|
)
|
|
@@ -1223,7 +1223,7 @@ ae(
|
|
|
1223
1223
|
}
|
|
1224
1224
|
)
|
|
1225
1225
|
);
|
|
1226
|
-
const qt =
|
|
1226
|
+
const qt = y(se)`
|
|
1227
1227
|
font-weight: normal;
|
|
1228
1228
|
margin: 0 0 ${(t) => {
|
|
1229
1229
|
var e;
|
|
@@ -1234,7 +1234,7 @@ const qt = p(se)`
|
|
|
1234
1234
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
1235
1235
|
}};
|
|
1236
1236
|
display: block;
|
|
1237
|
-
`,
|
|
1237
|
+
`, Re = y($e)`
|
|
1238
1238
|
display: inline-block;
|
|
1239
1239
|
font-size: ${(t) => {
|
|
1240
1240
|
var e;
|
|
@@ -1262,7 +1262,7 @@ const qt = p(se)`
|
|
|
1262
1262
|
|
|
1263
1263
|
${(t) => {
|
|
1264
1264
|
var e, o;
|
|
1265
|
-
return ((e = t.theme.colors) == null ? void 0 : e.primary) &&
|
|
1265
|
+
return ((e = t.theme.colors) == null ? void 0 : e.primary) && Le({
|
|
1266
1266
|
active: t["data-selected"],
|
|
1267
1267
|
primaryColor: (o = t.theme.colors) == null ? void 0 : o.primary,
|
|
1268
1268
|
secondaryColor: "#FFFFFF",
|
|
@@ -1276,7 +1276,7 @@ const qt = p(se)`
|
|
|
1276
1276
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
1277
1277
|
}} 0 0;
|
|
1278
1278
|
}
|
|
1279
|
-
`, jt =
|
|
1279
|
+
`, jt = y.div`
|
|
1280
1280
|
${(t) => {
|
|
1281
1281
|
var e;
|
|
1282
1282
|
return t["data-direction"] === "vertical" && $`
|
|
@@ -1289,20 +1289,20 @@ const qt = p(se)`
|
|
|
1289
1289
|
`;
|
|
1290
1290
|
}}
|
|
1291
1291
|
`, Ft = () => {
|
|
1292
|
-
const t = re(), [e, o] =
|
|
1293
|
-
|
|
1292
|
+
const t = re(), [e, o] = j([]), n = t.get("favorites");
|
|
1293
|
+
A(() => {
|
|
1294
1294
|
if (n) {
|
|
1295
1295
|
o(n.get());
|
|
1296
1296
|
const { events: c } = t.get("$widget");
|
|
1297
1297
|
return c.subscribe(
|
|
1298
1298
|
"widget:favorites-updated",
|
|
1299
|
-
(
|
|
1299
|
+
(f, { updated: m }) => {
|
|
1300
1300
|
o([...m]);
|
|
1301
1301
|
}
|
|
1302
1302
|
);
|
|
1303
1303
|
}
|
|
1304
1304
|
}, []);
|
|
1305
|
-
const i = (c) => n ? n.add(c) : Promise.resolve([]), s = (c) => n ? n.remove(c) : Promise.resolve([]), a = () => n ? n.clear() : Promise.resolve([]), r =
|
|
1305
|
+
const i = (c) => n ? n.add(c) : Promise.resolve([]), s = (c) => n ? n.remove(c) : Promise.resolve([]), a = () => n ? n.clear() : Promise.resolve([]), r = P(
|
|
1306
1306
|
(c) => e.indexOf(c) > -1 ? s(c) : i(c),
|
|
1307
1307
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1308
1308
|
[e]
|
|
@@ -1321,7 +1321,7 @@ const qt = p(se)`
|
|
|
1321
1321
|
)
|
|
1322
1322
|
];
|
|
1323
1323
|
}, Bt = ({
|
|
1324
|
-
format: t =
|
|
1324
|
+
format: t = Ye.YYYY_MM_DD_HH_MM,
|
|
1325
1325
|
className: e = "",
|
|
1326
1326
|
byLabel: o = "",
|
|
1327
1327
|
modifiedLabel: n = "",
|
|
@@ -1331,49 +1331,49 @@ const qt = p(se)`
|
|
|
1331
1331
|
showModified: r = !1,
|
|
1332
1332
|
showPublished: c = !1,
|
|
1333
1333
|
modified: l,
|
|
1334
|
-
published:
|
|
1334
|
+
published: f
|
|
1335
1335
|
}) => {
|
|
1336
|
-
const m = c &&
|
|
1337
|
-
return !m && !
|
|
1338
|
-
m && /* @__PURE__ */
|
|
1336
|
+
const m = c && f ? /* @__PURE__ */ g(Te, { format: t, timestamp: f }) : null, u = r && l ? /* @__PURE__ */ g(Te, { format: t, timestamp: l }) : null;
|
|
1337
|
+
return !m && !u ? null : /* @__PURE__ */ C(fe, { className: F(e, "humany-metadata"), children: [
|
|
1338
|
+
m && /* @__PURE__ */ C(fe, { className: "humany-published", children: [
|
|
1339
1339
|
i,
|
|
1340
1340
|
m,
|
|
1341
1341
|
o && a && ` ${o.replace("{{editor}}", a)}`
|
|
1342
1342
|
] }),
|
|
1343
|
-
|
|
1343
|
+
u && /* @__PURE__ */ C(fe, { className: "humany-modified", children: [
|
|
1344
1344
|
m && ", ",
|
|
1345
1345
|
n,
|
|
1346
|
-
|
|
1346
|
+
u,
|
|
1347
1347
|
o && s && ` ${o.replace("{{editor}}", s)}`
|
|
1348
1348
|
] })
|
|
1349
1349
|
] });
|
|
1350
|
-
},
|
|
1350
|
+
}, Te = y(Ue)`
|
|
1351
1351
|
&:not(:first-child) {
|
|
1352
1352
|
margin-left: 4px;
|
|
1353
1353
|
}
|
|
1354
1354
|
&:not(:last-child) {
|
|
1355
1355
|
margin-right: 4px;
|
|
1356
1356
|
}
|
|
1357
|
-
`,
|
|
1357
|
+
`, fe = y(qe)`
|
|
1358
1358
|
font-style: italic;
|
|
1359
|
-
`, Dt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */
|
|
1359
|
+
`, Dt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ g(
|
|
1360
1360
|
Ht,
|
|
1361
1361
|
{
|
|
1362
1362
|
className: "humany-guide-list-tags",
|
|
1363
1363
|
items: t,
|
|
1364
|
-
renderItem: ({ id: e, symbol: o, title: n }) => o && /* @__PURE__ */
|
|
1364
|
+
renderItem: ({ id: e, symbol: o, title: n }) => o && /* @__PURE__ */ g("li", { "data-tag": e, children: /* @__PURE__ */ g(Yt, { size: 18, symbol: o, title: n }) }, e)
|
|
1365
1365
|
}
|
|
1366
1366
|
) : null;
|
|
1367
1367
|
ae(({ title: t, id: e, route: o, symbolSize: n, collapseUri: i, children: s }, a) => {
|
|
1368
|
-
const { params: r } =
|
|
1369
|
-
return /* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1371
|
-
|
|
1368
|
+
const { params: r } = we();
|
|
1369
|
+
return /* @__PURE__ */ C(Gt, { ref: a, "data-guide": e, children: [
|
|
1370
|
+
/* @__PURE__ */ g(
|
|
1371
|
+
ue,
|
|
1372
1372
|
{
|
|
1373
1373
|
title: t,
|
|
1374
1374
|
"aria-label": t,
|
|
1375
1375
|
routeName: o,
|
|
1376
|
-
params:
|
|
1376
|
+
params: Q({
|
|
1377
1377
|
...r,
|
|
1378
1378
|
uriName: i || void 0,
|
|
1379
1379
|
id: void 0,
|
|
@@ -1381,8 +1381,8 @@ ae(({ title: t, id: e, route: o, symbolSize: n, collapseUri: i, children: s }, a
|
|
|
1381
1381
|
accordion: void 0
|
|
1382
1382
|
}),
|
|
1383
1383
|
text: t,
|
|
1384
|
-
children: /* @__PURE__ */
|
|
1385
|
-
|
|
1384
|
+
children: /* @__PURE__ */ g(
|
|
1385
|
+
E,
|
|
1386
1386
|
{
|
|
1387
1387
|
size: n,
|
|
1388
1388
|
symbol: { type: "Svg", content: "caret-up" }
|
|
@@ -1393,7 +1393,7 @@ ae(({ title: t, id: e, route: o, symbolSize: n, collapseUri: i, children: s }, a
|
|
|
1393
1393
|
s
|
|
1394
1394
|
] });
|
|
1395
1395
|
});
|
|
1396
|
-
const Gt =
|
|
1396
|
+
const Gt = y.li`
|
|
1397
1397
|
> a {
|
|
1398
1398
|
grid-column: 1/-1;
|
|
1399
1399
|
font-weight: bold;
|
|
@@ -1420,48 +1420,48 @@ ae(
|
|
|
1420
1420
|
localPaging: c = !1,
|
|
1421
1421
|
onItemClick: l = () => {
|
|
1422
1422
|
},
|
|
1423
|
-
dispatch:
|
|
1423
|
+
dispatch: f = () => {
|
|
1424
1424
|
},
|
|
1425
1425
|
metadata: m = {},
|
|
1426
|
-
pageLabel:
|
|
1426
|
+
pageLabel: u,
|
|
1427
1427
|
className: b,
|
|
1428
|
-
children:
|
|
1428
|
+
children: p,
|
|
1429
1429
|
items: d,
|
|
1430
|
-
renderItem:
|
|
1430
|
+
renderItem: h,
|
|
1431
1431
|
addFavoriteTooltip: v,
|
|
1432
|
-
removeFavoriteCancelLabel:
|
|
1433
|
-
removeFavoriteConfirmLabel:
|
|
1434
|
-
removeFavoriteHeader:
|
|
1435
|
-
removeFavoriteLabel:
|
|
1436
|
-
removeFavoriteTooltip:
|
|
1437
|
-
searchResultsEmptyLabel:
|
|
1438
|
-
...
|
|
1439
|
-
},
|
|
1440
|
-
const
|
|
1441
|
-
guide:
|
|
1442
|
-
page:
|
|
1443
|
-
} = o, [
|
|
1444
|
-
$t(
|
|
1445
|
-
const ce = (
|
|
1446
|
-
const { id:
|
|
1447
|
-
return /* @__PURE__ */
|
|
1432
|
+
removeFavoriteCancelLabel: O,
|
|
1433
|
+
removeFavoriteConfirmLabel: z,
|
|
1434
|
+
removeFavoriteHeader: L,
|
|
1435
|
+
removeFavoriteLabel: B,
|
|
1436
|
+
removeFavoriteTooltip: k,
|
|
1437
|
+
searchResultsEmptyLabel: J,
|
|
1438
|
+
...M
|
|
1439
|
+
}, D) => {
|
|
1440
|
+
const X = Mt(), w = Pe(), N = gt(d), { guide: _e = "guide", page: Qe = "index" } = e, {
|
|
1441
|
+
guide: Ve = ({ id: x }) => Q({ guide: x }),
|
|
1442
|
+
page: xe = () => Q()
|
|
1443
|
+
} = o, [We, Ze] = Ft();
|
|
1444
|
+
$t(D, () => w.current);
|
|
1445
|
+
const ce = (x) => {
|
|
1446
|
+
const { id: T, title: S, tags: G, published: ee, modified: H, publishedBy: te, modifiedBy: le } = x;
|
|
1447
|
+
return /* @__PURE__ */ C(
|
|
1448
1448
|
"li",
|
|
1449
1449
|
{
|
|
1450
|
-
"data-guide":
|
|
1451
|
-
"has-metadata": (!!(m != null && m.showPublished) && !!ee || !!(m != null && m.showModified) && !!
|
|
1450
|
+
"data-guide": T,
|
|
1451
|
+
"has-metadata": (!!(m != null && m.showPublished) && !!ee || !!(m != null && m.showModified) && !!H).toString(),
|
|
1452
1452
|
children: [
|
|
1453
|
-
/* @__PURE__ */
|
|
1454
|
-
|
|
1453
|
+
/* @__PURE__ */ g(
|
|
1454
|
+
ue,
|
|
1455
1455
|
{
|
|
1456
1456
|
className: "humany-guide-link",
|
|
1457
|
-
title:
|
|
1458
|
-
"aria-label":
|
|
1459
|
-
routeName:
|
|
1460
|
-
onClick: (
|
|
1461
|
-
params:
|
|
1462
|
-
text:
|
|
1463
|
-
children: /* @__PURE__ */
|
|
1464
|
-
|
|
1457
|
+
title: S,
|
|
1458
|
+
"aria-label": S,
|
|
1459
|
+
routeName: _e,
|
|
1460
|
+
onClick: (tt) => l(tt, x),
|
|
1461
|
+
params: Ve(x),
|
|
1462
|
+
text: S,
|
|
1463
|
+
children: /* @__PURE__ */ g(
|
|
1464
|
+
E,
|
|
1465
1465
|
{
|
|
1466
1466
|
size: n,
|
|
1467
1467
|
symbol: {
|
|
@@ -1472,28 +1472,28 @@ ae(
|
|
|
1472
1472
|
)
|
|
1473
1473
|
}
|
|
1474
1474
|
),
|
|
1475
|
-
r && /* @__PURE__ */
|
|
1475
|
+
r && /* @__PURE__ */ g(
|
|
1476
1476
|
Lt,
|
|
1477
1477
|
{
|
|
1478
|
-
guideTitle:
|
|
1478
|
+
guideTitle: S,
|
|
1479
1479
|
addFavoriteTooltip: v,
|
|
1480
|
-
removeFavoriteCancelLabel:
|
|
1481
|
-
removeFavoriteConfirmLabel:
|
|
1482
|
-
removeFavoriteHeader:
|
|
1483
|
-
removeFavoriteLabel:
|
|
1484
|
-
removeFavoriteTooltip:
|
|
1485
|
-
isFavorite:
|
|
1486
|
-
actions:
|
|
1487
|
-
id:
|
|
1480
|
+
removeFavoriteCancelLabel: O,
|
|
1481
|
+
removeFavoriteConfirmLabel: z,
|
|
1482
|
+
removeFavoriteHeader: L,
|
|
1483
|
+
removeFavoriteLabel: B,
|
|
1484
|
+
removeFavoriteTooltip: k,
|
|
1485
|
+
isFavorite: We.indexOf(T) > -1,
|
|
1486
|
+
actions: Ze,
|
|
1487
|
+
id: T
|
|
1488
1488
|
}
|
|
1489
1489
|
),
|
|
1490
|
-
a && /* @__PURE__ */
|
|
1491
|
-
/* @__PURE__ */
|
|
1490
|
+
a && /* @__PURE__ */ g(Dt, { tags: G }),
|
|
1491
|
+
/* @__PURE__ */ g(
|
|
1492
1492
|
Ut,
|
|
1493
1493
|
{
|
|
1494
1494
|
...m,
|
|
1495
1495
|
indent: t ? void 0 : n,
|
|
1496
|
-
modified:
|
|
1496
|
+
modified: H,
|
|
1497
1497
|
published: ee,
|
|
1498
1498
|
publishedBy: te,
|
|
1499
1499
|
modifiedBy: le
|
|
@@ -1501,41 +1501,41 @@ ae(
|
|
|
1501
1501
|
)
|
|
1502
1502
|
]
|
|
1503
1503
|
},
|
|
1504
|
-
|
|
1504
|
+
T
|
|
1505
1505
|
);
|
|
1506
|
-
},
|
|
1507
|
-
(
|
|
1508
|
-
[
|
|
1509
|
-
),
|
|
1510
|
-
(
|
|
1511
|
-
c && (
|
|
1506
|
+
}, Je = P(
|
|
1507
|
+
(x, T, S) => h ? h(x, T, S, ce) : ce(x),
|
|
1508
|
+
[h, ce]
|
|
1509
|
+
), Xe = P(
|
|
1510
|
+
(x) => {
|
|
1511
|
+
c && (x.preventDefault(), f("page", xe()));
|
|
1512
1512
|
},
|
|
1513
|
-
[
|
|
1513
|
+
[f, c]
|
|
1514
1514
|
);
|
|
1515
|
-
|
|
1516
|
-
if (
|
|
1517
|
-
const
|
|
1515
|
+
A(() => {
|
|
1516
|
+
if (N && N.length < d.length && w.current) {
|
|
1517
|
+
const x = w.current.querySelectorAll(
|
|
1518
1518
|
".humany-guide-list > ul > li"
|
|
1519
|
-
),
|
|
1520
|
-
if (
|
|
1521
|
-
const
|
|
1522
|
-
if (
|
|
1523
|
-
const
|
|
1519
|
+
), T = x[N.length];
|
|
1520
|
+
if (x.length === d.length && N.length) {
|
|
1521
|
+
const S = x[N.length];
|
|
1522
|
+
if (S) {
|
|
1523
|
+
const G = S.querySelector(
|
|
1524
1524
|
".humany-guide-link"
|
|
1525
1525
|
);
|
|
1526
|
-
|
|
1526
|
+
G && G.focus();
|
|
1527
1527
|
}
|
|
1528
1528
|
} else
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
if (
|
|
1529
|
+
T && new MutationObserver((G, ee) => {
|
|
1530
|
+
G.forEach((H) => {
|
|
1531
|
+
if (H.addedNodes) {
|
|
1532
1532
|
const te = Array.from(
|
|
1533
|
-
|
|
1533
|
+
H.addedNodes
|
|
1534
1534
|
).find((le) => le.tagName === "A");
|
|
1535
|
-
te && xt(
|
|
1535
|
+
te && xt(w.current, document.activeElement) && (X && te.focus(), ee.disconnect());
|
|
1536
1536
|
}
|
|
1537
1537
|
});
|
|
1538
|
-
}).observe(
|
|
1538
|
+
}).observe(T, {
|
|
1539
1539
|
attributes: !1,
|
|
1540
1540
|
characterData: !1,
|
|
1541
1541
|
childList: !0,
|
|
@@ -1545,34 +1545,34 @@ ae(
|
|
|
1545
1545
|
});
|
|
1546
1546
|
}
|
|
1547
1547
|
});
|
|
1548
|
-
const
|
|
1549
|
-
(
|
|
1548
|
+
const et = !!Object.keys(m).filter(
|
|
1549
|
+
(x) => typeof m[x] < "u"
|
|
1550
1550
|
).length;
|
|
1551
|
-
return /* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ C(
|
|
1552
1552
|
Pt,
|
|
1553
1553
|
{
|
|
1554
|
-
className:
|
|
1554
|
+
className: F(b, "humany-guide-list"),
|
|
1555
1555
|
"data-item-count": d.length,
|
|
1556
1556
|
items: d,
|
|
1557
|
-
renderItem:
|
|
1558
|
-
isTabbing:
|
|
1557
|
+
renderItem: Je,
|
|
1558
|
+
isTabbing: X,
|
|
1559
1559
|
expandable: t ? "true" : "false",
|
|
1560
|
-
"grid-items": a || r ||
|
|
1561
|
-
...
|
|
1562
|
-
ref:
|
|
1560
|
+
"grid-items": a || r || et ? "true" : "false",
|
|
1561
|
+
...je(M),
|
|
1562
|
+
ref: w,
|
|
1563
1563
|
children: [
|
|
1564
|
-
|
|
1565
|
-
|
|
1564
|
+
u ? /* @__PURE__ */ g(
|
|
1565
|
+
ue,
|
|
1566
1566
|
{
|
|
1567
|
-
text:
|
|
1568
|
-
title:
|
|
1569
|
-
"aria-label":
|
|
1570
|
-
routeName:
|
|
1567
|
+
text: u,
|
|
1568
|
+
title: u,
|
|
1569
|
+
"aria-label": u,
|
|
1570
|
+
routeName: Qe,
|
|
1571
1571
|
role: i,
|
|
1572
|
-
params:
|
|
1573
|
-
onClick:
|
|
1574
|
-
children: /* @__PURE__ */
|
|
1575
|
-
|
|
1572
|
+
params: xe(),
|
|
1573
|
+
onClick: Xe,
|
|
1574
|
+
children: /* @__PURE__ */ g(
|
|
1575
|
+
E,
|
|
1576
1576
|
{
|
|
1577
1577
|
size: n,
|
|
1578
1578
|
symbol: { type: "Svg", content: `caret-${s}` }
|
|
@@ -1580,15 +1580,15 @@ ae(
|
|
|
1580
1580
|
)
|
|
1581
1581
|
}
|
|
1582
1582
|
) : null,
|
|
1583
|
-
|
|
1584
|
-
!
|
|
1583
|
+
p,
|
|
1584
|
+
!M["data-loading"] && d.length === 0 && /* @__PURE__ */ g("p", { children: J })
|
|
1585
1585
|
]
|
|
1586
1586
|
}
|
|
1587
1587
|
);
|
|
1588
1588
|
}
|
|
1589
1589
|
);
|
|
1590
|
-
const Pt =
|
|
1591
|
-
${
|
|
1590
|
+
const Pt = y(V)`
|
|
1591
|
+
${W}
|
|
1592
1592
|
padding: ${(t) => {
|
|
1593
1593
|
var e;
|
|
1594
1594
|
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
@@ -1600,7 +1600,7 @@ const Pt = p(Z)`
|
|
|
1600
1600
|
text-decoration: none;
|
|
1601
1601
|
|
|
1602
1602
|
> div {
|
|
1603
|
-
${(t) =>
|
|
1603
|
+
${(t) => Z(t)(
|
|
1604
1604
|
"> h1",
|
|
1605
1605
|
$`
|
|
1606
1606
|
white-space: pre-wrap;
|
|
@@ -1691,7 +1691,7 @@ const Pt = p(Z)`
|
|
|
1691
1691
|
}}
|
|
1692
1692
|
|
|
1693
1693
|
&:focus-visible {
|
|
1694
|
-
${
|
|
1694
|
+
${_}
|
|
1695
1695
|
text-decoration: underline;
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
@@ -1734,12 +1734,12 @@ const Pt = p(Z)`
|
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
1736
|
&:focus-visible {
|
|
1737
|
-
${
|
|
1737
|
+
${_}
|
|
1738
1738
|
text-decoration: underline;
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
`, Ht =
|
|
1742
|
-
${
|
|
1741
|
+
`, Ht = y(ve)`
|
|
1742
|
+
${Oe}
|
|
1743
1743
|
display: flex;
|
|
1744
1744
|
margin: 0 0 0 auto;
|
|
1745
1745
|
grid-area: tags;
|
|
@@ -1754,7 +1754,7 @@ const Pt = p(Z)`
|
|
|
1754
1754
|
align-items: center;
|
|
1755
1755
|
justify-content: space-between;
|
|
1756
1756
|
}
|
|
1757
|
-
`, Yt =
|
|
1757
|
+
`, Yt = y(E)`
|
|
1758
1758
|
display: block;
|
|
1759
1759
|
color: ${(t) => {
|
|
1760
1760
|
var e;
|
|
@@ -1771,7 +1771,7 @@ const Pt = p(Z)`
|
|
|
1771
1771
|
font-size: ${t.size}px;
|
|
1772
1772
|
`;
|
|
1773
1773
|
}}
|
|
1774
|
-
`, Ut =
|
|
1774
|
+
`, Ut = y(Bt)`
|
|
1775
1775
|
grid-area: metadata;
|
|
1776
1776
|
text-overflow: ellipsis;
|
|
1777
1777
|
overflow: hidden;
|
|
@@ -1783,11 +1783,11 @@ const Pt = p(Z)`
|
|
|
1783
1783
|
var e;
|
|
1784
1784
|
return typeof t.indent == "number" && `text-indent: calc(${(e = t.theme.sizes) == null ? void 0 : e.small} * 2 + ${t.indent}px);`;
|
|
1785
1785
|
}}
|
|
1786
|
-
`,
|
|
1786
|
+
`, Kt = Fe`
|
|
1787
1787
|
100% {
|
|
1788
1788
|
transform: rotate(360deg);
|
|
1789
1789
|
}
|
|
1790
|
-
`,
|
|
1790
|
+
`, _t = Fe`
|
|
1791
1791
|
0% {
|
|
1792
1792
|
stroke-dasharray: 1, 200;
|
|
1793
1793
|
stroke-dashoffset: 0;
|
|
@@ -1801,8 +1801,8 @@ const Pt = p(Z)`
|
|
|
1801
1801
|
stroke-dashoffset: -124px;
|
|
1802
1802
|
}
|
|
1803
1803
|
`;
|
|
1804
|
-
|
|
1805
|
-
animation: ${
|
|
1804
|
+
y.svg`
|
|
1805
|
+
animation: ${Kt} 2s linear infinite;
|
|
1806
1806
|
height: 100%;
|
|
1807
1807
|
transform-origin: center center;
|
|
1808
1808
|
width: 100%;
|
|
@@ -1814,7 +1814,7 @@ p.svg`
|
|
|
1814
1814
|
margin: auto;
|
|
1815
1815
|
transition: 200ms ease-out opacity;
|
|
1816
1816
|
`;
|
|
1817
|
-
|
|
1817
|
+
y.div`
|
|
1818
1818
|
position: absolute;
|
|
1819
1819
|
top: 0;
|
|
1820
1820
|
bottom: 0;
|
|
@@ -1834,7 +1834,7 @@ p.div`
|
|
|
1834
1834
|
opacity: ${(t) => t["data-loading"] ? "1" : "0"};
|
|
1835
1835
|
}
|
|
1836
1836
|
`;
|
|
1837
|
-
|
|
1837
|
+
y.div`
|
|
1838
1838
|
position: relative;
|
|
1839
1839
|
margin: 0 auto;
|
|
1840
1840
|
width: 100px;
|
|
@@ -1844,10 +1844,10 @@ p.div`
|
|
|
1844
1844
|
padding-top: 100%;
|
|
1845
1845
|
}
|
|
1846
1846
|
`;
|
|
1847
|
-
|
|
1847
|
+
y.circle`
|
|
1848
1848
|
stroke-dasharray: 1, 200;
|
|
1849
1849
|
stroke-dashoffset: 0;
|
|
1850
|
-
animation: ${
|
|
1850
|
+
animation: ${_t} 1.5s ease-in-out infinite;
|
|
1851
1851
|
stroke-linecap: round;
|
|
1852
1852
|
stroke: ${(t) => {
|
|
1853
1853
|
var e;
|
|
@@ -1855,7 +1855,7 @@ p.circle`
|
|
|
1855
1855
|
}};
|
|
1856
1856
|
stroke-width: 2px;
|
|
1857
1857
|
`;
|
|
1858
|
-
|
|
1858
|
+
y($e)`
|
|
1859
1859
|
display: flex;
|
|
1860
1860
|
justify-content: space-between;
|
|
1861
1861
|
align-items: center;
|
|
@@ -1883,7 +1883,7 @@ p(we)`
|
|
|
1883
1883
|
white-space: nowrap;
|
|
1884
1884
|
}
|
|
1885
1885
|
&:focus-visible {
|
|
1886
|
-
${
|
|
1886
|
+
${_}
|
|
1887
1887
|
span {
|
|
1888
1888
|
color: ${(t) => {
|
|
1889
1889
|
var e;
|
|
@@ -1893,9 +1893,9 @@ p(we)`
|
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
1895
|
`;
|
|
1896
|
-
|
|
1896
|
+
y(V)`
|
|
1897
1897
|
${Et}
|
|
1898
|
-
${
|
|
1898
|
+
${W}
|
|
1899
1899
|
overflow: hidden;
|
|
1900
1900
|
justify-content: flex-start;
|
|
1901
1901
|
padding: ${(t) => {
|
|
@@ -1904,7 +1904,7 @@ p(Z)`
|
|
|
1904
1904
|
}};
|
|
1905
1905
|
${(t) => !t["data-show-header"] && $`
|
|
1906
1906
|
> div {
|
|
1907
|
-
${
|
|
1907
|
+
${Z(t)(
|
|
1908
1908
|
"h1",
|
|
1909
1909
|
$`
|
|
1910
1910
|
display: none;
|
|
@@ -1919,15 +1919,15 @@ p(Z)`
|
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
`;
|
|
1922
|
-
|
|
1923
|
-
${
|
|
1922
|
+
y(Be)`
|
|
1923
|
+
${De}
|
|
1924
1924
|
font-weight: 300;
|
|
1925
1925
|
|
|
1926
1926
|
p {
|
|
1927
1927
|
white-space: normal;
|
|
1928
1928
|
}
|
|
1929
1929
|
`;
|
|
1930
|
-
|
|
1930
|
+
y.li`
|
|
1931
1931
|
.humany-paragraph {
|
|
1932
1932
|
display: none;
|
|
1933
1933
|
&:not(:only-child) {
|
|
@@ -1955,7 +1955,7 @@ p.li`
|
|
|
1955
1955
|
}};
|
|
1956
1956
|
}
|
|
1957
1957
|
`;
|
|
1958
|
-
|
|
1958
|
+
y(E)`
|
|
1959
1959
|
margin: 0 0 0 ${(t) => {
|
|
1960
1960
|
var e;
|
|
1961
1961
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
@@ -1967,17 +1967,17 @@ p(j)`
|
|
|
1967
1967
|
}};
|
|
1968
1968
|
}
|
|
1969
1969
|
`;
|
|
1970
|
-
|
|
1970
|
+
y(Ue)`
|
|
1971
1971
|
font-size: ${(t) => {
|
|
1972
1972
|
var e;
|
|
1973
1973
|
return (e = t.theme.fonts) == null ? void 0 : e.small;
|
|
1974
1974
|
}};
|
|
1975
1975
|
font-weight: 300;
|
|
1976
1976
|
`;
|
|
1977
|
-
|
|
1977
|
+
y(Be)`
|
|
1978
1978
|
${(t) => {
|
|
1979
1979
|
var e;
|
|
1980
|
-
return
|
|
1980
|
+
return Z(t)(
|
|
1981
1981
|
"h1",
|
|
1982
1982
|
$`
|
|
1983
1983
|
font-weight: normal;
|
|
@@ -1986,96 +1986,96 @@ p(De)`
|
|
|
1986
1986
|
);
|
|
1987
1987
|
}}
|
|
1988
1988
|
`;
|
|
1989
|
-
const Qt =
|
|
1990
|
-
${
|
|
1989
|
+
const Qt = y(ut)`
|
|
1990
|
+
${De}
|
|
1991
1991
|
font-weight: 300;
|
|
1992
1992
|
line-height: 1.5em;
|
|
1993
1993
|
button:focus-visible {
|
|
1994
|
-
${
|
|
1994
|
+
${_};
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
1997
|
a:focus-visible {
|
|
1998
|
-
${
|
|
1998
|
+
${yt};
|
|
1999
1999
|
}
|
|
2000
2000
|
`, Vt = (t) => {
|
|
2001
2001
|
const e = Ct(t.clientName), {
|
|
2002
2002
|
params: { contactCategory: o, guideCategory: n, phrase: i }
|
|
2003
|
-
} =
|
|
2003
|
+
} = we();
|
|
2004
2004
|
if (typeof e > "u")
|
|
2005
2005
|
return null;
|
|
2006
2006
|
if (e === null)
|
|
2007
|
-
return process.env.NODE_ENV !== "production" ? /* @__PURE__ */
|
|
2007
|
+
return process.env.NODE_ENV !== "production" ? /* @__PURE__ */ g(
|
|
2008
2008
|
Jt,
|
|
2009
2009
|
{
|
|
2010
2010
|
title: `client-name: ${t.clientName}, id: ${t.id}`,
|
|
2011
2011
|
className: "humany-non-resolved-contact-method",
|
|
2012
|
-
children: /* @__PURE__ */
|
|
2012
|
+
children: /* @__PURE__ */ g(pt, { variant: "h5", children: "Non resolved Contact Method type" })
|
|
2013
2013
|
}
|
|
2014
2014
|
) : null;
|
|
2015
2015
|
const s = (a = {}) => {
|
|
2016
2016
|
const r = { ...t, ...a }, {
|
|
2017
2017
|
id: c,
|
|
2018
2018
|
title: l,
|
|
2019
|
-
clientName:
|
|
2019
|
+
clientName: f,
|
|
2020
2020
|
symbol: m,
|
|
2021
|
-
inline:
|
|
2021
|
+
inline: u,
|
|
2022
2022
|
onClick: b = () => {
|
|
2023
2023
|
},
|
|
2024
|
-
description:
|
|
2024
|
+
description: p,
|
|
2025
2025
|
htmlParseInstruction: d,
|
|
2026
|
-
className:
|
|
2026
|
+
className: h,
|
|
2027
2027
|
disabled: v,
|
|
2028
|
-
guideId:
|
|
2029
|
-
dispatch:
|
|
2028
|
+
guideId: O,
|
|
2029
|
+
dispatch: z = () => {
|
|
2030
2030
|
},
|
|
2031
|
-
expanded:
|
|
2032
|
-
} = r,
|
|
2033
|
-
onKeyDown: (
|
|
2034
|
-
|
|
2031
|
+
expanded: L
|
|
2032
|
+
} = r, B = u ? {
|
|
2033
|
+
onKeyDown: (k) => {
|
|
2034
|
+
k.key && k.key === "Enter" && (b(k, r), k.defaultPrevented || !L && z("expand", c));
|
|
2035
2035
|
},
|
|
2036
|
-
onClick: (
|
|
2037
|
-
b(
|
|
2036
|
+
onClick: (k) => {
|
|
2037
|
+
b(k, r), k.defaultPrevented || !L && z("expand", c);
|
|
2038
2038
|
}
|
|
2039
2039
|
} : {
|
|
2040
|
-
onClick: (
|
|
2040
|
+
onClick: (k) => b(k, r),
|
|
2041
2041
|
routeName: "contact-method",
|
|
2042
|
-
params:
|
|
2042
|
+
params: Q({
|
|
2043
2043
|
contactCategory: o,
|
|
2044
|
-
guideId:
|
|
2044
|
+
guideId: O,
|
|
2045
2045
|
guideCategory: n,
|
|
2046
2046
|
phrase: i,
|
|
2047
2047
|
contactMethod: c,
|
|
2048
|
-
uriName:
|
|
2048
|
+
uriName: ye(l)
|
|
2049
2049
|
})
|
|
2050
2050
|
};
|
|
2051
|
-
return /* @__PURE__ */
|
|
2051
|
+
return /* @__PURE__ */ C(
|
|
2052
2052
|
Zt,
|
|
2053
2053
|
{
|
|
2054
2054
|
title: l,
|
|
2055
2055
|
"aria-label": l,
|
|
2056
|
-
className:
|
|
2056
|
+
className: h,
|
|
2057
2057
|
disabled: v,
|
|
2058
|
-
description:
|
|
2059
|
-
"data-client-name":
|
|
2058
|
+
description: p,
|
|
2059
|
+
"data-client-name": f,
|
|
2060
2060
|
...a,
|
|
2061
|
-
...
|
|
2061
|
+
...B,
|
|
2062
2062
|
children: [
|
|
2063
|
-
m && /* @__PURE__ */
|
|
2064
|
-
|
|
2065
|
-
/* @__PURE__ */
|
|
2066
|
-
/* @__PURE__ */
|
|
2063
|
+
m && /* @__PURE__ */ g(E, { symbol: m }),
|
|
2064
|
+
p ? /* @__PURE__ */ C("div", { className: "humany-contact-link-rich-content", children: [
|
|
2065
|
+
/* @__PURE__ */ g(Ie, { children: l }),
|
|
2066
|
+
/* @__PURE__ */ g(
|
|
2067
2067
|
Qt,
|
|
2068
2068
|
{
|
|
2069
|
-
html:
|
|
2069
|
+
html: p,
|
|
2070
2070
|
htmlParseInstruction: d
|
|
2071
2071
|
}
|
|
2072
2072
|
)
|
|
2073
|
-
] }) : /* @__PURE__ */
|
|
2073
|
+
] }) : /* @__PURE__ */ g(Ie, { children: l })
|
|
2074
2074
|
]
|
|
2075
2075
|
}
|
|
2076
2076
|
);
|
|
2077
2077
|
};
|
|
2078
|
-
return t.expanded ? /* @__PURE__ */
|
|
2078
|
+
return t.expanded ? /* @__PURE__ */ g(wt, { fallback: null, children: /* @__PURE__ */ g(e, { ...t, renderDefault: s }) }) : s();
|
|
2079
2079
|
}, Wt = (t) => {
|
|
2080
2080
|
var e, o, n, i, s, a, r, c;
|
|
2081
2081
|
return $`
|
|
@@ -2098,18 +2098,18 @@ const Qt = p(yt)`
|
|
|
2098
2098
|
color: ${(c = t.theme.colors) == null ? void 0 : c.text};
|
|
2099
2099
|
}
|
|
2100
2100
|
`;
|
|
2101
|
-
}, Ie =
|
|
2101
|
+
}, Ie = y(se)`
|
|
2102
2102
|
line-height: ${(t) => {
|
|
2103
2103
|
var e;
|
|
2104
2104
|
return (e = t.theme.fonts) == null ? void 0 : e.large;
|
|
2105
2105
|
}};
|
|
2106
|
-
`, Zt =
|
|
2106
|
+
`, Zt = y(Ee)`
|
|
2107
2107
|
${(t) => Wt(t)}
|
|
2108
2108
|
|
|
2109
2109
|
&:focus-visible {
|
|
2110
|
-
${
|
|
2110
|
+
${_};
|
|
2111
2111
|
}
|
|
2112
|
-
`, Jt =
|
|
2112
|
+
`, Jt = y.div`
|
|
2113
2113
|
text-align: center;
|
|
2114
2114
|
display: block;
|
|
2115
2115
|
${(t) => {
|
|
@@ -2119,12 +2119,12 @@ const Qt = p(yt)`
|
|
|
2119
2119
|
`, Xt = (t) => {
|
|
2120
2120
|
var e, o, n;
|
|
2121
2121
|
return $`
|
|
2122
|
-
${
|
|
2122
|
+
${W(t)}
|
|
2123
2123
|
|
|
2124
2124
|
> div {
|
|
2125
2125
|
padding: ${(e = t.theme.sizes) == null ? void 0 : e.large};
|
|
2126
2126
|
|
|
2127
|
-
${
|
|
2127
|
+
${Z(t)(
|
|
2128
2128
|
"h1",
|
|
2129
2129
|
$`
|
|
2130
2130
|
margin: 0;
|
|
@@ -2170,7 +2170,7 @@ const Qt = p(yt)`
|
|
|
2170
2170
|
}
|
|
2171
2171
|
`;
|
|
2172
2172
|
};
|
|
2173
|
-
|
|
2173
|
+
y(V)`
|
|
2174
2174
|
${(t) => Xt(t)}
|
|
2175
2175
|
`;
|
|
2176
2176
|
const ro = ({
|
|
@@ -2179,92 +2179,35 @@ const ro = ({
|
|
|
2179
2179
|
groupId: o,
|
|
2180
2180
|
className: n
|
|
2181
2181
|
}) => {
|
|
2182
|
-
var m,
|
|
2183
|
-
const [i, s] =
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
"conversational-hub-provider:form-submitted",
|
|
2187
|
-
async (v, C) => {
|
|
2188
|
-
var E;
|
|
2189
|
-
if (((E = C.form.meta) == null ? void 0 : E.groupId) !== o || C.id !== (i == null ? void 0 : i.id))
|
|
2190
|
-
return;
|
|
2191
|
-
l && (C.form.meta || (C.form.meta = {}), C.form.meta.conversation = l);
|
|
2192
|
-
const M = await a.getAsync(
|
|
2193
|
-
"contactMethods"
|
|
2194
|
-
), w = {
|
|
2195
|
-
...i,
|
|
2196
|
-
body: {
|
|
2197
|
-
...i.body,
|
|
2198
|
-
form: C.form
|
|
2199
|
-
}
|
|
2200
|
-
}, { errors: S, valid: x, errorTypes: Y } = await M.validate(
|
|
2201
|
-
w
|
|
2202
|
-
);
|
|
2203
|
-
if (!x) {
|
|
2204
|
-
const F = new ue(i.body.form);
|
|
2205
|
-
s(void 0), F.setValidationErrors(S), w.body = {
|
|
2206
|
-
...w.body,
|
|
2207
|
-
form: F.get()
|
|
2208
|
-
}, s({ ...w });
|
|
2209
|
-
return;
|
|
2210
|
-
}
|
|
2211
|
-
const R = await M.submit(w);
|
|
2212
|
-
w.confirmation = R, s(w);
|
|
2213
|
-
}
|
|
2214
|
-
), f = y.subscribe(
|
|
2215
|
-
"bot-provider:evaluate",
|
|
2216
|
-
async (v, C) => {
|
|
2217
|
-
if (C.id !== t)
|
|
2218
|
-
return;
|
|
2219
|
-
const w = await (await a.getAsync(
|
|
2220
|
-
"contactMethods"
|
|
2221
|
-
)).evaluate(i);
|
|
2222
|
-
let S = {
|
|
2223
|
-
...i,
|
|
2224
|
-
body: {
|
|
2225
|
-
...i.body,
|
|
2226
|
-
form: w
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
|
-
const x = Ne(S, {
|
|
2230
|
-
submit: "Submit",
|
|
2231
|
-
errors: {},
|
|
2232
|
-
meta: { groupId: o }
|
|
2233
|
-
});
|
|
2234
|
-
S = {
|
|
2235
|
-
...S,
|
|
2236
|
-
body: x
|
|
2237
|
-
}, s(S);
|
|
2238
|
-
}
|
|
2239
|
-
);
|
|
2240
|
-
return () => {
|
|
2241
|
-
d(), f();
|
|
2242
|
-
};
|
|
2182
|
+
var m, u, b;
|
|
2183
|
+
const [i, s] = j(), a = re(), r = Nt(), c = Pe(!0), l = kt();
|
|
2184
|
+
A(() => {
|
|
2185
|
+
console.log("### ", a), console.log("### ", a.get("$widget"));
|
|
2243
2186
|
}, [a, i, s, l]);
|
|
2244
|
-
const
|
|
2245
|
-
async (
|
|
2246
|
-
const
|
|
2187
|
+
const f = P(
|
|
2188
|
+
async (p) => {
|
|
2189
|
+
const h = await (await K.getInstance(a)).fetch(
|
|
2247
2190
|
Ke.ContactMethod,
|
|
2248
2191
|
{
|
|
2249
|
-
contactMethodId:
|
|
2192
|
+
contactMethodId: p,
|
|
2250
2193
|
guideId: e
|
|
2251
2194
|
},
|
|
2252
2195
|
{ noCache: !0 }
|
|
2253
|
-
), v =
|
|
2196
|
+
), v = bt(h, {
|
|
2254
2197
|
submit: "Submit",
|
|
2255
2198
|
errors: {},
|
|
2256
2199
|
meta: { groupId: o }
|
|
2257
2200
|
});
|
|
2258
|
-
if (
|
|
2201
|
+
if (h.body = v, h.body.guideId = e, !c.current)
|
|
2259
2202
|
return null;
|
|
2260
|
-
s(
|
|
2203
|
+
s(h);
|
|
2261
2204
|
},
|
|
2262
2205
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2263
2206
|
[c]
|
|
2264
2207
|
);
|
|
2265
|
-
return
|
|
2208
|
+
return A(() => (f(t), () => {
|
|
2266
2209
|
c.current = !1;
|
|
2267
|
-
}), [t,
|
|
2210
|
+
}), [t, f]), i ? /* @__PURE__ */ g(
|
|
2268
2211
|
eo,
|
|
2269
2212
|
{
|
|
2270
2213
|
...i,
|
|
@@ -2274,7 +2217,7 @@ const ro = ({
|
|
|
2274
2217
|
...i.body.form,
|
|
2275
2218
|
data: (m = i.body.form) == null ? void 0 : m.data,
|
|
2276
2219
|
layout: { ...i.body.form.layout },
|
|
2277
|
-
meta: (
|
|
2220
|
+
meta: (u = i.body.form) == null ? void 0 : u.meta,
|
|
2278
2221
|
schema: (b = i.body.form) == null ? void 0 : b.schema
|
|
2279
2222
|
} : void 0,
|
|
2280
2223
|
guideId: i.body.guideId
|
|
@@ -2282,10 +2225,10 @@ const ro = ({
|
|
|
2282
2225
|
inline: !0,
|
|
2283
2226
|
expanded: !0,
|
|
2284
2227
|
dispatch: r,
|
|
2285
|
-
className:
|
|
2228
|
+
className: F("humany-bot-contact-method", n)
|
|
2286
2229
|
}
|
|
2287
2230
|
) : null;
|
|
2288
|
-
}, eo =
|
|
2231
|
+
}, eo = y(Vt)`
|
|
2289
2232
|
padding: ${(t) => {
|
|
2290
2233
|
var e;
|
|
2291
2234
|
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|