@civicactions/cmsds-open-data-components 4.0.4-alpha.1 → 4.0.4

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/main.js CHANGED
@@ -41,7 +41,7 @@ function $e49d4387bed21287$export$2e2bcd8739ae039() {
41
41
  /*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
42
42
  children: "offset"
43
43
  }),
44
- ' ',
44
+ " ",
45
45
  "parameters to iterate through result sets that are larger than the row limit when running queries against the datastore API."
46
46
  ]
47
47
  })
@@ -72,7 +72,7 @@ var $3c72c298c3a7f21f$export$2e2bcd8739ae039 = $3c72c298c3a7f21f$var$HeaderTagli
72
72
  const $1555e1cb3eb7b3e3$var$HeaderNavIconLink = (props)=>{
73
73
  const { url: url, urlTitle: urlTitle, logoFilePath: logoFilePath, logoAltText: logoAltText, backArrow: backArrow } = props;
74
74
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
75
- className: `dkan-c-header-nav-icon-link ${backArrow ? 'show-back-arrow' : ''} ds-u-valign--middle `,
75
+ className: `dkan-c-header-nav-icon-link ${backArrow ? "show-back-arrow" : ""} ds-u-valign--middle `,
76
76
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
77
77
  href: url,
78
78
  title: urlTitle,
@@ -232,7 +232,7 @@ const $046ded0064bd0a3d$var$FAQAccordion = (props)=>{
232
232
  type: "button",
233
233
  variation: "ghost",
234
234
  onClick: ()=>toggleAll(),
235
- children: `${expanded ? 'Collapse' : 'Expand'} all FAQs`
235
+ children: `${expanded ? "Collapse" : "Expand"} all FAQs`
236
236
  }),
237
237
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Accordion), {
238
238
  children: faqItems.map((faq)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$AccordionItem), {
@@ -333,8 +333,8 @@ const $844981eac9b63865$export$eccc29c8d0ff408 = (0, $hgUW1$createContext)({
333
333
 
334
334
 
335
335
  const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 4, defaultSort: defaultSort = {
336
- defaultSort: 'modified',
337
- defaultOrder: 'desc'
336
+ defaultSort: "modified",
337
+ defaultOrder: "desc"
338
338
  }, subLinkClasses: subLinkClasses })=>{
339
339
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
340
340
  const [currentResultNumbers, setCurrentResultNumbers] = (0, $hgUW1$useState)({
@@ -354,8 +354,8 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
354
354
  ]);
355
355
  let params = {
356
356
  sort: defaultSort.defaultSort,
357
- ['sort-order']: defaultSort.defaultOrder,
358
- ['page-size']: defaultPageSize
357
+ ["sort-order"]: defaultSort.defaultOrder,
358
+ ["page-size"]: defaultPageSize
359
359
  };
360
360
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
361
361
  queryKey: [
@@ -364,7 +364,7 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
364
364
  ],
365
365
  queryFn: ()=>{
366
366
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
367
- arrayFormat: 'comma',
367
+ arrayFormat: "comma",
368
368
  encode: false
369
369
  })}`);
370
370
  }
@@ -507,11 +507,11 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
507
507
  function handleFocusOut(event) {
508
508
  if (currentMenu && !currentMenu.contains(event.relatedTarget)) setIsExpanded(false);
509
509
  }
510
- document.addEventListener('mousedown', handleClickOutside);
511
- currentMenu?.addEventListener('focusout', handleFocusOut);
510
+ document.addEventListener("mousedown", handleClickOutside);
511
+ currentMenu?.addEventListener("focusout", handleFocusOut);
512
512
  return ()=>{
513
- document.removeEventListener('mousedown', handleClickOutside);
514
- if (currentMenu) currentMenu.removeEventListener('focusout', handleFocusOut);
513
+ document.removeEventListener("mousedown", handleClickOutside);
514
+ if (currentMenu) currentMenu.removeEventListener("focusout", handleFocusOut);
515
515
  };
516
516
  }, [
517
517
  isExpanded
@@ -533,7 +533,7 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
533
533
  }
534
534
  }
535
535
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
536
- className: `dkan-c-nav-submenu has-submenu${isExpanded ? ' open' : ''}`,
536
+ className: `dkan-c-nav-submenu has-submenu${isExpanded ? " open" : ""}`,
537
537
  ref: menu,
538
538
  children: [
539
539
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
@@ -569,12 +569,12 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
569
569
  const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
570
570
  const { headingText: headingText = "Dataset Search" } = props;
571
571
  const navigate = (0, $hgUW1$useNavigate)();
572
- const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)('');
572
+ const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
573
573
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
574
574
  function searchForDataset(e) {
575
575
  e.preventDefault();
576
576
  if (window) {
577
- if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
577
+ if (window.location.pathname !== "/datasets") navigate(`/datasets?fulltext=${modalSearchTerm}`);
578
578
  else {
579
579
  window.location.search = `fulltext=${modalSearchTerm}`;
580
580
  setModalSearch(false);
@@ -642,9 +642,9 @@ const $b939b31651e82908$var$HeaderNav = (props)=>{
642
642
  const headerContext = (0, $hgUW1$react).useContext((0, $11500a65bd7d9cf1$export$2e2bcd8739ae039));
643
643
  const { links: links, topNavLinks: topNavLinks, wrapperClasses: wrapperClasses, searchInMobile: searchInMobile } = props;
644
644
  const navMenuOpenClass = `dkan-c-nav-menu--${headerContext.mobileMenuOpen ? "open" : "close"}`;
645
- const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? 'mobile' : 'desktop'}`;
646
- const linkClasses = 'dkan-c-header--link ds-c-button ds-c-button--ghost';
647
- const listClasses = 'dkan-c-header--link-list ';
645
+ const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? "mobile" : "desktop"}`;
646
+ const linkClasses = "dkan-c-header--link ds-c-button ds-c-button--ghost";
647
+ const listClasses = "dkan-c-header--link-list ";
648
648
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
649
649
  className: `dkan-c-nav-menu ${wrapperClasses} ${navMenuOpenClass} ${isMobileClass}`,
650
650
  ref: headerContext.menuRef,
@@ -814,8 +814,8 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
814
814
  const { title: title, links: links, mobileMax: mobileMax } = props;
815
815
  const active = (0, $hgUW1$useLocation)().pathname;
816
816
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
817
- const styleClasses = 'dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2';
818
- const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? 'mobile' : 'desktop'}`;
817
+ const styleClasses = "dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2";
818
+ const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? "mobile" : "desktop"}`;
819
819
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
820
820
  className: `dkan-c-sidebar-nav ${mobileClass}`,
821
821
  children: [
@@ -829,7 +829,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
829
829
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
830
830
  "aria-haspopup": "true",
831
831
  variation: "ghost",
832
- "aria-expanded": `${menuOpen ? 'true' : 'false'}`,
832
+ "aria-expanded": `${menuOpen ? "true" : "false"}`,
833
833
  onDark: true,
834
834
  onClick: ()=>setMenuOpen(!menuOpen),
835
835
  children: [
@@ -838,7 +838,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
838
838
  children: "Toggle menu"
839
839
  }),
840
840
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ArrowIcon), {
841
- direction: menuOpen ? 'up' : 'down'
841
+ direction: menuOpen ? "up" : "down"
842
842
  })
843
843
  ]
844
844
  })
@@ -847,7 +847,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
847
847
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
848
848
  className: ``,
849
849
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
850
- className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? 'open' : 'close'}`,
850
+ className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? "open" : "close"}`,
851
851
  children: [
852
852
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
853
853
  className: "ds-u-padding--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest",
@@ -859,7 +859,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
859
859
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
860
860
  className: "ds-u-padding-bottom--2",
861
861
  children: links.map(({ url: url, label: label })=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
862
- className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? 'active' : ''}`,
862
+ className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? "active" : ""}`,
863
863
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
864
864
  className: "ds-u-display--flex ds-u-padding-y--1",
865
865
  children: [
@@ -894,12 +894,12 @@ const $b0968edc60d7d3a4$var$SidebarPage = (props)=>{
894
894
  query: `(max-width: ${mobileMaxWidth}px)`
895
895
  });
896
896
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
897
- className: `${mobileMax ? "a" : 'ds-l-container'}`,
897
+ className: `${mobileMax ? "a" : "ds-l-container"}`,
898
898
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
899
- className: `${mobileMax ? "a" : 'ds-l-row'}`,
899
+ className: `${mobileMax ? "a" : "ds-l-row"}`,
900
900
  children: [
901
901
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
902
- className: `${mobileMax ? 'a' : "ds-l-col--4"}`,
902
+ className: `${mobileMax ? "a" : "ds-l-col--4"}`,
903
903
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $953b286f7778640e$export$2e2bcd8739ae039), {
904
904
  links: links,
905
905
  title: menuTitle,
@@ -922,9 +922,9 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
922
922
 
923
923
 
924
924
 
925
- const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = 'datasets', searchKey: searchKey = 'fulltext', textfieldLabel: textfieldLabel = 'Search for a dataset', searchButtonText: searchButtonText = 'Search' })=>{
925
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
926
926
  const navigate = (0, $hgUW1$useNavigate)();
927
- const [searchValue, setSearchValue] = (0, $hgUW1$react).useState('');
927
+ const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
928
928
  function submitHero(e) {
929
929
  e.preventDefault();
930
930
  navigate(`/${searchUrl}?${searchKey}=${searchValue}`);
@@ -951,24 +951,24 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
951
951
  onSubmit: (e)=>submitHero(e),
952
952
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
953
953
  style: {
954
- position: 'relative'
954
+ position: "relative"
955
955
  },
956
956
  className: "ds-l-row ds-u-align-items--stretch ds-u-margin-y--4 ds-u-flex-wrap--nowrap",
957
957
  children: [
958
958
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
959
959
  className: "ds-u-padding--0 ds-u-margin-right--1",
960
960
  style: {
961
- flex: '1 1 100%',
962
- maxWidth: '100%'
961
+ flex: "1 1 100%",
962
+ maxWidth: "100%"
963
963
  },
964
964
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
965
965
  label: textfieldLabel,
966
966
  labelClassName: "ds-u-visibility--screen-reader",
967
967
  name: "search_text_input",
968
968
  style: {
969
- maxWidth: 'none',
970
- height: '61px',
971
- margin: '0 20px 0 0'
969
+ maxWidth: "none",
970
+ height: "61px",
971
+ margin: "0 20px 0 0"
972
972
  },
973
973
  onChange: (e)=>setSearchValue(e.target.value)
974
974
  })
@@ -1006,14 +1006,14 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
1006
1006
 
1007
1007
 
1008
1008
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1009
- year: 'numeric',
1010
- month: 'long',
1011
- day: 'numeric',
1012
- timeZone: 'UTC'
1009
+ year: "numeric",
1010
+ month: "long",
1011
+ day: "numeric",
1012
+ timeZone: "UTC"
1013
1013
  } })=>{
1014
1014
  const rawDate = new Date(date);
1015
- let modifiedDate = '';
1016
- if (rawDate) modifiedDate = rawDate.toLocaleDateString('en-US', options);
1015
+ let modifiedDate = "";
1016
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1017
1017
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1018
1018
  children: modifiedDate
1019
1019
  });
@@ -1027,25 +1027,25 @@ const $c068004d499082cc$var$DatasetListItem = (props)=>{
1027
1027
  minWidth: 1024
1028
1028
  });
1029
1029
  const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1030
- let linkContainerClasses = 'ds-u-margin-bottom--2';
1031
- if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1032
- else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1033
- let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1030
+ let linkContainerClasses = "ds-u-margin-bottom--2";
1031
+ if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1032
+ else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1033
+ let linkClasses = "ds-u-display--block ds-u-text-align--left";
1034
1034
  if (desktop) {
1035
- linkContainerClasses = 'ds-u-padding-x--0';
1036
- linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1035
+ linkContainerClasses = "ds-u-padding-x--0";
1036
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1037
1037
  }
1038
1038
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1039
1039
  className: "dc-c-list-item ds-u-padding-top--4",
1040
1040
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1041
- className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1041
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1042
1042
  children: [
1043
1043
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1044
1044
  className: "ds-l-row ds-u-align-items--start",
1045
1045
  children: [
1046
1046
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1047
1047
  id: `dataset-${identifier}-updated-date`,
1048
- className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? 'ds-u-padding-top--3' : 'ds-u-padding-top--0'}`,
1048
+ className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? "ds-u-padding-top--3" : "ds-u-padding-top--0"}`,
1049
1049
  children: [
1050
1050
  "Updated ",
1051
1051
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
@@ -1103,7 +1103,7 @@ var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetList
1103
1103
 
1104
1104
  const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1105
1105
  switch(props.id){
1106
- case 'overview':
1106
+ case "overview":
1107
1107
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1108
1108
  width: "16px",
1109
1109
  height: "16px",
@@ -1146,7 +1146,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1146
1146
  })
1147
1147
  ]
1148
1148
  });
1149
- case 'data-table':
1149
+ case "data-table":
1150
1150
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1151
1151
  width: "16px",
1152
1152
  height: "12px",
@@ -1179,7 +1179,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1179
1179
  })
1180
1180
  ]
1181
1181
  });
1182
- case 'api':
1182
+ case "api":
1183
1183
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1184
1184
  width: "16px",
1185
1185
  height: "13px",
@@ -1212,7 +1212,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1212
1212
  })
1213
1213
  ]
1214
1214
  });
1215
- case 'download':
1215
+ case "download":
1216
1216
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1217
1217
  width: "16px",
1218
1218
  height: "16px",
@@ -1242,7 +1242,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1242
1242
  })
1243
1243
  ]
1244
1244
  });
1245
- case 'data-dictionary':
1245
+ case "data-dictionary":
1246
1246
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1247
1247
  width: "14px",
1248
1248
  height: "16px",
@@ -1345,13 +1345,13 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
1345
1345
 
1346
1346
 
1347
1347
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
1348
- if (!textString) return '';
1348
+ if (!textString) return "";
1349
1349
  let cleanedText = textString;
1350
- if (cleanedText.split('</p>').length > 1) cleanedText = cleanedText.split('</p>')[0];
1351
- if (cleanedText.split('<br/>').length > 1) cleanedText = cleanedText.split('<br/>')[0];
1350
+ if (cleanedText.split("</p>").length > 1) cleanedText = cleanedText.split("</p>")[0];
1351
+ if (cleanedText.split("<br/>").length > 1) cleanedText = cleanedText.split("<br/>")[0];
1352
1352
  cleanedText = (0, $hgUW1$lodashtruncate)(cleanedText, {
1353
- 'length': textLength,
1354
- 'separator': ' '
1353
+ "length": textLength,
1354
+ "separator": " "
1355
1355
  });
1356
1356
  return (0, $hgUW1$dompurify).sanitize(cleanedText, {
1357
1357
  ALLOWED_TAGS: []
@@ -1369,9 +1369,9 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
1369
1369
  const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1370
1370
  const { type: type, date: date, boldLabel: boldLabel = false, displayTooltips: displayTooltips = true } = props;
1371
1371
  const dateText = {
1372
- modified: 'Last Modified',
1373
- released: 'Released',
1374
- refresh: 'Planned Update'
1372
+ modified: "Last Modified",
1373
+ released: "Released",
1374
+ refresh: "Planned Update"
1375
1375
  };
1376
1376
  const tooltipContent = {
1377
1377
  modified: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -1408,7 +1408,7 @@ const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1408
1408
  })
1409
1409
  };
1410
1410
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1411
- className: `dataset-date-item${boldLabel ? ' bold-label' : ''}`,
1411
+ className: `dataset-date-item${boldLabel ? " bold-label" : ""}`,
1412
1412
  children: [
1413
1413
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1414
1414
  className: "dataset-data-item-label",
@@ -1478,7 +1478,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1478
1478
  if (dist && dist.data) {
1479
1479
  if (dist.data.format) return dist.data.format.toLowerCase();
1480
1480
  if (dist.data.mediaType) {
1481
- const mediaType = dist.data.mediaType.split('/');
1481
+ const mediaType = dist.data.mediaType.split("/");
1482
1482
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
1483
1483
  }
1484
1484
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -1488,7 +1488,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1488
1488
  }
1489
1489
  }
1490
1490
  }
1491
- return '';
1491
+ return "";
1492
1492
  }
1493
1493
 
1494
1494
 
@@ -1498,20 +1498,20 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1498
1498
  });
1499
1499
  const { title: title, modified: modified, description: description, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks, identifier: identifier, refresh: refresh, released: released, showDateDetails: showDateDetails = false, showTopics: showTopics = false, theme: theme, topicSlugs: topicSlugs, distribution: distribution } = props;
1500
1500
  const location = (0, $hgUW1$useLocation)();
1501
- let linkContainerClasses = 'ds-u-margin-bottom--2';
1502
- if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1503
- else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1504
- let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1501
+ let linkContainerClasses = "ds-u-margin-bottom--2";
1502
+ if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1503
+ else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1504
+ let linkClasses = "ds-u-display--block ds-u-text-align--left";
1505
1505
  if (desktop) {
1506
- linkContainerClasses = 'ds-u-padding-x--0';
1507
- linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1506
+ linkContainerClasses = "ds-u-padding-x--0";
1507
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1508
1508
  }
1509
1509
  let themes;
1510
1510
  if (theme && showTopics) themes = /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
1511
1511
  className: "theme-list item-theme",
1512
1512
  children: theme.map((topic, index)=>{
1513
- const title = topic || 'Unknown Topic';
1514
- const prefix = 'topics';
1513
+ const title = topic || "Unknown Topic";
1514
+ const prefix = "topics";
1515
1515
  // Use the provided slug or fallback to a simple slug generation
1516
1516
  const slug = topicSlugs?.[title];
1517
1517
  const link = `/${prefix}/${slug}`;
@@ -1522,7 +1522,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1522
1522
  state: {
1523
1523
  fromUrl: location.pathname,
1524
1524
  fromTitle: false,
1525
- fromSearchList: location.pathname.includes('search')
1525
+ fromSearchList: location.pathname.includes("search")
1526
1526
  },
1527
1527
  children: title
1528
1528
  })
@@ -1564,7 +1564,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1564
1564
  };
1565
1565
  const dataDictionaryExists = ()=>{
1566
1566
  if (distribution && "data" in distribution) {
1567
- if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === 'application/vnd.tableschema+json';
1567
+ if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === "application/vnd.tableschema+json";
1568
1568
  }
1569
1569
  return false;
1570
1570
  };
@@ -1598,7 +1598,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1598
1598
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1599
1599
  className: "dc-c-search-list-item ds-u-padding-top--3",
1600
1600
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1601
- className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1601
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1602
1602
  children: [
1603
1603
  themes,
1604
1604
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -1606,7 +1606,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1606
1606
  children: [
1607
1607
  !showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1608
1608
  id: `dataset-${identifier}-updated-date`,
1609
- className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? 'ds-u-padding-top--2' : 'ds-u-padding-top--0'}`,
1609
+ className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1610
1610
  children: [
1611
1611
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1612
1612
  children: "Updated:"
@@ -1635,13 +1635,13 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1635
1635
  (0, $1a2bf34e2a8f6b80$export$59a943b34a82e690)(description),
1636
1636
  description.length > 240 ? /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1637
1637
  children: [
1638
- ' ',
1638
+ " ",
1639
1639
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1640
1640
  to: `/dataset/${identifier}`,
1641
1641
  children: "See more"
1642
1642
  })
1643
1643
  ]
1644
- }) : ''
1644
+ }) : ""
1645
1645
  ]
1646
1646
  })
1647
1647
  }),
@@ -1669,14 +1669,14 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1669
1669
  "Download"
1670
1670
  ]
1671
1671
  })
1672
- }) : '',
1672
+ }) : "",
1673
1673
  /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
1674
- className: `ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-justify-content--between ds-u-md-justify-content--start ds-u-margin-top--3 ds-u-margin-x--0 ${!dataDictionaryLinks ? 'ds-u-justify-content--center ds-u-md-justify-content--start' : ''}`,
1674
+ className: `ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-justify-content--between ds-u-md-justify-content--start ds-u-margin-top--3 ds-u-margin-x--0 ${!dataDictionaryLinks ? "ds-u-justify-content--center ds-u-md-justify-content--start" : ""}`,
1675
1675
  children: [
1676
1676
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1677
1677
  className: linkContainerClasses,
1678
1678
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1679
- className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? '' : ' dkan-disabled-link-wrapper'}`,
1679
+ className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? "" : " dkan-disabled-link-wrapper"}`,
1680
1680
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataTableLink, {})
1681
1681
  })
1682
1682
  }),
@@ -1698,10 +1698,10 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1698
1698
  dataDictionaryLinks ? /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1699
1699
  className: linkContainerClasses,
1700
1700
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1701
- className: `${linkClasses}${dataDictionaryExists() ? '' : ' dkan-disabled-link-wrapper'}`,
1701
+ className: `${linkClasses}${dataDictionaryExists() ? "" : " dkan-disabled-link-wrapper"}`,
1702
1702
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataDictionaryLink, {})
1703
1703
  })
1704
- }) : '',
1704
+ }) : "",
1705
1705
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1706
1706
  className: linkContainerClasses,
1707
1707
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1797,7 +1797,7 @@ var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocument
1797
1797
 
1798
1798
 
1799
1799
 
1800
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = 'data-table-results' })=>{
1800
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
1801
1801
  const numTotalRows = totalRows;
1802
1802
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
1803
1803
  className: className,
@@ -1815,18 +1815,18 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
1815
1815
  className: className,
1816
1816
  children: [
1817
1817
  "Displaying",
1818
- ' ',
1818
+ " ",
1819
1819
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1820
1820
  className: "ds-u-font-weight--bold",
1821
1821
  children: `${startTotal().toLocaleString()} - ${ofTotal().toLocaleString()}`
1822
1822
  }),
1823
- ' ',
1823
+ " ",
1824
1824
  "of ",
1825
1825
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1826
1826
  className: "ds-u-font-weight--bold",
1827
1827
  children: `${numTotalRows.toLocaleString()}`
1828
1828
  }),
1829
- ' ',
1829
+ " ",
1830
1830
  "rows"
1831
1831
  ]
1832
1832
  });
@@ -1852,16 +1852,16 @@ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePaddi
1852
1852
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1853
1853
  options: [
1854
1854
  {
1855
- label: 'Tight',
1856
- value: 'ds-u-padding-y--0'
1855
+ label: "Tight",
1856
+ value: "ds-u-padding-y--0"
1857
1857
  },
1858
1858
  {
1859
- label: 'Normal',
1860
- value: 'ds-u-padding-y--1'
1859
+ label: "Normal",
1860
+ value: "ds-u-padding-y--1"
1861
1861
  },
1862
1862
  {
1863
- label: 'Expanded',
1864
- value: 'ds-u-padding-y--2'
1863
+ label: "Expanded",
1864
+ value: "ds-u-padding-y--2"
1865
1865
  }
1866
1866
  ],
1867
1867
  label: "Display density:",
@@ -2104,7 +2104,7 @@ function $aa4450dcbeef3ac0$export$385a5aba38cc3325(sortArray) {
2104
2104
  sortArray.forEach((s)=>{
2105
2105
  return newQuery.push({
2106
2106
  property: s.id,
2107
- order: s.desc ? 'desc' : 'asc'
2107
+ order: s.desc ? "desc" : "asc"
2108
2108
  });
2109
2109
  });
2110
2110
  return newQuery;
@@ -2142,46 +2142,46 @@ function $7264a673914aa746$export$e284ae5d89467c8f(date) {
2142
2142
  }
2143
2143
  function $7264a673914aa746$export$6b5e57d20078142b(value, operator) {
2144
2144
  let newValue = value;
2145
- if (Array.isArray(newValue)) newValue = newValue.join(',');
2145
+ if (Array.isArray(newValue)) newValue = newValue.join(",");
2146
2146
  // return newValue.replace(/(^\%+|\%+$)/gm, '');
2147
2147
  return newValue;
2148
2148
  }
2149
2149
  const $7264a673914aa746$export$5f89a5ae87bc48e1 = [
2150
2150
  {
2151
- label: 'Is',
2152
- value: '='
2151
+ label: "Is",
2152
+ value: "="
2153
2153
  },
2154
2154
  {
2155
- label: 'Starts With',
2156
- value: 'starts with'
2155
+ label: "Starts With",
2156
+ value: "starts with"
2157
2157
  },
2158
2158
  {
2159
- label: 'Contains',
2160
- value: 'contains'
2159
+ label: "Contains",
2160
+ value: "contains"
2161
2161
  },
2162
2162
  {
2163
- label: 'Is Not',
2164
- value: '<>'
2163
+ label: "Is Not",
2164
+ value: "<>"
2165
2165
  },
2166
2166
  {
2167
- label: 'Or',
2168
- value: 'in'
2167
+ label: "Or",
2168
+ value: "in"
2169
2169
  },
2170
2170
  {
2171
- label: 'Is',
2172
- value: '='
2171
+ label: "Is",
2172
+ value: "="
2173
2173
  },
2174
2174
  {
2175
- label: 'Is Not',
2176
- value: '<>'
2175
+ label: "Is Not",
2176
+ value: "<>"
2177
2177
  },
2178
2178
  {
2179
- label: 'Greater Than',
2180
- value: '>'
2179
+ label: "Greater Than",
2180
+ value: ">"
2181
2181
  },
2182
2182
  {
2183
- label: 'Less Than',
2184
- value: '<'
2183
+ label: "Less Than",
2184
+ value: "<"
2185
2185
  }
2186
2186
  ];
2187
2187
  function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
@@ -2190,59 +2190,59 @@ function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
2190
2190
  }
2191
2191
  function $7264a673914aa746$export$2b9377795161999(type) {
2192
2192
  switch(type){
2193
- case 'text':
2194
- case 'string':
2193
+ case "text":
2194
+ case "string":
2195
2195
  return [
2196
2196
  {
2197
- label: 'Is',
2198
- value: '='
2197
+ label: "Is",
2198
+ value: "="
2199
2199
  },
2200
2200
  {
2201
- label: 'Starts With',
2202
- value: 'starts with'
2201
+ label: "Starts With",
2202
+ value: "starts with"
2203
2203
  },
2204
2204
  {
2205
- label: 'Contains',
2206
- value: 'contains'
2205
+ label: "Contains",
2206
+ value: "contains"
2207
2207
  },
2208
2208
  {
2209
- label: 'Is Not',
2210
- value: '<>'
2209
+ label: "Is Not",
2210
+ value: "<>"
2211
2211
  },
2212
2212
  {
2213
- label: 'Or',
2214
- value: 'in'
2213
+ label: "Or",
2214
+ value: "in"
2215
2215
  }
2216
2216
  ];
2217
- case 'date':
2217
+ case "date":
2218
2218
  return [
2219
2219
  {
2220
- label: 'Is',
2221
- value: '='
2220
+ label: "Is",
2221
+ value: "="
2222
2222
  },
2223
2223
  {
2224
- label: 'Is Not',
2225
- value: '<>'
2224
+ label: "Is Not",
2225
+ value: "<>"
2226
2226
  },
2227
2227
  {
2228
- label: 'Greater Than',
2229
- value: '>'
2228
+ label: "Greater Than",
2229
+ value: ">"
2230
2230
  },
2231
2231
  {
2232
- label: 'Less Than',
2233
- value: '<'
2232
+ label: "Less Than",
2233
+ value: "<"
2234
2234
  }
2235
2235
  ];
2236
2236
  default:
2237
2237
  // These 2 should be safe for all data types
2238
2238
  return [
2239
2239
  {
2240
- label: 'Is',
2241
- value: '='
2240
+ label: "Is",
2241
+ value: "="
2242
2242
  },
2243
2243
  {
2244
- label: 'Is Not',
2245
- value: '<>'
2244
+ label: "Is Not",
2245
+ value: "<>"
2246
2246
  }
2247
2247
  ];
2248
2248
  }
@@ -2259,13 +2259,13 @@ function $7264a673914aa746$export$2b9377795161999(type) {
2259
2259
 
2260
2260
 
2261
2261
  const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback })=>{
2262
- const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)('');
2262
+ const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
2263
2263
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
2264
2264
  key: header.id,
2265
2265
  style: {
2266
2266
  width: header.getSize()
2267
2267
  },
2268
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : '',
2268
+ title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2269
2269
  className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2270
2270
  children: [
2271
2271
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -2278,7 +2278,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2278
2278
  }),
2279
2279
  sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2280
2280
  onClick: header.column.getToggleSortingHandler(),
2281
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
2281
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
2282
2282
  "aria-label": `${header.column.columnDef.header} sort order`
2283
2283
  })
2284
2284
  ]
@@ -2286,18 +2286,18 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2286
2286
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2287
2287
  onMouseDown: header.getResizeHandler(),
2288
2288
  onTouchStart: header.getResizeHandler(),
2289
- className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? 'isResizing' : ''}`,
2289
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
2290
2290
  "aria-label": `Resize ${header.column.columnDef.header} column`,
2291
2291
  onKeyDown: (e)=>{
2292
2292
  const columnSizingObject = table.getState().columnSizing;
2293
2293
  switch(e.key){
2294
- case 'Enter':
2295
- case ' ':
2294
+ case "Enter":
2295
+ case " ":
2296
2296
  e.preventDefault();
2297
2297
  e.stopPropagation();
2298
2298
  if (columnResizing) {
2299
2299
  // end resizing
2300
- setColumnResizing('');
2300
+ setColumnResizing("");
2301
2301
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2302
2302
  } else {
2303
2303
  // start resizing
@@ -2305,13 +2305,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2305
2305
  setAriaLiveFeedback(`${header.column.columnDef.header} grabbed.`);
2306
2306
  }
2307
2307
  break;
2308
- case 'Escape':
2308
+ case "Escape":
2309
2309
  if (columnResizing) {
2310
- setColumnResizing('');
2310
+ setColumnResizing("");
2311
2311
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2312
2312
  }
2313
2313
  break;
2314
- case 'ArrowRight':
2314
+ case "ArrowRight":
2315
2315
  e.preventDefault();
2316
2316
  e.stopPropagation();
2317
2317
  if (columnResizing) {
@@ -2320,7 +2320,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2320
2320
  setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
2321
2321
  }
2322
2322
  break;
2323
- case 'ArrowLeft':
2323
+ case "ArrowLeft":
2324
2324
  e.preventDefault();
2325
2325
  e.stopPropagation();
2326
2326
  if (columnResizing) {
@@ -2332,7 +2332,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2332
2332
  }
2333
2333
  },
2334
2334
  onBlur: ()=>{
2335
- setColumnResizing('');
2335
+ setColumnResizing("");
2336
2336
  }
2337
2337
  })
2338
2338
  ]
@@ -2381,7 +2381,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2381
2381
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2382
2382
  }),
2383
2383
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2384
- className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ''
2384
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
2385
2385
  })
2386
2386
  ]
2387
2387
  })
@@ -2412,7 +2412,7 @@ const $ee0d4d4f34048447$var$DataTableActionsContextDefaults = {
2412
2412
  setColumnVisibility: ()=>{},
2413
2413
  page: 1,
2414
2414
  setPage: ()=>{},
2415
- tableDensity: 'normal',
2415
+ tableDensity: "normal",
2416
2416
  setTableDensity: ()=>{}
2417
2417
  };
2418
2418
  const $ee0d4d4f34048447$export$f814ea079e65d8fe = /*#__PURE__*/ (0, $hgUW1$createContext)($ee0d4d4f34048447$var$DataTableActionsContextDefaults);
@@ -2431,7 +2431,7 @@ const $ee0d4d4f34048447$var$DataTableActionsProvider = ({ children: children })=
2431
2431
  if (datasetTableControls && localStorageData) return localStorageData.tableColumnVisibility;
2432
2432
  else return {};
2433
2433
  });
