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

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 })=>{
2144
+ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL: downloadURL, unfilteredDownloadURL: unfilteredDownloadURL, setPage: setPage, showQueryBuilder: showQueryBuilder = true })=>{
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,7 +2153,7 @@ 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
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2156
+ showQueryBuilder && /*#__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
2159
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -2324,12 +2324,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
2324
2324
  className: "ds-u-font-weight--bold",
2325
2325
  children: description
2326
2326
  }),
2327
- " ",
2327
+ ' ',
2328
2328
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2329
2329
  className: "ds-u-font-weight--normal",
2330
2330
  children: operator.label.toUpperCase()
2331
2331
  }),
2332
- " ",
2332
+ ' ',
2333
2333
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2334
2334
  className: "ds-u-color--success",
2335
2335
  children: formattedText
@@ -2359,7 +2359,7 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
2359
2359
 
2360
2360
 
2361
2361
  function $6369abf590ca298f$var$getStartDate(condition, schema, id) {
2362
- if (schema[id].fields[condition.property].mysql_type === "date") {
2362
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
2363
2363
  const newDate = new Date(condition.value.toString());
2364
2364
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2365
2365
  }
@@ -2375,9 +2375,9 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2375
2375
  });
2376
2376
  (0, $hgUW1$useEffect)(()=>{
2377
2377
  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") {
2378
+ if (property) update(index, 'property', property);
2379
+ else update(index, 'property', '');
2380
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
2381
2381
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2382
2382
  }
2383
2383
  }
@@ -2391,16 +2391,16 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2391
2391
  ]);
2392
2392
  (0, $hgUW1$useEffect)(()=>{
2393
2393
  if (operator !== condition.operator) {
2394
- if (operator) update(index, "operator", operator);
2395
- else update(index, "operator", "");
2394
+ if (operator) update(index, 'operator', operator);
2395
+ else update(index, 'operator', '');
2396
2396
  }
2397
2397
  }, [
2398
2398
  operator
2399
2399
  ]);
2400
2400
  (0, $hgUW1$useEffect)(()=>{
2401
2401
  if (value !== condition.value) {
2402
- if (value) update(index, "value", value);
2403
- else update(index, "value", "");
2402
+ if (value) update(index, 'value', value);
2403
+ else update(index, 'value', '');
2404
2404
  }
2405
2405
  }, [
2406
2406
  value
@@ -2432,7 +2432,7 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2432
2432
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2433
2433
  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
2434
  children: [
2435
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2435
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2436
2436
  children: [
2437
2437
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
2438
2438
  className: "ds-c-label",
@@ -2493,9 +2493,9 @@ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false,
2493
2493
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
2494
2494
  disabled: disabled,
2495
2495
  className: "ds-u-float--right ds-l-md-col--6 ds-l-col--5",
2496
- variation: small ? "ghost" : undefined,
2496
+ variation: small ? 'ghost' : undefined,
2497
2497
  onClick: ()=>clearFiltersFn(),
2498
- children: small ? "Clear all" : "Clear all filters"
2498
+ children: small ? 'Clear all' : 'Clear all filters'
2499
2499
  });
2500
2500
  };
2501
2501
  var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFiltersButton;
@@ -2504,19 +2504,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
2504
2504
  function $ee4ad47aa483e5b5$var$updateQueryForDatastore(condition) {
2505
2505
  let cond = condition;
2506
2506
  delete cond.key;
2507
- if (cond.operator === "=" || cond.operator === "<>") {
2507
+ if (cond.operator === '=' || cond.operator === '<>') {
2508
2508
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
2509
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
2509
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
2510
2510
  }
2511
- if (cond.operator.toLowerCase() === "like") {
2511
+ if (cond.operator.toLowerCase() === 'like') {
2512
2512
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
2513
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
2513
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
2514
2514
  cond.value = `%${cleanedValue}%`;
2515
2515
  }
2516
- if (cond.operator.toLowerCase() === "in") {
2517
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
2516
+ if (cond.operator.toLowerCase() === 'in') {
2517
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
2518
2518
  }
2519
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
2519
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
2520
2520
  return cond;
2521
2521
  }
2522
2522
  const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, isModal: isModal = false, setPage: setPage, setOffset: setOffset })=>{
@@ -2535,7 +2535,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2535
2535
  } else setQueryConditions([
2536
2536
  {
2537
2537
  property: fields[0],
2538
- value: "",
2538
+ value: '',
2539
2539
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
2540
2540
  key: Date.now().toString()
2541
2541
  }
@@ -2552,7 +2552,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2552
2552
  ...queryConditions,
2553
2553
  {
2554
2554
  property: fields[0],
2555
- value: "",
2555
+ value: '',
2556
2556
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
2557
2557
  key: Date.now().toString()
2558
2558
  }
@@ -2583,7 +2583,7 @@ const $ee4ad47aa483e5b5$var$QueryBuilder = ({ resource: resource, id: id, custom
2583
2583
  encodeValuesOnly: true,
2584
2584
  addQueryPrefix: true
2585
2585
  });
2586
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
2586
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
2587
2587
  };
2588
2588
  const submitConditions = (e)=>{
2589
2589
  // only update the data conditions when "Apply filters" is pressed
@@ -2697,7 +2697,7 @@ function $a35cf16d1488f54e$export$1147582dfae658c6(columns, schema) {
2697
2697
  accessor: column
2698
2698
  }));
2699
2699
  }
2700
- const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFullScreenModal: closeFullScreenModal })=>{
2700
+ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFullScreenModal: closeFullScreenModal, showQueryBuilder: showQueryBuilder = false })=>{
2701
2701
  const { id: id, distribution: distribution, resource: resource, rootUrl: rootUrl, customColumns: customColumns = [], dataDictionaryBanner: dataDictionaryBanner } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
2702
2702
  const { page: page, setPage: setPage } = (0, $hgUW1$useContext)((0, $ebda441784d176a5$export$2e2bcd8739ae039));
2703
2703
  const defaultPageSize = 10;
@@ -2712,7 +2712,7 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFul
2712
2712
  })}&format=csv`;
2713
2713
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2714
2714
  children: [
2715
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $ee4ad47aa483e5b5$export$2e2bcd8739ae039), {
2715
+ showQueryBuilder && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $ee4ad47aa483e5b5$export$2e2bcd8739ae039), {
2716
2716
  resource: resource,
2717
2717
  id: distribution.identifier,
2718
2718
  customColumns: customColumnHeaders,
@@ -2729,15 +2729,16 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, closeFul
2729
2729
  resource: resource,
2730
2730
  downloadURL: downloadURL,
2731
2731
  unfilteredDownloadURL: distribution.data.downloadURL,
2732
- setPage: setPage
2732
+ setPage: setPage,
2733
+ showQueryBuilder: showQueryBuilder
2733
2734
  }),
2734
2735
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2735
- className: `ds-u-border-x--1 ds-u-border-bottom--1 ${isModal && "dkan-datatable-fullscreen-mode"}`,
2736
+ className: `ds-u-border-x--1 ds-u-border-bottom--1 ${isModal && 'dkan-datatable-fullscreen-mode'}`,
2736
2737
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2737
2738
  canResize: true,
2738
2739
  columns: columns,
2739
2740
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2740
- tablePadding: "ds-u-padding-y--2",
2741
+ tablePadding: 'ds-u-padding-y--2',
2741
2742
  loading: resource.loading,
2742
2743
  isModal: isModal,
2743
2744
  closeFullScreenModal: closeFullScreenModal
@@ -2770,7 +2771,7 @@ var $a35cf16d1488f54e$export$2e2bcd8739ae039 = $a35cf16d1488f54e$var$DatasetTabl
2770
2771
 
2771
2772
  const $16bd41951b91f02d$var$FullScreenDataTable = ({ modalOpen: modalOpen, setModalOpen: setModalOpen })=>{
2772
2773
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2773
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2774
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2774
2775
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2775
2776
  heading: "Dataset Explorer",
2776
2777
  isOpen: modalOpen,
@@ -2820,7 +2821,7 @@ const $71b4324f265dec16$var$DataTableControls = ({ id: id, columns: columns, def
2820
2821
  ]
2821
2822
  }),
2822
2823
  /*#__PURE__*/ (0, $hgUW1$jsxs)("button", {
2823
- "aria-label": isModal ? "Close Full Screen dialog" : "Full Screen mode - Opens in a dialog",
2824
+ "aria-label": isModal ? 'Close Full Screen dialog' : 'Full Screen mode - Opens in a dialog',
2824
2825
  className: "ds-c-button ds-c-button--ghost ds-u-margin-y--1",
2825
2826
  onClick: ()=>{
2826
2827
  if (isModal) closeFullScreenModal();
@@ -2828,7 +2829,7 @@ const $71b4324f265dec16$var$DataTableControls = ({ id: id, columns: columns, def
2828
2829
  },
2829
2830
  children: [
2830
2831
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2831
- className: `fa ${isModal ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2832
+ className: `fa ${isModal ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2832
2833
  }),
2833
2834
  isModal ? "Exit Full Screen" : "Full Screen"
2834
2835
  ]
@@ -2865,7 +2866,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2865
2866
  const { columnOrder: columnOrder, setColumnOrder: setColumnOrder, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility } = (0, $hgUW1$useContext)((0, $ebda441784d176a5$export$2e2bcd8739ae039));
2866
2867
  const data = resource.values;
2867
2868
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
2868
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
2869
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
2869
2870
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
2870
2871
  const columnHelper = (0, $hgUW1$createColumnHelper)();
2871
2872
  const table_columns = columns.map((col)=>{
@@ -2884,9 +2885,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2884
2885
  columnOrder
2885
2886
  ]);
2886
2887
  const sortElement = (isSorted, onClickFn)=>{
2887
- if (isSorted === "asc") return "dc-c-sort--asc";
2888
- if (isSorted === "desc") return "dc-c-sort--desc";
2889
- return "dc-c-sort--default";
2888
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
2889
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
2890
+ return 'dc-c-sort--default';
2890
2891
  };
2891
2892
  const filters = [];
2892
2893
  const table = (0, $hgUW1$useReactTable)({
@@ -2898,7 +2899,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2898
2899
  columnVisibility: columnVisibility,
2899
2900
  sorting: sorting
2900
2901
  },
2901
- columnResizeMode: "onChange",
2902
+ columnResizeMode: 'onChange',
2902
2903
  onSortingChange: setSorting,
2903
2904
  onColumnOrderChange: setColumnOrder,
2904
2905
  onColumnVisibilityChange: setColumnVisibility,
@@ -2915,7 +2916,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
2915
2916
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
2916
2917
  const tableWrapperWidth = ()=>{
2917
2918
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
2918
- return "auto";
2919
+ return 'auto';
2919
2920
  };
2920
2921
  (0, $hgUW1$useEffect)(()=>{
2921
2922
  setHighlightRow(null);
@@ -3017,7 +3018,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3017
3018
  },
3018
3019
  labelClassName: "ds-u-visibility--screen-reader",
3019
3020
  name: accessor,
3020
- value: filterValue || ""
3021
+ value: filterValue || ''
3021
3022
  });
3022
3023
  }
3023
3024
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -3093,7 +3094,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
3093
3094
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3094
3095
  children: currentPage
3095
3096
  })
3096
- }) : ""
3097
+ }) : ''
3097
3098
  ]
