@access-ci/ui 0.20.1 → 0.20.3

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,5 +1,5 @@
1
1
  import { jsxs as E, jsx as x, Fragment as It } from "react/jsx-runtime";
2
- import { u as bt, s as No, a as yi, e as pc, h as Gn, b as Us, c as gc, d as mc, B as bc } from "./access-ci-ui-react-DxmxOLt0.js";
2
+ import { u as bt, s as No, a as yi, e as pc, h as Gn, b as Us, c as gc, d as mc, B as bc } from "./access-ci-ui-react-c4W-4kw5.js";
3
3
  import { I as Y } from "./icon-CMHOrCGv.js";
4
4
  import { useLayoutEffect as xi, useRef as ne, useState as ze, useEffect as Ho, useMemo as vc } from "react";
5
5
  const Ys = () => {
@@ -1,5 +1,5 @@
1
- import { a as q, j as v, u as mt, s as To, c as fi, e as ec, h as Vn, d as Is, f as ic, i as nc, B as sc } from "./index-xjpESPy6.js";
2
- import { I as U } from "./icon-DBqO1ayn.js";
1
+ import { a as q, j as v, u as mt, s as To, b as fi, e as ec, h as Vn, c as Is, d as ic, f as nc, B as sc } from "./index-Cs0w9oEB.js";
2
+ import { I as U } from "./icon-B7tqk8sk.js";
3
3
  const Bs = () => {
4
4
  const i = new Event("accessci-update-sections");
5
5
  document.dispatchEvent(i);
@@ -1,5 +1,5 @@
1
- import { j as e, a as m, k as j, l as b, B as v } from "./index-xjpESPy6.js";
2
- import { I as d } from "./icon-DBqO1ayn.js";
1
+ import { j as e, a as h, i as g, k as b, B as v } from "./index-Cs0w9oEB.js";
2
+ import { I as p } from "./icon-B7tqk8sk.js";
3
3
  const C = {
4
4
  "ACCESS Pegasus": "https://pegasus.isi.edu/wordpress/wp-content/uploads/2016/01/favicon.ico",
5
5
  "ACCESS OnDemand": "https://openondemand.org/themes/fire/theme/assets/media/favicons/favicon.ico",
@@ -33,7 +33,7 @@ function x({ active: t, tagCategory: o, tagId: c, iconUri: n, name: a, toggleTag
33
33
  r.preventDefault(), s(c);
34
34
  },
35
35
  children: [
36
- i.startsWith("http") ? /* @__PURE__ */ e.jsx(d, { alt: a, src: i }) : /* @__PURE__ */ e.jsx(d, { name: i }),
36
+ i.startsWith("http") ? /* @__PURE__ */ e.jsx(p, { alt: a, src: i }) : /* @__PURE__ */ e.jsx(p, { name: i }),
37
37
  a
38
38
  ]
39
39
  }
@@ -54,33 +54,33 @@ function N({
54
54
  infoGroupId: i,
55
55
  parentInfoGroupId: r,
56
56
  tags: u,
57
- toggleTag: h
57
+ toggleTag: m
58
58
  }) {
59
- const p = `${o}/${r || i}`;
59
+ const d = `${o}/${r || i}`;
60
60
  return /* @__PURE__ */ e.jsxs("div", { className: "resource-group", children: [
61
61
  /* @__PURE__ */ e.jsx(
62
62
  "a",
63
63
  {
64
64
  className: `resource-group-image image-type-${n}`,
65
- href: p,
66
- children: a ? /* @__PURE__ */ e.jsx("img", { src: a }) : /* @__PURE__ */ e.jsx(d, { name: "motherboard" })
65
+ href: d,
66
+ children: a ? /* @__PURE__ */ e.jsx("img", { src: a }) : /* @__PURE__ */ e.jsx(p, { name: "motherboard" })
67
67
  }
68
68
  ),
69
69
  /* @__PURE__ */ e.jsxs("div", { className: "resource-group-text", children: [
70
- /* @__PURE__ */ e.jsx("h3", { children: /* @__PURE__ */ e.jsx("a", { href: p, children: s }) }),
70
+ /* @__PURE__ */ e.jsx("h3", { children: /* @__PURE__ */ e.jsx("a", { href: d, children: s }) }),
71
71
  /* @__PURE__ */ e.jsx(f, { children: u.map((l) => /* @__PURE__ */ e.jsx(
72
72
  x,
73
73
  {
74
74
  ...l,
75
75
  active: t,
76
- toggleTag: h
76
+ toggleTag: m
77
77
  },
78
78
  l.tagId
79
79
  )) }),
80
80
  /* @__PURE__ */ e.jsxs("p", { children: [
81
81
  c && c,
82
82
  /* @__PURE__ */ e.jsx("br", {}),
83
- /* @__PURE__ */ e.jsxs("a", { href: p, children: [
83
+ /* @__PURE__ */ e.jsxs("a", { href: d, children: [
84
84
  "Learn more about ",
85
85
  s,
86
86
  " »"
@@ -116,8 +116,8 @@ function y({
116
116
  tagCategories: c,
117
117
  toggleTag: n
118
118
  }) {
119
- const [a, s] = m.useState(!1), i = m.useRef(null);
120
- return m.useEffect(() => {
119
+ const [a, s] = h.useState(!1), i = h.useRef(null);
120
+ return h.useEffect(() => {
121
121
  const r = () => s(!1);
122
122
  return document.body.addEventListener("click", r), () => document.body.removeEventListener("click", r);
123
123
  }, []), /* @__PURE__ */ e.jsxs(
@@ -135,7 +135,7 @@ function y({
135
135
  onClick: () => s(!a),
136
136
  className: `btn-filters btn ${a ? "active" : ""}`,
137
137
  children: [
138
- /* @__PURE__ */ e.jsx(d, { name: "filter" }),
138
+ /* @__PURE__ */ e.jsx(p, { name: "filter" }),
139
139
  " Filters",
140
140
  t.tagIds.size > 0 ? /* @__PURE__ */ e.jsx("span", { className: "active-tag-count", children: t.tagIds.size }) : null
141
141
  ]
@@ -153,7 +153,7 @@ function y({
153
153
  disabled: t.tagIds.size == 0,
154
154
  className: "btn danger",
155
155
  children: [
156
- /* @__PURE__ */ e.jsx(d, { name: "trash" }),
156
+ /* @__PURE__ */ e.jsx(p, { name: "trash" }),
157
157
  " Clear Filters"
158
158
  ]
159
159
  }
@@ -163,8 +163,8 @@ function y({
163
163
  }
164
164
  );
165
165
  }
166
- function S({ setBotOpen: t }) {
167
- const o = m.useRef(null), c = [
166
+ function k({ setBotOpen: t }) {
167
+ const o = h.useRef(null), c = [
168
168
  {
169
169
  title: "Browse resources",
170
170
  icon: "filter-square",
@@ -179,8 +179,7 @@ function S({ setBotOpen: t }) {
179
179
  onClick: (n) => {
180
180
  n.preventDefault(), t(!0);
181
181
  },
182
- description: "You have resource questions. Our Q&A bot has answers!",
183
- login: !0
182
+ description: "You have resource questions. Our Q&A bot has answers!"
184
183
  },
185
184
  {
186
185
  title: "Get suggestions",
@@ -202,20 +201,14 @@ function S({ setBotOpen: t }) {
202
201
  " ",
203
202
  "to researchers and educators."
204
203
  ] }),
205
- /* @__PURE__ */ e.jsx("ul", { className: "resource-pathways", children: c.map(
206
- ({ title: n, icon: a, href: s, description: i, login: r, onClick: u }, h) => /* @__PURE__ */ e.jsx("li", { className: `resource-pathway-${h}`, children: /* @__PURE__ */ e.jsxs("a", { href: s || "#", onClick: u, children: [
207
- a ? /* @__PURE__ */ e.jsx(d, { name: a }) : null,
208
- " ",
209
- /* @__PURE__ */ e.jsxs("span", { className: "detail", children: [
210
- /* @__PURE__ */ e.jsx("span", { className: "title", children: n }),
211
- /* @__PURE__ */ e.jsx("span", { className: "description", children: i }),
212
- r ? /* @__PURE__ */ e.jsxs("span", { className: "login", children: [
213
- /* @__PURE__ */ e.jsx(d, { name: "key" }),
214
- " Requires ACCESS Login"
215
- ] }) : null
216
- ] })
217
- ] }) }, n)
218
- ) })
204
+ /* @__PURE__ */ e.jsx("ul", { className: "resource-pathways", children: c.map(({ title: n, icon: a, href: s, description: i, onClick: r }, u) => /* @__PURE__ */ e.jsx("li", { className: `resource-pathway-${u}`, children: /* @__PURE__ */ e.jsxs("a", { href: s || "#", onClick: r, children: [
205
+ a ? /* @__PURE__ */ e.jsx(p, { name: a }) : null,
206
+ " ",
207
+ /* @__PURE__ */ e.jsxs("span", { className: "detail", children: [
208
+ /* @__PURE__ */ e.jsx("span", { className: "title", children: n }),
209
+ /* @__PURE__ */ e.jsx("span", { className: "description", children: i })
210
+ ] })
211
+ ] }) }, n)) })
219
212
  ] });
220
213
  }
221
214
  function I({
@@ -225,12 +218,12 @@ function I({
225
218
  showBreadcrumbs: n = !0,
226
219
  showTitle: a = !0
227
220
  }) {
228
- const [s, i] = m.useState([]), r = j(), u = m.useMemo(
221
+ const [s, i] = h.useState([]), r = g(), u = h.useMemo(
229
222
  () => r ? b(r, s) : null,
230
223
  [r, s]
231
- ), h = (l) => i(
232
- s.includes(l) ? s.filter((g) => g != l) : [...s, l]
233
- ), p = () => i([]);
224
+ ), m = (l) => i(
225
+ s.includes(l) ? s.filter((j) => j != l) : [...s, l]
226
+ ), d = () => i([]);
234
227
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
235
228
  n && /* @__PURE__ */ e.jsx(
236
229
  v,
@@ -241,15 +234,15 @@ function I({
241
234
  }
242
235
  ),
243
236
  o && /* @__PURE__ */ e.jsx("h1", { className: a ? "" : "visually-hidden", children: o }),
244
- /* @__PURE__ */ e.jsx(S, { setBotOpen: c }),
237
+ /* @__PURE__ */ e.jsx(k, { setBotOpen: c }),
245
238
  /* @__PURE__ */ e.jsxs("div", { id: "browse-resources", children: [
246
239
  u ? /* @__PURE__ */ e.jsx(
247
240
  y,
248
241
  {
249
242
  tagCategories: r.tagCategories,
250
243
  active: u,
251
- clearTags: p,
252
- toggleTag: h
244
+ clearTags: d,
245
+ toggleTag: m
253
246
  }
254
247
  ) : null,
255
248
  r ? r.resourceCategories.filter(
@@ -260,8 +253,8 @@ function I({
260
253
  ...l,
261
254
  active: u,
262
255
  baseUri: t,
263
- clearTags: p,
264
- toggleTag: h
256
+ clearTags: d,
257
+ toggleTag: m
265
258
  },
266
259
  l.name
267
260
  )) : null
@@ -1,7 +1,7 @@
1
- import { jsx as e, jsxs as a, Fragment as f } from "react/jsx-runtime";
2
- import { useState as g, useRef as b, useEffect as w, useMemo as y } from "react";
3
- import { f as S, g as k, B as I } from "./access-ci-ui-react-DxmxOLt0.js";
4
- import { I as h } from "./icon-CMHOrCGv.js";
1
+ import { jsx as e, jsxs as o, Fragment as f } from "react/jsx-runtime";
2
+ import { useState as g, useRef as b, useEffect as N, useMemo as y } from "react";
3
+ import { f as k, g as I, B as S } from "./access-ci-ui-react-c4W-4kw5.js";
4
+ import { I as p } from "./icon-CMHOrCGv.js";
5
5
  const R = {
6
6
  "ACCESS Pegasus": "https://pegasus.isi.edu/wordpress/wp-content/uploads/2016/01/favicon.ico",
7
7
  "ACCESS OnDemand": "https://openondemand.org/themes/fire/theme/assets/media/favicons/favicon.ico",
@@ -20,23 +20,23 @@ const R = {
20
20
  Cloud: "cloud",
21
21
  Storage: "hdd-fill"
22
22
  };
23
- function v({ active: t, tagCategory: c, tagId: i, iconUri: o, name: n, toggleTag: s }) {
24
- const l = o || R[n] || "tag";
23
+ function v({ active: t, tagCategory: c, tagId: i, iconUri: n, name: a, toggleTag: r }) {
24
+ const l = n || R[a] || "tag";
25
25
  return /* @__PURE__ */ e(
26
26
  "li",
27
27
  {
28
28
  className: `tag tag-category-${c.name.toLowerCase().replace(/[^a-z]+/g, "-")}${t.tagIds.has(i) ? " active" : ""}`,
29
- children: /* @__PURE__ */ a(
29
+ children: /* @__PURE__ */ o(
30
30
  "button",
31
31
  {
32
32
  href: "#",
33
33
  disabled: t.disabledTagIds.has(i),
34
- onClick: (r) => {
35
- r.preventDefault(), s(i);
34
+ onClick: (s) => {
35
+ s.preventDefault(), r(i);
36
36
  },
37
37
  children: [
38
- l.startsWith("http") ? /* @__PURE__ */ e(h, { alt: n, src: l }) : /* @__PURE__ */ e(h, { name: l }),
39
- n
38
+ l.startsWith("http") ? /* @__PURE__ */ e(p, { alt: a, src: l }) : /* @__PURE__ */ e(p, { name: l }),
39
+ a
40
40
  ]
41
41
  }
42
42
  )
@@ -46,116 +46,116 @@ function v({ active: t, tagCategory: c, tagId: i, iconUri: o, name: n, toggleTag
46
46
  function C({ children: t }) {
47
47
  return /* @__PURE__ */ e("ul", { className: "tags", children: t });
48
48
  }
49
- function A({
49
+ function x({
50
50
  active: t,
51
51
  baseUri: c,
52
52
  description: i,
53
- imageType: o,
54
- imageUri: n,
55
- name: s,
53
+ imageType: n,
54
+ imageUri: a,
55
+ name: r,
56
56
  infoGroupId: l,
57
- parentInfoGroupId: r,
57
+ parentInfoGroupId: s,
58
58
  tags: d,
59
- toggleTag: p
59
+ toggleTag: m
60
60
  }) {
61
- const m = `${c}/${r || l}`;
62
- return /* @__PURE__ */ a("div", { className: "resource-group", children: [
61
+ const h = `${c}/${s || l}`;
62
+ return /* @__PURE__ */ o("div", { className: "resource-group", children: [
63
63
  /* @__PURE__ */ e(
64
64
  "a",
65
65
  {
66
- className: `resource-group-image image-type-${o}`,
67
- href: m,
68
- children: n ? /* @__PURE__ */ e("img", { src: n }) : /* @__PURE__ */ e(h, { name: "motherboard" })
66
+ className: `resource-group-image image-type-${n}`,
67
+ href: h,
68
+ children: a ? /* @__PURE__ */ e("img", { src: a }) : /* @__PURE__ */ e(p, { name: "motherboard" })
69
69
  }
70
70
  ),
71
- /* @__PURE__ */ a("div", { className: "resource-group-text", children: [
72
- /* @__PURE__ */ e("h3", { children: /* @__PURE__ */ e("a", { href: m, children: s }) }),
71
+ /* @__PURE__ */ o("div", { className: "resource-group-text", children: [
72
+ /* @__PURE__ */ e("h3", { children: /* @__PURE__ */ e("a", { href: h, children: r }) }),
73
73
  /* @__PURE__ */ e(C, { children: d.map((u) => /* @__PURE__ */ e(
74
74
  v,
75
75
  {
76
76
  ...u,
77
77
  active: t,
78
- toggleTag: p
78
+ toggleTag: m
79
79
  },
80
80
  u.tagId
81
81
  )) }),
82
- /* @__PURE__ */ a("p", { children: [
82
+ /* @__PURE__ */ o("p", { children: [
83
83
  i && i,
84
84
  /* @__PURE__ */ e("br", {}),
85
- /* @__PURE__ */ a("a", { href: m, children: [
85
+ /* @__PURE__ */ o("a", { href: h, children: [
86
86
  "Learn more about ",
87
- s,
87
+ r,
88
88
  " »"
89
89
  ] })
90
90
  ] })
91
91
  ] })
92
92
  ] });
93
93
  }
94
- function x({
94
+ function A({
95
95
  active: t,
96
96
  baseUri: c,
97
97
  name: i,
98
- resourceGroups: o,
99
- toggleTag: n
98
+ resourceGroups: n,
99
+ toggleTag: a
100
100
  }) {
101
- return /* @__PURE__ */ a(f, { children: [
101
+ return /* @__PURE__ */ o(f, { children: [
102
102
  /* @__PURE__ */ e("h2", { children: i }),
103
- o.filter(({ infoGroupId: s }) => t.infoGroupIds.has(s)).map((s) => /* @__PURE__ */ e(
104
- A,
103
+ n.filter(({ infoGroupId: r }) => t.infoGroupIds.has(r)).map((r) => /* @__PURE__ */ e(
104
+ x,
105
105
  {
106
- ...s,
106
+ ...r,
107
107
  baseUri: c,
108
108
  active: t,
109
- toggleTag: n
109
+ toggleTag: a
110
110
  },
111
- s.infoGroupId
111
+ r.infoGroupId
112
112
  ))
113
113
  ] });
114
114
  }
115
- function E({
115
+ function G({
116
116
  active: t,
117
117
  clearTags: c,
118
118
  tagCategories: i,
119
- toggleTag: o
119
+ toggleTag: n
120
120
  }) {
121
- const [n, s] = g(!1), l = b(null);
122
- return w(() => {
123
- const r = () => s(!1);
124
- return document.body.addEventListener("click", r), () => document.body.removeEventListener("click", r);
125
- }, []), /* @__PURE__ */ a(
121
+ const [a, r] = g(!1), l = b(null);
122
+ return N(() => {
123
+ const s = () => r(!1);
124
+ return document.body.addEventListener("click", s), () => document.body.removeEventListener("click", s);
125
+ }, []), /* @__PURE__ */ o(
126
126
  "section",
127
127
  {
128
128
  className: "filters-outer",
129
- onClick: (r) => {
130
- r.stopPropagation();
129
+ onClick: (s) => {
130
+ s.stopPropagation();
131
131
  },
132
132
  children: [
133
- /* @__PURE__ */ a(
133
+ /* @__PURE__ */ o(
134
134
  "button",
135
135
  {
136
136
  ref: l,
137
- onClick: () => s(!n),
138
- className: `btn-filters btn ${n ? "active" : ""}`,
137
+ onClick: () => r(!a),
138
+ className: `btn-filters btn ${a ? "active" : ""}`,
139
139
  children: [
140
- /* @__PURE__ */ e(h, { name: "filter" }),
140
+ /* @__PURE__ */ e(p, { name: "filter" }),
141
141
  " Filters",
142
142
  t.tagIds.size > 0 ? /* @__PURE__ */ e("span", { className: "active-tag-count", children: t.tagIds.size }) : null
143
143
  ]
144
144
  }
145
145
  ),
146
- n ? /* @__PURE__ */ a("div", { className: "filters-inner", children: [
147
- i.map((r) => /* @__PURE__ */ a(f, { children: [
148
- /* @__PURE__ */ e("h2", { children: r.name }),
149
- /* @__PURE__ */ e(C, { children: r.tags.map((d) => /* @__PURE__ */ e(v, { ...d, active: t, toggleTag: o })) })
146
+ a ? /* @__PURE__ */ o("div", { className: "filters-inner", children: [
147
+ i.map((s) => /* @__PURE__ */ o(f, { children: [
148
+ /* @__PURE__ */ e("h2", { children: s.name }),
149
+ /* @__PURE__ */ e(C, { children: s.tags.map((d) => /* @__PURE__ */ e(v, { ...d, active: t, toggleTag: n })) })
150
150
  ] })),
151
- /* @__PURE__ */ a(
151
+ /* @__PURE__ */ o(
152
152
  "button",
153
153
  {
154
154
  onClick: c,
155
155
  disabled: t.tagIds.size == 0,
156
156
  className: "btn danger",
157
157
  children: [
158
- /* @__PURE__ */ e(h, { name: "trash" }),
158
+ /* @__PURE__ */ e(p, { name: "trash" }),
159
159
  " Clear Filters"
160
160
  ]
161
161
  }
@@ -165,10 +165,10 @@ function E({
165
165
  }
166
166
  );
167
167
  }
168
- function G({ setBotOpen: t }) {
168
+ function T({ setBotOpen: t }) {
169
169
  const c = b(null);
170
- return /* @__PURE__ */ a("section", { id: "resource-pathways", ref: c, children: [
171
- /* @__PURE__ */ a("p", { className: "intro", children: [
170
+ return /* @__PURE__ */ o("section", { id: "resource-pathways", ref: c, children: [
171
+ /* @__PURE__ */ o("p", { className: "intro", children: [
172
172
  "ACCESS provides advanced computing resources ",
173
173
  /* @__PURE__ */ e("strong", { children: "at no cost" }),
174
174
  " ",
@@ -179,18 +179,17 @@ function G({ setBotOpen: t }) {
179
179
  title: "Browse resources",
180
180
  icon: "filter-square",
181
181
  description: "Filter resources to find the best match for your research.",
182
- onClick: (o) => {
183
- o.preventDefault(), c.current && c.current.nextSibling.scrollIntoView({ bahavior: "smooth" });
182
+ onClick: (n) => {
183
+ n.preventDefault(), c.current && c.current.nextSibling.scrollIntoView({ bahavior: "smooth" });
184
184
  }
185
185
  },
186
186
  {
187
187
  title: "Ask a question",
188
188
  icon: "question-circle",
189
- onClick: (o) => {
190
- o.preventDefault(), t(!0);
189
+ onClick: (n) => {
190
+ n.preventDefault(), t(!0);
191
191
  },
192
- description: "You have resource questions. Our Q&A bot has answers!",
193
- login: !0
192
+ description: "You have resource questions. Our Q&A bot has answers!"
194
193
  },
195
194
  {
196
195
  title: "Get suggestions",
@@ -204,66 +203,60 @@ function G({ setBotOpen: t }) {
204
203
  href: "https://access-ci.org/tag/resource-providers/",
205
204
  description: "See the latest news from resource providers."
206
205
  }
207
- ].map(
208
- ({ title: o, icon: n, href: s, description: l, login: r, onClick: d }, p) => /* @__PURE__ */ e("li", { className: `resource-pathway-${p}`, children: /* @__PURE__ */ a("a", { href: s || "#", onClick: d, children: [
209
- n ? /* @__PURE__ */ e(h, { name: n }) : null,
210
- " ",
211
- /* @__PURE__ */ a("span", { className: "detail", children: [
212
- /* @__PURE__ */ e("span", { className: "title", children: o }),
213
- /* @__PURE__ */ e("span", { className: "description", children: l }),
214
- r ? /* @__PURE__ */ a("span", { className: "login", children: [
215
- /* @__PURE__ */ e(h, { name: "key" }),
216
- " Requires ACCESS Login"
217
- ] }) : null
218
- ] })
219
- ] }) }, o)
220
- ) })
206
+ ].map(({ title: n, icon: a, href: r, description: l, onClick: s }, d) => /* @__PURE__ */ e("li", { className: `resource-pathway-${d}`, children: /* @__PURE__ */ o("a", { href: r || "#", onClick: s, children: [
207
+ a ? /* @__PURE__ */ e(p, { name: a }) : null,
208
+ " ",
209
+ /* @__PURE__ */ o("span", { className: "detail", children: [
210
+ /* @__PURE__ */ e("span", { className: "title", children: n }),
211
+ /* @__PURE__ */ e("span", { className: "description", children: l })
212
+ ] })
213
+ ] }) }, n)) })
221
214
  ] });
222
215
  }
223
- function P({
216
+ function z({
224
217
  baseUri: t,
225
218
  title: c,
226
219
  setBotOpen: i,
227
- showBreadcrumbs: o = !0,
228
- showTitle: n = !0
220
+ showBreadcrumbs: n = !0,
221
+ showTitle: a = !0
229
222
  }) {
230
- const [s, l] = g([]), r = S(), d = y(
231
- () => r ? k(r, s) : null,
232
- [r, s]
233
- ), p = (u) => l(
234
- s.includes(u) ? s.filter((N) => N != u) : [...s, u]
235
- ), m = () => l([]);
236
- return /* @__PURE__ */ a(f, { children: [
237
- o && /* @__PURE__ */ e(
238
- I,
223
+ const [r, l] = g([]), s = k(), d = y(
224
+ () => s ? I(s, r) : null,
225
+ [s, r]
226
+ ), m = (u) => l(
227
+ r.includes(u) ? r.filter((w) => w != u) : [...r, u]
228
+ ), h = () => l([]);
229
+ return /* @__PURE__ */ o(f, { children: [
230
+ n && /* @__PURE__ */ e(
231
+ S,
239
232
  {
240
233
  expandWidth: !0,
241
234
  items: [{ name: "Resources" }],
242
235
  topBorder: !0
243
236
  }
244
237
  ),
245
- c && /* @__PURE__ */ e("h1", { className: n ? "" : "visually-hidden", children: c }),
246
- /* @__PURE__ */ e(G, { setBotOpen: i }),
247
- /* @__PURE__ */ a("div", { id: "browse-resources", children: [
238
+ c && /* @__PURE__ */ e("h1", { className: a ? "" : "visually-hidden", children: c }),
239
+ /* @__PURE__ */ e(T, { setBotOpen: i }),
240
+ /* @__PURE__ */ o("div", { id: "browse-resources", children: [
248
241
  d ? /* @__PURE__ */ e(
249
- E,
242
+ G,
250
243
  {
251
- tagCategories: r.tagCategories,
244
+ tagCategories: s.tagCategories,
252
245
  active: d,
253
- clearTags: m,
254
- toggleTag: p
246
+ clearTags: h,
247
+ toggleTag: m
255
248
  }
256
249
  ) : null,
257
- r ? r.resourceCategories.filter(
250
+ s ? s.resourceCategories.filter(
258
251
  ({ resourceCategoryId: u }) => d.resourceCategoryIds.has(u)
259
252
  ).map((u) => /* @__PURE__ */ e(
260
- x,
253
+ A,
261
254
  {
262
255
  ...u,
263
256
  active: d,
264
257
  baseUri: t,
265
- clearTags: m,
266
- toggleTag: p
258
+ clearTags: h,
259
+ toggleTag: m
267
260
  },
268
261
  u.name
269
262
  )) : null
@@ -271,5 +264,5 @@ function P({
271
264
  ] });
272
265
  }
273
266
  export {
274
- P as default
267
+ z as default
275
268
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@access-ci/ui",
3
- "version": "0.20.1",
3
+ "version": "0.20.3",
4
4
  "description": "User interface components for ACCESS CI",
5
5
  "repository": "github:access-ci-org/access-ci-ui",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@glidejs/glide": "^3.6.1",
33
- "@snf/access-qa-bot": "^3.7.0",
33
+ "@snf/access-qa-bot": "^3.7.1",
34
34
  "chart.js": "^4.4.6",
35
35
  "fuse.js": "^7.0.0",
36
36
  "react": "^18.0.0 || ^19.0.0",