@civicactions/cmsds-open-data-components 3.8.1-alpha.2 → 3.8.2-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), {
@@ -285,17 +285,17 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
285
285
  function handleFocusOut(event) {
286
286
  if (currentMenu && !currentMenu.contains(event.relatedTarget)) setIsExpanded(false);
287
287
  }
288
- document.addEventListener('mousedown', handleClickOutside);
289
- currentMenu?.addEventListener('focusout', handleFocusOut);
288
+ document.addEventListener("mousedown", handleClickOutside);
289
+ currentMenu?.addEventListener("focusout", handleFocusOut);
290
290
  return ()=>{
291
- document.removeEventListener('mousedown', handleClickOutside);
292
- if (currentMenu) currentMenu.removeEventListener('focusout', handleFocusOut);
291
+ document.removeEventListener("mousedown", handleClickOutside);
292
+ if (currentMenu) currentMenu.removeEventListener("focusout", handleFocusOut);
293
293
  };
294
294
  }, [
295
295
  isExpanded
296
296
  ]);
297
297
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
298
- className: `dkan-c-nav-submenu has-submenu${isExpanded ? ' open' : ''}`,
298
+ className: `dkan-c-nav-submenu has-submenu${isExpanded ? " open" : ""}`,
299
299
  ref: menu,
300
300
  children: [
301
301
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
@@ -355,12 +355,12 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
355
355
  const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
356
356
  const { headingText: headingText = "Dataset Search" } = props;
357
357
  const navigate = (0, $hgUW1$useNavigate)();
358
- const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)('');
358
+ const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
359
359
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
360
360
  function searchForDataset(e) {
361
361
  e.preventDefault();
362
362
  if (window) {
363
- if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
363
+ if (window.location.pathname !== "/datasets") navigate(`/datasets?fulltext=${modalSearchTerm}`);
364
364
  else {
365
365
  window.location.search = `fulltext=${modalSearchTerm}`;
366
366
  setModalSearch(false);
@@ -427,9 +427,9 @@ const $b939b31651e82908$var$HeaderNav = (props)=>{
427
427
  const headerContext = (0, $hgUW1$react).useContext((0, $11500a65bd7d9cf1$export$2e2bcd8739ae039));
428
428
  const { links: links, topNavLinks: topNavLinks, wrapperClasses: wrapperClasses, searchInMobile: searchInMobile } = props;
429
429
  const navMenuOpenClass = `dkan-c-nav-menu--${headerContext.mobileMenuOpen ? "open" : "close"}`;
430
- const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? 'mobile' : 'desktop'}`;
431
- const linkClasses = 'dkan-c-header--link ds-c-button ds-c-button--ghost';
432
- const listClasses = 'dkan-c-header--link-list ';
430
+ const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? "mobile" : "desktop"}`;
431
+ const linkClasses = "dkan-c-header--link ds-c-button ds-c-button--ghost";
432
+ const listClasses = "dkan-c-header--link-list ";
433
433
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
434
434
  className: `dkan-c-nav-menu ${wrapperClasses} ${navMenuOpenClass} ${isMobileClass}`,
435
435
  ref: headerContext.menuRef,
@@ -599,8 +599,8 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
599
599
  const { title: title, links: links, mobileMax: mobileMax } = props;
600
600
  const active = (0, $hgUW1$useLocation)().pathname;
601
601
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
602
- const styleClasses = 'dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2';
603
- const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? 'mobile' : 'desktop'}`;
602
+ const styleClasses = "dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2";
603
+ const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? "mobile" : "desktop"}`;
604
604
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
605
605
  className: `dkan-c-sidebar-nav ${mobileClass}`,
606
606
  children: [
@@ -614,7 +614,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
614
614
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
615
615
  "aria-haspopup": "true",
616
616
  variation: "ghost",
617
- "aria-expanded": `${menuOpen ? 'true' : 'false'}`,
617
+ "aria-expanded": `${menuOpen ? "true" : "false"}`,
618
618
  onDark: true,
619
619
  onClick: ()=>setMenuOpen(!menuOpen),
620
620
  children: [
@@ -623,7 +623,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
623
623
  children: "Toggle menu"
624
624
  }),
625
625
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ArrowIcon), {
626
- direction: menuOpen ? 'up' : 'down'
626
+ direction: menuOpen ? "up" : "down"
627
627
  })
628
628
  ]
629
629
  })
@@ -632,7 +632,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
632
632
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
633
633
  className: ``,
634
634
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
635
- className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? 'open' : 'close'}`,
635
+ className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? "open" : "close"}`,
636
636
  children: [
637
637
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
638
638
  className: "ds-u-padding--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest",
@@ -644,7 +644,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
644
644
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
645
645
  className: "ds-u-padding-bottom--2",
646
646
  children: links.map(({ url: url, label: label })=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
647
- className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? 'active' : ''}`,
647
+ className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? "active" : ""}`,
648
648
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
649
649
  className: "ds-u-display--flex ds-u-padding-y--1",
650
650
  children: [
@@ -679,12 +679,12 @@ const $b0968edc60d7d3a4$var$SidebarPage = (props)=>{
679
679
  query: `(max-width: ${mobileMaxWidth}px)`
680
680
  });
681
681
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
682
- className: `${mobileMax ? "a" : 'ds-l-container'}`,
682
+ className: `${mobileMax ? "a" : "ds-l-container"}`,
683
683
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
684
- className: `${mobileMax ? "a" : 'ds-l-row'}`,
684
+ className: `${mobileMax ? "a" : "ds-l-row"}`,
685
685
  children: [
686
686
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
687
- className: `${mobileMax ? 'a' : "ds-l-col--4"}`,
687
+ className: `${mobileMax ? "a" : "ds-l-col--4"}`,
688
688
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $953b286f7778640e$export$2e2bcd8739ae039), {
689
689
  links: links,
690
690
  title: menuTitle,
@@ -707,9 +707,9 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
707
707
 
708
708
 
709
709
 
710
- const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = 'datasets', searchKey: searchKey = 'fulltext', textfieldLabel: textfieldLabel = 'Search for a dataset', searchButtonText: searchButtonText = 'Search' })=>{
710
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
711
711
  const navigate = (0, $hgUW1$useNavigate)();
712
- const [searchValue, setSearchValue] = (0, $hgUW1$react).useState('');
712
+ const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
713
713
  function submitHero(e) {
714
714
  e.preventDefault();
715
715
  navigate(`/${searchUrl}?${searchKey}=${searchValue}`);
@@ -736,24 +736,24 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
736
736
  onSubmit: (e)=>submitHero(e),
737
737
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
738
738
  style: {
739
- position: 'relative'
739
+ position: "relative"
740
740
  },
741
741
  className: "ds-l-row ds-u-align-items--stretch ds-u-margin-y--4 ds-u-flex-wrap--nowrap",
742
742
  children: [
743
743
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
744
744
  className: "ds-u-padding--0 ds-u-margin-right--1",
745
745
  style: {
746
- flex: '1 1 100%',
747
- maxWidth: '100%'
746
+ flex: "1 1 100%",
747
+ maxWidth: "100%"
748
748
  },
749
749
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
750
750
  label: textfieldLabel,
751
751
  labelClassName: "ds-u-visibility--screen-reader",
752
752
  name: "search_text_input",
753
753
  style: {
754
- maxWidth: 'none',
755
- height: '61px',
756
- margin: '0 20px 0 0'
754
+ maxWidth: "none",
755
+ height: "61px",
756
+ margin: "0 20px 0 0"
757
757
  },
758
758
  onChange: (e)=>setSearchValue(e.target.value)
759
759
  })
@@ -795,7 +795,7 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
795
795
 
796
796
  const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
797
797
  switch(props.id){
798
- case 'overview':
798
+ case "overview":
799
799
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
800
800
  width: "16px",
801
801
  height: "16px",
@@ -837,7 +837,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
837
837
  })
838
838
  ]
839
839
  });
840
- case 'data-table':
840
+ case "data-table":
841
841
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
842
842
  width: "16px",
843
843
  height: "12px",
@@ -869,7 +869,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
869
869
  })
870
870
  ]
871
871
  });
872
- case 'api':
872
+ case "api":
873
873
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
874
874
  width: "16px",
875
875
  height: "13px",
@@ -901,7 +901,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
901
901
  })
902
902
  ]
903
903
  });
904
- case 'download':
904
+ case "download":
905
905
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
906
906
  width: "16px",
907
907
  height: "16px",
@@ -930,7 +930,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
930
930
  })
931
931
  ]
932
932
  });
933
- case 'data-dictionary':
933
+ case "data-dictionary":
934
934
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
935
935
  width: "14px",
936
936
  height: "16px",
@@ -1029,14 +1029,14 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
1029
1029
 
1030
1030
 
1031
1031
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1032
- year: 'numeric',
1033
- month: 'long',
1034
- day: 'numeric',
1035
- timeZone: 'UTC'
1032
+ year: "numeric",
1033
+ month: "long",
1034
+ day: "numeric",
1035
+ timeZone: "UTC"
1036
1036
  } })=>{
1037
1037
  const rawDate = new Date(date);
1038
- let modifiedDate = '';
1039
- if (rawDate) modifiedDate = rawDate.toLocaleDateString('en-US', options);
1038
+ let modifiedDate = "";
1039
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1040
1040
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1041
1041
  children: modifiedDate
1042
1042
  });
@@ -1048,13 +1048,13 @@ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$Transformed
1048
1048
 
1049
1049
 
1050
1050
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
1051
- if (!textString) return '';
1051
+ if (!textString) return "";
1052
1052
  let cleanedText = textString;
1053
- if (cleanedText.split('</p>').length > 1) cleanedText = cleanedText.split('</p>')[0];
1054
- if (cleanedText.split('<br/>').length > 1) cleanedText = cleanedText.split('<br/>')[0];
1053
+ if (cleanedText.split("</p>").length > 1) cleanedText = cleanedText.split("</p>")[0];
1054
+ if (cleanedText.split("<br/>").length > 1) cleanedText = cleanedText.split("<br/>")[0];
1055
1055
  cleanedText = (0, $hgUW1$lodashtruncate)(cleanedText, {
1056
- 'length': textLength,
1057
- 'separator': ' '
1056
+ "length": textLength,
1057
+ "separator": " "
1058
1058
  });
1059
1059
  return (0, $hgUW1$dompurify).sanitize(cleanedText, {
1060
1060
  ALLOWED_TAGS: []
@@ -1068,25 +1068,25 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1068
1068
  minWidth: 1024
1069
1069
  });
1070
1070
  const { title: title, modified: modified, description: description, identifier: identifier, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1071
- let linkContainerClasses = 'ds-u-margin-bottom--2';
1072
- if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1073
- else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1074
- let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1071
+ let linkContainerClasses = "ds-u-margin-bottom--2";
1072
+ if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1073
+ else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1074
+ let linkClasses = "ds-u-display--block ds-u-text-align--left";
1075
1075
  if (desktop) {
1076
- linkContainerClasses = 'ds-u-padding-x--0';
1077
- linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1076
+ linkContainerClasses = "ds-u-padding-x--0";
1077
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1078
1078
  }
1079
1079
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1080
1080
  className: "dc-c-search-list-item ds-u-padding-top--3",
1081
1081
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1082
- className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1082
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1083
1083
  children: [
1084
1084
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1085
1085
  className: "ds-l-row ds-u-align-items--start",
1086
1086
  children: [
1087
1087
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1088
1088
  id: `dataset-${identifier}-updated-date`,
1089
- className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? 'ds-u-padding-top--2' : 'ds-u-padding-top--0'}`,
1089
+ className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1090
1090
  children: [
1091
1091
  "Updated ",
1092
1092
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
@@ -1128,9 +1128,9 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1128
1128
  "Download"
1129
1129
  ]
1130
1130
  })
1131
- }) : '',
1131
+ }) : "",
1132
1132
  /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
1133
- 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' : ''}`,
1133
+ 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" : ""}`,
1134
1134
  children: [
1135
1135
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1136
1136
  className: linkContainerClasses,
@@ -1176,7 +1176,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1176
1176
  ]
1177
1177
  })