3098
3099
  })
3099
3100
  });
@@ -3150,11 +3151,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
3150
3151
 
3151
3152
 
3152
3153
 
3153
- 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", {
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", {
3154
3155
  className: "search-input-container",
3155
3156
  children: [
3156
3157
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
3157
- className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
3158
+ className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
3158
3159
  label: placeholder,
3159
3160
  labelClassName: "ds-u-visibility--screen-reader",
3160
3161
  placeholder: placeholder,
@@ -3169,7 +3170,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = "Search
3169
3170
  }),
3170
3171
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
3171
3172
  variation: "solid",
3172
- className: onDark && "on-dark",
3173
+ className: onDark && 'on-dark',
3173
3174
  onClick: onSubmit,
3174
3175
  children: [
3175
3176
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -3301,7 +3302,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
3301
3302
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3302
3303
  addQueryPrefix: true
3303
3304
  })}`,
3304
- docExpansion: "list",
3305
+ docExpansion: 'list',
3305
3306
  defaultModelsExpandDepth: -1,
3306
3307
  plugins: [
3307
3308
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -3469,7 +3470,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
3469
3470
  size: "big",
3470
3471
  type: "submit",
3471
3472
  style: {
3472
- width: "70px"
3473
+ width: '70px'
3473
3474
  },
3474
3475
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3475
3476
  className: "fas fa-search small-text"
@@ -3486,7 +3487,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
3486
3487
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
3487
3488
  children: [
3488
3489
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3489
- children: text ? text : "Search"
3490
+ children: text ? text : 'Search'
3490
3491
  }),
3491
3492
  ` `,
3492
3493
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -3571,12 +3572,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
3571
3572
  fulltext: fulltext ? fulltext : undefined,
3572
3573
  ...selectedFacets,
3573
3574
  sort: sort ? sort : undefined,
3574
- ["sort-order"]: sortOrder ? sortOrder : undefined,
3575
+ ['sort-order']: sortOrder ? sortOrder : undefined,
3575
3576
  page: page !== 1 ? page : undefined,
3576
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
3577
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
3577
3578
  };
3578
3579
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3579
- arrayFormat: "comma",
3580
+ arrayFormat: 'comma',
3580
3581
  encode: false
3581
3582
  })}`);
3582
3583
  }
@@ -3587,26 +3588,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
3587
3588
 
3588
3589
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3589
3590
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
3590
- defaultSort: "modified",
3591
- defaultOrder: "desc"
3592
- }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
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;
3593
3594
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
3594
3595
  const sortOptions = [
3595
3596
  {
3596
- label: "Newest",
3597
- value: "newest"
3597
+ label: 'Newest',
3598
+ value: 'newest'
3598
3599
  },
3599
3600
  {
3600
- label: "Oldest",
3601
- value: "oldest"
3601
+ label: 'Oldest',
3602
+ value: 'oldest'
3602
3603
  },
3603
3604
  {
3604
- label: "Title A-Z",
3605
- value: "titleAZ"
3605
+ label: 'Title A-Z',
3606
+ value: 'titleAZ'
3606
3607
  },
3607
3608
  {
3608
- label: "Title Z-A",
3609
- value: "titleZA"
3609
+ label: 'Title Z-A',
3610
+ value: 'titleZA'
3610
3611
  }
3611
3612
  ];
3612
3613
  const defaultSortBy = "";
@@ -3625,7 +3626,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3625
3626
  endingNumber: 0
3626
3627
  });
3627
3628
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
3628
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
3629
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
3629
3630
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
3630
3631
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
3631
3632
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -3634,7 +3635,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3634
3635
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
3635
3636
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
3636
3637
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
3637
- return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
3638
+ return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
3638
3639
  });
3639
3640
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
3640
3641
  theme: [],
@@ -3643,21 +3644,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3643
3644
  const setSortOptions = (value)=>{
3644
3645
  setSortDisplay(value);
3645
3646
  switch(value){
3646
- case "newest":
3647
- setSort("modified");
3648
- setSortOrder("desc");
3647
+ case 'newest':
3648
+ setSort('modified');
3649
+ setSortOrder('desc');
3649
3650
  break;
3650
- case "oldest":
3651
- setSort("modified");
3652
- setSortOrder("asc");
3651
+ case 'oldest':
3652
+ setSort('modified');
3653
+ setSortOrder('asc');
3653
3654
  break;
3654
- case "titleAZ":
3655
- setSort("title");
3656
- setSortOrder("asc");
3655
+ case 'titleAZ':
3656
+ setSort('title');
3657
+ setSortOrder('asc');
3657
3658
  break;
3658
- case "titleZA":
3659
- setSort("title");
3660
- setSortOrder("desc");
3659
+ case 'titleZA':
3660
+ setSort('title');
3661
+ setSortOrder('desc');
3661
3662
  break;
3662
3663
  }
3663
3664
  };
@@ -3665,12 +3666,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3665
3666
  const newFacets = {
3666
3667
  ...selectedFacets
3667
3668
  };
