@telia-ace/knowledge-widget-bot-provider 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.
Files changed (31) hide show
  1. package/{contact-method-a18f6436.mjs → contact-method-20fd0394.mjs} +61 -58
  2. package/contact-method-63fbd19d.js +99 -0
  3. package/contact-method-list-43c65663.js +28 -0
  4. package/{contact-method-list-814eb03f.mjs → contact-method-list-97120c25.mjs} +18 -14
  5. package/feedback-list-98ceac5a.mjs +84 -0
  6. package/feedback-list-e263431c.js +25 -0
  7. package/index-01541f60.js +1181 -0
  8. package/index-66306883.mjs +6932 -0
  9. package/index.js +1 -1
  10. package/index.mjs +6 -2
  11. package/{no-good-alternative-2d562ff9.mjs → no-good-alternative-03d6bcb7.mjs} +19 -15
  12. package/no-good-alternative-587beaeb.js +15 -0
  13. package/{notification-list-9fca63ae.mjs → notification-list-0c267dd1.mjs} +16 -12
  14. package/notification-list-0f1ef293.js +8 -0
  15. package/{notification-list-291a2001.mjs → notification-list-16d93d9e.mjs} +121 -118
  16. package/notification-list-6c9ed67a.js +546 -0
  17. package/package.json +9 -9
  18. package/styles-094b07e5.js +4 -0
  19. package/{styles-ad5c7069.mjs → styles-95d5aa50.mjs} +3 -3
  20. package/{use-dispatch-951d7a5c.js → use-dispatch-21581b7b.js} +1 -1
  21. package/{use-dispatch-97d3af39.mjs → use-dispatch-a4fd0411.mjs} +1 -1
  22. package/contact-method-a9506b8c.js +0 -99
  23. package/contact-method-list-b5815c14.js +0 -28
  24. package/feedback-list-04b512a4.mjs +0 -80
  25. package/feedback-list-e7973adc.js +0 -25
  26. package/index-07363705.js +0 -1214
  27. package/index-cc31f772.mjs +0 -10810
  28. package/no-good-alternative-d31e7d52.js +0 -15
  29. package/notification-list-876b3f3d.js +0 -546
  30. package/notification-list-f9c4cafe.js +0 -8
  31. package/styles-15c941d4.js +0 -4