2434
- const [tableDensity, setTableDensity] = (0, $hgUW1$useState)('normal');
2434
+ const [tableDensity, setTableDensity] = (0, $hgUW1$useState)("normal");
2435
2435
  const providerValue = {
2436
2436
  columnOrder: columnOrder,
2437
2437
  setColumnOrder: setColumnOrder,
@@ -2478,9 +2478,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2478
2478
  transition: transition,
2479
2479
  opacity: isDragging ? 0.7 : 1,
2480
2480
  zIndex: isDragging ? 1 : 0,
2481
- position: 'relative',
2482
- background: 'white',
2483
- touchAction: 'none'
2481
+ position: "relative",
2482
+ background: "white",
2483
+ touchAction: "none"
2484
2484
  };
2485
2485
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
2486
2486
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -2496,7 +2496,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2496
2496
  // this code forces the repaint without user interaction
2497
2497
  const target = e.target;
2498
2498
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
2499
- target.parentNode.querySelector('input').checked = visible;
2499
+ target.parentNode.querySelector("input").checked = visible;
2500
2500
  }, 1);
2501
2501
  },
2502
2502
  children: [
@@ -2513,7 +2513,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2513
2513
  }
2514
2514
  }),
2515
2515
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2516
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
2516
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
2517
2517
  "aria-label": `Reorder ${id} column`,
