@civicactions/cmsds-open-data-components 4.0.15-alpha.1 → 4.0.16-alpha.0

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
  }
@@ -513,11 +513,11 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
513
513
  function handleFocusOut(event) {
514
514
  if (currentMenu && !currentMenu.contains(event.relatedTarget)) setIsExpanded(false);
515
515
  }
516
- document.addEventListener("mousedown", handleClickOutside);
517
- currentMenu?.addEventListener("focusout", handleFocusOut);
516
+ document.addEventListener('mousedown', handleClickOutside);
517
+ currentMenu?.addEventListener('focusout', handleFocusOut);
518
518
  return ()=>{
519
- document.removeEventListener("mousedown", handleClickOutside);
520
- if (currentMenu) currentMenu.removeEventListener("focusout", handleFocusOut);
519
+ document.removeEventListener('mousedown', handleClickOutside);
520
+ if (currentMenu) currentMenu.removeEventListener('focusout', handleFocusOut);
521
521
  };
522
522
  }, [
523
523
  isExpanded
@@ -539,7 +539,7 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
539
539
  }
540
540
  }
541
541
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
542
- className: `dkan-c-nav-submenu has-submenu${isExpanded ? " open" : ""}`,
542
+ className: `dkan-c-nav-submenu has-submenu${isExpanded ? ' open' : ''}`,
543
543
  ref: menu,
544
544
  children: [
545
545
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
@@ -589,7 +589,7 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
589
589
 
590
590
  const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
591
591
  switch(props.id){
592
- case "overview":
592
+ case 'overview':
593
593
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
594
594
  width: "16px",
595
595
  height: "16px",
@@ -632,7 +632,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
632
632
  })
633
633
  ]
634
634
  });
635
- case "data-table":
635
+ case 'data-table':
636
636
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
637
637
  width: "16px",
638
638
  height: "12px",
@@ -665,7 +665,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
665
665
  })
666
666
  ]
667
667
  });
668
- case "api":
668
+ case 'api':
669
669
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
670
670
  width: "16px",
671
671
  height: "13px",
@@ -698,7 +698,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
698
698
  })
699
699
  ]
700
700
  });
701
- case "download":
701
+ case 'download':
702
702
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
703
703
  width: "16px",
704
704
  height: "16px",
@@ -728,7 +728,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
728
728
  })
729
729
  ]
730
730
  });
731
- case "data-dictionary":
731
+ case 'data-dictionary':
732
732
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
733
733
  width: "14px",
734
734
  height: "16px",
@@ -829,14 +829,14 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
829
829
 
830
830
 
831
831
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
832
- year: "numeric",
833
- month: "long",
834
- day: "numeric",
835
- timeZone: "UTC"
832
+ year: 'numeric',
833
+ month: 'long',
834
+ day: 'numeric',
835
+ timeZone: 'UTC'
836
836
  } })=>{
837
837
  const rawDate = new Date(date);
838
- let modifiedDate = "";
839
- if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
838
+ let modifiedDate = '';
839
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString('en-US', options);
840
840
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
841
841
  children: modifiedDate
842
842
  });
@@ -848,13 +848,13 @@ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$Transformed
848
848
 
849
849
 
850
850
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
851
- if (!textString) return "";
851
+ if (!textString) return '';
852
852
  let cleanedText = textString;
853
- if (cleanedText.split("</p>").length > 1) cleanedText = cleanedText.split("</p>")[0];
854
- if (cleanedText.split("<br/>").length > 1) cleanedText = cleanedText.split("<br/>")[0];
853
+ if (cleanedText.split('</p>').length > 1) cleanedText = cleanedText.split('</p>')[0];
854
+ if (cleanedText.split('<br/>').length > 1) cleanedText = cleanedText.split('<br/>')[0];
855
855
  cleanedText = (0, $hgUW1$lodashtruncate)(cleanedText, {
856
- "length": textLength,
857
- "separator": " "
856
+ 'length': textLength,
857
+ 'separator': ' '
858
858
  });
859
859
  return (0, $hgUW1$dompurify).sanitize(cleanedText, {
860
860
  ALLOWED_TAGS: []
@@ -872,9 +872,9 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
872
872
  const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
873
873
  const { type: type, date: date, boldLabel: boldLabel = false, displayTooltips: displayTooltips = true } = props;
874
874
  const dateText = {
875
- modified: "Last Modified",
876
- released: "Released",
877
- refresh: "Planned Update"
875
+ modified: 'Last Modified',
876
+ released: 'Released',
877
+ refresh: 'Planned Update'
878
878
  };
879
879
  const tooltipContent = {
880
880
  modified: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -911,7 +911,7 @@ const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
911
911
  })
912
912
  };
913
913
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
914
- className: `dataset-date-item${boldLabel ? " bold-label" : ""}`,
914
+ className: `dataset-date-item${boldLabel ? ' bold-label' : ''}`,
915
915
  children: [
916
916
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
917
917
  className: "dataset-data-item-label",
@@ -981,7 +981,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
981
981
  if (dist && dist.data) {
982
982
  if (dist.data.format) return dist.data.format.toLowerCase();
983
983
  if (dist.data.mediaType) {
984
- const mediaType = dist.data.mediaType.split("/");
984
+ const mediaType = dist.data.mediaType.split('/');
985
985
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
986
986
  }
987
987
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -991,7 +991,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
991
991
  }
992
992
  }
993
993
  }
994
- return "";
994
+ return '';
995
995
  }
996
996
 
997
997
 
@@ -1001,20 +1001,20 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1001
1001
  });
1002
1002
  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;
1003
1003
  const location = (0, $hgUW1$useLocation)();
1004
- let linkContainerClasses = "ds-u-margin-bottom--2";
1005
- if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1006
- else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1007
- let linkClasses = "ds-u-display--block ds-u-text-align--left";
1004
+ let linkContainerClasses = 'ds-u-margin-bottom--2';
1005
+ if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1006
+ else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1007
+ let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1008
1008
  if (desktop) {
1009
- linkContainerClasses = "ds-u-padding-x--0";
1010
- linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1009
+ linkContainerClasses = 'ds-u-padding-x--0';
1010
+ linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1011
1011
  }
1012
1012
  let themes;
1013
1013
  if (theme && showTopics) themes = /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
1014
1014
  className: "theme-list item-theme",
1015
1015
  children: theme.map((topic, index)=>{
1016
- const title = topic || "Unknown Topic";
1017
- const prefix = "topics";
1016
+ const title = topic || 'Unknown Topic';
1017
+ const prefix = 'topics';
1018
1018
  // Use the provided slug or fallback to a simple slug generation
1019
1019
  const slug = topicSlugs?.[title];
1020
1020
  const link = `/${prefix}/${slug}`;
@@ -1025,7 +1025,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1025
1025
  state: {
1026
1026
  fromUrl: location.pathname,
1027
1027
  fromTitle: false,
1028
- fromSearchList: location.pathname.includes("search")
1028
+ fromSearchList: location.pathname.includes('search')
1029
1029
  },
1030
1030
  children: title
1031
1031
  })
@@ -1066,7 +1066,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1066
1066
  };
1067
1067
  const dataDictionaryExists = ()=>{
1068
1068
  if (distribution && "data" in distribution) {
1069
- if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === "application/vnd.tableschema+json";
1069
+ if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === 'application/vnd.tableschema+json';
1070
1070
  }
1071
1071
  return false;
1072
1072
  };
@@ -1099,7 +1099,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1099
1099
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1100
1100
  className: "dc-c-search-list-item ds-u-padding-top--3",
1101
1101
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1102
- className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1102
+ className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1103
1103
  children: [
1104
1104
  themes,
1105
1105
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -1107,7 +1107,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1107
1107
  children: [
1108
1108
  !showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1109
1109
  id: `dataset-${identifier}-updated-date`,
1110
- className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1110
+ className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? 'ds-u-padding-top--2' : 'ds-u-padding-top--0'}`,
1111
1111
  children: [
1112
1112
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1113
1113
  children: "Updated:"
@@ -1136,13 +1136,13 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1136
1136
  (0, $1a2bf34e2a8f6b80$export$59a943b34a82e690)(description),
1137
1137
  description.length > 240 ? /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1138
1138
  children: [
1139
- " ",
1139
+ ' ',
1140
1140
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1141
1141
  to: `/dataset/${identifier}`,
1142
1142
  children: "See more"
1143
1143
  })
1144
1144
  ]
1145
- }) : ""
1145
+ }) : ''
1146
1146
  ]
1147
1147
  })
1148
1148
  }),
@@ -1170,14 +1170,14 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1170
1170
  "Download"
1171
1171
  ]
1172
1172
  })
1173
- }) : "",
1173
+ }) : '',
1174
1174
  /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
1175
- 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" : ""}`,
1175
+ 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' : ''}`,
1176
1176
  children: [
1177
1177
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1178
1178
  className: linkContainerClasses,
1179
1179
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1180
- className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? "" : " dkan-disabled-link-wrapper"}`,
1180
+ className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? '' : ' dkan-disabled-link-wrapper'}`,
1181
1181
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataTableLink, {})
1182
1182
  })
1183
1183
  }),
@@ -1199,10 +1199,10 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1199
1199
  dataDictionaryLinks ? /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1200
1200
  className: linkContainerClasses,
1201
1201
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1202
- className: `${linkClasses}${dataDictionaryExists() ? "" : " dkan-disabled-link-wrapper"}`,
1202
+ className: `${linkClasses}${dataDictionaryExists() ? '' : ' dkan-disabled-link-wrapper'}`,
1203
1203
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataDictionaryLink, {})
1204
1204
  })
1205
- }) : "",
1205
+ }) : '',
1206
1206
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1207
1207
  className: linkContainerClasses,
1208
1208
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1302,7 +1302,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
1302
1302
  size: "big",
1303
1303
  type: "submit",
1304
1304
  style: {
1305
- width: "70px"
1305
+ width: '70px'
1306
1306
  },
1307
1307
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1308
1308
  className: "fas fa-search small-text"
@@ -1319,7 +1319,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
1319
1319
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
1320
1320
  children: [
1321
1321
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1322
- children: text ? text : "Search"
1322
+ children: text ? text : 'Search'
1323
1323
  }),
1324
1324
  ` `,
1325
1325
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1404,12 +1404,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
1404
1404
  fulltext: fulltext ? fulltext : undefined,
1405
1405
  ...selectedFacets,
1406
1406
  sort: sort ? sort : undefined,
1407
- ["sort-order"]: sortOrder ? sortOrder : undefined,
1407
+ ['sort-order']: sortOrder ? sortOrder : undefined,
1408
1408
  page: page !== 1 ? page : undefined,
1409
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
1409
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
1410
1410
  };
1411
1411
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
1412
- arrayFormat: "comma",
1412
+ arrayFormat: 'comma',
1413
1413
  encode: false
1414
1414
  })}`);
1415
1415
  }
@@ -1421,31 +1421,30 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
1421
1421
  const $e873081a6e8f024e$export$1040147c129fdde9 = (query)=>{
1422
1422
  // Only allow letters, numbers, spaces, and empty string
1423
1423
  // A search containing any special character will be rejected
1424
- console.log("query", query);
1425
1424
  return /^[a-zA-Z0-9 ]*$/.test(query.trim());
1426
1425
  };
1427
1426
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1428
1427
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
1429
- defaultSort: "modified",
1430
- defaultOrder: "desc"
1431
- }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
1428
+ defaultSort: 'modified',
1429
+ defaultOrder: 'desc'
1430
+ }, pageTitle: pageTitle = 'Dataset Explorer', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
1432
1431
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
1433
1432
  const sortOptions = [
1434
1433
  {
1435
- label: "Newest",
1436
- value: "newest"
1434
+ label: 'Newest',
1435
+ value: 'newest'
1437
1436
  },
1438
1437
  {
1439
- label: "Oldest",
1440
- value: "oldest"
1438
+ label: 'Oldest',
1439
+ value: 'oldest'
1441
1440
  },
1442
1441
  {
1443
- label: "Title A-Z",
1444
- value: "titleAZ"
1442
+ label: 'Title A-Z',
1443
+ value: 'titleAZ'
1445
1444
  },
1446
1445
  {
1447
- label: "Title Z-A",
1448
- value: "titleZA"
1446
+ label: 'Title Z-A',
1447
+ value: 'titleZA'
1449
1448
  }
1450
1449
  ];
1451
1450
  const defaultSortBy = "";
@@ -1464,7 +1463,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1464
1463
  endingNumber: 0
1465
1464
  });
1466
1465
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
1467
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
1466
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
1468
1467
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
1469
1468
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
1470
1469
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -1473,7 +1472,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1473
1472
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
1474
1473
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
1475
1474
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
1476
- return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
1475
+ return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
1477
1476
  });
1478
1477
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
1479
1478
  theme: [],
@@ -1483,21 +1482,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1483
1482
  const setSortOptions = (value)=>{
1484
1483
  setSortDisplay(value);
1485
1484
  switch(value){
1486
- case "newest":
1487
- setSort("modified");
1488
- setSortOrder("desc");
1485
+ case 'newest':
1486
+ setSort('modified');
1487
+ setSortOrder('desc');
1489
1488
  break;
1490
- case "oldest":
1491
- setSort("modified");
1492
- setSortOrder("asc");
1489
+ case 'oldest':
1490
+ setSort('modified');
1491
+ setSortOrder('asc');
1493
1492
  break;
1494
- case "titleAZ":
1495
- setSort("title");
1496
- setSortOrder("asc");
1493
+ case 'titleAZ':
1494
+ setSort('title');
1495
+ setSortOrder('asc');
1497
1496
  break;
1498
- case "titleZA":
1499
- setSort("title");
1500
- setSortOrder("desc");
1497
+ case 'titleZA':
1498
+ setSort('title');
1499
+ setSortOrder('desc');
1501
1500
  break;
1502
1501
  }
1503
1502
  };
@@ -1505,12 +1504,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1505
1504
  const newFacets = {
1506
1505
  ...selectedFacets
1507
1506
  };
1508
- if (key === "theme") {
1507
+ if (key === 'theme') {
1509
1508
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
1510
1509
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
1511
1510
  else newFacets.theme.push(value);
1512
1511
  }
1513
- if (key === "keyword") {
1512
+ if (key === 'keyword') {
1514
1513
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
1515
1514
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
1516
1515
  else newFacets.keyword.push(value);
@@ -1524,7 +1523,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1524
1523
  });
1525
1524
  setSelectedFacets(newFacets);
1526
1525
  const url = new URL(window.location.href);
1527
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
1526
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
1528
1527
  }
1529
1528
  const pageSize = defaultPageSize;
1530
1529
  function resetFilters() {
@@ -1533,14 +1532,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1533
1532
  setSelectedFacets(defaultSelectedFacets);
1534
1533
  setPage(defaultPage);
1535
1534
  const url = new URL(window.location.href);
1536
- window.history.pushState({}, "", `${url.origin}${url.pathname}`);
1535
+ window.history.pushState({}, '', `${url.origin}${url.pathname}`);
1537
1536
  }
1538
1537
  function buildSearchParams(includePage) {
1539
1538
  let newParams = {};
1540
1539
  if (Number(page) !== 1 && includePage) newParams.page = page;
1541
1540
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
1542
1541
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
1543
- if (fulltext !== "") newParams.fulltext = fulltext;
1542
+ if (fulltext !== '') newParams.fulltext = fulltext;
1544
1543
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
1545
1544
  newParams[key] = selectedFacets[key];
1546
1545
  });
@@ -1553,9 +1552,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1553
1552
  fulltext: fulltext ? fulltext : undefined,
1554
1553
  ...selectedFacets,
1555
1554
  sort: sort ? sort : undefined,
1556
- ["sort-order"]: sortOrder ? sortOrder : undefined,
1555
+ ['sort-order']: sortOrder ? sortOrder : undefined,
1557
1556
  page: page !== 1 ? page : undefined,
1558
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
1557
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
1559
1558
  };
1560
1559
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
1561
1560
  queryKey: [
@@ -1564,7 +1563,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1564
1563
  ],
1565
1564
  queryFn: ()=>{
1566
1565
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
1567
- arrayFormat: "comma",
1566
+ arrayFormat: 'comma',
1568
1567
  encode: false
1569
1568
  })}`);
