@turquoisehealth/pit-viper 2.262.0 → 2.263.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/README.md +9 -8
  2. package/package.json +1 -1
  3. package/pv-components/dist/stats/vue/ai/stats.html +1 -1
  4. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  5. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  6. package/pv-components/dist/stats/web/ask-tq-buddy-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-accordion-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-action-bar-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-ai-button-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-animated-icon-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-avatar-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-banner-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-box-plot-stats.html +1 -1
  16. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +1 -1
  17. package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
  18. package/pv-components/dist/stats/web/pv-card-stats.html +1 -1
  19. package/pv-components/dist/stats/web/pv-checkbox-stats.html +1 -1
  20. package/pv-components/dist/stats/web/pv-company-label-stats.html +1 -1
  21. package/pv-components/dist/stats/web/pv-company-logo-stats.html +1 -1
  22. package/pv-components/dist/stats/web/pv-company-tag-stats.html +1 -1
  23. package/pv-components/dist/stats/web/pv-confirmation-stats.html +1 -1
  24. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +1 -1
  25. package/pv-components/dist/stats/web/pv-date-picker-stats.html +1 -1
  26. package/pv-components/dist/stats/web/pv-date-time-stats.html +1 -1
  27. package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +1 -1
  28. package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
  29. package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
  30. package/pv-components/dist/stats/web/pv-empty-error-state-stats.html +1 -1
  31. package/pv-components/dist/stats/web/pv-empty-state-stats.html +1 -1
  32. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
  33. package/pv-components/dist/stats/web/pv-file-input-stats.html +1 -1
  34. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  35. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  36. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
  37. package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
  38. package/pv-components/dist/stats/web/pv-horizontal-scroller-stats.html +1 -1
  39. package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
  40. package/pv-components/dist/stats/web/pv-icon-stats.html +1 -1
  41. package/pv-components/dist/stats/web/pv-input-stats.html +1 -1
  42. package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
  43. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  44. package/pv-components/dist/stats/web/pv-modal-stats.html +1 -1
  45. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  46. package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
  47. package/pv-components/dist/stats/web/pv-pill-stats.html +1 -1
  48. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +1 -1
  49. package/pv-components/dist/stats/web/pv-popover-stats.html +1 -1
  50. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
  51. package/pv-components/dist/stats/web/pv-progress-bar-stats.html +1 -1
  52. package/pv-components/dist/stats/web/pv-prompt-input-stats.html +1 -1
  53. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  54. package/pv-components/dist/stats/web/pv-question-stats.html +1 -1
  55. package/pv-components/dist/stats/web/pv-radio-group-stats.html +1 -1
  56. package/pv-components/dist/stats/web/pv-range-stats.html +1 -1
  57. package/pv-components/dist/stats/web/pv-rating-stats.html +1 -1
  58. package/pv-components/dist/stats/web/pv-reasoning-stats.html +1 -1
  59. package/pv-components/dist/stats/web/pv-release-badge-stats.html +1 -1
  60. package/pv-components/dist/stats/web/pv-resize-handle-stats.html +1 -1
  61. package/pv-components/dist/stats/web/pv-search-input-stats.html +1 -1
  62. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
  63. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  64. package/pv-components/dist/stats/web/pv-selectable-card-stats.html +1 -1
  65. package/pv-components/dist/stats/web/pv-side-panel-stats.html +1 -1
  66. package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
  67. package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
  68. package/pv-components/dist/stats/web/pv-skeleton-stats.html +1 -1
  69. package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
  70. package/pv-components/dist/stats/web/pv-spinner-stats.html +1 -1
  71. package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
  72. package/pv-components/dist/stats/web/pv-split-pane-stats.html +1 -1
  73. package/pv-components/dist/stats/web/pv-sprite-stats.html +1 -1
  74. package/pv-components/dist/stats/web/pv-step-list-stats.html +1 -1
  75. package/pv-components/dist/stats/web/pv-stepper-stats.html +1 -1
  76. package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +1 -1
  77. package/pv-components/dist/stats/web/pv-switch-stats.html +1 -1
  78. package/pv-components/dist/stats/web/pv-tab-list-stats.html +1 -1
  79. package/pv-components/dist/stats/web/pv-table-of-contents-stats.html +1 -1
  80. package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
  81. package/pv-components/dist/stats/web/pv-tag-stats.html +1 -1
  82. package/pv-components/dist/stats/web/pv-text-area-stats.html +1 -1
  83. package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
  84. package/pv-components/dist/stats/web/pv-toggle-button-stats.html +1 -1
  85. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  86. package/pv-components/dist/stats/web/pv-tool-stats.html +1 -1
  87. package/pv-components/dist/stats/web/pv-tooltip-stats.html +1 -1
  88. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  89. package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
  90. package/pv-components/dist/stats/web/pv-widget-stats.html +1 -1
  91. package/pv-components/dist/vue/ai/components/ai/PvReasoning/PvReasoning.vue.d.ts +2 -6
  92. package/pv-components/dist/vue/ai/components/base/AskTqBuddy/types.d.ts +3 -3
  93. package/pv-components/dist/vue/ai/components/base/PvSidebar/types.d.ts +1 -0
  94. package/pv-components/dist/vue/ai/pv-components-ai.mjs +154 -161
  95. package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
  96. package/pv-components/dist/vue/base/components/base/AskTqBuddy/types.d.ts +3 -3
  97. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -4
  98. package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
  99. package/pv-components/dist/vue/base/components/base/PvSidebar/types.d.ts +1 -0
  100. package/pv-components/dist/vue/base/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +1 -1
  101. package/pv-components/dist/vue/base/pv-components-base.mjs +2167 -2096
  102. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  103. package/pv-components/dist/vue/visualizations/components/base/AskTqBuddy/types.d.ts +3 -3
  104. package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -2
  105. package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +2 -2
  106. package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -4
  107. package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
  108. package/pv-components/dist/vue/visualizations/components/base/PvSidebar/types.d.ts +1 -0
  109. package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +1 -1
  110. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3 -3
  111. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  112. package/pv-components/dist/web/components/ask-tq-buddy/ask-tq-buddy.js +747 -677
  113. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +2 -2
  114. package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +2 -2
  115. package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +188 -188
  116. package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +825 -755
  117. package/pv-components/dist/web/components/pv-animated-icon/pv-animated-icon.js +2 -2
  118. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +2 -2
  119. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +2 -2
  120. package/pv-components/dist/web/components/pv-banner/pv-banner.js +2 -2
  121. package/pv-components/dist/web/components/pv-box-plot/pv-box-plot.js +2 -2
  122. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +2 -2
  123. package/pv-components/dist/web/components/pv-button/pv-button.js +2 -2
  124. package/pv-components/dist/web/components/pv-card/pv-card.js +2 -2
  125. package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +2 -2
  126. package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +2 -2
  127. package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +2 -2
  128. package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +2 -2
  129. package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +2 -2
  130. package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -2
  131. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +2 -2
  132. package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +2 -2
  133. package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +2 -2
  134. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +2 -2
  135. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +2 -2
  136. package/pv-components/dist/web/components/pv-empty-error-state/pv-empty-error-state.js +2 -2
  137. package/pv-components/dist/web/components/pv-empty-state/pv-empty-state.js +2 -2
  138. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +2 -2
  139. package/pv-components/dist/web/components/pv-file-input/pv-file-input.js +2 -2
  140. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +5 -5
  141. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +5 -5
  142. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +2 -2
  143. package/pv-components/dist/web/components/pv-header/pv-header.js +856 -786
  144. package/pv-components/dist/web/components/pv-horizontal-scroller/pv-horizontal-scroller.js +2 -2
  145. package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +5 -5
  146. package/pv-components/dist/web/components/pv-icon/pv-icon.js +2 -2
  147. package/pv-components/dist/web/components/pv-input/pv-input.js +2 -2
  148. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +2 -2
  149. package/pv-components/dist/web/components/pv-menu/pv-menu.js +5 -5
  150. package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -2
  151. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +5 -5
  152. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +2 -2
  153. package/pv-components/dist/web/components/pv-pill/pv-pill.js +2 -2
  154. package/pv-components/dist/web/components/pv-popover/pv-popover.js +2 -2
  155. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +2 -2
  156. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +5 -5
  157. package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +2 -2
  158. package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +2 -2
  159. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +741 -741
  160. package/pv-components/dist/web/components/pv-question/pv-question.js +2 -2
  161. package/pv-components/dist/web/components/pv-radio-group/pv-radio-group.js +2 -2
  162. package/pv-components/dist/web/components/pv-range/pv-range.js +2 -2
  163. package/pv-components/dist/web/components/pv-rating/pv-rating.js +2 -2
  164. package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +482 -489
  165. package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +2 -2
  166. package/pv-components/dist/web/components/pv-resize-handle/pv-resize-handle.js +2 -2
  167. package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +2 -2
  168. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +5 -5
  169. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +119 -119
  170. package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +2 -2
  171. package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +2 -2
  172. package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +484 -484
  173. package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +5 -5
  174. package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +2 -2
  175. package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +5 -5
  176. package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +2 -2
  177. package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +504 -504
  178. package/pv-components/dist/web/components/pv-split-pane/pv-split-pane.js +2 -2
  179. package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +2 -2
  180. package/pv-components/dist/web/components/pv-step-list/pv-step-list.js +2 -2
  181. package/pv-components/dist/web/components/pv-stepper/pv-stepper.js +2 -2
  182. package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +2 -2
  183. package/pv-components/dist/web/components/pv-switch/pv-switch.js +2 -2
  184. package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +2 -2
  185. package/pv-components/dist/web/components/pv-table-of-contents/pv-table-of-contents.js +2 -2
  186. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +5 -5
  187. package/pv-components/dist/web/components/pv-tag/pv-tag.js +2 -2
  188. package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +2 -2
  189. package/pv-components/dist/web/components/pv-toast/pv-toast.js +2 -2
  190. package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +2 -2
  191. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +5 -5
  192. package/pv-components/dist/web/components/pv-tool/pv-tool.js +2 -2
  193. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +3 -3
  194. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +5 -5
  195. package/pv-components/dist/web/components/pv-tree/pv-tree.js +2 -2
  196. package/pv-components/dist/web/components/pv-widget/pv-widget.js +2 -2
  197. package/pv-components/dist/web/pv-components.iife.js +39 -39
  198. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,5 +1,5 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}summary[data-v-dfa0b416]{background-image:none;padding-right:2px}
