@civicactions/cmsds-open-data-components 4.0.6-alpha.0 → 4.0.7

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
  }
@@ -2258,29 +2258,17 @@ function $7264a673914aa746$export$2b9377795161999(type) {
2258
2258
 
2259
2259
 
2260
2260
 
2261
- const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback })=>{
2261
+ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback, id: id })=>{
2262
2262
  const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
2263
- const handleSortClick = ()=>{
2264
- header.column.getToggleSortingHandler()?.();
2265
- setTimeout(()=>{
2266
- const s = header.column.getIsSorted();
2267
- if (s === "asc") setAriaLiveFeedback(`Sorted by ${header.column.id} ascending`);
2268
- else if (s === "desc") setAriaLiveFeedback(`Sorted by ${header.column.id} descending`);
2269
- else setAriaLiveFeedback(`Sorting cleared on ${header.column.id}`);
2270
- }, 0);
2271
- };
2272
- const canSort = header.column.getCanSort();
2273
- const sortState = header.column.getIsSorted();
2274
2263
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
2275
2264
  key: header.id,
2276
2265
  style: {
2277
2266
  width: header.getSize()
2278
2267
  },
2279
- ...canSort && {
2280
- "aria-sort": sortState === "asc" ? "ascending" : sortState === "desc" ? "descending" : "none"
2281
- },
2268
+ id: id,
2282
2269
  title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2283
- className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2270
+ className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2271
+ "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2284
2272
  children: [
2285
2273
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2286
2274
  className: "ds-u-display--flex",
@@ -2290,19 +2278,17 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2290
2278
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2291
2279
  })
2292
2280
  }),
2293
- sortElement && canSort && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2294
- type: "button",
2295
- onClick: handleSortClick,
2296
- className: "cursor-pointer select-none ds-u-focus-visible " + sortElement(sortState),
2281
+ sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2282
+ onClick: header.column.getToggleSortingHandler(),
2283
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
2297
2284
  "aria-label": `${header.column.columnDef.header} sort order`
2298
2285
  })
2299
2286
  ]
2300
2287
  }),
2301
2288
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2302
- type: "button",
2303
2289
  onMouseDown: header.getResizeHandler(),
2304
2290
  onTouchStart: header.getResizeHandler(),
2305
- className: "dc-c-resize-handle ds-u-focus-visible " + (header.column.getIsResizing() || header.column.id === columnResizing ? "isResizing" : ""),
2291
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
2306
2292
  "aria-label": `Resize ${header.column.columnDef.header} column`,
2307
2293
  onKeyDown: (e)=>{
2308
2294
  const columnSizingObject = table.getState().columnSizing;
@@ -2312,9 +2298,11 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2312
2298
  e.preventDefault();
2313
2299
  e.stopPropagation();
2314
2300
  if (columnResizing) {
2301
+ // end resizing
2315
2302
  setColumnResizing("");
2316
2303
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2317
2304
  } else {
2305
+ // start resizing
2318
2306
  setColumnResizing(header.column.id);
2319
2307
  setAriaLiveFeedback(`${header.column.columnDef.header} grabbed.`);
2320
2308
  }
@@ -2345,7 +2333,9 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2345
2333
  break;
2346
2334
  }
2347
2335
  },
2348
- onBlur: ()=>setColumnResizing("")
2336
+ onBlur: ()=>{
2337
+ setColumnResizing("");
2338
+ }
2349
2339
  })
2350
2340
  ]
2351
2341
  });
@@ -2378,32 +2368,27 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2378
2368
  className: "dc-thead--fixed-size",
2379
2369
  children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
2380
2370
  children: headerGroup.headers.map((header)=>{
2381
- const canSort = header.column.getCanSort();
2382
- const sortState = header.column.getIsSorted();
2383
2371
  return /*#__PURE__*/ (0, $hgUW1$jsx)("th", {
2372
+ key: header.id,
2384
2373
  style: {
2385
2374
  width: header.getSize()
2386
2375
  },
2387
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2388
- className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2389
- ...canSort && {
2390
- "aria-sort": sortState === "asc" ? "ascending" : sortState === "desc" ? "descending" : "none"
2391
- },
2376
+ title: header.column.columnDef.header,
2377
+ className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2378
+ "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2392
2379
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2393
- className: "ds-u-display--flex ds-u-align-items--center ds-u-gap--1",
2380
+ onClick: header.column.getToggleSortingHandler(),
2381
+ className: "ds-u-display--flex",
2394
2382
  children: [
2395
2383
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2396
2384
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2397
2385
  }),
2398
- canSort && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2399
- type: "button",
2400
- onClick: header.column.getToggleSortingHandler(),
2401
- className: "cursor-pointer select-none ds-u-focus-visible " + (sortElement ? sortElement(sortState) : ""),
2402
- "aria-label": `${typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : header.column.id} sort order`
2386
+ /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2387
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
2403
2388
  })
2404
2389
  ]
2405
2390
  })
2406
- }, header.id);
2391
+ });
2407
2392
  })
2408
2393
  }, headerGroup.id))
2409
2394
  });
@@ -2430,7 +2415,7 @@ const $ee0d4d4f34048447$var$DataTableActionsContextDefaults = {
2430
2415
  setColumnVisibility: ()=>{},
2431
2416
  page: 1,
2432
2417
  setPage: ()=>{},
2433
- tableDensity: 'normal',
2418
+ tableDensity: "normal",
2434
2419
  setTableDensity: ()=>{}
2435
2420
  };
2436
2421
  const $ee0d4d4f34048447$export$f814ea079e65d8fe = /*#__PURE__*/ (0, $hgUW1$createContext)($ee0d4d4f34048447$var$DataTableActionsContextDefaults);
@@ -2449,7 +2434,7 @@ const $ee0d4d4f34048447$var$DataTableActionsProvider = ({ children: children })=
2449
2434
  if (datasetTableControls && localStorageData) return localStorageData.tableColumnVisibility;
2450
2435
  else return {};
2451
2436
  });
2452
- const [tableDensity, setTableDensity] = (0, $hgUW1$useState)('normal');
2437
+ const [tableDensity, setTableDensity] = (0, $hgUW1$useState)("normal");
2453
2438
  const providerValue = {
2454
2439
  columnOrder: columnOrder,
2455
2440
  setColumnOrder: setColumnOrder,
@@ -2496,9 +2481,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2496
2481
  transition: transition,
2497
2482
  opacity: isDragging ? 0.7 : 1,
2498
2483
  zIndex: isDragging ? 1 : 0,
2499
- position: 'relative',
2500
- background: 'white',
2501
- touchAction: 'none'
2484
+ position: "relative",
2485
+ background: "white",
2486
+ touchAction: "none"
2502
2487
  };
2503
2488
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
2504
2489
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -2514,7 +2499,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2514
2499
  // this code forces the repaint without user interaction
2515
2500
  const target = e.target;
2516
2501
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
2517
- target.parentNode.querySelector('input').checked = visible;
2502
+ target.parentNode.querySelector("input").checked = visible;
2518
2503
  }, 1);
2519
2504
  },
2520
2505
  children: [
@@ -2531,7 +2516,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2531
2516
  }
2532
2517
  }),
2533
2518
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2534
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
2519
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
2535
2520
  "aria-label": `Reorder ${id} column`,
2536
2521
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2537
2522
  className: "fa fa-sort"
@@ -2549,7 +2534,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
2549
2534
  // Custom function to exclude checkbox from keyboard dragging
2550
2535
  static activators = [
2551
2536
  {
2552
- eventName: 'onKeyDown',
2537
+ eventName: "onKeyDown",
2553
2538
  handler: ({ nativeEvent: event })=>{
2554
2539
  // prevent scrolling the list
2555
2540
  const isCheckbox = [
@@ -2572,7 +2557,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
2572
2557
  // Custom function to stop accidental checkbox clicks on pointer activation
2573
2558
  static activators = [
2574
2559
  {
2575
- eventName: 'onPointerDown',
2560
+ eventName: "onPointerDown",
2576
2561
  handler: ({ nativeEvent: event })=>{
2577
2562
  if (event.target.tagName.toLowerCase() === "input") return false;
2578
2563
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -2670,13 +2655,13 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
2670
2655
  className: "dkan-dataset-toolbar-button-label",
2671
2656
  children: "Manage Columns"
2672
2657
  }),
2673
- hiddenColumns ? ` (${hiddenColumns})` : ''
2658
+ hiddenColumns ? ` (${hiddenColumns})` : ""
2674
2659
  ]
2675
2660
  })
2676
2661
  ]
2677
2662
  }),
2678
2663
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2679
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2664
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2680
2665
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
2681
2666
  heading: "Manage columns",
2682
2667
  isOpen: modalOpen,
@@ -2849,12 +2834,12 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2849
2834
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2850
2835
  children: [
2851
2836
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2852
- className: isModal ? 'dkan-datatable-fullscreen-mode' : '',
2837
+ className: isModal ? "dkan-datatable-fullscreen-mode" : "",
2853
2838
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2854
2839
  canResize: true,
2855
2840
  columns: columns,
2856
2841
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2857
- tablePadding: tableDensity === 'normal' ? 'ds-u-padding-y--2' : tableDensity === 'compact' ? 'ds-u-padding-y--1' : 'ds-u-padding-y--3',
2842
+ tablePadding: tableDensity === "normal" ? "ds-u-padding-y--2" : tableDensity === "compact" ? "ds-u-padding-y--1" : "ds-u-padding-y--3",
2858
2843
  loading: resource.loading,
2859
2844
  isModal: isModal,
2860
2845
  downloadURL: downloadURL,
@@ -2869,14 +2854,14 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2869
2854
  }),
2870
2855
  !resource.loading && resource.count !== null && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2871
2856
  className: [
2872
- 'ds-u-display--flex',
2873
- 'ds-u-flex-wrap--wrap',
2874
- 'ds-u-justify-content--end',
2875
- 'ds-u-md-justify-content--between',
2876
- 'ds-u-margin-top--2',
2877
- 'ds-u-align-items--center',
2878
- isModal && 'ds-u-margin-bottom--2'
2879
- ].filter(Boolean).join(' '),
2857
+ "ds-u-display--flex",
2858
+ "ds-u-flex-wrap--wrap",
2859
+ "ds-u-justify-content--end",
2860
+ "ds-u-md-justify-content--between",
2861
+ "ds-u-margin-top--2",
2862
+ "ds-u-align-items--center",
2863
+ isModal && "ds-u-margin-bottom--2"
2864
+ ].filter(Boolean).join(" "),
2880
2865
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
2881
2866
  totalPages: Math.ceil(resource.count ? resource.count / pageSize : 1),