3668
- if (key === "theme") {
3669
+ if (key === 'theme') {
3669
3670
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
3670
3671
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
3671
3672
  else newFacets.theme.push(value);
3672
3673
  }
3673
- if (key === "keyword") {
3674
+ if (key === 'keyword') {
3674
3675
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
3675
3676
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
3676
3677
  else newFacets.keyword.push(value);
@@ -3684,14 +3685,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3684
3685
  });
3685
3686
  setSelectedFacets(newFacets);
3686
3687
  const url = new URL(window.location.href);
3687
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3688
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3688
3689
  }
3689
3690
  const pageSize = defaultPageSize;
3690
3691
  (0, $hgUW1$useEffect)(()=>{
3691
3692
  // Update browser URL with current search params
3692
3693
  const params = buildSearchParams(true);
3693
3694
  const url = new URL(window.location.href);
3694
- window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
3695
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
3695
3696
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
3696
3697
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
3697
3698
  const endingNumber = Number(pageSize) * Number(page);
@@ -3730,14 +3731,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3730
3731
  setSelectedFacets(defaultSelectedFacets);
3731
3732
  setPage(defaultPage);
3732
3733
  const url = new URL(window.location.href);
3733
- window.history.pushState({}, "", `${url.origin}${url.pathname}`);
3734
+ window.history.pushState({}, '', `${url.origin}${url.pathname}`);
3734
3735
  }
3735
3736
  function buildSearchParams(includePage) {
3736
3737
  let newParams = {};
3737
3738
  if (Number(page) !== 1 && includePage) newParams.page = page;
3738
3739
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
3739
3740
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
3740
- if (fulltext !== "") newParams.fulltext = fulltext;
3741
+ if (fulltext !== '') newParams.fulltext = fulltext;
3741
3742
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
3742
3743
  newParams[key] = selectedFacets[key];
3743
3744
  });
@@ -3750,9 +3751,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3750
3751
  fulltext: fulltext ? fulltext : undefined,
3751
3752
  ...selectedFacets,
3752
3753
  sort: sort ? sort : undefined,
3753
- ["sort-order"]: sortOrder ? sortOrder : undefined,
3754
+ ['sort-order']: sortOrder ? sortOrder : undefined,
3754
3755
  page: page !== 1 ? page : undefined,
3755
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
3756
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
3756
3757
  };
3757
3758
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
3758
3759
  queryKey: [
@@ -3761,7 +3762,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3761
3762
  ],
