@pagelines/sdk 1.0.865 → 1.0.866

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/AgentWrap.js CHANGED
@@ -4922,7 +4922,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
4922
4922
  "data-issue-action-label",
4923
4923
  "data-issue-action-url",
4924
4924
  "data-streaming"
4925
- ], na = { class: "max-w-[85%] min-w-0" }, ra = ["href"], ia = [
4925
+ ], na = { class: "flex items-center gap-3" }, ra = ["href"], ia = [
4926
4926
  "data-message-id",
4927
4927
  "data-message-sender",
4928
4928
  "data-conversation-id",
@@ -4954,42 +4954,45 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
4954
4954
  }, _a = {
4955
4955
  key: 1,
4956
4956
  class: "sr-only"
4957
- }, va = ["data-issue-code"], ya = ["href"], ba = ["inert", "aria-hidden"], xa = ["data-seat-state"], Sa = ["src", "alt"], Ca = { class: "max-w-20 truncate" }, wa = ["onClick"], Ta = {
4957
+ }, va = ["data-issue-code"], ya = { class: "min-w-0 flex-1" }, ba = {
4958
+ "data-test": "messaging-transient-issue-title",
4959
+ class: "font-medium"
4960
+ }, xa = { "data-test": "messaging-transient-issue-help" }, Sa = ["href"], Ca = ["inert", "aria-hidden"], wa = ["data-seat-state"], Ta = ["src", "alt"], Ea = { class: "max-w-20 truncate" }, Da = ["onClick"], Oa = {
4958
4961
  key: 0,
4959
4962
  class: "shrink-0 flex items-center justify-center size-14"
4960
- }, Ea = ["data-composer-action"], Da = ["placeholder", "disabled"], Oa = { class: "font-mono text-sm tabular-nums" }, ka = { class: "mt-2.5 flex items-center" }, Aa = [
4963
+ }, ka = ["data-composer-action"], Aa = ["placeholder", "disabled"], ja = { class: "font-mono text-sm tabular-nums" }, Ma = { class: "mt-2.5 flex items-center" }, Na = [
4961
4964
  "disabled",
4962
4965
  "aria-label",
4963
4966
  "title"
4964
- ], ja = {
4967
+ ], Pa = {
4965
4968
  key: 0,
4966
4969
  class: "i-svg-spinners-ring-resize size-5"
4967
- }, Ma = {
4970
+ }, Fa = {
4968
4971
  key: 1,
4969
4972
  class: "i-tabler-plus size-5"
4970
- }, Na = { class: "sr-only" }, Pa = { class: "flex items-center gap-2" }, Fa = ["aria-label", "title"], Ia = { class: "sr-only" }, La = [
4973
+ }, Ia = { class: "sr-only" }, La = { class: "flex items-center gap-2" }, Ra = ["aria-label", "title"], za = { class: "sr-only" }, Ba = [
4971
4974
  "disabled",
4972
4975
  "aria-label",
4973
4976
  "title"
4974
- ], Ra = {
4977
+ ], Va = {
4975
4978
  class: "flex h-4 items-center gap-[2px]",
4976
4979
  "aria-hidden": "true"
4977
- }, za = [
4980
+ }, Ha = [
4978
4981
  "data-composer-action",
4979
4982
  "disabled",
4980
4983
  "aria-label",
4981
4984
  "title"
4982
- ], Ba = {
4985
+ ], Ua = {
4983
4986
  key: 0,
4984
4987
  class: "i-tabler-player-stop-filled size-3.5"
4985
- }, Va = {
4988
+ }, Wa = {
4986
4989
  key: 1,
4987
4990
  class: "i-tabler-arrow-up size-[17px]"
4988
- }, Ha = { class: "sr-only" }, Ua = {
4991
+ }, Ga = { class: "sr-only" }, Ka = {
4989
4992
  key: 2,
4990
4993
  "data-test": "messaging-ai-notice",
4991
4994
  class: "mx-auto max-w-[640px] @5xl/chat:max-w-[720px] pt-3 text-center text-[11.5px] leading-none text-theme-300"
4992
- }, Wa = /*@__PURE__*/ k({
4995
+ }, qa = /*@__PURE__*/ k({
4993
4996
  __name: "ElAgentChat",
4994
4997
  props: {
4995
4998
  chatController: {},
@@ -5123,7 +5126,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5123
5126
  }), q = v(() => !f.value || ae.value || oe.value || m.value.length ? !1 : ve.value === void 0), ye = v(() => !!ae.value || q.value), be = v(() => s.value?.sendBlockedReason), Se = v(() => be.value === "agent_deleted"), Ce = v(() => p.value ? "Connecting..." : be.value === "agent_deleted" ? "This assistant was deleted" : "Send a message"), we = v(() => c(e.agent.state.value)), Te = v(() => {
5124
5127
  if (qe.value || !we.value || we.value === "awake") return;
5125
5128
  let t = e.agent.displayName.value || e.agent.name.value || "Your assistant";
5126
- return we.value === "changing" ? `${t} will be right back…` : `${t} is ${a[we.value].toLowerCase()}.`;
5129
+ return we.value === "changing" ? `${t} will be right back…` : we.value === "stuck" ? `${t} needs attention.` : `${t} is ${a[we.value].toLowerCase()}.`;
5127
5130
  }), Ee = v(() => e.chatController?.composerState?.value ?? {
5128
5131
  text: "",
5129
5132
  pendingAttachments: [],
@@ -5335,7 +5338,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5335
5338
  model: messageWorkJournal(e),
5336
5339
  "is-light": J.value
5337
5340
  }, null, 8, ["model", "is-light"])], 8, ea)) : b("", !0),
