@pagelines/sdk 1.0.900 → 1.0.902

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
@@ -4948,6 +4948,12 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
4948
4948
  "data-issue-action-url",
4949
4949
  "data-streaming"
4950
4950
  ], ca = { class: "flex items-center gap-3" }, la = ["href"], ua = [
4951
+ "data-message-id",
4952
+ "data-message-sender",
4953
+ "data-conversation-id",
4954
+ "data-message-sequence",
4955
+ "data-routine-run-id"
4956
+ ], da = [
4951
4957
  "data-message-id",
4952
4958
  "data-message-sender",
4953
4959
  "data-conversation-id",
@@ -4956,7 +4962,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
4956
4962
  "data-issue-code",
4957
4963
  "data-issue-bucket",
4958
4964
  "data-streaming"
4959
- ], da = [
4965
+ ], fa = [
4960
4966
  "data-test",
4961
4967
  "data-message-id",
4962
4968
  "data-message-sender",
@@ -4966,63 +4972,63 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
4966
4972
  "data-streaming",
4967
4973
  "data-queued",
4968
4974
  "aria-label"
4969
- ], fa = ["src", "alt"], pa = ["src"], ma = ["href"], ha = {
4975
+ ], pa = ["data-routine-run-id"], ma = ["src", "alt"], ha = ["src"], ga = ["href"], _a = {
4970
4976
  key: 0,
4971
4977
  "data-test": "messaging-message-text-part"
4972
- }, ga = [
4978
+ }, va = [
4973
4979
  "src",
4974
4980
  "alt",
4975
4981
  "data-attachment-placement"
4976
- ], _a = ["src", "data-attachment-placement"], va = ["href", "data-attachment-placement"], ya = ["data-actions-reveal"], ba = [
4982
+ ], ya = ["src", "data-attachment-placement"], ba = ["href", "data-attachment-placement"], xa = ["data-actions-reveal"], Sa = [
4977
4983
  "data-copied",
4978
4984
  "title",
4979
4985
  "aria-label",
4980
4986
  "onClick"
4981
- ], xa = ["onClick"], Sa = ["data-journal-outcome"], Ca = ["data-journal-outcome"], wa = ["data-test", "data-working-description"], Ta = {
4987
+ ], Ca = ["onClick"], wa = ["data-journal-outcome"], Ta = ["data-journal-outcome"], Ea = ["data-test", "data-working-description"], Da = {
4982
4988
  key: 0,
4983
4989
  class: "truncate"
4984
- }, Ea = {
4990
+ }, Oa = {
4985
4991
  key: 1,
4986
4992
  class: "sr-only"
4987
- }, Da = ["data-issue-code"], Oa = { class: "min-w-0 flex-1" }, ka = {
4993
+ }, ka = ["data-issue-code"], Aa = { class: "min-w-0 flex-1" }, ja = {
4988
4994
  "data-test": "messaging-transient-issue-title",
4989
4995
  class: "font-medium"
4990
- }, Aa = { "data-test": "messaging-transient-issue-help" }, ja = ["href"], Ma = ["inert", "aria-hidden"], Na = ["data-seat-state"], Pa = ["src", "alt"], Fa = { class: "max-w-20 truncate" }, Ia = ["onClick"], La = {
4996
+ }, Ma = { "data-test": "messaging-transient-issue-help" }, Na = ["href"], Pa = ["inert", "aria-hidden"], Fa = ["data-seat-state"], Ia = ["src", "alt"], La = { class: "max-w-20 truncate" }, Ra = ["onClick"], za = {
4991
4997
  key: 0,
4992
4998
  class: "shrink-0 flex items-center justify-center size-14"
4993
- }, Ra = ["data-composer-action"], za = ["placeholder", "disabled"], Ba = { class: "font-mono text-sm tabular-nums" }, Va = { class: "mt-2.5 flex items-center" }, Ha = [
4999
+ }, Ba = ["data-composer-action"], Va = ["placeholder", "disabled"], Ha = { class: "font-mono text-sm tabular-nums" }, Ua = { class: "mt-2.5 flex items-center" }, Wa = [
4994
5000
  "disabled",
4995
5001
  "aria-label",
4996
5002
  "title"
4997
- ], Ua = {
5003
+ ], Ga = {
4998
5004
  key: 0,
4999
5005
  class: "i-svg-spinners-ring-resize size-5"
5000
- }, Wa = {
5006
+ }, Ka = {
5001
5007
  key: 1,
5002
5008
  class: "i-tabler-plus size-5"
5003
- }, Ga = { class: "sr-only" }, Ka = { class: "flex items-center gap-2" }, qa = ["aria-label", "title"], Ja = { class: "sr-only" }, Ya = [
5009
+ }, qa = { class: "sr-only" }, Ja = { class: "flex items-center gap-2" }, Ya = ["aria-label", "title"], Xa = { class: "sr-only" }, Za = [
5004
5010
  "disabled",
5005
5011
  "aria-label",
5006
5012
  "title"
5007
- ], Xa = {
5013
+ ], Qa = {
5008
5014
  class: "flex h-4 items-center gap-[2px]",
5009
5015
  "aria-hidden": "true"
5010
- }, Za = [
5016
+ }, $a = [
5011
5017
  "data-composer-action",
5012
5018
  "disabled",
5013
5019
  "aria-label",
5014
5020
  "title"
5015
- ], Qa = {
5021
+ ], eo = {
5016
5022
  key: 0,
5017
5023
  class: "i-tabler-player-stop-filled size-3.5"
5018
- }, $a = {
5024
+ }, to = {
5019
5025
  key: 1,
5020
5026
  class: "i-tabler-arrow-up size-[17px]"
5021
- }, eo = { class: "sr-only" }, to = {
5027
+ }, no = { class: "sr-only" }, ro = {
5022
5028
  key: 2,
5023
5029
  "data-test": "messaging-ai-notice",
5024
5030
  class: "mx-auto max-w-[640px] @5xl/chat:max-w-[720px] pt-3 text-center text-[11.5px] leading-none text-theme-300"
5025
- }, no = /*#__PURE__*/ ye(/* @__PURE__ */ E({
5031
+ }, io = /*#__PURE__*/ ye(/* @__PURE__ */ E({
5026
5032
  __name: "ElBotChat",
5027
5033
  props: {
5028
5034
  chatController: {},
@@ -5430,8 +5436,20 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5430
5436
  "aria-hidden": "true",
5431
5437
  class: O(["hidden h-px flex-1 opacity-60 @md/chat:block", lt.value])
5432
5438
  }, null, 2)
5433
- ])], 8, sa)) : t.sender === "system" ? (j(), S("div", {
5439
+ ])], 8, sa)) : t.sender === "system" && t.systemKind === "routine_completed" ? (j(), S("div", {
5434
5440
  key: 3,
5441
+ "data-test": "messaging-routine-receipt",
5442
+ "data-message-id": t.id,
5443
+ "data-message-sender": t.sender,
5444
+ "data-conversation-id": t.conversationId,
5445
+ "data-message-sequence": t.sequence,
5446
+ "data-routine-run-id": t.routine?.run.routineRunId,
5447
+ class: O(["mb-6 flex items-start gap-2 pr-3 @sm/chat:pr-[2em] text-[13px] leading-relaxed", Y.value ? "text-theme-500" : "text-white/50"])
5448
+ }, [r[16] || (r[16] = C("i", {
5449
+ class: "i-tabler-clock size-4 mt-0.5 shrink-0",
5450
+ "aria-hidden": "true"
5451
+ }, null, -1)), C("span", null, z(t.text), 1)], 10, ua)) : t.sender === "system" ? (j(), S("div", {
5452
+ key: 4,
5435
5453
  "data-test": "messaging-system-status-msg",
5436
5454
  "data-message-id": t.id,
5437
5455
  "data-message-sender": t.sender,
@@ -5442,15 +5460,15 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5442
5460
  "data-issue-bucket": t.issue?.bucket,
5443
5461
  "data-streaming": t.id === W.value ? "true" : void 0,
5444
5462
  class: O(["mb-4 flex w-fit max-w-[85%] items-start gap-2 rounded-2xl px-3 py-2 text-[13px] leading-relaxed ring-1", Y.value ? "bg-theme-100 text-theme-600 ring-theme-200" : "bg-white/10 text-white/70 ring-white/10"])
5445
- }, [r[16] || (r[16] = C("i", {
5463
+ }, [r[17] || (r[17] = C("i", {
5446
5464
  class: "i-tabler-info-circle size-4 mt-0.5 shrink-0",
5447
5465
  "aria-hidden": "true"
5448
5466
  }, null, -1)), T(vi, {
5449
5467
  text: t.text,
5450
5468
  inverted: !Y.value,
5451
5469
  onClick: r[3] || (r[3] = ve(() => {}, ["stop"]))
5452
- }, null, 8, ["text", "inverted"])], 10, ua)) : (j(), S("div", {
5453
- key: 4,
5470
+ }, null, 8, ["text", "inverted"])], 10, da)) : (j(), S("div", {
5471
+ key: 5,
5454
5472
  "data-test": t.sender === "bot" ? "messaging-assistant-msg" : t.sender === "user" ? "messaging-user-msg" : void 0,
5455
5473
  "data-message-id": t.id,
5456
5474
  "data-message-sender": t.sender,
@@ -5470,8 +5488,17 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5470
5488
  "data-test": "messaging-message-body",
5471
5489
  class: O(t.sender === "user" ? "min-w-0 ml-3 @sm/chat:ml-[2em]" : "w-full min-w-0 pr-3 @sm/chat:pr-[2em]")
5472
5490
  }, [
5473
- blockAttachmentsForMessage(t).length ? (j(), S("div", {
5491
+ t.sender === "bot" && t.routine ? (j(), S("div", {
5474
5492
  key: 0,
5493
+ "data-test": "messaging-routine-label",
5494
+ "data-routine-run-id": t.routine.run.routineRunId,
5495
+ class: O(["mb-2 flex items-start gap-2 text-[13px] leading-relaxed", Y.value ? "text-theme-500" : "text-white/50"])
5496
+ }, [r[18] || (r[18] = C("i", {
5497
+ class: "i-tabler-clock size-4 mt-0.5 shrink-0",
5498
+ "aria-hidden": "true"
5499
+ }, null, -1)), C("span", null, z(e.bot.displayName.value || e.bot.name.value) + " ran " + z(t.routine.run.name || t.routine.run.sourceLabel || "a routine"), 1)], 10, pa)) : x("", !0),
5500
+ blockAttachmentsForMessage(t).length ? (j(), S("div", {
5501
+ key: 1,
5475
5502
  class: O(["mb-1 space-y-1", t.sender === "user" ? "flex flex-col items-end" : ""])
5476
5503
  }, [(j(!0), S(g, null, N(blockAttachmentsForMessage(t), ({ attachment: e, index: t }) => (j(), S(g, { key: attachmentKey(e, t) }, [e.type === "image" ? (j(), S("img", {
5477
5504
  key: 0,
@@ -5480,14 +5507,14 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5480
5507
  "data-test": "messaging-attachment",
5481
5508
  "data-attachment-placement": "block",
5482
5509
  class: "rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
5483
- }, null, 8, fa)) : e.type === "audio" ? (j(), S("audio", {
5510
+ }, null, 8, ma)) : e.type === "audio" ? (j(), S("audio", {
5484
5511
  key: 1,
5485
5512
  src: e.src,
5486
5513
  controls: "",
5487
5514
  "data-test": "messaging-attachment",
5488
5515
  "data-attachment-placement": "block",
5489
5516
  class: "max-w-full"
5490
- }, null, 8, pa)) : (j(), S("a", {
5517
+ }, null, 8, ha)) : (j(), S("a", {
5491
5518
  key: 2,
5492
5519
  href: e.src,
5493
5520
  target: "_blank",
@@ -5495,12 +5522,12 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5495
5522
  "data-test": "messaging-attachment",
5496
5523
  "data-attachment-placement": "block",
5497
5524
  class: O(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Y.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5498
- }, [r[17] || (r[17] = C("i", { class: "i-tabler-file size-3.5" }, null, -1)), w(" " + z(e.filename), 1)], 10, ma))], 64))), 128))], 2)) : x("", !0),
5525
+ }, [r[19] || (r[19] = C("i", { class: "i-tabler-file size-3.5" }, null, -1)), w(" " + z(e.filename), 1)], 10, ga))], 64))), 128))], 2)) : x("", !0),
5499
5526
  messageRenderParts(t).length ? (j(), S("div", {
5500
- key: 1,
5527
+ key: 2,
5501
5528
  "data-test": "messaging-message-content",
5502
5529
  class: O(t.sender === "user" ? Y.value ? "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : Y.value ? "text-theme-800" : "text-white/95")
5503
- }, [(j(!0), S(g, null, N(messageRenderParts(t), (e) => (j(), S(g, { key: e.key }, [e.kind === "text" && e.text ? (j(), S("div", ha, [T(vi, {
5530
+ }, [(j(!0), S(g, null, N(messageRenderParts(t), (e) => (j(), S(g, { key: e.key }, [e.kind === "text" && e.text ? (j(), S("div", _a, [T(vi, {
5504
5531
  text: e.text,
5505
5532
  inverted: t.sender === "user" || !Y.value,
5506
5533
  streaming: t.id === W.value,
@@ -5517,14 +5544,14 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5517
5544
  "data-test": "messaging-attachment",
5518
5545
  "data-attachment-placement": e.placement,
5519
5546
  class: "my-2 rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
5520
- }, null, 8, ga)) : e.kind === "attachment" && e.attachment.type === "audio" ? (j(), S("audio", {
5547
+ }, null, 8, va)) : e.kind === "attachment" && e.attachment.type === "audio" ? (j(), S("audio", {
5521
5548
  key: 2,
5522
5549
  src: e.attachment.src,
5523
5550
  controls: "",
5524
5551
  "data-test": "messaging-attachment",
5525
5552
  "data-attachment-placement": e.placement,
5526
5553
  class: "my-2 max-w-full"
5527
- }, null, 8, _a)) : e.kind === "attachment" ? (j(), S("a", {
5554
+ }, null, 8, ya)) : e.kind === "attachment" ? (j(), S("a", {
5528
5555
  key: 3,
5529
5556
  href: e.attachment.src,
5530
5557
  target: "_blank",
@@ -5532,9 +5559,9 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5532
5559
  "data-test": "messaging-attachment",
5533
5560
  "data-attachment-placement": e.placement,
5534
5561
  class: O(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", Y.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
5535
- }, [r[18] || (r[18] = C("i", { class: "i-tabler-file size-3.5" }, null, -1)), w(" " + z(e.attachment.filename), 1)], 10, va)) : x("", !0)], 64))), 128))], 2)) : x("", !0),
5562
+ }, [r[20] || (r[20] = C("i", { class: "i-tabler-file size-3.5" }, null, -1)), w(" " + z(e.attachment.filename), 1)], 10, ba)) : x("", !0)], 64))), 128))], 2)) : x("", !0),
5536
5563
  canCopyMessage(t) ? (j(), S("div", {
5537
- key: 2,
5564
+ key: 3,
5538
5565
  "data-test": "messaging-message-actions",
5539
5566
  "data-actions-reveal": t.id === qe.value ? "always" : "hover",
5540
5567
  class: O(["-ml-1 flex items-center gap-1 pt-1 transition-opacity", [Y.value ? "text-theme-300" : "text-white/35", t.id === qe.value ? "" : "opacity-0 group-hover/msg:opacity-100 focus-within:opacity-100 pointer-coarse:opacity-100"]])
@@ -5549,7 +5576,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5549
5576
  }, [C("i", {
5550
5577
  class: O(["size-3.5", Ge.value === t.id ? "i-tabler-check" : "i-tabler-copy"]),
5551
5578
  "aria-hidden": "true"
5552
- }, null, 2)], 10, ba), Je.value ? (j(), S("button", {
5579
+ }, null, 2)], 10, Sa), Je.value ? (j(), S("button", {
5553
5580
  key: 0,
5554
5581
  type: "button",
5555
5582
  "data-test": "messaging-message-report",
@@ -5557,12 +5584,12 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5557
5584
  "aria-label": "Report",
5558
5585
  class: O(["grid size-6 cursor-pointer place-items-center transition-colors", Y.value ? "hover:text-theme-800" : "hover:text-white"]),
5559
5586
  onClick: ve((n) => e.chatController?.reportMessage(t.id), ["stop"])
5560
- }, [...r[19] || (r[19] = [C("i", {
5587
+ }, [...r[21] || (r[21] = [C("i", {
5561
5588
  class: "i-tabler-flag size-3.5",
5562
5589
  "aria-hidden": "true"
5563
- }, null, -1)])], 10, xa)) : x("", !0)], 10, ya)) : x("", !0)
5564
- ], 2)], 10, da)),
5565
- t.id === Se.value ? (j(), S(g, { key: 5 }, [E.value.length ? (j(!0), S(g, { key: 0 }, N(E.value, (e) => (j(), S(g, { key: e.id }, [e.kind === "work" ? (j(), S("div", {
5590
+ }, null, -1)])], 10, Ca)) : x("", !0)], 10, xa)) : x("", !0)
5591
+ ], 2)], 10, fa)),
5592
+ t.id === Se.value ? (j(), S(g, { key: 6 }, [E.value.length ? (j(!0), S(g, { key: 0 }, N(E.value, (e) => (j(), S(g, { key: e.id }, [e.kind === "work" ? (j(), S("div", {
5566
5593
  key: 0,
5567
5594
  "data-test": "messaging-tool-activity",
5568
5595
  "data-journal-outcome": e.journal.outcome,
@@ -5570,7 +5597,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5570
5597
  }, [T($e, {
5571
5598
  model: e.journal,
5572
5599
  "is-light": Y.value
5573
- }, null, 8, ["model", "is-light"])], 8, Sa)) : e.kind === "text" && e.content ? (j(), S("div", {
5600
+ }, null, 8, ["model", "is-light"])], 8, wa)) : e.kind === "text" && e.content ? (j(), S("div", {
5574
5601
  key: 1,
5575
5602
  "data-test": "messaging-live-text-block",
5576
5603
  class: O(["mb-4", Y.value ? "text-theme-800" : "text-white/95"])
@@ -5589,7 +5616,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5589
5616
  "data-test": "messaging-tool-activity-tail",
5590
5617
  "aria-label": "Assistant is still working",
5591
5618
  class: O(["chat-live-enter mb-4 grid h-[17px] w-5 place-items-center", Y.value ? "text-theme-500" : "text-white/70"])
5592
- }, [...r[20] || (r[20] = [C("span", {
5619
+ }, [...r[22] || (r[22] = [C("span", {
5593
5620
  class: "chat-dots chat-dots--mini",
5594
5621
  "aria-hidden": "true"
5595
5622
  }, [
@@ -5604,7 +5631,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5604
5631
  }, [T($e, {
5605
5632
  model: ye.value,
5606
5633
  "is-light": Y.value
5607
- }, null, 8, ["model", "is-light"])], 8, Ca)) : x("", !0)], 64)) : x("", !0)
5634
+ }, null, 8, ["model", "is-light"])], 8, Ta)) : x("", !0)], 64)) : x("", !0)
5608
5635
  ], 64))), 128)),