2518
2518
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2519
2519
  className: "fa fa-sort"
@@ -2531,7 +2531,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
2531
2531
  // Custom function to exclude checkbox from keyboard dragging
2532
2532
  static activators = [
2533
2533
  {
2534
- eventName: 'onKeyDown',
2534
+ eventName: "onKeyDown",
2535
2535
  handler: ({ nativeEvent: event })=>{
2536
2536
  // prevent scrolling the list
2537
2537
  const isCheckbox = [
@@ -2554,7 +2554,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
2554
2554
  // Custom function to stop accidental checkbox clicks on pointer activation
2555
2555
  static activators = [
2556
2556
  {
2557
- eventName: 'onPointerDown',
2557
+ eventName: "onPointerDown",
2558
2558
  handler: ({ nativeEvent: event })=>{
2559
2559
  if (event.target.tagName.toLowerCase() === "input") return false;
2560
2560
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -2652,13 +2652,13 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
2652
2652
  className: "dkan-dataset-toolbar-button-label",
2653
2653
  children: "Manage Columns"
2654
2654
  }),
2655
- hiddenColumns ? ` (${hiddenColumns})` : ''
2655
+ hiddenColumns ? ` (${hiddenColumns})` : ""
2656
2656
  ]
2657
2657
  })
2658
2658
  ]
2659
2659
  }),
2660
2660
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2661
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2661
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2662
2662
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
2663
2663
  heading: "Manage columns",
2664
2664
  isOpen: modalOpen,
@@ -2831,12 +2831,12 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2831
2831
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2832
2832
  children: [
2833
2833
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2834
- className: isModal ? 'dkan-datatable-fullscreen-mode' : '',
2834
+ className: isModal ? "dkan-datatable-fullscreen-mode" : "",
2835
2835
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2836
2836
  canResize: true,
2837
2837
  columns: columns,
2838
2838
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2839
- tablePadding: tableDensity === 'normal' ? 'ds-u-padding-y--2' : tableDensity === 'compact' ? 'ds-u-padding-y--1' : 'ds-u-padding-y--3',
2839
+ tablePadding: tableDensity === "normal" ? "ds-u-padding-y--2" : tableDensity === "compact" ? "ds-u-padding-y--1" : "ds-u-padding-y--3",
2840
2840
  loading: resource.loading,
2841
2841
  isModal: isModal,
2842
2842
  downloadURL: downloadURL,
@@ -2851,14 +2851,14 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2851
2851
  }),
2852
2852
  !resource.loading && resource.count !== null && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2853
2853
  className: [
2854
- 'ds-u-display--flex',
2855
- 'ds-u-flex-wrap--wrap',
2856
- 'ds-u-justify-content--end',
2857
- 'ds-u-md-justify-content--between',
2858
- 'ds-u-margin-top--2',
2859
- 'ds-u-align-items--center',
2860
- isModal && 'ds-u-margin-bottom--2'
2861
- ].filter(Boolean).join(' '),
2854
+ "ds-u-display--flex",
2855
+ "ds-u-flex-wrap--wrap",
2856
+ "ds-u-justify-content--end",
2857
+ "ds-u-md-justify-content--between",
2858
+ "ds-u-margin-top--2",
2859
+ "ds-u-align-items--center",
2860
+ isModal && "ds-u-margin-bottom--2"
2861
+ ].filter(Boolean).join(" "),
2862
2862
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
2863
2863
  totalPages: Math.ceil(resource.count ? resource.count / pageSize : 1),
2864
2864
  currentPage: Number(page),
@@ -2897,7 +2897,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2897
2897
  },
2898
2898
  children: [
2899
2899
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2900
- className: `far ${modalOpen ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2900
+ className: `far ${modalOpen ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2901
2901
  }),
2902
2902
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2903
2903
  className: "dkan-dataset-toolbar-button-label",
@@ -2906,7 +2906,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2906
2906
  ]
2907
2907
  }),
2908
2908
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2909
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2909
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2910
2910
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2911
2911
  heading: "Dataset Explorer",
2912
2912
  isOpen: modalOpen,
@@ -2941,13 +2941,13 @@ var $16bd41951b91f02d$export$2e2bcd8739ae039 = $16bd41951b91f02d$var$FullScreenD
2941
2941
 
2942
2942
 
2943
2943
  function $eadd6431fddf4b6c$var$getStartDate(condition, schema, id) {
2944
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2944
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2945
2945
  const newDate = new Date(condition.value.toString());
2946
2946
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2947
2947
  }
2948
2948
  return new Date();
2949
2949
  }
2950
- const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = '' })=>{
2950
+ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = "" })=>{
2951
2951
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
2952
2952
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
2953
2953
  const [value, setValue] = (0, $hgUW1$useState)(condition.value);
@@ -2957,9 +2957,9 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2957
2957
  });
2958
2958
  (0, $hgUW1$useEffect)(()=>{
2959
2959
  if (property !== condition.property) {
2960
- if (property) update(index, 'property', property);
2961
- else update(index, 'property', '');
2962
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2960
+ if (property) update(index, "property", property);
2961
+ else update(index, "property", "");
2962
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2963
2963
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2964
2964
  }
2965
2965
  }
@@ -2973,22 +2973,22 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2973
2973
  ]);
2974
2974
  (0, $hgUW1$useEffect)(()=>{
2975
2975
  if (operator !== condition.operator) {
2976
- if (operator) update(index, 'operator', operator);
2977
- else update(index, 'operator', '');
2976
+ if (operator) update(index, "operator", operator);
2977
+ else update(index, "operator", "");
2978
2978
  }
2979
2979
  }, [
2980
2980
  operator
2981
2981
  ]);
2982
2982
  (0, $hgUW1$useEffect)(()=>{
2983
2983
  if (value !== condition.value) {
2984
- if (value) update(index, 'value', value);
2985
- else update(index, 'value', '');
2984
+ if (value) update(index, "value", value);
2985
+ else update(index, "value", "");
2986
2986
  }
2987
2987
  }, [
2988
2988
  value
2989
2989
  ]);
2990
2990
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("fieldset", {
2991
- className: `dkan-filter-dataset-control ds-u-padding-x--2 ds-u-md-padding-x--3 ds-u-padding-y--1 ds-u-margin-top--05${className !== '' ? ` ${className}` : ''}`,
2991
+ className: `dkan-filter-dataset-control ds-u-padding-x--2 ds-u-md-padding-x--3 ds-u-padding-y--1 ds-u-margin-top--05${className !== "" ? ` ${className}` : ""}`,
2992
2992
  children: [
2993
2993
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
2994
2994
  options: propertyOptions,
@@ -3006,7 +3006,7 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3006
3006
  name: `${condition.key}_operator`,
3007
3007
  onChange: (e)=>setOperator(e.target.value)
3008
3008
  }),
3009
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3009
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3010
3010
  children: [
3011
3011
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
3012
3012
  className: "ds-c-label",
@@ -3059,15 +3059,15 @@ var $eadd6431fddf4b6c$export$2e2bcd8739ae039 = $eadd6431fddf4b6c$var$FilterItem;
3059
3059
 
3060
3060
 
3061
3061
 
3062
- const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = '' })=>{
3062
+ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = "" })=>{
3063
3063
  const small = (0, $hgUW1$useMediaQuery)({
3064
3064
  minWidth: 0,
3065
3065
  maxWidth: 544
3066
3066
  });
3067
3067
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
3068
3068
  disabled: disabled,
3069
- className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? '' : ' ds-u-float--right ds-l-md-col--6 ds-l-col--5'}${className !== '' ? ` ${className}` : ''}`,
3070
- variation: small ? 'ghost' : undefined,
3069
+ className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? "" : " ds-u-float--right ds-l-md-col--6 ds-l-col--5"}${className !== "" ? ` ${className}` : ""}`,
3070
+ variation: small ? "ghost" : undefined,
3071
3071
  onClick: ()=>clearFiltersFn(),
3072
3072
  children: "Reset"
3073
3073
  });
