@civicactions/cmsds-open-data-components 4.0.12 → 4.0.13-alpha.2

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), {
@@ -278,7 +278,19 @@ var $11500a65bd7d9cf1$export$2e2bcd8739ae039 = $11500a65bd7d9cf1$var$HeaderConte
278
278
  const $61ff88fb3f6ee2c8$var$queryClient = new (0, $hgUW1$QueryClient)({
279
279
  defaultOptions: {
280
280
  queries: {
281
- refetchOnWindowFocus: false
281
+ // Prevent refetch when user returns to tab
282
+ refetchOnWindowFocus: false,
283
+ // Keep data fresh for 2 minutes before marking stale
284
+ // Reduces unnecessary refetches, especially on slow connections
285
+ staleTime: 120000,
286
+ // Keep unused cache for 10 minutes (default is 5)
287
+ // Helps users navigating back/forward
288
+ gcTime: 600000,
289
+ // Reduce retries for slow connections
290
+ // Default is 3 with exponential backoff (can take 7+ seconds)
291
+ retry: 1,
292
+ // Fixed retry delay instead of exponential
293
+ retryDelay: 1000
282
294
  }
283
295
  }
284
296
  });
@@ -333,8 +345,8 @@ const $844981eac9b63865$export$eccc29c8d0ff408 = (0, $hgUW1$createContext)({
333
345
 
334
346
 
335
347
  const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 4, defaultSort: defaultSort = {
336
- defaultSort: "modified",
337
- defaultOrder: "desc"
348
+ defaultSort: 'modified',
349
+ defaultOrder: 'desc'
338
350
  }, subLinkClasses: subLinkClasses })=>{
339
351
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
340
352
  const [currentResultNumbers, setCurrentResultNumbers] = (0, $hgUW1$useState)({
@@ -354,8 +366,8 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
354
366
  ]);
355
367
  let params = {
356
368
  sort: defaultSort.defaultSort,
357
- ["sort-order"]: defaultSort.defaultOrder,
358
- ["page-size"]: defaultPageSize
369
+ ['sort-order']: defaultSort.defaultOrder,
370
+ ['page-size']: defaultPageSize
359
371
  };
360
372
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
361
373
  queryKey: [
@@ -364,14 +376,20 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
364
376
  ],
365
377
  queryFn: ()=>{
366
378
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
367
- arrayFormat: "comma",
379
+ arrayFormat: 'comma',
368
380
  encode: false
369
381
  })}`);
370
382
  }
371
383
  });
384
+ // Sync totalItems state with API response data
385
+ // Moved to useEffect to prevent state updates during render (which can cause infinite loops)
386
+ (0, $hgUW1$useEffect)(()=>{
387
+ if (data?.data?.total !== undefined && data.data.total !== totalItems) setTotalItems(data.data.total);
388
+ }, [
389
+ data?.data?.total
390
+ ]);
372
391
  let submenuItemsCount = 0;
373
392
  if (data) {
374
- if (data.data.total && totalItems !== data.data.total) setTotalItems(data.data.total);
375
393
  let resultsCount = Object.keys(data.data.results).length;
376
394
  // For the submenu pager, If there are fewer than 4 dataset items, display the dataset item count, otherwise, show "Viewing 4..".
377
395
  submenuItemsCount = resultsCount > defaultPageSize ? defaultPageSize : resultsCount;
@@ -507,11 +525,11 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
507
525
  function handleFocusOut(event) {
508
526
  if (currentMenu && !currentMenu.contains(event.relatedTarget)) setIsExpanded(false);
509
527
  }
510
- document.addEventListener("mousedown", handleClickOutside);
511
- currentMenu?.addEventListener("focusout", handleFocusOut);
528
+ document.addEventListener('mousedown', handleClickOutside);
529
+ currentMenu?.addEventListener('focusout', handleFocusOut);
512
530
  return ()=>{
513
- document.removeEventListener("mousedown", handleClickOutside);
514
- if (currentMenu) currentMenu.removeEventListener("focusout", handleFocusOut);
531
+ document.removeEventListener('mousedown', handleClickOutside);
532
+ if (currentMenu) currentMenu.removeEventListener('focusout', handleFocusOut);
515
533
  };
516
534
  }, [
517
535
  isExpanded
@@ -533,7 +551,7 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
533
551
  }
534
552
  }
535
553
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
536
- className: `dkan-c-nav-submenu has-submenu${isExpanded ? " open" : ""}`,
554
+ className: `dkan-c-nav-submenu has-submenu${isExpanded ? ' open' : ''}`,
537
555
  ref: menu,
538
556
  children: [
539
557
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
@@ -569,12 +587,12 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
569
587
  const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
570
588
  const { headingText: headingText = "Dataset Search" } = props;
571
589
  const navigate = (0, $hgUW1$useNavigate)();
572
- const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
590
+ const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)('');
573
591
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
574
592
  function searchForDataset(e) {
575
593
  e.preventDefault();
576
594
  if (window) {
577
- if (window.location.pathname !== "/datasets") navigate(`/datasets?fulltext=${modalSearchTerm}`);
595
+ if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
578
596
  else {
579
597
  window.location.search = `fulltext=${modalSearchTerm}`;
580
598
  setModalSearch(false);
@@ -642,9 +660,9 @@ const $b939b31651e82908$var$HeaderNav = (props)=>{
642
660
  const headerContext = (0, $hgUW1$react).useContext((0, $11500a65bd7d9cf1$export$2e2bcd8739ae039));
643
661
  const { links: links, topNavLinks: topNavLinks, wrapperClasses: wrapperClasses, searchInMobile: searchInMobile } = props;
644
662
  const navMenuOpenClass = `dkan-c-nav-menu--${headerContext.mobileMenuOpen ? "open" : "close"}`;
645
- const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? "mobile" : "desktop"}`;
646
- const linkClasses = "dkan-c-header--link ds-c-button ds-c-button--ghost";
647
- const listClasses = "dkan-c-header--link-list ";
663
+ const isMobileClass = `dkan-c-nav-menu--${headerContext.isMobile ? 'mobile' : 'desktop'}`;
664
+ const linkClasses = 'dkan-c-header--link ds-c-button ds-c-button--ghost';
665
+ const listClasses = 'dkan-c-header--link-list ';
648
666
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
649
667
  className: `dkan-c-nav-menu ${wrapperClasses} ${navMenuOpenClass} ${isMobileClass}`,
650
668
  ref: headerContext.menuRef,
@@ -814,8 +832,8 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
814
832
  const { title: title, links: links, mobileMax: mobileMax } = props;
815
833
  const active = (0, $hgUW1$useLocation)().pathname;
816
834
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
817
- const styleClasses = "dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2";
818
- const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? "mobile" : "desktop"}`;
835
+ const styleClasses = 'dkan-c--sidebar-nav-wrapper ds-u-border--1 ds-u-border--color-gray-lightest ds-u-padding--2';
836
+ const mobileClass = `dkan-c-sidebar-nav--${mobileMax ? 'mobile' : 'desktop'}`;
819
837
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
820
838
  className: `dkan-c-sidebar-nav ${mobileClass}`,
821
839
  children: [
@@ -829,7 +847,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
829
847
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
830
848
  "aria-haspopup": "true",
831
849
  variation: "ghost",
832
- "aria-expanded": `${menuOpen ? "true" : "false"}`,
850
+ "aria-expanded": `${menuOpen ? 'true' : 'false'}`,
833
851
  onDark: true,
834
852
  onClick: ()=>setMenuOpen(!menuOpen),
835
853
  children: [
@@ -838,7 +856,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
838
856
  children: "Toggle menu"
839
857
  }),
840
858
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ArrowIcon), {
841
- direction: menuOpen ? "up" : "down"
859
+ direction: menuOpen ? 'up' : 'down'
842
860
  })
843
861
  ]
844
862
  })
@@ -847,7 +865,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
847
865
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
848
866
  className: ``,
849
867
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
850
- className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? "open" : "close"}`,
868
+ className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? 'open' : 'close'}`,
851
869
  children: [
852
870
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
853
871
  className: "ds-u-padding--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest",
@@ -859,7 +877,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
859
877
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
860
878
  className: "ds-u-padding-bottom--2",
861
879
  children: links.map(({ url: url, label: label })=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
862
- className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? "active" : ""}`,
880
+ className: `ds-u-padding--1 ds-u-padding-top--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest ${active === url ? 'active' : ''}`,
863
881
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
864
882
  className: "ds-u-display--flex ds-u-padding-y--1",
865
883
  children: [
@@ -894,12 +912,12 @@ const $b0968edc60d7d3a4$var$SidebarPage = (props)=>{
894
912
  query: `(max-width: ${mobileMaxWidth}px)`
895
913
  });
896
914
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
897
- className: `${mobileMax ? "a" : "ds-l-container"}`,
915
+ className: `${mobileMax ? "a" : 'ds-l-container'}`,
898
916
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
899
- className: `${mobileMax ? "a" : "ds-l-row"}`,
917
+ className: `${mobileMax ? "a" : 'ds-l-row'}`,
900
918
  children: [
901
919
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
902
- className: `${mobileMax ? "a" : "ds-l-col--4"}`,
920
+ className: `${mobileMax ? 'a' : "ds-l-col--4"}`,
903
921
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $953b286f7778640e$export$2e2bcd8739ae039), {
904
922
  links: links,
905
923
  title: menuTitle,
@@ -922,9 +940,9 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
922
940
 
923
941
 
924
942
 
925
- const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
943
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = 'datasets', searchKey: searchKey = 'fulltext', textfieldLabel: textfieldLabel = 'Search for a dataset', searchButtonText: searchButtonText = 'Search' })=>{
926
944
  const navigate = (0, $hgUW1$useNavigate)();
927
- const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
945
+ const [searchValue, setSearchValue] = (0, $hgUW1$react).useState('');
928
946
  function submitHero(e) {
929
947
  e.preventDefault();
930
948
  navigate(`/${searchUrl}?${searchKey}=${searchValue}`);
@@ -951,24 +969,24 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
951
969
  onSubmit: (e)=>submitHero(e),
952
970
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
953
971
  style: {
954
- position: "relative"
972
+ position: 'relative'
955
973
  },
956
974
  className: "ds-l-row ds-u-align-items--stretch ds-u-margin-y--4 ds-u-flex-wrap--nowrap",
957
975
  children: [
958
976
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
959
977
  className: "ds-u-padding--0 ds-u-margin-right--1",
960
978
  style: {
961
- flex: "1 1 100%",
962
- maxWidth: "100%"
979
+ flex: '1 1 100%',
980
+ maxWidth: '100%'
963
981
  },
964
982
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
965
983
  label: textfieldLabel,
966
984
  labelClassName: "ds-u-visibility--screen-reader",
967
985
  name: "search_text_input",
968
986
  style: {
969
- maxWidth: "none",
970
- height: "61px",
971
- margin: "0 20px 0 0"
987
+ maxWidth: 'none',
988
+ height: '61px',
989
+ margin: '0 20px 0 0'
972
990
  },
973
991
  onChange: (e)=>setSearchValue(e.target.value)
974
992
  })
@@ -1006,14 +1024,14 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
1006
1024
 
1007
1025
 
1008
1026
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1009
- year: "numeric",
1010
- month: "long",
1011
- day: "numeric",
1012
- timeZone: "UTC"
1027
+ year: 'numeric',
1028
+ month: 'long',
1029
+ day: 'numeric',
1030
+ timeZone: 'UTC'
1013
1031
  } })=>{
1014
1032
  const rawDate = new Date(date);
1015
- let modifiedDate = "";
1016
- if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1033
+ let modifiedDate = '';
1034
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString('en-US', options);
1017
1035
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1018
1036
  children: modifiedDate
1019
1037
  });
@@ -1027,25 +1045,25 @@ const $c068004d499082cc$var$DatasetListItem = (props)=>{
1027
1045
  minWidth: 1024
1028
1046
  });
1029
1047
  const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
1030
- let linkContainerClasses = "ds-u-margin-bottom--2";
1031
- if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1032
- else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1033
- let linkClasses = "ds-u-display--block ds-u-text-align--left";
1048
+ let linkContainerClasses = 'ds-u-margin-bottom--2';
1049
+ if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1050
+ else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1051
+ let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1034
1052
  if (desktop) {
1035
- linkContainerClasses = "ds-u-padding-x--0";
1036
- linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1053
+ linkContainerClasses = 'ds-u-padding-x--0';
1054
+ linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1037
1055
  }
1038
1056
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1039
1057
  className: "dc-c-list-item ds-u-padding-top--4",
1040
1058
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1041
- className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1059
+ className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1042
1060
  children: [
1043
1061
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1044
1062
  className: "ds-l-row ds-u-align-items--start",
1045
1063
  children: [
1046
1064
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1047
1065
  id: `dataset-${identifier}-updated-date`,
1048
- className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? "ds-u-padding-top--3" : "ds-u-padding-top--0"}`,
1066
+ className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? 'ds-u-padding-top--3' : 'ds-u-padding-top--0'}`,
1049
1067
  children: [
1050
1068
  "Updated ",
1051
1069
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
@@ -1103,7 +1121,7 @@ var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetList
1103
1121
 
1104
1122
  const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1105
1123
  switch(props.id){
1106
- case "overview":
1124
+ case 'overview':
1107
1125
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1108
1126
  width: "16px",
1109
1127
  height: "16px",
@@ -1146,7 +1164,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1146
1164
  })
1147
1165
  ]
1148
1166
  });
1149
- case "data-table":
1167
+ case 'data-table':
1150
1168
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1151
1169
  width: "16px",
1152
1170
  height: "12px",
@@ -1179,7 +1197,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1179
1197
  })
1180
1198
  ]
1181
1199
  });
1182
- case "api":
1200
+ case 'api':
1183
1201
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1184
1202
  width: "16px",
1185
1203
  height: "13px",
@@ -1212,7 +1230,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1212
1230
  })
1213
1231
  ]
1214
1232
  });
1215
- case "download":
1233
+ case 'download':
1216
1234
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1217
1235
  width: "16px",
1218
1236
  height: "16px",
@@ -1242,7 +1260,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1242
1260
  })
1243
1261
  ]
1244
1262
  });