3762
3763
  queryFn: ()=>{
3763
3764
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
3764
- arrayFormat: "comma",
3765
+ arrayFormat: 'comma',
3765
3766
  encode: false
3766
3767
  })}`);
3767
3768
  }
@@ -3812,7 +3813,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3812
3813
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
3813
3814
  fieldClassName: "ds-u-margin--0",
3814
3815
  value: filterText,
3815
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
3816
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
3816
3817
  label: "Search datasets",
3817
3818
  labelClassName: "ds-u-visibility--screen-reader",
3818
3819
  placeholder: "Search datasets",
@@ -3874,7 +3875,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3874
3875
  "Showing ",
3875
3876
  currentResultNumbers.startingNumber,
3876
3877
  " -",
3877
- " ",
3878
+ ' ',
3878
3879
  currentResultNumbers.endingNumber,
3879
3880
  " of ",
3880
3881
  data.data.total,
@@ -3950,7 +3951,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
3950
3951
  },
3951
3952
  renderHref: (page)=>{
3952
3953
  const searchParams = buildSearchParams(false);
3953
- const includeAnd = searchParams ? "&" : "";
3954
+ const includeAnd = searchParams ? '&' : '';
3954
3955
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
3955
3956
  }
3956
3957
  })
@@ -3983,12 +3984,12 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
3983
3984
 
3984
3985
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
3985
3986
  const [dataset, setDataset] = (0, $hgUW1$useState)({
3986
- title: "",
3987
+ title: '',
3987
3988
  distribution: [],
3988
- error: "",
3989
- description: "",
3990
- identifier: "",
3991
- modified: ""
3989
+ error: '',
3990
+ description: '',
3991
+ identifier: '',
3992
+ modified: ''
3992
3993
  });
3993
3994
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
3994
3995
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -3998,7 +3999,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
3998
3999
  "metastore" + id
3999
4000
  ],
4000
4001
  queryFn: ()=>{
4001
- 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)=>{
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)=>{
4002
4003
  return {
4003
4004
  title: dataset.title,
4004
4005
  distribution: dataset.distribution,
@@ -4064,7 +4065,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
4064
4065
  ...additionalParams
4065
4066
  };
4066
4067
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
4067
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
4068
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
4068
4069
  let enabled = false;
4069
4070
  if (id) {
4070
4071
  if (!requireConditions) enabled = true;
@@ -4144,65 +4145,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
4144
4145
 
4145
4146
 
4146
4147
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
4147
- "R/P10Y": {
4148
- name: "Decennial"
4148
+ 'R/P10Y': {
4149
+ name: 'Decennial'
4149
4150
  },
4150
- "R/P4Y": {
4151
- name: "Quadrennial"
4151
+ 'R/P4Y': {
4152
+ name: 'Quadrennial'
4152
4153
  },
4153
- "R/P1Y": {
4154
- name: "Annual"
4154
+ 'R/P1Y': {
4155
+ name: 'Annual'
4155
4156
  },
4156
- "R/P2M": {
4157
- name: "Bimonthly"
4157
+ 'R/P2M': {
4158
+ name: 'Bimonthly'
4158
4159
  },
4159
- "R/P3.5D": {
4160
- name: "Semiweekly"
4160
+ 'R/P3.5D': {
4161
+ name: 'Semiweekly'
4161
4162
  },
4162
- "R/P1D": {
4163
- name: "Daily"
4163
+ 'R/P1D': {
4164
+ name: 'Daily'
4164
4165
  },
4165
- "R/P2W": {
4166
- name: "Biweekly"
4166
+ 'R/P2W': {
4167
+ name: 'Biweekly'
4167
4168
  },
4168
- "R/P6M": {
4169
- name: "Semiannual"
4169
+ 'R/P6M': {
4170
+ name: 'Semiannual'
4170
4171
  },
4171
- "R/P2Y": {
4172
- name: "Biennial"
4172
+ 'R/P2Y': {
4173
+ name: 'Biennial'
4173
4174
  },
4174
- "R/P3Y": {
4175
- name: "Triennial"
4175
+ 'R/P3Y': {
4176
+ name: 'Triennial'
4176
4177
  },
4177
- "R/P0.33W": {
4178
- name: "Three times a week"
4178
+ 'R/P0.33W': {
4179
+ name: 'Three times a week'
4179
4180
  },
4180
- "R/P0.33M": {
4181
- name: "Three times a month"
4181
+ 'R/P0.33M': {
4182
+ name: 'Three times a month'
4182
4183
  },
4183
- "R/PT1S": {
4184
- name: "Continuously updated"
4184
+ 'R/PT1S': {
4185
+ name: 'Continuously updated'
4185
4186
  },
4186
- "R/P1M": {
4187
- name: "Monthly"
4187
+ 'R/P1M': {
4188
+ name: 'Monthly'
4188
4189
  },
4189
- "R/P3M": {
4190
- name: "Quarterly"
4190
+ 'R/P3M': {
4191
+ name: 'Quarterly'
4191
4192
  },
4192
- "R/P0.5M": {
4193
- name: "Semimonthly"
4193
+ 'R/P0.5M': {
4194
+ name: 'Semimonthly'
4194
4195
  },
4195
- "R/P4M": {
4196
- name: "Three times a year"
4196
+ 'R/P4M': {
4197
+ name: 'Three times a year'
4197
4198
  },
4198
- "R/P1W": {
4199
- name: "Weekly"
4199
+ 'R/P1W': {
4200
+ name: 'Weekly'
4200
4201
  },
4201
- "R/PT1H": {
4202
- name: "Hourly"
4202
+ 'R/PT1H': {
4203
+ name: 'Hourly'
4203
4204
  },
4204
4205
  irregular: {
4205
- name: "Irregular"
4206
+ name: 'Irregular'
4206
4207
  }
4207
4208
  };
4208
4209
 
@@ -4211,7 +4212,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4211
4212
  modified: (data)=>{
4212
4213
  return [
4213
4214
  {
4214
- label: "Modified",
4215
+ label: 'Modified',
4215
4216
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
4216
4217
  date: data
4217
4218
  })
@@ -4221,7 +4222,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4221
4222
  issued: (data)=>{
4222
4223
  return [
4223
4224
  {
4224
- label: "Issued",
4225
+ label: 'Issued',
4225
4226
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
4226
4227
  date: data
4227
4228
  })
@@ -4231,7 +4232,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4231
4232
  accrualPeriodicity: (data)=>{
4232
4233
  return [
4233
4234
  {
4234
- label: "Frequency",
4235
+ label: 'Frequency',
4235
4236
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
4236
4237
  }
4237
4238
  ];
@@ -4239,7 +4240,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4239
4240
  publisher: (data)=>{
4240
4241
  if (data.data && data.data.name) return [
4241
4242
  {
4242
- label: "Publisher",
4243
+ label: 'Publisher',
4243
4244
  value: data.data.name
4244
4245
  }
4245
4246
  ];
@@ -4248,7 +4249,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4248
4249
  identifier: (data)=>{
4249
4250
  return [
4250
4251
  {
4251
- label: "Identifier",
4252
+ label: 'Identifier',
4252
4253
  value: data
4253
4254
  }
4254
4255
  ];
@@ -4256,11 +4257,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4256
4257
  contactPoint: (data)=>{
4257
4258
  let rows = [];
4258
4259
  if (data.fn) rows.push({
4259
- label: "Contact",
4260
+ label: 'Contact',
4260
4261
  value: data.fn
4261
4262
  });
4262
4263
  if (data.hasEmail) rows.push({
4263
- label: "Contact Email",
4264
+ label: 'Contact Email',
4264
4265
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
4265
4266
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
4266
4267
  children: data.hasEmail.replace("mailto:", "")
@@ -4271,7 +4272,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4271
4272
  bureauCode: (data)=>{
4272
4273
  if (data.length) return [
4273
4274
  {
4274
- label: "Bureau Code",
4275
+ label: 'Bureau Code',
4275
4276
  value: data[0]
4276
4277
  }
4277
4278
  ];
@@ -4279,7 +4280,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4279
4280
  programCode: (data)=>{
4280
4281
  if (data.length) return [
4281
4282
  {
4282
- label: "Program Code",
4283
+ label: 'Program Code',
4283
4284
  value: data[0]
4284
4285
  }
4285
4286
  ];
@@ -4287,13 +4288,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4287
4288
  theme: (data)=>{
4288
4289
  return [
4289
4290
  {
4290
- label: "Category",
4291
+ label: 'Category',
4291
4292
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
4292
4293
  to: `/datasets?theme[]=${theme.data}`,
4293
4294
  children: theme.data
4294
4295
  }, theme.data)).reduce((prev, curr)=>[
4295
4296
  prev,
4296
- ", ",
4297
+ ', ',
4297
4298
  curr
4298
4299
  ])
4299
4300
  }
@@ -4302,13 +4303,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4302
4303
  keyword: (data)=>{
4303
4304
  return [
4304
4305
  {
4305
- label: "Tags",
4306
+ label: 'Tags',
4306
4307
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
4307
4308
  to: `/datasets?keyword[]=${keyword.data}`,
4308
4309
  children: keyword.data
4309
4310
  }, keyword.data)).reduce((prev, curr)=>[
4310
4311
  prev,
4311
- ", ",
4312
+ ', ',
4312
4313
  curr
4313
4314
  ])
4314
4315
  }
@@ -4317,7 +4318,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4317
4318
  license: (data)=>{
4318
4319
  return [
4319
4320
  {
4320
- label: "License",
4321
+ label: 'License',
4321
4322
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
4322
4323
  href: data,
4323
4324
  children: data
@@ -4328,7 +4329,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4328
4329
  accessLevel: (data)=>{
4329
4330
  return [
4330
4331
  {
4331
- label: "Public Access Level",
4332
+ label: 'Public Access Level',
4332
4333
  value: data
4333
4334
  }
4334
4335
  ];
@@ -4336,7 +4337,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4336
4337
  temporal: (data)=>{
4337
4338
  return [
4338
4339
  {
4339
- label: "Temporal Coverage",
4340
+ label: 'Temporal Coverage',
4340
4341
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4341
4342
  className: "dc-c-word-break--all",
4342
4343
  children: data
@@ -4347,7 +4348,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4347
4348
  spatial: (data)=>{
4348
4349
  return [
4349
4350
  {
4350
- label: "Spacial/Geographical Coverage",
4351
+ label: 'Spacial/Geographical Coverage',
4351
4352
  value: data
4352
4353
  }
4353
4354
  ];
@@ -4355,7 +4356,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
4355
4356
  references: (data)=>{
4356
4357
  return [
4357
4358
  {
4358
- label: "Related Documents",
4359
+ label: 'Related Documents',
4359
4360
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
4360
4361
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
4361
4362
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -4436,7 +4437,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
4436
4437
  if (dist && dist.data) {
4437
4438
  if (dist.data.format) return dist.data.format.toLowerCase();
4438
4439
  if (dist.data.mediaType) {
4439
- const mediaType = dist.data.mediaType.split("/");
4440
+ const mediaType = dist.data.mediaType.split('/');
4440
4441
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
4441
4442
  }
4442
4443
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -4446,7 +4447,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
4446
4447
  }
4447
4448
  }
4448
4449
  }
4449
- return "";
4450
+ return '';
4450
4451
  }
4451
4452
 
4452
4453
 
@@ -4490,8 +4491,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
4490
4491
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
4491
4492
  href: dist.data.downloadURL,
4492
4493
  style: {
4493
- order: sm ? "1" : "0",
4494
- width: sm ? "100%" : "auto"
4494
+ order: sm ? '1' : '0',
4495
+ width: sm ? '100%' : 'auto'
4495
4496
  },
4496
4497
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
4497
4498
  className: "ds-c-button",
@@ -4504,7 +4505,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
4504
4505
  })
4505
4506
  }),
4506
4507
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4507
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
4508
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
4508
4509
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4509
4510
  className: "dc-c-metadata-description ds-u-margin--0",
4510
4511
  dangerouslySetInnerHTML: {
@@ -4576,7 +4577,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
4576
4577
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
4577
4578
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
4578
4579
  children: [
4579
- md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4580
+ md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4580
4581
  component: "th",
4581
4582
  className: "ds-u-font-weight--bold",
4582
4583
  children: [
@@ -4587,8 +4588,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
4587
4588
  title: tooltip.title,
4588
4589
  // @ts-ignore
4589
4590
  style: {
4590
- border: "none",
4591
- background: "none"
4591
+ border: 'none',
4592
+ background: 'none'
4592
4593
  },
4593
4594
  maxWidth: "400px",
4594
4595
  placement: "auto",
@@ -4647,10 +4648,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
4647
4648
  href: apiUrl,
4648
4649
  children: [
4649
4650
  "View API",
4650
- " ",
4651
+ ' ',
4651
4652
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
4652
4653
  style: {
4653
- whiteSpace: "nowrap"
4654
+ whiteSpace: 'nowrap'
4654
4655
  },
4655
4656
  children: [
4656
4657
  "specification ",
@@ -4691,20 +4692,20 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
4691
4692
 
4692
4693
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
4693
4694
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
4694
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
4695
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
4695
4696
  const mobile = (0, $hgUW1$useMediaQuery)({
4696
4697
  minWidth: 0,
4697
4698
  maxWidth: 544
4698
4699
  });
4699
4700
  const sortElement = (isSorted)=>{
4700
- if (isSorted === "asc") return "dc-c-sort--asc";
4701
- if (isSorted === "desc") return "dc-c-sort--desc";
4702
- return "dc-c-sort--default";
4701
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
4702
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
4703
+ return 'dc-c-sort--default';
4703
4704
  };
4704
4705
  const table = (0, $hgUW1$useReactTable)({
4705
4706
  data: tableData,
4706
4707
  columns: tableColumns,
4707
- columnResizeMode: "onChange",
4708
+ columnResizeMode: 'onChange',
4708
4709
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
4709
4710
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
4710
4711
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -4723,49 +4724,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4723
4724
  });
4724
4725
  const sortOptions = [
4725
4726
  {
4726
- value: "default",
4727
- label: "No Sort"
4727
+ value: 'default',
4728
+ label: 'No Sort'
4728
4729
  },
4729
4730
  {
4730
- value: "titleasc",
4731
- label: "Title A-Z"
4731
+ value: 'titleasc',
4732
+ label: 'Title A-Z'
4732
4733
  },
4733
4734
  {
4734
- value: "titledesc",
4735
- label: "Title Z-A"
4735
+ value: 'titledesc',
4736
+ label: 'Title Z-A'
4736
4737
  },
4737
4738
  {
4738
- value: "typeasc",
4739
- label: "Type A-Z"
4739
+ value: 'typeasc',
4740
+ label: 'Type A-Z'
4740
4741
  },
4741
4742
  {
4742
- value: "typedesc",
4743
- label: "Type Z-A"
4743
+ value: 'typedesc',
4744
+ label: 'Type Z-A'
4744
4745
  }
4745
4746
  ];
4746
4747
  const sortStatesLookup = {
4747
4748
  default: [],
4748
4749
  titleasc: [
4749
4750
  {
4750
- id: "titleResizable",
4751
+ id: 'titleResizable',
4751
4752
  desc: false
4752
4753
  }
4753
4754
  ],
4754
4755
  titledesc: [
4755
4756
  {
4756
- id: "titleResizable",
4757
+ id: 'titleResizable',
4757
4758
  desc: true
4758
4759
  }
4759
4760
  ],
4760
4761
  typeasc: [
4761
4762
  {
4762
- id: "type",
4763
+ id: 'type',
4763
4764
  desc: false
4764
4765
  }
4765
4766
  ],
4766
4767
  typedesc: [
4767
4768
  {
4768
- id: "type",
4769
+ id: 'type',
4769
4770
  desc: true
4770
4771
  }
4771
4772
  ]
@@ -4793,7 +4794,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4793
4794
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
4794
4795
  className: "dc-c-datatable",
4795
4796
  style: {
4796
- width: "100%"
4797
+ width: '100%'
4797
4798
  },
4798
4799
  stackable: true,
4799
4800
  children: [
@@ -4809,12 +4810,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4809
4810
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
4810
4811
  key: header.id,
4811
4812
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
4812
- id: "dataDictionary_" + header.id,
4813
+ id: 'dataDictionary_' + header.id,
4813
4814
  children: [
4814
4815
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
4815
- header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4816
+ header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
4816
4817
  onClick: header.column.getToggleSortingHandler(),
4817
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
4818
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
4818
4819
  "aria-label": `${header.column.columnDef.header} sort order`
4819
4820
  })
4820
4821
  ]
@@ -4829,12 +4830,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4829
4830
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
4830
4831
  key: cell.id,
4831
4832
  style: {
4832
- maxWidth: mobile ? "100%" : cell.column.getSize(),
4833
- whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
4833
+ maxWidth: mobile ? '100%' : cell.column.getSize(),
4834
+ whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
4834
4835
  },
4835
- className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
4836
- headers: "dataDictionary_" + cell.column.id,
4837
- stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
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,
4838
4839
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
4839
4840
  });
4840
4841
  })
@@ -4863,7 +4864,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
4863
4864
  table.setPageIndex(page - 1);
4864
4865
  },
4865
4866
  renderHref: (page)=>`/page=${page}`
4866
- }) : ""
4867
+ }) : ''
4867
4868
  ]
4868
4869
  });
4869
4870
  };
@@ -4873,17 +4874,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
4873
4874
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
4874
4875
  const columnHelper = (0, $hgUW1$createColumnHelper)();
4875
4876
  const tableColumns = [
4876
- columnHelper.accessor("name", {
4877
- header: "Name"
4877
+ columnHelper.accessor('name', {
4878
+ header: 'Name'
4878
4879
  }),
4879
- columnHelper.accessor("title", {
4880
- header: "Title"
4880
+ columnHelper.accessor('title', {
4881
+ header: 'Title'
4881
4882
  }),
4882
- columnHelper.accessor("type", {
4883
- header: "Type"
4883
+ columnHelper.accessor('type', {
4884
+ header: 'Type'
4884
4885
  }),
4885
- columnHelper.accessor("format", {
4886
- header: "Format"
4886
+ columnHelper.accessor('format', {
4887
+ header: 'Format'
4887
4888
  })
4888
4889
  ];
4889
4890
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -4927,7 +4928,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4927
4928
  });
4928
4929
  const columnHelper = (0, $hgUW1$createColumnHelper)();
4929
4930
  const tableColumns = [
4930
- columnHelper.accessor("titleResizable", {
4931
+ columnHelper.accessor('titleResizable', {
4931
4932
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
4932
4933
  className: "dc-c-tooltip-width-override",
4933
4934
  children: [
@@ -4936,8 +4937,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4936
4937
  title: "Title represents the column headers of the data file",
4937
4938
  // @ts-ignore
4938
4939
  style: {
4939
- border: "none",
4940
- background: "none"
4940
+ border: 'none',
4941
+ background: 'none'
4941
4942
  },
4942
4943
  maxWidth: "400px",
4943
4944
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -4947,48 +4948,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
4947
4948
  size: 300,
4948
4949
  minSize: 132
4949
4950
  }),
4950
- columnHelper.accessor("description", {
4951
- header: "Description",
4951
+ columnHelper.accessor('description', {
4952
+ header: 'Description',
4952
4953
  minSize: 600
4953
4954
  }),
4954
- columnHelper.accessor("type", {
4955
- header: "Type",
4955
+ columnHelper.accessor('type', {
4956
+ header: 'Type',
4956
4957
  size: 150,
4957
4958
  enableResizing: false
4958
4959
  })
4959
4960
  ];
4960
4961
  const typeOptions = [
4961
4962
  {
4962
- value: "all",
4963
- label: "All Types"
4963
+ value: 'all',
4964
+ label: 'All Types'
4964
4965
  },
4965
4966
  {
4966
- value: "string",
4967
- label: "String"
4967
+ value: 'string',
4968
+ label: 'String'
4968
4969
  },
4969
4970
  {
4970
- value: "date",
4971
- label: "Date"
4971
+ value: 'date',
4972
+ label: 'Date'
4972
4973
  },
4973
4974
  {
4974
- value: "datetime",
4975
- label: "Datetime"
4975
+ value: 'datetime',
4976
+ label: 'Datetime'
4976
4977
  },
4977
4978
  {
4978
- value: "year",
4979
- label: "Year"
4979
+ value: 'year',
4980
+ label: 'Year'
4980
4981
  },
4981
4982
  {
4982
- value: "integer",
4983
- label: "Integer"
4983
+ value: 'integer',
4984
+ label: 'Integer'
4984
4985
  },
4985
4986
  {
4986
- value: "number",
4987
- label: "Number"
4987
+ value: 'number',
4988
+ label: 'Number'
4988
4989
  },
4989
4990
  {
4990
- value: "boolean",
4991
- label: "Boolean"
4991
+ value: 'boolean',
4992
+ label: 'Boolean'
4992
4993
  }
4993
4994
  ];
4994
4995
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -5095,7 +5096,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
5095
5096
  href: datasetDictionaryEndpoint + "/csv",
5096
5097
  className: "ds-c-button",
5097
5098
  style: {
5098
- width: "100%"
5099
+ width: '100%'
5099
5100
  },
5100
5101
  children: [
5101
5102
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -5131,7 +5132,7 @@ var $6012b86ffcaf3f71$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5131
5132
 
5132
5133
 
5133
5134
 
5134
- const $39bc4d98030a5599$var$DataTableStateWrapper = ()=>{
5135
+ const $39bc4d98030a5599$var$DataTableStateWrapper = ({ showQueryBuilder: showQueryBuilder = true })=>{
5135
5136
  const { id: id, datasetTableControls: datasetTableControls } = (0, $hgUW1$useContext)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039));
5136
5137
  // a wrapper component to keep column state synced between full screen and regular modes
5137
5138
  const localStorageData = id ? JSON.parse(localStorage.getItem(id)) : null;
@@ -5154,7 +5155,9 @@ const $39bc4d98030a5599$var$DataTableStateWrapper = ()=>{
5154
5155
  page: page,
5155
5156
  setPage: setPage
5156
5157
  },
5157
- children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $a35cf16d1488f54e$export$2e2bcd8739ae039), {})
5158
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $a35cf16d1488f54e$export$2e2bcd8739ae039), {
5159
+ showQueryBuilder: showQueryBuilder
5160
+ })
5158
5161
  });
5159
5162
  };
5160
5163
  var $39bc4d98030a5599$export$2e2bcd8739ae039 = $39bc4d98030a5599$var$DataTableStateWrapper;
@@ -5168,7 +5171,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
5168
5171
  const [description, setDescription] = (0, $hgUW1$useState)("");
5169
5172
  if (!distribution && !dataset?.identifier) return null;
5170
5173
  (0, $hgUW1$useEffect)(()=>{
5171
- let newDescription = "";
5174
+ let newDescription = '';
5172
5175
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
5173
5176
  else {
5174
5177
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -5183,7 +5186,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
5183
5186
  customDescription
5184
5187
  ]);
5185
5188
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5186
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
5189
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5187
5190
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5188
5191
  className: "ds-u-margin-top--0 dc-c-metadata-description",
5189
5192
  dangerouslySetInnerHTML: {
@@ -5205,7 +5208,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
5205
5208
  ],
5206
5209
  queryFn: ()=>{
5207
5210
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
5208
- arrayFormat: "comma",
5211
+ arrayFormat: 'comma',
5209
5212
  encode: false
5210
5213
  })}`).then((res)=>res.json());