@@ -3079,19 +3079,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
3079
3079
  function $6f4318b1e14124e5$var$updateQueryForDatastore(condition) {
3080
3080
  let cond = condition;
3081
3081
  delete cond.key;
3082
- if (cond.operator === '=' || cond.operator === '<>') {
3082
+ if (cond.operator === "=" || cond.operator === "<>") {
3083
3083
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3084
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
3084
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
3085
3085
  }
3086
- if (cond.operator.toLowerCase() === 'like') {
3086
+ if (cond.operator.toLowerCase() === "like") {
3087
3087
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3088
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
3088
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
3089
3089
  cond.value = `%${cleanedValue}%`;
3090
3090
  }
3091
- if (cond.operator.toLowerCase() === 'in') {
3092
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
3091
+ if (cond.operator.toLowerCase() === "in") {
3092
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
3093
3093
  }
3094
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
3094
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
3095
3095
  return cond;
3096
3096
  }
3097
3097
  const $6f4318b1e14124e5$var$FilterDataset = ()=>{
@@ -3117,7 +3117,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3117
3117
  } else setQueryConditions([
3118
3118
  {
3119
3119
  property: fields[0],
3120
- value: '',
3120
+ value: "",
3121
3121
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3122
3122
  key: Date.now().toString()
3123
3123
  }
@@ -3134,7 +3134,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3134
3134
  ...queryConditions,
3135
3135
  {
3136
3136
  property: fields[0],
3137
- value: '',
3137
+ value: "",
3138
3138
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3139
3139
  key: Date.now().toString()
3140
3140
  }
@@ -3165,7 +3165,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3165
3165
  encodeValuesOnly: true,
3166
3166
  addQueryPrefix: true
3167
3167
  });
3168
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3168
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3169
3169
  };
3170
3170
  const submitConditions = ()=>{
3171
3171
  // only update the data conditions when "Apply filters" is pressed
@@ -3239,7 +3239,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3239
3239
  children: [
3240
3240
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3241
3241
  className: "dkan-dataset-toolbar-button-label",
3242
- children: conditions.length > 0 ? `Edit Filters` : 'Filter Dataset'
3242
+ children: conditions.length > 0 ? `Edit Filters` : "Filter Dataset"
3243
3243
  }),
3244
3244
  conditions.length > 0 && ` (${conditions.length})`
3245
3245
  ]
@@ -3247,7 +3247,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3247
3247
  ]
3248
3248
  }),
3249
3249
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3250
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3250
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3251
3251
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
3252
3252
  heading: "Filter Dataset",
3253
3253
  isOpen: modalOpen,
@@ -3273,7 +3273,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3273
3273
  className: "dkan-apply-dataset-filters-button ds-u-float--right ds-l-md-col--auto ds-l-col--auto",
3274
3274
  onClick: submitConditions,
3275
3275
  variation: "solid",
3276
- children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ''} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? '' : 's'}`
3276
+ children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ""} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? "" : "s"}`
3277
3277
  })
3278
3278
  ]
3279
3279
  })
@@ -3412,9 +3412,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3412
3412
  className: "ds-u-display--flex ds-u-align-items--start",
3413
3413
  children: [
3414
3414
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3415
- onClick: ()=>setTableDensity('expanded'),
3415
+ onClick: ()=>setTableDensity("expanded"),
3416
3416
  "aria-label": "Row height, Expanded",
3417
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'expanded' ? 'active ds-u-fill--primary-lightest' : ''}`,
3417
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "expanded" ? "active ds-u-fill--primary-lightest" : ""}`,
3418
3418
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3419
3419
  className: "ds-u-display--block",
3420
3420
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3433,9 +3433,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3433
3433
  })
3434
3434
  }),
3435
3435
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3436
- onClick: ()=>setTableDensity('normal'),
3436
+ onClick: ()=>setTableDensity("normal"),
3437
3437
  "aria-label": "Row height, Normal",
3438
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'normal' ? 'active ds-u-fill--primary-lightest' : ''}`,
3438
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "normal" ? "active ds-u-fill--primary-lightest" : ""}`,
3439
3439
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3440
3440
  className: "ds-u-display--block",
3441
3441
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3454,9 +3454,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3454
3454
  })
3455
3455
  }),
3456
3456
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3457
- onClick: ()=>setTableDensity('compact'),
3457
+ onClick: ()=>setTableDensity("compact"),
3458
3458
  "aria-label": "Row height, Compact",
3459
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'compact' ? 'active ds-u-fill--primary-lightest ' : ''}`,
3459
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "compact" ? "active ds-u-fill--primary-lightest " : ""}`,
3460
3460
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3461
3461
  className: "ds-u-display--block",
3462
3462
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3541,7 +3541,7 @@ const $85f8ff1ff89899c7$var$updateBrowserURL = (newConditions)=>{
3541
3541
  encodeValuesOnly: true,
3542
3542
  addQueryPrefix: true
3543
3543
  });
3544
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3544
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3545
3545
  };
3546
3546
  const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, columns: columns, defaultColumnOrder: defaultColumnOrder, isModal: isModal, datasetTableControls: datasetTableControls, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility })=>{
3547
3547
  const { limit: limit, offset: offset, count: count, conditions: conditions, setConditions: setConditions } = resource;
@@ -3627,7 +3627,7 @@ const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, co
3627
3627
  }, index)) : null,
3628
3628
  hiddenColumns > 0 ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $c5b172e8d1a8197c$export$2e2bcd8739ae039), {
3629
3629
  iconClass: "fa fa-columns",
3630
- text: `${hiddenColumns} Column${hiddenColumns === 1 ? '' : 's'} Hidden`,
3630
+ text: `${hiddenColumns} Column${hiddenColumns === 1 ? "" : "s"} Hidden`,
3631
3631
  onClick: ()=>{
3632
3632
  resetColumnVisibility();
3633
3633
  }
@@ -3662,7 +3662,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3662
3662
  const { conditions: conditions } = resource;
3663
3663
  const data = resource.values;
3664
3664
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
3665
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
3665
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
3666
3666
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
3667
3667
  const columnHelper = (0, $hgUW1$createColumnHelper)();
3668
3668
  const table_columns = columns.map((col)=>{
@@ -3681,9 +3681,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3681
3681
  columnOrder
3682
3682
  ]);
3683
3683
  const sortElement = (isSorted, onClickFn)=>{
3684
- if (isSorted === 'asc') return 'dc-c-sort--asc';
3685
- if (isSorted === 'desc') return 'dc-c-sort--desc';
3686
- return 'dc-c-sort--default';
3684
+ if (isSorted === "asc") return "dc-c-sort--asc";
3685
+ if (isSorted === "desc") return "dc-c-sort--desc";
3686
+ return "dc-c-sort--default";
3687
3687
  };
3688
3688
  const filters = [];
3689
3689
  const table = (0, $hgUW1$useReactTable)({
@@ -3695,7 +3695,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3695
3695
  columnVisibility: columnVisibility,
3696
3696
  sorting: sorting
3697
3697
  },
3698
- columnResizeMode: 'onChange',
3698
+ columnResizeMode: "onChange",
3699
3699
  onSortingChange: setSorting,
3700
3700
  onColumnOrderChange: setColumnOrder,
3701
3701
  onColumnVisibilityChange: setColumnVisibility,
@@ -3712,7 +3712,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3712
3712
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
3713
3713
  const tableWrapperWidth = ()=>{
3714
3714
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
3715
- return 'auto';
3715
+ return "auto";
3716
3716
  };
3717
3717
  (0, $hgUW1$useEffect)(()=>{
3718
3718
  setHighlightRow(null);
@@ -3942,7 +3942,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3942
3942
  },
3943
3943
  labelClassName: "ds-u-visibility--screen-reader",
3944
3944
  name: accessor,
3945
- value: filterValue || ''
3945
+ value: filterValue || ""
3946
3946
  });
3947
3947
  }
3948
3948
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -4018,7 +4018,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
4018
4018
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4019
4019
  children: currentPage
4020
4020
  })
4021
- }) : ''
4021
+ }) : ""
4022
4022
  ]
4023
4023
  })
4024
4024
  });
@@ -4075,11 +4075,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
4075
4075
 
4076
4076
 
4077
4077
 
4078
- const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = 'Search the Data', showMagnifyingGlass: showMagnifyingGlass, showSearchButton: showSearchButton, onDark: onDark, onChange: onChange, onSubmit: onSubmit, onKeyDown: onKeyDown, defaultValue: defaultValue = '' })=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4078
+ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = "Search the Data", showMagnifyingGlass: showMagnifyingGlass, showSearchButton: showSearchButton, onDark: onDark, onChange: onChange, onSubmit: onSubmit, onKeyDown: onKeyDown, defaultValue: defaultValue = "" })=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4079
4079
  className: "search-input-container",
4080
4080
  children: [
4081
4081
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4082
- className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
4082
+ className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
4083
4083
  label: placeholder,
4084
4084
  labelClassName: "ds-u-visibility--screen-reader",
4085
4085
  placeholder: placeholder,
@@ -4094,7 +4094,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = 'Search
4094
4094
  }),
4095
4095
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
4096
4096
  variation: "solid",
4097
- className: onDark && 'on-dark',
4097
+ className: onDark && "on-dark",
4098
4098
  onClick: onSubmit,
4099
4099
  children: [
4100
4100
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4213,7 +4213,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
4213
4213
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4214
4214
  addQueryPrefix: true
4215
4215
  })}`,
4216
- docExpansion: 'list',
4216
+ docExpansion: "list",
4217
4217
  defaultModelsExpandDepth: -1,
4218
4218
  plugins: [
4219
4219
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -4321,7 +4321,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4321
4321
  size: "big",
4322
4322
  type: "submit",
4323
4323
  style: {
4324
- width: '70px'
4324
+ width: "70px"
4325
4325
  },
4326
4326
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4327
4327
  className: "fas fa-search small-text"
@@ -4338,7 +4338,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4338
4338
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
4339
4339
  children: [
4340
4340
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4341
- children: text ? text : 'Search'
4341
+ children: text ? text : "Search"
4342
4342
  }),
4343
4343
  ` `,
4344
4344
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4423,12 +4423,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4423
4423
  fulltext: fulltext ? fulltext : undefined,
4424
4424
  ...selectedFacets,
4425
4425
  sort: sort ? sort : undefined,
4426
- ['sort-order']: sortOrder ? sortOrder : undefined,
4426
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4427
4427
  page: page !== 1 ? page : undefined,
4428
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4428
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4429
4429
  };
4430
4430
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4431
- arrayFormat: 'comma',
4431
+ arrayFormat: "comma",
4432
4432
  encode: false
4433
4433
  })}`);
4434
4434
  }
@@ -4439,26 +4439,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4439
4439
 
4440
4440
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4441
4441
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4442
- defaultSort: 'modified',
4443
- defaultOrder: 'desc'
4444
- }, pageTitle: pageTitle = 'Dataset Explorer', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4442
+ defaultSort: "modified",
4443
+ defaultOrder: "desc"
4444
+ }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4445
4445
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4446
4446
  const sortOptions = [
4447
4447
  {
4448
- label: 'Newest',
4449
- value: 'newest'
4448
+ label: "Newest",
4449
+ value: "newest"
4450
4450
  },
4451
4451
  {
4452
- label: 'Oldest',
4453
- value: 'oldest'
4452
+ label: "Oldest",
4453
+ value: "oldest"
4454
4454
  },
4455
4455
  {
4456
- label: 'Title A-Z',
4457
- value: 'titleAZ'
4456
+ label: "Title A-Z",
4457
+ value: "titleAZ"
4458
4458
  },
4459
4459
  {
4460
- label: 'Title Z-A',
4461
- value: 'titleZA'
4460
+ label: "Title Z-A",
4461
+ value: "titleZA"
4462
4462
  }
4463
4463
  ];
4464
4464
  const defaultSortBy = "";
@@ -4477,7 +4477,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4477
4477
  endingNumber: 0
4478
4478
  });
4479
4479
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4480
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4480
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4481
4481
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4482
4482
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
4483
4483
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -4486,7 +4486,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4486
4486
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4487
4487
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4488
4488
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4489
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4489
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4490
4490
  });
4491
4491
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
4492
4492
  theme: [],
@@ -4495,21 +4495,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4495
4495
  const setSortOptions = (value)=>{
4496
4496
  setSortDisplay(value);
4497
4497
  switch(value){
4498
- case 'newest':
4499
- setSort('modified');
4500
- setSortOrder('desc');
4498
+ case "newest":
4499
+ setSort("modified");
4500
+ setSortOrder("desc");
4501
4501
  break;
4502
- case 'oldest':
4503
- setSort('modified');
4504
- setSortOrder('asc');
4502
+ case "oldest":
4503
+ setSort("modified");
4504
+ setSortOrder("asc");
4505
4505
  break;
4506
- case 'titleAZ':
4507
- setSort('title');
4508
- setSortOrder('asc');
4506
+ case "titleAZ":
4507
+ setSort("title");
4508
+ setSortOrder("asc");
4509
4509
  break;
4510
- case 'titleZA':
4511
- setSort('title');
4512
- setSortOrder('desc');
4510
+ case "titleZA":
4511
+ setSort("title");
4512
+ setSortOrder("desc");
4513
4513
  break;
4514
4514
  }
4515
4515
  };
@@ -4517,12 +4517,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4517
4517
  const newFacets = {
4518
4518
  ...selectedFacets
4519
4519
  };
4520
- if (key === 'theme') {
4520
+ if (key === "theme") {
4521
4521
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
4522
4522
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
4523
4523
  else newFacets.theme.push(value);
4524
4524
  }
4525
- if (key === 'keyword') {
4525
+ if (key === "keyword") {
4526
4526
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
4527
4527
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
4528
4528
  else newFacets.keyword.push(value);
@@ -4536,7 +4536,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4536
4536
  });
4537
4537
  setSelectedFacets(newFacets);
4538
4538
  const url = new URL(window.location.href);
4539
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
4539
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
4540
4540
  }
