@turquoisehealth/pit-viper 2.219.1-dev.0 → 2.219.1-dev.1

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.
@@ -13655,8 +13655,11 @@ var Op = (e, t) => {
13655
13655
  function Pp(e) {
13656
13656
  let { crosslineOverlayGroups: t, useDistributionV2Styling: n, isHistogramWithBuckets: i, isHorizontalBarChart: a, computedChartData: o, pvChartRef: s, formatValue: c, initialActiveOverlayGroupIds: l } = e, u = k(new Set(l?.value ?? t.value.filter((e) => Np(e)).map((e) => e.id))), d = new Map(t.value.map((e) => [e.id, Np(e)]));
13657
13657
  U(t, (e) => {
13658
- let t = new Set(u.value), n = !1;
13659
- for (let r of e) Np(r) && !d.get(r.id) && (t.add(r.id), n = !0);
13658
+ let t = new Set(u.value), n = !1, r = l?.value !== void 0;
13659
+ for (let i of e) {
13660
+ let e = Np(i), a = d.has(i.id) ? !d.get(i.id) : !r;
13661
+ e && a ? (t.add(i.id), n = !0) : !e && d.get(i.id) && (t.delete(i.id), n = !0);
13662
+ }
13660
13663
  d = new Map(e.map((e) => [e.id, Np(e)])), n && (u.value = t);
13661
13664
  });
13662
13665
  let f = r(() => jp(t.value, u.value)), p = r(() => n.value ? Mp(t.value, u.value, c) : []), m = k(null);