@abcagency/hc-ui-components 1.3.21 → 1.3.22
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/{bundle.js → bundleDist/bundle.js} +30 -19
- package/bundleDist/bundle.js.map +1 -0
- package/bundleDist/dist/styles/index.css +3 -0
- package/bundleDist/dist/types/apis/hcApi.d.ts +5 -0
- package/bundleDist/dist/types/clientToken.d.ts +2 -0
- package/bundleDist/dist/types/components/containers/accordions/map-accordion-item-container.d.ts +12 -0
- package/bundleDist/dist/types/components/containers/jobListing/listing-details-container.d.ts +6 -0
- package/bundleDist/dist/types/components/containers/list/item-list-container.d.ts +9 -0
- package/bundleDist/dist/types/components/containers/list/list-item/list-item-container.d.ts +14 -0
- package/bundleDist/dist/types/components/modules/accordions/MapAccordionItem.d.ts +10 -0
- package/bundleDist/dist/types/components/modules/accordions/default.d.ts +19 -0
- package/bundleDist/dist/types/components/modules/buttons/button-group-apply.d.ts +24 -0
- package/bundleDist/dist/types/components/modules/buttons/commute-pill.d.ts +5 -0
- package/bundleDist/dist/types/components/modules/buttons/default.d.ts +48 -0
- package/bundleDist/dist/types/components/modules/buttons/pill-wrapper.d.ts +3 -0
- package/bundleDist/dist/types/components/modules/dialogs/apply-dialog.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/filter/sort.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/grid.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/icon.d.ts +10 -0
- package/bundleDist/dist/types/components/modules/jobListing/listing-details.d.ts +18 -0
- package/bundleDist/dist/types/components/modules/list/field-mapper.d.ts +10 -0
- package/bundleDist/dist/types/components/modules/list/header-item.d.ts +11 -0
- package/bundleDist/dist/types/components/modules/list/header.d.ts +11 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/index.d.ts +7 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +17 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +21 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/list/item-list.d.ts +20 -0
- package/bundleDist/dist/types/components/modules/list/list-item/list-item.d.ts +3 -0
- package/bundleDist/dist/types/constants/eventTypes.d.ts +13 -0
- package/bundleDist/dist/types/contexts/mapContext.d.ts +29 -0
- package/bundleDist/dist/types/contexts/mapListContext.d.ts +59 -0
- package/bundleDist/dist/types/contexts/trackEventContext.d.ts +6 -0
- package/bundleDist/dist/types/enums/SectionType.d.ts +9 -0
- package/bundleDist/dist/types/hooks/useList.d.ts +13 -0
- package/bundleDist/dist/types/services/configService.d.ts +6 -0
- package/bundleDist/dist/types/services/googlePlacesNearbyService.d.ts +5 -0
- package/bundleDist/dist/types/services/listingAggregatorService.d.ts +12 -0
- package/bundleDist/dist/types/services/listingEntityService.d.ts +6 -0
- package/bundleDist/dist/types/services/listingService.d.ts +9 -0
- package/bundleDist/dist/types/services/recruiterService.d.ts +6 -0
- package/bundleDist/dist/types/types/Address.d.ts +7 -0
- package/bundleDist/dist/types/types/ContentSection.d.ts +8 -0
- package/bundleDist/dist/types/types/GetListingParams.d.ts +8 -0
- package/bundleDist/dist/types/types/LatLng.d.ts +4 -0
- package/bundleDist/dist/types/types/ListingEntity.d.ts +10 -0
- package/bundleDist/dist/types/types/ListingFields.d.ts +25 -0
- package/bundleDist/dist/types/types/Listings.d.ts +31 -0
- package/bundleDist/dist/types/types/Recruiter.d.ts +9 -0
- package/bundleDist/dist/types/types/SimilarListing.d.ts +24 -0
- package/bundleDist/dist/types/types/config/Colors.d.ts +8 -0
- package/bundleDist/dist/types/types/config/MapConfig.d.ts +30 -0
- package/bundleDist/dist/types/types/config/PointsOfInterestConfig.d.ts +13 -0
- package/bundleDist/dist/types/types/config/SearchConfig.d.ts +4 -0
- package/bundleDist/dist/types/util/filterUtil.d.ts +28 -0
- package/bundleDist/dist/types/util/loading.d.ts +3 -0
- package/bundleDist/dist/types/util/localStorageUtil.d.ts +3 -0
- package/bundleDist/dist/types/util/mapUtil.d.ts +15 -0
- package/bundleDist/dist/types/util/sortUtil.d.ts +1 -0
- package/bundleDist/dist/types/util/stringUtils.d.ts +1 -0
- package/bundleDist/dist/types/util/urlFilterUtil.d.ts +8 -0
- package/bundleDist/styles/index.css +3 -0
- package/dist/components/containers/accordions/filter-container.js +4 -2
- package/dist/components/containers/accordions/filter-container.js.map +1 -1
- package/dist/components/containers/accordions/filter-item-container.js +6 -1
- package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js +4 -2
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/jobListing/listing-details-container.js +2 -2
- package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
- package/dist/components/containers/list/item-list-container.js +2 -2
- package/dist/components/containers/list/item-list-container.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js +2 -1
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
- package/dist/components/modules/filter/search.js +1 -1
- package/dist/components/modules/filter/search.js.map +1 -1
- package/dist/components/modules/jobListing/listing-details.js +5 -4
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/components/modules/list/field-mapper.js +1 -1
- package/dist/components/modules/list/field-mapper.js.map +1 -1
- package/dist/components/modules/list/item-list.js.map +1 -1
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/styles/index.css +3 -1
- package/dist/types/components/containers/jobListing/listing-details-container.d.ts +2 -2
- package/dist/types/components/modules/accordions/MapAccordionItem.d.ts +2 -1
- package/dist/types/components/modules/jobListing/listing-details.d.ts +2 -2
- package/dist/types/components/modules/list/item-list.d.ts +0 -1
- package/dist/types/types/ListingFields.d.ts +5 -0
- package/dist/types/types/config/MapConfig.d.ts +1 -0
- package/dist/util/filterUtil.js +2 -2
- package/dist/util/filterUtil.js.map +1 -1
- package/package.json +1 -1
- package/postcss.config.js +5 -4
- package/rollup.config.mjs +1 -1
- package/src/components/containers/accordions/filter-container.js +2 -1
- package/src/components/containers/accordions/filter-item-container.js +66 -62
- package/src/components/containers/accordions/map-accordion-item-container.js +70 -70
- package/src/components/containers/jobListing/listing-details-container.js +2 -2
- package/src/components/containers/list/item-list-container.tsx +2 -3
- package/src/components/modules/accordions/MapAccordionItem.js +30 -29
- package/src/components/modules/dialogs/apply-dialog.js +48 -48
- package/src/components/modules/filter/search.js +1 -1
- package/src/components/modules/jobListing/listing-details.js +5 -5
- package/src/components/modules/list/field-mapper.js +1 -1
- package/src/components/modules/list/item-list.tsx +0 -1
- package/src/contexts/mapListContext.tsx +311 -311
- package/src/services/listingAggregatorService.ts +76 -76
- package/src/styles/index.css +14 -115
- package/src/types/ListingFields.ts +5 -0
- package/src/types/config/MapConfig.ts +1 -0
- package/src/util/filterUtil.js +239 -239
- package/stats.html +1 -1
- package/tailwind.config.js +4 -4
- package/bundle.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/styles/index.css +0 -1
|
@@ -14062,7 +14062,7 @@ var MyBundle = (function (exports) {
|
|
|
14062
14062
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
14063
14063
|
featureKey = _ref2[0],
|
|
14064
14064
|
featureName = _ref2[1];
|
|
14065
|
-
if (listing.fields[featureKey]
|
|
14065
|
+
if (listing.fields[featureKey] == 1) {
|
|
14066
14066
|
featureCounts[featureName] += 1;
|
|
14067
14067
|
}
|
|
14068
14068
|
});
|
|
@@ -14187,7 +14187,7 @@ var MyBundle = (function (exports) {
|
|
|
14187
14187
|
filterName = _ref10[0],
|
|
14188
14188
|
filterValue = _ref10[1];
|
|
14189
14189
|
var listingFieldName = invertedSpecialFeaturesMap[filterName];
|
|
14190
|
-
return filterValue && listing.fields[listingFieldName]
|
|
14190
|
+
return filterValue && listing.fields[listingFieldName] == 1;
|
|
14191
14191
|
});
|
|
14192
14192
|
});
|
|
14193
14193
|
} else if (Object.keys(filterItems).length > 0) {
|
|
@@ -17736,7 +17736,7 @@ var MyBundle = (function (exports) {
|
|
|
17736
17736
|
className: "transition-opacity ".concat(inputValue ? "hc-opacity-100" : "hc-opacity-0 hc-pointer-events-none"),
|
|
17737
17737
|
onClick: handleReset
|
|
17738
17738
|
}, /*#__PURE__*/React.createElement("span", {
|
|
17739
|
-
className: "sr-only"
|
|
17739
|
+
className: "hc-sr-only"
|
|
17740
17740
|
}, "Clear"), /*#__PURE__*/React.createElement(Button.Icon, {
|
|
17741
17741
|
icon: "uil:times",
|
|
17742
17742
|
className: "hc-text-uiAccent"
|
|
@@ -18944,13 +18944,18 @@ var MyBundle = (function (exports) {
|
|
|
18944
18944
|
var filter = _ref.filter,
|
|
18945
18945
|
setDefaultValue = _ref.setDefaultValue,
|
|
18946
18946
|
setSelectedFilters = _ref.setSelectedFilters,
|
|
18947
|
-
selectedFilters = _ref.selectedFilters
|
|
18947
|
+
selectedFilters = _ref.selectedFilters,
|
|
18948
|
+
_ref$subcategoryRequi = _ref.subcategoryRequireCategory,
|
|
18949
|
+
subcategoryRequireCategory = _ref$subcategoryRequi === void 0 ? false : _ref$subcategoryRequi;
|
|
18948
18950
|
var fieldKey = filter.id;
|
|
18949
18951
|
var activeItemsCount = selectedFilters != null && selectedFilters[fieldKey] ? Object.keys(selectedFilters[fieldKey]).length : 0;
|
|
18950
18952
|
var handleClearFilters = function handleClearFilters(event) {
|
|
18951
18953
|
event.stopPropagation();
|
|
18952
18954
|
setSelectedFilters(function (prevFilters) {
|
|
18953
18955
|
var updatedFilters = _objectSpread2({}, prevFilters);
|
|
18956
|
+
if (subcategoryRequireCategory && fieldKey == 'categoryClass') {
|
|
18957
|
+
delete updatedFilters['category'];
|
|
18958
|
+
}
|
|
18954
18959
|
delete updatedFilters[fieldKey];
|
|
18955
18960
|
return updatedFilters;
|
|
18956
18961
|
});
|
|
@@ -18988,7 +18993,8 @@ var MyBundle = (function (exports) {
|
|
|
18988
18993
|
var _useMapList = useMapList(),
|
|
18989
18994
|
filterOptions = _useMapList.filterOptions,
|
|
18990
18995
|
selectedFilters = _useMapList.selectedFilters,
|
|
18991
|
-
setSelectedFilters = _useMapList.setSelectedFilters
|
|
18996
|
+
setSelectedFilters = _useMapList.setSelectedFilters,
|
|
18997
|
+
siteConfig = _useMapList.siteConfig;
|
|
18992
18998
|
var handleSetSelectedFilters = function handleSetSelectedFilters(prevFilters) {
|
|
18993
18999
|
setSelectedFilters(prevFilters);
|
|
18994
19000
|
setLocation(null);
|
|
@@ -19011,7 +19017,8 @@ var MyBundle = (function (exports) {
|
|
|
19011
19017
|
filter: filter,
|
|
19012
19018
|
setDefaultValue: setDefaultValue,
|
|
19013
19019
|
selectedFilters: selectedFilters,
|
|
19014
|
-
setSelectedFilters: handleSetSelectedFilters
|
|
19020
|
+
setSelectedFilters: handleSetSelectedFilters,
|
|
19021
|
+
subcategoryRequireCategory: siteConfig.subcategoryRequireCategory
|
|
19015
19022
|
});
|
|
19016
19023
|
}));
|
|
19017
19024
|
};
|
|
@@ -25713,6 +25720,7 @@ var MyBundle = (function (exports) {
|
|
|
25713
25720
|
itemRefs = _ref.itemRefs,
|
|
25714
25721
|
itemExpandedContent = _ref.itemExpandedContent,
|
|
25715
25722
|
isActive = _ref.isActive,
|
|
25723
|
+
recruiter = _ref.recruiter,
|
|
25716
25724
|
children = _ref.children;
|
|
25717
25725
|
return /*#__PURE__*/React.createElement(Accordion.Item, {
|
|
25718
25726
|
key: item.id,
|
|
@@ -25724,7 +25732,7 @@ var MyBundle = (function (exports) {
|
|
|
25724
25732
|
}, children)), isActive && /*#__PURE__*/React.createElement(Accordion.Content, {
|
|
25725
25733
|
bodyClassName: "hc-px-2 hc-py-2 hc-pt-0 hc-bg-uiAccent/5 hc-border-secondary hc-border hc-border-t-0"
|
|
25726
25734
|
}, /*#__PURE__*/React.createElement(CardItemExpand, {
|
|
25727
|
-
content: itemExpandedContent(item)
|
|
25735
|
+
content: itemExpandedContent(item, recruiter)
|
|
25728
25736
|
})));
|
|
25729
25737
|
};
|
|
25730
25738
|
|
|
@@ -25765,7 +25773,7 @@ var MyBundle = (function (exports) {
|
|
|
25765
25773
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
25766
25774
|
featureKey = _ref3[0],
|
|
25767
25775
|
featureLabel = _ref3[1];
|
|
25768
|
-
return item.fields[featureKey]
|
|
25776
|
+
return item.fields[featureKey] == 1 && /*#__PURE__*/React.createElement(PillWrapper, {
|
|
25769
25777
|
key: featureKey
|
|
25770
25778
|
}, featureLabel);
|
|
25771
25779
|
});
|
|
@@ -25975,7 +25983,8 @@ var MyBundle = (function (exports) {
|
|
|
25975
25983
|
isActive = _ref.isActive,
|
|
25976
25984
|
hasListItemSelected = _ref.hasListItemSelected;
|
|
25977
25985
|
var _useMapList = useMapList(),
|
|
25978
|
-
mapItems = _useMapList.mapItems
|
|
25986
|
+
mapItems = _useMapList.mapItems,
|
|
25987
|
+
recruiters = _useMapList.recruiters;
|
|
25979
25988
|
var _useMap = useMap(),
|
|
25980
25989
|
selectItem = _useMap.selectItem;
|
|
25981
25990
|
var _useTrackEvent = useTrackEvent(),
|
|
@@ -26015,7 +26024,8 @@ var MyBundle = (function (exports) {
|
|
|
26015
26024
|
item: item,
|
|
26016
26025
|
itemRefs: itemRefs,
|
|
26017
26026
|
itemExpandedContent: itemExpandedContent,
|
|
26018
|
-
isActive: isActive
|
|
26027
|
+
isActive: isActive,
|
|
26028
|
+
recruiter: recruiters[item.recruiterId]
|
|
26019
26029
|
}, /*#__PURE__*/React.createElement(ListItemContainer, {
|
|
26020
26030
|
showMap: showMap,
|
|
26021
26031
|
item: item,
|
|
@@ -26454,7 +26464,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26454
26464
|
}, children), /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Overlay, {
|
|
26455
26465
|
className: "hc-bg-black/50 hc-fixed hc-inset-0 hc-animate-overlayShow"
|
|
26456
26466
|
}), /*#__PURE__*/React.createElement(Content$1, {
|
|
26457
|
-
className: "hc-fit-content hc-animate-contentShow hc-fixed hc-inset-0 hc-m-auto hc-max-h-[85vh] hc-w-[90vw] hc-max-w-[450px] hc-rounded-[6px] hc-bg-white hc-p-[25px] hc-shadow-lg focus:hc-outline-none hc-flex hc-flex-col hc-items-center hc-text-center"
|
|
26467
|
+
className: "z-99 hc-fit-content hc-h-fit hc-animate-contentShow hc-fixed hc-inset-0 hc-m-auto hc-max-h-[85vh] hc-w-[90vw] hc-max-w-[450px] hc-rounded-[6px] hc-bg-white hc-p-[25px] hc-shadow-lg focus:hc-outline-none hc-flex hc-flex-col hc-items-center hc-text-center"
|
|
26458
26468
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
26459
26469
|
className: "hc-text-[17px] hc-font-medium hc-w-full"
|
|
26460
26470
|
}, "Career Opportunities"), /*#__PURE__*/React.createElement(Description, {
|
|
@@ -26598,7 +26608,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26598
26608
|
var ListingDetails = function ListingDetails(_ref) {
|
|
26599
26609
|
var _item$details;
|
|
26600
26610
|
var item = _ref.item,
|
|
26601
|
-
|
|
26611
|
+
recruiter = _ref.recruiter,
|
|
26602
26612
|
travelTime = _ref.travelTime,
|
|
26603
26613
|
useDetailsPostMessage = _ref.useDetailsPostMessage,
|
|
26604
26614
|
navigateToDetails = _ref.navigateToDetails,
|
|
@@ -26614,13 +26624,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26614
26624
|
if (!item) {
|
|
26615
26625
|
return null;
|
|
26616
26626
|
}
|
|
26617
|
-
var matchingRecruiter =
|
|
26627
|
+
var matchingRecruiter = recruiter;
|
|
26628
|
+
console.log(matchingRecruiter);
|
|
26618
26629
|
return /*#__PURE__*/React.createElement("div", {
|
|
26619
26630
|
className: "hc-w-full"
|
|
26620
26631
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26621
26632
|
className: "hc-grow hc-flex hc-flex-wrap hc-items-center hc-gap-4"
|
|
26622
26633
|
}, (matchingRecruiter === null || matchingRecruiter === void 0 ? void 0 : matchingRecruiter.headshot) && /*#__PURE__*/React.createElement(RecruiterHeadshot, {
|
|
26623
|
-
image: "https:
|
|
26634
|
+
image: "".concat(matchingRecruiter.headshot.includes("http") ? '' : 'https:').concat(matchingRecruiter.headshot),
|
|
26624
26635
|
alt: matchingRecruiter === null || matchingRecruiter === void 0 ? void 0 : matchingRecruiter.firstName,
|
|
26625
26636
|
className: "hc-bg-gray-300"
|
|
26626
26637
|
}), matchingRecruiter && /*#__PURE__*/React.createElement(RecruiterDetails, {
|
|
@@ -26637,7 +26648,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26637
26648
|
title: "LinkedIn",
|
|
26638
26649
|
icon: "ant-design:linkedin-outlined"
|
|
26639
26650
|
}))
|
|
26640
|
-
}, (matchingRecruiter === null || matchingRecruiter === void 0 ? void 0 : matchingRecruiter.firstName)
|
|
26651
|
+
}, (matchingRecruiter === null || matchingRecruiter === void 0 ? void 0 : matchingRecruiter.firstName) || (matchingRecruiter === null || matchingRecruiter === void 0 ? void 0 : matchingRecruiter.lastName) && /*#__PURE__*/React.createElement(RecruiterDetails.Title, null, "".concat(matchingRecruiter === null || matchingRecruiter === void 0 ? void 0 : matchingRecruiter.firstName, " ").concat(matchingRecruiter === null || matchingRecruiter === void 0 ? void 0 : matchingRecruiter.lastName)), ((_item$details = item.details) === null || _item$details === void 0 || (_item$details = _item$details.recruiter) === null || _item$details === void 0 ? void 0 : _item$details.title) && /*#__PURE__*/React.createElement(RecruiterDetails.Text, null, item.details.recruiter.title)), /*#__PURE__*/React.createElement(ButtonGroupApply, {
|
|
26641
26652
|
useDetailsPostMessage: useDetailsPostMessage,
|
|
26642
26653
|
navigateToDetails: navigateToDetails,
|
|
26643
26654
|
navigateToEasyApply: navigateToEasyApply,
|
|
@@ -26663,7 +26674,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26663
26674
|
|
|
26664
26675
|
var ListingDetailsContainer = function ListingDetailsContainer(_ref) {
|
|
26665
26676
|
var item = _ref.item,
|
|
26666
|
-
|
|
26677
|
+
recruiter = _ref.recruiter;
|
|
26667
26678
|
var _useTrackEvent = useTrackEvent(),
|
|
26668
26679
|
trackEvent = _useTrackEvent.trackEvent,
|
|
26669
26680
|
eventTypes = _useTrackEvent.eventTypes;
|
|
@@ -26682,7 +26693,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26682
26693
|
jobsDomain = siteConfig.jobsDomain;
|
|
26683
26694
|
return /*#__PURE__*/React.createElement(ListingDetails, {
|
|
26684
26695
|
item: item,
|
|
26685
|
-
|
|
26696
|
+
recruiter: recruiter,
|
|
26686
26697
|
travelTime: travelTime,
|
|
26687
26698
|
useDetailsPostMessage: useDetailsPostMessage,
|
|
26688
26699
|
navigateToDetails: navigateToDetails,
|
|
@@ -26703,7 +26714,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26703
26714
|
const { itemLimit, loader, scrollContainerRef, itemRefs } = useListLogic(filteredListings);
|
|
26704
26715
|
const { selectedListItem } = useMap();
|
|
26705
26716
|
const { trackEvent, eventTypes } = useTrackEvent();
|
|
26706
|
-
const itemExpandedContent = (item,
|
|
26717
|
+
const itemExpandedContent = (item, recruiter) => item ? React.createElement(ListingDetailsContainer, { item: item, recruiter: recruiter }) : null;
|
|
26707
26718
|
if (!fieldsShown.includes('travelTime') && commuteLocation != null && Object.entries(commuteLocation).length > 0) {
|
|
26708
26719
|
fieldsShown.push('travelTime');
|
|
26709
26720
|
fieldNames['travelTime'] = 'Commute';
|
|
@@ -26715,7 +26726,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
26715
26726
|
trackEvent(eventTypes.LIST_SORTED, sortSetting);
|
|
26716
26727
|
setSortSetting(sortSetting);
|
|
26717
26728
|
};
|
|
26718
|
-
return (React.createElement(ItemsList, { fieldNames: fieldNames, showMap: showMap, fieldsShown: fieldsShown, filteredListings: filteredListings, loading: loading, sortSetting: sortSetting, setSortSetting: setTrackedSortSetting, itemLimit: itemLimit, loader: loader, scrollContainerRef: scrollContainerRef, itemRefs: itemRefs, selectedListItem: selectedListItem,
|
|
26729
|
+
return (React.createElement(ItemsList, { fieldNames: fieldNames, showMap: showMap, fieldsShown: fieldsShown, filteredListings: filteredListings, loading: loading, sortSetting: sortSetting, setSortSetting: setTrackedSortSetting, itemLimit: itemLimit, loader: loader, scrollContainerRef: scrollContainerRef, itemRefs: itemRefs, selectedListItem: selectedListItem, includeFavorite: true },
|
|
26719
26730
|
React.createElement(Accordion, { className: "hc-divide-y hc-divide-uiAccent/10 hc-z-[1000]", defaultValue: selectedListItem?.id }, (sortSetting ? dynamicSort(filteredListings, sortSetting.field, sortSetting.type) : filteredListings)
|
|
26720
26731
|
.slice(0, itemLimit)
|
|
26721
26732
|
.map((item) => (React.createElement(MapAccordionItemContainer, { key: item.id, showMap: showMap, item: item, itemRefs: itemRefs, fieldsShown: fieldsShown, itemExpandedContent: itemExpandedContent, specialFeatures: specialFeatures, isActive: selectedListItem?.id === item.id, hasListItemSelected: selectedListItem != null }))))));
|