col-browser 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ import { c as n } from "./router-CssZk5qZ.js";
2
+ import { c as r } from "./config--bs_09I6.js";
3
+ const i = () => n(`${r.dataApi}vocab/country`).then(
4
+ (a) => a.data
5
+ ), p = () => n(`${r.dataApi}vocab/taxgroup`).then(
6
+ (a) => a.data
7
+ ), e = /* @__PURE__ */ new Map(), s = (a, o) => {
8
+ const t = `${r.dataApi}vocab/${a}`;
9
+ return e.has(t) || e.set(
10
+ t,
11
+ n(t).then((c) => o(c.data)).catch((c) => {
12
+ throw e.delete(t), c;
13
+ })
14
+ ), e.get(t);
15
+ }, h = () => s(
16
+ "nomstatus",
17
+ (a) => a.reduce((o, t) => (o[t.name] = t, o), {})
18
+ );
19
+ export {
20
+ h as a,
21
+ p as b,
22
+ i as g
23
+ };
24
+ //# sourceMappingURL=enumeration-CsrJrIIR.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enumeration-CV8i_q_O.js","sources":["../../src/api/enumeration.js"],"sourcesContent":["// import axiosInstance from './util/axiosInstance';\nimport client from \"./client\";\nimport config from \"../config\";\n\nexport const getFrequency = () => {\n return client(`${config.dataApi}vocab/frequency`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetType = () => {\n return client(`${config.dataApi}vocab/datasettype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDataFormatType = () => {\n return client(`${config.dataApi}vocab/dataformat`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetOrigin = () => {\n return client(`${config.dataApi}vocab/datasetorigin`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getRank = () => {\n return client(`${config.dataApi}vocab/rank`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getTaxonomicStatus = () => {\n return client(`${config.dataApi}vocab/taxonomicstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getIssue = () => {\n return client(`${config.dataApi}vocab/issue`).then(res =>\n res.data\n );\n};\n\nexport const getNameType = () => {\n return client(`${config.dataApi}vocab/nametype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNameField = () => {\n return client(`${config.dataApi}vocab/namefield`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomStatus = () => {\n return client(`${config.dataApi}vocab/nomstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getLicense = () => {\n return client(`${config.dataApi}vocab/license`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomCode = () => {\n return client(`${config.dataApi}vocab/nomcode`).then(res =>\n res.data\n );\n};\n\nexport const getImportState = () => {\n return client(`${config.dataApi}vocab/importstate`).then(res =>\n res.data\n );\n};\n\nexport const getLifezones = () => {\n return client(`${config.dataApi}vocab/lifezone`).then(res =>\n res.data\n );\n};\n\nexport const getSectorImportState = () => {\n return client(`${config.dataApi}vocab/sectorimport$state`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getCountries = () => {\n return client(`${config.dataApi}vocab/country`).then(res =>\n res.data\n );\n};\n\nexport const getTaxGroup = () => {\n return client(`${config.dataApi}vocab/taxgroup`).then(res =>\n res.data\n );\n};\n\n\n\n\n"],"names":["getCountries","client","config","res","getTaxGroup"],"mappings":";;AA8FO,MAAMA,IAAe,MACnBC,EAAO,GAAGC,EAAO,OAAO,eAAe,EAAE;AAAA,EAAK,OACnDC,EAAI;AAAA,GAIKC,IAAc,MAClBH,EAAO,GAAGC,EAAO,OAAO,gBAAgB,EAAE;AAAA,EAAK,OACpDC,EAAI;AAAA;"}
1
+ {"version":3,"file":"enumeration-CsrJrIIR.js","sources":["../../src/api/enumeration.js"],"sourcesContent":["// import axiosInstance from './util/axiosInstance';\nimport client from \"./client\";\nimport config from \"../config\";\n\nexport const getFrequency = () => {\n return client(`${config.dataApi}vocab/frequency`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetType = () => {\n return client(`${config.dataApi}vocab/datasettype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDataFormatType = () => {\n return client(`${config.dataApi}vocab/dataformat`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetOrigin = () => {\n return client(`${config.dataApi}vocab/datasetorigin`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getRank = () => {\n return client(`${config.dataApi}vocab/rank`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getTaxonomicStatus = () => {\n return client(`${config.dataApi}vocab/taxonomicstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getIssue = () => {\n return client(`${config.dataApi}vocab/issue`).then(res =>\n res.data\n );\n};\n\nexport const getNameType = () => {\n return client(`${config.dataApi}vocab/nametype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNameField = () => {\n return client(`${config.dataApi}vocab/namefield`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomStatus = () => {\n return client(`${config.dataApi}vocab/nomstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getLicense = () => {\n return client(`${config.dataApi}vocab/license`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomCode = () => {\n return client(`${config.dataApi}vocab/nomcode`).then(res =>\n res.data\n );\n};\n\nexport const getImportState = () => {\n return client(`${config.dataApi}vocab/importstate`).then(res =>\n res.data\n );\n};\n\nexport const getLifezones = () => {\n return client(`${config.dataApi}vocab/lifezone`).then(res =>\n res.data\n );\n};\n\nexport const getSectorImportState = () => {\n return client(`${config.dataApi}vocab/sectorimport$state`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getCountries = () => {\n return client(`${config.dataApi}vocab/country`).then(res =>\n res.data\n );\n};\n\nexport const getTaxGroup = () => {\n return client(`${config.dataApi}vocab/taxgroup`).then(res =>\n res.data\n );\n};\n\n\n\n\n\n// Vocabularies are static for the lifetime of a deployment, so every caller can\n// share a single in-flight/settled promise instead of refetching. Keyed by the\n// resolved URL so a runtime configure({ dataApi }) switch loads the new API's\n// vocabulary rather than serving the old one from cache.\nconst vocabCache = new Map();\n\nconst cachedVocab = (path, transform) => {\n const url = `${config.dataApi}vocab/${path}`;\n if (!vocabCache.has(url)) {\n vocabCache.set(\n url,\n client(url)\n .then((res) => transform(res.data))\n .catch((err) => {\n // Drop the rejected promise so a later render can retry.\n vocabCache.delete(url);\n throw err;\n })\n );\n }\n return vocabCache.get(url);\n};\n\n/**\n * The full nomenclatural status vocabulary as a map keyed by status name, e.g.\n * { acceptable: { name: \"acceptable\", botanical: \"nomen legitimum\",\n * zoological: \"potentially valid\", … }, … }\n * Shared and cached; feed it to `nomStatusLabel` to resolve a code-specific label.\n */\nexport const getNomStatusVocab = () =>\n cachedVocab(\"nomstatus\", (data) =>\n data.reduce((a, c) => ((a[c.name] = c), a), {})\n );\n"],"names":["getCountries","client","config","res","getTaxGroup","vocabCache","cachedVocab","path","transform","url","err","getNomStatusVocab","data","a","c"],"mappings":";;AA8FO,MAAMA,IAAe,MACnBC,EAAO,GAAGC,EAAO,OAAO,eAAe,EAAE;AAAA,EAAK,OACnDC,EAAI;AAAA,GAIKC,IAAc,MAClBH,EAAO,GAAGC,EAAO,OAAO,gBAAgB,EAAE;AAAA,EAAK,OACpDC,EAAI;AAAA,GAYFE,wBAAiB,IAAA,GAEjBC,IAAc,CAACC,GAAMC,MAAc;AACvC,QAAMC,IAAM,GAAGP,EAAO,OAAO,SAASK,CAAI;AAC1C,SAAKF,EAAW,IAAII,CAAG,KACrBJ,EAAW;AAAA,IACTI;AAAA,IACAR,EAAOQ,CAAG,EACP,KAAK,CAACN,MAAQK,EAAUL,EAAI,IAAI,CAAC,EACjC,MAAM,CAACO,MAAQ;AAEd,YAAAL,EAAW,OAAOI,CAAG,GACfC;AAAA,IACR,CAAC;AAAA,EAAA,GAGAL,EAAW,IAAII,CAAG;AAC3B,GAQaE,IAAoB,MAC/BL;AAAA,EAAY;AAAA,EAAa,CAACM,MACxBA,EAAK,OAAO,CAACC,GAAGC,OAAQD,EAAEC,EAAE,IAAI,IAAIA,GAAID,IAAI,CAAA,CAAE;AAChD;"}
package/es/search.js CHANGED
@@ -8,7 +8,7 @@ import * as C from "react";
8
8
  import f from "react";
