@access-ci/ui 0.20.2 → 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.
- package/README.md +1 -1
- package/dist/{access-ci-ui-react-kdgYQZqd.js → access-ci-ui-react-c4W-4kw5.js} +799 -799
- package/dist/access-ci-ui-react.js +1 -1
- package/dist/access-ci-ui-react.umd.cjs +38 -70
- package/dist/access-ci-ui.bundle.js +59 -91
- package/dist/access-ci-ui.js +3 -3
- package/dist/access-ci-ui.umd.cjs +57 -89
- package/dist/access-qa-bot-BHGE7Oub.js +7423 -0
- package/dist/access-qa-bot-CPUUk69r.js +9876 -0
- package/dist/{icon-B7cGzEKy.js → icon-B7tqk8sk.js} +1 -1
- package/dist/{index-hNgWwhEe.js → index-Cs0w9oEB.js} +3672 -3673
- package/dist/{resource-group-detail-CFxx3za2.js → resource-group-detail-CtiP3BJF.js} +1 -1
- package/dist/{resource-group-detail-C_g3q9lq.js → resource-group-detail-Px5hj98o.js} +2 -2
- package/dist/{resource-home-BF1by6d7.js → resource-home-0g0SkcYu.js} +34 -41
- package/dist/{resource-home-Bma2Z32m.js → resource-home-C8o1WMI_.js} +96 -103
- package/package.json +1 -1
- package/dist/access-qa-bot-BktG98sn.js +0 -10201
- package/dist/access-qa-bot-DD6xn0ii.js +0 -7750
|
@@ -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-
|
|
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,
|
|
2
|
-
import { I as U } from "./icon-
|
|
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
|
|
2
|
-
import { I as
|
|
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(
|
|
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:
|
|
57
|
+
toggleTag: m
|
|
58
58
|
}) {
|
|
59
|
-
const
|
|
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:
|
|
66
|
-
children: a ? /* @__PURE__ */ e.jsx("img", { src: a }) : /* @__PURE__ */ e.jsx(
|
|
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:
|
|
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:
|
|
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:
|
|
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] =
|
|
120
|
-
return
|
|
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(
|
|
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(
|
|
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
|
|
167
|
-
const o =
|
|
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
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
/* @__PURE__ */ e.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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] =
|
|
221
|
+
const [s, i] = h.useState([]), r = g(), u = h.useMemo(
|
|
229
222
|
() => r ? b(r, s) : null,
|
|
230
223
|
[r, s]
|
|
231
|
-
),
|
|
232
|
-
s.includes(l) ? s.filter((
|
|
233
|
-
),
|
|
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(
|
|
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:
|
|
252
|
-
toggleTag:
|
|
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:
|
|
264
|
-
toggleTag:
|
|
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
|
|
2
|
-
import { useState as g, useRef as b, useEffect as
|
|
3
|
-
import { f as
|
|
4
|
-
import { I as
|
|
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:
|
|
24
|
-
const l =
|
|
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__ */
|
|
29
|
+
children: /* @__PURE__ */ o(
|
|
30
30
|
"button",
|
|
31
31
|
{
|
|
32
32
|
href: "#",
|
|
33
33
|
disabled: t.disabledTagIds.has(i),
|
|
34
|
-
onClick: (
|
|
35
|
-
|
|
34
|
+
onClick: (s) => {
|
|
35
|
+
s.preventDefault(), r(i);
|
|
36
36
|
},
|
|
37
37
|
children: [
|
|
38
|
-
l.startsWith("http") ? /* @__PURE__ */ e(
|
|
39
|
-
|
|
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
|
|
49
|
+
function x({
|
|
50
50
|
active: t,
|
|
51
51
|
baseUri: c,
|
|
52
52
|
description: i,
|
|
53
|
-
imageType:
|
|
54
|
-
imageUri:
|
|
55
|
-
name:
|
|
53
|
+
imageType: n,
|
|
54
|
+
imageUri: a,
|
|
55
|
+
name: r,
|
|
56
56
|
infoGroupId: l,
|
|
57
|
-
parentInfoGroupId:
|
|
57
|
+
parentInfoGroupId: s,
|
|
58
58
|
tags: d,
|
|
59
|
-
toggleTag:
|
|
59
|
+
toggleTag: m
|
|
60
60
|
}) {
|
|
61
|
-
const
|
|
62
|
-
return /* @__PURE__ */
|
|
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-${
|
|
67
|
-
href:
|
|
68
|
-
children:
|
|
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__ */
|
|
72
|
-
/* @__PURE__ */ e("h3", { children: /* @__PURE__ */ e("a", { href:
|
|
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:
|
|
78
|
+
toggleTag: m
|
|
79
79
|
},
|
|
80
80
|
u.tagId
|
|
81
81
|
)) }),
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ o("p", { children: [
|
|
83
83
|
i && i,
|
|
84
84
|
/* @__PURE__ */ e("br", {}),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ o("a", { href: h, children: [
|
|
86
86
|
"Learn more about ",
|
|
87
|
-
|
|
87
|
+
r,
|
|
88
88
|
" »"
|
|
89
89
|
] })
|
|
90
90
|
] })
|
|
91
91
|
] })
|
|
92
92
|
] });
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function A({
|
|
95
95
|
active: t,
|
|
96
96
|
baseUri: c,
|
|
97
97
|
name: i,
|
|
98
|
-
resourceGroups:
|
|
99
|
-
toggleTag:
|
|
98
|
+
resourceGroups: n,
|
|
99
|
+
toggleTag: a
|
|
100
100
|
}) {
|
|
101
|
-
return /* @__PURE__ */
|
|
101
|
+
return /* @__PURE__ */ o(f, { children: [
|
|
102
102
|
/* @__PURE__ */ e("h2", { children: i }),
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
n.filter(({ infoGroupId: r }) => t.infoGroupIds.has(r)).map((r) => /* @__PURE__ */ e(
|
|
104
|
+
x,
|
|
105
105
|
{
|
|
106
|
-
...
|
|
106
|
+
...r,
|
|
107
107
|
baseUri: c,
|
|
108
108
|
active: t,
|
|
109
|
-
toggleTag:
|
|
109
|
+
toggleTag: a
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
r.infoGroupId
|
|
112
112
|
))
|
|
113
113
|
] });
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function G({
|
|
116
116
|
active: t,
|
|
117
117
|
clearTags: c,
|
|
118
118
|
tagCategories: i,
|
|
119
|
-
toggleTag:
|
|
119
|
+
toggleTag: n
|
|
120
120
|
}) {
|
|
121
|
-
const [
|
|
122
|
-
return
|
|
123
|
-
const
|
|
124
|
-
return document.body.addEventListener("click",
|
|
125
|
-
}, []), /* @__PURE__ */
|
|
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: (
|
|
130
|
-
|
|
129
|
+
onClick: (s) => {
|
|
130
|
+
s.stopPropagation();
|
|
131
131
|
},
|
|
132
132
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ o(
|
|
134
134
|
"button",
|
|
135
135
|
{
|
|
136
136
|
ref: l,
|
|
137
|
-
onClick: () =>
|
|
138
|
-
className: `btn-filters btn ${
|
|
137
|
+
onClick: () => r(!a),
|
|
138
|
+
className: `btn-filters btn ${a ? "active" : ""}`,
|
|
139
139
|
children: [
|
|
140
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
147
|
-
i.map((
|
|
148
|
-
/* @__PURE__ */ e("h2", { children:
|
|
149
|
-
/* @__PURE__ */ e(C, { children:
|
|
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__ */
|
|
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(
|
|
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
|
|
168
|
+
function T({ setBotOpen: t }) {
|
|
169
169
|
const c = b(null);
|
|
170
|
-
return /* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
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: (
|
|
183
|
-
|
|
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: (
|
|
190
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
|
216
|
+
function z({
|
|
224
217
|
baseUri: t,
|
|
225
218
|
title: c,
|
|
226
219
|
setBotOpen: i,
|
|
227
|
-
showBreadcrumbs:
|
|
228
|
-
showTitle:
|
|
220
|
+
showBreadcrumbs: n = !0,
|
|
221
|
+
showTitle: a = !0
|
|
229
222
|
}) {
|
|
230
|
-
const [
|
|
231
|
-
() =>
|
|
232
|
-
[
|
|
233
|
-
),
|
|
234
|
-
|
|
235
|
-
),
|
|
236
|
-
return /* @__PURE__ */
|
|
237
|
-
|
|
238
|
-
|
|
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:
|
|
246
|
-
/* @__PURE__ */ e(
|
|
247
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
242
|
+
G,
|
|
250
243
|
{
|
|
251
|
-
tagCategories:
|
|
244
|
+
tagCategories: s.tagCategories,
|
|
252
245
|
active: d,
|
|
253
|
-
clearTags:
|
|
254
|
-
toggleTag:
|
|
246
|
+
clearTags: h,
|
|
247
|
+
toggleTag: m
|
|
255
248
|
}
|
|
256
249
|
) : null,
|
|
257
|
-
|
|
250
|
+
s ? s.resourceCategories.filter(
|
|
258
251
|
({ resourceCategoryId: u }) => d.resourceCategoryIds.has(u)
|
|
259
252
|
).map((u) => /* @__PURE__ */ e(
|
|
260
|
-
|
|
253
|
+
A,
|
|
261
254
|
{
|
|
262
255
|
...u,
|
|
263
256
|
active: d,
|
|
264
257
|
baseUri: t,
|
|
265
|
-
clearTags:
|
|
266
|
-
toggleTag:
|
|
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
|
-
|
|
267
|
+
z as default
|
|
275
268
|
};
|