4541
4541
  const pageSize = defaultPageSize;
4542
4542
  (0, $hgUW1$useEffect)(()=>{
@@ -4581,14 +4581,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4581
4581
  setSelectedFacets(defaultSelectedFacets);
4582
4582
  setPage(defaultPage);
4583
4583
  const url = new URL(window.location.href);
4584
- window.history.pushState({}, '', `${url.origin}${url.pathname}`);
4584
+ window.history.pushState({}, "", `${url.origin}${url.pathname}`);
4585
4585
  }
4586
4586
  function buildSearchParams(includePage) {
4587
4587
  let newParams = {};
4588
4588
  if (Number(page) !== 1 && includePage) newParams.page = page;
4589
4589
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
4590
4590
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
4591
- if (fulltext !== '') newParams.fulltext = fulltext;
4591
+ if (fulltext !== "") newParams.fulltext = fulltext;
4592
4592
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
4593
4593
  newParams[key] = selectedFacets[key];
4594
4594
  });
@@ -4601,9 +4601,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4601
4601
  fulltext: fulltext ? fulltext : undefined,
4602
4602
  ...selectedFacets,
4603
4603
  sort: sort ? sort : undefined,
4604
- ['sort-order']: sortOrder ? sortOrder : undefined,
4604
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4605
4605
  page: page !== 1 ? page : undefined,
4606
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4606
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4607
4607
  };
4608
4608
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4609
4609
  queryKey: [
@@ -4612,7 +4612,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4612
4612
  ],
4613
4613
  queryFn: ()=>{
4614
4614
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4615
- arrayFormat: 'comma',
4615
+ arrayFormat: "comma",
4616
4616
  encode: false
4617
4617
  })}`);
4618
4618
  }
@@ -4663,7 +4663,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4663
4663
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4664
4664
  fieldClassName: "ds-u-margin--0",
4665
4665
  value: filterText,
4666
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
4666
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
4667
4667
  label: "Search datasets",
4668
4668
  labelClassName: "ds-u-visibility--screen-reader",
4669
4669
  placeholder: "Search datasets",
@@ -4725,7 +4725,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4725
4725
  "Showing ",
4726
4726
  currentResultNumbers.startingNumber,
4727
4727
  " -",
4728
- ' ',
4728
+ " ",
4729
4729
  currentResultNumbers.endingNumber,
4730
4730
  " of ",
4731
4731
  data.data.total,
@@ -4803,7 +4803,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4803
4803
  },
4804
4804
  renderHref: (page)=>{
4805
4805
  const searchParams = buildSearchParams(false);
4806
- const includeAnd = searchParams ? '&' : '';
4806
+ const includeAnd = searchParams ? "&" : "";
4807
4807
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
4808
4808
  }
4809
4809
  })
@@ -4837,26 +4837,26 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
4837
4837
 
4838
4838
 
4839
4839
  const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4840
- defaultSort: 'modified',
4841
- defaultOrder: 'desc'
4842
- }, pageTitle: pageTitle = 'What\'s New ', showLargeFileWarning: showLargeFileWarning = false, introText: introText = '', dataDictionaryLinks: dataDictionaryLinks = false })=>{
4840
+ defaultSort: "modified",
4841
+ defaultOrder: "desc"
4842
+ }, pageTitle: pageTitle = "What's New ", showLargeFileWarning: showLargeFileWarning = false, introText: introText = "", dataDictionaryLinks: dataDictionaryLinks = false })=>{
4843
4843
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4844
4844
  const sortOptions = [
4845
4845
  {
4846
- label: 'Newest',
4847
- value: 'newest'
4846
+ label: "Newest",
4847
+ value: "newest"
4848
4848
  },
4849
4849
  {
4850
- label: 'Oldest',
4851
- value: 'oldest'
4850
+ label: "Oldest",
4851
+ value: "oldest"
4852
4852
  },
4853
4853
  {
4854
- label: 'Title A-Z',
4855
- value: 'titleAZ'
4854
+ label: "Title A-Z",
4855
+ value: "titleAZ"
4856
4856
  },
4857
4857
  {
4858
- label: 'Title Z-A',
4859
- value: 'titleZA'
4858
+ label: "Title Z-A",
4859
+ value: "titleZA"
4860
4860
  }
4861
4861
  ];
4862
4862
  const defaultSortBy = "";
@@ -4870,33 +4870,33 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4870
4870
  endingNumber: 0
4871
4871
  });
4872
4872
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4873
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4873
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4874
4874
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4875
4875
  const [totalItems, setTotalItems] = (0, $hgUW1$useState)(0);
4876
4876
  const [page, setPage] = (0, $hgUW1$useState)(transformedParams.page ? transformedParams.page : defaultPage);
4877
4877
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4878
4878
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4879
4879
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4880
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4880
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4881
4881
  });
4882
4882
  const setSortOptions = (value)=>{
4883
4883
  setSortDisplay(value);
4884
4884
  switch(value){
4885
- case 'newest':
4886
- setSort('modified');
4887
- setSortOrder('desc');
4885
+ case "newest":
4886
+ setSort("modified");
4887
+ setSortOrder("desc");
4888
4888
  break;
4889
- case 'oldest':
4890
- setSort('modified');
4891
- setSortOrder('asc');
4889
+ case "oldest":
4890
+ setSort("modified");
4891
+ setSortOrder("asc");
4892
4892
  break;
4893
- case 'titleAZ':
4894
- setSort('title');
4895
- setSortOrder('asc');
4893
+ case "titleAZ":
4894
+ setSort("title");
4895
+ setSortOrder("asc");
4896
4896
  break;
4897
- case 'titleZA':
4898
- setSort('title');
4899
- setSortOrder('desc');
4897
+ case "titleZA":
4898
+ setSort("title");
4899
+ setSortOrder("desc");
4900
4900
  break;
4901
4901
  }
4902
4902
  };
@@ -4905,7 +4905,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4905
4905
  // Update browser URL with current search params
4906
4906
  const params = buildSearchParams(true);
4907
4907
  const url = new URL(window.location.href);
4908
- window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
4908
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
4909
4909
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
4910
4910
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
4911
4911
  const endingNumber = Number(pageSize) * Number(page);
@@ -4944,9 +4944,9 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4944
4944
  }
4945
4945
  let params = {
4946
4946
  sort: sort ? sort : undefined,
4947
- ['sort-order']: sortOrder ? sortOrder : undefined,
4947
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4948
4948
  page: page !== 1 ? page : undefined,
4949
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4949
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4950
4950
  };
4951
4951
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4952
4952
  queryKey: [
@@ -4955,7 +4955,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4955
4955
  ],
4956
4956
  queryFn: ()=>{
4957
4957
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4958
- arrayFormat: 'comma',
4958
+ arrayFormat: "comma",
4959
4959
  encode: false
4960
4960
  })}`);
4961
4961
  }
@@ -5019,7 +5019,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5019
5019
  "Showing ",
5020
5020
  currentResultNumbers.startingNumber,
5021
5021
  " -",
5022
- ' ',
5022
+ " ",
5023
5023
  currentResultNumbers.endingNumber,
5024
5024
  " of ",
5025
5025
  data.data.total,
@@ -5086,7 +5086,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5086
5086
  },
5087
5087
  renderHref: (page)=>{
5088
5088
  const searchParams = buildSearchParams(false);
5089
- const includeAnd = searchParams ? '&' : '';
5089
+ const includeAnd = searchParams ? "&" : "";
5090
5090
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
5091
5091
  }
5092
5092
  })
@@ -5118,12 +5118,12 @@ var $550bcc185f420ff5$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5118
5118
 
5119
5119
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5120
5120
  const [dataset, setDataset] = (0, $hgUW1$useState)({
5121
- title: '',
5121
+ title: "",
5122
5122
  distribution: [],
5123
- error: '',
5124
- description: '',
5125
- identifier: '',
5126
- modified: ''
5123
+ error: "",
5124
+ description: "",
5125
+ identifier: "",
5126
+ modified: ""
5127
5127
  });
5128
5128
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
5129
5129
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -5133,7 +5133,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5133
5133
  "metastore" + id
5134
5134
  ],
