@turquoisehealth/pit-viper 2.182.1-dev.1 → 2.182.1-dev.3

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.
@@ -1,5 +1,5 @@
1
1
  import * as e from "vue";
2
- import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, customRef as d, defineComponent as f, defineCustomElement as p, getCurrentInstance as m, getCurrentScope as h, guardReactiveProps as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, openBlock as D, reactive as O, readonly as k, ref as A, renderList as j, renderSlot as te, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as M, toDisplayString as N, toRef as ie, toValue as P, unref as ae, useId as oe, useModel as se, useTemplateRef as ce, vModelCheckbox as le, vModelText as ue, vShow as de, watch as F, watchEffect as fe, withCtx as pe, withDirectives as me, withModifiers as he } from "vue";
2
+ import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, customRef as d, defineComponent as f, defineCustomElement as p, getCurrentInstance as m, getCurrentScope as h, guardReactiveProps as g, inject as _, isRef as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, openBlock as D, reactive as O, readonly as k, ref as A, renderList as te, renderSlot as j, resolveComponent as ne, resolveDynamicComponent as re, shallowRef as M, toDisplayString as N, toRef as ie, toValue as P, unref as ae, useId as oe, useModel as se, useTemplateRef as ce, vModelCheckbox as le, vModelText as ue, vShow as de, watch as F, watchEffect as fe, withCtx as pe, withDirectives as me, withModifiers as he } from "vue";
3
3
  //#region \0rolldown/runtime.js
4
4
  var ge = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, ve = Object.getOwnPropertyNames, ye = Object.prototype.hasOwnProperty, be = (e, t) => {
5
5
  let n = {};
@@ -1021,8 +1021,8 @@ J.prototype = {
1021
1021
  hn = n, gn = x;
1022
1022
  var k = n.nextElementSibling, A = !1;
1023
1023
  A = x === 1;
1024
- var j = Ln(W, t, V, r, n, i, e, A);
1025
- if (j !== !1) return (j === 1 || j === -1) && (A = j === 1), xn = !0, setTimeout(zn, 30), g(), A && !k ? t.appendChild(V) : n.parentNode.insertBefore(V, A ? k : n), E && Lt(E, 0, ee - E.scrollTop), H = V.parentNode, S !== void 0 && !vn && (yn = Math.abs(S - z(n)[T])), v(), _(!0);
1024
+ var te = Ln(W, t, V, r, n, i, e, A);
1025
+ if (te !== !1) return (te === 1 || te === -1) && (A = te === 1), xn = !0, setTimeout(zn, 30), g(), A && !k ? t.appendChild(V) : n.parentNode.insertBefore(V, A ? k : n), E && Lt(E, 0, ee - E.scrollTop), H = V.parentNode, S !== void 0 && !vn && (yn = Math.abs(S - z(n)[T])), v(), _(!0);
1026
1026
  }
1027
1027
  if (t.contains(V)) return _(!1);
1028
1028
  }
@@ -1438,7 +1438,7 @@ var fr = ["data-align"], pr = /* @__PURE__ */ f({
1438
1438
  role: "list",
1439
1439
  class: "pv-popover-list",
1440
1440
  style: w(e.cssCustomListProperties)
1441
- }, [te(t.$slots, "default", {}, void 0, !0)], 4)) : te(t.$slots, "default", { key: 1 }, void 0, !0)], 12, fr));
1441
+ }, [j(t.$slots, "default", {}, void 0, !0)], 4)) : j(t.$slots, "default", { key: 1 }, void 0, !0)], 12, fr));
1442
1442
  }
1443
1443
  }), mr = ".pv-popover-list[data-v-c6181252]{font-size:14px}", hr = (e, t) => {
1444
1444
  let n = e.__vccOpts || e;
@@ -2788,7 +2788,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
2788
2788
  return e.push(".p-datepicker-panel"), t.ignoreClickOutsideClasses && e.push(...t.ignoreClickOutsideClasses.map((e) => `.${e}`)), e;
2789
2789
  }), O = r(() => t.showOnHover ? t.disableInteractive ? f.value : f.value || p.value : !1), k = () => {
2790
2790
  t.showOnHover || C(x ? !1 : !c.value);
2791
- }, j = () => {
2791
+ }, te = () => {
2792
2792
  t.disableClickOutsideToClose || C(!1);
2793
2793
  };