1245
- case "data-dictionary":
1263
+ case 'data-dictionary':
1246
1264
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1247
1265
  width: "14px",
1248
1266
  height: "16px",
@@ -1345,13 +1363,13 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
1345
1363
 
1346
1364
 
1347
1365
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
1348
- if (!textString) return "";
1366
+ if (!textString) return '';
1349
1367
  let cleanedText = textString;
1350
- if (cleanedText.split("</p>").length > 1) cleanedText = cleanedText.split("</p>")[0];
1351
- if (cleanedText.split("<br/>").length > 1) cleanedText = cleanedText.split("<br/>")[0];
1368
+ if (cleanedText.split('</p>').length > 1) cleanedText = cleanedText.split('</p>')[0];
1369
+ if (cleanedText.split('<br/>').length > 1) cleanedText = cleanedText.split('<br/>')[0];
1352
1370
  cleanedText = (0, $hgUW1$lodashtruncate)(cleanedText, {
1353
- "length": textLength,
1354
- "separator": " "
1371
+ 'length': textLength,
1372
+ 'separator': ' '
1355
1373
  });
1356
1374
  return (0, $hgUW1$dompurify).sanitize(cleanedText, {
1357
1375
  ALLOWED_TAGS: []
@@ -1369,9 +1387,9 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
1369
1387
  const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1370
1388
  const { type: type, date: date, boldLabel: boldLabel = false, displayTooltips: displayTooltips = true } = props;
1371
1389
  const dateText = {
1372
- modified: "Last Modified",
1373
- released: "Released",
1374
- refresh: "Planned Update"
1390
+ modified: 'Last Modified',
1391
+ released: 'Released',
1392
+ refresh: 'Planned Update'
1375
1393
  };
1376
1394
  const tooltipContent = {
1377
1395
  modified: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -1408,7 +1426,7 @@ const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1408
1426
  })
1409
1427
  };
1410
1428
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1411
- className: `dataset-date-item${boldLabel ? " bold-label" : ""}`,
1429
+ className: `dataset-date-item${boldLabel ? ' bold-label' : ''}`,
1412
1430
  children: [
1413
1431
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1414
1432
  className: "dataset-data-item-label",
@@ -1478,7 +1496,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1478
1496
  if (dist && dist.data) {
1479
1497
  if (dist.data.format) return dist.data.format.toLowerCase();
1480
1498
  if (dist.data.mediaType) {
1481
- const mediaType = dist.data.mediaType.split("/");
1499
+ const mediaType = dist.data.mediaType.split('/');
1482
1500
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
1483
1501
  }
1484
1502
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -1488,7 +1506,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1488
1506
  }
1489
1507
  }
1490
1508
  }
1491
- return "";
1509
+ return '';
1492
1510
  }
1493
1511
 
1494
1512
 
@@ -1498,20 +1516,20 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1498
1516
  });
1499
1517
  const { title: title, modified: modified, description: description, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks, identifier: identifier, refresh: refresh, released: released, showDateDetails: showDateDetails = false, showTopics: showTopics = false, theme: theme, topicSlugs: topicSlugs, distribution: distribution } = props;
1500
1518
  const location = (0, $hgUW1$useLocation)();
1501
- let linkContainerClasses = "ds-u-margin-bottom--2";
1502
- if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
1503
- else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
1504
- let linkClasses = "ds-u-display--block ds-u-text-align--left";
1519
+ let linkContainerClasses = 'ds-u-margin-bottom--2';
1520
+ if (dataDictionaryLinks) linkContainerClasses += ' ds-l-col--6 ds-u-padding-right--0';
1521
+ else linkContainerClasses += ' ds-l-col--auto ds-u-padding-left--0';
1522
+ let linkClasses = 'ds-u-display--block ds-u-text-align--left';
1505
1523
  if (desktop) {
1506
- linkContainerClasses = "ds-u-padding-x--0";
1507
- linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1524
+ linkContainerClasses = 'ds-u-padding-x--0';
1525
+ linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1508
1526
  }
1509
1527
  let themes;
1510
1528
  if (theme && showTopics) themes = /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
1511
1529
  className: "theme-list item-theme",
1512
1530
  children: theme.map((topic, index)=>{
1513
- const title = topic || "Unknown Topic";
1514
- const prefix = "topics";
1531
+ const title = topic || 'Unknown Topic';
1532
+ const prefix = 'topics';
1515
1533
  // Use the provided slug or fallback to a simple slug generation
1516
1534
  const slug = topicSlugs?.[title];
1517
1535
  const link = `/${prefix}/${slug}`;
@@ -1522,7 +1540,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1522
1540
  state: {
1523
1541
  fromUrl: location.pathname,
1524
1542
  fromTitle: false,
1525
- fromSearchList: location.pathname.includes("search")
1543
+ fromSearchList: location.pathname.includes('search')
1526
1544
  },
1527
1545
  children: title
1528
1546
  })
@@ -1564,7 +1582,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1564
1582
  };
1565
1583
  const dataDictionaryExists = ()=>{
1566
1584
  if (distribution && "data" in distribution) {
1567
- if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === "application/vnd.tableschema+json";
1585
+ if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === 'application/vnd.tableschema+json';
1568
1586
  }
1569
1587
  return false;
1570
1588
  };
@@ -1598,7 +1616,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1598
1616
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1599
1617
  className: "dc-c-search-list-item ds-u-padding-top--3",
1600
1618
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1601
- className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1619
+ className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1602
1620
  children: [
1603
1621
  themes,
1604
1622
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -1606,7 +1624,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1606
1624
  children: [
1607
1625
  !showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1608
1626
  id: `dataset-${identifier}-updated-date`,
1609
- className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1627
+ className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? 'ds-u-padding-top--2' : 'ds-u-padding-top--0'}`,
1610
1628
  children: [
1611
1629
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1612
1630
  children: "Updated:"
@@ -1635,13 +1653,13 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1635
1653
  (0, $1a2bf34e2a8f6b80$export$59a943b34a82e690)(description),
1636
1654
  description.length > 240 ? /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1637
1655
  children: [
1638
- " ",
1656
+ ' ',
1639
1657
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1640
1658
  to: `/dataset/${identifier}`,
1641
1659
  children: "See more"
1642
1660
  })
1643
1661
  ]
1644
- }) : ""
1662
+ }) : ''
1645
1663
  ]
1646
1664
  })
1647
1665
  }),
@@ -1669,14 +1687,14 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1669
1687
  "Download"
1670
1688
  ]
1671
1689
  })
1672
- }) : "",
1690
+ }) : '',
1673
1691
  /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
1674
- className: `ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-justify-content--between ds-u-md-justify-content--start ds-u-margin-top--3 ds-u-margin-x--0 ${!dataDictionaryLinks ? "ds-u-justify-content--center ds-u-md-justify-content--start" : ""}`,
1692
+ className: `ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-justify-content--between ds-u-md-justify-content--start ds-u-margin-top--3 ds-u-margin-x--0 ${!dataDictionaryLinks ? 'ds-u-justify-content--center ds-u-md-justify-content--start' : ''}`,
1675
1693
  children: [
1676
1694
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1677
1695
  className: linkContainerClasses,
1678
1696
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1679
- className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? "" : " dkan-disabled-link-wrapper"}`,
1697
+ className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? '' : ' dkan-disabled-link-wrapper'}`,
1680
1698
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataTableLink, {})
1681
1699
  })
1682
1700
  }),
@@ -1698,10 +1716,10 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1698
1716
  dataDictionaryLinks ? /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1699
1717
  className: linkContainerClasses,
1700
1718
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1701
- className: `${linkClasses}${dataDictionaryExists() ? "" : " dkan-disabled-link-wrapper"}`,
1719
+ className: `${linkClasses}${dataDictionaryExists() ? '' : ' dkan-disabled-link-wrapper'}`,
1702
1720
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataDictionaryLink, {})
1703
1721
  })
1704
- }) : "",
1722
+ }) : '',
1705
1723
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1706
1724
  className: linkContainerClasses,
1707
1725
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1797,7 +1815,7 @@ var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocument
1797
1815
 
1798
1816
 
1799
1817
 
1800
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
1818
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = 'data-table-results' })=>{
1801
1819
  const numTotalRows = totalRows;
1802
1820
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
1803
1821
  className: className,
@@ -1815,18 +1833,18 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
1815
1833
  className: className,
1816
1834
  children: [
1817
1835
  "Displaying",
1818
- " ",
1836
+ ' ',
1819
1837
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1820
1838
  className: "ds-u-font-weight--bold",
1821
1839
  children: `${startTotal().toLocaleString()} - ${ofTotal().toLocaleString()}`
1822
1840
  }),
1823
- " ",
1841
+ ' ',
1824
1842
  "of ",
1825
1843
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1826
1844
  className: "ds-u-font-weight--bold",
1827
1845
  children: `${numTotalRows.toLocaleString()}`
1828
1846
  }),
1829
- " ",
1847
+ ' ',
1830
1848
  "rows"
1831
1849
  ]
1832
1850
  });
@@ -1852,16 +1870,16 @@ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePaddi
1852
1870
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1853
1871
  options: [
1854
1872
  {
1855
- label: "Tight",
1856
- value: "ds-u-padding-y--0"
1873
+ label: 'Tight',
1874
+ value: 'ds-u-padding-y--0'
1857
1875
  },
1858
1876
  {
1859
- label: "Normal",
1860
- value: "ds-u-padding-y--1"
1877
+ label: 'Normal',
1878
+ value: 'ds-u-padding-y--1'
1861
1879
  },
1862
1880
  {
1863
- label: "Expanded",
1864
- value: "ds-u-padding-y--2"
1881
+ label: 'Expanded',
1882
+ value: 'ds-u-padding-y--2'
1865
1883
  }
1866
1884
  ],
1867
1885
  label: "Display density:",
@@ -2104,7 +2122,7 @@ function $aa4450dcbeef3ac0$export$385a5aba38cc3325(sortArray) {
2104
2122
  sortArray.forEach((s)=>{
2105
2123
  return newQuery.push({
2106
2124
  property: s.id,
2107
- order: s.desc ? "desc" : "asc"
2125
+ order: s.desc ? 'desc' : 'asc'
2108
2126
  });
2109
2127
  });
2110
2128
  return newQuery;
@@ -2142,46 +2160,46 @@ function $7264a673914aa746$export$e284ae5d89467c8f(date) {
2142
2160
  }
2143
2161
  function $7264a673914aa746$export$6b5e57d20078142b(value, operator) {
2144
2162
  let newValue = value;
2145
- if (Array.isArray(newValue)) newValue = newValue.join(",");
2163
+ if (Array.isArray(newValue)) newValue = newValue.join(',');
2146
2164
  // return newValue.replace(/(^\%+|\%+$)/gm, '');
2147
2165
  return newValue;
2148
2166
  }
2149
2167
  const $7264a673914aa746$export$5f89a5ae87bc48e1 = [
2150
2168
  {
2151
- label: "Is",
2152
- value: "="
2169
+ label: 'Is',
2170
+ value: '='
2153
2171
  },
2154
2172
  {
2155
- label: "Starts With",
2156
- value: "starts with"
2173
+ label: 'Starts With',
2174
+ value: 'starts with'
2157
2175
  },
2158
2176
  {
2159
- label: "Contains",
2160
- value: "contains"
2177
+ label: 'Contains',
2178
+ value: 'contains'
2161
2179
  },
2162
2180
  {
2163
- label: "Is Not",
2164
- value: "<>"
2181
+ label: 'Is Not',
2182
+ value: '<>'
2165
2183
  },
2166
2184
  {
2167
- label: "Or",
2168
- value: "in"
2185
+ label: 'Or',
2186
+ value: 'in'
2169
2187
  },
2170
2188
  {
2171
- label: "Is",
2172
- value: "="
2189
+ label: 'Is',
2190
+ value: '='
2173
2191
  },
2174
2192
  {
2175
- label: "Is Not",
2176
- value: "<>"
2193
+ label: 'Is Not',
2194
+ value: '<>'
2177
2195
  },
2178
2196
  {
2179
- label: "Greater Than",
2180
- value: ">"
2197
+ label: 'Greater Than',
2198
+ value: '>'
2181
2199
  },
2182
2200
  {
2183
- label: "Less Than",
2184
- value: "<"
2201
+ label: 'Less Than',
2202
+ value: '<'
2185
2203
  }
2186
2204
  ];
2187
2205
  function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
@@ -2190,59 +2208,59 @@ function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
2190
2208
  }
2191
2209
  function $7264a673914aa746$export$2b9377795161999(type) {
2192
2210
  switch(type){
2193
- case "text":
2194
- case "string":
2211
+ case 'text':
2212
+ case 'string':
2195
2213
  return [
2196
2214
  {
2197
- label: "Is",
2198
- value: "="
2215
+ label: 'Is',
2216
+ value: '='
2199
2217
  },
2200
2218
  {
2201
- label: "Starts With",
2202
- value: "starts with"
2219
+ label: 'Starts With',
2220
+ value: 'starts with'
2203
2221
  },
2204
2222
  {
2205
- label: "Contains",
2206
- value: "contains"
2223
+ label: 'Contains',
2224
+ value: 'contains'
2207
2225
  },
2208
2226
  {
2209
- label: "Is Not",
2210
- value: "<>"
2227
+ label: 'Is Not',
2228
+ value: '<>'
2211
2229
  },
2212
2230
  {
2213
- label: "Or",
2214
- value: "in"
2231
+ label: 'Or',
2232
+ value: 'in'
2215
2233
  }
2216
2234
  ];
2217
- case "date":
2235
+ case 'date':
2218
2236
  return [
2219
2237
  {
2220
- label: "Is",
2221
- value: "="
2238
+ label: 'Is',
2239
+ value: '='
2222
2240
  },
2223
2241
  {
2224
- label: "Is Not",
2225
- value: "<>"
2242
+ label: 'Is Not',
2243
+ value: '<>'
2226
2244
  },
2227
2245
  {
2228
- label: "Greater Than",
2229
- value: ">"
2246
+ label: 'Greater Than',
2247
+ value: '>'
2230
2248
  },
2231
2249
  {
2232
- label: "Less Than",
2233
- value: "<"
2250
+ label: 'Less Than',
2251
+ value: '<'
2234
2252
  }
2235
2253
  ];
2236
2254
  default:
2237
2255
  // These 2 should be safe for all data types
2238
2256
  return [
2239
2257
  {
2240
- label: "Is",
2241
- value: "="
2258
+ label: 'Is',
2259
+ value: '='
2242
2260
  },
2243
2261
  {
2244
- label: "Is Not",
2245
- value: "<>"
2262
+ label: 'Is Not',
2263
+ value: '<>'
2246
2264
  }
2247
2265
  ];
2248
2266
  }
@@ -2259,7 +2277,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
2259
2277
 
2260
2278
 
2261
2279
  const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback, id: id })=>{
2262
- const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
2280
+ const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)('');
2263
2281
  // Fix for JSX in Data Dictionary Title header cell
2264
2282
  const ariaLabel = header.id === "titleResizable" ? "Title" : header.column.columnDef.header;
2265
2283
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
@@ -2268,9 +2286,9 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2268
2286
  width: header.getSize()
2269
2287
  },
2270
2288
  id: id,
2271
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2289
+ title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : '',
2272
2290
  className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2273
- "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2291
+ "aria-sort": header.column.getIsSorted() === 'asc' ? 'ascending' : header.column.getIsSorted() === 'desc' ? 'descending' : 'none',
2274
2292
  children: [
2275
2293
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2276
2294
  className: "ds-u-display--flex",
@@ -2282,7 +2300,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2282
2300
  }),
2283
2301
  sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2284
2302
  onClick: header.column.getToggleSortingHandler(),
2285
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
2303
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
2286
2304
  "aria-label": `${ariaLabel} sort order`
2287
2305
  })
2288
2306
  ]
@@ -2290,18 +2308,18 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2290
2308
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2291
2309
  onMouseDown: header.getResizeHandler(),
2292
2310
  onTouchStart: header.getResizeHandler(),
2293
- className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
2311
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? 'isResizing' : ''}`,
2294
2312
  "aria-label": `Resize ${ariaLabel} column`,