5135
5135
  queryFn: ()=>{
5136
- return (0, $hgUW1$axios).get(`${rootUrl}/metastore/schemas/dataset/items/${id}?show-reference-ids${ACA ? '&' : ''}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`).then((res)=>res.data).catch((error)=>{
5136
+ return (0, $hgUW1$axios).get(`${rootUrl}/metastore/schemas/dataset/items/${id}?show-reference-ids${ACA ? "&" : ""}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`).then((res)=>res.data).catch((error)=>{
5137
5137
  return {
5138
5138
  title: dataset.title,
5139
5139
  distribution: dataset.distribution,
@@ -5199,7 +5199,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5199
5199
  ...additionalParams
5200
5200
  };
5201
5201
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
5202
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
5202
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
5203
5203
  let enabled = false;
5204
5204
  if (id) {
5205
5205
  if (!requireConditions) enabled = true;
@@ -5279,65 +5279,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
5279
5279
 
5280
5280
 
5281
5281
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
5282
- 'R/P10Y': {
5283
- name: 'Decennial'
5282
+ "R/P10Y": {
5283
+ name: "Decennial"
5284
5284
  },
5285
- 'R/P4Y': {
5286
- name: 'Quadrennial'
5285
+ "R/P4Y": {
5286
+ name: "Quadrennial"
5287
5287
  },
5288
- 'R/P1Y': {
5289
- name: 'Annual'
5288
+ "R/P1Y": {
5289
+ name: "Annual"
5290
5290
  },
5291
- 'R/P2M': {
5292
- name: 'Bimonthly'
5291
+ "R/P2M": {
5292
+ name: "Bimonthly"
5293
5293
  },
5294
- 'R/P3.5D': {
5295
- name: 'Semiweekly'
5294
+ "R/P3.5D": {
5295
+ name: "Semiweekly"
5296
5296
  },
5297
- 'R/P1D': {
5298
- name: 'Daily'
5297
+ "R/P1D": {
5298
+ name: "Daily"
5299
5299
  },
5300
- 'R/P2W': {
5301
- name: 'Biweekly'
5300
+ "R/P2W": {
5301
+ name: "Biweekly"
5302
5302
  },
5303
- 'R/P6M': {
5304
- name: 'Semiannual'
5303
+ "R/P6M": {
5304
+ name: "Semiannual"
5305
5305
  },
5306
- 'R/P2Y': {
5307
- name: 'Biennial'
5306
+ "R/P2Y": {
5307
+ name: "Biennial"
5308
5308
  },
5309
- 'R/P3Y': {
5310
- name: 'Triennial'
5309
+ "R/P3Y": {
5310
+ name: "Triennial"
5311
5311
  },
5312
- 'R/P0.33W': {
5313
- name: 'Three times a week'
5312
+ "R/P0.33W": {
5313
+ name: "Three times a week"
5314
5314
  },
5315
- 'R/P0.33M': {
5316
- name: 'Three times a month'
5315
+ "R/P0.33M": {
5316
+ name: "Three times a month"
5317
5317
  },
5318
- 'R/PT1S': {
5319
- name: 'Continuously updated'
5318
+ "R/PT1S": {
5319
+ name: "Continuously updated"
5320
5320
  },
5321
- 'R/P1M': {
5322
- name: 'Monthly'
5321
+ "R/P1M": {
5322
+ name: "Monthly"
5323
5323
  },
5324
- 'R/P3M': {
5325
- name: 'Quarterly'
5324
+ "R/P3M": {
5325
+ name: "Quarterly"
5326
5326
  },
5327
- 'R/P0.5M': {
5328
- name: 'Semimonthly'
5327
+ "R/P0.5M": {
5328
+ name: "Semimonthly"
5329
5329
  },
5330
- 'R/P4M': {
5331
- name: 'Three times a year'
5330
+ "R/P4M": {
5331
+ name: "Three times a year"
5332
5332
  },
5333
- 'R/P1W': {
5334
- name: 'Weekly'
5333
+ "R/P1W": {
5334
+ name: "Weekly"
5335
5335
  },
5336
- 'R/PT1H': {
5337
- name: 'Hourly'
5336
+ "R/PT1H": {
5337
+ name: "Hourly"
5338
5338
  },
5339
5339
  irregular: {
5340
- name: 'Irregular'
5340
+ name: "Irregular"
5341
5341
  }
5342
5342
  };
5343
5343
 
@@ -5346,7 +5346,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5346
5346
  modified: (data)=>{
5347
5347
  return [
5348
5348
  {
5349
- label: 'Modified',
5349
+ label: "Modified",
5350
5350
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5351
5351
  date: data
5352
5352
  })
@@ -5356,7 +5356,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5356
5356
  issued: (data)=>{
5357
5357
  return [
5358
5358
  {
5359
- label: 'Issued',
5359
+ label: "Issued",
5360
5360
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5361
5361
  date: data
5362
5362
  })
@@ -5366,7 +5366,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5366
5366
  accrualPeriodicity: (data)=>{
5367
5367
  return [
5368
5368
  {
5369
- label: 'Frequency',
5369
+ label: "Frequency",
5370
5370
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
5371
5371
  }
5372
5372
  ];
@@ -5374,7 +5374,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5374
5374
  publisher: (data)=>{
5375
5375
  if (data.data && data.data.name) return [
5376
5376
  {
5377
- label: 'Publisher',
5377
+ label: "Publisher",
5378
5378
  value: data.data.name
5379
5379
  }
5380
5380
  ];
@@ -5383,7 +5383,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5383
5383
  identifier: (data)=>{
5384
5384
  return [
5385
5385
  {
5386
- label: 'Identifier',
5386
+ label: "Identifier",
5387
5387
  value: data
5388
5388
  }
5389
5389
  ];
@@ -5391,11 +5391,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5391
5391
  contactPoint: (data)=>{
5392
5392
  let rows = [];
5393
5393
  if (data.fn) rows.push({
5394
- label: 'Contact',
5394
+ label: "Contact",
5395
5395
  value: data.fn
5396
5396
  });
5397
5397
  if (data.hasEmail) rows.push({
5398
- label: 'Contact Email',
5398
+ label: "Contact Email",
5399
5399
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5400
5400
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
5401
5401
  children: data.hasEmail.replace("mailto:", "")
@@ -5406,7 +5406,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5406
5406
  bureauCode: (data)=>{
5407
5407
  if (data.length) return [
5408
5408
  {
5409
- label: 'Bureau Code',
5409
+ label: "Bureau Code",
5410
5410
  value: data[0]
5411
5411
  }
5412
5412
  ];
@@ -5414,7 +5414,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5414
5414
  programCode: (data)=>{
5415
5415
  if (data.length) return [
5416
5416
  {
5417
- label: 'Program Code',
5417
+ label: "Program Code",
5418
5418
  value: data[0]
5419
5419
  }
5420
5420
  ];
@@ -5422,13 +5422,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5422
5422
  theme: (data)=>{
5423
5423
  return [
5424
5424
  {
5425
- label: 'Category',
5425
+ label: "Category",
5426
5426
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5427
5427
  to: `/datasets?theme[]=${theme.data}`,
5428
5428
  children: theme.data
5429
5429
  }, theme.data)).reduce((prev, curr)=>[
5430
5430
  prev,
5431
- ', ',
5431
+ ", ",
5432
5432
  curr
5433
5433
  ])
5434
5434
  }
@@ -5437,13 +5437,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5437
5437
  keyword: (data)=>{
5438
5438
  return [
5439
5439
  {
5440
- label: 'Tags',
5440
+ label: "Tags",
5441
5441
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5442
5442
  to: `/datasets?keyword[]=${keyword.data}`,
5443
5443
  children: keyword.data
5444
5444
  }, keyword.data)).reduce((prev, curr)=>[
5445
5445
  prev,
5446
- ', ',
5446
+ ", ",
5447
5447
  curr
5448
5448
  ])
5449
5449
  }
@@ -5452,7 +5452,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5452
5452
  license: (data)=>{
5453
5453
  return [
5454
5454
  {
5455
- label: 'License',
5455
+ label: "License",
5456
5456
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5457
5457
  href: data,
5458
5458
  children: data
@@ -5463,7 +5463,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5463
5463
  accessLevel: (data)=>{
5464
5464
  return [
5465
5465
  {
5466
- label: 'Public Access Level',
5466
+ label: "Public Access Level",
5467
5467
  value: data
5468
5468
  }
5469
5469
  ];
@@ -5471,7 +5471,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5471
5471
  temporal: (data)=>{
5472
5472
  return [
5473
5473
  {
5474
- label: 'Temporal Coverage',
5474
+ label: "Temporal Coverage",
5475
5475
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
5476
5476
  className: "dc-c-word-break--all",
5477
5477
  children: data
@@ -5482,7 +5482,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5482
5482
  spatial: (data)=>{
5483
5483
  return [
5484
5484
  {
5485
- label: 'Spacial/Geographical Coverage',
5485
+ label: "Spacial/Geographical Coverage",
5486
5486
  value: data
5487
5487
  }
5488
5488
  ];
@@ -5490,7 +5490,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5490
5490
  references: (data)=>{
5491
5491
  return [
5492
5492
  {
5493
- label: 'Related Documents',
5493
+ label: "Related Documents",
5494
5494
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5495
5495
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
5496
5496
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -5528,7 +5528,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5528
5528
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
5529
5529
  const { data: resource } = (0, $hgUW1$useQuery)({
5530
5530
  queryKey: [
5531
- 'resource-information',
5531
+ "resource-information",
5532
5532
  distribution.identifier
5533
5533
  ],
5534
5534
  queryFn: ()=>(0, $hgUW1$axios).get(`${rootUrl}/datastore/query/${distribution.identifier}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({
@@ -5555,7 +5555,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5555
5555
  }),
5556
5556
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5557
5557
  className: "ds-u-font-weight--bold",
5558
- children: resource?.count ? Number(resource.count).toLocaleString() : ''
5558
+ children: resource?.count ? Number(resource.count).toLocaleString() : ""
5559
5559
  })
5560
5560
  ]
5561
5561
  }),
@@ -5623,8 +5623,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5623
5623
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
5624
5624
  href: dist.data.downloadURL,
5625
5625
  style: {
5626
- order: sm ? '1' : '0',
5627
- width: sm ? '100%' : 'auto'
5626
+ order: sm ? "1" : "0",
5627
+ width: sm ? "100%" : "auto"
5628
5628
  },
5629
5629
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
5630
5630
  className: "ds-c-button",
@@ -5637,7 +5637,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5637
5637
  })
5638
5638
  }),
5639
5639
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5640
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5640
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
5641
5641
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5642
5642
  className: "dc-c-metadata-description ds-u-margin--0",
5643
5643
  dangerouslySetInnerHTML: {
@@ -5711,7 +5711,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5711
5711
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
5712
5712
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
5713
5713
  children: [
5714
- md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5714
+ md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5715
5715
  component: "th",
5716
5716
  className: "ds-u-font-weight--bold",
5717
5717
  children: [
@@ -5723,8 +5723,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5723
5723
  ariaLabel: r.label,
5724
5724
  // @ts-ignore
5725
5725
  style: {
5726
- border: 'none',
5727
- background: 'none'
5726
+ border: "none",
5727
+ background: "none"
5728
5728
  },
5729
5729
  maxWidth: "400px",
5730
5730
  placement: "auto",
@@ -5783,10 +5783,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
5783
5783
  href: apiUrl,
5784
5784
  children: [
5785
5785
  "View API",
5786
- ' ',
5786
+ " ",
5787
5787
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5788
5788
  style: {
5789
- whiteSpace: 'nowrap'
5789
+ whiteSpace: "nowrap"
5790
5790
  },
5791
5791
  children: [
5792
5792
  "specification ",
@@ -5827,20 +5827,20 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
5827
5827
 
5828
5828
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
5829
5829
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
5830
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
5830
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
5831
5831
  const mobile = (0, $hgUW1$useMediaQuery)({
5832
5832
  minWidth: 0,
5833
5833
  maxWidth: 544
5834
5834
  });
5835
5835
  const sortElement = (isSorted)=>{
5836
- if (isSorted === 'asc') return 'dc-c-sort--asc';
5837
- if (isSorted === 'desc') return 'dc-c-sort--desc';
5838
- return 'dc-c-sort--default';
5836
+ if (isSorted === "asc") return "dc-c-sort--asc";
5837
+ if (isSorted === "desc") return "dc-c-sort--desc";
5838
+ return "dc-c-sort--default";
5839
5839
  };
5840
5840
  const table = (0, $hgUW1$useReactTable)({
5841
5841
  data: tableData,
5842
5842
  columns: tableColumns,
5843
- columnResizeMode: 'onChange',
5843
+ columnResizeMode: "onChange",
5844
5844
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
5845
5845
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
5846
5846
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -5859,49 +5859,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5859
5859
  });
5860
5860
  const sortOptions = [
5861
5861
  {
5862
- value: 'default',
5863
- label: 'No Sort'
5862
+ value: "default",
5863
+ label: "No Sort"
5864
5864
  },
5865
5865
  {
5866
- value: 'titleasc',
5867
- label: 'Title A-Z'
5866
+ value: "titleasc",
5867
+ label: "Title A-Z"
5868
5868
  },
5869
5869
  {
5870
- value: 'titledesc',
5871
- label: 'Title Z-A'
5870
+ value: "titledesc",
5871
+ label: "Title Z-A"
5872
5872
  },
5873
5873
  {
5874
- value: 'typeasc',
5875
- label: 'Type A-Z'
5874
+ value: "typeasc",
5875
+ label: "Type A-Z"
5876
5876
  },
5877
5877
  {
5878
- value: 'typedesc',
5879
- label: 'Type Z-A'
5878
+ value: "typedesc",
5879
+ label: "Type Z-A"
5880
5880
  }
5881
5881
  ];
5882
5882
  const sortStatesLookup = {
5883
5883
  default: [],
5884
5884
  titleasc: [
5885
5885
  {
5886
- id: 'titleResizable',
5886
+ id: "titleResizable",
5887
5887
  desc: false
5888
5888
  }
5889
5889
  ],
5890
5890
  titledesc: [
5891
5891
  {
5892
- id: 'titleResizable',
5892
+ id: "titleResizable",
5893
5893
  desc: true
5894
5894
  }
5895
5895
  ],
5896
5896
  typeasc: [
5897
5897
  {
5898
- id: 'type',
5898
+ id: "type",
5899
5899
  desc: false
5900
5900
  }
5901
5901
  ],
5902
5902
  typedesc: [
5903
5903
  {
5904
- id: 'type',
5904
+ id: "type",
5905
5905
  desc: true
5906
5906
  }
5907
5907
  ]
@@ -5929,7 +5929,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5929
5929
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
5930
5930
  className: "dc-c-datatable",
5931
5931
  style: {
5932
- width: '100%'
5932
+ width: "100%"
5933
5933
  },
5934
5934
  stackable: true,
5935
5935
  children: [
@@ -5945,12 +5945,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5945
5945
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5946
5946
  key: header.id,
5947
5947
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
5948
- id: 'dataDictionary_' + header.id,
5948
+ id: "dataDictionary_" + header.id,
5949
5949
  children: [
5950
5950
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
5951
- header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5951
+ header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5952
5952
  onClick: header.column.getToggleSortingHandler(),
5953
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
5953
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
5954
5954
  "aria-label": `${header.column.columnDef.header} sort order`
5955
5955
  })
5956
5956
  ]
@@ -5965,12 +5965,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5965
5965
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
5966
5966
  key: cell.id,
5967
5967
  style: {
5968
- maxWidth: mobile ? '100%' : cell.column.getSize(),
5969
- whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
5968
+ maxWidth: mobile ? "100%" : cell.column.getSize(),
5969
+ whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
5970
5970
  },
5971
- className: `${cell.column.id === 'titleResizable' ? 'ds-u-word-break' : ''}`,
5972
- headers: 'dataDictionary_' + cell.column.id,
5973
- stackedTitle: cell.column.id === 'titleResizable' ? 'Title' : cell.column.columnDef.header,
5971
+ className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
5972
+ headers: "dataDictionary_" + cell.column.id,
5973
+ stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
5974
5974
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
5975
5975
  });
5976
5976
  })
@@ -5999,7 +5999,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5999
5999
  table.setPageIndex(page - 1);
6000
6000
  },
6001
6001
  renderHref: (page)=>`/page=${page}`
6002
- }) : ''
6002
+ }) : ""
6003
6003
  ]
6004
6004
  });
6005
6005
  };
@@ -6009,17 +6009,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
6009
6009
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
6010
6010
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6011
6011
  const tableColumns = [
6012
- columnHelper.accessor('name', {
6013
- header: 'Name'
6012
+ columnHelper.accessor("name", {
6013
+ header: "Name"
6014
6014
  }),
6015
- columnHelper.accessor('title', {
6016
- header: 'Title'
6015
+ columnHelper.accessor("title", {
6016
+ header: "Title"
6017
6017
  }),
6018
- columnHelper.accessor('type', {
6019
- header: 'Type'
6018
+ columnHelper.accessor("type", {
6019
+ header: "Type"
6020
6020
  }),
6021
- columnHelper.accessor('format', {
6022
- header: 'Format'
6021
+ columnHelper.accessor("format", {
6022
+ header: "Format"
6023
6023
  })
6024
6024
  ];
6025
6025
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -6063,7 +6063,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6063
6063
  });
6064
6064
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6065
6065
  const tableColumns = [
6066
- columnHelper.accessor('titleResizable', {
6066
+ columnHelper.accessor("titleResizable", {
6067
6067
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6068
6068
  className: "dc-c-tooltip-width-override",
6069
6069
  children: [
@@ -6072,8 +6072,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6072
6072
  title: "Title represents the column headers of the data file",
6073
6073
  // @ts-ignore
6074
6074
  style: {
6075
- border: 'none',
6076
- background: 'none'
6075
+ border: "none",
6076
+ background: "none"
6077
6077
  },
6078
6078
  maxWidth: "400px",
6079
6079
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -6083,48 +6083,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6083
6083
  size: 300,
6084
6084
  minSize: 132
6085
6085
  }),
6086
- columnHelper.accessor('description', {
6087
- header: 'Description',
6086
+ columnHelper.accessor("description", {
6087
+ header: "Description",
6088
6088
  minSize: 600
6089
6089
  }),
6090
- columnHelper.accessor('type', {
6091
- header: 'Type',
6090
+ columnHelper.accessor("type", {
6091
+ header: "Type",
6092
6092
  size: 150,
6093
6093
  enableResizing: false
6094
6094
  })
6095
6095
  ];
6096
6096
  const typeOptions = [
6097
6097
  {
6098
- value: 'all',
6099
- label: 'All Types'
6098
+ value: "all",
6099
+ label: "All Types"
6100
6100
  },
6101
6101
  {
6102
- value: 'string',
6103
- label: 'String'
6102
+ value: "string",
6103
+ label: "String"
6104
6104
  },
6105
6105
  {
6106
- value: 'date',
6107
- label: 'Date'
6106
+ value: "date",
6107
+ label: "Date"
6108
6108
  },
6109
6109
  {
6110
- value: 'datetime',
6111
- label: 'Datetime'
6110
+ value: "datetime",
6111
+ label: "Datetime"
6112
6112
  },
6113
6113
  {
6114
- value: 'year',
6115
- label: 'Year'
6114
+ value: "year",
6115
+ label: "Year"
6116
6116
  },
6117
6117
  {
6118
- value: 'integer',
6119
- label: 'Integer'
6118
+ value: "integer",
6119
+ label: "Integer"
6120
6120
  },
6121
6121
  {
6122
- value: 'number',
6123
- label: 'Number'
6122
+ value: "number",
6123
+ label: "Number"
6124
6124
  },
6125
6125
  {
6126
- value: 'boolean',
6127
- label: 'Boolean'
6126
+ value: "boolean",
6127
+ label: "Boolean"
6128
6128
  }
6129
6129
  ];
6130
6130
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -6231,7 +6231,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
6231
6231
  href: datasetDictionaryEndpoint + "/csv",
6232
6232
  className: "ds-c-button",
6233
6233
  style: {
6234
- width: '100%'
6234
+ width: "100%"
6235
6235
  },
6236
6236
  children: [
6237
6237
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -6288,7 +6288,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6288
6288
  const [description, setDescription] = (0, $hgUW1$useState)("");
6289
6289
  if (!distribution && !dataset?.identifier) return null;
6290
6290
  (0, $hgUW1$useEffect)(()=>{
6291
- let newDescription = '';
6291
+ let newDescription = "";
6292
6292
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
6293
6293
  else {
6294
6294
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -6303,7 +6303,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6303
6303
  customDescription
6304
6304
  ]);
6305
6305
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6306
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
6306
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
6307
6307
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6308
6308
  className: "ds-u-margin-top--0 dc-c-metadata-description",
6309
6309
  dangerouslySetInnerHTML: {
@@ -6325,7 +6325,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6325
6325
  ],
6326
6326
  queryFn: ()=>{
6327
6327
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
6328
- arrayFormat: 'comma',
6328
+ arrayFormat: "comma",
6329
6329
  encode: false
6330
6330
  })}`).then((res)=>res.json());
6331
6331
  }
@@ -6344,7 +6344,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6344
6344
  conditions: []
6345
6345
  };
6346
6346
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6347
- const title = dataset.title ? dataset.title : '';
6347
+ const title = dataset.title ? dataset.title : "";
6348
6348
  const metadataMapping = {
6349
6349
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
6350
6350
  ...customMetadataMapping
@@ -6352,7 +6352,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6352
6352
  let distribution = {};
6353
6353
  let distributions = dataset.distribution ? dataset.distribution : [];
6354
6354
  if (distributions.length) distribution = distributions[0];
6355
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6355
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6356
6356
  ...options,
6357
6357
  limit: defaultPageSize
6358
6358
  });
@@ -6364,7 +6364,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6364
6364
  }) : null;
6365
6365
  (0, $hgUW1$useEffect)(()=>{
6366
6366
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6367
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6367
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
6368
6368
  }, [
6369
6369
  distribution
6370
6370
  ]);
@@ -6419,27 +6419,27 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6419
6419
  distribution,
6420
6420
  window.location.hash
6421
6421
  ]);
6422
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6422
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6423
6423
  const formatType = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6424
6424
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6425
6425
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
6426
6426
  content: notFoundContent,
6427
6427
  siteUrl: rootUrl
6428
6428
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6429
- className: 'ds-l-container',
6429
+ className: "ds-l-container",
6430
6430
  children: [
6431
6431
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6432
- className: 'ds-l-row',
6432
+ className: "ds-l-row",
6433
6433
  children: [
6434
6434
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6435
- className: 'ds-l-md-col--9',
6435
+ className: "ds-l-md-col--9",
6436
6436
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6437
6437
  className: "ds-text-heading--3xl",
6438
6438
  children: title
6439
6439
  })
6440
6440
  }),
6441
6441
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6442
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6442
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6443
6443
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6444
6444
  className: "ds-u-margin--0",
6445
6445
  children: [
@@ -6451,7 +6451,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6451
6451
  })
6452
6452
  }),
6453
6453
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6454
- className: 'ds-l-md-col--9',
6454
+ className: "ds-l-md-col--9",
6455
6455
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6456
6456
  distribution: distribution,
6457
6457
  dataset: dataset,
@@ -6463,9 +6463,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6463
6463
  ]
6464
6464
  }),
6465
6465
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6466
- className: 'ds-l-row',
6466
+ className: "ds-l-row",
6467
6467
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6468
- className: 'ds-l-md-col--12 dc-dataset',
6468
+ className: "ds-l-md-col--12 dc-dataset",
6469
6469
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
6470
6470
  onChange: (selectedId, prevSelectedId)=>{
6471
6471
  setSelectedTab(selectedId);
@@ -6473,7 +6473,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6473
6473
  selectedId: selectedTab,
6474
6474
  children: [
6475
6475
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6476
- id: 'data-table',
6476
+ id: "data-table",
6477
6477
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6478
6478
  className: "ds-u-color--primary",
6479
6479
  children: [
@@ -6483,7 +6483,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6483
6483
  "Data Table"
6484
6484
  ]
6485
6485
  }),
6486
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6486
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6487
6487
  children: (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6488
6488
  value: {
6489
6489
  id: id,
@@ -6500,7 +6500,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6500
6500
  })
6501
6501
  }),
6502
6502
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6503
- id: 'overview',
6503
+ id: "overview",
6504
6504
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6505
6505
  className: "ds-u-color--primary",
6506
6506
  children: [
@@ -6510,7 +6510,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6510
6510
  "Overview"
6511
6511
  ]
6512
6512
  }),
6513
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6513
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6514
6514
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
6515
6515
  resource: resource,
6516
6516
  dataset: dataset,
@@ -6520,7 +6520,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6520
6520
  })
6521
6521
  }),
6522
6522
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6523
- id: 'data-dictionary',
6523
+ id: "data-dictionary",
6524
6524
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6525
6525
  className: "ds-u-color--primary",
6526
6526
  children: [
@@ -6530,7 +6530,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6530
6530
  "Data Dictionary"
6531
6531
  ]
6532
6532
  }),
6533
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6533
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6534
6534
  children: displayDataDictionaryTab ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
6535
6535
  datasetSitewideDictionary: datasetSitewideDictionary,
6536
6536
  datasetDictionaryEndpoint: distribution.data.describedBy,
@@ -6541,7 +6541,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6541
6541
  })
6542
6542
  }),
6543
6543
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6544
- id: 'api',
6544
+ id: "api",
6545
6545
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6546
6546
  className: "ds-u-color--primary",
6547
6547
  children: [
@@ -6551,7 +6551,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6551
6551
  "API"
6552
6552
  ]
6553
6553
  }),
6554
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6554
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6555
6555
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
6556
6556
  id: id,
6557
6557
  rootUrl: rootUrl,
@@ -6588,13 +6588,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6588
6588
  });
6589
6589
  const menu = (0, $hgUW1$useRef)(null);
6590
6590
  function closeMobileMenu() {
6591
- const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
6591
+ const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
6592
6592
  if (!mobileMenuButtonElement) return;
6593
6593
  mobileMenuButtonElement.focus();
6594
6594
  }
6595
6595
  // Close mobile menu with escape.
6596
6596
  function handleMenuClose(event) {
6597
- if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
6597
+ if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
6598
6598
  }
6599
6599
  function handleClick(event) {
6600
6600
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -6629,7 +6629,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6629
6629
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
6630
6630
  const firstEl = focusableEls[0];
6631
6631
  const lastEl = focusableEls[focusableEls.length - 1];
6632
- if (event.key === 'Tab') {
6632
+ if (event.key === "Tab") {
6633
6633
  if (event.shiftKey && document.activeElement === firstEl) {
6634
6634
  lastEl?.focus();
6635
6635
  event.preventDefault();
@@ -6641,15 +6641,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6641
6641
  }
6642
6642
  };
6643
6643
  (0, $hgUW1$useEffect)(()=>{
6644
- document.addEventListener('keyup', handleMenuClose);
6645
- document.addEventListener('mousedown', handleClick);
6644
+ document.addEventListener("keyup", handleMenuClose);
6645
+ document.addEventListener("mousedown", handleClick);
6646
6646
  if (mobileMenuOpen) handleFocusIn();
6647
6647
  else closeMobileMenu();
6648
- if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
6648
+ if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
6649
6649
  return ()=>{
6650
- document.removeEventListener('keyup', handleMenuClose);
6651
- document.addEventListener('mousedown', handleClick);
6652
- if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
6650
+ document.removeEventListener("keyup", handleMenuClose);
6651
+ document.addEventListener("mousedown", handleClick);
6652
+ if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
6653
6653
  };
6654
6654
  }, [
6655
6655
  mobileMenuOpen
@@ -6664,7 +6664,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6664
6664
  },
6665
6665
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
6666
6666
  "aria-label": "Site header",
6667
- className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
6667
+ className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
6668
6668
  children: [
6669
6669
  topNav && topNav,
6670
6670
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6703,7 +6703,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6703
6703
  onClick: clickHandler ? clickHandler : undefined,
6704
6704
  children: [
6705
6705
  innerHtml,
6706
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6706
+ link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6707
6707
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
6708
6708
  })
6709
6709
  ]
@@ -6713,7 +6713,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6713
6713
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
6714
6714
 
6715
6715
 
6716
- const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = true, emailTitle: emailTitle = 'Get Email Updates', emailBody: emailBody = 'Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.', emailLink: emailLink = '', emailButton: emailButton = 'Sign up for email updates', socialMediaLinks: socialMediaLinks = null, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent = /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6716
+ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = true, emailTitle: emailTitle = "Get Email Updates", emailBody: emailBody = "Sign up to get the latest information from CMS by choosing the topics and frequency of emails that are best for you.", emailLink: emailLink = "", emailButton: emailButton = "Sign up for email updates", socialMediaLinks: socialMediaLinks = null, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent = /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6717
6717
  children: [
6718
6718
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6719
6719
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -6801,14 +6801,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6801
6801
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
6802
6802
  className: "ds-u-font-size--sm",
6803
6803
  children: footerAdditionalResourcesLinks.filter((link)=>{
6804
- const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
6804
+ const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
6805
6805
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
6806
6806
  }).map((link)=>{
6807
6807
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
6808
6808
  className: "ds-u-margin-bottom--1",
6809
6809
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
6810
6810
  href: link.url,
6811
- ['data-' + link.dataTag.name]: link.dataTag.value,
6811
+ ["data-" + link.dataTag.name]: link.dataTag.value,
6812
6812
  onClick: link.onClick,
6813
6813
  children: link.label
6814
6814
  })
@@ -6908,7 +6908,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6908
6908
  children: [
6909
6909
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6910
6910
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
6911
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
6911
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
6912
6912
  }),
6913
6913
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6914
6914
  transform: "translate(160 256)",
@@ -6961,7 +6961,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6961
6961
  children: [
6962
6962
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6963
6963
  id: "svg-inline--fa-title-4z03ITiPPTVF",
6964
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
6964
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
6965
6965
  }),
6966
6966
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6967
6967
  transform: "translate(256 256)",
@@ -7014,7 +7014,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7014
7014
  children: [
7015
7015
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7016
7016
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
7017
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
7017
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
7018
7018
  }),
7019
7019
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7020
7020
  transform: "translate(224 256)",
@@ -7066,7 +7066,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7066
7066
  children: [
7067
7067
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7068
7068
  id: "svg-inline--fa-title-youtube",
7069
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
7069
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
7070
7070
  }),
7071
7071
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
7072
7072
  fill: "currentColor",
@@ -7101,7 +7101,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7101
7101
  className: "ds-u-margin-right--2",
7102
7102
  children: [
7103
7103
  link.label,
7104
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7104
+ link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7105
7105
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
7106
7106
  })
7107
7107
  ]
@@ -7171,26 +7171,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7171
7171
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
7172
7172
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
7173
7173
  stackable: true,
7174
- className: 'ds-c-table',
7174
+ className: "ds-c-table",
7175
7175
  children: [
7176
7176
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
7177
7177
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
7178
7178
  children: [
7179
7179
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7180
- id: 'application',
7181
- headers: 'Application',
7180
+ id: "application",
7181
+ headers: "Application",
7182
7182
  children: "Application"
7183
- }, 'Application'),
7183
+ }, "Application"),
7184
7184
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7185
- id: 'notes',
7186
- headers: 'Notes',
7185
+ id: "notes",
7186
+ headers: "Notes",
7187
7187
  children: "Notes"
7188
- }, 'Notes'),
7188
+ }, "Notes"),
7189
7189
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7190
- id: 'links',
7191
- headers: 'Links',
7190
+ id: "links",
7191
+ headers: "Links",
7192
7192
  children: "Links"
7193
- }, 'Links')
7193
+ }, "Links")
7194
7194
  ]