1570
1569
  }
@@ -1615,8 +1614,8 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1615
1614
  ]);
1616
1615
  (0, $hgUW1$useEffect)(()=>{
1617
1616
  // No results found
1618
- if (noResults) setAnnouncementText("No results found.");
1619
- else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
1617
+ if (noResults) setAnnouncementText('No results found.');
1618
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText('Could not connect to the API.');
1620
1619
  else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
1621
1620
  }, [
1622
1621
  data,
@@ -1677,11 +1676,11 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1677
1676
  className: "ds-c-field__before fas fa-search ds-u-display--none ds-u-sm-display--inline-block"
1678
1677
  }),
1679
1678
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
1680
- errorMessage: invalidSearch ? "No special characters allowed. Please enter a valid search term." : undefined,
1679
+ errorMessage: invalidSearch ? 'No special characters allowed. Please enter a valid search term.' : undefined,
1681
1680
  errorPlacement: "bottom",
1682
1681
  fieldClassName: "ds-u-margin--0",
1683
1682
  value: filterText,
1684
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
1683
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
1685
1684
  label: "Search datasets",
1686
1685
  labelClassName: "ds-u-visibility--screen-reader",
1687
1686
  placeholder: "Search datasets",
@@ -1744,7 +1743,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1744
1743
  "Showing ",
1745
1744
  currentResultNumbers.startingNumber,
1746
1745
  " -",
1747
- " ",
1746
+ ' ',
1748
1747
  currentResultNumbers.endingNumber,
1749
1748
  " of ",
1750
1749
  data.data.total,
@@ -1815,7 +1814,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1815
1814
  },
1816
1815
  renderHref: (page)=>{
1817
1816
  const searchParams = buildSearchParams(false);
1818
- const includeAnd = searchParams ? "&" : "";
1817
+ const includeAnd = searchParams ? '&' : '';
1819
1818
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
1820
1819
  }
1821
1820
  })
@@ -1836,7 +1835,7 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
1836
1835
  const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
1837
1836
  const { headingText: headingText = "Dataset Search" } = props;
1838
1837
  const navigate = (0, $hgUW1$useNavigate)();
1839
- const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
1838
+ const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)('');
1840
1839
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
1841
1840
  const [invalidSearch, setInvalidSearch] = (0, $hgUW1$useState)(false);
1842
1841
  function searchForDataset(e) {
@@ -1844,7 +1843,7 @@ const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
1844
1843
  if (window) {
1845
1844
  if ((0, $e873081a6e8f024e$export$1040147c129fdde9)(modalSearchTerm)) {
1846
1845
  setInvalidSearch(false);
1847
- if (window.location.pathname !== "/datasets") navigate(`/datasets?fulltext=${modalSearchTerm}`);
1846
+ if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
1848
1847
  else {
1849
1848
  window.location.search = `fulltext=${modalSearchTerm}`;
1850
1849
  setModalSearch(false);
@@ -1876,7 +1875,7 @@ const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
1876
1875
  },
1877
1876
  children: [
1878
1877
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
1879
- errorMessage: invalidSearch ? "No special characters allowed. Please enter a valid search term." : undefined,
1878
+ errorMessage: invalidSearch ? 'No special characters allowed. Please enter a valid search term.' : undefined,
1880
1879
  errorPlacement: "bottom",
1881
1880
  value: modalSearchTerm,
1882
1881
  fieldClassName: "ds-u-display--inline-block ds-u-margin--0",
@@ -1916,9 +1915,9 @@ const $b939b31651e82908$var$HeaderNav = (props)=>{
1916
1915
  const headerContext = (0, $hgUW1$react).useContext((0, $11500a65bd7d9cf1$export$2e2bcd8739ae039));
1917
1916
  const { links: links, topNavLinks: topNavLinks, wrapperClasses: wrapperClasses, searchInMobile: searchInMobile } = props;
1918
1917
  const navMenuOpenClass = `dkan-c-nav-menu--${headerContext.mobileMenuOpen ? "open" : "close"}`;
1919
- const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? "mobile" : "desktop"}`;
1920
- const linkClasses = "dkan-c-header--link ds-c-button ds-c-button--ghost";
1921
- const listClasses = "dkan-c-header--link-list ";
1918
+ const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? 'mobile' : 'desktop'}`;
1919
+ const linkClasses = 'dkan-c-header--link ds-c-button ds-c-button--ghost';
1920
+ const listClasses = 'dkan-c-header--link-list ';
1922
1921
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1923
1922
  className: `dkan-c-nav-menu ${wrapperClasses} ${navMenuOpenClass} ${isMobileClass}`,
1924
1923
  ref: headerContext.menuRef,
@@ -2088,8 +2087,8 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
2088
2087
  const { title: title, links: links, mobileMax: mobileMax } = props;
2089
2088
  const active = (0, $hgUW1$useLocation)().pathname;
2090
2089
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
2091
- const styleClasses = "dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2";
2092
- const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? "mobile" : "desktop"}`;
2090
+ const styleClasses = 'dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2';
2091
+ const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? 'mobile' : 'desktop'}`;
2093
2092
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2094
2093
  className: `dkan-c-sidebar-nav ${mobileClass}`,
2095
2094
  children: [
@@ -2103,7 +2102,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
2103
2102
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
2104
2103
  "aria-haspopup": "true",
2105
2104
  variation: "ghost",
2106
- "aria-expanded": `${menuOpen ? "true" : "false"}`,
2105
+ "aria-expanded": `${menuOpen ? 'true' : 'false'}`,
2107
2106
  onDark: true,
2108
2107
  onClick: ()=>setMenuOpen(!menuOpen),
2109
2108
  children: [
@@ -2112,7 +2111,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
2112
2111
  children: "Toggle menu"
2113
2112
  }),
2114
2113
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ArrowIcon), {
2115
- direction: menuOpen ? "up" : "down"
2114
+ direction: menuOpen ? 'up' : 'down'
2116
2115
  })
2117
2116
  ]
2118
2117
  })
@@ -2121,7 +2120,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
2121
2120
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2122
2121
  className: ``,
2123
2122
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
2124
- className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? "open" : "close"}`,
2123
+ className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? 'open' : 'close'}`,
2125
2124
  children: [
2126
2125
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2127
2126
  className: "ds-u-padding--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest",
@@ -2133,7 +2132,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
2133
2132
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
2134
2133
  className: "ds-u-padding-bottom--2",
2135
2134
  children: links.map(({ url: url, label: label })=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
2136
- className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? "active" : ""}`,
2135
+ className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? 'active' : ''}`,
2137
2136
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2138
2137
  className: "ds-u-display--flex ds-u-padding-y--1",
2139
2138
  children: [
@@ -2168,12 +2167,12 @@ const $b0968edc60d7d3a4$var$SidebarPage = (props)=>{
2168
2167
  query: `(max-width: ${mobileMaxWidth}px)`
2169
2168
  });
2170
2169
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2171
- className: `${mobileMax ? "a" : "ds-l-container"}`,
2170
+ className: `${mobileMax ? "a" : 'ds-l-container'}`,
2172
2171
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2173
- className: `${mobileMax ? "a" : "ds-l-row"}`,
2172
+ className: `${mobileMax ? "a" : 'ds-l-row'}`,
2174
2173
  children: [
2175
2174
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2176
- className: `${mobileMax ? "a" : "ds-l-col--4"}`,
2175
+ className: `${mobileMax ? 'a' : "ds-l-col--4"}`,
2177
2176
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $953b286f7778640e$export$2e2bcd8739ae039), {
2178
2177
  links: links,
2179
2178
  title: menuTitle,
@@ -2198,9 +2197,9 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
2198
2197
 
2199
2198
 
2200
2199
 
2201
- const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
2200
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = 'datasets', searchKey: searchKey = 'fulltext', textfieldLabel: textfieldLabel = 'Search for a dataset', searchButtonText: searchButtonText = 'Search' })=>{
2202
2201
  const navigate = (0, $hgUW1$useNavigate)();
2203
- const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
2202
+ const [searchValue, setSearchValue] = (0, $hgUW1$react).useState('');
2204
2203
  const [invalidSearch, setInvalidSearch] = (0, $hgUW1$useState)(false);
2205
2204
  function submitHero(e) {
2206
2205
  e.preventDefault();
@@ -2231,26 +2230,26 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
2231
2230
  onSubmit: (e)=>submitHero(e),
2232
2231
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2233
2232
  style: {
2234
- position: "relative"
2233
+ position: 'relative'
2235
2234
  },
2236
2235
  className: "ds-l-row ds-u-align-items--stretch ds-u-margin-y--4 ds-u-flex-wrap--nowrap",
2237
2236
  children: [
2238
2237
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2239
2238
  className: "ds-u-padding--0 ds-u-margin-right--1",
2240
2239
  style: {
2241
- flex: "1 1 100%",
2242
- maxWidth: "100%"
2240
+ flex: '1 1 100%',
2241
+ maxWidth: '100%'
2243
2242
  },
2244
2243
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
2245
- errorMessage: invalidSearch ? "No special characters allowed. Please enter a valid search term." : undefined,
2244
+ errorMessage: invalidSearch ? 'No special characters allowed. Please enter a valid search term.' : undefined,
2246
2245
  errorPlacement: "bottom",
2247
2246
  label: textfieldLabel,
2248
2247
  labelClassName: "ds-u-visibility--screen-reader",
2249
2248
  name: "search_text_input",
2250
2249
  style: {
2251
- maxWidth: "none",
2252
- height: "61px",
2253
- margin: "0 20px 0 0"
2250
+ maxWidth: 'none',
2251
+ height: '61px',
2252
+ margin: '0 20px 0 0'
2254
2253
  },
2255
2254
  onChange: (e)=>{
2256
2255
  setInvalidSearch(false);
@@ -2295,25 +2294,25 @@ const $c068004d499082cc$var$DatasetListItem = (props)=>{
2295
2294
  minWidth: 1024
2296
2295
  });
2297
2296
  const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
2298
- let linkContainerClasses = "ds-u-margin-bottom--2";
2299
- if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
2300
- else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
2301
- let linkClasses = "ds-u-display--block ds-u-text-align--left";
2297
+ let linkContainerClasses = 'ds-u-margin-bottom--2';
2298
+ if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
2299
+ else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
2300
+ let linkClasses = 'ds-u-display--block ds-u-text-align--left';
2302
2301
  if (desktop) {
2303
- linkContainerClasses = "ds-u-padding-x--0";
2304
- linkClasses += " ds-l-col--4 ds-l-md-col--auto";
2302
+ linkContainerClasses = 'ds-u-padding-x--0';
2303
+ linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
2305
2304
  }
2306
2305
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
2307
2306
  className: "dc-c-list-item ds-u-padding-top--4",
2308
2307
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2309
- className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
2308
+ className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
2310
2309
  children: [
2311
2310
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2312
2311
  className: "ds-l-row ds-u-align-items--start",
2313
2312
  children: [
2314
2313
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
2315
2314
  id: `dataset-${identifier}-updated-date`,
2316
- 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"}`,
2315
+ 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'}`,
2317
2316
  children: [
2318
2317
  "Updated ",
2319
2318
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
@@ -2392,7 +2391,7 @@ var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocument
2392
2391
 
2393
2392
 
2394
2393
 
2395
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
2394
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = 'data-table-results' })=>{
2396
2395
  const numTotalRows = totalRows;
2397
2396
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
2398
2397
  className: className,
@@ -2410,18 +2409,18 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
2410
2409
  className: className,
2411
2410
  children: [
2412
2411
  "Displaying",
2413
- " ",
2412
+ ' ',
2414
2413
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2415
2414
  className: "ds-u-font-weight--bold",
2416
2415
  children: `${startTotal().toLocaleString()} - ${ofTotal().toLocaleString()}`
2417
2416
  }),
2418
- " ",
2417
+ ' ',
2419
2418
  "of ",
2420
2419
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2421
2420
  className: "ds-u-font-weight--bold",
2422
2421
  children: `${numTotalRows.toLocaleString()}`
2423
2422
  }),
2424
- " ",
2423
+ ' ',
2425
2424
  "rows"
2426
2425
  ]
2427
2426
  });
@@ -2447,16 +2446,16 @@ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePaddi
2447
2446
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
2448
2447
  options: [
2449
2448
  {
2450
- label: "Tight",
2451
- value: "ds-u-padding-y--0"
2449
+ label: 'Tight',
2450
+ value: 'ds-u-padding-y--0'
2452
2451
  },
2453
2452
  {
2454
- label: "Normal",
2455
- value: "ds-u-padding-y--1"
2453
+ label: 'Normal',
2454
+ value: 'ds-u-padding-y--1'
2456
2455
  },
2457
2456
  {
2458
- label: "Expanded",
2459
- value: "ds-u-padding-y--2"
2457
+ label: 'Expanded',
2458
+ value: 'ds-u-padding-y--2'
2460
2459
  }
2461
2460
  ],
