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

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,19 +278,7 @@ var $11500a65bd7d9cf1$export$2e2bcd8739ae039 = $11500a65bd7d9cf1$var$HeaderConte
278
278
  const $61ff88fb3f6ee2c8$var$queryClient = new (0, $hgUW1$QueryClient)({
279
279
  defaultOptions: {
280
280
  queries: {
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
281
+ refetchOnWindowFocus: false
294
282
  }
295
283
  }
296
284
  });
@@ -345,8 +333,8 @@ const $844981eac9b63865$export$eccc29c8d0ff408 = (0, $hgUW1$createContext)({
345
333
 
346
334
 
347
335
  const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 4, defaultSort: defaultSort = {
348
- defaultSort: 'modified',
349
- defaultOrder: 'desc'
336
+ defaultSort: "modified",
337
+ defaultOrder: "desc"
350
338
  }, subLinkClasses: subLinkClasses })=>{
351
339
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
352
340
  const [currentResultNumbers, setCurrentResultNumbers] = (0, $hgUW1$useState)({
@@ -366,8 +354,8 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
366
354
  ]);
367
355
  let params = {
368
356
  sort: defaultSort.defaultSort,
369
- ['sort-order']: defaultSort.defaultOrder,
370
- ['page-size']: defaultPageSize
357
+ ["sort-order"]: defaultSort.defaultOrder,
358
+ ["page-size"]: defaultPageSize
371
359
  };
372
360
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
373
361
  queryKey: [
@@ -376,20 +364,14 @@ const $10bc3aae21fc1572$var$DatasetListSubmenu = ({ rootUrl: rootUrl, enablePagi
376
364
  ],
377
365
  queryFn: ()=>{
378
366
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
379
- arrayFormat: 'comma',
367
+ arrayFormat: "comma",
380
368
  encode: false
381
369
  })}`);
382
370
  }
383
371
  });
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
- ]);
391
372
  let submenuItemsCount = 0;
392
373
  if (data) {
374
+ if (data.data.total && totalItems !== data.data.total) setTotalItems(data.data.total);
393
375
  let resultsCount = Object.keys(data.data.results).length;
394
376
  // For the submenu pager, If there are fewer than 4 dataset items, display the dataset item count, otherwise, show "Viewing 4..".
395
377
  submenuItemsCount = resultsCount > defaultPageSize ? defaultPageSize : resultsCount;
@@ -525,11 +507,11 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
525
507
  function handleFocusOut(event) {
526
508
  if (currentMenu && !currentMenu.contains(event.relatedTarget)) setIsExpanded(false);
527
509
  }
528
- document.addEventListener('mousedown', handleClickOutside);
529
- currentMenu?.addEventListener('focusout', handleFocusOut);
510
+ document.addEventListener("mousedown", handleClickOutside);
511
+ currentMenu?.addEventListener("focusout", handleFocusOut);
530
512
  return ()=>{
531
- document.removeEventListener('mousedown', handleClickOutside);
532
- if (currentMenu) currentMenu.removeEventListener('focusout', handleFocusOut);
513
+ document.removeEventListener("mousedown", handleClickOutside);
514
+ if (currentMenu) currentMenu.removeEventListener("focusout", handleFocusOut);
533
515
  };
534
516
  }, [
535
517
  isExpanded
@@ -551,7 +533,7 @@ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, s
551
533
  }
552
534
  }
553
535
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
554
- className: `dkan-c-nav-submenu has-submenu${isExpanded ? ' open' : ''}`,
536
+ className: `dkan-c-nav-submenu has-submenu${isExpanded ? " open" : ""}`,
555
537
  ref: menu,
556
538
  children: [
557
539
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
@@ -587,12 +569,12 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
587
569
  const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
588
570
  const { headingText: headingText = "Dataset Search" } = props;
589
571
  const navigate = (0, $hgUW1$useNavigate)();
590
- const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)('');
572
+ const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
591
573
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
592
574
  function searchForDataset(e) {
593
575
  e.preventDefault();
594
576
  if (window) {
595
- if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
577
+ if (window.location.pathname !== "/datasets") navigate(`/datasets?fulltext=${modalSearchTerm}`);
596
578
  else {
597
579
  window.location.search = `fulltext=${modalSearchTerm}`;
598
580
  setModalSearch(false);
@@ -660,9 +642,9 @@ const $b939b31651e82908$var$HeaderNav = (props)=>{
660
642
  const headerContext = (0, $hgUW1$react).useContext((0, $11500a65bd7d9cf1$export$2e2bcd8739ae039));
661
643
  const { links: links, topNavLinks: topNavLinks, wrapperClasses: wrapperClasses, searchInMobile: searchInMobile } = props;
662
644
  const navMenuOpenClass = `dkan-c-nav-menu--${headerContext.mobileMenuOpen ? "open" : "close"}`;
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 ';
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 ";
666
648
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
667
649
  className: `dkan-c-nav-menu ${wrapperClasses} ${navMenuOpenClass} ${isMobileClass}`,
668
650
  ref: headerContext.menuRef,
@@ -832,8 +814,8 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
832
814
  const { title: title, links: links, mobileMax: mobileMax } = props;
833
815
  const active = (0, $hgUW1$useLocation)().pathname;
834
816
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
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'}`;
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"}`;
837
819
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
838
820
  className: `dkan-c-sidebar-nav ${mobileClass}`,
839
821
  children: [
@@ -847,7 +829,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
847
829
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
848
830
  "aria-haspopup": "true",
849
831
  variation: "ghost",
850
- "aria-expanded": `${menuOpen ? 'true' : 'false'}`,
832
+ "aria-expanded": `${menuOpen ? "true" : "false"}`,
851
833
  onDark: true,
852
834
  onClick: ()=>setMenuOpen(!menuOpen),
853
835
  children: [
@@ -856,7 +838,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
856
838
  children: "Toggle menu"
857
839
  }),
858
840
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ArrowIcon), {
859
- direction: menuOpen ? 'up' : 'down'
841
+ direction: menuOpen ? "up" : "down"
860
842
  })
861
843
  ]
862
844
  })
@@ -865,7 +847,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
865
847
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
866
848
  className: ``,
867
849
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
868
- className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? 'open' : 'close'}`,
850
+ className: `${styleClasses} dkan-c-sidebar-nav-menu dkan-c-sidebar-nav-menu--${menuOpen ? "open" : "close"}`,
869
851
  children: [
870
852
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
871
853
  className: "ds-u-padding--2 ds-u-border-bottom--1 ds-u-border--color-gray-lightest",
@@ -877,7 +859,7 @@ const $953b286f7778640e$var$SidebarNavigation = (props)=>{
877
859
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
878
860
  className: "ds-u-padding-bottom--2",
879
861
  children: links.map(({ url: url, label: label })=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
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' : ''}`,
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" : ""}`,
881
863
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
882
864
  className: "ds-u-display--flex ds-u-padding-y--1",
883
865
  children: [
@@ -912,12 +894,12 @@ const $b0968edc60d7d3a4$var$SidebarPage = (props)=>{
912
894
  query: `(max-width: ${mobileMaxWidth}px)`
913
895
  });
914
896
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
915
- className: `${mobileMax ? "a" : 'ds-l-container'}`,
897
+ className: `${mobileMax ? "a" : "ds-l-container"}`,
916
898
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
917
- className: `${mobileMax ? "a" : 'ds-l-row'}`,
899
+ className: `${mobileMax ? "a" : "ds-l-row"}`,
918
900
  children: [
919
901
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
920
- className: `${mobileMax ? 'a' : "ds-l-col--4"}`,
902
+ className: `${mobileMax ? "a" : "ds-l-col--4"}`,
921
903
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $953b286f7778640e$export$2e2bcd8739ae039), {
922
904
  links: links,
923
905
  title: menuTitle,
@@ -940,9 +922,9 @@ var $b0968edc60d7d3a4$export$2e2bcd8739ae039 = $b0968edc60d7d3a4$var$SidebarPage
940
922
 
941
923
 
942
924
 
943
- const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = 'datasets', searchKey: searchKey = 'fulltext', textfieldLabel: textfieldLabel = 'Search for a dataset', searchButtonText: searchButtonText = 'Search' })=>{
925
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl = "datasets", searchKey: searchKey = "fulltext", textfieldLabel: textfieldLabel = "Search for a dataset", searchButtonText: searchButtonText = "Search" })=>{
944
926
  const navigate = (0, $hgUW1$useNavigate)();
945
- const [searchValue, setSearchValue] = (0, $hgUW1$react).useState('');
927
+ const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
946
928
  function submitHero(e) {
947
929
  e.preventDefault();
948
930
  navigate(`/${searchUrl}?${searchKey}=${searchValue}`);
@@ -969,24 +951,24 @@ const $59a079354baa335c$var$Hero = ({ title: title, description: description, se
969
951
  onSubmit: (e)=>submitHero(e),
970
952
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
971
953
  style: {
972
- position: 'relative'
954
+ position: "relative"
973
955
  },
974
956
  className: "ds-l-row ds-u-align-items--stretch ds-u-margin-y--4 ds-u-flex-wrap--nowrap",
975
957
  children: [
976
958
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
977
959
  className: "ds-u-padding--0 ds-u-margin-right--1",
978
960
  style: {
979
- flex: '1 1 100%',
980
- maxWidth: '100%'
961
+ flex: "1 1 100%",
962
+ maxWidth: "100%"
981
963
  },
982
964
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
983
965
  label: textfieldLabel,
984
966
  labelClassName: "ds-u-visibility--screen-reader",
985
967
  name: "search_text_input",
986
968
  style: {
987
- maxWidth: 'none',
988
- height: '61px',
989
- margin: '0 20px 0 0'
969
+ maxWidth: "none",
970
+ height: "61px",
971
+ margin: "0 20px 0 0"
990
972
  },
991
973
  onChange: (e)=>setSearchValue(e.target.value)
992
974
  })
@@ -1024,14 +1006,14 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
1024
1006
 
1025
1007
 
1026
1008
  const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options = {
1027
- year: 'numeric',
1028
- month: 'long',
1029
- day: 'numeric',
1030
- timeZone: 'UTC'
1009
+ year: "numeric",
1010
+ month: "long",
1011
+ day: "numeric",
1012
+ timeZone: "UTC"
1031
1013
  } })=>{
1032
1014
  const rawDate = new Date(date);
1033
- let modifiedDate = '';
1034
- if (rawDate) modifiedDate = rawDate.toLocaleDateString('en-US', options);
1015
+ let modifiedDate = "";
1016
+ if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
1035
1017
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
1036
1018
  children: modifiedDate
1037
1019
  });
@@ -1045,25 +1027,25 @@ const $c068004d499082cc$var$DatasetListItem = (props)=>{
1045
1027
  minWidth: 1024
1046
1028
  });
1047
1029
  const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
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';
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";
1052
1034
  if (desktop) {
1053
- linkContainerClasses = 'ds-u-padding-x--0';
1054
- linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1035
+ linkContainerClasses = "ds-u-padding-x--0";
1036
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1055
1037
  }
1056
1038
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1057
1039
  className: "dc-c-list-item ds-u-padding-top--4",
1058
1040
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1059
- className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1041
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1060
1042
  children: [
1061
1043
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1062
1044
  className: "ds-l-row ds-u-align-items--start",
1063
1045
  children: [
1064
1046
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1065
1047
  id: `dataset-${identifier}-updated-date`,
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'}`,
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"}`,
1067
1049
  children: [
1068
1050
  "Updated ",
1069
1051
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
@@ -1121,7 +1103,7 @@ var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetList
1121
1103
 
1122
1104
  const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1123
1105
  switch(props.id){
1124
- case 'overview':
1106
+ case "overview":
1125
1107
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1126
1108
  width: "16px",
1127
1109
  height: "16px",
@@ -1164,7 +1146,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1164
1146
  })
1165
1147
  ]
1166
1148
  });
1167
- case 'data-table':
1149
+ case "data-table":
1168
1150
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1169
1151
  width: "16px",
1170
1152
  height: "12px",
@@ -1197,7 +1179,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1197
1179
  })
1198
1180
  ]
1199
1181
  });
1200
- case 'api':
1182
+ case "api":
1201
1183
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1202
1184
  width: "16px",
1203
1185
  height: "13px",
@@ -1230,7 +1212,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1230
1212
  })
1231
1213
  ]
1232
1214
  });
1233
- case 'download':
1215
+ case "download":
1234
1216
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1235
1217
  width: "16px",
1236
1218
  height: "16px",
@@ -1260,7 +1242,7 @@ const $b38839fd67928f42$var$SearchItemIcon = (props)=>{
1260
1242
  })
1261
1243
  ]
1262
1244
  });
1263
- case 'data-dictionary':
1245
+ case "data-dictionary":
1264
1246
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("svg", {
1265
1247
  width: "14px",
1266
1248
  height: "16px",
@@ -1363,13 +1345,13 @@ var $b61856b23f5f58a2$export$2e2bcd8739ae039 = $b61856b23f5f58a2$var$LargeFileDi
1363
1345
 
1364
1346
 
1365
1347
  function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240) {
1366
- if (!textString) return '';
1348
+ if (!textString) return "";
1367
1349
  let cleanedText = textString;
1368
- if (cleanedText.split('</p>').length > 1) cleanedText = cleanedText.split('</p>')[0];
1369
- if (cleanedText.split('<br/>').length > 1) cleanedText = cleanedText.split('<br/>')[0];
1350
+ if (cleanedText.split("</p>").length > 1) cleanedText = cleanedText.split("</p>")[0];
1351
+ if (cleanedText.split("<br/>").length > 1) cleanedText = cleanedText.split("<br/>")[0];
1370
1352
  cleanedText = (0, $hgUW1$lodashtruncate)(cleanedText, {
1371
- 'length': textLength,
1372
- 'separator': ' '
1353
+ "length": textLength,
1354
+ "separator": " "
1373
1355
  });
1374
1356
  return (0, $hgUW1$dompurify).sanitize(cleanedText, {
1375
1357
  ALLOWED_TAGS: []
@@ -1387,9 +1369,9 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
1387
1369
  const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1388
1370
  const { type: type, date: date, boldLabel: boldLabel = false, displayTooltips: displayTooltips = true } = props;
1389
1371
  const dateText = {
1390
- modified: 'Last Modified',
1391
- released: 'Released',
1392
- refresh: 'Planned Update'
1372
+ modified: "Last Modified",
1373
+ released: "Released",
1374
+ refresh: "Planned Update"
1393
1375
  };
1394
1376
  const tooltipContent = {
1395
1377
  modified: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -1426,7 +1408,7 @@ const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
1426
1408
  })
1427
1409
  };
1428
1410
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1429
- className: `dataset-date-item${boldLabel ? ' bold-label' : ''}`,
1411
+ className: `dataset-date-item${boldLabel ? " bold-label" : ""}`,
1430
1412
  children: [
1431
1413
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1432
1414
  className: "dataset-data-item-label",
@@ -1496,7 +1478,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1496
1478
  if (dist && dist.data) {
1497
1479
  if (dist.data.format) return dist.data.format.toLowerCase();
1498
1480
  if (dist.data.mediaType) {
1499
- const mediaType = dist.data.mediaType.split('/');
1481
+ const mediaType = dist.data.mediaType.split("/");
1500
1482
  if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
1501
1483
  }
1502
1484
  if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
@@ -1506,7 +1488,7 @@ function $f764661366bd9e1b$export$ee48b7e0e4eb536e(dist) {
1506
1488
  }
1507
1489
  }
1508
1490
  }
1509
- return '';
1491
+ return "";
1510
1492
  }
1511
1493
 
1512
1494
 
@@ -1516,20 +1498,20 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1516
1498
  });
1517
1499
  const { title: title, modified: modified, description: description, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks, identifier: identifier, refresh: refresh, released: released, showDateDetails: showDateDetails = false, showTopics: showTopics = false, theme: theme, topicSlugs: topicSlugs, distribution: distribution } = props;
1518
1500
  const location = (0, $hgUW1$useLocation)();
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';
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";
1523
1505
  if (desktop) {
1524
- linkContainerClasses = 'ds-u-padding-x--0';
1525
- linkClasses += ' ds-l-col--4 ds-l-md-col--auto';
1506
+ linkContainerClasses = "ds-u-padding-x--0";
1507
+ linkClasses += " ds-l-col--4 ds-l-md-col--auto";
1526
1508
  }
1527
1509
  let themes;