1178
1178
  })
1179
- }) : '',
1179
+ }) : "",
1180
1180
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1181
1181
  className: linkContainerClasses,
1182
1182
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1228,7 +1228,7 @@ var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocument
1228
1228
 
1229
1229
 
1230
1230
 
1231
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = 'data-table-results' })=>{
1231
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
1232
1232
  const numTotalRows = totalRows;
1233
1233
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
1234
1234
  className: className,
@@ -1246,18 +1246,18 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
1246
1246
  className: className,
1247
1247
  children: [
1248
1248
  "Displaying",
1249
- ' ',
1249
+ " ",
1250
1250
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1251
1251
  className: "ds-u-font-weight--bold",
1252
1252
  children: `${startTotal().toLocaleString()} - ${ofTotal().toLocaleString()}`
1253
1253
  }),
1254
- ' ',
1254
+ " ",
1255
1255
  "of ",
1256
1256
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1257
1257
  className: "ds-u-font-weight--bold",
1258
1258
  children: `${numTotalRows.toLocaleString()}`
1259
1259
  }),
1260
- ' ',
1260
+ " ",
1261
1261
  "results"
1262
1262
  ]
1263
1263
  });
@@ -1283,16 +1283,16 @@ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePaddi
1283
1283
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1284
1284
  options: [
1285
1285
  {
1286
- label: 'Tight',
1287
- value: 'ds-u-padding-y--0'
1286
+ label: "Tight",
1287
+ value: "ds-u-padding-y--0"
1288
1288
  },
1289
1289
  {
1290
- label: 'Normal',
1291
- value: 'ds-u-padding-y--1'
1290
+ label: "Normal",
1291
+ value: "ds-u-padding-y--1"
1292
1292
  },
1293
1293
  {
1294
- label: 'Expanded',
1295
- value: 'ds-u-padding-y--2'
1294
+ label: "Expanded",
1295
+ value: "ds-u-padding-y--2"
1296
1296
  }
1297
1297
  ],
1298
1298
  label: "Display density:",
@@ -1535,7 +1535,7 @@ function $aa4450dcbeef3ac0$export$385a5aba38cc3325(sortArray) {
1535
1535
  sortArray.forEach((s)=>{
1536
1536
  return newQuery.push({
1537
1537
  property: s.id,
1538
- order: s.desc ? 'desc' : 'asc'
1538
+ order: s.desc ? "desc" : "asc"
1539
1539
  });
1540
1540
  });
1541
1541
  return newQuery;
@@ -1573,103 +1573,103 @@ function $7264a673914aa746$export$e284ae5d89467c8f(date) {
1573
1573
  }
1574
1574
  function $7264a673914aa746$export$6b5e57d20078142b(value, operator) {
1575
1575
  let newValue = value;
1576
- if (Array.isArray(newValue)) newValue = newValue.join(',');
1576
+ if (Array.isArray(newValue)) newValue = newValue.join(",");
1577
1577
  // return newValue.replace(/(^\%+|\%+$)/gm, '');
1578
1578
  return newValue;
1579
1579
  }
1580
1580
  const $7264a673914aa746$export$5f89a5ae87bc48e1 = [
1581
1581
  {
1582
- label: 'Is',
1583
- value: '='
1582
+ label: "Is",
1583
+ value: "="
1584
1584
  },
1585
1585
  {
1586
- label: 'Starts With',
1587
- value: 'starts with'
1586
+ label: "Starts With",
1587
+ value: "starts with"
1588
1588
  },
1589
1589
  {
1590
- label: 'Contains',
1591
- value: 'contains'
1590
+ label: "Contains",
1591
+ value: "contains"
1592
1592
  },
1593
1593
  {
1594
- label: 'Is Not',
1595
- value: '<>'
1594
+ label: "Is Not",
1595
+ value: "<>"
1596
1596
  },
1597
1597
  {
1598
- label: 'Or',
1599
- value: 'in'
1598
+ label: "Or",
1599
+ value: "in"
1600
1600
  },
1601
1601
  {
1602
- label: 'Is',
1603
- value: '='
1602
+ label: "Is",
1603
+ value: "="
1604
1604
  },
1605
1605
  {
1606
- label: 'Is Not',
1607
- value: '<>'
1606
+ label: "Is Not",
1607
+ value: "<>"
1608
1608
  },
1609
1609
  {
1610
- label: 'Greater Than',
1611
- value: '>'
1610
+ label: "Greater Than",
1611
+ value: ">"
1612
1612
  },
1613
1613
  {
1614
- label: 'Less Than',
1615
- value: '<'
1614
+ label: "Less Than",
1615
+ value: "<"
1616
1616
  }
1617
1617
  ];
1618
1618
  function $7264a673914aa746$export$2b9377795161999(type) {
1619
1619
  switch(type){
1620
- case 'text':
1621
- case 'string':
1620
+ case "text":
1621
+ case "string":
1622
1622
  return [
1623
1623
  {
1624
- label: 'Is',
1625
- value: '='
1624
+ label: "Is",
1625
+ value: "="
1626
1626
  },
1627
1627
  {
1628
- label: 'Starts With',
1629
- value: 'starts with'
1628
+ label: "Starts With",
1629
+ value: "starts with"
1630
1630
  },
1631
1631
  {
1632
- label: 'Contains',
1633
- value: 'contains'
1632
+ label: "Contains",
1633
+ value: "contains"
1634
1634
  },
1635
1635
  {
1636
- label: 'Is Not',
1637
- value: '<>'
1636
+ label: "Is Not",
1637
+ value: "<>"
1638
1638
  },
1639
1639
  {
1640
- label: 'Or',
1641
- value: 'in'
1640
+ label: "Or",
1641
+ value: "in"
1642
1642
  }
1643
1643
  ];
1644
- case 'date':
1644
+ case "date":
1645
1645
  return [
1646
1646
  {
1647
- label: 'Is',
1648
- value: '='
1647
+ label: "Is",
1648
+ value: "="
1649
1649
  },
1650
1650
  {
1651
- label: 'Is Not',
1652
- value: '<>'
1651
+ label: "Is Not",
1652
+ value: "<>"
1653
1653
  },
1654
1654
  {
1655
- label: 'Greater Than',
1656
- value: '>'
1655
+ label: "Greater Than",
1656
+ value: ">"
1657
1657
  },
1658
1658
  {
1659
- label: 'Less Than',
1660
- value: '<'
1659
+ label: "Less Than",
1660
+ value: "<"
1661
1661
  }
1662
1662
  ];
1663
1663
  default:
1664
1664
  // These 2 should be safe for all data types
1665
1665
  return [
1666
1666
  {
1667
- label: 'Is',
1668
- value: '='
1667
+ label: "Is",
1668
+ value: "="
1669
1669
  },
1670
1670
  {
1671
- label: 'Is Not',
1672
- value: '<>'
1671
+ label: "Is Not",
1672
+ value: "<>"
1673
1673
  }
1674
1674
  ];
1675
1675
  }
@@ -1686,7 +1686,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
1686
1686
 
1687
1687
 
1688
1688
  const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback })=>{
1689
- const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)('');
1689
+ const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
1690
1690
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
1691
1691
  key: header.id,
1692
1692
  style: {
@@ -1699,13 +1699,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1699
1699
  children: [
1700
1700
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1701
1701
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1702
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : '',
1702
+ title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
1703
1703
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
1704
1704
  })
1705
1705
  }),
1706
1706
  sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
1707
1707
  onClick: header.column.getToggleSortingHandler(),
1708
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
1708
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
1709
1709
  "aria-label": `${header.column.columnDef.header} sort order`
1710
1710
  })
1711
1711
  ]
@@ -1713,18 +1713,18 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1713
1713
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
1714
1714
  onMouseDown: header.getResizeHandler(),
1715
1715
  onTouchStart: header.getResizeHandler(),