2295
2313
  onKeyDown: (e)=>{
2296
2314
  const columnSizingObject = table.getState().columnSizing;
2297
2315
  switch(e.key){
2298
- case "Enter":
2299
- case " ":
2316
+ case 'Enter':
2317
+ case ' ':
2300
2318
  e.preventDefault();
2301
2319
  e.stopPropagation();
2302
2320
  if (columnResizing) {
2303
2321
  // end resizing
2304
- setColumnResizing("");
2322
+ setColumnResizing('');
2305
2323
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2306
2324
  } else {
2307
2325
  // start resizing
@@ -2309,13 +2327,13 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2309
2327
  setAriaLiveFeedback(`${header.column.columnDef.header} grabbed.`);
2310
2328
  }
2311
2329
  break;
2312
- case "Escape":
2330
+ case 'Escape':
2313
2331
  if (columnResizing) {
2314
- setColumnResizing("");
2332
+ setColumnResizing('');
2315
2333
  setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2316
2334
  }
2317
2335
  break;
2318
- case "ArrowRight":
2336
+ case 'ArrowRight':
2319
2337
  e.preventDefault();
2320
2338
  e.stopPropagation();
2321
2339
  if (columnResizing) {
@@ -2324,7 +2342,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2324
2342
  setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
2325
2343
  }
2326
2344
  break;
2327
- case "ArrowLeft":
2345
+ case 'ArrowLeft':
2328
2346
  e.preventDefault();
2329
2347
  e.stopPropagation();
2330
2348
  if (columnResizing) {
@@ -2336,7 +2354,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2336
2354
  }
2337
2355
  },
2338
2356
  onBlur: ()=>{
2339
- setColumnResizing("");
2357
+ setColumnResizing('');
2340
2358
  }
2341
2359
  })
2342
2360
  ]
@@ -2377,7 +2395,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2377
2395
  },
2378
2396
  title: header.column.columnDef.header,
2379
2397
  className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2380
- "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2398
+ "aria-sort": header.column.getIsSorted() === 'asc' ? 'ascending' : header.column.getIsSorted() === 'desc' ? 'descending' : 'none',
2381
2399
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2382
2400
  onClick: header.column.getToggleSortingHandler(),
2383
2401
  className: "ds-u-display--flex",
@@ -2386,7 +2404,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2386
2404
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2387
2405
  }),
2388
2406
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2389
- className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
2407
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ''
2390
2408
  })
2391
2409
  ]
2392
2410
  })
@@ -2417,7 +2435,7 @@ const $ee0d4d4f34048447$var$DataTableActionsContextDefaults = {
2417
2435
  setColumnVisibility: ()=>{},
2418
2436
  page: 1,
2419
2437
  setPage: ()=>{},
2420
- tableDensity: "normal",
2438
+ tableDensity: 'normal',
2421
2439
  setTableDensity: ()=>{}
2422
2440
  };
2423
2441
  const $ee0d4d4f34048447$export$f814ea079e65d8fe = /*#__PURE__*/ (0, $hgUW1$createContext)($ee0d4d4f34048447$var$DataTableActionsContextDefaults);
@@ -2436,7 +2454,7 @@ const $ee0d4d4f34048447$var$DataTableActionsProvider = ({ children: children })=
2436
2454
  if (datasetTableControls && localStorageData) return localStorageData.tableColumnVisibility;
2437
2455
  else return {};
2438
2456
  });
2439
- const [tableDensity, setTableDensity] = (0, $hgUW1$useState)("normal");
2457
+ const [tableDensity, setTableDensity] = (0, $hgUW1$useState)('normal');
2440
2458
  const providerValue = {
2441
2459
  columnOrder: columnOrder,
2442
2460
  setColumnOrder: setColumnOrder,
@@ -2483,9 +2501,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2483
2501
  transition: transition,
2484
2502
  opacity: isDragging ? 0.7 : 1,
2485
2503
  zIndex: isDragging ? 1 : 0,
2486
- position: "relative",
2487
- background: "white",
2488
- touchAction: "none"
2504
+ position: 'relative',
2505
+ background: 'white',
2506
+ touchAction: 'none'
2489
2507
  };
2490
2508
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
2491
2509
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -2501,7 +2519,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2501
2519
  // this code forces the repaint without user interaction
2502
2520
  const target = e.target;
2503
2521
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
2504
- target.parentNode.querySelector("input").checked = visible;
2522
+ target.parentNode.querySelector('input').checked = visible;
2505
2523
  }, 1);
2506
2524
  },
2507
2525
  children: [
@@ -2518,7 +2536,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2518
2536
  }
2519
2537
  }),
2520
2538
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2521
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
2539
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
2522
2540
  "aria-label": `Reorder ${id} column`,
2523
2541
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2524
2542
  className: "fa fa-sort"
@@ -2536,7 +2554,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
2536
2554
  // Custom function to exclude checkbox from keyboard dragging
2537
2555
  static activators = [
2538
2556
  {
2539
- eventName: "onKeyDown",
2557
+ eventName: 'onKeyDown',
2540
2558
  handler: ({ nativeEvent: event })=>{
2541
2559
  // prevent scrolling the list
2542
2560
  const isCheckbox = [
@@ -2559,7 +2577,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
2559
2577
  // Custom function to stop accidental checkbox clicks on pointer activation
2560
2578
  static activators = [
2561
2579
  {
2562
- eventName: "onPointerDown",
2580
+ eventName: 'onPointerDown',
2563
2581
  handler: ({ nativeEvent: event })=>{
2564
2582
  if (event.target.tagName.toLowerCase() === "input") return false;
2565
2583
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -2657,13 +2675,13 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
2657
2675
  className: "dkan-dataset-toolbar-button-label",
2658
2676
  children: "Manage Columns"
2659
2677
  }),
2660
- hiddenColumns ? ` (${hiddenColumns})` : ""
2678
+ hiddenColumns ? ` (${hiddenColumns})` : ''
2661
2679
  ]
2662
2680
  })
2663
2681
  ]
2664
2682
  }),
2665
2683
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2666
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2684
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2667
2685
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
2668
2686
  heading: "Manage columns",
2669
2687
  isOpen: modalOpen,
@@ -2836,12 +2854,12 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2836
2854
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2837
2855
  children: [
2838
2856
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2839
- className: isModal ? "dkan-datatable-fullscreen-mode" : "",
2857
+ className: isModal ? 'dkan-datatable-fullscreen-mode' : '',
2840
2858
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2841
2859
  canResize: true,
2842
2860
  columns: columns,
2843
2861
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2844
- tablePadding: tableDensity === "normal" ? "ds-u-padding-y--2" : tableDensity === "compact" ? "ds-u-padding-y--1" : "ds-u-padding-y--3",
2862
+ tablePadding: tableDensity === 'normal' ? 'ds-u-padding-y--2' : tableDensity === 'compact' ? 'ds-u-padding-y--1' : 'ds-u-padding-y--3',
2845
2863
  loading: resource.loading,
2846
2864
  isModal: isModal,
2847
2865
  downloadURL: downloadURL,
@@ -2856,14 +2874,14 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2856
2874
  }),
2857
2875
  !resource.loading && resource.count !== null && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2858
2876
  className: [
2859
- "ds-u-display--flex",
2860
- "ds-u-flex-wrap--wrap",
2861
- "ds-u-justify-content--end",
2862
- "ds-u-md-justify-content--between",
2863
- "ds-u-margin-top--2",
2864
- "ds-u-align-items--center",
2865
- isModal && "ds-u-margin-bottom--2"
2866
- ].filter(Boolean).join(" "),
2877
+ 'ds-u-display--flex',
2878
+ 'ds-u-flex-wrap--wrap',
2879
+ 'ds-u-justify-content--end',
2880
+ 'ds-u-md-justify-content--between',
2881
+ 'ds-u-margin-top--2',
2882
+ 'ds-u-align-items--center',
2883
+ isModal && 'ds-u-margin-bottom--2'
2884
+ ].filter(Boolean).join(' '),
2867
2885
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
2868
2886
  totalPages: Math.ceil(resource.count ? resource.count / pageSize : 1),
2869
2887
  currentPage: Number(page),
@@ -2902,7 +2920,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2902
2920
  },
2903
2921
  children: [
2904
2922
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2905
- className: `far ${modalOpen ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2923
+ className: `far ${modalOpen ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2906
2924
  }),
2907
2925
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2908
2926
  className: "dkan-dataset-toolbar-button-label",
@@ -2911,7 +2929,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2911
2929
  ]
2912
2930
  }),
2913
2931
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2914
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2932
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2915
2933
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2916
2934
  heading: "Dataset Explorer",
2917
2935
  isOpen: modalOpen,
@@ -2946,13 +2964,13 @@ var $16bd41951b91f02d$export$2e2bcd8739ae039 = $16bd41951b91f02d$var$FullScreenD
2946
2964
 
2947
2965
 
2948
2966
  function $eadd6431fddf4b6c$var$getStartDate(condition, schema, id) {
2949
- if (schema[id].fields[condition.property].mysql_type === "date") {
2967
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
2950
2968
  const newDate = new Date(condition.value.toString());
2951
2969
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2952
2970
  }
2953
2971
  return new Date();
2954
2972
  }
2955
- const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = "" })=>{
2973
+ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = '' })=>{
2956
2974
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
2957
2975
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
2958
2976
  const [value, setValue] = (0, $hgUW1$useState)(condition.value);
@@ -2962,9 +2980,9 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2962
2980
  });
2963
2981
  (0, $hgUW1$useEffect)(()=>{
2964
2982
  if (property !== condition.property) {
2965
- if (property) update(index, "property", property);
2966
- else update(index, "property", "");
2967
- if (schema[id].fields[condition.property].mysql_type === "date") {
2983
+ if (property) update(index, 'property', property);
2984
+ else update(index, 'property', '');
2985
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
2968
2986
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2969
2987
  }
2970
2988
  }
@@ -2978,22 +2996,22 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2978
2996
  ]);
2979
2997
  (0, $hgUW1$useEffect)(()=>{
2980
2998
  if (operator !== condition.operator) {
2981
- if (operator) update(index, "operator", operator);
2982
- else update(index, "operator", "");
2999
+ if (operator) update(index, 'operator', operator);
3000
+ else update(index, 'operator', '');
2983
3001
  }
2984
3002
  }, [
2985
3003
  operator
2986
3004
  ]);
2987
3005
  (0, $hgUW1$useEffect)(()=>{
2988
3006
  if (value !== condition.value) {
2989
- if (value) update(index, "value", value);
2990
- else update(index, "value", "");
3007
+ if (value) update(index, 'value', value);
3008
+ else update(index, 'value', '');
2991
3009
  }
2992
3010
  }, [
2993
3011
  value
2994
3012
  ]);
2995
3013
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("fieldset", {
2996
- className: `dkan-filter-dataset-control ds-u-padding-x--2 ds-u-md-padding-x--3 ds-u-padding-y--1 ds-u-margin-top--05${className !== "" ? ` ${className}` : ""}`,
3014
+ className: `dkan-filter-dataset-control ds-u-padding-x--2 ds-u-md-padding-x--3 ds-u-padding-y--1 ds-u-margin-top--05${className !== '' ? ` ${className}` : ''}`,
2997
3015
  children: [
2998
3016
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
2999
3017
  options: propertyOptions,
@@ -3011,7 +3029,7 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3011
3029
  name: `${condition.key}_operator`,
3012
3030
  onChange: (e)=>setOperator(e.target.value)
3013
3031
  }),
3014
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3032
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3015
3033
  children: [
3016
3034
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
3017
3035
  className: "ds-c-label",
@@ -3064,15 +3082,15 @@ var $eadd6431fddf4b6c$export$2e2bcd8739ae039 = $eadd6431fddf4b6c$var$FilterItem;
3064
3082
 
3065
3083
 
3066
3084
 
3067
- const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = "" })=>{
3085
+ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = '' })=>{
3068
3086
  const small = (0, $hgUW1$useMediaQuery)({
3069
3087
  minWidth: 0,
3070
3088
  maxWidth: 544
3071
3089
  });
3072
3090
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
3073
3091
  disabled: disabled,
3074
- className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? "" : " ds-u-float--right ds-l-md-col--6 ds-l-col--5"}${className !== "" ? ` ${className}` : ""}`,
3075
- variation: small ? "ghost" : undefined,
3092
+ className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? '' : ' ds-u-float--right ds-l-md-col--6 ds-l-col--5'}${className !== '' ? ` ${className}` : ''}`,
3093
+ variation: small ? 'ghost' : undefined,
3076
3094
  onClick: ()=>clearFiltersFn(),
