@pagelines/sdk 1.0.933 → 1.0.934

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/BotWrap.js CHANGED
@@ -4436,7 +4436,7 @@ var oi = [
4436
4436
  }, G(c.value.meta.footer), 5)) : E("", !0)
4437
4437
  ], 12, oi)) : E("", !0);
4438
4438
  }
4439
- }), Fi = ["innerHTML"], Ii = /* @__PURE__ */ M({
4439
+ }), Fi = "text-[14px] leading-[1.55] tracking-[-0.006em] text-pretty @sm/chat:text-[15px] @lg/chat:text-[15.5px]", Ii = ["innerHTML"], Li = /* @__PURE__ */ M({
4440
4440
  __name: "ChatRichText",
4441
4441
  props: {
4442
4442
  text: {},
@@ -4604,13 +4604,13 @@ var oi = [
4604
4604
  }) : [];
4605
4605
  });
4606
4606
  return (t, n) => (L(), O("div", {
4607
- class: "chat-msg-rich break-words text-[14px] leading-[1.55] @sm/chat:text-[15px] @sm/chat:leading-[1.5] @lg/chat:text-[15.5px] @lg/chat:leading-[1.55]",
4607
+ class: F(["chat-msg-rich break-words", pe(Fi)]),
4608
4608
  onErrorCapture: onRichTextAssetError
4609
4609
  }, [(L(!0), O(y, null, H(d.value, (t) => (L(), O(y, { key: t.key }, [t.kind === "markdown" ? (L(), O("div", {
4610
4610
  key: 0,
4611
4611
  class: F(["chat-msg-prose", e.inverted ? "chat-msg-prose-invert" : ""]),
4612
4612
  innerHTML: t.html
4613
- }, null, 10, Fi)) : t.kind === "visual" ? (L(), T(Pi, {
4613
+ }, null, 10, Ii)) : t.kind === "visual" ? (L(), T(Pi, {
4614
4614
  key: 1,
4615
4615
  result: t.result,
4616
4616
  inverted: e.inverted
@@ -4632,24 +4632,24 @@ var oi = [
4632
4632
  }, [...n[1] || (n[1] = [k("span", {
4633
4633
  class: "size-2 shrink-0 animate-pulse rounded-full",
4634
4634
  style: { background: "currentcolor" }
4635
- }, null, -1), te(" Preparing chart… ", -1)])], 4))], 64))), 128))], 32));
4635
+ }, null, -1), te(" Preparing chart… ", -1)])], 4))], 64))), 128))], 34));
4636
4636
  }
4637
- }), Li = ["data-composer-action"], Ri = [
4637
+ }), Ri = ["data-composer-action"], zi = [
4638
4638
  "placeholder",
4639
4639
  "disabled",
4640
4640
  "maxlength"
4641
- ], zi = { class: "mt-2.5 flex items-center" }, Bi = { class: "flex items-center gap-2" }, Vi = [
4641
+ ], Bi = { class: "mt-2.5 flex items-center" }, Vi = { class: "flex items-center gap-2" }, Hi = [
4642
4642
  "data-composer-action",
4643
4643
  "disabled",
4644
4644
  "aria-label",
4645
4645
  "title"
4646
- ], Hi = {
4646
+ ], Ui = {
4647
4647
  key: 0,
4648
4648
  class: "i-tabler-player-stop-filled size-3.5"
4649
- }, Ui = {
4649
+ }, Wi = {
4650
4650
  key: 1,
4651
4651
  class: "i-tabler-arrow-up size-[17px]"
4652
- }, Wi = { class: "sr-only" }, Gi = /* @__PURE__ */ M({
4652
+ }, Gi = { class: "sr-only" }, Ki = /* @__PURE__ */ M({
4653
4653
  __name: "ChatComposer",
4654
4654
  props: /*@__PURE__*/ N({
4655
4655
  placeholder: { default: "" },
@@ -4721,10 +4721,10 @@ var oi = [
4721
4721
  },
4722
4722
  class: F(["block w-full bg-transparent leading-[1.5] focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", e.inverted ? "text-white placeholder-white/50" : "text-theme-900 placeholder-theme-400"]),
4723
4723
  onKeydown
4724
- }, null, 42, Ri), [[he, o.value]])]), k("div", zi, [
4724
+ }, null, 42, zi), [[he, o.value]])]), k("div", Bi, [
4725
4725
  de(t.$slots, "leading"),
4726
4726
  n[2] || (n[2] = k("div", { class: "flex-1" }, null, -1)),
4727
- k("div", Bi, [de(t.$slots, "actions"), e.showSend ? (L(), O("button", {
4727
+ k("div", Vi, [de(t.$slots, "actions"), e.showSend ? (L(), O("button", {
4728
4728
  key: 0,
4729
4729
  "data-test": "messaging-send-btn",
4730
4730
  "data-composer-action": e.action,
@@ -4733,10 +4733,10 @@ var oi = [
4733
4733
  "aria-label": e.sendLabel,
4734
4734
  title: e.sendLabel,
4735
4735
  onClick: n[1] || (n[1] = (e) => r("action"))
4736
- }, [e.action === "stop" ? (L(), O("i", Hi)) : (L(), O("i", Ui)), k("span", Wi, G(e.sendLabel), 1)], 10, Vi)) : E("", !0)])
4737
- ])], 10, Li));
4736
+ }, [e.action === "stop" ? (L(), O("i", Ui)) : (L(), O("i", Wi)), k("span", Gi, G(e.sendLabel), 1)], 10, Hi)) : E("", !0)])
4737
+ ])], 10, Ri));
4738
4738
  }
4739
- }), Ki = { class: "flex items-center gap-3 my-6 px-2" }, qi = /* @__PURE__ */ M({
4739
+ }), qi = { class: "flex items-center gap-3 my-6 px-2" }, Ji = /* @__PURE__ */ M({
4740
4740
  __name: "ChatDivider",
4741
4741
  props: {
4742
4742
  label: {},
@@ -4746,13 +4746,13 @@ var oi = [
4746
4746
  }
4747
4747
  },
4748
4748
  setup(e) {
4749
- return (t, n) => (L(), O("div", Ki, [
4749
+ return (t, n) => (L(), O("div", qi, [
4750
4750
  k("div", { class: F(["flex-1 h-px", e.inverted ? "bg-white/15" : "bg-theme-200/70"]) }, null, 2),
4751
- k("span", { class: F(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", e.inverted ? "text-white/30" : "text-theme-300"]) }, G(e.label), 3),
4751
+ k("span", { class: F(["text-[11px] font-medium shrink-0 tracking-[0.06em] uppercase", e.inverted ? "text-white/50" : "text-theme-400"]) }, G(e.label), 3),
4752
4752
  k("div", { class: F(["flex-1 h-px", e.inverted ? "bg-white/15" : "bg-theme-200/70"]) }, null, 2)
4753
4753
  ]));
4754
4754
  }
4755
- }), Ji = 80, Yi = 600, Xi = /* @__PURE__ */ M({
4755
+ }), Yi = 80, Xi = 600, Zi = /* @__PURE__ */ M({
4756
4756
  __name: "ChatScroller",
4757
4757
  setup(e, { expose: t }) {
4758
4758
  let n = R(), r = R(), o = R(!0), s, c, u = 0;
@@ -4762,10 +4762,10 @@ var oi = [
4762
4762
  }
4763
4763
  function onScroll() {
4764
4764
  let e = n.value;
4765
- e && (o.value = e.scrollHeight - e.scrollTop - e.clientHeight <= Ji);
4765
+ e && (o.value = e.scrollHeight - e.scrollTop - e.clientHeight <= Yi);
4766
4766
  }
4767
4767
  function markUserGesture() {
4768
- u = Date.now() + Yi;
4768
+ u = Date.now() + Xi;
4769
4769
  }
4770
4770
  function followPinned() {
4771
4771
  o.value && Date.now() > u && scrollToBottom();
@@ -4797,7 +4797,7 @@ var oi = [
4797
4797
  class: "flex-1 flex flex-col"
4798
4798
  }, [de(e.$slots, "default")], 512)], 34));
4799
4799
  }
4800
- }), Zi = ["data-chat-turn"], Qi = /* @__PURE__ */ M({
4800
+ }), Qi = ["data-chat-turn"], $i = /* @__PURE__ */ M({
4801
4801
  __name: "ChatTurn",
4802
4802
  props: {
4803
4803
  own: { type: Boolean },
@@ -4821,9 +4821,9 @@ var oi = [
4821
4821
  class: F(e.own ? e.inverted ? "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : e.inverted ? "text-white/95" : "text-theme-900")
4822
4822
  }, [de(t.$slots, "default")], 2)) : E("", !0),
4823
4823
  de(t.$slots, "after")
4824
- ], 2)], 10, Zi));
4824
+ ], 2)], 10, Qi));
4825
4825
  }
