@telia-ace/knowledge-widget-types-grid 1.1.1-rc.1 → 1.1.1-rc.2

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