1528
1510
  if (theme && showTopics) themes = /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
1529
1511
  className: "theme-list item-theme",
1530
1512
  children: theme.map((topic, index)=>{
1531
- const title = topic || 'Unknown Topic';
1532
- const prefix = 'topics';
1513
+ const title = topic || "Unknown Topic";
1514
+ const prefix = "topics";
1533
1515
  // Use the provided slug or fallback to a simple slug generation
1534
1516
  const slug = topicSlugs?.[title];
1535
1517
  const link = `/${prefix}/${slug}`;
@@ -1540,7 +1522,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1540
1522
  state: {
1541
1523
  fromUrl: location.pathname,
1542
1524
  fromTitle: false,
1543
- fromSearchList: location.pathname.includes('search')
1525
+ fromSearchList: location.pathname.includes("search")
1544
1526
  },
1545
1527
  children: title
1546
1528
  })
@@ -1582,7 +1564,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1582
1564
  };
1583
1565
  const dataDictionaryExists = ()=>{
1584
1566
  if (distribution && "data" in distribution) {
1585
- if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === 'application/vnd.tableschema+json';
1567
+ if ("describedBy" in distribution.data && "describedByType" in distribution.data) return distribution.data.describedByType === "application/vnd.tableschema+json";
1586
1568
  }
1587
1569
  return false;
1588
1570
  };
@@ -1616,7 +1598,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1616
1598
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1617
1599
  className: "dc-c-search-list-item ds-u-padding-top--3",
1618
1600
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
1619
- className: `dc-c-searchlist-item ${paginationEnabled ? 'ds-u-border-top--1' : 'ds-u-border-bottom--1 ds-u-padding-bottom--3'}`,
1601
+ className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
1620
1602
  children: [
1621
1603
  themes,
1622
1604
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -1624,7 +1606,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1624
1606
  children: [
1625
1607
  !showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
1626
1608
  id: `dataset-${identifier}-updated-date`,
1627
- className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? 'ds-u-padding-top--2' : 'ds-u-padding-top--0'}`,
1609
+ className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
1628
1610
  children: [
1629
1611
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1630
1612
  children: "Updated:"
@@ -1653,13 +1635,13 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1653
1635
  (0, $1a2bf34e2a8f6b80$export$59a943b34a82e690)(description),
1654
1636
  description.length > 240 ? /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
1655
1637
  children: [
1656
- ' ',
1638
+ " ",
1657
1639
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
1658
1640
  to: `/dataset/${identifier}`,
1659
1641
  children: "See more"
1660
1642
  })
1661
1643
  ]
1662
- }) : ''
1644
+ }) : ""
1663
1645
  ]
1664
1646
  })
1665
1647
  }),
@@ -1687,14 +1669,14 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1687
1669
  "Download"
1688
1670
  ]
1689
1671
  })
1690
- }) : '',
1672
+ }) : "",
1691
1673
  /*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
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' : ''}`,
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" : ""}`,
1693
1675
  children: [
1694
1676
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1695
1677
  className: linkContainerClasses,
1696
1678
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1697
- className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? '' : ' dkan-disabled-link-wrapper'}`,
1679
+ className: `${linkClasses}${(0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? "" : " dkan-disabled-link-wrapper"}`,
1698
1680
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataTableLink, {})
1699
1681
  })
1700
1682
  }),
@@ -1716,10 +1698,10 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
1716
1698
  dataDictionaryLinks ? /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1717
1699
  className: linkContainerClasses,
1718
1700
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1719
- className: `${linkClasses}${dataDictionaryExists() ? '' : ' dkan-disabled-link-wrapper'}`,
1701
+ className: `${linkClasses}${dataDictionaryExists() ? "" : " dkan-disabled-link-wrapper"}`,
1720
1702
  children: /*#__PURE__*/ (0, $hgUW1$jsx)(DataDictionaryLink, {})
1721
1703
  })
1722
- }) : '',
1704
+ }) : "",
1723
1705
  /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
1724
1706
  className: linkContainerClasses,
1725
1707
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -1815,7 +1797,7 @@ var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocument
1815
1797
 
1816
1798
 
1817
1799
 
1818
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = 'data-table-results' })=>{
1800
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className = "data-table-results" })=>{
1819
1801
  const numTotalRows = totalRows;
1820
1802
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
1821
1803
  className: className,
@@ -1833,18 +1815,18 @@ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limi
1833
1815
  className: className,
1834
1816
  children: [
1835
1817
  "Displaying",
1836
- ' ',
1818
+ " ",
1837
1819
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1838
1820
  className: "ds-u-font-weight--bold",
1839
1821
  children: `${startTotal().toLocaleString()} - ${ofTotal().toLocaleString()}`
1840
1822
  }),
1841
- ' ',
1823
+ " ",
1842
1824
  "of ",
1843
1825
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
1844
1826
  className: "ds-u-font-weight--bold",
1845
1827
  children: `${numTotalRows.toLocaleString()}`
1846
1828
  }),
1847
- ' ',
1829
+ " ",
1848
1830
  "rows"
1849
1831
  ]
1850
1832
  });
@@ -1870,16 +1852,16 @@ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePaddi
1870
1852
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
1871
1853
  options: [
1872
1854
  {
1873
- label: 'Tight',
1874
- value: 'ds-u-padding-y--0'
1855
+ label: "Tight",
1856
+ value: "ds-u-padding-y--0"
1875
1857
  },
1876
1858
  {
1877
- label: 'Normal',
1878
- value: 'ds-u-padding-y--1'
1859
+ label: "Normal",
1860
+ value: "ds-u-padding-y--1"
1879
1861
  },
1880
1862
  {
1881
- label: 'Expanded',
1882
- value: 'ds-u-padding-y--2'
1863
+ label: "Expanded",
1864
+ value: "ds-u-padding-y--2"
1883
1865
  }
1884
1866
  ],
1885
1867
  label: "Display density:",
@@ -2122,7 +2104,7 @@ function $aa4450dcbeef3ac0$export$385a5aba38cc3325(sortArray) {
2122
2104
  sortArray.forEach((s)=>{
2123
2105
  return newQuery.push({
2124
2106
  property: s.id,
2125
- order: s.desc ? 'desc' : 'asc'
2107
+ order: s.desc ? "desc" : "asc"
2126
2108
  });
2127
2109
  });
2128
2110
  return newQuery;
@@ -2160,46 +2142,46 @@ function $7264a673914aa746$export$e284ae5d89467c8f(date) {
2160
2142
  }
2161
2143
  function $7264a673914aa746$export$6b5e57d20078142b(value, operator) {
2162
2144
  let newValue = value;
2163
- if (Array.isArray(newValue)) newValue = newValue.join(',');
2145
+ if (Array.isArray(newValue)) newValue = newValue.join(",");
2164
2146
  // return newValue.replace(/(^\%+|\%+$)/gm, '');
2165
2147
  return newValue;
2166
2148
  }
2167
2149
  const $7264a673914aa746$export$5f89a5ae87bc48e1 = [
2168
2150
  {
2169
- label: 'Is',
2170
- value: '='
2151
+ label: "Is",
2152
+ value: "="
2171
2153
  },
2172
2154
  {
2173
- label: 'Starts With',
2174
- value: 'starts with'
2155
+ label: "Starts With",
2156
+ value: "starts with"
2175
2157
  },
2176
2158
  {
2177
- label: 'Contains',
2178
- value: 'contains'
2159
+ label: "Contains",
2160
+ value: "contains"
2179
2161
  },
2180
2162
  {
2181
- label: 'Is Not',
2182
- value: '<>'
2163
+ label: "Is Not",
2164
+ value: "<>"
2183
2165
  },
2184
2166
  {
2185
- label: 'Or',
2186
- value: 'in'
2167
+ label: "Or",
2168
+ value: "in"
2187
2169
  },
2188
2170
  {
2189
- label: 'Is',
2190
- value: '='
2171
+ label: "Is",
2172
+ value: "="
2191
2173
  },
2192
2174
  {
2193
- label: 'Is Not',
2194
- value: '<>'
2175
+ label: "Is Not",
2176
+ value: "<>"
2195
2177
  },
2196
2178
  {
2197
- label: 'Greater Than',
2198
- value: '>'
2179
+ label: "Greater Than",
2180
+ value: ">"
2199
2181
  },
2200
2182
  {
2201
- label: 'Less Than',
2202
- value: '<'
2183
+ label: "Less Than",
2184
+ value: "<"
2203
2185
  }
2204
2186
  ];
2205
2187
  function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
@@ -2208,59 +2190,59 @@ function $7264a673914aa746$export$d243819c3ad678fb(operatorValue) {
2208
2190
  }
2209
2191
  function $7264a673914aa746$export$2b9377795161999(type) {
2210
2192
  switch(type){
2211
- case 'text':
2212
- case 'string':
2193
+ case "text":
2194
+ case "string":
2213
2195
  return [
2214
2196
  {
2215
- label: 'Is',
2216
- value: '='
2197
+ label: "Is",
2198
+ value: "="
2217
2199
  },
2218
2200
  {
2219
- label: 'Starts With',
2220
- value: 'starts with'
2201
+ label: "Starts With",
2202
+ value: "starts with"
2221
2203
  },
2222
2204
  {
2223
- label: 'Contains',
2224
- value: 'contains'
2205
+ label: "Contains",
2206
+ value: "contains"
2225
2207
  },
2226
2208
  {
2227
- label: 'Is Not',
2228
- value: '<>'
2209
+ label: "Is Not",
2210
+ value: "<>"
2229
2211
  },
2230
2212
  {
2231
- label: 'Or',
2232
- value: 'in'
2213
+ label: "Or",
2214
+ value: "in"
2233
2215
  }
2234
2216
  ];
2235
- case 'date':
2217
+ case "date":
2236
2218
  return [
2237
2219
  {
2238
- label: 'Is',
2239
- value: '='
2220
+ label: "Is",
2221
+ value: "="
2240
2222
  },
2241
2223
  {
2242
- label: 'Is Not',
2243
- value: '<>'
2224
+ label: "Is Not",
2225
+ value: "<>"
2244
2226
  },
2245
2227
  {
2246
- label: 'Greater Than',
2247
- value: '>'
2228
+ label: "Greater Than",
2229
+ value: ">"
2248
2230
  },
2249
2231
  {
2250
- label: 'Less Than',
2251
- value: '<'
2232
+ label: "Less Than",
2233
+ value: "<"
2252
2234
  }
2253
2235
  ];
2254
2236
  default:
2255
2237
  // These 2 should be safe for all data types
2256
2238
  return [
2257
2239
  {
2258
- label: 'Is',
2259
- value: '='
2240
+ label: "Is",
2241
+ value: "="
2260
2242
  },
2261
2243
  {
2262
- label: 'Is Not',
2263
- value: '<>'
2244
+ label: "Is Not",
2245
+ value: "<>"
2264
2246
  }
2265
2247
  ];
2266
2248
  }
@@ -2276,8 +2258,8 @@ function $7264a673914aa746$export$2b9377795161999(type) {
2276
2258
 
2277
2259
 
2278
2260
 
2279
- const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback, id: id })=>{
2280
- const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)('');
2261
+ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, id: id })=>{
2262
+ const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
2281
2263
  // Fix for JSX in Data Dictionary Title header cell
2282
2264
  const ariaLabel = header.id === "titleResizable" ? "Title" : header.column.columnDef.header;
2283
2265
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
@@ -2286,9 +2268,9 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2286
2268
  width: header.getSize()
2287
2269
  },
2288
2270
  id: id,
2289
- title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : '',
2271
+ title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
2290
2272
  className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2291
- "aria-sort": header.column.getIsSorted() === 'asc' ? 'ascending' : header.column.getIsSorted() === 'desc' ? 'descending' : 'none',
2273
+ "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2292
2274
  children: [
2293
2275
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2294
2276
  className: "ds-u-display--flex",
@@ -2300,7 +2282,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2300
2282
  }),
2301
2283
  sortElement && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2302
2284
  onClick: header.column.getToggleSortingHandler(),
2303
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
2285
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
2304
2286
  "aria-label": `${ariaLabel} sort order`
2305
2287
  })
2306
2288
  ]
@@ -2308,53 +2290,43 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2308
2290
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2309
2291
  onMouseDown: header.getResizeHandler(),
2310
2292
  onTouchStart: header.getResizeHandler(),
2311
- className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? 'isResizing' : ''}`,
2293
+ className: `dc-c-resize-handle ds-u-focus-visible ${header.column.getIsResizing() || header.column.id == columnResizing ? "isResizing" : ""}`,
2312
2294
  "aria-label": `Resize ${ariaLabel} column`,
2313
2295
  onKeyDown: (e)=>{
2314
2296
  const columnSizingObject = table.getState().columnSizing;
2315
2297
  switch(e.key){
2316
- case 'Enter':
2317
- case ' ':
2298
+ case "Enter":
2299
+ case " ":
2318
2300
  e.preventDefault();
2319
2301
  e.stopPropagation();
2320
- if (columnResizing) {
2321
- // end resizing
2322
- setColumnResizing('');
2323
- setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2324
- } else {
2325
- // start resizing
2326
- setColumnResizing(header.column.id);
2327
- setAriaLiveFeedback(`${header.column.columnDef.header} grabbed.`);
2328
- }
2302
+ if (columnResizing) // end resizing
2303
+ setColumnResizing("");
2304
+ else // start resizing
2305
+ setColumnResizing(header.column.id);
2329
2306
  break;
2330
- case 'Escape':
2331
- if (columnResizing) {
2332
- setColumnResizing('');
2333
- setAriaLiveFeedback(`${header.column.columnDef.header} dropped.`);
2334
- }
2307
+ case "Escape":
2308
+ if (columnResizing) setColumnResizing("");
2335
2309
  break;
2336
- case 'ArrowRight':
2310
+ case "ArrowRight":
2337
2311
  e.preventDefault();
2338
2312
  e.stopPropagation();
2339
2313
  if (columnResizing) {
2340
2314
  columnSizingObject[header.column.id] = header.getSize() + 10;
2341
2315
  table.setColumnSizing(columnSizingObject);
2342
- setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
2343
2316
  }
2344
2317
  break;
2345
- case 'ArrowLeft':
2318
+ case "ArrowLeft":
2346
2319
  e.preventDefault();
2347
2320
  e.stopPropagation();
2348
2321
  if (columnResizing) {
2349
2322
  columnSizingObject[header.column.id] = header.getSize() - 10;
2350
2323
  table.setColumnSizing(columnSizingObject);
2351
- setAriaLiveFeedback(`${header.column.columnDef.header} has been resized. The new width is ${header.getSize()} pixels.`);
2352
2324
  }
2353
2325
  break;
2354
2326
  }
2355
2327
  },
2356
2328
  onBlur: ()=>{
2357
- setColumnResizing('');
2329
+ setColumnResizing("");
2358
2330
  }
2359
2331
  })
2360
2332
  ]
@@ -2363,7 +2335,7 @@ const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: heade
2363
2335
  var $64a351d3fd8413c3$export$2e2bcd8739ae039 = $64a351d3fd8413c3$var$HeaderResizeElement;
2364
2336
 
2365
2337
 
2366
- const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElement: sortElement = null, setAriaLiveFeedback: setAriaLiveFeedback })=>{
2338
+ const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElement: sortElement = null })=>{
2367
2339
  return /*#__PURE__*/ (0, $hgUW1$jsx)("thead", {
2368
2340
  className: "dc-thead--truncated dc-thead--resizeable",
2369
2341
  children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
@@ -2371,8 +2343,7 @@ const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElem
2371
2343
  children: headerGroup.headers.map((header)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $64a351d3fd8413c3$export$2e2bcd8739ae039), {
2372
2344
  table: table,
2373
2345
  header: header,
2374
- sortElement: sortElement,
2375
- setAriaLiveFeedback: setAriaLiveFeedback
2346
+ sortElement: sortElement
2376
2347
  }, header.id + "_dataTableResize"))
2377
2348
  }, headerGroup.id))
2378
2349
  });
@@ -2395,7 +2366,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2395
2366
  },
2396
2367
  title: header.column.columnDef.header,
2397
2368
  className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
2398
- "aria-sort": header.column.getIsSorted() === 'asc' ? 'ascending' : header.column.getIsSorted() === 'desc' ? 'descending' : 'none',
2369
+ "aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
2399
2370
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2400
2371
  onClick: header.column.getToggleSortingHandler(),
