@8wave/ai-elements 0.121.0-beta.56 → 0.121.0-beta.58

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-vue/index.js CHANGED
@@ -20107,10 +20107,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
20107
20107
  }, CD = { class: "p-8 flex flex-col" }, wD = { class: "flex flex-col ml-12 gap-2" }, TD = { class: "text-12 text-word-3" }, ED = { class: "mb-md" }, DD = { class: "flex items-center gap-xs mb-2" }, OD = ["for"], kD = { class: "relative cursor-help text-word-3" }, AD = { class: "mb-md" }, jD = { class: "flex items-center gap-xs mb-2" }, MD = ["for"], ND = { class: "relative cursor-help text-word-3" }, PD = { class: "text-12 text-word-3 mt-xs leading-normal" }, FD = { class: "flex flex-col ml-12 gap-2" }, ID = { class: "text-12 text-word-3" }, LD = { class: "mb-md" }, RD = { class: "flex items-center gap-xs mb-2" }, zD = ["for"], BD = { class: "relative cursor-help text-word-3" }, VD = { class: "mb-md" }, HD = { class: "flex items-center gap-xs mb-2" }, UD = ["for"], WD = { class: "relative cursor-help text-word-3" }, GD = { class: "flex flex-col ml-12 gap-2" }, KD = { class: "text-12 text-word-3" }, qD = { class: "flex flex-col ml-12 gap-2" }, JD = { class: "text-12 text-word-3" }, YD = { class: "flex flex-col ml-12 gap-2" }, XD = { class: "text-12 text-word-3" }, ZD = { class: "flex items-end gap-sm mt-md" }, QD = { class: "flex flex-col gap-2 min-w-0" }, $D = { class: "truncate" }, eO = {
20108
20108
  key: 0,
20109
20109
  class: "text-12 text-word-3 truncate"
20110
- }, tO = { class: "p-8 flex flex-col" }, nO = { class: "flex flex-col ml-12 gap-2" }, rO = { class: "text-12 text-word-3" }, iO = { class: "flex gap-sm mt-md" }, aO = { class: "text-12 text-word-3 mt-8 mb-md px-8" }, oO = { class: "p-8 flex flex-col" }, sO = { class: "grid sm:grid-cols-2 gap-md items-start" }, cO = { class: "flex flex-col gap-md" }, lO = { class: "text-12 text-word-3 mb-sm" }, uO = { class: "flex items-center gap-4" }, dO = { class: "text-12 text-word-3 mb-xs" }, fO = { class: "flex flex-col nx-md nb-md" }, pO = { class: "flex flex-col ml-12 gap-2" }, mO = { class: "flex items-center gap-8" }, hO = { class: "font-semibold" }, gO = { class: "text-12 text-word-3" }, _O = ["title"], vO = { class: "p-xs flex flex-col" }, yO = {
20110
+ }, tO = { class: "p-8 flex flex-col" }, nO = { class: "flex flex-col ml-12 gap-2" }, rO = { class: "text-12 text-word-3" }, iO = { class: "flex gap-sm mt-md" }, aO = { class: "text-12 text-word-3 mt-8 mb-md px-8" }, oO = { class: "p-8 flex flex-col" }, sO = ["aria-label", "onClick"], cO = { class: "grid sm:grid-cols-2 gap-md items-start" }, lO = { class: "flex flex-col gap-md" }, uO = { class: "text-12 text-word-3 mb-sm" }, dO = { class: "flex items-center gap-4" }, fO = { class: "text-12 text-word-3 mb-xs" }, pO = { class: "flex flex-col nx-md nb-md" }, mO = { class: "flex flex-col ml-12 gap-2" }, hO = { class: "flex items-center gap-8" }, gO = { class: "font-semibold" }, _O = { class: "text-12 text-word-3" }, vO = ["title"], yO = { class: "p-xs flex flex-col" }, bO = {
20111
20111
  key: 0,
20112
20112
  class: "flex gap-md items-start"
20113
- }, bO = { class: "flex flex-col gap-md" }, xO = { class: "font-semibold mb-xs" }, SO = { class: "text-smaller" }, CO = { key: 2 }, wO = { class: "p-8 flex flex-col" }, TO = { class: "font-semibold mb-xs" }, EO = { class: "text-smaller" }, DO = { class: "font-semibold mb-xs" }, OO = { class: "text-smaller" }, kO = { class: "block text-12 text-word-2 break-all p-12 font-mono" }, AO = { class: "flex flex-col gap-md" }, jO = { class: "text-12 text-word-3 mb-xs" }, MO = { class: "grid sm:grid-cols-2 gap-md" }, NO = { class: "text-12 text-word-3 mb-md" }, PO = /* @__PURE__ */ L({
20113
+ }, xO = { class: "flex flex-col gap-md" }, SO = { class: "font-semibold mb-xs" }, CO = { class: "text-smaller" }, wO = { key: 2 }, TO = { class: "p-8 flex flex-col" }, EO = { class: "font-semibold mb-xs" }, DO = { class: "text-smaller" }, OO = { class: "font-semibold mb-xs" }, kO = { class: "text-smaller" }, AO = { class: "block text-12 text-word-2 break-all p-12 font-mono" }, jO = { class: "flex flex-col gap-md" }, MO = { class: "text-12 text-word-3 mb-xs" }, NO = { class: "grid sm:grid-cols-2 gap-md" }, PO = { class: "text-12 text-word-3 mb-md" }, FO = /* @__PURE__ */ L({
20114
20114
  __name: "PkAgentSettingsPanel",
20115
20115
  props: /*@__PURE__*/ qr({
20116
20116
  organizationSlug: {},
@@ -20473,7 +20473,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
20473
20473
  "image/gif",
20474
20474
  "image/webp"
20475
20475
  ],
20476
- documents: ["application/pdf"],
20476
+ pdf: ["application/pdf"],
20477
20477
  text: [
20478
20478
  "text/plain",
20479
20479
  "text/markdown",
@@ -20486,30 +20486,44 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
20486
20486
  }, on = A(() => [
20487
20487
  {
20488
20488
  label: r("label.mimeTypeImages"),
20489
+ description: r("hint.mimeTypeImages"),
20490
+ icon: "ri:image-2-line",
20489
20491
  value: "images"
20490
20492
  },
20491
20493
  {
20492
- label: r("label.mimeTypeDocuments"),
20493
- value: "documents"
20494
+ label: r("label.mimeTypePdf"),
20495
+ description: r("hint.mimeTypePdf"),
20496
+ icon: "ri:file-pdf-2-line",
20497
+ value: "pdf"
20494
20498
  },
20495
20499
  {
20496
20500
  label: r("label.mimeTypeText"),
20501
+ description: r("hint.mimeTypeText"),
20502
+ icon: "ri:file-text-line",
20497
20503
  value: "text"
20498
20504
  },
20499
20505
  {
20500
20506
  label: r("label.mimeTypeCode"),
20507
+ description: r("hint.mimeTypeCode"),
20508
+ icon: "ri:file-code-line",
20501
20509
  value: "code"
20502
20510
  },
20503
20511
  {
20504
20512
  label: r("label.mimeTypeSpreadsheets"),
20513
+ description: r("hint.mimeTypeSpreadsheets"),
20514
+ icon: "ri:file-excel-2-line",
20505
20515
  value: "spreadsheets"
20506
20516
  },
20507
20517
  {
20508
20518
  label: r("label.mimeTypeWordDocuments"),
20519
+ description: r("hint.mimeTypeWordDocuments"),
20520
+ icon: "ri:file-word-2-line",
20509
20521
  value: "wordDocuments"
20510
20522
  },
20511
20523
  ...d.features?.gateway === !1 ? [] : [{
20512
20524
  label: r("label.mimeTypeAudio"),
20525
+ description: r("hint.mimeTypeAudio"),
20526
+ icon: "ri:file-music-line",
20513
20527
  value: "audio"
20514
20528
  }]
20515
20529
  ]), sn = A(() => Object.values(ye).map((e) => ({
@@ -21682,7 +21696,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
21682
21696
  "label",
21683
21697
  "hint-label"
21684
21698
  ])) : M("", !0),
21685
- !e.playground && Sn.value && Pe.value === "copilot" ? (z(), j(KT, {
21699
+ !e.playground && Sn.value ? (z(), j(KT, {
21686
21700
  key: 8,
21687
21701
  modelValue: Fe.value,
21688
21702
  "onUpdate:modelValue": i[51] ||= (e) => Fe.value = e,
@@ -21922,7 +21936,34 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
21922
21936
  badges: "",
21923
21937
  multiple: "",
21924
21938
  strategy: "fixed"
21925
- }, null, 8, [
21939
+ }, {
21940
+ value: G(({ selectedOptions: t, onInput: n }) => [(z(!0), N(k, null, ai(t, (t) => (z(), j(ae, {
21941
+ key: t.value,
21942
+ class: "vv-select__badge"
21943
+ }, {
21944
+ default: G(() => [
21945
+ I(y, { name: t.icon }, null, 8, ["name"]),
21946
+ F(" " + V(t.label) + " ", 1),
21947
+ e.playground ? M("", !0) : (z(), N("button", {
21948
+ key: 0,
21949
+ "aria-label": H(r)("label.deselectAction"),
21950
+ type: "button",
21951
+ onClick: yi((e) => n(t), ["stop"])
21952
+ }, [I(y, { name: "close" })], 8, sO))
21953
+ ]),
21954
+ _: 2
21955
+ }, 1024))), 128))]),
21956
+ option: G(({ option: e }) => [I(gs, {
21957
+ icon: e.icon,
21958
+ label: e.label,
21959
+ description: e.description
21960
+ }, null, 8, [
21961
+ "icon",
21962
+ "label",
21963
+ "description"
21964
+ ])]),
21965
+ _: 1
21966
+ }, 8, [
21926
21967
  "modelValue",
21927
21968
  "disabled",
21928
21969
  "label",
@@ -21937,7 +21978,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
21937
21978
  default: G(() => [F(V(ln.value), 1)]),
21938
21979
  _: 1
21939
21980
  })) : M("", !0),
21940
- P("div", sO, [I(d, {
21981
+ P("div", cO, [I(d, {
21941
21982
  modelValue: Rt.value,
21942
21983
  "onUpdate:modelValue": i[58] ||= (e) => Rt.value = e,
21943
21984
  disabled: e.playground,
@@ -22015,15 +22056,15 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22015
22056
  })]),
22016
22057
  _: 1
22017
22058
  }, 8, ["legend"])) : M("", !0),
22018
- P("div", cO, [P("p", lO, V(H(r)("hint.approvalChannels")), 1), (z(!0), N(k, null, ai(pn.value, (t) => (z(), N(k, { key: t.key }, [Sn.value || !t.tools.every((e) => hn(e)) ? (z(), j(fs, {
22059
+ P("div", lO, [P("p", uO, V(H(r)("hint.approvalChannels")), 1), (z(!0), N(k, null, ai(pn.value, (t) => (z(), N(k, { key: t.key }, [Sn.value || !t.tools.every((e) => hn(e)) ? (z(), j(fs, {
22019
22060
  key: 0,
22020
22061
  class: "mb-0"
22021
22062
  }, {
22022
- legend: G(() => [P("span", uO, [I(y, {
22063
+ legend: G(() => [P("span", dO, [I(y, {
22023
22064
  name: t.icon,
22024
22065
  class: "text-16"
22025
22066
  }, null, 8, ["name"]), F(" " + V(H(r)(`toolGroup.${t.key}`)), 1)])]),
22026
- default: G(() => [P("p", dO, V(H(r)(`toolGroupInfo.${t.key}`)), 1), P("div", fO, [(z(!0), N(k, null, ai(t.tools, (t) => (z(), N(k, { key: t }, [!hn(t) || Sn.value ? (z(), N(k, { key: 0 }, [I(m, {
22067
+ default: G(() => [P("p", fO, V(H(r)(`toolGroupInfo.${t.key}`)), 1), P("div", pO, [(z(!0), N(k, null, ai(t.tools, (t) => (z(), N(k, { key: t }, [!hn(t) || Sn.value ? (z(), N(k, { key: 0 }, [I(m, {
22027
22068
  class: "flex-nowrap border-t border-surface-3 mr-0 px-md pt-md",
22028
22069
  "model-value": D(t),
22029
22070
  name: `tool.${t}`,
@@ -22033,9 +22074,9 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22033
22074
  switch: "",
22034
22075
  "onUpdate:modelValue": (e) => bn(t, e)
22035
22076
  }, {
22036
- default: G(() => [P("div", pO, [
22037
- P("div", mO, [
22038
- P("strong", hO, V(H(r)(`agent.tool.${t}`)), 1),
22077
+ default: G(() => [P("div", mO, [
22078
+ P("div", hO, [
22079
+ P("strong", gO, V(H(r)(`agent.tool.${t}`)), 1),
22039
22080
  t === H(T).ShowMultipleChoice ? (z(), j(ae, {
22040
22081
  key: 0,
22041
22082
  modifiers: "gray sm"
@@ -22045,7 +22086,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22045
22086
  })) : M("", !0),
22046
22087
  _n(t) ? (z(), j(HE, { key: 1 })) : M("", !0)
22047
22088
  ]),
22048
- P("small", gO, V(H(r)(`hint.tool.${t}`)), 1),
22089
+ P("small", _O, V(H(r)(`hint.tool.${t}`)), 1),
22049
22090
  H(Ie)(t) && H(de)(t) ? (z(), N("div", {
22050
22091
  key: 0,
22051
22092
  class: "flex items-center gap-4 self-start mt-4 pt-4 w-full border-t border-surface-3",
@@ -22068,7 +22109,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22068
22109
  class: "text-12"
22069
22110
  }), F(" " + V(H(r)("label.teams")), 1)]),
22070
22111
  _: 1
22071
- })], 8, _O)) : M("", !0)
22112
+ })], 8, vO)) : M("", !0)
22072
22113
  ])]),
22073
22114
  _: 2
22074
22115
  }, 1032, [
@@ -22082,8 +22123,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22082
22123
  modifiers: "details",
22083
22124
  class: "border border-surface-3 rounded-lg mx-md mb-md"
22084
22125
  }, {
22085
- default: G(() => [P("div", vO, [
22086
- t === H(T).ShowForm ? (z(), N("div", yO, [I(d, {
22126
+ default: G(() => [P("div", yO, [
22127
+ t === H(T).ShowForm ? (z(), N("div", bO, [I(d, {
22087
22128
  modelValue: rt.value,
22088
22129
  "onUpdate:modelValue": i[62] ||= (e) => rt.value = e,
22089
22130
  name: "formMaxSteps",
@@ -22191,7 +22232,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22191
22232
  _: 2
22192
22233
  }, 1024)) : M("", !0)], 64))), 128))])
22193
22234
  ]),
22194
- "panel::embed": G(() => [P("div", bO, [
22235
+ "panel::embed": G(() => [P("div", xO, [
22195
22236
  qt.value.includes(H(Se).Widget) ? M("", !0) : (z(), j(qT, {
22196
22237
  key: 0,
22197
22238
  level: "warning",
@@ -22208,7 +22249,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22208
22249
  default: G(() => [F(V(H(r)("hint.channelAppDisabled")), 1)]),
22209
22250
  _: 1
22210
22251
  })),
22211
- P("div", null, [P("h3", xO, V(H(r)("label.chatWidget")), 1), P("p", SO, V(H(r)("hint.embedCode")), 1)]),
22252
+ P("div", null, [P("h3", SO, V(H(r)("label.chatWidget")), 1), P("p", CO, V(H(r)("hint.embedCode")), 1)]),
22212
22253
  I(fD, { source: Dn.value }, {
22213
22254
  default: G(() => [I(Ot, {
22214
22255
  code: Dn.value,
@@ -22218,7 +22259,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22218
22259
  }, null, 8, ["code"])]),
22219
22260
  _: 1
22220
22261
  }, 8, ["source"]),
22221
- e.playground ? M("", !0) : (z(), N("div", CO, [I(d, {
22262
+ e.playground ? M("", !0) : (z(), N("div", wO, [I(d, {
22222
22263
  modelValue: at.value,
22223
22264
  "onUpdate:modelValue": i[68] ||= (e) => at.value = e,
22224
22265
  name: "widgetUrl",
@@ -22235,7 +22276,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22235
22276
  modifiers: "details",
22236
22277
  class: "border border-surface-3 rounded-lg mb-0"
22237
22278
  }, {
22238
- default: G(() => [P("div", wO, [
22279
+ default: G(() => [P("div", TO, [
22239
22280
  I(d, {
22240
22281
  modelValue: ot.value,
22241
22282
  "onUpdate:modelValue": i[69] ||= (e) => ot.value = e,
@@ -22291,7 +22332,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22291
22332
  ])]),
22292
22333
  _: 1
22293
22334
  }, 8, ["title"])])),
22294
- P("div", null, [P("h3", TO, V(H(r)("label.iframe")), 1), P("p", EO, V(H(r)("hint.embedIframe")), 1)]),
22335
+ P("div", null, [P("h3", EO, V(H(r)("label.iframe")), 1), P("p", DO, V(H(r)("hint.embedIframe")), 1)]),
22295
22336
  I(fD, { source: On.value }, {
22296
22337
  default: G(() => [I(Ot, {
22297
22338
  code: On.value,
@@ -22301,7 +22342,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22301
22342
  }, null, 8, ["code"])]),
22302
22343
  _: 1
22303
22344
  }, 8, ["source"]),
22304
- P("div", null, [P("h4", DO, V(H(r)("label.preview")), 1), P("p", OO, V(H(r)("hint.embedPreview")), 1)]),
22345
+ P("div", null, [P("h4", OO, V(H(r)("label.preview")), 1), P("p", kO, V(H(r)("hint.embedPreview")), 1)]),
22305
22346
  I(fD, { source: En.value }, {
22306
22347
  actions: G(() => [I(s, {
22307
22348
  modifiers: "action-quiet-small",
@@ -22310,16 +22351,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22310
22351
  href: En.value,
22311
22352
  target: "_blank"
22312
22353
  }, null, 8, ["label", "href"])]),
22313
- default: G(() => [P("code", kO, V(En.value), 1)]),
22354
+ default: G(() => [P("code", AO, V(En.value), 1)]),
22314
22355
  _: 1
22315
22356
  }, 8, ["source"])
22316
22357
  ])]),
22317
- "panel::site": G(() => [P("div", AO, [I(fs, {
22358
+ "panel::site": G(() => [P("div", jO, [I(fs, {
22318
22359
  legend: H(r)("label.externalContext"),
22319
22360
  class: "mb-0"
22320
22361
  }, {
22321
22362
  default: G(() => [
22322
- P("p", jO, V(H(r)("hint.externalContextSchema")), 1),
22363
+ P("p", MO, V(H(r)("hint.externalContextSchema")), 1),
22323
22364
  I(KT, {
22324
22365
  modelValue: rn.value,
22325
22366
  "onUpdate:modelValue": i[71] ||= (e) => rn.value = e,
@@ -22375,7 +22416,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22375
22416
  }, null, 8, ["modelValue", "trusted-origins"])], 64)) : M("", !0)])]),
22376
22417
  "panel::security": G(() => [
22377
22418
  I(fs, { legend: H(r)("label.rateLimits") }, {
22378
- default: G(() => [P("div", MO, [
22419
+ default: G(() => [P("div", NO, [
22379
22420
  I(d, {
22380
22421
  modelValue: Ue.value,
22381
22422
  "onUpdate:modelValue": i[78] ||= (e) => Ue.value = e,
@@ -22523,13 +22564,13 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22523
22564
  "invalid",
22524
22565
  "invalid-label"
22525
22566
  ]),
22526
- P("p", NO, V(H(r)("label.imageHostsHint")), 1)
22567
+ P("p", PO, V(H(r)("label.imageHostsHint")), 1)
22527
22568
  ]),
22528
22569
  _: 1
22529
22570
  }, 8, ["items"]), oi(n.$slots, "default")], 512);
22530
22571
  };
22531
22572
  }
22532
- }), FO = ["aria-current", "title"], IO = /* @__PURE__ */ L({
22573
+ }), IO = ["aria-current", "title"], LO = /* @__PURE__ */ L({
22533
22574
  __name: "PkChatSidebarConversationItem",
22534
22575
  props: /*@__PURE__*/ qr({
22535
22576
  conversation: {},
@@ -22593,7 +22634,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22593
22634
  "aria-current": e.active ? "page" : void 0,
22594
22635
  title: o.value,
22595
22636
  onClick: n[4] ||= (e) => i("select")
22596
- }, V(o.value), 9, FO),
22637
+ }, V(o.value), 9, IO),
22597
22638
  e.answering ? (z(), j(u, {
22598
22639
  key: 0,
22599
22640
  name: "loading-loop",
@@ -22636,19 +22677,19 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22636
22677
  ], 64))], 2);
22637
22678
  };
22638
22679
  }
22639
- }), LO = ["inert", "aria-label"], RO = { class: "pk-chat-sidebar__header" }, zO = ["title"], BO = { class: "pk-chat-sidebar__actions" }, VO = {
22680
+ }), RO = ["inert", "aria-label"], zO = { class: "pk-chat-sidebar__header" }, BO = ["title"], VO = { class: "pk-chat-sidebar__actions" }, HO = {
22640
22681
  key: 0,
22641
22682
  class: "pk-chat-sidebar__list scrollbar-thin vv-skeleton"
22642
- }, HO = {
22683
+ }, UO = {
22643
22684
  key: 1,
22644
22685
  class: "pk-chat-sidebar__list scrollbar-thin"
22645
- }, UO = {
22686
+ }, WO = {
22646
22687
  key: 0,
22647
22688
  class: "pk-chat-sidebar__no-results"
22648
- }, WO = { class: "pk-chat-sidebar__group-label" }, GO = {
22689
+ }, GO = { class: "pk-chat-sidebar__group-label" }, KO = {
22649
22690
  key: 2,
22650
22691
  class: "pk-chat-sidebar__footer"
22651
- }, KO = 864e5, qO = /* @__PURE__ */ L({
22692
+ }, qO = 864e5, JO = /* @__PURE__ */ L({
22652
22693
  __name: "PkChatSidebar",
22653
22694
  props: /*@__PURE__*/ qr({
22654
22695
  agentId: {},
@@ -22684,7 +22725,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22684
22725
  };
22685
22726
  for (let n of w.value) {
22686
22727
  let r = n.lastMessageAt ? new Date(n.lastMessageAt).getTime() : 0;
22687
- r >= e ? t.today.push(n) : r >= e - KO ? t.yesterday.push(n) : r >= e - 7 * KO ? t.last7Days.push(n) : r >= e - 30 * KO ? t.last30Days.push(n) : t.older.push(n);
22728
+ r >= e ? t.today.push(n) : r >= e - qO ? t.yesterday.push(n) : r >= e - 7 * qO ? t.last7Days.push(n) : r >= e - 30 * qO ? t.last30Days.push(n) : t.older.push(n);
22688
22729
  }
22689
22730
  return Object.entries(t).filter(([, e]) => e.length > 0).map(([e, t]) => ({
22690
22731
  key: e,
@@ -22727,7 +22768,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22727
22768
  "aria-label": H(s)("label.conversations"),
22728
22769
  onKeydown: le
22729
22770
  }, [
22730
- P("header", RO, [
22771
+ P("header", zO, [
22731
22772
  e.organizationLogo || e.organizationName ? (z(), j(Kn, {
22732
22773
  key: 0,
22733
22774
  modifiers: "surface ring",
@@ -22739,7 +22780,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22739
22780
  key: 1,
22740
22781
  class: "pk-chat-sidebar__org-name",
22741
22782
  title: e.organizationName
22742
- }, V(e.organizationName), 9, zO)) : M("", !0),
22783
+ }, V(e.organizationName), 9, BO)) : M("", !0),
22743
22784
  I(a, {
22744
22785
  class: "ml-auto",
22745
22786
  icon: H(i) ? "ri:close-line" : "ri:sidebar-fold-line",
@@ -22753,7 +22794,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22753
22794
  "title"
22754
22795
  ])
22755
22796
  ]),
22756
- P("div", BO, [
22797
+ P("div", VO, [
22757
22798
  e.agents ? (z(), j(RE, {
22758
22799
  key: 0,
22759
22800
  agents: e.agents,
@@ -22781,13 +22822,13 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22781
22822
  "placeholder"
22782
22823
  ])
22783
22824
  ]),
22784
- H(u) && H(l).length === 0 ? (z(), N("div", VO, [(z(), N(k, null, ai(6, (e) => P("div", {
22825
+ H(u) && H(l).length === 0 ? (z(), N("div", HO, [(z(), N(k, null, ai(6, (e) => P("div", {
22785
22826
  key: e,
22786
22827
  class: "vv-skeleton__item rounded-md h-36"
22787
- })), 64))])) : (z(), N("nav", HO, [ne.value.length === 0 ? (z(), N("p", UO, V(H(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, ai(ne.value, (t) => (z(), N("div", {
22828
+ })), 64))])) : (z(), N("nav", UO, [ne.value.length === 0 ? (z(), N("p", WO, V(H(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, ai(ne.value, (t) => (z(), N("div", {
22788
22829
  key: t.key,
22789
22830
  class: "pk-chat-sidebar__group"
22790
- }, [P("span", WO, V(t.label), 1), (z(!0), N(k, null, ai(t.items, (t) => (z(), j(IO, {
22831
+ }, [P("span", GO, V(t.label), 1), (z(!0), N(k, null, ai(t.items, (t) => (z(), j(LO, {
22791
22832
  key: t.id,
22792
22833
  "editing-title": H(v),
22793
22834
  "onUpdate:editingTitle": n[4] ||= (e) => Gr(v) ? v.value = e : null,
@@ -22818,44 +22859,44 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22818
22859
  "onDelete",
22819
22860
  "onFiles"
22820
22861
  ]))), 128))]))), 128))])),
22821
- t.$slots.footer ? (z(), N("footer", GO, [oi(t.$slots, "footer")])) : M("", !0)
22822
- ], 46, LO)], 64);
22862
+ t.$slots.footer ? (z(), N("footer", KO, [oi(t.$slots, "footer")])) : M("", !0)
22863
+ ], 46, RO)], 64);
22823
22864
  };
22824
22865
  }
22825
- }), JO = { class: "pk-retry-countdown" }, YO = /* @__PURE__ */ L({
22866
+ }), YO = { class: "pk-retry-countdown" }, XO = /* @__PURE__ */ L({
22826
22867
  __name: "PkRetryCountdown",
22827
22868
  props: {
22828
22869
  countdown: {},
22829
22870
  maxSeconds: {}
22830
22871
  },
22831
22872
  setup(e) {
22832
- return (e, t) => (z(), N("div", JO, [...t[0] ||= [Hr("<div class=\"pk-retry-countdown__loader\"><div class=\"pk-retry-countdown__bubble\"><div class=\"pk-retry-countdown__typing\"><span class=\"pk-retry-countdown__dot\"></span><span class=\"pk-retry-countdown__dot\"></span><span class=\"pk-retry-countdown__dot\"></span></div></div></div>", 1)]]));
22873
+ return (e, t) => (z(), N("div", YO, [...t[0] ||= [Hr("<div class=\"pk-retry-countdown__loader\"><div class=\"pk-retry-countdown__bubble\"><div class=\"pk-retry-countdown__typing\"><span class=\"pk-retry-countdown__dot\"></span><span class=\"pk-retry-countdown__dot\"></span><span class=\"pk-retry-countdown__dot\"></span></div></div></div>", 1)]]));
22833
22874
  }
22834
- }), XO = {
22875
+ }), ZO = {
22835
22876
  key: 0,
22836
22877
  class: "pk-tool-selection"
22837
- }, ZO = { class: "text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8" }, QO = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, $O = { class: "font-semibold text-12 truncate" }, ek = {
22878
+ }, QO = { class: "text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8" }, $O = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, ek = { class: "font-semibold text-12 truncate" }, tk = {
22838
22879
  key: 0,
22839
22880
  class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
22840
- }, tk = ["title"], nk = { class: "font-mono text-10 text-word-3 truncate ml-auto" }, rk = { class: "border rounded-b border-surface-3" }, ik = {
22881
+ }, nk = ["title"], rk = { class: "font-mono text-10 text-word-3 truncate ml-auto" }, ik = { class: "border rounded-b border-surface-3" }, ak = {
22841
22882
  key: 0,
22842
22883
  class: "flex flex-col gap-6 p-8 border-b border-surface-3 text-12 text-word-2"
22843
- }, ak = { key: 0 }, ok = {
22884
+ }, ok = { key: 0 }, sk = {
22844
22885
  key: 1,
22845
22886
  class: "flex items-center gap-4"
22846
- }, sk = { class: "flex flex-wrap items-center justify-between gap-x-12 gap-y-4 p-8 border-b border-surface-3 text-12 text-word-3" }, ck = ["title"], lk = { class: "flex shrink-0" }, uk = { class: "pk-tool-selection__label" }, dk = { class: "tabular-nums truncate" }, fk = { class: "pk-tool-selection__groups" }, pk = { class: "flex flex-col gap-4 min-w-0" }, mk = { class: "flex items-center gap-6 min-w-0" }, hk = { class: "pk-tool-selection__label" }, gk = ["title"], _k = { class: "flex flex-wrap items-center gap-x-6 gap-y-2 text-10 text-word-3" }, vk = { key: 0 }, yk = {
22887
+ }, ck = { class: "flex flex-wrap items-center justify-between gap-x-12 gap-y-4 p-8 border-b border-surface-3 text-12 text-word-3" }, lk = ["title"], uk = { class: "flex shrink-0" }, dk = { class: "pk-tool-selection__label" }, fk = { class: "tabular-nums truncate" }, pk = { class: "pk-tool-selection__groups" }, mk = { class: "flex flex-col gap-4 min-w-0" }, hk = { class: "flex items-center gap-6 min-w-0" }, gk = { class: "pk-tool-selection__label" }, _k = ["title"], vk = { class: "flex flex-wrap items-center gap-x-6 gap-y-2 text-10 text-word-3" }, yk = { key: 0 }, bk = {
22847
22888
  key: 1,
22848
22889
  class: "text-word-1 bg-surface-warning rounded px-4 py-2"
22849
- }, bk = {
22890
+ }, xk = {
22850
22891
  key: 2,
22851
22892
  class: "pk-tool-selection__label"
22852
- }, xk = {
22893
+ }, Sk = {
22853
22894
  key: 3,
22854
22895
  class: "pk-tool-selection__tag rounded px-4 py-2"
22855
- }, Sk = {
22896
+ }, Ck = {
22856
22897
  key: 4,
22857
22898
  class: "pk-tool-selection__tag rounded px-4 py-2"
22858
- }, Ck = ["title"], wk = { class: "text-10 text-word-2 tabular-nums" }, Tk = /* @__PURE__ */ L({
22899
+ }, wk = ["title"], Tk = { class: "text-10 text-word-2 tabular-nums" }, Ek = /* @__PURE__ */ L({
22859
22900
  __name: "PkToolSelection",
22860
22901
  props: { message: {} },
22861
22902
  setup(e) {
@@ -22897,32 +22938,32 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22897
22938
  });
22898
22939
  return (e, t) => {
22899
22940
  let s = Ar;
22900
- return a.value ? (z(), N("section", XO, [P("header", ZO, [
22901
- P("div", QO, [I(s, {
22941
+ return a.value ? (z(), N("section", ZO, [P("header", QO, [
22942
+ P("div", $O, [I(s, {
22902
22943
  name: "ri:filter-3-line",
22903
22944
  class: "w-12 h-12"
22904
22945
  })]),
22905
- P("strong", $O, V(H(n)("toolSelection.title")), 1),
22906
- a.value.decision.failed ? (z(), N("span", ek, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
22946
+ P("strong", ek, V(H(n)("toolSelection.title")), 1),
22947
+ a.value.decision.failed ? (z(), N("span", tk, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
22907
22948
  key: 1,
22908
22949
  class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
22909
22950
  title: H(n)(`toolSelection.modeHint.${a.value.decision.mode}`)
22910
- }, V(H(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9, tk)),
22911
- P("code", nk, V(H(Le)), 1)
22912
- ]), P("div", rk, [
22913
- a.value.decision.failed || a.value.missed > 0 ? (z(), N("div", ik, [a.value.decision.failed ? (z(), N("p", ak, V(H(n)("toolSelection.leadFailed", { budget: H(r)(a.value.decision.budgetMs, "integer") })), 1)) : M("", !0), a.value.missed > 0 ? (z(), N("p", ok, [I(s, {
22951
+ }, V(H(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9, nk)),
22952
+ P("code", rk, V(H(Le)), 1)
22953
+ ]), P("div", ik, [
22954
+ a.value.decision.failed || a.value.missed > 0 ? (z(), N("div", ak, [a.value.decision.failed ? (z(), N("p", ok, V(H(n)("toolSelection.leadFailed", { budget: H(r)(a.value.decision.budgetMs, "integer") })), 1)) : M("", !0), a.value.missed > 0 ? (z(), N("p", sk, [I(s, {
22914
22955
  name: "ri:error-warning-line",
22915
22956
  class: "shrink-0 text-warning-darken-3"
22916
22957
  }), F(" " + V(H(n)(a.value.decision.mode === "active" ? "toolSelection.missedActive" : "toolSelection.missedShadow", a.value.missed)), 1)])) : M("", !0)])) : M("", !0),
22917
- P("dl", sk, [(z(!0), N(k, null, ai(o.value, (e) => (z(), N("div", {
22958
+ P("dl", ck, [(z(!0), N(k, null, ai(o.value, (e) => (z(), N("div", {
22918
22959
  key: e.icon,
22919
22960
  class: "flex items-center gap-6 min-w-0",
22920
22961
  title: e.label
22921
- }, [P("dt", lk, [I(s, {
22962
+ }, [P("dt", uk, [I(s, {
22922
22963
  name: e.icon,
22923
22964
  "aria-hidden": "true"
22924
- }, null, 8, ["name"]), P("span", uk, V(e.label), 1)]), P("dd", dk, V(e.value), 1)], 8, ck))), 128))]),
22925
- P("ul", fk, [(z(!0), N(k, null, ai(a.value.groups, (e) => (z(), N("li", {
22965
+ }, null, 8, ["name"]), P("span", dk, V(e.label), 1)]), P("dd", fk, V(e.value), 1)], 8, lk))), 128))]),
22966
+ P("ul", pk, [(z(!0), N(k, null, ai(a.value.groups, (e) => (z(), N("li", {
22926
22967
  key: e.id,
22927
22968
  class: Xr(["pk-tool-selection__group", {
22928
22969
  "pk-tool-selection__group--selected": e.selected,
@@ -22933,24 +22974,24 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22933
22974
  name: e.selected ? "ri:check-line" : "ri:subtract-line",
22934
22975
  class: "pk-tool-selection__mark shrink-0"
22935
22976
  }, null, 8, ["name"]),
22936
- P("div", pk, [P("span", mk, [
22977
+ P("div", mk, [P("span", hk, [
22937
22978
  I(s, {
22938
22979
  name: i[e.kind],
22939
22980
  class: "shrink-0 w-14 h-14",
22940
22981
  title: H(n)(`toolSelection.kind.${e.kind}`),
22941
22982
  "aria-hidden": "true"
22942
22983
  }, null, 8, ["name", "title"]),
22943
- P("span", hk, V(H(n)(`toolSelection.kind.${e.kind}`)), 1),
22984
+ P("span", gk, V(H(n)(`toolSelection.kind.${e.kind}`)), 1),
22944
22985
  P("span", {
22945
22986
  class: "pk-tool-selection__name truncate",
22946
22987
  title: e.name
22947
- }, V(e.name), 9, gk)
22948
- ]), P("span", _k, [
22949
- e.kind === "mcp" ? (z(), N("span", vk, V(H(n)("toolSelection.tools", e.tools)), 1)) : M("", !0),
22950
- e.used && !e.selected ? (z(), N("span", yk, V(H(n)("toolSelection.missed")), 1)) : M("", !0),
22951
- e.used ? (z(), N("span", bk, V(H(n)("toolSelection.used")), 1)) : M("", !0),
22952
- e.enabled ? (z(), N("span", xk, V(H(n)("toolSelection.enabled")), 1)) : M("", !0),
22953
- e.seeded ? (z(), N("span", Sk, V(H(n)("toolSelection.seeded")), 1)) : M("", !0)
22988
+ }, V(e.name), 9, _k)
22989
+ ]), P("span", vk, [
22990
+ e.kind === "mcp" ? (z(), N("span", yk, V(H(n)("toolSelection.tools", e.tools)), 1)) : M("", !0),
22991
+ e.used && !e.selected ? (z(), N("span", bk, V(H(n)("toolSelection.missed")), 1)) : M("", !0),
22992
+ e.used ? (z(), N("span", xk, V(H(n)("toolSelection.used")), 1)) : M("", !0),
22993
+ e.enabled ? (z(), N("span", Sk, V(H(n)("toolSelection.enabled")), 1)) : M("", !0),
22994
+ e.seeded ? (z(), N("span", Ck, V(H(n)("toolSelection.seeded")), 1)) : M("", !0)
22954
22995
  ])]),
22955
22996
  e.probability === void 0 ? M("", !0) : (z(), N("div", {
22956
22997
  key: 0,
@@ -22963,18 +23004,18 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
22963
23004
  "--pk-tool-selection-probability": `${e.probability * 100}%`,
22964
23005
  "--pk-tool-selection-threshold": `${a.value.decision.threshold * 100}%`
22965
23006
  })
22966
- }, null, 4), P("span", wk, V(H(r)(e.probability, "decimal")), 1)], 8, Ck))
23007
+ }, null, 4), P("span", Tk, V(H(r)(e.probability, "decimal")), 1)], 8, wk))
22967
23008
  ], 2))), 128))])
22968
23009
  ])])) : M("", !0);
22969
23010
  };
22970
23011
  }
22971
- }), Ek = ["aria-labelledby"], Dk = { class: "text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8" }, Ok = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, kk = ["id"], Ak = {
23012
+ }), Dk = ["aria-labelledby"], Ok = { class: "text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8" }, kk = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, Ak = ["id"], jk = {
22972
23013
  key: 0,
22973
23014
  class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
22974
- }, jk = ["title"], Mk = { class: "u-visually-hidden" }, Nk = ["title"], Pk = { class: "u-visually-hidden" }, Fk = { class: "border rounded-b border-surface-3" }, Ik = {
23015
+ }, Mk = ["title"], Nk = { class: "u-visually-hidden" }, Pk = ["title"], Fk = { class: "u-visually-hidden" }, Ik = { class: "border rounded-b border-surface-3" }, Lk = {
22975
23016
  key: 0,
22976
23017
  class: "p-8 border-b border-surface-3 text-12 text-word-2"
22977
- }, Lk = ["title"], Rk = { class: "flex shrink-0" }, zk = { class: "u-visually-hidden" }, Bk = { class: "tabular-nums truncate" }, Vk = { key: 1 }, Hk = ["title"], Uk = ["title"], Wk = { class: "text-10 text-word-2 tabular-nums" }, Gk = .5, Kk = /* @__PURE__ */ L({
23018
+ }, Rk = ["title"], zk = { class: "flex shrink-0" }, Bk = { class: "u-visually-hidden" }, Vk = { class: "tabular-nums truncate" }, Hk = { key: 1 }, Uk = ["title"], Wk = ["title"], Gk = { class: "text-10 text-word-2 tabular-nums" }, Kk = .5, qk = /* @__PURE__ */ L({
22978
23019
  __name: "PkTurnEvaluation",
22979
23020
  props: { message: {} },
22980
23021
  setup(e) {
@@ -23018,79 +23059,79 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23018
23059
  key: 0,
23019
23060
  class: "pk-turn-evaluation",
23020
23061
  "aria-labelledby": H(a)
23021
- }, [P("header", Dk, [
23022
- P("div", Ok, [I(r, {
23062
+ }, [P("header", Ok, [
23063
+ P("div", kk, [I(r, {
23023
23064
  name: "ri:scales-line",
23024
23065
  class: "w-12 h-12"
23025
23066
  })]),
23026
23067
  P("strong", {
23027
23068
  id: H(a),
23028
23069
  class: "font-semibold text-12 truncate"
23029
- }, V(H(n)("turnEvaluation.title")), 9, kk),
23030
- o.value.failed ? (z(), N("span", Ak, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
23070
+ }, V(H(n)("turnEvaluation.title")), 9, Ak),
23071
+ o.value.failed ? (z(), N("span", jk, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
23031
23072
  key: 1,
23032
23073
  class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
23033
23074
  title: H(n)("turnEvaluation.modeHint")
23034
- }, [F(V(H(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span", Mk, V(H(n)("turnEvaluation.modeHint")), 1)], 8, jk)),
23075
+ }, [F(V(H(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span", Nk, V(H(n)("turnEvaluation.modeHint")), 1)], 8, Mk)),
23035
23076
  P("code", {
23036
23077
  class: "font-mono text-10 text-word-3 truncate ml-auto",
23037
23078
  title: H(n)("turnEvaluation.version", { version: o.value.version })
23038
- }, [F(V(H(Le)) + " ", 1), P("span", Pk, V(H(n)("turnEvaluation.version", { version: o.value.version })), 1)], 8, Nk)
23039
- ]), P("div", Fk, [
23040
- o.value.failed ? (z(), N("p", Ik, V(H(n)("turnEvaluation.leadFailed", { budget: H(i)(o.value.budgetMs, "integer") })), 1)) : M("", !0),
23079
+ }, [F(V(H(Le)) + " ", 1), P("span", Fk, V(H(n)("turnEvaluation.version", { version: o.value.version })), 1)], 8, Pk)
23080
+ ]), P("div", Ik, [
23081
+ o.value.failed ? (z(), N("p", Lk, V(H(n)("turnEvaluation.leadFailed", { budget: H(i)(o.value.budgetMs, "integer") })), 1)) : M("", !0),
23041
23082
  P("dl", { class: Xr(["flex flex-wrap items-center justify-between gap-x-12 gap-y-4 p-8 text-12 text-word-3", { "border-b border-surface-3": c.value.length > 0 }]) }, [(z(!0), N(k, null, ai(l.value, (e) => (z(), N("div", {
23042
23083
  key: e.icon,
23043
23084
  class: "flex items-center gap-6 min-w-0",
23044
23085
  title: e.label
23045
- }, [P("dt", Rk, [I(r, {
23086
+ }, [P("dt", zk, [I(r, {
23046
23087
  name: e.icon,
23047
23088
  "aria-hidden": "true"
23048
- }, null, 8, ["name"]), P("span", zk, V(e.label), 1)]), P("dd", Bk, V(e.value), 1)], 8, Lk))), 128))], 2),
23049
- c.value.length > 0 ? (z(), N("ul", Vk, [(z(!0), N(k, null, ai(c.value, (e) => (z(), N("li", {
23089
+ }, null, 8, ["name"]), P("span", Bk, V(e.label), 1)]), P("dd", Vk, V(e.value), 1)], 8, Rk))), 128))], 2),
23090
+ c.value.length > 0 ? (z(), N("ul", Hk, [(z(!0), N(k, null, ai(c.value, (e) => (z(), N("li", {
23050
23091
  key: e.id,
23051
- class: Xr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >= Gk }])
23092
+ class: Xr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >= Kk }])
23052
23093
  }, [P("span", {
23053
23094
  class: "truncate",
23054
23095
  title: e.label
23055
- }, V(e.label), 9, Hk), P("div", {
23096
+ }, V(e.label), 9, Uk), P("div", {
23056
23097
  class: "pk-turn-evaluation__probability",
23057
23098
  title: H(n)("turnEvaluation.probability")
23058
23099
  }, [P("span", {
23059
23100
  class: "pk-turn-evaluation__bar",
23060
23101
  "aria-hidden": "true",
23061
23102
  style: Qr({ "--pk-turn-evaluation-probability": `${e.probability * 100}%` })
23062
- }, null, 4), P("span", Wk, V(H(i)(e.probability, "decimal")), 1)], 8, Uk)], 2))), 128))])) : M("", !0)
23063
- ])], 8, Ek)) : M("", !0);
23103
+ }, null, 4), P("span", Gk, V(H(i)(e.probability, "decimal")), 1)], 8, Wk)], 2))), 128))])) : M("", !0)
23104
+ ])], 8, Dk)) : M("", !0);
23064
23105
  };
23065
23106
  }
23066
- }), qk = { class: "flex flex-col gap-16" }, Jk = {
23107
+ }), Jk = { class: "flex flex-col gap-16" }, Yk = {
23067
23108
  key: 0,
23068
23109
  class: "grid grid-cols-2 gap-x-10 text-12 text-word-3 justify-between"
23069
- }, Yk = { class: "flex flex-col gap-y-4" }, Xk = {
23110
+ }, Xk = { class: "flex flex-col gap-y-4" }, Zk = {
23070
23111
  key: 1,
23071
23112
  class: "flex items-center gap-4 min-w-0"
23072
- }, Zk = { class: "truncate" }, Qk = {
23113
+ }, Qk = { class: "truncate" }, $k = {
23073
23114
  key: 2,
23074
23115
  class: "flex items-center gap-4 min-w-0"
23075
- }, $k = { class: "truncate" }, eA = { key: 0 }, tA = {
23116
+ }, eA = { class: "truncate" }, tA = { key: 0 }, nA = {
23076
23117
  key: 3,
23077
23118
  class: "flex items-center gap-4"
23078
- }, nA = {
23119
+ }, rA = {
23079
23120
  key: 4,
23080
23121
  class: "flex items-center gap-4"
23081
- }, rA = { class: "flex flex-col gap-y-4 items-end" }, iA = ["datetime"], aA = {
23122
+ }, iA = { class: "flex flex-col gap-y-4 items-end" }, aA = ["datetime"], oA = {
23082
23123
  key: 1,
23083
23124
  class: "flex items-center gap-4"
23084
- }, oA = { key: 0 }, sA = {
23125
+ }, sA = { key: 0 }, cA = {
23085
23126
  key: 2,
23086
23127
  class: "flex items-center gap-4"
23087
- }, cA = {
23128
+ }, lA = {
23088
23129
  key: 3,
23089
23130
  class: "flex items-center gap-4 min-w-0"
23090
- }, lA = { class: "truncate" }, uA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, dA = { class: "font-semibold truncate" }, fA = ["title"], pA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, mA = { class: "font-semibold truncate" }, hA = ["title"], gA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, _A = { class: "font-semibold truncate" }, vA = ["title"], yA = { class: "flex flex-col gap-16" }, bA = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, xA = { class: "tracking-widest border-r border-gray-lighten-3 pr-4" }, SA = { class: "font-bold text-12" }, CA = { class: "text-10" }, wA = { class: "text-12 text-word-2 truncate" }, TA = {
23131
+ }, uA = { class: "truncate" }, dA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, fA = { class: "font-semibold truncate" }, pA = ["title"], mA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, hA = { class: "font-semibold truncate" }, gA = ["title"], _A = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, vA = { class: "font-semibold truncate" }, yA = ["title"], bA = { class: "flex flex-col gap-16" }, xA = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, SA = { class: "tracking-widest border-r border-gray-lighten-3 pr-4" }, CA = { class: "font-bold text-12" }, wA = { class: "text-10" }, TA = { class: "text-12 text-word-2 truncate" }, EA = {
23091
23132
  key: 0,
23092
23133
  class: "text-10 text-word-4 whitespace-nowrap ml-auto"
23093
- }, EA = { key: 0 }, DA = { class: "border rounded-b border-surface-3" }, OA = { class: "font-bold text-10 uppercase p-8 border-b border-surface-3" }, kA = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, AA = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, jA = { class: "text-12 font-mono leading-snug bg-surface-1 p-8 m-0 whitespace-pre-wrap" }, MA = /* @__PURE__ */ L({
23134
+ }, DA = { key: 0 }, OA = { class: "border rounded-b border-surface-3" }, kA = { class: "font-bold text-10 uppercase p-8 border-b border-surface-3" }, AA = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, jA = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, MA = { class: "text-12 font-mono leading-snug bg-surface-1 p-8 m-0 whitespace-pre-wrap" }, NA = /* @__PURE__ */ L({
23094
23135
  __name: "PkMessageParts",
23095
23136
  props: { message: {} },
23096
23137
  setup(e) {
@@ -23121,29 +23162,29 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23121
23162
  }), l = A(() => t.message?.metadata?.transport === Ne.Voice), u = A(() => t.message?.metadata?.externalContext && Object.keys(t.message.metadata.externalContext).length > 0), d = A(() => t.message?.metadata?.platformContext && Object.keys(t.message.metadata.platformContext).length > 0);
23122
23163
  return (t, f) => {
23123
23164
  let p = Ar, m = yr, h = br, g = si("PjResizablePanel");
23124
- return z(), N("div", qk, [
23125
- e.message.metadata?.model || l.value ? (z(), N("div", Jk, [P("div", Yk, [
23165
+ return z(), N("div", Jk, [
23166
+ e.message.metadata?.model || l.value ? (z(), N("div", Yk, [P("div", Xk, [
23126
23167
  e.message.metadata?.model ? (z(), j(QE, {
23127
23168
  key: 0,
23128
23169
  "model-name": e.message.metadata?.model,
23129
23170
  historical: ""
23130
23171
  }, null, 8, ["model-name"])) : M("", !0),
23131
- e.message?.metadata?.resolvedProvider ? (z(), N("span", Xk, [I(p, {
23172
+ e.message?.metadata?.resolvedProvider ? (z(), N("span", Zk, [I(p, {
23132
23173
  name: "ri:cloud-line",
23133
23174
  class: "shrink-0"
23134
- }), P("span", Zk, [F(V(H(it)(e.message.metadata.resolvedProvider)) + " ", 1), e.message.metadata.resolvedModelId ? (z(), N(k, { key: 0 }, [F(" (" + V(e.message.metadata.resolvedModelId) + ") ", 1)], 64)) : M("", !0)])])) : M("", !0),
23135
- e.message?.metadata?.totalTokens ? (z(), N("span", Qk, [I(p, {
23175
+ }), P("span", Qk, [F(V(H(it)(e.message.metadata.resolvedProvider)) + " ", 1), e.message.metadata.resolvedModelId ? (z(), N(k, { key: 0 }, [F(" (" + V(e.message.metadata.resolvedModelId) + ") ", 1)], 64)) : M("", !0)])])) : M("", !0),
23176
+ e.message?.metadata?.totalTokens ? (z(), N("span", $k, [I(p, {
23136
23177
  name: "ri:ai-generate-2-line",
23137
23178
  class: "shrink-0"
23138
- }), P("span", $k, [F(V(t.$n(e.message.metadata.totalTokens, "integer")) + " " + V(t.$t("label.tokens")) + " ", 1), e.message?.metadata?.cachedTokens ? (z(), N("span", eA, " (" + V(t.$n(e.message.metadata.cachedTokens, "integer")) + " " + V(t.$t("label.cached")) + ") ", 1)) : M("", !0)])])) : M("", !0),
23139
- e.message?.metadata?.zeroDataRetention ? (z(), N("span", tA, [I(p, {
23179
+ }), P("span", eA, [F(V(t.$n(e.message.metadata.totalTokens, "integer")) + " " + V(t.$t("label.tokens")) + " ", 1), e.message?.metadata?.cachedTokens ? (z(), N("span", tA, " (" + V(t.$n(e.message.metadata.cachedTokens, "integer")) + " " + V(t.$t("label.cached")) + ") ", 1)) : M("", !0)])])) : M("", !0),
23180
+ e.message?.metadata?.zeroDataRetention ? (z(), N("span", nA, [I(p, {
23140
23181
  name: "ri:shield-check-line",
23141
23182
  class: "shrink-0"
23142
- }), F(" " + V(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span", nA, [I(p, {
23183
+ }), F(" " + V(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span", rA, [I(p, {
23143
23184
  name: "ri:shield-check-line",
23144
23185
  class: "shrink-0"
23145
23186
  }), F(" " + V(t.$t("label.noPromptTraining")), 1)])) : M("", !0)
23146
- ]), P("div", rA, [
23187
+ ]), P("div", iA, [
23147
23188
  e.message?.metadata?.createdAt ? (z(), N("time", {
23148
23189
  key: 0,
23149
23190
  datetime: new Date(e.message.metadata.createdAt).toISOString(),
@@ -23151,8 +23192,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23151
23192
  }, [I(p, {
23152
23193
  name: "ri:time-line",
23153
23194
  class: "shrink-0"
23154
- }), F(" " + V(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8, iA)) : M("", !0),
23155
- e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div", aA, [
23195
+ }), F(" " + V(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8, aA)) : M("", !0),
23196
+ e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div", oA, [
23156
23197
  I(p, {
23157
23198
  name: "ri:hourglass-line",
23158
23199
  class: "shrink-0"
@@ -23161,16 +23202,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23161
23202
  date: e.message.metadata?.createdAt,
23162
23203
  "end-date": e.message.metadata?.completedAt
23163
23204
  }, null, 8, ["date", "end-date"]),
23164
- e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span", oA, " (" + V(e.message.metadata.totalProviderAttemptCount) + " attempts) ", 1)) : M("", !0)
23205
+ e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span", sA, " (" + V(e.message.metadata.totalProviderAttemptCount) + " attempts) ", 1)) : M("", !0)
23165
23206
  ])) : M("", !0),
23166
- e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span", sA, [I(p, {
23207
+ e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span", cA, [I(p, {
23167
23208
  name: "ri:wallet-line",
23168
23209
  class: "shrink-0"
23169
23210
  }), F(" " + V(t.$n(parseFloat(e.message.metadata.cost), "currencyUSD")), 1)])) : M("", !0),
23170
- l.value ? (z(), N("span", cA, [I(p, {
23211
+ l.value ? (z(), N("span", lA, [I(p, {
23171
23212
  name: "ri:mic-line",
23172
23213
  class: "shrink-0"
23173
- }), P("span", lA, V(t.$t("label.spokenExchange")), 1)])) : M("", !0)
23214
+ }), P("span", uA, V(t.$t("label.spokenExchange")), 1)])) : M("", !0)
23174
23215
  ])])) : M("", !0),
23175
23216
  c.value || d.value || u.value ? (z(), j(h, {
23176
23217
  key: 1,
@@ -23183,10 +23224,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23183
23224
  title: t.$t("label.platformContext"),
23184
23225
  class: "border border-surface-3 rounded"
23185
23226
  }, {
23186
- default: G(() => [P("dl", uA, [(z(!0), N(k, null, ai(e.message.metadata?.platformContext, (e, t) => (z(), N(k, { key: t }, [P("dt", dA, V(H(lt)(H(ot)(t))), 1), P("dd", {
23227
+ default: G(() => [P("dl", dA, [(z(!0), N(k, null, ai(e.message.metadata?.platformContext, (e, t) => (z(), N(k, { key: t }, [P("dt", fA, V(H(lt)(H(ot)(t))), 1), P("dd", {
23187
23228
  class: "truncate font-mono col-span-2",
23188
23229
  title: String(e)
23189
- }, V(e), 9, fA)], 64))), 128))])]),
23230
+ }, V(e), 9, pA)], 64))), 128))])]),
23190
23231
  _: 1
23191
23232
  }, 8, ["title"])) : M("", !0),
23192
23233
  c.value ? (z(), j(m, {
@@ -23195,10 +23236,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23195
23236
  title: t.$t("label.deviceContext"),
23196
23237
  class: "border border-surface-3 rounded"
23197
23238
  }, {
23198
- default: G(() => [P("dl", pA, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N(k, { key: t }, [P("dt", mA, V(H(lt)(H(ot)(t))), 1), P("dd", {
23239
+ default: G(() => [P("dl", mA, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N(k, { key: t }, [P("dt", hA, V(H(lt)(H(ot)(t))), 1), P("dd", {
23199
23240
  class: "truncate font-mono col-span-2",
23200
23241
  title: String(e)
23201
- }, V(e), 9, hA)], 64))), 128))])]),
23242
+ }, V(e), 9, gA)], 64))), 128))])]),
23202
23243
  _: 1
23203
23244
  }, 8, ["title"])) : M("", !0),
23204
23245
  u.value ? (z(), j(m, {
@@ -23207,19 +23248,19 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23207
23248
  title: t.$t("label.externalContext"),
23208
23249
  class: "border border-surface-3 rounded"
23209
23250
  }, {
23210
- default: G(() => [P("dl", gA, [(z(!0), N(k, null, ai(e.message.metadata?.externalContext, (e, t) => (z(), N(k, { key: t }, [P("dt", _A, V(H(lt)(H(ot)(t))), 1), P("dd", {
23251
+ default: G(() => [P("dl", _A, [(z(!0), N(k, null, ai(e.message.metadata?.externalContext, (e, t) => (z(), N(k, { key: t }, [P("dt", vA, V(H(lt)(H(ot)(t))), 1), P("dd", {
23211
23252
  class: "truncate font-mono col-span-2",
23212
23253
  title: String(e)
23213
- }, V(e), 9, vA)], 64))), 128))])]),
23254
+ }, V(e), 9, yA)], 64))), 128))])]),
23214
23255
  _: 1
23215
23256
  }, 8, ["title"])) : M("", !0)
23216
23257
  ]),
23217
23258
  _: 1
23218
23259
  })) : M("", !0),
23219
- I(Tk, { message: e.message }, null, 8, ["message"]),
23220
- P("ol", yA, [(z(!0), N(k, null, ai(r.value, (e, c) => (z(), N("li", { key: c }, [
23260
+ I(Ek, { message: e.message }, null, 8, ["message"]),
23261
+ P("ol", bA, [(z(!0), N(k, null, ai(r.value, (e, c) => (z(), N("li", { key: c }, [
23221
23262
  P("span", { class: Xr(["text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8", { "border-b rounded-b": !n(e) && !H(tt)(e) }]) }, [
23222
- P("div", bA, [P("span", xA, [P("strong", SA, V(c + 1), 1), P("span", CA, "/" + V(r.value.length), 1)]), (n(e) || H(nt)(e)) && H(pt)(e.state) ? (z(), j(p, {
23263
+ P("div", xA, [P("span", SA, [P("strong", CA, V(c + 1), 1), P("span", wA, "/" + V(r.value.length), 1)]), (n(e) || H(nt)(e)) && H(pt)(e.state) ? (z(), j(p, {
23223
23264
  key: 0,
23224
23265
  name: "loading-loop",
23225
23266
  class: "w-12 h-12 ml-4"
@@ -23228,14 +23269,14 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23228
23269
  name: H(ft)(e) || "ri:question-line",
23229
23270
  class: "w-12 h-12 ml-4"
23230
23271
  }, null, 8, ["name"]))]),
23231
- P("span", wA, V(H(dt)(e, {
23272
+ P("span", TA, V(H(dt)(e, {
23232
23273
  t: H(o),
23233
23274
  te: H(s)
23234
23275
  })), 1),
23235
- "toolCallId" in e && i(e.toolCallId) ? (z(), N("span", TA, V(H(a)(i(e.toolCallId))), 1)) : M("", !0)
23276
+ "toolCallId" in e && i(e.toolCallId) ? (z(), N("span", EA, V(H(a)(i(e.toolCallId))), 1)) : M("", !0)
23236
23277
  ], 2),
23237
- n(e) ? (z(), N("div", EA, [P("div", DA, [
23238
- P("div", OA, V(t.$t("label.input")), 1),
23278
+ n(e) ? (z(), N("div", DA, [P("div", OA, [
23279
+ P("div", kA, V(t.$t("label.input")), 1),
23239
23280
  I(g, {
23240
23281
  "min-height": 128,
23241
23282
  "fit-content": ""
@@ -23247,7 +23288,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23247
23288
  }, null, 8, ["code"])]),
23248
23289
  _: 2
23249
23290
  }, 1024),
23250
- e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div", kA, V(t.$t("label.output")), 1), I(g, {
23291
+ e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div", AA, V(t.$t("label.output")), 1), I(g, {
23251
23292
  "min-height": 128,
23252
23293
  "fit-content": ""
23253
23294
  }, {
@@ -23258,7 +23299,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23258
23299
  }, null, 8, ["code"])]),
23259
23300
  _: 2
23260
23301
  }, 1024)], 64)) : M("", !0),
23261
- "errorText" in e && e.errorText ? (z(), N(k, { key: 1 }, [P("div", AA, V(t.$t("messagePart.stepError")), 1), P("pre", jA, V(e.errorText), 1)], 64)) : M("", !0),
23302
+ "errorText" in e && e.errorText ? (z(), N(k, { key: 1 }, [P("div", jA, V(t.$t("messagePart.stepError")), 1), P("pre", MA, V(e.errorText), 1)], 64)) : M("", !0),
23262
23303
  e.type.includes("tool-subagent") || e.type === "tool-runWorker" ? oi(t.$slots, "subagent", { part: e }, void 0, void 0, 2) : oi(t.$slots, H(st)(e.type), { part: e }, void 0, void 0, 3)
23263
23304
  ])])) : M("", !0),
23264
23305
  H(tt)(e) ? (z(), j(g, {
@@ -23274,26 +23315,26 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23274
23315
  _: 2
23275
23316
  }, 1024)) : M("", !0)
23276
23317
  ]))), 128))]),
23277
- I(Kk, { message: e.message }, null, 8, ["message"])
23318
+ I(qk, { message: e.message }, null, 8, ["message"])
23278
23319
  ]);
23279
23320
  };
23280
23321
  }
23281
- }), NA = {
23322
+ }), PA = {
23282
23323
  key: 0,
23283
23324
  class: "border-t border-surface-3"
23284
- }, PA = { class: "flex flex-col" }, FA = { class: "flex items-center hover:bg-surface-1 transition-colors" }, IA = ["aria-expanded", "onClick"], LA = { class: "flex items-center gap-4 shrink-0" }, RA = {
23325
+ }, FA = { class: "flex flex-col" }, IA = { class: "flex items-center hover:bg-surface-1 transition-colors" }, LA = ["aria-expanded", "onClick"], RA = { class: "flex items-center gap-4 shrink-0" }, zA = {
23285
23326
  key: 0,
23286
23327
  class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2"
23287
- }, zA = { class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2 uppercase" }, BA = {
23328
+ }, BA = { class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2 uppercase" }, VA = {
23288
23329
  key: 0,
23289
23330
  class: "border-t border-surface-3"
23290
- }, VA = {
23331
+ }, HA = {
23291
23332
  key: 0,
23292
23333
  class: "px-8 py-4 text-10 text-word-3 bg-surface-1 border-b border-surface-3"
23293
- }, HA = ["onClick"], UA = {
23334
+ }, UA = ["onClick"], WA = {
23294
23335
  key: 0,
23295
23336
  class: "px-8 py-6 bg-surface-1 border-t border-surface-3"
23296
- }, WA = { class: "flex justify-between items-center gap-4 min-w-0" }, GA = { class: "font-semibold text-12 truncate" }, KA = /* @__PURE__ */ L({
23337
+ }, GA = { class: "flex justify-between items-center gap-4 min-w-0" }, KA = { class: "font-semibold text-12 truncate" }, qA = /* @__PURE__ */ L({
23297
23338
  __name: "PkMessageDetail",
23298
23339
  props: {
23299
23340
  message: {},
@@ -23318,14 +23359,14 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23318
23359
  };
23319
23360
  return (s, c) => {
23320
23361
  let l = Ar, u = Je, d = yr;
23321
- return z(), j(MA, { message: e.message }, Vr({
23362
+ return z(), j(NA, { message: e.message }, Vr({
23322
23363
  subagent: G(({ part: t }) => [t.output?.reasoningChatId && (t.output?.subAgentId || t.input?.objective) ? (z(), j(d, {
23323
23364
  key: 0,
23324
23365
  title: t.output.subAgentId ? s.$t("label.subAgent") : s.$t("agent.tool.runWorker"),
23325
23366
  modifiers: "details",
23326
23367
  class: "border-t border-surface-3"
23327
23368
  }, {
23328
- default: G(() => [P("div", WA, [P("strong", GA, V(t.output.subAgentName ?? t.input?.objective), 1), I(u, {
23369
+ default: G(() => [P("div", GA, [P("strong", KA, V(t.output.subAgentName ?? t.input?.objective), 1), I(u, {
23329
23370
  modifiers: "action-small",
23330
23371
  icon: "ri:eye-line",
23331
23372
  class: "text-10 shrink-0",
@@ -23344,10 +23385,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23344
23385
  _: 2
23345
23386
  }, [e.canReadDocuments ? {
23346
23387
  name: "tool-search-in-knowledge-base",
23347
- fn: G(({ part: c }) => [c.output?.results?.length ? (z(), N("div", NA, [P("ul", PA, [(z(!0), N(k, null, ai(o(c.output.results), (o) => (z(), N("li", {
23388
+ fn: G(({ part: c }) => [c.output?.results?.length ? (z(), N("div", PA, [P("ul", FA, [(z(!0), N(k, null, ai(o(c.output.results), (o) => (z(), N("li", {
23348
23389
  key: o.document.id,
23349
23390
  class: "border-b border-surface-3 last:border-b-0"
23350
- }, [P("div", FA, [P("button", {
23391
+ }, [P("div", IA, [P("button", {
23351
23392
  type: "button",
23352
23393
  class: "flex items-center gap-8 p-8 flex-1 min-w-0 text-left cursor-pointer",
23353
23394
  "aria-expanded": t.has(o.document.id),
@@ -23363,14 +23404,14 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23363
23404
  "name",
23364
23405
  "url",
23365
23406
  "filename"
23366
- ]), P("div", LA, [
23367
- o.chunks.length > 1 ? (z(), N("span", RA, V(o.chunks.length), 1)) : M("", !0),
23368
- P("span", zA, V(o.document.language), 1),
23407
+ ]), P("div", RA, [
23408
+ o.chunks.length > 1 ? (z(), N("span", zA, V(o.chunks.length), 1)) : M("", !0),
23409
+ P("span", BA, V(o.document.language), 1),
23369
23410
  I(l, {
23370
23411
  name: t.has(o.document.id) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
23371
23412
  class: "text-16 text-word-3"
23372
23413
  }, null, 8, ["name"])
23373
- ])], 8, IA), I(u, {
23414
+ ])], 8, LA), I(u, {
23374
23415
  modifiers: "action-quiet-small",
23375
23416
  icon: "ri:eye-line",
23376
23417
  class: "text-10 shrink-0 mr-8",
@@ -23387,7 +23428,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23387
23428
  "title",
23388
23429
  "aria-label",
23389
23430
  "to"
23390
- ])]), t.has(o.document.id) ? (z(), N("div", BA, [o.document.source.description ? (z(), N("div", VA, V(o.document.source.description), 1)) : M("", !0), (z(!0), N(k, null, ai(o.chunks, (e) => (z(), N("div", {
23431
+ ])]), t.has(o.document.id) ? (z(), N("div", VA, [o.document.source.description ? (z(), N("div", HA, V(o.document.source.description), 1)) : M("", !0), (z(!0), N(k, null, ai(o.chunks, (e) => (z(), N("div", {
23391
23432
  key: e.id,
23392
23433
  class: "border-b border-surface-3 last:border-b-0"
23393
23434
  }, [P("button", {
@@ -23403,7 +23444,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23403
23444
  "similarity",
23404
23445
  "max-similarity",
23405
23446
  "expanded"
23406
- ])], 8, HA), n.has(e.id) ? (z(), N("div", UA, [I(Xe, {
23447
+ ])], 8, UA), n.has(e.id) ? (z(), N("div", WA, [I(Xe, {
23407
23448
  markdown: e.content,
23408
23449
  class: "wysiwyg text-10"
23409
23450
  }, null, 8, ["markdown"])])) : M("", !0)]))), 128))])) : M("", !0)]))), 128))])])) : M("", !0)]),
@@ -23411,19 +23452,19 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23411
23452
  } : void 0]), 1032, ["message"]);
23412
23453
  };
23413
23454
  }
23414
- }), qA = { class: "flex flex-col h-full bg-surface rounded-xl" }, JA = { class: "sticky z-1 top-0 bg-surface-1 flex items-center justify-between gap-sm p-sm border-b border-surface-3" }, YA = { class: "flex items-center gap-sm min-w-0" }, XA = ["title"], ZA = {
23455
+ }), JA = { class: "flex flex-col h-full bg-surface rounded-xl" }, YA = { class: "sticky z-1 top-0 bg-surface-1 flex items-center justify-between gap-sm p-sm border-b border-surface-3" }, XA = { class: "flex items-center gap-sm min-w-0" }, ZA = ["title"], QA = {
23415
23456
  key: 1,
23416
23457
  class: "text-14 font-bold"
23417
- }, QA = { class: "flex-1 flex flex-col gap-md p-md overflow-y-auto min-h-0" }, $A = { class: "flex flex-col" }, ej = { class: "text-12 font-medium text-word-2 mb-xs block" }, tj = ["placeholder", "disabled"], nj = { class: "flex justify-end mt-xs" }, rj = {
23458
+ }, $A = { class: "flex-1 flex flex-col gap-md p-md overflow-y-auto min-h-0" }, ej = { class: "flex flex-col" }, tj = { class: "text-12 font-medium text-word-2 mb-xs block" }, nj = ["placeholder", "disabled"], rj = { class: "flex justify-end mt-xs" }, ij = {
23418
23459
  key: 1,
23419
23460
  class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
23420
- }, ij = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, aj = { class: "text-12 text-word-3" }, oj = {
23461
+ }, aj = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, oj = { class: "text-12 text-word-3" }, sj = {
23421
23462
  key: 2,
23422
23463
  class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
23423
- }, sj = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, cj = { class: "text-12 font-medium text-word-2" }, lj = { class: "flex items-center gap-xs ml-auto" }, uj = {
23464
+ }, cj = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, lj = { class: "text-12 font-medium text-word-2" }, uj = { class: "flex items-center gap-xs ml-auto" }, dj = {
23424
23465
  key: 0,
23425
23466
  class: "py-sm text-word-2 leading-normal"
23426
- }, dj = /* @__PURE__ */ L({
23467
+ }, fj = /* @__PURE__ */ L({
23427
23468
  __name: "PkReasoningChat",
23428
23469
  props: {
23429
23470
  baseUrl: {},
@@ -23459,7 +23500,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23459
23500
  }), _ = A(() => g.value?.parts.find((e) => e.type === "text")?.text || "");
23460
23501
  return (t, r) => {
23461
23502
  let o = Je, s = xr, l = Ar;
23462
- return z(), N("div", qA, [P("div", JA, [P("div", YA, [I(Kn, {
23503
+ return z(), N("div", JA, [P("div", YA, [P("div", XA, [I(Kn, {
23463
23504
  modifiers: "surface ring shrink-0",
23464
23505
  class: "w-24 h-24",
23465
23506
  name: e.name
@@ -23467,16 +23508,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23467
23508
  key: 0,
23468
23509
  class: "text-14 font-bold truncate",
23469
23510
  title: e.name
23470
- }, V(e.name), 9, XA)) : (z(), N("strong", ZA, V(H(n)("label.reasoningAgentTester")), 1))]), h.value ? (z(), j(o, {
23511
+ }, V(e.name), 9, ZA)) : (z(), N("strong", QA, V(H(n)("label.reasoningAgentTester")), 1))]), h.value ? (z(), j(o, {
23471
23512
  key: 0,
23472
23513
  icon: "ri:reset-right-line",
23473
23514
  modifiers: "action-quiet",
23474
23515
  title: H(n)("action.clear"),
23475
23516
  disabled: m.value,
23476
23517
  onClick: p
23477
- }, null, 8, ["title", "disabled"])) : M("", !0)]), P("div", QA, [
23478
- P("div", $A, [
23479
- P("label", ej, V(H(n)("label.question")), 1),
23518
+ }, null, 8, ["title", "disabled"])) : M("", !0)]), P("div", $A, [
23519
+ P("div", ej, [
23520
+ P("label", tj, V(H(n)("label.question")), 1),
23480
23521
  _i(P("textarea", {
23481
23522
  "onUpdate:modelValue": r[0] ||= (e) => a.value = e,
23482
23523
  placeholder: H(n)("placeholder.enterYourQuestion"),
@@ -23484,8 +23525,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23484
23525
  class: "pk-reasoning-chat__input u-field w-full p-sm text-14 min-h-64",
23485
23526
  rows: "3",
23486
23527
  onKeydown: f
23487
- }, null, 40, tj), [[gi, a.value]]),
23488
- P("div", nj, [I(o, {
23528
+ }, null, 40, nj), [[gi, a.value]]),
23529
+ P("div", rj, [I(o, {
23489
23530
  label: H(n)("action.submit"),
23490
23531
  loading: m.value,
23491
23532
  disabled: !a.value.trim() || m.value,
@@ -23502,17 +23543,17 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23502
23543
  title: H(n)("label.error"),
23503
23544
  content: H(c).message
23504
23545
  }, null, 8, ["title", "content"])) : M("", !0),
23505
- m.value && !g.value ? (z(), N("div", rj, [P("div", ij, [I(l, {
23546
+ m.value && !g.value ? (z(), N("div", ij, [P("div", aj, [I(l, {
23506
23547
  name: "loading-loop",
23507
23548
  class: "w-16 h-16"
23508
- }), P("span", aj, V(H(n)("label.processing")), 1)]), r[2] ||= P("div", { class: "vv-skeleton flex flex-col gap-8" }, [P("div", { class: "vv-skeleton__item h-12 rounded" }), P("div", { class: "vv-skeleton__item h-12 rounded w-192" })], -1)])) : M("", !0),
23509
- g.value ? (z(), N("div", oj, [P("div", sj, [
23549
+ }), P("span", oj, V(H(n)("label.processing")), 1)]), r[2] ||= P("div", { class: "vv-skeleton flex flex-col gap-8" }, [P("div", { class: "vv-skeleton__item h-12 rounded" }), P("div", { class: "vv-skeleton__item h-12 rounded w-192" })], -1)])) : M("", !0),
23550
+ g.value ? (z(), N("div", sj, [P("div", cj, [
23510
23551
  I(l, {
23511
23552
  name: "ri:robot-2-line",
23512
23553
  class: "w-16 h-16"
23513
23554
  }),
23514
- P("span", cj, V(H(n)("label.answer")), 1),
23515
- P("div", lj, [m.value ? (z(), j(l, {
23555
+ P("span", lj, V(H(n)("label.answer")), 1),
23556
+ P("div", uj, [m.value ? (z(), j(l, {
23516
23557
  key: 0,
23517
23558
  name: "loading-loop",
23518
23559
  class: "w-14 h-14"
@@ -23523,7 +23564,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23523
23564
  modifiers: "action-quiet-small",
23524
23565
  onClick: r[1] ||= yi((e) => i("show-info", g.value), ["stop"])
23525
23566
  }, null, 8, ["title"])) : M("", !0)])
23526
- ]), _.value ? (z(), N("div", uj, [I(Xe, {
23567
+ ]), _.value ? (z(), N("div", dj, [I(Xe, {
23527
23568
  markdown: _.value,
23528
23569
  loading: m.value,
23529
23570
  class: "wysiwyg text-14"
@@ -23531,7 +23572,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23531
23572
  ])]);
23532
23573
  };
23533
23574
  }
23534
- }), fj = { class: "welcome-popup__text" }, pj = ["aria-label"], mj = 100, hj = /* @__PURE__ */ L({
23575
+ }), pj = { class: "welcome-popup__text" }, mj = ["aria-label"], hj = 100, gj = /* @__PURE__ */ L({
23535
23576
  __name: "PkWelcomePopup",
23536
23577
  props: {
23537
23578
  agentId: {},
@@ -23546,7 +23587,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23546
23587
  c.value = [], s.value = !1;
23547
23588
  let t = e.split(/(\s+)/), n = 0;
23548
23589
  function r() {
23549
- n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, mj)) : s.value = !0;
23590
+ n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, hj)) : s.value = !0;
23550
23591
  }
23551
23592
  r();
23552
23593
  }
@@ -23570,7 +23611,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23570
23611
  key: 0,
23571
23612
  class: "welcome-popup",
23572
23613
  onClick: yi(m, ["stop"])
23573
- }, [P("p", fj, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N("span", {
23614
+ }, [P("p", pj, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N("span", {
23574
23615
  key: t,
23575
23616
  class: "welcome-popup__word"
23576
23617
  }, V(e), 1))), 128))]), I(Lr, null, {
@@ -23586,35 +23627,35 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23586
23627
  width: "14",
23587
23628
  height: "14",
23588
23629
  fill: "currentColor"
23589
- }, [P("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, pj)) : M("", !0)]),
23630
+ }, [P("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, mj)) : M("", !0)]),
23590
23631
  _: 1
23591
23632
  })])) : M("", !0)]),
23592
23633
  _: 1
23593
23634
  }));
23594
23635
  }
23595
- }), gj = {
23636
+ }), _j = {
23596
23637
  key: 0,
23597
23638
  class: "pk-working-beam",
23598
23639
  "aria-hidden": "true"
23599
- }, _j = /* @__PURE__ */ L({
23640
+ }, vj = /* @__PURE__ */ L({
23600
23641
  __name: "PkWorkingBeam",
23601
23642
  props: { active: { type: Boolean } },
23602
23643
  setup(e) {
23603
23644
  return (t, n) => (z(), j(Lr, { name: "pk-working-beam" }, {
23604
- default: G(() => [e.active ? (z(), N("span", gj, [...n[0] ||= [P("span", { class: "pk-working-beam__halo" }, null, -1), P("span", { class: "pk-working-beam__ring" }, [P("span", { class: "pk-working-beam__light" })], -1)]])) : M("", !0)]),
23645
+ default: G(() => [e.active ? (z(), N("span", _j, [...n[0] ||= [P("span", { class: "pk-working-beam__halo" }, null, -1), P("span", { class: "pk-working-beam__ring" }, [P("span", { class: "pk-working-beam__light" })], -1)]])) : M("", !0)]),
23605
23646
  _: 1
23606
23647
  }));
23607
23648
  }
23608
- }), vj = { class: "pk-pagination mt-auto grid grid-cols-3 gap-md pt-24" }, yj = { class: "flex items-center" }, bj = ["for"], xj = ["id", "disabled"], Sj = ["value"], Cj = {
23649
+ }), yj = { class: "pk-pagination mt-auto grid grid-cols-3 gap-md pt-24" }, bj = { class: "flex items-center" }, xj = ["for"], Sj = ["id", "disabled"], Cj = ["value"], wj = {
23609
23650
  key: 1,
23610
23651
  class: "ml-8 text-12 font-semibold tabular-nums"
23611
- }, wj = { class: "flex justify-center items-center" }, Tj = {
23652
+ }, Tj = { class: "flex justify-center items-center" }, Ej = {
23612
23653
  class: "rounded-md border border-surface-3 px-14 py-4 text-center text-12 font-bold tabular-nums",
23613
23654
  type: "button"
23614
- }, Ej = {
23655
+ }, Dj = {
23615
23656
  key: 0,
23616
23657
  class: "ml-6 text-12 whitespace-nowrap tabular-nums"
23617
- }, Dj = { class: "flex text-12 justify-end items-center whitespace-nowrap tabular-nums" }, Oj = /* @__PURE__ */ L({
23658
+ }, Oj = { class: "flex text-12 justify-end items-center whitespace-nowrap tabular-nums" }, kj = /* @__PURE__ */ L({
23618
23659
  __name: "PkPagination",
23619
23660
  props: {
23620
23661
  page: {
@@ -23646,11 +23687,11 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23646
23687
  });
23647
23688
  return (t, i) => {
23648
23689
  let u = Je, d = wr;
23649
- return z(), N("div", vj, [
23650
- P("div", yj, [P("label", {
23690
+ return z(), N("div", yj, [
23691
+ P("div", bj, [P("label", {
23651
23692
  for: H(r),
23652
23693
  class: "text-12 whitespace-nowrap"
23653
- }, V(H(n)("label.itemsPerPage")), 9, bj), e.limitSteps ? _i((z(), N("select", {
23694
+ }, V(H(n)("label.itemsPerPage")), 9, xj), e.limitSteps ? _i((z(), N("select", {
23654
23695
  key: 0,
23655
23696
  id: H(r),
23656
23697
  "onUpdate:modelValue": i[0] ||= (e) => l.value = e,
@@ -23659,8 +23700,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23659
23700
  }, [(z(!0), N(k, null, ai(e.limitSteps, (e) => (z(), N("option", {
23660
23701
  key: e,
23661
23702
  value: e
23662
- }, V(e), 9, Sj))), 128))], 8, xj)), [[hi, l.value]]) : (z(), N("span", Cj, V(e.limit), 1))]),
23663
- P("div", wj, [I(d, { class: "flex-nowrap" }, {
23703
+ }, V(e), 9, Cj))), 128))], 8, Sj)), [[hi, l.value]]) : (z(), N("span", wj, V(e.limit), 1))]),
23704
+ P("div", Tj, [I(d, { class: "flex-nowrap" }, {
23664
23705
  default: G(() => [
23665
23706
  I(u, {
23666
23707
  title: H(n)("action.prev"),
@@ -23669,7 +23710,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23669
23710
  modifiers: "action-quiet",
23670
23711
  onClick: i[1] ||= yi((t) => a("update:page", e.page - 1), ["stop"])
23671
23712
  }, null, 8, ["title", "disabled"]),
23672
- P("button", Tj, V(e.page), 1),
23713
+ P("button", Ej, V(e.page), 1),
23673
23714
  I(u, {
23674
23715
  title: H(n)("action.next"),
23675
23716
  disabled: c.value,
@@ -23679,21 +23720,21 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23679
23720
  }, null, 8, ["title", "disabled"])
23680
23721
  ]),
23681
23722
  _: 1
23682
- }), o.value ? (z(), N("small", Ej, V(H(n)("label.totalPages", { total: o.value })), 1)) : M("", !0)]),
23683
- P("div", Dj, V(H(n)("label.totalItemsCount", { total: e.total })), 1)
23723
+ }), o.value ? (z(), N("small", Dj, V(H(n)("label.totalPages", { total: o.value })), 1)) : M("", !0)]),
23724
+ P("div", Oj, V(H(n)("label.totalItemsCount", { total: e.total })), 1)
23684
23725
  ]);
23685
23726
  };
23686
23727
  }
23687
- }), kj = { class: "pk-table-empty" }, Aj = {
23728
+ }), Aj = { class: "pk-table-empty" }, jj = {
23688
23729
  class: "pk-table-empty__glyph",
23689
23730
  "aria-hidden": "true"
23690
- }, jj = { class: "pk-table-empty__text" }, Mj = { class: "pk-table-empty__title" }, Nj = {
23731
+ }, Mj = { class: "pk-table-empty__text" }, Nj = { class: "pk-table-empty__title" }, Pj = {
23691
23732
  key: 0,
23692
23733
  class: "pk-table-empty__description"
23693
- }, Pj = {
23734
+ }, Fj = {
23694
23735
  key: 0,
23695
23736
  class: "pk-table-empty__actions"
23696
- }, Fj = /* @__PURE__ */ L({
23737
+ }, Ij = /* @__PURE__ */ L({
23697
23738
  __name: "PkTableEmpty",
23698
23739
  props: {
23699
23740
  title: { default: void 0 },
@@ -23704,86 +23745,86 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
23704
23745
  let { t } = bi({ useScope: "global" });
23705
23746
  return (n, r) => {
23706
23747
  let i = Ar;
23707
- return z(), N("div", kj, [
23708
- P("div", Aj, [I(i, { name: e.icon }, null, 8, ["name"])]),
23709
- P("div", jj, [P("strong", Mj, V(e.title ?? H(t)("message.empty")), 1), e.description ? (z(), N("p", Nj, V(e.description), 1)) : M("", !0)]),
23710
- n.$slots.actions ? (z(), N("div", Pj, [oi(n.$slots, "actions")])) : M("", !0)
23748
+ return z(), N("div", Aj, [
23749
+ P("div", jj, [I(i, { name: e.icon }, null, 8, ["name"])]),
23750
+ P("div", Mj, [P("strong", Nj, V(e.title ?? H(t)("message.empty")), 1), e.description ? (z(), N("p", Pj, V(e.description), 1)) : M("", !0)]),
23751
+ n.$slots.actions ? (z(), N("div", Fj, [oi(n.$slots, "actions")])) : M("", !0)
23711
23752
  ]);
23712
23753
  };
23713
23754
  }
23714
- }), Ij = { class: "flex flex-col items-center justify-center w-full text-md p-md leading-normal" }, Lj = { class: "mb-4" }, Rj = { class: "font-bold" }, zj = { class: "text-smaller text-word-3" }, Bj = /* @__PURE__ */ L({
23755
+ }), Lj = { class: "flex flex-col items-center justify-center w-full text-md p-md leading-normal" }, Rj = { class: "mb-4" }, zj = { class: "font-bold" }, Bj = { class: "text-smaller text-word-3" }, Vj = /* @__PURE__ */ L({
23715
23756
  __name: "PkTableError",
23716
23757
  setup(e) {
23717
23758
  let { t } = bi({ useScope: "global" });
23718
23759
  return (e, n) => {
23719
23760
  let r = Ar;
23720
- return z(), N("div", Ij, [
23721
- P("div", Lj, [I(r, {
23761
+ return z(), N("div", Lj, [
23762
+ P("div", Rj, [I(r, {
23722
23763
  name: "ri:alert-line",
23723
23764
  class: "text-32 text-word-2"
23724
23765
  })]),
23725
- P("strong", Rj, V(H(t)("message.warning")), 1),
23726
- P("div", zj, V(H(t)("message.readError")), 1)
23766
+ P("strong", zj, V(H(t)("message.warning")), 1),
23767
+ P("div", Bj, V(H(t)("message.readError")), 1)
23727
23768
  ]);
23728
23769
  };
23729
23770
  }
23730
23771
  });
23731
23772
  // ../../node_modules/.pnpm/ts-util-is@2.1.0/node_modules/ts-util-is/dist/src/index.js
23732
- function Vj(e) {
23773
+ function Hj(e) {
23733
23774
  return Array.isArray(e);
23734
23775
  }
23735
- function Hj(e) {
23776
+ function Uj(e) {
23736
23777
  return e !== void 0;
23737
23778
  }
23738
- function Uj(e) {
23779
+ function Wj(e) {
23739
23780
  return e === null;
23740
23781
  }
23741
- function Wj(e) {
23782
+ function Gj(e) {
23742
23783
  return typeof e == "object";
23743
23784
  }
23744
- function Gj(e) {
23785
+ function Kj(e) {
23745
23786
  return typeof e == "string";
23746
23787
  }
23747
- function Kj(e) {
23788
+ function qj(e) {
23748
23789
  return e === void 0;
23749
23790
  }
23750
23791
  // ../../node_modules/.pnpm/ts-dot-prop@2.1.4/node_modules/ts-dot-prop/dist/index.js
23751
- var qj = /^[0-9]+$/, Jj = [
23792
+ var Jj = /^[0-9]+$/, Yj = [
23752
23793
  "__proto__",
23753
23794
  "prototype",
23754
23795
  "constructor"
23755
23796
  ];
23756
- function Yj(e, t, n) {
23757
- let r = Hj(n) ? n : void 0;
23758
- if (!Wj(e) || !Gj(t)) return r;
23759
- let i = Xj(t);
23797
+ function Xj(e, t, n) {
23798
+ let r = Uj(n) ? n : void 0;
23799
+ if (!Gj(e) || !Kj(t)) return r;
23800
+ let i = Zj(t);
23760
23801
  if (i.length !== 0) {
23761
23802
  for (let t of i) {
23762
23803
  if (t === "*") continue;
23763
23804
  let n = function(e) {
23764
- return e.map((e) => Kj(e) || Uj(e) ? e : Vj(e) ? n(e) : e[t]);
23805
+ return e.map((e) => qj(e) || Wj(e) ? e : Hj(e) ? n(e) : e[t]);
23765
23806
  };
23766
- if (e = Vj(e) && !qj.test(t) ? n(e) : e[t], Kj(e) || Uj(e)) break;
23807
+ if (e = Hj(e) && !Jj.test(t) ? n(e) : e[t], qj(e) || Wj(e)) break;
23767
23808
  }
23768
- return Kj(e) ? r : e;
23809
+ return qj(e) ? r : e;
23769
23810
  }
23770
23811
  }
23771
- function Xj(e) {
23812
+ function Zj(e) {
23772
23813
  let t = e.split(/[.]|(?:\[(\d|\*)\])/).filter((e) => !!e);
23773
- return t.some((e) => Jj.indexOf(e) !== -1) ? [] : t;
23814
+ return t.some((e) => Yj.indexOf(e) !== -1) ? [] : t;
23774
23815
  }
23775
23816
  // ../../packages/components/src/table/PkTableSortable.vue?vue&type=script&setup=true&lang.ts
23776
- var Zj = {
23817
+ var Qj = {
23777
23818
  key: 0,
23778
23819
  class: "pk-table-sortable__sort"
23779
- }, Qj = ["for"], $j = ["id"], eM = {
23820
+ }, $j = ["for"], eM = ["id"], tM = {
23780
23821
  key: 0,
23781
23822
  value: "",
23782
23823
  disabled: ""
23783
- }, tM = ["value"], nM = { key: 0 }, rM = {
23824
+ }, nM = ["value"], rM = { key: 0 }, iM = {
23784
23825
  key: 0,
23785
23826
  class: "truncate"
23786
- }, iM = ["onClick"], aM = ["onClick"], oM = ["data-label"], sM = { key: 1 }, cM = ["colspan"], lM = { key: 2 }, uM = ["colspan"], dM = { key: 1 }, fM = { key: 2 }, pM = "a, button, input, select, textarea, label, [contenteditable], [role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"menuitem\"]", mM = /* @__PURE__ */ L({
23827
+ }, aM = ["onClick"], oM = ["onClick"], sM = ["data-label"], cM = { key: 1 }, lM = ["colspan"], uM = { key: 2 }, dM = ["colspan"], fM = { key: 1 }, pM = { key: 2 }, mM = "a, button, input, select, textarea, label, [contenteditable], [role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"menuitem\"]", hM = /* @__PURE__ */ L({
23787
23828
  __name: "PkTableSortable",
23788
23829
  props: {
23789
23830
  columns: {
@@ -23923,7 +23964,7 @@ var Zj = {
23923
23964
  let S = (e) => {
23924
23965
  u.value === e ? d.value = d.value === "asc" ? "desc" : "asc" : u.value = e;
23925
23966
  }, C = (e, t, n) => {
23926
- a.rowClickable && (n.target?.closest(pM) || o("click:row", e, t));
23967
+ a.rowClickable && (n.target?.closest(mM) || o("click:row", e, t));
23927
23968
  }, te = () => {
23928
23969
  l.value++;
23929
23970
  }, w = () => {
@@ -23933,19 +23974,19 @@ var Zj = {
23933
23974
  a.page || o("update:page", l.value), a.limit || o("update:limit", c.value);
23934
23975
  }), (t, a) => {
23935
23976
  let o = Je, ne = Ar;
23936
- return z(), N("div", { class: Xr(["pk-table-sortable", { "pk-table-sortable--stacked": e.stacked }]) }, [P("div", { class: Xr([v.value, "pk-table-sortable__wrapper"]) }, [e.stacked && !e.hideHead && m.value.length ? (z(), N("div", Zj, [
23977
+ return z(), N("div", { class: Xr(["pk-table-sortable", { "pk-table-sortable--stacked": e.stacked }]) }, [P("div", { class: Xr([v.value, "pk-table-sortable__wrapper"]) }, [e.stacked && !e.hideHead && m.value.length ? (z(), N("div", Qj, [
23937
23978
  P("label", {
23938
23979
  for: H(i),
23939
23980
  class: "text-12 text-word-3 truncate"
23940
- }, V(H(r)("label.sortBy")), 9, Qj),
23981
+ }, V(H(r)("label.sortBy")), 9, $j),
23941
23982
  _i(P("select", {
23942
23983
  id: H(i),
23943
23984
  "onUpdate:modelValue": a[0] ||= (e) => h.value = e,
23944
23985
  class: "pk-table-sortable__sort-field u-field u-field--compact"
23945
- }, [h.value ? M("", !0) : (z(), N("option", eM)), (z(!0), N(k, null, ai(m.value, (e) => (z(), N("option", {
23986
+ }, [h.value ? M("", !0) : (z(), N("option", tM)), (z(!0), N(k, null, ai(m.value, (e) => (z(), N("option", {
23946
23987
  key: e.name,
23947
23988
  value: e.name
23948
- }, V(e.label), 9, tM))), 128))], 8, $j), [[hi, h.value]]),
23989
+ }, V(e.label), 9, nM))), 128))], 8, eM), [[hi, h.value]]),
23949
23990
  I(o, {
23950
23991
  modifiers: "action-quiet",
23951
23992
  icon: H(d) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line",
@@ -23960,7 +24001,7 @@ var Zj = {
23960
24001
  "disabled"
23961
24002
  ])
23962
24003
  ])) : M("", !0), P("table", { class: Xr(["vv-table", e.classTable]) }, [
23963
- e.hideHead ? M("", !0) : (z(), N("thead", nM, [P("tr", null, [(z(!0), N(k, null, ai(p.value, (e) => (z(), N("th", Jr({ key: e.name }, { ref_for: !0 }, { class: [
24004
+ e.hideHead ? M("", !0) : (z(), N("thead", rM, [P("tr", null, [(z(!0), N(k, null, ai(p.value, (e) => (z(), N("th", Jr({ key: e.name }, { ref_for: !0 }, { class: [
23964
24005
  e.class,
23965
24006
  e.classTh,
23966
24007
  { selected: H(u) === e.name }
@@ -23968,7 +24009,7 @@ var Zj = {
23968
24009
  key: 1,
23969
24010
  type: "button",
23970
24011
  onClick: (t) => S(e.name)
23971
- }, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)]), I(ne, Jr({ class: { "opacity-30": H(u) !== e.name } }, { ref_for: !0 }, H(u) === e.name ? { name: H(d) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line" } : { name: "ri:arrow-up-down-line" }), null, 16, ["class"])], 8, iM)) : (z(), N("div", rM, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)])]))], 16))), 128))])])),
24012
+ }, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)]), I(ne, Jr({ class: { "opacity-30": H(u) !== e.name } }, { ref_for: !0 }, H(u) === e.name ? { name: H(d) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line" } : { name: "ri:arrow-up-down-line" }), null, 16, ["class"])], 8, aM)) : (z(), N("div", iM, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)])]))], 16))), 128))])])),
23972
24013
  I(Rr, {
23973
24014
  tag: "tbody",
23974
24015
  name: e.transitionName
@@ -23980,7 +24021,7 @@ var Zj = {
23980
24021
  })), () => [e.isLoading ? oi(t.$slots, "loading", {}, () => [(z(!0), N(k, null, ai(c.value, (e) => (z(), N("tr", { key: e }, [(z(!0), N(k, null, ai(p.value, ({ name: n, wrapperClass: r }) => (z(), N("td", { key: n }, [oi(t.$slots, `skeleton::${n}`, Jr({ ref_for: !0 }, {
23981
24022
  index: e,
23982
24023
  wrapperClass: r
23983
- }), () => [P("div", { class: Xr(["vv-skeleton", r]) }, [...a[3] ||= [P("div", { class: "vv-skeleton__item" }, null, -1)]], 2)])]))), 128))]))), 128))], void 0, 0) : e.isError ? e.isError ? (z(), N("tr", lM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "error", {}, () => [I(Bj)])], 8, uM)])) : M("", !0) : (z(), N(k, { key: 1 }, [e.data?.length ? (z(!0), N(k, { key: 0 }, ai(e.data, (r, i) => (z(), N("tr", {
24024
+ }), () => [P("div", { class: Xr(["vv-skeleton", r]) }, [...a[3] ||= [P("div", { class: "vv-skeleton__item" }, null, -1)]], 2)])]))), 128))]))), 128))], void 0, 0) : e.isError ? e.isError ? (z(), N("tr", uM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "error", {}, () => [I(Vj)])], 8, dM)])) : M("", !0) : (z(), N(k, { key: 1 }, [e.data?.length ? (z(!0), N(k, { key: 0 }, ai(e.data, (r, i) => (z(), N("tr", {
23984
24025
  key: i,
23985
24026
  class: Xr([{
23986
24027
  "pk-table-sortable__row--clickable": e.rowClickable,
@@ -24004,11 +24045,11 @@ var Zj = {
24004
24045
  wrapperClass: o,
24005
24046
  index: i,
24006
24047
  value: r[e]
24007
- }), () => [P("div", { class: Xr(["truncate", o]) }, V(H(Yj)(r, a ?? e)), 3)], void 0, 2)], 10, oM))), 128))], 10, aM))), 128)) : (z(), N("tr", sM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "empty", {}, () => [I(Fj)])], 8, cM)]))], 64))])]),
24048
+ }), () => [P("div", { class: Xr(["truncate", o]) }, V(H(Xj)(r, a ?? e)), 3)], void 0, 2)], 10, sM))), 128))], 10, oM))), 128)) : (z(), N("tr", cM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "empty", {}, () => [I(Ij)])], 8, lM)]))], 64))])]),
24008
24049
  _: 3
24009
24050
  }, 8, ["name"]),
24010
- H(n).tfoot ? (z(), N("tfoot", dM, [oi(t.$slots, "tfoot")])) : M("", !0),
24011
- H(n).caption ? (z(), N("caption", fM, [oi(t.$slots, "caption")])) : M("", !0)
24051
+ H(n).tfoot ? (z(), N("tfoot", fM, [oi(t.$slots, "tfoot")])) : M("", !0),
24052
+ H(n).caption ? (z(), N("caption", pM, [oi(t.$slots, "caption")])) : M("", !0)
24012
24053
  ], 2)], 2), oi(t.$slots, "navigation", Zr(Ur({
24013
24054
  hide: e.hideNavigation,
24014
24055
  prevDisabled: x.value,
@@ -24017,7 +24058,7 @@ var Zj = {
24017
24058
  next: te,
24018
24059
  total: f.value,
24019
24060
  page: l.value
24020
- })), () => [e.hideNavigation ? M("", !0) : (z(), j(Oj, {
24061
+ })), () => [e.hideNavigation ? M("", !0) : (z(), j(kj, {
24021
24062
  key: 0,
24022
24063
  page: l.value,
24023
24064
  total: s.value ?? 0,
@@ -24038,6 +24079,6 @@ var Zj = {
24038
24079
  };
24039
24080
  }
24040
24081
  });
24041
- export { AE as AGENT_STATUS_GLYPHS, jE as AGENT_VISIBILITY_GLYPHS, UE as MODEL_CATALOG_KEY, RE as PkAgentSelectorInline, PO as PkAgentSettingsPanel, yt as PkAuroraCanvas, Kn as PkAvatar, Ri as PkBadge, Qn as PkChatButton, qO as PkChatSidebar, IO as PkChatSidebarConversationItem, nr as PkChatbot, qe as PkChatbotAuth, er as PkChatbotEmptyState, Ct as PkChatbotError, qn as PkChatbotFeedbackForm, Un as PkChatbotFilePreview, $n as PkChatbotInput, v as PkChatbotMessages, Xn as PkChatbotStepPayload, Zn as PkChatbotStepToolDetail, Yn as PkChatbotSteps, St as PkChatbotViewChat, vt as PkChatbotViewConversations, tr as PkChatbotViewProfile, KT as PkCheckboxField, rr as PkChunkPreview, Ot as PkCode, fD as PkCopyBlock, ir as PkDocumentHeader, Ya as PkEditorAgentType, n as PkEditorCheckboxButtons, ls as PkEditorCode, so as PkEditorDocumentType, Ns as PkEditorJsonSchema, ET as PkEditorMarkdown, DT as PkEditorMedia, _o as PkEditorNotificationType, PT as PkEditorPrompt, t as PkEditorRadioButtons, HT as PkEditorRepeater, fs as PkFieldset, gs as PkIconOption, qT as PkInfobox, pD as PkInputColor, tE as PkIntegrationProvider, QE as PkLanguageModel, aD as PkLanguageModelCombobox, Bn as PkLazyImg, rE as PkLightbox, sE as PkLoader, lE as PkMedia, KA as PkMessageDetail, MA as PkMessageParts, iD as PkModelOption, vE as PkOfflineScreen, Oj as PkPagination, TE as PkPwaNotices, DE as PkQrCode, dj as PkReasoningChat, sD as PkReasoningSettings, Dt as PkRelativeTime, YO as PkRetryCountdown, Es as PkSchemaField, kE as PkSkeleton, Xe as PkStreamingMarkdown, Jn as PkStreamingMarkdownAutoscroll, Wn as PkSvgViewer, Fj as PkTableEmpty, Bj as PkTableError, mM as PkTableSortable, HE as PkToolApprovalBadge, vr as PkToolShareDocument, kt as PkToolShowArtifact, fr as PkToolShowCalendarEvent, pr as PkToolShowComparison, dr as PkToolShowContactForm, sr as PkToolShowEmail, r as PkToolShowForm, gr as PkToolShowImageGallery, mr as PkToolShowLocation, cr as PkToolShowMessage, ur as PkToolShowProductList, hr as PkToolShowQrCode, ar as PkToolShowSources, _r as PkToolShowSuggestedReply, lr as PkToolShowWebPages, Gn as PkUrl, xt as PkVoiceOrb, bt as PkVoiceSession, cD as PkWebSearchSettings, hj as PkWelcomePopup, _j as PkWorkingBeam, Je as VvButtonLocalized, ME as agentStatusGlyph, NE as agentVisibilityGlyph, ZT as integrationProviderIcon, or as isMcpOAuthReport, at as localizeSummaryLabels, Ye as provideChatImagePolicy, WE as provideModelCatalog, GE as useModelCatalogEntry };
24082
+ export { AE as AGENT_STATUS_GLYPHS, jE as AGENT_VISIBILITY_GLYPHS, UE as MODEL_CATALOG_KEY, RE as PkAgentSelectorInline, FO as PkAgentSettingsPanel, yt as PkAuroraCanvas, Kn as PkAvatar, Ri as PkBadge, Qn as PkChatButton, JO as PkChatSidebar, LO as PkChatSidebarConversationItem, nr as PkChatbot, qe as PkChatbotAuth, er as PkChatbotEmptyState, Ct as PkChatbotError, qn as PkChatbotFeedbackForm, Un as PkChatbotFilePreview, $n as PkChatbotInput, v as PkChatbotMessages, Xn as PkChatbotStepPayload, Zn as PkChatbotStepToolDetail, Yn as PkChatbotSteps, St as PkChatbotViewChat, vt as PkChatbotViewConversations, tr as PkChatbotViewProfile, KT as PkCheckboxField, rr as PkChunkPreview, Ot as PkCode, fD as PkCopyBlock, ir as PkDocumentHeader, Ya as PkEditorAgentType, n as PkEditorCheckboxButtons, ls as PkEditorCode, so as PkEditorDocumentType, Ns as PkEditorJsonSchema, ET as PkEditorMarkdown, DT as PkEditorMedia, _o as PkEditorNotificationType, PT as PkEditorPrompt, t as PkEditorRadioButtons, HT as PkEditorRepeater, fs as PkFieldset, gs as PkIconOption, qT as PkInfobox, pD as PkInputColor, tE as PkIntegrationProvider, QE as PkLanguageModel, aD as PkLanguageModelCombobox, Bn as PkLazyImg, rE as PkLightbox, sE as PkLoader, lE as PkMedia, qA as PkMessageDetail, NA as PkMessageParts, iD as PkModelOption, vE as PkOfflineScreen, kj as PkPagination, TE as PkPwaNotices, DE as PkQrCode, fj as PkReasoningChat, sD as PkReasoningSettings, Dt as PkRelativeTime, XO as PkRetryCountdown, Es as PkSchemaField, kE as PkSkeleton, Xe as PkStreamingMarkdown, Jn as PkStreamingMarkdownAutoscroll, Wn as PkSvgViewer, Ij as PkTableEmpty, Vj as PkTableError, hM as PkTableSortable, HE as PkToolApprovalBadge, vr as PkToolShareDocument, kt as PkToolShowArtifact, fr as PkToolShowCalendarEvent, pr as PkToolShowComparison, dr as PkToolShowContactForm, sr as PkToolShowEmail, r as PkToolShowForm, gr as PkToolShowImageGallery, mr as PkToolShowLocation, cr as PkToolShowMessage, ur as PkToolShowProductList, hr as PkToolShowQrCode, ar as PkToolShowSources, _r as PkToolShowSuggestedReply, lr as PkToolShowWebPages, Gn as PkUrl, xt as PkVoiceOrb, bt as PkVoiceSession, cD as PkWebSearchSettings, gj as PkWelcomePopup, vj as PkWorkingBeam, Je as VvButtonLocalized, ME as agentStatusGlyph, NE as agentVisibilityGlyph, ZT as integrationProviderIcon, or as isMcpOAuthReport, at as localizeSummaryLabels, Ye as provideChatImagePolicy, WE as provideModelCatalog, GE as useModelCatalogEntry };
24042
24083
 
24043
24084
  //# sourceMappingURL=index.js.map