@chatsystem/client 1.1.24 → 1.1.26

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/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as F, Fragment as rn, jsxs as De } from "react/jsx-runtime";
1
+ import { jsx as B, Fragment as rn, jsxs as De } from "react/jsx-runtime";
2
2
  import * as Qe from "react";
3
3
  import ke, { useState as ge, useEffect as Pe, useRef as we, forwardRef as os, useMemo as xn, useImperativeHandle as Dl, useContext as lt, useCallback as Ut, createContext as kl, useLayoutEffect as wl } from "react";
4
4
  import Ml from "lottie-react";
@@ -176,7 +176,7 @@ function Hl() {
176
176
  function p(U) {
177
177
  return D(U) === c;
178
178
  }
179
- function B(U) {
179
+ function F(U) {
180
180
  return D(U) === o;
181
181
  }
182
182
  function X(U) {
@@ -209,7 +209,7 @@ function Hl() {
209
209
  function _e(U) {
210
210
  return D(U) === d;
211
211
  }
212
- Te.AsyncMode = x, Te.ConcurrentMode = I, Te.ContextConsumer = q, Te.ContextProvider = ue, Te.Element = te, Te.ForwardRef = Y, Te.Fragment = M, Te.Lazy = w, Te.Memo = G, Te.Portal = $, Te.Profiler = W, Te.StrictMode = se, Te.Suspense = me, Te.isAsyncMode = Le, Te.isConcurrentMode = p, Te.isContextConsumer = B, Te.isContextProvider = X, Te.isElement = T, Te.isForwardRef = V, Te.isFragment = K, Te.isLazy = z, Te.isMemo = Q, Te.isPortal = ee, Te.isProfiler = ae, Te.isStrictMode = Z, Te.isSuspense = _e, Te.isValidElementType = N, Te.typeOf = D;
212
+ Te.AsyncMode = x, Te.ConcurrentMode = I, Te.ContextConsumer = q, Te.ContextProvider = ue, Te.Element = te, Te.ForwardRef = Y, Te.Fragment = M, Te.Lazy = w, Te.Memo = G, Te.Portal = $, Te.Profiler = W, Te.StrictMode = se, Te.Suspense = me, Te.isAsyncMode = Le, Te.isConcurrentMode = p, Te.isContextConsumer = F, Te.isContextProvider = X, Te.isElement = T, Te.isForwardRef = V, Te.isFragment = K, Te.isLazy = z, Te.isMemo = Q, Te.isPortal = ee, Te.isProfiler = ae, Te.isStrictMode = Z, Te.isSuspense = _e, Te.isValidElementType = N, Te.typeOf = D;
213
213
  })()), Te;
214
214
  }
215
215
  var yi;