4826
- }), $i = ["aria-label"], ea = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, ta = /* @__PURE__ */ M({
4826
+ }), ea = ["aria-label"], ta = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, na = /* @__PURE__ */ M({
4827
4827
  name: "FClose",
4828
4828
  __name: "FClose",
4829
4829
  props: { ariaLabel: {} },
@@ -4839,7 +4839,7 @@ var oi = [
4839
4839
  "aria-label": e.ariaLabel || "Close",
4840
4840
  class: "close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",
4841
4841
  onClick: r[0] || (r[0] = (e) => n.$emit("click", e))
4842
- }, [r[1] || (r[1] = k("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)), k("span", ea, [k("span", {
4842
+ }, [r[1] || (r[1] = k("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)), k("span", ta, [k("span", {
4843
4843
  class: F(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", t.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
4844
4844
  style: {
4845
4845
  "background-color": "currentColor",
@@ -4851,15 +4851,15 @@ var oi = [
4851
4851
  "background-color": "currentColor",
4852
4852
  "transition-delay": "0.45s"
4853
4853
  }
4854
- }, null, 2)])], 8, $i));
4854
+ }, null, 2)])], 8, ea));
4855
4855
  }
4856
- }), na = { class: "flex min-h-full items-center justify-center text-center p-4" }, ra = {
4856
+ }), ra = { class: "flex min-h-full items-center justify-center text-center p-4" }, ia = {
4857
4857
  key: 0,
4858
4858
  class: "text-base p-4 font-semibold"
4859
- }, ia = {
4859
+ }, aa = {
4860
4860
  key: 1,
4861
4861
  class: "flex items-center gap-2 px-2"
4862
- }, aa = /* @__PURE__ */ M({
4862
+ }, oa = /* @__PURE__ */ M({
4863
4863
  inheritAttrs: !1,
4864
4864
  name: "FModal",
4865
4865
  __name: "FModal",
@@ -4963,7 +4963,7 @@ var oi = [
4963
4963
  }), k("div", {
4964
4964
  class: "fixed inset-0 z-40 overflow-y-auto overscroll-contain no-scrollbar",
4965
4965
  onClick: n[3] || (n[3] = (e) => close({ reason: "escape" }))
4966
- }, [k("div", na, [j(x, re(ne(u.value)), {
4966
+ }, [k("div", ra, [j(x, re(ne(u.value)), {
4967
4967
  default: ve(() => [e.vis ? (L(), O("div", {
4968
4968
  key: 0,
4969
4969
  class: F([o.value, "w-full"]),
@@ -4971,7 +4971,7 @@ var oi = [
4971
4971
  }, [e.hasClose || e.title || t.$slots.actions ? (L(), O("div", {
4972
4972
  key: 0,
4973
4973
  class: F(!e.title && (e.hasClose || t.$slots.actions) ? "absolute top-0 right-0 z-10" : "flex justify-between items-center")
4974
- }, [e.title ? (L(), O("h2", ra, G(e.title), 1)) : E("", !0), e.hasClose || t.$slots.actions ? (L(), O("div", ia, [de(t.$slots, "actions"), e.hasClose ? (L(), T(ta, {
4974
+ }, [e.title ? (L(), O("h2", ia, G(e.title), 1)) : E("", !0), e.hasClose || t.$slots.actions ? (L(), O("div", aa, [de(t.$slots, "actions"), e.hasClose ? (L(), T(na, {
4975
4975
  key: 0,
4976
4976
  class: "relative",
4977
4977
  "data-test-id": "close-modal",
@@ -4980,19 +4980,19 @@ var oi = [
4980
4980
  _: 3
4981
4981
  }, 16)])])], 2)], 8, ["to", "disabled"])) : E("", !0);
4982
4982
  }
4983
- }), oa = {
4983
+ }), sa = {
4984
4984
  "data-test": "share-reply-dialog",
4985
4985
  class: "flex flex-col"
4986
- }, sa = { class: "flex h-[60px] shrink-0 items-center justify-between border-b border-theme-950/[0.06] px-5" }, ca = { class: "flex flex-col gap-4 p-5" }, la = { class: "relative max-h-[300px] overflow-hidden rounded-2xl bg-theme-25 p-4 ring-1 ring-theme-950/[0.06]" }, ua = { class: "flex flex-col gap-3 text-[13px] leading-relaxed text-theme-800" }, da = {
4986
+ }, ca = { class: "flex h-[60px] shrink-0 items-center justify-between border-b border-theme-950/[0.06] px-5" }, la = { class: "flex flex-col gap-4 p-5" }, ua = { class: "relative max-h-[300px] overflow-hidden rounded-2xl bg-theme-25 p-4 ring-1 ring-theme-950/[0.06]" }, da = { class: "flex flex-col gap-3 text-[13px] leading-relaxed text-theme-800" }, fa = {
4987
4987
  key: 0,
4988
4988
  class: "max-w-[85%] self-end whitespace-pre-wrap rounded-[14px] bg-theme-50 px-3 py-2"
4989
- }, fa = {
4989
+ }, pa = {
4990
4990
  key: 0,
4991
4991
  class: "flex h-11 items-center gap-2 rounded-xl bg-theme-50 px-3"
4992
- }, pa = ["value"], ma = {
4992
+ }, ma = ["value"], ha = {
4993
4993
  key: 1,
4994
4994
  class: "text-[13px] text-red-600"
4995
- }, ha = { class: "flex items-center gap-3" }, ga = ["disabled"], _a = ["disabled"], va = /* @__PURE__ */ M({
4995
+ }, ga = { class: "flex items-center gap-3" }, _a = ["disabled"], va = ["disabled"], ya = /* @__PURE__ */ M({
4996
4996
  __name: "ShareReplyDialog",
4997
4997
  props: {
4998
4998
  message: {},
@@ -5046,12 +5046,12 @@ var oi = [
5046
5046
  }
5047
5047
  }
5048
5048
  }
5049
- return (t, d) => (L(), T(aa, {
5049
+ return (t, d) => (L(), T(oa, {
5050
5050
  vis: !!e.message,
5051
5051
  "modal-class": "w-full max-w-[480px] p-0",
5052
5052
  onClose: d[2] || (d[2] = (e) => n("close"))
5053
5053
  }, {
5054
- default: ve(() => [k("div", oa, [k("div", sa, [d[4] || (d[4] = k("span", { class: "text-[15px] font-semibold text-theme-900" }, "Share reply", -1)), k("button", {
5054
+ default: ve(() => [k("div", sa, [k("div", ca, [d[4] || (d[4] = k("span", { class: "text-[15px] font-semibold text-theme-900" }, "Share reply", -1)), k("button", {
5055
5055
  type: "button",
5056
5056
  "aria-label": "Close",
5057
5057
  class: "grid size-9 cursor-pointer place-items-center rounded-full text-theme-500 transition-colors hover:bg-theme-950/5 hover:text-theme-900",
@@ -5059,13 +5059,13 @@ var oi = [
5059
5059
  }, [...d[3] || (d[3] = [k("i", {
5060
5060
  class: "i-tabler-x size-[17px]",
5061
5061
  "aria-hidden": "true"
5062
- }, null, -1)])])]), k("div", ca, [
5063
- k("div", la, [k("div", ua, [e.prompt ? (L(), O("div", da, G(e.prompt), 1)) : E("", !0), e.message ? (L(), T(Ii, {
5062
+ }, null, -1)])])]), k("div", la, [
5063
+ k("div", ua, [k("div", da, [e.prompt ? (L(), O("div", fa, G(e.prompt), 1)) : E("", !0), e.message ? (L(), T(Li, {
5064
5064
  key: 1,
5065
5065
  text: e.message.text
5066
5066
  }, null, 8, ["text"])) : E("", !0)]), d[5] || (d[5] = k("div", { class: "pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-theme-25 to-transparent" }, null, -1))]),
5067
5067
  d[8] || (d[8] = k("p", { class: "text-[13px] leading-relaxed text-theme-500" }, " Anyone with the link can see this message and reply. Messages after it stay private. ", -1)),
5068
- r.value ? (L(), O("div", fa, [d[6] || (d[6] = k("i", {
5068
+ r.value ? (L(), O("div", pa, [d[6] || (d[6] = k("i", {
5069
5069
  class: "i-tabler-link size-[15px] shrink-0 text-theme-400",
5070
5070
  "aria-hidden": "true"
5071
5071
  }, null, -1)), k("input", {
@@ -5075,9 +5075,9 @@ var oi = [
5075
5075
  "aria-label": "Share link",
5076
5076
  class: "min-w-0 flex-1 truncate bg-transparent text-[14px] text-theme-800 outline-none",
5077
5077
  onFocus: d[1] || (d[1] = (e) => e.target.select())
5078
- }, null, 40, pa)])) : E("", !0),
5079
- u.value ? (L(), O("p", ma, G(u.value), 1)) : E("", !0),
5080
- k("div", ha, [r.value ? (L(), O("button", {
5078
+ }, null, 40, ma)])) : E("", !0),
5079
+ u.value ? (L(), O("p", ha, G(u.value), 1)) : E("", !0),
5080
+ k("div", ga, [r.value ? (L(), O("button", {
5081
5081
  key: 0,
5082
5082
  type: "button",
5083
5083
  "data-test": "share-reply-delete",
@@ -5087,18 +5087,18 @@ var oi = [
5087
5087
  }, [...d[7] || (d[7] = [k("i", {
5088
5088
  class: "i-tabler-trash size-[15px]",
5089
5089
  "aria-hidden": "true"
5090
- }, null, -1), te(" Delete link ", -1)])], 8, ga)) : E("", !0), k("button", {
5090
+ }, null, -1), te(" Delete link ", -1)])], 8, _a)) : E("", !0), k("button", {
5091
5091
  type: "button",
5092
5092
  "data-test": "share-reply-copy",
5093
5093
  disabled: o.value || s.value,
5094
5094
  class: "ml-auto h-11 cursor-pointer rounded-full bg-theme-900 px-5 text-[15px] font-semibold text-theme-0 transition-transform active:scale-[0.98] disabled:opacity-50",
5095
5095
  onClick: copyLink
5096
- }, G(c.value ? "Copied" : "Copy link"), 9, _a)])
5096
+ }, G(c.value ? "Copied" : "Copy link"), 9, va)])
5097
5097
  ])])]),
5098
5098
  _: 1
5099
5099
  }, 8, ["vis"]));
5100
5100
  }
5101
- }), ya = {
5101
+ }), ba = {
5102
5102
  VOICE_MIC_UNAVAILABLE: "I couldn't reach your microphone. Check that this site is allowed to use it, then try again.",
5103
5103
  VOICE_BOT_UNAVAILABLE: "Your assistant didn't pick up. Give it a moment and start the call again.",
5104
5104
  VOICE_CONNECT_TIMEOUT: "The call took too long to connect. Try again in a moment.",
@@ -5107,20 +5107,20 @@ var oi = [
5107
5107
  VOICE_UNAVAILABLE: "Voice isn't available right now. You can keep going by typing.",
5108
5108
  VOICE_MINT_INVALID: "That call couldn't be started. Refresh the page and try again.",
5109
5109
  VOICE_PROVIDER_ERROR: "The call ended unexpectedly. Try again, or keep going by typing."
5110
- }, ba = "The call ended unexpectedly. Try again, or keep going by typing.";
5110
+ }, xa = "The call ended unexpectedly. Try again, or keep going by typing.";
5111
5111
  function voiceErrorMessage(e) {
5112
- return e && ya[e] || ba;
5112
+ return e && ba[e] || xa;
5113
5113
  }
5114
5114
  // bot/ui/VoiceHistogramController.ts
5115
- var xa = [
5115
+ var Sa = [
5116
5116
  0,
5117
5117
  2,
5118
5118
  4,
5119
5119
  6,
5120
5120
  8
5121
- ], Sa = 5, Ca = 33, wa = .7, Ta = .1, Ea = 60, Da = 320, Oa = .55, ka = .1, Aa = .32, ja = .9, Ma = xa.map(() => 0), Na = xa.map(() => Sa), VoiceHistogramController = class {
5121
+ ], Ca = 5, wa = 33, Ta = .7, Ea = .1, Da = 60, Oa = 320, ka = .55, Aa = .1, ja = .32, Ma = .9, Na = Sa.map(() => 0), Pa = Sa.map(() => Ca), VoiceHistogramController = class {
5122
5122
  constructor(e = typeof window > "u" ? void 0 : window) {
5123
- t(this, "browser", void 0), t(this, "heights", W(Na)), t(this, "targetBars", Ma), t(this, "displayBars", Ma), t(this, "level", {
5123
+ t(this, "browser", void 0), t(this, "heights", W(Pa)), t(this, "targetBars", Na), t(this, "displayBars", Na), t(this, "level", {
5124
5124
  source: "mic",
5125
5125
  level: 0
5126
5126
  }), t(this, "isMuted", !1), t(this, "usesIdleWave", !1), t(this, "frameId", 0), t(this, "lastFrameAt", 0), t(this, "easeFrame", (e) => {
@@ -5129,12 +5129,12 @@ var xa = [
5129
5129
  this.frameId = 0;
5130
5130
  let n = Math.min(64, Math.max(0, e - this.lastFrameAt));
5131
5131
  this.lastFrameAt = e;
5132
- let r = this.usesIdleWave ? xa.map((t, n) => {
5133
- let r = e / 1e3 * Oa * 2 * Math.PI - n * ja;
5134
- return ka + Aa * (Math.sin(r) + 1) / 2;
5132
+ let r = this.usesIdleWave ? Sa.map((t, n) => {
5133
+ let r = e / 1e3 * ka * 2 * Math.PI - n * Ma;
5134
+ return Aa + ja * (Math.sin(r) + 1) / 2;
5135
5135
  }) : this.targetBars;
5136
5136
  this.displayBars = this.displayBars.map((e, t) => {
5137
- let o = r[t] ?? 0, s = o > e ? Ea : Da;
5137
+ let o = r[t] ?? 0, s = o > e ? Da : Oa;
5138
5138
  return e + (o - e) * (1 - Math.exp(-n / s));
5139
5139
  }), this.publish();
5140
5140
  let o = this.displayBars.every((e, t) => Math.abs((r[t] ?? 0) - e) <= 5e-4);
@@ -5154,16 +5154,16 @@ var xa = [
5154
5154
  this.frameId && this.browser?.cancelAnimationFrame(this.frameId), this.frameId = 0;
5155
5155
  }
5156
5156
  updateTargets() {
5157
- let gate = (e) => Math.max(0, e - Ta) / .9, e = this.isMuted && this.level.source === "mic";
5158
- this.targetBars = xa.map((t) => e ? 0 : gate(Math.min(1, Math.max(0, this.level.bands?.[t] ?? this.level.level)))), this.start();
5157
+ let gate = (e) => Math.max(0, e - Ea) / .9, e = this.isMuted && this.level.source === "mic";
5158
+ this.targetBars = Sa.map((t) => e ? 0 : gate(Math.min(1, Math.max(0, this.level.bands?.[t] ?? this.level.level)))), this.start();
5159
5159
  }
5160
5160
  start() {
5161
- !this.browser || this.browser.matchMedia("(prefers-reduced-motion: reduce)").matches ? (this.displayBars = this.usesIdleWave ? Ma : this.targetBars, this.publish()) : this.frameId || (this.lastFrameAt = this.browser.performance.now(), this.frameId = this.browser.requestAnimationFrame(this.easeFrame));
5161
+ !this.browser || this.browser.matchMedia("(prefers-reduced-motion: reduce)").matches ? (this.displayBars = this.usesIdleWave ? Na : this.targetBars, this.publish()) : this.frameId || (this.lastFrameAt = this.browser.performance.now(), this.frameId = this.browser.requestAnimationFrame(this.easeFrame));
5162
5162
  }
5163
5163
  publish() {
5164
- this.heights.value = this.displayBars.map((e) => Math.round((Sa + Math.min(1, Math.max(0, e)) ** wa * Ca) * 10) / 10);
5164
+ this.heights.value = this.displayBars.map((e) => Math.round((Ca + Math.min(1, Math.max(0, e)) ** Ta * wa) * 10) / 10);
5165
5165
  }
5166
- }, Pa = {
5166
+ }, Fa = {
5167
5167
  connecting: {
5168
5168
  label: "Connecting",
5169
5169
  tone: "bg-amber-500",
@@ -5201,7 +5201,7 @@ function deriveActivity(e) {
5201
5201
  return e.hadError ? "error" : e.sessionState === "live" ? e.speaking.bot ? "speaking" : e.speaking.user ? "listening" : e.work.active ? "working" : e.providerThinking ? "thinking" : "listening" : "connecting";
5202
5202
  }
5203
5203
  function deriveVoiceModePresentation(e) {
5204
- let t = deriveActivity(e), n = Pa[t], r = t === "working" ? e.work.description || "Working on it" : n.label, o = t === "working" ? r : n.visibleText ?? "", s = e.takingLonger && (t === "thinking" || t === "working"), c = s ? `${o} ${Oe.slowHint}` : o;
5204
+ let t = deriveActivity(e), n = Fa[t], r = t === "working" ? e.work.description || "Working on it" : n.label, o = t === "working" ? r : n.visibleText ?? "", s = e.takingLonger && (t === "thinking" || t === "working"), c = s ? `${o} ${Oe.slowHint}` : o;
5205
5205
  return {
5206
5206
  activity: t,
5207
5207
  label: s ? c : r,
@@ -5212,32 +5212,32 @@ function deriveVoiceModePresentation(e) {
5212
5212
  };
5213
5213
  }
5214
5214
  // bot/ui/VoiceMode.vue?vue&type=script&setup=true&lang.ts
5215
- var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5215
+ var Ia = ["data-voice-state", "data-voice-activity"], La = ["src"], Ra = {
5216
5216
  key: 1,
5217
5217
  "data-test": "voice-background-fallback",
5218
5218
  "aria-hidden": "true",
5219
5219
  class: "pointer-events-none absolute inset-0 bg-[#0A1522]"
5220
- }, Ra = {
5220
+ }, za = {
5221
5221
  "data-test": "voice-stage",
5222
5222
  class: "relative z-10 flex flex-1 flex-col items-center px-8"
5223
- }, za = { "data-voice-assistant-avatar": "" }, Ba = {
5223
+ }, Ba = { "data-voice-assistant-avatar": "" }, Va = {
5224
5224
  "data-test": "voice-lower-stage",
5225
5225
  class: "flex flex-1 flex-col items-center pt-10"
5226
- }, Va = {
5226
+ }, Ha = {
5227
5227
  "data-test": "voice-histogram",
5228
5228
  "aria-hidden": "true",
5229
5229
  class: "flex h-[38px] items-center gap-[5px]"
5230
- }, Ha = {
5230
+ }, Ua = {
5231
5231
  "data-test": "voice-presence-status",
5232
5232
  role: "status",
5233
5233
  "aria-live": "polite",
5234
5234
  class: "sr-only"
5235
- }, Ua = ["data-taking-longer"], Wa = { class: "absolute inset-x-0 bottom-0 z-20 flex items-center justify-between px-14 pb-[max(3rem,env(safe-area-inset-bottom))] sm:px-12" }, Ga = [
5235
+ }, Wa = ["data-taking-longer"], Ga = { class: "absolute inset-x-0 bottom-0 z-20 flex items-center justify-between px-14 pb-[max(3rem,env(safe-area-inset-bottom))] sm:px-12" }, Ka = [
5236
5236
  "disabled",
5237
5237
  "aria-label",
5238
5238
  "aria-pressed",
5239
5239
  "title"
5240
- ], Ka = /* @__PURE__ */ M({
5240
+ ], qa = /* @__PURE__ */ M({
5241
5241
  __name: "VoiceMode",
5242
5242
  props: {
5243
5243
  bot: {},
@@ -5328,42 +5328,42 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5328
5328
  "aria-hidden": "true",
5329
5329
  draggable: "false",
5330
5330
  class: "pointer-events-none absolute inset-0 size-full object-cover"
5331
- }, null, 8, Ia)) : (L(), O("div", La)),
5331
+ }, null, 8, La)) : (L(), O("div", Ra)),
5332
5332
  n[2] || (n[2] = k("div", {
5333
5333
  "data-test": "voice-background-overlay",
5334
5334
  "aria-hidden": "true",
5335
5335
  class: "pointer-events-none absolute inset-0 bg-gradient-to-b from-[#050F19]/82 via-[#050F19]/90 to-[#050F19]/99"
5336
5336
  }, null, -1)),
5337
- k("div", Ra, [
5337
+ k("div", za, [
5338
5338
  n[0] || (n[0] = k("div", {
5339
5339
  "data-test": "voice-stage-spacer",
5340
5340
  "aria-hidden": "true",
5341
5341
  class: "flex-1"
5342
5342
  }, null, -1)),
5343
- k("div", za, [j(Xe, {
5343
+ k("div", Ba, [j(Xe, {
5344
5344
  bot: e.bot,
5345
5345
  "show-status": !1,
5346
5346
  "show-owner-mark": !1,
5347
5347
  "is-light": !1,
5348
5348
  class: "size-32"
5349
5349
  }, null, 8, ["bot"])]),
5350
- k("div", Ba, [
5351
- k("div", Va, [(L(!0), O(y, null, H(pe(E), (e, t) => (L(), O("span", {
5350
+ k("div", Va, [
5351
+ k("div", Ha, [(L(!0), O(y, null, H(pe(E), (e, t) => (L(), O("span", {
5352
5352
  key: t,
5353
5353
  "data-test": "voice-histogram-bar",
5354
5354
  class: F(["w-[5px] rounded-full transition-colors duration-150", re.value.tone]),
5355
5355
  style: I({ height: `${e}px` })
5356
5356
  }, null, 6))), 128))]),
5357
- k("div", Ha, G(s.value ?? re.value.label), 1),
5357
+ k("div", Ua, G(s.value ?? re.value.label), 1),
5358
5358
  k("p", {
5359
5359
  "data-test": "voice-visible-status",
5360
5360
  "data-taking-longer": re.value.takingLonger || void 0,
5361
5361
  "aria-hidden": "true",
5362
5362
  class: "mt-5 min-h-5 text-center text-sm font-medium tracking-wide text-white/80"
5363
- }, G(s.value ?? re.value.visibleStatus), 9, Ua)
5363
+ }, G(s.value ?? re.value.visibleStatus), 9, Wa)
5364
5364
  ])
5365
5365
  ]),
5366
- k("div", Wa, [k("button", {
5366
+ k("div", Ga, [k("button", {
5367
5367
  ref_key: "endButton",
5368
5368
  ref: ee,
5369
5369
  type: "button",
@@ -5389,24 +5389,24 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5389
5389
  }, [k("i", {
5390
5390
  class: F([x.value ? "i-tabler-microphone-off" : "i-tabler-microphone", "size-[25px]"]),
5391
5391
  "aria-hidden": "true"
5392
- }, null, 2)], 10, Ga)])
5393
- ], 40, Fa));
5392
+ }, null, 2)], 10, Ka)])
5393
+ ], 40, Ia));
5394
5394
  }
5395
- }), qa = {
5395
+ }), Ja = {
5396
5396
  key: 0,
5397
5397
  class: "pb-4"
5398
- }, Ja = {
5398
+ }, Ya = {
5399
5399
  key: 1,
5400
5400
  "data-test": "messaging-sdk-header",
5401
5401
  class: "shrink-0 border-b border-theme-100 px-4 py-3"
5402
- }, Ya = { class: "min-w-0 flex-1" }, Xa = { class: "truncate text-base font-semibold leading-tight text-theme-900" }, Za = { class: "mt-1 truncate text-sm leading-tight text-theme-500" }, Qa = {
5402
+ }, Xa = { class: "min-w-0 flex-1" }, Za = { class: "truncate text-base font-semibold leading-tight text-theme-900" }, Qa = { class: "mt-1 truncate text-sm leading-tight text-theme-500" }, $a = {
5403
5403
  key: 0,
5404
5404
  class: "shrink-0 rounded-full bg-theme-50 px-2.5 py-1 font-mono text-[11px] font-medium text-theme-500"
5405
- }, $a = ["aria-label"], eo = {
5405
+ }, eo = ["aria-label"], to = {
5406
5406
  key: 0,
5407
5407
  "data-test": "messaging-empty-state",
5408
5408
  class: "flex flex-col items-center justify-center px-4"
5409
- }, to = ["title"], no = ["data-journal-outcome"], ro = [
5409
+ }, no = ["title"], ro = ["data-journal-outcome"], io = [
5410
5410
  "data-message-id",
5411
5411
  "data-message-sender",
5412
5412
  "data-conversation-id",
@@ -5417,7 +5417,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5417
5417
  "data-issue-action-label",
5418
5418
  "data-issue-action-url",
5419
5419
  "data-streaming"
5420
- ], io = { class: "flex items-center gap-3" }, ao = ["href"], oo = [
5420
+ ], ao = { class: "flex items-center gap-3" }, oo = ["href"], so = [
5421
5421
  "data-test",
5422
5422
  "data-message-id",
5423
5423
  "data-message-sender",
@@ -5425,7 +5425,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5425
5425
  "data-message-sequence",
5426
5426
  "data-system-kind",
5427
5427
  "data-routine-run-id"
5428
- ], so = [
5428
+ ], co = [
5429
5429
  "data-message-id",
5430
5430
  "data-message-sender",
5431
5431
  "data-conversation-id",
@@ -5434,52 +5434,52 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5434
5434
  "data-issue-code",
5435
5435
  "data-issue-bucket",
5436
5436
  "data-streaming"
5437
- ], co = ["data-routine-run-id"], lo = ["src", "alt"], uo = ["src"], fo = ["href"], po = {
5437
+ ], lo = ["data-routine-run-id"], uo = ["src", "alt"], fo = ["src"], po = ["href"], mo = {
5438
5438
  key: 0,
5439
5439
  "data-test": "messaging-message-text-part"
5440
- }, mo = [
5440
+ }, ho = [
5441
5441
  "src",
5442
5442
  "alt",
5443
5443
  "data-attachment-placement"
5444
- ], ho = ["src", "data-attachment-placement"], go = ["href", "data-attachment-placement"], _o = ["data-actions-reveal"], vo = [
5444
+ ], go = ["src", "data-attachment-placement"], _o = ["href", "data-attachment-placement"], vo = ["data-actions-reveal"], yo = [
5445
5445
  "data-copied",
5446
5446
  "title",
5447
5447
  "aria-label",
5448
5448
  "onClick"
5449
- ], yo = ["onClick"], bo = ["onClick"], xo = ["data-journal-outcome"], So = ["data-journal-outcome"], Co = ["data-test", "data-working-description"], wo = {
5449
+ ], bo = ["onClick"], xo = ["onClick"], So = ["data-journal-outcome"], Co = ["data-journal-outcome"], wo = ["data-test", "data-working-description"], To = {
5450
5450
  key: 0,
5451
5451
  class: "truncate"
5452
- }, To = {
5452
+ }, Eo = {
5453
5453
  key: 1,
5454
5454
  class: "sr-only"
5455
- }, Eo = ["data-issue-code"], Do = { class: "min-w-0 flex-1" }, Oo = {
5455
+ }, Do = ["data-issue-code"], Oo = { class: "min-w-0 flex-1" }, ko = {
5456
5456
  "data-test": "messaging-transient-issue-title",
5457
5457
  class: "font-medium"
5458
- }, ko = { "data-test": "messaging-transient-issue-help" }, Ao = ["href"], jo = ["inert", "aria-hidden"], Mo = ["data-seat-state"], No = ["src", "alt"], Po = { class: "max-w-20 truncate" }, Fo = ["onClick"], Io = {
5458
+ }, Ao = { "data-test": "messaging-transient-issue-help" }, jo = ["href"], Mo = ["inert", "aria-hidden"], No = ["data-seat-state"], Po = ["src", "alt"], Fo = { class: "max-w-20 truncate" }, Io = ["onClick"], Lo = {
5459
5459
  key: 0,
5460
5460
  class: "shrink-0 flex items-center justify-center size-14"
5461
- }, Lo = { class: "font-mono text-sm tabular-nums" }, Ro = [
5461
+ }, Ro = { class: "font-mono text-sm tabular-nums" }, zo = [
5462
5462
  "disabled",
5463
5463
  "aria-label",
5464
5464
  "title"
5465
- ], zo = {
5465
+ ], Bo = {
5466
5466
  key: 0,
5467
5467
  class: "i-svg-spinners-ring-resize size-5"
5468
- }, Bo = {
5468
+ }, Vo = {
5469
5469
  key: 1,
5470
5470
  class: "i-tabler-plus size-5"
5471
- }, Vo = { class: "sr-only" }, Ho = ["aria-label", "title"], Uo = { class: "sr-only" }, Wo = [
5471
+ }, Ho = { class: "sr-only" }, Uo = ["aria-label", "title"], Wo = { class: "sr-only" }, Go = [
5472
5472
  "disabled",
5473
5473
  "aria-label",
5474
5474
  "title"
5475
- ], Go = {
5475
+ ], Ko = {
5476
5476
  class: "flex h-4 items-center gap-[2px]",
5477
5477
  "aria-hidden": "true"
5478
- }, Ko = {
5478
+ }, qo = {
5479
5479
  key: 2,
5480
5480
  "data-test": "messaging-ai-notice",
5481
5481
  class: "mx-auto max-w-[640px] @5xl/chat:max-w-[720px] pt-3 text-center text-[11.5px] leading-none text-theme-300"
5482
- }, qo = /*#__PURE__*/ Te(/* @__PURE__ */ M({
5482
+ }, Jo = /*#__PURE__*/ Te(/* @__PURE__ */ M({
5483
5483
  __name: "ElBotChat",
5484
5484
  props: {
5485
5485
  chatController: {},
@@ -5744,17 +5744,17 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5744
5744
  "data-test": "messaging-root",
5745
5745
  class: F(["@container/chat relative flex h-full flex-col", N.value.length === 0 ? "min-h-0 [justify-content:safe_center] overflow-y-auto" : ""])
5746
5746
  }, [
5747
- e.showHeader && !Z.value ? (L(), O("div", qa, [j(Ge, {
5747
+ e.showHeader && !Z.value ? (L(), O("div", Ja, [j(Ge, {
5748
5748
  bot: e.bot,
5749
5749
  "is-online": p.value
5750
- }, null, 8, ["bot", "is-online"])])) : e.showHeader ? (L(), O("div", Ja, [k("div", { class: F(["flex items-center gap-3", e.centered ? "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto" : ""]) }, [
5750
+ }, null, 8, ["bot", "is-online"])])) : e.showHeader ? (L(), O("div", Ya, [k("div", { class: F(["flex items-center gap-3", e.centered ? "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto" : ""]) }, [
5751
5751
  j(Xe, {
5752
5752
  bot: e.bot,
5753
5753
  "is-light": Z.value,
5754
5754
  class: "size-10"
5755
5755
  }, null, 8, ["bot", "is-light"]),
5756
- k("div", Ya, [k("div", Xa, G(e.bot.displayName.value), 1), k("div", Za, G(e.bot.title.value || "Assistant"), 1)]),
5757
- e.headerMeta ? (L(), O("span", Qa, G(e.headerMeta), 1)) : E("", !0)
5756
+ k("div", Xa, [k("div", Za, G(e.bot.displayName.value), 1), k("div", Qa, G(e.bot.title.value || "Assistant"), 1)]),
5757
+ e.headerMeta ? (L(), O("span", $a, G(e.headerMeta), 1)) : E("", !0)
5758
5758
  ], 2)])) : E("", !0),
5759
5759
  j(x, { name: "voice-call" }, {
5760
5760
  default: ve(() => [it.value ? (L(), O("div", {
@@ -5765,7 +5765,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5765
5765
  "aria-label": `Voice conversation with ${e.bot.displayName.value}`,
5766
5766
  class: "fixed inset-0 z-[100] flex items-stretch justify-stretch bg-[#050F19] sm:items-center sm:justify-center sm:bg-[#050F19]/45 sm:p-6",
5767
5767
  onKeydown: r[0] || (r[0] = Ce((e) => endVoiceConversation(), ["esc"]))
5768
- }, [j(Ka, {
5768
+ }, [j(qa, {
5769
5769
  ref_key: "voiceMode",
5770
5770
  ref: ot,
5771
5771
  bot: e.bot,
@@ -5778,7 +5778,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5778
5778
  "bot",
5779
5779
  "chat-controller",
5780
5780
  "backdrop-src"
5781
- ])], 40, $a)) : E("", !0)]),
5781
+ ])], 40, eo)) : E("", !0)]),
5782
5782
  _: 1
5783
5783
  }),
5784
5784
  g.value ? (L(), O("div", {
@@ -5788,7 +5788,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5788
5788
  key: 3,
5789
5789
  class: F(["flex items-center justify-center gap-1.5 py-2 text-[11px]", mt.value])
5790
5790
  }, [r[16] || (r[16] = k("i", { class: "i-tabler-tool size-3" }, null, -1)), k("span", null, G(e.setupHint), 1)], 2)) : E("", !0),
5791
- j(Xi, {
5791
+ j(Zi, {
5792
5792
  ref_key: "chatScroller",
5793
5793
  ref: o,
5794
5794
  "data-test": "messaging-scroller",
@@ -5797,7 +5797,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5797
5797
  class: F([N.value.length === 0 ? "flex-none" : "flex-1", e.centered && !e.showHeader && N.value.length > 0 ? "mt-16" : ""])
5798
5798
  }, {
5799
5799
  default: ve(() => [k("div", { class: F([N.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : e.centered ? "pt-4 pb-5 px-3 @lg/chat:px-8 space-y-2" : "pt-4 pb-[120px] px-3 @lg/chat:px-8 space-y-2", e.centered ? N.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto w-full" : ""]) }, [
5800
- N.value.length === 0 && !g.value ? (L(), O("div", eo, [de(t.$slots, "empty-heading", {
5800
+ N.value.length === 0 && !g.value ? (L(), O("div", to, [de(t.$slots, "empty-heading", {
5801
5801
  bot: e.bot,
5802
5802
  isLight: Z.value
5803
5803
  }, () => [j(Xe, {
@@ -5807,9 +5807,9 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5807
5807
  }, null, 8, ["bot", "is-light"]), k("div", { class: F(["text-base @sm/chat:text-lg font-semibold", Z.value ? "text-theme-900" : "text-white"]) }, G(e.bot.displayName.value), 3)], !0), e.emptyStateMessage === "" ? E("", !0) : (L(), O(y, { key: 0 }, [k("p", { class: F(["mt-1 text-center text-xs @sm/chat:text-sm", mt.value]) }, G(e.emptyStateMessage || "Type your message to get started."), 3), k("div", {
5808
5808
  class: F(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", Z.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
5809
5809
  title: n.value.tooltip
5810
- }, [k("i", { class: F([n.value.icon, "size-3"]) }, null, 2), k("span", null, G(n.value.label), 1)], 10, to)], 64))])) : E("", !0),
5810
+ }, [k("i", { class: F([n.value.icon, "size-3"]) }, null, 2), k("span", null, G(n.value.label), 1)], 10, no)], 64))])) : E("", !0),
5811
5811
  (L(!0), O(y, null, H(N.value, (t, n) => (L(), O(y, { key: t.id }, [
5812
- shouldShowTimeDivider(N.value, n) ? (L(), T(qi, {
5812
+ shouldShowTimeDivider(N.value, n) ? (L(), T(Ji, {
5813
5813
  key: 0,
5814
5814
  "data-test": "messaging-time-divider",
5815
5815
  label: shouldShowTimeDivider(N.value, n) || "",
@@ -5823,7 +5823,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5823
5823
  }, [j(at, {
5824
5824
  model: messageWorkJournal(t),
5825
5825
  "is-light": Z.value
5826
- }, null, 8, ["model", "is-light"])], 8, no)) : E("", !0),
5826
+ }, null, 8, ["model", "is-light"])], 8, ro)) : E("", !0),
5827
5827
  isSystemExplainerMessage(t) ? (L(), O("section", {
5828
5828
  key: 2,
5829
5829
  "data-test": "messaging-system-msg",
@@ -5838,13 +5838,13 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5838
5838
  "data-issue-action-url": t.issue?.actionUrl,
5839
5839
  "data-streaming": t.id === me.value ? "true" : void 0,
5840
5840
  class: "mb-6 w-full"
5841
- }, [k("div", { class: F(["mb-1.5 text-center text-[10.5px] font-medium", mt.value]) }, "System message", 2), k("div", io, [
5841
+ }, [k("div", { class: F(["mb-1.5 text-center text-[10.5px] font-medium", mt.value]) }, "System message", 2), k("div", ao, [
5842
5842
  k("span", {
5843
5843
  "data-test": "messaging-system-divider-line",
5844
5844
  "aria-hidden": "true",
5845
5845
  class: F(["hidden h-px flex-1 opacity-60 @md/chat:block", pt.value])
5846
5846
  }, null, 2),
5847
- k("div", { class: F(["w-[46ch] min-w-0 max-w-full rounded-2xl px-5 py-3.5 text-center text-[13px] ring-1 [&_.chat-msg-rich]:max-w-none [&_.chat-msg-rich]:text-[13px] [&_.chat-msg-rich]:italic [&_.chat-msg-rich]:leading-[1.6]", Z.value ? "text-theme-700 ring-theme-200/50" : "text-white/85 ring-white/10"]) }, [t.text ? (L(), T(Ii, {
5847
+ k("div", { class: F(["w-[46ch] min-w-0 max-w-full rounded-2xl px-5 py-3.5 text-center text-[13px] ring-1 [&_.chat-msg-rich]:max-w-none [&_.chat-msg-rich]:text-[13px] [&_.chat-msg-rich]:italic [&_.chat-msg-rich]:leading-[1.6]", Z.value ? "text-theme-700 ring-theme-200/50" : "text-white/85 ring-white/10"]) }, [t.text ? (L(), T(Li, {
5848
5848
  key: 0,
5849
5849
  text: t.text,
5850
5850
  inverted: !Z.value,
@@ -5855,7 +5855,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5855
5855
  "text",
5856
5856
  "inverted",
5857
5857
  "streaming"
5858
- ])) : t.issue?.help ? (L(), T(Ii, {
5858
+ ])) : t.issue?.help ? (L(), T(Li, {
5859
5859
  key: 1,
5860
5860
  text: t.issue.help,
5861
5861
  inverted: !Z.value
@@ -5865,13 +5865,13 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5865
5865
  "data-test": "messaging-system-msg-action",
5866
5866
  class: F(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", Z.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
5867
5867
  onClick: r[2] || (r[2] = we(() => {}, ["stop"]))
5868
- }, [te(G(t.issue.actionLabel) + " ", 1), r[17] || (r[17] = k("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, ao)) : E("", !0)], 2),
5868
+ }, [te(G(t.issue.actionLabel) + " ", 1), r[17] || (r[17] = k("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, oo)) : E("", !0)], 2),
5869
5869
  k("span", {
5870
5870
  "data-test": "messaging-system-divider-line",
5871
5871
  "aria-hidden": "true",
5872
5872
  class: F(["hidden h-px flex-1 opacity-60 @md/chat:block", pt.value])
5873
5873
  }, null, 2)
5874
- ])], 8, ro)) : t.sender === "system" && (t.systemKind === "routine_completed" || t.systemKind === "voice_ended") ? (L(), O("div", {
5874
+ ])], 8, io)) : t.sender === "system" && (t.systemKind === "routine_completed" || t.systemKind === "voice_ended") ? (L(), O("div", {
5875
5875
  key: 3,
5876
5876
  "data-test": t.systemKind === "routine_completed" ? "messaging-routine-receipt" : "messaging-voice-receipt",
5877
5877
  "data-message-id": t.id,
@@ -5884,7 +5884,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5884
5884
  }, [k("i", {
5885
5885
  class: F(["size-3.5 shrink-0", t.systemKind === "voice_ended" ? "i-tabler-phone-off" : "i-tabler-clock"]),
5886
5886
  "aria-hidden": "true"
5887
- }, null, 2), k("span", null, G(t.text), 1)], 10, oo)) : t.sender === "system" ? (L(), O("div", {
5887
+ }, null, 2), k("span", null, G(t.text), 1)], 10, so)) : t.sender === "system" ? (L(), O("div", {
5888
5888
  key: 4,
5889
5889
  "data-test": "messaging-system-status-msg",
5890
5890
  "data-message-id": t.id,
@@ -5899,11 +5899,11 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5899
5899
  }, [r[18] || (r[18] = k("i", {
5900
5900
  class: "i-tabler-info-circle size-4 mt-0.5 shrink-0",
5901
5901
  "aria-hidden": "true"
5902
- }, null, -1)), j(Ii, {
5902
+ }, null, -1)), j(Li, {
5903
5903
  text: t.text,
5904
5904
  inverted: !Z.value,
5905
5905
  onClick: r[3] || (r[3] = we(() => {}, ["stop"]))
5906
- }, null, 8, ["text", "inverted"])], 10, so)) : (L(), T(Qi, {
5906
+ }, null, 8, ["text", "inverted"])], 10, co)) : (L(), T($i, {
5907
5907
  key: 5,
5908
5908
  own: t.sender === "user",
5909
5909
  inverted: !Z.value,
@@ -5917,7 +5917,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5917
5917
  "data-queued": isQueuedMessage(t.id) ? "true" : void 0,
5918
5918
  "aria-label": isQueuedMessage(t.id) ? "Sent — will be answered after the current work finishes" : void 0,
5919
5919
  class: F({
5920
- "mb-6": isGroupEnd(N.value, n),
5920
+ "mb-4": isGroupEnd(N.value, n),
5921
5921
  "opacity-70": isQueuedMessage(t.id)
5922
5922
  })
5923
5923
  }, ee({
@@ -5929,7 +5929,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5929
5929
  }, [r[19] || (r[19] = k("i", {
5930
5930
  class: "i-tabler-clock size-3.5 mt-0.5 shrink-0",
5931
5931
  "aria-hidden": "true"
5932
- }, null, -1)), k("span", null, "Ran " + G(t.routine.run.name || t.routine.run.sourceLabel || "a routine"), 1)], 10, co)) : E("", !0), blockAttachmentsForMessage(t).length ? (L(), O("div", {
5932
+ }, null, -1)), k("span", null, "Ran " + G(t.routine.run.name || t.routine.run.sourceLabel || "a routine"), 1)], 10, lo)) : E("", !0), blockAttachmentsForMessage(t).length ? (L(), O("div", {
5933
5933
  key: 1,
5934
5934
  class: F(["mb-1 space-y-1", t.sender === "user" ? "flex flex-col items-end" : ""])
5935
5935
  }, [(L(!0), O(y, null, H(blockAttachmentsForMessage(t), ({ attachment: e, index: t }) => (L(), O(y, { key: attachmentKey(e, t) }, [e.type === "image" ? (L(), O("img", {
@@ -5939,14 +5939,14 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5939
5939
  "data-test": "messaging-attachment",
5940
5940
  "data-attachment-placement": "block",
5941
5941
  class: "rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
5942
- }, null, 8, lo)) : e.type === "audio" ? (L(), O("audio", {
5942
+ }, null, 8, uo)) : e.type === "audio" ? (L(), O("audio", {
5943
5943
  key: 1,
5944
5944
  src: e.src,
5945
5945
  controls: "",
5946
5946
  "data-test": "messaging-attachment",
5947
5947
  "data-attachment-placement": "block",
5948
5948
  class: "max-w-full"
5949
- }, null, 8, uo)) : (L(), O("a", {
5949
+ }, null, 8, fo)) : (L(), O("a", {
5950
5950
  key: 2,
5951
5951
  href: e.src,
5952
5952
  target: "_blank",
@@ -5954,7 +5954,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5954
5954
  "data-test": "messaging-attachment",
5955
5955
  "data-attachment-placement": "block",
5956
5956
  class: F(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Z.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5957
- }, [r[20] || (r[20] = k("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " + G(e.filename), 1)], 10, fo))], 64))), 128))], 2)) : E("", !0)]),
5957
+ }, [r[20] || (r[20] = k("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " + G(e.filename), 1)], 10, po))], 64))), 128))], 2)) : E("", !0)]),
5958
5958
  after: ve(() => [canCopyMessage(t) ? (L(), O("div", {
5959
5959
  key: 0,
5960
5960
  "data-test": "messaging-message-actions",
@@ -5972,7 +5972,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5972
5972
  }, [k("i", {
5973
5973
  class: F(["size-3.5", He.value === t.id ? "i-tabler-check" : "i-tabler-copy"]),
5974
5974
  "aria-hidden": "true"
5975
- }, null, 2)], 10, vo),
5975
+ }, null, 2)], 10, yo),
5976
5976
  qe.value ? (L(), O("button", {
5977
5977
  key: 0,
5978
5978
  type: "button",
@@ -5984,7 +5984,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5984
5984
  }, [...r[22] || (r[22] = [k("i", {
5985
5985
  class: "i-tabler-share-2 size-3.5",
5986
5986
  "aria-hidden": "true"
5987
- }, null, -1)])], 10, yo)) : E("", !0),
5987
+ }, null, -1)])], 10, bo)) : E("", !0),
5988
5988
  Ke.value ? (L(), O("button", {
5989
5989
  key: 1,
5990
5990
  type: "button",
@@ -5996,12 +5996,12 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
5996
5996
  }, [...r[23] || (r[23] = [k("i", {
5997
5997
  class: "i-tabler-flag size-3.5",
5998
5998
  "aria-hidden": "true"
5999
- }, null, -1)])], 10, bo)) : E("", !0)
6000
- ], 10, _o)) : E("", !0)]),
5999
+ }, null, -1)])], 10, xo)) : E("", !0)
6000
+ ], 10, vo)) : E("", !0)]),
6001
6001
  _: 2
6002
6002
  }, [messageRenderParts(t).length ? {
6003
6003
  name: "default",
6004
- fn: ve(() => [(L(!0), O(y, null, H(messageRenderParts(t), (e) => (L(), O(y, { key: e.key }, [e.kind === "text" && e.text ? (L(), O("div", po, [j(Ii, {
6004
+ fn: ve(() => [(L(!0), O(y, null, H(messageRenderParts(t), (e) => (L(), O(y, { key: e.key }, [e.kind === "text" && e.text ? (L(), O("div", mo, [j(Li, {
6005
6005
  text: e.text,
6006
6006
  inverted: !Z.value,
6007
6007
  streaming: t.id === me.value,
@@ -6018,14 +6018,14 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6018
6018
  "data-test": "messaging-attachment",
6019
6019
  "data-attachment-placement": e.placement,
6020
6020
  class: "my-2 rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
6021
- }, null, 8, mo)) : e.kind === "attachment" && e.attachment.type === "audio" ? (L(), O("audio", {
6021
+ }, null, 8, ho)) : e.kind === "attachment" && e.attachment.type === "audio" ? (L(), O("audio", {
6022
6022
  key: 2,
6023
6023
  src: e.attachment.src,
6024
6024
  controls: "",
6025
6025
  "data-test": "messaging-attachment",
6026
6026
  "data-attachment-placement": e.placement,
6027
6027
  class: "my-2 max-w-full"
6028
- }, null, 8, ho)) : e.kind === "attachment" ? (L(), O("a", {
6028
+ }, null, 8, go)) : e.kind === "attachment" ? (L(), O("a", {
6029
6029
  key: 3,
6030
6030
  href: e.attachment.src,
6031
6031
  target: "_blank",
@@ -6033,7 +6033,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6033
6033
  "data-test": "messaging-attachment",
6034
6034
  "data-attachment-placement": e.placement,
6035
6035
  class: F(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Z.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
6036
- }, [r[21] || (r[21] = k("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " + G(e.attachment.filename), 1)], 10, go)) : E("", !0)], 64))), 128))]),
6036
+ }, [r[21] || (r[21] = k("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " + G(e.attachment.filename), 1)], 10, _o)) : E("", !0)], 64))), 128))]),
6037
6037
  key: "0"
6038
6038
  } : void 0]), 1032, [
6039
6039
  "own",
@@ -6057,11 +6057,11 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6057
6057
  }, [j(at, {
6058
6058
  model: e.journal,
6059
6059
  "is-light": Z.value
6060
- }, null, 8, ["model", "is-light"])], 8, xo)) : e.kind === "text" && e.content ? (L(), O("div", {
6060
+ }, null, 8, ["model", "is-light"])], 8, So)) : e.kind === "text" && e.content ? (L(), O("div", {
6061
6061
  key: 1,
6062
6062
  "data-test": "messaging-live-text-block",
6063
6063
  class: F(["mb-4", Z.value ? "text-theme-900" : "text-white/95"])
6064
- }, [j(Ii, {
6064
+ }, [j(Li, {
6065
6065
  text: e.content,
6066
6066
  inverted: !Z.value,
6067
6067
  streaming: e.id === M.value,
@@ -6091,7 +6091,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6091
6091
  }, [j(at, {
6092
6092
  model: se.value,
6093
6093
  "is-light": Z.value
6094
- }, null, 8, ["model", "is-light"])], 8, So)) : E("", !0)], 64)) : E("", !0)
6094
+ }, null, 8, ["model", "is-light"])], 8, Co)) : E("", !0)], 64)) : E("", !0)
6095
6095
  ], 64))), 128)),
6096
6096
  be.value ? (L(), O("div", {
6097
6097
  key: 1,
@@ -6108,7 +6108,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6108
6108
  k("span"),
6109
6109
  k("span"),
6110
6110
  k("span")
6111
- ], -1)), re.value ? (L(), O("span", wo, G(re.value), 1)) : (L(), O("span", To, "Thinking"))], 10, Co)) : E("", !0),
6111
+ ], -1)), re.value ? (L(), O("span", To, G(re.value), 1)) : (L(), O("span", Eo, "Thinking"))], 10, wo)) : E("", !0),
6112
6112
  K.value ? (L(), O("div", {
6113
6113
  key: 2,
6114
6114
  "data-test": "messaging-transient-issue",
@@ -6120,14 +6120,14 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6120
6120
  class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
6121
6121
  "aria-hidden": "true"
6122
6122
  }, null, -1)),
6123
- k("span", Do, [k("span", Oo, [te(G(K.value.message), 1), K.value.help ? (L(), O(y, { key: 0 }, [te(":")], 64)) : E("", !0)]), K.value.help ? (L(), O(y, { key: 0 }, [r[26] || (r[26] = te(G(" "), -1)), k("span", ko, G(K.value.help), 1)], 64)) : E("", !0)]),
6123
+ k("span", Oo, [k("span", ko, [te(G(K.value.message), 1), K.value.help ? (L(), O(y, { key: 0 }, [te(":")], 64)) : E("", !0)]), K.value.help ? (L(), O(y, { key: 0 }, [r[26] || (r[26] = te(G(" "), -1)), k("span", Ao, G(K.value.help), 1)], 64)) : E("", !0)]),
6124
6124
  K.value.actionUrl && K.value.actionLabel ? (L(), O("a", {
6125
6125
  key: 0,
6126
6126
  href: K.value.actionUrl,
6127
6127
  class: "shrink-0 underline underline-offset-2",
6128
6128
  onClick: r[6] || (r[6] = we(() => {}, ["stop"]))
6129
- }, G(K.value.actionLabel), 9, Ao)) : E("", !0)
6130
- ], 10, Eo)) : E("", !0)
6129
+ }, G(K.value.actionLabel), 9, jo)) : E("", !0)
6130
+ ], 10, Do)) : E("", !0)
6131
6131
  ], 2)]),