2401
2372
  className: "ds-u-display--flex",
@@ -2404,7 +2375,7 @@ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortE
2404
2375
  children: header.isPlaceholder ? null : (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext())
2405
2376
  }),
2406
2377
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2407
- className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ''
2378
+ className: header.column.getCanSort() ? `cursor-pointer select-none ${sortElement(header.column.getIsSorted())}` : ""
2408
2379
  })
2409
2380
  ]
2410
2381
  })
@@ -2435,7 +2406,7 @@ const $ee0d4d4f34048447$var$DataTableActionsContextDefaults = {
2435
2406
  setColumnVisibility: ()=>{},
2436
2407
  page: 1,
2437
2408
  setPage: ()=>{},
2438
- tableDensity: 'normal',
2409
+ tableDensity: "normal",
2439
2410
  setTableDensity: ()=>{}
2440
2411
  };
2441
2412
  const $ee0d4d4f34048447$export$f814ea079e65d8fe = /*#__PURE__*/ (0, $hgUW1$createContext)($ee0d4d4f34048447$var$DataTableActionsContextDefaults);
@@ -2454,7 +2425,7 @@ const $ee0d4d4f34048447$var$DataTableActionsProvider = ({ children: children })=
2454
2425
  if (datasetTableControls && localStorageData) return localStorageData.tableColumnVisibility;
2455
2426
  else return {};
2456
2427
  });
2457
- const [tableDensity, setTableDensity] = (0, $hgUW1$useState)('normal');
2428
+ const [tableDensity, setTableDensity] = (0, $hgUW1$useState)("normal");
2458
2429
  const providerValue = {
2459
2430
  columnOrder: columnOrder,
2460
2431
  setColumnOrder: setColumnOrder,
@@ -2501,9 +2472,9 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2501
2472
  transition: transition,
2502
2473
  opacity: isDragging ? 0.7 : 1,
2503
2474
  zIndex: isDragging ? 1 : 0,
2504
- position: 'relative',
2505
- background: 'white',
2506
- touchAction: 'none'
2475
+ position: "relative",
2476
+ background: "white",
2477
+ touchAction: "none"
2507
2478
  };
2508
2479
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
2509
2480
  className: "ds-u-display--flex ds-u-justify-content--between ds-u-border-bottom--1",
@@ -2519,7 +2490,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2519
2490
  // this code forces the repaint without user interaction
2520
2491
  const target = e.target;
2521
2492
  if (isDragging && target.tagName.toLowerCase() === "label") setTimeout(()=>{
2522
- target.parentNode.querySelector('input').checked = visible;
2493
+ target.parentNode.querySelector("input").checked = visible;
2523
2494
  }, 1);
2524
2495
  },
2525
2496
  children: [
@@ -2536,7 +2507,7 @@ const $5fe94aeb50e0798b$var$Card = ({ id: id, visible: visible, updateVisibility
2536
2507
  }
2537
2508
  }),
2538
2509
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
2539
- className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && 'grabbed'}`,
2510
+ className: `ds-l-col--2 dkan-manage-columns-reorder-button ${isDragging && "grabbed"}`,
2540
2511
  "aria-label": `Reorder ${id} column`,
2541
2512
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2542
2513
  className: "fa fa-sort"
@@ -2554,7 +2525,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxKeyboardSensor extends (0, $hgUW1$Key
2554
2525
  // Custom function to exclude checkbox from keyboard dragging
2555
2526
  static activators = [
2556
2527
  {
2557
- eventName: 'onKeyDown',
2528
+ eventName: "onKeyDown",
2558
2529
  handler: ({ nativeEvent: event })=>{
2559
2530
  // prevent scrolling the list
2560
2531
  const isCheckbox = [
@@ -2577,7 +2548,7 @@ class $5d9e2ce238d53d29$var$ExcludeCheckboxPointerSensor extends (0, $hgUW1$Poin
2577
2548
  // Custom function to stop accidental checkbox clicks on pointer activation
2578
2549
  static activators = [
2579
2550
  {
2580
- eventName: 'onPointerDown',
2551
+ eventName: "onPointerDown",
2581
2552
  handler: ({ nativeEvent: event })=>{
2582
2553
  if (event.target.tagName.toLowerCase() === "input") return false;
2583
2554
  if (event.target.tagName.toLowerCase() === "label") event.target.blur();
@@ -2675,13 +2646,13 @@ const $5d9e2ce238d53d29$var$ManageColumns = ({ id: id, columns: columns, default
2675
2646
  className: "dkan-dataset-toolbar-button-label",
2676
2647
  children: "Manage Columns"
2677
2648
  }),
2678
- hiddenColumns ? ` (${hiddenColumns})` : ''
2649
+ hiddenColumns ? ` (${hiddenColumns})` : ""
2679
2650
  ]
2680
2651
  })
2681
2652
  ]
2682
2653
  }),
2683
2654
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2684
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2655
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2685
2656
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Dialog), {
2686
2657
  heading: "Manage columns",
2687
2658
  isOpen: modalOpen,
@@ -2854,12 +2825,12 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2854
2825
  if (Object.keys(resource).length && columns.length && resource.schema && Object.keys(distribution).length) return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2855
2826
  children: [
2856
2827
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2857
- className: isModal ? 'dkan-datatable-fullscreen-mode' : '',
2828
+ className: isModal ? "dkan-datatable-fullscreen-mode" : "",
2858
2829
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $d98f94c79ddf4e0e$export$2e2bcd8739ae039), {
2859
2830
  canResize: true,
2860
2831
  columns: columns,
2861
2832
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2862
- tablePadding: tableDensity === 'normal' ? 'ds-u-padding-y--2' : tableDensity === 'compact' ? 'ds-u-padding-y--1' : 'ds-u-padding-y--3',
2833
+ tablePadding: tableDensity === "normal" ? "ds-u-padding-y--2" : tableDensity === "compact" ? "ds-u-padding-y--1" : "ds-u-padding-y--3",
2863
2834
  loading: resource.loading,
2864
2835
  isModal: isModal,
2865
2836
  downloadURL: downloadURL,
@@ -2874,14 +2845,14 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ isModal: isModal = false, showCopy
2874
2845
  }),
2875
2846
  !resource.loading && resource.count !== null && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2876
2847
  className: [
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(' '),
2848
+ "ds-u-display--flex",
2849
+ "ds-u-flex-wrap--wrap",
2850
+ "ds-u-justify-content--end",
2851
+ "ds-u-md-justify-content--between",
2852
+ "ds-u-margin-top--2",
2853
+ "ds-u-align-items--center",
2854
+ isModal && "ds-u-margin-bottom--2"
2855
+ ].filter(Boolean).join(" "),
2885
2856
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
2886
2857
  totalPages: Math.ceil(resource.count ? resource.count / pageSize : 1),
2887
2858
  currentPage: Number(page),
@@ -2920,7 +2891,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2920
2891
  },
2921
2892
  children: [
2922
2893
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2923
- className: `far ${modalOpen ? 'fa-compress' : 'fa-expand'} ds-u-margin-right--1`
2894
+ className: `far ${modalOpen ? "fa-compress" : "fa-expand"} ds-u-margin-right--1`
2924
2895
  }),
2925
2896
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
2926
2897
  className: "dkan-dataset-toolbar-button-label",
@@ -2929,7 +2900,7 @@ const $16bd41951b91f02d$var$FullScreenDataTable = ({ isModal: isModal })=>{
2929
2900
  ]
2930
2901
  }),
2931
2902
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2932
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
2903
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
2933
2904
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
2934
2905
  heading: "Dataset Explorer",
2935
2906
  isOpen: modalOpen,
@@ -2964,13 +2935,13 @@ var $16bd41951b91f02d$export$2e2bcd8739ae039 = $16bd41951b91f02d$var$FullScreenD
2964
2935
 
2965
2936
 
2966
2937
  function $eadd6431fddf4b6c$var$getStartDate(condition, schema, id) {
2967
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2938
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2968
2939
  const newDate = new Date(condition.value.toString());
2969
2940
  if (newDate instanceof Date && !isNaN(newDate.getTime())) return newDate;
2970
2941
  }
2971
2942
  return new Date();
2972
2943
  }
2973
- const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = '' })=>{
2944
+ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema, className: className = "" })=>{
2974
2945
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
2975
2946
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
2976
2947
  const [value, setValue] = (0, $hgUW1$useState)(condition.value);
@@ -2980,9 +2951,9 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2980
2951
  });
2981
2952
  (0, $hgUW1$useEffect)(()=>{
2982
2953
  if (property !== condition.property) {
2983
- if (property) update(index, 'property', property);
2984
- else update(index, 'property', '');
2985
- if (schema[id].fields[condition.property].mysql_type === 'date') {
2954
+ if (property) update(index, "property", property);
2955
+ else update(index, "property", "");
2956
+ if (schema[id].fields[condition.property].mysql_type === "date") {
2986
2957
  if (!value) setValue(startDate.toJSON().slice(0, 10));
2987
2958
  }
2988
2959
  }
@@ -2996,22 +2967,22 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
2996
2967
  ]);
2997
2968
  (0, $hgUW1$useEffect)(()=>{
2998
2969
  if (operator !== condition.operator) {
2999
- if (operator) update(index, 'operator', operator);
3000
- else update(index, 'operator', '');
2970
+ if (operator) update(index, "operator", operator);
2971
+ else update(index, "operator", "");
3001
2972
  }
3002
2973
  }, [
3003
2974
  operator
3004
2975
  ]);
3005
2976
  (0, $hgUW1$useEffect)(()=>{
3006
2977
  if (value !== condition.value) {
3007
- if (value) update(index, 'value', value);
3008
- else update(index, 'value', '');
2978
+ if (value) update(index, "value", value);
2979
+ else update(index, "value", "");
3009
2980
  }
3010
2981
  }, [
3011
2982
  value
3012
2983
  ]);
3013
2984
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("fieldset", {
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}` : ''}`,
2985
+ 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}` : ""}`,
3015
2986
  children: [
3016
2987
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3017
2988
  options: propertyOptions,
@@ -3029,7 +3000,7 @@ const $eadd6431fddf4b6c$var$FilterItem = ({ id: id, condition: condition, index:
3029
3000
  name: `${condition.key}_operator`,
3030
3001
  onChange: (e)=>setOperator(e.target.value)
3031
3002
  }),
3032
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3003
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3033
3004
  children: [
3034
3005
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
3035
3006
  className: "ds-c-label",
@@ -3082,15 +3053,15 @@ var $eadd6431fddf4b6c$export$2e2bcd8739ae039 = $eadd6431fddf4b6c$var$FilterItem;
3082
3053
 
3083
3054
 
3084
3055
 
3085
- const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = '' })=>{
3056
+ const $2eec38d4d0dbf714$var$ClearFiltersButton = ({ disabled: disabled = false, clearFiltersFn: clearFiltersFn, disableDefaultClasses: disableDefaultClasses = false, className: className = "" })=>{
3086
3057
  const small = (0, $hgUW1$useMediaQuery)({
3087
3058
  minWidth: 0,
3088
3059
  maxWidth: 544
3089
3060
  });
3090
3061
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
3091
3062
  disabled: disabled,
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,
3063
+ className: `dkan-clear-dataset-filters-button ${disableDefaultClasses ? "" : " ds-u-float--right ds-l-md-col--6 ds-l-col--5"}${className !== "" ? ` ${className}` : ""}`,
3064
+ variation: small ? "ghost" : undefined,
3094
3065
  onClick: ()=>clearFiltersFn(),
3095
3066
  children: "Reset"
3096
3067
  });
@@ -3102,19 +3073,19 @@ var $2eec38d4d0dbf714$export$2e2bcd8739ae039 = $2eec38d4d0dbf714$var$ClearFilter
3102
3073
  function $6f4318b1e14124e5$var$updateQueryForDatastore(condition) {
3103
3074
  let cond = condition;
3104
3075
  delete cond.key;
3105
- if (cond.operator === '=' || cond.operator === '<>') {
3076
+ if (cond.operator === "=" || cond.operator === "<>") {
3106
3077
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3107
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
3078
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
3108
3079
  }
3109
- if (cond.operator.toLowerCase() === 'like') {
3080
+ if (cond.operator.toLowerCase() === "like") {
3110
3081
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
3111
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
3082
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
3112
3083
  cond.value = `%${cleanedValue}%`;
3113
3084
  }
3114
- if (cond.operator.toLowerCase() === 'in') {
3115
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
3085
+ if (cond.operator.toLowerCase() === "in") {
3086
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
3116
3087
  }
3117
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
3088
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
3118
3089
  return cond;
3119
3090
  }
3120
3091
  const $6f4318b1e14124e5$var$FilterDataset = ()=>{
@@ -3140,7 +3111,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3140
3111
  } else setQueryConditions([
3141
3112
  {
3142
3113
  property: fields[0],
3143
- value: '',
3114
+ value: "",
3144
3115
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3145
3116
  key: Date.now().toString()
3146
3117
  }
@@ -3157,7 +3128,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3157
3128
  ...queryConditions,
3158
3129
  {
3159
3130
  property: fields[0],
3160
- value: '',
3131
+ value: "",
3161
3132
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
3162
3133
  key: Date.now().toString()
3163
3134
  }
@@ -3188,7 +3159,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3188
3159
  encodeValuesOnly: true,
3189
3160
  addQueryPrefix: true
3190
3161
  });
3191
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3162
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3192
3163
  };
3193
3164
  const submitConditions = ()=>{
3194
3165
  // only update the data conditions when "Apply filters" is pressed
@@ -3262,7 +3233,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3262
3233
  children: [
3263
3234
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
3264
3235
  className: "dkan-dataset-toolbar-button-label",
3265
- children: conditions.length > 0 ? `Edit Filters` : 'Filter Dataset'
3236
+ children: conditions.length > 0 ? `Edit Filters` : "Filter Dataset"
3266
3237
  }),
3267
3238
  conditions.length > 0 && ` (${conditions.length})`
3268
3239
  ]
@@ -3270,7 +3241,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3270
3241
  ]
3271
3242
  }),
3272
3243
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3273
- className: `ds-c-dialog-wrap${modalOpen ? ' open' : ''}`,
3244
+ className: `ds-c-dialog-wrap${modalOpen ? " open" : ""}`,
3274
3245
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dialog), {
3275
3246
  heading: "Filter Dataset",
3276
3247
  isOpen: modalOpen,
@@ -3296,7 +3267,7 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3296
3267
  className: "dkan-apply-dataset-filters-button ds-u-float--right ds-l-md-col--auto ds-l-col--auto",
3297
3268
  onClick: submitConditions,
3298
3269
  variation: "solid",
3299
- children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ''} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? '' : 's'}`
3270
+ children: `Apply ${conditionsReadyToSubmit(queryConditions).length || ""} filter${conditionsReadyToSubmit(queryConditions).length === 1 ? "" : "s"}`
3300
3271
  })
3301
3272
  ]
3302
3273
  })
@@ -3435,9 +3406,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3435
3406
  className: "ds-u-display--flex ds-u-align-items--start",
3436
3407
  children: [
3437
3408
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3438
- onClick: ()=>setTableDensity('expanded'),
3409
+ onClick: ()=>setTableDensity("expanded"),
3439
3410
  "aria-label": "Row height, Expanded",
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' : ''}`,
3411
+ 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" : ""}`,
3441
3412
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3442
3413
  className: "ds-u-display--block",
3443
3414
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3456,9 +3427,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3456
3427
  })
3457
3428
  }),
3458
3429
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3459
- onClick: ()=>setTableDensity('normal'),
3430
+ onClick: ()=>setTableDensity("normal"),
3460
3431
  "aria-label": "Row height, Normal",
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' : ''}`,
3432
+ 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" : ""}`,
3462
3433
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3463
3434
  className: "ds-u-display--block",
3464
3435
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3477,9 +3448,9 @@ const $dae856e97a09bcd6$var$DisplaySettings = ()=>{
3477
3448
  })
3478
3449
  }),
3479
3450
  /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3480
- onClick: ()=>setTableDensity('compact'),
3451
+ onClick: ()=>setTableDensity("compact"),
3481
3452
  "aria-label": "Row height, Compact",
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 ' : ''}`,
3453
+ 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 " : ""}`,
3483
3454
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
3484
3455
  className: "ds-u-display--block",
