@civicactions/cmsds-open-data-components 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./main.css";
2
2
  import {jsxs as $hgUW1$jsxs, jsx as $hgUW1$jsx, Fragment as $hgUW1$Fragment} from "react/jsx-runtime";
3
3
  import $hgUW1$react, {useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect} from "react";
4
- import {Button as $hgUW1$Button, Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Dropdown as $hgUW1$Dropdown, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination, Dialog as $hgUW1$Dialog, Choice as $hgUW1$Choice, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, Tooltip as $hgUW1$Tooltip, Badge as $hgUW1$Badge, Table as $hgUW1$Table, TableBody as $hgUW1$TableBody, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableHead as $hgUW1$TableHead} from "@cmsgov/design-system";
4
+ import {Button as $hgUW1$Button, Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, TextField as $hgUW1$TextField, Spinner as $hgUW1$Spinner, Dropdown as $hgUW1$Dropdown, Alert as $hgUW1$Alert, Pagination as $hgUW1$Pagination, Dialog as $hgUW1$Dialog, AddIcon as $hgUW1$AddIcon, RemoveIcon as $hgUW1$RemoveIcon, Choice as $hgUW1$Choice, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel, Tooltip as $hgUW1$Tooltip, Badge as $hgUW1$Badge, Table as $hgUW1$Table, TableBody as $hgUW1$TableBody, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableHead as $hgUW1$TableHead} from "@cmsgov/design-system";
5
5
  import $hgUW1$proptypes from "prop-types";
6
6
  import {NavLink as $hgUW1$NavLink, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams, Link as $hgUW1$Link, useNavigate as $hgUW1$useNavigate} from "react-router-dom";
7
7
  import $hgUW1$qs from "qs";
@@ -17,6 +17,7 @@ import $hgUW1$reactdatepicker from "react-datepicker";
17
17
  import "react-datepicker/dist/react-datepicker.css";
18
18
  import {usePopper as $hgUW1$usePopper} from "react-popper";
19
19
 
20
+
20
21
  function $parcel$interopDefault(a) {
21
22
  return a && a.__esModule ? a.default : a;
22
23
  }
