@botpress/webchat 1.3.2 → 1.3.3

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 (36) hide show
  1. package/dist/adapters/messaging-to-target.d.ts +58 -26
  2. package/dist/adapters/target.d.ts +5 -0
  3. package/dist/adapters/webchat-to-target.d.ts +56 -32
  4. package/dist/client/MessagingClient/client.d.ts +1 -0
  5. package/dist/client/types.d.ts +1 -0
  6. package/dist/components/Block.d.ts +7 -5
  7. package/dist/contexts/WebchatContext.d.ts +3 -7
  8. package/dist/gen/client/api.d.ts +37 -10
  9. package/dist/gen/signals/{customSignal.t.d.ts → custom.t.d.ts} +1 -1
  10. package/dist/gen/signals/index.d.ts +16 -16
  11. package/dist/gen/signals/{messageCreatedSignal.t.d.ts → messageCreated.t.d.ts} +1 -1
  12. package/dist/gen/signals/{webchatConfigSignal.t.d.ts → webchatConfig.t.d.ts} +1 -1
  13. package/dist/gen/signals/{webchatVisibilitySignal.t.d.ts → webchatVisibility.t.d.ts} +1 -1
  14. package/dist/index.js +768 -734
  15. package/dist/index.umd.cjs +22 -22
  16. package/dist/types/block-type.d.ts +3 -3
  17. package/openapi.ts +4 -5
  18. package/package.json +2 -1
  19. package/dist/gen/models/conversation.j.d.ts +0 -20
  20. package/dist/gen/models/conversation.t.d.ts +0 -10
  21. package/dist/gen/models/conversation.z.d.ts +0 -15
  22. package/dist/gen/models/index.d.ts +0 -1014
  23. package/dist/gen/models/message.j.d.ts +0 -490
  24. package/dist/gen/models/message.t.d.ts +0 -122
  25. package/dist/gen/models/message.z.d.ts +0 -439
  26. package/dist/gen/models/user.j.d.ts +0 -26
  27. package/dist/gen/models/user.t.d.ts +0 -12
  28. package/dist/gen/models/user.z.d.ts +0 -21
  29. /package/dist/gen/signals/{customSignal.j.d.ts → custom.j.d.ts} +0 -0
  30. /package/dist/gen/signals/{customSignal.z.d.ts → custom.z.d.ts} +0 -0
  31. /package/dist/gen/signals/{messageCreatedSignal.j.d.ts → messageCreated.j.d.ts} +0 -0
  32. /package/dist/gen/signals/{messageCreatedSignal.z.d.ts → messageCreated.z.d.ts} +0 -0
  33. /package/dist/gen/signals/{webchatConfigSignal.j.d.ts → webchatConfig.j.d.ts} +0 -0
  34. /package/dist/gen/signals/{webchatConfigSignal.z.d.ts → webchatConfig.z.d.ts} +0 -0
  35. /package/dist/gen/signals/{webchatVisibilitySignal.j.d.ts → webchatVisibility.j.d.ts} +0 -0
  36. /package/dist/gen/signals/{webchatVisibilitySignal.z.d.ts → webchatVisibility.z.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ function Bw() {
115
115
  function G($) {
116
116
  return $.displayName || "Context";
117
117
  }
118
- function Z($) {
118
+ function V($) {
119
119
  if ($ == null)
120
120
  return null;
121
121
  if (typeof $.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof $ == "function")
@@ -148,11 +148,11 @@ function Bw() {
148
148
  return D($, $.render, "ForwardRef");
149
149
  case d:
150
150
  var Ke = $.displayName || null;
151
- return Ke !== null ? Ke : Z($.type) || "Memo";
151
+ return Ke !== null ? Ke : V($.type) || "Memo";
152
152
  case h: {
153
153
  var pt = $, bt = pt._payload, lt = pt._init;
154
154
  try {
155
- return Z(lt(bt));
155
+ return V(lt(bt));
156
156
  } catch {
157
157
  return null;
158
158
  }
@@ -424,8 +424,8 @@ function Bw() {
424
424
  }
425
425
  function dn($, me) {
426
426
  if (typeof $.ref == "string" && K.current && me && K.current.stateNode !== me) {
427
- var ke = Z(K.current.type);
428
- wt[ke] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(K.current.type), $.ref), wt[ke] = !0);
427
+ var ke = V(K.current.type);
428
+ wt[ke] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(K.current.type), $.ref), wt[ke] = !0);
429
429
  }
430
430
  }
431
431
  function $t($, me) {
@@ -513,7 +513,7 @@ function Bw() {
513
513
  function Fr() {
514
514
  {
515
515
  if (wr.current) {
516
- var $ = Z(wr.current.type);
516
+ var $ = V(wr.current.type);
517
517
  if ($)
518
518
  return `
519
519
 
@@ -556,7 +556,7 @@ Check the top-level render call using <` + ke + ">.");
556
556
  return;
557
557
  Ot[ke] = !0;
558
558
  var Ke = "";
559
- $ && $._owner && $._owner !== wr.current && (Ke = " It was passed a child from " + Z($._owner.type) + "."), tr($), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ke, Ke), tr(null);
559
+ $ && $._owner && $._owner !== wr.current && (Ke = " It was passed a child from " + V($._owner.type) + "."), tr($), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ke, Ke), tr(null);
560
560
  }
561
561
  }
562
562
  function sn($, me) {
@@ -593,11 +593,11 @@ Check the top-level render call using <` + ke + ">.");
593
593
  else
594
594
  return;
595
595
  if (ke) {
596
- var Ke = Z(me);
596
+ var Ke = V(me);
597
597
  Me(ke, $.props, "prop", Ke, $);
598
598
  } else if (me.PropTypes !== void 0 && !fi) {
599
599
  fi = !0;
600
- var pt = Z(me);
600
+ var pt = V(me);
601
601
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", pt || "Unknown");
602
602
  }
603
603
  typeof me.getDefaultProps == "function" && !me.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -624,7 +624,7 @@ Check the top-level render call using <` + ke + ">.");
624
624
  var on = xr(pt);
625
625
  on ? ot += on : ot += Fr();
626
626
  var R;
627
- $ === null ? R = "null" : Ue($) ? R = "array" : $ !== void 0 && $.$$typeof === t ? (R = "<" + (Z($.type) || "Unknown") + " />", ot = " Did you accidentally export a JSX literal instead of a component?") : R = typeof $, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, ot);
627
+ $ === null ? R = "null" : Ue($) ? R = "array" : $ !== void 0 && $.$$typeof === t ? (R = "<" + (V($.type) || "Unknown") + " />", ot = " Did you accidentally export a JSX literal instead of a component?") : R = typeof $, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, ot);
628
628
  }
629
629
  var g = Zt($, me, ke, pt, bt);
630
630
  if (g == null)
@@ -858,7 +858,7 @@ function qw(e, t) {
858
858
  () => e.dispatchEvent(t)
859
859
  );
860
860
  }