2
- /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { Comment as e, Fragment as t, Text as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onBeforeUpdate as y, onMounted as b, onScopeDispose as x, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toHandlers as D, unref as O, useId as k, useModel as A, useSlots as j, useTemplateRef as M, vModelDynamic as N, vModelText as P, watch as F, withCtx as I, withDirectives as L, withKeys as ee, withModifiers as R } from "vue";
2
+ /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { Comment as e, Fragment as t, Text as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onBeforeUpdate as y, onMounted as b, onScopeDispose as x, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toHandlers as D, unref as O, useId as k, useModel as A, useSlots as j, vModelDynamic as M, vModelText as N, watch as P, withCtx as F, withDirectives as I, withKeys as L, withModifiers as R } from "vue";
3
3
  //#endregion
4
4
  //#region src/components/base/PvSpinner/PvSpinner.vue
5
5
  var z = /* @__PURE__ */ d({
@@ -30,16 +30,16 @@ var z = /* @__PURE__ */ d({
30
30
  md: "pv-button-small",
31
31
  lg: void 0,
32
32
  xl: "pv-button-large"
33
- }, te = (e) => e == null || !V.hasOwnProperty(e) ? null : V[e] || null;
33
+ }, H = (e) => e == null || !V.hasOwnProperty(e) ? null : V[e] || null;
34
34
  //#endregion
35
35
  //#region src/web-components/utils.ts
36
- function H() {
36
+ function U() {
37
37
  let e = C(!1), t = f()?.root || {};
38
38
  return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
39
39
  }
40
40
  //#endregion
41
41
  //#region src/components/base/baseProps.ts
42
- var ne = [
42
+ var ee = [
43
43
  void 0,
44
44
  10,
45
45
  12,
@@ -48,24 +48,24 @@ var ne = [
48
48
  24,
49
49
  32,
50
50
  64
51
- ], U = ["xlink:href"], W = /* @__PURE__ */ d({
51
+ ], te = ["xlink:href"], W = /* @__PURE__ */ d({
52
52
  __name: "PvIcon",
53
53
  props: {
54
54
  name: {},
55
55
  size: {}
56
56
  },
57
57
  setup(e) {
58
- let t = e, n = H(), r = C(null), a = i(() => ({
58
+ let t = e, n = U(), r = C(null), a = i(() => ({
59
59
  "pv-icon": !0,
60
- [`pv-icon-${t.size}`]: t.size != null && ne.includes(t.size)
60
+ [`pv-icon-${t.size}`]: t.size != null && ee.includes(t.size)
61
61
  })), o = i(() => n.value && r.value ? `${r.value}#${t.name}` : `#${t.name}`);
62
62
  return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (r.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (S(), s("svg", {
63
63
  "data-testid": "pv-icon",
64
64
  "aria-hidden": "true",
65
65
  class: g(a.value)
66
- }, [c("use", { "xlink:href": o.value }, null, 8, U)], 2));
66
+ }, [c("use", { "xlink:href": o.value }, null, 8, te)], 2));
67
67
  }
68
- }), re = /* @__PURE__ */ d({
68
+ }), ne = /* @__PURE__ */ d({
69
69
  __name: "PvCounterBadge",
70
70
  props: {
71
71
  maxValue: { default: 99 },
@@ -96,7 +96,7 @@ var ne = [
96
96
  let n = e.__vccOpts || e;
97
97
  for (let [e, r] of t) n[e] = r;
98
98
  return n;
99
- }, K = /* @__PURE__ */ G(re, [["__scopeId", "data-v-3def68cb"]]), ie = ["disabled", "aria-label"], ae = {
99
+ }, K = /* @__PURE__ */ G(ne, [["__scopeId", "data-v-3def68cb"]]), re = ["disabled", "aria-label"], ie = {
100
100
  key: 2,
101
101
  "data-testid": "pv-button-label"
102
102
  }, q = /* @__PURE__ */ d({
@@ -127,7 +127,7 @@ var ne = [
127
127
  let n = e, r = i(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = i(() => {
128
128
  let e = [];
129
129
  n.inverse && B.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
130
- let t = te(n.size);
130
+ let t = H(n.size);
131
131
  return t && e.push(t), e;
132
132
  });
133
133
  return (n, i) => (S(), s("button", {
@@ -150,7 +150,7 @@ var ne = [
150
150
  name: e.leftIcon,
151
151
  "data-testid": "pv-button-left-icon"
152
152
  }, null, 8, ["name"])) : o("", !0),
153
- e.label ? (S(), s("span", ae, E(e.label), 1)) : o("", !0),
153
+ e.label ? (S(), s("span", ie, E(e.label), 1)) : o("", !0),
154
154
  e.rightCounterBadge ? (S(), a(K, {
155
155
  key: 3,
156
156
  value: e.rightCounterBadge,
@@ -161,20 +161,20 @@ var ne = [
161
161
  name: e.rightIcon,
162
162
  "data-testid": "pv-button-right-icon"
163
163
  }, null, 8, ["name"])) : o("", !0)
164
- ], 64))], 10, ie));
164
+ ], 64))], 10, re));
165
165
  }
166
- }), J = ["for"], oe = {
166
+ }), J = ["for"], Y = {
167
167
  key: 0,
168
168
  class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
169
169
  style: { "--inset-size": "6px 10px" }
170
- }, se = { class: "pv-relative pv-flex-item" }, ce = [
170
+ }, ae = { class: "pv-relative pv-flex-item" }, oe = [
171
171
  "disabled",
172
172
  "type",
173
173
  "placeholder",
174
174
  "id",
175
175
  "data-invalid",
176
176
  "step"
177
- ], le = /* @__PURE__ */ d({
177
+ ], se = /* @__PURE__ */ d({
178
178
  __name: "PvInput",
179
179
  props: /* @__PURE__ */ p({
180
180
  showLabel: { type: Boolean },
@@ -202,11 +202,11 @@ var ne = [
202
202
  class: "pv-label pv-stack-8",
203
203
  for: e.id
204
204
  }, [T(n.$slots, "label")], 8, J)) : o("", !0),
205
- c("div", { class: g(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (S(), s("div", oe, E(e.prefixLabel), 1)) : o("", !0), c("div", se, [e.inputIcon ? (S(), a(W, {
205
+ c("div", { class: g(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (S(), s("div", Y, E(e.prefixLabel), 1)) : o("", !0), c("div", ae, [e.inputIcon ? (S(), a(W, {
206
206
  key: 0,
207
207
  class: "pv-absolute input-icon-position",
208
208
  name: e.inputIcon
209
- }, null, 8, ["name"])) : o("", !0), L(c("input", m(n.$attrs, {
209
+ }, null, 8, ["name"])) : o("", !0), I(c("input", m(n.$attrs, {
210
210
  "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
211
211
  "data-testid": "pv-input",
212
212
  class: ["pv-input-text", {
@@ -220,7 +220,7 @@ var ne = [
220
220
  id: e.id,
221
221
  "data-invalid": e.error ? !0 : void 0,
222
222
  step: e.step
223
- }), null, 16, ce), [[N, r.value]])])], 2),
223
+ }), null, 16, oe), [[M, r.value]])])], 2),
224
224
  e.lowerLabel ? (S(), s("p", {
225
225
  key: 1,
226
226
  "data-testid": "pv-input-lower-label",
@@ -232,43 +232,43 @@ var ne = [
232
232
  }, E(e.lowerLabel), 3)) : o("", !0)
233
233
  ], 64));
234
234
  }
235
- }), ue = ["onKeydown"], de = { class: "pv-question-header pv-inset-square-16 pv-space-between" }, fe = {
235
+ }), ce = ["onKeydown"], le = { class: "pv-question-header pv-inset-square-16 pv-space-between" }, ue = {
236
236
  class: "pv-question-header-copy pv-flex-vertical pv-flex-item",
237
237
  style: {
238
238
  "--flex-align": "flex-start",
239
239
  "--flex-gap": "4px",
240
240
  "min-width": "0"
241
241
  }
242
- }, pe = {
242
+ }, de = {
243
243
  key: 0,
244
244
  class: "pv-text-body-md pv-text-tertiary"
245
- }, me = { class: "pv-question-header-actions pv-flex" }, he = {
245
+ }, fe = { class: "pv-question-header-actions pv-flex" }, pe = {
246
246
  key: 0,
247
247
  class: "pv-text-body-xs pv-text-tertiary",
248
248
  role: "status",
249
249
  "aria-live": "polite"
250
- }, ge = {
250
+ }, me = {
251
251
  class: "pv-question-body pv-border-bottom",
252
252
  style: { "padding-bottom": "2px" }
253
- }, _e = {
253
+ }, he = {
254
254
  class: "pv-question-options pv-flex-vertical pv-inset-inline-16",
255
255
  style: {
256
256
  "--flex-align": "stretch",
257
257
  "--flex-gap": "2px"
258
258
  }
259
- }, ve = ["aria-activedescendant"], ye = [
259
+ }, ge = ["aria-activedescendant"], _e = [
260
260
  "id",
261
261
  "aria-selected",
262
262
  "data-active",
263
263
  "onClick",
264
264
  "onMouseenter"
265
- ], be = {
265
+ ], ve = {
266
266
  class: "pv-question-answer-text pv-flex-item pv-text-title-md",
267
267
  style: { "min-width": "0" }
268
- }, xe = ["title"], Se = { class: "pv-visually-hidden" }, Ce = ["data-active"], we = { class: "pv-question-chat-badge pv-flex pv-radius pv-text-subdued" }, Te = {
268
+ }, ye = ["title"], be = { class: "pv-visually-hidden" }, xe = ["data-active"], Se = { class: "pv-question-chat-badge pv-flex pv-radius pv-text-subdued" }, Ce = {
269
269
  class: "pv-question-chat-input pv-flex-item",
270
270
  style: { "min-width": "0" }
271
- }, Ee = { class: "pv-question-footer pv-inset-squish-12 pv-space-between" }, De = /* @__PURE__ */ d({
271
+ }, we = { class: "pv-question-footer pv-inset-squish-12 pv-space-between" }, Te = /* @__PURE__ */ d({
272
272
  __name: "PvQuestion",
273
273
  props: /* @__PURE__ */ p({
274
274
  chatInputLabel: { default: "Other answer" },
@@ -292,10 +292,10 @@ var ne = [
292
292
  ], ["update:modelValue", "update:chatInput"]),
293
293
  setup(e, { emit: n }) {
294
294
  let r = e, l = n, d = A(e, "modelValue"), f = A(e, "chatInput"), p = k(), m = `${p}-heading`, g = `${p}-keyboard-hint`, _ = C(), v = C(), y = r.options.findIndex((e) => e.id === d.value), b = C(Math.max(y, 0)), x = i(() => r.totalQuestions > 1), T = i(() => b.value < r.options.length ? D(b.value) : void 0);
295
- F(d, (e) => {
295
+ P(d, (e) => {
296
296
  let t = r.options.findIndex((t) => t.id === e);
297
297
  t >= 0 && (b.value = t);
298
- }), F(() => r.options.map((e) => e.id), (e, t) => {
298
+ }), P(() => r.options.map((e) => e.id), (e, t) => {
299
299
  let n = e.findIndex((e) => e === d.value);
300
300
  if (n >= 0) {
301
301
  b.value = n;
@@ -323,16 +323,16 @@ var ne = [
323
323
  function N(e, t) {
324
324
  M(e, t), h(() => _.value?.focus());
325
325
  }
326
- function P() {
326
+ function F() {
327
327
  b.value >= r.options.length && (b.value = 0);
328
328
  }
329
329
  function I(e) {
330
330
  e.key === "ArrowDown" ? (e.preventDefault(), b.value >= r.options.length - 1 ? j() : b.value += 1) : e.key === "ArrowUp" ? (e.preventDefault(), b.value <= 0 ? j() : --b.value) : e.key === "Enter" && r.options[b.value] && (e.preventDefault(), M(r.options[b.value], b.value));
331
331
  }
332
- function L() {
332
+ function z() {
333
333
  b.value = r.options.length, d.value = void 0;
334
334
  }
335
- function z(e) {
335
+ function B(e) {
336
336
  if (!(!r.options.length && (e.key === "ArrowDown" || e.key === "ArrowUp"))) {
337
337
  if (e.key === "ArrowDown") e.preventDefault(), O(0);
338
338
  else if (e.key === "ArrowUp") e.preventDefault(), O(r.options.length - 1);
@@ -343,29 +343,29 @@ var ne = [
343
343
  }
344
344
  }
345
345
  }
346
- function B() {
346
+ function V() {
347
347
  l("close");
348
348
  }
349
- function V() {
349
+ function H() {
350
350
  l("skip");
351
351
  }
352
352
  return (n, r) => (S(), s("section", {
353
353
  class: "pv-question pv-card pv-surface pv-full-width",
354
354
  "data-testid": "pv-question",
355
355
  "aria-labelledby": m,
356
- onKeydown: ee(R(V, ["stop", "prevent"]), ["esc"])
356
+ onKeydown: L(R(H, ["stop", "prevent"]), ["esc"])
357
357
  }, [
358
- c("header", de, [c("div", fe, [c("h3", {
358
+ c("header", le, [c("div", ue, [c("h3", {
359
359
  id: m,
360
360
  class: "pv-heading-3"
361
- }, E(e.headerLabel), 1), e.subheader ? (S(), s("p", pe, E(e.subheader), 1)) : o("", !0)]), c("div", me, [x.value ? (S(), s("span", he, E(e.currentQuestion) + " of " + E(e.totalQuestions), 1)) : o("", !0), u(q, {
361
+ }, E(e.headerLabel), 1), e.subheader ? (S(), s("p", de, E(e.subheader), 1)) : o("", !0)]), c("div", fe, [x.value ? (S(), s("span", pe, E(e.currentQuestion) + " of " + E(e.totalQuestions), 1)) : o("", !0), u(q, {
362
362
  ariaLabel: "Close",
363
363
  leftIcon: "close",
364
364
  size: "md",
365
365
  variant: "ghost",
366
- onClick: B
366
+ onClick: V
367
367
  })])]),
368
- c("div", ge, [c("div", _e, [c("div", {
368
+ c("div", me, [c("div", he, [c("div", {
369
369
  ref_key: "listboxRef",
370
370
  ref: _,
371
371
  class: "pv-question-listbox pv-flex-vertical",
@@ -379,7 +379,7 @@ var ne = [
379
379
  "aria-activedescendant": T.value,
380
380
  "aria-describedby": g,
381
381
  "aria-labelledby": m,
382
- onFocus: P,
382
+ onFocus: F,
383
383
  onKeydown: I
384
384
  }, [(S(!0), s(t, null, w(e.options, (e, t) => (S(), s("div", {
385
385
  id: D(t),
@@ -397,7 +397,7 @@ var ne = [
397
397
  size: "sm",
398
398
  variant: "tertiary"
399
399
  }, null, 8, ["value"]),
400
- c("span", be, E(e.label), 1),
400
+ c("span", ve, E(e.label), 1),
401
401
  e.helpText ? (S(), s("span", {
402
402
  key: 0,
403
403
  class: "pv-question-help pv-flex",
@@ -407,7 +407,7 @@ var ne = [
407
407
  class: "pv-text-tertiary",
408
408
  name: "info-circle",
409
409
  size: 12
410
- }), c("span", Se, E(e.helpText), 1)], 8, xe)) : o("", !0),
410
+ }), c("span", be, E(e.helpText), 1)], 8, ye)) : o("", !0),
411
411
  d.value === e.id ? (S(), a(W, {
412
412
  key: 1,
413
413
  class: "pv-question-check pv-text-brand",
@@ -417,7 +417,7 @@ var ne = [
417
417
  class: "pv-question-chevron pv-text-tertiary",
418
418
  name: "chevron-right"
419
419
  })
420
- ], 40, ye))), 128))], 40, ve), c("div", {
420
+ ], 40, _e))), 128))], 40, ge), c("div", {
421
421
  ref_key: "chatInputWrapperRef",
422
422
  ref: v,
423
423
  class: "pv-question-chat pv-flex pv-inset-squish-12 pv-radius-lg",
@@ -426,17 +426,17 @@ var ne = [
426
426
  onClick: j,
427
427
  onMouseenter: r[1] ||= (t) => b.value = e.options.length
428
428
  }, [
429
- c("span", we, [u(W, {
429
+ c("span", Se, [u(W, {
430
430
  name: "text-search",
431
431
  size: 12
432
432
  })]),
433
- c("div", Te, [u(le, {
433
+ c("div", Ce, [u(se, {
434
434
  modelValue: f.value,
435
435
  "onUpdate:modelValue": r[0] ||= (e) => f.value = e,
436
436
  "aria-label": e.chatInputLabel,
437
437
  placeholder: e.chatInputPlaceholder,
438
- onFocus: L,
439
- onKeydown: z
438
+ onFocus: z,
439
+ onKeydown: B
440
440
  }, null, 8, [
441
441
  "modelValue",
442
442
  "aria-label",
@@ -446,8 +446,8 @@ var ne = [
446
446
  class: "pv-question-chevron pv-text-tertiary",
447
447
  name: "chevron-right"
448
448
  })
449
- ], 40, Ce)])]),
450
- c("footer", Ee, [c("span", {
449
+ ], 40, xe)])]),
450
+ c("footer", we, [c("span", {
451
451
  id: g,
452
452
  class: "pv-text-body-xs pv-text-tertiary"
453
453
  }, "↑↓ to navigate • Enter to select • Esc to skip"), u(q, {
@@ -455,27 +455,27 @@ var ne = [
455
455
  label: "Skip",
456
456
  size: "lg",
457
457
  variant: "secondary",
458
- onClick: V
458
+ onClick: H
459
459
  })])
460
- ], 40, ue));
460
+ ], 40, ce));
461
461
  }
462
- }), Oe = {
462
+ }), Ee = {
463
463
  key: 0,
464
464
  class: "pv-confirmation pv-bordered pv-radius pv-inset-square-16 pv-flow-16",
465
465
  "data-testid": "pv-confirmation",
466
466
  "aria-label": "Tool approval"
467
- }, ke = { class: "pv-text-body-sm" }, Ae = {
467
+ }, De = { class: "pv-text-body-sm" }, Oe = {
468
468
  class: "pv-flex",
469
469
  style: { "--flex-justify": "flex-end" }
470
- }, je = {
470
+ }, ke = {
471
471
  key: 1,
472
472
  class: "pv-flex pv-text-body-sm pv-text-success",
473
473
  role: "status"
474
- }, Me = {
474
+ }, Ae = {
475
475
  key: 2,
476
476
  class: "pv-flex pv-text-body-sm pv-text-critical",
477
477
  role: "status"
478
- }, Ne = /* @__PURE__ */ d({
478
+ }, je = /* @__PURE__ */ d({
479
479
  __name: "PvConfirmation",
480
480
  props: {
481
481
  approval: {},
@@ -497,7 +497,7 @@ var ne = [
497
497
  approved: e
498
498
  });
499
499
  }
500
- return (n, r) => d.value || f.value || p.value ? (S(), s("section", Oe, [d.value ? (S(), s(t, { key: 0 }, [c("div", ke, [T(n.$slots, "default", {}, () => [l(E(e.message), 1)])]), c("div", Ae, [u(q, {
500
+ return (n, r) => d.value || f.value || p.value ? (S(), s("section", Ee, [d.value ? (S(), s(t, { key: 0 }, [c("div", De, [T(n.$slots, "default", {}, () => [l(E(e.message), 1)])]), c("div", Oe, [u(q, {
501
501
  variant: "secondary",
502
502
  size: "md",
503
503
  label: e.rejectLabel,
@@ -508,24 +508,24 @@ var ne = [
508
508
  label: e.approveLabel,
509
509
  disabled: e.disabled,
510
510
  onClick: r[1] ||= (e) => m(!0)
511
- }, null, 8, ["label", "disabled"])])], 64)) : f.value ? (S(), s("p", je, [u(W, {
511
+ }, null, 8, ["label", "disabled"])])], 64)) : f.value ? (S(), s("p", ke, [u(W, {
512
512
  name: "check-circle",
513
513
  size: 20
514
- }), T(n.$slots, "accepted", {}, () => [r[2] ||= l("You approved this tool execution.", -1)])])) : (S(), s("p", Me, [u(W, {
514
+ }), T(n.$slots, "accepted", {}, () => [r[2] ||= l("You approved this tool execution.", -1)])])) : (S(), s("p", Ae, [u(W, {
515
515
  name: "close-circle",
516
516
  size: 20
517
517
  }), T(n.$slots, "rejected", {}, () => [r[3] ||= l("You rejected this tool execution.", -1)])]))])) : o("", !0);
518
518
  }
519
- }), Pe = {
519
+ }), Me = {
520
520
  class: "pv-flex-vertical",
521
521
  style: { "--flex-align": "flex-start" }
522
- }, Fe = ["for"], Ie = [
522
+ }, Ne = ["for"], Pe = [
523
523
  "rows",
524
524
  "disabled",
525
525
  "placeholder",
526
526
  "id",
527
527
  "data-invalid"
528
- ], Le = /* @__PURE__ */ d({
528
+ ], Fe = /* @__PURE__ */ d({
529
529
  __name: "PvTextArea",
530
530
  props: /* @__PURE__ */ p({
531
531
  error: { type: Boolean },
@@ -542,13 +542,13 @@ var ne = [
542
542
  emits: ["update:modelValue"],
543
543
  setup(e) {
544
544
  let t = A(e, "modelValue");
545
- return (n, r) => (S(), s("div", Pe, [
545
+ return (n, r) => (S(), s("div", Me, [
546
546
  n.$slots.label ? (S(), s("label", {
547
547
  key: 0,
548
548
  class: "pv-label",
549
549
  for: e.id
550
- }, [T(n.$slots, "label")], 8, Fe)) : o("", !0),
551
- L(c("textarea", m(n.$attrs, {
550
+ }, [T(n.$slots, "label")], 8, Ne)) : o("", !0),
551
+ I(c("textarea", m(n.$attrs, {
552
552
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
553
553
  class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
554
554
  rows: e.rows,
@@ -556,7 +556,7 @@ var ne = [
556
556
  placeholder: e.placeholder,
557
557
  id: e.id,
558
558
  "data-invalid": e.error ? !0 : void 0
559
- }), null, 16, Ie), [[P, t.value]]),
559
+ }), null, 16, Pe), [[N, t.value]]),
560
560
  e.lowerLabel ? (S(), s("p", {
561
561
  key: 1,
562
562
  style: { "margin-left": "12px" },
@@ -567,13 +567,13 @@ var ne = [
567
567
  }, E(e.lowerLabel), 3)) : o("", !0)
568
568
  ]));
569
569
  }
570
- }), Re = ["aria-busy"], ze = {
570
+ }), Ie = ["aria-busy"], Le = {
571
571
  key: 0,
572
572
  class: "pv-full-width pv-flow-8"
573
- }, Be = { class: "pv-prompt-input-footer pv-flex pv-full-width" }, Ve = { class: "pv-prompt-input-actions pv-flex pv-flex-item" }, He = {
573
+ }, Re = { class: "pv-prompt-input-footer pv-flex pv-full-width" }, ze = { class: "pv-prompt-input-actions pv-flex pv-flex-item" }, Be = {
574
574
  class: "pv-visually-hidden",
575
575
  "aria-live": "polite"
576
- }, Ue = /* @__PURE__ */ d({
576
+ }, Ve = /* @__PURE__ */ d({
577
577
  __name: "PvPromptInput",
578
578
  props: /* @__PURE__ */ p({
579
579
  ariaLabel: { default: "Message" },
@@ -616,8 +616,8 @@ var ne = [
616
616
  onSubmit: R(g, ["prevent"]),
617
617
  onClick: y
618
618
  }, [
619
- n.$slots.header ? (S(), s("div", ze, [T(n.$slots, "header")])) : o("", !0),
620
- u(Le, {
619
+ n.$slots.header ? (S(), s("div", Le, [T(n.$slots, "header")])) : o("", !0),
620
+ u(Fe, {
621
621
  modelValue: f.value,
622
622
  "onUpdate:modelValue": r[0] ||= (e) => f.value = e,
623
623
  class: "pv-prompt-input-textarea",
@@ -637,7 +637,7 @@ var ne = [
637
637
  "disabled",
638
638
  "aria-label"
639
639
  ]),
640
- c("div", Be, [c("div", Ve, [T(n.$slots, "actions")]), u(q, {
640
+ c("div", Re, [c("div", ze, [T(n.$slots, "actions")]), u(q, {
641
641
  type: m.value ? "button" : "submit",
642
642
  variant: m.value ? "secondary" : "primary",
643
643
  size: "md",
@@ -652,15 +652,15 @@ var ne = [
652
652
  "aria-label",
653
653
  "disabled"
654
654
  ])]),
655
- c("p", He, [e.status === "submitted" ? (S(), s(t, { key: 0 }, [l("Message submitted.")], 64)) : e.status === "streaming" ? (S(), s(t, { key: 1 }, [l("Response is streaming.")], 64)) : e.status === "error" ? (S(), s(t, { key: 2 }, [l("The message could not be sent.")], 64)) : o("", !0)])
656
- ], 40, Re));
655
+ c("p", Be, [e.status === "submitted" ? (S(), s(t, { key: 0 }, [l("Message submitted.")], 64)) : e.status === "streaming" ? (S(), s(t, { key: 1 }, [l("Response is streaming.")], 64)) : e.status === "error" ? (S(), s(t, { key: 2 }, [l("The message could not be sent.")], 64)) : o("", !0)])
656
+ ], 40, Ie));
657
657
  }
658
- }), We = [
658
+ }), He = [
659
659
  "ready",
660
660
  "submitted",
661
661
  "streaming",
662
662
  "error"
663
- ], Ge = ["open"], Y = /* @__PURE__ */ G(/* @__PURE__ */ d({
663
+ ], Ue = ["open"], X = /* @__PURE__ */ G(/* @__PURE__ */ d({
664
664
  __name: "PvAccordion",
665
665
  props: /* @__PURE__ */ p({
666
666
  chevronPosition: { default: "right" },
@@ -732,41 +732,41 @@ var ne = [
732
732
  name: g.value,
733
733
  "data-pv-accordion-chevron": ""
734
734
  }, null, 8, ["name"])) : o("", !0)
735
- ], 16), c("div", { style: _(e.contentStyles) }, [T(n.$slots, "default", {}, void 0, !0)], 4)], 40, Ge));
735
+ ], 16), c("div", { style: _(e.contentStyles) }, [T(n.$slots, "default", {}, void 0, !0)], 4)], 40, Ue));
736
736
  }
737
737
  }), [["__scopeId", "data-v-dfa0b416"]]);
738
738
  //#endregion
739
739
  //#region src/composables/useSlotPresence.ts
740
- function X(e, t) {
740
+ function Z(e, t) {
741
741
  if (e.nodeType !== Node.TEXT_NODE) return !1;
742
742
  let n = e.textContent ?? "";
743
743
  return t ? n.length > 0 : n.trim().length > 0;
744
744
  }
745
- function Ke(e, t, n) {
745
+ function We(e, t, n) {
746
746
  let r = t === "default" ? "" : t, i = Array.from(e.childNodes);
747
- return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : X(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
747
+ return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : Z(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
748
748
  }
749
- function qe(e) {
749
+ function Ge(e) {
750
750
  if (e.shadowRoot) return null;
751
751
  let t = e._slots;
752
752
  return !t || typeof t != "object" ? null : t;
753
753
  }
754
- function Je(e, t, n) {
754
+ function Ke(e, t, n) {
755
755
  let r = e[t === "" ? "default" : t];
756
- return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : X(e, n)) : !1;
756
+ return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : Z(e, n)) : !1;
757
757
  }
758
- function Z(e, t) {
758
+ function qe(e, t) {
759
759
  let n = e.shadowRoot;
760
760
  return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
761
761
  }
762
- function Ye(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r = !1 } = {}) {
763
- let i = n ? Z(e, t) : null;
764
- if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : X(e, r));
765
- let a = qe(e);
766
- return a ? Je(a, t, r) : Ke(e, t, r);
762
+ function Je(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r = !1 } = {}) {
763
+ let i = n ? qe(e, t) : null;
764
+ if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : Z(e, r));
765
+ let a = Ge(e);
766
+ return a ? Ke(a, t, r) : We(e, t, r);
767
767
  }
768
- function Xe(e, t = {}) {
769
- let { host: n, vueSlots: r, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = H(), l = r ?? j(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = C(d());
768
+ function Ye(e, t = {}) {
769
+ let { host: n, vueSlots: r, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = U(), l = r ?? j(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = C(d());
770
770
  y(() => {
771
771
  f.value = d();
772
772
  });
@@ -782,19 +782,19 @@ function Xe(e, t = {}) {
782
782
  p.value = !1;
783
783
  return;
784
784
  }
785
- p.value = Ye(t, e, {
785
+ p.value = Je(t, e, {
786
786
  useShadowSlot: o,
787
787
  countWhitespaceTextInDefaultSlot: s
788
788
  });
789
789
  }, x = () => {
790
790
  if (!c.value) return;
791
791
  g();
792
- let t = O(n);
793
- if (!t) {
792
+ let e = O(n);
793
+ if (!e) {
794
794
  p.value = !1;
795
795
  return;
796
796
  }
797
- _(), o && (h = Z(t, e), h && h.addEventListener("slotchange", _)), a && (m = new MutationObserver(() => _()), m.observe(t, {
797
+ _(), o && (h = e.shadowRoot, h?.addEventListener("slotchange", _)), a && (m = new MutationObserver(() => _()), m.observe(e, {
798
798
  childList: !0,
799
799
  subtree: !1,
800
800
  attributes: !0,
@@ -802,7 +802,7 @@ function Xe(e, t = {}) {
802
802
  characterData: !0
803
803
  }));
804
804
  };
805
- return b(x), v(g), F(() => O(n), () => {
805
+ return b(x), v(g), P(() => O(n), () => {
806
806
  c.value && x();
807
807
  }), {
808
808
  present: i(() => c.value ? p.value : f.value),
@@ -813,23 +813,23 @@ function Xe(e, t = {}) {
813
813
  }
814
814
  //#endregion
815
815
  //#region src/components/ai/PvStepList/PvStepList.vue?vue&type=script&setup=true&lang.ts
816
- var Ze = ["data-status"], Qe = {
816
+ var Xe = ["data-status"], Ze = {
817
817
  key: 0,
818
818
  class: "pv-step-marker",
819
819
  "aria-hidden": "true"
820
- }, $e = {
820
+ }, Qe = {
821
821
  key: 1,
822
822
  class: "pv-step-dot"
823
- }, et = { class: "pv-step-body pv-flow-8" }, tt = {
823
+ }, $e = { class: "pv-step-body pv-flow-8" }, et = {
824
824
  key: 0,
825
825
  class: "pv-step-aside pv-text-body-md pv-text-tertiary"
826
- }, nt = {
826
+ }, tt = {
827
827
  key: 0,
828
828
  class: "pv-tag-highlight"
829
- }, rt = {
829
+ }, nt = {
830
830
  key: 0,
831
831
  class: "pv-text-body-md pv-text-tertiary"
832
- }, it = {
832
+ }, rt = {
833
833
  key: 1,
834
834
  class: "pv-flex",
835
835
  role: "list",
@@ -837,7 +837,7 @@ var Ze = ["data-status"], Qe = {
837
837
  "--flex-wrap": "wrap",
838
838
  "--flex-gap": "4px"
839
839
  }
840
- }, at = {
840
+ }, it = {
841
841
  key: 2,
842
842
  class: "pv-text-body-md pv-text-medium pv-text-brand"
843
843
  }, Q = /* @__PURE__ */ d({
@@ -866,31 +866,38 @@ var Ze = ["data-status"], Qe = {
866
866
  class: "pv-step-list",
867
867
  role: "list"
868
868
  }, {
869
- default: I(() => [(S(!0), s(t, null, w(e.steps, (e, n) => (S(), s("li", {
869
+ default: F(() => [(S(!0), s(t, null, w(e.steps, (e, n) => (S(), s("li", {
870
870
  key: e.id ?? n,
871
871
  class: "pv-step",
872
872
  "data-status": u(e, n)
873
- }, [e.variant === "aside" ? o("", !0) : (S(), s("span", Qe, [e.icon ? (S(), a(W, {
873
+ }, [e.variant === "aside" ? o("", !0) : (S(), s("span", Ze, [e.icon ? (S(), a(W, {
874
874
  key: 0,
875
875
  name: e.icon,
876
876
  size: 12
877
- }, null, 8, ["name"])) : (S(), s("span", $e))])), c("div", et, [e.variant === "aside" ? (S(), s("p", tt, [c("em", null, E(e.label), 1)])) : (S(), s(t, { key: 1 }, [
877
+ }, null, 8, ["name"])) : (S(), s("span", Qe))])), c("div", $e, [e.variant === "aside" ? (S(), s("p", et, [c("em", null, E(e.label), 1)])) : (S(), s(t, { key: 1 }, [
878
878
  c("p", {
879
879
  class: g(["pv-flex pv-text-body-md", d(e, n)]),
880
880
  style: { "--flex-wrap": "wrap" }
881
- }, [c("span", { class: g({ "pv-shimmer": u(e, n) === "active" }) }, E(e.label), 3), e.artifact ? (S(), s("span", nt, E(e.artifact), 1)) : o("", !0)], 2),
882
- e.note ? (S(), s("p", rt, E(e.note), 1)) : o("", !0),
883
- e.tags && e.tags.length > 0 ? (S(), s("ul", it, [(S(!0), s(t, null, w(e.tags, (e, t) => (S(), s("li", {
881
+ }, [c("span", { class: g({ "pv-shimmer": u(e, n) === "active" }) }, E(e.label), 3), e.artifact ? (S(), s("span", tt, E(e.artifact), 1)) : o("", !0)], 2),
882
+ e.note ? (S(), s("p", nt, E(e.note), 1)) : o("", !0),
883
+ e.tags && e.tags.length > 0 ? (S(), s("ul", rt, [(S(!0), s(t, null, w(e.tags, (e, t) => (S(), s("li", {
884
884
  key: t,
885
885
  class: g(["pv-tag-secondary", { "pv-text-quaternary": e.variant === "muted" }]),
886
886
  "data-style": "rounded"
887
887
  }, E(e.label), 3))), 128))])) : o("", !0),
888
- e.outcome ? (S(), s("p", at, " →\xA0" + E(e.outcome), 1)) : o("", !0)
889
- ], 64))])], 8, Ze))), 128))]),
888
+ e.outcome ? (S(), s("p", it, " →\xA0" + E(e.outcome), 1)) : o("", !0)
889
+ ], 64))])], 8, Xe))), 128))]),
890
890
  _: 1
891
891
  }));
892
892
  }
893
- }), ot = { class: "pv-reasoning-content pv-text-body-md pv-text-tertiary" }, st = /* @__PURE__ */ d({
893
+ }), at = {
894
+ class: "pv-reasoning-trigger pv-flex pv-text-body-md pv-text-medium",
895
+ "aria-live": "polite"
896
+ }, ot = { class: "pv-reasoning-content pv-text-body-md pv-text-tertiary" }, st = {
897
+ key: 1,
898
+ class: "pv-reasoning-trigger pv-reasoning-standalone pv-flex pv-text-body-md pv-text-medium pv-text-tertiary",
899
+ "aria-live": "polite"
900
+ }, ct = /* @__PURE__ */ d({
894
901
  __name: "PvReasoning",
895
902
  props: /* @__PURE__ */ p({
896
903
  autoCloseDelay: { default: 1e3 },
@@ -915,39 +922,36 @@ var Ze = ["data-status"], Qe = {
915
922
  }),
916
923
  emits: ["update:open"],
917
924
  setup(r) {
918
- let l = r, d = A(r, "open"), f = C(), p = C(), m = C(!1), h;
919
- (l.defaultOpen || l.isStreaming) && (d.value = !0), l.isStreaming && (p.value = Date.now());
920
- let _ = i(() => l.duration ?? f.value), y = i(() => {
925
+ let l = r, d = A(r, "open"), p = C(), m = C(), h = C(!1), _;
926
+ (l.defaultOpen || l.isStreaming) && (d.value = !0), l.isStreaming && (m.value = Date.now());
927
+ let y = i(() => l.duration ?? p.value), b = i(() => {
921
928
  if (l.isStreaming) return l.streamingLabel;
922
- if (_.value === void 0) return l.completedLabel;
923
- let e = Math.max(1, Math.round(_.value));
929
+ if (y.value === void 0) return l.completedLabel;
930
+ let e = Math.max(1, Math.round(y.value));
924
931
  return `Thought for ${e} ${e === 1 ? "second" : "seconds"}`;
925
- }), b = j(), x = M("triggerRef"), { hasNativeSlot: w } = Xe("default", { host: i(() => {
926
- let e = x.value?.getRootNode();
927
- return e instanceof ShadowRoot ? e.host : null;
928
- }) });
929
- function D(r) {
930
- return r.some((r) => r.type === e ? !1 : r.type === n ? String(r.children ?? "").trim().length > 0 : r.type === t ? Array.isArray(r.children) && D(r.children) : !0);
932
+ }), x = j(), w = f(), D = U(), O = i(() => D.value ? w?.ce : null), { hasNativeSlot: k } = Ye("default", { host: O });
933
+ function M(r) {
934
+ return r.some((r) => r.type === e ? !1 : r.type === n ? String(r.children ?? "").trim().length > 0 : r.type === t ? Array.isArray(r.children) && M(r.children) : !0);
931
935
  }
932
- function O() {
933
- return l.steps.length > 0 || w.value ? !0 : D(b.default?.({}) ?? []);
936
+ function N() {
937
+ return l.steps.length > 0 || k.value ? !0 : O.value ? !1 : M(x.default?.({}) ?? []);
934
938
  }
935
- function k() {
936
- h !== void 0 && (clearTimeout(h), h = void 0);
939
+ function I() {
940
+ _ !== void 0 && (clearTimeout(_), _ = void 0);
937
941
  }
938
- function N(e) {
942
+ function L(e) {
939
943
  let t = e.target?.closest?.("summary");
940
- !t || t.parentElement !== e.currentTarget || (m.value = !0, k());
944
+ !t || t.parentElement !== e.currentTarget || (h.value = !0, I());
941
945
  }
942
- return F(() => l.isStreaming, (e, t) => {
943
- if (k(), e) {
944
- p.value = Date.now(), f.value = void 0, m.value = !1, d.value = !0;
946
+ return P(() => l.isStreaming, (e, t) => {
947
+ if (I(), e) {
948
+ m.value = Date.now(), p.value = void 0, h.value = !1, d.value = !0;
945
949
  return;
946
950
  }
947
- t && (p.value !== void 0 && (f.value = (Date.now() - p.value) / 1e3), m.value || (h = setTimeout(() => {
948
- m.value || (d.value = !1);
951
+ t && (m.value !== void 0 && (p.value = (Date.now() - m.value) / 1e3), h.value || (_ = setTimeout(() => {
952
+ h.value || (d.value = !1);
949
953
  }, l.autoCloseDelay)));
950
- }), v(k), (e, t) => O() ? (S(), a(Y, {
954
+ }), v(I), (e, t) => N() ? (S(), a(X, {
951
955
  key: 0,
952
956
  modelValue: d.value,
953
957
  "onUpdate:modelValue": t[0] ||= (e) => d.value = e,
@@ -959,29 +963,18 @@ var Ze = ["data-status"], Qe = {
959
963
  "enable-trigger-slot": "",
960
964
  "summary-classes": { "pv-text-tertiary": !0 },
961
965
  "summary-styles": { justifyContent: "flex-start" },
962
- onClick: N
966
+ onClick: L
963
967
  }, {
964
- trigger: I(() => [c("span", {
965
- ref_key: "triggerRef",
966
- ref: x,
967
- class: "pv-reasoning-trigger pv-flex pv-text-body-md pv-text-medium",
968
- "aria-live": "polite"
969
- }, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(y.value), 3)])], 512)]),
970
- default: I(() => [c("div", ot, [r.steps.length > 0 ? (S(), a(Q, {
968
+ trigger: F(() => [c("span", at, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(b.value), 3)])])]),
969
+ default: F(() => [c("div", ot, [r.steps.length > 0 ? (S(), a(Q, {
971
970
  key: 0,
972
971
  steps: r.steps,
973
972
  "in-progress": r.isStreaming
974
973
  }, null, 8, ["steps", "in-progress"])) : o("", !0), T(e.$slots, "default")])]),
975
974
  _: 3
976
- }, 8, ["modelValue", "default-open"])) : (S(), s("span", {
977
- key: 1,
978
- ref_key: "triggerRef",
979
- ref: x,
980
- class: "pv-reasoning-trigger pv-reasoning-standalone pv-flex pv-text-body-md pv-text-medium pv-text-tertiary",
981
- "aria-live": "polite"
982
- }, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(y.value), 3)])], 512));
975
+ }, 8, ["modelValue", "default-open"])) : (S(), s("span", st, [T(e.$slots, "trigger", {}, () => [u(W, { name: "brain" }), c("span", { class: g(["pv-text-subdued", { "pv-shimmer": r.isStreaming }]) }, E(b.value), 3)])]));
983
976
  }
984
- }), ct = { class: "pv-tool-heading pv-flex pv-flex-item" }, lt = { class: "pv-text-title-sm pv-truncate" }, ut = { class: "pv-tool-disclosure-content" }, dt = { class: "pv-flow-16 pv-border-top pv-tool-content" }, ft = {
977
+ }), lt = { class: "pv-tool-heading pv-flex pv-flex-item" }, ut = { class: "pv-text-title-sm pv-truncate" }, dt = { class: "pv-tool-disclosure-content" }, ft = { class: "pv-flow-16 pv-border-top pv-tool-content" }, $ = {
985
978
  key: 0,
986
979
  class: "pv-flow-8"
987
980
  }, pt = { class: "pv-surface-accent pv-inset-square-12 pv-radius-sm pv-text-body-xs" }, mt = {
@@ -1067,9 +1060,9 @@ var Ze = ["data-status"], Qe = {
1067
1060
  return String(e);
1068
1061
  }
1069
1062
  }
1070
- return F(() => t.state, (e, t) => {
1063
+ return P(() => t.state, (e, t) => {
1071
1064
  e !== t && r.includes(e) && (n.value = !0);
1072
- }), (t, r) => (S(), a(Y, {
1065
+ }), (t, r) => (S(), a(X, {
1073
1066
  modelValue: n.value,
1074
1067
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
1075
1068
  "default-open": n.value,
@@ -1080,22 +1073,22 @@ var Ze = ["data-status"], Qe = {
1080
1073
  "enable-trigger-slot": "",
1081
1074
  "summary-classes": { "pv-inset-square-12": !0 }
1082
1075
  }, {
1083
- trigger: I(() => [c("span", ct, [
1076
+ trigger: F(() => [c("span", lt, [
1084
1077
  u(W, {
1085
1078
  name: "settings",
1086
1079
  size: 20
1087
1080
  }),
1088
- c("span", lt, E(e.toolName), 1),
1081
+ c("span", ut, E(e.toolName), 1),
1089
1082
  c("span", {
1090
1083
  class: g([l.value.className, "pv-tag-sm"]),
1091
1084
  role: "status"
1092
1085
  }, E(l.value.label), 3)
1093
1086
  ])]),
1094
- default: I(() => [c("div", ut, [c("div", dt, [t.$slots.input || e.input !== void 0 ? (S(), s("section", ft, [r[1] ||= c("h3", { class: "pv-text-title-xs" }, "Parameters", -1), T(t.$slots, "input", { input: e.input }, () => [c("pre", pt, [c("code", null, E(d(e.input)), 1)])])])) : o("", !0), e.errorText ? (S(), s("section", mt, [r[2] ||= c("h3", { class: "pv-text-title-xs pv-text-critical" }, "Error", -1), c("pre", ht, E(e.errorText), 1)])) : t.$slots.output || e.output !== void 0 ? (S(), s("section", gt, [r[3] ||= c("h3", { class: "pv-text-title-xs" }, "Result", -1), T(t.$slots, "output", { output: e.output }, () => [c("pre", _t, [c("code", null, E(d(e.output)), 1)])])])) : o("", !0)])])]),
1087
+ default: F(() => [c("div", dt, [c("div", ft, [t.$slots.input || e.input !== void 0 ? (S(), s("section", $, [r[1] ||= c("h3", { class: "pv-text-title-xs" }, "Parameters", -1), T(t.$slots, "input", { input: e.input }, () => [c("pre", pt, [c("code", null, E(d(e.input)), 1)])])])) : o("", !0), e.errorText ? (S(), s("section", mt, [r[2] ||= c("h3", { class: "pv-text-title-xs pv-text-critical" }, "Error", -1), c("pre", ht, E(e.errorText), 1)])) : t.$slots.output || e.output !== void 0 ? (S(), s("section", gt, [r[3] ||= c("h3", { class: "pv-text-title-xs" }, "Result", -1), T(t.$slots, "output", { output: e.output }, () => [c("pre", _t, [c("code", null, E(d(e.output)), 1)])])])) : o("", !0)])])]),
1095
1088
  _: 3
1096
1089
  }, 8, ["modelValue", "default-open"]));
1097
1090
  }
1098
- }), $ = [
1091
+ }), yt = [
1099
1092
  "input-streaming",
1100
1093
  "input-available",
1101
1094
  "approval-requested",
@@ -1106,7 +1099,7 @@ var Ze = ["data-status"], Qe = {
1106
1099
  ];
1107
1100
  //#endregion
1108
1101
  //#region src/components/ai/useStickToBottom.ts
1109
- function yt(e, t = {}) {
1102
+ function bt(e, t = {}) {
1110
1103
  let n = t.threshold ?? 32, r = C(!0);
1111
1104
  function i() {
1112
1105
  let t = e.value;
@@ -1138,7 +1131,7 @@ function yt(e, t = {}) {
1138
1131
  e.removeEventListener("scroll", t), s.forEach((e) => e.disconnect());
1139
1132
  };
1140
1133
  }
1141
- return F(e, (e) => {
1134
+ return P(e, (e) => {
1142
1135
  o?.(), o = void 0, e && s(e);
1143
1136
  }, { immediate: !0 }), x(() => o?.()), {
1144
1137
  isAtBottom: r,
@@ -1146,6 +1139,6 @@ function yt(e, t = {}) {
1146
1139
  };
1147
1140
  }
1148
1141
  //#endregion
1149
- export { Ne as PvConfirmation, Ue as PvPromptInput, De as PvQuestion, st as PvReasoning, Q as PvStepList, vt as PvTool, We as promptInputStatuses, $ as toolLifecycleStates, yt as useStickToBottom };
1142
+ export { je as PvConfirmation, Ve as PvPromptInput, Te as PvQuestion, ct as PvReasoning, Q as PvStepList, vt as PvTool, He as promptInputStatuses, yt as toolLifecycleStates, bt as useStickToBottom };
1150
1143
 
1151
1144
  //# sourceMappingURL=pv-components-ai.mjs.map