@turquoisehealth/pit-viper 2.270.0 → 2.270.2

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,7 +1,7 @@
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%}.pv-ask-tq-buddy[data-v-79e4818c]{--pv-ask-tq-buddy-gradient-end:#fff;--pv-ask-tq-buddy-gradient-start:#36c5ba;--pv-ask-tq-buddy-solid:#36c5ba;--pv-ask-tq-buddy-eye:#fff;--pv-ask-tq-buddy-eye-fill:var(--pv-ask-tq-buddy-eye);--pv-ask-tq-buddy-eye-visibility:1;width:3rem;height:auto;display:block;overflow:visible}.pv-ask-tq-buddy[data-theme=halloween][data-v-79e4818c]{--pv-ask-tq-buddy-gradient-end:#8f2a04;--pv-ask-tq-buddy-gradient-start:#ff9b2f;--pv-ask-tq-buddy-eye:#ffd36b}.pv-ask-tq-buddy[data-v-79e4818c]:is([data-variant=mono],[data-variant=solid]){--pv-ask-tq-buddy-eye-visibility:0}.pv-ask-tq-buddy[data-variant=outline][data-v-79e4818c]{--pv-ask-tq-buddy-eye-fill:currentColor}.pv-ask-tq-buddy[data-size=xs][data-v-79e4818c]{width:1.25rem}.pv-ask-tq-buddy[data-size=sm][data-v-79e4818c]{width:2rem}.pv-ask-tq-buddy[data-size=md][data-v-79e4818c]{width:3rem}.pv-ask-tq-buddy[data-size=lg][data-v-79e4818c]{width:4rem}.pv-ask-tq-buddy[data-size=xl][data-v-79e4818c]{width:6rem}.pv-ask-tq-buddy__gradient-start[data-v-79e4818c]{stop-color:var(--pv-ask-tq-buddy-gradient-start)}.pv-ask-tq-buddy__gradient-end[data-v-79e4818c]{stop-color:var(--pv-ask-tq-buddy-gradient-end)}.pv-ask-tq-buddy__sheen-stop[data-v-79e4818c]{stop-color:var(--sheen-color,#fff)}.pv-ask-tq-buddy__sheen-peak[data-v-79e4818c]{stop-opacity:var(--sheen-opacity,.8)}.pv-ask-tq-buddy__candle-stop[data-v-79e4818c]{stop-color:var(--pv-ask-tq-buddy-eye)}.pv-ask-tq-buddy__body[data-v-79e4818c]{fill:var(--v0f759806)}.pv-ask-tq-buddy[data-variant=mono] .pv-ask-tq-buddy__body[data-v-79e4818c]{fill:currentColor}.pv-ask-tq-buddy[data-variant=solid] .pv-ask-tq-buddy__body[data-v-79e4818c]{fill:var(--pv-ask-tq-buddy-solid)}.pv-ask-tq-buddy[data-variant=outline] .pv-ask-tq-buddy__body[data-v-79e4818c]{fill:none;stroke:currentColor}.pv-ask-tq-buddy__eye-cutout[data-v-79e4818c]{--pv-ask-tq-buddy-eye-fill:#000;--pv-ask-tq-buddy-eye-visibility:1}.pv-ask-tq-buddy__ring[data-v-79e4818c]{stroke:var(--pv-ask-tq-buddy-gradient-start)}[class*=pv-status]{&[data-v-e4edde71]:before,&[data-v-e4edde71]:after{margin-inline-end:0}}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-select[data-v-a13ab0e8]{padding-top:4px;padding-bottom:4px}summary[data-v-dfa0b416]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-popover[data-v-951d1d02]{z-index:50}.pv-popover-list>li[data-v-951d1d02]:last-child>.pv-label{margin-block-end:0}[data-v-951d1d02] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-92e78cd3]{background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.pv-filter-panel-option-row[data-v-b85834dc]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-b85834dc]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-b85834dc]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-b85834dc]{--lines:1}.pv-filter-panel-option-row-right[data-v-b85834dc]{text-align:right;flex:none}.pv-filter-panel-option-row-focus-action[data-v-b85834dc]{opacity:0;pointer-events:none}.pv-filter-panel-option-row:hover .pv-filter-panel-option-row-focus-action[data-v-b85834dc],.pv-filter-panel-option-row:focus-within .pv-filter-panel-option-row-focus-action[data-v-b85834dc],.pv-filter-panel-option-row-focus-action-always-visible[data-v-b85834dc]{opacity:1;pointer-events:auto}summary[data-v-d5483de6]{background-image:none;padding-right:2px}.suggested-title-label[data-v-d5483de6]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-d5483de6]{margin-left:auto;display:inline-flex}.pv-filter-modal-rail[data-v-fb919d6a]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-fb919d6a]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-fb919d6a]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-fb919d6a]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-c4eb41f2]{position:relative}.pv-hover-action-menu__actions[data-v-c4eb41f2]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover>.pv-hover-action-menu__actions[data-v-c4eb41f2],.pv-hover-action-menu:focus-within>.pv-hover-action-menu__actions[data-v-c4eb41f2]{display:flex}.pv-hover-action-menu--top-right>.pv-hover-action-menu__actions[data-v-c4eb41f2]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left>.pv-hover-action-menu__actions[data-v-c4eb41f2]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right>.pv-hover-action-menu__actions[data-v-c4eb41f2]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left>.pv-hover-action-menu__actions[data-v-c4eb41f2]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-c4eb41f2] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-c4eb41f2],.pv-hover-action-menu__button[data-v-c4eb41f2] button{opacity:.7}.pv-hover-action-menu__button[data-v-c4eb41f2]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-c4eb41f2] button:hover:not(:disabled){opacity:1}
2
2
  /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
3
- 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, defineComponent as d, getCurrentInstance as f, getCurrentScope as p, guardReactiveProps as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as D, onUpdated as O, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDynamicComponent as F, shallowReactive as I, shallowRef as L, toDisplayString as R, toHandlers as z, toValue as B, unref as V, useAttrs as ee, useCssVars as H, useId as te, useModel as U, useSlots as ne, useTemplateRef as W, vModelCheckbox as re, vModelDynamic as ie, vModelRadio as ae, vModelText as oe, vShow as se, watch as G, watchEffect as ce, withCtx as K, withDirectives as q, withKeys as le, withModifiers as J } from "vue";
4
- import { onClickOutside as ue, onKeyStroke as de, useDebounceFn as Y, useElementBounding as fe, useElementHover as X, useElementSize as Z, useMutationObserver as pe, useResizeObserver as me, useToggle as he, useWindowSize as ge, watchDebounced as _e } from "@vueuse/core";
3
+ 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, defineComponent as d, getCurrentInstance as f, getCurrentScope as p, guardReactiveProps as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as D, onUpdated as O, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDynamicComponent as F, shallowReactive as I, shallowRef as L, toDisplayString as R, toHandlers as z, toValue as B, unref as V, useAttrs as ee, useCssVars as H, useId as te, useModel as U, useSlots as W, useTemplateRef as G, vModelCheckbox as ne, vModelDynamic as re, vModelRadio as ie, vModelText as ae, vShow as oe, watch as K, watchEffect as se, withCtx as q, withDirectives as J, withKeys as ce, withModifiers as Y } from "vue";
4
+ import { onClickOutside as le, onKeyStroke as ue, useDebounceFn as de, useElementBounding as X, useElementHover as fe, useElementSize as Z, useMutationObserver as pe, useResizeObserver as me, useToggle as he, useWindowSize as ge, watchDebounced as _e } from "@vueuse/core";
5
5
  import { useSortable as ve } from "@vueuse/integrations/useSortable.mjs";
6
6
  import { vOnClickOutside as ye } from "@vueuse/components";
7
7
  import be from "primevue/datepicker";
@@ -1095,7 +1095,7 @@ function rr(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r =
1095
1095
  return a ? tr(a, t, r) : $n(e, t, r);
1096
1096
  }
1097
1097
  function ir(e, t = {}) {
1098
- let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = We(), l = i ?? ne(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = j(d());
1098
+ let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = We(), l = i ?? W(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = j(d());
1099
1099
  w(() => {
1100
1100
  f.value = d();
1101
1101
  });
@@ -1131,7 +1131,7 @@ function ir(e, t = {}) {
1131
1131
  characterData: !0
1132
1132
  }));
1133
1133
  };
1134
- return T(v), C(g), G(() => V(n), () => {
1134
+ return T(v), C(g), K(() => V(n), () => {
1135
1135
  c.value && v();
1136
1136
  }), {
1137
1137
  present: r(() => c.value ? p.value : f.value),
@@ -1209,11 +1209,11 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1209
1209
  "position-try-fallbacks: flip-block",
1210
1210
  "position-visibility: anchors-visible",
1211
1211
  `anchor-scope: ${lr}`
1212
- ].every((e) => CSS.supports(e)), g = j(!1), _ = j(null), v = j(null), b = j(null), x = j(null), C = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), w = X(C), E = X(x), O = j(!1), A = j(!1), M = j(!1), P = sr({
1212
+ ].every((e) => CSS.supports(e)), g = j(!1), _ = j(null), v = j(null), b = j(null), x = j(null), C = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), w = fe(C), E = fe(x), O = j(!1), A = j(!1), M = j(!1), P = sr({
1213
1213
  root: _,
1214
1214
  floating: x,
1215
1215
  hoverArea: r(() => t.hoverTarget ? C.value : null),
1216
- close: () => t.disableClickOutsideToClose ? !1 : (oe(), !0)
1216
+ close: () => t.disableClickOutsideToClose ? !1 : (ae(), !0)
1217
1217
  }), F = {
1218
1218
  "top-center": "top",
1219
1219
  "bottom-center": "bottom",
@@ -1288,16 +1288,16 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1288
1288
  middleware: e
1289
1289
  });
1290
1290
  ee = n.update, H = () => n.floatingStyles.value;