861
- const Np = "Avatar", [Kw, gF] = Fu(Np), [Gw, jp] = Kw(Np), Up = /* @__PURE__ */ Xe((e, t) => {
861
+ const Np = "Avatar", [Kw, yF] = Fu(Np), [Gw, jp] = Kw(Np), Up = /* @__PURE__ */ Xe((e, t) => {
862
862
  const { __scopeAvatar: n, ...r } = e, [i, s] = Ye("idle");
863
863
  return /* @__PURE__ */ ht(Gw, {
864
864
  scope: n,
@@ -3283,10 +3283,10 @@ function Cx(e, t, n) {
3283
3283
  )(U) : G(U);
3284
3284
  }
3285
3285
  function G(U) {
3286
- return U === a ? (T.enter("codeFencedFenceSequence"), Z(U)) : j(U);
3286
+ return U === a ? (T.enter("codeFencedFenceSequence"), V(U)) : j(U);
3287
3287
  }
3288
- function Z(U) {
3289
- return U === a ? (W++, T.consume(U), Z) : W >= o ? (T.exit("codeFencedFenceSequence"), ct(U) ? ft(T, H, "whitespace")(U) : H(U)) : j(U);
3288
+ function V(U) {
3289
+ return U === a ? (W++, T.consume(U), V) : W >= o ? (T.exit("codeFencedFenceSequence"), ct(U) ? ft(T, H, "whitespace")(U) : H(U)) : j(U);
3290
3290
  }
3291
3291
  function H(U) {
3292
3292
  return U === null || Ve(U) ? (T.exit("codeFencedFence"), N(U)) : j(U);
@@ -3842,10 +3842,10 @@ function Xx(e, t, n) {
3842
3842
  return E === 45 && i === 2 ? (e.consume(E), z) : E === 60 && i === 1 ? (e.consume(E), J) : E === 62 && i === 4 ? (e.consume(E), X) : E === 63 && i === 3 ? (e.consume(E), _) : E === 93 && i === 5 ? (e.consume(E), he) : Ve(E) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
3843
3843
  Jx,
3844
3844
  we,
3845
- Z
3846
- )(E)) : E === null || Ve(E) ? (e.exit("htmlFlowData"), Z(E)) : (e.consume(E), G);
3845
+ V
3846
+ )(E)) : E === null || Ve(E) ? (e.exit("htmlFlowData"), V(E)) : (e.consume(E), G);
3847
3847
  }
3848
- function Z(E) {
3848
+ function V(E) {
3849
3849
  return e.check(
3850
3850
  Yx,
3851
3851
  H,
@@ -3856,7 +3856,7 @@ function Xx(e, t, n) {
3856
3856
  return e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), U;
3857
3857
  }
3858
3858
  function U(E) {
3859
- return E === null || Ve(E) ? Z(E) : (e.enter("htmlFlowData"), G(E));
3859
+ return E === null || Ve(E) ? V(E) : (e.enter("htmlFlowData"), G(E));
3860
3860
  }
3861
3861
  function z(E) {
3862
3862
  return E === 45 ? (e.consume(E), _) : G(E);
@@ -3973,10 +3973,10 @@ function r_(e, t, n) {
3973
3973
  return _ === 61 ? (e.consume(_), G) : Ve(_) ? (o = D, J(_)) : ct(_) ? (e.consume(_), D) : W(_);
3974
3974
  }
3975
3975
  function G(_) {
3976
- return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), i = _, Z) : Ve(_) ? (o = G, J(_)) : ct(_) ? (e.consume(_), G) : (e.consume(_), H);
3976
+ return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), i = _, V) : Ve(_) ? (o = G, J(_)) : ct(_) ? (e.consume(_), G) : (e.consume(_), H);
3977
3977
  }
3978
- function Z(_) {
3979
- return _ === i ? (e.consume(_), i = void 0, U) : _ === null ? n(_) : Ve(_) ? (o = Z, J(_)) : (e.consume(_), Z);
3978
+ function V(_) {
3979
+ return _ === i ? (e.consume(_), i = void 0, U) : _ === null ? n(_) : Ve(_) ? (o = V, J(_)) : (e.consume(_), V);
3980
3980
  }
3981
3981
  function H(_) {
3982
3982
  return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 96 ? n(_) : _ === 47 || _ === 62 || xt(_) ? W(_) : (e.consume(_), H);
@@ -4584,11 +4584,11 @@ function M_(e, t, n) {
4584
4584
  return L_(o, D);
4585
4585
  }
4586
4586
  function p() {
4587
- const { line: D, column: G, offset: Z, _index: H, _bufferIndex: U } = r;
4587
+ const { line: D, column: G, offset: V, _index: H, _bufferIndex: U } = r;
4588
4588
  return {
4589
4589
  line: D,
4590
4590
  column: G,
4591
- offset: Z,
4591
+ offset: V,
4592
4592
  _index: H,
4593
4593
  _bufferIndex: U
4594
4594
  };
@@ -4614,8 +4614,8 @@ function M_(e, t, n) {
4614
4614
  Ve(D) ? (r.line++, r.column = 1, r.offset += D === -3 ? 2 : 1, S()) : D !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = D;
4615
4615
  }
4616
4616
  function x(D, G) {
4617
- const Z = G || {};
4618
- return Z.type = D, Z.start = p(), l.events.push(["enter", Z, l]), a.push(Z), Z;
4617
+ const V = G || {};
4618
+ return V.type = D, V.start = p(), l.events.push(["enter", V, l]), a.push(V), V;
4619
4619
  }
4620
4620
  function O(D) {
4621
4621
  const G = a.pop();
@@ -4628,8 +4628,8 @@ function M_(e, t, n) {
4628
4628
  G.restore();
4629
4629
  }
4630
4630
  function N(D, G) {
4631
- return Z;
4632
- function Z(H, U, z) {
4631
+ return V;
4632
+ function V(H, U, z) {
4633
4633
  let J, q, he, _;
4634
4634
  return Array.isArray(H) ? we(H) : "tokenize" in H ? (
4635
4635
  // @ts-expect-error Looks like a construct.
@@ -4681,13 +4681,13 @@ function M_(e, t, n) {
4681
4681
  ), D.resolveTo && (l.events = D.resolveTo(l.events, l));
4682
4682
  }
4683
4683
  function W() {
4684
- const D = p(), G = l.previous, Z = l.currentConstruct, H = l.events.length, U = Array.from(a);
4684
+ const D = p(), G = l.previous, V = l.currentConstruct, H = l.events.length, U = Array.from(a);
4685
4685
  return {
4686
4686
  restore: z,
4687
4687
  from: H
4688
4688
  };
4689
4689
  function z() {
4690
- r = D, l.previous = G, l.currentConstruct = Z, l.events.length = H, a = U, S();
4690
+ r = D, l.previous = G, l.currentConstruct = V, l.events.length = H, a = U, S();
4691
4691
  }
4692
4692
  }
4693
4693
  function S() {
@@ -4973,7 +4973,7 @@ function ek(e) {
4973
4973
  emphasis: c(),
4974
4974
  hardBreakEscape: c(G),
4975
4975
  hardBreakTrailing: c(G),
4976
- htmlFlow: c(Z),
4976
+ htmlFlow: c(V),
4977
4977
  htmlFlowData: S,
4978
4978
  htmlText: c(H),
4979
4979
  htmlTextData: S,
@@ -5239,7 +5239,7 @@ function ek(e) {
5239
5239
  function G() {
5240
5240
  this.data.atHardBreak = !0;
5241
5241
  }
5242
- function Z() {
5242
+ function V() {
5243
5243
  const B = this.resume(), Y = this.stack[this.stack.length - 1];
5244
5244
  Y.value = B;
5245
5245
  }
@@ -9364,8 +9364,8 @@ function EE(e, t, n) {
9364
9364
  else
9365
9365
  break;
9366
9366
  }
9367
- const G = D > -1 ? r.events[D][1].type : null, Z = G === "tableHead" || G === "tableRow" ? T : c;
9368
- return Z === T && r.parser.lazy[r.now().line] ? n(S) : Z(S);
9367
+ const G = D > -1 ? r.events[D][1].type : null, V = G === "tableHead" || G === "tableRow" ? T : c;
9368
+ return V === T && r.parser.lazy[r.now().line] ? n(S) : V(S);
9369
9369
  }
9370
9370
  function c(S) {
9371
9371
  return e.enter("tableHead"), e.enter("tableRow"), l(S);
@@ -10406,7 +10406,7 @@ let GS = "div", gg = ug.RenderStrategy, yg = cd(function(e, t) {
10406
10406
  if (G && O === "visible" && p.current === null)
10407
10407
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
10408
10408
  }, [p, O, G]);
10409
- let Z = x && !b, H = (() => !G || Z || W.current === y ? "idle" : y ? "enter" : "leave")(), U = jS(0), z = bi((X) => ir(X, { enter: () => {
10409
+ let V = x && !b, H = (() => !G || V || W.current === y ? "idle" : y ? "enter" : "leave")(), U = jS(0), z = bi((X) => ir(X, { enter: () => {
10410
10410
  U.addFlag(Cr.Opening), D.current.beforeEnter();
10411
10411
  }, leave: () => {
10412
10412
  U.addFlag(Cr.Closing), D.current.beforeLeave();
@@ -10424,8 +10424,8 @@ let GS = "div", gg = ug.RenderStrategy, yg = cd(function(e, t) {
10424
10424
  }), onStop: es((X) => {
10425
10425
  q.onStop(p, X, J), X === "leave" && !cc(q) && (I("hidden"), j(p));
10426
10426
  }) }), qe(() => {
10427
- !Z || (v === Er.Hidden ? W.current = null : W.current = y);
10428
- }, [y, Z, O]);
10427
+ !V || (v === Er.Hidden ? W.current = null : W.current = y);
10428
+ }, [y, V, O]);
10429
10429
  let he = f, _ = { ref: m };
10430
10430
  return b && y && Ns.isServer && (he = { ...he, className: lg(f.className, ...S.current.enter, ...S.current.enterFrom) }), un.createElement(ac.Provider, { value: q }, un.createElement(NS, { value: ir(O, { visible: Cr.Open, hidden: Cr.Closed }) | U.flags }, dg({ ourProps: _, theirProps: he, defaultTag: GS, features: gg, visible: O === "visible", name: "Transition.Child" })));
10431
10431
  }), nu = cd(function(e, t) {
@@ -10907,7 +10907,7 @@ function NT(e, t, n, r, i, s, o, a, c, l, u, d, h, f, p, m, v, y, b) {
10907
10907
  mouse: 500,
10908
10908
  touch: 600
10909
10909
  }, D = m ? 43 : 25;
10910
- let G = !1, Z = 0, H = 0, U = !1, z = !1, J = !1, q = !1;
10910
+ let G = !1, V = 0, H = 0, U = !1, z = !1, J = !1, q = !1;
10911
10911
  function he(ge, Se) {
10912
10912
  if (!Se)
10913
10913
  return;
@@ -10939,10 +10939,10 @@ function NT(e, t, n, r, i, s, o, a, c, l, u, d, h, f, p, m, v, y, b) {
10939
10939
  }
10940
10940
  function De(ge) {
10941
10941
  const Se = bg(ge, i);
10942
- q = Se, !(Se && ge.button !== 0) && (we(ge.target) || (J = m && Se && !ge.buttons && G, G = aa(s.get(), a.get()) >= 2, U = !0, o.pointerDown(ge), u.useFriction(0).useDuration(0), s.set(a), X(), Z = o.readPoint(ge), H = o.readPoint(ge, x), f.emit("pointerDown")));
10942
+ q = Se, !(Se && ge.button !== 0) && (we(ge.target) || (J = m && Se && !ge.buttons && G, G = aa(s.get(), a.get()) >= 2, U = !0, o.pointerDown(ge), u.useFriction(0).useDuration(0), s.set(a), X(), V = o.readPoint(ge), H = o.readPoint(ge, x), f.emit("pointerDown")));
10943
10943
  }
10944
10944
  function Te(ge) {
10945
- const Se = o.readPoint(ge), _e = o.readPoint(ge, x), Ie = aa(Se, Z), We = aa(_e, H);
10945
+ const Se = o.readPoint(ge), _e = o.readPoint(ge, x), Ie = aa(Se, V), We = aa(_e, H);
10946
10946
  if (!z && !q && (!ge.cancelable || (z = Ie > We, !z)))
10947
10947
  return Ne(ge);
10948
10948
  const L = o.pointerMove(ge);
@@ -11487,7 +11487,7 @@ function tO(e, t, n, r, i, s, o, a) {
11487
11487
  skipSnaps: b,
11488
11488
  containScroll: x
11489
11489
  } = s, O = t.getBoundingClientRect(), I = n.map((pe) => pe.getBoundingClientRect()), T = DT(u), N = LT(l, u), j = N.measureSize(O), W = UT(j), S = MT(c, j), D = !f && !!x, G = f || !!x, {
11490
- slideSizes: Z,
11490
+ slideSizes: V,
11491
11491
  slideSizesWithGaps: H
11492
11492
  } = XT(N, O, I, n, G, i), U = eO(j, H, y), {
11493
11493
  snaps: z,
@@ -11528,7 +11528,7 @@ function tO(e, t, n, r, i, s, o, a) {
11528
11528
  stop: () => a.stop(te),
11529
11529
  update: () => De(te),
11530
11530
  render: (pe) => Te(te, pe)
11531
- }, Ze = 0.68, Le = _[we.get()], be = ca(Le), ge = ca(Le), Se = ca(Le), _e = FT(be, Se, p, Ze), Ie = KT(f, _, q, X, Se), We = GT(Ne, we, E, Ie, _e, Se, o), L = QT(j, q, Z, z, X, f, h), te = {
11531
+ }, Ze = 0.68, Le = _[we.get()], be = ca(Le), ge = ca(Le), Se = ca(Le), _e = FT(be, Se, p, Ze), Ie = KT(f, _, q, X, Se), We = GT(Ne, we, E, Ie, _e, Se, o), L = QT(j, q, V, z, X, f, h), te = {
11532
11532
  ownerDocument: r,
11533
11533
  ownerWindow: i,
11534
11534
  eventHandler: o,
@@ -11687,7 +11687,7 @@ function is(e, t, n) {
11687
11687
  on: p,
11688
11688
  off: m,
11689
11689
  emit: v
11690
- } = l, y = Z;
11690
+ } = l, y = V;
11691
11691
  let b = !1, x, O = d(iO, is.globalOptions), I = d(O), T = [], N, j, W;
11692
11692
  function S() {
11693
11693
  const {
@@ -11714,11 +11714,11 @@ function is(e, t, n) {
11714
11714
  const We = u.find((te) => te.window === i), L = We || nO(i);
11715
11715
  We || u.push(L), O = d(O, _e), I = h(O), T = Ie || T, S(), x = D(I, L), f([O, ...T.map(({
11716
11716
  options: te
11717
- }) => te)]).forEach((te) => a.add(te, "change", Z)), I.active && (x.translate.to(x.location.get()), x.eventHandler.init(Se), x.resizeHandler.init(Se, I.watchResize), x.slidesHandler.init(Se, I.watchSlides), c.add(r, "visibilitychange", () => {
11717
+ }) => te)]).forEach((te) => a.add(te, "change", V)), I.active && (x.translate.to(x.location.get()), x.eventHandler.init(Se), x.resizeHandler.init(Se, I.watchResize), x.slidesHandler.init(Se, I.watchSlides), c.add(r, "visibilitychange", () => {
11718
11718
  r.hidden && L.reset();
11719
11719
  }), x.options.loop && x.slideLooper.loop(), j.offsetParent && W.length && x.dragHandler.init(Se, I.watchDrag), N = o.init(T, Se));
11720
11720
  }
11721
- function Z(_e, Ie) {
11721
+ function V(_e, Ie) {
11722
11722
  const We = De();
11723
11723
  H(), G(d({
11724
11724
  startIndex: We
@@ -12967,7 +12967,7 @@ function cR(e) {
12967
12967
  D();
12968
12968
  }
12969
12969
  }, [O, I, D, W]);
12970
- const Z = P.useMemo(() => ({
12970
+ const V = P.useMemo(() => ({
12971
12971
  reference: T,
12972
12972
  floating: N,
12973
12973
  setReference: b,
@@ -12999,10 +12999,10 @@ function cR(e) {
12999
12999
  return P.useMemo(() => ({
13000
13000
  ...u,
13001
13001
  update: D,
13002
- refs: Z,
13002
+ refs: V,
13003
13003
  elements: H,
13004
13004
  floatingStyles: U
13005
- }), [u, D, Z, H, U]);
13005
+ }), [u, D, V, H, U]);
13006
13006
  }
13007
13007
  /*!
13008
13008
  * tabbable 6.2.0
@@ -13619,7 +13619,7 @@ function WR(e) {
13619
13619
  domReference: y,
13620
13620
  floating: b
13621
13621
  }
13622
- } = t, x = DR() ? s : !0, O = ei(i), I = ei(o), T = ei(a), N = hc(), j = Kg(), W = typeof o == "number" && o < 0, S = P.useRef(null), D = P.useRef(null), G = P.useRef(!1), Z = P.useRef(null), H = P.useRef(!1), U = j != null, z = y && y.getAttribute("role") === "combobox" && Ig(y) && W, J = P.useCallback(function(X) {
13622
+ } = t, x = DR() ? s : !0, O = ei(i), I = ei(o), T = ei(a), N = hc(), j = Kg(), W = typeof o == "number" && o < 0, S = P.useRef(null), D = P.useRef(null), G = P.useRef(!1), V = P.useRef(null), H = P.useRef(!1), U = j != null, z = y && y.getAttribute("role") === "combobox" && Ig(y) && W, J = P.useCallback(function(X) {
13623
13623
  return X === void 0 && (X = b), X ? bd(X, _d()) : [];
13624
13624
  }, [b]), q = P.useCallback((X) => {
13625
13625
  const we = J(X);
@@ -13658,7 +13658,7 @@ function WR(e) {
13658
13658
  return ((Ne = Te.context) == null ? void 0 : Ne.elements.floating) === Ce || ((Ze = Te.context) == null ? void 0 : Ze.elements.domReference) === Ce;
13659
13659
  })));
13660
13660
  Ce && De && !H.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
13661
- Ce !== Z.current && (G.current = !0, p(!1, E));
13661
+ Ce !== V.current && (G.current = !0, p(!1, E));
13662
13662
  });
13663
13663
  }
13664
13664
  if (b && mn(y))
@@ -13691,9 +13691,9 @@ function WR(e) {
13691
13691
  return;
13692
13692
  let X = !1;
13693
13693
  const we = Hn(b), E = Jr(we), Ce = v.current;
13694
- Z.current = E;
13694
+ V.current = E;
13695
13695
  function De(Te) {
13696
- if (Te.type === "escapeKey" && h.domReference.current && (Z.current = h.domReference.current), ["referencePress", "escapeKey"].includes(Te.type))
13696
+ if (Te.type === "escapeKey" && h.domReference.current && (V.current = h.domReference.current), ["referencePress", "escapeKey"].includes(Te.type))
13697
13697
  return;
13698
13698
  const Ne = Te.data.returnFocus;
13699
13699
  typeof Ne == "object" ? (G.current = !1, X = Ne.preventScroll) : G.current = !Ne;
@@ -13704,8 +13704,8 @@ function WR(e) {
13704
13704
  (Sn(b, Te) || N && ns(N.nodesRef.current, f).some((Ze) => {
13705
13705
  var Le;
13706
13706
  return Sn((Le = Ze.context) == null ? void 0 : Le.elements.floating, Te);
13707
- }) || Ce.openEvent && ["click", "mousedown"].includes(Ce.openEvent.type)) && h.domReference.current && (Z.current = h.domReference.current), // eslint-disable-next-line react-hooks/exhaustive-deps
13708
- T.current && mn(Z.current) && !G.current && kr(Z.current, {
13707
+ }) || Ce.openEvent && ["click", "mousedown"].includes(Ce.openEvent.type)) && h.domReference.current && (V.current = h.domReference.current), // eslint-disable-next-line react-hooks/exhaustive-deps
13708
+ T.current && mn(V.current) && !G.current && kr(V.current, {
13709
13709
  // When dismissing nested floating elements, by the time the rAF has
13710
13710
  // executed, the menus will all have been unmounted. When they try
13711
13711
  // to get focused, the calls get ignored — leaving the root
@@ -13887,14 +13887,14 @@ function QR(e, t) {
13887
13887
  return;
13888
13888
  const G = b ? ns(b.nodesRef.current, s) : [];
13889
13889
  if (!N && (D.stopPropagation(), G.length > 0)) {
13890
- let Z = !0;
13890
+ let V = !0;
13891
13891
  if (G.forEach((H) => {
13892
13892
  var U;
13893
13893
  if ((U = H.context) != null && U.open && !H.context.dataRef.current.__escapeKeyBubbles) {
13894
- Z = !1;
13894
+ V = !1;
13895
13895
  return;
13896
13896
  }
13897
- }), !Z)
13897
+ }), !V)
13898
13898
  return;
13899
13899
  }
13900
13900
  i.emit("dismiss", {
@@ -13909,23 +13909,23 @@ function QR(e, t) {
13909
13909
  const G = T.current;
13910
13910
  if (T.current = !1, G || typeof I == "function" && !I(D))
13911
13911
  return;
13912
- const Z = Rg(D), H = "[" + Hs("inert") + "]", U = Hn(c).querySelectorAll(H);
13913
- let z = Nt(Z) ? Z : null;
13912
+ const V = Rg(D), H = "[" + Hs("inert") + "]", U = Hn(c).querySelectorAll(H);
13913
+ let z = Nt(V) ? V : null;
13914
13914
  for (; z && !xo(z); ) {
13915
13915
  const he = Ei(z);
13916
13916
  if (he === Hn(c).body || !Nt(he))
13917
13917
  break;
13918
13918
  z = he;
13919
13919
  }
13920
- if (U.length && Nt(Z) && !jO(Z) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
13921
- !Sn(Z, c) && // If the target root element contains none of the markers, then the
13920
+ if (U.length && Nt(V) && !jO(V) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
13921
+ !Sn(V, c) && // If the target root element contains none of the markers, then the
13922
13922
  // element was injected after the floating element rendered.
13923
13923
  Array.from(U).every((he) => !Sn(z, he)))
13924
13924
  return;
13925
- if (mn(Z) && c) {
13926
- const he = Z.clientWidth > 0 && Z.scrollWidth > Z.clientWidth, _ = Z.clientHeight > 0 && Z.scrollHeight > Z.clientHeight;
13927
- let X = _ && D.offsetX > Z.clientWidth;
13928
- if (_ && Mn(Z).direction === "rtl" && (X = D.offsetX <= Z.offsetWidth - Z.clientWidth), X || he && D.offsetY > Z.clientHeight)
13925
+ if (mn(V) && c) {
13926
+ const he = V.clientWidth > 0 && V.scrollWidth > V.clientWidth, _ = V.clientHeight > 0 && V.scrollHeight > V.clientHeight;
13927
+ let X = _ && D.offsetX > V.clientWidth;
13928
+ if (_ && Mn(V).direction === "rtl" && (X = D.offsetX <= V.offsetWidth - V.clientWidth), X || he && D.offsetY > V.clientHeight)
13929
13929
  return;
13930
13930
  }
13931
13931
  const J = b && ns(b.nodesRef.current, s).some((he) => {
@@ -13964,16 +13964,16 @@ function QR(e, t) {
13964
13964
  }
13965
13965
  const G = Hn(c);
13966
13966
  d && G.addEventListener("keydown", W), I && G.addEventListener(f, S);
13967
- let Z = [];
13968
- return v && (Nt(a) && (Z = Xr(a)), Nt(c) && (Z = Z.concat(Xr(c))), !Nt(o) && o && o.contextElement && (Z = Z.concat(Xr(o.contextElement)))), Z = Z.filter((H) => {
13967
+ let V = [];
13968
+ return v && (Nt(a) && (V = Xr(a)), Nt(c) && (V = V.concat(Xr(c))), !Nt(o) && o && o.contextElement && (V = V.concat(Xr(o.contextElement)))), V = V.filter((H) => {
13969
13969
  var U;
13970
13970
  return H !== ((U = G.defaultView) == null ? void 0 : U.visualViewport);
13971
- }), Z.forEach((H) => {
13971
+ }), V.forEach((H) => {
13972
13972
  H.addEventListener("scroll", D, {
13973
13973
  passive: !0
13974
13974
  });
13975
13975
  }), () => {
13976
- d && G.removeEventListener("keydown", W), I && G.removeEventListener(f, S), Z.forEach((H) => {
13976
+ d && G.removeEventListener("keydown", W), I && G.removeEventListener(f, S), V.forEach((H) => {
13977
13977
  H.removeEventListener("scroll", D);
13978
13978
  });
13979
13979
  };
@@ -14164,7 +14164,7 @@ function nI(e, t) {
14164
14164
  virtualItemRef: j
14165
14165
  } = t;
14166
14166
  process.env.NODE_ENV !== "production" && (h && (f || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), v || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), I === "vertical" && T > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
14167
- const W = zg(), S = hc(), D = ti(l), G = P.useRef(y), Z = P.useRef(d ?? -1), H = P.useRef(null), U = P.useRef(!0), z = P.useRef(D), J = P.useRef(!!o), q = P.useRef(!1), he = P.useRef(!1), _ = ei(O), X = ei(n), we = ei(N), [E, Ce] = P.useState(), [De, Te] = P.useState(), Ne = ti(function(be, ge, Se) {
14167
+ const W = zg(), S = hc(), D = ti(l), G = P.useRef(y), V = P.useRef(d ?? -1), H = P.useRef(null), U = P.useRef(!0), z = P.useRef(D), J = P.useRef(!!o), q = P.useRef(!1), he = P.useRef(!1), _ = ei(O), X = ei(n), we = ei(N), [E, Ce] = P.useState(), [De, Te] = P.useState(), Ne = ti(function(be, ge, Se) {
14168
14168
  Se === void 0 && (Se = !1);
14169
14169
  const _e = be.current[ge.current];
14170
14170
  _e && (v ? (Ce(_e.id), S == null || S.events.emit("virtualfocus", _e), j && (j.current = _e)) : kr(_e, {
@@ -14193,21 +14193,21 @@ function nI(e, t) {
14193
14193
  }
14194
14194
  });
14195
14195
  }, []), Xt(() => {
14196
- u && (n && o ? G.current && d != null && (he.current = !0, D(d)) : J.current && (Z.current = -1, z.current(null)));
14196
+ u && (n && o ? G.current && d != null && (he.current = !0, D(d)) : J.current && (V.current = -1, z.current(null)));
14197
14197
  }, [u, n, o, d, D]), Xt(() => {
14198
14198
  if (u && n && o)
14199
14199
  if (c == null) {
14200
14200
  if (q.current = !1, d != null)
14201
14201
  return;
14202
- if (J.current && (Z.current = -1, Ne(a, Z)), !J.current && G.current && (H.current != null || G.current === !0 && H.current == null)) {
14202
+ if (J.current && (V.current = -1, Ne(a, V)), !J.current && G.current && (H.current != null || G.current === !0 && H.current == null)) {
14203
14203
  let be = 0;
14204
14204
  const ge = () => {
14205
- a.current[0] == null ? (be < 2 && (be ? requestAnimationFrame : queueMicrotask)(ge), be++) : (Z.current = H.current == null || vl(H.current, I, m) || p ? pl(a, _.current) : fh(a, _.current), H.current = null, D(Z.current));
14205
+ a.current[0] == null ? (be < 2 && (be ? requestAnimationFrame : queueMicrotask)(ge), be++) : (V.current = H.current == null || vl(H.current, I, m) || p ? pl(a, _.current) : fh(a, _.current), H.current = null, D(V.current));
14206
14206
  };
14207
14207
  ge();
14208
14208
  }
14209
14209
  } else
14210
- js(a, c) || (Z.current = c, Ne(a, Z, he.current), he.current = !1);
14210
+ js(a, c) || (V.current = c, Ne(a, V, he.current), he.current = !1);
14211
14211
  }, [u, n, o, c, d, p, a, I, m, D, Ne, _]), Xt(() => {
14212
14212
  var be, ge;
14213
14213
  if (!u || o || !S || v || !J.current)
@@ -14264,7 +14264,7 @@ function nI(e, t) {
14264
14264
  let {
14265
14265
  pointerType: _e
14266
14266
  } = Se;
14267
- !U.current || _e === "touch" || (Z.current = -1, Ne(a, Z), D(null), v || kr(i.floating.current, {
14267
+ !U.current || _e === "touch" || (V.current = -1, Ne(a, V), D(null), v || kr(i.floating.current, {
14268
14268
  preventScroll: !0
14269
14269
  }));
14270
14270
  }
@@ -14282,8 +14282,8 @@ function nI(e, t) {
14282
14282
  ln(L), r(!1, L.nativeEvent), mn(s) && !v && s.focus();
14283
14283
  return;
14284
14284
  }
14285
- const te = Z.current, pe = pl(a, be), fe = fh(a, be);
14286
- if (L.key === "Home" && (ln(L), Z.current = pe, D(Z.current)), L.key === "End" && (ln(L), Z.current = fe, D(Z.current)), !(T > 1 && (Z.current = TR(a, {
14285
+ const te = V.current, pe = pl(a, be), fe = fh(a, be);
14286
+ if (L.key === "Home" && (ln(L), V.current = pe, D(V.current)), L.key === "End" && (ln(L), V.current = fe, D(V.current)), !(T > 1 && (V.current = TR(a, {
14287
14287
  event: L,
14288
14288
  orientation: I,
14289
14289
  loop: f,
@@ -14291,28 +14291,28 @@ function nI(e, t) {
14291
14291
  disabledIndices: be,
14292
14292
  minIndex: pe,
14293
14293
  maxIndex: fe,
14294
- prevIndex: Z.current,
14294
+ prevIndex: V.current,
14295
14295
  stopEvent: !0
14296
- }), D(Z.current), I === "both")) && wh(L.key, I)) {
14296
+ }), D(V.current), I === "both")) && wh(L.key, I)) {
14297
14297
  if (ln(L), n && !v && Jr(L.currentTarget.ownerDocument) === L.currentTarget) {
14298
- Z.current = vl(L.key, I, m) ? pe : fe, D(Z.current);
14298
+ V.current = vl(L.key, I, m) ? pe : fe, D(V.current);
14299
14299
  return;
14300
14300
  }
14301
- vl(L.key, I, m) ? f ? Z.current = te >= fe ? h && te !== a.current.length ? -1 : pe : hn(a, {
14301
+ vl(L.key, I, m) ? f ? V.current = te >= fe ? h && te !== a.current.length ? -1 : pe : hn(a, {
14302
14302
  startingIndex: te,
14303
14303
  disabledIndices: be
14304
- }) : Z.current = Math.min(fe, hn(a, {
14304
+ }) : V.current = Math.min(fe, hn(a, {
14305
14305
  startingIndex: te,
14306
14306
  disabledIndices: be
14307
- })) : f ? Z.current = te <= pe ? h && te !== -1 ? a.current.length : fe : hn(a, {
14307
+ })) : f ? V.current = te <= pe ? h && te !== -1 ? a.current.length : fe : hn(a, {
14308
14308
  startingIndex: te,
14309
14309
  decrement: !0,
14310
14310
  disabledIndices: be
14311
- }) : Z.current = Math.max(pe, hn(a, {
14311
+ }) : V.current = Math.max(pe, hn(a, {
14312
14312
  startingIndex: te,
14313
14313
  decrement: !0,
14314
14314
  disabledIndices: be
14315
- })), js(a, Z.current) ? D(null) : D(Z.current);
14315
+ })), js(a, V.current) ? D(null) : D(V.current);
14316
14316
  }
14317
14317
  }
14318
14318
  function Se(L) {
@@ -14352,10 +14352,10 @@ function nI(e, t) {
14352
14352
  }
14353
14353
  if (!(!n && !x && te)) {
14354
14354
  if (Re && (H.current = p && Me ? null : L.key), p) {
14355
- pe && (ln(L), n ? (Z.current = pl(a, be), D(Z.current)) : r(!0, L.nativeEvent));
14355
+ pe && (ln(L), n ? (V.current = pl(a, be), D(V.current)) : r(!0, L.nativeEvent));
14356
14356
  return;
14357
14357
  }
14358
- Me && (d != null && (Z.current = d), ln(L), !n && x ? r(!0, L.nativeEvent) : ge(L), n && D(Z.current));
14358
+ Me && (d != null && (V.current = d), ln(L), !n && x ? r(!0, L.nativeEvent) : ge(L), n && D(V.current));
14359
14359
  }
14360
14360
  },
14361
14361
  onFocus() {
@@ -14447,7 +14447,7 @@ function iI(e, t) {
14447
14447
  W ? i.current.typing || (i.current.typing = W, x(W)) : i.current.typing && (i.current.typing = W, x(W));
14448
14448
  }
14449
14449
  function N(W, S, D) {
14450
- const G = O.current ? O.current(S, D) : S.find((Z) => (Z == null ? void 0 : Z.toLocaleLowerCase().indexOf(D.toLocaleLowerCase())) === 0);
14450
+ const G = O.current ? O.current(S, D) : S.find((V) => (V == null ? void 0 : V.toLocaleLowerCase().indexOf(D.toLocaleLowerCase())) === 0);
14451
14451
  return G ? W.indexOf(G) : -1;
14452
14452
  }
14453
14453
  function j(W) {
@@ -14462,8 +14462,8 @@ function iI(e, t) {
14462
14462
  }) && m.current === W.key && (m.current = "", v.current = y.current), m.current += W.key, clearTimeout(p.current), p.current = setTimeout(() => {
14463
14463
  m.current = "", v.current = y.current, T(!1);
14464
14464
  }, d);
14465
- const G = v.current, Z = N(S, [...S.slice((G || 0) + 1), ...S.slice(0, (G || 0) + 1)], m.current);
14466
- Z !== -1 ? (b(Z), y.current = Z) : W.key !== " " && (m.current = "", T(!1));
14465
+ const G = v.current, V = N(S, [...S.slice((G || 0) + 1), ...S.slice(0, (G || 0) + 1)], m.current);
14466
+ V !== -1 ? (b(V), y.current = V) : W.key !== " " && (m.current = "", T(!1));
14467
14467
  }
14468
14468
  return {
14469
14469
  reference: {
@@ -14522,7 +14522,7 @@ const sI = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
14522
14522
  onTypingChange(Le) {
14523
14523
  T.current = Le;
14524
14524
  }
14525
- }), { getReferenceProps: G, getFloatingProps: Z, getItemProps: H } = eI([
14525
+ }), { getReferenceProps: G, getFloatingProps: V, getItemProps: H } = eI([
14526
14526
  j,
14527
14527
  W,
14528
14528
  S,
@@ -14554,7 +14554,7 @@ const sI = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
14554
14554
  ref: y.setFloating,
14555
14555
  className: (De = (Ce = (E = e == null ? void 0 : e[t]) == null ? void 0 : E.content) == null ? void 0 : Ce.container) == null ? void 0 : De.className,
14556
14556
  style: { ...b, ...(Ze = (Ne = (Te = e == null ? void 0 : e[t]) == null ? void 0 : Te.content) == null ? void 0 : Ne.container) == null ? void 0 : Ze.style },
14557
- ...Z(),
14557
+ ...V(),
14558
14558
  children: m.map((Le, be) => {
14559
14559
  var ge, Se;
14560
14560
  return /* @__PURE__ */ F.jsx(
@@ -14591,25 +14591,21 @@ const sI = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
14591
14591
  /* @__PURE__ */ F.jsx(kT, { ...(c = n == null ? void 0 : n[e]) == null ? void 0 : c.icon })
14592
14592
  ] });
14593
14593
  }), Gg = {
14594
- text: ME,
14595
- button: DE,
14596
- bubble: jE,
14597
14594
  audio: cT,
14595
+ bubble: jE,
14596
+ button: DE,
14597
+ carousel: OO,
14598
14598
  column: OT,
14599
+ dropdown: sI,
14599
14600
  file: oI,
14600
14601
  image: sT,
14601
14602
  location: TT,
14602
14603
  row: RT,
14603
- video: aT,
14604
- carousel: OO,
14605
- dropdown: sI
14606
- }, ko = ({
14607
- block: e,
14608
- styles: t,
14609
- ...n
14610
- }) => {
14611
- const r = Gg[e.type];
14612
- return /* @__PURE__ */ F.jsx(r, { ...n, ...e, styles: t });
14604
+ text: ME,
14605
+ video: aT
14606
+ }, ko = ({ block: e, styles: t, ...n }) => {
14607
+ const r = Gg[e.type], i = { ...n, styles: t, ...e };
14608
+ return /* @__PURE__ */ F.jsx(r, { ...i });
14613
14609
  }, _h = (e) => {
14614
14610
  let t;
14615
14611
  const n = /* @__PURE__ */ new Set(), r = (c, l) => {
@@ -14837,13 +14833,13 @@ function dI() {
14837
14833
  var I = !1, T, N, j = function(G) {
14838
14834
  if (!I) {
14839
14835
  I = !0, T = G;
14840
- var Z = f(G);
14836
+ var V = f(G);
14841
14837
  if (p !== void 0 && v.hasValue) {
14842
14838
  var H = v.value;
14843
- if (p(H, Z))
14839
+ if (p(H, V))
14844
14840
  return N = H, H;
14845
14841
  }
14846
- return N = Z, Z;
14842
+ return N = V, V;
14847
14843
  }
14848
14844
  var U = T, z = N;
14849
14845
  if (r(U, G))
@@ -19921,7 +19917,7 @@ var Cy = {}, Ey = {};
19921
19917
  typeName: K.ZodUndefined,
19922
19918
  ...c(R)
19923
19919
  });
19924
- class Z extends l {
19920
+ class V extends l {
19925
19921
  _parse(g) {
19926
19922
  if (this._getType(g) !== i.ZodParsedType.null) {
19927
19923
  const k = this._getOrReturnCtx(g);
@@ -19934,7 +19930,7 @@ var Cy = {}, Ey = {};
19934
19930
  return (0, r.OK)(g.data);
19935
19931
  }
19936
19932
  }
19937
- e.ZodNull = Z, Z.create = (R) => new Z({
19933
+ e.ZodNull = V, V.create = (R) => new V({
19938
19934
  typeName: K.ZodNull,
19939
19935
  ...c(R)
19940
19936
  });
@@ -20442,7 +20438,7 @@ var Cy = {}, Ey = {};
20442
20438
  typeName: K.ZodUnion,
20443
20439
  ...c(g)
20444
20440
  });
20445
- const we = (R) => R instanceof ge ? we(R.schema) : R instanceof te ? we(R.innerType()) : R instanceof Se ? [R.value] : R instanceof Ie ? R.options : R instanceof We ? Object.keys(R.enum) : R instanceof Me ? we(R._def.innerType) : R instanceof G ? [void 0] : R instanceof Z ? [null] : null;
20441
+ const we = (R) => R instanceof ge ? we(R.schema) : R instanceof te ? we(R.innerType()) : R instanceof Se ? [R.value] : R instanceof Ie ? R.options : R instanceof We ? Object.keys(R.enum) : R instanceof Me ? we(R._def.innerType) : R instanceof G ? [void 0] : R instanceof V ? [null] : null;
20446
20442
  class E extends l {
20447
20443
  _parse(g) {
20448
20444
  const { ctx: w } = this._processInputParams(g);
@@ -21306,7 +21302,7 @@ var Cy = {}, Ey = {};
21306
21302
  e.symbol = $t;
21307
21303
  const Ut = G.create;
21308
21304
  e.undefined = Ut;
21309
- const nn = Z.create;
21305
+ const nn = V.create;
21310
21306
  e.null = nn;
21311
21307
  const Zt = H.create;
21312
21308
  e.any = Zt;
@@ -28004,7 +28000,7 @@ const kD = (e, t = {
28004
28000
  bigint: (e) => ai.create({ ...e, coerce: !0 }),
28005
28001
  date: (e) => Ri.create({ ...e, coerce: !0 })
28006
28002
  }, QD = Qe;
28007
- var V = /* @__PURE__ */ Object.freeze({
28003
+ var Z = /* @__PURE__ */ Object.freeze({
28008
28004
  __proto__: null,
28009
28005
  defaultErrorMap: Js,
28010
28006
  setErrorMap: cD,
@@ -28642,18 +28638,45 @@ const Nc = (e) => ({
28642
28638
  type: "column",
28643
28639
  blocks: n
28644
28640
  };
28645
- }, Ab = ({ type: e, audio: t }) => ({ type: e, url: t }), $b = (e) => Nc(Pb(e)), Mb = ({ items: e }) => ({
28646
- type: "carousel",
28647
- blocks: e.map(Pb)
28648
- }), Lb = (e) => AN(e), Db = (e) => Nc($N(e)), Nb = ({ file: e, ...t }) => ({
28649
- url: e,
28650
- ...t
28651
- }), jb = ({ type: e, image: t }) => ({ type: e, url: t }), Ub = ({ type: e, latitude: t, longitude: n, title: r, address: i }) => ({
28652
- type: e,
28653
- latitude: t,
28654
- longitude: n,
28655
- title: r ?? i ?? "View on map"
28656
- }), Bd = ({ type: e, text: t }) => Nc({ type: e, text: t }), Bb = ({ type: e, video: t }) => ({ type: e, url: t }), ap = (e) => {
28641
+ }, Ab = ({ type: e, audio: t }) => ({
28642
+ payload: { type: e, url: t }
28643
+ }), $b = (e) => ({
28644
+ payload: Nc(Pb(e))
28645
+ }), Mb = ({ items: e }) => ({
28646
+ payload: {
28647
+ type: "carousel",
28648
+ blocks: e.map(Pb)
28649
+ }
28650
+ }), Lb = (e) => ({
28651
+ disableInput: e.disableFreeText,
28652
+ payload: AN(e)
28653
+ }), Db = (e) => ({
28654
+ disableInput: !0,
28655
+ payload: Nc($N(e))
28656
+ }), Nb = ({ file: e, ...t }) => ({
28657
+ payload: {
28658
+ url: e,
28659
+ ...t
28660
+ }
28661
+ }), jb = ({ type: e, image: t }) => ({
28662
+ payload: { type: e, url: t }
28663
+ }), Ub = ({ type: e, latitude: t, longitude: n, title: r, address: i }) => ({
28664
+ payload: {
28665
+ type: e,
28666
+ latitude: t,
28667
+ longitude: n,
28668
+ title: r ?? i ?? "View on map"
28669
+ }
28670
+ }), MN = ({ text: e, payload: t }) => ({
28671
+ payload: {
28672
+ type: "text",
28673
+ text: e ?? t
28674
+ }
28675
+ }), Bd = ({ type: e, text: t }) => ({
28676
+ payload: Nc({ type: e, text: t })
28677
+ }), Bb = ({ type: e, video: t }) => ({
28678
+ payload: { type: e, url: t }
28679
+ }), ap = (e) => {
28657
28680
  switch (e.type) {
28658
28681
  case "audio":
28659
28682
  return Ab(e);
@@ -28671,6 +28694,8 @@ const Nc = (e) => ({
28671
28694
  return jb(e);
28672
28695
  case "location":
28673
28696
  return Ub(e);
28697
+ case "quick_reply":
28698
+ return MN(e);
28674
28699
  case "text":
28675
28700
  return Bd(e);
28676
28701
  case "video":
@@ -28678,63 +28703,63 @@ const Nc = (e) => ({
28678
28703
  default:
28679
28704
  throw new Error("Unsuported message type");
28680
28705
  }
28681
- }, { webchatToMessaging: er } = EN, MN = (e) => {
28706
+ }, { webchatToMessaging: er } = EN, LN = (e) => {
28682
28707
  const t = er.audioAdapter(e);
28683
28708
  return Ab(t);
28684
- }, LN = (e) => {
28709
+ }, DN = (e) => {
28685
28710
  const t = er.cardAdapter(e);
28686
28711
  return $b(t);
28687
- }, DN = (e) => {
28712
+ }, NN = (e) => {
28688
28713
  const t = er.carouselAdapter(e);
28689
28714
  return Mb(t);
28690
- }, NN = (e) => {
28715
+ }, jN = (e) => {
28691
28716
  const t = er.choiceAdapter(e);
28692
28717
  return Lb(t);
28693
- }, jN = (e) => {
28718
+ }, UN = (e) => {
28694
28719
  const t = er.dropdownAdapter(e);
28695
28720
  return Db(t);
28696
- }, UN = (e) => {
28721
+ }, BN = (e) => {
28697
28722
  const t = er.fileAdapter(e);
28698
28723
  return Nb(t);
28699
- }, BN = (e) => {
28724
+ }, FN = (e) => {
28700
28725
  const t = er.imageAdapter(e);
28701
28726
  return jb(t);
28702
- }, FN = (e) => {
28727
+ }, zN = (e) => {
28703
28728
  const t = er.locationAdapter(e);
28704
28729
  return Ub(t);
28705
- }, zN = (e) => {
28730
+ }, VN = (e) => {
28706
28731
  const t = er.markdownAdapter(e);
28707
28732
  return Bd(t);
28708
- }, VN = (e) => {
28733
+ }, ZN = (e) => {
28709
28734
  const t = er.textAdapter(e);
28710
28735
  return Bd(t);
28711
- }, ZN = (e) => {
28736
+ }, WN = (e) => {
28712
28737
  const t = er.videoAdapter(e);
28713
28738
  return Bb(t);
28714
- }, WN = (e) => {
28739
+ }, HN = (e) => {
28715
28740
  switch (e.type) {
28716
28741
  case "audio":
28717
- return MN(e);
28718
- case "card":
28719
28742
  return LN(e);
28720
- case "carousel":
28743
+ case "card":
28721
28744
  return DN(e);
28722
- case "choice":
28745
+ case "carousel":
28723
28746
  return NN(e);
28724
- case "dropdown":
28747
+ case "choice":
28725
28748
  return jN(e);
28726
- case "file":
28749
+ case "dropdown":
28727
28750
  return UN(e);
28728
- case "image":
28751
+ case "file":
28729
28752
  return BN(e);
28730
- case "location":
28753
+ case "image":
28731
28754
  return FN(e);
28732
- case "markdown":
28755
+ case "location":
28733
28756
  return zN(e);
28734
- case "text":
28757
+ case "markdown":
28735
28758
  return VN(e);
28736
- case "video":
28759
+ case "text":
28737
28760
  return ZN(e);
28761
+ case "video":
28762
+ return WN(e);
28738
28763
  default:
28739
28764
  throw new Error("Unsuported message type");
28740
28765
  }
@@ -28765,10 +28790,11 @@ class Fb {
28765
28790
  break;
28766
28791
  }
28767
28792
  else {
28768
- const i = qa.parse(r), s = ap(i);
28793
+ const i = qa.parse(r), { payload: s, disableInput: o } = ap(i);
28769
28794
  this.emitter.emit("message", {
28770
28795
  ...n,
28771
- payload: s
28796
+ payload: s,
28797
+ disableInput: o
28772
28798
  });
28773
28799
  }
28774
28800
  }), this.socket.on("conversation", (n) => {
@@ -28805,10 +28831,11 @@ class Fb {
28805
28831
  }
28806
28832
  async listMessages(t) {
28807
28833
  return (await this.socket.listMessages(t)).map((r) => {
28808
- const i = qa.parse(r.payload), s = ap(i);
28834
+ const i = qa.parse(r.payload), { payload: s, disableInput: o } = ap(i);
28809
28835
  return {
28810
28836
  ...r,
28811
- payload: s
28837
+ payload: s,
28838
+ disableInput: o
28812
28839
  };
28813
28840
  });
28814
28841
  }
@@ -28822,23 +28849,23 @@ const { toString: Vb } = Object.prototype, { getPrototypeOf: Fd } = Object, zd =
28822
28849
  const n = Vb.call(t);
28823
28850
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
28824
28851
  })(/* @__PURE__ */ Object.create(null)), jr = (e) => (e = e.toLowerCase(), (t) => zd(t) === e), jc = (e) => (t) => typeof t === e, { isArray: Ss } = Array, lo = jc("undefined");
28825
- function HN(e) {
28852
+ function qN(e) {
28826
28853
  return e !== null && !lo(e) && e.constructor !== null && !lo(e.constructor) && Ai(e.constructor.isBuffer) && e.constructor.isBuffer(e);
28827
28854
  }
28828
28855
  const Zb = jr("ArrayBuffer");
28829
- function qN(e) {
28856
+ function KN(e) {
28830
28857
  let t;
28831
28858
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Zb(e.buffer), t;
28832
28859
  }
28833
- const KN = jc("string"), Ai = jc("function"), Wb = jc("number"), Vd = (e) => e !== null && typeof e == "object", GN = (e) => e === !0 || e === !1, ma = (e) => {
28860
+ const GN = jc("string"), Ai = jc("function"), Wb = jc("number"), Vd = (e) => e !== null && typeof e == "object", JN = (e) => e === !0 || e === !1, ma = (e) => {
28834
28861
  if (zd(e) !== "object")
28835
28862
  return !1;
28836
28863
  const t = Fd(e);
28837
28864
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
28838
- }, JN = jr("Date"), YN = jr("File"), QN = jr("Blob"), XN = jr("FileList"), e2 = (e) => Vd(e) && Ai(e.pipe), t2 = (e) => {
28865
+ }, YN = jr("Date"), QN = jr("File"), XN = jr("Blob"), e2 = jr("FileList"), t2 = (e) => Vd(e) && Ai(e.pipe), n2 = (e) => {
28839
28866
  const t = "[object FormData]";
28840
28867
  return e && (typeof FormData == "function" && e instanceof FormData || Vb.call(e) === t || Ai(e.toString) && e.toString() === t);
28841
- }, n2 = jr("URLSearchParams"), r2 = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
28868
+ }, r2 = jr("URLSearchParams"), i2 = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
28842
28869
  function Mo(e, t, { allOwnKeys: n = !1 } = {}) {
28843
28870
  if (e === null || typeof e > "u")
28844
28871
  return;
@@ -28872,13 +28899,13 @@ function Ou() {
28872
28899
  arguments[r] && Mo(arguments[r], n);
28873
28900
  return t;
28874
28901
  }
28875
- const i2 = (e, t, n, { allOwnKeys: r } = {}) => (Mo(t, (i, s) => {
28902
+ const s2 = (e, t, n, { allOwnKeys: r } = {}) => (Mo(t, (i, s) => {
28876
28903
  n && Ai(i) ? e[s] = zb(i, n) : e[s] = i;
28877
- }, { allOwnKeys: r }), e), s2 = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), o2 = (e, t, n, r) => {
28904
+ }, { allOwnKeys: r }), e), o2 = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), a2 = (e, t, n, r) => {
28878
28905
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
28879
28906
  value: t.prototype
28880
28907
  }), n && Object.assign(e.prototype, n);
28881
- }, a2 = (e, t, n, r) => {
28908
+ }, c2 = (e, t, n, r) => {
28882
28909
  let i, s, o;
28883
28910
  const a = {};
28884
28911
  if (t = t || {}, e == null)
@@ -28889,11 +28916,11 @@ const i2 = (e, t, n, { allOwnKeys: r } = {}) => (Mo(t, (i, s) => {
28889
28916
  e = n !== !1 && Fd(e);
28890
28917
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
28891
28918
  return t;
28892
- }, c2 = (e, t, n) => {
28919
+ }, l2 = (e, t, n) => {
28893
28920
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
28894
28921
  const r = e.indexOf(t, n);
28895
28922
  return r !== -1 && r === n;
28896
- }, l2 = (e) => {
28923
+ }, u2 = (e) => {
28897
28924
  if (!e)
28898
28925
  return null;
28899
28926
  if (Ss(e))
@@ -28905,30 +28932,30 @@ const i2 = (e, t, n, { allOwnKeys: r } = {}) => (Mo(t, (i, s) => {
28905
28932
  for (; t-- > 0; )
28906
28933
  n[t] = e[t];
28907
28934
  return n;
28908
- }, u2 = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fd(Uint8Array)), d2 = (e, t) => {
28935
+ }, d2 = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fd(Uint8Array)), f2 = (e, t) => {
28909
28936
  const r = (e && e[Symbol.iterator]).call(e);
28910
28937
  let i;
28911
28938
  for (; (i = r.next()) && !i.done; ) {
28912
28939
  const s = i.value;
28913
28940
  t.call(e, s[0], s[1]);
28914
28941
  }
28915
- }, f2 = (e, t) => {
28942
+ }, h2 = (e, t) => {
28916
28943
  let n;
28917
28944
  const r = [];
28918
28945
  for (; (n = e.exec(t)) !== null; )
28919
28946
  r.push(n);
28920
28947
  return r;
28921
- }, h2 = jr("HTMLFormElement"), p2 = (e) => e.toLowerCase().replace(
28948
+ }, p2 = jr("HTMLFormElement"), m2 = (e) => e.toLowerCase().replace(
28922
28949
  /[_-\s]([a-z\d])(\w*)/g,
28923
28950
  function(n, r, i) {
28924
28951
  return r.toUpperCase() + i;
28925
28952
  }
28926
- ), cp = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), m2 = jr("RegExp"), Gb = (e, t) => {
28953
+ ), cp = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), g2 = jr("RegExp"), Gb = (e, t) => {
28927
28954
  const n = Object.getOwnPropertyDescriptors(e), r = {};
28928
28955
  Mo(n, (i, s) => {
28929
28956
  t(i, s, e) !== !1 && (r[s] = i);
28930
28957
  }), Object.defineProperties(e, r);
28931
- }, g2 = (e) => {
28958
+ }, y2 = (e) => {
28932
28959
  Gb(e, (t, n) => {
28933
28960
  if (Ai(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
28934
28961
  return !1;
@@ -28943,15 +28970,15 @@ const i2 = (e, t, n, { allOwnKeys: r } = {}) => (Mo(t, (i, s) => {
28943
28970
  });
28944
28971
  }
28945
28972
  });
28946
- }, y2 = (e, t) => {
28973
+ }, v2 = (e, t) => {
28947
28974
  const n = {}, r = (i) => {
28948
28975
  i.forEach((s) => {
28949
28976
  n[s] = !0;
28950
28977
  });
28951
28978
  };
28952
28979
  return Ss(e) ? r(e) : r(String(e).split(t)), n;
28953
- }, v2 = () => {
28954
- }, b2 = (e, t) => (e = +e, Number.isFinite(e) ? e : t), w2 = (e) => {
28980
+ }, b2 = () => {
28981
+ }, w2 = (e, t) => (e = +e, Number.isFinite(e) ? e : t), x2 = (e) => {
28955
28982
  const t = new Array(10), n = (r, i) => {
28956
28983
  if (Vd(r)) {
28957
28984
  if (t.indexOf(r) >= 0)
@@ -28971,51 +28998,51 @@ const i2 = (e, t, n, { allOwnKeys: r } = {}) => (Mo(t, (i, s) => {
28971
28998
  }, ee = {
28972
28999
  isArray: Ss,
28973
29000
  isArrayBuffer: Zb,
28974
- isBuffer: HN,
28975
- isFormData: t2,
28976
- isArrayBufferView: qN,
28977
- isString: KN,
29001
+ isBuffer: qN,
29002
+ isFormData: n2,
29003
+ isArrayBufferView: KN,
29004
+ isString: GN,
28978
29005
  isNumber: Wb,
28979
- isBoolean: GN,
29006
+ isBoolean: JN,
28980
29007
  isObject: Vd,
28981
29008
  isPlainObject: ma,
28982
29009
  isUndefined: lo,
28983
- isDate: JN,
28984
- isFile: YN,
28985
- isBlob: QN,
28986
- isRegExp: m2,
29010
+ isDate: YN,
29011
+ isFile: QN,
29012
+ isBlob: XN,
29013
+ isRegExp: g2,
28987
29014
  isFunction: Ai,
28988
- isStream: e2,
28989
- isURLSearchParams: n2,
28990
- isTypedArray: u2,
28991
- isFileList: XN,
29015
+ isStream: t2,
29016
+ isURLSearchParams: r2,
29017
+ isTypedArray: d2,
29018
+ isFileList: e2,
28992
29019
  forEach: Mo,
28993
29020
  merge: Ou,
28994
- extend: i2,
28995
- trim: r2,
28996
- stripBOM: s2,
28997
- inherits: o2,
28998
- toFlatObject: a2,
29021
+ extend: s2,
29022
+ trim: i2,
29023
+ stripBOM: o2,
29024
+ inherits: a2,
29025
+ toFlatObject: c2,
28999
29026
  kindOf: zd,
29000
29027
  kindOfTest: jr,
29001
- endsWith: c2,
29002
- toArray: l2,
29003
- forEachEntry: d2,
29004
- matchAll: f2,
29005
- isHTMLForm: h2,
29028
+ endsWith: l2,
29029
+ toArray: u2,
29030
+ forEachEntry: f2,
29031
+ matchAll: h2,
29032
+ isHTMLForm: p2,
29006
29033
  hasOwnProperty: cp,
29007
29034
  hasOwnProp: cp,
29008
29035
  // an alias to avoid ESLint no-prototype-builtins detection
29009
29036
  reduceDescriptors: Gb,
29010
- freezeMethods: g2,
29011
- toObjectSet: y2,
29012
- toCamelCase: p2,
29013
- noop: v2,
29014
- toFiniteNumber: b2,
29037
+ freezeMethods: y2,
29038
+ toObjectSet: v2,
29039
+ toCamelCase: m2,
29040
+ noop: b2,
29041
+ toFiniteNumber: w2,
29015
29042
  findKey: Hb,
29016
29043
  global: qb,
29017
29044
  isContextDefined: Kb,
29018
- toJSONObject: w2
29045
+ toJSONObject: x2
29019
29046
  };
29020
29047
  function mt(e, t, n, r, i) {
29021
29048
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i);
@@ -29067,8 +29094,8 @@ mt.from = (e, t, n, r, i, s) => {
29067
29094
  return c !== Error.prototype;
29068
29095
  }, (a) => a !== "isAxiosError"), mt.call(o, e.message, t, n, r, i), o.cause = e, o.name = e.name, s && Object.assign(o, s), o;
29069
29096
  };
29070
- var x2 = typeof self == "object" ? self.FormData : window.FormData;
29071
- const _2 = /* @__PURE__ */ Mi(x2);
29097
+ var _2 = typeof self == "object" ? self.FormData : window.FormData;
29098
+ const k2 = /* @__PURE__ */ Mi(_2);
29072
29099
  function Ru(e) {
29073
29100
  return ee.isPlainObject(e) || ee.isArray(e);
29074
29101
  }
@@ -29080,26 +29107,26 @@ function lp(e, t, n) {
29080
29107
  return i = Qb(i), !n && s ? "[" + i + "]" : i;
29081
29108
  }).join(n ? "." : "") : t;
29082
29109
  }
29083
- function k2(e) {
29110
+ function C2(e) {
29084
29111
  return ee.isArray(e) && !e.some(Ru);
29085
29112
  }
29086
- const C2 = ee.toFlatObject(ee, {}, null, function(t) {
29113
+ const E2 = ee.toFlatObject(ee, {}, null, function(t) {
29087
29114
  return /^is[A-Z]/.test(t);
29088
29115
  });
29089
- function E2(e) {
29116
+ function S2(e) {
29090
29117
  return e && ee.isFunction(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator];
29091
29118
  }
29092
29119
  function Uc(e, t, n) {
29093
29120
  if (!ee.isObject(e))
29094
29121
  throw new TypeError("target must be an object");
29095
- t = t || new (_2 || FormData)(), n = ee.toFlatObject(n, {
29122
+ t = t || new (k2 || FormData)(), n = ee.toFlatObject(n, {
29096
29123
  metaTokens: !0,
29097
29124
  dots: !1,
29098
29125
  indexes: !1
29099
29126
  }, !1, function(m, v) {
29100
29127
  return !ee.isUndefined(v[m]);
29101
29128
  });
29102
- const r = n.metaTokens, i = n.visitor || u, s = n.dots, o = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && E2(t);
29129
+ const r = n.metaTokens, i = n.visitor || u, s = n.dots, o = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && S2(t);
29103
29130
  if (!ee.isFunction(i))
29104
29131
  throw new TypeError("visitor must be a function");
29105
29132
  function l(p) {
@@ -29116,7 +29143,7 @@ function Uc(e, t, n) {
29116
29143
  if (p && !v && typeof p == "object") {
29117
29144
  if (ee.endsWith(m, "{}"))
29118
29145
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
29119
- else if (ee.isArray(p) && k2(p) || ee.isFileList(p) || ee.endsWith(m, "[]") && (y = ee.toArray(p)))
29146
+ else if (ee.isArray(p) && C2(p) || ee.isFileList(p) || ee.endsWith(m, "[]") && (y = ee.toArray(p)))
29120
29147
  return m = Qb(m), y.forEach(function(x, O) {
29121
29148
  !(ee.isUndefined(x) || x === null) && t.append(
29122
29149
  // eslint-disable-next-line no-nested-ternary
@@ -29127,7 +29154,7 @@ function Uc(e, t, n) {
29127
29154
  }
29128
29155
  return Ru(p) ? !0 : (t.append(lp(v, m, s), l(p)), !1);
29129
29156
  }
29130
- const d = [], h = Object.assign(C2, {
29157
+ const d = [], h = Object.assign(E2, {
29131
29158
  defaultVisitor: u,
29132
29159
  convertValue: l,
29133
29160
  isVisitable: Ru
@@ -29180,13 +29207,13 @@ Xb.toString = function(t) {
29180
29207
  return n(i[0]) + "=" + n(i[1]);
29181
29208
  }, "").join("&");
29182
29209
  };
29183
- function S2(e) {
29210
+ function T2(e) {
29184
29211
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
29185
29212
  }
29186
29213
  function ew(e, t, n) {
29187
29214
  if (!t)
29188
29215
  return e;
29189
- const r = n && n.encode || S2, i = n && n.serialize;
29216
+ const r = n && n.encode || T2, i = n && n.serialize;
29190
29217
  let s;
29191
29218
  if (i ? s = i(t, n) : s = ee.isURLSearchParams(t) ? t.toString() : new Zd(t, n).toString(r), s) {
29192
29219
  const o = e.indexOf("#");
@@ -29194,7 +29221,7 @@ function ew(e, t, n) {
29194
29221
  }
29195
29222
  return e;
29196
29223
  }
29197
- class T2 {
29224
+ class O2 {
29198
29225
  constructor() {
29199
29226
  this.handlers = [];
29200
29227
  }
@@ -29248,36 +29275,36 @@ class T2 {
29248
29275
  });
29249
29276
  }
29250
29277
  }
29251
- const dp = T2, tw = {
29278
+ const dp = O2, tw = {
29252
29279
  silentJSONParsing: !0,
29253
29280
  forcedJSONParsing: !0,
29254
29281
  clarifyTimeoutError: !1
29255
- }, O2 = typeof URLSearchParams < "u" ? URLSearchParams : Zd, R2 = FormData, I2 = (() => {
29282
+ }, R2 = typeof URLSearchParams < "u" ? URLSearchParams : Zd, I2 = FormData, P2 = (() => {
29256
29283
  let e;
29257
29284
  return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
29258
- })(), P2 = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
29285
+ })(), A2 = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
29259
29286
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), or = {
29260
29287
  isBrowser: !0,
29261
29288
  classes: {
29262
- URLSearchParams: O2,
29263
- FormData: R2,
29289
+ URLSearchParams: R2,
29290
+ FormData: I2,
29264
29291
  Blob
29265
29292
  },
29266
- isStandardBrowserEnv: I2,
29267
- isStandardBrowserWebWorkerEnv: P2,
29293
+ isStandardBrowserEnv: P2,
29294
+ isStandardBrowserWebWorkerEnv: A2,
29268
29295
  protocols: ["http", "https", "file", "blob", "url", "data"]
29269
29296
  };
29270
- function A2(e, t) {
29297
+ function $2(e, t) {
29271
29298
  return Uc(e, new or.classes.URLSearchParams(), Object.assign({
29272
29299
  visitor: function(n, r, i, s) {
29273
29300
  return or.isNode && ee.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
29274
29301
  }
29275
29302
  }, t));
29276
29303
  }
29277
- function $2(e) {
29304
+ function M2(e) {
29278
29305
  return ee.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
29279
29306
  }
29280
- function M2(e) {
29307
+ function L2(e) {
29281
29308
  const t = {}, n = Object.keys(e);
29282
29309
  let r;
29283
29310
  const i = n.length;
@@ -29290,20 +29317,20 @@ function nw(e) {
29290
29317
  function t(n, r, i, s) {
29291
29318
  let o = n[s++];
29292
29319
  const a = Number.isFinite(+o), c = s >= n.length;
29293
- return o = !o && ee.isArray(i) ? i.length : o, c ? (ee.hasOwnProp(i, o) ? i[o] = [i[o], r] : i[o] = r, !a) : ((!i[o] || !ee.isObject(i[o])) && (i[o] = []), t(n, r, i[o], s) && ee.isArray(i[o]) && (i[o] = M2(i[o])), !a);
29320
+ return o = !o && ee.isArray(i) ? i.length : o, c ? (ee.hasOwnProp(i, o) ? i[o] = [i[o], r] : i[o] = r, !a) : ((!i[o] || !ee.isObject(i[o])) && (i[o] = []), t(n, r, i[o], s) && ee.isArray(i[o]) && (i[o] = L2(i[o])), !a);
29294
29321
  }
29295
29322
  if (ee.isFormData(e) && ee.isFunction(e.entries)) {
29296
29323
  const n = {};
29297
29324
  return ee.forEachEntry(e, (r, i) => {
29298
- t($2(r), i, n, 0);
29325
+ t(M2(r), i, n, 0);
29299
29326
  }), n;
29300
29327
  }
29301
29328
  return null;
29302
29329
  }
29303
- const L2 = {
29330
+ const D2 = {
29304
29331
  "Content-Type": void 0
29305
29332
  };
29306
- function D2(e, t, n) {
29333
+ function N2(e, t, n) {
29307
29334
  if (ee.isString(e))
29308
29335
  try {
29309
29336
  return (t || JSON.parse)(e), ee.trim(e);
@@ -29329,7 +29356,7 @@ const Bc = {
29329
29356
  let a;
29330
29357
  if (s) {
29331
29358
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
29332
- return A2(t, this.formSerializer).toString();
29359
+ return $2(t, this.formSerializer).toString();
29333
29360
  if ((a = ee.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
29334
29361
  const c = this.env && this.env.FormData;
29335
29362
  return Uc(
@@ -29339,7 +29366,7 @@ const Bc = {
29339
29366
  );
29340
29367
  }
29341
29368
  }
29342
- return s || i ? (n.setContentType("application/json", !1), D2(t)) : t;
29369
+ return s || i ? (n.setContentType("application/json", !1), N2(t)) : t;
29343
29370
  }],
29344
29371
  transformResponse: [function(t) {
29345
29372
  const n = this.transitional || Bc.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
@@ -29380,9 +29407,9 @@ ee.forEach(["delete", "get", "head"], function(t) {
29380
29407
  Bc.headers[t] = {};
29381
29408
  });
29382
29409
  ee.forEach(["post", "put", "patch"], function(t) {
29383
- Bc.headers[t] = ee.merge(L2);
29410
+ Bc.headers[t] = ee.merge(D2);
29384
29411
  });
29385
- const Wd = Bc, N2 = ee.toObjectSet([
29412
+ const Wd = Bc, j2 = ee.toObjectSet([
29386
29413
  "age",
29387
29414
  "authorization",
29388
29415
  "content-length",
@@ -29400,12 +29427,12 @@ const Wd = Bc, N2 = ee.toObjectSet([
29400
29427
  "referer",
29401
29428
  "retry-after",
29402
29429
  "user-agent"
29403
- ]), j2 = (e) => {
29430
+ ]), U2 = (e) => {
29404
29431
  const t = {};
29405
29432
  let n, r, i;
29406
29433
  return e && e.split(`
29407
29434
  `).forEach(function(o) {
29408
- i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!n || t[n] && N2[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
29435
+ i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!n || t[n] && j2[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
29409
29436
  }), t;
29410
29437
  }, fp = Symbol("internals");
29411
29438
  function As(e) {
@@ -29414,14 +29441,14 @@ function As(e) {
29414
29441
  function ga(e) {
29415
29442
  return e === !1 || e == null ? e : ee.isArray(e) ? e.map(ga) : String(e);
29416
29443
  }
29417
- function U2(e) {
29444
+ function B2(e) {
29418
29445
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
29419
29446
  let r;
29420
29447
  for (; r = n.exec(e); )
29421
29448
  t[r[1]] = r[2];
29422
29449
  return t;
29423
29450
  }
29424
- function B2(e) {
29451
+ function F2(e) {
29425
29452
  return /^[-_a-zA-Z]+$/.test(e.trim());
29426
29453
  }
29427
29454
  function hp(e, t, n, r) {
@@ -29434,10 +29461,10 @@ function hp(e, t, n, r) {
29434
29461
  return r.test(t);
29435
29462
  }
29436
29463
  }
29437
- function F2(e) {
29464
+ function z2(e) {
29438
29465
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
29439
29466
  }
29440
- function z2(e, t) {
29467
+ function V2(e, t) {
29441
29468
  const n = ee.toCamelCase(" " + t);
29442
29469
  ["get", "set", "has"].forEach((r) => {
29443
29470
  Object.defineProperty(e, r + n, {
@@ -29462,7 +29489,7 @@ class Fc {
29462
29489
  (!d || i[d] === void 0 || l === !0 || l === void 0 && i[d] !== !1) && (i[d || c] = ga(a));
29463
29490
  }
29464
29491
  const o = (a, c) => ee.forEach(a, (l, u) => s(l, u, c));
29465
- return ee.isPlainObject(t) || t instanceof this.constructor ? o(t, n) : ee.isString(t) && (t = t.trim()) && !B2(t) ? o(j2(t), n) : t != null && s(n, t, r), this;
29492
+ return ee.isPlainObject(t) || t instanceof this.constructor ? o(t, n) : ee.isString(t) && (t = t.trim()) && !F2(t) ? o(U2(t), n) : t != null && s(n, t, r), this;
29466
29493
  }
29467
29494
  get(t, n) {
29468
29495
  if (t = As(t), t) {
@@ -29472,7 +29499,7 @@ class Fc {
29472
29499
  if (!n)
29473
29500
  return i;
29474
29501
  if (n === !0)
29475
- return U2(i);
29502
+ return B2(i);
29476
29503
  if (ee.isFunction(n))
29477
29504
  return n.call(this, i, r);
29478
29505
  if (ee.isRegExp(n))
@@ -29510,7 +29537,7 @@ class Fc {
29510
29537
  n[o] = ga(i), delete n[s];
29511
29538
  return;
29512
29539
  }
29513
- const a = t ? F2(s) : String(s).trim();
29540
+ const a = t ? z2(s) : String(s).trim();
29514
29541
  a !== s && delete n[s], n[a] = ga(i), r[a] = !0;
29515
29542
  }), this;
29516
29543
  }
@@ -29546,7 +29573,7 @@ class Fc {
29546
29573
  }).accessors, i = this.prototype;
29547
29574
  function s(o) {
29548
29575
  const a = As(o);
29549
- r[a] || (z2(i, o), r[a] = !0);
29576
+ r[a] || (V2(i, o), r[a] = !0);
29550
29577
  }
29551
29578
  return ee.isArray(t) ? t.forEach(s) : s(t), this;
29552
29579
  }
@@ -29571,8 +29598,8 @@ function Lo(e, t, n) {
29571
29598
  ee.inherits(Lo, mt, {
29572
29599
  __CANCEL__: !0
29573
29600
  });
29574
- const V2 = null;
29575
- function Z2(e, t, n) {
29601
+ const Z2 = null;
29602
+ function W2(e, t, n) {
29576
29603
  const r = n.config.validateStatus;
29577
29604
  !n.status || !r || r(n.status) ? e(n) : t(new mt(
29578
29605
  "Request failed with status code " + n.status,
@@ -29582,7 +29609,7 @@ function Z2(e, t, n) {
29582
29609
  n
29583
29610
  ));
29584
29611
  }
29585
- const W2 = or.isStandardBrowserEnv ? (
29612
+ const H2 = or.isStandardBrowserEnv ? (
29586
29613
  // Standard browser envs support document.cookie
29587
29614
  function() {
29588
29615
  return {
@@ -29613,16 +29640,16 @@ const W2 = or.isStandardBrowserEnv ? (
29613
29640
  };
29614
29641
  }()
29615
29642
  );
29616
- function H2(e) {
29643
+ function q2(e) {
29617
29644
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
29618
29645
  }
29619
- function q2(e, t) {
29646
+ function K2(e, t) {
29620
29647
  return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
29621
29648
  }
29622
29649
  function iw(e, t) {
29623
- return e && !H2(t) ? q2(e, t) : t;
29650
+ return e && !q2(t) ? K2(e, t) : t;
29624
29651
  }
29625
- const K2 = or.isStandardBrowserEnv ? (
29652
+ const G2 = or.isStandardBrowserEnv ? (
29626
29653
  // Standard browser envs have full support of the APIs needed to test
29627
29654
  // whether the request URL is of the same origin as current location.
29628
29655
  function() {
@@ -29654,11 +29681,11 @@ const K2 = or.isStandardBrowserEnv ? (
29654
29681
  };
29655
29682
  }()
29656
29683
  );
29657
- function G2(e) {
29684
+ function J2(e) {
29658
29685
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
29659
29686
  return t && t[1] || "";
29660
29687
  }
29661
- function J2(e, t) {
29688
+ function Y2(e, t) {
29662
29689
  e = e || 10;
29663
29690
  const n = new Array(e), r = new Array(e);
29664
29691
  let i = 0, s = 0, o;
@@ -29676,7 +29703,7 @@ function J2(e, t) {
29676
29703
  }
29677
29704
  function pp(e, t) {
29678
29705
  let n = 0;
29679
- const r = J2(50, 250);
29706
+ const r = Y2(50, 250);
29680
29707
  return (i) => {
29681
29708
  const s = i.loaded, o = i.lengthComputable ? i.total : void 0, a = s - n, c = r(a), l = s <= o;
29682
29709
  n = s;
@@ -29692,7 +29719,7 @@ function pp(e, t) {
29692
29719
  u[t ? "download" : "upload"] = !0, e(u);
29693
29720
  };
29694
29721
  }
29695
- const Y2 = typeof XMLHttpRequest < "u", Q2 = Y2 && function(e) {
29722
+ const Q2 = typeof XMLHttpRequest < "u", X2 = Q2 && function(e) {
29696
29723
  return new Promise(function(n, r) {
29697
29724
  let i = e.data;
29698
29725
  const s = Pr.from(e.headers).normalize(), o = e.responseType;
@@ -29721,7 +29748,7 @@ const Y2 = typeof XMLHttpRequest < "u", Q2 = Y2 && function(e) {
29721
29748
  config: e,
29722
29749
  request: l
29723
29750
  };
29724
- Z2(function(y) {
29751
+ W2(function(y) {
29725
29752
  n(y), c();
29726
29753
  }, function(y) {
29727
29754
  r(y), c();
@@ -29743,7 +29770,7 @@ const Y2 = typeof XMLHttpRequest < "u", Q2 = Y2 && function(e) {
29743
29770
  l
29744
29771
  )), l = null;
29745
29772
  }, or.isStandardBrowserEnv) {
29746
- const f = (e.withCredentials || K2(u)) && e.xsrfCookieName && W2.read(e.xsrfCookieName);
29773
+ const f = (e.withCredentials || G2(u)) && e.xsrfCookieName && H2.read(e.xsrfCookieName);
29747
29774
  f && s.set(e.xsrfHeaderName, f);
29748
29775
  }
29749
29776
  i === void 0 && s.setContentType(null), "setRequestHeader" in l && ee.forEach(s.toJSON(), function(p, m) {
@@ -29751,7 +29778,7 @@ const Y2 = typeof XMLHttpRequest < "u", Q2 = Y2 && function(e) {
29751
29778
  }), ee.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), o && o !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", pp(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", pp(e.onUploadProgress)), (e.cancelToken || e.signal) && (a = (f) => {
29752
29779
  l && (r(!f || f.type ? new Lo(null, e, l) : f), l.abort(), l = null);
29753
29780
  }, e.cancelToken && e.cancelToken.subscribe(a), e.signal && (e.signal.aborted ? a() : e.signal.addEventListener("abort", a)));
29754
- const h = G2(u);
29781
+ const h = J2(u);
29755
29782
  if (h && or.protocols.indexOf(h) === -1) {
29756
29783
  r(new mt("Unsupported protocol " + h + ":", mt.ERR_BAD_REQUEST, e));
29757
29784
  return;
@@ -29759,8 +29786,8 @@ const Y2 = typeof XMLHttpRequest < "u", Q2 = Y2 && function(e) {
29759
29786
  l.send(i || null);
29760
29787
  });
29761
29788
  }, ya = {
29762
- http: V2,
29763
- xhr: Q2
29789
+ http: Z2,
29790
+ xhr: X2
29764
29791
  };
29765
29792
  ee.forEach(ya, (e, t) => {
29766
29793
  if (e) {
@@ -29771,7 +29798,7 @@ ee.forEach(ya, (e, t) => {
29771
29798
  Object.defineProperty(e, "adapterName", { value: t });
29772
29799
  }
29773
29800
  });
29774
- const X2 = {
29801
+ const ej = {
29775
29802
  getAdapter: (e) => {
29776
29803
  e = ee.isArray(e) ? e : [e];
29777
29804
  const { length: t } = e;
@@ -29799,7 +29826,7 @@ function mp(e) {
29799
29826
  return $l(e), e.headers = Pr.from(e.headers), e.data = Al.call(
29800
29827
  e,
29801
29828
  e.transformRequest
29802
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), X2.getAdapter(e.adapter || Wd.adapter)(e).then(function(r) {
29829
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ej.getAdapter(e.adapter || Wd.adapter)(e).then(function(r) {
29803
29830
  return $l(e), r.data = Al.call(
29804
29831
  e,
29805
29832
  e.transformResponse,
@@ -29904,7 +29931,7 @@ Hd.transitional = function(t, n, r) {
29904
29931
  )), t ? t(s, o, a) : !0;
29905
29932
  };
29906
29933
  };
29907
- function ej(e, t, n) {
29934
+ function tj(e, t, n) {
29908
29935
  if (typeof e != "object")
29909
29936
  throw new mt("options must be an object", mt.ERR_BAD_OPTION_VALUE);
29910
29937
  const r = Object.keys(e);
@@ -29922,7 +29949,7 @@ function ej(e, t, n) {
29922
29949
  }
29923
29950
  }
29924
29951
  const Iu = {
29925
- assertOptions: ej,
29952
+ assertOptions: tj,
29926
29953
  validators: Hd
29927
29954
  }, Wr = Iu.validators;
29928
29955
  class Ka {
@@ -30096,13 +30123,13 @@ class qd {
30096
30123
  };
30097
30124
  }
30098
30125
  }
30099
- const tj = qd;
30100
- function nj(e) {
30126
+ const nj = qd;
30127
+ function rj(e) {
30101
30128
  return function(n) {
30102
30129
  return e.apply(null, n);
30103
30130
  };
30104
30131
  }
30105
- function rj(e) {
30132
+ function ij(e) {
30106
30133
  return ee.isObject(e) && e.isAxiosError === !0;
30107
30134
  }
30108
30135
  const Pu = {
@@ -30173,7 +30200,7 @@ const Pu = {
30173
30200
  Object.entries(Pu).forEach(([e, t]) => {
30174
30201
  Pu[t] = e;
30175
30202
  });
30176
- const ij = Pu;
30203
+ const sj = Pu;
30177
30204
  function ow(e) {
30178
30205
  const t = new va(e), n = zb(va.prototype.request, t);
30179
30206
  return ee.extend(n, va.prototype, t, { allOwnKeys: !0 }), ee.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
@@ -30183,7 +30210,7 @@ function ow(e) {
30183
30210
  const tn = ow(Wd);
30184
30211
  tn.Axios = va;
30185
30212
  tn.CanceledError = Lo;
30186
- tn.CancelToken = tj;
30213
+ tn.CancelToken = nj;
30187
30214
  tn.isCancel = rw;
30188
30215
  tn.VERSION = sw;
30189
30216
  tn.toFormData = Uc;
@@ -30192,28 +30219,28 @@ tn.Cancel = tn.CanceledError;
30192
30219
  tn.all = function(t) {
30193
30220
  return Promise.all(t);
30194
30221
  };
30195
- tn.spread = nj;
30196
- tn.isAxiosError = rj;
30222
+ tn.spread = rj;
30223
+ tn.isAxiosError = ij;
30197
30224
  tn.mergeConfig = gs;
30198
30225
  tn.AxiosHeaders = Pr;
30199
30226
  tn.formToJSON = (e) => nw(ee.isHTMLForm(e) ? new FormData(e) : e);
30200
- tn.HttpStatusCode = ij;
30227
+ tn.HttpStatusCode = sj;
30201
30228
  tn.default = tn;
30202
30229
  const Mt = tn, Bt = "https://webchat.botpress.cloud".replace(/\/+$/, "");
30203
- class sj {
30230
+ class oj {
30204
30231
  constructor(t, n = Bt, r = Mt) {
30205
30232
  C(this, "configuration");
30206
30233
  this.basePath = n, this.axios = r, t && (this.configuration = t, this.basePath = t.basePath || this.basePath);
30207
30234
  }
30208
30235
  }
30209
- class oj extends Error {
30236
+ class aj extends Error {
30210
30237
  constructor(t, n) {
30211
30238
  super(n), this.field = t, this.name = "RequiredError";
30212
30239
  }
30213
30240
  }
30214
30241
  const qt = "https://example.com", yt = function(e, t, n) {
30215
30242
  if (n == null)
30216
- throw new oj(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
30243
+ throw new aj(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
30217
30244
  };
30218
30245
  function Au(e, t, n = "") {
30219
30246
  t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((r) => Au(e, r, n)) : Object.keys(t).forEach(
@@ -30233,7 +30260,7 @@ const Kt = function(e, ...t) {
30233
30260
  const o = { ...e.options, url: ((r == null ? void 0 : r.basePath) || s) + e.url };
30234
30261
  return i.request(o);
30235
30262
  };
30236
- }, aj = function(e) {
30263
+ }, cj = function(e) {
30237
30264
  return {
30238
30265
  /**
30239
30266
  * Add a [Participant](#schema_user) to a [Conversation](#schema_conversation).
@@ -30618,7 +30645,7 @@ const Kt = function(e, ...t) {
30618
30645
  }
30619
30646
  };
30620
30647
  }, Yt = function(e) {
30621
- const t = aj(e);
30648
+ const t = cj(e);
30622
30649
  return {
30623
30650
  /**
30624
30651
  * Add a [Participant](#schema_user) to a [Conversation](#schema_conversation).
@@ -30833,7 +30860,7 @@ const Kt = function(e, ...t) {
30833
30860
  }
30834
30861
  };
30835
30862
  };
30836
- class cj extends sj {
30863
+ class lj extends oj {
30837
30864
  /**
30838
30865
  * Add a [Participant](#schema_user) to a [Conversation](#schema_conversation).
30839
30866
  * @param {DefaultApiAddParticipantRequest} requestParameters Request parameters.
@@ -31025,12 +31052,12 @@ class cj extends sj {
31025
31052
  return Yt(this.configuration).updateUser(t.xUserKey, t.updateUserBody, n).then((r) => r(this.axios, this.basePath));
31026
31053
  }
31027
31054
  }
31028
- const lj = {
31055
+ const uj = {
31029
31056
  // Fallback in case crypto isn't available.
31030
31057
  getRandomValues: (e) => new Uint8Array(e.map(() => Math.floor(Math.random() * 256)))
31031
31058
  };
31032
31059
  let $u = typeof window < "u" && typeof window.document < "u" ? window.crypto : Od;
31033
- $u.getRandomValues || ($u = lj);
31060
+ $u.getRandomValues || ($u = uj);
31034
31061
  class kt extends Error {
31035
31062
  constructor(n, r, i, s, o, a) {
31036
31063
  super(s);
@@ -31056,155 +31083,155 @@ class kt extends Error {
31056
31083
  return typeof window < "u" && typeof window.document < "u" ? "err_bwsr" : "err";
31057
31084
  }
31058
31085
  }
31059
- const uj = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Mu = (e) => e instanceof kt || uj(e) && e.isApiError === !0;
31086
+ const dj = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Mu = (e) => e instanceof kt || dj(e) && e.isApiError === !0;
31060
31087
  class uo extends kt {
31061
31088
  constructor(t, n, r) {
31062
31089
  super(500, "An unknown error occurred", "Unknown", t, n, r);
31063
31090
  }
31064
31091
  }
31065
- class dj extends kt {
31092
+ class fj extends kt {
31066
31093
  constructor(t, n, r) {
31067
31094
  super(500, "An internal error occurred", "Internal", t, n, r);
31068
31095
  }
31069
31096
  }
31070
- class fj extends kt {
31097
+ class hj extends kt {
31071
31098
  constructor(t, n, r) {
31072
31099
  super(401, "The request requires to be authenticated.", "Unauthorized", t, n, r);
31073
31100
  }
31074
31101
  }
31075
- class hj extends kt {
31102
+ class pj extends kt {
31076
31103
  constructor(t, n, r) {
31077
31104
  super(403, "The requested action can't be peform by this resource.", "Forbidden", t, n, r);
31078
31105
  }
31079
31106
  }
31080
- class pj extends kt {
31107
+ class mj extends kt {
31081
31108
  constructor(t, n, r) {
31082
31109
  super(413, "The request payload is too large.", "PayloadTooLarge", t, n, r);
31083
31110
  }
31084
31111
  }
31085
- class mj extends kt {
31112
+ class gj extends kt {
31086
31113
  constructor(t, n, r) {
31087
31114
  super(400, "The request payload is invalid.", "InvalidPayload", t, n, r);
31088
31115
  }
31089
31116
  }
31090
- class gj extends kt {
31117
+ class yj extends kt {
31091
31118
  constructor(t, n, r) {
31092
31119
  super(415, "The request is invalid because the content-type is not supported.", "UnsupportedMediaType", t, n, r);
31093
31120
  }
31094
31121
  }
31095
- class yj extends kt {
31122
+ class vj extends kt {
31096
31123
  constructor(t, n, r) {
31097
31124
  super(405, "The requested method does not exist.", "MethodNotFound", t, n, r);
31098
31125
  }
31099
31126
  }
31100
- class vj extends kt {
31127
+ class bj extends kt {
31101
31128
  constructor(t, n, r) {
31102
31129
  super(404, "The requested resource does not exist.", "ResourceNotFound", t, n, r);
31103
31130
  }
31104
31131
  }
31105
- class bj extends kt {
31132
+ class wj extends kt {
31106
31133
  constructor(t, n, r) {
31107
31134
  super(400, "The provided JSON schema is invalid.", "InvalidJsonSchema", t, n, r);
31108
31135
  }
31109
31136
  }
31110
- class wj extends kt {
31137
+ class xj extends kt {
31111
31138
  constructor(t, n, r) {
31112
31139
  super(400, "The provided data doesn't respect the provided JSON schema.", "InvalidDataFormat", t, n, r);
31113
31140
  }
31114
31141
  }
31115
- class xj extends kt {
31142
+ class _j extends kt {
31116
31143
  constructor(t, n, r) {
31117
31144
  super(400, "The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.", "InvalidIdentifier", t, n, r);
31118
31145
  }
31119
31146
  }
31120
- class _j extends kt {
31147
+ class kj extends kt {
31121
31148
  constructor(t, n, r) {
31122
31149
  super(409, "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.", "RelationConflict", t, n, r);
31123
31150
  }
31124
31151
  }
31125
- class kj extends kt {
31152
+ class Cj extends kt {
31126
31153
  constructor(t, n, r) {
31127
31154
  super(409, "The resource cannot be deleted because it's referenced by another resource", "ReferenceConstraint", t, n, r);
31128
31155
  }
31129
31156
  }
31130
- class Cj extends kt {
31157
+ class Ej extends kt {
31131
31158
  constructor(t, n, r) {
31132
31159
  super(400, "The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.", "ReferenceNotFound", t, n, r);
31133
31160
  }
31134
31161
  }
31135
- class Ej extends kt {
31162
+ class Sj extends kt {
31136
31163
  constructor(t, n, r) {
31137
31164
  super(400, "The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.", "InvalidQuery", t, n, r);
31138
31165
  }
31139
31166
  }
31140
- class Sj extends kt {
31167
+ class Tj extends kt {
31141
31168
  constructor(t, n, r) {
31142
31169
  super(400, "An error happened during the execution of a runtime (bot or integration).", "Runtime", t, n, r);
31143
31170
  }
31144
31171
  }
31145
- class Tj extends kt {
31172
+ class Oj extends kt {
31146
31173
  constructor(t, n, r) {
31147
31174
  super(409, "The record attempted to be created already exists.", "AlreadyExists", t, n, r);
31148
31175
  }
31149
31176
  }
31150
- class Oj extends kt {
31177
+ class Rj extends kt {
31151
31178
  constructor(t, n, r) {
31152
31179
  super(429, "The request has been rate limited.", "RateLimited", t, n, r);
31153
31180
  }
31154
31181
  }
31155
- class Rj extends kt {
31182
+ class Ij extends kt {
31156
31183
  constructor(t, n, r) {
31157
31184
  super(402, "A payment is required to perform this request.", "PaymentRequired", t, n, r);
31158
31185
  }
31159
31186
  }
31160
- class Ij extends kt {
31187
+ class Pj extends kt {
31161
31188
  constructor(t, n, r) {
31162
31189
  super(403, "The request exceeds the allowed quota. Quotas are a soft limit that can be increased.", "QuotaExceeded", t, n, r);
31163
31190
  }
31164
31191
  }
31165
- class Pj extends kt {
31192
+ class Aj extends kt {
31166
31193
  constructor(t, n, r) {
31167
31194
  super(413, "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.", "LimitExceeded", t, n, r);
31168
31195
  }
31169
31196
  }
31170
- class Aj extends kt {
31197
+ class $j extends kt {
31171
31198
  constructor(t, n, r) {
31172
31199
  super(400, "Request payload contains breaking changes which is not allowed for this resource without a version increment.", "BreakingChanges", t, n, r);
31173
31200
  }
31174
31201
  }
31175
- const $j = {
31202
+ const Mj = {
31176
31203
  Unknown: uo,
31177
- Internal: dj,
31178
- Unauthorized: fj,
31179
- Forbidden: hj,
31180
- PayloadTooLarge: pj,
31181
- InvalidPayload: mj,
31182
- UnsupportedMediaType: gj,
31183
- MethodNotFound: yj,
31184
- ResourceNotFound: vj,
31185
- InvalidJsonSchema: bj,
31186
- InvalidDataFormat: wj,
31187
- InvalidIdentifier: xj,
31188
- RelationConflict: _j,
31189
- ReferenceConstraint: kj,
31190
- ReferenceNotFound: Cj,
31191
- InvalidQuery: Ej,
31192
- Runtime: Sj,
31193
- AlreadyExists: Tj,
31194
- RateLimited: Oj,
31195
- PaymentRequired: Rj,
31196
- QuotaExceeded: Ij,
31197
- LimitExceeded: Pj,
31198
- BreakingChanges: Aj
31199
- }, vp = (e) => Mu(e) ? e : e instanceof Error ? new uo(e.message, e) : typeof e == "string" ? new uo(e) : Mj(e);
31200
- function Mj(e) {
31204
+ Internal: fj,
31205
+ Unauthorized: hj,
31206
+ Forbidden: pj,
31207
+ PayloadTooLarge: mj,
31208
+ InvalidPayload: gj,
31209
+ UnsupportedMediaType: yj,
31210
+ MethodNotFound: vj,
31211
+ ResourceNotFound: bj,
31212
+ InvalidJsonSchema: wj,
31213
+ InvalidDataFormat: xj,
31214
+ InvalidIdentifier: _j,
31215
+ RelationConflict: kj,
31216
+ ReferenceConstraint: Cj,
31217
+ ReferenceNotFound: Ej,
31218
+ InvalidQuery: Sj,
31219
+ Runtime: Tj,
31220
+ AlreadyExists: Oj,
31221
+ RateLimited: Rj,
31222
+ PaymentRequired: Ij,
31223
+ QuotaExceeded: Pj,
31224
+ LimitExceeded: Aj,
31225
+ BreakingChanges: $j
31226
+ }, vp = (e) => Mu(e) ? e : e instanceof Error ? new uo(e.message, e) : typeof e == "string" ? new uo(e) : Lj(e);
31227
+ function Lj(e) {
31201
31228
  if (typeof e == "object" && "code" in e && "type" in e && "id" in e && "message" in e && typeof e.type == "string" && typeof e.message == "string") {
31202
- const t = $j[e.type];
31229
+ const t = Mj[e.type];
31203
31230
  return t ? new t(e.message, void 0, e.id || "UNKNOWN") : new uo(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`);
31204
31231
  }
31205
31232
  return new uo("An invalid error occurred: " + JSON.stringify(e));
31206
31233
  }
31207
- class Lj {
31234
+ class Dj {
31208
31235
  constructor(t, n, r) {
31209
31236
  C(this, "_innerClient");
31210
31237
  C(this, "addParticipant", ({ id: t, xUserKey: n, ...r }) => this._innerClient.addParticipant({ id: t, xUserKey: n, addParticipantBody: r }).then((i) => i.data).catch((i) => {
@@ -31264,7 +31291,7 @@ class Lj {
31264
31291
  C(this, "getEvent", (t) => this._innerClient.getEvent(t).then((n) => n.data).catch((n) => {
31265
31292
  throw Qt(n);
31266
31293
  }));
31267
- this._innerClient = new cj(t, n, r);
31294
+ this._innerClient = new lj(t, n, r);
31268
31295
  }
31269
31296
  }
31270
31297
  function Qt(e) {
@@ -31601,10 +31628,10 @@ var Lu = { exports: {} };
31601
31628
  function G(L) {
31602
31629
  this.type = L, this.target = void 0;
31603
31630
  }
31604
- function Z(L, te) {
31631
+ function V(L, te) {
31605
31632
  G.call(this, L), this.data = te.data, this.lastEventId = te.lastEventId;
31606
31633
  }
31607
- Z.prototype = Object.create(G.prototype);
31634
+ V.prototype = Object.create(G.prototype);
31608
31635
  function H(L, te) {
31609
31636
  G.call(this, L), this.status = te.status, this.statusText = te.statusText, this.headers = te.headers;
31610
31637
  }
@@ -31681,7 +31708,7 @@ var Lu = { exports: {} };
31681
31708
  if (Zt === X) {
31682
31709
  if (dn !== "") {
31683
31710
  at = $t, Ut === "" && (Ut = "message");
31684
- var nr = new Z(Ut, {
31711
+ var nr = new V(Ut, {
31685
31712
  data: dn.slice(1),
31686
31713
  lastEventId: $t
31687
31714
  });
@@ -31755,15 +31782,15 @@ var Lu = { exports: {} };
31755
31782
  });
31756
31783
  })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : $e : globalThis);
31757
31784
  })(Lu, Lu.exports);
31758
- var Dj = Lu.exports;
31759
- const Nj = /* @__PURE__ */ Mi(Dj), jj = (e, t = {}) => {
31760
- const n = new Nj.EventSourcePolyfill(e, { headers: t.headers }), r = new aw();
31785
+ var Nj = Lu.exports;
31786
+ const jj = /* @__PURE__ */ Mi(Nj), Uj = (e, t = {}) => {
31787
+ const n = new jj.EventSourcePolyfill(e, { headers: t.headers }), r = new aw();
31761
31788
  return n.onopen = (i) => r.emit("open", i), n.onmessage = (i) => r.emit("message", i), n.onerror = (i) => r.emit("error", i), {
31762
31789
  emitter: r,
31763
31790
  source: n
31764
31791
  };
31765
- }, Uj = async (e, t = {}) => {
31766
- const { emitter: n, source: r } = jj(e, t);
31792
+ }, Bj = async (e, t = {}) => {
31793
+ const { emitter: n, source: r } = Uj(e, t);
31767
31794
  return await new Promise((i, s) => {
31768
31795
  n.on("open", () => {
31769
31796
  i();
@@ -31776,125 +31803,125 @@ const Nj = /* @__PURE__ */ Mi(Dj), jj = (e, t = {}) => {
31776
31803
  n.cleanup(), r.close();
31777
31804
  }
31778
31805
  };
31779
- }, Bj = V.object({
31780
- type: V.literal("message_created"),
31781
- data: V.object({
31782
- id: V.string(),
31783
- createdAt: V.string().datetime(),
31784
- payload: V.union([
31785
- V.object({
31786
- audioUrl: V.string().min(1),
31787
- className: V.string().describe("CSS className to apply to the message").optional(),
31788
- type: V.literal("audio")
31806
+ }, Fj = Z.object({
31807
+ type: Z.literal("message_created"),
31808
+ data: Z.object({
31809
+ id: Z.string(),
31810
+ createdAt: Z.string().datetime(),
31811
+ payload: Z.union([
31812
+ Z.object({
31813
+ audioUrl: Z.string().min(1),
31814
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31815
+ type: Z.literal("audio")
31789
31816
  }),
31790
- V.object({
31791
- title: V.string().min(1),
31792
- subtitle: V.string().optional(),
31793
- imageUrl: V.string().optional(),
31794
- actions: V.array(
31795
- V.object({
31796
- action: V.enum(["postback", "url", "say"]),
31797
- label: V.string().min(1),
31798
- value: V.string().min(1)
31817
+ Z.object({
31818
+ title: Z.string().min(1),
31819
+ subtitle: Z.string().optional(),
31820
+ imageUrl: Z.string().optional(),
31821
+ actions: Z.array(
31822
+ Z.object({
31823
+ action: Z.enum(["postback", "url", "say"]),
31824
+ label: Z.string().min(1),
31825
+ value: Z.string().min(1)
31799
31826
  })
31800
31827
  ),
31801
- type: V.literal("card"),
31802
- className: V.string().describe("CSS className to apply to the message").optional()
31828
+ type: Z.literal("card"),
31829
+ className: Z.string().describe("CSS className to apply to the message").optional()
31803
31830
  }),
31804
- V.object({
31805
- items: V.array(
31806
- V.object({
31807
- title: V.string().min(1),
31808
- subtitle: V.string().optional(),
31809
- imageUrl: V.string().optional(),
31810
- actions: V.array(
31811
- V.object({
31812
- action: V.enum(["postback", "url", "say"]),
31813
- label: V.string().min(1),
31814
- value: V.string().min(1)
31831
+ Z.object({
31832
+ items: Z.array(
31833
+ Z.object({
31834
+ title: Z.string().min(1),
31835
+ subtitle: Z.string().optional(),
31836
+ imageUrl: Z.string().optional(),
31837
+ actions: Z.array(
31838
+ Z.object({
31839
+ action: Z.enum(["postback", "url", "say"]),
31840
+ label: Z.string().min(1),
31841
+ value: Z.string().min(1)
31815
31842
  })
31816
31843
  ),
31817
- className: V.string().describe("CSS className to apply to the message").optional()
31844
+ className: Z.string().describe("CSS className to apply to the message").optional()
31818
31845
  })
31819
31846
  ),
31820
- className: V.string().describe("CSS className to apply to the message").optional(),
31821
- type: V.literal("carousel")
31847
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31848
+ type: Z.literal("carousel")
31822
31849
  }),
31823
- V.object({
31824
- text: V.string(),
31825
- options: V.array(
31826
- V.object({
31827
- label: V.string().min(1),
31828
- value: V.string().min(1)
31850
+ Z.object({
31851
+ text: Z.string(),
31852
+ options: Z.array(
31853
+ Z.object({
31854
+ label: Z.string().min(1),
31855
+ value: Z.string().min(1)
31829
31856
  })
31830
31857
  ),
31831
- className: V.string().describe("CSS className to apply to the message").optional(),
31832
- type: V.literal("choice"),
31833
- disableFreeText: V.boolean().optional()
31858
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31859
+ type: Z.literal("choice"),
31860
+ disableFreeText: Z.boolean().optional()
31834
31861
  }),
31835
- V.object({
31836
- text: V.string(),
31837
- options: V.array(
31838
- V.object({
31839
- label: V.string().min(1),
31840
- value: V.string().min(1)
31862
+ Z.object({
31863
+ text: Z.string(),
31864
+ options: Z.array(
31865
+ Z.object({
31866
+ label: Z.string().min(1),
31867
+ value: Z.string().min(1)
31841
31868
  })
31842
31869
  ),
31843
- className: V.string().describe("CSS className to apply to the message").optional(),
31844
- type: V.literal("dropdown")
31870
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31871
+ type: Z.literal("dropdown")
31845
31872
  }),
31846
- V.object({
31847
- fileUrl: V.string().min(1),
31848
- title: V.string().min(1).optional(),
31849
- className: V.string().describe("CSS className to apply to the message").optional(),
31850
- type: V.literal("file")
31873
+ Z.object({
31874
+ fileUrl: Z.string().min(1),
31875
+ title: Z.string().min(1).optional(),
31876
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31877
+ type: Z.literal("file")
31851
31878
  }),
31852
- V.object({
31853
- imageUrl: V.string().min(1),
31854
- className: V.string().describe("CSS className to apply to the message").optional(),
31855
- type: V.literal("image")
31879
+ Z.object({
31880
+ imageUrl: Z.string().min(1),
31881
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31882
+ type: Z.literal("image")
31856
31883
  }),
31857
- V.object({
31858
- latitude: V.number(),
31859
- longitude: V.number(),
31860
- address: V.string().optional(),
31861
- title: V.string().optional(),
31862
- className: V.string().describe("CSS className to apply to the message").optional(),
31863
- type: V.literal("location")
31884
+ Z.object({
31885
+ latitude: Z.number(),
31886
+ longitude: Z.number(),
31887
+ address: Z.string().optional(),
31888
+ title: Z.string().optional(),
31889
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31890
+ type: Z.literal("location")
31864
31891
  }),
31865
- V.object({
31866
- markdown: V.string().min(1),
31867
- className: V.string().describe("CSS className to apply to the message").optional(),
31868
- type: V.literal("markdown")
31892
+ Z.object({
31893
+ markdown: Z.string().min(1),
31894
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31895
+ type: Z.literal("markdown")
31869
31896
  }),
31870
- V.object({
31871
- text: V.string().min(1),
31872
- className: V.string().describe("CSS className to apply to the message").optional(),
31873
- type: V.literal("text")
31897
+ Z.object({
31898
+ text: Z.string().min(1),
31899
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31900
+ type: Z.literal("text")
31874
31901
  }),
31875
- V.object({
31876
- videoUrl: V.string().min(1),
31877
- className: V.string().describe("CSS className to apply to the message").optional(),
31878
- type: V.literal("video")
31902
+ Z.object({
31903
+ videoUrl: Z.string().min(1),
31904
+ className: Z.string().describe("CSS className to apply to the message").optional(),
31905
+ type: Z.literal("video")
31879
31906
  })
31880
31907
  ]),
31881
- userId: V.string(),
31882
- conversationId: V.string()
31908
+ userId: Z.string(),
31909
+ conversationId: Z.string()
31883
31910
  })
31884
- }), Fj = V.object({
31885
- type: V.literal("webchat_visibility"),
31886
- data: V.object({ visibility: V.enum(["show", "hide", "toggle"]) })
31887
- }), zj = V.object({
31888
- type: V.literal("webchat_config"),
31889
- data: V.object({ config: V.record(V.any()) })
31890
- }), Vj = V.object({
31891
- type: V.literal("custom"),
31892
- data: V.object({ event: V.record(V.any()) })
31893
- }), Zj = {
31894
- messageCreatedSignal: Bj,
31895
- webchatVisibilitySignal: Fj,
31896
- webchatConfigSignal: zj,
31897
- customSignal: Vj
31911
+ }), zj = Z.object({
31912
+ type: Z.literal("webchat_visibility"),
31913
+ data: Z.object({ visibility: Z.enum(["show", "hide", "toggle"]) })
31914
+ }), Vj = Z.object({
31915
+ type: Z.literal("webchat_config"),
31916
+ data: Z.object({ config: Z.record(Z.any()) })
31917
+ }), Zj = Z.object({
31918
+ type: Z.literal("custom"),
31919
+ data: Z.object({ event: Z.record(Z.any()) })
31920
+ }), Wj = {
31921
+ messageCreated: Fj,
31922
+ webchatVisibility: zj,
31923
+ webchatConfig: Vj,
31924
+ custom: Zj
31898
31925
  }, bp = "unknown error", Ja = class Ja extends aw {
31899
31926
  constructor(n) {
31900
31927
  super();
@@ -31916,7 +31943,7 @@ const Nj = /* @__PURE__ */ Mi(Dj), jj = (e, t = {}) => {
31916
31943
  this._state.status === "connecting" ? n = await this._state.connectionPromise : n = this._state.source, this._disconnectSync(n);
31917
31944
  });
31918
31945
  C(this, "_connect", async () => {
31919
- const n = await Uj(`${this._props.url}/conversations/${this._props.conversationId}/listen`, {
31946
+ const n = await Bj(`${this._props.url}/conversations/${this._props.conversationId}/listen`, {
31920
31947
  headers: { "x-user-key": this._props.userKey }
31921
31948
  });
31922
31949
  return n.on("message", this._handleMessage), n.on("error", this._handleError(n)), this._state = { status: "connected", source: n }, n;
@@ -31934,7 +31961,7 @@ const Nj = /* @__PURE__ */ Mi(Dj), jj = (e, t = {}) => {
31934
31961
  this.emit("error", i);
31935
31962
  });
31936
31963
  C(this, "_parseSignal", (n) => {
31937
- for (const r of Object.values(Zj)) {
31964
+ for (const r of Object.values(Wj)) {
31938
31965
  const i = this._safeJsonParse(n), s = r.safeParse(i);
31939
31966
  if (s.success)
31940
31967
  return s.data;
@@ -31978,8 +32005,8 @@ C(Ja, "listen", async (n) => {
31978
32005
  return await r.connect(), r;
31979
32006
  });
31980
32007
  let Du = Ja;
31981
- const cw = 100 * 1024 * 1024, Wj = cw, Hj = cw, qj = 6e4;
31982
- class Kj {
32008
+ const cw = 100 * 1024 * 1024, Hj = cw, qj = cw, Kj = 6e4;
32009
+ class Gj {
31983
32010
  constructor(t) {
31984
32011
  C(this, "_auto");
31985
32012
  C(this, "createConversation", (t) => this._auto.createConversation(t));
@@ -32008,8 +32035,8 @@ class Kj {
32008
32035
  this.props = t;
32009
32036
  const { apiUrl: n } = t, r = {
32010
32037
  ...t.headers
32011
- }, i = t.timeout ?? qj, s = Mt.create({ headers: r, withCredentials: !0, timeout: i, maxBodyLength: Wj, maxContentLength: Hj });
32012
- this._auto = new Lj(void 0, n, s);
32038
+ }, i = t.timeout ?? Kj, s = Mt.create({ headers: r, withCredentials: !0, timeout: i, maxBodyLength: Hj, maxContentLength: qj });
32039
+ this._auto = new Dj(void 0, n, s);
32013
32040
  }
32014
32041
  }
32015
32042
  const Ga = {
@@ -32075,15 +32102,19 @@ class lw extends Vu {
32075
32102
  userData: r
32076
32103
  })), n;
32077
32104
  });
32078
- C(this, "_mapMessage", (n) => ({
32079
- id: n.id,
32080
- conversationId: n.conversationId,
32081
- authorId: n.userId,
32082
- sentOn: new Date(n.createdAt),
32083
- payload: WN(n.payload)
32084
- }));
32105
+ C(this, "_mapMessage", (n) => {
32106
+ const { payload: r, disableInput: i } = HN(n.payload);
32107
+ return {
32108
+ id: n.id,
32109
+ conversationId: n.conversationId,
32110
+ authorId: n.userId,
32111
+ sentOn: new Date(n.createdAt),
32112
+ payload: r,
32113
+ disableInput: i
32114
+ };
32115
+ });
32085
32116
  const r = `${n.apiUrl}/${n.clientId}`;
32086
- this._webhookId = n.clientId, this._client = new Kj({
32117
+ this._webhookId = n.clientId, this._client = new Gj({
32087
32118
  apiUrl: r
32088
32119
  });
32089
32120
  }
@@ -32217,7 +32248,7 @@ class lw extends Vu {
32217
32248
  }, this._state;
32218
32249
  }
32219
32250
  }
32220
- const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32251
+ const JF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32221
32252
  const [r, i] = Ye();
32222
32253
  return qe(() => {
32223
32254
  const s = n === "messaging" ? new Fb({
@@ -32229,7 +32260,7 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32229
32260
  });
32230
32261
  i(s);
32231
32262
  }, [e, t, n]), r;
32232
- }, Gj = ys(
32263
+ }, Jj = ys(
32233
32264
  Xe((e, t) => {
32234
32265
  const {
32235
32266
  state: n,
@@ -32243,7 +32274,7 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32243
32274
  };
32244
32275
  return /* @__PURE__ */ F.jsx(Ym.Provider, { value: { value: s, setValue: o, historyIndex: a, setHistoryIndex: c, sendMessage: l }, children: /* @__PURE__ */ F.jsx("div", { "data-disabled": n.disableComposer, ...e, ...r == null ? void 0 : r.container, ref: t }) });
32245
32276
  })
32246
- ), Jj = ys(({ ...e }) => {
32277
+ ), Yj = ys(({ ...e }) => {
32247
32278
  const {
32248
32279
  state: t,
32249
32280
  theme: { composer: n }
@@ -32276,7 +32307,7 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32276
32307
  ...e
32277
32308
  }
32278
32309
  );
32279
- }), Yj = ys(
32310
+ }), Qj = ys(
32280
32311
  Xe(({ icon: e = yT, ...t }, n) => {
32281
32312
  var o, a;
32282
32313
  const { value: r, sendMessage: i } = Qm(), {
@@ -32284,7 +32315,7 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32284
32315
  } = _t();
32285
32316
  return /* @__PURE__ */ F.jsx("button", { ref: n, ...t, ...(o = s == null ? void 0 : s.button) == null ? void 0 : o.container, disabled: !r, onClick: i, children: /* @__PURE__ */ F.jsx(e, { ...(a = s == null ? void 0 : s.button) == null ? void 0 : a.icon }) });
32286
32317
  })
32287
- ), Qj = ({ children: e }) => {
32318
+ ), Xj = ({ children: e }) => {
32288
32319
  const [t, n] = Ye(!1), [r, i] = Ye(""), [s, o] = Ye(null), a = ({ title: l, content: u }) => {
32289
32320
  i(l), o(u), n(!0);
32290
32321
  }, c = () => {
@@ -32294,7 +32325,7 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32294
32325
  /* @__PURE__ */ F.jsx($i, { open: t, onOpenChange: n, children: /* @__PURE__ */ F.jsx($i.Content, { title: r, children: s }) }),
32295
32326
  e
32296
32327
  ] });
32297
- }, JF = ({
32328
+ }, YF = ({
32298
32329
  theme: e = {},
32299
32330
  renderers: t,
32300
32331
  client: n,
@@ -32334,6 +32365,7 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32334
32365
  direction: "outgoing",
32335
32366
  sender: { name: "You" },
32336
32367
  timestamp: /* @__PURE__ */ new Date(),
32368
+ disableInput: !1,
32337
32369
  block: { type: "bubble", block: { type: "text", text: S } }
32338
32370
  }
32339
32371
  ]), n.userId && b({ message: S, userId: n.userId });
@@ -32351,14 +32383,15 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32351
32383
  if (n)
32352
32384
  return n.on("message", (S) => {
32353
32385
  try {
32354
- const D = S.payload;
32355
- d((G) => [
32356
- ...G,
32386
+ const { payload: D, disableInput: G } = S;
32387
+ d((V) => [
32388
+ ...V,
32357
32389
  {
32358
32390
  direction: "incoming",
32359
32391
  sender: { name: p.botName ?? "Bot", avatar: p.botAvatar },
32360
32392
  timestamp: new Date(S.sentOn),
32361
- block: D
32393
+ block: D,
32394
+ disableInput: G
32362
32395
  }
32363
32396
  ]);
32364
32397
  } catch {
@@ -32382,19 +32415,20 @@ const GF = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => {
32382
32415
  try {
32383
32416
  S = await n.connect(O, s), f((G) => ({ ...G, connected: !0 }));
32384
32417
  } catch {
32385
- f((Z) => ({ ...Z, connected: !1 }));
32418
+ f((V) => ({ ...V, connected: !1 }));
32386
32419
  return;
32387
32420
  }
32388
32421
  T(S), I && await n.conversationExists(I) ? await n.switchConversation(I) : await n.newConversation();
32389
32422
  const D = [];
32390
32423
  for (const G of await n.listMessages())
32391
32424
  try {
32392
- const Z = G.payload, H = G.authorId === n.userId ? "outgoing" : "incoming";
32425
+ const { payload: V, authorId: H, sentOn: U, disableInput: z } = G, J = H === n.userId ? "outgoing" : "incoming";
32393
32426
  D.push({
32394
- direction: H,
32395
- sender: H === "outgoing" ? { name: "You" } : { name: p.botName ?? "Bot", avatar: p.botAvatar },
32396
- timestamp: new Date(G.sentOn),
32397
- block: Z
32427
+ direction: J,
32428
+ sender: J === "outgoing" ? { name: "You" } : { name: p.botName ?? "Bot", avatar: p.botAvatar },
32429
+ timestamp: new Date(U),
32430
+ block: V,
32431
+ disableInput: z
32398
32432
  });
32399
32433
  } catch {
32400
32434
  console.error("Invalid message payload");
@@ -32410,14 +32444,14 @@ function Ar(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
32410
32444
  return t == null ? void 0 : t(i);
32411
32445
  };
32412
32446
  }
32413
- const Xj = P["useId".toString()] || (() => {
32447
+ const eU = P["useId".toString()] || (() => {
32414
32448
  });
32415
- let eU = 0;
32449
+ let tU = 0;
32416
32450
  function ba(e) {
32417
- const [t, n] = P.useState(Xj());
32451
+ const [t, n] = P.useState(eU());
32418
32452
  return Fs(() => {
32419
32453
  e || n(
32420
- (r) => r ?? String(eU++)
32454
+ (r) => r ?? String(tU++)
32421
32455
  );
32422
32456
  }, [
32423
32457
  e
@@ -32425,7 +32459,7 @@ function ba(e) {
32425
32459
  }
32426
32460
  function uw({ prop: e, defaultProp: t, onChange: n = () => {
32427
32461
  } }) {
32428
- const [r, i] = tU({
32462
+ const [r, i] = nU({
32429
32463
  defaultProp: t,
32430
32464
  onChange: n
32431
32465
  }), s = e !== void 0, o = s ? e : r, a = ni(n), c = en((l) => {
@@ -32445,7 +32479,7 @@ function uw({ prop: e, defaultProp: t, onChange: n = () => {
32445
32479
  c
32446
32480
  ];
32447
32481
  }
32448
- function tU({ defaultProp: e, onChange: t }) {
32482
+ function nU({ defaultProp: e, onChange: t }) {
32449
32483
  const n = Ye(e), [r] = n, i = et(r), s = ni(t);
32450
32484
  return qe(() => {
32451
32485
  i.current !== r && (s(r), i.current = r);
@@ -32455,7 +32489,7 @@ function tU({ defaultProp: e, onChange: t }) {
32455
32489
  s
32456
32490
  ]), n;
32457
32491
  }
32458
- function nU(e, t = globalThis == null ? void 0 : globalThis.document) {
32492
+ function rU(e, t = globalThis == null ? void 0 : globalThis.document) {
32459
32493
  const n = ni(e);
32460
32494
  qe(() => {
32461
32495
  const r = (i) => {
@@ -32467,27 +32501,27 @@ function nU(e, t = globalThis == null ? void 0 : globalThis.document) {
32467
32501
  t
32468
32502
  ]);
32469
32503
  }
32470
- const Nu = "dismissableLayer.update", rU = "dismissableLayer.pointerDownOutside", iU = "dismissableLayer.focusOutside";
32504
+ const Nu = "dismissableLayer.update", iU = "dismissableLayer.pointerDownOutside", sU = "dismissableLayer.focusOutside";
32471
32505
  let xp;
32472
- const sU = /* @__PURE__ */ ur({
32506
+ const oU = /* @__PURE__ */ ur({
32473
32507
  layers: /* @__PURE__ */ new Set(),
32474
32508
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
32475
32509
  branches: /* @__PURE__ */ new Set()
32476
- }), oU = /* @__PURE__ */ Xe((e, t) => {
32510
+ }), aU = /* @__PURE__ */ Xe((e, t) => {
32477
32511
  var n;
32478
- const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: s, onFocusOutside: o, onInteractOutside: a, onDismiss: c, ...l } = e, u = pr(sU), [d, h] = Ye(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, p] = Ye({}), m = Li(
32512
+ const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: s, onFocusOutside: o, onInteractOutside: a, onDismiss: c, ...l } = e, u = pr(oU), [d, h] = Ye(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, p] = Ye({}), m = Li(
32479
32513
  t,
32480
32514
  (j) => h(j)
32481
32515
  ), v = Array.from(u.layers), [y] = [
32482
32516
  ...u.layersWithOutsidePointerEventsDisabled
32483
- ].slice(-1), b = v.indexOf(y), x = d ? v.indexOf(d) : -1, O = u.layersWithOutsidePointerEventsDisabled.size > 0, I = x >= b, T = aU((j) => {
32517
+ ].slice(-1), b = v.indexOf(y), x = d ? v.indexOf(d) : -1, O = u.layersWithOutsidePointerEventsDisabled.size > 0, I = x >= b, T = cU((j) => {
32484
32518
  const W = j.target, S = [
32485
32519
  ...u.branches
32486
32520
  ].some(
32487
32521
  (D) => D.contains(W)
32488
32522
  );
32489
32523
  !I || S || (s == null || s(j), a == null || a(j), j.defaultPrevented || c == null || c());
32490
- }, f), N = cU((j) => {
32524
+ }, f), N = lU((j) => {
32491
32525
  const W = j.target;
32492
32526
  [
32493
32527
  ...u.branches
@@ -32495,7 +32529,7 @@ const sU = /* @__PURE__ */ ur({
32495
32529
  (D) => D.contains(W)
32496
32530
  ) || (o == null || o(j), a == null || a(j), j.defaultPrevented || c == null || c());
32497
32531
  }, f);
32498
- return nU((j) => {
32532
+ return rU((j) => {
32499
32533
  x === u.layers.size - 1 && (i == null || i(j), !j.defaultPrevented && c && (j.preventDefault(), c()));
32500
32534
  }, f), qe(() => {
32501
32535
  if (d)
@@ -32526,14 +32560,14 @@ const sU = /* @__PURE__ */ ur({
32526
32560
  onPointerDownCapture: Ar(e.onPointerDownCapture, T.onPointerDownCapture)
32527
32561
  }));
32528
32562
  });
32529
- function aU(e, t = globalThis == null ? void 0 : globalThis.document) {
32563
+ function cU(e, t = globalThis == null ? void 0 : globalThis.document) {
32530
32564
  const n = ni(e), r = et(!1), i = et(() => {
32531
32565
  });
32532
32566
  return qe(() => {
32533
32567
  const s = (a) => {
32534
32568
  if (a.target && !r.current) {
32535
32569
  let l = function() {
32536
- dw(rU, n, c, {
32570
+ dw(iU, n, c, {
32537
32571
  discrete: !0
32538
32572
  });
32539
32573
  };
@@ -32559,11 +32593,11 @@ function aU(e, t = globalThis == null ? void 0 : globalThis.document) {
32559
32593
  onPointerDownCapture: () => r.current = !0
32560
32594
  };
32561
32595
  }
32562
- function cU(e, t = globalThis == null ? void 0 : globalThis.document) {
32596
+ function lU(e, t = globalThis == null ? void 0 : globalThis.document) {
32563
32597
  const n = ni(e), r = et(!1);
32564
32598
  return qe(() => {
32565
32599
  const i = (s) => {
32566
- s.target && !r.current && dw(iU, n, {
32600
+ s.target && !r.current && dw(sU, n, {
32567
32601
  originalEvent: s
32568
32602
  }, {
32569
32603
  discrete: !1
@@ -32595,7 +32629,7 @@ function dw(e, t, n, { discrete: r }) {
32595
32629
  const Ml = "focusScope.autoFocusOnMount", Ll = "focusScope.autoFocusOnUnmount", kp = {
32596
32630
  bubbles: !1,
32597
32631
  cancelable: !0
32598
- }, lU = /* @__PURE__ */ Xe((e, t) => {
32632
+ }, uU = /* @__PURE__ */ Xe((e, t) => {
32599
32633
  const { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: s, ...o } = e, [a, c] = Ye(null), l = ni(i), u = ni(s), d = et(null), h = Li(
32600
32634
  t,
32601
32635
  (m) => c(m)
@@ -32648,7 +32682,7 @@ const Ml = "focusScope.autoFocusOnMount", Ll = "focusScope.autoFocusOnUnmount",
32648
32682
  const m = document.activeElement;
32649
32683
  if (!a.contains(m)) {
32650
32684
  const y = new CustomEvent(Ml, kp);
32651
- a.addEventListener(Ml, l), a.dispatchEvent(y), y.defaultPrevented || (uU(mU(fw(a)), {
32685
+ a.addEventListener(Ml, l), a.dispatchEvent(y), y.defaultPrevented || (dU(gU(fw(a)), {
32652
32686
  select: !0
32653
32687
  }), document.activeElement === m && Hr(a));
32654
32688
  }
@@ -32672,7 +32706,7 @@ const Ml = "focusScope.autoFocusOnMount", Ll = "focusScope.autoFocusOnUnmount",
32672
32706
  return;
32673
32707
  const v = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, y = document.activeElement;
32674
32708
  if (v && y) {
32675
- const b = m.currentTarget, [x, O] = dU(b);
32709
+ const b = m.currentTarget, [x, O] = fU(b);
32676
32710
  x && O ? !m.shiftKey && y === O ? (m.preventDefault(), n && Hr(x, {
32677
32711
  select: !0
32678
32712
  })) : m.shiftKey && y === x && (m.preventDefault(), n && Hr(O, {
@@ -32691,7 +32725,7 @@ const Ml = "focusScope.autoFocusOnMount", Ll = "focusScope.autoFocusOnUnmount",
32691
32725
  onKeyDown: p
32692
32726
  }));
32693
32727
  });
32694
- function uU(e, { select: t = !1 } = {}) {
32728
+ function dU(e, { select: t = !1 } = {}) {
32695
32729
  const n = document.activeElement;
32696
32730
  for (const r of e)
32697
32731
  if (Hr(r, {
@@ -32699,7 +32733,7 @@ function uU(e, { select: t = !1 } = {}) {
32699
32733
  }), document.activeElement !== n)
32700
32734
  return;
32701
32735
  }
32702
- function dU(e) {
32736
+ function fU(e) {
32703
32737
  const t = fw(e), n = Cp(t, e), r = Cp(t.reverse(), e);
32704
32738
  return [
32705
32739
  n,
@@ -32719,12 +32753,12 @@ function fw(e) {
32719
32753
  }
32720
32754
  function Cp(e, t) {
32721
32755
  for (const n of e)
32722
- if (!fU(n, {
32756
+ if (!hU(n, {
32723
32757
  upTo: t
32724
32758
  }))
32725
32759
  return n;
32726
32760
  }
32727
- function fU(e, { upTo: t }) {
32761
+ function hU(e, { upTo: t }) {
32728
32762
  if (getComputedStyle(e).visibility === "hidden")
32729
32763
  return !0;
32730
32764
  for (; e; ) {
@@ -32736,7 +32770,7 @@ function fU(e, { upTo: t }) {
32736
32770
  }
32737
32771
  return !1;
32738
32772
  }
32739
- function hU(e) {
32773
+ function pU(e) {
32740
32774
  return e instanceof HTMLInputElement && "select" in e;
32741
32775
  }
32742
32776
  function Hr(e, { select: t = !1 } = {}) {
@@ -32744,11 +32778,11 @@ function Hr(e, { select: t = !1 } = {}) {
32744
32778
  const n = document.activeElement;
32745
32779
  e.focus({
32746
32780
  preventScroll: !0
32747
- }), e !== n && hU(e) && t && e.select();
32781
+ }), e !== n && pU(e) && t && e.select();
32748
32782
  }
32749
32783
  }
32750
- const Ep = pU();
32751
- function pU() {
32784
+ const Ep = mU();
32785
+ function mU() {
32752
32786
  let e = [];
32753
32787
  return {
32754
32788
  add(t) {
@@ -32767,19 +32801,19 @@ function Sp(e, t) {
32767
32801
  ], r = n.indexOf(t);
32768
32802
  return r !== -1 && n.splice(r, 1), n;
32769
32803
  }
32770
- function mU(e) {
32804
+ function gU(e) {
32771
32805
  return e.filter(
32772
32806
  (t) => t.tagName !== "A"
32773
32807
  );
32774
32808
  }
32775
- function gU(e, t) {
32809
+ function yU(e, t) {
32776
32810
  return Dw((n, r) => {
32777
32811
  const i = t[n][r];
32778
32812
  return i ?? n;
32779
32813
  }, e);
32780
32814
  }
32781
32815
  const zc = (e) => {
32782
- const { present: t, children: n } = e, r = yU(t), i = typeof n == "function" ? n({
32816
+ const { present: t, children: n } = e, r = vU(t), i = typeof n == "function" ? n({
32783
32817
  present: r.isPresent
32784
32818
  }) : Qi.only(n), s = Li(r.ref, i.ref);
32785
32819
  return typeof n == "function" || r.isPresent ? /* @__PURE__ */ Ya(i, {
@@ -32787,8 +32821,8 @@ const zc = (e) => {
32787
32821
  }) : null;
32788
32822
  };
32789
32823
  zc.displayName = "Presence";
32790
- function yU(e) {
32791
- const [t, n] = Ye(), r = et({}), i = et(e), s = et("none"), o = e ? "mounted" : "unmounted", [a, c] = gU(o, {
32824
+ function vU(e) {
32825
+ const [t, n] = Ye(), r = et({}), i = et(e), s = et("none"), o = e ? "mounted" : "unmounted", [a, c] = yU(o, {
32792
32826
  mounted: {
32793
32827
  UNMOUNT: "unmounted",
32794
32828
  ANIMATION_OUT: "unmountSuspended"
@@ -32847,7 +32881,7 @@ function Yo(e) {
32847
32881
  return (e == null ? void 0 : e.animationName) || "none";
32848
32882
  }
32849
32883
  let Dl = 0;
32850
- function vU() {
32884
+ function bU() {
32851
32885
  qe(() => {
32852
32886
  var e, t;
32853
32887
  const n = document.querySelectorAll("[data-radix-focus-guard]");
@@ -32862,11 +32896,11 @@ function Tp() {
32862
32896
  const e = document.createElement("span");
32863
32897
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
32864
32898
  }
32865
- var wa = "right-scroll-bar-position", xa = "width-before-scroll-bar", bU = "with-scroll-bars-hidden", wU = "--removed-body-scroll-bar-size";
32866
- function xU(e, t) {
32899
+ var wa = "right-scroll-bar-position", xa = "width-before-scroll-bar", wU = "with-scroll-bars-hidden", xU = "--removed-body-scroll-bar-size";
32900
+ function _U(e, t) {
32867
32901
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
32868
32902
  }
32869
- function _U(e, t) {
32903
+ function kU(e, t) {
32870
32904
  var n = Ye(function() {
32871
32905
  return {
32872
32906
  // value
@@ -32887,18 +32921,18 @@ function _U(e, t) {
32887
32921
  })[0];
32888
32922
  return n.callback = t, n.facade;
32889
32923
  }
32890
- function kU(e, t) {
32891
- return _U(t || null, function(n) {
32924
+ function CU(e, t) {
32925
+ return kU(t || null, function(n) {
32892
32926
  return e.forEach(function(r) {
32893
- return xU(r, n);
32927
+ return _U(r, n);
32894
32928
  });
32895
32929
  });
32896
32930
  }
32897
- function CU(e) {
32931
+ function EU(e) {
32898
32932
  return e;
32899
32933
  }
32900
- function EU(e, t) {
32901
- t === void 0 && (t = CU);
32934
+ function SU(e, t) {
32935
+ t === void 0 && (t = EU);
32902
32936
  var n = [], r = !1, i = {
32903
32937
  read: function() {
32904
32938
  if (r)
@@ -32952,9 +32986,9 @@ function EU(e, t) {
32952
32986
  };
32953
32987
  return i;
32954
32988
  }
32955
- function SU(e) {
32989
+ function TU(e) {
32956
32990
  e === void 0 && (e = {});
32957
- var t = EU(null);
32991
+ var t = SU(null);
32958
32992
  return t.options = Bn({ async: !0, ssr: !1 }, e), t;
32959
32993
  }
32960
32994
  var hw = function(e) {
@@ -32967,16 +33001,16 @@ var hw = function(e) {
32967
33001
  return P.createElement(r, Bn({}, n));
32968
33002
  };
32969
33003
  hw.isSideCarExport = !0;
32970
- function TU(e, t) {
33004
+ function OU(e, t) {
32971
33005
  return e.useMedium(t), hw;
32972
33006
  }
32973
- var pw = SU(), Nl = function() {
33007
+ var pw = TU(), Nl = function() {
32974
33008
  }, Vc = P.forwardRef(function(e, t) {
32975
33009
  var n = P.useRef(null), r = P.useState({
32976
33010
  onScrollCapture: Nl,
32977
33011
  onWheelCapture: Nl,
32978
33012
  onTouchMoveCapture: Nl
32979
- }), i = r[0], s = r[1], o = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, h = e.sideCar, f = e.noIsolation, p = e.inert, m = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = Yg(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = h, O = kU([n, t]), I = Bn(Bn({}, b), i);
33013
+ }), i = r[0], s = r[1], o = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, h = e.sideCar, f = e.noIsolation, p = e.inert, m = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = Yg(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = h, O = CU([n, t]), I = Bn(Bn({}, b), i);
32980
33014
  return P.createElement(
32981
33015
  P.Fragment,
32982
33016
  null,
@@ -32993,39 +33027,39 @@ Vc.classNames = {
32993
33027
  fullWidth: xa,
32994
33028
  zeroRight: wa
32995
33029
  };
32996
- var Op, OU = function() {
33030
+ var Op, RU = function() {
32997
33031
  if (Op)
32998
33032
  return Op;
32999
33033
  if (typeof __webpack_nonce__ < "u")
33000
33034
  return __webpack_nonce__;
33001
33035
  };
33002
- function RU() {
33036
+ function IU() {
33003
33037
  if (!document)
33004
33038
  return null;
33005
33039
  var e = document.createElement("style");
33006
33040
  e.type = "text/css";
33007
- var t = OU();
33041
+ var t = RU();
33008
33042
  return t && e.setAttribute("nonce", t), e;
33009
33043
  }
33010
- function IU(e, t) {
33044
+ function PU(e, t) {
33011
33045
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
33012
33046
  }
33013
- function PU(e) {
33047
+ function AU(e) {
33014
33048
  var t = document.head || document.getElementsByTagName("head")[0];
33015
33049
  t.appendChild(e);
33016
33050
  }
33017
- var AU = function() {
33051
+ var $U = function() {
33018
33052
  var e = 0, t = null;
33019
33053
  return {
33020
33054
  add: function(n) {
33021
- e == 0 && (t = RU()) && (IU(t, n), PU(t)), e++;
33055
+ e == 0 && (t = IU()) && (PU(t, n), AU(t)), e++;
33022
33056
  },
33023
33057
  remove: function() {
33024
33058
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
33025
33059
  }
33026
33060
  };
33027
- }, $U = function() {
33028
- var e = AU();
33061
+ }, MU = function() {
33062
+ var e = $U();
33029
33063
  return function(t, n) {
33030
33064
  P.useEffect(function() {
33031
33065
  return e.add(t), function() {
@@ -33034,35 +33068,35 @@ var AU = function() {
33034
33068
  }, [t && n]);
33035
33069
  };
33036
33070
  }, mw = function() {
33037
- var e = $U(), t = function(n) {
33071
+ var e = MU(), t = function(n) {
33038
33072
  var r = n.styles, i = n.dynamic;
33039
33073
  return e(r, i), null;
33040
33074
  };
33041
33075
  return t;
33042
- }, MU = {
33076
+ }, LU = {
33043
33077
  left: 0,
33044
33078
  top: 0,
33045
33079
  right: 0,
33046
33080
  gap: 0
33047
33081
  }, jl = function(e) {
33048
33082
  return parseInt(e || "", 10) || 0;
33049
- }, LU = function(e) {
33083
+ }, DU = function(e) {
33050
33084
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
33051
33085
  return [jl(n), jl(r), jl(i)];
33052
- }, DU = function(e) {
33086
+ }, NU = function(e) {
33053
33087
  if (e === void 0 && (e = "margin"), typeof window > "u")
33054
- return MU;
33055
- var t = LU(e), n = document.documentElement.clientWidth, r = window.innerWidth;
33088
+ return LU;
33089
+ var t = DU(e), n = document.documentElement.clientWidth, r = window.innerWidth;
33056
33090
  return {
33057
33091
  left: t[0],
33058
33092
  top: t[1],
33059
33093
  right: t[2],
33060
33094
  gap: Math.max(0, r - n + t[2] - t[0])
33061
33095
  };
33062
- }, NU = mw(), jU = function(e, t, n, r) {
33096
+ }, jU = mw(), UU = function(e, t, n, r) {
33063
33097
  var i = e.left, s = e.top, o = e.right, a = e.gap;
33064
33098
  return n === void 0 && (n = "margin"), `
33065
- .`.concat(bU, ` {
33099
+ .`.concat(wU, ` {
33066
33100
  overflow: hidden `).concat(r, `;
33067
33101
  padding-right: `).concat(a, "px ").concat(r, `;
33068
33102
  }
@@ -33100,14 +33134,14 @@ var AU = function() {
33100
33134
  }
33101
33135
 
33102
33136
  body {
33103
- `).concat(wU, ": ").concat(a, `px;
33137
+ `).concat(xU, ": ").concat(a, `px;
33104
33138
  }
33105
33139
  `);
33106
- }, UU = function(e) {
33140
+ }, BU = function(e) {
33107
33141
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r, s = P.useMemo(function() {
33108
- return DU(i);
33142
+ return NU(i);
33109
33143
  }, [i]);
33110
- return P.createElement(NU, { styles: jU(s, !t, i, n ? "" : "!important") });
33144
+ return P.createElement(jU, { styles: UU(s, !t, i, n ? "" : "!important") });
33111
33145
  }, ju = !1;
33112
33146
  if (typeof window < "u")
33113
33147
  try {
@@ -33120,18 +33154,18 @@ if (typeof window < "u")
33120
33154
  } catch {
33121
33155
  ju = !1;
33122
33156
  }
33123
- var Zi = ju ? { passive: !1 } : !1, BU = function(e) {
33157
+ var Zi = ju ? { passive: !1 } : !1, FU = function(e) {
33124
33158
  return e.tagName === "TEXTAREA";
33125
33159
  }, gw = function(e, t) {
33126
33160
  var n = window.getComputedStyle(e);
33127
33161
  return (
33128
33162
  // not-not-scrollable
33129
33163
  n[t] !== "hidden" && // contains scroll inside self
33130
- !(n.overflowY === n.overflowX && !BU(e) && n[t] === "visible")
33164
+ !(n.overflowY === n.overflowX && !FU(e) && n[t] === "visible")
33131
33165
  );
33132
- }, FU = function(e) {
33133
- return gw(e, "overflowY");
33134
33166
  }, zU = function(e) {
33167
+ return gw(e, "overflowY");
33168
+ }, VU = function(e) {
33135
33169
  return gw(e, "overflowX");
33136
33170
  }, Rp = function(e, t) {
33137
33171
  var n = t;
@@ -33146,14 +33180,14 @@ var Zi = ju ? { passive: !1 } : !1, BU = function(e) {
33146
33180
  n = n.parentNode;
33147
33181
  } while (n && n !== document.body);
33148
33182
  return !1;
33149
- }, VU = function(e) {
33183
+ }, ZU = function(e) {
33150
33184
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
33151
33185
  return [
33152
33186
  t,
33153
33187
  n,
33154
33188
  r
33155
33189
  ];
33156
- }, ZU = function(e) {
33190
+ }, WU = function(e) {
33157
33191
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
33158
33192
  return [
33159
33193
  t,
@@ -33161,13 +33195,13 @@ var Zi = ju ? { passive: !1 } : !1, BU = function(e) {
33161
33195
  r
33162
33196
  ];
33163
33197
  }, yw = function(e, t) {
33164
- return e === "v" ? FU(t) : zU(t);
33198
+ return e === "v" ? zU(t) : VU(t);
33165
33199
  }, vw = function(e, t) {
33166
- return e === "v" ? VU(t) : ZU(t);
33167
- }, WU = function(e, t) {
33200
+ return e === "v" ? ZU(t) : WU(t);
33201
+ }, HU = function(e, t) {
33168
33202
  return e === "h" && t === "rtl" ? -1 : 1;
33169
- }, HU = function(e, t, n, r, i) {
33170
- var s = WU(e, window.getComputedStyle(t).direction), o = s * r, a = n.target, c = t.contains(a), l = !1, u = o > 0, d = 0, h = 0;
33203
+ }, qU = function(e, t, n, r, i) {
33204
+ var s = HU(e, window.getComputedStyle(t).direction), o = s * r, a = n.target, c = t.contains(a), l = !1, u = o > 0, d = 0, h = 0;
33171
33205
  do {
33172
33206
  var f = vw(e, a), p = f[0], m = f[1], v = f[2], y = m - v - s * p;
33173
33207
  (p || y) && yw(e, a) && (d += y, h += p), a = a.parentNode;
@@ -33183,16 +33217,16 @@ var Zi = ju ? { passive: !1 } : !1, BU = function(e) {
33183
33217
  return [e.deltaX, e.deltaY];
33184
33218
  }, Pp = function(e) {
33185
33219
  return e && "current" in e ? e.current : e;
33186
- }, qU = function(e, t) {
33220
+ }, KU = function(e, t) {
33187
33221
  return e[0] === t[0] && e[1] === t[1];
33188
- }, KU = function(e) {
33222
+ }, GU = function(e) {
33189
33223
  return `
33190
33224
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
33191
33225
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
33192
33226
  `);
33193
- }, GU = 0, Wi = [];
33194
- function JU(e) {
33195
- var t = P.useRef([]), n = P.useRef([0, 0]), r = P.useRef(), i = P.useState(GU++)[0], s = P.useState(function() {
33227
+ }, JU = 0, Wi = [];
33228
+ function YU(e) {
33229
+ var t = P.useRef([]), n = P.useRef([0, 0]), r = P.useRef(), i = P.useState(JU++)[0], s = P.useState(function() {
33196
33230
  return mw();
33197
33231
  })[0], o = P.useRef(e);
33198
33232
  P.useEffect(function() {
@@ -33224,12 +33258,12 @@ function JU(e) {
33224
33258
  if (!r.current && "changedTouches" in m && (x || O) && (r.current = I), !I)
33225
33259
  return !0;
33226
33260
  var W = r.current || I;
33227
- return HU(W, v, m, W === "h" ? x : O, !0);
33261
+ return qU(W, v, m, W === "h" ? x : O, !0);
33228
33262
  }, []), c = P.useCallback(function(m) {
33229
33263
  var v = m;
33230
33264
  if (!(!Wi.length || Wi[Wi.length - 1] !== s)) {
33231
33265
  var y = "deltaY" in v ? Ip(v) : Xo(v), b = t.current.filter(function(I) {
33232
- return I.name === v.type && I.target === v.target && qU(I.delta, y);
33266
+ return I.name === v.type && I.target === v.target && KU(I.delta, y);
33233
33267
  })[0];
33234
33268
  if (b && b.should) {
33235
33269
  v.cancelable && v.preventDefault();
@@ -33271,24 +33305,24 @@ function JU(e) {
33271
33305
  return P.createElement(
33272
33306
  P.Fragment,
33273
33307
  null,
33274
- p ? P.createElement(s, { styles: KU(i) }) : null,
33275
- f ? P.createElement(UU, { gapMode: "margin" }) : null
33308
+ p ? P.createElement(s, { styles: GU(i) }) : null,
33309
+ f ? P.createElement(BU, { gapMode: "margin" }) : null
33276
33310
  );
33277
33311
  }
33278
- const YU = TU(pw, JU);
33312
+ const QU = OU(pw, YU);
33279
33313
  var bw = P.forwardRef(function(e, t) {
33280
- return P.createElement(Vc, Bn({}, e, { ref: t, sideCar: YU }));
33314
+ return P.createElement(Vc, Bn({}, e, { ref: t, sideCar: QU }));
33281
33315
  });
33282
33316
  bw.classNames = Vc.classNames;
33283
- const QU = bw;
33284
- var XU = function(e) {
33317
+ const XU = bw;
33318
+ var eB = function(e) {
33285
33319
  if (typeof document > "u")
33286
33320
  return null;
33287
33321
  var t = Array.isArray(e) ? e[0] : e;
33288
33322
  return t.ownerDocument.body;
33289
33323
  }, Hi = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = {}, Ul = 0, ww = function(e) {
33290
33324
  return e && (e.host || ww(e.parentNode));
33291
- }, eB = function(e, t) {
33325
+ }, tB = function(e, t) {
33292
33326
  return t.map(function(n) {
33293
33327
  if (e.contains(n))
33294
33328
  return n;
@@ -33297,8 +33331,8 @@ var XU = function(e) {
33297
33331
  }).filter(function(n) {
33298
33332
  return !!n;
33299
33333
  });
33300
- }, tB = function(e, t, n, r) {
33301
- var i = eB(t, Array.isArray(e) ? e : [e]);
33334
+ }, nB = function(e, t, n, r) {
33335
+ var i = tB(t, Array.isArray(e) ? e : [e]);
33302
33336
  ta[n] || (ta[n] = /* @__PURE__ */ new WeakMap());
33303
33337
  var s = ta[n], o = [], a = /* @__PURE__ */ new Set(), c = new Set(i), l = function(d) {
33304
33338
  !d || a.has(d) || (a.add(d), l(d.parentNode));
@@ -33320,20 +33354,20 @@ var XU = function(e) {
33320
33354
  Hi.set(d, h), s.set(d, f), h || (ea.has(d) || d.removeAttribute(r), ea.delete(d)), f || d.removeAttribute(n);
33321
33355
  }), Ul--, Ul || (Hi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = {});
33322
33356
  };
33323
- }, nB = function(e, t, n) {
33357
+ }, rB = function(e, t, n) {
33324
33358
  n === void 0 && (n = "data-aria-hidden");
33325
- var r = Array.from(Array.isArray(e) ? e : [e]), i = t || XU(e);
33326
- return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))), tB(r, i, n, "aria-hidden")) : function() {
33359
+ var r = Array.from(Array.isArray(e) ? e : [e]), i = t || eB(e);
33360
+ return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))), nB(r, i, n, "aria-hidden")) : function() {
33327
33361
  return null;
33328
33362
  };
33329
33363
  };
33330
- const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33364
+ const xw = "Dialog", [_w, QF] = Fu(xw), [iB, Ur] = _w(xw), sB = (e) => {
33331
33365
  const { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: s, modal: o = !0 } = e, a = et(null), c = et(null), [l = !1, u] = uw({
33332
33366
  prop: r,
33333
33367
  defaultProp: i,
33334
33368
  onChange: s
33335
33369
  });
33336
- return /* @__PURE__ */ ht(rB, {
33370
+ return /* @__PURE__ */ ht(iB, {
33337
33371
  scope: t,
33338
33372
  triggerRef: a,
33339
33373
  contentRef: c,
@@ -33352,8 +33386,8 @@ const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33352
33386
  ),
33353
33387
  modal: o
33354
33388
  }, n);
33355
- }, sB = "DialogTrigger", oB = /* @__PURE__ */ Xe((e, t) => {
33356
- const { __scopeDialog: n, ...r } = e, i = Ur(sB, n), s = Li(t, i.triggerRef);
33389
+ }, oB = "DialogTrigger", aB = /* @__PURE__ */ Xe((e, t) => {
33390
+ const { __scopeDialog: n, ...r } = e, i = Ur(oB, n), s = Li(t, i.triggerRef);
33357
33391
  return /* @__PURE__ */ ht(Vn.button, Et({
33358
33392
  type: "button",
33359
33393
  "aria-haspopup": "dialog",
@@ -33364,21 +33398,21 @@ const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33364
33398
  ref: s,
33365
33399
  onClick: Ar(e.onClick, i.onOpenToggle)
33366
33400
  }));
33367
- }), aB = "DialogPortal", [QF, kw] = _w(aB, {
33401
+ }), cB = "DialogPortal", [XF, kw] = _w(cB, {
33368
33402
  forceMount: void 0
33369
- }), Uu = "DialogOverlay", cB = /* @__PURE__ */ Xe((e, t) => {
33403
+ }), Uu = "DialogOverlay", lB = /* @__PURE__ */ Xe((e, t) => {
33370
33404
  const n = kw(Uu, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, s = Ur(Uu, e.__scopeDialog);
33371
33405
  return s.modal ? /* @__PURE__ */ ht(zc, {
33372
33406
  present: r || s.open
33373
- }, /* @__PURE__ */ ht(lB, Et({}, i, {
33407
+ }, /* @__PURE__ */ ht(uB, Et({}, i, {
33374
33408
  ref: t
33375
33409
  }))) : null;
33376
- }), lB = /* @__PURE__ */ Xe((e, t) => {
33410
+ }), uB = /* @__PURE__ */ Xe((e, t) => {
33377
33411
  const { __scopeDialog: n, ...r } = e, i = Ur(Uu, n);
33378
33412
  return (
33379
33413
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
33380
33414
  // ie. when `Overlay` and `Content` are siblings
33381
- /* @__PURE__ */ ht(QU, {
33415
+ /* @__PURE__ */ ht(XU, {
33382
33416
  as: zu,
33383
33417
  allowPinchZoom: !0,
33384
33418
  shards: [
@@ -33394,21 +33428,21 @@ const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33394
33428
  }
33395
33429
  })))
33396
33430
  );
33397
- }), fo = "DialogContent", uB = /* @__PURE__ */ Xe((e, t) => {
33431
+ }), fo = "DialogContent", dB = /* @__PURE__ */ Xe((e, t) => {
33398
33432
  const n = kw(fo, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, s = Ur(fo, e.__scopeDialog);
33399
33433
  return /* @__PURE__ */ ht(zc, {
33400
33434
  present: r || s.open
33401
- }, s.modal ? /* @__PURE__ */ ht(dB, Et({}, i, {
33435
+ }, s.modal ? /* @__PURE__ */ ht(fB, Et({}, i, {
33402
33436
  ref: t
33403
- })) : /* @__PURE__ */ ht(fB, Et({}, i, {
33437
+ })) : /* @__PURE__ */ ht(hB, Et({}, i, {
33404
33438
  ref: t
33405
33439
  })));
33406
- }), dB = /* @__PURE__ */ Xe((e, t) => {
33440
+ }), fB = /* @__PURE__ */ Xe((e, t) => {
33407
33441
  const n = Ur(fo, e.__scopeDialog), r = et(null), i = Li(t, n.contentRef, r);
33408
33442
  return qe(() => {
33409
33443
  const s = r.current;
33410
33444
  if (s)
33411
- return nB(s);
33445
+ return rB(s);
33412
33446
  }, []), /* @__PURE__ */ ht(Cw, Et({}, e, {
33413
33447
  ref: i,
33414
33448
  trapFocus: n.open,
@@ -33426,7 +33460,7 @@ const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33426
33460
  (s) => s.preventDefault()
33427
33461
  )
33428
33462
  }));
33429
- }), fB = /* @__PURE__ */ Xe((e, t) => {
33463
+ }), hB = /* @__PURE__ */ Xe((e, t) => {
33430
33464
  const n = Ur(fo, e.__scopeDialog), r = et(!1), i = et(!1);
33431
33465
  return /* @__PURE__ */ ht(Cw, Et({}, e, {
33432
33466
  ref: t,
@@ -33449,13 +33483,13 @@ const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33449
33483
  }));
33450
33484
  }), Cw = /* @__PURE__ */ Xe((e, t) => {
33451
33485
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: s, ...o } = e, a = Ur(fo, n), c = et(null), l = Li(t, c);
33452
- return vU(), /* @__PURE__ */ ht(wi, null, /* @__PURE__ */ ht(lU, {
33486
+ return bU(), /* @__PURE__ */ ht(wi, null, /* @__PURE__ */ ht(uU, {
33453
33487
  asChild: !0,
33454
33488
  loop: !0,
33455
33489
  trapped: r,
33456
33490
  onMountAutoFocus: i,
33457
33491
  onUnmountAutoFocus: s
33458
- }, /* @__PURE__ */ ht(oU, Et({
33492
+ }, /* @__PURE__ */ ht(aU, Et({
33459
33493
  role: "dialog",
33460
33494
  id: a.contentId,
33461
33495
  "aria-describedby": a.descriptionId,
@@ -33465,15 +33499,15 @@ const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33465
33499
  ref: l,
33466
33500
  onDismiss: () => a.onOpenChange(!1)
33467
33501
  }))), !1);
33468
- }), hB = "DialogTitle", pB = /* @__PURE__ */ Xe((e, t) => {
33469
- const { __scopeDialog: n, ...r } = e, i = Ur(hB, n);
33502
+ }), pB = "DialogTitle", mB = /* @__PURE__ */ Xe((e, t) => {
33503
+ const { __scopeDialog: n, ...r } = e, i = Ur(pB, n);
33470
33504
  return /* @__PURE__ */ ht(Vn.h2, Et({
33471
33505
  id: i.titleId
33472
33506
  }, r, {
33473
33507
  ref: t
33474
33508
  }));
33475
- }), mB = "DialogClose", gB = /* @__PURE__ */ Xe((e, t) => {
33476
- const { __scopeDialog: n, ...r } = e, i = Ur(mB, n);
33509
+ }), gB = "DialogClose", yB = /* @__PURE__ */ Xe((e, t) => {
33510
+ const { __scopeDialog: n, ...r } = e, i = Ur(gB, n);
33477
33511
  return /* @__PURE__ */ ht(Vn.button, Et({
33478
33512
  type: "button"
33479
33513
  }, r, {
@@ -33487,8 +33521,8 @@ const xw = "Dialog", [_w, YF] = Fu(xw), [rB, Ur] = _w(xw), iB = (e) => {
33487
33521
  function Kd(e) {
33488
33522
  return e ? "open" : "closed";
33489
33523
  }
33490
- const yB = iB, vB = oB, bB = cB, wB = uB, xB = pB, Ew = gB;
33491
- function _B({
33524
+ const vB = sB, bB = aB, wB = lB, xB = dB, _B = mB, Ew = yB;
33525
+ function kB({
33492
33526
  title: e,
33493
33527
  titleId: t,
33494
33528
  ...n
@@ -33510,45 +33544,45 @@ function _B({
33510
33544
  d: "M6 18L18 6M6 6l12 12"
33511
33545
  }));
33512
33546
  }
33513
- const kB = P.forwardRef(_B), Sw = kB;
33547
+ const CB = P.forwardRef(kB), Sw = CB;
33514
33548
  function $i({
33515
33549
  open: e,
33516
33550
  onOpenChange: t,
33517
33551
  children: n
33518
33552
  }) {
33519
- return /* @__PURE__ */ F.jsx(yB, { open: e, onOpenChange: t, children: n });
33553
+ return /* @__PURE__ */ F.jsx(vB, { open: e, onOpenChange: t, children: n });
33520
33554
  }
33521
- function CB({ title: e, children: t }) {
33555
+ function EB({ title: e, children: t }) {
33522
33556
  var r, i, s, o, a, c, l, u;
33523
33557
  const {
33524
33558
  theme: { modal: n }
33525
33559
  } = _t();
33526
33560
  return /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
33527
- /* @__PURE__ */ F.jsx(bB, { ...n == null ? void 0 : n.overlay }),
33528
- /* @__PURE__ */ F.jsx("div", { ...n == null ? void 0 : n.container, children: /* @__PURE__ */ F.jsxs(wB, { ...(r = n == null ? void 0 : n.dialog) == null ? void 0 : r.container, children: [
33561
+ /* @__PURE__ */ F.jsx(wB, { ...n == null ? void 0 : n.overlay }),
33562
+ /* @__PURE__ */ F.jsx("div", { ...n == null ? void 0 : n.container, children: /* @__PURE__ */ F.jsxs(xB, { ...(r = n == null ? void 0 : n.dialog) == null ? void 0 : r.container, children: [
33529
33563
  /* @__PURE__ */ F.jsxs("div", { ...(s = (i = n == null ? void 0 : n.dialog) == null ? void 0 : i.title) == null ? void 0 : s.container, children: [
33530
- /* @__PURE__ */ F.jsx(xB, { ...(a = (o = n == null ? void 0 : n.dialog) == null ? void 0 : o.title) == null ? void 0 : a.text, children: e }),
33564
+ /* @__PURE__ */ F.jsx(_B, { ...(a = (o = n == null ? void 0 : n.dialog) == null ? void 0 : o.title) == null ? void 0 : a.text, children: e }),
33531
33565
  /* @__PURE__ */ F.jsx(Ew, { children: /* @__PURE__ */ F.jsx(Sw, { role: "button", tabIndex: 0, ...(l = (c = n == null ? void 0 : n.dialog) == null ? void 0 : c.title) == null ? void 0 : l.closeIcon }) })
33532
33566
  ] }),
33533
33567
  /* @__PURE__ */ F.jsx("div", { ...(u = n == null ? void 0 : n.dialog) == null ? void 0 : u.content, children: t })
33534
33568
  ] }) })
33535
33569
  ] });
33536
33570
  }
33537
- $i.Button = vB;
33571
+ $i.Button = bB;
33538
33572
  $i.Close = Ew;
33539
- $i.Content = CB;
33540
- const EB = Xe(({ children: e, ...t }, n) => {
33573
+ $i.Content = EB;
33574
+ const SB = Xe(({ children: e, ...t }, n) => {
33541
33575
  const {
33542
33576
  theme: { container: r }
33543
33577
  } = _t();
33544
33578
  return /* @__PURE__ */ F.jsxs("div", { ...t, ...r, ref: n, children: [
33545
33579
  /* @__PURE__ */ F.jsx(IS, {}),
33546
- /* @__PURE__ */ F.jsxs(Qj, { children: [
33547
- /* @__PURE__ */ F.jsx(SB, {}),
33580
+ /* @__PURE__ */ F.jsxs(Xj, { children: [
33581
+ /* @__PURE__ */ F.jsx(TB, {}),
33548
33582
  e
33549
33583
  ] })
33550
33584
  ] });
33551
- }), SB = () => {
33585
+ }), TB = () => {
33552
33586
  const {
33553
33587
  theme: { modal: e },
33554
33588
  state: { connected: t }
@@ -33563,18 +33597,18 @@ const EB = Xe(({ children: e, ...t }, n) => {
33563
33597
  ] })
33564
33598
  });
33565
33599
  }, [t]), /* @__PURE__ */ F.jsx(F.Fragment, {});
33566
- }, XF = Xe(({ children: e, onClick: t, ...n }, r) => {
33600
+ }, e4 = Xe(({ children: e, onClick: t, ...n }, r) => {
33567
33601
  const {
33568
33602
  theme: { fab: i }
33569
33603
  } = _t(), { container: s, icon: o } = i ?? {};
33570
33604
  return /* @__PURE__ */ F.jsx("div", { ...n, ...s, ref: r, onClick: t, children: /* @__PURE__ */ F.jsx("div", { ...o }) });
33571
- }), Tw = "Collapsible", [TB, e4] = Fu(Tw), [OB, Gd] = TB(Tw), RB = /* @__PURE__ */ Xe((e, t) => {
33605
+ }), Tw = "Collapsible", [OB, t4] = Fu(Tw), [RB, Gd] = OB(Tw), IB = /* @__PURE__ */ Xe((e, t) => {
33572
33606
  const { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: s, onOpenChange: o, ...a } = e, [c = !1, l] = uw({
33573
33607
  prop: r,
33574
33608
  defaultProp: i,
33575
33609
  onChange: o
33576
33610
  });
33577
- return /* @__PURE__ */ ht(OB, {
33611
+ return /* @__PURE__ */ ht(RB, {
33578
33612
  scope: n,
33579
33613
  disabled: s,
33580
33614
  contentId: ba(),
@@ -33593,8 +33627,8 @@ const EB = Xe(({ children: e, ...t }, n) => {
33593
33627
  }, a, {
33594
33628
  ref: t
33595
33629
  })));
33596
- }), IB = "CollapsibleTrigger", PB = /* @__PURE__ */ Xe((e, t) => {
33597
- const { __scopeCollapsible: n, ...r } = e, i = Gd(IB, n);
33630
+ }), PB = "CollapsibleTrigger", AB = /* @__PURE__ */ Xe((e, t) => {
33631
+ const { __scopeCollapsible: n, ...r } = e, i = Gd(PB, n);
33598
33632
  return /* @__PURE__ */ ht(Vn.button, Et({
33599
33633
  type: "button",
33600
33634
  "aria-controls": i.contentId,
@@ -33606,19 +33640,19 @@ const EB = Xe(({ children: e, ...t }, n) => {
33606
33640
  ref: t,
33607
33641
  onClick: Ar(e.onClick, i.onOpenToggle)
33608
33642
  }));
33609
- }), Ow = "CollapsibleContent", AB = /* @__PURE__ */ Xe((e, t) => {
33643
+ }), Ow = "CollapsibleContent", $B = /* @__PURE__ */ Xe((e, t) => {
33610
33644
  const { forceMount: n, ...r } = e, i = Gd(Ow, e.__scopeCollapsible);
33611
33645
  return /* @__PURE__ */ ht(
33612
33646
  zc,
33613
33647
  {
33614
33648
  present: n || i.open
33615
33649
  },
33616
- ({ present: s }) => /* @__PURE__ */ ht($B, Et({}, r, {
33650
+ ({ present: s }) => /* @__PURE__ */ ht(MB, Et({}, r, {
33617
33651
  ref: t,
33618
33652
  present: s
33619
33653
  }))
33620
33654
  );
33621
- }), $B = /* @__PURE__ */ Xe((e, t) => {
33655
+ }), MB = /* @__PURE__ */ Xe((e, t) => {
33622
33656
  const { __scopeCollapsible: n, present: r, children: i, ...s } = e, o = Gd(Ow, n), [a, c] = Ye(r), l = et(null), u = Li(t, l), d = et(0), h = d.current, f = et(0), p = f.current, m = o.open || a, v = et(m), y = et();
33623
33657
  return qe(() => {
33624
33658
  const b = requestAnimationFrame(
@@ -33655,55 +33689,55 @@ const EB = Xe(({ children: e, ...t }, n) => {
33655
33689
  function Jd(e) {
33656
33690
  return e ? "open" : "closed";
33657
33691
  }
33658
- const MB = RB, LB = PB, DB = AB, NB = (e) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ P.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M15.5 5.5v-5m0 0h-5m5 0L8.833 7.167m-2.5-5H4.5c-1.4 0-2.1 0-2.635.272A2.5 2.5 0 0 0 .772 3.532C.5 4.066.5 4.767.5 6.167V11.5c0 1.4 0 2.1.272 2.635a2.5 2.5 0 0 0 1.093 1.092C2.4 15.5 3.1 15.5 4.5 15.5h5.333c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 0 0 1.093-1.092c.272-.535.272-1.235.272-2.635V9.667" })), jB = ys(
33692
+ const LB = IB, DB = AB, NB = $B, jB = (e) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ P.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M15.5 5.5v-5m0 0h-5m5 0L8.833 7.167m-2.5-5H4.5c-1.4 0-2.1 0-2.635.272A2.5 2.5 0 0 0 .772 3.532C.5 4.066.5 4.767.5 6.167V11.5c0 1.4 0 2.1.272 2.635a2.5 2.5 0 0 0 1.093 1.092C2.4 15.5 3.1 15.5 4.5 15.5h5.333c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 0 0 1.093-1.092c.272-.535.272-1.235.272-2.635V9.667" })), UB = ys(
33659
33693
  Xe(({ defaultOpen: e, ...t }, n) => {
33660
33694
  const {
33661
33695
  theme: { header: r }
33662
33696
  } = _t(), [i, s] = Ye(!!e);
33663
- return /* @__PURE__ */ F.jsx(MB, { open: i, onOpenChange: s, ...t, ...r == null ? void 0 : r.container, ref: n });
33697
+ return /* @__PURE__ */ F.jsx(LB, { open: i, onOpenChange: s, ...t, ...r == null ? void 0 : r.container, ref: n });
33664
33698
  })
33665
- ), UB = Xe((e, t) => {
33699
+ ), BB = Xe((e, t) => {
33666
33700
  var r;
33667
33701
  const {
33668
33702
  theme: { header: n }
33669
33703
  } = _t();
33670
- return /* @__PURE__ */ F.jsx(LB, { ...e, ...(r = n == null ? void 0 : n.content) == null ? void 0 : r.container, ref: t });
33671
- }), BB = Xe((e, t) => {
33704
+ return /* @__PURE__ */ F.jsx(DB, { ...e, ...(r = n == null ? void 0 : n.content) == null ? void 0 : r.container, ref: t });
33705
+ }), FB = Xe((e, t) => {
33672
33706
  var r;
33673
33707
  const {
33674
33708
  theme: { header: n }
33675
33709
  } = _t();
33676
- return /* @__PURE__ */ F.jsx(DB, { ...e, ...(r = n == null ? void 0 : n.expandedContent) == null ? void 0 : r.container, ref: t });
33677
- }), FB = Xe(({ src: e, children: t }, n) => {
33710
+ return /* @__PURE__ */ F.jsx(NB, { ...e, ...(r = n == null ? void 0 : n.expandedContent) == null ? void 0 : r.container, ref: t });
33711
+ }), zB = Xe(({ src: e, children: t }, n) => {
33678
33712
  var s;
33679
33713
  const {
33680
33714
  theme: { header: r },
33681
33715
  client: i
33682
33716
  } = _t();
33683
33717
  return /* @__PURE__ */ F.jsx(Vp, { ref: n, userId: i == null ? void 0 : i.clientId, children: t, src: e, ...(s = r == null ? void 0 : r.content) == null ? void 0 : s.avatar });
33684
- }), zB = Xe((e, t) => {
33718
+ }), VB = Xe((e, t) => {
33685
33719
  var r;
33686
33720
  const {
33687
33721
  theme: { header: n }
33688
33722
  } = _t();
33689
33723
  return /* @__PURE__ */ F.jsx("h2", { ...e, ...(r = n == null ? void 0 : n.content) == null ? void 0 : r.title, ref: t });
33690
- }), VB = Xe((e, t) => {
33724
+ }), ZB = Xe((e, t) => {
33691
33725
  var r;
33692
33726
  const {
33693
33727
  theme: { header: n }
33694
33728
  } = _t();
33695
33729
  return /* @__PURE__ */ F.jsx("p", { ...e, ...(r = n == null ? void 0 : n.content) == null ? void 0 : r.description, ref: t });
33696
- }), ZB = Xe((e, t) => {
33730
+ }), WB = Xe((e, t) => {
33697
33731
  var r, i;
33698
33732
  const {
33699
33733
  theme: { header: n }
33700
33734
  } = _t();
33701
33735
  return /* @__PURE__ */ F.jsx("div", { ...e, ...(i = (r = n == null ? void 0 : n.content) == null ? void 0 : r.actions) == null ? void 0 : i.container, ref: t });
33702
- }), WB = ({ icon: e, title: t, link: n, ...r }) => {
33736
+ }), HB = ({ icon: e, title: t, link: n, ...r }) => {
33703
33737
  var a, c, l, u, d, h, f, p, m, v, y, b;
33704
33738
  const {
33705
33739
  theme: { header: i }
33706
- } = _t(), s = e ?? NB, o = (x) => {
33740
+ } = _t(), s = e ?? jB, o = (x) => {
33707
33741
  x && UE(x);
33708
33742
  };
33709
33743
  return !n && !t ? null : n ? /* @__PURE__ */ F.jsxs(
@@ -33733,15 +33767,15 @@ const MB = RB, LB = PB, DB = AB, NB = (e) => /* @__PURE__ */ P.createElement("sv
33733
33767
  ]
33734
33768
  }
33735
33769
  );
33736
- }, jn = Object.assign(jB, {
33737
- Content: UB,
33738
- ExpandedContent: BB,
33739
- Avatar: FB,
33740
- Description: VB,
33741
- Title: zB,
33742
- Actions: ZB,
33743
- DescriptionItem: WB
33744
- }), HB = ys(({ ...e }) => {
33770
+ }, jn = Object.assign(UB, {
33771
+ Content: BB,
33772
+ ExpandedContent: FB,
33773
+ Avatar: zB,
33774
+ Description: ZB,
33775
+ Title: VB,
33776
+ Actions: WB,
33777
+ DescriptionItem: HB
33778
+ }), qB = ys(({ ...e }) => {
33745
33779
  const {
33746
33780
  theme: { loadingIndicator: t }
33747
33781
  } = _t();
@@ -34059,9 +34093,9 @@ var Rw = { exports: {} };
34059
34093
  }, U.toString = function() {
34060
34094
  return this.$d.toUTCString();
34061
34095
  }, H;
34062
- }(), Z = G.prototype;
34063
- return S.prototype = Z, [["$ms", s], ["$s", o], ["$m", a], ["$H", c], ["$W", l], ["$M", d], ["$y", f], ["$D", p]].forEach(function(H) {
34064
- Z[H[1]] = function(U) {
34096
+ }(), V = G.prototype;
34097
+ return S.prototype = V, [["$ms", s], ["$s", o], ["$m", a], ["$H", c], ["$W", l], ["$M", d], ["$y", f], ["$D", p]].forEach(function(H) {
34098
+ V[H[1]] = function(U) {
34065
34099
  return this.$g(U, H[0], H[1]);
34066
34100
  };
34067
34101
  }), S.extend = function(H, U) {
@@ -34071,8 +34105,8 @@ var Rw = { exports: {} };
34071
34105
  }, S.en = T[I], S.Ls = T, S.p = {}, S;
34072
34106
  });
34073
34107
  })(Rw);
34074
- var qB = Rw.exports;
34075
- const Zc = /* @__PURE__ */ Mi(qB);
34108
+ var KB = Rw.exports;
34109
+ const Zc = /* @__PURE__ */ Mi(KB);
34076
34110
  var Iw = { exports: {} };
34077
34111
  (function(e, t) {
34078
34112
  (function(n, r) {
@@ -34086,8 +34120,8 @@ var Iw = { exports: {} };
34086
34120
  };
34087
34121
  });
34088
34122
  })(Iw);
34089
- var KB = Iw.exports;
34090
- const GB = /* @__PURE__ */ Mi(KB);
34123
+ var GB = Iw.exports;
34124
+ const JB = /* @__PURE__ */ Mi(GB);
34091
34125
  var Pw = { exports: {} };
34092
34126
  (function(e, t) {
34093
34127
  (function(n, r) {
@@ -34101,11 +34135,11 @@ var Pw = { exports: {} };
34101
34135
  };
34102
34136
  });
34103
34137
  })(Pw);
34104
- var JB = Pw.exports;
34105
- const YB = /* @__PURE__ */ Mi(JB);
34106
- Zc.extend(GB);
34107
- Zc.extend(YB);
34108
- function QB(e, t = "day") {
34138
+ var YB = Pw.exports;
34139
+ const QB = /* @__PURE__ */ Mi(YB);
34140
+ Zc.extend(JB);
34141
+ Zc.extend(QB);
34142
+ function XB(e, t = "day") {
34109
34143
  if (!e || e.length === 0)
34110
34144
  return [];
34111
34145
  const n = [];
@@ -34124,15 +34158,15 @@ function $p(e) {
34124
34158
  timestamp: e,
34125
34159
  block: {
34126
34160
  type: "text",
34127
- text: XB(e)
34161
+ text: eF(e)
34128
34162
  }
34129
34163
  };
34130
34164
  }
34131
- function XB(e, t = !1) {
34165
+ function eF(e, t = !1) {
34132
34166
  const n = Zc(e), r = "h:mma";
34133
34167
  return n.isToday() ? t ? `Today • ${n.format(r)}` : "Today" : n.isYesterday() ? t ? `Yesterday • ${n.format(r)}` : "Yesterday" : t ? n.format(`YYYY-MM-DD • ${r}`) : n.format("YYYY-MM-DD");
34134
34168
  }
34135
- const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34169
+ const Mp = 10 * 1e3, tF = ys(({ scrollDownButton: e, ...t }) => {
34136
34170
  var b, x, O, I, T, N, j, W;
34137
34171
  const {
34138
34172
  messages: n,
@@ -34141,7 +34175,7 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34141
34175
  configuration: s,
34142
34176
  messageContainerRef: o,
34143
34177
  theme: { messageList: a }
34144
- } = _t(), c = ki(() => QB(n), [n]), [l, u] = Ye(!0), { y: d } = jI(o), [h, f] = Ye(!1), [p, m] = BI(), v = () => {
34178
+ } = _t(), c = ki(() => XB(n), [n]), [l, u] = Ye(!0), { y: d } = jI(o), [h, f] = Ye(!1), [p, m] = BI(), v = () => {
34145
34179
  if (!o.current)
34146
34180
  return;
34147
34181
  const { scrollHeight: S } = o.current;
@@ -34189,9 +34223,9 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34189
34223
  ] })
34190
34224
  ] }),
34191
34225
  c.map((S, D) => /* @__PURE__ */ F.jsx(Ap, { scroll: v, ...S }, D)),
34192
- h && /* @__PURE__ */ F.jsx(Ap, { scroll: v, direction: "incoming", children: /* @__PURE__ */ F.jsx(HB, {}) })
34226
+ h && /* @__PURE__ */ F.jsx(Ap, { scroll: v, direction: "incoming", children: /* @__PURE__ */ F.jsx(qB, {}) })
34193
34227
  ] });
34194
- }), tF = ({ ...e }) => {
34228
+ }), nF = ({ ...e }) => {
34195
34229
  var o, a;
34196
34230
  const {
34197
34231
  theme: { header: t, modal: n },
@@ -34219,7 +34253,7 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34219
34253
  }
34220
34254
  }
34221
34255
  );
34222
- }, nF = ({ ...e }) => {
34256
+ }, rF = ({ ...e }) => {
34223
34257
  var i, s;
34224
34258
  const {
34225
34259
  theme: { header: t },
@@ -34240,18 +34274,18 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34240
34274
  }
34241
34275
  }
34242
34276
  );
34243
- }, t4 = () => {
34277
+ }, n4 = () => {
34244
34278
  var r, i, s, o, a, c, l, u, d, h, f, p, m, v, y;
34245
34279
  const { configuration: e, closeWindow: t } = _t(), n = !!((r = e.email) != null && r.title) || !!((i = e.phone) != null && i.title) || !!((s = e.website) != null && s.title) || !!((o = e.termsOfService) != null && o.link) || !!((a = e.privacyPolicy) != null && a.link);
34246
- return /* @__PURE__ */ F.jsxs(EB, { children: [
34280
+ return /* @__PURE__ */ F.jsxs(SB, { children: [
34247
34281
  /* @__PURE__ */ F.jsxs(jn, { open: n ? void 0 : !1, "data-disabled": n ? void 0 : "", children: [
34248
34282
  /* @__PURE__ */ F.jsxs(jn.Content, { children: [
34249
34283
  /* @__PURE__ */ F.jsx(jn.Avatar, { src: e.botAvatar, children: e.botName || "Bot" }),
34250
34284
  /* @__PURE__ */ F.jsx(jn.Title, { children: e.botName || "Bot" }),
34251
34285
  /* @__PURE__ */ F.jsx(jn.Description, { children: e.botDescription }),
34252
34286
  /* @__PURE__ */ F.jsxs(jn.Actions, { children: [
34253
- /* @__PURE__ */ F.jsx(tF, {}),
34254
- t && /* @__PURE__ */ F.jsx(nF, {})
34287
+ /* @__PURE__ */ F.jsx(nF, {}),
34288
+ t && /* @__PURE__ */ F.jsx(rF, {})
34255
34289
  ] })
34256
34290
  ] }),
34257
34291
  /* @__PURE__ */ F.jsxs(jn.ExpandedContent, { children: [
@@ -34302,26 +34336,26 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34302
34336
  )
34303
34337
  ] })
34304
34338
  ] }),
34305
- /* @__PURE__ */ F.jsx(eF, {}),
34306
- /* @__PURE__ */ F.jsxs(Gj, { children: [
34307
- /* @__PURE__ */ F.jsx(Jj, { placeholder: e.composerPlaceholder || "Type your message" }),
34308
- /* @__PURE__ */ F.jsx(Yj, {})
34339
+ /* @__PURE__ */ F.jsx(tF, {}),
34340
+ /* @__PURE__ */ F.jsxs(Jj, { children: [
34341
+ /* @__PURE__ */ F.jsx(Yj, { placeholder: e.composerPlaceholder || "Type your message" }),
34342
+ /* @__PURE__ */ F.jsx(Qj, {})
34309
34343
  ] })
34310
34344
  ] });
34311
- }, $s = V.object({
34312
- title: V.string(),
34313
- link: V.string().optional()
34314
- }), rF = V.object({
34315
- composerPlaceholder: V.string().optional(),
34316
- botName: V.string().optional(),
34317
- botAvatar: V.string().optional(),
34318
- botDescription: V.string().optional(),
34345
+ }, $s = Z.object({
34346
+ title: Z.string(),
34347
+ link: Z.string().optional()
34348
+ }), iF = Z.object({
34349
+ composerPlaceholder: Z.string().optional(),
34350
+ botName: Z.string().optional(),
34351
+ botAvatar: Z.string().optional(),
34352
+ botDescription: Z.string().optional(),
34319
34353
  website: $s.optional(),
34320
34354
  email: $s.optional(),
34321
34355
  phone: $s.optional(),
34322
34356
  privacyPolicy: $s.optional(),
34323
34357
  termsOfService: $s.optional()
34324
- }), iF = V.enum([
34358
+ }), sF = Z.enum([
34325
34359
  "heading1",
34326
34360
  "heading2",
34327
34361
  "heading3",
@@ -34335,28 +34369,28 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34335
34369
  "listItem",
34336
34370
  "lineBreak",
34337
34371
  "pre"
34338
- ]), sF = V.object({}).passthrough().transform((e) => e), Ee = V.object({
34339
- className: V.string().optional(),
34340
- style: sF.optional()
34341
- }), Bl = V.object({
34372
+ ]), oF = Z.object({}).passthrough().transform((e) => e), Ee = Z.object({
34373
+ className: Z.string().optional(),
34374
+ style: oF.optional()
34375
+ }), Bl = Z.object({
34342
34376
  container: Ee.optional(),
34343
34377
  image: Ee.optional(),
34344
34378
  fallback: Ee.optional()
34345
- }), oF = V.object({
34379
+ }), aF = Z.object({
34346
34380
  button: Ee.optional(),
34347
- text: V.record(iF, Ee.optional()),
34348
- image: V.object({
34381
+ text: Z.record(sF, Ee.optional()),
34382
+ image: Z.object({
34349
34383
  image: Ee.optional(),
34350
34384
  placeholder: Ee.optional()
34351
34385
  }).optional(),
34352
34386
  audio: Ee.optional(),
34353
34387
  video: Ee.optional(),
34354
- file: V.object({
34388
+ file: Z.object({
34355
34389
  container: Ee.optional(),
34356
34390
  title: Ee.optional(),
34357
34391
  icon: Ee.optional()
34358
34392
  }).optional(),
34359
- location: V.object({
34393
+ location: Z.object({
34360
34394
  container: Ee.optional(),
34361
34395
  title: Ee.optional(),
34362
34396
  icon: Ee.optional()
@@ -34364,131 +34398,131 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34364
34398
  column: Ee.optional(),
34365
34399
  row: Ee.optional(),
34366
34400
  bubble: Ee.optional(),
34367
- carousel: V.object({
34401
+ carousel: Z.object({
34368
34402
  container: Ee.optional(),
34369
34403
  slidesContainer: Ee.optional(),
34370
34404
  backButton: Ee.optional(),
34371
34405
  nextButton: Ee.optional()
34372
34406
  }).optional(),
34373
- dropdown: V.object({
34374
- button: V.object({
34407
+ dropdown: Z.object({
34408
+ button: Z.object({
34375
34409
  container: Ee.optional(),
34376
34410
  icon: Ee.optional(),
34377
34411
  text: Ee.optional()
34378
34412
  }).optional(),
34379
- content: V.object({
34413
+ content: Z.object({
34380
34414
  container: Ee.optional(),
34381
34415
  item: Ee.optional()
34382
34416
  }).optional()
34383
34417
  }).optional()
34384
- }), aF = V.object({
34418
+ }), cF = Z.object({
34385
34419
  container: Ee.optional(),
34386
- modal: V.object({
34420
+ modal: Z.object({
34387
34421
  overlay: Ee.optional(),
34388
34422
  container: Ee.optional(),
34389
- dialog: V.object({
34423
+ dialog: Z.object({
34390
34424
  container: Ee.optional(),
34391
- title: V.object({
34425
+ title: Z.object({
34392
34426
  container: Ee.optional(),
34393
34427
  text: Ee.optional(),
34394
34428
  closeIcon: Ee.optional()
34395
34429
  }).optional(),
34396
34430
  content: Ee.optional(),
34397
- newConversation: V.object({
34431
+ newConversation: Z.object({
34398
34432
  text: Ee.optional(),
34399
34433
  button: Ee.optional()
34400
34434
  }).optional()
34401
34435
  }).optional()
34402
34436
  }).optional(),
34403
- notification: V.object({
34437
+ notification: Z.object({
34404
34438
  container: Ee.optional(),
34405
34439
  title: Ee.optional(),
34406
34440
  description: Ee.optional(),
34407
34441
  icon: Ee.optional(),
34408
34442
  closeIcon: Ee.optional()
34409
34443
  }).optional(),
34410
- header: V.object({
34444
+ header: Z.object({
34411
34445
  container: Ee.optional(),
34412
- content: V.object({
34446
+ content: Z.object({
34413
34447
  container: Ee.optional(),
34414
34448
  title: Ee.optional(),
34415
34449
  description: Ee.optional(),
34416
34450
  avatar: Bl.optional(),
34417
- actions: V.object({
34451
+ actions: Z.object({
34418
34452
  container: Ee.optional(),
34419
34453
  icons: Ee.optional()
34420
34454
  }).optional()
34421
34455
  }),
34422
- expandedContent: V.object({
34456
+ expandedContent: Z.object({
34423
34457
  container: Ee.optional(),
34424
- descriptionItems: V.object({
34458
+ descriptionItems: Z.object({
34425
34459
  container: Ee.optional(),
34426
34460
  icon: Ee.optional(),
34427
34461
  text: Ee.optional(),
34428
34462
  link: Ee.optional()
34429
34463
  }).optional()
34430
34464
  }).optional(),
34431
- description: V.object({
34465
+ description: Z.object({
34432
34466
  container: Ee.optional(),
34433
34467
  title: Ee.optional(),
34434
34468
  subtitle: Ee.optional()
34435
34469
  }).optional(),
34436
34470
  newConversationIcon: Ee.optional()
34437
34471
  }).optional(),
34438
- composer: V.object({
34472
+ composer: Z.object({
34439
34473
  container: Ee.optional(),
34440
34474
  input: Ee.optional(),
34441
- button: V.object({
34475
+ button: Z.object({
34442
34476
  container: Ee.optional(),
34443
34477
  icon: Ee.optional()
34444
34478
  }).optional()
34445
34479
  }).optional(),
34446
- fab: V.object({
34480
+ fab: Z.object({
34447
34481
  icon: Ee.optional(),
34448
34482
  container: Ee.optional()
34449
34483
  }).optional(),
34450
- messageList: V.object({
34484
+ messageList: Z.object({
34451
34485
  container: Ee.optional(),
34452
- marquee: V.object({
34486
+ marquee: Z.object({
34453
34487
  content: Ee.optional(),
34454
34488
  title: Ee.optional(),
34455
34489
  description: Ee.optional(),
34456
34490
  avatar: Bl.optional(),
34457
34491
  container: Ee.optional()
34458
34492
  }).optional(),
34459
- scrollDownButton: V.object({
34493
+ scrollDownButton: Z.object({
34460
34494
  container: Ee.optional(),
34461
34495
  button: Ee.optional(),
34462
34496
  icon: Ee.optional()
34463
34497
  }).optional()
34464
34498
  }).optional(),
34465
- message: V.object({
34499
+ message: Z.object({
34466
34500
  container: Ee.optional(),
34467
34501
  avatar: Bl.optional(),
34468
- blocks: oF.optional()
34502
+ blocks: aF.optional()
34469
34503
  }).optional(),
34470
- loadingIndicator: V.object({
34504
+ loadingIndicator: Z.object({
34471
34505
  container: Ee.optional(),
34472
34506
  loader: Ee.optional()
34473
34507
  }).optional()
34474
- }), cF = V.enum(["opened", "closed", "initial"]), lF = V.object({
34475
- data: V.record(V.string()).optional()
34476
- }), uF = V.enum(["messaging", "pushpin"]), dF = V.object({
34477
- configuration: rF.optional().catch(void 0),
34478
- theme: aF.optional().catch(void 0),
34479
- style: V.string().optional().catch(void 0),
34480
- user: lF.optional().catch(void 0)
34481
- }), n4 = dF.extend({
34482
- clientId: V.string(),
34483
- botId: V.string(),
34484
- selector: V.string().optional().catch(void 0),
34485
- webchatScriptUrl: V.string().optional().catch(void 0),
34486
- fabScriptUrl: V.string().optional().catch(void 0),
34487
- messagingUrl: V.string().optional().catch(void 0),
34488
- pushpinUrl: V.string().optional().catch(void 0),
34489
- clientMode: uF.optional().catch(void 0),
34490
- defaultState: cF.optional().catch(void 0)
34491
- }), r4 = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => n === "messaging" ? new Fb({
34508
+ }), lF = Z.enum(["opened", "closed", "initial"]), uF = Z.object({
34509
+ data: Z.record(Z.string()).optional()
34510
+ }), dF = Z.enum(["messaging", "pushpin"]), fF = Z.object({
34511
+ configuration: iF.optional().catch(void 0),
34512
+ theme: cF.optional().catch(void 0),
34513
+ style: Z.string().optional().catch(void 0),
34514
+ user: uF.optional().catch(void 0)
34515
+ }), r4 = fF.extend({
34516
+ clientId: Z.string(),
34517
+ botId: Z.string(),
34518
+ selector: Z.string().optional().catch(void 0),
34519
+ webchatScriptUrl: Z.string().optional().catch(void 0),
34520
+ fabScriptUrl: Z.string().optional().catch(void 0),
34521
+ messagingUrl: Z.string().optional().catch(void 0),
34522
+ pushpinUrl: Z.string().optional().catch(void 0),
34523
+ clientMode: dF.optional().catch(void 0),
34524
+ defaultState: lF.optional().catch(void 0)
34525
+ }), i4 = ({ clientId: e, apiUrl: t, mode: n = "messaging" }) => n === "messaging" ? new Fb({
34492
34526
  url: t,
34493
34527
  clientId: e
34494
34528
  }) : new lw({
@@ -34498,35 +34532,35 @@ const Mp = 10 * 1e3, eF = ys(({ scrollDownButton: e, ...t }) => {
34498
34532
  export {
34499
34533
  Vp as Avatar,
34500
34534
  ko as Block,
34501
- Gj as Composer,
34502
- Yj as ComposerButton,
34503
- Jj as ComposerInput,
34504
- EB as Container,
34505
- XF as Fab,
34535
+ Jj as Composer,
34536
+ Qj as ComposerButton,
34537
+ Yj as ComposerInput,
34538
+ SB as Container,
34539
+ e4 as Fab,
34506
34540
  jn as Header,
34507
- HB as LoadingIndicator,
34541
+ qB as LoadingIndicator,
34508
34542
  Ap as Message,
34509
- eF as MessageList,
34543
+ tF as MessageList,
34510
34544
  $i as Modal,
34511
- Qj as ModalProvider,
34512
- tF as RestartConversation,
34513
- t4 as Webchat,
34514
- JF as WebchatProvider,
34545
+ Xj as ModalProvider,
34546
+ nF as RestartConversation,
34547
+ n4 as Webchat,
34548
+ YF as WebchatProvider,
34515
34549
  Bl as avatarThemeSchema,
34516
- oF as blockThemeSchema,
34517
- uF as clientModePropsSchema,
34518
- dF as configPropsSchema,
34519
- rF as configurationSchema,
34520
- sF as cssStyleSchema,
34550
+ aF as blockThemeSchema,
34551
+ dF as clientModePropsSchema,
34552
+ fF as configPropsSchema,
34553
+ iF as configurationSchema,
34554
+ oF as cssStyleSchema,
34521
34555
  $s as descriptionItemSchema,
34522
- r4 as getClient,
34523
- n4 as initPropsSchema,
34524
- iF as markdownTypeSchema,
34556
+ i4 as getClient,
34557
+ r4 as initPropsSchema,
34558
+ sF as markdownTypeSchema,
34525
34559
  Gg as renderers,
34526
- cF as statePropsSchema,
34560
+ lF as statePropsSchema,
34527
34561
  Ee as styleOptionSchema,
34528
- aF as themeSchema,
34529
- GF as useClient,
34562
+ cF as themeSchema,
34563
+ JF as useClient,
34530
34564
  _t as useWebchatContext,
34531
- lF as userPropsSchema
34565
+ uF as userPropsSchema
34532
34566
  };