@telia-ace/conversational-hub-bot-provider 0.0.8 → 0.0.10

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.
@@ -2,8 +2,8 @@ var it = Object.defineProperty;
2
2
  var nt = (t, e, o) => e in t ? it(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
3
  var _ = (t, e, o) => (nt(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import { jsx as u, jsxs as z, Fragment as st } from "react/jsx-runtime";
5
- import { C as rt, u as ve, a as Ee, b as at, c as ct, d as lt, e as dt, f as mt, g as G, F as he, W as ue, l as ft, h as ht, L as Oe, I as ne, n as p, i as $e, j as Le, k as qe, m as Z, o as J, p as X, q as $, T as je, B as we, r as ke, s as ut, S as j, t as se, v as Fe, w as ge, x as gt, y as V, z as Be, P as De, A as Ge, H as yt, D as pt, E as bt, G as Ne } from "./index-f697afbd.mjs";
6
- import { useContext as Pe, useState as D, useEffect as q, forwardRef as re, useCallback as H, useMemo as vt, useRef as He, useImperativeHandle as $t, Suspense as wt } from "react";
5
+ import { C as rt, u as re, a as Ee, b as at, c as ct, d as lt, e as dt, f as mt, g as G, F as ue, W as ge, l as ft, h as ht, L as Oe, I as ne, n as p, i as $e, j as Le, k as qe, m as Z, o as J, p as X, q as $, T as je, B as we, r as ke, s as ut, S as j, t as se, v as Fe, w as ye, x as gt, y as V, z as Be, P as De, A as Ge, H as yt, D as pt, E as bt, G as Ne } from "./index-4baf1700.mjs";
6
+ import { useContext as Pe, useState as D, useEffect as q, forwardRef as ae, useCallback as H, useMemo as vt, useRef as He, useImperativeHandle as $t, Suspense as wt } from "react";
7
7
  import "react-dom";
8
8
  function W(t = {}) {
9
9
  const {
@@ -26,7 +26,7 @@ function W(t = {}) {
26
26
  typeof t[f] == "string" && (d[f] = t[f]);
27
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), h && (d.sorting = h), 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 g == "string" || typeof g == "number") && (d.tagId = g), typeof b == "string" && (d.tagTitle = b), typeof d.tag == "string" && (d.tag = d.tag.split(",")), d;
28
28
  }
29
- const ye = (t) => {
29
+ const pe = (t) => {
30
30
  if (!t)
31
31
  return "";
32
32
  const e = [
@@ -131,7 +131,7 @@ const ye = (t) => {
131
131
  for (; o !== null; )
132
132
  o === t && (n = !0), o = o.parentNode;
133
133
  return n;
134
- }, pe = (t = {}) => (Object.keys(t).forEach((e) => {
134
+ }, be = (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;
@@ -142,7 +142,7 @@ const ye = (t) => {
142
142
  }
143
143
  }), o);
144
144
  }, Ye = () => Pe(rt), Ct = (t, e) => {
145
- const o = Ye(), n = ve(), [i, s] = D(void 0), a = Ee(), r = t || o.type || "";
145
+ const o = Ye(), n = re(), [i, s] = D(void 0), a = Ee(), r = t || o.type || "";
146
146
  return q(() => {
147
147
  if (r) {
148
148
  let c;
@@ -189,7 +189,7 @@ const ye = (t) => {
189
189
  };
190
190
  }, []), t;
191
191
  }, xe = (t) => {
192
- const e = ve(), o = mt(), [n, i] = D({
192
+ const e = re(), o = mt(), [n, i] = D({
193
193
  name: "",
194
194
  params: {}
195
195
  }), s = Ee();
@@ -203,14 +203,14 @@ const ye = (t) => {
203
203
  (l, { next: { routeData: h } }) => {
204
204
  if (s.current) {
205
205
  const { name: m, params: g } = h;
206
- pe(g), i({ name: m, params: g });
206
+ be(g), i({ name: m, params: g });
207
207
  }
208
208
  }
209
209
  );
210
210
  }, [s, t, e]), q(() => {
211
211
  if (o && o.history && s.current) {
212
212
  const a = o.getRouteData(), { name: r, params: c } = a;
213
- pe(c), i({ name: r, params: c });
213
+ be(c), i({ name: r, params: c });
214
214
  }
215
215
  }, [o, s]), n;
216
216
  };
@@ -267,7 +267,7 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
267
267
  if (e && o)
268
268
  return { type: e, content: o };
269
269
  }
270
- }, be = (t) => t.map((e) => {
270
+ }, ve = (t) => t.map((e) => {
271
271
  const o = {
272
272
  id: e.Id.toString(),
273
273
  title: e.Name,
@@ -276,12 +276,12 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
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 = be(e.Children)), o;
279
+ return e.Children && e.Children.length && (o.items = ve(e.Children)), o;
280
280
  }), L = (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
- })), le = (t) => t.map(({ Id: e, Title: o, DefaultIcon: n, ListNotices: i, Notices: s }) => ({
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
287
  symbol: B(n),
@@ -295,7 +295,7 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
295
295
  modified: h,
296
296
  expandable: l === "listNotice"
297
297
  }))
298
- })), de = ({
298
+ })), me = ({
299
299
  Id: t,
300
300
  Title: e,
301
301
  DefaultIcon: o,
@@ -320,11 +320,11 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
320
320
  const { displayTextBeforeClick: d, textBeforeClick: f } = g;
321
321
  d === "true" && (y.expanded = !1, y.title = f), m.indexOf("phone.text") > -1 ? y.body.phoneNumber = g.phoneNumber : y.body.freetext = g.freetext;
322
322
  }
323
- return (m.indexOf("chat.popup") > -1 || m.indexOf("link") > -1 || m === "custom.adapter" && i === "custom") && (y.body = g, y.body.confirmationFallback = s), m.indexOf("ace") > -1 && (y.body = g), r && r.HasValueComponents && (l ? y.body.form = he.fromLegacyForm(
323
+ return (m.indexOf("chat.popup") > -1 || m.indexOf("link") > -1 || m === "custom.adapter" && i === "custom") && (y.body = g, y.body.confirmationFallback = s), m.indexOf("ace") > -1 && (y.body = g), r && r.HasValueComponents && (l ? y.body.form = ue.fromLegacyForm(
324
324
  t.toString(),
325
325
  r,
326
326
  l
327
- ).get() : y.body.form = he.fromLegacyForm(
327
+ ).get() : y.body.form = ue.fromLegacyForm(
328
328
  t.toString(),
329
329
  r
330
330
  ).get(), a || (y.expanded = y.inline = !1)), y;
@@ -337,7 +337,7 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
337
337
  defaultIcon: B(s),
338
338
  activeIcon: B(a)
339
339
  })
340
- ), me = (t) => t.map(({ Id: e, Title: o, Tags: n, FirstPublishedDate: i, Modified: s }) => ({
340
+ ), fe = (t) => t.map(({ Id: e, Title: o, Tags: n, FirstPublishedDate: i, Modified: s }) => ({
341
341
  id: e.toString(),
342
342
  title: o,
343
343
  tags: K(n),
@@ -364,18 +364,18 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
364
364
  Tags: r,
365
365
  ByCategory: c
366
366
  } = e;
367
- return o.guides = me(n), o.matches = i, o.byCategory = (c || []).map(
367
+ return o.guides = fe(n), o.matches = i, o.byCategory = (c || []).map(
368
368
  ({ Id: l, Matches: h, TotalMatches: m }) => ({
369
369
  id: l,
370
- guides: me(h),
370
+ guides: fe(h),
371
371
  matches: m
372
372
  })
373
- ), o.tags = K(r), o.notificationLists = le(a || []), o.topNotifications = L(s || [], "noticeRowTop"), o.middleNotifications = L(s || [], "noticeRowMiddle"), o.bottomNotifications = L(s || [], "footerNotice"), o;
373
+ ), o.tags = K(r), o.notificationLists = de(a || []), o.topNotifications = L(s || [], "noticeRowTop"), o.middleNotifications = L(s || [], "noticeRowMiddle"), o.bottomNotifications = L(s || [], "footerNotice"), o;
374
374
  }
375
375
  case I.Categories: {
376
376
  const { Children: o, GuidesCountTotal: n } = e;
377
377
  return {
378
- categories: be(o || []),
378
+ categories: ve(o || []),
379
379
  matches: n
380
380
  };
381
381
  }
@@ -422,10 +422,10 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
422
422
  perspective: x,
423
423
  translations: Object.keys(S || {}).reduce((R, E) => (R[E] = S[E].toString(), R), {})
424
424
  },
425
- related: me(s || []),
425
+ related: fe(s || []),
426
426
  dialog: [],
427
427
  contactMethods: (c || []).map(
428
- (R) => de(R)
428
+ (R) => me(R)
429
429
  ),
430
430
  tags: K(f)
431
431
  };
@@ -467,18 +467,18 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
467
467
  } = e;
