@illinois-grad/grad-vue 6.0.0 → 6.0.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.
@@ -4752,17 +4752,24 @@ function So(e, t, n) {
4752
4752
  .5,
4753
4753
  .75,
4754
4754
  1
4755
- ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Y(e)?.children || []));
4756
- ue(e, () => {
4757
- o.value = Array.from(Y(e)?.children || []);
4758
- }, { childList: !0 });
4759
- let { stop: s } = ce(o, (e) => {
4755
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Y(e)?.children || [])), s = () => {
4756
+ let t = Array.from(Y(e)?.children || []), n = new Set(t);
4757
+ for (let e of a.keys()) n.has(e) || a.delete(e);
4758
+ o.value = t;
4759
+ };
4760
+ G(() => Y(e), () => {
4761
+ s();
4762
+ }, {
4763
+ immediate: !0,
4764
+ flush: "post"
4765
+ }), ue(e, s, { childList: !0 });
4766
+ let { stop: c } = ce(o, (e) => {
4760
4767
  let t = o.value[o.value.length - 1];
4761
4768
  for (let n of e) a.set(n.target, n.isIntersecting ? Math.ceil(100 * n.intersectionRatio) / 100 : 0), n.target === t && n.intersectionRatio === 1 && a.set(n.target, Infinity);
4762
4769
  let r = null, i = 0;
4763
4770
  for (let e of a.keys()) {
4764
4771
  let t = a.get(e) || 0;
4765
- t <= i || (e.getBoundingClientRect(), r = e, i = t);
4772
+ t <= i || (r = e, i = t);
4766
4773
  }
4767
4774
  n.value = r instanceof HTMLElement ? r.id : "";
4768
4775
  }, {
@@ -4771,7 +4778,7 @@ function So(e, t, n) {
4771
4778
  rootMargin: i,
4772
4779
  immediate: !0
4773
4780
  });
4774
- return { stop: s };
4781
+ return { stop: c };
4775
4782
  }
4776
4783
  //#endregion
4777
4784
  //#region src/compose/useSidebar.ts
@@ -4990,4 +4997,4 @@ function No() {
4990
4997
  //#endregion
4991
4998
  export { tt as $, li as A, xn as B, Oa as C, ti as D, ri as E, br as F, un as G, gn as H, ir as I, Mt as J, nn as K, Un as L, di as M, ui as N, ci as O, jr as P, ot as Q, On as R, ka as S, ya as T, mn as U, bn as V, pn as W, xt as X, Et as Y, mt as Z, Ja as _, Eo as a, $ as at, Fa as b, So as c, De as ct, mo as d, Q as dt, et, fo as f, Ya as g, Xa as h, To as i, ze as it, ii as j, ni as k, xo as l, xe as lt, ro as m, Do as n, qe as nt, Mo as o, Ae as ot, io as p, Kt as q, wo as r, Je as rt, Co as s, Oe as st, No as t, $e as tt, ho as u, be as ut, Ua as v, Ta as w, Na as x, za as y, Cn as z };
4992
4999
 
4993
- //# sourceMappingURL=grad-vue-DSPGwyhI.js.map
5000
+ //# sourceMappingURL=grad-vue-Bsk9dI_O.js.map