5211
5214
  }
@@ -5224,7 +5227,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5224
5227
  conditions: []
5225
5228
  };
5226
5229
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
5227
- const title = dataset.title ? dataset.title : "";
5230
+ const title = dataset.title ? dataset.title : '';
5228
5231
  const metadataMapping = {
5229
5232
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
5230
5233
  ...customMetadataMapping
@@ -5232,7 +5235,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5232
5235
  let distribution = {};
5233
5236
  let distributions = dataset.distribution ? dataset.distribution : [];
5234
5237
  if (distributions.length) distribution = distributions[0];
5235
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
5238
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
5236
5239
  ...options,
5237
5240
  limit: defaultPageSize
5238
5241
  });
@@ -5244,7 +5247,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5244
5247
  }) : null;
5245
5248
  (0, $hgUW1$useEffect)(()=>{
5246
5249
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
5247
- if (localFileFormat === "csv") resource.setResource(distribution.identifier);
5250
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
5248
5251
  }, [
5249
5252
  distribution
5250
5253
  ]);
@@ -5299,26 +5302,26 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5299
5302
  distribution,
5300
5303
  window.location.hash
5301
5304
  ]);
5302
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
5305
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
5303
5306
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
5304
5307
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
5305
5308
  content: notFoundContent,
5306
5309
  siteUrl: rootUrl