@@ -2,11 +2,14 @@ var oe = Object.defineProperty;
2
2
  var re = (n, e, t) => e in n ? oe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var q = (n, e, t) => (re(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { jsx as v, jsxs as V } from "react/jsx-runtime";
5
- import { u as Y, a as ae, C as ce, n as L, P as de, h as Z, c as j, H as le, g as ue, b as ee, l as he, S as ge, L as fe, T as me, d as be, I as ye, i as pe, e as te, F as H, W as K, f as Ce, j as ve, k as W } from "./index-cc31f772.mjs";
6
- import { u as we, c as ke, f as Me, r as Ne } from "./notification-list-291a2001.mjs";
5
+ import L from "@emotion/styled";
6
+ import { u as Y, a as ae, C as ce, P as de, h as Z, H as le, g as ue, b as ee, l as he, S as ge, L as me, T as fe, c as be, I as ye, i as pe, d as te, F as H, W as K, e as Ce, f as ve, j as W } from "./index-66306883.mjs";
7
+ import { u as we, c as Me, f as ke, r as Ne } from "./notification-list-16d93d9e.mjs";
8
+ import { css as j } from "@emotion/react";
7
9
  import { useState as ne, useEffect as Q, useContext as xe, Suspense as Se, useRef as $e, useCallback as Re } from "react";
8
10
  import "react-dom";
9
- import { a as Ae, u as Le } from "./use-dispatch-97d3af39.mjs";
11
+ import "react-transition-group";
12
+ import { a as Ae, u as Le } from "./use-dispatch-a4fd0411.mjs";
10
13
  const G = (n, e) => {
11
14
  let t = !0;
12
15
  return Object.keys(n).length !== Object.keys(e).length || Object.keys(n).some((i) => !Object.keys(e).some((c) => i === c)) ? !1 : (Object.keys(n).forEach((i) => {
@@ -70,7 +73,7 @@ const Oe = L(le)`
70
73
  {
71
74
  title: `client-name: ${n.clientName}, id: ${n.id}`,
72
75
  className: "humany-non-resolved-contact-method",
73
- children: /* @__PURE__ */ v(me, { variant: "h5", children: "Non resolved Contact Method type" })
76
+ children: /* @__PURE__ */ v(fe, { variant: "h5", children: "Non resolved Contact Method type" })
74
77
  }
75
78
  ) : null;
76
79
  const o = (c = {}) => {
@@ -79,34 +82,34 @@ const Oe = L(le)`
79
82
  title: l,
80
83
  clientName: h,
81
84
  symbol: g,
82
- inline: m,
85
+ inline: f,
83
86
  onClick: w = () => {
84
87
  },
85
88
  description: u,
86
89
  htmlParseInstruction: b,
87
90
  className: d,
88
- disabled: f,
91
+ disabled: m,
89
92
  guideId: C,
90
- dispatch: k = () => {
93
+ dispatch: M = () => {
91
94
  },
92
95
  expanded: y
93
- } = r, M = m ? {
96
+ } = r, k = f ? {
94
97
  onKeyDown: (p) => {
95
- p.key && p.key === "Enter" && (w(p, r), p.defaultPrevented || !y && k("expand", a));
98
+ p.key && p.key === "Enter" && (w(p, r), p.defaultPrevented || !y && M("expand", a));
96
99
  },
97
100
  onClick: (p) => {
98
- w(p, r), p.defaultPrevented || !y && k("expand", a);
101
+ w(p, r), p.defaultPrevented || !y && M("expand", a);
99
102
  }
100
103
  } : {
101
104
  onClick: (p) => w(p, r),
102
105
  routeName: "contact-method",
103
- params: ke({
106
+ params: Me({
104
107
  contactCategory: t,
105
108
  guideId: C,
106
109
  guideCategory: s,
107
110
  phrase: i,
108
111
  contactMethod: a,
109
- uriName: Me(l)
112
+ uriName: ke(l)
110
113
  })
111
114
  };
112
115
  return /* @__PURE__ */ V(
@@ -115,11 +118,11 @@ const Oe = L(le)`
115
118
  title: l,
116
119
  "aria-label": l,
117
120
  className: d,
118
- disabled: f,
121
+ disabled: m,
119
122
  description: u,
120
123
  "data-client-name": h,
121
124
  ...c,
122
- ...M,
125
+ ...k,
123
126
  children: [
124
127
  g && /* @__PURE__ */ v(be, { symbol: g }),
125
128
  u ? /* @__PURE__ */ V("div", { className: "humany-contact-link-rich-content", children: [
@@ -164,7 +167,7 @@ const Oe = L(le)`
164
167
  var e;
165
168
  return (e = n.theme.fonts) == null ? void 0 : e.large;
166
169
  }};
167
- `, Ee = L(fe)`
170
+ `, Ee = L(me)`
168
171
  ${(n) => Te(n)}
169
172
 
170
173
  &:focus-visible {
@@ -232,7 +235,7 @@ const Oe = L(le)`
232
235
  `;
233
236
  }, je = L(ye)`
234
237
  ${(n) => Be(n)}
235
- `, Xe = ({
238
+ `, et = ({
236
239
  contactMethods: n,
237
240
  children: e,
238
241
  guideId: t,
@@ -271,8 +274,8 @@ const Oe = L(le)`
271
274
  null,
272
275
  n
273
276
  );
274
- return o.subscribe("widget:settings-updated", (g, { data: m }) => {
275
- m && m.projection !== c && h.proxy.setBaseUrl(m.projection);
277
+ return o.subscribe("widget:settings-updated", (g, { data: f }) => {
278
+ f && f.projection !== c && h.proxy.setBaseUrl(f.projection);
276
279
  }), h;
277
280
  })), Ue = (n, e) => () => {
278
281
  const t = (i) => {
@@ -326,7 +329,7 @@ const Oe = L(le)`
326
329
  Form: r,
327
330
  Description: a
328
331
  }, l) => {
329
- const { Adapter: h } = s || { Adapter: {} }, { ClientName: g = "", Settings: m = {}, CustomClientName: w = "" } = h, u = {
332
+ const { Adapter: h } = s || { Adapter: {} }, { ClientName: g = "", Settings: f = {}, CustomClientName: w = "" } = h, u = {
330
333
  id: n.toString(),
331
334
  title: e,
332
335
  description: a,
@@ -337,10 +340,10 @@ const Oe = L(le)`
337
340
  body: {}
338
341
  };
339
342
  if (g.indexOf("phone") > -1 || g.indexOf("freetext") > -1) {
340
- const { displayTextBeforeClick: b, textBeforeClick: d } = m;
341
- b === "true" && (u.expanded = !1, u.title = d), g.indexOf("phone.text") > -1 ? u.body.phoneNumber = m.phoneNumber : u.body.freetext = m.freetext;
343
+ const { displayTextBeforeClick: b, textBeforeClick: d } = f;
344
+ b === "true" && (u.expanded = !1, u.title = d), g.indexOf("phone.text") > -1 ? u.body.phoneNumber = f.phoneNumber : u.body.freetext = f.freetext;
342
345
  }
343
- return (g.indexOf("chat.popup") > -1 || g.indexOf("link") > -1 || g === "custom.adapter" && i === "custom") && (u.body = m, u.body.confirmationFallback = o), g.indexOf("ace") > -1 && (u.body = m), r && r.HasValueComponents && (l ? u.body.form = H.fromLegacyForm(n.toString(), r, l).get() : u.body.form = H.fromLegacyForm(n.toString(), r).get(), c || (u.expanded = u.inline = !1)), u;
346
+ return (g.indexOf("chat.popup") > -1 || g.indexOf("link") > -1 || g === "custom.adapter" && i === "custom") && (u.body = f, u.body.confirmationFallback = o), g.indexOf("ace") > -1 && (u.body = f), r && r.HasValueComponents && (l ? u.body.form = H.fromLegacyForm(n.toString(), r, l).get() : u.body.form = H.fromLegacyForm(n.toString(), r).get(), c || (u.expanded = u.inline = !1)), u;
344
347
  }, O = (n = []) => n.map(({ Id: e, Title: t, TotalMatches: s, Symbol: i, DefaultIcon: o, ActiveIcon: c }) => ({
345
348
  id: e.toString(),
346
349
  title: t,
@@ -400,22 +403,22 @@ const Oe = L(le)`
400
403
  EnableFeedback: l,
401
404
  HandoverExists: h,
402
405
  FirstPublishedDate: g,
403
- Modified: m,
406
+ Modified: f,
404
407
  ModifiedByDisplayName: w,
405
408
  FirstPublishedByDisplayName: u,
406
409
  Categories: b,
407
410
  Tags: d,
408
- SeoMetaDescription: f,
411
+ SeoMetaDescription: m,
409
412
  SeoAllowIndex: C,
410
- Perspectives: k,
413
+ Perspectives: M,
411
414
  PerspectiveKey: y,
412
- Translations: M
413
- } = e, p = y || Object.values(k).find((N) => N === r) || k.Default || null, U = {
415
+ Translations: k
416
+ } = e, p = y || Object.values(M).find((N) => N === r) || M.Default || null, U = {
414
417
  guide: {
415
418
  id: t.toString(),
416
419
  title: s,
417
420
  body: i,
418
- modified: m,
421
+ modified: f,
419
422
  published: g,
420
423
  modifiedBy: w,
421
424
  publishedBy: u,
@@ -423,11 +426,11 @@ const Oe = L(le)`
423
426
  categories: b,
424
427
  hasHandover: h,
425
428
  allowFeedback: l,
426
- seoMetaDescription: f,
429
+ seoMetaDescription: m,
427
430
  seoAllowIndex: C,
428
- perspectives: k,
431
+ perspectives: M,
429
432
  perspective: p,
430
- translations: Object.keys(M || {}).reduce((N, R) => (N[R] = M[R].toString(), N), {})
433
+ translations: Object.keys(k || {}).reduce((N, R) => (N[R] = k[R].toString(), N), {})
431
434
  },
432
435
  related: F(o || []),
433
436
  dialog: [],
@@ -611,7 +614,7 @@ class T {
611
614
  connection: l = "",
612
615
  guideId: h,
613
616
  expandCategories: g = "descendants",
614
- currentCategory: m,
617
+ currentCategory: f,
615
618
  sorting: w = "popularity-descending",
616
619
  guideIds: u = []
617
620
  } = t, b = s.toString().trim();
@@ -619,8 +622,8 @@ class T {
619
622
  return Promise.resolve();
620
623
  switch (e) {
621
624
  case "match": {
622
- const d = (f) => {
623
- const [C, k] = f.split("-");
625
+ const d = (m) => {
626
+ const [C, M] = m.split("-");
624
627
  return {
625
628
  type: (/* @__PURE__ */ new Map([
626
629
  ["popularity", "popularity"],
@@ -628,13 +631,13 @@ class T {
628
631
  ["modified", "lastModified"],
629
632
  ["published", "firstPublished"]
630
633
  ])).get(C),
631
- direction: k
634
+ direction: M
632
635
  };
633
636
  };
634
637
  return u.length ? this.matchingClient.customRequest("guides", "POST", {
635
638
  configuration: { ids: u, take: +a }
636
639
  }).then(
637
- (f) => f && this.handleResponse(f, e, t)
640
+ (m) => m && this.handleResponse(m, e, t)
638
641
  ) : this.matchingClient.match(b, {
639
642
  categories: i === "0" ? [] : Array.isArray(i) ? i : [+i],
640
643
  take: +a,
@@ -642,7 +645,7 @@ class T {
642
645
  sorting: d(w),
643
646
  ids: u
644
647
  }).then(
645
- (f) => f && this.handleResponse(f, e, t)
648
+ (m) => m && this.handleResponse(m, e, t)
646
649
  );
647
650
  }
648
651
  case "match-by-category":
@@ -658,11 +661,11 @@ class T {
658
661
  return this.matchingClient.getGuide(h, { connectionId: l }).then((d) => {
659
662
  d && this.handleResponse(d, e, t);
660
663
  }).catch((d) => {
661
- const f = {
664
+ const m = {
662
665
  message: "Something went wrong.",
663
666
  status: d.status || 400
664
667
  };
665
- f.status === 404 && (f.message = "The guide could not be found."), this.handleResponse({}, e, t, f);
668
+ m.status === 404 && (m.message = "The guide could not be found."), this.handleResponse({}, e, t, m);
666
669
  });
667
670
  case "categories":
668
671
  return this.matchingClient.getCategories({
@@ -679,7 +682,7 @@ class T {
679
682
  (d) => d && this.handleResponse(d, e, t)
680
683
  );
681
684
  case "contact-method":
682
- return this.matchingClient.getContactMethod(+c, { guideId: h, currentCategory: m }).then(
685
+ return this.matchingClient.getContactMethod(+c, { guideId: h, currentCategory: f }).then(
683
686
  (d) => d && this.handleResponse(d, e, t)
684
687
  );
685
688
  case "tags":
@@ -770,17 +773,17 @@ const Fe = ({
770
773
  groupId: t,
771
774
  className: s
772
775
  }) => {
773
- var g, m, w;
776
+ var g, f, w;
774
777
  const [i, o] = ne(), c = Y(), r = Le(), a = $e(!0), l = qe();
775
778
  Q(() => {
776
779
  const { events: u } = c.get("$widget"), b = u.subscribe(
777
780
  "bot-provider:form-submitted",
778
- async (f, C) => {
781
+ async (m, C) => {
779
782
  var R;
780
783
  if (((R = C.form.meta) == null ? void 0 : R.groupId) !== t || C.id !== i.id)
781
784
  return;
782
785
  l && (C.form.meta || (C.form.meta = {}), C.form.meta.conversation = l);
783
- const k = await c.getAsync(
786
+ const M = await c.getAsync(
784
787
  "contactMethods"
785
788
  ), y = {
786
789
  ...i,
@@ -788,44 +791,44 @@ const Fe = ({
788
791
  ...i.body,
789
792
  form: C.form
790
793
  }
791
- }, { errors: M, valid: p, errorTypes: U } = await k.validate(
794
+ }, { errors: k, valid: p, errorTypes: U } = await M.validate(
792
795
  y
793
796
  );
794
797
  if (!p) {
795
798
  const E = new H(i.body.form);
796
- o(void 0), E.setValidationErrors(M), y.body = {
799
+ o(void 0), E.setValidationErrors(k), y.body = {
797
800
  ...y.body,
798
801
  form: E.get()
799
802
  }, o({ ...y });
800
803
  return;
801
804
  }
802
- const N = await k.submit(y);
805
+ const N = await M.submit(y);
803
806
  y.confirmation = N, o(y);
804
807
  }
805
808
  ), d = u.subscribe(
806
809
  "bot-provider:evaluate",
807
- async (f, C) => {
810
+ async (m, C) => {
808
811
  if (C.id !== n)
809
812
  return;
810
813
  const y = await (await c.getAsync(
811
814
  "contactMethods"
812
815
  )).evaluate(i);
813
- let M = {
816
+ let k = {
814
817
  ...i,
815
818
  body: {
816
819
  ...i.body,
817
820
  form: y
818
821
  }
819
822
  };
820
- const p = W(M, {
823
+ const p = W(k, {
821
824
  submit: "Submit",
822
825
  errors: {},
823
826
  meta: { groupId: t }
824
827
  });
825
- M = {
826
- ...M,
828
+ k = {
829
+ ...k,
827
830
  body: p
828
- }, o(M);
831
+ }, o(k);
829
832
  }
830
833
  );
831
834
  return () => {
@@ -841,12 +844,12 @@ const Fe = ({
841
844
  guideId: e
842
845
  },
843
846
  { noCache: !0 }
844
- ), f = W(d, {
847
+ ), m = W(d, {
845
848
  submit: "Submit",
846
849
  errors: {},
847
850
  meta: { groupId: t }
848
851
  });
849
- if (d.body = f, d.body.guideId = e, !a.current)
852
+ if (d.body = m, d.body.guideId = e, !a.current)
850
853
  return null;
851
854
  o(d);
852
855
  },
@@ -865,7 +868,7 @@ const Fe = ({
865
868
  ...i.body.form,
866
869
  data: (g = i.body.form) == null ? void 0 : g.data,
867
870
  layout: { ...i.body.form.layout },
868
- meta: (m = i.body.form) == null ? void 0 : m.meta,
871
+ meta: (f = i.body.form) == null ? void 0 : f.meta,
869
872
  schema: (w = i.body.form) == null ? void 0 : w.schema
870
873
  } : void 0,
871
874
  guideId: i.body.guideId
@@ -884,13 +887,13 @@ const Fe = ({
884
887
  var e;
885
888
  return (e = n.theme.sizes) == null ? void 0 : e.medium;
886
889
  }};
887
- `, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
890
+ `, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
888
891
  __proto__: null,
889
892
  default: Fe
890
893
  }, Symbol.toStringTag, { value: "Module" }));
891
894
  export {
892
- Xe as C,
895
+ et as C,
893
896
  Fe as a,
894
897
  ie as b,
895
- Ye as c
898
+ tt as c
896
899
  };
@@ -0,0 +1,99 @@
1
+ "use strict";var ee=Object.defineProperty;var te=(n,e,t)=>e in n?ee(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var O=(n,e,t)=>(te(n,typeof e!="symbol"?e+"":e,t),t);const v=require("react/jsx-runtime"),j=require("@emotion/styled"),u=require("./index-01541f60.js"),U=require("./notification-list-6c9ed67a.js"),P=require("@emotion/react"),q=require("react");require("react-dom");require("react-transition-group");const X=require("./use-dispatch-21581b7b.js"),B=(n,e)=>{let t=!0;return Object.keys(n).length!==Object.keys(e).length||Object.keys(n).some(i=>!Object.keys(e).some(c=>i===c))?!1:(Object.keys(n).forEach(i=>{if(t){const o=typeof n[i]>"u"?"":n[i],c=typeof e[i]>"u"?"":e[i];t=o.toString()===c.toString()}}),t)},ne=(n,e)=>{const t=X.useComponentDescriptor(),s=u.useContainer(),[i,o]=q.useState(void 0),c=u.useIsMounted(),r=n||t.type||"";return q.useEffect(()=>{if(r){let a;return(e||s).getAsync("componentResolver").then(l=>{if(c.current){const g=l.getComponent(r);o(g)}a=l.registerResolver(r,g=>{c.current&&o(g)})}),()=>{a&&a()}}},[c,r,e,s]),i},ie=()=>q.useContext(u.ConversationContext);var F=(n=>(n.guide="guide",n.link="link",n.default="default",n))(F||{});j(u.Paragraph)`
2
+ ${n=>{var e;return u.headingElement(n)("h1",P.css`
3
+ font-weight: normal;
4
+ font-size: ${(e=n.theme.fonts)==null?void 0:e.medium};
5
+ `)}}
6
+ `;const se=j(u.Html)`
7
+ ${u.genericHtml}
8
+ font-weight: 300;
9
+ line-height: 1.5em;
10
+ button:focus-visible {
11
+ ${u.borderTabStyle};
12
+ }
13
+
14
+ a:focus-visible {
15
+ ${u.linkTabStyle};
16
+ }
17
+ `,V=n=>{const e=ne(n.clientName),{params:{contactCategory:t,guideCategory:s,phrase:i}}=U.useRouteData();if(typeof e>"u")return null;if(e===null)return process.env.NODE_ENV!=="production"?v.jsx(ae,{title:`client-name: ${n.clientName}, id: ${n.id}`,className:"humany-non-resolved-contact-method",children:v.jsx(u.Typography,{variant:"h5",children:"Non resolved Contact Method type"})}):null;const o=(c={})=>{const r={...n,...c},{id:a,title:l,clientName:g,symbol:f,inline:b,onClick:x=()=>{},description:h,htmlParseInstruction:y,className:d,disabled:m,guideId:w,dispatch:M=()=>{},expanded:p}=r,k=b?{onKeyDown:C=>{C.key&&C.key==="Enter"&&(x(C,r),C.defaultPrevented||!p&&M("expand",a))},onClick:C=>{x(C,r),C.defaultPrevented||!p&&M("expand",a)}}:{onClick:C=>x(C,r),routeName:"contact-method",params:U.createParams({contactCategory:t,guideId:w,guideCategory:s,phrase:i,contactMethod:a,uriName:U.formatUrl(l)})};return v.jsxs(re,{title:l,"aria-label":l,className:d,disabled:m,description:h,"data-client-name":g,...c,...k,children:[f&&v.jsx(u.SymbolBadge,{symbol:f}),h?v.jsxs("div",{className:"humany-contact-link-rich-content",children:[v.jsx(W,{children:l}),v.jsx(se,{html:h,htmlParseInstruction:y})]}):v.jsx(W,{children:l})]})};return n.expanded?v.jsx(q.Suspense,{fallback:null,children:v.jsx(e,{...n,renderDefault:o})}):o()},oe=n=>{var e,t,s,i,o,c,r,a;return P.css`
18
+ display: flex;
19
+ padding: ${(e=n.theme.sizes)==null?void 0:e.large};
20
+ ${n.description?"":"align-items: center;"}
21
+ text-decoration: none;
22
+ span {
23
+ display: inline-block;
24
+ color: ${(t=n.theme.colors)==null?void 0:t.text};
25
+ }
26
+ i {
27
+ font-size: ${(s=n.theme.fonts)==null?void 0:s.large};
28
+ margin: 0 ${(i=n.theme.sizes)==null?void 0:i.large} 0 0;
29
+ min-height: ${(o=n.theme.fonts)==null?void 0:o.large};
30
+ min-width: ${(c=n.theme.fonts)==null?void 0:c.large};
31
+ line-height: ${(r=n.theme.fonts)==null?void 0:r.large};
32
+ display: inline-block;
33
+ vertical-align: bottom;
34
+ color: ${(a=n.theme.colors)==null?void 0:a.text};
35
+ }
36
+ `},W=j(u.StyledText)`
37
+ line-height: ${n=>{var e;return(e=n.theme.fonts)==null?void 0:e.large}};
38
+ `,re=j(u.Link)`
39
+ ${n=>oe(n)}
40
+
41
+ &:focus-visible {
42
+ ${u.borderTabStyle};
43
+ }
44
+ `,ae=j.div`
45
+ text-align: center;
46
+ display: block;
47
+ ${n=>{var e,t;return typeof((e=n.theme.colors)==null?void 0:e.warning)<"u"&&`color: ${(t=n.theme.colors)==null?void 0:t.warning};`}}
48
+ `,ce=n=>{var e,t,s;return P.css`
49
+ ${u.itemList(n)}
50
+
51
+ > div {
52
+ padding: ${(e=n.theme.sizes)==null?void 0:e.large};
53
+
54
+ ${u.headingElement(n)("h1",P.css`
55
+ margin: 0;
56
+ `)}
57
+ }
58
+
59
+ > ul {
60
+ &:not(:first-child) {
61
+ border-top: ${n.theme.border};
62
+ }
63
+
64
+ > li {
65
+ margin: 0;
66
+ white-space: normal;
67
+
68
+ > a {
69
+ overflow: hidden;
70
+ }
71
+
72
+ &:first-child > a {
73
+ border-radius: ${`${n.theme.borderRadius} ${n.theme.borderRadius} 0 0`};
74
+ }
75
+
76
+ &:last-child:not(:first-child) > a {
77
+ border-radius: ${`0 0 ${n.theme.borderRadius} ${n.theme.borderRadius}`};
78
+ }
79
+
80
+ &:not(:last-child) {
81
+ border-bottom: ${n.theme.border};
82
+ }
83
+
84
+ > div {
85
+ padding: ${(t=n.theme.sizes)==null?void 0:t.large};
86
+ }
87
+ }
88
+ }
89
+
90
+ @media (hover: hover) {
91
+ a:hover {
92
+ background-color: ${(s=n.theme.colors)==null?void 0:s.accent};
93
+ }
94
+ }
95
+ `},de=j(u.ItemList)`
96
+ ${n=>ce(n)}
97
+ `,le=({contactMethods:n,children:e,guideId:t,dispatch:s,className:i="",itemRenderer:o,action:c=()=>{},header:r=""})=>n.length?v.jsx(de,{header:r,className:u.appendClassNames(i,"humany-contact-list"),items:n,renderItem:o?a=>v.jsx("li",{"data-contact-method":a.id,children:o(a,{action:c,dispatch:s,guideId:t})},a.id):a=>v.jsx("li",{"data-contact-method":a.id,children:v.jsx(V,{...a,action:c,dispatch:s,guideId:t})},a.id),children:e}):null,D=n=>Promise.resolve().then(()=>require("./index-373df3a5.js")).then(({ServiceClient:e,ServiceProxy:t})=>n.get("settings").then(s=>{const{name:i,events:o}=n.get("$widget"),{data:{projection:c="",site:r="current",forceHttps:a=!1}}=s,l=new t(c,{credentials:"same-origin"}),g=new e(l,{funnel:i.replace("_contact-method","").replace("_contact",""),site:ue(r,a)},null,n);return o.subscribe("widget:settings-updated",(f,{data:b})=>{b&&b.projection!==c&&g.proxy.setBaseUrl(b.projection)}),g})),ue=(n,e)=>()=>{const t=i=>{const o=document.createElement("a");return o.href=i,o};let s=window.location;return n==="referrer"&&document.referrer&&(s=t(document.referrer)),[e?"https:":"","//",s.host,s.pathname].join("")},L=n=>{if(n){const{Type:e,Content:t}=n;if(e&&t)return{type:e,content:t}}},_=n=>n.map(e=>{const t={id:e.Id.toString(),title:e.Name,symbol:L(e.DefaultIcon),activeSymbol:e.ActiveIcon&&L(e.ActiveIcon),description:e.Description||e.Attributes&&e.Attributes.description||"",matches:e.GuidesCount};return e.Children&&e.Children.length&&(t.items=_(e.Children)),t}),R=(n,e)=>n.filter(({Type:t})=>t===e).map(({Id:t,Title:s,Body:i})=>({id:t.toString(),title:s,body:i})),H=n=>n.map(({Id:e,Title:t,DefaultIcon:s,ListNotices:i,Notices:o})=>({id:e.toString(),title:t,symbol:L(s),defaultHeaderOptions:{visible:!!i.length},notifications:(i||[]).concat(o||[]).map(({Id:c,Title:r,Body:a,Type:l,Modified:g})=>({id:c.toString(),title:r,body:a,modified:g,expandable:l==="listNotice"}))})),K=({Id:n,Title:e,DefaultIcon:t,Exits:[s],ExitType:i,ConfirmationText:o,ExpandFormAutomatically:c,Form:r,Description:a},l)=>{const{Adapter:g}=s||{Adapter:{}},{ClientName:f="",Settings:b={},CustomClientName:x=""}=g,h={id:n.toString(),title:e,description:a,symbol:L(t),clientName:f==="custom.adapter"?x:f,expanded:!0,inline:!0,body:{}};if(f.indexOf("phone")>-1||f.indexOf("freetext")>-1){const{displayTextBeforeClick:y,textBeforeClick:d}=b;y==="true"&&(h.expanded=!1,h.title=d),f.indexOf("phone.text")>-1?h.body.phoneNumber=b.phoneNumber:h.body.freetext=b.freetext}return(f.indexOf("chat.popup")>-1||f.indexOf("link")>-1||f==="custom.adapter"&&i==="custom")&&(h.body=b,h.body.confirmationFallback=o),f.indexOf("ace")>-1&&(h.body=b),r&&r.HasValueComponents&&(l?h.body.form=u.FormBuilder.fromLegacyForm(n.toString(),r,l).get():h.body.form=u.FormBuilder.fromLegacyForm(n.toString(),r).get(),c||(h.expanded=h.inline=!1)),h},T=(n=[])=>n.map(({Id:e,Title:t,TotalMatches:s,Symbol:i,DefaultIcon:o,ActiveIcon:c})=>({id:e.toString(),title:t,matches:s,symbol:L(o||i),defaultIcon:L(o),activeIcon:L(c)})),Q=n=>n.map(({Id:e,Title:t,Tags:s,FirstPublishedDate:i,Modified:o})=>({id:e.toString(),title:t,tags:T(s),published:i,modified:o})),he=(n,e)=>{switch(n){case $.MatchByCategory:case $.Match:{const t={guides:[],matches:0,topNotifications:[],middleNotifications:[],bottomNotifications:[],notificationLists:[],tags:[],byCategory:[]},{Matches:s,TotalMatches:i,Notices:o,NoticeLists:c,Tags:r,ByCategory:a}=e;return t.guides=Q(s),t.matches=i,t.byCategory=(a||[]).map(({Id:l,Matches:g,TotalMatches:f})=>({id:l,guides:Q(g),matches:f})),t.tags=T(r),t.notificationLists=H(c||[]),t.topNotifications=R(o||[],"noticeRowTop"),t.middleNotifications=R(o||[],"noticeRowMiddle"),t.bottomNotifications=R(o||[],"footerNotice"),t}case $.Categories:{const{Children:t,GuidesCountTotal:s}=e;return{categories:_(t||[]),matches:s}}case $.Guide:{const{Id:t,Title:s,Body:i,Related:o,Options:c,ConnectionId:r,ContactMethods:a,EnableFeedback:l,HandoverExists:g,FirstPublishedDate:f,Modified:b,ModifiedByDisplayName:x,FirstPublishedByDisplayName:h,Categories:y,Tags:d,SeoMetaDescription:m,SeoAllowIndex:w,Perspectives:M,PerspectiveKey:p,Translations:k}=e,C=p||Object.values(M).find(N=>N===r)||M.Default||null,z={guide:{id:t.toString(),title:s,body:i,modified:b,published:f,modifiedBy:x,publishedBy:h,connection:r,categories:y,hasHandover:g,allowFeedback:l,seoMetaDescription:m,seoAllowIndex:w,perspectives:M,perspective:C,translations:Object.keys(k||{}).reduce((N,A)=>(N[A]=k[A].toString(),N),{})},related:Q(o||[]),dialog:[],contactMethods:(a||[]).map(N=>K(N)),tags:T(d)};return(c||[]).forEach(({CanAccess:N,Description:A,ConnectionId:G,Properties:S})=>{if(!N)return;const I={id:t.toString(),title:A,connection:G,connectionKey:S.ConnectionKey,type:F.default,parent:{id:t.toString(),title:s,tags:T(d)}};if(S.Type==="Guide"||S.Type==="Link")switch(S.Id&&(I.id=S.Id.toString()),S.Uri&&(I.href=S.Uri),S.Target&&(I.target=S.Target),S.Type){case"Guide":I.type=F.guide;break;case"Link":I.type=F.link;break}z.dialog.push(I)}),z}case $.Contacts:{const{Children:t,Matches:s,Notices:i,NoticeLists:o}=e;return{contactMethods:(s||[]).map(r=>K(r)),categories:_(t||[]),topNotifications:R(i||[],"noticeRowTop"),middleNotifications:R(i||[],"noticeRowMiddle"),bottomNotifications:R(i||[],"footerNotice"),notificationLists:H(o||[])}}case $.ContactMethod:{const{ContactMethod:t}=e;return K(t||{})}case $.Tags:case $.TagsOnGuides:return T(e||[]);case $.Notifications:{const{Notices:t,NoticeLists:s}=e;return{topNotifications:R(t||[],"noticeRowTop"),middleNotifications:R(t||[],"noticeRowMiddle"),bottomNotifications:R(t||[],"footerNotice"),notificationLists:H(s||[])}}default:return{}}};var Y=(n=>(n.Guide="guide",n.Guides="guides",n.GuidesByCategory="guides-by-category",n.RowNotifications="row-notices",n.NotificationLists="notification-lists",n.GuideCategories="guide-categories",n.ContactMethodCategories="contact-method-categories",n.ContactMethod="contact-method",n.ContactMethods="contact-methods",n.Tags="tags",n.TagsOnGuides="tagsonguides",n))(Y||{}),$=(n=>(n.Match="match",n.Categories="categories",n.Guide="guide",n.Contacts="contacts",n.ContactMethod="contact-method",n.MatchByCategory="match-by-category",n.Tags="tags",n.TagsOnGuides="tagsonguides",n.Notifications="notifications",n))($||{});const J=n=>{switch(n){case"guides":return"match";case"guides-by-category":return"match-by-category";case"guide":return"guide";case"guide-categories":return"categories";case"contact-method-categories":case"contact-methods":return"contacts";case"contact-method":return"contact-method";case"tags":return"tags";case"tagsonguides":return"tagsonguides";case"notification-lists":case"row-notices":return"notifications";default:throw"error"}},ge=async n=>{const{invoke:e}=n.get("$widget");return await e("renderState")===u.WidgetRenderState.hidden};class E{constructor(e,t){O(this,"queries",new Map);O(this,"lastTake",0);O(this,"events");O(this,"getUnresolvedQueries",()=>{let e=0;return this.queries.forEach((t,s)=>{t.some(o=>!o.resolved)&&(e=1)}),e});this.container=e,this.matchingClient=t,this.events=e.get("$widget").events,this.events.subscribe("widget:settings-updated",()=>this.queries=new Map),this.events.subscribe("widget:render-state-changed",(s,{next:i,previous:o})=>{o===u.WidgetRenderState.hidden&&i===u.WidgetRenderState.open&&this.fetchAllUnresolvedQueries()})}static getInstance(e,t="dataClient"){return u.lock(this)(()=>e.getAsync(t).then(async s=>{let i=await e.getAsync("matchingClient");i||(i=await D(e),e.registerAsync("matchingClient",()=>i));let o=s;return o||(o=new E(e,i),e.registerAsync(t,()=>o)),o}))}fetch(e,t,s){return new Promise((i,o)=>{t.take&&(this.lastTake=+(t.take||0)),U.removeNullAndUndefinedValues(t);const c=J(e);let r=this.queries.get(c)||[],a=r.find(l=>B(l.params,t))||null;if(a&&(s!=null&&s.noCache)){const l=r.findIndex(g=>B(g.params,t));r=[...r.slice(0,l),...r.slice(l+1)],a=null}if(a){const l=r.indexOf(a);if(a.resolved?(this.events.dispatch("data-client:fetched",{params:t,type:c,response:a.data,unresolvedQueries:this.getUnresolvedQueries()}),this.track(a.data,c,a.error),a.data&&a.error?o({error:a.error}):i(a.data)):a.resolvers.push({resolve:i,reject:o}),r.splice(l,1),r.push(a),this.queries.set(c,r),!a.loading&&!a.resolved)return this.runQuery(c,t)}else return r.push({params:t,resolved:!1,loading:!0,data:{},resolvers:[{resolve:i,reject:o}]}),this.queries.set(c,r),this.runQuery(c,t)}).then(i=>u.deepClone(i))}read(e,t){const{select:s}=t,i=J(e);return(this.queries.get(i)||[]).reduce((r,a)=>{if(typeof s=="function"){const l=s(a.data);l&&r.push(l)}else r.push(a.data);return r},[])}feedback(e,t,s){return this.matchingClient.giveFeedback(e,t,s)}setLoadingStatus(e,t,s){const i=this.queries.get(e)||[],o=i.find(c=>B(c.params,t));o&&(o.loading=s),this.queries.set(e,i)}async runQuery(e,t){const{searchPhrase:s="",categories:i="0",contactMethodCategoryId:o="0",contactMethodId:c="0",tagId:r=void 0,take:a=5,connection:l="",guideId:g,expandCategories:f="descendants",currentCategory:b,sorting:x="popularity-descending",guideIds:h=[]}=t,y=s.toString().trim();if(await ge(this.container))return Promise.resolve();switch(e){case"match":{const d=m=>{const[w,M]=m.split("-");return{type:new Map([["popularity","popularity"],["alphabetic","title"],["modified","lastModified"],["published","firstPublished"]]).get(w),direction:M}};return h.length?this.matchingClient.customRequest("guides","POST",{configuration:{ids:h,take:+a}}).then(m=>m&&this.handleResponse(m,e,t)):this.matchingClient.match(y,{categories:i==="0"?[]:Array.isArray(i)?i:[+i],take:+a,tags:r,sorting:d(x),ids:h}).then(m=>m&&this.handleResponse(m,e,t))}case"match-by-category":return this.matchingClient.match(y,{groupByCategory:!0,categories:i==="0"?[]:Array.isArray(i)?i:[+i],take:+a,tags:r}).then(d=>d&&this.handleResponse(d,e,t));case"guide":return this.matchingClient.getGuide(g,{connectionId:l}).then(d=>{d&&this.handleResponse(d,e,t)}).catch(d=>{const m={message:"Something went wrong.",status:d.status||400};m.status===404&&(m.message="The guide could not be found."),this.handleResponse({},e,t,m)});case"categories":return this.matchingClient.getCategories({phrase:y,expand:f,tags:r}).then(d=>d&&this.handleResponse(d,e,t));case"contacts":return g?this.matchingClient.contactMethods(+g,{phrase:y}).then(d=>d&&this.handleResponse(d,e,t)):this.matchingClient.contacts(+o,{phrase:y}).then(d=>d&&this.handleResponse(d,e,t));case"contact-method":return this.matchingClient.getContactMethod(+c,{guideId:g,currentCategory:b}).then(d=>d&&this.handleResponse(d,e,t));case"tags":return this.matchingClient.customRequest("tags","GET",{configuration:{take:999999,phrase:y,categories:i==="0"?[]:Array.isArray(i)?i:[+i]}}).then(d=>d&&this.handleResponse(d,e,t));case"tagsonguides":return this.matchingClient.customRequest("tagsonguides","GET",{configuration:{take:999999,phrase:y,categories:i==="0"?[]:Array.isArray(i)?i:[+i],tags:r}}).then(d=>d&&this.handleResponse(d,e,t));case"notifications":return this.matchingClient.customRequest("notices","GET",{configuration:{phrase:y,categories:i==="0"?[]:Array.isArray(i)?i:[+i]}}).then(d=>d&&this.handleResponse(d,e,t))}}handleResponse(e={},t,s,i){const o=this.queries.get(t)||[],c=o.find(r=>B(r.params,s));if(c){const r=i||he(t,e);this.track(r,t,i),c.resolvers.forEach(l=>{i?l.reject({error:r}):l.resolve(r)});const a=o.indexOf(c);a>-1&&o.splice(a,1),o.push({...c,error:i,resolvers:[],data:r,resolved:!0}),this.setLoadingStatus(t,s,!1),this.queries.set(t,o),i||this.events.dispatch("data-client:fetched",{type:t,params:s,response:r,unresolvedQueries:this.getUnresolvedQueries()})}}fetchAllUnresolvedQueries(){for(const[e,t]of this.queries)t.filter(s=>!s.resolved).forEach(s=>{this.runQuery(e,s.params)})}track(e={},t,s){const i=this.container.get("$widget");i&&!s?i.events.dispatch("tracking:service-client-response",{type:t,data:e}):i&&i.events.dispatch("tracking:service-client-error",{type:t,error:s})}static create(e){return e.getAsync("matchingClient").then(async t=>{if(t)return new E(e,t);const s=await D(e);return e.registerAsync("matchingClient",()=>s),new E(e,s)})}getClient(){return this.matchingClient}}const Z=({contactMethodId:n,guideId:e,groupId:t,className:s})=>{var f,b,x;const[i,o]=q.useState(),c=u.useContainer(),r=X.useDispatch(),a=q.useRef(!0),l=ie();q.useEffect(()=>{const{events:h}=c.get("$widget"),y=h.subscribe("bot-provider:form-submitted",async(m,w)=>{var A;if(((A=w.form.meta)==null?void 0:A.groupId)!==t||w.id!==i.id)return;l&&(w.form.meta||(w.form.meta={}),w.form.meta.conversation=l);const M=await c.getAsync("contactMethods"),p={...i,body:{...i.body,form:w.form}},{errors:k,valid:C,errorTypes:z}=await M.validate(p);if(!C){const G=new u.FormBuilder(i.body.form);o(void 0),G.setValidationErrors(k),p.body={...p.body,form:G.get()},o({...p});return}const N=await M.submit(p);p.confirmation=N,o(p)}),d=h.subscribe("bot-provider:evaluate",async(m,w)=>{if(w.id!==n)return;const p=await(await c.getAsync("contactMethods")).evaluate(i);let k={...i,body:{...i.body,form:p}};const C=u.updateForm(k,{submit:"Submit",errors:{},meta:{groupId:t}});k={...k,body:C},o(k)});return()=>{y(),d()}},[c,i,o,l]);const g=q.useCallback(async h=>{const d=await(await E.getInstance(c)).fetch(Y.ContactMethod,{contactMethodId:h,guideId:e},{noCache:!0}),m=u.updateForm(d,{submit:"Submit",errors:{},meta:{groupId:t}});if(d.body=m,d.body.guideId=e,!a.current)return null;o(d)},[a]);return q.useEffect(()=>(g(n),()=>{a.current=!1}),[n,g]),i?v.jsx(fe,{...i,body:{...i.body,form:i.body.form?{...i.body.form,data:(f=i.body.form)==null?void 0:f.data,layout:{...i.body.form.layout},meta:(b=i.body.form)==null?void 0:b.meta,schema:(x=i.body.form)==null?void 0:x.schema}:void 0,guideId:i.body.guideId},inline:!0,expanded:!0,dispatch:r,className:u.appendClassNames("humany-bot-contact-method",s)}):null},fe=j(V)`
98
+ padding: ${n=>{var e;return(e=n.theme.sizes)==null?void 0:e.normal}} ${n=>{var e;return(e=n.theme.sizes)==null?void 0:e.medium}};
99
+ `,me=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));exports.ContactList=le;exports.ContactMethod=Z;exports.ContactMethod$1=V;exports.contactMethod=me;
@@ -0,0 +1,28 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("@emotion/styled"),M=require("./index-01541f60.js");require("@emotion/react");const u=require("react");require("react-dom");require("react-transition-group");const b=require("./use-dispatch-21581b7b.js"),h=require("./contact-method-63fbd19d.js");require("./notification-list-6c9ed67a.js");require("react-router-dom");const j=({actions:e,entryId:t,groupId:y})=>{const x=b.useDispatch(),r=M.useContainer(),[m,g]=u.useState([]),[d,q]=u.useState([]);return u.useEffect(()=>{r.getAsync("contactMethods").then(n=>{if(!n)return;const c=e.map(async i=>{var p;if(!((p=i.data)!=null&&p.clientName))return null;const s=await n.handleAdapters(i.data);return{...s,...i.data,description:i.data.description?i.data.description:s.description,onClick:(f,o)=>{if(typeof s.onClick=="function"&&s.onClick(f,o),!f.defaultPrevented)if(o.inline&&!o.expanded)q([...d,o.id]);else{const{events:C}=r.get("$widget");C.dispatch("provider:open-contact-method",{entryId:t,contactMethod:o,actionKey:i.actionKey})}}}});Promise.all(c).then(i=>{g(i.filter(s=>!!s))})})},[e,r,t,d]),m.length?a.jsx(S,{className:"humany-bot-contact-list",contactMethods:m,dispatch:x,itemRenderer:(n,c)=>(d.includes(n.id)||n.expanded)&&n.inline?a.jsx($,{contactMethodId:n.id,groupId:y,guideId:n.body.guideId}):a.jsx(E,{...n,...c})}):null},S=l(h.ContactList)`
2
+ > ul > li {
3
+ a {
4
+ display: flex;
5
+ align-items: center;
6
+ outline-offset: -2px;
7
+ }
8
+
9
+ &:not(:last-child) {
10
+ ${e=>e.theme.border&&`border-bottom: ${e.theme.border};`}
11
+ }
12
+ }
13
+ `,$=l(h.ContactMethod)`
14
+ i {
15
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}} 0 0;
16
+ display: flex;
17
+ justify-content: center;
18
+ align-items: center;
19
+ }
20
+ `,E=l(h.ContactMethod$1)`
21
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
22
+ i {
23
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}} 0 0;
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ }
28
+ `;exports.default=j;
@@ -1,12 +1,16 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import { u as M, n as l } from "./index-cc31f772.mjs";
2
+ import m from "@emotion/styled";
3
+ import { u as M } from "./index-66306883.mjs";
4
+ import "@emotion/react";
3
5
  import { useState as f, useEffect as b } from "react";
4
6
  import "react-dom";
5
- import { u as $ } from "./use-dispatch-97d3af39.mjs";
6
- import { C as S, a as E, b as j } from "./contact-method-a18f6436.mjs";
7
- import "./notification-list-291a2001.mjs";
8
- const D = ({ actions: t, entryId: e, groupId: h }) => {
9
- const y = $(), d = M(), [m, g] = f([]), [r, x] = f([]);
7
+ import "react-transition-group";
8
+ import { u as $ } from "./use-dispatch-a4fd0411.mjs";
9
+ import { C as E, a as S, b as j } from "./contact-method-20fd0394.mjs";
10
+ import "./notification-list-16d93d9e.mjs";
11
+ import "react-router-dom";
12
+ const B = ({ actions: t, entryId: e, groupId: h }) => {
13
+ const y = $(), d = M(), [l, g] = f([]), [r, x] = f([]);
10
14
  return b(() => {
11
15
  d.getAsync("contactMethods").then((n) => {
12
16
  if (!n)
@@ -39,23 +43,23 @@ const D = ({ actions: t, entryId: e, groupId: h }) => {
39
43
  g(i.filter((o) => !!o));
40
44
  });
41
45
  });
42
- }, [t, d, e, r]), m.length ? /* @__PURE__ */ c(
46
+ }, [t, d, e, r]), l.length ? /* @__PURE__ */ c(
43
47
  k,
44
48
  {
45
49
  className: "humany-bot-contact-list",
46
- contactMethods: m,
50
+ contactMethods: l,
47
51
  dispatch: y,
48
52
  itemRenderer: (n, a) => (r.includes(n.id) || n.expanded) && n.inline ? /* @__PURE__ */ c(
49
- w,
53
+ z,
50
54
  {
51
55
  contactMethodId: n.id,
52
56
  groupId: h,
53
57
  guideId: n.body.guideId
54
58
  }
55
- ) : /* @__PURE__ */ c(z, { ...n, ...a })
59
+ ) : /* @__PURE__ */ c(I, { ...n, ...a })
56
60
  }
57
61
  ) : null;
58
- }, k = l(S)`
62
+ }, k = m(E)`
59
63
  > ul > li {
60
64
  a {
61
65
  display: flex;
@@ -67,7 +71,7 @@ const D = ({ actions: t, entryId: e, groupId: h }) => {
67
71
  ${(t) => t.theme.border && `border-bottom: ${t.theme.border};`}
68
72
  }
69
73
  }
70
- `, w = l(E)`
74
+ `, z = m(S)`
71
75
  i {
72
76
  margin: 0 ${(t) => {
73
77
  var e;
@@ -77,7 +81,7 @@ const D = ({ actions: t, entryId: e, groupId: h }) => {
77
81
  justify-content: center;
78
82
  align-items: center;
79
83
  }
80
- `, z = l(j)`
84
+ `, I = m(j)`
81
85
  padding: ${(t) => {
82
86
  var e;
83
87
  return (e = t.theme.sizes) == null ? void 0 : e.medium;
@@ -93,5 +97,5 @@ const D = ({ actions: t, entryId: e, groupId: h }) => {
93
97
  }
94
98
  `;
95
99
  export {
96
- D as default
100
+ B as default
97
101
  };