3485
3456
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("svg", {
@@ -3564,7 +3535,7 @@ const $85f8ff1ff89899c7$var$updateBrowserURL = (newConditions)=>{
3564
3535
  encodeValuesOnly: true,
3565
3536
  addQueryPrefix: true
3566
3537
  });
3567
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
3538
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
3568
3539
  };
3569
3540
  const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, columns: columns, defaultColumnOrder: defaultColumnOrder, isModal: isModal, datasetTableControls: datasetTableControls, columnVisibility: columnVisibility, setColumnVisibility: setColumnVisibility })=>{
3570
3541
  const { limit: limit, offset: offset, count: count, conditions: conditions, setConditions: setConditions } = resource;
@@ -3650,7 +3621,7 @@ const $85f8ff1ff89899c7$var$DataTableToolbar = ({ resource: resource, id: id, co
3650
3621
  }, index)) : null,
3651
3622
  hiddenColumns > 0 ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $c5b172e8d1a8197c$export$2e2bcd8739ae039), {
3652
3623
  iconClass: "fa fa-columns",
3653
- text: `${hiddenColumns} Column${hiddenColumns === 1 ? '' : 's'} Hidden`,
3624
+ text: `${hiddenColumns} Column${hiddenColumns === 1 ? "" : "s"} Hidden`,
3654
3625
  onClick: ()=>{
3655
3626
  resetColumnVisibility();
3656
3627
  }
@@ -3685,7 +3656,6 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3685
3656
  const { conditions: conditions } = resource;
3686
3657
  const data = resource.values;
3687
3658
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
3688
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
3689
3659
  const dataTableWrapperElement = (0, $hgUW1$useRef)(null);
3690
3660
  const columnHelper = (0, $hgUW1$createColumnHelper)();
3691
3661
  const table_columns = columns.map((col)=>{
@@ -3704,9 +3674,9 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3704
3674
  columnOrder
3705
3675
  ]);
3706
3676
  const sortElement = (isSorted, onClickFn)=>{
3707
- if (isSorted === 'asc') return 'dc-c-sort--asc';
3708
- if (isSorted === 'desc') return 'dc-c-sort--desc';
3709
- return 'dc-c-sort--default';
3677
+ if (isSorted === "asc") return "dc-c-sort--asc";
3678
+ if (isSorted === "desc") return "dc-c-sort--desc";
3679
+ return "dc-c-sort--default";
3710
3680
  };
3711
3681
  const filters = [];
3712
3682
  const table = (0, $hgUW1$useReactTable)({
@@ -3718,7 +3688,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3718
3688
  columnVisibility: columnVisibility,
3719
3689
  sorting: sorting
3720
3690
  },
3721
- columnResizeMode: 'onChange',
3691
+ columnResizeMode: "onChange",
3722
3692
  onSortingChange: setSorting,
3723
3693
  onColumnOrderChange: setColumnOrder,
3724
3694
  onColumnVisibilityChange: setColumnVisibility,
@@ -3735,7 +3705,7 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3735
3705
  const defaultColumnOrder = (0, $hgUW1$useMemo)(()=>table_columns.map((column)=>column.accessorKey), []);
3736
3706
  const tableWrapperWidth = ()=>{
3737
3707
  if (dataTableWrapperElement.current) return dataTableWrapperElement.current.offsetWidth;
3738
- return 'auto';
3708
+ return "auto";
3739
3709
  };
3740
3710
  (0, $hgUW1$useEffect)(()=>{
3741
3711
  setHighlightRow(null);
@@ -3881,57 +3851,48 @@ const $d98f94c79ddf4e0e$var$DataTable = ({ columns: columns, sortTransform: sort
3881
3851
  })
3882
3852
  ]
3883
3853
  }),
3884
- /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3854
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3885
3855
  className: "dc-c-datatable-wrapper ds-u-border-x--1 ds-u-border-bottom--1",
3886
3856
  tabIndex: 0,
3887
3857
  ref: dataTableWrapperElement,
3888
- children: [
3889
- /*#__PURE__*/ (0, $hgUW1$jsxs)("table", {
3890
- style: {
3891
- width: canResize ? table.getCenterTotalSize() : "100%",
3892
- minWidth: tableWrapperWidth()
3893
- },
3894
- className: "dc-c-datatable",
3895
- children: [
3896
- canResize ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $96d341d082bffec5$export$2e2bcd8739ae039), {
3897
- table: table,
3898
- sortElement: sortElement,
3899
- setAriaLiveFeedback: setAriaLiveFeedback
3900
- }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $23763e27eda0e8d7$export$2e2bcd8739ae039), {
3901
- table: table,
3902
- sortElement: sortElement
3903
- }),
3904
- loading ? /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {}) : /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {
3905
- children: table.getRowModel().rows.map((row, index)=>{
3906
- const even = (index + 1) % 2 === 0;
3907
- const highlight = highlightRow === row.id;
3908
- return /*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
3909
- className: `${highlight ? "dc-c-datatable--highlight-row" : even && "dc-c-datatable--even-row"}`,
3910
- onClick: ()=>setHighlightRow(row.id),
3911
- children: row.getVisibleCells().map((cell)=>{
3912
- let classList = "dc-truncate ds-u-padding-x--1";
3913
- return /*#__PURE__*/ (0, $hgUW1$jsx)("td", {
3914
- key: cell.id,
3915
- style: {
3916
- maxWidth: cell.column.getSize()
3917
- },
3918
- className: `${classList} ${tablePadding}`,
3919
- title: cell.getValue(),
3920
- children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
3921
- });
3922
- })
3923
- }, row.id);
3924
- })
3858
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("table", {
3859
+ style: {
3860
+ width: canResize ? table.getCenterTotalSize() : "100%",
3861
+ minWidth: tableWrapperWidth()
3862
+ },
3863
+ className: "dc-c-datatable",
3864
+ children: [
3865
+ canResize ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $96d341d082bffec5$export$2e2bcd8739ae039), {
3866
+ table: table,
3867
+ sortElement: sortElement
3868
+ }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $23763e27eda0e8d7$export$2e2bcd8739ae039), {
3869
+ table: table,
3870
+ sortElement: sortElement
3871
+ }),
3872
+ loading ? /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {}) : /*#__PURE__*/ (0, $hgUW1$jsx)("tbody", {
3873
+ children: table.getRowModel().rows.map((row, index)=>{
3874
+ const even = (index + 1) % 2 === 0;
3875
+ const highlight = highlightRow === row.id;
3876
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
3877
+ className: `${highlight ? "dc-c-datatable--highlight-row" : even && "dc-c-datatable--even-row"}`,
3878
+ onClick: ()=>setHighlightRow(row.id),
3879
+ children: row.getVisibleCells().map((cell)=>{
3880
+ let classList = "dc-truncate ds-u-padding-x--1";
3881
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("td", {
3882
+ key: cell.id,
3883
+ style: {
3884
+ maxWidth: cell.column.getSize()
3885
+ },
3886
+ className: `${classList} ${tablePadding}`,
3887
+ title: cell.getValue(),
3888
+ children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
3889
+ });
3890
+ })
3891
+ }, row.id);
3925
3892
  })
3926
- ]
3927
- }),
3928
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3929
- className: "sr-only",
3930
- "aria-live": "assertive",
3931
- "aria-atomic": "true",
3932
- children: ariaLiveFeedback
3933
- })
3934
- ]
3893
+ })
3894
+ ]
3895
+ })
3935
3896
  }),
3936
3897
  loading && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
3937
3898
  "aria-valuetext": "Dataset loading",
@@ -3965,7 +3926,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, a
3965
3926
  },
3966
3927
  labelClassName: "ds-u-visibility--screen-reader",
3967
3928
  name: accessor,
3968
- value: filterValue || ''
3929
+ value: filterValue || ""
3969
3930
  });
3970
3931
  }
3971
3932
  const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, canResize: canResize = true })=>{
@@ -4041,7 +4002,7 @@ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail:
4041
4002
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4042
4003
  children: currentPage
4043
4004
  })
4044
- }) : ''
4005
+ }) : ""
4045
4006
  ]
4046
4007
  })
4047
4008
  });
@@ -4098,11 +4059,11 @@ var $10acbeaa4d8f6040$export$2e2bcd8739ae039 = $10acbeaa4d8f6040$var$ChevronRigh
4098
4059
 
4099
4060
 
4100
4061
 
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", {
4062
+ 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", {
4102
4063
  className: "search-input-container",
4103
4064
  children: [
4104
4065
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4105
- className: `${showMagnifyingGlass ? 'left-padding' : ''} ${showSearchButton ? 'right-padding' : ''}`,
4066
+ className: `${showMagnifyingGlass ? "left-padding" : ""} ${showSearchButton ? "right-padding" : ""}`,
4106
4067
  label: placeholder,
4107
4068
  labelClassName: "ds-u-visibility--screen-reader",
4108
4069
  placeholder: placeholder,
@@ -4117,7 +4078,7 @@ const $bdb071ea3a6d3466$var$SearchInput = ({ placeholder: placeholder = 'Search
4117
4078
  }),
4118
4079
  showSearchButton && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Button), {
4119
4080
  variation: "solid",
4120
- className: onDark && 'on-dark',
4081
+ className: onDark && "on-dark",
4121
4082
  onClick: onSubmit,
4122
4083
  children: [
4123
4084
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4236,7 +4197,7 @@ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth = true, rootUrl: roo
4236
4197
  url: `${rootUrl}${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4237
4198
  addQueryPrefix: true
4238
4199
  })}`,
4239
- docExpansion: 'list',
4200
+ docExpansion: "list",
4240
4201
  defaultModelsExpandDepth: -1,
4241
4202
  plugins: [
4242
4203
  (0, $hgUW1$SpanOpenAPIVersion),
@@ -4344,7 +4305,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4344
4305
  size: "big",
4345
4306
  type: "submit",
4346
4307
  style: {
4347
- width: '70px'
4308
+ width: "70px"
4348
4309
  },
4349
4310
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4350
4311
  className: "fas fa-search small-text"
@@ -4361,7 +4322,7 @@ const $0a551147dc92a718$var$SearchButton = (props)=>{
4361
4322
  className: "full-text ds-u-display--none ds-u-sm-display--inline-block ds-u-display--flex ds-u-align-items--center",
4362
4323
  children: [
4363
4324
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
4364
- children: text ? text : 'Search'
4325
+ children: text ? text : "Search"
4365
4326
  }),
4366
4327
  ` `,
4367
4328
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4446,12 +4407,12 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4446
4407
  fulltext: fulltext ? fulltext : undefined,
4447
4408
  ...selectedFacets,
4448
4409
  sort: sort ? sort : undefined,
4449
- ['sort-order']: sortOrder ? sortOrder : undefined,
4410
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4450
4411
  page: page !== 1 ? page : undefined,
4451
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4412
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4452
4413
  };
4453
4414
  return await (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4454
- arrayFormat: 'comma',
4415
+ arrayFormat: "comma",
4455
4416
  encode: false
4456
4417
  })}`);
4457
4418
  }
@@ -4462,26 +4423,26 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, ACA)
4462
4423
 
4463
4424
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4464
4425
  const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
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;
4426
+ defaultSort: "modified",
4427
+ defaultOrder: "desc"
4428
+ }, pageTitle: pageTitle = "Dataset Explorer", filterTitle: filterTitle = "Tags", showLargeFileWarning: showLargeFileWarning = false, largeFileThemes: largeFileThemes, introText: introText = "", showDownloadIcon: showDownloadIcon = false, altMobileSearchButton: altMobileSearchButton, dataDictionaryLinks: dataDictionaryLinks = false } = props;
4468
4429
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4469
4430
  const sortOptions = [
4470
4431
  {
4471
- label: 'Newest',
4472
- value: 'newest'
4432
+ label: "Newest",
4433
+ value: "newest"
4473
4434
  },
4474
4435
  {
4475
- label: 'Oldest',
4476
- value: 'oldest'
4436
+ label: "Oldest",
4437
+ value: "oldest"
4477
4438
  },
4478
4439
  {
4479
- label: 'Title A-Z',
4480
- value: 'titleAZ'
4440
+ label: "Title A-Z",
4441
+ value: "titleAZ"
4481
4442
  },
4482
4443
  {
4483
- label: 'Title Z-A',
4484
- value: 'titleZA'
4444
+ label: "Title Z-A",
4445
+ value: "titleZA"
4485
4446
  }
4486
4447
  ];
4487
4448
  const defaultSortBy = "";
@@ -4500,7 +4461,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4500
4461
  endingNumber: 0
4501
4462
  });
4502
4463
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4503
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4464
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4504
4465
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4505
4466
  const [fulltext, setFullText] = (0, $hgUW1$useState)(transformedParams.fulltext);
4506
4467
  const [filterText, setFilterText] = (0, $hgUW1$useState)(transformedParams.fulltext);
@@ -4509,7 +4470,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4509
4470
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4510
4471
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4511
4472
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4512
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4473
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4513
4474
  });
4514
4475
  const [selectedFacets, setSelectedFacets] = (0, $hgUW1$useState)(transformedParams.selectedFacets ? transformedParams.selectedFacets : {
4515
4476
  theme: [],
@@ -4518,21 +4479,21 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4518
4479
  const setSortOptions = (value)=>{
4519
4480
  setSortDisplay(value);
4520
4481
  switch(value){
4521
- case 'newest':
4522
- setSort('modified');
4523
- setSortOrder('desc');
4482
+ case "newest":
4483
+ setSort("modified");
4484
+ setSortOrder("desc");
4524
4485
  break;
4525
- case 'oldest':
4526
- setSort('modified');
4527
- setSortOrder('asc');
4486
+ case "oldest":
4487
+ setSort("modified");
4488
+ setSortOrder("asc");
4528
4489
  break;
4529
- case 'titleAZ':
4530
- setSort('title');
4531
- setSortOrder('asc');
4490
+ case "titleAZ":
4491
+ setSort("title");
4492
+ setSortOrder("asc");
4532
4493
  break;
4533
- case 'titleZA':
4534
- setSort('title');
4535
- setSortOrder('desc');
4494
+ case "titleZA":
4495
+ setSort("title");
4496
+ setSortOrder("desc");
4536
4497
  break;
4537
4498
  }
4538
4499
  };
@@ -4540,12 +4501,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4540
4501
  const newFacets = {
4541
4502
  ...selectedFacets
4542
4503
  };
4543
- if (key === 'theme') {
4504
+ if (key === "theme") {
4544
4505
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
4545
4506
  if (existingFacet > -1) newFacets.theme.splice(existingFacet, 1);
4546
4507
  else newFacets.theme.push(value);
4547
4508
  }
4548
- if (key === 'keyword') {
4509
+ if (key === "keyword") {
4549
4510
  const existingFacet = newFacets.keyword.findIndex((s)=>s === value);
4550
4511
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
4551
4512
  else newFacets.keyword.push(value);
@@ -4559,7 +4520,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4559
4520
  });
4560
4521
  setSelectedFacets(newFacets);
4561
4522
  const url = new URL(window.location.href);
4562
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
4523
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
4563
4524
  }
4564
4525
  const pageSize = defaultPageSize;
4565
4526
  function resetFilters() {
@@ -4568,14 +4529,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4568
4529
  setSelectedFacets(defaultSelectedFacets);
4569
4530
  setPage(defaultPage);
4570
4531
  const url = new URL(window.location.href);
4571
- window.history.pushState({}, '', `${url.origin}${url.pathname}`);
4532
+ window.history.pushState({}, "", `${url.origin}${url.pathname}`);
4572
4533
  }
4573
4534
  function buildSearchParams(includePage) {
4574
4535
  let newParams = {};
4575
4536
  if (Number(page) !== 1 && includePage) newParams.page = page;
4576
4537
  if (sort !== defaultSort.defaultSort) newParams.sort = sort;
4577
4538
  if (sortOrder !== defaultSort.defaultOrder) newParams.sortOrder = sortOrder;
4578
- if (fulltext !== '') newParams.fulltext = fulltext;
4539
+ if (fulltext !== "") newParams.fulltext = fulltext;
4579
4540
  if (Object.keys(selectedFacets).length) Object.keys(selectedFacets).forEach((key)=>{
4580
4541
  newParams[key] = selectedFacets[key];
4581
4542
  });
@@ -4588,9 +4549,9 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4588
4549
  fulltext: fulltext ? fulltext : undefined,
4589
4550
  ...selectedFacets,
4590
4551
  sort: sort ? sort : undefined,
4591
- ['sort-order']: sortOrder ? sortOrder : undefined,
4552
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4592
4553
  page: page !== 1 ? page : undefined,
4593
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4554
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4594
4555
  };
4595
4556
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4596
4557
  queryKey: [
@@ -4599,18 +4560,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4599
4560
  ],
4600
4561
  queryFn: ()=>{
4601
4562
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4602
- arrayFormat: 'comma',
4563
+ arrayFormat: "comma",
4603
4564
  encode: false
4604
4565
  })}`);