2882
2867
  currentPage: Number(page),
@@ -2915,7 +2900,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2915
2900
  },
2916
2901
  children: [
2917
2902
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2918
- className: `far ${modalOpen ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2903
+ className: `far ${modalOpen ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2919
2904
  }),
2920
2905
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2921
2906
  className: "dkan-dataset-toolbar-button-label",
@@ -2924,7 +2909,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2924
2909
  ]
2925
2910
  }),
2926
2911
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2927
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2912
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2928
2913
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2929
2914
  heading: "Dataset Explorer",
2930
2915
  isOpen: modalOpen,
@@ -2959,13 +2944,13 @@ var $16bd41951b91f02d$export$2e2bcd8739ae039 = $16bd41951b91f02d$var$FullScreenD
2959
2944
 
2960
2945
 
2961
2946
  function $eadd6431fddf4b6c$var$getStartDate(condition, schema, id) {
2962
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2947
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2963
2948
  const newDate = new Date(condition.value.toString());
2964
2949
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2965
2950
  }
2966
2951
  return new Date();
2967
2952
  }
2968
- const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = '' })=>{
2953
+ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = "" })=>{
2969
2954
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
2970
2955
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
2971
2956
  const [value, setValue] = (0, $hgUW1$useState)(condition.value);
@@ -2975,9 +2960,9 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2975
2960
  });
2976
2961
  (0, $hgUW1$useEffect)(()=>{
2977
2962
  if (property !== condition.property) {
2978
- if (property) update(index, 'property', property);
2979
- else update(index, 'property', '');
2980
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2963
+ if (property) update(index, "property", property);
2964
+ else update(index, "property", "");
2965
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2981
2966
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2982
2967
  }
2983
2968
  }
@@ -2991,22 +2976,22 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2991
2976
  ]);
2992
2977
  (0, $hgUW1$useEffect)(()=>{
2993
2978
  if (operator !== condition.operator) {
2994
- if (operator) update(index, 'operator', operator);
2995
- else update(index, 'operator', '');
2979
+ if (operator) update(index, "operator", operator);
2980
+ else update(index, "operator", "");
2996
2981
  }
2997
2982
  }, [
2998
2983
  operator
2999
2984
  ]);
3000
2985
  (0, $hgUW1$useEffect)(()=>{
3001
2986
  if (value !== condition.value) {
3002
- if (value) update(index, 'value', value);
3003
- else update(index, 'value', '');
2987
+ if (value) update(index, "value", value);
2988
+ else update(index, "value", "");
3004
2989
  }
3005
2990
  }, [
3006
2991
  value
3007
2992
  ]);
3008
2993
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("fieldset", {
3009
- 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}` : ''}`,
2994
+ 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}` : ""}`,
3010
2995
  children: [
3011
2996
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3012
2997
  options: propertyOptions,
@@ -3024,7 +3009,7 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3024
3009
  name: `${condition.key}_operator`,
3025
3010
  onChange: (e)=>setOperator(e.target.value)
3026
3011
  }),
3027
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3012
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3028
3013
  children: [
3029
3014
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
3030
3015
  className: "ds-c-label",
@@ -3077,15 +3062,15 @@ var $eadd6431fddf4b6c$export$2e2bcd8739ae039 = $eadd6431fddf4b6c$var$FilterItem;
3077
3062
 
3078
3063
 
3079
3064
 
3080
- const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = '' })=>{
3065
+ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = "" })=>{
3081
3066
  const small = (0, $hgUW1$useMediaQuery)({
3082
3067
  minWidth: 0,
3083
3068
  maxWidth: 544
3084
3069
  });
3085
3070
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
3086
3071
  disabled: disabled,
3087
- className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? '' : ' ds-u-float--right ds-l-md-col--6 ds-l-col--5'}${className !== '' ? ` ${className}` : ''}`,
3088
- variation: small ? 'ghost' : undefined,
3072
+ className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? "" : " ds-u-float--right ds-l-md-col--6 ds-l-col--5"}${className !== "" ? ` ${className}` : ""}`,
3073
+ variation: small ? "ghost" : undefined,
3089
3074
  onClick: ()=>clearFiltersFn(),
3090
3075
  children: "Reset"
3091
3076
  });
@@ -3097,19 +3082,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
3097
3082
  function $6f4318b1e14124e5$var$updateQueryForDatastore(condition) {
3098
3083
  let cond = condition;
3099
3084
  delete cond.key;
3100
- if (cond.operator === '=' || cond.operator === '<>') {
3085
+ if (cond.operator === "=" || cond.operator === "<>") {
3101
3086
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3102
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
3087
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
3103
3088
  }
3104
- if (cond.operator.toLowerCase() === 'like') {
3089
+ if (cond.operator.toLowerCase() === "like") {
3105
3090
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3106
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
3091
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
3107
3092
  cond.value = `%${cleanedValue}%`;
3108
3093
  }
3109
- if (cond.operator.toLowerCase() === 'in') {
3110
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
3094
+ if (cond.operator.toLowerCase() === "in") {
3095
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
3111
3096
  }
3112
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
3097
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
3113
3098
  return cond;
3114
3099
  }
3115
3100
  const $6f4318b1e14124e5$var$FilterDataset = ()=>{
@@ -3135,7 +3120,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3135
3120
  } else setQueryConditions([
3136
3121
  {
3137
3122
  property: fields[0],
3138
- value: '',
3123
+ value: "",
3139
3124
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3140
3125
  key: Date.now().toString()
3141
3126
  }
@@ -3152,7 +3137,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3152
3137
  ...queryConditions,
3153
3138
  {
3154
3139
  property: fields[0],
3155
- value: '',
3140
+ value: "",
3156
3141
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3157
3142
  key: Date.now().toString()
3158
3143
  }
@@ -3183,7 +3168,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3183
3168
  encodeValuesOnly: true,
3184
3169
  addQueryPrefix: true
3185
3170
  });
3186
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3171
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3187
3172
  };
3188
3173
  const submitConditions = ()=>{
3189
3174
  // only update the data conditions when "Apply filters" is pressed
@@ -3257,7 +3242,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3257
3242
  children: [
3258
3243
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3259
3244
  className: "dkan-dataset-toolbar-button-label",
3260
- children: conditions.length > 0 ? `Edit Filters` : 'Filter Dataset'
3245
+ children: conditions.length > 0 ? `Edit Filters` : "Filter Dataset"
3261
3246
  }),
3262
3247
  conditions.length > 0 && ` (${conditions.length})`
3263
3248
  ]
@@ -3265,7 +3250,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3265
3250
  ]
3266
3251
  }),
3267
3252
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3268
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3253
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3269
3254
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
3270
3255
  heading: "Filter Dataset",
3271
3256
  isOpen: modalOpen,
@@ -3291,7 +3276,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3291
3276
  className: "dkan-apply-dataset-filters-button ds-u-float--right ds-l-md-col--auto ds-l-col--auto",
3292
3277
  onClick: submitConditions,
3293
3278
  variation: "solid",
3294
- children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ''} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? '' : 's'}`
3279
+ children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ""} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? "" : "s"}`
3295
3280
  })
3296
3281
  ]
3297
3282
  })
@@ -3430,9 +3415,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3430
3415
  className: "ds-u-display--flex ds-u-align-items--start",
3431
3416
  children: [
3432
3417
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3433
- onClick: ()=>setTableDensity('expanded'),
3418
+ onClick: ()=>setTableDensity("expanded"),
3434
3419
  "aria-label": "Row height, Expanded",
3435
- 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' : ''}`,
3420
+ 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" : ""}`,
3436
3421
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3437
3422
  className: "ds-u-display--block",
3438
3423
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3451,9 +3436,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3451
3436
  })
3452
3437
  }),
3453
3438
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3454
- onClick: ()=>setTableDensity('normal'),
3439
+ onClick: ()=>setTableDensity("normal"),
3455
3440
  "aria-label": "Row height, Normal",
3456
- 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' : ''}`,
3441
+ 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" : ""}`,
3457
3442
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3458
3443
  className: "ds-u-display--block",
3459
3444
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3472,9 +3457,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3472
3457
  })
3473
3458
  }),
3474
3459
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3475
- onClick: ()=>setTableDensity('compact'),
3460
+ onClick: ()=>setTableDensity("compact"),
3476
3461
  "aria-label": "Row height, Compact",
3477
- 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 ' : ''}`,
3462
+ 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 " : ""}`,
3478
3463
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3479
3464
  className: "ds-u-display--block",
3480
3465
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3559,7 +3544,7 @@ const $85f8ff1ff89899c7$var$updateBrowserURL = (newConditions)=>{
3559
3544
  encodeValuesOnly: true,
3560
3545
  addQueryPrefix: true
3561
3546
  });
3562
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3547
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3563
3548
  };
3564
3549
  const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, columns: columns, defaultColumnOrder: defaultColumnOrder, isModal: isModal, datasetTableControls: datasetTableControls, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility })=>{
3565
3550
  const { limit: limit, offset: offset, count: count, conditions: conditions, setConditions: setConditions } = resource;
@@ -3645,7 +3630,7 @@ const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, co
3645
3630
  }, index)) : null,