@@ -4295,12 +4295,15 @@ const Pf = ({
4295
4295
  c.companySettings?.agent?.display?.CSSRules,
4296
4296
  { id: `${n}` },
4297
4297
  l.setHasDisplayedCss
4298
- ), /* @__PURE__ */ F(rn, { children: /* @__PURE__ */ F(
4298
+ ), console.log(
4299
+ "hasDIsplayedCss",
4300
+ l.appInternalContext.hasDisplayedCSS
4301
+ ), /* @__PURE__ */ B(rn, { children: /* @__PURE__ */ B(
4299
4302
  of,
4300
4303
  {
4301
4304
  locale: i?.locale,
4302
4305
  messages: i?.translatedText,
4303
- children: /* @__PURE__ */ F(Bs.Provider, { value: o, children: /* @__PURE__ */ F(Us.Provider, { value: l, children: /* @__PURE__ */ F(Sr.Provider, { value: c, children: /* @__PURE__ */ F(
4306
+ children: /* @__PURE__ */ B(Bs.Provider, { value: o, children: /* @__PURE__ */ B(Us.Provider, { value: l, children: /* @__PURE__ */ B(Sr.Provider, { value: c, children: /* @__PURE__ */ B(
4304
4307
  Fs.Provider,
4305
4308
  {
4306
4309
  value: f,
@@ -4320,7 +4323,7 @@ const Pf = ({
4320
4323
  }).catch(() => n(null)), () => {
4321
4324
  t && !r && (URL.revokeObjectURL(t), r = !0);
4322
4325
  };
4323
- }, [e]), /* @__PURE__ */ F("img", { src: t ?? e, decoding: "async", loading: "eager" });
4326
+ }, [e]), /* @__PURE__ */ B("img", { src: t ?? e, decoding: "async", loading: "eager" });
4324
4327
  };
4325
4328
  function Bf(e) {
4326
4329
  return !!e && typeof e == "object" && "blob" in e && e.blob instanceof Blob;
@@ -4351,21 +4354,21 @@ function Ff({
4351
4354
  ), () => {
4352
4355
  m = !0, d && URL.revokeObjectURL(d);
4353
4356
  };
4354
- }, [e]), c.kind === "loading" ? /* @__PURE__ */ F(
4357
+ }, [e]), c.kind === "loading" ? /* @__PURE__ */ B(
4355
4358
  "div",
4356
4359
  {
4357
4360
  className: "flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 " + (r ?? ""),
4358
4361
  style: { minHeight: 96, ...a },
4359
4362
  children: i ?? "Loading animation…"
4360
4363
  }
4361
- ) : c.kind === "error" ? /* @__PURE__ */ F(
4364
+ ) : c.kind === "error" ? /* @__PURE__ */ B(
4362
4365
  "div",
4363
4366
  {
4364
4367
  className: "flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 " + (r ?? ""),
4365
4368
  style: { minHeight: 96, ...a },
4366
4369
  children: u ?? "Failed to load animation"
4367
4370
  }
4368
- ) : c.kind === "json" ? /* @__PURE__ */ F(
4371
+ ) : c.kind === "json" ? /* @__PURE__ */ B(
4369
4372
  Ml,
4370
4373
  {
4371
4374
  animationData: c.data,
@@ -4375,7 +4378,7 @@ function Ff({
4375
4378
  style: a,
4376
4379
  rendererSettings: { preserveAspectRatio: "xMidYMid meet" }
4377
4380
  }
4378
- ) : /* @__PURE__ */ F(
4381
+ ) : /* @__PURE__ */ B(
4379
4382
  Bl,
4380
4383
  {
4381
4384
  src: c.blobUrl,
@@ -4562,7 +4565,7 @@ const $f = os(function({
4562
4565
  onEnd: x,
4563
4566
  onFrame: I
4564
4567
  }, q) {
4565
- const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p, B] = ge(h), X = we(1), [T, V] = ge(null), K = Math.max(
4568
+ const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p, F] = ge(h), X = we(1), [T, V] = ge(null), K = Math.max(
4566
4569
  1,
4567
4570
  Math.floor(typeof window < "u" && window.devicePixelRatio || 1)
4568
4571
  );
@@ -4697,7 +4700,7 @@ const $f = os(function({
4697
4700
  xe(p);
4698
4701
  return;
4699
4702
  }
4700
- le = Ee - Ne % Ie, B((Ye) => {
4703
+ le = Ee - Ne % Ie, F((Ye) => {
4701
4704
  const He = Ce.length - 1;
4702
4705
  let Ke = Ye;
4703
4706
  return y === "forward" ? Ke = Ye + 1 : y === "backward" ? Ke = Ye - 1 : ((Ye >= He && X.current === 1 || Ye <= 0 && X.current === -1) && (X.current *= -1), Ke = Ye + X.current), (Ke > He || Ke < 0) && (m ? Ke = y === "backward" ? He : 0 : (Ke = Math.max(0, Math.min(Ke, He)), Le(!1), x?.())), Ke;
@@ -4720,7 +4723,7 @@ const $f = os(function({
4720
4723
  play: () => Le(!0),
4721
4724
  pause: () => Le(!1),
4722
4725
  toggle: () => Le((le) => !le),
4723
- gotoFrame: (le) => B(() => Math.max(
4726
+ gotoFrame: (le) => F(() => Math.max(
4724
4727
  0,
4725
4728
  Math.min(le, Math.max(0, Ce.length - 1))
4726
4729
  )),
@@ -4728,7 +4731,7 @@ const $f = os(function({
4728
4731
  currentFrame: () => p
4729
4732
  }),
4730
4733
  [ve, p, Ce.length]
4731
- ), /* @__PURE__ */ F("div", { className: S, style: R, children: /* @__PURE__ */ F("canvas", { ref: ue, "aria-label": "spritesheet animation" }) });
4734
+ ), /* @__PURE__ */ B("div", { className: S, style: R, children: /* @__PURE__ */ B("canvas", { ref: ue, "aria-label": "spritesheet animation" }) });
4732
4735
  });
4733
4736
  function Yf({
4734
4737
  url: e,
@@ -4745,12 +4748,12 @@ function Yf({
4745
4748
  }, [e]), a ? /* @__PURE__ */ De("div", { className: t, role: "alert", children: [
4746
4749
  "Couldn’t load SVG: ",
4747
4750
  a
4748
- ] }) : n ? /* @__PURE__ */ F("div", { className: t, dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ F("div", { className: t });
4751
+ ] }) : n ? /* @__PURE__ */ B("div", { className: t, dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ B("div", { className: t });
4749
4752
  }
4750
4753
  const Qa = ({ facet: e }) => {
4751
4754
  const { mode: t, assetUrl: n } = e;
4752
4755
  return /* @__PURE__ */ De("div", { className: "assetContainer", children: [
4753
- t === We.AgentDisplayFacetModeType.LOTTIE && /* @__PURE__ */ F(
4756
+ t === We.AgentDisplayFacetModeType.LOTTIE && /* @__PURE__ */ B(
4754
4757
  Ff,
4755
4758
  {
4756
4759
  src: n,
@@ -4758,9 +4761,9 @@ const Qa = ({ facet: e }) => {
4758
4761
  onError: (r) => console.error(r)
4759
4762
  }
4760
4763
  ),
4761
- t === We.AgentDisplayFacetModeType.SVG && /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(Yf, { url: n }) }),
4762
- t === We.AgentDisplayFacetModeType.IMAGE && /* @__PURE__ */ F(Mf, { src: n }),
4763
- t === We.AgentDisplayFacetModeType.SPRITESHEET && /* @__PURE__ */ F($f, { src: n })
4764
+ t === We.AgentDisplayFacetModeType.SVG && /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Yf, { url: n }) }),
4765
+ t === We.AgentDisplayFacetModeType.IMAGE && /* @__PURE__ */ B(Mf, { src: n }),
4766
+ t === We.AgentDisplayFacetModeType.SPRITESHEET && /* @__PURE__ */ B($f, { src: n })
4764
4767
  ] });
4765
4768
  }, Gf = ({
4766
4769
  isWidgetOpen: e,
@@ -4784,13 +4787,13 @@ const Qa = ({ facet: e }) => {
4784
4787
  `,
4785
4788
  onClick: () => t(!e),
4786
4789
  children: [
4787
- !e && /* @__PURE__ */ F(
4790
+ !e && /* @__PURE__ */ B(
4788
4791
  Qa,
4789
4792
  {
4790
4793
  facet: n.agent.display[We.AgentDisplayFacetRoleType.LAUNCHER]
4791
4794
  }
4792
4795
  ),
4793
- e && /* @__PURE__ */ F(wf, { className: "w-6 h-6", fill: "white" })
4796
+ e && /* @__PURE__ */ B(wf, { className: "w-6 h-6", fill: "white" })
4794
4797
  ]
4795
4798
  }
4796
4799
  );
@@ -7731,7 +7734,7 @@ function Pd(e, t, n) {
7731
7734
  return T === null || J(T) ? w(T) : he(T) ? (e.consume(T), M) : n(T);
7732
7735
  }
7733
7736
  function w(T) {
7734
- return T === 45 && a === 2 ? (e.consume(T), se) : T === 60 && a === 1 ? (e.consume(T), me) : T === 62 && a === 4 ? (e.consume(T), B) : T === 63 && a === 3 ? (e.consume(T), p) : T === 93 && a === 5 ? (e.consume(T), Le) : J(T) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
7737
+ return T === 45 && a === 2 ? (e.consume(T), se) : T === 60 && a === 1 ? (e.consume(T), me) : T === 62 && a === 4 ? (e.consume(T), F) : T === 63 && a === 3 ? (e.consume(T), p) : T === 93 && a === 5 ? (e.consume(T), Le) : J(T) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
7735
7738
  Ld,
7736
7739
  X,
7737
7740
  G
@@ -7759,7 +7762,7 @@ function Pd(e, t, n) {
7759
7762
  function ve(T) {
7760
7763
  if (T === 62) {
7761
7764
  const V = u.toLowerCase();
7762
- return su.includes(V) ? (e.consume(T), B) : w(T);
7765
+ return su.includes(V) ? (e.consume(T), F) : w(T);
7763
7766
  }
7764
7767
  return Et(T) && u.length < 8 ? (e.consume(T), u += String.fromCharCode(T), ve) : w(T);
7765
7768
  }
@@ -7767,10 +7770,10 @@ function Pd(e, t, n) {
7767
7770
  return T === 93 ? (e.consume(T), p) : w(T);
7768
7771
  }
7769
7772
  function p(T) {
7770
- return T === 62 ? (e.consume(T), B) : T === 45 && a === 2 ? (e.consume(T), p) : w(T);
7773
+ return T === 62 ? (e.consume(T), F) : T === 45 && a === 2 ? (e.consume(T), p) : w(T);
7771
7774
  }
7772
- function B(T) {
7773
- return T === null || J(T) ? (e.exit("htmlFlowData"), X(T)) : (e.consume(T), B);
7775
+ function F(T) {
7776
+ return T === null || J(T) ? (e.exit("htmlFlowData"), X(T)) : (e.consume(T), F);
7774
7777
  }
7775
7778
  function X(T) {
7776
7779
  return e.exit("htmlFlow"), t(T);
@@ -7822,8 +7825,8 @@ function Md(e, t, n) {
7822
7825
  return p === 62 ? se(p) : p === 45 ? m(p) : d(p);
7823
7826
  }
7824
7827
  function y(p) {
7825
- const B = "CDATA[";
7826
- return p === B.charCodeAt(i++) ? (e.consume(p), i === B.length ? A : y) : n(p);
7828
+ const F = "CDATA[";
7829
+ return p === F.charCodeAt(i++) ? (e.consume(p), i === F.length ? A : y) : n(p);
7827
7830
  }
7828
7831
  function A(p) {
7829
7832
  return p === null ? n(p) : p === 93 ? (e.consume(p), L) : J(p) ? (u = A, me(p)) : (e.consume(p), A);
@@ -8524,8 +8527,8 @@ function hh(e, t, n) {
8524
8527
  return Array.isArray($) ? X($) : "tokenize" in $ ? (
8525
8528
  // @ts-expect-error Looks like a construct.
8526
8529
  X([$])
8527
- ) : B($);
8528
- function B(z) {
8530
+ ) : F($);
8531
+ function F(z) {
8529
8532
  return Q;
8530
8533
  function Q(ee) {
8531
8534
  const ae = ee !== null && z[ee], Z = ee !== null && z.null, _e = [
@@ -8876,7 +8879,7 @@ function Dh(e) {
8876
8879
  paragraph: l(),
8877
8880
  referenceString: V,
8878
8881
  resourceDestinationString: p,
8879
- resourceTitleString: B,
8882
+ resourceTitleString: F,
8880
8883
  resource: X,
8881
8884
  setextHeading: l(ue),
8882
8885
  setextHeadingLineSequence: q,
@@ -9170,7 +9173,7 @@ function Dh(e) {
9170
9173
  const O = this.resume(), H = this.stack[this.stack.length - 1];
9171
9174
  H.url = O;
9172
9175
  }
9173
- function B() {
9176
+ function F() {
9174
9177
  const O = this.resume(), H = this.stack[this.stack.length - 1];
9175
9178
  H.title = O;
9176
9179
  }
@@ -11481,7 +11484,7 @@ function Ro(e) {
11481
11484
  Fragment: rn,
11482
11485
  components: i,
11483
11486
  ignoreInvalidStyle: !0,
11484
- jsx: F,
11487
+ jsx: B,
11485
11488
  jsxs: De,
11486
11489
  passKeys: !0,
11487
11490
  passNode: !0
@@ -17862,21 +17865,21 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
17862
17865
  }) => {
17863
17866
  const { chatlineLabelUserTranslation: n } = Ka();
17864
17867
  return /* @__PURE__ */ De("div", { className: "flex px-3 justify-between mt-8 bg-gray-200 rounded-lg", children: [
17865
- /* @__PURE__ */ F("div", { className: "w-10 mr-3 flex-col content-center", children: /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(hb, { fill: "#4564d6" }) }) }),
17868
+ /* @__PURE__ */ B("div", { className: "w-10 mr-3 flex-col content-center", children: /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(hb, { fill: "#4564d6" }) }) }),
17866
17869
  /* @__PURE__ */ De(
17867
17870
  "div",
17868
17871
  {
17869
17872
  className: `w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage ? "bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in" : " text-gray-800"}`,
17870
17873
  children: [
17871
- /* @__PURE__ */ F("p", { className: "font-bold", children: n }),
17872
- /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(Ro, { rehypePlugins: [El], children: e && e }) })
17874
+ /* @__PURE__ */ B("p", { className: "font-bold", children: n }),
17875
+ /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Ro, { rehypePlugins: [El], children: e && e }) })
17873
17876
  ]
17874
17877
  }
17875
17878
  )
17876
17879
  ] });
17877
17880
  }, pb = ({}) => {
17878
17881
  const { companySettings: e } = lt(Sr);
17879
- return /* @__PURE__ */ F(
17882
+ return /* @__PURE__ */ B(
17880
17883
  "div",
17881
17884
  {
17882
17885
  className: `assistant
@@ -17888,7 +17891,7 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
17888
17891
  justify-center
17889
17892
  items-center
17890
17893
  `,
17891
- children: /* @__PURE__ */ F(
17894
+ children: /* @__PURE__ */ B(
17892
17895
  Qa,
17893
17896
  {
17894
17897
  facet: e.agent.display[We.AgentDisplayFacetRoleType.ASSISTANT]
@@ -17899,14 +17902,14 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
17899
17902
  }, Eb = ({ content: e, metaData: t }) => {
17900
17903
  const { chatlineLabelAssistantTranslation: n } = Ka();
17901
17904
  return /* @__PURE__ */ De("div", { className: "flex justify-between mt-8 px-3", children: [
17902
- /* @__PURE__ */ F("div", { className: "w-10 mr-3 mt-6", children: /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(pb, {}) }) }),
17905
+ /* @__PURE__ */ B("div", { className: "w-10 mr-3 mt-6", children: /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(pb, {}) }) }),
17903
17906
  /* @__PURE__ */ De(
17904
17907
  "div",
17905
17908
  {
17906
17909
  className: `w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage ? "bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in" : "bg-white text-gray-800"}`,
17907
17910
  children: [
17908
- /* @__PURE__ */ F("p", { className: "font-bold", children: n }),
17909
- /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(Ro, { rehypePlugins: [El], children: e && e }) })
17911
+ /* @__PURE__ */ B("p", { className: "font-bold", children: n }),
17912
+ /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Ro, { rehypePlugins: [El], children: e && e }) })
17910
17913
  ]
17911
17914
  }
17912
17915
  )
@@ -17916,8 +17919,8 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
17916
17919
  content: t,
17917
17920
  metaData: n
17918
17921
  }) => /* @__PURE__ */ De(rn, { children: [
17919
- e === "user" && /* @__PURE__ */ F(mb, { content: t, metaData: n }),
17920
- e === "assistant" && /* @__PURE__ */ F(Eb, { content: t, metaData: n })
17922
+ e === "user" && /* @__PURE__ */ B(mb, { content: t, metaData: n }),
17923
+ e === "assistant" && /* @__PURE__ */ B(Eb, { content: t, metaData: n })
17921
17924
  ] });
17922
17925
  function Tb(e, t, n) {
17923
17926
  let [r, a] = ge(e || t), i = we(e !== void 0), u = e !== void 0;
@@ -18836,8 +18839,8 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18836
18839
  className: `${e.classNameContainer} w-fu`,
18837
18840
  children: [
18838
18841
  /* @__PURE__ */ De("div", { style: { display: "flex", flexDirection: "column" }, children: [
18839
- /* @__PURE__ */ F("label", { ...h, className: e.classNameLabel, children: u }),
18840
- /* @__PURE__ */ F(
18842
+ /* @__PURE__ */ B("label", { ...h, className: e.classNameLabel, children: u }),
18843
+ /* @__PURE__ */ B(
18841
18844
  "textarea",
18842
18845
  {
18843
18846
  ...y,
@@ -18858,21 +18861,21 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18858
18861
  }
18859
18862
  )
18860
18863
  ] }),
18861
- !c && o && /* @__PURE__ */ F("div", { className: "relative", children: /* @__PURE__ */ F(
18864
+ !c && o && /* @__PURE__ */ B("div", { className: "relative", children: /* @__PURE__ */ B(
18862
18865
  o,
18863
18866
  {
18864
18867
  onSubmitButton: R,
18865
18868
  isDisabled: S
18866
18869
  }
18867
18870
  ) }),
18868
- c && f && /* @__PURE__ */ F("div", { className: "relative", children: /* @__PURE__ */ F(f, { onPressLoadingButton: N }) })
18871
+ c && f && /* @__PURE__ */ B("div", { className: "relative", children: /* @__PURE__ */ B(f, { onPressLoadingButton: N }) })
18869
18872
  ]
18870
18873
  }
18871
18874
  );
18872
18875
  }, xT = ({
18873
18876
  onSubmitButton: e,
18874
18877
  isDisabled: t
18875
- }) => /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(
18878
+ }) => /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(
18876
18879
  "button",
18877
18880
  {
18878
18881
  className: `absolute
@@ -18895,7 +18898,7 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18895
18898
  "data-testid": "send-button",
18896
18899
  onClick: e,
18897
18900
  disabled: t,
18898
- children: /* @__PURE__ */ F("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ F(
18901
+ children: /* @__PURE__ */ B("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ B(
18899
18902
  "svg",
18900
18903
  {
18901
18904
  width: "24",
@@ -18903,7 +18906,7 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18903
18906
  viewBox: "0 0 24 24",
18904
18907
  fill: "none",
18905
18908
  className: "text-white dark:text-black",
18906
- children: /* @__PURE__ */ F(
18909
+ children: /* @__PURE__ */ B(
18907
18910
  "path",
18908
18911
  {
18909
18912
  d: "M7 11L12 6L17 11M12 18V7",
@@ -18988,7 +18991,7 @@ const Il = () => {
18988
18991
  };
18989
18992
  }, RT = ({}) => {
18990
18993
  const { companySettings: e } = lt(Sr);
18991
- return /* @__PURE__ */ F(
18994
+ return /* @__PURE__ */ B(
18992
18995
  "div",
18993
18996
  {
18994
18997
  className: `search
@@ -18999,7 +19002,7 @@ const Il = () => {
18999
19002
  justify-center
19000
19003
  items-center
19001
19004
  `,
19002
- children: /* @__PURE__ */ F(
19005
+ children: /* @__PURE__ */ B(
19003
19006
  Qa,
19004
19007
  {
19005
19008
  facet: e.agent.display[We.AgentDisplayFacetRoleType.SEARCH]
@@ -19018,32 +19021,32 @@ const Il = () => {
19018
19021
  stepTranslation: i,
19019
19022
  lookingForProductTranslation: u
19020
19023
  } = Il();
19021
- return /* @__PURE__ */ F(rn, { children: e === "loadingIntermediaryStates" && /* @__PURE__ */ De("div", { children: [
19024
+ return /* @__PURE__ */ B(rn, { children: e === "loadingIntermediaryStates" && /* @__PURE__ */ De("div", { children: [
19022
19025
  /* @__PURE__ */ De("div", { children: [
19023
19026
  /* @__PURE__ */ De("p", { className: "text-center my-2 text-lg", children: [
19024
19027
  u,
19025
19028
  "..."
19026
19029
  ] }),
19027
- /* @__PURE__ */ F("p", { className: "text-center my-1 text-md", children: t && `${a(t)}` }),
19030
+ /* @__PURE__ */ B("p", { className: "text-center my-1 text-md", children: t && `${a(t)}` }),
19028
19031
  n && /* @__PURE__ */ De("p", { className: "text-center my-2", children: [
19029
19032
  i,
19030
- /* @__PURE__ */ F("span", { children: " " }),
19033
+ /* @__PURE__ */ B("span", { children: " " }),
19031
19034
  n,
19032
19035
  "/",
19033
19036
  r
19034
19037
  ] })
19035
19038
  ] }),
19036
- /* @__PURE__ */ F("div", { className: "flex justify-center", children: /* @__PURE__ */ F(RT, {}) })
19039
+ /* @__PURE__ */ B("div", { className: "flex justify-center", children: /* @__PURE__ */ B(RT, {}) })
19037
19040
  ] }) });
19038
19041
  }, PT = ({
19039
19042
  onPressLoadingButton: e
19040
- }) => /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(
19043
+ }) => /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(
19041
19044
  "button",
19042
19045
  {
19043
19046
  className: "absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors",
19044
19047
  "data-testid": "send-button",
19045
19048
  onClick: e,
19046
- children: /* @__PURE__ */ F("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ De(
19049
+ children: /* @__PURE__ */ B("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ De(
19047
19050
  "svg",
19048
19051
  {
19049
19052
  fill: "#000000",
@@ -19054,8 +19057,8 @@ const Il = () => {
19054
19057
  xmlns: "http://www.w3.org/2000/svg",
19055
19058
  viewBox: "0 0 297 297",
19056
19059
  children: [
19057
- /* @__PURE__ */ F("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
19058
- /* @__PURE__ */ F(
19060
+ /* @__PURE__ */ B("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
19061
+ /* @__PURE__ */ B(
19059
19062
  "g",
19060
19063
  {
19061
19064
  id: "SVGRepo_tracerCarrier",
@@ -19065,7 +19068,7 @@ const Il = () => {
19065
19068
  ),
19066
19069
  /* @__PURE__ */ De("g", { id: "SVGRepo_iconCarrier", children: [
19067
19070
  " ",
19068
- /* @__PURE__ */ F("path", { d: "M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z" }),
19071
+ /* @__PURE__ */ B("path", { d: "M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z" }),
19069
19072
  " "
19070
19073
  ] })
19071
19074
  ]
@@ -19175,7 +19178,7 @@ const Nl = ({
19175
19178
  });
19176
19179
  fetch(`${w}/ai/prompt/${e}`, W).then(async (se) => {
19177
19180
  const me = se?.body?.getReader(), ve = new TextDecoder();
19178
- let Le = "", p = "", B = !1, X = !1, T = null;
19181
+ let Le = "", p = "", F = !1, X = !1, T = null;
19179
19182
  await new ReadableStream({
19180
19183
  start(z) {
19181
19184
  return Q();
@@ -19193,7 +19196,7 @@ const Nl = ({
19193
19196
  streamSourceUuid: Ie,
19194
19197
  shouldStopStream: pe
19195
19198
  } = Fe;
19196
- T && T !== Ie && (Le += '<span style="display:block;height:1rem;"></span>'), T = Ie, (le || pe) && (X = !0), z.enqueue(xe), NT(xe) ? (p += xe, Le += p, p = "", B = !1) : B || IT(xe) ? (p += xe, B = !0) : Le += xe, i((Ee) => {
19199
+ T && T !== Ie && (Le += '<span style="display:block;height:1rem;"></span>'), T = Ie, (le || pe) && (X = !0), z.enqueue(xe), NT(xe) ? (p += xe, Le += p, p = "", F = !1) : F || IT(xe) ? (p += xe, F = !0) : Le += xe, i((Ee) => {
19197
19200
  const Ne = [...Ee], Ye = Ne.length - 1, He = Ne[Ye];
19198
19201
  return Ne[Ye] = {
19199
19202
  ...He,
@@ -19255,7 +19258,7 @@ const Nl = ({
19255
19258
  className: "flex-1 overflow-y-auto min-h-0 messagesContainer",
19256
19259
  ref: I,
19257
19260
  children: [
19258
- a.map((M, w) => /* @__PURE__ */ F(
19261
+ a.map((M, w) => /* @__PURE__ */ B(
19259
19262
  bb,
19260
19263
  {
19261
19264
  content: M.content,
@@ -19264,7 +19267,7 @@ const Nl = ({
19264
19267
  },
19265
19268
  w
19266
19269
  )),
19267
- /* @__PURE__ */ F(
19270
+ /* @__PURE__ */ B(
19268
19271
  vT,
19269
19272
  {
19270
19273
  currentStepName: h,
@@ -19276,7 +19279,7 @@ const Nl = ({
19276
19279
  ]
19277
19280
  }
19278
19281
  ),
19279
- x && /* @__PURE__ */ F(
19282
+ x && /* @__PURE__ */ B(
19280
19283
  "button",
19281
19284
  {
19282
19285
  onClick: () => D({
@@ -19285,7 +19288,7 @@ const Nl = ({
19285
19288
  }),
19286
19289
  className: "absolute bottom-[120px] right-4 bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-full shadow-lg transition-all duration-300 z-10",
19287
19290
  "aria-label": "Scroll to bottom",
19288
- children: /* @__PURE__ */ F(
19291
+ children: /* @__PURE__ */ B(
19289
19292
  "svg",
19290
19293
  {
19291
19294
  width: "20",
@@ -19293,7 +19296,7 @@ const Nl = ({
19293
19296
  viewBox: "0 0 24 24",
19294
19297
  fill: "none",
19295
19298
  xmlns: "http://www.w3.org/2000/svg",
19296
- children: /* @__PURE__ */ F(
19299
+ children: /* @__PURE__ */ B(
19297
19300
  "path",
19298
19301
  {
19299
19302
  d: "M12 16L6 10L7.4 8.6L12 13.2L16.6 8.6L18 10L12 16Z",
@@ -19304,7 +19307,7 @@ const Nl = ({
19304
19307
  )
19305
19308
  }
19306
19309
  ),
19307
- /* @__PURE__ */ F("div", { className: "flex-shrink-0", children: /* @__PURE__ */ F(
19310
+ /* @__PURE__ */ B("div", { className: "flex-shrink-0", children: /* @__PURE__ */ B(
19308
19311
  CT,
19309
19312
  {
19310
19313
  classNameTextarea: "",
@@ -19497,9 +19500,9 @@ function MT() {
19497
19500
  return da = function(o, l) {
19498
19501
  var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
19499
19502
  function d(p) {
19500
- var B = p && (c && p[c] || p[f]);
19501
- if (typeof B == "function")
19502
- return B;
19503
+ var F = p && (c && p[c] || p[f]);
19504
+ if (typeof F == "function")
19505
+ return F;
19503
19506
  }
19504
19507
  var m = "<<anonymous>>", h = {
19505
19508
  array: S("array"),
@@ -19522,16 +19525,16 @@ function MT() {
19522
19525
  shape: w,
19523
19526
  exact: G
19524
19527
  };
19525
- function y(p, B) {
19526
- return p === B ? p !== 0 || 1 / p === 1 / B : p !== p && B !== B;
19528
+ function y(p, F) {
19529
+ return p === F ? p !== 0 || 1 / p === 1 / F : p !== p && F !== F;
19527
19530
  }
19528
- function A(p, B) {
19529
- this.message = p, this.data = B && typeof B == "object" ? B : {}, this.stack = "";
19531
+ function A(p, F) {
19532
+ this.message = p, this.data = F && typeof F == "object" ? F : {}, this.stack = "";
19530
19533
  }
19531
19534
  A.prototype = Error.prototype;
19532
19535
  function L(p) {
19533
19536
  if (process.env.NODE_ENV !== "production")
19534
- var B = {}, X = 0;
19537
+ var F = {}, X = 0;
19535
19538
  function T(K, z, Q, ee, ae, Z, _e) {
19536
19539
  if (ee = ee || m, Z = Z || Q, _e !== n) {
19537
19540
  if (l) {
@@ -19541,10 +19544,10 @@ function MT() {
19541
19544
  throw U.name = "Invariant Violation", U;
19542
19545
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
19543
19546
  var Ce = ee + ":" + Q;
19544
- !B[Ce] && // Avoid spamming the console because they are often not actionable except for lib authors
19547
+ !F[Ce] && // Avoid spamming the console because they are often not actionable except for lib authors
19545
19548
  X < 3 && (i(
19546
19549
  "You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
19547
- ), B[Ce] = !0, X++);
19550
+ ), F[Ce] = !0, X++);
19548
19551
  }
19549
19552
  }
19550
19553
  return z[Q] == null ? K ? z[Q] === null ? new A("The " + ae + " `" + Z + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new A("The " + ae + " `" + Z + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : p(z, Q, ee, ae, Z);
@@ -19553,7 +19556,7 @@ function MT() {
19553
19556
  return V.isRequired = T.bind(null, !0), V;
19554
19557
  }
19555
19558
  function S(p) {
19556
- function B(X, T, V, K, z, Q) {
19559
+ function F(X, T, V, K, z, Q) {
19557
19560
  var ee = X[T], ae = se(ee);
19558
19561
  if (ae !== p) {
19559
19562
  var Z = me(ee);
@@ -19564,13 +19567,13 @@ function MT() {
19564
19567
  }
19565
19568
  return null;
19566
19569
  }
19567
- return L(B);
19570
+ return L(F);
19568
19571
  }
19569
19572
  function R() {
19570
19573
  return L(u);
19571
19574
  }
19572
19575
  function N(p) {
19573
- function B(X, T, V, K, z) {
19576
+ function F(X, T, V, K, z) {
19574
19577
  if (typeof p != "function")
19575
19578
  return new A("Property `" + z + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
19576
19579
  var Q = X[T];
@@ -19585,11 +19588,11 @@ function MT() {
19585
19588
  }
19586
19589
  return null;
19587
19590
  }
19588
- return L(B);
19591
+ return L(F);
19589
19592
  }
19590
19593
  function D() {
19591
- function p(B, X, T, V, K) {
19592
- var z = B[X];
19594
+ function p(F, X, T, V, K) {
19595
+ var z = F[X];
19593
19596
  if (!o(z)) {
19594
19597
  var Q = se(z);
19595
19598
  return new A("Invalid " + V + " `" + K + "` of type " + ("`" + Q + "` supplied to `" + T + "`, expected a single ReactElement."));
@@ -19599,8 +19602,8 @@ function MT() {
19599
19602
  return L(p);
19600
19603
  }
19601
19604
  function x() {
19602
- function p(B, X, T, V, K) {
19603
- var z = B[X];
19605
+ function p(F, X, T, V, K) {
19606
+ var z = F[X];
19604
19607
  if (!e.isValidElementType(z)) {
19605
19608
  var Q = se(z);
19606
19609
  return new A("Invalid " + V + " `" + K + "` of type " + ("`" + Q + "` supplied to `" + T + "`, expected a single ReactElement type."));
@@ -19610,21 +19613,21 @@ function MT() {
19610
19613
  return L(p);
19611
19614
  }
19612
19615
  function I(p) {
19613
- function B(X, T, V, K, z) {
19616
+ function F(X, T, V, K, z) {
19614
19617
  if (!(X[T] instanceof p)) {
19615
19618
  var Q = p.name || m, ee = Le(X[T]);
19616
19619
  return new A("Invalid " + K + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + V + "`, expected ") + ("instance of `" + Q + "`."));
19617
19620
  }
19618
19621
  return null;
19619
19622
  }
19620
- return L(B);
19623
+ return L(F);
19621
19624
  }
19622
19625
  function q(p) {
19623
19626
  if (!Array.isArray(p))
19624
19627
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
19625
19628
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
19626
19629
  ) : i("Invalid argument supplied to oneOf, expected an array.")), u;
19627
- function B(X, T, V, K, z) {
19630
+ function F(X, T, V, K, z) {
19628
19631
  for (var Q = X[T], ee = 0; ee < p.length; ee++)
19629
19632
  if (y(Q, p[ee]))
19630
19633
  return null;
@@ -19634,10 +19637,10 @@ function MT() {
19634
19637
  });
19635
19638
  return new A("Invalid " + K + " `" + z + "` of value `" + String(Q) + "` " + ("supplied to `" + V + "`, expected one of " + ae + "."));
19636
19639
  }
19637
- return L(B);
19640
+ return L(F);
19638
19641
  }
19639
19642
  function ue(p) {
19640
- function B(X, T, V, K, z) {
19643
+ function F(X, T, V, K, z) {
19641
19644
  if (typeof p != "function")
19642
19645
  return new A("Property `" + z + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
19643
19646
  var Q = X[T], ee = se(Q);
@@ -19651,16 +19654,16 @@ function MT() {
19651
19654
  }
19652
19655
  return null;
19653
19656
  }
19654
- return L(B);
19657
+ return L(F);
19655
19658
  }
19656
19659
  function te(p) {
19657
19660
  if (!Array.isArray(p))
19658
19661
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
19659
- for (var B = 0; B < p.length; B++) {
19660
- var X = p[B];
19662
+ for (var F = 0; F < p.length; F++) {
19663
+ var X = p[F];
19661
19664
  if (typeof X != "function")
19662
19665
  return i(
19663
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(X) + " at index " + B + "."
19666
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(X) + " at index " + F + "."
19664
19667
  ), u;
19665
19668
  }
19666
19669
  function T(V, K, z, Q, ee) {
@@ -19676,18 +19679,18 @@ function MT() {
19676
19679
  return L(T);
19677
19680
  }
19678
19681
  function Y() {
19679
- function p(B, X, T, V, K) {
19680
- return $(B[X]) ? null : new A("Invalid " + V + " `" + K + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
19682
+ function p(F, X, T, V, K) {
19683
+ return $(F[X]) ? null : new A("Invalid " + V + " `" + K + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
19681
19684
  }
19682
19685
  return L(p);
19683
19686
  }
19684
- function M(p, B, X, T, V) {
19687
+ function M(p, F, X, T, V) {
19685
19688
  return new A(
19686
- (p || "React class") + ": " + B + " type `" + X + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
19689
+ (p || "React class") + ": " + F + " type `" + X + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
19687
19690
  );
19688
19691
  }
19689
19692
  function w(p) {
19690
- function B(X, T, V, K, z) {
19693
+ function F(X, T, V, K, z) {
19691
19694
  var Q = X[T], ee = se(Q);
19692
19695
  if (ee !== "object")
19693
19696
  return new A("Invalid " + K + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + V + "`, expected `object`."));
@@ -19701,10 +19704,10 @@ function MT() {
19701
19704
  }
19702
19705
  return null;
19703
19706
  }
19704
- return L(B);
19707
+ return L(F);
19705
19708
  }
19706
19709
  function G(p) {
19707
- function B(X, T, V, K, z) {
19710
+ function F(X, T, V, K, z) {
19708
19711
  var Q = X[T], ee = se(Q);
19709
19712
  if (ee !== "object")
19710
19713
  return new A("Invalid " + K + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + V + "`, expected `object`."));
@@ -19724,7 +19727,7 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
19724
19727
  }
19725
19728
  return null;
19726
19729
  }
19727
- return L(B);
19730
+ return L(F);
19728
19731
  }
19729
19732
  function $(p) {
19730
19733
  switch (typeof p) {
@@ -19739,10 +19742,10 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
19739
19742
  return p.every($);
19740
19743
  if (p === null || o(p))
19741
19744
  return !0;
19742
- var B = d(p);
19743
- if (B) {
19744
- var X = B.call(p), T;
19745
- if (B !== p.entries) {
19745
+ var F = d(p);
19746
+ if (F) {
19747
+ var X = F.call(p), T;
19748
+ if (F !== p.entries) {
19746
19749
  for (; !(T = X.next()).done; )
19747
19750
  if (!$(T.value))
19748
19751
  return !1;
@@ -19759,37 +19762,37 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
19759
19762
  return !1;
19760
19763
  }
19761
19764
  }
19762
- function W(p, B) {
19763
- return p === "symbol" ? !0 : B ? B["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && B instanceof Symbol : !1;
19765
+ function W(p, F) {
19766
+ return p === "symbol" ? !0 : F ? F["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && F instanceof Symbol : !1;
19764
19767
  }
19765
19768
  function se(p) {
19766
- var B = typeof p;
19767
- return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : W(B, p) ? "symbol" : B;
19769
+ var F = typeof p;
19770
+ return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : W(F, p) ? "symbol" : F;
19768
19771
  }
19769
19772
  function me(p) {
19770
19773
  if (typeof p > "u" || p === null)
19771
19774
  return "" + p;
19772
- var B = se(p);
19773
- if (B === "object") {
19775
+ var F = se(p);
19776
+ if (F === "object") {
19774
19777
  if (p instanceof Date)
19775
19778
  return "date";
19776
19779
  if (p instanceof RegExp)
19777
19780
  return "regexp";
19778
19781
  }
19779
- return B;
19782
+ return F;
19780
19783
  }
19781
19784
  function ve(p) {
19782
- var B = me(p);
19783
- switch (B) {
19785
+ var F = me(p);
19786
+ switch (F) {
19784
19787
  case "array":
19785
19788
  case "object":
19786
- return "an " + B;
19789
+ return "an " + F;
19787
19790
  case "boolean":
19788
19791
  case "date":
19789
19792
  case "regexp":
19790
- return "a " + B;
19793
+ return "a " + F;
19791
19794
  default:
19792
- return B;
19795
+ return F;
19793
19796
  }
19794
19797
  }
19795
19798
  function Le(p) {
@@ -20432,20 +20435,20 @@ const VT = os(
20432
20435
  bg-white
20433
20436
  `,
20434
20437
  children: [
20435
- /* @__PURE__ */ F(
20438
+ /* @__PURE__ */ B(
20436
20439
  "div",
20437
20440
  {
20438
20441
  className: "bg-violet-700 py-2 text-white text-center flex justify-center items-center",
20439
20442
  children: "Assistant"
20440
20443
  }
20441
20444
  ),
20442
- /* @__PURE__ */ F(Nl, { appToken: e.appToken })
20445
+ /* @__PURE__ */ B(Nl, { appToken: e.appToken })
20443
20446
  ]
20444
20447
  }
20445
20448
  )
20446
20449
  ), qT = ({ isWidgetOpen: e, appToken: t }) => {
20447
20450
  const n = we(null);
20448
- return /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(
20451
+ return /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(
20449
20452
  gi,
20450
20453
  {
20451
20454
  nodeRef: n,
@@ -20453,23 +20456,23 @@ const VT = os(
20453
20456
  timeout: 200,
20454
20457
  classNames: "menuTransition",
20455
20458
  unmountOnExit: !0,
20456
- children: /* @__PURE__ */ F(VT, { ref: n, props: { appToken: t } })
20459
+ children: /* @__PURE__ */ B(VT, { ref: n, props: { appToken: t } })
20457
20460
  }
20458
20461
  ) });
20459
20462
  }, WT = ({ displayMode: e, appToken: t }) => {
20460
20463
  const [n, r] = ge(!1), { appInternalContext: a } = lt(Us);
20461
20464
  return /* @__PURE__ */ De(rn, { children: [
20462
20465
  e === ln.LAUNCHER && a.hasFetchedSettings && /* @__PURE__ */ De(rn, { children: [
20463
- /* @__PURE__ */ F(
20466
+ /* @__PURE__ */ B(
20464
20467
  Gf,
20465
20468
  {
20466
20469
  isWidgetOpen: n,
20467
20470
  setIsWidgetOpen: r
20468
20471
  }
20469
20472
  ),
20470
- /* @__PURE__ */ F(qT, { isWidgetOpen: n, appToken: t })
20473
+ /* @__PURE__ */ B(qT, { isWidgetOpen: n, appToken: t })
20471
20474
  ] }),
20472
- e === ln.CHATBOX && a.hasFetchedSettings && /* @__PURE__ */ F("div", { className: "chatBox", children: /* @__PURE__ */ F(Nl, { appToken: t }) })
20475
+ e === ln.CHATBOX && a.hasFetchedSettings && /* @__PURE__ */ B("div", { className: "chatBox", children: /* @__PURE__ */ B(Nl, { appToken: t }) })
20473
20476
  ] });
20474
20477
  };
20475
20478
  var ln = /* @__PURE__ */ ((e) => (e.LAUNCHER = "launcher", e.CHATBOX = "chatbox", e))(ln || {});
@@ -20482,7 +20485,7 @@ function eg({
20482
20485
  "appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC"
20483
20486
  );
20484
20487
  const r = kf(t);
20485
- return /* @__PURE__ */ F(Pf, { appToken: e, agentId: n, children: /* @__PURE__ */ F(WT, { displayMode: r, appToken: e }) });
20488
+ return /* @__PURE__ */ B("div", { className: "chatSystemWidget", children: /* @__PURE__ */ B(Pf, { appToken: e, agentId: n, children: /* @__PURE__ */ B(WT, { displayMode: r, appToken: e }) }) });
20486
20489
  }
20487
20490
  export {
20488
20491
  eg as App