5609
5636
  we.value ? (j(), S("div", {
5610
5637
  key: 1,
@@ -5613,7 +5640,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5613
5640
  role: "status",
5614
5641
  "aria-live": "polite",
5615
5642
  class: O(["chat-live-enter relative mb-4 flex h-[17px] items-center gap-2.5 pl-0.5 text-[13.5px] leading-snug", Y.value ? "text-theme-500" : "text-white/50"])
5616
- }, [r[21] || (r[21] = C("span", {
5643
+ }, [r[23] || (r[23] = C("span", {
5617
5644
  "data-test": "messaging-thinking-dots",
5618
5645
  class: "chat-dots shrink-0",
5619
5646
  "aria-hidden": "true"
@@ -5621,7 +5648,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5621
5648
  C("span"),
5622
5649
  C("span"),
5623
5650
  C("span")
5624
- ], -1)), le.value ? (j(), S("span", Ta, z(le.value), 1)) : (j(), S("span", Ea, "Thinking"))], 10, wa)) : x("", !0),
5651
+ ], -1)), le.value ? (j(), S("span", Da, z(le.value), 1)) : (j(), S("span", Oa, "Thinking"))], 10, Ea)) : x("", !0),
5625
5652
  H.value ? (j(), S("div", {
5626
5653
  key: 2,
5627
5654
  "data-test": "messaging-transient-issue",
@@ -5629,18 +5656,18 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5629
5656
  role: "alert",
5630
5657
  class: O(["chat-live-enter mb-4 flex items-start gap-2 px-2 text-[13px] leading-snug", Y.value ? "text-theme-600" : "text-white/60"])
5631
5658
  }, [
5632
- r[23] || (r[23] = C("i", {
5659
+ r[25] || (r[25] = C("i", {
5633
5660
  class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
5634
5661
  "aria-hidden": "true"
5635
5662
  }, null, -1)),
5636
- C("span", Oa, [C("span", ka, [w(z(H.value.message), 1), H.value.help ? (j(), S(g, { key: 0 }, [w(":")], 64)) : x("", !0)]), H.value.help ? (j(), S(g, { key: 0 }, [r[22] || (r[22] = w(z(" "), -1)), C("span", Aa, z(H.value.help), 1)], 64)) : x("", !0)]),
5663
+ C("span", Aa, [C("span", ja, [w(z(H.value.message), 1), H.value.help ? (j(), S(g, { key: 0 }, [w(":")], 64)) : x("", !0)]), H.value.help ? (j(), S(g, { key: 0 }, [r[24] || (r[24] = w(z(" "), -1)), C("span", Ma, z(H.value.help), 1)], 64)) : x("", !0)]),
5637
5664
  H.value.actionUrl && H.value.actionLabel ? (j(), S("a", {
5638
5665
  key: 0,
5639
5666
  href: H.value.actionUrl,
5640
5667
  class: "shrink-0 underline underline-offset-2",
5641
5668
  onClick: r[6] || (r[6] = ve(() => {}, ["stop"]))
5642
- }, z(H.value.actionLabel), 9, ja)) : x("", !0)
5643
- ], 10, Da)) : x("", !0)
5669
+ }, z(H.value.actionLabel), 9, Na)) : x("", !0)
5670
+ ], 10, ka)) : x("", !0)
5644
5671
  ], 2)]),