3646
3631
  hiddenColumns > 0 ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $c5b172e8d1a8197c$export$2e2bcd8739ae039), {
3647
3632
  iconClass: "fa fa-columns",
3648
- text: `${hiddenColumns} Column${hiddenColumns === 1 ? '' : 's'} Hidden`,
3633
+ text: `${hiddenColumns} Column${hiddenColumns === 1 ? "" : "s"} Hidden`,
3649
3634
  onClick: ()=>{
3650
3635
  resetColumnVisibility();
3651
3636
  }
@@ -3680,7 +3665,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3680
3665
  const { conditions: conditions } = resource;
3681
3666
  const data = resource.values;
3682
3667
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
3683
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
3668
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
3684
3669
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
3685
3670
  const columnHelper = (0, $hgUW1$createColumnHelper)();
3686
3671
  const table_columns = columns.map((col)=>{
@@ -3699,9 +3684,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3699
3684
  columnOrder
3700
3685
  ]);
3701
3686
  const sortElement = (isSorted, onClickFn)=>{
3702
- if (isSorted === 'asc') return 'dc-c-sort--asc';
3703
- if (isSorted === 'desc') return 'dc-c-sort--desc';
3704
- return 'dc-c-sort--default';
3687
+ if (isSorted === "asc") return "dc-c-sort--asc";
3688
+ if (isSorted === "desc") return "dc-c-sort--desc";
3689
+ return "dc-c-sort--default";
3705
3690
  };
3706
3691
  const filters = [];
3707
3692
  const table = (0, $hgUW1$useReactTable)({
@@ -3713,7 +3698,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3713
3698
  columnVisibility: columnVisibility,
3714
3699
  sorting: sorting
3715
3700
  },
3716
- columnResizeMode: 'onChange',
3701
+ columnResizeMode: "onChange",
3717
3702
  onSortingChange: setSorting,
3718
3703
  onColumnOrderChange: setColumnOrder,
3719
3704
  onColumnVisibilityChange: setColumnVisibility,
@@ -3730,7 +3715,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3730
3715
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
3731
3716
  const tableWrapperWidth = ()=>{
3732
3717
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
3733
- return 'auto';
3718
+ return "auto";
3734
3719
  };
3735
3720
  (0, $hgUW1$useEffect)(()=>{
3736
3721
  setHighlightRow(null);
@@ -3960,7 +3945,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3960
3945
  },
3961
3946
  labelClassName: "ds-u-visibility--screen-reader",
3962
3947
  name: accessor,
3963
- value: filterValue || ''
3948
+ value: filterValue || ""
3964
3949
  });
3965
3950
  }
3966
3951
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -4036,7 +4021,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
4036
4021
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4037
4022
  children: currentPage
4038
4023
  })
4039
- }) : ''
4024
+ }) : ""
4040
4025
  ]
4041
4026
  })
4042
4027
  });
@@ -4093,11 +4078,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
4093
4078
 
4094
4079
 
4095
4080
 
4096
- 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", {
4081
+ 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", {
4097
4082
  className: "search-input-container",
4098
4083
  children: [
4099
4084
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4100
- className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
4085
+ className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
4101
4086
  label: placeholder,
4102
4087
  labelClassName: "ds-u-visibility--screen-reader",
4103
4088
  placeholder: placeholder,
@@ -4112,7 +4097,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = 'Search
4112
4097
  }),
4113
4098
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
4114
4099
  variation: "solid",
4115
- className: onDark && 'on-dark',
4100
+ className: onDark && "on-dark",
4116
4101
  onClick: onSubmit,
4117
4102
  children: [
4118
4103
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4231,7 +4216,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
4231
4216
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4232
4217
  addQueryPrefix: true
4233
4218
  })}`,
4234
- docExpansion: 'list',
4219
+ docExpansion: "list",
4235
4220
  defaultModelsExpandDepth: -1,
4236
4221
  plugins: [
4237
4222
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -4339,7 +4324,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4339
4324
  size: "big",
4340
4325
  type: "submit",
4341
4326
  style: {
4342
- width: '70px'
4327
+ width: "70px"
4343
4328
  },
4344
4329
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4345
4330
  className: "fas fa-search small-text"
@@ -4356,7 +4341,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4356
4341
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
4357
4342
  children: [
4358
4343
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4359
- children: text ? text : 'Search'
4344
+ children: text ? text : "Search"
4360
4345
  }),
4361
4346
  ` `,
4362
4347
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4441,12 +4426,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4441
4426
  fulltext: fulltext ? fulltext : undefined,
4442
4427
  ...selectedFacets,
4443
4428
  sort: sort ? sort : undefined,
4444
- ['sort-order']: sortOrder ? sortOrder : undefined,
4429
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4445
4430
  page: page !== 1 ? page : undefined,
4446
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4431
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4447
4432
  };
4448
4433
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4449
- arrayFormat: 'comma',
4434
+ arrayFormat: "comma",
4450
4435
  encode: false
4451
4436
  })}`);
4452
4437
  }
@@ -4457,26 +4442,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4457
4442
 
4458
4443
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4459
4444
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4460
- defaultSort: 'modified',
4461
- defaultOrder: 'desc'
4462
- }, pageTitle: pageTitle = 'Dataset Explorer', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4445
+ defaultSort: "modified",
4446
+ defaultOrder: "desc"
4447
+ }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4463
4448
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4464
4449
  const sortOptions = [
4465
4450
  {
4466
- label: 'Newest',
4467
- value: 'newest'
4451
+ label: "Newest",
4452
+ value: "newest"
4468
4453
  },
4469
4454
  {
4470
- label: 'Oldest',
4471
- value: 'oldest'
4455
+ label: "Oldest",
4456
+ value: "oldest"
4472
4457
  },
4473
4458
  {
4474
- label: 'Title A-Z',
4475
- value: 'titleAZ'
4459
+ label: "Title A-Z",
4460
+ value: "titleAZ"
4476
4461
  },
4477
4462
  {
4478
- label: 'Title Z-A',
4479
- value: 'titleZA'
4463
+ label: "Title Z-A",
4464
+ value: "titleZA"
4480
4465
  }
4481
4466
  ];
4482
4467
  const defaultSortBy = "";
@@ -4495,7 +4480,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4495
4480
  endingNumber: 0
4496
4481
  });
4497
4482
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4498
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4483
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4499
4484
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4500
4485
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
4501
4486
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -4504,7 +4489,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4504
4489
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4505
4490
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4506
4491
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4507
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4492
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4508
4493
  });
4509
4494
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
4510
4495
  theme: [],
@@ -4513,21 +4498,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4513
4498
  const setSortOptions = (value)=>{
4514
4499
  setSortDisplay(value);
4515
4500
  switch(value){
4516
- case 'newest':
4517
- setSort('modified');
4518
- setSortOrder('desc');
4501
+ case "newest":
4502
+ setSort("modified");
4503
+ setSortOrder("desc");
4519
4504
  break;
4520
- case 'oldest':
4521
- setSort('modified');
4522
- setSortOrder('asc');
4505
+ case "oldest":
4506
+ setSort("modified");
4507
+ setSortOrder("asc");
4523
4508
  break;
4524
- case 'titleAZ':
4525
- setSort('title');
4526
- setSortOrder('asc');
4509
+ case "titleAZ":
4510
+ setSort("title");
4511
+ setSortOrder("asc");
4527
4512
  break;
4528
- case 'titleZA':
4529
- setSort('title');
4530
- setSortOrder('desc');
4513
+ case "titleZA":
4514
+ setSort("title");
4515
+ setSortOrder("desc");
4531
4516
  break;
4532
4517
  }
4533
4518
  };
@@ -4535,12 +4520,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4535
4520
  const newFacets = {
4536
4521
  ...selectedFacets
4537
4522
  };
4538
- if (key === 'theme') {
4523
+ if (key === "theme") {
4539
4524
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
4540
4525
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
4541
4526
  else newFacets.theme.push(value);
4542
4527
  }
4543
- if (key === 'keyword') {
4528
+ if (key === "keyword") {
4544
4529
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
4545
4530
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
4546
4531
  else newFacets.keyword.push(value);
@@ -4554,7 +4539,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4554
4539
  });
4555
4540
  setSelectedFacets(newFacets);
4556
4541
  const url = new URL(window.location.href);
4557
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
4542
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
4558
4543
  }
4559
4544
  const pageSize = defaultPageSize;
4560
4545
  (0, $hgUW1$useEffect)(()=>{
@@ -4599,14 +4584,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4599
4584
  setSelectedFacets(defaultSelectedFacets);
4600
4585
  setPage(defaultPage);
4601
4586
  const url = new URL(window.location.href);
4602
- window.history.pushState({}, '', `${url.origin}${url.pathname}`);
4587
+ window.history.pushState({}, "", `${url.origin}${url.pathname}`);
4603
4588
  }
4604
4589
  function buildSearchParams(includePage) {
4605
4590
  let newParams = {};
4606
4591
  if (Number(page) !== 1 && includePage) newParams.page = page;
4607
4592
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
4608
4593
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
4609
- if (fulltext !== '') newParams.fulltext = fulltext;
4594
+ if (fulltext !== "") newParams.fulltext = fulltext;
4610
4595
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
4611
4596
  newParams[key] = selectedFacets[key];
4612
4597
  });
@@ -4619,9 +4604,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4619
4604
  fulltext: fulltext ? fulltext : undefined,
4620
4605
  ...selectedFacets,
4621
4606
  sort: sort ? sort : undefined,
4622
- ['sort-order']: sortOrder ? sortOrder : undefined,
4607
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4623
4608
  page: page !== 1 ? page : undefined,
4624
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4609
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4625
4610
  };
4626
4611
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4627
4612
  queryKey: [
@@ -4630,7 +4615,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4630
4615
  ],