4605
4566
  }
4606
4567
  });
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
- ]);
4568
+ if (data && data.data.total && totalItems != data.data.total) setTotalItems(data.data.total);
4614
4569
  const facets = data && data.data.facets ? (0, $eff7d34c30f5a0fc$export$959638e8dca60ce6)(data ? data.data.facets : []) : {
4615
4570
  theme: null,
4616
4571
  keyword: null
@@ -4650,8 +4605,8 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4650
4605
  ]);
4651
4606
  (0, $hgUW1$useEffect)(()=>{
4652
4607
  // No results found
4653
- if (noResults) setAnnouncementText('No results found.');
4654
- else if (!isPending && (!data || !data.data.results)) setAnnouncementText('Could not connect to the API.');
4608
+ if (noResults) setAnnouncementText("No results found.");
4609
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
4655
4610
  else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
4656
4611
  }, [
4657
4612
  data,
@@ -4709,7 +4664,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4709
4664
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4710
4665
  fieldClassName: "ds-u-margin--0",
4711
4666
  value: filterText,
4712
- className: `ds-u-padding-right--2 ${altMobileSearchButton ? 'ds-l-col--12 ds-l-md-col--10 --alt-style' : 'ds-l-col--10'}`,
4667
+ className: `ds-u-padding-right--2 ${altMobileSearchButton ? "ds-l-col--12 ds-l-md-col--10 --alt-style" : "ds-l-col--10"}`,
4713
4668
  label: "Search datasets",
4714
4669
  labelClassName: "ds-u-visibility--screen-reader",
4715
4670
  placeholder: "Search datasets",
@@ -4769,7 +4724,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4769
4724
  "Showing ",
4770
4725
  currentResultNumbers.startingNumber,
4771
4726
  " -",
4772
- ' ',
4727
+ " ",
4773
4728
  currentResultNumbers.endingNumber,
4774
4729
  " of ",
4775
4730
  data.data.total,
@@ -4840,7 +4795,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
4840
4795
  },
4841
4796
  renderHref: (page)=>{
4842
4797
  const searchParams = buildSearchParams(false);
4843
- const includeAnd = searchParams ? '&' : '';
4798
+ const includeAnd = searchParams ? "&" : "";
4844
4799
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
4845
4800
  }
4846
4801
  })
@@ -4874,26 +4829,26 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
4874
4829
 
4875
4830
 
4876
4831
  const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
4877
- defaultSort: 'modified',
4878
- defaultOrder: 'desc'
4879
- }, pageTitle: pageTitle = 'What\'s New ', showLargeFileWarning: showLargeFileWarning = false, introText: introText = '', dataDictionaryLinks: dataDictionaryLinks = false })=>{
4832
+ defaultSort: "modified",
4833
+ defaultOrder: "desc"
4834
+ }, pageTitle: pageTitle = "What's New ", showLargeFileWarning: showLargeFileWarning = false, introText: introText = "", dataDictionaryLinks: dataDictionaryLinks = false })=>{
4880
4835
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
4881
4836
  const sortOptions = [
4882
4837
  {
4883
- label: 'Newest',
4884
- value: 'newest'
4838
+ label: "Newest",
4839
+ value: "newest"
4885
4840
  },
4886
4841
  {
4887
- label: 'Oldest',
4888
- value: 'oldest'
4842
+ label: "Oldest",
4843
+ value: "oldest"
4889
4844
  },
4890
4845
  {
4891
- label: 'Title A-Z',
4892
- value: 'titleAZ'
4846
+ label: "Title A-Z",
4847
+ value: "titleAZ"
4893
4848
  },
4894
4849
  {
4895
- label: 'Title Z-A',
4896
- value: 'titleZA'
4850
+ label: "Title Z-A",
4851
+ value: "titleZA"
4897
4852
  }
4898
4853
  ];
4899
4854
  const defaultSortBy = "";
@@ -4907,33 +4862,33 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4907
4862
  endingNumber: 0
4908
4863
  });
4909
4864
  const [noResults, setNoResults] = (0, $hgUW1$useState)(false);
4910
- const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)('');
4865
+ const [announcementText, setAnnouncementText] = (0, $hgUW1$useState)("");
4911
4866
  let [searchParams, setSearchParams] = (0, $hgUW1$useSearchParams)();
4912
4867
  const [totalItems, setTotalItems] = (0, $hgUW1$useState)(0);
4913
4868
  const [page, setPage] = (0, $hgUW1$useState)(transformedParams.page ? transformedParams.page : defaultPage);
4914
4869
  const [sort, setSort] = (0, $hgUW1$useState)(transformedParams.sort ? transformedParams.sort : defaultSort ? defaultSort.defaultSort : defaultSortBy);
4915
4870
  const [sortOrder, setSortOrder] = (0, $hgUW1$useState)(transformedParams.sortOrder ? transformedParams.sortOrder : defaultSort ? defaultSort.defaultOrder : defaultSortOrder);
4916
4871
  const [sortDisplay, setSortDisplay] = (0, $hgUW1$useState)(()=>{
4917
- return sort === 'modified' ? sortOrder === 'desc' ? 'newest' : 'oldest' : sortOrder === 'desc' ? 'titleZA' : 'titleAZ';
4872
+ return sort === "modified" ? sortOrder === "desc" ? "newest" : "oldest" : sortOrder === "desc" ? "titleZA" : "titleAZ";
4918
4873
  });
4919
4874
  const setSortOptions = (value)=>{
4920
4875
  setSortDisplay(value);
4921
4876
  switch(value){
4922
- case 'newest':
4923
- setSort('modified');
4924
- setSortOrder('desc');
4877
+ case "newest":
4878
+ setSort("modified");
4879
+ setSortOrder("desc");
4925
4880
  break;
4926
- case 'oldest':
4927
- setSort('modified');
4928
- setSortOrder('asc');
4881
+ case "oldest":
4882
+ setSort("modified");
4883
+ setSortOrder("asc");
4929
4884
  break;
4930
- case 'titleAZ':
4931
- setSort('title');
4932
- setSortOrder('asc');
4885
+ case "titleAZ":
4886
+ setSort("title");
4887
+ setSortOrder("asc");
4933
4888
  break;
4934
- case 'titleZA':
4935
- setSort('title');
4936
- setSortOrder('desc');
4889
+ case "titleZA":
4890
+ setSort("title");
4891
+ setSortOrder("desc");
4937
4892
  break;
4938
4893
  }
4939
4894
  };
@@ -4950,9 +4905,9 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4950
4905
  }
4951
4906
  let params = {
4952
4907
  sort: sort ? sort : undefined,
4953
- ['sort-order']: sortOrder ? sortOrder : undefined,
4908
+ ["sort-order"]: sortOrder ? sortOrder : undefined,
4954
4909
  page: page !== 1 ? page : undefined,
4955
- ['page-size']: pageSize !== 10 ? pageSize : undefined
4910
+ ["page-size"]: pageSize !== 10 ? pageSize : undefined
4956
4911
  };
4957
4912
  const { data: data, isPending: isPending, error: error } = (0, $hgUW1$useQuery)({
4958
4913
  queryKey: [
@@ -4961,23 +4916,17 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
4961
4916
  ],
4962
4917
  queryFn: ()=>{
4963
4918
  return (0, $hgUW1$axios).get(`${rootUrl}/search/?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA), {
4964
- arrayFormat: 'comma',
4919
+ arrayFormat: "comma",
4965
4920
  encode: false
4966
4921
  })}`);
4967
4922
  }
4968
4923
  });
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
- ]);
4924
+ if (data && data.data.total && totalItems != data.data.total) setTotalItems(data.data.total);
4976
4925
  (0, $hgUW1$useEffect)(()=>{
4977
4926
  // Update browser URL with current search params
4978
4927
  const params = buildSearchParams(true);
4979
4928
  const url = new URL(window.location.href);
4980
- window.history.pushState({}, '', `${url.origin}${url.pathname}${params}`);
4929
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
4981
4930
  const baseNumber = Number(totalItems) > 0 ? 1 : 0;
4982
4931
  const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
4983
4932
  const endingNumber = Number(pageSize) * Number(page);
@@ -5003,8 +4952,8 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5003
4952
  ]);
5004
4953
  (0, $hgUW1$useEffect)(()=>{
5005
4954
  // No results found
5006
- if (noResults) setAnnouncementText('No results found.');
5007
- else if (!isPending && (!data || !data.data.results)) setAnnouncementText('Could not connect to the API.');
4955
+ if (noResults) setAnnouncementText("No results found.");
4956
+ else if (!isPending && (!data || !data.data.results)) setAnnouncementText("Could not connect to the API.");
5008
4957
  else setAnnouncementText(`Showing ${currentResultNumbers.startingNumber} to ${currentResultNumbers.endingNumber} of ${currentResultNumbers.total} datasets`);
5009
4958
  }, [
5010
4959
  data,
@@ -5077,7 +5026,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5077
5026
  "Showing ",
5078
5027
  currentResultNumbers.startingNumber,
5079
5028
  " -",
5080
- ' ',
5029
+ " ",
5081
5030
  currentResultNumbers.endingNumber,
5082
5031
  " of ",
5083
5032
  data.data.total,
@@ -5137,7 +5086,7 @@ const $550bcc185f420ff5$var$DatasetList = ({ rootUrl: rootUrl, enableSort: enabl
5137
5086
  },
5138
5087
  renderHref: (page)=>{
5139
5088
  const searchParams = buildSearchParams(false);
5140
- const includeAnd = searchParams ? '&' : '';
5089
+ const includeAnd = searchParams ? "&" : "";
5141
5090
  return `/datasets?page=${page}${includeAnd}${searchParams}`;
5142
5091
  }
5143
5092
  })
@@ -5169,12 +5118,12 @@ var $550bcc185f420ff5$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
5169
5118
 
5170
5119
  const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5171
5120
  const [dataset, setDataset] = (0, $hgUW1$useState)({
5172
- title: '',
5121
+ title: "",
5173
5122
  distribution: [],
5174
- error: '',
5175
- description: '',
5176
- identifier: '',
5177
- modified: ''
5123
+ error: "",
5124
+ description: "",
5125
+ identifier: "",
5126
+ modified: ""
5178
5127
  });
5179
5128
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
5180
5129
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -5184,7 +5133,7 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl)=>{
5184
5133
  "metastore" + id
5185
5134
  ],