5307
5310
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
5308
- className: "ds-l-container",
5311
+ className: 'ds-l-container',
5309
5312
  children: [
5310
5313
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
5311
- className: "ds-l-row",
5314
+ className: 'ds-l-row',
5312
5315
  children: [
5313
5316
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5314
- className: "ds-l-md-col--9",
5317
+ className: 'ds-l-md-col--9',
5315
5318
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
5316
5319
  className: "ds-text-heading--3xl",
5317
5320
  children: title
5318
5321
  })
5319
5322
  }),
5320
5323
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5321
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
5324
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
5322
5325
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
5323
5326
  className: "ds-u-margin--0",
5324
5327
  children: [
@@ -5330,7 +5333,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5330
5333
  })
5331
5334
  }),
5332
5335
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5333
- className: "ds-l-md-col--9",
5336
+ className: 'ds-l-md-col--9',
5334
5337
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
5335
5338
  distribution: distribution,
5336
5339
  dataset: dataset,
@@ -5342,9 +5345,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5342
5345
  ]
5343
5346
  }),
5344
5347
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5345
- className: "ds-l-row",
5348
+ className: 'ds-l-row',
5346
5349
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5347
- className: "ds-l-md-col--12 dc-dataset",
5350
+ className: 'ds-l-md-col--12 dc-dataset',
5348
5351
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
5349
5352
  onChange: (selectedId, prevSelectedId)=>{
5350
5353
  setSelectedTab(selectedId);
@@ -5352,7 +5355,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5352
5355
  selectedId: selectedTab,
5353
5356
  children: [
5354
5357
  (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5355
- id: "data-table",
5358
+ id: 'data-table',
5356
5359
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5357
5360
  className: "ds-u-color--primary",
5358
5361
  children: [
@@ -5362,7 +5365,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5362
5365
  "Data Table"
5363
5366
  ]
5364
5367
  }),
5365
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5368
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5366
5369
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
5367
5370
  value: {
5368
5371
  id: id,
@@ -5377,7 +5380,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5377
5380
  })
5378
5381
  }),
5379
5382
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5380
- id: "overview",
5383
+ id: 'overview',
5381
5384
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5382
5385
  className: "ds-u-color--primary",
5383
5386
  children: [
@@ -5387,7 +5390,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5387
5390
  "Overview"
5388
5391
  ]
5389
5392
  }),
5390
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5393
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5391
5394
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
5392
5395
  resource: resource,
5393
5396
  dataset: dataset,
@@ -5396,7 +5399,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5396
5399
  })
5397
5400
  }),
5398
5401
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TabPanel), {
5399
- id: "data-dictionary",
5402
+ id: 'data-dictionary',
5400
5403
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5401
5404
  className: "ds-u-color--primary",
5402
5405
  children: [
@@ -5406,7 +5409,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5406
5409
  "Data Dictionary"
5407
5410
  ]
5408
5411
  }),
5409
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5412
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5410
5413
  children: [
5411
5414
  displayDataDictionaryTab && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
5412
5415
  datasetSitewideDictionary: datasetSitewideDictionary,
@@ -5420,7 +5423,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5420
5423
  ]
5421
5424
  }),
5422
5425
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
5423
- id: "api",
5426
+ id: 'api',
5424
5427
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5425
5428
  className: "ds-u-color--primary",
5426
5429
  children: [
@@ -5430,7 +5433,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
5430
5433
  "API"
5431
5434
  ]
5432
5435
  }),
5433
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
5436
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
5434
5437
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
5435
5438
  id: id,
5436
5439
  rootUrl: rootUrl,
@@ -5467,13 +5470,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5467
5470
  });
5468
5471
  const menu = (0, $hgUW1$useRef)(null);
5469
5472
  function closeMobileMenu() {
5470
- const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
5473
+ const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
5471
5474
  if (!mobileMenuButtonElement) return;
5472
5475
  mobileMenuButtonElement.focus();
5473
5476
  }
5474
5477
  // Close mobile menu with escape.
5475
5478
  function handleMenuClose(event) {
5476
- if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
5479
+ if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
5477
5480
  }