1716
- className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? 'isResizing' : ''}`,
1716
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
1717
1717
  "aria-label": `Resize ${header.column.columnDef.header} column`,
1718
1718
  onKeyDown: (e)=>{
1719
1719
  const columnSizingObject = table.getState().columnSizing;
1720
1720
  switch(e.key){
1721
- case 'Enter':
1722
- case ' ':
1721
+ case "Enter":
1722
+ case " ":
1723
1723
  e.preventDefault();
1724
1724
  e.stopPropagation();
1725
1725
  if (columnResizing) {
1726
1726
  // end resizing
1727
- setColumnResizing('');
1727
+ setColumnResizing("");
1728
1728
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
1729
1729
  } else {
1730
1730
  // start resizing
@@ -1732,13 +1732,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1732
1732
  setAriaLiveFeedback(`${header.column.columnDef.header} grabbed.`);
1733
1733
  }
1734
1734
  break;
1735
- case 'Escape':
1735
+ case "Escape":
1736
1736
  if (columnResizing) {
1737
- setColumnResizing('');
1737
+ setColumnResizing("");
1738
1738
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
1739
1739
  }
1740
1740
  break;
1741
- case 'ArrowRight':
1741
+ case "ArrowRight":
1742
1742
  e.preventDefault();
1743
1743
  e.stopPropagation();
1744
1744
  if (columnResizing) {
@@ -1747,7 +1747,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1747
1747
  setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
1748
1748
  }
1749
1749
  break;
1750
- case 'ArrowLeft':
1750
+ case "ArrowLeft":
1751
1751
  e.preventDefault();
1752
1752
  e.stopPropagation();
1753
1753
  if (columnResizing) {
@@ -1759,7 +1759,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
1759
1759
  }
1760
1760
  },
1761
1761
  onBlur: ()=>{
1762
- setColumnResizing('');
1762
+ setColumnResizing("");
1763
1763
  }
1764
1764
  })
1765
1765
  ]
@@ -1808,7 +1808,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
1808
1808
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
1809
1809
  }),
1810
1810
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1811
- className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ''
1811
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
1812
1812
  })
1813
1813
  ]
1814
1814
  })
@@ -1844,9 +1844,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
1844
1844
  transition: transition,
1845
1845
  opacity: isDragging ? 0.7 : 1,
1846
1846
  zIndex: isDragging ? 1 : 0,
1847
- position: 'relative',
1848
- background: 'white',
1849
- touchAction: 'none'
1847
+ position: "relative",
1848
+ background: "white",
1849
+ touchAction: "none"
1850
1850
  };
1851
1851
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
1852
1852
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -1861,7 +1861,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
1861
1861
  // this code forces the repaint without user interaction
1862
1862
  const target = e.target;
1863
1863
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
1864
- target.parentNode.querySelector('input').checked = visible;
1864
+ target.parentNode.querySelector("input").checked = visible;
1865
1865
  }, 1);
1866
1866
  },
1867
1867
  children: [
@@ -1878,7 +1878,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
1878
1878
  }
1879
1879
  }),
1880
1880
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
1881
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
1881
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
1882
1882
  "aria-label": `Reorder ${id} column`,
1883
1883
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1884
1884
  className: "fa fa-sort"
@@ -1900,7 +1900,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
1900
1900
  // Custom function to exclude checkbox from keyboard dragging
1901
1901
  static activators = [
1902
1902
  {
1903
- eventName: 'onKeyDown',
1903
+ eventName: "onKeyDown",
1904
1904
  handler: ({ nativeEvent: event })=>{
1905
1905
  // prevent scrolling the list
1906
1906
  const isCheckbox = [
@@ -1923,7 +1923,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
1923
1923
  // Custom function to stop accidental checkbox clicks on pointer activation
1924
1924
  static activators = [
1925
1925
  {
1926
- eventName: 'onPointerDown',
1926
+ eventName: "onPointerDown",
1927
1927
  handler: ({ nativeEvent: event })=>{
1928
1928
  if (event.target.tagName.toLowerCase() === "input") return false;
1929
1929
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -1991,7 +1991,7 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
1991
1991
  }));
1992
1992
  };
1993
1993
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
1994
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
1994
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
1995
1995
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
1996
1996
  heading: "Manage columns",
1997
1997
  isOpen: modalOpen,
@@ -2141,7 +2141,7 @@ var $5d9e2ce238d53d29$export$2e2bcd8739ae039 = $5d9e2ce238d53d29$var$ManageColum
2141
2141
 
2142
2142
 
2143
2143
 
2144
- const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL: downloadURL, unfilteredDownloadURL: unfilteredDownloadURL, setPage: setPage, showQueryBuilder: showQueryBuilder = true })=>{
2144
+ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL: downloadURL, unfilteredDownloadURL: unfilteredDownloadURL, setPage: setPage, showCopyLinkButton: showCopyLinkButton = true, showDownloadFilteredDataButton: showDownloadFilteredDataButton = true, showDownloadFullDataButton: showDownloadFullDataButton = true, showStoredQueryDownloadButton: showStoredQueryDownloadButton = false })=>{
2145
2145
  const { limit: limit, offset: offset, count: count, conditions: conditions, setLimit: setLimit, setOffset: setOffset } = resource;
2146
2146
  const intCount = count ? count : 0;
2147
2147
  const rowOptions = [
@@ -2153,10 +2153,10 @@ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL
2153
2153
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2154
2154
  className: "ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--between",
2155
2155
  children: [
2156
- showQueryBuilder && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2156
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2157
2157
  className: "dc-c-resource-header--buttons ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--end ds-l-col--12 ds-u-margin-top--2 ds-u-padding-x--0",
2158
2158
  children: [
2159
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2159
+ showCopyLinkButton && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2160
2160
  className: "ds-l-col--12 ds-l-sm-col--auto ds-u-padding-x--0 ds-u-margin-bottom--2",
2161
2161
  children: conditions && conditions.length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Tooltip), {
2162
2162
  onOpen: ()=>{
@@ -2195,7 +2195,7 @@ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL
2195
2195
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2196
2196
  className: "ds-l-col--12 ds-l-md-col--auto ds-u-padding-x--0 ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--end",
2197
2197
  children: [
2198
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2198
+ (showDownloadFilteredDataButton || showStoredQueryDownloadButton) && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2199
2199
  className: "ds-l-col--12 ds-l-sm-col--auto ds-u-padding-x--0 ds-u-sm-margin-left--2 ds-u-margin-bottom--2",
2200
2200
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
2201
2201
  className: "ds-u-text-align--center ds-u-font-weight--normal ds-u-font-size--base ds-u-margin-right--1 ds-u-display--inline-block ds-l-col--12",
@@ -2207,12 +2207,13 @@ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL
2207
2207
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2208
2208
  className: "fas fa-file-csv"
2209
2209
  }),
2210
- " Download filtered data (CSV)"
2210
+ " ",
2211
+ showDownloadFilteredDataButton ? `Download filtered data (CSV)` : `Download stored query data (CSV)`
2211
2212
  ]
2212
2213
  })
2213
2214
  })
2214
2215
  }),
2215
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2216
+ showDownloadFullDataButton && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2216
2217
  className: "ds-l-col--12 ds-l-sm-col--auto ds-u-padding-x--0 ds-u-sm-margin-left--2 ds-u-margin-bottom--2",
2217
2218
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
2218
2219
  className: "ds-u-text-align--center ds-u-font-weight--normal ds-u-font-size--base ds-u-margin-right--1 ds-u-display--inline-block ds-l-col--12",
@@ -2324,12 +2325,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
2324
2325
  className: "ds-u-font-weight--bold",
2325
2326
  children: description
2326
2327
  }),
2327
- ' ',
2328
+ " ",
2328
2329
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2329
2330
  className: "ds-u-font-weight--normal",
2330
2331
  children: operator.label.toUpperCase()
2331
2332
  }),
2332
- ' ',
2333
+ " ",
2333
2334
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2334
2335
  className: "ds-u-color--success",
2335
2336
  children: formattedText
@@ -2359,7 +2360,7 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
2359
2360
 
2360
2361
 
2361
2362
  function $6369abf590ca298f$var$getStartDate(condition, schema, id) {
2362
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2363
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2363
2364
  const newDate = new Date(condition.value.toString());
2364
2365
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2365
2366
  }
@@ -2375,9 +2376,9 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2375
2376
  });
2376
2377
  (0, $hgUW1$useEffect)(()=>{
2377
2378
  if (property !== condition.property) {
2378
- if (property) update(index, 'property', property);
2379
- else update(index, 'property', '');
2380
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2379
+ if (property) update(index, "property", property);
2380
+ else update(index, "property", "");
2381
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2381
2382
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2382
2383
  }
2383
2384
  }
@@ -2391,16 +2392,16 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2391
2392
  ]);
2392
2393
  (0, $hgUW1$useEffect)(()=>{
2393
2394
  if (operator !== condition.operator) {
2394
- if (operator) update(index, 'operator', operator);
2395
- else update(index, 'operator', '');
2395
+ if (operator) update(index, "operator", operator);
2396
+ else update(index, "operator", "");
2396
2397
  }
2397
2398
  }, [
2398
2399
  operator
2399
2400
  ]);
2400
2401
  (0, $hgUW1$useEffect)(()=>{
2401
2402
  if (value !== condition.value) {
2402
- if (value) update(index, 'value', value);
2403
- else update(index, 'value', '');
2403
+ if (value) update(index, "value", value);
2404
+ else update(index, "value", "");
2404
2405
  }
2405
2406
  }, [
2406
2407
  value
@@ -2432,7 +2433,7 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2432
2433
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2433
2434
  className: "ds-l-col--12 ds-l-md-col--4 ds-u-padding-x--0 ds-u-md-padding-left--2 ds-u-display--flex ds-u-justify-content--between",
2434
2435
  children: [
2435
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2436
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2436
2437
  children: [
2437
2438
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
2438
2439
  className: "ds-c-label",
@@ -2493,9 +2494,9 @@ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false,
2493
2494
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
2494
2495
  disabled: disabled,
2495
2496
  className: "ds-u-float--right ds-l-md-col--6 ds-l-col--5",
2496
- variation: small ? 'ghost' : undefined,
2497
+ variation: small ? "ghost" : undefined,
2497
2498
  onClick: ()=>clearFiltersFn(),
2498
- children: small ? 'Clear all' : 'Clear all filters'
2499
+ children: small ? "Clear all" : "Clear all filters"
2499
2500
  });
2500
2501
  };
2501
2502
  var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFiltersButton;
@@ -2504,19 +2505,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
2504
2505
  function $ee4ad47aa483e5b5$var$updateQueryForDatastore(condition) {
2505
2506
  let cond = condition;
2506
2507
  delete cond.key;
2507
- if (cond.operator === '=' || cond.operator === '<>') {
2508
+ if (cond.operator === "=" || cond.operator === "<>") {
2508
2509
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
2509
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
2510
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
2510
2511
  }
2511
- if (cond.operator.toLowerCase() === 'like') {
2512
+ if (cond.operator.toLowerCase() === "like") {
2512
2513
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
2513
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
2514
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
2514
2515
  cond.value = `%${cleanedValue}%`;
2515
2516
  }
2516
- if (cond.operator.toLowerCase() === 'in') {
2517
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
2517
+ if (cond.operator.toLowerCase() === "in") {
2518
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
2518
2519
  }
2519
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
2520
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
2520
2521
  return cond;
2521
2522
  }
2522
2523
  const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, isModal: isModal = false, setPage: setPage, setOffset: setOffset })=>{
@@ -2535,7 +2536,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2535
2536
  } else setQueryConditions([
2536
2537
  {
2537
2538
  property: fields[0],
2538
- value: '',
2539
+ value: "",
2539
2540
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
2540
2541
  key: Date.now().toString()
2541
2542
  }
@@ -2552,7 +2553,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2552
2553
  ...queryConditions,
2553
2554
  {
2554
2555
  property: fields[0],
2555
- value: '',
2556
+ value: "",
2556
2557
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
2557
2558
  key: Date.now().toString()
2558
2559
  }
@@ -2583,7 +2584,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2583
2584
  encodeValuesOnly: true,
2584
2585
  addQueryPrefix: true
2585
2586
  });
2586
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
2587
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
2587
2588
  };
2588
2589
  const submitConditions = (e)=>{
2589
2590
  // only update the data conditions when "Apply filters" is pressed
@@ -2697,7 +2698,7 @@ function $a35cf16d1488f54e$export$1147582dfae658c6(columns, schema) {
2697
2698
  accessor: column
2698
2699
  }));
2699
2700
  }
2700
- const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFullScreenModal: closeFullScreenModal, showQueryBuilder: showQueryBuilder = false })=>{
2701
+ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFullScreenModal: closeFullScreenModal, showQueryBuilder: showQueryBuilder = true, showCopyLinkButton: showCopyLinkButton = true, showDownloadFilteredDataButton: showDownloadFilteredDataButton = true, showDownloadFullDataButton: showDownloadFullDataButton = true, showStoredQueryDownloadButton: showStoredQueryDownloadButton = false })=>{
2701
2702
  const { id: id, distribution: distribution, resource: resource, rootUrl: rootUrl, customColumns: customColumns = [], dataDictionaryBanner: dataDictionaryBanner } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
2702
2703
  const { page: page, setPage: setPage } = (0, $hgUW1$useContext)((0, $ebda441784d176a5$export$2e2bcd8739ae039));
2703
2704
  const defaultPageSize = 10;
@@ -2730,15 +2731,18 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFul
2730
2731
  downloadURL: downloadURL,
2731
2732
  unfilteredDownloadURL: distribution.data.downloadURL,
2732
2733
  setPage: setPage,
2733
- showQueryBuilder: showQueryBuilder
2734
+ showCopyLinkButton: showCopyLinkButton,
2735
+ showDownloadFilteredDataButton: showDownloadFilteredDataButton,
2736
+ showDownloadFullDataButton: showDownloadFullDataButton,
2737
+ showStoredQueryDownloadButton: showStoredQueryDownloadButton
2734
2738
  }),
2735
2739
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2736
- className: `ds-u-border-x--1 ds-u-border-bottom--1 ${isModal && 'dkan-datatable-fullscreen-mode'}`,
2740
+ className: `ds-u-border-x--1 ds-u-border-bottom--1 ${isModal && "dkan-datatable-fullscreen-mode"}`,
2737
2741
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2738
2742
  canResize: true,
2739
2743
  columns: columns,
2740
2744
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2741
- tablePadding: 'ds-u-padding-y--2',
2745
+ tablePadding: "ds-u-padding-y--2",
2742
2746
  loading: resource.loading,
2743
2747
  isModal: isModal,
2744
2748
  closeFullScreenModal: closeFullScreenModal
@@ -2771,7 +2775,7 @@ var $a35cf16d1488f54e$export$2e2bcd8739ae039 = $a35cf16d1488f54e$var$DatasetTabl
2771
2775
 
2772
2776
  const $16bd41951b91f02d$var$FullScreenDataTable = ({ modalOpen: modalOpen, setModalOpen: setModalOpen })=>{
2773
2777
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2774
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2778
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2775
2779
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2776
2780
  heading: "Dataset Explorer",
2777
2781
  isOpen: modalOpen,
@@ -2821,7 +2825,7 @@ const $71b4324f265dec16$var$DataTableControls = ({ id: id, columns: columns, def
2821
2825
  ]
2822
2826
  }),
2823
2827
  /*#__PURE__*/ (0, $hgUW1$jsxs)("button", {
2824
- "aria-label": isModal ? 'Close Full Screen dialog' : 'Full Screen mode - Opens in a dialog',
2828
+ "aria-label": isModal ? "Close Full Screen dialog" : "Full Screen mode - Opens in a dialog",
2825
2829
  className: "ds-c-button ds-c-button--ghost ds-u-margin-y--1",
2826
2830
  onClick: ()=>{
2827
2831
  if (isModal) closeFullScreenModal();
@@ -2829,7 +2833,7 @@ const $71b4324f265dec16$var$DataTableControls = ({ id: id, columns: columns, def
2829
2833
  },
2830
2834
  children: [
2831
2835
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2832
- className: `fa ${isModal ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2836
+ className: `fa ${isModal ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2833
2837
  }),
2834
2838
  isModal ? "Exit Full Screen" : "Full Screen"
2835
2839
  ]
@@ -2866,7 +2870,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2866
2870
  const { columnOrder: columnOrder, setColumnOrder: setColumnOrder, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility } = (0, $hgUW1$useContext)((0, $ebda441784d176a5$export$2e2bcd8739ae039));
2867
2871
  const data = resource.values;
2868
2872
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
2869
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
2873
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
2870
2874
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
2871
2875
  const columnHelper = (0, $hgUW1$createColumnHelper)();
2872
2876
  const table_columns = columns.map((col)=>{
@@ -2885,9 +2889,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2885
2889
  columnOrder
2886
2890
  ]);
2887
2891
  const sortElement = (isSorted, onClickFn)=>{
2888
- if (isSorted === 'asc') return 'dc-c-sort--asc';
2889
- if (isSorted === 'desc') return 'dc-c-sort--desc';
2890
- return 'dc-c-sort--default';
2892
+ if (isSorted === "asc") return "dc-c-sort--asc";
2893
+ if (isSorted === "desc") return "dc-c-sort--desc";
2894
+ return "dc-c-sort--default";
2891
2895
  };
2892
2896
  const filters = [];
2893
2897
  const table = (0, $hgUW1$useReactTable)({
@@ -2899,7 +2903,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2899
2903
  columnVisibility: columnVisibility,
2900
2904
  sorting: sorting
2901
2905
  },
2902
- columnResizeMode: 'onChange',
2906
+ columnResizeMode: "onChange",
2903
2907
  onSortingChange: setSorting,
2904
2908
  onColumnOrderChange: setColumnOrder,
2905
2909
  onColumnVisibilityChange: setColumnVisibility,
@@ -2916,7 +2920,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2916
2920
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
2917
2921
  const tableWrapperWidth = ()=>{
2918
2922
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
2919
- return 'auto';
2923
+ return "auto";
2920
2924
  };
2921
2925
  (0, $hgUW1$useEffect)(()=>{
2922
2926
  setHighlightRow(null);
@@ -3018,7 +3022,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3018
3022
  },
3019
3023
  labelClassName: "ds-u-visibility--screen-reader",
3020
3024
  name: accessor,
3021
- value: filterValue || ''
3025
+ value: filterValue || ""
3022
3026
  });
3023
3027
  }
3024
3028
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -3094,7 +3098,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
3094
3098
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3095
3099
  children: currentPage
3096
3100
  })
3097
- }) : ''
3101
+ }) : ""
3098
3102
  ]
3099
3103
  })
3100
3104
  });
@@ -3151,11 +3155,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
3151
3155
 
3152
3156
 
3153
3157
 
3154
- 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", {
3158
+ 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", {
3155
3159
  className: "search-input-container",
3156
3160
  children: [
3157
3161
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
3158
- className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
3162
+ className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
3159
3163
  label: placeholder,
3160
3164
  labelClassName: "ds-u-visibility--screen-reader",
3161
3165
  placeholder: placeholder,
@@ -3170,7 +3174,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = 'Search
3170
3174
  }),
3171
3175
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
3172
3176
  variation: "solid",
3173
- className: onDark && 'on-dark',
3177
+ className: onDark && "on-dark",
3174
3178
  onClick: onSubmit,
3175
3179
  children: [
3176
3180
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -3302,7 +3306,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
3302
3306
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3303
3307
  addQueryPrefix: true
3304
3308
  })}`,
3305
- docExpansion: 'list',
3309
+ docExpansion: "list",
3306
3310
  defaultModelsExpandDepth: -1,
3307
3311
  plugins: [
3308
3312
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -3470,7 +3474,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
3470
3474
  size: "big",
3471
3475
  type: "submit",
3472
3476
  style: {
3473
- width: '70px'
3477
+ width: "70px"
3474
3478
  },
3475
3479
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3476
3480
  className: "fas fa-search small-text"
@@ -3487,7 +3491,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
3487
3491
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
3488
3492
  children: [
3489
3493
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3490
- children: text ? text : 'Search'
3494
+ children: text ? text : "Search"
3491
3495
  }),
3492
3496
  ` `,
3493
3497
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -3572,12 +3576,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
3572
3576
  fulltext: fulltext ? fulltext : undefined,
3573
3577
  ...selectedFacets,
3574
3578
  sort: sort ? sort : undefined,
3575
- ['sort-order']: sortOrder ? sortOrder : undefined,
3579
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
3576
3580
  page: page !== 1 ? page : undefined,
3577
- ['page-size']: pageSize !== 10 ? pageSize : undefined
3581
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
3578
3582
  };