@@ -31,12 +32,12 @@ function $parcel$interopDefault(a) {
31
32
 
32
33
 
33
34
 
34
- const $24918217e48ac525$var$NavLink = ({ link: link , className: className , wrapLabel: wrapLabel , clickHandler: clickHandler })=>{
35
+ const $24918217e48ac525$var$NavLink = ({ link: link, className: className, wrapLabel: wrapLabel, clickHandler: clickHandler })=>{
35
36
  const innerHtml = wrapLabel ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
36
37
  children: link.label
37
38
  }) : link.label;
38
39
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$NavLink), {
39
- className: ({ isActive: isActive })=>isActive ? `dc-c-active-link ${className}` : `${className}`,
40
+ className: ({ isActive: isActive })=>isActive ? `dc-c-active-link ${className}` : `${className}`,
40
41
  to: link.url,
41
42
  onClick: clickHandler ? clickHandler : undefined,
42
43
  children: innerHtml
@@ -61,7 +62,7 @@ $24918217e48ac525$var$NavLink.propTypes = {
61
62
  var $24918217e48ac525$export$2e2bcd8739ae039 = $24918217e48ac525$var$NavLink;
62
63
 
63
64
 
64
- const $4f153ca537d853e5$var$SubMenu = ({ link: link , linkClasses: linkClasses , wrapLabel: wrapLabel })=>{
65
+ const $4f153ca537d853e5$var$SubMenu = ({ link: link, linkClasses: linkClasses, wrapLabel: wrapLabel })=>{
65
66
  const [isExpanded, setIsExapanded] = (0, $hgUW1$useState)(false);
66
67
  const innerHtml = wrapLabel ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
67
68
  children: link.label
@@ -117,7 +118,7 @@ var $4f153ca537d853e5$export$2e2bcd8739ae039 = $4f153ca537d853e5$var$SubMenu;
117
118
 
118
119
 
119
120
 
120
- const $f57121650539d8c5$var$NavBar = ({ links: links , menuName: menuName , menuId: menuId , menuClasses: menuClasses , linkClasses: linkClasses , wrapLabel: wrapLabel , clickHandler: clickHandler })=>{
121
+ const $f57121650539d8c5$var$NavBar = ({ links: links, menuName: menuName, menuId: menuId, menuClasses: menuClasses, linkClasses: linkClasses, wrapLabel: wrapLabel, clickHandler: clickHandler })=>{
121
122
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("nav", {
122
123
  className: `dc-c-${menuId}-menu`,
123
124
  "aria-labelledby": `dc-c-${menuId}-menu--heading`,
@@ -162,7 +163,7 @@ var $f57121650539d8c5$export$2e2bcd8739ae039 = $f57121650539d8c5$var$NavBar;
162
163
 
163
164
 
164
165
 
165
- const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth , additionalParams: additionalParams , rootUrl: rootUrl })=>{
166
+ const $c96c4b9ef7203c1f$var$APIPage = ({ hideAuth: hideAuth, additionalParams: additionalParams, rootUrl: rootUrl })=>{
166
167
  const hasACA = additionalParams && additionalParams.ACA ? true : false;
167
168
  let params = {
168
169
  authentication: hideAuth ? false : undefined,
@@ -190,7 +191,7 @@ var $c96c4b9ef7203c1f$export$2e2bcd8739ae039 = $c96c4b9ef7203c1f$var$APIPage;
190
191
 
191
192
 
192
193
 
193
- const $026cb986f9fea2b1$var$PageNotFound = ({ siteUrl: siteUrl , content: content })=>{
194
+ const $026cb986f9fea2b1$var$PageNotFound = ({ siteUrl: siteUrl, content: content })=>{
194
195
  return /*#__PURE__*/ (0, $hgUW1$jsx)("section", {
195
196
  className: "ds-l-container ds-u-padding-top--3",
196
197
  children: content ? content : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
@@ -269,7 +270,7 @@ var $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 = $61ff88fb3f6ee2c8$var$withQueryPr
269
270
 
270
271
  const $b61856b23f5f58a2$var$LargeFileDialog = (props)=>{
271
272
  const [modalOpen, setModalOpen] = (0, $hgUW1$useState)(false);
272
- const { downloadUrl: downloadUrl } = props;
273
+ const { downloadUrl: downloadUrl } = props;
273
274
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
274
275
  children: [
275
276
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
@@ -498,7 +499,7 @@ var $b38839fd67928f42$export$2e2bcd8739ae039 = $b38839fd67928f42$var$SearchItemI
498
499
 
499
500
 
500
501
 
501
- const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date , options: options })=>{
502
+ const $bd76a91923d7e8a7$var$TransformedDate = ({ date: date, options: options })=>{
502
503
  const rawDate = new Date(date);
503
504
  let modifiedDate = "";
504
505
  if (rawDate) modifiedDate = rawDate.toLocaleDateString("en-US", options);
@@ -518,16 +519,29 @@ var $bd76a91923d7e8a7$export$2e2bcd8739ae039 = $bd76a91923d7e8a7$var$Transformed
518
519
 
519
520
 
520
521
 
521
- const $52c6454cae137465$var$dangerousDescriptionElement = ({ children: children })=>/*#__PURE__*/ (0, $hgUW1$jsx)("span", {
522
- dangerouslySetInnerHTML: {
523
- __html: (0, $hgUW1$dompurify).sanitize(children)
524
- }
522
+ function $52c6454cae137465$var$prepDescription(description) {
523
+ if (!description) return;
524
+ if (description.length > 1 && description.substring(0, 1) === "<") {
525
+ const elementTagStart = description.indexOf("<");
526
+ const elementTagEnd = description.indexOf(">");
527
+ const elementTagInner = description.substring(elementTagStart + 1, elementTagEnd);
528
+ const elementTagLength = elementTagInner.length;
529
+ const isolatedDescriptionStart = description.indexOf(`<${elementTagInner}>`) + (elementTagLength + 2);
530
+ const isolatedDescriptionEnd = description.indexOf(`</${elementTagInner}>`);
531
+ const isolatedDescription = description.substring(isolatedDescriptionStart, isolatedDescriptionEnd);
532
+ return (0, $hgUW1$dompurify).sanitize(isolatedDescription, {
533
+ ALLOWED_TAGS: []
534
+ });
535
+ }
536
+ return (0, $hgUW1$dompurify).sanitize(description, {
537
+ ALLOWED_TAGS: []
525
538
  });
539
+ }
526
540
  const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
527
541
  const desktop = (0, $hgUW1$useMediaQuery)({
528
542
  minWidth: 1024
529
543
  });
530
- const { title: title , modified: modified , description: description , theme: theme , identifier: identifier , downloadUrl: downloadUrl , largeFile: largeFile = false , paginationEnabled: paginationEnabled } = props;
544
+ const { title: title, modified: modified, description: description, theme: theme, identifier: identifier, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled } = props;
531
545
  let linkContainerClasses = "ds-l-col--12 ds-u-margin-bottom--2";
532
546
  let linkClasses = "ds-c-button ds-u-display--block ds-u-text-align--left";
533
547
  if (desktop) {
@@ -537,10 +551,8 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
537
551
  const truncatedDescription = /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$reacttexttruncate), {
538
552
  line: 3,
539
553
  element: "p",
540
- truncateText: "",
541
- textElement: $52c6454cae137465$var$dangerousDescriptionElement,
542
- text: description,
543
- textTruncateChild: ""
554
+ truncateText: "\u2026",
555
+ text: $52c6454cae137465$var$prepDescription(description)
544
556
  });
545
557
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
546
558
  className: "dc-c-search-list-item ds-u-padding-top--3",
@@ -551,6 +563,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
551
563
  className: "ds-l-row ds-u-align-items--start",
552
564
  children: [
553
565
  /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
566
+ id: `dataset-${identifier}-updated-date`,
554
567
  className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
555
568
  children: [
556
569
  "Updated ",
@@ -562,6 +575,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
562
575
  /*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
563
576
  className: "ds-l-col--12 ds-text-heading--2xl",
564
577
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
578
+ "aria-describedby": `dataset-${identifier}-updated-date`,
565
579
  to: `/dataset/${identifier}`,
566
580
  children: title
567
581
  })
@@ -651,7 +665,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
651
665
  })
652
666
  ]
653
667
  })
654
- }, identifier);
668
+ });
655
669
  };
656
670
  var $52c6454cae137465$export$2e2bcd8739ae039 = $52c6454cae137465$var$DatasetSearchListItem;
657
671
 
@@ -661,10 +675,16 @@ var $52c6454cae137465$export$2e2bcd8739ae039 = $52c6454cae137465$var$DatasetSear
661
675
 
662
676
 
663
677
  const $e011250e8a3bd5e5$var$SearchFacets = (props)=>{
664
- const { facets: facets , title: title , onClickFunction: onClickFunction , selectedFacets: selectedFacets = [] } = props;
678
+ const { facets: facets, title: title, onClickFunction: onClickFunction, selectedFacets: selectedFacets = [] } = props;
665
679
  const filteredFacets = facets.filter((f)=>{
666
680
  return Number(f.total) > 0 || selectedFacets.findIndex((i)=>i === f.name) !== -1;
667
681
  });
682
+ const hiddenAddIcon = ()=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$AddIcon), {
683
+ ariaHidden: true
684
+ });
685
+ const hiddenCloseIcon = ()=>/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$RemoveIcon), {
686
+ ariaHidden: true
687
+ });
668
688
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
669
689
  className: "dkan-dataset-search--facet-container ds-u-margin-bottom--4",
670
690
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Accordion), {
@@ -672,6 +692,8 @@ const $e011250e8a3bd5e5$var$SearchFacets = (props)=>{
672
692
  contentClassName: "ds-u-padding-left--1 ds-u-padding-right--0",
673
693
  heading: title,
674
694
  defaultOpen: true,
695
+ openIconComponent: hiddenAddIcon,
696
+ closeIconComponent: hiddenCloseIcon,
675
697
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
676
698
  children: filteredFacets.length ? filteredFacets.map((f)=>{
677
699
  return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
@@ -721,7 +743,7 @@ var $3b2d31a9c6cd2284$export$2e2bcd8739ae039 = $3b2d31a9c6cd2284$var$LargeFileIn
721
743
 
722
744
 
723
745
  const $0a551147dc92a718$var$SearchButton = (props)=>{
724
- const { text: text , altMobileStyle: altMobileStyle } = props;
746
+ const { text: text, altMobileStyle: altMobileStyle } = props;
725
747
  const sm = (0, $hgUW1$useMediaQuery)({
726
748
  minWidth: 0,
727
749
  maxWidth: 768
@@ -765,7 +787,7 @@ var $0a551147dc92a718$export$2e2bcd8739ae039 = $0a551147dc92a718$var$SearchButto
765
787
 
766
788
 
767
789
  const $5723016a5461c1ca$var$PageHeader = (props)=>{
768
- const { headerText: headerText } = props;
790
+ const { headerText: headerText } = props;
769
791
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
770
792
  className: "ds-l-container",
771
793
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -827,7 +849,7 @@ function $eff7d34c30f5a0fc$export$60ec7cc1d341a524(searchParams, defaultSortOpti
827
849
  };
828
850
  }
829
851
  async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, additionalParams) {
830
- const { fulltext: fulltext , selectedFacets: selectedFacets , sort: sort , sortOrder: sortOrder , page: page , pageSize: pageSize } = options;
852
+ const { fulltext: fulltext, selectedFacets: selectedFacets, sort: sort, sortOrder: sortOrder, page: page, pageSize: pageSize } = options;
831
853
  let params = {
832
854
  fulltext: fulltext ? fulltext : undefined,
833
855
  ...selectedFacets,
@@ -846,7 +868,7 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, addit
846
868
 
847
869
 
848
870
  const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
849
- const { rootUrl: rootUrl , surveyLink: surveyLink , additionalParams: additionalParams , enableSort: enableSort , enablePagination: enablePagination = true , defaultPageSize: defaultPageSize = 10 , defaultSort: defaultSort , pageTitle: pageTitle , filterTitle: filterTitle , showLargeFileWarning: showLargeFileWarning , largeFileThemes: largeFileThemes , introText: introText , showDownloadIcon: showDownloadIcon , altMobileSearchButton: altMobileSearchButton } = props;
871
+ const { rootUrl: rootUrl, surveyLink: surveyLink, additionalParams: additionalParams, enableSort: enableSort, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort, pageTitle: pageTitle, filterTitle: filterTitle, showLargeFileWarning: showLargeFileWarning, largeFileThemes: largeFileThemes, introText: introText, showDownloadIcon: showDownloadIcon, altMobileSearchButton: altMobileSearchButton } = props;
850
872
  const sortOptions = [
851
873
  {
852
874
  label: "Newest",
@@ -988,7 +1010,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
988
1010
  ["page-size"]: pageSize !== 10 ? pageSize : undefined,
989
1011
  ...additionalParams
990
1012
  };
991
- const { data: data , isLoading: isLoading , error: error } = (0, $hgUW1$useQuery)({
1013
+ const { data: data, isLoading: isLoading, error: error } = (0, $hgUW1$useQuery)({
992
1014
  queryKey: [
993
1015
  "datasets",
994
1016
  params
@@ -1157,7 +1179,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1157
1179
  downloadUrl: showDownloadIcon ? getDownloadUrl(item) : null,
1158
1180
  largeFile: showLargeFile,
1159
1181
  paginationEnabled: enablePagination
1160
- });
1182
+ }, item.identifier);
1161
1183
  }) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
1162
1184
  variation: "error",
1163
1185
  heading: "Could not connect to the API."
@@ -1243,7 +1265,8 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl, additi
1243
1265
  distribution: [],
1244
1266
  error: "",
1245
1267
  description: "",
1246
- identifier: ""
1268
+ identifier: "",
1269
+ modified: ""
1247
1270
  });
1248
1271
  const [id, setId] = (0, $hgUW1$useState)(datasetId);
1249
1272
  const [rootUrl, setRootUrl] = (0, $hgUW1$useState)(rootAPIUrl);
@@ -1255,7 +1278,8 @@ const $b4aa9c66f2e86959$var$useMetastoreDataset = (datasetId, rootAPIUrl, additi
1255
1278
  distribution: dataset.distribution,
1256
1279
  error: error,
1257
1280
  description: dataset.description,
1258
- identifier: dataset.identifier
1281
+ identifier: dataset.identifier,
1282
+ modified: dataset.modified
1259
1283
  }));
1260
1284
  }
1261
1285
  fetchData();
@@ -1278,7 +1302,7 @@ var $b4aa9c66f2e86959$export$2e2bcd8739ae039 = $b4aa9c66f2e86959$var$useMetastor
1278
1302
 
1279
1303
 
1280
1304
  async function $0e7628cf73c71646$export$55f990b5477765d6(id, rootUrl, options, additionalParams) {
1281
- const { keys: keys , limit: limit , offset: offset , conditions: conditions , sort: sort , groupings: groupings , prepareColumns: prepareColumns , properties: properties , setValues: setValues , setCount: setCount , setColumns: setColumns , setLoading: setLoading , setSchema: setSchema } = options;
1305
+ const { keys: keys, limit: limit, offset: offset, conditions: conditions, sort: sort, groupings: groupings, prepareColumns: prepareColumns, properties: properties, setValues: setValues, setCount: setCount, setColumns: setColumns, setLoading: setLoading, setSchema: setSchema } = options;
1282
1306
  if (!id) // TODO: Throw error
1283
1307
  return false;
1284
1308
  if (typeof setLoading === "function") setLoading(true);
@@ -1302,7 +1326,7 @@ async function $0e7628cf73c71646$export$55f990b5477765d6(id, rootUrl, options, a
1302
1326
  return (0, $hgUW1$qs).stringify(params);
1303
1327
  }
1304
1328
  }).then((res)=>{
1305
- const { data: data } = res;
1329
+ const { data: data } = res;
1306
1330
  const propertyKeys = data.schema[id] && data.schema[id].fields ? Object.keys(data.schema[id].fields) : [];
1307
1331
  setValues(data.results), setCount(data.count);
1308
1332
  if (propertyKeys.length) setColumns(prepareColumns ? prepareColumns(propertyKeys) : propertyKeys);
@@ -1315,7 +1339,7 @@ async function $0e7628cf73c71646$export$55f990b5477765d6(id, rootUrl, options, a
1315
1339
 
1316
1340
  const $1d3d480a9cfaabe0$var$useDatastore = (resourceId, rootAPIUrl, options, additionalParams = {})=>{
1317
1341
  const keys = options.keys ? options.keys : true;
1318
- const { prepareColumns: prepareColumns } = options;
1342
+ const { prepareColumns: prepareColumns } = options;
1319
1343
  const [manual, setManual] = (0, $hgUW1$useState)(options.manual ? options.manual : false);
1320
1344
  const [requireConditions, setRequireConditions] = (0, $hgUW1$useState)(options.requireConditions ? options.requireConditions : false);
1321
1345
  const [values, setValues] = (0, $hgUW1$useState)([]);
@@ -1650,7 +1674,7 @@ const $6da0396069e23175$export$bc27cf7ecf44639d = {
1650
1674
 
1651
1675
 
1652
1676
 
1653
- const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table , sortElement: sortElement , setAriaLiveFeedback: setAriaLiveFeedback })=>{
1677
+ const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback })=>{
1654
1678
  const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
1655
1679
  return /*#__PURE__*/ (0, $hgUW1$jsx)("thead", {
1656
1680
  className: "dc-thead--truncated dc-thead--resizeable",
@@ -1743,7 +1767,7 @@ var $96d341d082bffec5$export$2e2bcd8739ae039 = $96d341d082bffec5$var$TruncatedRe
1743
1767
 
1744
1768
 
1745
1769
 
1746
- const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table , sortElement: sortElement })=>{
1770
+ const $23763e27eda0e8d7$var$FixedSizeTHead = ({ table: table, sortElement: sortElement })=>{
1747
1771
  return /*#__PURE__*/ (0, $hgUW1$jsx)("thead", {
1748
1772
  className: "dc-thead--fixed-size",
1749
1773
  children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
@@ -1775,7 +1799,7 @@ var $23763e27eda0e8d7$export$2e2bcd8739ae039 = $23763e27eda0e8d7$var$FixedSizeTH
1775
1799
 
1776
1800
 
1777
1801
 
1778
- const $d98f94c79ddf4e0e$var$DataTable = ({ data: data , columns: columns , setSort: setSort , sortTransform: sortTransform , tablePadding: tablePadding , canResize: canResize , loading: loading = false })=>{
1802
+ const $d98f94c79ddf4e0e$var$DataTable = ({ data: data, columns: columns, setSort: setSort, sortTransform: sortTransform, tablePadding: tablePadding, canResize: canResize, loading: loading = false })=>{
1779
1803
  const [sorting, setSorting] = (0, $hgUW1$react).useState([]);
1780
1804
  const [ariaLiveFeedback, setAriaLiveFeedback] = (0, $hgUW1$useState)("");
1781
1805
  const columnHelper = (0, $hgUW1$createColumnHelper)();
@@ -2026,7 +2050,7 @@ function $7264a673914aa746$export$2b9377795161999(type) {
2026
2050
 
2027
2051
 
2028
2052
 
2029
- const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows , limit: limit , offset: offset , className: className })=>{
2053
+ const $2ed0091f7e32d1e6$var$DataTablePageResults = ({ totalRows: totalRows, limit: limit, offset: offset, className: className })=>{
2030
2054
  const numTotalRows = totalRows;
2031
2055
  if (numTotalRows === 0) return /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
2032
2056
  className: className,
@@ -2075,8 +2099,8 @@ var $2ed0091f7e32d1e6$export$2e2bcd8739ae039 = $2ed0091f7e32d1e6$var$DataTablePa
2075
2099
 
2076
2100
 
2077
2101
 
2078
- const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource , downloadURL: downloadURL , jsonUrl: jsonUrl })=>{
2079
- const { limit: limit , offset: offset , count: count } = resource;
2102
+ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource, downloadURL: downloadURL, jsonUrl: jsonUrl })=>{
2103
+ const { limit: limit, offset: offset, count: count } = resource;
2080
2104
  const intCount = count ? count : 0;
2081
2105
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2082
2106
  className: "ds-l-row ds-u-align-items--center ds-u-margin-bottom--2",
@@ -2084,7 +2108,7 @@ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource , downloadUR
2084
2108
  className: "ds-l-col--12 ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--between ds-u-align-items--center",
2085
2109
  children: [
2086
2110
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2087
- className: "ds-l-col--12 ds-l-lg-col--6",
2111
+ className: "ds-l-col--12 ds-l-lg-col--4",
2088
2112
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $2ed0091f7e32d1e6$export$2e2bcd8739ae039), {
2089
2113
  totalRows: intCount,
2090
2114
  limit: limit,
@@ -2092,10 +2116,10 @@ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource , downloadUR
2092
2116
  })
2093
2117
  }),
2094
2118
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2095
- className: "dc-c-resource-header--buttons ds-l-col--12 ds-l-lg-col--6 ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--end ds-u-margin-bottom--2 ds-u-md-margin-bottom--0 ds-u-padding-x--0",
2119
+ className: "dc-c-resource-header--buttons ds-l-col--12 ds-l-lg-col--8 ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--end ds-u-margin-bottom--2 ds-u-md-margin-bottom--0 ds-u-padding-x--0",
2096
2120
  children: [
2097
2121
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2098
- className: "ds-l-col--12 ds-l-sm-col--auto ds-u-padding-x--0 ds-u-sm-margin-right--2 ds-u-margin-bottom--2 ds-u-sm-margin-bottom--0",
2122
+ className: "ds-l-col--12 ds-l-sm-col--auto ds-u-padding-x--0 ds-u-margin-bottom--2 ds-u-md-margin-bottom--0",
2099
2123
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Tooltip), {
2100
2124
  onOpen: ()=>{
2101
2125
  navigator.clipboard.writeText(window.location.href);
@@ -2117,18 +2141,17 @@ const $6380a4a580b24362$var$DataTableHeader = ({ resource: resource , downloadUR
2117
2141
  })
2118
2142
  }),
2119
2143
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2120
- className: "ds-l-col--12 ds-l-sm-col--auto ds-u-padding-x--0",
2144
+ className: "ds-l-col--12 ds-l-sm-col--auto ds-u-padding-x--0 ds-u-sm-margin-left--2",
2121
2145
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
2122
2146
  className: "ds-u-text-align--center ds-u-font-weight--normal ds-u-font-size--base ds-u-margin-right--1 ds-u-display--inline-block ds-l-col--12",
2123
2147
  href: downloadURL,
2124
- "aria-label": "Download filtered data (CSV)",
2125
2148
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
2126
2149
  className: "ds-u-font-weight--semibold ds-u-margin-left--1 ds-u-padding--0",
2127
2150
  children: [
2128
2151
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2129
2152
  className: "fas fa-file-csv"
2130
2153
  }),
2131
- " Export CSV"
2154
+ " Download filtered data (CSV)"
2132
2155
  ]
2133
2156
  })
2134
2157
  })
@@ -2169,8 +2192,8 @@ var $6380a4a580b24362$export$2e2bcd8739ae039 = $6380a4a580b24362$var$DataTableHe
2169
2192
 
2170
2193
 
2171
2194
 
2172
- const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions , schema: schema , customColumns: customColumns })=>{
2173
- const { fields: fields } = schema;
2195
+ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions, schema: schema, customColumns: customColumns })=>{
2196
+ const { fields: fields } = schema;
2174
2197
  if (!conditions || !conditions.length) return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
2175
2198
  children: "Add a filter"
2176
2199
  });
@@ -2238,7 +2261,7 @@ function $6369abf590ca298f$var$getStartDate(condition, schema, id) {
2238
2261
  }
2239
2262
  return new Date();
2240
2263
  }
2241
- const $6369abf590ca298f$var$QueryRow = ({ id: id , condition: condition , index: index , update: update , remove: remove , propertyOptions: propertyOptions , schema: schema })=>{
2264
+ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema })=>{
2242
2265
  const [operator, setOperator] = (0, $hgUW1$useState)(condition.operator);
2243
2266
  const [property, setProperty] = (0, $hgUW1$useState)(condition.property);
2244
2267
  const [value, setValue] = (0, $hgUW1$useState)(condition.value);
@@ -2370,8 +2393,8 @@ function $ee4ad47aa483e5b5$var$updateQueryForDatastore(condition) {
2370
2393
  return cond;
2371
2394
  }
2372
2395
  const $ee4ad47aa483e5b5$var$QueryBuilder = (props)=>{
2373
- const { resource: resource , id: id , includeSearchParams: includeSearchParams , customColumns: customColumns } = props;
2374
- const { conditions: conditions , schema: schema , setConditions: setConditions } = resource;
2396
+ const { resource: resource, id: id, includeSearchParams: includeSearchParams, customColumns: customColumns } = props;
2397
+ const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
2375
2398
  const fields = Object.keys(schema[id].fields);
2376
2399
  const [conditionsCleared, setConditionsCleared] = (0, $hgUW1$useState)(false);
2377
2400
  const [queryConditions, setQueryConditions] = (0, $hgUW1$useState)([]);
@@ -2539,7 +2562,7 @@ function $a35cf16d1488f54e$export$1147582dfae658c6(columns, schema) {
2539
2562
  accessor: column
2540
2563
  }));
2541
2564
  }
2542
- const $a35cf16d1488f54e$var$DatasetTable = ({ id: id , distribution: distribution , resource: resource , rootUrl: rootUrl , customColumns: customColumns = [] , jsonUrl: jsonUrl })=>{
2565
+ const $a35cf16d1488f54e$var$DatasetTable = ({ id: id, distribution: distribution, resource: resource, rootUrl: rootUrl, customColumns: customColumns = [], jsonUrl: jsonUrl })=>{
2543
2566
  const defaultPage = 1;
2544
2567
  const defaultPageSize = 10;
2545
2568
  const [page, setPage] = (0, $hgUW1$useState)(defaultPage);
@@ -2551,7 +2574,7 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ id: id , distribution: distributio
2551
2574
  50,
2552
2575
  100
2553
2576
  ];
2554
- const { limit: limit , setLimit: setLimit , setOffset: setOffset } = resource;
2577
+ const { limit: limit, setLimit: setLimit, setOffset: setOffset } = resource;
2555
2578
  const pageSize = limit ? limit : defaultPageSize;
2556
2579
  const downloadURL = `${rootUrl}/datastore/query/${id}/0/download?${(0, $hgUW1$qs).stringify({
2557
2580
  conditions: resource.conditions
@@ -2578,7 +2601,8 @@ const $a35cf16d1488f54e$var$DatasetTable = ({ id: id , distribution: distributio
2578
2601
  columns: columns,
2579
2602
  setSort: resource.setSort,
2580
2603
  sortTransform: (0, $aa4450dcbeef3ac0$export$385a5aba38cc3325),
2581
- tablePadding: "ds-u-padding-y--2"
2604
+ tablePadding: "ds-u-padding-y--2",
2605
+ loading: resource.loading
2582
2606
  })
2583
2607
  }),
2584
2608
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -2637,7 +2661,7 @@ function $5644ebd2c3dbfd7b$export$eea3a12df15499ca(metadataMapping, datasetInfo)
2637
2661
  });
2638
2662
  return rows;
2639
2663
  }
2640
- const $5644ebd2c3dbfd7b$var$DatasetAdditionalInformation = ({ datasetInfo: datasetInfo , id: id , metadataMapping: metadataMapping })=>{
2664
+ const $5644ebd2c3dbfd7b$var$DatasetAdditionalInformation = ({ datasetInfo: datasetInfo, id: id, metadataMapping: metadataMapping })=>{
2641
2665
  const rows = $5644ebd2c3dbfd7b$export$eea3a12df15499ca(metadataMapping, datasetInfo);
2642
2666
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2643
2667
  className: "dc-c-additional-info-table ds-u-margin-bottom--6",
@@ -2689,8 +2713,8 @@ var $5644ebd2c3dbfd7b$export$2e2bcd8739ae039 = $5644ebd2c3dbfd7b$var$DatasetAddi
2689
2713
 
2690
2714
 
2691
2715
 
2692
- const $0958733ee130fc44$var$ResourceInformation = ({ resource: resource })=>{
2693
- const { count: count , columns: columns } = resource;
2716
+ const $0958733ee130fc44$var$ResourceInformation = ({ resource: resource })=>{
2717
+ const { count: count, columns: columns } = resource;
2694
2718
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2695
2719
  className: "dc-c-resource-info-table ds-l-col--12 ds-u-padding-left--0 ds-u-margin-y--2",
2696
2720
  children: [
@@ -2738,7 +2762,7 @@ var $0958733ee130fc44$export$2e2bcd8739ae039 = $0958733ee130fc44$var$ResourceInf
2738
2762
 
2739
2763
 
2740
2764
 
2741
- const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions , resource: resource , title: title })=>{
2765
+ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource: resource, title: title })=>{
2742
2766
  function getFormatType(dist) {
2743
2767
  if (dist.data.format) return dist.data.format.toLowerCase();
2744
2768
  if (dist.data.mediaType) {
@@ -2769,7 +2793,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions , resourc
2769
2793
  children: distributions.map((dist)=>{
2770
2794
  const fileFormat = getFormatType(dist);
2771
2795
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
2772
- className: "ds-u-display--flex ds-u-flex-wrap--wrap",
2796
+ className: `ds-u-display--flex ds-u-flex-wrap--wrap ${fileFormat !== "csv" && "ds-u-margin-bottom--2"}`,
2773
2797
  children: [
2774
2798
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
2775
2799
  className: "ds-u-font-weight--bold ds-u-font-size--lg ds-l-col--12 ds-l-md-col--6 ds-u-padding-left--0",
@@ -2777,7 +2801,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions , resourc
2777
2801
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2778
2802
  className: "fa ds-u-color--primary ds-u-padding-right--1 fa-file-" + (fileFormat == "xlsx" ? "excel" : fileFormat)
2779
2803
  }),
2780
- title + " (" + fileFormat.toUpperCase() + ")"
2804
+ dist.data.title ? dist.data.title : title + " (" + fileFormat.toUpperCase() + ")"
2781
2805
  ]
2782
2806
  }),
2783
2807
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
@@ -2798,7 +2822,10 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions , resourc
2798
2822
  ]
2799
2823
  })
2800
2824
  }),
2801
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $0958733ee130fc44$export$2e2bcd8739ae039), {
2825
+ dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
2826
+ children: dist.data.description
2827
+ }),
2828
+ fileFormat === "csv" && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $0958733ee130fc44$export$2e2bcd8739ae039), {
2802
2829
  resource: resource
2803
2830
  })
2804
2831
  ]
@@ -2811,7 +2838,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions , resourc
2811
2838
  var $7357cc0f79f9c514$export$2e2bcd8739ae039 = $7357cc0f79f9c514$var$Resource;
2812
2839
 
2813
2840
 
2814
- const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset , resource: resource , distributions: distributions , metadataMapping: metadataMapping })=>{
2841
+ const $364dc44850cd8f7f$var$DatasetOverview = ({ dataset: dataset, resource: resource, distributions: distributions, metadataMapping: metadataMapping })=>{
2815
2842
  const md = (0, $hgUW1$useMediaQuery)({
2816
2843
  minWidth: 0,
2817
2844
  maxWidth: 768
@@ -2867,7 +2894,7 @@ var $364dc44850cd8f7f$export$2e2bcd8739ae039 = $364dc44850cd8f7f$var$DatasetOver
2867
2894
 
2868
2895
 
2869
2896
 
2870
- const $789279954d8eff7f$var$ApiDocumentation = ({ endpoint: endpoint })=>{
2897
+ const $789279954d8eff7f$var$ApiDocumentation = ({ endpoint: endpoint })=>{
2871
2898
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2872
2899
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$swaggeruireact), {
2873
2900
  url: endpoint
@@ -2877,7 +2904,7 @@ const $789279954d8eff7f$var$ApiDocumentation = ({ endpoint: endpoint })=>{
2877
2904
  var $789279954d8eff7f$export$2e2bcd8739ae039 = $789279954d8eff7f$var$ApiDocumentation;
2878
2905
 
2879
2906
 
2880
- const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id , rootUrl: rootUrl , apiUrl: apiUrl , additionalParams: additionalParams })=>{
2907
+ const $cf6eaefd6b928de3$var$DatasetAPI = ({ id: id, rootUrl: rootUrl, apiUrl: apiUrl, additionalParams: additionalParams })=>{
2881
2908
  return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
2882
2909
  children: [
2883
2910
  /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
@@ -2932,7 +2959,7 @@ var $cf6eaefd6b928de3$export$2e2bcd8739ae039 = $cf6eaefd6b928de3$var$DatasetAPI;
2932
2959
 
2933
2960
 
2934
2961
 
2935
- const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionary: datasetDictionary , title: title , pageSize: pageSize = 20 })=>{
2962
+ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionary: datasetDictionary, title: title, pageSize: pageSize = 20 })=>{
2936
2963
  const [pagination, setPagination] = (0, $hgUW1$useState)({
2937
2964
  pageIndex: 1,
2938
2965
  pageSize: pageSize
@@ -3020,8 +3047,9 @@ var $6012b86ffcaf3f71$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
3020
3047
 
3021
3048
 
3022
3049
 
3050
+
3023
3051
  const $a0f13962e513caa1$var$getSiteWideDataDictionary = (rootUrl, dataDictionaryUrl)=>{
3024
- const { data: data , isLoading: isLoading , error: error } = (0, $hgUW1$useQuery)({
3052
+ const { data: data, isLoading: isLoading, error: error } = (0, $hgUW1$useQuery)({
3025
3053
  queryKey: [
3026
3054
  "dictionary"
3027
3055
  ],
@@ -3034,7 +3062,7 @@ const $a0f13962e513caa1$var$getSiteWideDataDictionary = (rootUrl, dataDictionary
3034
3062
  dataDictionaryLoading: isLoading
3035
3063
  };
3036
3064
  };
3037
- const $a0f13962e513caa1$var$Dataset = ({ id: id , rootUrl: rootUrl , additionalParams: additionalParams , customColumns: customColumns , setDatasetTitle: setDatasetTitle , customMetadataMapping: customMetadataMapping , apiPageUrl: apiPageUrl = "/api" , dataDictionaryUrl: dataDictionaryUrl , borderlessTabs: borderlessTabs = false , defaultPageSize: defaultPageSize = 25 })=>{
3065
+ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalParams: additionalParams, customColumns: customColumns, setDatasetTitle: setDatasetTitle, customMetadataMapping: customMetadataMapping, apiPageUrl: apiPageUrl = "/api", dataDictionaryUrl: dataDictionaryUrl, borderlessTabs: borderlessTabs = false, defaultPageSize: defaultPageSize = 25 })=>{
3038
3066
  const options = location.search ? {
3039
3067
  ...(0, $hgUW1$qs).parse(location.search, {
3040
3068
  ignoreQueryPrefix: true
@@ -3042,7 +3070,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id , rootUrl: rootUrl , additionalP
3042
3070
  } : {
3043
3071
  conditions: []
3044
3072
  };
3045
- const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl, additionalParams);
3073
+ const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl, additionalParams);
3046
3074
  const title = dataset.title ? dataset.title : "";
3047
3075
  const metadataMapping = {
3048
3076
  ...(0, $6da0396069e23175$export$bc27cf7ecf44639d),
@@ -3056,7 +3084,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id , rootUrl: rootUrl , additionalP
3056
3084
  limit: defaultPageSize,
3057
3085
  manual: true
3058
3086
  }, additionalParams);
3059
- const { siteWideDataDictionary: siteWideDataDictionary } = dataDictionaryUrl ? $a0f13962e513caa1$var$getSiteWideDataDictionary(rootUrl, dataDictionaryUrl) : {
3087
+ const { siteWideDataDictionary: siteWideDataDictionary } = dataDictionaryUrl ? $a0f13962e513caa1$var$getSiteWideDataDictionary(rootUrl, dataDictionaryUrl) : {
3060
3088
  siteWideDataDictionary: null
3061
3089
  };
3062
3090
  // compare schema fields with siteWideDataDictionary to display commonalities for now
@@ -3125,26 +3153,41 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id , rootUrl: rootUrl , additionalP
3125
3153
  }) : /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3126
3154
  className: "ds-l-container",
3127
3155
  children: [
3128
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3156
+ /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3129
3157
  className: "ds-l-row",
3130
- children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3131
- className: "ds-l-md-col--9",
3132
- children: [
3133
- /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
3134
- className: "ds-u-margin-bottom--4 ds-h1 title-underline",
3158
+ children: [
3159
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3160
+ className: "ds-l-md-col--9",
3161
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("h1", {
3162
+ className: "ds-h1 title-underline",
3135
3163
  children: title
3136
- }),
3137
- /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3164
+ })
3165
+ }),
3166
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3167
+ className: "ds-l-md-col--12 ds-u-color--gray ds-u-margin-y--1 ds-u-text-align--right",
3168
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
3169
+ className: "ds-u-margin--0",
3170
+ children: [
3171
+ "Updated ",
3172
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
3173
+ date: dataset.modified
3174
+ })
3175
+ ]
3176
+ })
3177
+ }),
3178
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3179
+ className: "ds-l-md-col--9",
3180
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3138
3181
  className: "ds-u-measure--wide ds-u-margin-bottom--7",
3139
3182
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
3140
- className: "dc-c-metadata-description",
3183
+ className: "dc-c-metadata-description ds-u-margin--0",
3141
3184
  dangerouslySetInnerHTML: {
3142
3185
  __html: (0, $hgUW1$dompurify).sanitize(dataset.description)
3143
3186
  }
3144
3187
  })
3145
3188
  })
3146
- ]
3147
- })
3189
+ })
3190
+ ]
3148
3191
  }),
3149
3192
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3150
3193
  className: "ds-l-row",
@@ -3258,7 +3301,7 @@ var $a0f13962e513caa1$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
3258
3301
 
3259
3302
 
3260
3303
 
3261
- const $e5bfafc6d4e6f207$var$SearchModal = ({ searchFunc: searchFunc , appNodeId: appNodeId , headingText: headingText , searchModalText: searchModalText , buttonSize: buttonSize , inversedModalButton: inversedModalButton , inversedSearchButton: inversedSearchButton })=>{
3304
+ const $e5bfafc6d4e6f207$var$SearchModal = ({ searchFunc: searchFunc, appNodeId: appNodeId, headingText: headingText, searchModalText: searchModalText, buttonSize: buttonSize, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton })=>{
3262
3305
  const navigate = (0, $hgUW1$useNavigate)();
3263
3306
  const [modalSearchTerm, setModalSearchTerm] = (0, $hgUW1$useState)("");
3264
3307
  const [modalSearch, setModalSearch] = (0, $hgUW1$useState)(false);
@@ -3345,8 +3388,8 @@ var $52466563e0d69ea8$exports = {};
3345
3388
  $52466563e0d69ea8$exports = new URL("CMSGovLogo-O.90ce815c.png", import.meta.url).toString();
3346
3389
 
3347
3390
 
3348
- const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName , headerClasses: headerClasses , linkClasses: linkClasses , links: links , org: org , searchModalText: searchModalText , customSearch: customSearch , includeTopNav: includeTopNav , inversedModalButton: inversedModalButton , inversedSearchButton: inversedSearchButton , includeSearch: includeSearch })=>{
3349
- const { url: url , tagline: tagline , logo: logo , urlTitle: urlTitle , logoAltText: logoAltText } = org;
3391
+ const $2db98b8f69058a30$var$DesktopHeader = ({ siteName: siteName, headerClasses: headerClasses, linkClasses: linkClasses, links: links, org: org, searchModalText: searchModalText, customSearch: customSearch, includeTopNav: includeTopNav, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton, includeSearch: includeSearch })=>{
3392
+ const { url: url, tagline: tagline, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText } = org;
3350
3393
  const headerClassString = headerClasses ?? "dc-c-header ds-base";
3351
3394
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("header", {
3352
3395
  className: headerClassString,
@@ -3467,8 +3510,8 @@ $972485213997ff8b$exports = new URL("CMSgov@2x-white-O.78cd05d3.png", import.met
3467
3510
 
3468
3511
 
3469
3512
  let $caaccb8ea608e518$var$mobileHeaderMenuClassName = "dc-c-mobile-header--menu";
3470
- const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName , links: links , org: org , searchModalText: searchModalText , customSearch: customSearch = false , includeTopNav: includeTopNav , inversedModalButton: inversedModalButton , inversedSearchButton: inversedSearchButton , includeSearch: includeSearch })=>{
3471
- const { url: url , logo: logo , urlTitle: urlTitle , logoAltText: logoAltText , inverseLogo: inverseLogo } = org;
3513
+ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName, links: links, org: org, searchModalText: searchModalText, customSearch: customSearch = false, includeTopNav: includeTopNav, inversedModalButton: inversedModalButton, inversedSearchButton: inversedSearchButton, includeSearch: includeSearch })=>{
3514
+ const { url: url, logo: logo, urlTitle: urlTitle, logoAltText: logoAltText, inverseLogo: inverseLogo } = org;
3472
3515
  const [menuOpen, setMenuOpen] = (0, $hgUW1$useState)(false);
3473
3516
  const mobile = (0, $hgUW1$useMediaQuery)({
3474
3517
  minWidth: 0,
@@ -3507,21 +3550,15 @@ const $caaccb8ea608e518$var$MobileHeader = ({ siteName: siteName , links: links
3507
3550
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
3508
3551
  if (event.target.closest(".dc-c-search-dialog")) setMenuOpen(false);
3509
3552
  }
3510
- function handleSearchEnter(event) {
3511
- // Close upon user hitting enter on search.
3512
- if (event.keyCode === 13) setMenuOpen(false);
3513
- }
3514
3553
  function handleMenuClose(event) {
3515
3554
  // Close upon user hitting escape
3516
3555
  if (event.keyCode === 27 && menuOpen) setMenuOpen(false);
3517
3556
  }
3518
3557
  document.addEventListener("mousedown", handleClick);
3519
- document.addEventListener("keyup", handleSearchEnter);
3520
3558
  document.addEventListener("keyup", handleMenuClose);
3521
3559
  handleFocusIn();
3522
3560
  menu.current.addEventListener("keydown", (evt)=>trapFocus(evt, menu.current));
3523
3561
  return ()=>{
3524
- document.removeEventListener("keyup", handleSearchEnter);
3525
3562
  document.removeEventListener("keyup", handleMenuClose);
3526
3563
  document.removeEventListener("mousedown", handleClick);
3527
3564
  if (menu.current) menu.current.removeEventListener("keydown", trapFocus);
@@ -3687,7 +3724,7 @@ var $caaccb8ea608e518$export$2e2bcd8739ae039 = $caaccb8ea608e518$var$MobileHeade
3687
3724
 
3688
3725
 
3689
3726
 
3690
- const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth , desktopMinWidth: desktopMinWidth , siteName: siteName , links: links , org: org , includeTopNav: includeTopNav })=>{
3727
+ const $a5a6a06d249c33b8$var$Header = ({ mobileMaxWidth: mobileMaxWidth, desktopMinWidth: desktopMinWidth, siteName: siteName, links: links, org: org, includeTopNav: includeTopNav })=>{
3691
3728
  const mobile = (0, $hgUW1$useMediaQuery)({
3692
3729
  minWidth: 0,
3693
3730
  maxWidth: mobileMaxWidth
@@ -3729,7 +3766,7 @@ var $a5a6a06d249c33b8$export$2e2bcd8739ae039 = $a5a6a06d249c33b8$var$Header;
3729
3766
 
3730
3767
 
3731
3768
 
3732
- const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , emailTitle: emailTitle , emailBody: emailBody , emailLink: emailLink , emailButton: emailButton , socialMediaLinks: socialMediaLinks , hhsLogo: hhsLogo , cmsLogo: cmsLogo , trademarkContent: trademarkContent })=>{
3769
+ const $a6df0aa147323304$var$Footer = ({ links: links, showEmail: showEmail, emailTitle: emailTitle, emailBody: emailBody, emailLink: emailLink, emailButton: emailButton, socialMediaLinks: socialMediaLinks, hhsLogo: hhsLogo, cmsLogo: cmsLogo, trademarkContent: trademarkContent })=>{
3733
3770
  const xs = (0, $hgUW1$useMediaQuery)({
3734
3771
  minWidth: 0,
3735
3772
  maxWidth: 544
@@ -3741,7 +3778,7 @@ const $a6df0aa147323304$var$Footer = ({ links: links , showEmail: showEmail , em
3741
3778
  const md = (0, $hgUW1$useMediaQuery)({
3742
3779
  minWidth: 768
3743
3780
  });
3744
- const { footerOpenDataToolLinks: footerOpenDataToolLinks , footerAdditionalResourcesLinks: footerAdditionalResourcesLinks , footerUtilityLinks: footerUtilityLinks } = links;
3781
+ const { footerOpenDataToolLinks: footerOpenDataToolLinks, footerAdditionalResourcesLinks: footerAdditionalResourcesLinks, footerUtilityLinks: footerUtilityLinks } = links;
3745
3782
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("footer", {
3746
3783
  className: "dc-c-footer",
3747
3784
  children: [
@@ -4202,7 +4239,7 @@ var $a6df0aa147323304$export$2e2bcd8739ae039 = $a6df0aa147323304$var$Footer;
4202
4239
 
4203
4240
 
4204
4241
  const $5655284dbbb89508$var$DocumentationTable = (props)=>{
4205
- const { data: data } = props;
4242
+ const { data: data } = props;
4206
4243
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Fragment), {
4207
4244
  children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Table), {
4208
4245
  stackable: true,
@@ -4318,7 +4355,7 @@ const $c7bf75f7e8a68780$export$7850f4d545d994c6 = [
4318
4355
 
4319
4356
 
4320
4357
  const $669d2782ec2e2250$var$SpecsAndLimits = (props)=>{
4321
- const { documentationList: documentationList , children: children } = props;
4358
+ const { documentationList: documentationList, children: children } = props;
4322
4359
  const defaultContent = /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
4323
4360
  children: "Some datasets are extremely large and may be difficult to download and/or cause computer performance issues. The Centers for Medicare and Medicaid Services (CMS) recommends using WinZip, WinRAR, or 7-Zip for file decompression."
4324
4361
  });
@@ -4483,7 +4520,7 @@ var $efc410f5f7ac5ef3$export$2e2bcd8739ae039 = $efc410f5f7ac5ef3$var$useSearchAP
4483
4520
 
4484
4521
 
4485
4522
 
4486
- const $59a079354baa335c$var$Hero = ({ title: title , description: description , searchUrl: searchUrl , searchKey: searchKey , textfieldLabel: textfieldLabel , searchButtonText: searchButtonText })=>{
4523
+ const $59a079354baa335c$var$Hero = ({ title: title, description: description, searchUrl: searchUrl, searchKey: searchKey, textfieldLabel: textfieldLabel, searchButtonText: searchButtonText })=>{
4487
4524
  const navigate = (0, $hgUW1$useNavigate)();
4488
4525
  const [searchValue, setSearchValue] = (0, $hgUW1$react).useState("");
4489
4526
  function submitHero(e) {
@@ -4579,7 +4616,7 @@ var $59a079354baa335c$export$2e2bcd8739ae039 = $59a079354baa335c$var$Hero;
4579
4616
 
4580
4617
 
4581
4618
 
4582
- const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePadding , tablePadding: tablePadding })=>{
4619
+ const $1e012d1e3b534af0$var$DataTableDensity = ({ setTablePadding: setTablePadding, tablePadding: tablePadding })=>{
4583
4620
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4584
4621
  className: "ds-u-display--flex",
4585
4622
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
@@ -4629,7 +4666,7 @@ var $e71aee394fdad8bd$export$2e2bcd8739ae039 = $e71aee394fdad8bd$var$ManageColum
4629
4666
 
4630
4667
 
4631
4668
  const $7848c69a021266f7$var$DataTableRowChanger = (props)=>{
4632
- const { limit: limit , rowOptions: rowOptions , setLimit: setLimit } = props;
4669
+ const { limit: limit, rowOptions: rowOptions, setLimit: setLimit } = props;
4633
4670
  const rowOptionsFormatted = rowOptions.map((row)=>({
4634
4671
  label: row.toString(),
4635
4672
  value: row.toString()
@@ -4751,17 +4788,17 @@ var $ec9e1550b0b034d0$export$2e2bcd8739ae039 = $ec9e1550b0b034d0$var$SettingsIco
4751
4788
 
4752
4789
 
4753
4790
 
4754
- const $af099c546cb226c7$var$ResourceHeader = ({ setTablePadding: setTablePadding , id: id , distribution: distribution , includeFiltered: includeFiltered , includeDensity: includeDensity , includeDownload: includeDownload , resource: resource , tablePadding: tablePadding , downloadUrl: downloadUrl })=>{
4791
+ const $af099c546cb226c7$var$ResourceHeader = ({ setTablePadding: setTablePadding, id: id, distribution: distribution, includeFiltered: includeFiltered, includeDensity: includeDensity, includeDownload: includeDownload, resource: resource, tablePadding: tablePadding, downloadUrl: downloadUrl })=>{
4755
4792
  const md = (0, $hgUW1$useMediaQuery)({
4756
4793
  minWidth: 0,
4757
4794
  maxWidth: 768
4758
4795
  });
4759
- const { limit: limit , offset: offset , count: count , setLimit: setLimit , setOffset: setOffset } = resource;
4796
+ const { limit: limit, offset: offset, count: count, setLimit: setLimit, setOffset: setOffset } = resource;
4760
4797
  const intCount = count ? parseInt(count) : 0;
4761
4798
  const [referenceElement, setReferenceElement] = (0, $hgUW1$useState)(null);
4762
4799
  const [popperElement, setPopperElement] = (0, $hgUW1$useState)(null);
4763
4800
  const [arrowElement, setArrowElement] = (0, $hgUW1$useState)(null);
4764
- const { styles: styles , attributes: attributes } = (0, $hgUW1$usePopper)(referenceElement, popperElement, {
4801
+ const { styles: styles, attributes: attributes } = (0, $hgUW1$usePopper)(referenceElement, popperElement, {
4765
4802
  modifiers: [
4766
4803
  {
4767
4804
  name: "arrow",
@@ -4807,7 +4844,6 @@ const $af099c546cb226c7$var$ResourceHeader = ({ setTablePadding: setTablePadding
4807
4844
  size: "small",
4808
4845
  className: "ds-u-text-align--left ds-u-font-weight--normal ds-u-font-size--base ds-u-margin-right--1",
4809
4846
  href: downloadUrl,
4810
- "aria-label": "Download filtered data (CSV)",
4811
4847
  children: [
4812
4848
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e973bc477cdc2dc7$export$2e2bcd8739ae039), {}),
4813
4849
  !md && /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -4921,7 +4957,7 @@ function $626282d9a03c51d5$export$1147582dfae658c6(columns, schema) {
4921
4957
  accessor: column
4922
4958
  }));
4923
4959
  }
4924
- function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header , accessor: accessor , setFilter: setFilter , filterValue: filterValue } }) {
4960
+ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header, accessor: accessor, setFilter: setFilter, filterValue: filterValue } }) {
4925
4961
  return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TextField), {
4926
4962
  label: `Filter by ${Header}`,
4927
4963
  onChange: (e)=>{
@@ -4932,7 +4968,7 @@ function $626282d9a03c51d5$var$DefaultColumnFilter({ column: { Header: Header ,
4932
4968
  value: filterValue || ""
4933
4969
  });
4934
4970
  }
4935
- const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding , id: id , options: options , resource: resource , defaultSort: defaultSort , customColumns: customColumns , truncateCellHeader: truncateCellHeader , columnSettings: columnSettings , columnWidths: columnWidths , customClasses: customClasses , canResize: canResize })=>{
4971
+ const $626282d9a03c51d5$var$ResourcePreview = ({ tablePadding: tablePadding, id: id, options: options, resource: resource, defaultSort: defaultSort, customColumns: customColumns, truncateCellHeader: truncateCellHeader, columnSettings: columnSettings, columnWidths: columnWidths, customClasses: customClasses, canResize: canResize })=>{
4936
4972
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4937
4973
  id: "resource-preview",
4938
4974
  className: "ds-u-overflow--auto ds-u-border-x--1 ds-u-border-bottom--1",
@@ -4989,8 +5025,8 @@ var $626282d9a03c51d5$export$2e2bcd8739ae039 = $626282d9a03c51d5$var$ResourcePre
4989
5025
 
4990
5026
 
4991
5027
 
4992
- const $072291d44ce1834a$var$ResourceFooter = ({ resource: resource })=>{
4993
- const { limit: limit , values: values , offset: offset , count: count , setOffset: setOffset } = resource;
5028
+ const $072291d44ce1834a$var$ResourceFooter = ({ resource: resource })=>{
5029
+ const { limit: limit, values: values, offset: offset, count: count, setOffset: setOffset } = resource;
4994
5030
  return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
4995
5031
  children: values.length > 0 && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Pagination), {
4996
5032
  id: "test-default",
@@ -5014,7 +5050,7 @@ var $072291d44ce1834a$export$2e2bcd8739ae039 = $072291d44ce1834a$var$ResourceFoo
5014
5050
 
5015
5051
 
5016
5052
 
5017
- const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage , pageTrail: pageTrail = [] })=>{
5053
+ const $ec3e23baa005dc03$var$Breadcrumb = ({ currentPage: currentPage, pageTrail: pageTrail = [] })=>{
5018
5054
  const pageTrailContent = pageTrail.map((page)=>/*#__PURE__*/ (0, $hgUW1$jsx)("li", {
5019
5055
  class: "dc-c-breadcrumb__list-item",
5020
5056
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
@@ -5092,7 +5128,7 @@ function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
5092
5128
  }
5093
5129
  return new Date();
5094
5130
  }
5095
- const $374c4669b044ddf8$var$QueryRow = ({ id: id , condition: condition , index: index , update: update , remove: remove , propertyOptions: propertyOptions , schema: schema })=>{
5131
+ const $374c4669b044ddf8$var$QueryRow = ({ id: id, condition: condition, index: index, update: update, remove: remove, propertyOptions: propertyOptions, schema: schema })=>{
5096
5132
  const sm = (0, $hgUW1$useMediaQuery)({
5097
5133
  minWidth: 0,
5098
5134
  maxWidth: 544
@@ -5217,8 +5253,8 @@ function $3b6ca952e79f0695$var$updateQueryForDatastore(condition) {
5217
5253
  if (Array.isArray(cond.value)) cond.value = cond.value.map((v)=>v.trim().replace(/(^\%+|\%+$)/gm, ""));
5218
5254
  return cond;
5219
5255
  }
5220
- const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource , id: id , includeSearchParams: includeSearchParams , customColumns: customColumns })=>{
5221
- const { conditions: conditions , schema: schema , setConditions: setConditions } = resource;
5256
+ const $3b6ca952e79f0695$var$QueryBuilder = ({ resource: resource, id: id, includeSearchParams: includeSearchParams, customColumns: customColumns })=>{
5257
+ const { conditions: conditions, schema: schema, setConditions: setConditions } = resource;
5222
5258
  const fields = Object.keys(schema[id].fields);
5223
5259
  const hasConditions = conditions.length > 0;
5224
5260
  const [queryCount, setQueryCount] = (0, $hgUW1$useState)(0);
@@ -5347,7 +5383,8 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
5347
5383
 
5348
5384
 
5349
5385
 
5350
- const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id , dataset: dataset , distIndex: distIndex , location: location , apiDocPage: apiDocPage , additionalParams: additionalParams , customColumns: customColumns , columnSettings: columnSettings , columnWidths: columnWidths , customTitle: customTitle , rootUrl: rootUrl })=>{
5386
+
5387
+ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset, distIndex: distIndex, location: location, apiDocPage: apiDocPage, additionalParams: additionalParams, customColumns: customColumns, columnSettings: columnSettings, columnWidths: columnWidths, customTitle: customTitle, rootUrl: rootUrl })=>{
5351
5388
  const navigate = (0, $hgUW1$useNavigate)();
5352
5389
  const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
5353
5390
  let apiDocs = (0, $hgUW1$useRef)();
@@ -5399,6 +5436,18 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id , dataset: dataset
5399
5436
  className: "ds-title",
5400
5437
  children: customTitle ? customTitle : pageTitle
5401
5438
  }),
5439
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5440
+ className: "ds-l-row",
5441
+ children: /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
5442
+ className: "ds-l-col--12 ds-u-color--gray ds-u-margin-y--1 ds-u-text-align--right",
5443
+ children: [
5444
+ "Updated ",
5445
+ /*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
5446
+ date: dataset.modified
5447
+ })
5448
+ ]
5449
+ })
5450
+ }),
5402
5451
  /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5403
5452
  className: "ds-u-margin-top--0 dc-c-metadata-description",
5404
5453
  dangerouslySetInnerHTML: {
@@ -5468,10 +5517,10 @@ var $dd6eb2b30d7ad75d$export$2e2bcd8739ae039 = $dd6eb2b30d7ad75d$var$FilteredRes
5468
5517
 
5469
5518
 
5470
5519
 
5471
- const $f61ecf9f84951a61$var$FilteredResource = ({ id: id , dist_id: dist_id , location: location , apiDocPage: apiDocPage , additionalParams: additionalParams , customColumns: customColumns , setDatasetTitle: setDatasetTitle , columnSettings: columnSettings , columnWidths: columnWidths , customTitle: customTitle , rootUrl: rootUrl })=>{
5520
+ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, location: location, apiDocPage: apiDocPage, additionalParams: additionalParams, customColumns: customColumns, setDatasetTitle: setDatasetTitle, columnSettings: columnSettings, columnWidths: columnWidths, customTitle: customTitle, rootUrl: rootUrl })=>{
5472
5521
  const [ready, setReady] = (0, $hgUW1$useState)(false);
5473
5522
  const [error, setError] = (0, $hgUW1$useState)(false);
5474
- const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl, additionalParams);
5523
+ const { dataset: dataset } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl, additionalParams);
5475
5524
  const distIndex = dist_id === "data" ? 0 : dist_id;
5476
5525
  (0, $hgUW1$useEffect)(()=>{
5477
5526
  if (dataset.error) setError(true);
@@ -5567,7 +5616,7 @@ var $eb7821d186b1a389$export$2e2bcd8739ae039 = $eb7821d186b1a389$var$useAddLogin
5567
5616
 
5568
5617
 
5569
5618
  const $90fb213ab8eeb2e7$var$useScrollToTop = ()=>{
5570
- const { pathname: pathname } = (0, $hgUW1$useLocation)();
5619
+ const { pathname: pathname } = (0, $hgUW1$useLocation)();
5571
5620
  (0, $hgUW1$useEffect)(()=>{
5572
5621
  window.scrollTo(0, 0);
5573
5622
  }, [