2794
2794
  return F(O, (e) => {
@@ -2799,7 +2799,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
2799
2799
  ref_key: "triggerWrapper",
2800
2800
  ref: l,
2801
2801
  onClick: k
2802
- }, [te(r.$slots, "trigger")], 512), r.$slots.content ? (D(), i(n, {
2802
+ }, [j(r.$slots, "trigger")], 512), r.$slots.content ? (D(), i(n, {
2803
2803
  key: 0,
2804
2804
  to: e.teleportLocation,
2805
2805
  disabled: !t.useTeleport
@@ -2808,7 +2808,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
2808
2808
  ref_key: "floating",
2809
2809
  ref: d,
2810
2810
  style: w(b.value)
2811
- }, [te(r.$slots, "content")], 4), [[de, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)])), [[ae(Ra), [j, { ignore: E.value }]]]);
2811
+ }, [j(r.$slots, "content")], 4), [[de, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)])), [[ae(Ra), [te, { ignore: E.value }]]]);
2812
2812
  }
2813
2813
  }), qa = ["data-variant"], Ja = /* @__PURE__ */ f({
2814
2814
  __name: "PvTooltipV2",
@@ -2850,7 +2850,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
2850
2850
  },
2851
2851
  setup(e) {
2852
2852
  return (t, n) => (D(), i(Ka, C(g(t.$props)), c({
2853
- trigger: pe(() => [te(t.$slots, "trigger", {}, () => [s("p", null, N(e.label), 1)])]),
2853
+ trigger: pe(() => [j(t.$slots, "trigger", {}, () => [s("p", null, N(e.label), 1)])]),
2854
2854
  _: 2
2855
2855
  }, [t.$slots.content || e.description ? {
2856
2856
  name: "content",
@@ -2858,7 +2858,7 @@ var Ga = { style: { width: "fit-content" } }, Ka = /* @__PURE__ */ f({
2858
2858
  class: S(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
2859
2859
  role: "tooltip",
2860
2860
  "data-variant": e.variant
2861
- }, [te(t.$slots, "content", {}, () => [l(N(e.description), 1)])], 10, qa)]),
2861
+ }, [j(t.$slots, "content", {}, () => [l(N(e.description), 1)])], 10, qa)]),
2862
2862
  key: "0"
2863
2863
  } : void 0]), 1040));
2864
2864
  }
@@ -3086,7 +3086,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3086
3086
  })), ee = r(() => {
3087
3087
  let e = n.menuOptionConfig?.variant;
3088
3088
  return e !== "checkbox" && e !== "radio";
3089
- }), O = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${O.value}-${m()?.uid}`, j = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), te = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), ne = t, M = (e) => {
3089
+ }), O = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${O.value}-${m()?.uid}`, te = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), j = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), ne = t, M = (e) => {
3090
3090
  n.disabled || (ne("handle-selected", {
3091
3091
  option: { ...n },
3092
3092
  event: e
@@ -3101,7 +3101,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3101
3101
  paddingTop: e.subText ? "4px" : void 0,
3102
3102
  paddingBottom: e.subText ? "4px" : void 0
3103
3103
  }]),
3104
- "data-testid": te.value
3104
+ "data-testid": j.value
3105
3105
  }, [
3106
3106
  s("input", {
3107
3107
  ref_key: "inputRef",
@@ -3111,7 +3111,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3111
3111
  name: k,
3112
3112
  checked: g.value,
3113
3113
  indeterminate: v.value,
3114
- class: S(j.value),
3114
+ class: S(te.value),
3115
3115
  disabled: e.disabled,
3116
3116
  onChange: M
3117
3117
  }, null, 42, mo),
@@ -3190,26 +3190,26 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3190
3190
  }),
3191
3191
  emits: /* @__PURE__ */ y(["handle-selected", "see-more"], ["update:selectedIds"]),