5478
5481
  function handleClick(event) {
5479
5482
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -5508,7 +5511,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5508
5511
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
5509
5512
  const firstEl = focusableEls[0];
5510
5513
  const lastEl = focusableEls[focusableEls.length - 1];
5511
- if (event.key === "Tab") {
5514
+ if (event.key === 'Tab') {
5512
5515
  if (event.shiftKey && document.activeElement === firstEl) {
5513
5516
  lastEl?.focus();
5514
5517
  event.preventDefault();
@@ -5520,15 +5523,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5520
5523
  }
5521
5524
  };
5522
5525
  (0, $hgUW1$useEffect)(()=>{
5523
- document.addEventListener("keyup", handleMenuClose);
5524
- document.addEventListener("mousedown", handleClick);
5526
+ document.addEventListener('keyup', handleMenuClose);
5527
+ document.addEventListener('mousedown', handleClick);
5525
5528
  if (mobileMenuOpen) handleFocusIn();
5526
5529
  else closeMobileMenu();
5527
- if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
5530
+ if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
5528
5531
  return ()=>{
5529
- document.removeEventListener("keyup", handleMenuClose);
5530
- document.addEventListener("mousedown", handleClick);
5531
- if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
5532
+ document.removeEventListener('keyup', handleMenuClose);
5533
+ document.addEventListener('mousedown', handleClick);
5534
+ if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
5532
5535
  };
5533
5536
  }, [
5534
5537
  mobileMenuOpen
@@ -5543,7 +5546,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
5543
5546
  },
5544
5547
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
5545
5548
  "aria-label": "Site header",
5546
- className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
5549
+ className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
5547
5550
  children: [
5548
5551
  topNav && topNav,
5549
5552
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -5586,7 +5589,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
5586
5589
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
5587
5590
 
5588
5591
 
5589
- 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", {
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", {
5590
5593
  children: [
5591
5594
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5592
5595
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -5674,14 +5677,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5674
5677
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5675
5678
  className: "ds-u-font-size--sm",
5676
5679
  children: footerAdditionalResourcesLinks.filter((link)=>{
5677
- const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
5680
+ const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
5678
5681
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
5679
5682
  }).map((link)=>{
5680
5683
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
5681
5684
  className: "ds-u-margin-bottom--1",
5682
5685
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5683
5686
  href: link.url,
5684
- ["data-" + link.dataTag.name]: link.dataTag.value,
5687
+ ['data-' + link.dataTag.name]: link.dataTag.value,
5685
5688
  onClick: link.onClick,
5686
5689
  children: link.label
5687
5690
  })
@@ -5781,7 +5784,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5781
5784
  children: [
5782
5785
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5783
5786
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
5784
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
5787
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
5785
5788
  }),
5786
5789
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5787
5790
  transform: "translate(160 256)",
@@ -5834,7 +5837,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5834
5837
  children: [
5835
5838
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5836
5839
  id: "svg-inline--fa-title-4z03ITiPPTVF",
5837
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
5840
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
5838
5841
  }),
5839
5842
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5840
5843
  transform: "translate(256 256)",
@@ -5887,7 +5890,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5887
5890
  children: [
5888
5891
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5889
5892
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
5890
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
5893
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
5891
5894
  }),
5892
5895
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
5893
5896
  transform: "translate(224 256)",
@@ -5939,7 +5942,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
5939
5942
  children: [
5940
5943
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
5941
5944
  id: "svg-inline--fa-title-youtube",
5942
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
5945
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
5943
5946
  }),
5944
5947
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
5945
5948
  fill: "currentColor",
@@ -6039,26 +6042,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
6039
6042
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6040
6043
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
6041
6044
  stackable: true,
6042
- className: "ds-c-table",
6045
+ className: 'ds-c-table',
6043
6046
  children: [
6044
6047
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
6045
6048
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
6046
6049
  children: [
6047
6050
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6048
- id: "application",
6049
- headers: "Application",
6051
+ id: 'application',
6052
+ headers: 'Application',
6050
6053
  children: "Application"
6051
- }, "Application"),
6054
+ }, 'Application'),
6052
6055
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6053
- id: "notes",
6054
- headers: "Notes",
6056
+ id: 'notes',
6057
+ headers: 'Notes',
6055
6058
  children: "Notes"
6056
- }, "Notes"),
6059
+ }, 'Notes'),
6057
6060
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6058
- id: "links",
6059
- headers: "Links",
6061
+ id: 'links',
6062
+ headers: 'Links',
6060
6063
  children: "Links"
6061
- }, "Links")
6064
+ }, 'Links')
6062
6065
  ]
6063
6066
  })
6064
6067
  }),
@@ -6068,19 +6071,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
6068
6071
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6069
6072
  id: d.id,
6070
6073
  stackedTitle: "Application",
6071
- headers: "Application",
6074
+ headers: 'Application',
6072
6075
  children: d.application
6073
6076
  }, d.id),
6074
6077
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6075
6078
  id: d.id,
6076
6079
  stackedTitle: "Notes",
6077
- headers: "Notes",
6080
+ headers: 'Notes',
6078
6081
  children: d.notes
6079
6082
  }, `${d.id}-notes`),
6080
6083
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6081
6084
  id: d.id,
6082
6085
  stackedTitle: "Links",
6083
- headers: "Links",
6086
+ headers: 'Links',
6084
6087
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
6085
6088
  className: "dkan-newtab",
6086
6089
  href: d.link,
@@ -6108,44 +6111,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
6108
6111
 
6109
6112
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
6110
6113
  {
6111
- id: "excel",
6112
- application: "Microsoft Excel",
6113
- notes: "Official size limitations for Microsoft Excel",
6114
- 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",
6115
- linkText: "Excel Specifications and Limits",
6116
- screenReaderOnlyText: "on microsoft.com"
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'
6117
6120
  },
6118
6121
  {
6119
- id: "access",
6120
- application: "Microsoft Access",
6121
- notes: "Official size limitations for Microsoft Access",
6122
- link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
6123
- linkText: "Access 2016 Specifications",
6124
- screenReaderOnlyText: "on microsoft.com"
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'
6125
6128
  },
6126
6129
  {
6127
- id: "oracle-sql-developer",
6128
- application: "Oracle SQL Developer",
6129
- notes: "Oracle SQL Developer tool",
6130
- link: "https://www.oracle.com/database/sqldeveloper/",
6131
- linkText: "Oracle SQL Developer Overview",
6132
- screenReaderOnlyText: "on oracle.com"
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'
6133
6136
  },
6134
6137
  {
6135
- id: "oracle-database",
6136
- application: "Oracle Database",
6137
- notes: "Oracle Database official size limitations",
6138
- link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
6139
- linkText: "Oracle Physical Database Limits",
6140
- screenReaderOnlyText: "on oracle.com"
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'
6141
6144
  },
6142
6145
  {
6143
- id: "oracle-sql-client-tools",
6144
- application: "Oracle SQL Client Tools",
6145
- notes: "Oracle SQL Client Tools",
6146
- link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
6147
- linkText: "Oracle SQL Client",
6148
- screenReaderOnlyText: "on oracle.com"
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'
6149
6152
  }
6150
6153
  ];
6151
6154
 
@@ -6173,7 +6176,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
6173
6176
  }),
6174
6177
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
6175
6178
  heading: "Notice",
6176
- className: "ds-u-margin-top--6",
6179
+ className: 'ds-u-margin-top--6',
6177
6180
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6178
6181
  className: "ds-c-alert__text",
6179
6182
  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."
@@ -6182,16 +6185,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
6182
6185
  ]
6183
6186
  }),
6184
6187
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
6185
- className: "ds-u-margin-top--4 ds-l-row",
6188
+ className: 'ds-u-margin-top--4 ds-l-row',
6186
6189
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6187
- className: "ds-l-col--12",
6190
+ className: 'ds-l-col--12',
6188
6191
  children: [
6189
6192
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
6190
6193
  className: "ds-text-heading--2xl ds-text-heading--2xl",
6191
6194
  children: "Documentation by Application"
6192
6195
  }),
6193
6196
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6194
- className: "ds-u-margin-top--4",
6197
+ className: 'ds-u-margin-top--4',
6195
6198
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
6196
6199
  data: documentationList
6197
6200
  })
@@ -6214,6 +6217,49 @@ var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLim
6214
6217
 
6215
6218
 
6216
6219
 
6220
+ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, customColumns: customColumns, query: query, distributionIndex: distributionIndex = 0, defaultPageSize: defaultPageSize = 25, disableTableControls: disableTableControls = false }) {
6221
+ // TODO parse from stored filter
6222
+ const options = {
6223
+ conditions: query ? JSON.parse(query.replaceAll('\"column\"', '\"property\"')) : []
6224
+ };
6225
+ const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6226
+ let distribution = {};
6227
+ let distributions = dataset.distribution ? dataset.distribution : [];
6228
+ if (distributions.length) distribution = distributions[distributionIndex];
6229
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6230
+ ...options,
6231
+ limit: defaultPageSize
6232
+ });
6233
+ (0, $hgUW1$useEffect)(()=>{
6234
+ const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6235
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6236
+ }, [
6237
+ distribution
6238
+ ]);
6239
+ return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6240
+ value: {
6241
+ id: id,
6242
+ resource: resource,
6243
+ distribution: distribution,
6244
+ rootUrl: rootUrl,
6245
+ customColumns: customColumns,
6246
+ datasetTableControls: !disableTableControls
6247
+ },
6248
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $39bc4d98030a5599$export$2e2bcd8739ae039), {
6249
+ showQueryBuilder: false
6250
+ })
6251
+ });
6252
+ }
6253
+
6254
+
6255
+
6256
+
6257
+
6258
+
6259
+
6260
+
6261
+
6262
+
6217
6263
 