468
468
  return {
469
469
  contactMethods: (n || []).map(
470
- (r) => de(r)
470
+ (r) => me(r)
471
471
  ),
472
- categories: be(o || []),
472
+ categories: ve(o || []),
473
473
  topNotifications: L(i || [], "noticeRowTop"),
474
474
  middleNotifications: L(i || [], "noticeRowMiddle"),
475
475
  bottomNotifications: L(i || [], "footerNotice"),
476
- notificationLists: le(s || [])
476
+ notificationLists: de(s || [])
477
477
  };
478
478
  }
479
479
  case I.ContactMethod: {
480
480
  const { ContactMethod: o } = e;
481
- return de(o || {});
481
+ return me(o || {});
482
482
  }
483
483
  case I.Tags:
484
484
  case I.TagsOnGuides:
@@ -489,7 +489,7 @@ const ze = (t) => import("./index-5c9c2abf.mjs").then(
489
489
  topNotifications: L(o || [], "noticeRowTop"),
490
490
  middleNotifications: L(o || [], "noticeRowMiddle"),
491
491
  bottomNotifications: L(o || [], "footerNotice"),
492
- notificationLists: le(n || [])
492
+ notificationLists: de(n || [])
493
493
  };
494
494
  }
495
495
  default:
@@ -524,7 +524,7 @@ const Se = (t) => {
524
524
  }