3579
3583
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3580
- arrayFormat: 'comma',
3584
+ arrayFormat: "comma",
3581
3585
  encode: false
3582
3586
  })}`);
3583
3587
  }
@@ -3588,26 +3592,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
3588
3592
 
3589
3593
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3590
3594
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
3591
- defaultSort: 'modified',
3592
- defaultOrder: 'desc'
3593
- }, pageTitle: pageTitle = 'Dataset Explorer', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
3595
+ defaultSort: "modified",
3596
+ defaultOrder: "desc"
3597
+ }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
3594
3598
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
3595
3599
  const sortOptions = [
3596
3600
  {
3597
- label: 'Newest',
3598
- value: 'newest'
3601
+ label: "Newest",
3602
+ value: "newest"
3599
3603
  },
3600
3604
  {
3601
- label: 'Oldest',
3602
- value: 'oldest'
3605
+ label: "Oldest",
3606
+ value: "oldest"
3603
3607
  },
3604
3608
  {
3605
- label: 'Title A-Z',
3606
- value: 'titleAZ'
3609
+ label: "Title A-Z",
3610
+ value: "titleAZ"
3607
3611
  },
3608
3612
  {
3609
- label: 'Title Z-A',
3610
- value: 'titleZA'
3613
+ label: "Title Z-A",
3614
+ value: "titleZA"
3611
3615
  }
3612
3616
  ];
3613
3617
  const defaultSortBy = "";
@@ -3626,7 +3630,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3626
3630
  endingNumber: 0
3627
3631
  });
3628
3632
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
3629
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
3633
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
3630
3634
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
3631
3635
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
3632
3636
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -3635,7 +3639,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3635
3639
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
3636
3640
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
3637
3641
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
3638
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
3642
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
3639
3643
  });
3640
3644
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
3641
3645
  theme: [],
@@ -3644,21 +3648,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3644
3648
  const setSortOptions = (value)=>{
3645
3649
  setSortDisplay(value);
3646
3650
  switch(value){
3647
- case 'newest':
3648
- setSort('modified');
3649
- setSortOrder('desc');
3651
+ case "newest":
3652
+ setSort("modified");
3653
+ setSortOrder("desc");
3650
3654
  break;
3651
- case 'oldest':
3652
- setSort('modified');
3653
- setSortOrder('asc');
3655
+ case "oldest":
3656
+ setSort("modified");
3657
+ setSortOrder("asc");
3654
3658
  break;
3655
- case 'titleAZ':
3656
- setSort('title');
3657
- setSortOrder('asc');
3659
+ case "titleAZ":
3660
+ setSort("title");
3661
+ setSortOrder("asc");
3658
3662
  break;
3659
- case 'titleZA':
3660
- setSort('title');
3661
- setSortOrder('desc');
3663
+ case "titleZA":
3664
+ setSort("title");
3665
+ setSortOrder("desc");
3662
3666
  break;
3663
3667
  }
3664
3668
  };
@@ -3666,12 +3670,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3666
3670
  const newFacets = {
3667
3671
  ...selectedFacets
3668
3672
  };
3669
- if (key === 'theme') {
3673
+ if (key === "theme") {
3670
3674
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
3671
3675
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
3672
3676
  else newFacets.theme.push(value);
3673
3677
  }
3674
- if (key === 'keyword') {
3678
+ if (key === "keyword") {
3675
3679
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
3676
3680
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
3677
3681
  else newFacets.keyword.push(value);
@@ -3685,14 +3689,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3685
3689
  });
3686
3690
  setSelectedFacets(newFacets);
3687
3691
  const url = new URL(window.location.href);
3688
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3692
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3689
3693
  }
3690
3694
  const pageSize = defaultPageSize;
3691
3695
  (0, $hgUW1$useEffect)(()=>{
3692
3696
  // Update browser URL with current search params
3693
3697
  const params = buildSearchParams(true);
3694
3698
  const url = new URL(window.location.href);
3695
- window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
3699
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
3696
3700
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
3697
3701
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
3698
3702
  const endingNumber = Number(pageSize) * Number(page);
@@ -3731,14 +3735,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3731
3735
  setSelectedFacets(defaultSelectedFacets);
3732
3736
  setPage(defaultPage);
3733
3737
  const url = new URL(window.location.href);
3734
- window.history.pushState({}, '', `${url.origin}${url.pathname}`);
3738
+ window.history.pushState({}, "", `${url.origin}${url.pathname}`);
3735
3739
  }
3736
3740
  function buildSearchParams(includePage) {
3737
3741
  let newParams = {};
3738
3742
  if (Number(page) !== 1 && includePage) newParams.page = page;
3739
3743
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
3740
3744
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
3741
- if (fulltext !== '') newParams.fulltext = fulltext;
3745
+ if (fulltext !== "") newParams.fulltext = fulltext;
3742
3746
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
3743
3747
  newParams[key] = selectedFacets[key];
3744
3748
  });
@@ -3751,9 +3755,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3751
3755
  fulltext: fulltext ? fulltext : undefined,
3752
3756
  ...selectedFacets,
3753
3757
  sort: sort ? sort : undefined,
3754
- ['sort-order']: sortOrder ? sortOrder : undefined,
3758
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
3755
3759
  page: page !== 1 ? page : undefined,
3756
- ['page-size']: pageSize !== 10 ? pageSize : undefined
3760
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
3757
3761
  };
3758
3762
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
3759
3763
  queryKey: [
@@ -3762,7 +3766,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3762
3766
  ],
3763
3767
  queryFn: ()=>{
3764
3768
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3765
- arrayFormat: 'comma',
3769
+ arrayFormat: "comma",
3766
3770
  encode: false
3767
3771
  })}`);
3768
3772
  }
@@ -3813,7 +3817,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3813
3817
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
3814
3818
  fieldClassName: "ds-u-margin--0",
3815
3819
  value: filterText,
3816
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
3820
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
3817
3821
  label: "Search datasets",
3818
3822
  labelClassName: "ds-u-visibility--screen-reader",
3819
3823
  placeholder: "Search datasets",
@@ -3875,7 +3879,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3875
3879
  "Showing ",
3876
3880
  currentResultNumbers.startingNumber,
3877
3881
  " -",
3878
- ' ',
3882
+ " ",
3879
3883
  currentResultNumbers.endingNumber,
3880
3884
  " of ",
3881
3885
  data.data.total,
@@ -3951,7 +3955,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3951
3955
  },
3952
3956
  renderHref: (page)=>{
3953
3957
  const searchParams = buildSearchParams(false);
3954
- const includeAnd = searchParams ? '&' : '';
3958
+ const includeAnd = searchParams ? "&" : "";
3955
3959
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
3956
3960
  }
