@uoguelph/web-components 1.9.1-rc.9 → 2.0.0-rc.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.
@@ -0,0 +1,83 @@
1
+ import { aq as g, ar as y, as as k, at as u, au as T, av as b, E as _, G as h, aw as d, ax as w, ay as A, az as C, aA as F, a2 as N, a8 as z, aB as B, aC as D, B as p, z as G, aD as O, aE as v, m as E, aF as q, o as H, aG as I } from "./index-uKtRJCBz.js";
2
+ function S(t, s, n, f, r) {
3
+ var a = t, l = "", i;
4
+ g(() => {
5
+ if (l === (l = s() ?? "")) {
6
+ _ && h();
7
+ return;
8
+ }
9
+ i !== void 0 && (b(i), i = void 0), l !== "" && (i = y(() => {
10
+ if (_) {
11
+ d.data;
12
+ for (var e = h(), o = e; e !== null && (e.nodeType !== 8 || /** @type {Comment} */
13
+ e.data !== ""); )
14
+ o = e, e = /** @type {TemplateNode} */
15
+ w(e);
16
+ if (e === null)
17
+ throw A(), C;
18
+ u(d, o), a = F(e);
19
+ return;
20
+ }
21
+ var R = l + "", c = k(R);
22
+ u(
23
+ /** @type {TemplateNode} */
24
+ T(c),
25
+ /** @type {TemplateNode} */
26
+ c.lastChild
27
+ ), a.before(c);
28
+ }));
29
+ });
30
+ }
31
+ function Y(t, s, ...n) {
32
+ var f = t, r = z, a;
33
+ g(() => {
34
+ r !== (r = s()) && (a && (b(a), a = null), a = y(() => (
35
+ /** @type {SnippetFn} */
36
+ r(f, ...n)
37
+ )));
38
+ }, N), _ && (f = d);
39
+ }
40
+ function j(t = !1) {
41
+ const s = (
42
+ /** @type {ComponentContextLegacy} */
43
+ B
44
+ ), n = s.l.u;
45
+ if (!n) return;
46
+ let f = () => q(s.s);
47
+ if (t) {
48
+ let r = 0, a = (
49
+ /** @type {Record<string, any>} */
50
+ {}
51
+ );
52
+ const l = H(() => {
53
+ let i = !1;
54
+ const e = s.s;
55
+ for (const o in e)
56
+ e[o] !== a[o] && (a[o] = e[o], i = !0);
57
+ return i && r++, r;
58
+ });
59
+ f = () => E(l);
60
+ }
61
+ n.b.length && D(() => {
62
+ m(s, f), v(n.b);
63
+ }), p(() => {
64
+ const r = G(() => n.m.map(O));
65
+ return () => {
66
+ for (const a of r)
67
+ typeof a == "function" && a();
68
+ };
69
+ }), n.a.length && p(() => {
70
+ m(s, f), v(n.a);
71
+ });
72
+ }
73
+ function m(t, s) {
74
+ if (t.l.s)
75
+ for (const n of t.l.s) E(n);
76
+ s();
77
+ }
78
+ I();
79
+ export {
80
+ S as h,
81
+ j as i,
82
+ Y as s
83
+ };
@@ -1,4 +1,4 @@
1
- import { E as r, G as l } from "./index-Dk-X_ehd.js";
1
+ import { E as r, G as l } from "./index-uKtRJCBz.js";
2
2
  function d(i, t, e, s, o) {
3
3
  var a;
4
4
  r && l();
@@ -1,6 +1,6 @@
1
- import { c as q, p as A, a as B, b as p, t as D, F as G, f as H, s as c, d as s, e as I, g as o, h as a, i as J, j as K, k as L, r as l } from "./index-Dk-X_ehd.js";
2
- import { s as N, a as d } from "./slot-UHCm4Itl.js";
3
- import { o as O } from "./index-client-CoqRyo72.js";
1
+ import { c as q, p as A, a as B, b as p, t as D, F as G, f as H, s as c, d as s, e as I, g as o, h as a, i as J, j as K, k as L, r as l } from "./index-uKtRJCBz.js";
2
+ import { s as N, a as d } from "./slot-BIy7nZbM.js";
3
+ import { o as O } from "./index-client-Do2kIgoF.js";
4
4
  import { c as P } from "./index-O5kp37c8.js";
5
5
  var Q = D("<div><div><!> <!></div> <div><!> <span><!></span></div> <div><!></div></div>");
6
6
  function V(m, t) {
@@ -1,5 +1,5 @@
1
- import { l as b, c as u, t as f, F as m, e as v, m as o, i as h, j as _, p as g, n as x, g as w, o as k, h as y, q as T, u as j, v as F, d as c, r as i, w as U, b as q } from "./index-Dk-X_ehd.js";
2
- import { b as z } from "./window-Caxf2Dvv.js";
1
+ import { l as b, c as u, t as f, F as m, e as v, m as o, i as h, j as _, p as g, n as x, g as w, o as k, h as y, q as T, u as j, v as F, d as c, r as i, w as U, b as q } from "./index-uKtRJCBz.js";
2
+ import { b as z } from "./window-DKQMMh26.js";
3
3
  import { c as B } from "./index-O5kp37c8.js";
4
4
  const C = () => {
5
5
  window.scroll({ top: 0, left: 0, behavior: "smooth" });