4631
4616
  queryFn: ()=>{
4632
4617
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4633
- arrayFormat: 'comma',
4618
+ arrayFormat: "comma",
4634
4619
  encode: false
4635
4620
  })}`);
4636
4621
  }
@@ -4681,7 +4666,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4681
4666
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4682
4667
  fieldClassName: "ds-u-margin--0",
4683
4668
  value: filterText,
4684
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
4669
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
4685
4670
  label: "Search datasets",
4686
4671
  labelClassName: "ds-u-visibility--screen-reader",
4687
4672
  placeholder: "Search datasets",
@@ -4743,7 +4728,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4743
4728
  "Showing ",
4744
4729
  currentResultNumbers.startingNumber,
4745
4730
  " -",
4746
- ' ',
4731
+ " ",
4747
4732
  currentResultNumbers.endingNumber,
4748
4733
  " of ",
4749
4734
  data.data.total,
@@ -4821,7 +4806,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4821
4806
  },
4822
4807
  renderHref: (page)=>{
4823
4808
  const searchParams = buildSearchParams(false);
4824
- const includeAnd = searchParams ? '&' : '';
4809
+ const includeAnd = searchParams ? "&" : "";
4825
4810
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
4826
4811
  }
4827
4812
  })
@@ -4855,26 +4840,26 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
4855
4840
 
4856
4841
 
4857
4842
  const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4858
- defaultSort: 'modified',
4859
- defaultOrder: 'desc'
4860
- }, pageTitle: pageTitle = 'What\'s New ', showLargeFileWarning: showLargeFileWarning = false, introText: introText = '', dataDictionaryLinks: dataDictionaryLinks = false })=>{
4843
+ defaultSort: "modified",
4844
+ defaultOrder: "desc"
4845
+ }, pageTitle: pageTitle = "What's New ", showLargeFileWarning: showLargeFileWarning = false, introText: introText = "", dataDictionaryLinks: dataDictionaryLinks = false })=>{
4861
4846
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4862
4847
  const sortOptions = [
4863
4848
  {
4864
- label: 'Newest',
4865
- value: 'newest'
4849
+ label: "Newest",
4850
+ value: "newest"
4866
4851
  },
4867
4852
  {
4868
- label: 'Oldest',
4869
- value: 'oldest'
4853
+ label: "Oldest",
4854
+ value: "oldest"
4870
4855
  },
4871
4856
  {
4872
- label: 'Title A-Z',
4873
- value: 'titleAZ'
4857
+ label: "Title A-Z",
4858
+ value: "titleAZ"
4874
4859
  },
4875
4860
  {
4876
- label: 'Title Z-A',
4877
- value: 'titleZA'
4861
+ label: "Title Z-A",
4862
+ value: "titleZA"
4878
4863
  }
4879
4864
  ];
4880
4865
  const defaultSortBy = "";
@@ -4888,33 +4873,33 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4888
4873
  endingNumber: 0
4889
4874
  });
4890
4875
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4891
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4876
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4892
4877
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4893
4878
  const [totalItems, setTotalItems] = (0, $hgUW1$useState)(0);
4894
4879
  const [page, setPage] = (0, $hgUW1$useState)(transformedParams.page ? transformedParams.page : defaultPage);
4895
4880
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4896
4881
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4897
4882
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4898
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4883
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4899
4884
  });
4900
4885
  const setSortOptions = (value)=>{
4901
4886
  setSortDisplay(value);
4902
4887
  switch(value){
4903
- case 'newest':
4904
- setSort('modified');
4905
- setSortOrder('desc');
4888
+ case "newest":
4889
+ setSort("modified");
4890
+ setSortOrder("desc");
4906
4891
  break;
4907
- case 'oldest':
4908
- setSort('modified');
4909
- setSortOrder('asc');
4892
+ case "oldest":
4893
+ setSort("modified");
4894
+ setSortOrder("asc");
4910
4895
  break;
4911
- case 'titleAZ':
4912
- setSort('title');
4913
- setSortOrder('asc');
4896
+ case "titleAZ":
4897
+ setSort("title");
4898
+ setSortOrder("asc");
4914
4899
  break;
4915
- case 'titleZA':
4916
- setSort('title');
4917
- setSortOrder('desc');
4900
+ case "titleZA":
4901
+ setSort("title");
4902
+ setSortOrder("desc");
4918
4903
  break;
4919
4904
  }
4920
4905
  };
@@ -4923,7 +4908,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4923
4908
  // Update browser URL with current search params
4924
4909
  const params = buildSearchParams(true);
4925
4910
  const url = new URL(window.location.href);
4926
- window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
4911
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
4927
4912
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
4928
4913
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
4929
4914
  const endingNumber = Number(pageSize) * Number(page);
@@ -4962,9 +4947,9 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4962
4947
  }
4963
4948
  let params = {
4964
4949
  sort: sort ? sort : undefined,
4965
- ['sort-order']: sortOrder ? sortOrder : undefined,
4950
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4966
4951
  page: page !== 1 ? page : undefined,
4967
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4952
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4968
4953
  };
4969
4954
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4970
4955
  queryKey: [
@@ -4973,7 +4958,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4973
4958
  ],
4974
4959
  queryFn: ()=>{
4975
4960
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4976
- arrayFormat: 'comma',
4961
+ arrayFormat: "comma",
4977
4962
  encode: false
4978
4963
  })}`);
4979
4964
  }
@@ -5037,7 +5022,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5037
5022
  "Showing ",
5038
5023
  currentResultNumbers.startingNumber,
5039
5024
  " -",
5040
- ' ',
5025
+ " ",
5041
5026
  currentResultNumbers.endingNumber,
5042
5027
  " of ",
5043
5028
  data.data.total,
@@ -5104,7 +5089,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5104
5089
  },
5105
5090
  renderHref: (page)=>{
5106
5091
  const searchParams = buildSearchParams(false);
5107
- const includeAnd = searchParams ? '&' : '';
5092
+ const includeAnd = searchParams ? "&" : "";
5108
5093
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
5109
5094
  }
5110
5095
  })
@@ -5136,12 +5121,12 @@ var $550bcc185f420ff5$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5136
5121
 
5137
5122
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5138
5123
  const [dataset, setDataset] = (0, $hgUW1$useState)({
5139
- title: '',
5124
+ title: "",
5140
5125
  distribution: [],
5141
- error: '',
5142
- description: '',
5143
- identifier: '',
5144
- modified: ''
5126
+ error: "",
5127
+ description: "",
5128
+ identifier: "",
5129
+ modified: ""
5145
5130
  });
5146
5131
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
5147
5132
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -5151,7 +5136,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5151
5136
  "metastore" + id
5152
5137
  ],