3957
3961
  })
@@ -3984,12 +3988,12 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
3984
3988
 
3985
3989
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
3986
3990
  const [dataset, setDataset] = (0, $hgUW1$useState)({
3987
- title: '',
3991
+ title: "",
3988
3992
  distribution: [],
3989
- error: '',
3990
- description: '',
3991
- identifier: '',
3992
- modified: ''
3993
+ error: "",
3994
+ description: "",
3995
+ identifier: "",
3996
+ modified: ""
3993
3997
  });
3994
3998
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
3995
3999
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -3999,7 +4003,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
3999
4003
  "metastore" + id
4000
4004
  ],
4001
4005
  queryFn: ()=>{
4002
- 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)=>{
4006
+ 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)=>{
4003
4007
  return {
4004
4008
  title: dataset.title,
4005
4009
  distribution: dataset.distribution,
@@ -4065,7 +4069,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
4065
4069
  ...additionalParams
4066
4070
  };
4067
4071
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
4068
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
4072
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
4069
4073
  let enabled = false;
4070
4074
  if (id) {
4071
4075
  if (!requireConditions) enabled = true;
@@ -4145,65 +4149,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
4145
4149
 
4146
4150
 
4147
4151
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
4148
- 'R/P10Y': {
4149
- name: 'Decennial'
4152
+ "R/P10Y": {
4153
+ name: "Decennial"
4150
4154
  },
4151
- 'R/P4Y': {
4152
- name: 'Quadrennial'
4155
+ "R/P4Y": {
4156
+ name: "Quadrennial"
4153
4157
  },
4154
- 'R/P1Y': {
4155
- name: 'Annual'
4158
+ "R/P1Y": {
4159
+ name: "Annual"
4156
4160
  },
4157
- 'R/P2M': {
4158
- name: 'Bimonthly'
4161
+ "R/P2M": {
4162
+ name: "Bimonthly"
4159
4163
  },
4160
- 'R/P3.5D': {
4161
- name: 'Semiweekly'
4164
+ "R/P3.5D": {
4165
+ name: "Semiweekly"
4162
4166
  },
4163
- 'R/P1D': {
4164
- name: 'Daily'
4167
+ "R/P1D": {
4168
+ name: "Daily"
4165
4169
  },
4166
- 'R/P2W': {
4167
- name: 'Biweekly'
4170
+ "R/P2W": {
4171
+ name: "Biweekly"
4168
4172
  },
4169
- 'R/P6M': {
4170
- name: 'Semiannual'
4173
+ "R/P6M": {
4174
+ name: "Semiannual"
4171
4175
  },
4172
- 'R/P2Y': {
4173
- name: 'Biennial'
4176
+ "R/P2Y": {
4177
+ name: "Biennial"
4174
4178
  },
4175
- 'R/P3Y': {
4176
- name: 'Triennial'
4179
+ "R/P3Y": {
4180
+ name: "Triennial"
4177
4181
  },
4178
- 'R/P0.33W': {
4179
- name: 'Three times a week'
4182
+ "R/P0.33W": {
4183
+ name: "Three times a week"
4180
4184
  },
4181
- 'R/P0.33M': {
4182
- name: 'Three times a month'
4185
+ "R/P0.33M": {
4186
+ name: "Three times a month"
4183
4187
  },
4184
- 'R/PT1S': {
4185
- name: 'Continuously updated'
4188
+ "R/PT1S": {
4189
+ name: "Continuously updated"
4186
4190
  },
4187
- 'R/P1M': {
4188
- name: 'Monthly'
4191
+ "R/P1M": {
4192
+ name: "Monthly"
4189
4193
  },
4190
- 'R/P3M': {
4191
- name: 'Quarterly'
4194
+ "R/P3M": {
4195
+ name: "Quarterly"
4192
4196
  },
4193
- 'R/P0.5M': {
4194
- name: 'Semimonthly'
4197
+ "R/P0.5M": {
4198
+ name: "Semimonthly"
4195
4199
  },
4196
- 'R/P4M': {
4197
- name: 'Three times a year'
4200
+ "R/P4M": {
4201
+ name: "Three times a year"
4198
4202
  },
4199
- 'R/P1W': {
4200
- name: 'Weekly'
4203
+ "R/P1W": {
4204
+ name: "Weekly"
4201
4205
  },
4202
- 'R/PT1H': {
4203
- name: 'Hourly'
4206
+ "R/PT1H": {
4207
+ name: "Hourly"
4204
4208
  },
4205
4209
  irregular: {
4206
- name: 'Irregular'
4210
+ name: "Irregular"
4207
4211
  }
4208
4212
  };
4209
4213
 
@@ -4212,7 +4216,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4212
4216
  modified: (data)=>{
4213
4217
  return [
4214
4218
  {
4215
- label: 'Modified',
4219
+ label: "Modified",
4216
4220
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
4217
4221
  date: data
4218
4222
  })
@@ -4222,7 +4226,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4222
4226
  issued: (data)=>{
4223
4227
  return [
4224
4228
  {
4225
- label: 'Issued',
4229
+ label: "Issued",
4226
4230
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
4227
4231
  date: data
4228
4232
  })
@@ -4232,7 +4236,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4232
4236
  accrualPeriodicity: (data)=>{
4233
4237
  return [
4234
4238
  {
4235
- label: 'Frequency',
4239
+ label: "Frequency",
4236
4240
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
4237
4241
  }
4238
4242
  ];
@@ -4240,7 +4244,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4240
4244
  publisher: (data)=>{
4241
4245
  if (data.data && data.data.name) return [
4242
4246
  {
4243
- label: 'Publisher',
4247
+ label: "Publisher",
4244
4248
  value: data.data.name
4245
4249
  }
4246
4250
  ];
@@ -4249,7 +4253,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4249
4253
  identifier: (data)=>{
4250
4254
  return [
4251
4255
  {
4252
- label: 'Identifier',
4256
+ label: "Identifier",
4253
4257
  value: data
4254
4258
  }
4255
4259
  ];
@@ -4257,11 +4261,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4257
4261
  contactPoint: (data)=>{
4258
4262
  let rows = [];
4259
4263
  if (data.fn) rows.push({
4260
- label: 'Contact',
4264
+ label: "Contact",
4261
4265
  value: data.fn
4262
4266
  });
4263
4267
  if (data.hasEmail) rows.push({
4264
- label: 'Contact Email',
4268
+ label: "Contact Email",
4265
4269
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
4266
4270
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
4267
4271
  children: data.hasEmail.replace("mailto:", "")
@@ -4272,7 +4276,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4272
4276
  bureauCode: (data)=>{
4273
4277
  if (data.length) return [
4274
4278
  {
4275
- label: 'Bureau Code',
4279
+ label: "Bureau Code",
4276
4280
  value: data[0]
4277
4281
  }
4278
4282
  ];
@@ -4280,7 +4284,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4280
4284
  programCode: (data)=>{
4281
4285
  if (data.length) return [
4282
4286
  {
4283
- label: 'Program Code',
4287
+ label: "Program Code",
4284
4288
  value: data[0]
4285
4289
  }
4286
4290
  ];
@@ -4288,13 +4292,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4288
4292
  theme: (data)=>{
4289
4293
  return [
4290
4294
  {
4291
- label: 'Category',
4295
+ label: "Category",
4292
4296
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
4293
4297
  to: `/datasets?theme[]=${theme.data}`,
4294
4298
  children: theme.data
4295
4299
  }, theme.data)).reduce((prev, curr)=>[
4296
4300
  prev,
4297
- ', ',
4301
+ ", ",
4298
4302
  curr
4299
4303
  ])
4300
4304
  }
@@ -4303,13 +4307,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4303
4307
  keyword: (data)=>{
4304
4308
  return [
4305
4309
  {
4306
- label: 'Tags',
4310
+ label: "Tags",
4307
4311
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
4308
4312
  to: `/datasets?keyword[]=${keyword.data}`,
4309
4313
  children: keyword.data
4310
4314
  }, keyword.data)).reduce((prev, curr)=>[
4311
4315
  prev,
4312
- ', ',
4316
+ ", ",
4313
4317
  curr
4314
4318
  ])
4315
4319
  }
@@ -4318,7 +4322,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4318
4322
  license: (data)=>{
4319
4323
  return [
4320
4324
  {
4321
- label: 'License',
4325
+ label: "License",
4322
4326
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
4323
4327
  href: data,
4324
4328
  children: data
@@ -4329,7 +4333,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4329
4333
  accessLevel: (data)=>{
4330
4334
  return [
4331
4335
  {
4332
- label: 'Public Access Level',
4336
+ label: "Public Access Level",
4333
4337
  value: data
4334
4338
  }
4335
4339
  ];
@@ -4337,7 +4341,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4337
4341
  temporal: (data)=>{
4338
4342
  return [
4339
4343
  {
4340
- label: 'Temporal Coverage',
4344
+ label: "Temporal Coverage",
4341
4345
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4342
4346
  className: "dc-c-word-break--all",
4343
4347
  children: data
@@ -4348,7 +4352,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4348
4352
  spatial: (data)=>{
4349
4353
  return [
4350
4354
  {
4351
- label: 'Spacial/Geographical Coverage',
4355
+ label: "Spacial/Geographical Coverage",
4352
4356
  value: data
4353
4357
  }
4354
4358
  ];
@@ -4356,7 +4360,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4356
4360
  references: (data)=>{
4357
4361
  return [
4358
4362
  {
4359
- label: 'Related Documents',
4363
+ label: "Related Documents",
4360
4364
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
4361
4365
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
4362
4366
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -4437,7 +4441,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
4437
4441
  if (dist && dist.data) {
4438
4442
  if (dist.data.format) return dist.data.format.toLowerCase();
4439
4443
  if (dist.data.mediaType) {
4440
- const mediaType = dist.data.mediaType.split('/');
4444
+ const mediaType = dist.data.mediaType.split("/");
4441
4445
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
4442
4446
  }
4443
4447
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -4447,7 +4451,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
4447
4451
  }
4448
4452
  }
4449
4453
  }
4450
- return '';
4454
+ return "";
4451
4455
  }
4452
4456
 
4453
4457
 
@@ -4491,8 +4495,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
4491
4495
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
4492
4496
  href: dist.data.downloadURL,
4493
4497
  style: {
4494
- order: sm ? '1' : '0',
4495
- width: sm ? '100%' : 'auto'
4498
+ order: sm ? "1" : "0",
4499
+ width: sm ? "100%" : "auto"
4496
4500
  },
4497
4501
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
4498
4502
  className: "ds-c-button",
@@ -4505,7 +4509,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
4505
4509
  })
4506
4510
  }),
4507
4511
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4508
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
4512
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
4509
4513
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4510
4514
  className: "dc-c-metadata-description ds-u-margin--0",
4511
4515
  dangerouslySetInnerHTML: {
@@ -4577,7 +4581,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
4577
4581
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
4578
4582
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
4579
4583
  children: [
4580
- md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4584
+ md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4581
4585
  component: "th",
4582
4586
  className: "ds-u-font-weight--bold",
4583
4587
  children: [
@@ -4588,8 +4592,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
4588
4592
  title: tooltip.title,
4589
4593
  // @ts-ignore
4590
4594
  style: {
4591
- border: 'none',
4592
- background: 'none'
4595
+ border: "none",
4596
+ background: "none"
4593
4597
  },
4594
4598
  maxWidth: "400px",
4595
4599
  placement: "auto",
@@ -4648,10 +4652,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
4648
4652
  href: apiUrl,
4649
4653
  children: [
4650
4654
  "View API",
4651
- ' ',
4655
+ " ",
4652
4656
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
4653
4657
  style: {
4654
- whiteSpace: 'nowrap'
4658
+ whiteSpace: "nowrap"
4655
4659
  },
4656
4660
  children: [
4657
4661
  "specification ",
@@ -4692,20 +4696,20 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
4692
4696
 
4693
4697
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
4694
4698
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
4695
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
4699
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
4696
4700
  const mobile = (0, $hgUW1$useMediaQuery)({
4697
4701
  minWidth: 0,
4698
4702
  maxWidth: 544
4699
4703
  });
4700
4704
  const sortElement = (isSorted)=>{
4701
- if (isSorted === 'asc') return 'dc-c-sort--asc';
4702
- if (isSorted === 'desc') return 'dc-c-sort--desc';
4703
- return 'dc-c-sort--default';
4705
+ if (isSorted === "asc") return "dc-c-sort--asc";
4706
+ if (isSorted === "desc") return "dc-c-sort--desc";
4707
+ return "dc-c-sort--default";
4704
4708
  };
4705
4709
  const table = (0, $hgUW1$useReactTable)({
4706
4710
  data: tableData,
4707
4711
  columns: tableColumns,
4708
- columnResizeMode: 'onChange',
4712
+ columnResizeMode: "onChange",
4709
4713
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
4710
4714
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
4711
4715
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -4724,49 +4728,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4724
4728
  });
4725
4729
  const sortOptions = [
4726
4730
  {
4727
- value: 'default',
4728
- label: 'No Sort'
4731
+ value: "default",
4732
+ label: "No Sort"
4729
4733
  },
4730
4734
  {
4731
- value: 'titleasc',
4732
- label: 'Title A-Z'
4735
+ value: "titleasc",
4736
+ label: "Title A-Z"
4733
4737
  },
4734
4738
  {
4735
- value: 'titledesc',
4736
- label: 'Title Z-A'
4739
+ value: "titledesc",
4740
+ label: "Title Z-A"
4737
4741
  },
4738
4742
  {
4739
- value: 'typeasc',
4740
- label: 'Type A-Z'
4743
+ value: "typeasc",
4744
+ label: "Type A-Z"
4741
4745
  },
4742
4746
  {
4743
- value: 'typedesc',
4744
- label: 'Type Z-A'
4747
+ value: "typedesc",
4748
+ label: "Type Z-A"
4745
4749
  }
4746
4750
  ];
4747
4751
  const sortStatesLookup = {
4748
4752
  default: [],
4749
4753
  titleasc: [
4750
4754
  {
4751
- id: 'titleResizable',
4755
+ id: "titleResizable",
4752
4756
  desc: false
4753
4757
  }
4754
4758
  ],
4755
4759
  titledesc: [
4756
4760
  {
4757
- id: 'titleResizable',
4761
+ id: "titleResizable",
4758
4762
  desc: true
4759
4763
  }
4760
4764
  ],
4761
4765
  typeasc: [
4762
4766
  {
4763
- id: 'type',
4767
+ id: "type",
4764
4768
  desc: false
4765
4769
  }
4766
4770
  ],
4767
4771
  typedesc: [
4768
4772
  {
4769
- id: 'type',
4773
+ id: "type",
4770
4774
  desc: true
4771
4775
  }
4772
4776
  ]
@@ -4794,7 +4798,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4794
4798
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
4795
4799
  className: "dc-c-datatable",
4796
4800
  style: {
4797
- width: '100%'
4801
+ width: "100%"
4798
4802
  },
4799
4803
  stackable: true,
4800
4804
  children: [
@@ -4810,12 +4814,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4810
4814
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4811
4815
  key: header.id,
4812
4816
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
4813
- id: 'dataDictionary_' + header.id,
4817
+ id: "dataDictionary_" + header.id,
4814
4818
  children: [
4815
4819
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
4816
- header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4820
+ header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4817
4821
  onClick: header.column.getToggleSortingHandler(),
4818
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
4822
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
4819
4823
  "aria-label": `${header.column.columnDef.header} sort order`
4820
4824
  })
4821
4825
  ]
@@ -4830,12 +4834,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4830
4834
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
4831
4835
  key: cell.id,
4832
4836
  style: {
4833
- maxWidth: mobile ? '100%' : cell.column.getSize(),
4834
- whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
4837
+ maxWidth: mobile ? "100%" : cell.column.getSize(),
4838
+ whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
4835
4839
  },
4836
- className: `${cell.column.id === 'titleResizable' ? 'ds-u-word-break' : ''}`,
4837
- headers: 'dataDictionary_' + cell.column.id,
4838
- stackedTitle: cell.column.id === 'titleResizable' ? 'Title' : cell.column.columnDef.header,
4840
+ className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
4841
+ headers: "dataDictionary_" + cell.column.id,
4842
+ stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
4839
4843
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
4840
4844
  });
4841
4845
  })
@@ -4864,7 +4868,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4864
4868
  table.setPageIndex(page - 1);
4865
4869
  },
4866
4870
  renderHref: (page)=>`/page=${page}`
4867
- }) : ''
4871
+ }) : ""
4868
4872
  ]
4869
4873
  });
4870
4874
  };
@@ -4874,17 +4878,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
4874
4878
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
4875
4879
  const columnHelper = (0, $hgUW1$createColumnHelper)();
4876
4880
  const tableColumns = [
4877
- columnHelper.accessor('name', {
4878
- header: 'Name'
4881
+ columnHelper.accessor("name", {
4882
+ header: "Name"
4879
4883
  }),
4880
- columnHelper.accessor('title', {
4881
- header: 'Title'
4884
+ columnHelper.accessor("title", {
4885
+ header: "Title"
4882
4886
  }),
4883
- columnHelper.accessor('type', {
4884
- header: 'Type'
4887
+ columnHelper.accessor("type", {
4888
+ header: "Type"
4885
4889
  }),
4886
- columnHelper.accessor('format', {
4887
- header: 'Format'
4890
+ columnHelper.accessor("format", {
4891
+ header: "Format"
4888
4892
  })
4889
4893
  ];
4890
4894
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -4928,7 +4932,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4928
4932
  });
4929
4933
  const columnHelper = (0, $hgUW1$createColumnHelper)();
4930
4934
  const tableColumns = [
4931
- columnHelper.accessor('titleResizable', {
4935
+ columnHelper.accessor("titleResizable", {
4932
4936
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4933
4937
  className: "dc-c-tooltip-width-override",
4934
4938
  children: [
@@ -4937,8 +4941,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4937
4941
  title: "Title represents the column headers of the data file",
4938
4942
  // @ts-ignore
4939
4943
  style: {
4940
- border: 'none',
4941
- background: 'none'
4944
+ border: "none",
4945
+ background: "none"
4942
4946
  },
4943
4947
  maxWidth: "400px",
4944
4948
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -4948,48 +4952,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4948
4952
  size: 300,
4949
4953
  minSize: 132
4950
4954
  }),
4951
- columnHelper.accessor('description', {
4952
- header: 'Description',
4955
+ columnHelper.accessor("description", {
4956
+ header: "Description",
4953
4957
  minSize: 600
4954
4958
  }),
4955
- columnHelper.accessor('type', {
4956
- header: 'Type',
4959
+ columnHelper.accessor("type", {
4960
+ header: "Type",
4957
4961
  size: 150,
4958
4962
  enableResizing: false
4959
4963
  })
4960
4964
  ];
4961
4965
  const typeOptions = [
4962
4966
  {
4963
- value: 'all',
4964
- label: 'All Types'
4967
+ value: "all",
4968
+ label: "All Types"
4965
4969
  },
4966
4970
  {
4967
- value: 'string',
4968
- label: 'String'
4971
+ value: "string",
4972
+ label: "String"
4969
4973
  },
4970
4974
  {
4971
- value: 'date',
4972
- label: 'Date'
4975
+ value: "date",
4976
+ label: "Date"
4973
4977
  },
4974
4978
  {
4975
- value: 'datetime',
4976
- label: 'Datetime'
4979
+ value: "datetime",
4980
+ label: "Datetime"
4977
4981
  },
4978
4982
  {
4979
- value: 'year',
4980
- label: 'Year'
4983
+ value: "year",
4984
+ label: "Year"
4981
4985
  },
4982
4986
  {
4983
- value: 'integer',
4984
- label: 'Integer'
4987
+ value: "integer",
4988
+ label: "Integer"
4985
4989
  },
4986
4990
  {
4987
- value: 'number',
4988
- label: 'Number'
4991
+ value: "number",
4992
+ label: "Number"
4989
4993
  },
4990
4994
  {
4991
- value: 'boolean',
4992
- label: 'Boolean'
4995
+ value: "boolean",
4996
+ label: "Boolean"
4993
4997
  }
4994
4998
  ];
4995
4999
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -5096,7 +5100,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
5096
5100
  href: datasetDictionaryEndpoint + "/csv",
5097
5101
  className: "ds-c-button",
5098
5102
  style: {
5099
- width: '100%'
5103
+ width: "100%"
5100
5104
  },
5101
5105
  children: [
5102
5106
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -5132,7 +5136,7 @@ var $6012b86ffcaf3f71$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5132
5136
 
5133
5137
 
5134
5138
 
5135
- const $39bc4d98030a5599$var$DataTableStateWrapper = ({ showQueryBuilder: showQueryBuilder = true })=>{
5139
+ const $39bc4d98030a5599$var$DataTableStateWrapper = ({ showQueryBuilder: showQueryBuilder = true, showCopyLinkButton: showCopyLinkButton = true, showDownloadFilteredDataButton: showDownloadFilteredDataButton = true, showDownloadFullDataButton: showDownloadFullDataButton = true, showStoredQueryDownloadButton: showStoredQueryDownloadButton = false })=>{
5136
5140
  const { id: id, datasetTableControls: datasetTableControls } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
5137
5141
  // a wrapper component to keep column state synced between full screen and regular modes
5138
5142
  const localStorageData = id ? JSON.parse(localStorage.getItem(id)) : null;
@@ -5156,7 +5160,11 @@ const $39bc4d98030a5599$var$DataTableStateWrapper = ({ showQueryBuilder: showQue
5156
5160
  setPage: setPage
5157
5161
  },
5158
5162
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $a35cf16d1488f54e$export$2e2bcd8739ae039), {
5159
- showQueryBuilder: showQueryBuilder
5163
+ showQueryBuilder: showQueryBuilder,
5164
+ showCopyLinkButton: showCopyLinkButton,
5165
+ showDownloadFilteredDataButton: showDownloadFilteredDataButton,
5166
+ showDownloadFullDataButton: showDownloadFullDataButton,
5167
+ showStoredQueryDownloadButton: showStoredQueryDownloadButton
5160
5168
  })
5161
5169
  });
5162
5170
  };
@@ -5171,7 +5179,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
5171
5179
  const [description, setDescription] = (0, $hgUW1$useState)("");
5172
5180
  if (!distribution && !dataset?.identifier) return null;
5173
5181
  (0, $hgUW1$useEffect)(()=>{
5174
- let newDescription = '';
5182
+ let newDescription = "";
5175
5183
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
5176
5184
  else {
5177
5185
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -5186,7 +5194,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
5186
5194
  customDescription
5187
5195
  ]);
5188
5196
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5189
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5197
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
5190
5198
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5191
5199
  className: "ds-u-margin-top--0 dc-c-metadata-description",
5192
5200
  dangerouslySetInnerHTML: {
@@ -5208,7 +5216,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
5208
5216
  ],
5209
5217
  queryFn: ()=>{
5210
5218
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
5211
- arrayFormat: 'comma',
5219
+ arrayFormat: "comma",
5212
5220
  encode: false
5213
5221
  })}`).then((res)=>res.json());
5214
5222
  }
@@ -5227,7 +5235,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5227
5235
  conditions: []
5228
5236
  };
5229
5237
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
5230
- const title = dataset.title ? dataset.title : '';
5238
+ const title = dataset.title ? dataset.title : "";
5231
5239
  const metadataMapping = {
5232
5240
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
5233
5241
  ...customMetadataMapping
@@ -5235,7 +5243,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5235
5243
  let distribution = {};
5236
5244
  let distributions = dataset.distribution ? dataset.distribution : [];
5237
5245
  if (distributions.length) distribution = distributions[0];
5238
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
5246
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
5239
5247
  ...options,
5240
5248
  limit: defaultPageSize
5241
5249
  });
@@ -5247,7 +5255,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5247
5255
  }) : null;
5248
5256
  (0, $hgUW1$useEffect)(()=>{
5249
5257
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
5250
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
5258
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
5251
5259
  }, [
5252
5260
  distribution
5253
5261
  ]);
@@ -5302,26 +5310,26 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5302
5310
  distribution,
5303
5311
  window.location.hash
5304
5312
  ]);
5305
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
5313
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
5306
5314
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
5307
5315
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
5308
5316
  content: notFoundContent,
5309
5317
  siteUrl: rootUrl
5310
5318
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
5311
- className: 'ds-l-container',
5319
+ className: "ds-l-container",
5312
5320
  children: [
5313
5321
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
5314
- className: 'ds-l-row',
5322
+ className: "ds-l-row",
5315
5323
  children: [
5316
5324
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5317
- className: 'ds-l-md-col--9',
5325
+ className: "ds-l-md-col--9",
5318
5326
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
5319
5327
  className: "ds-text-heading--3xl",
5320
5328
  children: title
5321
5329
  })
5322
5330
  }),
5323
5331
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5324
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
5332
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
5325
5333
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
5326
5334
  className: "ds-u-margin--0",
5327
5335
  children: [
@@ -5333,7 +5341,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5333
5341
  })
5334
5342
  }),
5335
5343
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5336
- className: 'ds-l-md-col--9',
5344
+ className: "ds-l-md-col--9",
5337
5345
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
5338
5346
  distribution: distribution,
5339
5347
  dataset: dataset,
@@ -5345,9 +5353,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5345
5353
  ]
5346
5354
  }),
5347
5355
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5348
- className: 'ds-l-row',
5356
+ className: "ds-l-row",
5349
5357
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5350
- className: 'ds-l-md-col--12 dc-dataset',
5358
+ className: "ds-l-md-col--12 dc-dataset",
5351
5359
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
5352
5360
  onChange: (selectedId, prevSelectedId)=>{
5353
5361
  setSelectedTab(selectedId);
@@ -5355,7 +5363,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5355
5363
  selectedId: selectedTab,
5356
5364
  children: [
5357
5365
  (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5358
- id: 'data-table',
5366
+ id: "data-table",
5359
5367
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5360
5368
  className: "ds-u-color--primary",
5361
5369
  children: [
@@ -5365,7 +5373,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5365
5373
  "Data Table"
5366
5374
  ]
5367
5375
  }),
5368
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5376
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5369
5377
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
5370
5378
  value: {
5371
5379
  id: id,
@@ -5380,7 +5388,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5380
5388
  })
5381
5389
  }),
5382
5390
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5383
- id: 'overview',
5391
+ id: "overview",
5384
5392
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5385
5393
  className: "ds-u-color--primary",
5386
5394
  children: [
@@ -5390,7 +5398,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5390
5398
  "Overview"
5391
5399
  ]
5392
5400
  }),
5393
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5401
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5394
5402
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
5395
5403
  resource: resource,
5396
5404
  dataset: dataset,
@@ -5399,7 +5407,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5399
5407
  })
5400
5408
  }),
5401
5409
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TabPanel), {
5402
- id: 'data-dictionary',
5410
+ id: "data-dictionary",
5403
5411
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5404
5412
  className: "ds-u-color--primary",
5405
5413
  children: [
@@ -5409,7 +5417,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5409
5417
  "Data Dictionary"
5410
5418
  ]
5411
5419
  }),
5412
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5420
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5413
5421
  children: [
5414
5422
  displayDataDictionaryTab && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
5415
5423
  datasetSitewideDictionary: datasetSitewideDictionary,
@@ -5423,7 +5431,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5423
5431
  ]
5424
5432
  }),
5425
5433
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5426
- id: 'api',
5434
+ id: "api",
5427
5435
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5428
5436
  className: "ds-u-color--primary",
5429
5437
  children: [
@@ -5433,7 +5441,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5433
5441
  "API"
5434
5442
  ]
5435
5443
  }),
5436
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5444
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5437
5445
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
5438
5446
  id: id,
5439
5447
  rootUrl: rootUrl,
@@ -5470,13 +5478,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5470
5478
  });
5471
5479
  const menu = (0, $hgUW1$useRef)(null);
5472
5480
  function closeMobileMenu() {
5473
- const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
5481
+ const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
5474
5482
  if (!mobileMenuButtonElement) return;
5475
5483
  mobileMenuButtonElement.focus();
5476
5484
  }
5477
5485
  // Close mobile menu with escape.
5478
5486
  function handleMenuClose(event) {
5479
- if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
5487
+ if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
5480
5488
  }
5481
5489
  function handleClick(event) {
5482
5490
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -5511,7 +5519,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5511
5519
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
5512
5520
  const firstEl = focusableEls[0];
5513
5521
  const lastEl = focusableEls[focusableEls.length - 1];
5514
- if (event.key === 'Tab') {
5522
+ if (event.key === "Tab") {
5515
5523
  if (event.shiftKey && document.activeElement === firstEl) {
5516
5524
  lastEl?.focus();
5517
5525
  event.preventDefault();
@@ -5523,15 +5531,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5523
5531
  }
5524
5532
  };
5525
5533
  (0, $hgUW1$useEffect)(()=>{
5526
- document.addEventListener('keyup', handleMenuClose);
5527
- document.addEventListener('mousedown', handleClick);
5534
+ document.addEventListener("keyup", handleMenuClose);
5535
+ document.addEventListener("mousedown", handleClick);
5528
5536
  if (mobileMenuOpen) handleFocusIn();
5529
5537
  else closeMobileMenu();
5530
- if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
5538
+ if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
5531
5539
  return ()=>{
5532
- document.removeEventListener('keyup', handleMenuClose);
5533
- document.addEventListener('mousedown', handleClick);
5534
- if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
5540
+ document.removeEventListener("keyup", handleMenuClose);
5541
+ document.addEventListener("mousedown", handleClick);
5542
+ if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
5535
5543
  };
5536
5544
  }, [
5537
5545
  mobileMenuOpen
@@ -5546,7 +5554,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5546
5554
  },
5547
5555
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
5548
5556
  "aria-label": "Site header",
5549
- className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
5557
+ className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
5550
5558
  children: [
5551
5559
  topNav && topNav,
5552
5560
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -5589,7 +5597,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
5589
5597
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
5590
5598
 
5591
5599
 
5592
- 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", {
5600
+ 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", {
5593
5601
  children: [
5594
5602
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5595
5603
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -5677,14 +5685,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5677
5685
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5678
5686
  className: "ds-u-font-size--sm",
5679
5687
  children: footerAdditionalResourcesLinks.filter((link)=>{
5680
- const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
5688
+ const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
5681
5689
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
5682
5690
  }).map((link)=>{
5683
5691
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
5684
5692
  className: "ds-u-margin-bottom--1",
5685
5693
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5686
5694
  href: link.url,
5687
- ['data-' + link.dataTag.name]: link.dataTag.value,
5695
+ ["data-" + link.dataTag.name]: link.dataTag.value,
5688
5696
  onClick: link.onClick,
5689
5697
  children: link.label
5690
5698
  })
@@ -5784,7 +5792,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5784
5792
  children: [
5785
5793
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5786
5794
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
5787
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
5795
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
5788
5796
  }),
5789
5797
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5790
5798
  transform: "translate(160 256)",
@@ -5837,7 +5845,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5837
5845
  children: [
5838
5846
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5839
5847
  id: "svg-inline--fa-title-4z03ITiPPTVF",
5840
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
5848
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
5841
5849
  }),
5842
5850
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5843
5851
  transform: "translate(256 256)",
@@ -5890,7 +5898,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5890
5898
  children: [
5891
5899
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5892
5900
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
5893
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
5901
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
5894
5902
  }),
5895
5903
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5896
5904
  transform: "translate(224 256)",
@@ -5942,7 +5950,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5942
5950
  children: [
5943
5951
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5944
5952
  id: "svg-inline--fa-title-youtube",
5945
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
5953
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
5946
5954
  }),
5947
5955
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
5948
5956
  fill: "currentColor",
@@ -6042,26 +6050,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
6042
6050
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6043
6051
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
6044
6052
  stackable: true,
6045
- className: 'ds-c-table',
6053
+ className: "ds-c-table",
6046
6054
  children: [
6047
6055
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
6048
6056
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
6049
6057
  children: [
6050
6058
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6051
- id: 'application',
6052
- headers: 'Application',
6059
+ id: "application",
6060
+ headers: "Application",
6053
6061
  children: "Application"
6054
- }, 'Application'),
6062
+ }, "Application"),
6055
6063
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6056
- id: 'notes',
6057
- headers: 'Notes',
6064
+ id: "notes",
6065
+ headers: "Notes",
6058
6066
  children: "Notes"
6059
- }, 'Notes'),
6067
+ }, "Notes"),
6060
6068
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6061
- id: 'links',
6062
- headers: 'Links',
6069
+ id: "links",
6070
+ headers: "Links",
6063
6071
  children: "Links"
6064
- }, 'Links')
6072
+ }, "Links")
6065
6073
  ]
6066
6074
  })
6067
6075
  }),
@@ -6071,19 +6079,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
6071
6079
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6072
6080
  id: d.id,
6073
6081
  stackedTitle: "Application",
6074
- headers: 'Application',
6082
+ headers: "Application",
6075
6083
  children: d.application
6076
6084
  }, d.id),
6077
6085
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6078
6086
  id: d.id,
6079
6087
  stackedTitle: "Notes",
6080
- headers: 'Notes',
6088
+ headers: "Notes",
6081
6089
  children: d.notes
6082
6090
  }, `${d.id}-notes`),
6083
6091
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6084
6092
  id: d.id,
6085
6093
  stackedTitle: "Links",
6086
- headers: 'Links',
6094
+ headers: "Links",
6087
6095
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
6088
6096
  className: "dkan-newtab",
6089
6097
  href: d.link,
@@ -6111,44 +6119,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
6111
6119
 
6112
6120
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
6113
6121
  {
6114
- id: 'excel',
6115
- application: 'Microsoft Excel',
6116
- notes: 'Official size limitations for Microsoft Excel',
6117
- 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',
6118
- linkText: 'Excel Specifications and Limits',
6119
- screenReaderOnlyText: 'on microsoft.com'
6122
+ id: "excel",
6123
+ application: "Microsoft Excel",
6124
+ notes: "Official size limitations for Microsoft Excel",
6125
+ 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",
6126
+ linkText: "Excel Specifications and Limits",
6127
+ screenReaderOnlyText: "on microsoft.com"
6120
6128
  },
6121
6129
  {
6122
- id: 'access',
6123
- application: 'Microsoft Access',
6124
- notes: 'Official size limitations for Microsoft Access',
6125
- link: 'https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us',
6126
- linkText: 'Access 2016 Specifications',
6127
- screenReaderOnlyText: 'on microsoft.com'
6130
+ id: "access",
6131
+ application: "Microsoft Access",
6132
+ notes: "Official size limitations for Microsoft Access",
6133
+ link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
6134
+ linkText: "Access 2016 Specifications",
6135
+ screenReaderOnlyText: "on microsoft.com"
6128
6136
  },
6129
6137
  {
6130
- id: 'oracle-sql-developer',
6131
- application: 'Oracle SQL Developer',
6132
- notes: 'Oracle SQL Developer tool',
6133
- link: 'https://www.oracle.com/database/sqldeveloper/',
6134
- linkText: 'Oracle SQL Developer Overview',
6135
- screenReaderOnlyText: 'on oracle.com'
6138
+ id: "oracle-sql-developer",
6139
+ application: "Oracle SQL Developer",
6140
+ notes: "Oracle SQL Developer tool",
6141
+ link: "https://www.oracle.com/database/sqldeveloper/",
6142
+ linkText: "Oracle SQL Developer Overview",
6143
+ screenReaderOnlyText: "on oracle.com"
6136
6144
  },
6137
6145
  {
6138
- id: 'oracle-database',
6139
- application: 'Oracle Database',
6140
- notes: 'Oracle Database official size limitations',
6141
- link: 'https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915',
6142
- linkText: 'Oracle Physical Database Limits',
6143
- screenReaderOnlyText: 'on oracle.com'
6146
+ id: "oracle-database",
6147
+ application: "Oracle Database",
6148
+ notes: "Oracle Database official size limitations",
6149
+ link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
6150
+ linkText: "Oracle Physical Database Limits",
6151
+ screenReaderOnlyText: "on oracle.com"
6144
6152
  },
6145
6153
  {
6146
- id: 'oracle-sql-client-tools',
6147
- application: 'Oracle SQL Client Tools',
6148
- notes: 'Oracle SQL Client Tools',
6149
- link: 'https://www.oracle.com/database/technologies/oracle-database-software-downloads.html',
6150
- linkText: 'Oracle SQL Client',
6151
- screenReaderOnlyText: 'on oracle.com'
6154
+ id: "oracle-sql-client-tools",
6155
+ application: "Oracle SQL Client Tools",
6156
+ notes: "Oracle SQL Client Tools",
6157
+ link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
6158
+ linkText: "Oracle SQL Client",
6159
+ screenReaderOnlyText: "on oracle.com"
6152
6160
  }
6153
6161
  ];
6154
6162
 
@@ -6176,7 +6184,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
6176
6184
  }),
6177
6185
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
6178
6186
  heading: "Notice",
6179
- className: 'ds-u-margin-top--6',
6187
+ className: "ds-u-margin-top--6",
6180
6188
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6181
6189
  className: "ds-c-alert__text",
6182
6190
  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."
@@ -6185,16 +6193,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
6185
6193
  ]
6186
6194
  }),
6187
6195
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
6188
- className: 'ds-u-margin-top--4 ds-l-row',
6196
+ className: "ds-u-margin-top--4 ds-l-row",
6189
6197
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6190
- className: 'ds-l-col--12',
6198
+ className: "ds-l-col--12",
6191
6199
  children: [
6192
6200
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
6193
6201
  className: "ds-text-heading--2xl ds-text-heading--2xl",
6194
6202
  children: "Documentation by Application"
6195
6203
  }),
6196
6204
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6197
- className: 'ds-u-margin-top--4',
6205
+ className: "ds-u-margin-top--4",
6198
6206
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
6199
6207
  data: documentationList
6200
6208
  })
@@ -6222,7 +6230,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
6222
6230
  const options = {
6223
6231
  conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
6224
6232
  property: column,
6225
- operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
6233
+ operator: operator === "is" ? "=" : operator === "is not" ? "<>" : operator === "or" ? "in" : operator,
6226
6234
  ...rest
6227
6235
  })) : []
6228
6236
  };
@@ -6230,13 +6238,13 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
6230
6238
  let distribution = {};
6231
6239
  let distributions = dataset.distribution ? dataset.distribution : [];
6232
6240
  if (distributions.length) distribution = distributions[distributionIndex];
6233
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6241
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6234
6242
  ...options,
6235
6243
  limit: defaultPageSize
6236
6244
  });
6237
6245
  (0, $hgUW1$useEffect)(()=>{
6238
6246
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6239
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6247
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
6240
6248
  }, [
6241
6249
  distribution
6242
6250
  ]);
@@ -6250,7 +6258,11 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
6250
6258
  datasetTableControls: !disableTableControls
6251
6259
  },
6252
6260
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $39bc4d98030a5599$export$2e2bcd8739ae039), {
6253
- showQueryBuilder: false
6261
+ showQueryBuilder: false,
6262
+ showCopyLinkButton: false,
6263
+ showDownloadFilteredDataButton: false,
6264
+ showDownloadFullDataButton: false,
6265
+ showStoredQueryDownloadButton: true
6254
6266
  })
6255
6267
  });
6256
6268
  }
@@ -6283,7 +6295,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
6283
6295
 
6284
6296
 
6285
6297
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
6286
- if (schema[id].fields[condition.property].mysql_type === 'date') {
6298
+ if (schema[id].fields[condition.property].mysql_type === "date") {
6287
6299
  const newDate = new Date(condition.value);
6288
6300
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
6289
6301
  }
@@ -6300,9 +6312,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6300
6312
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
6301
6313
  (0, $hgUW1$useEffect)(()=>{
6302
6314
  if (property !== condition.property) {
6303
- if (property) update(index, 'property', property);
6304
- else update(index, 'property', '');
6305
- if (schema[id].fields[condition.property].mysql_type === 'date') {
6315
+ if (property) update(index, "property", property);
6316
+ else update(index, "property", "");
6317
+ if (schema[id].fields[condition.property].mysql_type === "date") {
6306
6318
  if (!value) setValue(startDate.toJSON().slice(0, 10));
6307
6319
  }
6308
6320
  }
@@ -6316,16 +6328,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6316
6328
  ]);
6317
6329
  (0, $hgUW1$useEffect)(()=>{
6318
6330
  if (operator !== condition.operator) {
6319
- if (operator) update(index, 'operator', operator);
6320
- else update(index, 'operator', '');
6331
+ if (operator) update(index, "operator", operator);
6332
+ else update(index, "operator", "");
6321
6333
  }
6322
6334
  }, [
6323
6335
  operator
6324
6336
  ]);
6325
6337
  (0, $hgUW1$useEffect)(()=>{
6326
6338
  if (value !== condition.value) {
6327
- if (value) update(index, 'value', value);
6328
- else update(index, 'value', '');
6339
+ if (value) update(index, "value", value);
6340
+ else update(index, "value", "");
6329
6341
  }
6330
6342
  }, [
6331
6343
  value
@@ -6349,7 +6361,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6349
6361
  onChange: (e)=>setOperator(e.target.value),
6350
6362
  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"
6351
6363
  }),
6352
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6364
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6353
6365
  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",
6354
6366
  children: [
6355
6367
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -6399,19 +6411,19 @@ var $374c4669b044ddf8$export$2e2bcd8739ae039 = $374c4669b044ddf8$var$QueryRow;
6399
6411
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
6400
6412
  let cond = condition;
6401
6413
  delete cond.key;
6402
- if (cond.operator === '=' || cond.operator === '<>') {
6414
+ if (cond.operator === "=" || cond.operator === "<>") {
6403
6415
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
6404
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
6416
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
6405
6417
  }
6406
- if (cond.operator.toLowerCase() === 'like') {
6418
+ if (cond.operator.toLowerCase() === "like") {
6407
6419
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
6408
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
6420
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
6409
6421
  cond.value = `%${cleanedValue}%`;
6410
6422
  }
6411
- if (cond.operator.toLowerCase() === 'in') {
6412
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
6423
+ if (cond.operator.toLowerCase() === "in") {
6424
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
6413
6425
  }
6414
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
6426
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
6415
6427
  return cond;
6416
6428
  }
6417
6429
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -6431,7 +6443,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
6431
6443
  ...queryConditions,
6432
6444
  {
6433
6445
  property: fields[0],
6434
- value: '',
6446
+ value: "",
6435
6447
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
6436
6448
  key: Date.now()
6437
6449
  }
@@ -6471,7 +6483,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
6471
6483
  encodeValuesOnly: true,
6472
6484
  addQueryPrefix: true
6473
6485
  });
6474
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
6486
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
6475
6487
  };
6476
6488
  const updateCondition = (index, key, value)=>{
6477
6489
  let newConditions = [
@@ -6544,7 +6556,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
6544
6556
 
6545
6557
 
6546
6558
  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 })=>{
6547
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
6559
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
6548
6560
  let apiDocs = (0, $hgUW1$useRef)();
6549
6561
  let distribution = {};
6550
6562
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -6556,7 +6568,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6556
6568
  } : {
6557
6569
  conditions: []
6558
6570
  };
6559
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6571
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6560
6572
  ...options,
6561
6573
  limit: 25
6562
6574
  });
@@ -6570,7 +6582,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6570
6582
  }, {
6571
6583
  encode: true
6572
6584
  })}&format=csv`;
6573
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
6585
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
6574
6586
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
6575
6587
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
6576
6588
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -6579,7 +6591,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6579
6591
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
6580
6592
  children: [
6581
6593
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6582
- className: 'ds-l-md-col--9',
6594
+ className: "ds-l-md-col--9",
6583
6595
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
6584
6596
  to: `/dataset/${id}`,
6585
6597
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -6590,14 +6602,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6590
6602
  })
6591
6603
  }),
6592
6604
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6593
- className: 'ds-l-md-col--9',
6605
+ className: "ds-l-md-col--9",
6594
6606
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6595
6607
  className: "ds-text-heading--3xl",
6596
6608
  children: customTitle ? customTitle : pageTitle
6597
6609
  })
6598
6610
  }),
6599
6611
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6600
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6612
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6601
6613
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6602
6614
  className: "ds-u-margin--0",
6603
6615
  children: [
@@ -6609,7 +6621,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6609
6621
  })
6610
6622
  }),
6611
6623
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6612
- className: 'ds-l-md-col--9',
6624
+ className: "ds-l-md-col--9",
6613
6625
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6614
6626
  distribution: distribution,
6615
6627
  dataset: dataset,
@@ -6619,13 +6631,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6619
6631
  })
6620
6632
  }),
6621
6633
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6622
- className: 'ds-l-md-col--12',
6634
+ className: "ds-l-md-col--12",
6623
6635
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
6624
6636
  resource: resource,
6625
6637
  id: distribution.identifier,
6626
6638
  customColumns: customColumns,
6627
6639
  setOffset: resource.setOffset
6628
- }) : ''
6640
+ }) : ""
6629
6641
  }),
6630
6642
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6631
6643
  value: {
@@ -6636,7 +6648,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6636
6648
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
6637
6649
  },
6638
6650
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6639
- className: 'ds-l-md-col--12',
6651
+ className: "ds-l-md-col--12",
6640
6652
  children: [
6641
6653
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
6642
6654
  includeDensity: true,
@@ -6658,14 +6670,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6658
6670
  ]
6659
6671
  })
6660
6672
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6661
- className: 'ds-l-md-col--12',
6673
+ className: "ds-l-md-col--12",
6662
6674
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
6663
6675
  role: "status",
6664
6676
  "aria-valuetext": "Resource loading"
6665
6677
  })
6666
6678
  }),
6667
6679
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6668
- className: 'ds-l-md-col--12',
6680
+ className: "ds-l-md-col--12",
6669
6681
  ref: apiDocs,
6670
6682
  children: [
6671
6683
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -6674,7 +6686,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6674
6686
  }),
6675
6687
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
6676
6688
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
6677
- docExpansion: 'list',
6689
+ docExpansion: "list",
6678
6690
  defaultModelsExpandDepth: -1
6679
6691
  })
6680
6692
  ]
@@ -6693,7 +6705,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
6693
6705
  const [ready, setReady] = (0, $hgUW1$useState)(false);
6694
6706
  const [error, setError] = (0, $hgUW1$useState)(false);
6695
6707
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6696
- const distIndex = dist_id === 'data' ? 0 : dist_id;
6708
+ const distIndex = dist_id === "data" ? 0 : dist_id;
6697
6709
  (0, $hgUW1$useEffect)(()=>{
6698
6710
  if (dataset.error) setError(true);
6699
6711
  if (dataset.distribution && dataset.distribution.length) {