6132
6132
  _: 3
6133
6133
  }, 8, [
@@ -6151,7 +6151,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6151
6151
  role: "status",
6152
6152
  "aria-live": "polite",
6153
6153
  class: F(["py-3 text-center text-[14px]", Z.value ? "text-theme-500" : "text-white/70"])
6154
- }, G(Oe.value), 11, Mo)) : (L(), O(y, { key: 1 }, [
6154
+ }, G(Oe.value), 11, No)) : (L(), O(y, { key: 1 }, [
6155
6155
  je.value.length > 0 ? (L(), O("div", {
6156
6156
  key: 0,
6157
6157
  class: F(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e.centered ? "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto" : ""])
@@ -6163,13 +6163,13 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6163
6163
  src: e.src,
6164
6164
  alt: e.filename,
6165
6165
  class: F(["size-14 rounded-xl object-cover border", Z.value ? "border-black/10" : "border-white/20"])
6166
- }, null, 10, No)) : (L(), O("div", {
6166
+ }, null, 10, Po)) : (L(), O("div", {
6167
6167
  key: 1,
6168
6168
  class: F(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", Z.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
6169
- }, [r[28] || (r[28] = k("i", { class: "i-tabler-file size-4" }, null, -1)), k("span", Po, G(e.filename), 1)], 2)), k("button", {
6169
+ }, [r[28] || (r[28] = k("i", { class: "i-tabler-file size-4" }, null, -1)), k("span", Fo, G(e.filename), 1)], 2)), k("button", {
6170
6170
  class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] cursor-pointer",
6171
6171
  onClick: (e) => removeAttachment(t)
6172
- }, [...r[29] || (r[29] = [k("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Fo)]))), 128)), Me.value ? (L(), O("div", Io, [j(De, { class: "size-5" })])) : E("", !0)], 2)) : E("", !0),
6172
+ }, [...r[29] || (r[29] = [k("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Io)]))), 128)), Me.value ? (L(), O("div", Lo, [j(De, { class: "size-5" })])) : E("", !0)], 2)) : E("", !0),
6173
6173
  Ie.value ? (L(), O("input", {
6174
6174
  key: 1,
6175
6175
  ref_key: "fileInput",
@@ -6179,7 +6179,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6179
6179
  class: "hidden",
6180
6180
  onChange: handleFileSelect
6181
6181
  }, null, 544)) : E("", !0),
6182
- j(Gi, {
6182
+ j(Ki, {
6183
6183
  ref_key: "composer",
6184
6184
  ref: s,
6185
6185
  modelValue: Ae.value,
@@ -6205,7 +6205,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6205
6205
  "aria-label": Ie.value ? "Attach file" : "File attachments unavailable",
6206
6206
  title: Ie.value ? "Attach file" : "File attachments unavailable",
6207
6207
  onClick: r[7] || (r[7] = (e) => Ie.value && triggerFileInput())
6208
- }, [Me.value ? (L(), O("i", zo)) : (L(), O("i", Bo)), k("span", Vo, G(Ie.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Ro)]),
6208
+ }, [Me.value ? (L(), O("i", Bo)) : (L(), O("i", Vo)), k("span", Ho, G(Ie.value ? "Attach file" : "File attachments unavailable"), 1)], 10, zo)]),
6209
6209
  actions: ve(() => [
6210
6210
  $e.value && !et.value && !it.value ? (L(), O("button", {
6211
6211
  key: 0,
@@ -6229,7 +6229,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6229
6229
  onPointercancel: we(onRecordPointerCancel, ["prevent"]),
6230
6230
  onClick: onRecordClick,
6231
6231
  onKeydown: r[9] || (r[9] = Ce(we((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
6232
- }, [k("i", { class: F([$e.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), k("span", Uo, G(rt.value), 1)], 42, Ho)) : E("", !0),
6232
+ }, [k("i", { class: F([$e.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), k("span", Wo, G(rt.value), 1)], 42, Uo)) : E("", !0),
6233
6233
  Y.value ? (L(), O("button", {
6234
6234
  key: 2,
6235
6235
  "data-test": "messaging-voice-start-btn",
@@ -6238,7 +6238,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6238
6238
  "aria-label": ft.value,
6239
6239
  title: ft.value,
6240
6240
  onClick: r[10] || (r[10] = (e) => startVoiceConversation())
6241
- }, [k("span", Go, [(L(), O(y, null, H([
6241
+ }, [k("span", Ko, [(L(), O(y, null, H([
6242
6242
  7,
6243
6243
  13,
6244
6244
  16,
@@ -6248,7 +6248,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6248
6248
  key: e,
6249
6249
  class: "w-[2px] rounded-full bg-current",
6250
6250
  style: I({ height: `${e}px` })
6251
- }, null, 4)), 64))]), r[32] || (r[32] = k("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, Wo)) : E("", !0),
6251
+ }, null, 4)), 64))]), r[32] || (r[32] = k("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, Go)) : E("", !0),
6252
6252
  Be.value && !Y.value && !$e.value ? (L(), O("button", {
6253
6253
  key: 3,
6254
6254
  "data-test": "messaging-secondary-stop-btn",
@@ -6269,7 +6269,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6269
6269
  class: F(["flex min-w-0 items-center gap-2 py-1", Z.value ? "text-theme-700" : "text-white/80"])
6270
6270
  }, [
6271
6271
  r[30] || (r[30] = k("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
6272
- k("span", Lo, G(tt.value), 1),
6272
+ k("span", Ro, G(tt.value), 1),
6273
6273
  k("span", { class: F(["min-w-0 truncate text-sm", Z.value ? "text-theme-400" : "text-white/45"]) }, G(nt.value), 3)
6274
6274
  ], 2)]),
6275
6275
  key: "0"
@@ -6284,9 +6284,9 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6284
6284
  "show-send",
6285
6285
  "class"
6286
6286
  ]),
6287
- e.centered && N.value.length > 0 ? (L(), O("p", Ko, G(e.bot.displayName.value) + " is AI and can make mistakes. ", 1)) : E("", !0)
6288
- ], 64))], !0)], 10, jo),
6289
- qe.value ? (L(), T(va, {
6287
+ e.centered && N.value.length > 0 ? (L(), O("p", qo, G(e.bot.displayName.value) + " is AI and can make mistakes. ", 1)) : E("", !0)
6288
+ ], 64))], !0)], 10, Mo),
6289
+ qe.value ? (L(), T(ya, {
6290
6290
  key: 4,
6291
6291
  message: Je.value,
6292
6292
  prompt: Ye.value,
@@ -6299,16 +6299,16 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6299
6299
  ])) : E("", !0)
6300
6300
  ], 2));
6301
6301
  }
6302
- }), [["__scopeId", "data-v-f60c6cac"]]), Jo = { class: "bot-wrap" }, Yo = {
6302
+ }), [["__scopeId", "data-v-4b8f5776"]]), Yo = { class: "bot-wrap" }, Xo = {
6303
6303
  key: 0,
6304
6304
  class: "flex items-center justify-center h-full"
6305
- }, Xo = {
6305
+ }, Zo = {
6306
6306
  key: 2,
6307
6307
  class: "flex h-full flex-col items-center justify-center gap-4 px-6 text-center",
6308
6308
  role: "status",
6309
6309
  "aria-live": "polite",
6310
6310
  "data-test": "bot-unavailable"
6311
- }, Zo = /* @__PURE__ */ M({
6311
+ }, Qo = /* @__PURE__ */ M({
6312
6312
  __name: "BotWrap",
6313
6313
  props: {
6314
6314
  sdk: {},
@@ -6398,7 +6398,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6398
6398
  });
6399
6399
  }
6400
6400
  }
6401
- return ce(loadBot), (t, n) => (L(), O("div", Jo, [s.value ? (L(), O("div", Yo, [k("div", { class: F(["size-6 animate-spin rounded-full border-b-2", r.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : u.value ? de(t.$slots, "default", {
6401
+ return ce(loadBot), (t, n) => (L(), O("div", Yo, [s.value ? (L(), O("div", Xo, [k("div", { class: F(["size-6 animate-spin rounded-full border-b-2", r.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : u.value ? de(t.$slots, "default", {
6402
6402
  sdk: pe(o),
6403
6403
  bot: u.value,
6404
6404
  context: e.clientContext ?? e.context,
@@ -6406,7 +6406,7 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6406
6406
  buttonText: e.buttonText,
6407
6407
  buttonIcon: e.buttonIcon,
6408
6408
  loading: s.value
6409
- }, void 0, void 0, 1) : d.value ? (L(), O("div", Xo, [n[0] || (n[0] = k("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), k("button", {
6409
+ }, void 0, void 0, 1) : d.value ? (L(), O("div", Zo, [n[0] || (n[0] = k("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), k("button", {
6410
6410
  type: "button",
6411
6411
  class: "min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700",
6412
6412
  "data-test": "bot-unavailable-retry",
@@ -6414,6 +6414,6 @@ var Fa = ["data-voice-state", "data-voice-activity"], Ia = ["src"], La = {
6414
6414
  }, " Try again ")])) : E("", !0)]));
6415
6415
  }
6416
6416
  });
6417
- export { BotChatController as _, Qi as a, Gi as c, ze as d, Le as f, parseButtonTemplate as g, handleImageError as h, aa as i, Ii as l, getBotAvatarUrl as m, qo as n, Xi as o, Fe as p, Ka as r, qi as s, Zo as t, Ge as u, De as v, Te as y };
6417
+ export { parseButtonTemplate as _, $i as a, Te as b, Ki as c, Ge as d, ze as f, handleImageError as g, getBotAvatarUrl as h, oa as i, Li as l, Fe as m, Jo as n, Zi as o, Le as p, qa as r, Ji as s, Qo as t, Fi as u, BotChatController as v, De as y };
6418
6418
 
6419
6419
  //# sourceMappingURL=BotWrap.js.map