5153
5138
  queryFn: ()=>{
5154
- 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)=>{
5139
+ 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)=>{
5155
5140
  return {
5156
5141
  title: dataset.title,
5157
5142
  distribution: dataset.distribution,
@@ -5217,7 +5202,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5217
5202
  ...additionalParams
5218
5203
  };
5219
5204
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
5220
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
5205
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
5221
5206
  let enabled = false;
5222
5207
  if (id) {
5223
5208
  if (!requireConditions) enabled = true;
@@ -5297,65 +5282,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
5297
5282
 
5298
5283
 
5299
5284
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
5300
- 'R/P10Y': {
5301
- name: 'Decennial'
5285
+ "R/P10Y": {
5286
+ name: "Decennial"
5302
5287
  },
5303
- 'R/P4Y': {
5304
- name: 'Quadrennial'
5288
+ "R/P4Y": {
5289
+ name: "Quadrennial"
5305
5290
  },
5306
- 'R/P1Y': {
5307
- name: 'Annual'
5291
+ "R/P1Y": {
5292
+ name: "Annual"
5308
5293
  },
5309
- 'R/P2M': {
5310
- name: 'Bimonthly'
5294
+ "R/P2M": {
5295
+ name: "Bimonthly"
5311
5296
  },
5312
- 'R/P3.5D': {
5313
- name: 'Semiweekly'
5297
+ "R/P3.5D": {
5298
+ name: "Semiweekly"
5314
5299
  },
5315
- 'R/P1D': {
5316
- name: 'Daily'
5300
+ "R/P1D": {
5301
+ name: "Daily"
5317
5302
  },
5318
- 'R/P2W': {
5319
- name: 'Biweekly'
5303
+ "R/P2W": {
5304
+ name: "Biweekly"
5320
5305
  },
5321
- 'R/P6M': {
5322
- name: 'Semiannual'
5306
+ "R/P6M": {
5307
+ name: "Semiannual"
5323
5308
  },
5324
- 'R/P2Y': {
5325
- name: 'Biennial'
5309
+ "R/P2Y": {
5310
+ name: "Biennial"
5326
5311
  },
5327
- 'R/P3Y': {
5328
- name: 'Triennial'
5312
+ "R/P3Y": {
5313
+ name: "Triennial"
5329
5314
  },
5330
- 'R/P0.33W': {
5331
- name: 'Three times a week'
5315
+ "R/P0.33W": {
5316
+ name: "Three times a week"
5332
5317
  },
5333
- 'R/P0.33M': {
5334
- name: 'Three times a month'
5318
+ "R/P0.33M": {
5319
+ name: "Three times a month"
5335
5320
  },
5336
- 'R/PT1S': {
5337
- name: 'Continuously updated'
5321
+ "R/PT1S": {
5322
+ name: "Continuously updated"
5338
5323
  },
5339
- 'R/P1M': {
5340
- name: 'Monthly'
5324
+ "R/P1M": {
5325
+ name: "Monthly"
5341
5326
  },
5342
- 'R/P3M': {
5343
- name: 'Quarterly'
5327
+ "R/P3M": {
5328
+ name: "Quarterly"
5344
5329
  },
5345
- 'R/P0.5M': {
5346
- name: 'Semimonthly'
5330
+ "R/P0.5M": {
5331
+ name: "Semimonthly"
5347
5332
  },
5348
- 'R/P4M': {
5349
- name: 'Three times a year'
5333
+ "R/P4M": {
5334
+ name: "Three times a year"
5350
5335
  },
5351
- 'R/P1W': {
5352
- name: 'Weekly'
5336
+ "R/P1W": {
5337
+ name: "Weekly"
5353
5338
  },
5354
- 'R/PT1H': {
5355
- name: 'Hourly'
5339
+ "R/PT1H": {
5340
+ name: "Hourly"
5356
5341
  },
5357
5342
  irregular: {
5358
- name: 'Irregular'
5343
+ name: "Irregular"
5359
5344
  }
5360
5345
  };
5361
5346
 
@@ -5364,7 +5349,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5364
5349
  modified: (data)=>{
5365
5350
  return [
5366
5351
  {
5367
- label: 'Modified',
5352
+ label: "Modified",
5368
5353
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5369
5354
  date: data
5370
5355
  })
@@ -5374,7 +5359,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5374
5359
  issued: (data)=>{
5375
5360
  return [
5376
5361
  {
5377
- label: 'Issued',
5362
+ label: "Issued",
5378
5363
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5379
5364
  date: data
5380
5365
  })
@@ -5384,7 +5369,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5384
5369
  accrualPeriodicity: (data)=>{
5385
5370
  return [
5386
5371
  {
5387
- label: 'Frequency',
5372
+ label: "Frequency",
5388
5373
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
5389
5374
  }
5390
5375
  ];
@@ -5392,7 +5377,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5392
5377
  publisher: (data)=>{
5393
5378
  if (data.data && data.data.name) return [
5394
5379
  {
5395
- label: 'Publisher',
5380
+ label: "Publisher",
5396
5381
  value: data.data.name
5397
5382
  }
5398
5383
  ];
@@ -5401,7 +5386,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5401
5386
  identifier: (data)=>{
5402
5387
  return [
5403
5388
  {
5404
- label: 'Identifier',
5389
+ label: "Identifier",
5405
5390
  value: data
5406
5391
  }
5407
5392
  ];
@@ -5409,11 +5394,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5409
5394
  contactPoint: (data)=>{
5410
5395
  let rows = [];
5411
5396
  if (data.fn) rows.push({
5412
- label: 'Contact',
5397
+ label: "Contact",
5413
5398
  value: data.fn
5414
5399
  });
5415
5400
  if (data.hasEmail) rows.push({
5416
- label: 'Contact Email',
5401
+ label: "Contact Email",
5417
5402
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5418
5403
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
5419
5404
  children: data.hasEmail.replace("mailto:", "")
@@ -5424,7 +5409,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5424
5409
  bureauCode: (data)=>{
5425
5410
  if (data.length) return [
5426
5411
  {
5427
- label: 'Bureau Code',
5412
+ label: "Bureau Code",
5428
5413
  value: data[0]
5429
5414
  }
5430
5415
  ];
@@ -5432,7 +5417,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5432
5417
  programCode: (data)=>{
5433
5418
  if (data.length) return [
5434
5419
  {
5435
- label: 'Program Code',
5420
+ label: "Program Code",
5436
5421
  value: data[0]
5437
5422
  }
5438
5423
  ];
@@ -5440,13 +5425,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5440
5425
  theme: (data)=>{
5441
5426
  return [
5442
5427
  {
5443
- label: 'Category',
5428
+ label: "Category",
5444
5429
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5445
5430
  to: `/datasets?theme[]=${theme.data}`,
5446
5431
  children: theme.data
5447
5432
  }, theme.data)).reduce((prev, curr)=>[
5448
5433
  prev,
5449
- ', ',
5434
+ ", ",
5450
5435
  curr
5451
5436
  ])
5452
5437
  }
@@ -5455,13 +5440,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5455
5440
  keyword: (data)=>{
5456
5441
  return [
5457
5442
  {
5458
- label: 'Tags',
5443
+ label: "Tags",
5459
5444
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5460
5445
  to: `/datasets?keyword[]=${keyword.data}`,
5461
5446
  children: keyword.data
5462
5447
  }, keyword.data)).reduce((prev, curr)=>[
5463
5448
  prev,
5464
- ', ',
5449
+ ", ",
5465
5450
  curr
5466
5451
  ])
5467
5452
  }
@@ -5470,7 +5455,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5470
5455
  license: (data)=>{
5471
5456
  return [
5472
5457
  {
5473
- label: 'License',
5458
+ label: "License",
5474
5459
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5475
5460
  href: data,
5476
5461
  children: data
@@ -5481,7 +5466,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5481
5466
  accessLevel: (data)=>{
5482
5467
  return [
5483
5468
  {
5484
- label: 'Public Access Level',
5469
+ label: "Public Access Level",
5485
5470
  value: data
5486
5471
  }
5487
5472
  ];
@@ -5489,7 +5474,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5489
5474
  temporal: (data)=>{
5490
5475
  return [
5491
5476
  {
5492
- label: 'Temporal Coverage',
5477
+ label: "Temporal Coverage",
5493
5478
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
5494
5479
  className: "dc-c-word-break--all",
5495
5480
  children: data
@@ -5500,7 +5485,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5500
5485
  spatial: (data)=>{
5501
5486
  return [
5502
5487
  {
5503
- label: 'Spacial/Geographical Coverage',
5488
+ label: "Spacial/Geographical Coverage",
5504
5489
  value: data
5505
5490
  }
5506
5491
  ];
@@ -5508,7 +5493,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5508
5493
  references: (data)=>{
5509
5494
  return [
5510
5495
  {
5511
- label: 'Related Documents',
5496
+ label: "Related Documents",
5512
5497
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5513
5498
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
5514
5499
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -5546,7 +5531,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5546
5531
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
5547
5532
  const { data: resource } = (0, $hgUW1$useQuery)({
5548
5533
  queryKey: [
5549
- 'resource-information',
5534
+ "resource-information",
5550
5535
  distribution.identifier
5551
5536
  ],
5552
5537
  queryFn: ()=>(0, $hgUW1$axios).get(`${rootUrl}/datastore/query/${distribution.identifier}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({
@@ -5573,7 +5558,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5573
5558
  }),
5574
5559
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5575
5560
  className: "ds-u-font-weight--bold",
5576
- children: resource?.count ? Number(resource.count).toLocaleString() : ''
5561
+ children: resource?.count ? Number(resource.count).toLocaleString() : ""
5577
5562
  })
5578
5563
  ]
5579
5564
  }),
@@ -5641,8 +5626,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5641
5626
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
5642
5627
  href: dist.data.downloadURL,
5643
5628
  style: {
5644
- order: sm ? '1' : '0',
5645
- width: sm ? '100%' : 'auto'
5629
+ order: sm ? "1" : "0",
5630
+ width: sm ? "100%" : "auto"
5646
5631
  },
5647
5632
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
5648
5633
  className: "ds-c-button",
@@ -5655,7 +5640,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5655
5640
  })
5656
5641
  }),
5657
5642
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5658
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5643
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
5659
5644
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5660
5645
  className: "dc-c-metadata-description ds-u-margin--0",
5661
5646
  dangerouslySetInnerHTML: {
@@ -5729,7 +5714,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5729
5714
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
5730
5715
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
5731
5716
  children: [
5732
- md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5717
+ md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5733
5718
  component: "th",
5734
5719
  className: "ds-u-font-weight--bold",
5735
5720
  children: [
@@ -5741,8 +5726,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5741
5726
  ariaLabel: r.label,
5742
5727
  // @ts-ignore
5743
5728
  style: {
5744
- border: 'none',
5745
- background: 'none'
5729
+ border: "none",
5730
+ background: "none"
5746
5731
  },
5747
5732
  maxWidth: "400px",
5748
5733
  placement: "auto",
@@ -5801,10 +5786,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
5801
5786
  href: apiUrl,
5802
5787
  children: [
5803
5788
  "View API",
5804
- ' ',
5789
+ " ",
5805
5790
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5806
5791
  style: {
5807
- whiteSpace: 'nowrap'
5792
+ whiteSpace: "nowrap"
5808
5793
  },
5809
5794
  children: [
5810
5795
  "specification ",
@@ -5845,20 +5830,20 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
5845
5830
 
5846
5831
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
5847
5832
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
5848
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
5833
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
5849
5834
  const mobile = (0, $hgUW1$useMediaQuery)({
5850
5835
  minWidth: 0,
5851
5836
  maxWidth: 544
5852
5837
  });
5853
5838
  const sortElement = (isSorted)=>{
5854
- if (isSorted === 'asc') return 'dc-c-sort--asc';
5855
- if (isSorted === 'desc') return 'dc-c-sort--desc';
5856
- return 'dc-c-sort--default';
5839
+ if (isSorted === "asc") return "dc-c-sort--asc";
5840
+ if (isSorted === "desc") return "dc-c-sort--desc";
5841
+ return "dc-c-sort--default";
5857
5842
  };
5858
5843
  const table = (0, $hgUW1$useReactTable)({
5859
5844
  data: tableData,
5860
5845
  columns: tableColumns,
5861
- columnResizeMode: 'onChange',
5846
+ columnResizeMode: "onChange",
5862
5847
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
5863
5848
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
5864
5849
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -5877,49 +5862,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5877
5862
  });
5878
5863
  const sortOptions = [
5879
5864
  {
5880
- value: 'default',
5881
- label: 'No Sort'
5865
+ value: "default",
5866
+ label: "No Sort"
5882
5867
  },
5883
5868
  {
5884
- value: 'titleasc',
5885
- label: 'Title A-Z'
5869
+ value: "titleasc",
5870
+ label: "Title A-Z"
5886
5871
  },
5887
5872
  {
5888
- value: 'titledesc',
5889
- label: 'Title Z-A'
5873
+ value: "titledesc",
5874
+ label: "Title Z-A"
5890
5875
  },
5891
5876
  {
5892
- value: 'typeasc',
5893
- label: 'Type A-Z'
5877
+ value: "typeasc",
5878
+ label: "Type A-Z"
5894
5879
  },
5895
5880
  {
5896
- value: 'typedesc',
5897
- label: 'Type Z-A'
5881
+ value: "typedesc",
5882
+ label: "Type Z-A"
5898
5883
  }
5899
5884
  ];
5900
5885
  const sortStatesLookup = {
5901
5886
  default: [],
5902
5887
  titleasc: [
5903
5888
  {
5904
- id: 'titleResizable',
5889
+ id: "titleResizable",
5905
5890
  desc: false
5906
5891
  }
5907
5892
  ],
5908
5893
  titledesc: [
5909
5894
  {
5910
- id: 'titleResizable',
5895
+ id: "titleResizable",
5911
5896
  desc: true
5912
5897
  }
5913
5898
  ],
5914
5899
  typeasc: [
5915
5900
  {
5916
- id: 'type',
5901
+ id: "type",
5917
5902
  desc: false
5918
5903
  }
5919
5904
  ],
5920
5905
  typedesc: [
5921
5906
  {
5922
- id: 'type',
5907
+ id: "type",
5923
5908
  desc: true
5924
5909
  }
5925
5910
  ]
@@ -5947,7 +5932,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5947
5932
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
5948
5933
  className: "dc-c-datatable",
5949
5934
  style: {
5950
- width: '100%'
5935
+ width: "100%"
5951
5936
  },
5952
5937
  stackable: true,
5953
5938
  children: [
@@ -5959,16 +5944,17 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5959
5944
  table: table,
5960
5945
  header: header,
5961
5946
  setAriaLiveFeedback: setAriaLiveFeedback,
5962
- sortElement: sortElement
5947
+ sortElement: sortElement,
5948
+ id: "dataDictionary_" + header.id
5963
5949
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5964
5950
  key: header.id,
5965
5951
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
5966
- id: 'dataDictionary_' + header.id,
5952
+ id: "dataDictionary_" + header.id,
5967
5953
  children: [
5968
5954
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
5969
- header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5955
+ header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5970
5956
  onClick: header.column.getToggleSortingHandler(),
5971
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
5957
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
5972
5958
  "aria-label": `${header.column.columnDef.header} sort order`
5973
5959
  })
5974
5960
  ]
@@ -5983,12 +5969,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5983
5969
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
5984
5970
  key: cell.id,
5985
5971
  style: {
5986
- maxWidth: mobile ? '100%' : cell.column.getSize(),
5987
- whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
5972
+ maxWidth: mobile ? "100%" : cell.column.getSize(),
5973
+ whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
5988
5974
  },
5989
- className: `${cell.column.id === 'titleResizable' ? 'ds-u-word-break' : ''}`,
5990
- headers: 'dataDictionary_' + cell.column.id,
5991
- stackedTitle: cell.column.id === 'titleResizable' ? 'Title' : cell.column.columnDef.header,
5975
+ className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
5976
+ headers: "dataDictionary_" + cell.column.id,
5977
+ stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
5992
5978
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
5993
5979
  });
5994
5980
  })
@@ -6017,7 +6003,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6017
6003
  table.setPageIndex(page - 1);
6018
6004
  },
6019
6005
  renderHref: (page)=>`/page=${page}`
6020
- }) : ''
6006
+ }) : ""
6021
6007
  ]
6022
6008
  });
6023
6009
  };
@@ -6027,17 +6013,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
6027
6013
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
6028
6014
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6029
6015
  const tableColumns = [
6030
- columnHelper.accessor('name', {
6031
- header: 'Name'
6016
+ columnHelper.accessor("name", {
6017
+ header: "Name"
6032
6018
  }),
6033
- columnHelper.accessor('title', {
6034
- header: 'Title'
6019
+ columnHelper.accessor("title", {
6020
+ header: "Title"
6035
6021
  }),
6036
- columnHelper.accessor('type', {
6037
- header: 'Type'
6022
+ columnHelper.accessor("type", {
6023
+ header: "Type"
6038
6024
  }),
6039
- columnHelper.accessor('format', {
6040
- header: 'Format'
6025
+ columnHelper.accessor("format", {
6026
+ header: "Format"
6041
6027
  })
6042
6028
  ];
6043
6029
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -6081,7 +6067,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6081
6067
  });
6082
6068
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6083
6069
  const tableColumns = [
6084
- columnHelper.accessor('titleResizable', {
6070
+ columnHelper.accessor("titleResizable", {
6085
6071
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6086
6072
  className: "dc-c-tooltip-width-override",
6087
6073
  children: [
@@ -6090,8 +6076,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6090
6076
  title: "Title represents the column headers of the data file",
6091
6077
  // @ts-ignore
6092
6078
  style: {
6093
- border: 'none',
6094
- background: 'none'
6079
+ border: "none",
6080
+ background: "none"
6095
6081
  },
6096
6082
  maxWidth: "400px",
6097
6083
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -6101,48 +6087,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6101
6087
  size: 300,
6102
6088
  minSize: 132
6103
6089
  }),
6104
- columnHelper.accessor('description', {
6105
- header: 'Description',
6090
+ columnHelper.accessor("description", {
6091
+ header: "Description",
6106
6092
  minSize: 600
6107
6093
  }),
6108
- columnHelper.accessor('type', {
6109
- header: 'Type',
6094
+ columnHelper.accessor("type", {
6095
+ header: "Type",
6110
6096
  size: 150,
6111
6097
  enableResizing: false
6112
6098
  })
6113
6099
  ];
6114
6100
  const typeOptions = [
6115
6101
  {
6116
- value: 'all',
6117
- label: 'All Types'
6102
+ value: "all",
6103
+ label: "All Types"
6118
6104
  },
6119
6105
  {
6120
- value: 'string',
6121
- label: 'String'
6106
+ value: "string",
6107
+ label: "String"
6122
6108
  },
6123
6109
  {
6124
- value: 'date',
6125
- label: 'Date'
6110
+ value: "date",
6111
+ label: "Date"
6126
6112
  },
6127
6113
  {
6128
- value: 'datetime',
6129
- label: 'Datetime'
6114
+ value: "datetime",
6115
+ label: "Datetime"
6130
6116
  },
6131
6117
  {
6132
- value: 'year',
6133
- label: 'Year'
6118
+ value: "year",
6119
+ label: "Year"
6134
6120
  },
6135
6121
  {
6136
- value: 'integer',
6137
- label: 'Integer'
6122
+ value: "integer",
6123
+ label: "Integer"
6138
6124
  },
6139
6125
  {
6140
- value: 'number',
6141
- label: 'Number'
6126
+ value: "number",
6127
+ label: "Number"
6142
6128
  },
6143
6129
  {
6144
- value: 'boolean',
6145
- label: 'Boolean'
6130
+ value: "boolean",
6131
+ label: "Boolean"
6146
6132
  }
6147
6133
  ];
6148
6134
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -6249,7 +6235,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
6249
6235
  href: datasetDictionaryEndpoint + "/csv",
6250
6236
  className: "ds-c-button",
6251
6237
  style: {
6252
- width: '100%'
6238
+ width: "100%"
6253
6239
  },
6254
6240
  children: [
6255
6241
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -6306,7 +6292,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6306
6292
  const [description, setDescription] = (0, $hgUW1$useState)("");
6307
6293
  if (!distribution && !dataset?.identifier) return null;
6308
6294
  (0, $hgUW1$useEffect)(()=>{
6309
- let newDescription = '';
6295
+ let newDescription = "";
6310
6296
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
6311
6297
  else {
6312
6298
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -6321,7 +6307,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6321
6307
  customDescription
6322
6308
  ]);
6323
6309
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6324
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
6310
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
6325
6311
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6326
6312
  className: "ds-u-margin-top--0 dc-c-metadata-description",
6327
6313
  children: typeof description === "string" ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6345,7 +6331,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6345
6331
  ],
6346
6332
  queryFn: ()=>{
6347
6333
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
6348
- arrayFormat: 'comma',
6334
+ arrayFormat: "comma",
6349
6335
  encode: false
6350
6336
  })}`).then((res)=>res.json());
6351
6337
  }
@@ -6364,7 +6350,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6364
6350
  conditions: []
6365
6351
  };
6366
6352
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6367
- const title = dataset.title ? dataset.title : '';
6353
+ const title = dataset.title ? dataset.title : "";
6368
6354
  const metadataMapping = {
6369
6355
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
6370
6356
  ...customMetadataMapping
@@ -6372,7 +6358,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6372
6358
  let distribution = {};
6373
6359
  let distributions = dataset.distribution ? dataset.distribution : [];
6374
6360
  if (distributions.length) distribution = distributions[0];
6375
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6361
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6376
6362
  ...options,
6377
6363
  limit: defaultPageSize
6378
6364
  });
@@ -6384,7 +6370,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6384
6370
  }) : null;
6385
6371
  (0, $hgUW1$useEffect)(()=>{
6386
6372
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6387
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6373
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
6388
6374
  }, [
6389
6375
  distribution
6390
6376
  ]);
@@ -6439,27 +6425,27 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6439
6425
  distribution,
6440
6426
  window.location.hash
6441
6427
  ]);
6442
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6428
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6443
6429
  const formatType = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6444
6430
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6445
6431
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
6446
6432
  content: notFoundContent,
6447
6433
  siteUrl: rootUrl
6448
6434
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6449
- className: 'ds-l-container',
6435
+ className: "ds-l-container",
6450
6436
  children: [
6451
6437
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6452
- className: 'ds-l-row',
6438
+ className: "ds-l-row",
6453
6439
  children: [
6454
6440
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6455
- className: 'ds-l-md-col--9',
6441
+ className: "ds-l-md-col--9",
6456
6442
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6457
6443
  className: "ds-text-heading--3xl",
6458
6444
  children: title
6459
6445
  })
6460
6446
  }),
6461
6447
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6462
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6448
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6463
6449
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6464
6450
  className: "ds-u-margin--0",
6465
6451
  children: [
@@ -6471,7 +6457,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6471
6457
  })
6472
6458
  }),
6473
6459
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6474
- className: 'ds-l-md-col--9',
6460
+ className: "ds-l-md-col--9",
6475
6461
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6476
6462
  distribution: distribution,
6477
6463
  dataset: dataset,
@@ -6483,9 +6469,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6483
6469
  ]
6484
6470
  }),
6485
6471
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6486
- className: 'ds-l-row',
6472
+ className: "ds-l-row",
6487
6473
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6488
- className: 'ds-l-md-col--12 dc-dataset',
6474
+ className: "ds-l-md-col--12 dc-dataset",
6489
6475
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
6490
6476
  onChange: (selectedId, prevSelectedId)=>{
6491
6477
  setSelectedTab(selectedId);
@@ -6493,7 +6479,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6493
6479
  selectedId: selectedTab,
6494
6480
  children: [
6495
6481
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6496
- id: 'data-table',
6482
+ id: "data-table",
6497
6483
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6498
6484
  className: "ds-u-color--primary",
6499
6485
  children: [
@@ -6503,7 +6489,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6503
6489
  "Data Table"
6504
6490
  ]
6505
6491
  }),
6506
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6492
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6507
6493
  children: (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6508
6494
  value: {
6509
6495
  id: id,
@@ -6520,7 +6506,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6520
6506
  })
6521
6507
  }),
6522
6508
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6523
- id: 'overview',
6509
+ id: "overview",
6524
6510
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6525
6511
  className: "ds-u-color--primary",
6526
6512
  children: [
@@ -6530,7 +6516,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6530
6516
  "Overview"
6531
6517
  ]
6532
6518
  }),
6533
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6519
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6534
6520
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
6535
6521
  resource: resource,
6536
6522
  dataset: dataset,
@@ -6540,7 +6526,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6540
6526
  })
6541
6527
  }),
6542
6528
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6543
- id: 'data-dictionary',
6529
+ id: "data-dictionary",
6544
6530
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6545
6531
  className: "ds-u-color--primary",
6546
6532
  children: [
@@ -6550,7 +6536,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6550
6536
  "Data Dictionary"
6551
6537
  ]
6552
6538
  }),
6553
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6539
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6554
6540
  children: displayDataDictionaryTab ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
6555
6541
  datasetSitewideDictionary: datasetSitewideDictionary,
6556
6542
  datasetDictionaryEndpoint: distribution.data.describedBy,
@@ -6561,7 +6547,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6561
6547
  })
6562
6548
  }),
6563
6549
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6564
- id: 'api',
6550
+ id: "api",
6565
6551
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6566
6552
  className: "ds-u-color--primary",
6567
6553
  children: [
@@ -6571,7 +6557,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6571
6557
  "API"
6572
6558
  ]
6573
6559
  }),
6574
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6560
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6575
6561
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
6576
6562
  id: id,
6577
6563
  rootUrl: rootUrl,
@@ -6608,13 +6594,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6608
6594
  });
6609
6595
  const menu = (0, $hgUW1$useRef)(null);
6610
6596
  function closeMobileMenu() {
6611
- const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
6597
+ const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
6612
6598
  if (!mobileMenuButtonElement) return;
6613
6599
  mobileMenuButtonElement.focus();
6614
6600
  }
6615
6601
  // Close mobile menu with escape.
6616
6602
  function handleMenuClose(event) {
6617
- if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
6603
+ if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
6618
6604
  }
6619
6605
  function handleClick(event) {
6620
6606
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -6649,7 +6635,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6649
6635
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
6650
6636
  const firstEl = focusableEls[0];
6651
6637
  const lastEl = focusableEls[focusableEls.length - 1];
6652
- if (event.key === 'Tab') {
6638
+ if (event.key === "Tab") {
6653
6639
  if (event.shiftKey && document.activeElement === firstEl) {
6654
6640
  lastEl?.focus();
6655
6641
  event.preventDefault();
@@ -6661,15 +6647,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6661
6647
  }
6662
6648
  };
6663
6649
  (0, $hgUW1$useEffect)(()=>{
6664
- document.addEventListener('keyup', handleMenuClose);
6665
- document.addEventListener('mousedown', handleClick);
6650
+ document.addEventListener("keyup", handleMenuClose);
6651
+ document.addEventListener("mousedown", handleClick);
6666
6652
  if (mobileMenuOpen) handleFocusIn();
6667
6653
  else closeMobileMenu();
6668
- if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
6654
+ if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
6669
6655
  return ()=>{
6670
- document.removeEventListener('keyup', handleMenuClose);
6671
- document.addEventListener('mousedown', handleClick);
6672
- if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
6656
+ document.removeEventListener("keyup", handleMenuClose);
6657
+ document.addEventListener("mousedown", handleClick);
6658
+ if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
6673
6659
  };
6674
6660
  }, [
6675
6661
  mobileMenuOpen
@@ -6684,7 +6670,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6684
6670
  },
6685
6671
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
6686
6672
  "aria-label": "Site header",
6687
- className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
6673
+ className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
6688
6674
  children: [
6689
6675
  topNav && topNav,
6690
6676
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6723,7 +6709,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6723
6709
  onClick: clickHandler ? clickHandler : undefined,
6724
6710
  children: [
6725
6711
  innerHtml,
6726
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6712
+ link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6727
6713
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
6728
6714
  })
6729
6715
  ]
@@ -6733,7 +6719,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6733
6719
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
6734
6720
 
6735
6721
 
6736
- 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", {
6722
+ 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", {
6737
6723
  children: [
6738
6724
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6739
6725
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -6821,14 +6807,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6821
6807
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
6822
6808
  className: "ds-u-font-size--sm",
6823
6809
  children: footerAdditionalResourcesLinks.filter((link)=>{
6824
- const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
6810
+ const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
6825
6811
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
6826
6812
  }).map((link)=>{
6827
6813
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
6828
6814
  className: "ds-u-margin-bottom--1",
6829
6815
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
6830
6816
  href: link.url,
6831
- ['data-' + link.dataTag.name]: link.dataTag.value,
6817
+ ["data-" + link.dataTag.name]: link.dataTag.value,
6832
6818
  onClick: link.onClick,
6833
6819
  children: link.label
6834
6820
  })
@@ -6928,7 +6914,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6928
6914
  children: [
6929
6915
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6930
6916
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
6931
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
6917
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
6932
6918
  }),
6933
6919
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6934
6920
  transform: "translate(160 256)",
@@ -6981,7 +6967,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6981
6967
  children: [
6982
6968
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6983
6969
  id: "svg-inline--fa-title-4z03ITiPPTVF",
6984
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
6970
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
6985
6971
  }),
6986
6972
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6987
6973
  transform: "translate(256 256)",
@@ -7034,7 +7020,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7034
7020
  children: [
7035
7021
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7036
7022
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
7037
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
7023
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
7038
7024
  }),
7039
7025
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7040
7026
  transform: "translate(224 256)",
@@ -7086,7 +7072,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7086
7072
  children: [
7087
7073
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7088
7074
  id: "svg-inline--fa-title-youtube",
7089
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
7075
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
7090
7076
  }),
7091
7077
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
7092
7078
  fill: "currentColor",
@@ -7121,7 +7107,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7121
7107
  className: "ds-u-margin-right--2",
7122
7108
  children: [
7123
7109
  link.label,
7124
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7110
+ link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7125
7111
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
7126
7112
  })
7127
7113
  ]
@@ -7191,26 +7177,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7191
7177
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
7192
7178
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
7193
7179
  stackable: true,
7194
- className: 'ds-c-table',
7180
+ className: "ds-c-table",
7195
7181
  children: [
7196
7182
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
7197
7183
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
7198
7184
  children: [
7199
7185
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7200
- id: 'application',
7201
- headers: 'Application',
7186
+ id: "application",
7187
+ headers: "Application",
7202
7188
  children: "Application"
7203
- }, 'Application'),
7189
+ }, "Application"),
7204
7190
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7205
- id: 'notes',
7206
- headers: 'Notes',
7191
+ id: "notes",
7192
+ headers: "Notes",
7207
7193
  children: "Notes"
7208
- }, 'Notes'),
7194
+ }, "Notes"),
7209
7195
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7210
- id: 'links',
7211
- headers: 'Links',
7196
+ id: "links",
7197
+ headers: "Links",
7212
7198
  children: "Links"