1291
- let i = fe(b), a = Y(() => {
1291
+ let i = X(b), a = de(() => {
1292
1292
  c.value && ee();
1293
1293
  }, 5);
1294
- G([
1294
+ K([
1295
1295
  i.top,
1296
1296
  i.left,
1297
1297
  i.width,
1298
1298
  i.height
1299
- ], a), ue(_, () => {
1300
- t.disableClickOutsideToClose || ae(!1);
1299
+ ], a), le(_, () => {
1300
+ t.disableClickOutsideToClose || ie(!1);
1301
1301
  }, { ignore: r(() => [
1302
1302
  x.value,
1303
1303
  ".p-datepicker-panel",
@@ -1307,49 +1307,49 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1307
1307
  let te = r(() => ({
1308
1308
  ...H(),
1309
1309
  zIndex: t.zIndex
1310
- })), ne, W, re = () => {
1311
- ne && clearTimeout(ne), ne = void 0;
1312
- }, ie = () => {
1310
+ })), W, G, ne = () => {
1313
1311
  W && clearTimeout(W), W = void 0;
1314
- }, ae = (e) => {
1315
- re(), ie(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ne = setTimeout(() => {
1316
- c.value = !0, ne = void 0;
1312
+ }, re = () => {
1313
+ G && clearTimeout(G), G = void 0;
1314
+ }, ie = (e) => {
1315
+ ne(), re(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? W = setTimeout(() => {
1316
+ c.value = !0, W = void 0;
1317
1317
  }, t.delay) : c.value = e);
1318
- }, oe = () => {
1319
- re(), ie(), c.value = !1;
1320
- }, ce = () => {
1318
+ }, ae = () => {
1319
+ ne(), re(), c.value = !1;
1320
+ }, se = () => {
1321
1321
  let e = x.value;
1322
1322
  !e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
1323
- }, K = r(() => !!c.value && (E.value || A.value)), le = r(() => !t.showOnHover || M.value ? !1 : t.disableInteractive ? w.value || O.value : w.value || O.value || K.value);
1324
- G([
1323
+ }, q = r(() => !!c.value && (E.value || A.value)), ce = r(() => !t.showOnHover || M.value ? !1 : t.disableInteractive ? w.value || O.value : w.value || O.value || q.value);
1324
+ K([
1325
1325
  w,
1326
1326
  O,
1327
1327
  A
1328
1328
  ], ([e, t, n]) => {
1329
1329
  !e && !t && !n && (M.value = !1);
1330
1330
  });
1331
- let J = ({ target: e }) => {
1331
+ let Y = ({ target: e }) => {
1332
1332
  O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
1333
- }, de = ({ target: e }) => {
1333
+ }, ue = ({ target: e }) => {
1334
1334
  A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
1335
1335
  }, Z = () => {
1336
1336
  A.value = !1;
1337
1337
  }, pe = () => {
1338
1338
  if (t.showOnHover) {
1339
1339
  if (t.disableClickOutsideToClose) return;
1340
- if (!c.value && !ne && t.enableClickToggle) {
1341
- M.value = !1, ae(!0);
1340
+ if (!c.value && !W && t.enableClickToggle) {
1341
+ M.value = !1, ie(!0);
1342
1342
  return;
1343
1343
  }
1344
- M.value = !0, oe();
1344
+ M.value = !0, ae();
1345
1345
  return;
1346
1346
  }
1347
- ae(ne ? !1 : !c.value);
1347
+ ie(W ? !1 : !c.value);
1348
1348
  }, me = (e) => {
1349
1349
  let t = e.newState === "open";
1350
1350
  c.value !== t && (c.value = t);
1351
1351
  }, he = (e) => {
1352
- h && L.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), ae(!1));
1352
+ h && L.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), ie(!1));
1353
1353
  }, ge = (e) => e ? Array.from(e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")) : [], _e = r(() => t.useTeleport && !h && t.showOnHover && !t.disabled), ve = (e) => {
1354
1354
  if (!_e.value || e.key !== "Tab" || e.shiftKey || !c.value) return;
1355
1355
  let [t] = ge(x.value);
@@ -1358,41 +1358,41 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1358
1358
  if (!_e.value) return;
1359
1359
  let [t] = ge(v.value);
1360
1360
  if (e.key === "Escape") {
1361
- e.preventDefault(), e.stopPropagation(), M.value = !0, oe(), t?.focus();
1361
+ e.preventDefault(), e.stopPropagation(), M.value = !0, ae(), t?.focus();
1362
1362
  return;
1363
1363
  }
1364
1364
  if (e.key !== "Tab") return;
1365
1365
  let n = ge(x.value);
1366
- e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (M.value = !0, oe(), t?.focus());
1366
+ e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (M.value = !0, ae(), t?.focus());
1367
1367
  };
1368
- return G(c, async (e) => {
1368
+ return K(c, async (e) => {
1369
1369
  if (t.showOnHover && t.enableGroupSync && P(!!e), !h) {
1370
1370
  e && ee();
1371
1371
  return;
1372
1372
  }
1373
- await y(), ce();
1374
- }), G(le, (e) => {
1373
+ await y(), se();
1374
+ }), K(ce, (e) => {
1375
1375
  if (t.showOnHover) {
1376
1376
  if (e) {
1377
- ae(!0);
1377
+ ie(!0);
1378
1378
  return;
1379
1379
  }
1380
- re(), t.closeDelay > 0 ? (ie(), W = setTimeout(() => {
1381
- W = void 0, le.value || ae(!1);
1382
- }, t.closeDelay)) : ae(!1);
1380
+ ne(), t.closeDelay > 0 ? (re(), G = setTimeout(() => {
1381
+ G = void 0, ce.value || ie(!1);
1382
+ }, t.closeDelay)) : ie(!1);
1383
1383
  }
1384
- }), G(m, (e) => {
1385
- e ? h && c.value && y(ce) : oe();
1384
+ }), K(m, (e) => {
1385
+ e ? h && c.value && y(se) : ae();
1386
1386
  }), T(() => {
1387
- b.value = v.value, g.value = !0, c.value && y(() => h ? ce() : ee());
1387
+ b.value = v.value, g.value = !0, c.value && y(() => h ? se() : ee());
1388
1388
  }), D(() => {
1389
- re(), ie();
1390
- }), G(() => t.disabled, (e) => {
1389
+ ne(), re();
1390
+ }), K(() => t.disabled, (e) => {
1391
1391
  if (!e) {
1392
- le.value && ae(!0);
1392
+ ce.value && ie(!0);
1393
1393
  return;
1394
1394
  }
1395
- O.value &&= !1, A.value &&= !1, ae(!1);
1395
+ O.value &&= !1, A.value &&= !1, ie(!1);
1396
1396
  }), (r, l) => (k(), o("div", {
1397
1397
  ref_key: "root",
1398
1398
  ref: _,
@@ -1403,7 +1403,7 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1403
1403
  ref: v,
1404
1404
  style: S(z.value),
1405
1405
  onClick: pe,
1406
- onFocusin: J,
1406
+ onFocusin: Y,
1407
1407
  onFocusout: l[0] ||= (e) => O.value = !1,
1408
1408
  onKeydown: ve
1409
1409
  }, [N(r.$slots, "trigger")], 36), g.value && V(h) && m.value ? (k(), o("div", {
@@ -1414,21 +1414,21 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1414
1414
  popover: L.value,
1415
1415
  style: S(B.value),
1416
1416
  onToggle: me,
1417
- onFocusin: de,
1417
+ onFocusin: ue,
1418
1418
  onFocusout: Z
1419
1419
  }, [e.disabled ? a("", !0) : N(r.$slots, "content", { key: 0 })], 44, cr)) : m.value ? (k(), i(n, {
1420
1420
  key: 1,
1421
1421
  to: e.teleportLocation,
1422
1422
  disabled: !t.useTeleport || e.disabled
1423
- }, [q(s("div", {
1423
+ }, [J(s("div", {
1424
1424
  ref_key: "floating",
1425
1425
  ref: x,
1426
1426
  class: "pv-floating",
1427
1427
  style: S(te.value),
1428
- onFocusin: de,
1428
+ onFocusin: ue,
1429
1429
  onFocusout: Z,
1430
1430
  onKeydown: ye
1431
- }, [N(r.$slots, "content")], 36), [[se, c.value]])], 8, ["to", "disabled"])) : a("", !0)], 36));
1431
+ }, [N(r.$slots, "content")], 36), [[oe, c.value]])], 8, ["to", "disabled"])) : a("", !0)], 36));
1432
1432
  }
1433
1433
  }), dr = ["data-variant"], fr = /* @__PURE__ */ d({
1434
1434
  __name: "PvTooltipV2",
@@ -1465,11 +1465,11 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1465
1465
  setup(e) {
1466
1466
  let t = e, n = f(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = ir("content", { host: a }), d = r(() => a ? u.value : o.value), p = r(() => !!t.description || d.value);
1467
1467
  return (t, n) => (k(), i(ur, x(m(t.$props)), c({
1468
- trigger: K(() => [N(t.$slots, "trigger", {}, () => [s("p", null, R(e.label), 1)])]),
1468
+ trigger: q(() => [N(t.$slots, "trigger", {}, () => [s("p", null, R(e.label), 1)])]),
1469
1469
  _: 2
1470
1470
  }, [p.value ? {
1471
1471
  name: "content",
1472
- fn: K(() => [s("div", {
1472
+ fn: q(() => [s("div", {
1473
1473
  class: b(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
1474
1474
  role: "tooltip",
1475
1475
  "data-variant": e.variant
@@ -1508,13 +1508,13 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1508
1508
  "disable-interactive": !0,
1509
1509
  "use-teleport": !0
1510
1510
  }, c({
1511
- trigger: K(() => [s("button", {
1511
+ trigger: q(() => [s("button", {
1512
1512
  type: "button",
1513
1513
  class: b(["pv-button-link-tertiary", { "pv-action-button-reveal-on-hover": !e.alwaysShow }]),
1514
1514
  style: { "--button-icon-only-padding": "0px" },
1515
1515
  "aria-label": e.tooltipText,
1516
1516
  disabled: e.disabled,
1517
- onClick: J(o, ["stop"])
1517
+ onClick: Y(o, ["stop"])
1518
1518
  }, [u(Q, {
1519
1519
  name: e.icon,
1520
1520
  size: a[e.size]
@@ -1522,7 +1522,7 @@ var ar = /* @__PURE__ */ new Set(), or = (e, t) => {
1522
1522
  _: 2
1523
1523
  }, [e.tooltipText ? {
1524
1524
  name: "content",
1525
- fn: K(() => [l(R(e.tooltipText), 1)]),
1525
+ fn: q(() => [l(R(e.tooltipText), 1)]),
1526
1526
  key: "0"
1527
1527
  } : void 0]), 1032, ["position"]));
1528
1528
  }
@@ -1577,7 +1577,7 @@ function hr(e, { onBoundsChange: t, shouldTrackPointer: n }) {
1577
1577
  passive: !0
1578
1578
  })) : (d.removeEventListener("pointermove", S), d.removeEventListener("scroll", b, !0)));
1579
1579
  }
1580
- return G(() => n({
1580
+ return K(() => n({
1581
1581
  finePointer: i.value,
1582
1582
  reducedMotion: o.value
1583
1583
  }), D, { flush: "post" }), T(() => {
@@ -1821,11 +1821,11 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
1821
1821
  rightHeight: 34,
1822
1822
  sheen: 1
1823
1823
  }
1824
- }, A = r(() => n.theme === "halloween"), M = r(() => n.variant === "mono" || n.variant === "solid"), N = r(() => n.variant === "default"), P = r(() => A.value ? m.halloween : m[n.variant]), F = r(() => A.value ? .8 : .7), I = r(() => Math.max(.01, P.value.eyeRadius * 2)), L = r(() => 10 * P.value.eyeWidth / 19), R = n.animated, z = n.calm, B = n.emote, V = n.theme === "halloween", ee = n.variant === "default", U = n.variant, ne = V ? m.halloween : m[U], W = V ? .8 : 1;
1825
- function re() {
1826
- R = n.animated, z = n.calm, B = n.emote, V = n.theme === "halloween", ee = n.variant === "default", U = n.variant, ne = V ? m.halloween : m[U], W = V ? .8 : 1;
1824
+ }, A = r(() => n.theme === "halloween"), M = r(() => n.variant === "mono" || n.variant === "solid"), N = r(() => n.variant === "default"), P = r(() => A.value ? m.halloween : m[n.variant]), F = r(() => A.value ? .8 : .7), I = r(() => Math.max(.01, P.value.eyeRadius * 2)), L = r(() => 10 * P.value.eyeWidth / 19), R = n.animated, z = n.calm, B = n.emote, V = n.theme === "halloween", ee = n.variant === "default", U = n.variant, W = V ? m.halloween : m[U], G = V ? .8 : 1;
1825
+ function ne() {
1826
+ R = n.animated, z = n.calm, B = n.emote, V = n.theme === "halloween", ee = n.variant === "default", U = n.variant, W = V ? m.halloween : m[U], G = V ? .8 : 1;
1827
1827
  }
1828
- let ie = j(), ae = j(), oe = j(), se = j(), ce = j(), K = j(), q = j(), le = j(), J = j(), ue = j(), de = j(), Y = j(), fe = j(), X = j(), Z = hr(ie, {
1828
+ let re = j(), ie = j(), ae = j(), oe = j(), se = j(), q = j(), J = j(), ce = j(), Y = j(), le = j(), ue = j(), de = j(), X = j(), fe = j(), Z = hr(re, {
1829
1829
  onBoundsChange: (e) => {
1830
1830
  e && Ct() && St();
1831
1831
  },
@@ -2085,17 +2085,17 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2085
2085
  }
2086
2086
  }
2087
2087
  function gt(e, t = at(), n = !1) {
2088
- if (!ae.value || !oe.value || !se.value || !ce.value || !K.value || !q.value || !le.value) return;
2089
- let r = t.scale, a = (e.scaleX + t.scaleX) * r, o = (e.scaleY + t.scaleY) * r, s = e.bodyY + t.bodyY, c = e.rotation + t.rotation, l = Xe(), u = n && c === 0 && a === 1 && o === 1 && s === 0 ? l : 0, d = et(c, a, o, s), p = rt(d), { bodyRadius: m, eyeHeight: g, eyeRadius: v, eyeWidth: y, homeX: b, homeY: x, spread: S } = ne, C = $({
2088
+ if (!ie.value || !ae.value || !oe.value || !se.value || !q.value || !J.value || !ce.value) return;
2089
+ let r = t.scale, a = (e.scaleX + t.scaleX) * r, o = (e.scaleY + t.scaleY) * r, s = e.bodyY + t.bodyY, c = e.rotation + t.rotation, l = Xe(), u = n && c === 0 && a === 1 && o === 1 && s === 0 ? l : 0, d = et(c, a, o, s), p = rt(d), { bodyRadius: m, eyeHeight: g, eyeRadius: v, eyeWidth: y, homeX: b, homeY: x, spread: S } = W, C = $({
2090
2090
  height: 191,
2091
2091
  width: 191,
2092
2092
  x: 0,
2093
2093
  y: 0
2094
2094
  }, u), w = it(d, C, m);
2095
- if (ee && _e(oe.value, "d", w), U === "outline") {
2095
+ if (ee && _e(ae.value, "d", w), U === "outline") {
2096
2096
  let e = u > 0 ? Math.max(l, Math.round(19 / l) * l) : 19;
2097
- _e(ae.value, "d", it(d, $e(C, e / 2), Math.max(0, m - e / 2))), _e(ae.value, "stroke-width", e.toFixed(3));
2098
- } else _e(ae.value, "d", w);
2097
+ _e(ie.value, "d", it(d, $e(C, e / 2), Math.max(0, m - e / 2))), _e(ie.value, "stroke-width", e.toFixed(3));
2098
+ } else _e(ie.value, "d", w);
2099
2099
  let T = 1, E = 1, D = 0;
2100
2100
  for (let e of Ne) {
2101
2101
  let t = (Pe - e.start) / e.duration;
@@ -2108,21 +2108,21 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2108
2108
  Ne.length = D;
2109
2109
  let O = Je(e.happy, 0, 1), k = y / 19, A = g / 43, j = S * e.spread / 73, M = e.gx + b - f, N = e.gy + x - -29, P = i + M - j / 2, F = i + M + j / 2, I = i + N + t.leftY, L = i + N + t.rightY, R = e.leftWidth * k * (1 + (1 - T) * .25), z = e.rightWidth * k * (1 + (1 - E) * .25), B = e.leftHeight * A * T * (1 - O * .92), H = e.rightHeight * A * E * (1 - O * .92);
2110
2110
  if (V) {
2111
- vt(ce.value, d, P, I, R, B), vt(K.value, d, F, L, z, H);
2111
+ vt(se.value, d, P, I, R, B), vt(q.value, d, F, L, z, H);
2112
2112
  let e = .5 + .5 * (.5 * Math.sin(Pe * 11.3) + .3 * Math.sin(Pe * 17.9 + 1.3) + .2 * Math.sin(Pe * 29.1 + 2.1));
2113
- ee && Y.value ? ye(Y.value, (1 - _ * .35 * e).toFixed(3)) : Y.value && be(Y.value), de.value && (ye(de.value, (.85 - _ * .55 * e).toFixed(3)), _e(de.value, "transform", p));
2114
- } else _t(ce.value, p, P, I, R, B, v, u), _t(K.value, p, F, L, z, H, v, u);
2113
+ ee && de.value ? ye(de.value, (1 - _ * .35 * e).toFixed(3)) : de.value && be(de.value), ue.value && (ye(ue.value, (.85 - _ * .55 * e).toFixed(3)), _e(ue.value, "transform", p));
2114
+ } else _t(se.value, p, P, I, R, B, v, u), _t(q.value, p, F, L, z, H, v, u);
2115
2115
  let te = O.toFixed(3);
2116
- if ((te !== "0.000" || We) && (yt(q.value, d, P, I, k, te, O), yt(le.value, d, F, L, k, te, O), We = te !== "0.000"), ee && _e(se.value, "gradientTransform", `${p} rotate(${Fe.toFixed(2)} ${i} ${i})`), ue.value) {
2116
+ if ((te !== "0.000" || We) && (yt(J.value, d, P, I, k, te, O), yt(ce.value, d, F, L, k, te, O), We = te !== "0.000"), ee && _e(oe.value, "gradientTransform", `${p} rotate(${Fe.toFixed(2)} ${i} ${i})`), le.value) {
2117
2117
  let t = (Je(e.sheen, 0, 1) * .6).toFixed(3);
2118
- if ((t !== "0.000" || Ke) && (_e(ue.value, "opacity", t), Ke = t !== "0.000", Ke)) {
2118
+ if ((t !== "0.000" || Ke) && (_e(le.value, "opacity", t), Ke = t !== "0.000", Ke)) {
2119
2119
  let e = Le.width * 191, t = -46 - e, n = Ie % Le.duration / Le.duration;
2120
- _e(ue.value, "width", e.toFixed(1)), _e(ue.value, "transform", `${p} translate(${(t + n * (310 - t)).toFixed(1)} 0) skewX(${90 - Le.angle})`);
2120
+ _e(le.value, "width", e.toFixed(1)), _e(le.value, "transform", `${p} translate(${(t + n * (310 - t)).toFixed(1)} 0) skewX(${90 - Le.angle})`);
2121
2121
  }
2122
2122
  }
2123
- if (J.value && (e.glow > 0 || Ge)) {
2124
- let t = e.glow > 0 ? (Je(e.glow, 0, 1) * W * (.4 + .3 * Math.sin(Pe * 3.2))).toFixed(3) : "0.000";
2125
- _e(J.value, "opacity", t), Ge = t !== "0.000", Ge && (_e(J.value, "d", it(d, $e(C, -8), m + 7)), _e(J.value, "stroke-width", Math.max(h, l).toFixed(3)));
2123
+ if (Y.value && (e.glow > 0 || Ge)) {
2124
+ let t = e.glow > 0 ? (Je(e.glow, 0, 1) * G * (.4 + .3 * Math.sin(Pe * 3.2))).toFixed(3) : "0.000";
2125
+ _e(Y.value, "opacity", t), Ge = t !== "0.000", Ge && (_e(Y.value, "d", it(d, $e(C, -8), m + 7)), _e(Y.value, "stroke-width", Math.max(h, l).toFixed(3)));
2126
2126
  }
2127
2127
  ee && bt(p, !Ct());
2128
2128
  }
@@ -2145,24 +2145,24 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2145
2145
  _e(e, "d", `M${nt(t, n - c, r + 7 + s)} Q${nt(t, n, r - 13 + s)} ${nt(t, n + c, r + 7 + s)}`);
2146
2146
  }
2147
2147
  function bt(e, t) {
2148
- if (!fe.value || !X.value) return;
2148
+ if (!X.value || !fe.value) return;
2149
2149
  let n = Pr();
2150
2150
  if (!n) {
2151
- _e(fe.value, "display", "none");
2151
+ _e(X.value, "display", "none");
2152
2152
  return;
2153
2153
  }
2154
- ve(fe.value, "display");
2155
- let r = ze !== X.value;
2156
- if (r && (ze = X.value), r || t && Pe >= Re) {
2154
+ ve(X.value, "display");
2155
+ let r = ze !== fe.value;
2156
+ if (r && (ze = fe.value), r || t && Pe >= Re) {
2157
2157
  Re = Pe + 1 / 14;
2158
2158
  let e = t ? Math.floor(Math.random() * Ar.length) : 0;
2159
- _e(X.value, "href", Ar[e] ?? n), fe.value.dataset.offsetX = t ? qe(0, 64).toFixed(1) : "0", fe.value.dataset.offsetY = t ? qe(0, 64).toFixed(1) : "0";
2159
+ _e(fe.value, "href", Ar[e] ?? n), X.value.dataset.offsetX = t ? qe(0, 64).toFixed(1) : "0", X.value.dataset.offsetY = t ? qe(0, 64).toFixed(1) : "0";
2160
2160
  }
2161
- _e(fe.value, "transform", `${e} translate(${fe.value.dataset.offsetX} ${fe.value.dataset.offsetY})`);
2161
+ _e(X.value, "transform", `${e} translate(${X.value.dataset.offsetX} ${X.value.dataset.offsetY})`);
2162
2162
  }
2163
2163
  function xt() {
2164
- if (!ie.value) return;
2165
- let e = ie.value.ownerDocument.defaultView?.getComputedStyle(ie.value);
2164
+ if (!re.value) return;
2165
+ let e = re.value.ownerDocument.defaultView?.getComputedStyle(re.value);
2166
2166
  if (!e) return;
2167
2167
  let t = e.getPropertyValue("--sheen-duration").trim(), n = Number.parseFloat(t) / (t.endsWith("ms") ? 1e3 : 1), r = Number.parseFloat(e.getPropertyValue("--sheen-angle")), i = Number.parseFloat(e.getPropertyValue("--sheen-width"));
2168
2168
  Le = {
@@ -2203,27 +2203,27 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2203
2203
  function Et() {
2204
2204
  Be = 0, Ve = -Infinity;
2205
2205
  }
2206
- return G(() => [
2206
+ return K(() => [
2207
2207
  n.animated,
2208
2208
  n.calm,
2209
2209
  n.emote,
2210
2210
  n.theme,
2211
2211
  n.variant
2212
2212
  ], () => {
2213
- re(), Pe = 0, Me.next = .8, Ne = [], He = Q(), Re = 0, Ct() ? (Z.cancelFrame(), St()) : (Et(), Tt());
2214
- }, { flush: "post" }), G(Z.visible, (e) => {
2213
+ ne(), Pe = 0, Me.next = .8, Ne = [], He = Q(), Re = 0, Ct() ? (Z.cancelFrame(), St()) : (Et(), Tt());
2214
+ }, { flush: "post" }), K(Z.visible, (e) => {
2215
2215
  if (!e) {
2216
2216
  Z.cancelFrame();
2217
2217
  return;
2218
2218
  }
2219
2219
  Et(), Tt();
2220
- }, { flush: "sync" }), G(Z.intersecting, (e) => {
2220
+ }, { flush: "sync" }), K(Z.intersecting, (e) => {
2221
2221
  if (!e) {
2222
2222
  Z.cancelFrame();
2223
2223
  return;
2224
2224
  }
2225
2225
  Et(), Tt();
2226
- }, { flush: "sync" }), G(Z.reducedMotion, (e) => {
2226
+ }, { flush: "sync" }), K(Z.reducedMotion, (e) => {
2227
2227
  if (e || !R) {
2228
2228
  Z.cancelFrame(), St();
2229
2229
  return;
@@ -2233,7 +2233,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2233
2233
  Z.updateBounds(), xt(), Ct() ? St() : Tt();
2234
2234
  }), (n, r) => (k(), o("svg", {
2235
2235
  ref_key: "svgRef",
2236
- ref: ie,
2236
+ ref: re,
2237
2237
  class: "pv-ask-tq-buddy",
2238
2238
  "data-calm": e.calm || void 0,
2239
2239
  "data-emote": e.emote,
@@ -2251,7 +2251,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2251
2251
  s("linearGradient", {
2252
2252
  id: Se,
2253
2253
  ref_key: "gradientRef",
2254
- ref: se,
2254
+ ref: oe,
2255
2255
  gradientUnits: "userSpaceOnUse",
2256
2256
  x1: "29",
2257
2257
  y1: "36.5",
@@ -2263,7 +2263,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2263
2263
  }, null, -1)]], 512),
2264
2264
  s("clipPath", { id: we }, [s("path", {
2265
2265
  ref_key: "clipRef",
2266
- ref: oe
2266
+ ref: ae
2267
2267
  }, null, 512)]),
2268
2268
  N.value ? (k(), o(t, { key: 0 }, [s("linearGradient", {
2269
2269
  id: Ce,
@@ -2292,7 +2292,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2292
2292
  height: 64
2293
2293
  }, [s("image", {
2294
2294
  ref_key: "noiseRef",
2295
- ref: X,
2295
+ ref: fe,
2296
2296
  width: 64,
2297
2297
  height: 64,
2298
2298
  preserveAspectRatio: "none"
@@ -2331,7 +2331,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2331
2331
  N.value ? (k(), o("path", {
2332
2332
  key: 0,
2333
2333
  ref_key: "ringRef",
2334
- ref: J,
2334
+ ref: Y,
2335
2335
  class: "pv-ask-tq-buddy__ring",
2336
2336
  fill: "none",
2337
2337
  "stroke-width": h,
@@ -2339,7 +2339,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2339
2339
  }, null, 512)) : a("", !0),
2340
2340
  s("path", {
2341
2341
  ref_key: "bodyRef",
2342
- ref: ae,
2342
+ ref: ie,
2343
2343
  class: "pv-ask-tq-buddy__body",
2344
2344
  mask: M.value ? `url(#${Oe})` : void 0
2345
2345
  }, null, 8, yr),
@@ -2349,13 +2349,13 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2349
2349
  }, [A.value ? (k(), o("rect", {
2350
2350
  key: 0,
2351
2351
  ref_key: "candleRef",
2352
- ref: de,
2352
+ ref: ue,
2353
2353
  width: "191",
2354
2354
  height: "191",
2355
2355
  fill: `url(#${De})`
2356
2356
  }, null, 8, xr)) : a("", !0), s("rect", {
2357
2357
  ref_key: "sheenRef",
2358
- ref: ue,
2358
+ ref: le,
2359
2359
  x: "0",
2360
2360
  y: "-60",
2361
2361
  height: "311",
@@ -2369,36 +2369,36 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2369
2369
  A.value ? (k(), o("g", {
2370
2370
  key: 0,
2371
2371
  ref_key: "litRef",
2372
- ref: Y,
2372
+ ref: de,
2373
2373
  filter: N.value ? `url(#${Ee})` : void 0,
2374
2374
  "stroke-linejoin": "round",
2375
2375
  "stroke-width": I.value
2376
2376
  }, [s("path", {
2377
2377
  ref_key: "leftEyeRef",
2378
- ref: ce,
2378
+ ref: se,
2379
2379
  style: {
2380
2380
  fill: "var(--pv-ask-tq-buddy-eye-fill)",
2381
2381
  stroke: "var(--pv-ask-tq-buddy-eye-fill)"
2382
2382
  }
2383
2383
  }, null, 512), s("path", {
2384
2384
  ref_key: "rightEyeRef",
2385
- ref: K,
2385
+ ref: q,
2386
2386
  style: {
2387
2387
  fill: "var(--pv-ask-tq-buddy-eye-fill)",
2388
2388
  stroke: "var(--pv-ask-tq-buddy-eye-fill)"
2389
2389
  }
2390
2390
  }, null, 512)], 8, Cr)) : (k(), o(t, { key: 1 }, [s("rect", {
2391
2391
  ref_key: "leftEyeRef",
2392
- ref: ce,
2392
+ ref: se,
2393
2393
  style: { fill: "var(--pv-ask-tq-buddy-eye-fill)" }
2394
2394
  }, null, 512), s("rect", {
2395
2395
  ref_key: "rightEyeRef",
2396
- ref: K,
2396
+ ref: q,
2397
2397
  style: { fill: "var(--pv-ask-tq-buddy-eye-fill)" }
2398
2398
  }, null, 512)], 64)),
2399
2399
  s("path", {
2400
2400
  ref_key: "leftHappyRef",
2401
- ref: q,
2401
+ ref: J,
2402
2402
  fill: "none",
2403
2403
  style: { stroke: "var(--pv-ask-tq-buddy-eye-fill)" },
2404
2404
  "stroke-width": L.value,
@@ -2408,7 +2408,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2408
2408
  }, null, 8, wr),
2409
2409
  s("path", {
2410
2410
  ref_key: "rightHappyRef",
2411
- ref: le,
2411
+ ref: ce,
2412
2412
  fill: "none",
2413
2413
  style: { stroke: "var(--pv-ask-tq-buddy-eye-fill)" },
2414
2414
  "stroke-width": L.value,
@@ -2422,7 +2422,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2422
2422
  "clip-path": `url(#${we})`
2423
2423
  }, [s("rect", {
2424
2424
  ref_key: "grainRef",
2425
- ref: fe,
2425
+ ref: X,
2426
2426
  x: "-191",
2427
2427
  y: "-191",
2428
2428
  width: "573",
@@ -2511,7 +2511,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2511
2511
  delay: { default: 0 }
2512
2512
  },
2513
2513
  setup(e) {
2514
- let t = e, n = W("rootRef"), { present: i } = ir("tooltip-content", { host: r(() => {
2514
+ let t = e, n = G("rootRef"), { present: i } = ir("tooltip-content", { host: r(() => {
2515
2515
  let e = n.value?.getRootNode();
2516
2516
  return e instanceof ShadowRoot ? e.host : null;
2517
2517
  }) }), s = r(() => t.delay > 0), c = j(!1), l = j(!1), u, d = () => {
@@ -2543,12 +2543,12 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2543
2543
  onMouseleave: m,
2544
2544
  onFocusin: h,
2545
2545
  onFocusout: g
2546
- }, [N(t.$slots, "label"), V(i) ? q((k(), o("div", {
2546
+ }, [N(t.$slots, "label"), V(i) ? J((k(), o("div", {
2547
2547
  key: 0,
2548
2548
  role: "tooltip",
2549
2549
  id: e.ariaLabelledBy,
2550
2550
  "data-testid": "pv-tooltip-content"
2551
- }, [N(t.$slots, "tooltip-content")], 8, Vr)), [[se, f.value]]) : a("", !0)], 42, Br));
2551
+ }, [N(t.$slots, "tooltip-content")], 8, Vr)), [[oe, f.value]]) : a("", !0)], 42, Br));
2552
2552
  }
2553
2553
  }), Ur = { class: "pv-text-body-sm" }, Wr = /* @__PURE__ */ d({
2554
2554
  __name: "PvButtonWithTooltip",
@@ -2589,8 +2589,8 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2589
2589
  delay: e.delay,
2590
2590
  size: n.value
2591
2591
  }, {
2592
- "tooltip-content": K(() => [s("p", Ur, R(e.tooltipText), 1)]),
2593
- label: K(() => [u($, x(m(a.value)), null, 16)]),
2592
+ "tooltip-content": q(() => [s("p", Ur, R(e.tooltipText), 1)]),
2593
+ label: q(() => [u($, x(m(a.value)), null, 16)]),
2594
2594
  _: 1
2595
2595
  }, 8, [
2596
2596
  "variant",
@@ -2658,7 +2658,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2658
2658
  position: e.position,
2659
2659
  offset: e.offset
2660
2660
  }, {
2661
- trigger: K(() => [u($, {
2661
+ trigger: q(() => [u($, {
2662
2662
  class: "pv-split-button-menu-trigger",
2663
2663
  size: e.size,
2664
2664
  variant: e.variant,
@@ -2672,7 +2672,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2672
2672
  "inverse",
2673
2673
  "leftIcon"
2674
2674
  ])]),
2675
- content: K(() => [s("div", Kr, [N(n.$slots, "menu-content")])]),
2675
+ content: q(() => [s("div", Kr, [N(n.$slots, "menu-content")])]),
2676
2676
  _: 3
2677
2677
  }, 8, [
2678
2678
  "modelValue",
@@ -2759,7 +2759,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2759
2759
  size: c.value,
2760
2760
  name: "close",
2761
2761
  "data-dd-action-name": e.rumRemoveActionName,
2762
- onClick: r[0] ||= J((n) => t.$emit("handle-close", e.label), ["stop"])
2762
+ onClick: r[0] ||= Y((n) => t.$emit("handle-close", e.label), ["stop"])
2763
2763
  }, null, 8, ["size", "data-dd-action-name"])) : a("", !0)
2764
2764
  ], 14, Yr));
2765
2765
  }
@@ -2843,14 +2843,14 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2843
2843
  },
2844
2844
  emits: ["list-order-updated"],
2845
2845
  setup(e, { expose: n, emit: i }) {
2846
- let a = j(null), c = W("popoverList"), l = e, u = i;
2846
+ let a = j(null), c = G("popoverList"), l = e, u = i;
2847
2847
  l.isSortable && l.isList && ve(c, [], {
2848
2848
  animation: 150,
2849
2849
  onUpdate: () => {
2850
2850
  u("list-order-updated", Array.from(c.value?.children || []).map((e) => e.id));
2851
2851
  }
2852
2852
  });
2853
- let d = ne(), f = r(() => !!(d.header || d.footer));
2853
+ let d = W(), f = r(() => !!(d.header || d.footer));
2854
2854
  return n({ popoverRoot: a }), (n, r) => (k(), o("div", {
2855
2855
  ref_key: "popoverRoot",
2856
2856
  ref: a,
@@ -2924,7 +2924,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2924
2924
  }, E = (e) => {
2925
2925
  p.value && (e.stopPropagation(), p.value = !1, h.value?.focus());
2926
2926
  };
2927
- t({ closeDropdown: T }), G(p, (e) => {
2927
+ t({ closeDropdown: T }), K(p, (e) => {
2928
2928
  e ? y(() => {
2929
2929
  x(), f("dropdown-open");
2930
2930
  }) : f("dropdown-closed");
@@ -2936,10 +2936,10 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2936
2936
  zIndex: 10,
2937
2937
  ...d.popoverCssProperties
2938
2938
  } : d.popoverCssProperties);
2939
- return (t, r) => q((k(), o("div", {
2939
+ return (t, r) => J((k(), o("div", {
2940
2940
  class: "pv-dropdown-component pv-relative",
2941
2941
  style: { width: "fit-content" },
2942
- onKeydown: le(E, ["esc"])
2942
+ onKeydown: ce(E, ["esc"])
2943
2943
  }, [s("button", {
2944
2944
  ref_key: "triggerRef",
2945
2945
  ref: h,
@@ -2972,7 +2972,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
2972
2972
  isSortable: e.isSortable,
2973
2973
  onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
2974
2974
  }, {
2975
- default: K(() => [N(t.$slots, "default", {}, () => [e.isLoading ? (k(), o("span", ni, "Loading...")) : a("", !0)], !0)]),
2975
+ default: q(() => [N(t.$slots, "default", {}, () => [e.isLoading ? (k(), o("span", ni, "Loading...")) : a("", !0)], !0)]),
2976
2976
  _: 3
2977
2977
  }, 8, [
2978
2978
  "id",
@@ -3016,7 +3016,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3016
3016
  alignment: e.alignment,
3017
3017
  "css-custom-properties": e.cssCustomProperties
3018
3018
  }, {
3019
- default: K(() => [N(t.$slots, "content")]),
3019
+ default: q(() => [N(t.$slots, "content")]),
3020
3020
  _: 3
3021
3021
  }, 8, ["alignment", "css-custom-properties"])]));
3022
3022
  }
@@ -3040,7 +3040,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3040
3040
  position: "bottom-right",
3041
3041
  style: { width: "100%" }
3042
3042
  }, c({
3043
- trigger: K(() => [u($, {
3043
+ trigger: q(() => [u($, {
3044
3044
  class: b(["pv-full-width", { "pv-disabled": e.disabled }]),
3045
3045
  variant: "ghost",
3046
3046
  label: e.label,
@@ -3063,7 +3063,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3063
3063
  _: 2
3064
3064
  }, [e.disabledReason ? {
3065
3065
  name: "content",
3066
- fn: K(() => [l(R(e.disabledReason), 1)]),
3066
+ fn: q(() => [l(R(e.disabledReason), 1)]),
3067
3067
  key: "0"
3068
3068
  } : void 0]), 1024))), 128))], 2));
3069
3069
  }
@@ -3107,7 +3107,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3107
3107
  "pv-icon": n.value,
3108
3108
  [`pv-company-${t.size}`]: t.size && !n.value
3109
3109
  })), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
3110
- return G(u, () => {
3110
+ return K(u, () => {
3111
3111
  n.value = !0;
3112
3112
  }), (e, t) => (k(), o("div", fi, [n.value ? (k(), o("div", {
3113
3113
  key: 0,
@@ -3157,8 +3157,8 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3157
3157
  }),
3158
3158
  emits: ["update:modelValue"],
3159
3159
  setup(e) {
3160
- let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i = W("dialog"), c = U(e, "modelValue");
3161
- G(() => c.value, () => {
3160
+ let t = e, n = r(() => t.position === "center" ? "position: fixed; inset-block: 0; height: fit-content; margin-block: auto" : void 0), i = G("dialog"), c = U(e, "modelValue");
3161
+ K(() => c.value, () => {
3162
3162
  c.value ? i.value?.showModal() : i.value?.close();
3163
3163
  });
3164
3164
  let l = () => {
@@ -3315,7 +3315,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3315
3315
  "data-testid": "pv-company-tag-close-icon",
3316
3316
  size: 12,
3317
3317
  name: "close",
3318
- onClick: r[0] ||= J((n) => t.$emit("handle-close", e.companyName), ["stop"])
3318
+ onClick: r[0] ||= Y((n) => t.$emit("handle-close", e.companyName), ["stop"])
3319
3319
  })) : a("", !0)
3320
3320
  ], 2));
3321
3321
  }
@@ -3464,18 +3464,18 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3464
3464
  }),
3465
3465
  emits: ["update:modelValue"],
3466
3466
  setup(e, { expose: t }) {
3467
- let n = e, i = W("search-input"), c = U(e, "modelValue"), l = r(() => ({
3467
+ let n = e, i = G("search-input"), c = U(e, "modelValue"), l = r(() => ({
3468
3468
  "pv-input-search": !0,
3469
3469
  "pv-full-width": !0,
3470
3470
  "pv-input-padded-end": !0,
3471
3471
  "pv-input-small": n.size === "lg"
3472
3472
  }));
3473
3473
  return T(() => {
3474
- n.displayShortcut && de(Bi, (e) => {
3474
+ n.displayShortcut && ue(Bi, (e) => {
3475
3475
  let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
3476
3476
  (!n || r) && (r || (e.preventDefault(), i.value?.focus()));
3477
3477
  });
3478
- }), t({ input: i }), (t, n) => (k(), o("div", Li, [q(s("input", {
3478
+ }), t({ input: i }), (t, n) => (k(), o("div", Li, [J(s("input", {
3479
3479
  ref: "search-input",
3480
3480
  "onUpdate:modelValue": n[0] ||= (e) => c.value = e,
3481
3481
  "data-testid": "pv-search-input",
@@ -3483,7 +3483,7 @@ var Ir = /* @__PURE__ */ Ye(/* @__PURE__ */ d({
3483
3483
  disabled: e.disabled,
3484
3484
  class: b(l.value),
3485
3485
  placeholder: e.placeholder
3486
- }, null, 10, Ri), [[oe, c.value]]), e.displayShortcut ? (k(), o("kbd", zi, R(Bi))) : a("", !0)]));
3486
+ }, null, 10, Ri), [[ae, c.value]]), e.displayShortcut ? (k(), o("kbd", zi, R(Bi))) : a("", !0)]));
3487
3487
  }
3488
3488
  }), [["__scopeId", "data-v-9e0c84d9"]]), Hi = /^\d{4}-\d{2}-\d{2}$/;
3489
3489
  function Ui(e) {
@@ -3569,7 +3569,7 @@ var Ji = /* @__PURE__ */ d({
3569
3569
  size: void 0,
3570
3570
  class: `pv-date-picker-${e.size}`
3571
3571
  }), {
3572
- inputicon: K((e) => [u(Q, {
3572
+ inputicon: q((e) => [u(Q, {
3573
3573
  name: "calendar",
3574
3574
  onClick: e.clickCallback
3575
3575
  }, null, 8, ["onClick"])]),
@@ -3745,7 +3745,7 @@ var Yi = () => ({
3745
3745
  "resize-start"
3746
3746
  ], ["update:size"]),
3747
3747
  setup(e, { emit: t }) {
3748
- let n = e, i = U(e, "size"), a = t, s = W("handle"), c = j(null), l = !1, u = r(() => Zi(n.edge)), d = (e) => {
3748
+ let n = e, i = U(e, "size"), a = t, s = G("handle"), c = j(null), l = !1, u = r(() => Zi(n.edge)), d = (e) => {
3749
3749
  let t = e?.parentNode ?? null;
3750
3750
  for (; t;) {
3751
3751
  if (t.nodeType === 1) return t;
@@ -3822,7 +3822,7 @@ var Yi = () => ({
3822
3822
  readSize: D,
3823
3823
  snapThreshold: () => n.snapThreshold
3824
3824
  });
3825
- G(i, (e) => {
3825
+ K(i, (e) => {
3826
3826
  if (!l) {
3827
3827
  R();
3828
3828
  return;
@@ -3830,10 +3830,10 @@ var Yi = () => ({
3830
3830
  if (e === void 0) return;
3831
3831
  let t = w(e);
3832
3832
  P(t), L(t);
3833
- }), G([c, u], ([e, t]) => e?.setAttribute("data-pv-resize-axis", t), { immediate: !0 }), G(I, (e) => {
3833
+ }), K([c, u], ([e, t]) => e?.setAttribute("data-pv-resize-axis", t), { immediate: !0 }), K(I, (e) => {
3834
3834
  let t = c.value;
3835
3835
  t && (e ? t.setAttribute("data-pv-resizing", "") : t.removeAttribute("data-pv-resizing"));
3836
- }), G([
3836
+ }), K([
3837
3837
  x,
3838
3838
  C,
3839
3839
  S
@@ -3858,7 +3858,7 @@ var Yi = () => ({
3858
3858
  let a = w(r);
3859
3859
  P(a), L(a);
3860
3860
  };
3861
- return G(b, R), T(async () => {
3861
+ return K(b, R), T(async () => {
3862
3862
  c.value = d(s.value), await y(), R();
3863
3863
  }), (e, t) => (k(), o("div", v({
3864
3864
  ref_key: "handle",
@@ -3929,18 +3929,18 @@ var Yi = () => ({
3929
3929
  "update:modelValue"
3930
3930
  ]),
3931
3931
  setup(e, { emit: n }) {
3932
- let r = e, c = n, l = W("sidePanel"), { width: d } = ge({ initialWidth: 0 }), f = U(e, "searchInput"), p = U(e, "width"), m = U(e, "modelValue"), h = () => {
3932
+ let r = e, c = n, l = G("sidePanel"), { width: d } = ge({ initialWidth: 0 }), f = U(e, "searchInput"), p = U(e, "width"), m = U(e, "modelValue"), h = () => {
3933
3933
  l?.value?.removeAttribute("open"), m.value = !1;
3934
3934
  }, g = () => {
3935
- l.value && ue(l.value, () => {
3935
+ l.value && le(l.value, () => {
3936
3936
  m.value && (c("click-outside"), h());
3937
3937
  }, { ignore: [".pv-click-outside-ignore"] });
3938
3938
  };
3939
3939
  return T(() => {
3940
3940
  m.value && l?.value?.setAttribute("open", "true"), r.closeOnClickOutside && g();
3941
- }), G(() => m.value, () => {
3941
+ }), K(() => m.value, () => {
3942
3942
  m.value ? l?.value?.setAttribute("open", "true") : l?.value?.removeAttribute("open");
3943
- }), de("Escape", () => {
3943
+ }), ue("Escape", () => {
3944
3944
  l.value && m.value && h();
3945
3945
  }), (n, c) => (k(), o("div", {
3946
3946
  class: b(["pv-drawer pv-surface", { "pv-resizable": e.resizable }]),
@@ -4035,8 +4035,8 @@ var Yi = () => ({
4035
4035
  }), f = ee(), p = te(), m = r(() => typeof f.id == "string" ? f.id : p), h = r(() => {
4036
4036
  let e = { ...f };
4037
4037
  return delete e.id, e;
4038
- }), g = W("panel"), _ = null, y = () => c("close");
4039
- return ue(g, y), de("Escape", y), T(() => {
4038
+ }), g = G("panel"), _ = null, y = () => c("close");
4039
+ return le(g, y), ue("Escape", y), T(() => {
4040
4040
  _ = document.activeElement, g.value?.focus();
4041
4041
  }), D(() => {
4042
4042
  _?.focus();
@@ -4145,11 +4145,11 @@ var Yi = () => ({
4145
4145
  variant: "white",
4146
4146
  useTeleport: !0
4147
4147
  }, {
4148
- trigger: K(() => [u(Xr, {
4148
+ trigger: q(() => [u(Xr, {
4149
4149
  label: `+${e.hiddenValues.length} more`,
4150
4150
  size: "sm"
4151
4151
  }, null, 8, ["label"])]),
4152
- content: K(() => [(k(!0), o(t, null, M(e.hiddenValues, (e, t) => (k(), o("div", {
4152
+ content: q(() => [(k(!0), o(t, null, M(e.hiddenValues, (e, t) => (k(), o("div", {
4153
4153
  key: t,
4154
4154
  class: b(["pv-text-body-md", { "pv-underline-dotted": e.isClickable }]),
4155
4155
  style: S({
@@ -4197,7 +4197,7 @@ var Yi = () => ({
4197
4197
  class: "pv-label",
4198
4198
  for: e.id
4199
4199
  }, [N(n.$slots, "label")], 8, Oa)) : a("", !0),
4200
- q(s("textarea", v(n.$attrs, {
4200
+ J(s("textarea", v(n.$attrs, {
4201
4201
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
4202
4202
  class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
4203
4203
  rows: e.rows,
@@ -4205,7 +4205,7 @@ var Yi = () => ({
4205
4205
  placeholder: e.placeholder,
4206
4206
  id: e.id,
4207
4207
  "data-invalid": e.error ? !0 : void 0
4208
- }), null, 16, ka), [[oe, t.value]]),
4208
+ }), null, 16, ka), [[ae, t.value]]),
4209
4209
  e.lowerLabel ? (k(), o("p", {
4210
4210
  key: 1,
4211
4211
  style: { "margin-left": "12px" },
@@ -4264,7 +4264,7 @@ var Yi = () => ({
4264
4264
  class: b(d.value),
4265
4265
  for: f.value
4266
4266
  }, [
4267
- q(s("input", {
4267
+ J(s("input", {
4268
4268
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
4269
4269
  class: "pv-hide",
4270
4270
  id: f.value,
@@ -4272,7 +4272,7 @@ var Yi = () => ({
4272
4272
  value: e.value,
4273
4273
  name: e.name,
4274
4274
  disabled: e.disabled
4275
- }, null, 8, Ma), [[ie, n.value]]),
4275
+ }, null, 8, Ma), [[re, n.value]]),
4276
4276
  e.leftIcon ? (k(), i(Q, {
4277
4277
  key: 0,
4278
4278
  name: e.leftIcon
@@ -4461,7 +4461,7 @@ var Yi = () => ({
4461
4461
  }),
4462
4462
  emits: ["update:modelValue"],
4463
4463
  setup(e) {
4464
- let t = W("inputRef"), n = {
4464
+ let t = G("inputRef"), n = {
4465
4465
  h1: "ghost-input-h1",
4466
4466
  h2: "ghost-input-h2",
4467
4467
  h3: "ghost-input-h3",
@@ -4482,7 +4482,7 @@ var Yi = () => ({
4482
4482
  }, i = e, a = U(e, "modelValue"), c = j(0);
4483
4483
  T(() => {
4484
4484
  a.value && a.value.length > 0 ? l(a.value) : i.placeholder ? l(i.placeholder) : c.value = 240, i.autofocus && t.value?.focus();
4485
- }), G(() => a.value, () => {
4485
+ }), K(() => a.value, () => {
4486
4486
  a.value && a.value.length > 0 ? l(a.value) : i.placeholder ? l(i.placeholder) : c.value = 240;
4487
4487
  });
4488
4488
  let l = (e) => {
@@ -4506,7 +4506,7 @@ var Yi = () => ({
4506
4506
  description: e.tooltipText,
4507
4507
  disabled: !e.tooltipText
4508
4508
  }, {
4509
- trigger: K(() => [q(s("input", {
4509
+ trigger: q(() => [J(s("input", {
4510
4510
  ref_key: "inputRef",
4511
4511
  ref: t,
4512
4512
  "onUpdate:modelValue": l[0] ||= (e) => a.value = e,
@@ -4515,7 +4515,7 @@ var Yi = () => ({
4515
4515
  placeholder: e.placeholder,
4516
4516
  disabled: e.disabled,
4517
4517
  name: n[e.variant]
4518
- }, null, 12, Ka), [[oe, a.value]])]),
4518
+ }, null, 12, Ka), [[ae, a.value]])]),
4519
4519
  _: 1
4520
4520
  }, 8, [
4521
4521
  "position",
@@ -4604,7 +4604,7 @@ var Yi = () => ({
4604
4604
  t[p(n)] = e.children[r]?.getBoundingClientRect().width ?? 0;
4605
4605
  }), C.value = t, v.value = parseFloat(getComputedStyle(e).columnGap) || 0, x.value = !1;
4606
4606
  };
4607
- G([
4607
+ K([
4608
4608
  () => c.collapseOverflow,
4609
4609
  () => c.size,
4610
4610
  r(() => JSON.stringify(h.value, [
@@ -4617,17 +4617,17 @@ var Yi = () => ({
4617
4617
  () => _.value > 0
4618
4618
  ], ee, { flush: "post" }), T(() => {
4619
4619
  document.fonts?.ready.then(ee);
4620
- }), G(() => z.value.length, (e) => {
4620
+ }), K(() => z.value.length, (e) => {
4621
4621
  e || (S.value = !1);
4622
4622
  });
4623
- let H = j(), te = (e) => H.value ?? e.label, ne = (e) => {
4623
+ let H = j(), te = (e) => H.value ?? e.label, W = (e) => {
4624
4624
  H.value = e;
4625
- }, W = (e) => {
4625
+ }, G = (e) => {
4626
4626
  let t = H.value ?? e.label;
4627
4627
  d("handle-input-submit", p(e), t.trim().length > 0 ? t : e.label), H.value = void 0;
4628
- }, re = (e) => {
4628
+ }, ne = (e) => {
4629
4629
  H.value = void 0, e.target instanceof HTMLInputElement && e.target.blur();
4630
- }, ie = (e) => {
4630
+ }, re = (e) => {
4631
4631
  if (!e.disabled) {
4632
4632
  if (e.type === "addButton") {
4633
4633
  d("add-button-click", p(e));
@@ -4635,16 +4635,16 @@ var Yi = () => ({
4635
4635
  }
4636
4636
  e.type !== "input" && (f.value = p(e));
4637
4637
  }
4638
- }, ae = (e) => {
4639
- e.disabled || (ie(e), S.value = !1);
4640
- }, oe = (e) => e.type !== "addButton" && p(e) === f.value ? !0 : null, se = (e) => {
4638
+ }, ie = (e) => {
4639
+ e.disabled || (re(e), S.value = !1);
4640
+ }, ae = (e) => e.type !== "addButton" && p(e) === f.value ? !0 : null, oe = (e) => {
4641
4641
  if (E(e)) return "overflow";
4642
4642
  if (e.type === "addButton") return "add-button";
4643
4643
  if (e.type === "input") return "input";
4644
- }, ce = (e) => !!e.options?.length && e.type !== "input" && e.type !== "addButton", q = (e, t) => {
4644
+ }, se = (e) => !!e.options?.length && e.type !== "input" && e.type !== "addButton", J = (e, t) => {
4645
4645
  d("option-click", p(e), t.value);
4646
- }, ue = j(!1), de = (e) => e.type === "addButton" && !!e.options?.length, Y = (e, t) => {
4647
- d("add-button-click", p(e), t.value), ue.value = !1;
4646
+ }, le = j(!1), ue = (e) => e.type === "addButton" && !!e.options?.length, de = (e, t) => {
4647
+ d("add-button-click", p(e), t.value), le.value = !1;
4648
4648
  };
4649
4649
  return (n, r) => (k(), o("ul", {
4650
4650
  ref_key: "listRef",
@@ -4659,18 +4659,18 @@ var Yi = () => ({
4659
4659
  }, [(k(!0), o(t, null, M(V.value, (e) => (k(), o("li", {
4660
4660
  key: p(e),
4661
4661
  class: "pv-flex",
4662
- "data-active": oe(e),
4663
- "data-type": se(e),
4664
- "data-testid": se(e) ? `pv-tab-${se(e)}` : "pv-tab",
4665
- onClick: () => ie(e)
4662
+ "data-active": ae(e),
4663
+ "data-type": oe(e),
4664
+ "data-testid": oe(e) ? `pv-tab-${oe(e)}` : "pv-tab",
4665
+ onClick: () => re(e)
4666
4666
  }, [e.type === "input" ? (k(), o("div", Ya, [u(qa, {
4667
4667
  variant: "text-md",
4668
4668
  autofocus: "",
4669
4669
  placeholder: e.label,
4670
4670
  "model-value": te(e),
4671
- "onUpdate:modelValue": ne,
4672
- onKeydown: [le(() => W(e), ["enter"]), le(re, ["esc"])],
4673
- onFocusout: () => W(e)
4671
+ "onUpdate:modelValue": W,
4672
+ onKeydown: [ce(() => G(e), ["enter"]), ce(ne, ["esc"])],
4673
+ onFocusout: () => G(e)
4674
4674
  }, null, 8, [
4675
4675
  "placeholder",
4676
4676
  "model-value",
@@ -4683,43 +4683,43 @@ var Yi = () => ({
4683
4683
  class: "pv-tab-overflow",
4684
4684
  position: "bottom-left",
4685
4685
  "disable-auto-placement": "",
4686
- onClick: r[1] ||= J(() => {}, ["stop"])
4686
+ onClick: r[1] ||= Y(() => {}, ["stop"])
4687
4687
  }, {
4688
- trigger: K(() => [s("button", {
4688
+ trigger: q(() => [s("button", {
4689
4689
  type: "button",
4690
4690
  "aria-haspopup": "true",
4691
4691
  "aria-expanded": S.value
4692
4692
  }, R(e.label), 9, Xa)]),
4693
- content: K(() => [s("ul", Za, [(k(!0), o(t, null, M(z.value, (e) => (k(), o("li", { key: p(e) }, [s("a", {
4693
+ content: q(() => [s("ul", Za, [(k(!0), o(t, null, M(z.value, (e) => (k(), o("li", { key: p(e) }, [s("a", {
4694
4694
  href: "#",
4695
4695
  "aria-disabled": e.disabled,
4696
4696
  title: e.disabled ? e.disabledReason : void 0,
4697
- onClick: J((t) => ae(e), ["prevent"])
4697
+ onClick: Y((t) => ie(e), ["prevent"])
4698
4698
  }, R(e.label), 9, Qa)]))), 128))])]),
4699
4699
  _: 2
4700
- }, 1032, ["modelValue"])) : de(e) ? (k(), i(ur, {
4700
+ }, 1032, ["modelValue"])) : ue(e) ? (k(), i(ur, {
4701
4701
  key: 2,
4702
- modelValue: ue.value,
4703
- "onUpdate:modelValue": r[2] ||= (e) => ue.value = e,
4702
+ modelValue: le.value,
4703
+ "onUpdate:modelValue": r[2] ||= (e) => le.value = e,
4704
4704
  class: "pv-tab-add-menu",
4705
4705
  position: "bottom-left",
4706
4706
  "disable-auto-placement": "",
4707
4707
  disabled: e.disabled,
4708
- onClick: r[3] ||= J(() => {}, ["stop"])
4708
+ onClick: r[3] ||= Y(() => {}, ["stop"])
4709
4709
  }, {
4710
- trigger: K(() => [s("button", {
4710
+ trigger: q(() => [s("button", {
4711
4711
  type: "button",
4712
4712
  "aria-haspopup": "true",
4713
- "aria-expanded": ue.value,
4713
+ "aria-expanded": le.value,
4714
4714
  disabled: e.disabled,
4715
4715
  title: e.disabled ? e.disabledReason : void 0
4716
4716
  }, [e.icon ? (k(), i(Q, {
4717
4717
  key: 0,
4718
4718
  name: e.icon
4719
4719
  }, null, 8, ["name"])) : a("", !0), l(" " + R(e.label), 1)], 8, $a)]),
4720
- content: K(() => [s("ul", eo, [(k(!0), o(t, null, M(e.options, (t) => (k(), o("li", { key: t.value }, [s("a", {
4720
+ content: q(() => [s("ul", eo, [(k(!0), o(t, null, M(e.options, (t) => (k(), o("li", { key: t.value }, [s("a", {
4721
4721
  href: "#",
4722
- onClick: J((n) => Y(e, t), ["prevent"])
4722
+ onClick: Y((n) => de(e, t), ["prevent"])
4723
4723
  }, R(t.label), 9, to)]))), 128))])]),
4724
4724
  _: 2
4725
4725
  }, 1032, ["modelValue", "disabled"])) : (k(), o("button", {
@@ -4736,25 +4736,25 @@ var Yi = () => ({
4736
4736
  e.counter ? (k(), i(Xe, {
4737
4737
  key: 1,
4738
4738
  value: e.counter,
4739
- variant: oe(e) ? "primary" : "tertiary",
4739
+ variant: ae(e) ? "primary" : "tertiary",
4740
4740
  size: "sm"
4741
4741
  }, null, 8, ["value", "variant"])) : a("", !0)
4742
- ], 8, no)), ce(e) ? (k(), i(ur, {
4742
+ ], 8, no)), se(e) ? (k(), i(ur, {
4743
4743
  key: 4,
4744
4744
  class: "pv-tab-options",
4745
4745
  "show-on-hover": "",
4746
- onClick: r[4] ||= J(() => {}, ["stop"])
4746
+ onClick: r[4] ||= Y(() => {}, ["stop"])
4747
4747
  }, {
4748
- trigger: K(() => [u($, {
4748
+ trigger: q(() => [u($, {
4749
4749
  "left-icon": "ellipsis-vertical",
4750
4750
  variant: "ghost",
4751
4751
  size: "md",
4752
4752
  ariaLabel: "Tab options"
4753
4753
  })]),
4754
- content: K(() => [s("ul", ro, [(k(!0), o(t, null, M(e.options, (t) => (k(), o("li", { key: t.value }, [s("a", {
4754
+ content: q(() => [s("ul", ro, [(k(!0), o(t, null, M(e.options, (t) => (k(), o("li", { key: t.value }, [s("a", {
4755
4755
  href: "#",
4756
4756
  class: b({ "pv-text-critical": t.value === "delete" }),
4757
- onClick: J((n) => q(e, t), ["prevent"])
4757
+ onClick: Y((n) => J(e, t), ["prevent"])
4758
4758
  }, R(t.label), 11, io)]))), 128))])]),
4759
4759
  _: 2
4760
4760
  }, 1024)) : a("", !0)], 8, Ja))), 128))], 2));
@@ -4989,11 +4989,11 @@ var Yi = () => ({
4989
4989
  variant: "dark",
4990
4990
  "tooltip-position": "top-left"
4991
4991
  }, {
4992
- label: K(() => [u(Q, {
4992
+ label: q(() => [u(Q, {
4993
4993
  name: "close",
4994
- onClick: r[0] ||= J((e) => n.$emit("handle-clear"), ["stop"])
4994
+ onClick: r[0] ||= Y((e) => n.$emit("handle-clear"), ["stop"])
4995
4995
  })]),
4996
- "tooltip-content": K(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
4996
+ "tooltip-content": q(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
4997
4997
  _: 1
4998
4998
  })) : a("", !0)
4999
4999
  ], 10, _o));
@@ -5121,7 +5121,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5121
5121
  };
5122
5122
  return T(() => {
5123
5123
  x();
5124
- }), G(() => [
5124
+ }), K(() => [
5125
5125
  n.queryText,
5126
5126
  n.text,
5127
5127
  n.subText,
@@ -5224,13 +5224,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5224
5224
  disableInteractive: !0,
5225
5225
  style: { "pointer-events": "auto" }
5226
5226
  }, {
5227
- trigger: K(() => [u(Q, {
5227
+ trigger: q(() => [u(Q, {
5228
5228
  size: 12,
5229
5229
  name: "info-circle",
5230
5230
  class: "pv-text-subdued",
5231
- onClick: r[0] ||= J(() => {}, ["stop", "prevent"])
5231
+ onClick: r[0] ||= Y(() => {}, ["stop", "prevent"])
5232
5232
  })]),
5233
- content: K(() => [s("div", Po, R(e.description), 1)]),
5233
+ content: q(() => [s("div", Po, R(e.description), 1)]),
5234
5234
  _: 1
5235
5235
  })) : e.secondaryText && typeof e.secondaryText == "number" ? (k(), i(Xe, {
5236
5236
  key: 6,
@@ -5275,14 +5275,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5275
5275
  "pv-input-xsmall": e.size === "sm",
5276
5276
  "pv-switch-hide-check": e.hideCheckIcon
5277
5277
  }])
5278
- }, [e.label ? (k(), o("span", Ro, R(e.label), 1)) : a("", !0), q(s("input", {
5278
+ }, [e.label ? (k(), o("span", Ro, R(e.label), 1)) : a("", !0), J(s("input", {
5279
5279
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
5280
5280
  disabled: e.disabled,
5281
5281
  "aria-label": e.ariaLabel,
5282
5282
  type: "checkbox",
5283
5283
  role: "switch",
5284
5284
  id: V(t)
5285
- }, null, 8, zo), [[re, n.value]])], 10, Lo));
5285
+ }, null, 8, zo), [[ne, n.value]])], 10, Lo));
5286
5286
  }
5287
5287
  }), Vo = ["aria-label"], Ho = /* @__PURE__ */ d({
5288
5288
  __name: "PvMenuItemAction",
@@ -5316,16 +5316,16 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5316
5316
  "disable-interactive": !0,
5317
5317
  "use-teleport": !0
5318
5318
  }, c({
5319
- trigger: K(() => [s("span", {
5319
+ trigger: q(() => [s("span", {
5320
5320
  class: b(["pv-text-brand", { "pv-action-button-reveal-on-hover": !f.value }]),
5321
5321
  role: "img",
5322
5322
  "aria-label": o.value,
5323
- onClick: t[0] ||= J(() => {}, ["stop"])
5323
+ onClick: t[0] ||= Y(() => {}, ["stop"])
5324
5324
  }, [u(Q, { name: n.value }, null, 8, ["name"])], 10, Vo)]),
5325
5325
  _: 2
5326
5326
  }, [o.value ? {
5327
5327
  name: "content",
5328
- fn: K(() => [l(R(o.value), 1)]),
5328
+ fn: q(() => [l(R(o.value), 1)]),
5329
5329
  key: "0"
5330
5330
  } : void 0]), 1024));
5331
5331
  }
@@ -5382,7 +5382,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5382
5382
  },
5383
5383
  emits: ["handle-selected", "toggle-expanded"],
5384
5384
  setup(e, { emit: t }) {
5385
- let n = e, c = W("inputRef"), l = h(Uo, void 0), d = h(Wo, j(!1)), p = h(qo, void 0), m = h(Jo, void 0), g = h(Go, r(() => !1)), _ = r(() => {
5385
+ let n = e, c = G("inputRef"), l = h(Uo, void 0), d = h(Wo, j(!1)), p = h(qo, void 0), m = h(Jo, void 0), g = h(Go, r(() => !1)), _ = r(() => {
5386
5386
  if (!d.value || !Eo(n)) return [];
5387
5387
  let e = n.children ? Do(n.children) : [];
5388
5388
  if (p?.value) {
@@ -5492,7 +5492,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5492
5492
  class: "pv-button-ghost pv-menu-item-expand-chevron",
5493
5493
  "aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
5494
5494
  "aria-expanded": e.expanded,
5495
- onClick: r[1] ||= J((e) => P("toggle-expanded"), ["prevent", "stop"])
5495
+ onClick: r[1] ||= Y((e) => P("toggle-expanded"), ["prevent", "stop"])
5496
5496
  }, [u(Q, {
5497
5497
  name: e.chevronIcon ?? "chevron-right",
5498
5498
  size: 12
@@ -5558,11 +5558,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5558
5558
  ]);
5559
5559
  return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
5560
5560
  }), g = h(Jo, void 0), _ = h(Yo, void 0), y = j(i.defaultExpanded ?? !1);
5561
- G(() => i.defaultExpanded, (e) => {
5561
+ K(() => i.defaultExpanded, (e) => {
5562
5562
  e && (y.value = !0);
5563
5563
  });
5564
5564
  let x = j(!1), C = j(!1), w = j(i.children ?? []), T = j(/* @__PURE__ */ new Set());
5565
- G(() => i.children, (e) => {
5565
+ K(() => i.children, (e) => {
5566
5566
  if (!e) {
5567
5567
  w.value = [];
5568
5568
  return;
@@ -5735,32 +5735,32 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5735
5735
  let e = p.value;
5736
5736
  E(), e && y(() => Se(e));
5737
5737
  }, O = [...h(Ko, []), m];
5738
- A(Ko, O), ue(g, (e) => {
5738
+ A(Ko, O), le(g, (e) => {
5739
5739
  (e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(m) || E();
5740
5740
  }, { ignore: [x] });
5741
5741
  let P = L(f.value);
5742
- G(f, (e) => {
5742
+ K(f, (e) => {
5743
5743
  P.value = e;
5744
5744
  });
5745
5745
  let F, I = (e) => {
5746
5746
  F = e, f.value = e;
5747
5747
  };
5748
- G(P, (e) => {
5748
+ K(P, (e) => {
5749
5749
  e !== F && e !== f.value && I(e);
5750
5750
  }), A(Uo, P), A(Go, r(() => l.childrenDisplay === "popover"));
5751
5751
  let R = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
5752
5752
  A(Wo, R);
5753
- let z = h(qo, void 0), B = h(Xo, j(!1)), ee = h(Jo, void 0), H = h(Yo, void 0), ne = r(() => l.singleSelect || l.config?.variant === "radio"), W = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), re = (e, t, n = !1, r = !0) => {
5753
+ let z = h(qo, void 0), B = h(Xo, j(!1)), ee = h(Jo, void 0), H = h(Yo, void 0), W = r(() => l.singleSelect || l.config?.variant === "radio"), G = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), ne = (e, t, n = !1, r = !0) => {
5754
5754
  let i = !r || p.value !== e.id;
5755
5755
  p.value = i ? e.id : void 0, i && (C.value = t, y(() => {
5756
5756
  T(), n && be(_.value ?? document.getElementById(m), 0);
5757
5757
  }));
5758
- }, ie = (e, t = !1) => {
5758
+ }, re = (e, t = !1) => {
5759
5759
  if (l.readOnly) return;
5760
5760
  let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
5761
5761
  if (l.childrenDisplay === "popover" && !t && n.children?.length) {
5762
5762
  let t = e.event.currentTarget?.closest("li");
5763
- t && re(n, t);
5763
+ t && ne(n, t);
5764
5764
  return;
5765
5765
  }
5766
5766
  let r;
@@ -5779,7 +5779,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5779
5779
  let e = new Map(H.value);
5780
5780
  e.delete(n.id), H.value = e;
5781
5781
  }
5782
- } else if (ne.value) r = P.value.length === 1 && P.value[0].id === n.id ? l.disableDeselect ? P.value : [] : [n];
5782
+ } else if (W.value) r = P.value.length === 1 && P.value[0].id === n.id ? l.disableDeselect ? P.value : [] : [n];
5783
5783
  else {
5784
5784
  let e = P.value.findIndex((e) => e.id === n.id);
5785
5785
  if (r = e > -1 ? [...P.value.slice(0, e), ...P.value.slice(e + 1)] : [...P.value, n], R.value && ee?.value && H?.value) {
@@ -5797,23 +5797,23 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5797
5797
  ...e,
5798
5798
  option: n
5799
5799
  } : e);
5800
- }, ae = (e) => {
5801
- let t = W.value;
5800
+ }, ie = (e) => {
5801
+ let t = G.value;
5802
5802
  if (!t) return;
5803
5803
  let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
5804
- ie({
5804
+ re({
5805
5805
  ...e,
5806
5806
  option: n
5807
5807
  }, !0), p.value = void 0, y(() => Se(t.id));
5808
- }, oe = r(() => new Set(P.value.map((e) => e.id))), ce = (e) => {
5808
+ }, ae = r(() => new Set(P.value.map((e) => e.id))), se = (e) => {
5809
5809
  for (let t of e) {
5810
- if (oe.value.has(t.id)) return t;
5811
- let e = t.children?.length ? ce(t.children) : void 0;
5810
+ if (ae.value.has(t.id)) return t;
5811
+ let e = t.children?.length ? se(t.children) : void 0;
5812
5812
  if (e) return e;
5813
5813
  }
5814
- }, le = (e) => {
5814
+ }, ce = (e) => {
5815
5815
  if (l.childrenDisplay !== "popover" || !e.children?.length) return e;
5816
- let t = ce(e.children);
5816
+ let t = se(e.children);
5817
5817
  return {
5818
5818
  ...e,
5819
5819
  children: void 0,
@@ -5821,18 +5821,18 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5821
5821
  subText: t?.text ?? e.subText,
5822
5822
  totalChildCount: void 0
5823
5823
  };
5824
- }, J = (e) => ({
5824
+ }, Y = (e) => ({
5825
5825
  ...e,
5826
5826
  children: void 0,
5827
5827
  totalChildCount: void 0
5828
- }), de = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, Y = (e) => oe.value.has(e.id) || R.value && ee?.value?.has(e.id) || (R.value || l.childrenDisplay === "popover") && e.children?.length && ce(e.children) ? !0 : null, fe = (e) => {
5828
+ }), ue = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, de = (e) => ae.value.has(e.id) || R.value && ee?.value?.has(e.id) || (R.value || l.childrenDisplay === "popover") && e.children?.length && se(e.children) ? !0 : null, X = (e) => {
5829
5829
  let t = e.config?.variant ?? l.config?.variant;
5830
- return ne.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
5831
- }, X = (e) => fe(e) === "menuitem" ? void 0 : !!Y(e), Z = (e) => e.children?.length && !l.highlightParentItems ? null : fe(e) !== "menuitemcheckbox" && Y(e) || p.value === e.id ? !0 : null, pe = (e) => fe(e) !== "menuitemcheckbox" && oe.value.has(e.id) ? !0 : null, me = (e, t) => !!(!t || oe.value.has(e.id) || ee?.value?.has(e.id) || e.children?.length && ce(e.children)), he = j(), ge = j(), _e = r(() => {
5830
+ return W.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
5831
+ }, fe = (e) => X(e) === "menuitem" ? void 0 : !!de(e), Z = (e) => e.children?.length && !l.highlightParentItems ? null : X(e) !== "menuitemcheckbox" && de(e) || p.value === e.id ? !0 : null, pe = (e) => X(e) !== "menuitemcheckbox" && ae.value.has(e.id) ? !0 : null, me = (e, t) => !!(!t || ae.value.has(e.id) || ee?.value?.has(e.id) || e.children?.length && se(e.children)), he = j(), ge = j(), _e = r(() => {
5832
5832
  let e = l.options.filter((e) => !l.readOnly && !e.disabled && me(e, l.isLoading)).map((e) => e.id);
5833
5833
  return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(ps), he.value && e.includes(he.value) ? he.value : e[0];
5834
5834
  }), ve = r(() => {
5835
- let e = W.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
5835
+ let e = G.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
5836
5836
  return e.some((e) => e.id === ge.value) ? ge.value : e[0]?.id;
5837
5837
  }), ye = (e) => {
5838
5838
  let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
@@ -5846,7 +5846,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5846
5846
  }, Se = (e) => {
5847
5847
  ye(g.value).find((t) => t.dataset.optionId === e)?.focus();
5848
5848
  };
5849
- G([p, () => !!W.value], ([e]) => {
5849
+ K([p, () => !!G.value], ([e]) => {
5850
5850
  ge.value = void 0, e && y(() => {
5851
5851
  let t = Array.from(g.value?.children ?? []).find((t) => t.dataset.optionId === e);
5852
5852
  t && (C.value = t, T());
@@ -5864,11 +5864,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5864
5864
  if (!(e.target !== e.currentTarget || Ce(e, g.value))) switch (e.key) {
5865
5865
  case "ArrowRight":
5866
5866
  if (!t.children?.length) break;
5867
- e.preventDefault(), re(t, e.currentTarget, !0, !1);
5867
+ e.preventDefault(), ne(t, e.currentTarget, !0, !1);
5868
5868
  break;
5869
5869
  case "Enter":
5870
5870
  case " ":
5871
- e.preventDefault(), t.children?.length ? re(t, e.currentTarget, !0, !1) : ie({
5871
+ e.preventDefault(), t.children?.length ? ne(t, e.currentTarget, !0, !1) : re({
5872
5872
  event: e,
5873
5873
  option: t
5874
5874
  });
@@ -5903,7 +5903,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5903
5903
  }
5904
5904
  case "Enter":
5905
5905
  case " ":
5906
- e.preventDefault(), ae({
5906
+ e.preventDefault(), ie({
5907
5907
  event: e,
5908
5908
  option: t
5909
5909
  });
@@ -5918,15 +5918,15 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5918
5918
  ref: g,
5919
5919
  role: e.childrenDisplay === "popover" ? "menu" : "list",
5920
5920
  class: "pv-popover-list"
5921
- }, r.$attrs), [(k(!0), o(t, null, M(e.options, (t) => q((k(), o("li", {
5921
+ }, r.$attrs), [(k(!0), o(t, null, M(e.options, (t) => J((k(), o("li", {
5922
5922
  key: t.id,
5923
5923
  "data-active": Z(t),
5924
5924
  "data-option-id": t.id,
5925
5925
  "data-testid": e.itemTestId,
5926
5926
  class: b(e.itemClass),
5927
5927
  role: e.childrenDisplay === "popover" ? "none" : void 0
5928
- }, [u(os, v({ ref_for: !0 }, le(t), {
5929
- "aria-checked": e.childrenDisplay === "popover" ? X(t) : void 0,
5928
+ }, [u(os, v({ ref_for: !0 }, ce(t), {
5929
+ "aria-checked": e.childrenDisplay === "popover" ? fe(t) : void 0,
5930
5930
  "aria-controls": e.childrenDisplay === "popover" && t.children?.length ? V(m) : void 0,
5931
5931
  "aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
5932
5932
  "aria-expanded": e.childrenDisplay === "popover" && t.children?.length ? p.value === t.id : void 0,
@@ -5935,14 +5935,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5935
5935
  "data-dd-action-name": t.rumActionName,
5936
5936
  "data-option-id": t.id,
5937
5937
  disabled: l.readOnly || t.disabled,
5938
- config: de(t),
5938
+ config: ue(t),
5939
5939
  itemClass: e.itemClass,
5940
5940
  queryText: e.queryText,
5941
- role: e.childrenDisplay === "popover" ? fe(t) : void 0,
5941
+ role: e.childrenDisplay === "popover" ? X(t) : void 0,
5942
5942
  tabindex: e.childrenDisplay === "popover" ? _e.value === t.id ? 0 : -1 : void 0,
5943
5943
  onFocus: (e) => he.value = t.id,
5944
5944
  onKeydown: (n) => e.childrenDisplay === "popover" ? we(n, t) : void 0,
5945
- onHandleSelected: ie,
5945
+ onHandleSelected: re,
5946
5946
  onSeeMore: c[0] ||= (e) => d("see-more", e)
5947
5947
  }), null, 16, [
5948
5948
  "aria-checked",
@@ -5961,7 +5961,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5961
5961
  "tabindex",
5962
5962
  "onFocus",
5963
5963
  "onKeydown"
5964
- ])], 10, cs)), [[se, me(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (k(), o("li", {
5964
+ ])], 10, cs)), [[oe, me(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (k(), o("li", {
5965
5965
  key: 0,
5966
5966
  role: e.childrenDisplay === "popover" ? "none" : void 0
5967
5967
  }, [u($, {
@@ -5981,7 +5981,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5981
5981
  "disabled",
5982
5982
  "role",
5983
5983
  "tabindex"
5984
- ])], 8, ls)) : a("", !0)], 16, ss), e.childrenDisplay === "popover" && W.value ? (k(), i(n, {
5984
+ ])], 8, ls)) : a("", !0)], 16, ss), e.childrenDisplay === "popover" && G.value ? (k(), i(n, {
5985
5985
  key: 0,
5986
5986
  to: "body"
5987
5987
  }, [s("div", {
@@ -5998,38 +5998,38 @@ var Mo = ["title"], No = ["title"], Po = { style: {
5998
5998
  maxWidth: "calc(100vw - 16px)"
5999
5999
  }
6000
6000
  }, {
6001
- default: K(() => [N(r.$slots, "popover", {
6002
- option: W.value,
6001
+ default: q(() => [N(r.$slots, "popover", {
6002
+ option: G.value,
6003
6003
  popoverId: V(m),
6004
6004
  close: D
6005
6005
  }, () => [s("ul", {
6006
6006
  id: V(m),
6007
6007
  ref_key: "nestedMenuRef",
6008
6008
  ref: _,
6009
- "aria-label": `${W.value.text} options`,
6009
+ "aria-label": `${G.value.text} options`,
6010
6010
  class: "pv-popover-list",
6011
6011
  role: "menu"
6012
- }, [(k(!0), o(t, null, M(W.value.children, (t) => (k(), o("li", {
6012
+ }, [(k(!0), o(t, null, M(G.value.children, (t) => (k(), o("li", {
6013
6013
  key: t.id,
6014
6014
  "data-active": pe(t),
6015
6015
  "data-option-id": t.id,
6016
6016
  class: b(e.itemClass),
6017
6017
  role: "none"
6018
- }, [u(os, v({ ref_for: !0 }, J(t), {
6019
- "aria-checked": X(t),
6018
+ }, [u(os, v({ ref_for: !0 }, Y(t), {
6019
+ "aria-checked": fe(t),
6020
6020
  "aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
6021
6021
  "data-active": pe(t),
6022
6022
  "data-dd-action-name": t.rumActionName,
6023
6023
  "data-option-id": t.id,
6024
6024
  disabled: l.readOnly || t.disabled,
6025
- config: de(t),
6025
+ config: ue(t),
6026
6026
  itemClass: e.itemClass,
6027
6027
  queryText: e.queryText,
6028
- role: fe(t),
6028
+ role: X(t),
6029
6029
  tabindex: ve.value === t.id ? 0 : -1,
6030
6030
  onFocus: (e) => ge.value = t.id,
6031
6031
  onKeydown: (e) => Ee(e, t),
6032
- onHandleSelected: ae,
6032
+ onHandleSelected: ie,
6033
6033
  onSeeMore: c[4] ||= (e) => d("see-more", e)
6034
6034
  }), null, 16, [
6035
6035
  "aria-checked",
@@ -6193,7 +6193,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6193
6193
  state: "deselected"
6194
6194
  }))), t.push(r);
6195
6195
  }
6196
- for (let n of ne.value) e.has(n.id) || t.push({
6196
+ for (let n of W.value) e.has(n.id) || t.push({
6197
6197
  id: n.id,
6198
6198
  state: "selected"
6199
6199
  });
@@ -6201,18 +6201,18 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6201
6201
  }, w = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), T = r(() => {
6202
6202
  let e = c.additionalCounter ?? 0;
6203
6203
  if (c.enableCascadeSelection && c.countSelectedParents && I.value?.length) return Ao(I.value) + e;
6204
- if (!c.countSelectedParents || !c.enableCascadeSelection) return ne.value.length + e;
6205
- let t = new Set(ne.value.map((e) => e.id));
6204
+ if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
6205
+ let t = new Set(W.value.map((e) => e.id));
6206
6206
  return ko(c.options, t) + e;
6207
- }), E = r(() => ne.value.length > 0 ? !0 : c.enableCascadeSelection && I.value?.length ? I.value.some((e) => e.state === "selected") : !1), D = (e) => {
6207
+ }), E = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && I.value?.length ? I.value.some((e) => e.state === "selected") : !1), D = (e) => {
6208
6208
  h("see-more", e ?? {});
6209
- }, O = W("searchInputRef"), [j, P] = he(c.defaultOpen), F = U(e, "modelValue"), I = U(e, "selectionState"), z = U(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), ee = (e) => {
6210
- ne.value = e, B.value || (F.value = e, I.value = C());
6209
+ }, O = G("searchInputRef"), [j, P] = he(c.defaultOpen), F = U(e, "modelValue"), I = U(e, "selectionState"), z = U(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), ee = (e) => {
6210
+ W.value = e, B.value || (F.value = e, I.value = C());
6211
6211
  }, H = () => {
6212
- B.value && (F.value = ne.value, I.value = C());
6212
+ B.value && (F.value = W.value, I.value = C());
6213
6213
  }, te = () => {
6214
- B.value && (ne.value = F.value);
6215
- }, ne = L(F.value), re = (e) => d.value.get(e), ie = (e) => {
6214
+ B.value && (W.value = F.value);
6215
+ }, W = L(F.value), ne = (e) => d.value.get(e), re = (e) => {
6216
6216
  if (!c.enableCascadeSelection || !e) return;
6217
6217
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
6218
6218
  i.has(t) || (i.add(t), r.push(e ?? {
@@ -6228,56 +6228,56 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6228
6228
  for (let t of i) e.has(t.id) || a(t, t.id);
6229
6229
  continue;
6230
6230
  }
6231
- a(re(r.id), r.id);
6231
+ a(ne(r.id), r.id);
6232
6232
  }
6233
- f.value = t, p.value = n, ne.value = r;
6234
- }, ae = r({
6235
- get: () => ne.value,
6233
+ f.value = t, p.value = n, W.value = r;
6234
+ }, ie = r({
6235
+ get: () => W.value,
6236
6236
  set: (e) => {
6237
6237
  ee(e);
6238
6238
  }
6239
- }), oe = () => {
6239
+ }), ae = () => {
6240
6240
  z.value = "", j.value = !1;
6241
- }, se = r(() => {
6241
+ }, oe = r(() => {
6242
6242
  let e = c.size === "lg" ? 24 : 30;
6243
6243
  return c.overlayTrigger ? -e : void 0;
6244
6244
  });
6245
- G(() => F.value, (e) => {
6245
+ K(() => F.value, (e) => {
6246
6246
  if (c.enableCascadeSelection && I.value?.length && e.length === 0) {
6247
- ie(I.value);
6247
+ re(I.value);
6248
6248
  return;
6249
6249
  }
6250
- ne.value = e;
6251
- }), G(() => [I.value, c.options], () => {
6252
- ie(I.value);
6250
+ W.value = e;
6251
+ }), K(() => [I.value, c.options], () => {
6252
+ re(I.value);
6253
6253
  }, {
6254
6254
  deep: !0,
6255
6255
  immediate: !0
6256
- }), G(j, (e) => {
6256
+ }), K(j, (e) => {
6257
6257
  e ? (te(), y(() => {
6258
6258
  c.overlayTrigger && !c.disableSearchInput && O.value?.input?.focus(), h("dropdown-open");
6259
6259
  })) : (te(), h("dropdown-closed"));
6260
6260
  });
6261
- let ce = r(() => {
6261
+ let se = r(() => {
6262
6262
  if (z.value === "") return c.options;
6263
6263
  let e = z.value.toLocaleLowerCase();
6264
6264
  return c.enableCascadeSelection ? jo(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
6265
- }), q = () => {
6265
+ }), J = () => {
6266
6266
  if (c.enableCascadeSelection) {
6267
6267
  let e = /* @__PURE__ */ new Set(), t = (n) => {
6268
6268
  for (let r of n) Eo(r) && (e.add(r.id), r.children?.length && t(r.children));
6269
6269
  };
6270
- t(ce.value), f.value = e, p.value = /* @__PURE__ */ new Map();
6270
+ t(se.value), f.value = e, p.value = /* @__PURE__ */ new Map();
6271
6271
  }
6272
- let e = c.enableCascadeSelection ? Do(ce.value) : ce.value;
6272
+ let e = c.enableCascadeSelection ? Do(se.value) : se.value;
6273
6273
  h("select-all", e.length), ee(e);
6274
+ }, ce = () => {
6275
+ h("clear-all", W.value.length), f.value = /* @__PURE__ */ new Set(), p.value = /* @__PURE__ */ new Map(), ee([]);
6276
+ }, Y = () => {
6277
+ te(), ae();
6274
6278
  }, le = () => {
6275
- h("clear-all", ne.value.length), f.value = /* @__PURE__ */ new Set(), p.value = /* @__PURE__ */ new Map(), ee([]);
6276
- }, J = () => {
6277
- te(), oe();
6278
- }, ue = () => {
6279
- H(), oe();
6280
- }, Y = r(() => {
6279
+ H(), ae();
6280
+ }, de = r(() => {
6281
6281
  if (!c.groupings) return;
6282
6282
  let e = /* @__PURE__ */ new Map();
6283
6283
  c.groupings.forEach((t) => {
@@ -6289,25 +6289,25 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6289
6289
  }
6290
6290
  for (let [t, n] of e) n.length === 0 && e.delete(t);
6291
6291
  return Array.from(e.entries());
6292
- }), fe = r(() => c.groupings && z.value === ""), X = r(() => ({
6292
+ }), X = r(() => c.groupings && z.value === ""), fe = r(() => ({
6293
6293
  ...c,
6294
6294
  selectedItems: F.value,
6295
6295
  searchInput: z.value,
6296
6296
  slotContext: c.slotContext,
6297
6297
  isOpen: j.value,
6298
6298
  isLoading: c.isLoading,
6299
- filteredOptionCount: ce.value.length
6300
- })), Z = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), pe = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), me = W("popoverContentRef"), ge = r(() => {
6299
+ filteredOptionCount: se.value.length
6300
+ })), Z = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), pe = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), me = G("popoverContentRef"), ge = r(() => {
6301
6301
  let e = me.value?.getRootNode();
6302
6302
  return e instanceof ShadowRoot ? e.host : null;
6303
6303
  }), { present: _e } = ir("header", { host: ge }), { present: ve } = ir("no-results", { host: ge }), { present: ye } = ir("footer", { host: ge });
6304
- return de("Escape", () => {
6305
- j.value && oe();
6304
+ return ue("Escape", () => {
6305
+ j.value && ae();
6306
6306
  }), (n, r) => (k(), i(ur, v({
6307
6307
  modelValue: V(j),
6308
6308
  "onUpdate:modelValue": r[4] ||= (e) => g(j) ? j.value = e : null
6309
- }, e.popoverProperties, { offset: se.value }), {
6310
- trigger: K(() => [u(xo, {
6309
+ }, e.popoverProperties, { offset: oe.value }), {
6310
+ trigger: q(() => [u(xo, {
6311
6311
  ref: "select-button-trigger-ref",
6312
6312
  variant: e.variant,
6313
6313
  size: e.size,
@@ -6322,9 +6322,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6322
6322
  open: V(j),
6323
6323
  "counter-value": T.value,
6324
6324
  "counter-style": e.counterStyle,
6325
- "selected-items": ne.value,
6325
+ "selected-items": W.value,
6326
6326
  "data-dd-action-name": Z.value,
6327
- onHandleClear: le,
6327
+ onHandleClear: ce,
6328
6328
  onHandleToggleDropdown: r[0] ||= (e) => V(P)()
6329
6329
  }, null, 8, [
6330
6330
  "variant",
@@ -6343,7 +6343,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6343
6343
  "selected-items",
6344
6344
  "data-dd-action-name"
6345
6345
  ])]),
6346
- content: K(() => [s("div", {
6346
+ content: q(() => [s("div", {
6347
6347
  ref_key: "popoverContentRef",
6348
6348
  ref: me,
6349
6349
  class: "pv-popover",
@@ -6364,12 +6364,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6364
6364
  class: "pv-stack-4",
6365
6365
  placeholder: e.searchPlaceholder
6366
6366
  }, null, 8, ["model-value", "placeholder"])], 8, hs)),
6367
- n.$slots.header || V(_e) ? (k(), o("div", gs, [N(n.$slots, "header", x(m(X.value)))])) : a("", !0),
6368
- ce.value.length > 0 ? (k(), o(t, { key: 2 }, [fe.value ? (k(!0), o(t, { key: 0 }, M(Y.value, ([t, i], s) => (k(), o("div", { key: t }, [
6367
+ n.$slots.header || V(_e) ? (k(), o("div", gs, [N(n.$slots, "header", x(m(fe.value)))])) : a("", !0),
6368
+ se.value.length > 0 ? (k(), o(t, { key: 2 }, [X.value ? (k(!0), o(t, { key: 0 }, M(de.value, ([t, i], s) => (k(), o("div", { key: t }, [
6369
6369
  n.$slots[t] ? N(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (k(), o("span", _s, R(t), 1)),
6370
6370
  u(ms, {
6371
- selectedItems: ae.value,
6372
- "onUpdate:selectedItems": r[2] ||= (e) => ae.value = e,
6371
+ selectedItems: ie.value,
6372
+ "onUpdate:selectedItems": r[2] ||= (e) => ie.value = e,
6373
6373
  options: i,
6374
6374
  config: l.value,
6375
6375
  singleSelect: e.singleSelect,
@@ -6379,7 +6379,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6379
6379
  isLoading: e.isLoading,
6380
6380
  isSeeMoreLoading: e.isSeeMoreLoading,
6381
6381
  enableCascadeSelection: e.enableCascadeSelection,
6382
- hasMoreOptions: s === Y.value.length - 1 && w.value && !e.isLoading,
6382
+ hasMoreOptions: s === de.value.length - 1 && w.value && !e.isLoading,
6383
6383
  onSeeMore: D
6384
6384
  }, null, 8, [
6385
6385
  "selectedItems",
@@ -6393,12 +6393,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6393
6393
  "enableCascadeSelection",
6394
6394
  "hasMoreOptions"
6395
6395
  ]),
6396
- Y.value && s !== Y.value.length - 1 ? (k(), o("div", vs)) : a("", !0)
6396
+ de.value && s !== de.value.length - 1 ? (k(), o("div", vs)) : a("", !0)
6397
6397
  ]))), 128)) : (k(), i(ms, {
6398
6398
  key: 1,
6399
- selectedItems: ae.value,
6400
- "onUpdate:selectedItems": r[3] ||= (e) => ae.value = e,
6401
- options: ce.value,
6399
+ selectedItems: ie.value,
6400
+ "onUpdate:selectedItems": r[3] ||= (e) => ie.value = e,
6401
+ options: se.value,
6402
6402
  config: l.value,
6403
6403
  singleSelect: e.singleSelect,
6404
6404
  queryText: e.highlightSearchText ? z.value : null,
@@ -6419,7 +6419,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6419
6419
  "isSeeMoreLoading",
6420
6420
  "hasMoreOptions"
6421
6421
  ]))], 64)) : a("", !0),
6422
- e.isLoading ? (k(), o("div", ys, [u(Be, { variant: "dark" }), e.loadingText ? (k(), o("span", bs, R(e.loadingText), 1)) : a("", !0)])) : ce.value.length === 0 ? (k(), o(t, { key: 4 }, [V(ve) ? N(n.$slots, "no-results", x(v({ key: 0 }, X.value))) : (k(), i(To, { key: 1 }))], 64)) : a("", !0),
6422
+ e.isLoading ? (k(), o("div", ys, [u(Be, { variant: "dark" }), e.loadingText ? (k(), o("span", bs, R(e.loadingText), 1)) : a("", !0)])) : se.value.length === 0 ? (k(), o(t, { key: 4 }, [V(ve) ? N(n.$slots, "no-results", x(v({ key: 0 }, fe.value))) : (k(), i(To, { key: 1 }))], 64)) : a("", !0),
6423
6423
  V(ye) || e.menuActionsVariant ? (k(), o("div", {
6424
6424
  key: 5,
6425
6425
  class: b(["pv-sticky pv-surface pv-border-top pv-inset-square-8", { "pv-flow-8": e.footerPosition === "below-actions" }]),
@@ -6428,22 +6428,22 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6428
6428
  "--bottom": "0"
6429
6429
  }
6430
6430
  }, [
6431
- V(ye) && e.footerPosition === "above-actions" ? N(n.$slots, "footer", x(v({ key: 0 }, X.value))) : a("", !0),
6431
+ V(ye) && e.footerPosition === "above-actions" ? N(n.$slots, "footer", x(v({ key: 0 }, fe.value))) : a("", !0),
6432
6432
  e.menuActionsVariant ? (k(), i(po, {
6433
6433
  key: 1,
6434
6434
  variant: e.menuActionsVariant,
6435
6435
  disabled: e.isLoading,
6436
6436
  rumFilterName: e.rumFilterName,
6437
- onHandleClearAll: le,
6438
- onHandleSelectAll: q,
6439
- onHandleCancel: J,
6440
- onHandleConfirm: ue
6437
+ onHandleClearAll: ce,
6438
+ onHandleSelectAll: J,
6439
+ onHandleCancel: Y,
6440
+ onHandleConfirm: le
6441
6441
  }, null, 8, [
6442
6442
  "variant",
6443
6443
  "disabled",
6444
6444
  "rumFilterName"
6445
6445
  ])) : a("", !0),
6446
- V(ye) && e.footerPosition === "below-actions" ? N(n.$slots, "footer", x(v({ key: 2 }, X.value))) : a("", !0)
6446
+ V(ye) && e.footerPosition === "below-actions" ? N(n.$slots, "footer", x(v({ key: 2 }, fe.value))) : a("", !0)
6447
6447
  ], 2)) : a("", !0)
6448
6448
  ], 4)]),
6449
6449
  _: 3
@@ -6513,7 +6513,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6513
6513
  counterBadgeVariant: n.counterBadgeVariant,
6514
6514
  size: n.size
6515
6515
  })), d = t, [f] = he(n.defaultOpen), p = U(e, "modelValue"), m = U(e, "searchInput");
6516
- G(f, (e) => {
6516
+ K(f, (e) => {
6517
6517
  d(e ? "dropdown-open" : "dropdown-closed");
6518
6518
  });
6519
6519
  let h = r(() => !n.staticLabel && p.value && p.value.text ? p.value.text : n.label), _ = r(() => p.value?.icon || n.icon), y = r(() => {
@@ -6546,13 +6546,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6546
6546
  }, E = () => {
6547
6547
  f.value = !1, m.value = "";
6548
6548
  };
6549
- return de("Escape", () => {
6549
+ return ue("Escape", () => {
6550
6550
  f.value && E();
6551
6551
  }), (t, n) => (k(), i(ur, v({
6552
6552
  modelValue: V(f),
6553
6553
  "onUpdate:modelValue": n[2] ||= (e) => g(f) ? f.value = e : null
6554
6554
  }, c.value), {
6555
- trigger: K(() => [u(xo, {
6555
+ trigger: q(() => [u(xo, {
6556
6556
  class: "pv-full-width",
6557
6557
  ref: "select-button-trigger-ref",
6558
6558
  variant: e.variant,
@@ -6596,7 +6596,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6596
6596
  "renderer",
6597
6597
  "selectedOption"
6598
6598
  ])]),
6599
- content: K(() => [s("div", {
6599
+ content: q(() => [s("div", {
6600
6600
  class: "pv-popover pv-popover-scrollable",
6601
6601
  "data-test-id": "pv-popover",
6602
6602
  style: S([e.popoverCssProperties, { position: "unset" }])
@@ -6681,7 +6681,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6681
6681
  p,
6682
6682
  ...n.options.filter((t) => !e.has(t.id))
6683
6683
  ];
6684
- }), _ = W("sortableListRef"), v = W("containerRef"), y = null, x = null, C = !1, w = () => {
6684
+ }), _ = G("sortableListRef"), v = G("containerRef"), y = null, x = null, C = !1, w = () => {
6685
6685
  if (!_.value) return c.value;
6686
6686
  let e = Array.from(_.value.children).map((e) => e.id), t = e.findIndex((e) => e === Ns);
6687
6687
  return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(Ps)), e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
@@ -6788,11 +6788,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
6788
6788
  useTeleport: !0,
6789
6789
  disableInteractive: !0
6790
6790
  }, {
6791
- trigger: K(() => [u(Q, {
6791
+ trigger: q(() => [u(Q, {
6792
6792
  class: "pv-text-tertiary",
6793
6793
  name: "info-circle"
6794
6794
  })]),
6795
- content: K(() => [s("div", js, R(d(e)), 1)]),
6795
+ content: q(() => [s("div", js, R(d(e)), 1)]),
6796
6796
  _: 2
6797
6797
  }, 1024)) : a("", !0)
6798
6798
  ], 2), !F(e) && !l(e) ? (k(), i($, {
@@ -7109,7 +7109,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7109
7109
  },
7110
7110
  emits: ["ask-tq-click"],
7111
7111
  setup(e, { emit: t }) {
7112
- let n = W("rootRef"), { present: c } = ir("right", { host: r(() => {
7112
+ let n = G("rootRef"), { present: c } = ir("right", { host: r(() => {
7113
7113
  let e = n.value?.getRootNode();
7114
7114
  return e instanceof ShadowRoot ? e.host : null;
7115
7115
  }) }), l = t;
@@ -7122,7 +7122,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7122
7122
  "background-color": "#fdfdfc"
7123
7123
  }
7124
7124
  }, {
7125
- default: K(() => [e.title ? (k(), o("span", nc, R(e.title), 1)) : (k(), o("div", {
7125
+ default: q(() => [e.title ? (k(), o("span", nc, R(e.title), 1)) : (k(), o("div", {
7126
7126
  key: 1,
7127
7127
  id: e.headerTitleId,
7128
7128
  class: "pv-flex",
@@ -7241,7 +7241,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7241
7241
  key: t.value,
7242
7242
  description: e.hideLabels ? t.label : ""
7243
7243
  }, {
7244
- trigger: K(() => [s("label", { class: b(["pv-label pv-label-hover pv-flex pv-toggle-small", { "pv-disabled": e.disabled || t.disabled }]) }, [
7244
+ trigger: q(() => [s("label", { class: b(["pv-label pv-label-hover pv-flex pv-toggle-small", { "pv-disabled": e.disabled || t.disabled }]) }, [
7245
7245
  s("input", {
7246
7246
  type: "radio",
7247
7247
  name: c.value,
@@ -7277,7 +7277,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7277
7277
  emits: ["update:modelValue"],
7278
7278
  setup(e) {
7279
7279
  let t = U(e, "modelValue");
7280
- return (n, r) => q((k(), o("input", {
7280
+ return (n, r) => J((k(), o("input", {
7281
7281
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
7282
7282
  class: "pv-checkbox",
7283
7283
  type: "checkbox",
@@ -7285,7 +7285,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7285
7285
  "aria-label": e.ariaLabel,
7286
7286
  disabled: e.disabled,
7287
7287
  indeterminate: e.indeterminate
7288
- }, null, 8, gc)), [[re, t.value]]);
7288
+ }, null, 8, gc)), [[ne, t.value]]);
7289
7289
  }
7290
7290
  }), vc = ["aria-label", "aria-labelledby"], yc = ["id"], bc = [
7291
7291
  "name",
@@ -7328,14 +7328,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7328
7328
  }, [(k(!0), o(t, null, M(e.options, (t) => (k(), o("label", {
7329
7329
  key: String(t.value),
7330
7330
  class: "pv-label pv-flex"
7331
- }, [q(s("input", {
7331
+ }, [J(s("input", {
7332
7332
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
7333
7333
  class: "pv-radio",
7334
7334
  type: "radio",
7335
7335
  name: d.value,
7336
7336
  value: t.value,
7337
7337
  disabled: e.disabled || t.disabled
7338
- }, null, 8, bc), [[ae, i.value]]), l(" " + R(t.label), 1)]))), 128))], 6)], 8, vc));
7338
+ }, null, 8, bc), [[ie, i.value]]), l(" " + R(t.label), 1)]))), 128))], 6)], 8, vc));
7339
7339
  }
7340
7340
  }), Sc = /* @__PURE__ */ d({
7341
7341
  __name: "PvSprite",
@@ -7428,7 +7428,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7428
7428
  key: 0,
7429
7429
  class: "pv-absolute input-icon-position",
7430
7430
  name: e.inputIcon
7431
- }, null, 8, ["name"])) : a("", !0), q(s("input", v(n.$attrs, {
7431
+ }, null, 8, ["name"])) : a("", !0), J(s("input", v(n.$attrs, {
7432
7432
  "onUpdate:modelValue": r[0] ||= (e) => c.value = e,
7433
7433
  "data-testid": "pv-input",
7434
7434
  class: ["pv-input-text", {
@@ -7442,7 +7442,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7442
7442
  id: e.id,
7443
7443
  "data-invalid": e.error ? !0 : void 0,
7444
7444
  step: e.step
7445
- }), null, 16, Dc), [[ie, c.value]])])], 2),
7445
+ }), null, 16, Dc), [[re, c.value]])])], 2),
7446
7446
  e.lowerLabel ? (k(), o("p", {
7447
7447
  key: 1,
7448
7448
  "data-testid": "pv-input-lower-label",
@@ -7593,7 +7593,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7593
7593
  style: S(c.value ? { "--flex-align": "flex-start" } : void 0),
7594
7594
  "data-testid": "pv-card"
7595
7595
  }, {
7596
- default: K(() => [c.value ? (k(), o(t, { key: 0 }, [
7596
+ default: q(() => [c.value ? (k(), o(t, { key: 0 }, [
7597
7597
  e.headerAction ? (k(), o("div", Rc, [s("div", zc, [N(n.$slots, "header")]), s("div", Bc, [N(n.$slots, "header-action")])])) : a("", !0),
7598
7598
  e.descriptionAction ? (k(), o("div", Vc, [s("div", Hc, [N(n.$slots, "description")]), s("div", Uc, [N(n.$slots, "description-action")])])) : a("", !0),
7599
7599
  e.footerAction ? (k(), o("div", Wc, [s("div", Gc, [N(n.$slots, "footer")]), s("div", Kc, [N(n.$slots, "footer-action")])])) : a("", !0)
@@ -7610,7 +7610,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7610
7610
  __name: "PvWidget",
7611
7611
  setup(e) {
7612
7612
  return (e, t) => (k(), i(qc, { class: "pv-inset-square-16" }, {
7613
- default: K(() => [N(e.$slots, "default")]),
7613
+ default: q(() => [N(e.$slots, "default")]),
7614
7614
  _: 3
7615
7615
  }));
7616
7616
  }
@@ -7659,7 +7659,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7659
7659
  onClick: r[1] ||= (e) => t.$emit("click"),
7660
7660
  class: "pv-relative"
7661
7661
  }, {
7662
- default: K(() => [s("div", Yc, [
7662
+ default: q(() => [s("div", Yc, [
7663
7663
  n.value ? (k(), o("div", Xc, [e.icon ? (k(), i(Q, {
7664
7664
  key: 0,
7665
7665
  style: { color: "#218c88" },
@@ -7676,7 +7676,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7676
7676
  variant: "ghost",
7677
7677
  size: "md",
7678
7678
  class: "pv-insight-button",
7679
- onClick: r[0] ||= J((e) => t.$emit("icon-click"), ["stop"])
7679
+ onClick: r[0] ||= Y((e) => t.$emit("icon-click"), ["stop"])
7680
7680
  })) : a("", !0)]),
7681
7681
  _: 1
7682
7682
  }, 8, ["interactive"]));
@@ -7709,7 +7709,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7709
7709
  };
7710
7710
  T(() => {
7711
7711
  f(), document.fonts?.ready.then(f);
7712
- }), G(() => n.lines, f), me(c, f), pe(c, f, {
7712
+ }), K(() => n.lines, f), me(c, f), pe(c, f, {
7713
7713
  characterData: !0,
7714
7714
  childList: !0,
7715
7715
  subtree: !0
@@ -7812,7 +7812,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
7812
7812
  onMousedown: o,
7813
7813
  onClick: s
7814
7814
  }, {
7815
- default: K(() => [N(t.$slots, "default")]),
7815
+ default: q(() => [N(t.$slots, "default")]),
7816
7816
  _: 3
7817
7817
  }, 40, ["class", "data-pv-tree-select-id"]));
7818
7818
  }
@@ -8009,7 +8009,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8009
8009
  active: I.value,
8010
8010
  level: e.level
8011
8011
  }, {
8012
- default: K(() => [(k(), i(F(j.value), {
8012
+ default: q(() => [(k(), i(F(j.value), {
8013
8013
  class: b({ ...V(p)(e.option) }),
8014
8014
  option: e.option,
8015
8015
  selected: A(e.option.node_id),
@@ -8023,9 +8023,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8023
8023
  onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
8024
8024
  onMouseenter: n[1] ||= (t) => V(h)(e.option.node_id),
8025
8025
  onMouseleave: n[2] ||= (e) => V(g)(),
8026
- onContextmenu: n[3] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8026
+ onContextmenu: n[3] ||= Y((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8027
8027
  }, {
8028
- default: K(() => [q(u(cl, null, null, 512), [[se, V(m) === e.option.node_id && V(_)(e.isDraggable, e.settings, e.option)]]), s("div", Cl, [M.value ? (k(), i(fl, {
8028
+ default: q(() => [J(u(cl, null, null, 512), [[oe, V(m) === e.option.node_id && V(_)(e.isDraggable, e.settings, e.option)]]), s("div", Cl, [M.value ? (k(), i(fl, {
8029
8029
  key: 0,
8030
8030
  "is-last": N.value
8031
8031
  }, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (k(), i(F(e.settings[e.option.field]?.renderer), {
@@ -8066,7 +8066,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8066
8066
  onEnd: V(f),
8067
8067
  onAdd: V(f)
8068
8068
  }, {
8069
- item: K(({ element: i, index: a }) => [u(r, {
8069
+ item: q(({ element: i, index: a }) => [u(r, {
8070
8070
  "is-parent-path-open": e.isParentPathOpen,
8071
8071
  option: i,
8072
8072
  settings: e.settings,
@@ -8144,7 +8144,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8144
8144
  active: z.value,
8145
8145
  level: e.level
8146
8146
  }, {
8147
- default: K(() => [(k(), i(F(P(e.option)), {
8147
+ default: q(() => [(k(), i(F(P(e.option)), {
8148
8148
  option: e.option,
8149
8149
  selected: N(e.option.node_id),
8150
8150
  "disable-selection": e.disableSelection,
@@ -8158,10 +8158,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8158
8158
  onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
8159
8159
  onMouseenter: n[1] ||= (t) => V(l)(e.option.node_id),
8160
8160
  onMouseleave: n[2] ||= (e) => V(d)(),
8161
- onContextmenu: n[3] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8161
+ onContextmenu: n[3] ||= Y((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8162
8162
  }, {
8163
- default: K(() => [
8164
- q(u(cl, null, null, 512), [[se, V(c) === e.option.node_id && V(p)(e.isDraggable, e.settings, e.option)]]),
8163
+ default: q(() => [
8164
+ J(u(cl, null, null, 512), [[oe, V(c) === e.option.node_id && V(p)(e.isDraggable, e.settings, e.option)]]),
8165
8165
  j.value ? (k(), i(fl, {
8166
8166
  key: 0,
8167
8167
  "is-last": R.value
@@ -8205,7 +8205,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8205
8205
  onEnd: V(x),
8206
8206
  onAdd: V(x)
8207
8207
  }, {
8208
- item: K(({ element: r, index: i }) => [u(Tl, {
8208
+ item: q(({ element: r, index: i }) => [u(Tl, {
8209
8209
  "is-parent-path-open": e.isParentPathOpen,
8210
8210
  option: r,
8211
8211
  settings: e.settings,
@@ -8270,13 +8270,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8270
8270
  emits: ["handle-tree-select", "update:children"],
8271
8271
  setup(e, { emit: t }) {
8272
8272
  let n = e, l = t, d = r(() => (n.openNodeIds ?? []).some((e) => String(e) === String(n.option.node_id))), f = j(n.treeOpen ?? (d.value || (n.settings[n.option.field]?.defaultExpanded ?? !1)));
8273
- G(() => n.treeOpen, (e) => {
8273
+ K(() => n.treeOpen, (e) => {
8274
8274
  e !== void 0 && (f.value = e);
8275
- }), G(d, (e) => {
8275
+ }), K(d, (e) => {
8276
8276
  e && (f.value = !0);
8277
8277
  });
8278
8278
  let p = j(f.value);
8279
- G(f, (e) => {
8279
+ K(f, (e) => {
8280
8280
  e && (p.value = !0);
8281
8281
  });
8282
8282
  let m = r(() => !n.settings[n.option.field]?.lazyChildren || p.value), { getDragGroupConfig: h, getDragAndDropDisabled: g, canItemBeDragged: _, handleMoveCallback: v, childrenDraggable: y, canAcceptDrop: x } = xl(), { hoveredId: C, handleMouseEnter: w, handleMouseLeave: T } = hl(), { isDragging: E, draggingGroupName: D, onDragStart: O, onDragEnd: A } = bl(), { dragAndDropIndicatorClasses: M } = Sl(), { indentPadding: N, showsConnector: I } = pl(), L = () => {
@@ -8292,14 +8292,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8292
8292
  newChildren: e
8293
8293
  });
8294
8294
  }
8295
- }), te = r(() => n.option.children?.length ? void 0 : n.settings[n.option.field]?.emptyAccordionText), U = r(() => !!(n.settings[n.option.field]?.accordion && (n.option.children?.length || te.value))), ne = r(() => I(n.settings, n.parentField)), W = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), re = r(() => n.level + (ne.value ? 2 : 1)), ie = r(() => ne.value && !W.value), ae = r(() => n.isParentPathOpen ?? !0 ? U.value && n.level === 0 ? f.value : !0 : !1);
8295
+ }), te = r(() => n.option.children?.length ? void 0 : n.settings[n.option.field]?.emptyAccordionText), U = r(() => !!(n.settings[n.option.field]?.accordion && (n.option.children?.length || te.value))), W = r(() => I(n.settings, n.parentField)), G = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), ne = r(() => n.level + (W.value ? 2 : 1)), re = r(() => W.value && !G.value), ie = r(() => n.isParentPathOpen ?? !0 ? U.value && n.level === 0 ? f.value : !0 : !1);
8296
8296
  return (t, n) => {
8297
8297
  let r = P("PvTreeItem", !0);
8298
8298
  return k(), i(ml, {
8299
- active: ie.value,
8299
+ active: re.value,
8300
8300
  level: e.level
8301
8301
  }, {
8302
- default: K(() => [U.value ? (k(), i(Ii, {
8302
+ default: q(() => [U.value ? (k(), i(Ii, {
8303
8303
  key: 0,
8304
8304
  modelValue: f.value,
8305
8305
  "onUpdate:modelValue": n[3] ||= (e) => f.value = e,
@@ -8313,7 +8313,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8313
8313
  enableTriggerFullWidth: "",
8314
8314
  summaryStyles: {
8315
8315
  ...z(e.level),
8316
- ...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ae.value }) ?? {},
8316
+ ...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ie.value }) ?? {},
8317
8317
  "justify-content": "flex-start"
8318
8318
  },
8319
8319
  summaryClasses: {
@@ -8326,9 +8326,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8326
8326
  onSummaryClick: n[4] ||= (t) => e.settings[e.option.field]?.rendererParams?.onSummaryClick?.(t, e.option),
8327
8327
  onSummaryMouseenter: n[5] ||= (t) => V(w)(e.option.node_id),
8328
8328
  onSummaryMouseleave: n[6] ||= (e) => V(T)(),
8329
- onContextmenu: n[7] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8329
+ onContextmenu: n[7] ||= Y((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8330
8330
  }, c({
8331
- trigger: K(() => [q(u(cl, null, null, 512), [[se, V(C) === e.option.node_id && V(_)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (k(), i(F(e.settings[e.option.field]?.renderer), {
8331
+ trigger: q(() => [J(u(cl, null, null, 512), [[oe, V(C) === e.option.node_id && V(_)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (k(), i(F(e.settings[e.option.field]?.renderer), {
8332
8332
  key: 0,
8333
8333
  option: e.option,
8334
8334
  settings: e.settings,
@@ -8344,10 +8344,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8344
8344
  label: e.option.label,
8345
8345
  icon: e.settings[e.option.field]?.icon
8346
8346
  }, null, 8, ["label", "icon"]))]),
8347
- default: K(() => [te.value ? (k(), o("div", {
8347
+ default: q(() => [te.value ? (k(), o("div", {
8348
8348
  key: 0,
8349
8349
  class: "pv-text-body-sm pv-text-subdued pv-tree-empty-accordion",
8350
- style: S(z(re.value))
8350
+ style: S(z(ne.value))
8351
8351
  }, R(te.value), 5)) : a("", !0), m.value ? (k(), o("div", {
8352
8352
  key: 1,
8353
8353
  "data-parent-id": e.option.node_id
@@ -8364,12 +8364,12 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8364
8364
  onEnd: V(A),
8365
8365
  onAdd: V(A)
8366
8366
  }, {
8367
- item: K(({ element: i, index: a }) => [u(r, {
8367
+ item: q(({ element: i, index: a }) => [u(r, {
8368
8368
  "is-parent-path-open": e.isParentPathOpen && f.value,
8369
8369
  "selected-options": e.selectedOptions,
8370
8370
  option: i,
8371
8371
  settings: e.settings,
8372
- level: re.value,
8372
+ level: ne.value,
8373
8373
  index: a,
8374
8374
  "total-siblings": H.value.length,
8375
8375
  "parent-field": e.option.field,
@@ -8405,9 +8405,9 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8405
8405
  "onAdd"
8406
8406
  ])], 8, Ol)) : a("", !0)]),
8407
8407
  _: 2
8408
- }, [ne.value ? {
8408
+ }, [W.value ? {
8409
8409
  name: "leading",
8410
- fn: K(() => [u(fl, { "is-last": W.value }, null, 8, ["is-last"])]),
8410
+ fn: q(() => [u(fl, { "is-last": G.value }, null, 8, ["is-last"])]),
8411
8411
  key: "0"
8412
8412
  } : void 0]), 1032, [
8413
8413
  "modelValue",
@@ -8452,18 +8452,18 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8452
8452
  icon: e.settings[e.option.field]?.icon,
8453
8453
  style: S({
8454
8454
  ...z(e.level),
8455
- ...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ae.value }) ?? {}
8455
+ ...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ie.value }) ?? {}
8456
8456
  }),
8457
8457
  onHandleSelected: n[10] ||= (e) => t.$emit("handle-tree-select", e),
8458
8458
  onMouseenter: n[11] ||= (t) => V(w)(e.option.node_id),
8459
8459
  onMouseleave: n[12] ||= (e) => V(T)(),
8460
- onContextmenu: n[13] ||= J((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8460
+ onContextmenu: n[13] ||= Y((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
8461
8461
  }, {
8462
- default: K(() => [
8463
- q(u(cl, null, null, 512), [[se, V(C) === e.option.node_id && V(_)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
8464
- ne.value ? (k(), i(fl, {
8462
+ default: q(() => [
8463
+ J(u(cl, null, null, 512), [[oe, V(C) === e.option.node_id && V(_)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
8464
+ W.value ? (k(), i(fl, {
8465
8465
  key: 0,
8466
- "is-last": W.value
8466
+ "is-last": G.value
8467
8467
  }, null, 8, ["is-last"])) : a("", !0),
8468
8468
  e.settings[e.option.field]?.renderer ? (k(), i(F(e.settings[e.option.field]?.renderer), {
8469
8469
  key: 1,
@@ -8502,7 +8502,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8502
8502
  onEnd: V(A),
8503
8503
  onAdd: V(A)
8504
8504
  }, {
8505
- item: K(({ element: i, index: a }) => [u(r, {
8505
+ item: q(({ element: i, index: a }) => [u(r, {
8506
8506
  "is-parent-path-open": e.isParentPathOpen,
8507
8507
  "selected-options": e.selectedOptions,
8508
8508
  option: i,
@@ -8858,7 +8858,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
8858
8858
  right: 40,
8859
8859
  top: 44,
8860
8860
  bottom: 36
8861
- }, c = W("container"), { width: l } = Z(c), u = r(() => l.value || xu), d = r(() => {
8861
+ }, c = G("container"), { width: l } = Z(c), u = r(() => l.value || xu), d = r(() => {
8862
8862
  let e = n.stats;
8863
8863
  if (!e) return null;
8864
8864
  let t = u.value - i.left - i.right, r = n.height - i.top - i.bottom, a = Math.max(e.p90, ...n.markers.map((e) => e.value), n.highlight ?? 0), o = n.xMax && n.xMax > 0 ? n.xMax : Ul(a * 1.05), s = (e) => i.left + Math.min(Math.max(e, 0), o) / o * t, c = i.top + r / 2, l = Math.min(wu, Math.max(r - Tu, Eu));
@@ -9188,19 +9188,19 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9188
9188
  })), N = (e) => M.value.format(e), P = (e) => N(e), F = (e) => {
9189
9189
  let n = N(e);
9190
9190
  return t.dataType === "currency" ? `$${n}` : t.dataType === "percent" ? `${n}%` : n;
9191
- }, I = r(() => t.scale === "log"), L = r(() => E(t.step)), z = r(() => E(t.sliderStep)), B = r(() => L.value !== null && L.value > 0 ? L.value : 0), H = r(() => z.value !== null && z.value > 0 ? Math.max(z.value, B.value) : B.value), ne = r(() => B.value > 0 ? String(B.value) : "any"), W = r(() => I.value ? "1" : H.value > 0 ? String(H.value) : "any"), re = r(() => L.value === null ? 1 : L.value > 0 ? L.value : 0), ie = r(() => z.value !== null && z.value > 0 ? Math.max(z.value, re.value) : re.value), ae = r(() => I.value ? "1" : ie.value > 0 ? String(ie.value) : "any"), oe = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), se = (e) => e.min > 0 ? 0 : 1 - e.min, ce = (e, t) => {
9191
+ }, I = r(() => t.scale === "log"), L = r(() => E(t.step)), z = r(() => E(t.sliderStep)), B = r(() => L.value !== null && L.value > 0 ? L.value : 0), H = r(() => z.value !== null && z.value > 0 ? Math.max(z.value, B.value) : B.value), W = r(() => B.value > 0 ? String(B.value) : "any"), G = r(() => I.value ? "1" : H.value > 0 ? String(H.value) : "any"), ne = r(() => L.value === null ? 1 : L.value > 0 ? L.value : 0), re = r(() => z.value !== null && z.value > 0 ? Math.max(z.value, ne.value) : ne.value), ie = r(() => I.value ? "1" : re.value > 0 ? String(re.value) : "any"), ae = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), oe = (e) => e.min > 0 ? 0 : 1 - e.min, se = (e, t) => {
9192
9192
  if (t.max === t.min) return 0;
9193
9193
  if (!I.value) return (e - t.min) / (t.max - t.min);
9194
- let n = se(t), r = Math.log(t.min + n), i = Math.log(t.max + n);
9194
+ let n = oe(t), r = Math.log(t.min + n), i = Math.log(t.max + n);
9195
9195
  if (i === r) return 0;
9196
9196
  let a = Math.max(t.min, Math.min(t.max, e));
9197
9197
  return (Math.log(a + n) - r) / (i - r);
9198
- }, K = (e, t) => {
9198
+ }, q = (e, t) => {
9199
9199
  let n = Math.max(0, Math.min(1, e));
9200
9200
  if (!I.value) return t.min + n * (t.max - t.min);
9201
- let r = se(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
9201
+ let r = oe(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
9202
9202
  return Math.exp(i + n * (a - i)) - r;
9203
- }, q = (e, t) => Math.max(0, Math.min(100, ce(e, t) * 100)), J = r(() => {
9203
+ }, J = (e, t) => Math.max(0, Math.min(100, se(e, t) * 100)), Y = r(() => {
9204
9204
  let e = E(t.min) ?? zu, n = E(t.max) ?? Bu;
9205
9205
  return e > n ? {
9206
9206
  max: e,
@@ -9212,10 +9212,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9212
9212
  max: n,
9213
9213
  min: e
9214
9214
  };
9215
- }), ue = r(() => E(n.value) ?? J.value.min), de = r(() => q(ue.value, J.value)), Y = r(() => ({
9216
- "--range-track-color": oe.value,
9217
- "--value": `${de.value}%`
9218
- })), fe = r(() => ({ left: `${de.value}%` })), X = (e) => {
9215
+ }), le = r(() => E(n.value) ?? Y.value.min), ue = r(() => J(le.value, Y.value)), de = r(() => ({
9216
+ "--range-track-color": ae.value,
9217
+ "--value": `${ue.value}%`
9218
+ })), X = r(() => ({ left: `${ue.value}%` })), fe = (e) => {
9219
9219
  if (!Number.isFinite(e)) return 0;
9220
9220
  let t = String(e).toLowerCase();
9221
9221
  if (t.includes("e-")) {
@@ -9230,8 +9230,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9230
9230
  min: a
9231
9231
  };
9232
9232
  }), pe = (e) => Math.max(Z.value.min, Math.min(Z.value.max, e)), me = r(() => {
9233
- let e = Math.max(X(Z.value.min), X(Z.value.max));
9234
- return B.value <= 0 ? Math.max(6, e) : Math.max(e, X(B.value));
9233
+ let e = Math.max(fe(Z.value.min), fe(Z.value.max));
9234
+ return B.value <= 0 ? Math.max(6, e) : Math.max(e, fe(B.value));
9235
9235
  }), he = (e) => {
9236
9236
  let t = Math.min(20, me.value);
9237
9237
  return pe(Number(e.toFixed(t)));
@@ -9261,11 +9261,11 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9261
9261
  max: Math.max(n, r),
9262
9262
  min: Math.min(n, r)
9263
9263
  };
9264
- }), Ee = r(() => q(Te.value.min, Z.value)), De = r(() => q(Te.value.max, Z.value)), Oe = r(() => ({
9265
- "--range-track-color": oe.value,
9264
+ }), Ee = r(() => J(Te.value.min, Z.value)), De = r(() => J(Te.value.max, Z.value)), Oe = r(() => ({
9265
+ "--range-track-color": ae.value,
9266
9266
  "--value-max": `${De.value}%`,
9267
9267
  "--value-min": `${Ee.value}%`
9268
- })), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => I.value ? Math.round(ce(e, t) * Vu) : e, Ne = (e, t) => I.value ? K(e / Vu, t) : e, Pe = r(() => I.value ? 0 : Z.value.min), Fe = r(() => I.value ? Vu : Z.value.max), Ie = r(() => Me(Te.value.min, Z.value)), Le = r(() => Me(Te.value.max, Z.value)), Re = r(() => I.value ? 0 : J.value.min), ze = r(() => I.value ? Vu : J.value.max), Be = r(() => Me(ue.value, J.value)), Ve = r(() => Math.max(P(Z.value.min).length, P(Z.value.max).length, 3)), He = r(() => {
9268
+ })), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => I.value ? Math.round(se(e, t) * Vu) : e, Ne = (e, t) => I.value ? q(e / Vu, t) : e, Pe = r(() => I.value ? 0 : Z.value.min), Fe = r(() => I.value ? Vu : Z.value.max), Ie = r(() => Me(Te.value.min, Z.value)), Le = r(() => Me(Te.value.max, Z.value)), Re = r(() => I.value ? 0 : Y.value.min), ze = r(() => I.value ? Vu : Y.value.max), Be = r(() => Me(le.value, Y.value)), Ve = r(() => Math.max(P(Z.value.min).length, P(Z.value.max).length, 3)), He = r(() => {
9269
9269
  let e = t.inputIcon ? "3.25rem" : "2rem";
9270
9270
  return {
9271
9271
  "--flex-align": "stretch",
@@ -9297,14 +9297,14 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9297
9297
  }, $e = () => {
9298
9298
  _.value = !1, Qe();
9299
9299
  }, et = (e, t) => {
9300
- let n = Math.max(J.value.min, Math.min(J.value.max, e));
9300
+ let n = Math.max(Y.value.min, Math.min(Y.value.max, e));
9301
9301
  if (t <= 0) return n;
9302
- let r = I.value ? 0 : J.value.min, i = (n - r) / t, a = Number((Math.round(i) * t + r).toFixed(20));
9303
- return Math.max(J.value.min, Math.min(J.value.max, a));
9304
- }, tt = (e) => et(e, _e(e, re.value)), nt = (e) => tt(et(e, _e(e, ie.value))), rt = () => {
9302
+ let r = I.value ? 0 : Y.value.min, i = (n - r) / t, a = Number((Math.round(i) * t + r).toFixed(20));
9303
+ return Math.max(Y.value.min, Math.min(Y.value.max, a));
9304
+ }, tt = (e) => et(e, _e(e, ne.value)), nt = (e) => tt(et(e, _e(e, re.value))), rt = () => {
9305
9305
  t.disabled || (_.value = !0, Qe(), window.addEventListener("pointerup", $e), w = () => window.removeEventListener("pointerup", $e));
9306
9306
  }, it = (e) => {
9307
- n.value = nt(Ne(Number(e.target.value), J.value));
9307
+ n.value = nt(Ne(Number(e.target.value), Y.value));
9308
9308
  }, at = (e) => {
9309
9309
  Xe("min"), Ke(xe(Ne(Number(e.target.value), Z.value)));
9310
9310
  }, ot = (e) => {
@@ -9319,7 +9319,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9319
9319
  let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
9320
9320
  if (!a && !o) return;
9321
9321
  e.preventDefault();
9322
- let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(K(ce(i, r) + s * Uu * c, r), a ? "up" : "down");
9322
+ let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(q(se(i, r) + s * Uu * c, r), a ? "up" : "down");
9323
9323
  l === i && (l = i + s * _e(i, H.value)), Xe(n), Je(n, l, !1);
9324
9324
  }, ct = () => {
9325
9325
  g.value !== "min" && (m.value = P(Te.value.min)), g.value !== "max" && (p.value = P(Te.value.max));
@@ -9338,7 +9338,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9338
9338
  e.preventDefault(), lt(t), e.target.blur();
9339
9339
  }, ht = (e) => {
9340
9340
  let t = y.value?.getBoundingClientRect();
9341
- return !t || t.width <= 0 ? null : xe(K(Math.max(0, Math.min(1, (e - t.left) / t.width)), Z.value));
9341
+ return !t || t.width <= 0 ? null : xe(q(Math.max(0, Math.min(1, (e - t.left) / t.width)), Z.value));
9342
9342
  }, gt = (e) => {
9343
9343
  let n = ht(e);
9344
9344
  if (n === null) return;
@@ -9362,21 +9362,21 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9362
9362
  window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", vt);
9363
9363
  }, e.preventDefault();
9364
9364
  };
9365
- return G([Te, Z], ct, { immediate: !0 }), C(() => {
9365
+ return K([Te, Z], ct, { immediate: !0 }), C(() => {
9366
9366
  _t(), Qe();
9367
9367
  }), (n, r) => e.mode === "single" ? (k(), o("div", Ou, [e.showValueTooltips && _.value ? (k(), o("span", {
9368
9368
  key: 0,
9369
9369
  class: "pv-range-tooltip",
9370
- style: S(fe.value)
9371
- }, R(F(ue.value)), 5)) : a("", !0), s("input", v({ id: V(u) }, V(l), {
9370
+ style: S(X.value)
9371
+ }, R(F(le.value)), 5)) : a("", !0), s("input", v({ id: V(u) }, V(l), {
9372
9372
  "aria-label": e.ariaLabel,
9373
- "aria-valuetext": F(ue.value),
9373
+ "aria-valuetext": F(le.value),
9374
9374
  class: ["pv-range", `pv-range-${t.size}`],
9375
9375
  disabled: e.disabled,
9376
9376
  max: ze.value,
9377
9377
  min: Re.value,
9378
- step: ae.value,
9379
- style: Y.value,
9378
+ step: ie.value,
9379
+ style: de.value,
9380
9380
  type: "range",
9381
9381
  value: Be.value,
9382
9382
  onChange: $e,
@@ -9420,7 +9420,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9420
9420
  disabled: e.disabled,
9421
9421
  max: Fe.value,
9422
9422
  min: Pe.value,
9423
- step: W.value,
9423
+ step: G.value,
9424
9424
  value: Ie.value,
9425
9425
  onBlur: Ye,
9426
9426
  onChange: Ye,
@@ -9437,7 +9437,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9437
9437
  disabled: e.disabled,
9438
9438
  max: Fe.value,
9439
9439
  min: Pe.value,
9440
- step: W.value,
9440
+ step: G.value,
9441
9441
  value: Le.value,
9442
9442
  onBlur: Ye,
9443
9443
  onChange: Ye,
@@ -9462,13 +9462,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9462
9462
  disabled: e.disabled,
9463
9463
  inputmode: "decimal",
9464
9464
  placeholder: "Min",
9465
- step: ne.value,
9465
+ step: W.value,
9466
9466
  type: "text",
9467
9467
  value: m.value,
9468
9468
  onBlur: r[4] ||= (e) => pt("min"),
9469
9469
  onFocus: r[5] ||= (e) => ft("min"),
9470
9470
  onInput: ut,
9471
- onKeydown: r[6] ||= le((e) => mt(e, "min"), ["enter"])
9471
+ onKeydown: r[6] ||= ce((e) => mt(e, "min"), ["enter"])
9472
9472
  }, null, 40, Iu)], 2)], 4),
9473
9473
  s("label", {
9474
9474
  class: "pv-flex-vertical pv-range-input-label",
@@ -9484,13 +9484,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9484
9484
  disabled: e.disabled,
9485
9485
  inputmode: "decimal",
9486
9486
  placeholder: "Max",
9487
- step: ne.value,
9487
+ step: W.value,
9488
9488
  type: "text",
9489
9489
  value: p.value,
9490
9490
  onBlur: r[7] ||= (e) => pt("max"),
9491
9491
  onFocus: r[8] ||= (e) => ft("max"),
9492
9492
  onInput: dt,
9493
- onKeydown: r[9] ||= le((e) => mt(e, "max"), ["enter"])
9493
+ onKeydown: r[9] ||= ce((e) => mt(e, "max"), ["enter"])
9494
9494
  }, null, 40, Ru)], 2)], 4),
9495
9495
  e.showClear && je.value ? (k(), i($, {
9496
9496
  key: 0,
@@ -9570,7 +9570,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9570
9570
  },
9571
9571
  emits: ["focus-value", "toggle-value"],
9572
9572
  setup(e, { emit: t }) {
9573
- let n = e, c = t, d = ne(), f = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), p = r(() => n.focusActionLabel ?? (n.isFocused ? `Remove ${n.focusText}` : `Select as ${n.focusText}`)), m = r(() => !n.renderer && (f.value || !!d["result-count"])), h = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), g = r(() => ({
9573
+ let n = e, c = t, d = W(), f = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), p = r(() => n.focusActionLabel ?? (n.isFocused ? `Remove ${n.focusText}` : `Select as ${n.focusText}`)), m = r(() => !n.renderer && (f.value || !!d["result-count"])), h = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), g = r(() => ({
9574
9574
  disabled: n.disabled,
9575
9575
  highlightSearchText: !0,
9576
9576
  id: n.value,
@@ -9633,13 +9633,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
9633
9633
  position: "top-right",
9634
9634
  size: "sm"
9635
9635
  }, {
9636
- trigger: K(() => [u($, {
9636
+ trigger: q(() => [u($, {
9637
9637
  ariaLabel: p.value,
9638
9638
  disabled: e.disabled || e.focusActionDisabled,
9639
9639
  leftIcon: "focus",
9640
9640
  size: "md",
9641
9641
  variant: e.isFocused ? "primary" : "ghost",
9642
- onClick: J(C, ["stop", "prevent"])
9642
+ onClick: Y(C, ["stop", "prevent"])
9643
9643
  }, null, 8, [
9644
9644
  "ariaLabel",
9645
9645
  "disabled",
@@ -10182,7 +10182,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10182
10182
  label: b.value,
10183
10183
  value: !1
10184
10184
  }];
10185
- }), ne = (e) => {
10185
+ }), W = (e) => {
10186
10186
  let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
10187
10187
  return [
10188
10188
  e.value,
@@ -10192,32 +10192,32 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10192
10192
  e.matchedValue,
10193
10193
  e.matchedField
10194
10194
  ].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
10195
- }, W = r(() => E.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : E.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : E.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ? of(A.value) || void 0 : P.value.length || void 0), re = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), ie = (e, t = 0) => e.flatMap((e) => [
10195
+ }, G = r(() => E.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : E.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : E.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ? of(A.value) || void 0 : P.value.length || void 0), ne = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), re = (e, t = 0) => e.flatMap((e) => [
10196
10196
  {
10197
10197
  depth: t,
10198
10198
  kind: "option",
10199
10199
  option: e
10200
10200
  },
10201
- ...e.children?.length ? ie(e.children, t + 1) : [],
10202
- ...re(e) ? [{
10201
+ ...e.children?.length ? re(e.children, t + 1) : [],
10202
+ ...ne(e) ? [{
10203
10203
  depth: t + 1,
10204
10204
  kind: "child-load-more",
10205
10205
  parent: e
10206
10206
  }] : []
10207
- ]), ae = r(() => {
10208
- let e = ie(C.value), t = N.value;
10209
- return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" && ne(e.option).includes(t));
10210
- }), oe = r(() => O.value || c.filter.singleSelect ? [] : P.value.map((e) => z(e) ?? {
10207
+ ]), ie = r(() => {
10208
+ let e = re(C.value), t = N.value;
10209
+ return c.filter.clientFiltering === !1 || !t ? e : e.filter((e) => e.kind === "option" && W(e.option).includes(t));
10210
+ }), ae = r(() => O.value || c.filter.singleSelect ? [] : P.value.map((e) => z(e) ?? {
10211
10211
  label: e,
10212
10212
  value: e
10213
- })), se = j([]), q = r(() => new Set(se.value)), le = r(() => se.value.map((e) => z(e) ?? {
10213
+ })), oe = j([]), J = r(() => new Set(oe.value)), ce = r(() => oe.value.map((e) => z(e) ?? {
10214
10214
  label: e,
10215
10215
  value: e
10216
- })), J = r(() => C.value.length > 0 || le.value.length > 0), ue = r(() => D.value && c.filter.isOpen && c.filter.isLoading === !0 && J.value), de = () => {
10217
- se.value = O.value || c.filter.singleSelect ? [] : [...P.value];
10216
+ })), Y = r(() => C.value.length > 0 || ce.value.length > 0), le = r(() => D.value && c.filter.isOpen && c.filter.isLoading === !0 && Y.value), ue = () => {
10217
+ oe.value = O.value || c.filter.singleSelect ? [] : [...P.value];
10218
10218
  };
10219
- de();
10220
- let Y = r(() => O.value || c.filter.singleSelect ? ae.value : ae.value.filter((e) => e.kind === "child-load-more" || !q.value.has(e.option.value))), fe = r(() => Y.value.length > _.value), X = r(() => fe.value || c.filter.hasMore), Z = r(() => Y.value.slice(0, _.value)), pe = r(() => O.value ? nf({
10219
+ ue();
10220
+ let de = r(() => O.value || c.filter.singleSelect ? ie.value : ie.value.filter((e) => e.kind === "child-load-more" || !J.value.has(e.option.value))), X = r(() => de.value.length > _.value), fe = r(() => X.value || c.filter.hasMore), Z = r(() => de.value.slice(0, _.value)), pe = r(() => O.value ? nf({
10221
10221
  options: T.value,
10222
10222
  state: A.value
10223
10223
  }) : /* @__PURE__ */ new Map()), me = (e) => bd(e, c.filter.colDef), he = (e) => Ed(e), ge = (e) => O.value ? pe.value.get(e.value) ?? {
@@ -10241,13 +10241,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10241
10241
  context: e,
10242
10242
  disabled: H.value || e.isSelectable === !1 || e.menuOption?.disabled,
10243
10243
  id: e.value,
10244
- searchText: ne(e),
10244
+ searchText: W(e),
10245
10245
  secondaryText: he(e),
10246
10246
  subText: e.subText,
10247
10247
  subduedText: e.subduedText,
10248
10248
  text: me(e),
10249
10249
  totalChildCount: e.totalChildCount
10250
- }), De = r(() => C.value.map(Ee)), Oe = r(() => oe.value.map(Ee)), ke = r(() => ({
10250
+ }), De = r(() => C.value.map(Ee)), Oe = r(() => ae.value.map(Ee)), ke = r(() => ({
10251
10251
  colDef: c.filter.colDef,
10252
10252
  disabled: H.value,
10253
10253
  filter: c.filter,
@@ -10261,7 +10261,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10261
10261
  rowsLoading: c.filter.isLoading
10262
10262
  }
10263
10263
  })), Ae = () => {
10264
- H.value || (fe.value ? _.value += jf : c.filter.hasMore && d("load-more", g.value.trim()));
10264
+ H.value || (X.value ? _.value += jf : c.filter.hasMore && d("load-more", g.value.trim()));
10265
10265
  }, je = (e) => {
10266
10266
  H.value || d("load-more", g.value.trim(), e.value);
10267
10267
  }, Me = (e) => {
@@ -10314,7 +10314,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10314
10314
  }, ze = () => {
10315
10315
  H.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
10316
10316
  };
10317
- G([g, () => c.filter.key], () => {
10317
+ K([g, () => c.filter.key], () => {
10318
10318
  _.value = jf;
10319
10319
  });
10320
10320
  let Ve = () => {
@@ -10322,22 +10322,22 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10322
10322
  for (let t of e) n.delete(t.value), n.set(t.value, t);
10323
10323
  p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Mf)));
10324
10324
  };
10325
- G(T, () => {
10325
+ K(T, () => {
10326
10326
  c.filter.isOpen && Ve();
10327
10327
  }, { immediate: !0 });
10328
10328
  let He = () => {
10329
10329
  !c.filter.isOpen || !f.value || (m.value = Math.max(m.value, f.value.offsetHeight));
10330
10330
  };
10331
- return G(() => c.filter.isLoading === !0, (e) => {
10331
+ return K(() => c.filter.isLoading === !0, (e) => {
10332
10332
  e ? He() : m.value = 0;
10333
- }), G(C, () => {
10333
+ }), K(C, () => {
10334
10334
  c.filter.isLoading && He();
10335
- }), G(() => c.filter.isOpen, (e) => {
10336
- e ? (Ve(), de()) : (p.value = {}, m.value = 0);
10337
- }), ce(() => {
10335
+ }), K(() => c.filter.isOpen, (e) => {
10336
+ e ? (Ve(), ue()) : (p.value = {}, m.value = 0);
10337
+ }), se(() => {
10338
10338
  if (!c.filter.isOpen || O.value || c.filter.singleSelect) return;
10339
- let e = new Set(Z.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = P.value.filter((t) => !q.value.has(t) && !e.has(t));
10340
- t.length && (se.value = [...se.value, ...t]);
10339
+ let e = new Set(Z.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = P.value.filter((t) => !J.value.has(t) && !e.has(t));
10340
+ t.length && (oe.value = [...oe.value, ...t]);
10341
10341
  }), _e(g, (e) => {
10342
10342
  if (!D.value || c.filter.disabled === !0) return;
10343
10343
  let t = e.trim();
@@ -10357,13 +10357,13 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10357
10357
  name: e.filter.isOpen ? "chevron-down" : "chevron-right"
10358
10358
  }, null, 8, ["name"]),
10359
10359
  s("span", null, R(e.filter.label), 1),
10360
- W.value ? (k(), i(Xe, {
10360
+ G.value ? (k(), i(Xe, {
10361
10361
  key: 0,
10362
- value: W.value,
10362
+ value: G.value,
10363
10363
  size: "sm",
10364
10364
  variant: "secondary"
10365
10365
  }, null, 8, ["value"])) : a("", !0),
10366
- ue.value ? (k(), o("span", lf, [u(Be, { size: "sm" }), s("span", uf, R(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
10366
+ le.value ? (k(), o("span", lf, [u(Be, { size: "sm" }), s("span", uf, R(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
10367
10367
  ]), s("div", {
10368
10368
  ref_key: "filterContent",
10369
10369
  ref: f,
@@ -10419,7 +10419,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10419
10419
  "disabled",
10420
10420
  "placeholder"
10421
10421
  ])),
10422
- le.value.length ? (k(), o("div", _f, [(k(!0), o(t, null, M(le.value, (t) => (k(), i(Zu, {
10422
+ ce.value.length ? (k(), o("div", _f, [(k(!0), o(t, null, M(ce.value, (t) => (k(), i(Zu, {
10423
10423
  key: t.value,
10424
10424
  control: e.filter.singleSelect ? "radio" : "checkbox",
10425
10425
  disabled: H.value || t.isSelectable === !1,
@@ -10461,10 +10461,10 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10461
10461
  "onFocusValue",
10462
10462
  "onToggleValue"
10463
10463
  ]))), 128))])) : a("", !0),
10464
- e.filter.isLoading && !J.value ? (k(), o("div", vf, [u(Be, { size: "sm" }), e.filter.loadingText ? (k(), o("span", yf, R(e.filter.loadingText), 1)) : a("", !0)])) : (k(), o(t, { key: 4 }, [
10465
- !N.value && !C.value.length && !le.value.length && !X.value ? (k(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, ke.value, { "empty-reason": "no-values" }), null, 16)) : (k(), o("p", bf, "No values available."))], 64)) : !ae.value.length && !le.value.length && !X.value ? (k(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, ke.value, { "empty-reason": "no-matches" }), null, 16)) : (k(), o("p", xf, "No matching values."))], 64)) : a("", !0),
10466
- Y.value.length || X.value ? (k(), o("div", Sf, [
10467
- Y.value.length && !e.filter.hideOptionsSortDescription ? (k(), o("div", Cf, [e.filter.filterOptionsSortTooltip ? (k(), i(fr, {
10464
+ e.filter.isLoading && !Y.value ? (k(), o("div", vf, [u(Be, { size: "sm" }), e.filter.loadingText ? (k(), o("span", yf, R(e.filter.loadingText), 1)) : a("", !0)])) : (k(), o(t, { key: 4 }, [
10465
+ !N.value && !C.value.length && !ce.value.length && !fe.value ? (k(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, ke.value, { "empty-reason": "no-values" }), null, 16)) : (k(), o("p", bf, "No values available."))], 64)) : !ie.value.length && !ce.value.length && !fe.value ? (k(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (k(), i(F(e.filter.emptyResultsRenderer), v({ key: 0 }, ke.value, { "empty-reason": "no-matches" }), null, 16)) : (k(), o("p", xf, "No matching values."))], 64)) : a("", !0),
10466
+ de.value.length || fe.value ? (k(), o("div", Sf, [
10467
+ de.value.length && !e.filter.hideOptionsSortDescription ? (k(), o("div", Cf, [e.filter.filterOptionsSortTooltip ? (k(), i(fr, {
10468
10468
  key: 0,
10469
10469
  variant: "dark",
10470
10470
  disableInteractive: !0,
@@ -10473,8 +10473,8 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10473
10473
  "use-teleport": !0,
10474
10474
  style: { "--max-width": "200px" }
10475
10475
  }, {
10476
- trigger: K(() => [s("p", wf, R(ee.value), 1)]),
10477
- content: K(() => [l(R(e.filter.filterOptionsSortTooltip), 1)]),
10476
+ trigger: q(() => [s("p", wf, R(ee.value), 1)]),
10477
+ content: q(() => [l(R(e.filter.filterOptionsSortTooltip), 1)]),
10478
10478
  _: 1
10479
10479
  })) : (k(), o("p", Tf, R(ee.value), 1))])) : a("", !0),
10480
10480
  (k(!0), o(t, null, M(Z.value, (n) => (k(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (k(), i(Zu, {
@@ -10536,7 +10536,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10536
10536
  "style",
10537
10537
  "onClick"
10538
10538
  ]))], 64))), 128)),
10539
- X.value ? (k(), i($, {
10539
+ fe.value ? (k(), i($, {
10540
10540
  key: 1,
10541
10541
  class: "pv-text-brand",
10542
10542
  disabled: H.value || e.filter.isLoadingMore,
@@ -10801,7 +10801,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10801
10801
  }), d = (e) => {
10802
10802
  c.value = e;
10803
10803
  }, f = (e) => c.value === e ? "secondary" : "ghost";
10804
- return G(l, (e) => {
10804
+ return K(l, (e) => {
10805
10805
  c.value !== null && !e.includes(c.value) && (c.value = null);
10806
10806
  }, { immediate: !0 }), (n, r) => l.value.length ? (k(), o("div", Kf, [u(Gf, {
10807
10807
  ariaLabel: "Filter categories",
@@ -10812,7 +10812,7 @@ var Mo = ["title"], No = ["title"], Po = { style: {
10812
10812
  rightAriaLabel: "Scroll filter categories right",
10813
10813
  showFades: ""
10814
10814
  }, {
10815
- default: K(() => [s("div", qf, [u($, {
10815
+ default: q(() => [s("div", qf, [u($, {
10816
10816
  label: e.allCategoriesLabel,
10817
10817
  variant: f(null),
10818
10818
  onClick: r[0] ||= (e) => d(null)
@@ -11279,9 +11279,9 @@ function tm(e, t, n) {
11279
11279
  }
11280
11280
  b(t, n);
11281
11281
  };
11282
- G(() => e.filterOptionsHandler, (e) => {
11282
+ K(() => e.filterOptionsHandler, (e) => {
11283
11283
  a.setFilterOptionsHandler(e);
11284
- }, { immediate: !0 }), G([
11284
+ }, { immediate: !0 }), K([
11285
11285
  () => e.filterOptions,
11286
11286
  m,
11287
11287
  () => e.filterOptionsHandler
@@ -11290,7 +11290,7 @@ function tm(e, t, n) {
11290
11290
  }, {
11291
11291
  deep: !0,
11292
11292
  immediate: !0
11293
- }), G([
11293
+ }), K([
11294
11294
  () => e.filterHasMoreMap,
11295
11295
  m,
11296
11296
  () => e.filterOptionsHandler
@@ -11299,7 +11299,7 @@ function tm(e, t, n) {
11299
11299
  }, {
11300
11300
  deep: !0,
11301
11301
  immediate: !0
11302
- }), G([
11302
+ }), K([
11303
11303
  () => e.filterLoadingMap,
11304
11304
  m,
11305
11305
  () => e.filterOptionsHandler
@@ -11308,7 +11308,7 @@ function tm(e, t, n) {
11308
11308
  }, {
11309
11309
  deep: !0,
11310
11310
  immediate: !0
11311
- }), G([
11311
+ }), K([
11312
11312
  () => e.filterLoadingMoreMap,
11313
11313
  m,
11314
11314
  () => e.filterOptionsHandler
@@ -11317,7 +11317,7 @@ function tm(e, t, n) {
11317
11317
  }, {
11318
11318
  deep: !0,
11319
11319
  immediate: !0
11320
- }), G([
11320
+ }), K([
11321
11321
  () => e.filterSearchQueries,
11322
11322
  m,
11323
11323
  () => e.filterOptionsHandler
@@ -11326,7 +11326,7 @@ function tm(e, t, n) {
11326
11326
  }, {
11327
11327
  deep: !0,
11328
11328
  immediate: !0
11329
- }), G([
11329
+ }), K([
11330
11330
  t,
11331
11331
  m,
11332
11332
  () => e.staged
@@ -11335,7 +11335,7 @@ function tm(e, t, n) {
11335
11335
  }, {
11336
11336
  deep: !0,
11337
11337
  immediate: !0
11338
- }), G([() => e.staged, p], ([e]) => {
11338
+ }), K([() => e.staged, p], ([e]) => {
11339
11339
  if (e) {
11340
11340
  i.value = t.value;
11341
11341
  let e = p.value;
@@ -11346,51 +11346,51 @@ function tm(e, t, n) {
11346
11346
  !h.value || !t || s.has(e) || (console.warn(`PvFilterPanel: "${e}" is ignored when filterStore/filterOptionsHandler store mode is active.`), s.add(e));
11347
11347
  }, w = (e, t) => {
11348
11348
  c.has(e) || (console.warn(t), c.add(e));
11349
- }, T = (e) => !!(e && typeof e == "object" && "filterType" in e), E = (e) => {
11349
+ }, E = (e) => !!(e && typeof e == "object" && "filterType" in e), D = (e) => {
11350
11350
  if (!e) return;
11351
- let t = T(e);
11351
+ let t = E(e);
11352
11352
  _.value === "advanced" && !t && w("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), _.value === "regular" && t && w("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
11353
11353
  };
11354
- ce(() => {
11354
+ se(() => {
11355
11355
  S("filterModel", !!((e.filterStore || o) && t.value !== null)), S("filterOptions", Object.keys(e.filterOptions).length > 0), S("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), S("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), S("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), S("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), S("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler)), (e.filterStore || o) && v.value;
11356
11356
  });
11357
- let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", k = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, A = (e) => {
11358
- let t = D(e), n = t.filterPanelType;
11357
+ let O = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, M = (e) => {
11358
+ let t = O(e), n = t.filterPanelType;
11359
11359
  if (n && em.has(n)) return n;
11360
11360
  if (t.filterPanelRange) return "range";
11361
11361
  if (t.dataType === "boolean") return "boolean";
11362
11362
  if (e.filter) return "value";
11363
- }, M = (e) => A(e) ?? "value", N = (e) => D(e).filterPanelCategory ?? null, P = (e) => {
11364
- let t = D(e).filterPanelValueLabels;
11363
+ }, N = (e) => M(e) ?? "value", P = (e) => O(e).filterPanelCategory ?? null, F = (e) => {
11364
+ let t = O(e).filterPanelValueLabels;
11365
11365
  return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
11366
- }, F = (t) => {
11367
- let n = D(t), r = O(t);
11368
- return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && ne.value.has(r) ? !1 : !!A(t);
11369
- }, L = (e) => (p.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), R = (t) => {
11366
+ }, L = (t) => {
11367
+ let n = O(t), r = k(t);
11368
+ return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && G.value.has(r) ? !1 : !!M(t);
11369
+ }, R = (e) => (p.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), z = (t) => {
11370
11370
  let n = p.value;
11371
11371
  return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
11372
- }, z = (e) => p.value.filterHasMoreMap.value[e] ?? !1, B = (e) => p.value.filterLoadingMap.value[e] ?? !1, V = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1, ee = (e) => p.value.filterSearchQueries.value[e] ?? "", H = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
11372
+ }, B = (e) => p.value.filterHasMoreMap.value[e] ?? !1, V = (e) => p.value.filterLoadingMap.value[e] ?? !1, ee = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1, H = (e) => p.value.filterSearchQueries.value[e] ?? "", te = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
11373
11373
  label: e.label,
11374
11374
  value: e.filter.value
11375
- }]), te = (e) => [
11376
- ...H(e),
11377
- ...L(e),
11378
- ...R(e)
11379
- ], U = (e) => {
11375
+ }]), U = (e) => [
11376
+ ...te(e),
11377
+ ...R(e),
11378
+ ...z(e)
11379
+ ], W = (e) => {
11380
11380
  if (typeof e != "object" || !e || !("field" in e)) return [];
11381
- let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(U) : [];
11381
+ let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(W) : [];
11382
11382
  return n ? [n, ...r] : r;
11383
- }, ne = r(() => {
11383
+ }, G = r(() => {
11384
11384
  let t = /* @__PURE__ */ new Set();
11385
11385
  for (let n of e.colDefs) {
11386
- let e = D(n);
11386
+ let e = O(n);
11387
11387
  for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
11388
- for (let n of U(e.aggregateFieldHierarchy)) n && t.add(n);
11388
+ for (let n of W(e.aggregateFieldHierarchy)) n && t.add(n);
11389
11389
  for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
11390
11390
  }
11391
11391
  return t;
11392
- }), W = (e) => {
11393
- let t = O(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = U(n.aggregateFieldHierarchy);
11392
+ }), ne = (e) => {
11393
+ let t = k(e), n = O(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = W(n.aggregateFieldHierarchy);
11394
11394
  return Array.from(new Set([
11395
11395
  t,
11396
11396
  ...r,
@@ -11400,7 +11400,7 @@ function tm(e, t, n) {
11400
11400
  colDef: e,
11401
11401
  model: v.value,
11402
11402
  options: t
11403
- }) : new Map(W(e).map((e) => [e, y.value.get(e)?.values ?? []])), ae = (e, t, n, r) => {
11403
+ }) : new Map(ne(e).map((e) => [e, y.value.get(e)?.values ?? []])), ae = (e, t, n, r) => {
11404
11404
  let i = /* @__PURE__ */ new Set();
11405
11405
  for (let t of od(r)) for (let [r, a] of n) for (let n of a) sd(t, r, n, e) && i.add(`${r}:${n}`);
11406
11406
  return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
@@ -11416,31 +11416,31 @@ function tm(e, t, n) {
11416
11416
  a !== null && t.get(n)?.includes(a) && r.add(i.value);
11417
11417
  }
11418
11418
  return Array.from(r);
11419
- }, se = (t) => Object.fromEntries(W(t).map((t) => [t, e.focusedValues[t] ?? []])), K = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), q = (e) => K(e)?.headerName ?? e, le = (e) => {
11420
- let t = D(e);
11421
- return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Yf(O(e), t.queryColIds, q);
11422
- }, J = (e, t) => Zf({
11419
+ }, q = (t) => Object.fromEntries(ne(t).map((t) => [t, e.focusedValues[t] ?? []])), J = (t) => e.colDefs.find((e) => k(e) === t || e.field === t || e.colId === t), ce = (e) => J(e)?.headerName ?? e, Y = (e) => {
11420
+ let t = O(e);
11421
+ return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Yf(k(e), t.queryColIds, ce);
11422
+ }, le = (e, t) => Zf({
11423
11423
  fallbackSubText: e.subText,
11424
- getDisplayName: q,
11424
+ getDisplayName: ce,
11425
11425
  matchedField: e.matchedField,
11426
11426
  matchedValue: e.matchedValue,
11427
11427
  primaryText: e.label,
11428
- showPrefix: D(t).showSearchMatchSubTextPrefix !== !1
11428
+ showPrefix: O(t).showSearchMatchSubTextPrefix !== !1
11429
11429
  }), ue = (e, t) => e.map((e) => ({
11430
11430
  ...e,
11431
11431
  children: e.children?.length ? ue(e.children, t) : e.children,
11432
- subText: J(e, t)
11432
+ subText: le(e, t)
11433
11433
  })), de = (e) => {
11434
- let t = D(e).filterGroup;
11434
+ let t = O(e).filterGroup;
11435
11435
  if (t?.fields.length) return t.fields.map((e) => ({
11436
11436
  field: e,
11437
11437
  isActive: y.value.get(e)?.booleanValue === !0,
11438
- label: K(e)?.headerName ?? e
11438
+ label: J(e)?.headerName ?? e
11439
11439
  }));
11440
- }, Y = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) => od(Y(e)?.knownOptions ?? []).find((r) => r.value === n || sd(r, t, n, e)), X = r(() => e.colDefs.filter(F).map((t) => {
11441
- let n = O(t), r = D(t), i = M(t), a = ue(L(n), t), o = ue(te(n), t), s = {
11440
+ }, X = (e) => Z.value.find((t) => t.key === e) ?? Z.value.find((t) => ne(t.colDef).includes(e)), fe = (e, t, n) => od(X(e)?.knownOptions ?? []).find((r) => r.value === n || sd(r, t, n, e)), Z = r(() => e.colDefs.filter(L).map((t) => {
11441
+ let n = k(t), r = O(t), i = N(t), a = ue(R(n), t), o = ue(U(n), t), s = {
11442
11442
  canRemoveFocus: e.canRemoveFocus,
11443
- category: N(t),
11443
+ category: P(t),
11444
11444
  clientFiltering: r.filterOptionsClientFiltering !== !1,
11445
11445
  colDef: t,
11446
11446
  controlled: r.filterPanelControlled === !0,
@@ -11458,35 +11458,35 @@ function tm(e, t, n) {
11458
11458
  filterSectionDefs: r.filterSectionDefs,
11459
11459
  filterOptionsSortDescription: r.filterOptionsSortDescription,
11460
11460
  filterOptionsSortTooltip: r.filterOptionsSortTooltip,
11461
- focusFieldLabels: Object.fromEntries(W(t).map((e) => [e, q(e)])),
11461
+ focusFieldLabels: Object.fromEntries(ne(t).map((e) => [e, ce(e)])),
11462
11462
  focusableFields: e.focusableFields,
11463
11463
  focusText: e.focusText,
11464
11464
  hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
11465
11465
  hideSearch: r.filterPanelHideSearch,
11466
11466
  focusedValues: e.focusedValues[n] ?? [],
11467
- focusedValuesByField: se(t),
11468
- hasMore: z(n),
11467
+ focusedValuesByField: q(t),
11468
+ hasMore: B(n),
11469
11469
  isAggregate: re(t),
11470
- isFocusable: e.enableFocusView && (!e.focusableFields.length || W(t).some((t) => e.focusableFields.includes(t))),
11471
- isLoading: B(n),
11472
- isLoadingMore: V(n),
11470
+ isFocusable: e.enableFocusView && (!e.focusableFields.length || ne(t).some((t) => e.focusableFields.includes(t))),
11471
+ isLoading: V(n),
11472
+ isLoadingMore: ee(n),
11473
11473
  isOpen: !1,
11474
11474
  key: n,
11475
11475
  knownOptions: o,
11476
11476
  label: t.headerName || n,
11477
11477
  loadingText: r.filterOptionsLoadingText,
11478
11478
  rangeInputIcon: r.filterPanelRange?.inputIcon ?? null,
11479
- rangeMax: k(r.filterPanelRange?.max),
11480
- rangeMin: k(r.filterPanelRange?.min),
11479
+ rangeMax: A(r.filterPanelRange?.max),
11480
+ rangeMin: A(r.filterPanelRange?.min),
11481
11481
  rangeScale: r.filterPanelRange?.scale,
11482
- rangeSliderStep: k(r.filterPanelRange?.sliderStep),
11483
- rangeStep: k(r.filterPanelRange?.step),
11484
- searchPlaceholder: le(t),
11485
- searchQuery: ee(n) ?? "",
11482
+ rangeSliderStep: A(r.filterPanelRange?.sliderStep),
11483
+ rangeStep: A(r.filterPanelRange?.step),
11484
+ searchPlaceholder: Y(t),
11485
+ searchQuery: H(n) ?? "",
11486
11486
  singleSelect: r.filterPanelSingleSelect === !0,
11487
11487
  type: i,
11488
11488
  valueDecimals: r.valueDecimals ?? null,
11489
- valueLabels: P(t)
11489
+ valueLabels: F(t)
11490
11490
  };
11491
11491
  if (i === "range") return {
11492
11492
  ...s,
@@ -11516,7 +11516,7 @@ function tm(e, t, n) {
11516
11516
  selectedValues: s.controlled ? c : h ? h.flatMap((e) => e.state === "selected" ? [e.id] : []) : oe(n, u, p)
11517
11517
  };
11518
11518
  }));
11519
- G(X, (t) => {
11519
+ K(Z, (t) => {
11520
11520
  let n = p.value, r = e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap, i = r.value, a = t.filter((e) => e.type === "value" && !e.controlled && !e.isAggregate && !!e.colDef.context?.metadataDisplayFields?.length);
11521
11521
  for (let e of a) {
11522
11522
  let t = new Set(e.selectedValues ?? []), n = /* @__PURE__ */ new Map();
@@ -11526,16 +11526,16 @@ function tm(e, t, n) {
11526
11526
  }
11527
11527
  i !== r.value && (r.value = i);
11528
11528
  }, { immediate: !0 });
11529
- let Z = r(() => X.value.flatMap((e) => {
11529
+ let pe = r(() => Z.value.flatMap((e) => {
11530
11530
  if (e.controlled) return [];
11531
- let t = Ae(e);
11531
+ let t = je(e);
11532
11532
  return t.length ? [{
11533
11533
  key: e.key,
11534
11534
  label: e.label,
11535
11535
  values: t
11536
11536
  }] : [];
11537
- })), pe = r(() => Z.value.reduce((e, t) => e + t.values.length, 0)), me = r(() => jp(v.value, _.value)), he = r(() => me.value || pe.value > 0), ge = (e) => {
11538
- let t = Y(e.field);
11537
+ })), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => jp(v.value, _.value)), ge = r(() => he.value || me.value > 0), _e = (e) => {
11538
+ let t = X(e.field);
11539
11539
  if (!t || t.type !== e.filter.type) return !0;
11540
11540
  if (e.filter.type === "value") {
11541
11541
  if (t.isAggregate && e.option) {
@@ -11550,11 +11550,11 @@ function tm(e, t, n) {
11550
11550
  return e.filter.checked ? a : !a;
11551
11551
  }
11552
11552
  return e.filter.type === "range" ? t.rangeValue?.min === e.filter.value.min && t.rangeValue?.max === e.filter.value.max : e.filter.type === "boolean" ? t.booleanValue === e.filter.value : (t.existsValue ?? !1) === e.filter.value;
11553
- }, _e = r(() => e.filterSuggestions.filter((e) => !ge(e))), ve = (e) => {
11553
+ }, ve = r(() => e.filterSuggestions.filter((e) => !_e(e))), ye = (e) => {
11554
11554
  if (e.key) return e.key;
11555
11555
  let t = "value" in e.filter ? e.filter.value : "";
11556
11556
  return `${e.field}-${e.filter.type}-${JSON.stringify(t)}`;
11557
- }, ye = (t, n, r, i) => {
11557
+ }, be = (t, n, r, i) => {
11558
11558
  let a = p.value;
11559
11559
  if (!a) return;
11560
11560
  a.setFilterSelectedValues(n, r, e.staged);
@@ -11571,7 +11571,7 @@ function tm(e, t, n) {
11571
11571
  r === -1 ? l.push(i) : l[r] = i;
11572
11572
  }
11573
11573
  o.value[t] = l;
11574
- }, be = (t, n = t.aggregateSelectionState ?? []) => {
11574
+ }, xe = (t, n = t.aggregateSelectionState ?? []) => {
11575
11575
  let r = p.value;
11576
11576
  if (!r || !t.isAggregate) return;
11577
11577
  let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
@@ -11581,38 +11581,38 @@ function tm(e, t, n) {
11581
11581
  options: t.knownOptions ?? [],
11582
11582
  state: n
11583
11583
  });
11584
- }, xe = (e) => {
11584
+ }, Se = (e) => {
11585
11585
  if (!h.value) return;
11586
11586
  let t = p.value, n = /* @__PURE__ */ new Set();
11587
11587
  if (e) {
11588
11588
  n.add(e);
11589
- let t = Y(e);
11590
- t && (n.add(t.key), W(t.colDef).forEach((e) => n.add(e)));
11589
+ let t = X(e);
11590
+ t && (n.add(t.key), ne(t.colDef).forEach((e) => n.add(e)));
11591
11591
  }
11592
- for (let r of X.value) r.type === "value" && (e && (n.has(r.key) || W(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
11593
- }, Se = (r, a, s, c) => {
11594
- E(r);
11592
+ for (let r of Z.value) r.type === "value" && (e && (n.has(r.key) || ne(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
11593
+ }, Ce = (r, a, s, c) => {
11594
+ D(r);
11595
11595
  let l = v.value, u = p.value;
11596
- u ? (x(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (i.value = r), !e.filterStore && !o && !e.staged && (t.value = r), xe(s), n("filter-change", {
11597
- colDef: (s ? Y(s) : void 0)?.colDef,
11596
+ u ? (x(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (i.value = r), !e.filterStore && !o && !e.staged && (t.value = r), Se(s), n("filter-change", {
11597
+ colDef: (s ? X(s) : void 0)?.colDef,
11598
11598
  field: s,
11599
11599
  filterModel: r,
11600
11600
  previousFilterModel: l,
11601
11601
  reason: a,
11602
11602
  type: c
11603
11603
  });
11604
- }, Ce = (e) => {
11604
+ }, we = (e) => {
11605
11605
  let t = e.booleanValue ?? null;
11606
11606
  return t === null ? [] : [{
11607
11607
  label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
11608
11608
  type: "boolean",
11609
11609
  value: Qp
11610
11610
  }];
11611
- }, we = (e) => e.existsValue ? [{
11611
+ }, Te = (e) => e.existsValue ? [{
11612
11612
  label: e.existsLabel ?? `Has ${e.label}`,
11613
11613
  type: "exists",
11614
11614
  value: $p
11615
- }] : [], Te = (e) => {
11615
+ }] : [], Ee = (e) => {
11616
11616
  let t = e.rangeValue ?? {
11617
11617
  max: null,
11618
11618
  min: null
@@ -11625,7 +11625,7 @@ function tm(e, t, n) {
11625
11625
  type: "range",
11626
11626
  value: Zp
11627
11627
  }];
11628
- }, Ee = (e, t, n) => {
11628
+ }, De = (e, t, n) => {
11629
11629
  let r = n.get(t) ?? null;
11630
11630
  return {
11631
11631
  field: r ? ad(r, e.key) : void 0,
@@ -11636,12 +11636,12 @@ function tm(e, t, n) {
11636
11636
  type: "value",
11637
11637
  value: r ? id(r) ?? r.value : t
11638
11638
  };
11639
- }, De = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
11639
+ }, Oe = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
11640
11640
  field: e.field,
11641
11641
  label: e.label,
11642
11642
  type: "boolean",
11643
11643
  value: Qp
11644
- }] : []), Oe = (e) => af({
11644
+ }] : []), Ae = (e) => af({
11645
11645
  options: e.knownOptions ?? [],
11646
11646
  state: e.aggregateSelectionState ?? []
11647
11647
  }).map((t) => ({
@@ -11652,42 +11652,42 @@ function tm(e, t, n) {
11652
11652
  subduedText: t.subduedText,
11653
11653
  type: "value",
11654
11654
  value: t.value
11655
- })), Ae = (e) => {
11655
+ })), je = (e) => {
11656
11656
  if (e.controlled) return [];
11657
- if (e.type === "range") return Te(e);
11658
- if (e.type === "boolean") return Ce(e);
11659
- if (e.type === "exists") return we(e);
11660
- if (e.isAggregate) return [...Oe(e), ...De(e)];
11657
+ if (e.type === "range") return Ee(e);
11658
+ if (e.type === "boolean") return we(e);
11659
+ if (e.type === "exists") return Te(e);
11660
+ if (e.isAggregate) return [...Ae(e), ...Oe(e)];
11661
11661
  let t = new Map(od(e.knownOptions ?? []).map((e) => [e.value, e]));
11662
- return [...(e.selectedValues ?? []).map((n) => Ee(e, n, t)), ...De(e)];
11663
- }, je = () => {
11664
- He(), Se(null, "clear-all");
11662
+ return [...(e.selectedValues ?? []).map((n) => De(e, n, t)), ...Oe(e)];
11665
11663
  }, Me = () => {
11666
- Ue();
11664
+ qe(), Ce(null, "clear-all");
11665
+ }, Ne = () => {
11666
+ Q();
11667
11667
  let r = p.value, a = r ? r.stagedFilterModel.value : i.value;
11668
11668
  r && (b(r, a), r.commitStagedFilterSelections(), r.initStagedFilterSelections()), !e.filterStore && !o && (t.value = a), n("apply", a);
11669
- }, Ne = () => {
11670
- He();
11669
+ }, Pe = () => {
11670
+ qe();
11671
11671
  let e = p.value;
11672
11672
  e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
11673
- }, Pe = (e) => Mp(Y(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
11674
- let r = Y(e);
11675
- r?.isAggregate && (be(r, t), Se(Vd({
11673
+ }, Fe = (e) => Mp(X(e)?.dataType), Ie = (e, t, n = "value-toggle") => {
11674
+ let r = X(e);
11675
+ r?.isAggregate && (xe(r, t), Ce(Vd({
11676
11676
  baseModel: v.value,
11677
11677
  colDef: r.colDef,
11678
11678
  options: r.knownOptions ?? [],
11679
11679
  state: t
11680
11680
  }), n, r.key, "value"));
11681
- }, Ie = (e, t) => {
11681
+ }, Le = (e, t) => {
11682
11682
  if (t.type === "aggregate-selection") {
11683
- Fe(e, t.value);
11683
+ Ie(e, t.value);
11684
11684
  return;
11685
11685
  }
11686
- let n = t.field ?? e, r = K(n) ?? Y(e)?.colDef;
11686
+ let n = t.field ?? e, r = J(n) ?? X(e)?.colDef;
11687
11687
  if (t.type === "value") {
11688
- let r = Y(e), i = fe(e, n, t.value);
11688
+ let r = X(e), i = fe(e, n, t.value);
11689
11689
  if (r?.isAggregate && i) {
11690
- Fe(e, ef({
11690
+ Ie(e, ef({
11691
11691
  checked: t.checked,
11692
11692
  option: i,
11693
11693
  options: r.knownOptions ?? [],
@@ -11695,37 +11695,54 @@ function tm(e, t, n) {
11695
11695
  }));
11696
11696
  return;
11697
11697
  }
11698
- Ye(e, n, t.value, t.checked, i);
11698
+ $e(e, n, t.value, t.checked, i);
11699
11699
  return;
11700
11700
  }
11701
11701
  if (t.type === "range") {
11702
- We(n, t.value, r);
11702
+ Je(n, t.value, r);
11703
11703
  return;
11704
11704
  }
11705
11705
  if (t.type === "boolean") {
11706
- Se(Pp(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
11706
+ Ce(Pp(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
11707
11707
  return;
11708
11708
  }
11709
- Se(Fp(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
11710
- }, Le = (e, t, n, r) => {
11709
+ Ce(Fp(v.value, n, t.value, Fe(n), _.value, r), "exists-change", n, "exists");
11710
+ }, Re = (e, t, n, r) => {
11711
11711
  let i = p.value;
11712
11712
  return !i || e.type !== "value" ? !1 : n !== "open" || r ? !0 : i.filterLoadingMap.value[e.key] ? !1 : i.filterStaleMap.value[e.key] || !(i.filterOptionsMap.value[e.key] ?? []).length ? !0 : (i.filterSearchQueries.value[e.key] ?? "") !== t;
11713
- }, Re = (e, t) => {
11714
- let n = Y(e);
11715
- if (!n || n.type !== "value" || n.controlled || n.isAggregate || !n.colDef.context?.metadataDisplayFields?.length || W(n.colDef).length !== 1) return;
11716
- let r = new Set(t), i = od(n.knownOptions ?? []);
11717
- for (let [t, a] of ie(n.colDef, n.knownOptions ?? [])) {
11718
- let o = a.filter((n) => r.has(n) && !i.some((r) => sd(r, t, n, e)));
11719
- if (o.length) {
11720
- console.error(`PvFilterPanel: removed selected "${t}" values with no display name: ${o.join(", ")}`);
11721
- let r = a.filter((e) => !o.includes(e));
11722
- ye(e, t, r), Se(Lp(v.value, t, r, _.value, K(t) ?? n.colDef), "remove-filter", t, "value");
11713
+ }, ze = (e) => {
11714
+ let t = /* @__PURE__ */ new Map();
11715
+ if (e.type !== "value" || e.controlled || e.isAggregate || !e.colDef.context?.metadataDisplayFields?.length || ne(e.colDef).length !== 1) return t;
11716
+ let n = od(e.knownOptions ?? []);
11717
+ for (let [r, i] of ie(e.colDef, e.knownOptions ?? [])) {
11718
+ let a = i.filter((t) => !n.some((n) => sd(n, r, t, e.key)));
11719
+ a.length && t.set(r, a);
11720
+ }
11721
+ return t;
11722
+ }, Be = (e, t) => {
11723
+ let n = X(e);
11724
+ if (!n) return;
11725
+ let r = new Set(t);
11726
+ for (let [t, i] of ze(n)) {
11727
+ let a = i.filter((e) => r.has(e));
11728
+ if (a.length) {
11729
+ console.error(`PvFilterPanel: removed selected "${t}" values with no display name: ${a.join(", ")}`);
11730
+ let r = (y.value.get(t)?.values ?? []).filter((e) => !a.includes(e));
11731
+ be(e, t, r), Ce(Lp(v.value, t, r, _.value, J(t) ?? n.colDef), "remove-filter", t, "value");
11723
11732
  }
11724
11733
  }
11725
- }, ze = (e, t, n, r) => {
11726
- let i = p.value;
11727
- if (!Le(e, t, n, r) || !i) return;
11728
- let a = Array.from(new Set([...ie(e.colDef, e.knownOptions ?? []).values()].flat())), o = n === "open" && !r && !!i.filterOptionsHandler.value, s = i.fetchFilterOptions({
11734
+ }, Ve = r(() => {
11735
+ let e = p.value;
11736
+ return e.hasFilterOptionsSource?.value ?? !!e.filterOptionsHandler.value;
11737
+ }), He = /* @__PURE__ */ new Map();
11738
+ K(p, () => He.clear(), { flush: "sync" });
11739
+ let Ue = (e, t, n, r) => {
11740
+ let i = p.value, a = Array.from(new Set([...ie(e.colDef, e.knownOptions ?? []).values()].flat())), o = n === "open" && !r && Ve.value;
11741
+ if (o) {
11742
+ let t = He.get(e.key) ?? /* @__PURE__ */ new Set();
11743
+ a.forEach((e) => t.add(e)), He.set(e.key, t);
11744
+ }
11745
+ let s = i.fetchFilterOptions({
11729
11746
  colDef: e.colDef,
11730
11747
  field: e.key,
11731
11748
  filterModel: v.value,
@@ -11735,28 +11752,45 @@ function tm(e, t, n) {
11735
11752
  selectedValues: a
11736
11753
  }), c = i.filterRequestIdMap.value[e.key];
11737
11754
  s.then(() => {
11738
- o && i.filterRequestIdMap.value[e.key] === c && Re(e.key, a);
11755
+ o && i.filterRequestIdMap.value[e.key] === c && Be(e.key, a);
11739
11756
  });
11740
- }, Be = (e, t, r) => {
11741
- n("load-more", e.key, e.colDef, t, r), ze(e, t, r ? "child-load-more" : "load-more", r);
11742
- }, Ve = (e, t, n) => {
11743
- Se(Ip(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
11744
- }, He = () => {
11757
+ }, We = (e, t, n, r) => {
11758
+ !Re(e, t, n, r) || !p.value || Ue(e, t, n, r);
11759
+ };
11760
+ T(() => {
11761
+ K([
11762
+ Z,
11763
+ h,
11764
+ Ve
11765
+ ], ([e, t, n]) => {
11766
+ if (!t || !n) return;
11767
+ let r = p.value;
11768
+ for (let t of e) {
11769
+ let e = He.get(t.key);
11770
+ [...ze(t).values()].flat().some((t) => !e?.has(t)) && !r.filterLoadingMap.value[t.key] && Ue(t, t.searchQuery ?? "", "open");
11771
+ }
11772
+ }, { immediate: !0 });
11773
+ });
11774
+ let Ge = (e, t, r) => {
11775
+ n("load-more", e.key, e.colDef, t, r), We(e, t, r ? "child-load-more" : "load-more", r);
11776
+ }, Ke = (e, t, n) => {
11777
+ Ce(Ip(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
11778
+ }, qe = () => {
11745
11779
  for (let { timer: e } of l.values()) window.clearTimeout(e);
11746
11780
  l.clear();
11747
- }, Ue = () => {
11781
+ }, Q = () => {
11748
11782
  let e = [...l.entries()];
11749
- He();
11750
- for (let [t, n] of e) Ve(t, n.value, n.colDef);
11751
- }, We = (t, n, r) => {
11783
+ qe();
11784
+ for (let [t, n] of e) Ke(t, n.value, n.colDef);
11785
+ }, Je = (t, n, r) => {
11752
11786
  if (e.rangeDebounceMs <= 0) {
11753
- Ve(t, n, r);
11787
+ Ke(t, n, r);
11754
11788
  return;
11755
11789
  }
11756
11790
  let i = l.get(t);
11757
11791
  i && window.clearTimeout(i.timer);
11758
11792
  let a = window.setTimeout(() => {
11759
- l.delete(t), Ve(t, n, r);
11793
+ l.delete(t), Ke(t, n, r);
11760
11794
  }, e.rangeDebounceMs);
11761
11795
  l.set(t, {
11762
11796
  colDef: r,
@@ -11764,72 +11798,72 @@ function tm(e, t, n) {
11764
11798
  value: n
11765
11799
  });
11766
11800
  };
11767
- C(He);
11768
- let Ge = (e, t) => {
11769
- n("search-change", e.key, t, e.colDef), ze(e, t, "search");
11770
- }, Ke = (e, t = e.searchQuery ?? "") => {
11771
- ze(e, t, "open");
11772
- }, qe = r(() => p.value.filterOptionsHandler.value != null), Q = (e, t) => {
11801
+ C(qe);
11802
+ let Ye = (e, t) => {
11803
+ n("search-change", e.key, t, e.colDef), We(e, t, "search");
11804
+ }, Xe = (e, t = e.searchQuery ?? "") => {
11805
+ We(e, t, "open");
11806
+ }, Ze = r(() => p.value.filterOptionsHandler.value != null), Qe = (e, t) => {
11773
11807
  p.value.setFilterFacetSelections(e, t);
11774
- }, Je = (e, t, r = e.searchQuery ?? "") => {
11808
+ }, $ = (e, t, r = e.searchQuery ?? "") => {
11775
11809
  let i = p.value;
11776
- ke(i.filterFacetSelectionMap.value[e.key] ?? {}, t) || (Q(e.key, t), n("facet-change", e.key, t, e.colDef), qe.value && ze(e, r, "facet-change"));
11777
- }, Ye = (t, r, i, a, o) => {
11778
- let s = Y(t), c = s?.controlled ? e.controlledValues[t] ?? [] : y.value.get(r)?.values ?? [], l = s?.singleSelect ? a ? [i] : [] : a ? Array.from(new Set([...c, i])) : c.filter((e) => e !== i);
11810
+ ke(i.filterFacetSelectionMap.value[e.key] ?? {}, t) || (Qe(e.key, t), n("facet-change", e.key, t, e.colDef), Ze.value && We(e, r, "facet-change"));
11811
+ }, $e = (t, r, i, a, o) => {
11812
+ let s = X(t), c = s?.controlled ? e.controlledValues[t] ?? [] : y.value.get(r)?.values ?? [], l = s?.singleSelect ? a ? [i] : [] : a ? Array.from(new Set([...c, i])) : c.filter((e) => e !== i);
11779
11813
  if (s?.controlled) {
11780
11814
  n("controlled-change", t, l, s.colDef);
11781
11815
  return;
11782
11816
  }
11783
- ye(t, r, l, a ? o : void 0), Se(Lp(v.value, r, l, _.value, K(r) ?? s?.colDef), "value-toggle", r, "value");
11817
+ be(t, r, l, a ? o : void 0), Ce(Lp(v.value, r, l, _.value, J(r) ?? s?.colDef), "value-toggle", r, "value");
11784
11818
  };
11785
11819
  return {
11786
- resolvedFilters: X,
11787
- appliedGroups: Z,
11788
- appliedCount: pe,
11789
- hasActiveFilters: me,
11790
- showClearAll: he,
11791
- visibleSuggestions: _e,
11820
+ resolvedFilters: Z,
11821
+ appliedGroups: pe,
11822
+ appliedCount: me,
11823
+ hasActiveFilters: he,
11824
+ showClearAll: ge,
11825
+ visibleSuggestions: ve,
11792
11826
  effectiveFilterModelType: _,
11793
11827
  activeFilterModel: v,
11794
11828
  effectiveFilterStore: p,
11795
- findResolvedFilter: Y,
11796
- getRepresentedFields: W,
11797
- activateFilter: Ke,
11798
- applyStagedFilters: Me,
11799
- cancelStagedFilters: Ne,
11800
- clearAllFilters: je,
11801
- getSuggestionKey: ve,
11802
- handleControlChange: Ie,
11803
- handleFacetChange: Je,
11804
- handleLoadMore: Be,
11805
- handleSearchChange: Ge,
11829
+ findResolvedFilter: X,
11830
+ getRepresentedFields: ne,
11831
+ activateFilter: Xe,
11832
+ applyStagedFilters: Ne,
11833
+ cancelStagedFilters: Pe,
11834
+ clearAllFilters: Me,
11835
+ getSuggestionKey: ye,
11836
+ handleControlChange: Le,
11837
+ handleFacetChange: $,
11838
+ handleLoadMore: Ge,
11839
+ handleSearchChange: Ye,
11806
11840
  handleSuggestionClick: (e) => {
11807
11841
  if (e.filter.type === "value" && e.option) {
11808
- let t = Y(e.field), n = ad(e.option, e.field), r = id(e.option) ?? e.filter.value;
11809
- t?.isAggregate ? Fe(e.field, ef({
11842
+ let t = X(e.field), n = ad(e.option, e.field), r = id(e.option) ?? e.filter.value;
11843
+ t?.isAggregate ? Ie(e.field, ef({
11810
11844
  checked: e.filter.checked,
11811
11845
  option: e.option,
11812
11846
  options: t.knownOptions ?? [],
11813
11847
  state: t.aggregateSelectionState ?? []
11814
- })) : Ye(e.field, n, r, e.filter.checked, e.option);
11815
- } else Ie(e.field, e.filter);
11848
+ })) : $e(e.field, n, r, e.filter.checked, e.option);
11849
+ } else Le(e.field, e.filter);
11816
11850
  n("suggestion-click", e);
11817
11851
  },
11818
11852
  removeAppliedFilter: (e, t, n) => {
11819
- let r = n ?? Y(e)?.type ?? "value";
11853
+ let r = n ?? X(e)?.type ?? "value";
11820
11854
  if (r === "range" || !n && t === Zp) {
11821
- Se(Ip(v.value, e, null, null, _.value, K(e) ?? Y(e)?.colDef), "remove-filter", e, "range");
11855
+ Ce(Ip(v.value, e, null, null, _.value, J(e) ?? X(e)?.colDef), "remove-filter", e, "range");
11822
11856
  return;
11823
11857
  }
11824
11858
  if (r === "boolean" || !n && t === Qp) {
11825
- Se(Pp(v.value, e, null, _.value, "boolean", K(e) ?? Y(e)?.colDef), "remove-filter", e, "boolean");
11859
+ Ce(Pp(v.value, e, null, _.value, "boolean", J(e) ?? X(e)?.colDef), "remove-filter", e, "boolean");
11826
11860
  return;
11827
11861
  }
11828
11862
  if (r === "exists" || !n && t === $p) {
11829
- Se(Fp(v.value, e, !1, "text", _.value, K(e) ?? Y(e)?.colDef), "remove-filter", e, "exists");
11863
+ Ce(Fp(v.value, e, !1, "text", _.value, J(e) ?? X(e)?.colDef), "remove-filter", e, "exists");
11830
11864
  return;
11831
11865
  }
11832
- let i = Y(e);
11866
+ let i = X(e);
11833
11867
  if (r === "value" && i?.isAggregate) {
11834
11868
  let e = Fd(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? ef({
11835
11869
  checked: !1,
@@ -11837,14 +11871,14 @@ function tm(e, t, n) {
11837
11871
  options: i.knownOptions ?? [],
11838
11872
  state: n
11839
11873
  }) : n.filter((e) => e.id !== t);
11840
- Fe(i.key, r, "remove-filter");
11874
+ Ie(i.key, r, "remove-filter");
11841
11875
  return;
11842
11876
  }
11843
11877
  let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
11844
- ye(Y(e)?.key ?? e, e, a), Se(Lp(v.value, e, a, _.value, K(e) ?? Y(e)?.colDef), "remove-filter", e, "value");
11878
+ be(X(e)?.key ?? e, e, a), Ce(Lp(v.value, e, a, _.value, J(e) ?? X(e)?.colDef), "remove-filter", e, "value");
11845
11879
  },
11846
- setFacetSelections: Q,
11847
- usesHandlerFacets: qe
11880
+ setFacetSelections: Qe,
11881
+ usesHandlerFacets: Ze
11848
11882
  };
11849
11883
  }
11850
11884
  //#endregion
@@ -11970,19 +12004,19 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
11970
12004
  ], ["update:filterModel", "update:isCollapsed"]),
11971
12005
  setup(e, { emit: n }) {
11972
12006
  let c = e, l = U(e, "filterModel"), d = U(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: x, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: D, removeAppliedFilter: O } = tm(c, l, f), A = j("filters"), P = j({}), F = j(null), I = j(!1), L = j(!1), z = j(""), B = r(() => c.enableFilterSearch ? z.value.trim().toLowerCase() : ""), ee = r(() => B.value.length > 0), H = (e) => e.label.toLowerCase().includes(B.value);
11973
- G(ee, (e) => {
12007
+ K(ee, (e) => {
11974
12008
  e && (F.value = null);
11975
- }), G(F, (e) => {
12009
+ }), K(F, (e) => {
11976
12010
  e !== null && (z.value = "");
11977
12011
  });
11978
- let te = (e) => e.colDef.context?.filterCollapsedByDefault === !0, ne = r(() => ee.value ? p.value.filter(H) : F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), W = r(() => ne.value.filter((e) => !te(e))), re = r(() => ne.value.filter(te)), ie = r(() => F.value !== null), ae = r(() => ie.value || ee.value || I.value ? [...W.value, ...re.value] : W.value), oe = r(() => ee.value ? "No filters match your search." : "No filters in this category."), ce = r(() => `${I.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), le = r(() => A.value === "filters" && !ie.value && !ee.value && re.value.length > 0), J = r(() => c.externalFilters.filter((e) => e.values.length > 0)), ue = r(() => J.value.filter((e) => e.removable !== !1)), de = r(() => J.value.reduce((e, t) => e + t.values.length, 0)), Y = r(() => ue.value.reduce((e, t) => e + t.values.length, 0)), fe = r(() => h.value + de.value), X = r(() => g.value || Y.value > 0), Z = r(() => !c.readOnly && (X.value || c.staged)), pe = r(() => ae.value.map((e) => ({
12012
+ let te = (e) => e.colDef.context?.filterCollapsedByDefault === !0, W = r(() => ee.value ? p.value.filter(H) : F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), G = r(() => W.value.filter((e) => !te(e))), ne = r(() => W.value.filter(te)), re = r(() => F.value !== null), ie = r(() => re.value || ee.value || I.value ? [...G.value, ...ne.value] : G.value), ae = r(() => ee.value ? "No filters match your search." : "No filters in this category."), se = r(() => `${I.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), ce = r(() => A.value === "filters" && !re.value && !ee.value && ne.value.length > 0), Y = r(() => c.externalFilters.filter((e) => e.values.length > 0)), le = r(() => Y.value.filter((e) => e.removable !== !1)), ue = r(() => Y.value.reduce((e, t) => e + t.values.length, 0)), de = r(() => le.value.reduce((e, t) => e + t.values.length, 0)), X = r(() => h.value + ue.value), fe = r(() => g.value || de.value > 0), Z = r(() => !c.readOnly && (fe.value || c.staged)), pe = r(() => ie.value.map((e) => ({
11979
12013
  ...e,
11980
12014
  isOpen: P.value[e.key] ?? e.isOpen ?? !1
11981
12015
  }))), me = r(() => [{
11982
12016
  label: "Filters",
11983
12017
  value: "filters"
11984
12018
  }, {
11985
- label: `Applied (${fe.value})`,
12019
+ label: `Applied (${X.value})`,
11986
12020
  value: "applied"
11987
12021
  }]), he = r(() => ({
11988
12022
  "--flex-align": "stretch",
@@ -11997,7 +12031,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
11997
12031
  }, ve = () => {
11998
12032
  L.value = !1;
11999
12033
  }, ye = () => {
12000
- g.value && x(), ue.value.forEach((e) => {
12034
+ g.value && x(), le.value.forEach((e) => {
12001
12035
  e.values.forEach((t) => f("remove-external-filter", e.key, t.value));
12002
12036
  }), L.value = !1;
12003
12037
  }, be = () => {
@@ -12025,7 +12059,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12025
12059
  variant: "secondary",
12026
12060
  onClick: r[0] ||= (e) => d.value = !0
12027
12061
  }))]),
12028
- s("div", im, [q(s("div", am, [
12062
+ s("div", im, [J(s("div", am, [
12029
12063
  !e.readOnly && V(_).length ? (k(), o("section", om, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", sm, [(k(!0), o(t, null, M(V(_), (e) => (k(), i(Pi, {
12030
12064
  key: V(C)(e),
12031
12065
  icon: e.icon,
@@ -12056,7 +12090,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12056
12090
  "onUpdate:modelValue": r[2] ||= (e) => z.value = e,
12057
12091
  placeholder: e.filterSearchPlaceholder
12058
12092
  }, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
12059
- V(p).length ? ne.value.length ? (k(), o("div", dm, [(k(!0), o(t, null, M(pe.value, (t) => (k(), i(Nf, {
12093
+ V(p).length ? W.value.length ? (k(), o("div", dm, [(k(!0), o(t, null, M(pe.value, (t) => (k(), i(Nf, {
12060
12094
  key: t.key,
12061
12095
  "disable-while-loading": e.disableWhileLoading,
12062
12096
  filter: t,
@@ -12073,17 +12107,17 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12073
12107
  "onLoadMore",
12074
12108
  "onOpenChange",
12075
12109
  "onSearchChange"
12076
- ]))), 128)), le.value ? (k(), i($, {
12110
+ ]))), 128)), ce.value ? (k(), i($, {
12077
12111
  key: 0,
12078
12112
  class: "pv-filter-panel-collapsed-filters-toggle pv-text-brand",
12079
- label: ce.value,
12113
+ label: se.value,
12080
12114
  variant: "ghost",
12081
12115
  onClick: r[5] ||= (e) => I.value = !I.value
12082
- }, null, 8, ["label"])) : a("", !0)])) : (k(), o("div", um, R(oe.value), 1)) : (k(), o("div", lm, " No filters available. "))
12083
- ], 512), [[se, A.value === "filters"]]), q(u(Vf, {
12116
+ }, null, 8, ["label"])) : a("", !0)])) : (k(), o("div", um, R(ae.value), 1)) : (k(), o("div", lm, " No filters available. "))
12117
+ ], 512), [[oe, A.value === "filters"]]), J(u(Vf, {
12084
12118
  "applied-count": V(h),
12085
12119
  "applied-groups": V(m),
12086
- "external-filters": J.value,
12120
+ "external-filters": Y.value,
12087
12121
  "read-only": e.readOnly,
12088
12122
  onRemoveExternalFilter: r[6] ||= (e, t) => f("remove-external-filter", e, t),
12089
12123
  onRemoveFilter: V(O)
@@ -12093,8 +12127,8 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12093
12127
  "external-filters",
12094
12128
  "read-only",
12095
12129
  "onRemoveFilter"
12096
- ]), [[se, A.value === "applied"]])]),
12097
- Z.value ? (k(), o("div", fm, [s("div", pm, [X.value && !e.readOnly ? (k(), i($, {
12130
+ ]), [[oe, A.value === "applied"]])]),
12131
+ Z.value ? (k(), o("div", fm, [s("div", pm, [fe.value && !e.readOnly ? (k(), i($, {
12098
12132
  key: 0,
12099
12133
  class: "pv-text-brand",
12100
12134
  label: e.clearAllLabel,
@@ -12115,8 +12149,8 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12115
12149
  header: e.clearAllHeader,
12116
12150
  style: { "--max-width": "440px" }
12117
12151
  }, {
12118
- body: K(() => [s("p", mm, R(e.clearAllBody), 1)]),
12119
- footer: K(() => [s("div", hm, [u($, {
12152
+ body: q(() => [s("p", mm, R(e.clearAllBody), 1)]),
12153
+ footer: q(() => [s("div", hm, [u($, {
12120
12154
  label: e.cancelLabel,
12121
12155
  variant: "ghost",
12122
12156
  onClick: ve
@@ -12162,7 +12196,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12162
12196
  class: "pv-toggle-ghost pv-text-default",
12163
12197
  for: i.value
12164
12198
  }, [
12165
- q(s("input", {
12199
+ J(s("input", {
12166
12200
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
12167
12201
  class: "pv-hide",
12168
12202
  id: i.value,
@@ -12170,7 +12204,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12170
12204
  value: e.value,
12171
12205
  name: e.name,
12172
12206
  disabled: e.disabled
12173
- }, null, 8, vm), [[ie, n.value]]),
12207
+ }, null, 8, vm), [[re, n.value]]),
12174
12208
  e.label ? (k(), o("span", ym, R(e.label), 1)) : a("", !0),
12175
12209
  s("span", bm, R(e.rightCounterBadge), 1)
12176
12210
  ], 8, _m));
@@ -12344,45 +12378,45 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12344
12378
  C(() => {
12345
12379
  for (let e of Object.keys(H.value)) y(e, {});
12346
12380
  });
12347
- let ne = (e) => {
12381
+ let W = (e) => {
12348
12382
  let t = O.value?.key;
12349
12383
  return t && H.value[t]?.[e] || [];
12350
- }, W = () => {
12384
+ }, G = () => {
12351
12385
  let e = O.value?.key;
12352
12386
  if (!e) return {};
12353
12387
  let t = H.value[e] ?? {};
12354
12388
  return Object.fromEntries(Object.keys(ee.value).filter((e) => t[e]?.length).map((e) => [e, t[e]]));
12355
- }, re = (e) => e.map((e) => ({
12389
+ }, ne = (e) => e.map((e) => ({
12356
12390
  id: e,
12357
12391
  text: e
12358
- })), ie = (e, t) => {
12359
- let n = new Set(ne(e));
12360
- return re(t).filter((e) => n.has(e.id));
12361
- }, ae = (e, t) => {
12392
+ })), re = (e, t) => {
12393
+ let n = new Set(W(e));
12394
+ return ne(t).filter((e) => n.has(e.id));
12395
+ }, ie = (e, t) => {
12362
12396
  let n = O.value;
12363
12397
  n && (H.value[n.key] = {
12364
12398
  ...H.value[n.key],
12365
12399
  [e]: t.map((e) => e.id)
12366
12400
  });
12367
- }, oe = r(() => Object.keys(ee.value).map((e) => [e, new Set(ne(e))]).filter(([, e]) => e.size > 0)), se = (e) => oe.value.every(([t, n]) => {
12401
+ }, ae = r(() => Object.keys(ee.value).map((e) => [e, new Set(W(e))]).filter(([, e]) => e.size > 0)), oe = (e) => ae.value.every(([t, n]) => {
12368
12402
  let r = e.metadata?.filters?.[t];
12369
12403
  return r === void 0 ? x.value : (Array.isArray(r) ? r : [r]).some((e) => n.has(String(e)));
12370
- }), ce = r(() => {
12371
- let e = (O.value?.options ?? []).filter(se), t = L.value;
12404
+ }), se = r(() => {
12405
+ let e = (O.value?.options ?? []).filter(oe), t = L.value;
12372
12406
  return t ? e.filter((e) => z(e).includes(t)) : e;
12373
- }), q = r(() => A.value || O.value?.singleSelect ? [] : (O.value?.selectedValues ?? []).map((e) => B.value[e] ?? {
12407
+ }), J = r(() => A.value || O.value?.singleSelect ? [] : (O.value?.selectedValues ?? []).map((e) => B.value[e] ?? {
12374
12408
  label: e,
12375
12409
  value: e
12376
- })), le = j([]), J = r(() => new Set(le.value)), ue = () => {
12377
- le.value = A.value || O.value?.singleSelect ? [] : [...O.value?.selectedValues ?? []];
12410
+ })), ce = j([]), Y = r(() => new Set(ce.value)), le = () => {
12411
+ ce.value = A.value || O.value?.singleSelect ? [] : [...O.value?.selectedValues ?? []];
12378
12412
  };
12379
- ue();
12380
- let de = r(() => A.value || O.value?.singleSelect ? ce.value : [...(O.value?.selectedValues ?? []).filter((e) => !ce.value.some((t) => t.value === e)).map((e) => B.value[e] ?? {
12413
+ le();
12414
+ let ue = r(() => A.value || O.value?.singleSelect ? se.value : [...(O.value?.selectedValues ?? []).filter((e) => !se.value.some((t) => t.value === e)).map((e) => B.value[e] ?? {
12381
12415
  label: e,
12382
12416
  value: e
12383
- }), ...ce.value]), Y = r(() => {
12417
+ }), ...se.value]), de = r(() => {
12384
12418
  let e = /* @__PURE__ */ new Map();
12385
- for (let t of de.value) {
12419
+ for (let t of ue.value) {
12386
12420
  let n = t.section ?? "";
12387
12421
  e.has(n) || e.set(n, []), e.get(n).push(t);
12388
12422
  }
@@ -12397,13 +12431,13 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12397
12431
  key: t,
12398
12432
  label: r?.label ?? t,
12399
12433
  section: r,
12400
- options: [...i.filter((e) => J.value.has(e.value)), ...i.filter((e) => !J.value.has(e.value))]
12434
+ options: [...i.filter((e) => Y.value.has(e.value)), ...i.filter((e) => !Y.value.has(e.value))]
12401
12435
  };
12402
12436
  });
12403
- }), fe = r(() => A.value && O.value ? nf({
12437
+ }), X = r(() => A.value && O.value ? nf({
12404
12438
  options: O.value.knownOptions ?? [],
12405
12439
  state: P.value
12406
- }) : /* @__PURE__ */ new Map()), X = (e) => e.isAggregate ? of(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, Z = (e) => A.value ? fe.value.get(e.value) ?? {
12440
+ }) : /* @__PURE__ */ new Map()), fe = (e) => e.isAggregate ? of(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, Z = (e) => A.value ? X.value.get(e.value) ?? {
12407
12441
  indeterminate: !1,
12408
12442
  selected: !1
12409
12443
  } : {
@@ -12432,13 +12466,13 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12432
12466
  });
12433
12467
  }
12434
12468
  }, ve = () => {
12435
- for (let e of ce.value) Z(e).selected || ge(e, !0);
12469
+ for (let e of se.value) Z(e).selected || ge(e, !0);
12436
12470
  }, ye = () => {
12437
12471
  if (A.value) {
12438
12472
  for (let e of od(O.value?.knownOptions ?? [])) Z(e).selected && ge(e, !1);
12439
12473
  return;
12440
12474
  }
12441
- for (let e of q.value) ge(e, !1);
12475
+ for (let e of J.value) ge(e, !1);
12442
12476
  }, be = () => {
12443
12477
  O.value && f("load-more", O.value.key, O.value.colDef, E.value.trim());
12444
12478
  }, xe = r({
@@ -12447,13 +12481,13 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12447
12481
  w.value = e;
12448
12482
  }
12449
12483
  });
12450
- return G(() => O.value?.key, (e) => {
12451
- E.value = O.value?.searchQuery ?? "", ue(), e && d.value && O.value && m(O.value);
12452
- }), G(d, (e) => {
12453
- e && (ue(), O.value && m(O.value));
12484
+ return K(() => O.value?.key, (e) => {
12485
+ E.value = O.value?.searchQuery ?? "", le(), e && d.value && O.value && m(O.value);
12486
+ }), K(d, (e) => {
12487
+ e && (le(), O.value && m(O.value));
12454
12488
  }), _e([() => O.value?.key, H], () => {
12455
12489
  let e = O.value;
12456
- e && v(e, W(), E.value.trim());
12490
+ e && v(e, G(), E.value.trim());
12457
12491
  }, {
12458
12492
  debounce: 300,
12459
12493
  deep: !0,
@@ -12473,8 +12507,8 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12473
12507
  offset: 8,
12474
12508
  "z-index": 1e3
12475
12509
  }, {
12476
- trigger: K(() => [N(n.$slots, "trigger", {}, void 0, !0)]),
12477
- content: K(() => [s("div", {
12510
+ trigger: q(() => [N(n.$slots, "trigger", {}, void 0, !0)]),
12511
+ content: q(() => [s("div", {
12478
12512
  class: "pv-surface pv-bordered pv-radius-lg pv-inset-square-12",
12479
12513
  role: "dialog",
12480
12514
  "aria-label": e.ariaLabel,
@@ -12489,7 +12523,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12489
12523
  class: "pv-full-width pv-space-between",
12490
12524
  deselect: !1,
12491
12525
  label: e.label,
12492
- "right-counter-badge": X(e),
12526
+ "right-counter-badge": fe(e),
12493
12527
  value: e.key
12494
12528
  }, null, 8, [
12495
12529
  "modelValue",
@@ -12512,10 +12546,10 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12512
12546
  key: `facet-${t}`,
12513
12547
  disabled: O.value?.disabled,
12514
12548
  label: e.headerName || V(Ae)(t),
12515
- "model-value": ie(t, e.values),
12516
- options: re(e.values),
12549
+ "model-value": re(t, e.values),
12550
+ options: ne(e.values),
12517
12551
  variant: "secondary",
12518
- "onUpdate:modelValue": (e) => ae(t, e)
12552
+ "onUpdate:modelValue": (e) => ie(t, e)
12519
12553
  }, null, 8, [
12520
12554
  "disabled",
12521
12555
  "label",
@@ -12524,7 +12558,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12524
12558
  "onUpdate:modelValue"
12525
12559
  ]))), 128))])) : a("", !0),
12526
12560
  O.value?.isLoading ? (k(), o("div", Dm, [u(Be, { size: "sm" })])) : O.value ? (k(), o(t, { key: 2 }, [
12527
- s("div", Om, [(k(!0), o(t, null, M(Y.value, (e) => (k(), o("div", {
12561
+ s("div", Om, [(k(!0), o(t, null, M(de.value, (e) => (k(), o("div", {
12528
12562
  key: `section-${e.key}`,
12529
12563
  class: "pv-flex-vertical",
12530
12564
  style: {
@@ -12575,7 +12609,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12575
12609
  "value",
12576
12610
  "onToggleValue"
12577
12611
  ])], 2))), 128))]))), 128))]),
12578
- ce.value.length ? a("", !0) : (k(), o("p", Am, " No matching values. ")),
12612
+ se.value.length ? a("", !0) : (k(), o("p", Am, " No matching values. ")),
12579
12613
  O.value.hasMore ? (k(), i($, {
12580
12614
  key: 1,
12581
12615
  class: "pv-text-brand",
@@ -12639,15 +12673,15 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12639
12673
  }, [N(n.$slots, "default", {}, void 0, !0), e.options.length ? (k(), o("div", Fm, [u(il, {
12640
12674
  variant: e.variant,
12641
12675
  "data-testid": "pv-hover-action-menu-actions",
12642
- onClick: r[0] ||= J(() => {}, ["stop"])
12676
+ onClick: r[0] ||= Y(() => {}, ["stop"])
12643
12677
  }, {
12644
- default: K(() => [s("div", Im, [(k(!0), o(t, null, M(e.options, (t) => (k(), i(fr, {
12678
+ default: q(() => [s("div", Im, [(k(!0), o(t, null, M(e.options, (t) => (k(), i(fr, {
12645
12679
  key: t.id,
12646
12680
  variant: "dark",
12647
12681
  position: "top-center",
12648
12682
  description: t.icon ? t.text : void 0
12649
12683
  }, {
12650
- trigger: K(() => [u($, {
12684
+ trigger: q(() => [u($, {
12651
12685
  variant: "ghost",
12652
12686
  size: "md",
12653
12687
  leftIcon: t.icon,
@@ -12802,21 +12836,21 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12802
12836
  width: "100%",
12803
12837
  maxWidth: "100%",
12804
12838
  "--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
12805
- }, f = W("search-input"), p = U(e, "searchText"), m = U(e, "query"), h = U(e, "options"), { addQueryOption: g, containsQueryOption: _, removeQueryOption: x } = Rm(), C = j(!1), w = j(!1), T = j(!1), E = ne(), D = r(() => !!(E.header || E.footer || E.empty)), O = te(), A = `${O}-options`, P = (e) => `${O}-option-${e}`, F = (e) => `${O}-group-${e}`, I = r(() => ie.value.length > 0 || n.optionsLoading || D.value), L = r(() => m.value === null ? n.placeholder : ""), z = j(null), B = r(() => z.value !== null && z.value !== "" && !w.value), ee = () => {
12839
+ }, f = G("search-input"), p = U(e, "searchText"), m = U(e, "query"), h = U(e, "options"), { addQueryOption: g, containsQueryOption: _, removeQueryOption: x } = Rm(), C = j(!1), w = j(!1), T = j(!1), E = W(), D = r(() => !!(E.header || E.footer || E.empty)), O = te(), A = `${O}-options`, P = (e) => `${O}-option-${e}`, F = (e) => `${O}-group-${e}`, I = r(() => re.value.length > 0 || n.optionsLoading || D.value), L = r(() => m.value === null ? n.placeholder : ""), z = j(null), B = r(() => z.value !== null && z.value !== "" && !w.value), ee = () => {
12806
12840
  m.value = null, p.value = "", z.value = null, T.value = !1;
12807
12841
  };
12808
- de("Enter", (e) => {
12809
- let t = ue.value;
12842
+ ue("Enter", (e) => {
12843
+ let t = le.value;
12810
12844
  if (t) {
12811
12845
  e.preventDefault(), me(t);
12812
12846
  return;
12813
12847
  }
12814
12848
  n.enableCustomOptionsInput && p.value.trim() && H();
12815
- }, { target: f }), de(["ArrowDown", "ArrowUp"], (e) => {
12816
- ce.value.length !== 0 && (e.preventDefault(), C.value = !0, X(e.key === "ArrowDown" ? 1 : -1));
12817
- }, { target: f }), de("Escape", () => {
12818
- C.value && (C.value = !1, J.value = -1);
12819
- }, { target: f }), de("Backspace", () => {
12849
+ }, { target: f }), ue(["ArrowDown", "ArrowUp"], (e) => {
12850
+ se.value.length !== 0 && (e.preventDefault(), C.value = !0, fe(e.key === "ArrowDown" ? 1 : -1));
12851
+ }, { target: f }), ue("Escape", () => {
12852
+ C.value && (C.value = !1, Y.value = -1);
12853
+ }, { target: f }), ue("Backspace", () => {
12820
12854
  if (p.value !== "") return;
12821
12855
  let e = m.value?.queryTerms;
12822
12856
  if (!e || e.length === 0) return;
@@ -12833,58 +12867,58 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12833
12867
  text: p.value,
12834
12868
  queryTerm: { queryText: p.value }
12835
12869
  }), _e());
12836
- }, re = (e) => {
12870
+ }, ne = (e) => {
12837
12871
  let t = e?.queryDisplayField || e?.queryField;
12838
12872
  if (t) return e?.exactMatch ? t : `Search in ${t}`;
12839
- }, ie = r(() => {
12873
+ }, re = r(() => {
12840
12874
  if (!h.value || h.value.length === 0) return [];
12841
12875
  let e = h.value;
12842
12876
  return n.processor === "field-only" && (e = h.value.filter((e) => e.queryTerm?.queryField)), m.value && (e = e.filter((e) => !_(m.value, e))), e.map((e) => ({
12843
12877
  ...e,
12844
- subText: e.subText ?? re(e.queryTerm),
12878
+ subText: e.subText ?? ne(e.queryTerm),
12845
12879
  searchText: p.value,
12846
12880
  context: e.queryTerm
12847
12881
  }));
12848
- }), ae = r(() => {
12882
+ }), ie = r(() => {
12849
12883
  let e = /* @__PURE__ */ new Map();
12850
- for (let t of ie.value) {
12884
+ for (let t of re.value) {
12851
12885
  let n = t.groupingLabel ?? "", r = e.get(n);
12852
12886
  r ? r.push(t) : e.set(n, [t]);
12853
12887
  }
12854
12888
  return Array.from(e.entries());
12855
- }), ce = r(() => ae.value.flatMap(([, e]) => e)), le = r(() => new Map(ce.value.map((e, t) => [e, t]))), J = j(-1), ue = r(() => {
12889
+ }), se = r(() => ie.value.flatMap(([, e]) => e)), ce = r(() => new Map(se.value.map((e, t) => [e, t]))), Y = j(-1), le = r(() => {
12856
12890
  if (!C.value) return null;
12857
- let e = ce.value[J.value] ?? null;
12891
+ let e = se.value[Y.value] ?? null;
12858
12892
  return e?.disabled ? null : e;
12859
- }), Y = r(() => ue.value ? P(J.value) : void 0), fe = (e) => {
12893
+ }), de = r(() => le.value ? P(Y.value) : void 0), X = (e) => {
12860
12894
  y(() => {
12861
12895
  document.getElementById(P(e))?.scrollIntoView?.({ block: "nearest" });
12862
12896
  });
12863
- }, X = (e) => {
12864
- let t = ce.value, n = t.length;
12897
+ }, fe = (e) => {
12898
+ let t = se.value, n = t.length;
12865
12899
  if (n === 0) return;
12866
- let r = J.value === -1 ? e > 0 ? -1 : 0 : J.value;
12900
+ let r = Y.value === -1 ? e > 0 ? -1 : 0 : Y.value;
12867
12901
  for (let i = 1; i <= n; i++) {
12868
12902
  let a = ((r + e * i) % n + n) % n;
12869
12903
  if (!t[a].disabled) {
12870
- J.value = a, fe(a);
12904
+ Y.value = a, X(a);
12871
12905
  return;
12872
12906
  }
12873
12907
  }
12874
12908
  }, Z = (e) => {
12875
- e.disabled || (J.value = le.value.get(e) ?? -1);
12909
+ e.disabled || (Y.value = ce.value.get(e) ?? -1);
12876
12910
  };
12877
- G([ce, p], () => {
12878
- J.value = -1;
12879
- }), G([
12880
- ie,
12911
+ K([se, p], () => {
12912
+ Y.value = -1;
12913
+ }), K([
12914
+ re,
12881
12915
  p,
12882
12916
  () => n.optionsLoading
12883
12917
  ], ([e, t, n]) => {
12884
12918
  t && t.length > 0 && (e.length > 0 || n || D.value) ? C.value = !0 : (!t || t.length === 0) && (C.value = !1);
12885
12919
  }, { immediate: !0 });
12886
12920
  let pe = () => {
12887
- n.enableCustomOptionsInput && H(), J.value = -1, C.value = !1, w.value = !1, T.value = !1;
12921
+ n.enableCustomOptionsInput && H(), Y.value = -1, C.value = !1, w.value = !1, T.value = !1;
12888
12922
  }, me = (e) => {
12889
12923
  try {
12890
12924
  let t = {
@@ -12910,7 +12944,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12910
12944
  let _e = () => {
12911
12945
  p.value = "";
12912
12946
  };
12913
- return (n, r) => q((k(), o("div", {
12947
+ return (n, r) => J((k(), o("div", {
12914
12948
  ref: "query-builder-input",
12915
12949
  class: b(["pv-relative pv-query-builder-input-wrapper", { "pv-query-builder-input-small": e.size === "lg" }]),
12916
12950
  onFocus: ge,
@@ -12936,7 +12970,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12936
12970
  "modelValue",
12937
12971
  "wrap-content",
12938
12972
  "query-term-display-limit"
12939
- ]), q(s("input", {
12973
+ ]), J(s("input", {
12940
12974
  "onUpdate:modelValue": r[2] ||= (e) => p.value = e,
12941
12975
  ref: "search-input",
12942
12976
  "data-testid": "pv-search-input",
@@ -12945,14 +12979,14 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12945
12979
  "aria-autocomplete": "list",
12946
12980
  "aria-expanded": I.value && C.value,
12947
12981
  "aria-controls": A,
12948
- "aria-activedescendant": Y.value,
12982
+ "aria-activedescendant": de.value,
12949
12983
  disabled: e.disabled,
12950
12984
  placeholder: L.value,
12951
12985
  "data-invalid": B.value ? "true" : void 0,
12952
12986
  style: S(p.value ? "min-width: 8rem;" : void 0),
12953
12987
  onFocus: ge,
12954
12988
  onBlur: ge
12955
- }, null, 44, Bm), [[oe, p.value]])], 4),
12989
+ }, null, 44, Bm), [[ae, p.value]])], 4),
12956
12990
  m.value && !e.hideClearButton ? (k(), i($, {
12957
12991
  key: 1,
12958
12992
  variant: "ghost",
@@ -12961,7 +12995,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12961
12995
  onClick: ee
12962
12996
  })) : a("", !0),
12963
12997
  B.value ? (k(), o("p", Vm, R(z.value), 1)) : a("", !0),
12964
- I.value ? q((k(), i(ei, {
12998
+ I.value ? J((k(), i(ei, {
12965
12999
  key: 3,
12966
13000
  class: "pv-scrollbar-visible",
12967
13001
  "css-custom-properties": d,
@@ -12970,18 +13004,18 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12970
13004
  listId: A,
12971
13005
  listRole: "listbox"
12972
13006
  }, c({
12973
- default: K(() => [e.optionsLoading ? (k(), o("div", Gm, [u(Be, { variant: "dark" })])) : (k(), o(t, { key: 0 }, [ie.value.length > 0 ? (k(!0), o(t, { key: 0 }, M(ae.value, ([e, n], r) => (k(), o(t, { key: e }, [e ? (k(), o("li", {
13007
+ default: q(() => [e.optionsLoading ? (k(), o("div", Gm, [u(Be, { variant: "dark" })])) : (k(), o(t, { key: 0 }, [re.value.length > 0 ? (k(!0), o(t, { key: 0 }, M(ie.value, ([e, n], r) => (k(), o(t, { key: e }, [e ? (k(), o("li", {
12974
13008
  key: 0,
12975
13009
  id: F(r),
12976
13010
  role: "presentation",
12977
13011
  class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
12978
13012
  }, R(e), 9, Hm)) : a("", !0), (k(!0), o(t, null, M(n, (t) => (k(), o("li", {
12979
13013
  key: `${e}-${t.id}`,
12980
- id: P(le.value.get(t) ?? -1),
13014
+ id: P(ce.value.get(t) ?? -1),
12981
13015
  role: "option",
12982
- "aria-selected": t === ue.value,
13016
+ "aria-selected": t === le.value,
12983
13017
  "aria-describedby": e ? F(r) : void 0,
12984
- class: b({ "pv-query-builder-option-active": t === ue.value }),
13018
+ class: b({ "pv-query-builder-option-active": t === le.value }),
12985
13019
  onMouseenter: (e) => Z(t)
12986
13020
  }, [u(os, v({ ref_for: !0 }, t, {
12987
13021
  config: l,
@@ -12991,13 +13025,13 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
12991
13025
  _: 2
12992
13026
  }, [n.$slots.header ? {
12993
13027
  name: "header",
12994
- fn: K(() => [N(n.$slots, "header")]),
13028
+ fn: q(() => [N(n.$slots, "header")]),
12995
13029
  key: "0"
12996
13030
  } : void 0, n.$slots.footer ? {
12997
13031
  name: "footer",
12998
- fn: K(() => [N(n.$slots, "footer")]),
13032
+ fn: q(() => [N(n.$slots, "footer")]),
12999
13033
  key: "1"
13000
- } : void 0]), 1536)), [[se, C.value]]) : a("", !0)
13034
+ } : void 0]), 1536)), [[oe, C.value]]) : a("", !0)
13001
13035
  ], 34)), [[V(ye), pe]]);
13002
13036
  }
13003
13037
  }), qm = (e) => !!(e.active || e.children?.some(qm)), Jm = {
@@ -13047,7 +13081,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13047
13081
  disabled: e.disabled,
13048
13082
  "css-custom-properties": { width: "100%" }
13049
13083
  }, {
13050
- trigger: K(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
13084
+ trigger: q(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
13051
13085
  role: t.url ? void 0 : "button",
13052
13086
  tabindex: t.url ? void 0 : 0,
13053
13087
  "data-active": V(qm)(t) || void 0,
@@ -13062,7 +13096,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13062
13096
  class: "pv-icon-16"
13063
13097
  })
13064
13098
  ], 16, Zm)]),
13065
- content: K(() => [u(l, {
13099
+ content: q(() => [u(l, {
13066
13100
  items: t.children,
13067
13101
  disabled: e.disabled
13068
13102
  }, null, 8, ["items", "disabled"])]),
@@ -13196,7 +13230,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13196
13230
  }),
13197
13231
  emits: /* @__PURE__ */ _(["change"], ["update:modelValue"]),
13198
13232
  setup(e, { emit: n }) {
13199
- let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = ir("sidebar-additional-content", { host: p }), { present: h } = ir("sidebar-additional-header", { host: p }), { present: g } = ir("sidebar-help-content", { host: p }), { present: _ } = ir("sidebar-profile-content", { host: p }), x = ne(), w = j(null), E = j(null), D = j({}), O = j(), A = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), I = j(0), L = fe(E), z = r(() => ({
13233
+ let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = ir("sidebar-additional-content", { host: p }), { present: h } = ir("sidebar-additional-header", { host: p }), { present: g } = ir("sidebar-help-content", { host: p }), { present: _ } = ir("sidebar-profile-content", { host: p }), x = W(), w = j(null), E = j(null), D = j({}), O = j(), A = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), I = j(0), L = X(E), z = r(() => ({
13200
13234
  "--pv-sidebar-hover-panel-height": `${L.height.value}px`,
13201
13235
  "--pv-sidebar-hover-panel-left": `${L.right.value}px`,
13202
13236
  "--pv-sidebar-hover-panel-top": `${L.top.value}px`
@@ -13210,18 +13244,18 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13210
13244
  let e = t.querySelector(ig);
13211
13245
  if (e) return e;
13212
13246
  }
13213
- }, W = (e, t) => {
13247
+ }, G = (e, t) => {
13214
13248
  if (e.shiftKey) return;
13215
13249
  let n = te(t);
13216
13250
  n && (e.preventDefault(), D.value[t] = !0, y(() => n.focus()));
13217
- }, re = (e) => {
13251
+ }, ne = (e) => {
13218
13252
  O.value = e, D.value[e] = !1, y(() => {
13219
13253
  P.get(e)?.focus({ preventScroll: !0 }), y(() => O.value = void 0);
13220
13254
  });
13255
+ }, re = (e, t) => {
13256
+ e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && ne(t);
13221
13257
  }, ie = (e, t) => {
13222
- e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && re(t);
13223
- }, ae = (e, t) => {
13224
- e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), re(t));
13258
+ e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), ne(t));
13225
13259
  };
13226
13260
  T(() => {
13227
13261
  p && (B = new MutationObserver((e) => {
@@ -13233,39 +13267,39 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13233
13267
  subtree: !0
13234
13268
  }));
13235
13269
  }), C(() => B?.disconnect());
13236
- let oe = (e) => {
13270
+ let ae = (e) => {
13237
13271
  for (let t of e) {
13238
13272
  if (t.active) return t;
13239
- let e = t.entities && oe(t.entities);
13273
+ let e = t.entities && ae(t.entities);
13240
13274
  if (e) return e;
13241
13275
  }
13242
- }, se = r(() => (c.organizations && oe(c.organizations)) ?? c.organizations?.[0]), ce = j((() => {
13276
+ }, oe = r(() => (c.organizations && ae(c.organizations)) ?? c.organizations?.[0]), se = j((() => {
13243
13277
  let e = {};
13244
13278
  return c.navItems?.forEach((t) => {
13245
13279
  qm(t) && (e[t.value] = !0);
13246
13280
  }), e;
13247
13281
  })());
13248
- G(() => c.navItems, (e) => {
13282
+ K(() => c.navItems, (e) => {
13249
13283
  e?.forEach((e) => {
13250
- qm(e) && (ce.value[e.value] = !0);
13284
+ qm(e) && (se.value[e.value] = !0);
13251
13285
  });
13252
13286
  });
13253
- let q = U(e, "modelValue"), J = j(!1), ue = r(() => !q.value && J.value), de = n, Y = j(!1), X = j(!1), Z = j(!1), pe = j({}), me = () => {
13254
- Y.value = !1, D.value = {}, pe.value = {}, X.value = !1, Z.value = !1;
13287
+ let J = U(e, "modelValue"), Y = j(!1), le = r(() => !J.value && Y.value), ue = n, de = j(!1), fe = j(!1), Z = j(!1), pe = j({}), me = () => {
13288
+ de.value = !1, D.value = {}, pe.value = {}, fe.value = !1, Z.value = !1;
13255
13289
  };
13256
- G(Y, (e) => {
13257
- e && (D.value = {}, X.value = !1, Z.value = !1);
13258
- }), G(X, (e) => {
13259
- e && (Y.value = !1, D.value = {}, Z.value = !1);
13260
- }), G(Z, (e) => {
13261
- e && (Y.value = !1, D.value = {}, X.value = !1);
13262
- }), G(q, () => {
13263
- me(), J.value = !0;
13290
+ K(de, (e) => {
13291
+ e && (D.value = {}, fe.value = !1, Z.value = !1);
13292
+ }), K(fe, (e) => {
13293
+ e && (de.value = !1, D.value = {}, Z.value = !1);
13294
+ }), K(Z, (e) => {
13295
+ e && (de.value = !1, D.value = {}, fe.value = !1);
13296
+ }), K(J, () => {
13297
+ me(), Y.value = !0;
13264
13298
  });
13265
13299
  let he = () => {
13266
- q.value = !q.value, de("change", { collapsed: q.value });
13300
+ J.value = !J.value, ue("change", { collapsed: J.value });
13267
13301
  }, ge = (e) => {
13268
- e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (J.value = !1);
13302
+ e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (Y.value = !1);
13269
13303
  }, _e = (e) => e.some(qm), ve = (e, t) => {
13270
13304
  if (t.url) {
13271
13305
  if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
@@ -13277,9 +13311,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13277
13311
  };
13278
13312
  return (n, r) => (k(), o("div", {
13279
13313
  class: b(["sidebar-layout sidebar-layout-new sidebar-layout-secondary", {
13280
- "is-collapsed": q.value,
13281
- "is-expanded": !q.value,
13282
- "is-transitioning": J.value
13314
+ "is-collapsed": J.value,
13315
+ "is-expanded": !J.value,
13316
+ "is-transitioning": Y.value
13283
13317
  }]),
13284
13318
  style: S(z.value),
13285
13319
  onTransitionend: ge
@@ -13289,19 +13323,19 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13289
13323
  ref: E,
13290
13324
  class: "sidebar-panel"
13291
13325
  }, [s("div", null, [V(h) ? (k(), o("div", nh, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
13292
- class: b(["sidebar-header", [{ "pv-border-bottom": q.value }]]),
13293
- "data-sidebar-collapsed": q.value || void 0
13326
+ class: b(["sidebar-header", [{ "pv-border-bottom": J.value }]]),
13327
+ "data-sidebar-collapsed": J.value || void 0
13294
13328
  }, [s("div", ih, [e.organizations && e.organizations.length ? (k(), o("div", ah, [u(ur, {
13295
- modelValue: X.value,
13296
- "onUpdate:modelValue": r[0] ||= (e) => X.value = e,
13297
- position: q.value ? "right-top" : "bottom-left",
13329
+ modelValue: fe.value,
13330
+ "onUpdate:modelValue": r[0] ||= (e) => fe.value = e,
13331
+ position: J.value ? "right-top" : "bottom-left",
13298
13332
  "use-teleport": !!w.value,
13299
13333
  "teleport-location": w.value ?? "body",
13300
13334
  "css-custom-properties": { width: "100%" }
13301
13335
  }, {
13302
- trigger: K(() => [u(fr, {
13303
- description: se.value?.label,
13304
- disabled: !q.value || J.value || X.value,
13336
+ trigger: q(() => [u(fr, {
13337
+ description: oe.value?.label,
13338
+ disabled: !J.value || Y.value || fe.value,
13305
13339
  variant: "white",
13306
13340
  position: "center-right",
13307
13341
  delay: 250,
@@ -13311,28 +13345,28 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13311
13345
  "teleport-location": w.value ?? "body",
13312
13346
  "css-custom-properties": { width: "100%" }
13313
13347
  }, {
13314
- trigger: K(() => [s("button", {
13348
+ trigger: q(() => [s("button", {
13315
13349
  type: "button",
13316
- class: b(["pv-nav-list-item pv-full-width pv-space-between", { "pv-sidebar-item-collapsed": q.value }]),
13350
+ class: b(["pv-nav-list-item pv-full-width pv-space-between", { "pv-sidebar-item-collapsed": J.value }]),
13317
13351
  "data-testid": "pv-sidebar-org-switcher",
13318
- "aria-label": `Switch organization: ${se.value?.label}`,
13319
- "aria-expanded": X.value
13320
- }, [s("div", sh, [s("span", ch, [se.value?.avatarUrl ? (k(), o("img", {
13352
+ "aria-label": `Switch organization: ${oe.value?.label}`,
13353
+ "aria-expanded": fe.value
13354
+ }, [s("div", sh, [s("span", ch, [oe.value?.avatarUrl ? (k(), o("img", {
13321
13355
  key: 0,
13322
- src: se.value.avatarUrl,
13356
+ src: oe.value.avatarUrl,
13323
13357
  alt: "Organization Avatar"
13324
- }, null, 8, lh)) : (k(), o("span", uh, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
13358
+ }, null, 8, lh)) : (k(), o("span", uh, R(oe.value?.label?.slice(0, 1)), 1))]), s("span", {
13325
13359
  class: "pv-text-title-lg pv-truncate",
13326
13360
  "data-sidebar-expanded-content": "",
13327
- "data-sidebar-collapsed": q.value || void 0,
13328
- "data-sidebar-expanding": ue.value || void 0,
13329
- title: se.value?.label
13330
- }, R(se.value?.label), 9, dh)]), u(Q, {
13361
+ "data-sidebar-collapsed": J.value || void 0,
13362
+ "data-sidebar-expanding": le.value || void 0,
13363
+ title: oe.value?.label
13364
+ }, R(oe.value?.label), 9, dh)]), u(Q, {
13331
13365
  name: "chevron-down",
13332
13366
  class: "pv-icon-16",
13333
13367
  "data-sidebar-expanded-content": "",
13334
- "data-sidebar-collapsed": q.value || void 0,
13335
- "data-sidebar-expanding": ue.value || void 0
13368
+ "data-sidebar-collapsed": J.value || void 0,
13369
+ "data-sidebar-expanding": le.value || void 0
13336
13370
  }, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, oh)]),
13337
13371
  _: 1
13338
13372
  }, 8, [
@@ -13341,7 +13375,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13341
13375
  "use-teleport",
13342
13376
  "teleport-location"
13343
13377
  ])]),
13344
- content: K(() => [s("div", fh, [s("ul", ph, [(k(!0), o(t, null, M(e.organizations, (e) => (k(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
13378
+ content: q(() => [s("div", fh, [s("ul", ph, [(k(!0), o(t, null, M(e.organizations, (e) => (k(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
13345
13379
  class: "pv-flex",
13346
13380
  href: e.url,
13347
13381
  "data-testid": "pv-sidebar-org-option",
@@ -13379,12 +13413,12 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13379
13413
  position: "center-right",
13380
13414
  delay: 1e3
13381
13415
  }, {
13382
- trigger: K(() => [u($, {
13416
+ trigger: q(() => [u($, {
13383
13417
  class: "sidebar-toggle",
13384
- "data-sidebar-collapsed": q.value || void 0,
13385
- "data-sidebar-expanding": ue.value || void 0,
13386
- "left-icon": q.value ? "panel-left-open" : "panel-left-close",
13387
- "aria-label": q.value ? "Open sidebar" : "Close sidebar",
13418
+ "data-sidebar-collapsed": J.value || void 0,
13419
+ "data-sidebar-expanding": le.value || void 0,
13420
+ "left-icon": J.value ? "panel-left-open" : "panel-left-close",
13421
+ "aria-label": J.value ? "Open sidebar" : "Close sidebar",
13388
13422
  variant: "ghost",
13389
13423
  onClick: he
13390
13424
  }, null, 8, [
@@ -13393,7 +13427,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13393
13427
  "left-icon",
13394
13428
  "aria-label"
13395
13429
  ])]),
13396
- content: K(() => [l(R(q.value ? "Expand navigation" : "Collapse navigation"), 1)]),
13430
+ content: q(() => [l(R(J.value ? "Expand navigation" : "Collapse navigation"), 1)]),
13397
13431
  _: 1
13398
13432
  }))], 10, rh)]), s("div", Ch, [
13399
13433
  V(m) ? (k(), o("div", wh, [N(n.$slots, "sidebar-additional-content")])) : a("", !0),
@@ -13410,27 +13444,27 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13410
13444
  disabled: O.value === e.value,
13411
13445
  "css-custom-properties": { width: "100%" }
13412
13446
  }, {
13413
- trigger: K(() => [(k(), i(F(e.url ? "a" : "button"), v({
13447
+ trigger: q(() => [(k(), i(F(e.url ? "a" : "button"), v({
13414
13448
  ref_for: !0,
13415
13449
  ref: (t) => H(V(P), e.value, t),
13416
- class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }],
13450
+ class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
13417
13451
  href: e.url,
13418
13452
  type: e.url ? void 0 : "button"
13419
13453
  }, { ref_for: !0 }, e.linkAttrs, {
13420
13454
  "aria-current": e.active ? "page" : void 0,
13421
13455
  "aria-expanded": !!D.value[e.value],
13422
- "aria-label": q.value ? e.label : void 0,
13423
- title: q.value ? void 0 : e.label,
13424
- onKeydown: le((t) => W(t, e.value), ["tab"])
13456
+ "aria-label": J.value ? e.label : void 0,
13457
+ title: J.value ? void 0 : e.label,
13458
+ onKeydown: ce((t) => G(t, e.value), ["tab"])
13425
13459
  }), {
13426
- default: K(() => [e.icon ? (k(), i(Q, {
13460
+ default: q(() => [e.icon ? (k(), i(Q, {
13427
13461
  key: 0,
13428
13462
  name: e.icon,
13429
13463
  class: "pv-nav-icon"
13430
13464
  }, null, 8, ["name"])) : a("", !0), s("span", {
13431
13465
  class: "pv-flex pv-space-between pv-full-width",
13432
13466
  "data-sidebar-expanded-content": "",
13433
- "data-sidebar-collapsed": q.value || void 0,
13467
+ "data-sidebar-collapsed": J.value || void 0,
13434
13468
  style: { "flex-wrap": "wrap" }
13435
13469
  }, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Oh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Dh)]),
13436
13470
  _: 2
@@ -13444,12 +13478,12 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13444
13478
  "title",
13445
13479
  "onKeydown"
13446
13480
  ]))]),
13447
- content: K(() => [s("div", {
13481
+ content: q(() => [s("div", {
13448
13482
  ref_for: !0,
13449
13483
  ref: (t) => H(V(A), e.value, t),
13450
13484
  class: "pv-sidebar-hover-panel",
13451
- onClick: (t) => ie(t, e.value),
13452
- onKeydown: (t) => ae(t, e.value)
13485
+ onClick: (t) => re(t, e.value),
13486
+ onKeydown: (t) => ie(t, e.value)
13453
13487
  }, [N(n.$slots, e.hoverPanelSlot)], 40, kh)]),
13454
13488
  _: 2
13455
13489
  }, 1032, [
@@ -13466,15 +13500,15 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13466
13500
  "use-teleport": !!w.value,
13467
13501
  "teleport-location": w.value ?? "body",
13468
13502
  position: "right-top",
13469
- disabled: !q.value,
13503
+ disabled: !J.value,
13470
13504
  "css-custom-properties": { width: "100%" }
13471
13505
  }, {
13472
- trigger: K(() => [s("a", v({
13473
- class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }],
13506
+ trigger: q(() => [s("a", v({
13507
+ class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
13474
13508
  href: e.url
13475
13509
  }, { ref_for: !0 }, e.linkAttrs, {
13476
13510
  "aria-current": e.active ? "page" : void 0,
13477
- title: q.value ? void 0 : e.label
13511
+ title: J.value ? void 0 : e.label
13478
13512
  }), [e.icon ? (k(), i(Q, {
13479
13513
  key: 0,
13480
13514
  name: e.icon,
@@ -13482,10 +13516,10 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13482
13516
  }, null, 8, ["name"])) : a("", !0), s("span", {
13483
13517
  class: "pv-flex pv-space-between pv-full-width",
13484
13518
  "data-sidebar-expanded-content": "",
13485
- "data-sidebar-collapsed": q.value || void 0,
13519
+ "data-sidebar-collapsed": J.value || void 0,
13486
13520
  style: { "flex-wrap": "wrap" }
13487
13521
  }, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Mh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, jh)], 16, Ah)]),
13488
- content: K(() => [s("div", Nh, [s("ul", Ph, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Lh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Ih)], 8, Fh)])])]),
13522
+ content: q(() => [s("div", Nh, [s("ul", Ph, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Lh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Ih)], 8, Fh)])])]),
13489
13523
  _: 2
13490
13524
  }, 1032, [
13491
13525
  "use-teleport",
@@ -13499,21 +13533,21 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13499
13533
  "use-teleport": !!w.value,
13500
13534
  "teleport-location": w.value ?? "body",
13501
13535
  position: "right-top",
13502
- disabled: !q.value,
13536
+ disabled: !J.value,
13503
13537
  "css-custom-properties": { width: "100%" }
13504
13538
  }, {
13505
- trigger: K(() => [u(Ii, {
13506
- modelValue: ce.value[e.value],
13507
- "onUpdate:modelValue": (t) => ce.value[e.value] = t,
13539
+ trigger: q(() => [u(Ii, {
13540
+ modelValue: se.value[e.value],
13541
+ "onUpdate:modelValue": (t) => se.value[e.value] = t,
13508
13542
  "default-open": V(qm)(e),
13509
13543
  "summary-attrs": {
13510
- class: q.value ? "pv-sidebar-item-collapsed" : void 0,
13511
- "aria-current": _e(e.children) && q.value ? "page" : void 0
13544
+ class: J.value ? "pv-sidebar-item-collapsed" : void 0,
13545
+ "aria-current": _e(e.children) && J.value ? "page" : void 0
13512
13546
  },
13513
13547
  "enable-trigger-slot": "",
13514
13548
  "enable-trigger-full-width": ""
13515
13549
  }, {
13516
- trigger: K(() => [s("div", {
13550
+ trigger: q(() => [s("div", {
13517
13551
  class: "pv-flex",
13518
13552
  onClick: (t) => e.children.length === 1 && ve(t, e.children[0]),
13519
13553
  onAuxclick: (t) => e.children.length === 1 && ve(t, e.children[0])
@@ -13523,11 +13557,11 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13523
13557
  class: "pv-nav-icon"
13524
13558
  }, null, 8, ["name"])) : a("", !0), s("span", {
13525
13559
  "data-sidebar-expanded-content": "",
13526
- "data-sidebar-collapsed": q.value || void 0
13560
+ "data-sidebar-collapsed": J.value || void 0
13527
13561
  }, R(e.label), 9, zh)], 40, Rh)]),
13528
- default: K(() => [s("div", {
13562
+ default: q(() => [s("div", {
13529
13563
  class: "pv-sidebar-nav-nested",
13530
- "data-sidebar-collapsed": q.value || void 0
13564
+ "data-sidebar-collapsed": J.value || void 0
13531
13565
  }, [(k(!0), o(t, null, M(e.children, (e) => (k(), o(t, { key: e.value }, [e.children?.length ? (k(), i(ur, {
13532
13566
  key: 0,
13533
13567
  modelValue: pe.value[e.value],
@@ -13539,10 +13573,10 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13539
13573
  "teleport-location": w.value ?? "body",
13540
13574
  position: "right-top",
13541
13575
  offset: 8,
13542
- disabled: q.value,
13576
+ disabled: J.value,
13543
13577
  "css-custom-properties": { width: "100%" }
13544
13578
  }, {
13545
- trigger: K(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
13579
+ trigger: q(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
13546
13580
  role: e.url ? void 0 : "button",
13547
13581
  tabindex: e.url ? void 0 : 0,
13548
13582
  "aria-current": V(qm)(e) ? "page" : void 0,
@@ -13553,9 +13587,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13553
13587
  name: "chevron-right",
13554
13588
  class: "pv-icon-16"
13555
13589
  })], 16, Vh)]),
13556
- content: K(() => [u(th, {
13590
+ content: q(() => [u(th, {
13557
13591
  items: e.children,
13558
- disabled: q.value
13592
+ disabled: J.value
13559
13593
  }, null, 8, ["items", "disabled"])]),
13560
13594
  _: 2
13561
13595
  }, 1032, [
@@ -13578,9 +13612,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13578
13612
  "default-open",
13579
13613
  "summary-attrs"
13580
13614
  ])]),
13581
- content: K(() => [u(th, {
13615
+ content: q(() => [u(th, {
13582
13616
  items: e.children,
13583
- disabled: !q.value
13617
+ disabled: !J.value
13584
13618
  }, null, 8, ["items", "disabled"])]),
13585
13619
  _: 2
13586
13620
  }, 1032, [
@@ -13590,10 +13624,10 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13590
13624
  ]))])], 64))), 128))])) : a("", !0),
13591
13625
  s("div", qh, [V(g) ? (k(), i(ur, {
13592
13626
  key: 0,
13593
- modelValue: Y.value,
13594
- "onUpdate:modelValue": r[1] ||= (e) => Y.value = e,
13595
- position: q.value ? "right-bottom" : "top-left",
13596
- "show-on-hover": q.value,
13627
+ modelValue: de.value,
13628
+ "onUpdate:modelValue": r[1] ||= (e) => de.value = e,
13629
+ position: J.value ? "right-bottom" : "top-left",
13630
+ "show-on-hover": J.value,
13597
13631
  "enable-group-sync": "",
13598
13632
  "enable-click-toggle": "",
13599
13633
  "use-teleport": !!w.value,
@@ -13601,20 +13635,20 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13601
13635
  offset: 4,
13602
13636
  "css-custom-properties": { width: "100%" }
13603
13637
  }, {
13604
- trigger: K(() => [s("button", {
13638
+ trigger: q(() => [s("button", {
13605
13639
  type: "button",
13606
- class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }]),
13640
+ class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
13607
13641
  "aria-label": "Help",
13608
- "aria-expanded": Y.value,
13642
+ "aria-expanded": de.value,
13609
13643
  title: "Help"
13610
13644
  }, [u(Q, {
13611
13645
  name: "help-circle",
13612
13646
  class: "pv-icon-20 pv-nav-icon"
13613
13647
  }), s("span", {
13614
13648
  "data-sidebar-expanded-content": "",
13615
- "data-sidebar-collapsed": q.value || void 0
13649
+ "data-sidebar-collapsed": J.value || void 0
13616
13650
  }, "Help", 8, Yh)], 10, Jh)]),
13617
- content: K(() => [s("div", Xh, [N(n.$slots, "sidebar-help-content")])]),
13651
+ content: q(() => [s("div", Xh, [N(n.$slots, "sidebar-help-content")])]),
13618
13652
  _: 3
13619
13653
  }, 8, [
13620
13654
  "modelValue",
@@ -13626,15 +13660,15 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13626
13660
  key: 1,
13627
13661
  modelValue: Z.value,
13628
13662
  "onUpdate:modelValue": r[2] ||= (e) => Z.value = e,
13629
- position: q.value ? "right-bottom" : "top-left",
13663
+ position: J.value ? "right-bottom" : "top-left",
13630
13664
  "use-teleport": !!w.value,
13631
13665
  "teleport-location": w.value ?? "body",
13632
13666
  offset: 4,
13633
13667
  "css-custom-properties": { width: "100%" }
13634
13668
  }, {
13635
- trigger: K(() => [s("button", {
13669
+ trigger: q(() => [s("button", {
13636
13670
  type: "button",
13637
- class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }]),
13671
+ class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
13638
13672
  "data-testid": "pv-sidebar-profile-trigger",
13639
13673
  "aria-label": e.profile.name,
13640
13674
  "aria-expanded": Z.value,
@@ -13646,9 +13680,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13646
13680
  }, null, 8, $h)) : (k(), o("span", eg, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
13647
13681
  class: "pv-truncate",
13648
13682
  "data-sidebar-expanded-content": "",
13649
- "data-sidebar-collapsed": q.value || void 0
13683
+ "data-sidebar-collapsed": J.value || void 0
13650
13684
  }, R(e.profile.name), 9, tg)], 10, Zh)]),
13651
- content: K(() => [s("div", ng, [N(n.$slots, "sidebar-profile-content")])]),
13685
+ content: q(() => [s("div", ng, [N(n.$slots, "sidebar-profile-content")])]),
13652
13686
  _: 3
13653
13687
  }, 8, [
13654
13688
  "modelValue",
@@ -13712,7 +13746,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13712
13746
  disabled: e.disabled,
13713
13747
  "css-custom-properties": { width: "100%" }
13714
13748
  }, {
13715
- trigger: K(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
13749
+ trigger: q(() => [s("a", v({ href: t.url }, { ref_for: !0 }, t.linkAttrs, {
13716
13750
  role: t.url ? void 0 : "button",
13717
13751
  tabindex: t.url ? void 0 : 0,
13718
13752
  "data-active": V(og)(t) || void 0,
@@ -13727,7 +13761,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13727
13761
  class: "pv-icon-16"
13728
13762
  })
13729
13763
  ], 16, ug)]),
13730
- content: K(() => [u(l, {
13764
+ content: q(() => [u(l, {
13731
13765
  items: t.children,
13732
13766
  disabled: e.disabled
13733
13767
  }, null, 8, ["items", "disabled"])]),
@@ -13858,7 +13892,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13858
13892
  }),
13859
13893
  emits: /* @__PURE__ */ _(["change"], ["update:modelValue"]),
13860
13894
  setup(e, { emit: n }) {
13861
- let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = ir("sidebar-additional-content", { host: p }), { present: h } = ir("sidebar-additional-header", { host: p }), { present: g } = ir("sidebar-help-content", { host: p }), { present: _ } = ir("sidebar-profile-content", { host: p }), x = ne(), w = j(null), E = j(null), D = j({}), O = j(), A = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), I = j(0), L = fe(E), z = r(() => ({
13895
+ let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = ir("sidebar-additional-content", { host: p }), { present: h } = ir("sidebar-additional-header", { host: p }), { present: g } = ir("sidebar-help-content", { host: p }), { present: _ } = ir("sidebar-profile-content", { host: p }), x = W(), w = j(null), E = j(null), D = j({}), O = j(), A = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), I = j(0), L = X(E), z = r(() => ({
13862
13896
  "--pv-sidebar-hover-panel-height": `${L.height.value}px`,
13863
13897
  "--pv-sidebar-hover-panel-left": `${L.right.value}px`,
13864
13898
  "--pv-sidebar-hover-panel-top": `${L.top.value}px`
@@ -13872,18 +13906,18 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13872
13906
  let e = t.querySelector(h_);
13873
13907
  if (e) return e;
13874
13908
  }
13875
- }, W = (e, t) => {
13909
+ }, G = (e, t) => {
13876
13910
  if (e.shiftKey) return;
13877
13911
  let n = te(t);
13878
13912
  n && (e.preventDefault(), D.value[t] = !0, y(() => n.focus()));
13879
- }, re = (e) => {
13913
+ }, ne = (e) => {
13880
13914
  O.value = e, D.value[e] = !1, y(() => {
13881
13915
  P.get(e)?.focus({ preventScroll: !0 }), y(() => O.value = void 0);
13882
13916
  });
13917
+ }, re = (e, t) => {
13918
+ e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && ne(t);
13883
13919
  }, ie = (e, t) => {
13884
- e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && re(t);
13885
- }, ae = (e, t) => {
13886
- e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), re(t));
13920
+ e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), ne(t));
13887
13921
  };
13888
13922
  T(() => {
13889
13923
  p && (B = new MutationObserver((e) => {
@@ -13895,39 +13929,39 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13895
13929
  subtree: !0
13896
13930
  }));
13897
13931
  }), C(() => B?.disconnect());
13898
- let oe = (e) => {
13932
+ let ae = (e) => {
13899
13933
  for (let t of e) {
13900
13934
  if (t.active) return t;
13901
- let e = t.entities && oe(t.entities);
13935
+ let e = t.entities && ae(t.entities);
13902
13936
  if (e) return e;
13903
13937
  }
13904
- }, se = r(() => (c.organizations && oe(c.organizations)) ?? c.organizations?.[0]), ce = j((() => {
13938
+ }, oe = r(() => (c.organizations && ae(c.organizations)) ?? c.organizations?.[0]), se = j((() => {
13905
13939
  let e = {};
13906
13940
  return c.navItems?.forEach((t) => {
13907
13941
  og(t) && (e[t.value] = !0);
13908
13942
  }), e;
13909
13943
  })());
13910
- G(() => c.navItems, (e) => {
13944
+ K(() => c.navItems, (e) => {
13911
13945
  e?.forEach((e) => {
13912
- og(e) && (ce.value[e.value] = !0);
13946
+ og(e) && (se.value[e.value] = !0);
13913
13947
  });
13914
13948
  });
13915
- let q = U(e, "modelValue"), J = j(!1), ue = r(() => !q.value && J.value), de = n, Y = j(!1), X = j(!1), Z = j(!1), pe = j({}), me = () => {
13916
- Y.value = !1, D.value = {}, pe.value = {}, X.value = !1, Z.value = !1;
13949
+ let J = U(e, "modelValue"), Y = j(!1), le = r(() => !J.value && Y.value), ue = n, de = j(!1), fe = j(!1), Z = j(!1), pe = j({}), me = () => {
13950
+ de.value = !1, D.value = {}, pe.value = {}, fe.value = !1, Z.value = !1;
13917
13951
  };
13918
- G(Y, (e) => {
13919
- e && (D.value = {}, X.value = !1, Z.value = !1);
13920
- }), G(X, (e) => {
13921
- e && (Y.value = !1, D.value = {}, Z.value = !1);
13922
- }), G(Z, (e) => {
13923
- e && (Y.value = !1, D.value = {}, X.value = !1);
13924
- }), G(q, () => {
13925
- me(), J.value = !0;
13952
+ K(de, (e) => {
13953
+ e && (D.value = {}, fe.value = !1, Z.value = !1);
13954
+ }), K(fe, (e) => {
13955
+ e && (de.value = !1, D.value = {}, Z.value = !1);
13956
+ }), K(Z, (e) => {
13957
+ e && (de.value = !1, D.value = {}, fe.value = !1);
13958
+ }), K(J, () => {
13959
+ me(), Y.value = !0;
13926
13960
  });
13927
13961
  let he = () => {
13928
- q.value = !q.value, de("change", { collapsed: q.value });
13962
+ J.value = !J.value, ue("change", { collapsed: J.value });
13929
13963
  }, ge = (e) => {
13930
- e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (J.value = !1);
13964
+ e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (Y.value = !1);
13931
13965
  }, _e = (e) => e.some(og), ve = (e, t) => {
13932
13966
  if (t.url) {
13933
13967
  if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
@@ -13939,9 +13973,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13939
13973
  };
13940
13974
  return (n, r) => (k(), o("div", {
13941
13975
  class: b(["sidebar-layout sidebar-layout-new", [e.variant && `sidebar-layout-${e.variant}`, {
13942
- "is-collapsed": q.value,
13943
- "is-expanded": !q.value,
13944
- "is-transitioning": J.value
13976
+ "is-collapsed": J.value,
13977
+ "is-expanded": !J.value,
13978
+ "is-transitioning": Y.value
13945
13979
  }]]),
13946
13980
  style: S(z.value),
13947
13981
  onTransitionend: ge
@@ -13951,22 +13985,22 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13951
13985
  ref: E,
13952
13986
  class: "sidebar-panel"
13953
13987
  }, [s("div", null, [V(h) ? (k(), o("div", hg, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
13954
- class: b(["sidebar-header", [{ "pv-border-bottom": q.value }]]),
13955
- "data-sidebar-collapsed": q.value || void 0
13988
+ class: b(["sidebar-header", [{ "pv-border-bottom": J.value }]]),
13989
+ "data-sidebar-collapsed": J.value || void 0
13956
13990
  }, [s("div", _g, [e.organizations && e.organizations.length ? (k(), o("div", {
13957
13991
  key: 0,
13958
13992
  class: b(["pv-sidebar-nav-header", e.variant && `pv-sidebar-surface-${e.variant}`])
13959
13993
  }, [u(ur, {
13960
- modelValue: X.value,
13961
- "onUpdate:modelValue": r[0] ||= (e) => X.value = e,
13962
- position: q.value ? "right-top" : "bottom-left",
13994
+ modelValue: fe.value,
13995
+ "onUpdate:modelValue": r[0] ||= (e) => fe.value = e,
13996
+ position: J.value ? "right-top" : "bottom-left",
13963
13997
  "use-teleport": !!w.value,
13964
13998
  "teleport-location": w.value ?? "body",
13965
13999
  "css-custom-properties": { width: "100%" }
13966
14000
  }, {
13967
- trigger: K(() => [u(fr, {
13968
- description: se.value?.label,
13969
- disabled: !q.value || J.value || X.value,
14001
+ trigger: q(() => [u(fr, {
14002
+ description: oe.value?.label,
14003
+ disabled: !J.value || Y.value || fe.value,
13970
14004
  variant: "white",
13971
14005
  position: "center-right",
13972
14006
  delay: 250,
@@ -13976,28 +14010,28 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
13976
14010
  "teleport-location": w.value ?? "body",
13977
14011
  "css-custom-properties": { width: "100%" }
13978
14012
  }, {
13979
- trigger: K(() => [s("button", {
14013
+ trigger: q(() => [s("button", {
13980
14014
  type: "button",
13981
- class: b(["pv-nav-list-item pv-full-width pv-space-between", { "pv-sidebar-item-collapsed": q.value }]),
14015
+ class: b(["pv-nav-list-item pv-full-width pv-space-between", { "pv-sidebar-item-collapsed": J.value }]),
13982
14016
  "data-testid": "pv-sidebar-org-switcher",
13983
- "aria-label": `Switch organization: ${se.value?.label}`,
13984
- "aria-expanded": X.value
13985
- }, [s("div", yg, [s("span", bg, [se.value?.avatarUrl ? (k(), o("img", {
14017
+ "aria-label": `Switch organization: ${oe.value?.label}`,
14018
+ "aria-expanded": fe.value
14019
+ }, [s("div", yg, [s("span", bg, [oe.value?.avatarUrl ? (k(), o("img", {
13986
14020
  key: 0,
13987
- src: se.value.avatarUrl,
14021
+ src: oe.value.avatarUrl,
13988
14022
  alt: "Organization Avatar"
13989
- }, null, 8, xg)) : (k(), o("span", Sg, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
14023
+ }, null, 8, xg)) : (k(), o("span", Sg, R(oe.value?.label?.slice(0, 1)), 1))]), s("span", {
13990
14024
  class: "pv-text-title-lg pv-truncate",
13991
14025
  "data-sidebar-expanded-content": "",
13992
- "data-sidebar-collapsed": q.value || void 0,
13993
- "data-sidebar-expanding": ue.value || void 0,
13994
- title: se.value?.label
13995
- }, R(se.value?.label), 9, Cg)]), u(Q, {
14026
+ "data-sidebar-collapsed": J.value || void 0,
14027
+ "data-sidebar-expanding": le.value || void 0,
14028
+ title: oe.value?.label
14029
+ }, R(oe.value?.label), 9, Cg)]), u(Q, {
13996
14030
  name: "chevron-down",
13997
14031
  class: "pv-icon-16",
13998
14032
  "data-sidebar-expanded-content": "",
13999
- "data-sidebar-collapsed": q.value || void 0,
14000
- "data-sidebar-expanding": ue.value || void 0
14033
+ "data-sidebar-collapsed": J.value || void 0,
14034
+ "data-sidebar-expanding": le.value || void 0
14001
14035
  }, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, vg)]),
14002
14036
  _: 1
14003
14037
  }, 8, [
@@ -14006,7 +14040,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14006
14040
  "use-teleport",
14007
14041
  "teleport-location"
14008
14042
  ])]),
14009
- content: K(() => [s("div", wg, [s("ul", Tg, [(k(!0), o(t, null, M(e.organizations, (e) => (k(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
14043
+ content: q(() => [s("div", wg, [s("ul", Tg, [(k(!0), o(t, null, M(e.organizations, (e) => (k(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
14010
14044
  class: "pv-flex",
14011
14045
  href: e.url,
14012
14046
  "data-testid": "pv-sidebar-org-option",
@@ -14044,12 +14078,12 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14044
14078
  position: "center-right",
14045
14079
  delay: 1e3
14046
14080
  }, {
14047
- trigger: K(() => [u($, {
14081
+ trigger: q(() => [u($, {
14048
14082
  class: "sidebar-toggle",
14049
- "data-sidebar-collapsed": q.value || void 0,
14050
- "data-sidebar-expanding": ue.value || void 0,
14051
- "left-icon": q.value ? "panel-left-open" : "panel-left-close",
14052
- "aria-label": q.value ? "Open sidebar" : "Close sidebar",
14083
+ "data-sidebar-collapsed": J.value || void 0,
14084
+ "data-sidebar-expanding": le.value || void 0,
14085
+ "left-icon": J.value ? "panel-left-open" : "panel-left-close",
14086
+ "aria-label": J.value ? "Open sidebar" : "Close sidebar",
14053
14087
  variant: "ghost",
14054
14088
  onClick: he
14055
14089
  }, null, 8, [
@@ -14058,7 +14092,7 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14058
14092
  "left-icon",
14059
14093
  "aria-label"
14060
14094
  ])]),
14061
- content: K(() => [l(R(q.value ? "Expand navigation" : "Collapse navigation"), 1)]),
14095
+ content: q(() => [l(R(J.value ? "Expand navigation" : "Collapse navigation"), 1)]),
14062
14096
  _: 1
14063
14097
  }))], 10, gg)]), s("div", { class: b(["pv-sidebar-nav", e.variant && `pv-sidebar-surface-${e.variant}`]) }, [
14064
14098
  V(m) ? (k(), o("div", Fg, [N(n.$slots, "sidebar-additional-content")])) : a("", !0),
@@ -14075,27 +14109,27 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14075
14109
  disabled: O.value === e.value,
14076
14110
  "css-custom-properties": { width: "100%" }
14077
14111
  }, {
14078
- trigger: K(() => [(k(), i(F(e.url ? "a" : "button"), v({
14112
+ trigger: q(() => [(k(), i(F(e.url ? "a" : "button"), v({
14079
14113
  ref_for: !0,
14080
14114
  ref: (t) => H(V(P), e.value, t),
14081
- class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }],
14115
+ class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
14082
14116
  href: e.url,
14083
14117
  type: e.url ? void 0 : "button"
14084
14118
  }, { ref_for: !0 }, e.linkAttrs, {
14085
14119
  "aria-current": e.active ? "page" : void 0,
14086
14120
  "aria-expanded": !!D.value[e.value],
14087
- "aria-label": q.value ? e.label : void 0,
14088
- title: q.value ? void 0 : e.label,
14089
- onKeydown: le((t) => W(t, e.value), ["tab"])
14121
+ "aria-label": J.value ? e.label : void 0,
14122
+ title: J.value ? void 0 : e.label,
14123
+ onKeydown: ce((t) => G(t, e.value), ["tab"])
14090
14124
  }), {
14091
- default: K(() => [e.icon ? (k(), i(Q, {
14125
+ default: q(() => [e.icon ? (k(), i(Q, {
14092
14126
  key: 0,
14093
14127
  name: e.icon,
14094
14128
  class: "pv-nav-icon"
14095
14129
  }, null, 8, ["name"])) : a("", !0), s("span", {
14096
14130
  class: "pv-flex pv-space-between pv-full-width",
14097
14131
  "data-sidebar-expanded-content": "",
14098
- "data-sidebar-collapsed": q.value || void 0,
14132
+ "data-sidebar-collapsed": J.value || void 0,
14099
14133
  style: { "flex-wrap": "wrap" }
14100
14134
  }, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", zg, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Rg)]),
14101
14135
  _: 2
@@ -14109,12 +14143,12 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14109
14143
  "title",
14110
14144
  "onKeydown"
14111
14145
  ]))]),
14112
- content: K(() => [s("div", {
14146
+ content: q(() => [s("div", {
14113
14147
  ref_for: !0,
14114
14148
  ref: (t) => H(V(A), e.value, t),
14115
14149
  class: "pv-sidebar-hover-panel",
14116
- onClick: (t) => ie(t, e.value),
14117
- onKeydown: (t) => ae(t, e.value)
14150
+ onClick: (t) => re(t, e.value),
14151
+ onKeydown: (t) => ie(t, e.value)
14118
14152
  }, [N(n.$slots, e.hoverPanelSlot)], 40, Bg)]),
14119
14153
  _: 2
14120
14154
  }, 1032, [
@@ -14131,15 +14165,15 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14131
14165
  "use-teleport": !!w.value,
14132
14166
  "teleport-location": w.value ?? "body",
14133
14167
  position: "right-top",
14134
- disabled: !q.value,
14168
+ disabled: !J.value,
14135
14169
  "css-custom-properties": { width: "100%" }
14136
14170
  }, {
14137
- trigger: K(() => [s("a", v({
14138
- class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }],
14171
+ trigger: q(() => [s("a", v({
14172
+ class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
14139
14173
  href: e.url
14140
14174
  }, { ref_for: !0 }, e.linkAttrs, {
14141
14175
  "aria-current": e.active ? "page" : void 0,
14142
- title: q.value ? void 0 : e.label
14176
+ title: J.value ? void 0 : e.label
14143
14177
  }), [e.icon ? (k(), i(Q, {
14144
14178
  key: 0,
14145
14179
  name: e.icon,
@@ -14147,10 +14181,10 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14147
14181
  }, null, 8, ["name"])) : a("", !0), s("span", {
14148
14182
  class: "pv-flex pv-space-between pv-full-width",
14149
14183
  "data-sidebar-expanded-content": "",
14150
- "data-sidebar-collapsed": q.value || void 0,
14184
+ "data-sidebar-collapsed": J.value || void 0,
14151
14185
  style: { "flex-wrap": "wrap" }
14152
14186
  }, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Ug, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Hg)], 16, Vg)]),
14153
- content: K(() => [s("div", Wg, [s("ul", Gg, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Jg, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, qg)], 8, Kg)])])]),
14187
+ content: q(() => [s("div", Wg, [s("ul", Gg, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Jg, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, qg)], 8, Kg)])])]),
14154
14188
  _: 2
14155
14189
  }, 1032, [
14156
14190
  "use-teleport",
@@ -14164,21 +14198,21 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14164
14198
  "use-teleport": !!w.value,
14165
14199
  "teleport-location": w.value ?? "body",
14166
14200
  position: "right-top",
14167
- disabled: !q.value,
14201
+ disabled: !J.value,
14168
14202
  "css-custom-properties": { width: "100%" }
14169
14203
  }, {
14170
- trigger: K(() => [u(Ii, {
14171
- modelValue: ce.value[e.value],
14172
- "onUpdate:modelValue": (t) => ce.value[e.value] = t,
14204
+ trigger: q(() => [u(Ii, {
14205
+ modelValue: se.value[e.value],
14206
+ "onUpdate:modelValue": (t) => se.value[e.value] = t,
14173
14207
  "default-open": V(og)(e),
14174
14208
  "summary-attrs": {
14175
- class: q.value ? "pv-sidebar-item-collapsed" : void 0,
14176
- "aria-current": _e(e.children) && q.value ? "page" : void 0
14209
+ class: J.value ? "pv-sidebar-item-collapsed" : void 0,
14210
+ "aria-current": _e(e.children) && J.value ? "page" : void 0
14177
14211
  },
14178
14212
  "enable-trigger-slot": "",
14179
14213
  "enable-trigger-full-width": ""
14180
14214
  }, {
14181
- trigger: K(() => [s("div", {
14215
+ trigger: q(() => [s("div", {
14182
14216
  class: "pv-flex",
14183
14217
  onClick: (t) => e.children.length === 1 && ve(t, e.children[0]),
14184
14218
  onAuxclick: (t) => e.children.length === 1 && ve(t, e.children[0])
@@ -14188,11 +14222,11 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14188
14222
  class: "pv-nav-icon"
14189
14223
  }, null, 8, ["name"])) : a("", !0), s("span", {
14190
14224
  "data-sidebar-expanded-content": "",
14191
- "data-sidebar-collapsed": q.value || void 0
14225
+ "data-sidebar-collapsed": J.value || void 0
14192
14226
  }, R(e.label), 9, Xg)], 40, Yg)]),
14193
- default: K(() => [s("div", {
14227
+ default: q(() => [s("div", {
14194
14228
  class: "pv-sidebar-nav-nested",
14195
- "data-sidebar-collapsed": q.value || void 0
14229
+ "data-sidebar-collapsed": J.value || void 0
14196
14230
  }, [(k(!0), o(t, null, M(e.children, (e) => (k(), o(t, { key: e.value }, [e.children?.length ? (k(), i(ur, {
14197
14231
  key: 0,
14198
14232
  modelValue: pe.value[e.value],
@@ -14204,10 +14238,10 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14204
14238
  "teleport-location": w.value ?? "body",
14205
14239
  position: "right-top",
14206
14240
  offset: 8,
14207
- disabled: q.value,
14241
+ disabled: J.value,
14208
14242
  "css-custom-properties": { width: "100%" }
14209
14243
  }, {
14210
- trigger: K(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
14244
+ trigger: q(() => [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, {
14211
14245
  role: e.url ? void 0 : "button",
14212
14246
  tabindex: e.url ? void 0 : 0,
14213
14247
  "aria-current": V(og)(e) ? "page" : void 0,
@@ -14218,9 +14252,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14218
14252
  name: "chevron-right",
14219
14253
  class: "pv-icon-16"
14220
14254
  })], 16, Qg)]),
14221
- content: K(() => [u(mg, {
14255
+ content: q(() => [u(mg, {
14222
14256
  items: e.children,
14223
- disabled: q.value
14257
+ disabled: J.value
14224
14258
  }, null, 8, ["items", "disabled"])]),
14225
14259
  _: 2
14226
14260
  }, 1032, [
@@ -14243,9 +14277,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14243
14277
  "default-open",
14244
14278
  "summary-attrs"
14245
14279
  ])]),
14246
- content: K(() => [u(mg, {
14280
+ content: q(() => [u(mg, {
14247
14281
  items: e.children,
14248
- disabled: !q.value
14282
+ disabled: !J.value
14249
14283
  }, null, 8, ["items", "disabled"])]),
14250
14284
  _: 2
14251
14285
  }, 1032, [
@@ -14255,10 +14289,10 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14255
14289
  ]))])], 64))), 128))])) : a("", !0),
14256
14290
  s("div", i_, [V(g) ? (k(), i(ur, {
14257
14291
  key: 0,
14258
- modelValue: Y.value,
14259
- "onUpdate:modelValue": r[1] ||= (e) => Y.value = e,
14260
- position: q.value ? "right-bottom" : "top-left",
14261
- "show-on-hover": q.value,
14292
+ modelValue: de.value,
14293
+ "onUpdate:modelValue": r[1] ||= (e) => de.value = e,
14294
+ position: J.value ? "right-bottom" : "top-left",
14295
+ "show-on-hover": J.value,
14262
14296
  "enable-group-sync": "",
14263
14297
  "enable-click-toggle": "",
14264
14298
  "use-teleport": !!w.value,
@@ -14266,20 +14300,20 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14266
14300
  offset: 4,
14267
14301
  "css-custom-properties": { width: "100%" }
14268
14302
  }, {
14269
- trigger: K(() => [s("button", {
14303
+ trigger: q(() => [s("button", {
14270
14304
  type: "button",
14271
- class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }]),
14305
+ class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
14272
14306
  "aria-label": "Help",
14273
- "aria-expanded": Y.value,
14307
+ "aria-expanded": de.value,
14274
14308
  title: "Help"
14275
14309
  }, [u(Q, {
14276
14310
  name: "help-circle",
14277
14311
  class: "pv-icon-20 pv-nav-icon"
14278
14312
  }), s("span", {
14279
14313
  "data-sidebar-expanded-content": "",
14280
- "data-sidebar-collapsed": q.value || void 0
14314
+ "data-sidebar-collapsed": J.value || void 0
14281
14315
  }, "Help", 8, o_)], 10, a_)]),
14282
- content: K(() => [s("div", s_, [N(n.$slots, "sidebar-help-content")])]),
14316
+ content: q(() => [s("div", s_, [N(n.$slots, "sidebar-help-content")])]),
14283
14317
  _: 3
14284
14318
  }, 8, [
14285
14319
  "modelValue",
@@ -14291,15 +14325,15 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14291
14325
  key: 1,
14292
14326
  modelValue: Z.value,
14293
14327
  "onUpdate:modelValue": r[2] ||= (e) => Z.value = e,
14294
- position: q.value ? "right-bottom" : "top-left",
14328
+ position: J.value ? "right-bottom" : "top-left",
14295
14329
  "use-teleport": !!w.value,
14296
14330
  "teleport-location": w.value ?? "body",
14297
14331
  offset: 4,
14298
14332
  "css-custom-properties": { width: "100%" }
14299
14333
  }, {
14300
- trigger: K(() => [s("button", {
14334
+ trigger: q(() => [s("button", {
14301
14335
  type: "button",
14302
- class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": q.value }]),
14336
+ class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
14303
14337
  "data-testid": "pv-sidebar-profile-trigger",
14304
14338
  "aria-label": e.profile.name,
14305
14339
  "aria-expanded": Z.value,
@@ -14311,9 +14345,9 @@ var nm = ["aria-label"], rm = { class: "pv-filter-panel-header pv-flex pv-border
14311
14345
  }, null, 8, u_)) : (k(), o("span", d_, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
14312
14346
  class: "pv-truncate",
14313
14347
  "data-sidebar-expanded-content": "",
14314
- "data-sidebar-collapsed": q.value || void 0
14348
+ "data-sidebar-collapsed": J.value || void 0
14315
14349
  }, R(e.profile.name), 9, f_)], 10, c_)]),
14316
- content: K(() => [s("div", p_, [N(n.$slots, "sidebar-profile-content")])]),
14350
+ content: q(() => [s("div", p_, [N(n.$slots, "sidebar-profile-content")])]),
14317
14351
  _: 3
14318
14352
  }, 8, [
14319
14353
  "modelValue",