2462
2461
  label: "Display density:",
@@ -2699,7 +2698,7 @@ function $aa4450dcbeef3ac0$export$385a5aba38cc3325(sortArray) {
2699
2698
  sortArray.forEach((s)=>{
2700
2699
  return newQuery.push({
2701
2700
  property: s.id,
2702
- order: s.desc ? "desc" : "asc"
2701
+ order: s.desc ? 'desc' : 'asc'
2703
2702
  });
2704
2703
  });
2705
2704
  return newQuery;
@@ -2737,108 +2736,129 @@ function $7264a673914aa746$export$e284ae5d89467c8f(date) {
2737
2736
  }
2738
2737
  function $7264a673914aa746$export$6b5e57d20078142b(value, operator) {
2739
2738
  let newValue = value;
2740
- if (Array.isArray(newValue)) newValue = newValue.join(",");
2739
+ if (Array.isArray(newValue)) newValue = newValue.join(',');
2741
2740
  // return newValue.replace(/(^\%+|\%+$)/gm, '');
2742
2741
  return newValue;
2743
2742
  }
2744
2743
  const $7264a673914aa746$export$5f89a5ae87bc48e1 = [
2745
2744
  {
2746
- label: "Is",
2747
- value: "="
2745
+ label: 'Is',
2746
+ value: '='
2748
2747
  },
2749
2748
  {
2750
- label: "Starts With",
2751
- value: "starts with"
2749
+ label: 'Starts With',
2750
+ value: 'starts with'
2752
2751
  },
2753
2752
  {
2754
- label: "Contains",
2755
- value: "contains"
2753
+ label: 'Contains',
2754
+ value: 'contains'
2756
2755
  },
2757
2756
  {
2758
- label: "Is Not",
2759
- value: "<>"
2757
+ label: 'Is Not',
2758
+ value: '<>'
2760
2759
  },
2761
2760
  {
2762
- label: "Or",
2763
- value: "in"
2761
+ label: 'Or',
2762
+ value: 'in'
2764
2763
  },
2765
2764
  {
2766
- label: "Is",
2767
- value: "="
2765
+ label: 'Is',
2766
+ value: '='
2768
2767
  },
2769
2768
  {
2770
- label: "Is Not",
2771
- value: "<>"
2769
+ label: 'Is Not',
2770
+ value: '<>'
2772
2771
  },
2773
2772
  {
2774
- label: "Greater Than",
2775
- value: ">"
2773
+ label: 'Greater Than',
2774
+ value: '>'
2776
2775
  },
2777
2776
  {
2778
- label: "Less Than",
2779
- value: "<"
2777
+ label: 'Less Than',
2778
+ value: '<'
2779
+ },
2780
+ {
2781
+ label: 'Is Empty',
2782
+ value: 'is_empty'
2783
+ },
2784
+ {
2785
+ label: 'Not Empty',
2786
+ value: 'not_empty'
2780
2787
  }
2781
2788
  ];
2782
2789
  function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
2783
2790
  const operator = $7264a673914aa746$export$5f89a5ae87bc48e1.find((op)=>op.value === operatorValue);
2784
2791
  return operator ? operator.label : operatorValue; // Return original value if not found
2785
2792
  }
2786
- function $7264a673914aa746$export$2b9377795161999(type) {
2793
+ function $7264a673914aa746$export$2b9377795161999(type, enableEmptyFilters = false) {
2794
+ const emptyOptions = enableEmptyFilters ? [
2795
+ {
2796
+ label: 'Is Empty',
2797
+ value: 'is_empty'
2798
+ },
2799
+ {
2800
+ label: 'Not Empty',
2801
+ value: 'not_empty'
2802
+ }
2803
+ ] : [];
2787
2804
  switch(type){
2788
- case "text":
2789
- case "string":
2805
+ case 'text':
2806
+ case 'string':
2790
2807
  return [
2791
2808
  {
2792
- label: "Is",
2793
- value: "="
2809
+ label: 'Is',
2810
+ value: '='
2794
2811
  },
2795
2812
  {
2796
- label: "Starts With",
2797
- value: "starts with"
2813
+ label: 'Starts With',
2814
+ value: 'starts with'
2798
2815
  },
2799
2816
  {
2800
- label: "Contains",
2801
- value: "contains"
2817
+ label: 'Contains',
2818
+ value: 'contains'
2802
2819
  },
2803
2820
  {
2804
- label: "Is Not",
2805
- value: "<>"
2821
+ label: 'Is Not',
2822
+ value: '<>'
2806
2823
  },
2807
2824
  {
2808
- label: "Or",
2809
- value: "in"
2810
- }
2825
+ label: 'Or',
2826
+ value: 'in'
2827
+ },
2828
+ ...emptyOptions
2811
2829
  ];
2812
- case "date":
2830
+ case 'date':
2813
2831
  return [
2814
2832
  {
2815
- label: "Is",
2816
- value: "="
2833
+ label: 'Is',
2834
+ value: '='
2817
2835
  },
2818
2836
  {
2819
- label: "Is Not",
2820
- value: "<>"
2837
+ label: 'Is Not',
2838
+ value: '<>'
2821
2839
  },
2822
2840
  {
2823
- label: "Greater Than",
2824
- value: ">"
2841
+ label: 'Greater Than',
2842
+ value: '>'
2825
2843
  },
2826
2844
  {
2827
- label: "Less Than",
2828
- value: "<"
2829
- }
2845
+ label: 'Less Than',
2846
+ value: '<'
2847
+ },
2848
+ ...emptyOptions
2830
2849
  ];
2831
2850
  default:
2832
2851
  // These 2 should be safe for all data types
2833
2852
  return [
2834
2853
  {
2835
- label: "Is",
2836
- value: "="
2854
+ label: 'Is',
2855
+ value: '='
2837
2856
  },
2838
2857
  {
2839
- label: "Is Not",
2840
- value: "<>"
2841
- }
2858
+ label: 'Is Not',
2859
+ value: '<>'
2860
+ },
2861
+ ...emptyOptions
2842
2862
  ];
2843
2863
  }
2844
2864
  }
@@ -2854,7 +2874,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
2854
2874
 
2855
2875
 
2856
2876
  const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, id: id })=>{
2857
- const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
2877
+ const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)('');
2858
2878
  // Fix for JSX in Data Dictionary Title header cell
2859
2879
  const ariaLabel = header.id === "titleResizable" ? "Title" : header.column.columnDef.header;
2860
2880
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
@@ -2863,9 +2883,9 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2863
2883
  width: header.getSize()
2864
2884
  },
2865
2885
  id: id,
2866
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2886
+ title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : '',
2867
2887
  className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2868
- "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2888
+ "aria-sort": header.column.getIsSorted() === 'asc' ? 'ascending' : header.column.getIsSorted() === 'desc' ? 'descending' : 'none',
2869
2889
  children: [
2870
2890
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2871
2891
  className: "ds-u-display--flex",
@@ -2877,7 +2897,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2877
2897
  }),
2878
2898
  sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2879
2899
  onClick: header.column.getToggleSortingHandler(),
2880
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
2900
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
2881
2901
  "aria-label": `${ariaLabel} sort order`
2882
2902
  })
2883
2903
  ]
@@ -2885,24 +2905,24 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2885
2905
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2886
2906
  onMouseDown: header.getResizeHandler(),
2887
2907
  onTouchStart: header.getResizeHandler(),