6218
6264
 
6219
6265
 
@@ -6233,7 +6279,7 @@ var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLim
6233
6279
 
6234
6280
 
6235
6281
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
6236
- if (schema[id].fields[condition.property].mysql_type === "date") {
6282
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
6237
6283
  const newDate = new Date(condition.value);
6238
6284
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
6239
6285
  }
@@ -6250,9 +6296,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6250
6296
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
6251
6297
  (0, $hgUW1$useEffect)(()=>{
6252
6298
  if (property !== condition.property) {
6253
- if (property) update(index, "property", property);
6254
- else update(index, "property", "");
6255
- if (schema[id].fields[condition.property].mysql_type === "date") {
6299
+ if (property) update(index, 'property', property);
6300
+ else update(index, 'property', '');
6301
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
6256
6302
  if (!value) setValue(startDate.toJSON().slice(0, 10));
6257
6303
  }
6258
6304
  }
@@ -6266,16 +6312,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6266
6312
  ]);
6267
6313
  (0, $hgUW1$useEffect)(()=>{
6268
6314
  if (operator !== condition.operator) {
6269
- if (operator) update(index, "operator", operator);
6270
- else update(index, "operator", "");
6315
+ if (operator) update(index, 'operator', operator);
6316
+ else update(index, 'operator', '');
6271
6317
  }
6272
6318
  }, [
6273
6319
  operator
6274
6320
  ]);
6275
6321
  (0, $hgUW1$useEffect)(()=>{
6276
6322
  if (value !== condition.value) {
6277
- if (value) update(index, "value", value);
6278
- else update(index, "value", "");
6323
+ if (value) update(index, 'value', value);
6324
+ else update(index, 'value', '');
6279
6325
  }
6280
6326
  }, [
6281
6327
  value
@@ -6299,7 +6345,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
6299
6345
  onChange: (e)=>setOperator(e.target.value),
6300
6346
  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"
6301
6347
  }),
6302
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6348
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6303
6349
  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",
6304
6350
  children: [
6305
6351
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -6349,19 +6395,19 @@ var $374c4669b044ddf8$export$2e2bcd8739ae039 = $374c4669b044ddf8$var$QueryRow;
6349
6395
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
6350
6396
  let cond = condition;
6351
6397
  delete cond.key;
6352
- if (cond.operator === "=" || cond.operator === "<>") {
6398
+ if (cond.operator === '=' || cond.operator === '<>') {
6353
6399
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
6354
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
6400
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
6355
6401
  }
6356
- if (cond.operator.toLowerCase() === "like") {
6402
+ if (cond.operator.toLowerCase() === 'like') {
6357
6403
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
6358
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
6404
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
6359
6405
  cond.value = `%${cleanedValue}%`;
6360
6406
  }
6361
- if (cond.operator.toLowerCase() === "in") {
6362
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
6407
+ if (cond.operator.toLowerCase() === 'in') {
6408
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
6363
6409
  }
6364
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
6410
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
6365
6411
  return cond;
6366
6412
  }
6367
6413
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -6381,7 +6427,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
6381
6427
  ...queryConditions,
6382
6428
  {
6383
6429
  property: fields[0],
6384
- value: "",
6430
+ value: '',
6385
6431
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
6386
6432
  key: Date.now()
6387
6433
  }
@@ -6421,7 +6467,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
6421
6467
  encodeValuesOnly: true,
6422
6468
  addQueryPrefix: true
6423
6469
  });
6424
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
6470
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
6425
6471
  };
6426
6472
  const updateCondition = (index, key, value)=>{
6427
6473
  let newConditions = [
@@ -6494,7 +6540,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
6494
6540
 
6495
6541
 
6496
6542
  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 })=>{
6497
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
6543
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
6498
6544
  let apiDocs = (0, $hgUW1$useRef)();
6499
6545
  let distribution = {};
6500
6546
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -6506,7 +6552,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6506
6552
  } : {
6507
6553
  conditions: []
6508
6554
  };
6509
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6555
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6510
6556
  ...options,
6511
6557
  limit: 25
6512
6558
  });
@@ -6520,7 +6566,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6520
6566
  }, {
6521
6567
  encode: true
6522
6568
  })}&format=csv`;
6523
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
6569
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
6524
6570
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
6525
6571
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
6526
6572
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -6529,7 +6575,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6529
6575
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
6530
6576
  children: [
6531
6577
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6532
- className: "ds-l-md-col--9",
6578
+ className: 'ds-l-md-col--9',
6533
6579
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
6534
6580
  to: `/dataset/${id}`,
6535
6581
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -6540,14 +6586,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6540
6586
  })
6541
6587
  }),
6542
6588
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6543
- className: "ds-l-md-col--9",
6589
+ className: 'ds-l-md-col--9',
6544
6590
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6545
6591
  className: "ds-text-heading--3xl",
6546
6592
  children: customTitle ? customTitle : pageTitle
6547
6593
  })
6548
6594
  }),
6549
6595
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6550
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6596
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6551
6597
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6552
6598
  className: "ds-u-margin--0",
6553
6599
  children: [
@@ -6559,7 +6605,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6559
6605
  })
6560
6606
  }),
6561
6607
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6562
- className: "ds-l-md-col--9",
6608
+ className: 'ds-l-md-col--9',
6563
6609
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6564
6610
  distribution: distribution,
6565
6611
  dataset: dataset,
@@ -6569,13 +6615,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6569
6615
  })
6570
6616
  }),
6571
6617
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6572
- className: "ds-l-md-col--12",
6618
+ className: 'ds-l-md-col--12',
6573
6619
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
6574
6620
  resource: resource,
6575
6621
  id: distribution.identifier,
6576
6622
  customColumns: customColumns,
6577
6623
  setOffset: resource.setOffset
6578
- }) : ""
6624
+ }) : ''
6579
6625
  }),
6580
6626
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6581
6627
  value: {
@@ -6586,7 +6632,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6586
6632
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
6587
6633
  },
6588
6634
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6589
- className: "ds-l-md-col--12",
6635
+ className: 'ds-l-md-col--12',
6590
6636
  children: [
6591
6637
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
6592
6638
  includeDensity: true,
@@ -6608,14 +6654,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6608
6654
  ]
6609
6655
  })
6610
6656
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6611
- className: "ds-l-md-col--12",
6657
+ className: 'ds-l-md-col--12',
6612
6658
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
6613
6659
  role: "status",
6614
6660
  "aria-valuetext": "Resource loading"
6615
6661
  })
6616
6662
  }),
6617
6663
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6618
- className: "ds-l-md-col--12",
6664
+ className: 'ds-l-md-col--12',
6619
6665
  ref: apiDocs,
6620
6666
  children: [
6621
6667
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -6624,7 +6670,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
6624
6670
  }),
6625
6671
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
6626
6672
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
6627
- docExpansion: "list",
6673
+ docExpansion: 'list',
6628
6674
  defaultModelsExpandDepth: -1
6629
6675
  })
6630
6676
  ]
@@ -6643,7 +6689,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
6643
6689
  const [ready, setReady] = (0, $hgUW1$useState)(false);
6644
6690
  const [error, setError] = (0, $hgUW1$useState)(false);
6645
6691
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6646
- const distIndex = dist_id === "data" ? 0 : dist_id;
6692
+ const distIndex = dist_id === 'data' ? 0 : dist_id;
6647
6693
  (0, $hgUW1$useEffect)(()=>{
6648
6694
  if (dataset.error) setError(true);
6649
6695
  if (dataset.distribution && dataset.distribution.length) {
@@ -6861,5 +6907,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
6861
6907
 
6862
6908
 
6863
6909
 
6864
- export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $bdb071ea3a6d3466$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ebda441784d176a5$export$2e2bcd8739ae039 as ManageColumnsContext, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
6910
+ export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $bdb071ea3a6d3466$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $8b67b7ee3fcfb629$export$2e2bcd8739ae039 as StoredQueryPage, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ebda441784d176a5$export$2e2bcd8739ae039 as ManageColumnsContext, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
6865
6911
  //# sourceMappingURL=main.js.map