7195
7195
  })
7196
7196
  }),
@@ -7200,19 +7200,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7200
7200
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7201
7201
  id: d.id,
7202
7202
  stackedTitle: "Application",
7203
- headers: 'Application',
7203
+ headers: "Application",
7204
7204
  children: d.application
7205
7205
  }, d.id),
7206
7206
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7207
7207
  id: d.id,
7208
7208
  stackedTitle: "Notes",
7209
- headers: 'Notes',
7209
+ headers: "Notes",
7210
7210
  children: d.notes
7211
7211
  }, `${d.id}-notes`),
7212
7212
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7213
7213
  id: d.id,
7214
7214
  stackedTitle: "Links",
7215
- headers: 'Links',
7215
+ headers: "Links",
7216
7216
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
7217
7217
  className: "dkan-newtab",
7218
7218
  href: d.link,
@@ -7240,44 +7240,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
7240
7240
 
7241
7241
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
7242
7242
  {
7243
- id: 'excel',
7244
- application: 'Microsoft Excel',
7245
- notes: 'Official size limitations for Microsoft Excel',
7246
- link: 'https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3?redirectSourcePath=%252fen-us%252farticle%252fExcel-specifications-and-limits-ca36e2dc-1f09-4620-b726-67c00b05040f',
7247
- linkText: 'Excel Specifications and Limits',
7248
- screenReaderOnlyText: 'on microsoft.com'
7243
+ id: "excel",
7244
+ application: "Microsoft Excel",
7245
+ notes: "Official size limitations for Microsoft Excel",
7246
+ link: "https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3?redirectSourcePath=%252fen-us%252farticle%252fExcel-specifications-and-limits-ca36e2dc-1f09-4620-b726-67c00b05040f",
7247
+ linkText: "Excel Specifications and Limits",
7248
+ screenReaderOnlyText: "on microsoft.com"
7249
7249
  },