3077
3095
  children: "Reset"
3078
3096
  });
@@ -3084,19 +3102,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
3084
3102
  function $6f4318b1e14124e5$var$updateQueryForDatastore(condition) {
3085
3103
  let cond = condition;
3086
3104
  delete cond.key;
3087
- if (cond.operator === "=" || cond.operator === "<>") {
3105
+ if (cond.operator === '=' || cond.operator === '<>') {
3088
3106
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3089
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
3107
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
3090
3108
  }
3091
- if (cond.operator.toLowerCase() === "like") {
3109
+ if (cond.operator.toLowerCase() === 'like') {
3092
3110
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3093
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
3111
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
3094
3112
  cond.value = `%${cleanedValue}%`;
3095
3113
  }
3096
- if (cond.operator.toLowerCase() === "in") {
3097
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
3114
+ if (cond.operator.toLowerCase() === 'in') {
3115
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
3098
3116
  }
3099
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
3117
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
3100
3118
  return cond;
3101
3119
  }
3102
3120
  const $6f4318b1e14124e5$var$FilterDataset = ()=>{
@@ -3122,7 +3140,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3122
3140
  } else setQueryConditions([
3123
3141
  {
3124
3142
  property: fields[0],
3125
- value: "",
3143
+ value: '',
3126
3144
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3127
3145
  key: Date.now().toString()
3128
3146
  }
@@ -3139,7 +3157,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3139
3157
  ...queryConditions,
3140
3158
  {
3141
3159
  property: fields[0],
3142
- value: "",
3160
+ value: '',
3143
3161
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3144
3162
  key: Date.now().toString()
3145
3163
  }
@@ -3170,7 +3188,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3170
3188
  encodeValuesOnly: true,
3171
3189
  addQueryPrefix: true
3172
3190
  });
3173
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3191
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3174
3192
  };
3175
3193
  const submitConditions = ()=>{
3176
3194
  // only update the data conditions when "Apply filters" is pressed
@@ -3244,7 +3262,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3244
3262
  children: [
3245
3263
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3246
3264
  className: "dkan-dataset-toolbar-button-label",
3247
- children: conditions.length > 0 ? `Edit Filters` : "Filter Dataset"
3265
+ children: conditions.length > 0 ? `Edit Filters` : 'Filter Dataset'
3248
3266
  }),
3249
3267
  conditions.length > 0 && ` (${conditions.length})`
3250
3268
  ]
@@ -3252,7 +3270,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3252
3270
  ]
3253
3271
  }),
3254
3272
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3255
- className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3273
+ className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3256
3274
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
3257
3275
  heading: "Filter Dataset",
3258
3276
  isOpen: modalOpen,
@@ -3278,7 +3296,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3278
3296
  className: "dkan-apply-dataset-filters-button ds-u-float--right ds-l-md-col--auto ds-l-col--auto",
3279
3297
  onClick: submitConditions,
3280
3298
  variation: "solid",
3281
- children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ""} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? "" : "s"}`
3299
+ children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ''} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? '' : 's'}`
3282
3300
  })
3283
3301
  ]
3284
3302
  })
@@ -3417,9 +3435,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3417
3435
  className: "ds-u-display--flex ds-u-align-items--start",
3418
3436
  children: [
3419
3437
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3420
- onClick: ()=>setTableDensity("expanded"),
3438
+ onClick: ()=>setTableDensity('expanded'),
3421
3439
  "aria-label": "Row height, Expanded",
3422
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "expanded" ? "active ds-u-fill--primary-lightest" : ""}`,
3440
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'expanded' ? 'active ds-u-fill--primary-lightest' : ''}`,
3423
3441
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3424
3442
  className: "ds-u-display--block",
3425
3443
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3438,9 +3456,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3438
3456
  })
3439
3457
  }),
3440
3458
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3441
- onClick: ()=>setTableDensity("normal"),
3459
+ onClick: ()=>setTableDensity('normal'),
3442
3460
  "aria-label": "Row height, Normal",
3443
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "normal" ? "active ds-u-fill--primary-lightest" : ""}`,
3461
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'normal' ? 'active ds-u-fill--primary-lightest' : ''}`,
3444
3462
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3445
3463
  className: "ds-u-display--block",
3446
3464
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3459,9 +3477,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3459
3477
  })
3460
3478
  }),
3461
3479
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3462
- onClick: ()=>setTableDensity("compact"),
3480
+ onClick: ()=>setTableDensity('compact'),
3463
3481
  "aria-label": "Row height, Compact",
3464
- className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === "compact" ? "active ds-u-fill--primary-lightest " : ""}`,
3482
+ className: `dkan-table-density-button ds-u-leading--reset ds-u-padding--1 ds-u-margin--0 ${tableDensity === 'compact' ? 'active ds-u-fill--primary-lightest ' : ''}`,
3465
3483
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3466
3484
  className: "ds-u-display--block",
3467
3485
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3546,7 +3564,7 @@ const $85f8ff1ff89899c7$var$updateBrowserURL = (newConditions)=>{
3546
3564
  encodeValuesOnly: true,
3547
3565
  addQueryPrefix: true
3548
3566
  });
3549
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3567
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3550
3568
  };
3551
3569
  const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, columns: columns, defaultColumnOrder: defaultColumnOrder, isModal: isModal, datasetTableControls: datasetTableControls, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility })=>{
3552
3570
  const { limit: limit, offset: offset, count: count, conditions: conditions, setConditions: setConditions } = resource;
@@ -3632,7 +3650,7 @@ const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, co
3632
3650
  }, index)) : null,
3633
3651
  hiddenColumns > 0 ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $c5b172e8d1a8197c$export$2e2bcd8739ae039), {
3634
3652
  iconClass: "fa fa-columns",
3635
- text: `${hiddenColumns} Column${hiddenColumns === 1 ? "" : "s"} Hidden`,
3653
+ text: `${hiddenColumns} Column${hiddenColumns === 1 ? '' : 's'} Hidden`,
3636
3654
  onClick: ()=>{
3637
3655
  resetColumnVisibility();
3638
3656
  }
@@ -3667,7 +3685,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3667
3685
  const { conditions: conditions } = resource;
3668
3686
  const data = resource.values;
3669
3687
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
3670
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
3688
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
3671
3689
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
3672
3690
  const columnHelper = (0, $hgUW1$createColumnHelper)();
3673
3691
  const table_columns = columns.map((col)=>{
@@ -3686,9 +3704,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3686
3704
  columnOrder
3687
3705
  ]);
3688
3706
  const sortElement = (isSorted, onClickFn)=>{
3689
- if (isSorted === "asc") return "dc-c-sort--asc";
3690
- if (isSorted === "desc") return "dc-c-sort--desc";
3691
- return "dc-c-sort--default";
3707
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
3708
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
3709
+ return 'dc-c-sort--default';
3692
3710
  };
3693
3711
  const filters = [];
3694
3712
  const table = (0, $hgUW1$useReactTable)({
@@ -3700,7 +3718,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3700
3718
  columnVisibility: columnVisibility,
3701
3719
  sorting: sorting
3702
3720
  },
3703
- columnResizeMode: "onChange",
3721
+ columnResizeMode: 'onChange',
3704
3722
  onSortingChange: setSorting,
3705
3723
  onColumnOrderChange: setColumnOrder,
3706
3724
  onColumnVisibilityChange: setColumnVisibility,
@@ -3717,7 +3735,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3717
3735
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
3718
3736
  const tableWrapperWidth = ()=>{
3719
3737
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
3720
- return "auto";
3738
+ return 'auto';
3721
3739
  };
3722
3740
  (0, $hgUW1$useEffect)(()=>{
3723
3741
  setHighlightRow(null);
@@ -3947,7 +3965,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3947
3965
  },
3948
3966
  labelClassName: "ds-u-visibility--screen-reader",
3949
3967
  name: accessor,
3950
- value: filterValue || ""
3968
+ value: filterValue || ''
3951
3969
  });
3952
3970
  }
3953
3971
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -4023,7 +4041,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
4023
4041
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4024
4042
  children: currentPage
4025
4043
  })
4026
- }) : ""
4044
+ }) : ''
4027
4045
  ]
4028
4046
  })
4029
4047
  });
@@ -4080,11 +4098,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
4080
4098
 
4081
4099
 
4082
4100
 
4083
- 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", {
4101
+ 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", {
4084
4102
  className: "search-input-container",
4085
4103
  children: [
4086
4104
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4087
- className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
4105
+ className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
4088
4106
  label: placeholder,
4089
4107
  labelClassName: "ds-u-visibility--screen-reader",
4090
4108
  placeholder: placeholder,
@@ -4099,7 +4117,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = "Search
4099
4117
  }),
4100
4118
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
4101
4119
  variation: "solid",
4102
- className: onDark && "on-dark",
4120
+ className: onDark && 'on-dark',
4103
4121
  onClick: onSubmit,
4104
4122
  children: [
4105
4123
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4218,7 +4236,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
4218
4236
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4219
4237
  addQueryPrefix: true
4220
4238
  })}`,
4221
- docExpansion: "list",
4239
+ docExpansion: 'list',
4222
4240
  defaultModelsExpandDepth: -1,
4223
4241
  plugins: [
4224
4242
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -4326,7 +4344,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4326
4344
  size: "big",
4327
4345
  type: "submit",
4328
4346
  style: {
4329
- width: "70px"
4347
+ width: '70px'
4330
4348
  },
4331
4349
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4332
4350
  className: "fas fa-search small-text"
@@ -4343,7 +4361,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4343
4361
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
4344
4362
  children: [
4345
4363
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4346
- children: text ? text : "Search"
4364
+ children: text ? text : 'Search'
4347
4365
  }),
4348
4366
  ` `,
4349
4367
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4428,12 +4446,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4428
4446
  fulltext: fulltext ? fulltext : undefined,
4429
4447
  ...selectedFacets,
4430
4448
  sort: sort ? sort : undefined,
4431
- ["sort-order"]: sortOrder ? sortOrder : undefined,
4449
+ ['sort-order']: sortOrder ? sortOrder : undefined,
4432
4450
  page: page !== 1 ? page : undefined,
4433
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
4451
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
4434
4452
  };
4435
4453
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4436
- arrayFormat: "comma",
4454
+ arrayFormat: 'comma',
4437
4455
  encode: false
4438
4456
  })}`);
4439
4457
  }
@@ -4444,26 +4462,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4444
4462
 
4445
4463
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4446
4464
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4447
- defaultSort: "modified",
4448
- defaultOrder: "desc"
4449
- }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4465
+ defaultSort: 'modified',
4466
+ defaultOrder: 'desc'
4467
+ }, pageTitle: pageTitle = 'Dataset Explorer', filterTitle: filterTitle = 'Tags', showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = '', showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4450
4468
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4451
4469
  const sortOptions = [
4452
4470
  {
4453
- label: "Newest",
4454
- value: "newest"
4471
+ label: 'Newest',
4472
+ value: 'newest'
4455
4473
  },
4456
4474
  {
4457
- label: "Oldest",
4458
- value: "oldest"
4475
+ label: 'Oldest',
4476
+ value: 'oldest'
4459
4477
  },
4460
4478
  {
4461
- label: "Title A-Z",
4462
- value: "titleAZ"
4479
+ label: 'Title A-Z',
4480
+ value: 'titleAZ'
4463
4481
  },
4464
4482
  {
4465
- label: "Title Z-A",
4466
- value: "titleZA"
4483
+ label: 'Title Z-A',
4484
+ value: 'titleZA'
4467
4485
  }
4468
4486
  ];
4469
4487
  const defaultSortBy = "";
@@ -4482,7 +4500,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4482
4500
  endingNumber: 0
4483
4501
  });
4484
4502
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4485
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4503
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4486
4504
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4487
4505
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
4488
4506
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -4491,7 +4509,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4491
4509
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4492
4510
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4493
4511
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4494
- return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4512
+ return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4495
4513
  });
4496
4514
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
4497
4515
  theme: [],
@@ -4500,21 +4518,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4500
4518
  const setSortOptions = (value)=>{
4501
4519
  setSortDisplay(value);
4502
4520
  switch(value){
4503
- case "newest":
4504
- setSort("modified");
4505
- setSortOrder("desc");
4521
+ case 'newest':
4522
+ setSort('modified');
4523
+ setSortOrder('desc');
4506
4524
  break;
4507
- case "oldest":
4508
- setSort("modified");
4509
- setSortOrder("asc");
4525
+ case 'oldest':
4526
+ setSort('modified');
4527
+ setSortOrder('asc');
4510
4528
  break;
4511
- case "titleAZ":
4512
- setSort("title");
4513
- setSortOrder("asc");
4529
+ case 'titleAZ':
4530
+ setSort('title');
4531
+ setSortOrder('asc');
4514
4532
  break;
4515
- case "titleZA":
4516
- setSort("title");
4517
- setSortOrder("desc");
4533
+ case 'titleZA':
4534
+ setSort('title');
4535
+ setSortOrder('desc');
4518
4536
  break;
4519
4537
  }
4520
4538
  };
@@ -4522,12 +4540,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4522
4540
  const newFacets = {
4523
4541
  ...selectedFacets
4524
4542
  };
4525
- if (key === "theme") {
4543
+ if (key === 'theme') {
4526
4544
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
4527
4545
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
4528
4546
  else newFacets.theme.push(value);
4529
4547
  }
4530
- if (key === "keyword") {
4548
+ if (key === 'keyword') {
4531
4549
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
4532
4550
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
4533
4551
  else newFacets.keyword.push(value);
@@ -4541,7 +4559,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4541
4559
  });
4542
4560
  setSelectedFacets(newFacets);
4543
4561
  const url = new URL(window.location.href);
4544
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
4562
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
4545
4563
  }
4546
4564
  const pageSize = defaultPageSize;
4547
4565
  function resetFilters() {
@@ -4550,14 +4568,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4550
4568
  setSelectedFacets(defaultSelectedFacets);
4551
4569
  setPage(defaultPage);
4552
4570
  const url = new URL(window.location.href);
4553
- window.history.pushState({}, "", `${url.origin}${url.pathname}`);
4571
+ window.history.pushState({}, '', `${url.origin}${url.pathname}`);
4554
4572
  }
4555
4573
  function buildSearchParams(includePage) {
4556
4574
  let newParams = {};
4557
4575
  if (Number(page) !== 1 && includePage) newParams.page = page;
4558
4576
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
4559
4577
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
4560
- if (fulltext !== "") newParams.fulltext = fulltext;
4578
+ if (fulltext !== '') newParams.fulltext = fulltext;
4561
4579
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
4562
4580
  newParams[key] = selectedFacets[key];
4563
4581
  });
@@ -4570,9 +4588,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4570
4588
  fulltext: fulltext ? fulltext : undefined,
4571
4589
  ...selectedFacets,
4572
4590
  sort: sort ? sort : undefined,
4573
- ["sort-order"]: sortOrder ? sortOrder : undefined,
4591
+ ['sort-order']: sortOrder ? sortOrder : undefined,
4574
4592
  page: page !== 1 ? page : undefined,
4575
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
4593
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
4576
4594
  };
4577
4595
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4578
4596
  queryKey: [
@@ -4581,12 +4599,18 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4581
4599
  ],
4582
4600
  queryFn: ()=>{
4583
4601
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4584
- arrayFormat: "comma",
4602
+ arrayFormat: 'comma',
4585
4603
  encode: false
4586
4604
  })}`);