2888
- className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
2908
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? 'isResizing' : ''}`,
2889
2909
  "aria-label": `Resize ${ariaLabel} column`,
2890
2910
  onKeyDown: (e)=>{
2891
2911
  const columnSizingObject = table.getState().columnSizing;
2892
2912
  switch(e.key){
2893
- case "Enter":
2894
- case " ":
2913
+ case 'Enter':
2914
+ case ' ':
2895
2915
  e.preventDefault();
2896
2916
  e.stopPropagation();
2897
2917
  if (columnResizing) // end resizing
2898
- setColumnResizing("");
2918
+ setColumnResizing('');
2899
2919
  else // start resizing
2900
2920
  setColumnResizing(header.column.id);
2901
2921
  break;
2902
- case "Escape":
2903
- if (columnResizing) setColumnResizing("");
2922
+ case 'Escape':
2923
+ if (columnResizing) setColumnResizing('');
2904
2924
  break;
2905
- case "ArrowRight":
2925
+ case 'ArrowRight':
2906
2926
  e.preventDefault();
2907
2927
  e.stopPropagation();
2908
2928
  if (columnResizing) {
@@ -2910,7 +2930,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2910
2930
  table.setColumnSizing(columnSizingObject);
2911
2931
  }
2912
2932
  break;
2913
- case "ArrowLeft":
2933
+ case 'ArrowLeft':
2914
2934
  e.preventDefault();
2915
2935
  e.stopPropagation();
2916
2936
  if (columnResizing) {
@@ -2921,7 +2941,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2921
2941
  }
2922
2942
  },
2923
2943
  onBlur: ()=>{
2924
- setColumnResizing("");
2944
+ setColumnResizing('');
2925
2945
  }
2926
2946
  })
2927
2947
  ]
@@ -2961,7 +2981,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2961
2981
  },
2962
2982
  title: header.column.columnDef.header,
2963
2983
  className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2964
- "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2984
+ "aria-sort": header.column.getIsSorted() === 'asc' ? 'ascending' : header.column.getIsSorted() === 'desc' ? 'descending' : 'none',
2965
2985
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2966
2986
  onClick: header.column.getToggleSortingHandler(),
2967
2987
  className: "ds-u-display--flex",
@@ -2970,7 +2990,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2970
2990
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2971
2991
  }),
2972
2992
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2973
- className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
2993
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ''
2974
2994
  })
2975
2995
  ]
2976
2996
  })
@@ -3001,7 +3021,7 @@ const $ee0d4d4f34048447$var$DataTableActionsContextDefaults = {
3001
3021
  setColumnVisibility: ()=>{},
3002
3022
  page: 1,
3003
3023
  setPage: ()=>{},
3004
- tableDensity: "normal",
3024
+ tableDensity: 'normal',
3005
3025
  setTableDensity: ()=>{}
3006
3026
  };
3007
3027
  const $ee0d4d4f34048447$export$f814ea079e65d8fe = /*#__PURE__*/ (0, $hgUW1$createContext)($ee0d4d4f34048447$var$DataTableActionsContextDefaults);
@@ -3020,7 +3040,7 @@ const $ee0d4d4f34048447$var$DataTableActionsProvider = ({ children: children })=
3020
3040
  if (datasetTableControls && localStorageData) return localStorageData.tableColumnVisibility;
3021
3041
  else return {};
3022
3042
  });
3023
- const [tableDensity, setTableDensity] = (0, $hgUW1$useState)("normal");
3043
+ const [tableDensity, setTableDensity] = (0, $hgUW1$useState)('normal');
3024
3044
  const providerValue = {
3025
3045
  columnOrder: columnOrder,
3026
3046
  setColumnOrder: setColumnOrder,
@@ -3067,9 +3087,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
3067
3087
  transition: transition,
3068
3088
  opacity: isDragging ? 0.7 : 1,
3069
3089
  zIndex: isDragging ? 1 : 0,
3070
- position: "relative",
3071
- background: "white",
3072
- touchAction: "none"
3090
+ position: 'relative',
3091
+ background: 'white',
3092
+ touchAction: 'none'
3073
3093
  };
3074
3094
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
3075
3095
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -3085,7 +3105,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
3085
3105
  // this code forces the repaint without user interaction
3086
3106
  const target = e.target;
3087
3107
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
3088
- target.parentNode.querySelector("input").checked = visible;
3108
+ target.parentNode.querySelector('input').checked = visible;
3089
3109
  }, 1);
3090
3110
  },
3091
3111
  children: [
@@ -3102,7 +3122,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
3102
3122
  }
3103
3123
  }),
3104
3124
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3105
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
3125
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
3106
3126
  "aria-label": `Reorder ${id} column`,
3107
3127
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3108
3128
  className: "fa fa-sort"
@@ -3122,9 +3142,9 @@ var $5fe94aeb50e0798b$export$2e2bcd8739ae039 = $5fe94aeb50e0798b$var$Card;
3122
3142
  * even if a parent dialog is still open. This restores it.
3123
3143
  */ function $15650910340b2c71$export$73fce4ded5ef1c2() {
3124
3144
  setTimeout(()=>{
3125
- if (document.querySelector(".dkan-fullscreen-data-table-wrapper .ds-c-dialog-wrap.open")) {
3126
- document.body.classList.add("ds--dialog-open");
3127
- document.body.style.setProperty("--body_top--dialog-open", "-0px");
3145
+ if (document.querySelector('.dkan-fullscreen-data-table-wrapper .ds-c-dialog-wrap.open')) {
3146
+ document.body.classList.add('ds--dialog-open');
3147
+ document.body.style.setProperty('--body_top--dialog-open', '-0px');
3128
3148
  }
3129
3149
  }, 0);
3130
3150
  }
@@ -3134,7 +3154,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
3134
3154
  // Custom function to exclude checkbox from keyboard dragging
3135
3155
  static activators = [
3136
3156
  {
3137
- eventName: "onKeyDown",
3157
+ eventName: 'onKeyDown',
3138
3158
  handler: ({ nativeEvent: event })=>{
3139
3159
  // prevent scrolling the list
3140
3160
  const isCheckbox = [
@@ -3157,7 +3177,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
3157
3177
  // Custom function to stop accidental checkbox clicks on pointer activation
3158
3178
  static activators = [
3159
3179
  {
3160
- eventName: "onPointerDown",
3180
+ eventName: 'onPointerDown',
3161
3181
  handler: ({ nativeEvent: event })=>{
3162
3182
  if (event.target.tagName.toLowerCase() === "input") return false;
3163
3183
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -3255,13 +3275,13 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
3255
3275
  className: "dkan-dataset-toolbar-button-label",
3256
3276
  children: "Manage Columns"
3257
3277
  }),
3258
- hiddenColumns ? ` (${hiddenColumns})` : ""
3278
+ hiddenColumns ? ` (${hiddenColumns})` : ''
3259
3279
  ]
3260
3280
  })
3261
3281
  ]
3262
3282
  }),
3263
3283
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3264
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3284
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3265
3285
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
3266
3286
  heading: "Manage columns",
3267
3287
  isOpen: modalOpen,
@@ -3437,12 +3457,12 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
3437
3457
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
3438
3458
  children: [
3439
3459
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3440
- className: isModal ? "dkan-datatable-fullscreen-mode" : "",
3460
+ className: isModal ? 'dkan-datatable-fullscreen-mode' : '',
3441
3461
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
3442
3462
  canResize: true,
3443
3463
  columns: columns,
3444
3464
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
3445
- tablePadding: tableDensity === "normal" ? "ds-u-padding-y--2" : tableDensity === "compact" ? "ds-u-padding-y--1" : "ds-u-padding-y--3",
3465
+ tablePadding: tableDensity === 'normal' ? 'ds-u-padding-y--2' : tableDensity === 'compact' ? 'ds-u-padding-y--1' : 'ds-u-padding-y--3',
3446
3466
  loading: resource.loading,
3447
3467
  isModal: isModal,
3448
3468
  downloadURL: downloadURL,
@@ -3457,14 +3477,14 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
3457
3477
  }),
3458
3478
  !resource.loading && resource.count !== null && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3459
3479
  className: [
3460
- "ds-u-display--flex",
3461
- "ds-u-flex-wrap--wrap",
3462
- "ds-u-justify-content--end",
3463
- "ds-u-md-justify-content--between",
3464
- "ds-u-margin-top--2",
3465
- "ds-u-align-items--center",
3466
- isModal && "ds-u-margin-bottom--2"
3467
- ].filter(Boolean).join(" "),
3480
+ 'ds-u-display--flex',
3481
+ 'ds-u-flex-wrap--wrap',
3482
+ 'ds-u-justify-content--end',
3483
+ 'ds-u-md-justify-content--between',
3484
+ 'ds-u-margin-top--2',
3485
+ 'ds-u-align-items--center',
3486
+ isModal && 'ds-u-margin-bottom--2'
3487
+ ].filter(Boolean).join(' '),
3468
3488
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
3469
3489
  totalPages: Math.ceil(resource.count ? resource.count / pageSize : 1),
3470
3490
  currentPage: Number(page),
@@ -3503,7 +3523,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
3503
3523
  },
3504
3524
  children: [
3505
3525
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3506
- className: `far ${modalOpen ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
3526
+ className: `far ${modalOpen ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
3507
3527
  }),
3508
3528
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3509
3529
  className: "dkan-dataset-toolbar-button-label",
@@ -3512,7 +3532,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
3512
3532
  ]
3513
3533
  }),
3514
3534
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3515
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3535
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3516
3536
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
3517
3537
  heading: "Dataset Explorer",
3518
3538
  isOpen: modalOpen,
@@ -3547,13 +3567,13 @@ var $16bd41951b91f02d$export$2e2bcd8739ae039 = $16bd41951b91f02d$var$FullScreenD
3547
3567
 
3548
3568
 
3549
3569
  function $eadd6431fddf4b6c$var$getStartDate(condition, schema, id) {
3550
- if (schema[id].fields[condition.property].mysql_type === "date") {
3570
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
3551
3571
  const newDate = new Date(condition.value.toString());
3552
3572
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
3553
3573
  }
3554
3574
  return new Date();
3555
3575
  }
3556
- const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = "" })=>{
3576
+ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = '', enableEmptyFilters: enableEmptyFilters })=>{
3557
3577
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
3558
3578
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
3559
3579
  const [value, setValue] = (0, $hgUW1$useState)(condition.value);
@@ -3565,9 +3585,9 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3565
3585
  // Reset value when mysql_type changes from date to another type
3566
3586
  (0, $hgUW1$useEffect)(()=>{
3567
3587
  const currentType = schema[id].fields[property]?.mysql_type;
3568
- if (previousType === "date" && currentType !== "date") {
3569
- setValue("");
3570
- update(index, "value", "");
3588
+ if (previousType === 'date' && currentType !== 'date') {
3589
+ setValue('');
3590
+ update(index, 'value', '');
3571
3591
  }
3572
3592
  setPreviousType(currentType);
3573
3593
  }, [
@@ -3580,9 +3600,9 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3580
3600
  ]);
3581
3601
  (0, $hgUW1$useEffect)(()=>{
3582
3602
  if (property !== condition.property) {
3583
- if (property) update(index, "property", property);
3584
- else update(index, "property", "");
3585
- if (schema[id].fields[condition.property].mysql_type === "date") {
3603
+ if (property) update(index, 'property', property);
3604
+ else update(index, 'property', '');
3605
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
3586
3606
  if (!value) setValue(startDate.toJSON().slice(0, 10));
3587
3607
  }
3588
3608
  }
@@ -3596,22 +3616,22 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3596
3616
  ]);
3597
3617
  (0, $hgUW1$useEffect)(()=>{
3598
3618
  if (operator !== condition.operator) {
3599
- if (operator) update(index, "operator", operator);
3600
- else update(index, "operator", "");
3619
+ if (operator) update(index, 'operator', operator);
3620
+ else update(index, 'operator', '');
3601
3621
  }
3602
3622
  }, [
3603
3623
  operator
3604
3624
  ]);
3605
3625
  (0, $hgUW1$useEffect)(()=>{
3606
3626
  if (value !== condition.value) {
3607
- if (value) update(index, "value", value);
3608
- else update(index, "value", "");
3627
+ if (value) update(index, 'value', value);
3628
+ else update(index, 'value', '');
3609
3629
  }
3610
3630
  }, [
3611
3631
  value
3612
3632
  ]);
3613
3633
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("fieldset", {
3614
- 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}` : ""}`,
3634
+ 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}` : ''}`,
3615
3635
  children: [
3616
3636
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3617
3637
  options: propertyOptions,
@@ -3622,14 +3642,14 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3622
3642
  onChange: (e)=>setProperty(e.target.value)
3623
3643
  }),
3624
3644
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3625
- options: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[property].mysql_type),
3645
+ options: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[property].mysql_type, enableEmptyFilters),
3626
3646
  className: "ds-u-padding-x--0",
3627
3647
  value: operator,
3628
3648
  label: "Condition",
3629
3649
  name: `${condition.key}_operator`,
3630
3650
  onChange: (e)=>setOperator(e.target.value)
3631
3651
  }),
3632
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3652
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3633
3653
  children: [
3634
3654
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
3635
3655
  className: "ds-c-label",
@@ -3682,15 +3702,15 @@ var $eadd6431fddf4b6c$export$2e2bcd8739ae039 = $eadd6431fddf4b6c$var$FilterItem;
3682
3702
 
3683
3703
 
3684
3704
 
3685
- const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = "" })=>{
3705
+ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = '' })=>{
3686
3706
  const small = (0, $hgUW1$useMediaQuery)({
3687
3707
  minWidth: 0,
3688
3708
  maxWidth: 544
3689
3709
  });
3690
3710
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
3691
3711
  disabled: disabled,
3692
- className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? "" : " ds-u-float--right ds-l-md-col--6 ds-l-col--5"}${className !== "" ? ` ${className}` : ""}`,
3693
- variation: small ? "ghost" : undefined,
3712
+ className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? '' : ' ds-u-float--right ds-l-md-col--6 ds-l-col--5'}${className !== '' ? ` ${className}` : ''}`,
3713
+ variation: small ? 'ghost' : undefined,
3694
3714
  onClick: ()=>clearFiltersFn(),
3695
3715
  children: "Reset"
3696
3716
  });
@@ -3703,23 +3723,33 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
3703
3723
  function $6f4318b1e14124e5$var$updateQueryForDatastore(condition) {
3704
3724
  let cond = condition;
3705
3725
  delete cond.key;
3706
- if (cond.operator === "=" || cond.operator === "<>") {
3726
+ if (cond.operator === 'is_empty') {
3727
+ cond.operator = '=';
3728
+ cond.value = '';
3729
+ return cond;
3730
+ }
3731
+ if (cond.operator === 'not_empty') {
3732
+ cond.operator = '<>';
3733
+ cond.value = '';
3734
+ return cond;
3735
+ }
3736
+ if (cond.operator === '=' || cond.operator === '<>') {
3707
3737
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3708
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
3738
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
3709
3739
  }
3710
- if (cond.operator.toLowerCase() === "like") {
3740
+ if (cond.operator.toLowerCase() === 'like') {
3711
3741
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3712
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
3742
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
3713
3743
  cond.value = `%${cleanedValue}%`;
3714
3744
  }
3715
- if (cond.operator.toLowerCase() === "in") {
3716
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
3745
+ if (cond.operator.toLowerCase() === 'in') {
3746
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
3717
3747
  }
3718
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
3748
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
3719
3749
  return cond;
3720
3750
  }
3721
3751
  const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3722
- const { distribution: distribution, resource: resource, customColumns: customColumns = [] } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
3752
+ const { distribution: distribution, resource: resource, customColumns: customColumns = [], enableEmptyFilters: enableEmptyFilters } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
3723
3753
  const { setPage: setPage } = (0, $hgUW1$useContext)((0, $ee0d4d4f34048447$export$f814ea079e65d8fe));
3724
3754
  if (!resource) return null;
3725
3755
  const customColumnHeaders = (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution.identifier]);
@@ -3741,8 +3771,8 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3741
3771
  } else setQueryConditions([
3742
3772
  {
3743
3773
  property: fields[0],
3744
- value: "",
3745
- operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3774
+ value: '',
3775
+ operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type, enableEmptyFilters)[0].value,
3746
3776
  key: Date.now().toString()
3747
3777
  }
3748
3778
  ]);
@@ -3758,8 +3788,8 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3758
3788
  ...queryConditions,
3759
3789
  {
3760
3790
  property: fields[0],
3761
- value: "",
3762
- operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3791
+ value: '',
3792
+ operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type, enableEmptyFilters)[0].value,
3763
3793
  key: Date.now().toString()
3764
3794
  }
3765
3795
  ]);
@@ -3789,18 +3819,18 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3789
3819
  encodeValuesOnly: true,
3790
3820
  addQueryPrefix: true
3791
3821
  });
3792
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3822
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3793
3823
  };
3794
3824
  const submitConditions = ()=>{
3795
3825
  // only update the data conditions when "Apply filters" is pressed
3796
- const submitConditions = queryConditions.filter((oc)=>{
3826
+ const filteredConditions = queryConditions.filter((oc)=>{
3797
3827
  if (oc.property) return oc;
3798
3828
  return false;
3799
- }).map((oc)=>{
3829
+ });
3830
+ const completeConditions = conditionsReadyToSubmit(filteredConditions).map((oc)=>{
3800
3831
  let cond = Object.assign({}, oc);
3801
3832
  return $6f4318b1e14124e5$var$updateQueryForDatastore(cond);
3802
3833
  });
3803
- const completeConditions = conditionsReadyToSubmit(submitConditions);
3804
3834
  if (completeConditions.length) {
3805
3835
  setConditions(completeConditions);
3806
3836
  setPage(1);
@@ -3819,7 +3849,8 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3819
3849
  };
3820
3850
  const completeConditions = conditions.filter((condition)=>{
3821
3851
  if (condition) {
3822
- if (!isEmpty(condition.property) && !isEmpty(condition.operator) && !isEmpty(condition.value)) return condition;
3852
+ const isEmptyOperator = condition.operator === 'is_empty' || condition.operator === 'not_empty';
3853
+ if (!isEmpty(condition.property) && !isEmpty(condition.operator) && (isEmptyOperator || !isEmpty(condition.value))) return condition;
3823
3854
  }
3824
3855
  });
3825
3856
  return completeConditions;
@@ -3864,15 +3895,15 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3864
3895
  children: [
3865
3896
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3866
3897
  className: "dkan-dataset-toolbar-button-label",
3867
- children: conditions.length > 0 ? `Edit Filters` : "Filter Dataset"
3898
+ children: conditions && conditions.length > 0 ? `Edit Filters` : 'Filter Dataset'
3868
3899
  }),
3869
- conditions.length > 0 && ` (${conditions.length})`
3900
+ conditions && conditions.length > 0 && ` (${conditions.length})`
3870
3901
  ]
3871
3902
  })
3872
3903
  ]
3873
3904
  }),
3874
3905
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3875
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3906
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3876
3907
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
3877
3908
  heading: "Filter Dataset",
3878
3909
  isOpen: modalOpen,
@@ -3901,7 +3932,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3901
3932
  className: "dkan-apply-dataset-filters-button ds-u-float--right ds-l-md-col--auto ds-l-col--auto",
3902
3933
  onClick: submitConditions,
3903
3934
  variation: "solid",
3904
- children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ""} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? "" : "s"}`
3935
+ children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ''} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? '' : 's'}`
3905
3936
  })
3906
3937
  ]
3907
3938
  })
@@ -3947,7 +3978,8 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3947
3978
  propertyOptions: propertyOptions,
3948
3979
  update: updateCondition,
3949
3980
  remove: removeCondition,
3950
- className: index !== 0 ? "ds-u-border-top--1" : "ds-u-border--0"
3981
+ className: index !== 0 ? "ds-u-border-top--1" : "ds-u-border--0",
3982
+ enableEmptyFilters: enableEmptyFilters
3951
3983
  }, qf.key))
3952
3984
  }),
3953
3985
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -4040,9 +4072,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
4040
4072
  className: "ds-u-display--flex ds-u-align-items--start",
4041
4073
  children: [
4042
4074
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4043
- onClick: ()=>setTableDensity("expanded"),
4075
+ onClick: ()=>setTableDensity('expanded'),
4044
4076
  "aria-label": "Row height, Expanded",
4045
- 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" : ""}`,
4077
+ 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' : ''}`,
4046
4078
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
4047
4079
  className: "ds-u-display--block",
4048
4080
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -4061,9 +4093,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
4061
4093
  })
4062
4094
  }),
4063
4095
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4064
- onClick: ()=>setTableDensity("normal"),
4096
+ onClick: ()=>setTableDensity('normal'),
4065
4097
  "aria-label": "Row height, Normal",
4066
- 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" : ""}`,
4098
+ 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' : ''}`,
4067
4099
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
4068
4100
  className: "ds-u-display--block",
4069
4101
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -4082,9 +4114,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
4082
4114
  })
4083
4115
  }),
4084
4116
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4085
- onClick: ()=>setTableDensity("compact"),
4117
+ onClick: ()=>setTableDensity('compact'),
4086
4118
  "aria-label": "Row height, Compact",
4087
- 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 " : ""}`,
4119
+ 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 ' : ''}`,
4088
4120
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
4089
4121
  className: "ds-u-display--block",