7213
- }, 'Links')
7199
+ }, "Links")
7214
7200
  ]
7215
7201
  })
7216
7202
  }),
@@ -7220,19 +7206,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7220
7206
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7221
7207
  id: d.id,
7222
7208
  stackedTitle: "Application",
7223
- headers: 'Application',
7209
+ headers: "Application",
7224
7210
  children: d.application
7225
7211
  }, d.id),
7226
7212
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7227
7213
  id: d.id,
7228
7214
  stackedTitle: "Notes",
7229
- headers: 'Notes',
7215
+ headers: "Notes",
7230
7216
  children: d.notes
7231
7217
  }, `${d.id}-notes`),
7232
7218
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7233
7219
  id: d.id,
7234
7220
  stackedTitle: "Links",
7235
- headers: 'Links',
7221
+ headers: "Links",
7236
7222
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
7237
7223
  className: "dkan-newtab",
7238
7224
  href: d.link,
@@ -7260,44 +7246,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
7260
7246
 
7261
7247
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
7262
7248
  {
7263
- id: 'excel',
7264
- application: 'Microsoft Excel',
7265
- notes: 'Official size limitations for Microsoft Excel',
7266
- 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',
7267
- linkText: 'Excel Specifications and Limits',
7268
- screenReaderOnlyText: 'on microsoft.com'
7249
+ id: "excel",
7250
+ application: "Microsoft Excel",
7251
+ notes: "Official size limitations for Microsoft Excel",
7252
+ 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",
7253
+ linkText: "Excel Specifications and Limits",
7254
+ screenReaderOnlyText: "on microsoft.com"
7269
7255
  },
