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

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