4090
4122
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -4169,7 +4201,7 @@ const $85f8ff1ff89899c7$var$updateBrowserURL = (newConditions)=>{
4169
4201
  encodeValuesOnly: true,
4170
4202
  addQueryPrefix: true
4171
4203
  });
4172
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
4204
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
4173
4205
  };
4174
4206
  const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, columns: columns, defaultColumnOrder: defaultColumnOrder, isModal: isModal, datasetTableControls: datasetTableControls, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility })=>{
4175
4207
  const { limit: limit, offset: offset, count: count, conditions: conditions, setConditions: setConditions } = resource;
@@ -4248,14 +4280,14 @@ const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, co
4248
4280
  children: [
4249
4281
  conditions.length > 0 ? conditions.map((condition, index)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $c5b172e8d1a8197c$export$2e2bcd8739ae039), {
4250
4282
  iconClass: "far fa-filter",
4251
- text: `"${condition.property}" ${(0, $7264a673914aa746$export$d243819c3ad678fb)(condition.operator).toLowerCase()} ${condition.value}`,
4283
+ text: `"${condition.property}" ${(0, $7264a673914aa746$export$d243819c3ad678fb)(condition.operator).toLowerCase()}${condition.value === '' ? '' : ` ${condition.value}`}`,
4252
4284
  onClick: ()=>{
4253
4285
  removeCondition(index);
4254
4286
  }
4255
4287
  }, index)) : null,
4256
4288
  hiddenColumns > 0 ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $c5b172e8d1a8197c$export$2e2bcd8739ae039), {
4257
4289
  iconClass: "fa fa-columns",
4258
- text: `${hiddenColumns} Column${hiddenColumns === 1 ? "" : "s"} Hidden`,
4290
+ text: `${hiddenColumns} Column${hiddenColumns === 1 ? '' : 's'} Hidden`,
4259
4291
  onClick: ()=>{
4260
4292
  resetColumnVisibility();
4261
4293
  }
@@ -4308,9 +4340,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
4308
4340
  columnOrder
4309
4341
  ]);
4310
4342
  const sortElement = (isSorted, onClickFn)=>{
4311
- if (isSorted === "asc") return "dc-c-sort--asc";
4312
- if (isSorted === "desc") return "dc-c-sort--desc";
4313
- return "dc-c-sort--default";
4343
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
4344
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
4345
+ return 'dc-c-sort--default';
4314
4346
  };
4315
4347
  const filters = [];
4316
4348
  const table = (0, $hgUW1$useReactTable)({
@@ -4322,7 +4354,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
4322
4354
  columnVisibility: columnVisibility,
4323
4355
  sorting: sorting
4324
4356
  },
4325
- columnResizeMode: "onChange",
4357
+ columnResizeMode: 'onChange',
4326
4358
  onSortingChange: setSorting,
4327
4359
  onColumnOrderChange: setColumnOrder,
4328
4360
  onColumnVisibilityChange: setColumnVisibility,
@@ -4339,7 +4371,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
4339
4371
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
4340
4372
  const tableWrapperWidth = ()=>{
4341
4373
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
4342
- return "auto";
4374
+ return 'auto';
4343
4375
  };
4344
4376
  (0, $hgUW1$useEffect)(()=>{
4345
4377
  setHighlightRow(null);
@@ -4561,7 +4593,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
4561
4593
  },
4562
4594
  labelClassName: "ds-u-visibility--screen-reader",
4563
4595
  name: accessor,
4564
- value: filterValue || ""
4596
+ value: filterValue || ''
4565
4597
  });
4566
4598
  }
4567
4599
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -4637,7 +4669,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
4637
4669
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4638
4670
  children: currentPage
4639
4671
  })
4640
- }) : ""
4672
+ }) : ''
4641
4673
  ]
4642
4674
  })
4643
4675
  });
@@ -4694,11 +4726,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
4694
4726
 
4695
4727
 
4696
4728
 
4697
- 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", {
4729
+ 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", {
4698
4730
  className: "search-input-container",
4699
4731
  children: [
4700
4732
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4701
- className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
4733
+ className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
4702
4734
  label: placeholder,
4703
4735
  labelClassName: "ds-u-visibility--screen-reader",
4704
4736
  placeholder: placeholder,
@@ -4713,7 +4745,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = "Search
4713
4745
  }),
4714
4746
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
4715
4747
  variation: "solid",
4716
- className: onDark && "on-dark",
4748
+ className: onDark && 'on-dark',
4717
4749
  onClick: onSubmit,
4718
4750
  children: [
4719
4751
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4832,7 +4864,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
4832
4864
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4833
4865
  addQueryPrefix: true
4834
4866
  })}`,
4835
- docExpansion: "list",
4867
+ docExpansion: 'list',
4836
4868
  defaultModelsExpandDepth: -1,
4837
4869
  plugins: [
4838
4870
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -4915,26 +4947,26 @@ var $026cb986f9fea2b1$export$2e2bcd8739ae039 = $026cb986f9fea2b1$var$PageNotFoun
4915
4947
 
4916
4948
 
4917
4949
  const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4918
- defaultSort: "modified",
4919
- defaultOrder: "desc"
4920
- }, pageTitle: pageTitle = "What's New ", showLargeFileWarning: showLargeFileWarning = false, introText: introText = "", dataDictionaryLinks: dataDictionaryLinks = false })=>{
4950
+ defaultSort: 'modified',
4951
+ defaultOrder: 'desc'
4952
+ }, pageTitle: pageTitle = 'What\'s New ', showLargeFileWarning: showLargeFileWarning = false, introText: introText = '', dataDictionaryLinks: dataDictionaryLinks = false })=>{
4921
4953
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4922
4954
  const sortOptions = [
4923
4955
  {
4924
- label: "Newest",
4925
- value: "newest"
4956
+ label: 'Newest',
4957
+ value: 'newest'
4926
4958
  },
4927
4959
  {
4928
- label: "Oldest",
4929
- value: "oldest"
4960
+ label: 'Oldest',
4961
+ value: 'oldest'
4930
4962
  },
4931
4963
  {
4932
- label: "Title A-Z",
4933
- value: "titleAZ"
4964
+ label: 'Title A-Z',
4965
+ value: 'titleAZ'
4934
4966
  },
4935
4967
  {
4936
- label: "Title Z-A",
4937
- value: "titleZA"
4968
+ label: 'Title Z-A',
4969
+ value: 'titleZA'
4938
4970
  }
4939
4971
  ];
4940
4972
  const defaultSortBy = "";
@@ -4948,33 +4980,33 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4948
4980
  endingNumber: 0
4949
4981
  });
4950
4982
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4951
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4983
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4952
4984
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4953
4985
  const [totalItems, setTotalItems] = (0, $hgUW1$useState)(0);
4954
4986
  const [page, setPage] = (0, $hgUW1$useState)(transformedParams.page ? transformedParams.page : defaultPage);
4955
4987
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4956
4988
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4957
4989
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4958
- return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4990
+ return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4959
4991
  });
4960
4992
  const setSortOptions = (value)=>{
4961
4993
  setSortDisplay(value);
4962
4994
  switch(value){
4963
- case "newest":
4964
- setSort("modified");
4965
- setSortOrder("desc");
4995
+ case 'newest':
4996
+ setSort('modified');
4997
+ setSortOrder('desc');
4966
4998
  break;
4967
- case "oldest":
4968
- setSort("modified");
4969
- setSortOrder("asc");
4999
+ case 'oldest':
5000
+ setSort('modified');
5001
+ setSortOrder('asc');
4970
5002
  break;
4971
- case "titleAZ":
4972
- setSort("title");
4973
- setSortOrder("asc");
5003
+ case 'titleAZ':
5004
+ setSort('title');
5005
+ setSortOrder('asc');
4974
5006
  break;
4975
- case "titleZA":
4976
- setSort("title");
4977
- setSortOrder("desc");
5007
+ case 'titleZA':
5008
+ setSort('title');
5009
+ setSortOrder('desc');
4978
5010
  break;
4979
5011
  }
4980
5012
  };
@@ -4991,9 +5023,9 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4991
5023
  }
4992
5024
  let params = {
4993
5025
  sort: sort ? sort : undefined,
4994
- ["sort-order"]: sortOrder ? sortOrder : undefined,
5026
+ ['sort-order']: sortOrder ? sortOrder : undefined,
4995
5027
  page: page !== 1 ? page : undefined,
4996
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
5028
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
4997
5029
  };
4998
5030
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4999
5031
  queryKey: [
@@ -5002,7 +5034,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5002
5034
  ],
5003
5035
  queryFn: ()=>{
5004
5036
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
5005
- arrayFormat: "comma",
5037
+ arrayFormat: 'comma',
5006
5038
  encode: false
5007
5039
  })}`);
5008
5040
  }
@@ -5018,7 +5050,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5018
5050
  // Update browser URL with current search params
5019
5051
  const params = buildSearchParams(true);
5020
5052
  const url = new URL(window.location.href);
5021
- window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
5053
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
5022
5054
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
5023
5055
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
5024
5056
  const endingNumber = Number(pageSize) * Number(page);
@@ -5044,8 +5076,8 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5044
5076
  ]);
5045
5077
  (0, $hgUW1$useEffect)(()=>{
5046
5078
  // No results found
5047
- if (noResults) setAnnouncementText("No results found.");
5048
- else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
5079
+ if (noResults) setAnnouncementText('No results found.');
5080
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText('Could not connect to the API.');
5049
5081
  else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
5050
5082
  }, [
5051
5083
  data,
@@ -5118,7 +5150,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5118
5150
  "Showing ",
5119
5151
  currentResultNumbers.startingNumber,
5120
5152
  " -",
5121
- " ",
5153
+ ' ',
5122
5154
  currentResultNumbers.endingNumber,
5123
5155
  " of ",
5124
5156
  data.data.total,
@@ -5178,7 +5210,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5178
5210
  },
5179
5211
  renderHref: (page)=>{
5180
5212
  const searchParams = buildSearchParams(false);
5181
- const includeAnd = searchParams ? "&" : "";
5213
+ const includeAnd = searchParams ? '&' : '';
5182
5214
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
5183
5215
  }
5184
5216
  })
@@ -5210,12 +5242,12 @@ var $550bcc185f420ff5$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5210
5242
 
5211
5243
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5212
5244
  const [dataset, setDataset] = (0, $hgUW1$useState)({
5213
- title: "",
5245
+ title: '',
5214
5246
  distribution: [],
5215
- error: "",
5216
- description: "",
5217
- identifier: "",
5218
- modified: ""
5247
+ error: '',
5248
+ description: '',
5249
+ identifier: '',
5250
+ modified: ''
5219
5251
  });
5220
5252
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
5221
5253
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -5225,7 +5257,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5225
5257
  "metastore" + id
5226
5258
  ],
