col-browser 2.6.1 → 2.6.2

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,40 +1,40 @@
1
- var C = Object.defineProperty;
2
- var _ = (i, l, s) => l in i ? C(i, l, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[l] = s;
3
- var c = (i, l, s) => _(i, typeof l != "symbol" ? l + "" : l, s);
4
- import { a as A } from "./chunks/withDatasetKey-BgMY05XE.js";
5
- import { w as I } from "./chunks/withTheme-Dh6PRuII.js";
6
- import { j as t } from "./chunks/jsx-runtime-BzflLqGi.js";
7
- import h from "react";
8
- import { c as x } from "./chunks/config--bs_09I6.js";
9
- import { c as m, L as K, s as T, R, b as M } from "./chunks/router-CssZk5qZ.js";
10
- import { Skeleton as E, Alert as P, Row as j, Col as u, Tooltip as L, Button as F, Rate as O } from "antd";
11
- import { E as N } from "./chunks/ErrorMsg-K8k5PPTp.js";
12
- import { D as z } from "./chunks/DatasetlogoWithFallback-Bb-kmHts.js";
13
- import { M as B } from "./chunks/MetricsPresentation-DKCJQOtf.js";
14
- import { get as p, isEmpty as S, isArray as H } from "lodash-es";
1
+ var v = Object.defineProperty;
2
+ var C = (a, l, s) => l in a ? v(a, l, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[l] = s;
3
+ var d = (a, l, s) => C(a, typeof l != "symbol" ? l + "" : l, s);
4
+ import { a as T } from "./chunks/withDatasetKey-BgMY05XE.js";
5
+ import { w as _ } from "./chunks/withTheme-Dh6PRuII.js";
6
+ import { j as e } from "./chunks/jsx-runtime-BzflLqGi.js";
7
+ import m from "react";
8
+ import { c as g } from "./chunks/config--bs_09I6.js";
9
+ import { c as j, L as A, s as I, R as K, b as R } from "./chunks/router-CssZk5qZ.js";
10
+ import { Skeleton as E, Alert as M, Row as w, Col as y, Tooltip as P, Button as L, Rate as O } from "antd";
11
+ import { M as F, E as N } from "./chunks/ErrorMsg-D5nALHuK.js";
12
+ import { D as B } from "./chunks/DatasetlogoWithFallback-Bb-kmHts.js";
13
+ import { M as z } from "./chunks/MetricsPresentation-DKCJQOtf.js";
14
+ import { get as u, isEmpty as $, isArray as H } from "lodash-es";
15
15
  import { P as o } from "./chunks/PresentationItem-C4yZ555-.js";
16
16
  import { g as W } from "./chunks/enumeration-CsrJrIIR.js";
17
- import { B as G } from "./chunks/BibTex-DRE71Hg-.js";
18
- import { marked as U } from "marked";
19
- import V from "dompurify";
20
- import { R as q } from "./chunks/LinkOutlined-2IkQWTV7.js";
21
- class X extends h.Component {
17
+ import { B as U } from "./chunks/BibTex-DRE71Hg-.js";
18
+ import { marked as q } from "marked";
19
+ import G from "dompurify";
20
+ import { R as V } from "./chunks/LinkOutlined-2IkQWTV7.js";
21
+ class X extends m.Component {
22
22
  constructor(s) {
23
23
  super(s);
24
- c(this, "getData", () => {
25
- const { dataset: s, datasetKey: e } = this.props;
26
- m(
27
- `${x.dataApi}dataset/${e}/source/${s.key}/metrics`
24
+ d(this, "getData", () => {
25
+ const { dataset: s, datasetKey: t } = this.props;
26
+ j(
27
+ `${g.dataApi}dataset/${t}/source/${s.key}/metrics`
28
28
  ).then((r) => {
29
29
  this.setState({ metrics: r.data });
30
30
  });
31
31
  });
32
- c(this, "getRank", () => {
33
- m(`${x.dataApi}vocab/rank`).then(
34
- (s) => this.setState({ rank: s.data.map((e) => e.name) })
32
+ d(this, "getRank", () => {
33
+ j(`${g.dataApi}vocab/rank`).then(
34
+ (s) => this.setState({ rank: s.data.map((t) => t.name) })
35
35
  );
36
36
  });
37
- c(this, "render", () => /* @__PURE__ */ t.jsx(B, { ...this.state, dataset: this.props.dataset }));
37
+ d(this, "render", () => /* @__PURE__ */ e.jsx(z, { ...this.state, dataset: this.props.dataset }));
38
38
  this.state = {
39
39
  metrics: null,
40
40
  rank: null,
@@ -45,49 +45,61 @@ class X extends h.Component {
45
45
  this.getData(), this.getRank();
46
46
  }
47
47
  }
48
- class Y extends h.Component {
48
+ const Y = (a, l) => {
49
+ const { id: s, mode: t, subject: r, target: n } = l, i = t === "merge" || t === "union", c = new URLSearchParams({ TAXON_ID: n.id });
50
+ return i ? c.set("q", n.name) : (c.set("SECTOR_KEY", s), r.rank && c.set("rank", r.rank), c.set("q", r.name)), c.set("type", "EXACT"), j(
51
+ `${g.dataApi}dataset/${a}/nameusage/search?${c}`
52
+ ).then((x) => {
53
+ const p = u(x, "data.result") || [];
54
+ if (i)
55
+ return p.find((h) => {
56
+ var f;
57
+ return ((f = h.usage) == null ? void 0 : f.id) === n.id;
58
+ });
59
+ const k = (h) => {
60
+ var f, S;
61
+ return (S = (f = h.classification) == null ? void 0 : f[h.classification.length - 2]) == null ? void 0 : S.id;
62
+ };
63
+ return p.find((h) => k(h) === n.id) || p[0];
64
+ });
65
+ }, J = (a) => {
66
+ var l, s;
67
+ return !!((l = a == null ? void 0 : a.target) != null && l.id) && (a.mode === "merge" || a.mode === "union" ? !!a.target.name : !!((s = a.subject) != null && s.name));
68
+ };
69
+ class Q extends m.Component {
49
70
  constructor(s) {
50
71
  super(s);
51
- c(this, "getData", () => {
52
- const { dataset: s, datasetKey: e } = this.props, r = {};
53
- m(
54
- `${x.dataApi}dataset/${e}/sector?limit=1000&subjectDatasetKey=${s.key}`
72
+ d(this, "getData", () => {
73
+ const { dataset: s, datasetKey: t } = this.props, r = {};
74
+ j(
75
+ `${g.dataApi}dataset/${t}/sector?limit=1000&subjectDatasetKey=${s.key}`
55
76
  ).then((n) => Promise.allSettled(
56
- n.data.result.filter((a) => !!(a != null && a.target)).map(
57
- (a) => {
58
- var b, k, w, $;
59
- return m(
60
- `${x.dataApi}dataset/${e}/nameusage/search?TAXON_ID=${(b = a == null ? void 0 : a.target) == null ? void 0 : b.id}${(k = a == null ? void 0 : a.subject) != null && k.rank ? "&rank=" + ((w = a == null ? void 0 : a.subject) == null ? void 0 : w.rank) : ""}&q=${($ = a == null ? void 0 : a.subject) == null ? void 0 : $.name}`
61
- ).then((f) => {
62
- const d = p(f, "data.result[0]");
63
- if (d) {
64
- const y = d.classification.slice(1, d.classification.length - 1).map((v) => v.name).join(" > ");
65
- r[y] ? r[y].push(
66
- d.classification[d.classification.length - 1]
67
- ) : r[y] = [
68
- d.classification[d.classification.length - 1]
69
- ];
70
- }
71
- }).catch((f) => {
72
- console.log(a), console.log(f);
73
- });
74
- }
77
+ n.data.result.filter(J).map(
78
+ (i) => Y(t, i).then((c) => {
79
+ if (c) {
80
+ const x = c.classification, p = x.slice(1, x.length - 1).map((h) => h.name).join(" > "), k = { taxon: x[x.length - 1], merged: i.mode === "merge" };
81
+ r[p] ? r[p].push(k) : r[p] = [k];
82
+ }
83
+ }).catch((c) => {
84
+ console.log(i), console.log(c);
85
+ })
75
86
  )
76
87
  ).then(() => this.setState({ taxonMap: r, loading: !1 })));
77
88
  });
78
- c(this, "render", () => {
79
- const { taxonMap: s } = this.state, { style: e } = this.props;
80
- return s ? Object.keys(s).length > 0 ? Object.keys(s).sort((r, n) => r.length - n.length).map((r) => /* @__PURE__ */ t.jsxs("div", { style: e, children: [
81
- /* @__PURE__ */ t.jsxs("span", { children: [
89
+ d(this, "render", () => {
90
+ const { taxonMap: s } = this.state, { style: t } = this.props;
91
+ return s ? Object.keys(s).length > 0 ? Object.keys(s).sort((r, n) => r.length - n.length).map((r) => /* @__PURE__ */ e.jsxs("div", { style: t, children: [
92
+ /* @__PURE__ */ e.jsxs("span", { children: [
82
93
  r,
83
94
  r !== "" ? ":" : ""
84
95
  ] }),
85
96
  " ",
86
- s[r].map((n, a) => /* @__PURE__ */ t.jsxs(h.Fragment, { children: [
87
- /* @__PURE__ */ t.jsx(K, { to: "tree", args: { taxonKey: n.id }, children: n.name }),
88
- a !== s[r].length - 1 ? ", " : ""
89
- ] }, a))
90
- ] }, r)) : "N/A" : /* @__PURE__ */ t.jsx(E, { active: !0, paragraph: { rows: 4 } });
97
+ s[r].map(({ taxon: n, merged: i }, c) => /* @__PURE__ */ e.jsxs(m.Fragment, { children: [
98
+ i && /* @__PURE__ */ e.jsx(F, {}),
99
+ /* @__PURE__ */ e.jsx(A, { to: "tree", args: { taxonKey: n.id }, children: n.name }),
100
+ c !== s[r].length - 1 ? ", " : ""
101
+ ] }, c))
102
+ ] }, r)) : "N/A" : /* @__PURE__ */ e.jsx(E, { active: !0, paragraph: { rows: 4 } });
91
103
  });
92
104
  this.state = {
93
105
  loading: !0,
@@ -98,16 +110,16 @@ class Y extends h.Component {
98
110
  this.getData();
99
111
  }
100
112
  }
101
- const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
102
- const r = p(i, "country") ? p(
113
+ const b = ({ agent: a, countryAlpha2: l, style: s, noLinks: t }) => {
114
+ const r = u(a, "country") ? u(
103
115
  l,
104
- `[${p(i, "country")}].title`,
105
- p(i, "country")
116
+ `[${u(a, "country")}].title`,
117
+ u(a, "country")
106
118
  ) : null;
107
- return i ? /* @__PURE__ */ t.jsxs("span", { style: s, children: [
108
- (i.given || i.family) && /* @__PURE__ */ t.jsx("span", { style: { display: "block" }, children: [i.family, i.given].filter((n) => !!n).join(", ") }),
109
- i.orcid && (e ? /* @__PURE__ */ t.jsxs("div", { children: [
110
- /* @__PURE__ */ t.jsx(
119
+ return a ? /* @__PURE__ */ e.jsxs("span", { style: s, children: [
120
+ (a.given || a.family) && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: [a.family, a.given].filter((n) => !!n).join(", ") }),
121
+ a.orcid && (t ? /* @__PURE__ */ e.jsxs("div", { children: [
122
+ /* @__PURE__ */ e.jsx(
111
123
  "img",
112
124
  {
113
125
  src: "https://www.checklistbank.org/images/orcid_16x16.png",
@@ -116,14 +128,14 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
116
128
  }
117
129
  ),
118
130
  " ",
119
- i.orcid
120
- ] }) : /* @__PURE__ */ t.jsxs(
131
+ a.orcid
132
+ ] }) : /* @__PURE__ */ e.jsxs(
121
133
  "a",
122
134
  {
123
135
  style: { display: "block" },
124
- href: `https://orcid.org/${i.orcid}`,
136
+ href: `https://orcid.org/${a.orcid}`,
125
137
  children: [
126
- /* @__PURE__ */ t.jsx(
138
+ /* @__PURE__ */ e.jsx(
127
139
  "img",
128
140
  {
129
141
  src: "https://www.checklistbank.org/images/orcid_16x16.png",
@@ -132,13 +144,13 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
132
144
  }
133
145
  ),
134
146
  " ",
135
- i.orcid
147
+ a.orcid
136
148
  ]
137
149
  }
138
150
  )),
139
- i.organisation && /* @__PURE__ */ t.jsx("span", { style: { display: "block" }, children: i.organisation }),
140
- i.rorid && (e ? /* @__PURE__ */ t.jsxs("div", { children: [
141
- /* @__PURE__ */ t.jsx(
151
+ a.organisation && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: a.organisation }),
152
+ a.rorid && (t ? /* @__PURE__ */ e.jsxs("div", { children: [
153
+ /* @__PURE__ */ e.jsx(
142
154
  "img",
143
155
  {
144
156
  src: "https://www.checklistbank.org/images/ror-logo-small.png",
@@ -147,14 +159,14 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
147
159
  }
148
160
  ),
149
161
  " ",
150
- i.rorid
151
- ] }) : /* @__PURE__ */ t.jsxs(
162
+ a.rorid
163
+ ] }) : /* @__PURE__ */ e.jsxs(
152
164
  "a",
153
165
  {
154
166
  style: { display: "block" },
155
- href: `https://ror.org/${i.rorid}`,
167
+ href: `https://ror.org/${a.rorid}`,
156
168
  children: [
157
- /* @__PURE__ */ t.jsx(
169
+ /* @__PURE__ */ e.jsx(
158
170
  "img",
159
171
  {
160
172
  src: "https://www.checklistbank.org/images/ror-logo-small.png",
@@ -163,12 +175,12 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
163
175
  }
164
176
  ),
165
177
  " ",
166
- i.rorid
178
+ a.rorid
167
179
  ]
168
180
  }
169
181
  )),
170
- i.department && /* @__PURE__ */ t.jsx("span", { style: { display: "block" }, children: i.department }),
171
- (i.city || i.state || r) && /* @__PURE__ */ t.jsx("span", { style: { display: "block" }, children: [i.city, i.state, r].filter((n) => !!n).join(", ") })
182
+ a.department && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: a.department }),
183
+ (a.city || a.state || r) && /* @__PURE__ */ e.jsx("span", { style: { display: "block" }, children: [a.city, a.state, r].filter((n) => !!n).join(", ") })
172
184
  ] }) : null;
173
185
  }, D = {
174
186
  col: "https://www.checklistbank.org/dataset/",
@@ -176,32 +188,32 @@ const g = ({ agent: i, countryAlpha2: l, style: s, noLinks: e }) => {
176
188
  plazi: "http://publication.plazi.org/id/",
177
189
  doi: "https://doi.org/"
178
190
  };
179
- class J extends h.Component {
191
+ class Z extends m.Component {
180
192
  constructor(s) {
181
193
  super(s);
182
- c(this, "componentDidMount", () => {
194
+ d(this, "componentDidMount", () => {
183
195
  this.getData(), W().then((s) => {
184
- const e = {};
196
+ const t = {};
185
197
  s.forEach((r) => {
186
- e[r.alpha2] = r;
187
- }), this.setState({ countryAlpha2: e });
198
+ t[r.alpha2] = r;
199
+ }), this.setState({ countryAlpha2: t });
188
200
  });
189
201
  });
190
- c(this, "getData", () => {
191
- const { datasetKey: s, sourceDatasetKey: e, pageTitleTemplate: r } = this.props;
192
- e && m(`${x.dataApi}dataset/${s}/source/${e}`).then((n) => {
193
- r && p(n, "data.title") && (document.title = r.replace(
202
+ d(this, "getData", () => {
203
+ const { datasetKey: s, sourceDatasetKey: t, pageTitleTemplate: r } = this.props;
204
+ t && j(`${g.dataApi}dataset/${s}/source/${t}`).then((n) => {
205
+ r && u(n, "data.title") && (document.title = r.replace(
194
206
  "__dataset__",
195
207
  n.data.title
196
208
  )), this.setState({ data: n.data, datasetError: null });
197
209
  }).catch((n) => this.setState({ datasetError: n, data: null }));
198
210
  });
199
- c(this, "getRank", () => {
200
- m(`${x.dataApi}vocab/rank`).then(
201
- (s) => this.setState({ rank: s.data.map((e) => e.name) })
211
+ d(this, "getRank", () => {
212
+ j(`${g.dataApi}vocab/rank`).then(
213
+ (s) => this.setState({ rank: s.data.map((t) => t.name) })
202
214
  );
203
215
  });
204
- T(this.props.auth), this.state = {
216
+ I(this.props.auth), this.state = {
205
217
  datasetLoading: !0,
206
218
  data: null,
207
219
  rank: null,
@@ -212,8 +224,8 @@ class J extends h.Component {
212
224
  (s.sourceDatasetKey !== this.props.sourceDatasetKey || s.datasetKey !== this.props.datasetKey) && this.getData();
213
225
  }
214
226
  render() {
215
- const { datasetKey: s } = this.props, { data: e, countryAlpha2: r, datasetError: n } = this.state;
216
- return /* @__PURE__ */ t.jsx(h.Fragment, { children: /* @__PURE__ */ t.jsxs(
227
+ const { datasetKey: s } = this.props, { data: t, countryAlpha2: r, datasetError: n } = this.state;
228
+ return /* @__PURE__ */ e.jsx(m.Fragment, { children: /* @__PURE__ */ e.jsxs(
217
229
  "div",
218
230
  {
219
231
  className: "catalogue-of-life",
@@ -225,10 +237,10 @@ class J extends h.Component {
225
237
  fontSize: "12px"
226
238
  },
227
239
  children: [
228
- n && /* @__PURE__ */ t.jsx(P, { message: /* @__PURE__ */ t.jsx(N, { error: n }), type: "error" }),
229
- e && /* @__PURE__ */ t.jsxs(j, { children: [
230
- /* @__PURE__ */ t.jsxs(u, { flex: "auto", children: [
231
- /* @__PURE__ */ t.jsx(
240
+ n && /* @__PURE__ */ e.jsx(M, { message: /* @__PURE__ */ e.jsx(N, { error: n }), type: "error" }),
241
+ t && /* @__PURE__ */ e.jsxs(w, { children: [
242
+ /* @__PURE__ */ e.jsxs(y, { flex: "auto", children: [
243
+ /* @__PURE__ */ e.jsx(
232
244
  "h1",
233
245
  {
234
246
  style: {
@@ -238,23 +250,23 @@ class J extends h.Component {
238
250
  display: "inline-block",
239
251
  textTransform: "none"
240
252
  },
241
- children: e.title
253
+ children: t.title
242
254
  }
243
255
  ),
244
- e && /* @__PURE__ */ t.jsxs(h.Fragment, { children: [
245
- /* @__PURE__ */ t.jsx("br", {}),
246
- /* @__PURE__ */ t.jsx(
247
- G,
256
+ t && /* @__PURE__ */ e.jsxs(m.Fragment, { children: [
257
+ /* @__PURE__ */ e.jsx("br", {}),
258
+ /* @__PURE__ */ e.jsx(
259
+ U,
248
260
  {
249
261
  style: { marginLeft: "8px", height: "32px" },
250
262
  datasetKey: s,
251
- sourceDatasetKey: s !== e.key ? e.key : void 0
263
+ sourceDatasetKey: s !== t.key ? t.key : void 0
252
264
  }
253
265
  )
254
266
  ] })
255
267
  ] }),
256
- /* @__PURE__ */ t.jsx(u, { style: { textAlign: "right" }, children: /* @__PURE__ */ t.jsx(
257
- z,
268
+ /* @__PURE__ */ e.jsx(y, { style: { textAlign: "right" }, children: /* @__PURE__ */ e.jsx(
269
+ B,
258
270
  {
259
271
  auth: this.props.auth,
260
272
  style: {
@@ -263,25 +275,25 @@ class J extends h.Component {
263
275
  marginRight: "8px"
264
276
  },
265
277
  datasetKey: s,
266
- sourceDatasetKey: e.key
278
+ sourceDatasetKey: t.key
267
279
  }
268
280
  ) })
269
281
  ] }),
270
- e && /* @__PURE__ */ t.jsxs(h.Fragment, { children: [
271
- /* @__PURE__ */ t.jsxs(o, { label: "Short name", children: [
272
- e.alias,
273
- /* @__PURE__ */ t.jsx(
274
- L,
282
+ t && /* @__PURE__ */ e.jsxs(m.Fragment, { children: [
283
+ /* @__PURE__ */ e.jsxs(o, { label: "Short name", children: [
284
+ t.alias,
285
+ /* @__PURE__ */ e.jsx(
286
+ P,
275
287
  {
276
288
  title: "Visit in COL Checklistbank",
277
289
  getPopupContainer: () => document.getElementsByClassName("catalogue-of-life")[0],
278
- children: /* @__PURE__ */ t.jsxs(
279
- F,
290
+ children: /* @__PURE__ */ e.jsxs(
291
+ L,
280
292
  {
281
293
  type: "link",
282
- href: `https://www.checklistbank.org/dataset/${e.key}`,
294
+ href: `https://www.checklistbank.org/dataset/${t.key}`,
283
295
  children: [
284
- /* @__PURE__ */ t.jsx(q, {}),
296
+ /* @__PURE__ */ e.jsx(V, {}),
285
297
  " "
286
298
  ]
287
299
  }
@@ -289,16 +301,16 @@ class J extends h.Component {
289
301
  }
290
302
  )
291
303
  ] }),
292
- /* @__PURE__ */ t.jsx(o, { label: "Full name", children: e.title }),
293
- (e.version || e.issued) && /* @__PURE__ */ t.jsx(
304
+ /* @__PURE__ */ e.jsx(o, { label: "Full name", children: t.title }),
305
+ (t.version || t.issued) && /* @__PURE__ */ e.jsx(
294
306
  o,
295
307
  {
296
- label: `${e.version ? "Version" : ""}${e.version && e.issued ? " / " : ""}${e.issued ? "Issued" : ""}`,
297
- children: (e.version || e.issued) && `${e.version ? e.version : ""}${e.issued ? " / " + e.issued : ""}`
308
+ label: `${t.version ? "Version" : ""}${t.version && t.issued ? " / " : ""}${t.issued ? "Issued" : ""}`,
309
+ children: (t.version || t.issued) && `${t.version ? t.version : ""}${t.issued ? " / " + t.issued : ""}`
298
310
  }
299
311
  ),
300
- /* @__PURE__ */ t.jsx(o, { label: "DOI", children: e.doi ? /* @__PURE__ */ t.jsxs("a", { href: `https://doi.org/${e.doi}`, children: [
301
- /* @__PURE__ */ t.jsx(
312
+ /* @__PURE__ */ e.jsx(o, { label: "DOI", children: t.doi ? /* @__PURE__ */ e.jsxs("a", { href: `https://doi.org/${t.doi}`, children: [
313
+ /* @__PURE__ */ e.jsx(
302
314
  "img",
303
315
  {
304
316
  src: "https://www.checklistbank.org/images/DOI_logo.png",
@@ -306,89 +318,89 @@ class J extends h.Component {
306
318
  alt: ""
307
319
  }
308
320
  ),
309
- e.doi
321
+ t.doi
310
322
  ] }) : "-" }),
311
- e.contact && !S(e.contact) && /* @__PURE__ */ t.jsx(o, { label: "Contact", children: /* @__PURE__ */ t.jsx(
312
- g,
323
+ t.contact && !$(t.contact) && /* @__PURE__ */ e.jsx(o, { label: "Contact", children: /* @__PURE__ */ e.jsx(
324
+ b,
313
325
  {
314
326
  countryAlpha2: r,
315
- agent: e.contact
327
+ agent: t.contact
316
328
  }
317
329
  ) }),
318
- e.publisher && !S(e.publisher) && /* @__PURE__ */ t.jsx(o, { label: "Publisher", children: /* @__PURE__ */ t.jsx(
319
- g,
330
+ t.publisher && !$(t.publisher) && /* @__PURE__ */ e.jsx(o, { label: "Publisher", children: /* @__PURE__ */ e.jsx(
331
+ b,
320
332
  {
321
333
  countryAlpha2: r,
322
- agent: e.publisher
334
+ agent: t.publisher
323
335
  }
324
336
  ) }),
325
- e.creator && /* @__PURE__ */ t.jsx(o, { label: "Creator", children: /* @__PURE__ */ t.jsx(j, { gutter: [8, 8], children: e.creator.map((a) => /* @__PURE__ */ t.jsx(u, { span: 8, children: /* @__PURE__ */ t.jsx(
326
- g,
337
+ t.creator && /* @__PURE__ */ e.jsx(o, { label: "Creator", children: /* @__PURE__ */ e.jsx(w, { gutter: [8, 8], children: t.creator.map((i) => /* @__PURE__ */ e.jsx(y, { span: 8, children: /* @__PURE__ */ e.jsx(
338
+ b,
327
339
  {
328
340
  countryAlpha2: r,
329
- agent: a
341
+ agent: i
330
342
  }
331
343
  ) })) }) }),
332
- e.editor && /* @__PURE__ */ t.jsx(o, { label: "Editor", children: /* @__PURE__ */ t.jsx(j, { gutter: [8, 8], children: e.editor.map((a) => /* @__PURE__ */ t.jsx(u, { span: 8, children: /* @__PURE__ */ t.jsx(
333
- g,
344
+ t.editor && /* @__PURE__ */ e.jsx(o, { label: "Editor", children: /* @__PURE__ */ e.jsx(w, { gutter: [8, 8], children: t.editor.map((i) => /* @__PURE__ */ e.jsx(y, { span: 8, children: /* @__PURE__ */ e.jsx(
345
+ b,
334
346
  {
335
347
  countryAlpha2: r,
336
- agent: a
348
+ agent: i
337
349
  }
338
350
  ) })) }) }),
339
- e.contributor && /* @__PURE__ */ t.jsx(o, { label: "Contributor", children: /* @__PURE__ */ t.jsx(j, { gutter: [8, 8], children: e.contributor.map((a) => /* @__PURE__ */ t.jsx(u, { span: 8, children: /* @__PURE__ */ t.jsx(
340
- g,
351
+ t.contributor && /* @__PURE__ */ e.jsx(o, { label: "Contributor", children: /* @__PURE__ */ e.jsx(w, { gutter: [8, 8], children: t.contributor.map((i) => /* @__PURE__ */ e.jsx(y, { span: 8, children: /* @__PURE__ */ e.jsx(
352
+ b,
341
353
  {
342
354
  countryAlpha2: r,
343
- agent: a
355
+ agent: i
344
356
  }
345
357
  ) })) }) }),
346
- /* @__PURE__ */ t.jsx(o, { label: "Taxonomic coverage", children: /* @__PURE__ */ t.jsx(
347
- Y,
358
+ /* @__PURE__ */ e.jsx(o, { label: "Taxonomic coverage", children: /* @__PURE__ */ e.jsx(
359
+ Q,
348
360
  {
349
- dataset: e,
361
+ dataset: t,
350
362
  datasetKey: s
351
363
  }
352
364
  ) }),
353
- /* @__PURE__ */ t.jsx(
365
+ /* @__PURE__ */ e.jsx(
354
366
  X,
355
367
  {
356
368
  datasetKey: s,
357
- dataset: e
369
+ dataset: t
358
370
  }
359
371
  ),
360
- /* @__PURE__ */ t.jsx(o, { label: "Abstract", children: e.description ? /* @__PURE__ */ t.jsx(
372
+ /* @__PURE__ */ e.jsx(o, { label: "Abstract", children: t.description ? /* @__PURE__ */ e.jsx(
361
373
  "span",
362
374
  {
363
375
  dangerouslySetInnerHTML: {
364
- __html: V.sanitize(U.parse(e.description))
376
+ __html: G.sanitize(q.parse(t.description))
365
377
  }
366
378
  }
367
379
  ) : "" }),
368
- /* @__PURE__ */ t.jsx(o, { label: "Taxonomic scope", children: e.taxonomicScope || "-" }),
369
- /* @__PURE__ */ t.jsx(o, { label: "Geographic scope", children: e.geographicScope || "-" }),
370
- /* @__PURE__ */ t.jsx(o, { label: "Temporal scope", children: e.temporalScope || "-" }),
380
+ /* @__PURE__ */ e.jsx(o, { label: "Taxonomic scope", children: t.taxonomicScope || "-" }),
381
+ /* @__PURE__ */ e.jsx(o, { label: "Geographic scope", children: t.geographicScope || "-" }),
382
+ /* @__PURE__ */ e.jsx(o, { label: "Temporal scope", children: t.temporalScope || "-" }),
371
383
  " ",
372
- /* @__PURE__ */ t.jsx(o, { label: "License", children: e.license || "-" }),
373
- /* @__PURE__ */ t.jsx(o, { label: "Checklist Confidence", children: /* @__PURE__ */ t.jsx(O, { value: e.confidence, disabled: !0 }) }),
374
- /* @__PURE__ */ t.jsx(o, { label: "Completeness", children: e.completeness }),
375
- /* @__PURE__ */ t.jsx(o, { label: "Website", children: e.url ? /* @__PURE__ */ t.jsx("a", { href: e.url, target: "_blank", children: e.url }) : "-" }),
376
- /* @__PURE__ */ t.jsx(o, { label: "ISSN", children: e.issn ? /* @__PURE__ */ t.jsx(
384
+ /* @__PURE__ */ e.jsx(o, { label: "License", children: t.license || "-" }),
385
+ /* @__PURE__ */ e.jsx(o, { label: "Checklist Confidence", children: /* @__PURE__ */ e.jsx(O, { value: t.confidence, disabled: !0 }) }),
386
+ /* @__PURE__ */ e.jsx(o, { label: "Completeness", children: t.completeness }),
387
+ /* @__PURE__ */ e.jsx(o, { label: "Website", children: t.url ? /* @__PURE__ */ e.jsx("a", { href: t.url, target: "_blank", children: t.url }) : "-" }),
388
+ /* @__PURE__ */ e.jsx(o, { label: "ISSN", children: t.issn ? /* @__PURE__ */ e.jsx(
377
389
  "a",
378
390
  {
379
- href: `https://portal.issn.org/resource/ISSN/${e.issn}`,
380
- children: e.issn
391
+ href: `https://portal.issn.org/resource/ISSN/${t.issn}`,
392
+ children: t.issn
381
393
  }
382
394
  ) : "-" }),
383
- /* @__PURE__ */ t.jsx(o, { label: "GBIF key", children: e.gbifKey ? /* @__PURE__ */ t.jsx("a", { href: `https://www.gbif.org/dataset/${e.gbifKey}`, children: e.gbifKey }) : "-" }),
384
- /* @__PURE__ */ t.jsx(o, { label: "Identifiers", children: e.identifier ? /* @__PURE__ */ t.jsx(
395
+ /* @__PURE__ */ e.jsx(o, { label: "GBIF key", children: t.gbifKey ? /* @__PURE__ */ e.jsx("a", { href: `https://www.gbif.org/dataset/${t.gbifKey}`, children: t.gbifKey }) : "-" }),
396
+ /* @__PURE__ */ e.jsx(o, { label: "Identifiers", children: t.identifier ? /* @__PURE__ */ e.jsx(
385
397
  "ol",
386
398
  {
387
399
  style: {
388
400
  listStyle: "none",
389
401
  paddingInlineStart: "0px"
390
402
  },
391
- children: Object.keys(e.identifier).map((a) => /* @__PURE__ */ t.jsxs(
403
+ children: Object.keys(t.identifier).map((i) => /* @__PURE__ */ e.jsxs(
392
404
  "li",
393
405
  {
394
406
  style: {
@@ -396,34 +408,34 @@ class J extends h.Component {
396
408
  marginRight: "8px"
397
409
  },
398
410
  children: [
399
- `${a.toUpperCase()}: `,
400
- D[a] ? /* @__PURE__ */ t.jsx(
411
+ `${i.toUpperCase()}: `,
412
+ D[i] ? /* @__PURE__ */ e.jsx(
401
413
  "a",
402
414
  {
403
- href: `${D[a]}${e.identifier[a]}`,
415
+ href: `${D[i]}${t.identifier[i]}`,
404
416
  target: "_blank",
405
- children: e.identifier[a]
417
+ children: t.identifier[i]
406
418
  }
407
- ) : e.identifier[a]
419
+ ) : t.identifier[i]
408
420
  ]
409
421
  }
410
422
  ))
411
423
  }
412
424
  ) : "-" }),
413
- /* @__PURE__ */ t.jsx(o, { label: "Citation", children: e.citation && /* @__PURE__ */ t.jsx(
425
+ /* @__PURE__ */ e.jsx(o, { label: "Citation", children: t.citation && /* @__PURE__ */ e.jsx(
414
426
  "span",
415
427
  {
416
- dangerouslySetInnerHTML: { __html: e.citation }
428
+ dangerouslySetInnerHTML: { __html: t.citation }
417
429
  }
418
430
  ) }),
419
- /* @__PURE__ */ t.jsx(o, { label: "Source", children: e.source && H(e.source) ? e.source.map(
420
- (a) => !!a && (a.citation ? /* @__PURE__ */ t.jsx(
431
+ /* @__PURE__ */ e.jsx(o, { label: "Source", children: t.source && H(t.source) ? t.source.map(
432
+ (i) => !!i && (i.citation ? /* @__PURE__ */ e.jsx(
421
433
  "div",
422
434
  {
423
435
  style: { display: "inline-block" },
424
- dangerouslySetInnerHTML: { __html: a.citation }
436
+ dangerouslySetInnerHTML: { __html: i.citation }
425
437
  }
426
- ) : a.title)
438
+ ) : i.title)
427
439
  ) : "-" })
428
440
  ] })
429
441
  ]
@@ -431,25 +443,25 @@ class J extends h.Component {
431
443
  ) });
432
444
  }
433
445
  }
434
- function Q({
435
- sourceDatasetKey: i,
446
+ function tt({
447
+ sourceDatasetKey: a,
436
448
  datasetKey: l,
437
449
  pageTitleTemplate: s,
438
- auth: e,
450
+ auth: t,
439
451
  ...r
440
452
  }) {
441
- return /* @__PURE__ */ t.jsx(R.Provider, { value: M(r), children: /* @__PURE__ */ t.jsx(
442
- J,
453
+ return /* @__PURE__ */ e.jsx(K.Provider, { value: R(r), children: /* @__PURE__ */ e.jsx(
454
+ Z,
443
455
  {
444
- sourceDatasetKey: i,
456
+ sourceDatasetKey: a,
445
457
  datasetKey: l,
446
458
  pageTitleTemplate: s,
447
- auth: e
459
+ auth: t
448
460
  }
449
461
  ) });
450
462
  }
451
- const je = I(A(Q));
463
+ const yt = _(T(tt));
452
464
  export {
453
- je as SourceDataset
465
+ yt as SourceDataset
454
466
  };
455
467
  //# sourceMappingURL=sourceDataset.js.map