@telia-ace/knowledge-widget-components-contact-list 1.0.47 → 1.1.1-rc.0
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-list-ab646287.js +188 -0
- package/contact-list-fc4972a6.mjs +1074 -0
- package/detached-component-61ba6bf4.js +1 -0
- package/detached-component-f0fff886.mjs +22 -0
- package/index-0264775f.js +1757 -0
- package/index-373df3a5.js +6 -0
- package/index-5c9c2abf.mjs +883 -0
- package/index-6a1b7325.mjs +11383 -0
- package/index.js +1 -0
- package/index.mjs +7 -0
- package/package.json +19 -43
- package/LICENSE.txt +0 -6
- package/README.md +0 -3
- package/dist/contact-list.782f8714.js +0 -197
- package/dist/contact-list.782f8714.js.map +0 -1
- package/dist/index.js +0 -80
- package/dist/index.js.map +0 -1
- /package/{dist/contact-list-component.d.ts → contact-list-component.d.ts} +0 -0
- /package/{dist/contact-list.d.ts → contact-list.d.ts} +0 -0
- /package/{dist/deflection-list.d.ts → deflection-list.d.ts} +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,1074 @@
|
|
|
1
|
+
import { jsx as l, jsxs as _, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
+
import { c as P, E as Ve, _ as ke, a as Ie, b as Oe, T as ue, P as I, C as he, u as F, d as A, e as W, f as ze, g as je, h as z, i as _e, j as Fe, k as fe, n as f, l as Ae, m as pe, H as Ge, o as Be, p as te, q as He, S as H, L as ge, r as U, s as ye, t as ne, v as K, w as be, I as $e, x as Ke, y as L, z as We, R as Q, G as ve, A as Ue, B as oe, D as Ce, F as Xe, J as Ye, K as Qe, M as qe, N as Je, O as Ze, Q as re, U as ie, V as et, W as q } from "./index-6a1b7325.mjs";
|
|
3
|
+
import O, { Children as tt, isValidElement as G, cloneElement as B, useContext as se, useState as M, useCallback as xe, useEffect as T, Suspense as we, forwardRef as Ee, useMemo as nt } from "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
function* Se(e) {
|
|
6
|
+
if (e)
|
|
7
|
+
for (let t = 0; t < e.length; t++) {
|
|
8
|
+
const n = e[t];
|
|
9
|
+
yield n, n.items && (yield* Se(n.items));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const ot = (e, t) => {
|
|
13
|
+
const n = Se(t);
|
|
14
|
+
let r = n.next(), o = null;
|
|
15
|
+
for (; !r.done; )
|
|
16
|
+
r.value.id === e && (o = r.value), r = n.next();
|
|
17
|
+
return o;
|
|
18
|
+
}, J = (e, t) => ({
|
|
19
|
+
id: e.id,
|
|
20
|
+
type: e.type,
|
|
21
|
+
name: e.name,
|
|
22
|
+
branch: t || "default"
|
|
23
|
+
}), rt = (e) => e === "entering" || e === "entered", it = (e) => e === "exiting" || e === "exited", R = {
|
|
24
|
+
fade: {
|
|
25
|
+
in: "opacity: 1;",
|
|
26
|
+
out: "opacity: 0;"
|
|
27
|
+
},
|
|
28
|
+
"slide-left": {
|
|
29
|
+
in: "transform: translateX(0);",
|
|
30
|
+
out: "transform: translateX(-100%);"
|
|
31
|
+
},
|
|
32
|
+
"slide-right": {
|
|
33
|
+
in: "transform: translateX(0);",
|
|
34
|
+
out: "transform: translateX(100%);"
|
|
35
|
+
},
|
|
36
|
+
"slide-up": {
|
|
37
|
+
in: "transform: translateY(0);",
|
|
38
|
+
out: "transform: translateY(100%);"
|
|
39
|
+
},
|
|
40
|
+
"slide-down": {
|
|
41
|
+
in: "transform: translateY(0);",
|
|
42
|
+
out: "transform: translateY(-100%);"
|
|
43
|
+
},
|
|
44
|
+
scale: {
|
|
45
|
+
in: "transform: scale(1);",
|
|
46
|
+
out: "transform: scale(0);"
|
|
47
|
+
}
|
|
48
|
+
}, st = ["slide-up", "slide-down", "slide-left", "slide-right", "scale"], Z = {
|
|
49
|
+
compose: (e = "exited", t) => {
|
|
50
|
+
const { enter: n, exit: r } = t, o = n.transitionKeys.split(" "), i = st.indexOf(o[0]) > -1 ? "transform" : "opacity";
|
|
51
|
+
if (rt(e))
|
|
52
|
+
return o && o.length > 0 ? P`
|
|
53
|
+
${o && o.length > 0 && o.map((c) => R[c] ? R[c].in : "")}
|
|
54
|
+
transition: ${i} ${n.duration}ms ${n.easing};
|
|
55
|
+
` : "";
|
|
56
|
+
const s = o && o.length > 0 && P`
|
|
57
|
+
${o.map((c) => R[c] ? R[c].out : "")}
|
|
58
|
+
`;
|
|
59
|
+
if (it(e)) {
|
|
60
|
+
const c = r.transitionKeys.split(" ");
|
|
61
|
+
return c && c.length > 0 && e === "exiting" ? P`
|
|
62
|
+
${s};
|
|
63
|
+
${c.map((a) => R[a] ? R[a].out : "")}
|
|
64
|
+
transition: ${i} ${r.duration}ms ${r.easing};
|
|
65
|
+
` : s;
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
composeViewTransition: (e, t, n) => {
|
|
69
|
+
if (t === "slide")
|
|
70
|
+
return Z.compose(e, {
|
|
71
|
+
enter: {
|
|
72
|
+
transitionKeys: n === "forth" ? "slide-right" : "slide-left",
|
|
73
|
+
duration: 500
|
|
74
|
+
},
|
|
75
|
+
exit: {
|
|
76
|
+
transitionKeys: n === "forth" ? "slide-left" : "slide-right",
|
|
77
|
+
duration: 500
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
if (t === "fade")
|
|
81
|
+
return Z.compose(e, {
|
|
82
|
+
enter: {
|
|
83
|
+
transitionKeys: "fade",
|
|
84
|
+
duration: 500
|
|
85
|
+
},
|
|
86
|
+
exit: {
|
|
87
|
+
transitionKeys: "fade",
|
|
88
|
+
duration: 500
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
get: (e) => R[e]
|
|
93
|
+
}, Ne = (e, t) => e.get("seoConfiguration") ? /* @__PURE__ */ l(Ve, { ...t }) : null;
|
|
94
|
+
function at(e) {
|
|
95
|
+
if (e === void 0)
|
|
96
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
97
|
+
return e;
|
|
98
|
+
}
|
|
99
|
+
function ae(e, t) {
|
|
100
|
+
var n = function(i) {
|
|
101
|
+
return t && G(i) ? t(i) : i;
|
|
102
|
+
}, r = /* @__PURE__ */ Object.create(null);
|
|
103
|
+
return e && tt.map(e, function(o) {
|
|
104
|
+
return o;
|
|
105
|
+
}).forEach(function(o) {
|
|
106
|
+
r[o.key] = n(o);
|
|
107
|
+
}), r;
|
|
108
|
+
}
|
|
109
|
+
function ct(e, t) {
|
|
110
|
+
e = e || {}, t = t || {};
|
|
111
|
+
function n(u) {
|
|
112
|
+
return u in t ? t[u] : e[u];
|
|
113
|
+
}
|
|
114
|
+
var r = /* @__PURE__ */ Object.create(null), o = [];
|
|
115
|
+
for (var i in e)
|
|
116
|
+
i in t ? o.length && (r[i] = o, o = []) : o.push(i);
|
|
117
|
+
var s, c = {};
|
|
118
|
+
for (var a in t) {
|
|
119
|
+
if (r[a])
|
|
120
|
+
for (s = 0; s < r[a].length; s++) {
|
|
121
|
+
var d = r[a][s];
|
|
122
|
+
c[r[a][s]] = n(d);
|
|
123
|
+
}
|
|
124
|
+
c[a] = n(a);
|
|
125
|
+
}
|
|
126
|
+
for (s = 0; s < o.length; s++)
|
|
127
|
+
c[o[s]] = n(o[s]);
|
|
128
|
+
return c;
|
|
129
|
+
}
|
|
130
|
+
function V(e, t, n) {
|
|
131
|
+
return n[t] != null ? n[t] : e.props[t];
|
|
132
|
+
}
|
|
133
|
+
function lt(e, t) {
|
|
134
|
+
return ae(e.children, function(n) {
|
|
135
|
+
return B(n, {
|
|
136
|
+
onExited: t.bind(null, n),
|
|
137
|
+
in: !0,
|
|
138
|
+
appear: V(n, "appear", e),
|
|
139
|
+
enter: V(n, "enter", e),
|
|
140
|
+
exit: V(n, "exit", e)
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function dt(e, t, n) {
|
|
145
|
+
var r = ae(e.children), o = ct(t, r);
|
|
146
|
+
return Object.keys(o).forEach(function(i) {
|
|
147
|
+
var s = o[i];
|
|
148
|
+
if (G(s)) {
|
|
149
|
+
var c = i in t, a = i in r, d = t[i], u = G(d) && !d.props.in;
|
|
150
|
+
a && (!c || u) ? o[i] = B(s, {
|
|
151
|
+
onExited: n.bind(null, s),
|
|
152
|
+
in: !0,
|
|
153
|
+
exit: V(s, "exit", e),
|
|
154
|
+
enter: V(s, "enter", e)
|
|
155
|
+
}) : !a && c && !u ? o[i] = B(s, {
|
|
156
|
+
in: !1
|
|
157
|
+
}) : a && c && G(d) && (o[i] = B(s, {
|
|
158
|
+
onExited: n.bind(null, s),
|
|
159
|
+
in: d.props.in,
|
|
160
|
+
exit: V(s, "exit", e),
|
|
161
|
+
enter: V(s, "enter", e)
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
}), o;
|
|
165
|
+
}
|
|
166
|
+
var ut = Object.values || function(e) {
|
|
167
|
+
return Object.keys(e).map(function(t) {
|
|
168
|
+
return e[t];
|
|
169
|
+
});
|
|
170
|
+
}, mt = {
|
|
171
|
+
component: "div",
|
|
172
|
+
childFactory: function(t) {
|
|
173
|
+
return t;
|
|
174
|
+
}
|
|
175
|
+
}, ce = /* @__PURE__ */ function(e) {
|
|
176
|
+
ke(t, e);
|
|
177
|
+
function t(r, o) {
|
|
178
|
+
var i;
|
|
179
|
+
i = e.call(this, r, o) || this;
|
|
180
|
+
var s = i.handleExited.bind(at(i));
|
|
181
|
+
return i.state = {
|
|
182
|
+
contextValue: {
|
|
183
|
+
isMounting: !0
|
|
184
|
+
},
|
|
185
|
+
handleExited: s,
|
|
186
|
+
firstRender: !0
|
|
187
|
+
}, i;
|
|
188
|
+
}
|
|
189
|
+
var n = t.prototype;
|
|
190
|
+
return n.componentDidMount = function() {
|
|
191
|
+
this.mounted = !0, this.setState({
|
|
192
|
+
contextValue: {
|
|
193
|
+
isMounting: !1
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}, n.componentWillUnmount = function() {
|
|
197
|
+
this.mounted = !1;
|
|
198
|
+
}, t.getDerivedStateFromProps = function(o, i) {
|
|
199
|
+
var s = i.children, c = i.handleExited, a = i.firstRender;
|
|
200
|
+
return {
|
|
201
|
+
children: a ? lt(o, c) : dt(o, s, c),
|
|
202
|
+
firstRender: !1
|
|
203
|
+
};
|
|
204
|
+
}, n.handleExited = function(o, i) {
|
|
205
|
+
var s = ae(this.props.children);
|
|
206
|
+
o.key in s || (o.props.onExited && o.props.onExited(i), this.mounted && this.setState(function(c) {
|
|
207
|
+
var a = Ie({}, c.children);
|
|
208
|
+
return delete a[o.key], {
|
|
209
|
+
children: a
|
|
210
|
+
};
|
|
211
|
+
}));
|
|
212
|
+
}, n.render = function() {
|
|
213
|
+
var o = this.props, i = o.component, s = o.childFactory, c = Oe(o, ["component", "childFactory"]), a = this.state.contextValue, d = ut(this.state.children).map(s);
|
|
214
|
+
return delete c.appear, delete c.enter, delete c.exit, i === null ? /* @__PURE__ */ O.createElement(ue.Provider, {
|
|
215
|
+
value: a
|
|
216
|
+
}, d) : /* @__PURE__ */ O.createElement(ue.Provider, {
|
|
217
|
+
value: a
|
|
218
|
+
}, /* @__PURE__ */ O.createElement(i, c, d));
|
|
219
|
+
}, t;
|
|
220
|
+
}(O.Component);
|
|
221
|
+
ce.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
222
|
+
/**
|
|
223
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
224
|
+
* behavior by providing a `component` prop.
|
|
225
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
226
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
227
|
+
* borks your css styles.
|
|
228
|
+
*/
|
|
229
|
+
component: I.any,
|
|
230
|
+
/**
|
|
231
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
232
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
233
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
234
|
+
* with our `<Fade>` example.
|
|
235
|
+
*
|
|
236
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
237
|
+
* children, sometimes you may want to have a single transition child with
|
|
238
|
+
* content that you want to be transitioned out and in when you change it
|
|
239
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
240
|
+
* the transition child as you change its content, this will cause
|
|
241
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
242
|
+
*/
|
|
243
|
+
children: I.node,
|
|
244
|
+
/**
|
|
245
|
+
* A convenience prop that enables or disables appear animations
|
|
246
|
+
* for all children. Note that specifying this will override any defaults set
|
|
247
|
+
* on individual children Transitions.
|
|
248
|
+
*/
|
|
249
|
+
appear: I.bool,
|
|
250
|
+
/**
|
|
251
|
+
* A convenience prop that enables or disables enter animations
|
|
252
|
+
* for all children. Note that specifying this will override any defaults set
|
|
253
|
+
* on individual children Transitions.
|
|
254
|
+
*/
|
|
255
|
+
enter: I.bool,
|
|
256
|
+
/**
|
|
257
|
+
* A convenience prop that enables or disables exit animations
|
|
258
|
+
* for all children. Note that specifying this will override any defaults set
|
|
259
|
+
* on individual children Transitions.
|
|
260
|
+
*/
|
|
261
|
+
exit: I.bool,
|
|
262
|
+
/**
|
|
263
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
264
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
265
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
266
|
+
*
|
|
267
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
268
|
+
* to wrap every child, even the ones that are leaving.
|
|
269
|
+
*
|
|
270
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
271
|
+
*/
|
|
272
|
+
childFactory: I.func
|
|
273
|
+
} : {};
|
|
274
|
+
ce.defaultProps = mt;
|
|
275
|
+
const ht = ce, X = () => se(he), ft = () => {
|
|
276
|
+
const e = F(), t = A(), [n, r] = M([]), o = W(), i = xe(
|
|
277
|
+
(s) => {
|
|
278
|
+
if (t && o.current && s) {
|
|
279
|
+
const c = t.getBranch(s), a = s.getChildren(c).map((d) => J(d));
|
|
280
|
+
r(a);
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
[o, t, r, e]
|
|
284
|
+
);
|
|
285
|
+
return T(() => {
|
|
286
|
+
e && i(e);
|
|
287
|
+
}, [e, t]), T(() => {
|
|
288
|
+
if (t) {
|
|
289
|
+
const [s, c] = ze(t.events);
|
|
290
|
+
return s("components:set-layout", (a, d) => {
|
|
291
|
+
(e === d.node.parent || d.node.parent === t.nodes.root) && i(d.node.parent);
|
|
292
|
+
}), s("components:node-appended", (a, d) => {
|
|
293
|
+
(e === d.node.parent || d.node.parent === t.nodes.root) && i(d.node.parent);
|
|
294
|
+
}), s("components:node-removed", (a, { parentNode: d }) => {
|
|
295
|
+
(d === e || d === t.nodes.root) && i(d);
|
|
296
|
+
}), () => {
|
|
297
|
+
c();
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}, [e, t, i]), n;
|
|
301
|
+
}, pt = () => se(je), Pe = (e, t) => {
|
|
302
|
+
const n = X(), r = z(), [o, i] = M(void 0), s = W(), c = e || n.type || "";
|
|
303
|
+
return T(() => {
|
|
304
|
+
if (c) {
|
|
305
|
+
let a;
|
|
306
|
+
return (t || r).getAsync("componentResolver").then((d) => {
|
|
307
|
+
if (s.current) {
|
|
308
|
+
const u = d.getComponent(c);
|
|
309
|
+
i(u);
|
|
310
|
+
}
|
|
311
|
+
a = d.registerResolver(c, (u) => {
|
|
312
|
+
s.current && i(u);
|
|
313
|
+
});
|
|
314
|
+
}), () => {
|
|
315
|
+
a && a();
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
}, [s, c, t, r]), o;
|
|
319
|
+
}, Le = () => {
|
|
320
|
+
const e = A(), t = X(), [n, r] = M([]), [o, i] = M();
|
|
321
|
+
return T(() => {
|
|
322
|
+
if (e && t) {
|
|
323
|
+
const s = new _e(e).withId(t.id), c = e.actions(s, t.type || Fe());
|
|
324
|
+
i(c), n !== null && (n.forEach((a) => {
|
|
325
|
+
c.dispatch(a.key, a.data).then((d) => a.resolve(d)).catch((d) => a.reject(d));
|
|
326
|
+
}), r(null));
|
|
327
|
+
}
|
|
328
|
+
}, [e, t.id]), (s, c) => n !== null ? new Promise((a, d) => {
|
|
329
|
+
n.push({
|
|
330
|
+
key: s,
|
|
331
|
+
data: c,
|
|
332
|
+
resolve: a,
|
|
333
|
+
reject: d
|
|
334
|
+
});
|
|
335
|
+
}) : o.dispatch(s, c);
|
|
336
|
+
}, gt = (e) => {
|
|
337
|
+
const t = F(e), n = A(), [r, o] = M({}), i = W();
|
|
338
|
+
return T(() => {
|
|
339
|
+
t && i.current && o(t.attributes.layout);
|
|
340
|
+
}, [t, i]), T(() => {
|
|
341
|
+
if (n) {
|
|
342
|
+
const s = n.events.subscribe(
|
|
343
|
+
"components:layout-changed",
|
|
344
|
+
(c, a) => {
|
|
345
|
+
t === a.node && i.current && o(a.node.attributes.layout);
|
|
346
|
+
}
|
|
347
|
+
);
|
|
348
|
+
return () => {
|
|
349
|
+
s();
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
}, [n, i, t]), r;
|
|
353
|
+
}, le = () => se(fe);
|
|
354
|
+
f(Ae)`
|
|
355
|
+
${(e) => {
|
|
356
|
+
var t;
|
|
357
|
+
return pe(e)(
|
|
358
|
+
"h1",
|
|
359
|
+
P`
|
|
360
|
+
font-weight: normal;
|
|
361
|
+
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.medium};
|
|
362
|
+
`
|
|
363
|
+
);
|
|
364
|
+
}}
|
|
365
|
+
`;
|
|
366
|
+
const yt = f(Ge)`
|
|
367
|
+
${Be}
|
|
368
|
+
font-weight: 300;
|
|
369
|
+
line-height: 1.5em;
|
|
370
|
+
button:focus-visible {
|
|
371
|
+
${te};
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
a:focus-visible {
|
|
375
|
+
${He};
|
|
376
|
+
}
|
|
377
|
+
`, bt = (e) => {
|
|
378
|
+
const t = Pe(e.clientName), {
|
|
379
|
+
params: { contactCategory: n, guideCategory: r, phrase: o }
|
|
380
|
+
} = U();
|
|
381
|
+
if (typeof t > "u")
|
|
382
|
+
return null;
|
|
383
|
+
if (t === null)
|
|
384
|
+
return process.env.NODE_ENV !== "production" ? /* @__PURE__ */ l(
|
|
385
|
+
vt,
|
|
386
|
+
{
|
|
387
|
+
title: `client-name: ${e.clientName}, id: ${e.id}`,
|
|
388
|
+
className: "humany-non-resolved-contact-method",
|
|
389
|
+
children: /* @__PURE__ */ l(ye, { variant: "h5", children: "Non resolved Contact Method type" })
|
|
390
|
+
}
|
|
391
|
+
) : null;
|
|
392
|
+
const i = (s = {}) => {
|
|
393
|
+
const c = { ...e, ...s }, {
|
|
394
|
+
id: a,
|
|
395
|
+
title: d,
|
|
396
|
+
clientName: u,
|
|
397
|
+
symbol: m,
|
|
398
|
+
inline: S,
|
|
399
|
+
onClick: v = () => {
|
|
400
|
+
},
|
|
401
|
+
description: b,
|
|
402
|
+
htmlParseInstruction: g,
|
|
403
|
+
className: y,
|
|
404
|
+
disabled: x,
|
|
405
|
+
guideId: w,
|
|
406
|
+
dispatch: E = () => {
|
|
407
|
+
},
|
|
408
|
+
expanded: p
|
|
409
|
+
} = c, $ = S ? {
|
|
410
|
+
onKeyDown: (h) => {
|
|
411
|
+
h.key && h.key === "Enter" && (v(h, c), h.defaultPrevented || !p && E("expand", a));
|
|
412
|
+
},
|
|
413
|
+
onClick: (h) => {
|
|
414
|
+
v(h, c), h.defaultPrevented || !p && E("expand", a);
|
|
415
|
+
}
|
|
416
|
+
} : {
|
|
417
|
+
onClick: (h) => v(h, c),
|
|
418
|
+
routeName: "contact-method",
|
|
419
|
+
params: ne({
|
|
420
|
+
contactCategory: n,
|
|
421
|
+
guideId: w,
|
|
422
|
+
guideCategory: r,
|
|
423
|
+
phrase: o,
|
|
424
|
+
contactMethod: a,
|
|
425
|
+
uriName: K(d)
|
|
426
|
+
})
|
|
427
|
+
};
|
|
428
|
+
return /* @__PURE__ */ _(
|
|
429
|
+
$t,
|
|
430
|
+
{
|
|
431
|
+
title: d,
|
|
432
|
+
"aria-label": d,
|
|
433
|
+
className: y,
|
|
434
|
+
disabled: x,
|
|
435
|
+
description: b,
|
|
436
|
+
"data-client-name": u,
|
|
437
|
+
...s,
|
|
438
|
+
...$,
|
|
439
|
+
children: [
|
|
440
|
+
m && /* @__PURE__ */ l(be, { symbol: m }),
|
|
441
|
+
b ? /* @__PURE__ */ _("div", { className: "humany-contact-link-rich-content", children: [
|
|
442
|
+
/* @__PURE__ */ l(me, { children: d }),
|
|
443
|
+
/* @__PURE__ */ l(
|
|
444
|
+
yt,
|
|
445
|
+
{
|
|
446
|
+
html: b,
|
|
447
|
+
htmlParseInstruction: g
|
|
448
|
+
}
|
|
449
|
+
)
|
|
450
|
+
] }) : /* @__PURE__ */ l(me, { children: d })
|
|
451
|
+
]
|
|
452
|
+
}
|
|
453
|
+
);
|
|
454
|
+
};
|
|
455
|
+
return e.expanded ? /* @__PURE__ */ l(we, { fallback: null, children: /* @__PURE__ */ l(t, { ...e, renderDefault: i }) }) : i();
|
|
456
|
+
}, Me = (e) => {
|
|
457
|
+
var t, n, r, o, i, s, c, a;
|
|
458
|
+
return P`
|
|
459
|
+
display: flex;
|
|
460
|
+
padding: ${(t = e.theme.sizes) == null ? void 0 : t.large};
|
|
461
|
+
${e.description ? "" : "align-items: center;"}
|
|
462
|
+
text-decoration: none;
|
|
463
|
+
span {
|
|
464
|
+
display: inline-block;
|
|
465
|
+
color: ${(n = e.theme.colors) == null ? void 0 : n.text};
|
|
466
|
+
}
|
|
467
|
+
i {
|
|
468
|
+
font-size: ${(r = e.theme.fonts) == null ? void 0 : r.large};
|
|
469
|
+
margin: 0 ${(o = e.theme.sizes) == null ? void 0 : o.large} 0 0;
|
|
470
|
+
min-height: ${(i = e.theme.fonts) == null ? void 0 : i.large};
|
|
471
|
+
min-width: ${(s = e.theme.fonts) == null ? void 0 : s.large};
|
|
472
|
+
line-height: ${(c = e.theme.fonts) == null ? void 0 : c.large};
|
|
473
|
+
display: inline-block;
|
|
474
|
+
vertical-align: bottom;
|
|
475
|
+
color: ${(a = e.theme.colors) == null ? void 0 : a.text};
|
|
476
|
+
}
|
|
477
|
+
`;
|
|
478
|
+
}, me = f(H)`
|
|
479
|
+
line-height: ${(e) => {
|
|
480
|
+
var t;
|
|
481
|
+
return (t = e.theme.fonts) == null ? void 0 : t.large;
|
|
482
|
+
}};
|
|
483
|
+
`, $t = f(ge)`
|
|
484
|
+
${(e) => Me(e)}
|
|
485
|
+
|
|
486
|
+
&:focus-visible {
|
|
487
|
+
${te};
|
|
488
|
+
}
|
|
489
|
+
`, vt = f.div`
|
|
490
|
+
text-align: center;
|
|
491
|
+
display: block;
|
|
492
|
+
${(e) => {
|
|
493
|
+
var t, n;
|
|
494
|
+
return typeof ((t = e.theme.colors) == null ? void 0 : t.warning) < "u" && `color: ${(n = e.theme.colors) == null ? void 0 : n.warning};`;
|
|
495
|
+
}}
|
|
496
|
+
`, Te = (e) => {
|
|
497
|
+
var t, n, r;
|
|
498
|
+
return P`
|
|
499
|
+
${Ke(e)}
|
|
500
|
+
|
|
501
|
+
> div {
|
|
502
|
+
padding: ${(t = e.theme.sizes) == null ? void 0 : t.large};
|
|
503
|
+
|
|
504
|
+
${pe(e)(
|
|
505
|
+
"h1",
|
|
506
|
+
P`
|
|
507
|
+
margin: 0;
|
|
508
|
+
`
|
|
509
|
+
)}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
> ul {
|
|
513
|
+
&:not(:first-child) {
|
|
514
|
+
border-top: ${e.theme.border};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
> li {
|
|
518
|
+
margin: 0;
|
|
519
|
+
white-space: normal;
|
|
520
|
+
|
|
521
|
+
> a {
|
|
522
|
+
overflow: hidden;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
&:first-child > a {
|
|
526
|
+
border-radius: ${`${e.theme.borderRadius} ${e.theme.borderRadius} 0 0`};
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
&:last-child:not(:first-child) > a {
|
|
530
|
+
border-radius: ${`0 0 ${e.theme.borderRadius} ${e.theme.borderRadius}`};
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
&:not(:last-child) {
|
|
534
|
+
border-bottom: ${e.theme.border};
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
> div {
|
|
538
|
+
padding: ${(n = e.theme.sizes) == null ? void 0 : n.large};
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@media (hover: hover) {
|
|
544
|
+
a:hover {
|
|
545
|
+
background-color: ${(r = e.theme.colors) == null ? void 0 : r.accent};
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
`;
|
|
549
|
+
}, Ct = f($e)`
|
|
550
|
+
${(e) => Te(e)}
|
|
551
|
+
`, xt = ({
|
|
552
|
+
contactMethods: e,
|
|
553
|
+
children: t,
|
|
554
|
+
guideId: n,
|
|
555
|
+
dispatch: r,
|
|
556
|
+
className: o = "",
|
|
557
|
+
itemRenderer: i,
|
|
558
|
+
action: s = () => {
|
|
559
|
+
},
|
|
560
|
+
header: c = ""
|
|
561
|
+
}) => e.length ? /* @__PURE__ */ l(
|
|
562
|
+
Ct,
|
|
563
|
+
{
|
|
564
|
+
header: c,
|
|
565
|
+
className: L(o, "humany-contact-list"),
|
|
566
|
+
items: e,
|
|
567
|
+
renderItem: i ? (a) => /* @__PURE__ */ l("li", { "data-contact-method": a.id, children: i(a, { action: s, dispatch: r, guideId: n }) }, a.id) : (a) => /* @__PURE__ */ l("li", { "data-contact-method": a.id, children: /* @__PURE__ */ l(
|
|
568
|
+
bt,
|
|
569
|
+
{
|
|
570
|
+
...a,
|
|
571
|
+
action: s,
|
|
572
|
+
dispatch: r,
|
|
573
|
+
guideId: n
|
|
574
|
+
}
|
|
575
|
+
) }, a.id),
|
|
576
|
+
children: t
|
|
577
|
+
}
|
|
578
|
+
) : null;
|
|
579
|
+
var ee = /* @__PURE__ */ ((e) => (e.back = "back", e.forth = "forth", e))(ee || {});
|
|
580
|
+
const wt = (e, t, n) => typeof n[e] == "number" && typeof n[t] == "number" && n[e] > n[t] ? "back" : "forth", De = ({ views: e, location: t, render: n }) => /* @__PURE__ */ l(
|
|
581
|
+
We,
|
|
582
|
+
{
|
|
583
|
+
location: t && {
|
|
584
|
+
...t,
|
|
585
|
+
pathname: t.pathname.split("?")[0]
|
|
586
|
+
},
|
|
587
|
+
children: [
|
|
588
|
+
...Object.keys(e).filter((r) => !!e[r].path),
|
|
589
|
+
...Object.keys(e).filter((r) => !e[r].path)
|
|
590
|
+
].map((r) => {
|
|
591
|
+
const { path: o } = e[r];
|
|
592
|
+
return o ? Array.isArray(o) ? o.map((i) => /* @__PURE__ */ l(Q, { exact: !0, path: i, render: () => n(r) }, r)) : /* @__PURE__ */ l(Q, { exact: !0, path: o, render: () => n(r) }, r) : /* @__PURE__ */ l(Q, { render: () => n(r) }, r);
|
|
593
|
+
})
|
|
594
|
+
}
|
|
595
|
+
), Et = f.div`
|
|
596
|
+
position: relative;
|
|
597
|
+
width: 100%;
|
|
598
|
+
flex: 1;
|
|
599
|
+
`, St = f(ve)`
|
|
600
|
+
position: absolute;
|
|
601
|
+
left: 0;
|
|
602
|
+
right: 0;
|
|
603
|
+
${(e) => !!e.animationCss && e.animationCss}
|
|
604
|
+
${(e) => !!e.scrollableCss && e.scrollableCss}
|
|
605
|
+
`, Nt = {
|
|
606
|
+
index: 1,
|
|
607
|
+
search: 2,
|
|
608
|
+
browse: 3,
|
|
609
|
+
guide: 4,
|
|
610
|
+
contact: 5,
|
|
611
|
+
"contact-method": 6,
|
|
612
|
+
conversation: 7
|
|
613
|
+
}, Pt = ({ className: e = "", ...t }) => {
|
|
614
|
+
const [n, r] = M("index"), [o, i] = M(
|
|
615
|
+
ee.forth
|
|
616
|
+
), s = U(), c = Ue(), a = le(), d = oe(), u = z(), m = F(), { gap: S = "0" } = d, {
|
|
617
|
+
columns: v = 1,
|
|
618
|
+
animation: b = "none",
|
|
619
|
+
scrollable: g = !1,
|
|
620
|
+
...y
|
|
621
|
+
} = a, [x, w] = Ce(g);
|
|
622
|
+
if (!m || !c)
|
|
623
|
+
return null;
|
|
624
|
+
const { location: E } = c;
|
|
625
|
+
s.name !== n && s.name !== "" && b && (i(
|
|
626
|
+
wt(n, s.name, Nt)
|
|
627
|
+
), r(s.name));
|
|
628
|
+
const { views: p } = u.get("$settings");
|
|
629
|
+
if (!Object.keys(p).length)
|
|
630
|
+
return null;
|
|
631
|
+
const $ = (C, D, k) => {
|
|
632
|
+
const N = h(D, k), j = m.getChildren(C)[0];
|
|
633
|
+
return /* @__PURE__ */ l(
|
|
634
|
+
St,
|
|
635
|
+
{
|
|
636
|
+
...t,
|
|
637
|
+
...y,
|
|
638
|
+
scrollableCss: x,
|
|
639
|
+
ref: w,
|
|
640
|
+
columns: v,
|
|
641
|
+
gap: S,
|
|
642
|
+
...N,
|
|
643
|
+
className: L(e, "humany-view"),
|
|
644
|
+
children: /* @__PURE__ */ l(de, { id: j.id, branch: "default" })
|
|
645
|
+
}
|
|
646
|
+
);
|
|
647
|
+
}, h = (C, D) => {
|
|
648
|
+
if (b === "slide" || b === "fade")
|
|
649
|
+
return {
|
|
650
|
+
animationCss: Z.composeViewTransition(
|
|
651
|
+
C,
|
|
652
|
+
b,
|
|
653
|
+
D
|
|
654
|
+
),
|
|
655
|
+
"data-state": C
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
return /* @__PURE__ */ l(Et, { className: "humany-animated-view", children: /* @__PURE__ */ l(
|
|
659
|
+
ht,
|
|
660
|
+
{
|
|
661
|
+
component: null,
|
|
662
|
+
childFactory: (C) => O.cloneElement(C, { direction: o }),
|
|
663
|
+
children: /* @__PURE__ */ l(
|
|
664
|
+
Xe,
|
|
665
|
+
{
|
|
666
|
+
timeout: { enter: 500, exit: 500 },
|
|
667
|
+
onEnter: (C) => C == null ? void 0 : C.clientHeight,
|
|
668
|
+
unmountOnExit: !0,
|
|
669
|
+
direction: ee.forth,
|
|
670
|
+
children: (C, { direction: D }) => /* @__PURE__ */ l(
|
|
671
|
+
De,
|
|
672
|
+
{
|
|
673
|
+
views: p,
|
|
674
|
+
location: E,
|
|
675
|
+
render: (k) => $(k, C, D)
|
|
676
|
+
}
|
|
677
|
+
)
|
|
678
|
+
},
|
|
679
|
+
n
|
|
680
|
+
)
|
|
681
|
+
}
|
|
682
|
+
) });
|
|
683
|
+
}, Lt = f(ve)`
|
|
684
|
+
${(e) => !!e.scrollableCss && e.scrollableCss}
|
|
685
|
+
`, Mt = ({ className: e = "", ...t }) => {
|
|
686
|
+
const n = le(), r = oe(), o = z(), i = F(), { views: s } = o.get("$settings"), { gap: c = "0" } = r, { columns: a = 1, animation: d = "none", scrollable: u = !1, ...m } = n, [S, v] = Ce(u);
|
|
687
|
+
return i ? /* @__PURE__ */ l(
|
|
688
|
+
Lt,
|
|
689
|
+
{
|
|
690
|
+
...t,
|
|
691
|
+
...m,
|
|
692
|
+
scrollableCss: S,
|
|
693
|
+
ref: v,
|
|
694
|
+
columns: a,
|
|
695
|
+
gap: c,
|
|
696
|
+
className: L(e, "humany-view"),
|
|
697
|
+
children: /* @__PURE__ */ l(
|
|
698
|
+
De,
|
|
699
|
+
{
|
|
700
|
+
views: s,
|
|
701
|
+
render: (b) => {
|
|
702
|
+
const g = i.getChildren(b)[0];
|
|
703
|
+
return /* @__PURE__ */ l(de, { id: g.id, node: g, branch: "default" });
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
)
|
|
707
|
+
}
|
|
708
|
+
) : null;
|
|
709
|
+
}, Y = (e) => {
|
|
710
|
+
var t, n;
|
|
711
|
+
return P`
|
|
712
|
+
outline: none;
|
|
713
|
+
box-sizing: border-box;
|
|
714
|
+
* {
|
|
715
|
+
box-sizing: border-box;
|
|
716
|
+
outline: none;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
grid-column: ${e["data-indent"] ? `${e["data-indent"] + 1} / ${e["data-indent"] + (e["data-width"] || 0) + 1}` : `span ${e["data-width"]}`};
|
|
720
|
+
|
|
721
|
+
${((t = e.theme.fonts) == null ? void 0 : t.type) && `
|
|
722
|
+
font-family: ${e.theme.fonts.type};
|
|
723
|
+
|
|
724
|
+
input, textarea {
|
|
725
|
+
font-family: ${e.theme.fonts.type};
|
|
726
|
+
}
|
|
727
|
+
`}
|
|
728
|
+
|
|
729
|
+
${((n = e.theme.fonts) == null ? void 0 : n.base) && `
|
|
730
|
+
font-size: ${e.theme.fonts.base};
|
|
731
|
+
`}
|
|
732
|
+
|
|
733
|
+
&:focus-visible {
|
|
734
|
+
${Ye(e)};
|
|
735
|
+
}
|
|
736
|
+
`;
|
|
737
|
+
}, Tt = f(Mt)`
|
|
738
|
+
${(e) => Y(e)}
|
|
739
|
+
`, Dt = f(Pt)`
|
|
740
|
+
${(e) => Y(e)}
|
|
741
|
+
`, Rt = f.div`
|
|
742
|
+
text-align: center;
|
|
743
|
+
${(e) => {
|
|
744
|
+
var t, n, r;
|
|
745
|
+
return typeof ((t = e.theme.colors) == null ? void 0 : t.warning) < "u" && P`
|
|
746
|
+
color: ${(n = e.theme.colors) == null ? void 0 : n.warning};
|
|
747
|
+
border: 2px dashed ${(r = e.theme.colors) == null ? void 0 : r.warning};
|
|
748
|
+
`;
|
|
749
|
+
}}
|
|
750
|
+
${(e) => typeof e.theme.borderRadius < "u" && `border-radius: ${e.theme.borderRadius};`}
|
|
751
|
+
${(e) => Y(e)}
|
|
752
|
+
`, Vt = Ee(
|
|
753
|
+
({ className: e = "", children: t, ...n }, r) => {
|
|
754
|
+
const o = Pe(), { name: i, type: s, id: c } = X(), a = nt(() => o ? f(o)`
|
|
755
|
+
${Y}
|
|
756
|
+
${Qe}
|
|
757
|
+
` : null, [o]);
|
|
758
|
+
return typeof o > "u" ? null : o === null || a === null ? process.env.NODE_ENV !== "production" ? /* @__PURE__ */ l(
|
|
759
|
+
Rt,
|
|
760
|
+
{
|
|
761
|
+
...n,
|
|
762
|
+
title: `type: ${s}, definition-id: ${i}, instance-id: ${c}`,
|
|
763
|
+
className: L(e, "humany-non-resolved-component"),
|
|
764
|
+
children: /* @__PURE__ */ l(ye, { variant: "h5", children: "Non Resolved Component Type" })
|
|
765
|
+
}
|
|
766
|
+
) : null : /* @__PURE__ */ l(we, { fallback: null, children: /* @__PURE__ */ l(
|
|
767
|
+
a,
|
|
768
|
+
{
|
|
769
|
+
ref: r,
|
|
770
|
+
...n,
|
|
771
|
+
className: L(
|
|
772
|
+
e,
|
|
773
|
+
"humany-component",
|
|
774
|
+
`humany-component-${i}`
|
|
775
|
+
),
|
|
776
|
+
children: t
|
|
777
|
+
}
|
|
778
|
+
) });
|
|
779
|
+
}
|
|
780
|
+
), kt = (e) => {
|
|
781
|
+
const t = F(e), n = A(), [r, o] = M({}), i = W();
|
|
782
|
+
return T(() => {
|
|
783
|
+
t && i.current && o(t.attributes.properties);
|
|
784
|
+
}, [t, e, i]), T(() => {
|
|
785
|
+
if (n) {
|
|
786
|
+
const s = n.events.subscribe(
|
|
787
|
+
"components:properties-changed",
|
|
788
|
+
(c, a) => {
|
|
789
|
+
t === a.node && i.current && o(a.node.attributes.properties);
|
|
790
|
+
}
|
|
791
|
+
);
|
|
792
|
+
return () => {
|
|
793
|
+
s();
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
}, [n, i, e, t]), r;
|
|
797
|
+
}, It = (e, t) => t ? !0 : typeof e == "string" ? e === "full" : e > 0, de = Ee(
|
|
798
|
+
({
|
|
799
|
+
className: e = "",
|
|
800
|
+
id: t,
|
|
801
|
+
branch: n,
|
|
802
|
+
node: r,
|
|
803
|
+
ariaLabel: o,
|
|
804
|
+
tabIndex: i,
|
|
805
|
+
context: s,
|
|
806
|
+
...c
|
|
807
|
+
}, a) => {
|
|
808
|
+
const d = A(), u = z(), [m, S] = M(), v = pt(), b = oe(t), g = kt(t), { size: y = "none", indent: x = 0 } = gt(t), w = It(y, r);
|
|
809
|
+
if (T(() => {
|
|
810
|
+
if (d) {
|
|
811
|
+
if (t && !r) {
|
|
812
|
+
const N = d.nodes.get(t);
|
|
813
|
+
if (N && (S(J(N, n)), w)) {
|
|
814
|
+
const j = N.mount(u);
|
|
815
|
+
return () => {
|
|
816
|
+
j();
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
} else if (r) {
|
|
820
|
+
S(J(r, n));
|
|
821
|
+
const N = r.mount(u);
|
|
822
|
+
return () => {
|
|
823
|
+
N();
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}, [d, t, r, w]), !m || !w)
|
|
828
|
+
return null;
|
|
829
|
+
const E = { ...b, ...s || {} }, {
|
|
830
|
+
cardinal: p,
|
|
831
|
+
fonts: $ = {},
|
|
832
|
+
accessibility: h = {},
|
|
833
|
+
...C
|
|
834
|
+
} = E, D = {
|
|
835
|
+
type: $.type,
|
|
836
|
+
base: $.base || "16px",
|
|
837
|
+
small: $.small || "0.8em",
|
|
838
|
+
normal: $.normal || "1em",
|
|
839
|
+
medium: $.medium || "1.2em",
|
|
840
|
+
large: $.large || "1.6em",
|
|
841
|
+
huge: $.huge || "2.5em"
|
|
842
|
+
}, k = {
|
|
843
|
+
...C,
|
|
844
|
+
fonts: D,
|
|
845
|
+
accessibility: {
|
|
846
|
+
...h
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
return typeof p == "number" && (k.sizes = {
|
|
850
|
+
cardinal: p,
|
|
851
|
+
small: `${p}px`,
|
|
852
|
+
normal: `${p * 3}px`,
|
|
853
|
+
medium: `${p * 5}px`,
|
|
854
|
+
large: `${p * 8}px`
|
|
855
|
+
}), /* @__PURE__ */ l(qe, { theme: k, children: /* @__PURE__ */ l(he.Provider, { value: m, children: /* @__PURE__ */ l(fe.Provider, { value: g, children: (() => {
|
|
856
|
+
const N = {
|
|
857
|
+
"data-width": y === "full" ? v : Math.min(y, v),
|
|
858
|
+
"data-indent": x,
|
|
859
|
+
"data-name": m.name,
|
|
860
|
+
"data-node-id": m.id,
|
|
861
|
+
"data-component-type": m.type,
|
|
862
|
+
"aria-label": o,
|
|
863
|
+
tabIndex: i,
|
|
864
|
+
id: m.id,
|
|
865
|
+
role: g && g.role,
|
|
866
|
+
...c
|
|
867
|
+
};
|
|
868
|
+
switch (m.type) {
|
|
869
|
+
case "view":
|
|
870
|
+
return typeof g.animation == "string" && g.animation !== "none" ? /* @__PURE__ */ l(Dt, { ...N, className: e }) : /* @__PURE__ */ l(Tt, { ...N, className: e });
|
|
871
|
+
default: {
|
|
872
|
+
const j = Je(g);
|
|
873
|
+
return /* @__PURE__ */ l(
|
|
874
|
+
Vt,
|
|
875
|
+
{
|
|
876
|
+
ref: a,
|
|
877
|
+
...N,
|
|
878
|
+
...j,
|
|
879
|
+
className: e
|
|
880
|
+
}
|
|
881
|
+
);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
})() }) }) });
|
|
885
|
+
}
|
|
886
|
+
);
|
|
887
|
+
O.lazy(() => import("./detached-component-f0fff886.mjs"));
|
|
888
|
+
const Ot = ({
|
|
889
|
+
className: e,
|
|
890
|
+
guides: t,
|
|
891
|
+
header: n,
|
|
892
|
+
accordion: r,
|
|
893
|
+
loading: o,
|
|
894
|
+
route: i = "guide",
|
|
895
|
+
categoryTitle: s,
|
|
896
|
+
...c
|
|
897
|
+
}) => {
|
|
898
|
+
const {
|
|
899
|
+
name: a,
|
|
900
|
+
params: { contactCategory: d = 0, guide: u }
|
|
901
|
+
} = U(), { name: m } = X(), S = z(), v = ft(), b = Le(), g = xe(
|
|
902
|
+
(y, x, w, E) => {
|
|
903
|
+
const { id: p, title: $ } = y;
|
|
904
|
+
return r && u === p ? /* @__PURE__ */ l(
|
|
905
|
+
et,
|
|
906
|
+
{
|
|
907
|
+
id: p,
|
|
908
|
+
title: $,
|
|
909
|
+
route: a,
|
|
910
|
+
collapseUri: s && K(s),
|
|
911
|
+
children: v.map((h) => /* @__PURE__ */ l(
|
|
912
|
+
de,
|
|
913
|
+
{
|
|
914
|
+
id: h.id,
|
|
915
|
+
branch: "default",
|
|
916
|
+
accordion: r
|
|
917
|
+
},
|
|
918
|
+
h.id
|
|
919
|
+
))
|
|
920
|
+
},
|
|
921
|
+
p
|
|
922
|
+
) : E ? E(y, x, w, E) : null;
|
|
923
|
+
},
|
|
924
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
925
|
+
[r, v, u]
|
|
926
|
+
);
|
|
927
|
+
return !t.length && !o ? Ne(S, {
|
|
928
|
+
...c,
|
|
929
|
+
className: L(e, "humany-deflection-list")
|
|
930
|
+
}) : /* @__PURE__ */ l(
|
|
931
|
+
zt,
|
|
932
|
+
{
|
|
933
|
+
...c,
|
|
934
|
+
"data-loading": o,
|
|
935
|
+
className: L(e, "humany-deflection-list"),
|
|
936
|
+
items: t,
|
|
937
|
+
header: n,
|
|
938
|
+
expandable: !!r,
|
|
939
|
+
renderItem: g,
|
|
940
|
+
dispatch: b,
|
|
941
|
+
routing: {
|
|
942
|
+
guide: i
|
|
943
|
+
},
|
|
944
|
+
paramMappers: {
|
|
945
|
+
guide: ({ id: y, title: x }) => ne({
|
|
946
|
+
contactCategory: d,
|
|
947
|
+
guide: y,
|
|
948
|
+
accordion: r ? m : void 0,
|
|
949
|
+
uriName: K(x)
|
|
950
|
+
})
|
|
951
|
+
},
|
|
952
|
+
children: /* @__PURE__ */ l(q, { loading: o })
|
|
953
|
+
}
|
|
954
|
+
);
|
|
955
|
+
}, zt = f(Ze)`
|
|
956
|
+
${re}
|
|
957
|
+
${ie}
|
|
958
|
+
`, jt = f(xt)`
|
|
959
|
+
${ie}
|
|
960
|
+
${re}
|
|
961
|
+
`, _t = f($e)`
|
|
962
|
+
${(e) => ie(e)}
|
|
963
|
+
${re}
|
|
964
|
+
${Te}
|
|
965
|
+
|
|
966
|
+
&& {
|
|
967
|
+
i {
|
|
968
|
+
font-size: 25px;
|
|
969
|
+
width: 1.28571429em;
|
|
970
|
+
text-align: center;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
`, Ft = f(ge)`
|
|
974
|
+
&:focus-visible {
|
|
975
|
+
${te};
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
${Me}
|
|
979
|
+
`, At = f.div`
|
|
980
|
+
display: flex;
|
|
981
|
+
flex-direction: column;
|
|
982
|
+
gap: ${(e) => {
|
|
983
|
+
var t;
|
|
984
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
985
|
+
}};
|
|
986
|
+
`, Gt = f(H)`
|
|
987
|
+
font-weight: bold;
|
|
988
|
+
`, Bt = ({ className: e, ...t }) => {
|
|
989
|
+
const n = Le(), r = z(), o = U(), {
|
|
990
|
+
deflectionHeader: i = "",
|
|
991
|
+
routes: s = {},
|
|
992
|
+
contactMethods: c = [],
|
|
993
|
+
categories: a = [],
|
|
994
|
+
guides: d = [],
|
|
995
|
+
deflectionAccordion: u = !1,
|
|
996
|
+
loading: m = !1
|
|
997
|
+
} = le(), { contactCategory: S, guide: v = "guide" } = s;
|
|
998
|
+
if (!a.length && !c.length && !m)
|
|
999
|
+
return Ne(r, {
|
|
1000
|
+
...t,
|
|
1001
|
+
className: L(e, "humany-contact-category-list")
|
|
1002
|
+
});
|
|
1003
|
+
const {
|
|
1004
|
+
name: b,
|
|
1005
|
+
params: { contactCategory: g }
|
|
1006
|
+
} = o, y = ot(
|
|
1007
|
+
g,
|
|
1008
|
+
a
|
|
1009
|
+
);
|
|
1010
|
+
return c.length ? /* @__PURE__ */ _(Re, { children: [
|
|
1011
|
+
/* @__PURE__ */ l(
|
|
1012
|
+
Ot,
|
|
1013
|
+
{
|
|
1014
|
+
className: e,
|
|
1015
|
+
guides: d,
|
|
1016
|
+
categoryTitle: y && y.title,
|
|
1017
|
+
header: i,
|
|
1018
|
+
route: v,
|
|
1019
|
+
accordion: u,
|
|
1020
|
+
loading: m
|
|
1021
|
+
}
|
|
1022
|
+
),
|
|
1023
|
+
/* @__PURE__ */ l(
|
|
1024
|
+
jt,
|
|
1025
|
+
{
|
|
1026
|
+
"data-loading": m,
|
|
1027
|
+
className: e,
|
|
1028
|
+
contactMethods: c,
|
|
1029
|
+
dispatch: n,
|
|
1030
|
+
children: /* @__PURE__ */ l(q, { loading: m })
|
|
1031
|
+
}
|
|
1032
|
+
)
|
|
1033
|
+
] }) : /* @__PURE__ */ l(
|
|
1034
|
+
_t,
|
|
1035
|
+
{
|
|
1036
|
+
...t,
|
|
1037
|
+
"data-loading": m,
|
|
1038
|
+
className: L(e, "humany-contact-category-list"),
|
|
1039
|
+
items: y && y.items || a,
|
|
1040
|
+
renderItem: ({
|
|
1041
|
+
id: x,
|
|
1042
|
+
title: w,
|
|
1043
|
+
symbol: E,
|
|
1044
|
+
matches: p,
|
|
1045
|
+
items: $,
|
|
1046
|
+
description: h
|
|
1047
|
+
}) => p || $ && $.length ? /* @__PURE__ */ l("li", { "data-contact-category": x, children: /* @__PURE__ */ _(
|
|
1048
|
+
Ft,
|
|
1049
|
+
{
|
|
1050
|
+
routeName: S || b,
|
|
1051
|
+
params: ne({
|
|
1052
|
+
contactCategory: x,
|
|
1053
|
+
uriName: K(w)
|
|
1054
|
+
}),
|
|
1055
|
+
children: [
|
|
1056
|
+
E && /* @__PURE__ */ l(be, { symbol: E }),
|
|
1057
|
+
h != null && h.length ? /* @__PURE__ */ _(At, { children: [
|
|
1058
|
+
/* @__PURE__ */ l(Gt, { children: w }),
|
|
1059
|
+
/* @__PURE__ */ l(H, { children: h })
|
|
1060
|
+
] }) : /* @__PURE__ */ l(H, { children: w })
|
|
1061
|
+
]
|
|
1062
|
+
}
|
|
1063
|
+
) }, x) : null,
|
|
1064
|
+
children: /* @__PURE__ */ l(q, { loading: m })
|
|
1065
|
+
}
|
|
1066
|
+
);
|
|
1067
|
+
}, Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1068
|
+
__proto__: null,
|
|
1069
|
+
default: Bt
|
|
1070
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1071
|
+
export {
|
|
1072
|
+
de as C,
|
|
1073
|
+
Xt as c
|
|
1074
|
+
};
|