5227
5259
  queryFn: ()=>{
5228
- 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)=>{
5260
+ 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)=>{
5229
5261
  return {
5230
5262
  title: dataset.title,
5231
5263
  distribution: dataset.distribution,
@@ -5281,7 +5313,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5281
5313
  // const [joins, setJoins] = useState()
5282
5314
  const [properties, setProperties] = (0, $hgUW1$useState)(options.properties ? options.properties : undefined);
5283
5315
  // Check drupalSettings for datastore_query_api
5284
- const useDatasetAPI = typeof window !== "undefined" && window.drupalSettings?.datastore_query_api === true;
5316
+ const useDatasetAPI = typeof window !== 'undefined' && window.drupalSettings?.datastore_query_api === true;
5285
5317
  const datasetID = additionalParams.datasetID;
5286
5318
  // Remove datasetID from params to avoid sending it to the API
5287
5319
  const { datasetID: _, ...restAdditionalParams } = additionalParams;
@@ -5296,7 +5328,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5296
5328
  ...restAdditionalParams
5297
5329
  };
5298
5330
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
5299
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
5331
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
5300
5332
  let enabled = false;
5301
5333
  if (id) {
5302
5334
  if (!requireConditions) enabled = true;
@@ -5378,65 +5410,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
5378
5410
 
5379
5411
 
5380
5412
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
5381
- "R/P10Y": {
5382
- name: "Decennial"
5413
+ 'R/P10Y': {
5414
+ name: 'Decennial'
5383
5415
  },
5384
- "R/P4Y": {
5385
- name: "Quadrennial"
5416
+ 'R/P4Y': {
5417
+ name: 'Quadrennial'
5386
5418
  },
5387
- "R/P1Y": {
5388
- name: "Annual"
5419
+ 'R/P1Y': {
5420
+ name: 'Annual'
5389
5421
  },
5390
- "R/P2M": {
5391
- name: "Bimonthly"
5422
+ 'R/P2M': {
5423
+ name: 'Bimonthly'
5392
5424
  },
5393
- "R/P3.5D": {
5394
- name: "Semiweekly"
5425
+ 'R/P3.5D': {
5426
+ name: 'Semiweekly'
5395
5427
  },
5396
- "R/P1D": {
5397
- name: "Daily"
5428
+ 'R/P1D': {
5429
+ name: 'Daily'
5398
5430
  },
5399
- "R/P2W": {
5400
- name: "Biweekly"
5431
+ 'R/P2W': {
5432
+ name: 'Biweekly'
5401
5433
  },
5402
- "R/P6M": {
5403
- name: "Semiannual"
5434
+ 'R/P6M': {
5435
+ name: 'Semiannual'
5404
5436
  },
5405
- "R/P2Y": {
5406
- name: "Biennial"
5437
+ 'R/P2Y': {
5438
+ name: 'Biennial'
5407
5439
  },
5408
- "R/P3Y": {
5409
- name: "Triennial"
5440
+ 'R/P3Y': {
5441
+ name: 'Triennial'
5410
5442
  },
5411
- "R/P0.33W": {
5412
- name: "Three times a week"
5443
+ 'R/P0.33W': {
5444
+ name: 'Three times a week'
5413
5445
  },
5414
- "R/P0.33M": {
5415
- name: "Three times a month"
5446
+ 'R/P0.33M': {
5447
+ name: 'Three times a month'
5416
5448
  },
5417
- "R/PT1S": {
5418
- name: "Continuously updated"
5449
+ 'R/PT1S': {
5450
+ name: 'Continuously updated'
5419
5451
  },
5420
- "R/P1M": {
5421
- name: "Monthly"
5452
+ 'R/P1M': {
5453
+ name: 'Monthly'
5422
5454
  },
5423
- "R/P3M": {
5424
- name: "Quarterly"
5455
+ 'R/P3M': {
5456
+ name: 'Quarterly'
5425
5457
  },
5426
- "R/P0.5M": {
5427
- name: "Semimonthly"
5458
+ 'R/P0.5M': {
5459
+ name: 'Semimonthly'
5428
5460
  },
5429
- "R/P4M": {
5430
- name: "Three times a year"
5461
+ 'R/P4M': {
5462
+ name: 'Three times a year'
5431
5463
  },
5432
- "R/P1W": {
5433
- name: "Weekly"
5464
+ 'R/P1W': {
5465
+ name: 'Weekly'
5434
5466
  },
5435
- "R/PT1H": {
5436
- name: "Hourly"
5467
+ 'R/PT1H': {
5468
+ name: 'Hourly'
5437
5469
  },
5438
5470
  irregular: {
5439
- name: "Irregular"
5471
+ name: 'Irregular'
5440
5472
  }
5441
5473
  };
5442
5474
 
@@ -5445,7 +5477,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5445
5477
  modified: (data)=>{
5446
5478
  return [
5447
5479
  {
5448
- label: "Modified",
5480
+ label: 'Modified',
5449
5481
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5450
5482
  date: data
5451
5483
  })
@@ -5455,7 +5487,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5455
5487
  issued: (data)=>{
5456
5488
  return [
5457
5489
  {
5458
- label: "Issued",
5490
+ label: 'Issued',
5459
5491
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5460
5492
  date: data
5461
5493
  })
@@ -5465,7 +5497,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5465
5497
  accrualPeriodicity: (data)=>{
5466
5498
  return [
5467
5499
  {
5468
- label: "Frequency",
5500
+ label: 'Frequency',
5469
5501
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
5470
5502
  }
5471
5503
  ];
@@ -5473,7 +5505,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5473
5505
  publisher: (data)=>{
5474
5506
  if (data.data && data.data.name) return [
5475
5507
  {
5476
- label: "Publisher",
5508
+ label: 'Publisher',
5477
5509
  value: data.data.name
5478
5510
  }
5479
5511
  ];
@@ -5482,7 +5514,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5482
5514
  identifier: (data)=>{
5483
5515
  return [
5484
5516
  {
5485
- label: "Identifier",
5517
+ label: 'Identifier',
5486
5518
  value: data
5487
5519
  }
5488
5520
  ];
@@ -5490,11 +5522,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5490
5522
  contactPoint: (data)=>{
5491
5523
  let rows = [];
5492
5524
  if (data.fn) rows.push({
5493
- label: "Contact",
5525
+ label: 'Contact',
5494
5526
  value: data.fn
5495
5527
  });
5496
5528
  if (data.hasEmail) rows.push({
5497
- label: "Contact Email",
5529
+ label: 'Contact Email',
5498
5530
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5499
5531
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
5500
5532
  children: data.hasEmail.replace("mailto:", "")
@@ -5505,7 +5537,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5505
5537
  bureauCode: (data)=>{
5506
5538
  if (data.length) return [
5507
5539
  {
5508
- label: "Bureau Code",
5540
+ label: 'Bureau Code',
5509
5541
  value: data[0]
5510
5542
  }
5511
5543
  ];
@@ -5513,7 +5545,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5513
5545
  programCode: (data)=>{
5514
5546
  if (data.length) return [
5515
5547
  {
5516
- label: "Program Code",
5548
+ label: 'Program Code',
5517
5549
  value: data[0]
5518
5550
  }
5519
5551
  ];
@@ -5521,13 +5553,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5521
5553
  theme: (data)=>{
5522
5554
  return [
5523
5555
  {
5524
- label: "Category",
5556
+ label: 'Category',
5525
5557
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5526
5558
  to: `/datasets?theme[]=${theme.data}`,
5527
5559
  children: theme.data
5528
5560
  }, theme.data)).reduce((prev, curr)=>[
5529
5561
  prev,
5530
- ", ",
5562
+ ', ',
5531
5563
  curr
5532
5564
  ])
5533
5565
  }
@@ -5536,13 +5568,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5536
5568
  keyword: (data)=>{
5537
5569
  return [
5538
5570
  {
5539
- label: "Tags",
5571
+ label: 'Tags',
5540
5572
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5541
5573
  to: `/datasets?keyword[]=${keyword.data}`,
5542
5574
  children: keyword.data
5543
5575
  }, keyword.data)).reduce((prev, curr)=>[
5544
5576
  prev,
5545
- ", ",
5577
+ ', ',
5546
5578
  curr
5547
5579
  ])
5548
5580
  }
@@ -5551,7 +5583,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5551
5583
  license: (data)=>{
5552
5584
  return [
5553
5585
  {
5554
- label: "License",
5586
+ label: 'License',
5555
5587
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5556
5588
  href: data,
5557
5589
  children: data
@@ -5562,7 +5594,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5562
5594
  accessLevel: (data)=>{
5563
5595
  return [
5564
5596
  {
5565
- label: "Public Access Level",
5597
+ label: 'Public Access Level',
5566
5598
  value: data
5567
5599
  }
5568
5600
  ];
@@ -5570,7 +5602,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5570
5602
  temporal: (data)=>{
5571
5603
  return [
5572
5604
  {
5573
- label: "Temporal Coverage",
5605
+ label: 'Temporal Coverage',
5574
5606
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
5575
5607
  className: "dc-c-word-break--all",
5576
5608
  children: data
@@ -5581,7 +5613,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5581
5613
  spatial: (data)=>{
5582
5614
  return [
5583
5615
  {
5584
- label: "Spacial/Geographical Coverage",
5616
+ label: 'Spacial/Geographical Coverage',
5585
5617
  value: data
5586
5618
  }
5587
5619
  ];
@@ -5589,7 +5621,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5589
5621
  references: (data)=>{
5590
5622
  return [
5591
5623
  {
5592
- label: "Related Documents",
5624
+ label: 'Related Documents',
5593
5625
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5594
5626
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
5595
5627
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -5627,7 +5659,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5627
5659
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
5628
5660
  const { data: resource } = (0, $hgUW1$useQuery)({
5629
5661
  queryKey: [
5630
- "resource-information",
5662
+ 'resource-information',
5631
5663
  distribution.identifier
5632
5664
  ],
5633
5665
  queryFn: ()=>(0, $hgUW1$axios).get(`${rootUrl}/datastore/query/${distribution.identifier}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({
@@ -5654,7 +5686,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5654
5686
  }),
5655
5687
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5656
5688
  className: "ds-u-font-weight--bold",
5657
- children: resource?.count ? Number(resource.count).toLocaleString() : ""
5689
+ children: resource?.count ? Number(resource.count).toLocaleString() : ''
5658
5690
  })
5659
5691
  ]
5660
5692
  }),
@@ -5722,8 +5754,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5722
5754
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
5723
5755
  href: dist.data.downloadURL,
5724
5756
  style: {
5725
- order: sm ? "1" : "0",
5726
- width: sm ? "100%" : "auto"
5757
+ order: sm ? '1' : '0',
5758
+ width: sm ? '100%' : 'auto'
5727
5759
  },
5728
5760
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
5729
5761
  className: "ds-c-button",
@@ -5736,7 +5768,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5736
5768
  })
5737
5769
  }),
5738
5770
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5739
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
5771
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5740
5772
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5741
5773
  className: "dc-c-metadata-description ds-u-margin--0",
5742
5774
  dangerouslySetInnerHTML: {
@@ -5810,7 +5842,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5810
5842
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
5811
5843
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
5812
5844
  children: [
5813
- md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5845
+ md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5814
5846
  component: "th",
5815
5847
  className: "ds-u-font-weight--bold",
5816
5848
  children: [
@@ -5822,8 +5854,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5822
5854
  ariaLabel: r.label,
5823
5855
  // @ts-ignore
5824
5856
  style: {
5825
- border: "none",
5826
- background: "none"
5857
+ border: 'none',
5858
+ background: 'none'
5827
5859
  },
5828
5860
  maxWidth: "400px",
5829
5861
  placement: "auto",
@@ -5882,10 +5914,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
5882
5914
  href: apiUrl,
5883
5915
  children: [
5884
5916
  "View API",
5885
- " ",
5917
+ ' ',
5886
5918
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5887
5919
  style: {
5888
- whiteSpace: "nowrap"
5920
+ whiteSpace: 'nowrap'
5889
5921
  },
5890
5922
  children: [
5891
5923
  "specification ",
@@ -5931,14 +5963,14 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5931
5963
  maxWidth: 544
5932
5964
  });
5933
5965
  const sortElement = (isSorted)=>{
5934
- if (isSorted === "asc") return "dc-c-sort--asc";
5935
- if (isSorted === "desc") return "dc-c-sort--desc";
5936
- return "dc-c-sort--default";
5966
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
5967
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
5968
+ return 'dc-c-sort--default';
5937
5969
  };
5938
5970
  const table = (0, $hgUW1$useReactTable)({
5939
5971
  data: tableData,
5940
5972
  columns: tableColumns,
5941
- columnResizeMode: "onChange",
5973
+ columnResizeMode: 'onChange',
5942
5974
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
5943
5975
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
5944
5976
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -5957,49 +5989,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5957
5989
  });
5958
5990
  const sortOptions = [
5959
5991
  {
5960
- value: "default",
5961
- label: "No Sort"
5992
+ value: 'default',
5993
+ label: 'No Sort'
5962
5994
  },
5963
5995
  {
5964
- value: "titleasc",
5965
- label: "Title A-Z"
5996
+ value: 'titleasc',
5997
+ label: 'Title A-Z'
5966
5998
  },
5967
5999
  {
5968
- value: "titledesc",
5969
- label: "Title Z-A"
6000
+ value: 'titledesc',
6001
+ label: 'Title Z-A'
5970
6002
  },
5971
6003
  {
5972
- value: "typeasc",
5973
- label: "Type A-Z"
6004
+ value: 'typeasc',
6005
+ label: 'Type A-Z'
5974
6006
  },
5975
6007
  {
5976
- value: "typedesc",
5977
- label: "Type Z-A"
6008
+ value: 'typedesc',
6009
+ label: 'Type Z-A'
5978
6010
  }
5979
6011
  ];
5980
6012
  const sortStatesLookup = {
5981
6013
  default: [],
5982
6014
  titleasc: [
5983
6015
  {
5984
- id: "titleResizable",
6016
+ id: 'titleResizable',
5985
6017
  desc: false
5986
6018
  }
5987
6019
  ],
5988
6020
  titledesc: [
5989
6021
  {
5990
- id: "titleResizable",
6022
+ id: 'titleResizable',
5991
6023
  desc: true
5992
6024
  }
5993
6025
  ],
5994
6026
  typeasc: [
5995
6027
  {
5996
- id: "type",
6028
+ id: 'type',
5997
6029
  desc: false
5998
6030
  }
5999
6031
  ],
6000
6032
  typedesc: [
6001
6033
  {
6002
- id: "type",
6034
+ id: 'type',
6003
6035
  desc: true
6004
6036
  }
6005
6037
  ]
@@ -6027,7 +6059,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6027
6059
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
6028
6060
  className: "dc-c-datatable",
6029
6061
  style: {
6030
- width: "100%"
6062
+ width: '100%'
6031
6063
  },
6032
6064
  stackable: true,
6033
6065
  children: [
@@ -6039,16 +6071,16 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6039
6071
  table: table,
6040
6072
  header: header,
6041
6073
  sortElement: sortElement,
6042
- id: "dataDictionary_" + header.id
6074
+ id: 'dataDictionary_' + header.id
6043
6075
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
6044
6076
  key: header.id,
6045
6077
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
6046
- id: "dataDictionary_" + header.id,
6078
+ id: 'dataDictionary_' + header.id,
6047
6079
  children: [
6048
6080
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
6049
- header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
6081
+ header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
6050
6082
  onClick: header.column.getToggleSortingHandler(),
6051
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
6083
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
6052
6084
  "aria-label": `${header.column.columnDef.header} sort order`
6053
6085
  })
6054
6086
  ]
@@ -6063,12 +6095,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6063
6095
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6064
6096
  key: cell.id,
6065
6097
  style: {
6066
- maxWidth: mobile ? "100%" : cell.column.getSize(),
6067
- whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
6098
+ maxWidth: mobile ? '100%' : cell.column.getSize(),
6099
+ whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
6068
6100
  },
6069
- className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
6070
- headers: "dataDictionary_" + cell.column.id,
6071
- stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
6101
+ className: `${cell.column.id === 'titleResizable' ? 'ds-u-word-break' : ''}`,
6102
+ headers: 'dataDictionary_' + cell.column.id,
6103
+ stackedTitle: cell.column.id === 'titleResizable' ? 'Title' : cell.column.columnDef.header,
6072
6104
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
6073
6105
  });
6074
6106
  })
@@ -6091,7 +6123,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6091
6123
  table.setPageIndex(page - 1);
6092
6124
  },
6093
6125
  renderHref: (page)=>`/page=${page}`
6094
- }) : ""
6126
+ }) : ''
6095
6127
  ]
6096
6128
  });
6097
6129
  };
@@ -6101,17 +6133,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
6101
6133
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
6102
6134
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6103
6135
  const tableColumns = [
6104
- columnHelper.accessor("name", {
6105
- header: "Name"
6136
+ columnHelper.accessor('name', {
6137
+ header: 'Name'
6106
6138
  }),
6107
- columnHelper.accessor("title", {
6108
- header: "Title"
6139
+ columnHelper.accessor('title', {
6140
+ header: 'Title'
6109
6141
  }),
6110
- columnHelper.accessor("type", {
6111
- header: "Type"
6142
+ columnHelper.accessor('type', {
6143
+ header: 'Type'
6112
6144
  }),
6113
- columnHelper.accessor("format", {
6114
- header: "Format"
6145
+ columnHelper.accessor('format', {
6146
+ header: 'Format'
6115
6147
  })
6116
6148
  ];
6117
6149
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -6155,7 +6187,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6155
6187
  });
6156
6188
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6157
6189
  const tableColumns = [
6158
- columnHelper.accessor("titleResizable", {
6190
+ columnHelper.accessor('titleResizable', {
6159
6191
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6160
6192
  className: "dc-c-tooltip-width-override",
6161
6193
  children: [
@@ -6164,8 +6196,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6164
6196
  title: "Title represents the column headers of the data file",
6165
6197
  // @ts-ignore
6166
6198
  style: {
6167
- border: "none",
6168
- background: "none"
6199
+ border: 'none',
6200
+ background: 'none'
6169
6201
  },
6170
6202
  maxWidth: "400px",
6171
6203
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -6175,48 +6207,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6175
6207
  size: 300,
6176
6208
  minSize: 132
6177
6209
  }),
6178
- columnHelper.accessor("description", {
6179
- header: "Description",
6210
+ columnHelper.accessor('description', {
6211
+ header: 'Description',
6180
6212
  minSize: 600
6181
6213
  }),
6182
- columnHelper.accessor("type", {
6183
- header: "Type",
6214
+ columnHelper.accessor('type', {
6215
+ header: 'Type',
6184
6216
  size: 150,
6185
6217
  enableResizing: false
6186
6218
  })
6187
6219
  ];
6188
6220
  const typeOptions = [
6189
6221
  {
6190
- value: "all",
6191
- label: "All Types"
6222
+ value: 'all',
6223
+ label: 'All Types'
6192
6224
  },
6193
6225
  {
6194
- value: "string",
6195
- label: "String"
6226
+ value: 'string',
6227
+ label: 'String'
6196
6228
  },
6197
6229
  {
6198
- value: "date",
6199
- label: "Date"
6230
+ value: 'date',
6231
+ label: 'Date'
6200
6232
  },
6201
6233
  {
6202
- value: "datetime",
6203
- label: "Datetime"
6234
+ value: 'datetime',
6235
+ label: 'Datetime'
6204
6236
  },
6205
6237
  {
6206
- value: "year",
6207
- label: "Year"
6238
+ value: 'year',
6239
+ label: 'Year'
6208
6240
  },
6209
6241
  {
6210
- value: "integer",
6211
- label: "Integer"
6242
+ value: 'integer',
6243
+ label: 'Integer'
6212
6244
  },
6213
6245
  {
6214
- value: "number",
6215
- label: "Number"
6246
+ value: 'number',
6247
+ label: 'Number'
6216
6248
  },
6217
6249
  {
6218
- value: "boolean",
6219
- label: "Boolean"
6250
+ value: 'boolean',
6251
+ label: 'Boolean'
6220
6252
  }
6221
6253
  ];
6222
6254
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -6323,7 +6355,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
6323
6355
  href: datasetDictionaryEndpoint + "/csv",
6324
6356
  className: "ds-c-button",
6325
6357
  style: {
6326
- width: "100%"
6358
+ width: '100%'
6327
6359
  },
6328
6360
  children: [
6329
6361
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -6380,7 +6412,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6380
6412
  const [description, setDescription] = (0, $hgUW1$useState)("");
6381
6413
  if (!distribution && !dataset?.identifier) return null;
6382
6414
  (0, $hgUW1$useEffect)(()=>{
6383
- let newDescription = "";
6415
+ let newDescription = '';
6384
6416
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
6385
6417
  else {
6386
6418
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -6395,7 +6427,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6395
6427
  customDescription
6396
6428
  ]);
6397
6429
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6398
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
6430
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
6399
6431
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6400
6432
  className: "ds-u-margin-top--0 dc-c-metadata-description",
6401
6433
  children: typeof description === "string" ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6419,7 +6451,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6419
6451
  ],
6420
6452
  queryFn: ()=>{
6421
6453
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
6422
- arrayFormat: "comma",
6454
+ arrayFormat: 'comma',
6423
6455
  encode: false
6424
6456
  })}`).then((res)=>res.json());
6425
6457
  }
@@ -6429,7 +6461,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6429
6461
  dataDictionaryLoading: isPending
6430
6462
  };
6431
6463
  };
6432
- const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive, showRowLimitNotice: showRowLimitNotice = false })=>{
6464
+ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25, dataDictionaryCSV: dataDictionaryCSV = false, dataDictionaryBanner: dataDictionaryBanner = false, disableTableControls: disableTableControls = false, hideDataDictionary: hideDataDictionary = false, customDescription: customDescription, updateAriaLive: updateAriaLive, showRowLimitNotice: showRowLimitNotice = false, enableEmptyFilters: enableEmptyFilters = false })=>{
6433
6465
  const options = location.search ? {
6434
6466
  ...(0, $hgUW1$qs).parse(location.search, {
6435
6467
  ignoreQueryPrefix: true
@@ -6438,7 +6470,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6438
6470
  conditions: []
6439
6471
  };
6440
6472
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6441
- const title = dataset.title ? dataset.title : "";
6473
+ const title = dataset.title ? dataset.title : '';
6442
6474
  const metadataMapping = {
6443
6475
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
6444
6476
  ...customMetadataMapping
@@ -6446,7 +6478,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6446
6478
  let distribution = {};
6447
6479
  let distributions = dataset.distribution ? dataset.distribution : [];
6448
6480
  if (distributions.length) distribution = distributions[0];
6449
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6481
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6450
6482
  ...options,
6451
6483
  limit: defaultPageSize
6452
6484
  }, {
@@ -6460,7 +6492,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6460
6492
  }) : null;
6461
6493
  (0, $hgUW1$useEffect)(()=>{
6462
6494
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6463
- if (localFileFormat === "csv") resource.setResource(distribution.identifier);
6495
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6464
6496
  }, [
6465
6497
  distribution
6466
6498
  ]);
@@ -6515,26 +6547,26 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6515
6547
  distribution,
6516
6548
  window.location.hash
6517
6549
  ]);
6518
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6550
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6519
6551
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6520
6552
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
6521
6553
  content: notFoundContent,
6522
6554
  siteUrl: rootUrl
6523
6555
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6524
- className: "ds-l-container",
6556
+ className: 'ds-l-container',
6525
6557
  children: [
6526
6558
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6527
- className: "ds-l-row",
6559
+ className: 'ds-l-row',
6528
6560
  children: [
6529
6561
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6530
- className: "ds-l-md-col--9",
6562
+ className: 'ds-l-md-col--9',
6531
6563
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6532
6564
  className: "ds-text-heading--3xl",
6533
6565
  children: title
6534
6566
  })
6535
6567
  }),
6536
6568
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6537
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6569
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6538
6570
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6539
6571
  className: "ds-u-margin--0",
6540
6572
  children: [
@@ -6546,7 +6578,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6546
6578
  })
6547
6579
  }),
6548
6580
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6549
- className: "ds-l-md-col--9",
6581
+ className: 'ds-l-md-col--9',
6550
6582
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6551
6583
  distribution: distribution,
6552
6584
  dataset: dataset,
@@ -6558,9 +6590,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6558
6590
  ]
6559
6591
  }),
6560
6592
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6561
- className: "ds-l-row",
6593
+ className: 'ds-l-row',
6562
6594
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6563
- className: "ds-l-md-col--12 dc-dataset",
6595
+ className: 'ds-l-md-col--12 dc-dataset',
6564
6596
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
6565
6597
  onChange: (selectedId, prevSelectedId)=>{
6566
6598
  setSelectedTab(selectedId);
@@ -6568,7 +6600,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6568
6600
  selectedId: selectedTab,
6569
6601
  children: [
6570
6602
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6571
- id: "data-table",
6603
+ id: 'data-table',
6572
6604
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6573
6605
  className: "ds-u-color--primary",
6574
6606
  children: [
@@ -6578,7 +6610,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6578
6610
  "Data Table"
6579
6611
  ]
6580
6612
  }),
6581
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6613
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6582
6614
  children: (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6583
6615
  value: {
6584
6616
  id: id,
@@ -6587,7 +6619,8 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6587
6619
  rootUrl: rootUrl,
6588
6620
  customColumns: customColumns,
6589
6621
  dataDictionaryBanner: dataDictionaryBanner && displayDataDictionaryTab,
6590
- datasetTableControls: !disableTableControls
6622
+ datasetTableControls: !disableTableControls,
6623
+ enableEmptyFilters: enableEmptyFilters
6591
6624
  },
6592
6625
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $39bc4d98030a5599$export$2e2bcd8739ae039), {})
6593
6626
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
@@ -6595,7 +6628,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6595
6628
  })
6596
6629
  }),
6597
6630
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6598
- id: "overview",
6631
+ id: 'overview',
6599
6632
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6600
6633
  className: "ds-u-color--primary",
6601
6634
  children: [
@@ -6605,7 +6638,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6605
6638
  "Overview"
6606
6639
  ]
6607
6640
  }),
6608
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6641
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6609
6642
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
6610
6643
  resource: resource,
6611
6644
  dataset: dataset,
@@ -6615,7 +6648,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6615
6648
  })
6616
6649
  }),
6617
6650
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6618
- id: "data-dictionary",
6651
+ id: 'data-dictionary',
6619
6652
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6620
6653
  className: "ds-u-color--primary",
6621
6654
  children: [
@@ -6625,7 +6658,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6625
6658
  "Data Dictionary"
6626
6659
  ]
6627
6660
  }),
6628
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6661
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6629
6662
  children: displayDataDictionaryTab ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
6630
6663
  datasetSitewideDictionary: datasetSitewideDictionary,
6631
6664
  datasetDictionaryEndpoint: distribution.data.describedBy,
@@ -6636,7 +6669,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6636
6669
  })
6637
6670
  }),
6638
6671
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6639
- id: "api",
6672
+ id: 'api',
6640
6673
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6641
6674
  className: "ds-u-color--primary",
6642
6675
  children: [
@@ -6646,7 +6679,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6646
6679
  "API"
6647
6680
  ]
6648
6681
  }),
6649
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6682
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6650
6683
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
6651
6684
  id: id,
6652
6685
  rootUrl: rootUrl,
@@ -6683,13 +6716,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6683
6716
  });
6684
6717
  const menu = (0, $hgUW1$useRef)(null);
6685
6718
  function closeMobileMenu() {
6686
- const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
6719
+ const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
6687
6720
  if (!mobileMenuButtonElement) return;
6688
6721
  mobileMenuButtonElement.focus();
6689
6722
  }
6690
6723
  // Close mobile menu with escape.
6691
6724
  function handleMenuClose(event) {
6692
- if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
6725
+ if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
6693
6726
  }
6694
6727
  function handleClick(event) {
6695
6728
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -6724,7 +6757,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6724
6757
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
6725
6758
  const firstEl = focusableEls[0];
6726
6759
  const lastEl = focusableEls[focusableEls.length - 1];
6727
- if (event.key === "Tab") {
6760
+ if (event.key === 'Tab') {
6728
6761
  if (event.shiftKey && document.activeElement === firstEl) {
6729
6762
  lastEl?.focus();
6730
6763
  event.preventDefault();
@@ -6736,15 +6769,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6736
6769
  }
6737
6770
  };
6738
6771
  (0, $hgUW1$useEffect)(()=>{
6739
- document.addEventListener("keyup", handleMenuClose);
6740
- document.addEventListener("mousedown", handleClick);
6772
+ document.addEventListener('keyup', handleMenuClose);
6773
+ document.addEventListener('mousedown', handleClick);
6741
6774
  if (mobileMenuOpen) handleFocusIn();
6742
6775
  else closeMobileMenu();
6743
- if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
6776
+ if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
6744
6777
  return ()=>{
6745
- document.removeEventListener("keyup", handleMenuClose);
6746
- document.addEventListener("mousedown", handleClick);
6747
- if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
6778
+ document.removeEventListener('keyup', handleMenuClose);
6779
+ document.addEventListener('mousedown', handleClick);
6780
+ if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
6748
6781
  };
6749
6782
  }, [
6750
6783
  mobileMenuOpen
@@ -6759,7 +6792,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6759
6792
  },
6760
6793
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
6761
6794
  "aria-label": "Site header",
6762
- className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
6795
+ className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
6763
6796
  children: [
6764
6797
  topNav && topNav,
6765
6798
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6798,7 +6831,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6798
6831
  onClick: clickHandler ? clickHandler : undefined,
6799
6832
  children: [
6800
6833
  innerHtml,
6801
- link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6834
+ link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6802
6835
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
6803
6836
  })
6804
6837
  ]
@@ -6808,7 +6841,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6808
6841
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
6809
6842
 
6810
6843
 
6811
- 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", {
6844
+ 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", {
6812
6845
  children: [
6813
6846
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6814
6847
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -6896,14 +6929,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6896
6929
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
6897
6930
  className: "ds-u-font-size--sm",
6898
6931
  children: footerAdditionalResourcesLinks.filter((link)=>{
6899
- const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
6932
+ const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
6900
6933
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
6901
6934
  }).map((link)=>{
6902
6935
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
6903
6936
  className: "ds-u-margin-bottom--1",
6904
6937
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
6905
6938
  href: link.url,
6906
- ["data-" + link.dataTag.name]: link.dataTag.value,
6939
+ ['data-' + link.dataTag.name]: link.dataTag.value,
6907
6940
  onClick: link.onClick,
6908
6941
  children: link.label
6909
6942
  })
@@ -7003,7 +7036,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7003
7036
  children: [
7004
7037
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7005
7038
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
7006
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
7039
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
7007
7040
  }),
7008
7041
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7009
7042
  transform: "translate(160 256)",
@@ -7056,7 +7089,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7056
7089
  children: [
7057
7090
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7058
7091
  id: "svg-inline--fa-title-4z03ITiPPTVF",
7059
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
7092
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
7060
7093
  }),
7061
7094
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7062
7095
  transform: "translate(256 256)",
@@ -7109,7 +7142,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7109
7142
  children: [
7110
7143
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7111
7144
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
7112
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
7145
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
7113
7146
  }),
7114
7147
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7115
7148
  transform: "translate(224 256)",
@@ -7161,7 +7194,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7161
7194
  children: [
7162
7195
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7163
7196
  id: "svg-inline--fa-title-youtube",
7164
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
7197
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
7165
7198
  }),
7166
7199
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
7167
7200
  fill: "currentColor",
@@ -7196,7 +7229,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7196
7229
  className: "ds-u-margin-right--2",
7197
7230
  children: [
7198
7231
  link.label,
7199
- link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7232
+ link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7200
7233
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
7201
7234
  })
7202
7235
  ]
@@ -7266,26 +7299,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7266
7299
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
7267
7300
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
7268
7301
  stackable: true,
7269
- className: "ds-c-table",
7302
+ className: 'ds-c-table',
7270
7303
  children: [
7271
7304
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
7272
7305
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
7273
7306
  children: [
7274
7307
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7275
- id: "application",
7276
- headers: "Application",
7308
+ id: 'application',
7309
+ headers: 'Application',
7277
7310
  children: "Application"
7278
- }, "Application"),
7311
+ }, 'Application'),
7279
7312
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7280
- id: "notes",
7281
- headers: "Notes",
7313
+ id: 'notes',
7314
+ headers: 'Notes',
7282
7315
  children: "Notes"
7283
- }, "Notes"),
7316
+ }, 'Notes'),
7284
7317
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7285
- id: "links",
7286
- headers: "Links",
7318
+ id: 'links',
7319
+ headers: 'Links',
7287
7320
  children: "Links"