7270
7256
  {
7271
- id: 'access',
7272
- application: 'Microsoft Access',
7273
- notes: 'Official size limitations for Microsoft Access',
7274
- link: 'https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us',
7275
- linkText: 'Access 2016 Specifications',
7276
- screenReaderOnlyText: 'on microsoft.com'
7257
+ id: "access",
7258
+ application: "Microsoft Access",
7259
+ notes: "Official size limitations for Microsoft Access",
7260
+ link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
7261
+ linkText: "Access 2016 Specifications",
7262
+ screenReaderOnlyText: "on microsoft.com"
7277
7263
  },
7278
7264
  {
7279
- id: 'oracle-sql-developer',
7280
- application: 'Oracle SQL Developer',
7281
- notes: 'Oracle SQL Developer tool',
7282
- link: 'https://www.oracle.com/database/sqldeveloper/',
7283
- linkText: 'Oracle SQL Developer Overview',
7284
- screenReaderOnlyText: 'on oracle.com'
7265
+ id: "oracle-sql-developer",
7266
+ application: "Oracle SQL Developer",
7267
+ notes: "Oracle SQL Developer tool",
7268
+ link: "https://www.oracle.com/database/sqldeveloper/",
7269
+ linkText: "Oracle SQL Developer Overview",
7270
+ screenReaderOnlyText: "on oracle.com"
7285
7271
  },
7286
7272
  {
7287
- id: 'oracle-database',
7288
- application: 'Oracle Database',
7289
- notes: 'Oracle Database official size limitations',
7290
- link: 'https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915',
7291
- linkText: 'Oracle Physical Database Limits',
7292
- screenReaderOnlyText: 'on oracle.com'
7273
+ id: "oracle-database",
7274
+ application: "Oracle Database",
7275
+ notes: "Oracle Database official size limitations",
7276
+ link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
7277
+ linkText: "Oracle Physical Database Limits",
7278
+ screenReaderOnlyText: "on oracle.com"
7293
7279
  },
