@turquoisehealth/pit-viper 2.122.1-dev.0 → 2.123.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 (38) hide show
  1. package/package.json +1 -1
  2. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  4. package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  16. package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +0 -1
  17. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +0 -6
  18. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +289 -206
  19. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -31
  20. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
  21. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -6
  22. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +177 -20
  23. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +9 -4
  24. package/pv-components/dist/vue/base/pv-components-base.mjs +2713 -2704
  25. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3296 -4299
  26. package/pv-components/dist/web/components/pv-button/pv-button.js +43 -43
  27. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +159 -159
  28. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +87 -87
  29. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +76 -76
  30. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +78 -78
  31. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2185 -7690
  32. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +92 -92
  33. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +768 -852
  34. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2139 -7599
  35. package/pv-components/dist/web/components/pv-toast/pv-toast.js +58 -58
  36. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +1638 -1722
  37. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1481 -1565
  38. package/pv-components/dist/web/pv-components.iife.js +50 -50
@@ -31,71 +31,71 @@ function k(e) {
31
31
  }
32
32
  function I(...e) {
33
33
  const t = [], n = () => {
34
- t.forEach((o) => o()), t.length = 0;
35
- }, s = (o, r, i, u) => (o.addEventListener(r, i, u), () => o.removeEventListener(r, i, u)), l = _(() => {
36
- const o = B(S(e[0])).filter((r) => r != null);
37
- return o.every((r) => typeof r != "string") ? o : void 0;
38
- }), p = fe(
34
+ t.forEach((s) => s()), t.length = 0;
35
+ }, r = (s, o, l, u) => (s.addEventListener(o, l, u), () => s.removeEventListener(o, l, u)), i = _(() => {
36
+ const s = B(S(e[0])).filter((o) => o != null);
37
+ return s.every((o) => typeof o != "string") ? s : void 0;
38
+ }), c = fe(
39
39
  () => {
40
- var o, r;
40
+ var s, o;
41
41
  return [
42
- (r = (o = l.value) == null ? void 0 : o.map((i) => k(i))) != null ? r : [z].filter((i) => i != null),
43
- B(S(l.value ? e[1] : e[0])),
44
- B(te(l.value ? e[2] : e[1])),
42
+ (o = (s = i.value) == null ? void 0 : s.map((l) => k(l))) != null ? o : [z].filter((l) => l != null),
43
+ B(S(i.value ? e[1] : e[0])),
44
+ B(te(i.value ? e[2] : e[1])),
45
45
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
46
- S(l.value ? e[3] : e[2])
46
+ S(i.value ? e[3] : e[2])
47
47
  ];
48
48
  },
49
- ([o, r, i, u]) => {
50
- if (n(), !o?.length || !r?.length || !i?.length)
49
+ ([s, o, l, u]) => {
50
+ if (n(), !s?.length || !o?.length || !l?.length)
51
51
  return;
52
52
  const h = ce(u) ? { ...u } : u;
53
53
  t.push(
54
- ...o.flatMap(
55
- (g) => r.flatMap(
56
- (v) => i.map(($) => s(g, v, $, h))
54
+ ...s.flatMap(
55
+ (g) => o.flatMap(
56
+ (v) => l.map(($) => r(g, v, $, h))
57
57
  )
58
58
  )
59
59
  );
60
60
  },
61
61
  { flush: "post" }
62
- ), c = () => {
63
- p(), n();
62
+ ), d = () => {
63
+ c(), n();
64
64
  };
65
- return ae(n), c;
65
+ return ae(n), d;
66
66
  }
67
67
  let R = !1;
68
68
  function he(e, t, n = {}) {
69
- const { window: s = z, ignore: l = [], capture: p = !0, detectIframe: c = !1, controls: o = !1 } = n;
70
- if (!s)
71
- return o ? { stop: P, cancel: P, trigger: P } : P;
69
+ const { window: r = z, ignore: i = [], capture: c = !0, detectIframe: d = !1, controls: s = !1 } = n;
70
+ if (!r)
71
+ return s ? { stop: P, cancel: P, trigger: P } : P;
72
72
  if (de && !R) {
73
73
  R = !0;
74
74
  const a = { passive: !0 };
75
- Array.from(s.document.body.children).forEach((d) => d.addEventListener("click", P, a)), s.document.documentElement.addEventListener("click", P, a);
75
+ Array.from(r.document.body.children).forEach((p) => p.addEventListener("click", P, a)), r.document.documentElement.addEventListener("click", P, a);
76
76
  }
77
- let r = !0;
78
- const i = (a) => S(l).some((d) => {
79
- if (typeof d == "string")
80
- return Array.from(s.document.querySelectorAll(d)).some((m) => m === a.target || a.composedPath().includes(m));
77
+ let o = !0;
78
+ const l = (a) => S(i).some((p) => {
79
+ if (typeof p == "string")
80
+ return Array.from(r.document.querySelectorAll(p)).some((m) => m === a.target || a.composedPath().includes(m));
81
81
  {
82
- const m = k(d);
82
+ const m = k(p);
83
83
  return m && (a.target === m || a.composedPath().includes(m));
84
84
  }
85
85
  });
86
86
  function u(a) {
87
- const d = S(a);
88
- return d && d.$.subTree.shapeFlag === 16;
87
+ const p = S(a);
88
+ return p && p.$.subTree.shapeFlag === 16;
89
89
  }
90
- function h(a, d) {
90
+ function h(a, p) {
91
91
  const m = S(a), O = m.$.subTree && m.$.subTree.children;
92
- return O == null || !Array.isArray(O) ? !1 : O.some((N) => N.el === d.target || d.composedPath().includes(N.el));
92
+ return O == null || !Array.isArray(O) ? !1 : O.some((N) => N.el === p.target || p.composedPath().includes(N.el));
93
93
  }
94
94
  const g = (a) => {
95
- const d = k(e);
96
- if (a.target != null && !(!(d instanceof Element) && u(e) && h(e, a)) && !(!d || d === a.target || a.composedPath().includes(d))) {
97
- if ("detail" in a && a.detail === 0 && (r = !i(a)), !r) {
98
- r = !0;
95
+ const p = k(e);
96
+ if (a.target != null && !(!(p instanceof Element) && u(e) && h(e, a)) && !(!p || p === a.target || a.composedPath().includes(p))) {
97
+ if ("detail" in a && a.detail === 0 && (o = !l(a)), !o) {
98
+ o = !0;
99
99
  return;
100
100
  }
101
101
  t(a);
@@ -103,30 +103,30 @@ function he(e, t, n = {}) {
103
103
  };
104
104
  let v = !1;
105
105
  const $ = [
106
- I(s, "click", (a) => {
106
+ I(r, "click", (a) => {
107
107
  v || (v = !0, setTimeout(() => {
108
108
  v = !1;
109
109
  }, 0), g(a));
110
- }, { passive: !0, capture: p }),
111
- I(s, "pointerdown", (a) => {
112
- const d = k(e);
113
- r = !i(a) && !!(d && !a.composedPath().includes(d));
110
+ }, { passive: !0, capture: c }),
111
+ I(r, "pointerdown", (a) => {
112
+ const p = k(e);
113
+ o = !l(a) && !!(p && !a.composedPath().includes(p));
114
114
  }, { passive: !0 }),
115
- c && I(s, "blur", (a) => {
115
+ d && I(r, "blur", (a) => {
116
116
  setTimeout(() => {
117
- var d;
117
+ var p;
118
118
  const m = k(e);
119
- ((d = s.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !m?.contains(s.document.activeElement) && t(a);
119
+ ((p = r.document.activeElement) == null ? void 0 : p.tagName) === "IFRAME" && !m?.contains(r.document.activeElement) && t(a);
120
120
  }, 0);
121
121
  }, { passive: !0 })
122
122
  ].filter(Boolean), L = () => $.forEach((a) => a());
123
- return o ? {
123
+ return s ? {
124
124
  stop: L,
125
125
  cancel: () => {
126
- r = !1;
126
+ o = !1;
127
127
  },
128
128
  trigger: (a) => {
129
- r = !0, g(a), r = !1;
129
+ o = !0, g(a), o = !1;
130
130
  }
131
131
  } : L;
132
132
  }
@@ -134,17 +134,17 @@ function ve(e) {
134
134
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
135
135
  }
136
136
  function X(...e) {
137
- let t, n, s = {};
138
- e.length === 3 ? (t = e[0], n = e[1], s = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], s = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
137
+ let t, n, r = {};
138
+ e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
139
139
  const {
140
- target: l = z,
141
- eventName: p = "keydown",
142
- passive: c = !1,
143
- dedupe: o = !1
144
- } = s, r = ve(t);
145
- return I(l, p, (u) => {
146
- u.repeat && S(o) || r(u) && n(u);
147
- }, c);
140
+ target: i = z,
141
+ eventName: c = "keydown",
142
+ passive: d = !1,
143
+ dedupe: s = !1
144
+ } = r, o = ve(t);
145
+ return I(i, c, (u) => {
146
+ u.repeat && S(s) || o(u) && n(u);
147
+ }, d);
148
148
  }
149
149
  const me = { class: "pv-relative" }, be = ["disabled", "placeholder"], ye = {
150
150
  key: 0,
@@ -162,27 +162,27 @@ const me = { class: "pv-relative" }, be = ["disabled", "placeholder"], ye = {
162
162
  }),
163
163
  emits: ["update:modelValue"],
164
164
  setup(e, { expose: t }) {
165
- const n = e, s = J("search-input"), l = V(e, "modelValue"), p = _(() => ({
165
+ const n = e, r = J("search-input"), i = V(e, "modelValue"), c = _(() => ({
166
166
  "pv-input-search": !0,
167
167
  "pv-full-width": !0,
168
168
  "pv-input-padded-end": !0
169
169
  }));
170
170
  return K(() => {
171
- n.displayShortcut && X(W, (c) => {
172
- const o = c.target, r = o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || (o?.isContentEditable ?? !1), i = document.activeElement === s.value;
173
- (!r || i) && (i || (c.preventDefault(), s.value?.focus()));
171
+ n.displayShortcut && X(W, (d) => {
172
+ const s = d.target, o = s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || (s?.isContentEditable ?? !1), l = document.activeElement === r.value;
173
+ (!o || l) && (l || (d.preventDefault(), r.value?.focus()));
174
174
  });
175
- }), t({ input: s }), (c, o) => (f(), b("div", me, [
175
+ }), t({ input: r }), (d, s) => (f(), b("div", me, [
176
176
  ne(w("input", {
177
177
  ref: "search-input",
178
- "onUpdate:modelValue": o[0] || (o[0] = (r) => l.value = r),
178
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => i.value = o),
179
179
  "data-testid": "pv-search-input",
180
180
  type: "text",
181
181
  disabled: e.disabled,
182
- class: A(p.value),
182
+ class: A(c.value),
183
183
  placeholder: e.placeholder
184
184
  }, null, 10, be), [
185
- [se, l.value]
185
+ [se, i.value]
186
186
  ]),
187
187
  e.displayShortcut ? (f(), b("kbd", ye, C(W))) : y("v-if", !0)
188
188
  ]));
@@ -199,19 +199,19 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
199
199
  size: { type: null }
200
200
  },
201
201
  setup(e) {
202
- const t = e, n = Se(), s = F(null), l = _(() => ({
202
+ const t = e, n = Se(), r = F(null), i = _(() => ({
203
203
  "pv-icon": !0,
204
204
  [`pv-icon-${t.size}`]: we.includes(t.size)
205
- })), p = _(() => n.value && s.value ? `${s.value}#${t.name}` : `#${t.name}`);
206
- return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (s.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (c, o) => (f(), b(
205
+ })), c = _(() => n.value && r.value ? `${r.value}#${t.name}` : `#${t.name}`);
206
+ return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (r.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (d, s) => (f(), b(
207
207
  "svg",
208
208
  {
209
209
  "data-testid": "pv-icon",
210
210
  "aria-hidden": "true",
211
- class: A(l.value)
211
+ class: A(i.value)
212
212
  },
213
213
  [
214
- w("use", { "xlink:href": p.value }, null, 8, Pe)
214
+ w("use", { "xlink:href": c.value }, null, 8, Pe)
215
215
  ],
216
216
  2
217
217
  /* CLASS */
@@ -235,7 +235,7 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
235
235
  dark: "pv-spinner-dark",
236
236
  white: "pv-spinner-light"
237
237
  };
238
- return (s, l) => (f(), b(
238
+ return (r, i) => (f(), b(
239
239
  "div",
240
240
  {
241
241
  "data-testid": "pv-spinner",
@@ -247,14 +247,14 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
247
247
  /* CLASS, STYLE */
248
248
  ));
249
249
  }
250
- }), _e = ["ghost"], q = {
250
+ }), q = {
251
251
  md: "pv-button-small",
252
252
  lg: void 0,
253
253
  xl: "pv-button-large"
254
- }, Ee = (e) => e == null || !q.hasOwnProperty(e) ? null : q[e] || null, Ie = ["disabled"], Ce = {
254
+ }, _e = (e) => e == null || !q.hasOwnProperty(e) ? null : q[e] || null, Ee = ["disabled"], Ie = {
255
255
  key: 1,
256
256
  "data-testid": "pv-button-label"
257
- }, Ae = /* @__PURE__ */ E({
257
+ }, Ce = /* @__PURE__ */ E({
258
258
  __name: "PvButton",
259
259
  props: {
260
260
  variant: { default: "primary", type: String },
@@ -267,15 +267,15 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
267
267
  inverse: { type: Boolean, default: !1 }
268
268
  },
269
269
  setup(e) {
270
- const t = e, n = _(() => {
271
- const s = [];
272
- t.inverse && _e.includes(t.variant) ? s.push(`pv-button-${t.variant}-inverse`) : s.push(`pv-button-${t.variant}`);
273
- const l = Ee(t.size);
274
- return l && s.push(l), s;
270
+ const t = ["ghost"], n = e, r = _(() => {
271
+ const i = [];
272
+ n.inverse && t.includes(n.variant) ? i.push(`pv-button-${n.variant}-inverse`) : i.push(`pv-button-${n.variant}`);
273
+ const c = _e(n.size);
274
+ return c && i.push(c), i;
275
275
  });
276
- return (s, l) => (f(), b("button", {
276
+ return (i, c) => (f(), b("button", {
277
277
  type: "button",
278
- class: A(n.value),
278
+ class: A(r.value),
279
279
  disabled: e.disabled,
280
280
  "data-testid": "pv-button"
281
281
  }, [
@@ -293,7 +293,7 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
293
293
  }, null, 8, ["name"])) : y("v-if", !0),
294
294
  e.label ? (f(), b(
295
295
  "span",
296
- Ce,
296
+ Ie,
297
297
  C(e.label),
298
298
  1
299
299
  /* TEXT */
@@ -307,28 +307,28 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
307
307
  64
308
308
  /* STABLE_FRAGMENT */
309
309
  ))
310
- ], 10, Ie));
310
+ ], 10, Ee));
311
311
  }
312
- }), $e = {
312
+ }), Ae = {
313
313
  class: "pv-inset-squish-12 pv-border-bottom",
314
314
  style: { "flex-shrink": "0" }
315
- }, Oe = {
315
+ }, $e = {
316
316
  class: "pv-flex-vertical pv-stack-16",
317
317
  style: { "--flex-align": "flex-start" }
318
- }, Te = { class: "pv-flex pv-full-width" }, xe = { class: "pv-full-width pv-heading-3" }, Be = {
318
+ }, Oe = { class: "pv-flex pv-full-width" }, Te = { class: "pv-full-width pv-heading-3" }, xe = {
319
319
  key: 0,
320
320
  class: "pv-text-body-md"
321
- }, Me = {
321
+ }, Be = {
322
322
  key: 0,
323
323
  class: "pv-inset-inline-16"
324
- }, je = {
324
+ }, Me = {
325
325
  class: "pv-inset-inline-16",
326
326
  style: { flex: "1", "overflow-y": "auto", "min-height": "0" }
327
- }, Ve = {
327
+ }, je = {
328
328
  key: 0,
329
329
  class: "pv-inset-squish-12 pv-border-top",
330
330
  style: { "flex-shrink": "0" }
331
- }, ze = /* @__PURE__ */ E({
331
+ }, Ve = /* @__PURE__ */ E({
332
332
  __name: "PvDrawer",
333
333
  props: /* @__PURE__ */ j({
334
334
  header: { type: String },
@@ -346,74 +346,74 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
346
346
  }),
347
347
  emits: /* @__PURE__ */ j(["click-outside"], ["update:searchInput", "update:modelValue"]),
348
348
  setup(e, { emit: t }) {
349
- const n = e, s = t, l = J("sidePanel"), p = V(e, "searchInput"), c = V(e, "modelValue");
349
+ const n = e, r = t, i = J("sidePanel"), c = V(e, "searchInput"), d = V(e, "modelValue");
350
350
  K(() => {
351
- c.value && l?.value?.setAttribute("open", "true"), n.closeOnClickOutside && o();
351
+ d.value && i?.value?.setAttribute("open", "true"), n.closeOnClickOutside && s();
352
352
  });
353
- const o = () => {
354
- l.value && he(
355
- l.value,
353
+ const s = () => {
354
+ i.value && he(
355
+ i.value,
356
356
  () => {
357
- c.value && (s("click-outside"), r());
357
+ d.value && (r("click-outside"), o());
358
358
  },
359
359
  { ignore: [".pv-click-outside-ignore"] }
360
360
  );
361
- }, r = () => {
362
- l?.value?.removeAttribute("open"), c.value = !1;
361
+ }, o = () => {
362
+ i?.value?.removeAttribute("open"), d.value = !1;
363
363
  };
364
364
  return U(
365
- () => c.value,
365
+ () => d.value,
366
366
  () => {
367
- c.value ? l?.value?.setAttribute("open", "true") : l?.value?.removeAttribute("open");
367
+ d.value ? i?.value?.setAttribute("open", "true") : i?.value?.removeAttribute("open");
368
368
  }
369
369
  ), X("Escape", () => {
370
- l.value && c.value && r();
371
- }), (i, u) => (f(), b(
370
+ i.value && d.value && o();
371
+ }), (l, u) => (f(), b(
372
372
  "div",
373
373
  {
374
374
  class: "pv-drawer pv-surface",
375
375
  ref_key: "sidePanel",
376
- ref: l,
376
+ ref: i,
377
377
  "data-testid": "pv-drawer",
378
378
  style: { display: "flex", "flex-direction": "column", height: "100%" }
379
379
  },
380
380
  [
381
381
  y(" Header Section (Fixed) "),
382
- w("div", $e, [
383
- i.$slots.header ? x(i.$slots, "header", { key: 0 }) : (f(), b(
382
+ w("div", Ae, [
383
+ l.$slots.header ? x(l.$slots, "header", { key: 0 }) : (f(), b(
384
384
  Z,
385
385
  { key: 1 },
386
386
  [
387
- w("div", Oe, [
388
- w("div", Te, [
387
+ w("div", $e, [
388
+ w("div", Oe, [
389
389
  w(
390
390
  "span",
391
- xe,
391
+ Te,
392
392
  C(e.header),
393
393
  1
394
394
  /* TEXT */
395
395
  ),
396
- D(Ae, {
396
+ D(Ce, {
397
397
  "left-icon": "close",
398
398
  size: "md",
399
- onClick: r,
399
+ onClick: o,
400
400
  "data-testid": "pv-side-panel-close-button",
401
401
  variant: "ghost"
402
402
  })
403
403
  ]),
404
404
  e.subheader ? (f(), b(
405
405
  "span",
406
- Be,
406
+ xe,
407
407
  C(e.subheader),
408
408
  1
409
409
  /* TEXT */
410
410
  )) : y("v-if", !0)
411
411
  ]),
412
- e.showSearchbar && p.value !== void 0 ? (f(), b("div", Me, [
412
+ e.showSearchbar && c.value !== void 0 ? (f(), b("div", Be, [
413
413
  D(ge, ie({
414
414
  "data-testid": "pv-side-panel-input-search",
415
- modelValue: p.value,
416
- "onUpdate:modelValue": u[0] || (u[0] = (h) => p.value = h)
415
+ modelValue: c.value,
416
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => c.value = h)
417
417
  }, n.searchInputProps), null, 16, ["modelValue"])
418
418
  ])) : y("v-if", !0)
419
419
  ],
@@ -422,36 +422,36 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
422
422
  ))
423
423
  ]),
424
424
  y(" Main Content Section (Scrollable) "),
425
- w("div", je, [
426
- x(i.$slots, "default")
425
+ w("div", Me, [
426
+ x(l.$slots, "default")
427
427
  ]),
428
428
  y(" Footer Section (Fixed) "),
429
- i.$slots.footer ? (f(), b("div", Ve, [
430
- x(i.$slots, "footer")
429
+ l.$slots.footer ? (f(), b("div", je, [
430
+ x(l.$slots, "footer")
431
431
  ])) : y("v-if", !0)
432
432
  ],
433
433
  512
434
434
  /* NEED_PATCH */
435
435
  ));
436
436
  }
437
- }), Le = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
438
- function Ne(e) {
439
- return !Le.has(e);
437
+ }), ze = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
438
+ function Le(e) {
439
+ return !ze.has(e);
440
440
  }
441
441
  function M(e, t) {
442
442
  const n = document.querySelector('link[href*="' + t + '"]');
443
443
  if (!e.shadowRoot)
444
444
  return !1;
445
445
  if (n && e.shadowRoot) {
446
- const s = n.href;
447
- if (e.shadowRoot.querySelector(`link[href="${s}"]`))
446
+ const r = n.href;
447
+ if (e.shadowRoot.querySelector(`link[href="${r}"]`))
448
448
  return;
449
- const l = document.createElement("link");
450
- return l.rel = "stylesheet", l.href = s, e.shadowRoot.prepend(l), !0;
449
+ const i = document.createElement("link");
450
+ return i.rel = "stylesheet", i.href = r, e.shadowRoot.prepend(i), !0;
451
451
  }
452
452
  return !1;
453
453
  }
454
- function De(e) {
454
+ function Ne(e) {
455
455
  if (!M(e, "pit-viper-v2")) {
456
456
  if (M(e, "pit-viper")) {
457
457
  M(e, "pit-viper-v2-scoped");
@@ -462,21 +462,21 @@ function De(e) {
462
462
  );
463
463
  }
464
464
  }
465
- const Re = (e) => ({ shadowRoot: Ne(e) });
466
- function We(e, t) {
465
+ const De = (e) => ({ shadowRoot: Le(e) });
466
+ function Re(e, t) {
467
467
  return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
468
468
  `Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
469
469
  ), !1);
470
470
  }
471
- function He(e, t) {
471
+ function We(e, t) {
472
472
  const n = Number(t);
473
473
  return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
474
474
  }
475
- function qe(e) {
476
- const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), p = (e.__vccOpts || e).props;
477
- return p && typeof p == "object" && Object.entries(p).forEach(([c, o]) => {
478
- o === Boolean || o && o.type === Boolean ? t.add(c) : o === Number || o && o.type === Number ? n.add(c) : (o === Object || o === Array || o && (o.type === Object || o.type === Array)) && s.add(c);
479
- }), { booleanProps: t, numberProps: n, jsonProps: s };
475
+ function He(e) {
476
+ const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), c = (e.__vccOpts || e).props;
477
+ return c && typeof c == "object" && Object.entries(c).forEach(([d, s]) => {
478
+ s === Boolean || s && s.type === Boolean ? t.add(d) : s === Number || s && s.type === Number ? n.add(d) : (s === Object || s === Array || s && (s.type === Object || s.type === Array)) && r.add(d);
479
+ }), { booleanProps: t, numberProps: n, jsonProps: r };
480
480
  }
481
481
  function G(e, t) {
482
482
  try {
@@ -487,12 +487,12 @@ function G(e, t) {
487
487
  ), null;
488
488
  }
489
489
  }
490
- function Ge(e) {
490
+ function qe(e) {
491
491
  const t = e.__name || e.name;
492
492
  if (!t)
493
493
  throw new Error("Component must have a __name or name property");
494
- const n = le(e, Re(t)), { booleanProps: s, numberProps: l, jsonProps: p } = qe(e);
495
- class c extends n {
494
+ const n = le(e, De(t)), { booleanProps: r, numberProps: i, jsonProps: c } = He(e);
495
+ class d extends n {
496
496
  _hiddenInput = null;
497
497
  constructor() {
498
498
  super(), this._parseAttributes();
@@ -504,25 +504,25 @@ function Ge(e) {
504
504
  * Update the hidden input value
505
505
  * Call this from the Vue component to sync form value
506
506
  */
507
- setHiddenInputValue(r) {
508
- this._hiddenInput && (this._hiddenInput.value = r ?? "");
507
+ setHiddenInputValue(o) {
508
+ this._hiddenInput && (this._hiddenInput.value = o ?? "");
509
509
  }
510
510
  _parseAttributes() {
511
- s.forEach((i) => {
512
- const u = this.getAttribute(i);
513
- this[i] = We(i, u);
514
- }), l.forEach((i) => {
515
- const u = this.getAttribute(i);
516
- u !== null && (this[i] = He(i, u));
517
- }), p.forEach((i) => {
518
- const u = this.getAttribute(i);
511
+ r.forEach((l) => {
512
+ const u = this.getAttribute(l);
513
+ this[l] = Re(l, u);
514
+ }), i.forEach((l) => {
515
+ const u = this.getAttribute(l);
516
+ u !== null && (this[l] = We(l, u));
517
+ }), c.forEach((l) => {
518
+ const u = this.getAttribute(l);
519
519
  if (u !== null) {
520
- const h = G(i, u);
521
- h !== null && (this[i] = h);
520
+ const h = G(l, u);
521
+ h !== null && (this[l] = h);
522
522
  }
523
523
  });
524
- const r = this.getAttribute("data-json-props");
525
- r && r.split(",").map((u) => u.trim()).filter(Boolean).forEach((u) => {
524
+ const o = this.getAttribute("data-json-props");
525
+ o && o.split(",").map((u) => u.trim()).filter(Boolean).forEach((u) => {
526
526
  const h = u.replace(/-([a-z])/g, (v) => v[1].toUpperCase());
527
527
  let g = this.getAttribute(u);
528
528
  if (g === null) {
@@ -536,21 +536,21 @@ function Ge(e) {
536
536
  });
537
537
  }
538
538
  connectedCallback() {
539
- this._parseAttributes(), super.connectedCallback?.(), De(this);
540
- const r = this.getAttribute("name");
541
- r && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = r, this.after(this._hiddenInput));
539
+ this._parseAttributes(), super.connectedCallback?.(), Ne(this);
540
+ const o = this.getAttribute("name");
541
+ o && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = o, this.after(this._hiddenInput));
542
542
  }
543
543
  }
544
- return c;
544
+ return d;
545
545
  }
546
- function Ue(e) {
546
+ function Ge(e) {
547
547
  return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
548
548
  }
549
- function Je(e) {
549
+ function Ue(e) {
550
550
  const t = e.__name || e.name;
551
551
  if (!t)
552
552
  throw new Error("Component must have a __name or name property");
553
- const n = Ue(t), s = Ge(e);
554
- customElements.get(n) || customElements.define(n, s);
553
+ const n = Ge(t), r = qe(e);
554
+ customElements.get(n) || customElements.define(n, r);
555
555
  }
556
- Je(ze);
556
+ Ue(Ve);