525
525
  }, Tt = async (t) => {
526
526
  const { invoke: e } = t.get("$widget");
527
- return await e("renderState") === ue.hidden;
527
+ return await e("renderState") === ge.hidden;
528
528
  };
529
529
  class Q {
530
530
  constructor(e, o) {
@@ -543,7 +543,7 @@ class Q {
543
543
  ), this.events.subscribe(
544
544
  "widget:render-state-changed",
545
545
  (n, { next: i, previous: s }) => {
546
- s === ue.hidden && i === ue.open && this.fetchAllUnresolvedQueries();
546
+ s === ge.hidden && i === ge.open && this.fetchAllUnresolvedQueries();
547
547
  }
548
548
  );
549
549
  }
@@ -557,7 +557,7 @@ class Q {
557
557
  }
558
558
  fetch(e, o, n) {
559
559
  return new Promise((i, s) => {
560
- o.take && (this.lastTake = +(o.take || 0)), pe(o);
560
+ o.take && (this.lastTake = +(o.take || 0)), be(o);
561
561
  const a = Se(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)) {
@@ -790,7 +790,7 @@ const At = ({
790
790
  ...g,
791
791
  guide: o,
792
792
  connection: d,
793
- uriName: ye(o === b ? y : t)
793
+ uriName: pe(o === b ? y : t)
794
794
  });
795
795
  break;
796
796
  case "link":
@@ -809,7 +809,7 @@ const At = ({
809
809
  }
810
810
  );
811
811
  };
812
- re(
812
+ ae(
813
813
  ({ className: t, dialog: e, ...o }, n) => e.length ? /* @__PURE__ */ u(
814
814
  It,
815
815
  {
@@ -1171,7 +1171,7 @@ const Ot = p(we)`
1171
1171
  `;
1172
1172
  }}
1173
1173
  `;
1174
- re(
1174
+ ae(
1175
1175
  ({
1176
1176
  onFeedback: t = () => {
1177
1177
  },
@@ -1289,7 +1289,7 @@ const qt = p(se)`
1289
1289
  `;
1290
1290
  }}
1291
1291
  `, Ft = () => {
1292
- const t = ve(), [e, o] = D([]), n = t.get("favorites");
1292
+ const t = re(), [e, o] = D([]), n = t.get("favorites");
1293
1293
  q(() => {
1294
1294
  if (n) {
1295
1295
  o(n.get());
@@ -1334,13 +1334,13 @@ const qt = p(se)`
1334
1334
  published: h
1335
1335
  }) => {
1336
1336
  const m = c && h ? /* @__PURE__ */ u(Ae, { format: t, timestamp: h }) : null, g = r && l ? /* @__PURE__ */ u(Ae, { format: t, timestamp: l }) : null;
1337
- return !m && !g ? null : /* @__PURE__ */ z(fe, { className: G(e, "humany-metadata"), children: [
1338
- m && /* @__PURE__ */ z(fe, { className: "humany-published", children: [
1337
+ return !m && !g ? null : /* @__PURE__ */ z(he, { className: G(e, "humany-metadata"), children: [
1338
+ m && /* @__PURE__ */ z(he, { className: "humany-published", children: [
1339
1339
  i,
1340
1340
  m,
1341
1341
  o && a && ` ${o.replace("{{editor}}", a)}`
1342
1342
  ] }),
1343
- g && /* @__PURE__ */ z(fe, { className: "humany-modified", children: [
1343
+ g && /* @__PURE__ */ z(he, { className: "humany-modified", children: [
1344
1344
  m && ", ",
1345
1345
  n,
1346
1346
  g,
@@ -1354,7 +1354,7 @@ const qt = p(se)`
1354
1354
  &:not(:last-child) {
1355
1355
  margin-right: 4px;
1356
1356
  }
1357
- `, fe = p(je)`
1357
+ `, he = p(je)`
1358
1358
  font-style: italic;
1359
1359
  `, Dt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ u(
1360
1360
  Ht,
@@ -1364,11 +1364,11 @@ const qt = p(se)`
1364
1364
  renderItem: ({ id: e, symbol: o, title: n }) => o && /* @__PURE__ */ u("li", { "data-tag": e, children: /* @__PURE__ */ u(Yt, { size: 18, symbol: o, title: n }) }, e)
1365
1365
  }
1366
1366
  ) : null;
1367
- re(({ title: t, id: e, route: o, symbolSize: n, collapseUri: i, children: s }, a) => {
1367
+ ae(({ title: t, id: e, route: o, symbolSize: n, collapseUri: i, children: s }, a) => {
1368
1368
  const { params: r } = xe();
1369
1369
  return /* @__PURE__ */ z(Gt, { ref: a, "data-guide": e, children: [
1370
1370
  /* @__PURE__ */ u(
1371
- ge,
1371
+ ye,
1372
1372
  {
1373
1373
  title: t,
1374
1374
  "aria-label": t,
@@ -1407,7 +1407,7 @@ const Gt = p.li`
1407
1407
  grid-column: 1/-1;
1408
1408
  }
1409
1409
  `;
1410
- re(
1410
+ ae(
1411
1411
  ({
1412
1412
  expandable: t = !1,
1413
1413
  routing: e = {},
@@ -1442,8 +1442,8 @@ re(
1442
1442
  page: Ce = () => W()
1443
1443
  } = o, [Ze, Je] = Ft();
1444
1444
  $t(E, () => k.current);
1445
- const ae = (N) => {
1446
- const { id: O, title: A, tags: P, published: ee, modified: U, publishedBy: te, modifiedBy: ce } = N;
1445
+ const ce = (N) => {
1446
+ const { id: O, title: A, tags: P, published: ee, modified: U, publishedBy: te, modifiedBy: le } = N;
1447
1447
  return /* @__PURE__ */ z(
1448
1448
  "li",
1449
1449
  {
@@ -1451,7 +1451,7 @@ re(
1451
1451
  "has-metadata": (!!(m != null && m.showPublished) && !!ee || !!(m != null && m.showModified) && !!U).toString(),
1452
1452
  children: [
1453
1453
  /* @__PURE__ */ u(
1454
- ge,
1454
+ ye,
1455
1455
  {
1456
1456
  className: "humany-guide-link",
1457
1457
  title: A,
@@ -1496,7 +1496,7 @@ re(
1496
1496
  modified: U,
1497
1497
  published: ee,
1498
1498
  publishedBy: te,
1499
- modifiedBy: ce
1499
+ modifiedBy: le
1500
1500
  }
1501
1501
  )
1502
1502
  ]
@@ -1504,8 +1504,8 @@ re(
1504
1504
  O
1505
1505
  );
1506
1506
  }, Xe = H(
1507
- (N, O, A) => f ? f(N, O, A, ae) : ae(N),
1508
- [f, ae]
1507
+ (N, O, A) => f ? f(N, O, A, ce) : ce(N),
1508
+ [f, ce]
1509
1509
  ), et = H(
1510
1510
  (N) => {
1511
1511
  c && (N.preventDefault(), h("page", Ce()));
@@ -1531,7 +1531,7 @@ re(
1531
1531
  if (U.addedNodes) {
1532
1532
  const te = Array.from(
1533
1533
  U.addedNodes
1534
- ).find((ce) => ce.tagName === "A");
1534
+ ).find((le) => le.tagName === "A");
1535
1535
  te && xt(k.current, document.activeElement) && (F && te.focus(), ee.disconnect());
1536
1536
  }
1537
1537
  });
@@ -1562,7 +1562,7 @@ re(
1562
1562
  ref: k,
1563
1563
  children: [
1564
1564
  g ? /* @__PURE__ */ u(
1565
- ge,
1565
+ ye,
1566
1566
  {
1567
1567
  text: g,
1568
1568
  title: g,
@@ -2045,7 +2045,7 @@ const Qt = p(yt)`
2045
2045
  guideCategory: n,
2046
2046
  phrase: i,
2047
2047
  contactMethod: c,
2048
- uriName: ye(l)
2048
+ uriName: pe(l)
2049
2049
  })
2050
2050
  };
2051
2051
  return /* @__PURE__ */ z(
@@ -2177,53 +2177,52 @@ const ro = ({
2177
2177
  contactMethodId: t,
2178
2178
  guideId: e,
2179
2179
  groupId: o,
2180
- className: n,
2181
- container: i
2180
+ className: n
2182
2181
  }) => {
2183
2182
  var m, g, b;
2184
- const [s, a] = D(), r = Nt(), c = He(!0), l = kt();
2185
- console.log("¤¤¤Container", i), q(() => {
2186
- const { events: y } = i == null ? void 0 : i.get("$widget"), d = y.subscribe(
2183
+ const [i, s] = D(), a = re(), r = Nt(), c = He(!0), l = kt();
2184
+ q(() => {
2185
+ const { events: y } = a.get("$widget"), d = y.subscribe(
2187
2186
  "conversational-hub-provider:form-submitted",
2188
2187
  async (v, C) => {
2189
2188
  var E;
2190
- if (((E = C.form.meta) == null ? void 0 : E.groupId) !== o || C.id !== (s == null ? void 0 : s.id))
2189
+ if (((E = C.form.meta) == null ? void 0 : E.groupId) !== o || C.id !== (i == null ? void 0 : i.id))
2191
2190
  return;
2192
2191
  l && (C.form.meta || (C.form.meta = {}), C.form.meta.conversation = l);
2193
- const M = await (i == null ? void 0 : i.getAsync(
2192
+ const M = await a.getAsync(
2194
2193
  "contactMethods"
2195
- )), w = {
2196
- ...s,
2194
+ ), w = {
2195
+ ...i,
2197
2196
  body: {
2198
- ...s.body,
2197
+ ...i.body,
2199
2198
  form: C.form
2200
2199
  }
2201
2200
  }, { errors: S, valid: x, errorTypes: Y } = await M.validate(
2202
2201
  w
2203
2202
  );
2204
2203
  if (!x) {
2205
- const F = new he(s.body.form);
2206
- a(void 0), F.setValidationErrors(S), w.body = {
2204
+ const F = new ue(i.body.form);
2205
+ s(void 0), F.setValidationErrors(S), w.body = {
2207
2206
  ...w.body,
2208
2207
  form: F.get()
2209
- }, a({ ...w });
2208
+ }, s({ ...w });
2210
2209
  return;
2211
2210
  }
2212
2211
  const R = await M.submit(w);
2213
- w.confirmation = R, a(w);
2212
+ w.confirmation = R, s(w);
2214
2213
  }
2215
2214
  ), f = y.subscribe(
2216
2215
  "bot-provider:evaluate",
2217
2216
  async (v, C) => {
2218
2217
  if (C.id !== t)
2219
2218
  return;
2220
- const w = await (await (i == null ? void 0 : i.getAsync(
2219
+ const w = await (await a.getAsync(
2221
2220
  "contactMethods"
2222
- ))).evaluate(s);
2221
+ )).evaluate(i);
2223
2222
  let S = {
2224
- ...s,
2223
+ ...i,
2225
2224
  body: {
2226
- ...s.body,
2225
+ ...i.body,
2227
2226
  form: w
2228
2227
  }
2229
2228
  };
@@ -2235,16 +2234,16 @@ const ro = ({
2235
2234
  S = {
2236
2235
  ...S,
2237
2236
  body: x
2238
- }, a(S);
2237
+ }, s(S);
2239
2238
  }
2240
2239
  );
2241
2240
  return () => {
2242
2241
  d(), f();
2243
2242
  };
2244
- }, [i, s, a, l]);
2243
+ }, [a, i, s, l]);
2245
2244
  const h = H(
2246
2245
  async (y) => {
2247
- const f = await (await Q.getInstance(i)).fetch(
2246
+ const f = await (await Q.getInstance(a)).fetch(
2248
2247
  Ke.ContactMethod,
2249
2248
  {
2250
2249
  contactMethodId: y,
@@ -2258,27 +2257,27 @@ const ro = ({
2258
2257
  });
2259
2258
  if (f.body = v, f.body.guideId = e, !c.current)
2260
2259
  return null;
2261
- a(f);
2260
+ s(f);
2262
2261
  },
2263
2262
  // eslint-disable-next-line react-hooks/exhaustive-deps
2264
2263
  [c]
2265
2264
  );
2266
2265
  return q(() => (h(t), () => {
2267
2266
  c.current = !1;
2268
- }), [t, h]), s ? /* @__PURE__ */ u(
2267
+ }), [t, h]), i ? /* @__PURE__ */ u(
2269
2268
  eo,
2270
2269
  {
2271
- ...s,
2270
+ ...i,
2272
2271
  body: {
2273
- ...s.body,
2274
- form: s.body.form ? {
2275
- ...s.body.form,
2276
- data: (m = s.body.form) == null ? void 0 : m.data,
2277
- layout: { ...s.body.form.layout },
2278
- meta: (g = s.body.form) == null ? void 0 : g.meta,
2279
- schema: (b = s.body.form) == null ? void 0 : b.schema
2272
+ ...i.body,
2273
+ form: i.body.form ? {
2274
+ ...i.body.form,
2275
+ data: (m = i.body.form) == null ? void 0 : m.data,
2276
+ layout: { ...i.body.form.layout },
2277
+ meta: (g = i.body.form) == null ? void 0 : g.meta,
2278
+ schema: (b = i.body.form) == null ? void 0 : b.schema
2280
2279
  } : void 0,
2281
- guideId: s.body.guideId
2280
+ guideId: i.body.guideId
2282
2281
  },
2283
2282
  inline: !0,
2284
2283
  expanded: !0,
@@ -10368,8 +10368,7 @@ const hd = ({
10368
10368
  {
10369
10369
  contactMethodId: g.content.id,
10370
10370
  groupId: u.id,
10371
- guideId: g.content.guideId,
10372
- container: t
10371
+ guideId: g.content.guideId
10373
10372
  }
10374
10373
  ],
10375
10374
  group: u
@@ -10496,7 +10495,7 @@ class vd {
10496
10495
  });
10497
10496
  }
10498
10497
  }
10499
- const gd = "@telia-ace/conversational-hub-bot-provider", yd = "0.0.8", bd = "./index.js", wd = "./index.d.ts", xd = {
10498
+ const gd = "@telia-ace/conversational-hub-bot-provider", yd = "0.0.10", bd = "./index.js", wd = "./index.d.ts", xd = {
10500
10499
  ".": {
10501
10500
  import: "./index.mjs",
10502
10501
  require: "./index.js"
@@ -10529,7 +10528,7 @@ const gd = "@telia-ace/conversational-hub-bot-provider", yd = "0.0.8", bd = "./i
10529
10528
  ce.info((Ke == null ? void 0 : Ke.name) + " version: " + (Ke == null ? void 0 : Ke.version)), cd(
10530
10529
  t,
10531
10530
  en.ContactMethod,
10532
- import("./contact-method-93e1c90e.mjs")
10531
+ import("./contact-method-fdaa9cb6.mjs")
10533
10532
  );
10534
10533
  const d = await st(
10535
10534
  t,