9
9
  import { L as S, c as j, s as pt, R as mt, b as gt } from "./chunks/router-CssZk5qZ.js";
10
10
  import { a as ft } from "./chunks/dataset-BZpjo3Yq.js";
11
- import { a as xt } from "./chunks/enumeration-CV8i_q_O.js";
11
+ import { b as xt } from "./chunks/enumeration-CsrJrIIR.js";
12
12
  import { r as St, w as vt } from "./chunks/storage-BgdCo9fV.js";
13
13
  import { Input as G, Form as R, Select as k, Row as x, Col as g, AutoComplete as K, Radio as yt, Alert as jt, Button as I, Table as bt } from "antd";
14
14
  import { c as b } from "./chunks/config--bs_09I6.js";
@@ -13,7 +13,7 @@ import { D as z } from "./chunks/DatasetlogoWithFallback-Bb-kmHts.js";
13
13
  import { M as B } from "./chunks/MetricsPresentation-DKCJQOtf.js";
14
14
  import { get as p, isEmpty as S, isArray as H } from "lodash-es";
15
15
  import { P as o } from "./chunks/PresentationItem-C4yZ555-.js";
16
- import { g as W } from "./chunks/enumeration-CV8i_q_O.js";
16
+ import { g as W } from "./chunks/enumeration-CsrJrIIR.js";
17
17
  import { B as G } from "./chunks/BibTex-DRE71Hg-.js";
18
18
  import { marked as U } from "marked";
19
19
  import V from "dompurify";