7288
- }, "Links")
7321
+ }, 'Links')
7289
7322
  ]
7290
7323
  })
7291
7324
  }),
@@ -7295,19 +7328,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7295
7328
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7296
7329
  id: d.id,
7297
7330
  stackedTitle: "Application",
7298
- headers: "Application",
7331
+ headers: 'Application',
7299
7332
  children: d.application
7300
7333
  }, d.id),
7301
7334
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7302
7335
  id: d.id,
7303
7336
  stackedTitle: "Notes",
7304
- headers: "Notes",
7337
+ headers: 'Notes',
7305
7338
  children: d.notes
7306
7339
  }, `${d.id}-notes`),
7307
7340
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7308
7341
  id: d.id,
7309
7342
  stackedTitle: "Links",
7310
- headers: "Links",
7343
+ headers: 'Links',
7311
7344
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
7312
7345
  className: "dkan-newtab",
7313
7346
  href: d.link,
@@ -7335,44 +7368,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
7335
7368
 
7336
7369
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
7337
7370
  {
7338
- id: "excel",
7339
- application: "Microsoft Excel",
7340
- notes: "Official size limitations for Microsoft Excel",
7341
- 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",
7342
- linkText: "Excel Specifications and Limits",
7343
- screenReaderOnlyText: "on microsoft.com"
7371
+ id: 'excel',
7372
+ application: 'Microsoft Excel',
7373
+ notes: 'Official size limitations for Microsoft Excel',
7374
+ 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',
7375
+ linkText: 'Excel Specifications and Limits',
7376
+ screenReaderOnlyText: 'on microsoft.com'
7344
7377
  },