4587
4605
  }
4588
4606
  });
4589
- if (data && data.data.total && totalItems != data.data.total) setTotalItems(data.data.total);
4607
+ // Sync totalItems state with API response data
4608
+ // Moved to useEffect to prevent state updates during render (which can cause infinite loops)
4609
+ (0, $hgUW1$useEffect)(()=>{
4610
+ if (data?.data?.total !== undefined && data.data.total !== totalItems) setTotalItems(data.data.total);
4611
+ }, [
4612
+ data?.data?.total
4613
+ ]);
4590
4614
  const facets = data && data.data.facets ? (0, $eff7d34c30f5a0fc$export$959638e8dca60ce6)(data ? data.data.facets : []) : {
4591
4615
  theme: null,
4592
4616
  keyword: null
@@ -4626,8 +4650,8 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4626
4650
  ]);
4627
4651
  (0, $hgUW1$useEffect)(()=>{
4628
4652
  // No results found
4629
- if (noResults) setAnnouncementText("No results found.");
4630
- else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
4653
+ if (noResults) setAnnouncementText('No results found.');
4654
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText('Could not connect to the API.');
4631
4655
  else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
4632
4656
  }, [
4633
4657
  data,
@@ -4685,7 +4709,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4685
4709
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4686
4710
  fieldClassName: "ds-u-margin--0",
4687
4711
  value: filterText,
4688
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
4712
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
4689
4713
  label: "Search datasets",
4690
4714
  labelClassName: "ds-u-visibility--screen-reader",
4691
4715
  placeholder: "Search datasets",
@@ -4745,7 +4769,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4745
4769
  "Showing ",
4746
4770
  currentResultNumbers.startingNumber,
4747
4771
  " -",
4748
- " ",
4772
+ ' ',
4749
4773
  currentResultNumbers.endingNumber,
4750
4774
  " of ",
4751
4775
  data.data.total,
@@ -4816,7 +4840,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4816
4840
  },
4817
4841
  renderHref: (page)=>{
4818
4842
  const searchParams = buildSearchParams(false);
4819
- const includeAnd = searchParams ? "&" : "";
4843
+ const includeAnd = searchParams ? '&' : '';
4820
4844
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
4821
4845
  }
4822
4846
  })
@@ -4850,26 +4874,26 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
4850
4874
 
4851
4875
 
4852
4876
  const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4853
- defaultSort: "modified",
4854
- defaultOrder: "desc"
4855
- }, pageTitle: pageTitle = "What's New ", showLargeFileWarning: showLargeFileWarning = false, introText: introText = "", dataDictionaryLinks: dataDictionaryLinks = false })=>{
4877
+ defaultSort: 'modified',
4878
+ defaultOrder: 'desc'
4879
+ }, pageTitle: pageTitle = 'What\'s New ', showLargeFileWarning: showLargeFileWarning = false, introText: introText = '', dataDictionaryLinks: dataDictionaryLinks = false })=>{
4856
4880
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4857
4881
  const sortOptions = [
4858
4882
  {
4859
- label: "Newest",
4860
- value: "newest"
4883
+ label: 'Newest',
4884
+ value: 'newest'
4861
4885
  },
4862
4886
  {
4863
- label: "Oldest",
4864
- value: "oldest"
4887
+ label: 'Oldest',
4888
+ value: 'oldest'
4865
4889
  },
4866
4890
  {
4867
- label: "Title A-Z",
4868
- value: "titleAZ"
4891
+ label: 'Title A-Z',
4892
+ value: 'titleAZ'
4869
4893
  },
4870
4894
  {
4871
- label: "Title Z-A",
4872
- value: "titleZA"
4895
+ label: 'Title Z-A',
4896
+ value: 'titleZA'
4873
4897
  }
4874
4898
  ];
4875
4899
  const defaultSortBy = "";
@@ -4883,33 +4907,33 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4883
4907
  endingNumber: 0
4884
4908
  });
4885
4909
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4886
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4910
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4887
4911
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4888
4912
  const [totalItems, setTotalItems] = (0, $hgUW1$useState)(0);
4889
4913
  const [page, setPage] = (0, $hgUW1$useState)(transformedParams.page ? transformedParams.page : defaultPage);
4890
4914
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4891
4915
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4892
4916
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4893
- return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4917
+ return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4894
4918
  });
4895
4919
  const setSortOptions = (value)=>{
4896
4920
  setSortDisplay(value);
4897
4921
  switch(value){
4898
- case "newest":
4899
- setSort("modified");
4900
- setSortOrder("desc");
4922
+ case 'newest':
4923
+ setSort('modified');
4924
+ setSortOrder('desc');
4901
4925
  break;
4902
- case "oldest":
4903
- setSort("modified");
4904
- setSortOrder("asc");
4926
+ case 'oldest':
4927
+ setSort('modified');
4928
+ setSortOrder('asc');
4905
4929
  break;
4906
- case "titleAZ":
4907
- setSort("title");
4908
- setSortOrder("asc");
4930
+ case 'titleAZ':
4931
+ setSort('title');
4932
+ setSortOrder('asc');
4909
4933
  break;
4910
- case "titleZA":
4911
- setSort("title");
4912
- setSortOrder("desc");
4934
+ case 'titleZA':
4935
+ setSort('title');
4936
+ setSortOrder('desc');
4913
4937
  break;
4914
4938
  }
4915
4939
  };
@@ -4926,9 +4950,9 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4926
4950
  }
4927
4951
  let params = {
4928
4952
  sort: sort ? sort : undefined,
4929
- ["sort-order"]: sortOrder ? sortOrder : undefined,
4953
+ ['sort-order']: sortOrder ? sortOrder : undefined,
4930
4954
  page: page !== 1 ? page : undefined,
4931
- ["page-size"]: pageSize !== 10 ? pageSize : undefined
4955
+ ['page-size']: pageSize !== 10 ? pageSize : undefined
4932
4956
  };
4933
4957
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4934
4958
  queryKey: [
@@ -4937,17 +4961,23 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4937
4961
  ],
4938
4962
  queryFn: ()=>{
4939
4963
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4940
- arrayFormat: "comma",
4964
+ arrayFormat: 'comma',
4941
4965
  encode: false
4942
4966
  })}`);
4943
4967
  }
4944
4968
  });
4945
- if (data && data.data.total && totalItems != data.data.total) setTotalItems(data.data.total);
4969
+ // Sync totalItems state with API response data
4970
+ // Moved to useEffect to prevent state updates during render (which can cause infinite loops)
4971
+ (0, $hgUW1$useEffect)(()=>{
4972
+ if (data?.data?.total !== undefined && data.data.total !== totalItems) setTotalItems(data.data.total);
4973
+ }, [
4974
+ data?.data?.total
4975
+ ]);
4946
4976
  (0, $hgUW1$useEffect)(()=>{
4947
4977
  // Update browser URL with current search params
4948
4978
  const params = buildSearchParams(true);
4949
4979
  const url = new URL(window.location.href);
4950
- window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
4980
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
4951
4981
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
4952
4982
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
4953
4983
  const endingNumber = Number(pageSize) * Number(page);
@@ -4973,8 +5003,8 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4973
5003
  ]);
4974
5004
  (0, $hgUW1$useEffect)(()=>{
4975
5005
  // No results found
4976
- if (noResults) setAnnouncementText("No results found.");
4977
- else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
5006
+ if (noResults) setAnnouncementText('No results found.');
5007
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText('Could not connect to the API.');
4978
5008
  else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
4979
5009
  }, [
4980
5010
  data,
@@ -5047,7 +5077,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5047
5077
  "Showing ",
5048
5078
  currentResultNumbers.startingNumber,
5049
5079
  " -",
5050
- " ",
5080
+ ' ',
5051
5081
  currentResultNumbers.endingNumber,
5052
5082
  " of ",
5053
5083
  data.data.total,
@@ -5107,7 +5137,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5107
5137
  },
5108
5138
  renderHref: (page)=>{
5109
5139
  const searchParams = buildSearchParams(false);
5110
- const includeAnd = searchParams ? "&" : "";
5140
+ const includeAnd = searchParams ? '&' : '';
5111
5141
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
5112
5142
  }
5113
5143
  })
@@ -5139,12 +5169,12 @@ var $550bcc185f420ff5$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5139
5169
 
5140
5170
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5141
5171
  const [dataset, setDataset] = (0, $hgUW1$useState)({
5142
- title: "",
5172
+ title: '',
5143
5173
  distribution: [],
5144
- error: "",
5145
- description: "",
5146
- identifier: "",
5147
- modified: ""
5174
+ error: '',
5175
+ description: '',
5176
+ identifier: '',
5177
+ modified: ''
5148
5178
  });
5149
5179
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
5150
5180
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -5154,7 +5184,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5154
5184
  "metastore" + id
5155
5185
  ],
5156
5186
  queryFn: ()=>{
5157
- 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)=>{
5187
+ 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)=>{
5158
5188
  return {
5159
5189
  title: dataset.title,
5160
5190
  distribution: dataset.distribution,
@@ -5210,7 +5240,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5210
5240
  // const [joins, setJoins] = useState()
5211
5241
  const [properties, setProperties] = (0, $hgUW1$useState)(options.properties ? options.properties : undefined);
5212
5242
  // Check drupalSettings for datastore_query_api
5213
- const useDatasetAPI = typeof window !== "undefined" && window.drupalSettings?.datastore_query_api === true;
5243
+ const useDatasetAPI = typeof window !== 'undefined' && window.drupalSettings?.datastore_query_api === true;
5214
5244
  const datasetID = additionalParams.datasetID;
5215
5245
  // Remove datasetID from params to avoid sending it to the API
5216
5246
  const { datasetID: _, ...restAdditionalParams } = additionalParams;
@@ -5225,7 +5255,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5225
5255
  ...restAdditionalParams
5226
5256
  };
5227
5257
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
5228
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
5258
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
5229
5259
  let enabled = false;
5230
5260
  if (id) {
5231
5261
  if (!requireConditions) enabled = true;
@@ -5307,65 +5337,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
5307
5337
 
5308
5338
 
5309
5339
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
5310
- "R/P10Y": {
5311
- name: "Decennial"
5340
+ 'R/P10Y': {
5341
+ name: 'Decennial'
5312
5342
  },
5313
- "R/P4Y": {
5314
- name: "Quadrennial"
5343
+ 'R/P4Y': {
5344
+ name: 'Quadrennial'
5315
5345
  },
5316
- "R/P1Y": {
5317
- name: "Annual"
5346
+ 'R/P1Y': {
5347
+ name: 'Annual'
5318
5348
  },
5319
- "R/P2M": {
5320
- name: "Bimonthly"
5349
+ 'R/P2M': {
5350
+ name: 'Bimonthly'
5321
5351
  },
5322
- "R/P3.5D": {
5323
- name: "Semiweekly"
5352
+ 'R/P3.5D': {
5353
+ name: 'Semiweekly'
5324
5354
  },
5325
- "R/P1D": {
5326
- name: "Daily"
5355
+ 'R/P1D': {
5356
+ name: 'Daily'
5327
5357
  },
5328
- "R/P2W": {
5329
- name: "Biweekly"
5358
+ 'R/P2W': {
5359
+ name: 'Biweekly'
5330
5360
  },
5331
- "R/P6M": {
5332
- name: "Semiannual"
5361
+ 'R/P6M': {
5362
+ name: 'Semiannual'
5333
5363
  },
5334
- "R/P2Y": {
5335
- name: "Biennial"
5364
+ 'R/P2Y': {
5365
+ name: 'Biennial'
5336
5366
  },
5337
- "R/P3Y": {
5338
- name: "Triennial"
5367
+ 'R/P3Y': {
5368
+ name: 'Triennial'
5339
5369
  },
5340
- "R/P0.33W": {
5341
- name: "Three times a week"
5370
+ 'R/P0.33W': {
5371
+ name: 'Three times a week'
5342
5372
  },
5343
- "R/P0.33M": {
5344
- name: "Three times a month"
5373
+ 'R/P0.33M': {
5374
+ name: 'Three times a month'
5345
5375
  },
5346
- "R/PT1S": {
5347
- name: "Continuously updated"
5376
+ 'R/PT1S': {
5377
+ name: 'Continuously updated'
5348
5378
  },
5349
- "R/P1M": {
5350
- name: "Monthly"
5379
+ 'R/P1M': {
5380
+ name: 'Monthly'
5351
5381
  },
5352
- "R/P3M": {
5353
- name: "Quarterly"
5382
+ 'R/P3M': {
5383
+ name: 'Quarterly'
5354
5384
  },
5355
- "R/P0.5M": {
5356
- name: "Semimonthly"
5385
+ 'R/P0.5M': {
5386
+ name: 'Semimonthly'
5357
5387
  },
5358
- "R/P4M": {
5359
- name: "Three times a year"
5388
+ 'R/P4M': {
5389
+ name: 'Three times a year'
5360
5390
  },
5361
- "R/P1W": {
5362
- name: "Weekly"
5391
+ 'R/P1W': {
5392
+ name: 'Weekly'
5363
5393
  },
5364
- "R/PT1H": {
5365
- name: "Hourly"
5394
+ 'R/PT1H': {
5395
+ name: 'Hourly'
5366
5396
  },
5367
5397
  irregular: {
5368
- name: "Irregular"
5398
+ name: 'Irregular'
5369
5399
  }
5370
5400
  };
5371
5401
 
@@ -5374,7 +5404,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5374
5404
  modified: (data)=>{
5375
5405
  return [
5376
5406
  {
5377
- label: "Modified",
5407
+ label: 'Modified',
5378
5408
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5379
5409
  date: data
5380
5410
  })
@@ -5384,7 +5414,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5384
5414
  issued: (data)=>{
5385
5415
  return [
5386
5416
  {
5387
- label: "Issued",
5417
+ label: 'Issued',
5388
5418
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5389
5419
  date: data
5390
5420
  })
@@ -5394,7 +5424,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5394
5424
  accrualPeriodicity: (data)=>{
5395
5425
  return [
5396
5426
  {
5397
- label: "Frequency",
5427
+ label: 'Frequency',
5398
5428
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
5399
5429
  }
5400
5430
  ];
@@ -5402,7 +5432,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5402
5432
  publisher: (data)=>{
5403
5433
  if (data.data && data.data.name) return [
5404
5434
  {
5405
- label: "Publisher",
5435
+ label: 'Publisher',
5406
5436
  value: data.data.name
5407
5437
  }
5408
5438
  ];
@@ -5411,7 +5441,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5411
5441
  identifier: (data)=>{
5412
5442
  return [
5413
5443
  {
5414
- label: "Identifier",
5444
+ label: 'Identifier',
5415
5445
  value: data
5416
5446
  }
5417
5447
  ];
@@ -5419,11 +5449,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5419
5449
  contactPoint: (data)=>{
5420
5450
  let rows = [];
5421
5451
  if (data.fn) rows.push({
5422
- label: "Contact",
5452
+ label: 'Contact',
5423
5453
  value: data.fn
5424
5454
  });
5425
5455
  if (data.hasEmail) rows.push({
5426
- label: "Contact Email",
5456
+ label: 'Contact Email',
5427
5457
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5428
5458
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
5429
5459
  children: data.hasEmail.replace("mailto:", "")
@@ -5434,7 +5464,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5434
5464
  bureauCode: (data)=>{
5435
5465
  if (data.length) return [
5436
5466
  {
5437
- label: "Bureau Code",
5467
+ label: 'Bureau Code',
5438
5468
  value: data[0]
5439
5469
  }
5440
5470
  ];
@@ -5442,7 +5472,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5442
5472
  programCode: (data)=>{
5443
5473
  if (data.length) return [
5444
5474
  {
5445
- label: "Program Code",
5475
+ label: 'Program Code',
5446
5476
  value: data[0]
5447
5477
  }
5448
5478
  ];
@@ -5450,13 +5480,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5450
5480
  theme: (data)=>{
5451
5481
  return [
5452
5482
  {
5453
- label: "Category",
5483
+ label: 'Category',
5454
5484
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5455
5485
  to: `/datasets?theme[]=${theme.data}`,
5456
5486
  children: theme.data
5457
5487
  }, theme.data)).reduce((prev, curr)=>[
5458
5488
  prev,
5459
- ", ",
5489
+ ', ',
5460
5490
  curr
5461
5491
  ])
5462
5492
  }
@@ -5465,13 +5495,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5465
5495
  keyword: (data)=>{
5466
5496
  return [
5467
5497
  {
5468
- label: "Tags",
5498
+ label: 'Tags',
5469
5499
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5470
5500
  to: `/datasets?keyword[]=${keyword.data}`,
5471
5501
  children: keyword.data
5472
5502
  }, keyword.data)).reduce((prev, curr)=>[
5473
5503
  prev,
5474
- ", ",
5504
+ ', ',
5475
5505
  curr
5476
5506
  ])
5477
5507
  }
@@ -5480,7 +5510,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5480
5510
  license: (data)=>{
5481
5511
  return [
5482
5512
  {
5483
- label: "License",
5513
+ label: 'License',
5484
5514
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5485
5515
  href: data,
5486
5516
  children: data
@@ -5491,7 +5521,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5491
5521
  accessLevel: (data)=>{
5492
5522
  return [
5493
5523
  {
5494
- label: "Public Access Level",
5524
+ label: 'Public Access Level',
5495
5525
  value: data
5496
5526
  }
5497
5527
  ];
@@ -5499,7 +5529,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5499
5529
  temporal: (data)=>{
5500
5530
  return [
5501
5531
  {
5502
- label: "Temporal Coverage",
5532
+ label: 'Temporal Coverage',
5503
5533
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
5504
5534
  className: "dc-c-word-break--all",
5505
5535
  children: data
@@ -5510,7 +5540,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5510
5540
  spatial: (data)=>{
5511
5541
  return [
5512
5542
  {
5513
- label: "Spacial/Geographical Coverage",
5543
+ label: 'Spacial/Geographical Coverage',
5514
5544
  value: data
5515
5545
  }
5516
5546
  ];
@@ -5518,7 +5548,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5518
5548
  references: (data)=>{
5519
5549
  return [
5520
5550
  {
5521
- label: "Related Documents",
5551
+ label: 'Related Documents',
5522
5552
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5523
5553
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
5524
5554
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -5556,7 +5586,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5556
5586
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
5557
5587
  const { data: resource } = (0, $hgUW1$useQuery)({
5558
5588
  queryKey: [
5559
- "resource-information",
5589
+ 'resource-information',
5560
5590
  distribution.identifier
5561
5591
  ],
5562
5592
  queryFn: ()=>(0, $hgUW1$axios).get(`${rootUrl}/datastore/query/${distribution.identifier}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({
@@ -5583,7 +5613,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5583
5613
  }),