7250
7250
  {
7251
- id: 'access',
7252
- application: 'Microsoft Access',
7253
- notes: 'Official size limitations for Microsoft Access',
7254
- link: 'https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us',
7255
- linkText: 'Access 2016 Specifications',
7256
- screenReaderOnlyText: 'on microsoft.com'
7251
+ id: "access",
7252
+ application: "Microsoft Access",
7253
+ notes: "Official size limitations for Microsoft Access",
7254
+ link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
7255
+ linkText: "Access 2016 Specifications",
7256
+ screenReaderOnlyText: "on microsoft.com"
7257
7257
  },
7258
7258
  {
7259
- id: 'oracle-sql-developer',
7260
- application: 'Oracle SQL Developer',
7261
- notes: 'Oracle SQL Developer tool',
7262
- link: 'https://www.oracle.com/database/sqldeveloper/',
7263
- linkText: 'Oracle SQL Developer Overview',
7264
- screenReaderOnlyText: 'on oracle.com'
7259
+ id: "oracle-sql-developer",
7260
+ application: "Oracle SQL Developer",
7261
+ notes: "Oracle SQL Developer tool",
7262
+ link: "https://www.oracle.com/database/sqldeveloper/",
7263
+ linkText: "Oracle SQL Developer Overview",
7264
+ screenReaderOnlyText: "on oracle.com"
7265
7265
  },
7266
7266
  {
7267
- id: 'oracle-database',
7268
- application: 'Oracle Database',
7269
- notes: 'Oracle Database official size limitations',
7270
- link: 'https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915',
7271
- linkText: 'Oracle Physical Database Limits',
7272
- screenReaderOnlyText: 'on oracle.com'
7267
+ id: "oracle-database",
7268
+ application: "Oracle Database",
7269
+ notes: "Oracle Database official size limitations",
7270
+ link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
7271
+ linkText: "Oracle Physical Database Limits",
7272
+ screenReaderOnlyText: "on oracle.com"
7273
7273
  },
7274
7274
  {
7275
- id: 'oracle-sql-client-tools',
7276
- application: 'Oracle SQL Client Tools',
7277
- notes: 'Oracle SQL Client Tools',
7278
- link: 'https://www.oracle.com/database/technologies/oracle-database-software-downloads.html',
7279
- linkText: 'Oracle SQL Client',
7280
- screenReaderOnlyText: 'on oracle.com'
7275
+ id: "oracle-sql-client-tools",
7276
+ application: "Oracle SQL Client Tools",
7277
+ notes: "Oracle SQL Client Tools",
7278
+ link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
7279
+ linkText: "Oracle SQL Client",
7280
+ screenReaderOnlyText: "on oracle.com"
7281
7281
  }
7282
7282
  ];
7283
7283
 
@@ -7305,7 +7305,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7305
7305
  }),
7306
7306
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
7307
7307
  heading: "Notice",
7308
- className: 'ds-u-margin-top--6',
7308
+ className: "ds-u-margin-top--6",
7309
7309
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
7310
7310
  className: "ds-c-alert__text",
7311
7311
  children: "Be aware of the file size and row limitations of the software you are attempting to import the files into. For information on limitations, look at the software's official documentation."
@@ -7314,16 +7314,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7314
7314
  ]
7315
7315
  }),
7316
7316
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7317
- className: 'ds-u-margin-top--4 ds-l-row',
7317
+ className: "ds-u-margin-top--4 ds-l-row",
7318
7318
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7319
- className: 'ds-l-col--12',
7319
+ className: "ds-l-col--12",
7320
7320
  children: [
7321
7321
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
7322
7322
  className: "ds-text-heading--2xl ds-text-heading--2xl",
7323
7323
  children: "Documentation by Application"
7324
7324
  }),
7325
7325
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7326
- className: 'ds-u-margin-top--4',
7326
+ className: "ds-u-margin-top--4",
7327
7327
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
7328
7328
  data: documentationList
7329
7329
  })
@@ -7351,7 +7351,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7351
7351
  const options = {
7352
7352
  conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
7353
7353
  property: column,
7354
- operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
7354
+ operator: operator === "is" ? "=" : operator === "is not" ? "<>" : operator === "or" ? "in" : operator,
7355
7355
  ...rest
7356
7356
  })) : []
7357
7357
  };
@@ -7359,13 +7359,13 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7359
7359
  let distribution = {};
7360
7360
  let distributions = dataset.distribution ? dataset.distribution : [];
7361
7361
  if (distributions.length) distribution = distributions[distributionIndex];
7362
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7362
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7363
7363
  ...options,
7364
7364
  limit: defaultPageSize
7365
7365
  });
7366
7366
  (0, $hgUW1$useEffect)(()=>{
7367
7367
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
7368
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
7368
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
7369
7369
  }, [
7370
7370
  distribution
7371
7371
  ]);
@@ -7415,7 +7415,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7415
7415
 
7416
7416
 
7417
7417
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
7418
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7418
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7419
7419
  const newDate = new Date(condition.value);
7420
7420
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
7421
7421
  }
@@ -7432,9 +7432,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7432
7432
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
7433
7433
  (0, $hgUW1$useEffect)(()=>{
7434
7434
  if (property !== condition.property) {
7435
- if (property) update(index, 'property', property);
7436
- else update(index, 'property', '');
7437
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7435
+ if (property) update(index, "property", property);
7436
+ else update(index, "property", "");
7437
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7438
7438
  if (!value) setValue(startDate.toJSON().slice(0, 10));
7439
7439
  }
7440
7440
  }
@@ -7448,16 +7448,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7448
7448
  ]);
7449
7449
  (0, $hgUW1$useEffect)(()=>{
7450
7450
  if (operator !== condition.operator) {
7451
- if (operator) update(index, 'operator', operator);
7452
- else update(index, 'operator', '');
7451
+ if (operator) update(index, "operator", operator);
7452
+ else update(index, "operator", "");
7453
7453
  }
7454
7454
  }, [
7455
7455
  operator
7456
7456
  ]);
7457
7457
  (0, $hgUW1$useEffect)(()=>{
7458
7458
  if (value !== condition.value) {
7459
- if (value) update(index, 'value', value);
7460
- else update(index, 'value', '');
7459
+ if (value) update(index, "value", value);
7460
+ else update(index, "value", "");
7461
7461
  }
7462
7462
  }, [
7463
7463
  value
@@ -7481,7 +7481,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7481
7481
  onChange: (e)=>setOperator(e.target.value),
7482
7482
  className: "ds-l-sm-col--3 ds-l-md-col--2 ds-l-col--12 ds-u-padding--0 ds-u-md-padding-right--2 ds-u-margin-bottom--0 ds-u-md-margin-bottom--2"
7483
7483
  }),
7484
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7484
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7485
7485
  className: "ds-l-md-col--5 ds-l-lg-col--4 ds-l-sm-col--8 ds-l-col--12 ds-u-padding--0 ds-u-sm-padding-right--2 ds-u-md-padding-right--0 ds-u-lg-padding-right--2 ds-u-margin-bottom--2",
7486
7486
  children: [
7487
7487
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -7571,12 +7571,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
7571
7571
  className: "ds-u-font-weight--bold",
7572
7572
  children: description
7573
7573
  }),
7574
- ' ',
7574
+ " ",
7575
7575
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7576
7576
  className: "ds-u-font-weight--normal",
7577
7577
  children: operator.label.toUpperCase()
7578
7578
  }),
7579
- ' ',
7579
+ " ",
7580
7580
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7581
7581
  className: "ds-u-color--success",
7582
7582
  children: formattedText
@@ -7603,19 +7603,19 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
7603
7603
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
7604
7604
  let cond = condition;
7605
7605
  delete cond.key;
7606
- if (cond.operator === '=' || cond.operator === '<>') {
7606
+ if (cond.operator === "=" || cond.operator === "<>") {
7607
7607
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7608
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
7608
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
7609
7609
  }
7610
- if (cond.operator.toLowerCase() === 'like') {
7610
+ if (cond.operator.toLowerCase() === "like") {
7611
7611
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7612
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
7612
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
7613
7613
  cond.value = `%${cleanedValue}%`;
7614
7614
  }
7615
- if (cond.operator.toLowerCase() === 'in') {
7616
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
7615
+ if (cond.operator.toLowerCase() === "in") {
7616
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
7617
7617
  }
7618
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
7618
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
7619
7619
  return cond;
7620
7620
  }
7621
7621
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -7635,7 +7635,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7635
7635
  ...queryConditions,
7636
7636
  {
7637
7637
  property: fields[0],
7638
- value: '',
7638
+ value: "",
7639
7639
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
7640
7640
  key: Date.now()
7641
7641
  }
@@ -7675,7 +7675,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7675
7675
  encodeValuesOnly: true,
7676
7676
  addQueryPrefix: true
7677
7677
  });
7678
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
7678
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
7679
7679
  };
7680
7680
  const updateCondition = (index, key, value)=>{
7681
7681
  let newConditions = [
@@ -7748,7 +7748,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
7748
7748
 
7749
7749
 
7750
7750
  const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset, distIndex: distIndex, location: location, customColumns: customColumns, columnSettings: columnSettings, columnWidths: columnWidths, customTitle: customTitle, customDescription: customDescription, rootUrl: rootUrl, updateAriaLive: updateAriaLive })=>{
7751
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
7751
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
7752
7752
  let apiDocs = (0, $hgUW1$useRef)();
7753
7753
  let distribution = {};
7754
7754
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -7760,7 +7760,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7760
7760
  } : {
7761
7761
  conditions: []
7762
7762
  };
7763
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7763
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7764
7764
  ...options,
7765
7765
  limit: 25
7766
7766
  });
@@ -7774,7 +7774,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7774
7774
  }, {
7775
7775
  encode: true
7776
7776
  })}&format=csv`;
7777
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
7777
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
7778
7778
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
7779
7779
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7780
7780
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -7783,7 +7783,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7783
7783
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
7784
7784
  children: [
7785
7785
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7786
- className: 'ds-l-md-col--9',
7786
+ className: "ds-l-md-col--9",
7787
7787
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
7788
7788
  to: `/dataset/${id}`,
7789
7789
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -7794,14 +7794,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7794
7794
  })
7795
7795
  }),
7796
7796
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7797
- className: 'ds-l-md-col--9',
7797
+ className: "ds-l-md-col--9",
7798
7798
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
7799
7799
  className: "ds-text-heading--3xl",
7800
7800
  children: customTitle ? customTitle : pageTitle
7801
7801
  })
7802
7802
  }),
7803
7803
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7804
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
7804
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
7805
7805
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
7806
7806
  className: "ds-u-margin--0",
7807
7807
  children: [
@@ -7813,7 +7813,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7813
7813
  })
7814
7814
  }),
7815
7815
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7816
- className: 'ds-l-md-col--9',
7816
+ className: "ds-l-md-col--9",
7817
7817
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
7818
7818
  distribution: distribution,
7819
7819
  dataset: dataset,
@@ -7823,13 +7823,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7823
7823
  })
7824
7824
  }),
7825
7825
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7826
- className: 'ds-l-md-col--12',
7826
+ className: "ds-l-md-col--12",
7827
7827
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
7828
7828
  resource: resource,
7829
7829
  id: distribution.identifier,
7830
7830
  customColumns: customColumns,
7831
7831
  setOffset: resource.setOffset
7832
- }) : ''
7832
+ }) : ""
7833
7833
  }),
7834
7834
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
7835
7835
  value: {
@@ -7840,7 +7840,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7840
7840
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
7841
7841
  },
7842
7842
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7843
- className: 'ds-l-md-col--12',
7843
+ className: "ds-l-md-col--12",
7844
7844
  children: [
7845
7845
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
7846
7846
  includeDensity: true,
@@ -7862,14 +7862,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7862
7862
  ]
7863
7863
  })
7864
7864
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7865
- className: 'ds-l-md-col--12',
7865
+ className: "ds-l-md-col--12",
7866
7866
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
7867
7867
  role: "status",
7868
7868
  "aria-valuetext": "Resource loading"
7869
7869
  })
7870
7870
  }),
7871
7871
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7872
- className: 'ds-l-md-col--12',
7872
+ className: "ds-l-md-col--12",
7873
7873
  ref: apiDocs,
7874
7874
  children: [
7875
7875
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -7878,7 +7878,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7878
7878
  }),
7879
7879
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
7880
7880
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
7881
- docExpansion: 'list',
7881
+ docExpansion: "list",
7882
7882
  defaultModelsExpandDepth: -1
7883
7883
  })
7884
7884
  ]
@@ -7897,7 +7897,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
7897
7897
  const [ready, setReady] = (0, $hgUW1$useState)(false);
7898
7898
  const [error, setError] = (0, $hgUW1$useState)(false);
7899
7899
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
7900
- const distIndex = dist_id === 'data' ? 0 : dist_id;
7900
+ const distIndex = dist_id === "data" ? 0 : dist_id;
7901
7901
  (0, $hgUW1$useEffect)(()=>{
7902
7902
  if (dataset.error) setError(true);
7903
7903
  if (dataset.distribution && dataset.distribution.length) {