@xras/ui 0.1.7 → 0.1.8
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/dist/xras-ui.cjs +4 -4
- package/dist/xras-ui.js +139 -140
- package/package.json +1 -1
package/dist/xras-ui.js
CHANGED
|
@@ -13690,7 +13690,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13690
13690
|
};
|
|
13691
13691
|
}
|
|
13692
13692
|
}
|
|
13693
|
-
function
|
|
13693
|
+
function xZ(e) {
|
|
13694
13694
|
return e;
|
|
13695
13695
|
}
|
|
13696
13696
|
function EM(e) {
|
|
@@ -16177,9 +16177,9 @@ Incoming: %s`, we, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
16177
16177
|
}
|
|
16178
16178
|
return [I, m];
|
|
16179
16179
|
}
|
|
16180
|
-
function
|
|
16180
|
+
function EZ(e, t, s) {
|
|
16181
16181
|
}
|
|
16182
|
-
function
|
|
16182
|
+
function SZ(e, t, s) {
|
|
16183
16183
|
}
|
|
16184
16184
|
function Px(e, t, s) {
|
|
16185
16185
|
var c = xn, v = Ps(), m, S = la();
|
|
@@ -25608,7 +25608,7 @@ const e1 = [
|
|
|
25608
25608
|
addResource: Iz,
|
|
25609
25609
|
addUser: Az,
|
|
25610
25610
|
closeUsageDetailModal: Nz,
|
|
25611
|
-
hideAlert:
|
|
25611
|
+
hideAlert: RZ,
|
|
25612
25612
|
resetResources: Oz,
|
|
25613
25613
|
resetUsers: _z,
|
|
25614
25614
|
setRequest: Dz,
|
|
@@ -37281,7 +37281,7 @@ const mk = {
|
|
|
37281
37281
|
}
|
|
37282
37282
|
}), {
|
|
37283
37283
|
resetFilters: NX,
|
|
37284
|
-
setApiUrl:
|
|
37284
|
+
setApiUrl: TZ,
|
|
37285
37285
|
setShowPagination: SO,
|
|
37286
37286
|
setTypeLists: gk,
|
|
37287
37287
|
toggleAllFos: OX,
|
|
@@ -37409,9 +37409,8 @@ const BX = () => {
|
|
|
37409
37409
|
)
|
|
37410
37410
|
] })
|
|
37411
37411
|
] }) });
|
|
37412
|
-
}
|
|
37413
|
-
|
|
37414
|
-
}, UX = ({ project: n }) => {
|
|
37412
|
+
};
|
|
37413
|
+
const zX = ({ project: n }) => {
|
|
37415
37414
|
const r = n.resources, i = (u) => {
|
|
37416
37415
|
let d = u.units ? u.units : u.resourceUnits;
|
|
37417
37416
|
const p = u.allocation ? u.allocation : u.amount;
|
|
@@ -37478,14 +37477,14 @@ const BX = () => {
|
|
|
37478
37477
|
] }),
|
|
37479
37478
|
/* @__PURE__ */ C.jsxs(Jo.Item, { eventKey: "1", children: [
|
|
37480
37479
|
/* @__PURE__ */ C.jsx(Jo.Header, { children: "Abstract" }),
|
|
37481
|
-
/* @__PURE__ */ C.jsx(Jo.Body, { children: /* @__PURE__ */ C.jsx("div", {
|
|
37480
|
+
/* @__PURE__ */ C.jsx(Jo.Body, { children: /* @__PURE__ */ C.jsx("div", { style: { whiteSpace: "pre-wrap", padding: "5px" }, children: n.abstract }) })
|
|
37482
37481
|
] })
|
|
37483
37482
|
] })
|
|
37484
37483
|
] })
|
|
37485
37484
|
] });
|
|
37486
|
-
},
|
|
37485
|
+
}, HX = () => {
|
|
37487
37486
|
const n = Ca(LX);
|
|
37488
|
-
return n.length == 0 ? /* @__PURE__ */ C.jsx("div", { children: "No Projects Found" }) : /* @__PURE__ */ C.jsx("div", { children: n.map((r, i) => /* @__PURE__ */ C.jsx(
|
|
37487
|
+
return n.length == 0 ? /* @__PURE__ */ C.jsx("div", { children: "No Projects Found" }) : /* @__PURE__ */ C.jsx("div", { children: n.map((r, i) => /* @__PURE__ */ C.jsx(zX, { project: r }, `project_${i}`)) });
|
|
37489
37488
|
};
|
|
37490
37489
|
const RO = () => {
|
|
37491
37490
|
const n = Ku(), r = Ca(MX), [i, l] = M.useState([]), [u, d] = M.useState("0"), p = Array.from(
|
|
@@ -37579,7 +37578,7 @@ const RO = () => {
|
|
|
37579
37578
|
}
|
|
37580
37579
|
)
|
|
37581
37580
|
] }) }) });
|
|
37582
|
-
},
|
|
37581
|
+
}, UX = ({ api_url: n }) => {
|
|
37583
37582
|
const r = Ku(), i = Ca(kX), l = Ca(jX), u = Ca(FX), d = /* @__PURE__ */ C.jsx("div", { className: "loadingDiv", children: "Loading ..." });
|
|
37584
37583
|
return M.useEffect(() => {
|
|
37585
37584
|
r(IX());
|
|
@@ -37587,31 +37586,31 @@ const RO = () => {
|
|
|
37587
37586
|
/* @__PURE__ */ C.jsx("div", { className: "col-sm-3", children: /* @__PURE__ */ C.jsx(BX, {}) }),
|
|
37588
37587
|
/* @__PURE__ */ C.jsxs("div", { className: "col-sm-9", children: [
|
|
37589
37588
|
/* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsx("div", { className: "col", children: u ? /* @__PURE__ */ C.jsx(RO, {}) : "" }) }),
|
|
37590
|
-
/* @__PURE__ */ C.jsx("div", { className: "row", id: "projectListRow", children: /* @__PURE__ */ C.jsx("div", { className: "col", children: i && l ? /* @__PURE__ */ C.jsx(
|
|
37589
|
+
/* @__PURE__ */ C.jsx("div", { className: "row", id: "projectListRow", children: /* @__PURE__ */ C.jsx("div", { className: "col", children: i && l ? /* @__PURE__ */ C.jsx(HX, {}) : d }) }),
|
|
37591
37590
|
/* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsx("div", { className: "col", children: u ? /* @__PURE__ */ C.jsx(RO, { scroll: "projects_browser_app" }) : "" }) })
|
|
37592
37591
|
] })
|
|
37593
37592
|
] }) });
|
|
37594
|
-
},
|
|
37593
|
+
}, GX = (n) => n.publications_store.publication, $X = (n) => n.publications_store.publication.doi, WX = (n) => n.publications_store.publication_types, yk = (n) => n.publications_store.publication.authors, XX = (n) => n.publications_store.tag_categories, YX = (n) => n.publications_store.projects, ZX = (n) => n.publications_store.publication.tags, JX = (n) => n.publications_store.errors, bk = (n) => n.publications_store.data_loaded, Ck = (n) => n.publications_store.show_saved, Dw = (n) => n.publications_store.saving, qX = (n) => n.publications_store.modal, xk = (n) => n.publications_store.form_valid, Ek = (n) => !Dw(n) && bk(n) && xk(n) && Sk(n) && n.publications_store.projects.filter((r) => r.selected).length > 0, Sk = (n) => {
|
|
37595
37594
|
const r = yk(n);
|
|
37596
37595
|
return r.length == 0 ? !1 : r.filter((i) => i.first_name == "" || i.last_name == "").length == 0;
|
|
37597
37596
|
}, wk = (n) => ({
|
|
37598
37597
|
type: "UPDATE_PUBLICATION",
|
|
37599
37598
|
payload: n
|
|
37600
|
-
}),
|
|
37599
|
+
}), QX = (n) => ({
|
|
37601
37600
|
type: "UPDATE_FIELD",
|
|
37602
37601
|
payload: n
|
|
37603
37602
|
}), T1 = (n) => ({
|
|
37604
37603
|
type: "CHANGE_PUB_TYPE",
|
|
37605
37604
|
payload: n
|
|
37606
|
-
}),
|
|
37605
|
+
}), KX = (n) => ({
|
|
37607
37606
|
type: "SET_PUBLICATION",
|
|
37608
37607
|
payload: n
|
|
37609
|
-
}),
|
|
37608
|
+
}), eY = () => ({
|
|
37610
37609
|
type: "ADD_AUTHOR"
|
|
37611
|
-
}),
|
|
37610
|
+
}), tY = (n) => ({
|
|
37612
37611
|
type: "UPDATE_AUTHOR",
|
|
37613
37612
|
payload: n
|
|
37614
|
-
}),
|
|
37613
|
+
}), nY = (n) => ({
|
|
37615
37614
|
type: "TOGGLE_REQUEST",
|
|
37616
37615
|
payload: n
|
|
37617
37616
|
}), xm = (n) => ({
|
|
@@ -37620,35 +37619,35 @@ const RO = () => {
|
|
|
37620
37619
|
}), Rk = (n) => ({
|
|
37621
37620
|
type: "HIDE_ERROR",
|
|
37622
37621
|
payload: n
|
|
37623
|
-
}),
|
|
37622
|
+
}), rY = (n) => ({
|
|
37624
37623
|
type: "UPDATE_SELECTED_TAGS",
|
|
37625
37624
|
payload: n
|
|
37626
|
-
}),
|
|
37625
|
+
}), aY = (n) => ({
|
|
37627
37626
|
type: "DELETE_AUTHOR",
|
|
37628
37627
|
payload: n
|
|
37629
|
-
}),
|
|
37628
|
+
}), iY = (n) => ({
|
|
37630
37629
|
type: "DATA_LOADED",
|
|
37631
37630
|
payload: n
|
|
37632
37631
|
}), Tk = (n) => ({
|
|
37633
37632
|
type: "UPDATE_SHOW_SAVED",
|
|
37634
37633
|
payload: n
|
|
37635
|
-
}),
|
|
37634
|
+
}), oY = () => ({
|
|
37636
37635
|
type: "RESET_STATE"
|
|
37637
37636
|
}), VS = (n) => ({
|
|
37638
37637
|
type: "UPDATE_SAVING",
|
|
37639
37638
|
payload: n
|
|
37640
|
-
}),
|
|
37639
|
+
}), sY = (n) => ({
|
|
37641
37640
|
type: "SET_FORM_VALID",
|
|
37642
37641
|
payload: n
|
|
37643
37642
|
}), Ik = (n) => ({
|
|
37644
37643
|
type: "SET_GRANT_NUMBER",
|
|
37645
37644
|
payload: n
|
|
37646
|
-
}),
|
|
37645
|
+
}), uY = (n) => ({
|
|
37647
37646
|
type: "ADD_PROJECT",
|
|
37648
37647
|
payload: n
|
|
37649
37648
|
}), fc = {
|
|
37650
37649
|
routes: {}
|
|
37651
|
-
},
|
|
37650
|
+
}, lY = (n, r, i) => {
|
|
37652
37651
|
let l = !0;
|
|
37653
37652
|
const u = [];
|
|
37654
37653
|
for (const p of r)
|
|
@@ -37658,14 +37657,14 @@ const RO = () => {
|
|
|
37658
37657
|
for (const y of i)
|
|
37659
37658
|
p[y] || (l = !1, u.includes(y) || u.push(y));
|
|
37660
37659
|
return { formValid: l, missingFields: u };
|
|
37661
|
-
},
|
|
37660
|
+
}, cY = (n) => n.length > 0 ? /* @__PURE__ */ C.jsxs("div", { role: "alert", children: [
|
|
37662
37661
|
/* @__PURE__ */ C.jsx("p", { children: "Please provide the following information before submitting:" }),
|
|
37663
|
-
/* @__PURE__ */ C.jsx("ul", { children: n.map((r) => /* @__PURE__ */ C.jsx("li", { children:
|
|
37662
|
+
/* @__PURE__ */ C.jsx("ul", { children: n.map((r) => /* @__PURE__ */ C.jsx("li", { children: fY(r) }, r)) })
|
|
37664
37663
|
] }) : null;
|
|
37665
|
-
function
|
|
37664
|
+
function fY(n) {
|
|
37666
37665
|
return n.split("_").map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" ");
|
|
37667
37666
|
}
|
|
37668
|
-
const
|
|
37667
|
+
const dY = () => async (n, r) => {
|
|
37669
37668
|
const i = r().publications_store.publication.doi, l = encodeURIComponent(i).replaceAll(".", "%2E"), u = "Unable to retrieve publication. Double check your DOI, or continue entering information manually.";
|
|
37670
37669
|
fetch(`/publications/lookup?doi=${l}`).then((d) => d.json()).then(
|
|
37671
37670
|
(d) => {
|
|
@@ -37673,7 +37672,7 @@ const vY = () => async (n, r) => {
|
|
|
37673
37672
|
let p = r().publications_store.publication_types.find(
|
|
37674
37673
|
(y) => y.citation_style_type == d.type
|
|
37675
37674
|
);
|
|
37676
|
-
n(T1(p ? p.publication_type : "Other")), n(
|
|
37675
|
+
n(T1(p ? p.publication_type : "Other")), n(KX(d));
|
|
37677
37676
|
} else
|
|
37678
37677
|
n(xm(u));
|
|
37679
37678
|
},
|
|
@@ -37681,11 +37680,11 @@ const vY = () => async (n, r) => {
|
|
|
37681
37680
|
n(xm(u));
|
|
37682
37681
|
}
|
|
37683
37682
|
);
|
|
37684
|
-
},
|
|
37683
|
+
}, pY = () => async (n, r) => {
|
|
37685
37684
|
const i = r().publications_store.grant_number, l = fc.routes.publications_find_project_path();
|
|
37686
37685
|
await fetch(`${l}?grant_number=${i}`).then((u) => u.json()).then(
|
|
37687
37686
|
(u) => {
|
|
37688
|
-
n(
|
|
37687
|
+
n(uY(u)), n(Ik(""));
|
|
37689
37688
|
},
|
|
37690
37689
|
() => {
|
|
37691
37690
|
n(
|
|
@@ -37696,10 +37695,10 @@ const vY = () => async (n, r) => {
|
|
|
37696
37695
|
}, Ak = () => async (n) => {
|
|
37697
37696
|
const r = /^\/requests/.test(window.location.pathname) ? fc.routes.publication_path("new.json") : window.location.href + ".json";
|
|
37698
37697
|
await fetch(r).then((i) => i.json()).then((i) => {
|
|
37699
|
-
n(
|
|
37698
|
+
n(iY(i));
|
|
37700
37699
|
});
|
|
37701
37700
|
}, Nk = () => async (n, r) => {
|
|
37702
|
-
const i = r().publications_store, l = i.projects.filter((T) => T.selected), u = Object.keys(i.selected_tags).map((T) => i.selected_tags[T]).flat(), d = { ...i.publication }, p = i.errors, { formValid: y, missingFields: g } =
|
|
37701
|
+
const i = r().publications_store, l = i.projects.filter((T) => T.selected), u = Object.keys(i.selected_tags).map((T) => i.selected_tags[T]).flat(), d = { ...i.publication }, p = i.errors, { formValid: y, missingFields: g } = lY(
|
|
37703
37702
|
d,
|
|
37704
37703
|
["title", "publication_year", "publication_month"],
|
|
37705
37704
|
["first_name", "last_name", "affiliation"]
|
|
@@ -37708,7 +37707,7 @@ const vY = () => async (n, r) => {
|
|
|
37708
37707
|
p.length > 0 && Array.from(p).forEach((A) => {
|
|
37709
37708
|
n(Rk(A.id));
|
|
37710
37709
|
});
|
|
37711
|
-
const T =
|
|
37710
|
+
const T = cY(g);
|
|
37712
37711
|
n(xm(T));
|
|
37713
37712
|
return;
|
|
37714
37713
|
}
|
|
@@ -37728,13 +37727,13 @@ const vY = () => async (n, r) => {
|
|
|
37728
37727
|
body: JSON.stringify(b)
|
|
37729
37728
|
}).then(
|
|
37730
37729
|
(T) => {
|
|
37731
|
-
i.redirect ? window.location.href = fc.routes.publications_path() : (d.publication_id || (n(
|
|
37730
|
+
i.redirect ? window.location.href = fc.routes.publications_path() : (d.publication_id || (n(oY()), n(Ak())), n(Tk(!0)), n(VS(!1)));
|
|
37732
37731
|
},
|
|
37733
37732
|
() => {
|
|
37734
37733
|
n(VS(!1)), n(xm("There was an error saving this publication."));
|
|
37735
37734
|
}
|
|
37736
37735
|
);
|
|
37737
|
-
},
|
|
37736
|
+
}, vY = ({ doi: n, updatePublication: r, doiLookup: i }) => /* @__PURE__ */ C.jsx("div", { className: "row mb-3", children: /* @__PURE__ */ C.jsxs("div", { className: "col", children: [
|
|
37738
37737
|
/* @__PURE__ */ C.jsx("label", { htmlFor: "doi", className: "form-label", children: "DOI" }),
|
|
37739
37738
|
/* @__PURE__ */ C.jsxs("div", { className: "input-group", children: [
|
|
37740
37739
|
/* @__PURE__ */ C.jsx(
|
|
@@ -37761,12 +37760,12 @@ const vY = () => async (n, r) => {
|
|
|
37761
37760
|
}
|
|
37762
37761
|
)
|
|
37763
37762
|
] })
|
|
37764
|
-
] }) }),
|
|
37765
|
-
doi:
|
|
37766
|
-
}),
|
|
37763
|
+
] }) }), hY = (n) => ({
|
|
37764
|
+
doi: $X(n)
|
|
37765
|
+
}), mY = (n) => ({
|
|
37767
37766
|
updatePublication: (r) => n(wk({ key: "doi", value: r })),
|
|
37768
|
-
doiLookup: () => n(
|
|
37769
|
-
}),
|
|
37767
|
+
doiLookup: () => n(dY())
|
|
37768
|
+
}), gY = Ko(hY, mY)(vY), yY = ({ author: n, authorKey: r, updateAuthor: i, deleteAuthor: l }) => {
|
|
37770
37769
|
const u = (y) => {
|
|
37771
37770
|
i({ key: y.target.name, value: y.target.value, idx: r });
|
|
37772
37771
|
}, d = (y) => /* @__PURE__ */ C.jsx("td", { children: /* @__PURE__ */ C.jsx(
|
|
@@ -37791,10 +37790,10 @@ const vY = () => async (n, r) => {
|
|
|
37791
37790
|
}
|
|
37792
37791
|
) })
|
|
37793
37792
|
] });
|
|
37794
|
-
},
|
|
37795
|
-
updateAuthor: (r) => n(
|
|
37796
|
-
deleteAuthor: (r) => n(
|
|
37797
|
-
}), TO = Ko(null,
|
|
37793
|
+
}, bY = (n) => ({
|
|
37794
|
+
updateAuthor: (r) => n(tY(r)),
|
|
37795
|
+
deleteAuthor: (r) => n(aY(r))
|
|
37796
|
+
}), TO = Ko(null, bY)(yY), CY = ({ authors: n, addAuthor: r, authors_exist: i }) => {
|
|
37798
37797
|
const l = n.length === 0, u = () => i ? "" : /* @__PURE__ */ C.jsx("div", { className: "alert alert-danger", children: "You must add at least one author and each author must have a first and last name" });
|
|
37799
37798
|
return /* @__PURE__ */ C.jsxs("div", { children: [
|
|
37800
37799
|
u(),
|
|
@@ -37812,12 +37811,12 @@ const vY = () => async (n, r) => {
|
|
|
37812
37811
|
] }),
|
|
37813
37812
|
/* @__PURE__ */ C.jsx("button", { className: "btn btn-primary mt-3", onClick: () => r(), children: "Add Author" })
|
|
37814
37813
|
] });
|
|
37815
|
-
},
|
|
37814
|
+
}, xY = (n) => ({
|
|
37816
37815
|
authors: yk(n),
|
|
37817
37816
|
authors_exist: Sk(n)
|
|
37818
|
-
}),
|
|
37819
|
-
addAuthor: () => n(
|
|
37820
|
-
}),
|
|
37817
|
+
}), EY = (n) => ({
|
|
37818
|
+
addAuthor: () => n(eY())
|
|
37819
|
+
}), SY = Ko(xY, EY)(CY), wY = ({ category: n, publication_tags: r, updateSelectedTags: i, index: l }) => {
|
|
37821
37820
|
const u = M.useRef(null), d = () => {
|
|
37822
37821
|
const y = r.filter(
|
|
37823
37822
|
(g) => g.label == n.label
|
|
@@ -37846,11 +37845,11 @@ const vY = () => async (n, r) => {
|
|
|
37846
37845
|
}
|
|
37847
37846
|
) })
|
|
37848
37847
|
] });
|
|
37849
|
-
},
|
|
37850
|
-
updateSelectedTags: (r) => n(
|
|
37851
|
-
}),
|
|
37852
|
-
publication_tags:
|
|
37853
|
-
}),
|
|
37848
|
+
}, RY = (n) => ({
|
|
37849
|
+
updateSelectedTags: (r) => n(rY(r))
|
|
37850
|
+
}), TY = (n) => ({
|
|
37851
|
+
publication_tags: ZX(n)
|
|
37852
|
+
}), IY = Ko(TY, RY)(wY), AY = ({ projects: n, toggleProject: r }) => {
|
|
37854
37853
|
const i = (u) => `list-group-item list-group-item-action clickable ${u.selected ? "list-group-item-success" : ""}`, l = () => n.filter((u) => u.selected).length > 0;
|
|
37855
37854
|
return /* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsxs("div", { className: "col", children: [
|
|
37856
37855
|
l() ? "" : /* @__PURE__ */ C.jsx("div", { className: "alert alert-danger", children: "You must select at least one project" }),
|
|
@@ -37868,11 +37867,11 @@ const vY = () => async (n, r) => {
|
|
|
37868
37867
|
`project_${u.grant_number}`
|
|
37869
37868
|
)) })
|
|
37870
37869
|
] }) });
|
|
37871
|
-
},
|
|
37872
|
-
projects:
|
|
37873
|
-
}),
|
|
37874
|
-
toggleProject: (r) => n(
|
|
37875
|
-
}),
|
|
37870
|
+
}, NY = (n) => ({
|
|
37871
|
+
projects: YX(n)
|
|
37872
|
+
}), OY = (n) => ({
|
|
37873
|
+
toggleProject: (r) => n(nY(r))
|
|
37874
|
+
}), _Y = Ko(NY, OY)(AY), DY = ({ grant_number: n, setGrantNumber: r, grantSearch: i }) => /* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsxs("div", { className: "col", children: [
|
|
37876
37875
|
"If your project isn't listed above, you can manually add it by entering the grant number below.",
|
|
37877
37876
|
/* @__PURE__ */ C.jsxs("div", { className: "input-group mt-1", children: [
|
|
37878
37877
|
/* @__PURE__ */ C.jsx(
|
|
@@ -37887,12 +37886,12 @@ const vY = () => async (n, r) => {
|
|
|
37887
37886
|
),
|
|
37888
37887
|
/* @__PURE__ */ C.jsx("button", { className: "btn btn-primary", onClick: () => i(), children: "Find Project" })
|
|
37889
37888
|
] })
|
|
37890
|
-
] }) }),
|
|
37889
|
+
] }) }), jY = (n) => ({
|
|
37891
37890
|
setGrantNumber: (r) => n(Ik(r)),
|
|
37892
|
-
grantSearch: () => n(
|
|
37893
|
-
}),
|
|
37891
|
+
grantSearch: () => n(pY())
|
|
37892
|
+
}), kY = (n) => ({
|
|
37894
37893
|
grant_number: n.publications_store.grant_number
|
|
37895
|
-
}),
|
|
37894
|
+
}), MY = Ko(kY, jY)(DY), LY = ({
|
|
37896
37895
|
publication: n,
|
|
37897
37896
|
updateField: r,
|
|
37898
37897
|
publication_types: i,
|
|
@@ -38001,7 +38000,7 @@ const vY = () => async (n, r) => {
|
|
|
38001
38000
|
/* @__PURE__ */ C.jsx("div", { className: "card-header", children: /* @__PURE__ */ C.jsx("h2", { children: "Publication Information" }) }),
|
|
38002
38001
|
/* @__PURE__ */ C.jsxs("div", { className: "card-body", children: [
|
|
38003
38002
|
/* @__PURE__ */ C.jsx("p", { className: "mb-2", children: 'Enter information about this publication below. If you have a DOI, you may use the "Lookup Publication" button to attempt to find this information automatically.' }),
|
|
38004
|
-
/* @__PURE__ */ C.jsx(
|
|
38003
|
+
/* @__PURE__ */ C.jsx(gY, {}),
|
|
38005
38004
|
/* @__PURE__ */ C.jsx("div", { className: "row mb-3", children: /* @__PURE__ */ C.jsxs("div", { className: "col", children: [
|
|
38006
38005
|
/* @__PURE__ */ C.jsx("label", { htmlFor: "publication_type", className: "form-label", children: "Publication Type" }),
|
|
38007
38006
|
/* @__PURE__ */ C.jsx(
|
|
@@ -38036,22 +38035,22 @@ const vY = () => async (n, r) => {
|
|
|
38036
38035
|
"button"
|
|
38037
38036
|
] })
|
|
38038
38037
|
] }),
|
|
38039
|
-
/* @__PURE__ */ C.jsx("div", { className: "card-body", children: /* @__PURE__ */ C.jsx(
|
|
38038
|
+
/* @__PURE__ */ C.jsx("div", { className: "card-body", children: /* @__PURE__ */ C.jsx(SY, {}) })
|
|
38040
38039
|
] }), N = /* @__PURE__ */ C.jsxs("div", { className: "card mt-3", children: [
|
|
38041
38040
|
/* @__PURE__ */ C.jsxs("div", { className: "card-header d-flex", children: [
|
|
38042
38041
|
/* @__PURE__ */ C.jsx("h2", { children: "Tags" }),
|
|
38043
38042
|
/* @__PURE__ */ C.jsx(Ip, { children: "Add related tags from the lists below. You may choose multiple tags per category." })
|
|
38044
38043
|
] }),
|
|
38045
|
-
/* @__PURE__ */ C.jsx("div", { className: "card-body", children: d.map((B, P) => /* @__PURE__ */ C.jsx(
|
|
38044
|
+
/* @__PURE__ */ C.jsx("div", { className: "card-body", children: d.map((B, P) => /* @__PURE__ */ C.jsx(IY, { index: P, category: B }, `tc_${P}`)) })
|
|
38046
38045
|
] }), L = /* @__PURE__ */ C.jsxs("div", { className: "card mt-3", children: [
|
|
38047
38046
|
/* @__PURE__ */ C.jsxs("div", { className: "card-header d-flex", children: [
|
|
38048
38047
|
/* @__PURE__ */ C.jsx("h2", { children: "Associated Projects" }),
|
|
38049
38048
|
/* @__PURE__ */ C.jsx(Ip, { children: "Click/Tap each project that this publication is related to." })
|
|
38050
38049
|
] }),
|
|
38051
38050
|
/* @__PURE__ */ C.jsxs("div", { className: "card-body", children: [
|
|
38052
|
-
/* @__PURE__ */ C.jsx(
|
|
38051
|
+
/* @__PURE__ */ C.jsx(_Y, {}),
|
|
38053
38052
|
/* @__PURE__ */ C.jsx("hr", {}),
|
|
38054
|
-
/* @__PURE__ */ C.jsx(
|
|
38053
|
+
/* @__PURE__ */ C.jsx(MY, {})
|
|
38055
38054
|
] })
|
|
38056
38055
|
] });
|
|
38057
38056
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
@@ -38069,21 +38068,21 @@ const vY = () => async (n, r) => {
|
|
|
38069
38068
|
}
|
|
38070
38069
|
) })
|
|
38071
38070
|
] });
|
|
38072
|
-
},
|
|
38073
|
-
publication:
|
|
38074
|
-
publication_types:
|
|
38075
|
-
tag_categories:
|
|
38071
|
+
}, FY = (n) => ({
|
|
38072
|
+
publication: GX(n),
|
|
38073
|
+
publication_types: WX(n),
|
|
38074
|
+
tag_categories: XX(n),
|
|
38076
38075
|
saving: Dw(n),
|
|
38077
|
-
modal:
|
|
38076
|
+
modal: qX(n),
|
|
38078
38077
|
save_enabled: Ek(n),
|
|
38079
38078
|
form_valid: xk(n)
|
|
38080
|
-
}),
|
|
38081
|
-
updateField: (r) => n(
|
|
38079
|
+
}), PY = (n) => ({
|
|
38080
|
+
updateField: (r) => n(QX(r)),
|
|
38082
38081
|
changePubType: (r) => n(T1(r)),
|
|
38083
38082
|
updatePublication: (r) => n(wk(r)),
|
|
38084
38083
|
savePublication: () => n(Nk()),
|
|
38085
|
-
setFormValid: (r) => n(
|
|
38086
|
-
}),
|
|
38084
|
+
setFormValid: (r) => n(sY(r))
|
|
38085
|
+
}), VY = Ko(FY, PY)(LY), BY = ({ errors: n, hideError: r }) => /* @__PURE__ */ C.jsx(C.Fragment, { children: n.map((i) => /* @__PURE__ */ C.jsxs(
|
|
38087
38086
|
"div",
|
|
38088
38087
|
{
|
|
38089
38088
|
className: "alert alert-danger alert-dismissible sticky-top",
|
|
@@ -38101,11 +38100,11 @@ const vY = () => async (n, r) => {
|
|
|
38101
38100
|
]
|
|
38102
38101
|
},
|
|
38103
38102
|
`err_${i.id}`
|
|
38104
|
-
)) }),
|
|
38105
|
-
errors:
|
|
38106
|
-
}),
|
|
38103
|
+
)) }), zY = (n) => ({
|
|
38104
|
+
errors: JX(n)
|
|
38105
|
+
}), HY = (n) => ({
|
|
38107
38106
|
hideError: (r) => n(Rk(r))
|
|
38108
|
-
}),
|
|
38107
|
+
}), UY = Ko(zY, HY)(BY), GY = ({ show_saved: n, updateShowSaved: r }) => {
|
|
38109
38108
|
const i = /* @__PURE__ */ C.jsxs("div", { className: "alert alert-success alert-dismissible sticky-top", children: [
|
|
38110
38109
|
"Publication Saved Successfully!",
|
|
38111
38110
|
/* @__PURE__ */ C.jsx(
|
|
@@ -38119,21 +38118,21 @@ const vY = () => async (n, r) => {
|
|
|
38119
38118
|
)
|
|
38120
38119
|
] });
|
|
38121
38120
|
return n ? i : /* @__PURE__ */ C.jsx(C.Fragment, {});
|
|
38122
|
-
},
|
|
38121
|
+
}, $Y = (n) => ({
|
|
38123
38122
|
show_saved: Ck(n)
|
|
38124
|
-
}),
|
|
38123
|
+
}), WY = (n) => ({
|
|
38125
38124
|
updateShowSaved: (r) => n(Tk(r))
|
|
38126
|
-
}),
|
|
38125
|
+
}), XY = Ko($Y, WY)(GY), YY = ({ getData: n, data_loaded: r }) => (M.useEffect(() => {
|
|
38127
38126
|
n();
|
|
38128
38127
|
}, []), /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
38129
|
-
/* @__PURE__ */ C.jsx(
|
|
38130
|
-
/* @__PURE__ */ C.jsx(
|
|
38131
|
-
r ? /* @__PURE__ */ C.jsx(
|
|
38132
|
-
] })),
|
|
38128
|
+
/* @__PURE__ */ C.jsx(XY, {}),
|
|
38129
|
+
/* @__PURE__ */ C.jsx(UY, {}),
|
|
38130
|
+
r ? /* @__PURE__ */ C.jsx(VY, {}) : /* @__PURE__ */ C.jsx(k0, {})
|
|
38131
|
+
] })), ZY = (n) => ({
|
|
38133
38132
|
data_loaded: bk(n)
|
|
38134
|
-
}),
|
|
38133
|
+
}), JY = (n) => ({
|
|
38135
38134
|
getData: () => n(Ak())
|
|
38136
|
-
}), Ok = Ko(
|
|
38135
|
+
}), Ok = Ko(ZY, JY)(YY), qY = ({
|
|
38137
38136
|
saving: n,
|
|
38138
38137
|
savePublication: r,
|
|
38139
38138
|
showSaved: i,
|
|
@@ -38189,13 +38188,13 @@ const vY = () => async (n, r) => {
|
|
|
38189
38188
|
}
|
|
38190
38189
|
)
|
|
38191
38190
|
] });
|
|
38192
|
-
},
|
|
38191
|
+
}, QY = (n) => ({
|
|
38193
38192
|
saving: Dw(n),
|
|
38194
38193
|
showSaved: Ck(n),
|
|
38195
38194
|
save_enabled: Ek(n)
|
|
38196
|
-
}),
|
|
38195
|
+
}), KY = (n) => ({
|
|
38197
38196
|
savePublication: () => n(Nk())
|
|
38198
|
-
}),
|
|
38197
|
+
}), eZ = Ko(QY, KY)(qY), tZ = ({ usernames: n = [], publication_ids: r = [] }) => {
|
|
38199
38198
|
const [i, l] = M.useState(n), [u, d] = M.useState(r), [p, y] = M.useState([]), g = M.useRef(i), b = (_) => {
|
|
38200
38199
|
g.current = _, l(_);
|
|
38201
38200
|
}, E = async () => {
|
|
@@ -38269,9 +38268,9 @@ const vY = () => async (n, r) => {
|
|
|
38269
38268
|
] }) }),
|
|
38270
38269
|
/* @__PURE__ */ C.jsx("tbody", { children: A })
|
|
38271
38270
|
] }),
|
|
38272
|
-
/* @__PURE__ */ C.jsx(
|
|
38271
|
+
/* @__PURE__ */ C.jsx(eZ, { updatePublications: E })
|
|
38273
38272
|
] });
|
|
38274
|
-
},
|
|
38273
|
+
}, nZ = () => `${Math.random().toString(36).slice(2)}`, I1 = document.querySelector("#publications-react"), rZ = I1 ? I1.dataset : {}, IO = {
|
|
38275
38274
|
publication_types: [],
|
|
38276
38275
|
tag_categories: [],
|
|
38277
38276
|
publication: {},
|
|
@@ -38281,11 +38280,11 @@ const vY = () => async (n, r) => {
|
|
|
38281
38280
|
data_loaded: !1,
|
|
38282
38281
|
saving: !1,
|
|
38283
38282
|
show_saved: !1,
|
|
38284
|
-
redirect:
|
|
38283
|
+
redirect: rZ.redirect || !1,
|
|
38285
38284
|
modal: I1 == null,
|
|
38286
38285
|
form_valid: !1,
|
|
38287
38286
|
grant_number: ""
|
|
38288
|
-
},
|
|
38287
|
+
}, aZ = (n = IO, r) => {
|
|
38289
38288
|
const { type: i, payload: l } = r;
|
|
38290
38289
|
switch (i) {
|
|
38291
38290
|
case "UPDATE_FIELD":
|
|
@@ -38344,7 +38343,7 @@ const vY = () => async (n, r) => {
|
|
|
38344
38343
|
return mo(n, (d) => (d.projects[l].selected = !d.projects[l].selected, d));
|
|
38345
38344
|
case "UPDATE_ERRORS": {
|
|
38346
38345
|
const u = {
|
|
38347
|
-
id:
|
|
38346
|
+
id: nZ(),
|
|
38348
38347
|
message: l
|
|
38349
38348
|
};
|
|
38350
38349
|
return {
|
|
@@ -38402,7 +38401,7 @@ const vY = () => async (n, r) => {
|
|
|
38402
38401
|
default:
|
|
38403
38402
|
return n;
|
|
38404
38403
|
}
|
|
38405
|
-
},
|
|
38404
|
+
}, iZ = {
|
|
38406
38405
|
filters: [],
|
|
38407
38406
|
resources: [],
|
|
38408
38407
|
filteredResources: [],
|
|
@@ -38412,9 +38411,9 @@ const vY = () => async (n, r) => {
|
|
|
38412
38411
|
"resourceCatalog/getResources",
|
|
38413
38412
|
async (n, { dispatch: r }) => {
|
|
38414
38413
|
const l = await (await fetch(n.apiUrl)).json();
|
|
38415
|
-
r(
|
|
38414
|
+
r(sZ({ data: l, params: n }));
|
|
38416
38415
|
}
|
|
38417
|
-
),
|
|
38416
|
+
), oZ = (n) => {
|
|
38418
38417
|
const r = [], i = n.filter(
|
|
38419
38418
|
(l) => l.features.filter((u) => u.selected).length > 0
|
|
38420
38419
|
);
|
|
@@ -38435,7 +38434,7 @@ const vY = () => async (n, r) => {
|
|
|
38435
38434
|
return !r.find((l) => l == i);
|
|
38436
38435
|
}, _k = D1({
|
|
38437
38436
|
name: "resourceCatalog",
|
|
38438
|
-
initialState:
|
|
38437
|
+
initialState: iZ,
|
|
38439
38438
|
reducers: {
|
|
38440
38439
|
handleResponse: (n, { payload: r }) => {
|
|
38441
38440
|
const i = r.data, l = r.params.excludedCategories, u = r.params.excludedFilters, d = r.params.excludedResources, p = r.params.allowedCategories, y = r.params.allowedFilters, g = [], b = {};
|
|
@@ -38509,7 +38508,7 @@ const vY = () => async (n, r) => {
|
|
|
38509
38508
|
(p) => p.featureId == i.featureId
|
|
38510
38509
|
);
|
|
38511
38510
|
u.selected = !u.selected;
|
|
38512
|
-
const d =
|
|
38511
|
+
const d = oZ(n.filters);
|
|
38513
38512
|
if (d.length > 0) {
|
|
38514
38513
|
const p = [], y = d.map((g) => g.features.map((b) => b.featureId));
|
|
38515
38514
|
n.resources.forEach((g) => {
|
|
@@ -38532,7 +38531,7 @@ const vY = () => async (n, r) => {
|
|
|
38532
38531
|
r.hasErrors = !0, console.log(i.error);
|
|
38533
38532
|
});
|
|
38534
38533
|
}
|
|
38535
|
-
}), { handleResponse:
|
|
38534
|
+
}), { handleResponse: sZ, processData: IZ, resetFilters: uZ, toggleFilter: lZ } = _k.actions, cZ = (n) => n.resourceCatalog.hasErrors, fZ = (n) => n.resourceCatalog.resourcesLoaded, dZ = (n) => n.resourceCatalog.filters, pZ = (n) => n.resourceCatalog.filteredResources, vZ = _k.reducer, hZ = ({ resource: n }) => {
|
|
38536
38535
|
const r = (l) => l.length == 0 ? "" : /* @__PURE__ */ C.jsx("ul", { children: l.map((u, d) => /* @__PURE__ */ C.jsx("li", { children: u }, `feature_${n.resourceId}_${d}`)) }), i = (l, u) => u && u != "" ? /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
38537
38536
|
/* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsx("div", { className: "col fw-bold", children: l }) }),
|
|
38538
38537
|
/* @__PURE__ */ C.jsx("div", { className: "row mb-3", children: /* @__PURE__ */ C.jsx(
|
|
@@ -38584,15 +38583,15 @@ const vY = () => async (n, r) => {
|
|
|
38584
38583
|
i("Recommended Use", n.recommendedUse)
|
|
38585
38584
|
] })
|
|
38586
38585
|
] });
|
|
38587
|
-
},
|
|
38588
|
-
const n = Ca(
|
|
38586
|
+
}, mZ = () => {
|
|
38587
|
+
const n = Ca(pZ);
|
|
38589
38588
|
return n.length == 0 ? /* @__PURE__ */ C.jsx("div", { className: "fw-bold", children: "No Resources Match Your Filters" }) : /* @__PURE__ */ C.jsxs("div", { children: [
|
|
38590
38589
|
/* @__PURE__ */ C.jsx("h4", { className: "mb-0", children: "Resources" }),
|
|
38591
|
-
/* @__PURE__ */ C.jsx(Jo, { children: n.map((r) => /* @__PURE__ */ C.jsx(
|
|
38590
|
+
/* @__PURE__ */ C.jsx(Jo, { children: n.map((r) => /* @__PURE__ */ C.jsx(hZ, { resource: r }, r.resourceId)) })
|
|
38592
38591
|
] });
|
|
38593
|
-
},
|
|
38592
|
+
}, gZ = ({ filter: n }) => {
|
|
38594
38593
|
const r = Ku(), i = () => {
|
|
38595
|
-
r(
|
|
38594
|
+
r(lZ(n));
|
|
38596
38595
|
};
|
|
38597
38596
|
return /* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsx("div", { className: "col", children: /* @__PURE__ */ C.jsxs("div", { className: "form-check", children: [
|
|
38598
38597
|
/* @__PURE__ */ C.jsx(
|
|
@@ -38615,27 +38614,27 @@ const vY = () => async (n, r) => {
|
|
|
38615
38614
|
}
|
|
38616
38615
|
)
|
|
38617
38616
|
] }) }) });
|
|
38618
|
-
},
|
|
38617
|
+
}, yZ = ({ category: n }) => /* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsxs("div", { className: "col", children: [
|
|
38619
38618
|
/* @__PURE__ */ C.jsx("div", { className: "fw-bold mb-1 mt-1", children: /* @__PURE__ */ C.jsx("abbr", { title: n.categoryDescription, children: n.categoryName }) }),
|
|
38620
|
-
n.features.map((r) => /* @__PURE__ */ C.jsx(
|
|
38621
|
-
] }) }),
|
|
38622
|
-
const n = Ku(), r = Ca(
|
|
38619
|
+
n.features.map((r) => /* @__PURE__ */ C.jsx(gZ, { filter: r }, r.featureId))
|
|
38620
|
+
] }) }), bZ = () => {
|
|
38621
|
+
const n = Ku(), r = Ca(dZ), i = r.filter(
|
|
38623
38622
|
(l) => l.features.filter((u) => u.selected).length > 0
|
|
38624
38623
|
);
|
|
38625
38624
|
return /* @__PURE__ */ C.jsxs("div", { children: [
|
|
38626
38625
|
/* @__PURE__ */ C.jsx("h4", { className: "mb-0", children: "Filters" }),
|
|
38627
|
-
r.map((l) => /* @__PURE__ */ C.jsx(
|
|
38626
|
+
r.map((l) => /* @__PURE__ */ C.jsx(yZ, { category: l }, l.categoryId)),
|
|
38628
38627
|
/* @__PURE__ */ C.jsx(
|
|
38629
38628
|
"button",
|
|
38630
38629
|
{
|
|
38631
38630
|
className: "btn btn-warning mt-2 mb-2",
|
|
38632
|
-
onClick: () => n(
|
|
38631
|
+
onClick: () => n(uZ()),
|
|
38633
38632
|
disabled: i.length == 0,
|
|
38634
38633
|
children: "Reset Filters"
|
|
38635
38634
|
}
|
|
38636
38635
|
)
|
|
38637
38636
|
] });
|
|
38638
|
-
},
|
|
38637
|
+
}, CZ = ({
|
|
38639
38638
|
apiUrl: n,
|
|
38640
38639
|
excludedCategories: r = [],
|
|
38641
38640
|
excludedFilters: i = [],
|
|
@@ -38643,7 +38642,7 @@ const vY = () => async (n, r) => {
|
|
|
38643
38642
|
allowedCategories: u = [],
|
|
38644
38643
|
allowedFilters: d = []
|
|
38645
38644
|
}) => {
|
|
38646
|
-
const p = Ku(), y = Ca(
|
|
38645
|
+
const p = Ku(), y = Ca(fZ), g = Ca(cZ);
|
|
38647
38646
|
return M.useEffect(() => {
|
|
38648
38647
|
p(
|
|
38649
38648
|
Gb({
|
|
@@ -38656,18 +38655,18 @@ const vY = () => async (n, r) => {
|
|
|
38656
38655
|
})
|
|
38657
38656
|
);
|
|
38658
38657
|
}, []), g ? /* @__PURE__ */ C.jsx("div", { className: "row", children: /* @__PURE__ */ C.jsx("div", { className: "col text-center mt-2", children: /* @__PURE__ */ C.jsx("h4", { children: "Unable to Load Resources" }) }) }) : y ? /* @__PURE__ */ C.jsx(C.Fragment, { children: /* @__PURE__ */ C.jsxs("div", { className: "row mt-3", children: [
|
|
38659
|
-
/* @__PURE__ */ C.jsx("div", { className: "col-sm-4", children: /* @__PURE__ */ C.jsx(
|
|
38660
|
-
/* @__PURE__ */ C.jsx("div", { className: "col-sm-8", children: /* @__PURE__ */ C.jsx(
|
|
38658
|
+
/* @__PURE__ */ C.jsx("div", { className: "col-sm-4", children: /* @__PURE__ */ C.jsx(bZ, {}) }),
|
|
38659
|
+
/* @__PURE__ */ C.jsx("div", { className: "col-sm-8", children: /* @__PURE__ */ C.jsx(mZ, {}) })
|
|
38661
38660
|
] }) }) : /* @__PURE__ */ C.jsx(k0, {});
|
|
38662
38661
|
};
|
|
38663
|
-
function
|
|
38662
|
+
function AZ(n, { bootstrapFonts: r = !0, bootstrapVariables: i = !0 } = {}) {
|
|
38664
38663
|
const l = n.attachShadow({ mode: "open" }), u = document.createElement("div"), d = document.createElement("div"), p = document.createElement("div"), y = document.createElement("link"), g = document.createElement("link"), b = import.meta.url.replace(/\/[^/]+$/, "");
|
|
38665
38664
|
return y.rel = "stylesheet", y.href = `${b}/bootstrap.css`, g.rel = "stylesheet", g.href = `${b}/xras-ui.css`, d.appendChild(p), u.appendChild(d), l.appendChild(u), l.appendChild(y), l.appendChild(g), u.classList.add("bootstrap"), i && d.classList.add("bootstrap-variables"), r && d.classList.add("bootstrap-fonts"), p;
|
|
38666
38665
|
}
|
|
38667
|
-
function
|
|
38666
|
+
function NZ({ target: n }) {
|
|
38668
38667
|
Xs.createRoot(n).render(/* @__PURE__ */ C.jsx(pz, {}));
|
|
38669
38668
|
}
|
|
38670
|
-
function
|
|
38669
|
+
function OZ({ target: n, username: r, routes: i }) {
|
|
38671
38670
|
i && (On.routes = i);
|
|
38672
38671
|
const l = b0({
|
|
38673
38672
|
reducer: {
|
|
@@ -38678,7 +38677,7 @@ function DZ({ target: n, username: r, routes: i }) {
|
|
|
38678
38677
|
/* @__PURE__ */ C.jsx(Sm, { store: l, children: /* @__PURE__ */ C.jsx(TX, { username: r }) })
|
|
38679
38678
|
);
|
|
38680
38679
|
}
|
|
38681
|
-
function
|
|
38680
|
+
function _Z({ target: n, apiUrl: r }) {
|
|
38682
38681
|
const i = b0({
|
|
38683
38682
|
reducer: {
|
|
38684
38683
|
projectsBrowser: VX
|
|
@@ -38691,32 +38690,32 @@ function jZ({ target: n, apiUrl: r }) {
|
|
|
38691
38690
|
}
|
|
38692
38691
|
});
|
|
38693
38692
|
Xs.createRoot(n).render(
|
|
38694
|
-
/* @__PURE__ */ C.jsx(Sm, { store: i, children: /* @__PURE__ */ C.jsx(
|
|
38693
|
+
/* @__PURE__ */ C.jsx(Sm, { store: i, children: /* @__PURE__ */ C.jsx(UX, {}) })
|
|
38695
38694
|
);
|
|
38696
38695
|
}
|
|
38697
38696
|
function Dk() {
|
|
38698
38697
|
return b0({
|
|
38699
38698
|
reducer: {
|
|
38700
|
-
publications_store:
|
|
38699
|
+
publications_store: aZ
|
|
38701
38700
|
}
|
|
38702
38701
|
});
|
|
38703
38702
|
}
|
|
38704
|
-
function
|
|
38703
|
+
function DZ({ target: n, routes: r }) {
|
|
38705
38704
|
r && (fc.routes = r), Xs.createRoot(n).render(
|
|
38706
38705
|
/* @__PURE__ */ C.jsx(Sm, { store: Dk(), children: /* @__PURE__ */ C.jsx(Ok, {}) })
|
|
38707
38706
|
);
|
|
38708
38707
|
}
|
|
38709
|
-
function
|
|
38708
|
+
function jZ({ target: n, routes: r }) {
|
|
38710
38709
|
r && (fc.routes = r), Xs.createRoot(n).render(
|
|
38711
38710
|
/* @__PURE__ */ C.jsx(Sm, { store: Dk(), children: /* @__PURE__ */ C.jsx(
|
|
38712
|
-
|
|
38711
|
+
tZ,
|
|
38713
38712
|
{
|
|
38714
38713
|
...JSON.parse(n.dataset.publicationsSelectProps)
|
|
38715
38714
|
}
|
|
38716
38715
|
) })
|
|
38717
38716
|
);
|
|
38718
38717
|
}
|
|
38719
|
-
function
|
|
38718
|
+
function kZ({
|
|
38720
38719
|
target: n,
|
|
38721
38720
|
apiUrl: r,
|
|
38722
38721
|
excludedCategories: i,
|
|
@@ -38727,12 +38726,12 @@ function LZ({
|
|
|
38727
38726
|
}) {
|
|
38728
38727
|
const y = b0({
|
|
38729
38728
|
reducer: {
|
|
38730
|
-
resourceCatalog:
|
|
38729
|
+
resourceCatalog: vZ
|
|
38731
38730
|
}
|
|
38732
38731
|
});
|
|
38733
38732
|
Xs.createRoot(n).render(
|
|
38734
38733
|
/* @__PURE__ */ C.jsx(Sm, { store: y, children: /* @__PURE__ */ C.jsx(
|
|
38735
|
-
|
|
38734
|
+
CZ,
|
|
38736
38735
|
{
|
|
38737
38736
|
apiUrl: r,
|
|
38738
38737
|
excludedCategories: i,
|
|
@@ -38745,11 +38744,11 @@ function LZ({
|
|
|
38745
38744
|
);
|
|
38746
38745
|
}
|
|
38747
38746
|
export {
|
|
38748
|
-
|
|
38749
|
-
|
|
38750
|
-
|
|
38751
|
-
|
|
38752
|
-
|
|
38753
|
-
|
|
38754
|
-
|
|
38747
|
+
NZ as allocationsMap,
|
|
38748
|
+
OZ as projects,
|
|
38749
|
+
_Z as projectsBrowser,
|
|
38750
|
+
DZ as publications,
|
|
38751
|
+
jZ as publicationsSelect,
|
|
38752
|
+
kZ as resourceCatalog,
|
|
38753
|
+
AZ as shadowTarget
|
|
38755
38754
|
};
|