5186
5135
  queryFn: ()=>{
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)=>{
5136
+ 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)=>{
5188
5137
  return {
5189
5138
  title: dataset.title,
5190
5139
  distribution: dataset.distribution,
@@ -5240,7 +5189,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5240
5189
  // const [joins, setJoins] = useState()
5241
5190
  const [properties, setProperties] = (0, $hgUW1$useState)(options.properties ? options.properties : undefined);
5242
5191
  // Check drupalSettings for datastore_query_api
5243
- const useDatasetAPI = typeof window !== 'undefined' && window.drupalSettings?.datastore_query_api === true;
5192
+ const useDatasetAPI = typeof window !== "undefined" && window.drupalSettings?.datastore_query_api === true;
5244
5193
  const datasetID = additionalParams.datasetID;
5245
5194
  // Remove datasetID from params to avoid sending it to the API
5246
5195
  const { datasetID: _, ...restAdditionalParams } = additionalParams;
@@ -5255,7 +5204,7 @@ const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, add
5255
5204
  ...restAdditionalParams
5256
5205
  };
5257
5206
  params = (0, $6d5c0212e738499b$export$34e95918366a058e)(params, ACA);
5258
- const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : '';
5207
+ const paramsString = Object.keys(params).length ? `${(0, $hgUW1$qs).stringify(params)}` : "";
5259
5208
  let enabled = false;
5260
5209
  if (id) {
5261
5210
  if (!requireConditions) enabled = true;
@@ -5337,65 +5286,65 @@ var $1d3d480a9cfaabe0$export$2e2bcd8739ae039 = $1d3d480a9cfaabe0$var$useDatastor
5337
5286
 
5338
5287
 
5339
5288
  const $28f16f59778efa64$export$82b1b1d517e5388a = {
5340
- 'R/P10Y': {
5341
- name: 'Decennial'
5289
+ "R/P10Y": {
5290
+ name: "Decennial"
5342
5291
  },
5343
- 'R/P4Y': {
5344
- name: 'Quadrennial'
5292
+ "R/P4Y": {
5293
+ name: "Quadrennial"
5345
5294
  },
5346
- 'R/P1Y': {
5347
- name: 'Annual'
5295
+ "R/P1Y": {
5296
+ name: "Annual"
5348
5297
  },
5349
- 'R/P2M': {
5350
- name: 'Bimonthly'
5298
+ "R/P2M": {
5299
+ name: "Bimonthly"
5351
5300
  },
5352
- 'R/P3.5D': {
5353
- name: 'Semiweekly'
5301
+ "R/P3.5D": {
5302
+ name: "Semiweekly"
5354
5303
  },
5355
- 'R/P1D': {
5356
- name: 'Daily'
5304
+ "R/P1D": {
5305
+ name: "Daily"
5357
5306
  },
5358
- 'R/P2W': {
5359
- name: 'Biweekly'
5307
+ "R/P2W": {
5308
+ name: "Biweekly"
5360
5309
  },
5361
- 'R/P6M': {
5362
- name: 'Semiannual'
5310
+ "R/P6M": {
5311
+ name: "Semiannual"
5363
5312
  },
5364
- 'R/P2Y': {
5365
- name: 'Biennial'
5313
+ "R/P2Y": {
5314
+ name: "Biennial"
5366
5315
  },
5367
- 'R/P3Y': {
5368
- name: 'Triennial'
5316
+ "R/P3Y": {
5317
+ name: "Triennial"
5369
5318
  },
5370
- 'R/P0.33W': {
5371
- name: 'Three times a week'
5319
+ "R/P0.33W": {
5320
+ name: "Three times a week"
5372
5321
  },
5373
- 'R/P0.33M': {
5374
- name: 'Three times a month'
5322
+ "R/P0.33M": {
5323
+ name: "Three times a month"
5375
5324
  },
5376
- 'R/PT1S': {
5377
- name: 'Continuously updated'
5325
+ "R/PT1S": {
5326
+ name: "Continuously updated"
5378
5327
  },
5379
- 'R/P1M': {
5380
- name: 'Monthly'
5328
+ "R/P1M": {
5329
+ name: "Monthly"
5381
5330
  },
5382
- 'R/P3M': {
5383
- name: 'Quarterly'
5331
+ "R/P3M": {
5332
+ name: "Quarterly"
5384
5333
  },
5385
- 'R/P0.5M': {
5386
- name: 'Semimonthly'
5334
+ "R/P0.5M": {
5335
+ name: "Semimonthly"
5387
5336
  },
5388
- 'R/P4M': {
5389
- name: 'Three times a year'
5337
+ "R/P4M": {
5338
+ name: "Three times a year"
5390
5339
  },
5391
- 'R/P1W': {
5392
- name: 'Weekly'
5340
+ "R/P1W": {
5341
+ name: "Weekly"
5393
5342
  },
5394
- 'R/PT1H': {
5395
- name: 'Hourly'
5343
+ "R/PT1H": {
5344
+ name: "Hourly"
5396
5345
  },
5397
5346
  irregular: {
5398
- name: 'Irregular'
5347
+ name: "Irregular"
5399
5348
  }
5400
5349
  };
5401
5350
 
@@ -5404,7 +5353,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5404
5353
  modified: (data)=>{
5405
5354
  return [
5406
5355
  {
5407
- label: 'Modified',
5356
+ label: "Modified",
5408
5357
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5409
5358
  date: data
5410
5359
  })
@@ -5414,7 +5363,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5414
5363
  issued: (data)=>{
5415
5364
  return [
5416
5365
  {
5417
- label: 'Issued',
5366
+ label: "Issued",
5418
5367
  value: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5419
5368
  date: data
5420
5369
  })
@@ -5424,7 +5373,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5424
5373
  accrualPeriodicity: (data)=>{
5425
5374
  return [
5426
5375
  {
5427
- label: 'Frequency',
5376
+ label: "Frequency",
5428
5377
  value: (0, $28f16f59778efa64$export$82b1b1d517e5388a)[data].name
5429
5378
  }
5430
5379
  ];
@@ -5432,7 +5381,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5432
5381
  publisher: (data)=>{
5433
5382
  if (data.data && data.data.name) return [
5434
5383
  {
5435
- label: 'Publisher',
5384
+ label: "Publisher",
5436
5385
  value: data.data.name
5437
5386
  }
5438
5387
  ];
@@ -5441,7 +5390,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5441
5390
  identifier: (data)=>{
5442
5391
  return [
5443
5392
  {
5444
- label: 'Identifier',
5393
+ label: "Identifier",
5445
5394
  value: data
5446
5395
  }
5447
5396
  ];
@@ -5449,11 +5398,11 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5449
5398
  contactPoint: (data)=>{
5450
5399
  let rows = [];
5451
5400
  if (data.fn) rows.push({
5452
- label: 'Contact',
5401
+ label: "Contact",
5453
5402
  value: data.fn
5454
5403
  });
5455
5404
  if (data.hasEmail) rows.push({
5456
- label: 'Contact Email',
5405
+ label: "Contact Email",
5457
5406
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5458
5407
  href: data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`,
5459
5408
  children: data.hasEmail.replace("mailto:", "")
@@ -5464,7 +5413,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5464
5413
  bureauCode: (data)=>{
5465
5414
  if (data.length) return [
5466
5415
  {
5467
- label: 'Bureau Code',
5416
+ label: "Bureau Code",
5468
5417
  value: data[0]
5469
5418
  }
5470
5419
  ];
@@ -5472,7 +5421,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5472
5421
  programCode: (data)=>{
5473
5422
  if (data.length) return [
5474
5423
  {
5475
- label: 'Program Code',
5424
+ label: "Program Code",
5476
5425
  value: data[0]
5477
5426
  }
5478
5427
  ];
@@ -5480,13 +5429,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5480
5429
  theme: (data)=>{
5481
5430
  return [
5482
5431
  {
5483
- label: 'Category',
5432
+ label: "Category",
5484
5433
  value: data.map((theme)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5485
5434
  to: `/datasets?theme[]=${theme.data}`,
5486
5435
  children: theme.data
5487
5436
  }, theme.data)).reduce((prev, curr)=>[
5488
5437
  prev,
5489
- ', ',
5438
+ ", ",
5490
5439
  curr
5491
5440
  ])
5492
5441
  }
@@ -5495,13 +5444,13 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5495
5444
  keyword: (data)=>{
5496
5445
  return [
5497
5446
  {
5498
- label: 'Tags',
5447
+ label: "Tags",
5499
5448
  value: data.map((keyword)=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
5500
5449
  to: `/datasets?keyword[]=${keyword.data}`,
5501
5450
  children: keyword.data
5502
5451
  }, keyword.data)).reduce((prev, curr)=>[
5503
5452
  prev,
5504
- ', ',
5453
+ ", ",
5505
5454
  curr
5506
5455
  ])
5507
5456
  }
@@ -5510,7 +5459,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5510
5459
  license: (data)=>{
5511
5460
  return [
5512
5461
  {
5513
- label: 'License',
5462
+ label: "License",
5514
5463
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
5515
5464
  href: data,
5516
5465
  children: data
@@ -5521,7 +5470,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5521
5470
  accessLevel: (data)=>{
5522
5471
  return [
5523
5472
  {
5524
- label: 'Public Access Level',
5473
+ label: "Public Access Level",
5525
5474
  value: data
5526
5475
  }
5527
5476
  ];
@@ -5529,7 +5478,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5529
5478
  temporal: (data)=>{
5530
5479
  return [
5531
5480
  {
5532
- label: 'Temporal Coverage',
5481
+ label: "Temporal Coverage",
5533
5482
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
5534
5483
  className: "dc-c-word-break--all",
5535
5484
  children: data
@@ -5540,7 +5489,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5540
5489
  spatial: (data)=>{
5541
5490
  return [
5542
5491
  {
5543
- label: 'Spacial/Geographical Coverage',
5492
+ label: "Spacial/Geographical Coverage",
5544
5493
  value: data
5545
5494
  }
5546
5495
  ];
@@ -5548,7 +5497,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
5548
5497
  references: (data)=>{
5549
5498
  return [
5550
5499
  {
5551
- label: 'Related Documents',
5500
+ label: "Related Documents",
5552
5501
  value: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
5553
5502
  className: "ds-u-margin--0 ds-u-padding-y--0 ds-u-padding-left--2 ds-u-padding-right--0",
5554
5503
  children: data.map((item)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -5586,7 +5535,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5586
5535
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
5587
5536
  const { data: resource } = (0, $hgUW1$useQuery)({
5588
5537
  queryKey: [
5589
- 'resource-information',
5538
+ "resource-information",
5590
5539
  distribution.identifier
5591
5540
  ],
5592
5541
  queryFn: ()=>(0, $hgUW1$axios).get(`${rootUrl}/datastore/query/${distribution.identifier}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({
@@ -5613,7 +5562,7 @@ const $0958733ee130fc44$var$ResourceInformation = ({ distribution: distribution,
5613
5562
  }),
5614
5563
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5615
5564
  className: "ds-u-font-weight--bold",
5616
- children: resource?.count ? Number(resource.count).toLocaleString() : ''
5565
+ children: resource?.count ? Number(resource.count).toLocaleString() : ""
5617
5566
  })
5618
5567
  ]
5619
5568
  }),
@@ -5681,8 +5630,8 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5681
5630
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
5682
5631
  href: dist.data.downloadURL,
5683
5632
  style: {
5684
- order: sm ? '1' : '0',
5685
- width: sm ? '100%' : 'auto'
5633
+ order: sm ? "1" : "0",
5634
+ width: sm ? "100%" : "auto"
5686
5635
  },
5687
5636
  "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
5688
5637
  className: "ds-c-button",
@@ -5695,7 +5644,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
5695
5644
  })
5696
5645
  }),
5697
5646
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5698
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
5647
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
5699
5648
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5700
5649
  className: "dc-c-metadata-description ds-u-margin--0",
5701
5650
  dangerouslySetInnerHTML: {
@@ -5769,7 +5718,7 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5769
5718
  const tooltip = tooltips.find((item)=>item.label === r.label.toLowerCase());
5770
5719
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
5771
5720
  children: [
5772
- md ? '' : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5721
+ md ? "" : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
5773
5722
  component: "th",
5774
5723
  className: "ds-u-font-weight--bold",
5775
5724
  children: [
@@ -5781,8 +5730,8 @@ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: res
5781
5730
  ariaLabel: r.label,
5782
5731
  // @ts-ignore
5783
5732
  style: {
5784
- border: 'none',
5785
- background: 'none'
5733
+ border: "none",
5734
+ background: "none"
5786
5735
  },
5787
5736
  maxWidth: "400px",
5788
5737
  placement: "auto",
@@ -5841,10 +5790,10 @@ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: ap
5841
5790
  href: apiUrl,
5842
5791
  children: [
5843
5792
  "View API",
5844
- ' ',
5793
+ " ",
5845
5794
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5846
5795
  style: {
5847
- whiteSpace: 'nowrap'
5796
+ whiteSpace: "nowrap"
5848
5797
  },
5849
5798
  children: [
5850
5799
  "specification ",
@@ -5885,20 +5834,19 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
5885
5834
 
5886
5835
  const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns, tableData: tableData, pageSize: pageSize, columnFilters: columnFilters })=>{
5887
5836
  const [sorting, setSorting] = (0, $hgUW1$useState)([]);
5888
- const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)('');
5889
5837
  const mobile = (0, $hgUW1$useMediaQuery)({
5890
5838
  minWidth: 0,
5891
5839
  maxWidth: 544
5892
5840
  });
5893
5841
  const sortElement = (isSorted)=>{
5894
- if (isSorted === 'asc') return 'dc-c-sort--asc';
5895
- if (isSorted === 'desc') return 'dc-c-sort--desc';
5896
- return 'dc-c-sort--default';
5842
+ if (isSorted === "asc") return "dc-c-sort--asc";
5843
+ if (isSorted === "desc") return "dc-c-sort--desc";
5844
+ return "dc-c-sort--default";
5897
5845
  };
5898
5846
  const table = (0, $hgUW1$useReactTable)({
5899
5847
  data: tableData,
5900
5848
  columns: tableColumns,
5901
- columnResizeMode: 'onChange',
5849
+ columnResizeMode: "onChange",
5902
5850
  getCoreRowModel: (0, $hgUW1$getCoreRowModel)(),
5903
5851
  getFilteredRowModel: (0, $hgUW1$getFilteredRowModel)(),
5904
5852
  getPaginationRowModel: (0, $hgUW1$getPaginationRowModel)(),
@@ -5917,49 +5865,49 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5917
5865
  });
5918
5866
  const sortOptions = [
5919
5867
  {
5920
- value: 'default',
5921
- label: 'No Sort'
5868
+ value: "default",
5869
+ label: "No Sort"
5922
5870
  },
5923
5871
  {
5924
- value: 'titleasc',
5925
- label: 'Title A-Z'
5872
+ value: "titleasc",
5873
+ label: "Title A-Z"
5926
5874
  },
5927
5875
  {
5928
- value: 'titledesc',
5929
- label: 'Title Z-A'
5876
+ value: "titledesc",
5877
+ label: "Title Z-A"
5930
5878
  },
5931
5879
  {
5932
- value: 'typeasc',
5933
- label: 'Type A-Z'
5880
+ value: "typeasc",
5881
+ label: "Type A-Z"
5934
5882
  },
5935
5883
  {
5936
- value: 'typedesc',
5937
- label: 'Type Z-A'
5884
+ value: "typedesc",
5885
+ label: "Type Z-A"
5938
5886
  }
5939
5887
  ];
5940
5888
  const sortStatesLookup = {
5941
5889
  default: [],
5942
5890
  titleasc: [
5943
5891
  {
5944
- id: 'titleResizable',
5892
+ id: "titleResizable",
5945
5893
  desc: false
5946
5894
  }
5947
5895
  ],
5948
5896
  titledesc: [
5949
5897
  {
5950
- id: 'titleResizable',
5898
+ id: "titleResizable",
5951
5899
  desc: true
5952
5900
  }
5953
5901
  ],
5954
5902
  typeasc: [
5955
5903
  {
5956
- id: 'type',
5904
+ id: "type",
5957
5905
  desc: false
5958
5906
  }
5959
5907
  ],
5960
5908
  typedesc: [
5961
5909
  {
5962
- id: 'type',
5910
+ id: "type",
5963
5911
  desc: true
5964
5912
  }
5965
5913
  ]
@@ -5987,7 +5935,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5987
5935
  /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
5988
5936
  className: "dc-c-datatable",
5989
5937
  style: {
5990
- width: '100%'
5938
+ width: "100%"
5991
5939
  },
5992
5940
  stackable: true,
5993
5941
  children: [
@@ -5998,18 +5946,17 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
5998
5946
  return header.id === "titleResizable" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $64a351d3fd8413c3$export$2e2bcd8739ae039), {
5999
5947
  table: table,
6000
5948
  header: header,
6001
- setAriaLiveFeedback: setAriaLiveFeedback,
6002
5949
  sortElement: sortElement,
6003
- id: 'dataDictionary_' + header.id
5950
+ id: "dataDictionary_" + header.id
6004
5951
  }, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
6005
5952
  key: header.id,
6006
5953
  className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
6007
- id: 'dataDictionary_' + header.id,
5954
+ id: "dataDictionary_" + header.id,
6008
5955
  children: [
6009
5956
  (0, $hgUW1$flexRender)(header.column.columnDef.header, header.getContext()),
6010
- header.id === 'type' && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
5957
+ header.id === "type" && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
6011
5958
  onClick: header.column.getToggleSortingHandler(),
6012
- className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : '',
5959
+ className: header.column.getCanSort() ? `cursor-pointer select-none ds-u-focus-visible ${sortElement(header.column.getIsSorted())}` : "",
6013
5960
  "aria-label": `${header.column.columnDef.header} sort order`
6014
5961
  })
6015
5962
  ]
@@ -6024,12 +5971,12 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6024
5971
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
6025
5972
  key: cell.id,
6026
5973
  style: {
6027
- maxWidth: mobile ? '100%' : cell.column.getSize(),
6028
- whiteSpace: cell.column.id === "description" ? 'pre-wrap' : 'normal'
5974
+ maxWidth: mobile ? "100%" : cell.column.getSize(),
5975
+ whiteSpace: cell.column.id === "description" ? "pre-wrap" : "normal"
6029
5976
  },
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,
5977
+ className: `${cell.column.id === "titleResizable" ? "ds-u-word-break" : ""}`,
5978
+ headers: "dataDictionary_" + cell.column.id,
5979
+ stackedTitle: cell.column.id === "titleResizable" ? "Title" : cell.column.columnDef.header,
6033
5980
  children: (0, $hgUW1$flexRender)(cell.column.columnDef.cell, cell.getContext())
6034
5981
  });
6035
5982
  })
@@ -6038,12 +5985,6 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6038
5985
  })
6039
5986
  ]
6040
5987
  }),
6041
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6042
- className: "sr-only",
6043
- "aria-live": "assertive",
6044
- "aria-atomic": "true",
6045
- children: ariaLiveFeedback
6046
- }),
6047
5988
  table.getRowModel().rows.length === 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
6048
5989
  variation: "warn",
6049
5990
  children: "No results found for the current filters"
@@ -6058,7 +5999,7 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
6058
5999
  table.setPageIndex(page - 1);
6059
6000
  },
6060
6001
  renderHref: (page)=>`/page=${page}`
6061
- }) : ''
6002
+ }) : ""
6062
6003
  ]
6063
6004
  });
6064
6005
  };
@@ -6068,17 +6009,17 @@ var $6765a74df807d015$export$2e2bcd8739ae039 = $6765a74df807d015$var$DataDiction
6068
6009
  const $a24829b27758fe6c$var$SitewideDataDictionaryTable = ({ datasetDictionary: datasetDictionary, pageSize: pageSize })=>{
6069
6010
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6070
6011
  const tableColumns = [
6071
- columnHelper.accessor('name', {
6072
- header: 'Name'
6012
+ columnHelper.accessor("name", {
6013
+ header: "Name"
6073
6014
  }),
6074
- columnHelper.accessor('title', {
6075
- header: 'Title'
6015
+ columnHelper.accessor("title", {
6016
+ header: "Title"
6076
6017
  }),
6077
- columnHelper.accessor('type', {
6078
- header: 'Type'
6018
+ columnHelper.accessor("type", {
6019
+ header: "Type"
6079
6020
  }),
6080
- columnHelper.accessor('format', {
6081
- header: 'Format'
6021
+ columnHelper.accessor("format", {
6022
+ header: "Format"
6082
6023
  })
6083
6024
  ];
6084
6025
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6765a74df807d015$export$2e2bcd8739ae039), {
@@ -6122,7 +6063,7 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6122
6063
  });
6123
6064
  const columnHelper = (0, $hgUW1$createColumnHelper)();
6124
6065
  const tableColumns = [
6125
- columnHelper.accessor('titleResizable', {
6066
+ columnHelper.accessor("titleResizable", {
6126
6067
  header: ()=>/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6127
6068
  className: "dc-c-tooltip-width-override",
6128
6069
  children: [
@@ -6131,8 +6072,8 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6131
6072
  title: "Title represents the column headers of the data file",
6132
6073
  // @ts-ignore
6133
6074
  style: {
6134
- border: 'none',
6135
- background: 'none'
6075
+ border: "none",
6076
+ background: "none"
6136
6077
  },
6137
6078
  maxWidth: "400px",
6138
6079
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
@@ -6142,48 +6083,48 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
6142
6083
  size: 300,
6143
6084
  minSize: 132
6144
6085
  }),
6145
- columnHelper.accessor('description', {
6146
- header: 'Description',
6086
+ columnHelper.accessor("description", {
6087
+ header: "Description",
6147
6088
  minSize: 600
6148
6089
  }),
6149
- columnHelper.accessor('type', {
6150
- header: 'Type',
6090
+ columnHelper.accessor("type", {
6091
+ header: "Type",
6151
6092
  size: 150,
6152
6093
  enableResizing: false
6153
6094
  })
6154
6095
  ];
6155
6096
  const typeOptions = [
6156
6097
  {
6157
- value: 'all',
6158
- label: 'All Types'
6098
+ value: "all",
6099
+ label: "All Types"
6159
6100
  },
6160
6101
  {
6161
- value: 'string',
6162
- label: 'String'
6102
+ value: "string",
6103
+ label: "String"
6163
6104
  },
6164
6105
  {
6165
- value: 'date',
6166
- label: 'Date'
6106
+ value: "date",
6107
+ label: "Date"
6167
6108
  },
6168
6109
  {
6169
- value: 'datetime',
6170
- label: 'Datetime'
6110
+ value: "datetime",
6111
+ label: "Datetime"
6171
6112
  },
6172
6113
  {
6173
- value: 'year',
6174
- label: 'Year'
6114
+ value: "year",
6115
+ label: "Year"
6175
6116
  },
6176
6117
  {
6177
- value: 'integer',
6178
- label: 'Integer'
6118
+ value: "integer",
6119
+ label: "Integer"
6179
6120
  },
6180
6121
  {
6181
- value: 'number',
6182
- label: 'Number'
6122
+ value: "number",
6123
+ label: "Number"
6183
6124
  },
6184
6125
  {
6185
- value: 'boolean',
6186
- label: 'Boolean'
6126
+ value: "boolean",
6127
+ label: "Boolean"
6187
6128
  }
6188
6129
  ];
6189
6130
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -6290,7 +6231,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
6290
6231
  href: datasetDictionaryEndpoint + "/csv",
6291
6232
  className: "ds-c-button",
6292
6233
  style: {
6293
- width: '100%'
6234
+ width: "100%"
6294
6235
  },
6295
6236
  children: [
6296
6237
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -6347,7 +6288,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6347
6288
  const [description, setDescription] = (0, $hgUW1$useState)("");
6348
6289
  if (!distribution && !dataset?.identifier) return null;
6349
6290
  (0, $hgUW1$useEffect)(()=>{
6350
- let newDescription = '';
6291
+ let newDescription = "";
6351
6292
  if (customDescription) newDescription = customDescription(dataset, distribution, resource);
6352
6293
  else {
6353
6294
  if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
@@ -6362,7 +6303,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
6362
6303
  customDescription
6363
6304
  ]);
6364
6305
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6365
- className: 'ds-u-measure--wide ds-u-margin-bottom--7',
6306
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
6366
6307
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6367
6308
  className: "ds-u-margin-top--0 dc-c-metadata-description",
6368
6309
  children: typeof description === "string" ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6386,7 +6327,7 @@ const $a0f13962e513caa1$var$getDataDictionary = (dataDictionaryUrl)=>{
6386
6327
  ],
6387
6328
  queryFn: ()=>{
6388
6329
  return fetch(`${dataDictionaryUrl}?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA), {
6389
- arrayFormat: 'comma',
6330
+ arrayFormat: "comma",
6390
6331
  encode: false
6391
6332
  })}`).then((res)=>res.json());
6392
6333
  }
@@ -6405,7 +6346,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6405
6346
  conditions: []
6406
6347
  };
6407
6348
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6408
- const title = dataset.title ? dataset.title : '';
6349
+ const title = dataset.title ? dataset.title : "";
6409
6350
  const metadataMapping = {
6410
6351
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
6411
6352
  ...customMetadataMapping
@@ -6413,7 +6354,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6413
6354
  let distribution = {};
6414
6355
  let distributions = dataset.distribution ? dataset.distribution : [];
6415
6356
  if (distributions.length) distribution = distributions[0];
6416
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
6357
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
6417
6358
  ...options,
6418
6359
  limit: defaultPageSize
6419
6360
  }, {
@@ -6427,7 +6368,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6427
6368
  }) : null;
6428
6369
  (0, $hgUW1$useEffect)(()=>{
6429
6370
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
6430
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
6371
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
6431
6372
  }, [
6432
6373
  distribution
6433
6374
  ]);
@@ -6482,26 +6423,26 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6482
6423
  distribution,
6483
6424
  window.location.hash
6484
6425
  ]);
6485
- const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === 'application/vnd.tableschema+json' || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6426
+ const displayDataDictionaryTab = distribution.data && distribution.data.describedBy && distribution.data.describedByType === "application/vnd.tableschema+json" || datasetSitewideDictionary && datasetSitewideDictionary.length > 0;
6486
6427
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
6487
6428
  children: dataset.error ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $026cb986f9fea2b1$export$2e2bcd8739ae039), {
6488
6429
  content: notFoundContent,
6489
6430
  siteUrl: rootUrl
6490
6431
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6491
- className: 'ds-l-container',
6432
+ className: "ds-l-container",
6492
6433
  children: [
6493
6434
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
6494
- className: 'ds-l-row',
6435
+ className: "ds-l-row",
6495
6436
  children: [
6496
6437
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6497
- className: 'ds-l-md-col--9',
6438
+ className: "ds-l-md-col--9",
6498
6439
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
6499
6440
  className: "ds-text-heading--3xl",
6500
6441
  children: title
6501
6442
  })
6502
6443
  }),
6503
6444
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6504
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
6445
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
6505
6446
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
6506
6447
  className: "ds-u-margin--0",
6507
6448
  children: [
@@ -6513,7 +6454,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6513
6454
  })
6514
6455
  }),
6515
6456
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6516
- className: 'ds-l-md-col--9',
6457
+ className: "ds-l-md-col--9",
6517
6458
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
6518
6459
  distribution: distribution,
6519
6460
  dataset: dataset,
@@ -6525,9 +6466,9 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6525
6466
  ]
6526
6467
  }),
6527
6468
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6528
- className: 'ds-l-row',
6469
+ className: "ds-l-row",
6529
6470
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
6530
- className: 'ds-l-md-col--12 dc-dataset',
6471
+ className: "ds-l-md-col--12 dc-dataset",
6531
6472
  children: !isPending && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Tabs), {
6532
6473
  onChange: (selectedId, prevSelectedId)=>{
6533
6474
  setSelectedTab(selectedId);
@@ -6535,7 +6476,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6535
6476
  selectedId: selectedTab,
6536
6477
  children: [
6537
6478
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6538
- id: 'data-table',
6479
+ id: "data-table",
6539
6480
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6540
6481
  className: "ds-u-color--primary",
6541
6482
  children: [
@@ -6545,7 +6486,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6545
6486
  "Data Table"
6546
6487
  ]
6547
6488
  }),
6548
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6489
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6549
6490
  children: (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution) === "csv" ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
6550
6491
  value: {
6551
6492
  id: id,
@@ -6562,7 +6503,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6562
6503
  })
6563
6504
  }),
6564
6505
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6565
- id: 'overview',
6506
+ id: "overview",
6566
6507
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6567
6508
  className: "ds-u-color--primary",
6568
6509
  children: [
@@ -6572,7 +6513,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6572
6513
  "Overview"
6573
6514
  ]
6574
6515
  }),
6575
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6516
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6576
6517
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $364dc44850cd8f7f$export$2e2bcd8739ae039), {
6577
6518
  resource: resource,
6578
6519
  dataset: dataset,
@@ -6582,7 +6523,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6582
6523
  })
6583
6524
  }),