5584
5614
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5585
5615
  className: "ds-u-font-weight--bold",
5586
- children: resource?.count ? Number(resource.count).toLocaleString() : ""
5616
+ children: resource?.count ? Number(resource.count).toLocaleString() : ''
5587
5617
  })
5588
5618
  ]
5589
5619
  }),
@@ -5651,8 +5681,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5651
5681
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
5652
5682
  href: dist.data.downloadURL,
5653
5683
  style: {
5654
- order: sm ? "1" : "0",
5655
- width: sm ? "100%" : "auto"
5684
+ order: sm ? '1' : '0',
5685
+ width: sm ? '100%' : 'auto'
5656
5686
  },
5657
5687
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
5658
5688
  className: "ds-c-button",
@@ -5665,7 +5695,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5665
5695
  })
5666
5696
  }),
5667
5697
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5668
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
5698
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5669
5699
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5670
5700
  className: "dc-c-metadata-description ds-u-margin--0",
5671
5701
  dangerouslySetInnerHTML: {
@@ -5739,7 +5769,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5739
5769
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
5740
5770
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
5741
5771
  children: [
5742
- md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5772
+ md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5743
5773
  component: "th",
5744
5774
  className: "ds-u-font-weight--bold",
5745
5775
  children: [
@@ -5751,8 +5781,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5751
5781
  ariaLabel: r.label,
5752
5782
  // @ts-ignore
5753
5783
  style: {
5754
- border: "none",
5755
- background: "none"
5784
+ border: 'none',
5785
+ background: 'none'
5756
5786
  },
5757
5787
  maxWidth: "400px",
5758
5788
  placement: "auto",
@@ -5811,10 +5841,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
5811
5841
  href: apiUrl,
5812
5842
  children: [
5813
5843
  "View API",
5814
- " ",
5844
+ ' ',
5815
5845
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5816
5846
  style: {
5817
- whiteSpace: "nowrap"
5847
+ whiteSpace: 'nowrap'
5818
5848
  },
5819
5849
  children: [
5820
5850
  "specification ",
@@ -5855,20 +5885,20 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
5855
5885
 
5856
5886
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
5857
5887
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
5858
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
5888
+ const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
5859
5889
  const mobile = (0, $hgUW1$useMediaQuery)({
5860
5890
  minWidth: 0,
5861
5891
  maxWidth: 544
5862
5892
  });
5863
5893
  const sortElement = (isSorted)=>{
5864
- if (isSorted === "asc") return "dc-c-sort--asc";
5865
- if (isSorted === "desc") return "dc-c-sort--desc";
5866
- return "dc-c-sort--default";
5894
+ if (isSorted === 'asc') return 'dc-c-sort--asc';
5895
+ if (isSorted === 'desc') return 'dc-c-sort--desc';
5896
+ return 'dc-c-sort--default';
5867
5897
  };
5868
5898
  const table = (0, $hgUW1$useReactTable)({
5869
5899
  data: tableData,
5870
5900
  columns: tableColumns,
5871
- columnResizeMode: "onChange",
5901
+ columnResizeMode: 'onChange',
5872
5902
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
5873
5903
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
5874
5904
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -5887,49 +5917,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5887
5917
  });
5888
5918
  const sortOptions = [
5889
5919
  {
5890
- value: "default",
5891
- label: "No Sort"
5920
+ value: 'default',
5921
+ label: 'No Sort'
5892
5922
  },
5893
5923
  {
5894
- value: "titleasc",
5895
- label: "Title A-Z"
5924
+ value: 'titleasc',
5925
+ label: 'Title A-Z'
5896
5926
  },
5897
5927
  {
5898
- value: "titledesc",
5899
- label: "Title Z-A"
5928
+ value: 'titledesc',
5929
+ label: 'Title Z-A'
5900
5930
  },
5901
5931
  {
5902
- value: "typeasc",
5903
- label: "Type A-Z"
5932
+ value: 'typeasc',
5933
+ label: 'Type A-Z'
5904
5934
  },
5905
5935
  {
5906
- value: "typedesc",
5907
- label: "Type Z-A"
5936
+ value: 'typedesc',
5937
+ label: 'Type Z-A'
5908
5938
  }
5909
5939
  ];
5910
5940
  const sortStatesLookup = {
5911
5941
  default: [],
5912
5942
  titleasc: [
5913
5943
  {
5914
- id: "titleResizable",
5944
+ id: 'titleResizable',
5915
5945
  desc: false
5916
5946
  }
5917
5947
  ],
5918
5948
  titledesc: [
5919
5949
  {
5920
- id: "titleResizable",
5950
+ id: 'titleResizable',
5921
5951
  desc: true
5922
5952
  }
5923
5953
  ],
5924
5954
  typeasc: [
5925
5955
  {
5926
- id: "type",
5956
+ id: 'type',
5927
5957
  desc: false
5928
5958
  }
5929
5959
  ],
5930
5960
  typedesc: [
5931
5961
  {
5932
- id: "type",
5962
+ id: 'type',
5933
5963
  desc: true
5934
5964
  }
5935
5965
  ]
@@ -5957,7 +5987,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5957
5987
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
5958
5988
  className: "dc-c-datatable",
5959
5989
  style: {
5960
- width: "100%"
5990
+ width: '100%'
5961
5991
  },
5962
5992
  stackable: true,
5963
5993
  children: [
@@ -5970,16 +6000,16 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5970
6000
  header: header,
5971
6001
  setAriaLiveFeedback: setAriaLiveFeedback,
5972
6002
  sortElement: sortElement,
5973
- id: "dataDictionary_" + header.id
6003
+ id: 'dataDictionary_' + header.id
5974
6004
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5975
6005
  key: header.id,
5976
6006
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
5977
- id: "dataDictionary_" + header.id,
6007
+ id: 'dataDictionary_' + header.id,
5978
6008
  children: [
5979
6009
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
5980
- header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
6010
+ header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5981
6011
  onClick: header.column.getToggleSortingHandler(),
5982
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
6012
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
5983
6013
  "aria-label": `${header.column.columnDef.header} sort order`
5984
6014
  })
5985
6015
  ]
@@ -5994,12 +6024,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5994
6024
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
5995
6025
  key: cell.id,
5996
6026
  style: {
5997
- maxWidth: mobile ? "100%" : cell.column.getSize(),
5998
- whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
6027
+ maxWidth: mobile ? '100%' : cell.column.getSize(),
6028
+ whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
5999
6029
  },
6000
- className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
6001
- headers: "dataDictionary_" + cell.column.id,
6002
- stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
6030
+ className: `${cell.column.id === 'titleResizable' ? 'ds-u-word-break' : ''}`,
6031
+ headers: 'dataDictionary_' + cell.column.id,
6032
+ stackedTitle: cell.column.id === 'titleResizable' ? 'Title' : cell.column.columnDef.header,
6003
6033
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
6004
6034
  });
6005
6035
  })
@@ -6028,7 +6058,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6028
6058
  table.setPageIndex(page - 1);
6029
6059
  },
6030
6060
  renderHref: (page)=>`/page=${page}`
6031
- }) : ""
6061
+ }) : ''
6032
6062
  ]
6033
6063
  });
6034
6064
  };