5338
- isSystemExplainerMessage(e) ? (F(), x("div", {
5341
+ isSystemExplainerMessage(e) ? (F(), x("section", {
5339
5342
  key: 2,
5340
5343
  "data-test": "messaging-system-msg",
5341
5344
  "data-message-id": e.id,
@@ -5348,29 +5351,41 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5348
5351
  "data-issue-action-label": e.issue?.actionLabel,
5349
5352
  "data-issue-action-url": e.issue?.actionUrl,
5350
5353
  "data-streaming": e.id === ve.value ? "true" : void 0,
5351
- class: "flex gap-2 items-end justify-start mb-4"
5352
- }, [S("div", na, [S("div", { class: j(["mb-1 pl-1 text-[11px] font-medium", J.value ? "text-theme-500" : "text-white/45"]) }, " System Message ", 2), S("div", { class: j(["pl-1", J.value ? "text-theme-700" : "text-white/85"]) }, [e.text ? (F(), te(fi, {
5353
- key: 0,
5354
- text: e.text,
5355
- inverted: !J.value,
5356
- streaming: e.id === ve.value,
5357
- onClick: a[1] || (a[1] = W(() => {}, ["stop"])),
5358
- onAction: handleCardAction
5359
- }, null, 8, [
5360
- "text",
5361
- "inverted",
5362
- "streaming"
5363
- ])) : e.issue?.help ? (F(), te(fi, {
5364
- key: 1,
5365
- text: e.issue.help,
5366
- inverted: !J.value
5367
- }, null, 8, ["text", "inverted"])) : b("", !0), e.issue?.actionUrl && !containsMarkdownLink(e.text) ? (F(), x("a", {
5368
- key: 2,
5369
- href: e.issue.actionUrl,
5370
- "data-test": "messaging-system-msg-action",
5371
- class: j(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", J.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
5372
- onClick: a[2] || (a[2] = W(() => {}, ["stop"]))
5373
- }, [C(U(e.issue.actionLabel) + " ", 1), a[15] || (a[15] = S("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, ra)) : b("", !0)], 2)])], 8, ta)) : e.sender === "system" ? (F(), x("div", {
5354
+ class: "mb-6 w-full"
5355
+ }, [S("div", { class: j(["mb-1.5 text-center text-[10.5px] font-medium", X.value]) }, "System message", 2), S("div", na, [
5356
+ S("span", {
5357
+ "data-test": "messaging-system-divider-line",
5358
+ "aria-hidden": "true",
5359
+ class: j(["hidden h-px flex-1 opacity-60 @md/chat:block", rt.value])
5360
+ }, null, 2),
5361
+ S("div", { class: j(["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]", J.value ? "text-theme-700 ring-theme-200/50" : "text-white/85 ring-white/10"]) }, [e.text ? (F(), te(fi, {
5362
+ key: 0,
5363
+ text: e.text,
5364
+ inverted: !J.value,
5365
+ streaming: e.id === ve.value,
5366
+ onClick: a[1] || (a[1] = W(() => {}, ["stop"])),
5367
+ onAction: handleCardAction
5368
+ }, null, 8, [
5369
+ "text",
5370
+ "inverted",
5371
+ "streaming"
5372
+ ])) : e.issue?.help ? (F(), te(fi, {
5373
+ key: 1,
5374
+ text: e.issue.help,
5375
+ inverted: !J.value
5376
+ }, null, 8, ["text", "inverted"])) : b("", !0), e.issue?.actionUrl && !containsMarkdownLink(e.text) ? (F(), x("a", {
5377
+ key: 2,
5378
+ href: e.issue.actionUrl,
5379
+ "data-test": "messaging-system-msg-action",
5380
+ class: j(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", J.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
5381
+ onClick: a[2] || (a[2] = W(() => {}, ["stop"]))
5382
+ }, [C(U(e.issue.actionLabel) + " ", 1), a[15] || (a[15] = S("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, ra)) : b("", !0)], 2),
5383
+ S("span", {
5384
+ "data-test": "messaging-system-divider-line",
5385
+ "aria-hidden": "true",
5386
+ class: j(["hidden h-px flex-1 opacity-60 @md/chat:block", rt.value])
5387
+ }, null, 2)
5388
+ ])], 8, ta)) : e.sender === "system" ? (F(), x("div", {
5374
5389
  key: 3,
5375
5390
  "data-test": "messaging-system-status-msg",
5376
5391
  "data-message-id": e.id,
@@ -5535,19 +5550,20 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5535
5550
  key: 2,
5536
5551
  "data-test": "messaging-transient-issue",
5537
5552
  "data-issue-code": K.value.code,
5538
- class: j(["chat-live-enter flex items-center gap-1.5 pl-2 pr-3 pb-1 mb-3 text-[12px] leading-snug", J.value ? "text-theme-600" : "text-white/60"])
5553
+ role: "alert",
5554
+ class: j(["chat-live-enter mb-4 flex items-start gap-2 px-2 text-[13px] leading-snug", J.value ? "text-theme-600" : "text-white/60"])
5539
5555
  }, [
5540
- a[21] || (a[21] = S("i", {
5556
+ a[22] || (a[22] = S("i", {
5541
5557
  class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
5542
5558
  "aria-hidden": "true"
5543
5559
  }, null, -1)),
5544
- S("span", null, [C(U(K.value.message), 1), K.value.help ? (F(), x(h, { key: 0 }, [C(U(K.value.help), 1)], 64)) : b("", !0)]),
5560
+ S("span", ya, [S("span", ba, [C(U(K.value.message), 1), K.value.help ? (F(), x(h, { key: 0 }, [C(":")], 64)) : b("", !0)]), K.value.help ? (F(), x(h, { key: 0 }, [a[21] || (a[21] = C(U(" "), -1)), S("span", xa, U(K.value.help), 1)], 64)) : b("", !0)]),
5545
5561
  K.value.actionUrl && K.value.actionLabel ? (F(), x("a", {
5546
5562
  key: 0,
5547
5563
  href: K.value.actionUrl,
5548
5564
  class: "shrink-0 underline underline-offset-2",
5549
5565
  onClick: a[6] || (a[6] = W(() => {}, ["stop"]))
5550
- }, U(K.value.actionLabel), 9, ya)) : b("", !0)
5566
+ }, U(K.value.actionLabel), 9, Sa)) : b("", !0)
5551
5567
  ], 10, va)) : b("", !0)
5552
5568
  ], 2)]),
5553
5569
  _: 3
@@ -5572,7 +5588,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5572
5588
  role: "status",
5573
5589
  "aria-live": "polite",
5574
5590
  class: j(["py-3 text-center text-[14px]", J.value ? "text-theme-500" : "text-white/70"])
5575
- }, U(Te.value), 11, xa)) : (F(), x(h, { key: 1 }, [
5591
+ }, U(Te.value), 11, wa)) : (F(), x(h, { key: 1 }, [
5576
5592
  Oe.value.length > 0 ? (F(), x("div", {
5577
5593
  key: 0,
5578
5594
  class: j(["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" : ""])
@@ -5584,13 +5600,13 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5584
5600
  src: e.src,
5585
5601
  alt: e.filename,
5586
5602
  class: j(["size-14 rounded-xl object-cover border", J.value ? "border-black/10" : "border-white/20"])
5587
- }, null, 10, Sa)) : (F(), x("div", {
5603
+ }, null, 10, Ta)) : (F(), x("div", {
5588
5604
  key: 1,
5589
5605
  class: j(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", J.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5590
- }, [a[22] || (a[22] = S("i", { class: "i-tabler-file size-4" }, null, -1)), S("span", Ca, U(e.filename), 1)], 2)), S("button", {
5606
+ }, [a[23] || (a[23] = S("i", { class: "i-tabler-file size-4" }, null, -1)), S("span", Ea, U(e.filename), 1)], 2)), S("button", {
5591
5607
  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",
5592
5608
  onClick: (e) => removeAttachment(t)
5593
- }, [...a[23] || (a[23] = [S("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, wa)]))), 128)), ke.value ? (F(), x("div", Ta, [T(_e, { class: "size-5" })])) : b("", !0)], 2)) : b("", !0),
5609
+ }, [...a[24] || (a[24] = [S("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Da)]))), 128)), ke.value ? (F(), x("div", Oa, [T(_e, { class: "size-5" })])) : b("", !0)], 2)) : b("", !0),
5594
5610
  Me.value ? (F(), x("input", {
5595
5611
  key: 1,
5596
5612
  ref_key: "fileInput",
@@ -5610,8 +5626,8 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5610
5626
  "data-test": "messaging-recording-state",
5611
5627
  class: j(["flex min-w-0 items-center gap-2 py-1", J.value ? "text-theme-700" : "text-white/80"])
5612
5628
  }, [
5613
- a[24] || (a[24] = S("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5614
- S("span", Oa, U(Ue.value), 1),
5629
+ a[25] || (a[25] = S("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
5630
+ S("span", ja, U(Ue.value), 1),
5615
5631
  S("span", { class: j(["min-w-0 truncate text-sm", J.value ? "text-theme-400" : "text-white/45"]) }, U(Ge.value), 3)
5616
5632
  ], 2)) : de((F(), x("textarea", {
5617
5633
  key: 0,
@@ -5634,7 +5650,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5634
5650
  },
5635
5651
  class: j(["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", J.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
5636
5652
  onKeydown: handleKeydown
5637
- }, null, 42, Da)), [[se, De.value]]), S("div", ka, [
5653
+ }, null, 42, Aa)), [[se, De.value]]), S("div", Ma, [
5638
5654
  S("button", {
5639
5655
  class: j(["-ml-2 flex size-8 items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11", [
5640
5656
  Me.value ? "cursor-pointer" : "cursor-default",
@@ -5645,9 +5661,9 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5645
5661
  "aria-label": Me.value ? "Attach file" : "File attachments unavailable",
5646
5662
  title: Me.value ? "Attach file" : "File attachments unavailable",
5647
5663
  onClick: a[8] || (a[8] = (e) => Me.value && triggerFileInput())
5648
- }, [ke.value ? (F(), x("i", ja)) : (F(), x("i", Ma)), S("span", Na, U(Me.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Aa),
5649
- a[28] || (a[28] = S("div", { class: "flex-1" }, null, -1)),
5650
- S("div", Pa, [
5664
+ }, [ke.value ? (F(), x("i", Pa)) : (F(), x("i", Fa)), S("span", Ia, U(Me.value ? "Attach file" : "File attachments unavailable"), 1)], 10, Na),
5665
+ a[29] || (a[29] = S("div", { class: "flex-1" }, null, -1)),
5666
+ S("div", La, [
5651
5667
  Ve.value && !He.value && !qe.value ? (F(), x("button", {
5652
5668
  key: 0,
5653
5669
  "data-test": "messaging-record-discard-btn",
@@ -5655,7 +5671,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5655
5671
  "aria-label": "Discard recording",
5656
5672
  title: "Discard recording",
5657
5673
  onClick: a[9] || (a[9] = (e) => finishRecording({ cancelled: !0 }))
5658
- }, [...a[25] || (a[25] = [S("i", {
5674
+ }, [...a[26] || (a[26] = [S("i", {
5659
5675
  class: "i-tabler-x size-[18px]",
5660
5676
  "aria-hidden": "true"
5661
5677
  }, null, -1)])], 2)) : b("", !0),
@@ -5670,7 +5686,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5670
5686
  onPointercancel: W(onRecordPointerCancel, ["prevent"]),
5671
5687
  onClick: onRecordClick,
5672
5688
  onKeydown: a[10] || (a[10] = pe(W((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
5673
- }, [S("i", { class: j([Ve.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), S("span", Ia, U(Ke.value), 1)], 42, Fa)) : b("", !0),
5689
+ }, [S("i", { class: j([Ve.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), S("span", za, U(Ke.value), 1)], 42, Ra)) : b("", !0),
5674
5690
  et.value ? (F(), x("button", {
5675
5691
  key: 2,
5676
5692
  "data-test": "messaging-voice-start-btn",
@@ -5679,7 +5695,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5679
5695
  "aria-label": nt.value,
5680
5696
  title: nt.value,
5681
5697
  onClick: a[11] || (a[11] = (e) => startVoiceConversation())
5682
- }, [S("span", Ra, [(F(), x(h, null, R([
5698
+ }, [S("span", Va, [(F(), x(h, null, R([
5683
5699
  7,
5684
5700
  13,
5685
5701
  16,
@@ -5689,14 +5705,14 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5689
5705
  key: e,
5690
5706
  class: "w-[2px] rounded-full bg-current",
5691
5707
  style: M({ height: `${e}px` })
5692
- }, null, 4)), 64))]), a[26] || (a[26] = S("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, La)) : Ve.value ? b("", !0) : (F(), x(h, { key: 3 }, [Ie.value ? (F(), x("button", {
5708
+ }, null, 4)), 64))]), a[27] || (a[27] = S("span", { class: "sr-only" }, "Start voice conversation", -1))], 10, Ba)) : Ve.value ? b("", !0) : (F(), x(h, { key: 3 }, [Ie.value ? (F(), x("button", {
5693
5709
  key: 0,
5694
5710
  "data-test": "messaging-secondary-stop-btn",
5695
5711
  class: j(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11", J.value ? "bg-theme-100 text-theme-700 hover:bg-theme-200" : "bg-white/10 text-white/70 hover:bg-white/15"]),
5696
5712
  "aria-label": "Stop work",
5697
5713
  title: "Stop work",
5698
5714
  onClick: a[12] || (a[12] = (t) => e.chatController?.stopChatTurn())
5699
- }, [...a[27] || (a[27] = [S("i", {
5715
+ }, [...a[28] || (a[28] = [S("i", {
5700
5716
  class: "i-tabler-player-stop-filled size-3.5",
5701
5717
  "aria-hidden": "true"
5702
5718
  }, null, -1), S("span", { class: "sr-only" }, "Stop work", -1)])], 2)) : b("", !0), S("button", {
@@ -5707,27 +5723,27 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5707
5723
  "aria-label": Re.value,
5708
5724
  title: Re.value,
5709
5725
  onClick: a[13] || (a[13] = (e) => handleComposerAction())
5710
- }, [Pe.value === "stop" ? (F(), x("i", Ba)) : (F(), x("i", Va)), S("span", Ha, U(Re.value), 1)], 10, za)], 64))
5726
+ }, [Pe.value === "stop" ? (F(), x("i", Ua)) : (F(), x("i", Wa)), S("span", Ga, U(Re.value), 1)], 10, Ha)], 64))
5711
5727
  ])
5712
- ])], 10, Ea),
5713
- e.centered && B.value.length > 0 ? (F(), x("p", Ua, U(e.agent.displayName.value) + " is AI and can make mistakes. ", 1)) : b("", !0)
5714
- ], 64))], !0)], 10, ba)
5728
+ ])], 10, ka),
5729
+ e.centered && B.value.length > 0 ? (F(), x("p", Ka, U(e.agent.displayName.value) + " is AI and can make mistakes. ", 1)) : b("", !0)
5730
+ ], 64))], !0)], 10, Ca)
5715
5731
  ], 2));
5716
5732
  }
5717
- }), Ga = /* @__PURE__ */ e((e, t) => {
5733
+ }), Ja = /* @__PURE__ */ e((e, t) => {
5718
5734
  let n = e.__vccOpts || e;
5719
5735
  for (let [e, r] of t) n[e] = r;
5720
5736
  return n;
5721
- }, "default"), Ka = /*#__PURE__*/ Ga(Wa, [["__scopeId", "data-v-939949a8"]]), qa = { class: "agent-wrap" }, Ja = {
5737
+ }, "default"), Ya = /*#__PURE__*/ Ja(qa, [["__scopeId", "data-v-0122d7a1"]]), Xa = { class: "agent-wrap" }, Za = {
5722
5738
  key: 0,
5723
5739
  class: "flex items-center justify-center h-full"
5724
- }, Ya = {
5740
+ }, Qa = {
5725
5741
  key: 2,
5726
5742
  class: "flex h-full flex-col items-center justify-center gap-4 px-6 text-center",
5727
5743
  role: "status",
5728
5744
  "aria-live": "polite",
5729
5745
  "data-test": "agent-unavailable"
5730
- }, Xa = /* @__PURE__ */ k({
5746
+ }, $a = /* @__PURE__ */ k({
5731
5747
  __name: "AgentWrap",
5732
5748
  props: {
5733
5749
  sdk: {},
@@ -5823,7 +5839,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5823
5839
  });
5824
5840
  }
5825
5841
  }
5826
- return ne(loadAgent), (t, n) => (F(), x("div", qa, [o.value ? (F(), x("div", Ja, [S("div", { class: j(["size-6 animate-spin rounded-full border-b-2", i.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : c.value ? ie(t.$slots, "default", {
5842
+ return ne(loadAgent), (t, n) => (F(), x("div", Xa, [o.value ? (F(), x("div", Za, [S("div", { class: j(["size-6 animate-spin rounded-full border-b-2", i.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : c.value ? ie(t.$slots, "default", {
5827
5843
  sdk: ae(a),
5828
5844
  agent: c.value,
5829
5845
  context: e.clientContext ?? e.context,
@@ -5831,7 +5847,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5831
5847
  buttonText: e.buttonText,
5832
5848
  buttonIcon: e.buttonIcon,
5833
5849
  loading: o.value
5834
- }, void 0, void 0, 1) : u.value ? (F(), x("div", Ya, [n[0] || (n[0] = S("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), S("button", {
5850
+ }, void 0, void 0, 1) : u.value ? (F(), x("div", Qa, [n[0] || (n[0] = S("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), S("button", {
5835
5851
  type: "button",
5836
5852
  class: "min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700",
5837
5853
  "data-test": "agent-unavailable-retry",
@@ -5840,6 +5856,6 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
5840
5856
  }
5841
5857
  });
5842
5858
  //#endregion
5843
- export { fi as a, je as c, handleImageError as d, parseButtonTemplate as f, _e as g, r as h, Ui as i, ke as l, K as m, Ka as n, ze as o, AgentChatController as p, Ga as r, Ne as s, Xa as t, getAgentAvatarUrl as u };
5859
+ export { fi as a, je as c, handleImageError as d, parseButtonTemplate as f, _e as g, r as h, Ui as i, ke as l, K as m, Ya as n, ze as o, AgentChatController as p, Ja as r, Ne as s, $a as t, getAgentAvatarUrl as u };
5844
5860
 
5845
5861
  //# sourceMappingURL=AgentWrap.js.map