7294
7280
  {
7295
- id: 'oracle-sql-client-tools',
7296
- application: 'Oracle SQL Client Tools',
7297
- notes: 'Oracle SQL Client Tools',
7298
- link: 'https://www.oracle.com/database/technologies/oracle-database-software-downloads.html',
7299
- linkText: 'Oracle SQL Client',
7300
- screenReaderOnlyText: 'on oracle.com'
7281
+ id: "oracle-sql-client-tools",
7282
+ application: "Oracle SQL Client Tools",
7283
+ notes: "Oracle SQL Client Tools",
7284
+ link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
7285
+ linkText: "Oracle SQL Client",
7286
+ screenReaderOnlyText: "on oracle.com"
7301
7287
  }
7302
7288
  ];
7303
7289
 
@@ -7325,7 +7311,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7325
7311
  }),
7326
7312
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
7327
7313
  heading: "Notice",
7328
- className: 'ds-u-margin-top--6',
7314
+ className: "ds-u-margin-top--6",
7329
7315
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
7330
7316
  className: "ds-c-alert__text",
7331
7317
  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."
@@ -7334,16 +7320,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7334
7320
  ]
7335
7321
  }),
7336
7322
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7337
- className: 'ds-u-margin-top--4 ds-l-row',
7323
+ className: "ds-u-margin-top--4 ds-l-row",
7338
7324
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7339
- className: 'ds-l-col--12',
7325
+ className: "ds-l-col--12",
7340
7326
  children: [
7341
7327
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
7342
7328
  className: "ds-text-heading--2xl ds-text-heading--2xl",
7343
7329
  children: "Documentation by Application"
7344
7330
  }),
7345
7331
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7346
- className: 'ds-u-margin-top--4',
7332
+ className: "ds-u-margin-top--4",
7347
7333
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
7348
7334
  data: documentationList
7349
7335
  })
@@ -7371,7 +7357,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7371
7357
  const options = {
7372
7358
  conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
7373
7359
  property: column,
7374
- operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
7360
+ operator: operator === "is" ? "=" : operator === "is not" ? "<>" : operator === "or" ? "in" : operator,
7375
7361
  ...rest
7376
7362
  })) : []
7377
7363
  };
@@ -7379,13 +7365,13 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7379
7365
  let distribution = {};
7380
7366
  let distributions = dataset.distribution ? dataset.distribution : [];
7381
7367
  if (distributions.length) distribution = distributions[distributionIndex];
7382
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7368
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7383
7369
  ...options,
7384
7370
  limit: defaultPageSize
7385
7371
  });
7386
7372
  (0, $hgUW1$useEffect)(()=>{
7387
7373
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
7388
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
7374
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
7389
7375
  }, [
7390
7376
  distribution
7391
7377
  ]);
@@ -7435,7 +7421,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7435
7421
 
7436
7422
 
7437
7423
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
7438
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7424
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7439
7425
  const newDate = new Date(condition.value);
7440
7426
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
7441
7427
  }
@@ -7452,9 +7438,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7452
7438
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
7453
7439
  (0, $hgUW1$useEffect)(()=>{
7454
7440
  if (property !== condition.property) {
7455
- if (property) update(index, 'property', property);
7456
- else update(index, 'property', '');
7457
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7441
+ if (property) update(index, "property", property);
7442
+ else update(index, "property", "");
7443
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7458
7444
  if (!value) setValue(startDate.toJSON().slice(0, 10));
7459
7445
  }
7460
7446
  }
@@ -7468,16 +7454,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7468
7454
  ]);
7469
7455
  (0, $hgUW1$useEffect)(()=>{
7470
7456
  if (operator !== condition.operator) {
7471
- if (operator) update(index, 'operator', operator);
7472
- else update(index, 'operator', '');
7457
+ if (operator) update(index, "operator", operator);
7458
+ else update(index, "operator", "");
7473
7459
  }
7474
7460
  }, [
7475
7461
  operator
7476
7462
  ]);
7477
7463
  (0, $hgUW1$useEffect)(()=>{
7478
7464
  if (value !== condition.value) {
7479
- if (value) update(index, 'value', value);
7480
- else update(index, 'value', '');
7465
+ if (value) update(index, "value", value);
7466
+ else update(index, "value", "");
7481
7467
  }
7482
7468
  }, [
7483
7469
  value
@@ -7501,7 +7487,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7501
7487
  onChange: (e)=>setOperator(e.target.value),
7502
7488
  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"
7503
7489
  }),
7504
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7490
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7505
7491
  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",
7506
7492
  children: [
7507
7493
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -7591,12 +7577,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
7591
7577
  className: "ds-u-font-weight--bold",
7592
7578
  children: description
7593
7579
  }),
7594
- ' ',
7580
+ " ",
7595
7581
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7596
7582
  className: "ds-u-font-weight--normal",
7597
7583
  children: operator.label.toUpperCase()
7598
7584
  }),
7599
- ' ',
7585
+ " ",
7600
7586
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7601
7587
  className: "ds-u-color--success",
7602
7588
  children: formattedText
@@ -7623,19 +7609,19 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
7623
7609
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
7624
7610
  let cond = condition;
7625
7611
  delete cond.key;
7626
- if (cond.operator === '=' || cond.operator === '<>') {
7612
+ if (cond.operator === "=" || cond.operator === "<>") {
7627
7613
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7628
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
7614
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
7629
7615
  }
7630
- if (cond.operator.toLowerCase() === 'like') {
7616
+ if (cond.operator.toLowerCase() === "like") {
7631
7617
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7632
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
7618
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
7633
7619
  cond.value = `%${cleanedValue}%`;
7634
7620
  }
7635
- if (cond.operator.toLowerCase() === 'in') {
7636
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
7621
+ if (cond.operator.toLowerCase() === "in") {
7622
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
7637
7623
  }
7638
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
7624
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
7639
7625
  return cond;
7640
7626
  }
7641
7627
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -7655,7 +7641,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7655
7641
  ...queryConditions,
7656
7642
  {
7657
7643
  property: fields[0],
7658
- value: '',
7644
+ value: "",
7659
7645
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
7660
7646
  key: Date.now()
7661
7647
  }
@@ -7695,7 +7681,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7695
7681
  encodeValuesOnly: true,
7696
7682
  addQueryPrefix: true
7697
7683
  });
7698
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
7684
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
7699
7685
  };
7700
7686
  const updateCondition = (index, key, value)=>{
7701
7687
  let newConditions = [
@@ -7768,7 +7754,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
7768
7754
 
7769
7755
 
7770
7756
  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 })=>{
7771
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
7757
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
7772
7758
  let apiDocs = (0, $hgUW1$useRef)();
7773
7759
  let distribution = {};
7774
7760
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -7780,7 +7766,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7780
7766
  } : {
7781
7767
  conditions: []
7782
7768
  };
7783
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7769
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7784
7770
  ...options,
7785
7771
  limit: 25
7786
7772
  });
@@ -7794,7 +7780,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7794
7780
  }, {
7795
7781
  encode: true
7796
7782
  })}&format=csv`;
7797
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
7783
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
7798
7784
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
7799
7785
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7800
7786
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -7803,7 +7789,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7803
7789
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
7804
7790
  children: [
7805
7791
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7806
- className: 'ds-l-md-col--9',
7792
+ className: "ds-l-md-col--9",
7807
7793
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
7808
7794
  to: `/dataset/${id}`,
7809
7795
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -7814,14 +7800,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7814
7800
  })
7815
7801
  }),
7816
7802
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7817
- className: 'ds-l-md-col--9',
7803
+ className: "ds-l-md-col--9",
7818
7804
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
7819
7805
  className: "ds-text-heading--3xl",
7820
7806
  children: customTitle ? customTitle : pageTitle
7821
7807
  })
7822
7808
  }),
7823
7809
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7824
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
7810
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
7825
7811
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
7826
7812
  className: "ds-u-margin--0",
7827
7813
  children: [
@@ -7833,7 +7819,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7833
7819
  })
7834
7820
  }),
7835
7821
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7836
- className: 'ds-l-md-col--9',
7822
+ className: "ds-l-md-col--9",
7837
7823
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
7838
7824
  distribution: distribution,
7839
7825
  dataset: dataset,
@@ -7843,13 +7829,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7843
7829
  })
7844
7830
  }),
7845
7831
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7846
- className: 'ds-l-md-col--12',
7832
+ className: "ds-l-md-col--12",
7847
7833
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
7848
7834
  resource: resource,
7849
7835
  id: distribution.identifier,
7850
7836
  customColumns: customColumns,
7851
7837
  setOffset: resource.setOffset
7852
- }) : ''
7838
+ }) : ""
7853
7839
  }),
7854
7840
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
7855
7841
  value: {
@@ -7860,7 +7846,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7860
7846
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
7861
7847
  },
7862
7848
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7863
- className: 'ds-l-md-col--12',
7849
+ className: "ds-l-md-col--12",
7864
7850
  children: [
7865
7851
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
7866
7852
  includeDensity: true,
@@ -7882,14 +7868,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7882
7868
  ]
7883
7869
  })
7884
7870
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7885
- className: 'ds-l-md-col--12',
7871
+ className: "ds-l-md-col--12",
7886
7872
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
7887
7873
  role: "status",
7888
7874
  "aria-valuetext": "Resource loading"
7889
7875
  })
7890
7876
  }),
7891
7877
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7892
- className: 'ds-l-md-col--12',
7878
+ className: "ds-l-md-col--12",
7893
7879
  ref: apiDocs,
7894
7880
  children: [
7895
7881
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -7898,7 +7884,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7898
7884
  }),
7899
7885
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
7900
7886
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
7901
- docExpansion: 'list',
7887
+ docExpansion: "list",
7902
7888
  defaultModelsExpandDepth: -1
7903
7889
  })
7904
7890
  ]
@@ -7917,7 +7903,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
7917
7903
  const [ready, setReady] = (0, $hgUW1$useState)(false);
7918
7904
  const [error, setError] = (0, $hgUW1$useState)(false);
7919
7905
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
7920
- const distIndex = dist_id === 'data' ? 0 : dist_id;
7906
+ const distIndex = dist_id === "data" ? 0 : dist_id;
7921
7907
  (0, $hgUW1$useEffect)(()=>{
7922
7908
  if (dataset.error) setError(true);
7923
7909
  if (dataset.distribution && dataset.distribution.length) {