7345
7378
  {
7346
- id: "access",
7347
- application: "Microsoft Access",
7348
- notes: "Official size limitations for Microsoft Access",
7349
- link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
7350
- linkText: "Access 2016 Specifications",
7351
- screenReaderOnlyText: "on microsoft.com"
7379
+ id: 'access',
7380
+ application: 'Microsoft Access',
7381
+ notes: 'Official size limitations for Microsoft Access',
7382
+ link: 'https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us',
7383
+ linkText: 'Access 2016 Specifications',
7384
+ screenReaderOnlyText: 'on microsoft.com'
7352
7385
  },
7353
7386
  {
7354
- id: "oracle-sql-developer",
7355
- application: "Oracle SQL Developer",
7356
- notes: "Oracle SQL Developer tool",
7357
- link: "https://www.oracle.com/database/sqldeveloper/",
7358
- linkText: "Oracle SQL Developer Overview",
7359
- screenReaderOnlyText: "on oracle.com"
7387
+ id: 'oracle-sql-developer',
7388
+ application: 'Oracle SQL Developer',
7389
+ notes: 'Oracle SQL Developer tool',
7390
+ link: 'https://www.oracle.com/database/sqldeveloper/',
7391
+ linkText: 'Oracle SQL Developer Overview',
7392
+ screenReaderOnlyText: 'on oracle.com'
7360
7393
  },
7361
7394
  {
7362
- id: "oracle-database",
7363
- application: "Oracle Database",
7364
- notes: "Oracle Database official size limitations",
7365
- link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
7366
- linkText: "Oracle Physical Database Limits",
7367
- screenReaderOnlyText: "on oracle.com"
7395
+ id: 'oracle-database',
7396
+ application: 'Oracle Database',
7397
+ notes: 'Oracle Database official size limitations',
7398
+ link: 'https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915',
7399
+ linkText: 'Oracle Physical Database Limits',
7400
+ screenReaderOnlyText: 'on oracle.com'
7368
7401
  },
7369
7402
  {
7370
- id: "oracle-sql-client-tools",
7371
- application: "Oracle SQL Client Tools",
7372
- notes: "Oracle SQL Client Tools",
7373
- link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
7374
- linkText: "Oracle SQL Client",
7375
- screenReaderOnlyText: "on oracle.com"
7403
+ id: 'oracle-sql-client-tools',
7404
+ application: 'Oracle SQL Client Tools',
7405
+ notes: 'Oracle SQL Client Tools',
7406
+ link: 'https://www.oracle.com/database/technologies/oracle-database-software-downloads.html',
7407
+ linkText: 'Oracle SQL Client',
7408
+ screenReaderOnlyText: 'on oracle.com'
7376
7409
  }
7377
7410
  ];
7378
7411
 
@@ -7400,7 +7433,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7400
7433
  }),
7401
7434
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
7402
7435
  heading: "Notice",
7403
- className: "ds-u-margin-top--6",
7436
+ className: 'ds-u-margin-top--6',
7404
7437
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
7405
7438
  className: "ds-c-alert__text",
7406
7439
  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."
@@ -7409,16 +7442,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7409
7442
  ]
7410
7443
  }),
7411
7444
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7412
- className: "ds-u-margin-top--4 ds-l-row",
7445
+ className: 'ds-u-margin-top--4 ds-l-row',
7413
7446
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7414
- className: "ds-l-col--12",
7447
+ className: 'ds-l-col--12',
7415
7448
  children: [
7416
7449
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
7417
7450
  className: "ds-text-heading--2xl ds-text-heading--2xl",
7418
7451
  children: "Documentation by Application"
7419
7452
  }),
7420
7453
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7421
- className: "ds-u-margin-top--4",
7454
+ className: 'ds-u-margin-top--4',
7422
7455
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
7423
7456
  data: documentationList
7424
7457
  })
@@ -7446,7 +7479,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7446
7479
  const options = {
7447
7480
  conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
7448
7481
  property: column,
7449
- operator: operator === "is" ? "=" : operator === "is not" ? "<>" : operator === "or" ? "in" : operator,
7482
+ operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
7450
7483
  ...rest
7451
7484
  })) : []
7452
7485
  };
@@ -7454,13 +7487,13 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7454
7487
  let distribution = {};
7455
7488
  let distributions = dataset.distribution ? dataset.distribution : [];
7456
7489
  if (distributions.length) distribution = distributions[distributionIndex];
7457
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7490
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7458
7491
  ...options,
7459
7492
  limit: defaultPageSize
7460
7493
  });
7461
7494
  (0, $hgUW1$useEffect)(()=>{
7462
7495
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
7463
- if (localFileFormat === "csv") resource.setResource(distribution.identifier);
7496
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
7464
7497
  }, [
7465
7498
  distribution
7466
7499
  ]);
@@ -7510,7 +7543,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7510
7543
 
7511
7544
 
7512
7545
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
7513
- if (schema[id].fields[condition.property].mysql_type === "date") {
7546
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
7514
7547
  const newDate = new Date(condition.value);
7515
7548
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
7516
7549
  }
@@ -7527,9 +7560,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7527
7560
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
7528
7561
  (0, $hgUW1$useEffect)(()=>{
7529
7562
  if (property !== condition.property) {
7530
- if (property) update(index, "property", property);
7531
- else update(index, "property", "");
7532
- if (schema[id].fields[condition.property].mysql_type === "date") {
7563
+ if (property) update(index, 'property', property);
7564
+ else update(index, 'property', '');
7565
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
7533
7566
  if (!value) setValue(startDate.toJSON().slice(0, 10));
7534
7567
  }
7535
7568
  }
@@ -7543,16 +7576,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7543
7576
  ]);
7544
7577
  (0, $hgUW1$useEffect)(()=>{
7545
7578
  if (operator !== condition.operator) {
7546
- if (operator) update(index, "operator", operator);
7547
- else update(index, "operator", "");
7579
+ if (operator) update(index, 'operator', operator);
7580
+ else update(index, 'operator', '');
7548
7581
  }
7549
7582
  }, [
7550
7583
  operator
7551
7584
  ]);
7552
7585
  (0, $hgUW1$useEffect)(()=>{
7553
7586
  if (value !== condition.value) {
7554
- if (value) update(index, "value", value);
7555
- else update(index, "value", "");
7587
+ if (value) update(index, 'value', value);
7588
+ else update(index, 'value', '');
7556
7589
  }
7557
7590
  }, [
7558
7591
  value
@@ -7576,7 +7609,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7576
7609
  onChange: (e)=>setOperator(e.target.value),
7577
7610
  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"
7578
7611
  }),
7579
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7612
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7580
7613
  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",
7581
7614
  children: [
7582
7615
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -7666,12 +7699,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
7666
7699
  className: "ds-u-font-weight--bold",
7667
7700
  children: description
7668
7701
  }),
7669
- " ",
7702
+ ' ',
7670
7703
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7671
7704
  className: "ds-u-font-weight--normal",
7672
7705
  children: operator.label.toUpperCase()
7673
7706
  }),
7674
- " ",
7707
+ ' ',
7675
7708
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7676
7709
  className: "ds-u-color--success",
7677
7710
  children: formattedText
@@ -7698,19 +7731,19 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
7698
7731
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
7699
7732
  let cond = condition;
7700
7733
  delete cond.key;
7701
- if (cond.operator === "=" || cond.operator === "<>") {
7734
+ if (cond.operator === '=' || cond.operator === '<>') {
7702
7735
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7703
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
7736
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
7704
7737
  }
7705
- if (cond.operator.toLowerCase() === "like") {
7738
+ if (cond.operator.toLowerCase() === 'like') {
7706
7739
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7707
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
7740
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
7708
7741
  cond.value = `%${cleanedValue}%`;
7709
7742
  }
7710
- if (cond.operator.toLowerCase() === "in") {
7711
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
7743
+ if (cond.operator.toLowerCase() === 'in') {
7744
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
7712
7745
  }
7713
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
7746
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
7714
7747
  return cond;
7715
7748
  }
7716
7749
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -7730,7 +7763,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7730
7763
  ...queryConditions,
7731
7764
  {
7732
7765
  property: fields[0],
7733
- value: "",
7766
+ value: '',
7734
7767
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
7735
7768
  key: Date.now()
7736
7769
  }
@@ -7770,7 +7803,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7770
7803
  encodeValuesOnly: true,
7771
7804
  addQueryPrefix: true
7772
7805
  });
7773
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
7806
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
7774
7807
  };
7775
7808
  const updateCondition = (index, key, value)=>{
7776
7809
  let newConditions = [
@@ -7843,7 +7876,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
7843
7876
 
7844
7877
 
7845
7878
  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 })=>{
7846
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
7879
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
7847
7880
  let apiDocs = (0, $hgUW1$useRef)();
7848
7881
  let distribution = {};
7849
7882
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -7855,7 +7888,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7855
7888
  } : {
7856
7889
  conditions: []
7857
7890
  };
7858
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7891
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7859
7892
  ...options,
7860
7893
  limit: 25
7861
7894
  }, {
@@ -7871,7 +7904,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7871
7904
  }, {
7872
7905
  encode: true
7873
7906
  })}&format=csv`;
7874
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
7907
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
7875
7908
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
7876
7909
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7877
7910
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -7880,7 +7913,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7880
7913
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
7881
7914
  children: [
7882
7915
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7883
- className: "ds-l-md-col--9",
7916
+ className: 'ds-l-md-col--9',
7884
7917
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
7885
7918
  to: `/dataset/${id}`,
7886
7919
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -7891,14 +7924,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7891
7924
  })
7892
7925
  }),
7893
7926
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7894
- className: "ds-l-md-col--9",
7927
+ className: 'ds-l-md-col--9',
7895
7928
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
7896
7929
  className: "ds-text-heading--3xl",
7897
7930
  children: customTitle ? customTitle : pageTitle
7898
7931
  })
7899
7932
  }),
7900
7933
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7901
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
7934
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
7902
7935
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
7903
7936
  className: "ds-u-margin--0",
7904
7937
  children: [
@@ -7910,7 +7943,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7910
7943
  })
7911
7944
  }),
7912
7945
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7913
- className: "ds-l-md-col--9",
7946
+ className: 'ds-l-md-col--9',
7914
7947
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
7915
7948
  distribution: distribution,
7916
7949
  dataset: dataset,
@@ -7920,13 +7953,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7920
7953
  })
7921
7954
  }),
7922
7955
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7923
- className: "ds-l-md-col--12",
7956
+ className: 'ds-l-md-col--12',
7924
7957
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
7925
7958
  resource: resource,
7926
7959
  id: distribution.identifier,
7927
7960
  customColumns: customColumns,
7928
7961
  setOffset: resource.setOffset
7929
- }) : ""
7962
+ }) : ''
7930
7963
  }),
7931
7964
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
7932
7965
  value: {
@@ -7937,7 +7970,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7937
7970
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
7938
7971
  },
7939
7972
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7940
- className: "ds-l-md-col--12",
7973
+ className: 'ds-l-md-col--12',
7941
7974
  children: [
7942
7975
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
7943
7976
  includeDensity: true,
@@ -7959,14 +7992,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7959
7992
  ]
7960
7993
  })
7961
7994
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7962
- className: "ds-l-md-col--12",
7995
+ className: 'ds-l-md-col--12',
7963
7996
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
7964
7997
  role: "status",
7965
7998
  "aria-valuetext": "Resource loading"
7966
7999
  })
7967
8000
  }),
7968
8001
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7969
- className: "ds-l-md-col--12",
8002
+ className: 'ds-l-md-col--12',
7970
8003
  ref: apiDocs,
7971
8004
  children: [
7972
8005
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -7975,7 +8008,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7975
8008
  }),
7976
8009
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
7977
8010
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
7978
- docExpansion: "list",
8011
+ docExpansion: 'list',
7979
8012
  defaultModelsExpandDepth: -1
7980
8013
  })
7981
8014
  ]
@@ -7994,7 +8027,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
7994
8027
  const [ready, setReady] = (0, $hgUW1$useState)(false);
7995
8028
  const [error, setError] = (0, $hgUW1$useState)(false);
7996
8029
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
7997
- const distIndex = dist_id === "data" ? 0 : dist_id;
8030
+ const distIndex = dist_id === 'data' ? 0 : dist_id;
7998
8031
  (0, $hgUW1$useEffect)(()=>{
7999
8032
  if (dataset.error) setError(true);
8000
8033
  if (dataset.distribution && dataset.distribution.length) {