3192
3192
  setup(e, { emit: n }) {
3193
- let i = e, s = _(ao, void 0), c = se(e, "selectedIds"), l = _(fo, A(!1)), d = _(uo, A(!1)), f = _(co, void 0), p = _(lo, void 0), m = A(i.defaultExpanded ?? !1), h = A(!1), g = A(i.children ?? []), v = A(/* @__PURE__ */ new Set());
3193
+ let i = e, s = _(ao, void 0), c = se(e, "selectedIds"), l = _(fo, A(!1)), d = _(uo, A(!1)), f = _(co, void 0), p = _(lo, void 0), m = A(i.defaultExpanded ?? !1), h = A(!1), g = A(!1), v = A(i.children ?? []), y = A(/* @__PURE__ */ new Set());
3194
3194
  F(() => i.children, (e) => {
3195
3195
  if (!e) {
3196
- g.value = [];
3196
+ v.value = [];
3197
3197
  return;
3198
3198
  }
3199
- let t = g.value.filter((e) => v.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
3200
- g.value = [...e, ...r];
3199
+ let t = v.value.filter((e) => y.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
3200
+ v.value = [...e, ...r], g.value = !1;
3201
3201
  });
3202
- let y = () => {
3202
+ let x = () => {
3203
3203
  m.value = !m.value;
3204
- }, x = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), C = r(() => {
3204
+ }, C = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
3205
3205
  let { level: e, config: t, itemClass: n, ...r } = i;
3206
3206
  return r;
3207
- }), T = r(() => g.value.length > 0 && i.level < yo), E = r(() => T.value ? l.value ? m.value : !0 : !1), ee = r(() => m.value ? "chevron-down" : "chevron-right"), O = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), k = n, te = r(() => i.totalChildCount == null ? !1 : i.totalChildCount > g.value.length), re = async () => {
3207
+ }), E = r(() => (v.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < yo), ee = r(() => E.value ? l.value ? m.value : !0 : !1), O = r(() => m.value ? "chevron-down" : "chevron-right"), k = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), j = n, re = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), M = async () => {
3208
3208
  if (h.value) return;
3209
3209
  if (!i.handleSeeMore) {
3210
- k("see-more", {
3210
+ j("see-more", {
3211
3211
  parentId: i.id,
3212
- offset: g.value.length
3212
+ offset: v.value.length
3213
3213
  });
3214
3214
  return;
3215
3215
  }
@@ -3218,50 +3218,53 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3218
3218
  try {
3219
3219
  let t = await i.handleSeeMore({
3220
3220
  parentId: i.id,
3221
- offset: g.value.length
3221
+ offset: v.value.length
3222
3222
  });
3223
3223
  if (Array.isArray(t) && t.length > 0) {
3224
- let n = new Set(g.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
3225
- if (r.length === 0) return;
3226
- let a = new Set(v.value);
3224
+ let n = new Set(v.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
3225
+ if (r.length === 0) {
3226
+ g.value = !0;
3227
+ return;
3228
+ }
3229
+ let a = new Set(y.value);
3227
3230
  for (let e of r) a.add(e.id);
3228
- if (v.value = a, g.value = [...g.value, ...r], e && s?.value) {
3231
+ if (y.value = a, v.value = [...v.value, ...r], e && s?.value) {
3229
3232
  let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
3230
3233
  if (t.length > 0) {
3231
3234
  let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
3232
3235
  n.length > 0 && (s.value = [...s.value, ...n]);
3233
3236
  }
3234
3237
  }
3235
- }
3238
+ } else Array.isArray(t) && (g.value = !0);
3236
3239
  } finally {
3237
3240
  h.value = !1;
3238
3241
  }
3239
- }, M = (e) => {
3240
- if (l.value && T.value && e.option.id === i.id && !d.value) {
3241
- y();
3242
+ }, N = (e) => {
3243
+ if (l.value && E.value && e.option.id === i.id && !d.value) {
3244
+ x();
3242
3245
  return;
3243
3246
  }
3244
3247
  if (!s) {
3245
3248
  let t = c.value.indexOf(e.option.id);
3246
3249
  t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
3247
3250
  }
3248
- k("handle-selected", e);
3249
- }, N = (e) => {
3250
- k("handle-selected", e);
3251
+ j("handle-selected", e);
3252
+ }, ie = (e) => {
3253
+ j("handle-selected", e);
3251
3254
  };
3252
3255
  return (n, r) => {
3253
3256
  let s = ne("PvMenuItem", !0);
3254
- return D(), o(t, null, [u(go, b(C.value, {
3255
- children: g.value,
3257
+ return D(), o(t, null, [u(go, b(T.value, {
3258
+ children: v.value,
3256
3259
  menuOptionConfig: e.config,
3257
3260
  queryText: e.queryText,
3258
3261
  highlightSearchText: e.highlightSearchText,
3259
- showChevron: ae(l) && T.value,
3260
- chevronIcon: ee.value,
3262
+ showChevron: ae(l) && E.value,
3263
+ chevronIcon: O.value,
3261
3264
  expanded: m.value,
3262
- onHandleSelected: M,
3263
- onToggleExpanded: y,
3264
- selected: O(i)
3265
+ onHandleSelected: N,
3266
+ onToggleExpanded: x,
3267
+ selected: k(i)
3265
3268
  }), null, 16, [
3266
3269
  "children",
3267
3270
  "menuOptionConfig",
@@ -3271,13 +3274,13 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3271
3274
  "chevronIcon",
3272
3275
  "expanded",
3273
3276
  "selected"
3274
- ]), E.value ? (D(), o("ul", {
3277
+ ]), ee.value ? (D(), o("ul", {
3275
3278
  key: 0,
3276
3279
  role: "list",
3277
- style: w(x.value)
3278
- }, [(D(!0), o(t, null, j(g.value, (t) => (D(), o("li", {
3280
+ style: w(C.value)
3281
+ }, [(D(!0), o(t, null, te(v.value, (t) => (D(), o("li", {
3279
3282
  key: t.id,
3280
- "data-active": O(t) ? "true" : null,
3283
+ "data-active": k(t) ? "true" : null,
3281
3284
  class: S(e.itemClass)
3282
3285
  }, [u(s, b({ ref_for: !0 }, t, {
3283
3286
  selectedIds: c.value,
@@ -3286,21 +3289,21 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3286
3289
  queryText: e.queryText,
3287
3290
  highlightSearchText: e.highlightSearchText,
3288
3291
  level: e.level + 1,
3289
- onHandleSelected: N,
3290
- onSeeMore: r[1] ||= (e) => k("see-more", e)
3292
+ onHandleSelected: ie,
3293
+ onSeeMore: r[1] ||= (e) => j("see-more", e)
3291
3294
  }), null, 16, [
3292
3295
  "selectedIds",
3293
3296
  "config",
3294
3297
  "queryText",
3295
3298
  "highlightSearchText",
3296
3299
  "level"
3297
- ])], 10, _o))), 128)), te.value ? (D(), o("li", vo, [u(to, {
3300
+ ])], 10, _o))), 128)), re.value ? (D(), o("li", vo, [u(to, {
3298
3301
  class: "pv-text-brand",
3299
3302
  variant: "ghost",
3300
3303
  label: "See more",
3301
3304
  loading: h.value,
3302
3305
  "data-testid": "pv-menu-item-see-more",
3303
- onClick: re
3306
+ onClick: M
3304
3307
  }, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
3305
3308
  };
3306
3309
  }
@@ -3449,7 +3452,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3449
3452
  };
3450
3453
  l(s.value, t);
3451
3454
  };
3452
- return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, j(u.value, (e, t) => (D(), i(Do, {
3455
+ return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, te(u.value, (e, t) => (D(), i(Do, {
3453
3456
  key: `${t}-${e.queryText}`,
3454
3457
  variant: p(e),
3455
3458
  label: f(e),
@@ -3580,7 +3583,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3580
3583
  g.value = !1, _.value = !1;
3581
3584
  }
3582
3585
  };
3583
- function te(e) {
3586
+ function j(e) {
3584
3587
  let t = e.target;
3585
3588
  t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
3586
3589
  }
@@ -3594,7 +3597,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3594
3597
  ref: "query-builder-input",
3595
3598
  class: "pv-relative pv-query-builder-input-wrapper",
3596
3599
  onFocus: ne,
3597
- onClick: te
3600
+ onClick: j
3598
3601
  }, [
3599
3602
  e.hideSearchIcon ? a("v-if", !0) : (D(), i(xr, {
3600
3603
  key: 0,
@@ -3644,7 +3647,7 @@ var ao = Symbol("SelectedItemsKey"), oo = Symbol("EnableCascadeSelectionKey"), s
3644
3647
  },
3645
3648
  isList: !0
3646
3649
  }, {
3647
- default: pe(() => [e.optionsLoading ? (D(), o("div", jo, [u(Ya, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, j(ee.value, (e, t) => (D(), i(bo, b({
3650
+ default: pe(() => [e.optionsLoading ? (D(), o("div", jo, [u(Ya, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, te(ee.value, (e, t) => (D(), i(bo, b({
3648
3651
  key: `${t}-${e.searchText}`,
3649
3652
  ref_for: !0
3650
3653
  }, e, {
@@ -3988,7 +3991,7 @@ var Ms = {
3988
3991
  getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
3989
3992
  let { preset: a, options: o } = t, s, c, l, u, d, f, p;
3990
3993
  if (Z(a) && o.transform !== "strict") {
3991
- let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ps(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = y || {}, { dark: T } = w, E = ps(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {}, A = Z(b) ? this._toVariables({ semantic: b }, o) : {}, j = Z(E) ? this._toVariables({ light: E }, o) : {}, te = Z(T) ? this._toVariables({ dark: T }, o) : {}, [ne, re] = [ee.declarations ?? "", ee.tokens], [M, N] = [D.declarations ?? "", D.tokens || []], [ie, P] = [O.declarations ?? "", O.tokens || []], [ae, oe] = [k.declarations ?? "", k.tokens || []], [se, ce] = [A.declarations ?? "", A.tokens || []], [le, ue] = [j.declarations ?? "", j.tokens || []], [de, F] = [te.declarations ?? "", te.tokens || []];
3994
+ let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ps(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = y || {}, { dark: T } = w, E = ps(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {}, A = Z(b) ? this._toVariables({ semantic: b }, o) : {}, te = Z(E) ? this._toVariables({ light: E }, o) : {}, j = Z(T) ? this._toVariables({ dark: T }, o) : {}, [ne, re] = [ee.declarations ?? "", ee.tokens], [M, N] = [D.declarations ?? "", D.tokens || []], [ie, P] = [O.declarations ?? "", O.tokens || []], [ae, oe] = [k.declarations ?? "", k.tokens || []], [se, ce] = [A.declarations ?? "", A.tokens || []], [le, ue] = [te.declarations ?? "", te.tokens || []], [de, F] = [j.declarations ?? "", j.tokens || []];
3992
3995
  s = this.transformCSS(e, ne, "light", "variable", o, r, i), c = re, l = `${this.transformCSS(e, `${M}${ie}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ae}`, "dark", "variable", o, r, i)}`, u = [...new Set([
3993
3996
  ...N,
3994
3997
  ...P,
@@ -4022,11 +4025,11 @@ var Ms = {
4022
4025
  "colorScheme",
4023
4026
  "extend",
4024
4027
  "css"
4025
- ]), h = f || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ps(v, ["dark"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ds(ds({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ds(ds({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ds(ds({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
4028
+ ]), h = f || {}, { colorScheme: g } = h, _ = ps(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ps(v, ["dark"]), x = g || {}, { dark: S } = x, C = ps(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ds(ds({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ds(ds({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ds(ds({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, te] = [E.declarations ?? "", E.tokens || []];
4026
4029
  s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
4027
4030
  ...D,
4028
4031
  ...k,
4029
- ...j
4032
+ ...te
4030
4033
  ])], l = Wo(p, { dt: Os });
4031
4034
  }
4032
4035
  return {
@@ -4385,7 +4388,7 @@ function Bs(e) {
4385
4388
  }
4386
4389
  var Vs = 0;
4387
4390
  function Hs(e) {
4388
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(!1), r = A(e), i = A(null), a = ns() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Vs}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, j = function() {}, te = function(t) {
4391
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(!1), r = A(e), i = A(null), a = ns() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Vs}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, te = function() {}, j = function(t) {
4389
4392
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4390
4393
  if (s) {
4391
4394
  var o = Is(Is({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
@@ -4396,20 +4399,20 @@ function Hs(e) {
4396
4399
  nonce: u
4397
4400
  }), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), rs(i.value, "data-primevue-style-id", c), ts(i.value, o), i.value.onload = function(e) {
4398
4401
  return ee?.(e, { name: c });
4399
- }, C?.(c)), !n.value && (j = F(r, function(e) {
4402
+ }, C?.(c)), !n.value && (te = F(r, function(e) {
4400
4403
  i.value.textContent = e, T?.(c);
4401
4404
  }, { immediate: !0 }), n.value = !0);
4402
4405
  }
4403
4406
  };
4404
- return l && !d && Bs(te), {
4407
+ return l && !d && Bs(j), {
4405
4408
  id: h,
4406
4409
  name: p,
4407
4410
  el: i,
4408
4411
  css: r,
4409
4412
  unload: function() {
4410
- !s || !n.value || (j(), $o(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
4413
+ !s || !n.value || (te(), $o(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
4411
4414
  },
4412
- load: te,
4415
+ load: j,
4413
4416
  isLoaded: k(n)
4414
4417
  };
4415
4418
  }
@@ -2258,26 +2258,26 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
2258
2258
  }),
2259
2259
  emits: /* @__PURE__ */ y(["handle-selected", "see-more"], ["update:selectedIds"]),
2260
2260
  setup(e, { emit: n }) {
2261
- let i = e, s = _(ii, void 0), c = se(e, "selectedIds"), l = _(ui, j(!1)), d = _(li, j(!1)), f = _(si, void 0), p = _(ci, void 0), m = j(i.defaultExpanded ?? !1), h = j(!1), g = j(i.children ?? []), v = j(/* @__PURE__ */ new Set());
2261
+ let i = e, s = _(ii, void 0), c = se(e, "selectedIds"), l = _(ui, j(!1)), d = _(li, j(!1)), f = _(si, void 0), p = _(ci, void 0), m = j(i.defaultExpanded ?? !1), h = j(!1), g = j(!1), v = j(i.children ?? []), y = j(/* @__PURE__ */ new Set());
2262
2262
  L(() => i.children, (e) => {
2263
2263
  if (!e) {
2264
- g.value = [];
2264
+ v.value = [];
2265
2265
  return;
2266
2266
  }
2267
- let t = g.value.filter((e) => v.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
2268
- g.value = [...e, ...r];
2267
+ let t = v.value.filter((e) => y.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
2268
+ v.value = [...e, ...r], g.value = !1;
2269
2269
  });
2270
- let y = () => {
2270
+ let x = () => {
2271
2271
  m.value = !m.value;
2272
- }, x = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), C = r(() => {
2272
+ }, C = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
2273
2273
  let { level: e, config: t, itemClass: n, ...r } = i;
2274
2274
  return r;
2275
- }), T = r(() => g.value.length > 0 && i.level < _i), E = r(() => T.value ? l.value ? m.value : !0 : !1), ee = r(() => m.value ? "chevron-down" : "chevron-right"), D = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), k = n, A = r(() => i.totalChildCount == null ? !1 : i.totalChildCount > g.value.length), te = async () => {
2275
+ }), E = r(() => (v.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < _i), ee = r(() => E.value ? l.value ? m.value : !0 : !1), D = r(() => m.value ? "chevron-down" : "chevron-right"), k = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), A = n, te = r(() => g.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), M = async () => {
2276
2276
  if (h.value) return;
2277
2277
  if (!i.handleSeeMore) {
2278
- k("see-more", {
2278
+ A("see-more", {
2279
2279
  parentId: i.id,
2280
- offset: g.value.length
2280
+ offset: v.value.length
2281
2281
  });
2282
2282
  return;
2283
2283
  }
@@ -2286,50 +2286,53 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
2286
2286
  try {
2287
2287
  let t = await i.handleSeeMore({
2288
2288
  parentId: i.id,
2289
- offset: g.value.length
2289
+ offset: v.value.length
2290
2290
  });
2291
2291
  if (Array.isArray(t) && t.length > 0) {
2292
- let n = new Set(g.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
2293
- if (r.length === 0) return;
2294
- let a = new Set(v.value);
2292
+ let n = new Set(v.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
2293
+ if (r.length === 0) {
2294
+ g.value = !0;
2295
+ return;
2296
+ }
2297
+ let a = new Set(y.value);
2295
2298
  for (let e of r) a.add(e.id);
2296
- if (v.value = a, g.value = [...g.value, ...r], e && s?.value) {
2299
+ if (y.value = a, v.value = [...v.value, ...r], e && s?.value) {
2297
2300
  let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
2298
2301
  if (t.length > 0) {
2299
2302
  let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
2300
2303
  n.length > 0 && (s.value = [...s.value, ...n]);
2301
2304
  }
2302
2305
  }
2303
- }
2306
+ } else Array.isArray(t) && (g.value = !0);
2304
2307
  } finally {
2305
2308
  h.value = !1;
2306
2309
  }
2307
- }, M = (e) => {
2308
- if (l.value && T.value && e.option.id === i.id && !d.value) {
2309
- y();
2310
+ }, ie = (e) => {
2311
+ if (l.value && E.value && e.option.id === i.id && !d.value) {
2312
+ x();
2310
2313
  return;
2311
2314
  }
2312
2315
  if (!s) {
2313
2316
  let t = c.value.indexOf(e.option.id);
2314
2317
  t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
2315
2318
  }
2316
- k("handle-selected", e);
2317
- }, ie = (e) => {
2318
- k("handle-selected", e);
2319
+ A("handle-selected", e);
2320
+ }, N = (e) => {
2321
+ A("handle-selected", e);
2319
2322
  };
2320
2323
  return (n, r) => {
2321
2324
  let s = re("PvMenuItem", !0);
2322
- return O(), o(t, null, [u(mi, b(C.value, {
2323
- children: g.value,
2325
+ return O(), o(t, null, [u(mi, b(T.value, {
2326
+ children: v.value,
2324
2327
  menuOptionConfig: e.config,
2325
2328
  queryText: e.queryText,
2326
2329
  highlightSearchText: e.highlightSearchText,
2327
- showChevron: I(l) && T.value,
2328
- chevronIcon: ee.value,
2330
+ showChevron: I(l) && E.value,
2331
+ chevronIcon: D.value,
2329
2332
  expanded: m.value,
2330
- onHandleSelected: M,
2331
- onToggleExpanded: y,
2332
- selected: D(i)
2333
+ onHandleSelected: ie,
2334
+ onToggleExpanded: x,
2335
+ selected: k(i)
2333
2336
  }), null, 16, [
2334
2337
  "children",
2335
2338
  "menuOptionConfig",
@@ -2339,13 +2342,13 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
2339
2342
  "chevronIcon",
2340
2343
  "expanded",
2341
2344
  "selected"
2342
- ]), E.value ? (O(), o("ul", {
2345
+ ]), ee.value ? (O(), o("ul", {
2343
2346
  key: 0,
2344
2347
  role: "list",
2345
- style: w(x.value)
2346
- }, [(O(!0), o(t, null, ne(g.value, (t) => (O(), o("li", {
2348
+ style: w(C.value)
2349
+ }, [(O(!0), o(t, null, ne(v.value, (t) => (O(), o("li", {
2347
2350
  key: t.id,
2348
- "data-active": D(t) ? "true" : null,
2351
+ "data-active": k(t) ? "true" : null,
2349
2352
  class: S(e.itemClass)
2350
2353
  }, [u(s, b({ ref_for: !0 }, t, {
2351
2354
  selectedIds: c.value,
@@ -2354,21 +2357,21 @@ var ii = Symbol("SelectedItemsKey"), ai = Symbol("EnableCascadeSelectionKey"), o
2354
2357
  queryText: e.queryText,
2355
2358
  highlightSearchText: e.highlightSearchText,
2356
2359
  level: e.level + 1,
2357
- onHandleSelected: ie,
2358
- onSeeMore: r[1] ||= (e) => k("see-more", e)
2360
+ onHandleSelected: N,
2361
+ onSeeMore: r[1] ||= (e) => A("see-more", e)
2359
2362
  }), null, 16, [
2360
2363
  "selectedIds",
2361
2364
  "config",
2362
2365
  "queryText",
2363
2366
  "highlightSearchText",
2364
2367
  "level"
2365
- ])], 10, hi))), 128)), A.value ? (O(), o("li", gi, [u(ei, {
2368
+ ])], 10, hi))), 128)), te.value ? (O(), o("li", gi, [u(ei, {
2366
2369
  class: "pv-text-brand",
2367
2370
  variant: "ghost",
2368
2371
  label: "See more",
2369
2372
  loading: h.value,
2370
2373
  "data-testid": "pv-menu-item-see-more",
2371
- onClick: te
2374
+ onClick: M
2372
2375
  }, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
2373
2376
  };
2374
2377
  }