6584
6525
  !hideDataDictionary && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6585
- id: 'data-dictionary',
6526
+ id: "data-dictionary",
6586
6527
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6587
6528
  className: "ds-u-color--primary",
6588
6529
  children: [
@@ -6592,7 +6533,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6592
6533
  "Data Dictionary"
6593
6534
  ]
6594
6535
  }),
6595
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6536
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6596
6537
  children: displayDataDictionaryTab ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $6012b86ffcaf3f71$export$2e2bcd8739ae039), {
6597
6538
  datasetSitewideDictionary: datasetSitewideDictionary,
6598
6539
  datasetDictionaryEndpoint: distribution.data.describedBy,
@@ -6603,7 +6544,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6603
6544
  })
6604
6545
  }),
6605
6546
  distribution && distribution.data && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TabPanel), {
6606
- id: 'api',
6547
+ id: "api",
6607
6548
  tab: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
6608
6549
  className: "ds-u-color--primary",
6609
6550
  children: [
@@ -6613,7 +6554,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, customColumns
6613
6554
  "API"
6614
6555
  ]
6615
6556
  }),
6616
- className: borderlessTabs ? 'ds-u-border--0 ds-u-padding-x--0' : '',
6557
+ className: borderlessTabs ? "ds-u-border--0 ds-u-padding-x--0" : "",
6617
6558
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $cf6eaefd6b928de3$export$2e2bcd8739ae039), {
6618
6559
  id: id,
6619
6560
  rootUrl: rootUrl,
@@ -6650,13 +6591,13 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6650
6591
  });
6651
6592
  const menu = (0, $hgUW1$useRef)(null);
6652
6593
  function closeMobileMenu() {
6653
- const mobileMenuButtonElement = document.querySelector('.dkan-c-mobile-menu-button');
6594
+ const mobileMenuButtonElement = document.querySelector(".dkan-c-mobile-menu-button");
6654
6595
  if (!mobileMenuButtonElement) return;
6655
6596
  mobileMenuButtonElement.focus();
6656
6597
  }
6657
6598
  // Close mobile menu with escape.
6658
6599
  function handleMenuClose(event) {
6659
- if (event.key === 'Escape' && mobileMenuOpen) setMobileMenuOpen(false);
6600
+ if (event.key === "Escape" && mobileMenuOpen) setMobileMenuOpen(false);
6660
6601
  }
6661
6602
  function handleClick(event) {
6662
6603
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
@@ -6691,7 +6632,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6691
6632
  const focusableEls = getFocusableElements(menu.current).selectors.visible;
6692
6633
  const firstEl = focusableEls[0];
6693
6634
  const lastEl = focusableEls[focusableEls.length - 1];
6694
- if (event.key === 'Tab') {
6635
+ if (event.key === "Tab") {
6695
6636
  if (event.shiftKey && document.activeElement === firstEl) {
6696
6637
  lastEl?.focus();
6697
6638
  event.preventDefault();
@@ -6703,15 +6644,15 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6703
6644
  }
6704
6645
  };
6705
6646
  (0, $hgUW1$useEffect)(()=>{
6706
- document.addEventListener('keyup', handleMenuClose);
6707
- document.addEventListener('mousedown', handleClick);
6647
+ document.addEventListener("keyup", handleMenuClose);
6648
+ document.addEventListener("mousedown", handleClick);
6708
6649
  if (mobileMenuOpen) handleFocusIn();
6709
6650
  else closeMobileMenu();
6710
- if (menu.current) menu.current.addEventListener('keydown', (evt)=>trapFocus(evt));
6651
+ if (menu.current) menu.current.addEventListener("keydown", (evt)=>trapFocus(evt));
6711
6652
  return ()=>{
6712
- document.removeEventListener('keyup', handleMenuClose);
6713
- document.addEventListener('mousedown', handleClick);
6714
- if (menu.current) menu.current.removeEventListener('keydown', trapFocus);
6653
+ document.removeEventListener("keyup", handleMenuClose);
6654
+ document.addEventListener("mousedown", handleClick);
6655
+ if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
6715
6656
  };
6716
6657
  }, [
6717
6658
  mobileMenuOpen
@@ -6726,7 +6667,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
6726
6667
  },
6727
6668
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
6728
6669
  "aria-label": "Site header",
6729
- className: `dkan-c-header dkan-c-header--${mobileMax ? 'mobile' : 'desktop'}`,
6670
+ className: `dkan-c-header dkan-c-header--${mobileMax ? "mobile" : "desktop"}`,
6730
6671
  children: [
6731
6672
  topNav && topNav,
6732
6673
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -6765,7 +6706,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6765
6706
  onClick: clickHandler ? clickHandler : undefined,
6766
6707
  children: [
6767
6708
  innerHtml,
6768
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6709
+ link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
6769
6710
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
6770
6711
  })
6771
6712
  ]
@@ -6775,7 +6716,7 @@ const $24918217e48ac525$var$NavLink = ({ link: link, className: className = null
6775
6716
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
6776
6717
 
6777
6718
 
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", {
6719
+ 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", {
6779
6720
  children: [
6780
6721
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
6781
6722
  children: "A federal government website managed and paid for by the U.S. Centers for Medicare & Medicaid Services."
@@ -6863,14 +6804,14 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6863
6804
  /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
6864
6805
  className: "ds-u-font-size--sm",
6865
6806
  children: footerAdditionalResourcesLinks.filter((link)=>{
6866
- const noOnClick = Object.keys(link).findIndex((l)=>l === 'onClick');
6807
+ const noOnClick = Object.keys(link).findIndex((l)=>l === "onClick");
6867
6808
  if (noOnClick === -1 || link.onClick && link.dataTag) return link;
6868
6809
  }).map((link)=>{
6869
6810
  if (link.onClick && link.dataTag) return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
6870
6811
  className: "ds-u-margin-bottom--1",
6871
6812
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("a", {
6872
6813
  href: link.url,
6873
- ['data-' + link.dataTag.name]: link.dataTag.value,
6814
+ ["data-" + link.dataTag.name]: link.dataTag.value,
6874
6815
  onClick: link.onClick,
6875
6816
  children: link.label
6876
6817
  })
@@ -6970,7 +6911,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
6970
6911
  children: [
6971
6912
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
6972
6913
  id: "svg-inline--fa-title-iRCARP7h6Kp3",
6973
- children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : 'CMS Facebook'
6914
+ children: socialMediaLinks.facebook.title ? socialMediaLinks.facebook.title : "CMS Facebook"
6974
6915
  }),
6975
6916
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
6976
6917
  transform: "translate(160 256)",
@@ -7023,7 +6964,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7023
6964
  children: [
7024
6965
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7025
6966
  id: "svg-inline--fa-title-4z03ITiPPTVF",
7026
- children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : 'CMS Twitter'
6967
+ children: socialMediaLinks.twitter.title ? socialMediaLinks.twitter.title : "CMS Twitter"
7027
6968
  }),
7028
6969
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7029
6970
  transform: "translate(256 256)",
@@ -7076,7 +7017,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7076
7017
  children: [
7077
7018
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7078
7019
  id: "svg-inline--fa-title-Nm2qsuSKvuRZ",
7079
- children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : 'CMS LinkedIn'
7020
+ children: socialMediaLinks.linkedin.title ? socialMediaLinks.linkedin.title : "CMS LinkedIn"
7080
7021
  }),
7081
7022
  /*#__PURE__*/ (0, $hgUW1$jsx)("g", {
7082
7023
  transform: "translate(224 256)",
@@ -7128,7 +7069,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7128
7069
  children: [
7129
7070
  /*#__PURE__*/ (0, $hgUW1$jsx)("title", {
7130
7071
  id: "svg-inline--fa-title-youtube",
7131
- children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : 'CMS youtube'
7072
+ children: socialMediaLinks.youtube.title ? socialMediaLinks.youtube.title : "CMS youtube"
7132
7073
  }),
7133
7074
  /*#__PURE__*/ (0, $hgUW1$jsx)("path", {
7134
7075
  fill: "currentColor",
@@ -7163,7 +7104,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail = tru
7163
7104
  className: "ds-u-margin-right--2",
7164
7105
  children: [
7165
7106
  link.label,
7166
- link?.target === '_blank' && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7107
+ link?.target === "_blank" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ExternalLinkIcon), {
7167
7108
  className: "ds-u-margin-left--05 ds-c-external-link-icon"
7168
7109
  })
7169
7110
  ]
@@ -7233,26 +7174,26 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7233
7174
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
7234
7175
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
7235
7176
  stackable: true,
7236
- className: 'ds-c-table',
7177
+ className: "ds-c-table",
7237
7178
  children: [
7238
7179
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableHead), {
7239
7180
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableRow), {
7240
7181
  children: [
7241
7182
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7242
- id: 'application',
7243
- headers: 'Application',
7183
+ id: "application",
7184
+ headers: "Application",
7244
7185
  children: "Application"
7245
- }, 'Application'),
7186
+ }, "Application"),
7246
7187
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7247
- id: 'notes',
7248
- headers: 'Notes',
7188
+ id: "notes",
7189
+ headers: "Notes",
7249
7190
  children: "Notes"
7250
- }, 'Notes'),
7191
+ }, "Notes"),
7251
7192
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7252
- id: 'links',
7253
- headers: 'Links',
7193
+ id: "links",
7194
+ headers: "Links",
7254
7195
  children: "Links"
7255
- }, 'Links')
7196
+ }, "Links")
7256
7197
  ]