5645
5672
  _: 3
5646
5673
  }, 8, [
@@ -5664,7 +5691,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5664
5691
  role: "status",
5665
5692
  "aria-live": "polite",
5666
5693
  class: O(["py-3 text-center text-[14px]", Y.value ? "text-theme-500" : "text-white/70"])
5667
- }, z(ke.value), 11, Na)) : (j(), S(g, { key: 1 }, [
5694
+ }, z(ke.value), 11, Fa)) : (j(), S(g, { key: 1 }, [
5668
5695
  Me.value.length > 0 ? (j(), S("div", {
5669
5696
  key: 0,
5670
5697
  class: O(["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" : ""])
@@ -5676,13 +5703,13 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5676
5703
  src: e.src,
5677
5704
  alt: e.filename,
5678
5705
  class: O(["size-14 rounded-xl object-cover border", Y.value ? "border-black/10" : "border-white/20"])
5679
- }, null, 10, Pa)) : (j(), S("div", {
5706
+ }, null, 10, Ia)) : (j(), S("div", {
5680
5707
  key: 1,
5681
5708
  class: O(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", Y.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5682
- }, [r[24] || (r[24] = C("i", { class: "i-tabler-file size-4" }, null, -1)), C("span", Fa, z(e.filename), 1)], 2)), C("button", {
5709
+ }, [r[26] || (r[26] = C("i", { class: "i-tabler-file size-4" }, null, -1)), C("span", La, z(e.filename), 1)], 2)), C("button", {
5683
5710
  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",
5684
5711
  onClick: (e) => removeAttachment(t)
5685
- }, [...r[25] || (r[25] = [C("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Ia)]))), 128)), Ne.value ? (j(), S("div", La, [T(Ce, { class: "size-5" })])) : x("", !0)], 2)) : x("", !0),
5712
+ }, [...r[27] || (r[27] = [C("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Ra)]))), 128)), Ne.value ? (j(), S("div", za, [T(Ce, { class: "size-5" })])) : x("", !0)], 2)) : x("", !0),
5686
5713
  Ie.value ? (j(), S("input", {
5687
5714
  key: 1,
5688
5715
  ref_key: "fileInput",
@@ -5702,8 +5729,8 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5702
5729
  "data-test": "messaging-recording-state",
5703
5730
  class: O(["flex min-w-0 items-center gap-2 py-1", Y.value ? "text-theme-700" : "text-white/80"])
5704
5731
  }, [
5705
- r[26] || (r[26] = C("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5706
- C("span", Ba, z(et.value), 1),
5732
+ r[28] || (r[28] = C("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5733
+ C("span", Ha, z(et.value), 1),
5707
5734
  C("span", { class: O(["min-w-0 truncate text-sm", Y.value ? "text-theme-400" : "text-white/45"]) }, z(tt.value), 3)
5708
5735
  ], 2)) : ge((j(), S("textarea", {
5709
5736
  key: 0,
@@ -5726,7 +5753,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5726
5753
  },
5727
5754
  class: O(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", Y.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5728
5755
  onKeydown: handleKeydown
5729
- }, null, 42, za)), [[ue, je.value]]), C("div", Va, [
5756
+ }, null, 42, Va)), [[ue, je.value]]), C("div", Ua, [
5730
5757
  C("button", {
5731
5758
  class: O(["-ml-2 flex size-8 items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", [
5732
5759
  Ie.value ? "cursor-pointer" : "cursor-default",
@@ -5737,9 +5764,9 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5737
5764
  "aria-label": Ie.value ? "Attach file" : "File attachments unavailable",
5738
5765
  title: Ie.value ? "Attach file" : "File attachments unavailable",
5739
5766
  onClick: r[8] || (r[8] = (e) => Ie.value && triggerFileInput())
5740
- }, [Ne.value ? (j(), S("i", Ua)) : (j(), S("i", Wa)), C("span", Ga, z(Ie.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Ha),
5741
- r[30] || (r[30] = C("div", { class: "flex-1" }, null, -1)),
5742
- C("div", Ka, [
5767
+ }, [Ne.value ? (j(), S("i", Ga)) : (j(), S("i", Ka)), C("span", qa, z(Ie.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Wa),
5768
+ r[32] || (r[32] = C("div", { class: "flex-1" }, null, -1)),
5769
+ C("div", Ja, [
5743
5770
  Ze.value && !Qe.value && !K.value ? (j(), S("button", {
5744
5771
  key: 0,
5745
5772
  "data-test": "messaging-record-discard-btn",
@@ -5747,7 +5774,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5747
5774
  "aria-label": "Discard recording",
5748
5775
  title: "Discard recording",
5749
5776
  onClick: r[9] || (r[9] = (e) => finishRecording({ cancelled: !0 }))
5750
- }, [...r[27] || (r[27] = [C("i", {
5777
+ }, [...r[29] || (r[29] = [C("i", {
5751
5778
  class: "i-tabler-x size-[18px]",
5752
5779
  "aria-hidden": "true"
5753
5780
  }, null, -1)])], 2)) : x("", !0),
@@ -5762,7 +5789,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5762
5789
  onPointercancel: ve(onRecordPointerCancel, ["prevent"]),
5763
5790
  onClick: onRecordClick,
5764
5791
  onKeydown: r[10] || (r[10] = _e(ve((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
5765
- }, [C("i", { class: O([Ze.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), C("span", Ja, z(nt.value), 1)], 42, qa)) : x("", !0),
5792
+ }, [C("i", { class: O([Ze.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), C("span", Xa, z(nt.value), 1)], 42, Ya)) : x("", !0),
5766
5793
  ot.value ? (j(), S("button", {
5767
5794
  key: 2,
5768
5795
  "data-test": "messaging-voice-start-btn",
@@ -5771,7 +5798,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5771
5798
  "aria-label": ct.value,
5772
5799
  title: ct.value,
5773
5800
  onClick: r[11] || (r[11] = (e) => startVoiceConversation())
5774
- }, [C("span", Xa, [(j(), S(g, null, N([
5801
+ }, [C("span", Qa, [(j(), S(g, null, N([
5775
5802
  7,
5776
5803
  13,
5777
5804
  16,
@@ -5781,14 +5808,14 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5781
5808
  key: e,
5782
5809
  class: "w-[2px] rounded-full bg-current",
5783
5810
  style: k({ height: `${e}px` })
5784
- }, null, 4)), 64))]), r[28] || (r[28] = C("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, Ya)) : Ze.value ? x("", !0) : (j(), S(g, { key: 3 }, [He.value ? (j(), S("button", {
5811
+ }, null, 4)), 64))]), r[30] || (r[30] = C("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, Za)) : Ze.value ? x("", !0) : (j(), S(g, { key: 3 }, [He.value ? (j(), S("button", {
5785
5812
  key: 0,
5786
5813
  "data-test": "messaging-secondary-stop-btn",
5787
5814
  class: O(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", Y.value ? "bg-theme-100 text-theme-700 hover:bg-theme-200" : "bg-white/10 text-white/70 hover:bg-white/15"]),
5788
5815
  "aria-label": "Stop work",
5789
5816
  title: "Stop work",
5790
5817
  onClick: r[12] || (r[12] = (t) => e.chatController?.stopChatTurn())
5791
- }, [...r[29] || (r[29] = [C("i", {
5818
+ }, [...r[31] || (r[31] = [C("i", {
5792
5819
  class: "i-tabler-player-stop-filled size-3.5",
5793
5820
  "aria-hidden": "true"
5794
5821
  }, null, -1), C("span", { class: "sr-only" }, "Stop work", -1)])], 2)) : x("", !0), C("button", {
@@ -5799,23 +5826,23 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5799
5826
  "aria-label": Ye.value,
5800
5827
  title: Ye.value,
5801
5828
  onClick: r[13] || (r[13] = (e) => handleComposerAction())
5802
- }, [Be.value === "stop" ? (j(), S("i", Qa)) : (j(), S("i", $a)), C("span", eo, z(Ye.value), 1)], 10, Za)], 64))
5829
+ }, [Be.value === "stop" ? (j(), S("i", eo)) : (j(), S("i", to)), C("span", no, z(Ye.value), 1)], 10, $a)], 64))
5803
5830
  ])
5804
- ])], 10, Ra),
5805
- e.centered && B.value.length > 0 ? (j(), S("p", to, z(e.bot.displayName.value) + " is AI and can make mistakes. ", 1)) : x("", !0)
5806
- ], 64))], !0)], 10, Ma)
5831
+ ])], 10, Ba),
5832
+ e.centered && B.value.length > 0 ? (j(), S("p", ro, z(e.bot.displayName.value) + " is AI and can make mistakes. ", 1)) : x("", !0)
5833
+ ], 64))], !0)], 10, Pa)
5807
5834
  ], 2));
5808
5835
  }
5809
- }), [["__scopeId", "data-v-5450b422"]]), ro = { class: "bot-wrap" }, io = {
5836
+ }), [["__scopeId", "data-v-8c29628e"]]), ao = { class: "bot-wrap" }, oo = {
5810
5837
  key: 0,
5811
5838
  class: "flex items-center justify-center h-full"
5812
- }, ao = {
5839
+ }, so = {
5813
5840
  key: 2,
5814
5841
  class: "flex h-full flex-col items-center justify-center gap-4 px-6 text-center",
5815
5842
  role: "status",
5816
5843
  "aria-live": "polite",
5817
5844
  "data-test": "bot-unavailable"
5818
- }, oo = /* @__PURE__ */ E({
5845
+ }, co = /* @__PURE__ */ E({
5819
5846
  __name: "BotWrap",
5820
5847
  props: {
5821
5848
  sdk: {},
@@ -5911,7 +5938,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5911
5938
  });
5912
5939
  }
5913
5940
  }