@@ -6038,17 +6068,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
6038
6068
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
6039
6069
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6040
6070
  const tableColumns = [
6041
- columnHelper.accessor("name", {
6042
- header: "Name"
6071
+ columnHelper.accessor('name', {
6072
+ header: 'Name'
6043
6073
  }),
6044
- columnHelper.accessor("title", {
6045
- header: "Title"
6074
+ columnHelper.accessor('title', {
6075
+ header: 'Title'
6046
6076
  }),
6047
- columnHelper.accessor("type", {
6048
- header: "Type"
6077
+ columnHelper.accessor('type', {
6078
+ header: 'Type'
6049
6079
  }),
6050
- columnHelper.accessor("format", {
6051
- header: "Format"
6080
+ columnHelper.accessor('format', {
6081
+ header: 'Format'
6052
6082
  })
6053
6083
  ];
6054
6084
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -6092,7 +6122,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6092
6122
  });
6093
6123
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6094
6124
  const tableColumns = [
6095
- columnHelper.accessor("titleResizable", {
6125
+ columnHelper.accessor('titleResizable', {
6096
6126
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6097
6127
  className: "dc-c-tooltip-width-override",
6098
6128
  children: [
@@ -6101,8 +6131,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6101
6131
  title: "Title represents the column headers of the data file",
6102
6132
  // @ts-ignore
6103
6133
  style: {
6104
- border: "none",
6105
- background: "none"
6134
+ border: 'none',
6135
+ background: 'none'
6106
6136
  },
6107
6137
  maxWidth: "400px",
6108
6138
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -6112,48 +6142,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6112
6142
  size: 300,
6113
6143
  minSize: 132
6114
6144
  }),
6115
- columnHelper.accessor("description", {
6116
- header: "Description",
6145
+ columnHelper.accessor('description', {
6146
+ header: 'Description',
6117
6147
  minSize: 600
6118
6148
  }),
6119
- columnHelper.accessor("type", {
6120
- header: "Type",
6149
+ columnHelper.accessor('type', {
6150
+ header: 'Type',
6121
6151
  size: 150,
6122
6152
  enableResizing: false
6123
6153
  })
6124
6154
  ];
6125
6155
  const typeOptions = [
6126
6156
  {
6127
- value: "all",
6128
- label: "All Types"
6157
+ value: 'all',
6158
+ label: 'All Types'
6129
6159
  },
6130
6160
  {
6131
- value: "string",
6132
- label: "String"
6161
+ value: 'string',
6162
+ label: 'String'
6133
6163
  },
6134
6164
  {
6135
- value: "date",
6136
- label: "Date"
6165
+ value: 'date',
6166
+ label: 'Date'
6137
6167
  },
6138
6168
  {
6139
- value: "datetime",
6140
- label: "Datetime"
6169
+ value: 'datetime',
6170
+ label: 'Datetime'
6141
6171
  },
6142
6172
  {
6143
- value: "year",
6144
- label: "Year"
6173
+ value: 'year',
6174
+ label: 'Year'
6145
6175
  },
6146
6176
  {
6147
- value: "integer",
6148
- label: "Integer"
6177
+ value: 'integer',
6178
+ label: 'Integer'
6149
6179
  },
6150
6180
  {
6151
- value: "number",
6152
- label: "Number"
6181
+ value: 'number',
6182
+ label: 'Number'
6153
6183
  },
6154
6184
  {
6155
- value: "boolean",
6156
- label: "Boolean"
6185
+ value: 'boolean',
6186
+ label: 'Boolean'
6157
6187
  }
6158
6188
  ];
6159
6189
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -6260,7 +6290,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
6260
6290
  href: datasetDictionaryEndpoint + "/csv",
6261
6291
  className: "ds-c-button",
6262
6292
  style: {
6263
- width: "100%"
6293
+ width: '100%'
6264
6294
  },
6265
6295
  children: [
6266
6296
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -6317,7 +6347,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6317
6347
  const [description, setDescription] = (0, $hgUW1$useState)("");
6318
6348
  if (!distribution && !dataset?.identifier) return null;
6319
6349
  (0, $hgUW1$useEffect)(()=>{
6320
- let newDescription = "";
6350
+ let newDescription = '';
6321
6351
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
6322
6352
  else {
6323
6353
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -6332,7 +6362,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6332
6362
  customDescription
6333
6363
  ]);
6334
6364
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6335
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
6365
+ className: 'ds-u-measure--wide ds-u-margin-bottom--7',
6336
6366
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6337
6367
  className: "ds-u-margin-top--0 dc-c-metadata-description",
6338
6368
  children: typeof description === "string" ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6356,7 +6386,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6356
6386
  ],
6357
6387
  queryFn: ()=>{
6358
6388
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
6359
- arrayFormat: "comma",
6389
+ arrayFormat: 'comma',
6360
6390
  encode: false
6361
6391
  })}`).then((res)=>res.json());
6362
6392
  }
@@ -6375,7 +6405,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6375
6405
  conditions: []
6376
6406
  };
6377
6407
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6378
- const title = dataset.title ? dataset.title : "";
6408
+ const title = dataset.title ? dataset.title : '';
6379
6409
  const metadataMapping = {
6380
6410
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
6381
6411
  ...customMetadataMapping
@@ -6383,7 +6413,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6383
6413
  let distribution = {};
6384
6414
  let distributions = dataset.distribution ? dataset.distribution : [];
6385
6415
  if (distributions.length) distribution = distributions[0];
6386
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6416
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6387
6417
  ...options,
6388
6418
  limit: defaultPageSize
6389
6419
  }, {
@@ -6397,7 +6427,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6397
6427
  }) : null;
6398
6428
  (0, $hgUW1$useEffect)(()=>{
6399
6429
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6400
- if (localFileFormat === "csv") resource.setResource(distribution.identifier);
6430
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6401
6431
  }, [
6402
6432
  distribution
6403
6433
  ]);
@@ -6452,26 +6482,26 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6452
6482
  distribution,
6453
6483
  window.location.hash
6454
6484
  ]);
6455
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6485
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6456
6486
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6457
6487
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
6458
6488
  content: notFoundContent,
6459
6489
  siteUrl: rootUrl
6460
6490
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6461
- className: "ds-l-container",
6491
+ className: 'ds-l-container',
6462
6492
  children: [
6463
6493
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6464
- className: "ds-l-row",
6494
+ className: 'ds-l-row',
6465
6495
  children: [
6466
6496
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6467
- className: "ds-l-md-col--9",
6497
+ className: 'ds-l-md-col--9',
6468
6498
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6469
6499
  className: "ds-text-heading--3xl",
6470
6500
  children: title
6471
6501
  })
6472
6502
  }),
6473
6503
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6474
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6504
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6475
6505
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6476
6506
  className: "ds-u-margin--0",
6477
6507
  children: [
@@ -6483,7 +6513,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6483
6513
  })
6484
6514
  }),
6485
6515
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6486
- className: "ds-l-md-col--9",
6516
+ className: 'ds-l-md-col--9',
6487
6517
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6488
6518
  distribution: distribution,
6489
6519
  dataset: dataset,
@@ -6495,9 +6525,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6495
6525
  ]
6496
6526
  }),
6497
6527
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6498
- className: "ds-l-row",
6528
+ className: 'ds-l-row',
6499
6529
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6500
- className: "ds-l-md-col--12 dc-dataset",
6530
+ className: 'ds-l-md-col--12 dc-dataset',
6501
6531
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
6502
6532
  onChange: (selectedId, prevSelectedId)=>{
6503
6533
  setSelectedTab(selectedId);
@@ -6505,7 +6535,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6505
6535
  selectedId: selectedTab,
6506
6536
  children: [
6507
6537
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6508
- id: "data-table",
6538
+ id: 'data-table',
6509
6539
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6510
6540
  className: "ds-u-color--primary",
6511
6541
  children: [
@@ -6515,7 +6545,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6515
6545
  "Data Table"
6516
6546
  ]
6517
6547
  }),
6518
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6548
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6519
6549
  children: (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6520
6550
  value: {
6521
6551
  id: id,
@@ -6532,7 +6562,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6532
6562
  })
6533
6563
  }),
6534
6564
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6535
- id: "overview",
6565
+ id: 'overview',
6536
6566
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6537
6567
  className: "ds-u-color--primary",
6538
6568
  children: [
@@ -6542,7 +6572,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6542
6572
  "Overview"
6543
6573
  ]
6544
6574
  }),
6545
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6575
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6546
6576
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
6547
6577
  resource: resource,
6548
6578
  dataset: dataset,
@@ -6552,7 +6582,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6552
6582
  })
6553
6583
  }),
6554
6584
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6555
- id: "data-dictionary",
6585
+ id: 'data-dictionary',
6556
6586
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6557
6587
  className: "ds-u-color--primary",
6558
6588
  children: [
@@ -6562,7 +6592,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6562
6592
  "Data Dictionary"
6563
6593
  ]
6564
6594
  }),
6565
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6595
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6566
6596
  children: displayDataDictionaryTab ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
6567
6597
  datasetSitewideDictionary: datasetSitewideDictionary,
6568
6598
  datasetDictionaryEndpoint: distribution.data.describedBy,
@@ -6573,7 +6603,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6573
6603
  })
6574
6604
  }),
6575
6605
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6576
- id: "api",
6606
+ id: 'api',
6577
6607
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6578
6608
  className: "ds-u-color--primary",
6579
6609
  children: [
@@ -6583,7 +6613,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6583
6613
  "API"
6584
6614
  ]
6585
6615
  }),
6586
- className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6616
+ className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6587
6617
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
6588
6618
  id: id,
6589
6619
  rootUrl: rootUrl,
@@ -6620,13 +6650,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6620
6650
  });
6621
6651
  const menu = (0, $hgUW1$useRef)(null);
6622
6652
  function closeMobileMenu() {
6623
- const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
6653
+ const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
6624
6654
  if (!mobileMenuButtonElement) return;
6625
6655
  mobileMenuButtonElement.focus();
6626
6656
  }
6627
6657
  // Close mobile menu with escape.
6628
6658
  function handleMenuClose(event) {
6629
- if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
6659
+ if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
6630
6660
  }
6631
6661
  function handleClick(event) {
6632
6662
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -6661,7 +6691,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6661
6691
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
6662
6692
  const firstEl = focusableEls[0];
6663
6693
  const lastEl = focusableEls[focusableEls.length - 1];
6664
- if (event.key === "Tab") {
6694
+ if (event.key === 'Tab') {
6665
6695
  if (event.shiftKey && document.activeElement === firstEl) {
6666
6696
  lastEl?.focus();
6667
6697
  event.preventDefault();
@@ -6673,15 +6703,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6673
6703
  }
6674
6704
  };
6675
6705
  (0, $hgUW1$useEffect)(()=>{
6676
- document.addEventListener("keyup", handleMenuClose);
6677
- document.addEventListener("mousedown", handleClick);
6706
+ document.addEventListener('keyup', handleMenuClose);
6707
+ document.addEventListener('mousedown', handleClick);
6678
6708
  if (mobileMenuOpen) handleFocusIn();
6679
6709
  else closeMobileMenu();
6680
- if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
6710
+ if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
6681
6711
  return ()=>{
6682
- document.removeEventListener("keyup", handleMenuClose);
6683
- document.addEventListener("mousedown", handleClick);
6684
- if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
6712
+ document.removeEventListener('keyup', handleMenuClose);
6713
+ document.addEventListener('mousedown', handleClick);
6714
+ if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
6685
6715
  };
6686
6716
  }, [
6687
6717
  mobileMenuOpen
@@ -6696,7 +6726,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6696
6726
  },
6697
6727
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
6698
6728
  "aria-label": "Site header",
6699
- className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
6729
+ className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
6700
6730
  children: [
6701
6731
  topNav && topNav,
6702
6732
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6735,7 +6765,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6735
6765
  onClick: clickHandler ? clickHandler : undefined,
6736
6766
  children: [
6737
6767
  innerHtml,
6738
- link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6768
+ link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6739
6769
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
6740
6770
  })
6741
6771
  ]
@@ -6745,7 +6775,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6745
6775
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
6746
6776
 
6747
6777
 
6748
- 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", {
6778
+ 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", {
6749
6779
  children: [
6750
6780
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6751
6781
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -6833,14 +6863,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6833
6863
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
6834
6864
  className: "ds-u-font-size--sm",
6835
6865
  children: footerAdditionalResourcesLinks.filter((link)=>{
6836
- const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
6866
+ const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
6837
6867
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
6838
6868
  }).map((link)=>{
6839
6869
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
6840
6870
  className: "ds-u-margin-bottom--1",
6841
6871
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
6842
6872
  href: link.url,
6843
- ["data-" + link.dataTag.name]: link.dataTag.value,
6873
+ ['data-' + link.dataTag.name]: link.dataTag.value,
6844
6874
  onClick: link.onClick,
6845
6875
  children: link.label
6846
6876
  })
@@ -6940,7 +6970,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6940
6970
  children: [
6941
6971
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6942
6972
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
6943
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
6973
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
6944
6974
  }),
6945
6975
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6946
6976
  transform: "translate(160 256)",
@@ -6993,7 +7023,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6993
7023
  children: [
6994
7024
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6995
7025
  id: "svg-inline--fa-title-4z03ITiPPTVF",
6996
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
7026
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
6997
7027
  }),
6998
7028
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6999
7029
  transform: "translate(256 256)",
@@ -7046,7 +7076,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7046
7076
  children: [
7047
7077
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7048
7078
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
7049
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
7079
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
7050
7080
  }),
7051
7081
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7052
7082
  transform: "translate(224 256)",
@@ -7098,7 +7128,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7098
7128
  children: [
7099
7129
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7100
7130
  id: "svg-inline--fa-title-youtube",
7101
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
7131
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
7102
7132
  }),
7103
7133
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
7104
7134
  fill: "currentColor",
@@ -7133,7 +7163,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7133
7163
  className: "ds-u-margin-right--2",
7134
7164
  children: [
7135
7165
  link.label,
7136
- link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7166
+ link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7137
7167
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
7138
7168
  })
7139
7169
  ]
@@ -7203,26 +7233,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7203
7233
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
7204
7234
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
7205
7235
  stackable: true,
7206
- className: "ds-c-table",
7236
+ className: 'ds-c-table',
7207
7237
  children: [
7208
7238
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
7209
7239
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
7210
7240
  children: [
7211
7241
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7212
- id: "application",
7213
- headers: "Application",
7242
+ id: 'application',
7243
+ headers: 'Application',
7214
7244
  children: "Application"
7215
- }, "Application"),
7245
+ }, 'Application'),
7216
7246
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7217
- id: "notes",
7218
- headers: "Notes",
7247
+ id: 'notes',
7248
+ headers: 'Notes',
7219
7249
  children: "Notes"
7220
- }, "Notes"),
7250
+ }, 'Notes'),
7221
7251
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7222
- id: "links",
7223
- headers: "Links",
7252
+ id: 'links',
7253
+ headers: 'Links',
7224
7254
  children: "Links"
7225
- }, "Links")
7255
+ }, 'Links')
7226
7256
  ]
7227
7257
  })
7228
7258
  }),
@@ -7232,19 +7262,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7232
7262
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7233
7263
  id: d.id,
7234
7264
  stackedTitle: "Application",
7235
- headers: "Application",
7265
+ headers: 'Application',
7236
7266
  children: d.application
7237
7267
  }, d.id),
7238
7268
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7239
7269
  id: d.id,
7240
7270
  stackedTitle: "Notes",
7241
- headers: "Notes",
7271
+ headers: 'Notes',
7242
7272
  children: d.notes
7243
7273
  }, `${d.id}-notes`),
7244
7274
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7245
7275
  id: d.id,
7246
7276
  stackedTitle: "Links",
7247
- headers: "Links",
7277
+ headers: 'Links',
7248
7278
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
7249
7279
  className: "dkan-newtab",
7250
7280
  href: d.link,
@@ -7272,44 +7302,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
7272
7302
 
7273
7303
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
7274
7304
  {
7275
- id: "excel",
7276
- application: "Microsoft Excel",
7277
- notes: "Official size limitations for Microsoft Excel",
7278
- 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",
7279
- linkText: "Excel Specifications and Limits",
7280
- screenReaderOnlyText: "on microsoft.com"
7305
+ id: 'excel',
7306
+ application: 'Microsoft Excel',
7307
+ notes: 'Official size limitations for Microsoft Excel',
7308
+ 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',
7309
+ linkText: 'Excel Specifications and Limits',
7310
+ screenReaderOnlyText: 'on microsoft.com'
7281
7311
  },
7282
7312
  {
7283
- id: "access",
7284
- application: "Microsoft Access",
7285
- notes: "Official size limitations for Microsoft Access",
7286
- link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
7287
- linkText: "Access 2016 Specifications",
7288
- screenReaderOnlyText: "on microsoft.com"
7313
+ id: 'access',
7314
+ application: 'Microsoft Access',
7315
+ notes: 'Official size limitations for Microsoft Access',
7316
+ link: 'https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us',
7317
+ linkText: 'Access 2016 Specifications',
7318
+ screenReaderOnlyText: 'on microsoft.com'
7289
7319
  },
7290
7320
  {
7291
- id: "oracle-sql-developer",
7292
- application: "Oracle SQL Developer",
7293
- notes: "Oracle SQL Developer tool",
7294
- link: "https://www.oracle.com/database/sqldeveloper/",
7295
- linkText: "Oracle SQL Developer Overview",
7296
- screenReaderOnlyText: "on oracle.com"
7321
+ id: 'oracle-sql-developer',
7322
+ application: 'Oracle SQL Developer',
7323
+ notes: 'Oracle SQL Developer tool',
7324
+ link: 'https://www.oracle.com/database/sqldeveloper/',
7325
+ linkText: 'Oracle SQL Developer Overview',
7326
+ screenReaderOnlyText: 'on oracle.com'
7297
7327
  },
7298
7328
  {
7299
- id: "oracle-database",
7300
- application: "Oracle Database",
7301
- notes: "Oracle Database official size limitations",
7302
- link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
7303
- linkText: "Oracle Physical Database Limits",
7304
- screenReaderOnlyText: "on oracle.com"
7329
+ id: 'oracle-database',
7330
+ application: 'Oracle Database',
7331
+ notes: 'Oracle Database official size limitations',
7332
+ link: 'https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915',
7333
+ linkText: 'Oracle Physical Database Limits',
7334
+ screenReaderOnlyText: 'on oracle.com'
7305
7335
  },
7306
7336
  {
7307
- id: "oracle-sql-client-tools",
7308
- application: "Oracle SQL Client Tools",
7309
- notes: "Oracle SQL Client Tools",
7310
- link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
7311
- linkText: "Oracle SQL Client",
7312
- screenReaderOnlyText: "on oracle.com"
7337
+ id: 'oracle-sql-client-tools',
7338
+ application: 'Oracle SQL Client Tools',
7339
+ notes: 'Oracle SQL Client Tools',
7340
+ link: 'https://www.oracle.com/database/technologies/oracle-database-software-downloads.html',
7341
+ linkText: 'Oracle SQL Client',
7342
+ screenReaderOnlyText: 'on oracle.com'
7313
7343
  }
7314
7344
  ];
7315
7345
 
@@ -7337,7 +7367,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7337
7367
  }),
7338
7368
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
7339
7369
  heading: "Notice",
7340
- className: "ds-u-margin-top--6",
7370
+ className: 'ds-u-margin-top--6',
7341
7371
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
7342
7372
  className: "ds-c-alert__text",
7343
7373
  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."
@@ -7346,16 +7376,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7346
7376
  ]
7347
7377
  }),
7348
7378
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7349
- className: "ds-u-margin-top--4 ds-l-row",
7379
+ className: 'ds-u-margin-top--4 ds-l-row',
7350
7380
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7351
- className: "ds-l-col--12",
7381
+ className: 'ds-l-col--12',
7352
7382
  children: [
7353
7383
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
7354
7384
  className: "ds-text-heading--2xl ds-text-heading--2xl",
7355
7385
  children: "Documentation by Application"
7356
7386
  }),
7357
7387
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7358
- className: "ds-u-margin-top--4",
7388
+ className: 'ds-u-margin-top--4',
7359
7389
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
7360
7390
  data: documentationList
7361
7391
  })
@@ -7383,7 +7413,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7383
7413
  const options = {
7384
7414
  conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
7385
7415
  property: column,
7386
- operator: operator === "is" ? "=" : operator === "is not" ? "<>" : operator === "or" ? "in" : operator,
7416
+ operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
7387
7417
  ...rest
7388
7418
  })) : []
7389
7419
  };
@@ -7391,13 +7421,13 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7391
7421
  let distribution = {};
7392
7422
  let distributions = dataset.distribution ? dataset.distribution : [];
7393
7423
  if (distributions.length) distribution = distributions[distributionIndex];
7394
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7424
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7395
7425
  ...options,
7396
7426
  limit: defaultPageSize
7397
7427
  });
7398
7428
  (0, $hgUW1$useEffect)(()=>{
7399
7429
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
7400
- if (localFileFormat === "csv") resource.setResource(distribution.identifier);
7430
+ if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
7401
7431
  }, [
7402
7432
  distribution
7403
7433
  ]);
@@ -7447,7 +7477,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7447
7477
 
7448
7478
 
7449
7479
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
7450
- if (schema[id].fields[condition.property].mysql_type === "date") {
7480
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
7451
7481
  const newDate = new Date(condition.value);
7452
7482
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
7453
7483
  }
@@ -7464,9 +7494,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7464
7494
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
7465
7495
  (0, $hgUW1$useEffect)(()=>{
7466
7496
  if (property !== condition.property) {
7467
- if (property) update(index, "property", property);
7468
- else update(index, "property", "");
7469
- if (schema[id].fields[condition.property].mysql_type === "date") {
7497
+ if (property) update(index, 'property', property);
7498
+ else update(index, 'property', '');
7499
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
7470
7500
  if (!value) setValue(startDate.toJSON().slice(0, 10));
7471
7501
  }
7472
7502
  }
@@ -7480,16 +7510,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7480
7510
  ]);
7481
7511
  (0, $hgUW1$useEffect)(()=>{
7482
7512
  if (operator !== condition.operator) {
7483
- if (operator) update(index, "operator", operator);
7484
- else update(index, "operator", "");
7513
+ if (operator) update(index, 'operator', operator);
7514
+ else update(index, 'operator', '');
7485
7515
  }
7486
7516
  }, [
7487
7517
  operator
7488
7518
  ]);
7489
7519
  (0, $hgUW1$useEffect)(()=>{
7490
7520
  if (value !== condition.value) {
7491
- if (value) update(index, "value", value);
7492
- else update(index, "value", "");
7521
+ if (value) update(index, 'value', value);
7522
+ else update(index, 'value', '');
7493
7523
  }
7494
7524
  }, [
7495
7525
  value
@@ -7513,7 +7543,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7513
7543
  onChange: (e)=>setOperator(e.target.value),
7514
7544
  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"
7515
7545
  }),
7516
- schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7546
+ schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7517
7547
  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",
7518
7548
  children: [
7519
7549
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -7603,12 +7633,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
7603
7633
  className: "ds-u-font-weight--bold",
7604
7634
  children: description
7605
7635
  }),
7606
- " ",
7636
+ ' ',
7607
7637
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7608
7638
  className: "ds-u-font-weight--normal",
7609
7639
  children: operator.label.toUpperCase()
7610
7640
  }),
7611
- " ",
7641
+ ' ',
7612
7642
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7613
7643
  className: "ds-u-color--success",
7614
7644
  children: formattedText
@@ -7635,19 +7665,19 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
7635
7665
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
7636
7666
  let cond = condition;
7637
7667
  delete cond.key;
7638
- if (cond.operator === "=" || cond.operator === "<>") {
7668
+ if (cond.operator === '=' || cond.operator === '<>') {
7639
7669
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7640
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
7670
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
7641
7671
  }
7642
- if (cond.operator.toLowerCase() === "like") {
7672
+ if (cond.operator.toLowerCase() === 'like') {
7643
7673
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7644
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
7674
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
7645
7675
  cond.value = `%${cleanedValue}%`;
7646
7676
  }
7647
- if (cond.operator.toLowerCase() === "in") {
7648
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
7677
+ if (cond.operator.toLowerCase() === 'in') {
7678
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
7649
7679
  }
7650
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
7680
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
7651
7681
  return cond;
7652
7682
  }
7653
7683
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -7667,7 +7697,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7667
7697
  ...queryConditions,
7668
7698
  {
7669
7699
  property: fields[0],
7670
- value: "",
7700
+ value: '',
7671
7701
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
7672
7702
  key: Date.now()
7673
7703
  }
@@ -7707,7 +7737,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7707
7737
  encodeValuesOnly: true,
7708
7738
  addQueryPrefix: true
7709
7739
  });
7710
- window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
7740
+ window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
7711
7741
  };
7712
7742
  const updateCondition = (index, key, value)=>{
7713
7743
  let newConditions = [
@@ -7780,7 +7810,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
7780
7810
 
7781
7811
 
7782
7812
  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 })=>{
7783
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
7813
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
7784
7814
  let apiDocs = (0, $hgUW1$useRef)();
7785
7815
  let distribution = {};
7786
7816
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -7792,7 +7822,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7792
7822
  } : {
7793
7823
  conditions: []
7794
7824
  };
7795
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7825
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7796
7826
  ...options,
7797
7827
  limit: 25
7798
7828
  }, {
@@ -7808,7 +7838,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7808
7838
  }, {
7809
7839
  encode: true
7810
7840
  })}&format=csv`;
7811
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
7841
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
7812
7842
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
7813
7843
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7814
7844
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -7817,7 +7847,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7817
7847
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
7818
7848
  children: [
7819
7849
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7820
- className: "ds-l-md-col--9",
7850
+ className: 'ds-l-md-col--9',
7821
7851
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
7822
7852
  to: `/dataset/${id}`,
7823
7853
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -7828,14 +7858,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7828
7858
  })
7829
7859
  }),
7830
7860
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7831
- className: "ds-l-md-col--9",
7861
+ className: 'ds-l-md-col--9',
7832
7862
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
7833
7863
  className: "ds-text-heading--3xl",
7834
7864
  children: customTitle ? customTitle : pageTitle
7835
7865
  })
7836
7866
  }),
7837
7867
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7838
- className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
7868
+ className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
7839
7869
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
7840
7870
  className: "ds-u-margin--0",
7841
7871
  children: [
@@ -7847,7 +7877,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7847
7877
  })
7848
7878
  }),
7849
7879
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7850
- className: "ds-l-md-col--9",
7880
+ className: 'ds-l-md-col--9',
7851
7881
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
7852
7882
  distribution: distribution,
7853
7883
  dataset: dataset,
@@ -7857,13 +7887,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7857
7887
  })