7257
7198
  })
7258
7199
  }),
@@ -7262,19 +7203,19 @@ const $5655284dbbb89508$var$DocumentationTable = (props)=>{
7262
7203
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7263
7204
  id: d.id,
7264
7205
  stackedTitle: "Application",
7265
- headers: 'Application',
7206
+ headers: "Application",
7266
7207
  children: d.application
7267
7208
  }, d.id),
7268
7209
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7269
7210
  id: d.id,
7270
7211
  stackedTitle: "Notes",
7271
- headers: 'Notes',
7212
+ headers: "Notes",
7272
7213
  children: d.notes
7273
7214
  }, `${d.id}-notes`),
7274
7215
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TableCell), {
7275
7216
  id: d.id,
7276
7217
  stackedTitle: "Links",
7277
- headers: 'Links',
7218
+ headers: "Links",
7278
7219
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("a", {
7279
7220
  className: "dkan-newtab",
7280
7221
  href: d.link,
@@ -7302,44 +7243,44 @@ var $5655284dbbb89508$export$2e2bcd8739ae039 = $5655284dbbb89508$var$Documentati
7302
7243
 
7303
7244
  const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
7304
7245
  {
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'
7246
+ id: "excel",
7247
+ application: "Microsoft Excel",
7248
+ notes: "Official size limitations for Microsoft Excel",
7249
+ 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",
7250
+ linkText: "Excel Specifications and Limits",
7251
+ screenReaderOnlyText: "on microsoft.com"
7311
7252
  },
7312
7253
  {
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'
7254
+ id: "access",
7255
+ application: "Microsoft Access",
7256
+ notes: "Official size limitations for Microsoft Access",
7257
+ link: "https://support.microsoft.com/en-us/office/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c?ui=en-us&rs=en-us&ad=us",
7258
+ linkText: "Access 2016 Specifications",
7259
+ screenReaderOnlyText: "on microsoft.com"
7319
7260
  },
7320
7261
  {
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'
7262
+ id: "oracle-sql-developer",
7263
+ application: "Oracle SQL Developer",
7264
+ notes: "Oracle SQL Developer tool",
7265
+ link: "https://www.oracle.com/database/sqldeveloper/",
7266
+ linkText: "Oracle SQL Developer Overview",
7267
+ screenReaderOnlyText: "on oracle.com"
7327
7268
  },
7328
7269
  {
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'
7270
+ id: "oracle-database",
7271
+ application: "Oracle Database",
7272
+ notes: "Oracle Database official size limitations",
7273
+ link: "https://docs.oracle.com/cd/B28359_01/server.111/b28320/limits002.htm#i287915",
7274
+ linkText: "Oracle Physical Database Limits",
7275
+ screenReaderOnlyText: "on oracle.com"
7335
7276
  },
7336
7277
  {
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'
7278
+ id: "oracle-sql-client-tools",
7279
+ application: "Oracle SQL Client Tools",
7280
+ notes: "Oracle SQL Client Tools",
7281
+ link: "https://www.oracle.com/database/technologies/oracle-database-software-downloads.html",
7282
+ linkText: "Oracle SQL Client",
7283
+ screenReaderOnlyText: "on oracle.com"
7343
7284
  }
7344
7285
  ];
7345
7286
 
@@ -7367,7 +7308,7 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7367
7308
  }),
7368
7309
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
7369
7310
  heading: "Notice",
7370
- className: 'ds-u-margin-top--6',
7311
+ className: "ds-u-margin-top--6",
7371
7312
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
7372
7313
  className: "ds-c-alert__text",
7373
7314
  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."
@@ -7376,16 +7317,16 @@ const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
7376
7317
  ]
7377
7318
  }),
7378
7319
  /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7379
- className: 'ds-u-margin-top--4 ds-l-row',
7320
+ className: "ds-u-margin-top--4 ds-l-row",
7380
7321
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7381
- className: 'ds-l-col--12',
7322
+ className: "ds-l-col--12",
7382
7323
  children: [
7383
7324
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
7384
7325
  className: "ds-text-heading--2xl ds-text-heading--2xl",
7385
7326
  children: "Documentation by Application"
7386
7327
  }),
7387
7328
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7388
- className: 'ds-u-margin-top--4',
7329
+ className: "ds-u-margin-top--4",
7389
7330
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $5655284dbbb89508$export$2e2bcd8739ae039), {
7390
7331
  data: documentationList
7391
7332
  })
@@ -7413,7 +7354,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7413
7354
  const options = {
7414
7355
  conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
7415
7356
  property: column,
7416
- operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
7357
+ operator: operator === "is" ? "=" : operator === "is not" ? "<>" : operator === "or" ? "in" : operator,
7417
7358
  ...rest
7418
7359
  })) : []
7419
7360
  };
@@ -7421,13 +7362,13 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7421
7362
  let distribution = {};
7422
7363
  let distributions = dataset.distribution ? dataset.distribution : [];
7423
7364
  if (distributions.length) distribution = distributions[distributionIndex];
7424
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7365
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7425
7366
  ...options,
7426
7367
  limit: defaultPageSize
7427
7368
  });
7428
7369
  (0, $hgUW1$useEffect)(()=>{
7429
7370
  const localFileFormat = (0, $f764661366bd9e1b$export$ee48b7e0e4eb536e)(distribution);
7430
- if (localFileFormat === 'csv') resource.setResource(distribution.identifier);
7371
+ if (localFileFormat === "csv") resource.setResource(distribution.identifier);
7431
7372
  }, [
7432
7373
  distribution
7433
7374
  ]);
@@ -7477,7 +7418,7 @@ function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, cu
7477
7418
 
7478
7419
 
7479
7420
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
7480
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7421
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7481
7422
  const newDate = new Date(condition.value);
7482
7423
  if (newDate instanceof Date && !isNaN(newDate)) return newDate;
7483
7424
  }
@@ -7494,9 +7435,9 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7494
7435
  const [startDate, setStartDate] = (0, $hgUW1$react).useState($374c4669b044ddf8$var$getStartDate(condition, schema, id));
7495
7436
  (0, $hgUW1$useEffect)(()=>{
7496
7437
  if (property !== condition.property) {
7497
- if (property) update(index, 'property', property);
7498
- else update(index, 'property', '');
7499
- if (schema[id].fields[condition.property].mysql_type === 'date') {
7438
+ if (property) update(index, "property", property);
7439
+ else update(index, "property", "");
7440
+ if (schema[id].fields[condition.property].mysql_type === "date") {
7500
7441
  if (!value) setValue(startDate.toJSON().slice(0, 10));
7501
7442
  }
7502
7443
  }
@@ -7510,16 +7451,16 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7510
7451
  ]);
7511
7452
  (0, $hgUW1$useEffect)(()=>{
7512
7453
  if (operator !== condition.operator) {
7513
- if (operator) update(index, 'operator', operator);
7514
- else update(index, 'operator', '');
7454
+ if (operator) update(index, "operator", operator);
7455
+ else update(index, "operator", "");
7515
7456
  }
7516
7457
  }, [
7517
7458
  operator
7518
7459
  ]);
7519
7460
  (0, $hgUW1$useEffect)(()=>{
7520
7461
  if (value !== condition.value) {
7521
- if (value) update(index, 'value', value);
7522
- else update(index, 'value', '');
7462
+ if (value) update(index, "value", value);
7463
+ else update(index, "value", "");
7523
7464
  }
7524
7465
  }, [
7525
7466
  value
@@ -7543,7 +7484,7 @@ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: i
7543
7484
  onChange: (e)=>setOperator(e.target.value),
7544
7485
  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"
7545
7486
  }),
7546
- schema[id].fields[property].mysql_type === 'date' ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7487
+ schema[id].fields[property].mysql_type === "date" ? /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7547
7488
  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",
7548
7489
  children: [
7549
7490
  /*#__PURE__*/ (0, $hgUW1$jsx)("label", {
@@ -7633,12 +7574,12 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: sche
7633
7574
  className: "ds-u-font-weight--bold",
7634
7575
  children: description
7635
7576
  }),
7636
- ' ',
7577
+ " ",
7637
7578
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7638
7579
  className: "ds-u-font-weight--normal",
7639
7580
  children: operator.label.toUpperCase()
7640
7581
  }),
7641
- ' ',
7582
+ " ",
7642
7583
  /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
7643
7584
  className: "ds-u-color--success",
7644
7585
  children: formattedText
@@ -7665,19 +7606,19 @@ var $bef7bff2823feea2$export$2e2bcd8739ae039 = $bef7bff2823feea2$var$QueryTitle;
7665
7606
  function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
7666
7607
  let cond = condition;
7667
7608
  delete cond.key;
7668
- if (cond.operator === '=' || cond.operator === '<>') {
7609
+ if (cond.operator === "=" || cond.operator === "<>") {
7669
7610
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7670
- cond.value = cond.value.replace(/(^\%+|\%+$)/gm, '');
7611
+ cond.value = cond.value.replace(/(^\%+|\%+$)/gm, "");
7671
7612
  }
7672
- if (cond.operator.toLowerCase() === 'like') {
7613
+ if (cond.operator.toLowerCase() === "like") {
7673
7614
  if (Array.isArray(cond.value)) cond.value = cond.value.join();
7674
- const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, '');
7615
+ const cleanedValue = cond.value.replace(/(^\%+|\%+$)/gm, "");
7675
7616
  cond.value = `%${cleanedValue}%`;
7676
7617
  }
7677
- if (cond.operator.toLowerCase() === 'in') {
7678
- if (!Array.isArray(cond.value)) cond.value = cond.value.split(',');
7618
+ if (cond.operator.toLowerCase() === "in") {
7619
+ if (!Array.isArray(cond.value)) cond.value = cond.value.split(",");
7679
7620
  }
7680
- if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ''));
7621
+ if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
7681
7622
  return cond;
7682
7623
  }
7683
7624
  const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, customColumns: customColumns, setOffset: setOffset })=>{
@@ -7697,7 +7638,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7697
7638
  ...queryConditions,
7698
7639
  {
7699
7640
  property: fields[0],
7700
- value: '',
7641
+ value: "",
7701
7642
  operator: (0, $7264a673914aa746$export$2b9377795161999)(schema[id].fields[fields[0]].mysql_type)[0].value,
7702
7643
  key: Date.now()
7703
7644
  }
@@ -7737,7 +7678,7 @@ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, custom
7737
7678
  encodeValuesOnly: true,
7738
7679
  addQueryPrefix: true
7739
7680
  });
7740
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
7681
+ window.history.pushState({}, "", `${url.origin}${url.pathname}${urlString}`);
7741
7682
  };
7742
7683
  const updateCondition = (index, key, value)=>{
7743
7684
  let newConditions = [
@@ -7810,7 +7751,7 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
7810
7751
 
7811
7752
 
7812
7753
  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 })=>{
7813
- const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState('ds-u-padding-y--1');
7754
+ const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
7814
7755
  let apiDocs = (0, $hgUW1$useRef)();
7815
7756
  let distribution = {};
7816
7757
  let distribution_array = dataset.distribution ? dataset.distribution : [];
@@ -7822,7 +7763,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7822
7763
  } : {
7823
7764
  conditions: []
7824
7765
  };
7825
- const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)('', rootUrl, {
7766
+ const resource = (0, $1d3d480a9cfaabe0$export$2e2bcd8739ae039)("", rootUrl, {
7826
7767
  ...options,
7827
7768
  limit: 25
7828
7769
  }, {
@@ -7838,7 +7779,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7838
7779
  }, {
7839
7780
  encode: true
7840
7781
  })}&format=csv`;
7841
- const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== 'csv' ? distribution.data.title : dataset.title;
7782
+ const pageTitle = distribution.data.title && distribution.data.title.toLowerCase() !== "csv" ? distribution.data.title : dataset.title;
7842
7783
  const { ACA: ACA } = (0, $hgUW1$useContext)((0, $844981eac9b63865$export$eccc29c8d0ff408));
7843
7784
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
7844
7785
  className: "ds-l-container ds-u-padding-bottom--3 ds-u-margin-bottom--2",
@@ -7847,7 +7788,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7847
7788
  children: Object.keys(distribution).length && /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
7848
7789
  children: [
7849
7790
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7850
- className: 'ds-l-md-col--9',
7791
+ className: "ds-l-md-col--9",
7851
7792
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
7852
7793
  to: `/dataset/${id}`,
7853
7794
  className: "ds-u-padding-y--4 ds-u-display--block",
@@ -7858,14 +7799,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7858
7799
  })
7859
7800
  }),
7860
7801
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7861
- className: 'ds-l-md-col--9',
7802
+ className: "ds-l-md-col--9",
7862
7803
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
7863
7804
  className: "ds-text-heading--3xl",
7864
7805
  children: customTitle ? customTitle : pageTitle
7865
7806
  })
7866
7807
  }),
7867
7808
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7868
- className: 'ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right',
7809
+ className: "ds-l-md-col--12 ds-u-margin-y--1 ds-u-text-align--right",
7869
7810
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
7870
7811
  className: "ds-u-margin--0",
7871
7812
  children: [
@@ -7877,7 +7818,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7877
7818
  })
7878
7819
  }),
7879
7820
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7880
- className: 'ds-l-md-col--9',
7821
+ className: "ds-l-md-col--9",
7881
7822
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2bd73bb95b0c04ed$export$2e2bcd8739ae039), {
7882
7823
  distribution: distribution,
7883
7824
  dataset: dataset,
@@ -7887,13 +7828,13 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7887
7828
  })
7888
7829
  }),
7889
7830
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7890
- className: 'ds-l-md-col--12',
7831
+ className: "ds-l-md-col--12",
7891
7832
  children: Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
7892
7833
  resource: resource,
7893
7834
  id: distribution.identifier,
7894
7835
  customColumns: customColumns,
7895
7836
  setOffset: resource.setOffset
7896
- }) : ''
7837
+ }) : ""
7897
7838
  }),
7898
7839
  Object.keys(resource).length && resource.columns && Object.keys(resource.schema).length ? /*#__PURE__*/ (0, $hgUW1$jsx)((0, $43a30d745a7bbc86$export$2e2bcd8739ae039).Provider, {
7899
7840
  value: {
@@ -7904,7 +7845,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7904
7845
  customColumns: (0, $7264a673914aa746$export$8049e8f40a9bdfb8)(customColumns, resource.columns, resource.schema[distribution_array[distIndex].identifier])
7905
7846
  },
7906
7847
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7907
- className: 'ds-l-md-col--12',
7848
+ className: "ds-l-md-col--12",
7908
7849
  children: [
7909
7850
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $af099c546cb226c7$export$2e2bcd8739ae039), {
7910
7851
  includeDensity: true,
@@ -7926,14 +7867,14 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7926
7867
  ]
7927
7868
  })
7928
7869
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
7929
- className: 'ds-l-md-col--12',
7870
+ className: "ds-l-md-col--12",
7930
7871
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Spinner), {
7931
7872
  role: "status",
7932
7873
  "aria-valuetext": "Resource loading"
7933
7874
  })
7934
7875
  }),
7935
7876
  dataset.identifier && /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
7936
- className: 'ds-l-md-col--12',
7877
+ className: "ds-l-md-col--12",
7937
7878
  ref: apiDocs,
7938
7879
  children: [
7939
7880
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
@@ -7942,7 +7883,7 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
7942
7883
  }),
7943
7884
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
7944
7885
  url: `${rootUrl}/metastore/schemas/dataset/items/${dataset.identifier}/docs?${(0, $hgUW1$qs).stringify((0, $6d5c0212e738499b$export$34e95918366a058e)({}, ACA))}`,
7945
- docExpansion: 'list',
7886
+ docExpansion: "list",
7946
7887
  defaultModelsExpandDepth: -1
7947
7888
  })
7948
7889
  ]
@@ -7961,7 +7902,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
7961
7902
  const [ready, setReady] = (0, $hgUW1$useState)(false);
7962
7903
  const [error, setError] = (0, $hgUW1$useState)(false);
7963
7904
  const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
7964
- const distIndex = dist_id === 'data' ? 0 : dist_id;
7905
+ const distIndex = dist_id === "data" ? 0 : dist_id;
7965
7906
  (0, $hgUW1$useEffect)(()=>{
7966
7907
  if (dataset.error) setError(true);
7967
7908
  if (dataset.distribution && dataset.distribution.length) {