5914
- return ae(loadBot), (t, n) => (j(), S("div", ro, [a.value ? (j(), S("div", io, [C("div", { class: O(["size-6 animate-spin rounded-full border-b-2", r.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : s.value ? se(t.$slots, "default", {
5941
+ return ae(loadBot), (t, n) => (j(), S("div", ao, [a.value ? (j(), S("div", oo, [C("div", { class: O(["size-6 animate-spin rounded-full border-b-2", r.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : s.value ? se(t.$slots, "default", {
5915
5942
  sdk: B(i),
5916
5943
  bot: s.value,
5917
5944
  context: e.clientContext ?? e.context,
@@ -5919,7 +5946,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5919
5946
  buttonText: e.buttonText,
5920
5947
  buttonIcon: e.buttonIcon,
5921
5948
  loading: a.value
5922
- }, void 0, void 0, 1) : c.value ? (j(), S("div", ao, [n[0] || (n[0] = C("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), C("button", {
5949
+ }, void 0, void 0, 1) : c.value ? (j(), S("div", so, [n[0] || (n[0] = C("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), C("button", {
5923
5950
  type: "button",
5924
5951
  class: "min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700",
5925
5952
  "data-test": "bot-unavailable-retry",
@@ -5928,6 +5955,6 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5928
5955
  }
5929
5956
  });
5930
5957
  //#endregion
5931
- export { ze as a, Oe as c, parseButtonTemplate as d, BotChatController as f, vi as i, getBotAvatarUrl as l, ye as m, no as n, Me as o, Ce as p, Yi as r, Ae as s, oo as t, handleImageError as u };
5958
+ export { ze as a, Oe as c, parseButtonTemplate as d, BotChatController as f, vi as i, getBotAvatarUrl as l, ye as m, io as n, Me as o, Ce as p, Yi as r, Ae as s, co as t, handleImageError as u };
5932
5959
 
5933
5960
  //# sourceMappingURL=BotWrap.js.map