7858
7888
  }),
7859
7889
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7860
- className: "ds-l-md-col--12",
7890
+ className: 'ds-l-md-col--12',
7861
7891
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
7862
7892
  resource: resource,
7863
7893
  id: distribution.identifier,
7864
7894
  customColumns: customColumns,
7865
7895
  setOffset: resource.setOffset
7866
- }) : ""
7896
+ }) : ''
7867
7897
  }),
7868
7898
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
7869
7899
  value: {
@@ -7874,7 +7904,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7874
7904
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
7875
7905
  },
7876
7906
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7877
- className: "ds-l-md-col--12",
7907
+ className: 'ds-l-md-col--12',
7878
7908
  children: [
7879
7909
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
7880
7910
  includeDensity: true,
@@ -7896,14 +7926,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7896
7926
  ]
7897
7927
  })
7898
7928
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7899
- className: "ds-l-md-col--12",
7929
+ className: 'ds-l-md-col--12',
7900
7930
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
7901
7931
  role: "status",
7902
7932
  "aria-valuetext": "Resource loading"
7903
7933
  })
7904
7934
  }),
7905
7935
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7906
- className: "ds-l-md-col--12",
7936
+ className: 'ds-l-md-col--12',
7907
7937
  ref: apiDocs,
7908
7938
  children: [
7909
7939
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -7912,7 +7942,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7912
7942
  }),
7913
7943
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
7914
7944
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
7915
- docExpansion: "list",
7945
+ docExpansion: 'list',
7916
7946
  defaultModelsExpandDepth: -1
7917
7947
  })
7918
7948
  ]
@@ -7931,7 +7961,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
7931
7961
  const [ready, setReady] = (0, $hgUW1$useState)(false);
7932
7962
  const [error, setError] = (0, $hgUW1$useState)(false);
7933
7963
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
7934
- const distIndex = dist_id === "data" ? 0 : dist_id;
7964
+ const distIndex = dist_id === 'data' ? 0 : dist_id;
7935
7965
  (0, $hgUW1$useEffect)(()=>{
7936
7966
  if (dataset.error) setError(true);
7937
7967
  if (dataset.distribution && dataset.distribution.length) {